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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b551b82b7cfd1c3bd1322d08423e3d745eff3f89 | 1,284 | hpp | C++ | libraries/chain/include/graphene/chain/is_authorized_asset.hpp | EDCBlockchain/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | 12 | 2019-10-31T13:24:21.000Z | 2021-12-29T22:02:22.000Z | libraries/chain/include/graphene/chain/is_authorized_asset.hpp | DONOVA28/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | null | null | null | libraries/chain/include/graphene/chain/is_authorized_asset.hpp | DONOVA28/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | 11 | 2019-07-24T12:46:29.000Z | 2021-11-27T04:41:48.000Z | // see LICENSE.txt
#pragma once
#include <map>
#include <typeindex>
#include <typeinfo>
namespace graphene { namespace chain {
class account_object;
class asset_object;
class database;
namespace detail {
bool _is_authorized_asset(const database& d, const account_object& acct, const asset_object& asset_obj);
} // ... | 21.04918 | 109 | 0.707165 | EDCBlockchain |
b5540a76ef968039f9bb0b1b4f004503836c27c4 | 1,127 | hpp | C++ | main_server/src/entities/parking_slot/parking_slot.hpp | GrassoMichele/uPark | d96310c165c3efa9b0251c51ababe06639c4570a | [
"MIT"
] | null | null | null | main_server/src/entities/parking_slot/parking_slot.hpp | GrassoMichele/uPark | d96310c165c3efa9b0251c51ababe06639c4570a | [
"MIT"
] | null | null | null | main_server/src/entities/parking_slot/parking_slot.hpp | GrassoMichele/uPark | d96310c165c3efa9b0251c51ababe06639c4570a | [
"MIT"
] | null | null | null | #ifndef PARKING_SLOT
#define PARKING_SLOT
#include <iostream>
class ParkingSlot{
private:
int id;
int number;
int id_parking_lot;
int id_vehicle_type;
bool reserved_disability;
public:
ParkingSlot();
ParkingSlot(int id);
ParkingSlot(int id, int ... | 26.209302 | 107 | 0.628217 | GrassoMichele |
b559f6970bb54e4e750405f64b34fb16553d1021 | 8,652 | cpp | C++ | Socket/IncomingMessageHandler.cpp | Kaptnik/CIS-687-RemoteTestHarness | 3a1466d4b71cef7bee2791020a2902d3e658fb64 | [
"MIT"
] | null | null | null | Socket/IncomingMessageHandler.cpp | Kaptnik/CIS-687-RemoteTestHarness | 3a1466d4b71cef7bee2791020a2902d3e658fb64 | [
"MIT"
] | null | null | null | Socket/IncomingMessageHandler.cpp | Kaptnik/CIS-687-RemoteTestHarness | 3a1466d4b71cef7bee2791020a2902d3e658fb64 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
// IncomingMessageHandler.cpp - A class that handles incoming messages //
// ver 1.0 //
// Karthik Umashankar, CSE687 - Object Oriented Design, Summer 2018 //
//////////////////////////////////////////////////////////... | 32.526316 | 157 | 0.654877 | Kaptnik |
b55f75814e6ddfa4e911f9b69ec6adf31340e725 | 7,949 | cpp | C++ | src/MD5/MD5.cpp | mykhailok01/RS5_Implementation | 4fd3e00ae74c4c8d143112e1a9bf01cb423b0cd1 | [
"MIT"
] | null | null | null | src/MD5/MD5.cpp | mykhailok01/RS5_Implementation | 4fd3e00ae74c4c8d143112e1a9bf01cb423b0cd1 | [
"MIT"
] | null | null | null | src/MD5/MD5.cpp | mykhailok01/RS5_Implementation | 4fd3e00ae74c4c8d143112e1a9bf01cb423b0cd1 | [
"MIT"
] | null | null | null | #include "MD5.hpp"
#include <climits>
#include <cassert>
#include <sstream>
#include <vector>
#include <iostream>
#include <limits>
#include <bitset>
using Chunk = std::array<std::uint32_t, 16>;// 512 bit
constexpr size_t CHUNK_SIZE = sizeof(Chunk::value_type) * 16;
constexpr auto BITS_CHUNK_SIZE = static_cast<std::uin... | 34.71179 | 118 | 0.602592 | mykhailok01 |
b5623319810028e4069c7445e0129611ab599b5a | 11,007 | hpp | C++ | src/core/utils/maybe.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | src/core/utils/maybe.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | src/core/utils/maybe.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | /** simple wrapper for optional values or references *************************
* *
* Copyright (c) 2014 Florian Oetke *
* This file is distributed under the MIT License *
* ... | 25.187643 | 123 | 0.600073 | lowkey42 |
b56965082b5113142dd9d4e0dc2e936303a05c20 | 2,054 | hpp | C++ | falcon/utility/temporary_set.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | falcon/utility/temporary_set.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | falcon/utility/temporary_set.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #ifndef FALCON_UTILITYTEMPORARY_SET_HPP
#define FALCON_UTILITYTEMPORARY_SET_HPP
#include <falcon/utility/move.hpp>
#include <falcon/c++/noexcept.hpp>
#include <falcon/c++/reference.hpp>
#include <falcon/functional/operators.hpp>
#if __cplusplus >= 201103L
# include <type_traits>
#endif
namespace falcon {
///\brief M... | 25.04878 | 97 | 0.74148 | jonathanpoelen |
b56a3466b5195036e43924f472b337d6a6b914a6 | 4,071 | hpp | C++ | qubus/include/qubus/pattern/binary_operator.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/include/qubus/pattern/binary_operator.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/include/qubus/pattern/binary_operator.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | #ifndef QUBUS_PATTERN_BINARY_OPERATOR_HPP
#define QUBUS_PATTERN_BINARY_OPERATOR_HPP
#include <qubus/IR/binary_operator_expr.hpp>
#include <qubus/pattern/variable.hpp>
#include <qubus/pattern/any.hpp>
#include <qubus/pattern/value.hpp>
#include <utility>
#include <functional>
namespace qubus
{
namespace pattern
{
te... | 23.807018 | 103 | 0.688529 | qubusproject |
b56f1995d8b993312a57a37084c760cfcd038b1c | 740 | cpp | C++ | src/SpectatorView.Native/SpectatorView.WinRTExtensions/SpectatorView.WinRTExtensions.cpp | sereilly/MixedReality-SpectatorView | a4f58e25bbe6c002cbf7b134c4babe5e4d7bc9b9 | [
"MIT"
] | 165 | 2019-06-19T18:41:20.000Z | 2022-03-16T12:17:02.000Z | src/SpectatorView.Native/SpectatorView.WinRTExtensions/SpectatorView.WinRTExtensions.cpp | sereilly/MixedReality-SpectatorView | a4f58e25bbe6c002cbf7b134c4babe5e4d7bc9b9 | [
"MIT"
] | 297 | 2019-06-18T19:01:43.000Z | 2022-03-31T00:11:07.000Z | src/SpectatorView.Native/SpectatorView.WinRTExtensions/SpectatorView.WinRTExtensions.cpp | sereilly/MixedReality-SpectatorView | a4f58e25bbe6c002cbf7b134c4babe5e4d7bc9b9 | [
"MIT"
] | 108 | 2019-06-17T22:44:08.000Z | 2022-03-18T05:44:57.000Z | #include "pch.h"
#include "SpectatorView.WinRTExtensions.h"
// Because Marshal.GetObjectForIUnknown does not work when using the .NET Native compiler with IInspectable
// objects, this method allows managed code to explicitly specify a type for the marshaller to query for.
// Example usage from managed code for marsh... | 52.857143 | 125 | 0.797297 | sereilly |
b5722f716ca8c1cf400982c86e5c78912e13ed10 | 2,776 | cpp | C++ | src/ofxNode.cpp | lpestl/ofxGraphVisualization | 218e67b2519eed5050f09f51e31260690fe4eacc | [
"MIT"
] | null | null | null | src/ofxNode.cpp | lpestl/ofxGraphVisualization | 218e67b2519eed5050f09f51e31260690fe4eacc | [
"MIT"
] | null | null | null | src/ofxNode.cpp | lpestl/ofxGraphVisualization | 218e67b2519eed5050f09f51e31260690fe4eacc | [
"MIT"
] | null | null | null | #include "ofxNode.h"
#include <random>
#include "ofxTweener.h"
void ofxNode::setup(std::shared_ptr<ofRectangle> boundRect, std::shared_ptr<ofxTrueTypeFontUC> font)
{
captureFont_ = font;
boundRect_ = boundRect;
position_.set(ofRandom(boundRect_->getMinX(), boundRect_->getMaxX()), ofRandom(boundRect_->getMinY(), bo... | 22.208 | 167 | 0.674352 | lpestl |
b5729bc51e2f1e778024289cec93bc0e1651c438 | 639 | cc | C++ | system_info/system_info_cellular_network_desktop.cc | sstolinski/tizen-extensions-crosswalk | 749cf5285bf1c9c04a4ce9f3880a744dcf221a69 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2016-11-21T21:21:19.000Z | 2016-11-21T21:21:19.000Z | system_info/system_info_cellular_network_desktop.cc | sstolinski/tizen-extensions-crosswalk | 749cf5285bf1c9c04a4ce9f3880a744dcf221a69 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | system_info/system_info_cellular_network_desktop.cc | sstolinski/tizen-extensions-crosswalk | 749cf5285bf1c9c04a4ce9f3880a744dcf221a69 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "system_info/system_info_cellular_network.h"
const std::string SysInfoCellularNetwork::name_ = "CELLULAR_NETWORK";
void SysInfoCellularNetwork... | 37.588235 | 73 | 0.730829 | sstolinski |
b57442bec007ffc6c7f2cb92d52dffcd43e3c08c | 2,574 | hpp | C++ | engine/include/ph/sdl/Mouse.hpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | engine/include/ph/sdl/Mouse.hpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | engine/include/ph/sdl/Mouse.hpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | // Copyright (c) Peter Hillerström (skipifzero.com, peter@hstroem.se)
// For other contributors see Contributors.txt
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//... | 34.783784 | 99 | 0.628205 | PetorSFZ |
b57989b723bd246a6624c126ca4f3f2acf401fcf | 1,125 | cpp | C++ | IGC/AdaptorOCL/cif/cif/import/cif_main.cpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 440 | 2018-01-30T00:43:22.000Z | 2022-03-24T17:28:37.000Z | IGC/AdaptorOCL/cif/cif/import/cif_main.cpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 225 | 2018-02-02T03:10:47.000Z | 2022-03-31T10:50:37.000Z | IGC/AdaptorOCL/cif/cif/import/cif_main.cpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 138 | 2018-01-30T08:15:11.000Z | 2022-03-22T14:16:39.000Z | /*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#include "cif/common/cif.h"
#include "cif/import/library_api.h"
#include "cif/impor... | 30.405405 | 80 | 0.657778 | kurapov-peter |
b579e2c62547c27f052a384b37705400e2b6f822 | 507 | hpp | C++ | osc-seq-cpp/src/ui_elements/text_elt.hpp | Acaruso/osc-seq-cpp | 14d2d5ce0fdad8d183e19781a279f9442db9c79f | [
"MIT"
] | null | null | null | osc-seq-cpp/src/ui_elements/text_elt.hpp | Acaruso/osc-seq-cpp | 14d2d5ce0fdad8d183e19781a279f9442db9c79f | [
"MIT"
] | null | null | null | osc-seq-cpp/src/ui_elements/text_elt.hpp | Acaruso/osc-seq-cpp | 14d2d5ce0fdad8d183e19781a279f9442db9c79f | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <string>
#include <SDL.h>
#include <SDL_ttf.h>
#include "../store/coord.hpp"
#include "../store/store.hpp"
void text_elt(std::string text, Coord& coord, Store& store, int z_coord = 1);
void text_elt(std::string text, FC_Font* font, Coord& coord, Store& store, int z_coord... | 21.125 | 92 | 0.676529 | Acaruso |
b58004d3527ba76f6a550c910f2c61f558ca6db7 | 4,151 | cc | C++ | UA_BlackJack_Server/DBServer/test/test_RedisService.cc | lsxk-jwj/gRPC_demo | 4a772dbb68726f2f253e6023271fd7b629006853 | [
"Apache-2.0"
] | null | null | null | UA_BlackJack_Server/DBServer/test/test_RedisService.cc | lsxk-jwj/gRPC_demo | 4a772dbb68726f2f253e6023271fd7b629006853 | [
"Apache-2.0"
] | null | null | null | UA_BlackJack_Server/DBServer/test/test_RedisService.cc | lsxk-jwj/gRPC_demo | 4a772dbb68726f2f253e6023271fd7b629006853 | [
"Apache-2.0"
] | null | null | null | #include "../RedisService.h"
#include <gtest/gtest.h>
#include <unordered_set>
using ua_black_jack_server::data_base_server::RedisService;
RedisService* service;
const char* nickname = "owen1";
const int64_t uid = 2345;
const char* password = "ASIKrgubhy";
int main() {
acl::redis_client client("127.0.0.1:6379")... | 30.977612 | 74 | 0.669718 | lsxk-jwj |
b58022bbd3bbacc3c23f06777eb67a41f8982771 | 16,261 | hpp | C++ | core/src/cogs/io/net/telnet.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 5 | 2019-02-08T15:59:14.000Z | 2022-01-22T19:12:33.000Z | core/src/cogs/io/net/telnet.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 1 | 2019-12-03T03:11:34.000Z | 2019-12-03T03:11:34.000Z | core/src/cogs/io/net/telnet.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | null | null | null | //
// Copyright (C) 2000-2020 - Colen M. Garoutte-Carson <colen at cogmine.com>, Cog Mine LLC
//
// Status: Good, NeedsTesting
#ifndef COGS_HEADER_IO_NET_TELNET
#define COGS_HEADER_IO_NET_TELNET
#include "cogs/collections/container_queue.hpp"
#include "cogs/collections/string.hpp"
#include "cogs/env.hpp"
#include... | 27.939863 | 108 | 0.665703 | cogmine |
b5869a966c858be6c802aeed55b10dba98576bc4 | 7,147 | hpp | C++ | tests/vex_tests.hpp | LIBHALA/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T16:21:42.000Z | 2021-02-25T16:21:42.000Z | tests/vex_tests.hpp | mkstoyanov/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 9 | 2020-09-03T23:31:22.000Z | 2020-10-21T23:40:11.000Z | tests/vex_tests.hpp | mkstoyanov/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 2 | 2020-03-03T17:39:37.000Z | 2020-11-05T16:01:28.000Z | /*
* Code Author: Miroslav Stoyanov
*
* Copyright (C) 2018 Miroslav Stoyanov
*
* This file is part of
* Hardware Accelerated Linear Algebra (HALA)
*
*/
#include "testing_common.hpp"
template<typename T> T mabs2(T a){ return a * a; }
template<typename T> std::complex<T> mabs2(std::complex<T> a){
T r = std:... | 30.156118 | 118 | 0.577165 | LIBHALA |
b58bd59f08a69d9871df8ccb02f407adcc23138c | 5,461 | cpp | C++ | VISUALC/source/repos/Project10/main.cpp | giljr/c | b8058423f9feda06f05e67af617a1e2f5089f9e8 | [
"MIT"
] | null | null | null | VISUALC/source/repos/Project10/main.cpp | giljr/c | b8058423f9feda06f05e67af617a1e2f5089f9e8 | [
"MIT"
] | null | null | null | VISUALC/source/repos/Project10/main.cpp | giljr/c | b8058423f9feda06f05e67af617a1e2f5089f9e8 | [
"MIT"
] | 1 | 2021-06-29T08:26:40.000Z | 2021-06-29T08:26:40.000Z | /*
#Project 10 - Visual C++ 2019 - Exercise 1 - Homework - Snack Bar
Description
This program calculates how much each customer spends in a snack bar.
In essence, this program initializes 3 matrices:
p[1][7] - Price of the Snack bar Products
q[7][1] - Quantity of each item asked
t[1][7] - Total pric... | 24.271111 | 90 | 0.478301 | giljr |
b590fd34fdece371bdfa3668cfc75fdf0b20a1a4 | 10,537 | cpp | C++ | MCUME/teensycastaway41/mem.cpp | DigiTorus86/Teensy-R4ge-Pro | d94a73f4f60957b3f28a27b7d6f74b01a61121fa | [
"MIT"
] | 1 | 2022-01-13T02:00:52.000Z | 2022-01-13T02:00:52.000Z | MCUME/teensycastaway41/mem.cpp | DigiTorus86/Teensy-R4ge-Pro | d94a73f4f60957b3f28a27b7d6f74b01a61121fa | [
"MIT"
] | null | null | null | MCUME/teensycastaway41/mem.cpp | DigiTorus86/Teensy-R4ge-Pro | d94a73f4f60957b3f28a27b7d6f74b01a61121fa | [
"MIT"
] | 1 | 2022-01-11T12:55:50.000Z | 2022-01-11T12:55:50.000Z | /*
* Castaway
* (C) 1994 - 2002 Martin Doering, Joachim Hoenig
*
* $File$ - memory read/write
*
* This file is distributed under the GPL, version 2 or at your
* option any later version. See doc/license.txt for details.
*
* revision history
* 23.05.2002 JH FAST1.0.1 code import: KR -> ANSI, restructuring
* 30.05.... | 21.63655 | 86 | 0.692892 | DigiTorus86 |
b59205c22fb73cbd3f92597ed12c7ff49f7d821c | 730 | cpp | C++ | hw5/src/test_Country.cpp | Rytheking/OOP-refleming | db81b3efe7e99b00f84ca116287f6510c9e77493 | [
"MIT"
] | null | null | null | hw5/src/test_Country.cpp | Rytheking/OOP-refleming | db81b3efe7e99b00f84ca116287f6510c9e77493 | [
"MIT"
] | null | null | null | hw5/src/test_Country.cpp | Rytheking/OOP-refleming | db81b3efe7e99b00f84ca116287f6510c9e77493 | [
"MIT"
] | null | null | null | #include "Country.h"
#include "gtest/gtest.h"
using namespace std;
using namespace france;
TEST(Country, Constructor) {
float GDP = 314000000000;
string continent("europe");
Country Country(GDP,continent);
ASSERT_EQ(Country.GDP(),GDP);
ASSERT_EQ(Country.continent(),continent);
floa... | 24.333333 | 47 | 0.664384 | Rytheking |
b594a909f22095675ae48fd2966ef8f1bb73403e | 417 | hpp | C++ | libctrpf/include/CTRPluginFramework/System/Clock.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/include/CTRPluginFramework/System/Clock.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/include/CTRPluginFramework/System/Clock.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | #ifndef CTRPLUGINFRAMREWORK_CLOCK_HPP
#define CTRPLUGINFRAMREWORK_CLOCK_HPP
#include "CTRPluginFramework/System/Time.hpp"
namespace CTRPluginFramework
{
class Clock
{
public:
Clock(void);
Clock(Time time);
Time GetElapsedTime(void) const;
bool HasTimePassed(Time time... | 18.954545 | 47 | 0.64988 | MirayXS |
b59d7c70c5f754130b39ba2fe863763260c080e6 | 992 | hpp | C++ | src/gui.hpp | MisterIsmed/PhotoStick | 9383a0b86409f4c1f398eb3b913b32adb9762070 | [
"MIT"
] | null | null | null | src/gui.hpp | MisterIsmed/PhotoStick | 9383a0b86409f4c1f398eb3b913b32adb9762070 | [
"MIT"
] | null | null | null | src/gui.hpp | MisterIsmed/PhotoStick | 9383a0b86409f4c1f398eb3b913b32adb9762070 | [
"MIT"
] | null | null | null | #ifndef GUI_HPP
#define GUI_HPP
#include "GUIslice.h"
#include "GUIslice_drv.h"
#include "GUIslice_ex.h"
#include "SdFat.h"
#include "util.hpp"
enum Animation
{
ANIM_LIGHT,
ANIM_BLINK,
ANIM_MARQUEE,
};
struct StickConfig
{
const char *fileToLoad;
Animation animation;
CRGB animationColor;
uint8... | 21.106383 | 75 | 0.721774 | MisterIsmed |
b59edf51969128b8b7bbed720ce96ae262d8068c | 723 | cpp | C++ | learncpp/average.cpp | ignaciop/c-varios | c8ef033485efd19a01fbc43658be36473eb1d08d | [
"MIT"
] | null | null | null | learncpp/average.cpp | ignaciop/c-varios | c8ef033485efd19a01fbc43658be36473eb1d08d | [
"MIT"
] | null | null | null | learncpp/average.cpp | ignaciop/c-varios | c8ef033485efd19a01fbc43658be36473eb1d08d | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdint>
class Average {
private:
int32_t m_total = 0;
int8_t m_numbers = 0;
public:
Average() {}
friend std::ostream& operator<<(std::ostream &out, const Average &average) {
out << static_cast<double>(average.m_total) / average.m_numbers;
return out;
}
Average& operato... | 15.0625 | 77 | 0.562932 | ignaciop |
b27158435fe44061b11bd04087b322d571542b30 | 4,017 | hpp | C++ | ConvertTours/Data/Tour_File.hpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | ConvertTours/Data/Tour_File.hpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | ConvertTours/Data/Tour_File.hpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //********************************************************
// Tour_File.hpp - Tour File Input/Output
//********************************************************
#ifndef TOUR_FILE_HPP
#define TOUR_FILE_HPP
#include "Ext_Header.hpp"
//---------------------------------------------------------
// Tour_File Class definit... | 45.647727 | 99 | 0.620861 | kravitz |
b27646379e7355c5d70bb819fe7d05851993e12d | 951 | cpp | C++ | src/dev/memory_dev.cpp | RupertAvery/et3400 | 243c0ed407bee20f43e2f1c528f10cc6ffb12664 | [
"BSD-3-Clause"
] | 3 | 2020-11-06T22:30:32.000Z | 2021-12-24T06:30:32.000Z | src/dev/memory_dev.cpp | RupertAvery/et3400 | 243c0ed407bee20f43e2f1c528f10cc6ffb12664 | [
"BSD-3-Clause"
] | null | null | null | src/dev/memory_dev.cpp | RupertAvery/et3400 | 243c0ed407bee20f43e2f1c528f10cc6ffb12664 | [
"BSD-3-Clause"
] | 1 | 2021-12-24T06:30:38.000Z | 2021-12-24T06:30:38.000Z | #include "stdlib.h"
#include "memory_dev.h"
#include "string.h"
memory_device::memory_device(offs_t start, size_t size, bool readonly)
{
this->readonly = readonly;
this->start = start;
this->size = size;
end = start + size - 1;
memory = (uint8_t *)malloc(size);
next = NULL;
};
memory_device::~... | 16.396552 | 70 | 0.648791 | RupertAvery |
b280fe5af68259f4869de4427cd49488b58b46ec | 4,083 | cpp | C++ | tests/db.cpp | Carlosnuji/Plantas | 01b822794184b5d8803bb445cd927b38ad6e57d5 | [
"MIT"
] | null | null | null | tests/db.cpp | Carlosnuji/Plantas | 01b822794184b5d8803bb445cd927b38ad6e57d5 | [
"MIT"
] | null | null | null | tests/db.cpp | Carlosnuji/Plantas | 01b822794184b5d8803bb445cd927b38ad6e57d5 | [
"MIT"
] | null | null | null | #include "db.h"
Db::Db()
{
m_db = QSqlDatabase::addDatabase("QPSQL");
m_db.setHostName("localhost");
m_db.setDatabaseName("template1");
m_db.setPort(5432);
m_db.setUserName("postgres");
m_db.setPassword("");
}
bool Db::isNumber(const std::string& s)
{
std::string::const_iterator it = s.b... | 26.006369 | 127 | 0.467303 | Carlosnuji |
b287806730d8a4096663c5b6d97afeab3dd8c923 | 6,355 | cpp | C++ | src/TotalEnergy/localTotalEnergy.cpp | pmu2022/lsms | 3c5f266812cad0b6d570bef9f5abb590d044ef92 | [
"BSD-3-Clause"
] | 1 | 2022-01-27T14:45:51.000Z | 2022-01-27T14:45:51.000Z | src/TotalEnergy/localTotalEnergy.cpp | pmu2022/lsms | 3c5f266812cad0b6d570bef9f5abb590d044ef92 | [
"BSD-3-Clause"
] | null | null | null | src/TotalEnergy/localTotalEnergy.cpp | pmu2022/lsms | 3c5f266812cad0b6d570bef9f5abb590d044ef92 | [
"BSD-3-Clause"
] | null | null | null |
#include "localTotalEnergy.hpp"
#include <cmath>
#include "Misc/integrator.hpp"
#include "PhysicalConstants.hpp"
#include "Misc/poisson.hpp"
extern "C" {
void zeropt_(Real *ezpt, Real *tpzpt, Real *atvol, Real *ztotss);
}
/**
* Calculates the total energy `energy` for each site
*
* @param lsms system parameters... | 29.421296 | 80 | 0.545397 | pmu2022 |
b28833182c3530b089ade20291943b95527413f0 | 1,164 | cpp | C++ | practice/table.cpp | tntptntp/UCR-U16-CS10v | be0f360c4d29a1d2c5fac72ba6ab1e2db9df7654 | [
"MIT"
] | null | null | null | practice/table.cpp | tntptntp/UCR-U16-CS10v | be0f360c4d29a1d2c5fac72ba6ab1e2db9df7654 | [
"MIT"
] | null | null | null | practice/table.cpp | tntptntp/UCR-U16-CS10v | be0f360c4d29a1d2c5fac72ba6ab1e2db9df7654 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <string>
using namespace std;
const int MONTHS = 12;
string monthName(int monthNumber){
string monthNames[] = {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"};
return monthNames[monthNumber - 1];
}
void PrintHeader (int yearColWidth, ... | 19.728814 | 100 | 0.546392 | tntptntp |
b289c5d51edb9c9502e6ebc3954c17fc58fddd28 | 274 | hh | C++ | nox/src/nox/lib/nox-config.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 28 | 2015-02-04T13:59:25.000Z | 2021-12-29T03:44:47.000Z | nox/src/nox/lib/nox-config.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 552 | 2015-01-05T18:25:54.000Z | 2022-03-16T18:51:13.000Z | nox/src/nox/lib/nox-config.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 25 | 2015-02-04T18:48:20.000Z | 2020-06-18T15:51:05.000Z | #ifndef NOX_CONFIG_HH
#define NOX_CONFIG_HH
const char* pkgdatadir = PKGDATADIR;
const char* pkgsysconfdir = PKGSYSCONFDIR;
const char* pkglibdir = PKGLIBDIR;
const char* version = NOX_VERSION;
const int buildnr = BUILDNR;
#endif // -- NOX_CONFIG_HH
| 24.909091 | 42 | 0.715328 | ayjazz |
b28ebc6c0c2cb69f6788975c718518096a2e27f9 | 691 | hpp | C++ | src/opengl/opengl_version/ff8/FF8Menu.hpp | Sebanisu/Field-Map-Editor | 2f37986459785a78766de34e38fc3e21db8b6f14 | [
"Unlicense"
] | null | null | null | src/opengl/opengl_version/ff8/FF8Menu.hpp | Sebanisu/Field-Map-Editor | 2f37986459785a78766de34e38fc3e21db8b6f14 | [
"Unlicense"
] | 66 | 2021-09-27T23:58:02.000Z | 2022-01-10T20:41:36.000Z | src/opengl/opengl_version/ff8/FF8Menu.hpp | Sebanisu/Field-Map-Editor | 2f37986459785a78766de34e38fc3e21db8b6f14 | [
"Unlicense"
] | null | null | null | //
// Created by pcvii on 11/24/2021.
//
#ifndef MYPROJECT_FF8MENU_HPP
#define MYPROJECT_FF8MENU_HPP
#include "Fields.hpp"
#include "Menu.hpp"
namespace ff8
{
class FF8Menu
{
public:
FF8Menu();
void OnUpdate(float) const;
void OnRender() const;
void OnImGuiUpdate() const;
void OnEvent(const glengine::Event... | 19.742857 | 70 | 0.685962 | Sebanisu |
b2903a3e1f1af5114365a8e1f182d75499dcf3b1 | 3,605 | cpp | C++ | word_break.cpp | artureganyan/algorithms | 98cd0048162b3cb1c79712a884261cd3fe31063c | [
"MIT"
] | null | null | null | word_break.cpp | artureganyan/algorithms | 98cd0048162b3cb1c79712a884261cd3fe31063c | [
"MIT"
] | null | null | null | word_break.cpp | artureganyan/algorithms | 98cd0048162b3cb1c79712a884261cd3fe31063c | [
"MIT"
] | null | null | null | // Problem: https://leetcode.com/problems/word-break/
#include <vector>
#include <string>
#include "utils.h"
namespace word_break {
class Solution {
public:
// Time: O(n^2 * d), Space: O(n), Recursion depth <= n + 2
// n - length of the string, d - length of the dictionary
//
// Note: The worst case ... | 38.351064 | 109 | 0.533426 | artureganyan |
b291d6f8cb1d3d3d498aada7d7a1989ef7200683 | 71,350 | cpp | C++ | src/sim/Rasterizer/Rasterizer.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 23 | 2016-01-14T04:47:13.000Z | 2022-01-13T14:02:08.000Z | src/sim/Rasterizer/Rasterizer.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 2 | 2018-03-25T14:39:20.000Z | 2022-03-18T05:11:21.000Z | src/sim/Rasterizer/Rasterizer.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 17 | 2016-02-13T05:35:35.000Z | 2022-03-24T16:05:40.000Z | /**************************************************************************
*
* Copyright (c) 2002 - 2011 by Computer Architecture Department,
* Universitat Politecnica de Catalunya.
* All rights reserved.
*
* The contents of this file may not be disclosed to third parties,
* copied or duplicated in any form, in... | 34.804878 | 135 | 0.566097 | attila-sim |
b2968f62f2e41310f5e9fe54e71802068f031bac | 2,383 | cpp | C++ | sim/Boat/BoatTest.cpp | andyrobinson/ard-nav | 8162b2c9b882393ffd44e42d3f0816d7b1090760 | [
"MIT"
] | null | null | null | sim/Boat/BoatTest.cpp | andyrobinson/ard-nav | 8162b2c9b882393ffd44e42d3f0816d7b1090760 | [
"MIT"
] | null | null | null | sim/Boat/BoatTest.cpp | andyrobinson/ard-nav | 8162b2c9b882393ffd44e42d3f0816d7b1090760 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "Boat.h"
#include "Position.h"
#include "Globe.h"
#include "Utility.h"
using namespace Position;
using namespace Utility;
namespace {
position kynance_cove = {49.97480, -5.23198, 5.0};
Globe globe;
class BoatTest : public ::testing::Test {
protected:
BoatTest... | 28.710843 | 92 | 0.669744 | andyrobinson |
b29db8d1c35b45ee1ca236d77d74ba0a768c66da | 11,132 | cpp | C++ | src/graphics/dxengine/dxtools.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/graphics/dxengine/dxtools.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/graphics/dxengine/dxtools.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | #include <cISO646>
#include <math.h>
#include "../include/TimeMgr.h"
#include "../include/ObjectInstance.h"
#include "dxdefines.h"
#include "DxTools.h"
#include "../../falclib/include/mltrig.h"
#include "dxengine.h"
#ifndef DEBUG_ENGINE
// This function just assign a PMatrix object to a DX Compliant Matrix
void Assig... | 28.690722 | 156 | 0.610402 | Terebinth |
b29e20939c6dde13ae288f9e4c0b0e07ae823e4c | 2,644 | cpp | C++ | console/tests/main.cpp | rideskip/anchor | fbd52aa2b049ba210619ab9e714fa43ce43f2081 | [
"MIT"
] | 53 | 2020-02-05T19:44:58.000Z | 2022-03-11T20:59:17.000Z | console/tests/main.cpp | AudigoLabs/anchor | 713365f3f8126c48d0f23e03a1d76215406da6ac | [
"MIT"
] | 3 | 2020-03-29T17:16:55.000Z | 2022-01-09T20:31:46.000Z | console/tests/main.cpp | rideskip/anchor | fbd52aa2b049ba210619ab9e714fa43ce43f2081 | [
"MIT"
] | 13 | 2020-03-02T08:55:14.000Z | 2022-03-19T07:40:24.000Z | #include "gtest/gtest.h"
extern "C" {
#include "anchor/console/console.h"
};
#include <stdio.h>
#define CONSOLE_COMMAND_GET_INT_ARG(NAME) ({ \
int _arg; \
const bool _res = console_command_get_int_arg(NAME, &_arg); \
ASSERT_TRUE(_res); \
_arg; \
})
#define CONSOLE_COMMAND_GET_STR_ARG(NAME) ({ \
... | 27.541667 | 138 | 0.711422 | rideskip |
b29ed0f46ed47c191cff55bd13da622b2415330b | 6,791 | cpp | C++ | ixlib/old_wss/src/IXWebSocketPluginSetting.cpp | algamza/ixwss | fc323df76754d9f8aa24a36a24f640378c9e86bb | [
"Unlicense"
] | 1 | 2020-02-11T02:42:31.000Z | 2020-02-11T02:42:31.000Z | ixlib/old_wss/src/IXWebSocketPluginSetting.cpp | algamza/ixwss | fc323df76754d9f8aa24a36a24f640378c9e86bb | [
"Unlicense"
] | null | null | null | ixlib/old_wss/src/IXWebSocketPluginSetting.cpp | algamza/ixwss | fc323df76754d9f8aa24a36a24f640378c9e86bb | [
"Unlicense"
] | null | null | null | /**
* @file IXWebSocketPluginSetting.cpp
* @author Group(SW_Browser) <gsw_browser@humaxdigital.com>
* @brief Session to manage the client based on WebSocket
*
* (c) 2017 Humax Co., Ltd.
* This program is produced by Humax Co., Ltd. ("Humax") and
* the proprietary Software of Humax and its licensors. Huma... | 34.825641 | 121 | 0.5335 | algamza |
b29f31c132cc72e436a08ac99e03230aa8caa214 | 1,761 | cpp | C++ | src/SourceGenerator.cpp | MadLadSquad/UVKBuildTool | a25c0fb4f2ce407289a3f79aa9418272374b7a07 | [
"MIT"
] | 1 | 2022-02-08T07:08:28.000Z | 2022-02-08T07:08:28.000Z | src/SourceGenerator.cpp | MadLadSquad/UVKBuildTool | a25c0fb4f2ce407289a3f79aa9418272374b7a07 | [
"MIT"
] | null | null | null | src/SourceGenerator.cpp | MadLadSquad/UVKBuildTool | a25c0fb4f2ce407289a3f79aa9418272374b7a07 | [
"MIT"
] | null | null | null | #include "SourceGenerator.hpp"
void UBT::generateGame()
{
auto game = std::ofstream(path + static_cast<std::string>("Source/Game.hpp"));
game << "// Do not edit this file! This file was generated by the UVKBuildTool and will be overridden the next time you run regenerate!" << std::endl;
game << "#include ... | 32.018182 | 154 | 0.611584 | MadLadSquad |
b2a1b59f044c86b4bd57ff4a82232b6281001998 | 464 | cpp | C++ | source/libraries/ArduinoJson-master/src/Arduino/String.cpp | doanthuyan/AirSniffer | 44cffe8cda507a8ba112cee477a9d6e5b43e90ef | [
"MIT"
] | null | null | null | source/libraries/ArduinoJson-master/src/Arduino/String.cpp | doanthuyan/AirSniffer | 44cffe8cda507a8ba112cee477a9d6e5b43e90ef | [
"MIT"
] | null | null | null | source/libraries/ArduinoJson-master/src/Arduino/String.cpp | doanthuyan/AirSniffer | 44cffe8cda507a8ba112cee477a9d6e5b43e90ef | [
"MIT"
] | 1 | 2016-01-12T07:51:18.000Z | 2016-01-12T07:51:18.000Z | // Copyright Benoit Blanchon 2014-2015
// MIT License
//
// Arduino JSON library
// https://github.com/bblanchon/ArduinoJson
#ifndef ARDUINO
#include "../../include/ArduinoJson/Arduino/String.hpp"
#include <stdio.h> // for sprintf()
String::String(double value, unsigned char digits) {
char tmp[32];
sprintf(tmp... | 17.846154 | 55 | 0.663793 | doanthuyan |
b2a82eb21412fdc3aad86b07a1bed002d48f39da | 8,824 | cpp | C++ | src/ofApp.cpp | aalto-mediacode/photosynthetic | b95896a2fee7b14071bad0c38912c8201ee3d151 | [
"MIT"
] | null | null | null | src/ofApp.cpp | aalto-mediacode/photosynthetic | b95896a2fee7b14071bad0c38912c8201ee3d151 | [
"MIT"
] | null | null | null | src/ofApp.cpp | aalto-mediacode/photosynthetic | b95896a2fee7b14071bad0c38912c8201ee3d151 | [
"MIT"
] | null | null | null |
// This project includes Wireframe extrucion from VideoGrabber, midi-controlling the mesh and screen capturing the images
// Base of this code is based on Tim Gfrerer and James George OF cameraMesh -example
// I used for the final version OpenFrameworks and Touchdesigner.
//file for the Touchdesigner is in the bin... | 30.961404 | 133 | 0.523232 | aalto-mediacode |
b2a8a0021c5a31ba2df56519503fb6fd028ada58 | 46,277 | cpp | C++ | spirv_module.cpp | HansKristian-Work/DXIL2SPIRV | ea9ac33ae88c9efb0f864d473eb22c3c04d166a5 | [
"MIT"
] | 5 | 2019-11-07T13:14:56.000Z | 2019-12-09T20:01:47.000Z | spirv_module.cpp | HansKristian-Work/DXIL2SPIRV | ea9ac33ae88c9efb0f864d473eb22c3c04d166a5 | [
"MIT"
] | null | null | null | spirv_module.cpp | HansKristian-Work/DXIL2SPIRV | ea9ac33ae88c9efb0f864d473eb22c3c04d166a5 | [
"MIT"
] | null | null | null | /* Copyright (c) 2019-2022 Hans-Kristian Arntzen for Valve Corporation
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
... | 33.197274 | 133 | 0.758584 | HansKristian-Work |
b2acbf5de86263ad5b5136016bd78f9d6875e740 | 850 | hpp | C++ | SDK/ARKSurvivalEvolved_ProjDragonFireBall_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_ProjDragonFireBall_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_ProjDragonFireBall_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_ProjDragonFireBall_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------... | 25.757576 | 152 | 0.588235 | 2bite |
b2b05dd50468e1ad6d7148a1ec504c5fe9dedad3 | 12,519 | cpp | C++ | src/ViewModel.cpp | cojomojo/opengl_skybox_game | 8ef503bd41e2e51e5f9dbfd81fb99d21b5103580 | [
"MIT"
] | null | null | null | src/ViewModel.cpp | cojomojo/opengl_skybox_game | 8ef503bd41e2e51e5f9dbfd81fb99d21b5103580 | [
"MIT"
] | null | null | null | src/ViewModel.cpp | cojomojo/opengl_skybox_game | 8ef503bd41e2e51e5f9dbfd81fb99d21b5103580 | [
"MIT"
] | null | null | null | //FileName: ViewModel.cpp
//Programmer: Dan Cliburn, Cody Balos
//Date: 11/15/2015
//Purpose: Define the methods for the World ViewModel class.
//The Init() method needs to set up OpenGL and GLEW and prepare all objects (and their shaders) to be rendered.
//The Draw() method positions and renders all objects in the... | 34.871866 | 143 | 0.667785 | cojomojo |
b2b0be6ccdbedf093d981a1f85b4465554d0a2fa | 3,156 | hpp | C++ | include/Renderer.hpp | SudoCpp/simplexsdl | 23b44f5a29f5f24f6bb323062130e3b01ecb33eb | [
"Zlib"
] | null | null | null | include/Renderer.hpp | SudoCpp/simplexsdl | 23b44f5a29f5f24f6bb323062130e3b01ecb33eb | [
"Zlib"
] | null | null | null | include/Renderer.hpp | SudoCpp/simplexsdl | 23b44f5a29f5f24f6bb323062130e3b01ecb33eb | [
"Zlib"
] | null | null | null | /*
BSD 3-Clause License
Copyright (c) 2022, SudoCpp
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,... | 40.987013 | 121 | 0.724335 | SudoCpp |
b2b55d53b0c20e812861431c6a02f15046ba3d6b | 13,690 | cpp | C++ | Motor2D/j1EntityElementsScene.cpp | NontendoSL/Zelda-a-Link-to-the-Past-TRIBUTE | 8676c7fc70b6dea54cd173b42c5006f34ab82404 | [
"Apache-2.0"
] | 11 | 2017-02-16T18:30:43.000Z | 2021-08-07T11:40:49.000Z | Motor2D/j1EntityElementsScene.cpp | NontendoSL/Zelda-a-Link-to-the-Past-TRIBUTE | 8676c7fc70b6dea54cd173b42c5006f34ab82404 | [
"Apache-2.0"
] | 81 | 2017-02-16T18:27:02.000Z | 2017-06-07T20:23:40.000Z | Motor2D/j1EntityElementsScene.cpp | NontendoSL/Zelda-a-Link-to-the-Past-TRIBUTE | 8676c7fc70b6dea54cd173b42c5006f34ab82404 | [
"Apache-2.0"
] | 5 | 2017-03-01T14:49:24.000Z | 2021-08-07T11:40:51.000Z | #include "j1EntityElementsScene.h"
#include "Soldier.h"
#include "j1Item.h"
#include "j1Player.h"
#include "j1DynamicObjects.h"
#include "j1Scene.h"
#include "j1App.h"
#include "j1Input.h"
#include "p2Log.h"
#include "Geodude.h"
#include "Sudowoodo.h"
#include "Golem.h"
#include "PokeTrainer.h"
#include "j1Textures.h"
... | 21.974318 | 121 | 0.673703 | NontendoSL |
b2be7f66ea73bb466fe20289daa828ac0bebd4d6 | 11,923 | cpp | C++ | pla/tests/scaling.cpp | JBPennington/PLA | 60ff7952a8549e5272fb3c2aa9a469553a026727 | [
"MIT"
] | 4 | 2018-02-04T22:16:05.000Z | 2021-02-18T23:51:20.000Z | pla/tests/scaling.cpp | JBPennington/PLA | 60ff7952a8549e5272fb3c2aa9a469553a026727 | [
"MIT"
] | null | null | null | pla/tests/scaling.cpp | JBPennington/PLA | 60ff7952a8549e5272fb3c2aa9a469553a026727 | [
"MIT"
] | null | null | null |
extern "C" {
#include "../pla.h"
}
#include <gtest/gtest.h>
#include <iostream>
class Linear_Algebra_Scale_ : public testing::Test {
void SetUp() {}
void TearDown() {}
public:
const float tolerance = 0.00000001f;
mat2x2 Mat2_zero {{0,0},{0,0}};
mat3x3 Mat3_zero {{0,0,0},{0,0,0},{0,0,0}};
ma... | 35.379822 | 162 | 0.556487 | JBPennington |
b2bf412cbf53b73e507354a4d55c49279c232463 | 19,329 | cpp | C++ | view-cmake/src/plotNormal.cpp | limeng12/GenomeBrowser-CPlusPlus | 63d41a55d013cee9208e244cf154901461e12a30 | [
"BSD-3-Clause-Attribution"
] | 2 | 2019-10-14T09:29:38.000Z | 2021-04-25T00:16:40.000Z | view-cmake/src/plotNormal.cpp | limeng12/GenomeBrowser-CPlusPlus | 63d41a55d013cee9208e244cf154901461e12a30 | [
"BSD-3-Clause-Attribution"
] | null | null | null | view-cmake/src/plotNormal.cpp | limeng12/GenomeBrowser-CPlusPlus | 63d41a55d013cee9208e244cf154901461e12a30 | [
"BSD-3-Clause-Attribution"
] | null | null | null | #include "plotNormal.h"
PlotNormal::PlotNormal(DataFactory* tdata,BamData* tbdata,wxSize tcavanseSize,std::vector<bool>* tvector)
:PlotBase(tdata,tbdata,tcavanseSize,tvector){
//posNulciedTable=new char[200];//
//200是一行染色体可能的最多的数目
minHeight=3;
}
PlotNormal::~PlotNormal(){
}
void PlotNormal::NucliedSi... | 31.791118 | 182 | 0.561902 | limeng12 |
b2c215dd6158f8eef501dfc0ca47fe46a63268e7 | 1,165 | hpp | C++ | simtools/factory.hpp | dcrete/simtools | 82be6de79a490cdfe9079d643cd88dff2a5ae3aa | [
"MIT"
] | null | null | null | simtools/factory.hpp | dcrete/simtools | 82be6de79a490cdfe9079d643cd88dff2a5ae3aa | [
"MIT"
] | null | null | null | simtools/factory.hpp | dcrete/simtools | 82be6de79a490cdfe9079d643cd88dff2a5ae3aa | [
"MIT"
] | null | null | null | #ifndef SIMTOOLS_FACTORY_HPP
#define SIMTOOLS_FACTORY_HPP
#include <array>
#include <vector>
#include "simtools_config.hpp"
#include "matrix.hpp"
#include "tuple_math.hpp"
namespace simtools::factory {
template<dim_t N>
constexpr inline matrix<N> make_matrix(std::vector<dim_t>::const_iterator it) {
i... | 26.477273 | 83 | 0.592275 | dcrete |
b2c572acb83e9654fa28a93e2a37c5d2e5df4f06 | 2,185 | cpp | C++ | samples/01_system/08_json/src/main.cpp | SiminBadri/Wolf.Engine | 3da04471ec26e162e1cbb7cc88c7ce37ee32c954 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | 1 | 2020-07-15T13:14:26.000Z | 2020-07-15T13:14:26.000Z | samples/01_system/08_json/src/main.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | samples/01_system/08_json/src/main.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | /*
Project : Wolf Engine. Copyright(c) Pooya Eimandar (http://PooyaEimandar.com) . All rights reserved.
Source : Please direct any bug to https://github.com/PooyaEimandar/Wolf.Engine/issues
Website : http://WolfSource.io
Name : main.cpp
Description : This sample shows how to interact lua as script en... | 25.406977 | 104 | 0.637071 | SiminBadri |
b2c5827cd04fdd2d18f089248ac6085e4cc32f1d | 289 | cpp | C++ | src/0231.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | src/0231.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | src/0231.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <map>
#include <hash_map>
#include <hash_set>
#include <queue>
using namespace std;
class Solution {
public:
bool isPowerOfTwo(int n) {
return (n > 0) && !(n & (n - 1));
}
}; | 16.055556 | 37 | 0.657439 | killf |
b2ca06975455fc9f0c1bc995fa6d26e67ba4dfd2 | 2,064 | cpp | C++ | Pinball/ModulePlayer.cpp | yeraytm/Pinball | f39b8d7b0e1b793ae7f3f992caec1a2960c1923c | [
"MIT"
] | null | null | null | Pinball/ModulePlayer.cpp | yeraytm/Pinball | f39b8d7b0e1b793ae7f3f992caec1a2960c1923c | [
"MIT"
] | null | null | null | Pinball/ModulePlayer.cpp | yeraytm/Pinball | f39b8d7b0e1b793ae7f3f992caec1a2960c1923c | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModulePlayer.h"
#include "ModuleTextures.h"
#include "ModulePhysics.h"
#include "ModuleRender.h"
#include "ModuleInput.h"
#include "ModuleAudio.h"
#include "ModuleSceneIntro.h"
ModulePlayer::ModulePlayer(Application* app, bool start_enabled) : Module(app, start_e... | 23.724138 | 105 | 0.71124 | yeraytm |
b2cc417185be34061429a5f49df485bc574b33e8 | 442 | cpp | C++ | AtCoder/ABC113/b.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | AtCoder/ABC113/b.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | AtCoder/ABC113/b.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>;
int main() {
int n, t, a;
cin >> n >> t >> a;
vector<int> h(n);
rep(i, n) cin >> h[i];
int ans = 0;
double mn = 1e9;
rep(i, n) {
double tem = t - h[i] * 0.006... | 17.68 | 47 | 0.470588 | Takumi1122 |
b2d7efd18515f8e01dc39854d0c28429107974a5 | 595 | cpp | C++ | Luogu/Float/P1422.cpp | shuye02/C-Algorithms | a2aaf927d8c8e0d89140a34d115ac49c0f489066 | [
"MIT"
] | null | null | null | Luogu/Float/P1422.cpp | shuye02/C-Algorithms | a2aaf927d8c8e0d89140a34d115ac49c0f489066 | [
"MIT"
] | null | null | null | Luogu/Float/P1422.cpp | shuye02/C-Algorithms | a2aaf927d8c8e0d89140a34d115ac49c0f489066 | [
"MIT"
] | null | null | null | // P1422 小玉家的电费
// https://www.luogu.org/problemnew/show/P1422
#include <iostream>
using namespace std;
int main(){
// Input Quantity
int quantity;
cin >> quantity;
double price;
// Calculate Price
if(quantity <= 150) {
price = quantity * 0.4463;
} else if (quantity > 150 && quant... | 22.884615 | 80 | 0.552941 | shuye02 |
b2da1ed0c332bbec4a9ba6cbbef1684879d0e43e | 90,237 | cpp | C++ | src/plugPikiKando/collInfo.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | 27 | 2021-09-28T00:33:11.000Z | 2021-11-18T19:38:40.000Z | src/plugPikiKando/collInfo.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | src/plugPikiKando/collInfo.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | #include "types.h"
/*
* --INFO--
* Address: ........
* Size: 00009C
*/
void _Error(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: ........
* Size: 0000F4
*/
void _Print(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: 80086CC4
* Size: 0002DC
*/
void Cylinder::get2dDist(Vector3f&... | 20.401764 | 88 | 0.455057 | doldecomp |
b2e6c2441fd190f123b9bf7c56f2c01bebabce85 | 673 | hpp | C++ | leetCode/872.Leaf-Similiar Trees.hpp | CainHsu/ProgramStudy-leetcode | 23653e8927902aed64ba13a23a1d6c983b7ea5d5 | [
"Apache-2.0"
] | 1 | 2019-12-08T06:21:57.000Z | 2019-12-08T06:21:57.000Z | leetCode/872.Leaf-Similiar Trees.hpp | CainHsu/ProgramStudy-leetcode | 23653e8927902aed64ba13a23a1d6c983b7ea5d5 | [
"Apache-2.0"
] | null | null | null | leetCode/872.Leaf-Similiar Trees.hpp | CainHsu/ProgramStudy-leetcode | 23653e8927902aed64ba13a23a1d6c983b7ea5d5 | [
"Apache-2.0"
] | null | null | null | //
// Created by xuche on 2020/4/27.
//
#ifndef PROGRAMSTUDY_LEETCODE_872_LEAF_SIMILIAR_TREES_HPP
#define PROGRAMSTUDY_LEETCODE_872_LEAF_SIMILIAR_TREES_HPP
#include "../SourceCode/structs.hpp"
#include "vector"
using namespace std;
vector<int> v1;
void goDeeper(TreeNode* root){
if(!root) return;
if(root->le... | 23.206897 | 63 | 0.716196 | CainHsu |
b2ea86e461b7b0ef80b4709f573eb34e4cde9ff6 | 11,999 | cpp | C++ | NPSVisor/tools/svMaker/source/pProperty/svmPropertyPlotXY.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | NPSVisor/tools/svMaker/source/pProperty/svmPropertyPlotXY.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | NPSVisor/tools/svMaker/source/pProperty/svmPropertyPlotXY.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | //--------------- svmPropertyPlotXY.cpp -----------------------
//-----------------------------------------------------------
#include "precHeader.h"
//-----------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include "svmPropertyPlotXY.h"
#include "macro_utils.h"
#include "PLi... | 33.330556 | 165 | 0.586632 | NPaolini |
b2ebc689200fcd6cb7335ce69aef5760e9d0085f | 8,278 | hpp | C++ | lib/dmitigr/pgfe/sql_string.hpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | lib/dmitigr/pgfe/sql_string.hpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | lib/dmitigr/pgfe/sql_string.hpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | // -*- C++ -*-
// Copyright (C) Dmitry Igrishin
// For conditions of distribution and use, see files LICENSE.txt or pgfe.hpp
#ifndef DMITIGR_PGFE_SQL_STRING_HPP
#define DMITIGR_PGFE_SQL_STRING_HPP
#include "dmitigr/pgfe/basics.hpp"
#include "dmitigr/pgfe/dll.hpp"
#include "dmitigr/pgfe/parameterizable.hpp"
#include ... | 31.59542 | 94 | 0.656439 | thevojacek |
b2ec221905d5475066ee252865ca116c735e0729 | 742 | hpp | C++ | libs/common/include/common/time_utils.hpp | kiril-kirov/cpp-project | 6078b337e4e9e62d5e3d2675e2a53f6e8d98eb19 | [
"MIT"
] | 1 | 2022-03-31T16:58:54.000Z | 2022-03-31T16:58:54.000Z | libs/common/include/common/time_utils.hpp | kiril-kirov/cpp-project | 6078b337e4e9e62d5e3d2675e2a53f6e8d98eb19 | [
"MIT"
] | null | null | null | libs/common/include/common/time_utils.hpp | kiril-kirov/cpp-project | 6078b337e4e9e62d5e3d2675e2a53f6e8d98eb19 | [
"MIT"
] | null | null | null | #ifndef CPP_PROJECT_COMMON_TIME_UTILS_H
#define CPP_PROJECT_COMMON_TIME_UTILS_H
#include <chrono>
#include <functional>
namespace cpp_project::common
{
template<typename precision = std::chrono::microseconds,
typename clock = std::chrono::high_resolution_clock>
precision time_since(const typename clock::tim... | 25.586207 | 71 | 0.745283 | kiril-kirov |
b2ed0d90b3c7517c7b704029dcfada319c6405be | 1,251 | hpp | C++ | src/FrgCommon.hpp | Sourin-chatterjee/SpinParser | 23fa90c327b8a4543e5afac1b64d18df40975182 | [
"MIT"
] | 18 | 2021-06-03T16:03:02.000Z | 2022-02-28T00:48:53.000Z | src/FrgCommon.hpp | Sourin-chatterjee/SpinParser | 23fa90c327b8a4543e5afac1b64d18df40975182 | [
"MIT"
] | 3 | 2021-10-08T15:51:51.000Z | 2022-03-31T22:20:01.000Z | src/FrgCommon.hpp | Sourin-chatterjee/SpinParser | 23fa90c327b8a4543e5afac1b64d18df40975182 | [
"MIT"
] | 2 | 2022-02-10T17:15:05.000Z | 2022-02-11T19:54:27.000Z | /**
* @file FrgCommon.hpp
* @author Finn Lasse Buessen
* @brief Hub for central objects in pf-FRG calculations.
*
* @copyright Copyright (c) 2020
*/
#pragma once
#include "FrequencyDiscretization.hpp"
#include "CutoffDiscretization.hpp"
#include "Lattice.hpp"
/**
* @brief Hub for central objects in pf-FRG ca... | 22.745455 | 86 | 0.724221 | Sourin-chatterjee |
b2ed260d49da6c5697fe711ba7b52ac67e956d68 | 59 | cc | C++ | experiments/foo.cc | maciekgajewski/exceptions-under-the-hood | b42e66f4f0b4f9c9e4fdf3ae56130fe5f6d26608 | [
"MIT"
] | null | null | null | experiments/foo.cc | maciekgajewski/exceptions-under-the-hood | b42e66f4f0b4f9c9e4fdf3ae56130fe5f6d26608 | [
"MIT"
] | null | null | null | experiments/foo.cc | maciekgajewski/exceptions-under-the-hood | b42e66f4f0b4f9c9e4fdf3ae56130fe5f6d26608 | [
"MIT"
] | null | null | null | void baz(bool);
void foo(bool t) {
if (t)
baz(t);
}
| 8.428571 | 18 | 0.508475 | maciekgajewski |
b2f81003eea3d750a27c1a168ebb1777270dff14 | 3,018 | cpp | C++ | erizo/src/examples/pc/Observer.cpp | aalonsog/licode | 0602a50a59e36f9435448d647e145137191b8397 | [
"MIT"
] | 1,766 | 2017-02-04T05:30:58.000Z | 2022-03-30T08:20:40.000Z | erizo/src/examples/pc/Observer.cpp | ThePolarNight/licode | 667b3cc9a353f6e2b9ad9c464971ab07f678991c | [
"MIT"
] | 544 | 2017-02-02T11:27:08.000Z | 2022-03-02T11:21:57.000Z | erizo/src/examples/pc/Observer.cpp | ThePolarNight/licode | 667b3cc9a353f6e2b9ad9c464971ab07f678991c | [
"MIT"
] | 617 | 2017-02-07T11:25:50.000Z | 2022-03-18T02:33:18.000Z | /*
* Observer.cpp
*/
#include <time.h>
#include <boost/regex.hpp>
#include "Observer.h"
Observer::Observer(std::string name, SDPReceiver *receiver) :
pc_(new PC(name)), name_(name), receiver_(receiver) {
this->init();
}
Observer::~Observer() {
}
void Observer::wait() {
m_Thread_.join();
}
void Observer::init... | 26.946429 | 95 | 0.668655 | aalonsog |
6504f994fbccbd93cff4aa1f4dbdce94ce9323f0 | 5,256 | cpp | C++ | filters/filtertool.cpp | NorbertWychowski/FilterApp-Qt | cf12b66b09212c768dca7b1740381beb34985b3e | [
"MIT"
] | null | null | null | filters/filtertool.cpp | NorbertWychowski/FilterApp-Qt | cf12b66b09212c768dca7b1740381beb34985b3e | [
"MIT"
] | null | null | null | filters/filtertool.cpp | NorbertWychowski/FilterApp-Qt | cf12b66b09212c768dca7b1740381beb34985b3e | [
"MIT"
] | null | null | null | #include "filtertool.h"
#include "gaussianblur.h"
#include "boxblur.h"
#include <QtMath>
#include <QtConcurrent/QtConcurrent>
#include <QFutureSynchronizer>
QImage FilterTool::splot(QImage &img, FILTER choose, Matrix userKernel) {
Matrix kernel;
QImage res;
switch (choose) {
case LAPLACE_FILTER:
... | 29.363128 | 114 | 0.457953 | NorbertWychowski |
6505144a1748c3fb3f092ba2fb848f15d81a13a4 | 2,388 | hh | C++ | include/token/crypto/provider.hh | tcsantanello/tokengov | 1351f2358e9cce75c431f94b9086f285d0ea0072 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | include/token/crypto/provider.hh | tcsantanello/tokengov | 1351f2358e9cce75c431f94b9086f285d0ea0072 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | include/token/crypto/provider.hh | tcsantanello/tokengov | 1351f2358e9cce75c431f94b9086f285d0ea0072 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null |
#ifndef __TOKENIZATION_PROVIDER_HH__
#define __TOKENIZATION_PROVIDER_HH__
#include "token/crypto/base.hh"
#include "token/crypto/encryption_key.hh"
#include "token/crypto/hmac_key.hh"
#include <boost/program_options.hpp>
#include <map>
#include <memory>
#include <string>
namespace token {
namespace crypto {
/*... | 27.767442 | 104 | 0.602178 | tcsantanello |
650ac1a6080d0d23eb64e11d18234479dab47922 | 1,240 | hxx | C++ | OCC/opencascade-7.2.0/x64/debug/inc/IntImp_ComputeTangence.hxx | jiaguobing/FastCAE | 2348ab87e83fe5c704e4c998cf391229c25ac5d5 | [
"BSD-3-Clause"
] | 2 | 2020-02-21T01:04:35.000Z | 2020-02-21T03:35:37.000Z | OCC/opencascade-7.2.0/x64/debug/inc/IntImp_ComputeTangence.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2020-03-06T04:49:42.000Z | 2020-03-06T04:49:42.000Z | OCC/opencascade-7.2.0/x64/debug/inc/IntImp_ComputeTangence.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2021-11-21T13:03:26.000Z | 2021-11-21T13:03:26.000Z | // Copyright (c) 1995-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
... | 35.428571 | 152 | 0.775806 | jiaguobing |
650da005bbd0df57855baa602a16653cbabedd7b | 4,946 | cpp | C++ | files/soko1/qutim_0.1.1/protocol/oscar/icq/privacylistwindow.cpp | truebsdorg/truebsdorg.github.io | 8663d8f6fae3b1bb1e2fb29614677f2863521951 | [
"BSD-4-Clause-UC"
] | null | null | null | files/soko1/qutim_0.1.1/protocol/oscar/icq/privacylistwindow.cpp | truebsdorg/truebsdorg.github.io | 8663d8f6fae3b1bb1e2fb29614677f2863521951 | [
"BSD-4-Clause-UC"
] | null | null | null | files/soko1/qutim_0.1.1/protocol/oscar/icq/privacylistwindow.cpp | truebsdorg/truebsdorg.github.io | 8663d8f6fae3b1bb1e2fb29614677f2863521951 | [
"BSD-4-Clause-UC"
] | null | null | null | /*
privacyListWindow
Copyright (c) 2008 by Rustam Chakin <qutim.develop@gmail.com>
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify... | 30.720497 | 101 | 0.671452 | truebsdorg |
6516e0ac9713a8a5782ecf75d9e983afd0d5406e | 1,117 | cpp | C++ | ladder/src/ThreadPool.cpp | zoujiaqing/ladder | a4cee94d8032ef52bc1f04e386fa9150e11c7349 | [
"BSD-3-Clause"
] | null | null | null | ladder/src/ThreadPool.cpp | zoujiaqing/ladder | a4cee94d8032ef52bc1f04e386fa9150e11c7349 | [
"BSD-3-Clause"
] | 4 | 2021-11-25T06:36:47.000Z | 2022-02-19T15:13:41.000Z | ladder/src/ThreadPool.cpp | zoujiaqing/ladder | a4cee94d8032ef52bc1f04e386fa9150e11c7349 | [
"BSD-3-Clause"
] | 1 | 2022-01-24T02:38:54.000Z | 2022-01-24T02:38:54.000Z | #include <ThreadPool.h>
namespace ladder {
ThreadPool::ThreadPool(size_t capacity) : capacity_(capacity), stopped_(false) {
Init();
}
void ThreadPool::Init() {
for (size_t i = 0; i < capacity_; ++i)
threads_.emplace_back(std::thread([this]() {
Callback cur_task;
while (1) {
{
st... | 22.34 | 80 | 0.550582 | zoujiaqing |
6517bf8bbff557e14fb5dd8d4be8ee169f253a62 | 693 | cpp | C++ | lib/test/TempPrivKeyFile.cpp | apastor/ads-chain-cpp-library | 323d9c731f14031532dc072703d24e237d0a252e | [
"Apache-2.0"
] | 2 | 2020-05-15T11:45:13.000Z | 2020-05-20T17:26:43.000Z | lib/test/TempPrivKeyFile.cpp | apastor/ads-chain-cpp-library | 323d9c731f14031532dc072703d24e237d0a252e | [
"Apache-2.0"
] | null | null | null | lib/test/TempPrivKeyFile.cpp | apastor/ads-chain-cpp-library | 323d9c731f14031532dc072703d24e237d0a252e | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include "TempPrivKeyFile.h"
TempPrivKeyFile::TempPrivKeyFile() :
fileName(std::tmpnam(nullptr)),
file(fileName, "w") {
file << "-----BEGIN EC PARAMETERS-----" << '\n';
file << "BggqhkjOPQMBBw==" << '\n';
file << "-----END EC PARAMETERS-----" << '\n';
file << "-----BEGIN EC PRIVATE K... | 38.5 | 85 | 0.621934 | apastor |
6517fae1186d2e9304125391f8927742df70f652 | 1,449 | hpp | C++ | include/physicsengine/Constraints.hpp | ThePythonator/Rocket-Manager | 61489a9df2ac25b96ac337afd5cb58375533c748 | [
"MIT"
] | 2 | 2022-03-17T18:11:07.000Z | 2022-03-17T19:55:35.000Z | include/physicsengine/Constraints.hpp | ThePythonator/Rocket-Manager | 61489a9df2ac25b96ac337afd5cb58375533c748 | [
"MIT"
] | null | null | null | include/physicsengine/Constraints.hpp | ThePythonator/Rocket-Manager | 61489a9df2ac25b96ac337afd5cb58375533c748 | [
"MIT"
] | null | null | null | #pragma once
#include "PhysicsEngineMath.hpp"
#include "RigidBody.hpp"
namespace PhysicsEngine {
extern const phyflt MINIMUM_NATURAL_LENGTH;
// These constraints are treated as having no mass or volume, and cannot collide with any objects
class Constraint {
public:
Constraint();
Constraint(RigidBody* _a, Rig... | 28.98 | 198 | 0.73637 | ThePythonator |
fb9f6935cb45e29e4053d14c6c61786c6c01e5af | 5,363 | hpp | C++ | foedus_code/foedus-core/include/foedus/cxx11.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/include/foedus/cxx11.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/include/foedus/cxx11.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* 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; either version 2 of the License, or (at your option)
* any later versi... | 38.582734 | 100 | 0.739511 | sam1016yu |
fbaa7473bbad0cd599566900430a722f694c91f9 | 33,371 | cpp | C++ | nntrainer/layers/lstm.cpp | songgot/nntrainer | d977cbbd14eba9ee89b432be0ad6939056c3f256 | [
"Apache-2.0"
] | null | null | null | nntrainer/layers/lstm.cpp | songgot/nntrainer | d977cbbd14eba9ee89b432be0ad6939056c3f256 | [
"Apache-2.0"
] | null | null | null | nntrainer/layers/lstm.cpp | songgot/nntrainer | d977cbbd14eba9ee89b432be0ad6939056c3f256 | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
/**
* Copyright (C) 2020 Jijoong Moon <jijoong.moon@samsung.com>
*
* @file lstm.cpp
* @date 17 March 2021
* @brief This is Long Short-Term Memory Layer Class of Neural Network
* @see https://github.com/nnstreamer/nntrainer
* @author Jijoong Moon <jijoong.moon@samsun... | 43.793963 | 80 | 0.697132 | songgot |
fbaf2bb60ba0a5f38d1e2169146fb2e3a553b36d | 1,782 | hpp | C++ | AdvancedOgreFramework/AdvancedOgreFramework.hpp | screwt/advancedogreframework | 751f9d8a56e844479b23e72ef47aca1dc77d1132 | [
"MIT"
] | null | null | null | AdvancedOgreFramework/AdvancedOgreFramework.hpp | screwt/advancedogreframework | 751f9d8a56e844479b23e72ef47aca1dc77d1132 | [
"MIT"
] | null | null | null | AdvancedOgreFramework/AdvancedOgreFramework.hpp | screwt/advancedogreframework | 751f9d8a56e844479b23e72ef47aca1dc77d1132 | [
"MIT"
] | null | null | null | //|||||||||||||||||||||||||||||||||||||||||||||||
#ifndef OGRE_FRAMEWORK_HPP
#define OGRE_FRAMEWORK_HPP
//|||||||||||||||||||||||||||||||||||||||||||||||
#include <OgreCamera.h>
#include <OgreEntity.h>
#include <OgreLogManager.h>
#include <OgreOverlay.h>
#include <OgreOverlayElement.h>
#include <OgreOverlayManager.h... | 26.597015 | 114 | 0.644781 | screwt |
fbaf935e17ce8e99a1c2b0dee504c543843a9db6 | 2,932 | cpp | C++ | Source/ScsCommon.cpp | JamesBoer/Scs | 44a10276c2dd34424205fe3eee1f17ab37fde984 | [
"MIT"
] | 4 | 2020-05-28T00:23:45.000Z | 2021-12-15T20:12:34.000Z | Source/ScsCommon.cpp | JamesBoer/Scs | 44a10276c2dd34424205fe3eee1f17ab37fde984 | [
"MIT"
] | null | null | null | Source/ScsCommon.cpp | JamesBoer/Scs | 44a10276c2dd34424205fe3eee1f17ab37fde984 | [
"MIT"
] | 3 | 2019-03-09T07:27:51.000Z | 2021-12-27T12:58:22.000Z | /*
The MIT License (MIT)
Copyright (c) 2018 James Boer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pu... | 25.059829 | 82 | 0.746248 | JamesBoer |
fbb198a28576cc25a305b0dcdc2cc4240a5f260f | 1,443 | hpp | C++ | gearoenix/core/gx-cr-allocator.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/core/gx-cr-allocator.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/core/gx-cr-allocator.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #ifndef GEAROENIX_CORE_ALLOCATOR_HPP
#define GEAROENIX_CORE_ALLOCATOR_HPP
#include "gx-cr-static.hpp"
#include <map>
#include <memory>
#include <optional>
namespace gearoenix::core {
class Allocator final {
/// size, offset (within itself)
typedef std::pair<std::size_t, std::size_t> SizeOffset;
/// allocat... | 35.195122 | 134 | 0.723493 | Hossein-Noroozpour |
fbbbe6b181130b377631fa03f046e862bc5e3644 | 1,299 | cpp | C++ | Sources/World/Systems/ScriptSystem.cpp | carloshgsilva/VoxelEngine | 5ba308d3573805437124f32d407306776c1d66d6 | [
"MIT"
] | 1 | 2022-01-20T15:53:31.000Z | 2022-01-20T15:53:31.000Z | Sources/World/Systems/ScriptSystem.cpp | carloshgsilva/VoxelEngine | 5ba308d3573805437124f32d407306776c1d66d6 | [
"MIT"
] | null | null | null | Sources/World/Systems/ScriptSystem.cpp | carloshgsilva/VoxelEngine | 5ba308d3573805437124f32d407306776c1d66d6 | [
"MIT"
] | null | null | null | #include "ScriptSystem.h"
#include "World/Components.h"
#include "Script/ScriptLib_Core.h"
#include "Mod/ModLoader.h"
void ScriptSystem::OnScriptUpdated(entt::registry& r, entt::entity e) {
auto& scriptAsset = r.get<Script>(e).Asset;
if (!scriptAsset.IsValid()) {
return;
}
std::string scriptPath = "Mods/";
s... | 23.196429 | 76 | 0.692071 | carloshgsilva |
fbbec304e47f83bb92011559ada8928752cb5863 | 1,910 | cpp | C++ | src/ripple/basics/impl/UptimeClock.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 5 | 2019-01-23T04:36:03.000Z | 2020-02-04T07:10:39.000Z | src/ripple/basics/impl/UptimeClock.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | null | null | null | src/ripple/basics/impl/UptimeClock.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 2 | 2019-05-14T07:26:59.000Z | 2020-06-15T07:25:01.000Z |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//————————————————————————————————————————————————————————————————————————————————————————————————————————————————
/*
... | 23.012048 | 114 | 0.513089 | yinchengtsinghua |
fbcba0d70dfedecba3aee499c267b17ca5e5cdeb | 860 | cpp | C++ | new folder/codejamrobot.cpp | bprithiraj/DSA-CPsolvedproblemscode | 4b3765e4afb26016fade1f1e526b36934583c668 | [
"Apache-2.0"
] | null | null | null | new folder/codejamrobot.cpp | bprithiraj/DSA-CPsolvedproblemscode | 4b3765e4afb26016fade1f1e526b36934583c668 | [
"Apache-2.0"
] | null | null | null | new folder/codejamrobot.cpp | bprithiraj/DSA-CPsolvedproblemscode | 4b3765e4afb26016fade1f1e526b36934583c668 | [
"Apache-2.0"
] | null | null | null |
#include<iostream>
#include<string>
#include<algorithm>
#include<set>
void test_case()
{
int n;
cin>>n;
vector<string>they(n);
for(int i=0;i<n;i++)
{
cin>>they(i);
string moves;
for(int pos=0;true;pos++)
{
set<int>chars;
for(string s:they)
{
chars.insert[s[pos%s.length()]];
}
If(... | 15.087719 | 48 | 0.502326 | bprithiraj |
fbcbeea84548acb6c85d54a57d05ee4bc8128e92 | 575 | cpp | C++ | Programming/lab05/cpp/5lab.cpp | 3xlerman/labsbonch | 5255bb62e3cd8d707e38d7ffc0e7ef99f764773b | [
"MIT"
] | 3 | 2020-04-27T11:49:34.000Z | 2020-04-30T10:27:58.000Z | Programming/lab05/cpp/5lab.cpp | 3xlerman/labsbonch | 5255bb62e3cd8d707e38d7ffc0e7ef99f764773b | [
"MIT"
] | null | null | null | Programming/lab05/cpp/5lab.cpp | 3xlerman/labsbonch | 5255bb62e3cd8d707e38d7ffc0e7ef99f764773b | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
using namespace std;
int main()
{
float x, y, znamSum, chislSum, i, j, k, n, m;
cout << "n= ";
cin >> n;
cout << "m= ";
cin >> m;
cout << "x= ";
cin >> x;
y = 0;
znamSum = 0;
chislSum = 0;
for(i=1;i<=n;i++)
{
for(j=1;j<=m;j++... | 17.96875 | 55 | 0.382609 | 3xlerman |
fbd4217c109fdd479f197bfe296eceb994c22065 | 807 | cpp | C++ | src/0027_remove_element.cpp | hariharanragothaman/cpprevise-leetcode | 736d497961f5493a82c3f9355abbc2daa8219643 | [
"Apache-2.0"
] | 1 | 2021-04-21T07:59:30.000Z | 2021-04-21T07:59:30.000Z | src/0027_remove_element.cpp | hariharanragothaman/cpprevise-leetcode | 736d497961f5493a82c3f9355abbc2daa8219643 | [
"Apache-2.0"
] | null | null | null | src/0027_remove_element.cpp | hariharanragothaman/cpprevise-leetcode | 736d497961f5493a82c3f9355abbc2daa8219643 | [
"Apache-2.0"
] | null | null | null | /* Remove element from an array -in place and return the length of the resultant array */
#include "headers.h"
class Solution {
public:
int removeElement(vector<int>& nums, int val)
{
int index = 0;
for(int i=0; i < nums.size(); i++)
{
if(nums[i] != val)
... | 21.236842 | 90 | 0.490706 | hariharanragothaman |
fbd70fabe038cad1bb9011d0583a1304357e402c | 1,797 | cpp | C++ | src/net/data/message.cpp | wensiso/Ayvu | 1f147b2e468b221a8f98db40de07cd95261ba123 | [
"Apache-2.0"
] | null | null | null | src/net/data/message.cpp | wensiso/Ayvu | 1f147b2e468b221a8f98db40de07cd95261ba123 | [
"Apache-2.0"
] | null | null | null | src/net/data/message.cpp | wensiso/Ayvu | 1f147b2e468b221a8f98db40de07cd95261ba123 | [
"Apache-2.0"
] | null | null | null | /*
* Message.cpp
*
* Created on: 07/11/2013
* Author: Wendell
*/
#include <message.h>
namespace ayvu {
Message::Message() {
m_header.timestamp = 0;
m_header.sequence = 0;
m_data = new QByteArray();
m_receive_timestamp = 0;
}
Message::Message(QByteArray& data, qint64 seq) {
m_header.timestamp = QDat... | 20.191011 | 64 | 0.732332 | wensiso |
fbdde82423c30520ae968617046e0f4e3a07cb62 | 780 | cpp | C++ | LeetCode/Spiral Matrix II/main.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | 2 | 2022-02-08T12:37:41.000Z | 2022-03-09T03:48:56.000Z | LeetCode/Spiral Matrix II/main.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | null | null | null | LeetCode/Spiral Matrix II/main.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> generateMatrix(int n) {
vector<vector<int>> arr(n, vector<int>(n));
int dir = 0, rowStart = 0, rowEnd = n - 1, colStart = 0, colEnd = n - 1, num = 1;
while (rowStart <= rowEnd && colStart <= colEnd) {
if (dir == 0) {
for (int j = colStart; j <= colEnd; ++j) {
... | 24.375 | 83 | 0.489744 | Code-With-Aagam |
fbe18bc3c0038a05b001fc500b7381ffffa086cc | 4,022 | cpp | C++ | ext/emsdk_portable/clang/tag-e1.34.1/src/unittests/Bitcode/NaClAbbrevErrorTests.cpp | slightperturbation/Cobalt | 7b398d155d28f7ddf4068a6c25c8aa6aaae486d4 | [
"Apache-2.0"
] | null | null | null | ext/emsdk_portable/clang/tag-e1.34.1/src/unittests/Bitcode/NaClAbbrevErrorTests.cpp | slightperturbation/Cobalt | 7b398d155d28f7ddf4068a6c25c8aa6aaae486d4 | [
"Apache-2.0"
] | null | null | null | ext/emsdk_portable/clang/tag-e1.34.1/src/unittests/Bitcode/NaClAbbrevErrorTests.cpp | slightperturbation/Cobalt | 7b398d155d28f7ddf4068a6c25c8aa6aaae486d4 | [
"Apache-2.0"
] | null | null | null | //===- llvm/unittest/Bitcode/NaClAbbrevErrorTests.cpp ---------------------===//
// Tests parser for PNaCl bitcode instructions.
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---... | 42.787234 | 80 | 0.55271 | slightperturbation |
fbe4588c43b0b9c5602afd51fa2216a02f4046dc | 5,858 | cpp | C++ | TriangleSplitter/TriangleSplitterFixedLeafSize.cpp | jrouwe/RayCastTest | 6f16eef819bd13f7f7bf063b076dab7091b1886a | [
"MIT"
] | 7 | 2020-05-26T15:23:25.000Z | 2022-02-25T19:36:25.000Z | TriangleSplitter/TriangleSplitterFixedLeafSize.cpp | jrouwe/RayCastTest | 6f16eef819bd13f7f7bf063b076dab7091b1886a | [
"MIT"
] | null | null | null | TriangleSplitter/TriangleSplitterFixedLeafSize.cpp | jrouwe/RayCastTest | 6f16eef819bd13f7f7bf063b076dab7091b1886a | [
"MIT"
] | 2 | 2022-03-02T16:30:50.000Z | 2022-03-06T14:45:33.000Z | #include <pch.h> // IWYU pragma: keep
#include <TriangleSplitter/TriangleSplitterFixedLeafSize.h>
#include <TriangleGrouper/TriangleGrouperClosestCentroid.h>
TriangleSplitterFixedLeafSize::TriangleSplitterFixedLeafSize(const VertexList &inVertices, const IndexedTriangleList &inTriangles, uint inLeafSize, uint in... | 35.077844 | 215 | 0.698191 | jrouwe |
fbe66069d17680ad18613bde5d34f79314bf1d19 | 672 | cpp | C++ | 0169. Majority Element.cpp | luispc111/Leetcode_problems | 6f3bc5fb89cb4b9e6e2940b551341489580bd3a0 | [
"MIT"
] | null | null | null | 0169. Majority Element.cpp | luispc111/Leetcode_problems | 6f3bc5fb89cb4b9e6e2940b551341489580bd3a0 | [
"MIT"
] | null | null | null | 0169. Majority Element.cpp | luispc111/Leetcode_problems | 6f3bc5fb89cb4b9e6e2940b551341489580bd3a0 | [
"MIT"
] | null | null | null | #include <map>
class Solution {
public:
int majorityElement(vector<int>& nums) {
map<int,int> elementos;
for (int i = 0; i < nums.size(); i++){
// No está en mi map
if(elementos.find(nums[i]) == elementos.end()){
ele... | 24 | 60 | 0.366071 | luispc111 |
fbeb2091c94ff64d61805860d3d5c87b6b3fa5b0 | 5,164 | hpp | C++ | src/treegen.hpp | ReallySnazzy/Xhaust | d53cef987ecec9456ec3b002639035e69500298a | [
"MIT"
] | 1 | 2021-11-13T01:23:06.000Z | 2021-11-13T01:23:06.000Z | src/treegen.hpp | ReallySnazzy/Xhaust | d53cef987ecec9456ec3b002639035e69500298a | [
"MIT"
] | null | null | null | src/treegen.hpp | ReallySnazzy/Xhaust | d53cef987ecec9456ec3b002639035e69500298a | [
"MIT"
] | null | null | null | #ifndef Treegen_hpp
#define Treegen_hpp
#include "lexer.hpp"
#include <vector>
#include <string>
#include <iostream>
#define TN_UNDEFINED -1
#define TN_FUNC_CALL 0
#define TN_GROUP 1
#define TN_VALUE 2
#define TN_OPERATOR 3
#define TN_BLOCK 4
#define TN_IF 5
#define TN_EXHAUST 6
#pragma region Nodes
class TreeNode
... | 22.258621 | 134 | 0.577072 | ReallySnazzy |
fbf053ec7d876df54b5204a299e6fd3d8d4612fb | 2,491 | cpp | C++ | tests/test_broker_shell.cpp | ETCLabs/RDMnetBroker | c71ebec3e187b2a560f37ff37ffe9b442f609f83 | [
"Apache-2.0"
] | null | null | null | tests/test_broker_shell.cpp | ETCLabs/RDMnetBroker | c71ebec3e187b2a560f37ff37ffe9b442f609f83 | [
"Apache-2.0"
] | 2 | 2019-09-13T13:39:56.000Z | 2019-10-29T22:21:45.000Z | tests/test_broker_shell.cpp | ETCLabs/RDMnetBroker | c71ebec3e187b2a560f37ff37ffe9b442f609f83 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* Copyright 2019 ETC Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 37.179104 | 116 | 0.676837 | ETCLabs |
fbf2c66e90cf093c588233d6da46a9ba674c7471 | 4,629 | cpp | C++ | thirdparty/webm/src/libmkv/EbmlWriter.cpp | WowaBBS/CrashRpt | edcec3751df1e0d4e92a71560ff5b91b0abafd1e | [
"BSD-3-Clause"
] | 37 | 2017-06-01T23:38:05.000Z | 2020-11-06T02:29:47.000Z | thirdparty/webm/src/libmkv/EbmlWriter.cpp | WowaBBS/CrashRpt | edcec3751df1e0d4e92a71560ff5b91b0abafd1e | [
"BSD-3-Clause"
] | 11 | 2017-07-26T01:22:37.000Z | 2021-01-08T07:27:02.000Z | thirdparty/webm/src/libmkv/EbmlWriter.cpp | WowaBBS/CrashRpt | edcec3751df1e0d4e92a71560ff5b91b0abafd1e | [
"BSD-3-Clause"
] | 20 | 2018-01-07T00:13:08.000Z | 2021-01-08T07:54:03.000Z | // Copyright (c) 2010 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing projec... | 26.912791 | 113 | 0.667531 | WowaBBS |
fbf529aef311fabf5aee4dd95a35beab0236324e | 539 | cpp | C++ | Source/StdLib/Terminal.cpp | FoxCutter/BootDebug | d40afa3a19d8a840788cbdb091cc121b01b36f7f | [
"BSD-2-Clause"
] | null | null | null | Source/StdLib/Terminal.cpp | FoxCutter/BootDebug | d40afa3a19d8a840788cbdb091cc121b01b36f7f | [
"BSD-2-Clause"
] | 1 | 2020-02-15T03:11:11.000Z | 2020-02-15T03:11:11.000Z | Source/StdLib/Terminal.cpp | FoxCutter/BootDebug | d40afa3a19d8a840788cbdb091cc121b01b36f7f | [
"BSD-2-Clause"
] | null | null | null | #include "Terminal.h"
#include <windows.h>
#pragma comment(linker, "/defaultlib:kernel32.lib")
// This file should have the majority of OS dependent code in it.
//
//int Write(const char *szData, int cbLength)
//{
// DWORD cbWritten;
//
// WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), szData, cbLength, &cbWritten, n... | 22.458333 | 85 | 0.695733 | FoxCutter |
220559445ed7807d051c504e414514a5eb367d1c | 12,273 | cpp | C++ | Trees/BST With Infinite Input Number/BST_2.cpp | aayush-1/Data-Structures | eceb6360feef6e684a430113db7c0663e64aecfa | [
"MIT"
] | null | null | null | Trees/BST With Infinite Input Number/BST_2.cpp | aayush-1/Data-Structures | eceb6360feef6e684a430113db7c0663e64aecfa | [
"MIT"
] | null | null | null | Trees/BST With Infinite Input Number/BST_2.cpp | aayush-1/Data-Structures | eceb6360feef6e684a430113db7c0663e64aecfa | [
"MIT"
] | null | null | null | #include <stdio.h>
#include<stdlib.h>
int check();
void freee();
int l1;
int l2;
struct BST
{
struct node *pointer;
struct BST *left;
struct BST *right;
struct BST *parent;
}*root=NULL;
struct node
{
int a;
struct node *next;
}*head=NULL,*head1=NULL;
//inserting the no. in the ... | 16.630081 | 98 | 0.436405 | aayush-1 |
220f3bd9e47693b930fc311f5b37e95944d5bf04 | 1,075 | cpp | C++ | bwi_tasks_pnp/pnp/src/test/mainTest.cpp | pato/bwi_experimental | 0cc71672580a886e4c405bbc6ea8305624a28572 | [
"BSD-3-Clause"
] | null | null | null | bwi_tasks_pnp/pnp/src/test/mainTest.cpp | pato/bwi_experimental | 0cc71672580a886e4c405bbc6ea8305624a28572 | [
"BSD-3-Clause"
] | null | null | null | bwi_tasks_pnp/pnp/src/test/mainTest.cpp | pato/bwi_experimental | 0cc71672580a886e4c405bbc6ea8305624a28572 | [
"BSD-3-Clause"
] | null | null | null |
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/CompilerOutputter.h>
#include <cppunit/TestResult.h>
#include <cppunit/TestResultCollector.h>
#include <cppunit/TestRunner.h>
#include <cppunit/TextTestProgressListener.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cstdlib>
int ... | 26.219512 | 77 | 0.727442 | pato |
2210d550b5823cf707704f68528a654f5f24517d | 3,000 | cpp | C++ | trainings/2015-09-30-Multi-University-2015-6/A.cpp | HcPlu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 9 | 2017-10-07T13:35:45.000Z | 2021-06-07T17:36:55.000Z | trainings/2015-09-30-Multi-University-2015-6/A.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | null | null | null | trainings/2015-09-30-Multi-University-2015-6/A.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 3 | 2018-04-24T05:27:21.000Z | 2019-04-25T06:06:00.000Z | #include <iostream>
using namespace std;
const int N = 111111;
int n;
int a[N], b[N];
pair<int, int> ans[N];
void recover() {
for (int i = 0; i < n; i++) {
a[i] = b[i];
}
}
int check() {
for (int i = 0; i < n; i++) {
if (a[i] != a[(i + 1) % n]) {
return 0;
}
}
... | 20.979021 | 71 | 0.296 | HcPlu |
81fb379858f03c11b943b95bf3fafec52dfbe31b | 1,713 | cpp | C++ | JEBMath/JEBMath/Geometry/ProfileIterator.cpp | jebreimo/JEBLib | 9066403a9372951aa8ce4f129cd4877e2ae779ab | [
"BSD-3-Clause"
] | 1 | 2019-12-25T05:30:20.000Z | 2019-12-25T05:30:20.000Z | JEBMath/JEBMath/Geometry/ProfileIterator.cpp | jebreimo/JEBLib | 9066403a9372951aa8ce4f129cd4877e2ae779ab | [
"BSD-3-Clause"
] | null | null | null | JEBMath/JEBMath/Geometry/ProfileIterator.cpp | jebreimo/JEBLib | 9066403a9372951aa8ce4f129cd4877e2ae779ab | [
"BSD-3-Clause"
] | null | null | null | #include "ProfileIterator.hpp"
#include <limits>
#include "../Math/Constants.hpp"
#include "LineString.hpp"
#include "Profile.hpp"
namespace JEBMath {
using namespace std;
ProfileIterator::ProfileIterator(const Profile* prof, size_t* index)
: m_Profile(prof),
m_Index(index),
m_UndefinedHeight(numeri... | 18.223404 | 68 | 0.695271 | jebreimo |
81fed4602d315e10f484fcae51c46aca25b90d7f | 138 | cpp | C++ | Game/Client/WXEngine/FakeObject/TDFakeObjSystem.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/WXEngine/FakeObject/TDFakeObjSystem.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/WXEngine/FakeObject/TDFakeObjSystem.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "StdAfx.h"
#include "TDFakeObjSystem.h"
#include "TDException.h"
WX_IMPLEMENT_DYNAMIC_VIRTUAL(tFakeObjSystem, GETCLASS(tNode));
| 23 | 62 | 0.804348 | hackerlank |
c3028c8a8e420981d1ff2bfda46e1f5d0c2aa5cc | 2,619 | cpp | C++ | src/Module.cpp | lupuchard/eb | a51641e28fdfe4c1bf34234de07a2a78e0cf62c8 | [
"MIT"
] | 1 | 2015-12-28T22:30:17.000Z | 2015-12-28T22:30:17.000Z | src/Module.cpp | lupuchard/eb | a51641e28fdfe4c1bf34234de07a2a78e0cf62c8 | [
"MIT"
] | null | null | null | src/Module.cpp | lupuchard/eb | a51641e28fdfe4c1bf34234de07a2a78e0cf62c8 | [
"MIT"
] | null | null | null | #include "ast/Module.h"
bool Module::declare(Function& func) {
if (func.pub) pub_functions.push_back(&func);
auto key = std::make_pair(func.token.str(), func.param_names.size());
auto iter = functions.find(key);
if (iter == functions.end()) {
std::vector<Function*> vec;
vec.push_back(&func);
functions[key] =... | 28.16129 | 100 | 0.701795 | lupuchard |
c304ebadb77294ee646c163929df9e7475b88f80 | 7,047 | cpp | C++ | src/mir/passes/threaded.cpp | neheb/meson-plus-plus | 8f075012e7a12613883fa335b07c4143f5423111 | [
"Apache-2.0"
] | null | null | null | src/mir/passes/threaded.cpp | neheb/meson-plus-plus | 8f075012e7a12613883fa335b07c4143f5423111 | [
"Apache-2.0"
] | null | null | null | src/mir/passes/threaded.cpp | neheb/meson-plus-plus | 8f075012e7a12613883fa335b07c4143f5423111 | [
"Apache-2.0"
] | null | null | null | // SPDX-license-identifier: Apache-2.0
// Copyright © 2022 Dylan Baker
#include <algorithm>
#include <array>
#include <future>
#include <iostream>
#include <mutex>
#include "argument_extractors.hpp"
#include "exceptions.hpp"
#include "log.hpp"
#include "passes.hpp"
#include "private.hpp"
namespace MIR::Passes {
nam... | 33.557143 | 100 | 0.532709 | neheb |
c30b9af7f1b9ac41897db90405989e002c9e0e3b | 3,294 | cpp | C++ | src/points/cylindrical.cpp | jonancm/viennagrid-python | a56f23ab65cf82b2f06ff546d45c056bb9d326b2 | [
"MIT"
] | null | null | null | src/points/cylindrical.cpp | jonancm/viennagrid-python | a56f23ab65cf82b2f06ff546d45c056bb9d326b2 | [
"MIT"
] | 1 | 2015-05-13T08:28:52.000Z | 2015-05-13T08:28:52.000Z | src/points/cylindrical.cpp | jonancm/viennagrid-python | a56f23ab65cf82b2f06ff546d45c056bb9d326b2 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2013 Jonan Cruz-Martin
*
* Distributed under the terms of the MIT license, see the accompanying
* file COPYING or http://opensource.org/licenses/MIT.
*/
#include "cylindrical.hpp"
#include "cartesian.hpp"
#include "spherical.hpp"
PointCylindrical3D::PointCylindrical3D()
{
point = new PointCy... | 23.197183 | 98 | 0.754706 | jonancm |
c3138edb556d284ec262422a547c336c0182fbb0 | 819 | cpp | C++ | skim/src/main.cpp | mclauchlinc/analysis_twopi_clas6 | 620e8f032e225ba90d228563c702f5c9ac2a6f75 | [
"MIT"
] | null | null | null | skim/src/main.cpp | mclauchlinc/analysis_twopi_clas6 | 620e8f032e225ba90d228563c702f5c9ac2a6f75 | [
"MIT"
] | null | null | null | skim/src/main.cpp | mclauchlinc/analysis_twopi_clas6 | 620e8f032e225ba90d228563c702f5c9ac2a6f75 | [
"MIT"
] | null | null | null | #include "TChain.h"
#include "TStopwatch.h"
#include "skim.hpp"
using namespace std;
int main(int argc, char **argv) {
std::string infile;
std::string outfile;
if (argc == 2) {
infile = argv[1];
outfile = infile.substr(0, infile.size() - 5) + "_skim.root";
} else if (argc == 3) {
infile = argv[1]... | 25.59375 | 88 | 0.570208 | mclauchlinc |
c322d7ba8400761ae530e7eb4c37f65b10cd2eba | 7,185 | cpp | C++ | fboss/agent/hw/sai/switch/SaiPortManager.cpp | soumithx/fboss | 84e921dcef19174c4c61d93e04736d80ba0b2b1c | [
"BSD-3-Clause"
] | null | null | null | fboss/agent/hw/sai/switch/SaiPortManager.cpp | soumithx/fboss | 84e921dcef19174c4c61d93e04736d80ba0b2b1c | [
"BSD-3-Clause"
] | null | null | null | fboss/agent/hw/sai/switch/SaiPortManager.cpp | soumithx/fboss | 84e921dcef19174c4c61d93e04736d80ba0b2b1c | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... | 34.37799 | 80 | 0.687404 | soumithx |
c3246940ac405fa28d57578f142c787dcd0bdb16 | 202 | hpp | C++ | vendor/cucumber-cpp/include/cucumber-cpp/defs.hpp | AndreasAugustin/Gherkin-Demos-cpp | 79a4be81ee1fffce56ac503760a48a2b77d6d03f | [
"MIT"
] | 1 | 2016-07-21T10:10:33.000Z | 2016-07-21T10:10:33.000Z | vendor/cucumber-cpp/include/cucumber-cpp/defs.hpp | AndreasAugustin/Gherkin-Demos-cpp | 79a4be81ee1fffce56ac503760a48a2b77d6d03f | [
"MIT"
] | null | null | null | vendor/cucumber-cpp/include/cucumber-cpp/defs.hpp | AndreasAugustin/Gherkin-Demos-cpp | 79a4be81ee1fffce56ac503760a48a2b77d6d03f | [
"MIT"
] | null | null | null | #include "internal/step/StepManager.hpp"
#include "internal/hook/HookRegistrar.hpp"
#include "internal/ContextManager.hpp"
#include "internal/Macros.hpp"
#include "internal/drivers/DriverSelector.hpp"
| 28.857143 | 46 | 0.806931 | AndreasAugustin |
c327ed9f1e99830746560356017923f4bbf4014b | 4,996 | cpp | C++ | lib/output_file.test.cpp | milasudril/wad64 | c656710513013041e8efc29505d328abbbf5e843 | [
"MIT"
] | null | null | null | lib/output_file.test.cpp | milasudril/wad64 | c656710513013041e8efc29505d328abbbf5e843 | [
"MIT"
] | 2 | 2021-02-02T19:40:39.000Z | 2021-02-21T10:25:02.000Z | lib/output_file.test.cpp | milasudril/wad64 | c656710513013041e8efc29505d328abbbf5e843 | [
"MIT"
] | null | null | null | //@ {
//@ "targets":[{"name":"output_file.test","type":"application", "autorun":1}]
//@ }
#include "./output_file.hpp"
#include "./membuffer.hpp"
#include "./file_structs.hpp"
#include <cassert>
#include <algorithm>
#include <random>
#include <cstring>
namespace
{
Wad64::MemBuffer generateData()
{
Wad64::WadInf... | 29.216374 | 91 | 0.681946 | milasudril |
c328172ec3c8b90d2784ecdac41a75333a788ec6 | 1,089 | cpp | C++ | src/FalconEngine/Graphics/Renderer/Platform/OpenGL/OGLTexture1d.cpp | LiuYiZhou95/FalconEngine | b798f20e9dbd01334a4e4cdbbd9a5bec74966418 | [
"MIT"
] | null | null | null | src/FalconEngine/Graphics/Renderer/Platform/OpenGL/OGLTexture1d.cpp | LiuYiZhou95/FalconEngine | b798f20e9dbd01334a4e4cdbbd9a5bec74966418 | [
"MIT"
] | null | null | null | src/FalconEngine/Graphics/Renderer/Platform/OpenGL/OGLTexture1d.cpp | LiuYiZhou95/FalconEngine | b798f20e9dbd01334a4e4cdbbd9a5bec74966418 | [
"MIT"
] | 1 | 2021-08-25T07:39:02.000Z | 2021-08-25T07:39:02.000Z | #include <FalconEngine/Graphics/Renderer/Platform/OpenGL/OGLTexture1d.h>
#include <cstring>
#include <FalconEngine/Graphics/Renderer/Platform/OpenGL/OGLUtility.h>
namespace FalconEngine
{
/************************************************************************/
/* Constructors and Destructor ... | 26.560976 | 89 | 0.599633 | LiuYiZhou95 |
c328781e3a11445abc2486f53567e3898e09e2e8 | 1,152 | cpp | C++ | src/Graphics/Renderer.cpp | Tojrsen/Callie | 42f4a573c468b5b99c1ab440583d5b5930a0cff2 | [
"Apache-2.0"
] | null | null | null | src/Graphics/Renderer.cpp | Tojrsen/Callie | 42f4a573c468b5b99c1ab440583d5b5930a0cff2 | [
"Apache-2.0"
] | null | null | null | src/Graphics/Renderer.cpp | Tojrsen/Callie | 42f4a573c468b5b99c1ab440583d5b5930a0cff2 | [
"Apache-2.0"
] | null | null | null | #include <clpch.h>
#include <GL/glew.h>
#include <Graphics/Renderer.h>
namespace cl{
int Renderer::Init(){
GLenum err = glewInit();
if (GLEW_OK != err){
CL_CORE_ASSERT("Unable to initialize GLEW!", glewGetErrorString(err));
return -1;
}
GLCall(glEnable(GL_D... | 28.097561 | 88 | 0.626736 | Tojrsen |
c3289e018da5b6e29b46a65809c7ac1017ae32df | 1,367 | cpp | C++ | .vscode/cquery_cached_index/c@@users@jeste@vex u@towertakeover@stackbot/src@libstack@drive.cpp | kettering-vex-u/TowerTakeover | a6c5445faa0a0c99c66f16a7104f6ba7b38ea250 | [
"MIT"
] | null | null | null | .vscode/cquery_cached_index/c@@users@jeste@vex u@towertakeover@stackbot/src@libstack@drive.cpp | kettering-vex-u/TowerTakeover | a6c5445faa0a0c99c66f16a7104f6ba7b38ea250 | [
"MIT"
] | null | null | null | .vscode/cquery_cached_index/c@@users@jeste@vex u@towertakeover@stackbot/src@libstack@drive.cpp | kettering-vex-u/TowerTakeover | a6c5445faa0a0c99c66f16a7104f6ba7b38ea250 | [
"MIT"
] | null | null | null | #include "main.h"
using namespace okapi;
std::shared_ptr<okapi::ChassisControllerIntegrated> controller;
std::unique_ptr<okapi::Motor> dl1, dl2, dl3;
std::unique_ptr<okapi::Motor> dr1, dr2, dr3;
namespace drive {
void init() {
// creating a ChassisControl object using the MotorGroups defined above,
// setting ... | 30.377778 | 74 | 0.727871 | kettering-vex-u |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.