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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e39ed99ec6d9641c1a68046d7f514b7927a4c32 | 8,895 | cpp | C++ | MIDItoScore.cpp | Yamamoto0773/MIDItoScore | 93a87013ba993513b40db1121fa49cff00ddcdb5 | [
"MIT"
] | 5 | 2018-08-18T00:15:35.000Z | 2019-10-09T01:10:27.000Z | MIDItoScore.cpp | Yamamoto0773/MIDItoScore | 93a87013ba993513b40db1121fa49cff00ddcdb5 | [
"MIT"
] | 12 | 2019-08-06T07:11:19.000Z | 2019-10-11T07:17:34.000Z | MIDItoScore.cpp | Yamamoto0773/MIDItoScore | 93a87013ba993513b40db1121fa49cff00ddcdb5 | [
"MIT"
] | null | null | null | #include "MIDItoScore.hpp"
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <numeric>
namespace miditoscore {
MIDItoScore::MIDItoScore() {}
MIDItoScore::~MIDItoScore() {}
int MIDItoScore::writeScore(const std::string & fileName, const NoteFormat & format, const std::vector<midire... | 36.908714 | 139 | 0.49511 | [
"vector"
] |
2e3b57554cdfe651e15e414aded9aab0ed45d4d4 | 12,225 | cc | C++ | extensions/renderer/js_extension_bindings_system.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | extensions/renderer/js_extension_bindings_system.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | extensions/renderer/js_extension_bindings_system.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 "extensions/renderer/js_extension_bindings_system.h"
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
#include "base/strings/str... | 40.213816 | 80 | 0.697096 | [
"object",
"vector"
] |
2e3f165286f17abf632be22c86e5579ed85921ac | 14,784 | cpp | C++ | src/Simulation/EXIT/EXIT.cpp | WilliamMajor/aff3ct | 4e71ab99f33a040ec06336d3e1d50bd2c0d6a579 | [
"MIT"
] | 1 | 2022-02-17T08:47:47.000Z | 2022-02-17T08:47:47.000Z | src/Simulation/EXIT/EXIT.cpp | WilliamMajor/aff3ct | 4e71ab99f33a040ec06336d3e1d50bd2c0d6a579 | [
"MIT"
] | null | null | null | src/Simulation/EXIT/EXIT.cpp | WilliamMajor/aff3ct | 4e71ab99f33a040ec06336d3e1d50bd2c0d6a579 | [
"MIT"
] | 1 | 2021-11-24T01:54:41.000Z | 2021-11-24T01:54:41.000Z | #if !defined(AFF3CT_8BIT_PREC) && !defined(AFF3CT_16BIT_PREC)
#include <functional>
#include <algorithm>
#include <iostream>
#include <cstdint>
#include <sstream>
#include <chrono>
#include <limits>
#include <string>
#include <cmath>
#include "Tools/Exception/exception.hpp"
#include "Tools/Display/rang_format/rang_fo... | 34.704225 | 119 | 0.632238 | [
"vector"
] |
2e3f77f7c0e476fdffc3c665a918998d00fb2485 | 11,644 | cpp | C++ | src/atoms_md.cpp | 1mingfei/mapp4py | b72a90b4ab8984cf40d90944df60505e1a3f6a49 | [
"MIT"
] | null | null | null | src/atoms_md.cpp | 1mingfei/mapp4py | b72a90b4ab8984cf40d90944df60505e1a3f6a49 | [
"MIT"
] | null | null | null | src/atoms_md.cpp | 1mingfei/mapp4py | b72a90b4ab8984cf40d90944df60505e1a3f6a49 | [
"MIT"
] | null | null | null | #include "atoms_md.h"
#include "xmath.h"
/*--------------------------------------------
--------------------------------------------*/
AtomsMD::AtomsMD(MPI_Comm& world):
Atoms(world),
S_pe{DESIG2(__dim__,__dim__,NAN)},
pe(NAN)
{
elem=new Vec<elem_type>(this,1,"elem");
x_d=new Vec<type0>(this,__dim__,"x_d");
... | 27.462264 | 135 | 0.513913 | [
"object"
] |
2e41b314d601c76be0fe1619477bdbe644a4a26b | 22,029 | cc | C++ | modules/perception/obstacle/lidar/visualizer/opengl_visualizer/glfw_viewer.cc | BaiduXLab/apollo | 2764e934b6d0da1342be781447348288ac84c5e9 | [
"Apache-2.0"
] | 22 | 2018-10-10T14:46:32.000Z | 2022-02-28T12:43:43.000Z | modules/perception/obstacle/lidar/visualizer/opengl_visualizer/glfw_viewer.cc | BaiduXLab/apollo | 2764e934b6d0da1342be781447348288ac84c5e9 | [
"Apache-2.0"
] | 5 | 2020-06-13T00:36:33.000Z | 2022-02-10T17:50:43.000Z | modules/perception/obstacle/lidar/visualizer/opengl_visualizer/glfw_viewer.cc | BaiduXLab/apollo | 2764e934b6d0da1342be781447348288ac84c5e9 | [
"Apache-2.0"
] | 12 | 2018-12-24T02:17:19.000Z | 2021-12-06T01:54:09.000Z | /******************************************************************************
* Copyright 2017 The Apollo 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
... | 31.335704 | 89 | 0.637614 | [
"render",
"object",
"vector"
] |
2e4ee494f01f36ee710bdf063b28ed1f2f96c45a | 3,286 | hpp | C++ | Camera.hpp | blakeanedved/shade-engine | 75a9b30b569efd55374a25c23c07f4cbafa711a7 | [
"MIT"
] | 1 | 2019-08-18T19:17:23.000Z | 2019-08-18T19:17:23.000Z | Camera.hpp | blakeanedved/Vex3D | 75a9b30b569efd55374a25c23c07f4cbafa711a7 | [
"MIT"
] | null | null | null | Camera.hpp | blakeanedved/Vex3D | 75a9b30b569efd55374a25c23c07f4cbafa711a7 | [
"MIT"
] | null | null | null | #pragma once
#include "GameObject.hpp"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
namespace Vex {
class Camera : public GameObject {
private:
glm::mat4 model;
glm::mat4 view;
glm::mat4 projection;
glm::mat4 MVP;
float FoV;
float aspectRatio;
public:
Camera(std::string n... | 26.288 | 148 | 0.678332 | [
"model"
] |
2e5429b006ed402660b97e1108d0d5121ee8b232 | 2,692 | cpp | C++ | trview.app/Camera/FreeCamera.cpp | chreden/trview | e2a5e3539036f27adfa54fc7fcf4c3537b99a221 | [
"MIT"
] | 20 | 2018-10-17T02:00:03.000Z | 2022-03-24T09:37:20.000Z | trview.app/Camera/FreeCamera.cpp | chreden/trview | e2a5e3539036f27adfa54fc7fcf4c3537b99a221 | [
"MIT"
] | 396 | 2018-07-22T16:11:47.000Z | 2022-03-29T11:57:03.000Z | trview.app/Camera/FreeCamera.cpp | chreden/trview | e2a5e3539036f27adfa54fc7fcf4c3537b99a221 | [
"MIT"
] | 8 | 2018-07-25T21:31:06.000Z | 2021-11-01T14:36:26.000Z | #include "FreeCamera.h"
namespace trview
{
using namespace DirectX::SimpleMath;
FreeCamera::FreeCamera(const Size& size)
: Camera(size)
{
_rotation_yaw = 0.0f;
_rotation_pitch = 0.0f;
}
void FreeCamera::move(const Vector3& movement, float elapsed)
{
update_acce... | 28.946237 | 141 | 0.596582 | [
"transform"
] |
2e558eabc84905a350fd1d750356831fceab9f42 | 9,164 | cpp | C++ | src/diardi/diardi.cpp | ahmyi/Scala | c1dc14c62da5abb90948b708fe5b74c429764b7c | [
"MIT"
] | 35 | 2019-10-31T10:18:19.000Z | 2022-03-21T10:18:19.000Z | src/diardi/diardi.cpp | Cryptonoz/Scala | b98b44057f37ca59e4be01b05aa93d43c8bfcbe8 | [
"MIT"
] | 28 | 2019-10-07T16:51:53.000Z | 2021-12-20T03:35:50.000Z | src/diardi/diardi.cpp | Cryptonoz/Scala | b98b44057f37ca59e4be01b05aa93d43c8bfcbe8 | [
"MIT"
] | 18 | 2019-08-21T08:06:40.000Z | 2022-03-11T19:38:34.000Z | //Copyright (c) 2014-2019, The Monero Project
//
// All rights reserved.
//
// 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 lis... | 40.192982 | 192 | 0.544849 | [
"vector"
] |
2e5fa35990b25d2e29fc640146bb2fdbe43f6784 | 732 | cpp | C++ | third_party/WebKit/Source/modules/webgl/WebGLSharedPlatform3DObject.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/modules/webgl/WebGLSharedPlatform3DObject.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/modules/webgl/WebGLSharedPlatform3DObject.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 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 "modules/webgl/WebGLSharedPlatform3DObject.h"
#include "modules/webgl/WebGLRenderingContextBase.h"
namespace blink {
WebGLSharedPlatform3DObje... | 27.111111 | 73 | 0.759563 | [
"object"
] |
2e6484cdeed686b1730e1ce864aea2328d424961 | 8,375 | cpp | C++ | term3_project11_path_planning/src/main.cpp | SID-TWRI/self-driving-car | c9ab88576d9f2fff4c198978984159b1976416c9 | [
"MIT"
] | null | null | null | term3_project11_path_planning/src/main.cpp | SID-TWRI/self-driving-car | c9ab88576d9f2fff4c198978984159b1976416c9 | [
"MIT"
] | null | null | null | term3_project11_path_planning/src/main.cpp | SID-TWRI/self-driving-car | c9ab88576d9f2fff4c198978984159b1976416c9 | [
"MIT"
] | null | null | null | #include "vehicle.h"
#include "cost_functions.h"
#include "constants.h"
#include "helper.h"
#include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spli... | 35.638298 | 268 | 0.578269 | [
"object",
"vector"
] |
2e64af3882ae4fd8de8641b9814ecb654c0bf488 | 6,325 | cpp | C++ | hackathon/MK/DeepNeuron/tester.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | hackathon/MK/DeepNeuron/tester.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | hackathon/MK/DeepNeuron/tester.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <ctime>
#include "v3d_message.h"
#include "tester.h"
#include "classification.h"
#include "mean_shift_fun.h"
#include "caffe/caffe.hpp"
using namespace std;
void Tester::test1()
{
QString model_file = inputStrings[0];
QString trained_file = inputStrings[1];
QString ... | 29.147465 | 116 | 0.62498 | [
"vector"
] |
2e6d1e0f3b5506d12e8a16de4dfc8f785f4b7d5a | 3,617 | hpp | C++ | src/lua_iface.hpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | src/lua_iface.hpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | src/lua_iface.hpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | /*
Copyright (C) 2013-2014 by Kristina Simpson <sweet.kristas@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any pur... | 27.823077 | 111 | 0.751728 | [
"vector"
] |
2e73c3cbcee8537eec8a82d949ca25951e59407a | 560 | cpp | C++ | 496-next-greater-element-i/496-next-greater-element-i.cpp | LSSYA/Competitve-Programming | 5217cc509fe2c4560b64ef7fc7a655c94e9580a5 | [
"MIT"
] | null | null | null | 496-next-greater-element-i/496-next-greater-element-i.cpp | LSSYA/Competitve-Programming | 5217cc509fe2c4560b64ef7fc7a655c94e9580a5 | [
"MIT"
] | null | null | null | 496-next-greater-element-i/496-next-greater-element-i.cpp | LSSYA/Competitve-Programming | 5217cc509fe2c4560b64ef7fc7a655c94e9580a5 | [
"MIT"
] | null | null | null | // Time complexity - O(n2)
class Solution {
public:
vector<int> nextGreaterElement(vector<int>& nums1, vector<int>& nums2) {
vector<int> ans;
for(int i=0; i<nums1.size(); i++)
{
int k = -1;
for(int j = nums2.size() - 1; nums2[j] != nums1[i] && ... | 20.740741 | 76 | 0.360714 | [
"vector"
] |
2e771464e2e372dd2a7c416c89f5a79d8cd29231 | 11,595 | cpp | C++ | thirdparty/physx/APEXSDK/shared/general/HACD/src/AutoGeometry.cpp | johndpope/echo | e9ce2f4037e8a5d49b74cc7a9d9ee09f296e7fa7 | [
"MIT"
] | null | null | null | thirdparty/physx/APEXSDK/shared/general/HACD/src/AutoGeometry.cpp | johndpope/echo | e9ce2f4037e8a5d49b74cc7a9d9ee09f296e7fa7 | [
"MIT"
] | 2 | 2015-06-21T17:38:11.000Z | 2015-06-22T20:54:42.000Z | thirdparty/physx/APEXSDK/shared/general/HACD/src/AutoGeometry.cpp | johndpope/echo | e9ce2f4037e8a5d49b74cc7a9d9ee09f296e7fa7 | [
"MIT"
] | null | null | null | /*!
**
** Copyright (c) 2014 by John W. Ratcliff mailto:jratcliffscarab@gmail.com
**
**
** The MIT license:
**
** 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... | 24.565678 | 153 | 0.631824 | [
"mesh",
"object",
"vector",
"transform"
] |
2e78d4518837d421d0383b4f93dbe2ce03a0fa80 | 7,874 | cpp | C++ | DGP/Random.cpp | sidch/DGP | 20a2d47563b6e36cd89bea0b1326e5267df8e9a6 | [
"BSD-3-Clause"
] | 14 | 2016-03-15T16:24:10.000Z | 2022-01-06T13:43:17.000Z | a3/src/DGP/Random.cpp | meetps/CS-749 | f1ddc4ed003b3a9f222f2a724d53076ddec697a6 | [
"MIT"
] | null | null | null | a3/src/DGP/Random.cpp | meetps/CS-749 | f1ddc4ed003b3a9f222f2a724d53076ddec697a6 | [
"MIT"
] | 5 | 2017-04-12T17:40:57.000Z | 2022-01-06T13:43:20.000Z | //============================================================================
//
// DGP: Digital Geometry Processing toolkit
// Copyright (C) 2016, Siddhartha Chaudhuri
//
// This software is covered by a BSD license. Portions derived from other
// works are covered by their respective licenses. For full licensing
// ... | 24.377709 | 127 | 0.605918 | [
"geometry",
"transform",
"solid"
] |
2e7f36ffd1cbb1e0b163990de5d1613df5b281ec | 11,531 | cpp | C++ | src/sig/gs.cpp | harsha336/rrt_sig | 1afa8ad45562f20850360d691c2cc29faf18565b | [
"Apache-2.0"
] | null | null | null | src/sig/gs.cpp | harsha336/rrt_sig | 1afa8ad45562f20850360d691c2cc29faf18565b | [
"Apache-2.0"
] | null | null | null | src/sig/gs.cpp | harsha336/rrt_sig | 1afa8ad45562f20850360d691c2cc29faf18565b | [
"Apache-2.0"
] | null | null | null | /*=======================================================================
Copyright (c) 2018 Marcelo Kallmann.
This software is distributed under the Apache License, Version 2.0.
All copies must contain the full copyright notice licence.txt located
at the base folder of the distribution.
=================... | 19.812715 | 90 | 0.5872 | [
"shape"
] |
2e82e6d2730857ed490594a6dfb2a30cada50ef3 | 2,054 | cpp | C++ | src/main/algorithms/cpp/tree/closest_binary_search_tree_value_ii_272/solution.cpp | algorithmlover2016/leet_code | 2eecc7971194c8a755e67719d8f66c636694e7e9 | [
"Apache-2.0"
] | null | null | null | src/main/algorithms/cpp/tree/closest_binary_search_tree_value_ii_272/solution.cpp | algorithmlover2016/leet_code | 2eecc7971194c8a755e67719d8f66c636694e7e9 | [
"Apache-2.0"
] | null | null | null | src/main/algorithms/cpp/tree/closest_binary_search_tree_value_ii_272/solution.cpp | algorithmlover2016/leet_code | 2eecc7971194c8a755e67719d8f66c636694e7e9 | [
"Apache-2.0"
] | null | null | null | #include "../../head.h"
#include "../tree.h"
class Solution {
public:
std::vector<int> closestValues(TreeNode* root, float target, int k) {
if (nullptr == root) {
return {};
}
std::vector<int> ans;
dfsInOrder(root, ans);
int mid = 0;
float diff = std::ab... | 27.026316 | 91 | 0.493184 | [
"vector"
] |
2e85e64342be928c0506873ee7d14e7dc892d8c1 | 6,402 | cpp | C++ | NeuronMap.cpp | brandontrabucco/self_organizing_map | c993e0095310310c6ccd129073d9d2064248e4c4 | [
"MIT"
] | null | null | null | NeuronMap.cpp | brandontrabucco/self_organizing_map | c993e0095310310c6ccd129073d9d2064248e4c4 | [
"MIT"
] | null | null | null | NeuronMap.cpp | brandontrabucco/self_organizing_map | c993e0095310310c6ccd129073d9d2064248e4c4 | [
"MIT"
] | null | null | null | /*
* NeuronMap.cpp
*
* Created on: Jul 14, 2016
* Author: trabucco
*/
#include "NeuronMap.h"
NeuronMap::NeuronMap(int connectionsPerNeuron, int *_dim, unsigned int _type, double _width, double _learningRate, double _decayRate) {
// TODO Auto-generated constructor stub
type = _type;
width = _width;
lea... | 24.813953 | 135 | 0.628397 | [
"vector"
] |
2e88de0c4852c9c643af2f8481267635c5231244 | 5,859 | hpp | C++ | boost/geometry/extensions/gis/io/shapelib/shp_create_object.hpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 2 | 2015-01-02T14:24:56.000Z | 2015-01-02T14:25:17.000Z | boost/geometry/extensions/gis/io/shapelib/shp_create_object.hpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 2 | 2019-01-13T23:45:51.000Z | 2019-02-03T08:13:26.000Z | boost/geometry/extensions/gis/io/shapelib/shp_create_object.hpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 1 | 2016-05-29T13:41:15.000Z | 2016-05-29T13:41:15.000Z | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifnd... | 25.697368 | 90 | 0.667179 | [
"geometry"
] |
2e8c0574035094a1f0ff557794b8e105f0217ecf | 12,427 | cpp | C++ | qttools/src/shared/qtgradienteditor/qtgradientstopsmodel.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | qttools/src/shared/qtgradienteditor/qtgradientstopsmodel.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | qttools/src/shared/qtgradienteditor/qtgradientstopsmodel.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the tools applications of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid c... | 26.440426 | 98 | 0.64376 | [
"model"
] |
2e95862a414722ed02e08a3ab5f615aec96087d2 | 1,879 | cpp | C++ | examples/bench_replace.cpp | jbaldwin/libchain | fcceaa141c4aa12abd588f1b9032c4a8c48fd0b4 | [
"MIT"
] | 3 | 2020-09-03T20:05:24.000Z | 2022-02-03T20:49:33.000Z | examples/bench_replace.cpp | jbaldwin/libchain | fcceaa141c4aa12abd588f1b9032c4a8c48fd0b4 | [
"MIT"
] | 8 | 2020-11-12T18:13:19.000Z | 2021-12-05T18:58:28.000Z | examples/bench_replace.cpp | jbaldwin/libchain | fcceaa141c4aa12abd588f1b9032c4a8c48fd0b4 | [
"MIT"
] | null | null | null | #include <chrono>
#include <iostream>
#include <mutex>
#include <string>
#include <thread>
#include <vector>
#include <chain/chain.hpp>
int main()
{
using namespace std::string_literals;
using namespace chain;
static constexpr size_t ITERATIONS = 10'000'000;
std::string input = "herp derp cherp merp... | 28.469697 | 119 | 0.508781 | [
"vector"
] |
2e976bcff7f67be7c9e493a7f6a6698293127942 | 458 | hh | C++ | include/blaze/operation/file_scan.hh | anujjamwal/blaze | 58da3110ce1d1abdf0a04f36f92db7f1379a1fec | [
"Apache-2.0"
] | null | null | null | include/blaze/operation/file_scan.hh | anujjamwal/blaze | 58da3110ce1d1abdf0a04f36f92db7f1379a1fec | [
"Apache-2.0"
] | null | null | null | include/blaze/operation/file_scan.hh | anujjamwal/blaze | 58da3110ce1d1abdf0a04f36f92db7f1379a1fec | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <vector>
#include "blaze/operation/base_operation.hh"
namespace blaze
{
namespace operation
{
/**
* @brief Operation to read the data from one or more files.
*
*/
class FileScanOperation : BaseOperation
{
private:
std::vector<std::string> _paths;
s... | 19.913043 | 64 | 0.637555 | [
"vector"
] |
2ea0a6c457db49ef26131be7576faeefe5c7fbac | 355 | cpp | C++ | src/IntrospectionView/FloatElement.cpp | kyle-piddington/ShaderTool | c753a53bde6eab942da617adab9483c945f27f51 | [
"MIT"
] | 2 | 2016-03-11T00:07:33.000Z | 2016-04-14T22:35:44.000Z | src/IntrospectionView/FloatElement.cpp | kyle-piddington/ShaderTool | c753a53bde6eab942da617adab9483c945f27f51 | [
"MIT"
] | null | null | null | src/IntrospectionView/FloatElement.cpp | kyle-piddington/ShaderTool | c753a53bde6eab942da617adab9483c945f27f51 | [
"MIT"
] | 1 | 2021-02-18T14:42:03.000Z | 2021-02-18T14:42:03.000Z | #include "FloatElement.h"
#include <imgui.h>
FloatElement::FloatElement(std::shared_ptr<FloatObjectController> controller):
ProgramManagerElement(controller->getName()),
ctrl(controller)
{
}
void FloatElement::render()
{
float val = ctrl->getFloat();
if(ImGui::DragFloat(ctrl->getName().c_str(),&val,0.01))... | 20.882353 | 78 | 0.687324 | [
"render"
] |
2ea275ffc500ed55aef00cbe628a4f2a04a27a68 | 6,590 | cc | C++ | src/search_local/index_storage/common/plugin_sync.cc | jdisearch/isearch1 | 272bd4ab0dc82d9e33c8543474b1294569947bb3 | [
"Apache-2.0"
] | 3 | 2021-08-18T09:59:42.000Z | 2021-09-07T03:11:28.000Z | src/search_local/index_storage/common/plugin_sync.cc | jdisearch/isearch1 | 272bd4ab0dc82d9e33c8543474b1294569947bb3 | [
"Apache-2.0"
] | null | null | null | src/search_local/index_storage/common/plugin_sync.cc | jdisearch/isearch1 | 272bd4ab0dc82d9e33c8543474b1294569947bb3 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <sys/un.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h>
#include "plugin_agent_mgr.h"
#include "plugin_sync.h"
#include "plugin_unit.h"
#include "poll_thread.h"
#include "log.h"
#include "stat_dtc.h"
#include "mem_... | 23.963636 | 159 | 0.56783 | [
"object"
] |
2ea3422728acb635225fecb9c949c234fb31ea1d | 21,401 | cpp | C++ | C++code/inifile/inifile.cpp | xhyangxianjun/something | 864c8c1cb8afd72cf9e15f78f112d1d84138204a | [
"MIT"
] | 2 | 2019-04-30T06:24:46.000Z | 2020-10-19T09:27:17.000Z | C++code/inifile/inifile.cpp | xhyangxianjun/something | 864c8c1cb8afd72cf9e15f78f112d1d84138204a | [
"MIT"
] | null | null | null | C++code/inifile/inifile.cpp | xhyangxianjun/something | 864c8c1cb8afd72cf9e15f78f112d1d84138204a | [
"MIT"
] | 1 | 2021-09-06T02:44:23.000Z | 2021-09-06T02:44:23.000Z | /* Copyright (c) 2014-2019 WinnerHust
* 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 conditions and... | 24.74104 | 115 | 0.551329 | [
"vector",
"transform"
] |
2ea45c0f0d70d348acfbfcb55b443a3bc80c0806 | 5,146 | cpp | C++ | CheckSDL/CheckSDL/ImportStatus.cpp | tandasat/CheckSDL | ddca581ccf521b9cab37f3a627a59aec30b07503 | [
"MIT"
] | 16 | 2015-02-13T02:47:35.000Z | 2019-12-05T01:40:33.000Z | CheckSDL/CheckSDL/ImportStatus.cpp | tandasat/CheckSDL | ddca581ccf521b9cab37f3a627a59aec30b07503 | [
"MIT"
] | null | null | null | CheckSDL/CheckSDL/ImportStatus.cpp | tandasat/CheckSDL | ddca581ccf521b9cab37f3a627a59aec30b07503 | [
"MIT"
] | 10 | 2015-03-25T14:13:27.000Z | 2021-10-05T08:58:58.000Z | //
// This module implements a class responsible for extracting interesting
// characteristics from an import section
//
#include "stdafx.h"
#include "ImportStatus.h"
// C/C++ standard headers
// Other external headers
// Windows headers
// Project headers
#include "BannedFunctions.h"
//////////////////////////////... | 22.570175 | 91 | 0.644578 | [
"vector"
] |
2eb141c48d831b55521861d127f648b506d107f6 | 8,866 | cpp | C++ | moderngl/experimental/mgl/internal/glsl.cpp | dougbrion/ModernGL | 6de8938ccd0042c1389a32b697af5f9c9d279e41 | [
"MIT"
] | null | null | null | moderngl/experimental/mgl/internal/glsl.cpp | dougbrion/ModernGL | 6de8938ccd0042c1389a32b697af5f9c9d279e41 | [
"MIT"
] | null | null | null | moderngl/experimental/mgl/internal/glsl.cpp | dougbrion/ModernGL | 6de8938ccd0042c1389a32b697af5f9c9d279e41 | [
"MIT"
] | null | null | null | #include "glsl.hpp"
#include "opengl/opengl.hpp"
/* Remove the rightmost leading brackets.
*/
void clean_glsl_name(char * name, int & name_len) {
if (name_len && name[name_len - 1] == ']') {
name_len -= 1;
while (name_len && name[name_len] != '[') {
name_len -= 1;
}
}
n... | 57.2 | 98 | 0.597902 | [
"shape"
] |
e4815ce6074ef17af8db1a9cd33077ddedf833e7 | 22,861 | cpp | C++ | solveInFive.cpp | pjherron/deepwordle | 12e31728ef1861654cd380c466988625273e278e | [
"MIT"
] | 2 | 2022-01-26T19:21:04.000Z | 2022-02-13T19:09:12.000Z | solveInFive.cpp | pjherron/deepwordle | 12e31728ef1861654cd380c466988625273e278e | [
"MIT"
] | null | null | null | solveInFive.cpp | pjherron/deepwordle | 12e31728ef1861654cd380c466988625273e278e | [
"MIT"
] | 1 | 2022-02-14T00:28:56.000Z | 2022-02-14T00:28:56.000Z | // Created by Xan Gregg on 1/12/22.
//
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <string>
#include <vector>
#include <queue>
#include <deque>
#include <array>
#include <map>
#include <unordered_map>
#include <set>
#include <algorithm>
#include <sstream>
#include <iostream>
#inc... | 35.170769 | 187 | 0.60203 | [
"vector"
] |
e4895b51d2a9ccdd03c6aa1a642a19fabefd0232 | 7,645 | cc | C++ | ion/port/tests/fileutils_test.cc | RobLoach/ion | 9e659416fb04bb3d3a67df1e018d7c2ccab9d468 | [
"Apache-2.0"
] | null | null | null | ion/port/tests/fileutils_test.cc | RobLoach/ion | 9e659416fb04bb3d3a67df1e018d7c2ccab9d468 | [
"Apache-2.0"
] | null | null | null | ion/port/tests/fileutils_test.cc | RobLoach/ion | 9e659416fb04bb3d3a67df1e018d7c2ccab9d468 | [
"Apache-2.0"
] | null | null | null | /**
Copyright 2016 Google Inc. 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 by applicable law or agreed to in... | 33.977778 | 79 | 0.708698 | [
"vector"
] |
e48b465ea1da84d4438190b8fdb8adae8bd51f8a | 27,625 | cxx | C++ | PWGJE/UserTasks/AliAnalysisTaskJetHBOM.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | PWGJE/UserTasks/AliAnalysisTaskJetHBOM.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | PWGJE/UserTasks/AliAnalysisTaskJetHBOM.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | // **************************************
// Task used for the correction of detector effects for background fluctuations in jet spectra by the HBOM method
// *******************************************
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experi... | 30.257393 | 168 | 0.662045 | [
"vector",
"model"
] |
e48cb541113c832f477e933797f3c3414671dc05 | 4,143 | cpp | C++ | AVSCommon/AVS/src/CapabilitySemantics/StatesToValueMapping.cpp | tsweet77/avs-device-sdk | 703b06188eae146af396f58be4e47442d7ce5b1e | [
"Apache-2.0"
] | 1 | 2018-07-09T16:44:28.000Z | 2018-07-09T16:44:28.000Z | AVSCommon/AVS/src/CapabilitySemantics/StatesToValueMapping.cpp | tsweet77/avs-device-sdk | 703b06188eae146af396f58be4e47442d7ce5b1e | [
"Apache-2.0"
] | null | null | null | AVSCommon/AVS/src/CapabilitySemantics/StatesToValueMapping.cpp | tsweet77/avs-device-sdk | 703b06188eae146af396f58be4e47442d7ce5b1e | [
"Apache-2.0"
] | 2 | 2019-02-05T23:42:48.000Z | 2020-03-01T11:11:30.000Z | /*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" f... | 30.91791 | 96 | 0.698769 | [
"object"
] |
e48ebc59109c4d3b550fa9502d91a85c40f8d175 | 24,596 | cpp | C++ | src/curvemesh/curvemesh.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | src/curvemesh/curvemesh.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | src/curvemesh/curvemesh.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | /*
The MIT License
Copyright (c) 2010 by Jorrit Tyberghein
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, modif... | 31.055556 | 117 | 0.626281 | [
"mesh",
"object",
"vector"
] |
e492e7a0724e011a9d57965f0363a654720dc9d4 | 41,141 | cpp | C++ | libredex/ReflectionAnalysis.cpp | kami-lang/madex-redex | 90ae1bc46c6e20a0aed2c128183b9f289cecee34 | [
"MIT"
] | null | null | null | libredex/ReflectionAnalysis.cpp | kami-lang/madex-redex | 90ae1bc46c6e20a0aed2c128183b9f289cecee34 | [
"MIT"
] | null | null | null | libredex/ReflectionAnalysis.cpp | kami-lang/madex-redex | 90ae1bc46c6e20a0aed2c128183b9f289cecee34 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ReflectionAnalysis.h"
#include <iomanip>
#include <ostream>
#include <unordered_map>
#include <boost/optional.hpp>
#... | 33.805259 | 80 | 0.625823 | [
"object",
"vector"
] |
e4a00907795f3e2f1471fcb4f28509f274857bb5 | 14,651 | hpp | C++ | drivers/usb/xhci/xhci.hpp | thomtl/Sigma | 30da9446a1f1b5cae4eff77bf9917fae1446ce85 | [
"BSD-2-Clause"
] | 46 | 2019-09-30T18:40:06.000Z | 2022-02-20T12:54:59.000Z | drivers/usb/xhci/xhci.hpp | thomtl/Sigma | 30da9446a1f1b5cae4eff77bf9917fae1446ce85 | [
"BSD-2-Clause"
] | 11 | 2019-08-18T18:31:11.000Z | 2021-09-14T22:34:16.000Z | drivers/usb/xhci/xhci.hpp | thomtl/Sigma | 30da9446a1f1b5cae4eff77bf9917fae1446ce85 | [
"BSD-2-Clause"
] | 1 | 2020-01-20T16:55:13.000Z | 2020-01-20T16:55:13.000Z | #pragma once
#include <libsigma/sys.h>
#include "trb.hpp"
#include "context.hpp"
#include <vector>
#include "../usb.hpp"
namespace xhci
{
struct [[gnu::packed]] cap_regs {
uint8_t cap_length;
uint8_t reserved;
union [[gnu::packed]] hci_version_t {
struct {
ui... | 31.17234 | 82 | 0.494164 | [
"vector"
] |
e4a974fe577c47795ecde0c49c341025d83da3a8 | 8,355 | cc | C++ | centreon-broker/tls2/src/connector.cc | centreon/centreon-collect | e63fc4d888a120d588a93169e7d36b360616bdee | [
"Unlicense"
] | 8 | 2020-07-26T09:12:02.000Z | 2022-03-30T17:24:29.000Z | centreon-broker/tls2/src/connector.cc | centreon/centreon-collect | e63fc4d888a120d588a93169e7d36b360616bdee | [
"Unlicense"
] | 47 | 2020-06-18T12:11:37.000Z | 2022-03-16T10:28:56.000Z | centreon-broker/tls2/src/connector.cc | centreon/centreon-collect | e63fc4d888a120d588a93169e7d36b360616bdee | [
"Unlicense"
] | 5 | 2020-06-29T14:22:02.000Z | 2022-03-17T10:34:10.000Z | /*
** Copyright 2009-2013, 2021 Centreon
**
** 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 ag... | 32.509728 | 80 | 0.620467 | [
"object"
] |
e4b4a3e5fb6a6f7a2869ef9083e894396574d3e7 | 2,457 | hpp | C++ | include/stl2/detail/algorithm/min.hpp | marehr/cmcstl2 | 7a7cae1e23beacb18fd786240baef4ae121d813f | [
"MIT"
] | null | null | null | include/stl2/detail/algorithm/min.hpp | marehr/cmcstl2 | 7a7cae1e23beacb18fd786240baef4ae121d813f | [
"MIT"
] | null | null | null | include/stl2/detail/algorithm/min.hpp | marehr/cmcstl2 | 7a7cae1e23beacb18fd786240baef4ae121d813f | [
"MIT"
] | null | null | null | // cmcstl2 - A concept-enabled C++ standard library
//
// Copyright Casey Carter 2015
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Project home: https://github.c... | 29.963415 | 88 | 0.671144 | [
"object"
] |
e4bb068e2098dc69a5d518cc68f386efee78570c | 46,641 | cpp | C++ | dockerfile/catkin_ws/src/tools/justina_tools/src/JustinaManip.cpp | RobotJustina/tmc_justina_docker | 8aa968a81ae4526f6f6c2d55b83954b57b28ea92 | [
"BSD-3-Clause-Clear"
] | null | null | null | dockerfile/catkin_ws/src/tools/justina_tools/src/JustinaManip.cpp | RobotJustina/tmc_justina_docker | 8aa968a81ae4526f6f6c2d55b83954b57b28ea92 | [
"BSD-3-Clause-Clear"
] | null | null | null | dockerfile/catkin_ws/src/tools/justina_tools/src/JustinaManip.cpp | RobotJustina/tmc_justina_docker | 8aa968a81ae4526f6f6c2d55b83954b57b28ea92 | [
"BSD-3-Clause-Clear"
] | null | null | null | #include "justina_tools/JustinaManip.h"
bool JustinaManip::is_node_set = false;
tf::TransformListener * JustinaManip::tf_listener;
ros::ServiceClient JustinaManip::cltIKFloatArray;
ros::ServiceClient JustinaManip::cltIKPath;
ros::ServiceClient JustinaManip::cltIKPose;
ros::ServiceClient JustinaManip::cltDK;
//Subscrib... | 37.765992 | 162 | 0.73236 | [
"vector",
"transform"
] |
e4bc5894a5d6231ecb390ec6f726976b3a12f54e | 123,715 | cc | C++ | src/game/Utils/_ItalianText.cc | oldlaptop/ja2-stracciatella | a29e729dfec564c3ef7f7990ed7d5cd6c2e1c2a8 | [
"BSD-Source-Code"
] | null | null | null | src/game/Utils/_ItalianText.cc | oldlaptop/ja2-stracciatella | a29e729dfec564c3ef7f7990ed7d5cd6c2e1c2a8 | [
"BSD-Source-Code"
] | null | null | null | src/game/Utils/_ItalianText.cc | oldlaptop/ja2-stracciatella | a29e729dfec564c3ef7f7990ed7d5cd6c2e1c2a8 | [
"BSD-Source-Code"
] | null | null | null | #include "Text.h"
#ifdef WITH_UNITTESTS
#include "gtest/gtest.h"
#endif
// ******************************************************************************************************
// ** IMPORTANT TRANSLATION NOTES **
// *****************************... | 32.929199 | 391 | 0.728368 | [
"3d"
] |
e4bee80a58bb24993550ddf9e1d92874d4b04a79 | 1,456 | cpp | C++ | returnbook.cpp | Kwanhooo/LibManagement | 56f7719321159e869c361d86024b62cf8fcb44eb | [
"MIT"
] | null | null | null | returnbook.cpp | Kwanhooo/LibManagement | 56f7719321159e869c361d86024b62cf8fcb44eb | [
"MIT"
] | null | null | null | returnbook.cpp | Kwanhooo/LibManagement | 56f7719321159e869c361d86024b62cf8fcb44eb | [
"MIT"
] | null | null | null | #include "returnbook.h"
#include "ui_returnbook.h"
returnbook::returnbook(QWidget *parent) :
QWidget(parent),
ui(new Ui::returnbook)
{
ui->setupUi(this);
connect(this->ui->listView,SIGNAL(clicked(QModelIndex)),this,SLOT(returnABook(QModelIndex)));
}
returnbook::~returnbook()
{
delete ui;
}
void ... | 29.714286 | 175 | 0.611951 | [
"model"
] |
e4c1f8bcfaad1b775d4f80a4b37c20ce32b8065b | 1,142 | cpp | C++ | DP/Palindrome Partitioning with Minimum Cuts.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | 1 | 2021-07-20T06:08:26.000Z | 2021-07-20T06:08:26.000Z | DP/Palindrome Partitioning with Minimum Cuts.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | null | null | null | DP/Palindrome Partitioning with Minimum Cuts.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<string>> partition(string s) {
int n = s.size();
int dp[n][n];
//gap method
for (int g = 0; g < n; g++) {
for (int i = 0, j = g; g < dp.size(); i++, j++)
{
if (g == 0) {
dp[i][j] = true;
}
else if (g == 1) {
dp[i][j] = s[i] == s[j];
}
els... | 18.419355 | 53 | 0.376532 | [
"vector"
] |
e4cb8b3b0243d25cf1d7031d46db906f1a83ef1f | 5,126 | hpp | C++ | include/ball_pushing_planner.hpp | ytlei/ballCollectorRobot | 5ae64368fe92f7c050cbad908eee74bc2d44eaff | [
"MIT"
] | null | null | null | include/ball_pushing_planner.hpp | ytlei/ballCollectorRobot | 5ae64368fe92f7c050cbad908eee74bc2d44eaff | [
"MIT"
] | null | null | null | include/ball_pushing_planner.hpp | ytlei/ballCollectorRobot | 5ae64368fe92f7c050cbad908eee74bc2d44eaff | [
"MIT"
] | null | null | null | /**
* @file
* @author Yiting Lei <ytlei@umd.edu>
* @brief push_planner node for planning paths for pushing targets header
* @copyright BSD License
* Copyright (c) 2017 Yiting Lei
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided... | 33.503268 | 87 | 0.752634 | [
"vector"
] |
e4d4b4d10cfd12f74fcebe58fb4b479f092c894e | 4,831 | cpp | C++ | TestsParallel/test_t2d_me_mt_pipe_conference.cpp | COFS-UWA/MPM3D | 1a0c5dc4e92dff3855367846002336ca5a18d124 | [
"MIT"
] | null | null | null | TestsParallel/test_t2d_me_mt_pipe_conference.cpp | COFS-UWA/MPM3D | 1a0c5dc4e92dff3855367846002336ca5a18d124 | [
"MIT"
] | 2 | 2020-10-19T02:03:11.000Z | 2021-03-19T16:34:39.000Z | TestsParallel/test_t2d_me_mt_pipe_conference.cpp | COFS-UWA/MPM3D | 1a0c5dc4e92dff3855367846002336ca5a18d124 | [
"MIT"
] | 1 | 2020-04-28T00:33:14.000Z | 2020-04-28T00:33:14.000Z | #include "TestsParallel_pcp.h"
#include "test_parallel_utils.h"
#include "Model_T2D_CHM_mt.h"
#include "Step_T2D_CHM_mt.h"
#include "ModelData_T2D_CHM_mt.h"
#include "TimeHistory_T2D_CHM_mt_complete.h"
#include "TimeHistory_ConsoleProgressBar.h"
#include "QtApp_Prep_T2D_CHM_mt.h"
#include "test_simulations_omp.h"
voi... | 35.785185 | 114 | 0.745601 | [
"model"
] |
e4d609faac5dacf00cd347aca20e8798e7273f95 | 12,049 | hpp | C++ | src/perception/segmentation/euclidean_cluster/include/euclidean_cluster/euclidean_cluster.hpp | goodloop/autoware_auto_mirror | 9ffc6c658b7ae5674bde8ee2c882f3dbb3fa1235 | [
"Apache-2.0"
] | 1 | 2021-07-29T01:28:10.000Z | 2021-07-29T01:28:10.000Z | src/perception/segmentation/euclidean_cluster/include/euclidean_cluster/euclidean_cluster.hpp | goodloop/autoware_auto_mirror | 9ffc6c658b7ae5674bde8ee2c882f3dbb3fa1235 | [
"Apache-2.0"
] | null | null | null | src/perception/segmentation/euclidean_cluster/include/euclidean_cluster/euclidean_cluster.hpp | goodloop/autoware_auto_mirror | 9ffc6c658b7ae5674bde8ee2c882f3dbb3fa1235 | [
"Apache-2.0"
] | 1 | 2021-12-09T15:44:10.000Z | 2021-12-09T15:44:10.000Z | // Copyright 2019-2021 the Autoware Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | 41.548276 | 100 | 0.746701 | [
"geometry",
"object",
"vector"
] |
e4d82f4c63949e12c8e4c6a9f929729423082958 | 9,142 | cpp | C++ | src/test/key_tests.cpp | CoinGame/NuShadowTestnet | 32ad6b407bea6490513790d15c2a2ed83f5917f3 | [
"MIT"
] | 2 | 2018-01-22T13:54:42.000Z | 2018-01-22T13:54:46.000Z | src/test/key_tests.cpp | CoinGame/NuShadowTestnet | 32ad6b407bea6490513790d15c2a2ed83f5917f3 | [
"MIT"
] | null | null | null | src/test/key_tests.cpp | CoinGame/NuShadowTestnet | 32ad6b407bea6490513790d15c2a2ed83f5917f3 | [
"MIT"
] | 1 | 2018-01-22T13:54:39.000Z | 2018-01-22T13:54:39.000Z | #include <boost/test/unit_test.hpp>
#include <string>
#include <vector>
#include "key.h"
#include "base58.h"
#include "uint256.h"
#include "util.h"
using namespace std;
// Mixed style keys
static const string strDefaultSecret1 ("7QRR3XwvHW963ERsAQQi2JScqv2PgNDcrwMXwAcmJ3g9byEbRqN");
static const string strDefau... | 42.52093 | 99 | 0.713848 | [
"vector"
] |
e4da6a63e3c24a77a570c1434149b35c873f676d | 7,460 | hpp | C++ | include/Zenject/AnimatorMoveHandlerManager.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/Zenject/AnimatorMoveHandlerManager.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/Zenject/AnimatorMoveHandlerManager.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#... | 54.452555 | 247 | 0.739946 | [
"object",
"vector"
] |
e4e8da5c84c087bd7b2237846b6111d1f0374372 | 868 | hpp | C++ | CookieEngine/include/Resources/Loader.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/include/Resources/Loader.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/include/Resources/Loader.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | #ifndef __LOADER_HPP__
#define __LOADER_HPP__
#include <assimp/Importer.hpp>
#include <assimp/material.h>
namespace Cookie
{
namespace Resources
{
class ResourcesManager;
class Loader
{
private:
Assimp::Importer importer;
public:
/* CONSTRUCTORS/DESTRUCTORS */
Loader();
~Loader();
... | 27.125 | 150 | 0.738479 | [
"render"
] |
e4e964f84e73ef063478271e5caa38151173769f | 3,980 | cpp | C++ | src/ShellTable.cpp | arelenos/TurtleDB | 65cbca6451a78d8cc304ab9ea45a131aa2cc8db1 | [
"MIT"
] | null | null | null | src/ShellTable.cpp | arelenos/TurtleDB | 65cbca6451a78d8cc304ab9ea45a131aa2cc8db1 | [
"MIT"
] | null | null | null | src/ShellTable.cpp | arelenos/TurtleDB | 65cbca6451a78d8cc304ab9ea45a131aa2cc8db1 | [
"MIT"
] | 1 | 2018-01-23T03:42:56.000Z | 2018-01-23T03:42:56.000Z | #include "MetaRow.h"
#include "String.h"
#include "TurtleRow.h"
#include <limits.h>
// #include <string>
#include <vector>
#include <iostream>
#include <map>
struct TurtleRow {};
struct TurtleCol {};
struct MetaTable {};
using namespace std;
class InvalidTableInput {};
typedef std::vector<std::string> VectorStr;
... | 23.411765 | 97 | 0.66809 | [
"object",
"vector"
] |
e4eb3e520dc2f61050de30d05c541a6bdd3a3e05 | 2,479 | cpp | C++ | Sources/Elastos/LibCore/src/elastosx/xml/transform/TransformerFactory.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/LibCore/src/elastosx/xml/transform/TransformerFactory.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/LibCore/src/elastosx/xml/transform/TransformerFactory.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
//
// ... | 36.455882 | 110 | 0.646228 | [
"object",
"transform"
] |
e4f3d656528fe06b52ac9cdce45cd27c6f219d53 | 1,943 | cpp | C++ | zip.cpp | isyangban/cpp-zip | 46d0ce520c14d13cb9037c191f9dfc09200aa408 | [
"MIT"
] | null | null | null | zip.cpp | isyangban/cpp-zip | 46d0ce520c14d13cb9037c191f9dfc09200aa408 | [
"MIT"
] | null | null | null | zip.cpp | isyangban/cpp-zip | 46d0ce520c14d13cb9037c191f9dfc09200aa408 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<tuple>
#include<string>
#include<utility>
using namespace std;
// pretty-print a tuple (from http://stackoverflow.com/a/6245777/273767)
template<class Ch, class Tr, class Tuple, std::size_t... Is>
void print_tuple_impl(std::basic_ostream<Ch,Tr>& os,
co... | 25.233766 | 82 | 0.568708 | [
"vector"
] |
e4f6447bc8fe879b19d066eacf2d7527cdb637f7 | 7,004 | cpp | C++ | Classes/MainLayer.cpp | link-next-link/TestCoco1 | 4a0302fadd55b8043cec82ad58dce6435c347c38 | [
"zlib-acknowledgement"
] | null | null | null | Classes/MainLayer.cpp | link-next-link/TestCoco1 | 4a0302fadd55b8043cec82ad58dce6435c347c38 | [
"zlib-acknowledgement"
] | null | null | null | Classes/MainLayer.cpp | link-next-link/TestCoco1 | 4a0302fadd55b8043cec82ad58dce6435c347c38 | [
"zlib-acknowledgement"
] | null | null | null | #include "MainLayer.h"
#include "Utl.h"
#include "AtlasLoader.h"
#include "Number.h"
#include "JniIf.h"
Scene* MainLayer::createScene() {
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = MainLayer::create();
// add layer as a child t... | 30.585153 | 137 | 0.651485 | [
"object"
] |
07e5dbdb730ad98314b4a3c35c34d52fca8957ff | 59,745 | cpp | C++ | src/Core/OgreRenderingModule/OgreWorld.cpp | jesterKing/naali | 1dc38ea1c21c37d93ea37c83eba9ad2fb2efe287 | [
"Apache-2.0"
] | null | null | null | src/Core/OgreRenderingModule/OgreWorld.cpp | jesterKing/naali | 1dc38ea1c21c37d93ea37c83eba9ad2fb2efe287 | [
"Apache-2.0"
] | null | null | null | src/Core/OgreRenderingModule/OgreWorld.cpp | jesterKing/naali | 1dc38ea1c21c37d93ea37c83eba9ad2fb2efe287 | [
"Apache-2.0"
] | 1 | 2018-08-22T16:27:17.000Z | 2018-08-22T16:27:17.000Z | // For conditions of distribution and use, see copyright notice in LICENSE
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "CoreException.h"
#define MATH_OGRE_INTEROP
#include "OgreWorld.h"
#include "Renderer.h"
#include "EC_Camera.h"
#include "EC_Placeable.h"
#include "EC_Mesh.h"
#include "OgreCom... | 38.126994 | 214 | 0.627065 | [
"mesh",
"geometry",
"object",
"vector",
"transform",
"3d"
] |
07e5e70e3e8bd8dde491f3671cc847f0e13dc3ca | 10,486 | cc | C++ | zircon/system/utest/fdio/fdio_get_vmo.cc | OpenTrustGroup/fuchsia | 647e593ea661b8bf98dcad2096e20e8950b24a97 | [
"BSD-3-Clause"
] | 1 | 2019-04-21T18:02:26.000Z | 2019-04-21T18:02:26.000Z | zircon/system/utest/fdio/fdio_get_vmo.cc | OpenTrustGroup/fuchsia | 647e593ea661b8bf98dcad2096e20e8950b24a97 | [
"BSD-3-Clause"
] | 16 | 2020-09-04T19:01:11.000Z | 2021-05-28T03:23:09.000Z | zircon/system/utest/fdio/fdio_get_vmo.cc | OpenTrustGroup/fuchsia | 647e593ea661b8bf98dcad2096e20e8950b24a97 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia 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 <cstdlib>
#include <fbl/unique_fd.h>
#include <fuchsia/io/c/fidl.h>
#include <lib/async-loop/cpp/loop.h>
#include <lib/fdio/fd.h>
#include <lib/fd... | 33.501597 | 100 | 0.726302 | [
"object"
] |
07ebcdbdc84f8fd2c52b23c46e1873780d457871 | 111,889 | cpp | C++ | src/services/config/events.cpp | dfranusic/mink-core | 98b4ab8d6322a5593ab6c05132473753915a3bb8 | [
"MIT"
] | 1 | 2022-01-28T22:29:14.000Z | 2022-01-28T22:29:14.000Z | src/services/config/events.cpp | dfranusic/mink-core | 98b4ab8d6322a5593ab6c05132473753915a3bb8 | [
"MIT"
] | 28 | 2021-08-31T09:27:36.000Z | 2022-03-17T13:57:56.000Z | src/services/config/events.cpp | dfranusic/mink-core | 98b4ab8d6322a5593ab6c05132473753915a3bb8 | [
"MIT"
] | 5 | 2021-08-25T13:20:39.000Z | 2022-01-27T18:04:15.000Z | /* _ _
* _ __ ___ (_)_ __ | | __
* | '_ ` _ \| | '_ \| |/ /
* | | | | | | | | | | <
* |_| |_| |_|_|_| |_|_|\_\
*
* SPDX-License-Identifier: MIT
*
*/
#include <antlr_utils.h>
#include <events.h>
#include <fstream>
void ClientIdle::run(gdt::GDTCallbackArgs *args) {
// * unlock to avoid d... | 39.176821 | 112 | 0.442215 | [
"vector"
] |
07ee053d23c43f6722706145345d6895d0da07e2 | 3,568 | cpp | C++ | src/cpp/ray.cpp | Byron/rust-tracer | f16522fbd01fb1361ac4b94746e3d46539a54355 | [
"BSD-3-Clause"
] | 16 | 2015-02-14T14:52:50.000Z | 2022-01-05T15:27:41.000Z | src/cpp/ray.cpp | Byron/rust-tracer | f16522fbd01fb1361ac4b94746e3d46539a54355 | [
"BSD-3-Clause"
] | 10 | 2015-02-02T10:30:50.000Z | 2015-04-09T12:44:07.000Z | src/cpp/ray.cpp | Byron/rust-tracer | f16522fbd01fb1361ac4b94746e3d46539a54355 | [
"BSD-3-Clause"
] | null | null | null | #include <vector>
#include <iostream>
#include <limits>
#include <cmath>
#include "stdlib.h"
using namespace std;
numeric_limits<float> real;
float delta = sqrt(real.epsilon()), infinity = real.infinity();
struct Vec {
float x, y, z;
Vec(float x2, float y2, float z2) : x(x2), y(y2), z(z2) {}
};
Vec operator+(con... | 27.236641 | 77 | 0.575673 | [
"vector"
] |
07f1331dee2480a380cbc3f453beba6aa607f87d | 1,026 | cpp | C++ | src/teacher.cpp | RichardoMrMu/gsoap-onvif | 76a0aadd426aedd8c212467caeb029133a06eb9a | [
"MIT"
] | 3 | 2021-09-15T12:08:25.000Z | 2022-02-23T06:21:29.000Z | src/teacher.cpp | RichardoMrMu/gsoap-onvif | 76a0aadd426aedd8c212467caeb029133a06eb9a | [
"MIT"
] | null | null | null | src/teacher.cpp | RichardoMrMu/gsoap-onvif | 76a0aadd426aedd8c212467caeb029133a06eb9a | [
"MIT"
] | 1 | 2022-03-18T11:07:07.000Z | 2022-03-18T11:07:07.000Z | #include "teacher.hpp"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace cv;
using namespace std;
using namespace wl;
void TeaAnalyser::SetReader(const wl::CameraConfig& config
)
{
LOG(INFO) << "Test HIKIPCameraReader.";
std::string u... | 20.52 | 80 | 0.655945 | [
"vector"
] |
07f36604085b475ce12af034e4f2aa48c193f6e5 | 1,491 | cpp | C++ | p567_Permutation_in_String/p567.cpp | Song1996/Leetcode | ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb | [
"MIT"
] | null | null | null | p567_Permutation_in_String/p567.cpp | Song1996/Leetcode | ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb | [
"MIT"
] | null | null | null | p567_Permutation_in_String/p567.cpp | Song1996/Leetcode | ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <string>
#include <cassert>
#include <stdlib.h>
#include <fstream>
#include <algorithm>
#include <cmath>
using namespace std;
class Solution {
public:
vector<int> mem;
bool checkInclusion(string s1... | 28.673077 | 63 | 0.52448 | [
"vector"
] |
07f4567d59fde94e69851042556961d355fdc259 | 11,913 | cpp | C++ | dbms/src/Storages/DeltaMerge/SSTFilesToBlockInputStream.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 85 | 2022-03-25T09:03:16.000Z | 2022-03-25T09:45:03.000Z | dbms/src/Storages/DeltaMerge/SSTFilesToBlockInputStream.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 7 | 2022-03-25T08:59:10.000Z | 2022-03-25T09:40:13.000Z | dbms/src/Storages/DeltaMerge/SSTFilesToBlockInputStream.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 11 | 2022-03-25T09:15:36.000Z | 2022-03-25T09:45:07.000Z | // Copyright 2022 PingCAP, Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 37.93949 | 174 | 0.676152 | [
"object",
"model"
] |
07f8c7dd1ea9aacc66a1cfb6da8922911d08152b | 1,335 | cpp | C++ | modules/task_1/zhafyarov_o_graham_pass/main.cpp | egorshul/pp_2021_spring_engineers | 833868c757648149a152ff0913c5e3905cd56176 | [
"BSD-3-Clause"
] | null | null | null | modules/task_1/zhafyarov_o_graham_pass/main.cpp | egorshul/pp_2021_spring_engineers | 833868c757648149a152ff0913c5e3905cd56176 | [
"BSD-3-Clause"
] | null | null | null | modules/task_1/zhafyarov_o_graham_pass/main.cpp | egorshul/pp_2021_spring_engineers | 833868c757648149a152ff0913c5e3905cd56176 | [
"BSD-3-Clause"
] | 1 | 2021-03-29T14:29:42.000Z | 2021-03-29T14:29:42.000Z | // Copyright 2021 Zhafyarov Oleg
#include <gtest/gtest.h>
#include <vector>
#include <algorithm>
#include "./graham_pass.h"
TEST(Sequential, Test1) {
std::vector<point> vec = {{1, 5}, {4, 8}, {8, 2}, {9, 3}, {1, 8}, {7, 7}};
std::vector<size_t> result;
int count = 0;
result = GrahamPass(vec, &count);
std::ve... | 25.673077 | 76 | 0.602247 | [
"vector"
] |
07fbb36a9a8174c1afe76de2ba774836cca44dd3 | 9,049 | cc | C++ | Dragon/src/operators/arithmetic/dot_op.cc | neopenx/Dragon | 0e639a7319035ddc81918bd3df059230436ee0a1 | [
"BSD-2-Clause"
] | 212 | 2015-07-05T07:57:17.000Z | 2022-02-27T01:55:35.000Z | Dragon/src/operators/arithmetic/dot_op.cc | neopenx/Dragon | 0e639a7319035ddc81918bd3df059230436ee0a1 | [
"BSD-2-Clause"
] | 6 | 2016-07-07T14:31:56.000Z | 2017-12-12T02:21:15.000Z | Dragon/src/operators/arithmetic/dot_op.cc | neopenx/Dragon | 0e639a7319035ddc81918bd3df059230436ee0a1 | [
"BSD-2-Clause"
] | 71 | 2016-03-24T09:02:41.000Z | 2021-06-03T01:52:41.000Z | #include "operators/arithmetic/dot_op.h"
#include "core/workspace.h"
#include "utils/math_functions.h"
namespace dragon {
template <class Context> template <typename T>
void DotOp<Context>::DotRunWithType() {
auto* X1data = input(0).template data<T, Context>();
auto* X2data = input(1).template data<T, Contex... | 43.296651 | 88 | 0.569124 | [
"vector"
] |
580389b0b865bea21253db629a2f528095c94ec3 | 2,152 | cpp | C++ | src/kafka/kafka.cpp | halivor/php-flame | 5674bcb11838cfcfdaf4d0211bd3b062945775d3 | [
"MIT"
] | null | null | null | src/kafka/kafka.cpp | halivor/php-flame | 5674bcb11838cfcfdaf4d0211bd3b062945775d3 | [
"MIT"
] | null | null | null | src/kafka/kafka.cpp | halivor/php-flame | 5674bcb11838cfcfdaf4d0211bd3b062945775d3 | [
"MIT"
] | null | null | null | #include "../coroutine.h"
#include "kafka.h"
#include "_consumer.h"
#include "consumer.h"
#include "_producer.h"
#include "producer.h"
#include "message.h"
namespace flame {
namespace kafka {
void declare(php::extension_entry& ext) {
ext
.function<consume>("flame\\kafka\\consume", {
{"options", php:... | 32.606061 | 100 | 0.578067 | [
"object"
] |
5808951fab3c82e794d81c7f91efb6b044797882 | 2,353 | cpp | C++ | project/OFEC_sc2/instance/algorithm/multi_objective/nsgaii_sbx/nsgaii_sbx.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/algorithm/multi_objective/nsgaii_sbx/nsgaii_sbx.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/algorithm/multi_objective/nsgaii_sbx/nsgaii_sbx.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | #include "NSGAII_SBX.h"
#include "../../../../../core/problem/continuous/continuous.h"
#ifdef OFEC_DEMO
#include "../../../../../../ui/buffer/continuous/buffer_cont_MOP.h"
extern unique_ptr<Demo::scene> Demo::msp_buffer;
#endif
namespace OFEC {
NSGAII_SBX_pop::NSGAII_SBX_pop(size_t size_pop) : SBX_pop<>(size_pop) {}... | 32.232877 | 109 | 0.657034 | [
"vector"
] |
580a444b0df06a416d009f19e7e1d364d379624d | 2,357 | cpp | C++ | backup/2/leetcode/c++/archive/15.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/leetcode/c++/archive/15.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/leetcode/c++/archive/15.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 36.828125 | 345 | 0.420874 | [
"vector"
] |
580ce5459ed6ba89f707f5dede616d161a5d9b79 | 34,976 | cxx | C++ | osprey/be/cg/NVISA/exp_loadstore.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/NVISA/exp_loadstore.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/NVISA/exp_loadstore.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2005-2008 NVIDIA Corporation. All rights reserved.
*/
/*
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the hope that it would... | 32.718428 | 104 | 0.698736 | [
"object"
] |
58113fc339301c09eefc2900ed9f63d25c7ee4ad | 3,345 | cpp | C++ | phxqueue/config/consumerconfig.cpp | huayl/phxqueue | 733ada547a3b483b536cc3d401766af7b4c17dbe | [
"Apache-2.0"
] | 2,032 | 2017-09-12T02:29:42.000Z | 2022-03-23T07:14:56.000Z | phxqueue/config/consumerconfig.cpp | huayl/phxqueue | 733ada547a3b483b536cc3d401766af7b4c17dbe | [
"Apache-2.0"
] | 57 | 2017-09-12T03:36:39.000Z | 2020-12-16T08:59:09.000Z | phxqueue/config/consumerconfig.cpp | huayl/phxqueue | 733ada547a3b483b536cc3d401766af7b4c17dbe | [
"Apache-2.0"
] | 370 | 2017-09-12T03:09:04.000Z | 2022-03-13T14:01:55.000Z | /*
Tencent is pleased to support the open source community by making PhxQueue available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Lice... | 30.409091 | 305 | 0.707324 | [
"vector"
] |
58118d40d6bfc6f86ba859e0dc069d57c7fc88ef | 5,315 | cc | C++ | Code/Components/Services/ingest/current/ingestpipeline/mssink/GenericSubstitutionRule.cc | steve-ord/askapsoft | 21b9df1b393b973ec312591efad7ee2b8c974811 | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 1 | 2020-06-18T08:37:43.000Z | 2020-06-18T08:37:43.000Z | Code/Components/Services/ingest/current/ingestpipeline/mssink/GenericSubstitutionRule.cc | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | Code/Components/Services/ingest/current/ingestpipeline/mssink/GenericSubstitutionRule.cc | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | /// @file GenericSubstitutionRule.cc
///
/// @copyright (c) 2012 CSIRO
/// Australia Telescope National Facility (ATNF)
/// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
/// PO Box 76, Epping NSW 1710, Australia
/// atnf-enquiries@csiro.au
///
/// This file is part of the ASKAP software distribut... | 42.52 | 136 | 0.730574 | [
"object",
"vector"
] |
5817e01ea7628b95a50ee55dfca6ef0a4efb8abf | 2,384 | cpp | C++ | solutions/LeetCode/C++/135.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | solutions/LeetCode/C++/135.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | solutions/LeetCode/C++/135.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
12ms
class Solution {
public:
int candy(vector<int>& ratings) {
int length = ratings.size();
vector<int> candies(length, 0);
int cur_max = 0;
int prev = -1;
for(int i = 0; i < l... | 29.073171 | 98 | 0.448406 | [
"vector"
] |
581d14382676cfdc10230ad41a31d2d289f5260b | 11,740 | cc | C++ | RecoTauTag/RecoTau/plugins/PFTauPrimaryVertexProducer.cc | trackerpro/cmssw | 3e05774a180a5f4cdc70b713bd711c23f9364765 | [
"Apache-2.0"
] | 1 | 2019-03-09T19:47:49.000Z | 2019-03-09T19:47:49.000Z | RecoTauTag/RecoTau/plugins/PFTauPrimaryVertexProducer.cc | trackerpro/cmssw | 3e05774a180a5f4cdc70b713bd711c23f9364765 | [
"Apache-2.0"
] | null | null | null | RecoTauTag/RecoTau/plugins/PFTauPrimaryVertexProducer.cc | trackerpro/cmssw | 3e05774a180a5f4cdc70b713bd711c23f9364765 | [
"Apache-2.0"
] | 1 | 2019-03-19T13:44:54.000Z | 2019-03-19T13:44:54.000Z | /* class PFTauPrimaryVertexProducer
* EDProducer of the
* authors: Ian M. Nugent
* This work is based on the impact parameter work by Rosamaria Venditti and reconstructing the 3 prong taus.
* The idea of the fully reconstructing the tau using a kinematic fit comes from
* Lars Perchalla and Philip Sauerland Theses... | 42.846715 | 160 | 0.7046 | [
"vector"
] |
581f6a8aaaf291626c1da3fa6362095cf66bcf84 | 34,770 | cc | C++ | nox/src/nox/netapps/storage/dht-impl.cc | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 28 | 2015-02-04T13:59:25.000Z | 2021-12-29T03:44:47.000Z | nox/src/nox/netapps/storage/dht-impl.cc | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 552 | 2015-01-05T18:25:54.000Z | 2022-03-16T18:51:13.000Z | nox/src/nox/netapps/storage/dht-impl.cc | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 25 | 2015-02-04T18:48:20.000Z | 2020-06-18T15:51:05.000Z | /* Copyright 2008 (C) Nicira, Inc.
*
* This file is part of NOX.
*
* NOX is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* N... | 35.771605 | 85 | 0.573569 | [
"vector"
] |
5823d3cb8663201b856b7600da7d1e019ee85b08 | 8,829 | cpp | C++ | minescape/components/cmp_rope.cpp | jonathan-sung/minescape | 2ed228dc0371d6da4d3a9619bb63dc8ac71b9c5f | [
"Apache-2.0"
] | null | null | null | minescape/components/cmp_rope.cpp | jonathan-sung/minescape | 2ed228dc0371d6da4d3a9619bb63dc8ac71b9c5f | [
"Apache-2.0"
] | null | null | null | minescape/components/cmp_rope.cpp | jonathan-sung/minescape | 2ed228dc0371d6da4d3a9619bb63dc8ac71b9c5f | [
"Apache-2.0"
] | null | null | null | #include "cmp_rope.h"
#include <engine.h>
#include <SFML/Window/Mouse.hpp>
#include <SFML/Graphics/Vertex.hpp>
#include <system_physics.h>
#include "cmp_physics.h"
#include <Box2D/Box2D.h>
#include <system_renderer.h>
#include "Box2D/Common/b2Math.h"
#include "LevelSystem.h"
#include "cmp_player_physics.h"
#include "..... | 26.835866 | 111 | 0.702458 | [
"render",
"vector"
] |
58245701a2eda4ff972d1ee76087280966cc4181 | 6,759 | cpp | C++ | src/test/shaders.cpp | sweetkristas/swiftly | 0b5c2badc88637b8bdaa841a45d1babd8f12a703 | [
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | src/test/shaders.cpp | sweetkristas/swiftly | 0b5c2badc88637b8bdaa841a45d1babd8f12a703 | [
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | src/test/shaders.cpp | sweetkristas/swiftly | 0b5c2badc88637b8bdaa841a45d1babd8f12a703 | [
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | #include <vector>
#include "../asserts.hpp"
#include "shaders.hpp"
namespace shader
{
shader::shader(GLenum type, const std::string& name, const std::string& code)
: type_(type), shader_(0), name_(name)
{
ASSERT_LOG(compile(code), "Error compiling shader for " << name_);
}
bool shader::compile(const std::str... | 28.639831 | 97 | 0.686492 | [
"object",
"vector"
] |
5826e5d01c5911c584490c6a2c1ad9bc5a12c0af | 59,017 | cpp | C++ | Source/ALSV4_CPP/Private/Character/ALSBaseCharacter.cpp | insomniaunleashed/ALSV4_CPP | 14e3c402fa017983ebfdb9971ec8b25b75284fe4 | [
"MIT"
] | 2 | 2020-12-15T08:25:22.000Z | 2020-12-15T08:25:32.000Z | Source/ALSV4_CPP/Private/Character/ALSBaseCharacter.cpp | snzhkhd/ALSV4_CPP | 2835514b59791581a0069e510b7878f0ba1e67c2 | [
"MIT"
] | null | null | null | Source/ALSV4_CPP/Private/Character/ALSBaseCharacter.cpp | snzhkhd/ALSV4_CPP | 2835514b59791581a0069e510b7878f0ba1e67c2 | [
"MIT"
] | null | null | null | // Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2020 Doğa Can Yanıkoğlu
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: Doğa Can Yanıkoğlu
// Contributors: H... | 33.211593 | 145 | 0.752969 | [
"mesh",
"object",
"vector",
"model",
"transform"
] |
582b0effd41caf82d4ba2f049f8757bcfa345b89 | 771 | cpp | C++ | src/base/auth/OneOfAuth.cpp | edwardstock/wsserver | 4fb834252e95431f4fe14a2a120e76524a586d7c | [
"Apache-2.0"
] | 1 | 2018-06-23T10:33:38.000Z | 2018-06-23T10:33:38.000Z | src/base/auth/OneOfAuth.cpp | scatter-server/scatter | 4fb834252e95431f4fe14a2a120e76524a586d7c | [
"Apache-2.0"
] | null | null | null | src/base/auth/OneOfAuth.cpp | scatter-server/scatter | 4fb834252e95431f4fe14a2a120e76524a586d7c | [
"Apache-2.0"
] | 1 | 2018-12-14T04:06:16.000Z | 2018-12-14T04:06:16.000Z | /*!
* wsserver. 2018
*
* \author Eduard Maximovich <edward.vstock@gmail.com>
* \link https://github.com/edwardstock
*/
#include "OneOfAuth.h"
// OneOfAuth
wss::OneOfAuth::OneOfAuth(std::vector<std::unique_ptr<wss::Auth>> &&data) : types(std::move(data)) {
}
std::string wss::OneOfAuth::getType() {
return "... | 23.363636 | 100 | 0.635538 | [
"vector"
] |
5837ff3359b36c38443fd78564e5fe292aa3aca2 | 62,261 | cpp | C++ | src/cc/passes/JITTableRuntimePass.cpp | Morpheus-compiler/bcc | 8fe73498a0942b4fc42215b60ddda4203b045bd9 | [
"Apache-2.0"
] | null | null | null | src/cc/passes/JITTableRuntimePass.cpp | Morpheus-compiler/bcc | 8fe73498a0942b4fc42215b60ddda4203b045bd9 | [
"Apache-2.0"
] | null | null | null | src/cc/passes/JITTableRuntimePass.cpp | Morpheus-compiler/bcc | 8fe73498a0942b4fc42215b60ddda4203b045bd9 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021 Morpheus Authors
*
* Author: Sebastiano Miano <mianosebastiano@gmail.com>
*
* 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/L... | 47.856264 | 172 | 0.609129 | [
"vector"
] |
583cbe81f6b63600a1d997f8c4f01efd080b7eff | 32,176 | hpp | C++ | src/gfcc/contrib/cd_ccsd_cs_ann.hpp | smferdous1/gfcc | e7112c0dd60566266728e4d51ea8d30aea4b775d | [
"MIT"
] | null | null | null | src/gfcc/contrib/cd_ccsd_cs_ann.hpp | smferdous1/gfcc | e7112c0dd60566266728e4d51ea8d30aea4b775d | [
"MIT"
] | null | null | null | src/gfcc/contrib/cd_ccsd_cs_ann.hpp | smferdous1/gfcc | e7112c0dd60566266728e4d51ea8d30aea4b775d | [
"MIT"
] | null | null | null | #include "diis.hpp"
#include "ccsd_util.hpp"
#include "ga/macdecls.h"
#include "ga/ga-mpi.h"
using namespace tamm;
bool debug = false;
TiledIndexSpace o_alpha,v_alpha,o_beta,v_beta;
Tensor<double> f1_aa_oo , f1_aa_ov , f1_aa_vo , f1_aa_vv ,
f1_bb_oo , f1_bb_ov , f1_bb_vo , f1_bb_v... | 54.90785 | 142 | 0.583696 | [
"vector"
] |
584fa0d62a51ca347b13a08aa0f657873b74a5c1 | 2,169 | cpp | C++ | python/biograph/variants/apply_edges.cpp | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 16 | 2021-07-14T23:32:31.000Z | 2022-03-24T16:25:15.000Z | python/biograph/variants/apply_edges.cpp | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-20T20:39:47.000Z | 2021-09-16T20:57:59.000Z | python/biograph/variants/apply_edges.cpp | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-15T19:38:35.000Z | 2022-01-31T19:24:56.000Z | #include "python/biograph/variants/apply_edges.h"
#include "python/biograph/variants/assembly.h"
#include "python/biograph/variants/par_pipeline.h"
#include "python/common.h"
using namespace pybind11;
using namespace variants;
class __attribute__((visibility("hidden"))) apply_edges_py : public apply_edges_step {
pu... | 36.15 | 100 | 0.701706 | [
"object",
"vector"
] |
5850ed757b33ade2ea6d2ef7bff956b2f53d61b6 | 8,804 | hpp | C++ | src/alignment/core/impl/BasicAlignmentContainer.hpp | nileshpatra/plast-library | 7c962282fdb68ac1f48a587e03fbb1a1b70a7a32 | [
"Intel",
"DOC"
] | 9 | 2016-09-30T05:44:35.000Z | 2020-09-03T19:40:06.000Z | src/alignment/core/impl/BasicAlignmentContainer.hpp | nileshpatra/plast-library | 7c962282fdb68ac1f48a587e03fbb1a1b70a7a32 | [
"Intel",
"DOC"
] | 10 | 2017-05-05T14:55:16.000Z | 2022-01-24T18:21:51.000Z | src/alignment/core/impl/BasicAlignmentContainer.hpp | nileshpatra/plast-library | 7c962282fdb68ac1f48a587e03fbb1a1b70a7a32 | [
"Intel",
"DOC"
] | 1 | 2020-12-05T21:33:27.000Z | 2020-12-05T21:33:27.000Z | /*****************************************************************************
* *
* PLAST : Parallel Local Alignment Search Tool *
* Version 2.3, released November 2015 *
* ... | 40.200913 | 114 | 0.614153 | [
"vector"
] |
58553133a39b4fc91aae2a862cfba651643523dc | 3,744 | cpp | C++ | src/tex_op/to_worley.cpp | cewbost/texgen | f572ea5590457f37b72286c50c020eee25bddc78 | [
"MIT"
] | null | null | null | src/tex_op/to_worley.cpp | cewbost/texgen | f572ea5590457f37b72286c50c020eee25bddc78 | [
"MIT"
] | null | null | null | src/tex_op/to_worley.cpp | cewbost/texgen | f572ea5590457f37b72286c50c020eee25bddc78 | [
"MIT"
] | null | null | null |
#include <cmath>
#include <cstdlib>
#include "to_common.h"
#include "../tex_op.h"
#include "../worley.h"
namespace
{
float _distFunc(float x, float y)
{
return std::sqrt(x * x + y * y);
}
using Map = Worley<float, _distFunc, 4>;
template<int mask, int oct>
void _writeSDFMapWorker(Texture* dest... | 33.132743 | 89 | 0.597222 | [
"vector"
] |
58564da29be9bdd13b52e766782bc82750ec2091 | 571 | cpp | C++ | AtCoder/RandomProblem/4Adjacent.cpp | lxdlam/ACM | cde519ef9732ff9e4e9e3f53c00fb30d07bdb306 | [
"MIT"
] | 1 | 2017-10-25T13:33:27.000Z | 2017-10-25T13:33:27.000Z | AtCoder/RandomProblem/4Adjacent.cpp | lxdlam/ACM | cde519ef9732ff9e4e9e3f53c00fb30d07bdb306 | [
"MIT"
] | null | null | null | AtCoder/RandomProblem/4Adjacent.cpp | lxdlam/ACM | cde519ef9732ff9e4e9e3f53c00fb30d07bdb306 | [
"MIT"
] | 1 | 2018-01-22T08:06:11.000Z | 2018-01-22T08:06:11.000Z | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef set<int> si;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n;
int t;
map<int, int> m;
cin >> n... | 16.794118 | 50 | 0.511384 | [
"vector"
] |
5857951bf0c82ea2663f7fa252f59be325d39026 | 26,461 | cpp | C++ | ortc/services/cpp/services_RUDPPacket.cpp | ortclib/ortclib-services-cpp | f770d97044b1ffbff04b61fa1488eedc8ddc66e4 | [
"BSD-2-Clause"
] | 2 | 2016-10-12T09:16:32.000Z | 2016-10-13T03:49:47.000Z | ortc/services/cpp/services_RUDPPacket.cpp | ortclib/ortclib-services-cpp | f770d97044b1ffbff04b61fa1488eedc8ddc66e4 | [
"BSD-2-Clause"
] | 2 | 2017-11-24T09:18:45.000Z | 2017-11-24T09:20:53.000Z | ortc/services/cpp/services_RUDPPacket.cpp | ortclib/ortclib-services-cpp | f770d97044b1ffbff04b61fa1488eedc8ddc66e4 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2014, Hookflash 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:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the fol... | 40.771957 | 264 | 0.549979 | [
"object",
"vector"
] |
58598d018c43363c3ab0642c778db8e41a6ef037 | 1,298 | cpp | C++ | Sign_Detection_And_Recognization/header.cpp | duyndh/DigitalRace-MyModules | e7c3939090808bf632484cba47c8910283880def | [
"MIT"
] | null | null | null | Sign_Detection_And_Recognization/header.cpp | duyndh/DigitalRace-MyModules | e7c3939090808bf632484cba47c8910283880def | [
"MIT"
] | null | null | null | Sign_Detection_And_Recognization/header.cpp | duyndh/DigitalRace-MyModules | e7c3939090808bf632484cba47c8910283880def | [
"MIT"
] | 1 | 2018-04-10T02:55:00.000Z | 2018-04-10T02:55:00.000Z | #include "header.h"
// WARNING: should only be used once because of ycrcb equalization
void get_mask(const Mat &hsv, Mat &mask, string colors)
{
mask = Mat::zeros(mask.rows, mask.cols, CV_8UC1);
Mat tmp_mask(mask.rows, mask.cols, CV_8UC1);
if (colors.find("blue") != std::string::npos)
{
inRange(hsv, LOW_HSV_BLU... | 27.041667 | 66 | 0.708012 | [
"vector"
] |
5859c64e5436667193b90dfe49bf991c0a43e7ea | 1,132 | hpp | C++ | Game/Game.hpp | caslarui/LOOP | 0ef3e4c60965f186830cc891a4a429e8f51dd44d | [
"MIT"
] | null | null | null | Game/Game.hpp | caslarui/LOOP | 0ef3e4c60965f186830cc891a4a429e8f51dd44d | [
"MIT"
] | null | null | null | Game/Game.hpp | caslarui/LOOP | 0ef3e4c60965f186830cc891a4a429e8f51dd44d | [
"MIT"
] | null | null | null | //
// Created by caslarui on 16.12.2019.
//
#ifndef LOOP_GAME_HPP
#define LOOP_GAME_HPP
#include <fstream>
#include <iostream>
#include <queue>
#include "Map/Map.hpp"
#include "Characters/Heroes/Hero.hpp"
#define print(chr, times) for(int i = 0; i < times; ++i) std::cout << chr; std::cout<<std::endl;
#define asser... | 17.968254 | 96 | 0.634276 | [
"vector"
] |
585d18d0974964bb5845eeba37ca577100b73d5e | 17,498 | cpp | C++ | third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/editing/iterators/TextIteratorTextNodeHandler.h"
#include <algorithm>
#include "core/dom/FirstLetterPseudoElement.h"
#include "core/editin... | 37.956616 | 80 | 0.669619 | [
"transform"
] |
585dc8877bcccc5123e2ca25b83ebe232cc0b8e0 | 3,816 | hpp | C++ | Viewer/ecflowUI/src/ServerList.hpp | mpartio/ecflow | ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6 | [
"Apache-2.0"
] | null | null | null | Viewer/ecflowUI/src/ServerList.hpp | mpartio/ecflow | ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6 | [
"Apache-2.0"
] | null | null | null | Viewer/ecflowUI/src/ServerList.hpp | mpartio/ecflow | ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6 | [
"Apache-2.0"
] | null | null | null | //============================================================================
// Copyright 2009- ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
// In applying this licence, ECMWF does not waive the privileges... | 30.528 | 117 | 0.68999 | [
"vector"
] |
58735bdedacd348328e9c478ebf4554f5bc26ba6 | 17,349 | cc | C++ | src/kudu/integration-tests/dns_alias-itest.cc | Kekdeng/kudu | 958248adf3ea70f12ab033e0041bfc5c922956af | [
"Apache-2.0"
] | 1,538 | 2016-08-08T22:34:30.000Z | 2022-03-29T05:23:36.000Z | src/kudu/integration-tests/dns_alias-itest.cc | Kekdeng/kudu | 958248adf3ea70f12ab033e0041bfc5c922956af | [
"Apache-2.0"
] | 17 | 2017-05-18T16:05:14.000Z | 2022-03-18T22:17:13.000Z | src/kudu/integration-tests/dns_alias-itest.cc | Kekdeng/kudu | 958248adf3ea70f12ab033e0041bfc5c922956af | [
"Apache-2.0"
] | 612 | 2016-08-12T04:09:37.000Z | 2022-03-29T16:57:46.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 39.882759 | 99 | 0.713701 | [
"vector"
] |
5873a8547ea2a47c42a96391d1e96d9db1e9dcfe | 9,343 | cpp | C++ | libs/Picture.cpp | OberKnirps/PictureToWood | a41408d3c87fa35836be1c681a968492f062941e | [
"MIT"
] | null | null | null | libs/Picture.cpp | OberKnirps/PictureToWood | a41408d3c87fa35836be1c681a968492f062941e | [
"MIT"
] | null | null | null | libs/Picture.cpp | OberKnirps/PictureToWood | a41408d3c87fa35836be1c681a968492f062941e | [
"MIT"
] | null | null | null | //
// Created by fabian on 17.05.21.
//
#include "Picture.hpp"
using namespace cv;
/**
* Filtered version of the image.
*/
void picture::show() const {
for (const auto & pair : this->images) {
if(not pair.img.empty()){
namedWindow("Image", WINDOW_AUTOSIZE);
imshow( "Image", pair.... | 34.476015 | 136 | 0.597346 | [
"object",
"vector"
] |
5873e7f3ae532dde47c8e60d550b1fb157b87448 | 5,024 | cpp | C++ | NaoTHSoccer/Source/Cognition/Modules/Modeling/SelfLocator/MonteCarloSelfLocator/SampleSet.cpp | tarsoly/NaoTH | dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52 | [
"ECL-2.0",
"Apache-2.0"
] | 15 | 2015-01-12T10:46:29.000Z | 2022-03-28T05:13:14.000Z | NaoTHSoccer/Source/Cognition/Modules/Modeling/SelfLocator/MonteCarloSelfLocator/SampleSet.cpp | tarsoly/NaoTH | dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-01-20T21:07:50.000Z | 2020-01-22T14:00:28.000Z | NaoTHSoccer/Source/Cognition/Modules/Modeling/SelfLocator/MonteCarloSelfLocator/SampleSet.cpp | tarsoly/NaoTH | dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2018-02-07T18:18:10.000Z | 2019-10-15T17:01:41.000Z | /**
* @file SampleSet.cpp
*
* @author <a href="mailto:mellmann@informatik.hu-berlin.de">Heinrich Mellmann</a>
* Implementation of class SampleSet
*/
#include <algorithm>
#include "SampleSet.h"
#include "Tools/Debug/NaoTHAssert.h"
#include "Tools/Math/Common.h"
void SampleSet::sort(bool descending)
{
if(samples.size... | 23.045872 | 93 | 0.624005 | [
"vector"
] |
5880b52ff72f0e9a0124fb0086992f1b1cf3ca43 | 734 | cpp | C++ | DataStructures/整数拆分.cpp | Yurzi/Jlu-C-OJ | 1bbf0532ded06b31e6516f90270760f11ccb1b3c | [
"MIT"
] | 7 | 2020-11-02T13:15:36.000Z | 2021-07-06T05:09:55.000Z | DataStructures/整数拆分.cpp | Yurzi/Jlu-C-OJ | 1bbf0532ded06b31e6516f90270760f11ccb1b3c | [
"MIT"
] | null | null | null | DataStructures/整数拆分.cpp | Yurzi/Jlu-C-OJ | 1bbf0532ded06b31e6516f90270760f11ccb1b3c | [
"MIT"
] | null | null | null | #include<iostream>
#include<queue>
using namespace std;
int n=0;int k=0;
int count=0;
vector<int> res;
int toslove(int x,int _k,int q,int sum){
if(_k==0){
if(sum==n){
++count;
for (int i=0;i<res.size();++i)
{
printf("%d",res[i]);
if(i<r... | 17.47619 | 46 | 0.433243 | [
"vector"
] |
58831de2c2bb62b11005f6767c6eb67ade332543 | 2,243 | cpp | C++ | Greedy Algorithmic Paradigm/Activity Selection Problem.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 8 | 2021-02-13T17:07:27.000Z | 2021-08-20T08:20:40.000Z | Greedy Algorithmic Paradigm/Activity Selection Problem.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | null | null | null | Greedy Algorithmic Paradigm/Activity Selection Problem.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 5 | 2021-02-17T18:12:20.000Z | 2021-10-10T17:49:34.000Z | // We'll greedily select those activities which END first.
/*==============================================================================================================*/
// Problem: I AM VERY BUSY
// Contest: SPOJ - Classical
// URL: https://www.spoj.com/problems/BUSYMAN/
// Memory Limit: 1536 MB
// Time Limit: 10... | 23.861702 | 114 | 0.574231 | [
"vector"
] |
5885a6f789c7ab6b153ccaf6f1adb6ae6a5699f5 | 8,941 | cpp | C++ | src/vendor/mariadb-10.6.7/storage/columnstore/columnstore/tools/dbbuilder/dbbuilder.cpp | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | null | null | null | src/vendor/mariadb-10.6.7/storage/columnstore/columnstore/tools/dbbuilder/dbbuilder.cpp | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | null | null | null | src/vendor/mariadb-10.6.7/storage/columnstore/columnstore/tools/dbbuilder/dbbuilder.cpp | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | 2 | 2022-02-27T14:00:01.000Z | 2022-03-31T06:24:22.000Z | /* Copyright (C) 2014 InfiniDB, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2 of
the License.
This program is distributed in the hope that it will be useful,
but W... | 26.219941 | 102 | 0.489319 | [
"render"
] |
58868a7b42d8f7eb3f24641c2a78e22bb3bd7763 | 7,015 | cpp | C++ | applications/physbam/physbam-lib/Public_Library/PhysBAM_Geometry/Topology/SEGMENT_MESH.cpp | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 20 | 2017-07-03T19:09:09.000Z | 2021-09-10T02:53:56.000Z | PhysBAM/Public_Library/PhysBAM_Geometry/Topology/SEGMENT_MESH.cpp | uwgraphics/PhysicsBasedModeling-Core | dbc65b8e93b1a3d69fcc82aba06d28dc6c0adb8b | [
"BSD-3-Clause"
] | null | null | null | PhysBAM/Public_Library/PhysBAM_Geometry/Topology/SEGMENT_MESH.cpp | uwgraphics/PhysicsBasedModeling-Core | dbc65b8e93b1a3d69fcc82aba06d28dc6c0adb8b | [
"BSD-3-Clause"
] | 9 | 2017-09-17T02:05:06.000Z | 2020-01-31T00:12:01.000Z | //#####################################################################
// Copyright 2002-2009, Robert Bridson, Ronald Fedkiw, Jon Gretarsson, Geoffrey Irving, Sergey Koltakov, Nipun Kwatra, Frank Losasso, Neil Molino, Eftychios Sifakis, Jerry Talton.
// This file is part of PhysBAM whose distribution is governed by th... | 47.080537 | 179 | 0.557234 | [
"vector"
] |
588c9c48608e90703f242f66fe69f8248793e99c | 1,407 | cpp | C++ | Medium/partition-list.cpp | AnanyaDas162/Leetcode-Solutions | 00f3982f2a48cc7ef3341565b237a1f9637d26f5 | [
"MIT"
] | 1 | 2021-11-21T16:04:59.000Z | 2021-11-21T16:04:59.000Z | Medium/partition-list.cpp | AnanyaDas162/Leetcode-Solutions | 00f3982f2a48cc7ef3341565b237a1f9637d26f5 | [
"MIT"
] | null | null | null | Medium/partition-list.cpp | AnanyaDas162/Leetcode-Solutions | 00f3982f2a48cc7ef3341565b237a1f9637d26f5 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
vector <i... | 27.588235 | 63 | 0.38877 | [
"vector"
] |
588d97b9cc754790e490b882cfa73359fb3b8787 | 6,354 | cpp | C++ | src/blockslideshowscreen.cpp | ant512/EarthShakerDS | c23920bb96652570616059ee4b807e82617c2385 | [
"MIT"
] | null | null | null | src/blockslideshowscreen.cpp | ant512/EarthShakerDS | c23920bb96652570616059ee4b807e82617c2385 | [
"MIT"
] | null | null | null | src/blockslideshowscreen.cpp | ant512/EarthShakerDS | c23920bb96652570616059ee4b807e82617c2385 | [
"MIT"
] | null | null | null | #include "barrierblock.h"
#include "barriercontrolblock.h"
#include "beanblock.h"
#include "bitmapserver.h"
#include "blockslideshowscreen.h"
#include "boulderblock.h"
#include "bubbleblock.h"
#include "constants.h"
#include "diamondblock.h"
#include "doorblock.h"
#include "extralifeblock.h"
#include "firebl... | 29.281106 | 167 | 0.723481 | [
"render"
] |
589730583bd6094df00a2898b5b4f138097e07c0 | 322 | cc | C++ | test/vector_copy_test.cc | mayhemheroes/cista | c889baf253081571913b88b26ad30be0104a82cd | [
"MIT"
] | 843 | 2019-01-03T11:33:00.000Z | 2022-03-27T08:09:46.000Z | test/vector_copy_test.cc | mayhemheroes/cista | c889baf253081571913b88b26ad30be0104a82cd | [
"MIT"
] | 58 | 2019-01-03T20:32:02.000Z | 2022-01-31T17:25:42.000Z | test/vector_copy_test.cc | mayhemheroes/cista | c889baf253081571913b88b26ad30be0104a82cd | [
"MIT"
] | 63 | 2019-01-04T03:00:04.000Z | 2022-03-30T20:01:22.000Z | #include "doctest.h"
#ifdef SINGLE_HEADER
#include "cista.h"
#else
#include "cista/containers/vector.h"
#endif
TEST_CASE("to_tuple") {
namespace data = cista::offset;
data::vector<uint32_t> a;
a.emplace_back(1u);
a.emplace_back(2u);
a.emplace_back(3u);
data::vector<uint32_t> b;
b = a;
CHECK(a == b);... | 16.1 | 36 | 0.673913 | [
"vector"
] |
58a1af35ec1c791a9b8b00519f2ffddc6d26f7b2 | 619 | cpp | C++ | gfg/longest-increasing-subsequence.cpp | rishabhiitbhu/hackerrank | acc300851c81a29472177f15fd8b56ebebe853ea | [
"MIT"
] | null | null | null | gfg/longest-increasing-subsequence.cpp | rishabhiitbhu/hackerrank | acc300851c81a29472177f15fd8b56ebebe853ea | [
"MIT"
] | null | null | null | gfg/longest-increasing-subsequence.cpp | rishabhiitbhu/hackerrank | acc300851c81a29472177f15fd8b56ebebe853ea | [
"MIT"
] | 1 | 2020-01-30T06:47:09.000Z | 2020-01-30T06:47:09.000Z | #include <iostream>
#include <vector>
using namespace std;
int main(){
int t, n, i, j, k, max;
cin>>t;
for(i=0;i<t;i++){
cin>>n;
int arr[n];
int LIS[n];
for(j=0;j<n;j++){
cin>>arr[j];
}
for(j=0;j<n;j++){
// cout<<"\nj = "<<j<<endl;
max = 0;
for(k=j-1;k>=0;k--)... | 16.289474 | 57 | 0.407108 | [
"vector"
] |
58ac1d81018bd7b51651496eaea2302484d0f57b | 2,362 | cpp | C++ | Plugins/org.mitk.gui.qt.igt.app.echotrack/src/internal/IO/mitkUSNavigationLoggingBackend.cpp | samsmu/MITK | c93dce6dc38d8f4c961de4440e4dd113b9841c8c | [
"BSD-3-Clause"
] | 5 | 2015-02-05T10:58:41.000Z | 2019-04-17T15:04:07.000Z | Plugins/org.mitk.gui.qt.igt.app.echotrack/src/internal/IO/mitkUSNavigationLoggingBackend.cpp | kometa-dev/MITK | 984b5f7ac8ea614e80f303381ef1fc77d8ca4c3d | [
"BSD-3-Clause"
] | 141 | 2015-03-03T06:52:01.000Z | 2020-12-10T07:28:14.000Z | Plugins/org.mitk.gui.qt.igt.app.echotrack/src/internal/IO/mitkUSNavigationLoggingBackend.cpp | kometa-dev/MITK | 984b5f7ac8ea614e80f303381ef1fc77d8ca4c3d | [
"BSD-3-Clause"
] | 4 | 2015-02-19T06:48:13.000Z | 2020-06-19T16:20:25.000Z | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | 29.898734 | 143 | 0.699831 | [
"vector"
] |
58b05bcc306fa98d3fe419c8870647d70e08f56e | 8,167 | h++ | C++ | deps/wheels/include/wheels/overload.h++ | picanumber/named-operator | 71910f8af4c55260629e6bd423981aa27c0ed2e5 | [
"Apache-2.0"
] | 1 | 2015-10-22T09:01:04.000Z | 2015-10-22T09:01:04.000Z | deps/wheels/include/wheels/overload.h++ | picanumber/named-operator | 71910f8af4c55260629e6bd423981aa27c0ed2e5 | [
"Apache-2.0"
] | null | null | null | deps/wheels/include/wheels/overload.h++ | picanumber/named-operator | 71910f8af4c55260629e6bd423981aa27c0ed2e5 | [
"Apache-2.0"
] | null | null | null | // Wheels - various C++ utilities
//
// Written in 2012 by Martinho Fernandes <martinho.fernandes@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related
// and neighboring rights to this software to the public domain worldwide. This software is
// distributed without a... | 37.635945 | 124 | 0.580507 | [
"object"
] |
58bc9fec8a2d58bfb1f0c201ee5d8adb579c50cd | 6,662 | cpp | C++ | src/LP_Evaluator.cpp | LukasLeonardKoening/Licence-Plate-Evaluator | 0d82c86e42a67f95a75d9e69de36900d62e59fc2 | [
"MIT"
] | null | null | null | src/LP_Evaluator.cpp | LukasLeonardKoening/Licence-Plate-Evaluator | 0d82c86e42a67f95a75d9e69de36900d62e59fc2 | [
"MIT"
] | null | null | null | src/LP_Evaluator.cpp | LukasLeonardKoening/Licence-Plate-Evaluator | 0d82c86e42a67f95a75d9e69de36900d62e59fc2 | [
"MIT"
] | null | null | null | #include "LP_Evaluator.h"
#include <fstream>
#include <iostream>
#include <sstream>
#include <algorithm>
/* MessageQueue Definitions */
template<typename T> T MessageQueue<T>::receive() {
// Protect work by a unique lock
std::unique_lock<std::mutex> unique_lock(_mutex);
// Wait until message is availabl... | 34.697917 | 175 | 0.611828 | [
"vector"
] |
58c8f37cdd99648c3b7ae16ab2c5a59fa629e897 | 589 | hpp | C++ | game.hpp | KonradCzerw/p2plug | 0574e922f2c32be033c77cd187acc5ccc1dbed31 | [
"MIT"
] | 1 | 2021-07-24T21:26:54.000Z | 2021-07-24T21:26:54.000Z | game.hpp | KonradCzerw/p2plug | 0574e922f2c32be033c77cd187acc5ccc1dbed31 | [
"MIT"
] | null | null | null | game.hpp | KonradCzerw/p2plug | 0574e922f2c32be033c77cd187acc5ccc1dbed31 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
enum SourceGameVersion {
SourceGame_Unknown = 0,
SourceGame_Portal2 = 1
};
class Game {
protected:
SourceGameVersion version = SourceGame_Unknown;
public:
virtual ~Game() = default;
virtual void LoadOffsets() = 0;
virtual const char* Version();
virtual const f... | 21.814815 | 64 | 0.733447 | [
"vector"
] |
58d792ed5988ad67a8a62d1ee6ed5eee0de98d5b | 1,465 | cpp | C++ | CSES/Graph_Algorithms/longest_flight_route.cpp | eyangch/competitive-programming | 59839efcec72cb792e61b7d316f83ad54f16a166 | [
"MIT"
] | 14 | 2019-08-14T00:43:10.000Z | 2021-12-16T05:43:31.000Z | CSES/Graph_Algorithms/longest_flight_route.cpp | eyangch/competitive-programming | 59839efcec72cb792e61b7d316f83ad54f16a166 | [
"MIT"
] | null | null | null | CSES/Graph_Algorithms/longest_flight_route.cpp | eyangch/competitive-programming | 59839efcec72cb792e61b7d316f83ad54f16a166 | [
"MIT"
] | 6 | 2020-12-30T03:30:17.000Z | 2022-03-11T03:40:02.000Z | #include <bits/stdc++.h>
#define endl "\n"
using namespace std;
int N, M, dp[100000], deg[100000];
vector<int> graph[100000], rgraph[100000];
bool rch[100000];
void dfs(int id){
if(rch[id]) return;
rch[id] = true;
for(int i : graph[id]){
dfs(i);
}
}
int32_t main(){
cin.tie(0) -> sync_wit... | 20.068493 | 42 | 0.395904 | [
"vector"
] |
58d8e0df41ce71a1982108b2ab6e969038b33cc2 | 4,084 | cc | C++ | CMC040/cmcfun/outp_finish.cc | khandy21yo/aplus | 3b4024a2a8315f5dcc78479a24100efa3c4a6504 | [
"MIT"
] | 1 | 2018-10-17T08:53:17.000Z | 2018-10-17T08:53:17.000Z | CMC040/cmcfun/outp_finish.cc | khandy21yo/aplus | 3b4024a2a8315f5dcc78479a24100efa3c4a6504 | [
"MIT"
] | null | null | null | CMC040/cmcfun/outp_finish.cc | khandy21yo/aplus | 3b4024a2a8315f5dcc78479a24100efa3c4a6504 | [
"MIT"
] | null | null | null | //! \file
//! \brief Close Out Any Open Report
// %SBTTL "OUTP_FINISH"
// %IDENT "V3.6a Calico"
////
// Source: ../../CMC030/cmcfun/source/outp_finish.bas
// Translated from Basic to C++ using btran
// on Monday, January 08, 2018 at 12:38:19
//
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <unistd... | 20.626263 | 82 | 0.651077 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.