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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
194a9d5b56dc18019017c7d09605348852f64f53 | 1,495 | cpp | C++ | src/symbols/object_variables/LocationNumericAttribute.cpp | tomcreutz/planning-templ | 55e35ede362444df9a7def6046f6df06851fe318 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T12:15:15.000Z | 2022-03-31T12:15:15.000Z | src/symbols/object_variables/LocationNumericAttribute.cpp | tomcreutz/planning-templ | 55e35ede362444df9a7def6046f6df06851fe318 | [
"BSD-3-Clause"
] | null | null | null | src/symbols/object_variables/LocationNumericAttribute.cpp | tomcreutz/planning-templ | 55e35ede362444df9a7def6046f6df06851fe318 | [
"BSD-3-Clause"
] | 1 | 2021-12-29T10:38:07.000Z | 2021-12-29T10:38:07.000Z | #include "LocationNumericAttribute.hpp"
namespace templ {
namespace symbols {
namespace object_variables {
LocationNumericAttribute::LocationNumericAttribute(const constants::Location::Ptr& location,
const owlapi::model::IRI& numericAttribute,
int32_t minInclusive,
int32_t maxInclusive)
: ... | 30.510204 | 97 | 0.683612 | tomcreutz |
194af4fe4cdf8d31fdb8fc0fc27ec3fbe7274ad3 | 10,038 | cpp | C++ | src/test/library/utils.cpp | flubbe/swr | 2f09acb9f27a8d5345aaeb6f229f74693a24fcdd | [
"MIT"
] | 1 | 2022-02-15T21:00:31.000Z | 2022-02-15T21:00:31.000Z | src/test/library/utils.cpp | flubbe/swr | 2f09acb9f27a8d5345aaeb6f229f74693a24fcdd | [
"MIT"
] | null | null | null | src/test/library/utils.cpp | flubbe/swr | 2f09acb9f27a8d5345aaeb6f229f74693a24fcdd | [
"MIT"
] | null | null | null | /**
* swr - a software rasterizer
*
* test (some) utility functions.
*
* \author Felix Lubbe
* \copyright Copyright (c) 2021
* \license Distributed under the MIT software license (see accompanying LICENSE.txt).
*/
/* boost test framework. */
#define BOOST_TEST_MAIN
#define BOOST_TEST_ALTERNATIVE_INIT_API
#de... | 33.019737 | 159 | 0.625423 | flubbe |
194bc42f62f523093b13e906c185cb542a8b01ed | 6,625 | cpp | C++ | contracts/tests/test_reviewer.cpp | rocketbc/wps-backend | 053fb79b86d9909fa160b84a4ce7f234a4932fed | [
"MIT"
] | 17 | 2018-07-26T07:49:00.000Z | 2019-07-26T14:21:32.000Z | contracts/tests/test_reviewer.cpp | rocketbc/wps-backend | 053fb79b86d9909fa160b84a4ce7f234a4932fed | [
"MIT"
] | 4 | 2018-08-10T07:05:19.000Z | 2018-08-28T19:33:58.000Z | contracts/tests/test_reviewer.cpp | rocketbc/wps-backend | 053fb79b86d9909fa160b84a4ce7f234a4932fed | [
"MIT"
] | 10 | 2018-07-24T13:41:16.000Z | 2019-07-30T05:46:22.000Z | #include "test.hpp"
class reviewer_tester : public tester {
public:
reviewer_tester() {
create_accounts( {N(eosio.token), N(eosio.wps), N(eosio.saving), N(committee1), N(committee2), N(reviewer1), N(reviewer2)} );
produce_block();
base_tester::push_action(config::system_account_name, N(setpriv), config... | 32.317073 | 137 | 0.626264 | rocketbc |
194cc3c9a161995e94f1282bbc91f6bfa807abd8 | 1,362 | cpp | C++ | VRMultiplayPlugin/Source/VRMultiplayPlugin/Private/SyncMotionControllerComponent.cpp | realityreflection/VRMultiplay | 69b4affff493effde188ccf35b7f3f2a97066fd1 | [
"MIT"
] | 5 | 2018-04-06T02:24:37.000Z | 2020-07-01T00:38:08.000Z | VRMultiplayPlugin/Source/VRMultiplayPlugin/Private/SyncMotionControllerComponent.cpp | realityreflection/VRMultiplay | 69b4affff493effde188ccf35b7f3f2a97066fd1 | [
"MIT"
] | null | null | null | VRMultiplayPlugin/Source/VRMultiplayPlugin/Private/SyncMotionControllerComponent.cpp | realityreflection/VRMultiplay | 69b4affff493effde188ccf35b7f3f2a97066fd1 | [
"MIT"
] | 4 | 2017-05-08T02:47:53.000Z | 2020-07-01T00:38:16.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "VRMultiplayPlugin.h"
#include "SyncMotionControllerComponent.h"
#include "UnrealNetwork.h"
USyncMotionControllerComponent::USyncMotionControllerComponent()
{
bReplicates = true;
}
void USyncMotionControllerComponent::TickCompon... | 29.608696 | 135 | 0.82746 | realityreflection |
194e25aad168bd288d68d556fb113a0e66a25332 | 16,613 | cpp | C++ | hyperkmp.cpp | stoianmihail/HyperKMP | 9deb98e9d004026c4d0c72b3d3441560597b5fc6 | [
"MIT"
] | 1 | 2020-12-21T10:38:55.000Z | 2020-12-21T10:38:55.000Z | hyperkmp.cpp | stoianmihail/HyperKMP | 9deb98e9d004026c4d0c72b3d3441560597b5fc6 | [
"MIT"
] | null | null | null | hyperkmp.cpp | stoianmihail/HyperKMP | 9deb98e9d004026c4d0c72b3d3441560597b5fc6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <cstring>
#include <cassert>
#include <cctype>
#include <vector>
#include <algorithm>
#include <unordered_map>
#include <set>
#define MAX_N 2000000
#define MAX_COUNT 1000
using namespace std;
unsigned n, m, matchCount;
char str[MAX_N + 5], pattern[MAX_N + 5];
unsigned ... | 26.5808 | 128 | 0.532053 | stoianmihail |
19531b3e7457b091bfb5d77b0d785377709c55c1 | 960 | cpp | C++ | src/strategy/generic/ThreatStrategy.cpp | htc16/mod-playerbots | 2307e3f980035a244bfb4fedefda5bc55903d470 | [
"MIT"
] | 12 | 2022-03-23T05:14:53.000Z | 2022-03-30T12:12:58.000Z | src/strategy/generic/ThreatStrategy.cpp | htc16/mod-playerbots | 2307e3f980035a244bfb4fedefda5bc55903d470 | [
"MIT"
] | 24 | 2022-03-23T13:56:37.000Z | 2022-03-31T18:23:32.000Z | src/strategy/generic/ThreatStrategy.cpp | htc16/mod-playerbots | 2307e3f980035a244bfb4fedefda5bc55903d470 | [
"MIT"
] | 3 | 2022-03-24T21:47:10.000Z | 2022-03-31T06:21:46.000Z | /*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
*/
#include "ThreatStrategy.h"
#include "GenericSpellActions.h"
#include "Playerbots.h"
float ThreatMultipli... | 27.428571 | 205 | 0.659375 | htc16 |
19563852c2a86069718e0041f2fa46e0b520a65e | 6,990 | cpp | C++ | ext/include/osgEarthFeatures/MeshClamper.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | 6 | 2015-09-26T15:33:41.000Z | 2021-06-13T13:21:50.000Z | ext/include/osgEarthFeatures/MeshClamper.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | null | null | null | ext/include/osgEarthFeatures/MeshClamper.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | 5 | 2015-05-04T09:02:23.000Z | 2019-06-17T11:34:12.000Z | /* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2013 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundat... | 33.605769 | 96 | 0.490558 | energonQuest |
1957f07fb4ed07ec04eac01ae8519ce9ca4386a1 | 152 | cpp | C++ | Nebula/src/Nebula/imgui/ImGui_Build.cpp | GalacticKittenSS/Nebula | 1620a1dab815d6721b1ae1e3e390ae16313309da | [
"Apache-2.0"
] | 3 | 2021-11-21T21:05:44.000Z | 2021-12-27T20:44:08.000Z | Nebula/src/Nebula/imgui/ImGui_Build.cpp | GalacticKittenSS/Nebula | 1620a1dab815d6721b1ae1e3e390ae16313309da | [
"Apache-2.0"
] | null | null | null | Nebula/src/Nebula/imgui/ImGui_Build.cpp | GalacticKittenSS/Nebula | 1620a1dab815d6721b1ae1e3e390ae16313309da | [
"Apache-2.0"
] | null | null | null | #include "nbpch.h"
#define IMGUI_IMPL_OPENGL_LOADER_GLAD
#include <imgui/platform/imgui_impl_opengl3.cpp>
#include <imgui/platform/imgui_impl_glfw.cpp> | 30.4 | 48 | 0.835526 | GalacticKittenSS |
1960ee51fdd56859777d21c7e1931e84fbede57a | 22,607 | cpp | C++ | GPUPerfStudio/Server/Common/misc.cpp | davidlee80/amd-gpuperfstudio-dx12 | 4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe | [
"MIT"
] | 1 | 2017-03-25T02:09:15.000Z | 2017-03-25T02:09:15.000Z | GPUPerfStudio/Server/Common/misc.cpp | davidlee80/amd-gpuperfstudio-dx12 | 4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe | [
"MIT"
] | null | null | null | GPUPerfStudio/Server/Common/misc.cpp | davidlee80/amd-gpuperfstudio-dx12 | 4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe | [
"MIT"
] | 3 | 2017-03-15T03:35:13.000Z | 2022-02-23T06:29:02.000Z | //==============================================================================
// Copyright (c) 2013-2015 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief TODO add documentation
//==============================================================================... | 26.471897 | 434 | 0.535852 | davidlee80 |
196d7bc677306104148b74a8953c2533be5ba9a6 | 1,473 | cpp | C++ | src/gfx/renderHelper.cpp | ollelogdahl/roguelike | 0332ef4444428b93f79af7e5c17d94e7b96fdff2 | [
"MIT"
] | 1 | 2020-12-18T02:59:38.000Z | 2020-12-18T02:59:38.000Z | src/gfx/renderHelper.cpp | ollelogdahl/roguelike | 0332ef4444428b93f79af7e5c17d94e7b96fdff2 | [
"MIT"
] | null | null | null | src/gfx/renderHelper.cpp | ollelogdahl/roguelike | 0332ef4444428b93f79af7e5c17d94e7b96fdff2 | [
"MIT"
] | null | null | null | #include "renderHelper.h"
#include "resources/textureAtlas.h"
namespace RenderHelper {
SDL_Renderer *renderer = nullptr;
void setup(SDL_Renderer *rend) {
renderer = rend;
}
void renderText(std::string text, int scale, Vec2 pos) {
int charCounter = 0;
int line = 0;
for (auto c : text) {
if(c == '\n') {
... | 22.661538 | 80 | 0.62797 | ollelogdahl |
197222c37c800dde09deba6fba9758f37a096c80 | 2,258 | cpp | C++ | PRNGCL.cpp | vadimdi/PRNGCL | e935c9139066a5384ef150de4a54716fc1c24b7b | [
"BSD-2-Clause"
] | 6 | 2015-06-29T16:59:17.000Z | 2017-12-14T13:50:36.000Z | PRNGCL.cpp | vadimdi/PRNGCL | e935c9139066a5384ef150de4a54716fc1c24b7b | [
"BSD-2-Clause"
] | null | null | null | PRNGCL.cpp | vadimdi/PRNGCL | e935c9139066a5384ef150de4a54716fc1c24b7b | [
"BSD-2-Clause"
] | 3 | 2015-03-26T15:08:52.000Z | 2020-01-07T06:11:29.000Z | /******************************************************************************
* @file PRNGCL.cpp
* @author Vadim Demchik <vadimdi@yahoo.com>
* @version 1.1.2
*
* @brief [PRNGCL library]
* Library of pseudo-random number generators for Monte Carlo simulations on GPUs
*
*
* @section CREDIT... | 39.614035 | 92 | 0.682905 | vadimdi |
198d3738e91005ba69798f131605251d499e8faf | 5,057 | cpp | C++ | arm/o.le-v7-g/.moc/moc_EventViewer.cpp | tbeemster/bb10-quickcalendar | 8760839634bd192993ae8f952041d9e2b6042090 | [
"Apache-2.0"
] | null | null | null | arm/o.le-v7-g/.moc/moc_EventViewer.cpp | tbeemster/bb10-quickcalendar | 8760839634bd192993ae8f952041d9e2b6042090 | [
"Apache-2.0"
] | null | null | null | arm/o.le-v7-g/.moc/moc_EventViewer.cpp | tbeemster/bb10-quickcalendar | 8760839634bd192993ae8f952041d9e2b6042090 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'EventViewer.hpp'
**
** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.6)
**
** WARNING! All changes made in this file will be lost!
*******************************************************... | 29.747059 | 112 | 0.609057 | tbeemster |
1997d67f56cb8dbf4d73496293cd9eec23e4599f | 1,458 | hpp | C++ | include/drawtypes/labellist.hpp | DRKblade/polybar | 61f3e1d138cc43ceccf86557f60349b468f2d3f0 | [
"MIT"
] | 11 | 2020-12-22T04:47:32.000Z | 2020-12-28T19:25:16.000Z | include/drawtypes/labellist.hpp | DRKblade/polybar | 61f3e1d138cc43ceccf86557f60349b468f2d3f0 | [
"MIT"
] | null | null | null | include/drawtypes/labellist.hpp | DRKblade/polybar | 61f3e1d138cc43ceccf86557f60349b468f2d3f0 | [
"MIT"
] | 1 | 2020-12-22T22:06:50.000Z | 2020-12-22T22:06:50.000Z | #pragma once
#include "common.hpp"
#include "components/config.hpp"
#include "drawtypes/label.hpp"
#include "drawtypes/resources/gradient.hpp"
#include "utils/mixins.hpp"
POLYBAR_NS
namespace drawtypes {
class labellist : public non_copyable_mixin<labellist> {
public:
labellist() {}
explicit labellist(v... | 29.16 | 84 | 0.711248 | DRKblade |
199b2dc4bfb76d833904fa4e79d909ee8e775522 | 950 | hpp | C++ | src/tests/test.hpp | degarashi/lubee | 0eb3bcb54d4dd8a9de5b47917926bd7432c4ec12 | [
"MIT"
] | null | null | null | src/tests/test.hpp | degarashi/lubee | 0eb3bcb54d4dd8a9de5b47917926bd7432c4ec12 | [
"MIT"
] | null | null | null | src/tests/test.hpp | degarashi/lubee | 0eb3bcb54d4dd8a9de5b47917926bd7432c4ec12 | [
"MIT"
] | null | null | null | #pragma once
#include "../random.hpp"
#include "../check_serialization.hpp"
#include "../output.hpp"
#include <fstream>
#include <chrono>
namespace lubee {
namespace test {
class Random : public ::testing::Test {
private:
using seed_t = RandomMT::result_type;
seed_t _seed;
RandomMT _mt;
public:
... | 21.590909 | 75 | 0.574737 | degarashi |
30aa6752bc530a6ed6aff7948bbbf7b84674163a | 9,106 | h++ | C++ | include/ogonek/detail/ranges.h++ | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | 25 | 2016-10-21T12:37:23.000Z | 2021-02-22T05:46:46.000Z | include/ogonek/detail/ranges.h++ | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | null | null | null | include/ogonek/detail/ranges.h++ | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | 4 | 2016-09-05T10:23:18.000Z | 2020-07-09T19:37:37.000Z | // Ogonek
//
// Written in 2012-2013 by Martinho Fernandes <martinho.fernandes@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related
// and neighboring rights to this software to the public domain worldwide. This software is
// distributed without any warranty.
//
// ... | 43.361905 | 140 | 0.658137 | libogonek |
30abe690bb2754e67840d617f23965ef9aaa8c5e | 1,324 | hpp | C++ | di/detail/injection_source.hpp | sal-vage/d-injection | 85289edba0f7f91ef7ebccb8b3ab7f24d89ac79f | [
"BSL-1.0"
] | null | null | null | di/detail/injection_source.hpp | sal-vage/d-injection | 85289edba0f7f91ef7ebccb8b3ab7f24d89ac79f | [
"BSL-1.0"
] | 6 | 2016-01-24T18:07:34.000Z | 2016-01-24T18:10:52.000Z | di/detail/injection_source.hpp | sal-vage/d-injection | 85289edba0f7f91ef7ebccb8b3ab7f24d89ac79f | [
"BSL-1.0"
] | null | null | null | // Copyright Adam Lach 2012
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef DI_INJECTION_SOURCE_HPP
#define DI_INJECTION_SOURCE_HPP
#include <di/injection_types.hpp>
namespace di {... | 21.704918 | 86 | 0.712236 | sal-vage |
30b41542c564791a331cbfc2cc52267379fa1eec | 2,431 | cpp | C++ | examples/08_error_handling.cpp | DarrenLevine/cppserdes | 5078cc111f1eda67623d5a4e74a7e703ca19f3a2 | [
"MIT"
] | 77 | 2021-07-04T03:00:08.000Z | 2022-03-14T14:41:14.000Z | examples/08_error_handling.cpp | DarrenLevine/cppserdes | 5078cc111f1eda67623d5a4e74a7e703ca19f3a2 | [
"MIT"
] | null | null | null | examples/08_error_handling.cpp | DarrenLevine/cppserdes | 5078cc111f1eda67623d5a4e74a7e703ca19f3a2 | [
"MIT"
] | null | null | null | /// @example 08_error_handling.cpp
/// @brief This example demonstrates how several different errors can be caught
/// durring runtime. Both user defined errors, and serdes related errors, like
/// overflows.
#include "../include/serdes.h"
#include "../include/bitprint.h"
#include "../test/notify_when_dynamic_allocati... | 39.209677 | 113 | 0.678322 | DarrenLevine |
30b65a230b4f90ce864fb7962589c68a21f7dfa9 | 806 | cpp | C++ | Solved/Sources/10451/Source.cpp | Sylvia3259/baekjoon-online-judge | 08539af22a252352daaa06464df22678d1310a6f | [
"MIT"
] | null | null | null | Solved/Sources/10451/Source.cpp | Sylvia3259/baekjoon-online-judge | 08539af22a252352daaa06464df22678d1310a6f | [
"MIT"
] | null | null | null | Solved/Sources/10451/Source.cpp | Sylvia3259/baekjoon-online-judge | 08539af22a252352daaa06464df22678d1310a6f | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <queue>
#include <vector>
using namespace std;
bool adj[1001][1001];
bool checked[1001];
void dfs(int node, int count) {
checked[node] = true;
for (int i = 1; i <= count; i++)
if (adj[node][i] && !checked[i])
dfs(i, count);
}
int main() {
ios_base::sync_with... | 15.207547 | 41 | 0.519851 | Sylvia3259 |
30ba677af803f3890d90ca26fc4e570d40079284 | 1,065 | cpp | C++ | cpp11lib/cpp11lib/lib/Logger.cpp | pebble8888/cpp11lib | 9e4c09d9b6659aeff30e7554a53036bf6918811e | [
"MIT"
] | null | null | null | cpp11lib/cpp11lib/lib/Logger.cpp | pebble8888/cpp11lib | 9e4c09d9b6659aeff30e7554a53036bf6918811e | [
"MIT"
] | 1 | 2015-09-07T04:36:55.000Z | 2015-09-07T04:36:55.000Z | cpp11lib/cpp11lib/lib/Logger.cpp | pebble8888/cpp11lib | 9e4c09d9b6659aeff30e7554a53036bf6918811e | [
"MIT"
] | null | null | null | //
// Logger.cpp
// cpp11lib
//
// Created by pebble8888 on 2015/09/04.
// Copyright (c) 2015 pebble8888. All rights reserved.
//
#include "Logger.h"
#include <stdarg.h>
#include <stdio.h>
#include <chrono>
#if defined(DEBUG)
using namespace std::chrono;
static void PrintDateTimeWithMilliSeconds(void)
{
con... | 22.1875 | 61 | 0.595305 | pebble8888 |
30bc1243ebc5bd7d743f1b0f3d0465450f0c4961 | 1,093 | hpp | C++ | src/Math.hpp | eXpl0it3r/Schiffbruch | a5b6190978f14620e02ff6ed559dbc2e67956b8b | [
"CC-BY-4.0"
] | 55 | 2015-01-14T11:34:13.000Z | 2022-03-28T19:19:58.000Z | src/Math.hpp | eXpl0it3r/Schiffbruch | a5b6190978f14620e02ff6ed559dbc2e67956b8b | [
"CC-BY-4.0"
] | 12 | 2017-06-16T22:15:39.000Z | 2021-03-20T10:31:10.000Z | src/Math.hpp | eXpl0it3r/Schiffbruch | a5b6190978f14620e02ff6ed559dbc2e67956b8b | [
"CC-BY-4.0"
] | 10 | 2017-08-28T10:01:23.000Z | 2021-12-25T16:50:38.000Z | #pragma once
#include "headers.hpp"
#include "types.hpp"
#include "extern.hpp"
namespace Math
{
void AbspannCalc(); // Kalkuliert die Koordinaten für den Abspann
void CalcGuyKoor(); // Berechnet die neuen Koordinaten der Spielfigur
void CalcKoor(); // Bildschirmkoordinaten der Kacheln berechnnen;
void... | 52.047619 | 121 | 0.740165 | eXpl0it3r |
30bf31bd7044df23c5df62a90f525bf5d12a189b | 776 | cpp | C++ | src/construct/statement/expr_wrapper_statement.cpp | ionlang/ionlang | 839a5fc3aa0b575dc43e61c6e833e90e00dc922d | [
"Unlicense"
] | 13 | 2020-08-20T15:01:10.000Z | 2021-11-25T05:53:01.000Z | src/construct/statement/expr_wrapper_statement.cpp | ionlang/ion | 839a5fc3aa0b575dc43e61c6e833e90e00dc922d | [
"Unlicense"
] | 3 | 2020-08-10T18:55:52.000Z | 2021-10-11T06:33:07.000Z | src/construct/statement/expr_wrapper_statement.cpp | ionlang/ionlang | 839a5fc3aa0b575dc43e61c6e833e90e00dc922d | [
"Unlicense"
] | 2 | 2020-07-20T19:20:48.000Z | 2020-10-12T15:25:41.000Z | #include <ionlang/passes/pass.h>
namespace ionlang {
std::shared_ptr<ExprWrapperStmt> ExprWrapperStmt::make(
const std::shared_ptr<Expression<>>& expression
) noexcept {
std::shared_ptr<ExprWrapperStmt> result =
std::make_shared<ExprWrapperStmt>(expression);
expression->set... | 26.758621 | 80 | 0.658505 | ionlang |
30c078f6195821a80f48cd88c2fe9f9ba3996b4e | 52 | hpp | C++ | src/boost_units_physical_dimensions_time.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_units_physical_dimensions_time.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_units_physical_dimensions_time.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/units/physical_dimensions/time.hpp>
| 26 | 51 | 0.826923 | miathedev |
30c417988410698a440fb0f3b87e93a223fef8b7 | 1,095 | cpp | C++ | stack/growable_stack.cpp | Divyansh1315/data-structures-and-algorithms-code | 46b0bec41f022b60be4798227a5f5fc86dccee1a | [
"MIT"
] | 1 | 2022-02-09T14:28:28.000Z | 2022-02-09T14:28:28.000Z | stack/growable_stack.cpp | Divyansh1315/data-structures-and-algorithms-code | 46b0bec41f022b60be4798227a5f5fc86dccee1a | [
"MIT"
] | 1 | 2022-02-02T04:58:10.000Z | 2022-02-02T04:58:10.000Z | stack/growable_stack.cpp | Divyansh1315/data-structures-and-algorithms-code | 46b0bec41f022b60be4798227a5f5fc86dccee1a | [
"MIT"
] | 1 | 2022-02-02T00:23:59.000Z | 2022-02-02T00:23:59.000Z | #include <bits/stdc++.h>
using namespace std;
// initial max capacity of stack
#define MAX 4
int top = -1;
int length = 0;
// function to create a new stack
int* create_new_stack(int *a) {
int *temp_stack = new int(length + MAX);
// copying element of previous stack in the new stack
for(int i = 0; i < length;... | 16.846154 | 55 | 0.561644 | Divyansh1315 |
30c5de341c6c4df7d0e7f721aab2e6aab2f6e159 | 2,994 | hpp | C++ | BindCPU/BindCPU.hpp | wuzhl2018/samples | 57b974d45e9acfd4278d00adb24d3c5d07e531b2 | [
"MIT"
] | 80 | 2016-05-05T12:50:27.000Z | 2020-02-09T07:58:04.000Z | BindCPU/BindCPU.hpp | wuzhl2018/samples | 57b974d45e9acfd4278d00adb24d3c5d07e531b2 | [
"MIT"
] | 2 | 2017-07-11T06:46:30.000Z | 2018-02-13T02:32:49.000Z | BindCPU/BindCPU.hpp | wuzhl2018/samples | 57b974d45e9acfd4278d00adb24d3c5d07e531b2 | [
"MIT"
] | 42 | 2020-03-24T14:29:17.000Z | 2022-03-07T05:54:50.000Z | #ifndef _BINDCPU_H
#define _BINDCPU_H
#include <unistd.h>
#ifndef __USE_GNU
#define __USE_GNU // 为了使用SET_SET()等宏定义,但unistd.h里面好像已经定义了
#endif
#include <sched.h>
#include <pthread.h>
#include <stdio.h>
#include <vector>
class BindCPU
{
public:
static unsigned int systemCPUNum()
{
// _SC_NPROCESSORS_CO... | 23.390625 | 93 | 0.489312 | wuzhl2018 |
30c87bcdf96c826dd03768c81d9336331efbcc81 | 4,629 | cpp | C++ | src/Sprite.cpp | M4T1A5/IndieSpeedRun2013 | 75b1adc4716c2e32f308289cce51a78a10681697 | [
"Zlib"
] | null | null | null | src/Sprite.cpp | M4T1A5/IndieSpeedRun2013 | 75b1adc4716c2e32f308289cce51a78a10681697 | [
"Zlib"
] | null | null | null | src/Sprite.cpp | M4T1A5/IndieSpeedRun2013 | 75b1adc4716c2e32f308289cce51a78a10681697 | [
"Zlib"
] | null | null | null | #include <Sprite.h>
#include <iostream>
#define LAYER_COUNT 300
namespace EGEMotor
{
using namespace EGEMath;
Texture::Texture()
: m_texture(NULL)
{}
Texture::Texture(std::string TextureName)
: m_texture(NULL)
{
loadTexture(TextureName);
}
const Vector Texture::getTextureSize()
{
return m_texture->getSize();
}
Tex... | 22.362319 | 105 | 0.70836 | M4T1A5 |
30d197ec30a14171b890baf2bbae0971d2e18049 | 79,027 | hpp | C++ | src/signal/signal.hpp | VzdornovNA88/signaler | c24f1834c770c6b3c23015c730050f36251e5650 | [
"MIT"
] | null | null | null | src/signal/signal.hpp | VzdornovNA88/signaler | c24f1834c770c6b3c23015c730050f36251e5650 | [
"MIT"
] | null | null | null | src/signal/signal.hpp | VzdornovNA88/signaler | c24f1834c770c6b3c23015c730050f36251e5650 | [
"MIT"
] | null | null | null | /**
******************************************************************************
* @file signal.hpp
* @brief Simple signal-object pattern
* @author Nik A. Vzdornov (VzdornovNA88@yandex.ru)
* @date 10.09.19
* @copyright
*
* Copyright (c) 2021 VzdornovNA88
*
* Perm... | 126.4432 | 188 | 0.153062 | VzdornovNA88 |
30d217cef25fac4bbb72079416d75a7d85f0d8f6 | 315 | cpp | C++ | Striver SDE Sheet/Day - 5 (Linked List)/Delete Node In A Linked List.cpp | HariAcidReign/Striver-SDE-Solutions | 80757b212abe479f3975b890398a8d877ebfd41e | [
"MIT"
] | 25 | 2021-08-17T04:04:41.000Z | 2022-03-16T07:43:30.000Z | Striver SDE Sheet/Day - 5 (Linked List)/Delete Node In A Linked List.cpp | hashwanthalla/Striver-Sheets-Resources | 80757b212abe479f3975b890398a8d877ebfd41e | [
"MIT"
] | null | null | null | Striver SDE Sheet/Day - 5 (Linked List)/Delete Node In A Linked List.cpp | hashwanthalla/Striver-Sheets-Resources | 80757b212abe479f3975b890398a8d877ebfd41e | [
"MIT"
] | 8 | 2021-08-18T02:02:23.000Z | 2022-02-11T06:05:07.000Z | //Sid's solution
class Solution {
public:
void deleteNode(ListNode* node) {
ListNode *cur = node;
ListNode *prev;
while(cur->next != NULL)
{
prev = cur;
cur->val = cur->next->val;
cur = cur->next;
}
prev->next = NULL;
}
};
| 19.6875 | 38 | 0.460317 | HariAcidReign |
30d2a8eca1d1f37d39cd044014eaba4ff2fc19b1 | 14,251 | cpp | C++ | src/finger_joints_service.cpp | CentroEPiaggio/finger_fk | 57097fac2938af5667e31cbec6e9c9ba2d6406da | [
"BSD-3-Clause"
] | null | null | null | src/finger_joints_service.cpp | CentroEPiaggio/finger_fk | 57097fac2938af5667e31cbec6e9c9ba2d6406da | [
"BSD-3-Clause"
] | 1 | 2019-02-07T15:37:34.000Z | 2019-02-07T15:37:34.000Z | src/finger_joints_service.cpp | CentroEPiaggio/finger_fk | 57097fac2938af5667e31cbec6e9c9ba2d6406da | [
"BSD-3-Clause"
] | null | null | null | /**
finger_joints_service.cpp
Purpose: a ROS node service to provide the joint states of a finger from a root link
to a tip link
@authors Pollayil George Jose, Pollayil Mathew Jose
*/
//BASIC INCLUDES
#include <sstream>
#include <string>
#include <exception>
#include <math.h>
// ROS INCL... | 45.676282 | 111 | 0.734755 | CentroEPiaggio |
30d4015a222daa7ef7d478bae53cae41773f6dbe | 17,830 | hh | C++ | src/libmess/dynamic.hh | dsjense/MESS | b54c161327e2e35a40bb3b71555bdc2eef7cd7f9 | [
"Apache-2.0"
] | 9 | 2020-03-03T07:34:35.000Z | 2021-12-08T13:12:16.000Z | src/libmess/dynamic.hh | dsjense/MESS | b54c161327e2e35a40bb3b71555bdc2eef7cd7f9 | [
"Apache-2.0"
] | 1 | 2022-03-23T10:57:25.000Z | 2022-03-31T12:30:44.000Z | src/libmess/dynamic.hh | dsjense/MESS | b54c161327e2e35a40bb3b71555bdc2eef7cd7f9 | [
"Apache-2.0"
] | 9 | 2019-12-18T19:59:13.000Z | 2022-01-31T01:49:43.000Z | /*
Chemical Kinetics and Dynamics Library
Copyright (C) 2008-2013, Yuri Georgievski <ygeorgi@anl.gov>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; e... | 28.99187 | 110 | 0.5576 | dsjense |
30d7c645f823e0e5917b4dde28d846e4dd424ac8 | 200 | cpp | C++ | physics/test/Physics1dBase_test.cpp | athelaf/nextsimdg | 557e45db6af2cc07d00b3228c2d46f87567fe755 | [
"Apache-2.0"
] | null | null | null | physics/test/Physics1dBase_test.cpp | athelaf/nextsimdg | 557e45db6af2cc07d00b3228c2d46f87567fe755 | [
"Apache-2.0"
] | null | null | null | physics/test/Physics1dBase_test.cpp | athelaf/nextsimdg | 557e45db6af2cc07d00b3228c2d46f87567fe755 | [
"Apache-2.0"
] | null | null | null | /*!
* @file Physics1dBase_test.cpp
* @date Sep 9, 2021
* @author Tim Spain <timothy.spain@nersc.no>
*/
#include "../src/include/Physics1dBase.hpp"
namespace Nextsim {
} /* namespace Nextsim */
| 16.666667 | 45 | 0.675 | athelaf |
30db49b55f7b2d28967a86f265f2e12607ef6da6 | 626 | hpp | C++ | src/core/debug.hpp | xhighway999/xhfr | 532864ed0d0531fbd8af38d4b0cf206dc5d0a138 | [
"MIT"
] | 2 | 2021-03-23T05:21:34.000Z | 2021-07-27T08:28:08.000Z | src/core/debug.hpp | xhighway999/xhfr | 532864ed0d0531fbd8af38d4b0cf206dc5d0a138 | [
"MIT"
] | null | null | null | src/core/debug.hpp | xhighway999/xhfr | 532864ed0d0531fbd8af38d4b0cf206dc5d0a138 | [
"MIT"
] | 1 | 2021-05-31T12:01:03.000Z | 2021-05-31T12:01:03.000Z | #pragma once
#include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/spdlog.h"
#define XHFR_ERROR(...) \
SPDLOG_LOGGER_CALL(xhfr::debug::logger, spdlog::level::err, __VA_ARGS__)
#define XHFR_WARN(...) \
SPDLOG_LOGGER_CALL(xhfr::debug::logger, spdlog::level::warn, __VA_ARGS__)
#define XHFR_INFO(...) \
SPDL... | 25.04 | 76 | 0.720447 | xhighway999 |
30dcaf8b622b588891595f964f958defcf795f7b | 97 | cpp | C++ | Crunch/src/AudioSystem.cpp | BionicFelps/Crunch | 5506e3d6b32bb8cf346232754955e015c1df50fa | [
"Zlib"
] | null | null | null | Crunch/src/AudioSystem.cpp | BionicFelps/Crunch | 5506e3d6b32bb8cf346232754955e015c1df50fa | [
"Zlib"
] | null | null | null | Crunch/src/AudioSystem.cpp | BionicFelps/Crunch | 5506e3d6b32bb8cf346232754955e015c1df50fa | [
"Zlib"
] | null | null | null | #include "AudioSystem.hpp"
namespace crunch
{
AudioSystem::AudioSystem()
{
}
}//namespace crunch
| 12.125 | 26 | 0.752577 | BionicFelps |
30dcba65b8c6cb159ee348c2f3840b6fb9fa797d | 2,339 | cpp | C++ | Building.cpp | FroxCode/Portfolio-MOSH | 76748ccc1e1ec05cc0803ca0819c4ad6be99cab9 | [
"MIT"
] | null | null | null | Building.cpp | FroxCode/Portfolio-MOSH | 76748ccc1e1ec05cc0803ca0819c4ad6be99cab9 | [
"MIT"
] | null | null | null | Building.cpp | FroxCode/Portfolio-MOSH | 76748ccc1e1ec05cc0803ca0819c4ad6be99cab9 | [
"MIT"
] | null | null | null | //Created by Connor Maguire, Dale Sinnott, Emre Ozdemir
#include "Building.h"
Building::Building(){}
Building::~Building(){}
// Constant for PI
const double PI = 4.0 * atan(1.0);
// Rotate to point for a tower, bool indicates alignment with point.
std::pair<int, bool> rotateToPoint(0, true);
Building::Building(sf::Ve... | 33.414286 | 101 | 0.719538 | FroxCode |
30e0f5e078465a7baa70ffdcc3f68fe298b5f6d3 | 3,197 | hpp | C++ | src/gadget-model2.hpp | nileshrathi/libsnark-tutorial | 61a570683381c2154ed726ca6660cd2a1819ecd2 | [
"MIT"
] | null | null | null | src/gadget-model2.hpp | nileshrathi/libsnark-tutorial | 61a570683381c2154ed726ca6660cd2a1819ecd2 | [
"MIT"
] | null | null | null | src/gadget-model2.hpp | nileshrathi/libsnark-tutorial | 61a570683381c2154ed726ca6660cd2a1819ecd2 | [
"MIT"
] | null | null | null | #include "libsnark/gadgetlib1/gadget.hpp"
#include <libsnark/gadgetlib1/gadgets/hashes/sha256/sha256_gadget.hpp>
using namespace libsnark;
using namespace std;
template<typename FieldT>
/*A gadget with the following specifications-
input- b(existing balances), x(amount to be spend), out(amouunt remaining), hx(ha... | 32.958763 | 165 | 0.704723 | nileshrathi |
30e35e53ef2c98dc8c9d6dae2cb80566aa697e06 | 1,338 | cpp | C++ | OpenCP/detailEnhancement.cpp | norishigefukushima/OpenCP | 63090131ec975e834f85b04e84ec29b2893845b2 | [
"BSD-3-Clause"
] | 137 | 2015-03-27T07:11:19.000Z | 2022-03-30T05:58:22.000Z | OpenCP/detailEnhancement.cpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 2 | 2016-05-18T06:33:16.000Z | 2016-07-11T17:39:17.000Z | OpenCP/detailEnhancement.cpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 43 | 2015-02-20T15:34:25.000Z | 2022-01-27T14:59:37.000Z | #include "detailEnhancement.hpp"
#include "recursiveBilateralFilter.hpp"
#include "bilateralFilter.hpp"
#include "guidedFilter.hpp"
using namespace std;
using namespace cv;
namespace cp
{
void detailEnhancementBox(InputArray src, OutputArray dest, const int r, const float boost)
{
const int d = 2 * r + 1;
Mat ... | 27.306122 | 148 | 0.704036 | norishigefukushima |
30f1967bd95567cf125ef8b768e4aae3066b19c7 | 4,246 | cpp | C++ | src/cpp/common.cpp | node-3d/opencl-raub | 7e905041cc097a8b94663585d5c6503fb2794a04 | [
"MIT"
] | null | null | null | src/cpp/common.cpp | node-3d/opencl-raub | 7e905041cc097a8b94663585d5c6503fb2794a04 | [
"MIT"
] | 1 | 2021-05-11T07:04:47.000Z | 2021-05-11T07:04:47.000Z | src/cpp/common.cpp | node-3d/opencl-raub | 7e905041cc097a8b94663585d5c6503fb2794a04 | [
"MIT"
] | null | null | null | #include "common.hpp"
namespace opencl {
void getPtrAndLen(Napi::Object obj, void** ptr, size_t *len) {
*ptr = nullptr;
int intSize = 0;
if (obj.IsTypedArray() || obj.IsArrayBuffer()) {
*ptr = getArrayData<uint8_t>(obj.Env(), obj, &intSize);
} else if (obj.IsBuffer()) {
*ptr = getBufferData<uint8_t>(obj.Env(... | 48.804598 | 107 | 0.786152 | node-3d |
30f8861b9e423a8513aa11a221091eb0e023e9a6 | 14,115 | cpp | C++ | SceneCore/SceneGraph/ResourceLoadExtern.cpp | MJYCo-Ltd/Map | 48ccc120a3c2cd3080fb046da72c7588b1faebc0 | [
"MIT"
] | 7 | 2021-11-25T02:12:09.000Z | 2022-03-20T12:48:18.000Z | SceneCore/SceneGraph/ResourceLoadExtern.cpp | MJYCo-Ltd/Map | 48ccc120a3c2cd3080fb046da72c7588b1faebc0 | [
"MIT"
] | 1 | 2022-03-25T20:47:21.000Z | 2022-03-29T02:02:44.000Z | SceneCore/SceneGraph/ResourceLoadExtern.cpp | MJYCo-Ltd/Map | 48ccc120a3c2cd3080fb046da72c7588b1faebc0 | [
"MIT"
] | 2 | 2021-12-07T06:22:47.000Z | 2021-12-30T05:54:04.000Z | #include <QImage>
#include <osgDB/FileNameUtils>
#include <osgEarth/Shaders>
#include <osgEarth/VirtualProgram>
#include <VersionMathCommon.h>
#include <osg/PolygonMode>
#include <osg/CullFace>
#include <osg/Depth>
#include <osg/BlendFunc>
#include <osgEarth/GLUtils>
#include <osg/PointSprite>
#include <osg/PolygonOffs... | 30.485961 | 124 | 0.574708 | MJYCo-Ltd |
30fb03ff3b3ed22898d4151eaa3eb41f19c3c3a4 | 2,248 | cpp | C++ | lib/os/memory_mapper.cpp | paulhuggett/pstore2 | a0c663d10a2e2713fdf39ecdae1f9c1e96041f5c | [
"Apache-2.0"
] | 11 | 2018-02-02T21:24:49.000Z | 2020-12-11T04:06:03.000Z | lib/os/memory_mapper.cpp | SNSystems/pstore | 74e9dd960245d6bfc125af03ed964d8ad660a62d | [
"Apache-2.0"
] | 63 | 2018-02-05T17:24:59.000Z | 2022-03-22T17:26:28.000Z | lib/os/memory_mapper.cpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 5 | 2020-01-13T22:47:11.000Z | 2021-05-14T09:31:15.000Z | //===- lib/os/memory_mapper.cpp -------------------------------------------===//
//* *
//* _ __ ___ ___ _ __ ___ ___ _ __ _ _ *
//* | '_ ` _ \ / _ \ '_ ` _ \ / _ \| '__| | | | *
//* | | | | | | __/ | | | | | (_) | | | |_| | *
//* |_| |_| |_|\___|_| |_| |_|\___/|_| ... | 36.258065 | 89 | 0.456851 | paulhuggett |
a500066003a29561a53d52060567466c9afb50a7 | 1,978 | cpp | C++ | FDFD_Maxwell_Refactor/FileHandler.cpp | 08jne01/Simple-Maxwell-FDFD | 7cb3d9fe0700b4c50983ba3d36e9faed3548ae8b | [
"MIT"
] | null | null | null | FDFD_Maxwell_Refactor/FileHandler.cpp | 08jne01/Simple-Maxwell-FDFD | 7cb3d9fe0700b4c50983ba3d36e9faed3548ae8b | [
"MIT"
] | null | null | null | FDFD_Maxwell_Refactor/FileHandler.cpp | 08jne01/Simple-Maxwell-FDFD | 7cb3d9fe0700b4c50983ba3d36e9faed3548ae8b | [
"MIT"
] | null | null | null | #include "FileHandler.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <SFML/Graphics.hpp>
FileHandler* FileHandler::global_instance = nullptr;
FileHandler::FileHandler(MainConfig& config):
m_config(config)
{
if (!global_instance)
{
global_instance = this;
}
else
{
std::cout << "Multiple... | 19.78 | 92 | 0.638018 | 08jne01 |
a502e5e2c76138fdfab4f0798bed4aafedc27db2 | 2,560 | cpp | C++ | gtsam/gnssNavigation/PseudorangeFactor_spp.cpp | weisongwen/GTSAM | f0ea0c60beac323551b778ae9723b8ffc972b608 | [
"BSD-3-Clause"
] | 5 | 2019-04-10T03:25:01.000Z | 2020-07-01T12:10:54.000Z | gtsam/gnssNavigation/PseudorangeFactor_spp.cpp | weisongwen/GTSAM | f0ea0c60beac323551b778ae9723b8ffc972b608 | [
"BSD-3-Clause"
] | null | null | null | gtsam/gnssNavigation/PseudorangeFactor_spp.cpp | weisongwen/GTSAM | f0ea0c60beac323551b778ae9723b8ffc972b608 | [
"BSD-3-Clause"
] | 3 | 2020-08-16T17:47:18.000Z | 2021-02-19T10:36:57.000Z | /**
* @file PseudorangeFactor.cpp
* @author Ryan Watson & Jason Gross
* @brief Implementation file for pseudorange factor
**/
#include "PseudorangeFactor_spp.h"
using namespace std;
namespace gtsam {
//***************************************************************************
Vector PseudorangeFactor_spp... | 38.208955 | 196 | 0.469531 | weisongwen |
a5070ad82720e1ef404a91e52fba2a3ed1c62d53 | 117 | cpp | C++ | chapter-2/2.19.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-2/2.19.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-2/2.19.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | // pointer object, stores a address of one object.
// reference not an object, bind to another object, a alias name.
| 39 | 65 | 0.74359 | zero4drift |
a5091630b8768c2de40db7f2e536e8bc024858d8 | 213 | cpp | C++ | src/QtControls/QtControls/src/ListWidgetIdItem.cpp | xylsxyls/xueyelingshuan | 61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9 | [
"MIT"
] | 3 | 2019-11-26T05:33:47.000Z | 2020-05-18T06:49:41.000Z | src/QtControls/QtControls/src/ListWidgetIdItem.cpp | xylsxyls/xueyelingshuan | 61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9 | [
"MIT"
] | null | null | null | src/QtControls/QtControls/src/ListWidgetIdItem.cpp | xylsxyls/xueyelingshuan | 61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9 | [
"MIT"
] | 1 | 2020-06-03T03:27:27.000Z | 2020-06-03T03:27:27.000Z | #include "ListWidgetIdItem.h"
ListWidgetIdItem::ListWidgetIdItem(QListWidget* view)
{
}
void ListWidgetIdItem::setId(qint64 id)
{
m_id = id;
}
qint64 ListWidgetIdItem::getId()
{
return m_id;
} | 13.3125 | 54 | 0.690141 | xylsxyls |
a50be1abedf8860c940125888f6359fcca0a4029 | 17,139 | cc | C++ | mkFit/MkFitter.cc | cerati/mkFit | ba37025247ff72c8edd2baea02b5b4ac335bdede | [
"Apache-2.0"
] | 10 | 2019-07-25T21:15:50.000Z | 2022-02-01T11:16:00.000Z | mkFit/MkFitter.cc | osschar/mkFit | e08198918b0baa986501f315519080e97b854816 | [
"Intel"
] | 120 | 2019-08-02T16:14:35.000Z | 2022-01-24T22:15:24.000Z | mkFit/MkFitter.cc | osschar/mkFit | e08198918b0baa986501f315519080e97b854816 | [
"Intel"
] | 11 | 2019-07-22T12:48:48.000Z | 2021-09-12T15:44:23.000Z | #include "MkFitter.h"
#include "KalmanUtilsMPlex.h"
#include "ConformalUtilsMPlex.h"
#include "MatriplexPackers.h"
//#define DEBUG
#include "Debug.h"
#include <sstream>
namespace mkfit {
void MkFitter::CheckAlignment()
{
printf("MkFitter alignment check:\n");
Matriplex::align_check(" Err[0] =", &Err[0].fArr... | 30.936823 | 137 | 0.568295 | cerati |
a50cc30099630623d825a9856fc8917d2ab93139 | 1,091 | hpp | C++ | graph/other/BipartiteGraph.hpp | shiomusubi496/library | 907f72eb6ee4ac6ef617bb359693588167f779e7 | [
"MIT"
] | 3 | 2021-11-04T08:45:12.000Z | 2021-11-29T08:44:26.000Z | graph/other/BipartiteGraph.hpp | shiomusubi496/library | 907f72eb6ee4ac6ef617bb359693588167f779e7 | [
"MIT"
] | null | null | null | graph/other/BipartiteGraph.hpp | shiomusubi496/library | 907f72eb6ee4ac6ef617bb359693588167f779e7 | [
"MIT"
] | null | null | null | #pragma once
#include "../../other/template.hpp"
#include "../Graph.hpp"
template<class T> class BipartiteGraph {
private:
int n;
bool is_bip;
const Graph<T>& G;
std::vector<bool> used, label;
void dfs(int v) {
used[v] = true;
each_const (e : G[v]) {
if (!used[e.to]) ... | 24.244444 | 62 | 0.488543 | shiomusubi496 |
a50e2a1512c79f1ac93efce80251f12ecefbbf1a | 520 | cpp | C++ | Interview Bit Solutions/Dynamic Programming/EggDrop.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 169 | 2021-05-30T10:02:19.000Z | 2022-03-27T18:09:32.000Z | Interview Bit Solutions/Dynamic Programming/EggDrop.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 1 | 2021-10-02T14:46:26.000Z | 2021-10-02T14:46:26.000Z | Interview Bit Solutions/Dynamic Programming/EggDrop.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 44 | 2021-05-30T19:56:29.000Z | 2022-03-17T14:49:00.000Z | vector<vector<int>>dp;
int sol(int e,int f){
if(f<=1)return f;
if(e==1)return f;
if(dp[e][f]!=-1)return dp[e][f];
int ans=INT_MAX;
int l=1,h=f;
while(l<=h){
int mid=l+(h-l)/2;
int b=sol(e-1,mid-1);
int nb=sol(e,f-mid);
ans=min(ans,1+max(b,nb));
if(b==nb)br... | 21.666667 | 50 | 0.494231 | bilwa496 |
a514da4eddd982aceb5389221bcb027f80e834c9 | 1,076 | cpp | C++ | RayMarchingTest/Matrix.cpp | 08jne01/Ray-Marching-Fractal-Test | aed7082cb194809af33f7a7bd3596dbe3c530db2 | [
"MIT"
] | null | null | null | RayMarchingTest/Matrix.cpp | 08jne01/Ray-Marching-Fractal-Test | aed7082cb194809af33f7a7bd3596dbe3c530db2 | [
"MIT"
] | null | null | null | RayMarchingTest/Matrix.cpp | 08jne01/Ray-Marching-Fractal-Test | aed7082cb194809af33f7a7bd3596dbe3c530db2 | [
"MIT"
] | null | null | null | #include "Matrix.h"
glm::mat4 makeModelMatrix(glm::vec3 pos, glm::vec3 rot)
{
glm::mat4 matrix(1.0);
matrix = glm::translate(matrix, pos);
matrix = glm::rotate(matrix, glm::radians(rot.x), { 1, 0, 0 });
matrix = glm::rotate(matrix, glm::radians(rot.y), { 0, 1, 0 });
matrix = glm::rotate(matrix, glm::radians(rot.... | 25.619048 | 71 | 0.640335 | 08jne01 |
a51ad30db9e0b43a8d67a52799e4b339c42b761b | 8,266 | cpp | C++ | GDP2019_20/UserInput.cpp | d01000100/gl_demo | 5c0894b1fabf5727836757e7d44528c8b513d2d5 | [
"MIT"
] | null | null | null | GDP2019_20/UserInput.cpp | d01000100/gl_demo | 5c0894b1fabf5727836757e7d44528c8b513d2d5 | [
"MIT"
] | null | null | null | GDP2019_20/UserInput.cpp | d01000100/gl_demo | 5c0894b1fabf5727836757e7d44528c8b513d2d5 | [
"MIT"
] | null | null | null | #include "GLCommon.h"
#include <glm/glm.hpp>
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <iostream>
#include <fstream>
#include "GFLW_callbacks.h"
#include "globalStuff.h" // for find object
#include "Camera.h"
#include "FollowCamera.h"
#include "Scene.h"
#include "SceneEditor.h"
#include "JSON_IO.h"
#... | 23.684814 | 82 | 0.6609 | d01000100 |
a51cc75205e1737781b005a8a0584da4e5f03be4 | 518 | cpp | C++ | v14.cpp | t0ry003/BAC-2009-S2E5 | 4e9a643f7fbb774b95f83d74002ee65a014e403c | [
"MIT"
] | null | null | null | v14.cpp | t0ry003/BAC-2009-S2E5 | 4e9a643f7fbb774b95f83d74002ee65a014e403c | [
"MIT"
] | null | null | null | v14.cpp | t0ry003/BAC-2009-S2E5 | 4e9a643f7fbb774b95f83d74002ee65a014e403c | [
"MIT"
] | null | null | null | #include "iostream"
using namespace std;
int main()
{
int n;
cin >> n;
int cop_n = n, nr_cif = 0;
while(cop_n != 0){
cop_n /= 10;
nr_cif++;
}
int a[nr_cif][nr_cif];
for(int i=1; i<=nr_cif; i++){
int cop2_n = n;
for(int j=1; j<=nr_cif; j++){
a[i... | 16.709677 | 37 | 0.401544 | t0ry003 |
a5214d839e8bb54f26610ebfaaab329715721ffd | 111 | cpp | C++ | Number Theory/Divisibility_by_Number/Divisibility_by_9_or_3.cpp | utkarshkanswal/Data-Strucrure-and-Algorithm | 5db39daf1403d270dacef06261fbfa62902e05ed | [
"MIT"
] | 1 | 2021-11-02T09:33:55.000Z | 2021-11-02T09:33:55.000Z | Number Theory/Divisibility_by_Number/Divisibility_by_9_or_3.cpp | utkarshkanswal/Data-Strucrure-and-Algorithm | 5db39daf1403d270dacef06261fbfa62902e05ed | [
"MIT"
] | null | null | null | Number Theory/Divisibility_by_Number/Divisibility_by_9_or_3.cpp | utkarshkanswal/Data-Strucrure-and-Algorithm | 5db39daf1403d270dacef06261fbfa62902e05ed | [
"MIT"
] | null | null | null | /*
Note1: If sum of the digits of that number is divisible by 9 or 3 then the number is divisible by 9 or 3
*/ | 37 | 105 | 0.720721 | utkarshkanswal |
a5247a43b5143b0e5bf5e3151a44aebaff09fa01 | 21,515 | cpp | C++ | SiO2(BFGS_MPI version)/EnergyForce.cpp | ZHIwork/Amorphous-SiO2-BFGS | 181db6a9872564171196966d2760cfa319391074 | [
"MIT"
] | null | null | null | SiO2(BFGS_MPI version)/EnergyForce.cpp | ZHIwork/Amorphous-SiO2-BFGS | 181db6a9872564171196966d2760cfa319391074 | [
"MIT"
] | null | null | null | SiO2(BFGS_MPI version)/EnergyForce.cpp | ZHIwork/Amorphous-SiO2-BFGS | 181db6a9872564171196966d2760cfa319391074 | [
"MIT"
] | null | null | null | #include "EnergyForce.h"
//call Tool.h
Tool EFTool;
EnergyForce::EnergyForce()
{
}
EnergyForce::~EnergyForce()
{
//std::cout << "EnergyForce deconstructor" << std::endl;
}
void EnergyForce::obtainEnergyForce(const T coordinates[], T acceleration[], T& total_energy)
{
//initialize e... | 49.803241 | 171 | 0.673251 | ZHIwork |
a52d1c7f02866516cab778b030241ea33c7fefa1 | 848 | cpp | C++ | leetcode/304. Range Sum Query 2D - Immutable/s1.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/304. Range Sum Query 2D - Immutable/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/304. Range Sum Query 2D - Immutable/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | class NumMatrix {
private:
vector<vector<int>> sums;
public:
NumMatrix(vector<vector<int>> &matrix) {
if (matrix.empty() || matrix[0].empty()) return;
int M = matrix.size(), N = matrix[0].size();
sums = vector<vector<int>>(M + 1, vector<int>(N + 1));
for (int i = 1; i <= M; ++i) ... | 33.92 | 105 | 0.522406 | zhuohuwu0603 |
a52e3559227bab912a22328b91d0154f6d24fd9e | 127 | cpp | C++ | random shit dev space/ATTiny compiler/other/arduino-preprocessor/testsuite/testdata/test_issue_7.cpp | NHTHEBEST/Ducky2Tiny | ffd109d23df752b444f85aacada6747392672db9 | [
"MIT"
] | null | null | null | random shit dev space/ATTiny compiler/other/arduino-preprocessor/testsuite/testdata/test_issue_7.cpp | NHTHEBEST/Ducky2Tiny | ffd109d23df752b444f85aacada6747392672db9 | [
"MIT"
] | null | null | null | random shit dev space/ATTiny compiler/other/arduino-preprocessor/testsuite/testdata/test_issue_7.cpp | NHTHEBEST/Ducky2Tiny | ffd109d23df752b444f85aacada6747392672db9 | [
"MIT"
] | null | null | null | // https://github.com/arduino/arduino-preprocessor/issues/7
#line 1 "issue_7.ino"
int a; int b=f();
int f() {
return 1;
}
| 12.7 | 59 | 0.645669 | NHTHEBEST |
a530f1cc96bd8cdd3d09fd74b6380ef77a36944f | 280 | cpp | C++ | vec.cpp | ShyamPraveenSingh/Cpp-Practise | 5eb42689695eb9f89b026098b6afc3b43fd95e84 | [
"MIT"
] | 1 | 2021-10-31T18:27:19.000Z | 2021-10-31T18:27:19.000Z | vec.cpp | ShyamPraveenSingh/Cpp-Practise | 5eb42689695eb9f89b026098b6afc3b43fd95e84 | [
"MIT"
] | null | null | null | vec.cpp | ShyamPraveenSingh/Cpp-Practise | 5eb42689695eb9f89b026098b6afc3b43fd95e84 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
vector <int> arr = {1,2,3};
for(auto it : arr)
cout << it;
cout << endl;
string s = "123";
do{
cout << s << endl;
}while(next_permutation(s.begin(), s.end()));
return 0;
} | 17.5 | 49 | 0.5 | ShyamPraveenSingh |
a53409c98fc42a42177c7050dcc38efa5c774fd8 | 944 | hpp | C++ | include/tracer/bits/stdtracer_cuda_scope.hpp | stdml/stdtracer | e7ee9fb5168e31a75b53360b94dfdeaac4d51e4b | [
"MIT"
] | 2 | 2018-09-30T14:51:37.000Z | 2020-01-26T02:28:47.000Z | include/tracer/bits/stdtracer_cuda_scope.hpp | stdml/stdtracer | e7ee9fb5168e31a75b53360b94dfdeaac4d51e4b | [
"MIT"
] | 7 | 2020-04-10T12:01:34.000Z | 2021-09-23T20:19:22.000Z | include/tracer/bits/stdtracer_cuda_scope.hpp | stdml/stdtracer | e7ee9fb5168e31a75b53360b94dfdeaac4d51e4b | [
"MIT"
] | 1 | 2019-10-08T00:26:41.000Z | 2019-10-08T00:26:41.000Z | #pragma once
#include <chrono>
#include <string>
#include <cuda_runtime.h>
template <typename ctx_t, typename clock_t = std::chrono::high_resolution_clock>
class basic_cuda_scope
{
const std::string name_;
ctx_t &ctx_;
cudaEvent_t start, stop;
public:
basic_cuda_scope(const std::string &name, ctx_... | 23.6 | 82 | 0.636653 | stdml |
a537c362a4cbfb7bf1eb4a0848996d3c8ae3f086 | 1,600 | cpp | C++ | AOJ/10033.cpp | vios-fish/CompetitiveProgramming | 6953f024e4769791225c57ed852cb5efc03eb94b | [
"MIT"
] | null | null | null | AOJ/10033.cpp | vios-fish/CompetitiveProgramming | 6953f024e4769791225c57ed852cb5efc03eb94b | [
"MIT"
] | null | null | null | AOJ/10033.cpp | vios-fish/CompetitiveProgramming | 6953f024e4769791225c57ed852cb5efc03eb94b | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <bitset>
#include <deque>
#include <set>
#include <sstream>
using namespace std;
const double EPS = 1e-10;
const double PI = acos(-1.... | 20.779221 | 94 | 0.540625 | vios-fish |
a537fa265e7d73ea1ce33f2a99989fc9a35c9b4f | 9,100 | cpp | C++ | ohm/NdtMap.cpp | jmackay2/ohm | 15f7b9f221419d2faf3802404a2f378ef570a990 | [
"Zlib"
] | 45 | 2020-06-09T23:26:47.000Z | 2022-03-16T12:16:33.000Z | ohm/NdtMap.cpp | jmackay2/ohm | 15f7b9f221419d2faf3802404a2f378ef570a990 | [
"Zlib"
] | 1 | 2022-01-10T05:50:36.000Z | 2022-01-24T02:50:01.000Z | ohm/NdtMap.cpp | jmackay2/ohm | 15f7b9f221419d2faf3802404a2f378ef570a990 | [
"Zlib"
] | 5 | 2021-02-25T15:08:46.000Z | 2022-03-30T13:08:03.000Z | // Copyright (c) 2020
// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
// ABN 41 687 119 230
//
// Author: Kazys Stepanas, Jason Williams
#include "NdtMap.h"
#include "private/NdtMapDetail.h"
#include "DefaultLayer.h"
#include "MapInfo.h"
#include "MapLayer.h"
#include "MapLayout.h"
#include "M... | 25.418994 | 120 | 0.654176 | jmackay2 |
a54502155a69796a59ca6354843b3efe87438730 | 709 | cpp | C++ | datafileusinggetline.cpp | AyushVerma-code/databinarytextfiles | f404bfb07d1854e9e4f8f6edbb32268d39aed908 | [
"MIT"
] | 1 | 2021-02-12T08:24:17.000Z | 2021-02-12T08:24:17.000Z | wordcout2.cpp | AyushVerma-code/databinarytextfiles | f404bfb07d1854e9e4f8f6edbb32268d39aed908 | [
"MIT"
] | null | null | null | wordcout2.cpp | AyushVerma-code/databinarytextfiles | f404bfb07d1854e9e4f8f6edbb32268d39aed908 | [
"MIT"
] | null | null | null | #include<iostream.h>
#include<conio.h>
#include<string.h>
#include<fstream.h>
#include<stdio.h>
void wordcount()
{
fstream file;
file.open("diary1.txt",ios::in|ios::out);
char ans='y';
char word[500];
while (ans=='y')
{
cout<<"\n\nEnter the string word by word ";
gets(word);
file<<word;
c... | 13.901961 | 54 | 0.544429 | AyushVerma-code |
a547360d982ab5eff164c65b7a1cb602202284ae | 2,472 | cpp | C++ | source/report/date_time.cpp | alijenabi/RelationBasedSoftware | f26f163d8d3e74e134a33512ae49fb24edb8b3b7 | [
"MIT"
] | 2 | 2021-08-06T19:40:34.000Z | 2021-09-06T23:07:47.000Z | source/report/date_time.cpp | alijenabi/RelationBasedSoftware | f26f163d8d3e74e134a33512ae49fb24edb8b3b7 | [
"MIT"
] | null | null | null | source/report/date_time.cpp | alijenabi/RelationBasedSoftware | f26f163d8d3e74e134a33512ae49fb24edb8b3b7 | [
"MIT"
] | null | null | null | //
// date_time.cpp
// Relation-Based Simulator (RBS)
//
// Created by Ali Jenabidehkordi on 08.03.18.
// Copyright © 2018 Ali Jenabidehkordi. All rights reserved.
//
#include "date_time.h"
namespace rbs::report::date_time {
std::string formatedDateTime(const time_t &datetime, const std::string &format, const si... | 28.744186 | 100 | 0.603964 | alijenabi |
a2232a4ed5f823e2ad63c0d7a6e69a25db91e6ef | 2,097 | inl | C++ | samples/saw.inl | kibergus/LidarVox | ac66dfe94b0e11534aa22bfd64293c614ba19d1c | [
"WTFPL"
] | null | null | null | samples/saw.inl | kibergus/LidarVox | ac66dfe94b0e11534aa22bfd64293c614ba19d1c | [
"WTFPL"
] | null | null | null | samples/saw.inl | kibergus/LidarVox | ac66dfe94b0e11534aa22bfd64293c614ba19d1c | [
"WTFPL"
] | null | null | null | static const dacsample_t dac_buffer_saw[] = {
0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250, 260, 270, 280, 290, 300, 310, 320, 330, 340, 350, 360, 370, 380, 390, 400, 410, 420, 430, 440, 450, 460, 470, 480, 490, 500, 510, 520, 530, 540, 550, 560, ... | 524.25 | 2,047 | 0.65093 | kibergus |
a2238bb5e354ade7172d44e341430e985c88dc20 | 554 | hpp | C++ | include/mizuiro/color/convert_static.hpp | cpreh/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | 1 | 2015-08-22T04:19:39.000Z | 2015-08-22T04:19:39.000Z | include/mizuiro/color/convert_static.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | include/mizuiro/color/convert_static.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2016.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef MIZUIRO_COLOR_CONVERT_STATIC_HPP_INCLUDED
#define MIZUIRO_COLOR_CONVERT_STATIC_HPP_INCLUDED... | 36.933333 | 61 | 0.787004 | cpreh |
a228202df1c1850c9b09682403ae7da741eb57b6 | 642 | cpp | C++ | check-if-word-equals-summation-of-two-words/check-if-word-equals-summation-of-two-words.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | 1 | 2022-02-14T07:57:07.000Z | 2022-02-14T07:57:07.000Z | check-if-word-equals-summation-of-two-words/check-if-word-equals-summation-of-two-words.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | check-if-word-equals-summation-of-two-words/check-if-word-equals-summation-of-two-words.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | class Solution {
public:
bool isSumEqual(string word1, string word2, string target) {
vector<int> alpha(26);
for(int i=0; i<26; i++)
{
alpha[i]=i;
}
int a=0, b=0, c=0;
for(int i=0; i<word1.size(); i++)
{
a=a*10+alpha[word1[i]-'... | 21.4 | 64 | 0.380062 | sharmishtha2401 |
a2282fabb132b0fa214d55575c1edf56d636b7b9 | 3,526 | cpp | C++ | Leetcode/Bit_manipulation/divide-two-integers.cpp | susantabiswas/competitive_coding | 49163ecdc81b68f5c1bd90988cc0dfac34ad5a31 | [
"MIT"
] | 2 | 2021-04-29T14:44:17.000Z | 2021-10-01T17:33:22.000Z | Leetcode/Bit_manipulation/divide-two-integers.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | null | null | null | Leetcode/Bit_manipulation/divide-two-integers.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | 1 | 2021-10-01T17:33:29.000Z | 2021-10-01T17:33:29.000Z | /*
https://leetcode.com/problems/divide-two-integers/submissions/
*/
/*
Solution using only 32 bit variables(trickier)
*/
class Solution {
public:
int divide(int x, int y) {
unsigned int divisor = static_cast<unsigned int>(y);
unsigned int dividend = static_cast<unsigned int>(x);
uns... | 37.115789 | 89 | 0.549064 | susantabiswas |
a22db35578374dc4c3fb38f443eddf142b0706e6 | 1,486 | cpp | C++ | Final Project/TogglableSpotLightSource.cpp | weegeekps/ComS_557_2016_am | 620b696663420029ff221f8571a8e292b87fdaf0 | [
"MIT"
] | 1 | 2017-08-29T14:48:14.000Z | 2017-08-29T14:48:14.000Z | Final Project/TogglableSpotLightSource.cpp | weegeekps/ComS_557_2016_am | 620b696663420029ff221f8571a8e292b87fdaf0 | [
"MIT"
] | null | null | null | Final Project/TogglableSpotLightSource.cpp | weegeekps/ComS_557_2016_am | 620b696663420029ff221f8571a8e292b87fdaf0 | [
"MIT"
] | null | null | null | #include "TogglableSpotLightSource.h"
#include "gl_common/Shaders.h"
#ifdef WIN32
string TogglableSpotLightSource::_glsl_names[1] = { "light_state" };
#endif
TogglableSpotLightSource::TogglableSpotLightSource()
{
light_state = 1;
light_state_idx = -1;
}
TogglableSpotLightSource::~TogglableSpotLightSource()
{
}
b... | 20.356164 | 125 | 0.768506 | weegeekps |
a23021c6cef59d5996299b3be8d570403cb76c90 | 2,713 | cpp | C++ | src/helpers/RenderOptions.cpp | lscandolo/Compressed-shadow-maps | 3cb6c11cfb3c3cbdbfc48a6cc33d54758b7d19cf | [
"MIT"
] | 7 | 2020-04-07T18:53:12.000Z | 2022-01-25T15:06:30.000Z | src/helpers/RenderOptions.cpp | lscandolo/Compressed-shadow-maps | 3cb6c11cfb3c3cbdbfc48a6cc33d54758b7d19cf | [
"MIT"
] | null | null | null | src/helpers/RenderOptions.cpp | lscandolo/Compressed-shadow-maps | 3cb6c11cfb3c3cbdbfc48a6cc33d54758b7d19cf | [
"MIT"
] | 1 | 2021-07-14T02:14:45.000Z | 2021-07-14T02:14:45.000Z | #pragma once
#include "common.h"
#include "helpers/RenderOptions.h"
RenderOptions& DefaultRenderOptions() { return Singleton<RenderOptions>::instance(); }
RenderOptions::RenderOptions()
{
char default_name[] = "default";
output_id.fill(0);
memcpy(output_id.data(), default_name, std::min(sizeof(default_name), ou... | 20.869231 | 93 | 0.734611 | lscandolo |
a2476224aaa605035cf57797a2641cbbf95327b0 | 2,375 | cpp | C++ | test/unit/parser/test_Parser_TypeDecl.cpp | LuisHsu/smplc | 084ebd8510e2327590aed82289b2ea896f5f6f77 | [
"BSD-3-Clause"
] | 2 | 2021-03-23T06:31:41.000Z | 2021-03-23T10:08:38.000Z | test/unit/parser/test_Parser_TypeDecl.cpp | LuisHsu/smplc | 084ebd8510e2327590aed82289b2ea896f5f6f77 | [
"BSD-3-Clause"
] | null | null | null | test/unit/parser/test_Parser_TypeDecl.cpp | LuisHsu/smplc | 084ebd8510e2327590aed82289b2ea896f5f6f77 | [
"BSD-3-Clause"
] | null | null | null | #include <gtest/gtest.h>
#include <vector>
#include <sstream>
#include <Source.hpp>
#include <Parser.hpp>
TEST(unit_Parser, TypeDecl_var){
std::stringstream input("var");
Source source(input);
std::vector<std::reference_wrapper<Parser::Pass>> passes;
Parser::TypeDecl decl(source, passes);
EXPECT_T... | 30.448718 | 61 | 0.690105 | LuisHsu |
a24c3d3b8ece07f98159708eccc423c0a7f4bf07 | 1,132 | hpp | C++ | src/pumipic_kktypes.hpp | dhyan1272/pumi-pic | 52fe63537720a7c767b789ddf124873f7517de96 | [
"BSD-3-Clause"
] | null | null | null | src/pumipic_kktypes.hpp | dhyan1272/pumi-pic | 52fe63537720a7c767b789ddf124873f7517de96 | [
"BSD-3-Clause"
] | null | null | null | src/pumipic_kktypes.hpp | dhyan1272/pumi-pic | 52fe63537720a7c767b789ddf124873f7517de96 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PUMIPIC_KKTYPES_H
#define PUMIPIC_KKTYPES_H
#include <Kokkos_Core.hpp>
#include <particle_structs.hpp>
#include <chrono>
#include <thread>
#include <PS_Types.h>
namespace pumipic {
using particle_structs::lid_t;
#ifdef FP64
typedef double fp_t;
#endif
#ifdef FP32
typedef float fp_t;
#endif
typedef fp... | 29.789474 | 73 | 0.757067 | dhyan1272 |
a24d4bd393d289deb892c9a9ec724e4e9a4886f5 | 3,427 | cpp | C++ | Graphs/Dinic.cpp | mayukhsen1301/algos | 60db47ad9e7dc28271c1ce32ca705a771e682cda | [
"MIT"
] | 687 | 2015-02-23T17:31:00.000Z | 2022-03-27T02:57:23.000Z | Graphs/Dinic.cpp | mayukhsen1301/algos | 60db47ad9e7dc28271c1ce32ca705a771e682cda | [
"MIT"
] | 9 | 2018-08-27T06:41:24.000Z | 2020-12-17T13:39:07.000Z | Graphs/Dinic.cpp | mayukhsen1301/algos | 60db47ad9e7dc28271c1ce32ca705a771e682cda | [
"MIT"
] | 253 | 2015-03-16T00:42:18.000Z | 2022-03-23T06:01:36.000Z | /********************************************************************************
MaxFlow Dinic algorithm with scaling.
O(N * M * log(MC)), where MC is maximum edge capacity.
Based on problem 2784 from informatics.mccme.ru
http://informatics.mccme.ru/mod/statements/view3.php?chapterid=2784... | 23.312925 | 117 | 0.392472 | mayukhsen1301 |
a24e8f1aee72056eb86594cbd63a0a0932220f5c | 3,731 | cpp | C++ | test/unit/list/kv_michael_nogc.cpp | gidabite/libcds | f10fef7ff8c9d1abb4af1cfbf9ae5c60f9911014 | [
"BSD-2-Clause"
] | 2,118 | 2015-01-01T00:30:42.000Z | 2022-03-30T12:47:38.000Z | test/unit/list/kv_michael_nogc.cpp | liangwens/libcds | b4d11539824bb91ae4604f47aa1416fdd7cc1ff1 | [
"BSL-1.0"
] | 113 | 2015-01-03T15:29:40.000Z | 2022-03-05T21:30:11.000Z | test/unit/list/kv_michael_nogc.cpp | liangwens/libcds | b4d11539824bb91ae4604f47aa1416fdd7cc1ff1 | [
"BSL-1.0"
] | 385 | 2015-01-01T21:51:48.000Z | 2022-03-25T12:51:30.000Z | // Copyright (c) 2006-2018 Maxim Khizhinsky
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#include "test_kv_list_nogc.h"
#include <cds/container/michael_kvlist_nogc.h>
namespace {
namespace cc = cds::container;
... | 28.265152 | 84 | 0.589654 | gidabite |
a252d556eb2d2c4d38fee235bbe7fccc25bb0ab1 | 4,716 | cpp | C++ | src/collision_detection/MoveItCollisionHelperImpl.cpp | ZhouYixuanRobtic/NursingRobot | 1372e4af40a3315b754d1b6273b5a00d09c4def6 | [
"MIT"
] | 1 | 2020-12-09T01:32:13.000Z | 2020-12-09T01:32:13.000Z | src/collision_detection/MoveItCollisionHelperImpl.cpp | ZhouYixuanRobtic/NursingRobot | 1372e4af40a3315b754d1b6273b5a00d09c4def6 | [
"MIT"
] | null | null | null | src/collision_detection/MoveItCollisionHelperImpl.cpp | ZhouYixuanRobtic/NursingRobot | 1372e4af40a3315b754d1b6273b5a00d09c4def6 | [
"MIT"
] | 1 | 2021-04-15T15:29:08.000Z | 2021-04-15T15:29:08.000Z | #include "collision_detection/MoveItCollisionHelperImpl.h"
namespace my_collision_detection {
MoveItCollisionHelperImpl::MoveItCollisionHelperImpl(const std::string &group_name,
const std::string &yaml_name,
... | 51.824176 | 132 | 0.604538 | ZhouYixuanRobtic |
a2542412a9393fc4ca7e46a0335c518ecc3b921e | 587 | hpp | C++ | nd-coursework/books/cpp/C++Templates/bridge/forupto2.hpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/C++Templates/bridge/forupto2.hpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/C++Templates/bridge/forupto2.hpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 by Addison-Wesley, David Vandevoorde, Nicolai M. Josuttis, and Douglas Gregor. All rights reserved.
// See the LICENSE file in the project root for more information.
//
// Name: forupto2.hpp
// Author: cdrisko
// Date: 07/27/2020-13:09:13
// Description: Limiting an increase in code size by using ... | 30.894737 | 121 | 0.645656 | crdrisko |
a257ad65db3e8ffc2a38c3d0fd37e61fba33725e | 1,331 | cpp | C++ | src/libs/base/hw/adc.cpp | redox-mobile/bare-metal-bbb | 02313e7ee661e2c04ecddb6c9a4cbc6e2256d8c4 | [
"MIT"
] | null | null | null | src/libs/base/hw/adc.cpp | redox-mobile/bare-metal-bbb | 02313e7ee661e2c04ecddb6c9a4cbc6e2256d8c4 | [
"MIT"
] | null | null | null | src/libs/base/hw/adc.cpp | redox-mobile/bare-metal-bbb | 02313e7ee661e2c04ecddb6c9a4cbc6e2256d8c4 | [
"MIT"
] | null | null | null | #include "adc.h"
#include <hal/hal_adc.h>
#include <hal/hal_irq.h>
namespace HW {
namespace Internal {
/*
* AdcPrivate
*/
class AdcPrivate {
public:
static void isr();
public:
static void (*callback)(void);
static uint16_t currentSample;
};
void (*AdcPrivate::callback)(void) = 0;
uint16_t AdcPrivate... | 16.036145 | 48 | 0.642374 | redox-mobile |
a26185a7041e19695052074157c6b495b88a9f50 | 795 | cpp | C++ | TIOJ/1563.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | TIOJ/1563.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | TIOJ/1563.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | #include<iostream>
#include<string>
#include<cstring>
#include<algorithm>
using namespace std;
struct object
{
string name;
int money;
};
bool compare(const object &a,const object &b)
{
return (a.name<b.name);
}
int main()
{
int t,n;
const int money[11]={100,90,80,70,60,50,40,30,20,10,0};
while(... | 19.875 | 62 | 0.467925 | w181496 |
a26b2412a3bd5fbb1141a3f2cf1167f67d8a683e | 1,878 | hpp | C++ | rmf_task/include/rmf_task/Request.hpp | Marcusttk/rmf_core | 28542c32fa6aaaccc570f6a8ea20bae27464669d | [
"Apache-2.0"
] | null | null | null | rmf_task/include/rmf_task/Request.hpp | Marcusttk/rmf_core | 28542c32fa6aaaccc570f6a8ea20bae27464669d | [
"Apache-2.0"
] | null | null | null | rmf_task/include/rmf_task/Request.hpp | Marcusttk/rmf_core | 28542c32fa6aaaccc570f6a8ea20bae27464669d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 29.34375 | 78 | 0.745474 | Marcusttk |
a27107967e55da385d8a06e2a1a7cde7e7d550df | 1,888 | cpp | C++ | src/octree.cpp | xannieto/rule-based-classifier-cpp | d458ff7808ed59de29692843f28167902a47a536 | [
"Apache-2.0"
] | null | null | null | src/octree.cpp | xannieto/rule-based-classifier-cpp | d458ff7808ed59de29692843f28167902a47a536 | [
"Apache-2.0"
] | null | null | null | src/octree.cpp | xannieto/rule-based-classifier-cpp | d458ff7808ed59de29692843f28167902a47a536 | [
"Apache-2.0"
] | null | null | null | //
// Created by miguel.yermo on 5/03/20.
//
#include "octree.h"
#include <cstdio>
#include <iostream>
#include <limits>
inline Vector mbbRadii(Vector & min, Vector & max, float & maxRadius)
{
Vector radii;
radii.setX((max.x() - min.x()) / 2.0);
radii.setY((max.y() - min.y()) / 2.0);
radii.setZ((max.z() - min.z... | 22.746988 | 70 | 0.615996 | xannieto |
a276309e9daccab9f5d0173871f563d7443cf249 | 6,644 | cpp | C++ | src/LightController.cpp | ustisha/ArduinoComponents | 9090a9408669c5ae9bd26ab66e7c916f9a459379 | [
"MIT"
] | null | null | null | src/LightController.cpp | ustisha/ArduinoComponents | 9090a9408669c5ae9bd26ab66e7c916f9a459379 | [
"MIT"
] | null | null | null | src/LightController.cpp | ustisha/ArduinoComponents | 9090a9408669c5ae9bd26ab66e7c916f9a459379 | [
"MIT"
] | null | null | null | #include "../include/LightController.h"
LightController::LightController() : timeout(60 * 1000),
activityRatio(0.8),
activityLimit(2),
recallRatio(2.2),
recallTimeout(2 * ... | 29.140351 | 130 | 0.581427 | ustisha |
a27a7a668ae7117cdb447046ad9a84a59ccc4e0e | 658 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/console/set_typical_title.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/console/set_typical_title.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/console/set_typical_title.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <msw/config.hpp>
#include <msw/self/pid.hpp>
#include <msw/self/static_info.hpp>
#include <msw/console/set_title.hpp>
namespace msw {
namespace console {
inline void set_typical_title(std::string const& product, std::string const& optional = "")
{
msw::co... | 22.689655 | 95 | 0.600304 | yklishevich |
a27cc8d2ebdaebf19dd8092b8738eab8d95888c9 | 1,001 | hpp | C++ | utils/oglplus/x11/pixmap.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 364 | 2015-01-01T09:38:23.000Z | 2022-03-22T05:32:00.000Z | utils/oglplus/x11/pixmap.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 55 | 2015-01-06T16:42:55.000Z | 2020-07-09T04:21:41.000Z | utils/oglplus/x11/pixmap.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 57 | 2015-01-07T18:35:49.000Z | 2022-03-22T05:32:04.000Z | /**
* @file oglplus/x11/pixmap.hpp
* @brief Wrapper for X11 pixmap class
*
* @author Matus Chochlik
*
* Copyright 2010-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef UT... | 19.627451 | 68 | 0.712288 | Extrunder |
a27cd85fa3861e2d11aed540b686eca80bc6e957 | 1,411 | hpp | C++ | include/hop_utils.hpp | tobias-loew/hop | 72e001c14833893213a64e934554fdd1b2106da8 | [
"BSL-1.0"
] | 16 | 2020-01-07T11:42:19.000Z | 2022-02-11T18:12:26.000Z | include/hop_utils.hpp | tobias-loew/hop | 72e001c14833893213a64e934554fdd1b2106da8 | [
"BSL-1.0"
] | 1 | 2021-03-09T22:32:05.000Z | 2021-03-13T15:49:25.000Z | include/hop_utils.hpp | tobias-loew/hop | 72e001c14833893213a64e934554fdd1b2106da8 | [
"BSL-1.0"
] | 1 | 2021-06-04T07:56:54.000Z | 2021-06-04T07:56:54.000Z | //////////////////////////////////////////////////////////////////
//
// hop library
//
// Copyright Tobias Loew 2019. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//... | 29.395833 | 105 | 0.574061 | tobias-loew |
a28ba5996e5a9bf63f0806646ec6bdb70e513770 | 6,096 | hpp | C++ | src/shogi/piece.hpp | SakodaShintaro/Miacis | af3508076660cc6e19186f17fa436499e32164f5 | [
"BSD-3-Clause"
] | 10 | 2019-05-14T12:54:49.000Z | 2022-02-28T12:02:52.000Z | src/shogi/piece.hpp | SakodaShintaro/Miacis | af3508076660cc6e19186f17fa436499e32164f5 | [
"BSD-3-Clause"
] | null | null | null | src/shogi/piece.hpp | SakodaShintaro/Miacis | af3508076660cc6e19186f17fa436499e32164f5 | [
"BSD-3-Clause"
] | null | null | null | #ifndef MIACIS_SHOGI_PIECE_HPP
#define MIACIS_SHOGI_PIECE_HPP
#include "../array_map.hpp"
#include "../types.hpp"
#include <cassert>
#include <fstream>
#include <iostream>
#include <string>
#include <unordered_map>
namespace Shogi {
// clang-format off
enum Piece {
PROMOTE_BIT = 5,
BLACK_BIT = 6,
WHIT... | 47.255814 | 109 | 0.596785 | SakodaShintaro |
a2936539cb06cf4de01f661b114777b6fc096c39 | 1,836 | cpp | C++ | experiments/ros packages/gmp_lib/src/TrajScale/TrajScale.cpp | Slifer64/novel-DMP-constraints | cad6727a12642130dc64fd93827099e4cb763ec8 | [
"MIT"
] | null | null | null | experiments/ros packages/gmp_lib/src/TrajScale/TrajScale.cpp | Slifer64/novel-DMP-constraints | cad6727a12642130dc64fd93827099e4cb763ec8 | [
"MIT"
] | null | null | null | experiments/ros packages/gmp_lib/src/TrajScale/TrajScale.cpp | Slifer64/novel-DMP-constraints | cad6727a12642130dc64fd93827099e4cb763ec8 | [
"MIT"
] | null | null | null | #include <gmp_lib/TrajScale/TrajScale.h>
#include <gmp_lib/TrajScale/TrajScale_Prop.h>
#include <gmp_lib/TrajScale/TrajScale_Rot_min.h>
#include <gmp_lib/TrajScale/TrajScale_Rot_wb.h>
namespace as64_
{
namespace gmp_
{
TrajScale::TrajScale(unsigned n_dof)
{
this->Y0d = arma::vec().zeros(n_dof);
... | 25.5 | 97 | 0.665033 | Slifer64 |
a2954e3a10a582782dc016be029ce2bbcc34979a | 1,931 | cpp | C++ | lib/crypto/RollingChecksum.cpp | resosafe/boxbackup | c56291558de634f3fe6675aeb381ba99f68b78cb | [
"BSD-3-Clause"
] | 133 | 2015-02-22T23:56:53.000Z | 2022-03-13T19:24:21.000Z | lib/crypto/RollingChecksum.cpp | resosafe/boxbackup | c56291558de634f3fe6675aeb381ba99f68b78cb | [
"BSD-3-Clause"
] | 93 | 2015-08-31T15:35:07.000Z | 2021-04-27T21:41:13.000Z | lib/crypto/RollingChecksum.cpp | resosafe/boxbackup | c56291558de634f3fe6675aeb381ba99f68b78cb | [
"BSD-3-Clause"
] | 19 | 2015-08-31T14:13:34.000Z | 2021-12-12T15:20:17.000Z | // --------------------------------------------------------------------------
//
// File
// Name: RollingChecksum.cpp
// Purpose: A simple rolling checksum over a block of data
// Created: 6/12/03
//
// --------------------------------------------------------------------------
#include "Box.h"
#include "RollingC... | 30.650794 | 171 | 0.513206 | resosafe |
a2980e473a1d4f5050077a6dbf9447c154479be2 | 1,259 | cpp | C++ | Archives/PromiseLand.cpp | pawan-nirpal-031/Algorithms-And-ProblemSolving | 24ce9649345dabe7275920f6912e410efc2c8e84 | [
"Apache-2.0"
] | 2 | 2021-03-05T08:40:01.000Z | 2021-04-25T13:58:42.000Z | Archives/PromiseLand.cpp | pawan-nirpal-031/Algorithms-And-ProblemSolving | 24ce9649345dabe7275920f6912e410efc2c8e84 | [
"Apache-2.0"
] | null | null | null | Archives/PromiseLand.cpp | pawan-nirpal-031/Algorithms-And-ProblemSolving | 24ce9649345dabe7275920f6912e410efc2c8e84 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int ull;
typedef long long int ll;
typedef long double ld;
#define mod 1000000007
#define pb(a) push_back(a)
#define mp(a,b) make_pair(a,b)
#define setA0(a) for(ull i =0;i<n;i++){a[i] = 0;}
#define aout(a) for(auto x : a){cout<<x<<' ';}
#define a... | 23.754717 | 79 | 0.483717 | pawan-nirpal-031 |
a29a4e5ed4ac20c33fc2f696d0c3954e2754b537 | 2,627 | hpp | C++ | addons/replacements/lootboxes/gl.hpp | Theseus-Aegis/GTArmory | 771c33044c87625b1b19896fab9aad0fa5a7f21c | [
"MIT"
] | 2 | 2020-02-11T08:08:00.000Z | 2020-11-06T13:51:29.000Z | addons/replacements/lootboxes/gl.hpp | Theseus-Aegis/GTArmory | 771c33044c87625b1b19896fab9aad0fa5a7f21c | [
"MIT"
] | 13 | 2020-02-10T19:04:32.000Z | 2021-05-25T14:38:30.000Z | addons/replacements/lootboxes/gl.hpp | Theseus-Aegis/GTArmory | 771c33044c87625b1b19896fab9aad0fa5a7f21c | [
"MIT"
] | 1 | 2021-04-24T20:40:31.000Z | 2021-04-24T20:40:31.000Z | class CLASS(Lootbox_GL): tac_supplies_randomizedBox {
scope = 2;
picture = QPATHTOF(ui\lootbox_gl_ca.paa);
displayName = CSTRING(Lootbox_GL_Name);
tac_supplies_possibleItems[] = {
"arifle_AK12_GL_F",
"arifle_AK12_GL_arid_F",
"arifle_AK12_GL_lush_F",
"tacs_MK20_EGLM_Black_... | 35.026667 | 53 | 0.670727 | Theseus-Aegis |
a29c7e71174d93c57449d11272fe6344a73919ae | 1,569 | cpp | C++ | String/next.cpp | landcelita/algorithm | 544736df6b3cbe20ec58d44d81fe9372b8acd93e | [
"CC0-1.0"
] | 197 | 2018-08-19T06:49:14.000Z | 2022-03-26T04:11:48.000Z | String/next.cpp | landcelita/algorithm | 544736df6b3cbe20ec58d44d81fe9372b8acd93e | [
"CC0-1.0"
] | null | null | null | String/next.cpp | landcelita/algorithm | 544736df6b3cbe20ec58d44d81fe9372b8acd93e | [
"CC0-1.0"
] | 15 | 2018-09-14T09:15:12.000Z | 2021-11-16T12:43:43.000Z | //
// 文字列 DP で頻繁に必要になる前処理
//
// verified:
// ARC 081 E - Don't Be a Subsequence
// https://beta.atcoder.jp/contests/arc081/tasks/arc081_c
//
/*
res[i][c] := i 文字目以降で最初に文字 c が登場する index (存在しないときは n)
*/
#include <iostream>
#include <string>
#include <vector>
using namespace std;
// res[i][c] := i 文字目以降で最初... | 22.414286 | 92 | 0.455704 | landcelita |
a29df1018253c9ee2c73aef649c973df3b16743f | 1,012 | cpp | C++ | graph/stoer_wagner.cpp | albexl/team-reference | eeeeb5f715c59890cc1d7753fdadb0d29ad3273b | [
"MIT"
] | 1 | 2021-07-16T19:59:38.000Z | 2021-07-16T19:59:38.000Z | graph/stoer_wagner.cpp | albexl/team-reference | eeeeb5f715c59890cc1d7753fdadb0d29ad3273b | [
"MIT"
] | null | null | null | graph/stoer_wagner.cpp | albexl/team-reference | eeeeb5f715c59890cc1d7753fdadb0d29ad3273b | [
"MIT"
] | null | null | null | /*
Tested: ZOJ 2753
Complexity: O(n^3)
*/
template<typename T>
pair<T, vector<int>> stoer_wagner(vector<vector<T>> &weights)
{
int n = weights.size();
vector<int> used(n), cut, best_cut;
T best_weight = -1;
for (int phase = n - 1; phase >= 0; --phase)
{
vector<T> w = weights[0];
vector<int> added = used;
... | 18.740741 | 61 | 0.509881 | albexl |
a29f10647e46586d203d9355d17ed4d06fda7f2d | 2,835 | cpp | C++ | source/physics/physics_engine.cpp | Paul-Wortmann/Grume | 0ffdd8f98e0b7d7857cc6a3e0f971f9a74651d17 | [
"Intel"
] | 3 | 2021-12-19T12:00:34.000Z | 2021-12-30T08:36:58.000Z | source/physics/physics_engine.cpp | Paul-Wortmann/Grume | 0ffdd8f98e0b7d7857cc6a3e0f971f9a74651d17 | [
"Intel"
] | 2 | 2021-11-02T05:30:53.000Z | 2021-11-30T00:11:16.000Z | source/physics/physics_engine.cpp | Paul-Wortmann/Grume | 0ffdd8f98e0b7d7857cc6a3e0f971f9a74651d17 | [
"Intel"
] | null | null | null | /**
* Copyright (C) Paul Wortmann
* This file is part of "Grume"
*
* "Grume" 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, version 2 only.
*
* "Grume" is distributed in the hope that it will be usefu... | 37.8 | 119 | 0.542152 | Paul-Wortmann |
a2a096d304649b62f255b20ed843540abe9ac7aa | 4,302 | cpp | C++ | external/open-zwave/openzwave-1.0.791/cpp/src/platform/windows/ThreadImpl.cpp | PascalPiche/OpenHomeMation | 61445cbb0878d81399d4d27ff8cc20c2a028c444 | [
"MIT"
] | 2 | 2015-01-02T08:49:51.000Z | 2016-09-22T19:40:41.000Z | external/open-zwave/openzwave-1.0.791/cpp/src/platform/windows/ThreadImpl.cpp | PascalPiche/OpenHomeMation | 61445cbb0878d81399d4d27ff8cc20c2a028c444 | [
"MIT"
] | null | null | null | external/open-zwave/openzwave-1.0.791/cpp/src/platform/windows/ThreadImpl.cpp | PascalPiche/OpenHomeMation | 61445cbb0878d81399d4d27ff8cc20c2a028c444 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
//
// ThreadImpl.cpp
//
// Windows implementation of a cross-platform thread
//
// Copyright (c) 2010 Mal Lansell <mal@lansell.org>
// All rights reserved.
//
// SOFTWARE NOTICE AND LICENSE
//
// This file is part of OpenZWave.
//
// OpenZW... | 27.056604 | 98 | 0.481404 | PascalPiche |
94729297248e575368d04d7d00648435b9f660b2 | 6,858 | cpp | C++ | ttbasic_microbit/src/lib/tMatrixScreen.cpp | Tamakichi/ttbasic_microbit | ce54dc22a2f147904a6c5a8df6b201f9ef2668c3 | [
"OLDAP-2.2.1"
] | 7 | 2018-01-24T18:30:14.000Z | 2022-03-26T03:10:54.000Z | ttbasic_microbit/src/lib/tMatrixScreen.cpp | Tamakichi/ttbasic_microbit | ce54dc22a2f147904a6c5a8df6b201f9ef2668c3 | [
"OLDAP-2.2.1"
] | 2 | 2020-11-17T01:34:25.000Z | 2020-11-21T03:15:54.000Z | ttbasic_microbit/src/lib/tMatrixScreen.cpp | Tamakichi/ttbasic_microbit | ce54dc22a2f147904a6c5a8df6b201f9ef2668c3 | [
"OLDAP-2.2.1"
] | 2 | 2018-01-24T22:10:45.000Z | 2019-04-16T20:37:45.000Z | //
// file: tMatrixScreen.cpp
// micro:bit LEDマトリックス制御クラス
// 2017/12/28 作成
// 2018/02/03 修正 ,driveMatrix()で停止時にポート26,27,28をLOWにセット
//
#include <string.h>
#include "tMatrixScreen.h"
extern const uint8_t* ttbasic_font;
#ifndef swap
#define swap(a, b) { int16_t t = a; a = b; b = t; }
#endif
// GVRAMサイズ取得
__attribute__((... | 23.89547 | 141 | 0.554826 | Tamakichi |
947ba890fdb44cb4223d3e5e8349681841a31c60 | 461 | hpp | C++ | src/parser/value.hpp | fcten/xscrip | 3bad5fa410191bc0577d489c1465c5a680e8e82d | [
"BSD-3-Clause"
] | 6 | 2018-11-01T20:00:55.000Z | 2021-11-08T09:22:07.000Z | src/parser/value.hpp | fcten/xscrip | 3bad5fa410191bc0577d489c1465c5a680e8e82d | [
"BSD-3-Clause"
] | null | null | null | src/parser/value.hpp | fcten/xscrip | 3bad5fa410191bc0577d489c1465c5a680e8e82d | [
"BSD-3-Clause"
] | 1 | 2019-07-22T10:04:10.000Z | 2019-07-22T10:04:10.000Z | #ifndef _XSCRIPT_PARSER_VALUE_HPP_
#define _XSCRIPT_PARSER_VALUE_HPP_
#include "type.hpp"
namespace xscript::parser {
class object;
typedef union {
long long l;
double d;
object *obj;
} value_t;
class value {
public:
// 类型
v_type_t type;
value_t value;
};
class object {
public:
std::... | 13.171429 | 36 | 0.657267 | fcten |
9480d1acb0856919c70ba1aa19b6d7d731bdfdb2 | 973 | cpp | C++ | libCoords/example1.cpp | lrmcfarland/Coordinates | 2041ec8bfeed870e8f242f19ad517e3adea52897 | [
"MIT"
] | 4 | 2015-09-07T01:32:43.000Z | 2021-05-30T23:29:56.000Z | libCoords/example1.cpp | lrmcfarland/Coordinates | 2041ec8bfeed870e8f242f19ad517e3adea52897 | [
"MIT"
] | null | null | null | libCoords/example1.cpp | lrmcfarland/Coordinates | 2041ec8bfeed870e8f242f19ad517e3adea52897 | [
"MIT"
] | 1 | 2017-10-22T02:47:10.000Z | 2017-10-22T02:47:10.000Z | // ============================================================
// Filename: example1.cpp
//
// Description: Example of using libCoords to calculate the distance
// between two places on earth given the latitude and
// longitude.
//
// Authors: L.R. McFarland
// Created: 2014nov11
/... | 29.484848 | 101 | 0.533402 | lrmcfarland |
9481da597540fc40772c348def0186174892699d | 1,038 | cpp | C++ | Section19/Section19Challenge2/Section19Challenge2/main.cpp | tslothorst/Learning-Cpp | ad7fd6fdcf6678202cc376e910cbdae454fd9273 | [
"MIT"
] | null | null | null | Section19/Section19Challenge2/Section19Challenge2/main.cpp | tslothorst/Learning-Cpp | ad7fd6fdcf6678202cc376e910cbdae454fd9273 | [
"MIT"
] | null | null | null | Section19/Section19Challenge2/Section19Challenge2/main.cpp | tslothorst/Learning-Cpp | ad7fd6fdcf6678202cc376e910cbdae454fd9273 | [
"MIT"
] | null | null | null | #include "main.h"
#include<iostream>
#include<iomanip>
#include<fstream>
int main()
{
std::ifstream respons_file{ "responses.txt" };
if (!respons_file)
{
std::cerr << "Error reading from file \n";
return 1;
}
int TotalScore{ 0 };
int Loops{ 0 };
std::cout << std::setw(15) << std::left << "Student Name" ... | 21.625 | 137 | 0.603083 | tslothorst |
94832a40d4f9febcc9a78a17024ba8617b66ec9a | 6,445 | cpp | C++ | test/storage/rocks_storage_test.cpp | overcookedpanda/alt-integration-cpp | 7932e79a77d9514ca0e0354636e77fba1845d707 | [
"MIT"
] | null | null | null | test/storage/rocks_storage_test.cpp | overcookedpanda/alt-integration-cpp | 7932e79a77d9514ca0e0354636e77fba1845d707 | [
"MIT"
] | null | null | null | test/storage/rocks_storage_test.cpp | overcookedpanda/alt-integration-cpp | 7932e79a77d9514ca0e0354636e77fba1845d707 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "util/literals.hpp"
#include "veriblock/entities/btcblock.hpp"
#include "veriblock/entities/vbkblock.hpp"
#include "veriblock/storage/repository_rocks_manager.hpp"
using namespace altintegration;
static const BtcBlock btcBlock1{
536870912u,
"f7de2995898800ab109af96779b979a60... | 32.550505 | 79 | 0.72211 | overcookedpanda |
94859520e671f98ba1f768f4985a1a57a580c39e | 5,627 | cpp | C++ | Source/ALSV4_CPP/Private/Character/AAADPlayerState.cpp | StomatoGod/ALSV4_CPP | 9c9acbc7f7167194d241016efd4abd5d94e7e41f | [
"MIT"
] | null | null | null | Source/ALSV4_CPP/Private/Character/AAADPlayerState.cpp | StomatoGod/ALSV4_CPP | 9c9acbc7f7167194d241016efd4abd5d94e7e41f | [
"MIT"
] | null | null | null | Source/ALSV4_CPP/Private/Character/AAADPlayerState.cpp | StomatoGod/ALSV4_CPP | 9c9acbc7f7167194d241016efd4abd5d94e7e41f | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Character/AAADPlayerState.h"
#include "Character/ALSPlayerController.h"
#include "Net/UnrealNetwork.h"
#include "Character/ALSBaseCharacter.h"
#include "Net/OnlineEngineInterface.h"
//TODO: Score points function, create game state... | 24.150215 | 176 | 0.762573 | StomatoGod |
9485d15779ba205e1c8b88655a60df3cab4d4507 | 773 | cxx | C++ | src/configs/skx2/config_ker.cxx | devinamatthews/tensor | 7d979b6624071879383377611cb2fa483b6a3104 | [
"BSD-3-Clause"
] | 86 | 2016-05-30T16:08:24.000Z | 2022-03-30T22:57:35.000Z | src/configs/skx2/config_ker.cxx | devinamatthews/tensor | 7d979b6624071879383377611cb2fa483b6a3104 | [
"BSD-3-Clause"
] | 41 | 2017-02-02T22:28:17.000Z | 2022-02-22T16:51:14.000Z | src/configs/skx2/config_ker.cxx | devinamatthews/tensor | 7d979b6624071879383377611cb2fa483b6a3104 | [
"BSD-3-Clause"
] | 26 | 2016-05-30T16:08:33.000Z | 2021-12-29T03:02:30.000Z | #include "config.hpp"
#include "util/cpuid.hpp"
namespace tblis
{
//TBLIS_CONFIG_INSTANTIATE(skx_32x6_l1);
//TBLIS_CONFIG_INSTANTIATE(skx_32x6_l2);
//TBLIS_CONFIG_INSTANTIATE(skx_24x8_l1);
//TBLIS_CONFIG_INSTANTIATE(skx_24x8_l2);
//TBLIS_CONFIG_INSTANTIATE(skx_16x12_l1);
TBLIS_CONFIG_INSTANTIATE(skx_16x12_l2);
//TBL... | 28.62963 | 44 | 0.84088 | devinamatthews |
9488cfeb417056612e770cdb67a7e8dd449334a2 | 474 | cpp | C++ | Year - 2020/July Lunch Time/Chef and Steps.cpp | dharanendra23/Code_Chef | d8b58b0b46a14425fdff03c1afca2a7472927b03 | [
"MIT"
] | 1 | 2020-07-19T13:03:28.000Z | 2020-07-19T13:03:28.000Z | Year - 2020/July Lunch Time/Chef and Steps.cpp | dharanendra23/Code_Chef | d8b58b0b46a14425fdff03c1afca2a7472927b03 | [
"MIT"
] | null | null | null | Year - 2020/July Lunch Time/Chef and Steps.cpp | dharanendra23/Code_Chef | d8b58b0b46a14425fdff03c1afca2a7472927b03 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
long long n,k;
cin>>n>>k;
long long a[n];
for(long long i=0;i<n;i++)
{
cin>>a[i];
}
for(long long i=0;i<n;i++)
{
... | 14.363636 | 35 | 0.318565 | dharanendra23 |
94892d8a280958c7e96d412d508f22178493eb4d | 1,140 | cpp | C++ | puzzle10/puzzle10_1.cpp | schnaader/AdventOfCode2021 | 0808282f90e4ef97edf130f228435860f332e1d3 | [
"Apache-2.0"
] | 1 | 2021-12-19T12:34:03.000Z | 2021-12-19T12:34:03.000Z | puzzle10/puzzle10_1.cpp | schnaader/AdventOfCode2021 | 0808282f90e4ef97edf130f228435860f332e1d3 | [
"Apache-2.0"
] | null | null | null | puzzle10/puzzle10_1.cpp | schnaader/AdventOfCode2021 | 0808282f90e4ef97edf130f228435860f332e1d3 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <array>
#include <stack>
int main() {
//std::ifstream input("example.txt");
std::ifstream input("input.txt");
if (!input.is_open()) {
printf("Error opening file\n");
return -1;
}
int64_t... | 16.056338 | 63 | 0.508772 | schnaader |
948ed6d78b891f83c176c47b3d41715e3dc02cb1 | 560 | cpp | C++ | numberoffactors.cpp | s-ritik16n/CP | 64ac351d590bc55c34a77a209a93bec8e8bba34d | [
"MIT"
] | null | null | null | numberoffactors.cpp | s-ritik16n/CP | 64ac351d590bc55c34a77a209a93bec8e8bba34d | [
"MIT"
] | null | null | null | numberoffactors.cpp | s-ritik16n/CP | 64ac351d590bc55c34a77a209a93bec8e8bba34d | [
"MIT"
] | null | null | null | // https://www.codechef.com/problems/NUMFACT
// 31-8-18
#include<iostream>
using namespace std;
int main(){
int t;
cin>>t;
cout<<t;
int a[1000000];
a[0] = 2;
for (int i = 1; i < 1000000; i++) a[i] = a[i-1] + 1;
while (t--) {
int n, count = 0;
cin>>n;
int b[n];
for (int i = 0; i < n; i++)... | 18.666667 | 64 | 0.45 | s-ritik16n |
94966df7101767b7aaf0fdac2522a1b264433af9 | 307 | cpp | C++ | build/utils.cpp | nazandre/VisibleSimConfigGenerator | f9dc4a2ea764fc240f5d517b7ed4202dbbc9540b | [
"MIT"
] | null | null | null | build/utils.cpp | nazandre/VisibleSimConfigGenerator | f9dc4a2ea764fc240f5d517b7ed4202dbbc9540b | [
"MIT"
] | 1 | 2016-07-18T04:32:08.000Z | 2016-08-15T08:49:56.000Z | build/utils.cpp | nazandre/VisibleSimConfigGenerator | f9dc4a2ea764fc240f5d517b7ed4202dbbc9540b | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include "utils.hpp"
using namespace std;
void Utils::swap(int *a, int *b) {
int t = *a;
*a = *b;
*b = t;
}
void Utils::notImplementedYet(string s) {
cerr << "ERROR: This functionality has not been implemented yet... " << s << endl;
exit(EXIT_FAILURE);
}
| 18.058824 | 84 | 0.635179 | nazandre |
94984c68ceaa7bdbbd50b3c6734c2202f9b79d79 | 23,759 | cpp | C++ | build/source/NxOgreGC.cpp | betajaen/nxogre | ab2fb93754fa5876191de2e27a416b501f480180 | [
"MIT"
] | 22 | 2015-03-11T20:32:30.000Z | 2022-03-05T23:16:10.000Z | build/source/NxOgreGC.cpp | betajaen/nxogre | ab2fb93754fa5876191de2e27a416b501f480180 | [
"MIT"
] | 1 | 2021-07-03T14:13:14.000Z | 2021-07-03T14:13:14.000Z | build/source/NxOgreGC.cpp | betajaen/nxogre | ab2fb93754fa5876191de2e27a416b501f480180 | [
"MIT"
] | 13 | 2015-02-09T14:30:24.000Z | 2020-03-20T11:51:55.000Z | /**
This file is part of NxOgre.
Copyright (c) 2009 Robin Southern, http://www.nxogre.org
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, in... | 47.047525 | 148 | 0.55318 | betajaen |
9498f79f29e13336b7724135e4b990a2b530444e | 1,154 | cpp | C++ | src/gameManager/Observer.cpp | Nyarlana/Tactical-RPG | 9b55e35cce5dbeba481d3db7113c15e572b320e1 | [
"MIT"
] | null | null | null | src/gameManager/Observer.cpp | Nyarlana/Tactical-RPG | 9b55e35cce5dbeba481d3db7113c15e572b320e1 | [
"MIT"
] | null | null | null | src/gameManager/Observer.cpp | Nyarlana/Tactical-RPG | 9b55e35cce5dbeba481d3db7113c15e572b320e1 | [
"MIT"
] | null | null | null | #include "Observer.h"
#include "Component.h"
#include <memory>
#include <iostream>
void Subject::notify(Component * subject, Event event)
{
std::shared_ptr<ObsNode> actual = first;
while (actual != nullptr)
{
actual->obs->on_Notify(subject, event);
actual = actual->next;
}
}
void Subje... | 19.559322 | 60 | 0.587522 | Nyarlana |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.