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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c14c4bee1fba8a7fbf10317a79e6c08bc5900042 | 2,424 | cpp | C++ | src/xml2cab.cpp | BGCX262/zunda-hg-to-git | a160a1395c4dddbe48a6279872ab1ae12d00184a | [
"BSD-3-Clause"
] | 8 | 2016-09-01T12:10:44.000Z | 2021-12-05T07:08:23.000Z | src/xml2cab.cpp | BGCX262/zunda-hg-to-git | a160a1395c4dddbe48a6279872ab1ae12d00184a | [
"BSD-3-Clause"
] | 1 | 2020-07-22T04:44:25.000Z | 2021-01-08T11:29:57.000Z | src/xml2cab.cpp | BGCX262/zunda-hg-to-git | a160a1395c4dddbe48a6279872ab1ae12d00184a | [
"BSD-3-Clause"
] | 2 | 2019-02-27T02:21:16.000Z | 2021-07-07T05:57:25.000Z | #include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <boost/program_options.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include "sentence.hpp"
#include "modality.hpp"
int main(int argc, char *argv[]) {
boost::program_option... | 27.545455 | 123 | 0.665429 | [
"vector"
] |
c153f4545201397ba74bfc307b47d9d81000b28c | 6,292 | cc | C++ | src/Geometry/GeomFacet3d.cc | as1m0n/spheral | 4d72822f56aca76d70724c543d389d15ff6ca48e | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | src/Geometry/GeomFacet3d.cc | as1m0n/spheral | 4d72822f56aca76d70724c543d389d15ff6ca48e | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | src/Geometry/GeomFacet3d.cc | as1m0n/spheral | 4d72822f56aca76d70724c543d389d15ff6ca48e | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | #include <limits>
#include "GeomVector.hh"
#include "GeomFacet3d.hh"
#include "Utilities/pointDistances.hh"
#include "Utilities/pointInPolygon.hh"
#include "Utilities/lineSegmentIntersections.hh"
#include "Utilities/safeInv.hh"
namespace Spheral {
//------------------------------------------------------------------... | 32.770833 | 111 | 0.504609 | [
"vector"
] |
c1585d8a0fac348986753724fe8e9d4e42a3253b | 3,653 | hpp | C++ | src/augment_audio.hpp | ashahba/aeon | eafbc6b7040bf594854bd92f1606d37ddd862943 | [
"Apache-2.0"
] | null | null | null | src/augment_audio.hpp | ashahba/aeon | eafbc6b7040bf594854bd92f1606d37ddd862943 | [
"Apache-2.0"
] | 3 | 2021-09-08T02:26:12.000Z | 2022-03-12T00:45:28.000Z | src/augment_audio.hpp | ashahba/aeon | eafbc6b7040bf594854bd92f1606d37ddd862943 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2017 Intel(R) Nervana(TM)
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 writin... | 34.790476 | 98 | 0.645223 | [
"vector"
] |
c15c18c1538cc0bb75e8da394e57df5dd8253bd4 | 20,676 | cpp | C++ | src/server/ConfigLoader.cpp | benma/opentxs | 40aebd8baa0a1456f00fcafa9eb1b7d72f94b202 | [
"Apache-2.0"
] | 1 | 2015-11-05T12:09:37.000Z | 2015-11-05T12:09:37.000Z | src/server/ConfigLoader.cpp | murrekatt/opentxs | 2f6ee63bbba8c36c5fca1916b345f38f78df01ab | [
"Apache-2.0"
] | null | null | null | src/server/ConfigLoader.cpp | murrekatt/opentxs | 2f6ee63bbba8c36c5fca1916b345f38f78df01ab | [
"Apache-2.0"
] | null | null | null | /************************************************************
*
* ConfigLoader.cpp
*
*/
/************************************************************
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Protocol... | 42.10998 | 80 | 0.614384 | [
"object"
] |
c161bfc8b13b69d4e50ee187e81aa32308ac7c26 | 5,424 | cpp | C++ | SLImageLibraries/SLOpenCVProcess/Private/SLCVMatCImageHandles.cpp | SenonLi/VS_OpenGLSL_4.1 | caaa4c66b0ca93128b2fa615f39c65f621b58803 | [
"MIT"
] | 1 | 2019-01-02T08:14:26.000Z | 2019-01-02T08:14:26.000Z | SLImageLibraries/SLOpenCVProcess/Private/SLCVMatCImageHandles.cpp | SenonLi/OpenGL_4.0_FreeSpace | caaa4c66b0ca93128b2fa615f39c65f621b58803 | [
"MIT"
] | null | null | null | SLImageLibraries/SLOpenCVProcess/Private/SLCVMatCImageHandles.cpp | SenonLi/OpenGL_4.0_FreeSpace | caaa4c66b0ca93128b2fa615f39c65f621b58803 | [
"MIT"
] | null | null | null | #include "../stdafx.h"
#include "SLCVMatCImageHandles.h"
#include "StaticConstBasics\SLGeneralImageBasics.h"
namespace slopencv
{
/// <summary>Bad solution to Get cv::Mat from CImage</summary>
/// <param name="src">CImage [IN]</param>
/// <param name="dst">cv::Mat [OUT]</param>
void ConvertCImageToCVMat(CImage& ... | 38.468085 | 147 | 0.649705 | [
"vector"
] |
c1680e8137ecce0bb71d4ad9e1362700341c7c9a | 4,818 | cpp | C++ | test-accuracy-msvc-cmath/main.cpp | imallett/minitrig | 6d7269f41850326827b6a6832aee23b49ff39606 | [
"MIT"
] | null | null | null | test-accuracy-msvc-cmath/main.cpp | imallett/minitrig | 6d7269f41850326827b6a6832aee23b49ff39606 | [
"MIT"
] | null | null | null | test-accuracy-msvc-cmath/main.cpp | imallett/minitrig | 6d7269f41850326827b6a6832aee23b49ff39606 | [
"MIT"
] | null | null | null | #include <cassert>
#include <cmath>
#include <cstdio>
#include <algorithm>
#include <chrono>
#include <string>
#include <vector>
#include "../libminitrig/include-f32.hpp"
#include "../libminitrig/include-highprec.hpp"
#include "../libminitrig/_misc.hpp"
#ifdef _MSC_VER
#include <intrin.h>
inline... | 29.740741 | 143 | 0.594853 | [
"vector"
] |
c16a396e75f2974f349e356e29ed804e7cebe933 | 9,273 | cpp | C++ | folly/test/MemoryTest.cpp | x4snowman/folly | d52816c1a5b9315fc01f6907de62468e2ae3612d | [
"Apache-2.0"
] | null | null | null | folly/test/MemoryTest.cpp | x4snowman/folly | d52816c1a5b9315fc01f6907de62468e2ae3612d | [
"Apache-2.0"
] | null | null | null | folly/test/MemoryTest.cpp | x4snowman/folly | d52816c1a5b9315fc01f6907de62468e2ae3612d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2013-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 29.626198 | 80 | 0.69395 | [
"object",
"vector"
] |
c16c80a184d7deddf69e3326e987f50ddcac375e | 3,948 | cc | C++ | src/yb/integration-tests/log_version-test.cc | myang2021/yugabyte-db | 165a48be4c29e408f986f64bc3bba306752de5b9 | [
"Apache-2.0",
"CC0-1.0"
] | 1 | 2021-08-18T03:06:54.000Z | 2021-08-18T03:06:54.000Z | src/yb/integration-tests/log_version-test.cc | myang2021/yugabyte-db | 165a48be4c29e408f986f64bc3bba306752de5b9 | [
"Apache-2.0",
"CC0-1.0"
] | 1 | 2021-08-28T22:46:44.000Z | 2021-08-28T22:46:44.000Z | src/yb/integration-tests/log_version-test.cc | myang2021/yugabyte-db | 165a48be4c29e408f986f64bc3bba306752de5b9 | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | // Copyright (c) YugaByte, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writ... | 32.360656 | 100 | 0.714539 | [
"vector"
] |
c1708eac4cccb5f0ff369d63caadad2ce43a0614 | 3,791 | cpp | C++ | examples/cli_hello.cpp | michab66/dev_smack_cpp | 37d57b8ccf35e8bbcc98c12eeaf2aeb7b82fa6c6 | [
"MIT"
] | 2 | 2021-07-19T16:13:46.000Z | 2021-11-25T13:39:46.000Z | examples/cli_hello.cpp | michab66/dev_smack_cpp | 37d57b8ccf35e8bbcc98c12eeaf2aeb7b82fa6c6 | [
"MIT"
] | 34 | 2021-06-27T08:54:35.000Z | 2022-02-16T09:13:56.000Z | examples/cli_hello.cpp | michab66/dev_smack_cpp | 37d57b8ccf35e8bbcc98c12eeaf2aeb7b82fa6c6 | [
"MIT"
] | null | null | null | /* Smack C++ @ https://github.com/smacklib/dev_smack_cpp
*
* smack::cli example.
*
* Copyright © 2019-2021 Michael Binz
*/
#include <iostream>
#include <string>
// Include smack cli support.
#include <smack_cli.hpp>
// smack::cli's basic concept is to make functions implemented in
// C++ callable from the com... | 30.087302 | 92 | 0.642047 | [
"object"
] |
c17753ba9c09c8486bf507f202be746758968a30 | 35,928 | cpp | C++ | src/htl/GenCommonIncFile.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 13 | 2015-02-26T22:46:18.000Z | 2020-03-24T11:53:06.000Z | src/htl/GenCommonIncFile.cpp | PacificBiosciences/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 5 | 2016-02-25T17:08:19.000Z | 2018-01-20T15:24:36.000Z | src/htl/GenCommonIncFile.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 12 | 2015-04-13T21:39:54.000Z | 2021-01-15T01:00:13.000Z | /* Copyright (c) 2015 Convey Computer Corporation
*
* This file is part of the OpenHT toolset located at:
*
* https://github.com/TonyBrewer/OpenHT
*
* Use and distribution licensed under the BSD 3-clause license.
* See the LICENSE file for the complete license text.
*/
#include "CnyHt.h"
#include "DsnInfo.h"
v... | 37.115702 | 225 | 0.628145 | [
"vector"
] |
c179552c4b8e7ffbbb9b28db690dabfda7df04f8 | 45,368 | cpp | C++ | src/hed/libs/common/XMLNode.cpp | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | src/hed/libs/common/XMLNode.cpp | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | src/hed/libs/common/XMLNode.cpp | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | // -*- indent-tabs-mode: nil -*-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <iostream>
#include <fstream>
#include <cstring>
#include "XMLNode.h"
#include "Utils.h"
namespace Arc {
// prefix == NULL means node should have no namespace
// for default namespace prefix == "" is used
static void Se... | 29.847368 | 137 | 0.588873 | [
"vector"
] |
c17e0d593b6f723d2ab2ca72d74d9ad7fcbb109c | 4,312 | cpp | C++ | logdevice/common/test/AppendProbeControllerTest.cpp | majra20/LogDevice | dea0df7991120d567354d7a29d832b0e10be7477 | [
"BSD-3-Clause"
] | 1,831 | 2018-09-12T15:41:52.000Z | 2022-01-05T02:38:03.000Z | logdevice/common/test/AppendProbeControllerTest.cpp | majra20/LogDevice | dea0df7991120d567354d7a29d832b0e10be7477 | [
"BSD-3-Clause"
] | 183 | 2018-09-12T16:14:59.000Z | 2021-12-07T15:49:43.000Z | logdevice/common/test/AppendProbeControllerTest.cpp | majra20/LogDevice | dea0df7991120d567354d7a29d832b0e10be7477 | [
"BSD-3-Clause"
] | 228 | 2018-09-12T15:41:51.000Z | 2022-01-05T08:12:09.000Z | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "logdevice/common/AppendProbeController.h"
#include <chrono>
#include <folly... | 33.426357 | 78 | 0.705241 | [
"vector"
] |
c17f0ce66d4964fc7832af14e719c7d2ba024148 | 3,700 | cc | C++ | 2019/day10.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | 2019/day10.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | 2019/day10.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | #include <cmath>
#include <iostream>
#include <map>
#include <vector>
using Map = std::vector<bool>;
int width = 0;
int height = 0;
inline int index(int x, int y) { return y * width + x; }
bool ReadMapRow(Map *map) {
std::string row;
if (!std::getline(std::cin, row)) {
return false;
}
for (auto c : row) ... | 24.025974 | 76 | 0.489459 | [
"vector"
] |
c18306e1ea059d025271ec1003eb53b59156ca10 | 4,536 | hpp | C++ | Contrib-Intel/RSD-PSME-RMM/application/include/psme/rest/constants/constants_templates.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 5 | 2019-11-11T07:57:26.000Z | 2022-03-28T08:26:53.000Z | Contrib-Intel/RSD-PSME-RMM/application/include/psme/rest/constants/constants_templates.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 3 | 2019-09-05T21:47:07.000Z | 2019-09-17T18:10:45.000Z | Contrib-Intel/RSD-PSME-RMM/application/include/psme/rest/constants/constants_templates.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 11 | 2019-07-20T00:16:32.000Z | 2022-01-11T14:17:48.000Z | /*!
* @copyright
* Copyright (c) 2018-2019 Intel Corporation
*
* @copyright
* 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
*
* @copyright
* http://www.apache.org/licenses/LICENSE-... | 32.4 | 121 | 0.786155 | [
"model"
] |
c18e3600f620dbe21af9047306acde6c05be3d23 | 1,373 | hpp | C++ | core/src/api/CosmosLikeMultiSendInput.hpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 92 | 2016-11-13T01:28:34.000Z | 2022-03-25T01:11:37.000Z | core/src/api/CosmosLikeMultiSendInput.hpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 242 | 2016-11-28T11:13:09.000Z | 2022-03-04T13:02:53.000Z | core/src/api/CosmosLikeMultiSendInput.hpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 91 | 2017-06-20T10:35:28.000Z | 2022-03-09T14:15:40.000Z | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from messages.djinni
#ifndef DJINNI_GENERATED_COSMOSLIKEMULTISENDINPUT_HPP
#define DJINNI_GENERATED_COSMOSLIKEMULTISENDINPUT_HPP
#include "CosmosLikeAmount.hpp"
#include <iostream>
#include <string>
#include <utility>
#include <vector>
namespace... | 26.403846 | 78 | 0.701384 | [
"vector"
] |
c19247e7b9810d1a55734794686e9addaa61adfd | 1,207 | cpp | C++ | sdk/rms_sdk/Consent/ServiceUrlConsent.cpp | AzureAD/rms-sdk-for-cpp | 0e5d54a030008c5c0f70d8d3d0695fa0722b6ab6 | [
"MIT"
] | 30 | 2015-06-22T23:59:02.000Z | 2021-09-12T05:51:34.000Z | sdk/rms_sdk/Consent/ServiceUrlConsent.cpp | AnthonyCSheehy/rms-sdk-for-cpp | 42985c0b5d93da5bef6bd6c847ddced4be008843 | [
"MIT"
] | 115 | 2015-06-22T18:26:34.000Z | 2022-03-24T16:57:46.000Z | sdk/rms_sdk/Consent/ServiceUrlConsent.cpp | AnthonyCSheehy/rms-sdk-for-cpp | 42985c0b5d93da5bef6bd6c847ddced4be008843 | [
"MIT"
] | 32 | 2015-06-22T08:39:29.000Z | 2022-03-24T16:49:20.000Z | /*
* ======================================================================
* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
* Licensed under the MIT License.
* See LICENSE.md in the project root for license information.
* =====================================================================... | 30.175 | 100 | 0.550124 | [
"vector",
"transform"
] |
c194888d83e9529191950dbec217a6e342574a43 | 17,790 | cpp | C++ | dyros_jet_controller/src/control_base.cpp | DonghyunSung-MS/dyros_jet_avatar | 32d04a2bfd55ad5d95cac09fbaa67799dab68fc8 | [
"BSD-2-Clause"
] | 1 | 2021-04-09T01:17:43.000Z | 2021-04-09T01:17:43.000Z | dyros_jet_controller/src/control_base.cpp | DonghyunSung-MS/dyros_jet_avatar | 32d04a2bfd55ad5d95cac09fbaa67799dab68fc8 | [
"BSD-2-Clause"
] | null | null | null | dyros_jet_controller/src/control_base.cpp | DonghyunSung-MS/dyros_jet_avatar | 32d04a2bfd55ad5d95cac09fbaa67799dab68fc8 | [
"BSD-2-Clause"
] | null | null | null |
#include "dyros_jet_controller/control_base.h"
namespace dyros_jet_controller
{
// Constructor
ControlBase::ControlBase(ros::NodeHandle &nh, double Hz) :
ui_update_count_(0), is_first_boot_(true), Hz_(Hz), control_mask_{}, total_dof_(DyrosJetModel::HW_TOTAL_DOF),
shutdown_flag_(false),
joint_controller_(q_, q_... | 36.012146 | 152 | 0.731816 | [
"vector"
] |
c195e97a85936392e8472c6d62e5621c30e9ba93 | 4,656 | cc | C++ | src/Data_Structure/List/DoubleLinkedList/dsal_double_linked_list.cc | Samukawa-T1/Common-DS-and-Alg-Lib | f77c929aa1da163cdba6552257c707d2bc884b26 | [
"Apache-2.0"
] | null | null | null | src/Data_Structure/List/DoubleLinkedList/dsal_double_linked_list.cc | Samukawa-T1/Common-DS-and-Alg-Lib | f77c929aa1da163cdba6552257c707d2bc884b26 | [
"Apache-2.0"
] | null | null | null | src/Data_Structure/List/DoubleLinkedList/dsal_double_linked_list.cc | Samukawa-T1/Common-DS-and-Alg-Lib | f77c929aa1da163cdba6552257c707d2bc884b26 | [
"Apache-2.0"
] | null | null | null | #include "dsal_double_linked_list.h"
namespace dsal{
template<typename T>
DoubleLinkedList<T>::DoubleLinkedList(){
size_ = 0;
head_ = new DoubleLinkedListNode();
tail_ = new DoubleLinkedListNode();
head_ -> NextNode = tail_;
tail_ -> PrevNode = head_;
}
template<typename T>
DoubleLinkedList<T>::DoubleLinked... | 25.582418 | 87 | 0.680842 | [
"vector"
] |
c19c0930adfd199387da6e481c559f77edd06f62 | 800 | hpp | C++ | lib/interfaces/Vector3d.hpp | benjyup/cpp_arcade | 4b755990b64156148e529da1c39efe8a8c0c5d1f | [
"MIT"
] | null | null | null | lib/interfaces/Vector3d.hpp | benjyup/cpp_arcade | 4b755990b64156148e529da1c39efe8a8c0c5d1f | [
"MIT"
] | null | null | null | lib/interfaces/Vector3d.hpp | benjyup/cpp_arcade | 4b755990b64156148e529da1c39efe8a8c0c5d1f | [
"MIT"
] | null | null | null | //
// Created by puente_t on 13/03/17.
//
#ifndef ARCADE_VECTOR3D_HPP
#define ARCADE_VECTOR3D_HPP
#include <cstdint>
#include <ostream>
namespace arcade
{
class Vector3d
{
private:
int32_t _x;
int32_t _y;
int32_t _z;
public:
Vector3d(int32_t x, int32_t y, int32_t z = 0);
Vector3d(Vecto... | 16 | 70 | 0.66375 | [
"vector"
] |
c19d5015050e6350e020b28ea25ac48189e7d2a4 | 8,573 | hpp | C++ | ext/PaSGAL/csr_char.hpp | cartoonist/PairG | db7d28a5b9d01368dbfd2d9ae97a1d5179605be0 | [
"Apache-2.0"
] | 2 | 2020-07-08T09:10:19.000Z | 2020-09-01T17:54:41.000Z | ext/PaSGAL/csr_char.hpp | cartoonist/PairG | db7d28a5b9d01368dbfd2d9ae97a1d5179605be0 | [
"Apache-2.0"
] | 1 | 2020-10-14T09:09:05.000Z | 2021-03-28T04:38:17.000Z | ext/PaSGAL/csr_char.hpp | cartoonist/PairG | db7d28a5b9d01368dbfd2d9ae97a1d5179605be0 | [
"Apache-2.0"
] | 1 | 2020-08-28T09:02:56.000Z | 2020-08-28T09:02:56.000Z | /**
* @file csr_char.hpp
* @brief routines to store graph in CSR format
* (single character per vertex)
* @author Chirag Jain <cjain7@gatech.edu>
*/
#ifndef CSR_CHAR_CONTAINER_HPP
#define CSR_CHAR_CONTAINER_HPP
#include <cassert>
#include <iostream>
//Own includes
#include "PaSGAL/csr.hpp"
#incl... | 31.288321 | 184 | 0.544384 | [
"vector"
] |
c19dc8ca54a4b636d73a8e89f81f81af258fc3f7 | 4,196 | cpp | C++ | lib/DirManager/dirman.cpp | q4a/TheXTech | 574a4ad6723cce804732337073db9d093cb700b1 | [
"MIT"
] | 1 | 2021-10-10T09:09:26.000Z | 2021-10-10T09:09:26.000Z | src/dirman.cpp | WohlSoft/DirManager | ca8c736925b8b20614b02223dba97049be99233f | [
"MIT"
] | null | null | null | src/dirman.cpp | WohlSoft/DirManager | ca8c736925b8b20614b02223dba97049be99233f | [
"MIT"
] | null | null | null | /*
DirMan - A small crossplatform class to manage directories
Copyright (c) 2017 Vitaliy Novichkov <admin@wohlnet.ru>
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... | 26.897436 | 109 | 0.68756 | [
"vector"
] |
c1a96e642b284e02c1fbfdfa9ac14866fc1a0484 | 25,504 | cpp | C++ | src/Particle/ParticleSet.cpp | recohen/qmcpack | 66c894da2e3108d709dfb4ae5cdf4f756f517763 | [
"NCSA"
] | null | null | null | src/Particle/ParticleSet.cpp | recohen/qmcpack | 66c894da2e3108d709dfb4ae5cdf4f756f517763 | [
"NCSA"
] | null | null | null | src/Particle/ParticleSet.cpp | recohen/qmcpack | 66c894da2e3108d709dfb4ae5cdf4f756f517763 | [
"NCSA"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////////////
// This file is distributed under the University of Illinois/NCSA Open Source License.
// See LICENSE file in top directory for details.
//
// Copyright (c) 2016 Jeongnim Kim and QMCPACK developers.
//
// File developed by: Ken Esler... | 31.447596 | 128 | 0.615707 | [
"vector"
] |
c1b5276abe9bb2d802473b2058521903eb9e4896 | 4,209 | cpp | C++ | dev/floyd_speak/parts/immer-master/benchmark/vector/misc/take.cpp | lemonad/floyd | 736d21f20d1bdab7082b4461d7b6330cb4b10224 | [
"MIT"
] | null | null | null | dev/floyd_speak/parts/immer-master/benchmark/vector/misc/take.cpp | lemonad/floyd | 736d21f20d1bdab7082b4461d7b6330cb4b10224 | [
"MIT"
] | null | null | null | dev/floyd_speak/parts/immer-master/benchmark/vector/misc/take.cpp | lemonad/floyd | 736d21f20d1bdab7082b4461d7b6330cb4b10224 | [
"MIT"
] | null | null | null | //
// immer - immutable data structures for C++
// Copyright (C) 2016, 2017 Juan Pedro Bolivar Puente
//
// This file is part of immer.
//
// immer is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, eith... | 53.961538 | 112 | 0.791399 | [
"vector"
] |
c1b62e7400ffdd05f7100451106a5b9d0c3c7a07 | 20,846 | cpp | C++ | src/math/lp/nex_creator.cpp | CantelopePeel/z3 | 3caf8eb032c2099e06cf38d20e0a981ad8f9716d | [
"MIT"
] | null | null | null | src/math/lp/nex_creator.cpp | CantelopePeel/z3 | 3caf8eb032c2099e06cf38d20e0a981ad8f9716d | [
"MIT"
] | 16 | 2016-04-13T23:48:33.000Z | 2020-02-02T12:38:52.000Z | src/math/lp/nex_creator.cpp | CantelopePeel/z3 | 3caf8eb032c2099e06cf38d20e0a981ad8f9716d | [
"MIT"
] | null | null | null | /*++
Copyright (c) 2017 Microsoft Corporation
Module Name:
<name>
Abstract:
<abstract>
Author:
Nikolaj Bjorner (nbjorner)
Lev Nachmanson (levnach)
Revision History:
--*/
#include "util/lbool.h"
#include "math/lp/nex_creator.h"
#include <map>
using namespace nla;
// divides by variable j. A... | 30.746313 | 129 | 0.492804 | [
"vector"
] |
c1b67244496e5011c1a0d239c52e6fe565417ed6 | 3,228 | cpp | C++ | questions/49727462/assetlistmodel.cpp | sesu089/stackoverflow | 6fae69be6fa74fba9d554e6b5f387e5d3c1aad73 | [
"MIT"
] | 302 | 2017-03-04T00:05:23.000Z | 2022-03-28T22:51:29.000Z | questions/49727462/assetlistmodel.cpp | sesu089/stackoverflow | 6fae69be6fa74fba9d554e6b5f387e5d3c1aad73 | [
"MIT"
] | 30 | 2017-12-02T19:26:43.000Z | 2022-03-28T07:40:36.000Z | questions/49727462/assetlistmodel.cpp | sesu089/stackoverflow | 6fae69be6fa74fba9d554e6b5f387e5d3c1aad73 | [
"MIT"
] | 388 | 2017-07-04T16:53:12.000Z | 2022-03-18T22:20:19.000Z | #include "assetlistmodel.h"
#include "nodemodel.h"
#include <QQmlContext>
AssetListModel::AssetListModel(QObject *parent) : QAbstractListModel(parent) {
model = new NodeModel{this};
}
void AssetListModel::register_objects(const QString &assetName,
const QString &nodeName,
... | 30.45283 | 78 | 0.627014 | [
"model"
] |
c1b83f4ea01582ca94dc9006281cd3aa97554d90 | 2,360 | hpp | C++ | src/viterbi_baseline.hpp | mjgerdes/paraterbi | 914c5430fc053788812cc5da7465b637de22458e | [
"MIT"
] | null | null | null | src/viterbi_baseline.hpp | mjgerdes/paraterbi | 914c5430fc053788812cc5da7465b637de22458e | [
"MIT"
] | null | null | null | src/viterbi_baseline.hpp | mjgerdes/paraterbi | 914c5430fc053788812cc5da7465b637de22458e | [
"MIT"
] | 1 | 2018-12-05T03:31:49.000Z | 2018-12-05T03:31:49.000Z |
#ifndef __VITERBI_BASELINE_HPP__
#define __VITERBI_BASELINE_HPP__
#include "utility.hpp"
#include <iostream>
#include <algorithm>
#include <vector>
template <typename probability_T, template <typename> class matrix_T>
class Viterbi {
public:
using Label_type = int;
using Emission_type = int;
using Probability_t... | 27.126437 | 185 | 0.661017 | [
"vector",
"model"
] |
c1bbdea862e463dc8c0828c1a0111b32a473b03f | 23,342 | hpp | C++ | src/sparse/impl/KokkosSparse_spgemm_mkl_impl.hpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 156 | 2017-03-01T23:38:10.000Z | 2022-03-27T21:28:03.000Z | src/sparse/impl/KokkosSparse_spgemm_mkl_impl.hpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 1,257 | 2017-03-03T15:25:16.000Z | 2022-03-31T19:46:09.000Z | src/sparse/impl/KokkosSparse_spgemm_mkl_impl.hpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 76 | 2017-03-01T17:03:59.000Z | 2022-03-03T21:04:41.000Z | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Govern... | 33.828986 | 148 | 0.637777 | [
"vector"
] |
c1c646cb10fab4d4266423be472456372d5b5f10 | 5,518 | cpp | C++ | networking/client.cpp | firngrod/firnlibs | a8fbdd22ec3b0a9497b809e8b86092e0affea995 | [
"MIT"
] | null | null | null | networking/client.cpp | firngrod/firnlibs | a8fbdd22ec3b0a9497b809e8b86092e0affea995 | [
"MIT"
] | null | null | null | networking/client.cpp | firngrod/firnlibs | a8fbdd22ec3b0a9497b809e8b86092e0affea995 | [
"MIT"
] | null | null | null | #include "networking.hpp"
#ifdef __GNUC__
#include "unistd.h"
#endif
#include <iostream>
namespace FirnLibs {
Networking::Client::Client() :
sharedThis(new FirnLibs::Threading::GuardedVar<Client *>(this))
{
identifier = 0;
limboState = nullptr;
errorNo = 0;
}
Networking::Client::~Client()
{
{
auto token... | 30.655556 | 121 | 0.67597 | [
"vector"
] |
c1ce83ab732414685b2e287aec7e313521064042 | 8,074 | cpp | C++ | src/mesh/NetworkData.cpp | payano/mMesh | 151ab475ad6ea66a608566098755dbad39eca058 | [
"MIT"
] | null | null | null | src/mesh/NetworkData.cpp | payano/mMesh | 151ab475ad6ea66a608566098755dbad39eca058 | [
"MIT"
] | 37 | 2020-03-02T18:31:57.000Z | 2020-05-20T07:18:14.000Z | src/mesh/NetworkData.cpp | payano/mMesh | 151ab475ad6ea66a608566098755dbad39eca058 | [
"MIT"
] | 2 | 2020-03-10T17:35:27.000Z | 2020-04-24T10:51:47.000Z | /*
MIT License
Copyright (c) 2020 Johan Svensson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... | 28.835714 | 98 | 0.711915 | [
"mesh"
] |
c1d24afa67e787074ce584aebf6d467586731743 | 13,866 | cpp | C++ | WaterFallView/OrientedVirtualizingPanel.cpp | Tlaster/Marduk.Controls | 111e564617403c97a2f72e64b2673cdef62e1c0e | [
"WTFPL"
] | 1 | 2019-02-19T10:24:28.000Z | 2019-02-19T10:24:28.000Z | WaterFallView/OrientedVirtualizingPanel.cpp | Tlaster/Marduk.Controls | 111e564617403c97a2f72e64b2673cdef62e1c0e | [
"WTFPL"
] | null | null | null | WaterFallView/OrientedVirtualizingPanel.cpp | Tlaster/Marduk.Controls | 111e564617403c97a2f72e64b2673cdef62e1c0e | [
"WTFPL"
] | null | null | null | #include "pch.h"
#include "OrientedVirtualizingPanel.h"
using namespace WaterFallView;
void OrientedVirtualizingPanel::ScrollIntoView(unsigned int index)
{
this->ScrollIntoView(index, false);
}
void OrientedVirtualizingPanel::ScrollIntoView(Platform::Object ^ item)
{
this->ScrollIntoView(item, false);
}
voi... | 28.413934 | 228 | 0.654118 | [
"object",
"vector"
] |
c1d8164508ce2e8339c006f529712d43d0765aa9 | 4,823 | hpp | C++ | src/data/Bonus_Levels.hpp | Snackya/KH2-co-op-mix | d585c67743e7555d7aed789ed282a50024ef0e17 | [
"MIT"
] | 2 | 2021-07-03T17:38:39.000Z | 2021-09-11T21:10:55.000Z | src/data/Bonus_Levels.hpp | Snackya/KH2-Co-op-Mix | d585c67743e7555d7aed789ed282a50024ef0e17 | [
"MIT"
] | 6 | 2021-09-12T02:15:06.000Z | 2021-09-13T03:58:21.000Z | src/data/Bonus_Levels.hpp | Snackya/KH2-co-op-mix | d585c67743e7555d7aed789ed282a50024ef0e17 | [
"MIT"
] | null | null | null | #pragma once
#include <map>
#include <string>
// addr1: HP,MP
// addr2: armor/accessory/item slots
// addr3: item1, item2
// see https://pastebin.com/WfGrYcBK
// {bitmask address, value},
// {value , [addr1, addr2, addr3]}
static inline std::multimap<uint16_t, std::pair<uint8_t, std::vector<uint32_t>>> bonus... | 65.175676 | 100 | 0.639643 | [
"vector"
] |
c1daae43b8ec53c46ccb96760da6ab6263d66636 | 2,320 | cpp | C++ | src/util.cpp | devinus/kaolin | 260e7e16feab90ddd7a044d3bbeb2abc89ccd7c2 | [
"MIT"
] | 2 | 2016-05-08T12:31:51.000Z | 2017-07-10T13:39:33.000Z | src/util.cpp | devinus/kaolin | 260e7e16feab90ddd7a044d3bbeb2abc89ccd7c2 | [
"MIT"
] | null | null | null | src/util.cpp | devinus/kaolin | 260e7e16feab90ddd7a044d3bbeb2abc89ccd7c2 | [
"MIT"
] | null | null | null | /*
* Kaolin - Exfoliate your face
* Copyright (c) 2008 Devin Torres
* Licensed under the MIT license.
*/
#include <iostream>
#include <string>
#include <vector>
#include "config.h"
#include "main.h"
#include "server.h"
namespace util
{
/*
* Utility functions declatations.
*/
std::string center_str(const std:... | 14.409938 | 61 | 0.521983 | [
"vector"
] |
c1dd253071069050990614a40567d585f27e4e50 | 1,516 | cpp | C++ | actor_grt_rtw/rt_look2d_normal.cpp | HaiyinPiao/aca_arena | 53a307a42833898ae6fe5083124f01cfaf923e19 | [
"MIT"
] | 1 | 2020-06-06T13:26:19.000Z | 2020-06-06T13:26:19.000Z | actor_grt_rtw/rt_look2d_normal.cpp | HaiyinPiao/aca_arena | 53a307a42833898ae6fe5083124f01cfaf923e19 | [
"MIT"
] | null | null | null | actor_grt_rtw/rt_look2d_normal.cpp | HaiyinPiao/aca_arena | 53a307a42833898ae6fe5083124f01cfaf923e19 | [
"MIT"
] | null | null | null | /*
* rt_look2d_normal.cpp
*
* Code generation for model "actor".
*
* Model version : 1.1483
* Simulink Coder version : 8.11 (R2016b) 25-Aug-2016
* C++ source code generated on : Fri Jan 19 11:20:06 2018
*
* Target selection: grt.tlc
* Note: GRT includes extra infrastructure and instrumentation fo... | 28.603774 | 78 | 0.631926 | [
"model"
] |
c1e521cc7b53236d96c214c3bbe7ef8f3fdb725e | 8,005 | cpp | C++ | Projects/4.Intermediate.Code.Generation/snuplc/src/symtab.cpp | hhosu107/Compiler | 3c12d5a0584a9b333af66a7eddb5960bbe537425 | [
"MIT"
] | 2 | 2016-03-22T10:56:00.000Z | 2022-03-26T15:43:46.000Z | Projects/4.Intermediate.Code.Generation/snuplc/src/symtab.cpp | hhosu107/Compiler | 3c12d5a0584a9b333af66a7eddb5960bbe537425 | [
"MIT"
] | 3 | 2016-03-22T16:18:44.000Z | 2016-03-23T01:49:58.000Z | Projects/4.Intermediate.Code.Generation/snuplc/src/symtab.cpp | hhosu107/Compiler | 3c12d5a0584a9b333af66a7eddb5960bbe537425 | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
/// @brief SnuPL symbol table
/// @author Bernhard Egger <bernhard@csap.snu.ac.kr>
/// @section changelog Change Log
/// 2012/09/14 Bernhard Egger created
/// 2016/04/05 Bernhard Egger bugfix in CSymtab::print
///
/// @section license_sect... | 22.871429 | 80 | 0.596877 | [
"vector"
] |
c1e7328c58e3191ae87f9e78963c2183fd489708 | 2,462 | cpp | C++ | examples/pong/ball.cpp | Miyake-Diogo/abcg | 4963eb03dec419501924ad488f36eef193dd700c | [
"MIT"
] | null | null | null | examples/pong/ball.cpp | Miyake-Diogo/abcg | 4963eb03dec419501924ad488f36eef193dd700c | [
"MIT"
] | null | null | null | examples/pong/ball.cpp | Miyake-Diogo/abcg | 4963eb03dec419501924ad488f36eef193dd700c | [
"MIT"
] | null | null | null | #include "ball.hpp"
#include <cppitertools/itertools.hpp>
#include <glm/gtx/rotate_vector.hpp>
void Ball::initializeGL(GLuint program) {
terminateGL();
m_program = program;
m_colorLoc = abcg::glGetUniformLocation(m_program, "color");
m_rotationLoc = abcg::glGetUniformLocation(m_program, "rotation");
m_scal... | 27.977273 | 75 | 0.703899 | [
"vector"
] |
c1ed12094ac1dc1fbcaf1e4864b3e4f2953f2c24 | 8,585 | cpp | C++ | common/printfile.cpp | austinseraphin/wwiv | 9944737b0ece0e3f80656c7af08ab4dafceebdd3 | [
"Apache-2.0"
] | null | null | null | common/printfile.cpp | austinseraphin/wwiv | 9944737b0ece0e3f80656c7af08ab4dafceebdd3 | [
"Apache-2.0"
] | null | null | null | common/printfile.cpp | austinseraphin/wwiv | 9944737b0ece0e3f80656c7af08ab4dafceebdd3 | [
"Apache-2.0"
] | null | null | null | /**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2021, WWIV Software Services */
/* ... | 33.275194 | 103 | 0.591497 | [
"render",
"vector"
] |
c1f4da59d4485e81a26d34757505c3f477f02334 | 10,511 | hpp | C++ | SarvLibrary/ErrorCorrection/LoRDEC/thirdparty/gatb-core/src/gatb/tools/misc/impl/Tool.hpp | cwright7101/llvm_sarvavid | 7567d617a7be78fecfde71ab04ebd8e9506a64e4 | [
"MIT"
] | null | null | null | SarvLibrary/ErrorCorrection/LoRDEC/thirdparty/gatb-core/src/gatb/tools/misc/impl/Tool.hpp | cwright7101/llvm_sarvavid | 7567d617a7be78fecfde71ab04ebd8e9506a64e4 | [
"MIT"
] | null | null | null | SarvLibrary/ErrorCorrection/LoRDEC/thirdparty/gatb-core/src/gatb/tools/misc/impl/Tool.hpp | cwright7101/llvm_sarvavid | 7567d617a7be78fecfde71ab04ebd8e9506a64e4 | [
"MIT"
] | null | null | null | /*****************************************************************************
* GATB : Genome Assembly Tool Box
* Copyright (C) 2014 INRIA
* Authors: R.Chikhi, G.Rizk, E.Drezen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public ... | 35.390572 | 135 | 0.606983 | [
"object"
] |
c1f6977e3cf256a32d6107a900f851b965debefe | 51 | cpp | C++ | src/comm_comp/mesh.cpp | wu1274704958/vulkan_demo | 545e00a1fae98e0ff179115887dfa7669b56ccde | [
"MIT"
] | null | null | null | src/comm_comp/mesh.cpp | wu1274704958/vulkan_demo | 545e00a1fae98e0ff179115887dfa7669b56ccde | [
"MIT"
] | null | null | null | src/comm_comp/mesh.cpp | wu1274704958/vulkan_demo | 545e00a1fae98e0ff179115887dfa7669b56ccde | [
"MIT"
] | 1 | 2021-12-27T08:40:07.000Z | 2021-12-27T08:40:07.000Z | #include <comm_comp/mesh.hpp>
namespace vkd
{
}
| 7.285714 | 29 | 0.686275 | [
"mesh"
] |
c1faf33d4db46fe99166afbc985002d7322c1624 | 4,149 | cpp | C++ | examples/threads/main.cpp | VXAPPS/modern.cpp.logger | 0120b3624f65b8c765353180c5a333244e1d3d61 | [
"BSD-3-Clause"
] | null | null | null | examples/threads/main.cpp | VXAPPS/modern.cpp.logger | 0120b3624f65b8c765353180c5a333244e1d3d61 | [
"BSD-3-Clause"
] | null | null | null | examples/threads/main.cpp | VXAPPS/modern.cpp.logger | 0120b3624f65b8c765353180c5a333244e1d3d61 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2021 Florian Becker <fb@vxapps.com> (VX APPS).
* 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 notic... | 32.414063 | 125 | 0.688118 | [
"vector"
] |
c1fef204995851aab7593478bce3877362a2f416 | 7,925 | cpp | C++ | plugin/AL_USDMayaTestPlugin/test_translators_CameraTranslator.cpp | AlexSchwank/AL_USDMaya | 99413e2c5d1c93e4c58a63ebc8b07e23cf072e86 | [
"Apache-2.0"
] | null | null | null | plugin/AL_USDMayaTestPlugin/test_translators_CameraTranslator.cpp | AlexSchwank/AL_USDMaya | 99413e2c5d1c93e4c58a63ebc8b07e23cf072e86 | [
"Apache-2.0"
] | null | null | null | plugin/AL_USDMayaTestPlugin/test_translators_CameraTranslator.cpp | AlexSchwank/AL_USDMaya | 99413e2c5d1c93e4c58a63ebc8b07e23cf072e86 | [
"Apache-2.0"
] | null | null | null | //
// Copyright 2017 Animal Logic
//
// 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 ... | 34.758772 | 120 | 0.640252 | [
"transform"
] |
de014afde8adc1f9171be640ff2c0056ffe351ef | 17,277 | cpp | C++ | Source/SprueEngine/Graph/GraphNode.cpp | Qt-Widgets/TexGraph | 8fe72cea1afcf5e235c810003bf4ee062bb3fc13 | [
"MIT"
] | 35 | 2017-04-07T22:49:41.000Z | 2021-08-03T13:59:20.000Z | Source/SprueEngine/Graph/GraphNode.cpp | Qt-Widgets/TexGraph | 8fe72cea1afcf5e235c810003bf4ee062bb3fc13 | [
"MIT"
] | 1 | 2017-04-13T17:43:54.000Z | 2017-04-15T04:17:37.000Z | Source/SprueEngine/Graph/GraphNode.cpp | Qt-Widgets/TexGraph | 8fe72cea1afcf5e235c810003bf4ee062bb3fc13 | [
"MIT"
] | 7 | 2019-03-11T19:26:53.000Z | 2021-03-04T07:17:10.000Z | #include <SprueEngine/Graph/GraphNode.h>
#include <SprueEngine/Core/Context.h>
#include <SprueEngine/Graph/Graph.h>
#include <SprueEngine/Graph/GraphSocket.h>
namespace SprueEngine
{
GraphNode::~GraphNode()
{
for (GraphSocket* socket : outputFlowSockets)
delete socket;
for (GraphSocket* ... | 32.721591 | 127 | 0.632112 | [
"vector"
] |
9004cff4857e4b793eec1c09b910229ac747b624 | 470 | cpp | C++ | nice/main.cpp | nikolyanikolya/some_repository | 41bdbda91f48e6df724ebaeae199c157099e59cb | [
"Apache-2.0"
] | null | null | null | nice/main.cpp | nikolyanikolya/some_repository | 41bdbda91f48e6df724ebaeae199c157099e59cb | [
"Apache-2.0"
] | null | null | null | nice/main.cpp | nikolyanikolya/some_repository | 41bdbda91f48e6df724ebaeae199c157099e59cb | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main() {
std::vector<int> long_number;
string init_str;
std::cin >> init_str;
long_number.resize(init_str.length());
for (int i = init_str.length()-1; i >=0; i--) {
char symbol = init_str[i];
long_number[long_number.size... | 23.5 | 63 | 0.561702 | [
"vector"
] |
900a1fd86ba253af963aeff368de298b921ed549 | 5,584 | cpp | C++ | tests/tests_coordinate.cpp | BenrickSmit/Skila | 2ea5428a215448626fc7dedbb9350045e6c822d1 | [
"Apache-2.0"
] | null | null | null | tests/tests_coordinate.cpp | BenrickSmit/Skila | 2ea5428a215448626fc7dedbb9350045e6c822d1 | [
"Apache-2.0"
] | 1 | 2021-01-11T08:38:32.000Z | 2021-01-11T08:38:32.000Z | tests/tests_coordinate.cpp | BenrickSmit/Skila | 2ea5428a215448626fc7dedbb9350045e6c822d1 | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include "gtest/gtest.h"
#include "Coordinate.h"
// Coordinate Test Suite
// Coordinate Accept Cooridinates
TEST(TEST_COORDINATE_SUITE, ctor_OriginCoordinateAsIntInput_ExpectGettersAsZero) {
Coordinate coord{0,0,0};
EXPECT_EQ(0, coord.get_x());
EXPECT_EQ(0, coord.get_y());
EXP... | 36.25974 | 111 | 0.746418 | [
"vector"
] |
900b5604bdc7588f98b02c7dee1657f2cad211e1 | 1,534 | cpp | C++ | RealityCore/Source/main.cpp | Intro-Ventors/Re-Co-Desktop | 8547cca9230069a36973ec836426d4610f30f8bb | [
"MIT"
] | null | null | null | RealityCore/Source/main.cpp | Intro-Ventors/Re-Co-Desktop | 8547cca9230069a36973ec836426d4610f30f8bb | [
"MIT"
] | null | null | null | RealityCore/Source/main.cpp | Intro-Ventors/Re-Co-Desktop | 8547cca9230069a36973ec836426d4610f30f8bb | [
"MIT"
] | null | null | null | // Copyright (c) 2022 Intro-Ventors
#include "GUI/ApplicationGUI.hpp"
#ifdef RECO_SHARED
# if defined(Q_OS_WINDOWS)
# define RECO_API __declspec(dllexport)
# elif defined(Q_OS_LINUX) || defined(Q_OS_DARWIN)
# define RECO_API __attribute__((visibility("default")))
#endif
#else
# define RECO_API
#endif // RECO_S... | 18.261905 | 63 | 0.704042 | [
"object"
] |
900cd1a77dd3048c8da1a1c00f785a6d7ab786d5 | 26,281 | cpp | C++ | gMotifs/inc.cpp | matteocereda/RNAmotifs | dc1498e867e84ed19322920d7b0299939fa613b5 | [
"MIT"
] | 7 | 2016-03-11T13:53:34.000Z | 2021-04-11T14:58:04.000Z | gMotifs/inc.cpp | matteocereda/RNAmotifs | dc1498e867e84ed19322920d7b0299939fa613b5 | [
"MIT"
] | 1 | 2018-09-30T07:28:59.000Z | 2018-10-23T07:06:38.000Z | gMotifs/inc.cpp | matteocereda/RNAmotifs | dc1498e867e84ed19322920d7b0299939fa613b5 | [
"MIT"
] | 3 | 2016-12-16T07:49:25.000Z | 2020-04-07T05:35:01.000Z | /***************************************************************************
* Copyright (C) 2010 by Matteo Cereda *
* mcereda@tinca.bp.lnf.it *
* *
* This program is free software; you can redistribute it and/or modify *
* it und... | 34.354248 | 217 | 0.564743 | [
"vector"
] |
900f61878aacee3fbf7ce6f4905eabbb37f48284 | 23,271 | cpp | C++ | frontend/typer.cpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | frontend/typer.cpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | frontend/typer.cpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | #include <becarre/frontend/typer.hpp>
#include <becarre/frontend/typing/equality_checker.hpp>
#include <becarre/frontend/typing/normalisation.hpp>
#include <becarre/frontend/typing/printer.hpp>
#include <becarre/frontend/typing/specialisation.hpp>
#include <becarre/frontend/typing/substitution.hpp>
#include <becarre/f... | 30.660079 | 119 | 0.649693 | [
"vector",
"transform"
] |
9011c23011bcdf9acfae3992bb5ab78fcda3a392 | 6,281 | cc | C++ | third_party/blink/renderer/modules/background_sync/sync_manager.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/modules/background_sync/sync_manager.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/modules/background_sync/sync_manager.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 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 "third_party/blink/renderer/modules/background_sync/sync_manager.h"
#include "third_party/blink/public/common/thread_safe_browser_interface_brok... | 40.785714 | 90 | 0.72775 | [
"vector"
] |
9012251eb0d9ed0362662ac4a7732ce8dd0ff780 | 28,538 | cpp | C++ | ds/security/gina/snapins/fde/scope.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/security/gina/snapins/fde/scope.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/security/gina/snapins/fde/scope.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+--------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1994 - 1998.
//
// File: scope.cpp
//
// Contents: implementation of the scope pane
//
// Classes: CScopePane
//
// History: 03-14-1998 stevebl ... | 29.882723 | 128 | 0.518747 | [
"object"
] |
901611ee1df576cfd2c11590c0639564d2f3c146 | 931 | cpp | C++ | contest/1397/c/c.cpp | GoatGirl98/cf | 4077ca8e0fe29dc2bbb7b60166989857cc062e17 | [
"MIT"
] | null | null | null | contest/1397/c/c.cpp | GoatGirl98/cf | 4077ca8e0fe29dc2bbb7b60166989857cc062e17 | [
"MIT"
] | null | null | null | contest/1397/c/c.cpp | GoatGirl98/cf | 4077ca8e0fe29dc2bbb7b60166989857cc062e17 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define watch(x) std::cout << (#x) << " is " << (x) << std::endl
#define print(x) std::cout << (x) << std::endl
using LL = long long;
int main() {
//freopen("in", "r", stdin);
std::cin.tie(nullptr)->sync_with_stdio(false);
int n;
std::cin >> n;
std::vector<LL> a(n);
for (auto &x : a) std:... | 26.6 | 64 | 0.460795 | [
"vector"
] |
902186c89ca8c391b68ee799615d9e4f6f9708a4 | 584 | cpp | C++ | cpp/group_anagrams.cpp | angelopassaro/Hacktoberfest-1 | 21f90f5d49efba9b1a27f4d9b923f5017ab43f0e | [
"Apache-2.0"
] | 1 | 2020-10-06T01:20:07.000Z | 2020-10-06T01:20:07.000Z | cpp/group_anagrams.cpp | angelopassaro/Hacktoberfest-1 | 21f90f5d49efba9b1a27f4d9b923f5017ab43f0e | [
"Apache-2.0"
] | null | null | null | cpp/group_anagrams.cpp | angelopassaro/Hacktoberfest-1 | 21f90f5d49efba9b1a27f4d9b923f5017ab43f0e | [
"Apache-2.0"
] | null | null | null | /*
Input:
2
5
act cat tac god dog
3
act cat tac
Output:
2 3
3
*/
#include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int n;
map<string,int> m;
vector<int> v;
cin>>n;
string s[n];
for(int i=0;i<n;i++){
cin>>s[i];
// cin.ignore();
sort(s[... | 13.581395 | 38 | 0.479452 | [
"vector"
] |
9026be14155fa1f437902c7ac9b47743aa150951 | 6,939 | cpp | C++ | source/Server/tlc-server/socket/ltfsTask.cpp | BDT-GER/SWIFT-TLC | 1474a36c67b03797b37ff40ea2df78a582c8147b | [
"Apache-2.0"
] | 22 | 2015-04-23T20:02:18.000Z | 2018-06-02T03:30:39.000Z | source/Server/tlc-server/socket/ltfsTask.cpp | BDT-GER/SWIFT-TLC | 1474a36c67b03797b37ff40ea2df78a582c8147b | [
"Apache-2.0"
] | null | null | null | source/Server/tlc-server/socket/ltfsTask.cpp | BDT-GER/SWIFT-TLC | 1474a36c67b03797b37ff40ea2df78a582c8147b | [
"Apache-2.0"
] | 8 | 2015-05-24T18:13:48.000Z | 2022-03-26T16:36:58.000Z | /*
* ltfsTask.cpp
*
* Created on: 2012-8-22
* Author: chento
*/
#include "ltfsTaskManagement.h"
#include "ltfsTask.h"
namespace ltfs_soapserver
{
string
Task::Status2String(StatusForTask status)
{
switch(status)
{
case Status_Loading:
return "loading";
case Status_Formattin... | 19.939655 | 109 | 0.636835 | [
"vector"
] |
9028e7fa578599221f8f3c70ff3a762704caa0c7 | 6,972 | cpp | C++ | Systems/Physics/CoreActions.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | 52 | 2018-09-11T17:18:35.000Z | 2022-03-13T15:28:21.000Z | Systems/Physics/CoreActions.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | 1,409 | 2018-09-19T18:03:43.000Z | 2021-06-09T08:33:33.000Z | Systems/Physics/CoreActions.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | 26 | 2018-09-11T17:16:32.000Z | 2021-11-22T06:21:19.000Z | ///////////////////////////////////////////////////////////////////////////////
///
/// Authors: Joshua Davis
/// Copyright 2011-2017, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#include "Precompiled.hpp"
namespace Zero
{
namespace Ph... | 24.9 | 92 | 0.670683 | [
"object",
"transform"
] |
902c04c0dda80b51c8262b6057fe62d73969fa2a | 1,756 | hpp | C++ | tests/libs/fakeParticle/api/fakeParticleDevice.hpp | charleskorn/weather-thingy-particle | 0f64d4bcd8145899cac73e4b678202552702aa82 | [
"MIT"
] | null | null | null | tests/libs/fakeParticle/api/fakeParticleDevice.hpp | charleskorn/weather-thingy-particle | 0f64d4bcd8145899cac73e4b678202552702aa82 | [
"MIT"
] | null | null | null | tests/libs/fakeParticle/api/fakeParticleDevice.hpp | charleskorn/weather-thingy-particle | 0f64d4bcd8145899cac73e4b678202552702aa82 | [
"MIT"
] | null | null | null | #pragma once
#include <stdint.h>
#include <vector>
#include <unordered_map>
#include <memory>
#include "pinmap_hal.h"
#include "spark_wiring_constants.h"
#include "eventChain.hpp"
#include "timeUnit.hpp"
#include "expectations/expectations.hpp"
#include "particleEvent.hpp"
namespace FakeParticle {
class FakeParti... | 27.873016 | 71 | 0.752847 | [
"vector"
] |
902ff302fe66f83b98482cb721a764229f8eff4c | 45,532 | cpp | C++ | dpcpp/cfd/euler3d_double.dp.cpp | CR-G/rodinia-dpct-dpcpp | a0e80bd715c3cc7c3356e1e00245b91e15927d2c | [
"MIT"
] | 1 | 2022-03-28T18:13:13.000Z | 2022-03-28T18:13:13.000Z | dpcpp/cfd/euler3d_double.dp.cpp | artecs-group/rodinia-dpct-dpcpp | a0e80bd715c3cc7c3356e1e00245b91e15927d2c | [
"MIT"
] | 7 | 2021-04-15T11:53:20.000Z | 2021-05-15T08:58:30.000Z | dpcpp/cfd/euler3d_double.dp.cpp | artecs-group/rodinia-dpct-dpcpp | a0e80bd715c3cc7c3356e1e00245b91e15927d2c | [
"MIT"
] | null | null | null | // Copyright 2009, Andrew Corrigan, acorriga@gmu.edu
// This code is from the AIAA-2009-4001 paper
// #include <cutil.h>
#include <CL/sycl.hpp>
#include <dpct/dpct.hpp>
#include "helper_cuda.h"
#include "helper_timer.h"
#include <iostream>
#include <fstream>
#include <cmath>
#include "../common.hpp"
#if CUDART_VERSIO... | 39.083262 | 290 | 0.550668 | [
"geometry"
] |
90341e4d4f8fee2f0960c21cfd5db2822b343e58 | 3,727 | cpp | C++ | src/Library/Physics/Data/Direction.cpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | src/Library/Physics/Data/Direction.cpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | src/Library/Physics/Data/Direction.cpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Library ▸ Physics
/// @file Library/Physics/Data/Direction.cpp
/// @author Lucas Brémond <lucas@loftorbital.com>
/// @li... | 41.411111 | 213 | 0.332439 | [
"vector"
] |
903cd33b5cd00f8c7b777a49a275a470feeb65ae | 1,338 | cpp | C++ | microcode/addr_alu_test.cpp | mortenjc/fpgacode | 28849d243f76fad71e0df720e2afe142fcc06ef9 | [
"BSD-2-Clause"
] | null | null | null | microcode/addr_alu_test.cpp | mortenjc/fpgacode | 28849d243f76fad71e0df720e2afe142fcc06ef9 | [
"BSD-2-Clause"
] | null | null | null | microcode/addr_alu_test.cpp | mortenjc/fpgacode | 28849d243f76fad71e0df720e2afe142fcc06ef9 | [
"BSD-2-Clause"
] | null | null | null |
#include <addr_alu_alu_types.h>
#include <addr_alu.h>
#include <verilated.h>
#include <gtest/gtest.h>
#include <string>
#include <vector>
class TestCase {
public:
std::string name;
uint32_t x;
uint32_t y; // unused
uint8_t cmd;
uint32_t expected_z;
uint8_t expected_zflag;
};
using cmd_t = addr_alu_alu_ty... | 19.676471 | 63 | 0.573991 | [
"vector"
] |
9041484817ac99f7886760cc65834dcffa4f4364 | 9,520 | cpp | C++ | WaveletTL/tests/test_tbasis_equation.cpp | kedingagnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 3 | 2018-05-20T15:25:58.000Z | 2021-01-19T18:46:48.000Z | WaveletTL/tests/test_tbasis_equation.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | null | null | null | WaveletTL/tests/test_tbasis_equation.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 2 | 2019-04-24T18:23:26.000Z | 2020-09-17T10:00:27.000Z | #include <iostream>
#include <fstream>
#include <set>
#include <algebra/vector.h>
#include <algebra/infinite_vector.h>
#include <utils/function.h>
#include <utils/fixed_array1d.h>
#include <numerics/bvp.h>
#include <numerics/bezier.h>
#include <geometry/sampled_mapping.h>
//#include <interval/ds_basis.h>
#include <in... | 31.315789 | 173 | 0.607668 | [
"geometry",
"vector"
] |
9048ceb784dbae7bd3f1fb3633d48abdae69d5e8 | 752 | cpp | C++ | src/devices/M5Atom.cpp | miso-develop/opniz-device | 203c019a2088ede9aab79ec69ebe4fd5f857ff9f | [
"MIT"
] | 3 | 2021-03-18T07:23:38.000Z | 2021-09-06T11:37:54.000Z | src/devices/M5Atom.cpp | miso-develop/opniz-device | 203c019a2088ede9aab79ec69ebe4fd5f857ff9f | [
"MIT"
] | null | null | null | src/devices/M5Atom.cpp | miso-develop/opniz-device | 203c019a2088ede9aab79ec69ebe4fd5f857ff9f | [
"MIT"
] | null | null | null | #include "devices/M5Atom.h"
Opniz::M5Atom::M5Atom(const char* address, uint16_t port) : Esp32(address, port) {
name = "m5atom";
addHandler({
new DrawpixHandler
});
addEmitter({
new ButtonEmitter
});
};
String Opniz::M5Atom::DrawpixHandler::handle(JsonArray parameters) {... | 21.485714 | 82 | 0.655585 | [
"vector"
] |
904d797cd8c3f5405108d8101d633dd5dab78a78 | 292 | cpp | C++ | Cpp/1085.sum-of-digits-in-the-minimum-number.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | 1 | 2015-12-19T23:05:35.000Z | 2015-12-19T23:05:35.000Z | Cpp/1085.sum-of-digits-in-the-minimum-number.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | Cpp/1085.sum-of-digits-in-the-minimum-number.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | class Solution {
public:
int sumOfDigits(vector<int>& A) {
int min_num = INT_MAX;
for (int &a : A) min_num = std::min(min_num, a);
int sum = 0;
for (char c : std::to_string(min_num)) sum += (c - '0');
return sum % 2 == 0;
}
}; | 24.333333 | 64 | 0.476027 | [
"vector"
] |
9053831fd568f1d2bb2d5ebb761374c963506f39 | 4,972 | cpp | C++ | src/caffe/layers/roi_crop_layer.cpp | superxuang/caffe_3d_faster_rcnn | 5a18ab92997885f4b6033ed1f1b9ba907b1e2609 | [
"BSD-2-Clause"
] | 38 | 2018-07-30T07:53:56.000Z | 2022-02-23T13:57:49.000Z | src/caffe/layers/roi_crop_layer.cpp | superxuang/caffe_triple-branch_FCN | e6b3ce2969dc95c55c25921194b93b05513f09ef | [
"MIT"
] | 22 | 2018-07-12T03:33:35.000Z | 2021-09-07T16:29:41.000Z | src/caffe/layers/roi_crop_layer.cpp | Wangdali-jpg/caffe_3d_faster_rcnn | 5a18ab92997885f4b6033ed1f1b9ba907b1e2609 | [
"BSD-2-Clause"
] | 20 | 2019-01-01T07:33:56.000Z | 2021-09-17T12:50:17.000Z | // ------------------------------------------------------------------
// Fast R-CNN
// Copyright (c) 2015 Microsoft
// Licensed under The MIT License [see fast-rcnn/LICENSE for details]
// Written by Ross Girshick
// ------------------------------------------------------------------
#include <cfloat>
#include "caffe/... | 34.769231 | 92 | 0.631939 | [
"shape",
"vector"
] |
9059fc82e173eea6c7ea4bfe49b1cc88e6685164 | 32,122 | cpp | C++ | application_sandbox/create_renderpass2/main.cpp | Linux-project/vulkan_test_applications | cc9b2a8075eb69bada9aafc0e6765dbf7e455db1 | [
"Apache-2.0"
] | null | null | null | application_sandbox/create_renderpass2/main.cpp | Linux-project/vulkan_test_applications | cc9b2a8075eb69bada9aafc0e6765dbf7e455db1 | [
"Apache-2.0"
] | null | null | null | application_sandbox/create_renderpass2/main.cpp | Linux-project/vulkan_test_applications | cc9b2a8075eb69bada9aafc0e6765dbf7e455db1 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 46.553623 | 80 | 0.562294 | [
"render",
"vector",
"model",
"transform"
] |
905c39bff46f0f4bfdde027388522cc79698366f | 469 | hpp | C++ | demos/Asteroids/src/PlayerText.hpp | Zephilinox/Enki | 5f405fec9ae0f3c3344a99fbee590d76ed4dbe55 | [
"MIT"
] | 2 | 2021-01-20T11:31:44.000Z | 2022-01-11T01:38:01.000Z | demos/Asteroids/src/PlayerText.hpp | Zephilinox/Enki | 5f405fec9ae0f3c3344a99fbee590d76ed4dbe55 | [
"MIT"
] | null | null | null | demos/Asteroids/src/PlayerText.hpp | Zephilinox/Enki | 5f405fec9ae0f3c3344a99fbee590d76ed4dbe55 | [
"MIT"
] | null | null | null | #pragma once
//SELF
#include "CustomData.hpp"
//LIBS
#include <Enki/Entity.hpp>
class PlayerText : public enki::Entity
{
public:
PlayerText(enki::EntityInfo info, CustomData* custom_data);
void onSpawn(enki::Packet p) final;
void update(float dt) final;
void draw(enki::Renderer* renderer) final;
std::vector<st... | 21.318182 | 83 | 0.739872 | [
"vector"
] |
906234a122aed17e7a5fef3ec7c127e9db4c3958 | 9,976 | hpp | C++ | hex/cholmod/hala_cholmod.hpp | LIBHALA/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T16:21:42.000Z | 2021-02-25T16:21:42.000Z | hex/cholmod/hala_cholmod.hpp | mkstoyanov/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 9 | 2020-09-03T23:31:22.000Z | 2020-10-21T23:40:11.000Z | hex/cholmod/hala_cholmod.hpp | mkstoyanov/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 2 | 2020-03-03T17:39:37.000Z | 2020-11-05T16:01:28.000Z | #ifndef __HALA_CHOLMOD_WRAPPERS_HPP
#define __HALA_CHOLMOD_WRAPPERS_HPP
/*
* Code Author: Miroslav Stoyanov
*
* Copyright (C) 2018 Miroslav Stoyanov
*
* This file is part of
* Hardware Accelerated Linear Algebra (HALA)
*
*/
/*!
* \file hala_cholmod.hpp
* \brief HALA wrapper for Cholmod functions
* \author ... | 41.22314 | 157 | 0.692562 | [
"vector"
] |
906eab4dce0fee24918d8afe97d6caae5be124a1 | 3,933 | cpp | C++ | src/Planners/ThetaStarGeneratorSafetyCost.cpp | RafaelRey/3D_heuristic_path_planners | e23a286a730485db4c87b0ae3168d008699f9df8 | [
"MIT"
] | 20 | 2021-06-30T09:41:37.000Z | 2022-03-30T05:52:47.000Z | src/Planners/ThetaStarGeneratorSafetyCost.cpp | RafaelRey/3D_heuristic_path_planners | e23a286a730485db4c87b0ae3168d008699f9df8 | [
"MIT"
] | 3 | 2021-06-30T09:29:35.000Z | 2021-09-26T18:40:49.000Z | src/Planners/ThetaStarGeneratorSafetyCost.cpp | robotics-upo/3D_heuristic_path_planners | e23a286a730485db4c87b0ae3168d008699f9df8 | [
"MIT"
] | 2 | 2022-03-11T14:22:06.000Z | 2022-03-30T05:52:50.000Z | #include "Planners/ThetaStarGeneratorSafetyCost.hpp"
namespace Planners
{
ThetaStarGeneratorSafetyCost::ThetaStarGeneratorSafetyCost(bool _use_3d):ThetaStarGenerator(_use_3d, "thetastarsafetycost") {}
ThetaStarGeneratorSafetyCost::ThetaStarGeneratorSafetyCost(bool _use_3d, std::string _name = "thetastarsa... | 40.132653 | 158 | 0.587338 | [
"geometry"
] |
9070d7667fd831a4383b59e279358c247fe69a71 | 7,842 | cpp | C++ | src/qt/qtwebkit/Source/WebCore/bindings/js/JSDictionary.cpp | viewdy/phantomjs | eddb0db1d253fd0c546060a4555554c8ee08c13c | [
"BSD-3-Clause"
] | 1 | 2021-02-09T10:24:31.000Z | 2021-02-09T10:24:31.000Z | src/qt/qtwebkit/Source/WebCore/bindings/js/JSDictionary.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtwebkit/Source/WebCore/bindings/js/JSDictionary.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | 1 | 2022-02-18T10:41:38.000Z | 2022-02-18T10:41:38.000Z | /*
* Copyright (C) 2011 Apple 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 a... | 28.516364 | 114 | 0.728258 | [
"object",
"vector"
] |
9073fcab4649ab7f1393f35d0cd417a92f7b007a | 52,656 | cpp | C++ | source/multi-cairo/opendl.cpp | dewf/opendl | 55930803b737e6679f3cacd546de79d8a9066f18 | [
"MIT"
] | 23 | 2019-04-12T10:34:29.000Z | 2021-02-01T21:04:30.000Z | source/multi-cairo/opendl.cpp | dewf/opendl | 55930803b737e6679f3cacd546de79d8a9066f18 | [
"MIT"
] | 2 | 2019-04-12T04:41:20.000Z | 2021-01-01T08:42:27.000Z | source/multi-cairo/opendl.cpp | dewf/opendl | 55930803b737e6679f3cacd546de79d8a9066f18 | [
"MIT"
] | 2 | 2019-04-13T01:46:50.000Z | 2019-07-02T09:48:25.000Z | #include "../opendl.h"
// opendl already includes cairo
#include <vector>
#include <string>
#include <glib.h>
#include <cstring>
#include <cassert>
#include <cairo.h>
#include <pango/pangocairo.h>
#include <cmath>
#include "pango-renderer/StringAttrManager.h"
#include "pango-renderer/CoreTextAttrManager.h"
#include... | 39.442697 | 216 | 0.678517 | [
"geometry",
"render",
"vector",
"transform",
"solid"
] |
907718b3ca15ca239d56127a1c7ee999db0697d6 | 526 | cpp | C++ | lib/support/ConsoleInputProvider.cpp | SavchenkoValeriy/rooster | 1c7b75bb1909102bbb6e1707697f5753a5072b8f | [
"MIT"
] | 1 | 2016-10-19T13:10:22.000Z | 2016-10-19T13:10:22.000Z | lib/support/ConsoleInputProvider.cpp | SavchenkoValeriy/rooster | 1c7b75bb1909102bbb6e1707697f5753a5072b8f | [
"MIT"
] | null | null | null | lib/support/ConsoleInputProvider.cpp | SavchenkoValeriy/rooster | 1c7b75bb1909102bbb6e1707697f5753a5072b8f | [
"MIT"
] | null | null | null | #include <support/ConsoleInputProvider.h>
#include <llvm/ADT/StringExtras.h>
#include <iostream>
#include <vector>
namespace interactive {
std::string ConsoleInputProvider::read() {
std::vector<std::string> lines;
unsigned index = 0;
while (true) {
lines.push_back("");
std::string &buffer = l... | 23.909091 | 65 | 0.606464 | [
"vector"
] |
907bc0db21e1769b946b743bd19bc7b1b0cde617 | 7,671 | cc | C++ | Calibration/HcalIsolatedTrackReco/plugins/SubdetFEDSelector.cc | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | Calibration/HcalIsolatedTrackReco/plugins/SubdetFEDSelector.cc | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | Calibration/HcalIsolatedTrackReco/plugins/SubdetFEDSelector.cc | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-23T09:25:45.000Z | 2021-11-23T09:25:45.000Z | // user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "DataF... | 35.027397 | 118 | 0.672794 | [
"vector"
] |
907d7c0725c4ac76b973cc6d61b5905d09177977 | 3,653 | hpp | C++ | src/libshit/ref_counted.hpp | u3shit/libshit | 8ab8f12b4068edc269356debef78cd04de67edb4 | [
"WTFPL",
"BSD-3-Clause"
] | null | null | null | src/libshit/ref_counted.hpp | u3shit/libshit | 8ab8f12b4068edc269356debef78cd04de67edb4 | [
"WTFPL",
"BSD-3-Clause"
] | null | null | null | src/libshit/ref_counted.hpp | u3shit/libshit | 8ab8f12b4068edc269356debef78cd04de67edb4 | [
"WTFPL",
"BSD-3-Clause"
] | null | null | null | #ifndef GUARD_UNCYNICALLY_NOA_CONVALLASAPONIN_ANTICROSSES_8395
#define GUARD_UNCYNICALLY_NOA_CONVALLASAPONIN_ANTICROSSES_8395
#pragma once
#include "libshit/assert.hpp"
#include <atomic>
#include <cstdint>
#include <type_traits>
#include <utility>
namespace Libshit
{
class RefCounted
{
public:
RefCounted(... | 28.76378 | 79 | 0.664933 | [
"object"
] |
9085450fecee9604d7fda1c4a0879c77c85ffb1a | 645 | cpp | C++ | src/frontends/onnx/frontend/src/op/mean.cpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 2,406 | 2020-04-22T15:47:54.000Z | 2022-03-31T10:27:37.000Z | ngraph/frontend/onnx/frontend/src/op/mean.cpp | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 4,948 | 2020-04-22T15:12:39.000Z | 2022-03-31T18:45:42.000Z | ngraph/frontend/onnx/frontend/src/op/mean.cpp | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 991 | 2020-04-23T18:21:09.000Z | 2022-03-31T18:40:57.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "op/mean.hpp"
#include "default_opset.hpp"
#include "utils/variadic.hpp"
namespace ngraph {
namespace onnx_import {
namespace op {
namespace set_1 {
OutputVector mean(const Node& node) {
auto sum = variadic::make_ng_v... | 23.035714 | 113 | 0.714729 | [
"shape"
] |
9087e7dfb21388291eb556b10d6853ab9978797f | 18,324 | cpp | C++ | Sim/SimpleFtl/SimpleFtl.cpp | DustParticle/SsdSim | 7a090e4b34dd194bbb1fe76d4565bbf03762aa1d | [
"MIT"
] | 4 | 2021-01-19T06:39:24.000Z | 2022-03-28T06:55:42.000Z | Sim/SimpleFtl/SimpleFtl.cpp | DustParticle/SsdSim | 7a090e4b34dd194bbb1fe76d4565bbf03762aa1d | [
"MIT"
] | null | null | null | Sim/SimpleFtl/SimpleFtl.cpp | DustParticle/SsdSim | 7a090e4b34dd194bbb1fe76d4565bbf03762aa1d | [
"MIT"
] | 8 | 2019-01-22T02:37:48.000Z | 2020-10-27T11:03:51.000Z | #include "SimpleFtl.h"
SimpleFtl::SimpleFtl() : _ProcessingCommand(nullptr)
{
_EventQueue = std::unique_ptr<boost::lockfree::queue<Event>>(new boost::lockfree::queue<Event>{ 1024 });
}
void SimpleFtl::SetProtocol(CustomProtocolHal* customProtocolHal)
{
SimpleFtl::_CustomProtocolHal = customProtocolHa... | 34.770398 | 154 | 0.657389 | [
"geometry"
] |
9090889e3eeb35fdacf0f3f2e220b87566a3b8ee | 2,604 | hpp | C++ | include/AnnLevelManager.hpp | Ybalrid/Annwvyn | 30d63c722524c35a9054d51dcdd9f39af0599a3d | [
"MIT"
] | 39 | 2015-04-02T15:32:19.000Z | 2022-03-26T12:48:28.000Z | include/AnnLevelManager.hpp | Ybalrid/Annwvyn | 30d63c722524c35a9054d51dcdd9f39af0599a3d | [
"MIT"
] | 136 | 2015-02-24T19:45:59.000Z | 2019-02-21T15:01:12.000Z | include/AnnLevelManager.hpp | Ybalrid/Annwvyn | 30d63c722524c35a9054d51dcdd9f39af0599a3d | [
"MIT"
] | 12 | 2015-02-24T19:37:38.000Z | 2019-05-13T12:07:26.000Z | /**
* \file AnnLevelManager.hpp
* \brief Main class of the level system
* The Level Manager load and unload levels from the internal Ogre Scene.
* It also permit to switchToLevel from a level to another one.
* \author A. Brainville (Ybalrid)
*/
#pragma once
#include <vector>
#include "AnnLevel.hpp"
#inc... | 27.125 | 109 | 0.739247 | [
"object",
"vector"
] |
909126e1846e9c696f85759eeb81ee787426641f | 7,899 | hxx | C++ | main/sax/source/fastparser/fastparser.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sax/source/fastparser/fastparser.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sax/source/fastparser/fastparser.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 49.062112 | 226 | 0.675275 | [
"vector"
] |
90927b189fc058b60301374adabdc891bde639f0 | 53,597 | cpp | C++ | hi_scripting/scripting/api/DspUnitTests.cpp | jukea/HISE | 9e867c746d48f24c7fe6fdedad801ecafa3481e6 | [
"Intel"
] | null | null | null | hi_scripting/scripting/api/DspUnitTests.cpp | jukea/HISE | 9e867c746d48f24c7fe6fdedad801ecafa3481e6 | [
"Intel"
] | null | null | null | hi_scripting/scripting/api/DspUnitTests.cpp | jukea/HISE | 9e867c746d48f24c7fe6fdedad801ecafa3481e6 | [
"Intel"
] | null | null | null | /* ===========================================================================
*
* This file is part of HISE.
* Copyright 2016 Christoph Hart
*
* HISE 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,... | 27.51386 | 197 | 0.706327 | [
"vector"
] |
909a5557790b34c49498f4fc53fa6485601f952a | 3,495 | cpp | C++ | Source/introscreen.cpp | DarkAvanger/DreamTeam | e0074bdabc479ff8dfeb66e684386d5a86690dc8 | [
"MIT"
] | 3 | 2021-02-15T09:09:59.000Z | 2021-03-15T19:38:44.000Z | Source/introscreen.cpp | DarkAvanger/DreamTeam | e0074bdabc479ff8dfeb66e684386d5a86690dc8 | [
"MIT"
] | null | null | null | Source/introscreen.cpp | DarkAvanger/DreamTeam | e0074bdabc479ff8dfeb66e684386d5a86690dc8 | [
"MIT"
] | 3 | 2021-03-15T19:52:12.000Z | 2022-01-17T22:29:23.000Z | #include "SceneIntro.h"
#include "Application.h"
#include "ModuleTextures.h"
#include "ModuleRender.h"
#include "ModuleAudio.h"
#include "ModuleInput.h"
#include "ModuleFadeToBlack.h"
#include "ModuleFonts.h"
#include "ModulePlayer.h"
#include "introscreen.h"
#include <iostream>
ScreenIntro::ScreenIntro(bool startEn... | 33.285714 | 126 | 0.688126 | [
"render"
] |
909cab1031025772e1a29d58da37d1df57820967 | 750 | cpp | C++ | Cplus/NumberofWaystoDivideaLongCorridor.cpp | Jum1023/leetcode | d8248aa84452cb1ea768d9b05ecd72a6746c0016 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/NumberofWaystoDivideaLongCorridor.cpp | Jum1023/leetcode | d8248aa84452cb1ea768d9b05ecd72a6746c0016 | [
"MIT"
] | null | null | null | Cplus/NumberofWaystoDivideaLongCorridor.cpp | Jum1023/leetcode | d8248aa84452cb1ea768d9b05ecd72a6746c0016 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
using namespace std;
class Solution
{
public:
int numberOfWays(string corridor)
{
int N = corridor.length();
vector<long long> dp(N + 1), sum(N + 1); //累加的结果
dp[0] = 1;
vector<int> preseat(N);
int pre = -1;
for (int i = 0; i < N; ++i)
{
preseat[i] = pre;
if (co... | 17.857143 | 56 | 0.501333 | [
"vector"
] |
90a05b30f8642455106a20753c2d84f46a35acc6 | 4,361 | cpp | C++ | src/modules/memory/memory_transmogrify.cpp | dmortondev/openperf | dc142aa9bddcd578fd3491275cf36c016209df2e | [
"Apache-2.0"
] | null | null | null | src/modules/memory/memory_transmogrify.cpp | dmortondev/openperf | dc142aa9bddcd578fd3491275cf36c016209df2e | [
"Apache-2.0"
] | null | null | null | src/modules/memory/memory_transmogrify.cpp | dmortondev/openperf | dc142aa9bddcd578fd3491275cf36c016209df2e | [
"Apache-2.0"
] | null | null | null | #include <iomanip>
#include "memory/api.hpp"
#include "memory/generator/config.hpp"
#include "memory/generator/coordinator.hpp"
#include "swagger/v1/model/MemoryGenerator.h"
#include "swagger/v1/model/MemoryGeneratorResult.h"
namespace openperf::memory::api {
static std::shared_ptr<swagger::v1::model::MemoryGenerat... | 33.806202 | 80 | 0.67645 | [
"model"
] |
90abc00d0d2752d02a5d382f01e1eba8227c798c | 7,583 | cpp | C++ | test/opt/optimizer_test.cpp | dgkoch/SPIRV-Tools | f3acb955c20395f76b4f592631016d297ca34fe5 | [
"Apache-2.0"
] | 9 | 2016-05-25T12:25:50.000Z | 2020-11-30T13:40:13.000Z | test/opt/optimizer_test.cpp | dgkoch/SPIRV-Tools | f3acb955c20395f76b4f592631016d297ca34fe5 | [
"Apache-2.0"
] | 7 | 2019-08-23T17:54:13.000Z | 2020-02-01T06:59:52.000Z | test/opt/optimizer_test.cpp | dgkoch/SPIRV-Tools | f3acb955c20395f76b4f592631016d297ca34fe5 | [
"Apache-2.0"
] | 9 | 2018-10-31T03:07:11.000Z | 2021-08-06T08:53:21.000Z | // Copyright (c) 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 33.258772 | 79 | 0.687723 | [
"vector"
] |
90ac9e8d5facc76503a0b811690160d14b137163 | 21,002 | cpp | C++ | csl/cslbase/newstub.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | csl/cslbase/newstub.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | csl/cslbase/newstub.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | // newstub.cpp Copyright A C Norman 2020
//
// The object of this code is to be able to launch one of several binaries
// that are places in a directory adjacent to it. The one it picks
// should suit the context within which this program is run - 32 or 64 bit,
// Cygwin or native Wi... | 38.820702 | 80 | 0.633083 | [
"object"
] |
90af45d9d12a338ea32f00808cf7c65dcbf6e2cb | 998 | cpp | C++ | day6/day6.cpp | cristicretu/advent_of_code2020 | 456969f98bd6df56800301a006fbd6971957914e | [
"MIT"
] | 1 | 2022-01-27T17:09:33.000Z | 2022-01-27T17:09:33.000Z | day6/day6.cpp | cristicretu/advent_of_code2020 | 456969f98bd6df56800301a006fbd6971957914e | [
"MIT"
] | null | null | null | day6/day6.cpp | cristicretu/advent_of_code2020 | 456969f98bd6df56800301a006fbd6971957914e | [
"MIT"
] | null | null | null |
/**
* author: etohirse
* created: 16.12.2020 13:47:57
**/
#include <fstream>
#include <unordered_set>
#include <vector>
std::ifstream fin("input.in");
std::ofstream fout("input.out");
int solve1(std::string s) {
std::unordered_set<char> as;
for (char d : s) as.insert(d);
return as.size() - 1;
}
int s... | 17.821429 | 36 | 0.48497 | [
"vector"
] |
90af7f6737c73b349f1002f941fa5688e63c90d4 | 11,660 | cpp | C++ | test.cpp | kotton21/PotScanner | d6206fe8d27e8077d49b62aa72940bf91a2d43d0 | [
"MIT"
] | 2 | 2018-02-21T19:25:46.000Z | 2019-04-02T18:23:00.000Z | test.cpp | kotton21/PotScanner | d6206fe8d27e8077d49b62aa72940bf91a2d43d0 | [
"MIT"
] | null | null | null | test.cpp | kotton21/PotScanner | d6206fe8d27e8077d49b62aa72940bf91a2d43d0 | [
"MIT"
] | null | null | null | /*
* test.cpp
*
* Created on: Jan 2, 2017
* Author: karl
*/
#include <cv.h>
#include <highgui.h>
using namespace cv;
//#include <stdio>
//#include <dirent.h>
#include <cstdlib>
#include <cmath>
#include <ctgmath>
#include <math.h> /* sin */
#define PI 3.14159265
using std::cout;
using std::endl;
... | 25.682819 | 102 | 0.626329 | [
"object",
"vector",
"3d"
] |
90b1fa460212687ffb252979eaac3d8f56ffaeab | 4,810 | cc | C++ | quisp/modules/Application/Application_test.cc | TSarkar99/quisp | 1c954eb20f8bf098a68e0e93caf2f7bfd7fa28da | [
"BSD-3-Clause"
] | null | null | null | quisp/modules/Application/Application_test.cc | TSarkar99/quisp | 1c954eb20f8bf098a68e0e93caf2f7bfd7fa28da | [
"BSD-3-Clause"
] | null | null | null | quisp/modules/Application/Application_test.cc | TSarkar99/quisp | 1c954eb20f8bf098a68e0e93caf2f7bfd7fa28da | [
"BSD-3-Clause"
] | null | null | null | #include "Application.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <omnetpp.h>
#include <test_utils/TestUtils.h>
#include "classical_messages_m.h"
namespace {
using namespace omnetpp;
using namespace quisp::utils;
using namespace quisp::modules;
using namespace quisp_test;
class Strategy : public qu... | 32.721088 | 113 | 0.725572 | [
"vector"
] |
ff9c8e9edc0ff335b7f523c5f74273bfb6664c30 | 3,330 | cpp | C++ | source/omni/ui/entity_toggle_widget.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 33 | 2015-03-21T04:12:45.000Z | 2021-04-18T21:44:33.000Z | source/omni/ui/entity_toggle_widget.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | null | null | null | source/omni/ui/entity_toggle_widget.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 2 | 2016-03-05T12:57:05.000Z | 2017-09-12T10:11:52.000Z | #include <omni/ui/entity_toggle_widget.hpp>
#include <omni/ui/entity_widget_provider_base.hpp>
omni::ui::entity_toggle_widget::entity_toggle_widget (omni::core::context & context, entity_widget_provider_base & provider, QWidget * parent) :
entity_base_widget (parent),
_c (context),
_provider (provider),
... | 27.983193 | 144 | 0.632432 | [
"model"
] |
ff9fafe8b9ecd6dd7075ddf6622a0a914e347317 | 3,402 | hpp | C++ | src/third_party/VisionWorks-1.6-Demos/nvxio/src/NVX/Render/StubRenderImpl.hpp | reveriel/cuda_scheduling_examiner_mirror | 16d2404c0dc8d72f7a13e4a167d3db4c86128a26 | [
"BSD-2-Clause-FreeBSD"
] | 39 | 2017-05-23T00:27:50.000Z | 2022-02-16T07:56:07.000Z | src/third_party/VisionWorks-1.6-Demos/nvxio/src/NVX/Render/StubRenderImpl.hpp | reveriel/cuda_scheduling_examiner_mirror | 16d2404c0dc8d72f7a13e4a167d3db4c86128a26 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2019-10-22T13:47:39.000Z | 2020-04-03T16:09:04.000Z | src/third_party/VisionWorks-1.6-Demos/nvxio/src/NVX/Render/StubRenderImpl.hpp | reveriel/cuda_scheduling_examiner_mirror | 16d2404c0dc8d72f7a13e4a167d3db4c86128a26 | [
"BSD-2-Clause-FreeBSD"
] | 14 | 2017-09-11T19:59:19.000Z | 2021-02-03T10:00:22.000Z | /*
# Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of cond... | 35.810526 | 109 | 0.725456 | [
"render"
] |
ffb2d0029096803e279fa6bbabaa700300b49173 | 9,786 | cpp | C++ | Code/Engine/RendererVulkan/Resources/Implementation/TextureVulkan.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 703 | 2015-03-07T15:30:40.000Z | 2022-03-30T00:12:40.000Z | Code/Engine/RendererVulkan/Resources/Implementation/TextureVulkan.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 233 | 2015-01-11T16:54:32.000Z | 2022-03-19T18:00:47.000Z | Code/Engine/RendererVulkan/Resources/Implementation/TextureVulkan.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 101 | 2016-10-28T14:05:10.000Z | 2022-03-30T19:00:59.000Z | #include <RendererVulkanPCH.h>
#include <RendererVulkan/Device/DeviceVulkan.h>
#include <RendererVulkan/Resources/TextureVulkan.h>
ezGALTextureVulkan::ezGALTextureVulkan(const ezGALTextureCreationDescription& Description)
: ezGALTexture(Description)
, m_image(nullptr)
, m_memory(nullptr)
, m_memoryOffset(0)
... | 38.376471 | 176 | 0.739935 | [
"object",
"3d"
] |
ffc481083c68f5ac36d0bca252d7adf011c79547 | 3,983 | cpp | C++ | software/tools/compiler/class.cpp | mfkiwl/ztachip | 21cc9f058e8b0eba59d0f2930d33cfde2bb4962d | [
"MIT"
] | 39 | 2020-11-04T01:40:30.000Z | 2022-01-28T10:01:52.000Z | software/tools/compiler/class.cpp | mfkiwl/ztachip | 21cc9f058e8b0eba59d0f2930d33cfde2bb4962d | [
"MIT"
] | null | null | null | software/tools/compiler/class.cpp | mfkiwl/ztachip | 21cc9f058e8b0eba59d0f2930d33cfde2bb4962d | [
"MIT"
] | 3 | 2020-12-27T00:29:45.000Z | 2021-01-21T16:47:24.000Z | //----------------------------------------------------------------------------
// Copyright [2014] [Ztachip Technologies Inc]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except IN compliance with the License.
// You may obtain a copy of the License at
//
// http://... | 27.659722 | 85 | 0.530254 | [
"vector"
] |
ffd6102d1b2e3c5bc36a06e4d90c47240a248af3 | 13,929 | cpp | C++ | src/service/tcp/server.cpp | sptrakesh/config-db | 583ef3a3b636b2d56283194ff2b183bac2a36f21 | [
"Apache-2.0"
] | null | null | null | src/service/tcp/server.cpp | sptrakesh/config-db | 583ef3a3b636b2d56283194ff2b183bac2a36f21 | [
"Apache-2.0"
] | null | null | null | src/service/tcp/server.cpp | sptrakesh/config-db | 583ef3a3b636b2d56283194ff2b183bac2a36f21 | [
"Apache-2.0"
] | null | null | null | //
// Created by Rakesh on 25/12/2021.
//
#include "server.h"
#include "signal/signal.h"
#include "../common/contextholder.h"
#include "../common/model/configuration.h"
#include "../common/model/request_generated.h"
#include "../common/model/response_generated.h"
#include "../lib/db/storage.h"
#include "../log/NanoLog... | 33.973171 | 121 | 0.612822 | [
"vector",
"model"
] |
ffd774d893142baffbb7de7c2a0eb295f98459bd | 11,675 | cpp | C++ | src/mlpack/tests/to_string_test.cpp | vj-ug/Contribution-to-mlpack | 0ddb5ed463861f459ff2829712bdc59ba9d810b0 | [
"BSD-3-Clause"
] | null | null | null | src/mlpack/tests/to_string_test.cpp | vj-ug/Contribution-to-mlpack | 0ddb5ed463861f459ff2829712bdc59ba9d810b0 | [
"BSD-3-Clause"
] | null | null | null | src/mlpack/tests/to_string_test.cpp | vj-ug/Contribution-to-mlpack | 0ddb5ed463861f459ff2829712bdc59ba9d810b0 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file to_string_test.cpp
* @author Ryan Birmingham
*
* Test of the toString functionality.
**/
#include <mlpack/core.hpp>
#include <boost/test/unit_test.hpp>
#include "old_boost_test_definitions.hpp"
#include <mlpack/core/metrics/ip_metric.hpp>
#include <mlpack/core/metrics/lmetric.hpp>
#include <mlpack/co... | 21.863296 | 82 | 0.677002 | [
"vector"
] |
ffda34de5c203efa0a2fb74f76c3783e608b8cb8 | 4,067 | cpp | C++ | deps/libgeos/geos/src/noding/snapround/HotPixelIndex.cpp | khrushjing/node-gdal-async | 6546b0c8690f2db677d5385b40b407523503b314 | [
"Apache-2.0"
] | 42 | 2021-03-26T17:34:52.000Z | 2022-03-18T14:15:31.000Z | deps/libgeos/geos/src/noding/snapround/HotPixelIndex.cpp | khrushjing/node-gdal-async | 6546b0c8690f2db677d5385b40b407523503b314 | [
"Apache-2.0"
] | 29 | 2021-06-03T14:24:01.000Z | 2022-03-23T15:43:58.000Z | deps/libgeos/geos/src/noding/snapround/HotPixelIndex.cpp | khrushjing/node-gdal-async | 6546b0c8690f2db677d5385b40b407523503b314 | [
"Apache-2.0"
] | 8 | 2021-05-14T19:26:37.000Z | 2022-03-21T13:44:42.000Z | /**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2020 Paul Ramsey <pramsey@cleverelephant.ca>
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Licen... | 23.107955 | 103 | 0.61913 | [
"geometry",
"vector"
] |
ffdab31aba890b833e5d397d1ea9940c1cedd976 | 11,761 | cpp | C++ | project_code/of_v0.11.0_osx_release/apps/myApps/laserBomb/src/ofApp.cpp | Vamoss/devart-template | 3c276f5967c24365c04dd00ed36933cc19b6f8bb | [
"Apache-2.0"
] | null | null | null | project_code/of_v0.11.0_osx_release/apps/myApps/laserBomb/src/ofApp.cpp | Vamoss/devart-template | 3c276f5967c24365c04dd00ed36933cc19b6f8bb | [
"Apache-2.0"
] | null | null | null | project_code/of_v0.11.0_osx_release/apps/myApps/laserBomb/src/ofApp.cpp | Vamoss/devart-template | 3c276f5967c24365c04dd00ed36933cc19b6f8bb | [
"Apache-2.0"
] | null | null | null | #include "ofApp.h"
extern "C" {
#include "macGlutfix.h"
}
//--------------------------------------------------------------
void ofApp::setup(){
config::setup();
//UI
ofEnableAlphaBlending();
ofBackground(78);
logoX = 0;
logo.load("gui/images/logo.png");
fboPosition.y = 60;
... | 34.188953 | 178 | 0.572995 | [
"vector",
"transform"
] |
ffde8187ae563cd896ec1e15ce97b11767435a0d | 895 | cpp | C++ | Practicum/Homework3/Source files/MagicCard.cpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | Practicum/Homework3/Source files/MagicCard.cpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | Practicum/Homework3/Source files/MagicCard.cpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | /**
* Solution to homework assignment 3
* Object Oriented Programming Course
* Faculty of Mathematics and Informatics of Sofia University
* Summer semester 2020/2021
*
* @author Stefania Tsvetkova
* @idnumber 62573
* @task 1
* @compiler VC
*/
#include "MagicCard.hpp"
MagicCard::MagicCard()
{
this->type = this->DEFAU... | 17.211538 | 76 | 0.686034 | [
"object"
] |
ffe2588df6a5a961e68e837f387e13f9d11fc69f | 6,858 | cpp | C++ | csapex_core_plugins/src/tools/create_map_message_adapter.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 2 | 2016-09-02T15:33:22.000Z | 2019-05-06T22:09:33.000Z | csapex_core_plugins/src/tools/create_map_message_adapter.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 1 | 2021-02-14T19:53:30.000Z | 2021-02-14T19:53:30.000Z | csapex_core_plugins/src/tools/create_map_message_adapter.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 6 | 2016-10-12T00:55:23.000Z | 2021-02-10T17:49:25.000Z |
/// HEADER
#include "create_map_message_adapter.h"
/// PROJECT
#include <csapex/model/node_facade_impl.h>
#include <csapex_core_plugins/parameter_dialog.h>
/// PROJECT
#include <csapex/command/add_connection.h>
#include <csapex/command/command_factory.h>
#include <csapex/command/meta.h>
#include <csapex/model/graph_... | 32.046729 | 197 | 0.669583 | [
"model"
] |
ffe587618cc1cc2633af48d003addf7f5e6f6508 | 1,733 | cpp | C++ | solved/0-b/bi-shoe-and-phi-shoe/bishoe.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/0-b/bi-shoe-and-phi-shoe/bishoe.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/0-b/bi-shoe-and-phi-shoe/bishoe.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <algorithm>
#include <cstdio>
#include <vector>
using namespace std;
typedef long long i64;
typedef unsigned int u32;
typedef vector<int> IV;
typedef IV::const_iterator IVci;
#define cFor(t,v,c) for(t::const_iterator v=c.begin(); v != c.end(); v++)
// I/O
#define BUF 65536
struct Reader {
ch... | 22.506494 | 76 | 0.493364 | [
"vector"
] |
ffe615c69a058c545560f55761a7330204602b10 | 16,898 | hpp | C++ | applications/SolidMechanicsApplication/custom_conditions/boundary_condition.hpp | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 778 | 2017-01-27T16:29:17.000Z | 2022-03-30T03:01:51.000Z | applications/SolidMechanicsApplication/custom_conditions/boundary_condition.hpp | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 6,634 | 2017-01-15T22:56:13.000Z | 2022-03-31T15:03:36.000Z | applications/SolidMechanicsApplication/custom_conditions/boundary_condition.hpp | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 224 | 2017-02-07T14:12:49.000Z | 2022-03-06T23:09:34.000Z | //
// Project Name: KratosSolidMechanicsApplication $
// Created by: $Author: JMCarbonell $
// Last modified by: $Co-Author: $
// Date: $Date: August 2017 $
// Revision: $Revision: 0.0 $
//
//
#if !defin... | 27.884488 | 124 | 0.650846 | [
"geometry",
"vector",
"3d"
] |
ffea4e64e3ce050b02007f09aecb2bd110e28e96 | 4,451 | hpp | C++ | include/GlobalNamespace/StaticJumpOffsetYProvider.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/StaticJumpOffsetYProvider.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/StaticJumpOffsetYProvider.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: IJumpOffsetYProvider
#include "Glob... | 46.852632 | 190 | 0.757807 | [
"object",
"vector"
] |
ffece58616545a61ed97fd30ba3ee0b57ef42f55 | 559 | cc | C++ | ch03/ex3_44.cc | meishaoming/cpp_primer_5th_answer | 482d60e37e8bf69c0ae83e7e98d955f76dfbffe0 | [
"MIT"
] | null | null | null | ch03/ex3_44.cc | meishaoming/cpp_primer_5th_answer | 482d60e37e8bf69c0ae83e7e98d955f76dfbffe0 | [
"MIT"
] | null | null | null | ch03/ex3_44.cc | meishaoming/cpp_primer_5th_answer | 482d60e37e8bf69c0ae83e7e98d955f76dfbffe0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <iterator>
using namespace std;
using int_array = int[4];
int main() {
int ia[3][4] = {
{ 0, 1, 2, 3, },
{ 4, 5, 6, 7, },
{ 8, 9, 10, 11, },
};
for (int_array &row : ia) {
for (int &col : row) {
cout << col << ' ';
}
... | 15.971429 | 45 | 0.413238 | [
"vector"
] |
fff204f3b0c5057d1cacbc8a0ffa5c55c991a27d | 19,812 | cpp | C++ | src/xconnection.cpp | uzsolt/herbstluftwm | 49b6dcad50452d79783576236df2ce670672c10a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/xconnection.cpp | uzsolt/herbstluftwm | 49b6dcad50452d79783576236df2ce670672c10a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/xconnection.cpp | uzsolt/herbstluftwm | 49b6dcad50452d79783576236df2ce670672c10a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include "xconnection.h"
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <X11/Xproto.h>
#include <X11/Xutil.h>
#include <climits>
#include <iostream>
#include "globals.h"
using std::endl;
using std::make_pair;
using std::pair;
using std::string;
using std::vector;
bool XConnection::exitOnError_ = false;
void... | 39.231683 | 94 | 0.610438 | [
"vector"
] |
fffa775d147c60fa9eba564f7117516b34e8260f | 10,150 | cpp | C++ | Emitter.cpp | gaartok/Fireball-CPP | d2dd2cf42edacc82ad3919a845ca67d53f5aa335 | [
"MIT"
] | null | null | null | Emitter.cpp | gaartok/Fireball-CPP | d2dd2cf42edacc82ad3919a845ca67d53f5aa335 | [
"MIT"
] | null | null | null | Emitter.cpp | gaartok/Fireball-CPP | d2dd2cf42edacc82ad3919a845ca67d53f5aa335 | [
"MIT"
] | null | null | null |
#include "Emitter.hpp"
#include "Misc.hpp"
#include "global.h"
#include "debug.h"
#include <time.h>
const int HALF_RAND = (RAND_MAX / 2);
char particleArray[2][2];
float RandomNum()
{
int rn;
rn = rand();
return ((float)(rn - HALF_RAND) / (float)HALF_RAND);
}
Emitter :: Emitter(int... | 26.710526 | 111 | 0.578621 | [
"render",
"vector"
] |
0802d356c6085dd4506a168b341e20c2fa8c3f4b | 680 | hpp | C++ | test/ShaderWriter/CompileSPIRV.hpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | null | null | null | test/ShaderWriter/CompileSPIRV.hpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | null | null | null | test/ShaderWriter/CompileSPIRV.hpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | null | null | null | #pragma once
#include "WriterCommon.hpp"
#if SDW_Test_HasVulkan && SDW_HasVulkanLayer
# include <VulkanLayer/VulkanLayer.hpp>
#endif
namespace test
{
bool createSPIRVContext( sdw_test::TestCounts & testCounts );
void destroySPIRVContext( sdw_test::TestCounts & testCounts );
bool compileSpirV( ::ast::Shader const ... | 29.565217 | 83 | 0.758824 | [
"vector"
] |
0806ca40ef7cfd3cf79573f6ec29947f97b9eab5 | 32,437 | cc | C++ | be/src/exec/aggregation-node.cc | mapr/impala | 2b626c8e9f4c666d23872c228cf43daae4c9acbb | [
"Apache-2.0"
] | 2 | 2015-11-17T16:58:47.000Z | 2017-01-10T04:15:05.000Z | be/src/exec/aggregation-node.cc | mapr/impala | 2b626c8e9f4c666d23872c228cf43daae4c9acbb | [
"Apache-2.0"
] | 1 | 2016-03-10T16:34:10.000Z | 2016-03-10T16:34:10.000Z | be/src/exec/aggregation-node.cc | mapr/impala | 2b626c8e9f4c666d23872c228cf43daae4c9acbb | [
"Apache-2.0"
] | 6 | 2015-12-22T14:52:38.000Z | 2019-07-06T08:34:23.000Z | // Copyright 2012 Cloudera Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | 41.321019 | 90 | 0.679841 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.