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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3650133c439685443ea91c24e1322e6408b336f6 | 3,754 | cpp | C++ | src/item_parser.cpp | wayneyip/retrome | 33ae608121ee99de98648dde98a5a8fc49571a48 | [
"MIT"
] | 1 | 2018-08-15T14:19:03.000Z | 2018-08-15T14:19:03.000Z | src/item_parser.cpp | wayneyip/retrome | 33ae608121ee99de98648dde98a5a8fc49571a48 | [
"MIT"
] | null | null | null | src/item_parser.cpp | wayneyip/retrome | 33ae608121ee99de98648dde98a5a8fc49571a48 | [
"MIT"
] | null | null | null | #include <QDirIterator>
#include <QString>
#include <fstream>
#include <sstream>
#include <vector>
#include "item_parser.h"
#include "util.h"
#include "color.h"
#include <iostream>
ItemParser::ItemParser()
{
error_ = false;
}
ItemParser::~ItemParser()
{
}
bool ItemParser::parseCategories(DataStore& ds, std::stri... | 23.030675 | 85 | 0.647576 | [
"vector"
] |
365c77bc3c23389aa702be15269fb194ad5f159e | 760 | cpp | C++ | data structure/fenwick.cpp | defiant-phreak/algo | 907445bdbebe720e71a44e6b69422b595805c910 | [
"MIT"
] | null | null | null | data structure/fenwick.cpp | defiant-phreak/algo | 907445bdbebe720e71a44e6b69422b595805c910 | [
"MIT"
] | null | null | null | data structure/fenwick.cpp | defiant-phreak/algo | 907445bdbebe720e71a44e6b69422b595805c910 | [
"MIT"
] | null | null | null |
template <typename T>
class fenwick {
public:
vector<T> tree;
int n;
fenwick(vector<T> &v, int _n = -1) : n(_n){
if(n < 0) n = v.size();
tree.resize(n);
for(int i = 0; i < n; i++){
add(i, v[i]);
}
}
T sum(int k){
T s{};
while(k >= 0){
s += tree[k];
k = (k & (k+1)) -1;
}
return s;
}
voi... | 16.170213 | 66 | 0.438158 | [
"vector"
] |
365fa239ab0815cb6b1c409100795bf80fe98e4a | 2,382 | cpp | C++ | previous_examples/03particles/src/vid_sdl.cpp | pantadeusz/simsamples | 247737044c14496aafa6de8fbcfb73ac1c2325ea | [
"MIT"
] | null | null | null | previous_examples/03particles/src/vid_sdl.cpp | pantadeusz/simsamples | 247737044c14496aafa6de8fbcfb73ac1c2325ea | [
"MIT"
] | null | null | null | previous_examples/03particles/src/vid_sdl.cpp | pantadeusz/simsamples | 247737044c14496aafa6de8fbcfb73ac1c2325ea | [
"MIT"
] | 6 | 2017-12-14T19:24:19.000Z | 2020-06-18T14:59:13.000Z | #include "vid_sdl.hpp"
#include <stdexcept>
#include <string>
#include <set>
#include <tuple>
#include <iostream>
#include <cstdint>
#include <vector>
#include <array>
namespace sgd {
auto errthrow = []( const std::string &e ) {
std::string errstr = e + " : " + SDL_GetError();
SDL_Quit();
throw std::runtime_error... | 31.342105 | 119 | 0.697733 | [
"vector"
] |
3665d80766c51b72ff811ef5681759999955213b | 15,210 | cpp | C++ | src/create_wce_objects.cpp | LBNL-ETA/WinCalc | 293d1cd27b51afdcb438d0ae8480d4b4862a1124 | [
"BSD-3-Clause-LBNL"
] | 5 | 2019-08-23T15:42:19.000Z | 2021-08-18T19:30:28.000Z | src/create_wce_objects.cpp | LBNL-ETA/WinCalc | 293d1cd27b51afdcb438d0ae8480d4b4862a1124 | [
"BSD-3-Clause-LBNL"
] | 5 | 2019-07-09T23:22:30.000Z | 2022-03-03T07:55:33.000Z | src/create_wce_objects.cpp | LBNL-ETA/WinCalc | 293d1cd27b51afdcb438d0ae8480d4b4862a1124 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include "create_wce_objects.h"
SpectralAveraging::MeasuredRow convert(OpticsParser::WLData const & data)
{
SpectralAveraging::MeasuredRow converted(data.wavelength, data.T, data.frontR, data.backR);
return converted;
}
std::vector<SpectralAveraging::MeasuredRow> convert(std::vector<OpticsParser::WLData> cons... | 36.917476 | 100 | 0.650033 | [
"vector"
] |
36685c357f0770493b5f5f3f4df8aa5a480c899b | 7,531 | cpp | C++ | src/saiga/vision/camera/KittiDataset.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 114 | 2017-08-13T22:37:32.000Z | 2022-03-25T12:28:39.000Z | src/saiga/vision/camera/KittiDataset.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 7 | 2019-10-14T18:19:11.000Z | 2021-06-11T09:41:52.000Z | src/saiga/vision/camera/KittiDataset.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 18 | 2017-08-14T01:22:05.000Z | 2022-03-12T12:35:07.000Z | /**
* Copyright (c) 2021 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "KittiDataset.h"
#include "saiga/core/util/FileSystem.h"
#include "saiga/core/util/ProgressBar.h"
#include "saiga/core/util/easylogging++.h"
#include "saiga/core/util/file.h"
#include "sa... | 26.896429 | 92 | 0.518125 | [
"vector",
"model"
] |
366c9f5d595efa4542b19067eb3b60f3be3548ae | 2,349 | cpp | C++ | src/MEL/Daq/NI/myRIO/MyRioAO.cpp | mahilab/MEL | b877b2ed9cd265b1ee3c1cc623a339ec1dc73185 | [
"Zlib"
] | 6 | 2018-09-14T05:07:03.000Z | 2021-09-30T17:15:11.000Z | src/MEL/Daq/NI/myRIO/MyRioAO.cpp | mahilab/MEL | b877b2ed9cd265b1ee3c1cc623a339ec1dc73185 | [
"Zlib"
] | null | null | null | src/MEL/Daq/NI/myRIO/MyRioAO.cpp | mahilab/MEL | b877b2ed9cd265b1ee3c1cc623a339ec1dc73185 | [
"Zlib"
] | 3 | 2018-09-20T00:58:31.000Z | 2022-02-09T06:02:56.000Z | #include <MEL/Daq/NI/MyRio/MyRio.hpp>
#include <MEL/Logging/Log.hpp>
#include "Detail/MyRioFpga60/MyRio.h"
extern NiFpga_Session myrio_session;
namespace mel {
namespace {
// AO registers
static const std::vector<std::vector<uint32_t>> REGISTERS({
{AOA_0VAL, AOA_1VAL},
{AOB_0VAL, AOB_1VAL},
{AOC_0VAL, A... | 30.907895 | 116 | 0.655598 | [
"vector"
] |
366ecf1b0449c55ca517ebc15fcb61406e55facd | 38,711 | hpp | C++ | external/vsomeip/interface/vsomeip/application.hpp | lixiaolia/ndk-someip-lib | f4088e87f07e3a6bcec402514bb7ebb77ec946ce | [
"Apache-2.0"
] | 3 | 2021-06-17T14:01:04.000Z | 2022-03-18T09:22:44.000Z | external/vsomeip/interface/vsomeip/application.hpp | lixiaolia/ndk-someip-lib | f4088e87f07e3a6bcec402514bb7ebb77ec946ce | [
"Apache-2.0"
] | 1 | 2022-03-15T06:21:33.000Z | 2022-03-28T06:31:12.000Z | external/vsomeip/interface/vsomeip/application.hpp | lixiaolia/ndk-someip-lib | f4088e87f07e3a6bcec402514bb7ebb77ec946ce | [
"Apache-2.0"
] | 4 | 2021-06-17T14:12:18.000Z | 2021-12-13T11:53:10.000Z | // Copyright (C) 2014-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef VSOMEIP_V3_APPLICATION_HPP_
#... | 41.624731 | 133 | 0.677379 | [
"object",
"vector"
] |
36741206274cd98ac85d86d45b542bc204fd5445 | 6,707 | cpp | C++ | LeapGL/host/libs/libOpenglRender/WindowSurface.cpp | leapdroid-team/leapdroid | 0d086a26f90ba4c40cd9996dd90dafd9544e935a | [
"Apache-2.0"
] | 71 | 2016-06-13T22:43:18.000Z | 2021-12-17T07:50:04.000Z | LeapGL/host/libs/libOpenglRender/WindowSurface.cpp | shugaoye/leapdroid | 2687bdcd319a090dc2a58865c76fdd6be767e86e | [
"Apache-2.0"
] | 78 | 2016-07-14T07:07:16.000Z | 2022-03-14T00:43:48.000Z | LeapGL/host/libs/libOpenglRender/WindowSurface.cpp | shugaoye/leapdroid | 2687bdcd319a090dc2a58865c76fdd6be767e86e | [
"Apache-2.0"
] | 39 | 2016-07-01T01:07:50.000Z | 2021-08-08T14:31:14.000Z | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 28.299578 | 81 | 0.646936 | [
"object"
] |
367769aef06fcd4566ca0538ff09bcd456fc9edb | 15,256 | cpp | C++ | arangod/Aql/StandaloneCalculation.cpp | LLcat1217/arangodb | 67c51272915699e0a489e1f8d9da786f4226221a | [
"Apache-2.0"
] | null | null | null | arangod/Aql/StandaloneCalculation.cpp | LLcat1217/arangodb | 67c51272915699e0a489e1f8d9da786f4226221a | [
"Apache-2.0"
] | null | null | null | arangod/Aql/StandaloneCalculation.cpp | LLcat1217/arangodb | 67c51272915699e0a489e1f8d9da786f4226221a | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2022 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | 39.117949 | 80 | 0.652989 | [
"object"
] |
368e45a5f5339856cf90c43b240dd7e56ccb5b0c | 2,030 | cpp | C++ | Fog/FogInitExpr.cpp | UltimateScript/FOG | edc96d916fc299f0a822f8c534a4e7487c0e3ea2 | [
"BSD-3-Clause"
] | null | null | null | Fog/FogInitExpr.cpp | UltimateScript/FOG | edc96d916fc299f0a822f8c534a4e7487c0e3ea2 | [
"BSD-3-Clause"
] | 2 | 2021-07-07T17:31:49.000Z | 2021-07-16T11:40:38.000Z | Fog/FogInitExpr.cpp | OuluLinux/FOG | edc96d916fc299f0a822f8c534a4e7487c0e3ea2 | [
"BSD-3-Clause"
] | null | null | null | #include <Fog/FogIncludeAll.h>
TYPEINFO_SINGLE(FogInitExpr, Super)
FOGTOKEN_LEAF_IMPL(FogInitExpr)
bool FogInitExpr::emit(FogEmitContext& emitContext) const {
emitContext.emit_space_and_text(" = ");
expr().emit(emitContext);
return true;
}
size_t FogInitExpr::executable_tokens() const { return 1 + expr... | 31.71875 | 131 | 0.762562 | [
"object"
] |
36910397134aeb221aa67085b13f8581dd0f34dc | 4,328 | cpp | C++ | src/tests/dray/t_dray_subdivision.cpp | LLNL/devil_ray | 6ab59dd740a5fb1e04967e982c5c6d4c7507f4cb | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 14 | 2019-12-17T17:40:32.000Z | 2021-12-13T20:32:32.000Z | src/tests/dray/t_dray_subdivision.cpp | LLNL/devil_ray | 6ab59dd740a5fb1e04967e982c5c6d4c7507f4cb | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 72 | 2019-12-21T16:55:38.000Z | 2022-03-22T20:40:13.000Z | src/tests/dray/t_dray_subdivision.cpp | LLNL/devil_ray | 6ab59dd740a5fb1e04967e982c5c6d4c7507f4cb | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 3 | 2020-02-21T18:06:57.000Z | 2021-12-03T18:39:48.000Z | // Copyright 2019 Lawrence Livermore National Security, LLC and other
// Devil Ray Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include "gtest/gtest.h"
#include "t_utils.hpp"
#include "dray/Element/bernstein_basis.hpp"
#include "dray/GridFunction/mesh.hpp"
... | 32.298507 | 107 | 0.564002 | [
"mesh"
] |
369492ea2dc06dc551804377d51dea9469d8824b | 8,904 | cpp | C++ | nudg++/trunk/Src/Examples2D/EulerShock2D/EulerLimiter2D.cpp | Notargets/nodal-dg | 1866dbdfeeff34b7586e70d308dbfe42a2b59844 | [
"MIT"
] | 93 | 2015-01-26T17:48:24.000Z | 2022-03-16T10:26:07.000Z | nudg++/trunk/Src/Examples2D/EulerShock2D/EulerLimiter2D.cpp | Notargets/nodal-dg | 1866dbdfeeff34b7586e70d308dbfe42a2b59844 | [
"MIT"
] | 4 | 2016-01-27T02:45:40.000Z | 2021-11-26T11:50:08.000Z | nudg++/trunk/Src/Examples2D/EulerShock2D/EulerLimiter2D.cpp | Notargets/nodal-dg | 1866dbdfeeff34b7586e70d308dbfe42a2b59844 | [
"MIT"
] | 80 | 2015-04-03T18:44:50.000Z | 2022-03-30T19:25:22.000Z | // EulerLimiter2D.m
// function [LQ] = EulerLimiter2D(Q, SolutionBC, time)
// 2007/07/03
//---------------------------------------------------------
#include "NDGLib_headers.h"
#include "EulerShock2D.h"
//---------------------------------------------------------
DMat& EulerShock2D::EulerLimiter2D(const DMat& Qin, dou... | 39.39823 | 104 | 0.605571 | [
"3d"
] |
36973f7c24d016a7de6b28b85c8d0d77545ccab2 | 11,476 | cpp | C++ | src/JSON/Generator.cpp | zhiqiang-hu/Serial-Studio | 408a25c842ef2ef59c590fca50277568c3466536 | [
"MIT"
] | null | null | null | src/JSON/Generator.cpp | zhiqiang-hu/Serial-Studio | 408a25c842ef2ef59c590fca50277568c3466536 | [
"MIT"
] | null | null | null | src/JSON/Generator.cpp | zhiqiang-hu/Serial-Studio | 408a25c842ef2ef59c590fca50277568c3466536 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020-2022 Alex Spataru <https://github.com/alex-spataru>
*
* 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 r... | 31.269755 | 90 | 0.570843 | [
"object"
] |
36a4ebaaaa52e066005a9169969b9f4adac2de0a | 3,154 | cpp | C++ | kickstart/2019b3.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | 1 | 2020-04-04T14:56:12.000Z | 2020-04-04T14:56:12.000Z | kickstart/2019b3.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | kickstart/2019b3.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef long double ld;
typedef complex<ld> cd;
typedef pair<int, int> pi;
typedef pair<ll,ll> pl;
typedef pair<double,double> pd;
typedef ve... | 26.066116 | 107 | 0.557387 | [
"vector"
] |
36a953fcb812c3e2c7078f557a6929c9ee7d2855 | 12,737 | cpp | C++ | tests/final_chain_test.cpp | kostdima/taraxa | 61e9a50a60049c3f989efaf6970cd99a74896767 | [
"MIT"
] | 3 | 2021-10-05T18:48:57.000Z | 2021-10-05T18:55:27.000Z | tests/final_chain_test.cpp | cybernekit/taraxa-node | 585013f40d9377272bfd2db522d4caee414cf91d | [
"MIT"
] | null | null | null | tests/final_chain_test.cpp | cybernekit/taraxa-node | 585013f40d9377272bfd2db522d4caee414cf91d | [
"MIT"
] | null | null | null | #include "chain/final_chain.hpp"
#include <libdevcore/TrieHash.h>
#include <optional>
#include <vector>
#include "chain/chain_config.hpp"
#include "util_test/gtest.hpp"
namespace taraxa::final_chain {
using namespace std;
struct advance_check_opts {
bool dont_assume_no_logs = 0;
bool dont_assume_all_trx_succes... | 45.981949 | 117 | 0.69671 | [
"vector"
] |
36abd34b18dce11bcf266a2f5f9c315eaa87fdb6 | 1,581 | cpp | C++ | Demo/AdvancedCommands.cpp | Photorithm/Events | 3d57db33905555003643b9b4dd6b22e8e6342ebe | [
"MIT"
] | null | null | null | Demo/AdvancedCommands.cpp | Photorithm/Events | 3d57db33905555003643b9b4dd6b22e8e6342ebe | [
"MIT"
] | null | null | null | Demo/AdvancedCommands.cpp | Photorithm/Events | 3d57db33905555003643b9b4dd6b22e8e6342ebe | [
"MIT"
] | 1 | 2022-01-14T20:25:36.000Z | 2022-01-14T20:25:36.000Z | /**
* Created by TekuConcept on June 12, 2017
*/
#include <iostream>
#include <memory>
#include "FunctionCommand.h"
#include "StaticCommand.h"
#define DMSG(x) std::cout << x << std::endl
#define EVENT_PTR std::shared_ptr<FunctionCommand<Sender, CustomArgs>>
#define EVENT_MK std::make_shared<FunctionComma... | 27.258621 | 95 | 0.650854 | [
"object"
] |
36ac8d167e312a950a0f032a658a11f27b53d00c | 13,523 | cpp | C++ | src/bip/bip38.cpp | deocoin/sibcoin | 7263a8850e65aa158e3a33f0f8c014db6de633f5 | [
"MIT"
] | null | null | null | src/bip/bip38.cpp | deocoin/sibcoin | 7263a8850e65aa158e3a33f0f8c014db6de633f5 | [
"MIT"
] | null | null | null | src/bip/bip38.cpp | deocoin/sibcoin | 7263a8850e65aa158e3a33f0f8c014db6de633f5 | [
"MIT"
] | 1 | 2020-03-30T11:55:38.000Z | 2020-03-30T11:55:38.000Z | #include <string>
#include <sstream>
#include <iomanip>
#include <iostream>
#include <vector>
#include <cstring>
#include "crypto.h"
#include "crypto_scrypt.h"
#include "bip38.h"
#define PASSFACTOR_SIZE 32
#define PASSPHRASE_MAGIC_SIZE 8
#define PASSPHRASE_SIZE (PASSPHRASE_MAGIC_SIZE + OWNERSALT_SIZE + 33)
#define DE... | 34.497449 | 140 | 0.68158 | [
"vector"
] |
a5df46c94f42f98e02506ed120763edf0f857ffe | 6,769 | cpp | C++ | third_party/llvm-10.0/llvm/lib/Target/ARM/MVEVPTBlockPass.cpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 1,570 | 2016-06-30T10:40:04.000Z | 2022-03-31T01:47:33.000Z | third_party/llvm-10.0/llvm/lib/Target/ARM/MVEVPTBlockPass.cpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 59 | 2019-02-26T18:57:27.000Z | 2020-08-04T20:49:55.000Z | third_party/llvm-10.0/llvm/lib/Target/ARM/MVEVPTBlockPass.cpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 253 | 2016-06-30T18:57:10.000Z | 2022-03-25T03:57:40.000Z | //===-- MVEVPTBlockPass.cpp - Insert MVE VPT blocks -----------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 33.509901 | 80 | 0.664943 | [
"object"
] |
a5e2273ccfe5ce77eb5251f1f7378cd2da40e4ef | 453 | cpp | C++ | Example/src/Vertex.cpp | pw1316/Brep | 3a5b87dd1ca5bc5ab6d376feae1812547e6b0d11 | [
"MIT"
] | 2 | 2020-11-22T05:51:04.000Z | 2021-04-04T16:02:08.000Z | Example/src/Vertex.cpp | pw1316/Brep | 3a5b87dd1ca5bc5ab6d376feae1812547e6b0d11 | [
"MIT"
] | null | null | null | Example/src/Vertex.cpp | pw1316/Brep | 3a5b87dd1ca5bc5ab6d376feae1812547e6b0d11 | [
"MIT"
] | 5 | 2018-03-21T16:28:26.000Z | 2022-03-06T18:41:20.000Z | #include "Vertex.h"
#include "Mesh.h"
#include "HalfEdge.h"
Vertex::Vertex(float x, float y, float z, Mesh *m)
: x(x), y(y), z(z), id(m->numVertices)
{
m->addVertex(this);
r = g = b = 0.0;
}
Vertex::Vertex(float x, float y, float z)
{
this->x=x;
this->y=y;
this->z=z;
r = g = b = 0.0;
}... | 15.62069 | 50 | 0.518764 | [
"mesh"
] |
a5e88c62ab8df7e4168b57381d18d1ddfaeecdd7 | 3,814 | cpp | C++ | src/writer/verilog/dataflow_table.cpp | robtaylor/iroha | e7713910ee64ca98f999b98b0c77c02fcfe2da09 | [
"BSD-3-Clause"
] | 34 | 2016-02-07T17:43:55.000Z | 2021-12-18T12:01:08.000Z | src/writer/verilog/dataflow_table.cpp | robtaylor/iroha | e7713910ee64ca98f999b98b0c77c02fcfe2da09 | [
"BSD-3-Clause"
] | 5 | 2016-04-12T09:27:31.000Z | 2021-06-29T10:59:18.000Z | src/writer/verilog/dataflow_table.cpp | robtaylor/iroha | e7713910ee64ca98f999b98b0c77c02fcfe2da09 | [
"BSD-3-Clause"
] | 5 | 2015-12-26T10:58:46.000Z | 2021-06-25T18:58:40.000Z | #include "writer/verilog/dataflow_table.h"
#include "iroha/i_design.h"
#include "iroha/resource_attr.h"
#include "writer/module_template.h"
#include "writer/verilog/dataflow_state.h"
#include "writer/verilog/insn_writer.h"
#include "writer/verilog/module.h"
#include "writer/verilog/state.h"
namespace iroha {
namespac... | 26.671329 | 72 | 0.643419 | [
"vector"
] |
a5ec08cb911ec960e4ac10f52921942b98355e16 | 3,379 | cpp | C++ | src/BipartiteNetwork.cpp | gstonge/schon | 3c02a9780ef3e1136dd61921c0cdb8124b80b01a | [
"MIT"
] | null | null | null | src/BipartiteNetwork.cpp | gstonge/schon | 3c02a9780ef3e1136dd61921c0cdb8124b80b01a | [
"MIT"
] | null | null | null | src/BipartiteNetwork.cpp | gstonge/schon | 3c02a9780ef3e1136dd61921c0cdb8124b80b01a | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2020 Guillaume St-Onge
*
* 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... | 31.877358 | 81 | 0.664102 | [
"vector"
] |
a5ed69a2ff835ce1eb8ad247ffadfe356b3a72ae | 20,204 | hpp | C++ | include/System/Diagnostics/TraceListener.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/Diagnostics/TraceListener.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/Diagnostics/TraceListener.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.MarshalByRefObject
#... | 56.435754 | 274 | 0.727777 | [
"vector"
] |
a5edab55504ff675afb0e2cd87f612afb9caa9c9 | 1,691 | cpp | C++ | raspberry_app/robo/main.cpp | lothar1998/robo | b1c83496ac5392ed3c91c9a5e21b52ebdcc1b37d | [
"MIT"
] | null | null | null | raspberry_app/robo/main.cpp | lothar1998/robo | b1c83496ac5392ed3c91c9a5e21b52ebdcc1b37d | [
"MIT"
] | null | null | null | raspberry_app/robo/main.cpp | lothar1998/robo | b1c83496ac5392ed3c91c9a5e21b52ebdcc1b37d | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include "path.h"
#define _DIM_X 64
#define _DIM_Y 32
using namespace std;
int main()
{
fstream file;
file.open("examples/map2.txt", ios::in);
char temp;
auto **wsk = new int *[_DIM_X];
for (int i = 0; i < _DIM_X; i++)
wsk[i] = new int[_DIM_Y];
... | 18.582418 | 65 | 0.442342 | [
"vector"
] |
a5f1141d1e8538a8f7865dbb4b13cd42f4f626e9 | 1,605 | hpp | C++ | include/openpose/face/faceParameters.hpp | gormonn/openpose | 9827ab75d6ee813376da1cb2a3d960c7081e9fa2 | [
"DOC"
] | 717 | 2018-10-31T16:52:42.000Z | 2022-03-31T16:13:47.000Z | include/openpose/face/faceParameters.hpp | ChronousZhang/openpose | 6d3ff8b3361cb5c098294b486a25c9921ad864c2 | [
"DOC"
] | 48 | 2018-11-08T12:16:43.000Z | 2020-08-10T00:24:50.000Z | include/openpose/face/faceParameters.hpp | ChronousZhang/openpose | 6d3ff8b3361cb5c098294b486a25c9921ad864c2 | [
"DOC"
] | 180 | 2018-10-31T18:41:33.000Z | 2022-03-27T23:49:06.000Z | #ifndef OPENPOSE_FACE_FACE_PARAMETERS_HPP
#define OPENPOSE_FACE_FACE_PARAMETERS_HPP
#include <openpose/pose/poseParameters.hpp>
#include <openpose/pose/poseParametersRender.hpp>
namespace op
{
const auto FACE_MAX_FACES = POSE_MAX_PEOPLE;
const auto FACE_NUMBER_PARTS = 70u;
#define FACE_PAIRS_RENDER_GPU \... | 47.205882 | 144 | 0.680374 | [
"vector"
] |
a5f2f5cfd0aaccd6e629629f1b497c829a854186 | 60,543 | cxx | C++ | Pluto/Texture/Texture.cxx | n8vm/Foton | eacec2de9bf53d8fecff387b60604e6227baea28 | [
"MIT"
] | 10 | 2019-12-16T18:04:48.000Z | 2021-05-06T00:40:11.000Z | Pluto/Texture/Texture.cxx | natevm/Foton | eacec2de9bf53d8fecff387b60604e6227baea28 | [
"MIT"
] | 35 | 2019-01-29T21:57:44.000Z | 2019-04-29T02:40:20.000Z | Pluto/Texture/Texture.cxx | natevm/Foton | eacec2de9bf53d8fecff387b60604e6227baea28 | [
"MIT"
] | 1 | 2019-01-19T22:34:00.000Z | 2019-01-19T22:34:00.000Z | #pragma optimize("", off)
#include "./Texture.hxx"
#include "Pluto/Tools/Options.hxx"
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <sys/types.h>
#include <sys/stat.h>
#include <stb_image.h>
#include <stb_image_write.h>
#include <gli/gli.hpp>
Texture Texture::textures[MAX_TEXTURES... | 41.354508 | 183 | 0.700527 | [
"object",
"vector",
"transform"
] |
a5f36e1ba0097fb8edf232f59d33b1881ce108e5 | 3,626 | cpp | C++ | Components/Graphics_ReflectionProbe.cpp | elix22/IogramSource | 3a4ce55d94920e060776b4aa4db710f57a4280bc | [
"MIT"
] | 28 | 2017-03-01T04:09:18.000Z | 2022-02-01T13:33:50.000Z | Components/Graphics_ReflectionProbe.cpp | elix22/IogramSource | 3a4ce55d94920e060776b4aa4db710f57a4280bc | [
"MIT"
] | 3 | 2017-03-09T05:22:49.000Z | 2017-08-02T18:38:05.000Z | Components/Graphics_ReflectionProbe.cpp | elix22/IogramSource | 3a4ce55d94920e060776b4aa4db710f57a4280bc | [
"MIT"
] | 17 | 2017-03-01T14:00:01.000Z | 2022-02-08T06:36:54.000Z | //
// Copyright (c) 2016 - 2017 Mesh Consultants Inc.
// 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, ... | 22.805031 | 109 | 0.706288 | [
"mesh",
"vector",
"transform"
] |
a5f4a864fb4e02a11113d671f8afbf2c5678d52a | 26,610 | cpp | C++ | sge/src/sge/script/internal_calls.cpp | yodasoda1219/sge | d8e099842fd57e5f968083c87fccba2a5df51f19 | [
"Apache-2.0"
] | 4 | 2022-01-02T06:08:34.000Z | 2022-02-20T06:28:01.000Z | sge/src/sge/script/internal_calls.cpp | yodasoda1219/sge | d8e099842fd57e5f968083c87fccba2a5df51f19 | [
"Apache-2.0"
] | null | null | null | sge/src/sge/script/internal_calls.cpp | yodasoda1219/sge | d8e099842fd57e5f968083c87fccba2a5df51f19 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2022 Nora Beda and SGE contributors
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 ... | 36.204082 | 100 | 0.635889 | [
"transform"
] |
a5f5b5b9e4ca06b8ea3f914821aab05fe9bdea74 | 708 | cpp | C++ | LeetCode/56_Merge_Intervals/main.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | 1 | 2020-07-08T23:16:19.000Z | 2020-07-08T23:16:19.000Z | LeetCode/56_Merge_Intervals/main.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | 1 | 2020-05-16T03:12:24.000Z | 2020-05-16T03:14:42.000Z | LeetCode/56_Merge_Intervals/main.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | 2 | 2020-05-16T03:25:16.000Z | 2021-02-10T16:51:25.000Z | class Solution {
public:
vector<vector<int>> merge(vector<vector<int>>& intervals) {
sort(intervals.begin(), intervals.end());
vector<vector<int>> res;
int start = intervals[0][0], end = intervals[0][1];
for (int i = 1; i < intervals.size(); i++) {
if (end >= intervals[i]... | 33.714286 | 65 | 0.474576 | [
"vector"
] |
a5f9afe8e6ae3742a59078aa31b8e072a34cee41 | 19,539 | cpp | C++ | src/effect6.cpp | ksoderbl/christmas-calendar-cpp-sdl2 | 472b685871a6c72dc3763c5c33be25c7e043fbfa | [
"MIT"
] | null | null | null | src/effect6.cpp | ksoderbl/christmas-calendar-cpp-sdl2 | 472b685871a6c72dc3763c5c33be25c7e043fbfa | [
"MIT"
] | null | null | null | src/effect6.cpp | ksoderbl/christmas-calendar-cpp-sdl2 | 472b685871a6c72dc3763c5c33be25c7e043fbfa | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using std::cerr;
using std::string;
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "main.h"
#include "texture.h"
#include "vectormath.h"
#include "util.h"
static GLUquadricObj *qp ... | 21.307525 | 76 | 0.601208 | [
"vector",
"model"
] |
a5fe4d97c97c1e0bbdeb121b09229bcf4ac7bc3c | 24,582 | cc | C++ | prism-games-3.0.beta-src/prism/src/sparse/PS_NondetMultiObj.cc | ga67vib/Algorithms-For-Stochastic-Games | c27f0ab7d57f4500d47d87ee0b5d19551cb2ba45 | [
"MIT"
] | 1 | 2021-09-08T08:42:42.000Z | 2021-09-08T08:42:42.000Z | prism-games-3.0.beta-src/prism/src/sparse/PS_NondetMultiObj.cc | ga67vib/Algorithms-For-Stochastic-Games | c27f0ab7d57f4500d47d87ee0b5d19551cb2ba45 | [
"MIT"
] | null | null | null | prism-games-3.0.beta-src/prism/src/sparse/PS_NondetMultiObj.cc | ga67vib/Algorithms-For-Stochastic-Games | c27f0ab7d57f4500d47d87ee0b5d19551cb2ba45 | [
"MIT"
] | null | null | null | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Vojtech Forejt <vojtech.forejt@cs.ox.ac.uk> (University of Oxford)
// * Dave Parker <d.a.parker@cs.bham.ac.uk> (University of Birmingham/Oxford)
//
//--------------------------------------------... | 32.515873 | 180 | 0.606257 | [
"vector",
"model"
] |
5707943bad7655d1f523162967ee140d2c38c0c4 | 8,762 | hpp | C++ | include/basalt/linearization/imu_block.hpp | kwang-12/basalt-mirror | 9dd7b2c8031283ec033211bc90ad70aa70323eaa | [
"BSD-3-Clause"
] | 445 | 2019-04-18T01:13:58.000Z | 2022-03-31T20:54:45.000Z | include/basalt/linearization/imu_block.hpp | kwang-12/basalt-mirror | 9dd7b2c8031283ec033211bc90ad70aa70323eaa | [
"BSD-3-Clause"
] | null | null | null | include/basalt/linearization/imu_block.hpp | kwang-12/basalt-mirror | 9dd7b2c8031283ec033211bc90ad70aa70323eaa | [
"BSD-3-Clause"
] | 162 | 2019-04-18T09:10:48.000Z | 2022-03-31T08:35:39.000Z | #pragma once
#include <basalt/imu/preintegration.h>
#include <basalt/optimization/accumulator.h>
#include <basalt/utils/imu_types.h>
namespace basalt {
template <class Scalar_>
class ImuBlock {
public:
using Scalar = Scalar_;
using Vec3 = Eigen::Matrix<Scalar, 3, 1>;
using VecX = Eigen::Matrix<Scalar, Eigen:... | 37.127119 | 80 | 0.681351 | [
"model"
] |
570a9d93ba4a58fdc810363f70bcae4a820680b4 | 9,704 | cpp | C++ | PlatformRig/DebuggingDisplays/PipelineAcceleratorDisplay.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | 3 | 2015-12-04T09:16:53.000Z | 2021-05-28T23:22:49.000Z | PlatformRig/DebuggingDisplays/PipelineAcceleratorDisplay.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | null | null | null | PlatformRig/DebuggingDisplays/PipelineAcceleratorDisplay.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | 2 | 2015-03-03T05:32:39.000Z | 2015-12-04T09:16:54.000Z | // Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "PipelineAcceleratorDisplay.h"
#include "../../RenderCore/Techniques/PipelineAccelerator.h"
#include "../../RenderOverlays/DebuggingDisplay.h"
#include "../../RenderOv... | 49.764103 | 252 | 0.739489 | [
"render",
"vector"
] |
570c38a75f22badf9a6d0a132299f666492156d8 | 9,082 | cpp | C++ | models/lnd/clm/src/iac/giac/gcam/cvs/objects/reporting/source/land_allocator_printer.cpp | E3SM-Project/iESM | 2a1013a3d85a11d935f1b2a8187a8bbcd75d115d | [
"BSD-3-Clause-LBNL"
] | 9 | 2018-05-15T02:10:40.000Z | 2020-01-10T18:27:31.000Z | models/lnd/clm/src/iac/giac/gcam/cvs/objects/reporting/source/land_allocator_printer.cpp | zhangyue292/iESM | 2a1013a3d85a11d935f1b2a8187a8bbcd75d115d | [
"BSD-3-Clause-LBNL"
] | 3 | 2018-10-12T18:41:56.000Z | 2019-11-12T15:18:49.000Z | models/lnd/clm/src/iac/giac/gcam/cvs/objects/reporting/source/land_allocator_printer.cpp | zhangyue292/iESM | 2a1013a3d85a11d935f1b2a8187a8bbcd75d115d | [
"BSD-3-Clause-LBNL"
] | 3 | 2018-05-15T02:10:33.000Z | 2021-04-06T17:45:49.000Z | /*
* LEGAL NOTICE
* This computer software was prepared by Battelle Memorial Institute,
* hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830
* with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
* CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
* LIABILITY FOR THE ... | 36.918699 | 101 | 0.689826 | [
"object",
"shape",
"model"
] |
570f10792555600a07c9b5d9bc9321da8ca3c0ba | 9,695 | cpp | C++ | WzBitmap.cpp | flwmxd/WzTools | 224bed3ab3a30ef68973d595f414e82b6c3765b1 | [
"MIT"
] | 57 | 2017-05-07T18:18:52.000Z | 2022-01-23T09:58:10.000Z | WzBitmap.cpp | flwmxd/WzTools | 224bed3ab3a30ef68973d595f414e82b6c3765b1 | [
"MIT"
] | 3 | 2018-01-01T10:06:27.000Z | 2021-02-11T16:29:14.000Z | WzBitmap.cpp | flwmxd/WzTools | 224bed3ab3a30ef68973d595f414e82b6c3765b1 | [
"MIT"
] | 11 | 2017-05-03T04:49:16.000Z | 2021-09-28T11:58:58.000Z | //////////////////////////////////////////////////////////////////////////////
// This file is part of the PharaohStroy MMORPG client //
// Copyright ?2016-2017 Prime Zeng //
// //... | 29.468085 | 120 | 0.544095 | [
"vector"
] |
5721d063032b337208b4be03c388bc2f7c7e6224 | 8,928 | cpp | C++ | most_useful_src.cpp | bharatph/Dot | 9fb2c873d588246408a6eaab00459da0c750d949 | [
"MIT"
] | null | null | null | most_useful_src.cpp | bharatph/Dot | 9fb2c873d588246408a6eaab00459da0c750d949 | [
"MIT"
] | null | null | null | most_useful_src.cpp | bharatph/Dot | 9fb2c873d588246408a6eaab00459da0c750d949 | [
"MIT"
] | null | null | null | #include <iostream>
#include <functional>
#include <future>
#include <vector>
#include <map>
#include <queue>
namespace em
{
template <class Event, typename... EventCallbackType>
class EventManager
{
public:
typedef std::function<void(EventCallbackType...)> EventCallback;
private:
std::map<Event, EventCall... | 24.195122 | 124 | 0.602935 | [
"object",
"vector"
] |
5723004b06fcf4f6aa2ef1bbc12c02e0cfacff52 | 1,262 | cpp | C++ | LeetCode/Problems/Algorithms/#76_MinimumWindowSubstring_sol2_two_pointers_sliding_window_approach_12ms_8.2MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#76_MinimumWindowSubstring_sol2_two_pointers_sliding_window_approach_12ms_8.2MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#76_MinimumWindowSubstring_sol2_two_pointers_sliding_window_approach_12ms_8.2MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
public:
string minWindow(string s, string t) {
// count chars of string t
vector<int> t_cnt(256, 0);
for(char c: t){
t_cnt[c] += 1;
}
// count unique chars of string t
int t_unique_chars = 0;
for(int c = 0; c < ... | 28.681818 | 69 | 0.37084 | [
"vector"
] |
57239ae8548ff7717c60198a1c65918398c251dc | 84,614 | cpp | C++ | nn_runtime/nnrt/ovxlib_delegate.cpp | phytec-mirrors/nn-imx | 58525bf968e8d90004f6d782ad37cea28991a439 | [
"MIT"
] | null | null | null | nn_runtime/nnrt/ovxlib_delegate.cpp | phytec-mirrors/nn-imx | 58525bf968e8d90004f6d782ad37cea28991a439 | [
"MIT"
] | null | null | null | nn_runtime/nnrt/ovxlib_delegate.cpp | phytec-mirrors/nn-imx | 58525bf968e8d90004f6d782ad37cea28991a439 | [
"MIT"
] | null | null | null | /****************************************************************************
*
* Copyright (c) 2020 Vivante Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without ... | 42.864235 | 109 | 0.62934 | [
"shape",
"vector",
"model"
] |
572b3f4dc9c27d3b236973778566e63df2a42695 | 20,773 | cpp | C++ | src/payload_processor/tests/payload_processor_tests.cpp | MelbourneSpaceProgram/msp_flight_software_public | de290a2e7181ac43af1232b2ffbca2db8ec4ecd2 | [
"MIT"
] | 10 | 2018-04-28T04:44:56.000Z | 2022-02-06T21:12:13.000Z | src/payload_processor/tests/payload_processor_tests.cpp | MelbourneSpaceProgram/msp_flight_software_public | de290a2e7181ac43af1232b2ffbca2db8ec4ecd2 | [
"MIT"
] | null | null | null | src/payload_processor/tests/payload_processor_tests.cpp | MelbourneSpaceProgram/msp_flight_software_public | de290a2e7181ac43af1232b2ffbca2db8ec4ecd2 | [
"MIT"
] | 3 | 2019-02-16T03:22:26.000Z | 2022-02-03T14:54:22.000Z | #include <CppUTest/TestHarness.h>
#include <external/nanopb/pb_encode.h>
#include <external/sgp4/sgp4.h>
#include <src/adcs/state_estimators/location_estimator.h>
#include <src/board/i2c/io_expander/io_expander.h>
#include <src/config/satellite.h>
#include <src/config/unit_tests.h>
#include <src/database/circular_buffe... | 41.05336 | 80 | 0.743609 | [
"3d"
] |
573a67cdb8def951e54afc3c37ca4a55e747a85f | 6,473 | cpp | C++ | src/tuner.cpp | mahilab/MEIISim | 05c667f748320a2d506651150ccf25537358bc7d | [
"MIT"
] | null | null | null | src/tuner.cpp | mahilab/MEIISim | 05c667f748320a2d506651150ccf25537358bc7d | [
"MIT"
] | null | null | null | src/tuner.cpp | mahilab/MEIISim | 05c667f748320a2d506651150ccf25537358bc7d | [
"MIT"
] | null | null | null | #define MAHI_GUI_NO_CONSOLE
#include <Mahi/Gui.hpp>
#include <Mahi/Util.hpp>
#include <Mahi/Com.hpp>
#include <thread>
#include <mutex>
#include <atomic>
using namespace mahi::gui;
using namespace mahi::util;
using namespace mahi::com;
struct ScrollingData {
int MaxSize = 1000;
int Offset = 0;
ImVector<I... | 38.529762 | 154 | 0.579021 | [
"vector"
] |
5749e04ecf67013691d79b09908774315fb643e9 | 648 | cpp | C++ | src/Engine/Actors/LightEmitter.cpp | gameraccoon/stealthgame | e91376422d29e9c4aa657db9ef746490a8ef3ae4 | [
"MIT"
] | null | null | null | src/Engine/Actors/LightEmitter.cpp | gameraccoon/stealthgame | e91376422d29e9c4aa657db9ef746490a8ef3ae4 | [
"MIT"
] | 3 | 2017-01-18T22:10:39.000Z | 2017-01-18T22:12:02.000Z | src/Engine/Actors/LightEmitter.cpp | gameraccoon/stealthgame | e91376422d29e9c4aa657db9ef746490a8ef3ae4 | [
"MIT"
] | null | null | null | #include "LightEmitter.h"
LightEmitter::LightEmitter(World *world, Vector2D location, Vector2D scale, Rotator rotation) : Actor(world, location, rotation)
{
this->setType(ActorType::Light);
this->brightness = 1.0f;
this->color = 0xFFFFFFFF;
this->setOriginalSize(Vector2D(10.0f, 10.0f));
Hull geometry;
geometry.... | 20.903226 | 128 | 0.746914 | [
"geometry"
] |
5750b421232b7d7a7fbf479e4a4eb091bb5a1686 | 2,830 | cpp | C++ | main.cpp | TylerMaclay/FluStats | 0039233511682d908712b6c97d6ca88f9ab64f66 | [
"MIT"
] | null | null | null | main.cpp | TylerMaclay/FluStats | 0039233511682d908712b6c97d6ca88f9ab64f66 | [
"MIT"
] | null | null | null | main.cpp | TylerMaclay/FluStats | 0039233511682d908712b6c97d6ca88f9ab64f66 | [
"MIT"
] | null | null | null | //Fluctuation analysis tool
//Tyler Maclay
//Algorithms implemented as described in Rosche & Foster. Methods 2000
//Trying to clone: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2687991/
//ToDo: Create function to calculate chosen statistic across submitted files
//ToDo: Generate an output function so for when m... | 29.175258 | 264 | 0.673498 | [
"vector"
] |
5751dc174cbfd3228b25ce8bf2cb1a5976ab7b34 | 5,869 | hpp | C++ | src/qlearn/qlearn.hpp | c00k133/q-learning-project | 08e0a5dabea09a6a8494ebb056fe3ed25d1abd7e | [
"MIT"
] | null | null | null | src/qlearn/qlearn.hpp | c00k133/q-learning-project | 08e0a5dabea09a6a8494ebb056fe3ed25d1abd7e | [
"MIT"
] | null | null | null | src/qlearn/qlearn.hpp | c00k133/q-learning-project | 08e0a5dabea09a6a8494ebb056fe3ed25d1abd7e | [
"MIT"
] | null | null | null | #ifndef Q_LEARNING_Q_LEARN
#define Q_LEARNING_Q_LEARN
#include <memory>
#include <string>
#include <vector>
#include "sfml-drawer.hpp"
#include "physics.hpp"
#include "brain.hpp"
#define QLEARN_DEFAULT_NAME "Q-Learning"
#define QLEARN_DEFAULT_WINDOW_WIDTH 1200
#define QLEARN_DEFAULT_WINDOW_HEIGHT 600
#define QLEARN_... | 33.158192 | 80 | 0.684444 | [
"object",
"vector"
] |
57520d27f207001ccf438b8d9f41c061843313fa | 18,642 | cpp | C++ | graph_replanning/src/test/test_replanner.cpp | JRL-CARI-CNR-UNIBS/online_replanner | 67f5af2563986182804bab9471325a3505865e55 | [
"BSD-3-Clause"
] | 1 | 2021-11-10T04:03:23.000Z | 2021-11-10T04:03:23.000Z | graph_replanning/src/test/test_replanner.cpp | JRL-CARI-CNR-UNIBS/online_replanner | 67f5af2563986182804bab9471325a3505865e55 | [
"BSD-3-Clause"
] | null | null | null | graph_replanning/src/test/test_replanner.cpp | JRL-CARI-CNR-UNIBS/online_replanner | 67f5af2563986182804bab9471325a3505865e55 | [
"BSD-3-Clause"
] | null | null | null | #include <ros/ros.h>
#include <graph_core/parallel_moveit_collision_checker.h>
#include <graph_replanning/trajectory.h>
#include <moveit/robot_state/robot_state.h>
#include <graph_replanning/replanner.h>
#include <object_loader_msgs/AddObjects.h>
#include <object_loader_msgs/RemoveObjects.h>
int main(int argc, char **... | 31.812287 | 162 | 0.6355 | [
"object",
"vector"
] |
575658df4d42b3f4ab3cc173bcd16232ec4da070 | 6,116 | cpp | C++ | Sources/Internal/Platform/TemplateWin32/MovieViewControlWin32.cpp | Serviak/dava.engine | d51a26173a3e1b36403f846ca3b2e183ac298a1a | [
"BSD-3-Clause"
] | 1 | 2020-11-14T10:18:24.000Z | 2020-11-14T10:18:24.000Z | Sources/Internal/Platform/TemplateWin32/MovieViewControlWin32.cpp | Serviak/dava.engine | d51a26173a3e1b36403f846ca3b2e183ac298a1a | [
"BSD-3-Clause"
] | null | null | null | Sources/Internal/Platform/TemplateWin32/MovieViewControlWin32.cpp | Serviak/dava.engine | d51a26173a3e1b36403f846ca3b2e183ac298a1a | [
"BSD-3-Clause"
] | 1 | 2020-09-05T21:16:17.000Z | 2020-09-05T21:16:17.000Z | #include "Base/Platform.h"
#if defined(__DAVAENGINE_WIN32__)
#if !defined(DISABLE_NATIVE_MOVIEVIEW)
#include "Platform/TemplateWin32/MovieViewControlWin32.h"
#include "Render/Image/Image.h"
#include "Platform/TemplateWin32/FfmpegPlayer.h"
#include "Render/PixelFormatDescriptor.h"
#include "UI/UIControl.h"
namespace... | 29.834146 | 190 | 0.684107 | [
"render"
] |
5758ade82d2366e9e2ec89b01a04f4ff00655c11 | 3,098 | cpp | C++ | src/nm-touchtable/DeviceAcquisitionTcpServer.cpp | neuronalmotion/raspberry-touchtable | 921101fe0cf3c9690b6a13aecf6aa1734fe686ca | [
"Apache-2.0"
] | 3 | 2015-12-31T03:12:30.000Z | 2017-08-07T18:28:53.000Z | src/nm-touchtable/DeviceAcquisitionTcpServer.cpp | GuillaumeLazar/raspberry-touchtable | 921101fe0cf3c9690b6a13aecf6aa1734fe686ca | [
"Apache-2.0"
] | null | null | null | src/nm-touchtable/DeviceAcquisitionTcpServer.cpp | GuillaumeLazar/raspberry-touchtable | 921101fe0cf3c9690b6a13aecf6aa1734fe686ca | [
"Apache-2.0"
] | null | null | null | #include "DeviceAcquisitionTcpServer.h"
#include <QDebug>
DeviceAcquisitionTcpServer::DeviceAcquisitionTcpServer(QObject *parent) :
DeviceAcquisition(parent)
{
objects = vector<Rect>(1);
objectsEmpty = vector<Rect>(0);
mTcpServer = new QTcpServer();
int port = 20140;
if (!mTcpServer->listen... | 28.685185 | 127 | 0.637185 | [
"vector"
] |
575c1bd19e914bd2b471b38aaaf8877ea37f9218 | 2,455 | cpp | C++ | include/ops/declarable/impl/LegacyPairwiseTransformOp.cpp | gluonhq/libnd4j | 6be4678caf6f820f5b0fd1a5392c0941936f2e43 | [
"Apache-2.0"
] | null | null | null | include/ops/declarable/impl/LegacyPairwiseTransformOp.cpp | gluonhq/libnd4j | 6be4678caf6f820f5b0fd1a5392c0941936f2e43 | [
"Apache-2.0"
] | null | null | null | include/ops/declarable/impl/LegacyPairwiseTransformOp.cpp | gluonhq/libnd4j | 6be4678caf6f820f5b0fd1a5392c0941936f2e43 | [
"Apache-2.0"
] | 1 | 2022-03-25T06:48:25.000Z | 2022-03-25T06:48:25.000Z | //
// Created by raver119 on 16.10.2017.
//
#include <helpers/ShapeUtils.h>
#include <ops/declarable/LegacyPairwiseTransformOp.h>
namespace nd4j {
namespace ops {
template <typename T>
LegacyPairwiseTransformOp<T>::LegacyPairwiseTransformOp() : LegacyOp<T>::LegacyOp(2) {
// just a no-... | 37.769231 | 204 | 0.61833 | [
"shape"
] |
5760b023bd3fc9be2508c2d9ad4f984e484dbab3 | 8,071 | cpp | C++ | modules/core/src/sampling.cpp | acnazarejr/ssiglib | 75c5c59bf7860796a8d9b4ac40fdf49d7c79a07e | [
"BSD-3-Clause"
] | null | null | null | modules/core/src/sampling.cpp | acnazarejr/ssiglib | 75c5c59bf7860796a8d9b4ac40fdf49d7c79a07e | [
"BSD-3-Clause"
] | null | null | null | modules/core/src/sampling.cpp | acnazarejr/ssiglib | 75c5c59bf7860796a8d9b4ac40fdf49d7c79a07e | [
"BSD-3-Clause"
] | null | null | null | /*L*****************************************************************************
*
* Copyright (c) 2015, Smart Surveillance Interest Group, all rights reserved.
*
* IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
*
* By downloading, copying, installing or using the software you agree to this
* lic... | 35.871111 | 80 | 0.611696 | [
"vector"
] |
576e4bf48f846ce3940d648de17387d008c63ed7 | 9,890 | cc | C++ | mindspore/ccsrc/plugin/device/ascend/hal/device/ge_runtime/task/hccl_task.cc | zhz44/mindspore | 6044d34074c8505dd4b02c0a05419cbc32a43f86 | [
"Apache-2.0"
] | 1 | 2022-03-05T02:59:21.000Z | 2022-03-05T02:59:21.000Z | mindspore/ccsrc/plugin/device/ascend/hal/device/ge_runtime/task/hccl_task.cc | zhz44/mindspore | 6044d34074c8505dd4b02c0a05419cbc32a43f86 | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/plugin/device/ascend/hal/device/ge_runtime/task/hccl_task.cc | zhz44/mindspore | 6044d34074c8505dd4b02c0a05419cbc32a43f86 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2019-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 applicabl... | 44.54955 | 120 | 0.737007 | [
"vector",
"model",
"transform"
] |
57865deebe787434d89f6c6769bffa1c3bc16603 | 2,034 | cpp | C++ | problemes/probleme2xx/probleme248.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | 6 | 2015-10-13T17:07:21.000Z | 2018-05-08T11:50:22.000Z | problemes/probleme2xx/probleme248.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | null | null | null | problemes/probleme2xx/probleme248.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | null | null | null | #include "problemes.h"
#include "arithmetique.h"
#include "premiers.h"
#include "combinatoire.h"
#include "racine.h"
typedef unsigned long long nombre;
typedef std::vector<nombre> vecteur;
namespace {
bool est_premier(nombre n, const std::set<nombre> &premiers) {
if (premiers.find(n) != premiers.end())
... | 27.863014 | 102 | 0.539331 | [
"vector"
] |
578b01d9ddf076a74f9811d256d3e5e7c5bd12c6 | 1,546 | cpp | C++ | cdf/src/cdf.cpp | sindack/c3po | df54425693014cfc0cbe10be897364df00f8523e | [
"Apache-2.0"
] | 46 | 2019-02-18T02:21:27.000Z | 2022-03-01T15:39:43.000Z | cdf/src/cdf.cpp | skulkarnigslab/c3po | deaea91d78c21e987a9f1cb6e95b6407ff059dbb | [
"Apache-2.0"
] | 63 | 2019-02-25T18:14:41.000Z | 2022-02-24T17:54:05.000Z | cdf/src/cdf.cpp | skulkarnigslab/c3po | deaea91d78c21e987a9f1cb6e95b6407ff059dbb | [
"Apache-2.0"
] | 36 | 2019-02-19T06:35:07.000Z | 2022-03-17T21:41:44.000Z | /*
* Copyright 2019-present Open Networking Foundation
* Copyright (c) 2017 Sprint
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <string>
#include <iostream>
#include <sstream>
#include "cdf.h"
#include "options.h"
CDF::CDF()
{
m_rf = NULL;
}
CDF::~CDF()
{
}
bool CDF::start()
{
bool result = true;
... | 18.626506 | 84 | 0.569858 | [
"object"
] |
c23a66a17596405b8036174f48520d9e6a5fd18b | 9,655 | hpp | C++ | Lib/Chip/CM7/STMicro/STM32F7x3/CRYP.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/CM7/STMicro/STM32F7x3/CRYP.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/CM7/STMicro/STM32F7x3/CRYP.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Cryptographic processor
namespace CrypCr{ ///<control register
using Addr = Register::Address<0x50060000,0xfffb8000,0x00000000,std::uint32_t>;
///Key size selection
constexpr Register::FieldLocation<Addr,Register::maskFrom... | 62.694805 | 126 | 0.700466 | [
"vector"
] |
c23c0ee30d4563b07b523d36b254bd983d332534 | 12,398 | cpp | C++ | DirTree.cpp | matthias-christen/CdCoverCreator | edb223c2cf33ab3fb72d84ce2a9bce8500408c2a | [
"MIT"
] | null | null | null | DirTree.cpp | matthias-christen/CdCoverCreator | edb223c2cf33ab3fb72d84ce2a9bce8500408c2a | [
"MIT"
] | null | null | null | DirTree.cpp | matthias-christen/CdCoverCreator | edb223c2cf33ab3fb72d84ce2a9bce8500408c2a | [
"MIT"
] | null | null | null | // DirTree.cpp: implementation of the CDirTree class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CdCoverCreator2.h"
#include "DirTree.h"
#include "MainFrm.h"
#include <math.h>
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
... | 28.765661 | 149 | 0.61518 | [
"render"
] |
c241d9eb874e843254458a1cab173ba16728b5b0 | 3,894 | cpp | C++ | plugins/community/repos/Bogaudio/src/ADSR.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 233 | 2018-07-02T16:49:36.000Z | 2022-02-27T21:45:39.000Z | plugins/community/repos/Bogaudio/src/ADSR.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-09T11:32:15.000Z | 2022-01-07T01:45:43.000Z | plugins/community/repos/Bogaudio/src/ADSR.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-14T21:55:30.000Z | 2021-05-04T04:20:34.000Z |
#include "ADSR.hpp"
void ADSR::onReset() {
_gateTrigger.reset();
_envelope.reset();
_modulationStep = modulationSteps;
}
void ADSR::onSampleRateChange() {
_envelope.setSampleRate(engineGetSampleRate());
_modulationStep = modulationSteps;
}
void ADSR::step() {
lights[LINEAR_LIGHT].value = _linearMode = params[... | 39.734694 | 122 | 0.742938 | [
"model"
] |
c24a6a9439af2f912cce6e291f3fa9d48e573836 | 1,356 | hpp | C++ | include/polarai/core/tensor/Accessor.hpp | alexbatashev/athena | eafbb1e16ed0b273a63a20128ebd4882829aa2db | [
"MIT"
] | 2 | 2020-07-16T06:42:27.000Z | 2020-07-16T06:42:28.000Z | include/polarai/core/tensor/Accessor.hpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | include/polarai/core/tensor/Accessor.hpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
// Copyright (c) 2020 PolarAI. All rights reserved.
//
// Licensed under MIT license.
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
//... | 28.851064 | 80 | 0.591445 | [
"shape",
"vector"
] |
c24b840023e5dd52b4ae87c95020b6ad35e34247 | 5,281 | cpp | C++ | Missile.cpp | micromiss/Urho3D-AirFighter | 7d5ed4bf4db1d8a3f5d46d46a9938242b7376c24 | [
"MIT"
] | 11 | 2016-12-01T02:45:10.000Z | 2021-06-17T12:36:52.000Z | Missile.cpp | micromiss/Urho3D-AirFighter | 7d5ed4bf4db1d8a3f5d46d46a9938242b7376c24 | [
"MIT"
] | 2 | 2016-11-30T16:09:58.000Z | 2016-12-01T15:28:50.000Z | Missile.cpp | micromiss/Urho3D-AirFighter | 7d5ed4bf4db1d8a3f5d46d46a9938242b7376c24 | [
"MIT"
] | 9 | 2016-12-01T06:03:29.000Z | 2021-03-27T17:49:43.000Z | #include <Urho3D/Core/Context.h>
#include <Urho3D/Graphics/AnimationController.h>
#include <Urho3D/Graphics/Graphics.h>
#include <Urho3D/Resource/ResourceCache.h>
#include <Urho3D/Physics/PhysicsEvents.h>
#include <Urho3D/Physics/PhysicsWorld.h>
#include <Urho3D/Physics/RigidBody.h>
#include <Urho3D/Scene/Scene.h>
#inc... | 33.00625 | 102 | 0.748911 | [
"vector"
] |
c24d7d0d43bea3e6d57ee9470b2f6feb2d7f3752 | 2,676 | hpp | C++ | Libraries/baba-is-auto/Includes/baba-is-auto/Games/Game.hpp | JYPark09/BabaIsAgent | 69afdc14af3e7a131b31600dcf13858df7c30c5e | [
"MIT"
] | 25 | 2019-08-04T13:54:48.000Z | 2021-01-25T06:28:02.000Z | Libraries/baba-is-auto/Includes/baba-is-auto/Games/Game.hpp | JYPark09/BabaIsAgent | 69afdc14af3e7a131b31600dcf13858df7c30c5e | [
"MIT"
] | 24 | 2019-08-05T04:58:28.000Z | 2021-01-16T15:56:03.000Z | Libraries/baba-is-auto/Includes/baba-is-auto/Games/Game.hpp | JYPark09/BabaIsAgent | 69afdc14af3e7a131b31600dcf13858df7c30c5e | [
"MIT"
] | 3 | 2019-08-05T16:57:45.000Z | 2020-01-05T12:54:32.000Z | // Copyright (c) 2020 Chris Ohk
// I am making my contributions/submissions to this project solely in our
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#ifndef BABA_IS_AUTO_GAME_HPP
#define BABA_IS_AUTO_GAME_HPP
#include <baba-is-auto/Enums/RuleEnums.hpp>
... | 27.875 | 75 | 0.661435 | [
"object"
] |
c252437def9af6017c4cd632399561181e13dc6c | 10,166 | hpp | C++ | render_algorithms/dscp4/libdscp4/DSCP4Render.hpp | itsermo/holovideo-algorithms | 6b39f896a8c61d2a82a7314efc583940d685dd55 | [
"BSD-3-Clause"
] | 3 | 2018-02-26T19:53:10.000Z | 2020-01-16T14:30:02.000Z | render_algorithms/dscp4/libdscp4/DSCP4Render.hpp | itsermo/holovideo-algorithms | 6b39f896a8c61d2a82a7314efc583940d685dd55 | [
"BSD-3-Clause"
] | null | null | null | render_algorithms/dscp4/libdscp4/DSCP4Render.hpp | itsermo/holovideo-algorithms | 6b39f896a8c61d2a82a7314efc583940d685dd55 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#ifdef DSCP4_HAVE_LOG4CXX
#include <log4cxx/logger.h>
#include <log4cxx/patternlayout.h>
#include <log4cxx/consoleappender.h>
#include <log4cxx/basicconfigurator.h>
#else
#define LOG4CXX_TRACE(logger, expression)
#define LOG4CXX_DEBUG(logger, expression)
#define LOG4CXX_INFO(logger, expression) ... | 30.437126 | 207 | 0.747688 | [
"mesh",
"render",
"vector",
"model",
"3d"
] |
c2554525a94f78813f2003a0ce6eb0bdc6d577f5 | 8,263 | hpp | C++ | main/src/vtr_navigation/include/vtr_navigation/map_projector.hpp | utiasASRL/vtr3 | b4edca56a19484666d3cdb25a032c424bdc6f19d | [
"Apache-2.0"
] | 32 | 2021-09-15T03:42:42.000Z | 2022-03-26T10:40:01.000Z | main/src/vtr_navigation/include/vtr_navigation/map_projector.hpp | shimp-t/vtr3 | bdcad784ffe26fabfa737d0e195bcb3bacb930c3 | [
"Apache-2.0"
] | 7 | 2021-09-18T19:18:15.000Z | 2022-02-02T11:15:40.000Z | main/src/vtr_navigation/include/vtr_navigation/map_projector.hpp | shimp-t/vtr3 | bdcad784ffe26fabfa737d0e195bcb3bacb930c3 | [
"Apache-2.0"
] | 7 | 2021-09-18T01:31:28.000Z | 2022-03-14T05:09:37.000Z | // Copyright 2021, Autonomous Space Robotics Lab (ASRL)
//
// 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... | 34.573222 | 80 | 0.737384 | [
"object",
"vector",
"transform"
] |
c258a0657aef2655ab73e1690fc4de81790fed35 | 21,347 | cpp | C++ | board_data_structures/data_structures.cpp | Alich13/Colons_Game | b8c1e0af73bb2cc3f54ae9c8aeee0aa2aab83ce2 | [
"MIT"
] | null | null | null | board_data_structures/data_structures.cpp | Alich13/Colons_Game | b8c1e0af73bb2cc3f54ae9c8aeee0aa2aab83ce2 | [
"MIT"
] | null | null | null | board_data_structures/data_structures.cpp | Alich13/Colons_Game | b8c1e0af73bb2cc3f54ae9c8aeee0aa2aab83ce2 | [
"MIT"
] | null | null | null | #include "data_structures.h"
#include <cmath>
//----------------------------------------------------------------------------------------------//
/*&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& T_map methodes &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*/
//-----------------------------------------------------------------------... | 30.066197 | 156 | 0.543355 | [
"object",
"vector"
] |
c25c41889b50424ef332f7f86b31fe226a5f16bf | 770 | hpp | C++ | include/blackjackdeck.hpp | guneykayim/blackjack | 39e9fad48dc4015cd72ca39d12d1a87acb925412 | [
"MIT"
] | null | null | null | include/blackjackdeck.hpp | guneykayim/blackjack | 39e9fad48dc4015cd72ca39d12d1a87acb925412 | [
"MIT"
] | null | null | null | include/blackjackdeck.hpp | guneykayim/blackjack | 39e9fad48dc4015cd72ca39d12d1a87acb925412 | [
"MIT"
] | null | null | null | #ifndef BLACKJACKDECK_HPP_
#define BLACKJACKDECK_HPP_
#include <vector>
#include <random>
#include "deck.hpp"
namespace CardGame {
enum class BlackjackDeckType { SINGLE = 1, DOUBLE = 2, FOUR = 4, SIX = 6, EIGHT = 8 };
class BlackjackDeck {
public:
BlackjackDeck();
BlackjackDeck(BlackjackD... | 23.333333 | 90 | 0.648052 | [
"vector"
] |
c25ea8630f6ba174179a68cb39b6a239359fbf86 | 2,556 | hpp | C++ | blast/include/objects/seq/annot_mapper_exception.hpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/include/objects/seq/annot_mapper_exception.hpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/include/objects/seq/annot_mapper_exception.hpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | #ifndef ANNOT_MAPPER_EXCEPTION__HPP
#define ANNOT_MAPPER_EXCEPTION__HPP
/* $Id: annot_mapper_exception.hpp 574980 2018-11-21 14:24:48Z ucko $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnol... | 31.170732 | 77 | 0.685055 | [
"object"
] |
c266b0584cd7fc9ed43b7b766526f35ebaf335ca | 6,170 | hpp | C++ | src/dagified_graph.hpp | Ellmen/vg | f9f5a815ef2db3481b23ff2533355aaf7f2f947b | [
"MIT"
] | 1 | 2021-11-16T21:23:49.000Z | 2021-11-16T21:23:49.000Z | src/dagified_graph.hpp | CominLab/VG-SNP-Aware | 6e28125879ad7b5b9b0d160d19406e69278a0e58 | [
"MIT"
] | null | null | null | src/dagified_graph.hpp | CominLab/VG-SNP-Aware | 6e28125879ad7b5b9b0d160d19406e69278a0e58 | [
"MIT"
] | null | null | null | #ifndef VG_DAGIFIED_GRAPH_HPP_INCLUDED
#define VG_DAGIFIED_GRAPH_HPP_INCLUDED
/** \file
* dagified_graph.hpp: defines a handle graph overlay implementation transforms cyclic graphs into DAGs
*/
#include "handle.hpp"
#include "algorithms/eades_algorithm.hpp"
#include "algorithms/strongly_connected_components.hpp"
n... | 40.860927 | 124 | 0.625446 | [
"vector"
] |
c26edf96321f69a6b0a86d2fb843005e7ae7ac27 | 2,828 | cpp | C++ | TEvtGen/EvtGen/EvtGenModels/EvtBcVMuNu.cpp | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | TEvtGen/EvtGen/EvtGenModels/EvtBcVMuNu.cpp | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | TEvtGen/EvtGen/EvtGenModels/EvtBcVMuNu.cpp | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | //--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Informat... | 28.857143 | 93 | 0.617397 | [
"vector"
] |
c272a3fcecc3da7fdee10095ae9396565a787bc2 | 28,288 | cpp | C++ | raytracer.cpp | teddemunnik/cpu-pathtracer | a135c1984473f0fb925688607bdecb3517f23757 | [
"MIT"
] | 1 | 2015-05-27T22:27:03.000Z | 2015-05-27T22:27:03.000Z | raytracer.cpp | teddemunnik/cpu-pathtracer | a135c1984473f0fb925688607bdecb3517f23757 | [
"MIT"
] | null | null | null | raytracer.cpp | teddemunnik/cpu-pathtracer | a135c1984473f0fb925688607bdecb3517f23757 | [
"MIT"
] | null | null | null | // Template for GP1, version 1
// IGAD/NHTV - Jacco Bikker - 2006-2013
#pragma warning (disable : 4530)
#include "template.h"
#include "raytracer.h"
#include "surface.h"
#include "mtrand.h"
#include "BVH.h"
#include <vector>
#include "OBJLoader.h"
#include <assert.h>
#include <gl/glew.h>
#include "SceneImporter.h"
#in... | 36.359897 | 166 | 0.659326 | [
"render",
"vector",
"model",
"transform"
] |
c27783deee0c23de2dad852586e936301b50fb66 | 15,746 | cc | C++ | chrome/test/automation/automation_json_requests.cc | meego-tablet-ux/meego-app-browser | 0f4ef17bd4b399c9c990a2f6ca939099495c2b9c | [
"BSD-3-Clause"
] | 1 | 2015-10-12T09:14:22.000Z | 2015-10-12T09:14:22.000Z | chrome/test/automation/automation_json_requests.cc | meego-tablet-ux/meego-app-browser | 0f4ef17bd4b399c9c990a2f6ca939099495c2b9c | [
"BSD-3-Clause"
] | null | null | null | chrome/test/automation/automation_json_requests.cc | meego-tablet-ux/meego-app-browser | 0f4ef17bd4b399c9c990a2f6ca939099495c2b9c | [
"BSD-3-Clause"
] | 1 | 2020-11-04T07:22:28.000Z | 2020-11-04T07:22:28.000Z | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/test/automation/automation_json_requests.h"
#include "base/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"... | 32.266393 | 80 | 0.72393 | [
"object",
"vector"
] |
c277c383b6104583d9398d939c7804f12aa71414 | 6,254 | hpp | C++ | libember/Headers/ember/glow/GlowFunctionBase.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 78 | 2015-07-31T14:46:38.000Z | 2022-03-28T09:28:28.000Z | libember/Headers/ember/glow/GlowFunctionBase.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 81 | 2015-08-03T07:58:19.000Z | 2022-02-28T16:21:19.000Z | libember/Headers/ember/glow/GlowFunctionBase.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 49 | 2015-08-03T12:53:10.000Z | 2022-03-17T17:25:49.000Z | /*
libember -- C++ 03 implementation of the Ember+ Protocol
Copyright (C) 2012-2016 Lawo GmbH (http://www.lawo.com).
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 __LIBEMBER_GLOW_GLOWFUNCTIO... | 36.788235 | 130 | 0.598017 | [
"object"
] |
c277d2d5e1e5bebd688ed4ea8a2e750060931f49 | 1,038 | hpp | C++ | src/backends/backendsCommon/test/layerTests/LayerTestResult.hpp | tom-gall/armnn | a21620d32a8a0a8d527c061e2a22d51009d75877 | [
"MIT"
] | null | null | null | src/backends/backendsCommon/test/layerTests/LayerTestResult.hpp | tom-gall/armnn | a21620d32a8a0a8d527c061e2a22d51009d75877 | [
"MIT"
] | null | null | null | src/backends/backendsCommon/test/layerTests/LayerTestResult.hpp | tom-gall/armnn | a21620d32a8a0a8d527c061e2a22d51009d75877 | [
"MIT"
] | null | null | null | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <armnn/Tensor.hpp>
#include <boost/multi_array.hpp>
#include <cstddef>
template <std::size_t n>
boost::array<unsigned int, n> GetTensorShapeAsArray(const armnn::TensorInfo& tensorInfo)
{
BOOST_ASSERT_M... | 23.066667 | 88 | 0.665703 | [
"shape"
] |
c277e72e1a95cd97a6a4d98bf707c2234dd28518 | 3,421 | cpp | C++ | Test/Unit/AnconaTest/Engine/Util2D/Collision/VectorMathTest.cpp | ild-games/Ancona | 6a4f520f97d17648a6dd3ba0582cd51da4f9e809 | [
"MIT"
] | 11 | 2018-04-15T21:00:48.000Z | 2021-12-30T20:55:21.000Z | Test/Unit/AnconaTest/Engine/Util2D/Collision/VectorMathTest.cpp | tlein/Ancona | 6a4f520f97d17648a6dd3ba0582cd51da4f9e809 | [
"MIT"
] | 58 | 2016-04-17T20:41:25.000Z | 2017-02-27T01:21:46.000Z | Test/Unit/AnconaTest/Engine/Util2D/Collision/VectorMathTest.cpp | ild-games/Ancona | 6a4f520f97d17648a6dd3ba0582cd51da4f9e809 | [
"MIT"
] | 4 | 2018-05-04T17:03:20.000Z | 2021-02-12T21:26:57.000Z | #define _USE_MATH_DEFINES
#include <cmath>
#include <gtest/gtest.h>
#include <Ancona/Util2D/VectorMath.hpp>
#include <Ancona/Core2D/Systems/Position/PositionSystem.hpp>
using namespace ild;
using namespace ild::VectorMath;
TEST(VectorMath, AboveSquareAngle)
{
Point left(-3,3);
Point right(3,3);
Point b... | 33.213592 | 100 | 0.67641 | [
"vector"
] |
c27c03ef041c382470530e5811a4b1da6e082f44 | 7,128 | cpp | C++ | metadatavideo/src/main/jni/spatialmedia/mpeg/sa3d.cpp | pedroSG94/metadata-spherical-injector | 7995474354f0daa80c584b1b93709a89982587d2 | [
"Apache-2.0"
] | 11 | 2016-11-23T13:34:37.000Z | 2021-09-17T10:48:40.000Z | metadatavideo/src/main/jni/spatialmedia/mpeg/sa3d.cpp | pedroSG94/metadata-spherical-injector | 7995474354f0daa80c584b1b93709a89982587d2 | [
"Apache-2.0"
] | 4 | 2019-03-28T12:19:03.000Z | 2021-07-02T23:45:29.000Z | metadatavideo/src/main/jni/spatialmedia/mpeg/sa3d.cpp | pedroSG94/metadata-spherical-injector | 7995474354f0daa80c584b1b93709a89982587d2 | [
"Apache-2.0"
] | 6 | 2016-11-24T03:45:17.000Z | 2019-05-17T07:18:35.000Z | /*****************************************************************************
*
* Copyright 2016 Varol Okan. 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
*
... | 34.269231 | 117 | 0.659371 | [
"vector"
] |
c28d1e998b8925ea4e04a01cfc787de68261dc33 | 45,106 | cc | C++ | ElectroWeakAnalysis/WENu/macros/PlotCombiner.cc | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | ElectroWeakAnalysis/WENu/macros/PlotCombiner.cc | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | ElectroWeakAnalysis/WENu/macros/PlotCombiner.cc | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | /*
Macro to make the plots .......................................
Instructions:
a. set up an input file that looks like the following:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# zee or wenu
wenu
# file name, type (sig, qcd, bce, gje, ewk), weig... | 38.817556 | 102 | 0.521682 | [
"vector"
] |
c29c6e66431b90d94a500ccd17f50c45f4462749 | 92,459 | cc | C++ | CalibTracker/SiStripChannelGain/plugins/SiStripGainFromCalibTree.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | CalibTracker/SiStripChannelGain/plugins/SiStripGainFromCalibTree.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | CalibTracker/SiStripChannelGain/plugins/SiStripGainFromCalibTree.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | // Original Author: Loic QUERTENMONT
// Created: Mon Nov 16 08:55:18 CET 2009
#include <memory>
#include <iostream>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Make... | 53.755233 | 210 | 0.607988 | [
"geometry",
"object",
"vector"
] |
c2a4a3a37ad37a8602ad5fab3e88a7916aeef9b9 | 4,479 | hpp | C++ | src/sensors/bms.hpp | Hyp-ed/hyped-2022 | 9cac4632b660f569629cf0ad4048787f6017905d | [
"Apache-2.0"
] | 9 | 2021-07-31T16:22:24.000Z | 2022-01-19T18:14:31.000Z | src/sensors/bms.hpp | Hyp-ed/hyped-2022 | 9cac4632b660f569629cf0ad4048787f6017905d | [
"Apache-2.0"
] | 91 | 2021-07-29T18:21:30.000Z | 2022-03-31T20:44:55.000Z | src/sensors/bms.hpp | Hyp-ed/hyped-2022 | 9cac4632b660f569629cf0ad4048787f6017905d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "interface.hpp"
#include <cstdint>
#include <vector>
#include <utils/concurrent/thread.hpp>
#include <utils/io/can.hpp>
#include <utils/system.hpp>
#include <utils/utils.hpp>
namespace hyped {
// Forward declarations
namespace utils {
class Logger;
}
namespace utils {
namespace io {
class Can... | 25.890173 | 86 | 0.682965 | [
"object",
"vector"
] |
c2a89119e06f576d1afdf9da36949c7c046249e4 | 331 | cc | C++ | net/grpc/gateway/codec/encoder.cc | Atrasoftware/grpc-web | 025b1d641b50b486bbae6921b5df4f9a515649a6 | [
"BSD-3-Clause"
] | null | null | null | net/grpc/gateway/codec/encoder.cc | Atrasoftware/grpc-web | 025b1d641b50b486bbae6921b5df4f9a515649a6 | [
"BSD-3-Clause"
] | null | null | null | net/grpc/gateway/codec/encoder.cc | Atrasoftware/grpc-web | 025b1d641b50b486bbae6921b5df4f9a515649a6 | [
"BSD-3-Clause"
] | null | null | null | #include "net/grpc/gateway/codec/encoder.h"
namespace grpc {
namespace gateway {
Encoder::Encoder() {}
Encoder::~Encoder() {}
void Encoder::EncodeStatus(const grpc::Status& status,
std::vector<Slice>* result) {
EncodeStatus(status, nullptr, result);
}
} // namespace gateway
} // name... | 19.470588 | 56 | 0.649547 | [
"vector"
] |
c2aad8f0f87741966a9f9ba79c49bfc3dcc80f76 | 3,666 | cpp | C++ | WonderBrush/src/tools/filters/SolidColor.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 11 | 2018-11-10T11:14:11.000Z | 2021-12-27T17:17:08.000Z | WonderBrush/src/tools/filters/SolidColor.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 27 | 2018-11-11T00:06:25.000Z | 2021-06-24T06:43:38.000Z | WonderBrush/src/tools/filters/SolidColor.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 7 | 2018-11-10T20:32:49.000Z | 2021-03-15T18:03:42.000Z | // SolidColor.cpp
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <Bitmap.h>
#include <Message.h>
#include "bitmap_compression.h"
#include "bitmap_support.h"
#include "blending.h"
#include "defines.h"
#include "support.h"
#include "CommonPropertyIDs.h"
#include "FilterFactory.h"
#include "IntPrope... | 18.059113 | 91 | 0.724223 | [
"object"
] |
c2ae1f605231a5752c595945455bdd4e6dd71e4f | 662 | cpp | C++ | 1684.count-the-number-of-consistent-strings.cpp | YouChenLiu/leetcode | 470954126ef316feab8c4c30e791535aeec56418 | [
"Unlicense"
] | 1 | 2021-03-22T07:43:26.000Z | 2021-03-22T07:43:26.000Z | 1684.count-the-number-of-consistent-strings.cpp | YouChenLiu/leetcode | 470954126ef316feab8c4c30e791535aeec56418 | [
"Unlicense"
] | null | null | null | 1684.count-the-number-of-consistent-strings.cpp | YouChenLiu/leetcode | 470954126ef316feab8c4c30e791535aeec56418 | [
"Unlicense"
] | null | null | null | /*
* @lc app=leetcode id=1684 lang=cpp
*
* [1684] Count the Number of Consistent Strings
*/
// @lc code=start
#include <string>
#include <unordered_set>
#include <vector>
class Solution {
public:
int countConsistentStrings(std::string allowed,
std::vector<std::string> &words) {
... | 18.914286 | 63 | 0.545317 | [
"vector"
] |
c2b5fb2b348ec711f91f42c22aa5daaece01baec | 4,612 | cpp | C++ | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter19Drill.cpp | Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 9 | 2018-10-24T15:16:47.000Z | 2021-12-14T13:53:50.000Z | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter19Drill.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | null | null | null | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter19Drill.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 7 | 2018-10-29T15:30:37.000Z | 2021-01-18T15:15:09.000Z | /*
TITLE Templates Chapter19Drill.cpp
"Bjarne Stroustrup "C++ Programming: Principles and Practice.""
COMMENT
Objcective:
Input: -
Output: -
Author: Chris B. Kirov
Date: 20.1.2016
*/
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <typeinfo>
// 1. D... | 18.979424 | 76 | 0.49046 | [
"vector"
] |
c2b7f3f56bb5a79ffb170890aade6c2e112df838 | 5,797 | cpp | C++ | UNS/WMIEventHandler/WMIEventHandler.cpp | rgl/lms | cda6a25e0f39b2a18f10415560ee6a2cfc5fbbcb | [
"Apache-2.0"
] | 18 | 2019-04-17T10:43:35.000Z | 2022-03-22T22:30:39.000Z | UNS/WMIEventHandler/WMIEventHandler.cpp | rgl/lms | cda6a25e0f39b2a18f10415560ee6a2cfc5fbbcb | [
"Apache-2.0"
] | 9 | 2019-10-03T15:29:51.000Z | 2021-12-27T14:03:33.000Z | UNS/WMIEventHandler/WMIEventHandler.cpp | isabella232/lms | 50d16f81b49aba6007388c001e8137352c5eb42e | [
"Apache-2.0"
] | 8 | 2019-06-13T23:30:50.000Z | 2021-06-25T15:51:59.000Z | /* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2009-2020 Intel Corporation
*/
#include "WMIEventHandler.h"
#include <atlbase.h>
#include <atlcom.h>
#include <string>
#include <list>
#include <vector>
#include <wbemidl.h>
#include <wmiutils.h>
#include <locale>
#include "wbemcli.h"
#include <sstream>
... | 28.985 | 119 | 0.635846 | [
"vector"
] |
c2c2aea583e9269bb951adf59440d9835a2cf1d5 | 38,218 | cc | C++ | chrome/browser/ui/views/page_info/page_info_bubble_view.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/browser/ui/views/page_info/page_info_bubble_view.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/browser/ui/views/page_info/page_info_bubble_view.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/page_info/page_info_bubble_view.h"
#include <stddef.h>
#include <algorithm>
#include <utility>
#include "base/i18... | 40.657447 | 80 | 0.719085 | [
"geometry",
"object",
"vector"
] |
c2cb0f3e672e41944af7980ed214ff36509bff4a | 58,531 | cc | C++ | test/json_unit.cc | hyunsik/json | f0582a8b600ba10b97eab773b4c0c668bef923d8 | [
"MIT"
] | 1 | 2015-04-29T09:48:22.000Z | 2015-04-29T09:48:22.000Z | test/json_unit.cc | hyunsik/json | f0582a8b600ba10b97eab773b4c0c668bef923d8 | [
"MIT"
] | null | null | null | test/json_unit.cc | hyunsik/json | f0582a8b600ba10b97eab773b4c0c668bef923d8 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "json.h"
TEST_CASE("array")
{
SECTION("Basics")
{
// construction with given type
json j(json::value_type::array);
CHECK(j.type() == json::value_type::array);
// const object
const json j_const (j);
// st... | 32.753777 | 90 | 0.511028 | [
"object",
"vector"
] |
c2d68153f4abc930ecc44a15166681587f2ef53f | 507 | cpp | C++ | Algorithms/Implementation/Challenge 4: Find Digits.cpp | zfields/HackerRank | b872912fb959662afb8650270e862ec2e6bbcd38 | [
"MIT"
] | 14 | 2017-09-18T19:11:07.000Z | 2021-04-23T03:33:07.000Z | Algorithms/Implementation/Challenge 4: Find Digits.cpp | zfields/HackerRank | b872912fb959662afb8650270e862ec2e6bbcd38 | [
"MIT"
] | null | null | null | Algorithms/Implementation/Challenge 4: Find Digits.cpp | zfields/HackerRank | b872912fb959662afb8650270e862ec2e6bbcd38 | [
"MIT"
] | 17 | 2016-05-08T12:40:58.000Z | 2021-10-10T17:51:39.000Z | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int t;
size_t count = 0;
char lex[10];
cin >> t;
for(int a0 = 0; a0 < t; a0++){
int n;
int count = 0, digit = 0, temp = 0;
cin >> n;
temp = ... | 18.777778 | 53 | 0.455621 | [
"vector"
] |
c2dd6dbdf941c0f09057ef6e32d9777a99852579 | 4,256 | cpp | C++ | src/view/RBAPositionContainerMaker.cpp | NaohiroNISHIGUCHI/RBA | ac86e4ffa643b8050b25161c951bb43f4e36235a | [
"Apache-2.0"
] | 2 | 2020-07-17T11:13:48.000Z | 2020-07-30T09:37:08.000Z | src/view/RBAPositionContainerMaker.cpp | NaohiroNISHIGUCHI/RBA | ac86e4ffa643b8050b25161c951bb43f4e36235a | [
"Apache-2.0"
] | null | null | null | src/view/RBAPositionContainerMaker.cpp | NaohiroNISHIGUCHI/RBA | ac86e4ffa643b8050b25161c951bb43f4e36235a | [
"Apache-2.0"
] | 3 | 2020-06-25T07:19:19.000Z | 2020-06-26T13:06:13.000Z | /**
* Copyright (c) 2019 DENSO CORPORATION.
*
* 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 o... | 33.777778 | 96 | 0.689615 | [
"object",
"model"
] |
123fcd9d33a4ac446b76d90c599d18c76d502199 | 1,635 | cc | C++ | vendor/tree-sitter-ocaml/bindings/node/binding.cc | Omar-Elrefaei/difftastic | cb900c3463caa3ec60f007bb3f8d3e88795b35e6 | [
"MIT"
] | 45 | 2018-02-23T22:44:10.000Z | 2021-12-23T16:21:50.000Z | vendor/tree-sitter-ocaml/bindings/node/binding.cc | Omar-Elrefaei/difftastic | cb900c3463caa3ec60f007bb3f8d3e88795b35e6 | [
"MIT"
] | 40 | 2018-03-27T16:07:32.000Z | 2021-12-01T09:19:27.000Z | vendor/tree-sitter-ocaml/bindings/node/binding.cc | Omar-Elrefaei/difftastic | cb900c3463caa3ec60f007bb3f8d3e88795b35e6 | [
"MIT"
] | 11 | 2018-03-27T12:09:19.000Z | 2022-02-13T19:46:11.000Z | #include "tree_sitter/parser.h"
#include <node.h>
#include "nan.h"
using namespace v8;
extern "C" TSLanguage * tree_sitter_ocaml();
extern "C" TSLanguage * tree_sitter_ocaml_interface();
namespace {
NAN_METHOD(New) {}
void Init(Local<Object> exports, Local<Object> module) {
Local<FunctionTemplate> ocaml_tpl = Na... | 43.026316 | 108 | 0.763303 | [
"object"
] |
1240ca92f56b363f2c818ebd1e8e35c9751fd02f | 8,911 | cxx | C++ | Libs/MRML/Widgets/qMRMLViewControllerBar.cxx | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | Libs/MRML/Widgets/qMRMLViewControllerBar.cxx | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | Libs/MRML/Widgets/qMRMLViewControllerBar.cxx | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | /*==============================================================================
Program: 3D Slicer
Copyright (c) Kitware Inc.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or agreed to in writing, software
distributed under the License... | 33.626415 | 107 | 0.614746 | [
"object",
"3d"
] |
1242e3dc7df5af8789035b1104444e8e309a4ea4 | 2,814 | cpp | C++ | src/CaseInformation/FieldCharacterManager.cpp | Thisisderpys/my-little-investigations | 0689f2ca3e808ba39864f024280abd2e77f8ad20 | [
"MIT"
] | 41 | 2015-01-24T17:33:16.000Z | 2022-01-08T19:36:40.000Z | src/CaseInformation/FieldCharacterManager.cpp | Thisisderpys/my-little-investigations | 0689f2ca3e808ba39864f024280abd2e77f8ad20 | [
"MIT"
] | 15 | 2015-01-05T21:00:41.000Z | 2016-10-18T14:37:03.000Z | src/CaseInformation/FieldCharacterManager.cpp | Thisisderpys/my-little-investigations | 0689f2ca3e808ba39864f024280abd2e77f8ad20 | [
"MIT"
] | 6 | 2016-01-14T21:07:22.000Z | 2020-11-28T09:51:15.000Z | /**
* Manager for all of the field characters in the game; provides their retrieval.
*
* @author GabuEx, dawnmew
* @since 1.0
*
* Licensed under the MIT License.
*
* Copyright (c) 2014 Equestrian Dreamers
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and ... | 31.977273 | 121 | 0.730633 | [
"object"
] |
1245ef3fc68b2349e9a7a76b161d29633554c099 | 1,432 | cpp | C++ | answers/lintcode/N-Queens.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | 3 | 2015-09-04T21:32:31.000Z | 2020-12-06T00:37:32.000Z | answers/lintcode/N-Queens.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | null | null | null | answers/lintcode/N-Queens.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | null | null | null | class Solution {
public:
/**
* Get all distinct N-Queen solutions
* @param n: The number of queens
* @return: All distinct solutions
* For example, A string '...Q' shows a queen on forth position
*/
vector<vector<string> > solveNQueens(int n) {
// write your code here
... | 25.122807 | 98 | 0.476955 | [
"vector"
] |
124a3794e6f6e4b68c71690400eb55c54981bacf | 5,376 | cpp | C++ | FHE/FFT_Data.cpp | wistaria-yunluo/MP-SPDZ | f168dbd75a51dbf3e2ecd067342d0b6df12d2d94 | [
"BSD-2-Clause"
] | null | null | null | FHE/FFT_Data.cpp | wistaria-yunluo/MP-SPDZ | f168dbd75a51dbf3e2ecd067342d0b6df12d2d94 | [
"BSD-2-Clause"
] | null | null | null | FHE/FFT_Data.cpp | wistaria-yunluo/MP-SPDZ | f168dbd75a51dbf3e2ecd067342d0b6df12d2d94 | [
"BSD-2-Clause"
] | null | null | null | #include "FHE/FFT_Data.h"
#include "FHE/FFT.h"
#include "FHE/Subroutines.h"
void FFT_Data::assign(const FFT_Data& FFTD)
{
prData=FFTD.prData;
R=FFTD.R;
root=FFTD.root;
twop=FFTD.twop;
two_root=FFTD.two_root;
powers=FFTD.powers;
powers_i=FFTD.powers_i;
b=FFTD.b;
iphi=FFTD.iphi;
}
void FFT_Dat... | 24.66055 | 84 | 0.535528 | [
"vector"
] |
125006fbb2cda2b79ffe62939e7d4fa823e87966 | 2,445 | cpp | C++ | aws-cpp-sdk-chime/source/model/UpdatePhoneNumberRequestItem.cpp | grujicbr/aws-sdk-cpp | bdd43c178042f09c6739645e3f6cd17822a7c35c | [
"Apache-2.0"
] | 1 | 2020-03-11T05:36:20.000Z | 2020-03-11T05:36:20.000Z | aws-cpp-sdk-chime/source/model/UpdatePhoneNumberRequestItem.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-chime/source/model/UpdatePhoneNumberRequestItem.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 24.207921 | 119 | 0.761963 | [
"model"
] |
12518a644d2bffdc7db3288cbef5a84b2bbe2dd6 | 4,503 | cpp | C++ | eval/src/tests/instruction/index_lookup_table/index_lookup_table_test.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 4,054 | 2017-08-11T07:58:38.000Z | 2022-03-31T22:32:15.000Z | eval/src/tests/instruction/index_lookup_table/index_lookup_table_test.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 4,854 | 2017-08-10T20:19:25.000Z | 2022-03-31T19:04:23.000Z | eval/src/tests/instruction/index_lookup_table/index_lookup_table_test.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 541 | 2017-08-10T18:51:18.000Z | 2022-03-11T03:18:56.000Z | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/eval/instruction/index_lookup_table.h>
#include <vespa/eval/eval/function.h>
#include <vespa/eval/eval/value_type.h>
#include <vespa/vespalib/gtest/gtest.h>
using namespace vespalib::eval;
std::ve... | 38.161017 | 104 | 0.683322 | [
"vector"
] |
12519ad7b47935f29157262871d88e70ffe5cc60 | 379 | cpp | C++ | src/game/localgame.cpp | mwthinker/MWetris | 8d7d75cade1eb44567e182b569ebf5af16b522d7 | [
"MIT"
] | null | null | null | src/game/localgame.cpp | mwthinker/MWetris | 8d7d75cade1eb44567e182b569ebf5af16b522d7 | [
"MIT"
] | null | null | null | src/game/localgame.cpp | mwthinker/MWetris | 8d7d75cade1eb44567e182b569ebf5af16b522d7 | [
"MIT"
] | null | null | null | #include "localgame.h"
#include "gamerules.h"
#include "tetrisgameevent.h"
#include <memory>
namespace mwetris::game {
void LocalGame::createGame(const std::vector<LocalPlayerPtr>& players) {
gameRules_->createGame(players);
}
void LocalGame::restartGame() {
gameRules_->restartGame();
}
LocalGame::LocalGa... | 17.227273 | 73 | 0.71504 | [
"vector"
] |
1253b084b4eb1e8cccc1a42d574ebac35dc7b4df | 33,840 | cc | C++ | src/Episode3.cc | clint-david/newserv | 40aa08bd4f391d8d3f6d41d3b539de5bc4c5c679 | [
"MIT"
] | null | null | null | src/Episode3.cc | clint-david/newserv | 40aa08bd4f391d8d3f6d41d3b539de5bc4c5c679 | [
"MIT"
] | null | null | null | src/Episode3.cc | clint-david/newserv | 40aa08bd4f391d8d3f6d41d3b539de5bc4c5c679 | [
"MIT"
] | null | null | null | #include "Episode3.hh"
#include <stdint.h>
#include <array>
#include <phosg/Filesystem.hh>
#include "Compression.hh"
#include "Text.hh"
using namespace std;
static const vector<const char*> name_for_card_type({
"HunterSC",
"ArkzSC",
"Item",
"Creature",
"Action",
"Assist",
});
static const unordered_... | 38.323896 | 167 | 0.62107 | [
"vector",
"3d"
] |
125722234b5db1b850d1cc874195307e9f80bdb3 | 1,235 | cpp | C++ | examples/03-cube.cpp | cyrilcode/cyfw-examples | 18fde906b606ff0b9e589a4ef53125186fe5a578 | [
"MIT"
] | null | null | null | examples/03-cube.cpp | cyrilcode/cyfw-examples | 18fde906b606ff0b9e589a4ef53125186fe5a578 | [
"MIT"
] | null | null | null | examples/03-cube.cpp | cyrilcode/cyfw-examples | 18fde906b606ff0b9e589a4ef53125186fe5a578 | [
"MIT"
] | null | null | null | #include <cyfw/main.h>
#include <cyfw/Shaders/Basic3DShader.h>
using namespace std;
using namespace cy;
class MyApp : public cy::App
{
shader::Basic3DShader shader;
Camera camera;
public:
void setup()
{
window->allowToggleFullscreen(false);
shader.init();
camera.reset({0,0,-3}... | 20.583333 | 75 | 0.593522 | [
"3d"
] |
125f2b7ac2d37c5dd52676597a4f552f24819240 | 2,120 | cpp | C++ | SherbertEngine Project/SherbertEngine/PointLight.cpp | JDSherbert/Sherbert-Engine | e7a22035b077c78fc324b3ae3cb33a4fe1a5487d | [
"MIT"
] | 1 | 2022-02-22T18:27:00.000Z | 2022-02-22T18:27:00.000Z | SherbertEngine Project/SherbertEngine/PointLight.cpp | JDSherbert/Sherbert-Engine | e7a22035b077c78fc324b3ae3cb33a4fe1a5487d | [
"MIT"
] | null | null | null | SherbertEngine Project/SherbertEngine/PointLight.cpp | JDSherbert/Sherbert-Engine | e7a22035b077c78fc324b3ae3cb33a4fe1a5487d | [
"MIT"
] | null | null | null | #include "PointLight.h"
#include "imgui/imgui.h"
#include "Camera.h"
#include "SherbertEngine_Math.h"
PointLight::PointLight( Graphics& gfx,DirectX::XMFLOAT3 pos,float radius )
:
mesh( gfx,radius ),
cbuf( gfx )
{
home = {
pos,
{ 0.05f,0.05f,0.05f },
{ 1.0f,1.0f,1.0f },
1.0f,
1.0f,
0.045f,
0.0075f,
}... | 24.090909 | 82 | 0.655189 | [
"mesh"
] |
126400afa65070de4ee065e2b55aeea8392f62ab | 7,000 | cpp | C++ | src/EvtGenModels/EvtPVVCPLH.cpp | qdcampagna/BTODSTARLNUNP_EVTGEN_Model | 9623a0ffe2625450a1228a80d6baae74ed6c0965 | [
"CC0-1.0"
] | null | null | null | src/EvtGenModels/EvtPVVCPLH.cpp | qdcampagna/BTODSTARLNUNP_EVTGEN_Model | 9623a0ffe2625450a1228a80d6baae74ed6c0965 | [
"CC0-1.0"
] | null | null | null | src/EvtGenModels/EvtPVVCPLH.cpp | qdcampagna/BTODSTARLNUNP_EVTGEN_Model | 9623a0ffe2625450a1228a80d6baae74ed6c0965 | [
"CC0-1.0"
] | null | null | null |
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* ... | 35.897436 | 86 | 0.539714 | [
"vector"
] |
126693001bf56e0a72b2cfdd3fc326752db79ee2 | 1,820 | cpp | C++ | origin/sequence/algorithm.test/permutations.cpp | asutton/origin-google | 516482c081a357a06402e5f288d645d3e18f69fa | [
"MIT"
] | 7 | 2017-11-22T19:11:00.000Z | 2020-08-16T15:53:10.000Z | origin/sequence/algorithm.test/permutations.cpp | asutton/origin-google | 516482c081a357a06402e5f288d645d3e18f69fa | [
"MIT"
] | null | null | null | origin/sequence/algorithm.test/permutations.cpp | asutton/origin-google | 516482c081a357a06402e5f288d645d3e18f69fa | [
"MIT"
] | 1 | 2020-08-07T12:31:36.000Z | 2020-08-07T12:31:36.000Z | // Copyright (c) 2008-2010 Kent State University
// Copyright (c) 2011-2012 Texas A&M University
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.
#include <cassert>
#include <iostream>
#incl... | 20 | 78 | 0.584066 | [
"vector"
] |
1272ce5bfca676f4c603b41967829e8be55f77de | 1,793 | cpp | C++ | _site/Competitive Programming/Code Jam'18/Training.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 1 | 2019-06-10T04:39:49.000Z | 2019-06-10T04:39:49.000Z | _site/Competitive Programming/Code Jam'18/Training.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 2 | 2021-09-27T23:34:07.000Z | 2022-02-26T05:54:27.000Z | _site/Competitive Programming/Code Jam'18/Training.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 3 | 2019-06-23T14:15:08.000Z | 2019-07-09T20:40:58.000Z | #include "bits/stdc++.h"
#ifdef PRINTERS
#include "printers.hpp"
using namespace printers;
#define tr(a) cerr<<#a<<" : "<<a<<endl
#else
#define tr(a)
#endif
#define ll long long
#define pb push_back
#define mp make_pair
#define pii pair<int,int>
#define vi vector<... | 17.752475 | 55 | 0.442276 | [
"vector"
] |
12770789e608b7daad8b5292ebd6ab81edc2217b | 1,450 | hh | C++ | src/bugengine/scheduler/api/bugengine/scheduler/kernel/iproduct.script.hh | bugengine/BugEngine | 1b3831d494ee06b0bd74a8227c939dd774b91226 | [
"BSD-3-Clause"
] | 4 | 2015-05-13T16:28:36.000Z | 2017-05-24T15:34:14.000Z | src/bugengine/scheduler/api/bugengine/scheduler/kernel/iproduct.script.hh | bugengine/BugEngine | 1b3831d494ee06b0bd74a8227c939dd774b91226 | [
"BSD-3-Clause"
] | null | null | null | src/bugengine/scheduler/api/bugengine/scheduler/kernel/iproduct.script.hh | bugengine/BugEngine | 1b3831d494ee06b0bd74a8227c939dd774b91226 | [
"BSD-3-Clause"
] | 1 | 2017-03-21T08:28:07.000Z | 2017-03-21T08:28:07.000Z | /* BugEngine <bugengine.devel@gmail.com>
see LICENSE for detail */
#ifndef BE_SCHEDULER_KERNEL_IPRODUCT_SCRIPT_HH_
#define BE_SCHEDULER_KERNEL_IPRODUCT_SCRIPT_HH_
/**************************************************************************************************/
#include <bugengine/scheduler/stdafx.h>
#include <bu... | 30.851064 | 100 | 0.577931 | [
"vector"
] |
1279df87cdacf3ef950336cd099ef3489177010e | 5,323 | cpp | C++ | oldlib/string/rolling_hash.cpp | hotman78/cpplib | c2f85c8741cdd0b731a5aa828b28b38c70c8d699 | [
"CC0-1.0"
] | null | null | null | oldlib/string/rolling_hash.cpp | hotman78/cpplib | c2f85c8741cdd0b731a5aa828b28b38c70c8d699 | [
"CC0-1.0"
] | null | null | null | oldlib/string/rolling_hash.cpp | hotman78/cpplib | c2f85c8741cdd0b731a5aa828b28b38c70c8d699 | [
"CC0-1.0"
] | null | null | null | struct rolling_hash{
using u64=uint64_t;
constexpr static u64 mod=(1ULL<<61)-1;
constexpr static u64 base=10007;
int sz;
u64 hash;
constexpr rolling_hash():sz(0),hash(0){}
constexpr rolling_hash(char c):sz(1),hash(c){}
rolling_hash(string s):sz(0),hash(0){
for(auto c:s)(*this)+=c... | 37.751773 | 155 | 0.524141 | [
"vector"
] |
127a8d4ced89914da27c3062ab36af6b560e37bd | 6,370 | cpp | C++ | src/Renderer/API/shader.cpp | MirrasHue/PopHead | f6bfe51059723bc6567a057028b7a83fabf7a015 | [
"MIT"
] | null | null | null | src/Renderer/API/shader.cpp | MirrasHue/PopHead | f6bfe51059723bc6567a057028b7a83fabf7a015 | [
"MIT"
] | null | null | null | src/Renderer/API/shader.cpp | MirrasHue/PopHead | f6bfe51059723bc6567a057028b7a83fabf7a015 | [
"MIT"
] | null | null | null | #include "shader.hpp"
#include "openglErrors.hpp"
#include "Logs/logs.hpp"
#include <GL/glew.h>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include <iostream>
namespace ph {
Shader::Shader()
{
mID = glCreateProgram();
}
bool Shader::loadFromFile(const char* vertexShaderFilename, const char* fragment... | 28.693694 | 127 | 0.749608 | [
"transform"
] |
127c85d99af45190a3ff5c61f8543e85fa8027ec | 11,009 | cpp | C++ | Tools/ShaderConverter/GHDXC.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | Tools/ShaderConverter/GHDXC.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | Tools/ShaderConverter/GHDXC.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | #include "GHDXC.h"
#include "GHPlatform/GHFileOpener.h"
#include "GHPlatform/GHDebugMessage.h"
#include "GHXMLNode.h"
#include "GHXMLSerializer.h"
#include "GHMaterialCallbackType.h"
GHDXC::GHDXC(void)
{
DxcCreateInstance(CLSID_DxcUtils, IID_PPV_ARGS(&mDXCUtils));
DxcCreateInstance(CLSID_DxcCompiler, IID_PPV_ARGS(&m... | 39.887681 | 147 | 0.653375 | [
"vector"
] |
1280f01c1762d8ea331208304865563878fd1710 | 2,510 | cpp | C++ | examples/polygon_mesh.cpp | Harold2017/m_math | 2815ed395b0c51a6cab2f20754a6edeee44bd495 | [
"MIT"
] | 2 | 2021-07-04T12:26:11.000Z | 2021-08-18T08:00:15.000Z | examples/polygon_mesh.cpp | Harold2017/m_math | 2815ed395b0c51a6cab2f20754a6edeee44bd495 | [
"MIT"
] | 1 | 2021-08-03T02:50:20.000Z | 2021-08-04T06:32:29.000Z | examples/polygon_mesh.cpp | Harold2017/m_math | 2815ed395b0c51a6cab2f20754a6edeee44bd495 | [
"MIT"
] | 1 | 2021-07-04T12:26:12.000Z | 2021-07-04T12:26:12.000Z | //
// Created by Harold on 2021/06/8.
//
#include "m_polygon_mesh.h"
#include "m_mesh_cut.hpp"
#include "stopwatch.h"
int main(int argc, char* argv[]) {
assert(argc == 3); // argv[1]: mesh_file path, argv[2]: z cross section threshold for volume computation
auto mesh_file_path = std::string(argv[1]);
aut... | 38.615385 | 179 | 0.644622 | [
"mesh",
"geometry",
"shape",
"vector",
"transform"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.