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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d5c1211393ea9b33ab9990caf024545f7763778f | 10,073 | cpp | C++ | src/levels/level2.cpp | TomSavas/ScrewGeometry | 396a6302220de2fcd7f9a947b5c5a508c28ded69 | [
"MIT"
] | null | null | null | src/levels/level2.cpp | TomSavas/ScrewGeometry | 396a6302220de2fcd7f9a947b5c5a508c28ded69 | [
"MIT"
] | null | null | null | src/levels/level2.cpp | TomSavas/ScrewGeometry | 396a6302220de2fcd7f9a947b5c5a508c28ded69 | [
"MIT"
] | null | null | null | #include "levels/level2.h"
#include <utility>
#include "GLFW/glfw3.h"
#include "OBJ_Loader.h"
#include "game_objects/camera.h"
#include "game_objects/portal.h"
#include "components/model.h"
#include "components/transform.h"
#include "components/player_controller.h"
#include "components/portal_camera_controller.h"
#... | 49.377451 | 213 | 0.704457 | [
"model",
"transform"
] |
d5c17404235f0c64168927d78dd2581f36d184cd | 18,030 | cpp | C++ | modules/dnn/src/op_webnn.cpp | yash112-lang/opencv | be38d4ea932bc3a0d06845ed1a2de84acc2a09de | [
"Apache-2.0"
] | 2 | 2022-03-26T11:12:18.000Z | 2022-03-30T13:07:32.000Z | modules/dnn/src/op_webnn.cpp | yash112-lang/opencv | be38d4ea932bc3a0d06845ed1a2de84acc2a09de | [
"Apache-2.0"
] | null | null | null | modules/dnn/src/op_webnn.cpp | yash112-lang/opencv | be38d4ea932bc3a0d06845ed1a2de84acc2a09de | [
"Apache-2.0"
] | 1 | 2020-12-13T22:09:12.000Z | 2020-12-13T22:09:12.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "precomp.hpp"
#include <fstream>
#include "op_webnn.hpp"
#include <opencv2/core/utils/configuration.private.hpp>
#i... | 34.606526 | 123 | 0.577981 | [
"vector",
"model"
] |
d5c50f7bd30fefe5270a82d8e57dacb8938dfed6 | 1,380 | hpp | C++ | util/combinatorics.hpp | silentWatcher3/Ludo-The_Game | 03576725241fe89dfd7cc74110971877663086b0 | [
"MIT"
] | 16 | 2020-05-27T10:12:42.000Z | 2020-11-25T10:46:37.000Z | util/combinatorics.hpp | silentWatcher3/Ludo-The_Game | 03576725241fe89dfd7cc74110971877663086b0 | [
"MIT"
] | 20 | 2020-05-27T10:15:34.000Z | 2020-10-29T14:02:06.000Z | util/combinatorics.hpp | silentWatcher3/Ludo-The_Game | 03576725241fe89dfd7cc74110971877663086b0 | [
"MIT"
] | 15 | 2020-05-27T10:27:27.000Z | 2020-10-19T16:11:11.000Z | #pragma once
#include <vector>
namespace util
{
/*@brief Returns true if `num` can be written as a sum of some elements of the vector v; Else returns false*/
template <typename T = int>
bool isSum(T num, const std::vector<T> &v);
template <typename T = int>
std::vector<T> isSumOfElements(T num, c... | 21.904762 | 113 | 0.478986 | [
"vector"
] |
d5c5db5b2e95b554315df7b17a95c86d5458900b | 3,762 | cpp | C++ | tests/ka/test_algorithm.cpp | Maelic/libqi | 0a92452be48376004e5e5ebfe2bd0683725d033e | [
"BSD-3-Clause"
] | null | null | null | tests/ka/test_algorithm.cpp | Maelic/libqi | 0a92452be48376004e5e5ebfe2bd0683725d033e | [
"BSD-3-Clause"
] | null | null | null | tests/ka/test_algorithm.cpp | Maelic/libqi | 0a92452be48376004e5e5ebfe2bd0683725d033e | [
"BSD-3-Clause"
] | null | null | null | #include <gtest/gtest.h>
#include <ka/algorithm.hpp>
#include <string>
#include <vector>
#include <deque>
#include <list>
#include <forward_list>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <boost/container/static_vector.hpp>
#include <boost/container/small_vector.hpp>
#incl... | 25.591837 | 85 | 0.669591 | [
"vector"
] |
d5c70145e4383154ef81adfe5b6f7ebcfce0adf2 | 938 | cpp | C++ | cuda/src/gridding.cpp | duducheng/torch-points-kernels | aed9cf56ca61fe34b4880159951760e5dcb3a1db | [
"MIT"
] | 52 | 2020-04-14T14:55:18.000Z | 2021-07-19T12:36:22.000Z | cuda/src/gridding.cpp | duducheng/torch-points-kernels | aed9cf56ca61fe34b4880159951760e5dcb3a1db | [
"MIT"
] | 32 | 2020-04-21T10:43:22.000Z | 2021-07-29T12:27:28.000Z | cuda/src/gridding.cpp | duducheng/torch-points-kernels | aed9cf56ca61fe34b4880159951760e5dcb3a1db | [
"MIT"
] | 12 | 2020-06-03T03:14:33.000Z | 2021-07-25T21:50:31.000Z | #include "gridding.h"
#include "utils.h"
std::vector<torch::Tensor> gridding(float min_x, float max_x, float min_y, float max_y, float min_z,
float max_z, torch::Tensor ptcloud)
{
CHECK_CUDA(ptcloud);
CHECK_CONTIGUOUS(ptcloud);
cudaStream_t stream = at::cuda::getCurrent... | 34.740741 | 100 | 0.710021 | [
"vector"
] |
d5c776d11678d35c2b5fdc881b12de4a59a786e6 | 1,257 | cpp | C++ | examples/console_reflection/main.cpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 2 | 2017-10-26T04:41:49.000Z | 2018-02-09T05:12:19.000Z | examples/console_reflection/main.cpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | null | null | null | examples/console_reflection/main.cpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 3 | 2017-01-08T21:09:48.000Z | 2018-02-10T04:27:32.000Z | #include "obj.hpp"
int main()
{
/*!
* \brief factory is a pointer to the global object factory
*/
std::shared_ptr<SystemTable> table = SystemTable::instance();
std::shared_ptr<mo::MetaObjectFactory> factory = mo::MetaObjectFactory::instance();
// call the inlined register translation unit f... | 31.425 | 105 | 0.672235 | [
"object"
] |
d5c94966b2713e0fd4a28bdee6e5b0827edbfb86 | 15,557 | cpp | C++ | src/penguinv/penguinv.cpp | vrozin/penguinV | 9349e3d8aa50a114ab192795cdff9c2ef5f57509 | [
"BSD-3-Clause"
] | null | null | null | src/penguinv/penguinv.cpp | vrozin/penguinV | 9349e3d8aa50a114ab192795cdff9c2ef5f57509 | [
"BSD-3-Clause"
] | null | null | null | src/penguinv/penguinv.cpp | vrozin/penguinV | 9349e3d8aa50a114ab192795cdff9c2ef5f57509 | [
"BSD-3-Clause"
] | null | null | null | #include "penguinv.h"
#include "../image_function_helper.h"
namespace
{
struct ReferenceOwner
{
explicit ReferenceOwner( PenguinV_Image::Image & data_ )
: data( data_ )
{
}
PenguinV_Image::Image & data;
};
struct ConstReferenceOwner
{
explicit Co... | 45.092754 | 138 | 0.577296 | [
"vector"
] |
d5cd3b8d3f29f45cb1101149f75b073489b38906 | 15,316 | cpp | C++ | src/trunk/libs/seiscomp3/datamodel/config.cpp | damb/seiscomp3 | 560a8f7ae43737ae7826fb1ffca76a9f601cf9dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 94 | 2015-02-04T13:57:34.000Z | 2021-11-01T15:10:06.000Z | src/trunk/libs/seiscomp3/datamodel/config.cpp | damb/seiscomp3 | 560a8f7ae43737ae7826fb1ffca76a9f601cf9dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 233 | 2015-01-28T15:16:46.000Z | 2021-08-23T11:31:37.000Z | src/trunk/libs/seiscomp3/datamodel/config.cpp | damb/seiscomp3 | 560a8f7ae43737ae7826fb1ffca76a9f601cf9dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 95 | 2015-02-13T15:53:30.000Z | 2021-11-02T14:54:54.000Z | /***************************************************************************
* Copyright (C) by GFZ Potsdam *
* *
* You can redistribute and/or modify this program under the *
* terms o... | 30.031373 | 269 | 0.47643 | [
"object",
"vector"
] |
d5d3f6d09929133e2657ba9833601ac2869f9bc1 | 2,381 | hpp | C++ | doc/quickbook/oglplus/quickref/string/ref.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 364 | 2015-01-01T09:38:23.000Z | 2022-03-22T05:32:00.000Z | doc/quickbook/oglplus/quickref/string/ref.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 55 | 2015-01-06T16:42:55.000Z | 2020-07-09T04:21:41.000Z | doc/quickbook/oglplus/quickref/string/ref.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 57 | 2015-01-07T18:35:49.000Z | 2022-03-22T05:32:04.000Z | /*
* Copyright 2014-2019 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
//[oglplus_string_ref
class StrCRef {
public:
StrCRef() noexcept; /*<
Constructs a reference to an empty str... | 29.395062 | 73 | 0.659807 | [
"vector"
] |
d5dfd7884cdd4bd1ab78c5ea36bb517d0b494e6c | 31,859 | cpp | C++ | renderer/renderingcontext.cpp | ip-gpu/MathForGameDevelopers | e5a9d5e4a6777b278b704f9c363d599f84186fd4 | [
"BSD-4-Clause"
] | 520 | 2015-01-02T00:27:58.000Z | 2022-03-29T10:53:01.000Z | renderer/renderingcontext.cpp | ip-gpu/MathForGameDevelopers | e5a9d5e4a6777b278b704f9c363d599f84186fd4 | [
"BSD-4-Clause"
] | 8 | 2015-01-04T21:58:42.000Z | 2021-04-02T22:51:45.000Z | renderer/renderingcontext.cpp | ip-gpu/MathForGameDevelopers | e5a9d5e4a6777b278b704f9c363d599f84186fd4 | [
"BSD-4-Clause"
] | 111 | 2015-01-18T22:12:30.000Z | 2022-03-24T09:04:17.000Z | /*
Copyright (c) 2012, Lunar Workshop, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. R... | 29.20165 | 205 | 0.760256 | [
"vector",
"model",
"transform"
] |
d5e45b5638074d40c59a0042345d17baa6f97e03 | 9,016 | cpp | C++ | src/test_application/activescenes/redstone_osp.cpp | Capital-Asterisk/redstone-osp | 3f86cf6f9d26f596f3b7f8ee9d66743ac8c82db6 | [
"MIT"
] | null | null | null | src/test_application/activescenes/redstone_osp.cpp | Capital-Asterisk/redstone-osp | 3f86cf6f9d26f596f3b7f8ee9d66743ac8c82db6 | [
"MIT"
] | null | null | null | src/test_application/activescenes/redstone_osp.cpp | Capital-Asterisk/redstone-osp | 3f86cf6f9d26f596f3b7f8ee9d66743ac8c82db6 | [
"MIT"
] | null | null | null | #include "redstone_osp.h"
#include <osp/logging.h>
namespace testapp::redstone
{
/**
* @brief Main block-related update function
*
* @param rScene
* @param blkChanges
*/
void update_blocks(RedstoneScene& rScene, ArrayView< std::pair<ChunkId, ChkBlkPlacements_t> > blkChanges)
{
// clear previous frame's bloc... | 32.431655 | 163 | 0.57043 | [
"vector"
] |
d5f398a8962b8de7dfc2b72a169bb5148f67070c | 11,917 | cpp | C++ | src/LercLib/Lerc1Decode/CntZImage.cpp | zakjan/lerc | 3f523fee2b5764f2029e035c41a2325b6360a29d | [
"Apache-2.0"
] | 157 | 2015-12-17T22:21:39.000Z | 2021-12-18T09:01:30.000Z | src/LercLib/Lerc1Decode/CntZImage.cpp | zakjan/lerc | 3f523fee2b5764f2029e035c41a2325b6360a29d | [
"Apache-2.0"
] | 71 | 2015-12-18T02:29:05.000Z | 2022-03-12T01:24:39.000Z | src/LercLib/Lerc1Decode/CntZImage.cpp | zakjan/lerc | 3f523fee2b5764f2029e035c41a2325b6360a29d | [
"Apache-2.0"
] | 55 | 2015-12-18T00:54:07.000Z | 2021-12-28T19:52:26.000Z | /*
Copyright 2015 Esri
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 in writing, software
dist... | 25.355319 | 114 | 0.492406 | [
"vector"
] |
d5f5dfef9a091d9d4b381d75da6e1cecb7546bfc | 4,631 | cxx | C++ | main.cxx | James-N-M/60-340-Genetic-Algorithm-Project | fecde260fe0c6beb52e0b4154b9d194e36ef2f4a | [
"MIT"
] | null | null | null | main.cxx | James-N-M/60-340-Genetic-Algorithm-Project | fecde260fe0c6beb52e0b4154b9d194e36ef2f4a | [
"MIT"
] | null | null | null | main.cxx | James-N-M/60-340-Genetic-Algorithm-Project | fecde260fe0c6beb52e0b4154b9d194e36ef2f4a | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
//
// This program runs a genetic algorithm for computing task/machine
// schedules. It is mainly for testing the GA routine on subsequently
// larger and larger pool sizes to see how it compares when run
// serially vs multithreaded.
//
... | 37.959016 | 102 | 0.637443 | [
"object"
] |
d5f60d0fee39983bda0b3b2897af509bd8795336 | 1,774 | cpp | C++ | Desen/main.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 11 | 2015-08-29T13:41:22.000Z | 2020-01-08T20:34:06.000Z | Desen/main.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | null | null | null | Desen/main.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 5 | 2016-01-20T18:17:01.000Z | 2019-10-30T11:57:15.000Z | #include <iostream>
#include <fstream>
#include <math.h>
#include <iomanip>
#include <vector>
#include <algorithm>
using namespace std;
ifstream fin("desen.in");
ofstream fout("desen.out");
const int maxn = 1005;
int n, father[maxn];
double dp[maxn][maxn];
vector <pair<int, int> > points;
inline double _dist(pair<i... | 28.15873 | 123 | 0.494927 | [
"vector"
] |
d5f8d78aabf55182af6b843a69e9ab8c3da3f867 | 588 | hpp | C++ | src/al_wrap/objects/al_Object.hpp | inobelar/al_wrap | 7643d6d5cf47bd23adb8342bbe62af7b69aabc94 | [
"MIT"
] | null | null | null | src/al_wrap/objects/al_Object.hpp | inobelar/al_wrap | 7643d6d5cf47bd23adb8342bbe62af7b69aabc94 | [
"MIT"
] | null | null | null | src/al_wrap/objects/al_Object.hpp | inobelar/al_wrap | 7643d6d5cf47bd23adb8342bbe62af7b69aabc94 | [
"MIT"
] | null | null | null | #pragma once
namespace al {
class Object
{
public:
using id_t = unsigned int; // Aka ALuint
protected:
id_t _id;
public:
Object();
virtual ~Object();
// -------------------------------------------------------------------------
// Moveable
Object(Object &&) = default;
Object& ope... | 16.333333 | 80 | 0.428571 | [
"object"
] |
9101795ed033fa0b490648cdd9b0bc753d7aaa92 | 10,830 | cpp | C++ | Sources/Graphics/Renderer/WorldRenderer.cpp | carloshgsilva/VoxelEngine | 5ba308d3573805437124f32d407306776c1d66d6 | [
"MIT"
] | 1 | 2022-01-20T15:53:31.000Z | 2022-01-20T15:53:31.000Z | Sources/Graphics/Renderer/WorldRenderer.cpp | carloshgsilva/VoxelEngine | 5ba308d3573805437124f32d407306776c1d66d6 | [
"MIT"
] | null | null | null | Sources/Graphics/Renderer/WorldRenderer.cpp | carloshgsilva/VoxelEngine | 5ba308d3573805437124f32d407306776c1d66d6 | [
"MIT"
] | null | null | null | #include "WorldRenderer.h"
#include "World/World.h"
#include "World/Components.h"
#include "World/Systems/CameraSystem.h"
#include "World/Systems/ShadowVoxSystem.h"
#include "Core/Engine.h"
#include "Core/Input.h"
#include "Graphics/Graphics.h"
#include "Profiler/Profiler.h"
#include "GLFW/glfw3.h"
#include "Edito... | 33.738318 | 195 | 0.705263 | [
"geometry",
"render",
"vector",
"transform"
] |
9107f8b3d6f335e58c6e27309815733c5f9354c6 | 3,872 | cpp | C++ | src/pipeline_factory.cpp | wxthss82/openvino_model_server | 93541522d301163a130751e4b4d3d9c40d869f2b | [
"Apache-2.0"
] | null | null | null | src/pipeline_factory.cpp | wxthss82/openvino_model_server | 93541522d301163a130751e4b4d3d9c40d869f2b | [
"Apache-2.0"
] | null | null | null | src/pipeline_factory.cpp | wxthss82/openvino_model_server | 93541522d301163a130751e4b4d3d9c40d869f2b | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2020 Intel Corporation
//
// 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.ap... | 44 | 157 | 0.695506 | [
"vector"
] |
51051ee46a575802e37c91f74332d9be21f9dad6 | 3,492 | cc | C++ | tce/src/applibs/ImplementationTester/ImplementationSimulator.cc | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 74 | 2015-10-22T15:34:10.000Z | 2022-03-25T07:57:23.000Z | tce/src/applibs/ImplementationTester/ImplementationSimulator.cc | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 79 | 2015-11-19T09:23:08.000Z | 2022-01-12T14:15:16.000Z | tce/src/applibs/ImplementationTester/ImplementationSimulator.cc | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 38 | 2015-11-17T10:12:23.000Z | 2022-03-25T07:57:24.000Z | /*
Copyright (c) 2002-2010 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... | 30.103448 | 78 | 0.697595 | [
"vector"
] |
5105c78f27d8759071e827831bde53d931f96aa0 | 14,548 | cc | C++ | DAQ/src/StrawAndCaloDigisFromFragments_module.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | null | null | null | DAQ/src/StrawAndCaloDigisFromFragments_module.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | DAQ/src/StrawAndCaloDigisFromFragments_module.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | // ======================================================================
//
// StrawAndCaloDigisFromFragments_plugin: Add tracker/cal data products to the event
//
// ======================================================================
#include "art/Framework/Core/EDProducer.h"
#include "art/Framework/Principal/Ev... | 34.803828 | 161 | 0.571213 | [
"vector"
] |
510ed889ecd0862ddf3d8564fa7c6747030d2851 | 299 | cpp | C++ | source/GLRenderer/materials/ClipspaceWireframeMaterial.cpp | GPUPeople/cuRE | ccba6a29bba4445300cbb630befe57e31f0d80cb | [
"MIT"
] | 55 | 2018-07-11T23:40:06.000Z | 2022-03-18T05:34:44.000Z | source/GLRenderer/materials/ClipspaceWireframeMaterial.cpp | GPUPeople/cuRE | ccba6a29bba4445300cbb630befe57e31f0d80cb | [
"MIT"
] | 1 | 2018-09-10T09:57:47.000Z | 2018-09-10T09:57:47.000Z | source/GLRenderer/materials/ClipspaceWireframeMaterial.cpp | GPUPeople/cuRE | ccba6a29bba4445300cbb630befe57e31f0d80cb | [
"MIT"
] | 13 | 2018-08-16T17:00:36.000Z | 2022-01-17T08:33:57.000Z |
#include "GLRenderer/shaders/ClipspaceShader.h"
#include "ClipspaceMaterial.h"
namespace GLRenderer
{
ClipspaceMaterial::ClipspaceMaterial(const ClipspaceShader& shader)
: shader(shader)
{
}
void ClipspaceMaterial::draw(const ::Geometry* geometry) const
{
shader.draw(geometry);
}
}
| 14.95 | 68 | 0.752508 | [
"geometry"
] |
5110758001fb9f88de1c8e23b3637ff9e7f4f89d | 2,337 | cpp | C++ | testbrevno.cpp | phma/mitobrevno | 30526eac54d0d619abd165b803b143347f4ade9d | [
"Apache-2.0"
] | null | null | null | testbrevno.cpp | phma/mitobrevno | 30526eac54d0d619abd165b803b143347f4ade9d | [
"Apache-2.0"
] | null | null | null | testbrevno.cpp | phma/mitobrevno | 30526eac54d0d619abd165b803b143347f4ade9d | [
"Apache-2.0"
] | null | null | null | /******************************************************/
/* */
/* testbrevno.cpp - main program for testing */
/* */
/******************************************************/
/* Copyright 2020 Pierre Abbat.
* ... | 22.257143 | 75 | 0.562259 | [
"vector"
] |
5111361e37572dd23599ceb70134dbfc5e1fe505 | 652 | cpp | C++ | LeetCode/#34.cpp | ksdkamesh99/Code-Monker | 0105d50185796539d4c2328892c9c117cb62ba55 | [
"MIT"
] | 3 | 2020-06-29T15:37:26.000Z | 2020-12-02T09:14:13.000Z | LeetCode/#34.cpp | ksdkamesh99/Code-Monker | 0105d50185796539d4c2328892c9c117cb62ba55 | [
"MIT"
] | null | null | null | LeetCode/#34.cpp | ksdkamesh99/Code-Monker | 0105d50185796539d4c2328892c9c117cb62ba55 | [
"MIT"
] | 1 | 2021-02-23T23:31:54.000Z | 2021-02-23T23:31:54.000Z | class Solution {
public:
vector<int> searchRange(vector<int>& nums, int target) {
int l=-1;
int u=-1;
if(!nums.empty()){
l=lower_bound(nums.begin(),nums.end(),target)-nums.begin();
u=upper_bound(nums.begin(),nums.end(),target)-nums.begin();
if(l<nums.size... | 23.285714 | 71 | 0.384969 | [
"vector"
] |
5113a518ef5ff067092ece5a9ab883341e8dff17 | 455 | cpp | C++ | CodeForces/Complete/600-699/682A-AlyonaAndNumbers.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | CodeForces/Complete/600-699/682A-AlyonaAndNumbers.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | CodeForces/Complete/600-699/682A-AlyonaAndNumbers.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include <cstdio>
#include <vector>
const int D = 5;
int main(){
long n, m; scanf("%ld %ld\n", &n, &m);
std::vector<long long> a(D);
std::vector<long long> b(D);
a[0] = n / D; b[0] = m / D;
for(int p = 1; p < D; p++){
a[p] = (n / D) + (n % D >= p);
b[p] = (m / D) + (m % D >= p);
... | 18.958333 | 61 | 0.404396 | [
"vector"
] |
51144614a5df89952b95377afac17fbdcbbf581e | 1,726 | cpp | C++ | sdrs/src/v1/model/ExtendReplicationRequestBody.cpp | huaweicloud/huaweicloud-sdk-cpp-v3 | d3b5e07b0ee8367d1c7f6dad17be0212166d959c | [
"Apache-2.0"
] | 5 | 2021-03-03T08:23:43.000Z | 2022-02-16T02:16:39.000Z | sdrs/src/v1/model/ExtendReplicationRequestBody.cpp | ChenwxJay/huaweicloud-sdk-cpp-v3 | f821ec6d269b50203e0c1638571ee1349c503c41 | [
"Apache-2.0"
] | null | null | null | sdrs/src/v1/model/ExtendReplicationRequestBody.cpp | ChenwxJay/huaweicloud-sdk-cpp-v3 | f821ec6d269b50203e0c1638571ee1349c503c41 | [
"Apache-2.0"
] | 7 | 2021-02-26T13:53:35.000Z | 2022-03-18T02:36:43.000Z |
#include "huaweicloud/sdrs/v1/model/ExtendReplicationRequestBody.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Sdrs {
namespace V1 {
namespace Model {
ExtendReplicationRequestBody::ExtendReplicationRequestBody()
{
extendReplicationIsSet_ = false;
}
ExtendReplicationRequestBody::~ExtendReplicationRequ... | 21.308642 | 109 | 0.733488 | [
"object",
"model"
] |
511a606901306f36f915ffd78ce2ac71e0dc027c | 1,353 | cpp | C++ | nsgaII/nsgaII_test.cpp | alfjesus3/Basics_Math_and_Dynamic_Systems | 6c9338f393d9f6576e4138d21212c6197c846036 | [
"MIT"
] | null | null | null | nsgaII/nsgaII_test.cpp | alfjesus3/Basics_Math_and_Dynamic_Systems | 6c9338f393d9f6576e4138d21212c6197c846036 | [
"MIT"
] | null | null | null | nsgaII/nsgaII_test.cpp | alfjesus3/Basics_Math_and_Dynamic_Systems | 6c9338f393d9f6576e4138d21212c6197c846036 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <cassert>
#include "nsgaII_test.h"
#include "nsgaII.h"
int testIndividualCreation(int length_indiv, float min_val, float max_val){
std::cout << "The Indiv uses the parameters "<< length_indiv << ", " << min_val << " and " << max_val << std::endl;
Indivi... | 37.583333 | 141 | 0.604582 | [
"vector"
] |
511d096ee82a03fa13946dda5e5c3ac833b80fae | 2,142 | cpp | C++ | test/test_full_mesh.cpp | SCOREC/pumi-pic | e6a7a59cff180f2bf3426e5c5fdfd9e8a70f4dc2 | [
"BSD-3-Clause"
] | 16 | 2019-05-02T08:33:11.000Z | 2022-03-25T12:13:42.000Z | test/test_full_mesh.cpp | SCOREC/pumi-pic | e6a7a59cff180f2bf3426e5c5fdfd9e8a70f4dc2 | [
"BSD-3-Clause"
] | 63 | 2019-01-10T21:58:36.000Z | 2021-12-22T21:27:29.000Z | test/test_full_mesh.cpp | SCOREC/pumi-pic | e6a7a59cff180f2bf3426e5c5fdfd9e8a70f4dc2 | [
"BSD-3-Clause"
] | 11 | 2019-04-10T19:01:42.000Z | 2021-06-25T00:26:47.000Z | #include <fstream>
#include <Omega_h_file.hpp>
#include <Omega_h_for.hpp>
#include <pumipic_mesh.hpp>
int main(int argc, char** argv) {
pumipic::Library pic_lib(&argc, &argv);
Omega_h::Library& lib = pic_lib.omega_h_lib();
int rank;
MPI_Comm_rank(MPI_COMM_WORLD,&rank);
if (argc != 3) {
if (!rank)
... | 33.46875 | 95 | 0.634921 | [
"mesh",
"vector"
] |
511e3a4eea06840784121f38fe15e9fb34a02554 | 9,272 | cc | C++ | src/wtf/fuzzer_test_tlv_server.cc | JohnPMerrill/wtf | ec8646bf5b6be8d23be63596463cfaf0beaa3815 | [
"MIT"
] | null | null | null | src/wtf/fuzzer_test_tlv_server.cc | JohnPMerrill/wtf | ec8646bf5b6be8d23be63596463cfaf0beaa3815 | [
"MIT"
] | null | null | null | src/wtf/fuzzer_test_tlv_server.cc | JohnPMerrill/wtf | ec8646bf5b6be8d23be63596463cfaf0beaa3815 | [
"MIT"
] | null | null | null | // written by y0ny0ns0n
#include "backend.h"
#include "targets.h"
#include "utils.h"
#include "mutator.h"
#include "crash_detection_umode.h"
#include <fmt/format.h>
namespace fs = std::filesystem;
using namespace std;
#define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f))
/*
test_tlv_server source code:
https://gist.git... | 28.617284 | 130 | 0.592968 | [
"vector"
] |
511e88c19bc8d3c12d0c7b45d9be370161134918 | 5,879 | cpp | C++ | FEBioMix/FEPoroTraction.cpp | Scriptkiddi/FEBioStudio | b4cafde6b2761c9184e7e66451a9555b81a8a3dc | [
"MIT"
] | null | null | null | FEBioMix/FEPoroTraction.cpp | Scriptkiddi/FEBioStudio | b4cafde6b2761c9184e7e66451a9555b81a8a3dc | [
"MIT"
] | null | null | null | FEBioMix/FEPoroTraction.cpp | Scriptkiddi/FEBioStudio | b4cafde6b2761c9184e7e66451a9555b81a8a3dc | [
"MIT"
] | null | null | null | /*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2021 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining a... | 28.129187 | 152 | 0.608267 | [
"shape",
"vector"
] |
511ebe9ffea16ca2802cd3033b8ffe67c045b434 | 6,063 | cpp | C++ | Allocator/PagedLinearAllocator.cpp | AzCopey/ICMemory | f0c903ef80611f1bb8f3efe02e65a59f9633a2f5 | [
"MIT"
] | 1 | 2016-02-01T13:52:54.000Z | 2016-02-01T13:52:54.000Z | Allocator/PagedLinearAllocator.cpp | AzCopey/ICMemory | f0c903ef80611f1bb8f3efe02e65a59f9633a2f5 | [
"MIT"
] | null | null | null | Allocator/PagedLinearAllocator.cpp | AzCopey/ICMemory | f0c903ef80611f1bb8f3efe02e65a59f9633a2f5 | [
"MIT"
] | null | null | null | // Created by Ian Copland on 2016-05-12
//
// The MIT License(MIT)
//
// Copyright(c) 2016 Ian Copland
//
// 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 wit... | 35.25 | 162 | 0.549728 | [
"vector"
] |
512382ea383ee5f129bfafb0336d18369cf0d25b | 3,463 | cxx | C++ | gui/moc_QvisPostableWindow.cxx | ahota/visit_ospray | d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9 | [
"BSD-3-Clause"
] | null | null | null | gui/moc_QvisPostableWindow.cxx | ahota/visit_ospray | d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9 | [
"BSD-3-Clause"
] | null | null | null | gui/moc_QvisPostableWindow.cxx | ahota/visit_ospray | d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'QvisPostableWindow.h'
**
** Created: Wed Nov 4 16:17:57 2015
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.3)
**
** WARNING! All changes made in this file will be lost!
*****************... | 32.064815 | 98 | 0.60901 | [
"object"
] |
512a8f7e6f0d473fe4a5ca1f3aa6a5bd48d471f4 | 12,567 | cc | C++ | components/sync_driver/non_ui_model_type_controller_unittest.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 1 | 2020-09-15T08:43:34.000Z | 2020-09-15T08:43:34.000Z | components/sync_driver/non_ui_model_type_controller_unittest.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | components/sync_driver/non_ui_model_type_controller_unittest.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 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/sync_driver/non_ui_model_type_controller.h"
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/callback.h"
... | 32.641558 | 80 | 0.709159 | [
"model"
] |
512c3b1a163677cb5e15e5df30d854571fe5bf4b | 9,497 | cc | C++ | FastSimulation/CaloGeometryTools/src/CrystalPad.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | FastSimulation/CaloGeometryTools/src/CrystalPad.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | FastSimulation/CaloGeometryTools/src/CrystalPad.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | #include "FastSimulation/CaloGeometryTools/interface/CrystalPad.h"
#include <iostream>
std::vector<CLHEP::Hep2Vector> CrystalPad::aVector(4);
CrystalPad::CrystalPad(const CrystalPad& right)
{
corners_ = right.corners_;
dir_ = right.dir_;
number_ = right.number_;
survivalProbability_ = right.survivalProbab... | 27.134286 | 113 | 0.593872 | [
"vector"
] |
513bb9a88d9b7f6d3cb758f79e79c70068f94e5c | 1,620 | cpp | C++ | verify/verify-unit-test/set-function.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 69 | 2020-11-06T05:21:42.000Z | 2022-03-29T03:38:35.000Z | verify/verify-unit-test/set-function.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 21 | 2020-07-25T04:47:12.000Z | 2022-02-01T14:39:29.000Z | verify/verify-unit-test/set-function.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 9 | 2020-11-06T11:55:10.000Z | 2022-03-20T04:45:31.000Z | #define PROBLEM "https://judge.yosupo.jp/problem/aplusb"
#include "../../template/template.hpp"
using namespace Nyaan;
#include "../../misc/rng.hpp"
#include "../../modint/montgomery-modint.hpp"
#include "../../set-function/and-convolution.hpp"
#include "../../set-function/or-convolution.hpp"
#include "../../set-fun... | 20 | 56 | 0.533333 | [
"vector"
] |
513d945d1a74a6529ca4f07b417abb241865f0ae | 5,894 | hpp | C++ | include/pstore/support/inherit_const.hpp | paulhuggett/pstore2 | a0c663d10a2e2713fdf39ecdae1f9c1e96041f5c | [
"Apache-2.0"
] | 11 | 2018-02-02T21:24:49.000Z | 2020-12-11T04:06:03.000Z | include/pstore/support/inherit_const.hpp | SNSystems/pstore | 74e9dd960245d6bfc125af03ed964d8ad660a62d | [
"Apache-2.0"
] | 63 | 2018-02-05T17:24:59.000Z | 2022-03-22T17:26:28.000Z | include/pstore/support/inherit_const.hpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 5 | 2020-01-13T22:47:11.000Z | 2021-05-14T09:31:15.000Z | //===- include/pstore/support/inherit_const.hpp -----------*- mode: C++ -*-===//
//* _ _ _ _ _ *
//* (_)_ __ | |__ ___ _ __(_) |_ ___ ___ _ __ ___| |_ *
//* | | '_ \| '_ \ / _ \ '__| | __| / __/ _ \| '_ \/ __| __| *
//* | | | | | | | | __/ | | | |_ | (_| (_) |... | 43.985075 | 100 | 0.602816 | [
"vector"
] |
513e0b725af5bb6ca8e627f26d60e4a0da565727 | 3,911 | hh | C++ | neb/inc/com/centreon/engine/configuration/servicegroup.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/engine/configuration/servicegroup.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/engine/configuration/servicegroup.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2011-2013,2017 Centreon
**
** This file is part of Centreon Engine.
**
** Centreon Engine is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Engine is distributed in the... | 41.168421 | 80 | 0.608029 | [
"object"
] |
514097cf0697c9404036201591347901c30d5675 | 4,231 | cpp | C++ | smn/src/obnsmn_event.cpp | sduerr85/OpenBuildNet | 126feb4d17558e7bfe1e2e6f081bbfbf1514496f | [
"MIT"
] | null | null | null | smn/src/obnsmn_event.cpp | sduerr85/OpenBuildNet | 126feb4d17558e7bfe1e2e6f081bbfbf1514496f | [
"MIT"
] | null | null | null | smn/src/obnsmn_event.cpp | sduerr85/OpenBuildNet | 126feb4d17558e7bfe1e2e6f081bbfbf1514496f | [
"MIT"
] | null | null | null | /* -*- mode: C++; indent-tabs-mode: nil; -*- */
/** \file
* \brief Implement the event objects in the Global Clock.
*
* This file is part of the openBuildNet simulation framework
* (OBN-Sim) developed at EPFL.
*
* \author Truong X. Nghiem (xuan.nghiem@epfl.ch)
*/
#include <obnsmn_gc.h>
#include <obnsmn_report.h... | 38.816514 | 159 | 0.619239 | [
"object"
] |
514424cd7d15493c4636f4470daeddf64c858436 | 312 | cpp | C++ | source/render/material.cpp | biomorphs/lean | b28dac32b3aea0f0cf65e396a265c7b99aeb1fb0 | [
"MIT"
] | 1 | 2021-06-15T04:38:49.000Z | 2021-06-15T04:38:49.000Z | source/render/material.cpp | biomorphs/lean | b28dac32b3aea0f0cf65e396a265c7b99aeb1fb0 | [
"MIT"
] | null | null | null | source/render/material.cpp | biomorphs/lean | b28dac32b3aea0f0cf65e396a265c7b99aeb1fb0 | [
"MIT"
] | null | null | null | #include "material.h"
#include "core/string_hashing.h"
namespace Render
{
Material::Material()
{
}
Material::~Material()
{
}
void Material::SetSampler(std::string name, uint32_t handle)
{
const uint32_t hash = Core::StringHashing::GetHash(name.c_str());
m_samplers[hash] = { name, handle };
}
} | 14.857143 | 67 | 0.679487 | [
"render"
] |
51514ed22b17b88fddf0cfd231572867378971bd | 717 | cpp | C++ | Cpp/Kattis/DataStructure/bank.cpp | kchevali/OnlineJudge | c1d1894078fa45eef05c8785aba29758d9adf0c6 | [
"MIT"
] | null | null | null | Cpp/Kattis/DataStructure/bank.cpp | kchevali/OnlineJudge | c1d1894078fa45eef05c8785aba29758d9adf0c6 | [
"MIT"
] | null | null | null | Cpp/Kattis/DataStructure/bank.cpp | kchevali/OnlineJudge | c1d1894078fa45eef05c8785aba29758d9adf0c6 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long l;
typedef pair<l, l> ll;
typedef priority_queue<ll, vector<ll>, less<ll>> pqll; // max first
int main() {
l n, t, money, endTime, x = 0;
cin >> n >> t;
l times[t];
memset(times, 0, sizeof times);
pqll q;
for (l i = 0; i < n; i++) {
cin >... | 24.724138 | 68 | 0.556485 | [
"vector"
] |
5153106d44054f5ee72fb4f5de88d9129565092c | 6,288 | cpp | C++ | 3rdparty/meshlab-master/src/meshlabplugins/edit_align/align/align_parameter.cpp | HoEmpire/slambook2 | 96d360f32aa5d8b5c5dcbbf9ee7ba865e84409f4 | [
"MIT"
] | 4 | 2016-03-30T14:31:52.000Z | 2019-02-02T05:01:32.000Z | graphics/meshlab/src/meshlabplugins/edit_align/align/align_parameter.cpp | hlzz/dotfiles | 0591f71230c919c827ba569099eb3b75897e163e | [
"BSD-3-Clause"
] | null | null | null | graphics/meshlab/src/meshlabplugins/edit_align/align/align_parameter.cpp | hlzz/dotfiles | 0591f71230c919c827ba569099eb3b75897e163e | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
* VCGLib o o *
* Visual and Computer Graphics Library o o *
* _ O _ *
* Copyri... | 82.736842 | 366 | 0.637087 | [
"mesh"
] |
5153f28d67533d90a7df3f3c88353f509449983f | 5,338 | cpp | C++ | examples/subscriber.cpp | jgriffiths/autobahn-cpp | 781686678d9606e77ad12cf79ba85aadf4e3d63d | [
"BSL-1.0"
] | 187 | 2015-10-16T11:48:25.000Z | 2022-02-08T04:45:30.000Z | examples/subscriber.cpp | jgriffiths/autobahn-cpp | 781686678d9606e77ad12cf79ba85aadf4e3d63d | [
"BSL-1.0"
] | 170 | 2015-10-11T19:34:40.000Z | 2022-03-31T18:31:43.000Z | examples/subscriber.cpp | jgriffiths/autobahn-cpp | 781686678d9606e77ad12cf79ba85aadf4e3d63d | [
"BSL-1.0"
] | 96 | 2015-10-24T05:06:57.000Z | 2022-02-06T03:02:09.000Z | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) Crossbar.io Technologies GmbH and contributors
//
// Boost Software License - Version 1.0 - August 17th, 2003
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the s... | 39.835821 | 171 | 0.558262 | [
"object"
] |
51541d6d12bd8b39df593acc1f4e16331ed30041 | 2,516 | cpp | C++ | ScreenShot/FlameShot/utilitypanel.cpp | YIXINSHUWU/QtScreenShot | 8dda54fb1a1568f26466a0a2e866db05a36d5e54 | [
"Apache-2.0"
] | null | null | null | ScreenShot/FlameShot/utilitypanel.cpp | YIXINSHUWU/QtScreenShot | 8dda54fb1a1568f26466a0a2e866db05a36d5e54 | [
"Apache-2.0"
] | null | null | null | ScreenShot/FlameShot/utilitypanel.cpp | YIXINSHUWU/QtScreenShot | 8dda54fb1a1568f26466a0a2e866db05a36d5e54 | [
"Apache-2.0"
] | null | null | null |
#include "utilitypanel.h"
#include <QPropertyAnimation>
#include <QVBoxLayout>
#include <QTimer>
#include <QScrollArea>
#include <QWheelEvent>
UtilityPanel::UtilityPanel(QWidget *parent) : QWidget(parent) {
initInternalPanel();
setAttribute(Qt::WA_TransparentForMouseEvents);
setCursor(Qt::ArrowCursor);
... | 29.952381 | 87 | 0.683227 | [
"geometry"
] |
51541de57cd2ce0a9d1c8d3a6013ffa00428fd0f | 7,293 | hpp | C++ | inference-engine/src/mkldnn_plugin/utils/bfloat16.hpp | tkrupa-intel/openvino | 8c0ff5d9065486d23901a9c27debd303661f465f | [
"Apache-2.0"
] | 1 | 2022-01-19T15:36:45.000Z | 2022-01-19T15:36:45.000Z | inference-engine/src/mkldnn_plugin/utils/bfloat16.hpp | tkrupa-intel/openvino | 8c0ff5d9065486d23901a9c27debd303661f465f | [
"Apache-2.0"
] | 22 | 2021-02-03T12:41:51.000Z | 2022-02-21T13:04:48.000Z | inference-engine/src/mkldnn_plugin/utils/bfloat16.hpp | tkrupa-intel/openvino | 8c0ff5d9065486d23901a9c27debd303661f465f | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <cmath>
#include <limits>
#include "nodes/common/emitter.h"
/**
* The bfloat16_t class can be used as an arithmetic type. All arithmetic operations goes through conversion to the float data type.
*/
#define BF... | 35.231884 | 138 | 0.658988 | [
"vector"
] |
5158394d1ba54e96098f99a4375e906e42f38f4f | 612 | cpp | C++ | codility/odd_occurance_in_array.cpp | Anil8753/DS-Algo | 4bb6699460f01e119e3de835661734bfb6666773 | [
"MIT"
] | null | null | null | codility/odd_occurance_in_array.cpp | Anil8753/DS-Algo | 4bb6699460f01e119e3de835661734bfb6666773 | [
"MIT"
] | null | null | null | codility/odd_occurance_in_array.cpp | Anil8753/DS-Algo | 4bb6699460f01e119e3de835661734bfb6666773 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <unordered_map>
#include <vector>
using namespace std;
int solution(vector<int> &A)
{
std::unordered_map<int, int> table;
for (const auto &n : A)
{
table[n] = table[n] + 1;
}
for (const auto &pair : table)
{
const int count = pair.second;
i... | 17.485714 | 39 | 0.428105 | [
"vector"
] |
515a8969e724a5c45e4d5210cfa47462a065b901 | 6,710 | cpp | C++ | src/common/transformations/src/transformations/common_optimizations/shuffle_channels_fusion.cpp | ytorzuk-altran/openvino | 68d460a3bb578a738ba0e4d0e1f2e321afa73ab0 | [
"Apache-2.0"
] | 1 | 2020-05-25T17:10:22.000Z | 2020-05-25T17:10:22.000Z | inference-engine/src/transformations/src/transformations/common_optimizations/shuffle_channels_fusion.cpp | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 55 | 2020-11-16T09:55:29.000Z | 2022-03-28T13:18:15.000Z | inference-engine/src/transformations/src/transformations/common_optimizations/shuffle_channels_fusion.cpp | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 4 | 2021-09-29T20:44:49.000Z | 2021-10-20T13:02:12.000Z | // Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "transformations/common_optimizations/shuffle_channels_fusion.hpp"
#include "itt.hpp"
#include <memory>
#include <vector>
#include <ngraph/opsets/opset6.hpp>
#include <ngraph/pattern/op/wrap_type.hpp>
#include <ngraph/rt_info.... | 51.615385 | 149 | 0.683905 | [
"shape",
"vector"
] |
515e80b43f90cdb8ad779ad56c3c99307c6e6b57 | 5,232 | hpp | C++ | src/feature_based_method/libImage/image_io.hpp | pariasm/estadeo-seq | 2198df08b50cc7f4fc1fdbf43387eb166e3627ac | [
"BSD-2-Clause"
] | null | null | null | src/feature_based_method/libImage/image_io.hpp | pariasm/estadeo-seq | 2198df08b50cc7f4fc1fdbf43387eb166e3627ac | [
"BSD-2-Clause"
] | null | null | null | src/feature_based_method/libImage/image_io.hpp | pariasm/estadeo-seq | 2198df08b50cc7f4fc1fdbf43387eb166e3627ac | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2007-2011 libmv authors.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, p... | 33.754839 | 110 | 0.675076 | [
"vector"
] |
516154effcf8ea1a78095a43d40bacc59777cb7d | 14,430 | cpp | C++ | example.cpp | ivere27/SimpleCertificateManager | 23534547e9d2ac220a8db7492a6e14f9dba75ec8 | [
"MIT"
] | 6 | 2018-01-05T03:30:58.000Z | 2021-03-08T01:00:08.000Z | example.cpp | ivere27/SimpleCertificateManager | 23534547e9d2ac220a8db7492a6e14f9dba75ec8 | [
"MIT"
] | null | null | null | example.cpp | ivere27/SimpleCertificateManager | 23534547e9d2ac220a8db7492a6e14f9dba75ec8 | [
"MIT"
] | 3 | 2018-10-01T07:44:31.000Z | 2020-12-10T11:13:21.000Z | #include <iostream>
#include <fstream>
#include <vector>
#include "SimpleCertificateManager.hpp"
using namespace std;
using namespace certificate;
std::string get_file_contents(const char *filename)
{
std::ifstream in(filename, std::ios::in | std::ios::binary);
if (in) {
std::string contents;
in.seekg(0, ... | 31.995565 | 94 | 0.616424 | [
"vector"
] |
5169e31ef2eed229e7d8a2dc97c95196657c06e9 | 29,008 | cpp | C++ | DK/DKFramework/DKCanvas.cpp | arkiny/DKGL | a93516c9aff1cec04d93ee2cf3cb6bf15b513dfc | [
"BSD-3-Clause"
] | 33 | 2015-11-24T08:40:48.000Z | 2022-03-16T14:54:12.000Z | DK/DKFramework/DKCanvas.cpp | arkiny/DKGL | a93516c9aff1cec04d93ee2cf3cb6bf15b513dfc | [
"BSD-3-Clause"
] | 3 | 2021-04-11T04:08:04.000Z | 2021-04-13T12:01:04.000Z | DK/DKFramework/DKCanvas.cpp | arkiny/DKGL | a93516c9aff1cec04d93ee2cf3cb6bf15b513dfc | [
"BSD-3-Clause"
] | 10 | 2015-11-24T02:27:53.000Z | 2022-01-05T18:29:09.000Z | //
// File: DKCanvas.cpp
// Author: Hongtae Kim (tiff2766@gmail.com)
//
// Copyright (c) 2004-2020 Hongtae Kim. All rights reserved.
//
#include "DKCanvas.h"
#include "DKMath.h"
#include "DKAffineTransform2.h"
using namespace DKFramework;
const float DKCanvas::minimumScaleFactor = 0.000001f;
DKCanvas::DKCanvas(D... | 39.041723 | 139 | 0.548228 | [
"object",
"vector",
"transform"
] |
516f0d52a1fb708db51e2532c48b55c32d6d3e35 | 2,973 | cpp | C++ | Examples/To do/Image synthesis/RayTracer2010Cpp/RayTracer2010Cpp/camera.cpp | dotnuttx/Alter-Native | 9282c7d48a4baae1ea6fd9b102bc6f55ba0e6e95 | [
"MIT"
] | 119 | 2015-01-09T14:02:17.000Z | 2022-03-09T14:24:21.000Z | Examples/To do/Image synthesis/RayTracer2010Cpp/RayTracer2010Cpp/camera.cpp | dotnuttx/Alter-Native | 9282c7d48a4baae1ea6fd9b102bc6f55ba0e6e95 | [
"MIT"
] | 12 | 2016-01-15T11:33:32.000Z | 2021-06-08T04:57:07.000Z | Examples/To do/Image synthesis/RayTracer2010Cpp/RayTracer2010Cpp/camera.cpp | dotnuttx/Alter-Native | 9282c7d48a4baae1ea6fd9b102bc6f55ba0e6e95 | [
"MIT"
] | 43 | 2015-01-14T10:59:51.000Z | 2022-01-10T23:46:06.000Z | #include "camera.h"
#include "ray.h"
#include "scene.h"
#include "shader.h"
#include "random.h"
#include <cmath>
#include <limits>
#include "FreeImagePlus.h"
static unsigned char clamp(double v)
{
int i = (int)(v * 256);
if (i < 0)
i = 0;
else if (i > 255)
i = 255;
return i;
}
Camera::Camera()
{
pos = 0;
o... | 20.645833 | 126 | 0.581904 | [
"3d"
] |
5171ee5655d74eb77150b9c4e09e042b97ab564f | 93,505 | cpp | C++ | export/windows/obj/src/lime/math/_Matrix4/Matrix4_Impl_.cpp | arturspon/zombie-killer | 07848c5006916e9079537a3d703ffe3740afaa5a | [
"MIT"
] | null | null | null | export/windows/obj/src/lime/math/_Matrix4/Matrix4_Impl_.cpp | arturspon/zombie-killer | 07848c5006916e9079537a3d703ffe3740afaa5a | [
"MIT"
] | null | null | null | export/windows/obj/src/lime/math/_Matrix4/Matrix4_Impl_.cpp | arturspon/zombie-killer | 07848c5006916e9079537a3d703ffe3740afaa5a | [
"MIT"
] | 1 | 2021-07-16T22:57:01.000Z | 2021-07-16T22:57:01.000Z | // Generated by Haxe 4.0.0-rc.2+77068e10c
#include <hxcpp.h>
#ifndef INCLUDED_95f339a1d026d52c
#define INCLUDED_95f339a1d026d52c
#include "hxMath.h"
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime_math_Matrix3
#include <lime/math/Matrix3.h>
#endif
#ifndef INCLUDED_lime_mat... | 58.477173 | 414 | 0.662478 | [
"vector",
"3d"
] |
51724537a5ebc0d892c3e3e767797b63df5d7b34 | 32,220 | hpp | C++ | include/astro/orbitalElementConversions.hpp | srikarad07/astro | e7beea121e26780ba3dcbde058271ffe03699d76 | [
"MIT"
] | null | null | null | include/astro/orbitalElementConversions.hpp | srikarad07/astro | e7beea121e26780ba3dcbde058271ffe03699d76 | [
"MIT"
] | null | null | null | include/astro/orbitalElementConversions.hpp | srikarad07/astro | e7beea121e26780ba3dcbde058271ffe03699d76 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2016 Kartik Kumar, Dinamica Srl (me@kartikkumar.com)
* Copyright (c) 2014-2016 Marko Jankovic, DFKI GmbH
* Copyright (c) 2014-2016 Natalia Ortiz, University of Southampton
* Copyright (c) 2014-2016 Juan Romero, University of Strathclyde
* Distributed under the MIT License.
* See accompanyi... | 45.572843 | 103 | 0.643079 | [
"vector"
] |
5172a29aeb67710a0d12074ed8430a08197784ee | 1,336 | cc | C++ | bounce/socket.cc | zhangyu0310/bounce | ca6b2d693ffda1a28a1d7b1564468f02d53f2afa | [
"MIT"
] | 17 | 2018-12-09T15:39:45.000Z | 2022-03-15T03:27:28.000Z | bounce/socket.cc | shanliner/bounce | 7876df0ff92a621629fecd455957bb8a040af29c | [
"MIT"
] | 8 | 2019-01-08T09:50:57.000Z | 2019-05-07T14:49:39.000Z | bounce/socket.cc | shanliner/bounce | 7876df0ff92a621629fecd455957bb8a040af29c | [
"MIT"
] | 7 | 2018-12-26T14:33:27.000Z | 2020-06-27T06:58:41.000Z | /*
* Copyright (C) 2018 poppinzhang.
*
* Written by poppinzhang with C++11 <poppinzhang@tencent.com>
*
* This file is some function implementation of Socket.
* A socket object is a encapsulation of file descriptor.
*
* Distributed under the MIT License (http://opensource.org/licenses/MIT)
*/
#include <bounce/socket.h>... | 28.425532 | 72 | 0.667665 | [
"object"
] |
5179ad96b3cc55c98d513884b889f3045489cf5a | 30,048 | cpp | C++ | framework/demuxer/play_list/SegmentTracker.cpp | aliyun/CicadaPlayer | 9d2b515a52403034a6e764e30fd0c9508edec889 | [
"MIT"
] | 38 | 2019-12-16T14:31:00.000Z | 2020-01-11T03:01:26.000Z | framework/demuxer/play_list/SegmentTracker.cpp | aliyun/CicadaPlayer | 9d2b515a52403034a6e764e30fd0c9508edec889 | [
"MIT"
] | 11 | 2020-01-07T06:32:11.000Z | 2020-01-13T03:52:37.000Z | framework/demuxer/play_list/SegmentTracker.cpp | aliyun/CicadaPlayer | 9d2b515a52403034a6e764e30fd0c9508edec889 | [
"MIT"
] | 14 | 2019-12-30T01:19:04.000Z | 2020-01-11T02:12:35.000Z | //
// Created by moqi on 2018/4/28.
//
#define LOG_TAG "SegmentTracker"
#include "SegmentTracker.h"
#include "AdaptationSet.h"
#include "Helper.h"
#include "HlsParser.h"
#include "Period.h"
#include "Representation.h"
#include "SegmentList.h"
#include "data_source/dataSourcePrototype.h"
#include "playList_demuxer.h"
... | 36.95941 | 146 | 0.496739 | [
"vector"
] |
517a86dd2ed3e54f6cbc53527ce6ffd44a3e8458 | 8,263 | hpp | C++ | framework/include/minko/render/Pass.hpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | 478 | 2015-01-04T16:59:53.000Z | 2022-03-07T20:28:07.000Z | framework/include/minko/render/Pass.hpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | 83 | 2015-01-15T21:45:06.000Z | 2021-11-08T11:01:48.000Z | framework/include/minko/render/Pass.hpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | 175 | 2015-01-04T03:30:39.000Z | 2020-01-27T17:08:14.000Z | /*
Copyright (c) 2014 Aerys
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicens... | 28.591696 | 132 | 0.654242 | [
"render"
] |
517e0374f67cc2bf471b6428e9a750a9060b172a | 1,479 | hh | C++ | src/captain/CaptPMTBuilder.hh | andrewmogan/edep-sim | 4e9923ccba8b2f65f47b72cbb41ed683f19f1123 | [
"MIT"
] | 15 | 2017-04-25T14:20:22.000Z | 2022-03-15T19:39:43.000Z | src/captain/CaptPMTBuilder.hh | andrewmogan/edep-sim | 4e9923ccba8b2f65f47b72cbb41ed683f19f1123 | [
"MIT"
] | 24 | 2017-11-08T21:16:48.000Z | 2022-03-04T13:33:18.000Z | src/captain/CaptPMTBuilder.hh | andrewmogan/edep-sim | 4e9923ccba8b2f65f47b72cbb41ed683f19f1123 | [
"MIT"
] | 20 | 2017-11-09T15:41:46.000Z | 2022-01-25T20:52:32.000Z | #ifndef CaptPMTBuilder_hh_Seen
#define CaptPMTBuilder_hh_Seen
#include "EDepSimBuilder.hh"
class G4LogicalVolume;
/// Construct an unrotated PMT. In the local coordinate system, the
/// PMT points along the positive Z direction.
class CaptPMTBuilder : public EDepSim::Builder {
public:
CaptPMTBuilder(G4String na... | 27.90566 | 78 | 0.663962 | [
"object"
] |
517f761b61268d2c664f74bdb338ffb79f8841f8 | 8,488 | cc | C++ | lite/kernels/cuda/transpose_compute_test.cc | hcj5206/Paddle-Lite | eed7a506cef5d2ba6a076a34e4f51d3b5f60cddd | [
"Apache-2.0"
] | null | null | null | lite/kernels/cuda/transpose_compute_test.cc | hcj5206/Paddle-Lite | eed7a506cef5d2ba6a076a34e4f51d3b5f60cddd | [
"Apache-2.0"
] | null | null | null | lite/kernels/cuda/transpose_compute_test.cc | hcj5206/Paddle-Lite | eed7a506cef5d2ba6a076a34e4f51d3b5f60cddd | [
"Apache-2.0"
] | 1 | 2020-02-13T10:45:37.000Z | 2020-02-13T10:45:37.000Z | // Copyright (c) 2019 PaddlePaddle Authors. 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
//
// Unless required... | 29.678322 | 78 | 0.607681 | [
"vector"
] |
5182355171f292b9df20852ebaf1d2727258470d | 335 | hpp | C++ | utf8_unicode.hpp | schiffma/distlib | 5688cffc1284bff8894ba29d5270afb5116b7869 | [
"MIT"
] | 11 | 2021-07-08T14:18:02.000Z | 2022-02-24T12:29:06.000Z | utf8_unicode.hpp | schiffma/distlib | 5688cffc1284bff8894ba29d5270afb5116b7869 | [
"MIT"
] | null | null | null | utf8_unicode.hpp | schiffma/distlib | 5688cffc1284bff8894ba29d5270afb5116b7869 | [
"MIT"
] | null | null | null | #ifndef UTF8_UNICODE_HPP
#define UTF8_UNICODE_HPP
#include <string>
#include <vector>
std::vector<std::string> utf8_split(const std::string &str);
int utf8_length(const std::string &str);
std::string vect2str(const std::vector<std::string> &v);
std::vector<std::string> slice(std::vector<std::string> const &v, int m, ... | 27.916667 | 80 | 0.737313 | [
"vector"
] |
51826f26e32c37a9f4c953a7bb21704583ab46fb | 1,607 | cpp | C++ | csapex_vision/src/set_color.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 2 | 2016-09-02T15:33:22.000Z | 2019-05-06T22:09:33.000Z | csapex_vision/src/set_color.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 1 | 2021-02-14T19:53:30.000Z | 2021-02-14T19:53:30.000Z | csapex_vision/src/set_color.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 6 | 2016-10-12T00:55:23.000Z | 2021-02-10T17:49:25.000Z | /// HEADER
#include "set_color.h"
/// PROJECT
#include <csapex/model/node_modifier.h>
#include <csapex/msg/io.h>
#include <csapex/param/parameter_factory.h>
#include <csapex/param/range_parameter.h>
#include <csapex/utility/register_apex_plugin.h>
#include <csapex_opencv/cv_mat_message.h>
CSAPEX_REGISTER_CLASS(csapex... | 30.903846 | 136 | 0.719353 | [
"vector",
"model"
] |
3d633186865793f1d3fa00464ed4a70699a91f85 | 2,030 | cpp | C++ | King.cpp | Faz0lek/Chess | 9a840353dbccb3e539789e08fdbc73d74d753630 | [
"MIT"
] | null | null | null | King.cpp | Faz0lek/Chess | 9a840353dbccb3e539789e08fdbc73d74d753630 | [
"MIT"
] | null | null | null | King.cpp | Faz0lek/Chess | 9a840353dbccb3e539789e08fdbc73d74d753630 | [
"MIT"
] | null | null | null | #include "King.h"
King::King(std::string StartingTile, char team) : ChessPiece(StartingTile, team)
{
this->PieceTexture.loadFromFile(team == 'W' ? "Images/WhiteKing.png" : "Images/BlackKing.png");
this->PieceSprite.setTexture(this->PieceTexture);
}
bool King::IsLegalMove(const std::vector <std::vector <Tile... | 29.42029 | 327 | 0.580788 | [
"vector"
] |
3d6c138f5e9cbcaa4357c276dd68afb4bea7e97c | 9,264 | cc | C++ | modules/localization/msf/local_tool/map_creation/lossless_map_to_lossy_map.cc | DavidSplit/apollo-3.0 | 9f82838e857e4c9146952946cbc34b9f35098deb | [
"Apache-2.0"
] | 6 | 2019-10-11T07:57:49.000Z | 2022-02-23T15:23:41.000Z | modules/localization/msf/local_tool/map_creation/lossless_map_to_lossy_map.cc | DavidSplit/apollo-3.0 | 9f82838e857e4c9146952946cbc34b9f35098deb | [
"Apache-2.0"
] | null | null | null | modules/localization/msf/local_tool/map_creation/lossless_map_to_lossy_map.cc | DavidSplit/apollo-3.0 | 9f82838e857e4c9146952946cbc34b9f35098deb | [
"Apache-2.0"
] | 12 | 2019-10-11T07:57:49.000Z | 2022-03-16T05:13:00.000Z | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
* Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 38.92437 | 80 | 0.688687 | [
"vector"
] |
3d6cd71aefa635a3874f23d4e7b0fdf047d10427 | 9,943 | cpp | C++ | test/test_decode.cpp | zhengfish/bencode.hpp | 064c1a1b7d4d149569d774e84a705b83db08db4e | [
"BSD-3-Clause"
] | 19 | 2016-09-18T01:58:41.000Z | 2021-12-16T02:10:12.000Z | test/test_decode.cpp | zhengfish/bencode.hpp | 064c1a1b7d4d149569d774e84a705b83db08db4e | [
"BSD-3-Clause"
] | 1 | 2018-04-11T13:42:24.000Z | 2018-06-03T02:53:03.000Z | test/test_decode.cpp | zhengfish/bencode.hpp | 064c1a1b7d4d149569d774e84a705b83db08db4e | [
"BSD-3-Clause"
] | 12 | 2016-07-02T00:18:00.000Z | 2022-03-29T13:05:50.000Z | #include <mettle.hpp>
using namespace mettle;
#include "bencode.hpp"
struct at_eof : matcher_tag {
bool operator ()(const std::string &) const {
return true;
}
template<typename Char, typename Traits>
bool operator ()(const std::basic_ios<Char, Traits> &ss) const {
return ss.eof();
}
std::string... | 33.478114 | 79 | 0.566932 | [
"vector"
] |
3d72a6ad6d61bda69a0fe20eab7e4fe8c3d4d981 | 6,353 | cpp | C++ | Main.cpp | pl2526/PSCAcoustic | eaf127f0bd6aa9bdf4a051b4390966e86fdf6751 | [
"MIT"
] | null | null | null | Main.cpp | pl2526/PSCAcoustic | eaf127f0bd6aa9bdf4a051b4390966e86fdf6751 | [
"MIT"
] | null | null | null | Main.cpp | pl2526/PSCAcoustic | eaf127f0bd6aa9bdf4a051b4390966e86fdf6751 | [
"MIT"
] | null | null | null | #ifndef MAIN_CPP
#define MAIN_CPP
/*
* MAIN.h
* PSC
*
* Copyright 2014 Pierre-David Letourneau
*
* 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 with... | 29.826291 | 129 | 0.616087 | [
"vector"
] |
3d7344a62b44f55900a5d52967d5f020e08d074f | 805 | cpp | C++ | 150-Evaluate-Reverse-Polish-Notation/solution.cpp | johnhany/leetcode | 453a86ac16360e44893262e04f77fd350d1e80f2 | [
"Apache-2.0"
] | 3 | 2019-05-27T06:47:32.000Z | 2020-12-22T05:57:10.000Z | 150-Evaluate-Reverse-Polish-Notation/solution.cpp | johnhany/leetcode | 453a86ac16360e44893262e04f77fd350d1e80f2 | [
"Apache-2.0"
] | null | null | null | 150-Evaluate-Reverse-Polish-Notation/solution.cpp | johnhany/leetcode | 453a86ac16360e44893262e04f77fd350d1e80f2 | [
"Apache-2.0"
] | 5 | 2020-04-01T10:26:04.000Z | 2022-02-05T18:21:01.000Z | #include "solution.hpp"
static auto x = []() {
// turn off sync
std::ios::sync_with_stdio(false);
// untie in/out streams
cin.tie(NULL);
return 0;
}();
int Solution::evalRPN(vector<string>& tokens) {
if (tokens.size() == 1)
return stoi(tokens[0]);
int a, b, x = 0;
stack<int> nums;
set<string... | 20.641026 | 54 | 0.495652 | [
"vector"
] |
3d75097fda2ae23734cfc7cac5354302d5250a5b | 977 | hpp | C++ | include/config_parser.hpp | Reisyukaku/EdiZon | 859e23d32220627828e26dff2ef0535e69fad54f | [
"MIT"
] | 1 | 2019-01-20T14:56:37.000Z | 2019-01-20T14:56:37.000Z | include/config_parser.hpp | Reisyukaku/EdiZon | 859e23d32220627828e26dff2ef0535e69fad54f | [
"MIT"
] | null | null | null | include/config_parser.hpp | Reisyukaku/EdiZon | 859e23d32220627828e26dff2ef0535e69fad54f | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <unordered_map>
#include <vector>
#include "widget.hpp"
#include "types.h"
#include "json.hpp"
#define CONFIG_ROOT "/EdiZon/editor/"
using json = nlohmann::json;
class ScriptParser;
class ConfigParser {
public:
ConfigParser() = delete;
static s8 hasConfig(u64 title... | 22.72093 | 80 | 0.70522 | [
"vector"
] |
3d7aca3eb4160b0af437508d67d607fe99f28369 | 21,900 | cc | C++ | mkldpy/deconv.cc | mingxiaoh/chainer-v3 | 815ff00f5eaf7944d6e8a75662ff64a2fe046a4d | [
"BSD-3-Clause"
] | null | null | null | mkldpy/deconv.cc | mingxiaoh/chainer-v3 | 815ff00f5eaf7944d6e8a75662ff64a2fe046a4d | [
"BSD-3-Clause"
] | null | null | null | mkldpy/deconv.cc | mingxiaoh/chainer-v3 | 815ff00f5eaf7944d6e8a75662ff64a2fe046a4d | [
"BSD-3-Clause"
] | null | null | null | /*
*COPYRIGHT
*All modification made by Intel Corporation: © 2017 Intel Corporation.
*Copyright (c) 2015 Preferred Infrastructure, Inc.
*Copyright (c) 2015 Preferred Networks, Inc.
*
*Permission is hereby granted, free of charge, to any person obtaining a copy
*of this software and associated documentation files... | 40.782123 | 133 | 0.637854 | [
"shape"
] |
3d80ff906a14e00df8ab2dfee3189c803b17720c | 1,401 | cpp | C++ | Engine/Source/Editor/UnrealEd/Private/Fbx/FbxSkeletalMeshImportData.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Editor/UnrealEd/Private/Fbx/FbxSkeletalMeshImportData.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Editor/UnrealEd/Private/Fbx/FbxSkeletalMeshImportData.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "Factories/FbxSkeletalMeshImportData.h"
#include "Engine/SkeletalMesh.h"
UFbxSkeletalMeshImportData::UFbxSkeletalMeshImportData(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
, bImportMeshesInBoneHierarchy(true)
{
bTrans... | 30.456522 | 162 | 0.798001 | [
"object"
] |
3d8480fd91405c387c9163ed70a05b6ae58ca672 | 2,766 | hpp | C++ | REDSI_1160929_1161573/boost_1_67_0/libs/spirit/example/qi/iter_pos.hpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 32 | 2019-02-27T06:57:07.000Z | 2021-08-29T10:56:19.000Z | REDSI_1160929_1161573/boost_1_67_0/libs/spirit/example/qi/iter_pos.hpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 1 | 2019-03-04T11:21:00.000Z | 2019-05-24T01:36:31.000Z | REDSI_1160929_1161573/boost_1_67_0/libs/spirit/example/qi/iter_pos.hpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 5 | 2019-08-20T13:45:04.000Z | 2022-03-01T18:23:49.000Z | // Copyright (c) 2001-2010 Hartmut Kaiser
//
// 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)
#if !defined(ITER_POS_NOV_20_2009_1245PM)
#define ITER_POS_NOV_20_2009_1245PM
#include <boost/spirit/includ... | 32.928571 | 82 | 0.564714 | [
"object"
] |
3d8f5037b5c771617b653ad464a4433092e91bd8 | 5,060 | cpp | C++ | clang/test/Driver/sycl-offload-nvptx.cpp | mgehre-xlx/sycl | 2086745509ef4bc298d7bbec402a123dae68f25e | [
"Apache-2.0"
] | 61 | 2019-04-12T18:49:57.000Z | 2022-03-19T22:23:16.000Z | clang/test/Driver/sycl-offload-nvptx.cpp | mgehre-xlx/sycl | 2086745509ef4bc298d7bbec402a123dae68f25e | [
"Apache-2.0"
] | 127 | 2019-04-09T00:55:50.000Z | 2022-03-21T15:35:41.000Z | clang/test/Driver/sycl-offload-nvptx.cpp | mgehre-xlx/sycl | 2086745509ef4bc298d7bbec402a123dae68f25e | [
"Apache-2.0"
] | 10 | 2019-04-02T18:25:40.000Z | 2022-02-15T07:11:37.000Z | /// Tests specific to `-fsycl-targets=nvptx64-nvidia-nvcl-sycldevice`
// REQUIRES: clang-driver
// UNSUPPORTED: system-windows
/// Check action graph.
// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
// RUN: -fsycl-targets=nvptx64-nvidia-cuda --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
// RU... | 67.466667 | 524 | 0.632609 | [
"object"
] |
3d94812590b6978dc9d5cc0e2acb085d1ed9e88c | 677 | cpp | C++ | NowCoder/CodingInterviews/PrintLevel.cpp | cnsteven/online-judge | 60ee841a97e2bc0dc9c7b23fe5daa186898ab8b7 | [
"MIT"
] | 1 | 2019-05-04T10:28:32.000Z | 2019-05-04T10:28:32.000Z | NowCoder/CodingInterviews/PrintLevel.cpp | cnsteven/online-judge | 60ee841a97e2bc0dc9c7b23fe5daa186898ab8b7 | [
"MIT"
] | null | null | null | NowCoder/CodingInterviews/PrintLevel.cpp | cnsteven/online-judge | 60ee841a97e2bc0dc9c7b23fe5daa186898ab8b7 | [
"MIT"
] | 3 | 2020-12-31T04:36:38.000Z | 2021-07-25T07:39:31.000Z | #include "main.h"
class Solution {
public:
vector<vector<int>> Print(TreeNode *pRoot) {
if (pRoot == nullptr)
return {};
vector<vector<int>> res;
queue<TreeNode *> q;
q.push(pRoot);
while (!q.empty()) {
int size = q.size();
vector<int> l... | 25.074074 | 48 | 0.394387 | [
"vector"
] |
3d95ff2b44f8bde0006c45ca09ebc5670723368c | 17,272 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Services/Server/src/elastos/droid/server/connectivity/PacManager.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/Services/Server/src/elastos/droid/server/connectivity/PacManager.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Services/Server/src/elastos/droid/server/connectivity/PacManager.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
//
// ... | 32.774194 | 120 | 0.616779 | [
"object"
] |
3d989dbe54fe1ecef0846c8ed788457bd2243c9b | 225 | cpp | C++ | AtCoder/abc205/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/abc205/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/abc205/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
long double a, b; cin >> a >> b;
long double ans = ((b * 1.0) / 100) * a * 1.0;
cout << ans << endl;
}
| 20.454545 | 50 | 0.577778 | [
"vector"
] |
3d9df380c1b9c9ea20919f3af9c8c6ddebdb98e7 | 14,665 | cpp | C++ | Server/Servers/NavigatorServer/src/OneSearchBinaryResult.cpp | wayfinder/Wayfinder-Server | a688546589f246ee12a8a167a568a9c4c4ef8151 | [
"BSD-3-Clause"
] | 4 | 2015-08-17T20:12:22.000Z | 2020-05-30T19:53:26.000Z | Server/Servers/NavigatorServer/src/OneSearchBinaryResult.cpp | wayfinder/Wayfinder-Server | a688546589f246ee12a8a167a568a9c4c4ef8151 | [
"BSD-3-Clause"
] | null | null | null | Server/Servers/NavigatorServer/src/OneSearchBinaryResult.cpp | wayfinder/Wayfinder-Server | a688546589f246ee12a8a167a568a9c4c4ef8151 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of condit... | 35.768293 | 755 | 0.621752 | [
"vector"
] |
3da8aee40c278f0f1129c4bd258ba83b91a7f4cd | 4,747 | cpp | C++ | examples/neural_net.cpp | PetterS/spii | 98c5847223d7c3febea5a1aac6f4978dfef207ec | [
"BSD-2-Clause"
] | 35 | 2015-03-03T16:21:40.000Z | 2020-09-16T08:02:12.000Z | examples/neural_net.cpp | nashdingsheng/spii | 3130d0dc43af8ae79d1fdf315a8b5fc05fe00321 | [
"BSD-2-Clause"
] | 2 | 2015-07-16T14:41:55.000Z | 2018-04-09T19:27:22.000Z | examples/neural_net.cpp | nashdingsheng/spii | 3130d0dc43af8ae79d1fdf315a8b5fc05fe00321 | [
"BSD-2-Clause"
] | 11 | 2015-09-21T23:09:37.000Z | 2021-07-24T20:20:30.000Z | // Petter Strandmark 2013.
//
// Trains a small artificial neural network using L-BFGS.
// Learns the xor function from two inputs to one output
// variable.
//
// This example illustrates how functions of matrices can
// be optimized using automatic differentiations.
#include <iostream>
#include <random>
#include <st... | 27.760234 | 101 | 0.641247 | [
"vector"
] |
3daab25b0ae3b7285e87eb27169f993e3e49550b | 1,316 | cpp | C++ | src/Scene.cpp | Dav-v/Rha | 77fa838ea0830bd1f335349dd88d0a7005b4a921 | [
"Apache-2.0"
] | null | null | null | src/Scene.cpp | Dav-v/Rha | 77fa838ea0830bd1f335349dd88d0a7005b4a921 | [
"Apache-2.0"
] | null | null | null | src/Scene.cpp | Dav-v/Rha | 77fa838ea0830bd1f335349dd88d0a7005b4a921 | [
"Apache-2.0"
] | null | null | null | /*
* Author: Davide Viero - dviero42@gmail.com
* Rha raytracer
* 2019
* License: see LICENSE file
*
*/
#include "scene.h"
Scene::Scene(
float near,
float left,
float right,
float bottom,
float top,
glm::vec3 background,
glm::vec3 ambient,
std::vector<SceneObject *> objects,
st... | 14.954545 | 46 | 0.641337 | [
"vector"
] |
3daae607723be21fedf12b9f44bf4b33eedf607c | 77,878 | cpp | C++ | jni/wprint/plugins/genPCLm/src/genPCLm.cpp | ibevilinc/WFDSPrintPlugin | 63426e7c6d7c038585bf9a8d5661655af28f8e40 | [
"Apache-2.0"
] | 5 | 2015-03-25T11:50:49.000Z | 2020-08-25T09:52:27.000Z | jni/wprint/plugins/genPCLm/src/genPCLm.cpp | ibevilinc/WFDSPrintPlugin | 63426e7c6d7c038585bf9a8d5661655af28f8e40 | [
"Apache-2.0"
] | 1 | 2015-03-25T06:27:27.000Z | 2015-03-25T11:20:00.000Z | jni/wprint/plugins/genPCLm/src/genPCLm.cpp | ibevilinc/WFDSPrintPlugin | 63426e7c6d7c038585bf9a8d5661655af28f8e40 | [
"Apache-2.0"
] | 8 | 2015-02-21T10:48:53.000Z | 2021-11-26T06:59:23.000Z | /*
(c) Copyright 2013 Hewlett-Packard Development Company, L.P.
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 agre... | 33.424034 | 191 | 0.666453 | [
"object"
] |
3dadd111f86dc0d2b4605fd20f4eb784815bea6b | 11,335 | hpp | C++ | include/poplin/Norms.hpp | giantchen2012/poplibs | 2bc6b6f3d40863c928b935b5da88f40ddd77078e | [
"MIT"
] | 1 | 2021-02-23T05:58:24.000Z | 2021-02-23T05:58:24.000Z | include/poplin/Norms.hpp | giantchen2012/poplibs | 2bc6b6f3d40863c928b935b5da88f40ddd77078e | [
"MIT"
] | null | null | null | include/poplin/Norms.hpp | giantchen2012/poplibs | 2bc6b6f3d40863c928b935b5da88f40ddd77078e | [
"MIT"
] | null | null | null | // Copyright (c) 2019 Graphcore Ltd. All rights reserved.
/** \file
*
* Functions to support normalising values in a tensor.
*
*/
#ifndef poplin_Norms_hpp
#define poplin_Norms_hpp
#include <poplar/Graph.hpp>
#include <poplar/Program.hpp>
#include <tuple>
namespace poplin {
// Note that the functionality here sho... | 53.720379 | 80 | 0.608028 | [
"shape",
"vector"
] |
3db492bcd0bd0234d4548e1ad87fa90cfd9981d5 | 4,809 | cpp | C++ | swap.cpp | ibaned/omega_h_v1 | 9ab9efca33d66e4411f87206a7bd1534cec116e4 | [
"MIT"
] | null | null | null | swap.cpp | ibaned/omega_h_v1 | 9ab9efca33d66e4411f87206a7bd1534cec116e4 | [
"MIT"
] | null | null | null | swap.cpp | ibaned/omega_h_v1 | 9ab9efca33d66e4411f87206a7bd1534cec116e4 | [
"MIT"
] | null | null | null | #include "swap.hpp"
#include <cassert>
#include <cstdio>
#include "arrays.hpp"
#include "comm.hpp"
#include "doubles.hpp"
#include "ghost_mesh.hpp"
#include "indset.hpp"
#include "inherit.hpp"
#include "ints.hpp"
#include "loop.hpp"
#include "mark.hpp"
#include "mesh.hpp"
#include "parallel_mesh.hpp"
#include "parall... | 30.630573 | 80 | 0.713454 | [
"mesh"
] |
3db69c5765323f0aa0d5d46d8b2a697025d61363 | 1,462 | cc | C++ | tests/iohal/test_sparse_pmem.cc | MarkMankins/libosi | 2d67ed8066098bc798a53c06dffb5ba257d89bde | [
"BSD-3-Clause"
] | 3 | 2021-02-23T09:13:07.000Z | 2021-08-13T14:15:06.000Z | tests/iohal/test_sparse_pmem.cc | MarkMankins/libosi | 2d67ed8066098bc798a53c06dffb5ba257d89bde | [
"BSD-3-Clause"
] | 3 | 2021-12-02T17:51:48.000Z | 2022-03-04T20:02:32.000Z | tests/iohal/test_sparse_pmem.cc | MarkMankins/libosi | 2d67ed8066098bc798a53c06dffb5ba257d89bde | [
"BSD-3-Clause"
] | 2 | 2021-12-07T00:42:31.000Z | 2022-03-04T15:42:12.000Z | #include "sparse_pmem.h"
#include "gtest/gtest.h"
// Sanity check that the object can be included, allocated, and freed
TEST(SparsePmemTest, PmemAllocate)
{
struct PhysicalMemory* pmem = createSparsePhysicalMemory(2048);
ASSERT_TRUE(pmem != nullptr) << "Could not allocate physical memory object!";
pmem->fr... | 30.458333 | 81 | 0.671683 | [
"object"
] |
3dc358ce154921061631aa64b958940901f5d701 | 23,755 | cc | C++ | hyperion/synthesis/FFT.cc | mpokorny/legms | 8ea5d1899ac5e2658ebe481b706430474685bb2d | [
"Apache-2.0"
] | 2 | 2021-02-03T00:40:55.000Z | 2021-02-03T13:30:31.000Z | hyperion/synthesis/FFT.cc | mpokorny/legms | 8ea5d1899ac5e2658ebe481b706430474685bb2d | [
"Apache-2.0"
] | null | null | null | hyperion/synthesis/FFT.cc | mpokorny/legms | 8ea5d1899ac5e2658ebe481b706430474685bb2d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2020 Associated Universities, Inc. Washington DC, USA.
*
* 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 re... | 28.75908 | 79 | 0.637845 | [
"vector",
"transform"
] |
3dc850d20ff6a2549b9c0528efc89fca227a3629 | 79,326 | cpp | C++ | third_party/rsyn/src/tool/qpdp/IncrementalTimingDrivenQP.cpp | boenset/FastRoute4-lefdef | dd29747029fe0e4837da8696153998d5dd91aa89 | [
"BSD-3-Clause"
] | 1 | 2019-09-25T01:29:45.000Z | 2019-09-25T01:29:45.000Z | third_party/rsyn/src/tool/qpdp/IncrementalTimingDrivenQP.cpp | wjx-1999/FastRoute4-lefdef | f9e0a28e42376cd673eae288fa19af60c1cd390e | [
"BSD-3-Clause"
] | null | null | null | third_party/rsyn/src/tool/qpdp/IncrementalTimingDrivenQP.cpp | wjx-1999/FastRoute4-lefdef | f9e0a28e42376cd673eae288fa19af60c1cd390e | [
"BSD-3-Clause"
] | null | null | null | /* Copyright 2014-2018 Rsyn
*
* 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 in wr... | 41.728564 | 94 | 0.429973 | [
"vector"
] |
3dc8770d55d59d5d648a6289225972492fe997fb | 2,256 | cpp | C++ | src/scenepic/image.cpp | microsoft/scenepic | e3fd2c6312fa670a92b7888962b6812c262c6759 | [
"MIT"
] | 28 | 2021-10-05T08:51:26.000Z | 2022-03-18T11:19:23.000Z | src/scenepic/image.cpp | microsoft/scenepic | e3fd2c6312fa670a92b7888962b6812c262c6759 | [
"MIT"
] | 17 | 2021-10-05T11:36:17.000Z | 2022-02-10T13:33:43.000Z | src/scenepic/image.cpp | microsoft/scenepic | e3fd2c6312fa670a92b7888962b6812c262c6759 | [
"MIT"
] | 2 | 2021-12-12T16:42:51.000Z | 2022-02-23T11:50:14.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "image.h"
#include "base64.h"
#include "util.h"
#include <algorithm>
#include <cctype>
#include <exception>
#include <fstream>
namespace
{
bool end_with(const std::string& value, const std::string& ending)
{
if (value.size()... | 19.448276 | 80 | 0.598848 | [
"vector",
"transform"
] |
3dc945b86724640fe246d7667592eaac893c12f8 | 4,270 | cpp | C++ | 4/4_5.cpp | pietroblandizzi/cracking-the-coding-interview | fdd91cff35a4420909eceda60060f380b3ed74e4 | [
"MIT"
] | null | null | null | 4/4_5.cpp | pietroblandizzi/cracking-the-coding-interview | fdd91cff35a4420909eceda60060f380b3ed74e4 | [
"MIT"
] | null | null | null | 4/4_5.cpp | pietroblandizzi/cracking-the-coding-interview | fdd91cff35a4420909eceda60060f380b3ed74e4 | [
"MIT"
] | null | null | null | /*****************************************************************************
Copyright (c) [2017] [Blandizzi Pietro]
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, includin... | 23.206522 | 82 | 0.623653 | [
"vector"
] |
3de07e3228478dd41f74a7a5f8596348aa464120 | 10,078 | cpp | C++ | src/TwoChQSz/TwoChQSz.cpp | lgds/NRG_USP | ff66846e92498aa429cce6fc5793bec23ad03eb4 | [
"MIT"
] | 3 | 2015-09-21T20:58:45.000Z | 2019-03-20T01:21:41.000Z | src/TwoChQSz/TwoChQSz.cpp | lgds/NRG_USP | ff66846e92498aa429cce6fc5793bec23ad03eb4 | [
"MIT"
] | null | null | null | src/TwoChQSz/TwoChQSz.cpp | lgds/NRG_USP | ff66846e92498aa429cce6fc5793bec23ad03eb4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/io.hpp>
#include <vector>
#include <cmath>
#include "NRGclasses.hpp"
#include "NRGfunctions.hpp"
#include "TwoChQSz.hpp"
#ifndef pi
#define pi 3.14159265358979323... | 23.437209 | 93 | 0.563306 | [
"vector"
] |
3de103b5651d124a8066880daf947abc2f6f867d | 210 | cpp | C++ | CPhysics/DifferentialSolver/EulerImplSysSolver.cpp | glensand/CPhysics | dca21414275a0fc9b0725e843de0f346c1529f4a | [
"MIT"
] | 1 | 2019-10-18T16:53:11.000Z | 2019-10-18T16:53:11.000Z | CPhysics/DifferentialSolver/EulerImplSysSolver.cpp | glensand/CPhysics | dca21414275a0fc9b0725e843de0f346c1529f4a | [
"MIT"
] | 29 | 2019-09-26T04:08:58.000Z | 2020-06-17T03:04:02.000Z | CPhysics/DifferentialSolver/EulerImplSysSolver.cpp | glensand/CPhysics | dca21414275a0fc9b0725e843de0f346c1529f4a | [
"MIT"
] | null | null | null | #include "EulerImplSysSolver.h"
namespace CPhysics
{
IDifferentialSystemSolver::ReturnType EulerImplSysSolver::Solve(const Params* params) const
{
std::vector<std::vector<Real>> res{};
return res;
}
} | 13.125 | 91 | 0.747619 | [
"vector"
] |
3de520b7ec163c21d641086013998e9e46c0c9bf | 16,809 | cpp | C++ | test/VectorTests.cpp | DNKpp/Simple-Vector | 522adc19150a0284d4b7e5a1112a3b219b030559 | [
"BSL-1.0"
] | null | null | null | test/VectorTests.cpp | DNKpp/Simple-Vector | 522adc19150a0284d4b7e5a1112a3b219b030559 | [
"BSL-1.0"
] | 2 | 2021-06-06T19:21:11.000Z | 2022-02-17T18:06:23.000Z | test/VectorTests.cpp | DNKpp/Simple-Vector | 522adc19150a0284d4b7e5a1112a3b219b030559 | [
"BSL-1.0"
] | null | null | null | // Copyright Dominic Koepke 2021 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#include <catch2/catch.hpp>
#include "Simple-Vector/Generators.hpp"
#include "Simple-Vector/Vector.... | 24.646628 | 119 | 0.665298 | [
"vector",
"transform"
] |
3decdf5bcf2e0768fdfc60b59072ca0f2320b659 | 2,095 | hpp | C++ | Sprites.hpp | JurajX/Snake | dc27d400c04dbcc113259c96d074885a7e100b9b | [
"Unlicense"
] | null | null | null | Sprites.hpp | JurajX/Snake | dc27d400c04dbcc113259c96d074885a7e100b9b | [
"Unlicense"
] | null | null | null | Sprites.hpp | JurajX/Snake | dc27d400c04dbcc113259c96d074885a7e100b9b | [
"Unlicense"
] | null | null | null | //
// Sprites.hpp
// Snake
//
// Created by X on 16.05.18.
//
#ifndef Sprites_hpp
#define Sprites_hpp
#include "SDL.h"
#include "SDL_image.h"
#include <vector>
#include <map>
#include <string>
//-------------------- Helper structures
// Note that (in the integer representation) neither direction nor sum of any... | 22.771739 | 92 | 0.664439 | [
"vector"
] |
3df5134b520f17fb4c915eb4be7f7041a659facd | 6,519 | cpp | C++ | ROVER/src/noisy/led.cpp | majitaki/arliss2019_tadpole | 22c2f976dfb91d345a6be878a45bcd361247943b | [
"MIT"
] | null | null | null | ROVER/src/noisy/led.cpp | majitaki/arliss2019_tadpole | 22c2f976dfb91d345a6be878a45bcd361247943b | [
"MIT"
] | null | null | null | ROVER/src/noisy/led.cpp | majitaki/arliss2019_tadpole | 22c2f976dfb91d345a6be878a45bcd361247943b | [
"MIT"
] | null | null | null | #include <wiringPiI2C.h>
#include <wiringPi.h>
#include <softPwm.h>
#include <time.h>
#include <string.h>
#include <fstream>
#include <sstream>
#include <unistd.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <stdarg.h>
#include... | 18.57265 | 444 | 0.57877 | [
"vector"
] |
3df5a0e37e8152ef1a93daa7671423c6ef4803a5 | 5,906 | cc | C++ | Client.cc | kcirick/simplewm | a3d5fc153dc9dce95d6b632f686c0eb99d090b19 | [
"MIT"
] | 30 | 2016-09-13T10:55:37.000Z | 2021-11-14T20:31:50.000Z | Client.cc | kcirick/simplewm | a3d5fc153dc9dce95d6b632f686c0eb99d090b19 | [
"MIT"
] | null | null | null | Client.cc | kcirick/simplewm | a3d5fc153dc9dce95d6b632f686c0eb99d090b19 | [
"MIT"
] | 3 | 2021-04-04T12:35:26.000Z | 2022-02-13T20:47:25.000Z | #include "Globals.hh"
#include "Configuration.hh"
#include "XScreen.hh"
#include "Client.hh"
//--- Constructor and destructor -----------------------------------------
Client::Client(XScreen* screen, Window win) : g_xscreen(screen), window(win) {
say(DEBUG, "Client::Client() constructor");
iconified = fal... | 29.093596 | 128 | 0.653742 | [
"geometry"
] |
3df6422974bfcbb5d601e5b61165c23f63370968 | 8,271 | cpp | C++ | torch/csrc/jit/passes/onnx/fixup_onnx_loop.cpp | wenhaopeter/read_pytorch_code | 491f989cd918cf08874dd4f671fb7f0142a0bc4f | [
"Intel",
"X11"
] | null | null | null | torch/csrc/jit/passes/onnx/fixup_onnx_loop.cpp | wenhaopeter/read_pytorch_code | 491f989cd918cf08874dd4f671fb7f0142a0bc4f | [
"Intel",
"X11"
] | null | null | null | torch/csrc/jit/passes/onnx/fixup_onnx_loop.cpp | wenhaopeter/read_pytorch_code | 491f989cd918cf08874dd4f671fb7f0142a0bc4f | [
"Intel",
"X11"
] | null | null | null | #include <torch/csrc/jit/passes/onnx/fixup_onnx_loop.h>
#include <torch/csrc/jit/passes/dead_code_elimination.h>
#include <torch/csrc/jit/passes/onnx/peephole.h>
namespace torch {
namespace jit {
namespace onnx {
using namespace ::c10::onnx;
}
Node* CreateCastToBoolNode(Value* val, Graph* graph) {
Node* cast_node ... | 32.6917 | 80 | 0.623987 | [
"vector"
] |
3df83c1f2e51740214369277c575113d6b59d363 | 7,391 | cpp | C++ | OgreMain/src/Compositor/Pass/PassDepthCopy/OgreCompositorPassDepthCopy.cpp | jondo2010/ogre | c1e836d453b2bca0d4e2eb6a32424fe967092b52 | [
"MIT"
] | null | null | null | OgreMain/src/Compositor/Pass/PassDepthCopy/OgreCompositorPassDepthCopy.cpp | jondo2010/ogre | c1e836d453b2bca0d4e2eb6a32424fe967092b52 | [
"MIT"
] | null | null | null | OgreMain/src/Compositor/Pass/PassDepthCopy/OgreCompositorPassDepthCopy.cpp | jondo2010/ogre | c1e836d453b2bca0d4e2eb6a32424fe967092b52 | [
"MIT"
] | null | null | null | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | 44.257485 | 108 | 0.571776 | [
"object"
] |
ad063233155a7992f7c45f7db24b3687ee48acc0 | 4,660 | cpp | C++ | LeetCode/C++/General/Medium/SumRootToLeafNumbers/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Medium/SumRootToLeafNumbers/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Medium/SumRootToLeafNumbers/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | #include "../TreeNode.h"
#include <cmath>
#include <iostream>
#include <stack>
#include <utility>
#include <vector>
/*
* Solutions:
*
* 1. Recursive pre-order traversal, building each root-to-leaf path as we go.
* When we reach the end of a path, we sum up the path and add that sum to our
* overall sum, result.
... | 22.085308 | 128 | 0.58927 | [
"vector"
] |
ad096be4fa10c60db80ed464996c77b562cf8923 | 3,821 | cpp | C++ | isis/src/clipper/objs/ClipperWacFcCamera/ClipperWacFcCamera.cpp | robotprogrammer22/ISIS3 | 8a2ec4bb3c91969c81d75c681051a1fe77028788 | [
"CC0-1.0"
] | null | null | null | isis/src/clipper/objs/ClipperWacFcCamera/ClipperWacFcCamera.cpp | robotprogrammer22/ISIS3 | 8a2ec4bb3c91969c81d75c681051a1fe77028788 | [
"CC0-1.0"
] | null | null | null | isis/src/clipper/objs/ClipperWacFcCamera/ClipperWacFcCamera.cpp | robotprogrammer22/ISIS3 | 8a2ec4bb3c91969c81d75c681051a1fe77028788 | [
"CC0-1.0"
] | null | null | null | /**
* @file
*
* Unless noted otherwise, the portions of Isis written by the USGS are public
* domain. See individual third-party library and package descriptions for
* intellectual property information,user agreements, and related information.
*
* Although Isis has been used by the USGS, no warranty, exp... | 33.226087 | 100 | 0.696938 | [
"object"
] |
ad15ed2c728070686708942c8f2278b061eec51a | 36,891 | cc | C++ | content/browser/dom_storage/local_storage_context_mojo.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/dom_storage/local_storage_context_mojo.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/dom_storage/local_storage_context_mojo.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 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 "content/browser/dom_storage/local_storage_context_mojo.h"
#include <inttypes.h>
#include <cctype> // for std::isalnum
#include "base/memory/pt... | 38.229016 | 80 | 0.712016 | [
"vector"
] |
ad16b144d5216cf6923684a891e993a1f47e648a | 763 | cpp | C++ | mcrouter/routes/McRouteHandleProvider-FailoverRoute.cpp | kiaplayer/mcrouter | c54233f1cd57dc9f541bdbff7ff485775ff289fc | [
"MIT"
] | 2,205 | 2015-01-03T02:56:53.000Z | 2022-03-31T09:24:08.000Z | mcrouter/routes/McRouteHandleProvider-FailoverRoute.cpp | kiaplayer/mcrouter | c54233f1cd57dc9f541bdbff7ff485775ff289fc | [
"MIT"
] | 327 | 2015-01-07T00:59:57.000Z | 2022-03-31T16:03:58.000Z | mcrouter/routes/McRouteHandleProvider-FailoverRoute.cpp | kiaplayer/mcrouter | c54233f1cd57dc9f541bdbff7ff485775ff289fc | [
"MIT"
] | 479 | 2015-01-07T02:06:42.000Z | 2022-03-24T11:44:31.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "mcrouter/routes/McRouteHandleProvider.h"
#include <mcrouter/routes/FailoverRoute.h>
namespace facebook {
namespace memc... | 26.310345 | 66 | 0.769332 | [
"vector"
] |
ad1df801c3d6c628214f03cf596caa2bc9d6d872 | 21,755 | cpp | C++ | wrap/tests/expected/geometry_wrapper.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | 11 | 2015-02-04T16:41:47.000Z | 2021-12-10T07:02:44.000Z | wrap/tests/expected/geometry_wrapper.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | null | null | null | wrap/tests/expected/geometry_wrapper.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | 6 | 2015-09-10T12:06:08.000Z | 2021-12-10T07:02:48.000Z | #include <wrap/matlab.h>
#include <map>
#include <boost/foreach.hpp>
#include <folder/path/to/Test.h>
typedef std::set<boost::shared_ptr<Point2>*> Collector_Point2;
static Collector_Point2 collector_Point2;
typedef std::set<boost::shared_ptr<Point3>*> Collector_Point3;
static Collector_Point3 collector_Point3;
typed... | 35.145396 | 117 | 0.697219 | [
"vector"
] |
ad230896047767d9d94456c692b42f6fe4d67759 | 13,648 | cpp | C++ | src/graphics/backend/csm.cpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 7 | 2020-04-28T11:01:55.000Z | 2022-02-22T09:59:33.000Z | src/graphics/backend/csm.cpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 2 | 2021-09-03T12:58:06.000Z | 2021-09-20T20:07:33.000Z | src/graphics/backend/csm.cpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 1 | 2021-09-03T12:56:25.000Z | 2021-09-03T12:56:25.000Z | #include <andromeda/graphics/backend/csm.hpp>
#include <andromeda/graphics/backend/mesh_draw.hpp>
#include <andromeda/graphics/backend/debug_geometry.hpp>
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/gtc/matrix_transform.hpp>
namespace andromeda::gfx::backend {
bool CascadedShadowMapping::is_shadow_caster(gpu... | 46.580205 | 194 | 0.669402 | [
"mesh",
"render",
"vector",
"transform"
] |
ad25ae0bea0961ea8b86f2fe34b1a71d4b2e031a | 1,198 | hpp | C++ | lib/src/frand_cache.hpp | WojciechMigda/tsetlini | 537f6b4c30c40b07a747006c0878276298c0318e | [
"MIT"
] | 1 | 2018-11-29T08:41:44.000Z | 2018-11-29T08:41:44.000Z | lib/src/frand_cache.hpp | WojciechMigda/TsetlinMachineToolkit | 537f6b4c30c40b07a747006c0878276298c0318e | [
"MIT"
] | null | null | null | lib/src/frand_cache.hpp | WojciechMigda/TsetlinMachineToolkit | 537f6b4c30c40b07a747006c0878276298c0318e | [
"MIT"
] | null | null | null | #pragma once
#ifndef LIB_SRC_FRAND_CACHE_HPP_
#define LIB_SRC_FRAND_CACHE_HPP_
#include "tsetlini_types.hpp"
#include "aligned_allocator.hpp"
#include "assume_aligned.hpp"
#include <vector>
#include <algorithm>
namespace Tsetlini
{
template<int alignment=alignment, typename ValueType=float>
struct frand_cache
{
... | 17.617647 | 85 | 0.616027 | [
"vector"
] |
ad2674bc1edf29358d846cde5eafac197a6e2fb0 | 3,618 | cpp | C++ | markerServer/build-untitled-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/moc_client.cpp | vasyllll95/MarkerServer | fb256b5468fabdd787c365e1632f202752209fa7 | [
"MIT"
] | 1 | 2017-03-17T21:01:41.000Z | 2017-03-17T21:01:41.000Z | markerServer/build-untitled-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/moc_client.cpp | vasyllll95/MarkerServer | fb256b5468fabdd787c365e1632f202752209fa7 | [
"MIT"
] | null | null | null | markerServer/build-untitled-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/moc_client.cpp | vasyllll95/MarkerServer | fb256b5468fabdd787c365e1632f202752209fa7 | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'client.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.1)
**
** WARNING! All changes made in this file will be lost!
**************************************************************... | 30.661017 | 124 | 0.607794 | [
"object"
] |
ad278f373e4463bf2d8ab6f4690521e89ae08fc4 | 3,555 | cpp | C++ | Sources/XML/XML/xpath_object.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | Sources/XML/XML/xpath_object.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | Sources/XML/XML/xpath_object.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | /*
** ClanLib SDK
** Copyright (c) 1997-2016 The ClanLib Team
**
** 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 a... | 21.944444 | 78 | 0.697046 | [
"vector"
] |
ad2e862fb170c3684bdb182759c8d231f518aebf | 14,299 | cpp | C++ | day20/main.cpp | bashbaug/adventofcode_2020 | d1a18a034503744bc322168f1d77ea436125079d | [
"Unlicense"
] | null | null | null | day20/main.cpp | bashbaug/adventofcode_2020 | d1a18a034503744bc322168f1d77ea436125079d | [
"Unlicense"
] | null | null | null | day20/main.cpp | bashbaug/adventofcode_2020 | d1a18a034503744bc322168f1d77ea436125079d | [
"Unlicense"
] | null | null | null | #include <algorithm>
#include <cinttypes>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
struct Tile {
Tile(int num) : Used(false), Num(num), Dim(0), Matches(0) {}
const char& get(int row, int col) const
{
return Data.at(row * Dim + col);
}
char& get(int row, i... | 30.230444 | 145 | 0.458004 | [
"vector"
] |
ad366fea06e4d9dca541881e287051b408e45ffc | 2,300 | hpp | C++ | source/headers/Protocol/Handshake.hpp | IshaySela/PubSub | d25a90458c4fb178dc3c8eb8a0f204d0c4347043 | [
"MIT"
] | null | null | null | source/headers/Protocol/Handshake.hpp | IshaySela/PubSub | d25a90458c4fb178dc3c8eb8a0f204d0c4347043 | [
"MIT"
] | null | null | null | source/headers/Protocol/Handshake.hpp | IshaySela/PubSub | d25a90458c4fb178dc3c8eb8a0f204d0c4347043 | [
"MIT"
] | null | null | null | #ifndef HANDSHAKE
#define HANDSHAKE
#include "../json.hpp"
#include "ClientType.hpp"
#define HEADER_NAME_CLIENT_TYPE "ClientType"
#define HEADER_NAME_AUTHENTICATION_SECRET "AuthSecret"
#define HEADER_NAME_SHOULD_ENCRYPT "Encrypt"
#define HEADER_NAME_ENCRYPTION_STRING "EncryptionString"
using Json = nlohmann::json;
... | 30.666667 | 143 | 0.600435 | [
"object"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.