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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f61f053f98ef3234209100fdb0ea8c25f7141a4a | 19 | cpp | C++ | src/Core/x/xDecal.cpp | DarkRTA/bfbbdecomp | e2105e94b8da26f6e6e2dfcf1f004aaaeed9799e | [
"OLDAP-2.7"
] | null | null | null | src/Core/x/xDecal.cpp | DarkRTA/bfbbdecomp | e2105e94b8da26f6e6e2dfcf1f004aaaeed9799e | [
"OLDAP-2.7"
] | 6 | 2022-01-16T05:29:01.000Z | 2022-01-18T01:10:29.000Z | src/Core/x/xDecal.cpp | DarkRTA/bfbbdecomp | e2105e94b8da26f6e6e2dfcf1f004aaaeed9799e | [
"OLDAP-2.7"
] | 1 | 2022-01-16T00:04:23.000Z | 2022-01-16T00:04:23.000Z | #include "xDecal.h" | 19 | 19 | 0.736842 | DarkRTA |
f620716e163bc873971bb4d7ee950bdf35a6a152 | 449 | cpp | C++ | cpp/cpp_primer/chapter13/ex_13_58.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | 2 | 2019-12-21T00:53:47.000Z | 2020-01-01T10:36:30.000Z | cpp/cpp_primer/chapter13/ex_13_58.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | cpp/cpp_primer/chapter13/ex_13_58.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | //
// Created by kaiser on 18-12-25.
//
#include <algorithm>
#include <cstdint>
#include <iostream>
#include <vector>
class Foo {
public:
Foo sorted() && {
std::cout << "&&\n";
std::sort(std::begin(data_), std::end(data_));
return *this;
}
Foo sorted() const& {
std::cout << "&\n";
return Fo... | 14.483871 | 50 | 0.561247 | KaiserLancelot |
f620eb398f444a9bfa266ba0b7d30ecd99e5669d | 6,499 | cpp | C++ | third_party/opencore-audio/aac/dec/src/get_sbr_startfreq.cpp | asveikau/audio | 4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290 | [
"0BSD"
] | null | null | null | third_party/opencore-audio/aac/dec/src/get_sbr_startfreq.cpp | asveikau/audio | 4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290 | [
"0BSD"
] | null | null | null | third_party/opencore-audio/aac/dec/src/get_sbr_startfreq.cpp | asveikau/audio | 4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290 | [
"0BSD"
] | null | null | null | /* ------------------------------------------------------------------
* Copyright (C) 2008 PacketVideo
*
* 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/li... | 34.569149 | 80 | 0.440837 | asveikau |
f625be0cfaba60799d2ab0c5c8128e91c310c451 | 3,237 | cpp | C++ | midi_kit/PatchBay/MidiEventMeter.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | 5 | 2018-09-09T21:01:57.000Z | 2022-03-27T10:01:27.000Z | midi_kit/PatchBay/MidiEventMeter.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | null | null | null | midi_kit/PatchBay/MidiEventMeter.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | 5 | 2018-04-03T01:45:23.000Z | 2021-05-14T08:23:01.000Z | // MidiEventMeter.cpp
// ------------------
// Implements the MidiEventMeter class.
//
// Copyright 1999, Be Incorporated. All Rights Reserved.
// This file may be used under the terms of the Be Sample Code License.
#include <stdio.h>
#include <MidiRoster.h>
#include <MidiProducer.h>
#include <MidiConsumer.h>
#inclu... | 26.317073 | 110 | 0.688292 | return |
f629075c0ed6e111e6c543fd7bce1fe5fb904781 | 2,281 | cpp | C++ | examples/manual/unique.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | examples/manual/unique.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | examples/manual/unique.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | /**************************************************************************
*
* unique.cpp - Example program of unique algorithm.
*
* $Id: //stdlib/dev/examples/stdlib/manual/unique.cpp#11 $
*
***************************************************************************
*
* Copyright (c) 1994-2005 Quovadx, Inc.,... | 36.206349 | 76 | 0.54669 | Hower91 |
f62918a787edb3412b8926fa3f312a9c97386060 | 4,447 | hpp | C++ | include/System/Security/SecurityElement_SecurityAttribute.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/System/Security/SecurityElement_SecurityAttribute.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/System/Security/SecurityElement_SecurityAttribute.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Security.SecurityElement
#in... | 48.336957 | 208 | 0.7387 | RedBrumbler |
f6296105d61e043b07ff4c9b12fbe6609838bc1f | 10,121 | hpp | C++ | include/dish2/services/ResourceSendingService.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | 1 | 2021-02-12T23:53:55.000Z | 2021-02-12T23:53:55.000Z | include/dish2/services/ResourceSendingService.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | null | null | null | include/dish2/services/ResourceSendingService.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | null | null | null | #pragma once
#ifndef DISH2_SERVICES_RESOURCESENDINGSERVICE_HPP_INCLUDE
#define DISH2_SERVICES_RESOURCESENDINGSERVICE_HPP_INCLUDE
#include <cmath>
#include <functional>
#include <limits>
#include <set>
#include <utility>
#include "../../../third-party/conduit/include/uitsl/algorithm/for_each.hpp"
#include "../../../th... | 34.192568 | 82 | 0.64134 | schregardusc |
f62cce28250db29e4821a6691d697d864dc3976a | 3,978 | hpp | C++ | include/bounded/detail/minmax.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 44 | 2020-10-03T21:37:52.000Z | 2022-03-26T10:08:46.000Z | include/bounded/detail/minmax.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 1 | 2021-01-01T23:22:39.000Z | 2021-01-01T23:22:39.000Z | include/bounded/detail/minmax.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | null | null | null | // Copyright David Stone 2017.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <bounded/detail/class.hpp>
#include <bounded/detail/common_type_and_value_category.hpp>
#include <bounded/det... | 34.591304 | 104 | 0.74007 | davidstone |
f62e1234fa1a148eb52e1ac6a306e54ee5500807 | 5,204 | hpp | C++ | include/eve/detail/function/simd/x86/slide_left.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | null | null | null | include/eve/detail/function/simd/x86/slide_left.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | null | null | null | include/eve/detail/function/simd/x86/slide_left.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | null | null | null | //==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... | 34.693333 | 100 | 0.5098 | leha-bot |
f62e4ac3e9bffef5000fa3d3acff38c24289ffe1 | 14,263 | cpp | C++ | Bank.cpp | LLiu6/Eva-CAM | 0ff4f725d12ef17066ee61a6c4b7ce713507a63a | [
"MIT"
] | null | null | null | Bank.cpp | LLiu6/Eva-CAM | 0ff4f725d12ef17066ee61a6c4b7ce713507a63a | [
"MIT"
] | null | null | null | Bank.cpp | LLiu6/Eva-CAM | 0ff4f725d12ef17066ee61a6c4b7ce713507a63a | [
"MIT"
] | null | null | null | #include "Bank.h"
#include "CAM_SubArray.h"
#include "Mat.h"
#include "formula.h"
#include "global.h"
#include "macros.h"
Bank::Bank() {
// TODO Auto-generated constructor stub
initialized = false;
invalid = false;
}
Bank::~Bank() {
// TODO Auto-generated destructor stub
}
void Bank::PrintProperty() {
cout << "... | 53.620301 | 262 | 0.665638 | LLiu6 |
f63b6d50e4b33d161b28afdf225ff44848afd77e | 98 | cpp | C++ | src/data/vector.cpp | jamillosantos/autuofm-walking-gait | d07eb026adf518627fa1cb50234b06d679ec0505 | [
"MIT"
] | null | null | null | src/data/vector.cpp | jamillosantos/autuofm-walking-gait | d07eb026adf518627fa1cb50234b06d679ec0505 | [
"MIT"
] | null | null | null | src/data/vector.cpp | jamillosantos/autuofm-walking-gait | d07eb026adf518627fa1cb50234b06d679ec0505 | [
"MIT"
] | null | null | null | /**
* @author J. Santos <jamillo@gmail.com>
* @date September 20, 2016
*/
#include "vector.h"
| 14 | 40 | 0.622449 | jamillosantos |
f6416654fdf6c8829cd827464ce6327216dd51fd | 1,114 | cpp | C++ | library/unionfind.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | library/unionfind.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | library/unionfind.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | #include <numeric>
#include <vector>
// UnionFind(disjoint set)
class UnionFind {
std::vector<size_t> parents;
std::vector<size_t> rank;
std::vector<size_t> tree_size;
public:
UnionFind(size_t size) : parents(size), rank(size, 0), tree_size(size, 1) {
std::iota(this->parents.begin(), this->parents.end(), 0);
... | 23.208333 | 76 | 0.616697 | arlechann |
f641e997606c545ee6be2721411f22059c1cd889 | 2,090 | hpp | C++ | Volt/src/Volt/Graphics/OpenGL/Buffers.hpp | Oxydros/Volt | e87eba5711c78be0ee4e6eb3edc67c1fcdb8e416 | [
"Apache-2.0"
] | null | null | null | Volt/src/Volt/Graphics/OpenGL/Buffers.hpp | Oxydros/Volt | e87eba5711c78be0ee4e6eb3edc67c1fcdb8e416 | [
"Apache-2.0"
] | null | null | null | Volt/src/Volt/Graphics/OpenGL/Buffers.hpp | Oxydros/Volt | e87eba5711c78be0ee4e6eb3edc67c1fcdb8e416 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Volt/Graphics/Buffers.hpp"
namespace Volt::Graphics::OpenGL
{
//OpenGL implementation of Volt::Graphics::VertexBuffer
class VertexBuffer : public Volt::Graphics::VertexBuffer
{
public:
VertexBuffer(float const *vertices, size_t count);
virtual ~VertexBuffer();
... | 32.153846 | 114 | 0.647847 | Oxydros |
f64506193fcdac04e70171309bf651ab21721991 | 1,475 | cpp | C++ | Source/RuntimeBpExample/Scripting/GrenadeScriptNodes.cpp | HiIAmMoot/RuntimeBPs | 1fe34ae0ea8d9e0ca376c7ec663a0e2cf537c77b | [
"MIT"
] | 61 | 2020-04-30T06:50:47.000Z | 2022-03-25T05:41:29.000Z | Source/RuntimeBpExample/Scripting/GrenadeScriptNodes.cpp | monizka/RuntimeBPs | 8def2f98bed6d2d5705c12ffe54c3f7123395265 | [
"MIT"
] | 7 | 2020-11-09T14:40:07.000Z | 2021-02-25T01:22:32.000Z | Source/RuntimeBpExample/Scripting/GrenadeScriptNodes.cpp | monizka/RuntimeBPs | 8def2f98bed6d2d5705c12ffe54c3f7123395265 | [
"MIT"
] | 21 | 2020-05-23T16:39:29.000Z | 2022-03-25T05:41:31.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "GrenadeScriptNodes.h"
#include "RuntimeBlueprints/RuntimeBpMacros.h"
#include "RuntimeBlueprints/RuntimeBpConstructor.h"
#include "Kismet/KismetStringLibrary.h"
/**
* Called when an explosion starts
*/
UGrenadeExplode::UGrenadeEx... | 34.302326 | 247 | 0.805424 | HiIAmMoot |
f64c3ab25d060f6d36011d60882c89920602c9d4 | 3,391 | hpp | C++ | src/Domain/BoundaryConditions/Periodic.hpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | src/Domain/BoundaryConditions/Periodic.hpp | GitHimanshuc/spectre | 4de4033ba36547113293fe4dbdd77591485a4aee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | src/Domain/BoundaryConditions/Periodic.hpp | geoffrey4444/spectre | 9350d61830b360e2d5b273fdd176dcc841dbefb0 | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <memory>
#include <pup.h>
#include "Domain/BoundaryConditions/BoundaryCondition.hpp"
#include "Options/Options.hpp"
#include "Parallel/CharmPupable.hpp"
#include "Utilities/TMPL.hpp"
namespace domain::BoundaryConditions {
//... | 33.574257 | 80 | 0.758183 | nilsvu |
f64cadc899508f6a334d0e9d31d4c01a837823d0 | 1,840 | cpp | C++ | src/opbox/ops/OpCount.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-01-25T21:21:07.000Z | 2021-04-29T17:24:00.000Z | src/opbox/ops/OpCount.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 8 | 2018-10-09T14:35:30.000Z | 2020-09-30T20:09:42.000Z | src/opbox/ops/OpCount.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-04-23T19:01:36.000Z | 2021-05-11T07:44:55.000Z | // Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#include <iostream>
#include <chrono>
#include <thread>
#include <sstream>
#include <map>
#include "faodel-commo... | 25.205479 | 127 | 0.668478 | faodel |
f65164f11a0a704283692bb0820509cd5e661b66 | 3,954 | hpp | C++ | shared_model/interfaces/base/signable.hpp | steephengeorge/iroha | 9e0e19035308c6ebaf706f709c5b7b3ac46e708b | [
"Apache-2.0"
] | null | null | null | shared_model/interfaces/base/signable.hpp | steephengeorge/iroha | 9e0e19035308c6ebaf706f709c5b7b3ac46e708b | [
"Apache-2.0"
] | null | null | null | shared_model/interfaces/base/signable.hpp | steephengeorge/iroha | 9e0e19035308c6ebaf706f709c5b7b3ac46e708b | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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/LICENS... | 29.954545 | 80 | 0.636318 | steephengeorge |
f651f361d37676da86178c6b382b80ba3b6c8ea7 | 4,912 | cpp | C++ | ODFAEG/src/odfaeg/Math/distribution.cpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 5 | 2015-06-13T13:11:59.000Z | 2020-04-17T23:10:23.000Z | ODFAEG/src/odfaeg/Math/distribution.cpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 4 | 2019-01-07T11:46:21.000Z | 2020-02-14T15:04:15.000Z | ODFAEG/src/odfaeg/Math/distribution.cpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 4 | 2016-01-05T09:54:57.000Z | 2021-01-06T18:52:26.000Z |
/////////////////////////////////////////////////////////////////////////////////
//
// Thor C++ Library
// Copyright (c) 2011-2014 Jan Haller
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this... | 37.212121 | 222 | 0.47842 | Cwc-Test |
f652a71a22dae1054c6f15fb8c7d0c29dfe71f60 | 291 | cpp | C++ | software/PC/src/main.cpp | Squantor/oven_controller | 6137674dec8b9c74423a35cbdf6b7c5f2976d5ac | [
"MIT"
] | 2 | 2021-04-25T12:13:31.000Z | 2021-09-22T23:10:11.000Z | software/PC/src/main.cpp | Squantor/oven_controller | 6137674dec8b9c74423a35cbdf6b7c5f2976d5ac | [
"MIT"
] | null | null | null | software/PC/src/main.cpp | Squantor/oven_controller | 6137674dec8b9c74423a35cbdf6b7c5f2976d5ac | [
"MIT"
] | 1 | 2021-03-05T07:11:58.000Z | 2021-03-05T07:11:58.000Z | /*
SPDX-License-Identifier: MIT
Copyright (c) 2021 Bart Bilos
For conditions of distribution and use, see LICENSE file
*/
#include <test.h>
#include <stdio.h>
#include <iostream>
int main(int argc, char *argv[])
//int main()
{
testfunc();
printf("Hello World!\n");
return 0;
}
| 16.166667 | 56 | 0.670103 | Squantor |
f65409c2ff4756bf2fdcbdbb337e351e634c08a4 | 3,015 | cpp | C++ | Misli/Source/Common/Logger.cpp | mmatokovi/mmatokovi_engine | 951a92868519d7739d3e0320a8b8c1c64c4a318f | [
"MIT"
] | 1 | 2022-02-07T13:06:00.000Z | 2022-02-07T13:06:00.000Z | Misli/Source/Common/Logger.cpp | mmatokovi/mmatokovi_engine | 951a92868519d7739d3e0320a8b8c1c64c4a318f | [
"MIT"
] | null | null | null | Misli/Source/Common/Logger.cpp | mmatokovi/mmatokovi_engine | 951a92868519d7739d3e0320a8b8c1c64c4a318f | [
"MIT"
] | null | null | null | #include "Misli.h"
#include <fstream>
#include <Shlobj.h>
#include <cstdio>
#include <tlhelp32.h>
Logger* Logger::inst;
Logger::Logger()
{
inst = this;
}
Logger::~Logger()
{
}
/* Print to our log file with optional arguments */
VOID Logger::PrintLog(const WCHAR* fmt, ...)
{
WCHAR buf[4096];
va_list args;
va_st... | 24.12 | 112 | 0.667662 | mmatokovi |
f65438b5c3ce800abbc826c52f1e5db6289073d0 | 9,490 | cpp | C++ | partition.cpp | Yichen-Si/vt-topmed | e22e964a68e236b190b3038318ca9799f1922e0e | [
"MIT"
] | null | null | null | partition.cpp | Yichen-Si/vt-topmed | e22e964a68e236b190b3038318ca9799f1922e0e | [
"MIT"
] | 1 | 2019-12-26T09:34:03.000Z | 2019-12-26T09:34:03.000Z | partition.cpp | Yichen-Si/vt-topmed | e22e964a68e236b190b3038318ca9799f1922e0e | [
"MIT"
] | 1 | 2021-09-18T18:23:00.000Z | 2021-09-18T18:23:00.000Z | /* The MIT License
Copyright (c) 2013 Adrian Tan <atks@umich.edu>
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 us... | 29.563863 | 148 | 0.482613 | Yichen-Si |
f65a0a6db1ac024a425585a333559567f04ec571 | 5,119 | cpp | C++ | src/globals.cpp | scottwalmsley/QualMS | 7dc54d1b7464e0cf6c78a57544b4ccee8bbb4c68 | [
"Apache-2.0"
] | null | null | null | src/globals.cpp | scottwalmsley/QualMS | 7dc54d1b7464e0cf6c78a57544b4ccee8bbb4c68 | [
"Apache-2.0"
] | null | null | null | src/globals.cpp | scottwalmsley/QualMS | 7dc54d1b7464e0cf6c78a57544b4ccee8bbb4c68 | [
"Apache-2.0"
] | null | null | null | /*
* globals.cpp
* Copyright 2012 Scott Walmsley, Hyungwon Choi and Damian Fermin
*
*/
#include <getopt.h>
#include <iostream>
#include <string>
#include <map>
#include <deque>
#include <cstdlib>
#include <fstream>
#include "boost/multi_array.hpp"
#include "boost/filesystem.hpp"
#include "boost/regex.hpp"
#inclu... | 24.37619 | 99 | 0.603047 | scottwalmsley |
2ceb82ecbdc9af222dc8e7ab4e5116e82145976d | 194 | cpp | C++ | Code full house/bt buoi 3 - nguyen dinh trung duc/bai21 printf.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/bt buoi 3 - nguyen dinh trung duc/bai21 printf.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/bt buoi 3 - nguyen dinh trung duc/bai21 printf.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | /* bai 21 */
#include <stdio.h>
int main (){
int i,j,n;
int num=1;
scanf ("%d", &n);
for (i=1; i<=n; i++){
for (j=1; j<=i; j++){
printf ("%d",num);
num++;
}
printf ("\n");
}
}
| 12.125 | 23 | 0.417526 | ducyb2001 |
2cf5edf57acac3a38cfcd5a190060f2e14bf0c5e | 632 | cpp | C++ | app/main.cpp | BlackPhrase/DLL-Bin-Compat-CPP-Interface | 0ea7111afdb618c139f3f12f205cbbccd37f1368 | [
"Unlicense"
] | null | null | null | app/main.cpp | BlackPhrase/DLL-Bin-Compat-CPP-Interface | 0ea7111afdb618c139f3f12f205cbbccd37f1368 | [
"Unlicense"
] | null | null | null | app/main.cpp | BlackPhrase/DLL-Bin-Compat-CPP-Interface | 0ea7111afdb618c139f3f12f205cbbccd37f1368 | [
"Unlicense"
] | null | null | null | #include <cstdlib>
#include <windows.h>
#include "IPlugin.hpp"
#ifdef USE_NAMESPACES
using namespace pluginspace;
#endif
int main(int argc, char **argv)
{
auto hPlugin{LoadLibrary("liblib")};
if(!hPlugin)
return EXIT_FAILURE;
auto fnGetPlugin{(pfnGetPlugin)GetProcAddress(hPlugin, "GetPlugin")};
if(!fnGetP... | 15.414634 | 70 | 0.710443 | BlackPhrase |
2cf6347851383f05c02465800ad5dc8ee49c2120 | 2,180 | hpp | C++ | gecode/third-party/boost/config/compiler/clang.hpp | guidotack/gecode | 027c57889d66dd26ad8e1a419c2cda22ab0cf305 | [
"MIT-feh"
] | 216 | 2016-07-11T12:44:44.000Z | 2022-03-24T01:48:06.000Z | gecode/third-party/boost/config/compiler/clang.hpp | guidotack/gecode | 027c57889d66dd26ad8e1a419c2cda22ab0cf305 | [
"MIT-feh"
] | 105 | 2018-02-01T15:51:15.000Z | 2022-03-05T16:10:36.000Z | gecode/third-party/boost/config/compiler/clang.hpp | guidotack/gecode | 027c57889d66dd26ad8e1a419c2cda22ab0cf305 | [
"MIT-feh"
] | 73 | 2016-02-15T07:09:36.000Z | 2022-03-22T23:10:26.000Z | // (C) Copyright Douglas Gregor 2010
//
// Use, modification and distribution are 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)
// See http://www.boost.org for most recent version.
// Clang compiler setup.
#if _... | 25.348837 | 73 | 0.837615 | guidotack |
2cf738ac27e22932ef159db5f477031cf76b3479 | 7,671 | cpp | C++ | tests/parallel/get_var_datatype_gensimcell.cpp | nasailja/gensimcell | 65726d0bfffff3f4dfd526a925974c32b37cec5e | [
"BSD-3-Clause"
] | null | null | null | tests/parallel/get_var_datatype_gensimcell.cpp | nasailja/gensimcell | 65726d0bfffff3f4dfd526a925974c32b37cec5e | [
"BSD-3-Clause"
] | null | null | null | tests/parallel/get_var_datatype_gensimcell.cpp | nasailja/gensimcell | 65726d0bfffff3f4dfd526a925974c32b37cec5e | [
"BSD-3-Clause"
] | null | null | null | /*
Tests get_var_mpi_datatype for an array of generic simulation cells.
Copyright 2014, 2015, 2016 Ilja Honkonen
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 re... | 25.15082 | 80 | 0.724677 | nasailja |
2cf77b6c449def2ee1378188dc7bfd382fa0531f | 1,207 | cpp | C++ | sp/src/game/client/grid/c_grid_sun.cpp | GWoody/source-sdk-2013 | e362ab3008d8ce68cfca8fcb780451f42c8e6102 | [
"Unlicense"
] | null | null | null | sp/src/game/client/grid/c_grid_sun.cpp | GWoody/source-sdk-2013 | e362ab3008d8ce68cfca8fcb780451f42c8e6102 | [
"Unlicense"
] | null | null | null | sp/src/game/client/grid/c_grid_sun.cpp | GWoody/source-sdk-2013 | e362ab3008d8ce68cfca8fcb780451f42c8e6102 | [
"Unlicense"
] | null | null | null | /*
===============================================================================
c_grid_sun.cpp
Extends the base Source Engine sun with real time movement.
===============================================================================
*/
#include "cbase.h"
#include "c_sun.h"
//---------------------------------... | 28.738095 | 79 | 0.352941 | GWoody |
2cf988ad83b9d2d2cebd2af156a5373d1ca7423d | 21,299 | cpp | C++ | Samples/Win7Samples/dataaccess/OPC/MusicBundle/Util.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/dataaccess/OPC/MusicBundle/Util.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/dataaccess/OPC/MusicBundle/Util.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | //<SnippetMusicBundle_cppUtilWholePage>
/*****************************************************************************
*
* File: Util.cpp
*
* Description: This file contains definitions for helper classes and functions.
*
* ------------------------------------
*
* This file is part of the Microsoft Windows SD... | 31.98048 | 106 | 0.533264 | windows-development |
fa01b63f34eaa1a5a9bb079df72b9e2b1555ebe3 | 2,278 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/svl/detail/widgets/push_button_impl.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/svl/detail/widgets/push_button_impl.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/svl/detail/widgets/push_button_impl.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null |
namespace svl
{
push_button::push_button()
{
w32_create_child_window( WS_CLIPCHILDREN, 0 );
pushed_ = false;
mkey_down_ = false;
auto_ = true;
}
push_button::push_button(str_ref caption, bool pushed)
{
w32_create_child_window( WS_CLIPCHILDREN, 0 );
btn_.set_caption( caption );
pushed_ = pushed;
... | 17.937008 | 129 | 0.658911 | yklishevich |
fa09c636d242dc96a85d8116d84e46fb73b43d71 | 2,763 | cpp | C++ | unittest/test_trie.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | unittest/test_trie.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | unittest/test_trie.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include "tree/trie.h"
namespace unittest {
TEST(test_trie, search) {
::algo::Trie<uint32_t> trie;
const char* key1 = "keyword";
const char* key2 = "key";
uint32_t value = 0;
// passed-key don't exist.
ASSERT_EQ(trie.search(key1, &value), false);
// invalid passed-key.
ASSERT_EQ(tr... | 21.418605 | 47 | 0.671734 | JeraKrs |
fa0a86c42404a684b840e396734bd1da81174381 | 3,911 | cpp | C++ | dali/devel-api/threading/conditional-wait.cpp | vcebollada/dali-core | 1f880695d4f6cb871db7f946538721e882ba1633 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | dali/devel-api/threading/conditional-wait.cpp | vcebollada/dali-core | 1f880695d4f6cb871db7f946538721e882ba1633 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-03-22T10:19:17.000Z | 2020-03-22T10:19:17.000Z | dali/devel-api/threading/conditional-wait.cpp | fayhot/dali-core | a69ea317f30961164520664a645ac36c387055ef | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* 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... | 26.073333 | 90 | 0.716952 | vcebollada |
fa0dc5ef982c816ec28bbb8f2a26669c8e704f5e | 1,039 | cpp | C++ | COJ.UCI.CU/Cow multiplication (1188).cpp | Trx21-5672/IMEC-8A-5672 | ff4f0f4bcd61425a9eccba7be1fb646849360d45 | [
"MIT"
] | null | null | null | COJ.UCI.CU/Cow multiplication (1188).cpp | Trx21-5672/IMEC-8A-5672 | ff4f0f4bcd61425a9eccba7be1fb646849360d45 | [
"MIT"
] | 1 | 2020-04-05T03:13:08.000Z | 2020-04-05T03:13:08.000Z | COJ.UCI.CU/Cow multiplication (1188).cpp | Trx21-5672/IMEC-8A-5672 | ff4f0f4bcd61425a9eccba7be1fb646849360d45 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
char cow1[10];
char cow2[10];
long cow3[10];
long cow4[10];
long res=0;
void getcow1()
{
for(int i=0;i<sizeof(cow1);i++)
{
if ((cow1[i]-48)>0)
cow3[i]=(cow1[i]-48);
else
cow3[i]=0;
}
}
void getcow2()
{
for(int i=0;... | 14.842857 | 39 | 0.395573 | Trx21-5672 |
fa15d84c1a9d8e17e1123fce058135c987beb917 | 547 | cpp | C++ | src/levels/level.cpp | TomSavas/ScrewGeometry | 396a6302220de2fcd7f9a947b5c5a508c28ded69 | [
"MIT"
] | null | null | null | src/levels/level.cpp | TomSavas/ScrewGeometry | 396a6302220de2fcd7f9a947b5c5a508c28ded69 | [
"MIT"
] | null | null | null | src/levels/level.cpp | TomSavas/ScrewGeometry | 396a6302220de2fcd7f9a947b5c5a508c28ded69 | [
"MIT"
] | null | null | null | #include "levels/level.h"
Level::~Level()
{
}
void Level::Load()
{
}
std::vector<Portal*> &Level::Portals()
{
return portals;
}
const std::unordered_map<std::string, DrawableGameObject*> &Level::Objects() const
{
return objects;
}
DrawableGameObject *Level::Object(std::string objectName)
{
if (objects... | 15.628571 | 82 | 0.678245 | TomSavas |
fa16a56aee55082b516f8321ff59768d6622ac02 | 6,866 | cpp | C++ | test/test_astrolabe_header_file_parser/src/main.cpp | jose-navarro/ASTROLABE | 95482bf4ecd7c22e0bcef18aeae0d8b828b3327c | [
"MIT"
] | null | null | null | test/test_astrolabe_header_file_parser/src/main.cpp | jose-navarro/ASTROLABE | 95482bf4ecd7c22e0bcef18aeae0d8b828b3327c | [
"MIT"
] | 3 | 2019-05-28T05:34:50.000Z | 2019-12-09T12:58:22.000Z | test/test_astrolabe_header_file_parser/src/main.cpp | jose-navarro/astrolabe | 95482bf4ecd7c22e0bcef18aeae0d8b828b3327c | [
"MIT"
] | null | null | null | #include "gp_astrolabe_header_file_data.hpp"
#include "gp_astrolabe_header_file_parser.hpp"
#include <iostream>
using namespace std;
int main
(int argC, char* argV[])
{
{
// The parser for astrolabe header files.
gp_astrolabe_header_file_parser astrolabe_header_parser;
//
// The data object that ... | 27.246032 | 111 | 0.56991 | jose-navarro |
fa16f1f7207253d78ec7daf3777889c46a98bc3e | 4,677 | cpp | C++ | src/optimisationProblem/kinematicallyRedundantMachines/parallelKinematicMachine3PRPR.cpp | OpusV/AstroMechanics | 3fe7a5462fce575c465be372d1c69bf788784297 | [
"MIT"
] | 1 | 2019-11-08T22:06:56.000Z | 2019-11-08T22:06:56.000Z | src/optimisationProblem/kinematicallyRedundantMachines/parallelKinematicMachine3PRPR.cpp | OpusV/AstroMechanics | 3fe7a5462fce575c465be372d1c69bf788784297 | [
"MIT"
] | null | null | null | src/optimisationProblem/kinematicallyRedundantMachines/parallelKinematicMachine3PRPR.cpp | OpusV/AstroMechanics | 3fe7a5462fce575c465be372d1c69bf788784297 | [
"MIT"
] | null | null | null | #include "mantella_bits/optimisationProblem/kinematicallyRedundantMachines/parallelKinematicMachine3PRPR.hpp"
// C++ standard library
#include <algorithm>
#include <cassert>
#include <functional>
#include <limits>
#include <string>
#include <utility>
// Mantella
#include "mantella_bits/geometry.hpp"
// The following... | 50.836957 | 191 | 0.629036 | OpusV |
fa1f8aa4bd0edf939b2b0074a9f287aaf3ab0ce1 | 11,871 | cpp | C++ | Plugins/PLRendererOpenGLES2/src/ExtensionsRuntimeLinking.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Plugins/PLRendererOpenGLES2/src/ExtensionsRuntimeLinking.cpp | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Plugins/PLRendererOpenGLES2/src/ExtensionsRuntimeLinking.cpp | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: ExtensionsRuntimeLinking.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 35.017699 | 124 | 0.64965 | ktotheoz |
fa246e65a21506ae539569a4b30e13244e7faffa | 272,038 | hpp | C++ | missions/po4.tanoa/MPSF/maps/takistan.hpp | ademirt/Arma3 | f75c28f59deb45e56d021d9d1d3458b145432bd8 | [
"MIT"
] | null | null | null | missions/po4.tanoa/MPSF/maps/takistan.hpp | ademirt/Arma3 | f75c28f59deb45e56d021d9d1d3458b145432bd8 | [
"MIT"
] | null | null | null | missions/po4.tanoa/MPSF/maps/takistan.hpp | ademirt/Arma3 | f75c28f59deb45e56d021d9d1d3458b145432bd8 | [
"MIT"
] | null | null | null | /*
CfgMissionData Generator
Contributor: Eightysix
World: Takistan
*/
class Takistan {
class Sectors {
radius = 1000;
class sector_05000500 {
position[] = {500,500,0};
orientation[] = {500,500,0};
isWater = 0;
typeFlags[] = {"Air","Hill","Trees"};
areas[] = {"Air_2","Hill_154","Trees_318","Trees... | 26 | 231 | 0.600857 | ademirt |
fa2560b88c3f7c3a96619d68bcf7f70f1ada8a6f | 2,062 | cpp | C++ | pass/lec/lec_test1.cpp | maximiliantiao/livehd | 88215f0d6fc395db96e6ed058f00b9205454bd0c | [
"BSD-3-Clause"
] | null | null | null | pass/lec/lec_test1.cpp | maximiliantiao/livehd | 88215f0d6fc395db96e6ed058f00b9205454bd0c | [
"BSD-3-Clause"
] | null | null | null | pass/lec/lec_test1.cpp | maximiliantiao/livehd | 88215f0d6fc395db96e6ed058f00b9205454bd0c | [
"BSD-3-Clause"
] | null | null | null | // This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#include <unistd.h>
#include <string>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "eprp_utils.hpp"
#include "lgraph.hpp"
#include "pass_lec.hpp"
#include "ezsat.hpp"
#include "ezminisat.hpp"
using testing::HasSubs... | 25.775 | 89 | 0.628031 | maximiliantiao |
fa26d3d45072c260ea21c4573022361aa0719a9f | 1,615 | cpp | C++ | codeforces/C - Amr and Chemistry/Wrong answer on test 7.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - Amr and Chemistry/Wrong answer on test 7.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - Amr and Chemistry/Wrong answer on test 7.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Mar/29/2018 15:40
* solution_verdict: Wrong answer on test 7 language: GNU C++14
* run... | 22.746479 | 111 | 0.346749 | kzvd4729 |
fa2f882d0f928874c53da676a98e00efe4019cec | 512 | cpp | C++ | exercise/CMake/CMake_07/tutorial.cpp | caliyang/TKeed_annotated_version_LY | 55183574c335cd6717b8e1e35b0b7a85a8937e55 | [
"MIT"
] | null | null | null | exercise/CMake/CMake_07/tutorial.cpp | caliyang/TKeed_annotated_version_LY | 55183574c335cd6717b8e1e35b0b7a85a8937e55 | [
"MIT"
] | null | null | null | exercise/CMake/CMake_07/tutorial.cpp | caliyang/TKeed_annotated_version_LY | 55183574c335cd6717b8e1e35b0b7a85a8937e55 | [
"MIT"
] | null | null | null | // 计算平方根的简单程序。
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "build/Config.h"
int main(int argc, char *argv[])
{
#ifdef CMAKEDEFINE_VAR1
fprintf(stdout, "CMAKEDEFINE_VAR1 = %d\n", CMAKEDEFINE_VAR1);
#endif
#ifdef CMAKEDEFINE_VAR2
fprintf(stdout, "CMAKEDEFINE_VAR2 = %d\n", CMAKEDEFINE_VAR2... | 18.962963 | 65 | 0.701172 | caliyang |
fa308bf1ed8f677b0cca7a5e5cf0e5079f004eee | 4,550 | cpp | C++ | src/game/client/dod/dod_hud_warmuplabel.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/client/dod/dod_hud_warmuplabel.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/client/dod/dod_hud_warmuplabel.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "cbase.h"
#include "hud.h"
#include "hudelement.h"
#include "hud_macros.h"
#include "iclientmode.h"
#include "vgui_controls/Animation... | 30.536913 | 128 | 0.566154 | cstom4994 |
fa3170c5f62d1af250991c9008570d9d22c7783b | 3,469 | cpp | C++ | src/essence.game/packets/lobby/LobbyPacketHandler.cpp | Deluze/qpang-essence-emulator | 943189161fd1fb8022221f24524a18244724edd6 | [
"MIT"
] | 15 | 2019-12-04T14:36:09.000Z | 2021-06-11T12:00:04.000Z | src/essence.game/packets/lobby/LobbyPacketHandler.cpp | Deluze/qpang-essence-emulator | 943189161fd1fb8022221f24524a18244724edd6 | [
"MIT"
] | 6 | 2019-12-24T11:28:01.000Z | 2020-03-31T00:14:50.000Z | src/essence.game/packets/lobby/LobbyPacketHandler.cpp | Deluze/qpang-essence-emulator | 943189161fd1fb8022221f24524a18244724edd6 | [
"MIT"
] | 21 | 2019-12-04T14:35:56.000Z | 2022-02-14T20:59:31.000Z | #include "LobbyPacketHandler.h"
#include "GiftCardEvent.h"
#include "UseCraneEvent.h"
#include "packets/lobby/incoming/Handshake.h"
#include "packets/lobby/incoming/Login.h"
#include "packets/lobby/incoming/channel/RequestChannelList.h"
#include "packets/lobby/incoming/channel/RequestChannelHost.h"
#include "packets... | 44.474359 | 75 | 0.794465 | Deluze |
fa328991ce863536c6dc69779cc6749fee183bfd | 1,357 | hpp | C++ | Versionen/2021_06_15/rmf_ws/install/rmf_task_msgs/include/rmf_task_msgs/msg/detail/task_profile__traits.hpp | flitzmo-hso/flitzmo_agv_control_system | 99e8006920c03afbd93e4c7d38b4efff514c7069 | [
"MIT"
] | null | null | null | Versionen/2021_06_15/rmf_ws/install/rmf_task_msgs/include/rmf_task_msgs/msg/detail/task_profile__traits.hpp | flitzmo-hso/flitzmo_agv_control_system | 99e8006920c03afbd93e4c7d38b4efff514c7069 | [
"MIT"
] | null | null | null | Versionen/2021_06_15/rmf_ws/install/rmf_task_msgs/include/rmf_task_msgs/msg/detail/task_profile__traits.hpp | flitzmo-hso/flitzmo_agv_control_system | 99e8006920c03afbd93e4c7d38b4efff514c7069 | [
"MIT"
] | 2 | 2021-06-21T07:32:09.000Z | 2021-08-17T03:05:38.000Z | // generated from rosidl_generator_cpp/resource/idl__traits.hpp.em
// with input from rmf_task_msgs:msg/TaskProfile.idl
// generated code does not contain a copyright notice
#ifndef RMF_TASK_MSGS__MSG__DETAIL__TASK_PROFILE__TRAITS_HPP_
#define RMF_TASK_MSGS__MSG__DETAIL__TASK_PROFILE__TRAITS_HPP_
#include "rmf_task_m... | 27.693878 | 66 | 0.801032 | flitzmo-hso |
fa3ad12678c135087538cb4d5c14b3d41c0ada5d | 11,793 | cc | C++ | src/parsing/pattern-rewriter.cc | Drieger/v8 | 93283bf04ae3fd96592b4090e90ac75130aa9d52 | [
"BSD-3-Clause"
] | null | null | null | src/parsing/pattern-rewriter.cc | Drieger/v8 | 93283bf04ae3fd96592b4090e90ac75130aa9d52 | [
"BSD-3-Clause"
] | null | null | null | src/parsing/pattern-rewriter.cc | Drieger/v8 | 93283bf04ae3fd96592b4090e90ac75130aa9d52 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/ast/ast.h"
#include "src/message-template.h"
#include "src/objects-inl.h"
#include "src/parsing/expression-scope-reparenter.h"
#include "s... | 36.968652 | 80 | 0.7401 | Drieger |
fa47c82e607d77978bdc943a7afa5e6900d5eb69 | 11,640 | hpp | C++ | include/lxgui/gui_button.hpp | cschreib/lxgui | b317774d9b4296dda8a70b994950987378a05678 | [
"MIT"
] | 50 | 2015-01-15T10:00:31.000Z | 2022-02-04T20:45:25.000Z | include/lxgui/gui_button.hpp | cschreib/lxgui | b317774d9b4296dda8a70b994950987378a05678 | [
"MIT"
] | 88 | 2020-03-15T17:40:04.000Z | 2022-03-15T08:21:44.000Z | include/lxgui/gui_button.hpp | cschreib/lxgui | b317774d9b4296dda8a70b994950987378a05678 | [
"MIT"
] | 19 | 2017-03-11T04:32:01.000Z | 2022-01-12T22:47:12.000Z | #ifndef LXGUI_GUI_BUTTON_HPP
#define LXGUI_GUI_BUTTON_HPP
#include <lxgui/lxgui.hpp>
#include <lxgui/utils.hpp>
#include <lxgui/utils_string.hpp>
#include "lxgui/gui_frame.hpp"
#include <string>
namespace lxgui {
namespace gui
{
class texture;
class font_string;
/// A #frame with a butto... | 37.070064 | 111 | 0.604467 | cschreib |
fa48027134baf80cd892629cd2afc5faf917983e | 1,474 | cpp | C++ | src/Libs/CodecUtils/IntraDCH263VlcDecoder.cpp | miseri/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | 1 | 2021-07-14T08:15:05.000Z | 2021-07-14T08:15:05.000Z | src/Libs/CodecUtils/IntraDCH263VlcDecoder.cpp | 7956968/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | null | null | null | src/Libs/CodecUtils/IntraDCH263VlcDecoder.cpp | 7956968/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | 2 | 2021-07-14T08:15:02.000Z | 2021-07-14T08:56:10.000Z | /** @file
MODULE : IntraDCH263VlcDecoder
TAG : IDH263VD
FILE NAME : IntraDCH263VlcDecoder.cpp
DESCRIPTION : A class to implement a Intra DC coeff decoder as defined
in the ITU-T Recommendation H.263 (02/98) Section 5.4.1
Page 41. There is no Esc coding requirements. ... | 26.321429 | 79 | 0.56038 | miseri |
fa580804fb6bc869cf448eb82e0b774c54c56bb0 | 1,561 | cpp | C++ | Leetcode Solution/Top 100 Liked Questions/Hard/84. Largest Rectangle in Histogram.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 169 | 2021-05-30T10:02:19.000Z | 2022-03-27T18:09:32.000Z | Leetcode Solution/Top 100 Liked Questions/Hard/84. Largest Rectangle in Histogram.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 1 | 2021-10-02T14:46:26.000Z | 2021-10-02T14:46:26.000Z | Leetcode Solution/Top 100 Liked Questions/Hard/84. Largest Rectangle in Histogram.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 44 | 2021-05-30T19:56:29.000Z | 2022-03-17T14:49:00.000Z |
class Solution {
public:
int largestRectangleArea(vector<int>& h) {
vector<int> l;
vector<int> r;
stack<int> sl;
stack<int> sr;
int n=h.size();
for(int i=n-1;i>=0;i--)
{
while(sr.size()>0 && h[sr.to... | 26.457627 | 59 | 0.232543 | bilwa496 |
fa5c65dfc320721c37a2ede54fb5f64186cc6094 | 2,491 | cpp | C++ | TouchMindLib/touchmind/control/StatusBar.cpp | yohei-yoshihara/TouchMind | 3ad878aacde7322ae7c4f94d462e0a2d4a24d3fa | [
"MIT"
] | 15 | 2015-07-10T05:03:27.000Z | 2021-06-08T08:24:46.000Z | TouchMindLib/touchmind/control/StatusBar.cpp | yohei-yoshihara/TouchMind | 3ad878aacde7322ae7c4f94d462e0a2d4a24d3fa | [
"MIT"
] | null | null | null | TouchMindLib/touchmind/control/StatusBar.cpp | yohei-yoshihara/TouchMind | 3ad878aacde7322ae7c4f94d462e0a2d4a24d3fa | [
"MIT"
] | 10 | 2015-01-04T01:23:56.000Z | 2020-12-29T11:35:47.000Z | #include "StdAfx.h"
#include "touchmind/Common.h"
#include "touchmind/logging/Logging.h"
#include "touchmind/control/StatusBar.h"
touchmind::control::StatusBar::StatusBar(void)
: m_hWnd(nullptr)
, m_parehtHWnd(nullptr)
, m_numberOfParts(0) {
}
touchmind::control::StatusBar::~StatusBar(void) {
}
HRESULT t... | 28.306818 | 118 | 0.702529 | yohei-yoshihara |
fa63a0e4c7a3e9edae88e956c8a15d2deb163a3b | 1,729 | cpp | C++ | iroha-master/shared_model/backend/protobuf/queries/impl/proto_get_account_assets.cpp | rogelcorral/My-Iroha-Playground | c370a114e6039f8667c2b68b7dcb10e4c387c67d | [
"Apache-2.0"
] | 1 | 2019-06-23T12:47:19.000Z | 2019-06-23T12:47:19.000Z | shared_model/backend/protobuf/queries/impl/proto_get_account_assets.cpp | ecsantana76/iroha | 9cc430bb2c8eb885393e2a636fa92d1e605443ae | [
"Apache-2.0"
] | 8 | 2017-12-25T05:25:58.000Z | 2018-01-20T10:12:45.000Z | shared_model/backend/protobuf/queries/impl/proto_get_account_assets.cpp | ecsantana76/iroha | 9cc430bb2c8eb885393e2a636fa92d1e605443ae | [
"Apache-2.0"
] | 1 | 2018-01-18T18:23:09.000Z | 2018-01-18T18:23:09.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "backend/protobuf/queries/proto_get_account_assets.hpp"
namespace shared_model {
namespace proto {
template <typename QueryType>
GetAccountAssets::GetAccountAssets(QueryType &&query)
: Copy... | 33.25 | 80 | 0.65587 | rogelcorral |
fa6a48b7b99af2f705ab9113f5451695d9619938 | 4,353 | cpp | C++ | bmlb/src/v20180625/model/CreateLoadBalancerBzConf.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | bmlb/src/v20180625/model/CreateLoadBalancerBzConf.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | bmlb/src/v20180625/model/CreateLoadBalancerBzConf.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 29.612245 | 148 | 0.713531 | sinjoywong |
fa7577a814aae7199e5a2708e2b61d046f0031aa | 570 | hpp | C++ | include/range.hpp | richard-vock/graphene | 1a721894a9972c8865a1ad0861d500cef8436932 | [
"Unlicense"
] | null | null | null | include/range.hpp | richard-vock/graphene | 1a721894a9972c8865a1ad0861d500cef8436932 | [
"Unlicense"
] | null | null | null | include/range.hpp | richard-vock/graphene | 1a721894a9972c8865a1ad0861d500cef8436932 | [
"Unlicense"
] | null | null | null | #pragma once
#include "common.hpp"
#include "tracked.hpp"
namespace graphene::property {
class range
{
public:
range(std::string label, shared<float> value, bounds<float> range);
template <typename F>
range(std::string label, shared<float> value, bounds<float> range, F func);
template <typename F>
... | 19 | 79 | 0.687719 | richard-vock |
fa7688df8851ae8028ae51f3a8094ed48996f722 | 6,655 | hpp | C++ | static-strings/static-strings.hpp | erdavila/c-plus-plus-11 | ca5d1a1f902ce1004928e91f8f59909f676f2b0e | [
"MIT"
] | null | null | null | static-strings/static-strings.hpp | erdavila/c-plus-plus-11 | ca5d1a1f902ce1004928e91f8f59909f676f2b0e | [
"MIT"
] | null | null | null | static-strings/static-strings.hpp | erdavila/c-plus-plus-11 | ca5d1a1f902ce1004928e91f8f59909f676f2b0e | [
"MIT"
] | null | null | null | #ifndef STATIC_STRINGS_HPP_
#define STATIC_STRINGS_HPP_
#include <string>
#include <type_traits>
namespace static_string {
namespace __impl {
template <size_t Index, typename Char, Char... chars>
struct char_at;
template <size_t N, typename Char, Char x, Char... chars>
struct find;
template <size_t N, siz... | 27.052846 | 117 | 0.643426 | erdavila |
fa76aa97e42de7040426ae5a5350a61926295937 | 190 | hpp | C++ | src/algorithm/Point.hpp | KennFatt/ConvexHull | f1f8321e3a090f49f416b63c13f647459a532be8 | [
"MIT"
] | null | null | null | src/algorithm/Point.hpp | KennFatt/ConvexHull | f1f8321e3a090f49f416b63c13f647459a532be8 | [
"MIT"
] | null | null | null | src/algorithm/Point.hpp | KennFatt/ConvexHull | f1f8321e3a090f49f416b63c13f647459a532be8 | [
"MIT"
] | null | null | null | #ifndef __KF_POINT_H
#define __KF_POINT_H
namespace kf {
struct Point {
int x;
int y;
Point(int _x, int _y)
: x(_x)
, y(_y) {}
};
} // namespace kf
#endif | 11.176471 | 25 | 0.542105 | KennFatt |
fa7b1678ac545061305879fedb981e225b24e295 | 696 | cpp | C++ | src/core/music/trackmetadata.cpp | jimmypoms/couch | 2371ad236a04bf9623098da9b1fdec10997f1dd0 | [
"Apache-2.0"
] | null | null | null | src/core/music/trackmetadata.cpp | jimmypoms/couch | 2371ad236a04bf9623098da9b1fdec10997f1dd0 | [
"Apache-2.0"
] | null | null | null | src/core/music/trackmetadata.cpp | jimmypoms/couch | 2371ad236a04bf9623098da9b1fdec10997f1dd0 | [
"Apache-2.0"
] | null | null | null | /*
* trackmetadata.cpp
*
* Created on: 14 Feb 2016
* Author: jimmypoms
*/
#include "trackmetadata.h"
TrackMetadata::TrackMetadata(QObject *parent) :
AlbumMetadata(parent), m_trackPosition(0)
{
}
const QString &TrackMetadata::track() const
{
return m_track;
}
void TrackMetadata::setTrack(const... | 17.4 | 55 | 0.66954 | jimmypoms |
fa7c6f24c465a7a710aa780ef4de4cd3fa7b65e6 | 1,863 | cpp | C++ | crystal/storage/builder/test/RecordBuilderTest.cpp | crystal-dataop/crystal | 128e1dcde1ef68cabadab9b16d45f5199f0afe5c | [
"Apache-2.0"
] | 2 | 2020-10-02T03:31:50.000Z | 2020-12-31T09:41:48.000Z | crystal/storage/builder/test/RecordBuilderTest.cpp | crystal-dataop/crystal | 128e1dcde1ef68cabadab9b16d45f5199f0afe5c | [
"Apache-2.0"
] | null | null | null | crystal/storage/builder/test/RecordBuilderTest.cpp | crystal-dataop/crystal | 128e1dcde1ef68cabadab9b16d45f5199f0afe5c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2017-present Yeolar
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 31.05 | 75 | 0.63124 | crystal-dataop |
fa8a465f17ad753a34a1a356f794c5701fe4a4fa | 40,260 | cxx | C++ | src/PyBridge.cxx | peerschuett/easy_pbr | 9a2e8117117d194124f800648644e97a7fc3c095 | [
"MIT"
] | null | null | null | src/PyBridge.cxx | peerschuett/easy_pbr | 9a2e8117117d194124f800648644e97a7fc3c095 | [
"MIT"
] | null | null | null | src/PyBridge.cxx | peerschuett/easy_pbr | 9a2e8117117d194124f800648644e97a7fc3c095 | [
"MIT"
] | null | null | null | #include "easy_pbr/PyBridge.h"
#ifdef EASYPBR_WITH_TORCH
#include <torch/extension.h>
#include "torch/torch.h"
#include "torch/csrc/utils/pybind.h"
#include "UtilsPytorch.h"
#endif
// #include "pybind11_tests.h"
// #include "constructor_stats.h"
#include <pybind11/operators.h>
#include <functional>
... | 54.25876 | 247 | 0.647094 | peerschuett |
fa8ac1e2ee8a2d80a1d6a4ef735b7380e23b281b | 10,219 | hpp | C++ | include/dutil/queue.hpp | dumheter/dutil | 515f7190b458a875a4c56f4f9c7274e1ac36b429 | [
"MIT"
] | null | null | null | include/dutil/queue.hpp | dumheter/dutil | 515f7190b458a875a4c56f4f9c7274e1ac36b429 | [
"MIT"
] | null | null | null | include/dutil/queue.hpp | dumheter/dutil | 515f7190b458a875a4c56f4f9c7274e1ac36b429 | [
"MIT"
] | null | null | null | /**
* MIT License
*
* Copyright (c) 2019 Christoffer Gustafsson
*
* 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... | 27.693767 | 80 | 0.635091 | dumheter |
fa8bb56d9db2206305dacee9c0a6f4c1d4416e95 | 2,962 | cpp | C++ | ql/experimental/finitedifferences/squarerootprocessrndcalculator.cpp | sfondi/QuantLib | 8a2449d2fb470a7d47a55d3e99c5dace749709c9 | [
"BSD-3-Clause"
] | 41 | 2016-03-19T02:31:54.000Z | 2022-01-20T13:23:20.000Z | ql/experimental/finitedifferences/squarerootprocessrndcalculator.cpp | sfondi/QuantLib | 8a2449d2fb470a7d47a55d3e99c5dace749709c9 | [
"BSD-3-Clause"
] | 1 | 2020-07-17T18:49:22.000Z | 2020-07-17T18:49:22.000Z | ql/experimental/finitedifferences/squarerootprocessrndcalculator.cpp | sfondi/QuantLib | 8a2449d2fb470a7d47a55d3e99c5dace749709c9 | [
"BSD-3-Clause"
] | 22 | 2016-03-17T14:14:36.000Z | 2022-03-28T10:33:19.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2015 Johannes Goettker-Schnetmann
Copyright (C) 2015 Klaus Spanderen
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
Quant... | 33.280899 | 79 | 0.663403 | sfondi |
fa8be100156cf8a7360bf1d05477ff4e1eca2eca | 3,985 | cpp | C++ | 2. Implementation of Stack using linked list.cpp | student-entrepreneur/DATA-STRUCTURE | 83c2306c4e744f9a579102679439ec419fa4ff6f | [
"Apache-2.0"
] | null | null | null | 2. Implementation of Stack using linked list.cpp | student-entrepreneur/DATA-STRUCTURE | 83c2306c4e744f9a579102679439ec419fa4ff6f | [
"Apache-2.0"
] | null | null | null | 2. Implementation of Stack using linked list.cpp | student-entrepreneur/DATA-STRUCTURE | 83c2306c4e744f9a579102679439ec419fa4ff6f | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
class node {
public:
int key=0;
int data=0;
node * next=NULL;
};
class linklist
{
public:
node * head;
linklist()
{
head = NULL;
}
linklist(node * n)
{
head = n;
}
node * isnode(int k)
{
node * temporary = N... | 19.727723 | 106 | 0.433877 | student-entrepreneur |
fa90d569b1793b67335c35f5ad6b648540116d88 | 11,649 | cxx | C++ | src/system/system.cxx | RyanLeeHayes/BLaDE | 2361149996621b026a717abc49588f41b0fab7b3 | [
"MIT"
] | 7 | 2021-08-09T16:14:06.000Z | 2022-03-29T19:04:37.000Z | src/system/system.cxx | RyanLeeHayes/BLaDE | 2361149996621b026a717abc49588f41b0fab7b3 | [
"MIT"
] | null | null | null | src/system/system.cxx | RyanLeeHayes/BLaDE | 2361149996621b026a717abc49588f41b0fab7b3 | [
"MIT"
] | null | null | null | #include <omp.h>
#include <map>
#include <string>
#include "system/system.h"
#include "io/io.h"
#include "io/variables.h"
#include "io/control.h"
#include "system/parameters.h"
#include "system/structure.h"
#include "system/selections.h"
#include "msld/msld.h"
#include "system/coordinates.h"
#include "run/run.h"
#incl... | 39.222222 | 1,667 | 0.738776 | RyanLeeHayes |
fa90fc9804c2833ceb0cf282fab2109ad530142b | 3,295 | hpp | C++ | include/System/Security/Cryptography/X509Certificates/X509Helper2_MyNativeHelper.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Security/Cryptography/X509Certificates/X509Helper2_MyNativeHelper.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Security/Cryptography/X509Certificates/X509Helper2_MyNativeHelper.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.Security.Cryptography.X509Certificates.X509Helper2
#include "Sy... | 61.018519 | 183 | 0.764795 | darknight1050 |
fa9396375e746383efe6221cd7b7cb4e766278e2 | 9,844 | cpp | C++ | Javelin/Tools/jasm/main.cpp | jthlim/JavelinPattern | 8add264f88ac620de109ddf797f7431779bbd9ea | [
"BSD-3-Clause"
] | 10 | 2016-04-06T01:24:00.000Z | 2021-11-16T10:16:51.000Z | Javelin/Tools/jasm/main.cpp | jthlim/JavelinPattern | 8add264f88ac620de109ddf797f7431779bbd9ea | [
"BSD-3-Clause"
] | 1 | 2016-05-06T05:38:58.000Z | 2016-05-09T16:42:43.000Z | Javelin/Tools/jasm/main.cpp | jthlim/JavelinPattern | 8add264f88ac620de109ddf797f7431779bbd9ea | [
"BSD-3-Clause"
] | null | null | null | //============================================================================
#include "Javelin/Tools/jasm/AssemblerException.h"
#include "Javelin/Tools/jasm/CommandLine.h"
#include "Javelin/Tools/jasm/File.h"
#include "Javelin/Tools/jasm/Log.h"
#include "Javelin/Tools/jasm/Preprocessor.h"
#include "Javelin/Tools/jas... | 34.180556 | 138 | 0.568874 | jthlim |
b705d0deb22c4473098b9399959cd3b42e93c208 | 598 | hpp | C++ | FamilyTree2.0/FamilyTreeQtGui/AddPersonDialog.hpp | wampirat/FamilyTree | ee6edb8f9bd6afaed6014af21a39d3eb09bd638c | [
"MIT"
] | null | null | null | FamilyTree2.0/FamilyTreeQtGui/AddPersonDialog.hpp | wampirat/FamilyTree | ee6edb8f9bd6afaed6014af21a39d3eb09bd638c | [
"MIT"
] | null | null | null | FamilyTree2.0/FamilyTreeQtGui/AddPersonDialog.hpp | wampirat/FamilyTree | ee6edb8f9bd6afaed6014af21a39d3eb09bd638c | [
"MIT"
] | null | null | null | #ifndef ADDPERSONDIALOG_HPP
#define ADDPERSONDIALOG_HPP
#include "Person.hpp"
#include <QDialog>
namespace Ui
{
class AddPersonDialog;
}
class AddPersonDialog : public QDialog
{
Q_OBJECT
public:
explicit AddPersonDialog(QWidget *parent = 0);
~AddPersonDialog();
Person getPerson() c... | 17.588235 | 51 | 0.690635 | wampirat |
b707cf2582d638fcad2175f9b3858d35af4fc4cd | 28,347 | cpp | C++ | maillage3d.cpp | MedMoute/EF-Solver | aa79a0b21b08016f66277ec2cba686776b83f0e3 | [
"MIT"
] | null | null | null | maillage3d.cpp | MedMoute/EF-Solver | aa79a0b21b08016f66277ec2cba686776b83f0e3 | [
"MIT"
] | null | null | null | maillage3d.cpp | MedMoute/EF-Solver | aa79a0b21b08016f66277ec2cba686776b83f0e3 | [
"MIT"
] | 1 | 2021-08-12T14:10:34.000Z | 2021-08-12T14:10:34.000Z | #include "maillage3D.h"
#include "utils.h"
#include <chrono>
#include <QString>
#include <QDateTime>
#include <Qt3DRender/QMesh>
Maillage3D::Maillage3D(ifstream& fd)
{
nodes = new map<int,R3> ;
boundary_nodes = new map<int,R3>;
partitions = new vector<int>;
edges = new map<int,pair<int,int>> ;
f... | 40.151558 | 174 | 0.496913 | MedMoute |
b70bd4ad11e928c293e1b963d4909cb88658011e | 1,754 | cpp | C++ | problems/kickstart/2018/E/milk-tea/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/kickstart/2018/E/milk-tea/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/kickstart/2018/E/milk-tea/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// *****
using Mask = bitset<100>;
struct CacheMask {
Mask mask;
int complaints = 0;
};
bool operator<(const CacheMask &lhs, const CacheMask &rhs) {
int L = lhs.complaints, R = rhs.complaints;
return L < R;
}
auto solve() {
int N, M, P;
cin >> N... | 22.202532 | 71 | 0.45325 | brunodccarvalho |
b70fd573659f9ad736f1e071b3b6a85986cf777e | 1,091 | hpp | C++ | BW/Loadouts/civ_europe.hpp | ltac/ltmf-campus-martius.stratis | 54ae06c5bed06edd86e30f7098e4c94ff3a24a44 | [
"Unlicense"
] | null | null | null | BW/Loadouts/civ_europe.hpp | ltac/ltmf-campus-martius.stratis | 54ae06c5bed06edd86e30f7098e4c94ff3a24a44 | [
"Unlicense"
] | null | null | null | BW/Loadouts/civ_europe.hpp | ltac/ltmf-campus-martius.stratis | 54ae06c5bed06edd86e30f7098e4c94ff3a24a44 | [
"Unlicense"
] | null | null | null | class CIV_F {
class C_man_1 {
uniform[] = {"U_C_Poloshirt_blue","U_C_Poloshirt_burgundy","U_C_Poloshirt_stripped","U_C_Poloshirt_tricolour","U_C_Poloshirt_salmon","U_C_Poloshirt_redwhite"}; /// randomized
vest[] = {}; /// randomized
headgear[] = {}; /// randomized
backpack[] = {}; /// randomized
backpackIte... | 33.060606 | 177 | 0.618698 | ltac |
b7163b532d21a2a910163bb7709112ebc87fb6c9 | 1,377 | cpp | C++ | Borg/src/Drawing/Color.cpp | bromix/Borg | ecce187e01c9da8bd85ecc4c0a318d7a2b17431d | [
"MIT"
] | null | null | null | Borg/src/Drawing/Color.cpp | bromix/Borg | ecce187e01c9da8bd85ecc4c0a318d7a2b17431d | [
"MIT"
] | null | null | null | Borg/src/Drawing/Color.cpp | bromix/Borg | ecce187e01c9da8bd85ecc4c0a318d7a2b17431d | [
"MIT"
] | null | null | null | #include "Borg/Drawing/Color.h"
namespace Borg::Drawing
{
uint8_t Color::A() const
{
return m_A;
}
uint8_t Color::R() const
{
return m_R;
}
uint8_t Color::G() const
{
return m_G;
}
uint8_t Color::B() const
{
return m_B;
}
uint32_t ... | 21.857143 | 60 | 0.543936 | bromix |
b727c69608602672d808d773abcf1185012dde47 | 14,208 | cpp | C++ | export/release/windows/obj/src/Achievements.cpp | TheSlithyGamer4evr/Friend-Trouble-Source | a540ec9cf4cf3033e0c340e5e4f50d647b94d4a3 | [
"Apache-2.0"
] | null | null | null | export/release/windows/obj/src/Achievements.cpp | TheSlithyGamer4evr/Friend-Trouble-Source | a540ec9cf4cf3033e0c340e5e4f50d647b94d4a3 | [
"Apache-2.0"
] | null | null | null | export/release/windows/obj/src/Achievements.cpp | TheSlithyGamer4evr/Friend-Trouble-Source | a540ec9cf4cf3033e0c340e5e4f50d647b94d4a3 | [
"Apache-2.0"
] | null | null | null | #include <hxcpp.h>
#ifndef INCLUDED_Achievements
#include <Achievements.h>
#endif
#ifndef INCLUDED_Paths
#include <Paths.h>
#endif
#ifndef INCLUDED_flixel_FlxBasic
#include <flixel/FlxBasic.h>
#endif
#ifndef INCLUDED_flixel_FlxG
#include <flixel/FlxG.h>
#endif
#ifndef INCLUDED_flixel_system_FlxSound
#include <flixel/s... | 51.665455 | 3,413 | 0.716005 | TheSlithyGamer4evr |
b7283a34460df9d442864fe0cb0786fac046508f | 884 | cpp | C++ | project2D/KeyboardForce.cpp | Krian0/ArtificialI | 215aa409441af15dfaf1783dcb44392dc2178887 | [
"MIT"
] | null | null | null | project2D/KeyboardForce.cpp | Krian0/ArtificialI | 215aa409441af15dfaf1783dcb44392dc2178887 | [
"MIT"
] | null | null | null | project2D/KeyboardForce.cpp | Krian0/ArtificialI | 215aa409441af15dfaf1783dcb44392dc2178887 | [
"MIT"
] | null | null | null | #include "KeyboardForce.h"
#include "input.h"
KeyboardForce::KeyboardForce()
{
m_weight = 1.00;
}
KeyboardForce::~KeyboardForce()
{
}
Vector2 KeyboardForce::GetForce(Agent* An_Agent)
{
aie::Input* input = aie::Input::getInstance();
bool up = false, down = false, left = false, right = false;
//Detect pressed di... | 17.68 | 60 | 0.653846 | Krian0 |
b72b21834a8858514383464e3055dce1e45e23f9 | 6,970 | cpp | C++ | designer/lib/shared/csshighlighter.cpp | liyuzhao/QWidgetDemo | a056894da7b7385e37a523ea4825cea48c82d297 | [
"MulanPSL-1.0"
] | 3,095 | 2019-10-11T03:00:33.000Z | 2022-03-31T08:15:13.000Z | designer/lib/shared/csshighlighter.cpp | liyuzhao/QWidgetDemo | a056894da7b7385e37a523ea4825cea48c82d297 | [
"MulanPSL-1.0"
] | 28 | 2019-11-12T07:24:06.000Z | 2022-02-28T02:04:48.000Z | designer/lib/shared/csshighlighter.cpp | liyuzhao/QWidgetDemo | a056894da7b7385e37a523ea4825cea48c82d297 | [
"MulanPSL-1.0"
] | 1,023 | 2019-10-09T12:54:07.000Z | 2022-03-30T04:02:07.000Z | /****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Designer of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** C... | 36.878307 | 115 | 0.592396 | liyuzhao |
b72dd8f80bde2090209a50df6a9d09f540dc4ffd | 271 | cpp | C++ | oadr/oadr/manager/transport/ITransport.cpp | beroset/OpenADR-VEN-Library | 16546464fe1dc714a126474aaadf75483ec9cbc6 | [
"Apache-2.0"
] | 12 | 2016-09-21T19:07:13.000Z | 2021-12-13T06:17:36.000Z | oadr/oadr/manager/transport/ITransport.cpp | beroset/OpenADR-VEN-Library | 16546464fe1dc714a126474aaadf75483ec9cbc6 | [
"Apache-2.0"
] | 3 | 2020-11-09T08:25:40.000Z | 2021-04-12T10:49:39.000Z | oadr/oadr/manager/transport/ITransport.cpp | beroset/OpenADR-VEN-Library | 16546464fe1dc714a126474aaadf75483ec9cbc6 | [
"Apache-2.0"
] | 12 | 2018-06-10T10:52:56.000Z | 2020-12-08T15:47:13.000Z | /*
* ITransport.cpp
*
* Created on: Jul 8, 2015
* Author: dupes
*/
#include "../../manager/transport/ITransport.h"
ITransport::ITransport()
{
// TODO Auto-generated constructor stub
}
ITransport::~ITransport()
{
// TODO Auto-generated destructor stub
}
| 12.904762 | 47 | 0.656827 | beroset |
b72e852d27c7190b28b880eb50239372264817c4 | 6,866 | cpp | C++ | src/roi_api.cpp | rockchip-linux/ipcweb-backend | 1885a61babe060c16a84c172712146d4206361df | [
"BSD-3-Clause"
] | 1 | 2021-09-16T02:56:35.000Z | 2021-09-16T02:56:35.000Z | src/roi_api.cpp | rockchip-linux/ipcweb-backend | 1885a61babe060c16a84c172712146d4206361df | [
"BSD-3-Clause"
] | 1 | 2021-07-08T03:34:02.000Z | 2021-07-08T03:34:02.000Z | src/roi_api.cpp | rockchip-linux/ipcweb-backend | 1885a61babe060c16a84c172712146d4206361df | [
"BSD-3-Clause"
] | 2 | 2021-08-24T05:38:18.000Z | 2021-09-16T02:56:39.000Z | // Copyright 2019 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "roi_api.h"
#include <dbserver.h>
#include <mediaserver.h>
namespace rockchip {
namespace cgi {
nlohmann::json roi_all_info_get... | 33.990099 | 80 | 0.684969 | rockchip-linux |
b72f4b5a974a2bc1c9028d76dc9b8fe838f7af96 | 407 | hpp | C++ | torricelly-lang/include/gasp/torricelly/torricelly.hpp | sanelli/gasp | 108700e8739534e9c152d7c8e2f1308917cf8611 | [
"MIT"
] | null | null | null | torricelly-lang/include/gasp/torricelly/torricelly.hpp | sanelli/gasp | 108700e8739534e9c152d7c8e2f1308917cf8611 | [
"MIT"
] | null | null | null | torricelly-lang/include/gasp/torricelly/torricelly.hpp | sanelli/gasp | 108700e8739534e9c152d7c8e2f1308917cf8611 | [
"MIT"
] | null | null | null | #pragma once
#include <gasp/torricelly/impl/torricelly_module.hpp>
#include <gasp/torricelly/impl/torricelly_type.hpp>
#include <gasp/torricelly/impl/torricelly_subroutine.hpp>
#include <gasp/torricelly/impl/torricelly_instruction_code.hpp>
#include <gasp/torricelly/impl/torricelly_instruction.hpp>
#include <gasp/torr... | 40.7 | 63 | 0.835381 | sanelli |
b7336641b782a356e4bce5268a7f5e0e31999d29 | 5,870 | cc | C++ | examples/reversi/player.cc | kongaraju/antkorp | 3453d543d659e3420d5bc4b536016bb1d097d7ec | [
"CC-BY-3.0",
"Apache-2.0"
] | 1 | 2016-01-02T14:39:07.000Z | 2016-01-02T14:39:07.000Z | examples/reversi/player.cc | kongaraju/antkorp | 3453d543d659e3420d5bc4b536016bb1d097d7ec | [
"CC-BY-3.0",
"Apache-2.0"
] | 4 | 2019-12-20T06:13:24.000Z | 2021-07-03T16:28:18.000Z | examples/reversi/player.cc | kongaraju/antkorp | 3453d543d659e3420d5bc4b536016bb1d097d7ec | [
"CC-BY-3.0",
"Apache-2.0"
] | 2 | 2015-09-17T16:40:10.000Z | 2016-11-17T15:56:42.000Z |
#include "common.hh"
#include "board.hh"
#include "player.hh"
#include "svclib.hh"
extern mongo::DBClientConnection conn;
typedef boost::intrusive::set<Player, compare<std::greater<Player>>> playerListT;
playerListT playerList;
extern service *svc;
Player::Player(int id, int clnt, std::string loginid, std::string na... | 23.574297 | 118 | 0.62402 | kongaraju |
b73575cd83567036a9827a1ca85cd7b49a58a8bf | 6,035 | cpp | C++ | src/datamodel_file.cpp | jfouche/bbm | 6713e1003fe2c7c5ffaa6536457d71314c0382fe | [
"MIT"
] | null | null | null | src/datamodel_file.cpp | jfouche/bbm | 6713e1003fe2c7c5ffaa6536457d71314c0382fe | [
"MIT"
] | null | null | null | src/datamodel_file.cpp | jfouche/bbm | 6713e1003fe2c7c5ffaa6536457d71314c0382fe | [
"MIT"
] | null | null | null | #include "datamodel_file.h"
#include "json_utils.hpp"
#include <map>
static const char* KEY_PROJECT_ARRAY = "projects";
static const char* KEY_PROJECT_NAME = "name";
static const char* KEY_PROJECT_LIST_BB = "building_blocks";
static const char* KEY_BB_ARRAY = "building_blocks";
static const char* KEY_BB_NAME = "name"... | 28.200935 | 81 | 0.668268 | jfouche |
b7360e43997491005f53357c7822e0a9527551c9 | 1,197 | hh | C++ | multicast/pimcontrol.hh | kohler/click-packages | cec70da7cf460548ef08f1ddad6924db29d5c0c5 | [
"MIT"
] | 13 | 2015-02-26T23:12:09.000Z | 2021-04-18T04:37:12.000Z | multicast/pimcontrol.hh | kohoumas/click-packages | 6bb5c4ba286e5dbc74efd1708921d530425691f6 | [
"MIT"
] | null | null | null | multicast/pimcontrol.hh | kohoumas/click-packages | 6bb5c4ba286e5dbc74efd1708921d530425691f6 | [
"MIT"
] | 7 | 2015-08-25T09:29:41.000Z | 2021-04-18T04:37:13.000Z | #ifndef PIM_CONTROL_HH
#define PIM_CONTROL_HH
#include "pimforwardingtable.hh"
#include "protocoldefinitions.hh"
#include <click/timer.hh>
#include <click/element.hh>
/*
=c
PIMControl(PIMForwardingTable)
=s IPv4 Multicast
=d
Handles the PIM protocol, i.e. generation of Hello-messages and detection of connected PIM r... | 22.584906 | 99 | 0.74269 | kohler |
b73bbaf81a8547dcbdf6a1a4c70530405d67b61f | 6,475 | cpp | C++ | Activities/Menu.cpp | Derjik/Outpost | 93a419df75c1a17c1ffa30b0b9061bb3dfd7ce57 | [
"0BSD"
] | 1 | 2018-10-26T08:48:07.000Z | 2018-10-26T08:48:07.000Z | Activities/Menu.cpp | Derjik/Outpost | 93a419df75c1a17c1ffa30b0b9061bb3dfd7ce57 | [
"0BSD"
] | null | null | null | Activities/Menu.cpp | Derjik/Outpost | 93a419df75c1a17c1ffa30b0b9061bb3dfd7ce57 | [
"0BSD"
] | null | null | null | #include "Menu.hpp"
#include "Global.hpp"
#include "TextDebug.hpp"
#include "GameControllerDebug.hpp"
#include "Tank.hpp"
#include <VBN/WindowManager.hpp>
#include <VBN/EngineUpdate.hpp>
#include <VBN/Platform.hpp>
#include <VBN/Mixer.hpp>
/* ----------------- FACTORY ----------------- */
std::shared_ptr<GameContext> ... | 21.728188 | 80 | 0.672896 | Derjik |
b73bdbb98c78bd10ca60bee705ff945fe874cf4b | 248 | hpp | C++ | src/misc/common/print/set.hpp | Pachicobue/AlgoLib | 346f2208e9e93ef3c7e03c1b3ad525bc08be6d2e | [
"Unlicense"
] | 4 | 2018-04-01T18:41:16.000Z | 2019-08-11T11:45:47.000Z | src/misc/common/print/set.hpp | pachicobue/algolib | 8acbce5c49cdfada7d187e7acab25a5c6a2f7fc5 | [
"Unlicense"
] | null | null | null | src/misc/common/print/set.hpp | pachicobue/algolib | 8acbce5c49cdfada7d187e7acab25a5c6a2f7fc5 | [
"Unlicense"
] | 1 | 2018-04-08T11:38:22.000Z | 2018-04-08T11:38:22.000Z | #pragma once
#include <iostream>
#include <set>
template<typename... Ts>
std::ostream& operator<<(std::ostream& os, const std::set<Ts...>& vs)
{
os << "[";
for (const auto& v : vs) { os << v << ","; }
return (os << "]" << std::endl);
}
| 22.545455 | 69 | 0.53629 | Pachicobue |
b73d7a961bca939034829c19f387edcf82e16a89 | 86 | hpp | C++ | src/boost_local_function_aux__preprocessor_traits_decl_sign__any_bind_type.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_local_function_aux__preprocessor_traits_decl_sign__any_bind_type.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_local_function_aux__preprocessor_traits_decl_sign__any_bind_type.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/local_function/aux_/preprocessor/traits/decl_sign_/any_bind_type.hpp>
| 43 | 85 | 0.860465 | miathedev |
b7413f5996daf56ffef26ec3b5d4385e217eb197 | 2,238 | hpp | C++ | general/src/MessengerConfig.hpp | mrpPhys/Isis | 0322a660e75f13605b0e6fc9688b0ca99b72999d | [
"MIT"
] | null | null | null | general/src/MessengerConfig.hpp | mrpPhys/Isis | 0322a660e75f13605b0e6fc9688b0ca99b72999d | [
"MIT"
] | null | null | null | general/src/MessengerConfig.hpp | mrpPhys/Isis | 0322a660e75f13605b0e6fc9688b0ca99b72999d | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////
//
// General package
//
// ---------------------------------------------------------
//
// AUTHOR: Miguel Ramos Pernas
// e-mail: miguel.ramos.pernas@cern.ch
//
// Last update: 19/10/2017
//
// ---------------------------------------------------------
//... | 26.642857 | 92 | 0.61126 | mrpPhys |
b7435023bbb3575c6fcba08114b502d8c8338945 | 602 | cpp | C++ | src/hello.cpp | wangyoucao577/hello-sdk-sample | 293d959661c986d6ec197e9ba05dc3c0bd7c99c8 | [
"MIT"
] | null | null | null | src/hello.cpp | wangyoucao577/hello-sdk-sample | 293d959661c986d6ec197e9ba05dc3c0bd7c99c8 | [
"MIT"
] | null | null | null | src/hello.cpp | wangyoucao577/hello-sdk-sample | 293d959661c986d6ec197e9ba05dc3c0bd7c99c8 | [
"MIT"
] | null | null | null | #include "hello.h"
#include "Poco/MD5Engine.h"
#include "Poco/DigestStream.h"
#include <iostream>
#ifndef HELLO_SDK_VERSION
#define HELLO_SDK_VERSION "unknown"
#endif
void hello(){
std::cout << "hello sdk version: " << HELLO_SDK_VERSION << std::endl;
#ifdef NDEBUG
std::cout << "Hello World Release!" <<... | 22.296296 | 76 | 0.654485 | wangyoucao577 |
b743940eaad0e430f364df042a69c359c6654ea6 | 5,053 | cpp | C++ | ogsr_engine/xrGame/ai/monsters/poltergeist/poltergeist_ability.cpp | WladTriTopora/OGSR-Engine | b532f222a11ccbce5f95668b09277778a615f217 | [
"Apache-2.0"
] | null | null | null | ogsr_engine/xrGame/ai/monsters/poltergeist/poltergeist_ability.cpp | WladTriTopora/OGSR-Engine | b532f222a11ccbce5f95668b09277778a615f217 | [
"Apache-2.0"
] | null | null | null | ogsr_engine/xrGame/ai/monsters/poltergeist/poltergeist_ability.cpp | WladTriTopora/OGSR-Engine | b532f222a11ccbce5f95668b09277778a615f217 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "poltergeist.h"
#include "../../../PhysicsShell.h"
#include "../../../level.h"
#include "../../../material_manager.h"
#include "../../../level_debug.h"
CPolterSpecialAbility::CPolterSpecialAbility(CPoltergeist *polter)
{
m_object = polter;
m_particles_object = 0;
m_particles_obj... | 31.58125 | 132 | 0.711261 | WladTriTopora |
b7474102b9088050a328888b42d8c22cbf8c1787 | 444 | cpp | C++ | owner1/ServantDesignPattern/src/Boss1.cpp | neupane11/OOP-sneupane | a5819cce2f4f662c377167ef687569b276c30e46 | [
"MIT"
] | null | null | null | owner1/ServantDesignPattern/src/Boss1.cpp | neupane11/OOP-sneupane | a5819cce2f4f662c377167ef687569b276c30e46 | [
"MIT"
] | null | null | null | owner1/ServantDesignPattern/src/Boss1.cpp | neupane11/OOP-sneupane | a5819cce2f4f662c377167ef687569b276c30e46 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
//#include <Queen.h>
#include "../include/Boss1.h"
void Boss1::getFed(){
isHungry=false;
}
void Boss1::getDrink(){
isDrunk=true;
}
void Boss1::receiveCompliments(){
complimentReceived=true;
}
void Boss1::changeMood(){
if(complimentReceived && isDrunk && !is... | 17.76 | 51 | 0.630631 | neupane11 |
b74be2fac41a19e72d8a25ec475a1d13931b5e1a | 7,832 | cpp | C++ | api_search/parse_source_files.cpp | langrange/functionlib | 823b095eae81e3e0b8ce9b81c4d170b047927f82 | [
"BSL-1.0"
] | null | null | null | api_search/parse_source_files.cpp | langrange/functionlib | 823b095eae81e3e0b8ce9b81c4d170b047927f82 | [
"BSL-1.0"
] | null | null | null | api_search/parse_source_files.cpp | langrange/functionlib | 823b095eae81e3e0b8ce9b81c4d170b047927f82 | [
"BSL-1.0"
] | null | null | null | // Copyright Tobias Hermann 2015.
// https://github.com/Dobiasd/FunctionalPlus
// 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 "fplus/fplus.hpp"
#include <fstream>
#include <iostream>
#include <string>... | 34.052174 | 77 | 0.622702 | langrange |
b74f2369cd213368280f21f041c52a4d839292e5 | 2,340 | cpp | C++ | src/_leetcode/leet_931.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_931.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_931.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | /*
* ====================== leet_931.cpp ==========================
* -- tpr --
* CREATE -- 2020.05.23
* MODIFY --
* ----------------------------------------------------------
* 931. 下降路径最小和
*/
#include "innLe... | 24.123711 | 75 | 0.394017 | turesnake |
b755ac69b89a9aca7b049baff3125ac2da069a3b | 2,316 | cpp | C++ | fred2/prefsdlg.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 307 | 2015-04-10T13:27:32.000Z | 2022-03-21T03:30:38.000Z | fred2/prefsdlg.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 2,231 | 2015-04-27T10:47:35.000Z | 2022-03-31T19:22:37.000Z | fred2/prefsdlg.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 282 | 2015-01-05T12:16:57.000Z | 2022-03-28T04:45:11.000Z | /*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#include "stdafx.h"
#include "FRED.h"
#include "PrefsDlg.h"
#include "FR... | 24.125 | 157 | 0.704231 | trgswe |
b759d19a0701aa3acc8b1f3235f79f929c20977c | 876 | cpp | C++ | cpp/161-170/One Edit Distance.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/161-170/One Edit Distance.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/161-170/One Edit Distance.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution {
public:
bool isOneEditDistance(string s, string t) {
if (abs((int)s.length() - (int)t.length()) >= 2) return false;
if (s == t) return false;
if (s.length() == t.length()) {
int diff(0);
for (int i = 0;i < s.length();i++)
{
... | 25.764706 | 70 | 0.365297 | KaiyuWei |
b75ef2fd45eaed88c14eca5eb766d4ac6271aaf1 | 43 | cpp | C++ | master/core/third/RCF/src/SF/SerializeDynamicArray.cpp | importlib/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:48.000Z | 2019-10-26T21:44:59.000Z | master/core/third/RCF/src/SF/SerializeDynamicArray.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | null | null | null | master/core/third/RCF/src/SF/SerializeDynamicArray.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:49.000Z | 2018-12-27T03:20:31.000Z |
#include <SF/SerializeDynamicArray.hpp>
| 14.333333 | 40 | 0.767442 | importlib |
b766232233cad9111cf57cab43edbfc468580696 | 4,088 | cpp | C++ | CastleDoctrine/gameSource/GalleryArchive.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 1 | 2020-01-16T00:07:11.000Z | 2020-01-16T00:07:11.000Z | CastleDoctrine/gameSource/GalleryArchive.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | null | null | null | CastleDoctrine/gameSource/GalleryArchive.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 2 | 2019-09-17T12:08:20.000Z | 2020-09-26T00:54:48.000Z | #include "GalleryArchive.h"
#include "galleryObjects.h"
#include "minorGems/util/stringUtils.h"
GalleryArchive::GalleryArchive( Font *inDisplayFont, double inX, double inY )
: PageComponent( inX, inY ),
mSelectedIndex( -1 ),
mSlot( inDisplayFont, 0, 0, 1/32.0 ),
mUpButton(... | 21.181347 | 78 | 0.540117 | PhilipLudington |
b76e21843ae703b4f5bf75fdc12489ad3ed301c3 | 564 | hpp | C++ | source/circle.hpp | tonradev/programmiersprachen-aufgabenblatt-2 | 2f45807b748a692fa3a98901ee6d072e60e36ee8 | [
"MIT"
] | null | null | null | source/circle.hpp | tonradev/programmiersprachen-aufgabenblatt-2 | 2f45807b748a692fa3a98901ee6d072e60e36ee8 | [
"MIT"
] | null | null | null | source/circle.hpp | tonradev/programmiersprachen-aufgabenblatt-2 | 2f45807b748a692fa3a98901ee6d072e60e36ee8 | [
"MIT"
] | null | null | null | #ifndef CIRCLE_HPP
#define CIRCLE_HPP
#include "vec2.hpp"
#include "color.hpp"
#include "window.hpp"
class Circle {
public:
Circle() = default;
Circle(Vec2 const& center, float radius, Color const& color);
float circumference() const;
float thickness() const;
void draw(Windo... | 25.636364 | 69 | 0.624113 | tonradev |
b76e95ad56269768c9b154a898206dec99ddf816 | 922 | hpp | C++ | libs/parsejson/include/sge/parse/json/detail/is_iterable.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/parsejson/include/sge/parse/json/detail/is_iterable.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/parsejson/include/sge/parse/json/detail/is_iterable.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_PARSE_JSON_DETAIL_IS_ITERABLE_HPP_INCLUDED
#define SGE_PARSE_JSON_DETAIL_IS_ITERABLE_HP... | 24.918919 | 81 | 0.774403 | cpreh |
b777bad6394610c0727f4190adeb02bc5b7b35f0 | 5,115 | cpp | C++ | Board.cpp | nirklinger/Tetris | a4a51abda31f8dcab0e11ac9273497e8c994503f | [
"MIT"
] | null | null | null | Board.cpp | nirklinger/Tetris | a4a51abda31f8dcab0e11ac9273497e8c994503f | [
"MIT"
] | 1 | 2021-03-29T17:47:16.000Z | 2021-04-02T09:35:37.000Z | Board.cpp | nirklinger/Tetris | a4a51abda31f8dcab0e11ac9273497e8c994503f | [
"MIT"
] | null | null | null | #include "Board.h"
void Board::draw() const {
for (int y = 0; y < HEIGHT; y++) {
for (int x = 0; x < WIDTH; x++) {
char ch = ' ';
if (field[y][x]) {
ch = '#';
}
Point(boardOffset.getX() + x, boardOffset.getY() + y).draw(ch);
}
}
if (block)
block->draw();
}
void Board::cl... | 21.049383 | 94 | 0.595699 | nirklinger |
b77d6d7b2835515eab9f94800839e5f9243d489a | 577 | cpp | C++ | Matrix_Chain_Multiplication/mem.cpp | sujoyyyy/Dynamic-Programming | af4315baf30f7d9ebabd9d3035029c5a6f60e99f | [
"MIT"
] | 2 | 2020-09-08T13:30:40.000Z | 2022-01-24T07:48:16.000Z | Matrix_Chain_Multiplication/mem.cpp | sujoyyyy/Dynamic-Programming | af4315baf30f7d9ebabd9d3035029c5a6f60e99f | [
"MIT"
] | null | null | null | Matrix_Chain_Multiplication/mem.cpp | sujoyyyy/Dynamic-Programming | af4315baf30f7d9ebabd9d3035029c5a6f60e99f | [
"MIT"
] | 2 | 2020-09-14T03:20:37.000Z | 2021-02-28T14:40:15.000Z | #include<bits/stdc++.h>
using namespace std;
int t[1001][1001];
int solve(int arr[],int i,int j)
{
if(i>=j)
{
return 0;
}
if(t[i][j]!=-1)
{
return t[i][j];
}
int min = INT_MAX;
for(int k=i;k<j;k++)
{
int temp = solve(arr,i,k)+solve(arr,k+1,j)+arr[i-1]*arr[k]*a... | 16.970588 | 74 | 0.459272 | sujoyyyy |
b781cf3ce2c8bbeff254dd5414972a519d5be15b | 5,899 | cpp | C++ | example/consensus/main/src/consensusserver.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | example/consensus/main/src/consensusserver.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | example/consensus/main/src/consensusserver.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | #include "example/consensus/server/serverobject.hpp"
#include "example/consensus/core/consensusmanager.hpp"
#include "example/consensus/core/consensusrequests.hpp"
#include "consensus/consensusregistrar.hpp"
#include "frame/service.hpp"
#include "frame/scheduler.hpp"
#include "frame/aio/aioselector.hpp"
#include "fr... | 30.564767 | 125 | 0.651297 | joydit |
b783083af556e82ba509c8653fc292fe86216276 | 36 | cpp | C++ | make/ddk_build/cpprtl_test.sys.project/eh_test_suite.syslib/test05.cpp | 133a/project_ntke_cpprtl | f2d3fd36a2c44f968f7b10c344abe7e0b7aa2e4c | [
"MIT"
] | 12 | 2016-08-02T19:22:26.000Z | 2022-02-28T21:20:18.000Z | make/ddk_build/cpprtl_test.sys.project/eh_test_suite.syslib/test05.cpp | 133a/project_ntke_cpprtl | f2d3fd36a2c44f968f7b10c344abe7e0b7aa2e4c | [
"MIT"
] | null | null | null | make/ddk_build/cpprtl_test.sys.project/eh_test_suite.syslib/test05.cpp | 133a/project_ntke_cpprtl | f2d3fd36a2c44f968f7b10c344abe7e0b7aa2e4c | [
"MIT"
] | 6 | 2018-04-15T16:51:40.000Z | 2021-04-23T19:32:34.000Z | #include <eh_test_suite/test05.cpp>
| 18 | 35 | 0.805556 | 133a |
b78b47e87117f0de2c7cd2ef0130ac8c93588c9f | 3,755 | cxx | C++ | src/rtkResourceProbesCollector.cxx | agravgaard/RTK | 419f71cdaf0600fcb54e4faca643121b7832ea96 | [
"Apache-2.0",
"BSD-3-Clause"
] | 167 | 2015-02-26T08:39:33.000Z | 2022-03-31T04:40:35.000Z | src/rtkResourceProbesCollector.cxx | agravgaard/RTK | 419f71cdaf0600fcb54e4faca643121b7832ea96 | [
"Apache-2.0",
"BSD-3-Clause"
] | 270 | 2015-02-26T15:34:32.000Z | 2022-03-22T09:49:24.000Z | src/rtkResourceProbesCollector.cxx | agravgaard/RTK | 419f71cdaf0600fcb54e4faca643121b7832ea96 | [
"Apache-2.0",
"BSD-3-Clause"
] | 117 | 2015-05-01T14:56:49.000Z | 2022-03-11T03:18:26.000Z | /*=========================================================================
*
* Copyright RTK Consortium
*
* 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.apa... | 26.258741 | 101 | 0.618642 | agravgaard |
b78f27a5495c29885bd6c57e1e3d8e8e4181cafb | 12,121 | hpp | C++ | demos/game_of_life/gol_widget.hpp | skvl/TermOx | 35761f9ba0e300b7d8edd4e2a0c7dd33ef8fb934 | [
"MIT"
] | null | null | null | demos/game_of_life/gol_widget.hpp | skvl/TermOx | 35761f9ba0e300b7d8edd4e2a0c7dd33ef8fb934 | [
"MIT"
] | null | null | null | demos/game_of_life/gol_widget.hpp | skvl/TermOx | 35761f9ba0e300b7d8edd4e2a0c7dd33ef8fb934 | [
"MIT"
] | 1 | 2021-08-06T10:17:28.000Z | 2021-08-06T10:17:28.000Z | #ifndef TERMOX_DEMOS_GAME_OF_LIFE_GOL_WIDGET_HPP
#define TERMOX_DEMOS_GAME_OF_LIFE_GOL_WIDGET_HPP
#include <chrono>
#include <cstdint>
#include <string>
#include <string_view>
#include <signals_light/signal.hpp>
#include <termox/painter/glyph.hpp>
#include <termox/painter/painter.hpp>
#include <termox/system/key.hpp>... | 28.453052 | 80 | 0.541952 | skvl |
b79005d9b102f9bd367def20b14d03913ab0d0b9 | 1,961 | cpp | C++ | dumptag.cpp | Llewellynvdm/id3 | b6413124856b1eb170f81b2f66cecf1f13235673 | [
"BSD-2-Clause"
] | 108 | 2015-01-16T16:05:07.000Z | 2022-03-31T12:13:51.000Z | dumptag.cpp | Llewellynvdm/id3 | b6413124856b1eb170f81b2f66cecf1f13235673 | [
"BSD-2-Clause"
] | 26 | 2015-05-27T00:00:51.000Z | 2022-02-20T15:03:44.000Z | dumptag.cpp | Llewellynvdm/id3 | b6413124856b1eb170f81b2f66cecf1f13235673 | [
"BSD-2-Clause"
] | 11 | 2016-07-18T22:15:22.000Z | 2022-03-13T00:45:31.000Z | #include <cstdio>
#include <cstring>
#include <string>
#include <utility>
#include "dumptag.h"
/*
serializing tag info to/from human-readable text
copyright (c) 2015 squell <squell@alumina.nl>
use, modification, copying and distribution of this software is permitted
under the conditions described in the fil... | 28.838235 | 98 | 0.564508 | Llewellynvdm |
b792b1d72b07429aa4dd30799c3bf4744e8e55ae | 69 | cpp | C++ | def_lang/src/ts/Serialization.cpp | jeanleflambeur/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 36 | 2015-03-09T16:47:14.000Z | 2021-02-04T08:32:04.000Z | def_lang/src/ts/Serialization.cpp | jeanlemotan/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 42 | 2017-02-11T11:15:51.000Z | 2019-12-28T16:00:44.000Z | def_lang/src/ts/Serialization.cpp | jeanleflambeur/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 5 | 2015-10-15T05:46:48.000Z | 2020-05-11T17:40:36.000Z | #include "def_lang/Serialization.h"
#include "def_lang/ts_assert.h"
| 17.25 | 35 | 0.782609 | jeanleflambeur |
b797c1363d9c099cbda44971d496c97f94bf7d6b | 598 | cpp | C++ | SAVKONO.cpp | kunwar-vikrant/Codechef | 96d89e5efd0f32e88fdf2b9199adac99ef33804d | [
"MIT"
] | 1 | 2019-12-24T06:00:08.000Z | 2019-12-24T06:00:08.000Z | SAVKONO.cpp | kunwar-vikrant/Codechef | 96d89e5efd0f32e88fdf2b9199adac99ef33804d | [
"MIT"
] | null | null | null | SAVKONO.cpp | kunwar-vikrant/Codechef | 96d89e5efd0f32e88fdf2b9199adac99ef33804d | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin>>t;
while(t--){
int n, z;
cin>>n>>z;
// int arr[n];
priority_queue<int> pq;
for(int i = 0; i < n; i++){
int x;
cin>>x;
pq.push(x... | 12.204082 | 35 | 0.464883 | kunwar-vikrant |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.