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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d20562f5fd032469147571313cc33ea511679523 | 1,542 | hpp | C++ | Common/StringClass.hpp | a1lic/NFCCP | 85a9059f15ecde96413c5dd375f1d2b1dd1c4241 | [
"BSD-3-Clause"
] | 4 | 2018-11-19T09:38:35.000Z | 2020-11-23T04:20:42.000Z | Common/StringClass.hpp | a1lic/NFCCP | 85a9059f15ecde96413c5dd375f1d2b1dd1c4241 | [
"BSD-3-Clause"
] | null | null | null | Common/StringClass.hpp | a1lic/NFCCP | 85a9059f15ecde96413c5dd375f1d2b1dd1c4241 | [
"BSD-3-Clause"
] | 4 | 2017-03-16T04:50:22.000Z | 2019-01-10T12:09:42.000Z | #pragma once
#include <string>
#include <vector>
#include <memory>
#include <Windows.h>
#include <NTSecAPI.h>
using std::default_delete;
using std::wstring;
using std::vector;
using std::shared_ptr;
typedef void * (* ustring_alloc)(size_t);
typedef void (* ustring_free )(void *);
#if defined(STRINGCLASS_CPP)
tem... | 24.47619 | 104 | 0.736057 | [
"vector"
] |
d207aed5d50b194a68d3fb916d95b589d05968ed | 1,053 | cpp | C++ | c++/dp/largestPalindromicSubseq.cpp | Nk095291/pepcoding | fb57f8fa58c155d38bdbc47824f547e24c0804b6 | [
"MIT"
] | 1 | 2020-04-24T05:45:44.000Z | 2020-04-24T05:45:44.000Z | c++/dp/largestPalindromicSubseq.cpp | Nk095291/pepcoding | fb57f8fa58c155d38bdbc47824f547e24c0804b6 | [
"MIT"
] | null | null | null | c++/dp/largestPalindromicSubseq.cpp | Nk095291/pepcoding | fb57f8fa58c155d38bdbc47824f547e24c0804b6 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
void solve(string &str)
{
vector<vector<bool>>res(str.size(),vector<bool>(str.size(),true));
for(int i =0;i<res.size();i++)
res[i][i]=true;
int largest=0;
int count= res.size();
for(int gap=1;gap<res.size();gap++)
{
for(int... | 23.931818 | 131 | 0.426401 | [
"vector"
] |
d2097f9e8f469d9ff30d277b32e70973dfb27a2b | 45,489 | cpp | C++ | source/ParametersConfig.cpp | Gabriele91/DENN | ac7f32941e125b1d6018768b1298dc688478bcc9 | [
"Apache-2.0"
] | 5 | 2017-05-26T12:37:43.000Z | 2021-02-03T11:57:12.000Z | source/ParametersConfig.cpp | Gabriele91/DENN | ac7f32941e125b1d6018768b1298dc688478bcc9 | [
"Apache-2.0"
] | null | null | null | source/ParametersConfig.cpp | Gabriele91/DENN | ac7f32941e125b1d6018768b1298dc688478bcc9 | [
"Apache-2.0"
] | 4 | 2017-03-24T18:40:26.000Z | 2021-05-18T14:59:19.000Z | #include "Denn/Parameters.h"
#include "Denn/Utilities/Networks.h"
#include <string>
#include <cctype>
#include <unordered_map>
#include <iterator>
#include <sstream>
#include <iomanip>
#include <ctime>
namespace Denn
{
//////////////////////////////////////////////////////////////////////////////////
static in... | 26.586207 | 173 | 0.457605 | [
"vector",
"transform"
] |
d20c0736412d3a7d37c7ec216aac5f62e35fcc6a | 6,832 | cpp | C++ | ModelViewer/Application.cpp | realn/exptor3D | 85bafa0a4c59eb15102756046805e4f9b23245c2 | [
"MIT"
] | null | null | null | ModelViewer/Application.cpp | realn/exptor3D | 85bafa0a4c59eb15102756046805e4f9b23245c2 | [
"MIT"
] | null | null | null | ModelViewer/Application.cpp | realn/exptor3D | 85bafa0a4c59eb15102756046805e4f9b23245c2 | [
"MIT"
] | null | null | null |
#include <filesystem>
#include <core_Files.h>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <CBCore/StringConvert.h>
#include <CBSDL/Events.h>
#include <CBSDL/Timer.h>
#include <CBGL/Rendering.h>
#include <CBGL/System.h>
#include <CBGL/State.h>
#include <CBGL/COpenGL.h>
#include... | 28.231405 | 147 | 0.653103 | [
"render",
"object",
"model"
] |
d20c4e7de40e7a39dbb2733d1394267e5bbcfb9e | 1,580 | cpp | C++ | bench/src/builders.cpp | flyskyosg/tangram-es | 7d0d7297485fdb388455b15810690c1568bdbedb | [
"MIT"
] | null | null | null | bench/src/builders.cpp | flyskyosg/tangram-es | 7d0d7297485fdb388455b15810690c1568bdbedb | [
"MIT"
] | null | null | null | bench/src/builders.cpp | flyskyosg/tangram-es | 7d0d7297485fdb388455b15810690c1568bdbedb | [
"MIT"
] | 1 | 2019-08-31T14:43:29.000Z | 2019-08-31T14:43:29.000Z | #include "tangram.h"
#include "gl.h"
#include "util/builders.h"
#include "glm/glm.hpp"
#include <vector>
#include "benchmark/benchmark_api.h"
#include "benchmark/benchmark.h"
using namespace Tangram;
std::vector<glm::vec3> line = {
{0.0, 0.0, 0.0},
{1.0, 0.0, 0.0},
{1.0, 1.0, 0.0},
{0.0, 1.0, 0.0},
... | 25.483871 | 87 | 0.610759 | [
"vector"
] |
d2155e3bfc8ec2e578c7c5a635fbd443728c0aa5 | 1,865 | cpp | C++ | c++/.leetcode/1001.grid-illumination.cpp | ming197/MyLeetCode | eba575765976b12db07be0857faad85b9c60d723 | [
"Apache-2.0"
] | null | null | null | c++/.leetcode/1001.grid-illumination.cpp | ming197/MyLeetCode | eba575765976b12db07be0857faad85b9c60d723 | [
"Apache-2.0"
] | null | null | null | c++/.leetcode/1001.grid-illumination.cpp | ming197/MyLeetCode | eba575765976b12db07be0857faad85b9c60d723 | [
"Apache-2.0"
] | null | null | null | /*
* @lc app=leetcode id=1001 lang=cpp
*
* [1001] Grid Illumination
*/
// @lc code=start
#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
int n;
int dx[9] = {0, 1, -1, 0, 0, 1, -1, 1, -1};
int dy[9] = {0, 0, 0, 1, -1, 1, 1, -1, -1};
vector<int> gridIllumination(int n, vector<v... | 31.610169 | 104 | 0.468633 | [
"vector"
] |
d21de0e77a8ba617a38274153780d8494457f5aa | 25,822 | cpp | C++ | capabilities/DavsClient/acsdkAssetsCommon/src/CurlWrapper.cpp | tsweet77/avs-device-sdk | 703b06188eae146af396f58be4e47442d7ce5b1e | [
"Apache-2.0"
] | 1 | 2018-07-09T16:44:28.000Z | 2018-07-09T16:44:28.000Z | capabilities/DavsClient/acsdkAssetsCommon/src/CurlWrapper.cpp | tsweet77/avs-device-sdk | 703b06188eae146af396f58be4e47442d7ce5b1e | [
"Apache-2.0"
] | null | null | null | capabilities/DavsClient/acsdkAssetsCommon/src/CurlWrapper.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... | 39.604294 | 120 | 0.671094 | [
"vector"
] |
d220c116725b234bd56780d48791d36e2199f880 | 3,492 | cc | C++ | tddd38-cpp/exams/ten-180531/prg2f.cc | AxelGard/university-projects | 0c9a6e785f1918c6ed0fd365b2d419c9f52edb50 | [
"MIT"
] | null | null | null | tddd38-cpp/exams/ten-180531/prg2f.cc | AxelGard/university-projects | 0c9a6e785f1918c6ed0fd365b2d419c9f52edb50 | [
"MIT"
] | null | null | null | tddd38-cpp/exams/ten-180531/prg2f.cc | AxelGard/university-projects | 0c9a6e785f1918c6ed0fd365b2d419c9f52edb50 | [
"MIT"
] | null | null | null | #include <array>
#include <vector>
#include <map>
#include <list>
#include <deque>
#include <string>
#include <iostream>
#include <utility>
#include <functional>
#include <iterator>
using namespace std;
template <typename LeftIt, typename RightIt>
class zip_iterator
{
using left_traits = iterator_traits<LeftIt>... | 22.384615 | 61 | 0.52205 | [
"vector"
] |
d221052239d925dacaa4d1fb1fab3f638a8caeb9 | 4,081 | cpp | C++ | txtstat.cpp | SBassPurdue/txtstat | 309eb88435d864abc5a31ee6386c8840a85a1863 | [
"MIT"
] | null | null | null | txtstat.cpp | SBassPurdue/txtstat | 309eb88435d864abc5a31ee6386c8840a85a1863 | [
"MIT"
] | null | null | null | txtstat.cpp | SBassPurdue/txtstat | 309eb88435d864abc5a31ee6386c8840a85a1863 | [
"MIT"
] | null | null | null |
//c headers
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
//c++ headers
#include <algorithm>
#include <map>
#include <string>
#include <utility>
#include <vector>
//forward declaration
template<typename T> bool compare_values(std::pair<T, int>, std::pair<T, int>);
int main (int argc, char **argv) {
F... | 27.761905 | 118 | 0.611615 | [
"vector"
] |
d222e697d9468e2ffbacf76cbb879fced042d56f | 3,447 | cpp | C++ | net-p2p/nyancoin/files/patch-src_bitcoinrpc.cpp | tuaris/FreeBSD-Coin-Ports | 330d9f5a10cf7dc1cddc3566b897bd4e6e265d9f | [
"BSD-2-Clause"
] | 4 | 2016-04-07T23:38:13.000Z | 2021-11-19T10:46:46.000Z | net-p2p/nyancoin/files/patch-src_bitcoinrpc.cpp | tuaris/FreeBSD-Coin-Ports | 330d9f5a10cf7dc1cddc3566b897bd4e6e265d9f | [
"BSD-2-Clause"
] | 1 | 2018-01-20T15:45:23.000Z | 2018-01-22T16:22:54.000Z | net-p2p/nyancoin/files/patch-src_bitcoinrpc.cpp | tuaris/FreeBSD-Coin-Ports | 330d9f5a10cf7dc1cddc3566b897bd4e6e265d9f | [
"BSD-2-Clause"
] | 6 | 2016-04-07T23:41:03.000Z | 2019-03-05T08:31:21.000Z | --- src/bitcoinrpc.cpp.orig 2014-02-25 22:08:34 UTC
+++ src/bitcoinrpc.cpp
@@ -2760,8 +2760,8 @@ void ThreadRPCServer(void* parg)
}
// Forward declaration required for RPCListen
-template <typename Protocol, typename SocketAcceptorService>
-static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<... | 47.875 | 116 | 0.655933 | [
"object"
] |
d22459542e4d7b8c1162057bd09218249437c904 | 351,719 | cpp | C++ | BCG/BCGPEditCtrl.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 2 | 2018-03-30T06:40:08.000Z | 2022-02-23T12:40:13.000Z | BCG/BCGPEditCtrl.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | null | null | null | BCG/BCGPEditCtrl.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 1 | 2020-08-11T05:48:02.000Z | 2020-08-11T05:48:02.000Z | //*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of the BCGControlBar Library
// Copyright (C) 1998-2014 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and condi... | 24.775923 | 174 | 0.615631 | [
"object"
] |
d232879337ab22b2ad29006fc40c9d8b38e94938 | 2,970 | hh | C++ | services/arena/include/fightingPit/priority_order_list.hh | FreeYourSoul/FyS | 123ca6e76387125909d343c23e788aa033221db5 | [
"MIT"
] | 9 | 2019-04-13T17:11:06.000Z | 2020-04-23T12:06:59.000Z | services/arena/include/fightingPit/priority_order_list.hh | FreeYourSoul/FyS | 123ca6e76387125909d343c23e788aa033221db5 | [
"MIT"
] | null | null | null | services/arena/include/fightingPit/priority_order_list.hh | FreeYourSoul/FyS | 123ca6e76387125909d343c23e788aa033221db5 | [
"MIT"
] | 2 | 2020-04-07T06:05:11.000Z | 2020-11-07T23:26:56.000Z | // MIT License
//
// Copyright (c) 2021 Quentin Balland
// Repository : https://github.com/FreeYourSoul/FyS
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, ... | 30.306122 | 88 | 0.738047 | [
"vector"
] |
d232d2fd6fe18a59d1f90774cd9f1914d2de10c7 | 9,702 | cpp | C++ | geode/vector/SparseMatrix.cpp | jjqcat/geode | 157cc904c113cc5e29a1ffe7c091a83b8ec2cf8e | [
"BSD-3-Clause"
] | 75 | 2015-02-08T22:04:31.000Z | 2022-02-26T14:31:43.000Z | geode/vector/SparseMatrix.cpp | bantamtools/geode | d906f1230b14953b68af63aeec2f7b0418d5fdfd | [
"BSD-3-Clause"
] | 15 | 2015-01-08T15:11:38.000Z | 2021-09-05T13:27:22.000Z | geode/vector/SparseMatrix.cpp | bantamtools/geode | d906f1230b14953b68af63aeec2f7b0418d5fdfd | [
"BSD-3-Clause"
] | 22 | 2015-03-11T16:43:13.000Z | 2021-02-15T09:37:51.000Z | //#####################################################################
// Class SparseMatrix
//#####################################################################
#include <geode/vector/SparseMatrix.h>
#include <geode/array/NdArray.h>
#include <geode/array/ProjectedArray.h>
#include <geode/array/view.h>
#include <ge... | 34.899281 | 126 | 0.632344 | [
"shape",
"vector"
] |
d23b86c01fe5d43094c51d5ce3751e6d399c91c3 | 951 | cpp | C++ | cpp_source/util.cpp | wararaki/irspack | 650cc012924d46b3ecb87f1a6f806aee735a9559 | [
"MIT"
] | 1 | 2021-01-11T18:34:30.000Z | 2021-01-11T18:34:30.000Z | cpp_source/util.cpp | kiminh/irspack | 45e448bb741b5f08b1b93d47ca293b981dd5f8af | [
"MIT"
] | null | null | null | cpp_source/util.cpp | kiminh/irspack | 45e448bb741b5f08b1b93d47ca293b981dd5f8af | [
"MIT"
] | null | null | null | #include "util.hpp"
#include "pybind11/cast.h"
#include <cstddef>
#include <pybind11/eigen.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <stdexcept>
#include <vector>
namespace py = pybind11;
using namespace irspack;
PYBIND11_MODULE(_util_cpp, m) {
m.def("remove_diagonal", &sparse_util::remov... | 36.576923 | 77 | 0.713985 | [
"vector"
] |
d23e44c5a2d695bc6f02ed2ce3b6c72d54b4ed23 | 2,628 | hpp | C++ | src/include/tools/SubgraphGenerator.hpp | Weissle/subgraph-generator | 6ebf81151b2f9bb5f62ad62addaa66b391716b1f | [
"Apache-2.0"
] | null | null | null | src/include/tools/SubgraphGenerator.hpp | Weissle/subgraph-generator | 6ebf81151b2f9bb5f62ad62addaa66b391716b1f | [
"Apache-2.0"
] | null | null | null | src/include/tools/SubgraphGenerator.hpp | Weissle/subgraph-generator | 6ebf81151b2f9bb5f62ad62addaa66b391716b1f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include<random>
#include<vector>
#include<assert.h>
#include<unordered_set>
#include<unordered_map>
#include<time.h>
#include<tools/IndexTurner.hpp>
#include<common.h>
#include"graph/Edge.hpp"
#include"graph/Graph.hpp"
#include"graph/Node.hpp"
#define FLOAT_ZERO 1E-6
namespace sg {
template<typename Gr... | 25.514563 | 102 | 0.647641 | [
"vector"
] |
d23f0fe73dbce5a6c59b34249e2e96b73938fdfb | 14,376 | cpp | C++ | src/engine/engine/engine.render/color.cpp | lsempe/uipg | 3e4e978c58a3c56fe32441e495b7436179395fa2 | [
"MIT"
] | 8 | 2016-01-14T11:22:58.000Z | 2022-01-20T17:49:09.000Z | src/engine/engine/engine.render/color.cpp | lsempe/uipg | 3e4e978c58a3c56fe32441e495b7436179395fa2 | [
"MIT"
] | 1 | 2015-06-02T17:50:33.000Z | 2015-06-03T06:34:11.000Z | src/engine/engine/engine.render/color.cpp | lsempe/uipg | 3e4e978c58a3c56fe32441e495b7436179395fa2 | [
"MIT"
] | 3 | 2020-01-31T12:49:05.000Z | 2021-10-30T19:56:21.000Z | #include <memory.h>
#include "color.h"
using namespace render;
const color color::BLACK(0.0f, 0.0f, 0.0f, 1.f);
const color color::WHITE(1.0f, 1.0f, 1.0f, 1.f);
const color color::RED (1.0f, 0.0f, 0.0f, 1.f);
const color color::GREEN(0.0f, 1.0f, 0.0f, 1.f);
const color color::BLUE (0.0f, 0.0f, 1.0f, 1.f);
const col... | 38.336 | 147 | 0.683987 | [
"render",
"vector"
] |
d246b0a435bd43836f296bad5042b99342c7941f | 270 | hpp | C++ | ComponentSystem/Source/Extensions/EglContainer.hpp | Egliss/CppReflection | d58cf8acd57b446edca10a4437405276b8953c42 | [
"MIT"
] | 2 | 2020-01-04T08:49:27.000Z | 2020-06-19T08:18:22.000Z | ComponentSystem/Source/Extensions/EglContainer.hpp | Egliss/CppReflection | d58cf8acd57b446edca10a4437405276b8953c42 | [
"MIT"
] | 1 | 2021-03-04T13:25:51.000Z | 2021-03-05T10:04:35.000Z | ComponentSystem/Source/Extensions/EglContainer.hpp | Egliss/CppReflection | d58cf8acd57b446edca10a4437405276b8953c42 | [
"MIT"
] | null | null | null | #pragma once
namespace Egliss::Extensions
{
class EglContainer
{
public:
template<class T, class U>
static std::vector<T, U>&& Concat(std::vector<T, U>& dst, const std::vector<T, U>& source)
{
dst.insert(source.begin(), source.end());
}
};
} | 19.285714 | 93 | 0.614815 | [
"vector"
] |
d25497578a3172e6741418dabc56147a0b8f0f2a | 2,781 | cpp | C++ | src/kernel/lib/factory.cpp | hpcgarage/yask | 3dbd67d92edeb282f0ba35d8d592ec314af84c2a | [
"MIT"
] | 67 | 2017-11-30T14:36:13.000Z | 2022-02-25T07:45:52.000Z | src/kernel/lib/factory.cpp | hpcgarage/yask | 3dbd67d92edeb282f0ba35d8d592ec314af84c2a | [
"MIT"
] | 87 | 2017-11-28T20:24:45.000Z | 2021-10-20T19:47:43.000Z | src/kernel/lib/factory.cpp | hpcgarage/yask | 3dbd67d92edeb282f0ba35d8d592ec314af84c2a | [
"MIT"
] | 27 | 2017-11-17T20:30:06.000Z | 2021-09-25T19:29:53.000Z | /*****************************************************************************
YASK: Yet Another Stencil Kit
Copyright (c) 2014-2021, Intel Corporation
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 Soft... | 36.592105 | 82 | 0.651924 | [
"object"
] |
d25b587732e8c45744991a6347ba717810ed2474 | 4,764 | cc | C++ | src/auracle/pacman.cc | astrapi/auracle | 47dcab7d5fe487d7a56c84ed7255277b93180adc | [
"MIT"
] | 261 | 2017-06-26T05:50:58.000Z | 2022-01-31T20:59:55.000Z | src/auracle/pacman.cc | sandsmark/auracle | aabcf6080777dfc868292a146526c9dbf30f9e3f | [
"MIT"
] | 91 | 2017-07-03T16:18:30.000Z | 2022-01-31T20:54:29.000Z | src/auracle/pacman.cc | sandsmark/auracle | aabcf6080777dfc868292a146526c9dbf30f9e3f | [
"MIT"
] | 40 | 2017-07-02T19:34:55.000Z | 2022-03-05T13:04:39.000Z | // SPDX-License-Identifier: MIT
#include "pacman.hh"
#include <glob.h>
#include <fstream>
#include <string>
#include <string_view>
#include <vector>
#include "absl/strings/ascii.h"
#include "absl/types/span.h"
namespace {
class Glob {
public:
explicit Glob(std::string_view pattern) {
glob_ok_ =
glob... | 22.903846 | 79 | 0.634551 | [
"vector"
] |
d25ebab53b706432ca2fceb192001867a171e180 | 8,281 | cpp | C++ | stromx/runtime/impl/Server.cpp | roteroktober/stromx | e081a35114f68a77e99a4761946b8b8c64eb591a | [
"Apache-2.0"
] | null | null | null | stromx/runtime/impl/Server.cpp | roteroktober/stromx | e081a35114f68a77e99a4761946b8b8c64eb591a | [
"Apache-2.0"
] | null | null | null | stromx/runtime/impl/Server.cpp | roteroktober/stromx | e081a35114f68a77e99a4761946b8b8c64eb591a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2013 Matthias Fuchs
*
* 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 ... | 34.648536 | 127 | 0.46649 | [
"vector"
] |
d25f2e293204901f624a190afbd2b2abc625bd41 | 604 | cpp | C++ | HackerRank_Solutions/30_Days_of_Code/Day 14 - Scope/Solution.cpp | Nedriia/Hacker_Rank_Solutions | bfad26859935723d3c3f6f00ef93f1ab885a1b62 | [
"MIT"
] | null | null | null | HackerRank_Solutions/30_Days_of_Code/Day 14 - Scope/Solution.cpp | Nedriia/Hacker_Rank_Solutions | bfad26859935723d3c3f6f00ef93f1ab885a1b62 | [
"MIT"
] | null | null | null | HackerRank_Solutions/30_Days_of_Code/Day 14 - Scope/Solution.cpp | Nedriia/Hacker_Rank_Solutions | bfad26859935723d3c3f6f00ef93f1ab885a1b62 | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
class Difference {
private:
vector<int> elements;
public:
int maximumDifference;
Difference(vector<int> a) : elements(a) {};
void computeDifference()
{
for (auto it = elements.... | 18.30303 | 63 | 0.594371 | [
"vector"
] |
d929300d4b00100213ff453d108a1495a87d12ea | 23,468 | cpp | C++ | src/Mahi/Gui/imgui_custom.cpp | MartinMittringAtOculus/mahi-gui | 2b6e4221c09ed52f0b56c5475475194438a5150a | [
"MIT"
] | null | null | null | src/Mahi/Gui/imgui_custom.cpp | MartinMittringAtOculus/mahi-gui | 2b6e4221c09ed52f0b56c5475475194438a5150a | [
"MIT"
] | null | null | null | src/Mahi/Gui/imgui_custom.cpp | MartinMittringAtOculus/mahi-gui | 2b6e4221c09ed52f0b56c5475475194438a5150a | [
"MIT"
] | null | null | null | #ifndef IMGUI_DEFINE_MATH_OPERATORS
#define IMGUI_DEFINE_MATH_OPERATORS
#endif
#include <Mahi/Gui/imgui_custom.hpp>
#include <imgui_internal.h>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <Mahi/Gui/Icons/IconsFontAwesome5.hpp>
#include <Mahi/Gui/Color.hpp>
namespace ImGui {
namespace {
bool g_... | 58.817043 | 100 | 0.621186 | [
"vector"
] |
d92acbea86d39a9856532a86f63797ebd5ff4c0f | 1,126 | cc | C++ | leetcode/leetcode_222.cc | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | leetcode/leetcode_222.cc | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | leetcode/leetcode_222.cc | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
int pow2(int x) {
if (... | 20.472727 | 61 | 0.589698 | [
"vector"
] |
d930b310079a9f42081b24211d8250f2afe815ed | 1,709 | cpp | C++ | env/verilator/sim_main.cpp | meetowl/steel-core | 10e540f8aa6220e10c2124cc013c524665dec1ed | [
"MIT"
] | 1 | 2021-11-08T21:08:16.000Z | 2021-11-08T21:08:16.000Z | env/verilator/sim_main.cpp | meetowl/steel-core | 10e540f8aa6220e10c2124cc013c524665dec1ed | [
"MIT"
] | null | null | null | env/verilator/sim_main.cpp | meetowl/steel-core | 10e540f8aa6220e10c2124cc013c524665dec1ed | [
"MIT"
] | null | null | null | // DESCRIPTION: Verilator: Verilog example module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2017 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
//======================================================================
// For std::unique_ptr
#includ... | 27.564516 | 93 | 0.574605 | [
"model"
] |
d9399b0997a88971cfee16e66986540003e3306e | 4,003 | cc | C++ | src/test/cpp/patch/triple.cc | opelgrin/ostrich | 5373285a7ee2d721c72f993242629b8d9418f3cc | [
"MIT"
] | null | null | null | src/test/cpp/patch/triple.cc | opelgrin/ostrich | 5373285a7ee2d721c72f993242629b8d9418f3cc | [
"MIT"
] | null | null | null | src/test/cpp/patch/triple.cc | opelgrin/ostrich | 5373285a7ee2d721c72f993242629b8d9418f3cc | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "../../../main/cpp/patch/patch_tree.h"
#include "../../../main/cpp/dictionary/dictionary_manager.h"
#define TESTPATH "./"
TEST(TripleTest, FieldsRaw) {
Triple triple(11, 21, 31);
ASSERT_EQ(11, triple.get_subject()) << "Subject is not saved correctly";
ASSERT_EQ(21, triple... | 32.282258 | 106 | 0.676742 | [
"object"
] |
d93bb4d44dbc8da33360fc50e02c767f8c0376c8 | 21,453 | cpp | C++ | trap.cpp | darkoppressor/huberts-island-adventure-mouse-o-war | 9ff8d9e2c2b388bf762a0e463238794fb0233df8 | [
"MIT"
] | null | null | null | trap.cpp | darkoppressor/huberts-island-adventure-mouse-o-war | 9ff8d9e2c2b388bf762a0e463238794fb0233df8 | [
"MIT"
] | null | null | null | trap.cpp | darkoppressor/huberts-island-adventure-mouse-o-war | 9ff8d9e2c2b388bf762a0e463238794fb0233df8 | [
"MIT"
] | null | null | null | /* Copyright (c) 2012-2013 Cheese and Bacon Games, LLC */
/* See the file docs/COPYING.txt for copying permission. */
#include "trap.h"
#include "render.h"
#include "world.h"
#include "collision.h"
#include "mirror.h"
using namespace std;
Trap::Trap(double get_x,double get_y,short get_type,bool get_active,short get_... | 26.583643 | 191 | 0.585652 | [
"render",
"solid"
] |
d944c30150c71d58796710c5231ca0458b33a703 | 964,003 | cpp | C++ | test/generated/bidi_test_594.cpp | Ryan-rsm-McKenzie/text | 15aaea4297e00ec4c74295e7913ead79c90e1502 | [
"BSL-1.0"
] | 265 | 2017-07-09T23:23:48.000Z | 2022-03-24T10:14:19.000Z | test/generated/bidi_test_594.cpp | Ryan-rsm-McKenzie/text | 15aaea4297e00ec4c74295e7913ead79c90e1502 | [
"BSL-1.0"
] | 185 | 2017-08-30T16:44:51.000Z | 2021-08-13T12:02:46.000Z | test/generated/bidi_test_594.cpp | Ryan-rsm-McKenzie/text | 15aaea4297e00ec4c74295e7913ead79c90e1502 | [
"BSL-1.0"
] | 25 | 2017-08-29T23:07:23.000Z | 2021-09-03T06:31:29.000Z | // Copyright (C) 2020 T. Zachary Laine
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Warning! This file is autogenerated.
#include <boost/text/bidirectional.hpp>
#include "bidi_tests.hpp"
#include <gte... | 33.158016 | 77 | 0.405262 | [
"vector"
] |
d94b8e190f77585ac5b29a9fe9fa10118b9c59af | 8,857 | cpp | C++ | ims/src/v20200713/model/ImsDetail.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | ims/src/v20200713/model/ImsDetail.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | ims/src/v20200713/model/ImsDetail.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 27.506211 | 136 | 0.681608 | [
"model"
] |
d94ec2c54cbabe8a84a4d37e032d1eb2edf58642 | 23,926 | cpp | C++ | crypto.cpp | 1nfern-0/Blockchain-based-loan-management-system | f138d3b96ce0bd6f9d2d50bb2dd53504593908dd | [
"MIT"
] | null | null | null | crypto.cpp | 1nfern-0/Blockchain-based-loan-management-system | f138d3b96ce0bd6f9d2d50bb2dd53504593908dd | [
"MIT"
] | null | null | null | crypto.cpp | 1nfern-0/Blockchain-based-loan-management-system | f138d3b96ce0bd6f9d2d50bb2dd53504593908dd | [
"MIT"
] | null | null | null | //Blockchain based Credit Scoring
/*
Name ID
Atishya Gupta - 2017A7PS1482H
R Hariharan - 2017A7PS0065H
V Rachana Srikruthi - 2017A7PS0086H
V Chandrahaas - 2015A7PS0010H
*/
#include <iostream>
#include <functional>
#include <string>
#include <sstre... | 32.115436 | 201 | 0.43831 | [
"vector"
] |
d9504b22c47520a5883b5b1a60337fb906344fc6 | 6,807 | cpp | C++ | Lesson 2 - Sensor Fusion, Localisation and Control/Project 2 - CarND-Unscented-Kalman-Filter/src/main.cpp | 2series/Self-Driving-Cars | 85ccb481f05693c5417b93acbdd32f695a298770 | [
"MIT"
] | 3 | 2017-10-26T01:57:36.000Z | 2018-02-22T08:50:11.000Z | Lesson 2 - Sensor Fusion, Localisation and Control/Project 2 - CarND-Unscented-Kalman-Filter/src/main.cpp | 2series/Self-Driving-Cars | 85ccb481f05693c5417b93acbdd32f695a298770 | [
"MIT"
] | null | null | null | Lesson 2 - Sensor Fusion, Localisation and Control/Project 2 - CarND-Unscented-Kalman-Filter/src/main.cpp | 2series/Self-Driving-Cars | 85ccb481f05693c5417b93acbdd32f695a298770 | [
"MIT"
] | 5 | 2017-05-28T20:36:04.000Z | 2020-07-27T09:01:54.000Z |
#include <fstream>
#include <iostream>
#include <sstream>
#include <vector>
#include <stdlib.h>
#include "Eigen/Dense"
#include "ukf.h"
#include "ground_truth_package.h"
#include "measurement_package.h"
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
void check_arguments(int arg... | 29.214592 | 95 | 0.629352 | [
"vector"
] |
d9769c15694777e137b4f81328002c2c05367b0a | 5,618 | cpp | C++ | stacer/Pages/Dashboard/dashboard_page.cpp | atakanprofile/Stoc | 388ca63358e36db2fbd5f31e901b5b09cca26532 | [
"MIT"
] | null | null | null | stacer/Pages/Dashboard/dashboard_page.cpp | atakanprofile/Stoc | 388ca63358e36db2fbd5f31e901b5b09cca26532 | [
"MIT"
] | null | null | null | stacer/Pages/Dashboard/dashboard_page.cpp | atakanprofile/Stoc | 388ca63358e36db2fbd5f31e901b5b09cca26532 | [
"MIT"
] | null | null | null | #include "dashboard_page.h"
#include "ui_dashboard_page.h"
DashboardPage::~DashboardPage()
{
delete ui;
}
DashboardPage::DashboardPage(QWidget *parent) :
QWidget(parent),
ui(new Ui::DashboardPage),
cpuBar(new CircleBar(tr("CPU"), {"#A8E063", "#56AB2F"}, this)),
memBar(new CircleBar(tr("MEMORY"), {... | 29.108808 | 125 | 0.617658 | [
"object",
"model"
] |
d97e20f85af64768e30c31fcf07fb4c25933add7 | 4,690 | cpp | C++ | GuiLib/GuiDropDownEdit.cpp | imxingquan/hotelMIS | f0da91dd5b4ffbe7d69a7038206a329e065d4c94 | [
"MIT"
] | 9 | 2019-11-28T02:42:01.000Z | 2021-12-25T08:32:02.000Z | GuiLib/GuiDropDownEdit.cpp | imxingquan/hotelMIS | f0da91dd5b4ffbe7d69a7038206a329e065d4c94 | [
"MIT"
] | null | null | null | GuiLib/GuiDropDownEdit.cpp | imxingquan/hotelMIS | f0da91dd5b4ffbe7d69a7038206a329e065d4c94 | [
"MIT"
] | 2 | 2021-01-07T10:00:07.000Z | 2021-11-01T11:18:37.000Z | /****************************************************************************
* *
* GuiToolKit *
* (MFC extension) *
* Created by Francisco Campos G. www.beyondata.com fcampos@beyondata.com *
*------------------------------------------------------------------... | 25.351351 | 110 | 0.665672 | [
"cad"
] |
d980a686b77b0e3d4aea24560aff9e3456ae7350 | 30,672 | cpp | C++ | 3rdparty/webkit/Source/WebCore/inspector/agents/InspectorPageAgent.cpp | mchiasson/PhaserNative | f867454602c395484bf730a7c43b9c586c102ac2 | [
"MIT"
] | null | null | null | 3rdparty/webkit/Source/WebCore/inspector/agents/InspectorPageAgent.cpp | mchiasson/PhaserNative | f867454602c395484bf730a7c43b9c586c102ac2 | [
"MIT"
] | null | null | null | 3rdparty/webkit/Source/WebCore/inspector/agents/InspectorPageAgent.cpp | mchiasson/PhaserNative | f867454602c395484bf730a7c43b9c586c102ac2 | [
"MIT"
] | 1 | 2019-01-25T13:55:25.000Z | 2019-01-25T13:55:25.000Z | /*
* Copyright (C) 2011 Google Inc. All rights reserved.
* Copyright (C) 2015-2017 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:
*
* * Redistributions of source code must ... | 35.336406 | 336 | 0.718147 | [
"object",
"vector"
] |
d983046e9726c05763613f6299e47d5c260ff768 | 9,461 | hpp | C++ | continuum_mechanics/test/TestContinuumMechanicsNeumannBcsAssembler.hpp | mdp19pn/Chaste | f7b6bafa64287d567125b587b29af6d8bd7aeb90 | [
"Apache-2.0",
"BSD-3-Clause"
] | 100 | 2015-02-23T08:32:23.000Z | 2022-02-25T11:39:26.000Z | continuum_mechanics/test/TestContinuumMechanicsNeumannBcsAssembler.hpp | mdp19pn/Chaste | f7b6bafa64287d567125b587b29af6d8bd7aeb90 | [
"Apache-2.0",
"BSD-3-Clause"
] | 11 | 2017-06-14T13:48:43.000Z | 2022-03-10T10:42:07.000Z | continuum_mechanics/test/TestContinuumMechanicsNeumannBcsAssembler.hpp | mdp19pn/Chaste | f7b6bafa64287d567125b587b29af6d8bd7aeb90 | [
"Apache-2.0",
"BSD-3-Clause"
] | 53 | 2015-02-23T13:52:44.000Z | 2022-02-28T18:57:35.000Z | /*
Copyright (c) 2005-2021, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... | 39.420833 | 149 | 0.631963 | [
"mesh",
"vector",
"3d"
] |
d985b3df9457d2055d5fb813f110a42792ff7dd1 | 13,149 | cpp | C++ | source/adios2/engine/ssc/SscReader.cpp | Carreau/ADIOS2 | 731e93f62bd1e25e88adcc8c44c055c41dcf4ee5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | source/adios2/engine/ssc/SscReader.cpp | Carreau/ADIOS2 | 731e93f62bd1e25e88adcc8c44c055c41dcf4ee5 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-01-15T15:07:21.000Z | 2020-01-15T15:07:21.000Z | source/adios2/engine/ssc/SscReader.cpp | Carreau/ADIOS2 | 731e93f62bd1e25e88adcc8c44c055c41dcf4ee5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* SscReader.cpp
*
* Created on: Nov 1, 2018
* Author: Jason Wang
*/
#include "SscReader.h"
#include "SscReader.tcc"
#include "adios2/helper/adiosFunctions.h"
#include "adios2/toolki... | 30.227586 | 80 | 0.495551 | [
"shape",
"vector",
"transform"
] |
d9894e50d5445f7cb6c2f5c1666d2c29e597cfa5 | 41,569 | cpp | C++ | src_main/materialsystem/shaderapidx9/shaderapidx10.cpp | ArcadiusGFN/SourceEngine2007 | 51cd6d4f0f9ed901cb9b61456eb621a50ce44f55 | [
"bzip2-1.0.6"
] | 25 | 2018-02-28T15:04:42.000Z | 2021-08-16T03:49:00.000Z | src_main/materialsystem/shaderapidx9/shaderapidx10.cpp | ArcadiusGFN/SourceEngine2007 | 51cd6d4f0f9ed901cb9b61456eb621a50ce44f55 | [
"bzip2-1.0.6"
] | 1 | 2019-09-20T11:06:03.000Z | 2019-09-20T11:06:03.000Z | src_main/materialsystem/shaderapidx9/shaderapidx10.cpp | ArcadiusGFN/SourceEngine2007 | 51cd6d4f0f9ed901cb9b61456eb621a50ce44f55 | [
"bzip2-1.0.6"
] | 9 | 2019-07-31T11:58:20.000Z | 2021-08-31T11:18:15.000Z | // Copyright © 1996-2018, Valve Corporation, All rights reserved.
#include "shaderapidx10.h"
#include "imaterialinternal.h"
#include "materialsystem/idebugtextureinfo.h"
#include "materialsystem/materialsystem_config.h"
#include "meshdx10.h"
#include "shaderapi/ishaderutil.h"
#include "shaderapibase.h"
#include "shade... | 36.368329 | 80 | 0.639347 | [
"mesh",
"render",
"object"
] |
d98f2017c12e5384b76d37011a746c3bd464fa6b | 625 | cpp | C++ | examples/core/ByteArray.cpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | examples/core/ByteArray.cpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | examples/core/ByteArray.cpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | #include <Python.h>
#include <vector>
#include <boost/foreach.hpp>
#include <ackward/core/ByteArray.hpp>
namespace ac = ackward::core;
int main(int argc, char** argv)
{
// Create some test data
std::vector<unsigned char> data(100, 0xab);
// Construct a ByteArray from the test data.
ac::ByteArray a... | 18.939394 | 64 | 0.6192 | [
"vector"
] |
d26ae86ac347a09267e36395ad83f0d2ae7ed59a | 1,080 | hpp | C++ | src/nmea-sender/NmeaSenderComponent.hpp | havardhellvik/sensors-and-senders | 9323457a91e0fcdddfbfe3ffea5fba5a7ed7591d | [
"MIT"
] | null | null | null | src/nmea-sender/NmeaSenderComponent.hpp | havardhellvik/sensors-and-senders | 9323457a91e0fcdddfbfe3ffea5fba5a7ed7591d | [
"MIT"
] | null | null | null | src/nmea-sender/NmeaSenderComponent.hpp | havardhellvik/sensors-and-senders | 9323457a91e0fcdddfbfe3ffea5fba5a7ed7591d | [
"MIT"
] | null | null | null | #pragma once
#include <unordered_map>
#include <string>
#include <vector>
#include "common/Component.hpp"
#include "NmeaTelegram.hpp"
#include "Enums.hpp"
#include "UdpSender.hpp"
struct Variable {
Causality causality;
fmi2ValueReference valueReference;
Type type;
};
class NmeaSenderComponent : public C... | 22.5 | 142 | 0.728704 | [
"vector"
] |
d271521b9f12057b660e7d438fb76a7cea8f7362 | 3,580 | cpp | C++ | ML506/FolderDlg.cpp | RoordaLab/ICANDI | 13a15065d09183671ab04dfb26f51368c36fb184 | [
"MIT"
] | null | null | null | ML506/FolderDlg.cpp | RoordaLab/ICANDI | 13a15065d09183671ab04dfb26f51368c36fb184 | [
"MIT"
] | null | null | null | ML506/FolderDlg.cpp | RoordaLab/ICANDI | 13a15065d09183671ab04dfb26f51368c36fb184 | [
"MIT"
] | null | null | null | // -------------
// FolderDlg.cpp
// -------------
#include "stdafx.h"
#include "stdafx.h"
#include "stdafx.h"
#include "stdafx.h"
#include "FolderDlg.h"
// ---------------
// m_initialFolder
// ---------------
CString CFolderDlg::m_initialFolder;
// ----------
// CFolderDlg
// ----------
/**... | 23.096774 | 102 | 0.649162 | [
"object",
"model"
] |
d276a74d86ed982324713e7ff023cc9a2759c15d | 5,769 | cpp | C++ | DirectProgramming/DPC++FPGA/Tutorials/Features/dsp_control/src/dsp_control.cpp | yafshar/oneAPI-samples | 592a2036e86e7083a05c0d6a1613fb826adf9a60 | [
"MIT"
] | null | null | null | DirectProgramming/DPC++FPGA/Tutorials/Features/dsp_control/src/dsp_control.cpp | yafshar/oneAPI-samples | 592a2036e86e7083a05c0d6a1613fb826adf9a60 | [
"MIT"
] | 1 | 2022-01-21T02:29:18.000Z | 2022-01-21T02:29:18.000Z | DirectProgramming/DPC++FPGA/Tutorials/Features/dsp_control/src/dsp_control.cpp | yafshar/oneAPI-samples | 592a2036e86e7083a05c0d6a1613fb826adf9a60 | [
"MIT"
] | null | null | null | //==============================================================
// Copyright Intel Corporation
//
// SPDX-License-Identifier: MIT
// =============================================================
#include <CL/sycl.hpp>
#include <sycl/ext/intel/fpga_extensions.hpp>
// dpc_common.hpp can be found in the dev-utilities in... | 38.718121 | 79 | 0.628185 | [
"vector"
] |
d278c817a97b88bc3a7fb27ce83d78e0e9864bf9 | 39,803 | cc | C++ | ash/display/persistent_window_controller_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | ash/display/persistent_window_controller_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | ash/display/persistent_window_controller_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2018 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 "ash/display/persistent_window_controller.h"
#include "ash/display/display_move_window_util.h"
#include "ash/display/screen_orientation_controll... | 45.803222 | 80 | 0.744466 | [
"vector"
] |
d279ba0f89be7bcae437c893f3b3ef18b0870257 | 30,850 | cc | C++ | tests/capi/unittest_capi_inference_nnfw_runtime.cc | helloahn/api | 6e3b34409146b48305175e9d53c87ff04d2b4068 | [
"Apache-2.0"
] | null | null | null | tests/capi/unittest_capi_inference_nnfw_runtime.cc | helloahn/api | 6e3b34409146b48305175e9d53c87ff04d2b4068 | [
"Apache-2.0"
] | null | null | null | tests/capi/unittest_capi_inference_nnfw_runtime.cc | helloahn/api | 6e3b34409146b48305175e9d53c87ff04d2b4068 | [
"Apache-2.0"
] | null | null | null | /**
* @file unittest_capi_inference_nnfw_runtime.cc
* @date 07 Oct 2019
* @brief Unit test for NNFW (ONE) tensor filter plugin with ML API.
* @see https://github.com/nnstreamer/nnstreamer
* @author MyungJoo Ham <myungjoo.ham@samsung.com>
* @bug No known bugs
*/
#include ... | 32.236155 | 130 | 0.71705 | [
"model"
] |
d27ec4083660181da3a6b2f9c4acaa11dc14df04 | 3,173 | cpp | C++ | core/tests/valuemodel.test.cpp | toeb/cpp.core | 84c782b1e0919dd598c3c19c8e5c71f27453ebf2 | [
"MIT"
] | 2 | 2016-10-25T19:42:49.000Z | 2017-03-25T22:26:03.000Z | core/tests/valuemodel.test.cpp | toeb/cpp.core | 84c782b1e0919dd598c3c19c8e5c71f27453ebf2 | [
"MIT"
] | null | null | null | core/tests/valuemodel.test.cpp | toeb/cpp.core | 84c782b1e0919dd598c3c19c8e5c71f27453ebf2 | [
"MIT"
] | null | null | null | #include <core.testing.h>
#include <core.values.h>
using namespace std;
NS_USE(CORE_NAMESPACE);
NS_USE(CORE_VALUES_NAMESPACE);
NS_USE(CORE_EVENTS_NAMESPACE);
UNITTEST(Property_should_fire_correct_events){
using namespace core::values;
using namespace core::events;
Property uut("myprop");
std::vector<s... | 19.83125 | 155 | 0.617712 | [
"vector"
] |
d283658cc1f34277edede7ef3d230020ec117274 | 9,648 | cxx | C++ | src/dataSubselector/dataSubselector.cxx | fermi-lat/dataSubselector | e5f4343d22ddc31f1fda0c50344810c6fc2b5ab7 | [
"BSD-3-Clause"
] | null | null | null | src/dataSubselector/dataSubselector.cxx | fermi-lat/dataSubselector | e5f4343d22ddc31f1fda0c50344810c6fc2b5ab7 | [
"BSD-3-Clause"
] | 4 | 2019-07-01T13:30:55.000Z | 2021-07-19T14:02:41.000Z | src/dataSubselector/dataSubselector.cxx | fermi-lat/dataSubselector | e5f4343d22ddc31f1fda0c50344810c6fc2b5ab7 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file dataSubselector.cxx
* @brief Filter FT1 data.
* @author J. Chiang
*
* $Header: /nfs/slac/g/glast/ground/cvs/ScienceTools-scons/dataSubselector/src/dataSubselector/dataSubselector.cxx,v 1.45 2014/06/27 21:20:27 jchiang Exp $
*/
#include <algorithm>
#include <stdexcept>
#include "facilities/Util.h"
... | 30.435331 | 157 | 0.608105 | [
"vector"
] |
d284217f247ab8ffa64d001b4a54a0b12348aeb0 | 435,234 | cpp | C++ | region_profiler/cython.deprecated/node.cpp | dand-oss/region_profiler | ab22fc46de9fdfec285c2fb530213c1b331d386a | [
"MIT"
] | 12 | 2019-02-10T16:47:27.000Z | 2022-03-27T19:45:24.000Z | region_profiler/cython.deprecated/node.cpp | dand-oss/region_profiler | ab22fc46de9fdfec285c2fb530213c1b331d386a | [
"MIT"
] | 2 | 2020-01-30T20:17:52.000Z | 2020-02-07T07:03:14.000Z | region_profiler/cython.deprecated/node.cpp | dand-oss/region_profiler | ab22fc46de9fdfec285c2fb530213c1b331d386a | [
"MIT"
] | 3 | 2020-01-30T01:21:35.000Z | 2020-10-27T23:38:07.000Z | /* Generated by Cython 0.29.6 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
#error Cython ... | 43.545173 | 599 | 0.708417 | [
"object"
] |
d2848f5618c6793385fbc9273402853ecf401dea | 5,802 | cpp | C++ | flightlib/tests/objects/quadrotor.cpp | evan-palmer/flightmare | 5f4c905910551386adfddaf5da59da41ce44b6cd | [
"MIT"
] | null | null | null | flightlib/tests/objects/quadrotor.cpp | evan-palmer/flightmare | 5f4c905910551386adfddaf5da59da41ce44b6cd | [
"MIT"
] | null | null | null | flightlib/tests/objects/quadrotor.cpp | evan-palmer/flightmare | 5f4c905910551386adfddaf5da59da41ce44b6cd | [
"MIT"
] | null | null | null | #include "flightlib/objects/quadrotor.hpp"
#include "flightlib/common/quad_state.hpp"
#include "flightlib/dynamics/quadrotor_dynamics.hpp"
#include <gtest/gtest.h>
using namespace flightlib;
static constexpr Scalar CTRL_UPDATE_FREQUENCY = 50.0;
static constexpr int SIM_STEPS_N = 20;
TEST(Quadrotor, Constructor) {
... | 25.786667 | 73 | 0.687694 | [
"vector"
] |
d286eb14d2f2ff97763e51968f3b0d8f73367ab0 | 6,647 | cpp | C++ | MonoNative.Tests/mscorlib/System/Runtime/InteropServices/mscorlib_System_Runtime_InteropServices_UCOMIMoniker_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/Runtime/InteropServices/mscorlib_System_Runtime_InteropServices_UCOMIMoniker_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/Runtime/InteropServices/mscorlib_System_Runtime_InteropServices_UCOMIMoniker_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Runtime.InteropServices
// Name: UCOMIMoniker
// C++ Typed Name: mscorlib::System::Runtime::InteropServices::UCOMIMoniker
#include <gtest/gtest.h>
#include <mscorlib/System/Runtime/Inte... | 34.087179 | 288 | 0.753573 | [
"object"
] |
d28ee0fd1be889e55ffc6105722c88209f7f75e3 | 849 | hpp | C++ | ext/src/java/lang/ClassLoader_ParallelLoaders.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/lang/ClassLoader_ParallelLoaders.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/lang/ClassLoader_ParallelLoaders.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/util/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct default_init_tag;
class java::lang::ClassLoader_ParallelLoaders
: public ... | 19.744186 | 97 | 0.698469 | [
"object"
] |
d2910bbc9529707c294e34812dcb7a4100e07a65 | 1,156 | hpp | C++ | rice/detail/Wrapper.hpp | lutaml/rice | f60f0efa5761d1b12fb4a8542c3ef13edbfb51c1 | [
"BSD-2-Clause"
] | 205 | 2015-01-05T04:11:36.000Z | 2022-03-22T19:08:16.000Z | rice/detail/Wrapper.hpp | lutaml/rice | f60f0efa5761d1b12fb4a8542c3ef13edbfb51c1 | [
"BSD-2-Clause"
] | 91 | 2015-01-01T19:06:47.000Z | 2022-03-20T23:12:04.000Z | rice/detail/Wrapper.hpp | lutaml/rice | f60f0efa5761d1b12fb4a8542c3ef13edbfb51c1 | [
"BSD-2-Clause"
] | 32 | 2015-01-17T01:00:51.000Z | 2022-03-18T04:12:59.000Z | #ifndef Rice__detail__Wrapper__hpp_
#define Rice__detail__Wrapper__hpp_
#include "ruby.hpp"
namespace Rice
{
namespace detail
{
class Wrapper
{
public:
virtual ~Wrapper() = default;
virtual void* get() = 0;
void ruby_mark();
void addKeepAlive(VALUE value);
private:
// We use a vector for speed and memory... | 22.230769 | 79 | 0.747405 | [
"vector"
] |
d296c28d555bc46c6a177e379cbcbc3b64ed99bd | 899 | hxx | C++ | odb-examples-2.4.0/pimpl/person.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-examples-2.4.0/pimpl/person.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-examples-2.4.0/pimpl/person.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | // file : pimpl/person.hxx
// copyright : not copyrighted - public domain
#ifndef PERSON_HXX
#define PERSON_HXX
#include <string>
#include <odb/core.hxx>
#pragma db object
class person
{
public:
~person ();
person (const std::string& email,
const std::string& name,
unsigned short age);
... | 15.77193 | 50 | 0.657397 | [
"object"
] |
d297095dc1403c1db610452aae5df9a4663bc3bc | 9,788 | hpp | C++ | include/System/Reflection/Module.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Reflection/Module.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Reflection/Module.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.Runtime.Serialization.ISerializable
#include "System/Runtime/Se... | 48.696517 | 358 | 0.714957 | [
"object"
] |
d29df546faf8b41c6ba2a8d7d596708fd1ee262a | 694 | hpp | C++ | src/hazel/platform/opengl/opengl_vertex_array.hpp | aceiii/hazel-mac | 10c61fd9ca371c49828c074ff88a263cb4ee275a | [
"Apache-2.0"
] | 1 | 2021-01-11T21:07:04.000Z | 2021-01-11T21:07:04.000Z | src/hazel/platform/opengl/opengl_vertex_array.hpp | aceiii/hazel-mac | 10c61fd9ca371c49828c074ff88a263cb4ee275a | [
"Apache-2.0"
] | null | null | null | src/hazel/platform/opengl/opengl_vertex_array.hpp | aceiii/hazel-mac | 10c61fd9ca371c49828c074ff88a263cb4ee275a | [
"Apache-2.0"
] | null | null | null | #include "hazel/core/core.hpp"
#include "hazel/renderer/vertex_array.hpp"
namespace hazel
{
class OpenGLVertexArray : public VertexArray
{
public:
OpenGLVertexArray();
~OpenGLVertexArray();
void bind() const override;
void unbind() const override;
void add_vertex_buffer(Ref<VertexBuffer>) override;
void... | 23.133333 | 99 | 0.760807 | [
"vector"
] |
d29ef42c8b059f995510f426913657d03ecaace6 | 3,447 | cc | C++ | lib/src/kernels/transform/mli_krn_tanh_fx.cc | SiyuanCheng-CN/embarc_mli | 6169ce0e3bdccea2bf2ee9c571a512893f1ce138 | [
"BSD-3-Clause"
] | null | null | null | lib/src/kernels/transform/mli_krn_tanh_fx.cc | SiyuanCheng-CN/embarc_mli | 6169ce0e3bdccea2bf2ee9c571a512893f1ce138 | [
"BSD-3-Clause"
] | null | null | null | lib/src/kernels/transform/mli_krn_tanh_fx.cc | SiyuanCheng-CN/embarc_mli | 6169ce0e3bdccea2bf2ee9c571a512893f1ce138 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2019-2021, Synopsys, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-3-Clause license found in
* the LICENSE file in the root directory of this source tree.
*
*/
#include "mli_check.h"
#include "mli_config.h"
#include "mli_debug.h"
#include "mli_helpers_api.h"
#include "mli_ma... | 31.916667 | 100 | 0.743545 | [
"shape"
] |
d2a1af1ac248a7cab04be27f722095f254589899 | 3,626 | cc | C++ | CMVS-PMVS/program/base/pmvs/detectFeatures.cc | mattjr/structured | 0cb4635af7602f2a243a9b739e5ed757424ab2a7 | [
"Apache-2.0"
] | 14 | 2015-01-11T02:53:04.000Z | 2021-11-25T17:31:22.000Z | CMVS-PMVS/program/base/pmvs/detectFeatures.cc | skair39/structured | 0cb4635af7602f2a243a9b739e5ed757424ab2a7 | [
"Apache-2.0"
] | null | null | null | CMVS-PMVS/program/base/pmvs/detectFeatures.cc | skair39/structured | 0cb4635af7602f2a243a9b739e5ed757424ab2a7 | [
"Apache-2.0"
] | 14 | 2015-07-21T04:47:52.000Z | 2020-03-12T12:31:25.000Z | #include <iostream>
#include <fstream>
#include "../image/image.h"
#include "detectFeatures.h"
#include "harris.h"
#include "dog.h"
#include "point.h"
using namespace PMVS3;
using namespace std;
using namespace Image;
CdetectFeatures::CdetectFeatures(void) {
pthread_rwlock_init(&m_rwlock, NULL);
}
CdetectFeatures:... | 29.479675 | 87 | 0.542471 | [
"vector"
] |
d2a3863dc785e0af2e5ca5a8b08699cafb8f1fc8 | 1,246 | cpp | C++ | projects/maze/source/MazeGenerator.cpp | davidxk/Magician | ef1063e6800c8ddc93b7c32d30c0b846faf3dd80 | [
"MIT"
] | 4 | 2017-09-25T03:41:02.000Z | 2020-06-17T22:21:53.000Z | projects/maze/source/MazeGenerator.cpp | davidxk/Magician | ef1063e6800c8ddc93b7c32d30c0b846faf3dd80 | [
"MIT"
] | null | null | null | projects/maze/source/MazeGenerator.cpp | davidxk/Magician | ef1063e6800c8ddc93b7c32d30c0b846faf3dd80 | [
"MIT"
] | null | null | null | #include "MazeGenerator.h"
#include <cstdlib>
#include <stack>
#include <unordered_set>
struct PairIntHash
{
std::size_t operator()(Cell const& s) const
{
std::size_t h1 = std::hash<int>()(s.first);
std::size_t h2 = std::hash<int>()(s.second);
return h1 ^ (h2 << 1);
}
};
vector<pa... | 23.509434 | 75 | 0.623596 | [
"vector"
] |
d2a65264b79f57660b787454ad3858043339dcf1 | 26,036 | cc | C++ | src/GUI_Motif.cc | edrosten/gvars | 62f5a78025dd616483487c9069f6b7f16c57922f | [
"BSD-2-Clause"
] | 15 | 2015-01-27T10:49:32.000Z | 2019-02-17T20:41:06.000Z | src/GUI_Motif.cc | edrosten/gvars | 62f5a78025dd616483487c9069f6b7f16c57922f | [
"BSD-2-Clause"
] | 2 | 2016-07-13T01:13:32.000Z | 2020-08-18T07:48:26.000Z | src/GUI_Motif.cc | edrosten/gvars | 62f5a78025dd616483487c9069f6b7f16c57922f | [
"BSD-2-Clause"
] | 15 | 2015-02-25T03:28:45.000Z | 2022-01-05T12:25:51.000Z | /*
This file is part of the GVars3 Library.
Copyright (C) 2005 The Authors
This library is free software, see LICENSE file for details
*/
#include "gvars3/instances.h"
#include "gvars3/GUI_Motif.h"
#include "gvars3/GStringUtil.h"
#include <Xm/PushB.h>
#include <Xm/RowColumn.h>
#include <Xm/F... | 29.352875 | 169 | 0.680596 | [
"vector"
] |
d2abc2c14799c568a4eb9058101c9756da06cdc0 | 1,577 | cpp | C++ | c++/.leetcode/1765.map-of-highest-peak.cpp | ming197/MyLeetCode | eba575765976b12db07be0857faad85b9c60d723 | [
"Apache-2.0"
] | null | null | null | c++/.leetcode/1765.map-of-highest-peak.cpp | ming197/MyLeetCode | eba575765976b12db07be0857faad85b9c60d723 | [
"Apache-2.0"
] | null | null | null | c++/.leetcode/1765.map-of-highest-peak.cpp | ming197/MyLeetCode | eba575765976b12db07be0857faad85b9c60d723 | [
"Apache-2.0"
] | null | null | null | /*
* @lc app=leetcode id=1765 lang=cpp
*
* [1765] Map of Highest Peak
*/
// @lc code=start
#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
vector<vector<int>> highestPeak(vector<vector<int>>& isWater) {
int m = isWater.size(), n = isWater[0].size();
vector<vector<int>> he... | 28.672727 | 107 | 0.380469 | [
"vector"
] |
d2af92b5433bbfbbf8dbd47b359d61f6f261a4aa | 7,312 | cc | C++ | Validation/MuonGEMRecHits/plugins/MuonGEMRecHitsHarvestor.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 1 | 2019-08-09T08:42:11.000Z | 2019-08-09T08:42:11.000Z | Validation/MuonGEMRecHits/plugins/MuonGEMRecHitsHarvestor.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | Validation/MuonGEMRecHits/plugins/MuonGEMRecHitsHarvestor.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 1 | 2019-04-03T19:23:27.000Z | 2019-04-03T19:23:27.000Z | // system include files
#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.... | 41.782857 | 165 | 0.686406 | [
"geometry"
] |
d2b2355969efc5e799e7cac8f16ebfc43f4eaa5c | 2,429 | hpp | C++ | include/caterpillar/synthesis/decompose_with_ands.hpp | MaSuCcHI/caterpillar | 4c6f766cd0ffc62d37ab45edfe80c9f1eae44764 | [
"MIT"
] | 13 | 2019-02-02T13:44:02.000Z | 2021-03-08T15:57:25.000Z | include/caterpillar/synthesis/decompose_with_ands.hpp | MaSuCcHI/caterpillar | 4c6f766cd0ffc62d37ab45edfe80c9f1eae44764 | [
"MIT"
] | 1 | 2019-11-02T12:13:13.000Z | 2019-11-02T13:45:17.000Z | include/caterpillar/synthesis/decompose_with_ands.hpp | MaSuCcHI/caterpillar | 4c6f766cd0ffc62d37ab45edfe80c9f1eae44764 | [
"MIT"
] | 5 | 2019-10-01T10:13:15.000Z | 2020-11-06T03:07:56.000Z | #include <tweedledum/networks/netlist.hpp>
#include <tweedledum/gates/mcmt_gate.hpp>
#include <caterpillar/structures/stg_gate.hpp>
namespace caterpillar
{
using namespace tweedledum;
/*
/brief!
transforms a reversible network result of the xag strategy in a quantum circuit
>>>>>>> would need support... | 27.602273 | 85 | 0.550021 | [
"vector"
] |
d2bdaddba0f7f14f866a1ca13b4173411084be3f | 1,797 | cpp | C++ | aws-cpp-sdk-resiliencehub/source/model/UpdateResiliencyPolicyRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-resiliencehub/source/model/UpdateResiliencyPolicyRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-resiliencehub/source/model/UpdateResiliencyPolicyRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/resiliencehub/model/UpdateResiliencyPolicyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ResilienceHub::Model;
using namespace Aws::... | 23.644737 | 138 | 0.765721 | [
"model"
] |
d2bef4f25e38f27545ca700943349cc3dc796ab0 | 3,817 | hpp | C++ | C++/inc/life.hpp | HankB/game_of_life | 8b3583034f8bd0999586c234a59dac597d9ed555 | [
"BSD-2-Clause"
] | null | null | null | C++/inc/life.hpp | HankB/game_of_life | 8b3583034f8bd0999586c234a59dac597d9ed555 | [
"BSD-2-Clause"
] | 1 | 2020-06-12T16:36:44.000Z | 2020-06-12T16:36:44.000Z | C++/inc/life.hpp | HankB/game_of_life | 8b3583034f8bd0999586c234a59dac597d9ed555 | [
"BSD-2-Clause"
] | null | null | null | #ifndef __LIFE_H_INCLUDED__
#define __LIFE_H_INCLUDED__
/* things used in Game of Life C++ implementation
*/
#include <list>
#include <vector>
#include <iostream>
enum cell_state
{
born = 'b', // will be live, next iteration
live = 'l', // live at end of pevious iteration
dying = 'd', // will die and be... | 31.286885 | 89 | 0.63453 | [
"vector"
] |
d2c73aba6401d7fbd2ec8eb04b524f51031db343 | 49,335 | hpp | C++ | googletest/MockDevice.hpp | Humility086/DirectX-Headers | 0644e7014faf33358b4e220875305d29715db0f8 | [
"MIT"
] | 311 | 2020-12-05T00:53:01.000Z | 2022-03-31T02:52:24.000Z | googletest/MockDevice.hpp | Humility086/DirectX-Headers | 0644e7014faf33358b4e220875305d29715db0f8 | [
"MIT"
] | 23 | 2020-12-08T16:40:03.000Z | 2022-02-22T19:11:12.000Z | googletest/MockDevice.hpp | Humility086/DirectX-Headers | 0644e7014faf33358b4e220875305d29715db0f8 | [
"MIT"
] | 105 | 2020-12-21T09:46:28.000Z | 2022-03-31T10:06:16.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#ifndef DIRECTX_HEADERS_MOCK_DEVICE_HPP
#define DIRECTX_HEADERS_MOCK_DEVICE_HPP
#include <unordered_map>
#include <directx/d3d12.h>
#include <directx/dxcore.h>
#include <directx/d3dx12.h>
#include "dxguids/dxguids.h"
class MockDevice : public ... | 40.012165 | 215 | 0.640499 | [
"vector",
"model"
] |
d2c96f0ad9661ef13488a5a28cdbed1c0e0ddf97 | 4,081 | cpp | C++ | designer/lib/shared/plaintexteditor.cpp | liyuzhao/QWidgetDemo | a056894da7b7385e37a523ea4825cea48c82d297 | [
"MulanPSL-1.0"
] | 3,095 | 2019-10-11T03:00:33.000Z | 2022-03-31T08:15:13.000Z | designer/lib/shared/plaintexteditor.cpp | liyuzhao/QWidgetDemo | a056894da7b7385e37a523ea4825cea48c82d297 | [
"MulanPSL-1.0"
] | 28 | 2019-11-12T07:24:06.000Z | 2022-02-28T02:04:48.000Z | designer/lib/shared/plaintexteditor.cpp | liyuzhao/QWidgetDemo | a056894da7b7385e37a523ea4825cea48c82d297 | [
"MulanPSL-1.0"
] | 1,023 | 2019-10-09T12:54:07.000Z | 2022-03-30T04:02:07.000Z | /****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Designer of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** C... | 34.008333 | 120 | 0.727028 | [
"geometry"
] |
d2cbe3573b53f11375f064f27f8264f93e0d175a | 2,162 | cpp | C++ | usaco/chapter-01/section-04/mothers_milk.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | usaco/chapter-01/section-04/mothers_milk.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | usaco/chapter-01/section-04/mothers_milk.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | /*
ID: gsshopo1
PROB: milk3
LANG: C++11
*/
#include <algorithm>
#include <fstream>
#include <queue>
#include <set>
#include <vector>
using namespace std;
struct Node
{
vector<unsigned int> amounts;
Node(unsigned int a, unsigned int b, unsigned int c):
amounts {a, b, c}
{ }
};
boo... | 20.205607 | 68 | 0.514801 | [
"vector"
] |
d2d99c743bdf080f3fcfa93f4e16c90f8f221152 | 4,012 | cpp | C++ | kps/pcl-sift/main.cpp | ECer23/6dpose.gendata | 8a7e7e34bb412ad4cae77ac617ac554204ab0782 | [
"MIT"
] | 1 | 2019-08-05T08:25:50.000Z | 2019-08-05T08:25:50.000Z | kps/pcl-sift/main.cpp | ECer23/6dpose.gendata | 8a7e7e34bb412ad4cae77ac617ac554204ab0782 | [
"MIT"
] | null | null | null | kps/pcl-sift/main.cpp | ECer23/6dpose.gendata | 8a7e7e34bb412ad4cae77ac617ac554204ab0782 | [
"MIT"
] | null | null | null | // STL
#include <iostream>
#include <string>
// PCL
#include <pcl/common/io.h>
#include <pcl/console/time.h>
#include <pcl/features/normal_3d.h>
#include <pcl/io/ascii_io.h>
#include <pcl/io/ply_io.h>
#include <pcl/io/vtk_lib_io.h>
#include <pcl/keypoints/sift_keypoint.h>
#include <pcl/point_types.h>
#inc... | 34.886957 | 95 | 0.678963 | [
"3d"
] |
d2dd144fb50ddf6f77bfd7ff92d3a0a6e5526b9a | 6,027 | cc | C++ | src/generator/extension.cc | sstreng/protobluff | 5347216de2d003b2fb85717eefe8f05bb1d28a49 | [
"MIT"
] | 68 | 2015-07-20T09:09:06.000Z | 2022-03-08T08:28:17.000Z | src/generator/extension.cc | sstreng/protobluff | 5347216de2d003b2fb85717eefe8f05bb1d28a49 | [
"MIT"
] | 8 | 2018-08-01T20:53:05.000Z | 2021-08-25T16:45:08.000Z | src/generator/extension.cc | sstreng/protobluff | 5347216de2d003b2fb85717eefe8f05bb1d28a49 | [
"MIT"
] | 22 | 2015-09-25T09:35:01.000Z | 2021-06-11T21:27:39.000Z | /*
* Copyright (c) 2013-2020 Martin Donath <martin.donath@squidfunk.com>
*
* 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... | 29.257282 | 79 | 0.62751 | [
"vector"
] |
5e43d691ad9d89dd04d13a78cf3cb4453b7bbeb2 | 1,174 | hpp | C++ | src/Modules/GUIModule/Facades/OSFacadeInterface.hpp | danielfilipealmeida/Orange | e0118a7d1391e74c15c707e64a2e0458d51d318f | [
"MIT"
] | null | null | null | src/Modules/GUIModule/Facades/OSFacadeInterface.hpp | danielfilipealmeida/Orange | e0118a7d1391e74c15c707e64a2e0458d51d318f | [
"MIT"
] | null | null | null | src/Modules/GUIModule/Facades/OSFacadeInterface.hpp | danielfilipealmeida/Orange | e0118a7d1391e74c15c707e64a2e0458d51d318f | [
"MIT"
] | null | null | null | //
// OSInterface.hpp
// orange
//
// Created by Daniel Almeida on 13/12/2018.
//
#ifndef OSInterface_h
#define OSInterface_h
#include <string>
#include "EngineController.hpp"
namespace Orange {
namespace GUI {
/*!
Interface implemented by all OS Facades for implementing specific OS ... | 24.458333 | 105 | 0.537479 | [
"object"
] |
5e581255ac9f0785d4ec94b80d01f3dd48c0bbed | 1,210 | cpp | C++ | src/main.cpp | jkesanen/txtratl | cf67412e251d7c89c3bfc332026b482352a42c24 | [
"MIT"
] | null | null | null | src/main.cpp | jkesanen/txtratl | cf67412e251d7c89c3bfc332026b482352a42c24 | [
"MIT"
] | null | null | null | src/main.cpp | jkesanen/txtratl | cf67412e251d7c89c3bfc332026b482352a42c24 | [
"MIT"
] | null | null | null | #include "atlas.hpp"
#include "zupply.hpp"
using namespace zz;
int main(int argc, char** argv)
{
if (argc != 2)
{
std::cerr << "Usage: " << argv[0] << " [directory]" << std::endl;
return -1;
}
// Filter image files from the source directory
const std::vector<const ch... | 24.2 | 87 | 0.497521 | [
"vector"
] |
5e62a726a4e1ba2a303a662b732a2d112451ad03 | 3,140 | cpp | C++ | matrix/src/op/FullConnectedOp.cpp | Jarlene/Matrix | 7b2e07a46f8d0477243d49c76db575280096e247 | [
"Apache-2.0"
] | 2 | 2017-07-22T05:20:57.000Z | 2018-07-08T08:48:33.000Z | matrix/src/op/FullConnectedOp.cpp | Jarlene/Matrix | 7b2e07a46f8d0477243d49c76db575280096e247 | [
"Apache-2.0"
] | null | null | null | matrix/src/op/FullConnectedOp.cpp | Jarlene/Matrix | 7b2e07a46f8d0477243d49c76db575280096e247 | [
"Apache-2.0"
] | null | null | null | //
// Created by Jarlene on 2017/8/2.
//
#include "matrix/include/op/FullConnectedOp.h"
namespace matrix {
template <class T, class xpu>
FullConnectedOp<T, xpu>::FullConnectedOp(Parameter ¶m) {
INIT_PARAMS
}
template <class T, class xpu>
bool FullConnectedOp<T, xpu>::Run() {
... | 29.904762 | 113 | 0.501911 | [
"shape",
"vector"
] |
5e6c71232d79c4c06baf781b7c81a15faa2d06bc | 10,237 | cc | C++ | s2/s2edge_crossings_test.cc | greg-dd/s2 | c766edf452e68dde786ab36886bcf665bb6e4a7c | [
"Apache-2.0"
] | 3 | 2022-02-09T20:31:46.000Z | 2022-03-19T03:36:09.000Z | s2/s2edge_crossings_test.cc | greg-dd/s2 | c766edf452e68dde786ab36886bcf665bb6e4a7c | [
"Apache-2.0"
] | null | null | null | s2/s2edge_crossings_test.cc | greg-dd/s2 | c766edf452e68dde786ab36886bcf665bb6e4a7c | [
"Apache-2.0"
] | null | null | null | // Copyright 2005 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... | 40.948 | 78 | 0.655661 | [
"vector"
] |
5e734f618e77ab2c03229ca4869fb58afff1a2f5 | 1,598 | cpp | C++ | leetcode.com/0031 Next Permutation/better.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/0031 Next Permutation/better.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/0031 Next Permutation/better.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | // https://leetcode.com/problems/next-permutation/discuss/415598/C%2B%2B-simple-solution-0ms-beat-100-and-Python-simple-solution
#include <iostream>
#include <vector>
#include <limits>
#include <algorithm>
using namespace std;
class Solution {
public:
void nextPermutation(vector<int>& nums) {
int cur = 0;... | 27.551724 | 128 | 0.456821 | [
"vector"
] |
5e7c1e1fe179e6329686efd988a817f1515273e2 | 503 | cpp | C++ | Codeforces/978A - Remove Duplicates.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/978A - Remove Duplicates.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/978A - Remove Duplicates.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using ll = long long;
using namespace std;
int n;
int arr[100];
bool marks[1100];
int main() {
cin >> n;
for (int i = 1; i <= n; ++i) cin >> arr[i];
vector<int> res;
for (int i = n; i >= 1; --i) {
if ( !marks[arr[i]] ) {
res.push_back(arr[i]);
... | 17.964286 | 47 | 0.461233 | [
"vector"
] |
5e7d2478fea2296610f98a14071aa74bc9eaac21 | 34,140 | cxx | C++ | main/vcl/source/gdi/regionband.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/vcl/source/gdi/regionband.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/vcl/source/gdi/regionband.cxx | 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... | 24.649819 | 107 | 0.617165 | [
"vector"
] |
5e8655baf2aa7e69532dc0dbbac5cfddb4183a58 | 39,791 | cc | C++ | tools/festvox/src/ehmm/src/FeatureExtraction.cc | jantunez14/merlin | 66d602919aa8d3ca20b77d4515b8214b5b1be508 | [
"Apache-2.0"
] | null | null | null | tools/festvox/src/ehmm/src/FeatureExtraction.cc | jantunez14/merlin | 66d602919aa8d3ca20b77d4515b8214b5b1be508 | [
"Apache-2.0"
] | 3 | 2020-06-05T18:09:02.000Z | 2021-06-10T20:06:02.000Z | tools/festvox/src/ehmm/src/FeatureExtraction.cc | jantunez14/merlin | 66d602919aa8d3ca20b77d4515b8214b5b1be508 | [
"Apache-2.0"
] | null | null | null | /*************************************************************************/
/* */
/* Copyright (C) 2002-2005 */
/* ISRI, Carnegie Mellon University, USA and */
/* Internationa... | 26.316799 | 151 | 0.568897 | [
"vector"
] |
5e88a3dc08b327df5ca3a99268167d1aaf40b335 | 2,347 | cpp | C++ | translational.cpp | harry-v528/-graphics | 85b4e9077cdaef029eb267a96a432d1ccf01ab32 | [
"Apache-2.0"
] | null | null | null | translational.cpp | harry-v528/-graphics | 85b4e9077cdaef029eb267a96a432d1ccf01ab32 | [
"Apache-2.0"
] | null | null | null | translational.cpp | harry-v528/-graphics | 85b4e9077cdaef029eb267a96a432d1ccf01ab32 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#include <graphics.h>
#define vfig vector<pair<int, int>>
#define fl(i, n) for (int i = 0; i < n; i++)
#define fln(i, n, r) for (int i = 0; i < n; i += r)
#define pi 3.14
using namespace std;
void figure(vfig vf)
{
int i = 0;
for (; i < vf.size()-1; i++)
{
line(vf[i].first, ... | 25.236559 | 103 | 0.484874 | [
"vector"
] |
5e8a5fbca402b4781a636e486a5c477a90a65e9c | 2,275 | hpp | C++ | pseudotopoorder.hpp | mraggi/LongestSimplePath | 7bc58044f32970481aba6d5c859975c30d2e0915 | [
"Apache-2.0"
] | 9 | 2017-02-23T15:18:26.000Z | 2022-01-14T15:17:01.000Z | LongestSimplePath/pseudotopoorder.hpp | eddiehung/nextpnr-lsp | de4deb5f973b0a2d4600c47bf6fbfaeaca6bb200 | [
"0BSD"
] | 1 | 2020-07-16T09:41:09.000Z | 2020-07-16T13:42:15.000Z | pseudotopoorder.hpp | mraggi/LongestSimplePath | 7bc58044f32970481aba6d5c859975c30d2e0915 | [
"Apache-2.0"
] | 2 | 2019-08-20T07:14:10.000Z | 2021-01-06T01:45:40.000Z | #pragma once
#include "moviegraph.hpp"
#include "path.hpp"
class PseudoTopoOrder
{
public:
PseudoTopoOrder(const DiGraph& m, const std::vector<node_t>& ts, const std::vector<node_t>& tsi) :
pto(ts),
pto_inverse(tsi),
dynamic_programming(ts.size(), 0),
best_parent(ts.size(),-1),
best_index(0),
first_unkno... | 20.681818 | 113 | 0.693187 | [
"vector"
] |
5e8ec37e9dc68a10bf4a18df773d27f60a766b1e | 4,077 | cpp | C++ | llvm_analysis/MainAnalysisPasses/SoundyAliasAnalysis/src/AliasFuncHandlerCallback.cpp | seclab-ucr/SUTURE | b970c35dfe79613bdd33526a99b73d9c814d733b | [
"BSD-2-Clause"
] | 12 | 2021-09-24T01:29:44.000Z | 2022-03-04T17:32:57.000Z | llvm_analysis/MainAnalysisPasses/SoundyAliasAnalysis/src/AliasFuncHandlerCallback.cpp | seclab-ucr/SUTURE | b970c35dfe79613bdd33526a99b73d9c814d733b | [
"BSD-2-Clause"
] | null | null | null | llvm_analysis/MainAnalysisPasses/SoundyAliasAnalysis/src/AliasFuncHandlerCallback.cpp | seclab-ucr/SUTURE | b970c35dfe79613bdd33526a99b73d9c814d733b | [
"BSD-2-Clause"
] | 2 | 2021-12-20T10:09:53.000Z | 2022-02-23T07:27:05.000Z | //
// Created by machiry on 12/4/16.
//
#include "AliasFuncHandlerCallback.h"
#include "AliasObject.h"
using namespace llvm;
namespace DRCHECKER {
#define DEBUG_CREATE_HEAP_OBJ
void* AliasFuncHandlerCallback::handleAllocationFunction(CallInst &callInst, Function *targetFunction,
... | 43.83871 | 142 | 0.623252 | [
"object",
"vector"
] |
5e8f2a9e132b1187baf5c8c17c987687f08f236d | 4,258 | cpp | C++ | src/Storages/PartitionedSink.cpp | pdv-ru/ClickHouse | 0ff975bcf3008fa6c6373cbdfed16328e3863ec5 | [
"Apache-2.0"
] | 5 | 2019-07-29T02:09:56.000Z | 2020-03-19T19:05:44.000Z | src/Storages/PartitionedSink.cpp | pdv-ru/ClickHouse | 0ff975bcf3008fa6c6373cbdfed16328e3863ec5 | [
"Apache-2.0"
] | 30 | 2021-10-01T00:08:14.000Z | 2021-12-06T13:13:12.000Z | src/Storages/PartitionedSink.cpp | pdv-ru/ClickHouse | 0ff975bcf3008fa6c6373cbdfed16328e3863ec5 | [
"Apache-2.0"
] | 1 | 2022-03-17T13:23:06.000Z | 2022-03-17T13:23:06.000Z | #include "PartitionedSink.h"
#include <Functions/FunctionsConversion.h>
#include <Interpreters/Context.h>
#include <Interpreters/ExpressionAnalyzer.h>
#include <Interpreters/TreeRewriter.h>
#include <Interpreters/evaluateConstantExpression.h>
#include <Parsers/ASTFunction.h>
#include <Parsers/ASTInsertQuery.h>
#incl... | 32.503817 | 128 | 0.686942 | [
"vector"
] |
5e9101c08b44842b761f9b453a23b2f33239154a | 9,594 | cpp | C++ | lib/CheerpUtils/CFGPasses.cpp | leaningtech/cheerp-llvm | 0ba529de78aa21d45f5ac4946859ad1a3e6a82dd | [
"Apache-2.0"
] | 173 | 2015-01-14T00:05:41.000Z | 2022-02-22T05:47:18.000Z | lib/CheerpUtils/CFGPasses.cpp | leaningtech/cheerp-llvm | 0ba529de78aa21d45f5ac4946859ad1a3e6a82dd | [
"Apache-2.0"
] | 2 | 2015-12-02T11:33:51.000Z | 2019-02-26T10:05:48.000Z | lib/CheerpUtils/CFGPasses.cpp | leaningtech/cheerp-llvm | 0ba529de78aa21d45f5ac4946859ad1a3e6a82dd | [
"Apache-2.0"
] | 24 | 2015-01-11T22:34:43.000Z | 2022-02-15T19:28:10.000Z | //===-- CFGPasses.cpp - Optimizations on the control flow graph --------===//
//
// Cheerp: The C++ compiler for the Web
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
// Copyright 2017-2020 Leaning Technologies
//
//===-------... | 32.194631 | 160 | 0.672816 | [
"vector"
] |
5e91b43bc14569c4503db84ad082ff27f61d6cff | 3,083 | hpp | C++ | src/DTC/parallelDTCOutputFxn.hpp | Seideman-Group/chiML | 9ace5dccdbc6c173e8383f6a31ff421b4fefffdf | [
"MIT"
] | 1 | 2019-04-27T05:25:27.000Z | 2019-04-27T05:25:27.000Z | src/DTC/parallelDTCOutputFxn.hpp | Seideman-Group/chiML | 9ace5dccdbc6c173e8383f6a31ff421b4fefffdf | [
"MIT"
] | null | null | null | src/DTC/parallelDTCOutputFxn.hpp | Seideman-Group/chiML | 9ace5dccdbc6c173e8383f6a31ff421b4fefffdf | [
"MIT"
] | 2 | 2019-04-03T10:08:21.000Z | 2019-09-30T22:40:28.000Z | /** @file DTC/parallelDTCOutputFxn.hpp
* @brief Functions that convert field data into the correct form for the detectors
*
* @author Thomas A. Purcell (tpurcell90)
* @bug No known bugs.
*/
#ifndef FDTD_PARALLELDETECTORFXNS
#define FDTD_PARALLELDETECTORFXNS
#include <UTIL/typedefs.hpp>
/**
* @brief Func... | 44.042857 | 139 | 0.694778 | [
"vector",
"transform"
] |
5e962c9d16b5431d05187580b88026dd0f09b34b | 26,223 | cpp | C++ | Test/StokesFMM3D/main.cpp | blackwer/PeriodicFMM | 343130eef6bbba5d7d4101bdec961858ea084b4a | [
"Apache-2.0"
] | null | null | null | Test/StokesFMM3D/main.cpp | blackwer/PeriodicFMM | 343130eef6bbba5d7d4101bdec961858ea084b4a | [
"Apache-2.0"
] | null | null | null | Test/StokesFMM3D/main.cpp | blackwer/PeriodicFMM | 343130eef6bbba5d7d4101bdec961858ea084b4a | [
"Apache-2.0"
] | null | null | null | /*
* main.cpp
*
* Created on: Oct 14, 2016
* Author: wyan
*/
#include "ChebNodal.h"
#include "Ewald.hpp"
#include "regularized_stokeslet.hpp"
#include <FMM/FMMWrapper.hpp>
#include <FMM/cmdparser.hpp>
#include <chrono>
#include <iostream>
#include <random>
#include <vector>
#include <Eigen/Dense>
#include... | 39.731818 | 80 | 0.475232 | [
"mesh",
"vector"
] |
5e96ff57118035f2234b0c80708e93cf18201a26 | 12,791 | cpp | C++ | plugins/manager/src/framework/impl_class.cpp | openharmony-gitee-mirror/multimedia_image_standard | 40b530603fe815ab9c845ac1633d369d4339b1d0 | [
"Apache-2.0"
] | null | null | null | plugins/manager/src/framework/impl_class.cpp | openharmony-gitee-mirror/multimedia_image_standard | 40b530603fe815ab9c845ac1633d369d4339b1d0 | [
"Apache-2.0"
] | null | null | null | plugins/manager/src/framework/impl_class.cpp | openharmony-gitee-mirror/multimedia_image_standard | 40b530603fe815ab9c845ac1633d369d4339b1d0 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 34.384409 | 120 | 0.657728 | [
"object"
] |
5e9e10120a821538c6baed25041326dba7d9ae85 | 13,205 | cxx | C++ | Source/ModelBridges/vtkModelManagerWrapper.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | Source/ModelBridges/vtkModelManagerWrapper.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | Source/ModelBridges/vtkModelManagerWrapper.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | //=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... | 34.933862 | 100 | 0.596668 | [
"object",
"model"
] |
5ea51ba97118c232bfb5e3b6f9319f16560833f4 | 2,260 | cpp | C++ | codes/algorithms/pers_tree.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | null | null | null | codes/algorithms/pers_tree.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | null | null | null | codes/algorithms/pers_tree.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | null | null | null |
//cses pst problem
//misaka will carry me to master
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <utility>
#include <cassert>
#include <algorithm>
#include <vector>
#include <functional>
#include <numeric>
#include <set>
#include <map>
#define ll long long
#define lb long double... | 16.992481 | 74 | 0.499115 | [
"vector"
] |
5ea520d94738343e42995fd0878fd31222893738 | 831 | cpp | C++ | exercises/vectors/vector-manipulation/funcs.cpp | amcumber/udacity-intro-cpp | 8dd59819110ac18c8ce235ab94f3f74faa69d66d | [
"MIT"
] | null | null | null | exercises/vectors/vector-manipulation/funcs.cpp | amcumber/udacity-intro-cpp | 8dd59819110ac18c8ce235ab94f3f74faa69d66d | [
"MIT"
] | null | null | null | exercises/vectors/vector-manipulation/funcs.cpp | amcumber/udacity-intro-cpp | 8dd59819110ac18c8ce235ab94f3f74faa69d66d | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include "funcs.h"
using namespace std;
vector<int> sloppy_subtract(vector<int> vec1, vector<int> vec2) {
// Dynamic?
vector<int> resultant(vec1.size());
for (int i = 0; i < vec1.size(); ++i) {
resultant[i] = vec1[i] - vec2[i];
}
return resultant;
}
... | 20.775 | 65 | 0.540313 | [
"vector"
] |
5ea9e3525062f73bfde97db69259250d310d9530 | 216 | cpp | C++ | library/utility/containers/test/vector_test.cpp | diarkia124/SJSU-Dev2 | 3385f034690d281c2720e17b0a6bdbe51a65113c | [
"Apache-2.0"
] | 1 | 2019-11-25T20:31:07.000Z | 2019-11-25T20:31:07.000Z | library/utility/containers/test/vector_test.cpp | diarkia124/SJSU-Dev2 | 3385f034690d281c2720e17b0a6bdbe51a65113c | [
"Apache-2.0"
] | null | null | null | library/utility/containers/test/vector_test.cpp | diarkia124/SJSU-Dev2 | 3385f034690d281c2720e17b0a6bdbe51a65113c | [
"Apache-2.0"
] | null | null | null | #include "L4_Testing/testing_frameworks.hpp"
#include "utility/containers/vector.hpp"
namespace sjsu
{
TEST_CASE("Testing Vector Container", "[vector-container]")
{
Vector<int, 128> vector;
}
} // namespace sjsu
| 19.636364 | 59 | 0.74537 | [
"vector"
] |
5eaa32b49e605b1144e1b19d35dbeaaa9898f285 | 3,744 | cpp | C++ | examples/main.cpp | okruz/BSplinebasis | 2dd31b9e48730966d3097035b5bed2f7dbbbe46b | [
"Unlicense"
] | 1 | 2021-12-29T17:30:17.000Z | 2021-12-29T17:30:17.000Z | examples/main.cpp | okruz/BSplinebasis | 2dd31b9e48730966d3097035b5bed2f7dbbbe46b | [
"Unlicense"
] | 9 | 2021-11-15T20:50:12.000Z | 2022-01-31T20:32:44.000Z | examples/main.cpp | okruz/BSplinebasis | 2dd31b9e48730966d3097035b5bed2f7dbbbe46b | [
"Unlicense"
] | null | null | null | /*
* ########################################################################
* The contents of this file is free and unencumbered software released into the
* public domain. For more information, please refer to <http://unlicense.org/>
* ########################################################################
*/
... | 34.990654 | 80 | 0.543803 | [
"vector"
] |
5eabc443eba5e1eaaf30ca38671ba95cb289309e | 15,822 | hpp | C++ | patrace/src/common/memory.hpp | xiangruipuzhao/patrace | db444184177277b23e1de93fd320493628aae850 | [
"MIT"
] | 1 | 2019-10-13T16:57:52.000Z | 2019-10-13T16:57:52.000Z | patrace/src/common/memory.hpp | xiangruipuzhao/patrace | db444184177277b23e1de93fd320493628aae850 | [
"MIT"
] | null | null | null | patrace/src/common/memory.hpp | xiangruipuzhao/patrace | db444184177277b23e1de93fd320493628aae850 | [
"MIT"
] | null | null | null | #ifndef _INCLUDE_MEMORY_
#define _INCLUDE_MEMORY_
#include <cstddef>
#include <cstring>
#include <vector>
#include <unordered_map>
#include <map>
#include <set>
#include "md5/md5.h"
#include <common/os.hpp>
#include <iostream>
#include <iomanip>
#include <sstream>
namespace common
{
static char const hex[16] = { '0... | 28.456835 | 163 | 0.605044 | [
"object",
"vector"
] |
5eb0eb62657f5542be998a1ef3896af08827cb59 | 3,864 | cpp | C++ | formats/base64.cpp | yyjdelete/Leanify | 23956525c6d94689a6e6d25f3d55adba22e1e5c5 | [
"MIT"
] | null | null | null | formats/base64.cpp | yyjdelete/Leanify | 23956525c6d94689a6e6d25f3d55adba22e1e5c5 | [
"MIT"
] | null | null | null | formats/base64.cpp | yyjdelete/Leanify | 23956525c6d94689a6e6d25f3d55adba22e1e5c5 | [
"MIT"
] | null | null | null | #include "base64.h"
#include <cstdint>
#include <iostream>
#include <vector>
#include "../leanify.h"
namespace {
int Base64Decode(const uint8_t* in, size_t in_len, uint8_t* out, size_t* out_len) {
static const uint8_t d[] = {
66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 64, 66, 66, 64, 66, 66, 66, 66, 66, 66, 66, ... | 31.672131 | 119 | 0.535714 | [
"vector"
] |
5eb70683701a567e33b55cb324d2267d39186858 | 3,210 | cpp | C++ | dnn/src/cuda/conv_bias/inplace_matmul.cpp | kxz18/MegEngine | 88c1eedbd716805244b35bdda57c3cea5efe734d | [
"Apache-2.0"
] | 3 | 2021-08-08T12:55:53.000Z | 2021-12-10T06:01:04.000Z | dnn/src/cuda/conv_bias/inplace_matmul.cpp | kxz18/MegEngine | 88c1eedbd716805244b35bdda57c3cea5efe734d | [
"Apache-2.0"
] | 6 | 2020-04-24T08:52:06.000Z | 2021-08-16T06:38:23.000Z | dnn/src/cuda/conv_bias/inplace_matmul.cpp | kxz18/MegEngine | 88c1eedbd716805244b35bdda57c3cea5efe734d | [
"Apache-2.0"
] | null | null | null | /**
* \file dnn/src/cuda/conv_bias/inplace_matmul.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed o... | 41.688312 | 89 | 0.608723 | [
"shape"
] |
5eb7f0cc60267fedd6079a07249dadfe2f618bab | 3,588 | cpp | C++ | sources/server.cpp | LinkIvan333/laba7 | 9a7145b9a50a16bbfc3bef0cf8755e2dfe359bc2 | [
"MIT"
] | null | null | null | sources/server.cpp | LinkIvan333/laba7 | 9a7145b9a50a16bbfc3bef0cf8755e2dfe359bc2 | [
"MIT"
] | null | null | null | sources/server.cpp | LinkIvan333/laba7 | 9a7145b9a50a16bbfc3bef0cf8755e2dfe359bc2 | [
"MIT"
] | null | null | null | // Copyright 2020 <LinkIvan333>
#include <server.h>
void Server::connectionHandler(){
tcp::acceptor acceptor(ioService,
boost::asio::ip::tcp::endpoint{boost::asio::ip::tcp::v4(), PORT});
while (true) {
auto client = std::make_shared<Client>(ioService);
acceptor.accept(client -> socket);
... | 33.53271 | 79 | 0.604794 | [
"vector"
] |
5ebb4196c88bead5d95ec461fb9c2969e0774697 | 9,724 | cpp | C++ | emitter/x86/x86runtime_printer.cpp | nandor/genm-opt | b3347d508fff707837d1dc8232487ebfe157fe2a | [
"MIT"
] | 13 | 2020-06-25T18:26:54.000Z | 2021-02-16T03:14:38.000Z | emitter/x86/x86runtime_printer.cpp | nandor/genm-opt | b3347d508fff707837d1dc8232487ebfe157fe2a | [
"MIT"
] | 3 | 2020-07-01T01:39:47.000Z | 2022-01-24T23:47:12.000Z | emitter/x86/x86runtime_printer.cpp | nandor/genm-opt | b3347d508fff707837d1dc8232487ebfe157fe2a | [
"MIT"
] | 2 | 2021-03-11T05:08:09.000Z | 2021-07-17T23:36:17.000Z | // This file if part of the llir-opt project.
// Licensing information can be found in the LICENSE file.
// (C) 2018 Nandor Licker. All rights reserved.
#include <llvm/BinaryFormat/ELF.h>
#include <llvm/CodeGen/MachineModuleInfo.h>
#include <llvm/IR/Mangler.h>
#include <llvm/MC/MCSectionELF.h>
#include <llvm/Target/X8... | 30.772152 | 83 | 0.612916 | [
"vector"
] |
5ebbe368008749f73fee5585460b7f7159159f3c | 24,120 | hpp | C++ | include/tudocomp/compressors/lz_trie/CompactHashTrie.hpp | 421408/tudocomp | 9634742393995acdde148b0412f083bfdd0fbe9f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-09-22T11:29:02.000Z | 2020-09-22T11:29:02.000Z | include/tudocomp/compressors/lz_trie/CompactHashTrie.hpp | 421408/tudocomp | 9634742393995acdde148b0412f083bfdd0fbe9f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/tudocomp/compressors/lz_trie/CompactHashTrie.hpp | 421408/tudocomp | 9634742393995acdde148b0412f083bfdd0fbe9f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-09-29T08:57:13.000Z | 2020-09-29T08:57:13.000Z | #pragma once
#include <tudocomp/Algorithm.hpp>
#include <tudocomp/compressors/lz_trie/LZTrie.hpp>
#include <tudocomp/compressors/lz_trie/squeeze_node.hpp>
#include <tudocomp/util/compact_hash/map/typedefs.hpp>
#include <tudocomp/util.hpp>
#include <tudocomp_stat/StatPhase.hpp>
namespace tdc {
namespace lz_trie {
co... | 32.16 | 181 | 0.59034 | [
"vector"
] |
5ebc48914e8593b8edce3524a7c22b57426e86e7 | 5,508 | cpp | C++ | src/examples/AMR.cpp | Kniggi/volkit | ca9f6eca143bb1306d743ba64d9e55057822d2e4 | [
"MIT"
] | 11 | 2020-02-11T20:25:48.000Z | 2022-03-23T14:50:36.000Z | src/examples/AMR.cpp | Kniggi/volkit | ca9f6eca143bb1306d743ba64d9e55057822d2e4 | [
"MIT"
] | null | null | null | src/examples/AMR.cpp | Kniggi/volkit | ca9f6eca143bb1306d743ba64d9e55057822d2e4 | [
"MIT"
] | 4 | 2020-02-11T20:25:57.000Z | 2021-12-13T14:47:38.000Z | #include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <random>
#include <vector>
#include <vkt/Crop.hpp>
#include <vkt/ExecutionPolicy.hpp>
#include <vkt/FLASHFile.hpp>
#include <vkt/HierarchicalVolume.hpp>
#include <vkt/InputStream.hpp>
#include <vkt/LookupTable.hpp>
#include <vkt/Rend... | 28.6875 | 99 | 0.594045 | [
"render",
"vector"
] |
5ebfb7544b64bdd11936488ac7090f0a1bfc2704 | 19,490 | cpp | C++ | src/mpi/msmpi/channels/ch3u_nd1_env.cpp | hpourreza/Microsoft-MPI | 1dbbaee6373245d0458a8d775b2618b54df2a1eb | [
"mpich2",
"MIT"
] | 147 | 2019-05-07T05:35:01.000Z | 2022-02-08T06:36:22.000Z | src/mpi/msmpi/channels/ch3u_nd1_env.cpp | hpourreza/Microsoft-MPI | 1dbbaee6373245d0458a8d775b2618b54df2a1eb | [
"mpich2",
"MIT"
] | 39 | 2019-05-07T15:54:41.000Z | 2021-12-03T12:00:31.000Z | src/mpi/msmpi/channels/ch3u_nd1_env.cpp | hpourreza/Microsoft-MPI | 1dbbaee6373245d0458a8d775b2618b54df2a1eb | [
"mpich2",
"MIT"
] | 48 | 2019-05-10T10:21:36.000Z | 2022-03-13T18:04:17.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
/*++
ch3u_nd_env.cpp - Network Direct MPI CH3 ND Environment
--*/
#include "precomp.h"
#include "ch3u_nd1.h"
#define MPIDI_CH3I_NDv1_DESCRIPTION_KEY "ndv1"
typedef
BOOLEAN
(CALLBACK *PSECURE_MEMORY_CACHE_CALLBACK)(
... | 26.445047 | 177 | 0.590867 | [
"object"
] |
5ec91f025a5c095afc0acb6343fa544b9ca89f2a | 5,409 | cpp | C++ | DigitalSigning/DigitalSigning/DigitalSigning.cpp | jmon83/MicrosoftEdge-Extensions-Demos | 16673923c56009a11a6f9224e50972f40e4a722e | [
"Apache-2.0"
] | 116 | 2017-02-20T11:36:06.000Z | 2022-03-26T19:04:52.000Z | DigitalSigning/DigitalSigning/DigitalSigning.cpp | jmon83/MicrosoftEdge-Extensions-Demos | 16673923c56009a11a6f9224e50972f40e4a722e | [
"Apache-2.0"
] | 21 | 2017-02-15T16:15:34.000Z | 2021-09-03T06:04:49.000Z | DigitalSigning/DigitalSigning/DigitalSigning.cpp | jmon83/MicrosoftEdge-Extensions-Demos | 16673923c56009a11a6f9224e50972f40e4a722e | [
"Apache-2.0"
] | 238 | 2017-02-03T10:21:15.000Z | 2022-03-26T23:35:21.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL... | 37.047945 | 162 | 0.680532 | [
"model"
] |
5ecd910f097b7a03546c3d0accf51ae9a00e03e0 | 5,138 | hpp | C++ | renv/library/R-4.1/x86_64-w64-mingw32/TMB/include/convert.hpp | rebeccagb/gtsummary | 04996e385acab0b76a9938378e8af87526117aef | [
"MIT"
] | null | null | null | renv/library/R-4.1/x86_64-w64-mingw32/TMB/include/convert.hpp | rebeccagb/gtsummary | 04996e385acab0b76a9938378e8af87526117aef | [
"MIT"
] | null | null | null | renv/library/R-4.1/x86_64-w64-mingw32/TMB/include/convert.hpp | rebeccagb/gtsummary | 04996e385acab0b76a9938378e8af87526117aef | [
"MIT"
] | null | null | null | // Copyright (C) 2013-2015 Kasper Kristensen
// License: GPL-2
/** \file
\brief Convert vector/matrix-Types to double SEXP types
*/
#ifdef WITH_LIBTMB
double asDouble(int x);
double asDouble(double x);
double asDouble(AD<double> x);
double asDouble(AD<AD<double> > x);
double asDouble(AD<AD<AD<double> > > x);
#els... | 28.865169 | 92 | 0.626314 | [
"object",
"vector"
] |
5ed3e84932fe9a97d42529809458be78e9362261 | 7,724 | cpp | C++ | Code/CmLib/Segmentation/PlanarCut/code/CutShape.cpp | JessicaGiven/SalBenchmark_Analysis_Given | 0b0d8c3373be9105e9e94bc20b0eeb0bd7c06198 | [
"MIT"
] | 1 | 2018-10-07T00:56:57.000Z | 2018-10-07T00:56:57.000Z | Code/CmLib/Segmentation/PlanarCut/code/CutShape.cpp | JessicaGiven/SalBenchmark_Analysis_Given | 0b0d8c3373be9105e9e94bc20b0eeb0bd7c06198 | [
"MIT"
] | null | null | null | Code/CmLib/Segmentation/PlanarCut/code/CutShape.cpp | JessicaGiven/SalBenchmark_Analysis_Given | 0b0d8c3373be9105e9e94bc20b0eeb0bd7c06198 | [
"MIT"
] | null | null | null | /*****************************************************************************
* PlanarCut - software to compute MinCut / MaxFlow in a planar graph *
* Version 1.0.2 *
* *
* ... | 30.290196 | 95 | 0.563439 | [
"vector"
] |
5ed868937aff802dbbdeefd580335d0998b94932 | 4,057 | hpp | C++ | include/ocilibcpp/config.hpp | AdamRossWalker/ocilib-1 | 1ca96d2797dce1c9b562707166e4fb3ce576fe56 | [
"Apache-2.0"
] | 290 | 2015-07-07T12:53:43.000Z | 2022-02-19T13:17:56.000Z | include/ocilibcpp/config.hpp | RekGRpth/ocilib | 4a3a860e3106c320aef4a5bc9f9f7b88da062ac0 | [
"Apache-2.0"
] | 270 | 2015-06-25T10:04:02.000Z | 2022-03-29T11:48:19.000Z | include/ocilibcpp/config.hpp | RekGRpth/ocilib | 4a3a860e3106c320aef4a5bc9f9f7b88da062ac0 | [
"Apache-2.0"
] | 135 | 2015-06-24T05:38:34.000Z | 2022-03-12T06:58:55.000Z | /*
* OCILIB - C Driver for Oracle (C Wrapper for Oracle OCI)
*
* Website: http://www.ocilib.net
*
* Copyright (c) 2007-2021 Vincent ROGIER <vince.rogier@ocilib.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... | 17.872247 | 108 | 0.749815 | [
"object",
"vector"
] |
5edcd93700953bc9becd3cf1219ea4479b983202 | 585 | hpp | C++ | Models/include/gambit/Models/models/SingletDMZ3.hpp | aaronvincent/gambit_aaron | a38bd6fc10d781e71f2adafd401c76e1e3476b05 | [
"Unlicense"
] | null | null | null | Models/include/gambit/Models/models/SingletDMZ3.hpp | aaronvincent/gambit_aaron | a38bd6fc10d781e71f2adafd401c76e1e3476b05 | [
"Unlicense"
] | null | null | null | Models/include/gambit/Models/models/SingletDMZ3.hpp | aaronvincent/gambit_aaron | a38bd6fc10d781e71f2adafd401c76e1e3476b05 | [
"Unlicense"
] | null | null | null | // GAMBIT: Global and Modular BSM Inference Tool
// *********************************************
//
// Scalar singlet dark matter with running mass
// and quartic coupling
// *********************************************
//
// Authors
// =======
//
// (add name and date if you modify)
// Christoph Weniger
// ... | 20.172414 | 49 | 0.523077 | [
"model"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.