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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b3a22ea5902539b113043302d5d364afba9a0601 | 1,646 | cpp | C++ | sort-search/FindMinimuminRotatedSortedArray_153.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | sort-search/FindMinimuminRotatedSortedArray_153.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | sort-search/FindMinimuminRotatedSortedArray_153.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | /* ***********************************************************************
> File Name: FindMinimuminRotatedSortedArray_153.cpp
> Author: zzy
> Mail: 942744575@qq.com
********************************************************************** */
#include <stdio.h>
#include <vector>
#include <string>
#include <st... | 19.364706 | 74 | 0.537667 | [
"vector"
] |
a2a33867bac429babdc29607313ef66ff9344b74 | 2,231 | cpp | C++ | MMOCoreORB/src/server/zone/objects/intangible/IntangibleObjectImplementation.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/src/server/zone/objects/intangible/IntangibleObjectImplementation.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/src/server/zone/objects/intangible/IntangibleObjectImplementation.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | /*
Copyright <SWGEmu>
See file COPYING for copying conditions.*/
#include "server/zone/objects/intangible/IntangibleObject.h"
#include "server/zone/objects/intangible/TheaterObject.h"
#include "server/zone/packets/intangible/IntangibleObjectMessage3.h"
#include "server/zone/packets/intangible/IntangibleObjectMe... | 30.148649 | 113 | 0.788436 | [
"object"
] |
a2a97bd5870c71d90ce529e3f42b57725df45410 | 515 | cpp | C++ | ECS/src/Object.cpp | jcoder39/Quasura | f6a8b43620aa77f5488327f0cfe4773b7301bae4 | [
"MIT"
] | null | null | null | ECS/src/Object.cpp | jcoder39/Quasura | f6a8b43620aa77f5488327f0cfe4773b7301bae4 | [
"MIT"
] | null | null | null | ECS/src/Object.cpp | jcoder39/Quasura | f6a8b43620aa77f5488327f0cfe4773b7301bae4 | [
"MIT"
] | null | null | null | /*
* Object.cpp
*
* Created by Viacheslav Borisenko
*
* Copyright (c) 2018 spectrobyte http://spectrobyte.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*
*/
#include "Quasura/ECS/Object.hpp"
ECS_NAMESPACE_BEGIN
... | 17.758621 | 66 | 0.666019 | [
"object"
] |
a2ac15341102e979a4640b8ba38fdc5984a3a324 | 1,249 | cpp | C++ | Leetcode/Day020/longest_common_subsequence.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | Leetcode/Day020/longest_common_subsequence.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | Leetcode/Day020/longest_common_subsequence.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | // first solution
class Solution {
public:
int longestCommonSubsequence(string text1, string text2)
{
int n = text1.length();
int m = text2.length();
int dp[m+1][n+1];
for(int i=0; i<=m; i++)
dp[i][0] = 0;
for(int i=0; i<=n; i++)
... | 22.709091 | 61 | 0.366693 | [
"vector"
] |
a2ad0bc88a849a0eca6dde8839a0e08509286554 | 1,067 | cpp | C++ | c10e19oftenDict/c10e19oftenDict/c10e19oftenDict.cpp | abicorios/MyCppExercises | e8ca408c1aac6a780eaf92018aa7da4fd692459a | [
"Unlicense"
] | null | null | null | c10e19oftenDict/c10e19oftenDict/c10e19oftenDict.cpp | abicorios/MyCppExercises | e8ca408c1aac6a780eaf92018aa7da4fd692459a | [
"Unlicense"
] | null | null | null | c10e19oftenDict/c10e19oftenDict/c10e19oftenDict.cpp | abicorios/MyCppExercises | e8ca408c1aac6a780eaf92018aa7da4fd692459a | [
"Unlicense"
] | null | null | null | // c10e19oftenDict.cpp: определяет точку входа для консольного приложения.
//
#include "stdafx.h"
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <map>
int count(std::string, std::string);
int count(std::string bigs, std::string subs)
{
int n = 0;
int found = bigs.find(subs);
wh... | 20.132075 | 74 | 0.60075 | [
"vector"
] |
a2b7c0ddd5afc2a9d44f203932c0fd1c83d5b9bf | 16,900 | cpp | C++ | code/utils/xrAI/motion_simulator.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 7 | 2018-03-27T12:36:07.000Z | 2020-06-26T11:31:52.000Z | code/utils/xrAI/motion_simulator.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 2 | 2018-05-26T23:17:14.000Z | 2019-04-14T18:33:27.000Z | code/utils/xrAI/motion_simulator.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 5 | 2020-10-18T11:55:26.000Z | 2022-03-28T07:21:35.000Z | #include "stdafx.h"
#include "cl_intersect.h"
#include "motion_simulator.h"
#include "compiler.h"
struct cl_tri
{
Fvector e10; float e10s;
Fvector e21; float e21s;
Fvector e02; float e02s;
Fvector p[3];
Fvector N;
float d;
};
struct SCollisionData
{
// data about player movement
Fvector vVelocity;
Fvector... | 32.068311 | 108 | 0.638107 | [
"mesh"
] |
a2ba42cac8a4dad5303db962410a561d9d19f6c3 | 4,019 | cpp | C++ | src/python/pytypes.cpp | ArmindoFlores/cppy | 5ce0832e79bbdb56b11cd03490ee1d6d09a454a0 | [
"MIT"
] | 5 | 2021-12-24T00:11:22.000Z | 2022-01-06T23:53:10.000Z | src/python/pytypes.cpp | ArmindoFlores/cppy | 5ce0832e79bbdb56b11cd03490ee1d6d09a454a0 | [
"MIT"
] | null | null | null | src/python/pytypes.cpp | ArmindoFlores/cppy | 5ce0832e79bbdb56b11cd03490ee1d6d09a454a0 | [
"MIT"
] | null | null | null | #include "pytypes.h"
#include "pyhelpers.h"
#include "pybuiltins.h"
#include "pyint.h"
#include "pybool.h"
#include "pybaseobject.h"
#include "pylist.h"
#include "pydict.h"
#include "pytuple.h"
#include "pynotimplemented.h"
#include "pystring.h"
#include "pygarbagecollector.h"
#include "pyglobalinstances.h"
#include "p... | 29.335766 | 184 | 0.616571 | [
"object",
"vector"
] |
a2ca9f6fc8d41fde712249f5c1ef66c9b3f9c94f | 570 | cpp | C++ | source/scapes/visual/resources/IBLTexture.cpp | eZii-jester-data/pbr-sandbox | 853aa023f063fd48760a8c3848687976189f3f98 | [
"MIT"
] | null | null | null | source/scapes/visual/resources/IBLTexture.cpp | eZii-jester-data/pbr-sandbox | 853aa023f063fd48760a8c3848687976189f3f98 | [
"MIT"
] | null | null | null | source/scapes/visual/resources/IBLTexture.cpp | eZii-jester-data/pbr-sandbox | 853aa023f063fd48760a8c3848687976189f3f98 | [
"MIT"
] | null | null | null | #include <scapes/visual/Resources.h>
#include <RenderUtils.h>
using namespace scapes;
using namespace scapes::visual;
/*
*/
void ::ResourcePipeline<resources::IBLTexture>::destroy(
foundation::resources::ResourceManager *resource_manager,
IBLTextureHandle handle,
foundation::render::Device *device
)
{
resources:... | 23.75 | 74 | 0.777193 | [
"render"
] |
a2cf4bba39c42889a280b9285378f4095e7b17ac | 879 | cpp | C++ | COJ/HowManyPrimes.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | COJ/HowManyPrimes.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | COJ/HowManyPrimes.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <map>
#include <cmath>
#include <utility>
#include <set>
#include <stdio.h>
using namespace std;
#define MAX 10... | 17.235294 | 36 | 0.506257 | [
"vector"
] |
a2d1ebcdd2fc41be4eec900cac030055eab75caf | 16,777 | cpp | C++ | printscan/print/drivers/usermode/unidrv2/vector/hpgl2col/render/vector.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | printscan/print/drivers/usermode/unidrv2/vector/hpgl2col/render/vector.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | printscan/print/drivers/usermode/unidrv2/vector/hpgl2col/render/vector.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1999-2001 Microsoft Corporation
All rights reserved.
Module Name:
vector.cpp
Abstract:
Implementation of DDI vector drawing hooks specific to HP-GL/2
Environment:
Windows 2000 Unidrv driver
Revision History:
04/07/97 -sandram-
Create... | 27.868771 | 102 | 0.54676 | [
"render",
"object",
"vector",
"transform"
] |
a2d3f24af282cc52199499b22a6c7b73e8dda3b4 | 3,938 | hpp | C++ | include/epiworld/userdata-meat.hpp | gvegayon/world-epi | 197d8cc0e8fb86c06ec1ac2df6316e89d4857218 | [
"MIT"
] | null | null | null | include/epiworld/userdata-meat.hpp | gvegayon/world-epi | 197d8cc0e8fb86c06ec1ac2df6316e89d4857218 | [
"MIT"
] | null | null | null | include/epiworld/userdata-meat.hpp | gvegayon/world-epi | 197d8cc0e8fb86c06ec1ac2df6316e89d4857218 | [
"MIT"
] | null | null | null | #ifndef EPIWORLD_USERDATA_MEAT_HPP
#define EPIWORLD_USERDATA_MEAT_HPP
template<typename TSeq>
class UserData;
template<typename TSeq>
inline UserData<TSeq>::UserData(std::vector< std::string > names)
{
k = names.size();
data_names = names;
}
template<typename TSeq>
inline void UserData<TSeq>::add(std::vect... | 18.147465 | 82 | 0.568817 | [
"vector",
"model"
] |
a2e19de72abc34889dc44e68b033b784b170be43 | 5,337 | cpp | C++ | relaxation/cutByDinic.cpp | napinoco/BBCPOP | 7ba674da284ae7727b3385ef0f2036509da0c98d | [
"MIT"
] | 1 | 2020-02-06T15:17:56.000Z | 2020-02-06T15:17:56.000Z | relaxation/cutByDinic.cpp | napinoco/BBCPOP | 7ba674da284ae7727b3385ef0f2036509da0c98d | [
"MIT"
] | null | null | null | relaxation/cutByDinic.cpp | napinoco/BBCPOP | 7ba674da284ae7727b3385ef0f2036509da0c98d | [
"MIT"
] | 1 | 2020-02-06T15:17:55.000Z | 2020-02-06T15:17:55.000Z | #include <vector>
#include <limits>
#include <queue>
#include <string.h>
// #include <iostream>
#include "mex.h"
#include "matrix.h"
const int INF = std::numeric_limits<int>::max();
struct edge { int to; double cap; int rev; }; // rev-id
typedef std::vector<edge> edges;
typedef std::vector<edges> graph;
void add_ed... | 28.388298 | 109 | 0.50609 | [
"vector"
] |
a2e6399de9b0ed07f01ca2e118fef19273739d2c | 7,864 | hh | C++ | include/chainhash.hh | mit-pdos/sv6 | f2283fbabf432c476ba3b9ec955a24ea675df607 | [
"MIT-0"
] | 21 | 2017-11-02T07:40:50.000Z | 2022-03-10T14:09:54.000Z | include/chainhash.hh | mit-pdos/sv6 | f2283fbabf432c476ba3b9ec955a24ea675df607 | [
"MIT-0"
] | null | null | null | include/chainhash.hh | mit-pdos/sv6 | f2283fbabf432c476ba3b9ec955a24ea675df607 | [
"MIT-0"
] | 5 | 2017-11-21T21:51:18.000Z | 2018-12-24T21:35:41.000Z | #pragma once
/*
* A bucket-chaining hash table.
*/
#include "spinlock.hh"
#include "seqlock.hh"
#include "lockwrap.hh"
#include "hash.hh"
#include "ilist.hh"
#include "hpet.hh"
#include "cpuid.hh"
template<class K, class V>
class chainhash {
private:
struct item : public rcu_freed {
item(const K& k, const V&... | 23.758308 | 77 | 0.532172 | [
"vector"
] |
a2e85998e696f3c6d8b734151ab3d863982fc935 | 5,134 | hpp | C++ | affinity.hpp | 0400H/thread-pool | 922c4041d6b575cdcd6391d035ab372e64dc8388 | [
"MIT"
] | null | null | null | affinity.hpp | 0400H/thread-pool | 922c4041d6b575cdcd6391d035ab372e64dc8388 | [
"MIT"
] | null | null | null | affinity.hpp | 0400H/thread-pool | 922c4041d6b575cdcd6391d035ab372e64dc8388 | [
"MIT"
] | null | null | null | #pragma once
#ifndef __HPC_AFFINITY_HPP__
#define __HPC_AFFINITY_HPP__
#include "cpu.hpp"
namespace hpc {
std::vector<int> cal_parallel_cores(bool affinity=true) {
std::vector<int> cores;
if (affinity) {
return get_thread_affinity(false);
} else {
auto hardware_co... | 36.671429 | 123 | 0.552006 | [
"vector"
] |
a2ff1a1a5f2d6b630230e9c73018fdcb8b9c1410 | 4,444 | cpp | C++ | tc 160+/ChangePurse.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/ChangePurse.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/ChangePurse.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <utility>
#include <functional>
using namespace std;
class ChangePurse {
public:
vector <int> optimalCoins(vector <int> coinTypes, int value... | 56.974359 | 413 | 0.577633 | [
"vector"
] |
0c0467e1c9de3ed33f426de3012f824492627bfa | 3,741 | cpp | C++ | Software_Final Version/build-Inertial_Navigation_with_QT-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_about_window.cpp | GimHuang/inertial-navigation | 88c7aea844c26b5a2b7a2314ba4ca428c532d8f6 | [
"MIT"
] | 2 | 2021-05-30T18:17:17.000Z | 2021-11-24T07:16:49.000Z | Software_Final Version/build-Inertial_Navigation_with_QT-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_about_window.cpp | jhuang-86/inertial-navigation | 88c7aea844c26b5a2b7a2314ba4ca428c532d8f6 | [
"MIT"
] | null | null | null | Software_Final Version/build-Inertial_Navigation_with_QT-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_about_window.cpp | jhuang-86/inertial-navigation | 88c7aea844c26b5a2b7a2314ba4ca428c532d8f6 | [
"MIT"
] | 4 | 2021-04-16T08:51:59.000Z | 2021-12-31T01:13:08.000Z | /****************************************************************************
** Meta object code from reading C++ file 'about_window.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2)
**
** WARNING! All changes made in this file will be lost!
*******************************************************... | 29.928 | 96 | 0.632184 | [
"object"
] |
0c09bdbe9683f73e507be6ce8aa7a7409ddd84bf | 12,578 | cpp | C++ | DejaVuGUI.cpp | adamk33n3r/Deja-Vu | d65e73b03a10fb2be5e92512721295f2ae74934f | [
"MIT"
] | 2 | 2021-02-08T06:39:57.000Z | 2021-11-03T16:16:08.000Z | DejaVuGUI.cpp | adamk33n3r/Deja-Vu | d65e73b03a10fb2be5e92512721295f2ae74934f | [
"MIT"
] | 6 | 2020-02-02T06:58:07.000Z | 2021-11-12T16:29:39.000Z | DejaVuGUI.cpp | adamk33n3r/Deja-Vu | d65e73b03a10fb2be5e92512721295f2ae74934f | [
"MIT"
] | 2 | 2021-01-30T04:08:38.000Z | 2021-03-06T09:59:05.000Z | #include "pch.h"
#include "DejaVu.h"
#include "vendor/imgui/imgui.h"
#include "vendor/imgui/imgui_stdlib.h"
#undef max
void DejaVu::Render()
{
if (!this->isWindowOpen) {
cvarManager->executeCommand("togglemenu " + GetMenuName());
return;
}
if (this->openQuickNote)
{
#if DEV
std::set<std::string> matchMetL... | 34.27248 | 244 | 0.689935 | [
"render"
] |
0c0b2618a0ef0a28116cb2214840660473662bfc | 3,318 | cpp | C++ | PowderGame/src/Graphics.cpp | Markek1/Powder-Game | 5d3a9c83cd72ada5f0586973ee8dd06386f7278c | [
"MIT"
] | 1 | 2022-03-29T10:02:28.000Z | 2022-03-29T10:02:28.000Z | PowderGame/src/Graphics.cpp | Markek1/Powder-Game | 5d3a9c83cd72ada5f0586973ee8dd06386f7278c | [
"MIT"
] | null | null | null | PowderGame/src/Graphics.cpp | Markek1/Powder-Game | 5d3a9c83cd72ada5f0586973ee8dd06386f7278c | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <SDL.h>
#include "Graphics.h"
#include "Helpers.h"
#include "Settings.h"
#include "Engine/Engine.h"
#include "Engine/Elements/Element.h"
SDL_Window* Graphics::createCenteredWindow(int width, int height, const char* title)
{
// Get current device's Display Mode to cal... | 23.366197 | 115 | 0.709162 | [
"render"
] |
0c23fbbb0161842e62d6c50f90d53696870e2247 | 18,938 | cpp | C++ | src/visualisation/VTKWriter.cpp | FireDynamics/ARTSS | a700835be57ac1c99ed55c6664d36ecf8afda3d8 | [
"MIT"
] | 10 | 2020-03-25T10:15:09.000Z | 2020-09-09T12:27:41.000Z | src/visualisation/VTKWriter.cpp | FireDynamics/ARTSS | a700835be57ac1c99ed55c6664d36ecf8afda3d8 | [
"MIT"
] | 152 | 2020-03-25T10:18:02.000Z | 2022-03-22T08:35:44.000Z | src/visualisation/VTKWriter.cpp | FireDynamics/ARTSS | a700835be57ac1c99ed55c6664d36ecf8afda3d8 | [
"MIT"
] | 11 | 2020-03-25T21:29:50.000Z | 2021-12-09T12:25:50.000Z | /// \file VTKWriter.cpp
/// \brief class to write out vtk files
/// \date Jun 25, 2020
/// \author My Linh Wuerzburger
/// \copyright <2015-2020> Forschungszentrum Juelich GmbH. All rights reserved.
#include "VTKWriter.h"
#include "../Domain.h"
#include "visit_writer.h" //( https://wci.llnl.gov/... | 40.552463 | 129 | 0.515736 | [
"mesh"
] |
0c259003e274cefe5fe9762bed65b893ab375588 | 824 | cpp | C++ | ch5/Shell_Sort/algorithm.cpp | omar659/Algorithms-Sequential-Parallel-Distributed | 3543631139a20625f413cea2ba1f013f3a40d123 | [
"MIT"
] | 2 | 2020-02-19T09:27:20.000Z | 2020-02-19T09:28:21.000Z | ch5/Shell_Sort/algorithm.cpp | omar-3/Algorithms-Sequential-Parallel-Distributed | 3543631139a20625f413cea2ba1f013f3a40d123 | [
"MIT"
] | null | null | null | ch5/Shell_Sort/algorithm.cpp | omar-3/Algorithms-Sequential-Parallel-Distributed | 3543631139a20625f413cea2ba1f013f3a40d123 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
template<typename T>
void InsertionSubSort(std::vector<T>& L, int k) {
for (int i = k ; i < L.size ; i++) {
T current = L[i];
int position = i - k;
while ((position >= 0) && (current < L[position])) {
L[position + k] = L[position];
... | 26.580645 | 83 | 0.5 | [
"vector"
] |
0c283d1df0741afb879e571755f4e40cc250b023 | 8,190 | hh | C++ | src/thirdparty/acg_localizer/src/sfm/parse_bundler.hh | rajvishah/ms-sfm | 0de1553c471c416ce5ca3d19c65abe36d8e17a07 | [
"MIT"
] | null | null | null | src/thirdparty/acg_localizer/src/sfm/parse_bundler.hh | rajvishah/ms-sfm | 0de1553c471c416ce5ca3d19c65abe36d8e17a07 | [
"MIT"
] | null | null | null | src/thirdparty/acg_localizer/src/sfm/parse_bundler.hh | rajvishah/ms-sfm | 0de1553c471c416ce5ca3d19c65abe36d8e17a07 | [
"MIT"
] | null | null | null | /*===========================================================================*\
* *
* ACG Localizer *
* Copyright (C) 2011-2012 by Computer Graphics Group, RWTH Aachen *
* ... | 32.244094 | 118 | 0.552991 | [
"vector",
"3d"
] |
0c457f971041bb5f4945b5f7b089309f61543767 | 5,666 | cpp | C++ | 0201-0300/212-word-search-ii/main.cpp | janreggie/leetcode | c59718e127b598c4de7d07c9c93064eb12b2e5c9 | [
"MIT",
"Unlicense"
] | null | null | null | 0201-0300/212-word-search-ii/main.cpp | janreggie/leetcode | c59718e127b598c4de7d07c9c93064eb12b2e5c9 | [
"MIT",
"Unlicense"
] | null | null | null | 0201-0300/212-word-search-ii/main.cpp | janreggie/leetcode | c59718e127b598c4de7d07c9c93064eb12b2e5c9 | [
"MIT",
"Unlicense"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <set>
#include <string>
#include <unordered_set>
#include <vector>
class Cache
{
static constexpr long long p = 31;
static constexpr long long p1 = 838709685; // x * p1 == x / p mod m
static constexpr long long m = 1e9 + 9;
std::vector<std::string> _strs;
public:
... | 21.708812 | 128 | 0.576774 | [
"vector"
] |
0c4a0b5497b85769dd49c20614f744ad7ced6cc0 | 2,739 | cpp | C++ | source/gloperate-qtquick/source/RenderItemRenderer_ogl.cpp | lordgeorg/gloperate | 13a6363fdac1f9ff06d91c9bc99649eacd87078e | [
"MIT"
] | 34 | 2015-10-07T12:26:27.000Z | 2021-04-06T06:35:01.000Z | source/gloperate-qtquick/source/RenderItemRenderer_ogl.cpp | lordgeorg/gloperate | 13a6363fdac1f9ff06d91c9bc99649eacd87078e | [
"MIT"
] | 219 | 2015-07-07T15:55:03.000Z | 2018-09-28T08:54:36.000Z | source/gloperate-qtquick/source/RenderItemRenderer_ogl.cpp | lordgeorg/gloperate | 13a6363fdac1f9ff06d91c9bc99649eacd87078e | [
"MIT"
] | 21 | 2015-07-07T14:33:08.000Z | 2018-12-23T12:43:56.000Z |
#include <gloperate-qtquick/RenderItemRenderer.h>
#include <glm/vec2.hpp>
#include <cppassist/memory/make_unique.h>
#include <glbinding/gl/gl.h>
#include <globjects/base/AbstractStringSource.h>
#include <globjects/Framebuffer.h>
#include <globjects/Texture.h>
#include <globjects/Program.h>
#include <globjects/Shad... | 27.666667 | 125 | 0.729828 | [
"render"
] |
0c50be32d761ed8e5a6fa9aaf0b2ec354e18ec3d | 376 | cpp | C++ | HackerRank/Challenges/utopian-tree.cpp | Diggzinc/solutions-spoj | eb552311011e466039e059cce07894fea0817613 | [
"MIT"
] | null | null | null | HackerRank/Challenges/utopian-tree.cpp | Diggzinc/solutions-spoj | eb552311011e466039e059cce07894fea0817613 | [
"MIT"
] | null | null | null | HackerRank/Challenges/utopian-tree.cpp | Diggzinc/solutions-spoj | eb552311011e466039e059cce07894fea0817613 | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int nCases, nCase, height;
cin >> nCases;
while (nCases--) {
cin >> nCase;
height = 1;
for (int i = 0; i < nCase; i++) {
if (i % 2 == 0) {
height*=2;
}
else {
heigh... | 13.925926 | 35 | 0.547872 | [
"vector"
] |
31b4c3d8c4942cea091ca7953dbec55e93b392e9 | 405 | cpp | C++ | leetcode/plus1.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2016-01-20T08:26:34.000Z | 2016-01-20T08:26:34.000Z | leetcode/plus1.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2015-10-21T05:38:17.000Z | 2015-11-02T07:42:55.000Z | leetcode/plus1.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
vector<int> plusOne(vector<int> &digits) {
vector<int> res;
int carry=1;
for(int i=digits.size()-1; i>=0; i--){
int sum = digits[i]+carry;
res.insert(res.begin(),sum%10);
carry=sum/10;
}
if(carry!=0){
... | 22.5 | 46 | 0.446914 | [
"vector"
] |
31b6af24a64a651da662bf6cf54a60596338193d | 7,580 | cpp | C++ | main.cpp | intheswim/soccer_ball_gl | cd8a68072abc4635603603c1031bc361488fd997 | [
"Linux-OpenIB"
] | 1 | 2020-06-16T06:48:34.000Z | 2020-06-16T06:48:34.000Z | main.cpp | intheswim/soccer_ball_gl | cd8a68072abc4635603603c1031bc361488fd997 | [
"Linux-OpenIB"
] | null | null | null | main.cpp | intheswim/soccer_ball_gl | cd8a68072abc4635603603c1031bc361488fd997 | [
"Linux-OpenIB"
] | null | null | null | /* Soccerball with OpenGL, Copyright (c) 2020 Yuriy Yakimenko
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this... | 25.694915 | 91 | 0.562137 | [
"vector"
] |
31b9ffc6745d55e2b8d32f373e457359bc8ee642 | 40,825 | cpp | C++ | Goldeneye Revenge/game.cpp | scruffyfox/Goldeneye-Revenge | 29b9a9ca668260f7516b1651d06820dd89be9444 | [
"OLDAP-2.7",
"OLDAP-2.6",
"OLDAP-2.4",
"OLDAP-2.5",
"OLDAP-2.3"
] | null | null | null | Goldeneye Revenge/game.cpp | scruffyfox/Goldeneye-Revenge | 29b9a9ca668260f7516b1651d06820dd89be9444 | [
"OLDAP-2.7",
"OLDAP-2.6",
"OLDAP-2.4",
"OLDAP-2.5",
"OLDAP-2.3"
] | null | null | null | Goldeneye Revenge/game.cpp | scruffyfox/Goldeneye-Revenge | 29b9a9ca668260f7516b1651d06820dd89be9444 | [
"OLDAP-2.7",
"OLDAP-2.6",
"OLDAP-2.4",
"OLDAP-2.5",
"OLDAP-2.3"
] | null | null | null | //////////////////////////////////////////////////////////////
//
// Golden Eye Reveng - 2011 Games design project by
// Callum Taylor
//
// game.cpp - This file will handle all the game rendering
//
//////////////////////////////////////////////////////////////
// Let us include the main file for all the system inclu... | 26.947195 | 172 | 0.621066 | [
"object",
"model",
"3d"
] |
31c30d636813e146dc690f2b021e941cc9d769f7 | 974 | cpp | C++ | 232.Implement Queue using Stacks/test.cpp | ReZeroS/LeetCode | 807ae800437e0b6224bd4672f28007388625437b | [
"MIT"
] | 2 | 2018-10-24T03:34:44.000Z | 2020-07-16T15:34:44.000Z | 232.Implement Queue using Stacks/test.cpp | ReZeroS/LeetCode | 807ae800437e0b6224bd4672f28007388625437b | [
"MIT"
] | null | null | null | 232.Implement Queue using Stacks/test.cpp | ReZeroS/LeetCode | 807ae800437e0b6224bd4672f28007388625437b | [
"MIT"
] | null | null | null | class MyQueue {
public:
stack<int> a, b;
/** Initialize your data structure here. */
MyQueue() {
}
/** Push element x to the back of queue. */
void push(int x) {
while(!a.empty()) {
b.push(a.top());
a.pop();
}
a.push(x);
while... | 20.291667 | 79 | 0.468172 | [
"object"
] |
31c4545b3363e84a408f56f6c84425d15569e96d | 4,939 | cpp | C++ | c++03/test_cpp03.cpp | gnbond/Rectangular | 49b1ba789abfbc1949c0014d831e170f12925720 | [
"Unlicense"
] | 1 | 2020-08-01T01:16:18.000Z | 2020-08-01T01:16:18.000Z | c++03/test_cpp03.cpp | gnbond/Rectangular | 49b1ba789abfbc1949c0014d831e170f12925720 | [
"Unlicense"
] | null | null | null | c++03/test_cpp03.cpp | gnbond/Rectangular | 49b1ba789abfbc1949c0014d831e170f12925720 | [
"Unlicense"
] | null | null | null | /*
* catch2 only works with C++11, so hardwire some tests for C++03
*/
#include "rectangular.hpp"
#include "test_macros.hpp"
typedef gnb::rectangular<int> R;
typedef gnb::checked_rectangular<int> CR;
static int test_create() {
TEST_CASE_BEGIN("rectangular create");
R i(2, 2);
REQUIRE(i.size() =... | 20.325103 | 76 | 0.556185 | [
"vector"
] |
31c6af5cef4b7d330a34fd9061dd34303ab602d9 | 3,454 | cpp | C++ | src/xray/editor/dialog/sources/dialog_control_panel.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/editor/dialog/sources/dialog_control_panel.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/editor/dialog/sources/dialog_control_panel.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | //-------------------------------------------------------------------------------------------
// Created : 17.12.2009
// Author : Sergey Prishchepa
// Copyright (C) GSC Game World - 2009
//-------------------------------------------------------------------------------------------
#include "pch.h"
#include "dial... | 44.282051 | 156 | 0.71106 | [
"object"
] |
31cf6ec0c67611c5f0f1454bf5ca3126ee8ee5ef | 4,057 | cpp | C++ | rtpose_wrapper/src/caffe/layers/euclideanmask_loss_layer.cpp | ammolitor/open_ptrack_v2 | a4af0c24883e38a298fb65dd03f76d39ad835616 | [
"BSD-3-Clause"
] | null | null | null | rtpose_wrapper/src/caffe/layers/euclideanmask_loss_layer.cpp | ammolitor/open_ptrack_v2 | a4af0c24883e38a298fb65dd03f76d39ad835616 | [
"BSD-3-Clause"
] | null | null | null | rtpose_wrapper/src/caffe/layers/euclideanmask_loss_layer.cpp | ammolitor/open_ptrack_v2 | a4af0c24883e38a298fb65dd03f76d39ad835616 | [
"BSD-3-Clause"
] | null | null | null | #include <vector>
#include "caffe/layers/euclideanmask_loss_layer.hpp"
#include "caffe/util/math_functions.hpp"
#include <iostream>
using namespace std;
namespace caffe {
template <typename Dtype>
void EuclideanmaskLossLayer<Dtype>::Reshape(
const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) {
... | 36.223214 | 115 | 0.501109 | [
"shape",
"vector"
] |
31d2b51758f4621a14b750f0f561e5cc51b87334 | 15,363 | cpp | C++ | Tracker/Archive/tracker_horst_optimized/Pylon_with_OpenCV/Tracker.cpp | horsto/2P_tracking | d3eab554841a5f746a9231d770777f718267da6d | [
"MIT"
] | 1 | 2018-07-16T07:08:42.000Z | 2018-07-16T07:08:42.000Z | Tracker/Archive/tracker_horst_optimized/Pylon_with_OpenCV/Tracker.cpp | horsto/2P_tracking | d3eab554841a5f746a9231d770777f718267da6d | [
"MIT"
] | null | null | null | Tracker/Archive/tracker_horst_optimized/Pylon_with_OpenCV/Tracker.cpp | horsto/2P_tracking | d3eab554841a5f746a9231d770777f718267da6d | [
"MIT"
] | 1 | 2018-07-16T07:08:46.000Z | 2018-07-16T07:08:46.000Z | // Pylon_with_OpenCV.cpp
/*
Note: Before getting started, Basler recommends reading the Programmer's Guide topic
in the pylon C++ API documentation that gets installed with pylon.
If you are upgrading to a higher major version of pylon, Basler also
strongly recommends reading the Migration topic in the... | 39.493573 | 172 | 0.698106 | [
"object",
"vector",
"model"
] |
31d2e6bc025df866abb8df11e49b21e75a39a97f | 16,008 | cc | C++ | cpp/parquetjni/parquetjni.cc | twosigma/parquetjni | afbf24cd605c00e056a4efa41dd63e597cb5024a | [
"Apache-2.0"
] | null | null | null | cpp/parquetjni/parquetjni.cc | twosigma/parquetjni | afbf24cd605c00e056a4efa41dd63e597cb5024a | [
"Apache-2.0"
] | null | null | null | cpp/parquetjni/parquetjni.cc | twosigma/parquetjni | afbf24cd605c00e056a4efa41dd63e597cb5024a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2020 Two Sigma Investments, LP.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 39.428571 | 80 | 0.650987 | [
"vector"
] |
31d6bef026c4a80e56fdd77e19de5b36fce6e5a0 | 1,033 | cpp | C++ | COJ/AnotherSortingProblemII.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | COJ/AnotherSortingProblemII.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | COJ/AnotherSortingProblemII.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#define for0(i, n) for(i = 0; i < n; i++)
#define for1(i, n) for(i = 1; i <= n; i++)
#define fora(i, a, n) for(i = a; i < n; i++)
#define dprc(x) printf("| %c\n", x)
#define dprd(x) printf("| %d\n", x)
#define dprd2(x,y) printf("| %d %d\n", x, y)
#define prd(x) printf("%d\n", x)
#define prd2(x,... | 18.446429 | 44 | 0.515005 | [
"vector"
] |
31f8113872b8c469a3cc49aee859d5c4e17837db | 946 | cc | C++ | src/client/compatibility.cc | protocolocon/nanoWeb | a89b3f9d9c9b7421a5005971565795519728f31b | [
"BSD-2-Clause"
] | null | null | null | src/client/compatibility.cc | protocolocon/nanoWeb | a89b3f9d9c9b7421a5005971565795519728f31b | [
"BSD-2-Clause"
] | null | null | null | src/client/compatibility.cc | protocolocon/nanoWeb | a89b3f9d9c9b7421a5005971565795519728f31b | [
"BSD-2-Clause"
] | null | null | null | /* -*- mode: c++; coding: utf-8; c-file-style: "stroustrup"; -*-
Contributors: Asier Aguirre
All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE.txt file.
*/
#include "compatibility.h"
#include "context.h"
#include <stdlib.h>
namespace {
... | 19.708333 | 65 | 0.633192 | [
"render"
] |
31ffa3ee745ed81fbb77efeb5a98ed3aba22cb75 | 3,297 | cpp | C++ | src/03/p1/main.cpp | progBorg/advent-of-code-2018 | 7f41ad7145b55452b0b632d10b66b4c193bd0c4a | [
"MIT"
] | null | null | null | src/03/p1/main.cpp | progBorg/advent-of-code-2018 | 7f41ad7145b55452b0b632d10b66b4c193bd0c4a | [
"MIT"
] | null | null | null | src/03/p1/main.cpp | progBorg/advent-of-code-2018 | 7f41ad7145b55452b0b632d10b66b4c193bd0c4a | [
"MIT"
] | null | null | null | /*
* main.cpp
*
* Copyright 2018 Tom Veldman <t.c.veldman@student.utwente.nl>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any... | 29.4375 | 89 | 0.678192 | [
"vector"
] |
ee022adbc5d828d797e7ada0e3e5e52b7b2cffad | 1,578 | cpp | C++ | C++/sort-integers-by-the-power-value.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/sort-integers-by-the-power-value.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/sort-integers-by-the-power-value.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(n) on average
// Space: O(n)
class Solution {
public:
int getKth(int lo, int hi, int k) {
vector<pair<int, int>> arr;
for (int i = lo; i <= hi; ++i) {
arr.emplace_back(power_value(i), i);
}
auto it = begin(arr) + k - 1;
nth_element(begin(arr), it, end... | 23.552239 | 55 | 0.453105 | [
"vector"
] |
ee068f7ff06abbc694ddcd6024c9b9cbf9843fbf | 283 | hpp | C++ | dometer/metrics/handler/prometheus/options.hpp | maxenglander/dometer | baf9ed81f9d1e8bb67750ac278af5a9e0c4b89b9 | [
"MIT"
] | null | null | null | dometer/metrics/handler/prometheus/options.hpp | maxenglander/dometer | baf9ed81f9d1e8bb67750ac278af5a9e0c4b89b9 | [
"MIT"
] | null | null | null | dometer/metrics/handler/prometheus/options.hpp | maxenglander/dometer | baf9ed81f9d1e8bb67750ac278af5a9e0c4b89b9 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "dometer/metrics/handler/prometheus/transport_options.hpp"
namespace dometer::metrics::handler::prometheus {
struct options {
const unsigned int max_time_series;
const std::vector<transport_options> transports;
};
}
| 21.769231 | 67 | 0.727915 | [
"vector"
] |
ee0ad048ca6136f4eadc9239b285de0d870404db | 1,171 | cpp | C++ | source/unit_tests/ColourUtils_test.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | source/unit_tests/ColourUtils_test.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | source/unit_tests/ColourUtils_test.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "gtest/gtest.h"
TEST(SW_ColourUtils, get_alternate_hue)
{
std::vector<std::pair<Colour, Colour>> old_new_hue = {{Colour::COLOUR_BLACK, Colour::COLOUR_BOLD_BLACK},
{Colour::COLOUR_RED, Colour::COLOUR_BOLD_RED},
... | 58.55 | 111 | 0.505551 | [
"vector"
] |
ee0fa47b23e031bccb1607caec5360943e29670b | 6,237 | cc | C++ | Geometry/CaloEventSetup/test/TestEcalGetWindow.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Geometry/CaloEventSetup/test/TestEcalGetWindow.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Geometry/CaloEventSetup/test/TestEcalGetWindow.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include <memory>
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Utilities/interface/ESGetToken.h"
#include "Geometry/Records/interface/CaloGeometryRecord.h"
#include "Geometry/Records/inter... | 32.149485 | 116 | 0.665384 | [
"geometry",
"vector"
] |
ee17e38da0658797de356b1de2ec6591776cff76 | 8,879 | cc | C++ | src/FileIO/filestruct.cc | tech-pi/BBSLMIRP | 21bd8780c0e7df255a7dd4a6967d8fabc882ef42 | [
"MIT"
] | 4 | 2019-07-18T03:14:32.000Z | 2021-07-07T18:15:49.000Z | src/FileIO/filestruct.cc | chengaoyu/BBSLMIRP | 21bd8780c0e7df255a7dd4a6967d8fabc882ef42 | [
"MIT"
] | null | null | null | src/FileIO/filestruct.cc | chengaoyu/BBSLMIRP | 21bd8780c0e7df255a7dd4a6967d8fabc882ef42 | [
"MIT"
] | 1 | 2019-11-28T02:52:45.000Z | 2019-11-28T02:52:45.000Z | /*
@brief: the definition of
@auther: chengaoyu2013@gmail.com
@date: 2017/10/29
*/
#include"filestruct.h"
#include"datastruct.h"
#include<iostream>
#include<iomanip>
#include"grid.h"
#include"ray.h"
#include"patch.h"
namespace BBSLMIRP {
FileController::FileController(){
}
FileController::~FileControlle... | 32.52381 | 110 | 0.603784 | [
"mesh"
] |
ee19a1b13ed2feb50d8a9a2eb432c8e6587499f8 | 384 | cpp | C++ | Teme/Tema1_AA/algo1.cpp | teodutu/PA | 9abaf9f0ebbce8beac274edd672473a17575fe03 | [
"MIT"
] | 7 | 2019-02-12T15:14:12.000Z | 2020-05-05T13:48:52.000Z | Teme/Tema1_AA/algo1.cpp | teodutu/PA | 9abaf9f0ebbce8beac274edd672473a17575fe03 | [
"MIT"
] | null | null | null | Teme/Tema1_AA/algo1.cpp | teodutu/PA | 9abaf9f0ebbce8beac274edd672473a17575fe03 | [
"MIT"
] | 7 | 2020-03-22T09:46:19.000Z | 2021-03-11T20:53:19.000Z | #include "fermat.h"
#define NUM_TESTS 8
std::vector<int> filter_non_prime(const std::vector<int>& sequence) {
std::vector<int> primes;
// se ruleaza cate 8 teste cu algoritmul lui Fermat pentru fiecare numar din secventa data
for (int n : sequence) {
if(is_fermat_prime(n, NUM_TESTS)) {
... | 22.588235 | 94 | 0.643229 | [
"vector"
] |
ee1e9caaa54255439066b666c30d3e776681c119 | 515 | cpp | C++ | rt/rt/coordmappers/plane.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/coordmappers/plane.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/coordmappers/plane.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | #include <core/float4.h>
#include <rt/coordmappers/plane.h>
#include <rt/intersection.h>
namespace rt
{
PlaneCoordMapper::PlaneCoordMapper(const Vector& e1, const Vector& e2)
: m(Matrix::inverseOf(Float4(e1.x, e2.x, (cross(e1, e2)).x, 0),
Float4(e1.y, e2.y, (cross(e1, e2)).y, 0),
Float4(e1.z, e2.z, (cros... | 27.105263 | 70 | 0.648544 | [
"vector"
] |
ee2671dc17aa58f562e4009171b65f026564324f | 6,474 | hpp | C++ | include/PhysicsGrid.hpp | lwesterl/PhysicsEngine | b528145a6b570a7bbb42c31552d8d8a99beb8d43 | [
"MIT"
] | null | null | null | include/PhysicsGrid.hpp | lwesterl/PhysicsEngine | b528145a6b570a7bbb42c31552d8d8a99beb8d43 | [
"MIT"
] | null | null | null | include/PhysicsGrid.hpp | lwesterl/PhysicsEngine | b528145a6b570a7bbb42c31552d8d8a99beb8d43 | [
"MIT"
] | null | null | null | /**
* @file PhysicsGrid.hpp
* @author Lauri Westerholm
* @brief Header for class PhysicsGrid
*/
#pragma once
#include "../utils/Rect.hpp"
#include "../utils/Vector2.hpp"
#include "PhysicsObject.hpp"
#include "DynamicObject.hpp"
#include "StaticObject.hpp"
#include <list>
#include <vector>
/**
* @n... | 30.976077 | 125 | 0.561631 | [
"object",
"vector"
] |
ee26d0206473d8657b0bdd8478c7278d0109efc3 | 1,756 | cpp | C++ | src/JMT.cpp | usedlobster/CarND-T3-P1 | 47ab5cd7c73fa0b6088d06d22df18891d895f8ca | [
"MIT"
] | null | null | null | src/JMT.cpp | usedlobster/CarND-T3-P1 | 47ab5cd7c73fa0b6088d06d22df18891d895f8ca | [
"MIT"
] | null | null | null | src/JMT.cpp | usedlobster/CarND-T3-P1 | 47ab5cd7c73fa0b6088d06d22df18891d895f8ca | [
"MIT"
] | null | null | null | #include "JMT.hpp"
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "Eigen-3.3/Eigen/LU"
using namespace std;
using Eigen::MatrixXd ;
using Eigen::VectorXd ;
void QuinticPath::JMT( double tBase, double Tperiod ) {
T = Tperiod ;
t0 = tBase ;
t1 = t0 + T ;
double T2 = ( T * T ) ;
d... | 19.511111 | 105 | 0.464123 | [
"vector"
] |
ee29de1af83e6dd04a9baeff35008f5642c27574 | 4,645 | cpp | C++ | src/game/agent/htnTasks/MovementTasks.cpp | makuto/galavant | 3da5ee8cfe5f12f0d842f808d22aafc9493941db | [
"MIT"
] | 11 | 2016-11-15T03:12:23.000Z | 2021-08-11T16:27:46.000Z | src/game/agent/htnTasks/MovementTasks.cpp | makuto/galavant | 3da5ee8cfe5f12f0d842f808d22aafc9493941db | [
"MIT"
] | null | null | null | src/game/agent/htnTasks/MovementTasks.cpp | makuto/galavant | 3da5ee8cfe5f12f0d842f808d22aafc9493941db | [
"MIT"
] | 4 | 2016-10-20T10:18:29.000Z | 2021-05-25T05:46:18.000Z | #include "MovementTasks.hpp"
#include "util/Logging.hpp"
#include "world/Position.hpp"
#include "world/WorldResourceLocator.hpp"
namespace gv
{
bool FindResourceTask::StateMeetsPreconditions(const gv::WorldState& state,
const Htn::ParameterList& parameters) const
{
retu... | 36.865079 | 100 | 0.733907 | [
"vector"
] |
ee2bbcde5ee66ff9496a42c4de2e63562da149d5 | 1,162 | cpp | C++ | Main.cpp | HackyTeam/HackyASM | eb0e61aefdf46a9422919c75d78c1041c331cfc8 | [
"MIT"
] | null | null | null | Main.cpp | HackyTeam/HackyASM | eb0e61aefdf46a9422919c75d78c1041c331cfc8 | [
"MIT"
] | null | null | null | Main.cpp | HackyTeam/HackyASM | eb0e61aefdf46a9422919c75d78c1041c331cfc8 | [
"MIT"
] | null | null | null | #include "lib/BasicIInterpreter.hpp"
int main()
{
using namespace hsd::string_view_literals;
hasm::basic_iinterpreter interpreter = "TestInter.hasm"_sv;
interpreter.add_extern_func(
"malloc"_sv, [](hsd::vector<hsd::u64>& args)
{
hasm::call(
[&](hsd::u64 arg)... | 24.723404 | 76 | 0.461274 | [
"vector"
] |
0c583630971d5d80b193eb3995be84b9b079e8f4 | 8,261 | cpp | C++ | dynamorio/clients/drcachesim/tests/cache_miss_analyzer_test.cpp | andre-motta/Project3Compilers | fa366d93ec8d49768fbc86f0c1431391822baf12 | [
"MIT"
] | 107 | 2021-08-28T20:08:42.000Z | 2022-03-22T08:02:16.000Z | dynamorio/clients/drcachesim/tests/cache_miss_analyzer_test.cpp | andre-motta/Project3Compilers | fa366d93ec8d49768fbc86f0c1431391822baf12 | [
"MIT"
] | 1 | 2021-06-01T12:10:25.000Z | 2021-06-01T12:10:25.000Z | dynamorio/clients/drcachesim/tests/cache_miss_analyzer_test.cpp | andre-motta/Project3Compilers | fa366d93ec8d49768fbc86f0c1431391822baf12 | [
"MIT"
] | 16 | 2021-08-30T06:57:36.000Z | 2022-03-22T08:05:52.000Z | /* **********************************************************
* Copyright (c) 2015-2018 Google, LLC All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... | 37.721461 | 83 | 0.639874 | [
"object",
"vector"
] |
0c5cc43c349aebe512f8f5dff3fca9b1c363e463 | 8,591 | cpp | C++ | Code/CommonFiles/src/FuzzyLite/LinguisticVariable.cpp | P4ALLcerthiti/P4ALL_FallDetection | f3fcab26d66f4d36ddca4ba69262022e289a128b | [
"BSD-3-Clause"
] | 2 | 2017-08-28T21:12:40.000Z | 2021-02-20T06:58:19.000Z | Code/CommonFiles/src/FuzzyLite/LinguisticVariable.cpp | P4ALLcerthiti/P4ALL_Fall_Detection_Web_Services | 4d2b4fc4ed326d0ebfb3934ac88f13b78433af7a | [
"BSD-3-Clause"
] | null | null | null | Code/CommonFiles/src/FuzzyLite/LinguisticVariable.cpp | P4ALLcerthiti/P4ALL_Fall_Detection_Web_Services | 4d2b4fc4ed326d0ebfb3934ac88f13b78433af7a | [
"BSD-3-Clause"
] | null | null | null | /* Copyright 2010 Juan Rada-Vilela
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... | 35.647303 | 104 | 0.562449 | [
"vector"
] |
0c638098074abb25f23f5d977b18ceea5c440c1f | 1,703 | cpp | C++ | Old/lib/functions.cpp | waterswims/MC_HAMR | eb0492bc12a6eb67ec1709e5b59bdd53ee999892 | [
"MIT"
] | 1 | 2021-08-02T23:14:45.000Z | 2021-08-02T23:14:45.000Z | Old/lib/functions.cpp | waterswims/MC_HAMR | eb0492bc12a6eb67ec1709e5b59bdd53ee999892 | [
"MIT"
] | null | null | null | Old/lib/functions.cpp | waterswims/MC_HAMR | eb0492bc12a6eb67ec1709e5b59bdd53ee999892 | [
"MIT"
] | 1 | 2021-08-02T23:14:45.000Z | 2021-08-02T23:14:45.000Z | #include "../includes/functions.hpp"
#include <stdexcept>
#include <iostream>
#include <cmath>
#include <sstream>
double mean(std::vector<double> &oY){
double s(0);
for (int i=0; i < oY.size(); i++){
s += oY[i];
}
return s / oY.size();
}
double std_dev(std::vector<double> &x){
double av_x ... | 21.556962 | 84 | 0.496183 | [
"vector"
] |
0c64d80f415bc9f6d6c7971ad80b565f8b2da79d | 2,032 | cpp | C++ | code/framework/src/integrations/client/instance.cpp | Deewarz/Framework | 4feb55cd9bcde691694af8dcad12c291f1b4d353 | [
"OpenSSL"
] | null | null | null | code/framework/src/integrations/client/instance.cpp | Deewarz/Framework | 4feb55cd9bcde691694af8dcad12c291f1b4d353 | [
"OpenSSL"
] | null | null | null | code/framework/src/integrations/client/instance.cpp | Deewarz/Framework | 4feb55cd9bcde691694af8dcad12c291f1b4d353 | [
"OpenSSL"
] | null | null | null | /*
* MafiaHub OSS license
* Copyright (c) 2021, MafiaHub. All rights reserved.
*
* This file comes from MafiaHub, hosted at https://github.com/MafiaHub/Framework.
* See LICENSE file in the source repository for information regarding licensing.
*/
#include "instance.h"
#include <logging/logger.h>
namespace Fram... | 24.780488 | 97 | 0.565945 | [
"render"
] |
0c65f83d9071d4c62a3c14e8a10984a17e025dd7 | 7,185 | cpp | C++ | Server/src/commandparser.cpp | radu781/Train-manager | 74f41dc7f3a61df56f670956b7d65d89e956ee4d | [
"MIT"
] | null | null | null | Server/src/commandparser.cpp | radu781/Train-manager | 74f41dc7f3a61df56f670956b7d65d89e956ee4d | [
"MIT"
] | null | null | null | Server/src/commandparser.cpp | radu781/Train-manager | 74f41dc7f3a61df56f670956b7d65d89e956ee4d | [
"MIT"
] | null | null | null | #include "pc.h"
#include "communication/commandparser.hpp"
#include "commands/arrivals.hpp"
#include "commands/departures.hpp"
#include "commands/help.hpp"
#include "commands/late.hpp"
#include "commands/today.hpp"
#include "communication/client.hpp"
pugi::xml_document CommandParser::doc{};
std::unordered_se... | 34.052133 | 196 | 0.585943 | [
"transform"
] |
0c6c5e369513de3afaa1f4da78655204f2e065b3 | 1,016 | cpp | C++ | boost_python/test.cpp | naoki009/samples | dac3bbddbd06374c39768cbe17fefd0110fe316f | [
"BSD-2-Clause"
] | null | null | null | boost_python/test.cpp | naoki009/samples | dac3bbddbd06374c39768cbe17fefd0110fe316f | [
"BSD-2-Clause"
] | null | null | null | boost_python/test.cpp | naoki009/samples | dac3bbddbd06374c39768cbe17fefd0110fe316f | [
"BSD-2-Clause"
] | 1 | 2020-08-14T11:44:42.000Z | 2020-08-14T11:44:42.000Z | #include <iostream>
//#include <boost/python.hpp>
#include <boost/python/numpy.hpp>
namespace py = boost::python;
namespace np = boost::python::numpy;
double my_add( double a, double b )
{
return a + b;
}
void show_array( np::ndarray a )
{
float *data = (float *) a.get_data();
int ndim = a.get_nd();
... | 19.169811 | 51 | 0.534449 | [
"shape"
] |
0c6da7277f4d72a261eb1f50be1c312b8638ae67 | 7,841 | cpp | C++ | openvino-trt-app/src/yolo_ov.cpp | KaiL4eK/keras_traffic_signs_localization | 38d5f9b2a11c5db04850ddba3ae91f18dcb98066 | [
"MIT"
] | 4 | 2019-01-03T18:21:39.000Z | 2022-01-25T00:24:07.000Z | openvino-trt-app/src/yolo_ov.cpp | KaiL4eK/keras_traffic_signs_localization | 38d5f9b2a11c5db04850ddba3ae91f18dcb98066 | [
"MIT"
] | 1 | 2020-09-26T00:37:57.000Z | 2020-09-26T00:37:57.000Z | openvino-trt-app/src/yolo_ov.cpp | KaiL4eK/keras_traffic_signs_localization | 38d5f9b2a11c5db04850ddba3ae91f18dcb98066 | [
"MIT"
] | null | null | null | #include "yolo_ov.hpp"
using namespace std;
#include <ext_list.hpp>
namespace ie = InferenceEngine;
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
/**
* @brief Sets image data stored in cv::Mat object to a given Blob object.
* @param orig_image - given cv::Mat object with an image data.
* @param... | 36.469767 | 127 | 0.554521 | [
"object",
"vector"
] |
0c75be4ecf0204ea4b20b7608cfffc135fb2eada | 3,324 | hpp | C++ | tests/unit/coherence/native/BackTraceTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | tests/unit/coherence/native/BackTraceTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | tests/unit/coherence/native/BackTraceTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "cxxtest/TestSuite.h"
#include "coherence/lang.ns"
using namespace coherence::lang;
/**
* Test Suite for BackTraceTest
*
* Tests B... | 25.767442 | 86 | 0.420277 | [
"object"
] |
0c76c31075c6a4c4cf3ef29a2adbc2ba2a5552df | 611 | cpp | C++ | Learn_cpp/for_each/a01_for_each.cpp | bhishanpdl/Tutorial_Cpp | 49aabcd2f1cce4a1698cee79d171a2fcbf7574b4 | [
"MIT"
] | null | null | null | Learn_cpp/for_each/a01_for_each.cpp | bhishanpdl/Tutorial_Cpp | 49aabcd2f1cce4a1698cee79d171a2fcbf7574b4 | [
"MIT"
] | null | null | null | Learn_cpp/for_each/a01_for_each.cpp | bhishanpdl/Tutorial_Cpp | 49aabcd2f1cce4a1698cee79d171a2fcbf7574b4 | [
"MIT"
] | null | null | null | /* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : for_each_eg.cpp
* Purpose :
* Creation Date : May 26, 2019 Sun
* Last Modified : Sun May 26 15:57:14 2019
* Created By : Bhishan Poudel
*
* For-each syntax
for (element_declaration : array)
statement;
_._._._._._._._._._._._._._._._._._._._._.*/
#incl... | 21.068966 | 63 | 0.572831 | [
"vector"
] |
0c7c0431c96d5ce1901075cc12daf8b033b7f072 | 13,048 | cpp | C++ | planning/scenario_planning/lane_driving/behavior_planning/behavior_velocity_planner/src/node.cpp | hamlinzheng/AutowareArchitectureProposal.iv | 8a1343019aca3a648754fa50e6cab72b98db2df5 | [
"Apache-2.0"
] | null | null | null | planning/scenario_planning/lane_driving/behavior_planning/behavior_velocity_planner/src/node.cpp | hamlinzheng/AutowareArchitectureProposal.iv | 8a1343019aca3a648754fa50e6cab72b98db2df5 | [
"Apache-2.0"
] | 9 | 2021-08-09T14:15:58.000Z | 2021-08-19T07:56:14.000Z | planning/scenario_planning/lane_driving/behavior_planning/behavior_velocity_planner/src/node.cpp | hamlinzheng/AutowareArchitectureProposal.iv | 8a1343019aca3a648754fa50e6cab72b98db2df5 | [
"Apache-2.0"
] | 1 | 2021-02-09T01:24:13.000Z | 2021-02-09T01:24:13.000Z | /*
* Copyright 2020 Tier IV, 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 appli... | 36.75493 | 113 | 0.757741 | [
"transform"
] |
0c7f470a5b19cdeb33df7286d1e9c38a527bb378 | 31,178 | cpp | C++ | src/minisef/gcsdk/sqlaccess/recordinfo.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/minisef/gcsdk/sqlaccess/recordinfo.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/minisef/gcsdk/sqlaccess/recordinfo.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#include "stdafx.h"
//#include "sqlaccess.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/m... | 37.072533 | 119 | 0.491725 | [
"object",
"vector"
] |
0c8091c70d1fb5a854a7b52db3bdbfee766b3280 | 18,822 | hpp | C++ | example/multi_fem/Nonlinear.hpp | ORNL-CEES/kokkos | 70d113838b7dade09218a46c1e8aae44b6dbd321 | [
"BSD-3-Clause"
] | 1 | 2019-10-15T19:26:22.000Z | 2019-10-15T19:26:22.000Z | example/multi_fem/Nonlinear.hpp | ORNL-CEES/kokkos | 70d113838b7dade09218a46c1e8aae44b6dbd321 | [
"BSD-3-Clause"
] | 16 | 2019-04-15T20:52:05.000Z | 2020-01-24T05:13:25.000Z | example/multi_fem/Nonlinear.hpp | ORNL-CEES/kokkos | 70d113838b7dade09218a46c1e8aae44b6dbd321 | [
"BSD-3-Clause"
] | 1 | 2019-11-25T14:06:26.000Z | 2019-11-25T14:06:26.000Z | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2014) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this softw... | 34.920223 | 80 | 0.61104 | [
"mesh",
"vector"
] |
0c83ff926479d7e6bd78f8a950486769075bc529 | 2,914 | cpp | C++ | Motor2D/UiItem_Image.cpp | pink-king/Final-Fantasy-Tactics | b5dcdd0aa548900b3b2279cd4c6d4220f5869c08 | [
"Unlicense"
] | 9 | 2019-04-19T17:25:34.000Z | 2022-01-30T14:46:30.000Z | Motor2D/UiItem_Image.cpp | pink-king/Final-Fantasy-Tactics | b5dcdd0aa548900b3b2279cd4c6d4220f5869c08 | [
"Unlicense"
] | 44 | 2019-03-22T10:22:19.000Z | 2019-08-08T07:48:27.000Z | Motor2D/UiItem_Image.cpp | pink-king/Final-Fantasy-Tactics | b5dcdd0aa548900b3b2279cd4c6d4220f5869c08 | [
"Unlicense"
] | 1 | 2022-01-30T14:46:34.000Z | 2022-01-30T14:46:34.000Z | #include "UiItem_Image.h"
#include "j1App.h"
#include "j1Textures.h"
#include "j1Render.h"
#include "j1Gui.h"
#include "j1Scene.h"
#include "j1Input.h"
#include "LootEntity.h"
UiItem_Image::UiItem_Image(iPoint position, const SDL_Rect* section, std::string& name, UiItem* const parent, bool swapPosition, bool isTabbabl... | 20.521127 | 196 | 0.656143 | [
"render"
] |
0c8715c1cb4f5418ebea345962fd5e98e8209d7d | 8,435 | cpp | C++ | UFFBAPS/methods/reverse_chemical_shift_changes.cpp | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | 3 | 2016-11-11T06:11:03.000Z | 2021-09-12T22:13:51.000Z | UFFBAPS/methods/reverse_chemical_shift_changes.cpp | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | null | null | null | UFFBAPS/methods/reverse_chemical_shift_changes.cpp | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | 2 | 2016-02-15T16:10:36.000Z | 2018-02-27T10:33:21.000Z | /*
#
# UFFBAPS - Unified Force Field for Binding And Protein Stability
# Copyright (C) 2010 Jens Erik Nielsen & Chresten Soendergaard
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eit... | 28.023256 | 225 | 0.654653 | [
"vector"
] |
0c8a2c0a95fbffe0fe28fd1eae4260249c4044d7 | 5,848 | cpp | C++ | DT3Core/Scripting/ScriptingTimerUpReset.cpp | 9heart/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2018-10-05T15:03:27.000Z | 2019-03-19T11:01:56.000Z | DT3Core/Scripting/ScriptingTimerUpReset.cpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 1 | 2016-01-28T14:39:49.000Z | 2016-01-28T22:12:07.000Z | DT3Core/Scripting/ScriptingTimerUpReset.cpp | adderly/DT3 | e2605be091ec903d3582e182313837cbaf790857 | [
"MIT"
] | 3 | 2016-01-25T16:44:51.000Z | 2021-01-29T19:59:45.000Z | //==============================================================================
///
/// File: ScriptingTimerUpReset.cpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is subject to the terms and conditions defined in
/// file 'LICENSE.txt', which is part of... | 31.106383 | 104 | 0.487346 | [
"object"
] |
0c8dd5b8275972481e1ee37522af008feabcc54b | 2,237 | cpp | C++ | behavioral/observer/observer.cpp | stefanpantic/cpp-design-patterns | 887f9ddebbb99a773ba132c6298fee37eec25609 | [
"MIT"
] | 2 | 2021-01-21T11:03:08.000Z | 2021-01-31T17:47:12.000Z | behavioral/observer/observer.cpp | stefanpantic/cpp-design-patterns | 887f9ddebbb99a773ba132c6298fee37eec25609 | [
"MIT"
] | null | null | null | behavioral/observer/observer.cpp | stefanpantic/cpp-design-patterns | 887f9ddebbb99a773ba132c6298fee37eec25609 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <mutex>
#include <any>
class Person;
class IPersonListener
{
public:
virtual ~IPersonListener() = default;
virtual void person_changed(Person&, const std::string& property, const std::any& value) = 0;
};
class P... | 17.896 | 94 | 0.669647 | [
"vector"
] |
0c90ed2604ce60d27352997e2151e5217c724993 | 3,487 | cpp | C++ | src/record.cpp | vadimostanin2/sneeze-detector | 2bac0d08cb4960b7dc16492b8c69ff1459dd9334 | [
"MIT"
] | 11 | 2015-04-18T23:42:44.000Z | 2021-04-03T18:23:44.000Z | src/record.cpp | vadimostanin2/sneeze-detector | 2bac0d08cb4960b7dc16492b8c69ff1459dd9334 | [
"MIT"
] | null | null | null | src/record.cpp | vadimostanin2/sneeze-detector | 2bac0d08cb4960b7dc16492b8c69ff1459dd9334 | [
"MIT"
] | 3 | 2017-06-02T17:07:08.000Z | 2019-04-18T05:59:48.000Z | /*
* record.cpp
*
* Created on: Dec 1, 2014
* Author: vostanin
*/
#include "record.h"
#include "training_sound_config.h"
#include "MainWindow.h"
#include <stdlib.h>
const unsigned int channels_count = 1;
unsigned int sampleRate = 16000;
const unsigned int desiredBufferFrames = sampleRate; // 8000 sample fr... | 24.730496 | 117 | 0.620017 | [
"vector"
] |
0c999415a6bd3e0bc059984f39e7f2fc44283286 | 1,882 | hpp | C++ | src/NPCManager.hpp | Zenpock/OpenFusion | 2af33da4e8174158ac7016b7f381eab6475d39d9 | [
"MIT"
] | null | null | null | src/NPCManager.hpp | Zenpock/OpenFusion | 2af33da4e8174158ac7016b7f381eab6475d39d9 | [
"MIT"
] | null | null | null | src/NPCManager.hpp | Zenpock/OpenFusion | 2af33da4e8174158ac7016b7f381eab6475d39d9 | [
"MIT"
] | null | null | null | #pragma once
#include "CNProtocol.hpp"
#include "PlayerManager.hpp"
#include "NPC.hpp"
#include "contrib/JSON.hpp"
#include <map>
#include <vector>
#define RESURRECT_HEIGHT 400
// this should really be called vec3 or something...
struct WarpLocation {
int x, y, z, instanceID, isInstance, limitTaskID, npcID;
};... | 34.851852 | 77 | 0.7322 | [
"vector"
] |
0c9d681d37f81c2a954ee12b4c4f53be3f9fdfb3 | 161,102 | cpp | C++ | src/Overlook/Indicators.cpp | sppp/Overlook | 264f6b64d40dc4cf0cb7b7ad6046a0f10eb2297b | [
"BSD-3-Clause"
] | 7 | 2017-07-21T09:10:50.000Z | 2021-01-23T09:21:40.000Z | src/Overlook/Indicators.cpp | OuluLinux/Overlook | 264f6b64d40dc4cf0cb7b7ad6046a0f10eb2297b | [
"BSD-3-Clause"
] | null | null | null | src/Overlook/Indicators.cpp | OuluLinux/Overlook | 264f6b64d40dc4cf0cb7b7ad6046a0f10eb2297b | [
"BSD-3-Clause"
] | 8 | 2017-04-30T08:30:21.000Z | 2020-03-14T03:18:41.000Z | #include "Overlook.h"
namespace Overlook {
double SimpleMA ( const int position, const int period, ConstBuffer& value ) {
double result = 0.0;
if ( position >= period && period > 0 ) {
for ( int i = 0; i < period; i++)
result += value.Get( position - i );
result /= period;
}
return ( result );
... | 20.792721 | 150 | 0.583519 | [
"vector"
] |
0cc08843ff512d66ab6967bd1e83ddcab1e1803c | 1,407 | cpp | C++ | 32blit/menu.cpp | Daft-Freak/DaftBoy32 | 721b1049a11742c57d8239491090d33aae2bbbe3 | [
"MIT"
] | 6 | 2021-01-18T23:06:02.000Z | 2022-02-16T09:14:31.000Z | 32blit/menu.cpp | Daft-Freak/DaftBoy32 | 721b1049a11742c57d8239491090d33aae2bbbe3 | [
"MIT"
] | null | null | null | 32blit/menu.cpp | Daft-Freak/DaftBoy32 | 721b1049a11742c57d8239491090d33aae2bbbe3 | [
"MIT"
] | 1 | 2021-12-10T23:45:28.000Z | 2021-12-10T23:45:28.000Z | #include "menu.hpp"
#include "control-icons.hpp"
#include "engine/engine.hpp"
Menu::Menu(std::string_view title, std::vector<Item> items, const blit::Font &font) : blit::Menu(title, nullptr, 0, font), items_vec(std::move(items)) {
this->items = items_vec.data();
num_items = items_vec.size();
item_h = fo... | 34.317073 | 173 | 0.67022 | [
"vector"
] |
0cc813390b166dfb5656093daf3de9c1f409ff12 | 1,291 | cpp | C++ | learningOpenCV3/Contour/main.cpp | colorhistory/computer-vision | 88ddddcfd339ecb477edf24e46416f1c50627217 | [
"MIT"
] | null | null | null | learningOpenCV3/Contour/main.cpp | colorhistory/computer-vision | 88ddddcfd339ecb477edf24e46416f1c50627217 | [
"MIT"
] | null | null | null | learningOpenCV3/Contour/main.cpp | colorhistory/computer-vision | 88ddddcfd339ecb477edf24e46416f1c50627217 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2019 Xiaohai <xiaohaidotpro@outlook.com>.
** Contact: http://xiaohai.pro
**
** This file is part of learningOpenCV3
**
**
****************************************************************************/
#include "bits/stdc+... | 28.065217 | 98 | 0.563129 | [
"vector"
] |
7b4c8e39e1c302941eb797b68e907338eb3f6df6 | 5,866 | cpp | C++ | tests/src/minimumtestcase.cpp | MacroGu/log4cxx_gcc_4_8 | c6c82ee6dca2808c42cfa567d32f640a8bd9ac3e | [
"Apache-2.0"
] | 1 | 2016-10-06T20:09:32.000Z | 2016-10-06T20:09:32.000Z | tests/src/minimumtestcase.cpp | MacroGu/log4cxx_gcc_4_8 | c6c82ee6dca2808c42cfa567d32f640a8bd9ac3e | [
"Apache-2.0"
] | null | null | null | tests/src/minimumtestcase.cpp | MacroGu/log4cxx_gcc_4_8 | c6c82ee6dca2808c42cfa567d32f640a8bd9ac3e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2003,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 25.955752 | 78 | 0.649847 | [
"vector",
"transform"
] |
7b4ec7624303ad1d350e453f1c3c8b9c609c3a06 | 870 | cpp | C++ | Superprime Rib.cpp | Eggag/USACO | 05eb5ebd73652ea5718e8e5832fac5ee3e946ccb | [
"MIT"
] | 8 | 2018-10-27T04:29:01.000Z | 2021-11-29T05:48:06.000Z | Superprime Rib.cpp | Eggag/USACO | 05eb5ebd73652ea5718e8e5832fac5ee3e946ccb | [
"MIT"
] | null | null | null | Superprime Rib.cpp | Eggag/USACO | 05eb5ebd73652ea5718e8e5832fac5ee3e946ccb | [
"MIT"
] | null | null | null | /*
ID: egor_ga1
PROG: sprime
LANG: C++11
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pi;
#define mp make_pair
#define pb push_back
#define f first
#define s second
bool is_prime(int h){
for(int i = 2; i <= sqrt(h); i++){
if(h % i == 0){
re... | 15.818182 | 39 | 0.537931 | [
"vector"
] |
7b4fc7507c24dae7fdbd85bc5f00cc9cd2edb84d | 1,131 | hh | C++ | src/Graph.hh | harrhunt/ClassDiagramTool | 471e41c9e4574c323fd4fa41b9922b16bf035450 | [
"Apache-2.0"
] | null | null | null | src/Graph.hh | harrhunt/ClassDiagramTool | 471e41c9e4574c323fd4fa41b9922b16bf035450 | [
"Apache-2.0"
] | 1 | 2022-02-02T10:36:04.000Z | 2022-02-02T10:36:04.000Z | src/Graph.hh | harrhunt/ClassDiagramTool | 471e41c9e4574c323fd4fa41b9922b16bf035450 | [
"Apache-2.0"
] | null | null | null | //
// Created by Davis on 1/26/2022.
// src/Graph.hh
//
#pragma once
#include "Node.hh"
#include "Edge.hh"
#include <vector>
/// Generic Graph data structure
/// Contains a vector of Nodes and Edges
template<class T>
class Graph {
public:
Graph();
//add and remove nodes
void addNode(Node<T> node) {
... | 19.842105 | 50 | 0.562334 | [
"vector"
] |
7b522cb1bd78ff0d3b55398af422dc8dd531a18f | 1,312 | cpp | C++ | source/laplace/stem/s_app_flat.cpp | ogryzko/laplace | be63caa0c6d1c4fceab02ab5b41b6d307ef7baaf | [
"MIT"
] | null | null | null | source/laplace/stem/s_app_flat.cpp | ogryzko/laplace | be63caa0c6d1c4fceab02ab5b41b6d307ef7baaf | [
"MIT"
] | null | null | null | source/laplace/stem/s_app_flat.cpp | ogryzko/laplace | be63caa0c6d1c4fceab02ab5b41b6d307ef7baaf | [
"MIT"
] | null | null | null | /* laplace/stem/s_app_flat.cpp
*
* Base class for UI and 2D graphics application.
*
* Copyright (c) 2021 Mitya Selivanov
*
* This file is part of the Laplace project.
*
* Laplace is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of ME... | 22.62069 | 73 | 0.65625 | [
"render"
] |
7b5890a8f456bc8e51afe62bef904676a0a86764 | 8,535 | tpp | C++ | include/thpool.tpp | RRZE-HPC/RACE | d98c210aa8a3365c1fc856c557bc8b0ec5505e67 | [
"MIT"
] | 1 | 2021-02-24T20:18:46.000Z | 2021-02-24T20:18:46.000Z | include/thpool.tpp | RRZE-HPC/RACE | d98c210aa8a3365c1fc856c557bc8b0ec5505e67 | [
"MIT"
] | null | null | null | include/thpool.tpp | RRZE-HPC/RACE | d98c210aa8a3365c1fc856c557bc8b0ec5505e67 | [
"MIT"
] | null | null | null | /* vim: set filetype=cpp: */
#include <functional>
#include <sys/time.h>
#include "timing.h"
#include "test.h"
#include<malloc.h>
#include <unistd.h>
#define DEFAULT_RACE_BLOCKCTR 200000
#define DEBUG 0
template< typename arg_t>
thread<arg_t>::thread():pthread(NULL),workerTeam(NULL),jobPresent(false)
{
pthre... | 25.029326 | 128 | 0.603046 | [
"vector"
] |
7b5a2f2294f83e564b808e44a1128026c0aa7395 | 15,032 | cpp | C++ | src/flexui/Render/Font.cpp | franciscod/flexui | 9af2c32a8ac3fe7127a9dd6927abe8b1945237c4 | [
"MIT"
] | 23 | 2020-12-20T01:41:56.000Z | 2021-11-14T20:26:40.000Z | src/flexui/Render/Font.cpp | franciscod/flexui | 9af2c32a8ac3fe7127a9dd6927abe8b1945237c4 | [
"MIT"
] | 2 | 2020-12-23T16:29:55.000Z | 2021-11-29T05:35:12.000Z | src/flexui/Render/Font.cpp | franciscod/flexui | 9af2c32a8ac3fe7127a9dd6927abe8b1945237c4 | [
"MIT"
] | 4 | 2020-12-23T16:02:25.000Z | 2021-09-30T08:37:51.000Z | #include "flexui/Render/Font.hpp"
#include "flexui/Log.hpp"
// FreeType 2
#include <ft2build.h>
#include FT_FREETYPE_H
constexpr auto MAX_VALID_UNICODE = 0x10FFFF;
// https://github.com/skeeto/branchless-utf8
static int utf8_decode(uint32_t* c, const uint8_t* buf, const uint8_t* buf_end)
{
static const char le... | 36.933661 | 144 | 0.532863 | [
"render",
"vector"
] |
7b5c8b79a7c3183b5196a1eb0241d61a24b95884 | 4,641 | hpp | C++ | include/misc/shader.hpp | jdtaylor7/drone_viewer | 18009b499c96255bd355db030522e97cc840d6ba | [
"MIT"
] | 11 | 2020-08-25T22:19:46.000Z | 2021-09-29T11:50:29.000Z | include/misc/shader.hpp | jdtaylor7/drone_viewer | 18009b499c96255bd355db030522e97cc840d6ba | [
"MIT"
] | 17 | 2020-07-10T00:35:09.000Z | 2020-08-18T00:38:07.000Z | include/misc/shader.hpp | jdtaylor7/drone_viewer | 18009b499c96255bd355db030522e97cc840d6ba | [
"MIT"
] | 2 | 2021-02-11T17:37:32.000Z | 2021-02-21T11:11:30.000Z | #ifndef SHADER_HPP
#define SHADER_HPP
#include <filesystem>
#include <fstream>
#include <sstream>
#include <string>
#include <glad/glad.h>
#include <glm/glm.hpp>
#include "logger.hpp"
namespace fs = std::filesystem;
class Shader
{
public:
Shader() : vertex_path{}, fragment_path{} {}
Shad... | 30.532895 | 110 | 0.669899 | [
"object"
] |
7b68af0b49a98c54885e187d602d83b74b343d9b | 3,329 | cpp | C++ | med/shortest_reach/main.cpp | exbibyte/hr | 100514dfc2a1c9b5366c12ec0a75e889132a620e | [
"MIT"
] | null | null | null | med/shortest_reach/main.cpp | exbibyte/hr | 100514dfc2a1c9b5366c12ec0a75e889132a620e | [
"MIT"
] | null | null | null | med/shortest_reach/main.cpp | exbibyte/hr | 100514dfc2a1c9b5366c12ec0a75e889132a620e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
namespace std {
template <> struct hash<pair<int, int>> {
std::size_t operator()(const pair<int, int> &k) const {
using std::hash;
using std::size_t;
// Compute individual hash values for first,
// second and third and combine them usi... | 30.263636 | 76 | 0.444578 | [
"vector"
] |
7b6b676eea1586764cf08357365ee48d18a1e59a | 2,097 | hpp | C++ | mlmodel/src/ResultReason.hpp | tucan9389/coremltools | 705244e2be26c3fb7881fd7a731d25a55f5e4765 | [
"BSD-3-Clause"
] | null | null | null | mlmodel/src/ResultReason.hpp | tucan9389/coremltools | 705244e2be26c3fb7881fd7a731d25a55f5e4765 | [
"BSD-3-Clause"
] | null | null | null | mlmodel/src/ResultReason.hpp | tucan9389/coremltools | 705244e2be26c3fb7881fd7a731d25a55f5e4765 | [
"BSD-3-Clause"
] | null | null | null | //
// ResultReason.hpp
// CoreML
//
// Created by Jeff Kilpatrick on 12/16/19.
// Copyright © 2019 Apple Inc. All rights reserved.
//
#pragma once
namespace CoreML {
/**
Super specific reasons for non-good Results.
*/
enum class ResultReason {
UNKNOWN,
// -----------------------------------------
... | 24.964286 | 52 | 0.748689 | [
"model"
] |
7b6c1084af3f8547c940c5faaf1bde0c9e06e3e5 | 4,882 | cpp | C++ | week13/hw12_jiaxi.cpp | YiwenCui/NYU-Bridge-Winter-2021 | bcada20fc0fd7d940f556322dabc560f59259e57 | [
"MIT"
] | null | null | null | week13/hw12_jiaxi.cpp | YiwenCui/NYU-Bridge-Winter-2021 | bcada20fc0fd7d940f556322dabc560f59259e57 | [
"MIT"
] | null | null | null | week13/hw12_jiaxi.cpp | YiwenCui/NYU-Bridge-Winter-2021 | bcada20fc0fd7d940f556322dabc560f59259e57 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
using namespace std;
class Money
{
public:
friend Money operator+(const Money &amount1, const Money &amount2);
friend Money operator-(const Money &amount1, const Money &amount2);
friend Money operator-(const Money &amount);
friend bool operator==(... | 23.931373 | 166 | 0.578247 | [
"vector"
] |
7b72dbb3bb6e3287f8ef2623da36eb5def8fc2f1 | 16,944 | cpp | C++ | src/libParkAssist.cpp | MatteoRagni/ParkAssistant | 5d3941515ce2666d188564f8a65e0684d6979586 | [
"BSD-3-Clause"
] | 5 | 2015-04-30T13:10:15.000Z | 2018-10-11T21:00:44.000Z | src/libParkAssist.cpp | MatteoRagni/ParkAssistant | 5d3941515ce2666d188564f8a65e0684d6979586 | [
"BSD-3-Clause"
] | 1 | 2018-04-11T03:51:24.000Z | 2018-04-11T06:58:32.000Z | src/libParkAssist.cpp | MatteoRagni/ParkAssistant | 5d3941515ce2666d188564f8a65e0684d6979586 | [
"BSD-3-Clause"
] | 8 | 2015-04-30T13:10:17.000Z | 2019-02-10T20:39:53.000Z | /*
* libParkAssist.cpp
*
* Created on: Nov 10, 2013
* Author: Matteo Ragni
*/
#include "libParkAssist.hpp"
void printCapProperties(VideoCapture cap){
cout << "┌─────────────────┐ " << endl;
cout << "│ FILE PROPERTIES │" << endl;
cout << "└──┬──────────────┘ " << endl;
cout << " │ " << en... | 29.467826 | 167 | 0.602396 | [
"vector"
] |
7b7618a5a5c495cbdc263804fee3caa816043974 | 1,902 | cpp | C++ | Data Structure/Sort/Radix Sort/main.cpp | InnoFang/oh-my-algorithms | f559dba371ce725a926725ad28d5e1c2facd0ab2 | [
"Apache-2.0"
] | 19 | 2018-08-26T03:10:58.000Z | 2022-03-07T18:12:52.000Z | Data Structure/Sort/Radix Sort/main.cpp | InnoFang/Algorithm-Library | 1896b9d8b1fa4cd73879aaecf97bc32d13ae0169 | [
"Apache-2.0"
] | null | null | null | Data Structure/Sort/Radix Sort/main.cpp | InnoFang/Algorithm-Library | 1896b9d8b1fa4cd73879aaecf97bc32d13ae0169 | [
"Apache-2.0"
] | 6 | 2020-03-16T23:00:06.000Z | 2022-01-13T07:02:08.000Z | #include <ctime>
#include <queue>
#include <vector>
#include <algorithm>
#include <iostream>
void radixSort(std::vector<int>& arr) {
int maxDigit = *max_element(arr.begin(), arr.end());
/* Counter consist of ten queues that store the number of the corresponding digit. */
std::queue<int> counter[10]; ... | 27.565217 | 92 | 0.564669 | [
"vector"
] |
7b7a8234088f37edf6dcd87dec0554ae26fb6719 | 1,725 | cpp | C++ | code/signet/commands/print_info/print_info.cpp | SamWindell/Signet | 2f3ba0c75641360957d77b94fa335711dc3cd63b | [
"BSD-3-Clause"
] | 11 | 2020-05-26T18:33:39.000Z | 2022-02-24T15:14:23.000Z | code/signet/commands/print_info/print_info.cpp | SamWindell/Signet | 2f3ba0c75641360957d77b94fa335711dc3cd63b | [
"BSD-3-Clause"
] | 5 | 2020-05-26T13:48:06.000Z | 2022-03-26T09:38:43.000Z | code/signet/commands/print_info/print_info.cpp | SamWindell/Signet | 2f3ba0c75641360957d77b94fa335711dc3cd63b | [
"BSD-3-Clause"
] | 1 | 2021-12-30T04:08:09.000Z | 2021-12-30T04:08:09.000Z | #include "print_info.h"
#include "CLI11.hpp"
#include <cereal/archives/json.hpp>
#include <cereal/types/optional.hpp>
#include <cereal/types/string.hpp>
#include <cereal/types/vector.hpp>
#include "gain_calculators.h"
CLI::App *PrintInfoCommand::CreateCommandCLI(CLI::App &app) {
auto printer = app.add_subcommand... | 37.5 | 107 | 0.578551 | [
"vector"
] |
7b7bbf8bdc4ea79fff76a344b57ec9835d6ec9f8 | 1,307 | cpp | C++ | coj.uci.cu/BadCowtractors.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | 6 | 2016-09-10T03:16:34.000Z | 2020-04-07T14:45:32.000Z | coj.uci.cu/BadCowtractors.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | null | null | null | coj.uci.cu/BadCowtractors.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | 2 | 2018-08-11T20:55:35.000Z | 2020-01-15T23:23:11.000Z | /*
By: facug91
From: http://coj.uci.cu/24h/problem.xhtml?pid=1690
Name: Bad Cowtractors
Date: 20/03/2015
*/
#include <bits/stdc++.h>
#define EPS 1e-9
#define DEBUG(x) cerr << "#" << (#x) << ": " << (x) << endl
#define MP make_pair
const double PI = 2.0*acos(0.0);
#define I... | 23.339286 | 106 | 0.557001 | [
"vector"
] |
7b80965c0bb37f8ef5f7e563b9e1618da657ad6f | 8,331 | cpp | C++ | openstudiocore/src/utilities/geometry/Geometry.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/utilities/geometry/Geometry.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/utilities/geometry/Geometry.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2013, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published ... | 29.438163 | 111 | 0.569199 | [
"geometry",
"vector"
] |
7b81c1f8b548e9d58c3f158e61ba1ca32ecbe1a0 | 4,388 | cpp | C++ | EasyCpp/Plugin/Manager.cpp | Thalhammer/EasyCpp | 6b9886fecf0aa363eaf03741426fd3462306c211 | [
"MIT"
] | 3 | 2018-02-06T05:12:41.000Z | 2020-05-12T20:57:32.000Z | EasyCpp/Plugin/Manager.cpp | Thalhammer/EasyCpp | 6b9886fecf0aa363eaf03741426fd3462306c211 | [
"MIT"
] | 41 | 2016-07-11T12:19:10.000Z | 2017-08-08T07:43:12.000Z | EasyCpp/Plugin/Manager.cpp | Thalhammer/EasyCpp | 6b9886fecf0aa363eaf03741426fd3462306c211 | [
"MIT"
] | 2 | 2019-08-02T10:24:36.000Z | 2020-09-11T01:45:12.000Z | #include "Manager.h"
#include "Plugin.h"
#include <fstream>
#include "IPluginDatabaseProvider.h"
#include "IPluginScriptEngineFactoryProvider.h"
#include "../Database/DatabaseDriverManager.h"
#include "../Scripting/ScriptEngineManager.h"
namespace EasyCpp
{
namespace Plugin
{
Manager::Manager()
{
}
Manager... | 29.253333 | 144 | 0.680264 | [
"vector"
] |
7b9669bcdfec63a5c9a0fad804c60a946698f385 | 8,174 | cpp | C++ | codeBase/CodeJam/2014/2014_Q_C/2014_Q_C.cpp | suren3141/codeBase | 10ed9a56aca33631dc8c419cd83859c19dd6ff09 | [
"Apache-2.0"
] | 3 | 2020-03-16T14:59:08.000Z | 2021-07-28T20:51:53.000Z | codeBase/CodeJam/2014/2014_Q_C/2014_Q_C.cpp | suren3141/codeBase | 10ed9a56aca33631dc8c419cd83859c19dd6ff09 | [
"Apache-2.0"
] | 2 | 2016-04-16T05:39:20.000Z | 2016-06-06T12:24:56.000Z | codeBase/CodeJam/2014/2014_Q_C/2014_Q_C.cpp | killerilaksha/codeBase | 91cbd950fc90066903e58311000784aeba4ffc02 | [
"Apache-2.0"
] | 18 | 2020-02-17T23:17:37.000Z | 2021-07-28T20:52:13.000Z | /*
Copyright Hackers' Club, University Of Peradeniya
Author : E/13/181 (Samurdhi Karunarathne)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at *
http://www.apache.org/licenses/LICENSE-2.0 *
Unless re... | 34.782979 | 99 | 0.363347 | [
"vector"
] |
7b9ff32945673b6a57e67252f2c5db4575c82b86 | 15,579 | cxx | C++ | EVE/EveDet/AliEveITSModuleStepper.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | EVE/EveDet/AliEveITSModuleStepper.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | EVE/EveDet/AliEveITSModuleStepper.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | // $Id$
// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
/**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notic... | 25.835821 | 101 | 0.591566 | [
"render"
] |
7ba598b37c075d6f076caee5857982ea801fbb86 | 4,602 | cpp | C++ | kmeans/kmeans_flex.cpp | oprecomp/flexfloat-benchmarks | 0acb1a53c57901e873ee7ba69e4f2bf9c2fbe348 | [
"Apache-2.0"
] | 2 | 2019-02-06T15:34:56.000Z | 2020-02-20T23:44:27.000Z | kmeans/kmeans_flex.cpp | oprecomp/flexfloat-benchmarks | 0acb1a53c57901e873ee7ba69e4f2bf9c2fbe348 | [
"Apache-2.0"
] | null | null | null | kmeans/kmeans_flex.cpp | oprecomp/flexfloat-benchmarks | 0acb1a53c57901e873ee7ba69e4f2bf9c2fbe348 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2018 - The OPRECOMP Project Consortium, Alma Mater Studiorum
Università di Bologna. 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://ww... | 30.68 | 202 | 0.619948 | [
"object"
] |
7baa3f0142172805c4a2ab9ac7b82d2d35eaf1f7 | 8,767 | cpp | C++ | json/json.cpp | LB--/json | 3ca71de40a7a8ab2b68fef652dd76424720b92aa | [
"Unlicense"
] | 1 | 2016-05-22T22:13:58.000Z | 2016-05-22T22:13:58.000Z | json/json.cpp | LB--/json | 3ca71de40a7a8ab2b68fef652dd76424720b92aa | [
"Unlicense"
] | 2 | 2016-05-14T03:59:21.000Z | 2016-10-11T22:19:44.000Z | json/json.cpp | LB--/json | 3ca71de40a7a8ab2b68fef652dd76424720b92aa | [
"Unlicense"
] | null | null | null | #include "json.hpp"
#include "LB/utf/utf.hpp"
#include <functional>
#include <iomanip>
#include <limits>
#include <sstream>
#include <utility>
namespace LB
{
namespace json
{
struct value::base
{
virtual ~base() noexcept = default;
friend bool operator==(base const &a, base const &b) noexcept
{
r... | 19.569196 | 93 | 0.496977 | [
"object"
] |
7baa516dfb08794040d2ca7dc132e708781cfe22 | 35,092 | cc | C++ | src/controller/controller.cc | dgolbourn/Metallic-Crow | 0f073312c67d3f0542cc40f23e94a018bd5e52c5 | [
"MIT"
] | null | null | null | src/controller/controller.cc | dgolbourn/Metallic-Crow | 0f073312c67d3f0542cc40f23e94a018bd5e52c5 | [
"MIT"
] | null | null | null | src/controller/controller.cc | dgolbourn/Metallic-Crow | 0f073312c67d3f0542cc40f23e94a018bd5e52c5 | [
"MIT"
] | null | null | null | #include "controller.h"
#include "bind.h"
#include "window.h"
#include "menu.h"
#include "script.h"
#include "signal.h"
#include <vector>
#include "saves.h"
#include <sstream>
#include <algorithm>
#include "sound.h"
#include "player.h"
namespace
{
enum class State : int
{
Start,
Chapter,
Load,
Pause,
Delete,
... | 25.318903 | 158 | 0.675054 | [
"render",
"vector"
] |
7baaf278786f0d97fbc26a6b914103ace2bfc6e9 | 218,484 | hpp | C++ | cisco-nx-os/ydk/models/cisco_nx_os/fragmented/Cisco_NX_OS_device_48.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | cisco-nx-os/ydk/models/cisco_nx_os/fragmented/Cisco_NX_OS_device_48.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | cisco-nx-os/ydk/models/cisco_nx_os/fragmented/Cisco_NX_OS_device_48.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z | #ifndef _CISCO_NX_OS_DEVICE_48_
#define _CISCO_NX_OS_DEVICE_48_
#include <memory>
#include <vector>
#include <string>
#include <ydk/types.hpp>
#include <ydk/errors.hpp>
#include "Cisco_NX_OS_device_0.hpp"
#include "Cisco_NX_OS_device_47.hpp"
namespace cisco_nx_os {
namespace Cisco_NX_OS_device {
class System::Segr... | 54.566434 | 226 | 0.704747 | [
"vector"
] |
7bac75ddd90f5976636c6980d1824ca19402cc4b | 4,978 | cc | C++ | src/Modules/Visualization/CreateTestingArrow.cc | kimjohn1/SCIRun | 62ae6cb632100371831530c755ef0b133fb5c978 | [
"MIT"
] | 92 | 2015-02-09T22:42:11.000Z | 2022-03-25T09:14:50.000Z | src/Modules/Visualization/CreateTestingArrow.cc | kimjohn1/SCIRun | 62ae6cb632100371831530c755ef0b133fb5c978 | [
"MIT"
] | 1,618 | 2015-01-05T19:39:13.000Z | 2022-03-27T20:28:45.000Z | src/Modules/Visualization/CreateTestingArrow.cc | kimjohn1/SCIRun | 62ae6cb632100371831530c755ef0b133fb5c978 | [
"MIT"
] | 64 | 2015-02-20T17:51:23.000Z | 2021-11-19T07:08:08.000Z | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, to any person obtaining a
copy of... | 32.116129 | 134 | 0.745882 | [
"mesh",
"geometry",
"vector",
"transform"
] |
7bad8c8b8ef5c5755e4e48be47bed6c6d0cf1776 | 3,066 | cc | C++ | kernel/krnl/abi/dtor.cc | foreverbell/BadAppleOS | 695e4de5f41cc64e0d6a1b147ab6d84d50b91416 | [
"MIT"
] | 52 | 2015-07-11T02:35:11.000Z | 2022-01-06T22:03:23.000Z | kernel/krnl/abi/dtor.cc | foreverbell/BadAppleOS | 695e4de5f41cc64e0d6a1b147ab6d84d50b91416 | [
"MIT"
] | null | null | null | kernel/krnl/abi/dtor.cc | foreverbell/BadAppleOS | 695e4de5f41cc64e0d6a1b147ab6d84d50b91416 | [
"MIT"
] | 3 | 2018-06-10T06:52:37.000Z | 2021-11-05T05:49:15.000Z | /* warning: this code is not carefully tested. */
#include <stdint.h>
#include <stdio.h>
#include <abi.h>
#include <panic.h>
#include <pair>
#include <vector>
#include <algorithm>
using std::vector;
using std::pair;
using std::make_pair;
using std::sort;
typedef void (* fn_ptr) (void *);
typedef pair<void *, int> at... | 21.291667 | 122 | 0.60274 | [
"vector"
] |
7bb74674a1c50e26a34a1545952b94b7c8d18666 | 107,000 | cpp | C++ | openconfig/ydk/models/openconfig/openconfig_transport_line_protection.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | openconfig/ydk/models/openconfig/openconfig_transport_line_protection.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | openconfig/ydk/models/openconfig/openconfig_transport_line_protection.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z |
#include <sstream>
#include <iostream>
#include <ydk/entity_util.hpp>
#include "bundle_info.hpp"
#include "generated_entity_lookup.hpp"
#include "openconfig_transport_line_protection.hpp"
using namespace ydk;
namespace openconfig {
namespace openconfig_transport_line_protection {
APSPATHS::APSPATHS()
: Identit... | 31.323185 | 228 | 0.689757 | [
"vector"
] |
7bbb8cf22be3fdf061ee13c673d4e3efe64d3f4d | 8,356 | cpp | C++ | hackathon/wenqi/BrainVesselCPR/BrainVesselCPR_plugin.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | hackathon/wenqi/BrainVesselCPR/BrainVesselCPR_plugin.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | hackathon/wenqi/BrainVesselCPR/BrainVesselCPR_plugin.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | /* BrainVesselCPR_plugin.cpp
* This is a plugin for Brain Vessel CPR in MRA&MRI image
* 2019-5-14 : by Wenqi Huang
*/
#include "BrainVesselCPR_plugin.h"
#include "BrainVesselCPR_filter.h"
#include "BrainVesselCPR_centerline.h"
#include "BrainVesselCPR_syncview.h"
#include "BrainVesselCPR_sampleplane.h"
void setWL... | 33.96748 | 172 | 0.64325 | [
"vector",
"3d"
] |
7bbcb5f0139b8dd6096d79cf873d4536879af6ad | 3,697 | cpp | C++ | src/playerloader.cpp | NicoleIsDead/Fortune-Tourney-Tool | 209517a4704a538c5f109055d754022e553ac80f | [
"MIT"
] | null | null | null | src/playerloader.cpp | NicoleIsDead/Fortune-Tourney-Tool | 209517a4704a538c5f109055d754022e553ac80f | [
"MIT"
] | null | null | null | src/playerloader.cpp | NicoleIsDead/Fortune-Tourney-Tool | 209517a4704a538c5f109055d754022e553ac80f | [
"MIT"
] | 1 | 2021-04-18T21:16:03.000Z | 2021-04-18T21:16:03.000Z | //MIT License
//Copyright (c) 2021 NicoleIsDead
//https://github.com/NicoleIsDead
// ---------------------------------------------------------------------------
// Includes
// ---------------------------------------------------------------------------
#include "playerloader.h"
#include "player.h"
#include "co... | 41.539326 | 139 | 0.621856 | [
"object"
] |
7bbfe659ec05eafa4a8a13ac7341fffb1c892437 | 745 | cpp | C++ | cpp-leetcode/leetcode476-number-complement_converrt_to_string.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | 45 | 2021-07-25T00:45:43.000Z | 2022-03-24T05:10:43.000Z | cpp-leetcode/leetcode476-number-complement_converrt_to_string.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | null | null | null | cpp-leetcode/leetcode476-number-complement_converrt_to_string.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | 15 | 2021-07-25T00:40:52.000Z | 2021-12-27T06:25:31.000Z | #include<vector>
#include<algorithm>
#include<iostream>
using namespace std;
class Solution {
public:
int findComplement(int num) {
string str = toReverseBinary(num);
return stoi(str, nullptr, 2); /* 从2进制串转十进制数, 第3个参数2表示二进制 */
}
string toReverseBinary(long n) /* 得到二进制数的补码字符串 */
... | 20.135135 | 71 | 0.514094 | [
"vector"
] |
7bc04fe4e7467e5893a9b3ff6141b63b1f0da8c1 | 1,207 | cpp | C++ | SPOJ/IDC1948.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | SPOJ/IDC1948.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | SPOJ/IDC1948.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <sstream>
#include <vector>
#include <iomanip>
#include <cmath>
using namespace std;
typedef long long LL;
typedef pair<int,int> pii;
#define MAX 10000
#define MOD 1000000007
int sieve[MAX],primes[MAX],k;
void make_sieve()
{
... | 18.014925 | 38 | 0.431649 | [
"vector"
] |
dcfae4d5c16ae0e9c3a24958775434c795841d08 | 2,787 | cpp | C++ | Arrays/Max_XOR_of_Two_Array.cpp | siddhi-244/CompetitiveProgrammingQuestionBank | 4c265d41b82a7d4370c14d367f78effa9ed95d3c | [
"MIT"
] | 931 | 2020-04-18T11:57:30.000Z | 2022-03-31T15:15:39.000Z | Arrays/Max_XOR_of_Two_Array.cpp | geekySapien/CompetitiveProgrammingQuestionBank | 9e84a88a85dbabd95207391967abde298ddc031d | [
"MIT"
] | 661 | 2020-12-13T04:31:48.000Z | 2022-03-15T19:11:54.000Z | Arrays/Max_XOR_of_Two_Array.cpp | geekySapien/CompetitiveProgrammingQuestionBank | 9e84a88a85dbabd95207391967abde298ddc031d | [
"MIT"
] | 351 | 2020-08-10T06:49:21.000Z | 2022-03-25T04:02:12.000Z | /*
Given an integer array nums, return the maximum result of nums[i] XOR nums[j],
where 0 ≤ i ≤ j < n.
*/
#include<iostream>
#include<vector>
using namespace std;
// Constructing a trie
struct trie {
trie *zero,*one;
};
//Building the trie
void insert(int num,trie *root) {
// Store the head
trie *ptr... | 23.820513 | 85 | 0.455328 | [
"vector"
] |
dcff56b40befda73ea0c8144e7b3af025978f852 | 1,464 | cc | C++ | Tree/PathSum2.cc | plantree/LeetCode | 0ac6734b6a4c6e826df15a3d2e43e8f8df92a510 | [
"MIT"
] | null | null | null | Tree/PathSum2.cc | plantree/LeetCode | 0ac6734b6a4c6e826df15a3d2e43e8f8df92a510 | [
"MIT"
] | null | null | null | Tree/PathSum2.cc | plantree/LeetCode | 0ac6734b6a4c6e826df15a3d2e43e8f8df92a510 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
};
TreeNode* createTree(vector<int> list, int start) {
if (list[start] == -1) {
return nullptr;
}
TreeN... | 22.181818 | 82 | 0.547131 | [
"vector"
] |
0d00f65c30e9808a2cc27c340bf4e06a2e21c4cd | 4,122 | hpp | C++ | interfaces/offscreen_render_target.hpp | PiotrBanuba/OEP-module | d60204b8f6c3738e6fb8b5c2ea657460397be774 | [
"MIT"
] | null | null | null | interfaces/offscreen_render_target.hpp | PiotrBanuba/OEP-module | d60204b8f6c3738e6fb8b5c2ea657460397be774 | [
"MIT"
] | 2 | 2022-03-16T13:01:29.000Z | 2022-03-16T14:06:16.000Z | interfaces/offscreen_render_target.hpp | PiotrBanuba/OEP-module | d60204b8f6c3738e6fb8b5c2ea657460397be774 | [
"MIT"
] | null | null | null | #pragma once
#include <interfaces/image_format.hpp>
#include <interfaces/pixel_buffer.hpp>
#include <interfaces/render_context.hpp>
namespace bnb::oep::interfaces
{
class offscreen_render_target;
}
using rendered_texture_t = void*;
using offscreen_render_target_sptr = std::shared_ptr<bnb::oep::interfaces::offscr... | 32.714286 | 111 | 0.613052 | [
"render"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.