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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7e82b4d20082ad1b2b156f724dcb1372c585c228 | 3,038 | cpp | C++ | tmp/a_lot_of_garbage_string/a_lot_of_garbage.cpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | null | null | null | tmp/a_lot_of_garbage_string/a_lot_of_garbage.cpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | 2 | 2017-01-17T16:24:59.000Z | 2017-06-08T17:39:26.000Z | tmp/a_lot_of_garbage_string/a_lot_of_garbage.cpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include "GCString.h"
using std::cout;
using std::endl;
int array_size = 100;
class Node {
gc_ptr<GCString> str;
public:
gc_ptr<Node> left, right;
Node() {}
Node(gc_ptr<char> sin) { str = gc_new<GCString, const char *>(sin);}
Node(gc_ptr<Node> l, gc_ptr<Node> r) {
left ... | 24.901639 | 85 | 0.606978 | eucpp |
7e856d5a6fe31bc605221a0e9a1365d3f83488ea | 6,803 | cpp | C++ | src/view/InputInit.cpp | joelseverin/Johannebergsrallyt | 40932fe1b8bca88274d909bc2d5ee78d19560d10 | [
"MIT"
] | null | null | null | src/view/InputInit.cpp | joelseverin/Johannebergsrallyt | 40932fe1b8bca88274d909bc2d5ee78d19560d10 | [
"MIT"
] | null | null | null | src/view/InputInit.cpp | joelseverin/Johannebergsrallyt | 40932fe1b8bca88274d909bc2d5ee78d19560d10 | [
"MIT"
] | null | null | null | #include "InputInit.h"
#include "OISKeyboard.h"
#include <OISInputManager.h>
#include <OISKeyboard.h>
#include <OISMouse.h>
#include <OgreRoot.h>
#include <OgreRenderWindow.h>
#include <OgreLogManager.h>
InputInit::InputInit() :
renderWindow(0),
shutDown(false),
mInputManager(0),
mMo... | 22.159609 | 116 | 0.558724 | joelseverin |
7e888dc1b769f0265999e2036d648f2e1098af08 | 84 | cpp | C++ | main.cpp | HonakerM/Face-Tracking-Projection-Mapping | 43ab45bf03aadc37248633c77189040edfc2458c | [
"MIT"
] | null | null | null | main.cpp | HonakerM/Face-Tracking-Projection-Mapping | 43ab45bf03aadc37248633c77189040edfc2458c | [
"MIT"
] | null | null | null | main.cpp | HonakerM/Face-Tracking-Projection-Mapping | 43ab45bf03aadc37248633c77189040edfc2458c | [
"MIT"
] | null | null | null | #include "test.h"
int main(int argc, char** argv) {
opencv_inc_test(argc, argv);
} | 16.8 | 33 | 0.678571 | HonakerM |
7e97b31875893f0e56564416a68cf73bbe56902e | 5,458 | cc | C++ | impl/Stream.cc | quanghgx/avro-cpp | 4c0044dcf16e1dc6ee06db8d0fea142330d67c97 | [
"Apache-2.0"
] | null | null | null | impl/Stream.cc | quanghgx/avro-cpp | 4c0044dcf16e1dc6ee06db8d0fea142330d67c97 | [
"Apache-2.0"
] | null | null | null | impl/Stream.cc | quanghgx/avro-cpp | 4c0044dcf16e1dc6ee06db8d0fea142330d67c97 | [
"Apache-2.0"
] | null | null | null | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 27.154229 | 85 | 0.622572 | quanghgx |
7e9f80bd7c58c920157a3745966abae1a5cfa78a | 412 | cpp | C++ | labs/lab3/lib/ArduinoJson/test/JsonObject/basics.cpp | particle-iot/spectra-2020-workshop | 134c4cf451a76125a181eea71ab23dd90881f1e9 | [
"MIT"
] | 1 | 2019-07-19T19:52:16.000Z | 2019-07-19T19:52:16.000Z | labs/lab3/lib/ArduinoJson/test/JsonObject/basics.cpp | particle-iot/spectra-2020-workshop | 134c4cf451a76125a181eea71ab23dd90881f1e9 | [
"MIT"
] | 1 | 2019-11-14T02:38:47.000Z | 2019-11-14T02:38:47.000Z | labs/lab3/lib/ArduinoJson/test/JsonObject/basics.cpp | particle-iot/spectra-2020-workshop | 134c4cf451a76125a181eea71ab23dd90881f1e9 | [
"MIT"
] | 1 | 2019-11-13T22:27:43.000Z | 2019-11-13T22:27:43.000Z | // ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2018
// MIT License
#include <ArduinoJson.h>
#include <catch.hpp>
TEST_CASE("JsonObject basics") {
DynamicJsonBuffer _jsonBuffer;
JsonObject& _object = _jsonBuffer.createObject();
SECTION("InitialSizeIsZero") {
REQUIRE(0 == _obj... | 20.6 | 52 | 0.67233 | particle-iot |
7ea1f5d1b16ad47f08e1b7f0fcd476f34c24625c | 905 | hpp | C++ | lifegame-network/include/network/Datagram.hpp | mahubu/lifegame-network-udp | 4ce481444a47d6c19205f8e35ad9ce4540cac24b | [
"MIT"
] | null | null | null | lifegame-network/include/network/Datagram.hpp | mahubu/lifegame-network-udp | 4ce481444a47d6c19205f8e35ad9ce4540cac24b | [
"MIT"
] | null | null | null | lifegame-network/include/network/Datagram.hpp | mahubu/lifegame-network-udp | 4ce481444a47d6c19205f8e35ad9ce4540cac24b | [
"MIT"
] | null | null | null | #pragma once
#include <network/Sockets.hpp>
#include <cstdint>
#include <array>
namespace network
{
namespace udp
{
/*
* @brief A datagram send through the network.
*/
struct Datagram
{
using IdType = uint16_t;
struct Header
{
IdType id;
IdType newestAck; // Latest datagram packet id rec... | 25.138889 | 131 | 0.687293 | mahubu |
7ea67dda4314caf63ecd56a039857b67207452c9 | 357 | cpp | C++ | c++/lec1_jan27/lof3.cpp | vyomshm/rust-programming | 2942f1684b961e15d8ab92227ba83361828e1e4d | [
"Unlicense"
] | null | null | null | c++/lec1_jan27/lof3.cpp | vyomshm/rust-programming | 2942f1684b961e15d8ab92227ba83361828e1e4d | [
"Unlicense"
] | null | null | null | c++/lec1_jan27/lof3.cpp | vyomshm/rust-programming | 2942f1684b961e15d8ab92227ba83361828e1e4d | [
"Unlicense"
] | null | null | null | #include <iostream>
using namespace std;
// larger of 3
int main(int argc, char** argv) {
int a = 39;
int b = 34;
int c = 1000;
if (a >= b && a >= c) {
cout << "a = " << a << " is the largest" <<endl;
} else {
if(b >= c) {
cout << "b = " << b << " is the largest" <<endl;
} else {
cout << "c = " << c ... | 18.789474 | 51 | 0.467787 | vyomshm |
7eb3cf8ed332d99cfd42c495925ec64f4d7bce59 | 1,272 | cpp | C++ | pgm16_09.cpp | neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C- | c9a29d2dd43ad8561e828c25f98de6a8c8f2317a | [
"Unlicense"
] | 1 | 2021-07-13T03:58:36.000Z | 2021-07-13T03:58:36.000Z | pgm16_09.cpp | neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C- | c9a29d2dd43ad8561e828c25f98de6a8c8f2317a | [
"Unlicense"
] | null | null | null | pgm16_09.cpp | neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C- | c9a29d2dd43ad8561e828c25f98de6a8c8f2317a | [
"Unlicense"
] | null | null | null | //
// This file contains the C++ code from Program 16.9 of
// "Data Structures and Algorithms
// with Object-Oriented Design Patterns in C++"
// by Bruno R. Preiss.
//
// Copyright (c) 1998 by Bruno R. Preiss, P.Eng. All rights reserved.
//
// http://www.pads.uwaterloo.ca/Bruno.Preiss/books/opus4/programs... | 27.652174 | 80 | 0.612421 | neharkarvishal |
9d174b5c74ee114ef99c208e0525b459d29b9360 | 4,777 | cpp | C++ | platform/windows/syslog_writer_windows.cpp | mexicowilly/Chucho | f4235420437eb2078ab592540c0d729b7b9a3c10 | [
"Apache-2.0"
] | 4 | 2016-12-06T05:33:29.000Z | 2017-12-17T17:04:25.000Z | platform/windows/syslog_writer_windows.cpp | mexicowilly/Chucho | f4235420437eb2078ab592540c0d729b7b9a3c10 | [
"Apache-2.0"
] | 147 | 2016-09-05T14:00:46.000Z | 2021-08-24T14:43:07.000Z | platform/windows/syslog_writer_windows.cpp | mexicowilly/Chucho | f4235420437eb2078ab592540c0d729b7b9a3c10 | [
"Apache-2.0"
] | 4 | 2017-11-08T04:12:39.000Z | 2022-01-04T06:40:16.000Z | /*
* Copyright 2013-2021 Will Mason
*
* 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 applicab... | 32.277027 | 97 | 0.60247 | mexicowilly |
9d1c31e88d94db7600640858ddc2d7bc13627acd | 9,680 | hpp | C++ | Simple++/Graphic/ColorR.hpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/Graphic/ColorR.hpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/Graphic/ColorR.hpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | namespace Graphic {
template<typename T> const ColorR<T> ColorR<T>::black = ColorR<T>( T( 0 ));
template<typename T> const ColorR<T> ColorR<T>::white = ColorR<T>( Color<T>::getMax());
template<typename T> const ColorR<T> ColorR<T>::red = ColorR<T>( Color<T>::getMax());
template<typename T> const ColorR<T> ColorR<... | 24.568528 | 88 | 0.588223 | Oriode |
9d2913604387cb13e9597eb810022bcaafbf4edb | 8,426 | cc | C++ | src/benchmark/main.cc | srsuryadev/hustle | 1f30eeb6193f8ad36612454ca5808c352287415c | [
"Apache-2.0"
] | null | null | null | src/benchmark/main.cc | srsuryadev/hustle | 1f30eeb6193f8ad36612454ca5808c352287415c | [
"Apache-2.0"
] | null | null | null | src/benchmark/main.cc | srsuryadev/hustle | 1f30eeb6193f8ad36612454ca5808c352287415c | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 35.108333 | 79 | 0.640399 | srsuryadev |
9d2f1ce0d8a689943b3d4da3d28c4822d4716c18 | 15,709 | cpp | C++ | src/RtcmNode/ntripclient.cpp | AdhirajSingh1206/orion-ros2-reference | f077284244d401b1d4931cc6705bd2853a0b0dd0 | [
"MIT"
] | 5 | 2020-09-18T04:41:21.000Z | 2021-09-05T21:13:37.000Z | src/RtcmNode/ntripclient.cpp | AdhirajSingh1206/orion-ros2-reference | f077284244d401b1d4931cc6705bd2853a0b0dd0 | [
"MIT"
] | 3 | 2020-12-22T16:12:39.000Z | 2020-12-22T20:45:03.000Z | src/RtcmNode/ntripclient.cpp | AdhirajSingh1206/orion-ros2-reference | f077284244d401b1d4931cc6705bd2853a0b0dd0 | [
"MIT"
] | 2 | 2020-11-12T20:25:21.000Z | 2020-12-22T15:00:14.000Z | /***
* NTRIP Client
* */
#include <algorithm>
#include <atomic>
#include <cctype>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <map>
#include <stdexcept>
#include <string>
#include <system_error>
#include <thread>
#include <vector>
#include "base64/base64.h"
#include "ntripcallback.hpp"
#inclu... | 37.313539 | 98 | 0.39697 | AdhirajSingh1206 |
9d324ce7a1f39696577ee1eb52d64def551d92aa | 863 | cpp | C++ | RubeusCore/Source/MessageSystem/message_system.cpp | Rodrirokr/Rubeus | 12623b04db959b428b9eb791d3943b11d74c0532 | [
"MIT"
] | 179 | 2018-12-22T14:02:02.000Z | 2022-01-29T18:26:57.000Z | RubeusCore/Source/MessageSystem/message_system.cpp | rahil627/Rubeus | dd057d23c94a0406126c32d62889ac83cba47570 | [
"MIT"
] | 56 | 2019-01-07T11:55:16.000Z | 2020-12-10T21:32:18.000Z | RubeusCore/Source/MessageSystem/message_system.cpp | rahil627/Rubeus | dd057d23c94a0406126c32d62889ac83cba47570 | [
"MIT"
] | 20 | 2018-12-23T11:19:49.000Z | 2022-03-11T06:18:10.000Z | /**
* @file Source/message_system.cpp
*
* @brief Implements the mesage system class.
*/
#include <message_system.h>
#include <master_component.h>
namespace Rubeus
{
RMessageBus RMessageSystem::m_MessageBus;
void RMessageSystem::evaluateMessages()
{
if (!m_MessageBus.m_MessageQueue.empty())
{
for (size... | 21.575 | 92 | 0.663963 | Rodrirokr |
9d3554579b473bebe6f151233cc177b0d4951356 | 4,151 | cpp | C++ | src/EngineManaged/Bindings/Stream.cpp | akumetsuv/flood | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | [
"BSD-2-Clause"
] | null | null | null | src/EngineManaged/Bindings/Stream.cpp | akumetsuv/flood | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | [
"BSD-2-Clause"
] | null | null | null | src/EngineManaged/Bindings/Stream.cpp | akumetsuv/flood | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | [
"BSD-2-Clause"
] | null | null | null | /************************************************************************
*
* Flood Project © (2008-201x)
* Licensed under the simplified BSD license. All rights reserved.
*
************************************************************************/
#include "_Marshal.h"
#include "Stream.h"
#include "Memory.h"
using na... | 25.782609 | 118 | 0.657673 | akumetsuv |
9d372601a78f9392ed91ce4470289515ba3e8eb7 | 421 | cpp | C++ | source/dynamic_value/dynamic_value_base.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | 12 | 2019-04-16T17:35:53.000Z | 2020-04-12T14:37:27.000Z | source/dynamic_value/dynamic_value_base.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | 47 | 2019-05-27T15:24:43.000Z | 2020-04-27T17:54:54.000Z | source/dynamic_value/dynamic_value_base.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | null | null | null | #include "dynamic_value_base.h"
#include "type_info.h"
#include "value_visitor.h"
namespace pagoda
{
const TypeInfoPtr DynamicValueBase::s_typeInfo = std::make_shared<TypeInfo>("DynamicValueBase");
DynamicValueBase::DynamicValueBase(TypeInfoPtr typeInfo) : m_typeInfo(typeInfo) {}
DynamicValueBase::~DynamicValueBase(... | 30.071429 | 96 | 0.793349 | diegoarjz |
9d39ecf943891cac48b63b758f3056d8b4faa860 | 810 | cpp | C++ | foe1.cpp | Loretac/ohlavache | 2cbe309433cca0f7a61d8c08f6f4f383dd934f10 | [
"MIT"
] | null | null | null | foe1.cpp | Loretac/ohlavache | 2cbe309433cca0f7a61d8c08f6f4f383dd934f10 | [
"MIT"
] | null | null | null | foe1.cpp | Loretac/ohlavache | 2cbe309433cca0f7a61d8c08f6f4f383dd934f10 | [
"MIT"
] | null | null | null | #include "foe1.h"
#include "game.h"
#include <stdlib.h> // rand
#include <QTimer>
extern Game *game;
/*********************************************************************
**
*********************************************************************/
Foe1::Foe1()
{
setStartingHealth(2);
setDimensions(100,53... | 15.283019 | 71 | 0.459259 | Loretac |
9d42482d03cfcd1754045c45903256d6d09e0f32 | 2,148 | cpp | C++ | 2017-09-30/A.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 3 | 2018-04-02T06:00:51.000Z | 2018-05-29T04:46:29.000Z | 2017-09-30/A.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-03-31T17:54:30.000Z | 2018-05-02T11:31:06.000Z | 2017-09-30/A.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-10-07T00:08:06.000Z | 2021-06-28T11:02:59.000Z | #include <cstdio>
#include <cstdlib>
#include <algorithm>
using namespace std;
const int NMAX = 110000, MMAX = 110000, QMAX = 110000;
const double eps = 1e-10;
struct Point
{
double x;
double y;
operator<(Point &v)
const{
if(y == v.y)
return x < v.x;
return y < v.y;
}
};
int N, M, Q;
double ans;
Point... | 19.527273 | 113 | 0.408752 | tangjz |
9d42bb8382824d508169839f2f2bc3866f928c3d | 2,595 | cpp | C++ | aws-cpp-sdk-signer/source/model/ListSigningJobsRequest.cpp | Eliyahu-Machluf/aws-sdk-cpp | 97b8d6cdc16df298b80941b94327a5026efa7f8c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-signer/source/model/ListSigningJobsRequest.cpp | Eliyahu-Machluf/aws-sdk-cpp | 97b8d6cdc16df298b80941b94327a5026efa7f8c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-signer/source/model/ListSigningJobsRequest.cpp | Eliyahu-Machluf/aws-sdk-cpp | 97b8d6cdc16df298b80941b94327a5026efa7f8c | [
"Apache-2.0"
] | 1 | 2022-03-23T15:17:18.000Z | 2022-03-23T15:17:18.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/signer/model/ListSigningJobsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <ut... | 23.807339 | 70 | 0.672447 | Eliyahu-Machluf |
9d430978be62697095e54c3de75b9e6d6edf1d89 | 502 | hpp | C++ | include/lol/def/LolInventoryRmsEntitlementPayload.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LolInventoryRmsEntitlementPayload.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LolInventoryRmsEntitlementPayload.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
namespace lol {
struct LolInventoryRmsEntitlementPayload {
std::string itemId;
std::string itemTypeId;
};
inline void to_json(json& j, const LolInventoryRmsEntitlementPayload& v) {
j["itemId"] = v.itemId;
j["itemTypeId"] = v.itemTypeId;
}
inline voi... | 31.375 | 78 | 0.671315 | Maufeat |
9d4561f26bd6bfee9054fd74a23a9b341cdd422d | 1,168 | cpp | C++ | Lab14/src/Trapeze.cpp | Inaceat/L | 8b199b8f83b5e4049b6288de64a3cab4ec7908ec | [
"MIT"
] | null | null | null | Lab14/src/Trapeze.cpp | Inaceat/L | 8b199b8f83b5e4049b6288de64a3cab4ec7908ec | [
"MIT"
] | null | null | null | Lab14/src/Trapeze.cpp | Inaceat/L | 8b199b8f83b5e4049b6288de64a3cab4ec7908ec | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "DumbGeometry.hpp"
#include <valarray>
dumb_geometry::Trapeze::Trapeze(Point a, Point b, Point c, Point d)
{
double geometryDoubleEpsilon = 0.0001;
//BC || AD when vectors are parallel
double bcX = b.X() - c.X();
double bcY = b.Y() - c.Y();
double adX = a.X() - d.X();
double adY... | 17.969231 | 103 | 0.601884 | Inaceat |
9d5646e08713c1e7353278ec84d50b59b0b29cff | 3,759 | cpp | C++ | CDDAManager.cpp | dcealopez/VUPlayer | ff8a5032579a0adf01740e03a9067aa2875d7af1 | [
"MIT"
] | 57 | 2017-06-05T00:10:05.000Z | 2022-02-17T10:59:54.000Z | CDDAManager.cpp | dcealopez/VUPlayer | ff8a5032579a0adf01740e03a9067aa2875d7af1 | [
"MIT"
] | 26 | 2018-07-09T00:05:46.000Z | 2021-12-30T22:50:24.000Z | CDDAManager.cpp | dcealopez/VUPlayer | ff8a5032579a0adf01740e03a9067aa2875d7af1 | [
"MIT"
] | 4 | 2019-07-31T13:31:51.000Z | 2021-08-16T21:50:32.000Z | #include "CDDAManager.h"
#include "HandlerCDDA.h"
#include "VUPlayer.h"
#include <vector>
CDDAManager::CDDAManager( const HINSTANCE instance, const HWND hwnd, Library& library, Handlers& handlers, MusicBrainz& musicbrainz ) :
m_Library( library ),
m_MusicBrainz( musicbrainz ),
m_Media(),
m_MediaMutex(),
m_Updat... | 29.139535 | 137 | 0.678638 | dcealopez |
9d56ce2646285e8aac5339ac877f0aedadd5034c | 1,472 | hpp | C++ | Axis.Physalis/application/factories/parsers/StepParserProvider.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Physalis/application/factories/parsers/StepParserProvider.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Physalis/application/factories/parsers/StepParserProvider.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #pragma once
#include "foundation/Axis.Physalis.hpp"
#include "application/fwd/locators_fwd.hpp"
#include "application/factories/parsers/BlockProvider.hpp"
namespace axis { namespace application { namespace factories { namespace parsers {
class AXISPHYSALIS_API StepParserProvider : public axis::application::factories... | 42.057143 | 103 | 0.789402 | renato-yuzup |
9d5a4f4b4d0bf43e682168cccc49d0669e8b6bef | 15,795 | cpp | C++ | projects/Renderer/src/texture.cpp | AnselmoGPP/Grapho | ced565841188cdc09cdec308d66c82afc2ba57c5 | [
"MIT"
] | null | null | null | projects/Renderer/src/texture.cpp | AnselmoGPP/Grapho | ced565841188cdc09cdec308d66c82afc2ba57c5 | [
"MIT"
] | null | null | null | projects/Renderer/src/texture.cpp | AnselmoGPP/Grapho | ced565841188cdc09cdec308d66c82afc2ba57c5 | [
"MIT"
] | null | null | null |
#include <iostream>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "texture.hpp"
#include "commons.hpp"
Texture::Texture(const char* path) : path(nullptr), e(nullptr), fullyConstructed(false)
{
copyCString(this->path, path);
}
Texture::Texture(const Texture& obj)
{
if (this == &obj) return;
t... | 49.984177 | 500 | 0.77037 | AnselmoGPP |
9d5ce1df4000448a0eccf13cae119808b42d234b | 778 | cpp | C++ | codes/POJ/poj1182.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/POJ/poj1182.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/POJ/poj1182.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <string.h>
const int N = 1e5+5;
int n, k, f[N], v[N];
int getfar(int x) {
if (x != f[x]) {
int tmp = f[x];
f[x] = getfar(f[x]);
v[x] = (v[x] + v[tmp])%3;
}
return f[x];
}
int main () {
// while (scanf("%d%d", &n, &k) == 2) {
scanf("%d%d", &n, &k);
{
memset(v, 0, sizeof(v));
... | 16.913043 | 45 | 0.376607 | JeraKrs |
9d5d1406640ae3ad812468ea2defacf46b028cd4 | 184 | cpp | C++ | src/vertex.cpp | harry830622/router | 8a493e6143fd4afb454df2bd7199b33a7ad73422 | [
"MIT"
] | null | null | null | src/vertex.cpp | harry830622/router | 8a493e6143fd4afb454df2bd7199b33a7ad73422 | [
"MIT"
] | null | null | null | src/vertex.cpp | harry830622/router | 8a493e6143fd4afb454df2bd7199b33a7ad73422 | [
"MIT"
] | null | null | null | #include "vertex.hpp"
using namespace std;
const vector<int>& Vertex::edge_ids() const { return edge_ids_; }
void Vertex::ConnectEdge(int edge_id) { edge_ids_.push_back(edge_id); }
| 23 | 71 | 0.744565 | harry830622 |
9d629443c423d49d809f30f030a72c45ffc40295 | 132 | cpp | C++ | src/expression/parameterselectedregion.cpp | ellery85/sparselizard | 7d09e97e9443a436d74cbd241b8466527edb9e2f | [
"MIT"
] | null | null | null | src/expression/parameterselectedregion.cpp | ellery85/sparselizard | 7d09e97e9443a436d74cbd241b8466527edb9e2f | [
"MIT"
] | null | null | null | src/expression/parameterselectedregion.cpp | ellery85/sparselizard | 7d09e97e9443a436d74cbd241b8466527edb9e2f | [
"MIT"
] | null | null | null | #include "parameterselectedregion.h"
void parameterselectedregion::operator=(expression input) { myparam->set(myphysreg, input); } | 33 | 93 | 0.795455 | ellery85 |
9d645c44dd57372a81913b3b9a702954b45e9eb8 | 1,072 | cpp | C++ | minimum-number-of-work-sessions-to-finish-the-tasks/minimum-number-of-work-sessions-to-finish-the-tasks.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 2 | 2022-01-02T19:15:00.000Z | 2022-01-05T21:12:24.000Z | minimum-number-of-work-sessions-to-finish-the-tasks/minimum-number-of-work-sessions-to-finish-the-tasks.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | null | null | null | minimum-number-of-work-sessions-to-finish-the-tasks/minimum-number-of-work-sessions-to-finish-the-tasks.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 1 | 2022-03-11T17:11:07.000Z | 2022-03-11T17:11:07.000Z | class Solution {
public:
int n;
int dp[16][1<<14];
int solve(vector<int>& tasks, int mask, int time, const int& sessionTime){
if(mask==0)
return 0;
if(dp[time][mask] != -1) return dp[time][mask];
int ans = INT_MAX;
for(int i=0; i<n; i++)
... | 36.965517 | 142 | 0.48694 | Ananyaas |
9d675472c1cbece707ea1682b4fb1444e0c46b19 | 37 | hpp | C++ | src/boost_units_dimension.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_units_dimension.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_units_dimension.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/units/dimension.hpp>
| 18.5 | 36 | 0.783784 | miathedev |
9d7cce75bda993d1fb920be9e3bcf1eacbe6f891 | 5,440 | cc | C++ | src/kcl_dfs/SinglePattern.cc | chenxuhao/gardenia | 01e8601a9ae76c3b58aa91f1c8c88203a6fe11d1 | [
"Intel",
"MIT"
] | 23 | 2017-08-16T15:14:25.000Z | 2022-01-05T06:41:08.000Z | mining/kcl_dfs/SinglePattern.cc | chenxuhao/gardinia | 5894df11cf47f8839945edadff43dc79e260216d | [
"MIT"
] | 2 | 2020-12-14T04:51:01.000Z | 2022-02-02T20:57:28.000Z | mining/kcl_dfs/SinglePattern.cc | chenxuhao/gardinia | 5894df11cf47f8839945edadff43dc79e260216d | [
"MIT"
] | 5 | 2019-01-22T02:09:06.000Z | 2020-04-02T12:05:42.000Z | #include <cassert>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <vector>
#include "VertexSet.h"
#include "graph.hh"
#include "ExecutionPlan.hh"
#include "cmap.h"
// class SinglePatternSolver;
static std::vector<vidType>
update_and_prune(cmap8_t &cmap, const VertexSet &vertices, const EncodedR... | 29.405405 | 96 | 0.571691 | chenxuhao |
9d7d213efa57e0f305c8b67be7017d1a47e78429 | 845 | cpp | C++ | cinCout/main.cpp | zhongchen43/Cpp-Syntax-Code-Implementation | 1a73485dd63802989d9d18ea51cc189b9dafedd5 | [
"MIT"
] | null | null | null | cinCout/main.cpp | zhongchen43/Cpp-Syntax-Code-Implementation | 1a73485dd63802989d9d18ea51cc189b9dafedd5 | [
"MIT"
] | null | null | null | cinCout/main.cpp | zhongchen43/Cpp-Syntax-Code-Implementation | 1a73485dd63802989d9d18ea51cc189b9dafedd5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip> //manipulate
using namespace std;
int main()
{
// int a, b,c;
// cin>>a>>b>>c;
// cout<<a<<b<<c;
#if 0
// safely input
char buf[10];
fgets(buf,10,stdin); // safe in c
cin.getline(buf,10); //safe in cpp
string str; // string instead of char *
ci... | 17.244898 | 97 | 0.519527 | zhongchen43 |
9d86597fd16d3c156aa714943a27c128deb7379e | 1,085 | cxx | C++ | src/HIDController.cxx | broken-bytes/ControllerKit | 1045d304c613455f3564d7d225b8a6ed90c8a48a | [
"MIT"
] | null | null | null | src/HIDController.cxx | broken-bytes/ControllerKit | 1045d304c613455f3564d7d225b8a6ed90c8a48a | [
"MIT"
] | null | null | null | src/HIDController.cxx | broken-bytes/ControllerKit | 1045d304c613455f3564d7d225b8a6ed90c8a48a | [
"MIT"
] | 1 | 2020-12-03T09:55:03.000Z | 2020-12-03T09:55:03.000Z | #include "HIDController.hxx"
namespace BrokenBytes::ControllerKit::Internal {
HIDController::HIDController(DevicePath path, ControllerKitControllerType type)
: Controller(type) {
this->_path = path;
this->_device = nullptr;
this->_isDirty = false;
HID::OpenDevice(path, &_device);
}
HIDController::~HIDCon... | 22.142857 | 80 | 0.694931 | broken-bytes |
9d8696adddab05187559f6c0d6c202365ab06c82 | 7,074 | cpp | C++ | windows/src/common-lib/opengl-context.cpp | JustinSteventon/HoloJS | 267188a555ea3758804d0734e4c7ee202ed59fa3 | [
"MIT"
] | 1,235 | 2016-12-19T09:58:56.000Z | 2019-05-06T18:41:28.000Z | windows/src/common-lib/opengl-context.cpp | JustinSteventon/HoloJS | 267188a555ea3758804d0734e4c7ee202ed59fa3 | [
"MIT"
] | 130 | 2016-12-19T22:58:41.000Z | 2019-04-26T18:04:44.000Z | windows/src/common-lib/opengl-context.cpp | JustinSteventon/HoloJS | 267188a555ea3758804d0734e4c7ee202ed59fa3 | [
"MIT"
] | 127 | 2016-12-19T12:48:04.000Z | 2019-04-10T21:43:23.000Z | #include "stdafx.h"
#include "include/holojs/windows/mixed-reality/mixed-reality-context.h"
#include "include/holojs/windows/opengl-context.h"
#include "holojs/private/error-handling.h"
using namespace HoloJs::OpenGL;
using namespace std;
OpenGLContext::~OpenGLContext() { cleanup(); }
void OpenGLContext::cleanup()
{... | 35.37 | 115 | 0.637263 | JustinSteventon |
9d982bc40f3c43f7a7defbe84c05000c179c467e | 1,148 | cpp | C++ | Generate Parentheses - GFG/generate-parentheses.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | Generate Parentheses - GFG/generate-parentheses.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | Generate Parentheses - GFG/generate-parentheses.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | // { Driver Code Starts
//Initial Template for C++
#include <bits/stdc++.h>
using namespace std;
vector<string> AllParenthesis(int n) ;
// } Driver Code Ends
//User function Template for C++
// N is the number of pairs of parentheses
// Return list of all combinations of balanced parantheses
class Solution
{
p... | 19.457627 | 65 | 0.538328 | sahib-pratap-singh |
9d9b4f9e4a8d990ba6904604794bb80ade0feced | 216 | cpp | C++ | src/json/ParseError.cpp | SecureCloud-biz/Forecast.io-CPP | dc42abaa9d2887ae5e9a61336dd4cf4be1994993 | [
"Apache-2.0"
] | 12 | 2015-04-08T16:18:08.000Z | 2020-09-08T01:52:27.000Z | src/json/ParseError.cpp | SecureCloud-biz/Forecast.io-CPP | dc42abaa9d2887ae5e9a61336dd4cf4be1994993 | [
"Apache-2.0"
] | null | null | null | src/json/ParseError.cpp | SecureCloud-biz/Forecast.io-CPP | dc42abaa9d2887ae5e9a61336dd4cf4be1994993 | [
"Apache-2.0"
] | 6 | 2015-07-24T01:19:58.000Z | 2019-07-08T11:52:48.000Z | #include "json/ParseError.hpp"
namespace json
{
ParseError::ParseError(const std::string& what_arg) :
runtime_error(what_arg)
{
}
ParseError::ParseError(const char* what_arg) :
runtime_error(what_arg)
{
}
}
| 12 | 53 | 0.731481 | SecureCloud-biz |
9da3d0b77d934d8b7b8e86e1135df9a1b1f55e1d | 846 | hpp | C++ | include/h3api/H3Creatures.hpp | Patrulek/H3API | 91f10de37c6b86f3160706c1fdf4792f927e9952 | [
"MIT"
] | 14 | 2020-09-07T21:49:26.000Z | 2021-11-29T18:09:41.000Z | include/h3api/H3Creatures.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 2 | 2021-02-12T15:52:31.000Z | 2021-02-12T16:21:24.000Z | include/h3api/H3Creatures.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 8 | 2021-02-12T15:52:41.000Z | 2022-01-31T15:28:10.000Z | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created or last upda... | 49.764706 | 70 | 0.368794 | Patrulek |
9da44383f85f3e6880c1be2c6cce9e561360c9f6 | 456 | hpp | C++ | libcaf_core/caf/detail/make_unique.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 2,517 | 2015-01-04T22:19:43.000Z | 2022-03-31T12:20:48.000Z | libcaf_core/caf/detail/make_unique.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 894 | 2015-01-07T14:21:21.000Z | 2022-03-30T06:37:18.000Z | libcaf_core/caf/detail/make_unique.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 570 | 2015-01-21T18:59:33.000Z | 2022-03-31T19:00:02.000Z | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include <memory>
namespace caf::detail {
template <class T, class... Ts>
... | 26.823529 | 77 | 0.710526 | seewpx |
9da816f7f1263d8690aeb2bb8d6d2b3c4321d1ff | 19,398 | cc | C++ | struct2tensor/kernels/parquet/parquet_reader.cc | jay90099/struct2tensor | 47d651757efa27586bf75f991b2174d8173a750b | [
"Apache-2.0"
] | 30 | 2019-10-07T21:31:44.000Z | 2022-03-30T17:11:44.000Z | struct2tensor/kernels/parquet/parquet_reader.cc | jay90099/struct2tensor | 47d651757efa27586bf75f991b2174d8173a750b | [
"Apache-2.0"
] | 2 | 2020-03-23T20:48:14.000Z | 2021-04-16T15:05:33.000Z | struct2tensor/kernels/parquet/parquet_reader.cc | jay90099/struct2tensor | 47d651757efa27586bf75f991b2174d8173a750b | [
"Apache-2.0"
] | 30 | 2019-07-16T13:01:53.000Z | 2022-03-01T22:04:36.000Z | /* 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | 39.831622 | 80 | 0.691463 | jay90099 |
9dac27496339a47996bd6622e0e11bb6949a771a | 372 | cpp | C++ | 201-300/201. Bitwise AND of Numbers Range.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 201-300/201. Bitwise AND of Numbers Range.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 201-300/201. Bitwise AND of Numbers Range.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | // my solution
class Solution {
public:
int rangeBitwiseAnd(int m, int n) {
if (n == 0 && m == 0) {
return 0;
}
return (rangeBitwiseAnd(m >> 1, n >> 1) << 1) + (m == n ? m & 1 : 0);
}
};
// simpler solution
// class Solution {
// public:
// int rangeBitwiseAnd(int m, int n) {
// return n>m?r... | 20.666667 | 73 | 0.505376 | erichuang1994 |
9dac5b54307bebc95d8e202a9562f45331ffa17e | 191 | cpp | C++ | Moss/src/Moss/Renderer/RenderCommand.cpp | wzhhh123/Moss | 9a45127ffab59d0079c9db09b8966fc092a77440 | [
"Apache-2.0"
] | null | null | null | Moss/src/Moss/Renderer/RenderCommand.cpp | wzhhh123/Moss | 9a45127ffab59d0079c9db09b8966fc092a77440 | [
"Apache-2.0"
] | null | null | null | Moss/src/Moss/Renderer/RenderCommand.cpp | wzhhh123/Moss | 9a45127ffab59d0079c9db09b8966fc092a77440 | [
"Apache-2.0"
] | null | null | null | #include "mspch.h"
#include "RenderCommand.h"
#include "Platform/OpenGL/OpenGLRendererAPI.h"
namespace Moss {
Moss::RendererAPI* RenderCommand::s_RendererAPI = new OpenGLRendererAPI();
} | 19.1 | 75 | 0.769634 | wzhhh123 |
9db61e9f6494ed507c3414c727ad50a41200be31 | 2,360 | cpp | C++ | QUPractice/02/C.cpp | vios-fish/CompetitiveProgramming | 6953f024e4769791225c57ed852cb5efc03eb94b | [
"MIT"
] | null | null | null | QUPractice/02/C.cpp | vios-fish/CompetitiveProgramming | 6953f024e4769791225c57ed852cb5efc03eb94b | [
"MIT"
] | null | null | null | QUPractice/02/C.cpp | vios-fish/CompetitiveProgramming | 6953f024e4769791225c57ed852cb5efc03eb94b | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <bitset>
#include <deque>
#include <set>
#include <sstream>
#include <algorithm>
#include <numeric>
#include <climits... | 24.842105 | 114 | 0.466949 | vios-fish |
9dc190952bdbe2165af7426dc1db34aeed0b0390 | 616 | cpp | C++ | 1200/20/1223b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 1200/20/1223b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 1200/20/1223b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <string>
void answer(bool v)
{
constexpr const char* s[2] = { "NO", "YES" };
std::cout << s[v] << '\n';
}
void solve(const std::string& s, const std::string& t)
{
bool v[26] = {};
for (const char c : s)
v[c - 'a'] = true;
for (const char c : t) {
if (v... | 13.391304 | 54 | 0.469156 | actium |
9dc5fd9f2cd2df4bfc227d9ba928c9544760d6fc | 410 | hpp | C++ | inc/rook/ast/setLocal.hpp | Vandise/Gambit-Archive | 6db1921d99d76cd10f8f1bd25c46776d435d85a7 | [
"MIT"
] | 1 | 2019-02-20T19:19:23.000Z | 2019-02-20T19:19:23.000Z | inc/rook/ast/setLocal.hpp | Vandise/Gambit-Archive | 6db1921d99d76cd10f8f1bd25c46776d435d85a7 | [
"MIT"
] | null | null | null | inc/rook/ast/setLocal.hpp | Vandise/Gambit-Archive | 6db1921d99d76cd10f8f1bd25c46776d435d85a7 | [
"MIT"
] | null | null | null | #ifndef __ROOK_SETLOCALNODE
#define __ROOK_SETLOCALNODE 1
#include <string>
#include "rook/ast/node.hpp"
namespace RookAST
{
class SetLocalNode : public RookAST::Node
{
protected:
std::string constant;
int identifierOffset;
public:
SetLocalNode(std::string constant, int identifierOff... | 15.185185 | 63 | 0.685366 | Vandise |
e3845ba5401345ccfdc3f7f25a51cab04faf5215 | 4,279 | cpp | C++ | processing/processor/maker/yas_processing_send_signal_processor.cpp | objective-audio/processing | 5aa8bf2d1443f87c530f25f0282c03b9d2bd0293 | [
"MIT"
] | null | null | null | processing/processor/maker/yas_processing_send_signal_processor.cpp | objective-audio/processing | 5aa8bf2d1443f87c530f25f0282c03b9d2bd0293 | [
"MIT"
] | null | null | null | processing/processor/maker/yas_processing_send_signal_processor.cpp | objective-audio/processing | 5aa8bf2d1443f87c530f25f0282c03b9d2bd0293 | [
"MIT"
] | null | null | null | //
// yas_processing_send_signal_processor.cpp
//
#include "yas_processing_send_signal_processor.h"
#include <cpp_utils/yas_boolean.h>
#include <cpp_utils/yas_stl_utils.h>
#include <processing/yas_processing_channel.h>
#include <processing/yas_processing_module.h>
#include <processing/yas_processing_signal_event.h>
... | 48.625 | 106 | 0.627249 | objective-audio |
e386a1f89a84a1a9b63efa45a5ce2c588f0cc4bb | 6,889 | cpp | C++ | src/songs/MamaOtis.cpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | null | null | null | src/songs/MamaOtis.cpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | 6 | 2021-10-16T07:10:04.000Z | 2021-12-26T13:23:54.000Z | src/songs/MamaOtis.cpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | null | null | null | //
// MamaOtis.cpp
// Bas
//
// Created by Jildert Viet on 24-04-16.
//
//
#include "MamaOtis.hpp"
MamaOtis::MamaOtis(ofxJVisuals* v){
setName("MamaOtis");
this->v = v;
v->setAlpha(50);
makeThings1();
}
void MamaOtis::stop(){
for(int i=0; i<vormen.size(); i++){
Vorm*... | 28.349794 | 117 | 0.571926 | jildertviet |
e38d628ca9a6fa4d7ff7b7fd98e8523f5fde2be3 | 1,685 | hpp | C++ | vm/util/address.hpp | DCarper/rubinius | 6d1f079d0e792fda5606de65c81c8d622366a822 | [
"BSD-3-Clause"
] | 1 | 2021-11-29T00:06:50.000Z | 2021-11-29T00:06:50.000Z | vm/util/address.hpp | slawosz/rubinius | 6cb4a19a33e942110ae14a1721cf4b48036fcc06 | [
"BSD-3-Clause"
] | null | null | null | vm/util/address.hpp | slawosz/rubinius | 6cb4a19a33e942110ae14a1721cf4b48036fcc06 | [
"BSD-3-Clause"
] | 1 | 2021-09-18T04:55:38.000Z | 2021-09-18T04:55:38.000Z | #ifndef RBX_ADDRESS_H
#define RBX_ADDRESS_H
namespace memory {
/**
* A wonderful little class for working with memory addresses that is used
* always as a value, never a reference or pointer. It basically allows us
* the ability to implement our own pointer logic.
*/
struct Address {
/// The po... | 21.0625 | 76 | 0.626113 | DCarper |
e38e6834b3f76761300517315aaac6525d3c0cb3 | 1,770 | hpp | C++ | source/UI/imgui_sw.hpp | jugeeya/layoff | 5f6753d59e79da7b1386cbc1049c8ef0dc34cc1e | [
"MIT"
] | 42 | 2019-03-02T07:59:54.000Z | 2020-07-14T01:40:08.000Z | source/UI/imgui_sw.hpp | jugeeya/layoff | 5f6753d59e79da7b1386cbc1049c8ef0dc34cc1e | [
"MIT"
] | 5 | 2019-03-04T10:24:53.000Z | 2020-04-25T12:53:31.000Z | source/UI/imgui_sw.hpp | jugeeya/layoff | 5f6753d59e79da7b1386cbc1049c8ef0dc34cc1e | [
"MIT"
] | 6 | 2019-03-06T08:06:12.000Z | 2022-03-28T23:19:18.000Z | // By Emil Ernerfeldt 2018
// LICENSE:
// This software is dual-licensed to the public domain and under the following
// license: you are granted a perpetual, irrevocable license to copy, modify,
// publish, and distribute this file as you see fit.
// WHAT:
// This is a software renderer for Dear ImGui.
// It... | 34.038462 | 98 | 0.740678 | jugeeya |
e39309f48d6f8e65060f469dcb9be93a5bcc4492 | 611 | hpp | C++ | gtrc_vehicles/Heli_Transport_02/CfgVehicles.hpp | kzfoxx/GTRC-Framework | e60b1f6d7c5d594e22ef6c2d95c0db61d7d3d0f6 | [
"MIT"
] | null | null | null | gtrc_vehicles/Heli_Transport_02/CfgVehicles.hpp | kzfoxx/GTRC-Framework | e60b1f6d7c5d594e22ef6c2d95c0db61d7d3d0f6 | [
"MIT"
] | null | null | null | gtrc_vehicles/Heli_Transport_02/CfgVehicles.hpp | kzfoxx/GTRC-Framework | e60b1f6d7c5d594e22ef6c2d95c0db61d7d3d0f6 | [
"MIT"
] | null | null | null |
class CfgVehicles {
class I_Heli_Transport_02_F;
class B_GTRC_Heli_Transport_02_F: I_Heli_Transport_02_F {
_generalMacro = "B_GTRC_Heli_Transport_02_F";
displayName = $STR_GTRC_Vehicles_Heli_Transport_02_Name;
crew = "B_helipilot_F";
side = 1;
faction = "GTRC";
hiddenSelections[] = {"camo1", ... | 32.157895 | 62 | 0.731588 | kzfoxx |
e3949fed5e43979e5313683b9220ce000625da96 | 13,294 | cpp | C++ | sysc/lsu.cpp | schubi93/paranut | a1f446a208679b106dc05f06f1a5a2a6ac362b65 | [
"BSD-2-Clause"
] | null | null | null | sysc/lsu.cpp | schubi93/paranut | a1f446a208679b106dc05f06f1a5a2a6ac362b65 | [
"BSD-2-Clause"
] | null | null | null | sysc/lsu.cpp | schubi93/paranut | a1f446a208679b106dc05f06f1a5a2a6ac362b65 | [
"BSD-2-Clause"
] | null | null | null | /*************************************************************************
This file is part of the ParaNut project.
Copyright (C) 2010-2020 Alexander Bahle <alexander.bahle@hs-augsburg.de>
Gundolf Kiefer <gundolf.kiefer@hs-augsburg.de>
Hochschule Augsburg, University of Applied Sc... | 37.030641 | 129 | 0.574319 | schubi93 |
e396f56ff037762c822649d69f9a623011e673a5 | 830 | cpp | C++ | Solution/242. Valid Anagram/solution1-16ms.cpp | zhufei2805801318/352_Leetcode | fc9bfdd7eb462684b1345c953de843d6cfffabd0 | [
"MIT"
] | 6 | 2018-11-08T06:16:19.000Z | 2019-09-07T13:39:00.000Z | Solution/242. Valid Anagram/solution1-16ms.cpp | zhufei2805801318/352_Leetcode | fc9bfdd7eb462684b1345c953de843d6cfffabd0 | [
"MIT"
] | 10 | 2018-11-09T12:17:55.000Z | 2018-12-03T18:11:49.000Z | Solution/242. Valid Anagram/solution1-16ms.cpp | zhufei2805801318/352_Leetcode | fc9bfdd7eb462684b1345c953de843d6cfffabd0 | [
"MIT"
] | 7 | 2018-11-08T14:31:49.000Z | 2018-11-23T14:55:45.000Z | class Solution {
public:
bool isAnagram(string s, string t) {
if(s.size() != t.size())
return false;
else{
map<char, int> record;
for(int i = 0; i < s.size(); i++){
if(record.find(s[i]) == record.end())
record.insert(make_pair(s... | 25.9375 | 54 | 0.33494 | zhufei2805801318 |
e39cb0d9155bf5c691bece53e11f8f883531b710 | 4,136 | cpp | C++ | examples/color_all.cpp | richmit/mraster | e181cdd08bc477a07a97dc419f15c4550f754fa9 | [
"BSD-3-Clause"
] | 5 | 2017-09-05T00:59:29.000Z | 2021-10-02T23:36:03.000Z | examples/color_all.cpp | richmit/mraster | e181cdd08bc477a07a97dc419f15c4550f754fa9 | [
"BSD-3-Clause"
] | null | null | null | examples/color_all.cpp | richmit/mraster | e181cdd08bc477a07a97dc419f15c4550f754fa9 | [
"BSD-3-Clause"
] | null | null | null | // -*- Mode:C++; Coding:us-ascii-unix; fill-column:158 -*-
/**************************************************************************************************************************************************************/
/**
@file color_all.cpp
@author Mitch Richling <https://www.mitchr.me>
@brief Draw ev... | 44.473118 | 160 | 0.665619 | richmit |
e3a85729d4fcd068a2ec44699487adfd113bba06 | 10,567 | hpp | C++ | jsonpp/value.hpp | mickk-on-cpp/jsonpp | e73bccc59248dca09bba0b1835e65c2a5ae93e8b | [
"MIT"
] | 21 | 2015-02-10T20:45:00.000Z | 2022-03-13T23:15:14.000Z | jsonpp/value.hpp | mickk-on-cpp/jsonpp | e73bccc59248dca09bba0b1835e65c2a5ae93e8b | [
"MIT"
] | 21 | 2015-01-21T02:15:12.000Z | 2018-07-17T17:35:38.000Z | jsonpp/value.hpp | mickk-on-cpp/jsonpp | e73bccc59248dca09bba0b1835e65c2a5ae93e8b | [
"MIT"
] | 7 | 2015-06-08T19:06:51.000Z | 2021-06-07T17:17:32.000Z | // The MIT License (MIT)
// Copyright (c) 2014 Rapptz
// 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... | 28.103723 | 107 | 0.574241 | mickk-on-cpp |
e3ab0c2ac5a2435dac11ab29fa95804132010377 | 1,014 | hpp | C++ | src/color/generic/trait/size.hpp | ehtec/color | aa6d8c796303d1f3cfd7361978bfa58eac808b6e | [
"Apache-2.0"
] | 120 | 2015-12-31T22:30:14.000Z | 2022-03-29T15:08:01.000Z | src/color/generic/trait/size.hpp | ehtec/color | aa6d8c796303d1f3cfd7361978bfa58eac808b6e | [
"Apache-2.0"
] | 6 | 2016-08-22T02:14:56.000Z | 2021-11-06T22:39:52.000Z | src/color/generic/trait/size.hpp | ehtec/color | aa6d8c796303d1f3cfd7361978bfa58eac808b6e | [
"Apache-2.0"
] | 23 | 2016-02-03T01:56:26.000Z | 2021-09-28T16:36:27.000Z | #ifndef color_trait_size
#define color_trait_size
// ::color::trait::size< category >
#include "../../_internal/utility/type/size.hpp"
namespace color
{
namespace trait
{
template< typename category_name >
struct size
: public ::color::_internal::utility::type::size< std::size_t >... | 27.405405 | 86 | 0.641026 | ehtec |
e3abefeb84fd110145d503187fe86ca26bad2154 | 19,902 | cpp | C++ | src/mitya_teleop/src/joystick_node.cpp | robot-mitya/ros3 | 56f8cec216be2a687798af1e64d93a99fe7b0aab | [
"BSD-3-Clause"
] | 1 | 2019-04-14T23:04:16.000Z | 2019-04-14T23:04:16.000Z | src/mitya_teleop/src/joystick_node.cpp | robot-mitya/ros3 | 56f8cec216be2a687798af1e64d93a99fe7b0aab | [
"BSD-3-Clause"
] | 30 | 2017-04-22T18:52:21.000Z | 2018-05-06T17:37:05.000Z | src/mitya_teleop/src/joystick_node.cpp | robot-mitya/ros3 | 56f8cec216be2a687798af1e64d93a99fe7b0aab | [
"BSD-3-Clause"
] | null | null | null | /*
* joystick_node.cpp
* Copyright (c) 2017, Robot Mitya.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* ... | 32.203883 | 133 | 0.743845 | robot-mitya |
e3b2b7c87bc3f6906444069b5631edec283762db | 2,118 | cpp | C++ | Lab-Mid-Sem/Q2.cpp | Hitesh1309/DAA-Lab-Submissions | acaa495628ea3755a7602cf9d8ee35874bddbe88 | [
"MIT"
] | 1 | 2022-03-15T07:09:37.000Z | 2022-03-15T07:09:37.000Z | Lab-Mid-Sem/Q2.cpp | Hitesh1309/DAA-Lab-Submissions | acaa495628ea3755a7602cf9d8ee35874bddbe88 | [
"MIT"
] | null | null | null | Lab-Mid-Sem/Q2.cpp | Hitesh1309/DAA-Lab-Submissions | acaa495628ea3755a7602cf9d8ee35874bddbe88 | [
"MIT"
] | 1 | 2022-03-15T07:09:58.000Z | 2022-03-15T07:09:58.000Z | // Hitesh Gupta
// CS20B1127
#include <bits/stdc++.h>
using namespace std;
// Function to swap two numbers.
void swap(int* num1, int* num2)
{
int temp = *num1;
*num1 = *num2;
*num2 = temp;
}
// Function to create 2 pivots and swap the numbers.
void part(int a[],int min,int max)
{
if((max-min+1) <=... | 18.910714 | 55 | 0.345609 | Hitesh1309 |
e3b987b355a339f6289fdba551e38e33b050312d | 39 | hpp | C++ | src/boost_vmd_tuple_to_list.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_vmd_tuple_to_list.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_vmd_tuple_to_list.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/vmd/tuple/to_list.hpp>
| 19.5 | 38 | 0.769231 | miathedev |
e3c06b420f9c09d1f6661ad2db7891c40aa998da | 1,406 | hpp | C++ | tests/test_common.hpp | lineCode/bitpacker | c62dbbf4fe40f267a06c94f3675aaa2579af8cfe | [
"BSL-1.0"
] | 108 | 2020-04-25T20:42:16.000Z | 2022-03-02T20:47:06.000Z | tests/test_common.hpp | lineCode/bitpacker | c62dbbf4fe40f267a06c94f3675aaa2579af8cfe | [
"BSL-1.0"
] | 7 | 2020-05-02T09:27:29.000Z | 2021-09-27T22:16:13.000Z | tests/test_common.hpp | CrustyAuklet/bitpacker | c62dbbf4fe40f267a06c94f3675aaa2579af8cfe | [
"BSL-1.0"
] | 2 | 2021-05-02T06:06:15.000Z | 2021-12-24T14:40:57.000Z |
#include "span.hpp"
namespace bitpacker {
using nonstd::span;
}
#include "bitpacker/bitpacker.hpp"
#include <iostream>
#include <sstream>
#include <cstddef>
inline std::string char_to_bits(const uint8_t v) {
std::stringstream ss;
for(unsigned mask = 0x80; mask > 0; mask >>= 1) {
... | 24.241379 | 76 | 0.491465 | lineCode |
e3c4dc563c41351404964cb6afc2760f0ff6eea6 | 651 | cpp | C++ | Lose_Code/GoTo.cpp | nizammufid/Code_GMI | e0e73429a7164f10ec03817779af56de47368d16 | [
"MIT"
] | null | null | null | Lose_Code/GoTo.cpp | nizammufid/Code_GMI | e0e73429a7164f10ec03817779af56de47368d16 | [
"MIT"
] | null | null | null | Lose_Code/GoTo.cpp | nizammufid/Code_GMI | e0e73429a7164f10ec03817779af56de47368d16 | [
"MIT"
] | null | null | null | #include <stdio.h>
int checkEvenOrNot(int num); /* Function Declaration */ /* Function has an argument (num).
/* function to check Even or Odd */
int checkEvenOrNot(int num) /* Function Definition */
{
if (num % 2 == 0 ) /* If num is divisible by 2 without a remainder, then num is even */
... | 9.434783 | 95 | 0.537634 | nizammufid |
e3c60f1df987ed244336753eb7dfd39c9d1a5860 | 1,868 | cpp | C++ | verilate/core-ver-src/decode/FpRegs.cpp | chao0502/aquila | 48517c49470c53d1015b31358d128865d5b7b662 | [
"BSD-3-Clause"
] | null | null | null | verilate/core-ver-src/decode/FpRegs.cpp | chao0502/aquila | 48517c49470c53d1015b31358d128865d5b7b662 | [
"BSD-3-Clause"
] | null | null | null | verilate/core-ver-src/decode/FpRegs.cpp | chao0502/aquila | 48517c49470c53d1015b31358d128865d5b7b662 | [
"BSD-3-Clause"
] | null | null | null | //
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright 2018 Western Digital Corporation or its affiliates.
//
// 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 3 of the Li... | 28.30303 | 79 | 0.653105 | chao0502 |
e3ca4c62b288890d29f4dee7ce9314225ad8a330 | 1,166 | cpp | C++ | src/Lumos/DepthTexBuffer.cpp | Shunxu-H/DayLight | 78e82d49af0b75fba3f85cbd425a2f94f3c46751 | [
"BSD-2-Clause"
] | 6 | 2017-09-29T16:34:25.000Z | 2018-04-23T12:28:19.000Z | src/Lumos/DepthTexBuffer.cpp | Shunxu-H/DayLight | 78e82d49af0b75fba3f85cbd425a2f94f3c46751 | [
"BSD-2-Clause"
] | 1 | 2019-01-01T22:09:17.000Z | 2019-01-01T22:09:17.000Z | src/Lumos/DepthTexBuffer.cpp | Shunxu-H/DayLight | 78e82d49af0b75fba3f85cbd425a2f94f3c46751 | [
"BSD-2-Clause"
] | null | null | null | #include "DepthTexBuffer.h"
#include "Common/Utility.h"
using namespace Daylight::Lumos;
DepthTexBuffer::DepthTexBuffer(){
}
DepthTexBuffer::DepthTexBuffer(const size_t & width, const size_t & height)
: Texture()
{
assert(_glObjId != 0 && "GLObject initialization probably failed.");
assert(_textureTarget =... | 22.862745 | 75 | 0.574614 | Shunxu-H |
e3cdd592fb203e4ab063faa4267a29a9f4884102 | 160 | cpp | C++ | c_sources/tests/testutils.cpp | odufour-mw/Simulink-Target-support-for-ED247 | 69b5310bdb93c50b13fa1ad998c3456afbc69348 | [
"BSD-2-Clause"
] | null | null | null | c_sources/tests/testutils.cpp | odufour-mw/Simulink-Target-support-for-ED247 | 69b5310bdb93c50b13fa1ad998c3456afbc69348 | [
"BSD-2-Clause"
] | null | null | null | c_sources/tests/testutils.cpp | odufour-mw/Simulink-Target-support-for-ED247 | 69b5310bdb93c50b13fa1ad998c3456afbc69348 | [
"BSD-2-Clause"
] | null | null | null |
#include "testutils.h"
void FileFolderTest::SetUp(){
const char* ff = std::getenv("FILEFOLDER");
if (ff){
filefolder_.assign(ff,strlen(ff));
}
}
| 16 | 45 | 0.63125 | odufour-mw |
e3cf817f6350e930796d9b2a2ea5e1ac4b31ef04 | 10,960 | hxx | C++ | src/Providers/UNIXProviders/AccountManagementService/UNIX_AccountManagementService_FREEBSD.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/AccountManagementService/UNIX_AccountManagementService_FREEBSD.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/AccountManagementService/UNIX_AccountManagementService_FREEBSD.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_FREEBSD
#ifndef __UNIX_ACCOUNTMANAGEMENTSERVICE_PRIVATE_H
#define __UNIX_ACCOUNTMANAGEMENTSERVICE_PRIVATE_H
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasu... | 36.291391 | 77 | 0.781387 | brunolauze |
e3cfbe24cc40c9bd66342ca6abd4dddb85ea813b | 3,281 | cpp | C++ | engine/src/Loaders/ProgramLoader.cpp | kyle-piddington/MoonEngine | 243cce7988ee089d0fc51d817e2736501e019702 | [
"MIT",
"BSD-3-Clause"
] | 5 | 2017-01-20T00:23:23.000Z | 2018-07-17T07:48:04.000Z | engine/src/Loaders/ProgramLoader.cpp | kyle-piddington/MoonEngine | 243cce7988ee089d0fc51d817e2736501e019702 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | engine/src/Loaders/ProgramLoader.cpp | kyle-piddington/MoonEngine | 243cce7988ee089d0fc51d817e2736501e019702 | [
"MIT",
"BSD-3-Clause"
] | 2 | 2017-01-24T05:09:37.000Z | 2021-02-18T14:42:00.000Z | #include "ProgramLoader.h"
#include "thirdparty/rapidjson/document.h"
#include "thirdparty/rapidjson/error/error.h"
#include "thirdparty/rapidjson/error/en.h"
#include "IO/TextLoader.h"
#include "Util/Logger.h"
#include "GLUtil/GLProgramUtilities.h"
using namespace MoonEngine;
bool verifyFile(const rapidjson::Documen... | 33.141414 | 117 | 0.662603 | kyle-piddington |
e3cffaf6a7d4d8693a33dd2cbf998653831425b7 | 1,194 | cpp | C++ | gs-segatools.cpp | Soyandroid/ground-slider | ef23142e302f9d196becc1243a8aaab8527d3517 | [
"CC0-1.0"
] | 2 | 2021-07-19T16:59:12.000Z | 2021-07-19T16:59:12.000Z | gs-segatools.cpp | Soyandroid/ground-slider | ef23142e302f9d196becc1243a8aaab8527d3517 | [
"CC0-1.0"
] | null | null | null | gs-segatools.cpp | Soyandroid/ground-slider | ef23142e302f9d196becc1243a8aaab8527d3517 | [
"CC0-1.0"
] | null | null | null | #include "gs-config.h"
#ifdef MODE_SEGATOOLS
#include "gs-reporter.h"
#include <Arduino.h>
#include <HID-Project.h>
#include "gs-sensor.h"
#include "gs-led.h"
#ifdef KB_MODE_CAP1188
const char SEGATOOLS_KEYS[] = "987654azsxdcfvgbhnjmk,";
#endif
#ifdef KB_MODE_MPR121
const char SEGATOOLS_KEYS[] = "987654vfcdxsza,km... | 16.816901 | 55 | 0.680067 | Soyandroid |
e3d270d976f75af3f2fa065a16517dffc72eaecf | 525 | cpp | C++ | Source/10.0.18362.0/ucrt/mbstring/mbsncat_s.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 2 | 2021-01-27T10:19:30.000Z | 2021-02-09T06:24:30.000Z | Source/10.0.18362.0/ucrt/mbstring/mbsncat_s.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | null | null | null | Source/10.0.18362.0/ucrt/mbstring/mbsncat_s.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 1 | 2021-01-27T10:19:36.000Z | 2021-01-27T10:19:36.000Z | /***
*mbsncat_s.c - concatenate string2 onto string1, max length n
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* defines mbsncat_s() - concatenate maximum of n characters
*
*******************************************************************************/
#ifndef _MBCS
#erro... | 30.882353 | 101 | 0.628571 | 825126369 |
e3dc38dbe3cf53bd06c4743ce6c326342bb6368e | 1,788 | cpp | C++ | src/o1/GlobalDefs.cpp | tanmayg14/o-du-l2 | 60d14257f866aab93574d57cceecad4859670f82 | [
"Apache-2.0",
"CC-BY-4.0"
] | 9 | 2020-10-13T06:37:10.000Z | 2022-03-05T17:57:52.000Z | src/o1/GlobalDefs.cpp | tanmayg14/o-du-l2 | 60d14257f866aab93574d57cceecad4859670f82 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | src/o1/GlobalDefs.cpp | tanmayg14/o-du-l2 | 60d14257f866aab93574d57cceecad4859670f82 | [
"Apache-2.0",
"CC-BY-4.0"
] | 7 | 2020-09-29T09:56:01.000Z | 2022-03-24T10:50:32.000Z | /*******************************************************************************
################################################################################
# Copyright (c) [2020] [HCL Technologies Ltd.] #
# ... | 55.875 | 80 | 0.352349 | tanmayg14 |
e3dda8eb96756af42ef884311a97464c436ed23e | 2,044 | cpp | C++ | Algorithms/Data Structure/Mo-Algo.cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | null | null | null | Algorithms/Data Structure/Mo-Algo.cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | null | null | null | Algorithms/Data Structure/Mo-Algo.cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | 1 | 2021-07-19T08:39:38.000Z | 2021-07-19T08:39:38.000Z | // Mo's Algorithm for answering offline queries
// Time complexity: O(N*sqrt(N))
// Application in D-query problem (https://www.spoj.com/problems/DQUERY/)
// For each query (l, r), count the number of distinct numbers in the range [l, r]
#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
const in... | 22.711111 | 82 | 0.498043 | purhan |
e3df7a9fd80e4a78b67deca5405524597f1f62cf | 2,728 | cpp | C++ | application/settings_project.cpp | EgorSidorov/EasySiteCreator | 100203b49386d6905a6e9456c9f2b7644f7f6ff0 | [
"Apache-2.0"
] | 1 | 2019-01-23T18:34:33.000Z | 2019-01-23T18:34:33.000Z | application/settings_project.cpp | EgorSidorov/EasySiteCreator | 100203b49386d6905a6e9456c9f2b7644f7f6ff0 | [
"Apache-2.0"
] | null | null | null | application/settings_project.cpp | EgorSidorov/EasySiteCreator | 100203b49386d6905a6e9456c9f2b7644f7f6ff0 | [
"Apache-2.0"
] | null | null | null | #include "settings_project.h"
#include "QFile"
#include "QJsonDocument"
#include "QJsonObject"
#include <QDebug>
QString settings_project::get_database_way() const
{
return database_way;
}
void settings_project::set_database_way(const QString &value)
{
database_way = value;
}
QString settings_project::get_da... | 26.230769 | 73 | 0.66239 | EgorSidorov |
e3e119284e82b24888f70eb2ed03d01d7de30f9a | 7,353 | cpp | C++ | snippets/cpp/VS_Snippets_CLR_System/system.Security.Policy.GacMembershipCondition/CPP/gacmembershipcondition.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-02-22T09:30:21.000Z | 2021-08-02T23:44:31.000Z | snippets/cpp/VS_Snippets_CLR_System/system.Security.Policy.GacMembershipCondition/CPP/gacmembershipcondition.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_CLR_System/system.Security.Policy.GacMembershipCondition/CPP/gacmembershipcondition.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z |
// <Snippet1>
using namespace System;
using namespace System::Security;
using namespace System::Security::Policy;
using namespace System::Collections;
public ref class GacMembershipConditionDemo
{
private:
// Demonstrate the Copy method, which creates an identical
// copy of the current permission.
bool ... | 32.25 | 79 | 0.533116 | BohdanMosiyuk |
e3f1e4d68ef8d76a8bb2e686b805595fff82d126 | 8,094 | cpp | C++ | libraries/encoders/CyoEncode.cpp | darkain/RMX-Automation | b98df45a40c6e5ce8a8770579788274924d9e851 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T20:02:59.000Z | 2020-07-22T20:02:59.000Z | libraries/encoders/CyoEncode.cpp | darkain/RMX-Automation | b98df45a40c6e5ce8a8770579788274924d9e851 | [
"BSD-3-Clause"
] | null | null | null | libraries/encoders/CyoEncode.cpp | darkain/RMX-Automation | b98df45a40c6e5ce8a8770579788274924d9e851 | [
"BSD-3-Clause"
] | null | null | null |
//////////////////////////////////////////////////////////////////////
//
// CyoEncode.cpp
//
// Developed by Graham Bull for Cyotec Systems Limited.
// http://www.cyotec.com
//
// Copyright (c) 2004 by Cyotec Systems Limited. All Rights Reserved.
//
// This source code may be used, modified, compiled, dupli... | 28.702128 | 95 | 0.460341 | darkain |
e3fb68c762101543f5ade4e1c74f2ae93016eb39 | 8,566 | cpp | C++ | common/src/data/EmailAccountAdapter.cpp | webOS-ports/mojomail | 49358ac2878e010f5c6e3bd962f047c476c11fc3 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:20:27.000Z | 2021-01-02T08:14:23.000Z | mojomail/common/src/data/EmailAccountAdapter.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 3 | 2019-05-11T19:17:56.000Z | 2021-11-24T16:04:36.000Z | mojomail/common/src/data/EmailAccountAdapter.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:21:13.000Z | 2021-01-02T02:37:10.000Z | // @@@LICENSE
//
// Copyright (c) 2010-2013 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless require... | 29.84669 | 111 | 0.761265 | webOS-ports |
e3fba2c276c3dab5a293b9b379a1fc01a949385c | 1,578 | hpp | C++ | include/robot.hpp | Dai-z/Robot2019 | 7e76fb5b72e725a15f02006b000665ec4393d761 | [
"MIT"
] | null | null | null | include/robot.hpp | Dai-z/Robot2019 | 7e76fb5b72e725a15f02006b000665ec4393d761 | [
"MIT"
] | null | null | null | include/robot.hpp | Dai-z/Robot2019 | 7e76fb5b72e725a15f02006b000665ec4393d761 | [
"MIT"
] | 1 | 2021-01-05T06:18:42.000Z | 2021-01-05T06:18:42.000Z | #pragma once
#include "item.hpp"
class Robot : public Item {
public:
/**
* @brief Robot constructor
*
* @param robot_id - robot id
* @param loc - whether is from localization information
* @param parent - parent of this item
*/
Robot(bool loc, QGraphicsItem* parent = 0);
/**
* @brief Get b... | 22.542857 | 73 | 0.649556 | Dai-z |
540a0be6648fa3194f51ff2c8a767e9e2f2ed8ff | 722 | cpp | C++ | src/main.cpp | codecat/apache-angelscript | 79e736d026b8e34d48cf9889a1786418acf59ecb | [
"MIT"
] | 1 | 2020-01-15T06:28:08.000Z | 2020-01-15T06:28:08.000Z | src/main.cpp | codecat/apache-angelscript | 79e736d026b8e34d48cf9889a1786418acf59ecb | [
"MIT"
] | null | null | null | src/main.cpp | codecat/apache-angelscript | 79e736d026b8e34d48cf9889a1786418acf59ecb | [
"MIT"
] | null | null | null | #include <cstdio>
#include <apache2/httpd.h>
#include <apache2/http_core.h>
#include <apache2/http_protocol.h>
#include <apache2/http_request.h>
#include <PageHandler.h>
static int example_handler(request_rec* r)
{
if (!r->handler || strcmp(r->handler, "application/x-httpd-angelscript")) {
return DECLINED;
}
P... | 17.190476 | 76 | 0.731302 | codecat |
54106abfb81438719877baaa4d35699176e34662 | 1,055 | cc | C++ | cpp/src/log.cc | js1010/cuhnsw | 7115e222a8b0406a5c371eff720f8280f335f2cc | [
"Apache-2.0"
] | 63 | 2021-01-05T07:21:44.000Z | 2022-03-13T10:27:22.000Z | cpp/src/log.cc | js1010/cuhnsw | 7115e222a8b0406a5c371eff720f8280f335f2cc | [
"Apache-2.0"
] | 3 | 2021-02-09T02:44:38.000Z | 2021-04-20T12:34:01.000Z | cpp/src/log.cc | js1010/cuhnsw | 7115e222a8b0406a5c371eff720f8280f335f2cc | [
"Apache-2.0"
] | 12 | 2021-02-01T08:22:10.000Z | 2022-03-11T07:04:21.000Z | // Copyright (c) 2020 Jisang Yoon
// All rights reserved.
//
// This source code is licensed under the Apache 2.0 license found in the
// LICENSE file in the root directory of this source tree.
// reference: https://github.com/kakao/buffalo/blob/5f571c2c7d8227e6625c6e538da929e4db11b66d/lib/misc/log.cc
#include "log.hp... | 30.142857 | 108 | 0.713744 | js1010 |
54178c2681b968b679565e2a6a931658a57e1d73 | 2,294 | hpp | C++ | CUI/include/cui/compile_time/string/char_traits.hpp | mscofield0/cui-sfml | f70dfdf977958eb2b37162d474873c75df4dadc5 | [
"MIT"
] | null | null | null | CUI/include/cui/compile_time/string/char_traits.hpp | mscofield0/cui-sfml | f70dfdf977958eb2b37162d474873c75df4dadc5 | [
"MIT"
] | null | null | null | CUI/include/cui/compile_time/string/char_traits.hpp | mscofield0/cui-sfml | f70dfdf977958eb2b37162d474873c75df4dadc5 | [
"MIT"
] | null | null | null | #ifndef CUI_CHAR_TRAITS_HPP
#define CUI_CHAR_TRAITS_HPP
#include <cstdint>
#include <compile_time/mem_utils/memcpy.hpp>
#include <compile_time/mem_utils/memmove.hpp>
#include <compile_time/mem_utils/memset.hpp>
namespace cui {
constexpr int EOF_SYMBOL = 79894;
template <typename CharT>
class BasicCharTraits
{
publ... | 23.649485 | 95 | 0.698779 | mscofield0 |
54183804e28ee67a238dd3e64fa7f6318765aba1 | 784 | cpp | C++ | C++/leetcode0718-maximum-length-of-repeated-subarray.cpp | SimpCosm/leetcode | 4d2fbae0408f5d6512c75cc07da3f8fc35d5bcf8 | [
"MIT"
] | 2 | 2022-02-13T11:54:50.000Z | 2022-03-30T11:10:30.000Z | C++/leetcode0718-maximum-length-of-repeated-subarray.cpp | SimpCosm/leetcode | 4d2fbae0408f5d6512c75cc07da3f8fc35d5bcf8 | [
"MIT"
] | null | null | null | C++/leetcode0718-maximum-length-of-repeated-subarray.cpp | SimpCosm/leetcode | 4d2fbae0408f5d6512c75cc07da3f8fc35d5bcf8 | [
"MIT"
] | 1 | 2021-06-24T09:55:47.000Z | 2021-06-24T09:55:47.000Z | /*
* Copyright (C) 2018 all rights reserved.
*
* Author: Houmin Wei <houmin.wei@outlook.com>
*
* Source: https://leetcode.com/problems/maximum-length-of-repeated-subarray
*
*/
#include <vector>
using namespace std;
class Solution {
public:
int findLength(vector<int>& A, vector<int>& B) {
int m = A.s... | 25.290323 | 76 | 0.42602 | SimpCosm |
542bc4ac589c73f7d51d881a518d2ad66f0881c2 | 384 | cpp | C++ | src/skills/SkillPenPlan.cpp | griffinmelnick/sos | da6ca31a26c2bfff00be842e51536661273a08a7 | [
"MIT"
] | 1 | 2017-03-10T18:34:08.000Z | 2017-03-10T18:34:08.000Z | src/skills/SkillPenPlan.cpp | melngr/sos | da6ca31a26c2bfff00be842e51536661273a08a7 | [
"MIT"
] | 6 | 2017-04-11T22:20:31.000Z | 2019-01-19T19:09:39.000Z | src/skills/SkillPenPlan.cpp | melngr/sos | da6ca31a26c2bfff00be842e51536661273a08a7 | [
"MIT"
] | 1 | 2017-03-03T01:26:20.000Z | 2017-03-03T01:26:20.000Z | #include <string>
#include "Skill.h"
#include "SkillPenPlan.h"
SkillPlan::SkillPlan(std::string name, int maxuses) : Skill(name, maxuses) {
_name = "Plan Ahead";
_uses = 20;
_maxuses = 20;
}
SkillPlan::~SkillPlan() {
}
int SkillPlan::use(int statvalue) {
if (_uses > 0) {
--_uses;
int damage = 25;
damage +=... | 16 | 76 | 0.632813 | griffinmelnick |
542c77e6e0a9e8e24001101f6adabe61472f46c9 | 1,295 | hpp | C++ | libs/core/window/include/bksge/core/window/detail/inl/window_base_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/window/include/bksge/core/window/detail/inl/window_base_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/window/include/bksge/core/window/detail/inl/window_base_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file window_base_inl.hpp
*
* @brief WindowBase クラスの実装
*
* @author myoukaku
*/
#ifndef BKSGE_CORE_WINDOW_DETAIL_INL_WINDOW_BASE_INL_HPP
#define BKSGE_CORE_WINDOW_DETAIL_INL_WINDOW_BASE_INL_HPP
#include <bksge/core/window/detail/window_base.hpp>
#include <bksge/core/math/extent2.hpp>
#include... | 16.1875 | 59 | 0.720463 | myoukaku |
542e75db59560e2f7ceb695982270da1ccdb309b | 1,417 | cpp | C++ | packages/utility/archive/src/Utility_HDF5ArchiveException.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/utility/archive/src/Utility_HDF5ArchiveException.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/utility/archive/src/Utility_HDF5ArchiveException.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file Utility_HDF5ArchiveException.cpp
//! \author Alex Robinson
//! \brief HDF5 archive exception definition
//!
//---------------------------------------------------------------------------//
// FRENSIE Includes
#include "Util... | 33.738095 | 90 | 0.470007 | bam241 |
542e7ab57c63810175a2e2c5de37b58c7af5d526 | 10,059 | hpp | C++ | include/lib/Engine/Managers/SerializationManager.hpp | edisonlee0212/UniEngine | 62278ae811235179e6a1c24eb35acf73e400fe28 | [
"BSD-3-Clause"
] | 22 | 2020-05-18T02:37:09.000Z | 2022-03-13T18:44:30.000Z | include/lib/Engine/Managers/SerializationManager.hpp | edisonlee0212/UniEngine | 62278ae811235179e6a1c24eb35acf73e400fe28 | [
"BSD-3-Clause"
] | null | null | null | include/lib/Engine/Managers/SerializationManager.hpp | edisonlee0212/UniEngine | 62278ae811235179e6a1c24eb35acf73e400fe28 | [
"BSD-3-Clause"
] | 3 | 2020-12-21T01:21:03.000Z | 2021-09-06T08:07:41.000Z | #pragma once
#include <ConsoleManager.hpp>
#include <IDataComponent.hpp>
#include <IPrivateComponent.hpp>
#include <ISerializable.hpp>
#include <ISingleton.hpp>
#include "ISystem.hpp"
namespace YAML
{
class Node;
class Emitter;
template <> struct UNIENGINE_API convert<glm::vec2>
{
static Node encode(const glm::vec2... | 36.711679 | 152 | 0.649965 | edisonlee0212 |
f9ad35eb83b24f9426da685f545e89ca544cee78 | 1,273 | cpp | C++ | Examples/exSincFilter.cpp | davidkleiven/VISA | 1b07197a3ea1f88c40e7d9249e08deee360ea814 | [
"MIT"
] | 2 | 2018-05-27T12:49:40.000Z | 2018-09-05T05:50:51.000Z | Examples/exSincFilter.cpp | davidkleiven/VISA | 1b07197a3ea1f88c40e7d9249e08deee360ea814 | [
"MIT"
] | null | null | null | Examples/exSincFilter.cpp | davidkleiven/VISA | 1b07197a3ea1f88c40e7d9249e08deee360ea814 | [
"MIT"
] | 1 | 2018-04-11T10:05:49.000Z | 2018-04-11T10:05:49.000Z | #include "lowPassFilter.hpp"
#include "gaussianKernel.hpp"
#include <vector>
#include <iostream>
#include <fstream>
using namespace std;
double linear( unsigned int n )
{
return n;
}
double alternating( unsigned int n )
{
if ( n%2 == 0 ) return 1.0;
return -1.0;
}
int main()
{
vector<double> linearRamp;
... | 21.216667 | 59 | 0.641791 | davidkleiven |
f9ad4830bb04744f82940a00b78b093b16403634 | 1,652 | cpp | C++ | lib/tokenizer/src/UnitTests.cpp | mldurney/honor-code | 9cce5fa4b917d707b12e62a619b59d2dc97c8c90 | [
"Apache-2.0"
] | 40 | 2018-07-29T22:56:10.000Z | 2022-03-03T03:40:16.000Z | lib/tokenizer/src/UnitTests.cpp | mldurney/honor-code | 9cce5fa4b917d707b12e62a619b59d2dc97c8c90 | [
"Apache-2.0"
] | 12 | 2018-05-08T06:13:04.000Z | 2021-07-02T14:08:08.000Z | lib/tokenizer/src/UnitTests.cpp | mldurney/honor-code | 9cce5fa4b917d707b12e62a619b59d2dc97c8c90 | [
"Apache-2.0"
] | 16 | 2018-04-20T12:47:14.000Z | 2021-10-19T07:22:13.000Z | /*-
* Copyright 2015 Diomidis Spinellis
*
* 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... | 31.169811 | 77 | 0.749395 | mldurney |
f9b18338d7e8b2edbfa5f1cfb892254d8a57337a | 1,680 | cpp | C++ | src/dispatch/signature.cpp | cjgillot/rtti | 271c4429a4904afad858bf2464f3544314a6c69e | [
"BSL-1.0"
] | 2 | 2015-04-29T21:34:44.000Z | 2018-12-04T15:11:02.000Z | src/dispatch/signature.cpp | cjgillot/rtti | 271c4429a4904afad858bf2464f3544314a6c69e | [
"BSL-1.0"
] | null | null | null | src/dispatch/signature.cpp | cjgillot/rtti | 271c4429a4904afad858bf2464f3544314a6c69e | [
"BSL-1.0"
] | null | null | null | // Copyright Camille Gillot 2012 - 2015.
// 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)
#include "forward.hpp"
namespace {
struct klass_p_order {
bool operator()(const klass_t* aa, cons... | 25.074627 | 91 | 0.616667 | cjgillot |
f9b8e7d6a9702bce72cfc19672f16a48455270da | 1,028 | cpp | C++ | DP/MCM/MCM Palindromic Partitioning_RECURSIVE.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | 1 | 2021-07-20T06:08:26.000Z | 2021-07-20T06:08:26.000Z | DP/MCM/MCM Palindromic Partitioning_RECURSIVE.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | null | null | null | DP/MCM/MCM Palindromic Partitioning_RECURSIVE.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | null | null | null | // QUARANTINE DAYS..;)
#include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
void fast() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
}
/**********====================########################=================***********/
bool isPalindrome(string s, int i, int j)
{
if (i == j) return ... | 20.156863 | 105 | 0.526265 | scortier |
f9b8fd4ecb8cf62e994c5585cdf84b9c43effe4c | 3,552 | cpp | C++ | ExtremeBowling/src/characters/ball.cpp | ChandlerCo/3GC3_ExtremeBowling | cf330777d04903d6d9ad30be0bfc47fcfac51dcd | [
"MIT"
] | null | null | null | ExtremeBowling/src/characters/ball.cpp | ChandlerCo/3GC3_ExtremeBowling | cf330777d04903d6d9ad30be0bfc47fcfac51dcd | [
"MIT"
] | null | null | null | ExtremeBowling/src/characters/ball.cpp | ChandlerCo/3GC3_ExtremeBowling | cf330777d04903d6d9ad30be0bfc47fcfac51dcd | [
"MIT"
] | null | null | null | # include "ball.h"
Ball::Ball(float x, float y, float z, float radius): Asset(x, y, z)
{
this->physics.setInteraction(Reaction::kinetic);
this->physics.setSurfaceFriction(1);
this->physics.setId(BALL);
this->graphics = Graphics("ball", BLUE);
this->graphics.setTexture(USER_TEXTURE);
this->radi... | 26.507463 | 123 | 0.632883 | ChandlerCo |
f9bb2e12dca899eaaa3741656093b81595582e05 | 2,677 | cpp | C++ | src/libmotifmm/Application.cpp | Arquivotheca/OpenCDE | 4bb0f65dab345790bcf8d8422a05dda495990cd1 | [
"BSD-2-Clause-FreeBSD"
] | 11 | 2015-05-30T14:58:42.000Z | 2021-10-12T04:50:00.000Z | src/libmotifmm/Application.cpp | idunham/opencde | 376f7ba54f8b384a5a0b2104ff2b26f9c8ab3582 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-11-30T08:11:39.000Z | 2021-11-30T08:11:39.000Z | src/libmotifmm/Application.cpp | idunham/opencde | 376f7ba54f8b384a5a0b2104ff2b26f9c8ab3582 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-05-30T14:58:44.000Z | 2017-09-28T21:58:50.000Z | #include <motifmm.h>
namespace Motif
{
bool Application::initialized = false;
XtAppContext Application::context;
Widget Application::widget;
std::string Application::name;
Display* Application::display = NULL;
std::vector<std::string> Application::fallbackResources;
void Application::initialize(std::string name, int... | 19.540146 | 157 | 0.715353 | Arquivotheca |
f9bd437b5f6b4c1744e17552351bed210d7c199d | 1,728 | cpp | C++ | src/utils/algorithm/Distances.cpp | biromiro/feup-cal-proj | 2f70d0bb866254897271ce9bb339c866cd8cf6b3 | [
"MIT"
] | null | null | null | src/utils/algorithm/Distances.cpp | biromiro/feup-cal-proj | 2f70d0bb866254897271ce9bb339c866cd8cf6b3 | [
"MIT"
] | null | null | null | src/utils/algorithm/Distances.cpp | biromiro/feup-cal-proj | 2f70d0bb866254897271ce9bb339c866cd8cf6b3 | [
"MIT"
] | 1 | 2021-05-29T18:03:47.000Z | 2021-05-29T18:03:47.000Z | //
// Created by nrtc on 05/05/2021.
//
#include "Distances.h"
double Distances::dMeridian = 12340;
double Distances::dEquator = 24901;
double Distances::getEuclideanDistance(Position pos1, Position pos2) {
if(pos1.getMode() != pos2.getMode()) throw std::invalid_argument("Incompatible modes upon distance calcula... | 42.146341 | 118 | 0.692708 | biromiro |
f9c084db48a6d41fb83f0c66f1fd8cdfa8d88a01 | 7,755 | hpp | C++ | args/core/common/string_extra.hpp | Developer-The-Great/Args-Engine | 1eee1eaadc5e203778896c803e8fa4e9f52b4f7b | [
"MIT"
] | null | null | null | args/core/common/string_extra.hpp | Developer-The-Great/Args-Engine | 1eee1eaadc5e203778896c803e8fa4e9f52b4f7b | [
"MIT"
] | null | null | null | args/core/common/string_extra.hpp | Developer-The-Great/Args-Engine | 1eee1eaadc5e203778896c803e8fa4e9f52b4f7b | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <cctype>
#include <locale>
#include <vector>
#include <sstream>
#include <iterator>
#include <string>
#include <cstring>
namespace args::core::common{
struct isChars
{
isChars(const char* chars) :_chars(chars){}
bool operator()(char c) const
{
for(auto testChar = _char... | 22.876106 | 105 | 0.659961 | Developer-The-Great |
f9c311da2efcd46d4db6fda1ce8fc7a8389c7c21 | 1,733 | cpp | C++ | src/Modules/UI/FocusMap.cpp | Yattabyte/reVision | 014cb450d1c30b8f64abbacf00425b4f814b05a0 | [
"MIT"
] | 5 | 2018-10-12T17:40:17.000Z | 2020-11-20T10:49:34.000Z | src/Modules/UI/FocusMap.cpp | Yattabyte/reVision | 014cb450d1c30b8f64abbacf00425b4f814b05a0 | [
"MIT"
] | 71 | 2018-07-19T01:59:38.000Z | 2020-03-29T18:03:13.000Z | src/Modules/UI/FocusMap.cpp | Yattabyte/reVision | 014cb450d1c30b8f64abbacf00425b4f814b05a0 | [
"MIT"
] | 1 | 2022-03-24T13:21:25.000Z | 2022-03-24T13:21:25.000Z | #include "Modules/UI/FocusMap.h"
void FocusMap::addElement(const std::shared_ptr<UI_Element>& element)
{
m_elements.push_back(element);
}
bool FocusMap::removeElement(const std::shared_ptr<UI_Element>& element)
{
size_t index(0ULL);
bool found = false;
for (const auto& e : m_elements) {
if (e.get() == element.... | 21.134146 | 93 | 0.695903 | Yattabyte |
f9c4db7006d528f97e91e7ef1bd9d1016ca3d942 | 2,460 | cpp | C++ | src/vec2f.cpp | Sonicskater/CurveModeller | bb7c6710a3ef56545862c94c08fe9226a620c3ed | [
"MIT"
] | null | null | null | src/vec2f.cpp | Sonicskater/CurveModeller | bb7c6710a3ef56545862c94c08fe9226a620c3ed | [
"MIT"
] | null | null | null | src/vec2f.cpp | Sonicskater/CurveModeller | bb7c6710a3ef56545862c94c08fe9226a620c3ed | [
"MIT"
] | null | null | null | /**
* @author Andrew Robert Owens, Philmo Gu
* @date 2019-10-15.
* @details Organization: Biological Modeling and Visualization research group
* University of Calgary, Calgary, AB, Canada
*
* Contact: arowens [at] ucalgary.ca
* @copyright Copyright (c) 2019 ___ALGORITHMIC_BOTANY___. All rights reserved.
*
* @... | 17.826087 | 79 | 0.595935 | Sonicskater |
f9c88af941c8375de714f13cd8535adee3d70b2f | 6,366 | cpp | C++ | Engine/src/Matrix.cpp | listopat/Ray-Tracer | e29c37475b7b575c399cce03b0f4d7fafc942643 | [
"MIT"
] | 2 | 2020-12-27T21:49:38.000Z | 2020-12-28T22:49:11.000Z | Engine/src/Matrix.cpp | listopat/Ray-Tracer | e29c37475b7b575c399cce03b0f4d7fafc942643 | [
"MIT"
] | null | null | null | Engine/src/Matrix.cpp | listopat/Ray-Tracer | e29c37475b7b575c399cce03b0f4d7fafc942643 | [
"MIT"
] | null | null | null | #include <Matrix.h>
#include <math.h>
#include <stdexcept>
static const double EPSILON = 0.00001;
static const double identityValues[16] = { 1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
... | 24.964706 | 95 | 0.512096 | listopat |
f9d4d0e1f382a77a4a429d650aa8f76fc5ca95d0 | 685 | cpp | C++ | 1602/c.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | 1 | 2021-10-24T00:46:37.000Z | 2021-10-24T00:46:37.000Z | 1602/c.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | 1602/c.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <vector>
using namespace std;
const int MAXP = 30;
void solve() {
vector<int> cnt_bits(MAXP + 1, 0);
int n;
scanf("%d", &n);
int el;
for (int i = 0; i < n; ++i) {
scanf("%d", &el);
for (int j = 0; j <= MAXP; ++j) {
if (el & (1 << j)) {
+... | 14.891304 | 37 | 0.424818 | vladshablinsky |
f9dc4387e1da8004bc8ca21b77e9a66905fda089 | 297 | cpp | C++ | competitive_programming/programming_contests/hacker_rank/cpp/introduction/vector_sort.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | competitive_programming/programming_contests/hacker_rank/cpp/introduction/vector_sort.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | competitive_programming/programming_contests/hacker_rank/cpp/introduction/vector_sort.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | #include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
vector<int> v;
int n, temp;
cin >> n;
while (n--) {
cin >> temp;
v.push_back(temp);
}
sort(v.begin(), v.end());
for (int i = 0; i < v.size(); i++)
cout << v[i] << " ";
return 0;
}
| 11 | 35 | 0.535354 | LeandroTk |
f9e18fbc15c26a7172461a34ecf84bb1177541dd | 299 | cpp | C++ | QDebug/main.cpp | ideechaniz/repasoQt | b296340eda24678c7193144c1e5f35590a499d09 | [
"BSD-2-Clause"
] | null | null | null | QDebug/main.cpp | ideechaniz/repasoQt | b296340eda24678c7193144c1e5f35590a499d09 | [
"BSD-2-Clause"
] | null | null | null | QDebug/main.cpp | ideechaniz/repasoQt | b296340eda24678c7193144c1e5f35590a499d09 | [
"BSD-2-Clause"
] | null | null | null | #include <QCoreApplication>
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv); // a es una aplicacion
// argc es el numero de argumentos
// argv son los argumentos.
qDebug() << "Hola Qt";
return a.exec(); // a.exec genera un bucle infinito
}
| 21.357143 | 58 | 0.648829 | ideechaniz |
f9ee0b482c333a2404e686154978a45a5c26e642 | 4,995 | hpp | C++ | cpp/src/persistent-storage/fetching-task.hpp | jujanda/ndnrtc_arc | f152e56c5181775b0db899c33d86e19669c35b9a | [
"BSD-2-Clause"
] | null | null | null | cpp/src/persistent-storage/fetching-task.hpp | jujanda/ndnrtc_arc | f152e56c5181775b0db899c33d86e19669c35b9a | [
"BSD-2-Clause"
] | null | null | null | cpp/src/persistent-storage/fetching-task.hpp | jujanda/ndnrtc_arc | f152e56c5181775b0db899c33d86e19669c35b9a | [
"BSD-2-Clause"
] | null | null | null | //
// fetching-task.hpp
//
// Created by Peter Gusev on 27 May 2018.
// Copyright 2013-2018 Regents of the University of California
//
#ifndef __fetching_task_hpp__
#define __fetching_task_hpp__
#include <boost/shared_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <ndn-cpp/name.hpp>
#include <ndn-cp... | 34.93007 | 112 | 0.596196 | jujanda |
f9ee80483c8db288a964cdb13772607491404485 | 1,861 | cpp | C++ | samples/sample_rplycpp_write_simple.cpp | manlito/rplycpp | 76df2953c4c62769a1913d28a47e06709681bc66 | [
"MIT"
] | 1 | 2019-10-11T18:45:04.000Z | 2019-10-11T18:45:04.000Z | samples/sample_rplycpp_write_simple.cpp | manlito/rplycpp | 76df2953c4c62769a1913d28a47e06709681bc66 | [
"MIT"
] | null | null | null | samples/sample_rplycpp_write_simple.cpp | manlito/rplycpp | 76df2953c4c62769a1913d28a47e06709681bc66 | [
"MIT"
] | 1 | 2016-04-16T15:36:26.000Z | 2016-04-16T15:36:26.000Z | #include <functional>
#include <vector>
#include "rplycpp.hpp"
#include "my_types.hpp"
using namespace myproject;
int main(int argc, char *argv[])
{
// Some sample data type from your app logic
Surface<PointXYZRGB> cloud;
PointXYZRGB point;
point.x = 5.0; point.y = 0; point.z = 0;
point.red = 255; point.gre... | 29.539683 | 63 | 0.653412 | manlito |
f9fa02b1e95db47b3c1f09910252d2af7fcc3fd8 | 575 | cpp | C++ | src/OpenLoco/ProgressBar.cpp | aw20368/OpenLoco | ce37179813b0036b38061c604581e70f8d41873f | [
"MIT"
] | null | null | null | src/OpenLoco/ProgressBar.cpp | aw20368/OpenLoco | ce37179813b0036b38061c604581e70f8d41873f | [
"MIT"
] | null | null | null | src/OpenLoco/ProgressBar.cpp | aw20368/OpenLoco | ce37179813b0036b38061c604581e70f8d41873f | [
"MIT"
] | null | null | null | #include "ProgressBar.h"
#include "Interop/Interop.hpp"
using namespace OpenLoco::Interop;
namespace OpenLoco::ProgressBar
{
// 0x004CF5C5
// eax: maximum
void begin(string_id stringId, int32_t edx)
{
registers regs;
regs.eax = stringId;
regs.edx = edx;
call(0x004CF5C5,... | 17.424242 | 47 | 0.575652 | aw20368 |
f9fce4eccb312baadde1e7922b4bfe0e7b92b127 | 440 | cpp | C++ | binarysearch.io/medium/A-flight-of-stairs.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | binarysearch.io/medium/A-flight-of-stairs.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | binarysearch.io/medium/A-flight-of-stairs.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | #include "solution.hpp"
using namespace std;
class Solution {
public:
int solve(int n) {
if(!n) return 1;
int dp[n+1];
memset(dp,0,sizeof(int)*(n+1));
dp[0]=1;
dp[1]=1;
// targets: no of stairs
for(int i=2;i<=n;i++){
// ways: no of steps
... | 19.130435 | 39 | 0.406818 | wingkwong |
f9fd019fc036a9cef2875580e6276294fbbffe58 | 1,269 | cpp | C++ | Ponce/src/globals.cpp | fcccode/Ponce | fc25268592027af0c71c898f87a347418c5ad475 | [
"BSL-1.0"
] | 1 | 2019-12-30T00:19:08.000Z | 2019-12-30T00:19:08.000Z | Ponce/src/globals.cpp | ZhuHuiBeiShaDiao/Ponce | fc25268592027af0c71c898f87a347418c5ad475 | [
"BSL-1.0"
] | null | null | null | Ponce/src/globals.cpp | ZhuHuiBeiShaDiao/Ponce | fc25268592027af0c71c898f87a347418c5ad475 | [
"BSL-1.0"
] | null | null | null | //! \file
/*
** Copyright (c) 2016 - Ponce
** Authors:
** Alberto Garcia Illera agarciaillera@gmail.com
** Francisco Oca francisco.oca.gonzalez@gmail.com
**
** This program is under the terms of the BSD License.
*/
/*This file containts all the global variables used around the ... | 32.538462 | 120 | 0.743105 | fcccode |
e6021d62bbf272053cfdfd3615357e76eb64c0f9 | 1,795 | hpp | C++ | include/noma/ocl/kernel_wrapper.hpp | noma/ocl | 6f469f744d456a96f3e6549c3cbd58f16da10896 | [
"BSL-1.0"
] | null | null | null | include/noma/ocl/kernel_wrapper.hpp | noma/ocl | 6f469f744d456a96f3e6549c3cbd58f16da10896 | [
"BSL-1.0"
] | null | null | null | include/noma/ocl/kernel_wrapper.hpp | noma/ocl | 6f469f744d456a96f3e6549c3cbd58f16da10896 | [
"BSL-1.0"
] | 1 | 2021-04-11T21:19:59.000Z | 2021-04-11T21:19:59.000Z | // Copyright (c) 2016 Matthias Noack <ma.noack.pr@gmail.com>
//
// See accompanying file LICENSE and README for further information.
#ifndef noma_ocl_kernel_wrapper_hpp
#define noma_ocl_kernel_wrapper_hpp
#include <string>
#include <boost/filesystem.hpp>
#include <noma/bmt/bmt.hpp>
#include "noma/ocl/helper.hpp"
n... | 33.240741 | 202 | 0.759889 | noma |
e603de27d3d327e797f941f706f6b48c7bb62e62 | 5,309 | cpp | C++ | gpe/Wavefunction.cpp | erli1/GPE-Solver | 636fc84bc50144471596ff99cc99edb92a6ef5c1 | [
"MIT"
] | 8 | 2015-08-23T09:12:00.000Z | 2021-09-10T21:41:27.000Z | gpe/Wavefunction.cpp | erli1/GPE-Solver | 636fc84bc50144471596ff99cc99edb92a6ef5c1 | [
"MIT"
] | 1 | 2018-02-23T19:33:26.000Z | 2018-02-24T09:43:18.000Z | gpe/Wavefunction.cpp | erli1/GPE-Solver | 636fc84bc50144471596ff99cc99edb92a6ef5c1 | [
"MIT"
] | 5 | 2015-02-18T17:31:41.000Z | 2021-11-09T22:18:45.000Z | #include "Wavefunction.h"
#include "complexType.h"
#include <cmath>
#include <iostream>
void Wavefunction::normalize() {
#ifdef DEBUG_GPE
assureInitialized();
#endif
int i;
int size = _sp.size();
double norm = 0.0;
double re, im;
#pragma omp parallel for private(i, re, im) reduction(+:norm)
... | 26.678392 | 119 | 0.491053 | erli1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.