hexsha stringlengths 40 40 | size int64 19 11.4M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 270 | max_stars_repo_name stringlengths 5 110 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 3 270 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 67k ⌀ | 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 3 270 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 19 11.4M | avg_line_length float64 1.93 229k | max_line_length int64 12 688k | alphanum_fraction float64 0.07 0.99 | matches listlengths 1 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d6394686c0687b9a1ce096e0add5cbec319ca0e5 | 7,967 | cpp | C++ | src/other/ext/openscenegraph/src/osgDB/ReaderWriter.cpp | lf-/brlcad | f91ea585c1a930a2e97c3f5a8274db8805ebbb46 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/other/ext/openscenegraph/src/osgDB/ReaderWriter.cpp | lf-/brlcad | f91ea585c1a930a2e97c3f5a8274db8805ebbb46 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/other/ext/openscenegraph/src/osgDB/ReaderWriter.cpp | lf-/brlcad | f91ea585c1a930a2e97c3f5a8274db8805ebbb46 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this... | 41.712042 | 219 | 0.699762 | [
"object"
] |
d63a460e14b8228cf9445e7f01b77c789fb60f3d | 2,140 | cpp | C++ | src/behavior/policy/greedy_Q_policy.cpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | 4 | 2019-04-19T00:11:36.000Z | 2020-04-08T09:50:37.000Z | src/behavior/policy/greedy_Q_policy.cpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | null | null | null | src/behavior/policy/greedy_Q_policy.cpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | null | null | null | #include "greedy_Q_policy.h"
#include "policy_utils.h"
/**
* Mark Benjamin 1st June 2017
*/
GreedyQPolicy::GreedyQPolicy(QProvider *provider) {
qplanner = provider;
}
void GreedyQPolicy::setSolver(MDPSolverInterface *solver) {
// TODO c++ casting may need to follow hierarchy paths
#pragma clang diagnostic ... | 28.918919 | 79 | 0.594393 | [
"vector"
] |
d649f1bbf4a2e6697dcf06706bc27540077b44fb | 674 | cpp | C++ | codeforces/266b.queue-at-the-school/266b.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | 3 | 2018-01-19T14:09:23.000Z | 2018-02-01T00:40:55.000Z | codeforces/266b.queue-at-the-school/266b.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | codeforces/266b.queue-at-the-school/266b.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | // K1
// :)
#include <iostream>
#include <fstream>
#include <algorithm>
#include <vector>
#include <queue>
#include <bitset>
#include <string>
#include <cmath>
#include <iomanip>
#include <set>
#include <map>
#define EPS 1e-8
#define PI 3.141592653589793
#define X first
#define Y second
#define FX(x) fixed << setprec... | 14.340426 | 40 | 0.587537 | [
"vector"
] |
d651518c3a17243a773a532308de8314e9946b21 | 15,762 | cc | C++ | components/autofill/core/common/autofill_features.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/autofill/core/common/autofill_features.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/autofill/core/common/autofill_features.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/autofill/core/common/autofill_features.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/metrics/field... | 46.771513 | 80 | 0.798249 | [
"model"
] |
d653729691d191e919a1d422c02504bccb5b48bd | 16,962 | cpp | C++ | libmuscle/cpp/src/libmuscle/tests/test_instance.cpp | cffbots/muscle3 | ecc3db8b9910f1a1fe86110f543bae00579ff748 | [
"Apache-2.0"
] | 11 | 2018-03-12T10:43:46.000Z | 2020-06-01T10:58:56.000Z | libmuscle/cpp/src/libmuscle/tests/test_instance.cpp | cffbots/muscle3 | ecc3db8b9910f1a1fe86110f543bae00579ff748 | [
"Apache-2.0"
] | 85 | 2018-03-03T15:10:56.000Z | 2022-03-18T14:05:14.000Z | libmuscle/cpp/src/libmuscle/tests/test_instance.cpp | cffbots/muscle3 | ecc3db8b9910f1a1fe86110f543bae00579ff748 | [
"Apache-2.0"
] | 6 | 2018-03-12T10:47:11.000Z | 2022-02-03T13:44:07.000Z | // Inject mocks
#define LIBMUSCLE_MOCK_COMMUNICATOR <mocks/mock_communicator.hpp>
#define LIBMUSCLE_MOCK_LOGGER <mocks/mock_logger.hpp>
#define LIBMUSCLE_MOCK_MMP_CLIENT <mocks/mock_mmp_client.hpp>
// into the real implementation,
#include <ymmsl/ymmsl.hpp>
#include <libmuscle/close_port.cpp>
#include <libmuscle/data... | 34.758197 | 102 | 0.650631 | [
"vector"
] |
d6593224065e6eb622db03df910115fe3da1ab3b | 24,004 | cpp | C++ | LIB/libVision.cpp | adda25/mruby-LibVision | 032efbd70235d0045ad630425e15dc5ef1df8f23 | [
"MIT"
] | null | null | null | LIB/libVision.cpp | adda25/mruby-LibVision | 032efbd70235d0045ad630425e15dc5ef1df8f23 | [
"MIT"
] | null | null | null | LIB/libVision.cpp | adda25/mruby-LibVision | 032efbd70235d0045ad630425e15dc5ef1df8f23 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <map>
#include <opencv2/opencv.hpp>
#include <raspicam/raspicam_cv.h>
#include <raspicam/raspicam.h>
#include "libVision.h"
#include <stdio.h>
#ifdef __cplusplus
/*
____ ____ _ ____ _ _
/ ___| _ _ | _ \ ... | 32.090909 | 81 | 0.646934 | [
"vector"
] |
d6673b02b57c7edbdf2c2b3545852218e5e4bd9c | 34,455 | cpp | C++ | Engine/Source/Runtime/OpenGLDrv/Private/OpenGLRenderTarget.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | Engine/Source/Runtime/OpenGLDrv/Private/OpenGLRenderTarget.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | 2 | 2015-06-21T17:38:11.000Z | 2015-06-22T20:54:42.000Z | Engine/Source/Runtime/OpenGLDrv/Private/OpenGLRenderTarget.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
OpenGLRenderTarget.cpp: OpenGL render target implementation.
=============================================================================*/
#include "OpenGLDrvPrivate.h"
#incl... | 35.778816 | 223 | 0.750544 | [
"render",
"object"
] |
6996b61b36e83594225011cfc11cd406c6aff117 | 499 | cpp | C++ | src/LibKyra/Expressions/CallExpr.cpp | LukasPietzschmann/Slanguage | c00cc4712e24a201ab5ce55659d1ce38a3d8df41 | [
"MIT"
] | 7 | 2021-08-16T07:18:47.000Z | 2021-09-28T08:03:00.000Z | src/LibKyra/Expressions/CallExpr.cpp | LukasPietzschmann/Slanguage | c00cc4712e24a201ab5ce55659d1ce38a3d8df41 | [
"MIT"
] | null | null | null | src/LibKyra/Expressions/CallExpr.cpp | LukasPietzschmann/Slanguage | c00cc4712e24a201ab5ce55659d1ce38a3d8df41 | [
"MIT"
] | null | null | null | #include "CallExpr.hpp"
namespace Kyra {
CallExpr::CallExpr(const Position& position, const Expression::Ptr& function, std::vector<Expression::Ptr> arguments) :
Expression(position), m_function(function), m_arguments(std::move(arguments)) {}
void CallExpr::accept(ExpressionVisitor& visitor) { return visitor.visitCal... | 41.583333 | 119 | 0.765531 | [
"vector"
] |
69a2685af646c940ec4f1b5239eb63e8824dc183 | 36,415 | cpp | C++ | ui/DebugDraw.cpp | dev-bz/DeepMimic4Droid | 413d7aeeb65aa762de5f5ab41e6228727f227c65 | [
"MIT"
] | 6 | 2018-12-29T01:02:02.000Z | 2021-05-10T17:58:08.000Z | ui/DebugDraw.cpp | dev-bz/DeepMimic4Droid | 413d7aeeb65aa762de5f5ab41e6228727f227c65 | [
"MIT"
] | 1 | 2018-12-29T01:00:09.000Z | 2020-02-22T09:55:57.000Z | ui/DebugDraw.cpp | dev-bz/DeepMimic4Droid | 413d7aeeb65aa762de5f5ab41e6228727f227c65 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2006-2013 Erin Catto http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpos... | 36.59799 | 80 | 0.632459 | [
"object",
"shape"
] |
69a50c3f46c070bde760ff62b0544e0a5ac5b97f | 7,401 | hpp | C++ | src/utility/logger.hpp | mnewhouse/tselements | bd1c6724018e862156948a680bb1bc70dd28bef6 | [
"MIT"
] | null | null | null | src/utility/logger.hpp | mnewhouse/tselements | bd1c6724018e862156948a680bb1bc70dd28bef6 | [
"MIT"
] | null | null | null | src/utility/logger.hpp | mnewhouse/tselements | bd1c6724018e862156948a680bb1bc70dd28bef6 | [
"MIT"
] | null | null | null | /*
* TS Elements
* Copyright 2015-2018 M. Newhouse
* Released under the MIT license.
*/
#pragma once
#include <vector>
#include <mutex>
#include <atomic>
#include <thread>
#include <fstream>
#include <boost/interprocess/streams/vectorstream.hpp>
namespace ts
{
namespace logger
{
namespace impl
{
s... | 22.564024 | 102 | 0.653155 | [
"vector"
] |
69a5a9a5c656e76521ad40a3124bb349d15c25d9 | 5,218 | cpp | C++ | FMU/tests/source/unittest_DataStore.cpp | kwabenantim/No-MASS | 843ccaa461923e227a8e854daaa6952d14cb8bed | [
"MIT"
] | null | null | null | FMU/tests/source/unittest_DataStore.cpp | kwabenantim/No-MASS | 843ccaa461923e227a8e854daaa6952d14cb8bed | [
"MIT"
] | 1 | 2020-08-28T18:11:26.000Z | 2020-08-28T18:11:26.000Z | FMU/tests/source/unittest_DataStore.cpp | kwabenantim/No-MASS | 843ccaa461923e227a8e854daaa6952d14cb8bed | [
"MIT"
] | 2 | 2020-02-05T10:49:42.000Z | 2020-08-28T08:23:28.000Z | // Copyright 2015 Jacob Chapman
#include <limits.h>
#include <vector>
#include "tests/Gen.hpp"
#include "Configuration.hpp"
#include "Utility.hpp"
#include "DataStore.hpp"
#include "gtest/gtest.h"
class Test_DataStore : public ::testing::Test {
protected:
int res;
virtual void SetUp();
virtual void Afte... | 26.48731 | 78 | 0.630701 | [
"vector"
] |
69a6a03843273fdaccde61adcce9c6a718f33f7a | 3,796 | cxx | C++ | all-tests/test-get.cxx | Hungerarray/winbgim | 4a0bc7da71cacba61bcf6dcb7d3e2ad1ef8ebb82 | [
"MIT"
] | null | null | null | all-tests/test-get.cxx | Hungerarray/winbgim | 4a0bc7da71cacba61bcf6dcb7d3e2ad1ef8ebb82 | [
"MIT"
] | null | null | null | all-tests/test-get.cxx | Hungerarray/winbgim | 4a0bc7da71cacba61bcf6dcb7d3e2ad1ef8ebb82 | [
"MIT"
] | null | null | null | // FILE: testget.cpp
// Written by Michael Main -- Nov 4, 1998
//
// Illustrates several features of the modified winbgim functions.
// To use these features, please download the newest versions of
// winbgim.h and winbgim.cpp as described in:
// http://www.cs.colorado.edu/~main/bgi/README.html
// Then create a project... | 38.343434 | 77 | 0.547418 | [
"model"
] |
69af79c99bea844c7aa8ec3e2c5025267374fc50 | 11,130 | hpp | C++ | gsa/wit/COIN/Bcp/include/BCP_problem_core.hpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 1 | 2019-10-25T05:25:23.000Z | 2019-10-25T05:25:23.000Z | gsa/wit/COIN/Bcp/include/BCP_problem_core.hpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 2 | 2019-09-04T17:34:59.000Z | 2020-09-16T08:10:57.000Z | gsa/wit/COIN/Bcp/include/BCP_problem_core.hpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 18 | 2019-07-22T19:01:25.000Z | 2022-03-03T15:36:11.000Z | // Copyright (C) 2000, International Business Machines
// Corporation and others. All Rights Reserved.
#ifndef _BCP_PROBLEM_CORE_H
#define _BCP_PROBLEM_CORE_H
// This file is fully docified.
#include "BCP_vector.hpp"
#include "BCP_matrix.hpp"
#include "BCP_buffer.hpp"
#include "BCP_enum.hpp"
#include "BCP_obj_change... | 41.842105 | 79 | 0.66496 | [
"object",
"vector"
] |
69b3bce70f6d646e2ceb1d75cfb40000babbd49f | 6,357 | hpp | C++ | sdk/messages/state/differential_base.hpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | null | null | null | sdk/messages/state/differential_base.hpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | null | null | null | sdk/messages/state/differential_base.hpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2022-01-28T16:37:51.000Z | 2022-01-28T16:37:51.000Z | /*
Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... | 40.234177 | 96 | 0.791568 | [
"vector"
] |
69b5d4d8433604f1c5352a91e345fbc900de2bc3 | 486 | hpp | C++ | src/engine.hpp | lemywinx/CarbonRain | 430a399fb3fbe06a18202d1d3bddf95984249c14 | [
"Apache-2.0"
] | 1 | 2020-07-14T12:20:55.000Z | 2020-07-14T12:20:55.000Z | src/engine.hpp | lemywinx/carbon-rain | 430a399fb3fbe06a18202d1d3bddf95984249c14 | [
"Apache-2.0"
] | null | null | null | src/engine.hpp | lemywinx/carbon-rain | 430a399fb3fbe06a18202d1d3bddf95984249c14 | [
"Apache-2.0"
] | null | null | null | #ifndef ENGINE_H
#define ENGINE_H
#include <libtcod/libtcod.hpp>
class Actor;
class Map;
class Engine {
public :
enum GameStatus {
STARTUP,
IDLE,
NEW_TURN,
VICTORY,
DEFEAT
} gameStatus;
int fovRadius;
TCODList<Actor *> a... | 14.727273 | 33 | 0.506173 | [
"render"
] |
69bc0d075142f3434fe85fbbdda2a59eeff9cd7d | 4,634 | cxx | C++ | panda/src/net/netDatagram.cxx | kestred/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | 3 | 2018-03-09T12:07:29.000Z | 2021-02-25T06:50:25.000Z | panda/src/net/netDatagram.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | panda/src/net/netDatagram.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | // Filename: netDatagram.cxx
// Created by: jns (07Feb00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should ... | 32.633803 | 70 | 0.442167 | [
"3d"
] |
69ce6db6345a0ae614aced5ca2409863e4024b86 | 3,408 | cpp | C++ | core/base/log.cpp | bartbalaz/gentroller | b40c4fb5661619e9540f0d4b88f6f22aafb9156c | [
"BSD-3-Clause"
] | null | null | null | core/base/log.cpp | bartbalaz/gentroller | b40c4fb5661619e9540f0d4b88f6f22aafb9156c | [
"BSD-3-Clause"
] | null | null | null | core/base/log.cpp | bartbalaz/gentroller | b40c4fb5661619e9540f0d4b88f6f22aafb9156c | [
"BSD-3-Clause"
] | null | null | null |
#include <sstream>
#include <iostream>
#include <libgen.h>
#include <string.h>
#include <stdarg.h>
#include "boost/date_time/posix_time/posix_time.hpp"
#include "exception.hpp"
#include "application.hpp"
#include "log.hpp"
namespace pt = boost::posix_time;
using namespace Bx::Base;
Log Log::_logInstance;
std::ve... | 19.699422 | 80 | 0.588322 | [
"vector"
] |
69dcc5b91cc9b072dd33f10557665a64c12f11dd | 916 | hpp | C++ | ChaosGL/Buffer.hpp | chaosarts/ChaosGL.cpp | 7d851a404824609547fb9261790b87cee7699d5c | [
"Apache-2.0"
] | null | null | null | ChaosGL/Buffer.hpp | chaosarts/ChaosGL.cpp | 7d851a404824609547fb9261790b87cee7699d5c | [
"Apache-2.0"
] | null | null | null | ChaosGL/Buffer.hpp | chaosarts/ChaosGL.cpp | 7d851a404824609547fb9261790b87cee7699d5c | [
"Apache-2.0"
] | null | null | null | /*
* Buffer.h
*
* Created on: 07.03.2016
* Author: chaos
*/
#ifndef ChaosGL_Buffer_hpp
#define ChaosGL_Buffer_hpp
#include "ChaosGL.hpp"
#include <stdlib.h>
namespace chaosgl
{
class Buffer
{
private:
/** Provides the buffer id */
GLuint* const _id;
public:
/** Provides the target of th... | 12.722222 | 66 | 0.568777 | [
"object"
] |
69e22c4cff32af89a2dde7d4de83404501c336c8 | 12,875 | cpp | C++ | src/init.cpp | PICOVERAVR/VkGrass | c7651a430c1746c7808bfcb38b6c2b3274dbfa54 | [
"MIT"
] | null | null | null | src/init.cpp | PICOVERAVR/VkGrass | c7651a430c1746c7808bfcb38b6c2b3274dbfa54 | [
"MIT"
] | null | null | null | src/init.cpp | PICOVERAVR/VkGrass | c7651a430c1746c7808bfcb38b6c2b3274dbfa54 | [
"MIT"
] | null | null | null | #include <cstring> // for strcmp
#include <set>
#include "options.hpp"
#include "extensions.hpp"
#include "main.hpp"
void appvk::windowSizeCallback(GLFWwindow* w, int width, int height) {
(void)width;
(void)height;
appvk* papp = reinterpret_cast<appvk*>(glfwGetWindowUserPointer(w));
papp->resizeOccurre... | 35.46832 | 130 | 0.699184 | [
"vector"
] |
69e2b506f1d27fab4d24911430bf3017ef2fc383 | 1,168 | cpp | C++ | LeetCode/C++/General/Easy/MinimumAbsoluteDifference/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Easy/MinimumAbsoluteDifference/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Easy/MinimumAbsoluteDifference/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
/*
* Approach: we sort the input vector and then make two passes over the input vector.
* In the first pass, we find the minimum absolute difference between any two numbers.
* In the second pass, we find all pairs of numbers that have a... | 23.36 | 87 | 0.632705 | [
"vector"
] |
69e6743a0abe006c927cea47616a40cb52f46199 | 939 | cpp | C++ | c++/solution1405.cpp | imafish/leetcodetests | abee2c2d6c0b25a21ef4294bceb7e069b6547b85 | [
"MIT"
] | null | null | null | c++/solution1405.cpp | imafish/leetcodetests | abee2c2d6c0b25a21ef4294bceb7e069b6547b85 | [
"MIT"
] | null | null | null | c++/solution1405.cpp | imafish/leetcodetests | abee2c2d6c0b25a21ef4294bceb7e069b6547b85 | [
"MIT"
] | null | null | null | #include "afx.h"
using namespace std;
class Solution
{
public:
string longestDiverseString(int a, int b, int c)
{
string result;
vector<std::pair<int, char>> data{{a, 'a'}, {b, 'b'}, {c, 'c'}};
bool going = true;
while (going)
{
sort(data.begin(), data.end()... | 23.475 | 79 | 0.366347 | [
"vector"
] |
69eaf559f69d785e7ee32bae2bff56fa05716655 | 81,392 | cpp | C++ | tcs/direct_steam_receivers.cpp | mfwatki2/ssc | 289a6df2e0563bbad588da947e2a9fcc3f9dda55 | [
"MIT"
] | 3 | 2017-09-04T12:19:13.000Z | 2017-09-12T15:44:38.000Z | tcs/direct_steam_receivers.cpp | mfwatki2/ssc | 289a6df2e0563bbad588da947e2a9fcc3f9dda55 | [
"MIT"
] | 1 | 2018-03-26T06:50:20.000Z | 2018-03-26T06:50:20.000Z | tcs/direct_steam_receivers.cpp | mfwatki2/ssc | 289a6df2e0563bbad588da947e2a9fcc3f9dda55 | [
"MIT"
] | 2 | 2018-02-12T22:23:55.000Z | 2018-08-23T07:32:54.000Z | /*******************************************************************************************************
* Copyright 2017 Alliance for Sustainable Energy, LLC
*
* NOTICE: This software was developed at least in part by Alliance for Sustainable Energy, LLC
* (“Alliance”) under Contract No. DE-AC36-08GO28308 with the ... | 39.761602 | 301 | 0.622371 | [
"model"
] |
69ed68fcada456211f569f5906a56f239dde773d | 2,434 | cpp | C++ | TensorProductQuadrature.cpp | T3ks/SPQR | b554d172fc798caa7a708bfbbb71a21d136403b1 | [
"BSD-3-Clause"
] | 1 | 2016-09-11T12:02:57.000Z | 2016-09-11T12:02:57.000Z | TensorProductQuadrature.cpp | T3ks/SPQR | b554d172fc798caa7a708bfbbb71a21d136403b1 | [
"BSD-3-Clause"
] | null | null | null | TensorProductQuadrature.cpp | T3ks/SPQR | b554d172fc798caa7a708bfbbb71a21d136403b1 | [
"BSD-3-Clause"
] | 2 | 2017-01-28T02:25:12.000Z | 2020-06-12T16:43:19.000Z | #include "TensorProductQuadrature.hpp"
/** \brief default constructor without arguments
*
*/
TensorProductQuadrature::TensorProductQuadrature(void) {}
/** \brief constructor with quadrature degrees calls init_quadrature
* \param[in] degs maximum quadrature degrees in each dimension
*
*/
TensorProductQuadra... | 27.977011 | 77 | 0.639277 | [
"vector"
] |
69f3c796839fa1d29767d2d485da58ba15889c16 | 7,835 | cc | C++ | tools/upgrade-flux-file.cc | adafruit/fluxengine | 3f56b9aa4ebe7e1e56e43a9cf7590f987cc64bcf | [
"MIT"
] | 1 | 2022-01-16T10:31:25.000Z | 2022-01-16T10:31:25.000Z | tools/upgrade-flux-file.cc | adafruit/fluxengine | 3f56b9aa4ebe7e1e56e43a9cf7590f987cc64bcf | [
"MIT"
] | null | null | null | tools/upgrade-flux-file.cc | adafruit/fluxengine | 3f56b9aa4ebe7e1e56e43a9cf7590f987cc64bcf | [
"MIT"
] | null | null | null | #include "globals.h"
#include "fluxmap.h"
#include "fluxsink/fluxsink.h"
#include "bytes.h"
#include "fmt/format.h"
#include <string.h>
#include <fstream>
#include <sqlite3.h>
/* --- SQL library ------------------------------------------------------- */
enum
{
FLUX_VERSION_0, /* without properties table */
FL... | 25.438312 | 80 | 0.550223 | [
"vector"
] |
0e0f9c722d91f581185ea63be4be5bdb5adf1a54 | 6,080 | cc | C++ | components/cast/message_port/message_port_unittest.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | components/cast/message_port/message_port_unittest.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | components/cast/message_port/message_port_unittest.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/cast/message_port/message_port.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
... | 34.350282 | 85 | 0.731086 | [
"vector"
] |
97b91716671e80fbfe3682afff1f1100814ad259 | 1,931 | cpp | C++ | Exam/Task-2/task-2.cpp | kgolov/uni-data-structures | 8d8b2ff75ffa0ceed3ebe7bbc294680134b7d1c1 | [
"MIT"
] | null | null | null | Exam/Task-2/task-2.cpp | kgolov/uni-data-structures | 8d8b2ff75ffa0ceed3ebe7bbc294680134b7d1c1 | [
"MIT"
] | null | null | null | Exam/Task-2/task-2.cpp | kgolov/uni-data-structures | 8d8b2ff75ffa0ceed3ebe7bbc294680134b7d1c1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> arr(n);
for (int i = 0; i < n; i++) {
cin >> arr[i];
}
int queries;
cin >> queries;
int input;
for (int i = 0; i < queries; i++) {
cin >> input;
int left = 0;
... | 22.453488 | 64 | 0.380114 | [
"vector"
] |
97bb53a9500a4531d50aa94b8e3756c78398bd00 | 5,140 | cc | C++ | nansae/core/trie_test.cc | danielslee/nansae-corelib | ca365c39a8c05b1392435916a4326181d30a3ccf | [
"Apache-2.0"
] | null | null | null | nansae/core/trie_test.cc | danielslee/nansae-corelib | ca365c39a8c05b1392435916a4326181d30a3ccf | [
"Apache-2.0"
] | null | null | null | nansae/core/trie_test.cc | danielslee/nansae-corelib | ca365c39a8c05b1392435916a4326181d30a3ccf | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2015-2017 Daniel Shihoon Lee <daniel@nansae.im>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 31.533742 | 75 | 0.641634 | [
"vector"
] |
97c170d1ce148bbdfc6237a451b00f6ae8308c6f | 7,556 | cpp | C++ | src/renderImage.cpp | Wasabi2007/AlphaToMesh | 67f909eb5d510090f51c2596ec543f82b989defa | [
"Unlicense",
"MIT"
] | 1 | 2021-10-30T06:46:50.000Z | 2021-10-30T06:46:50.000Z | src/renderImage.cpp | Wasabi2007/AlphaToMesh | 67f909eb5d510090f51c2596ec543f82b989defa | [
"Unlicense",
"MIT"
] | null | null | null | src/renderImage.cpp | Wasabi2007/AlphaToMesh | 67f909eb5d510090f51c2596ec543f82b989defa | [
"Unlicense",
"MIT"
] | null | null | null | //
// Created by Jerry on 18.07.2015.
//
#include "../lodepng/lodepng.h"
#include "renderImage.h"
#include <string>
#include <gtx/string_cast.hpp>
renderImage::renderImage(const char* filename):renderImage(imageStruct::load(filename)){
}
renderImage::renderImage(imageStruct* img):
img(img),V... | 35.980952 | 127 | 0.659211 | [
"render",
"vector"
] |
97c902477825af56401f5257f8e9aa71d0b3ca7d | 3,655 | cpp | C++ | CH5 Errors/E14.cpp | essentialblend/cplusplus-mega | 23a91280532f246c96ad4d918bff4b8e15c30ac6 | [
"MIT"
] | null | null | null | CH5 Errors/E14.cpp | essentialblend/cplusplus-mega | 23a91280532f246c96ad4d918bff4b8e15c30ac6 | [
"MIT"
] | null | null | null | CH5 Errors/E14.cpp | essentialblend/cplusplus-mega | 23a91280532f246c96ad4d918bff4b8e15c30ac6 | [
"MIT"
] | null | null | null | // Read (day-of-the-week,value) pairs from standard input. Collect all the values for each day of the week in a vector<int>. Write out the values of the seven day-of-the-week vectors. Print out the sum of the values in each vector. Ignore illegal days of the week, such as Funday, but accept common synonyms such as Mon ... | 29.24 | 373 | 0.499316 | [
"vector"
] |
97c9e043b9cd9385c3af8a0487b1bf314ab01dfb | 51,544 | cpp | C++ | source/LibFgWin/FgDirect3D.cpp | SingularInversions/FaceGenBaseLibrary | e928b482fa78597cfcf3923f7252f7902ec0dfa9 | [
"MIT"
] | 41 | 2016-04-09T07:48:10.000Z | 2022-03-01T15:46:08.000Z | source/LibFgWin/FgDirect3D.cpp | SingularInversions/FaceGenBaseLibrary | e928b482fa78597cfcf3923f7252f7902ec0dfa9 | [
"MIT"
] | 9 | 2015-09-23T10:54:50.000Z | 2020-01-04T21:16:57.000Z | source/LibFgWin/FgDirect3D.cpp | SingularInversions/FaceGenBaseLibrary | e928b482fa78597cfcf3923f7252f7902ec0dfa9 | [
"MIT"
] | 29 | 2015-10-01T14:44:42.000Z | 2022-01-05T01:28:43.000Z | //
// Coypright (c) 2021 Singular Inversions Inc. (facegen.com)
// Use, modification and distribution is subject to the MIT License,
// see accompanying file LICENSE.txt or facegen.com/base_library_license.txt
//
// * Requires D3D 11.1 runtime / DXGI 11.1 (guaranteed on Win7 SP1 and higher, released 12.08.
// D... | 43.497046 | 121 | 0.59295 | [
"mesh",
"render",
"object",
"vector",
"model"
] |
97cef360030cd6e69391afbff839bf67b126aea2 | 13,968 | cpp | C++ | postgres/src/v20170312/model/AnalysisItems.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | postgres/src/v20170312/model/AnalysisItems.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | postgres/src/v20170312/model/AnalysisItems.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* 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
... | 28.104628 | 151 | 0.684636 | [
"model"
] |
97cf2d5d053f9e8bb6d436573084f49310c627be | 1,937 | cpp | C++ | cpp/2787.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 9 | 2021-01-15T13:36:39.000Z | 2022-02-23T03:44:46.000Z | cpp/2787.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 1 | 2021-07-31T17:11:26.000Z | 2021-08-02T01:01:03.000Z | cpp/2787.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
constexpr int INF = 1e9 + 7;
struct HopcroftKarp { //Hopcroft-Karp algorithm, O(Esqrt(V)).
vector<vector<int>> adj;
vector<int> par, lv, work, check; int sz;
HopcroftKarp(int n) : adj(n), par(n, -1), lv(n), work(n), check(n... | 24.833333 | 77 | 0.478059 | [
"vector"
] |
97dd193fd28eaa73f1571f3431270120246504d5 | 27,641 | cpp | C++ | src/renderer/MasterRenderer.cpp | hzqst/Atlas-Engine | fe45c5529815d6ca28a3bad7920d95281efc0028 | [
"BSD-3-Clause"
] | 1 | 2021-09-30T21:51:46.000Z | 2021-09-30T21:51:46.000Z | src/renderer/MasterRenderer.cpp | hzqst/Atlas-Engine | fe45c5529815d6ca28a3bad7920d95281efc0028 | [
"BSD-3-Clause"
] | null | null | null | src/renderer/MasterRenderer.cpp | hzqst/Atlas-Engine | fe45c5529815d6ca28a3bad7920d95281efc0028 | [
"BSD-3-Clause"
] | null | null | null | #include "MasterRenderer.h"
#include "helper/GeometryHelper.h"
#include "helper/HaltonSequence.h"
#include "../common/Packing.h"
#define FEATURE_BASE_COLOR_MAP (1 << 1)
#define FEATURE_OPACITY_MAP (1 << 2)
#define FEATURE_NORMAL_MAP (1 << 3)
#define FEATURE_ROUGHNESS_MAP (1 << 4)
#define FEATURE_METALNESS_MAP (1 << 5... | 29.657725 | 150 | 0.705872 | [
"mesh",
"render",
"vector"
] |
97deb259b22b1b1410b6be462bd1f321a1cb5465 | 8,989 | cpp | C++ | VFD_MN19216/mbGFX_MN19216.cpp | sstefanov/VFD | ee855fe69203c5f2d4bba396544d92c85ea0f0d1 | [
"MIT"
] | null | null | null | VFD_MN19216/mbGFX_MN19216.cpp | sstefanov/VFD | ee855fe69203c5f2d4bba396544d92c85ea0f0d1 | [
"MIT"
] | null | null | null | VFD_MN19216/mbGFX_MN19216.cpp | sstefanov/VFD | ee855fe69203c5f2d4bba396544d92c85ea0f0d1 | [
"MIT"
] | null | null | null | /// A GFX 1-bit canvas context for graphics
/// double buffer:
/// buffer+offset is the one to draw, the other will be for display
#include <Arduino.h>
#include <SPI.h>
//#include <mbLog.h>
#include "mbGFX_MN19216.h"
//#include <LowLevelQuickDigitalIO.h>
//using namespace LowLevelQuickDigitalIO;
#include <digitalPi... | 24.229111 | 103 | 0.580042 | [
"object"
] |
97e3ceb44ffa19bd3d3b074a71eef3f8512f579e | 8,644 | cpp | C++ | TouchMindLib/touchmind/ribbon/handler/NodeBackgroundColorCommandHandler.cpp | yohei-yoshihara/TouchMind | 3ad878aacde7322ae7c4f94d462e0a2d4a24d3fa | [
"MIT"
] | 15 | 2015-07-10T05:03:27.000Z | 2021-06-08T08:24:46.000Z | TouchMindLib/touchmind/ribbon/handler/NodeBackgroundColorCommandHandler.cpp | yohei-yoshihara/TouchMind | 3ad878aacde7322ae7c4f94d462e0a2d4a24d3fa | [
"MIT"
] | null | null | null | TouchMindLib/touchmind/ribbon/handler/NodeBackgroundColorCommandHandler.cpp | yohei-yoshihara/TouchMind | 3ad878aacde7322ae7c4f94d462e0a2d4a24d3fa | [
"MIT"
] | 10 | 2015-01-04T01:23:56.000Z | 2020-12-29T11:35:47.000Z | #include "stdafx.h"
#include "resource.h"
#include "touchmind/Common.h"
#include "touchmind/Context.h"
#include "touchmind/logging/Logging.h"
#include "touchmind/ribbon/dispatch/RibbonRequestDispatcher.h"
#include "touchmind/ribbon/RibbonFramework.h"
#include "touchmind/ribbon/PropertySet.h"
#include "touchmind/util/Bi... | 40.392523 | 117 | 0.701296 | [
"model"
] |
97e4a9901462c089853b8afa6eb9157e88300b22 | 5,963 | cc | C++ | ui/app_list/app_list_view.cc | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | 2 | 2020-06-10T07:15:26.000Z | 2020-12-13T19:44:12.000Z | ui/app_list/app_list_view.cc | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | null | null | null | ui/app_list/app_list_view.cc | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/app_list/app_list_view.h"
#include "base/string_util.h"
#include "ui/app_list/app_list_background.h"
#include "ui/app_list/app_list_cons... | 29.230392 | 80 | 0.707194 | [
"model"
] |
97ed3126ae33ec4faeaf2240c0656666082276ae | 4,293 | cpp | C++ | tetris/src/game.cpp | j-petit/console_games | d77c4d4a133e915bb52bf278f7d11bcc68b7934e | [
"MIT"
] | null | null | null | tetris/src/game.cpp | j-petit/console_games | d77c4d4a133e915bb52bf278f7d11bcc68b7934e | [
"MIT"
] | null | null | null | tetris/src/game.cpp | j-petit/console_games | d77c4d4a133e915bb52bf278f7d11bcc68b7934e | [
"MIT"
] | null | null | null | #include "game.h"
#include <mutex>
#include <ncurses.h>
#include <thread>
#include <unistd.h>
using namespace cgame;
void cgame::printstr(const std::string &my_str) {
for (char ch : my_str) {
addch(ch);
}
}
void Game::logic() {}
void Game::draw() {
erase();
// draw playing field
int i = 0;
for (auto... | 23.459016 | 78 | 0.575821 | [
"shape"
] |
97f1687650471d08a4d89164f9a44775c1a691b9 | 12,474 | cc | C++ | ChiTech/ChiMesh/MeshCutting/cutmesh_2D_utils.cc | zachhardy/chi-tech | 18fb6cb691962a90820e2ef4fcb05473f4a6bdd6 | [
"MIT"
] | 1 | 2021-06-15T12:57:35.000Z | 2021-06-15T12:57:35.000Z | ChiTech/ChiMesh/MeshCutting/cutmesh_2D_utils.cc | zachhardy/chi-tech | 18fb6cb691962a90820e2ef4fcb05473f4a6bdd6 | [
"MIT"
] | 6 | 2020-08-17T16:27:12.000Z | 2020-08-19T13:59:45.000Z | ChiTech/ChiMesh/MeshCutting/cutmesh_2D_utils.cc | Naktakala/chi-tech | df5f517d5aff1d167db50ccbcf4229ac0cb668c4 | [
"MIT"
] | null | null | null | #include "meshcutting.h"
#include <algorithm>
//###################################################################
/**Make an edge for a polygon given its edge index.*/
std::pair<uint64_t,uint64_t> chi_mesh::mesh_cutting::
MakeEdgeFromPolygonEdgeIndex(const std::vector<uint64_t>& vertex_ids,
... | 31.984615 | 82 | 0.580728 | [
"mesh",
"vector"
] |
97f3d642cd4095de5c1134e4197e2d4338a16a4c | 727 | cpp | C++ | _Programming/cw1_task_2_1.cpp | DenysGusti/university | d90ddbc3cb023a0d8c8799223457999da4da23b1 | [
"MIT"
] | null | null | null | _Programming/cw1_task_2_1.cpp | DenysGusti/university | d90ddbc3cb023a0d8c8799223457999da4da23b1 | [
"MIT"
] | null | null | null | _Programming/cw1_task_2_1.cpp | DenysGusti/university | d90ddbc3cb023a0d8c8799223457999da4da23b1 | [
"MIT"
] | null | null | null | // Користувач вводить послідовність дійсних чисел розміру n.
// Видалити усі числа, які є менші за середнє значення і надрукувати результат.
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
long double average{};
cout << "n = ";
cin >> n;
vector<long double> arr(n);
... | 24.233333 | 79 | 0.515818 | [
"vector"
] |
97fc32da69a3fd3aefb285e40468ca36008d6452 | 26,803 | cc | C++ | aimsalgo/src/aimsalgo/information/pdf.cc | brainvisa/aims-free | 5852c1164292cadefc97cecace022d14ab362dc4 | [
"CECILL-B"
] | 4 | 2019-07-09T05:34:10.000Z | 2020-10-16T00:03:15.000Z | aimsalgo/src/aimsalgo/information/pdf.cc | brainvisa/aims-free | 5852c1164292cadefc97cecace022d14ab362dc4 | [
"CECILL-B"
] | 72 | 2018-10-31T14:52:50.000Z | 2022-03-04T11:22:51.000Z | aimsalgo/src/aimsalgo/information/pdf.cc | brainvisa/aims-free | 5852c1164292cadefc97cecace022d14ab362dc4 | [
"CECILL-B"
] | null | null | null | /* This software and supporting documentation are distributed by
* Institut Federatif de Recherche 49
* CEA/NeuroSpin, Batiment 145,
* 91191 Gif-sur-Yvette cedex
* France
*
* This software is governed by the CeCILL-B license under
* French law and abiding by the rules of distribution of free soft... | 29.880713 | 108 | 0.4573 | [
"vector"
] |
3f02dc7a177ce0298bd63ec852890c466248040e | 539 | cc | C++ | src/codeforces/accepted/822A.cc | cbarnson/UVa | 0dd73fae656613e28b5aaf5880c5dad529316270 | [
"Unlicense",
"MIT"
] | 2 | 2019-09-07T17:00:26.000Z | 2020-08-05T02:08:35.000Z | src/codeforces/accepted/822A.cc | cbarnson/UVa | 0dd73fae656613e28b5aaf5880c5dad529316270 | [
"Unlicense",
"MIT"
] | null | null | null | src/codeforces/accepted/822A.cc | cbarnson/UVa | 0dd73fae656613e28b5aaf5880c5dad529316270 | [
"Unlicense",
"MIT"
] | null | null | null | // Problem # : 822A
// Created on : 2018-Oct-31 17:23:35
#include <bits/stdc++.h>
#define FR(i, n) for (int i = 0; i < (int)(n); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
ll fac(ll n) {
if (n < 2) return 1LL;
return n * fac(n - 1LL);
}
ll f[15] = {};
int... | 16.84375 | 51 | 0.549165 | [
"vector"
] |
3f07ac7559f0041d8fa2c0ec2b53566fb4ea6336 | 1,705 | cc | C++ | onnxruntime/core/framework/data_transfer_manager.cc | hqucms/onnxruntime | 6e4e76414639f50836a64546603c8957227857b0 | [
"MIT"
] | 4 | 2019-06-06T23:48:57.000Z | 2021-06-03T11:51:45.000Z | onnxruntime/core/framework/data_transfer_manager.cc | hqucms/onnxruntime | 6e4e76414639f50836a64546603c8957227857b0 | [
"MIT"
] | 10 | 2019-03-25T21:47:46.000Z | 2019-04-30T02:33:05.000Z | onnxruntime/core/framework/data_transfer_manager.cc | hqucms/onnxruntime | 6e4e76414639f50836a64546603c8957227857b0 | [
"MIT"
] | 4 | 2021-06-05T19:52:22.000Z | 2021-11-30T13:58:13.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/framework/data_transfer_manager.h"
namespace onnxruntime {
using namespace common;
Status DataTransferManager::RegisterDataTransfer(std::unique_ptr<IDataTransfer> data_transfer) {
if (nullptr == data_tran... | 31 | 123 | 0.676833 | [
"shape"
] |
3f16bc735988c3ae161ab3c856d08b13c0324546 | 15,678 | cpp | C++ | elab/lnast_create.cpp | jsg831/livehd | 6a3fb84a8db2bdc3460bb391f82a796fef83d13b | [
"BSD-3-Clause"
] | null | null | null | elab/lnast_create.cpp | jsg831/livehd | 6a3fb84a8db2bdc3460bb391f82a796fef83d13b | [
"BSD-3-Clause"
] | null | null | null | elab/lnast_create.cpp | jsg831/livehd | 6a3fb84a8db2bdc3460bb391f82a796fef83d13b | [
"BSD-3-Clause"
] | null | null | null |
#include "lnast_create.hpp"
#include "iassert.hpp"
#include "mmap_str.hpp"
Lnast_create::Lnast_create() {}
mmap_lib::str Lnast_create::create_lnast_tmp() { return mmap_lib::str::concat("___", ++tmp_var_cnt); }
mmap_lib::str Lnast_create::get_lnast_name(mmap_lib::str vname) {
const auto &it = vname2lname.find(vna... | 31.801217 | 109 | 0.705894 | [
"vector"
] |
3f188455c1be324dcfa78e3f870e5ff2af7b8fb7 | 848 | cc | C++ | individually_weekly/w11/C.cc | xsthunder/a | 3c30f31c59030d70462b71ef28c5eee19c6eddd6 | [
"MIT"
] | 1 | 2018-07-22T04:52:10.000Z | 2018-07-22T04:52:10.000Z | individually_weekly/w11/C.cc | xsthunder/a | 3c30f31c59030d70462b71ef28c5eee19c6eddd6 | [
"MIT"
] | 1 | 2018-08-11T13:29:59.000Z | 2018-08-11T13:31:28.000Z | individually_weekly/w11/C.cc | xsthunder/a | 3c30f31c59030d70462b71ef28c5eee19c6eddd6 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<cstring>
#include<iomanip>
using namespace std;
#define iF if(Te)
#define MS(m) memset(m,0,sizeof(m))
#ifdef XS
#include<De>
const int Te=1;
#else
const int Te=0;
#endif
typedef unsigned U;
void inp();
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
inp();
ret... | 13.901639 | 47 | 0.574292 | [
"vector"
] |
3f2bad7b2959ca5b477fbbc2ae74836780f7920a | 444,245 | cpp | C++ | glfuncs.cpp | tdriggs/ETGG2802 | fd30a4663bb22eda6f97427d3259d53d93af5071 | [
"MIT"
] | null | null | null | glfuncs.cpp | tdriggs/ETGG2802 | fd30a4663bb22eda6f97427d3259d53d93af5071 | [
"MIT"
] | null | null | null | glfuncs.cpp | tdriggs/ETGG2802 | fd30a4663bb22eda6f97427d3259d53d93af5071 | [
"MIT"
] | null | null | null | /*Data from gl.xml, which has this copyright:
#Copyright (c) 2013-2016 The Khronos Group Inc.
#
#Permission is hereby granted, free of charge, to any person obtaining a
#copy of this software and/or associated documentation files (the
#"Materials"), to deal in the Materials without restriction, including
#without limi... | 46.498325 | 282 | 0.635334 | [
"render"
] |
3f2dd4d07c96cc4a2836a50cc065ade553fcaf52 | 13,234 | cpp | C++ | engines/basic/src/engine.cpp | WilliamLewww/vulkan_research_kit | 7f055329c25b16dc52e10ee50e64e5e3a2d6dfdc | [
"Apache-2.0"
] | null | null | null | engines/basic/src/engine.cpp | WilliamLewww/vulkan_research_kit | 7f055329c25b16dc52e10ee50e64e5e3a2d6dfdc | [
"Apache-2.0"
] | 2 | 2021-12-06T01:56:35.000Z | 2022-03-07T06:47:38.000Z | engines/basic/src/engine.cpp | WilliamLewww/vulkan_research_kit | 7f055329c25b16dc52e10ee50e64e5e3a2d6dfdc | [
"Apache-2.0"
] | null | null | null | #include "basic/engine.h"
Engine::Engine(std::string appName, bool enableValidation,
std::vector<std::string> instanceLayerList,
std::vector<std::string> instanceExtensionNameList) {
std::vector<VkValidationFeatureEnableEXT> validationFeatureEnableList;
std::vector<VkValidationFeatur... | 42.553055 | 80 | 0.728805 | [
"render",
"vector"
] |
3f327a33a255ff4a346684624db40fea8bcef913 | 7,092 | cpp | C++ | feature_detection/matching_perspective.cpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | 14 | 2018-03-26T13:43:58.000Z | 2022-03-03T13:04:36.000Z | feature_detection/matching_perspective.cpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | null | null | null | feature_detection/matching_perspective.cpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | 1 | 2019-08-03T23:12:08.000Z | 2019-08-03T23:12:08.000Z | //Illustration of SIFT matching for finding a perspective transform
// Andreas Unterweger, 2019-2022
//This code is licensed under the 3-Clause BSD License. See LICENSE file for details.
#include <iostream>
#include <vector>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/calib3d.hpp>
#in... | 41.717647 | 266 | 0.739284 | [
"vector",
"transform"
] |
3f384f9e1fd77cb863a8073dacfe12b86f0bfa9e | 1,031 | cpp | C++ | leetcode_archived_cpp/LeetCode_232.cpp | Sean10/Algorithm_code | 46ff1cb5b81400cbcc324dabdf4298bf7a55e5eb | [
"BSD-3-Clause"
] | null | null | null | leetcode_archived_cpp/LeetCode_232.cpp | Sean10/Algorithm_code | 46ff1cb5b81400cbcc324dabdf4298bf7a55e5eb | [
"BSD-3-Clause"
] | 7 | 2021-03-19T04:41:21.000Z | 2021-10-19T15:46:36.000Z | leetcode_archived_cpp/LeetCode_232.cpp | Sean10/Algorithm_code | 46ff1cb5b81400cbcc324dabdf4298bf7a55e5eb | [
"BSD-3-Clause"
] | null | null | null | class MyQueue {
public:
/** Initialize your data structure here. */
MyQueue() {
}
/** Push element x to the back of queue. */
void push(int x) {
input.push(x);
}
/** Removes the element from in front of queue and returns that element. */
int pop() {
peek();
int... | 20.62 | 79 | 0.506305 | [
"object"
] |
3f38c53004d73b34019a647e06f0a83a5b768662 | 11,944 | cc | C++ | source/device/opencl/oppack4/ocl_conv2d.cc | zhouzy-creator/Tengine | fea5c064da7b8ed0e24212dcc65d30fda3c7477c | [
"Apache-2.0"
] | 4 | 2020-03-25T06:16:15.000Z | 2021-12-28T06:06:48.000Z | source/device/opencl/oppack4/ocl_conv2d.cc | zhouzy-creator/Tengine | fea5c064da7b8ed0e24212dcc65d30fda3c7477c | [
"Apache-2.0"
] | 12 | 2021-05-12T12:28:12.000Z | 2022-03-30T15:15:39.000Z | source/device/opencl/oppack4/ocl_conv2d.cc | zhouzy-creator/Tengine | fea5c064da7b8ed0e24212dcc65d30fda3c7477c | [
"Apache-2.0"
] | 1 | 2022-03-03T03:36:51.000Z | 2022-03-03T03:36:51.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); ... | 41.32872 | 196 | 0.64007 | [
"vector"
] |
2786f6c632bb6f51197a2bfb00598bd230923204 | 6,388 | hpp | C++ | Hatman/vector2.hpp | DmitriBogdanov/hatman-game | f256eff596607e5517d1193db35175e3cd53b9b6 | [
"MIT"
] | null | null | null | Hatman/vector2.hpp | DmitriBogdanov/hatman-game | f256eff596607e5517d1193db35175e3cd53b9b6 | [
"MIT"
] | null | null | null | Hatman/vector2.hpp | DmitriBogdanov/hatman-game | f256eff596607e5517d1193db35175e3cd53b9b6 | [
"MIT"
] | null | null | null | #pragma once
/*
Classes/methods for 2D vector manipulation
*/
#include <cmath> // 'sqrt()', 'sin()', 'cos()', 'acos()', etc
#include <cstddef> // 'std::size_t' type for hash function
#include <functional> // contains 'std::hash()'
#include "ct_math.hpp" // constexpr math functions
// helpers::
// - Related utilit... | 24.19697 | 123 | 0.639637 | [
"vector"
] |
2787ef5ede673423ce568ca0fabcca6323cce168 | 10,567 | cpp | C++ | src/misc/Configuration.cpp | hermanndetz/xtalsim | f8bb841e504d0f578334e21391f55dff474ae5d7 | [
"MIT"
] | null | null | null | src/misc/Configuration.cpp | hermanndetz/xtalsim | f8bb841e504d0f578334e21391f55dff474ae5d7 | [
"MIT"
] | null | null | null | src/misc/Configuration.cpp | hermanndetz/xtalsim | f8bb841e504d0f578334e21391f55dff474ae5d7 | [
"MIT"
] | null | null | null | /**
Copyright (C) 2018 Hermann Detz and Juergen Maier
This software may be modified and distributed under the terms
of the MIT license. See the LICENSE file for details.
*/
#include "Configuration.h"
//------------------------------------------------------------------------------
Configuration::Configuration():
... | 44.586498 | 89 | 0.605754 | [
"render"
] |
278803bd9f85240942fee19480c3201f136a7d43 | 5,134 | cpp | C++ | kohonen_network/main.cpp | Shimmen/NeuralNetworkStuff | f9058a7ce8aa9d1929083e974568795245304159 | [
"MIT"
] | null | null | null | kohonen_network/main.cpp | Shimmen/NeuralNetworkStuff | f9058a7ce8aa9d1929083e974568795245304159 | [
"MIT"
] | null | null | null | kohonen_network/main.cpp | Shimmen/NeuralNetworkStuff | f9058a7ce8aa9d1929083e974568795245304159 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <random>
#include <matrix.h>
#include "kohonen-network.h"
#define WITHOUT_NUMPY
#include <matplotlib-cpp/matplotlibcpp.h>
namespace plt = matplotlibcpp;
///////////////////////////////////////////////
// Input data
struct InputPoint
{
double x;
double y;
... | 28.208791 | 107 | 0.637709 | [
"vector"
] |
2789baa06eb4bb36c6257d0f19ad7875ba6de8bb | 883 | cpp | C++ | src/read_crls.cpp | MTG-AG/cpt-native-lib-test | 3aedd6cc680840ecba0abeaf840c5234f8f52fbb | [
"Apache-2.0"
] | null | null | null | src/read_crls.cpp | MTG-AG/cpt-native-lib-test | 3aedd6cc680840ecba0abeaf840c5234f8f52fbb | [
"Apache-2.0"
] | null | null | null | src/read_crls.cpp | MTG-AG/cpt-native-lib-test | 3aedd6cc680840ecba0abeaf840c5234f8f52fbb | [
"Apache-2.0"
] | 1 | 2021-03-31T11:21:52.000Z | 2021-03-31T11:21:52.000Z | #include "read_crls.h"
#include "readdir.h"
#include "util.h"
#include "exceptn.h"
#include <iostream>
#include <string>
using namespace std;
crl_params_t read_crls_from_testcase_dir(std::string const& test_case_dir)
{
vector<string> crl_dir = get_entries_of_dir(test_case_dir, dir_entries_with_path, "crls");
if(... | 28.483871 | 112 | 0.733862 | [
"vector"
] |
278c84878620687c8e985a0770fac57dcbc41aed | 10,917 | cpp | C++ | damc_server/ChannelStrip/DeviceOutputInstance.cpp | amurzeau/waveplay | e0fc097137138c4a6985998db502468074bf739f | [
"MIT"
] | 5 | 2021-10-02T03:01:56.000Z | 2022-01-24T20:59:19.000Z | damc_server/ChannelStrip/DeviceOutputInstance.cpp | amurzeau/waveplay | e0fc097137138c4a6985998db502468074bf739f | [
"MIT"
] | null | null | null | damc_server/ChannelStrip/DeviceOutputInstance.cpp | amurzeau/waveplay | e0fc097137138c4a6985998db502468074bf739f | [
"MIT"
] | null | null | null | #include "DeviceOutputInstance.h"
#include <spdlog/spdlog.h>
#include <stdio.h>
#ifdef _WIN32
#include <pa_win_wasapi.h>
#endif
DeviceOutputInstance::DeviceOutputInstance(OscContainer* parent)
: OscContainer(parent, "device"),
stream(nullptr),
oscDeviceName(this, "deviceName", "default_out"),
os... | 34.547468 | 117 | 0.70862 | [
"vector"
] |
278ca8100c55ecdf108aa9b45ae622a435f811d9 | 2,005 | cpp | C++ | VoiceBridge/VoiceBridge/kaldi-win/scr/steps/scoring/score_kaldi_cer.cpp | sanyaade-teachings/VoiceBridge | 348b0931f2bfaf33b7e0d18c68c50f448ab3de5c | [
"Apache-2.0"
] | 18 | 2018-02-15T03:14:32.000Z | 2021-07-06T08:21:13.000Z | VoiceBridge/VoiceBridge/kaldi-win/scr/steps/scoring/score_kaldi_cer.cpp | sanyaade-teachings/VoiceBridge | 348b0931f2bfaf33b7e0d18c68c50f448ab3de5c | [
"Apache-2.0"
] | 3 | 2020-10-25T16:35:55.000Z | 2020-10-26T04:59:46.000Z | VoiceBridge/VoiceBridge/kaldi-win/scr/steps/scoring/score_kaldi_cer.cpp | sanyaade-teachings/VoiceBridge | 348b0931f2bfaf33b7e0d18c68c50f448ab3de5c | [
"Apache-2.0"
] | 7 | 2018-09-16T20:40:17.000Z | 2021-07-06T08:21:14.000Z | /*
Copyright 2017-present Zoltan Somogyi (AI-TOOLKIT), All Rights Reserved
You may use this file only if you agree to the software license:
AI-TOOLKIT Open Source Software License - Version 2.1 - February 22, 2018:
https://ai-toolkit.blogspot.com/p/ai-toolkit-open-source-software-license.html.
Also included with th... | 45.568182 | 178 | 0.693267 | [
"model"
] |
2792cb962a5aa3ce3bdb937d4ade66b3206c143e | 4,085 | cpp | C++ | foedus_code/tests-core/src/foedus/thread/test_rendezvous.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/tests-core/src/foedus/thread/test_rendezvous.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/tests-core/src/foedus/thread/test_rendezvous.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later versi... | 30.259259 | 100 | 0.687882 | [
"vector"
] |
2796dd01c912a08b52084e90867b0679e0bedfb4 | 5,813 | cpp | C++ | DX11/src/GameEngine/GraphicsEngine/RenderSystem/RenderSystem.cpp | dtrajko/HazelGameEngineSeries | 7210151d6422078ced080be9b8886e9a1ad79d7a | [
"Apache-2.0"
] | null | null | null | DX11/src/GameEngine/GraphicsEngine/RenderSystem/RenderSystem.cpp | dtrajko/HazelGameEngineSeries | 7210151d6422078ced080be9b8886e9a1ad79d7a | [
"Apache-2.0"
] | null | null | null | DX11/src/GameEngine/GraphicsEngine/RenderSystem/RenderSystem.cpp | dtrajko/HazelGameEngineSeries | 7210151d6422078ced080be9b8886e9a1ad79d7a | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019 PardCode.
// All rights reserved.
//
// This file is part of CPP-3D-Game-Tutorial-Series Project, accessible from https://github.com/PardCode/CPP-3D-Game-Tutorial-Series
// You can redistribute it and/or modify it under the terms of the GNU
// General Public License
//
// This file is provided A... | 27.037209 | 148 | 0.747291 | [
"3d"
] |
279823e21c319ef593cba9e87052eae83ceadd7f | 13,589 | cc | C++ | L1Trigger/L1TNtuples/src/L1AnalysisPhaseIIStep1.cc | vshang/cmssw | 9f24a9ca36825fe2c1abe5f058c7982e24fe3a69 | [
"Apache-2.0"
] | 1 | 2019-08-01T15:24:15.000Z | 2019-08-01T15:24:15.000Z | L1Trigger/L1TNtuples/src/L1AnalysisPhaseIIStep1.cc | vshang/cmssw | 9f24a9ca36825fe2c1abe5f058c7982e24fe3a69 | [
"Apache-2.0"
] | null | null | null | L1Trigger/L1TNtuples/src/L1AnalysisPhaseIIStep1.cc | vshang/cmssw | 9f24a9ca36825fe2c1abe5f058c7982e24fe3a69 | [
"Apache-2.0"
] | null | null | null | //This code is for filling the step1 menu objects, for full tree go for L1AnalysisPhaseII.c
#include "L1Trigger/L1TNtuples/interface/L1AnalysisPhaseIIStep1.h"
#include "L1Trigger/L1TMuon/interface/MicroGMTConfiguration.h"
L1Analysis::L1AnalysisPhaseIIStep1::L1AnalysisPhaseIIStep1() {}
L1Analysis::L1AnalysisPhaseIISte... | 46.064407 | 158 | 0.64383 | [
"vector"
] |
279aef1924b024d8631be58afecc49da086bfbea | 3,487 | hpp | C++ | routing/cross_mwm_osrm_graph.hpp | marceldallagnol/omim | 774de15a3b8c369acbf412f15a1db61717358262 | [
"Apache-2.0"
] | 2 | 2019-01-24T15:36:20.000Z | 2019-12-26T10:03:48.000Z | routing/cross_mwm_osrm_graph.hpp | marceldallagnol/omim | 774de15a3b8c369acbf412f15a1db61717358262 | [
"Apache-2.0"
] | 1 | 2018-03-07T15:05:23.000Z | 2018-03-07T15:05:23.000Z | routing/cross_mwm_osrm_graph.hpp | marceldallagnol/omim | 774de15a3b8c369acbf412f15a1db61717358262 | [
"Apache-2.0"
] | 1 | 2019-08-09T21:31:29.000Z | 2019-08-09T21:31:29.000Z | #pragma once
#include "routing/num_mwm_id.hpp"
#include "routing/routing_mapping.hpp"
#include "routing/segment.hpp"
#include "routing/transition_points.hpp"
#include "geometry/latlon.hpp"
#include "platform/country_file.hpp"
#include <map>
#include <memory>
#include <vector>
namespace routing
{
struct BorderCross... | 35.581633 | 98 | 0.733295 | [
"geometry",
"vector"
] |
279b45ae92eb2678b8b3648ebcac32ae80f0a3bd | 272 | cpp | C++ | Dataset/Leetcode/train/136/65.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/136/65.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/136/65.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
int singleNumber(vector<int>& nums) {
sort(nums.begin(),nums.end());
for(int i=0;i<nums.size()-2;i++){
if(nums[i]<nums[i+1])return nums[i];
i++;
}
return nums[nums.size()-1];
}
};
| 20.923077 | 48 | 0.477941 | [
"vector"
] |
279cdac28d99cb770cbccf4dba5462d2aa9b38f1 | 1,804 | cpp | C++ | cpp/KalkCpp/UI/AboutShape_Windows/about2drectangular.cpp | ScrappyCocco/Kalk | d5b258d06634f86f051d564d4937994486df62dc | [
"MIT"
] | null | null | null | cpp/KalkCpp/UI/AboutShape_Windows/about2drectangular.cpp | ScrappyCocco/Kalk | d5b258d06634f86f051d564d4937994486df62dc | [
"MIT"
] | null | null | null | cpp/KalkCpp/UI/AboutShape_Windows/about2drectangular.cpp | ScrappyCocco/Kalk | d5b258d06634f86f051d564d4937994486df62dc | [
"MIT"
] | 1 | 2021-01-21T11:58:35.000Z | 2021-01-21T11:58:35.000Z | #include "about2drectangular.h"
About2DRectangular::About2DRectangular(QWidget *parent) : MoreInfoShape(parent, ":shape/2D/rectangular", "Caratteristiche del rettagolo")
{
QLabel* base_label = new QLabel("Base:", this);
base_label->setFont(CalculatorMainInterface::getMainFont());
base_val = new QLabel("0",... | 32.214286 | 137 | 0.727273 | [
"shape"
] |
27a0c8b8a6b1c3ed29e42a51ee28e3458236d39e | 654 | cpp | C++ | LeetCode/ThousandOne/0728-self_divide_number.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0728-self_divide_number.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0728-self_divide_number.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 728. 自除数
自除数 是指可以被它包含的每一位数除尽的数。
例如,128 是一个自除数,因为 128 % 1 == 0,128 % 2 == 0,128 % 8 == 0。
还有,自除数不允许包含 0 。
给定上边界和下边界数字,输出一个列表,列表的元素是边界(含边界)内所有的自除数。
示例 1:
输入:
上边界left = 1, 下边界right = 22
输出: [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 15, 22]
注意:每个输入参数的边界满足 1 <= left <= right <= 10000。
*/
vector... | 14.863636 | 61 | 0.574924 | [
"vector"
] |
27a4ede1ee07a8d5fe744badc7abbf69c23c45c5 | 9,570 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/preference/SeekBarPreference.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/preference/SeekBarPreference.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/preference/SeekBarPreference.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 27.579251 | 98 | 0.657889 | [
"object"
] |
27a8e5f846a92d47067414cea6a0c398945f1e91 | 8,150 | cpp | C++ | Gems/ScriptCanvas/Code/Include/ScriptCanvas/Libraries/Operators/Math/OperatorDivideByNumber.cpp | DongerZone/o3de | 950335e86fc0f59f7da9b219a7578a07cb18d609 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-13T00:01:12.000Z | 2021-09-13T00:01:12.000Z | Gems/ScriptCanvas/Code/Include/ScriptCanvas/Libraries/Operators/Math/OperatorDivideByNumber.cpp | DongerZone/o3de | 950335e86fc0f59f7da9b219a7578a07cb18d609 | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/ScriptCanvas/Code/Include/ScriptCanvas/Libraries/Operators/Math/OperatorDivideByNumber.cpp | DongerZone/o3de | 950335e86fc0f59f7da9b219a7578a07cb18d609 | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "OperatorDivideByNumber.h"
#include <ScriptCanvas/Libraries/Core/MethodUtility.h>
#include ... | 40.346535 | 171 | 0.49227 | [
"vector",
"3d"
] |
27b1522b0b690fb12ad9592bcad5ad7055de5711 | 2,121 | cpp | C++ | sources/enduro2d/high/components/behaviour.cpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | null | null | null | sources/enduro2d/high/components/behaviour.cpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | null | null | null | sources/enduro2d/high/components/behaviour.cpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | null | null | null | /*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018-2020, by Matvey Cherevko (blackmatov@gmail.com)
***************************************************... | 32.136364 | 85 | 0.533239 | [
"object"
] |
27bd2e68e2a11891307623c671c6b630bff473a2 | 3,512 | cpp | C++ | src/4991_cleaningRobot.cpp | neweins/algorithm | d68c1dab5a125ec46af319a2a83d70f74422f08e | [
"MIT"
] | null | null | null | src/4991_cleaningRobot.cpp | neweins/algorithm | d68c1dab5a125ec46af319a2a83d70f74422f08e | [
"MIT"
] | null | null | null | src/4991_cleaningRobot.cpp | neweins/algorithm | d68c1dab5a125ec46af319a2a83d70f74422f08e | [
"MIT"
] | null | null | null | // https://www.acmicpc.net/problem/4991
#include <iostream>
#include <vector>
#include <stack> // dfs 완전 탐색
#include <queue> // bfs 최단 경로
#include <algorithm>
using namespace std;
char map[30][30];
/*
. : 깨끗한 칸
* : 더러운 칸
x : 가구
o : 시작 위치
*/
vector<pair<int,int>> Node;
vector<pair<int,int>> dirtNode; // limit : 10... | 24.388889 | 101 | 0.451025 | [
"vector"
] |
27be9fb1c9afed5231b0cb5976b6425cfab880f3 | 4,306 | cc | C++ | cxx/tests/test_irm_two_relations.cc | probcomp/hierarchical-irm | 042aaea56d66d05c4c54848353696ca60c692581 | [
"Apache-2.0"
] | 8 | 2021-08-18T19:53:17.000Z | 2022-03-28T20:48:51.000Z | cxx/tests/test_irm_two_relations.cc | probcomp/hierarchical-irm | 042aaea56d66d05c4c54848353696ca60c692581 | [
"Apache-2.0"
] | null | null | null | cxx/tests/test_irm_two_relations.cc | probcomp/hierarchical-irm | 042aaea56d66d05c4c54848353696ca60c692581 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 MIT Probabilistic Computing Project
// Apache License, Version 2.0, refer to LICENSE.txt
#include <cassert>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <random>
#include <set>
#include <string>
#include <vector>
#include "globals.hh"
#include "hirm.hh"
#include "ut... | 35.00813 | 78 | 0.524849 | [
"vector"
] |
27ce0fa5967f223b13cd3021b50f029c4150d755 | 3,559 | cpp | C++ | Source/Core/LibJob/Example01-simple/Main.cpp | dzik143/tegenaria | a6c138633ab14232a2229d7498875d9d869d25a9 | [
"MIT"
] | 3 | 2020-12-28T06:18:47.000Z | 2021-08-01T06:18:12.000Z | Source/Core/LibJob/Example01-simple/Main.cpp | dzik143/tegenaria | a6c138633ab14232a2229d7498875d9d869d25a9 | [
"MIT"
] | null | null | null | Source/Core/LibJob/Example01-simple/Main.cpp | dzik143/tegenaria | a6c138633ab14232a2229d7498875d9d869d25a9 | [
"MIT"
] | null | null | null | /******************************************************************************/
/* */
/* Copyright (c) 2010, 2014 Sylwester Wysocki <sw143@wp.pl> */
/* ... | 26.362963 | 92 | 0.513065 | [
"object"
] |
27d743171a426260bce80ef9016c7dd9eca58855 | 2,209 | cpp | C++ | sakura_core/apiwrap/StdApi.cpp | saurabhacellere/sakura | 2545777559bffaedf9c4e481fb8937fab2586bdb | [
"Zlib"
] | 1 | 2020-10-12T08:21:51.000Z | 2020-10-12T08:21:51.000Z | sakura_core/apiwrap/StdApi.cpp | saurabhacellere/sakura | 2545777559bffaedf9c4e481fb8937fab2586bdb | [
"Zlib"
] | 30 | 2016-01-27T16:10:19.000Z | 2018-02-18T16:33:49.000Z | sakura_core/apiwrap/StdApi.cpp | saurabhacellere/sakura | 2545777559bffaedf9c4e481fb8937fab2586bdb | [
"Zlib"
] | 1 | 2021-03-09T06:13:03.000Z | 2021-03-09T06:13:03.000Z | /*! @file */
#include "StdAfx.h"
#include <vector>
#include "StdApi.h"
#include "charset/charcode.h"
using namespace std;
namespace ApiWrap{
/*!
MakeSureDirectoryPathExists の UNICODE 版。
szDirPath で指定されたすべてのディレクトリを作成します。
ディレクトリの記述は、ルートから開始します。
@param DirPath
有効なパス名を指定する、null で終わる文字列へのポインタを指定します。
パスの最... | 22.773196 | 78 | 0.572657 | [
"vector"
] |
27db58336e0ba6da1d4cd14d3b5736473805e528 | 731 | cpp | C++ | 409-longest-palindrome/longest-palindrome.cpp | nagestx/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | 3 | 2018-12-15T14:07:12.000Z | 2020-07-19T23:18:09.000Z | 409-longest-palindrome/longest-palindrome.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | 409-longest-palindrome/longest-palindrome.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | // Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.
//
// This is case sensitive, for example "Aa" is not considered a palindrome here.
//
// Note:
// Assume the length of given string will not exceed 1,010.
//
//
// Ex... | 21.5 | 149 | 0.593707 | [
"vector"
] |
27de6b79bd1fcdb822d05e9837a74fdfcf41856a | 11,360 | cpp | C++ | example/Application.cpp | Godlike/Sleipnir | 8eff3749ba7b0dd104d215f3a5e08b8a2aa9acb0 | [
"MIT"
] | null | null | null | example/Application.cpp | Godlike/Sleipnir | 8eff3749ba7b0dd104d215f3a5e08b8a2aa9acb0 | [
"MIT"
] | 3 | 2017-08-07T22:13:57.000Z | 2019-03-03T06:22:30.000Z | example/Application.cpp | Godlike/Sleipnir | 8eff3749ba7b0dd104d215f3a5e08b8a2aa9acb0 | [
"MIT"
] | null | null | null | #include "Application.hpp"
#include <unicorn/system/CustomValue.hpp>
#include <unicorn/system/input/Action.hpp>
#include <unicorn/system/input/Key.hpp>
#include <unicorn/system/input/Modifier.hpp>
#include <unicorn/video/Color.hpp>
#include <unicorn/video/Graphics.hpp>
#include <unicorn/video/geometry/Primitives.hpp>... | 26.792453 | 157 | 0.613556 | [
"mesh",
"geometry",
"render"
] |
27e7e07d96e90b56bd6e35ec3e903eee3b8d3030 | 41,949 | cpp | C++ | Code.v05-00/src/Core/FileHandler.cpp | MIT-LAE/APCEMM | 2954bca64ec1c13552830d467d404dbe627ef71a | [
"MIT"
] | 2 | 2022-03-21T20:49:37.000Z | 2022-03-22T17:25:31.000Z | Code.v05-00/src/Core/FileHandler.cpp | MIT-LAE/APCEMM | 2954bca64ec1c13552830d467d404dbe627ef71a | [
"MIT"
] | null | null | null | Code.v05-00/src/Core/FileHandler.cpp | MIT-LAE/APCEMM | 2954bca64ec1c13552830d467d404dbe627ef71a | [
"MIT"
] | 1 | 2022-03-21T20:50:50.000Z | 2022-03-21T20:50:50.000Z | /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* */
/* Aircraft Plume Chemistry, Emission and Microphysics Model */
/* (APCEMM) */
/* ... | 44.961415 | 85 | 0.399604 | [
"object",
"model"
] |
27ea1b066c760853dbe609a39c7e8ecafa3662c8 | 78,415 | cpp | C++ | test/shape_tester/ShapeTester.cpp | cxwx/VecGeom | c86c00bd7d4db08f4fc20a625020da329784aaac | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-06-27T18:43:36.000Z | 2020-06-27T18:43:36.000Z | test/shape_tester/ShapeTester.cpp | cxwx/VecGeom | c86c00bd7d4db08f4fc20a625020da329784aaac | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/shape_tester/ShapeTester.cpp | cxwx/VecGeom | c86c00bd7d4db08f4fc20a625020da329784aaac | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | //
// Implementation of the batch solid test
//
#include "VecGeom/base/RNG.h"
#include <iomanip>
#include <sstream>
#include <ctime>
#include <vector>
#include <iostream>
#include <fstream>
#include "ShapeTester.h"
#include "VecGeom/volumes/PlacedVolume.h"
#include "VecGeom/base/Transformation3D.h"
#include "VecGe... | 34.034288 | 120 | 0.60806 | [
"shape",
"vector",
"transform",
"solid"
] |
27ebaa81b51a0a53e06185b8188b84165a9c08b6 | 3,268 | hpp | C++ | include/dldist.hpp | namreeb/string_algorithms | a91ac5752538bd06d02c390a96e831d4b084bf7d | [
"MIT"
] | null | null | null | include/dldist.hpp | namreeb/string_algorithms | a91ac5752538bd06d02c390a96e831d4b084bf7d | [
"MIT"
] | null | null | null | include/dldist.hpp | namreeb/string_algorithms | a91ac5752538bd06d02c390a96e831d4b084bf7d | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2019 namreeb (legal@namreeb.org) http://github.com/namreeb/string_algorithms
*
* 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, i... | 33.346939 | 104 | 0.626071 | [
"vector"
] |
27ec30cc8690e7b2f923ebea65c0a88d1a9946e8 | 11,235 | cpp | C++ | coopplot/src/net/create_data.cpp | wolfjagger/coopnet | 8ba81ee8ca45d6476d4733f315c909020ef55585 | [
"MIT"
] | null | null | null | coopplot/src/net/create_data.cpp | wolfjagger/coopnet | 8ba81ee8ca45d6476d4733f315c909020ef55585 | [
"MIT"
] | null | null | null | coopplot/src/net/create_data.cpp | wolfjagger/coopnet | 8ba81ee8ca45d6476d4733f315c909020ef55585 | [
"MIT"
] | null | null | null | #include "create_data.h"
#include <numeric>
#include "alphali/util/timer.h"
#include "coopnet/sat/problem/problem.h"
#include "coopnet/sat/problem/creation/problem_factory.h"
#include "coopnet/sat/solving/dpll/dpll_solver.h"
#include "coopnet/sat/solving/walk/walk_solver.h"
using namespace coopnet;
namespace {
con... | 26.87799 | 81 | 0.673965 | [
"vector"
] |
27faa2a6389ca9f112156fbdc2478242ce14ed8f | 1,173 | cpp | C++ | libvast/test/detail/set_operations.cpp | lava/vast | 0bc9e3c12eb31ec50dd0270626d55e84b2255899 | [
"BSD-3-Clause"
] | 249 | 2019-08-26T01:44:45.000Z | 2022-03-26T14:12:32.000Z | libvast/test/detail/set_operations.cpp | 5l1v3r1/vast | a2cb4be879a13cef855da2c1d73083204aed4dff | [
"BSD-3-Clause"
] | 586 | 2019-08-06T13:10:36.000Z | 2022-03-31T08:31:00.000Z | libvast/test/detail/set_operations.cpp | satta/vast | 6c7587effd4265c4a5de23252bc7c7af3ef78bee | [
"BSD-3-Clause"
] | 37 | 2019-08-16T02:01:14.000Z | 2022-02-21T16:13:59.000Z | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2018 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#define SUITE set_operations
#include "vast/detail/set_o... | 19.881356 | 57 | 0.635976 | [
"vector"
] |
27fe2f49eba8c28d380e509f4cda62aa295cae60 | 5,102 | hpp | C++ | tpm_module/libhis_changesrksecret.hpp | iadgovuser26/HIRS | 4b461ebbabac5cd8ef54e562f597d65346c3c863 | [
"Apache-2.0"
] | 127 | 2018-09-07T15:45:45.000Z | 2022-02-10T11:13:51.000Z | tpm_module/libhis_changesrksecret.hpp | iadgovuser26/HIRS | 4b461ebbabac5cd8ef54e562f597d65346c3c863 | [
"Apache-2.0"
] | 260 | 2018-09-07T19:08:25.000Z | 2022-03-31T15:28:24.000Z | tpm_module/libhis_changesrksecret.hpp | iadgovuser26/HIRS | 4b461ebbabac5cd8ef54e562f597d65346c3c863 | [
"Apache-2.0"
] | 48 | 2018-09-23T09:13:20.000Z | 2022-03-06T20:17:09.000Z | #ifndef libhis_changesrksecret_hpp
#define libhis_changesrksecret_hpp
#ifdef WINDOWS
#include "tspi.h"
#include "tss_error.h"
#include "tss_defines.h"
#endif
#ifdef LINUX
#include <tss/tspi.h>
#include <tss/tss_error.h>
#include <tss/tss_defines.h>
#endif
#include "libhis_exception.hpp"
class l... | 33.788079 | 104 | 0.736182 | [
"object"
] |
27fe4b2e4c8cae6e0be5d9029cc8ccc20b33c8e3 | 3,530 | cpp | C++ | src/svg_reader.cpp | phonxvzf/svg2scad | eb458df6cee6a65fbabbe5a5600f50551532adb4 | [
"MIT"
] | null | null | null | src/svg_reader.cpp | phonxvzf/svg2scad | eb458df6cee6a65fbabbe5a5600f50551532adb4 | [
"MIT"
] | null | null | null | src/svg_reader.cpp | phonxvzf/svg2scad | eb458df6cee6a65fbabbe5a5600f50551532adb4 | [
"MIT"
] | null | null | null | #include <iostream>
#include "svg_reader.hpp"
namespace svg {
reader::context::~context() {
}
const std::vector<std::shared_ptr<action::base>>& reader::context::actions() const {
return m_actions;
}
void reader::context::path_move_to(float x, float y, svgpp::tag::coordinate::absolute) {
m_actions.... | 27.153846 | 97 | 0.626062 | [
"vector"
] |
27ff2e00a3e3c5bd9a0899c3ea6e0e9ea611aa55 | 135,099 | cpp | C++ | SampleProject/Builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs57.cpp | frenchmajorcsminor/MapsSDK-Unity | 0b3c0713d63279bd9fa62837fa7559d7f3cbd439 | [
"MIT"
] | null | null | null | SampleProject/Builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs57.cpp | frenchmajorcsminor/MapsSDK-Unity | 0b3c0713d63279bd9fa62837fa7559d7f3cbd439 | [
"MIT"
] | null | null | null | SampleProject/Builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs57.cpp | frenchmajorcsminor/MapsSDK-Unity | 0b3c0713d63279bd9fa62837fa7559d7f3cbd439 | [
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
// System.Collections.Generic.Dictionary`2<=aaB6=,System.Int32>[]
struct Dictionary_2U5BU5D_tA3398E9236105F4A0966BD833EB80C43D1... | 51.115778 | 528 | 0.851154 | [
"object"
] |
27ff74f247b980f84f3c43f54333d5aa98177902 | 5,824 | cpp | C++ | Main.cpp | RMPowser/ConsoleFPS | 8dde91295f81aaaf31aac3b19fccf9df8090de98 | [
"MIT"
] | null | null | null | Main.cpp | RMPowser/ConsoleFPS | 8dde91295f81aaaf31aac3b19fccf9df8090de98 | [
"MIT"
] | null | null | null | Main.cpp | RMPowser/ConsoleFPS | 8dde91295f81aaaf31aac3b19fccf9df8090de98 | [
"MIT"
] | null | null | null | #include <iostream>
#include <chrono>
#define UNICODE
#include <Windows.h>
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std;
int screenWidth = 120;
int screenHeight = 40;
float playerX = 8.f;
float playerY = 8.f;
float playerAngle = 0.f;
int mapHeight = 16;
int mapWidth = 16;
float fov ... | 26.962963 | 136 | 0.541724 | [
"vector"
] |
7e02d2d8226ff9b7720470882b8668561089451a | 890 | cpp | C++ | AtCoder/ABC195/d.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | AtCoder/ABC195/d.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | AtCoder/ABC195/d.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using Graph = vector<vector<int>>;
int main() {
int n, m, q;
cin >> n >> m >> q;
vector<int> w(n), v(n);
rep(i, n) cin >> w[i] >> v[i];
vector<int> x(m);
rep(i, m) c... | 21.707317 | 50 | 0.435955 | [
"vector"
] |
7e0bd8e5c446d6697cbca177c4bdb9a28d48cd89 | 31,173 | cpp | C++ | STARLIGHT/starlight/src/photonNucleusCrossSection.cpp | zwound40/AliRoot | 2eeb196e31e59937df6705c3b7fca0e6da4a8cb2 | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | STARLIGHT/starlight/src/photonNucleusCrossSection.cpp | zwound40/AliRoot | 2eeb196e31e59937df6705c3b7fca0e6da4a8cb2 | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | STARLIGHT/starlight/src/photonNucleusCrossSection.cpp | zwound40/AliRoot | 2eeb196e31e59937df6705c3b7fca0e6da4a8cb2 | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | ///////////////////////////////////////////////////////////////////////////
//
// Copyright 2010
//
// This file is part of starlight.
//
// starlight 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 Found... | 33.664147 | 134 | 0.600969 | [
"vector"
] |
7e0ce3878e9fffcf7013d1c585fe3178be972e1b | 20,403 | cc | C++ | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_opimpl.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_opimpl.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_opimpl.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #ifndef INCLUDED_STDDEFX
#include "stddefx.h"
#define INCLUDED_STDDEFX
#endif
#ifndef INCLUDED_CALC_OPIMPL
#include "calc_opimpl.h"
#define INCLUDED_CALC_OPIMPL
#endif
// Library headers.
#ifndef INCLUDED_BOOST_SCOPED_PTR
#include <boost/scoped_ptr.hpp>
#define INCLUDED_BOOST_SCOPED_PTR
#endif
// PCRaster library he... | 27.423387 | 105 | 0.616282 | [
"vector"
] |
7e0cf9829851a40926837ac89544b55cd590c23d | 3,062 | cpp | C++ | Acm contests/Asia regional - Daejon/f.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | Acm contests/Asia regional - Daejon/f.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | Acm contests/Asia regional - Daejon/f.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | # include <bits/stdc++.h>
# define x first
# define y second
# define mp make_pair
// everything goes according to my plan
# define pb push_back
# define sz(a) (int)(a.size())
# define vec vector
// shimkenttin kyzdary, dzyn, dzyn, dzyn...
# define y1 Y_U_NO_y1
# define left Y_U_NO_left
# define right Y_U_NO_right... | 18.011765 | 108 | 0.46081 | [
"vector"
] |
7e11c9ac78ba55136aa3b9b2a8f9bf01cb991c60 | 3,985 | cpp | C++ | src/game/entity/bullet.cpp | lili2012/BarbersAndRebarbs | 8a3c10cebded55dabaf6f8673735c6f3606cb4af | [
"MIT"
] | 4 | 2016-04-26T20:25:07.000Z | 2021-12-15T06:58:57.000Z | src/game/entity/bullet.cpp | lili2012/BarbersAndRebarbs | 8a3c10cebded55dabaf6f8673735c6f3606cb4af | [
"MIT"
] | 2 | 2016-07-29T22:52:12.000Z | 2016-09-22T08:30:29.000Z | src/game/entity/bullet.cpp | lili2012/BarbersAndRebarbs | 8a3c10cebded55dabaf6f8673735c6f3606cb4af | [
"MIT"
] | 1 | 2020-10-31T10:20:32.000Z | 2020-10-31T10:20:32.000Z | // The MIT License (MIT)
// Copyright (c) 2016 nabijaczleweli
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy... | 37.59434 | 158 | 0.694354 | [
"object",
"vector"
] |
7e127cafdc6eda2c4cdb5a97c790cfbd9330b726 | 4,756 | cc | C++ | ZKLockGuard.cc | hthao/ZKDLock | 57da008c6de192ad3c9b4a142146686eb34064e8 | [
"MIT"
] | 3 | 2017-04-24T10:22:20.000Z | 2020-10-26T18:09:45.000Z | ZKLockGuard.cc | hthao/ZKDLock | 57da008c6de192ad3c9b4a142146686eb34064e8 | [
"MIT"
] | null | null | null | ZKLockGuard.cc | hthao/ZKDLock | 57da008c6de192ad3c9b4a142146686eb34064e8 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <vector>
#include "./ZKLockGuard.h"
namespace sandsea {
ZKLock::ZKLock(zhandle_t *zh)
{
zh_ = zh;
}
ZKLock::~ZKLock()
{
}
void ZKLock::defaultWatcher(zhandle_t *zh, int type, int state, const char *path, void *watcherCtx)
{
}
void ZKLock::lockWatcher(zhandle_t *zh, int type, int s... | 27.177143 | 121 | 0.585997 | [
"vector"
] |
7e1633e54cb7689a235dfa4a86b08d96e627d58f | 4,210 | hpp | C++ | ThirdParty-mod/java2cpp/java/util/zip/CheckedOutputStream.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/java/util/zip/CheckedOutputStream.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/java/util/zip/CheckedOutputStream.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: java.util.zip.CheckedOutputStream
================================================================================*/
#ifndef J2CPP_INCLUD... | 31.893939 | 155 | 0.712827 | [
"object"
] |
7e1a03e10ef965137d8146d1dc1de0ca21236041 | 689 | cpp | C++ | btest.cpp | jmscreation/Multiplayer-Console-Game | f99e9da6aa36ba6a501a68a967d15a9f7ac8e9a8 | [
"Apache-2.0"
] | null | null | null | btest.cpp | jmscreation/Multiplayer-Console-Game | f99e9da6aa36ba6a501a68a967d15a9f7ac8e9a8 | [
"Apache-2.0"
] | null | null | null | btest.cpp | jmscreation/Multiplayer-Console-Game | f99e9da6aa36ba6a501a68a967d15a9f7ac8e9a8 | [
"Apache-2.0"
] | null | null | null | /**
This application is used for strictly low-level debugging purpose only
*/
#include "console_library.h"
#include "multiplayer.h"
#include "windows.h"
#include <iostream>
using namespace std;
int main(){
cout << "Testing..." << endl;
Input input;
Multiplayer mplay;
do {
mplay.update... | 21.53125 | 98 | 0.545718 | [
"vector"
] |
7e1ae55c9ce448d472f022c3bc20356a8ef88c2d | 3,351 | cc | C++ | backend/storage/in_memory_iterator_test.cc | sgorse12/cloud-spanner-emulator | 13ebb6d42867bfbc80224b4a74a896b683ae4555 | [
"Apache-2.0"
] | 179 | 2020-03-30T20:30:49.000Z | 2022-03-31T04:47:55.000Z | backend/storage/in_memory_iterator_test.cc | sgorse12/cloud-spanner-emulator | 13ebb6d42867bfbc80224b4a74a896b683ae4555 | [
"Apache-2.0"
] | 53 | 2020-08-31T15:14:30.000Z | 2022-03-30T21:28:36.000Z | backend/storage/in_memory_iterator_test.cc | sgorse12/cloud-spanner-emulator | 13ebb6d42867bfbc80224b4a74a896b683ae4555 | [
"Apache-2.0"
] | 26 | 2020-04-02T04:05:58.000Z | 2022-02-22T12:05:55.000Z | //
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 29.654867 | 75 | 0.678007 | [
"vector"
] |
7e1d5ad3bab4223209e981aaa76b14d054d1a76d | 65,415 | cpp | C++ | Linux_build/SharedMultiSpec/SClusterSinglePass.cpp | cas-nctu/multispec | 0bc840bdb073b5feaeec650c2da762cfa34ee37d | [
"Apache-2.0"
] | 11 | 2020-03-10T02:06:00.000Z | 2022-02-17T19:59:50.000Z | Linux_build/SharedMultiSpec/SClusterSinglePass.cpp | cas-nctu/multispec | 0bc840bdb073b5feaeec650c2da762cfa34ee37d | [
"Apache-2.0"
] | null | null | null | Linux_build/SharedMultiSpec/SClusterSinglePass.cpp | cas-nctu/multispec | 0bc840bdb073b5feaeec650c2da762cfa34ee37d | [
"Apache-2.0"
] | 5 | 2020-05-30T00:59:22.000Z | 2021-12-06T01:37:05.000Z | // MultiSpec
//
// Copyright 1988-2020 Purdue Research 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: https://www.apach... | 30.841584 | 86 | 0.604066 | [
"vector"
] |
7e1e1142948d4a72cc450224590e32d248befdcc | 1,554 | cpp | C++ | tests/OxSignCalculator_NoneTest.cpp | MRKonrad/OxShmolli2 | abe020f4aa08c1037f04fe80e68f0651d03cccd1 | [
"MIT"
] | 7 | 2018-12-10T10:11:03.000Z | 2021-03-11T14:40:40.000Z | tests/OxSignCalculator_NoneTest.cpp | MRKonrad/OxShmolli2 | abe020f4aa08c1037f04fe80e68f0651d03cccd1 | [
"MIT"
] | 10 | 2019-03-10T11:42:55.000Z | 2021-12-10T15:39:41.000Z | tests/OxSignCalculator_NoneTest.cpp | MRKonrad/OxShmolli2 | abe020f4aa08c1037f04fe80e68f0651d03cccd1 | [
"MIT"
] | 3 | 2019-12-04T14:05:54.000Z | 2022-02-26T00:24:38.000Z | /*!
* \file OxSignCalculatorNone_test.cpp
* \author Konrad Werys
* \date 2019/11/13
*/
#include "CmakeConfigForTomato.h"
#include "gtest/gtest.h"
#ifdef USE_YAML
#include "OxTestData.h"
#include "CmakeConfigForTomato.h"
#include "OxModelT1ThreeParam.h"
#include "OxFitterLevenbergMarquardtVnl.h"
#include "OxStar... | 27.263158 | 95 | 0.747104 | [
"model"
] |
7e21c87c0172595ec730c0a5184723b114f58804 | 1,485 | cpp | C++ | STL/Functional/ArithmeticOperators.cpp | emilianocanedo/CppExamples | 8de7fa61f0327a6f0ed6a0ee1663235e55277cca | [
"MIT"
] | 1 | 2020-07-05T00:55:31.000Z | 2020-07-05T00:55:31.000Z | STL/Functional/ArithmeticOperators.cpp | NibiruCpp/CppCert | 8de7fa61f0327a6f0ed6a0ee1663235e55277cca | [
"MIT"
] | null | null | null | STL/Functional/ArithmeticOperators.cpp | NibiruCpp/CppCert | 8de7fa61f0327a6f0ed6a0ee1663235e55277cca | [
"MIT"
] | null | null | null | #include <iostream>
#include <list>
#include <algorithm>
#include <iterator>
#include <functional>
using namespace std;
template <class T>
void print(T start, T end)
{
for (;start != end; ++start) {
cout << *start << " ";
}
}
int main()
{
int t1[] = {1, 2, 3, 4, 5};
list<int> l1(t1, t1+5);
... | 23.203125 | 79 | 0.515825 | [
"transform"
] |
cce02e79eb55d104e3edb0b78248992976eb427e | 14,599 | cpp | C++ | src/hera.cpp | xueying4402/hera | 30d0354918e7265833ab78de33caafb4adbb27ea | [
"Apache-2.0"
] | 4 | 2018-09-22T19:09:18.000Z | 2019-08-04T04:34:32.000Z | src/hera.cpp | xueying4402/hera | 30d0354918e7265833ab78de33caafb4adbb27ea | [
"Apache-2.0"
] | null | null | null | src/hera.cpp | xueying4402/hera | 30d0354918e7265833ab78de33caafb4adbb27ea | [
"Apache-2.0"
] | 2 | 2021-12-27T08:46:22.000Z | 2022-02-14T05:27:01.000Z | /*
* Copyright 2016-2018 Alex Beregszaszi et al.
*
* 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 ... | 29.915984 | 148 | 0.672375 | [
"vector"
] |
cceace17d1b315723481bb94a30ef8c94c4d6e7f | 46,012 | cpp | C++ | src/AddOns/Data Structures/Dico.cpp | clasqm/Squirrel99 | 09fb4cf9c26433b5bc1915dee1b31178222d9e81 | [
"MIT"
] | 2 | 2019-01-26T14:35:33.000Z | 2020-03-31T10:39:39.000Z | src/AddOns/Data Structures/Dico.cpp | clasqm/Squirrel99 | 09fb4cf9c26433b5bc1915dee1b31178222d9e81 | [
"MIT"
] | 1 | 2018-12-12T17:04:17.000Z | 2018-12-12T17:04:17.000Z | src/AddOns/Data Structures/Dico.cpp | clasqm/Squirrel99 | 09fb4cf9c26433b5bc1915dee1b31178222d9e81 | [
"MIT"
] | 1 | 2020-10-26T08:56:12.000Z | 2020-10-26T08:56:12.000Z | /*
* Squirrel project
*
* file ? Dico.cpp
* what ? Dico object
* who ? jlv
* when ? 11/08/99
* last ? 03/21/00
*
*
* (c) Kirilla 1999-2001
*/
#include "SQI-AddOn.h"
#include "Dico.h"
#include <algorithm>
//DicoMemberDico DicoObjectMember;
MethodTable *DicoMethods = NULL; // methods hash table
/*
* fu... | 21.744802 | 112 | 0.574915 | [
"object",
"vector"
] |
ccf2712d822efc298d174fc764678a40e34242a5 | 7,490 | cpp | C++ | Frame/Effect04.cpp | CrossProd/Aardbei_SouthsideExploration | cead610de95fb87b5aab60b4ec834a8c814a3c12 | [
"MIT"
] | 1 | 2018-11-20T03:50:35.000Z | 2018-11-20T03:50:35.000Z | Frame/Effect04.cpp | rbruinier/Aardbei_SouthsideExploration | cead610de95fb87b5aab60b4ec834a8c814a3c12 | [
"MIT"
] | null | null | null | Frame/Effect04.cpp | rbruinier/Aardbei_SouthsideExploration | cead610de95fb87b5aab60b4ec834a8c814a3c12 | [
"MIT"
] | null | null | null | /*
Southside Variations - Effect04
Description:
Retro lijnen, dus gebend, maar dan 3 of 4 om een centrale heen gebonden.
*/
#include "Main.h"
#include "Effect04.h"
#define SPERM_COUNT 40
Vector spermLocation[SPERM_COUNT];
#define TUBE_SEGMENTX 20
#define TUBE_SEGMENTY 100
#define TUBE... | 25.56314 | 108 | 0.62243 | [
"render",
"object",
"vector"
] |
ccf65a58b5e77562dd4b9c73d1cb6cad6b224d1e | 3,102 | hpp | C++ | fault-monitor/operational-status-monitor.hpp | lkammath/phosphor-led-manager-1 | 23d5408ba8050e12ec31cba66f3f111d6200d70c | [
"Apache-2.0"
] | 4 | 2017-12-01T19:36:29.000Z | 2020-04-22T17:21:09.000Z | fault-monitor/operational-status-monitor.hpp | lkammath/phosphor-led-manager-1 | 23d5408ba8050e12ec31cba66f3f111d6200d70c | [
"Apache-2.0"
] | 10 | 2016-11-09T09:16:13.000Z | 2021-06-30T03:31:02.000Z | fault-monitor/operational-status-monitor.hpp | lkammath/phosphor-led-manager-1 | 23d5408ba8050e12ec31cba66f3f111d6200d70c | [
"Apache-2.0"
] | 12 | 2016-12-16T17:18:07.000Z | 2021-12-06T05:26:45.000Z | #pragma once
#include "../utils.hpp"
#include <sdbusplus/bus.hpp>
#include <sdbusplus/server.hpp>
namespace phosphor
{
namespace led
{
namespace Operational
{
namespace status
{
namespace monitor
{
using namespace phosphor::led::utils;
/** @class Monitor
* @brief Implementation of LED handling during the change o... | 31.02 | 80 | 0.627015 | [
"object",
"vector"
] |
ccfc6c63360fe35e884c9b5a9d78166d32039403 | 1,995 | hpp | C++ | bftengine/src/bftengine/ViewChangeSafetyLogic.hpp | beerriot/concord-bft | e1282c148bcf9eb28534e571cf7f6ff9a53808db | [
"Apache-2.0"
] | null | null | null | bftengine/src/bftengine/ViewChangeSafetyLogic.hpp | beerriot/concord-bft | e1282c148bcf9eb28534e571cf7f6ff9a53808db | [
"Apache-2.0"
] | null | null | null | bftengine/src/bftengine/ViewChangeSafetyLogic.hpp | beerriot/concord-bft | e1282c148bcf9eb28534e571cf7f6ff9a53808db | [
"Apache-2.0"
] | 1 | 2021-05-18T02:12:33.000Z | 2021-05-18T02:12:33.000Z | //Concord
//
//Copyright (c) 2018 VMware, Inc. All Rights Reserved.
//
//This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in compliance with the Apache 2.0 License.
//
//This product may include a number of subcomponents with separate copyright notices ... | 30.692308 | 235 | 0.769424 | [
"vector"
] |
6910ced89370d0b117d8e639cf659911444a147c | 464 | hpp | C++ | diu/Engine/codes/CodeModule.hpp | dicarne/diu | 23589581ec5bc6a3ed1b8322e24d33977852ca1c | [
"MIT"
] | null | null | null | diu/Engine/codes/CodeModule.hpp | dicarne/diu | 23589581ec5bc6a3ed1b8322e24d33977852ca1c | [
"MIT"
] | null | null | null | diu/Engine/codes/CodeModule.hpp | dicarne/diu | 23589581ec5bc6a3ed1b8322e24d33977852ca1c | [
"MIT"
] | null | null | null | #ifndef CODE_MODULE_H_
#define CODE_MODULE_H_
#include "CodeCodePage.hpp"
#include <unordered_map>
#include <memory>
#include <string>
#include <vector>
using std::unordered_map;
using std::shared_ptr;
using std::string;
using std::vector;
class CodeModule
{
private:
/* data */
public:
unordered_map<string, sh... | 19.333333 | 66 | 0.724138 | [
"vector"
] |
6910f935a03b5d5d177ab7d8ae181865263aca40 | 755 | cpp | C++ | LeetCode/cpp/122.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/cpp/122.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/cpp/122.cpp | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution {
public:
int maxProfit(vector<int> &prices) {
bool bought = false;
auto size = prices.size();
int profit = 0, price = 0;
int i = 0;
while (i < size) {
if (!bought) {
if (prices[i] < prices[i + 1] && i + 1 < size) {
... | 26.964286 | 64 | 0.350993 | [
"vector"
] |
691e6b047285126ef540426828e454606eae9d2e | 6,687 | cpp | C++ | src/Layout.cpp | Milerius/Qaterial | 2c1a9bfc5e44eb6f447f345f2a3cda61661b55e9 | [
"MIT"
] | null | null | null | src/Layout.cpp | Milerius/Qaterial | 2c1a9bfc5e44eb6f447f345f2a3cda61661b55e9 | [
"MIT"
] | null | null | null | src/Layout.cpp | Milerius/Qaterial | 2c1a9bfc5e44eb6f447f345f2a3cda61661b55e9 | [
"MIT"
] | null | null | null | // ──── INCLUDE ────
// Library Headers
#include <Qaterial/Layout.hpp>
// Dependencies Headers
// Qt Headers
// Stl Headers
#include <cmath>
// ──── DECLARATION ────
using namespace qaterial;
// ──── FUNCTIONS ────
LayoutAttached::LayoutAttached(QObject* object) :
_extraLarge(Layout::defaultPreferredFill(La... | 26.121094 | 106 | 0.664274 | [
"object",
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.