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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ddb11134f9802c15fbfe734240305f83341b65cb | 17,661 | hpp | C++ | include/util.hpp | yge58/collaborative_a_star_pathfinding | da19e859d37d44c18cd2a2104bdb0c46f56dc09d | [
"MIT"
] | 41 | 2017-08-02T11:33:32.000Z | 2022-03-18T19:33:46.000Z | include/util.hpp | yge58/collaborative_a_star_pathfinding | da19e859d37d44c18cd2a2104bdb0c46f56dc09d | [
"MIT"
] | null | null | null | include/util.hpp | yge58/collaborative_a_star_pathfinding | da19e859d37d44c18cd2a2104bdb0c46f56dc09d | [
"MIT"
] | 7 | 2018-10-25T16:37:21.000Z | 2021-10-20T15:09:14.000Z | #ifndef UTIL_HPP
#define UTIL_HPP
#include "common.hpp"
#include "Agent.hpp"
#include "Map.hpp"
/*********************************************************************/
using hash_map = unordered_map<Node, vector<Agent*>>;
/********************************************************************/
// manhattan distance ... | 32.888268 | 136 | 0.572504 | [
"vector"
] |
ddc70f6f13fbafdc8347bb7fb427fbae2a76f34b | 5,078 | cpp | C++ | src/util/gui/flowlayout.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | 1 | 2017-01-12T07:05:45.000Z | 2017-01-12T07:05:45.000Z | src/util/gui/flowlayout.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/util/gui/flowlayout.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 26.726316 | 78 | 0.663056 | [
"object"
] |
ddd4159a6527593c8acedb5546d40b65d9e89f16 | 1,256 | cpp | C++ | src/metafilelib.cpp | Light-Keeper/metafile | e8cd66c33675514d95e5eaeb24da95781f943bd8 | [
"BSD-2-Clause"
] | 1 | 2021-07-22T02:43:12.000Z | 2021-07-22T02:43:12.000Z | src/metafilelib.cpp | Light-Keeper/metafile | e8cd66c33675514d95e5eaeb24da95781f943bd8 | [
"BSD-2-Clause"
] | null | null | null | src/metafilelib.cpp | Light-Keeper/metafile | e8cd66c33675514d95e5eaeb24da95781f943bd8 | [
"BSD-2-Clause"
] | null | null | null | /* Copyright (C) 2015, Vadym Ianushkevych ( vadik.ya@gmail.com )
* All Rights Reserved.
* You may use, distribute and modify this code under the terms
* of the Simplified BSD License. You should have received a copy
* of the Simplified BSD License with this file. If not, see
* http://opensource.org/licenses/BSD-2-... | 24.627451 | 123 | 0.730096 | [
"vector"
] |
dddb058b26067492e6fd64246bd4874148265266 | 3,160 | cpp | C++ | src/fsc/object/base/line.cpp | nnoell/fsc | 19c6e471fa0712c6fe4817b08d3bf8c6ae2b16fb | [
"BSD-3-Clause"
] | 1 | 2018-11-26T19:06:52.000Z | 2018-11-26T19:06:52.000Z | src/fsc/object/base/line.cpp | nnoell/fsc | 19c6e471fa0712c6fe4817b08d3bf8c6ae2b16fb | [
"BSD-3-Clause"
] | null | null | null | src/fsc/object/base/line.cpp | nnoell/fsc | 19c6e471fa0712c6fe4817b08d3bf8c6ae2b16fb | [
"BSD-3-Clause"
] | null | null | null | //----------------------------------------------------------------------------------------------------------------------
// Copyright : (c) Julian Bouzas 2018
// License : BSD3-style (see LICENSE)
// Maintainer : Julian Bouzas - nnoell3[at]gmail.com
//------------------------------------------------------... | 28.727273 | 121 | 0.587025 | [
"object",
"vector",
"model"
] |
50b7d922ff034dd092f9aea9cdbb092f5910194a | 8,002 | cpp | C++ | Development/HeadMovement/ImageProcessing/src/Contour.cpp | sheldonrobinson/face-gesture-api | 3c92f6033d667445067643399a73478f9449ebe2 | [
"BSD-3-Clause"
] | null | null | null | Development/HeadMovement/ImageProcessing/src/Contour.cpp | sheldonrobinson/face-gesture-api | 3c92f6033d667445067643399a73478f9449ebe2 | [
"BSD-3-Clause"
] | null | null | null | Development/HeadMovement/ImageProcessing/src/Contour.cpp | sheldonrobinson/face-gesture-api | 3c92f6033d667445067643399a73478f9449ebe2 | [
"BSD-3-Clause"
] | null | null | null | #include "dolslr/doldef.h"
#include "dolslr/Contour.h"
#include "opencv2/legacy/legacy.hpp"
using namespace std;
using namespace cv;
Contour::Contour(void)
{
}
Contour::~Contour(void)
{
}
void Contour::InitProcess(Mat& frame)
{
if(frame.channels() == 3)
cvtColor(frame, grayFrame_, CV_BGR2GRAY);
else
grayFrame... | 27.881533 | 203 | 0.680955 | [
"object",
"vector",
"transform"
] |
50b89dfc44e88398b9dfe2a094927fb42589dd05 | 6,474 | cpp | C++ | ccore/tst/utest-ttsas.cpp | JosephChataignon/pyclustering | bf4f51a472622292627ec8c294eb205585e50f52 | [
"BSD-3-Clause"
] | 1,013 | 2015-01-26T19:50:14.000Z | 2022-03-31T07:38:48.000Z | ccore/tst/utest-ttsas.cpp | peterlau0626/pyclustering | bf4f51a472622292627ec8c294eb205585e50f52 | [
"BSD-3-Clause"
] | 542 | 2015-01-20T16:44:32.000Z | 2022-01-29T14:57:20.000Z | ccore/tst/utest-ttsas.cpp | peterlau0626/pyclustering | bf4f51a472622292627ec8c294eb205585e50f52 | [
"BSD-3-Clause"
] | 262 | 2015-03-19T07:28:12.000Z | 2022-03-30T07:28:24.000Z | /*!
@authors Andrei Novikov (pyclustering@yandex.ru)
@date 2014-2020
@copyright BSD-3-Clause
*/
#include <gtest/gtest.h>
#include <pyclustering/cluster/ttsas.hpp>
#include <pyclustering/utils/metric.hpp>
#include "samples.hpp"
#include "utenv_check.hpp"
using namespace pyclustering;
using n... | 43.449664 | 206 | 0.7751 | [
"vector"
] |
50bfac924dde7913bfcab236a656fbe371a7950a | 2,789 | hpp | C++ | source/blind_jump/entity/entity.hpp | Manolomon/blind-jump-portable | 6149d8b639bc9c50533b7eb5fc26884addf563fd | [
"MIT"
] | 140 | 2019-08-31T02:52:17.000Z | 2022-03-25T12:38:23.000Z | source/blind_jump/entity/entity.hpp | Manolomon/blind-jump-portable | 6149d8b639bc9c50533b7eb5fc26884addf563fd | [
"MIT"
] | 8 | 2020-11-30T11:29:56.000Z | 2021-08-08T16:39:17.000Z | source/blind_jump/entity/entity.hpp | Manolomon/blind-jump-portable | 6149d8b639bc9c50533b7eb5fc26884addf563fd | [
"MIT"
] | 5 | 2020-07-08T23:44:32.000Z | 2021-11-04T21:17:52.000Z | #pragma once
#include <algorithm>
#include "graphics/sprite.hpp"
class Platform;
class Game;
class Entity {
public:
using Health = s32;
using Id = u32;
Entity();
Entity(Health health);
// Entity(Entity&) = delete;
void update(Platform&, Game&, Microseconds);
Health get_health(... | 21.96063 | 80 | 0.661169 | [
"object"
] |
50c9298693b54de16b213e73cade86ac7ee35bbd | 7,282 | hpp | C++ | src/json/parser.hpp | Lythenas/json-query | 3614deade41d66dd0e99442e53ac5a76dd5ef5fc | [
"MIT"
] | 1 | 2020-08-02T19:15:45.000Z | 2020-08-02T19:15:45.000Z | src/json/parser.hpp | Lythenas/json-query | 3614deade41d66dd0e99442e53ac5a76dd5ef5fc | [
"MIT"
] | null | null | null | src/json/parser.hpp | Lythenas/json-query | 3614deade41d66dd0e99442e53ac5a76dd5ef5fc | [
"MIT"
] | null | null | null | #ifndef JSON_QUERY_JSON_PARSER_HPP
#define JSON_QUERY_JSON_PARSER_HPP
#ifdef TRACE
#define BOOST_SPIRIT_DEBUG
#endif
#include <boost/phoenix.hpp>
#include <boost/spirit/home/qi/directive/lexeme.hpp>
#include <boost/spirit/home/qi/nonterminal/debug_handler.hpp>
#include <boost/spirit/home/support/iterators/line_pos_it... | 34.028037 | 101 | 0.610959 | [
"object"
] |
50d06aa140ab0979bee0b8ff12ed687f4c67381a | 12,130 | cc | C++ | cpp/shared/tflite_model_parameters/tflite_model_parameters/tflite_model_parameters.cc | SiliconLabs/mltk | 56b19518187e9d1c8a0d275de137fc9058984a1f | [
"Zlib"
] | null | null | null | cpp/shared/tflite_model_parameters/tflite_model_parameters/tflite_model_parameters.cc | SiliconLabs/mltk | 56b19518187e9d1c8a0d275de137fc9058984a1f | [
"Zlib"
] | 1 | 2021-11-19T20:10:09.000Z | 2021-11-19T20:10:09.000Z | cpp/shared/tflite_model_parameters/tflite_model_parameters/tflite_model_parameters.cc | sldriedler/mltk | d82a60359cf875f542a2257f1bc7d8eb4bdaa204 | [
"Zlib"
] | null | null | null | #include "tflite_model_parameters/tflite_model_parameters.hpp"
#include "mltk_tflite_micro_helper.hpp"
namespace mltk
{
using StringList = TfliteModelParameters::StringList;
using Int32List = TfliteModelParameters::Int32List;
using FloatList = TfliteModelParameters::FloatList;
const char TfliteModelParameters::ME... | 23.507752 | 114 | 0.549876 | [
"vector"
] |
50d12a5af4b67b3dbfc83b125f09fc7c6151fa32 | 13,607 | cpp | C++ | BSP/c5soc/source/host/mmd/acl_mmd_mm_io.cpp | hammadj/Qwik-e-Classifier | 4b1668cb1f0e21381873cfbc79424045d6e15411 | [
"MIT"
] | 6 | 2019-07-31T12:54:40.000Z | 2021-07-01T11:50:46.000Z | BSP/c5soc/source/host/mmd/acl_mmd_mm_io.cpp | hammadj/Qwik-e-Classifier | 4b1668cb1f0e21381873cfbc79424045d6e15411 | [
"MIT"
] | 22 | 2018-02-06T03:21:27.000Z | 2019-05-15T15:11:24.000Z | BSP/c5soc/source/host/mmd/acl_mmd_mm_io.cpp | hammadj/Qwik-e-Classifier | 4b1668cb1f0e21381873cfbc79424045d6e15411 | [
"MIT"
] | 2 | 2018-12-13T06:07:46.000Z | 2020-08-19T07:14:59.000Z | // (C) 1992-2017 Intel Corporation.
// Intel, the Intel logo, Intel, MegaCore, NIOS II, Quartus and TalkBack words
// and logos are trademarks of Intel Corporation or its subsidiaries in the U.S.
// and/or other countries. Other marks and brands may be claimed as the property
// of o... | 40.861862 | 132 | 0.64849 | [
"object"
] |
50d20d31231089ebc44f6d411d14761703a04ca2 | 1,315 | hpp | C++ | src/image.hpp | stephanlachnit/vkBasalt | dd6a067b7eada67f4f34e56054ef24264f6856d7 | [
"Zlib"
] | 748 | 2019-10-20T14:21:20.000Z | 2022-03-22T05:53:42.000Z | src/image.hpp | stephanlachnit/vkBasalt | dd6a067b7eada67f4f34e56054ef24264f6856d7 | [
"Zlib"
] | 160 | 2019-10-20T16:35:47.000Z | 2022-03-30T19:21:56.000Z | src/image.hpp | stephanlachnit/vkBasalt | dd6a067b7eada67f4f34e56054ef24264f6856d7 | [
"Zlib"
] | 58 | 2019-10-20T19:15:01.000Z | 2022-01-02T01:16:08.000Z | #ifndef IMAGE_HPP_INCLUDED
#define IMAGE_HPP_INCLUDED
#include <vector>
#include <fstream>
#include <string>
#include <iostream>
#include <vector>
#include <cstring>
#include <memory>
#include "vulkan_include.hpp"
#include "logical_device.hpp"
namespace vkBasalt
{
std::vector<VkImage> createImages(LogicalDevice*... | 37.571429 | 144 | 0.590875 | [
"vector"
] |
50ebe0b6093a4f6f01f9995e45a43fdfcabf8972 | 74,951 | cpp | C++ | src/rcv/rt17.cpp | akstuki/rtklibcpp | 241753fba4d92fb09f3337e6c82b1ed9283675be | [
"BSD-2-Clause"
] | 1 | 2020-06-05T15:16:36.000Z | 2020-06-05T15:16:36.000Z | src/rcv/rt17.cpp | akstuki/rtklibcpp | 241753fba4d92fb09f3337e6c82b1ed9283675be | [
"BSD-2-Clause"
] | 1 | 2020-06-14T07:04:29.000Z | 2020-06-14T07:04:29.000Z | src/rcv/rt17.cpp | akstuki/rtklibcpp | 241753fba4d92fb09f3337e6c82b1ed9283675be | [
"BSD-2-Clause"
] | 2 | 2021-09-26T09:00:02.000Z | 2021-09-26T10:07:52.000Z | /*------------------------------------------------------------------------------
* rt17.c : Trimble RT-17 dependent functions
*
* Copyright (C) 2016 Daniel A. Cook, All rights reserved.
*
* references:
* [1] https://github.com/astrodanco/RTKLIB/tree/cmr/src/rcv/rt17.c
* [2] Trimble, Trimble OEM BD9xx G... | 34.523722 | 141 | 0.577311 | [
"model"
] |
50ec7a6ace10862205a56e3b1c524846461ebb03 | 19,821 | cpp | C++ | src/context.cpp | AIS-Bonn/stillleben | f3673d1ef48c50debe52cf9c634ae000556259c8 | [
"MIT"
] | 46 | 2020-05-16T08:21:05.000Z | 2022-02-14T03:02:42.000Z | src/context.cpp | AIS-Bonn/stillleben | f3673d1ef48c50debe52cf9c634ae000556259c8 | [
"MIT"
] | 4 | 2020-06-26T07:40:30.000Z | 2020-10-23T08:43:13.000Z | src/context.cpp | AIS-Bonn/stillleben | f3673d1ef48c50debe52cf9c634ae000556259c8 | [
"MIT"
] | 2 | 2021-02-19T03:10:34.000Z | 2022-02-17T10:42:53.000Z | // stillleben context
// Author: Max Schwarz <max.schwarz@ais.uni-bonn.de>
#include <stillleben/context.h>
#include <stillleben/physx.h>
#include <algorithm>
#include <Corrade/PluginManager/PluginManager.h>
#include <Corrade/Utility/FormatStl.h>
#include <Magnum/GL/Context.h>
#include <Magnum/GL/RectangleTexture.h>... | 29.148529 | 114 | 0.61783 | [
"vector"
] |
50fc877168511fe19602880563aff3458c7c1fb9 | 11,135 | cpp | C++ | src/npy.cpp | berquist/exdir-cpp | d0986356ab4de67b8541bf8ac08af7860d32072a | [
"BSD-3-Clause"
] | 2 | 2020-04-06T19:24:57.000Z | 2021-07-12T00:03:38.000Z | src/npy.cpp | berquist/exdir-cpp | d0986356ab4de67b8541bf8ac08af7860d32072a | [
"BSD-3-Clause"
] | null | null | null | src/npy.cpp | berquist/exdir-cpp | d0986356ab4de67b8541bf8ac08af7860d32072a | [
"BSD-3-Clause"
] | 2 | 2021-12-16T17:15:42.000Z | 2022-03-06T15:25:13.000Z | /*
* exdir-cpp
*
* Copyright (C) 2020, Hunter Belanger (hunter.belanger@gmail.com)
* All rights reserved.
*
* Released under the terms and conditions of the BSD 3-Clause license.
* For more information, refer to the GitHub repo for this library at:
* https://github.com/HunterBelanger/exdir-cpp
*
* */
#include... | 25.597701 | 79 | 0.606107 | [
"shape",
"vector"
] |
50fddaa70ae36ded44ec11c0732ecf1f69e50831 | 231 | cpp | C++ | Session 2019/453.cpp | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 13 | 2019-10-12T14:36:32.000Z | 2021-06-08T04:26:30.000Z | Session 2019/453.cpp | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 1 | 2020-02-29T14:02:39.000Z | 2020-02-29T14:02:39.000Z | Session 2019/453.cpp | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 3 | 2020-02-08T12:04:28.000Z | 2020-03-17T11:53:00.000Z | class Solution {
public:
int minMoves(vector<int>& nums) {
int y = *min_element(nums.begin(), nums.end());
int ans=0;
for(auto x:nums)
ans += abs(x - y);
return ans;
}
}; | 21 | 55 | 0.47619 | [
"vector"
] |
dd076efe16961953a785d5b44e4389c953a0bd20 | 1,500 | hpp | C++ | thread/container/vector.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 1 | 2017-08-11T19:12:24.000Z | 2017-08-11T19:12:24.000Z | thread/container/vector.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 11 | 2018-07-07T20:09:44.000Z | 2020-02-16T22:45:09.000Z | thread/container/vector.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | null | null | null | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#ifndef _SNAKEOIL_THREAD_CONTAINER_VECTOR_HPP_
#define _SNAKEOIL_THREAD_CONTAINER_VECTOR_HPP_
#include "../typedefs.h... | 21.126761 | 62 | 0.484667 | [
"vector"
] |
dd0efac52c29eab21fa60aa7f75ec7a45c53de1a | 1,187 | cpp | C++ | iodaemon/src/logic/logic.cpp | BeeeOn/adaapp-modules | 6b836a0e8014cc30672fb109ad183919347ad2a8 | [
"BSD-3-Clause"
] | null | null | null | iodaemon/src/logic/logic.cpp | BeeeOn/adaapp-modules | 6b836a0e8014cc30672fb109ad183919347ad2a8 | [
"BSD-3-Clause"
] | null | null | null | iodaemon/src/logic/logic.cpp | BeeeOn/adaapp-modules | 6b836a0e8014cc30672fb109ad183919347ad2a8 | [
"BSD-3-Clause"
] | null | null | null | /*
* @file logic.cpp
* @Author BeeeOn team - Richard Wolfert (wolfert.richard@gmail.com)
* @date July 2016
* @brief IO logic implementation
*/
#include "logic.h"
void Logic::addLedConfiguration(struct ledConfiguration ledConf, int priority)
{
for (std::vector<std::pair<int, struct ledConfiguration>>::iterator i... | 24.22449 | 120 | 0.669756 | [
"vector"
] |
dd16dd56e49138dcb65bc9dfc1fda17b38516e51 | 585 | cpp | C++ | LeetCode/leetcode 1304.cpp | Xi-Plus/OJ-Code | 7ff6d691f34c9553d53dc9cddf90ad7dc7092349 | [
"MIT"
] | null | null | null | LeetCode/leetcode 1304.cpp | Xi-Plus/OJ-Code | 7ff6d691f34c9553d53dc9cddf90ad7dc7092349 | [
"MIT"
] | null | null | null | LeetCode/leetcode 1304.cpp | Xi-Plus/OJ-Code | 7ff6d691f34c9553d53dc9cddf90ad7dc7092349 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define endl '\n'
using namespace std;
class Solution {
public:
vector<int> sumZero(int n) {
vector<int> ans;
if (n & 1) {
ans.push_back(0);
}
for (int q = 1; q <= n / 2; q++) {
ans.push_back(q);
ans.push_back(-q);
}
return ans;
}
};
int main() {
// ios::sync_with_s... | 16.25 | 39 | 0.524786 | [
"vector"
] |
dd1a3165b475209b65cbc6cbb76acc37d944b28b | 1,744 | cpp | C++ | android-29/android/graphics/fonts/FontVariationAxis.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/graphics/fonts/FontVariationAxis.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/graphics/fonts/FontVariationAxis.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../../JArray.hpp"
#include "../../../JObject.hpp"
#include "../../../JString.hpp"
#include "./FontVariationAxis.hpp"
namespace android::graphics::fonts
{
// Fields
// QJniObject forward
FontVariationAxis::FontVariationAxis(QJniObject obj) : JObject(obj) {}
// Constructors
FontVariationAxis::FontV... | 22.075949 | 71 | 0.696101 | [
"object"
] |
dd2bf5e395c075df7828335f9367dae2c484bd85 | 9,001 | tpp | C++ | src/multiDim.tpp | abhilekh/multidimsparsearray | dc2bc22be7fb49ad1d79f39e8d409727afd20629 | [
"BSD-3-Clause"
] | 2 | 2020-12-04T03:26:16.000Z | 2020-12-07T19:25:35.000Z | src/multiDim.tpp | abhilekh/multidimsparsearray | dc2bc22be7fb49ad1d79f39e8d409727afd20629 | [
"BSD-3-Clause"
] | 1 | 2020-12-07T19:35:07.000Z | 2020-12-07T19:35:07.000Z | src/multiDim.tpp | abhilekh/multidimsparsearray | dc2bc22be7fb49ad1d79f39e8d409727afd20629 | [
"BSD-3-Clause"
] | null | null | null | /**
* This file is part of the MultiDimSparseArray library
*
* @license BSD-3
* @author Abhilekh Agarwal
*/
#pragma once
#include <algorithm>
#include <array>
#include <fstream>
#include <iostream>
#include <unordered_map>
#include <vector>
#include "patch/patch.hpp"
#include "SparseDim.tpp"
#include "except... | 33.838346 | 79 | 0.470725 | [
"vector"
] |
dd3abf57a30689702dc6dad6157b72cdc45b2f2e | 11,495 | hpp | C++ | include/Lz/Take.hpp | RichardPoes/cpp-lazy | 84d9c0960b0fbed8e0bb41dd40773d2351dd719a | [
"MIT"
] | null | null | null | include/Lz/Take.hpp | RichardPoes/cpp-lazy | 84d9c0960b0fbed8e0bb41dd40773d2351dd719a | [
"MIT"
] | null | null | null | include/Lz/Take.hpp | RichardPoes/cpp-lazy | 84d9c0960b0fbed8e0bb41dd40773d2351dd719a | [
"MIT"
] | null | null | null | #pragma once
#ifndef LZ_TAKE_HPP
#define LZ_TAKE_HPP
#include "detail/BasicIteratorView.hpp"
namespace lz {
template<LZ_CONCEPT_ITERATOR Iterator>
class Take final : public internal::BasicIteratorView<Iterator> {
public:
using iterator = Iterator;
using const_iterator = Iterator;
using val... | 48.914894 | 133 | 0.715963 | [
"object"
] |
dd3b4649b405f2c0f45b03eb7d3a89936b88bd2b | 1,175 | cpp | C++ | source/aufgabe_11.cpp | Mudartastisch/programmiersprachen-aufgabenblatt-3 | f552ed8e0c165389e60e1ac6835ca647d374f547 | [
"MIT"
] | null | null | null | source/aufgabe_11.cpp | Mudartastisch/programmiersprachen-aufgabenblatt-3 | f552ed8e0c165389e60e1ac6835ca647d374f547 | [
"MIT"
] | null | null | null | source/aufgabe_11.cpp | Mudartastisch/programmiersprachen-aufgabenblatt-3 | f552ed8e0c165389e60e1ac6835ca647d374f547 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_RUNNER
#include <catch.hpp>
#include <cmath>
#include <algorithm>
using namespace std;
bool is_multiple_of_3(int i)
{
return i % 3 == 0;
}
TEST_CASE("filter alle vielfache von drei", "[erase]")
{
vector<unsigned int> v_0;
srand (time(NULL)); //random seed
for (int i = 0; i < 100; ... | 30.128205 | 112 | 0.619574 | [
"vector"
] |
dd3dee1b7f2c1c6616c3808ba7c072ec64764b07 | 1,317 | hpp | C++ | console/tetris/Piece.hpp | piotrek-szczygiel/rpi-tetris | 1120b0ac024ef36f48a4fe67087e3e2c78cf83f8 | [
"MIT"
] | 4 | 2019-10-17T20:26:09.000Z | 2019-11-14T12:01:57.000Z | console/tetris/Piece.hpp | piotrek-szczygiel/rpi-tetris | 1120b0ac024ef36f48a4fe67087e3e2c78cf83f8 | [
"MIT"
] | null | null | null | console/tetris/Piece.hpp | piotrek-szczygiel/rpi-tetris | 1120b0ac024ef36f48a4fe67087e3e2c78cf83f8 | [
"MIT"
] | null | null | null | #pragma once
#include "Matrix.hpp"
#include "Shape.hpp"
#include <functional>
namespace Tetris {
enum class Movement {
NONE,
MOVE,
ROTATE,
};
class Piece {
public:
using CollisionFunction = std::function<bool(const Piece&)>;
Piece(ShapeType shape_type)
: m_shape { shape_from_type(shape_t... | 25.823529 | 86 | 0.671982 | [
"shape"
] |
dd4e857f84777cb24f1bf2b38961414db4392293 | 1,213 | cpp | C++ | Codeforces/contests/Technocup 2022 - Elimination Round 1/A.cpp | LeKSuS-04/Competitive-Programming | fbc86a8c6febeef72587a8f94135e92197e1f99e | [
"WTFPL"
] | null | null | null | Codeforces/contests/Technocup 2022 - Elimination Round 1/A.cpp | LeKSuS-04/Competitive-Programming | fbc86a8c6febeef72587a8f94135e92197e1f99e | [
"WTFPL"
] | null | null | null | Codeforces/contests/Technocup 2022 - Elimination Round 1/A.cpp | LeKSuS-04/Competitive-Programming | fbc86a8c6febeef72587a8f94135e92197e1f99e | [
"WTFPL"
] | null | null | null | /* A - Windblume Ode */
// https://codeforces.com/contest/1583/problem/A
// Date: Oct/17/2021 14:25 (00:20:24)
// Runtime: 15 ms
// Memory: 0 KB
// Verdict: AC
#include <bitset>
#include <iostream>
#include <vector>
using namespace std;
const int MAX = 20100;
bitset<MAX> is_prime;
void sieve() {
is_prime.set();
... | 22.462963 | 80 | 0.42127 | [
"vector"
] |
dd50296f2286818a90457f2de6675c2377cd2548 | 419 | cpp | C++ | contest/yukicoder/397.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/yukicoder/397.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/yukicoder/397.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "vector.hpp"
int main() {
int n(in);
Vector<int> a(n, in);
Vector<Tuple<int, int>> res;
for (int i = 0; i < n; ++i) {
int j = min_element(a.begin() + i, a.end()) - a.begin();
if (i != j) {
res.emplace_back(i, j);
}
swap(a[i], a[j]);
}
cout << res.size() << endl;
for (auto i... | 20.95 | 60 | 0.472554 | [
"vector"
] |
dd5a42a2ca73bd6f5c48bd30ad4c80953e78eb11 | 3,422 | cpp | C++ | SegTree2.cpp | pushkarmishra/StandardAlgosAndDS | bb310cab4cca582ea31304fc8d653eaa8c4899f8 | [
"MIT"
] | 4 | 2016-12-02T11:24:01.000Z | 2017-12-27T18:21:19.000Z | SegTree2.cpp | pushkarmishra/StandardAlgosAndDS | bb310cab4cca582ea31304fc8d653eaa8c4899f8 | [
"MIT"
] | null | null | null | SegTree2.cpp | pushkarmishra/StandardAlgosAndDS | bb310cab4cca582ea31304fc8d653eaa8c4899f8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <algorithm>
#include <vector>
#include <string>
#include <set>
#include <queue>
#include <stack>
#include <map>
#include <cstdio>
#include <cstring>
#include <cassert>
using namespace std;
#define FOR(i, n) for(int i=0;i<int(n);i++)
#define FOR1(i, n) for(int i=1;i<=int(... | 29 | 88 | 0.476914 | [
"vector"
] |
e57c023ca924402e21c690d034228fc44a8c3b8c | 668 | cpp | C++ | src/qt/dividendkeysdialog.cpp | dmitriy79/bestexeas | 4884b5c4fdc5efec54594a3098b98c337139023e | [
"MIT"
] | null | null | null | src/qt/dividendkeysdialog.cpp | dmitriy79/bestexeas | 4884b5c4fdc5efec54594a3098b98c337139023e | [
"MIT"
] | null | null | null | src/qt/dividendkeysdialog.cpp | dmitriy79/bestexeas | 4884b5c4fdc5efec54594a3098b98c337139023e | [
"MIT"
] | null | null | null | #include "dividendkeysdialog.h"
#include "ui_dividendkeysdialog.h"
#include "base58.h"
DividendKeysDialog::DividendKeysDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::DividendKeysDialog)
{
ui->setupUi(this);
}
DividendKeysDialog::~DividendKeysDialog()
{
delete ui;
}
void DividendKeysDialog::set... | 23.857143 | 102 | 0.669162 | [
"vector"
] |
e57e23b90177314d8da6d0f40290eaeffc8a3b0c | 29,590 | cpp | C++ | source/spatial_solvers/solver_eqn_base.cpp | jfbucas/PION | e0a66aa301e4d94d581ba4df078f1a3b82faab99 | [
"BSD-3-Clause"
] | 4 | 2020-08-20T11:31:22.000Z | 2020-12-05T13:30:03.000Z | source/spatial_solvers/solver_eqn_base.cpp | Mapoet/PION | 51559b18f700c372974ac8658a266b6a647ec764 | [
"BSD-3-Clause"
] | null | null | null | source/spatial_solvers/solver_eqn_base.cpp | Mapoet/PION | 51559b18f700c372974ac8658a266b6a647ec764 | [
"BSD-3-Clause"
] | 4 | 2020-08-20T14:33:19.000Z | 2022-03-07T10:29:34.000Z | /// \file solver_eqn_base.cc
///
/// \brief Class definition for various solvers implemented in my FV grid-code.
/// \author Jonathan Mackey
///
/// Modifications:
/// - 2007-07-10 Part Way through writing it.
/// - 2007-07-11 Still writing it and working out class heirarchy.
/// - 2007-07-12 Got the class heirarc... | 32.768549 | 114 | 0.555931 | [
"vector",
"3d"
] |
e5a1ac8ff32078628d03c34e8948f66329f510ee | 5,908 | cpp | C++ | circe/gl/graphics/shader_manager.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | 1 | 2021-09-17T18:12:47.000Z | 2021-09-17T18:12:47.000Z | circe/gl/graphics/shader_manager.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | null | null | null | circe/gl/graphics/shader_manager.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | 2 | 2021-09-17T18:13:02.000Z | 2021-09-17T18:16:21.000Z | /*
* Copyright (c) 2017 FilipeCN
*
* The MIT License (MIT)
*
* 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, cop... | 33.378531 | 80 | 0.718009 | [
"object",
"vector"
] |
e5a1fdda09ca5509e85ec042bbfab455ea7142a8 | 1,467 | cpp | C++ | Elit3d/src/Panels/p1Inspector.cpp | christt105/Elit3D | 06e3fbab04df54c63057a3e85823a9c5e439e4ec | [
"BSD-2-Clause"
] | 26 | 2021-05-25T05:16:28.000Z | 2022-03-20T12:55:07.000Z | Elit3d/src/Panels/p1Inspector.cpp | christt105/Elit3D | 06e3fbab04df54c63057a3e85823a9c5e439e4ec | [
"BSD-2-Clause"
] | 1 | 2021-05-25T18:48:17.000Z | 2021-06-07T19:21:13.000Z | Elit3d/src/Panels/p1Inspector.cpp | christt105/TileMapEditor3D | 70b5e168c1b9c5b9882cabbb5ac3ed6890a87eef | [
"BSD-2-Clause"
] | 5 | 2021-04-16T12:18:05.000Z | 2021-11-24T13:59:46.000Z | #include "Panels/p1Inspector.h"
#include "Core/Application.h"
#include "Modules/m1Objects.h"
#include "Objects/Object.h"
#include "Tools/Map/MapLayer.h"
#include "Modules/m1Resources.h"
#include "Resources/r1Tileset.h"
#include "Resources/r1Map.h"
#include "Tools/FileSystem.h"
p1Inspector::p1Inspector(bool start_enab... | 23.285714 | 88 | 0.676892 | [
"object"
] |
e5ad4e4bb959b526b8e2e6ab00dc0a1aa3fa287f | 12,908 | cc | C++ | src/nnetbin/nnet-modify.cc | swang423/kaldi | 8ea96441148847223b25fde0564ef04a00683cee | [
"Apache-2.0"
] | null | null | null | src/nnetbin/nnet-modify.cc | swang423/kaldi | 8ea96441148847223b25fde0564ef04a00683cee | [
"Apache-2.0"
] | null | null | null | src/nnetbin/nnet-modify.cc | swang423/kaldi | 8ea96441148847223b25fde0564ef04a00683cee | [
"Apache-2.0"
] | null | null | null | // nnetbin/nnet-copy.cc
#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "nnet/nnet-nnet.h"
#include "nnet/nnet-component.h"
#include "nnet/nnet-parallel-component.h"
#include "nnet/nnet-linear-transform.h"
#include "nnet/nnet-affine-transform.h"
#include "cudamatrix/cu-device.h"
#include "nnet/... | 44.054608 | 164 | 0.702665 | [
"vector",
"model",
"transform"
] |
e5b00ac35ec79b2a49fbbaaeaf5102bad3c4f9dc | 747 | cpp | C++ | PrCmp/AtCoder-Beginner-Contest-174/D.cpp | ayhon/CPPWorkspace | 57d6410236096ffa0bae20b88b3e330632edc928 | [
"MIT"
] | null | null | null | PrCmp/AtCoder-Beginner-Contest-174/D.cpp | ayhon/CPPWorkspace | 57d6410236096ffa0bae20b88b3e330632edc928 | [
"MIT"
] | null | null | null | PrCmp/AtCoder-Beginner-Contest-174/D.cpp | ayhon/CPPWorkspace | 57d6410236096ffa0bae20b88b3e330632edc928 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using pi = pair<int, int>;
using vi = vector<int>;
using vpi = vector<pi>;
using vvi = vector<vi>;
using vvpi = vector<vpi>;
using pl = pair<long long, long long>;
using vl = vector<long long>;
using vpl = vector<pl>;
using vvl = vector<vl>;
using vvpl = vector<vpl>;
void... | 16.977273 | 38 | 0.539491 | [
"vector"
] |
e5b1f79846069530bd3975bb82e001617926186b | 2,070 | hpp | C++ | src/gdx-cpp/graphics/g3d/loaders/wavefront/ObjLoader.hpp | aevum/libgdx-cpp | 88603a59af4d915259a841e13ce88f65c359f0df | [
"Apache-2.0"
] | 77 | 2015-01-28T17:21:49.000Z | 2022-02-17T17:59:21.000Z | src/gdx-cpp/graphics/g3d/loaders/wavefront/ObjLoader.hpp | aevum/libgdx-cpp | 88603a59af4d915259a841e13ce88f65c359f0df | [
"Apache-2.0"
] | 5 | 2015-03-22T23:14:54.000Z | 2020-09-18T13:26:03.000Z | src/gdx-cpp/graphics/g3d/loaders/wavefront/ObjLoader.hpp | aevum/libgdx-cpp | 88603a59af4d915259a841e13ce88f65c359f0df | [
"Apache-2.0"
] | 24 | 2015-02-12T04:34:37.000Z | 2021-06-19T17:05:23.000Z | /*
* ObjLoader.h
*
* Created on: Jan 20, 2013
* Author: anton
*/
#ifndef OBJLOADER_H_
#define OBJLOADER_H_
#include "gdx-cpp/graphics/g3d/loaders/StillModelLoader.hpp"
#include "gdx-cpp/graphics/Texture.hpp"
#include "gdx-cpp/graphics/g3d/model/still/StillSubMesh.hpp"
#include "gdx-cpp/graphics/Color.hpp"
... | 24.352941 | 93 | 0.638164 | [
"vector",
"model"
] |
e5b9dcfd8d043db193d16664b6b7962de7c8a75e | 4,863 | cpp | C++ | test/test_Precedence.cpp | Mercerenies/latitude | 29b1697f1f615d52480197a52e20ff8c1872f07d | [
"MIT"
] | 3 | 2021-09-02T18:19:25.000Z | 2021-12-26T23:33:32.000Z | test/test_Precedence.cpp | Mercerenies/latitude | 29b1697f1f615d52480197a52e20ff8c1872f07d | [
"MIT"
] | 45 | 2017-11-28T15:13:59.000Z | 2022-02-19T18:45:46.000Z | test/test_Precedence.cpp | Mercerenies/proto-lang | 29b1697f1f615d52480197a52e20ff8c1872f07d | [
"MIT"
] | null | null | null | //// Copyright (c) 2018 Silvio Mayolo
//// See LICENSE.txt for licensing details
#include "catch2/catch.hpp"
#include "test.hpp"
#include "Precedence.hpp"
#include "Garnish.hpp"
TEST_CASE( "Operator table", "" ) {
// The operator table doesn't actually exist, per se, until the core
// library is loaded. So we'll... | 29.652439 | 95 | 0.590171 | [
"object"
] |
e5e0e4294d74fe4f3688ff1cf36162cf76ffccd4 | 1,643 | cpp | C++ | solutions/LeetCode/C++/228.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | solutions/LeetCode/C++/228.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | solutions/LeetCode/C++/228.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 4 ms submission
class Solution {
public:
vector<string> summaryRanges(vector<int>& nums) {
vector<string>ret;
if(nums.empty())
return ret;
int cur = nums[0];
for(int ... | 28.327586 | 98 | 0.576385 | [
"vector"
] |
e5e7754f0ba77e464b30f0ea94802c5f78628ac9 | 1,394 | cpp | C++ | ver1/answers/lp-03-20.cpp | aafulei/cppp5e | f8d254073866e3025c3a08b919d9bbe3965b6918 | [
"MIT"
] | null | null | null | ver1/answers/lp-03-20.cpp | aafulei/cppp5e | f8d254073866e3025c3a08b919d9bbe3965b6918 | [
"MIT"
] | null | null | null | ver1/answers/lp-03-20.cpp | aafulei/cppp5e | f8d254073866e3025c3a08b919d9bbe3965b6918 | [
"MIT"
] | null | null | null | // 17/10/22 = Sun
// 18/01/27 = Sat: new arithmetic for indexing; concise for loop
// Exercise 3.20: Read a set of integers into a vector. Print the sum of each pair of adjacent elements. Change your program so that it prints the sum of the first and last elements, followed by the sum of the second and second-to-last,... | 29.041667 | 247 | 0.617647 | [
"vector"
] |
e5fe54ee66f921725e998cd652acdd7577be263f | 2,624 | cpp | C++ | problemes/probleme2xx/probleme238.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | 6 | 2015-10-13T17:07:21.000Z | 2018-05-08T11:50:22.000Z | problemes/probleme2xx/probleme238.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | null | null | null | problemes/probleme2xx/probleme238.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | null | null | null | #include "problemes.h"
#include "chiffres.h"
#include "utilitaires.h"
#include <fstream>
typedef unsigned long long nombre;
typedef std::vector<nombre> vecteur;
ENREGISTRER_PROBLEME(238, "Infinite string tour") {
// Create a sequence of numbers using the "Blum Blum Shub" pseudo-random number generator:
//
... | 34.986667 | 118 | 0.564787 | [
"vector"
] |
f90494556df098277e033995dd6b1635a5b52ad8 | 14,508 | cpp | C++ | src/parsing/lexer.cpp | bridgekat/apimu | 2e401a01e0aad859dc1dd975dae164f622c48696 | [
"CC0-1.0"
] | 5 | 2021-12-12T22:10:57.000Z | 2022-03-10T21:01:48.000Z | src/parsing/lexer.cpp | bridgekat/apimu | 2e401a01e0aad859dc1dd975dae164f622c48696 | [
"CC0-1.0"
] | null | null | null | src/parsing/lexer.cpp | bridgekat/apimu | 2e401a01e0aad859dc1dd975dae164f622c48696 | [
"CC0-1.0"
] | null | null | null | #include "lexer.hpp"
#include <unordered_map>
#include <algorithm>
namespace Parsing {
constexpr unsigned int CodeUnits = Lexer::CodeUnits;
size_t cutFirstCodePoint(const string& s, size_t pos) {
if (pos >= s.size()) return 0;
size_t i = 1;
for (; pos + i < s.size(); i++) {
char8_t c = s[pos +... | 34.875 | 124 | 0.54756 | [
"object",
"vector"
] |
f916929a55de329bdaf00d13e07aad959d62e3b3 | 2,852 | hpp | C++ | diffsim_torch3d/arcsim/src/simulation.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/simulation.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/simulation.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, pr... | 31.688889 | 79 | 0.731066 | [
"mesh",
"vector"
] |
f919bbf8330ade6dd6b1505a9ede6bbfbf54d2c6 | 3,933 | cpp | C++ | BlockGen/Factory.mako.cpp | ncorgan/PothosArrayFire | b2ce286827cefdc45507dbae65879a943e977479 | [
"BSD-3-Clause"
] | 2 | 2021-01-19T02:21:48.000Z | 2022-03-26T23:05:49.000Z | BlockGen/Factory.mako.cpp | ncorgan/PothosArrayFire | b2ce286827cefdc45507dbae65879a943e977479 | [
"BSD-3-Clause"
] | 3 | 2020-07-26T18:48:21.000Z | 2020-10-28T00:45:42.000Z | BlockGen/Factory.mako.cpp | pothosware/PothosArrayFire | b2ce286827cefdc45507dbae65879a943e977479 | [
"BSD-3-Clause"
] | 1 | 2022-03-24T06:22:20.000Z | 2022-03-24T06:22:20.000Z | #include "OneToOneBlock.hpp"
#include "NToOneBlock.hpp"
#include "TwoToOneBlock.hpp"
#include "Utility.hpp"
#include <Pothos/Callable.hpp>
#include <Pothos/Framework.hpp>
#include <Pothos/Plugin.hpp>
#include <Pothos/Proxy.hpp>
#include <arrayfire.h>
#include <vector>
static const std::vector<Pothos::BlockRegistry>... | 46.821429 | 143 | 0.613527 | [
"vector"
] |
f91cc263fe90cf38b9530f3bb07afbbddecade3e | 11,413 | cpp | C++ | sharvilZipf.cpp | Sharvilpr23/csc315Project2 | fbbd0de02f04925ad96e019c91987a1b7ace55d3 | [
"MIT"
] | null | null | null | sharvilZipf.cpp | Sharvilpr23/csc315Project2 | fbbd0de02f04925ad96e019c91987a1b7ace55d3 | [
"MIT"
] | null | null | null | sharvilZipf.cpp | Sharvilpr23/csc315Project2 | fbbd0de02f04925ad96e019c91987a1b7ace55d3 | [
"MIT"
] | null | null | null | /**************************************************************************//**
* @file
*
* @brief contains all of Sharvil's functions for project 2
******************************************************************************/
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <cstr... | 29.490956 | 98 | 0.531061 | [
"object",
"vector"
] |
f9261ecff91c0eaa01a5fad38e32167a8cc786c8 | 1,620 | cpp | C++ | Advanced C++ Course/Benjamin Rutan HW 3 Submission/3.1/3.1.1/3.1.1/Main.cpp | BRutan/Cpp | 8acbc6c341f49d6d83168ccd5ba49bd6824214f9 | [
"MIT"
] | null | null | null | Advanced C++ Course/Benjamin Rutan HW 3 Submission/3.1/3.1.1/3.1.1/Main.cpp | BRutan/Cpp | 8acbc6c341f49d6d83168ccd5ba49bd6824214f9 | [
"MIT"
] | null | null | null | Advanced C++ Course/Benjamin Rutan HW 3 Submission/3.1/3.1.1/3.1.1/Main.cpp | BRutan/Cpp | 8acbc6c341f49d6d83168ccd5ba49bd6824214f9 | [
"MIT"
] | null | null | null | /* Main.cpp (exercise 3.1.1)
Description:
* Solutions to exercise 3.1.1.
*/
#include <chrono>
#include <ctime>
#include <iostream>
#include <string>
#include <thread>
#include <vector>
#include "Functions.hpp"
int main()
{
std::chrono::time_point <std::chrono::system_clock> start, end;
start = std::chrono::system... | 27 | 110 | 0.690741 | [
"object",
"vector"
] |
234fc91b06330e5db1a77e9e172e4a465ea7493a | 8,028 | cpp | C++ | src/test/check_assert.cpp | blakelapierre/bitcoin-cash-node | a61fc457449817bef5e280ba25bd9bcb6c921421 | [
"MIT"
] | null | null | null | src/test/check_assert.cpp | blakelapierre/bitcoin-cash-node | a61fc457449817bef5e280ba25bd9bcb6c921421 | [
"MIT"
] | null | null | null | src/test/check_assert.cpp | blakelapierre/bitcoin-cash-node | a61fc457449817bef5e280ba25bd9bcb6c921421 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/check_assert.h>
#include <tinyformat.h> // for strprintf()
#include <util/defer.h> // for Defer
#include <boost/cstdli... | 42.47619 | 119 | 0.54285 | [
"vector"
] |
23515e93cb678888e6c5f11aac610749201c71eb | 4,020 | cpp | C++ | 1169. Invalid Transactions.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | 1 | 2020-10-11T08:10:53.000Z | 2020-10-11T08:10:53.000Z | 1169. Invalid Transactions.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | null | null | null | 1169. Invalid Transactions.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | null | null | null | //
// Created by Yuyang Huang on 10/23/21.
//
/*
* 1169. Invalid Transactions
* Medium
*
* A transaction is possibly invalid if:
* the amount exceeds $1000, or;
* if it occurs within (and including) 60 minutes of another transaction with the same name in a different city.
* You are given an array of strings tra... | 32.16 | 116 | 0.666418 | [
"vector"
] |
2355bf513099c8340886e4aaa929629ba868fb46 | 7,481 | cpp | C++ | src/Ctilemgr.cpp | DWCarrot/CppTileMgr | d7552f3b4d96cc685f9b10bcd4ec43d101b50da4 | [
"MIT"
] | null | null | null | src/Ctilemgr.cpp | DWCarrot/CppTileMgr | d7552f3b4d96cc685f9b10bcd4ec43d101b50da4 | [
"MIT"
] | null | null | null | src/Ctilemgr.cpp | DWCarrot/CppTileMgr | d7552f3b4d96cc685f9b10bcd4ec43d101b50da4 | [
"MIT"
] | null | null | null | // Ctilemgr.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include "pch.h"
#include <iostream>
#include <string>
#include <string.h>
#include <exception>
#include "implement.h"
/*
RGBATuple c = { 0,0,0,0 };
uint8_t *cl = (uint8_t*)&c;
#define B1
bool setColor(uint8_t* pixel, int bw, int i, int j, void *args)
{
return ... | 20.896648 | 174 | 0.547119 | [
"vector"
] |
2362b0740623145d1a0a848b81a9df5d350f9cd5 | 3,117 | hpp | C++ | openFrameworks/apps/oldApps/v0.9.3/frocking/src/frocking.hpp | khattari540750/openFrameworks_practice | e61d219df99537f191f46c46a8bb509d8039e7ba | [
"MIT"
] | null | null | null | openFrameworks/apps/oldApps/v0.9.3/frocking/src/frocking.hpp | khattari540750/openFrameworks_practice | e61d219df99537f191f46c46a8bb509d8039e7ba | [
"MIT"
] | null | null | null | openFrameworks/apps/oldApps/v0.9.3/frocking/src/frocking.hpp | khattari540750/openFrameworks_practice | e61d219df99537f191f46c46a8bb509d8039e7ba | [
"MIT"
] | null | null | null | #pragma once
#include "ofMain.h"
#include "particle.hpp"
#include "ofxGui.h"
/*
class Frocking : public ofBaseApp
{
public:
void setup();
void update();
void draw();
void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x... | 19.853503 | 53 | 0.667308 | [
"vector"
] |
236571061a255758bc8f3d408e4fda0631859452 | 7,473 | cpp | C++ | main.cpp | pauloserrafh/opengl-learning | a6a154db3a121f3270c5bdf79ab7d5221c1dffd2 | [
"MIT"
] | null | null | null | main.cpp | pauloserrafh/opengl-learning | a6a154db3a121f3270c5bdf79ab7d5221c1dffd2 | [
"MIT"
] | null | null | null | main.cpp | pauloserrafh/opengl-learning | a6a154db3a121f3270c5bdf79ab7d5221c1dffd2 | [
"MIT"
] | null | null | null | #ifdef __APPLE__
#define GL_SILENCE_DEPRECATION
#endif
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <SDL2/SDL.h>
#include <string>
#include <iostream>
GLuint compileShader(GLuint shaderType, const std::string& source) {
GLuint shader;
GLint params;
const char* src;
char* tmp;
std::cout ... | 29.892 | 107 | 0.620099 | [
"render"
] |
236c7987cf9af14cb2b7397f7416d6a09762d497 | 489 | cpp | C++ | src/lambda/main.cpp | eastmoon/tutorial-c-boost | 06530df17ea1fafce54c820a50f9d092fbd3ec90 | [
"BSL-1.0"
] | null | null | null | src/lambda/main.cpp | eastmoon/tutorial-c-boost | 06530df17ea1fafce54c820a50f9d092fbd3ec90 | [
"BSL-1.0"
] | null | null | null | src/lambda/main.cpp | eastmoon/tutorial-c-boost | 06530df17ea1fafce54c820a50f9d092fbd3ec90 | [
"BSL-1.0"
] | null | null | null | #include <boost/lambda/lambda.hpp>
#include <iostream>
#include <iterator>
#include <algorithm>
using namespace boost::lambda;
int main()
{
// Create vector by array
// arr[number] = arr + number
// sizeof(arr) / sizeof(int) equal array length
int arr[] = {1,2,3};
std::vector<int> v (arr, arr + si... | 25.736842 | 63 | 0.607362 | [
"vector"
] |
236c96a22f16ba3a944284cad3e7ce1b0cabb051 | 7,798 | cpp | C++ | DOS_Boat_Source/RequireSpace.cpp | michaelslewis/DOS_Boat | 1c25f352d75555fa81bbd0f99c89aaed43739646 | [
"MIT"
] | null | null | null | DOS_Boat_Source/RequireSpace.cpp | michaelslewis/DOS_Boat | 1c25f352d75555fa81bbd0f99c89aaed43739646 | [
"MIT"
] | null | null | null | DOS_Boat_Source/RequireSpace.cpp | michaelslewis/DOS_Boat | 1c25f352d75555fa81bbd0f99c89aaed43739646 | [
"MIT"
] | null | null | null | /****************************************************************************
* Author: Michael S. Lewis *
* Date: 6/3/2016 *
* Description: RequireSpace.cpp is the RequireSpace class function *
* implementation file (for Final Project "DOS Boat"). *
* A Require S... | 34.504425 | 103 | 0.522185 | [
"object"
] |
23775ec25c8562aadf05f381d7828284891ecc04 | 28,545 | cpp | C++ | legacy/Plan v0.2.6.0 build 25 All/Plan/ToolbarEx.cpp | NN---/Plan | 47acb24c69d39de9e53396bc9eb3a4e6eeca6cca | [
"MIT"
] | null | null | null | legacy/Plan v0.2.6.0 build 25 All/Plan/ToolbarEx.cpp | NN---/Plan | 47acb24c69d39de9e53396bc9eb3a4e6eeca6cca | [
"MIT"
] | null | null | null | legacy/Plan v0.2.6.0 build 25 All/Plan/ToolbarEx.cpp | NN---/Plan | 47acb24c69d39de9e53396bc9eb3a4e6eeca6cca | [
"MIT"
] | null | null | null | // ToolBarEx.cpp : implementation file
//
#include "stdafx.h"
#include "ToolBarEx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CToolBarEx
int CToolBarEx::m_nBarNumber = 0;
// for... | 24.272959 | 127 | 0.662358 | [
"object"
] |
2378c5fe028a8195ac29dcd796d8c7a91fea3087 | 2,043 | hpp | C++ | Applications/DaftEngineApp/src/Widgets/SettingWidgets/TransformSettings.hpp | DaftMat/Daft-Engine | e3d918b4b876d17abd889b9b6b13bd858a079538 | [
"MIT"
] | 1 | 2020-10-26T02:36:58.000Z | 2020-10-26T02:36:58.000Z | Applications/DaftEngineApp/src/Widgets/SettingWidgets/TransformSettings.hpp | DaftMat/Daft-Engine | e3d918b4b876d17abd889b9b6b13bd858a079538 | [
"MIT"
] | 6 | 2020-02-14T21:45:52.000Z | 2020-09-23T17:58:58.000Z | Applications/DaftEngineApp/src/Widgets/SettingWidgets/TransformSettings.hpp | DaftMat/Daft-Engine | e3d918b4b876d17abd889b9b6b13bd858a079538 | [
"MIT"
] | null | null | null | //
// Created by mathis on 12/07/2020.
//
#pragma once
#include <API.hpp>
#include <Core/Materials/SettingManager.hpp>
#include <Core/OpenGL.hpp>
#include <QtWidgets/QDoubleSpinBox>
#include <QtWidgets/QLabel>
#include <QtWidgets/QWidget>
#include <array>
#include <memory>
namespace daft::app {
/**
* A class to edit ... | 29.185714 | 113 | 0.688693 | [
"object"
] |
237b17d92e9f6879e0e5a08e29a1f42bf1435601 | 35,802 | cpp | C++ | src/CX_SlideBuffer.cpp | hardmanko/ofxCX | 0d1276e4ba8c25a0803da7b03088da24d8871f38 | [
"MIT"
] | 7 | 2015-02-19T21:21:34.000Z | 2022-03-18T13:38:20.000Z | src/CX_SlideBuffer.cpp | hardmanko/ofxCX | 0d1276e4ba8c25a0803da7b03088da24d8871f38 | [
"MIT"
] | null | null | null | src/CX_SlideBuffer.cpp | hardmanko/ofxCX | 0d1276e4ba8c25a0803da7b03088da24d8871f38 | [
"MIT"
] | 4 | 2018-02-16T12:56:13.000Z | 2022-03-23T01:27:33.000Z | #include "CX_SlideBuffer.h"
#include "CX_Logger.h"
#include "CX_Private.h"
namespace CX {
///////////////////////////
// CX_SlideBuffer::Slide //
///////////////////////////
void CX_SlideBuffer::Slide::renderSlide(CX_Display* disp) {
if (_status >= PresentationStatus::RenderStarted) {
//warn that slide was re-r... | 30.917098 | 186 | 0.739372 | [
"render",
"vector"
] |
238c735aa8ea4d42f1e8b7ebcb4324075c69a2d6 | 16,733 | cc | C++ | icl/filesystem_utils.cc | viettrungluu-cr/icl | 906eb067dee0084eee868d6f9d60f2eea393da4f | [
"BSD-3-Clause"
] | null | null | null | icl/filesystem_utils.cc | viettrungluu-cr/icl | 906eb067dee0084eee868d6f9d60f2eea393da4f | [
"BSD-3-Clause"
] | null | null | null | icl/filesystem_utils.cc | viettrungluu-cr/icl | 906eb067dee0084eee868d6f9d60f2eea393da4f | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013 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 "icl/filesystem_utils.h"
#include <assert.h>
//FIXME
//#include "base/files/file_util.h"
//#include "base/logging.h"
//#include "base/strin... | 32.874263 | 80 | 0.61053 | [
"vector"
] |
2399878e5dbaae398bb435819bb148908bab5b46 | 1,766 | cpp | C++ | Sliding window/Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold.cpp | HectorTa1989/LeetCode-Cpp | 506c92d5b0f3084e6a5099b99a3cffdd327211d9 | [
"MIT"
] | null | null | null | Sliding window/Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold.cpp | HectorTa1989/LeetCode-Cpp | 506c92d5b0f3084e6a5099b99a3cffdd327211d9 | [
"MIT"
] | null | null | null | Sliding window/Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold.cpp | HectorTa1989/LeetCode-Cpp | 506c92d5b0f3084e6a5099b99a3cffdd327211d9 | [
"MIT"
] | null | null | null | /*Given an array of integers arr and two integers k and threshold.
Return the number of sub-arrays of size k and average greater than or equal to threshold.
Example 1:
Input: arr = [2,2,2,2,5,5,5,8], k = 3, threshold = 4
Output: 3
Explanation: Sub-arrays [2,5,5],[5,5,5] and [5,5,8] have averages 4, 5 and 6 respectivel... | 26.757576 | 141 | 0.547565 | [
"vector"
] |
239b5876cd1078afb59a7c9b3fe7f239236b48f4 | 1,179 | cpp | C++ | gui/widgets/checkbox.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | 6 | 2021-11-12T15:03:53.000Z | 2022-01-28T18:30:33.000Z | gui/widgets/checkbox.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | gui/widgets/checkbox.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | // ObjectTalk Scripting Language
// Copyright (c) 1993-2022 Johan A. Goossens. All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
//
// Include files
//
#include "ot/function.h"
#include "ot/vm.h"
#include "checkbox.h"
//
... | 17.863636 | 84 | 0.695505 | [
"render"
] |
239b941af81b51c857ef167504dd685d375d475a | 17,122 | cpp | C++ | src/apGLTextureMiplevelData.cpp | GPUOpen-Tools/common-src-AMDTAPIClasses | 33c696c3b9d17d621675645bfa1437d67dc27d0b | [
"MIT"
] | 1 | 2017-01-28T14:12:29.000Z | 2017-01-28T14:12:29.000Z | src/apGLTextureMiplevelData.cpp | GPUOpen-Tools/common-src-AMDTAPIClasses | 33c696c3b9d17d621675645bfa1437d67dc27d0b | [
"MIT"
] | null | null | null | src/apGLTextureMiplevelData.cpp | GPUOpen-Tools/common-src-AMDTAPIClasses | 33c696c3b9d17d621675645bfa1437d67dc27d0b | [
"MIT"
] | 2 | 2016-09-21T12:28:23.000Z | 2019-11-01T23:07:02.000Z | //==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file apGLTextureMiplevelData.cpp
///
//============================================================================... | 34.10757 | 132 | 0.556127 | [
"object"
] |
239d0fe6dcffbe681a3967f4ec9d521e2bc5a250 | 19,028 | cpp | C++ | moos-ivp/ivp/src/lib_ivpbuild/OF_Reflector.cpp | EasternEdgeRobotics/2018 | 24df2fe56fa6d172ba3c34c1a97f249dbd796787 | [
"MIT"
] | null | null | null | moos-ivp/ivp/src/lib_ivpbuild/OF_Reflector.cpp | EasternEdgeRobotics/2018 | 24df2fe56fa6d172ba3c34c1a97f249dbd796787 | [
"MIT"
] | null | null | null | moos-ivp/ivp/src/lib_ivpbuild/OF_Reflector.cpp | EasternEdgeRobotics/2018 | 24df2fe56fa6d172ba3c34c1a97f249dbd796787 | [
"MIT"
] | null | null | null | /*****************************************************************/
/* NAME: Michael Benjamin */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: OF_Reflector.cpp */
/* DATE: Aug 29th 2005 (derived from OFR_AOF ... | 30.690323 | 78 | 0.589605 | [
"vector"
] |
239d7f194ffafb6dbd3d5c298e6bd2f4540bf6eb | 40,675 | cpp | C++ | B2G/gecko/netwerk/streamconv/converters/nsIndexedToHTML.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/netwerk/streamconv/converters/nsIndexedToHTML.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/netwerk/streamconv/converters/nsIndexedToHTML.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsIndexedToHTML.h"
#incl... | 40.272277 | 148 | 0.537824 | [
"object",
"3d"
] |
23ae64ec97c6cf6da41a849367db0ae20087be04 | 14,921 | hh | C++ | src/libtrio/related_sample_util.hh | StephenTanner/gvcftools | 5702a67fe5e744065b5462760b6c0bba38d8d9ea | [
"BSL-1.0"
] | 26 | 2015-11-30T18:53:11.000Z | 2021-11-12T07:48:37.000Z | src/libtrio/related_sample_util.hh | StephenTanner/gvcftools | 5702a67fe5e744065b5462760b6c0bba38d8d9ea | [
"BSL-1.0"
] | 5 | 2015-08-06T18:32:55.000Z | 2020-03-08T18:13:22.000Z | src/libtrio/related_sample_util.hh | ctsa/gvcftools | 7e854392c94c63410a846d29a97b95a6f1435576 | [
"BSL-1.0"
] | 8 | 2015-07-20T09:53:07.000Z | 2018-06-10T09:55:31.000Z | // -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Copyright (c) 2009-2012 Illumina, Inc.
//
// 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 limit... | 25.289831 | 116 | 0.597011 | [
"vector"
] |
23bbd157eef3eaf84f9f20acf2bd4eeaad13726a | 1,421 | cpp | C++ | codeforces/B - Curiosity Has No Limits/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/B - Curiosity Has No Limits/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/B - Curiosity Has No Limits/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Oct/21/2018 14:35
* solution_verdict: Accepted language: GNU C++14
* run... | 26.811321 | 111 | 0.416608 | [
"vector"
] |
23ccbc8e2e88bb3d5a4398e1ff7798f4bc5342cd | 17,255 | cpp | C++ | src/GRASP-TSPTW/src/metaheuristic/model/solution.cpp | mesax1/Eafit-UdeA-Amazon-Last-Mile-Routing-Challenge | 51c4f1cf14529eee558395c4cf90c4685f786fbe | [
"Apache-2.0"
] | 2 | 2021-08-19T06:28:57.000Z | 2021-12-31T15:06:23.000Z | src/GRASP-TSPTW/src/metaheuristic/model/solution.cpp | mesax1/Eafit-UdeA-Amazon-Last-Mile-Routing-Challenge | 51c4f1cf14529eee558395c4cf90c4685f786fbe | [
"Apache-2.0"
] | null | null | null | src/GRASP-TSPTW/src/metaheuristic/model/solution.cpp | mesax1/Eafit-UdeA-Amazon-Last-Mile-Routing-Challenge | 51c4f1cf14529eee558395c4cf90c4685f786fbe | [
"Apache-2.0"
] | null | null | null | #include "./solution.h"
#include <boost/format.hpp>
#include <cmath>
#include <iostream>
#include <iterator>
#include <limits>
#include <sstream>
#include <set>
#include <unordered_map>
using namespace std;
//TSP INSTANCES
TSPVehicle::TSPVehicle(const TSPVehicle& other_vehicle)
:Q(other_vehicle.Q)
,... | 32.072491 | 144 | 0.602086 | [
"object",
"vector"
] |
23d32b16caa86cf5ce208cb188a4f49de1d4b57f | 563 | cpp | C++ | nowcoder/22065/K.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | nowcoder/22065/K.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | nowcoder/22065/K.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
char fuck[20];
vector<int> pos, neg;
int main() {
int n;
scanf("%d", &n);
for (int i = 1, x; i <= n; ++ i) {
scanf("%s%d", fuck, &x);
if (fuck[0] == '+') pos.push_back(x);
else neg.push_back(x);
}
sort(pos.begin(), pos.end());
sort(neg.begin(), ... | 20.107143 | 61 | 0.502664 | [
"vector"
] |
23d7b3f7530e8a8dda4b560bdd7536ccdd0b3920 | 9,963 | cpp | C++ | SOURCE_FILES_SECONDARY/Source/MainComponent.cpp | tobemo/SPAI_project_2019_group1 | 8ab8d841b984ff7bd5ab344601e0ed567bb93ef9 | [
"MIT"
] | null | null | null | SOURCE_FILES_SECONDARY/Source/MainComponent.cpp | tobemo/SPAI_project_2019_group1 | 8ab8d841b984ff7bd5ab344601e0ed567bb93ef9 | [
"MIT"
] | null | null | null | SOURCE_FILES_SECONDARY/Source/MainComponent.cpp | tobemo/SPAI_project_2019_group1 | 8ab8d841b984ff7bd5ab344601e0ed567bb93ef9 | [
"MIT"
] | null | null | null | /*
==============================================================================
This file was auto-generated!
==============================================================================
*/
#include "MainComponent.h"
//===========================================================================... | 40.831967 | 136 | 0.576935 | [
"vector",
"solid"
] |
23da04474921c6d602d63e55ea0d5b8cfd2868d7 | 43,464 | hpp | C++ | linq/include/linq/enumerable.hpp | FelixCpp/linq | c8612d6a02b31b10844ac2dcd1b15e72e0657cd4 | [
"MIT"
] | null | null | null | linq/include/linq/enumerable.hpp | FelixCpp/linq | c8612d6a02b31b10844ac2dcd1b15e72e0657cd4 | [
"MIT"
] | null | null | null | linq/include/linq/enumerable.hpp | FelixCpp/linq | c8612d6a02b31b10844ac2dcd1b15e72e0657cd4 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <linq/ranges/iterator_range.hpp>
#include <linq/ranges/repeat_range.hpp>
#include <linq/ranges/empty_range.hpp>
#include <linq/ranges/increment_range.hpp>
#include <linq/ranges/except_range.hpp>
#i... | 28.765056 | 205 | 0.695334 | [
"object",
"vector",
"transform"
] |
23dca76df99f72cb5c4dad2d9031c67a0a12b833 | 1,275 | cpp | C++ | source/containers/vector.cpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 44 | 2020-10-03T21:37:52.000Z | 2022-03-26T10:08:46.000Z | source/containers/vector.cpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 1 | 2021-01-01T23:22:39.000Z | 2021-01-01T23:22:39.000Z | source/containers/vector.cpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | null | null | null | // Copyright David Stone 2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <containers/vector.hpp>
#include "test_append_from_capacity.hpp"
#include "test_sequence_container.hpp"
#include "test_res... | 39.84375 | 128 | 0.8 | [
"vector"
] |
23e62ba24534ea23e7d498d999f84c9d9ab2c0e7 | 15,102 | cpp | C++ | SimpleEditor/Source/SimpleEditor/PluginsManager.cpp | PetrKudr/simpleeditor | 04d73aeee6c8293ae52c8279acb88635aa12df3b | [
"MIT"
] | null | null | null | SimpleEditor/Source/SimpleEditor/PluginsManager.cpp | PetrKudr/simpleeditor | 04d73aeee6c8293ae52c8279acb88635aa12df3b | [
"MIT"
] | null | null | null | SimpleEditor/Source/SimpleEditor/PluginsManager.cpp | PetrKudr/simpleeditor | 04d73aeee6c8293ae52c8279acb88635aa12df3b | [
"MIT"
] | null | null | null | #include "PluginsManager.hpp"
#include "PluginUtils.hpp"
#include "resources\res.hpp"
#include "notepad.hpp"
#include "base/variables.h"
#include <sstream>
#include <list>
#include <algorithm>
#include <cwchar>
using namespace std;
/*
******************************************************************... | 29.324272 | 163 | 0.668852 | [
"vector"
] |
23e8a50d69e93c10aa11fc889ddc765059102220 | 1,706 | cpp | C++ | Solutions/codechef/TOTR.cpp | eashwaranRaghu/Data-Structures-and-Algorithms | 3aad0f1da3d95b572fbb1950c770198bd042a80f | [
"MIT"
] | 6 | 2020-01-29T14:05:56.000Z | 2021-04-24T04:37:27.000Z | Solutions/codechef/TOTR.cpp | eashwaranRaghu/Data-Structures-and-Algorithms | 3aad0f1da3d95b572fbb1950c770198bd042a80f | [
"MIT"
] | null | null | null | Solutions/codechef/TOTR.cpp | eashwaranRaghu/Data-Structures-and-Algorithms | 3aad0f1da3d95b572fbb1950c770198bd042a80f | [
"MIT"
] | 1 | 2020-05-22T06:37:20.000Z | 2020-05-22T06:37:20.000Z | // Created on 26-06-2019 00:56:53 by necronomicon
#include <bits/stdc++.h>
using namespace std;
#define MP make_pair
#define PB push_back
#define ARR_MAX (int)1e5 //Max array length
#define INF (int)1e9 //10^9
#define EPS 1e-9 //10^-9
#define MOD 1000000007 //10^9+7
#define PI 3.14159265358979323846264338327... | 27.516129 | 91 | 0.5551 | [
"vector"
] |
23eb22b1cd32ab2af0643fdb2806e6e2ae3c1b23 | 723 | cc | C++ | Daily_Problem/2012/Middle/201214_Group_Anagrams/method2/solution.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | 1 | 2020-02-07T12:25:56.000Z | 2020-02-07T12:25:56.000Z | Daily_Problem/2012/Middle/201214_Group_Anagrams/method2/solution.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | null | null | null | Daily_Problem/2012/Middle/201214_Group_Anagrams/method2/solution.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <string>
#include <unordered_map>
#include <vector>
using std::string;
using std::unordered_map;
using std::vector;
class Solution {
public:
vector<vector<string>> groupAnagrams(vector<string>& strs) {
unordered_map<string, vector<string>> sets;
for (auto str : str... | 22.59375 | 64 | 0.580913 | [
"vector"
] |
671f1acf5c9da52115046435865df4c0a9fb687b | 2,382 | cpp | C++ | PA/Laborator/2020-2021/lab02 - Greedy/skel/cpp/task-3/main.cpp | mihai-constantin/ACS | 098c99d82dad8fb5d0e909da930c72f1185a99e2 | [
"Apache-2.0"
] | null | null | null | PA/Laborator/2020-2021/lab02 - Greedy/skel/cpp/task-3/main.cpp | mihai-constantin/ACS | 098c99d82dad8fb5d0e909da930c72f1185a99e2 | [
"Apache-2.0"
] | null | null | null | PA/Laborator/2020-2021/lab02 - Greedy/skel/cpp/task-3/main.cpp | mihai-constantin/ACS | 098c99d82dad8fb5d0e909da930c72f1185a99e2 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
using namespace std;
struct Homework {
int deadline;
int score;
Homework(int _deadline, int _score) : deadline(_deadline), score(_score) {}
};
class Task {
public:
void solve() {
read_input();
print_output(... | 24.8125 | 79 | 0.489505 | [
"object",
"vector"
] |
6721512f9f11abf5fd2d836ae83bbf83a37fd2d1 | 1,100 | cc | C++ | ui/base/linux/linux_desktop.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | ui/base/linux/linux_desktop.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | ui/base/linux/linux_desktop.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 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/base/linux/linux_desktop.h"
#include <vector>
#include "base/environment.h"
#include "base/nix/xdg_util.h"
#include "base/strings/string_pi... | 30.555556 | 80 | 0.723636 | [
"vector"
] |
6728b7fe356a38d765018d57e502392cee13bdd1 | 92,433 | cc | C++ | src/hugectr.cc | miguelusque/hugectr_backend | 277fb1acd78a8268f642437dd3cc49e485a8d20b | [
"BSD-3-Clause"
] | null | null | null | src/hugectr.cc | miguelusque/hugectr_backend | 277fb1acd78a8268f642437dd3cc49e485a8d20b | [
"BSD-3-Clause"
] | null | null | null | src/hugectr.cc | miguelusque/hugectr_backend | 277fb1acd78a8268f642437dd3cc49e485a8d20b | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2021, NVIDIA CORPORATION. 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 condi... | 37.271371 | 80 | 0.689169 | [
"object",
"shape",
"vector",
"model"
] |
672a610f93d466178b0d570deaf39eb69ecddaa9 | 4,000 | cpp | C++ | src/Microsoft.DotNet.Wpf/src/WpfGfx/common/shared/rgnutils.cpp | txlos/wpf | 4004b4e8c8d5c0d5e9de0f1be1fd929c3dee6fa1 | [
"MIT"
] | 5,937 | 2018-12-04T16:32:50.000Z | 2022-03-31T09:48:37.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/common/shared/rgnutils.cpp | txlos/wpf | 4004b4e8c8d5c0d5e9de0f1be1fd929c3dee6fa1 | [
"MIT"
] | 4,151 | 2018-12-04T16:38:19.000Z | 2022-03-31T18:41:14.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/common/shared/rgnutils.cpp | txlos/wpf | 4004b4e8c8d5c0d5e9de0f1be1fd929c3dee6fa1 | [
"MIT"
] | 1,084 | 2018-12-04T16:24:21.000Z | 2022-03-30T13:52:03.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//---------------------------------------------------------------------------------
//
//
// Module Name:
//
// ... | 24.84472 | 93 | 0.548 | [
"object"
] |
6734a1dca6c66b08da6ca074bd3dde98d9e5c3d3 | 1,262 | cpp | C++ | src/Texture.cpp | juliosueiras/astriod | 40b7d1b0ee4604bf85fa8795b4a5b65d032a9e55 | [
"MIT"
] | null | null | null | src/Texture.cpp | juliosueiras/astriod | 40b7d1b0ee4604bf85fa8795b4a5b65d032a9e55 | [
"MIT"
] | 7 | 2016-04-19T19:44:19.000Z | 2016-04-25T02:56:24.000Z | src/Texture.cpp | juliosueiras/asteroid | 40b7d1b0ee4604bf85fa8795b4a5b65d032a9e55 | [
"MIT"
] | null | null | null | #include <iostream>
#include <SDL_image.h>
#include "Texture.h"
Texture::Texture(SDL_Texture* tex, int width, int height)
: mSDLTex(tex)
, mWidth(width)
, mHeight(height)
{ }
Texture::~Texture()
{
if (mSDLTex) {
SDL_DestroyTexture(mSDLTex);
}
}
Texture* Texture::Load(const std::string... | 22.140351 | 85 | 0.616482 | [
"object"
] |
673d9d6d46449b8c7a514377e34b597f5eeab8de | 5,060 | hpp | C++ | third-party/casadi/casadi/solvers/linear_interpolant.hpp | dbdxnuliba/mit-biomimetics_Cheetah | f3b0c0f6a3835d33b7f2f345f00640b3fc256388 | [
"MIT"
] | 8 | 2020-02-18T09:07:48.000Z | 2021-12-25T05:40:02.000Z | third-party/casadi/casadi/solvers/linear_interpolant.hpp | geekfeiw/Cheetah-Software | f3b0c0f6a3835d33b7f2f345f00640b3fc256388 | [
"MIT"
] | null | null | null | third-party/casadi/casadi/solvers/linear_interpolant.hpp | geekfeiw/Cheetah-Software | f3b0c0f6a3835d33b7f2f345f00640b3fc256388 | [
"MIT"
] | 13 | 2019-08-25T12:32:06.000Z | 2022-03-31T02:38:12.000Z | /*
* This file is part of CasADi.
*
* CasADi -- A symbolic framework for dynamic optimization.
* Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl,
* K.U. Leuven. All rights reserved.
* Copyright (C) 2011-2014 Greg Horn
*
* CasADi is free software; you ... | 34.189189 | 100 | 0.631818 | [
"vector"
] |
674a8b096c76c82cd2b0d572a47b320744ea7381 | 4,611 | cpp | C++ | user/drivers/filesystem/src/fs/test/SectorTest.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | 4 | 2021-06-22T20:52:30.000Z | 2022-02-04T00:19:44.000Z | user/drivers/filesystem/src/fs/test/SectorTest.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | null | null | null | user/drivers/filesystem/src/fs/test/SectorTest.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | null | null | null | #include "SectorTest.h"
#include "Log.h"
#include "fs/Filesystem.h"
#include <algorithm>
#include <cstddef>
#include <cstdint>
/**
* Checks if we can attach to the given partition. We'll verify if the GUID is one that matches and
* if so create the filesystem object.
*/
bool SectorTestFs::TryStart(const PartitionT... | 32.935714 | 111 | 0.607027 | [
"object",
"vector"
] |
67544c34e911208660996d92aeb3c44f12f9478d | 16,288 | cpp | C++ | Source/AllProjects/CQLogicSrv/Shared/CQLogicSh_ElapsedTmFld.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/CQLogicSrv/Shared/CQLogicSh_ElapsedTmFld.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/CQLogicSrv/Shared/CQLogicSh_ElapsedTmFld.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: CQLogicSh_ElapsedTmFld.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 04/14/2013
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://op... | 29.294964 | 87 | 0.555071 | [
"object"
] |
6759892ad8c85c4566e0354035db298944747def | 10,768 | cpp | C++ | src/particle_filter.cpp | mo7mmed77/Kidnapped_Vehicle_project | 7fd10e062e3e0734eed0672f0abbcd4d18af6a48 | [
"MIT"
] | null | null | null | src/particle_filter.cpp | mo7mmed77/Kidnapped_Vehicle_project | 7fd10e062e3e0734eed0672f0abbcd4d18af6a48 | [
"MIT"
] | null | null | null | src/particle_filter.cpp | mo7mmed77/Kidnapped_Vehicle_project | 7fd10e062e3e0734eed0672f0abbcd4d18af6a48 | [
"MIT"
] | null | null | null | /**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: Tiffany Huang
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using std::string;... | 33.234568 | 147 | 0.669484 | [
"vector",
"transform"
] |
675d7d84817da2aa4f19ad6e64212aa7f367576a | 6,999 | cpp | C++ | src/Vector.cpp | GiudGiud/OpenMOC | 83623ebe64b558d45fa021132f812d425774673f | [
"MIT"
] | null | null | null | src/Vector.cpp | GiudGiud/OpenMOC | 83623ebe64b558d45fa021132f812d425774673f | [
"MIT"
] | 1 | 2018-06-26T19:51:58.000Z | 2018-06-26T19:51:58.000Z | src/Vector.cpp | GiudGiud/OpenMOC | 83623ebe64b558d45fa021132f812d425774673f | [
"MIT"
] | null | null | null | #include "Vector.h"
/**
* @brief Constructor initializes Vector object as a floating point array
* and sets the vector dimensions.
* @detail The vector is ordered by cell (as opposed to by group) on the
* outside to be consistent with the Matrix object. Locks are used to
* make the vector o... | 26.018587 | 78 | 0.664809 | [
"object",
"vector"
] |
67658789608f223cb6fd77a82d3036df1bda31e4 | 566 | cpp | C++ | 20191214_1stAlgorithmTest/d.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | 20191214_1stAlgorithmTest/d.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | 20191214_1stAlgorithmTest/d.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main()
{
int n;
cin >> n;
vector<int> a(n+1,0);
bool flag = false;
// データ取得
for(int i=0;i<n;i++){
int buf;
cin >> buf;
a[buf]+=1;
// 重複検出
if(a[buf]==2){
cout << buf << " ";
... | 14.894737 | 42 | 0.378092 | [
"vector"
] |
6767ca654ecb7a40b3b328efe7281f0f0ff68e1f | 2,095 | cc | C++ | src/main.cc | b4shfire/stegcrack | 0f6015c9a5cf16877dab544818d6a2cd6c36c7dd | [
"BSD-3-Clause"
] | 6 | 2021-02-16T09:03:30.000Z | 2021-09-05T16:09:53.000Z | src/main.cc | b4shfire/stegcrack | 0f6015c9a5cf16877dab544818d6a2cd6c36c7dd | [
"BSD-3-Clause"
] | null | null | null | src/main.cc | b4shfire/stegcrack | 0f6015c9a5cf16877dab544818d6a2cd6c36c7dd | [
"BSD-3-Clause"
] | 2 | 2021-10-02T18:22:47.000Z | 2021-10-05T00:59:48.000Z | // © 2021 Lorian Richmond
#include "ui.hh"
#include "utils.hh"
#include "ExtractedData.hh"
#include "file_handling.hh"
#include <math.h>
#include <fstream>
#include <iostream>
using namespace std;
void display_usage(string run_path){
cout << "Usage: " << run_path << " <filepath> <number of threads> (default: 4)... | 23.021978 | 144 | 0.606205 | [
"vector"
] |
6769b3dc95924af5cf160c61bf96fdf8d595aba2 | 18,010 | cpp | C++ | src/radiant/watchbsp.cpp | osen/openradiant | 47f0b65006e3e3325003f65cddbc7f1c78b5f138 | [
"BSD-3-Clause"
] | 11 | 2021-01-04T16:27:48.000Z | 2022-01-22T00:37:31.000Z | src/radiant/watchbsp.cpp | osen/openradiant | 47f0b65006e3e3325003f65cddbc7f1c78b5f138 | [
"BSD-3-Clause"
] | 6 | 2021-01-05T04:47:45.000Z | 2021-11-30T09:25:11.000Z | src/radiant/watchbsp.cpp | osen/openradiant | 47f0b65006e3e3325003f65cddbc7f1c78b5f138 | [
"BSD-3-Clause"
] | 1 | 2021-04-01T20:57:22.000Z | 2021-04-01T20:57:22.000Z | /*
Copyright (c) 2001, Loki software, inc.
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 condition... | 29.966722 | 260 | 0.660355 | [
"object"
] |
676f7b148d19e8ec0ab44b29e2c308037f6854a6 | 6,289 | cc | C++ | mindspore/ccsrc/plugin/device/ascend/optimizer/ir_fission/adam_weight_decay_fission.cc | httpsgithu/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | 1 | 2022-02-23T09:13:43.000Z | 2022-02-23T09:13:43.000Z | mindspore/ccsrc/plugin/device/ascend/optimizer/ir_fission/adam_weight_decay_fission.cc | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/plugin/device/ascend/optimizer/ir_fission/adam_weight_decay_fission.cc | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 45.572464 | 114 | 0.730482 | [
"vector"
] |
6770379fe108f46c45d0990da37adf82b3257739 | 1,795 | cpp | C++ | src/abnf/Terminal_StringValue.cpp | medooze/sdp- | 4bf23de4cf6ade65fedb68a8c8a5baf4bd6a3e6d | [
"MIT"
] | 32 | 2018-01-01T17:01:19.000Z | 2022-02-25T10:30:47.000Z | src/abnf/Terminal_StringValue.cpp | medooze/sdp- | 4bf23de4cf6ade65fedb68a8c8a5baf4bd6a3e6d | [
"MIT"
] | 4 | 2018-01-08T16:13:05.000Z | 2021-01-25T11:47:44.000Z | src/abnf/Terminal_StringValue.cpp | medooze/sdp- | 4bf23de4cf6ade65fedb68a8c8a5baf4bd6a3e6d | [
"MIT"
] | 13 | 2018-09-30T05:59:24.000Z | 2022-02-24T08:58:36.000Z | /* -----------------------------------------------------------------------------
* Terminal_StringValue.cpp
* -----------------------------------------------------------------------------
*
* Producer : com.parse2.aparse.Parser 2.5
* Produced : Mon Jan 08 13:30:55 CET 2018
*
* ----------------------------... | 23.933333 | 81 | 0.499721 | [
"vector"
] |
67753145aafef144df2e46d74806d2d0a1ef3421 | 637 | hpp | C++ | include/ce2/asset/texture3.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | include/ce2/asset/texture3.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | include/ce2/asset/texture3.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "chokoengine.hpp"
CE_BEGIN_NAMESPACE
class _Texture3 : public _Asset { CE_OBJECT_COMMON
protected: //allow rendertarget access
_Texture3(std::nullptr_t);
GLuint _pointer;
uint _width, _height, _depth;
byte _channels;
GLenum _format;
public:
_Texture3(uint w, uint h, uint ... | 19.30303 | 64 | 0.723705 | [
"render"
] |
677b5ec6d30fe894b3cf266450b402166c55bdb0 | 27,573 | cpp | C++ | src/ContactPlanning.cpp | ShihaoWang/Online-Contact-Planning-for-Fall-Mitigation | ef63e67e92e369edbff9854f681e1c2329f2a6d3 | [
"MIT"
] | null | null | null | src/ContactPlanning.cpp | ShihaoWang/Online-Contact-Planning-for-Fall-Mitigation | ef63e67e92e369edbff9854f681e1c2329f2a6d3 | [
"MIT"
] | null | null | null | src/ContactPlanning.cpp | ShihaoWang/Online-Contact-Planning-for-Fall-Mitigation | ef63e67e92e369edbff9854f681e1c2329f2a6d3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <sstream>
#include "CommonHeader.h"
#include "NonlinearOptimizerInfo.h"
#include <ctime>
#include <algorithm>
#include <random>
#include <queue>
#include <math.h>
static bool ContactPairCMP(const pair<Vector3, double> & a, const pair<Vector3, double> & b)
{
return (a... | 39.446352 | 483 | 0.687049 | [
"vector",
"model"
] |
677bfe12aeec846ec7ee84396501d3f2095fc4a1 | 791 | cpp | C++ | zigzag-conversion.cpp | c650/leetcode | 3042d2d144575f3b2a43a2da95b33973b849a9d1 | [
"MIT"
] | 1 | 2020-06-21T17:31:04.000Z | 2020-06-21T17:31:04.000Z | zigzag-conversion.cpp | c650/leetcode | 3042d2d144575f3b2a43a2da95b33973b849a9d1 | [
"MIT"
] | null | null | null | zigzag-conversion.cpp | c650/leetcode | 3042d2d144575f3b2a43a2da95b33973b849a9d1 | [
"MIT"
] | 2 | 2020-07-17T16:01:10.000Z | 2020-10-31T05:40:28.000Z | class Solution {
public:
string convert(string s, int numRows) {
if (numRows == 1) {
return s;
}
std::vector<std::string> ret(numRows);
const int n = s.length();
bool down = true;
for (int i = 0, tr = 0; i < n; ++i) {
... | 22.6 | 46 | 0.323641 | [
"vector"
] |
678e13af077bd85147d8724592b66c262446e2b5 | 1,138 | cpp | C++ | test/either/match.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | test/either/match.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | test/either/match.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <fcppt/catch/begin.hpp>
#include <fcppt/catch/end.hpp>
#include <fcppt/either/match.hpp>
#... | 30.756757 | 98 | 0.689807 | [
"object"
] |
096b05a9af8729f2011a30243d1c06fbb13e8eae | 23,340 | cpp | C++ | matchmaking/match_searcher.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | cstrike15_src/matchmaking/match_searcher.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | cstrike15_src/matchmaking/match_searcher.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //===== Copyright � 1996-2009, Valve Corporation, All rights reserved. ======//
//
// Purpose:
//
//===========================================================================//
#include "mm_framework.h"
#include "vstdlib/random.h"
#include "fmtstr.h"
// memdbgon must be the last include file in a .cpp file!!!
#inc... | 29.358491 | 224 | 0.705955 | [
"object"
] |
097c3e51a17e5771430f9cd5ab9127f90121d5ee | 2,648 | cpp | C++ | tp3-codage-de-hamming/src/main.cpp | SinanDaroukh/code-theory | cb6b69c19c74c6f18ea16b24c5249bf247de1747 | [
"MIT"
] | null | null | null | tp3-codage-de-hamming/src/main.cpp | SinanDaroukh/code-theory | cb6b69c19c74c6f18ea16b24c5249bf247de1747 | [
"MIT"
] | null | null | null | tp3-codage-de-hamming/src/main.cpp | SinanDaroukh/code-theory | cb6b69c19c74c6f18ea16b24c5249bf247de1747 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include <bitset>
#include <vector>
/**
* Hamming (7,4)
**/
#define N 4
#define HAMMING_7 7
/**
* Debug macros
**/
#define DEBUG_RF true // Debug Information: Read File
#define DEBUG_HE true // Debug Information: Hamming Encoding
u... | 21.184 | 116 | 0.55929 | [
"vector"
] |
097e400721433f4513beb067ed76f571056b21ea | 56,164 | cpp | C++ | Source/AllProjects/Drivers/ZWave/ZWaveUSB3/Client/ZWaveUSB3C_Window.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/Drivers/ZWave/ZWaveUSB3/Client/ZWaveUSB3C_Window.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/Drivers/ZWave/ZWaveUSB3/Client/ZWaveUSB3C_Window.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: ZWaveUSB3C_Window.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 03/05/2018
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensou... | 33.213483 | 120 | 0.58801 | [
"object",
"model"
] |
0980796bee10745fda88ddad8861e78bc0546b2f | 4,693 | cpp | C++ | source/examples/ex09_stream.cpp | 3a2l/OpenGL-Examples | a7284a0fc596898188f53671dac36ae60da62408 | [
"MIT"
] | 24 | 2020-11-01T17:14:59.000Z | 2022-03-24T11:48:05.000Z | source/examples/ex09_stream.cpp | 3a2l/OpenGL-Examples | a7284a0fc596898188f53671dac36ae60da62408 | [
"MIT"
] | 1 | 2020-11-06T15:44:37.000Z | 2020-11-07T20:47:01.000Z | source/examples/ex09_stream.cpp | 3a2l/OpenGL-Examples | a7284a0fc596898188f53671dac36ae60da62408 | [
"MIT"
] | 4 | 2020-11-02T14:34:49.000Z | 2021-12-22T09:58:06.000Z | #include <application.hpp>
#include <shader.hpp>
#include <imgui-utils/utils.hpp>
#include <vector>
struct Vertex {
glm::vec3 position;
glm::vec<4, glm::uint8, glm::defaultp> color;
};
class ElementsApplication : public our::Application {
our::ShaderProgram program;
GLuint vertex_array = 0, vertex_... | 37.246032 | 113 | 0.644151 | [
"vector"
] |
099157da165bf0dace51a615af808b37eaece6e4 | 8,406 | cpp | C++ | bc/type.cpp | HansKristian-Work/DXIL2SPIRV | ea9ac33ae88c9efb0f864d473eb22c3c04d166a5 | [
"MIT"
] | 5 | 2019-11-07T13:14:56.000Z | 2019-12-09T20:01:47.000Z | bc/type.cpp | HansKristian-Work/DXIL2SPIRV | ea9ac33ae88c9efb0f864d473eb22c3c04d166a5 | [
"MIT"
] | null | null | null | bc/type.cpp | HansKristian-Work/DXIL2SPIRV | ea9ac33ae88c9efb0f864d473eb22c3c04d166a5 | [
"MIT"
] | null | null | null | /* Copyright (c) 2019-2022 Hans-Kristian Arntzen for Valve Corporation
*
* SPDX-License-Identifier: MIT
*
* 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
... | 23.35 | 101 | 0.719367 | [
"vector"
] |
09a3842c15a7d14f5a23446a57f96ac0b7fd5d2d | 796 | cpp | C++ | examples/main.cpp | mauzil/IntelHexParser | 94af820f29f02fcc70a539180480760543669a8f | [
"MIT"
] | 2 | 2018-05-16T04:44:08.000Z | 2021-04-28T11:49:32.000Z | examples/main.cpp | mauzil/IntelHexParser | 94af820f29f02fcc70a539180480760543669a8f | [
"MIT"
] | 1 | 2019-11-26T14:45:13.000Z | 2019-11-26T14:45:13.000Z | examples/main.cpp | mauzil/IntelHexParser | 94af820f29f02fcc70a539180480760543669a8f | [
"MIT"
] | 6 | 2016-01-07T17:00:23.000Z | 2020-10-03T07:02:10.000Z | #include "../include/IntelHexFile.h"
#include <iostream>
#include <assert.h>
using namespace std;
void usage(string name);
#define PAGE_SIZE 255
int main(int argc, char* argv[])
{
if(argc < 2)
{
usage(argv[0]);
return 1;
}
/*
* Parse file
*/
IntelHexFile file(argv[1]);
cout << "File: " << file << en... | 15.92 | 93 | 0.611809 | [
"vector"
] |
09a7d9fae1fac7c62e79863b0784d03e0947fce0 | 8,029 | cpp | C++ | Anomaly Engine/src/Anomaly/Rendering/Primatives/Shader.cpp | Smkautltl/Anomaly-Engine | 02dc713c611e1fb91674fb8bc93445e488e77b20 | [
"Apache-2.0"
] | null | null | null | Anomaly Engine/src/Anomaly/Rendering/Primatives/Shader.cpp | Smkautltl/Anomaly-Engine | 02dc713c611e1fb91674fb8bc93445e488e77b20 | [
"Apache-2.0"
] | null | null | null | Anomaly Engine/src/Anomaly/Rendering/Primatives/Shader.cpp | Smkautltl/Anomaly-Engine | 02dc713c611e1fb91674fb8bc93445e488e77b20 | [
"Apache-2.0"
] | null | null | null | #include "aepch.h"
#include "Shader.h"
#include <Anomaly/Rendering/stb_image.h>
#include <glad/glad.h>
namespace Anomaly
{
Shader::Shader(const char* VertexSrcFileName, const char* FragmentSrcFileName, const char* geometryPath)
{
ReadInShaders(VertexSrcFileName, FragmentSrcFileName, geometryPath);
// Create ... | 27.216949 | 124 | 0.686511 | [
"geometry",
"object",
"vector"
] |
09b693ce6357f74e788df5487ee903f96ed08459 | 147,209 | cpp | C++ | codec/h264_enc/src/umc_h264_deblocking.cpp | viticm/ipp-media | 1d942e8b04ce1e4e02787e2f451b2091061e1b4d | [
"MIT"
] | 1 | 2022-03-02T20:23:13.000Z | 2022-03-02T20:23:13.000Z | codec/h264_enc/src/umc_h264_deblocking.cpp | viticm/ipp-media | 1d942e8b04ce1e4e02787e2f451b2091061e1b4d | [
"MIT"
] | null | null | null | codec/h264_enc/src/umc_h264_deblocking.cpp | viticm/ipp-media | 1d942e8b04ce1e4e02787e2f451b2091061e1b4d | [
"MIT"
] | null | null | null | /*
//
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be copied
// or disclosed except in accordance with the terms of that agreement.
// Copyright (c) 2003-2012 In... | 43.245887 | 169 | 0.492035 | [
"vector",
"transform"
] |
09bc9b0a7df81c622acf764c2e0494381c9bdc21 | 10,605 | cpp | C++ | src/third_party/wiredtiger/test/cppsuite/tests/run.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/third_party/wiredtiger/test/cppsuite/tests/run.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/third_party/wiredtiger/test/cppsuite/tests/run.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /*-
* Public Domain 2014-present MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* bina... | 40.477099 | 100 | 0.60264 | [
"vector"
] |
09c17accc39b83310a22aa11a1ee3635e0021bf9 | 2,216 | hpp | C++ | Core/include/Function.hpp | bzcheeseman/Hobbit | a2427a3db8a9194883aa6e33bde65f6e7966b049 | [
"Apache-2.0"
] | 1 | 2018-04-22T01:01:00.000Z | 2018-04-22T01:01:00.000Z | Core/include/Function.hpp | bzcheeseman/Hobbit | a2427a3db8a9194883aa6e33bde65f6e7966b049 | [
"Apache-2.0"
] | 1 | 2018-04-04T16:43:17.000Z | 2018-04-13T01:39:57.000Z | Core/include/Function.hpp | bzcheeseman/Hobbit | a2427a3db8a9194883aa6e33bde65f6e7966b049 | [
"Apache-2.0"
] | 1 | 2019-11-06T15:01:13.000Z | 2019-11-06T15:01:13.000Z | //
// Created by Aman LaChapelle on 3/17/18.
//
// Hobbit
// Copyright (c) 2018 Aman LaChapelle
// Full license at Hobbit/LICENSE.txt
//
/*
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 a... | 24.086957 | 80 | 0.682762 | [
"vector"
] |
09cde8900b44c2b57a27adfa4b30c7506f61bea7 | 12,140 | hpp | C++ | cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_ppp_oper.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_ppp_oper.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_ppp_oper.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z | #ifndef _CISCO_IOS_XE_PPP_OPER_
#define _CISCO_IOS_XE_PPP_OPER_
#include <memory>
#include <vector>
#include <string>
#include <ydk/types.hpp>
#include <ydk/errors.hpp>
namespace cisco_ios_xe {
namespace Cisco_IOS_XE_ppp_oper {
class PppData : public ydk::Entity
{
public:
PppData();
~PppData();
... | 44.632353 | 162 | 0.675783 | [
"vector"
] |
09ce210e86c2b6f9ea4a75ec58f797395e1a51f2 | 1,967 | cpp | C++ | main.cpp | vicelikedust/Ingress_max_recharge_distance | d6bc6ea1ca7e914020b250ab7d923bcb1db47e68 | [
"MIT"
] | 1 | 2020-11-11T17:19:33.000Z | 2020-11-11T17:19:33.000Z | main.cpp | vicelikedust/Ingress_max_recharge_distance | d6bc6ea1ca7e914020b250ab7d923bcb1db47e68 | [
"MIT"
] | null | null | null | main.cpp | vicelikedust/Ingress_max_recharge_distance | d6bc6ea1ca7e914020b250ab7d923bcb1db47e68 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
int leveldist[] = {0,250,500,750,1000,1250,1500,1750,2000,2250,2500,2750,3000,3250,3500,3750,4000};
int get_level(){
int level;
cout << "What is your player level? (1-16) ";
cin >> level;
while(level == 0 || level >= 17){
... | 24.5875 | 123 | 0.52364 | [
"transform"
] |
09d05951349ebf62c52329c77e1ba6d461f85722 | 18,141 | cc | C++ | ggadget/qt/qt_canvas.cc | suzhe/google-gadgets-for-linux | b58baabd8458c8515c9902b8176151a08d240983 | [
"Apache-2.0"
] | 175 | 2015-01-01T12:40:33.000Z | 2019-05-24T22:33:59.000Z | ggadget/qt/qt_canvas.cc | suzhe/google-gadgets-for-linux | b58baabd8458c8515c9902b8176151a08d240983 | [
"Apache-2.0"
] | 11 | 2015-01-19T16:30:56.000Z | 2018-04-25T01:06:52.000Z | ggadget/qt/qt_canvas.cc | suzhe/google-gadgets-for-linux | b58baabd8458c8515c9902b8176151a08d240983 | [
"Apache-2.0"
] | 97 | 2015-01-19T15:35:29.000Z | 2019-05-15T05:48:02.000Z | /*
Copyright 2008 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 30.9046 | 80 | 0.614905 | [
"vector",
"model"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.