hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9dea7ac913556e02f27dbf10208f02a3726addf | 2,666 | cpp | C++ | src/storage/DeleteVertexProcessor.cpp | Reminiscent/nebula | 5d10861705b9396dc81b2ffdd50c56d81f84b437 | [
"Apache-2.0"
] | null | null | null | src/storage/DeleteVertexProcessor.cpp | Reminiscent/nebula | 5d10861705b9396dc81b2ffdd50c56d81f84b437 | [
"Apache-2.0"
] | null | null | null | src/storage/DeleteVertexProcessor.cpp | Reminiscent/nebula | 5d10861705b9396dc81b2ffdd50c56d81f84b437 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2019 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "storage/DeleteVertexProcessor.h"
#include "base/NebulaKeyUtils.h"
DECLARE_bool(enable_vertex_cache);
namespa... | 37.027778 | 91 | 0.580645 | Reminiscent |
b9e1c333ef02d4b0bab28bcb9e7fcb7372476458 | 2,315 | cpp | C++ | micropython/modules/picosystem/hardware.cpp | Fordi/picosystem | 6b91ad198b00507a7ff780a86ce5a2be2f650a07 | [
"MIT"
] | 41 | 2021-10-06T20:29:27.000Z | 2022-03-28T10:45:46.000Z | micropython/modules/picosystem/hardware.cpp | Fordi/picosystem | 6b91ad198b00507a7ff780a86ce5a2be2f650a07 | [
"MIT"
] | 21 | 2021-10-08T05:41:54.000Z | 2022-02-16T11:25:37.000Z | micropython/modules/picosystem/hardware.cpp | Fordi/picosystem | 6b91ad198b00507a7ff780a86ce5a2be2f650a07 | [
"MIT"
] | 15 | 2021-10-03T13:52:31.000Z | 2022-03-13T06:30:42.000Z | #include "hardware/spi.h"
#include "hardware/sync.h"
#include "pico/binary_info.h"
#include "libraries/picosystem.hpp"
#define MP_OBJ_TO_PTR2(o, t) ((t *)(uintptr_t)(o))
using namespace picosystem;
extern "C" {
#include "picosystem.h"
#include "math.h"
#include "cstring"
// hardware
mp_obj_t picosystem_pressed(mp_... | 22.475728 | 73 | 0.589201 | Fordi |
b9e3dea030ad7e2d1bdc410c1a74142c60eb58c5 | 4,137 | cpp | C++ | UnitTests/Angle.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 32 | 2016-10-20T05:55:04.000Z | 2021-11-25T16:34:41.000Z | UnitTests/Angle.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 50 | 2017-01-07T21:40:16.000Z | 2018-01-31T10:04:05.000Z | UnitTests/Angle.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 7 | 2017-02-09T10:02:02.000Z | 2020-07-23T22:49:04.000Z | /*
* Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/Box2D
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this sof... | 54.434211 | 138 | 0.671501 | louis-langholtz |
b9e4c944cb226b76924465cb0b451bb0f424ad36 | 434 | cpp | C++ | demos/UiEditor/SDesignerRoot.cpp | lehoon/soui2 | 50363000a73cbbfde667d3a7757f7025644bb9d5 | [
"MIT"
] | null | null | null | demos/UiEditor/SDesignerRoot.cpp | lehoon/soui2 | 50363000a73cbbfde667d3a7757f7025644bb9d5 | [
"MIT"
] | null | null | null | demos/UiEditor/SDesignerRoot.cpp | lehoon/soui2 | 50363000a73cbbfde667d3a7757f7025644bb9d5 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "SDesignerRoot.h"
namespace SOUI{
SDesignerRoot::SDesignerRoot(void)
{
}
SDesignerRoot::~SDesignerRoot(void)
{
}
void SDesignerRoot::BeforePaint(IRenderTarget *pRT, SPainter &painter)
{
pRT->SelectObject(m_defFont,(IRenderObj**)&painter.oldFont);
}
void SDes... | 18.083333 | 72 | 0.695853 | lehoon |
b9e5c27c0082c9995d574d55d69d069781845c9a | 4,700 | cc | C++ | src/vw/Math/FLANNTree.cc | mdhancher/visionworkbench | d2074e1186a81777e64000a62c4f6cd9a47d3c36 | [
"Apache-2.0"
] | 1 | 2019-06-12T19:42:48.000Z | 2019-06-12T19:42:48.000Z | src/vw/Math/FLANNTree.cc | maxsu/visionworkbench | 34eb3009152d3696471056e65b313d964e658ee8 | [
"Apache-2.0"
] | null | null | null | src/vw/Math/FLANNTree.cc | maxsu/visionworkbench | 34eb3009152d3696471056e65b313d964e658ee8 | [
"Apache-2.0"
] | 1 | 2022-02-26T00:44:27.000Z | 2022-02-26T00:44:27.000Z | // __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... | 43.518519 | 133 | 0.604043 | mdhancher |
b9e60aceec57e1050ee71de9360aaf60c3668584 | 5,382 | cpp | C++ | gtsam/geometry/Cal3Fisheye.cpp | coestreich/gtsam | fc171877f03b70236c5cc59537d5f34f1eb88c86 | [
"BSD-3-Clause"
] | 1 | 2021-08-25T06:06:01.000Z | 2021-08-25T06:06:01.000Z | gtsam/geometry/Cal3Fisheye.cpp | coestreich/gtsam | fc171877f03b70236c5cc59537d5f34f1eb88c86 | [
"BSD-3-Clause"
] | null | null | null | gtsam/geometry/Cal3Fisheye.cpp | coestreich/gtsam | fc171877f03b70236c5cc59537d5f34f1eb88c86 | [
"BSD-3-Clause"
] | null | null | null | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... | 32.227545 | 80 | 0.50576 | coestreich |
b9e67f92db818f200577c6a4da7a4869f8ef16d6 | 1,800 | cpp | C++ | src/storm/graphics/cGraphics.cpp | master312/quantum-kidney | 042e97e9a9998be4fc062eb703c51141ea7bd2e4 | [
"MIT"
] | null | null | null | src/storm/graphics/cGraphics.cpp | master312/quantum-kidney | 042e97e9a9998be4fc062eb703c51141ea7bd2e4 | [
"MIT"
] | null | null | null | src/storm/graphics/cGraphics.cpp | master312/quantum-kidney | 042e97e9a9998be4fc062eb703c51141ea7bd2e4 | [
"MIT"
] | null | null | null | #include "cGraphics.h"
cGraphics::cGraphics(){
width = height = bpp = 0;
title = "";
fullscreen = false;
}
cGraphics::~cGraphics(){
//Shutdown();
}
bool cGraphics::Initialize(int Width, int Height, int Bpp, std::string WindowTitle){
std::cout << "cGraphics ERROR: Template class called" << std::endl;
return false... | 37.5 | 122 | 0.701667 | master312 |
b9e98ed55120cfe68642b4d0db3fd31af0e10702 | 1,880 | cpp | C++ | test/test_si7021.cpp | lorant124/stm32-hal-libraries | 766dc4f81b03e77b73e02a7cd43b8efc540ecff2 | [
"MIT"
] | 29 | 2019-04-23T10:06:12.000Z | 2022-02-15T19:18:20.000Z | test/test_si7021.cpp | lorant124/stm32-hal-libraries | 766dc4f81b03e77b73e02a7cd43b8efc540ecff2 | [
"MIT"
] | 6 | 2019-05-20T07:53:45.000Z | 2022-03-03T19:49:01.000Z | test/test_si7021.cpp | lorant124/stm32-hal-libraries | 766dc4f81b03e77b73e02a7cd43b8efc540ecff2 | [
"MIT"
] | 12 | 2019-05-21T07:54:11.000Z | 2022-03-08T14:38:31.000Z | // Copyright (c) Konstantin Belyalov. All rights reserved.
// Licensed under the MIT license.
#include <gtest/gtest.h>
#include "si7021.h"
#include "test_mocks.h"
using namespace std;
class si7021 : public ::testing::Test {
protected:
void SetUp() override {
I2C_clear_transmit_history();
I2C_clear_transm... | 25.066667 | 68 | 0.709574 | lorant124 |
b9e9a8fe0dc4d136e347684044438f00c039a787 | 2,063 | cc | C++ | file_based_test_driver/base/map_traits_test.cc | firebolt-analytics/file-based-test-driver | b9be145b04cdbbc0262d79f2df09f0bcadf8c709 | [
"Apache-2.0"
] | 9 | 2020-09-11T21:06:46.000Z | 2022-02-15T14:44:30.000Z | file_based_test_driver/base/map_traits_test.cc | firebolt-analytics/file-based-test-driver | b9be145b04cdbbc0262d79f2df09f0bcadf8c709 | [
"Apache-2.0"
] | null | null | null | file_based_test_driver/base/map_traits_test.cc | firebolt-analytics/file-based-test-driver | b9be145b04cdbbc0262d79f2df09f0bcadf8c709 | [
"Apache-2.0"
] | 3 | 2021-01-06T15:45:55.000Z | 2022-01-20T00:47:41.000Z | //
// Copyright 2018 ZetaSQL Authors
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... | 27.506667 | 80 | 0.698013 | firebolt-analytics |
b9ea97a293ac25664306edc49c603b8d37155d95 | 2,896 | cpp | C++ | Game/Graphics/Lighting/DirectionalShadowMap.cpp | Ddelval/OpenGL-project | a80c9c436bf1bf41ae28c27195d45d85ed94af82 | [
"MIT"
] | 1 | 2021-03-08T14:50:35.000Z | 2021-03-08T14:50:35.000Z | Game/Graphics/Lighting/DirectionalShadowMap.cpp | Ddelval/OpenGL-project | a80c9c436bf1bf41ae28c27195d45d85ed94af82 | [
"MIT"
] | null | null | null | Game/Graphics/Lighting/DirectionalShadowMap.cpp | Ddelval/OpenGL-project | a80c9c436bf1bf41ae28c27195d45d85ed94af82 | [
"MIT"
] | null | null | null |
#include "Graphics/Lighting/DirectionalShadowMap.hpp"
#include <climits>
#include <functional>
#include <limits>
#include "GameCubes/Chunk.hpp"
using namespace Lighting;
DirectionalShadowMap::DirectionalShadowMap(int offsetX, int offsetY, Shader& s)
: offsetX(offsetX), offsetY(offsetY), shad(s) {
glGenText... | 35.317073 | 139 | 0.741022 | Ddelval |
b9ee9b22a82ac66176786c6279d1d39b7da6857d | 3,288 | cpp | C++ | day_18.cpp | watmough/Advent-of-Code-2017 | 0de5d71999059a153b56fbcc5f9ed34dfae31bd5 | [
"MIT"
] | null | null | null | day_18.cpp | watmough/Advent-of-Code-2017 | 0de5d71999059a153b56fbcc5f9ed34dfae31bd5 | [
"MIT"
] | null | null | null | day_18.cpp | watmough/Advent-of-Code-2017 | 0de5d71999059a153b56fbcc5f9ed34dfae31bd5 | [
"MIT"
] | null | null | null | // Advent of Code 2017
// Day 18 - Duet
#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <chrono>
using namespace std;
bool step(const vector<string>& iv,const vector<string>& xv,const vector<string>& yv,
map<string,long long>& reg,
vector<long long>& send, long long... | 26.304 | 87 | 0.582725 | watmough |
b9f1afb9f6dc1d6fcc9983ba7c4b1d049a9959a7 | 2,691 | hpp | C++ | src/pal/timer.hpp | NikhitaR-IFX/high-side-switch | 37ce95da04f228a36885c14e2b2046e7137e1996 | [
"MIT"
] | 6 | 2020-09-17T14:34:56.000Z | 2022-01-26T02:41:15.000Z | src/pal/timer.hpp | NikhitaR-IFX/high-side-switch | 37ce95da04f228a36885c14e2b2046e7137e1996 | [
"MIT"
] | 3 | 2020-05-19T12:03:07.000Z | 2021-09-09T10:53:51.000Z | src/pal/timer.hpp | NikhitaR-IFX/high-side-switch | 37ce95da04f228a36885c14e2b2046e7137e1996 | [
"MIT"
] | 3 | 2021-08-30T13:13:55.000Z | 2022-01-26T02:41:11.000Z | /**
* @file timer.hpp
* @brief Timer Platform Abstraction Layer
* @date May 2020
* @copyright Copyright (c) 2019-2020 Infineon Technologies AG
*
* SPDX-License-Identifier: MIT
*/
#include <stdint.h>
#ifndef TIMER_HPP_
#define TIMER_HPP_
/**
* @addtogroup hssPal
* @{
*/
class Timer... | 28.62766 | 72 | 0.505017 | NikhitaR-IFX |
b9f97e37a5ddadfdffb81140acd4b12bf348ce46 | 8,261 | cpp | C++ | gpe/Simulation.cpp | erli1/GPE-Solver | 636fc84bc50144471596ff99cc99edb92a6ef5c1 | [
"MIT"
] | 8 | 2015-08-23T09:12:00.000Z | 2021-09-10T21:41:27.000Z | gpe/Simulation.cpp | erli1/GPE-Solver | 636fc84bc50144471596ff99cc99edb92a6ef5c1 | [
"MIT"
] | 1 | 2018-02-23T19:33:26.000Z | 2018-02-24T09:43:18.000Z | gpe/Simulation.cpp | erli1/GPE-Solver | 636fc84bc50144471596ff99cc99edb92a6ef5c1 | [
"MIT"
] | 5 | 2015-02-18T17:31:41.000Z | 2021-11-09T22:18:45.000Z | #include "Simulation.h"
#include "WavefunctionGaussian.h"
#include "complexType.h"
#include <fstream>
void Simulation::initialize(bool deleteWavefunction) {
if (_sp.size() < 1) {
throw SimulationError("Grid is not initialized");
}
if (_wavefunction && deleteWavefunction) {
delete _wavefunc... | 32.01938 | 128 | 0.652827 | erli1 |
b9f9d3780d93fb7efdfd357e9f6d31703cf917dd | 3,959 | cpp | C++ | vpc/src/v2/model/ListVpcsRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 5 | 2021-03-03T08:23:43.000Z | 2022-02-16T02:16:39.000Z | vpc/src/v2/model/ListVpcsRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | null | null | null | vpc/src/v2/model/ListVpcsRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 7 | 2021-02-26T13:53:35.000Z | 2022-03-18T02:36:43.000Z |
#include "huaweicloud/vpc/v2/model/ListVpcsRequest.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Vpc {
namespace V2 {
namespace Model {
ListVpcsRequest::ListVpcsRequest()
{
limit_ = 0;
limitIsSet_ = false;
marker_ = "";
markerIsSet_ = false;
id_ = "";
idIsSet_ = false;
enterpri... | 21.171123 | 114 | 0.65168 | yangzhaofeng |
6a040c1fc65752d1b5216a070f91ac3aa4c108eb | 308 | hpp | C++ | sampleprj/cpplib/include/BuildScriptTester/cpplib/Example.hpp | astyl/AcrobatomaticBuildSystem | a8a4858d723a0673eeeb6f039af05dc86be638a9 | [
"BSD-2-Clause-FreeBSD"
] | 10 | 2019-01-07T20:17:05.000Z | 2022-03-07T20:46:58.000Z | sampleprj/cpplib/include/BuildScriptTester/cpplib/Example.hpp | astyl/AcrobatomaticBuildSystem | a8a4858d723a0673eeeb6f039af05dc86be638a9 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-09-04T11:27:10.000Z | 2019-09-04T15:02:36.000Z | sampleprj/cpplib/include/BuildScriptTester/cpplib/Example.hpp | astyl/AcrobatomaticBuildSystem | a8a4858d723a0673eeeb6f039af05dc86be638a9 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2019-08-30T10:01:55.000Z | 2022-01-27T21:06:39.000Z | #ifndef __BuildScriptTester_cpplib_Example_H__
#define __BuildScriptTester_cpplib_Example_H__
namespace BuildScriptTester {
namespace cpplib {
/**
*
*/
class Example {
private:
public:
void helloWorld();
};
}} // namespace BuildScriptTester::cpplib
#endif // __BuildScriptTester_cpplib_Example_H__
| 15.4 | 48 | 0.788961 | astyl |
6a05ed0cb466c752e0be1dacf1aef34026c52140 | 6,657 | cpp | C++ | chat_business.cpp | darkbao/Muti-chat-group | 1b60008624e76602c0ae221ebc6e3fbc3bebb3c8 | [
"MIT"
] | null | null | null | chat_business.cpp | darkbao/Muti-chat-group | 1b60008624e76602c0ae221ebc6e3fbc3bebb3c8 | [
"MIT"
] | null | null | null | chat_business.cpp | darkbao/Muti-chat-group | 1b60008624e76602c0ae221ebc6e3fbc3bebb3c8 | [
"MIT"
] | null | null | null | #include "chat_business.h"
#include <stdio.h>
#include <unistd.h>
#include <sys/epoll.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <assert.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <string>
using std::string;
usin... | 21.82623 | 94 | 0.601622 | darkbao |
6a0683904b8c3f012a1f09037b6bba7d3b4526a1 | 15,430 | cpp | C++ | src/axom/klee/tests/klee_geometry_operators.cpp | bmhan12/axom | fbee125aec6357340f35b6fd5d0d4a62a3c80733 | [
"BSD-3-Clause"
] | 86 | 2019-04-12T20:39:37.000Z | 2022-01-28T17:06:08.000Z | src/axom/klee/tests/klee_geometry_operators.cpp | bmhan12/axom | fbee125aec6357340f35b6fd5d0d4a62a3c80733 | [
"BSD-3-Clause"
] | 597 | 2019-04-25T22:36:16.000Z | 2022-03-31T20:21:54.000Z | src/axom/klee/tests/klee_geometry_operators.cpp | bmhan12/axom | fbee125aec6357340f35b6fd5d0d4a62a3c80733 | [
"BSD-3-Clause"
] | 21 | 2019-06-27T15:53:08.000Z | 2021-09-30T20:17:41.000Z | // Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and
// other Axom Project Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include "axom/klee/GeometryOperators.hpp"
#include "axom/primal/geometry/Vector.hpp"
#include <cmath>
#include <stde... | 34.137168 | 84 | 0.658782 | bmhan12 |
6a0cb74677aca4495499d635c1d3e08e95258276 | 578 | cpp | C++ | ExprAssignment/4.2OGLEDALO.cpp | kilarionov/cppTopics | 94461d25832b53e6c40c374fb2ff1695b3dfe3c7 | [
"MIT"
] | null | null | null | ExprAssignment/4.2OGLEDALO.cpp | kilarionov/cppTopics | 94461d25832b53e6c40c374fb2ff1695b3dfe3c7 | [
"MIT"
] | null | null | null | ExprAssignment/4.2OGLEDALO.cpp | kilarionov/cppTopics | 94461d25832b53e6c40c374fb2ff1695b3dfe3c7 | [
"MIT"
] | 1 | 2019-05-24T03:44:06.000Z | 2019-05-24T03:44:06.000Z | // OGLEDALO.cpp
#include <iostream>
using namespace std;
main()
{
int otrazeno, dig1plusDig2, dig1plusDig3, dig2plusDig3,
dig1, dig2, dig3 ;
char const DELIMITER = ' ' ;
cin >>otrazeno >>dig1plusDig2 >>dig1plusDig3 >>dig2plusDig3 ;
dig1 = (dig1plusDig2 + dig1plusDig3 - dig2plusDig3) / 2 ;
dig3 = dig1plusDig3... | 32.111111 | 75 | 0.628028 | kilarionov |
6a0cb9d4dabc5324a329a2f1b7e97ae690ce0429 | 755 | hpp | C++ | include/UI/BackgroundEnvViewController.hpp | Raemien/CustomBackgroundsQuest | 40ad901b33075420f63d6088f0280013cc5321c1 | [
"MIT"
] | 4 | 2021-02-03T08:53:53.000Z | 2022-03-14T06:02:35.000Z | include/UI/BackgroundEnvViewController.hpp | Raemien/CustomBackgroundsQuest | 40ad901b33075420f63d6088f0280013cc5321c1 | [
"MIT"
] | 1 | 2021-09-14T17:45:34.000Z | 2021-09-15T13:51:39.000Z | include/UI/BackgroundEnvViewController.hpp | Raemien/CustomBackgroundsQuest | 40ad901b33075420f63d6088f0280013cc5321c1 | [
"MIT"
] | 2 | 2021-09-09T01:21:23.000Z | 2022-02-13T09:14:11.000Z | #include "questui/shared/CustomTypes/Components/Settings/IncrementSetting.hpp"
#include "questui/shared/BeatSaberUI.hpp"
#include "custom-types/shared/macros.hpp"
#include "HMUI/ViewController.hpp"
DECLARE_CLASS_CODEGEN(CustomBackgrounds, BackgroundEnvViewController, HMUI::ViewController,
DECLARE_INSTANCE_FIELD(Un... | 68.636364 | 195 | 0.823841 | Raemien |
6a0e8b4ff67fc70193e4e52e90916e7b607b57f4 | 600 | cpp | C++ | 1047.cpp | barroslipe/urionlinejudge | a20d8199d9a92b30ea394a6c949967d2fc51aa34 | [
"MIT"
] | null | null | null | 1047.cpp | barroslipe/urionlinejudge | a20d8199d9a92b30ea394a6c949967d2fc51aa34 | [
"MIT"
] | null | null | null | 1047.cpp | barroslipe/urionlinejudge | a20d8199d9a92b30ea394a6c949967d2fc51aa34 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int hora_inicial, minuto_inicial, hora_final, minuto_final, tempo_inicial, tempo_final, tempo_decorrido;
cin >> hora_inicial >> minuto_inicial >> hora_final >> minuto_final;
tempo_inicial = 60*hora_inicial + minuto_inicial;
tempo_final = 60*ho... | 26.086957 | 108 | 0.675 | barroslipe |
6a0ebdf590fdf62fdedce13b2206433e7bcf9885 | 4,774 | cc | C++ | src/span_analyzer_doc_xml_handler.cc | Transmission-Line-Software/SpanAnalyzer | 37d5f1f849f4c11d83f767b5539845c18ddc371b | [
"Unlicense"
] | 4 | 2017-04-29T19:55:53.000Z | 2020-12-20T13:44:03.000Z | src/span_analyzer_doc_xml_handler.cc | Transmission-Line-Software/SpanAnalyzer | 37d5f1f849f4c11d83f767b5539845c18ddc371b | [
"Unlicense"
] | null | null | null | src/span_analyzer_doc_xml_handler.cc | Transmission-Line-Software/SpanAnalyzer | 37d5f1f849f4c11d83f767b5539845c18ddc371b | [
"Unlicense"
] | 1 | 2017-12-19T02:13:43.000Z | 2017-12-19T02:13:43.000Z | // This is free and unencumbered software released into the public domain.
// For more information, please refer to <http://unlicense.org/>
#include "spananalyzer/span_analyzer_doc_xml_handler.h"
#include "spananalyzer/span_xml_handler.h"
wxXmlNode* SpanAnalyzerDocXmlHandler::CreateNode(
const SpanAnalyzerDoc& d... | 30.8 | 80 | 0.647256 | Transmission-Line-Software |
6a110fe7b8d78395faa45118f2ed76bc5f47f744 | 555 | cpp | C++ | code/Math/matrix.cpp | zrz1996/ACM-Template | 5bd2999480275ad7e1cffc7c1f2c85fa727f0620 | [
"MIT"
] | 1 | 2017-05-22T02:51:30.000Z | 2017-05-22T02:51:30.000Z | code/Math/matrix.cpp | zrz1996/ACM-Template | 5bd2999480275ad7e1cffc7c1f2c85fa727f0620 | [
"MIT"
] | null | null | null | code/Math/matrix.cpp | zrz1996/ACM-Template | 5bd2999480275ad7e1cffc7c1f2c85fa727f0620 | [
"MIT"
] | null | null | null | struct matrix_t {
int x[N + 1][N + 1];
matrix_t(int v) {
memset(x, 0, sizeof(x));
for (int i = 1; i <= N; ++i) x[i][i] = v;
}
matrix_t operator*(const matrix_t &r) {
matrix_t p = 0;
for (int k = 1; k <= N; ++k) {
for (int i = 1; i <= N; ++i) {
if (x[i][k] == 0) continue;
for (int j = 1; j <= N; +... | 19.137931 | 43 | 0.414414 | zrz1996 |
6a18fd98ee341fb61d250eeae85ebc9ed2773978 | 342 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_CreateTmplClassDeclEntity.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_CreateTmplClassDeclEntity.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_CreateTmplClassDeclEntity.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_CreateTmplClassDeclEntity.cpp
//
#include "smtc_CreateTmplClassDeclEntity.h"
// semantic
#include "smtc_TmplClassDeclEntity.h"
#define LZZ_INLINE inline
namespace smtc
{
EntityPtr createTmplClassDeclEntity (TmplClassDeclPtr const & tmpl_class_decl)
{
return new TmplClassDeclEntity (tmpl_class_decl);
... | 21.375 | 80 | 0.80117 | SuperDizor |
6a22799c3efaba7d8bb25609318b83d215f17f3a | 13,517 | cpp | C++ | Libraries/Geometry/Hull2D.cpp | jodavis42/WelderEngineRevamp | 1b8776c53857e66b2c933321e965bbe12f0df61e | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Code/Foundation/Geometry/Hull2D.cpp | WelderUpdates/WelderEngineRevamp | 1c665239566e9c7156926852f7952948d9286d7d | [
"MIT"
] | null | null | null | Code/Foundation/Geometry/Hull2D.cpp | WelderUpdates/WelderEngineRevamp | 1c665239566e9c7156926852f7952948d9286d7d | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#include "Precompiled.hpp"
namespace Geometry
{
namespace
{
const Vec3 cWorldPlaneNormal = Vec3(real(0.0), real(0.0), real(1.0));
const real cWorldPlaneOffset = real(0.0);
const real cPointRadius = real(0.075);
const uint cInvalidPointId = uint(-1);
const ByteColor cDefaultPointColor... | 26.503922 | 107 | 0.640601 | jodavis42 |
6a2340632b5d64e03a5044ee41d9d452a991b8f5 | 3,294 | cpp | C++ | tgfx/src/gpu/opengl/GLClampedGradientEffect.cpp | cy-j/libpag | 9b1636a0a67ad5e009d60c6c348034790d247692 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | 2 | 2022-02-26T16:10:30.000Z | 2022-03-18T01:28:40.000Z | tgfx/src/gpu/opengl/GLClampedGradientEffect.cpp | cy-j/libpag | 9b1636a0a67ad5e009d60c6c348034790d247692 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | null | null | null | tgfx/src/gpu/opengl/GLClampedGradientEffect.cpp | cy-j/libpag | 9b1636a0a67ad5e009d60c6c348034790d247692 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... | 49.164179 | 100 | 0.680024 | cy-j |
6a2369c2868a62e52830440e6d6f5610daaebf98 | 5,199 | hpp | C++ | libember/Headers/ember/glow/util/Validation.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 78 | 2015-07-31T14:46:38.000Z | 2022-03-28T09:28:28.000Z | libember/Headers/ember/glow/util/Validation.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 81 | 2015-08-03T07:58:19.000Z | 2022-02-28T16:21:19.000Z | libember/Headers/ember/glow/util/Validation.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 49 | 2015-08-03T12:53:10.000Z | 2022-03-17T17:25:49.000Z | /*
libember -- C++ 03 implementation of the Ember+ Protocol
Copyright (C) 2012-2016 Lawo GmbH (http://www.lawo.com).
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef __LIBEMBER_GLOW_UTIL_VALIDA... | 38.798507 | 100 | 0.583381 | purefunsolutions |
6a24ba0a714fc192b32b2fe5f81887cf1dd7899c | 2,356 | cxx | C++ | BuyingCheap.cxx | jackytck/topcoder | 5a83ce478d4f05aeb97062f8a30aa1d6fbc969d3 | [
"MIT"
] | null | null | null | BuyingCheap.cxx | jackytck/topcoder | 5a83ce478d4f05aeb97062f8a30aa1d6fbc969d3 | [
"MIT"
] | null | null | null | BuyingCheap.cxx | jackytck/topcoder | 5a83ce478d4f05aeb97062f8a30aa1d6fbc969d3 | [
"MIT"
] | null | null | null | // BEGIN CUT HERE
// PROBLEM STATEMENT
//
Steve would like to buy a new car. He isn't wealthy, so he would prefer a reasonably cheap car. The only problem is that the quality of the cheapest cars is... let's say questionable.
Thus Steve decided to make a list of car prices and to buy a car with the third low... | 21.035714 | 184 | 0.640917 | jackytck |
6a276addc2f1e1879b70b8ea5d287e4b3f79ddd1 | 2,255 | hpp | C++ | batteries/net/internal/escape.hpp | cblauvelt/batteries | 3f894bfd15972abd62a965d88d70c17aaeff443e | [
"Apache-2.0"
] | null | null | null | batteries/net/internal/escape.hpp | cblauvelt/batteries | 3f894bfd15972abd62a965d88d70c17aaeff443e | [
"Apache-2.0"
] | 6 | 2019-12-24T19:36:29.000Z | 2022-03-13T23:54:59.000Z | batteries/net/internal/escape.hpp | cblauvelt/batteries | 3f894bfd15972abd62a965d88d70c17aaeff443e | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 The Batteries 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 ... | 28.544304 | 79 | 0.731264 | cblauvelt |
6a2bec2852457cb8a55daac9a4d024a32a0dfef5 | 10,801 | hh | C++ | src/Doc/TagFactory.hh | appertly/hphpdoc | 2bb855a11588ff2bfa39c3309f0ca81b147cc4f6 | [
"Apache-2.0"
] | 4 | 2016-06-13T15:33:16.000Z | 2018-10-18T18:48:47.000Z | src/Doc/TagFactory.hh | appertly/hphpdoc | 2bb855a11588ff2bfa39c3309f0ca81b147cc4f6 | [
"Apache-2.0"
] | 2 | 2016-12-23T16:28:23.000Z | 2017-02-26T17:52:53.000Z | src/Doc/TagFactory.hh | appertly/hphpdoc | 2bb855a11588ff2bfa39c3309f0ca81b147cc4f6 | [
"Apache-2.0"
] | 3 | 2017-02-25T16:57:11.000Z | 2018-10-18T18:49:03.000Z | <?hh // strict
/**
* Hphpdoc
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... | 39.134058 | 128 | 0.482363 | appertly |
6a2cfbbbd5d93eace7f8be90944728d7998d4f10 | 1,209 | ipp | C++ | third_party/include/mvscxx/oglplus/enums/blend_equation_names.ipp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | third_party/include/mvscxx/oglplus/enums/blend_equation_names.ipp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | third_party/include/mvscxx/oglplus/enums/blend_equation_names.ipp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | // File implement/oglplus/enums/blend_equation_names.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/blend_equation.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2014 Matus Chochlik.
// Distributed under the Boost Software ... | 25.1875 | 73 | 0.772539 | Simmesimme |
6a3825d52b6f5d7d5979c18144bc87c2673fcf23 | 1,016 | hpp | C++ | program/range_argument_queue.hpp | caitisgreat/jkgfxmod | f861441a751e438e6bb1b930fb611e728bd44b61 | [
"MIT"
] | 57 | 2019-03-11T20:29:42.000Z | 2022-03-11T19:26:01.000Z | program/range_argument_queue.hpp | caitisgreat/jkgfxmod | f861441a751e438e6bb1b930fb611e728bd44b61 | [
"MIT"
] | 71 | 2019-03-31T14:39:58.000Z | 2022-02-12T05:25:39.000Z | program/range_argument_queue.hpp | caitisgreat/jkgfxmod | f861441a751e438e6bb1b930fb611e728bd44b61 | [
"MIT"
] | 10 | 2019-05-14T21:02:57.000Z | 2021-06-06T23:19:16.000Z | #pragma once
#include "abstract_argument_queue.hpp"
namespace jkgm {
template <typename ItT>
class range_argument_queue : public abstract_argument_queue {
private:
ItT range_begin, range_end;
public:
range_argument_queue(ItT const &range_begin, ItT const &range_end)
: ran... | 23.090909 | 79 | 0.567913 | caitisgreat |
6a3906c2f3da542459ffc05a670f98e4ac31a1d8 | 1,695 | cpp | C++ | qabstractslider_hook_c.cpp | mariuszmaximus/qt5pas-aarch64-linux-gnu | c60bbcfa5b0d7c4fe18bb21e5f2f424a5b658c1b | [
"Apache-2.0"
] | null | null | null | qabstractslider_hook_c.cpp | mariuszmaximus/qt5pas-aarch64-linux-gnu | c60bbcfa5b0d7c4fe18bb21e5f2f424a5b658c1b | [
"Apache-2.0"
] | null | null | null | qabstractslider_hook_c.cpp | mariuszmaximus/qt5pas-aarch64-linux-gnu | c60bbcfa5b0d7c4fe18bb21e5f2f424a5b658c1b | [
"Apache-2.0"
] | null | null | null | //******************************************************************************
// Copyright (c) 2005-2013 by Jan Van hijfte
//
// See the included file COPYING.TXT for details about the copyright.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the i... | 31.388889 | 89 | 0.735693 | mariuszmaximus |
6a39c08e2e12acef13d5a8afa0c7d084ba832144 | 551 | hh | C++ | include/ncpp/CellStyle.hh | grendello/notcursespp | bc04b1445c7e50fc3cb7b3c7f0fc15b8781d2f31 | [
"BSD-3-Clause"
] | null | null | null | include/ncpp/CellStyle.hh | grendello/notcursespp | bc04b1445c7e50fc3cb7b3c7f0fc15b8781d2f31 | [
"BSD-3-Clause"
] | null | null | null | include/ncpp/CellStyle.hh | grendello/notcursespp | bc04b1445c7e50fc3cb7b3c7f0fc15b8781d2f31 | [
"BSD-3-Clause"
] | 1 | 2020-02-13T02:00:06.000Z | 2020-02-13T02:00:06.000Z | #ifndef __NCPP_CELL_STYLE_HH
#define __NCPP_CELL_STYLE_HH
#include <cstdint>
#include <notcurses.h>
#include "_flag_enum_operator_helpers.hh"
namespace ncpp
{
enum class CellStyle : uint32_t
{
Standout = CELL_STYLE_STANDOUT,
Underline = CELL_STYLE_UNDERLINE,
Reverse = CELL_STYLE_REVERSE,
Blink = CE... | 19.678571 | 41 | 0.736842 | grendello |
6a39c40252bbb6d869bf6712fa52ac3ec3b3c260 | 1,386 | cpp | C++ | BrcmWLFixup/kern_start.cpp | RehabMan/BrcmWLFixup | 077157a7736bf962651e30b1ce59311c92ba1e1b | [
"BSD-3-Clause"
] | 9 | 2017-06-12T14:04:31.000Z | 2019-12-04T11:06:03.000Z | BrcmWLFixup/kern_start.cpp | RehabMan/BrcmWLFixup | 077157a7736bf962651e30b1ce59311c92ba1e1b | [
"BSD-3-Clause"
] | null | null | null | BrcmWLFixup/kern_start.cpp | RehabMan/BrcmWLFixup | 077157a7736bf962651e30b1ce59311c92ba1e1b | [
"BSD-3-Clause"
] | 4 | 2017-10-18T02:36:08.000Z | 2021-06-15T06:14:45.000Z | //
// kern_start.cpp
// BrcmWLFixup
//
// Copyright © 2017 Vanilla. All rights reserved.
//
#include <Headers/plugin_start.hpp>
#include <Headers/kern_api.hpp>
#include "kern_brcm.hpp"
static BRCM brcm;
// kernel versioning
static KernelVersion kernMajorVersion; // from kern_brcm.hpp
static KernelMinorVersi... | 19.25 | 88 | 0.727994 | RehabMan |
6a3ec4e9d2ec89ecc9f3ce44cbc0e5fccf0dfe05 | 1,023 | cpp | C++ | Graph Theory/LCA by Binary Lifting.cpp | smurfer69/templates | ba765ca0a39f8920c2c7f9cb7a3779bd0cf04902 | [
"MIT"
] | null | null | null | Graph Theory/LCA by Binary Lifting.cpp | smurfer69/templates | ba765ca0a39f8920c2c7f9cb7a3779bd0cf04902 | [
"MIT"
] | null | null | null | Graph Theory/LCA by Binary Lifting.cpp | smurfer69/templates | ba765ca0a39f8920c2c7f9cb7a3779bd0cf04902 | [
"MIT"
] | null | null | null | const int N = 1e5+3;
vector<int> adj[N];
struct lca{
vector<int> h; // level of ith node
vector<vector<int>> dp; // dp[i][j] = binary parent 2^j of ith node
// dp[i][j] = parent that is distance 2^j on top of ith node
void dfs(int cur, int par){
h[cur] = h[par]+1;
dp[cur][0] = par;
... | 26.921053 | 71 | 0.398827 | smurfer69 |
6a4117b15041d9be18e954076f3f2c69f2fdfd15 | 176 | cpp | C++ | src/thing.cpp | jkrueger/phosphorus | e36d3c4b81b4327a983469116f066fdeefc9104e | [
"MIT"
] | null | null | null | src/thing.cpp | jkrueger/phosphorus | e36d3c4b81b4327a983469116f066fdeefc9104e | [
"MIT"
] | null | null | null | src/thing.cpp | jkrueger/phosphorus | e36d3c4b81b4327a983469116f066fdeefc9104e | [
"MIT"
] | null | null | null | #include "thing.hpp"
#include "shading.hpp"
bool thing_t::occluded(const ray_t& ray, float_t d) const {
shading_info_t info;
info.d = d;
return intersect(ray, info);
}
| 17.6 | 59 | 0.698864 | jkrueger |
6a4543bf06703f8e48a3478b120814bd0d780307 | 1,250 | cpp | C++ | 451-sort-characters-by-frequency/sort-characters-by-frequency_[AC1_9ms].cpp | i-square/LeetCode | 9b15114b7a3de8638d44b3030edb72f41d9a274e | [
"MIT"
] | 1 | 2019-10-09T11:25:10.000Z | 2019-10-09T11:25:10.000Z | 451-sort-characters-by-frequency/sort-characters-by-frequency_[AC1_9ms].cpp | i-square/LeetCode | 9b15114b7a3de8638d44b3030edb72f41d9a274e | [
"MIT"
] | null | null | null | 451-sort-characters-by-frequency/sort-characters-by-frequency_[AC1_9ms].cpp | i-square/LeetCode | 9b15114b7a3de8638d44b3030edb72f41d9a274e | [
"MIT"
] | 1 | 2021-03-31T08:45:51.000Z | 2021-03-31T08:45:51.000Z | // Given a string, sort it in decreasing order based on the frequency of characters.
//
// Example 1:
//
// Input:
// "tree"
//
// Output:
// "eert"
//
// Explanation:
// 'e' appears twice while 'r' and 't' both appear once.
// So 'e' must appear before both 'r' and 't'. Therefore "eetr" is also a valid answer.
//
//
/... | 19.84127 | 87 | 0.5472 | i-square |
6a479bf69b4a2519e425cf7dfded40ee117a4369 | 4,419 | cpp | C++ | src/surface_color_quantity.cpp | hydrocarborane/polyscope | bee34c22cd7ac1b1e01686b55b7b8ceeee20d2fe | [
"MIT"
] | 930 | 2018-02-19T16:38:29.000Z | 2022-03-30T22:16:01.000Z | src/surface_color_quantity.cpp | hydrocarborane/polyscope | bee34c22cd7ac1b1e01686b55b7b8ceeee20d2fe | [
"MIT"
] | 142 | 2018-02-19T16:14:28.000Z | 2022-03-25T13:51:08.000Z | src/surface_color_quantity.cpp | hydrocarborane/polyscope | bee34c22cd7ac1b1e01686b55b7b8ceeee20d2fe | [
"MIT"
] | 92 | 2018-05-13T01:41:04.000Z | 2022-03-28T03:26:44.000Z | // Copyright 2017-2019, Nicholas Sharp and the Polyscope contributors. http://polyscope.run.
#include "polyscope/surface_color_quantity.h"
#include "polyscope/polyscope.h"
#include "imgui.h"
namespace polyscope {
SurfaceColorQuantity::SurfaceColorQuantity(std::string name, SurfaceMesh& mesh_, std::string definedOn_... | 31.340426 | 120 | 0.647205 | hydrocarborane |
6a4c766a9dfcd47372e014ff839cb1abc6fef289 | 4,673 | cpp | C++ | src/shipmentmanagementform.cpp | lacriment/Hayyam | 488f274944df61562e19b02145a6fdbcf7dc88b1 | [
"MIT"
] | 2 | 2016-05-03T07:38:34.000Z | 2020-12-13T22:31:32.000Z | src/shipmentmanagementform.cpp | lacriment/Hayyam | 488f274944df61562e19b02145a6fdbcf7dc88b1 | [
"MIT"
] | null | null | null | src/shipmentmanagementform.cpp | lacriment/Hayyam | 488f274944df61562e19b02145a6fdbcf7dc88b1 | [
"MIT"
] | null | null | null | #include "shipmentmanagementform.hpp"
#include "ui_shipmentmanagementform.h"
#include "../lib/db/connection.hpp"
#include "../lib/models/shipment.hpp"
#include "../lib/helpers/stringhelper.hpp"
#include "shipmenteditform.hpp"
#include "customermanagementform.hpp"
#include "customerselectionform.hpp"
#include <QTable... | 37.087302 | 155 | 0.656966 | lacriment |
c69deddd9e51a98a7b6c55ee5a61661adea7cb9c | 179 | cpp | C++ | 1359-count-all-valid-pickup-and-delivery-options/1359-count-all-valid-pickup-and-delivery-options.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | 1 | 2022-02-27T09:01:07.000Z | 2022-02-27T09:01:07.000Z | 1359-count-all-valid-pickup-and-delivery-options/1359-count-all-valid-pickup-and-delivery-options.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | null | null | null | 1359-count-all-valid-pickup-and-delivery-options/1359-count-all-valid-pickup-and-delivery-options.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | null | null | null | class Solution {
public:
int countOrders(int n) {
long res=1, mod =1e9+7;
for(int i=1;i<=n;i++)
res=res*(i*2-1)*i%mod;
return res;
}
}; | 19.888889 | 34 | 0.47486 | champmaniac |
c69ee5e25e0e2402ad087f0970fc4f15d4fcb62f | 1,562 | hpp | C++ | src/basics/ploidy_map.hpp | Schaudge/octopus | d0cc5d0840aefdfefae5af8595e3330620106054 | [
"MIT"
] | 278 | 2016-10-03T16:30:49.000Z | 2022-03-25T05:59:32.000Z | src/basics/ploidy_map.hpp | Schaudge/octopus | d0cc5d0840aefdfefae5af8595e3330620106054 | [
"MIT"
] | 229 | 2016-10-13T14:07:35.000Z | 2022-03-19T18:59:58.000Z | src/basics/ploidy_map.hpp | Schaudge/octopus | d0cc5d0840aefdfefae5af8595e3330620106054 | [
"MIT"
] | 37 | 2016-10-28T22:47:54.000Z | 2022-03-20T07:28:43.000Z | // Copyright (c) 2015-2021 Daniel Cooke
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
#ifndef ploidy_map_hpp
#define ploidy_map_hpp
#include <unordered_map>
#include <vector>
#include "config/common.hpp"
namespace octopus {
class PloidyMap
{
public:
PloidyMap(... | 31.877551 | 131 | 0.722151 | Schaudge |
c69f1f73310466df143f56779e015bd6ea702f01 | 2,397 | cpp | C++ | source/blood/src/choke.cpp | madame-rachelle/Raze | 67c8187d620e6cf9e99543cab5c5746dd31007af | [
"RSA-MD"
] | null | null | null | source/blood/src/choke.cpp | madame-rachelle/Raze | 67c8187d620e6cf9e99543cab5c5746dd31007af | [
"RSA-MD"
] | null | null | null | source/blood/src/choke.cpp | madame-rachelle/Raze | 67c8187d620e6cf9e99543cab5c5746dd31007af | [
"RSA-MD"
] | null | null | null | //-------------------------------------------------------------------------
/*
Copyright (C) 2010-2019 EDuke32 developers and contributors
Copyright (C) 2019 Nuke.YKT
This file is part of NBlood.
NBlood is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License versio... | 27.238636 | 109 | 0.619524 | madame-rachelle |
c6a18b06aa09f1c7523bea8b684902c610c9b7d9 | 17,370 | cpp | C++ | src/frameworks/av/services/audiopolicy/common/managerdefinitions/src/AudioPort.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/av/services/audiopolicy/common/managerdefinitions/src/AudioPort.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/av/services/audiopolicy/common/managerdefinitions/src/AudioPort.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 app... | 35.304878 | 99 | 0.615199 | dAck2cC2 |
c6a1be0fee1373583318ac89b3c90ac6244344ae | 386 | cpp | C++ | 14.4. Data Structures/main.cpp | joaovmalheiros/Exercicios-Para-Revisao-Cplusplus | b9d523f863fd112b2b7fe72142a7128d5d95badc | [
"MIT"
] | null | null | null | 14.4. Data Structures/main.cpp | joaovmalheiros/Exercicios-Para-Revisao-Cplusplus | b9d523f863fd112b2b7fe72142a7128d5d95badc | [
"MIT"
] | null | null | null | 14.4. Data Structures/main.cpp | joaovmalheiros/Exercicios-Para-Revisao-Cplusplus | b9d523f863fd112b2b7fe72142a7128d5d95badc | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
//Nesting structures: structures can be nested in such a way that an element of a structure is itself another structure:
struct movies_t {
string title;
int year;
};
struct friends_t {
string name;
string email;
movies_t favorite_movie;
}charlie, maria;
... | 16.782609 | 120 | 0.696891 | joaovmalheiros |
c6a9757d75852f3086eeb1d622e7478a46990e40 | 3,239 | cpp | C++ | plugins/single_plugins/idle.cpp | eayus/wayfire | e71beff56eb8d82b16d02a48efc66fa127886d35 | [
"MIT"
] | null | null | null | plugins/single_plugins/idle.cpp | eayus/wayfire | e71beff56eb8d82b16d02a48efc66fa127886d35 | [
"MIT"
] | null | null | null | plugins/single_plugins/idle.cpp | eayus/wayfire | e71beff56eb8d82b16d02a48efc66fa127886d35 | [
"MIT"
] | null | null | null | extern "C"
{
#include <wlr/types/wlr_idle.h>
}
#include "plugin.hpp"
#include "output.hpp"
#include "core.hpp"
#include "config.hpp"
class wayfire_idle_core : public wf_custom_data_t
{
bool idle_enabled = true;
wlr_idle_timeout *timeout = NULL;
wf::wl_listener_wrapper on_idle, on_resume;
wf_option dp... | 24.171642 | 98 | 0.602964 | eayus |
c6aa7634a0b173ba850a6514a0b07dea87d4159e | 1,961 | hpp | C++ | src/structures/graph_factory_graphviz.hpp | sequoia-mso/sequoia-core | d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe | [
"Apache-2.0"
] | 7 | 2016-11-12T17:55:03.000Z | 2021-04-28T20:23:27.000Z | src/structures/graph_factory_graphviz.hpp | sequoia-mso/sequoia-core | d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe | [
"Apache-2.0"
] | null | null | null | src/structures/graph_factory_graphviz.hpp | sequoia-mso/sequoia-core | d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe | [
"Apache-2.0"
] | 4 | 2015-05-12T13:51:54.000Z | 2020-06-07T22:01:28.000Z | /*
* This file is part of the Sequoia MSO Solver.
*
* Copyright 2012 Alexander Langer, Theoretical Computer Science,
* RWTH Aachen University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 28.838235 | 75 | 0.716981 | sequoia-mso |
c6aac69f2468c3dc3d02b7d76775a27e9923559d | 9,460 | cpp | C++ | StaticLib/Sources/SkyBox.cpp | Esentiel/dx3d | caf8423b69032518c3abeab08781190c41947b63 | [
"MIT"
] | null | null | null | StaticLib/Sources/SkyBox.cpp | Esentiel/dx3d | caf8423b69032518c3abeab08781190c41947b63 | [
"MIT"
] | 18 | 2019-09-18T15:21:03.000Z | 2020-01-28T21:43:08.000Z | StaticLib/Sources/SkyBox.cpp | Esentiel/dx3d | caf8423b69032518c3abeab08781190c41947b63 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "SkyBox.h"
#include <d3d11.h>
#include <DirectXMath.h>
#include "TextureManager.h"
#include "Mesh.h"
#include "Transformations.h"
#include "GameException.h"
#include "RenderScene.h"
#include "Camera.h"
#include "ShaderManager.h"
using namespace Library;
SkyBox::SkyBox() :
m_transformati... | 28.841463 | 181 | 0.742918 | Esentiel |
c6ac3f010c98be0c970fde4d0c45b1079fc0fd8e | 7,528 | cc | C++ | cc/sheet-to-torg.cc | acorg/acmacs-whocc | af508bd4651ffb565cd4cf771200540918b1b2bd | [
"MIT"
] | null | null | null | cc/sheet-to-torg.cc | acorg/acmacs-whocc | af508bd4651ffb565cd4cf771200540918b1b2bd | [
"MIT"
] | null | null | null | cc/sheet-to-torg.cc | acorg/acmacs-whocc | af508bd4651ffb565cd4cf771200540918b1b2bd | [
"MIT"
] | null | null | null | #include "acmacs-base/range-v3.hh"
#include "acmacs-base/log.hh"
#include "acmacs-base/string.hh"
#include "acmacs-base/string-split.hh"
#include "acmacs-base/string-join.hh"
#include "acmacs-whocc/sheet-to-torg.hh"
#include "acmacs-whocc/data-fix.hh"
// ----------------------------------------------------------------... | 47.64557 | 175 | 0.507439 | acorg |
c6b0a6994d79f9c49ed4946b2f38b3b9ff6f919c | 5,212 | cpp | C++ | debugger/src/socsim_plugin/uart.cpp | qshan/riscv_vhdl | ccf68cd3c685499356605cfc80f01454ee5b98e1 | [
"BSD-2-Clause"
] | 1 | 2021-03-14T21:50:38.000Z | 2021-03-14T21:50:38.000Z | debugger/src/socsim_plugin/uart.cpp | qshan/riscv_vhdl | ccf68cd3c685499356605cfc80f01454ee5b98e1 | [
"BSD-2-Clause"
] | null | null | null | debugger/src/socsim_plugin/uart.cpp | qshan/riscv_vhdl | ccf68cd3c685499356605cfc80f01454ee5b98e1 | [
"BSD-2-Clause"
] | null | null | null | /**
* @file
* @copyright Copyright 2016 GNSS Sensor Ltd. All right reserved.
* @author Sergey Khabarov - sergeykhbr@gmail.com
* @brief UART functional model.
*/
#include "api_core.h"
#include "uart.h"
namespace debugger {
static const uint32_t UART_STATUS_TX_FULL = 0x00000001;
static const uint32_... | 31.780488 | 80 | 0.540675 | qshan |
c6b107024bce60439acb0fa76eddfadd5bc42026 | 450 | hpp | C++ | include/Components/Pins/OutputPin.hpp | Ethan13310/NanoTekSpice | d69550213a7607662653c52d8f34e5b565714a30 | [
"MIT"
] | 2 | 2018-06-29T10:17:51.000Z | 2018-07-04T13:01:53.000Z | include/Components/Pins/OutputPin.hpp | Ethan13310/NanoTekSpice | d69550213a7607662653c52d8f34e5b565714a30 | [
"MIT"
] | null | null | null | include/Components/Pins/OutputPin.hpp | Ethan13310/NanoTekSpice | d69550213a7607662653c52d8f34e5b565714a30 | [
"MIT"
] | 3 | 2021-03-03T15:29:13.000Z | 2022-02-22T15:44:44.000Z | /*
** EPITECH PROJECT, 2018
** NanoTekSpice
** File description:
** OutputPin.hpp
*/
#pragma once
#include "Components/IComponent.hpp"
#include "Components/Pins/Pin.hpp"
namespace nts
{
class OutputPin final : public Pin
{
public:
OutputPin(IComponent *component, std::size_t pin);
~OutputPin() = defau... | 17.307692 | 62 | 0.697778 | Ethan13310 |
c6b489246328412d68b3ff27616d9e22b8137611 | 7,023 | cpp | C++ | scene/resources/scene_library.cpp | Segs/Engine | 754aabfc2708a46f764979a604871633152ce479 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 8 | 2019-09-03T19:58:19.000Z | 2021-06-18T07:11:26.000Z | scene/resources/scene_library.cpp | Segs/Engine | 754aabfc2708a46f764979a604871633152ce479 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 24 | 2019-09-03T17:35:45.000Z | 2020-10-27T14:36:02.000Z | scene/resources/scene_library.cpp | nemerle/SegsEngine | b9dd0b5481b92d956befa72c746758d33a1a08c9 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 6 | 2019-09-27T15:44:35.000Z | 2021-01-23T18:52:51.000Z | /* http://www.segs.dev/
* Copyright (c) 2006 - 2020 SEGS Team (see AUTHORS.md)
* This software is licensed under the terms of the 3-clause BSD License.
* See LICENSE.md for details.
*/
#include "scene_library.h"
#include "scene/resources/texture.h"
#include "scene/resources/packed_scene.h"
#include "core/method_bi... | 33.28436 | 188 | 0.702264 | Segs |
c6bae9ffb2ee74b20da755cfc4a1eab6a5ce2a0b | 369,307 | cpp | C++ | 3rdparty/bgfx/3rdparty/glslang/glslang/MachineIndependent/glslang_tab.cpp | Pength-TH/egal-D-engine | f16a8def566f678cb324bd901768d32f4412396f | [
"Apache-2.0"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | 3rdparty/bgfx/3rdparty/glslang/glslang/MachineIndependent/glslang_tab.cpp | Pength-TH/egal-D-engine | f16a8def566f678cb324bd901768d32f4412396f | [
"Apache-2.0"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | 3rdparty/bgfx/3rdparty/glslang/glslang/MachineIndependent/glslang_tab.cpp | Pength-TH/egal-D-engine | f16a8def566f678cb324bd901768d32f4412396f | [
"Apache-2.0"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | /* A Bison parser, made by GNU Bison 3.0.4. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by... | 44.873269 | 258 | 0.535887 | Pength-TH |
c6bc1e50719ed7d18db2e8e87d351ff8220a4e3b | 132,942 | cpp | C++ | src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp | forgottenlands/ForgottenCore406 | 5dbbef6b3b0b17c277fde85e40ec9fdab0b51ad1 | [
"OpenSSL"
] | null | null | null | src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp | forgottenlands/ForgottenCore406 | 5dbbef6b3b0b17c277fde85e40ec9fdab0b51ad1 | [
"OpenSSL"
] | null | null | null | src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp | forgottenlands/ForgottenCore406 | 5dbbef6b3b0b17c277fde85e40ec9fdab0b51ad1 | [
"OpenSSL"
] | null | null | null | /*
* Copyright (C) 2008 - 2012 TrinityCore <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2012 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; ... | 40.592977 | 265 | 0.543478 | forgottenlands |
c6be34520e246bd1ef4df623fd38419ed36205b3 | 10,173 | cc | C++ | src/rdb_protocol/wire_func.cc | ma-he-sh/rethinkdb | 80add7a5aaf1b9d6add8c5cc0d1c3f268abb322c | [
"Apache-2.0"
] | null | null | null | src/rdb_protocol/wire_func.cc | ma-he-sh/rethinkdb | 80add7a5aaf1b9d6add8c5cc0d1c3f268abb322c | [
"Apache-2.0"
] | null | null | null | src/rdb_protocol/wire_func.cc | ma-he-sh/rethinkdb | 80add7a5aaf1b9d6add8c5cc0d1c3f268abb322c | [
"Apache-2.0"
] | null | null | null | // Copyright 2010-2015 RethinkDB, all rights reserved.
#include "rdb_protocol/wire_func.hpp"
#include "containers/archive/optional.hpp"
#include "containers/archive/stl_types.hpp"
#include "containers/archive/archive.hpp"
#include "rdb_protocol/env.hpp"
#include "rdb_protocol/func.hpp"
#include "rdb_protocol/protocol.... | 31.593168 | 89 | 0.659393 | ma-he-sh |
c6ceb5515b48f30ba1853837eff2df67be58dc33 | 8,698 | cpp | C++ | hash/hashsha512.cpp | kozok-dev/samples | 2a33da9ba458a26bc0be373320323a63641e3582 | [
"CC0-1.0"
] | null | null | null | hash/hashsha512.cpp | kozok-dev/samples | 2a33da9ba458a26bc0be373320323a63641e3582 | [
"CC0-1.0"
] | null | null | null | hash/hashsha512.cpp | kozok-dev/samples | 2a33da9ba458a26bc0be373320323a63641e3582 | [
"CC0-1.0"
] | null | null | null | #include "hashsha512.h"
#define SHA512CALC(a, b, c, d, e, f, g, h, t, data, cd) \
t = (Rotate(e, 14) ^ Rotate(e, 18) ^ Rotate(e, 41)) + (e & (f ^ g) ^ g) + h + data + cd; \
d += t; t += (Rotate(a, 28) ^ Rotate(a, 34) ^ Rotate(a, 39)) + (a & (b | c) | b & c);
BYTE HashSHA512::getHashSize() {
return 64;
}
B... | 43.273632 | 104 | 0.566912 | kozok-dev |
c6d29d269a27360918d1e31ef8b356b9d87492a8 | 7,995 | cpp | C++ | src/server/connection.cpp | asaveljevs/osrm-backend | 15f0ca8ddaa35c5b4d93c25afa72e81e1fb40c3e | [
"BSD-2-Clause"
] | 13 | 2019-02-21T02:02:41.000Z | 2021-09-09T13:49:31.000Z | src/server/connection.cpp | asaveljevs/osrm-backend | 15f0ca8ddaa35c5b4d93c25afa72e81e1fb40c3e | [
"BSD-2-Clause"
] | 288 | 2019-02-21T01:34:04.000Z | 2021-03-27T12:19:10.000Z | src/server/connection.cpp | asaveljevs/osrm-backend | 15f0ca8ddaa35c5b4d93c25afa72e81e1fb40c3e | [
"BSD-2-Clause"
] | 4 | 2019-06-21T20:51:59.000Z | 2021-01-13T09:22:24.000Z | #include "server/connection.hpp"
#include "server/request_handler.hpp"
#include "server/request_parser.hpp"
#include <boost/algorithm/string/predicate.hpp>
#include <boost/assert.hpp>
#include <boost/bind.hpp>
#include <boost/iostreams/filter/gzip.hpp>
#include <boost/iostreams/filtering_stream.hpp>
#include <iterato... | 37.013889 | 99 | 0.611257 | asaveljevs |
c6d39805bfaa92b5bd7098c070ff1776e4db570d | 6,363 | cpp | C++ | src/can_io.cpp | Saki-Chen/ros_esdcan_bridge | 62d2b64c61c9336e90aeed0ced75986cf50b01fa | [
"BSD-3-Clause"
] | null | null | null | src/can_io.cpp | Saki-Chen/ros_esdcan_bridge | 62d2b64c61c9336e90aeed0ced75986cf50b01fa | [
"BSD-3-Clause"
] | null | null | null | src/can_io.cpp | Saki-Chen/ros_esdcan_bridge | 62d2b64c61c9336e90aeed0ced75986cf50b01fa | [
"BSD-3-Clause"
] | null | null | null | #include <ros_esdcan_bridge/can_io.h>
#include <iostream>
#include <algorithm>
namespace esdcan
{
CanBase::CanBase(int net, int32_t rx_queuesize, int32_t rx_timeout_ms, int32_t tx_queuesize, int32_t tx_timeout_ms, uint32_t ntcan_baud, bool object_mode)
: _rx_queuesize(rx_queuesize), _is_open(false), _is_o... | 29.873239 | 158 | 0.563099 | Saki-Chen |
c6d3fc7eaa0d174afa703a09c67e82c9b0b6ef9d | 3,050 | cc | C++ | gltracesim/src/stats/variable_distribution.cc | JRPan/gltracesim | 79708f503047922538ca2983392c0e9f99a4345a | [
"BSD-3-Clause"
] | 11 | 2018-06-12T01:38:52.000Z | 2021-05-21T19:53:27.000Z | gltracesim/src/stats/variable_distribution.cc | JRPan/gltracesim | 79708f503047922538ca2983392c0e9f99a4345a | [
"BSD-3-Clause"
] | null | null | null | gltracesim/src/stats/variable_distribution.cc | JRPan/gltracesim | 79708f503047922538ca2983392c0e9f99a4345a | [
"BSD-3-Clause"
] | 3 | 2019-03-31T15:00:50.000Z | 2021-12-07T22:05:03.000Z | #include <cmath>
#include "stats/variable_distribution.hh"
#include "stats/variable_distribution_impl.hh"
namespace gltracesim {
namespace stats {
VariableDistribution::VariableDistribution()
{
// Do nothing
}
VariableDistribution::VariableDistribution(
size_t min_count, size_t filter_count, size_t filter_s... | 22.592593 | 73 | 0.57082 | JRPan |
c6d4117bc22820a2b3fdddf8bd35a21f0b3fdd86 | 3,454 | cpp | C++ | Code/UnitTests/FoundationTest_Plugin1/FoundationTest_Plugin1.cpp | alinoctavian/ezEngine | 0312c8d777c05ac58911f3fa879e4fd7efcfcb66 | [
"MIT"
] | null | null | null | Code/UnitTests/FoundationTest_Plugin1/FoundationTest_Plugin1.cpp | alinoctavian/ezEngine | 0312c8d777c05ac58911f3fa879e4fd7efcfcb66 | [
"MIT"
] | null | null | null | Code/UnitTests/FoundationTest_Plugin1/FoundationTest_Plugin1.cpp | alinoctavian/ezEngine | 0312c8d777c05ac58911f3fa879e4fd7efcfcb66 | [
"MIT"
] | 1 | 2022-03-28T15:57:46.000Z | 2022-03-28T15:57:46.000Z | #include <TestFramework/Framework/TestFramework.h>
#include <TestFramework/Utilities/ConstructionCounter.h>
#define ezFoundationTest_Plugin1 "ezFoundationTest_Plugin1"
#define ezFoundationTest_Plugin2 "ezFoundationTest_Plugin2"
#include <Foundation/Configuration/CVar.h>
#include <Foundation/Configuration/Plugi... | 28.545455 | 120 | 0.735669 | alinoctavian |
c6d91a51bc7ccd90a9fac3893fd8f8ada8399876 | 16,096 | cpp | C++ | srcs/utils/opengl/Camera.cpp | tnicolas42/bomberman | 493d7243fabb1e5b6d5adfdcb5eb5973869b83a2 | [
"MIT"
] | 6 | 2020-03-13T16:45:13.000Z | 2022-03-30T18:20:48.000Z | srcs/utils/opengl/Camera.cpp | tnicolas42/bomberman | 493d7243fabb1e5b6d5adfdcb5eb5973869b83a2 | [
"MIT"
] | 191 | 2020-03-02T14:47:19.000Z | 2020-06-03T08:13:00.000Z | srcs/utils/opengl/Camera.cpp | tnicolas42/bomberman | 493d7243fabb1e5b6d5adfdcb5eb5973869b83a2 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include "Camera.hpp"
#include "Logging.hpp"
#include "Inputs.hpp"
// -- Constructors -------------------------------------------------------------
/**
* @brief Construct a new Camera:: Camera object
*
* @param ratio Ratio (width / height)
* @param pos Position
* @param up Up vector
* @param y... | 25.268446 | 100 | 0.655691 | tnicolas42 |
c6dea7920952d1383826b7594ea8d37dfd60980e | 50,173 | cpp | C++ | src/qt/blocknetcoincontrol.cpp | luusluus/blocknet | f028653c40938491cbfd991bd73b7bb0952aceaa | [
"MIT"
] | 122 | 2019-05-08T22:15:42.000Z | 2022-03-18T08:12:48.000Z | src/qt/blocknetcoincontrol.cpp | luusluus/blocknet | f028653c40938491cbfd991bd73b7bb0952aceaa | [
"MIT"
] | 67 | 2019-10-30T19:12:16.000Z | 2022-03-06T14:42:00.000Z | src/qt/blocknetcoincontrol.cpp | luusluus/blocknet | f028653c40938491cbfd991bd73b7bb0952aceaa | [
"MIT"
] | 58 | 2019-05-24T10:27:19.000Z | 2022-03-10T20:55:29.000Z | // Copyright (c) 2018-2019 The Blocknet developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/blocknetcoincontrol.h>
#include <qt/addresstablemodel.h>
#include <qt/bitcoinunits.h>
#include <qt/optionsmodel.h>
... | 43.439827 | 179 | 0.610946 | luusluus |
c6df3be9cd4eaed710e662e1edf4b14bfab545a0 | 710 | hpp | C++ | strategy/serial/SerialSender.hpp | ger-unicamp/VSSS | 3942fb29d07f1527bf1ee5abde4028755b474b93 | [
"MIT"
] | null | null | null | strategy/serial/SerialSender.hpp | ger-unicamp/VSSS | 3942fb29d07f1527bf1ee5abde4028755b474b93 | [
"MIT"
] | null | null | null | strategy/serial/SerialSender.hpp | ger-unicamp/VSSS | 3942fb29d07f1527bf1ee5abde4028755b474b93 | [
"MIT"
] | 1 | 2018-10-28T01:40:13.000Z | 2018-10-28T01:40:13.000Z | /*
* Code for write on Arduino Serial
*
* Based on http://www.cplusplus.com/forum/beginner/67479/
*/
#ifndef _ARDUINO_SERIAL_H_
#define _ARDUINO_SERIAL_H_
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <termios.h>
#include <iostream>
#include <stdexcept>
... | 18.205128 | 86 | 0.715493 | ger-unicamp |
c6df805dc18de5d049d8b2de6b5b1ecc11775007 | 1,088 | cpp | C++ | src/Externals/log4cpp/src/TimeStamp.cpp | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | 22 | 2019-06-13T01:16:44.000Z | 2022-03-29T02:42:39.000Z | src/Externals/log4cpp/src/TimeStamp.cpp | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | 26 | 2019-09-20T06:46:05.000Z | 2022-03-11T08:07:14.000Z | src/Externals/log4cpp/src/TimeStamp.cpp | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | 14 | 2019-07-15T06:42:39.000Z | 2022-02-15T10:32:28.000Z | /*
* TimeStamp.cpp
*
* Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2001, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#include <log4cpp/TimeStamp.hh>
#include <cstring>
#ifdef LOG4CPP_HAVE_GETTIMEOFDAY
#... | 20.148148 | 79 | 0.669118 | benjaminlarson |
c6e2f3d476ae170da57ed8c10bd5c6122998be84 | 2,220 | cpp | C++ | src/tokenizer.cpp | syusui-s/illu | 4f4b9280c68b5191378b986903d4a94409388254 | [
"MIT"
] | null | null | null | src/tokenizer.cpp | syusui-s/illu | 4f4b9280c68b5191378b986903d4a94409388254 | [
"MIT"
] | null | null | null | src/tokenizer.cpp | syusui-s/illu | 4f4b9280c68b5191378b986903d4a94409388254 | [
"MIT"
] | null | null | null | #include "tokenizer.hpp"
namespace lexer {
//////////////////////////////////
// Token
/**
* Convert Token to Element if possible
*
* @return Element*
*/
model::sp_Element Token::to_element()
{
using namespace tokenizer;
switch (this->type) {
// Data Types
case TokenType::IDENTIFIER:
return... | 28.461538 | 91 | 0.672523 | syusui-s |
c6e3cf772408a879d1b815cb3035b19bece895b6 | 14,643 | cpp | C++ | src/support_data/ossimNitfCommon.cpp | martidi/ossim | 44268fa9d7fc5a3038642e702e85ccd339a4ff9f | [
"MIT"
] | null | null | null | src/support_data/ossimNitfCommon.cpp | martidi/ossim | 44268fa9d7fc5a3038642e702e85ccd339a4ff9f | [
"MIT"
] | null | null | null | src/support_data/ossimNitfCommon.cpp | martidi/ossim | 44268fa9d7fc5a3038642e702e85ccd339a4ff9f | [
"MIT"
] | 1 | 2018-10-11T11:36:16.000Z | 2018-10-11T11:36:16.000Z | //----------------------------------------------------------------------------
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: David Burken
//
// Description: Utility class for global nitf methods.
//
//--------------------------------------------------------... | 27.016605 | 115 | 0.526053 | martidi |
c6e845cdb8b28b43b12cf1e7cec48994873e0053 | 136 | cpp | C++ | exmathlib/exmathlib/Source.cpp | IWeidl/ExMath-Library | ff809f4040c37003170f94bdb15f4edbf5bed1dd | [
"MIT"
] | 1 | 2016-04-07T18:20:42.000Z | 2016-04-07T18:20:42.000Z | exmathlib/exmathlib/Source.cpp | Dasttann777/ExMath-Library | ff809f4040c37003170f94bdb15f4edbf5bed1dd | [
"MIT"
] | 4 | 2016-04-07T07:47:56.000Z | 2016-04-10T11:19:22.000Z | exmathlib/exmathlib/Source.cpp | IWeidl/ExMath-Library | ff809f4040c37003170f94bdb15f4edbf5bed1dd | [
"MIT"
] | null | null | null | #include "exmath.h"
using namespace std;
int main()
{
Fraction a(1, 2);
cout << Fraction::Add(a, Fraction(1, 2));
cin.get();
} | 17 | 43 | 0.595588 | IWeidl |
c6ee4cbc7c8720d75458c6229c2613ae908fb2ab | 294 | cpp | C++ | Castlevania/ChangeScene.cpp | ctelotuong/CaslteVania | dd4631a4895b0b91d5d8f80ba505dad7c4d81fab | [
"MIT"
] | null | null | null | Castlevania/ChangeScene.cpp | ctelotuong/CaslteVania | dd4631a4895b0b91d5d8f80ba505dad7c4d81fab | [
"MIT"
] | null | null | null | Castlevania/ChangeScene.cpp | ctelotuong/CaslteVania | dd4631a4895b0b91d5d8f80ba505dad7c4d81fab | [
"MIT"
] | null | null | null | #include "ChangeScene.h"
namespace static_object
{
ChangeScene::ChangeScene(float x, float y, int ID_SCENE)
{
this->x = x;
this->y = y;
this->ID_SCENE = ID_SCENE;
}
void ChangeScene::GetBBox(float& l, float& t, float& r, float& b)
{
l = x;
t = y;
r = l + 32;
b = t + 32;
}
} | 17.294118 | 66 | 0.598639 | ctelotuong |
c6ef644f0366e6368704db19395649d24d919321 | 129 | hxx | C++ | src/Providers/UNIXProviders/HostedClusterSAP/UNIX_HostedClusterSAP_DARWIN.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/HostedClusterSAP/UNIX_HostedClusterSAP_DARWIN.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/HostedClusterSAP/UNIX_HostedClusterSAP_DARWIN.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_DARWIN
#ifndef __UNIX_HOSTEDCLUSTERSAP_PRIVATE_H
#define __UNIX_HOSTEDCLUSTERSAP_PRIVATE_H
#endif
#endif
| 10.75 | 41 | 0.852713 | brunolauze |
c6efb6297c3e9168e61115ed95e2c6e894209802 | 1,534 | cpp | C++ | SRC/main.cpp | wenyan4work/alens | 49cdea4ffb9b870991718c393390f70762dc25fd | [
"Apache-2.0"
] | 2 | 2021-09-24T20:21:33.000Z | 2021-09-25T02:32:13.000Z | SRC/main.cpp | wenyan4work/alens | 49cdea4ffb9b870991718c393390f70762dc25fd | [
"Apache-2.0"
] | null | null | null | SRC/main.cpp | wenyan4work/alens | 49cdea4ffb9b870991718c393390f70762dc25fd | [
"Apache-2.0"
] | 2 | 2021-09-21T23:02:51.000Z | 2022-02-07T03:01:48.000Z | #include "TubuleSystem.hpp"
#include "SimToolbox/Util/Logger.hpp"
#include <string>
#include <vector>
#include <mpi.h>
/*! \brief Main function
*
* \param argc number of input arguments
* \param **argv Command line argument array
* \return int 0=success, 1=error
*/
int main(int argc, char **argv) {
Eigen::... | 28.943396 | 79 | 0.631682 | wenyan4work |
c6f1c03eba9f89181df4b76c141482471ecc88fd | 36 | cpp | C++ | test/autogen/functional@on.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | test/autogen/functional@on.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | test/autogen/functional@on.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #include "jln/mp/functional/on.hpp"
| 18 | 35 | 0.75 | jonathanpoelen |
c6f24305585bf82b03f0ae8ab2d53df30a74e80e | 1,085 | cpp | C++ | alib/src/a_slice.cpp | moissinac/csvfix | 06cd5638e3a3bb0049fb7138c72211aef972c8d4 | [
"MIT"
] | 4 | 2022-01-25T15:54:29.000Z | 2022-03-18T21:32:16.000Z | alib/src/a_slice.cpp | moissinac/csvfix | 06cd5638e3a3bb0049fb7138c72211aef972c8d4 | [
"MIT"
] | 1 | 2020-11-23T20:19:38.000Z | 2021-04-10T15:05:39.000Z | alib/src/a_slice.cpp | moissinac/csvfix | 06cd5638e3a3bb0049fb7138c72211aef972c8d4 | [
"MIT"
] | 5 | 2021-12-14T05:42:52.000Z | 2022-03-11T04:23:47.000Z | //---------------------------------------------------------------------------
// a_slice.cpp
//
// slice tests - all code is templated in header
//
// Copyright (C) 2009 Neil Butterworth
//---------------------------------------------------------------------------
#ifdef ALIB_TEST
#include "a_base.h"
#incl... | 17.5 | 78 | 0.476498 | moissinac |
c6f2c1a1ba284673981bdb8a991d932e6800ce62 | 242 | cpp | C++ | Test/main_test.cpp | SAE-Geneve/testylabyrinth-WilliamSouksomchay | 6b585135bfde1b946164efc9a30ab62dc1010a24 | [
"MIT"
] | 1 | 2022-03-16T21:30:36.000Z | 2022-03-16T21:30:36.000Z | Test/main_test.cpp | SAE-Geneve/testylabyrinth-WilliamSouksomchay | 6b585135bfde1b946164efc9a30ab62dc1010a24 | [
"MIT"
] | null | null | null | Test/main_test.cpp | SAE-Geneve/testylabyrinth-WilliamSouksomchay | 6b585135bfde1b946164efc9a30ab62dc1010a24 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "character_test.h"
#include "command_test.h"
#include "enemy_test.h"
#include "hero_test.h"
#include "world_test.h"
int main(int ac, char** av) {
testing::InitGoogleTest(&ac, av);
return RUN_ALL_TESTS();
} | 22 | 34 | 0.72314 | SAE-Geneve |
c6f4311866495cd031a27d78685d83da35b7dfea | 1,573 | hh | C++ | src/InterTreeGram.hh | vsiivola/variKN | 9dc64bbde7983040ed2d961aa9c8d98d56881e8a | [
"BSD-3-Clause"
] | 25 | 2015-01-18T21:06:41.000Z | 2022-03-15T06:00:21.000Z | src/InterTreeGram.hh | aalto-speech/variKN | 9dc64bbde7983040ed2d961aa9c8d98d56881e8a | [
"BSD-3-Clause"
] | 9 | 2015-08-22T03:43:09.000Z | 2021-01-05T10:18:59.000Z | src/InterTreeGram.hh | vsiivola/variKN | 9dc64bbde7983040ed2d961aa9c8d98d56881e8a | [
"BSD-3-Clause"
] | 14 | 2015-06-04T12:07:34.000Z | 2019-07-29T08:52:55.000Z | // Present and interpolated model through the simple NGram interface
#ifndef INTERTREEGRAM_HH
#define INTERTREEGRAM_HH
#include <stdexcept>
#include "ArpaReader.hh"
#include "TreeGram.hh"
class NotImplemented : public std::logic_error {
public:
NotImplemented() : std::logic_error("Function not yet implemented"){};
... | 29.679245 | 80 | 0.708201 | vsiivola |
c6fa3f594723475cf13618c4a2e182bbda23b468 | 4,813 | hpp | C++ | sample/c++/planetary_ring/fdps-util/my_lib.hpp | FDPS/FDPS | 57c73ed2213bfbd9dbd05700fd60c8922be22103 | [
"MIT"
] | 77 | 2015-02-12T02:35:40.000Z | 2022-03-11T01:10:31.000Z | sample/c++/planetary_ring/fdps-util/my_lib.hpp | FDPS/FDPS | 57c73ed2213bfbd9dbd05700fd60c8922be22103 | [
"MIT"
] | 9 | 2015-03-24T09:44:29.000Z | 2021-11-30T19:42:58.000Z | sample/c++/planetary_ring/fdps-util/my_lib.hpp | FDPS/FDPS | 57c73ed2213bfbd9dbd05700fd60c8922be22103 | [
"MIT"
] | 28 | 2015-03-17T06:58:09.000Z | 2022-02-14T07:16:25.000Z | #pragma once
namespace MY_LIB{
namespace CONSTANT{
constexpr long double G_cgs = 6.67259e-8L; // cm^3/(s^2 g)
constexpr long double c_cgs = 2.99792458e10L; // cm / s
constexpr long double pi = 3.14159265358979323846L;
constexpr long double mass_saturn_cgs = 5.688e29L; // g
constexpr long double au_cgs = 1.... | 25.465608 | 90 | 0.638271 | FDPS |
c6fac9632656b47a7137e2cfa31769b8ae941981 | 5,872 | cpp | C++ | addons/ofxKinectForWindows2/exampleBodyIndexColor/src/ofApp.cpp | syeminpark/openFrame | 2d117bf86ae58dbc2d5d0ddc6727f14e5627e6e6 | [
"MIT"
] | 145 | 2015-02-14T09:32:04.000Z | 2022-01-21T21:17:27.000Z | addons/ofxKinectForWindows2/exampleBodyIndexColor/src/ofApp.cpp | syeminpark/openFrame | 2d117bf86ae58dbc2d5d0ddc6727f14e5627e6e6 | [
"MIT"
] | 80 | 2015-01-01T03:28:49.000Z | 2021-04-03T09:08:54.000Z | addons/ofxKinectForWindows2/exampleBodyIndexColor/src/ofApp.cpp | syeminpark/openFrame | 2d117bf86ae58dbc2d5d0ddc6727f14e5627e6e6 | [
"MIT"
] | 74 | 2015-01-11T16:23:57.000Z | 2021-12-22T07:16:13.000Z | // This example shows how to work with the BodyIndex image in order to create
// a green screen effect. Note that this isn't super fast, but is helpful
// in understanding how the different image types & coordinate spaces work
// together. If you need performance, you will probably want to do this with shaders!
#inclu... | 30.743455 | 140 | 0.59656 | syeminpark |
c6fdac6fb6ccb756a21c1631f00e7f6fbd776e13 | 6,128 | cpp | C++ | source/MyGui.cpp | muiz6/yoku-search-tool | d2403c8297d1409fc5f544ec05bcd0674d8b7e61 | [
"MIT"
] | null | null | null | source/MyGui.cpp | muiz6/yoku-search-tool | d2403c8297d1409fc5f544ec05bcd0674d8b7e61 | [
"MIT"
] | null | null | null | source/MyGui.cpp | muiz6/yoku-search-tool | d2403c8297d1409fc5f544ec05bcd0674d8b7e61 | [
"MIT"
] | null | null | null | #include "MyGui.hpp"
#include "MyTextCompleter.hpp"
#include <wx/wfstream.h>
#include <wx/txtstrm.h>
#include <fstream>
#include <sstream>
#include <algorithm>
// event table
wxBEGIN_EVENT_TABLE(MyGui, wxFrame)
EVT_MENU(wxID_EXIT, onExit)
EVT_MENU(wxID_OPEN, onOpenFile)
EVT_SEARCH(_ID_SEARCH_CTRL, onSearch)
... | 34.044444 | 82 | 0.615372 | muiz6 |
c6fdb69f67b06c2706bb1c79ec487a514fb45ba5 | 1,705 | cpp | C++ | test/t/util/test_file.cpp | zhaitianduo/libosmium | 42fc3238f942baac47d8520425664376478718b1 | [
"BSL-1.0"
] | 4,526 | 2015-01-01T15:31:00.000Z | 2022-03-31T17:33:49.000Z | test/t/util/test_file.cpp | zhaitianduo/libosmium | 42fc3238f942baac47d8520425664376478718b1 | [
"BSL-1.0"
] | 4,497 | 2015-01-01T15:29:12.000Z | 2022-03-31T19:19:35.000Z | test/t/util/test_file.cpp | zhaitianduo/libosmium | 42fc3238f942baac47d8520425664376478718b1 | [
"BSL-1.0"
] | 3,023 | 2015-01-01T18:40:53.000Z | 2022-03-30T13:30:46.000Z | #include "catch.hpp"
#include "utils.hpp"
#include <osmium/io/detail/read_write.hpp>
#include <osmium/util/file.hpp>
#include <stdexcept>
#include <string>
TEST_CASE("file_size(int) and file_offset() of known file") {
std::string file_name{with_data_dir("t/util/known_file_size")};
const int fd = osmium::io:... | 30.446429 | 83 | 0.706158 | zhaitianduo |
0501369cf21c34fa9152b5c36e7606fed465cc8b | 6,252 | cpp | C++ | src/common/Version.cpp | AllMethodGrind/bmxlib | 9480bdec14c082f9b121b7a6102461b05bdea547 | [
"BSD-3-Clause"
] | 4 | 2015-02-24T23:55:07.000Z | 2021-04-13T20:48:45.000Z | src/common/Version.cpp | AllMethodGrind/bmxlib | 9480bdec14c082f9b121b7a6102461b05bdea547 | [
"BSD-3-Clause"
] | null | null | null | src/common/Version.cpp | AllMethodGrind/bmxlib | 9480bdec14c082f9b121b7a6102461b05bdea547 | [
"BSD-3-Clause"
] | 3 | 2019-03-20T18:34:45.000Z | 2020-10-04T20:37:52.000Z | /*
* Copyright (C) 2011, British Broadcasting Corporation
* All Rights Reserved.
*
* Author: Philip de Nier
*
* 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 t... | 29.352113 | 114 | 0.642514 | AllMethodGrind |
05027eb4e91a569345f57af71c7523689f750428 | 628 | hpp | C++ | include/GameOver.hpp | FsCode-shafiq/2D-Snake-Game-master | 52d3b7f0c2ce173814128e176ddd8639d436784b | [
"Zlib"
] | 14 | 2020-11-05T23:34:14.000Z | 2022-03-27T19:42:54.000Z | include/GameOver.hpp | FsCode-shafiq/2D-Snake-Game-master | 52d3b7f0c2ce173814128e176ddd8639d436784b | [
"Zlib"
] | null | null | null | include/GameOver.hpp | FsCode-shafiq/2D-Snake-Game-master | 52d3b7f0c2ce173814128e176ddd8639d436784b | [
"Zlib"
] | 10 | 2021-02-01T13:07:37.000Z | 2022-02-14T16:52:34.000Z | #pragma once
#include <memory>
#include <SFML/Graphics/Text.hpp>
#include "State.hpp"
#include "Game.hpp"
class GameOver : public Engine::State
{
private:
std::shared_ptr<Context> m_context;
sf::Text m_gameOverTitle;
sf::Text m_retryButton;
sf::Text m_exitButton;
bool m_isRetryButtonSelected;
... | 19.625 | 48 | 0.707006 | FsCode-shafiq |
05071a763ebb21dfcf32777399d1854410e83c0d | 32,008 | cc | C++ | datasets/Test/tVisDataSet.cc | erikleitch/climax | 66ce64b0ab9f3a3722d3177cc5215ccf59369e88 | [
"MIT"
] | 1 | 2018-11-01T05:15:31.000Z | 2018-11-01T05:15:31.000Z | datasets/Test/tVisDataSet.cc | erikleitch/climax | 66ce64b0ab9f3a3722d3177cc5215ccf59369e88 | [
"MIT"
] | null | null | null | datasets/Test/tVisDataSet.cc | erikleitch/climax | 66ce64b0ab9f3a3722d3177cc5215ccf59369e88 | [
"MIT"
] | 2 | 2017-05-02T19:35:55.000Z | 2018-03-07T00:54:51.000Z | #include <iostream>
#include <math.h>
#include "gcp/program/Program.h"
#include "gcp/util/Debug.h"
#include "gcp/util/Exception.h"
#include "gcp/util/LogStream.h"
#include "gcp/util/IoLock.h"
#include "gcp/util/Exception.h"
#include "gcp/util/FitsBinTableReader.h"
#include "gcp/util/FitsUvfReader.h"
#include "gcp/uti... | 24.266869 | 115 | 0.602318 | erikleitch |
05071ff5e7b5b450be8d2b2db4eba8a63bb6e93d | 1,245 | hpp | C++ | model/SingleMove.hpp | cuzdav/illum | b78b6477f8d3fbf31408e419f671dbfe421b4e9e | [
"MIT"
] | null | null | null | model/SingleMove.hpp | cuzdav/illum | b78b6477f8d3fbf31408e419f671dbfe421b4e9e | [
"MIT"
] | null | null | null | model/SingleMove.hpp | cuzdav/illum | b78b6477f8d3fbf31408e419f671dbfe421b4e9e | [
"MIT"
] | null | null | null | #pragma once
#include "Action.hpp"
#include "CellState.hpp"
#include "Coord.hpp"
#include <fmt/format.h>
#include <functional>
#include <iosfwd>
#include <string>
#include <string_view>
#include <type_traits>
namespace model {
struct SingleMove {
Action action_;
CellState from_;
CellState to_;
Coord c... | 23.490566 | 72 | 0.6249 | cuzdav |
050c8e810f707e724d44f5d8abc79220c60bb57b | 6,313 | cpp | C++ | src/main.cpp | fazeh/bkcrack | 96c79deae68abe18e171891b4f71a8521b42209a | [
"Zlib"
] | 1 | 2020-06-30T05:11:53.000Z | 2020-06-30T05:11:53.000Z | src/main.cpp | fazeh/bkcrack | 96c79deae68abe18e171891b4f71a8521b42209a | [
"Zlib"
] | null | null | null | src/main.cpp | fazeh/bkcrack | 96c79deae68abe18e171891b4f71a8521b42209a | [
"Zlib"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include <iomanip>
#include "log.hpp"
#include "file.hpp"
#include "Arguments.hpp"
#include "Data.hpp"
#include "Zreduction.hpp"
#include "Attack.hpp"
#include "KeystreamTab.hpp"
const char* usage = R"_(usage: bkcrack [options]
Crack legacy zip encryption with Biham and Kocher's... | 32.045685 | 159 | 0.543957 | fazeh |
050d5509dde7ba3c9f7dfe5acd1cb9d9b35bdef6 | 1,971 | cpp | C++ | src/LS7366Counter/LS7366Counter.cpp | Justin2997/LibS3GRO | a7d8304d6a61368f5ecd5f9978b64fbba73f13c1 | [
"MIT"
] | 1 | 2022-03-27T09:43:41.000Z | 2022-03-27T09:43:41.000Z | src/LS7366Counter/LS7366Counter.cpp | Justin2997/LibS3GRO | a7d8304d6a61368f5ecd5f9978b64fbba73f13c1 | [
"MIT"
] | 75 | 2022-01-26T19:16:55.000Z | 2022-03-30T19:26:45.000Z | src/LS7366Counter/LS7366Counter.cpp | Justin2997/LibS3GRO | a7d8304d6a61368f5ecd5f9978b64fbba73f13c1 | [
"MIT"
] | 3 | 2022-01-26T18:41:33.000Z | 2022-01-26T19:17:53.000Z | /*
Projet S1 2018
Class to communicate to LS7366 encoder module
@author Jean-Samuel Lauzon, Jonathan Vincent
@version 1.0 26/05/2018
*/
#include "LS7366Counter.h"
void LS7366Counter::init(uint8_t slave_pin, uint8_t flag_pin)
{
SLAVE_PIN_ = slave_pin;
FLAG_PIN_ = flag_pin;
pinMode(SLAVE_PIN_, OUTPUT); // Set ... | 27.375 | 64 | 0.648402 | Justin2997 |
050e69f47b21354bc9123bf7c7fe0cfb58f86622 | 8,915 | cpp | C++ | rock/app/settings/base/qkeyboard.cpp | NovasomIndustries/Utils-2019.01 | ab6d48edc03363f3ee4f1e9efc5269fdecfe35a8 | [
"MIT"
] | 2 | 2019-04-20T14:21:56.000Z | 2019-06-14T07:17:22.000Z | rock/app/settings/base/qkeyboard.cpp | NovasomIndustries/Utils-2019.07 | 4a41062e0f50c1f97cb37df91457672ce386516d | [
"MIT"
] | null | null | null | rock/app/settings/base/qkeyboard.cpp | NovasomIndustries/Utils-2019.07 | 4a41062e0f50c1f97cb37df91457672ce386516d | [
"MIT"
] | 1 | 2021-07-11T14:36:00.000Z | 2021-07-11T14:36:00.000Z | #include "qkeyboard.h"
#include "ui_qkeyboard.h"
#include "retranslatemanager.h"
#include <QTimer>
#include <QDesktopWidget>
QKeyBoard* QKeyBoard::_instance = 0;
#define Default_Button_Size 40
#define Default_Font_Size 13
#define Default_Max_Edit_Length 20
QKeyBoard::QKeyBoard(QWidget *parent) : BaseWi... | 31.725979 | 153 | 0.607179 | NovasomIndustries |
05181b57954ed9f72dcc7cc6c4b8c35cf1e50310 | 4,411 | cpp | C++ | livedisplay/DisplayModesSDM.cpp | weitaming2002/device_xiaomi_grus | 88010716a8de29028fb9464be8b9ea2c4fac9505 | [
"Apache-2.0"
] | 7 | 2019-07-11T23:25:02.000Z | 2019-09-01T13:09:36.000Z | livedisplay/DisplayModesSDM.cpp | weitaming2002/device_xiaomi_grus | 88010716a8de29028fb9464be8b9ea2c4fac9505 | [
"Apache-2.0"
] | null | null | null | livedisplay/DisplayModesSDM.cpp | weitaming2002/device_xiaomi_grus | 88010716a8de29028fb9464be8b9ea2c4fac9505 | [
"Apache-2.0"
] | 13 | 2019-07-11T08:55:12.000Z | 2021-03-20T11:58:33.000Z | /*
* Copyright (C) 2019 The LineageOS Project
*
* 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 la... | 25.947059 | 99 | 0.665155 | weitaming2002 |
0518af75a24ef251d254f820c7f62a348ae6ef1b | 463 | cpp | C++ | HDU/4066.cpp | CodingYue/acm-icpc | 667596efae998f5480819870714c37e9af0740eb | [
"Unlicense"
] | 1 | 2015-11-03T09:31:07.000Z | 2015-11-03T09:31:07.000Z | HDU/4066.cpp | CodingYue/acm-icpc | 667596efae998f5480819870714c37e9af0740eb | [
"Unlicense"
] | null | null | null | HDU/4066.cpp | CodingYue/acm-icpc | 667596efae998f5480819870714c37e9af0740eb | [
"Unlicense"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
using namespace std;
double ans[1505];
int main(){
ans[1]=1.0;
double x=1.0;
for (int i=2;i<1505;i++){
if (i%2==0) x*=double(i-1.0)/double(i+0.0);
ans[i]=ans[i-1]+x;
}
int T;
scanf("%d",&T)... | 21.045455 | 52 | 0.470842 | CodingYue |
051964c4521dfe22149ab0642dc052d50a367258 | 1,490 | cpp | C++ | Data Structures/week2_priority_queues_and_disjoint_sets/3_merging_tables/merging_tables.cpp | Roopam-mishra/Data-Structures-and-Algorithms | 0422c64769909ad82c631c14e814d958136afc18 | [
"MIT"
] | 12 | 2020-06-01T17:34:08.000Z | 2022-03-25T12:27:09.000Z | Data Structures/week2_priority_queues_and_disjoint_sets/3_merging_tables/merging_tables.cpp | Roopam-mishra/Data-Structures-and-Algorithms | 0422c64769909ad82c631c14e814d958136afc18 | [
"MIT"
] | null | null | null | Data Structures/week2_priority_queues_and_disjoint_sets/3_merging_tables/merging_tables.cpp | Roopam-mishra/Data-Structures-and-Algorithms | 0422c64769909ad82c631c14e814d958136afc18 | [
"MIT"
] | 2 | 2021-06-26T19:43:49.000Z | 2022-03-05T22:02:59.000Z | #include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll max_table,n,m,parent[100000],ranki[100000],b[100000],a[100000];
void makeset()
{
for(ll i=0;i<n;i++)
{
parent[i]=i;
ranki[i]=0;
}
}
ll find(ll i)
{
while(i!=parent[i])
i=parent[i];
return i;... | 21.594203 | 67 | 0.48255 | Roopam-mishra |
051978513c59f58965b21f1900127a1129fc10ef | 11,025 | cc | C++ | src/graph/graphfxn.cc | huichengz0520/intellgraph | 00173f4c24a6314c85b4a091b2475ae157a2d814 | [
"Apache-2.0"
] | 1 | 2019-04-24T19:10:05.000Z | 2019-04-24T19:10:05.000Z | src/graph/graphfxn.cc | huichengz0520/intellgraph | 00173f4c24a6314c85b4a091b2475ae157a2d814 | [
"Apache-2.0"
] | null | null | null | src/graph/graphfxn.cc | huichengz0520/intellgraph | 00173f4c24a6314c85b4a091b2475ae157a2d814 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2019 The IntellGraph 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 agr... | 33.923077 | 81 | 0.634558 | huichengz0520 |
051a55aab20628fc1807618b8428b6349953ee62 | 2,406 | cpp | C++ | tests/compile.cpp | SuperWig/static_vector | b19a2bd1bf76bcf63ee6007c9cd52fba09e05b7b | [
"BSL-1.0"
] | null | null | null | tests/compile.cpp | SuperWig/static_vector | b19a2bd1bf76bcf63ee6007c9cd52fba09e05b7b | [
"BSL-1.0"
] | null | null | null | tests/compile.cpp | SuperWig/static_vector | b19a2bd1bf76bcf63ee6007c9cd52fba09e05b7b | [
"BSL-1.0"
] | null | null | null | // Copyright (c) Daniel Marshall.
// SPDX-License-Identifier: BSL-1.0
#include <string>
#include <type_traits>
#include <dpm/static_vector.h>
using trivial_vector = dpm::static_vector<int, 2>;
using non_trivial_vector = dpm::static_vector<std::string, 2>;
// clang-format off
//static_assert(std::is_trivial_v<trivi... | 57.285714 | 130 | 0.826683 | SuperWig |
051dc15ac6ece38ef696d1fc6f86e7f419f023a5 | 2,225 | cc | C++ | inet/src/inet/physicallayer/ieee80211/mode/Ieee80211FhssMode.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | null | null | null | inet/src/inet/physicallayer/ieee80211/mode/Ieee80211FhssMode.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | null | null | null | inet/src/inet/physicallayer/ieee80211/mode/Ieee80211FhssMode.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | 1 | 2021-07-02T13:32:40.000Z | 2021-07-02T13:32:40.000Z | //
// Copyright (C) 2014 OpenSim Ltd.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program i... | 35.887097 | 185 | 0.803596 | ntanetani |
051fa7040025991e849aa46ac016cbc6e5bdbf96 | 1,763 | cpp | C++ | EZOJ/Contests/1159/C.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | EZOJ/Contests/1159/C.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | EZOJ/Contests/1159/C.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool flag=c=='-';
flag?(c=getchar()):0;
... | 19.163043 | 64 | 0.555303 | sshockwave |
05207de6a8e50d187ea773c96529ecadb947d455 | 6,538 | hh | C++ | tests/libtests/materials/TestMaterial.hh | cehanagan/pylith | cf5c1c34040460a82f79b6eb54df894ed1b1ee93 | [
"MIT"
] | 93 | 2015-01-08T16:41:22.000Z | 2022-02-25T13:40:02.000Z | tests/libtests/materials/TestMaterial.hh | sloppyjuicy/pylith | ac2c1587f87e45c948638b19560813d4d5b6a9e3 | [
"MIT"
] | 277 | 2015-02-20T16:27:35.000Z | 2022-03-30T21:13:09.000Z | tests/libtests/materials/TestMaterial.hh | sloppyjuicy/pylith | ac2c1587f87e45c948638b19560813d4d5b6a9e3 | [
"MIT"
] | 71 | 2015-03-24T12:11:08.000Z | 2022-03-03T04:26:02.000Z | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University at Buffalo
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 31.737864 | 110 | 0.651575 | cehanagan |
05216887c65a04b14848cf1994f295e8bed7e3b3 | 11,521 | cc | C++ | chrome/browser/services/gcm/gcm_account_tracker.cc | eth-srl/ChromeER | 002512fd4168c50bd7613c38a322e2862c9ffd89 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-11-28T10:46:52.000Z | 2019-11-28T10:46:52.000Z | chrome/browser/services/gcm/gcm_account_tracker.cc | eth-sri/ChromeER | 002512fd4168c50bd7613c38a322e2862c9ffd89 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/services/gcm/gcm_account_tracker.cc | eth-sri/ChromeER | 002512fd4168c50bd7613c38a322e2862c9ffd89 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-27T11:15:39.000Z | 2016-08-17T14:19:56.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 "chrome/browser/services/gcm/gcm_account_tracker.h"
#include <algorithm>
#include <vector>
#include "base/time/time.h"
#include "components/gcm... | 33.106322 | 80 | 0.705321 | eth-srl |
0526d64e20dfffa38a8af665ddf6d97471d06ecb | 1,216 | cpp | C++ | ext/stub/java/text/ParseException-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/java/text/ParseException-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/java/text/ParseException-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#include <java/text/ParseException.hpp>
extern void unimplemented_(const char16_t* name);
java::text::ParseException::ParseException(const ::default_init_tag&)
: super(*static_cast< ::default_init_tag* >(0))
{
cli... | 28.27907 | 109 | 0.699836 | pebble2015 |
052de50ce3d256f7108382ec15436b05bc078383 | 416 | cpp | C++ | src/RandomNumberGenerator.cpp | SinaRaoufi/array-sorting-algorithms | 4d0df23a3054eea963f55a03c5ea8f7d3e839521 | [
"MIT"
] | 3 | 2021-02-09T11:51:43.000Z | 2021-03-08T15:15:47.000Z | src/RandomNumberGenerator.cpp | SinaRaoufi/array-sorting-algorithms | 4d0df23a3054eea963f55a03c5ea8f7d3e839521 | [
"MIT"
] | null | null | null | src/RandomNumberGenerator.cpp | SinaRaoufi/array-sorting-algorithms | 4d0df23a3054eea963f55a03c5ea8f7d3e839521 | [
"MIT"
] | null | null | null | #include "RandomNumberGenerator.hpp"
#include <random>
using namespace std;
// function for generating random number
int generateRandomNumber(int range1, int range2)
{
random_device randomDevice;
mt19937 mt(randomDevice()); // seed the mt19937 generator using randomDevice
uniform_int_distribution<int> ran... | 32 | 80 | 0.769231 | SinaRaoufi |
052f21076552b05209d6be6ef948e9d40cb44836 | 233 | cpp | C++ | test/testSkype.cpp | borisVanhoof/peafowl | 56f7feb6480fc20052d3077a1b5032f48266dca9 | [
"MIT"
] | null | null | null | test/testSkype.cpp | borisVanhoof/peafowl | 56f7feb6480fc20052d3077a1b5032f48266dca9 | [
"MIT"
] | null | null | null | test/testSkype.cpp | borisVanhoof/peafowl | 56f7feb6480fc20052d3077a1b5032f48266dca9 | [
"MIT"
] | null | null | null | /**
* Test for HTTP protocol.
**/
#include "common.h"
TEST(SkypeTest, Generic) {
std::vector<uint> protocols;
getProtocols("./pcaps/skype-irc.cap", protocols);
EXPECT_EQ(protocols[PFWL_PROTO_L7_SKYPE], (uint) 326);
}
| 21.181818 | 58 | 0.669528 | borisVanhoof |
053585a33e9ae97d8996ce41344a94da4379ab05 | 1,216 | cpp | C++ | codewars/roman-numerals-helper.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | codewars/roman-numerals-helper.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | codewars/roman-numerals-helper.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#include <map>
#include <cstring>
std::map<int, std::string> mp;
bool initalized = false;
#define fuck() \
mp[1000] = "M"; \
mp[2000] = "MM"; \
mp[3000] = "MMM"; \
mp[100] = "C"; \
mp[200] = "CC"; \
mp[300] = "CCC"; \
mp[400] = "CD"; \
mp[500] = "D"; \
mp[600] = "DC"; \
mp[700] = "DC... | 20.266667 | 93 | 0.475329 | swwind |
053624dc515dbfa2f271747a013920ad4c3737c4 | 9,858 | cpp | C++ | examples/agenda/src/demo.cpp | NourahAlhosain/KTAB | e7676b760543e4c7bbd8c29188e85dcb18b52040 | [
"MIT"
] | null | null | null | examples/agenda/src/demo.cpp | NourahAlhosain/KTAB | e7676b760543e4c7bbd8c29188e85dcb18b52040 | [
"MIT"
] | 1 | 2017-02-20T06:51:10.000Z | 2017-02-20T19:35:23.000Z | examples/agenda/src/demo.cpp | lsyaseen/KTAB | 3b5b063541c7d5ee36cc9c61d9d3e0717f2d180f | [
"MIT"
] | null | null | null | // --------------------------------------------
// Copyright KAPSARC. Open source MIT License.
// --------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2015 King Abdullah Petroleum Studies and Research Center
//
// Permission is hereby granted, free of charge, to any person obtaini... | 28.824561 | 105 | 0.592919 | NourahAlhosain |
053905dbc119955a3b558aa69d6e6046e8a4fd0e | 545 | cpp | C++ | dynamic-programming/largest_divisible_pairs_subset.cpp | Himanshu-77/cpp | 489e673cf2ef022daa9d4d092545224984c3b8e8 | [
"MIT"
] | 468 | 2018-09-19T15:34:22.000Z | 2022-03-31T13:56:42.000Z | dynamic-programming/largest_divisible_pairs_subset.cpp | Himanshu-77/cpp | 489e673cf2ef022daa9d4d092545224984c3b8e8 | [
"MIT"
] | 97 | 2018-09-20T04:17:11.000Z | 2021-11-03T04:36:03.000Z | dynamic-programming/largest_divisible_pairs_subset.cpp | Himanshu-77/cpp | 489e673cf2ef022daa9d4d092545224984c3b8e8 | [
"MIT"
] | 353 | 2018-10-02T02:19:34.000Z | 2022-03-17T03:51:12.000Z | #include <bits/stdc++.h>
#define blue ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
int largestSubset(int a[], int n)
{
sort(a, a + n);
int dp[n];
dp[n - 1] = 1;
for (int i = n - 2; i >= 0; i--)
{
int mxm = 0;
for (int j = i + 1; j < n; j++)
if (a[j] % a[i] == 0)
mxm ... | 16.515152 | 67 | 0.506422 | Himanshu-77 |
053d122512b3dc481d54914c9122742febcfbf7b | 19,275 | hpp | C++ | include/Btk/locals.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | 2 | 2021-06-19T08:21:38.000Z | 2021-08-15T21:37:30.000Z | include/Btk/locals.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | null | null | null | include/Btk/locals.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | 1 | 2021-04-03T14:27:39.000Z | 2021-04-03T14:27:39.000Z | #if !defined(_BTK_LOCALS_HPP_)
#define _BTK_LOCALS_HPP_
#include <SDL2/SDL_keycode.h>
#include <SDL2/SDL_scancode.h>
#include <SDL2/SDL_mouse.h>
#include <iosfwd>
#include "defs.hpp"
//A headers to simply use SDL enums
namespace Btk{
/**
* @brief SDL_Keycode
*
*/
enum class Keycode:SDL_Keycode{
... | 32.614213 | 65 | 0.611829 | BusyStudent |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.