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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90de17ec389124d95613adbbb2026946b6a3af65 | 1,830 | cpp | C++ | Tree/HeightBT.cpp | Anirban166/GeeksforGeeks | 3b0f4a5a5c9476477e5920692258c097b20b64a0 | [
"MIT"
] | 19 | 2019-07-22T06:23:36.000Z | 2021-09-12T13:01:41.000Z | Tree/HeightBT.cpp | Anirban166/GeeksforGeeks | 3b0f4a5a5c9476477e5920692258c097b20b64a0 | [
"MIT"
] | null | null | null | Tree/HeightBT.cpp | Anirban166/GeeksforGeeks | 3b0f4a5a5c9476477e5920692258c097b20b64a0 | [
"MIT"
] | 3 | 2019-10-10T03:41:06.000Z | 2020-05-05T08:27:46.000Z | #include <bits/stdc++.h>
using namespace std;
/* A binary tree node has data, pointer to left child
and a pointer to right child */
struct Node
{
int data;
struct Node* left;
struct Node* right;
Node(int x){
data = x;
left = right = NULL;
}
};
/* Computes the number of nodes ... | 17.596154 | 58 | 0.507104 | Anirban166 |
90debecb1d3764b8d598bed91b713e680c3747fe | 3,027 | cpp | C++ | PALIN.cpp | YourGoodFriendSP/SPOJ-solutions | f8b14cad3452628c2c8e17ee44ec0ba2f70bb518 | [
"MIT"
] | 3 | 2020-10-02T15:01:06.000Z | 2022-01-15T15:32:25.000Z | PALIN.cpp | YourGoodFriendSP/SPOJ-solutions | f8b14cad3452628c2c8e17ee44ec0ba2f70bb518 | [
"MIT"
] | null | null | null | PALIN.cpp | YourGoodFriendSP/SPOJ-solutions | f8b14cad3452628c2c8e17ee44ec0ba2f70bb518 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std ;
typedef long long ll ;
string add(string &s){
int carry=0 ;
string ans(s.size()+1,'0') ;
int m=s.size() ;
for(int i=m-1;i>=0;i--){
int num=0 ;
if(i==m-1){
num=1 ;
}
int sum=(s[i]-'0')+carry+num ;
s[i]=sum%10 +'0' ;
carry=sum/10 ;
... | 11.870588 | 39 | 0.435745 | YourGoodFriendSP |
90df261d1b5b28ef3d6404ee8efb50d3a4f5f409 | 6,520 | cpp | C++ | Stikboldt/_MyPrefabs/Objects/PF_Character.cpp | Kair0z/StikBoldt-PC | 5d978aa6b67e9f3a140136f2f0b766061e765c74 | [
"MIT"
] | null | null | null | Stikboldt/_MyPrefabs/Objects/PF_Character.cpp | Kair0z/StikBoldt-PC | 5d978aa6b67e9f3a140136f2f0b766061e765c74 | [
"MIT"
] | null | null | null | Stikboldt/_MyPrefabs/Objects/PF_Character.cpp | Kair0z/StikBoldt-PC | 5d978aa6b67e9f3a140136f2f0b766061e765c74 | [
"MIT"
] | 1 | 2021-09-23T06:21:53.000Z | 2021-09-23T06:21:53.000Z |
#include "stdafx.h"
#include "PF_Character.h"
#include "Components.h"
#include "Prefabs.h"
#include "GameScene.h"
#include "PhysxManager.h"
#include "PhysxProxy.h"
#include "ControllerComponent.h"
PF_Character::PF_Character(float radius, float height, float moveSpeed, float maxJumpHeight, float maxSlopeAngle, float ... | 27.744681 | 148 | 0.767331 | Kair0z |
90df8d71df2361262733892562797810024c14ba | 1,133 | cpp | C++ | codex.test/test_object_pool.cpp | codex-tk/old_ref_codex | c0d5a87b991cc2c48fab2902b5e10b8339cecb91 | [
"MIT"
] | null | null | null | codex.test/test_object_pool.cpp | codex-tk/old_ref_codex | c0d5a87b991cc2c48fab2902b5e10b8339cecb91 | [
"MIT"
] | null | null | null | codex.test/test_object_pool.cpp | codex-tk/old_ref_codex | c0d5a87b991cc2c48fab2902b5e10b8339cecb91 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <codex/convenience/object_pool.hpp>
#include "gprintf.hpp"
class pooled_object : public codex::object_pool< pooled_object >{
private:
void* _dummy;
};
TEST( object_pool , single ) {
pooled_object* first_object = new pooled_object();
delete first_object;
pooled_object* seco... | 24.106383 | 68 | 0.673433 | codex-tk |
90e106faae0b34c0c50fb77d7ed1557cf83b14d8 | 15,625 | hxx | C++ | src/factor_unsym.hxx | tasseff/SyLVER | 35cb652ece05447ddf12e530e97428078446eaf4 | [
"BSD-3-Clause"
] | 9 | 2019-07-02T12:46:22.000Z | 2021-07-08T11:54:46.000Z | src/factor_unsym.hxx | tasseff/SyLVER | 35cb652ece05447ddf12e530e97428078446eaf4 | [
"BSD-3-Clause"
] | 2 | 2020-03-23T22:55:52.000Z | 2020-03-24T11:15:16.000Z | src/factor_unsym.hxx | tasseff/SyLVER | 35cb652ece05447ddf12e530e97428078446eaf4 | [
"BSD-3-Clause"
] | 5 | 2019-06-10T11:11:14.000Z | 2020-03-22T02:38:12.000Z | /// @file
/// @copyright 2016- The Science and Technology Facilities Council (STFC)
/// @author Florent Lopez
#pragma once
// SyVLER
#include "NumericFront.hxx"
#include "tasks/tasks_unsym.hxx"
// STD
#include <limits>
// SSIDS
#include "ssids/cpu/cpu_iface.hxx"
#include "ssids/cpu/Workspace.hxx"
namespace sylver {... | 34.955257 | 105 | 0.524416 | tasseff |
90e1080185a7008f59b9ecfc2909f120fb51b286 | 198 | cpp | C++ | net.ssa/itself/itself.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | net.ssa/itself/itself.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | net.ssa/itself/itself.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | extern"C"int printf(char*,...);char*S="extern%cC%cint printf(char*,...);char*S=%c%s%c;char*T=%c%s%c%s";char*T=";main(){printf(S,34,34,34,S,34,34,T,34,T);}";main(){printf(S,34,34,34,S,34,34,T,34,T);} | 198 | 198 | 0.611111 | ixray-team |
90e6605e78f74ac2489927f867407deea660f7d3 | 2,487 | cpp | C++ | src/ciphers/vigenere.cpp | Cyclic3/CipheyCore | 63cc5fa79b68602e92fd1e16abdbd16b53fcbc53 | [
"MIT"
] | 35 | 2020-05-30T10:25:14.000Z | 2022-03-09T05:46:28.000Z | src/ciphers/vigenere.cpp | Cyclic3/CipheyCore | 63cc5fa79b68602e92fd1e16abdbd16b53fcbc53 | [
"MIT"
] | 12 | 2020-08-01T16:52:49.000Z | 2021-12-25T22:04:42.000Z | src/ciphers/vigenere.cpp | Cyclic3/CipheyCore | 63cc5fa79b68602e92fd1e16abdbd16b53fcbc53 | [
"MIT"
] | 14 | 2020-08-06T01:36:08.000Z | 2022-02-02T09:53:18.000Z | #include "ciphey/ciphers.hpp"
#include "common.hpp"
#include <atomic>
#include <thread>
#include <future>
namespace ciphey::vigenere {
std::vector<crack_result<key_t>> crack(windowed_prob_table observed, prob_table const& expected,
group_t const& group, freq_t count, prob_t... | 32.723684 | 130 | 0.628468 | Cyclic3 |
90e77fb2c6facb656eaed6c70b765736f455498a | 131 | cpp | C++ | Source/Flopnite/Private/GameplayAbilities/FNGameplayAbility.cpp | BEASTSM96/flopnite-ue4 | 76193544a6b7fe6b969864e74409b6b5a43f3d7a | [
"MIT"
] | null | null | null | Source/Flopnite/Private/GameplayAbilities/FNGameplayAbility.cpp | BEASTSM96/flopnite-ue4 | 76193544a6b7fe6b969864e74409b6b5a43f3d7a | [
"MIT"
] | null | null | null | Source/Flopnite/Private/GameplayAbilities/FNGameplayAbility.cpp | BEASTSM96/flopnite-ue4 | 76193544a6b7fe6b969864e74409b6b5a43f3d7a | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "GameplayAbilities/FNGameplayAbility.h"
| 21.833333 | 78 | 0.801527 | BEASTSM96 |
90e7fea70f6a41a06fd08783274321774424f4d8 | 23,185 | cc | C++ | components/sync/user_events/user_event_sync_bridge_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | components/sync/user_events/user_event_sync_bridge_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | components/sync/user_events/user_event_sync_bridge_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 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 "components/sync/user_events/user_event_sync_bridge.h"
#include <map>
#include <set>
#include <utility>
#include "base/bind.h"
#include "base/b... | 38.385762 | 80 | 0.718007 | zipated |
90e8850104d10e97d4aa5d749bc4be6afccf0770 | 5,530 | cc | C++ | src/sequence_batch.cc | vejnar/chromap | f0ff121845f727b2142f04983211233f27302d13 | [
"MIT"
] | null | null | null | src/sequence_batch.cc | vejnar/chromap | f0ff121845f727b2142f04983211233f27302d13 | [
"MIT"
] | null | null | null | src/sequence_batch.cc | vejnar/chromap | f0ff121845f727b2142f04983211233f27302d13 | [
"MIT"
] | null | null | null | #include "sequence_batch.h"
#include <tuple>
#include "utils.h"
namespace chromap {
constexpr uint8_t SequenceBatch::char_to_uint8_table_[256];
constexpr char SequenceBatch::uint8_to_char_table_[8];
void SequenceBatch::InitializeLoading(const std::string &sequence_file_path) {
sequence_file_ = gzopen(sequence_fi... | 33.113772 | 80 | 0.638336 | vejnar |
90e9d8dab498a49a5ba068712f0162adcd5dff1e | 427 | cpp | C++ | main.cpp | pawbyte/semath | f292718f521d7f6d0d66307f06db854813907b6d | [
"MIT"
] | null | null | null | main.cpp | pawbyte/semath | f292718f521d7f6d0d66307f06db854813907b6d | [
"MIT"
] | null | null | null | main.cpp | pawbyte/semath | f292718f521d7f6d0d66307f06db854813907b6d | [
"MIT"
] | null | null | null | #include "semath.h"
#include <iostream> //used to use std::cout to print messages
//Make sure to include both "semath.h" and "semath.cpp" in your project directory.
int main( int argc, char* args[] )
{
std::cout << "Result of <get_direction( 0, 0, 300, 300):" << get_direction( 0, 0, 300, 300) << ".\n";
std::cout... | 32.846154 | 104 | 0.620609 | pawbyte |
90eb9fc9b4345dbf77c1dca996420342b7c591e5 | 2,361 | cpp | C++ | samples/client/petstore/cpp-ue4/Private/OpenAPIUser.cpp | therockstorm/openapi-generator | 01d0b5d4780ebe2d6025e2b443ec136c6ce16c45 | [
"Apache-2.0"
] | 4 | 2021-02-20T21:39:04.000Z | 2021-08-24T13:54:15.000Z | samples/client/petstore/cpp-ue4/Private/OpenAPIUser.cpp | therockstorm/openapi-generator | 01d0b5d4780ebe2d6025e2b443ec136c6ce16c45 | [
"Apache-2.0"
] | 29 | 2021-04-07T07:38:57.000Z | 2022-03-30T12:10:22.000Z | samples/client/petstore/cpp-ue4/Private/OpenAPIUser.cpp | therockstorm/openapi-generator | 01d0b5d4780ebe2d6025e2b443ec136c6ce16c45 | [
"Apache-2.0"
] | 5 | 2020-11-26T05:13:41.000Z | 2021-04-09T15:58:18.000Z | /**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* https://github.com/OpenAPITools/openapi-generator
* Do not... | 28.792683 | 133 | 0.72554 | therockstorm |
90ec7873c6b80b7968d92f20f09cfbed0edd3914 | 4,933 | hxx | C++ | 2/ED/practica1 _ Conjunto/conjunto.hxx | xKuZz/trabajosugr | 5dd0cf416ccf5dfe5961713a85581d95cd14aa74 | [
"MIT"
] | 3 | 2019-10-23T06:06:43.000Z | 2021-05-23T17:20:25.000Z | 2/ED/practica1 _ Conjunto/conjunto.hxx | xKuZz/trabajosugr | 5dd0cf416ccf5dfe5961713a85581d95cd14aa74 | [
"MIT"
] | null | null | null | 2/ED/practica1 _ Conjunto/conjunto.hxx | xKuZz/trabajosugr | 5dd0cf416ccf5dfe5961713a85581d95cd14aa74 | [
"MIT"
] | 1 | 2017-12-18T22:16:47.000Z | 2017-12-18T22:16:47.000Z | /**
* @file conjunto.hxx
* @brief Implementación de la clase conjunto
* @author Alejandro Campoy Nieves
* @author David Criado Ramón
*/
/**
@brief Constructor por defecto de la clase conjunto (Conjunto vacio).
*/
conjunto::conjunto(){
}
/**
* @brief Constructor de copia.
* @d Conjunto a co... | 27.558659 | 105 | 0.614433 | xKuZz |
90ee6174c7fbe76db6759d37259da311e516452e | 441 | hpp | C++ | include/rive/animation/blend_animation.hpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 139 | 2020-08-17T20:10:24.000Z | 2022-03-28T12:22:44.000Z | include/rive/animation/blend_animation.hpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 89 | 2020-08-28T16:41:01.000Z | 2022-03-28T19:10:49.000Z | include/rive/animation/blend_animation.hpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 19 | 2020-10-19T00:54:40.000Z | 2022-02-28T05:34:17.000Z | #ifndef _RIVE_BLEND_ANIMATION_HPP_
#define _RIVE_BLEND_ANIMATION_HPP_
#include "rive/generated/animation/blend_animation_base.hpp"
namespace rive
{
class LinearAnimation;
class BlendAnimation : public BlendAnimationBase
{
private:
LinearAnimation* m_Animation = nullptr;
public:
const LinearAnimation* animatio... | 24.5 | 66 | 0.800454 | kariem2k |
90ef8e39c9035771f1018e3261cac7bd5c5a6271 | 1,791 | hpp | C++ | src/main/generic_format/ast/string.hpp | foobar27/generic_format | a44ce919b9c296ce66c0b54a51a61c884ddb78dd | [
"BSL-1.0"
] | null | null | null | src/main/generic_format/ast/string.hpp | foobar27/generic_format | a44ce919b9c296ce66c0b54a51a61c884ddb78dd | [
"BSL-1.0"
] | null | null | null | src/main/generic_format/ast/string.hpp | foobar27/generic_format | a44ce919b9c296ce66c0b54a51a61c884ddb78dd | [
"BSL-1.0"
] | null | null | null | /**
@file
@copyright
Copyright Sebastien Wagener 2014
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)
*/
#pragma once
#include "generic_format/ast/base.hpp"
namespace generic_form... | 38.934783 | 106 | 0.683975 | foobar27 |
90f1a4536dca3d15b69e4c3bab3d3f518eb2fca4 | 111,610 | cpp | C++ | OGDF/src/coin/Symphony/tm_func.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 13 | 2017-12-21T03:35:41.000Z | 2022-01-31T13:45:25.000Z | OGDF/src/coin/Symphony/tm_func.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 7 | 2017-09-13T01:31:24.000Z | 2021-12-14T00:31:50.000Z | OGDF/src/coin/Symphony/tm_func.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 15 | 2017-09-07T18:28:55.000Z | 2022-01-18T14:17:43.000Z | /*===========================================================================*/
/* */
/* This file is part of the SYMPHONY MILP Solver Framework. */
/* */
... | 30.908336 | 124 | 0.549655 | shahnidhi |
90f2dca9d6b11de4df1169bed10f4969e9e66b68 | 1,231 | cpp | C++ | avs_dx/DxVisuals/Effects/Common/EffectListBase.factory.cpp | Const-me/vis_avs_dx | da1fd9f4323d7891dea233147e6ae16790ad9ada | [
"MIT"
] | 33 | 2019-01-28T03:32:17.000Z | 2022-02-12T18:17:26.000Z | avs_dx/DxVisuals/Effects/Common/EffectListBase.factory.cpp | visbot/vis_avs_dx | 03e55f8932a97ad845ff223d3602ff2300c3d1d4 | [
"MIT"
] | 2 | 2019-11-18T17:54:58.000Z | 2020-07-21T18:11:21.000Z | avs_dx/DxVisuals/Effects/Common/EffectListBase.factory.cpp | Const-me/vis_avs_dx | da1fd9f4323d7891dea233147e6ae16790ad9ada | [
"MIT"
] | 5 | 2019-02-16T23:00:11.000Z | 2022-03-27T15:22:10.000Z | #include "stdafx.h"
#include <RootEffect.h>
#include "../List/EffectList.h"
class C_RenderListClass;
// Class factory is slightly more complex here: creating different classes depending on whether this effect is the root or just a list inside the preset.
template<> HRESULT createDxEffect<C_RenderListClass>( void* pSt... | 31.564103 | 153 | 0.753859 | Const-me |
90f4f719a45d230d38cb5086c765c04a18c45838 | 12,944 | cpp | C++ | NPlan/NPlan/view/TaskView.cpp | Avens666/NPlan | 726411b053ded26ce6c1b8c280c994d4c1bac71a | [
"Apache-2.0"
] | 16 | 2018-08-30T11:27:14.000Z | 2021-12-17T02:05:45.000Z | NPlan/NPlan/view/TaskView.cpp | Avens666/NPlan | 726411b053ded26ce6c1b8c280c994d4c1bac71a | [
"Apache-2.0"
] | null | null | null | NPlan/NPlan/view/TaskView.cpp | Avens666/NPlan | 726411b053ded26ce6c1b8c280c994d4c1bac71a | [
"Apache-2.0"
] | 14 | 2018-08-30T12:13:56.000Z | 2021-02-06T11:07:44.000Z | // File: TaskView.cpp
// Copyright: Copyright(C) 2013-2017 Wuhan KOTEI Informatics Co., Ltd. All rights reserved.
// Website: http://www.nuiengine.com
// Description: This code is part of NPlan Project (Powered by NUI Engine)
// Comments:
// Rev: 1
// Created: 2018/8/27
// Last... | 25.991968 | 155 | 0.663473 | Avens666 |
90f53d4655f7c319ad41dda208f87542ea045213 | 1,599 | cc | C++ | shill/upstart/upstart_test.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | shill/upstart/upstart_test.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | shill/upstart/upstart_test.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2020-11-04T22:31:45.000Z | 2020-11-04T22:31:45.000Z | // Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "shill/upstart/upstart.h"
#include <utility>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "shill/mock_control.h"
#include "sh... | 24.227273 | 74 | 0.749844 | strassek |
90f6e6e7114705c60666c2713ba0172f4cf0b149 | 986 | cpp | C++ | BallCollision/Plane.cpp | Baeonex/BehavioursCollisions | c78cd1d5911b0caf632a11120686a09666526021 | [
"MIT"
] | null | null | null | BallCollision/Plane.cpp | Baeonex/BehavioursCollisions | c78cd1d5911b0caf632a11120686a09666526021 | [
"MIT"
] | null | null | null | BallCollision/Plane.cpp | Baeonex/BehavioursCollisions | c78cd1d5911b0caf632a11120686a09666526021 | [
"MIT"
] | null | null | null | #include "Plane.h"
Plane::Plane()
{
}
Plane::~Plane()
{
}
Plane::Plane(Vector2& p1, Vector2& p2)
{
auto v = p2 - p1;
v.normalise();
m_normal.x = -v.y;
m_normal.y = v.x;
m_d = -p1.dot(m_normal);
}
float Plane::distanceTo(const Vector2& p)
{
return p.dot(m_normal) + m_d;
}
Vector2 Plane::closestPoint(Vecto... | 16.711864 | 62 | 0.684584 | Baeonex |
90f70620efe79b78697816e51e45dbbabb10b94f | 15,520 | cpp | C++ | mod/bear/bear.cpp | littlegao233/bdlauncher | d765f1cd2bffed37e7f773f8120599f6e7cec732 | [
"MIT"
] | 1 | 2020-01-12T11:40:30.000Z | 2020-01-12T11:40:30.000Z | mod/bear/bear.cpp | mclauncherlinux/bdlauncher | 9d7482786ba8be1e06fc7c81b448c5862e970870 | [
"MIT"
] | null | null | null | mod/bear/bear.cpp | mclauncherlinux/bdlauncher | 9d7482786ba8be1e06fc7c81b448c5862e970870 | [
"MIT"
] | null | null | null |
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include"aux.h"
#include<cstdio>
#include<list>
#include<forward_list>
#include<string>
#include<unordered_map>
#include<unordered_set>
#include"../cmdhelper.h"
#include<vector>
#include<Loader.h>
#include<MC.h>
#include"seral.hpp"
#include<unistd.... | 30.431373 | 318 | 0.611856 | littlegao233 |
90f72a9dd022e250b6a9e1f2a7f37d170ee7ea44 | 6,059 | cpp | C++ | src/BasicRSVD.cpp | djanekovic/librsvd | 83c626c749f2924ca6d7d49d3625c53c1f93a2c1 | [
"MIT"
] | null | null | null | src/BasicRSVD.cpp | djanekovic/librsvd | 83c626c749f2924ca6d7d49d3625c53c1f93a2c1 | [
"MIT"
] | null | null | null | src/BasicRSVD.cpp | djanekovic/librsvd | 83c626c749f2924ca6d7d49d3625c53c1f93a2c1 | [
"MIT"
] | null | null | null | #include <random>
#include <iostream>
#include <algorithm>
#include "Eigen/SVD"
// forward declaration for Eigen::internal::traits
namespace rsvd {
template<typename _MatrixType> class BasicRSVD;
}
namespace Eigen {
namespace internal {
template <typename _MatrixType>
struct traits<rsvd::BasicRSVD<_MatrixType>>: t... | 28.852381 | 126 | 0.684271 | djanekovic |
90f8557d5a28f9b3b125147539f84c20ad8e8f1d | 3,123 | cpp | C++ | GLEANKernel/GLEANLib/Utility Classes/Symbol_memory.cpp | dekieras/GLEANKernel | fac01f025b65273be96c5ea677c0ce192c570799 | [
"MIT"
] | 1 | 2018-06-22T23:01:13.000Z | 2018-06-22T23:01:13.000Z | GLEANKernel/GLEANLib/Utility Classes/Symbol_memory.cpp | dekieras/GLEANKernel | fac01f025b65273be96c5ea677c0ce192c570799 | [
"MIT"
] | null | null | null | GLEANKernel/GLEANLib/Utility Classes/Symbol_memory.cpp | dekieras/GLEANKernel | fac01f025b65273be96c5ea677c0ce192c570799 | [
"MIT"
] | null | null | null | #include "Symbol_memory.h"
#include "Utility_templates.h"
#include "Assert_throw.h"
#include <cstddef>
using std::vector;
using std::set;
using std::strcpy;
using std::size_t;
Symbol_memory * Symbol_memory::Symbol_memory_ptr = 0;
// A Meyers singleton would get automatically destructed, which is not
// a good idea b... | 30.028846 | 101 | 0.742875 | dekieras |
90f9617cb98f3e9abfcd92e1b289eb640849219d | 368 | cpp | C++ | ObjectOrientedProgrammingCodes-CPP/CPPWorkspace/AnagramDiff/main.cpp | srinivasamaringanti/ObjectOrientedProgrammingCodes | 84a11cf63d852aa4537bdde3bd0867b9a0725d66 | [
"MIT"
] | null | null | null | ObjectOrientedProgrammingCodes-CPP/CPPWorkspace/AnagramDiff/main.cpp | srinivasamaringanti/ObjectOrientedProgrammingCodes | 84a11cf63d852aa4537bdde3bd0867b9a0725d66 | [
"MIT"
] | null | null | null | ObjectOrientedProgrammingCodes-CPP/CPPWorkspace/AnagramDiff/main.cpp | srinivasamaringanti/ObjectOrientedProgrammingCodes | 84a11cf63d852aa4537bdde3bd0867b9a0725d66 | [
"MIT"
] | null | null | null | #include <conio.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
cout<< "Hello,World"<< std::endl;
string a{"btoe"};
string b{"aeeg"};
sort(a.begin(),a.end());
sort(b.begin(), b.end());
cout<<"A: "<<a<<endl;
co... | 16.727273 | 37 | 0.535326 | srinivasamaringanti |
90fd35a75b5da54e0b9fc346755bc13f376d0f33 | 713 | cpp | C++ | src/static_search/generic_search.cpp | ParBLiSS/cao-reptile | bb807b0578396f3ffe156a95e612ef16d5da167c | [
"Apache-2.0"
] | null | null | null | src/static_search/generic_search.cpp | ParBLiSS/cao-reptile | bb807b0578396f3ffe156a95e612ef16d5da167c | [
"Apache-2.0"
] | null | null | null | src/static_search/generic_search.cpp | ParBLiSS/cao-reptile | bb807b0578396f3ffe156a95e612ef16d5da167c | [
"Apache-2.0"
] | null | null | null | /********************************************************************
*
* Generic Search program
*
* Frederik Rønn, June 2003, University of Copenhagen.
*
*********************************************************************/
#ifndef __GENERIC_SEARCH_CPP__
#define __GENERIC_SEARCH_CPP__
template <typename RandomItera... | 24.586207 | 70 | 0.580645 | ParBLiSS |
29088612d5e6fc4de2a5d7458e3f5d91d05e94c9 | 14,145 | cpp | C++ | gui/MyCanvas.cpp | myirci/3d_circle_estimation | 7161005ab14d510503310e0bb028fea5ad2a1389 | [
"MIT"
] | 5 | 2020-07-16T18:59:05.000Z | 2022-03-04T01:25:54.000Z | gui/MyCanvas.cpp | myirci/3d_circle_estimation | 7161005ab14d510503310e0bb028fea5ad2a1389 | [
"MIT"
] | null | null | null | gui/MyCanvas.cpp | myirci/3d_circle_estimation | 7161005ab14d510503310e0bb028fea5ad2a1389 | [
"MIT"
] | 1 | 2021-04-08T13:49:32.000Z | 2021-04-08T13:49:32.000Z | #include "MyCanvas.hpp"
#include "MyFrame.hpp"
#include "../geometry/Segment3D.hpp"
#include "../geometry/Circle3D.hpp"
#include "../data/teapot.hpp"
#include "../algorithm/algorithm.hpp"
#include "../utility/utility.hpp"
#include <sstream>
BEGIN_EVENT_TABLE(MyCanvas, wxScrolledWindow)
EVT_PAINT(MyCanvas::OnPaint)... | 36.645078 | 99 | 0.584305 | myirci |
29088db725c733564a3ab404aaadbd702b53dc0b | 465 | hpp | C++ | SDKUsage6/VBMapViewer-SKT/VbNavKit-iOS/Classes/vbCamera/vbRotateCameraControl.hpp | longxingtianxiaShuai/specialView | 42fbdb1ee94fc0bd0c903e3c72c23808ec608139 | [
"MIT"
] | 1 | 2020-11-21T03:54:34.000Z | 2020-11-21T03:54:34.000Z | SDKUsage6/VBMapViewer-SKT/VbNavKit-iOS/Classes/vbCamera/vbRotateCameraControl.hpp | longxingtianxiaShuai/specialView | 42fbdb1ee94fc0bd0c903e3c72c23808ec608139 | [
"MIT"
] | null | null | null | SDKUsage6/VBMapViewer-SKT/VbNavKit-iOS/Classes/vbCamera/vbRotateCameraControl.hpp | longxingtianxiaShuai/specialView | 42fbdb1ee94fc0bd0c903e3c72c23808ec608139 | [
"MIT"
] | 3 | 2017-12-14T00:52:03.000Z | 2019-08-08T22:25:04.000Z | //
// vbRotateCameraControl.h
// VbNavKit-iOS
//
// Created by Dev4_Air on 13. 2. 7..
// Copyright (c) 2013년 dev4. All rights reserved.
//
#ifndef VbNavKit_iOS_vbRotateCameraControl_h
#define VbNavKit_iOS_vbRotateCameraControl_h
#include "vbCameraControl.hpp"
class vbRotateCameraControl : public vbCameraControl
... | 17.222222 | 52 | 0.729032 | longxingtianxiaShuai |
2908a8e881420630cf31cd4c76ccbd2eae643da3 | 1,768 | cpp | C++ | BasicGameFramework/Util/CSound.cpp | dlwlxns4/WitchHouse | 7b2fd8acead69baa9b0850e0ddcb7520b32ef47e | [
"BSD-3-Clause"
] | null | null | null | BasicGameFramework/Util/CSound.cpp | dlwlxns4/WitchHouse | 7b2fd8acead69baa9b0850e0ddcb7520b32ef47e | [
"BSD-3-Clause"
] | null | null | null | BasicGameFramework/Util/CSound.cpp | dlwlxns4/WitchHouse | 7b2fd8acead69baa9b0850e0ddcb7520b32ef47e | [
"BSD-3-Clause"
] | null | null | null | #include "CSound.h"
FMOD_SYSTEM* CSound::g_sound_system;
CSound::CSound(const char* path, bool loop) {
if (loop) {
FMOD_System_CreateSound(g_sound_system, path, FMOD_LOOP_NORMAL, 0, &m_sound);
}
else {
FMOD_System_CreateSound(g_sound_system, path, FMOD_DEFAULT, 0, &m_sound);
}
m_channel = nullptr;
m_volum... | 14.857143 | 79 | 0.70871 | dlwlxns4 |
290a0054e7be1cf8c2404752c65901ae15016fb0 | 66,168 | cc | C++ | Validation/MtdValidation/plugins/Primary4DVertexValidation.cc | wonpoint4/cmssw | 4095d8106ef881c8b3be12b696bc364ae911d01f | [
"Apache-2.0"
] | 2 | 2020-10-26T18:40:32.000Z | 2021-04-10T16:33:25.000Z | Validation/MtdValidation/plugins/Primary4DVertexValidation.cc | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 30 | 2015-11-04T11:42:27.000Z | 2021-12-01T07:56:34.000Z | Validation/MtdValidation/plugins/Primary4DVertexValidation.cc | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 8 | 2016-03-25T07:17:43.000Z | 2021-07-08T17:11:21.000Z | #include <numeric>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "DataFormats/Common/interface/ValidHandle.h"
#include "FWCore/Fra... | 43.936255 | 127 | 0.594683 | wonpoint4 |
290a5c08e62159e11c2d077221dcb20eb0d8bc94 | 4,928 | cc | C++ | src/devices/tests/libdriver-integration-test/action-list.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 210 | 2019-02-05T12:45:09.000Z | 2022-03-28T07:59:06.000Z | src/devices/tests/libdriver-integration-test/action-list.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 5 | 2019-12-04T15:13:37.000Z | 2020-02-19T08:11:38.000Z | src/devices/tests/libdriver-integration-test/action-list.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 "action-list.h"
#include <gtest/gtest.h>
#include "mock-device-thread.h"
#include "mock-device.h"
namespace libdriver_integration_test {
Actio... | 39.111111 | 100 | 0.685065 | allansrc |
290e6516a16472fd5303512fa1ae05e5dc760046 | 11,382 | cpp | C++ | boost/libs/range/test/join.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 11 | 2016-04-12T16:29:29.000Z | 2021-06-28T11:01:57.000Z | boost/libs/range/test/join.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 3 | 2018-10-31T19:35:14.000Z | 2019-06-04T17:11:27.000Z | boost/libs/range/test/join.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 9 | 2015-09-09T02:38:32.000Z | 2021-01-30T00:24:24.000Z | // Boost.Range library
//
// Copyright Neil Groves 2010. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
//
// For more information, see http://www.boost.org/libs/range/
//
#... | 41.540146 | 100 | 0.613864 | randolphwong |
2910b48c65c0d930885115dfcc8110717ade834b | 2,106 | cpp | C++ | src/async/streamsocket.cpp | abbyssoul/libcadence | c9a49d95df608497e9551f7d62169d0c78a48737 | [
"Apache-2.0"
] | 2 | 2020-04-24T15:07:33.000Z | 2020-06-12T07:01:53.000Z | src/async/streamsocket.cpp | abbyssoul/libcadence | c9a49d95df608497e9551f7d62169d0c78a48737 | [
"Apache-2.0"
] | null | null | null | src/async/streamsocket.cpp | abbyssoul/libcadence | c9a49d95df608497e9551f7d62169d0c78a48737 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) Ivan Ryabov - All Rights Reserved
*
* Unauthorized copying of this file, via any medium is strictly prohibited.
* Proprietary and confidential.
*
* Written by Ivan Ryabov <abbyssoul@gmail.com>
*/
/*******************************************************************************
* @file: async/stre... | 22.404255 | 90 | 0.681387 | abbyssoul |
2910d0bbe140a2abddcab117ae649081e429c159 | 1,915 | cpp | C++ | workshop 2020/Stl algorithms/3sum/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | workshop 2020/Stl algorithms/3sum/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | workshop 2020/Stl algorithms/3sum/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <map>
#include <limits>
#include <algorithm>
#define int long long
using namespace std;
signed main() {
int n;
cin >> n;
cin.tie(0);
ios_base::sync_with_stdio(false);
vector<int> tmpInput(n);
map<int, int>occurences;
for (int i = 0; i < n; ... | 24.551282 | 101 | 0.49295 | wdjpng |
2911155dca15a375accd81c489513c54a8c827c8 | 1,573 | hpp | C++ | doc/quickbook/oglplus/quickref/images/image.hpp | highfidelity/oglplus | c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e | [
"BSL-1.0"
] | 2 | 2017-06-09T00:28:35.000Z | 2017-06-09T00:28:43.000Z | doc/quickbook/oglplus/quickref/images/image.hpp | highfidelity/oglplus | c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e | [
"BSL-1.0"
] | null | null | null | doc/quickbook/oglplus/quickref/images/image.hpp | highfidelity/oglplus | c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e | [
"BSL-1.0"
] | 8 | 2017-01-30T22:06:41.000Z | 2020-01-14T17:24:36.000Z | /*
* Copyright 2014-2015 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
//[oglplus_images_Image
namespace oglplus {
namespace images {
class Image
{
public:
Image(const Image& that);
Im... | 16.557895 | 68 | 0.708837 | highfidelity |
291135aab35acc814617da41479d58d2ea8d9adb | 299 | cpp | C++ | src/ast/Import.cpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | 1 | 2019-06-17T07:16:01.000Z | 2019-06-17T07:16:01.000Z | src/ast/Import.cpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | src/ast/Import.cpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | /*
* soyac - Soya Programming Language compiler
* Copyright (c) 2009 Denis Washington <dwashington@gmx.net>
*
* This file is distributed under the terms of the MIT license.
* See LICENSE.txt for details.
*/
#include "Import.hpp"
namespace soyac {
namespace ast
{
Import::Import()
{
}
}}
| 13.590909 | 63 | 0.695652 | denisw |
2911ba4bcd0e1dbf50934f958c59da2234e4ea66 | 520 | cpp | C++ | Hackerrank/apple-and-orange.cpp | ronayumik/Learning-c- | b754d5e6ce92f091f1175a866c99c49561e87f22 | [
"MIT"
] | null | null | null | Hackerrank/apple-and-orange.cpp | ronayumik/Learning-c- | b754d5e6ce92f091f1175a866c99c49561e87f22 | [
"MIT"
] | 3 | 2019-04-13T16:27:37.000Z | 2019-04-13T16:52:57.000Z | Hackerrank/apple-and-orange.cpp | ronayumik/Learning-c- | b754d5e6ce92f091f1175a866c99c49561e87f22 | [
"MIT"
] | 1 | 2018-12-05T23:17:35.000Z | 2018-12-05T23:17:35.000Z | #include<bits/stdc++.h>
using namespace std;
int s,t,b,a,m,n;
int apple, orange;
int temp;
void countApple(int pos){
if(pos+a<= t && pos+a >= s) apple++;
}
void countOrange(int pos){
if(pos+b<= t && pos+b >= s) orange++;
}
int main(){
cin >> s >> t >> a >> b >> m >> n;
apple=0;
orange=0;
... | 14.444444 | 41 | 0.498077 | ronayumik |
29124957a1301654529a161d64a0868e67fea641 | 322 | hpp | C++ | openstudiocore/src/isomodel/ISOModelAPI.hpp | OpenStudioThailand/OpenStudio | 4e2173955e687ef1b934904acc10939ac0bed52f | [
"MIT"
] | 1 | 2017-10-13T09:23:04.000Z | 2017-10-13T09:23:04.000Z | openstudiocore/src/isomodel/ISOModelAPI.hpp | OpenStudioThailand/OpenStudio | 4e2173955e687ef1b934904acc10939ac0bed52f | [
"MIT"
] | null | null | null | openstudiocore/src/isomodel/ISOModelAPI.hpp | OpenStudioThailand/OpenStudio | 4e2173955e687ef1b934904acc10939ac0bed52f | [
"MIT"
] | 1 | 2022-03-20T13:19:42.000Z | 2022-03-20T13:19:42.000Z | #ifndef ISOMODEL_ISOMODELAPI_HPP
#define ISOMODEL_ISOMODELAPI_HPP
#if (_WIN32 || _MSC_VER) && SHARED_OS_LIBS
#ifdef openstudio_isomodel_EXPORTS
#define ISOMODEL_API __declspec(dllexport)
#else
#define ISOMODEL_API __declspec(dllimport)
#endif
#else
#define ISOMODEL_API
#endif
#endi... | 21.466667 | 48 | 0.736025 | OpenStudioThailand |
291259dc263c23a49a8ce47a2547998b869f75e9 | 11,197 | cxx | C++ | Testing/TU/Code/Core/Data/IO/vnsImageFileReaderTest.cxx | spacebel/MAJA | 3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e | [
"Apache-2.0"
] | 57 | 2020-09-30T08:51:22.000Z | 2021-12-19T20:28:30.000Z | Testing/TU/Code/Core/Data/IO/vnsImageFileReaderTest.cxx | spacebel/MAJA | 3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e | [
"Apache-2.0"
] | 34 | 2020-09-29T21:27:22.000Z | 2022-02-03T09:56:45.000Z | Testing/TU/Code/Core/Data/IO/vnsImageFileReaderTest.cxx | spacebel/MAJA | 3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e | [
"Apache-2.0"
] | 14 | 2020-10-11T13:17:59.000Z | 2022-03-09T15:58:19.000Z | /*
* Copyright (C) 2020 Centre National d'Etudes Spatiales (CNES)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 57.420513 | 150 | 0.442797 | spacebel |
291384cb483441cff73b50373db6157e280152f1 | 12,672 | cc | C++ | caffe2/core/plan_executor_test.cc | Gamrix/pytorch | b5b158a6c6de94dfb983b447fa33fea062358844 | [
"Intel"
] | null | null | null | caffe2/core/plan_executor_test.cc | Gamrix/pytorch | b5b158a6c6de94dfb983b447fa33fea062358844 | [
"Intel"
] | null | null | null | caffe2/core/plan_executor_test.cc | Gamrix/pytorch | b5b158a6c6de94dfb983b447fa33fea062358844 | [
"Intel"
] | null | null | null | #ifndef ANDROID
#include <gtest/gtest.h>
#include "caffe2/core/init.h"
#include "caffe2/core/operator.h"
#include "caffe2/core/plan_executor.h"
namespace caffe2 {
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
TEST(PlanExecutorTest, EmptyPlan) {
PlanDef plan_def;
Workspace ws;
EXPECT_TRU... | 28.997712 | 103 | 0.716619 | Gamrix |
2917b33362c13ad0847284d08e72c8e4ff6a3eb9 | 652 | hpp | C++ | Spades Game/Game/Avatar/AvatarComponent.hpp | jmasterx/StemwaterSpades | 05e5d7c6d380d2f5986bd91269887f16c3e71962 | [
"Unlicense"
] | 6 | 2017-01-04T22:40:50.000Z | 2019-11-24T15:37:46.000Z | Spades Game/Game/Avatar/AvatarComponent.hpp | jmasterx/StemwaterSpades | 05e5d7c6d380d2f5986bd91269887f16c3e71962 | [
"Unlicense"
] | 1 | 2016-09-18T19:10:01.000Z | 2017-08-04T23:53:38.000Z | Spades Game/Game/Avatar/AvatarComponent.hpp | jmasterx/StemwaterSpades | 05e5d7c6d380d2f5986bd91269887f16c3e71962 | [
"Unlicense"
] | 2 | 2015-11-21T16:42:18.000Z | 2019-04-21T20:41:39.000Z | #ifndef CGE_AVATAR_COMPONENT_HPP
#define CGE_AVATAR_COMPONENT_HPP
#include "Game/Resource/Sprite.hpp"
#include <stdlib.h>
#include <string>
namespace cge
{
//not really used... part of original avatar system
class AvatarComponent
{
float m_scale;
float m_x;
float m_y;
std::string m_imgPath;
Sprite* m_sprit... | 21.733333 | 68 | 0.730061 | jmasterx |
291affa8207c5a57f516bcad95855135a6ee153c | 8,772 | cc | C++ | src/drivers/devices/ascend/flowunit/inference/atc_inference_flowunit_test.cc | yamal-shang/modelbox | b2785568f4acd56d4922a793aa25516f883edc26 | [
"Apache-2.0"
] | 51 | 2021-09-24T08:57:44.000Z | 2022-03-31T09:12:46.000Z | src/drivers/devices/ascend/flowunit/inference/atc_inference_flowunit_test.cc | yamal-shang/modelbox | b2785568f4acd56d4922a793aa25516f883edc26 | [
"Apache-2.0"
] | 3 | 2022-02-22T07:13:02.000Z | 2022-03-30T02:03:40.000Z | src/drivers/devices/ascend/flowunit/inference/atc_inference_flowunit_test.cc | yamal-shang/modelbox | b2785568f4acd56d4922a793aa25516f883edc26 | [
"Apache-2.0"
] | 31 | 2021-11-29T02:22:39.000Z | 2022-03-15T03:05:24.000Z | /*
* Copyright 2021 The Modelbox Project Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 37.32766 | 141 | 0.641245 | yamal-shang |
291b9569ec1e3ad6d74d23236f7d049a6baf08c1 | 7,609 | cpp | C++ | server/core/src/irods_server_negotiation.cpp | JustinKyleJames/irods | 59e9db75200e95796ec51ec20eb3b185d9e4b5f5 | [
"BSD-3-Clause"
] | 333 | 2015-01-15T15:42:29.000Z | 2022-03-19T19:16:15.000Z | server/core/src/irods_server_negotiation.cpp | JustinKyleJames/irods | 59e9db75200e95796ec51ec20eb3b185d9e4b5f5 | [
"BSD-3-Clause"
] | 3,551 | 2015-01-02T19:55:40.000Z | 2022-03-31T21:24:56.000Z | server/core/src/irods_server_negotiation.cpp | JustinKyleJames/irods | 59e9db75200e95796ec51ec20eb3b185d9e4b5f5 | [
"BSD-3-Clause"
] | 148 | 2015-01-31T16:13:46.000Z | 2022-03-23T20:23:43.000Z | // =-=-=-=-=-=-=-
#include "irods_client_server_negotiation.hpp"
#include "irods_configuration_keywords.hpp"
#include "irods_kvp_string_parser.hpp"
#include "irods_server_properties.hpp"
// =-=-=-=-=-=-=-
// irods includes
#include "rodsDef.h"
#include "rsGlobalExtern.hpp"
#include <list>
#include "fmt/format.h"
na... | 37.855721 | 104 | 0.520568 | JustinKyleJames |
291c94d55a604ff92a165408f3d5568a16cb5ba9 | 3,053 | cc | C++ | chromeos/network/network_event_log.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 | chromeos/network/network_event_log.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 | chromeos/network/network_event_log.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 2020 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 "chromeos/network/network_event_log.h"
#include "base/strings/string_util.h"
#include "chromeos/network/network_handler.h"
#include "chromeos/ne... | 32.478723 | 77 | 0.69964 | zealoussnow |
291f66c1a11ea1d00b7755300b31946c36e2775a | 2,631 | cpp | C++ | Script/src/StardustScript.cpp | IridescentRose/Stardust-Engine | ee6a6b5841c16dddf367564a92eb263827631200 | [
"MIT"
] | 55 | 2020-10-07T01:54:49.000Z | 2022-03-26T11:39:11.000Z | Script/src/StardustScript.cpp | IridescentRose/Ionia | ee6a6b5841c16dddf367564a92eb263827631200 | [
"MIT"
] | 15 | 2020-05-30T18:22:50.000Z | 2020-08-08T11:01:36.000Z | Script/src/StardustScript.cpp | IridescentRose/Ionia | ee6a6b5841c16dddf367564a92eb263827631200 | [
"MIT"
] | 6 | 2020-10-22T11:09:47.000Z | 2022-01-07T13:10:09.000Z | #include <StardustScript.h>
#include <Platform/Platform.h>
#if CURRENT_PLATFORM == PLATFORM_PSP
#include <pspdebug.h>
#define pspDebugScreenPrintf printf
#else
#include <stdio.h>
#endif
#include <iostream>
namespace Stardust::Scripting {
static int lua_plat_init(lua_State* L) {
int argc = lua_gettop(L);
if (arg... | 21.743802 | 87 | 0.675789 | IridescentRose |
2920dec61d7fc68cbbf9f9327b0a59a9f3361896 | 33,833 | cc | C++ | components/password_manager/core/browser/password_manager.cc | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-07T18:51:03.000Z | 2021-01-07T18:51:03.000Z | components/password_manager/core/browser/password_manager.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/password_manager/core/browser/password_manager.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 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 "components/password_manager/core/browser/password_manager.h"
#include <stddef.h>
#include <map>
#include <utility>
#include "base/memory/p... | 38.18623 | 91 | 0.732007 | xzhan96 |
292213e9f206445c7583d299e36938a70f06dccb | 887 | cpp | C++ | dp/lis_seg/lis.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | dp/lis_seg/lis.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | dp/lis_seg/lis.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
// 最長増加部分列
// 計算量 o(nlog(n))
/*
参考リンク
AIZU ONLINE JUDGE
https://onlinejudge.u-aizu.ac.jp/problems/DPL_1_D
LIS でも大活躍! DP の配列使いまわしテクニックを特集
https://qiita.... | 19.282609 | 61 | 0.57159 | Takumi1122 |
2924fcd702a37f927efc9d3d452ce60b7c8a1f5d | 2,085 | cpp | C++ | Socket/Communication.cpp | Kaptnik/CIS-687-RemoteTestHarness | 3a1466d4b71cef7bee2791020a2902d3e658fb64 | [
"MIT"
] | null | null | null | Socket/Communication.cpp | Kaptnik/CIS-687-RemoteTestHarness | 3a1466d4b71cef7bee2791020a2902d3e658fb64 | [
"MIT"
] | null | null | null | Socket/Communication.cpp | Kaptnik/CIS-687-RemoteTestHarness | 3a1466d4b71cef7bee2791020a2902d3e658fb64 | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
// Communication.cpp - A class that encapsulates both a Sender and Receiver//
// ver 1.0 //
// Karthik Umashankar, CSE687 - Object Oriented Design, Summer 2018 //
/////////////////////////////////////////////////////... | 28.561644 | 86 | 0.680576 | Kaptnik |
2928397d2e86bffa04762af04590ce062eda3c21 | 758 | hpp | C++ | src/editor_controls/property_mouse_events.hpp | acidicMercury8/xray-1.6 | 52fba7348a93a52ff9694f2c9dd40c0d090e791e | [
"Linux-OpenIB"
] | 10 | 2021-05-04T06:40:27.000Z | 2022-01-20T20:24:28.000Z | src/editor_controls/property_mouse_events.hpp | Samsuper12/ixray-1.5 | 8070f833f8216d4ead294a9f19b7cd123bb76ba3 | [
"Linux-OpenIB"
] | null | null | null | src/editor_controls/property_mouse_events.hpp | Samsuper12/ixray-1.5 | 8070f833f8216d4ead294a9f19b7cd123bb76ba3 | [
"Linux-OpenIB"
] | 2 | 2021-11-07T16:57:19.000Z | 2021-12-05T13:17:12.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : property_mouse_events.hpp
// Created : 23.01.2008
// Modified : 23.01.2008
// Author : Dmitriy Iassenev
// Description : property mouse events
////////////////////////////////////////////////////////////////////////////... | 30.32 | 77 | 0.602902 | acidicMercury8 |
29286c1d6014c8c05b9951746e2f0781c259ccb7 | 5,274 | cpp | C++ | example/cluster.cpp | apppur/canna | bdcce4f16be56da40445fec79959b6bc90003573 | [
"MIT"
] | null | null | null | example/cluster.cpp | apppur/canna | bdcce4f16be56da40445fec79959b6bc90003573 | [
"MIT"
] | null | null | null | example/cluster.cpp | apppur/canna | bdcce4f16be56da40445fec79959b6bc90003573 | [
"MIT"
] | null | null | null | #include <pthread.h>
#include <stdio.h>
#include <string>
#include <vector>
#include <queue>
#include "canna_core.h"
#include "canna_random.h"
#include "zmq.hpp"
#define CLIENTS_NUM 10
#define WORKERS_NUM 5
#define WORKER_READY "READY"
static char *self;
static int serial = 0;
static void * client_task(void *args)
{... | 28.354839 | 78 | 0.569776 | apppur |
2929d38f9a77d4eac67e50c5c8ca24b3d587cc12 | 3,007 | cpp | C++ | big-sort-lib/src/visualm.cpp | mvodya/BigSortCollection | d7b217d3ba8d712629c3b856bfb3e426525ca8b2 | [
"MIT"
] | null | null | null | big-sort-lib/src/visualm.cpp | mvodya/BigSortCollection | d7b217d3ba8d712629c3b856bfb3e426525ca8b2 | [
"MIT"
] | null | null | null | big-sort-lib/src/visualm.cpp | mvodya/BigSortCollection | d7b217d3ba8d712629c3b856bfb3e426525ca8b2 | [
"MIT"
] | null | null | null | #include "bigsortlib/visualm.h"
using namespace sortlib;
// Error callback for GLFW
void VisualModule::error_callback(int error, const char* description) {
printf("Error: %s\n", description);
}
// Key events callback from GLFW
void VisualModule::key_callback(GLFWwindow* window, int key, int scancode,
... | 24.25 | 79 | 0.602594 | mvodya |
292b3422a52f93c9ea6792ab9719c1bea791a071 | 55,831 | cpp | C++ | modules/gles31/functional/es31fVertexAttributeBindingTests.cpp | omegaphora/external_deqp | 8460b8642f48b81894c3cc6fc6d423811da60648 | [
"Apache-2.0"
] | 2 | 2016-12-27T00:57:00.000Z | 2020-07-13T13:02:45.000Z | modules/gles31/functional/es31fVertexAttributeBindingTests.cpp | omegaphora/external_deqp | 8460b8642f48b81894c3cc6fc6d423811da60648 | [
"Apache-2.0"
] | null | null | null | modules/gles31/functional/es31fVertexAttributeBindingTests.cpp | omegaphora/external_deqp | 8460b8642f48b81894c3cc6fc6d423811da60648 | [
"Apache-2.0"
] | 4 | 2016-04-27T21:12:29.000Z | 2020-07-13T13:02:48.000Z | /*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES 3.1 Module
* -------------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... | 34.043293 | 245 | 0.698913 | omegaphora |
29314c05f43ced8bb37ef5c5e05c2e3be6232407 | 13,126 | hpp | C++ | include/thread_pool.hpp | diharaw/dwThreadPool | cc21bf479f305897cd7e41ffc5c8968abb05455e | [
"MIT"
] | 25 | 2017-01-25T05:57:24.000Z | 2021-11-21T18:29:27.000Z | include/thread_pool.hpp | diharaw/dwThreadPool | cc21bf479f305897cd7e41ffc5c8968abb05455e | [
"MIT"
] | null | null | null | include/thread_pool.hpp | diharaw/dwThreadPool | cc21bf479f305897cd7e41ffc5c8968abb05455e | [
"MIT"
] | 5 | 2017-05-02T22:32:40.000Z | 2021-09-21T19:42:59.000Z | #pragma once
#include <functional>
#include <thread>
#include <vector>
#include <atomic>
#include <algorithm>
#include <condition_variable>
#define MAX_TASKS 1024u
#define MAX_DEPENDENCIES 16u
#define MAX_CONTINUATIONS 16u
#define MASK MAX_TASKS - 1u
#define TASK_SIZE_BYTES 128
namespace dw
{
// -... | 32.897243 | 135 | 0.30192 | diharaw |
29340a3806fd99227c1b736d933ca66be931a0de | 4,428 | cc | C++ | pw_rpc/nanopb/method_lookup_test.cc | ffzwadd/pigweed | 75e038f0d852b310d135b93061bc769cb8bf90c4 | [
"Apache-2.0"
] | null | null | null | pw_rpc/nanopb/method_lookup_test.cc | ffzwadd/pigweed | 75e038f0d852b310d135b93061bc769cb8bf90c4 | [
"Apache-2.0"
] | null | null | null | pw_rpc/nanopb/method_lookup_test.cc | ffzwadd/pigweed | 75e038f0d852b310d135b93061bc769cb8bf90c4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The Pigweed Authors
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | 34.325581 | 80 | 0.769874 | ffzwadd |
a09599afe4816fdb13c6ccd94d5cc5f7c097eb16 | 3,229 | cpp | C++ | example/decomp/main.cpp | pdobrowo/libcs2 | 25d8bfeadcf3eff6be34caa85000a00e41b3b57e | [
"MIT"
] | null | null | null | example/decomp/main.cpp | pdobrowo/libcs2 | 25d8bfeadcf3eff6be34caa85000a00e41b3b57e | [
"MIT"
] | null | null | null | example/decomp/main.cpp | pdobrowo/libcs2 | 25d8bfeadcf3eff6be34caa85000a00e41b3b57e | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2015-2019 Przemysław Dobrowolski
*
* This file is part of the Configuration Space Library (libcs2), a library
* for creating configuration spaces of various motion planning problems.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... | 27.598291 | 126 | 0.631155 | pdobrowo |
a09719e6e27cd69a7d37181d29ea9ed037e9205f | 2,866 | cpp | C++ | src/scan.cpp | Licmeth/pixiple | 1871124ef2d9d2384cb384095f14d71c5664f62b | [
"MIT"
] | 50 | 2019-01-24T16:23:05.000Z | 2021-12-29T17:38:07.000Z | src/scan.cpp | Licmeth/pixiple | 1871124ef2d9d2384cb384095f14d71c5664f62b | [
"MIT"
] | 5 | 2016-12-26T16:54:38.000Z | 2018-09-28T23:59:26.000Z | src/scan.cpp | Licmeth/pixiple | 1871124ef2d9d2384cb384095f14d71c5664f62b | [
"MIT"
] | 13 | 2019-08-03T07:41:02.000Z | 2022-03-10T05:59:40.000Z | #include "shared.h"
#include "image.h"
#include "window.h"
#include "shared/com.h"
#include <filesystem>
#include <string>
#include <vector>
#include <ShlObj.h>
static bool is_image(const std::wstring& filename) {
const std::wstring extensions[] {
L".jpg", L".jpe", L".jpeg",
L".png", L".gif", ... | 27.037736 | 110 | 0.634682 | Licmeth |
a097b30738eabcde75b2e3ca52a2a82f1a19db38 | 4,051 | hpp | C++ | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/include/agent-framework/module/requests/psme/attach.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 5 | 2019-11-11T07:57:26.000Z | 2022-03-28T08:26:53.000Z | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/include/agent-framework/module/requests/psme/attach.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 3 | 2019-09-05T21:47:07.000Z | 2019-09-17T18:10:45.000Z | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/include/agent-framework/module/requests/psme/attach.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 11 | 2019-07-20T00:16:32.000Z | 2022-01-11T14:17:48.000Z | /*!
* @copyright
* Copyright (c) 2017-2019 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.802548 | 75 | 0.620834 | opencomputeproject |
a09c5e5ab17b7915eb06d1deb8d64f65d0b08380 | 937 | cpp | C++ | examples/reverse/example-reverse-hessian-derivatives-using-eigen.cpp | jargonzombies/autodiff | 2309fe03528f44ce58a44b0c388527b7d3c3aeef | [
"MIT"
] | 991 | 2018-08-12T11:59:15.000Z | 2022-03-28T22:27:59.000Z | examples/reverse/example-reverse-hessian-derivatives-using-eigen.cpp | jargonzombies/autodiff | 2309fe03528f44ce58a44b0c388527b7d3c3aeef | [
"MIT"
] | 166 | 2019-01-16T16:31:31.000Z | 2022-03-30T04:18:13.000Z | examples/reverse/example-reverse-hessian-derivatives-using-eigen.cpp | jargonzombies/autodiff | 2309fe03528f44ce58a44b0c388527b7d3c3aeef | [
"MIT"
] | 123 | 2019-01-20T21:40:46.000Z | 2022-03-23T16:07:50.000Z | // C++ includes
#include <iostream>
using namespace std;
// autodiff include
#include <autodiff/reverse/var.hpp>
#include <autodiff/reverse/var/eigen.hpp>
using namespace autodiff;
// The scalar function for which the gradient is needed
var f(const ArrayXvar& x)
{
return sqrt((x * x).sum()); // sqrt(sum([xi * xi ... | 31.233333 | 106 | 0.618997 | jargonzombies |
a09e6a684f171a522b6ef7ff7a937818c93e8a0c | 2,524 | cpp | C++ | libs/SysmelCompiler/Environment/Fraction.cpp | ronsaldo/sysmel-beta | 14237d780527c6ca1bb34f74195838f78f0c6acc | [
"MIT"
] | 2 | 2021-10-30T15:31:43.000Z | 2021-11-08T09:45:15.000Z | libs/SysmelCompiler/Environment/Fraction.cpp | ronsaldo/sysmel-beta | 14237d780527c6ca1bb34f74195838f78f0c6acc | [
"MIT"
] | null | null | null | libs/SysmelCompiler/Environment/Fraction.cpp | ronsaldo/sysmel-beta | 14237d780527c6ca1bb34f74195838f78f0c6acc | [
"MIT"
] | null | null | null | #include "Environment/Fraction.hpp"
#include "Environment/DivisionByZeroError.hpp"
#include "Environment/Assert.hpp"
namespace Sysmel
{
namespace Environment
{
Fraction Fraction::reduced() const
{
if(numerator.isZero())
return Fraction{LargeInteger{0}, LargeInteger{1}};
auto gcd = LargeInteger::g... | 27.434783 | 124 | 0.745642 | ronsaldo |
a0a146e2ea796883df57f49876eed2eb8fc153e3 | 480 | cpp | C++ | CS Academy/CS Academy - Travel Distance.cpp | akash246/Competitive-Programming-Solutions | 68db69ba8a771a433e5338bc4e837a02d3f89823 | [
"MIT"
] | 28 | 2017-11-08T11:52:11.000Z | 2021-07-16T06:30:02.000Z | CS Academy/CS Academy - Travel Distance.cpp | akash246/Competitive-Programming-Solutions | 68db69ba8a771a433e5338bc4e837a02d3f89823 | [
"MIT"
] | null | null | null | CS Academy/CS Academy - Travel Distance.cpp | akash246/Competitive-Programming-Solutions | 68db69ba8a771a433e5338bc4e837a02d3f89823 | [
"MIT"
] | 30 | 2017-09-01T09:14:27.000Z | 2021-04-12T12:08:56.000Z | #include <iostream>
#include <string>
using namespace std;
int ABS(int n){
return n < 0 ? -1*n : n;
}
int main() {
string s;
cin>>s;
int r = 0;
int c = 0;
for(char ch : s){
if(ch == 'W'){
c--;
}
else if(ch == 'E'){
c++;
}
... | 13.333333 | 32 | 0.329167 | akash246 |
a0a943b6d751922662c9f8c8d73eeba4399918b4 | 5,461 | cpp | C++ | src/game_api/script/usertypes/entities_activefloors_lua.cpp | jaythebusinessgoose/overlunky | 12d8ee353fda01a53d2aa753b539319ed41d940e | [
"MIT"
] | 56 | 2020-11-17T06:13:55.000Z | 2022-03-05T19:21:25.000Z | src/game_api/script/usertypes/entities_activefloors_lua.cpp | jaythebusinessgoose/overlunky | 12d8ee353fda01a53d2aa753b539319ed41d940e | [
"MIT"
] | 99 | 2020-11-19T15:29:59.000Z | 2022-03-28T21:12:50.000Z | src/game_api/script/usertypes/entities_activefloors_lua.cpp | jaythebusinessgoose/overlunky | 12d8ee353fda01a53d2aa753b539319ed41d940e | [
"MIT"
] | 47 | 2020-11-20T03:34:52.000Z | 2022-02-22T17:48:02.000Z | #include "entities_activefloors_lua.hpp"
#include "entities_activefloors.hpp"
#include <sol/sol.hpp>
namespace NEntitiesActiveFloors
{
void register_usertypes(sol::state& lua)
{
lua["Entity"]["as_crushtrap"] = &Entity::as<Crushtrap>;
lua["Entity"]["as_olmec"] = &Entity::as<Olmec>;
lua["Entity"]["as_woode... | 29.203209 | 77 | 0.592749 | jaythebusinessgoose |
a0a9a49fb7cee4cc982a83c5c96147b1ce9a9eeb | 7,121 | cpp | C++ | GameEngineArchitecture/source/Model.cpp | Cubes58/Team_NoName_GameEngine | 5b1f75a61c43a1e1649b5a34a799aab65af70afd | [
"MIT"
] | null | null | null | GameEngineArchitecture/source/Model.cpp | Cubes58/Team_NoName_GameEngine | 5b1f75a61c43a1e1649b5a34a799aab65af70afd | [
"MIT"
] | null | null | null | GameEngineArchitecture/source/Model.cpp | Cubes58/Team_NoName_GameEngine | 5b1f75a61c43a1e1649b5a34a799aab65af70afd | [
"MIT"
] | null | null | null | #include "Model.h"
#include <assimp/postprocess.h>
#include <stb_image/stb_image.h>
#include <iostream>
Model::Model(std::string p_FilePath) {
LoadModel(p_FilePath);
}
Model::Model(const std::string &p_FilePath, bool &p_ModelLoaded) {
p_ModelLoaded = LoadModel(p_FilePath);
}
void Model::Render(const unsigned int p... | 35.078818 | 136 | 0.728409 | Cubes58 |
a0ab9189b149658c98ac880cfd7f32e3c8c1c797 | 901 | cpp | C++ | src/rogue_game/display/player_display.cpp | tanacchi/rogue_game | fd8f655f95932513f6aa63e0c413bbe110a4418a | [
"MIT"
] | 10 | 2018-09-13T14:47:07.000Z | 2022-01-10T11:46:12.000Z | src/rogue_game/display/player_display.cpp | tanacchi/rogue_game | fd8f655f95932513f6aa63e0c413bbe110a4418a | [
"MIT"
] | 13 | 2018-09-18T19:36:32.000Z | 2020-11-12T16:26:22.000Z | src/rogue_game/display/player_display.cpp | tanacchi/rogue_game | fd8f655f95932513f6aa63e0c413bbe110a4418a | [
"MIT"
] | null | null | null | #include <display/player_display.hpp>
#include <utility/point.hpp>
#include <character/player.hpp>
PlayerDisplay::PlayerDisplay(std::size_t x, std::size_t y,
std::size_t width, std::size_t height)
: DisplayPanel(x, y, width, height)
{
}
void PlayerDisplay::show(const Player& player)
{
... | 32.178571 | 92 | 0.624861 | tanacchi |
a0adcd5d80d3cdbf399e4ef4d8bd61402090d5a1 | 1,380 | cpp | C++ | pnc/whole_body_controllers/managers/task_hierarchy_manager.cpp | junhyeokahn/PnC | 388440f7db7b2aedf1e397d0130d806090865c35 | [
"MIT"
] | 25 | 2019-01-31T13:51:34.000Z | 2022-02-08T13:19:01.000Z | pnc/whole_body_controllers/managers/task_hierarchy_manager.cpp | junhyeokahn/PnC | 388440f7db7b2aedf1e397d0130d806090865c35 | [
"MIT"
] | 5 | 2020-06-01T20:48:46.000Z | 2022-02-08T11:42:02.000Z | pnc/whole_body_controllers/managers/task_hierarchy_manager.cpp | junhyeokahn/PnC | 388440f7db7b2aedf1e397d0130d806090865c35 | [
"MIT"
] | 9 | 2018-11-20T22:37:50.000Z | 2021-09-14T17:17:27.000Z | #include <pnc/whole_body_controllers/managers/task_hierarchy_manager.hpp>
TaskHierarchyManager::TaskHierarchyManager(Task *_task, double _w_max,
double _w_min) {
util::PrettyConstructor(2, "TaskHierarchyManager");
task_ = _task;
w_max_ = _w_max;
w_min_ = _w_min;
w_... | 32.857143 | 75 | 0.681884 | junhyeokahn |
a0af6839fa011564f3d40775503e46db2bb146b4 | 26,887 | cpp | C++ | projects/tech-demo-particle/SceneJesusCross.cpp | A-Ribeiro/OpenGLStarter | 0552513f24ce3820b4957b1e453e615a9b77c8ff | [
"MIT"
] | 15 | 2019-01-13T16:07:27.000Z | 2021-09-27T15:18:58.000Z | projects/tech-demo-particle/SceneJesusCross.cpp | A-Ribeiro/OpenGLStarter | 0552513f24ce3820b4957b1e453e615a9b77c8ff | [
"MIT"
] | 1 | 2019-03-14T00:36:35.000Z | 2020-12-29T11:48:09.000Z | projects/tech-demo-particle/SceneJesusCross.cpp | A-Ribeiro/OpenGLStarter | 0552513f24ce3820b4957b1e453e615a9b77c8ff | [
"MIT"
] | 3 | 2020-03-02T21:28:56.000Z | 2021-09-27T15:18:50.000Z | #include "SceneJesusCross.h"
#include <mini-gl-engine/mini-gl-engine.h>
#include "App.h"
using namespace aRibeiro;
using namespace GLEngine;
using namespace GLEngine::Components;
Transform* loadSceneroot();
bool ReplaceMaterial(Transform *element, void* userData) {
ComponentMaterial *material = (Component... | 35.706507 | 128 | 0.643843 | A-Ribeiro |
a0b27076fdee24d494744cc2179e5a8c898e82bf | 1,958 | cpp | C++ | src/base/resource_tracker.cpp | eido5/cubrid | f32dbe7cb90f096035c255d7b5f348438bbb5830 | [
"Apache-2.0",
"BSD-3-Clause"
] | 253 | 2016-03-12T01:03:42.000Z | 2022-03-14T08:24:39.000Z | src/base/resource_tracker.cpp | eido5/cubrid | f32dbe7cb90f096035c255d7b5f348438bbb5830 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1,124 | 2016-03-31T03:48:58.000Z | 2022-03-31T23:44:04.000Z | src/base/resource_tracker.cpp | eido5/cubrid | f32dbe7cb90f096035c255d7b5f348438bbb5830 | [
"Apache-2.0",
"BSD-3-Clause"
] | 268 | 2016-03-02T06:48:44.000Z | 2022-03-04T05:17:24.000Z | /*
* Copyright 2008 Search Solution Corporation
* Copyright 2016 CUBRID Corporation
*
* 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-... | 24.17284 | 107 | 0.680286 | eido5 |
a0b3efc0567d853a1c4a45b3551140878fcc8554 | 44,404 | cpp | C++ | nao_dcm_robot/nao_dcm_driver/src/nao.cpp | costashatz/nao_dcm | b3fc8656e5e8cc4cd354effa203a8cdfd926bf7c | [
"BSD-3-Clause"
] | 10 | 2015-02-14T04:42:48.000Z | 2022-02-28T17:35:38.000Z | nao_dcm_robot/nao_dcm_driver/src/nao.cpp | costashatz/nao_dcm | b3fc8656e5e8cc4cd354effa203a8cdfd926bf7c | [
"BSD-3-Clause"
] | 2 | 2015-03-09T14:59:00.000Z | 2016-04-08T16:50:50.000Z | nao_dcm_robot/nao_dcm_driver/src/nao.cpp | costashatz/nao_dcm | b3fc8656e5e8cc4cd354effa203a8cdfd926bf7c | [
"BSD-3-Clause"
] | 6 | 2015-05-21T02:09:30.000Z | 2021-04-27T14:26:58.000Z | /**
Copyright (c) 2014-2015, Konstantinos Chatzilygeroudis
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditio... | 38.848644 | 142 | 0.587064 | costashatz |
a0b4c2f1c8c4ede43931ff2b88bab70625ddb861 | 703 | cpp | C++ | sample-source/OPENCVBook/chapter03/3.6.1 Staturate Cast/saturate_cast.cpp | doukhee/opencv-study | b7e8a5c916070ebc762c33d7fe307b6fcf88abf4 | [
"MIT"
] | null | null | null | sample-source/OPENCVBook/chapter03/3.6.1 Staturate Cast/saturate_cast.cpp | doukhee/opencv-study | b7e8a5c916070ebc762c33d7fe307b6fcf88abf4 | [
"MIT"
] | null | null | null | sample-source/OPENCVBook/chapter03/3.6.1 Staturate Cast/saturate_cast.cpp | doukhee/opencv-study | b7e8a5c916070ebc762c33d7fe307b6fcf88abf4 | [
"MIT"
] | null | null | null | #include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main()
{
/**
* I(x, t)= min(max(round(r), 0),255)
* 포화 산술 연산 - 어떤 연산의 결과 값을 8비트로 저장을 한다고 할때,
* 8비트 제한 범위를 넘으면 () 또는 255 가운데 가까운 값을 사용하는 것이다.
* OpenCV에서는 행렬에 대해서 연산을 할 경우에는 기본적으로 포화 산술이 적용 된다.
*/
/* Matx 객체 선언 */
Matx<uchar, 2, 2... | 20.085714 | 53 | 0.578947 | doukhee |
a0b4e74e9aae6ad8bc56ad444e3d61562465cb85 | 2,356 | cpp | C++ | fuzz-tests/primes.cpp | deadpool2794/Cp | 26eab96ef8ea336615fa8d6fadaa8e4d7d6f3a3c | [
"MIT"
] | 152 | 2019-04-09T18:26:41.000Z | 2022-03-20T23:19:41.000Z | fuzz-tests/primes.cpp | deadpool2794/Cp | 26eab96ef8ea336615fa8d6fadaa8e4d7d6f3a3c | [
"MIT"
] | 1 | 2020-12-29T03:02:22.000Z | 2020-12-29T03:02:22.000Z | fuzz-tests/primes.cpp | deadpool2794/Cp | 26eab96ef8ea336615fa8d6fadaa8e4d7d6f3a3c | [
"MIT"
] | 36 | 2019-11-28T09:27:01.000Z | 2022-03-10T18:22:13.000Z | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for(int i = a; i < int(b); ++i)
#define trav(a, v) for(auto& a : v)
#define all(x) x.begin(), x.end()
#define sz(x) (int)(x).size()
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
struct prime_sieve {
typedef unsigned char ... | 25.89011 | 61 | 0.556452 | deadpool2794 |
a0b58e750d7ea2bbcada23de261f787acfef5267 | 5,813 | cpp | C++ | digital/PreambleCorrelator.cpp | willcode/PothosComms | 6c6ae8ccb6a9c996a67e2ca646aff79c74bb83fa | [
"BSL-1.0"
] | 14 | 2017-10-28T08:40:08.000Z | 2022-03-19T06:08:55.000Z | digital/PreambleCorrelator.cpp | BelmY/PothosComms | 9aa48b827b3813b3ba2b98773f3359b30ebce346 | [
"BSL-1.0"
] | 22 | 2015-08-25T21:18:13.000Z | 2016-12-31T02:23:47.000Z | digital/PreambleCorrelator.cpp | pothosware/pothos-comms | cff998cca2c9610d3e7e5480fd4fc692c13d3066 | [
"BSL-1.0"
] | 13 | 2018-01-03T15:29:44.000Z | 2022-03-19T06:09:00.000Z | // Copyright (c) 2015-2017 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#include <Pothos/Framework.hpp>
#include <cstdint>
#include <complex>
#include <cassert>
#include <iostream>
//provide __popcnt()
#ifdef _MSC_VER
# include <intrin.h>
#elif __GNUC__
# define __popcnt __builtin_popcount
#else
# error "provide ... | 34.194118 | 134 | 0.63616 | willcode |
a0b8cbac81730c3695003a33d2a4827df1811a4b | 481 | cpp | C++ | Language_Coder/문자열1/자가진단/BasicString107.cpp | NadanKim/CodingTest_JUNGOL | f1f448eb5a107b59bfa196c2682ba89e89431358 | [
"MIT"
] | null | null | null | Language_Coder/문자열1/자가진단/BasicString107.cpp | NadanKim/CodingTest_JUNGOL | f1f448eb5a107b59bfa196c2682ba89e89431358 | [
"MIT"
] | null | null | null | Language_Coder/문자열1/자가진단/BasicString107.cpp | NadanKim/CodingTest_JUNGOL | f1f448eb5a107b59bfa196c2682ba89e89431358 | [
"MIT"
] | null | null | null | #include "BasicString107.h"
/// <summary>
/// 문제
/// 문자열을 입력받아 알파벳 문자만 모두 대문자로 출력하는 프로그램을 작성하시오.
/// 문자열의 길이는 100이하이다.
///
/// 입력 예
/// 1988-Seoul-Olympic!!!
///
/// 출력 예
/// SEOULOLYMPIC
///
/// http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=236&sca=10e0
/// </summary>
void BasicString107::Code()
{
st... | 16.586207 | 75 | 0.586279 | NadanKim |
a0b9fa305d85efdb7f2d6972fefd5660d3fba9ff | 4,955 | cc | C++ | paddle/fluid/operators/save_combine_op.cc | bigo-sg/Paddle | bc16bcda4914d1af76d8192d35ee852a21e12d1c | [
"Apache-2.0"
] | null | null | null | paddle/fluid/operators/save_combine_op.cc | bigo-sg/Paddle | bc16bcda4914d1af76d8192d35ee852a21e12d1c | [
"Apache-2.0"
] | null | null | null | paddle/fluid/operators/save_combine_op.cc | bigo-sg/Paddle | bc16bcda4914d1af76d8192d35ee852a21e12d1c | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 36.167883 | 80 | 0.658325 | bigo-sg |
a0bad0063e69e3863c1aa851d4a4bb70261e6ebc | 1,209 | cpp | C++ | LeetCode/ThousandTwo/1417-reformat_the_string.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1417-reformat_the_string.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1417-reformat_the_string.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 1417. 重新格式化字符串
给你一个混合了数字和字母的字符串 s,其中的字母均为小写英文字母。
请你将该字符串重新格式化,使得任意两个相邻字符的类型都不同。
也就是说,字母后面应该跟着数字,而数字后面应该跟着字母。
请你返回 重新格式化后 的字符串;如果无法按要求重新格式化,则返回一个 空字符串 。
示例 1:
输入:s = "a0b1c2"
输出:"0a1b2c"
解释:"0a1b2c" 中任意两个相邻字符的类型都不同。 "a0b1c2", "0a1b2c", "0c2a1b" 也是满足题目要求的答案。
示例 2:
输入:s = "leetcode"
输出:""... | 14.925926 | 70 | 0.629446 | Ginkgo-Biloba |
a0bae5f8e647819e442ecbad5781a963abf5a134 | 1,425 | cpp | C++ | src/devices/notes/sequencer.cpp | aalin/synthz0r | ecf35b3fec39020e46732a15874b66f07a3e48e9 | [
"MIT"
] | 1 | 2021-12-23T21:14:37.000Z | 2021-12-23T21:14:37.000Z | src/devices/notes/sequencer.cpp | aalin/synthz0r | ecf35b3fec39020e46732a15874b66f07a3e48e9 | [
"MIT"
] | null | null | null | src/devices/notes/sequencer.cpp | aalin/synthz0r | ecf35b3fec39020e46732a15874b66f07a3e48e9 | [
"MIT"
] | null | null | null | #include "sequencer.hpp"
#include <cmath>
constexpr static uint8_t INITIAL_STEPS = 8;
constexpr static uint8_t INITIAL_VELOCITY = 100;
constexpr static uint8_t INITIAL_BPM = 50;
constexpr static uint8_t INITIAL_RATE = 0;
namespace Devices::Notes {
Sequencer::Sequencer() : NoteDevice("Sequencer") {
setupParameters(... | 30.319149 | 145 | 0.643509 | aalin |
a0bf18b000e56cb4262edb0f07438eb2f3455e64 | 3,353 | cpp | C++ | saber/funcs/impl/x86/saber_embedding.cpp | pangge/Anakin | f327267d1ee2038d92d8c704ec9f1a03cb800fc8 | [
"Apache-2.0"
] | null | null | null | saber/funcs/impl/x86/saber_embedding.cpp | pangge/Anakin | f327267d1ee2038d92d8c704ec9f1a03cb800fc8 | [
"Apache-2.0"
] | null | null | null | saber/funcs/impl/x86/saber_embedding.cpp | pangge/Anakin | f327267d1ee2038d92d8c704ec9f1a03cb800fc8 | [
"Apache-2.0"
] | null | null | null |
#include "saber/funcs/impl/x86/saber_embedding.h"
#include "saber/funcs/impl/x86/x86_utils.h"
namespace anakin{
namespace saber {
template <DataType OpDtype>
SaberStatus SaberEmbedding<X86, OpDtype>::init(
const std::vector<Tensor<X86>*>& inputs,
std::vector<Tensor<X86>*>& outputs,
Embeddin... | 35.294737 | 127 | 0.611095 | pangge |
a0bf2b12eb2dd41aa78058679c9ccd6cbaa4d2b1 | 11,173 | hpp | C++ | customlistview.hpp | pengrui2009/qt-admin-template | 89ce3a9cac20d0caee52db8df97d584cd2246c22 | [
"MIT"
] | 1 | 2022-03-31T09:24:13.000Z | 2022-03-31T09:24:13.000Z | customlistview.hpp | ciyeer/qt-admin-template | 54d8219c096f7c05c90a9dd33ebbd68cd4e6cf23 | [
"MIT"
] | null | null | null | customlistview.hpp | ciyeer/qt-admin-template | 54d8219c096f7c05c90a9dd33ebbd68cd4e6cf23 | [
"MIT"
] | 2 | 2021-04-20T10:58:45.000Z | 2022-03-30T11:02:58.000Z | #ifndef CUSTOMNAVDELEGATE_H
#define CUSTOMNAVDELEGATE_H
#include <QListView>
#include <QStyledItemDelegate>
//节点展开模式
enum ExpendMode {
ExpendMode_SingleClick = 0, //单击模式
ExpendMode_DoubleClick = 1, //双击模式
ExpendMode_NoClick = 2, //不可单击双击
};
class CustomListView;
class NavDelegate : public QStyledIt... | 37.243333 | 111 | 0.716907 | pengrui2009 |
a0bfbd2c20128d11369bf5089da174dede576f8b | 7,686 | cpp | C++ | Testing/Operations/albaOpEditNormalsTest.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | Testing/Operations/albaOpEditNormalsTest.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Testing/Operations/albaOpEditNormalsTest.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaOpEditNormalsTest
Authors: Daniele Giunchi - Matteo Giacomoni
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY ... | 32.43038 | 148 | 0.688134 | IOR-BIC |
a0bfde6c347dad60c15fcaf3838192272d197618 | 526 | cc | C++ | src/abc130/enough_array.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc130/enough_array.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc130/enough_array.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
typedef long long ll;
using namespace std;
long long enough_array(ll a[], ll n, ll k) {
ll ans = 0;
ll sum = 0;
int r = 0;
for(int l=0;l<n;l++) {
while(sum < k) {
if(r >= n) {
break;
}
sum += a[r];
r++;
}
if(sum >= k) {
sum -= a... | 12.829268 | 44 | 0.43346 | nryotaro |
a0c250f11d5d956cb3259d3d72f6161a7f00fd81 | 1,483 | cpp | C++ | TallerProgra/problemas10Marzo/B_NotShading.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | TallerProgra/problemas10Marzo/B_NotShading.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | TallerProgra/problemas10Marzo/B_NotShading.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | //note that if there is a black cell in the grid, you can make it black
// in at most 2 operations
// we just need to see if we can do it in 0, 1 or 2.
// 0: operations, it needs to be black already
// 1: is in the same column or row as another black cell
// 2: theres it one black cell
// we print the first of th... | 23.539683 | 72 | 0.489548 | CaDe27 |
a0c43e62763ff69ba8b66ddb40906873e7603d8d | 16,539 | cpp | C++ | Raven.CppClient.Tests/CrudTest.cpp | maximburyak/ravendb-cpp-client | ab284d00bc659e8438c829f1b4a39aa78c31fa88 | [
"MIT"
] | null | null | null | Raven.CppClient.Tests/CrudTest.cpp | maximburyak/ravendb-cpp-client | ab284d00bc659e8438c829f1b4a39aa78c31fa88 | [
"MIT"
] | null | null | null | Raven.CppClient.Tests/CrudTest.cpp | maximburyak/ravendb-cpp-client | ab284d00bc659e8438c829f1b4a39aa78c31fa88 | [
"MIT"
] | null | null | null | #include "pch.h"
//#define __USE_FIDDLER__
#include "TestSuiteBase.h"
#include "DocumentSession.h"
#include "AdvancedSessionOperations.h"
#include "RequestExecutor.h"
#include "User.h"
#include "Family.h"
#include "NullableUser.h"
#include "Arr.h"
#include "Poc.h"
namespace ravendb::client::tests::client
{
class Crud... | 35.491416 | 127 | 0.698652 | maximburyak |
a0c4df6d4a4f0f86192fb526beffa7382aa7c5c8 | 1,843 | hpp | C++ | libs/boost_1_72_0/boost/qvm/detail/mat_assign.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/qvm/detail/mat_assign.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/qvm/detail/mat_assign.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef UUID_47136D2C385411E7BA27D3B681262D2E
#define UUID_47136D2C385411E7BA27D3B681262D2E
#in... | 34.12963 | 79 | 0.640803 | henrywarhurst |
a0c54230530a77482bd12ab47c0275ea014096ed | 9,633 | cpp | C++ | src/jdk.hotspot.agent/linux/native/libsaproc/dwarf.cpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | 1 | 2020-12-26T04:52:15.000Z | 2020-12-26T04:52:15.000Z | src/jdk.hotspot.agent/linux/native/libsaproc/dwarf.cpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | 1 | 2020-12-26T04:57:19.000Z | 2020-12-26T04:57:19.000Z | src/jdk.hotspot.agent/linux/native/libsaproc/dwarf.cpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | 1 | 2021-12-06T01:13:18.000Z | 2021-12-06T01:13:18.000Z | /*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, NTT DATA.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, a... | 29.190909 | 115 | 0.624312 | 1690296356 |
a0c6fa4bf069a12fe5d38dc094816ca3add356f6 | 5,993 | cxx | C++ | madym/tools/tests/test_madym_DCE_lite.cxx | michaelberks/madym_cxx | 647b6e59a3ef7aa6b3f3f58e16d23dc313b7dd16 | [
"Apache-2.0"
] | 1 | 2021-10-04T15:43:15.000Z | 2021-10-04T15:43:15.000Z | madym/tools/tests/test_madym_DCE_lite.cxx | michaelberks/madym_cxx | 647b6e59a3ef7aa6b3f3f58e16d23dc313b7dd16 | [
"Apache-2.0"
] | null | null | null | madym/tools/tests/test_madym_DCE_lite.cxx | michaelberks/madym_cxx | 647b6e59a3ef7aa6b3f3f58e16d23dc313b7dd16 | [
"Apache-2.0"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include <boost/format.hpp>
#include <fstream>
#include <madym/tests/mdm_test_utils.h>
#include <madym/t1_methods/mdm_T1FitterBase.h>
#include <mdm_version.h>
#include <madym/mdm_AIF.h>
#include <madym/dce_models/mdm_DCEModelGenerator.h>
namespace fs = boost::filesystem;
BOOST_AUT... | 32.394595 | 97 | 0.710662 | michaelberks |
a0c911dbc210a025e45adbbeddc40432b92224ed | 21,504 | hpp | C++ | srook/numeric/fixed_point/fixed_point.hpp | falgon/srookCppLibraries | ebcfacafa56026f6558bcd1c584ec774cc751e57 | [
"MIT"
] | 1 | 2018-07-01T07:54:37.000Z | 2018-07-01T07:54:37.000Z | srook/numeric/fixed_point/fixed_point.hpp | falgon/srookCppLibraries | ebcfacafa56026f6558bcd1c584ec774cc751e57 | [
"MIT"
] | null | null | null | srook/numeric/fixed_point/fixed_point.hpp | falgon/srookCppLibraries | ebcfacafa56026f6558bcd1c584ec774cc751e57 | [
"MIT"
] | null | null | null | // Copyright (C) 2011-2020 Roki. Distributed under the MIT License
#ifndef INCLUDED_SROOK_NUMERIC_FIXED_POINT_FIXED_POINT_HPP
#define INCLUDED_SROOK_NUMERIC_FIXED_POINT_FIXED_POINT_HPP
#ifdef _MSC_VER
# if _MSC_VER > 1000
# pragma once
# endif
#endif
#include <srook/numeric/fixed_point/detail/config.hpp>
#i... | 45.463002 | 194 | 0.727679 | falgon |
a0c9c4e4c8f09e7fc7daf6289cf7d0b374fd559e | 1,700 | cpp | C++ | src/maple_me/src/me_ssa_tab.cpp | harmonyos-mirror/OpenArkCompiler-test | 1755550ea22eb185cbef8cc5864fa273caebf95a | [
"MulanPSL-1.0"
] | 796 | 2019-08-30T16:20:33.000Z | 2021-12-25T14:45:06.000Z | src/maple_me/src/me_ssa_tab.cpp | harmonyos-mirror/OpenArkCompiler-test | 1755550ea22eb185cbef8cc5864fa273caebf95a | [
"MulanPSL-1.0"
] | 16 | 2019-08-30T18:04:08.000Z | 2021-09-19T05:02:58.000Z | src/maple_me/src/me_ssa_tab.cpp | harmonyos-mirror/OpenArkCompiler-test | 1755550ea22eb185cbef8cc5864fa273caebf95a | [
"MulanPSL-1.0"
] | 326 | 2019-08-30T16:11:29.000Z | 2021-11-26T12:31:17.000Z | /*
* Copyright (c) [2019-2020] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under the Mulan PSL v1.
* You can use this software according to the terms and conditions of the Mulan PSL v1.
* You may obtain a copy of Mulan PSL v1 at:
*
* http://license.coscl.org.cn/MulanPSL
... | 35.416667 | 103 | 0.679412 | harmonyos-mirror |
a0c9f7c00b6a7533b294d60e43d4be79416df491 | 566 | cc | C++ | src/cf16final/b.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/cf16final/b.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/cf16final/b.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#ifndef _debug
int main() {
ll n;
cin >> n;
ll k = 1;
for(;;) {
if((k + 1ll) * (k + 2ll) / 2ll <= n)
k++;
else
break;
}
ll gap = (k + 1ll) * (k + 2ll) / 2ll - n;
if(gap == 0) {
... | 17.6875 | 45 | 0.353357 | nryotaro |
a0cbef7663edaf61a43eb7a7c94154bb6a57ff9f | 446 | cpp | C++ | modules/animals/lib/animal-i.cpp | mitadel/sandbox | afbab121f7e0aea7c092ca0c0e9088f6f06ad180 | [
"BSD-3-Clause"
] | 2 | 2021-05-26T15:18:00.000Z | 2022-03-24T06:25:39.000Z | modules/animals/lib/animal-i.cpp | mitadel/sandbox | afbab121f7e0aea7c092ca0c0e9088f6f06ad180 | [
"BSD-3-Clause"
] | 3 | 2021-04-24T08:53:25.000Z | 2021-06-27T10:44:09.000Z | modules/animals/lib/animal-i.cpp | mitadel/sandbox | afbab121f7e0aea7c092ca0c0e9088f6f06ad180 | [
"BSD-3-Clause"
] | null | null | null | // declare the module
module;
// declare the module and export it
export module Animal;
// we can have namespaces within modules
namespace mito {
// this class is exported, so it is visible outside, when we import this module
export class Animal {
public:
Animal() {}
~Animal() {}
... | 17.84 | 83 | 0.623318 | mitadel |
a0ce24a1d185a36abeeb2bfa290b55287a7aa77e | 6,095 | cpp | C++ | lib/frtcpp/taskbase_status.cpp | jbarry510/me-405 | f7f7d011794c23d751090de37fb47121d0e1811b | [
"MIT"
] | null | null | null | lib/frtcpp/taskbase_status.cpp | jbarry510/me-405 | f7f7d011794c23d751090de37fb47121d0e1811b | [
"MIT"
] | null | null | null | lib/frtcpp/taskbase_status.cpp | jbarry510/me-405 | f7f7d011794c23d751090de37fb47121d0e1811b | [
"MIT"
] | null | null | null | //**************************************************************************************
/** \file taskbase_status.cpp
* This file contains methods which print the status of each task, showing things
* such as the task's name, its priority, and if enabled, stack usage and number of
* times its loop has run.... | 42.326389 | 88 | 0.637244 | jbarry510 |
a0cf910b2a7922e176c2c0a4d81f8da6ea3a3f73 | 48,175 | cpp | C++ | solid/frame/mprpc/src/mprpcrelayengine.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 26 | 2015-08-25T16:07:58.000Z | 2019-07-05T15:21:22.000Z | solid/frame/mprpc/src/mprpcrelayengine.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-10-15T22:55:15.000Z | 2017-09-19T12:41:10.000Z | solid/frame/mprpc/src/mprpcrelayengine.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-09-15T10:34:52.000Z | 2018-10-30T11:46:46.000Z | // solid/frame/ipc/src/mprpcrelayengine.cpp
//
// Copyright (c) 2017 Valentin Palade (vipalade @ gmail . com)
//
// This file is part of SolidFrame framework.
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.
//
#i... | 42.370273 | 287 | 0.596679 | vipalade |
a0cfc4f4a033ebba4bd07815db33e1f257aa2b20 | 2,576 | cpp | C++ | rEFIt_UEFI/PlatformPOSIX/posix/abort.cpp | acidburn0zzz/CloverBootloader | 0e91bcc0cd396f0f049d539a5d3ef516e574f1dd | [
"BSD-2-Clause"
] | 1 | 2022-03-18T16:46:31.000Z | 2022-03-18T16:46:31.000Z | rEFIt_UEFI/PlatformPOSIX/posix/abort.cpp | OlarilaHackintosh/CloverBootloader | 103e3baaa353c32e05a0ac5f5acc1745667ef348 | [
"BSD-2-Clause"
] | null | null | null | rEFIt_UEFI/PlatformPOSIX/posix/abort.cpp | OlarilaHackintosh/CloverBootloader | 103e3baaa353c32e05a0ac5f5acc1745667ef348 | [
"BSD-2-Clause"
] | null | null | null |
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
#include <stdlib.h> // for abort()
//#if defined(CLOVER_BUILD) || !defined(_MSC_VER)
//void abort(void)
//{
// printf("A fatal error happened. System halted\n");
// while (1) { // tis will avoid warning : Function declared 'no... | 20.608 | 158 | 0.664596 | acidburn0zzz |
a0cfc9e87a63352b005d8785fdb4a961bb20e2d0 | 387 | cpp | C++ | 09_lambda/09_08_usefulness/09_08_00_usefulness.cpp | pAbogn/cpp_courses | 6ffa7da5cc440af3327139a38cfdefcfaae1ebed | [
"MIT"
] | 13 | 2020-09-01T14:57:21.000Z | 2021-11-24T06:00:26.000Z | 09_lambda/09_08_usefulness/09_08_00_usefulness.cpp | pAbogn/cpp_courses | 6ffa7da5cc440af3327139a38cfdefcfaae1ebed | [
"MIT"
] | 5 | 2020-06-11T14:13:00.000Z | 2021-07-14T05:27:53.000Z | 09_lambda/09_08_usefulness/09_08_00_usefulness.cpp | pAbogn/cpp_courses | 6ffa7da5cc440af3327139a38cfdefcfaae1ebed | [
"MIT"
] | 10 | 2021-03-22T07:54:36.000Z | 2021-09-15T04:03:32.000Z | // Lambda + unique
// Remove zeros only + count zeros
#include <iostream>
#include <algorithm>
#include <vector>
int main() {
std::vector<int> v{1,2,0,0,5,0,0,0,3,3,0};
auto it = std::unique(v.begin(), v.end());
v.erase(it, v.end());
for (auto& e : v)
{
std::cout << e << ' ';
}
... | 16.125 | 65 | 0.509044 | pAbogn |
a0d31157daae88f6a9fdd1289f9dd2ca6104d3b0 | 999 | cpp | C++ | Source/Engine/Core/Modular/Platform/WindowsImportDLL.cpp | youngjunh98/Game-Engine | 7ec6356bd2835ba7f7a1119e873acee3e60b35f5 | [
"MIT"
] | null | null | null | Source/Engine/Core/Modular/Platform/WindowsImportDLL.cpp | youngjunh98/Game-Engine | 7ec6356bd2835ba7f7a1119e873acee3e60b35f5 | [
"MIT"
] | 1 | 2020-11-21T10:05:14.000Z | 2020-11-21T10:05:14.000Z | Source/Engine/Core/Modular/Platform/WindowsImportDLL.cpp | youngjunh98/GameEngine | 7ec6356bd2835ba7f7a1119e873acee3e60b35f5 | [
"MIT"
] | null | null | null | #include <Windows.h>
#include <string>
#include "Engine/Core/Modular/ModuleManager.h"
namespace GameEngine
{
namespace Modular
{
ModuleHandle PlatformLoadModule (const PathString& path)
{
HINSTANCE hModule = LoadLibrary (path.c_str ());
if (hModule == NULL)
{
return nullptr;
}
return hModul... | 20.8125 | 110 | 0.706707 | youngjunh98 |
a0daebab932dd01a6b7df35f861939238e72465d | 1,604 | cpp | C++ | problems/chapter12/miiitomi/005.cpp | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | 1 | 2021-07-07T15:46:58.000Z | 2021-07-07T15:46:58.000Z | problems/chapter12/miiitomi/005.cpp | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | 5 | 2021-06-05T14:16:41.000Z | 2021-07-10T07:08:28.000Z | problems/chapter12/miiitomi/005.cpp | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
// 要素数 5 以下の配列の中央値を返す.
int median5(vector<int> &c) {
sort(c.begin(), c.end());
int idx = (int)c.size() / 2;
return c[idx];
}
// 配列 b の中央値の中央値を再帰的に返す.
int medianOfMedians(vector<int> &b) {
if ((int)b.size() <= 5) return med... | 23.588235 | 88 | 0.507481 | tokuma09 |
a0db54a64f8c7047bf52501ae837ffb108b0c555 | 78 | cpp | C++ | Source/General/Interface/IDebugger.cpp | paintdream/paintsnow | 3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781 | [
"MIT"
] | null | null | null | Source/General/Interface/IDebugger.cpp | paintdream/paintsnow | 3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781 | [
"MIT"
] | null | null | null | Source/General/Interface/IDebugger.cpp | paintdream/paintsnow | 3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781 | [
"MIT"
] | null | null | null | #include "IDebugger.h"
using namespace PaintsNow;
IDebugger::~IDebugger() {} | 15.6 | 26 | 0.74359 | paintdream |
a0e6678c3ea06cdb114365cd8e481ab7684ed562 | 42,753 | cc | C++ | src/media/audio/tools/signal_generator/signal_generator.cc | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | 1 | 2020-12-29T17:07:06.000Z | 2020-12-29T17:07:06.000Z | src/media/audio/tools/signal_generator/signal_generator.cc | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | null | null | null | src/media/audio/tools/signal_generator/signal_generator.cc | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2018 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 "src/media/audio/tools/signal_generator/signal_generator.h"
#include <fuchsia/ultrasound/cpp/fidl.h>
#include <zircon/syscalls.h>
#include <zircon/s... | 40.562619 | 100 | 0.693448 | DamieFC |
a0e686a58646629be15d60999450f436769a6059 | 559 | cc | C++ | poj/1/1458.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | 1 | 2015-04-17T09:54:23.000Z | 2015-04-17T09:54:23.000Z | poj/1/1458.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | null | null | null | poj/1/1458.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main(void)
{
string a, b;
while (cin >> a >> b) {
const int N = a.size(), M = b.size();
vector<vector<int> > lcs(N+1, vector<int>(M+1, 0));
for (int i = 1; i <= N; i++) {
for (int j = 1; j <= M; j++) {
if (a[i-1] == b[j-1]) {... | 22.36 | 74 | 0.431127 | eagletmt |
a0eaf0cf00462bb81d34dbe82e6c656d84fe1ce3 | 3,448 | hpp | C++ | include/rectojump/global/config.hpp | Malekblubb/rectojump | 66c04e9a081bd1b830205bb0c515a42eeb4befb6 | [
"MIT"
] | null | null | null | include/rectojump/global/config.hpp | Malekblubb/rectojump | 66c04e9a081bd1b830205bb0c515a42eeb4befb6 | [
"MIT"
] | null | null | null | include/rectojump/global/config.hpp | Malekblubb/rectojump | 66c04e9a081bd1b830205bb0c515a42eeb4befb6 | [
"MIT"
] | null | null | null | //
// Copyright (c) 2013-2021 Christoph Malek
// See LICENSE for more information.
//
#ifndef RJ_GLOBAL_CONFIG_HPP
#define RJ_GLOBAL_CONFIG_HPP
#include "common.hpp"
#include "config_parser.hpp"
#include "errors.hpp"
#include <mlk/filesystem/fs_handle.h>
#include <mlk/signals_slots/slot.h>
namespace rj
{
class con... | 23.14094 | 71 | 0.634861 | Malekblubb |
a0eb22cf8560217ec185b491acacf29bb93326e3 | 427 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/PSODescDepthStencilModeStencilOpMode.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/PSODescDepthStencilModeStencilOpMode.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/PSODescDepthStencilModeStencilOpMode.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
namespace RED4ext
{
enum class PSODescDepthStencilModeStencilOpMode : uint8_t
{
STENCILOP_Keep = 0,
STENCILOP_Zero = 1,
STENCILOP_Replace = 2,
STENCILOP_IncreaseSaturate = 3,
STENCILOP_DecreaseSaturate = 4,
... | 21.35 | 57 | 0.725995 | jackhumbert |
a0f04a4e522a57fa04e06ca4c2d2cb329a712c54 | 2,369 | cpp | C++ | examples/math_expression/main.cpp | FrancoisChabot/abulafia | 4aeefd8d388d68994f9d73bb0f586517737a5174 | [
"BSL-1.0"
] | 42 | 2017-09-21T16:51:12.000Z | 2020-03-12T09:44:32.000Z | examples/math_expression/main.cpp | FrancoisChabot/abulafia | 4aeefd8d388d68994f9d73bb0f586517737a5174 | [
"BSL-1.0"
] | 32 | 2017-09-21T06:31:08.000Z | 2017-10-20T00:52:58.000Z | examples/math_expression/main.cpp | FrancoisChabot/abulafia | 4aeefd8d388d68994f9d73bb0f586517737a5174 | [
"BSL-1.0"
] | 3 | 2018-10-30T11:29:18.000Z | 2019-07-18T08:19:51.000Z | // Copyright 2017 Francois Chabot
// (francois.chabot.dev@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "abulafia/abulafia.h"
#include <iostream>
// This simple example shows how to build... | 29.246914 | 79 | 0.597721 | FrancoisChabot |
a0f169a733654af4db90d342132b13ee77371fe9 | 3,434 | cc | C++ | extensions/shell/browser/system_logs/shell_system_logs_fetcher_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | extensions/shell/browser/system_logs/shell_system_logs_fetcher_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | extensions/shell/browser/system_logs/shell_system_logs_fetcher_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 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 "extensions/shell/browser/system_logs/shell_system_logs_fetcher.h"
#include <memory>
#include <string>
#include <vector>
#include "base/memory/... | 35.770833 | 79 | 0.723937 | zipated |
a0f1bc7fe907c3e1426f734767b4b6ff95d43422 | 1,133 | cpp | C++ | vijos/p1635.cpp | huanghongxun/ACM | b7595bbe6c0d82ceb271e81fca3e787dc4060a55 | [
"Unlicense"
] | 3 | 2018-06-05T13:57:13.000Z | 2020-08-05T14:19:02.000Z | vijos/p1635.cpp | huanghongxun/ACM | b7595bbe6c0d82ceb271e81fca3e787dc4060a55 | [
"Unlicense"
] | null | null | null | vijos/p1635.cpp | huanghongxun/ACM | b7595bbe6c0d82ceb271e81fca3e787dc4060a55 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <queue>
#include <cstring>
#define N 2005
using namespace std;
struct Edge
{
int to, rp;
Edge(){}
Edge(int t, int r) {
to = t;
rp = r;
}
};
Edge graph[N][N];
int graphs[N];
int main()
{
int a, b, r, n;
cin.sync_with_stdio(false);
cin>>n;
memset(graphs, 0, sizeof(graphs));
... | 16.185714 | 54 | 0.496028 | huanghongxun |