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
776006786ef05280069cac7e53651fcf0e117be9
1,209
cpp
C++
test/unit-tests/video/render/renderer_handle_test.cpp
albin-johansson/Centurion
df211aab826a4cb38d744553456bc1478530d46e
[ "MIT" ]
14
2020-05-17T21:38:03.000Z
2020-11-21T00:16:25.000Z
test/unit-tests/video/render/renderer_handle_test.cpp
albin-johansson/Centurion
df211aab826a4cb38d744553456bc1478530d46e
[ "MIT" ]
70
2020-04-26T17:08:52.000Z
2020-11-21T17:34:03.000Z
test/unit-tests/video/render/renderer_handle_test.cpp
albin-johansson/Centurion
df211aab826a4cb38d744553456bc1478530d46e
[ "MIT" ]
null
null
null
#include <gtest/gtest.h> #include <iostream> // cout #include <memory> // unique_ptr #include "centurion/render.hpp" #include "centurion/window.hpp" class RendererHandleTest : public testing::Test { protected: [[maybe_unused]] static void SetUpTestSuite() { window = std::make_unique<cen::window>(); ...
21.589286
72
0.69727
[ "render" ]
7766b3216ec6d32968f245c78c563934b4bffa09
4,154
cpp
C++
roc_app/Managers/ConfigManager.cpp
SDraw/roc_engine
f38b38fc1ff8e48d5e0800941a2cf0d3818b4fcf
[ "MIT" ]
7
2020-11-24T16:10:11.000Z
2022-02-17T22:39:36.000Z
roc_app/Managers/ConfigManager.cpp
SDraw/roc_engine
f38b38fc1ff8e48d5e0800941a2cf0d3818b4fcf
[ "MIT" ]
null
null
null
roc_app/Managers/ConfigManager.cpp
SDraw/roc_engine
f38b38fc1ff8e48d5e0800941a2cf0d3818b4fcf
[ "MIT" ]
2
2020-11-24T16:10:12.000Z
2021-10-02T06:44:43.000Z
#include "stdafx.h" #include "Managers/ConfigManager.h" #include "Utils/EnumUtils.h" namespace ROC { const std::vector<std::string> g_configAttributes { "antialiasing", "dimension", "fullscreen", "logging", "fpslimit", "vsync", "vr", "module" }; enum ConfigAttribute : size_t { CA_Antialiasing = 0U, CA_D...
29.671429
117
0.51637
[ "vector" ]
7768a6eabc020a2410f32b6d97281c9362c51211
2,131
cpp
C++
dynamic_subsequence_timing.cpp
biancatoledo2/project4
aa0b7d51c059f4d3e00d04c39d7f0075c37871b2
[ "MIT" ]
null
null
null
dynamic_subsequence_timing.cpp
biancatoledo2/project4
aa0b7d51c059f4d3e00d04c39d7f0075c37871b2
[ "MIT" ]
null
null
null
dynamic_subsequence_timing.cpp
biancatoledo2/project4
aa0b7d51c059f4d3e00d04c39d7f0075c37871b2
[ "MIT" ]
null
null
null
/////////////////////////////////////////////////////////////////////////////// // dynamic_subsequence_timing.cpp // // Example code showing how to run each algorithm while measuring // elapsed times precisely. You should modify this program to gather // all of your experimental data. // ///////////////////////////////...
24.494253
79
0.554669
[ "vector" ]
7769095fc891b20427e7955c4373c66059a22bdd
5,774
cpp
C++
src/util/lua/extend/lthreadext.cpp
jie-meng/Util
edf197b61f8606c72fc8f3b0bdbb46b57187b2ff
[ "MIT" ]
6
2017-07-16T17:55:54.000Z
2021-01-06T15:40:49.000Z
src/util/lua/extend/lthreadext.cpp
joshua-meng/Util
edf197b61f8606c72fc8f3b0bdbb46b57187b2ff
[ "MIT" ]
30
2015-05-08T03:21:10.000Z
2017-05-07T12:37:06.000Z
src/util/lua/extend/lthreadext.cpp
joshua-meng/Util
edf197b61f8606c72fc8f3b0bdbb46b57187b2ff
[ "MIT" ]
2
2017-03-16T08:48:34.000Z
2017-06-20T10:56:19.000Z
#include "lthreadext.hpp" #include <vector> #include "util/luaextend.hpp" #include "util/thread.hpp" #include "util/any.hpp" namespace util { const std::string kThreadHandle = "Thread*"; const std::string kMutexHandle = "Mutex*"; const std::string kLockHandle = "Lock*"; static int sleep(lua_State* plua_state) { ...
24.158996
133
0.675961
[ "vector" ]
776c7dd30cc7ded92c5b7623b3ad634fe3311d2e
1,454
cpp
C++
source/basic/ColoredChar.cpp
davidxk/Magician
ef1063e6800c8ddc93b7c32d30c0b846faf3dd80
[ "MIT" ]
4
2017-09-25T03:41:02.000Z
2020-06-17T22:21:53.000Z
source/basic/ColoredChar.cpp
davidxk/Magician
ef1063e6800c8ddc93b7c32d30c0b846faf3dd80
[ "MIT" ]
null
null
null
source/basic/ColoredChar.cpp
davidxk/Magician
ef1063e6800c8ddc93b7c32d30c0b846faf3dd80
[ "MIT" ]
null
null
null
#include "basic/ColoredChar.h" ColoredChar::ColoredChar(char aCh, Color aForeColor, Color aBackColor): ch( aCh ), foreColor(aForeColor), backColor(aBackColor) { } void ColoredChar::setForeColor(Color foreColor) { this->foreColor = foreColor; } void ColoredChar::setBackColor(Color backColor) { this->backColor = ba...
22.030303
87
0.734525
[ "vector" ]
7771433fe05886cbfeaa84200968b8ef8adcf707
1,941
cpp
C++
src/cell-simulation/core/camera.cpp
firestack/cell-simulation
11eacc685afe7c283c1fc2ed6f8b312785f45f98
[ "MIT" ]
null
null
null
src/cell-simulation/core/camera.cpp
firestack/cell-simulation
11eacc685afe7c283c1fc2ed6f8b312785f45f98
[ "MIT" ]
null
null
null
src/cell-simulation/core/camera.cpp
firestack/cell-simulation
11eacc685afe7c283c1fc2ed6f8b312785f45f98
[ "MIT" ]
null
null
null
#include "camera.h" #include <SFML/Window/Keyboard.hpp> Camera::Camera() : m_mode(mode::Free), m_speed(250.0f), m_zoomSpeed(0.01f), m_location(0, 0), m_trackingEntity(0) { } void Camera::resize(const uint32 width, const uint32 height) { m_view.setSize(width, height); } void Camera::trackEnti...
24.56962
90
0.605358
[ "render" ]
7772fe597415fd309ef70459d08a729af91a9d7a
1,816
cpp
C++
src/IpReassemblyBuffer.cpp
whitearsenic/Kdd99-Feature-Extractor-Prebuilt
a6128bdbc81a1fbfd9bdf76586e70c562b59fa3a
[ "MIT" ]
99
2017-03-07T08:56:15.000Z
2022-03-29T05:29:43.000Z
src/IpReassemblyBuffer.cpp
cainsmile/kdd99_feature_extractor
f3d40e3f8df78a3ed7ccdbfabb1b763e9e4d87c0
[ "MIT" ]
19
2017-04-08T08:22:44.000Z
2021-11-09T03:05:28.000Z
src/IpReassemblyBuffer.cpp
cainsmile/kdd99_feature_extractor
f3d40e3f8df78a3ed7ccdbfabb1b763e9e4d87c0
[ "MIT" ]
46
2016-07-07T15:49:49.000Z
2022-03-15T21:57:28.000Z
#include "IpReassemblyBuffer.h" #include <assert.h> namespace FeatureExtractor { using namespace std; IpReassemblyBuffer::IpReassemblyBuffer() : datagram(nullptr), first_frag_ts(), last_frag_ts() , frame_count(0), total_length(0) { } IpReassemblyBuffer::~IpReassemblyBuffer() { // Datagram is returned by...
27.104478
92
0.721366
[ "object" ]
a55cabb48c246937b7f5f0ed0ce423e94350e007
40,688
cpp
C++
src/Sim/initialise.cpp
midas-isg/global-epidemic-simulator
00a481d20336ed1c8560d2ac7fabed3f634a0726
[ "Apache-2.0" ]
null
null
null
src/Sim/initialise.cpp
midas-isg/global-epidemic-simulator
00a481d20336ed1c8560d2ac7fabed3f634a0726
[ "Apache-2.0" ]
null
null
null
src/Sim/initialise.cpp
midas-isg/global-epidemic-simulator
00a481d20336ed1c8560d2ac7fabed3f634a0726
[ "Apache-2.0" ]
null
null
null
/* initialise.cpp, part of the Global Epidemic Simulation v1.0 BETA /* Read initial data and setup initial matrices /* /* Copyright 2012, MRC Centre for Outbreak Analysis and Modelling /* /* Licensed under the Apache License, Version 2.0 (the "License"); /* you may not use this file except in compliance with the Licen...
37.70899
217
0.605019
[ "vector" ]
a56f85b0210d9b4f35cb90e6447e07936973fb32
6,080
cpp
C++
released_plugins/v3d_plugins/neurontracing_neutube/src_neutube/neurolabi/gui/flyem/zintcuboidarray.cpp
zzhmark/vaa3d_tools
3ca418add85a59ac7e805d55a600b78330d7e53d
[ "MIT" ]
1
2021-12-27T19:14:03.000Z
2021-12-27T19:14:03.000Z
released_plugins/v3d_plugins/neurontracing_neutube/src_neutube/neurolabi/gui/flyem/zintcuboidarray.cpp
zzhmark/vaa3d_tools
3ca418add85a59ac7e805d55a600b78330d7e53d
[ "MIT" ]
1
2016-12-03T05:33:13.000Z
2016-12-03T05:33:13.000Z
released_plugins/v3d_plugins/neurontracing_neutube/src_neutube/neurolabi/gui/flyem/zintcuboidarray.cpp
zzhmark/vaa3d_tools
3ca418add85a59ac7e805d55a600b78330d7e53d
[ "MIT" ]
null
null
null
#include "zintcuboidarray.h" #include <iostream> #include <math.h> #include <algorithm> #include "zstring.h" #include "zcuboid.h" #include "zswctree.h" #include "swctreenode.h" using namespace std; FlyEm::ZIntCuboidArray::ZIntCuboidArray() { } void FlyEm::ZIntCuboidArray::append( int x, int y, int z, int width,...
23.117871
81
0.578125
[ "vector" ]
a5760ff15981b6b72cb1dc0d4c68556b5c06675b
10,374
cpp
C++
src/gamssymbol.cpp
GAMS-dev/gams-cpp
0e86b3a659865edd980ed37fada1453da1552786
[ "MIT" ]
3
2017-10-19T10:54:51.000Z
2020-07-02T09:32:34.000Z
src/gamssymbol.cpp
GAMS-dev/gams-cpp
0e86b3a659865edd980ed37fada1453da1552786
[ "MIT" ]
4
2017-07-24T08:51:10.000Z
2020-07-08T15:02:39.000Z
src/gamssymbol.cpp
GAMS-dev/gams-cpp
0e86b3a659865edd980ed37fada1453da1552786
[ "MIT" ]
1
2021-07-09T16:06:04.000Z
2021-07-09T16:06:04.000Z
/* * GAMS - General Algebraic Modeling System C++ API * * Copyright (c) 2017-2021 GAMS Software GmbH <support@gams.com> * Copyright (c) 2017-2021 GAMS Development Corp. <support@gams.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentat...
28.977654
128
0.719105
[ "vector" ]
a57769f341e8d7175b62fb41cd062aee55b700f2
4,817
cc
C++
src/ApiWrapper.cc
WishCore/wish-api-node
ef94177eed9a8f8599cf210edf52b921347f83fd
[ "Apache-2.0" ]
null
null
null
src/ApiWrapper.cc
WishCore/wish-api-node
ef94177eed9a8f8599cf210edf52b921347f83fd
[ "Apache-2.0" ]
1
2019-05-17T12:46:04.000Z
2019-05-17T12:46:04.000Z
src/ApiWrapper.cc
WishCore/wish-api-node
ef94177eed9a8f8599cf210edf52b921347f83fd
[ "Apache-2.0" ]
2
2018-08-07T16:01:43.000Z
2019-05-17T09:58:07.000Z
#include "ApiWrapper.h" #include "WishGlue.h" #include <iostream> using namespace std; using Nan::Get; using Nan::Callback; using Nan::MaybeLocal; using Nan::Utf8String; using v8::Local; using v8::Value; using v8::Object; using v8::String; using v8::Context; using v8::Isolate; using v8::Function; using v8::FunctionT...
32.328859
129
0.617812
[ "object" ]
a57f085e0b616799df6d302211f6f79f12d7f131
2,282
cpp
C++
codeforces/1202e.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
1
2020-04-04T14:56:12.000Z
2020-04-04T14:56:12.000Z
codeforces/1202e.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
null
null
null
codeforces/1202e.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; struct AhoCorasick { static const int N = 26; static const char A = 'a'; struct Node { int ch[N]; int fail, cnt; Node() { fill(ch, ch+N, 0); fail = 0; cnt = 0; } }; vector<Node> t; //...
22.594059
47
0.361525
[ "vector" ]
a58a5ec7dd514ca2cecd10a52518900bccfae761
7,756
hpp
C++
include/UnityEngine/Audio/AudioMixer.hpp
RedBrumbler/virtuoso-codegen
e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3
[ "Unlicense" ]
null
null
null
include/UnityEngine/Audio/AudioMixer.hpp
RedBrumbler/virtuoso-codegen
e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3
[ "Unlicense" ]
null
null
null
include/UnityEngine/Audio/AudioMixer.hpp
RedBrumbler/virtuoso-codegen
e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: UnityEngine.Object #include "UnityE...
60.59375
246
0.751676
[ "object", "vector" ]
a58cfadc525857c97e66cb5e816b33a2a848cbe6
5,472
cpp
C++
leetcode.com/0335 Self Crossing/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
1
2020-08-20T11:02:49.000Z
2020-08-20T11:02:49.000Z
leetcode.com/0335 Self Crossing/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
null
null
null
leetcode.com/0335 Self Crossing/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
1
2022-01-01T23:23:13.000Z
2022-01-01T23:23:13.000Z
#include <iostream> #include <vector> #include <algorithm> using namespace std; struct Point { int x, y; Point(int x_, int y_): x(x_), y(y_) {} int operator-(const Point& other) { return x - other.x + y - other.y; } }; class Solution { private: int n; public: bool isSelfCrossing(vect...
34.632911
119
0.338999
[ "vector" ]
a596a13d5ab1c92846e554bb3c500f066c28fe40
6,042
cpp
C++
Graphics/dispmap/distance.cpp
Solidstatewater/Anubis-Engine
d2720167c0d5306d4d12a027dc31686b5cbb0f18
[ "BSD-2-Clause" ]
2
2017-10-29T06:43:05.000Z
2020-03-27T10:27:07.000Z
Graphics/dispmap/distance.cpp
Solidstatewater/Anubis-Engine
d2720167c0d5306d4d12a027dc31686b5cbb0f18
[ "BSD-2-Clause" ]
null
null
null
Graphics/dispmap/distance.cpp
Solidstatewater/Anubis-Engine
d2720167c0d5306d4d12a027dc31686b5cbb0f18
[ "BSD-2-Clause" ]
5
2016-02-06T11:01:51.000Z
2019-03-18T13:56:00.000Z
/* Copyright (C) 2005, William Donnelly (wdonnelly@uwaterloo.ca) and Stefanus Du Toit (sjdutoit@cgl.uwaterloo.ca) This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. ...
30.059701
81
0.493214
[ "3d" ]
a599763c4284dc5d82b4d32cb905bdf6743d2440
997
cc
C++
动态规划/UVA-12186.cc
OFShare/Algorithm-challenger
43336871a5e48f8804d6e737c813d9d4c0dc2731
[ "MIT" ]
67
2019-07-14T05:38:41.000Z
2021-12-23T11:52:51.000Z
动态规划/UVA-12186.cc
OFShare/Algorithm-challenger
43336871a5e48f8804d6e737c813d9d4c0dc2731
[ "MIT" ]
null
null
null
动态规划/UVA-12186.cc
OFShare/Algorithm-challenger
43336871a5e48f8804d6e737c813d9d4c0dc2731
[ "MIT" ]
12
2020-01-16T10:48:01.000Z
2021-06-11T16:49:04.000Z
// // Created by OFShare on 2019-10-14 // #include <bits/stdc++.h> const int maxn = 1e5 + 5; int n, T; // sons[i]: 记录结点i的孩子结点都有谁 std::vector<int> sons[maxn]; // 以结点src作为根的子树, 结点src向上发起请愿书最少需要多个工人 int dfs(int src) { // 递归的边界 if (sons[src].size() == 0) return 1; std::vector<int> vec; for (int i...
21.212766
55
0.457372
[ "vector" ]
a5a260c5f6d0be3b8403fda3f38a96eea8a01e13
23,123
cpp
C++
src/nnfusion/engine/pass/graph/bertfusion_optimizer/attention_fusion_optimizer.cpp
Cjkkkk/nnfusion
7ee61dfdd66fbf67eb178fcc5cfa1cddb99b3c13
[ "MIT" ]
1
2021-07-06T02:02:42.000Z
2021-07-06T02:02:42.000Z
src/nnfusion/engine/pass/graph/bertfusion_optimizer/attention_fusion_optimizer.cpp
QPC-database/nnfusion
99ada47c50f355ca278001f11bc752d1c7abcee2
[ "MIT" ]
null
null
null
src/nnfusion/engine/pass/graph/bertfusion_optimizer/attention_fusion_optimizer.cpp
QPC-database/nnfusion
99ada47c50f355ca278001f11bc752d1c7abcee2
[ "MIT" ]
null
null
null
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "attention_fusion_optimizer.hpp" using namespace nnfusion; using namespace nnfusion::graph; using namespace nnfusion::pass::graph; bool AttentionFusionOptimizer::CheckStartingNode(std::shared_ptr<nnfusion::graph::GNode> node) { /...
40.925664
98
0.566406
[ "shape", "vector" ]
a5a44b080552fd292321746f0fc7b8535a3dfc9e
8,273
cpp
C++
exotations/dynamics_solvers/exotica_quadrotor_dynamics_solver/src/quadrotor_dynamics_solver.cpp
maxspahn/exotica
f748a5860939b870ab522a1bd553d2fa0da56f8e
[ "BSD-3-Clause" ]
130
2018-03-12T11:00:55.000Z
2022-02-21T02:41:28.000Z
exotations/dynamics_solvers/exotica_quadrotor_dynamics_solver/src/quadrotor_dynamics_solver.cpp
maxspahn/exotica
f748a5860939b870ab522a1bd553d2fa0da56f8e
[ "BSD-3-Clause" ]
349
2017-09-14T00:42:33.000Z
2022-03-29T13:51:04.000Z
exotations/dynamics_solvers/exotica_quadrotor_dynamics_solver/src/quadrotor_dynamics_solver.cpp
maxspahn/exotica
f748a5860939b870ab522a1bd553d2fa0da56f8e
[ "BSD-3-Clause" ]
48
2017-10-04T15:50:42.000Z
2022-02-10T05:03:39.000Z
// // Copyright (c) 2019, Wolfgang Merkt // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of cond...
43.772487
322
0.621056
[ "model" ]
a5bf8c4bb0febe29f1e9ad4ece61861b37cce190
2,088
hpp
C++
src/util/Container.hpp
Person-93/aima-cpp
08d062dcb971edeaddb9a10083cf6da5a1b869f7
[ "MIT" ]
null
null
null
src/util/Container.hpp
Person-93/aima-cpp
08d062dcb971edeaddb9a10083cf6da5a1b869f7
[ "MIT" ]
null
null
null
src/util/Container.hpp
Person-93/aima-cpp
08d062dcb971edeaddb9a10083cf6da5a1b869f7
[ "MIT" ]
null
null
null
#pragma once #include <utility> #include <vector> namespace aima::util { template< typename T > class Container { public: using Storage = std::vector<T>; using value_type = typename Storage::value_type; using allocator_type = typename Storage::all...
36.631579
115
0.604885
[ "vector" ]
a5c1bc4f87e4c4be7924f08e6429553d7ac1cc89
962
cpp
C++
aws-cpp-sdk-ssm/source/model/S3OutputUrl.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2022-02-10T08:06:54.000Z
2022-02-10T08:06:54.000Z
aws-cpp-sdk-ssm/source/model/S3OutputUrl.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2021-10-14T16:57:00.000Z
2021-10-18T10:47:24.000Z
aws-cpp-sdk-ssm/source/model/S3OutputUrl.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-11-09T12:02:58.000Z
2021-11-09T12:02:58.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/ssm/model/S3OutputUrl.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace SSM...
16.033333
69
0.713098
[ "model" ]
a5c3d09450ceb53a82b20ca407e81bc3667e94e6
3,072
cpp
C++
lib/libcpp/Mesh/interfacemeshunitsmap.cpp
beckerrh/simfemsrc
d857eb6f6f8627412d4f9d89a871834c756537db
[ "MIT" ]
null
null
null
lib/libcpp/Mesh/interfacemeshunitsmap.cpp
beckerrh/simfemsrc
d857eb6f6f8627412d4f9d89a871834c756537db
[ "MIT" ]
1
2019-01-31T10:59:11.000Z
2019-01-31T10:59:11.000Z
lib/libcpp/Mesh/interfacemeshunitsmap.cpp
beckerrh/simfemsrc
d857eb6f6f8627412d4f9d89a871834c756537db
[ "MIT" ]
null
null
null
#include "Alat/sparsitypattern.hpp" #include "Mesh/interfacemeshunitsmap.hpp" #include <cassert> #include <mpi.h> using namespace mesh; /*--------------------------------------------------------------------------*/ InterfaceMeshUnitsMap::~InterfaceMeshUnitsMap() {} InterfaceMeshUnitsMap::InterfaceMeshUnitsMap(): ...
43.885714
178
0.684896
[ "mesh" ]
a5cb642ba7205462265f3b2bd6b937ae7e97813a
1,185
cpp
C++
Viewer/mapmanager.cpp
MNXANL/SRGGE-MIRI
a3429074745ebef63b516f7d32a3de0fa5823651
[ "MIT" ]
null
null
null
Viewer/mapmanager.cpp
MNXANL/SRGGE-MIRI
a3429074745ebef63b516f7d32a3de0fa5823651
[ "MIT" ]
null
null
null
Viewer/mapmanager.cpp
MNXANL/SRGGE-MIRI
a3429074745ebef63b516f7d32a3de0fa5823651
[ "MIT" ]
null
null
null
#include "mapmanager.h" mapManager::mapManager() { } void mapManager::loadMap( const std::string filename ) { /* std::ifstream fin; fin.open(filename.c_str(), std::ios_base::in | std::ios_base::binary); if (!fin.is_open() || !fin.good()) return false; int vertices = 0, faces = 0; ...
22.358491
82
0.576371
[ "mesh" ]
a5d0db84180c653cc7ad02a8707afc1d27267be5
2,017
hpp
C++
include/natalie/sexp_value.hpp
alimpfard/natalie
f161e34e63749cd7ed16148d25b010a71cd174d8
[ "MIT" ]
1
2021-11-17T22:01:36.000Z
2021-11-17T22:01:36.000Z
include/natalie/sexp_value.hpp
jcs/natalie
36dae5954b80be2af107840de2b1c76b69bf6ac0
[ "MIT" ]
null
null
null
include/natalie/sexp_value.hpp
jcs/natalie
36dae5954b80be2af107840de2b1c76b69bf6ac0
[ "MIT" ]
null
null
null
#pragma once #include "natalie.hpp" #include "natalie/node.hpp" namespace Natalie { struct SexpValue : ArrayValue { SexpValue(Env *env, Node *node, std::initializer_list<Value *> list) : ArrayValue { env, list } , m_file { node->file() } , m_line { node->line() } , m_column { node...
29.231884
88
0.536936
[ "object" ]
777a52ff2811b701d388f414789b294ebf9e6670
553
cpp
C++
leet/ac/0070.climbing-stairs.cpp
vitorgt/problem-solving
11fa59de808f7a113c08454b4aca68b01410892e
[ "MIT" ]
null
null
null
leet/ac/0070.climbing-stairs.cpp
vitorgt/problem-solving
11fa59de808f7a113c08454b4aca68b01410892e
[ "MIT" ]
null
null
null
leet/ac/0070.climbing-stairs.cpp
vitorgt/problem-solving
11fa59de808f7a113c08454b4aca68b01410892e
[ "MIT" ]
null
null
null
class Solution { public: int climbStairs(int n) { if (n <= 3) return n; int n0 = 2, n1 = 3, n2 = 5; for (int i = 3; i < n; i++) { n2 = n1 + n0; n0 = n1; n1 = n2; } return n2; } }; class SolutionB { public: int climb...
19.068966
42
0.345389
[ "vector" ]
77808197d8c0f7d047c29fe3c606e794328fd5ab
2,454
cpp
C++
978_d.cpp
onexmaster/cp
b78b0f1e586d6977d86c97b32f48fed33f1469af
[ "Apache-2.0", "MIT" ]
null
null
null
978_d.cpp
onexmaster/cp
b78b0f1e586d6977d86c97b32f48fed33f1469af
[ "Apache-2.0", "MIT" ]
null
null
null
978_d.cpp
onexmaster/cp
b78b0f1e586d6977d86c97b32f48fed33f1469af
[ "Apache-2.0", "MIT" ]
null
null
null
// Created by Tanuj Jain #include<bits/stdc++.h> #include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define pb push_back #define mp make_pair typedef long long ll; typedef pair<int,int> pii; template<class T> using oset=tree<T, null_typ...
22.934579
106
0.55053
[ "vector" ]
7783582ead88be35a5dacbb78a7369d1ba4362e9
17,591
cpp
C++
src/ExecWin32.cpp
bmharper/tundra
8de456ba8dd9a3d873bfb8bd7fa2de39173a13d4
[ "MIT" ]
null
null
null
src/ExecWin32.cpp
bmharper/tundra
8de456ba8dd9a3d873bfb8bd7fa2de39173a13d4
[ "MIT" ]
null
null
null
src/ExecWin32.cpp
bmharper/tundra
8de456ba8dd9a3d873bfb8bd7fa2de39173a13d4
[ "MIT" ]
null
null
null
/* exec-win32.c -- Windows subprocess handling * * This module is complicated due to how Win32 handles child I/O and because * its command processor cannot handle long command lines, requiring tools to * support so-called "response files" which are basically just the contents of * the command line, but written to ...
29.318333
149
0.641919
[ "object" ]
7784effeda69316e980cb197d29f8445bc3b6878
13,162
cpp
C++
src/GafferTest/ContextTest.cpp
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
561
2016-10-18T04:30:48.000Z
2022-03-30T06:52:04.000Z
src/GafferTest/ContextTest.cpp
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
1,828
2016-10-14T19:01:46.000Z
2022-03-30T16:07:19.000Z
src/GafferTest/ContextTest.cpp
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
120
2016-10-18T15:19:13.000Z
2021-12-20T16:28:23.000Z
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2014-2015, Image Engine Design 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: // // ...
32.66005
160
0.66806
[ "vector" ]
778d4504c84253f1d91e8233789034c291846b21
2,626
hpp
C++
src/EventSystem/Event.hpp
pjlapinski/ConcreteEngine
09265563f3cc49b5f8de5337a9f7fa27e35ddb02
[ "MIT" ]
null
null
null
src/EventSystem/Event.hpp
pjlapinski/ConcreteEngine
09265563f3cc49b5f8de5337a9f7fa27e35ddb02
[ "MIT" ]
null
null
null
src/EventSystem/Event.hpp
pjlapinski/ConcreteEngine
09265563f3cc49b5f8de5337a9f7fa27e35ddb02
[ "MIT" ]
null
null
null
#include <algorithm> #include <functional> #include <memory> #include <vector> #pragma once namespace ConcreteEngine::EventSystem { /** An event that aggregates callbacks and allows them to be fired all at once */ template <typename... Ts> class Event { using CallbackPointer = std::shared_ptr<std:...
33.240506
90
0.559025
[ "vector" ]
779465417c9fa2d6919e9028301d5cf005b72e8e
3,814
hpp
C++
include/detail/Field.hpp
GPMueller/mwe-expression-template
05c6edec252c7aca29707321f96ecc0a57100275
[ "MIT" ]
1
2017-12-24T13:36:23.000Z
2017-12-24T13:36:23.000Z
include/detail/Field.hpp
GPMueller/mwe-expression-template
05c6edec252c7aca29707321f96ecc0a57100275
[ "MIT" ]
null
null
null
include/detail/Field.hpp
GPMueller/mwe-expression-template
05c6edec252c7aca29707321f96ecc0a57100275
[ "MIT" ]
null
null
null
#pragma once #include <cassert> #include <vector> #include <detail/Typedefs.hpp> namespace FieldMath::detail { template<typename T, typename Container = std::vector<T>> class Field { Container _container; public: // Field with initial size Field(const std::size_t n) : _conta...
33.752212
115
0.504457
[ "vector" ]
77970b23d8316f4cad9f04bd2e934e6e058e9f69
11,685
cpp
C++
XivAlexanderCommon/Sqex_Sqpack_Reader.cpp
ddc/XivAlexander
8371d70e42c64cd082d90fc1ca102b687c9d3899
[ "Apache-2.0" ]
null
null
null
XivAlexanderCommon/Sqex_Sqpack_Reader.cpp
ddc/XivAlexander
8371d70e42c64cd082d90fc1ca102b687c9d3899
[ "Apache-2.0" ]
null
null
null
XivAlexanderCommon/Sqex_Sqpack_Reader.cpp
ddc/XivAlexander
8371d70e42c64cd082d90fc1ca102b687c9d3899
[ "Apache-2.0" ]
null
null
null
#include "pch.h" #include "Sqex_Sqpack_Reader.h" Sqex::Sqpack::Reader::SqDataEntry::SqDataEntry(const SqIndex::FileSegmentEntry& entry) : Index(entry) , Offset(entry.Locator.Offset()) , DataFileIndex(entry.Locator.Index()) { } Sqex::Sqpack::Reader::SqDataEntry::SqDataEntry(const SqIndex::FileSegmentEntry2& entry) ...
39.610169
189
0.743945
[ "vector" ]
779a9cd09cae6f66acecde74983fffb0abc21470
5,914
cpp
C++
rdf3x/src/rts/Scheduler.cpp
dkw-aau/trident-clone
18f896db2be05870069ae7b3aa6b4837c74fff0f
[ "Apache-2.0" ]
40
2015-02-17T03:27:19.000Z
2022-03-24T15:17:38.000Z
rdf3x/src/rts/Scheduler.cpp
dkw-aau/trident-clone
18f896db2be05870069ae7b3aa6b4837c74fff0f
[ "Apache-2.0" ]
5
2020-07-06T22:50:04.000Z
2022-03-17T10:34:15.000Z
rdf3x/src/rts/Scheduler.cpp
dkw-aau/trident-clone
18f896db2be05870069ae7b3aa6b4837c74fff0f
[ "Apache-2.0" ]
15
2015-01-15T20:39:48.000Z
2020-11-11T03:07:11.000Z
#include "rts/operator/Scheduler.hpp" #include "rts/operator/Operator.hpp" #include "infra/osdep/Thread.hpp" #include <cstdlib> //--------------------------------------------------------------------------- using namespace std; //--------------------------------------------------------------------------- Scheduler::Asyn...
32.31694
127
0.55766
[ "vector" ]
77a3fadc7279b80878edf1012cfa735d77b4f4fc
2,150
cpp
C++
src/ip_to_binary.cpp
davidchall/ipaddress
3a2a84e245eaf73aadfe0bf3692af27a622bc220
[ "MIT" ]
23
2020-03-06T01:26:49.000Z
2022-03-17T11:09:58.000Z
src/ip_to_binary.cpp
davidchall/ipaddress
3a2a84e245eaf73aadfe0bf3692af27a622bc220
[ "MIT" ]
41
2020-02-09T18:34:09.000Z
2022-01-14T05:18:07.000Z
src/ip_to_binary.cpp
davidchall/ipaddress
3a2a84e245eaf73aadfe0bf3692af27a622bc220
[ "MIT" ]
2
2020-03-12T14:45:37.000Z
2020-04-08T12:43:11.000Z
#include <Rcpp.h> #include <bitset> #include <ipaddress.h> #include "warn.h" using namespace Rcpp; using namespace ipaddress; std::string encode_binary(const IpAddress &input) { std::string output; output.reserve(input.n_bits()); for (auto it = input.begin(); it != input.end(); ++it) { std::bitset<8> bits...
24.157303
79
0.626977
[ "vector" ]
77a717e1e3504f4c3ffbcfe8b4c8a257cff369ad
13,735
cpp
C++
tools/mayaexp/meskin.cpp
Caprica666/vixen
b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d
[ "BSD-2-Clause" ]
1
2019-02-13T15:39:56.000Z
2019-02-13T15:39:56.000Z
tools/mayaexp/meskin.cpp
Caprica666/vixen
b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d
[ "BSD-2-Clause" ]
null
null
null
tools/mayaexp/meskin.cpp
Caprica666/vixen
b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d
[ "BSD-2-Clause" ]
2
2017-11-09T12:06:41.000Z
2019-02-13T15:40:02.000Z
#include "vix_all.h" #include <maya/MFnAttribute.h> #include <maya/MFnDagNode.h> #include <maya/MAnimUtil.h> #include <maya/MFnWeightGeometryFilter.h> #include <maya/MFnGeometryFilter.h> #include <maya/MFnSkinCluster.h> #include <maya/MFnBlendShapeDeformer.h> #include <maya/MItSelectionList.h> #include <maya/MFnSingleI...
26.161905
154
0.661959
[ "mesh", "geometry", "object", "shape", "model" ]
77afd4a8aecaf09dd939439468ca2f2fb7147a68
442
cpp
C++
removeduplicatessortedarray.cpp
ChuckCottrill/leet-code
ccb5a3c7d1da8120091f4403f6a91b861f1975ac
[ "BSD-2-Clause" ]
null
null
null
removeduplicatessortedarray.cpp
ChuckCottrill/leet-code
ccb5a3c7d1da8120091f4403f6a91b861f1975ac
[ "BSD-2-Clause" ]
null
null
null
removeduplicatessortedarray.cpp
ChuckCottrill/leet-code
ccb5a3c7d1da8120091f4403f6a91b861f1975ac
[ "BSD-2-Clause" ]
null
null
null
class Solution { public: int removeDuplicates(vector<int>& nums) { if (nums.size() < 2) { return nums.size(); } auto it = nums.begin(); auto prev = *it; ++it; for( ; it != nums.end(); ) { if ( *it == prev) { nums.erase(it); } ...
20.090909
52
0.361991
[ "vector" ]
77b3f328811c67d6361d8b1e2de855c1087d83a3
32,851
cpp
C++
test/config/src/settingsNodeTest.cpp
exec-helper/source
8869989a59b352f340406ae8859958bf343be776
[ "BSD-3-Clause" ]
1
2020-01-28T13:24:30.000Z
2020-01-28T13:24:30.000Z
test/config/src/settingsNodeTest.cpp
exec-helper/source
8869989a59b352f340406ae8859958bf343be776
[ "BSD-3-Clause" ]
null
null
null
test/config/src/settingsNodeTest.cpp
exec-helper/source
8869989a59b352f340406ae8859958bf343be776
[ "BSD-3-Clause" ]
1
2018-07-03T11:11:19.000Z
2018-07-03T11:11:19.000Z
#include <catch.hpp> #include <iostream> #include <optional> #include <sstream> #include <string> #include <utility> #include <vector> #include "config/settingsNode.h" #include "config/generators.h" #include "unittest/catch.h" #include "unittest/rapidcheck.h" #include "utils/utils.h" using std::move; using std::null...
40.606922
107
0.529177
[ "object", "vector" ]
77b7963a7bba031d7ace1a7200163076519fe6cd
468
cpp
C++
chapter-7/7.5.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
chapter-7/7.5.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
chapter-7/7.5.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
#ifndef PERSON_H #define PERSON_H #include <string> using std::string; struct Person { string get_name() const {return name;} string get_address() const {return address;} /* * shuld be const member functions * which makes them more flexible * for both functions just return but not modify the member of...
21.272727
86
0.713675
[ "object" ]
77c87831692023e82ead36d5a7103f6f3ff41f7d
2,301
hpp
C++
libs/core/include/fcppt/array/object_decl.hpp
freundlich/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
13
2015-02-21T18:35:14.000Z
2019-12-29T14:08:29.000Z
libs/core/include/fcppt/array/object_decl.hpp
cpreh/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
5
2016-08-27T07:35:47.000Z
2019-04-21T10:55:34.000Z
libs/core/include/fcppt/array/object_decl.hpp
freundlich/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
8
2015-01-10T09:22:37.000Z
2019-12-01T08:31:12.000Z
// Copyright Carl Philipp Reh 2009 - 2021. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef FCPPT_ARRAY_OBJECT_DECL_HPP_INCLUDED #define FCPPT_ARRAY_OBJECT_DECL_HPP_INCLUDED #include...
30.276316
69
0.744894
[ "object" ]
77cabcf47740c7a23605e45ff2e41e6bc50649c1
2,480
cpp
C++
JPetManager/JPetManager.cpp
kamilrakoczy/j-pet-framework
4a0761bc8996dd5076575e996003c11f4110db44
[ "Apache-2.0" ]
null
null
null
JPetManager/JPetManager.cpp
kamilrakoczy/j-pet-framework
4a0761bc8996dd5076575e996003c11f4110db44
[ "Apache-2.0" ]
1
2018-02-10T18:04:38.000Z
2018-02-10T18:20:09.000Z
JPetManager/JPetManager.cpp
kamilrakoczy/j-pet-framework
4a0761bc8996dd5076575e996003c11f4110db44
[ "Apache-2.0" ]
null
null
null
/** * @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may find a copy of the License in the LICENCE file. * * Unless required by applicable la...
26.382979
104
0.679032
[ "vector" ]
77d2f29684386d60a71ff2174f694dde8a029a70
3,575
cpp
C++
GameEngineLib/Components/AbsDrawableComponent.cpp
achlubek/CosmosGame
d5270d9d972e175588341bdb94e2439e538de018
[ "MIT" ]
14
2017-12-17T15:31:28.000Z
2019-03-31T06:11:41.000Z
GameEngineLib/Components/AbsDrawableComponent.cpp
achlubek/CosmosGame
d5270d9d972e175588341bdb94e2439e538de018
[ "MIT" ]
null
null
null
GameEngineLib/Components/AbsDrawableComponent.cpp
achlubek/CosmosGame
d5270d9d972e175588341bdb94e2439e538de018
[ "MIT" ]
1
2019-03-12T21:05:39.000Z
2019-03-12T21:05:39.000Z
#include "stdafx.h" #include "AbsDrawableComponent.h" AbsDrawableComponent::AbsDrawableComponent(Model3d* imodel, std::string modelName, glm::dvec3 irelativePosition, glm::dquat irelativeOrientation) : AbsComponent(ComponentTypes::SimpleDrawable), model(imodel), modelName(modelName), relativePosition(irelativePos...
37.239583
167
0.761399
[ "model" ]
77d42dc6436da57f5357a39ed55255603d558a5a
1,649
cpp
C++
examples/scene/sort_by_distance.cpp
AlloSphere-Research-Group/al_lib
94d23fe71b79d3464a658f16ca34c2040e6d7334
[ "BSD-3-Clause" ]
26
2018-11-05T23:29:43.000Z
2022-03-17T18:16:49.000Z
examples/scene/sort_by_distance.cpp
yangevelyn/allolib
1654be795b6515c058eb8243751b903a2aa6efdc
[ "BSD-3-Clause" ]
41
2018-01-19T18:34:41.000Z
2022-01-27T23:52:01.000Z
examples/scene/sort_by_distance.cpp
yangevelyn/allolib
1654be795b6515c058eb8243751b903a2aa6efdc
[ "BSD-3-Clause" ]
11
2018-01-05T16:42:19.000Z
2022-01-27T22:08:01.000Z
#include "Gamma/Oscillator.h" #include "al/app/al_App.hpp" #include "al/graphics/al_Shapes.hpp" #include "al/math/al_Random.hpp" #include "al/scene/al_DynamicScene.hpp" using namespace al; struct MyVoice : public PositionedVoice { Mesh mesh; gam::Sine<> osc; Color c; void init() { addDisc(mesh); //...
19.630952
68
0.597938
[ "mesh", "render" ]
77d5224e166adf1024fc39b329ed8ea8152989ae
2,179
cpp
C++
convert_points.cpp
tinic/capn-blinky
8c47b3198957bc785a75032ed3bbd066cc23cafa
[ "MIT" ]
1
2021-12-24T10:07:21.000Z
2021-12-24T10:07:21.000Z
convert_points.cpp
tinic/capn-blinky
8c47b3198957bc785a75032ed3bbd066cc23cafa
[ "MIT" ]
null
null
null
convert_points.cpp
tinic/capn-blinky
8c47b3198957bc785a75032ed3bbd066cc23cafa
[ "MIT" ]
null
null
null
#include <stdint.h> #include <algorithm> #include <iostream> #include <stdio.h> #include <math.h> #include <vector> #include <tuple> constexpr size_t ledsN = 12; double array[ledsN*2] = { 19.3750,53.5940, // 0 U12 20.9250,61.2250, // 1 U11 29.9010,61.2000, // 2 U10 31.4960,53.8480, // 3 U9 38...
27.582278
118
0.493804
[ "vector" ]
77dfb855147782db21afe90ba04eb457ff264256
1,351
hpp
C++
src/file/sln/manifest.hpp
moonshadow565/bincollector
e627bd858aa6da4c4fccf7f671e00d400a6576cd
[ "MIT" ]
null
null
null
src/file/sln/manifest.hpp
moonshadow565/bincollector
e627bd858aa6da4c4fccf7f671e00d400a6576cd
[ "MIT" ]
null
null
null
src/file/sln/manifest.hpp
moonshadow565/bincollector
e627bd858aa6da4c4fccf7f671e00d400a6576cd
[ "MIT" ]
1
2021-04-25T09:46:07.000Z
2021-04-25T09:46:07.000Z
#pragma once #include <compare> #include <cinttypes> #include <string> #include <span> #include <vector> #include <map> #include <set> #include <fmt/format.h> namespace sln { struct SLNProjectEntry { std::u8string version = {}; std::size_t unknown1 = {}; std::size_t unknown2 = {}; }; ...
25.490566
76
0.542561
[ "vector" ]
77e1fce431eb79638c419403cc5a89d80a92eb63
4,172
hpp
C++
mjolnir/forcefield/external/ImplicitMembranePotential.hpp
yutakasi634/Mjolnir
ab7a29a47f994111e8b889311c44487463f02116
[ "MIT" ]
12
2017-02-01T08:28:38.000Z
2018-08-25T15:47:51.000Z
mjolnir/forcefield/external/ImplicitMembranePotential.hpp
Mjolnir-MD/Mjolnir
043df4080720837042c6b67a5495ecae198bc2b3
[ "MIT" ]
60
2019-01-14T08:11:33.000Z
2021-07-29T08:26:36.000Z
mjolnir/forcefield/external/ImplicitMembranePotential.hpp
yutakasi634/Mjolnir
ab7a29a47f994111e8b889311c44487463f02116
[ "MIT" ]
8
2019-01-13T11:03:31.000Z
2021-08-01T11:38:00.000Z
#ifndef MJOLNIR_POTENTIAL_EXTERNAL_IMPLICIT_MEMBRANE_POTENTIAL_HPP #define MJOLNIR_POTENTIAL_EXTERNAL_IMPLICIT_MEMBRANE_POTENTIAL_HPP #include <mjolnir/core/System.hpp> #include <cmath> namespace mjolnir { /* Implicit membrane potential * * V(z) = k * tanh(bend * (|z| -...
36.920354
84
0.594199
[ "vector" ]
af81ae8d60ff98d9c04e5ddb40cbe5f0e60893dc
8,727
cpp
C++
src/dynamics.cpp
wztzjhn/Kondo
aced2a7c9ec7be07f4de26fdf72d24bbbb82a005
[ "Apache-2.0" ]
2
2019-03-12T01:22:45.000Z
2019-03-12T03:20:05.000Z
src/dynamics.cpp
wztzjhn/Kondo
aced2a7c9ec7be07f4de26fdf72d24bbbb82a005
[ "Apache-2.0" ]
null
null
null
src/dynamics.cpp
wztzjhn/Kondo
aced2a7c9ec7be07f4de26fdf72d24bbbb82a005
[ "Apache-2.0" ]
2
2019-03-12T01:22:45.000Z
2019-03-12T02:47:18.000Z
#include "kondo.h" #include <cassert> // project vector p onto plane that is normal to x vec3 project_tangent(vec3 x, vec3 p) { return p - x * (p.dot(x) / x.norm2()); } vec3 gaussian_vec3(fkpm::RNG& rng) { static std::normal_distribution<double> dist; return { dist(rng), dist(rng), dist(rng) }; } class...
33.056818
101
0.482984
[ "vector", "model" ]
af8eca3031ca9d5e344599767288648b26908d82
24,761
cc
C++
engine/rendering/compositing/triple_buffered_renderer.cc
pikacuh/ink
08c2abb5a40a3c75fbaa636d39e572dea3547960
[ "Apache-2.0" ]
1
2021-03-02T22:22:38.000Z
2021-03-02T22:22:38.000Z
engine/rendering/compositing/triple_buffered_renderer.cc
pikacuh/ink
08c2abb5a40a3c75fbaa636d39e572dea3547960
[ "Apache-2.0" ]
null
null
null
engine/rendering/compositing/triple_buffered_renderer.cc
pikacuh/ink
08c2abb5a40a3c75fbaa636d39e572dea3547960
[ "Apache-2.0" ]
1
2021-03-02T22:23:12.000Z
2021-03-02T22:23:12.000Z
// Copyright 2018 Google LLC // // 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 ...
37.403323
80
0.695812
[ "mesh", "geometry", "render", "vector" ]
af8fb885168a50b9c35fc0f459d4efc0b6f37a64
953
cpp
C++
ServerExample/Metal.cpp
alwayssmile11a1/MultiplayerGameServer
cd4227ecc5fe1b44d427bcbd76c050a8130d2200
[ "MIT" ]
null
null
null
ServerExample/Metal.cpp
alwayssmile11a1/MultiplayerGameServer
cd4227ecc5fe1b44d427bcbd76c050a8130d2200
[ "MIT" ]
null
null
null
ServerExample/Metal.cpp
alwayssmile11a1/MultiplayerGameServer
cd4227ecc5fe1b44d427bcbd76c050a8130d2200
[ "MIT" ]
null
null
null
#include "Metal.h" Metal::Metal() { //Setup body BodyDef bodyDef; bodyDef.bodyType = Body::BodyType::Static; bodyDef.position.Set(0, 0); bodyDef.size.Set(8 * 3.1f, 8 * 3.1f); mMainBody = WorldCollector::GetWorld('PS')->CreateBody(bodyDef); mMainBody->categoryBits = METAL_BIT; mMainBody->maskBits = PLAYER_BIT |...
20.717391
100
0.729276
[ "render" ]
afa052d2d607e6d5b75d6ce84a7af2c91dcd793c
1,321
cpp
C++
leetcode-problems/medium-1130-minimum-cost-tree-from-leaf-value.cpp
formatkaka/dsalgo
a7c7386c5c161e23bc94456f93cadd0f91f102fa
[ "Unlicense" ]
null
null
null
leetcode-problems/medium-1130-minimum-cost-tree-from-leaf-value.cpp
formatkaka/dsalgo
a7c7386c5c161e23bc94456f93cadd0f91f102fa
[ "Unlicense" ]
null
null
null
leetcode-problems/medium-1130-minimum-cost-tree-from-leaf-value.cpp
formatkaka/dsalgo
a7c7386c5c161e23bc94456f93cadd0f91f102fa
[ "Unlicense" ]
null
null
null
// // Created by Siddhant on 2019-10-31. // #include "iostream" #include "vector" #include "string" #include "algorithm" #include "unordered_map" using namespace std; unordered_map<string, int> map; string vecToString(vector<int> vec){ string res = ""; for (int i = 0; i < vec.size(); ++i) { res += v...
20.968254
119
0.564724
[ "vector" ]
afa0b1dbb18d4ab856b52824b49ae9f6dbd4396d
2,608
cpp
C++
tetris/board.cpp
citrus610/ltbp
ddd1c2754d59ef1bcaf89455f2066c60866cb47a
[ "BSD-3-Clause", "MIT" ]
null
null
null
tetris/board.cpp
citrus610/ltbp
ddd1c2754d59ef1bcaf89455f2066c60866cb47a
[ "BSD-3-Clause", "MIT" ]
null
null
null
tetris/board.cpp
citrus610/ltbp
ddd1c2754d59ef1bcaf89455f2066c60866cb47a
[ "BSD-3-Clause", "MIT" ]
null
null
null
#include "piece.h" #include "board.h" namespace tetris { board :: board() { this->reset(); }; void board :: reset() { for (int y = 0; y < 40; ++y) { for (int x = 0; x < 10; ++x) { this->set(x, y, TYPE_NULL); } } }; int board :: get(int x, int y) { re...
21.032258
77
0.442868
[ "vector" ]
afa4c60e365afe5775927a340f8a938d3f6d9a09
2,333
hpp
C++
src/BmpFontGenerator.hpp
StratifyLabs/uxtool
5e2e37be6a073577d046002b6aba3868c1a4573e
[ "MIT" ]
null
null
null
src/BmpFontGenerator.hpp
StratifyLabs/uxtool
5e2e37be6a073577d046002b6aba3868c1a4573e
[ "MIT" ]
null
null
null
src/BmpFontGenerator.hpp
StratifyLabs/uxtool
5e2e37be6a073577d046002b6aba3868c1a4573e
[ "MIT" ]
null
null
null
#ifndef BMPFONTGENERATOR_HPP #define BMPFONTGENERATOR_HPP #include "Options.hpp" #include "Object.hpp" class BmpFontGeneratorCharacter { public: BmpFontGeneratorCharacter( const Bitmap & bitmap, const sg_font_char_t & font_character){ m_bitmap = bitmap; m_font_character = font_character; } bool operato...
26.511364
104
0.761252
[ "object", "vector" ]
afa733193d6830c1d9de3bd2e458f62a44d2debd
2,668
cpp
C++
HybridRenderer/HybridRenderer/RenderPass.cpp
lbondi7/HybridRenderer
592ff5c4ea9039bc79a99e20c848f11e2669f885
[ "MIT" ]
null
null
null
HybridRenderer/HybridRenderer/RenderPass.cpp
lbondi7/HybridRenderer
592ff5c4ea9039bc79a99e20c848f11e2669f885
[ "MIT" ]
null
null
null
HybridRenderer/HybridRenderer/RenderPass.cpp
lbondi7/HybridRenderer
592ff5c4ea9039bc79a99e20c848f11e2669f885
[ "MIT" ]
null
null
null
#include "RenderPass.h" #include "Utility.h" #include "Initilizers.h" #include <thread> #include <array> #include <stdexcept> RenderPass::~RenderPass() { devices = nullptr; swapChain = nullptr; } void RenderPass::Begin(VkCommandBuffer cmdBuffer, VkFramebuffer frameBuffer, VkExtent2D extent, const VkClearVa...
32.144578
155
0.723013
[ "render", "vector" ]
afc2ed1d35635db22916a58fa92eba7db4b607cc
977
cc
C++
backtracking/131.cc
MingfeiPan/leetcode
55dc878cfb7b15a34252410ae7420a656da604f8
[ "Apache-2.0" ]
null
null
null
backtracking/131.cc
MingfeiPan/leetcode
55dc878cfb7b15a34252410ae7420a656da604f8
[ "Apache-2.0" ]
null
null
null
backtracking/131.cc
MingfeiPan/leetcode
55dc878cfb7b15a34252410ae7420a656da604f8
[ "Apache-2.0" ]
null
null
null
class Solution { public: vector<vector<string>> partition(string s) { std::vector<std::vector<std::string>> ret; std::vector<std::string> cur; recur(ret, s, 0, cur); return ret; } private: void recur(std::vector<std::vector<std::string>>& ret, string s, int index, std::vector...
29.606061
112
0.460594
[ "vector" ]
afc392b4b6ac972b6d4fa16c1e254847791c80b4
703
hpp
C++
ChaosGL/Framebuffer.hpp
chaosarts/ChaosGL.cpp
7d851a404824609547fb9261790b87cee7699d5c
[ "Apache-2.0" ]
null
null
null
ChaosGL/Framebuffer.hpp
chaosarts/ChaosGL.cpp
7d851a404824609547fb9261790b87cee7699d5c
[ "Apache-2.0" ]
null
null
null
ChaosGL/Framebuffer.hpp
chaosarts/ChaosGL.cpp
7d851a404824609547fb9261790b87cee7699d5c
[ "Apache-2.0" ]
null
null
null
// // Framebuffer.hpp // ChaosGL // // Created by Fu Lam Diep on 20.03.16. // Copyright © 2016 Fu Lam Diep. All rights reserved. // #ifndef ChaosGL_Framebuffer_hpp #define ChaosGL_Framebuffer_hpp #include "ChaosGL.hpp" namespace chaosgl { /** * Class wrapper for framebuffers */ class Framebuffer { privat...
13.018519
54
0.603129
[ "object" ]
afc5a573556a274582018d485d11d4e3dd3706cd
2,589
cpp
C++
src/NonGravitar.cpp
newnone/Non-Gravitar
9d21cf7ab5ef49f6976fcaf25fa01cacbb209740
[ "MIT" ]
null
null
null
src/NonGravitar.cpp
newnone/Non-Gravitar
9d21cf7ab5ef49f6976fcaf25fa01cacbb209740
[ "MIT" ]
null
null
null
src/NonGravitar.cpp
newnone/Non-Gravitar
9d21cf7ab5ef49f6976fcaf25fa01cacbb209740
[ "MIT" ]
null
null
null
// MIT License // // Copyright (c) 2018 Oscar B. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, ...
31.192771
81
0.718424
[ "shape" ]
afc7ec5b37bb5f05f574b1e3eb9df433c6866289
11,705
hpp
C++
RobWork/src/rw/graphics/SceneCamera.hpp
ZLW07/RobWork
e713881f809d866b9a0749eeb15f6763e64044b3
[ "Apache-2.0" ]
1
2021-12-29T14:16:27.000Z
2021-12-29T14:16:27.000Z
RobWork/src/rw/graphics/SceneCamera.hpp
ZLW07/RobWork
e713881f809d866b9a0749eeb15f6763e64044b3
[ "Apache-2.0" ]
null
null
null
RobWork/src/rw/graphics/SceneCamera.hpp
ZLW07/RobWork
e713881f809d866b9a0749eeb15f6763e64044b3
[ "Apache-2.0" ]
null
null
null
/******************************************************************************** * Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
35.577508
99
0.586929
[ "geometry", "render", "transform" ]
afcd5f22988daf45e85255e951681560cc2b97d3
1,413
cpp
C++
src/array/array__save_eigens_to.cpp
violador/catalyst
40d5c1dd04269a0764a9804711354a474bc43c15
[ "Unlicense" ]
null
null
null
src/array/array__save_eigens_to.cpp
violador/catalyst
40d5c1dd04269a0764a9804711354a474bc43c15
[ "Unlicense" ]
null
null
null
src/array/array__save_eigens_to.cpp
violador/catalyst
40d5c1dd04269a0764a9804711354a474bc43c15
[ "Unlicense" ]
null
null
null
#include "array.hpp" // // // void array::save_eigens_to(array &values, array &vectors) { switch(is_2d_array and (not deleted_array)) { case true: switch(values.is_const_array or vectors.is_const_array) { case false: break; case true: return; break; } ...
29.4375
99
0.483369
[ "vector" ]
afd33587e4075dff787b0aac5a369f99720d2400
6,250
cpp
C++
src/SolidElementMPM.cpp
XiaoyongBai/MPM
24279ac90b39fc1c1bbdded7b7be6741ffc14f78
[ "MIT" ]
2
2019-06-25T18:42:42.000Z
2019-06-25T18:42:47.000Z
src/SolidElementMPM.cpp
XiaoyongBai/MPM
24279ac90b39fc1c1bbdded7b7be6741ffc14f78
[ "MIT" ]
null
null
null
src/SolidElementMPM.cpp
XiaoyongBai/MPM
24279ac90b39fc1c1bbdded7b7be6741ffc14f78
[ "MIT" ]
3
2020-03-26T15:19:42.000Z
2022-03-09T13:39:42.000Z
/* created by Xiaoyong Bai at CU Boulder, 07/18/2017 */ #include "SolidElementMPM.h" using namespace std; using namespace MPM; SolidElementMPM::SolidElementMPM(){ } SolidElementMPM::SolidElementMPM(int type){ if (type==1) { fShape=ShapeBaseT::create(1); }else{ throw "\n!! SolidElem...
24.801587
95
0.4968
[ "shape", "vector" ]
afd6462c86a38b5347932693972a2ca3421164d5
1,131
cpp
C++
src/gr_db/GrDatabase.cpp
RamAddict/cu-gr
05f9c23d479c7cb54613c624243922a7cfa46465
[ "Unlicense" ]
74
2019-11-28T10:08:57.000Z
2022-02-11T08:42:19.000Z
src/gr_db/GrDatabase.cpp
RamAddict/cu-gr
05f9c23d479c7cb54613c624243922a7cfa46465
[ "Unlicense" ]
null
null
null
src/gr_db/GrDatabase.cpp
RamAddict/cu-gr
05f9c23d479c7cb54613c624243922a7cfa46465
[ "Unlicense" ]
29
2020-02-12T15:30:06.000Z
2022-03-27T03:18:22.000Z
#include "GrDatabase.h" #include <fstream> gr::GrDatabase grDatabase; namespace gr { void GrDatabase::init() { GrRouteGrid::init(); GrNetlist::init(*this); GrRouteGrid::print(); } void GrDatabase::writeGuides(std::string filename) { log() << "Writing guides to file..." << std::endl; std::string...
26.302326
70
0.549072
[ "vector" ]
afdb728e0a788bc4154adb3a881c08c1da91d36a
5,375
cpp
C++
GeoTempCore/Source/GeoTempOSM/Private/OsmReader.cpp
interactivevislab/GeoTempPlugins
5c650769cbdb22931fc0e221bd7a3233a56c202a
[ "MIT" ]
6
2020-03-27T08:55:53.000Z
2022-03-14T22:36:28.000Z
GeoTempCore/Source/GeoTempOSM/Private/OsmReader.cpp
interactivevislab/GeoTempPlugins
5c650769cbdb22931fc0e221bd7a3233a56c202a
[ "MIT" ]
3
2020-03-31T13:21:56.000Z
2020-04-02T17:34:11.000Z
GeoTempCore/Source/GeoTempOSM/Private/OsmReader.cpp
interactivevislab/GeoTempPlugins
5c650769cbdb22931fc0e221bd7a3233a56c202a
[ "MIT" ]
null
null
null
#include "OsmReader.h" #include <algorithm> UOsmReader::UOsmReader() : UObject() { } void UOsmReader::InitWithXML(FString inXmlString) { xmlDocument.Parse(TCHAR_TO_UTF8(*inXmlString)); if (xmlDocument.FirstChild()) { ReadData(); } } void UOsmReader::InitWithFile(FString inFilename) { xmlDocument.LoadFile(TC...
23.06867
74
0.662884
[ "vector", "transform" ]
afdd14f490e134c4aaaed0733d239f6234a6d69f
3,892
cpp
C++
lib/seldon/lib/Compil/Seldon/UmfPack.cpp
HongyuHe/lsolver
c791bf192308ba6b564cb60cb3991d2e72093cd7
[ "Apache-2.0" ]
7
2021-01-31T23:20:07.000Z
2021-09-09T20:54:15.000Z
lib/seldon/lib/Compil/Seldon/UmfPack.cpp
HongyuHe/lsolver
c791bf192308ba6b564cb60cb3991d2e72093cd7
[ "Apache-2.0" ]
1
2021-06-07T07:52:38.000Z
2021-08-13T20:40:55.000Z
lib/seldon/lib/Compil/Seldon/UmfPack.cpp
HongyuHe/lsolver
c791bf192308ba6b564cb60cb3991d2e72093cd7
[ "Apache-2.0" ]
null
null
null
#include "SeldonFlag.hxx" #include "SeldonSolverHeader.hxx" #include "SeldonSolverInline.hxx" #ifndef SELDON_WITH_COMPILED_LIBRARY #include "computation/interfaces/direct/UmfPack.cxx" #endif namespace Seldon { SELDON_EXTERN template class MatrixUmfPack<double>; SELDON_EXTERN template class MatrixUmfPack<complex<...
63.803279
142
0.788284
[ "vector" ]
afe98e2b7d94e816cf67310ef772388910a36f92
12,000
cc
C++
Validation/RecoVertex/src/MCvsRecoVerticesAnalyzer.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Validation/RecoVertex/src/MCvsRecoVerticesAnalyzer.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Validation/RecoVertex/src/MCvsRecoVerticesAnalyzer.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
// -*- C++ -*- // // Package: MCvsRecoVerticesAnalyzer // Class: MCvsRecoVerticesAnalyzer // /**\class MCvsRecoVerticesAnalyzer MCvsRecoVerticesAnalyzer.cc TrackingPFG/PileUp/src/MCvsRecoVerticesAnalyzer.cc Description: <one line class summary> Implementation: <Notes on implementation> */ // // Origina...
40.133779
119
0.666833
[ "vector" ]
afed5be64ad2895641f5f4570a66f5d5f70e430f
2,312
cpp
C++
dataCount.cpp
yanboyang713/crossLanguageSentimentAnalysis
2ccf3cde0d1031d083e9de26692f1764a3b066c6
[ "MIT" ]
null
null
null
dataCount.cpp
yanboyang713/crossLanguageSentimentAnalysis
2ccf3cde0d1031d083e9de26692f1764a3b066c6
[ "MIT" ]
null
null
null
dataCount.cpp
yanboyang713/crossLanguageSentimentAnalysis
2ccf3cde0d1031d083e9de26692f1764a3b066c6
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include "rapidcsv.h" using namespace std; int main(){ rapidcsv::Document doc("goodDataLatest.csv", rapidcsv::LabelParams(0, -1)); std::vector<int> ranking = doc.GetColumn<int>("ranking"); std::vector<int> ranking10; std::vector<int> ranking20; std::vector<int>...
43.622642
152
0.637976
[ "vector" ]
aff78e47490d76ea7bb87a322a0cab81f6626358
17,372
cpp
C++
Project3/Stage.cpp
joalcapa/Hens-attack
1ab04a1d896d08cf66afb466ae742e1b5456ebf3
[ "MIT" ]
1
2017-07-06T13:48:58.000Z
2017-07-06T13:48:58.000Z
Project3/Stage.cpp
joalcapa/HensAttack
1ab04a1d896d08cf66afb466ae742e1b5456ebf3
[ "MIT" ]
null
null
null
Project3/Stage.cpp
joalcapa/HensAttack
1ab04a1d896d08cf66afb466ae742e1b5456ebf3
[ "MIT" ]
null
null
null
#include "Stage.h" #include "GameModel.h" Stage::Stage(void) {} Stage::~Stage(void) {} Stage::Stage(SDL_Renderer * renderer, int WIDTH, int HEIGHT) { headboard = runner = relativeRunner = NULL; this->renderer = renderer; this->WIDTH = WIDTH; this->HEIGHT = HEIGHT; isRunningFox = true; isDirection = isKilling =...
37.930131
209
0.683341
[ "render" ]
9b7c5fb403fae4b9c75750df64c8aaedf505b7ef
11,328
cc
C++
src/libsoma-io/reader/areader.cc
charbeljc/soma-io
17548eb8eafdcb82d20ea6fba760856f279d7424
[ "CECILL-B" ]
3
2020-05-13T04:15:29.000Z
2021-08-28T18:13:35.000Z
src/libsoma-io/reader/areader.cc
charbeljc/soma-io
17548eb8eafdcb82d20ea6fba760856f279d7424
[ "CECILL-B" ]
15
2018-10-30T16:52:14.000Z
2022-02-15T12:34:00.000Z
src/libsoma-io/reader/areader.cc
charbeljc/soma-io
17548eb8eafdcb82d20ea6fba760856f279d7424
[ "CECILL-B" ]
3
2019-12-15T07:23:16.000Z
2021-10-05T14:09:09.000Z
/* This software and supporting documentation are distributed by * Institut Federatif de Recherche 49 * CEA/NeuroSpin, Batiment 145, * 91191 Gif-sur-Yvette cedex * France * * This software is governed by the CeCILL-B license under * French law and abiding by the rules of distribution of free soft...
26.654118
78
0.583157
[ "object", "vector" ]
9b87ed00f56c45deec701e3e1f74761709db0c25
4,383
cpp
C++
src/skysun/skysun/SunRadiance.cpp
PearCoding/PearRay
8654a7dcd55cc67859c7c057c7af64901bf97c35
[ "MIT" ]
19
2016-11-07T00:01:19.000Z
2021-12-29T05:35:14.000Z
src/skysun/skysun/SunRadiance.cpp
PearCoding/PearRay
8654a7dcd55cc67859c7c057c7af64901bf97c35
[ "MIT" ]
33
2016-07-06T21:58:05.000Z
2020-08-01T18:18:24.000Z
src/skysun/skysun/SunRadiance.cpp
PearCoding/PearRay
8654a7dcd55cc67859c7c057c7af64901bf97c35
[ "MIT" ]
null
null
null
#include "SunRadiance.h" #include "spectral/OrderedSpectrum.h" /* The following is from the implementation of "A Practical Analytic Model for Daylight" by A.J. Preetham, Peter Shirley, and Brian Smits */ /* All data lifted from MI. Units are either [] or cm^-1. refer when in doubt MI */ // This is based on Mitsub...
37.461538
145
0.658909
[ "model" ]
9ba229c7f9933ac7c3968c150038118a10326704
251
cpp
C++
cpp/pair.cpp
honux77/practice
f92481740190b20ef352135c392c8a9bea58dcc7
[ "MIT" ]
152
2015-01-12T07:40:53.000Z
2022-03-20T15:51:35.000Z
cpp/pair.cpp
Brielle-Choi/practice
f92481740190b20ef352135c392c8a9bea58dcc7
[ "MIT" ]
11
2015-01-12T07:45:54.000Z
2021-09-02T02:46:52.000Z
cpp/pair.cpp
Brielle-Choi/practice
f92481740190b20ef352135c392c8a9bea58dcc7
[ "MIT" ]
32
2015-01-12T09:10:04.000Z
2022-03-02T09:18:17.000Z
#include <iostream> #include <vector> #include <utility> using namespace std; using vii = vector<pair<int, int>>; int main() { vii a; a.push_back(make_pair(1,1)); auto i = a[0]; cout << i.first << endl; cout << i.second << endl; return 0; }
13.944444
35
0.629482
[ "vector" ]
9bbe25ad50a52395f8406d02d669464d3e3c9419
2,529
cpp
C++
aws-cpp-sdk-nimble/source/model/StudioComponentInitializationScriptRunContext.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-02-12T08:09:30.000Z
2022-02-12T08:09:30.000Z
aws-cpp-sdk-nimble/source/model/StudioComponentInitializationScriptRunContext.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-nimble/source/model/StudioComponentInitializationScriptRunContext.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/nimble/model/StudioComponentInitializationScriptRunContext.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h...
35.619718
134
0.699486
[ "model" ]
9bc50ace813defa97fe4bb9373b0e9cba9ebf56b
4,966
hpp
C++
include/seqan3/alphabet/nucleotide/concept.hpp
h-2/seqan3
2cbc19c6f2cdb76c65ed6ff6ae70fc67334146d7
[ "CC-BY-4.0", "CC0-1.0" ]
4
2018-03-09T09:37:51.000Z
2020-07-28T04:52:01.000Z
include/seqan3/alphabet/nucleotide/concept.hpp
h-2/seqan3
2cbc19c6f2cdb76c65ed6ff6ae70fc67334146d7
[ "CC-BY-4.0", "CC0-1.0" ]
null
null
null
include/seqan3/alphabet/nucleotide/concept.hpp
h-2/seqan3
2cbc19c6f2cdb76c65ed6ff6ae70fc67334146d7
[ "CC-BY-4.0", "CC0-1.0" ]
1
2018-03-09T09:37:54.000Z
2018-03-09T09:37:54.000Z
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2019, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of th...
34.248276
117
0.595248
[ "object", "model" ]
9bca69a5f885b140d1b370560cab5993c8d263cb
43,580
cpp
C++
Modules/GameLoader/gameloader.cpp
alanzw/FGCG
9819ff9c543cf52bfac16655d1d30417291b5d4c
[ "Apache-2.0" ]
13
2016-10-24T11:39:12.000Z
2021-04-11T13:24:05.000Z
Modules/GameLoader/gameloader.cpp
zhangq49/sharerender
9819ff9c543cf52bfac16655d1d30417291b5d4c
[ "Apache-2.0" ]
1
2016-12-12T01:11:02.000Z
2016-12-12T01:11:02.000Z
Modules/GameLoader/gameloader.cpp
zhangq49/sharerender
9819ff9c543cf52bfac16655d1d30417291b5d4c
[ "Apache-2.0" ]
4
2018-06-05T03:39:06.000Z
2020-06-06T04:44:20.000Z
#ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include <Windows.h> #include "gameloader.h" #include "../LibCore/Log.h" #include "detours/detours.h" #include "../LibDistrubutor/Distributor.h" #include "../LibCore/InfoRecorder.h" //#include <KtmW32.h> #include <tchar.h> //#include "../LibCore/InfoRecord...
30.411724
186
0.70195
[ "render", "3d" ]
9bd00bac4443bb1786ecc688d9a26ab947ebcf8b
2,106
cpp
C++
C++/maximum-subarray-difference.cpp
xenron/sandbox-dev-lintcode
114145723af43eafc84ff602ad3ac7b353a9fc38
[ "MIT" ]
695
2015-04-18T16:11:56.000Z
2022-03-11T13:28:44.000Z
C++/maximum-subarray-difference.cpp
Abd-Elrazek/LintCode
8f6ee0ff38cb7cf8bf9fca800243823931604155
[ "MIT" ]
4
2015-07-04T13:07:35.000Z
2020-08-11T11:32:29.000Z
C++/maximum-subarray-difference.cpp
Abd-Elrazek/LintCode
8f6ee0ff38cb7cf8bf9fca800243823931604155
[ "MIT" ]
338
2015-04-28T04:39:03.000Z
2022-03-16T03:00:15.000Z
// Time: O(n) // Space: O(n) class Solution { public: /** * @param nums: A list of integers * @return: An integer indicate the value of maximum difference between two * Subarrays */ int maxDiffSubArrays(vector<int> nums) { int n = nums.size(); vector<int> max_LR(n)...
28.849315
79
0.466287
[ "vector" ]
9bdaa506511bb6cd84e914d9c16dea032b1a1b1d
2,874
cpp
C++
Engine/Source/Core/Maths/Vector3d.cpp
SpookyScaryDev/Jem
0349f40935763a8909d4a25e037e5aabbbd59496
[ "Apache-2.0" ]
4
2019-03-09T18:06:42.000Z
2020-08-26T10:31:38.000Z
Engine/Source/Core/Maths/Vector3d.cpp
SpookyScaryDev/Jem
0349f40935763a8909d4a25e037e5aabbbd59496
[ "Apache-2.0" ]
null
null
null
Engine/Source/Core/Maths/Vector3d.cpp
SpookyScaryDev/Jem
0349f40935763a8909d4a25e037e5aabbbd59496
[ "Apache-2.0" ]
null
null
null
#include "JemPCH.h" #include "Vector3d.h" namespace Jem { // ================== // Jem::Vector3d::Vector3d // ================== Vector3d::Vector3d(double dx, double dy, double dz) : x(dx), y(dy), z(dz){} // ================== // Jem::Vector3d::Set // ================== void Vector3d::Set(double dx, double dy, d...
22.629921
67
0.479819
[ "vector" ]
9bdbed85e4bd2937e97800511dc7b849b491302d
4,459
hpp
C++
ccsrc/cxx_experimental/include/cengines/cpp_graph_mapper.hpp
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
ccsrc/cxx_experimental/include/cengines/cpp_graph_mapper.hpp
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
ccsrc/cxx_experimental/include/cengines/cpp_graph_mapper.hpp
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
// Copyright 2020 <Huawei Technologies Co., Ltd> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
35.388889
108
0.712716
[ "vector" ]
9be0fd2da8c475d82483d50c2bb005ae8e8465a7
7,607
cpp
C++
src/utils/address.cpp
Andrik-555/retdec
1ac63a520da02912daf836b924f41d95b1b5fa10
[ "MIT", "BSD-3-Clause" ]
521
2019-03-29T15:44:08.000Z
2022-03-22T09:46:19.000Z
src/utils/address.cpp
Andrik-555/retdec
1ac63a520da02912daf836b924f41d95b1b5fa10
[ "MIT", "BSD-3-Clause" ]
30
2019-06-04T17:00:49.000Z
2021-09-08T20:44:19.000Z
src/utils/address.cpp
Andrik-555/retdec
1ac63a520da02912daf836b924f41d95b1b5fa10
[ "MIT", "BSD-3-Clause" ]
99
2019-03-29T16:04:13.000Z
2022-03-28T16:59:34.000Z
/** * @file src/utils/address.cpp * @brief Address, address pair and other derived class representation. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #include <cassert> #include <climits> #include <cstdio> #include <iostream> #include <vector> #include "retdec/utils/address.h" #include ...
19.455243
79
0.622059
[ "vector" ]
9be4806cb994d2d9792241eb36a308a0a8b26dba
12,596
cpp
C++
TFLcam/cam.cpp
maarten-pennings/TFLcam
ebdb7755789f36edf854b570086c6d7fc3a4570e
[ "MIT" ]
4
2021-09-24T19:36:19.000Z
2022-01-21T11:47:41.000Z
TFLcam/cam.cpp
maarten-pennings/TFLcam
ebdb7755789f36edf854b570086c6d7fc3a4570e
[ "MIT" ]
null
null
null
TFLcam/cam.cpp
maarten-pennings/TFLcam
ebdb7755789f36edf854b570086c6d7fc3a4570e
[ "MIT" ]
null
null
null
// cam.cpp - camera control and image post processing #include <Arduino.h> #include "esp_camera.h" // The camera driver,see https://github.com/espressif/esp32-camera/tree/master/driver #include "cam.h" // own interface // Instantiate the externs from the header int cam_crop_left; int cam_crop_top; int...
33.5
164
0.636472
[ "model", "transform", "3d" ]
9bed10b3eae1ed5a4753c2171e02c0c8a92f7491
7,884
cpp
C++
src/df1b2-separable/f1b23d1.cpp
johnrsibert/admb
063ec863a9f23f6c6afbc7d481af0476b8d63645
[ "BSD-3-Clause" ]
79
2015-01-16T14:14:22.000Z
2022-01-24T06:28:15.000Z
src/df1b2-separable/f1b23d1.cpp
johnrsibert/admb
063ec863a9f23f6c6afbc7d481af0476b8d63645
[ "BSD-3-Clause" ]
172
2015-01-21T01:53:57.000Z
2022-03-29T19:57:31.000Z
src/df1b2-separable/f1b23d1.cpp
johnrsibert/admb
063ec863a9f23f6c6afbc7d481af0476b8d63645
[ "BSD-3-Clause" ]
22
2015-01-15T18:11:54.000Z
2022-01-11T21:47:51.000Z
/* * $Id$ * * Author: David Fournier * Copyright (c) 2008-2012 Regents of the University of California */ /** * \file * Description not yet available. */ #include <df1b2fun.h> #include "admb_messages.h" /** * Description not yet available. * \param */ df1b23array::df1b23array(int nrl,int nrh,int ncl,int nch...
18.99759
74
0.623161
[ "shape", "vector" ]
9bf21839eaefe06f2f91a2036328d2349af1358d
1,648
cpp
C++
codeforces/B - Almost Sorted/Accepted.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
1
2022-02-11T16:55:36.000Z
2022-02-11T16:55:36.000Z
codeforces/B - Almost Sorted/Accepted.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
codeforces/B - Almost Sorted/Accepted.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
/**************************************************************************************** * @author: kzvd4729 created: Apr/22/2021 19:22 * solution_verdict: Accepted language: GNU C++17 (64) * run...
25.353846
111
0.45449
[ "vector" ]
5002dfd58d0a43c8c10662ccd97cf2baebc8aa1b
3,425
cpp
C++
Examples/App_SWE/main.cpp
weikm/sandcarSimulation2
fe499d0a3289c0ac1acce69c7dc78d8ce1b2708a
[ "Apache-2.0" ]
null
null
null
Examples/App_SWE/main.cpp
weikm/sandcarSimulation2
fe499d0a3289c0ac1acce69c7dc78d8ce1b2708a
[ "Apache-2.0" ]
null
null
null
Examples/App_SWE/main.cpp
weikm/sandcarSimulation2
fe499d0a3289c0ac1acce69c7dc78d8ce1b2708a
[ "Apache-2.0" ]
null
null
null
/** * @author : Xu Ben (592228912@qq.com) * @date : 2020-07-27 * @description: Simulate with shallow water equation * @version : 1.0 * * @author : Zhu Fei (feizhu@pku.edu.cn) * @date : 2021-07-17 * @description: poslish code * @version : 1.1 */ #include <memory> #include "Framework/...
29.025424
136
0.585693
[ "vector" ]
500f05d51e53260787359fdde522f8184d5cf2f8
6,457
hpp
C++
platform.hpp
lonestep/teleport
0753c47a0cbb8a2eda88b49da3434d8221e1d30e
[ "MIT" ]
null
null
null
platform.hpp
lonestep/teleport
0753c47a0cbb8a2eda88b49da3434d8221e1d30e
[ "MIT" ]
null
null
null
platform.hpp
lonestep/teleport
0753c47a0cbb8a2eda88b49da3434d8221e1d30e
[ "MIT" ]
null
null
null
/** * File: platform.hpp * * Desc: * * Author: lonestep@gmail.com * Created: */ #pragma once #include <stdarg.h> #include <time.h> #include <fstream> #include <cstdlib> #include <regex> #include <map> #include <vector> #include <queue> #include <mutex> #include "typedefs.hpp" #ifdef Windows #i...
21.451827
110
0.555057
[ "vector" ]
5013faa1e0bc8be5d82d3a5cefd14ffddb8e2acb
2,678
cpp
C++
Graphics/Src/CScene.cpp
ArvydasSlekaitis/ReginaGameEngine
4b6af9b5fbf9aad4025b0387260c31019fd8f8c8
[ "MIT" ]
1
2020-09-02T06:00:14.000Z
2020-09-02T06:00:14.000Z
Graphics/Src/CScene.cpp
ArvydasSlekaitis/ReginaGameEngine
4b6af9b5fbf9aad4025b0387260c31019fd8f8c8
[ "MIT" ]
null
null
null
Graphics/Src/CScene.cpp
ArvydasSlekaitis/ReginaGameEngine
4b6af9b5fbf9aad4025b0387260c31019fd8f8c8
[ "MIT" ]
null
null
null
/////////////////////////////////////////////////////////// // CScene.cpp // Created on: 27-11-2009 // Last modified: 27-11-2009 // Original author: Arvydas Slekaitis (C) /////////////////////////////////////////////////////////// #include <CScene.h> using namespace Regina; //****************************...
29.755556
149
0.505601
[ "render" ]
5015d69cc9257f15c9be844ca7c0f6d96f2178b2
2,428
cpp
C++
src/plugins/main/emissions/diffuse.cpp
PearCoding/PearRay
8654a7dcd55cc67859c7c057c7af64901bf97c35
[ "MIT" ]
19
2016-11-07T00:01:19.000Z
2021-12-29T05:35:14.000Z
src/plugins/main/emissions/diffuse.cpp
PearCoding/PearRay
8654a7dcd55cc67859c7c057c7af64901bf97c35
[ "MIT" ]
33
2016-07-06T21:58:05.000Z
2020-08-01T18:18:24.000Z
src/plugins/main/emissions/diffuse.cpp
PearCoding/PearRay
8654a7dcd55cc67859c7c057c7af64901bf97c35
[ "MIT" ]
null
null
null
#include "Environment.h" #include "SceneLoadContext.h" #include "emission/IEmission.h" #include "emission/IEmissionPlugin.h" #include "entity/IEntity.h" #include "math/Projection.h" #include "math/Sampling.h" #include "shader/NodeUtils.h" namespace PR { class DiffuseEmission : public IEmission { public: DiffuseEmissi...
29.253012
112
0.733937
[ "vector" ]
502962fc14a2b827db738c82ba23a5c5221daa13
1,556
cpp
C++
Round #638 (Div 2)/D.cpp
julianferres/Codeforces
ac80292a4d53b8078fc1a85e91db353c489555d9
[ "MIT" ]
4
2020-01-31T15:49:25.000Z
2020-07-07T11:44:03.000Z
Round #638 (Div 2)/D.cpp
julianferres/CodeForces
14e8369e82a2403094183d6f7824201f681c9f65
[ "MIT" ]
null
null
null
Round #638 (Div 2)/D.cpp
julianferres/CodeForces
14e8369e82a2403094183d6f7824201f681c9f65
[ "MIT" ]
null
null
null
/****************************************** * AUTHOR: julianferres * ******************************************/ #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vi; typedef pair<ll,ll> ii; typedef vector<ii> vii; typedef vector<bool> vb; #define FIN ios::sync_wi...
21.915493
83
0.469152
[ "vector" ]
df22450899eabd8a649e5856c64a0a5398cb21ca
424,499
cpp
C++
mojiben2/PUL.cpp
katahiromz/mojiben
8a8d1a3fdffe6ff78165c50e37a6c44aee335e82
[ "MIT" ]
null
null
null
mojiben2/PUL.cpp
katahiromz/mojiben
8a8d1a3fdffe6ff78165c50e37a6c44aee335e82
[ "MIT" ]
3
2021-07-27T11:19:34.000Z
2021-07-27T12:01:43.000Z
mojiben2/PUL.cpp
katahiromz/mojiben
8a8d1a3fdffe6ff78165c50e37a6c44aee335e82
[ "MIT" ]
null
null
null
#include <windows.h> #include <vector> #include <map> using namespace std; #include "kakijun.h" KAKIJUN g_print_uppercase_kakijun; static const BYTE A0[2256] = { 0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x8B,0x00,0x00,0x00,0xB0,0x08,0x00,0x00, 0x46,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0xA0,0x00,0x00,0x00,0...
73.025804
81
0.756605
[ "vector" ]
df28c9253d465bbf45b5fca23ba529abc00e87cb
324
cpp
C++
Algorithms/Shuffle_String/main.cpp
ugurcan-sonmez-95/LeetCode
e463a424c2d781f67be31ae42bc3c5c896db6017
[ "MIT" ]
1
2020-10-01T09:12:09.000Z
2020-10-01T09:12:09.000Z
Algorithms/Shuffle_String/main.cpp
ugurcan-sonmez-95/LeetCode
e463a424c2d781f67be31ae42bc3c5c896db6017
[ "MIT" ]
null
null
null
Algorithms/Shuffle_String/main.cpp
ugurcan-sonmez-95/LeetCode
e463a424c2d781f67be31ae42bc3c5c896db6017
[ "MIT" ]
null
null
null
// Shuffle String - Solution class Solution { public: std::string restoreString(const std::string &s, const std::vector<int> &indices) { std::string final_s; final_s.resize(s.size(), 'a'); for (int i{}; i < s.size(); i++) final_s[indices[i]] = s[i]; return final_s; ...
27
86
0.555556
[ "vector" ]
df2a80ef7ca25f2dda9a8c466a51a2379f261bda
1,900
cpp
C++
src/generate_test_data.cpp
josephnoir/indexing
99f6a02c22451d0db204731a6c53ed56ad751365
[ "BSD-3-Clause" ]
5
2017-01-30T17:02:24.000Z
2017-04-22T04:20:41.000Z
src/generate_test_data.cpp
josephnoir/indexing
99f6a02c22451d0db204731a6c53ed56ad751365
[ "BSD-3-Clause" ]
null
null
null
src/generate_test_data.cpp
josephnoir/indexing
99f6a02c22451d0db204731a6c53ed56ad751365
[ "BSD-3-Clause" ]
null
null
null
/****************************************************************************** * Copyright (C) 2017 * * Raphael Hiesgen <raphael.hiesgen (at) haw-hamburg.de> * * * ...
33.928571
80
0.497368
[ "vector" ]
df5a91949474c1e8a2035dc5f0533ef15c2f51ad
474
cpp
C++
tests/ClassTest.cpp
jeffreyhunter77/cpp-objects
5c6bad7ba2f860e8744318d1d84c590e119a686a
[ "MIT" ]
null
null
null
tests/ClassTest.cpp
jeffreyhunter77/cpp-objects
5c6bad7ba2f860e8744318d1d84c590e119a686a
[ "MIT" ]
null
null
null
tests/ClassTest.cpp
jeffreyhunter77/cpp-objects
5c6bad7ba2f860e8744318d1d84c590e119a686a
[ "MIT" ]
null
null
null
#include <Class.hpp> #define CATCH_CONFIG_MAIN #include "catch.hpp" #include <string.h> using namespace Objects; TEST_CASE("Class.name", "[Class]") { const char* name = "[test]"; Class c(name); SECTION("returns the Class name") { REQUIRE( strcmp(c.name(), name) == 0 ); } } TEST_CASE("Class.classInfo"...
16.928571
58
0.622363
[ "object" ]
df76371871c5252eae39a3b79c6b4c0cb7923c83
1,774
cc
C++
ns-allinone-2.35/ns-2.35/link/hackloss.cc
nitishk017/ns2project
f037b796ff10300ffe0422580be5855c37d0b140
[ "MIT" ]
1
2020-05-29T13:04:42.000Z
2020-05-29T13:04:42.000Z
ns-allinone-2.35/ns-2.35/link/hackloss.cc
nitishk017/ns2project
f037b796ff10300ffe0422580be5855c37d0b140
[ "MIT" ]
1
2019-01-20T17:35:23.000Z
2019-01-22T21:41:38.000Z
ns-allinone-2.35/ns-2.35/link/hackloss.cc
nitishk017/ns2project
f037b796ff10300ffe0422580be5855c37d0b140
[ "MIT" ]
1
2021-09-29T16:06:57.000Z
2021-09-29T16:06:57.000Z
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ #ifndef lint static const char rcsid[] = "@(#) $Header: /cvsroot/nsnam/ns-2/link/hackloss.cc,v 1.6 2000/09/01 03:04:05 haoboy Exp $"; #endif #include "connector.h" #include "packet.h" #include "queue.h" class HackLossyLink : public Connector ...
24.638889
93
0.618377
[ "object" ]
df7a65a24127668f93b4d231e5af6fdf41ed97cf
14,977
cpp
C++
lib/integrate.cpp
c-vigo/mudirac
86c71f6ec25c8328ac7c32abde21c240f41f73e2
[ "MIT" ]
3
2021-03-04T09:17:20.000Z
2022-03-03T04:13:16.000Z
lib/integrate.cpp
c-vigo/mudirac
86c71f6ec25c8328ac7c32abde21c240f41f73e2
[ "MIT" ]
null
null
null
lib/integrate.cpp
c-vigo/mudirac
86c71f6ec25c8328ac7c32abde21c240f41f73e2
[ "MIT" ]
2
2022-03-11T10:29:16.000Z
2022-03-25T16:05:47.000Z
/** * MuDirac - A muonic atom Dirac equation solver * by Simone Sturniolo (2019-2020) * * integrate.cpp * * Routines for integrating differential equations with the shooting method * * @author Simone Sturniolo * @version 1.0 20/03/2020 */ #include "integrate.hpp" // Exceptions TurningPointError::TurningP...
33.580717
139
0.560126
[ "vector" ]
df81f40c0fd7817b90a95e733610be35ea50d31b
3,174
cc
C++
testing/variable_storage/ErrTemperature.cc
pgmaginot/DARK_ARTS
f04b0a30dcac911ef06fe0916921020826f5c42b
[ "MIT" ]
null
null
null
testing/variable_storage/ErrTemperature.cc
pgmaginot/DARK_ARTS
f04b0a30dcac911ef06fe0916921020826f5c42b
[ "MIT" ]
null
null
null
testing/variable_storage/ErrTemperature.cc
pgmaginot/DARK_ARTS
f04b0a30dcac911ef06fe0916921020826f5c42b
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <math.h> #include <string> #include "Input_Reader.h" #include "Err_Temperature.h" #include "Dark_Arts_Exception.h" int main(int argc, char** argv) { int val = 0; const double tol = 1.0E-6; const int n_p = 3; Err_Temperature test_err(n_p); ...
32.060606
112
0.636736
[ "vector" ]
df88305a581048406d38732b669a45ae9aacf278
23,799
cpp
C++
src/lua/functions/core/game/global_functions.cpp
Waclaw-I/BagnoOTS
dbeb04322698ecdb795eba196872815b36ca134f
[ "MIT" ]
null
null
null
src/lua/functions/core/game/global_functions.cpp
Waclaw-I/BagnoOTS
dbeb04322698ecdb795eba196872815b36ca134f
[ "MIT" ]
null
null
null
src/lua/functions/core/game/global_functions.cpp
Waclaw-I/BagnoOTS
dbeb04322698ecdb795eba196872815b36ca134f
[ "MIT" ]
null
null
null
/** * Canary - A free and open-source MMORPG server emulator * Copyright (C) 2021 OpenTibiaBR <opentibiabr@outlook.com> * * 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 o...
28.197867
130
0.706668
[ "object", "vector" ]
df88695961ddf61fe70f5f2d0c6644c0430e8c26
5,585
cpp
C++
src/hlstate.cpp
fpereira1/nvui
2bd38c0153ad09422b3bf1efc8788f181f4aba90
[ "MIT" ]
null
null
null
src/hlstate.cpp
fpereira1/nvui
2bd38c0153ad09422b3bf1efc8788f181f4aba90
[ "MIT" ]
null
null
null
src/hlstate.cpp
fpereira1/nvui
2bd38c0153ad09422b3bf1efc8788f181f4aba90
[ "MIT" ]
null
null
null
#include "hlstate.hpp" #include <cassert> #include <iostream> #include <sstream> namespace hl { HLAttr hl_attr_from_object(const msgpack::object& obj) { assert(obj.type == msgpack::type::ARRAY); const msgpack::object_array& arr = obj.via.array; assert(arr.size == 4); const int id = arr.ptr[0].as<int...
24.822222
86
0.599284
[ "object" ]
df892fa52fd0b00f26fa1e8d4b6c15de6692a260
8,285
cc
C++
sumi/benchmark/pingpong.cc
minyee/sst-macro
fd2c52b3872b9c49af77f5f82b3177cc7bbe403c
[ "BSD-Source-Code" ]
4
2017-11-18T22:49:38.000Z
2021-01-22T18:33:50.000Z
sumi/benchmark/pingpong.cc
minyee/sst-macro
fd2c52b3872b9c49af77f5f82b3177cc7bbe403c
[ "BSD-Source-Code" ]
null
null
null
sumi/benchmark/pingpong.cc
minyee/sst-macro
fd2c52b3872b9c49af77f5f82b3177cc7bbe403c
[ "BSD-Source-Code" ]
1
2019-03-14T23:04:47.000Z
2019-03-14T23:04:47.000Z
/** Copyright 2009-2017 National Technology and Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government retains certain rights in this software. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering...
32.112403
132
0.701147
[ "3d" ]
df8f036303f492bda345bb822ef2fe1d08b888aa
3,980
cpp
C++
src/openbor/openbor_mod.cpp
marstau/shinsango
d9468787ae8e18fa478f936770d88e9bf93c11c0
[ "BSD-3-Clause" ]
1
2021-06-16T15:25:47.000Z
2021-06-16T15:25:47.000Z
src/openbor/openbor_mod.cpp
marstau/shinsango
d9468787ae8e18fa478f936770d88e9bf93c11c0
[ "BSD-3-Clause" ]
null
null
null
src/openbor/openbor_mod.cpp
marstau/shinsango
d9468787ae8e18fa478f936770d88e9bf93c11c0
[ "BSD-3-Clause" ]
null
null
null
#include "util/graphics/bitmap.h" #include "mod.h" #include "paintown-engine/level/utils.h" #include "util/funcs.h" #include "util.h" #include "util/debug.h" #include "pack-reader.h" #include "util/tokenreader.h" #include "util/token.h" #include "util/exceptions/load_exception.h" #include "util/exceptions/exception.h" ...
28.84058
146
0.633417
[ "vector" ]
df978e4607cd284af045ac305e95b191562f87b6
3,026
hpp
C++
src/org/apache/poi/hssf/record/chart/SeriesRecord.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
src/org/apache/poi/hssf/record/chart/SeriesRecord.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
src/org/apache/poi/hssf/record/chart/SeriesRecord.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
// Generated from /POI/java/org/apache/poi/hssf/record/chart/SeriesRecord.java #pragma once #include <fwd-POI.hpp> #include <java/lang/fwd-POI.hpp> #include <org/apache/poi/hssf/record/fwd-POI.hpp> #include <org/apache/poi/hssf/record/chart/fwd-POI.hpp> #include <org/apache/poi/util/fwd-POI.hpp> #include <org/apache/...
31.852632
78
0.738599
[ "object" ]
df9e417ad790e9c4430d633fb224f5315d11accf
20,045
cpp
C++
libs/SpoutSDK/src/SpoutFrameCount.cpp
medcelerate/ofxSpout
1c461e6ca309595ef153f34f0f5f0aaae2267b8d
[ "MIT" ]
61
2015-10-20T11:07:56.000Z
2022-03-27T08:54:36.000Z
libs/SpoutSDK/src/SpoutFrameCount.cpp
medcelerate/ofxSpout
1c461e6ca309595ef153f34f0f5f0aaae2267b8d
[ "MIT" ]
9
2016-01-07T12:36:38.000Z
2019-10-23T13:52:13.000Z
libs/SpoutSDK/src/SpoutFrameCount.cpp
medcelerate/ofxSpout
1c461e6ca309595ef153f34f0f5f0aaae2267b8d
[ "MIT" ]
23
2016-02-26T12:09:35.000Z
2022-03-21T23:45:54.000Z
// // SpoutFrameCount // // Semaphore frame counter // // ==================================================================================== // Revisions : // // 07.10.18 - project start // 01.11.18 - Add GetRefreshRate() to set default sender fps to system refresh rate // 16.11.18 - Profile UpdateSenderFps //...
30.142857
149
0.667348
[ "object" ]
dfa092bc8ad2c7969641598a6ed427d09cdda6ba
43,365
cpp
C++
Samples/EnginePrototype/Views/Editor/EditorView.cpp
samkusin/overview
affddf0b21f7e76ad9dae1425a4f5ac6a29a24c1
[ "MIT" ]
null
null
null
Samples/EnginePrototype/Views/Editor/EditorView.cpp
samkusin/overview
affddf0b21f7e76ad9dae1425a4f5ac6a29a24c1
[ "MIT" ]
null
null
null
Samples/EnginePrototype/Views/Editor/EditorView.cpp
samkusin/overview
affddf0b21f7e76ad9dae1425a4f5ac6a29a24c1
[ "MIT" ]
null
null
null
// // EditorView.cpp // EnginePrototype // // Created by Samir Sinha on 1/15/16. // // #include "EditorView.hpp" #include "Engine/AssetManifest.hpp" #include "Engine/Physics/Scene.hpp" #include "Engine/Physics/SceneDataContext.hpp" #include "Engine/Render/RenderContext.hpp" #include "Engine/Controller/NavSystem.hp...
32.87718
117
0.555978
[ "geometry", "render", "transform" ]
dfa121906ed829286bc06b941e745b8a1c2d3070
2,608
cpp
C++
SampleCode/Test.cpp
Team-Godel/Godel
43bc2bb6ea28881a3db00dd69c1288cb04278d7d
[ "MIT" ]
null
null
null
SampleCode/Test.cpp
Team-Godel/Godel
43bc2bb6ea28881a3db00dd69c1288cb04278d7d
[ "MIT" ]
null
null
null
SampleCode/Test.cpp
Team-Godel/Godel
43bc2bb6ea28881a3db00dd69c1288cb04278d7d
[ "MIT" ]
null
null
null
#include <windows.h> #include <iostream> #include <vector> #include <string> using namespace std; LRESULT CALLBACK procedureFenetrePrincipale(HWND, UINT, WPARAM, LPARAM); class Godel { public: int constructor(); int destroyer(); int CreateWin(HINSTANCE cetteInstance, HINSTANCE precedenteInsta...
28.043011
201
0.649156
[ "vector" ]
dfa35ac454e548cf84d6636267394989d15cdbde
614
hpp
C++
include/eve/constant/zero.hpp
orao/eve
a8bdc6a9cab06d905e8749354cde63776ab76846
[ "MIT" ]
null
null
null
include/eve/constant/zero.hpp
orao/eve
a8bdc6a9cab06d905e8749354cde63776ab76846
[ "MIT" ]
null
null
null
include/eve/constant/zero.hpp
orao/eve
a8bdc6a9cab06d905e8749354cde63776ab76846
[ "MIT" ]
null
null
null
//================================================================================================== /** EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT **/ //================================================================================================== #...
23.615385
100
0.456026
[ "vector" ]
dfa5f029db058fd56eacc3cc4684f5598212d6d6
1,075
cc
C++
lib/tests/pcp-test_test.cc
MikaelSmith/pcp-test
7f830e0dc0d7128a5db3c660503f719cf80a5345
[ "Apache-2.0" ]
null
null
null
lib/tests/pcp-test_test.cc
MikaelSmith/pcp-test
7f830e0dc0d7128a5db3c660503f719cf80a5345
[ "Apache-2.0" ]
1
2016-09-09T10:56:21.000Z
2016-09-09T13:43:24.000Z
lib/tests/pcp-test_test.cc
MikaelSmith/pcp-test
7f830e0dc0d7128a5db3c660503f719cf80a5345
[ "Apache-2.0" ]
4
2016-08-25T10:18:46.000Z
2021-03-26T11:47:21.000Z
#include <catch.hpp> #include <pcp-test/pcp-test.hpp> #include <pcp-test/client.hpp> #include <pcp-test/client_configuration.hpp> #include <pcp-test/root_path.h> #include <pcp-test/version.h> #include <boost/filesystem/operations.hpp> #include <boost/filesystem/path.hpp> #include <utility> #include <string> #includ...
28.289474
76
0.603721
[ "vector" ]
dfb99ca8fe8600a775535a5833b0096c68b3ae4e
2,921
cpp
C++
GDP2019_20/ParticleEmitter.cpp
d01000100/gl_demo
5c0894b1fabf5727836757e7d44528c8b513d2d5
[ "MIT" ]
null
null
null
GDP2019_20/ParticleEmitter.cpp
d01000100/gl_demo
5c0894b1fabf5727836757e7d44528c8b513d2d5
[ "MIT" ]
null
null
null
GDP2019_20/ParticleEmitter.cpp
d01000100/gl_demo
5c0894b1fabf5727836757e7d44528c8b513d2d5
[ "MIT" ]
null
null
null
#include "ParticleEmitter.h" const unsigned int ParticleEmitter::DEFAULT_NUM_PARTICLES = 1000; Particle::Particle() { position = glm::vec3(0.0f); velocity = glm::vec3(0.0f); lifetime = 0.0f; color = glm::vec4(0.0f, 0.0f, 0.0f, 1.0f); } void ParticleEmitter::Init(glm::vec3 min_vel, glm::vec3 max_vel, glm::vec3 ...
28.920792
92
0.693598
[ "vector" ]
dfbd6f017d34a4836425e40d1d55d246c8083878
17,495
cpp
C++
src/pathtracer/sdf.cpp
johannes-braun/myrt
bb7d96e9f5de264054f4a27de78722d0763c21a8
[ "MIT" ]
1
2020-12-05T18:00:23.000Z
2020-12-05T18:00:23.000Z
src/pathtracer/sdf.cpp
johannes-braun/myrt
bb7d96e9f5de264054f4a27de78722d0763c21a8
[ "MIT" ]
null
null
null
src/pathtracer/sdf.cpp
johannes-braun/myrt
bb7d96e9f5de264054f4a27de78722d0763c21a8
[ "MIT" ]
null
null
null
#include "sdf.hpp" namespace myrt { namespace detail { std::optional<int> sdf_type::find_parameter_index_by_name(std::string const& name) const { auto const it = std::find(begin(param_names), end(param_names), name); if (it == param_names.end()) return std::nullopt; return static_cast<i...
36.524008
369
0.586911
[ "vector", "transform" ]
254a30f85d168e7491cb9d50db243ecda1e3067d
9,333
cpp
C++
gsplines_ros/src/gsplines_ros.cpp
rafaelrojasmiliani/gsplines_cpp_ros
aca23484a8ec4d18c309115f04a1dbe58091f022
[ "MIT" ]
3
2021-08-28T01:42:10.000Z
2021-09-24T16:16:12.000Z
gsplines_ros/src/gsplines_ros.cpp
rafaelrojasmiliani/gsplines_cpp_ros
aca23484a8ec4d18c309115f04a1dbe58091f022
[ "MIT" ]
5
2021-08-17T15:05:24.000Z
2022-03-27T16:09:38.000Z
gsplines_ros/src/gsplines_ros.cpp
rafaelrojasmiliani/gsplines_cpp_ros
aca23484a8ec4d18c309115f04a1dbe58091f022
[ "MIT" ]
null
null
null
#include <gsplines_ros/gsplines_ros.hpp> #define EIGEN_TO_STD_VECTOR(_eigen_vector) \ (std::vector<double>(_eigen_vector.data(), \ _eigen_vector.data() + _eigen_vector.size())) namespace gsplines_ros { gsplines::GSpline gspl...
34.062044
80
0.738134
[ "vector" ]