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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b3424a83eaf1848544c4cb5edf861d35b17a92f2 | 38,140 | cpp | C++ | src/system.cpp | breudes/agree | 6ca352028b0ca53e460ac09d95dea60c766aed38 | [
"MIT"
] | null | null | null | src/system.cpp | breudes/agree | 6ca352028b0ca53e460ac09d95dea60c766aed38 | [
"MIT"
] | null | null | null | src/system.cpp | breudes/agree | 6ca352028b0ca53e460ac09d95dea60c766aed38 | [
"MIT"
] | null | null | null | #include "../include/system.h"
//Constructor
System::System(){
/** Default constructor of system. Enters all properties's values as null. The vectors doesn't require to be
* initialized.
*/
this->userLoggedId = 0;
this->currentServerName = "";
this->currentChannelName = "";
}
//Destructor
Sys... | 45.676647 | 153 | 0.604824 | [
"object",
"vector"
] |
b345418cb563cae408d488b4f76b011c6e5ad3be | 13,330 | cpp | C++ | src/util/dataAccess.cpp | balint42/nix | 50f1de33b946b7b194c82fb0efd9b0cecba9ed54 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/util/dataAccess.cpp | balint42/nix | 50f1de33b946b7b194c82fb0efd9b0cecba9ed54 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/util/dataAccess.cpp | balint42/nix | 50f1de33b946b7b194c82fb0efd9b0cecba9ed54 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/util/dataAccess.hpp>
#includ... | 37.76204 | 145 | 0.631133 | [
"vector"
] |
b348b7c12a76bd5a1edae019f3b26232eb105881 | 3,367 | cpp | C++ | Orz3D/Drawable/TexBox.cpp | bzhou830/Orz3D | 95d419446811e837c56bbed48d215b181edd4bfa | [
"MIT"
] | 1 | 2021-08-22T02:09:55.000Z | 2021-08-22T02:09:55.000Z | Orz3D/Drawable/TexBox.cpp | bzhou830/Orz3D | 95d419446811e837c56bbed48d215b181edd4bfa | [
"MIT"
] | null | null | null | Orz3D/Drawable/TexBox.cpp | bzhou830/Orz3D | 95d419446811e837c56bbed48d215b181edd4bfa | [
"MIT"
] | null | null | null | #include "TexBox.h"
#include "../Bindable/BindableBase.h"
#include "../GraphicsThrowMacros.h"
#include "../Surface.h"
TexBox::TexBox(Graphics& gfx,
std::mt19937& rng,
std::uniform_real_distribution<float>& adist,
std::uniform_real_distribution<float>& ddist,
std::uniform_real_distribution<float>& odist,
std::unif... | 22.597315 | 101 | 0.600535 | [
"vector"
] |
b34a63b74430c338b7cf908ae7ae3328045a1dba | 3,056 | cpp | C++ | src/rht-main.cpp | veselink1/refl-cpp-preprocessor | 4286991f03e21165920b68e652467fb4e1977682 | [
"MIT"
] | 8 | 2019-06-30T17:59:11.000Z | 2020-05-28T01:47:09.000Z | src/rht-main.cpp | veselink1/refl-cpp-preprocessor | 4286991f03e21165920b68e652467fb4e1977682 | [
"MIT"
] | null | null | null | src/rht-main.cpp | veselink1/refl-cpp-preprocessor | 4286991f03e21165920b68e652467fb4e1977682 | [
"MIT"
] | 2 | 2019-08-21T23:35:08.000Z | 2021-01-23T04:19:23.000Z | /**
* Created by veselink1.
* Released under the MIT license.
*/
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <vector>
#include <optional>
#include <unordered_map>
#include <algorithm>
#include <regex>
#include <chrono>
#include <clang-c/Index.h>
#include "rht-engine.hpp"
#i... | 31.183673 | 135 | 0.544503 | [
"vector"
] |
b35a99ce03a4186a8bb308d7ce3d79e24197b70e | 1,800 | cpp | C++ | pde.cpp | QuentinLam95/fqs_pde1d | da52690355f1094e9002d6afc74970e542e0d90f | [
"BSD-3-Clause"
] | null | null | null | pde.cpp | QuentinLam95/fqs_pde1d | da52690355f1094e9002d6afc74970e542e0d90f | [
"BSD-3-Clause"
] | null | null | null | pde.cpp | QuentinLam95/fqs_pde1d | da52690355f1094e9002d6afc74970e542e0d90f | [
"BSD-3-Clause"
] | null | null | null | #ifndef pde_cpp
#define pde_cpp
#include "pde.hpp"
#include <math.h>
BS_PDE::BS_PDE(VanillaOption* _option, const std::string& _left_boundary_type , const std::string& _right_boundary_type)
: option(_option), left_boundary_type(_left_boundary_type), right_boundary_type(_right_boundary_type) {}
std::string BS_PDE::g... | 25.714286 | 120 | 0.693889 | [
"vector",
"transform"
] |
b35b4c75a5063996bbce459e850f5f61fe8252b3 | 18,344 | cpp | C++ | src/hvppdrv/vmexit_custom.cpp | 393686984/vt-driver | 8f3fae63846eb28b3040bced29b8fb2b10688afa | [
"MIT"
] | 11 | 2022-03-15T00:59:05.000Z | 2022-03-30T09:54:18.000Z | src/hvppdrv/vmexit_custom.cpp | gllhack/vt-driver | ab3d65a72944814738543e553247c9fcc4a7abd2 | [
"MIT"
] | null | null | null | src/hvppdrv/vmexit_custom.cpp | gllhack/vt-driver | ab3d65a72944814738543e553247c9fcc4a7abd2 | [
"MIT"
] | 10 | 2022-03-15T00:58:58.000Z | 2022-03-31T01:36:08.000Z | #include "vmexit_custom.h"
#include <hvpp/lib/cr3_guard.h>
#include <hvpp/lib/mp.h>
#include <hvpp/lib/log.h>
#include "SsdtHook.h"
#include "MemoryHide.h"
#include "DbgApi.h"
#include "NoTraceBP.h"
#include "hvpp/ia32/cpuid/cpuid_eax_01.h"
extern MemoryHide hide;
extern SSDTHook* ssdthook;
extern ddy::DbgkKernel d... | 29.210191 | 106 | 0.731247 | [
"vector"
] |
b35d0ac0de153c9b6f4353ce42ea54308354ff59 | 3,777 | cpp | C++ | Tokenizer.cpp | JeffTM/Markov-Bot-CPP | a2354bdfa48a213c896d6aff25ff7ba2cfbb1973 | [
"MIT"
] | null | null | null | Tokenizer.cpp | JeffTM/Markov-Bot-CPP | a2354bdfa48a213c896d6aff25ff7ba2cfbb1973 | [
"MIT"
] | null | null | null | Tokenizer.cpp | JeffTM/Markov-Bot-CPP | a2354bdfa48a213c896d6aff25ff7ba2cfbb1973 | [
"MIT"
] | null | null | null | #include "Tokenizer.h"
//Breaks the string src into substrings that represent words in the markov chain
void Tokenizer::operator()(const std::string & fileName, std::vector<std::string> & dest) const
{
using namespace std;
string src(slurp(fileName));
size_t i = 0;
while (true)
{
//Advance past any white spac... | 25.693878 | 125 | 0.670373 | [
"vector"
] |
b36862be5a22b2edb5e0382208b6150780ebad7f | 5,900 | cpp | C++ | src/GraphicsDevice.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | 1 | 2016-05-17T03:36:52.000Z | 2016-05-17T03:36:52.000Z | src/GraphicsDevice.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | src/GraphicsDevice.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Application.h"
#include "GraphicsDevice.h"
#ifdef _WIN32
void GraphicsDevice::flushMessageQueue() {
MSG msg;
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
if (msg.message == WM_QUIT) break;
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
#endif
GraphicsDevice::~GraphicsD... | 28.640777 | 75 | 0.711186 | [
"model"
] |
b3693cf9267d368c31d1cfe6d30e09d6a4c4d84d | 4,600 | hh | C++ | stock_chart_wx.hh | pedro-vicente/stock_chart_wx | b8fcc417a45254466b14b31b6363844bf35f94de | [
"Apache-2.0"
] | 1 | 2019-02-08T03:12:09.000Z | 2019-02-08T03:12:09.000Z | stock_chart_wx.hh | pedro-vicente/stock_chart_wx | b8fcc417a45254466b14b31b6363844bf35f94de | [
"Apache-2.0"
] | 1 | 2018-08-29T04:09:01.000Z | 2018-08-29T04:09:01.000Z | stock_chart_wx.hh | pedro-vicente/stock_chart_wx | b8fcc417a45254466b14b31b6363844bf35f94de | [
"Apache-2.0"
] | null | null | null | #ifndef WX_ELLIOT_FRAME
#define WX_ELLIOT_FRAME 1
#include "wx/wxprec.h"
#include "wx/wx.h"
#include "wx/splitter.h"
#include "wx/artprov.h"
#include "wx/imaglist.h"
#include "wx/grid.h"
#include "wx/mdi.h"
#include "wx/toolbar.h"
#include "wx/laywin.h"
#include "wx/list.h"
#include "wx/cmdline.h"
#include "wx/dateti... | 26.285714 | 101 | 0.577826 | [
"vector",
"model"
] |
b36b39ded4fcd0d45107b641a1623e6c63b4e948 | 14,855 | cpp | C++ | neutrino/graphics/src/font/tables/character_to_glyph_index_mapping.cpp | alexiynew/nih_framework | a65335586331daa0ece892f98265bd1d2f8f579f | [
"MIT"
] | 1 | 2017-07-14T04:51:54.000Z | 2017-07-14T04:51:54.000Z | neutrino/graphics/src/font/tables/character_to_glyph_index_mapping.cpp | alexiynew/nih_framework | a65335586331daa0ece892f98265bd1d2f8f579f | [
"MIT"
] | 32 | 2017-02-02T14:49:41.000Z | 2019-06-25T19:38:27.000Z | neutrino/graphics/src/font/tables/character_to_glyph_index_mapping.cpp | alexiynew/nih_framework | a65335586331daa0ece892f98265bd1d2f8f579f | [
"MIT"
] | null | null | null | #include <set>
#include <common/exceptions.hpp>
#include <common/utils.hpp>
#include <graphics/src/font/tables/character_to_glyph_index_mapping.hpp>
namespace
{
namespace utils = framework::utils;
namespace details = framework::graphics::details::font;
using details::BufferReader;
using details::BytesData;
using... | 30.755694 | 116 | 0.699966 | [
"vector"
] |
b3791723e95c65ad27b0ed1f68a77c290a06855c | 87,192 | cpp | C++ | Unity-Project/App-HL2/Il2CppOutputProject/Source/il2cppOutput/Microsoft.MixedReality.Toolkit.Gltf_Attr.cpp | JBrentJ/mslearn-mixed-reality-and-azure-digital-twins-in-unity | 6e13b31a0b053443b9c93267d8f174f1554e79dd | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-06-01T19:33:53.000Z | 2021-06-01T19:33:53.000Z | Unity-Project/App-HL2/Il2CppOutputProject/Source/il2cppOutput/Microsoft.MixedReality.Toolkit.Gltf_Attr.cpp | JBrentJ/mslearn-mixed-reality-and-azure-digital-twins-in-unity | 6e13b31a0b053443b9c93267d8f174f1554e79dd | [
"CC-BY-4.0",
"MIT"
] | null | null | null | Unity-Project/App-HL2/Il2CppOutputProject/Source/il2cppOutput/Microsoft.MixedReality.Toolkit.Gltf_Attr.cpp | JBrentJ/mslearn-mixed-reality-and-azure-digital-twins-in-unity | 6e13b31a0b053443b9c93267d8f174f1554e79dd | [
"CC-BY-4.0",
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
// System.Char[]
struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34;
// System.Type[]
struct TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755;
// System.Runtime.Compil... | 60.466019 | 308 | 0.898844 | [
"object"
] |
b37c346516a8bab1269ac4e7a9902c00fda68522 | 1,595 | cpp | C++ | 221.最大正方形/maximalSquare.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2019-10-21T14:40:39.000Z | 2019-10-21T14:40:39.000Z | 221.最大正方形/maximalSquare.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | null | null | null | 221.最大正方形/maximalSquare.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2020-11-04T07:33:34.000Z | 2020-11-04T07:33:34.000Z | class Solution {
public:
int maximalSquare(vector<vector<char>>& matrix) {
//每次遇到1,作为左上
if(matrix.size()==0 || matrix[0].size()==0) return 0;
int maxlen=0;
for(int i=0;i<matrix.size();++i)
{
for(int j=0;j<matrix[0].size();++j)
{
if(mat... | 30.673077 | 92 | 0.251411 | [
"vector"
] |
b37c8bbf60837f4b7f8886755b5703cde471b8cf | 6,177 | cpp | C++ | Modules/TArc/Sources/TArc/Controls/Private/RadioButtonsGroup.cpp | stinvi/dava.engine | 2b396ca49cdf10cdc98ad8a9ffcf7768a05e285e | [
"BSD-3-Clause"
] | 26 | 2018-09-03T08:48:22.000Z | 2022-02-14T05:14:50.000Z | Modules/TArc/Sources/TArc/Controls/Private/RadioButtonsGroup.cpp | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | null | null | null | Modules/TArc/Sources/TArc/Controls/Private/RadioButtonsGroup.cpp | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | 45 | 2018-05-11T06:47:17.000Z | 2022-02-03T11:30:55.000Z | #include "TArc/Controls/RadioButtonsGroup.h"
#include "TArc/DataProcessing/AnyQMetaType.h"
#include <Base/FastName.h>
#include <QGridLayout>
#include <QVariant>
#include <QRadioButton>
#include <QLabel>
namespace RadioButtonsGroupDetails
{
const char* dataPropertyName = "data";
}
namespace DAVA
{
RadioButtonsGroup:... | 33.209677 | 186 | 0.660677 | [
"vector",
"model"
] |
b395c85889cc131a0c4a5004ce4c015beea734a5 | 6,444 | cpp | C++ | cntk_cpp/main.cpp | hiroog/cppapimnist | 30d7e01954fc43da2eea5fe3ebf034b37e79cfd1 | [
"MIT"
] | null | null | null | cntk_cpp/main.cpp | hiroog/cppapimnist | 30d7e01954fc43da2eea5fe3ebf034b37e79cfd1 | [
"MIT"
] | null | null | null | cntk_cpp/main.cpp | hiroog/cppapimnist | 30d7e01954fc43da2eea5fe3ebf034b37e79cfd1 | [
"MIT"
] | null | null | null | // 2019/12/29 Hiroyuki Ogasawara
// vim:ts=4 sw=4 noet:
#include <CNTKLibrary.h>
#include <random>
#include <iostream>
#include "mnist_loader.h"
namespace {
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
... | 28.387665 | 148 | 0.63113 | [
"shape",
"vector",
"model"
] |
b39e9f35b228e24d0577a6037761d68483f22228 | 6,250 | cpp | C++ | frameworks/zone/test/unittest/zone_util_performance_test.cpp | openharmony-gitee-mirror/global_i18n_standard | 7cffb4a5a14db773ad679c6fb2f0f0a1c6e7ab3d | [
"Apache-2.0"
] | null | null | null | frameworks/zone/test/unittest/zone_util_performance_test.cpp | openharmony-gitee-mirror/global_i18n_standard | 7cffb4a5a14db773ad679c6fb2f0f0a1c6e7ab3d | [
"Apache-2.0"
] | null | null | null | frameworks/zone/test/unittest/zone_util_performance_test.cpp | openharmony-gitee-mirror/global_i18n_standard | 7cffb4a5a14db773ad679c6fb2f0f0a1c6e7ab3d | [
"Apache-2.0"
] | 1 | 2021-09-13T11:16:51.000Z | 2021-09-13T11:16:51.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 32.722513 | 93 | 0.63472 | [
"vector"
] |
b3aee0d39e5c0fc564f5fa971c1d8ec2015525c4 | 20,133 | cpp | C++ | src/libSBML/src/sbml/validator/SBMLInternalValidator.cpp | copasi/copasi-dependencies | c01dd455c843522375c32c2989aa8675f59bb810 | [
"Unlicense"
] | 5 | 2015-04-16T14:27:38.000Z | 2021-11-30T14:54:39.000Z | src/libSBML/src/sbml/validator/SBMLInternalValidator.cpp | copasi/copasi-dependencies | c01dd455c843522375c32c2989aa8675f59bb810 | [
"Unlicense"
] | 8 | 2017-05-30T16:58:39.000Z | 2022-02-22T16:51:34.000Z | src/libSBML/src/sbml/validator/SBMLInternalValidator.cpp | copasi/copasi-dependencies | c01dd455c843522375c32c2989aa8675f59bb810 | [
"Unlicense"
] | 7 | 2016-05-29T08:12:59.000Z | 2019-05-02T13:39:25.000Z | /**
* @file SBMLInternalValidator.cpp
* @brief Implementation of SBMLInternalValidator, the validator for all internal validation performed by libSBML.
* @author Frank Bergmann
*
* <!--------------------------------------------------------------------------
* This file is part of libSBML. Please visit htt... | 24.344619 | 116 | 0.672379 | [
"object",
"vector",
"model"
] |
a2b4fc44405366332e9127fe5450b897d226d917 | 846 | cpp | C++ | src/engine/guidance/assemble_route.cpp | EricWang1hitsz/osrm-backend | ff1af413d6c78f8e454584fe978d5468d984d74a | [
"BSD-2-Clause"
] | 4,526 | 2015-01-01T15:31:00.000Z | 2022-03-31T17:33:49.000Z | src/engine/guidance/assemble_route.cpp | serarca/osrm-backend | 3b4e2e83ef85983df1381dbeacd0ea5d4b9bbbcb | [
"BSD-2-Clause"
] | 4,497 | 2015-01-01T15:29:12.000Z | 2022-03-31T19:19:35.000Z | src/engine/guidance/assemble_route.cpp | serarca/osrm-backend | 3b4e2e83ef85983df1381dbeacd0ea5d4b9bbbcb | [
"BSD-2-Clause"
] | 3,023 | 2015-01-01T18:40:53.000Z | 2022-03-30T13:30:46.000Z | #include "engine/guidance/assemble_route.hpp"
#include <numeric>
namespace osrm
{
namespace engine
{
namespace guidance
{
Route assembleRoute(const std::vector<RouteLeg> &route_legs)
{
auto distance = std::accumulate(
route_legs.begin(), route_legs.end(), 0., [](const double sum, const RouteLeg &leg) {
... | 25.636364 | 93 | 0.630024 | [
"vector"
] |
a2d52ed8c2671dc64920c1cdefb4ab09d91efeb7 | 588 | cpp | C++ | 07 July Leetcode Challenge 2021/06_minSetSize.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 7 | 2020-12-01T14:27:57.000Z | 2022-02-12T09:17:22.000Z | 07 July Leetcode Challenge 2021/06_minSetSize.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 4 | 2020-11-12T17:49:22.000Z | 2021-09-06T07:46:37.000Z | 07 July Leetcode Challenge 2021/06_minSetSize.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 6 | 2021-05-21T03:49:22.000Z | 2022-01-20T20:36:53.000Z | class Solution {
public:
int minSetSize(vector<int>& arr) {
unordered_map<int, int> cnt;
for (int x : arr) ++cnt[x];
vector<int> bucket(1e5 + 1);
int maxFreq = 1;
for (auto [_, freq] : cnt) {
++bucket[freq];
maxFreq = max(maxFreq, freq);
}
... | 24.5 | 72 | 0.44898 | [
"vector"
] |
a2d8a77774b37779035ef34defb0d3b023612ecd | 9,138 | cpp | C++ | TrabalhoPOO/Game.cpp | mbcrocci/TrabalhoPOO | 30378382b412e3ed875dbb2bfb897061dafc73ef | [
"MIT"
] | null | null | null | TrabalhoPOO/Game.cpp | mbcrocci/TrabalhoPOO | 30378382b412e3ed875dbb2bfb897061dafc73ef | [
"MIT"
] | null | null | null | TrabalhoPOO/Game.cpp | mbcrocci/TrabalhoPOO | 30378382b412e3ed875dbb2bfb897061dafc73ef | [
"MIT"
] | null | null | null | #include "Game.h"
Game::Game () : tick_ ( 0 )
{ }
Game::~Game ()
{}
int Game::getTick() const
{
return tick_;
}
std::string Game::list_configs () const
{
std::ostringstream oss;
oss << "Config:\n"
<< "\tWidth: " << config_world_width_ << "\n"
<< "\tHeight: " << config_world_heigth_ << "\n"
<< "\tNCoins: " ... | 20.083516 | 104 | 0.550886 | [
"render"
] |
a2e7ae2a84b0c55cfbeb09502772a7a5fc5044de | 8,807 | cpp | C++ | source/librenderer/geometry.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 113 | 2015-06-25T06:24:59.000Z | 2021-09-26T02:46:02.000Z | source/librenderer/geometry.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 2 | 2015-05-03T07:22:49.000Z | 2017-12-11T09:17:20.000Z | source/librenderer/geometry.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 17 | 2015-11-10T15:07:15.000Z | 2021-01-19T15:28:16.000Z | // +----------------------------------------------------------------------
// | Project : ray.
// | All rights reserved.
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2014.
// +----------------------------------------------------------------------
// | * Redistributi... | 31.341637 | 213 | 0.726127 | [
"geometry"
] |
a2e9949a35b4d3cd376d57eb112458d0e33d1ef5 | 476 | cc | C++ | codechef/jan18/monster.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | codechef/jan18/monster.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | codechef/jan18/monster.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://www.codechef.com/JAN18/problems/MONSTER
#include <iostream>
#include <vector>
using namespace std;
typedef vector<int> vi;
int main() {
int n, q, x, y;
cin >> n;
vi h(n + 1);
for (int i = 0; i < n; i++) cin >> h[i];
cin >> q;
int c = n;
for (int i = 0; i < q; i++) {
cin >> x >> y;
fo... | 17.62963 | 50 | 0.426471 | [
"vector"
] |
a2e9ba824e47515ac741e77759117fb9a4f396d1 | 31,512 | hpp | C++ | Drivers/ScanLabOIE/Headers/CppDynamic/libmcdriver_scanlaboie_dynamic.hpp | FabianSpangler/AutodeskMachineControlFramework | da257a4a609edbbdf3d7c5d834d61f8555c68e09 | [
"BSD-3-Clause"
] | null | null | null | Drivers/ScanLabOIE/Headers/CppDynamic/libmcdriver_scanlaboie_dynamic.hpp | FabianSpangler/AutodeskMachineControlFramework | da257a4a609edbbdf3d7c5d834d61f8555c68e09 | [
"BSD-3-Clause"
] | null | null | null | Drivers/ScanLabOIE/Headers/CppDynamic/libmcdriver_scanlaboie_dynamic.hpp | FabianSpangler/AutodeskMachineControlFramework | da257a4a609edbbdf3d7c5d834d61f8555c68e09 | [
"BSD-3-Clause"
] | null | null | null | /*++
Copyright (C) 2020 Autodesk Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the ... | 39.83818 | 213 | 0.72071 | [
"object",
"vector"
] |
a2ea6b22a5fd93d17504ecc2c9a928ba1795b459 | 23,673 | cpp | C++ | test/TestApp/AutoGenTests/AutoGenAnalyticsTests.cpp | jasonsandlin/PlayFabCoreCSdk | ecf51e9a7a90e579efed595bd1d76ec8f3a1ae19 | [
"Apache-2.0"
] | null | null | null | test/TestApp/AutoGenTests/AutoGenAnalyticsTests.cpp | jasonsandlin/PlayFabCoreCSdk | ecf51e9a7a90e579efed595bd1d76ec8f3a1ae19 | [
"Apache-2.0"
] | null | null | null | test/TestApp/AutoGenTests/AutoGenAnalyticsTests.cpp | jasonsandlin/PlayFabCoreCSdk | ecf51e9a7a90e579efed595bd1d76ec8f3a1ae19 | [
"Apache-2.0"
] | null | null | null | #include "TestAppPch.h"
#include "TestContext.h"
#include "TestApp.h"
#include "AutoGenAnalyticsTests.h"
#include "XAsyncHelper.h"
#include "playfab/PFAuthentication.h"
namespace PlayFabUnit
{
using namespace PlayFab::Wrappers;
AutoGenAnalyticsTests::AnalyticsTestData AutoGenAnalyticsTests::testData;
void AutoGenAn... | 36.031963 | 150 | 0.717611 | [
"model"
] |
a2eedb41c0fe63b095febf9f14ebe87f6f402f4e | 7,052 | cpp | C++ | src/SFML-utils/map-editor/MapSelectionManager.cpp | Krozark/SFML-utils | c2f169faa7f3ce0aa6e23991d21796dca01944be | [
"BSD-2-Clause"
] | 23 | 2016-03-05T11:27:53.000Z | 2021-05-29T19:08:26.000Z | src/SFML-utils/map-editor/MapSelectionManager.cpp | Krozark/SFML-utils | c2f169faa7f3ce0aa6e23991d21796dca01944be | [
"BSD-2-Clause"
] | 11 | 2015-03-12T10:14:06.000Z | 2017-11-24T14:34:41.000Z | src/SFML-utils/map-editor/MapSelectionManager.cpp | Krozark/SFML-utils | c2f169faa7f3ce0aa6e23991d21796dca01944be | [
"BSD-2-Clause"
] | 9 | 2016-04-10T22:28:45.000Z | 2021-11-27T08:48:21.000Z | #include <SFML-utils/map-editor/MapSelectionManager.hpp>
#include <SFML-utils/map-editor/Editor.hpp>
#include <SFML-utils/map-editor/path.hpp>
#include <algorithm>
extern "C"
{
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
}
#include <luabind/luabind.hpp>
#include <luabind/object.hpp>
#include <luabi... | 31.623318 | 139 | 0.53928 | [
"render",
"object"
] |
a2f92ccdef8b49c21f1f61945bf34ff2aa73367c | 1,207 | hpp | C++ | spoki/libspoki/spoki/net/endpoint.hpp | inetrg/spoki | 599a19366e4cea70e2391471de6f6b745935cddf | [
"MIT"
] | 1 | 2022-02-03T15:35:16.000Z | 2022-02-03T15:35:16.000Z | spoki/libspoki/spoki/net/endpoint.hpp | inetrg/spoki | 599a19366e4cea70e2391471de6f6b745935cddf | [
"MIT"
] | null | null | null | spoki/libspoki/spoki/net/endpoint.hpp | inetrg/spoki | 599a19366e4cea70e2391471de6f6b745935cddf | [
"MIT"
] | null | null | null | /*
* This file is part of the CAF spoki driver.
*
* Copyright (C) 2018-2021
* Authors: Raphael Hiesgen
*
* All rights reserved.
*
* Report any bugs, questions or comments to raphael.hiesgen@haw-hamburg.de
*
*/
#pragma once
#include <functional>
#include <caf/ipv4_address.hpp>
#include "spoki/hashing.hpp"
... | 21.175439 | 75 | 0.657001 | [
"object"
] |
a2fd89a36576827301209e15c33a20c6cf95b08f | 488 | cpp | C++ | Cpp/1252.cells-with-odd-values-in-a-matrix.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | 1 | 2015-12-19T23:05:35.000Z | 2015-12-19T23:05:35.000Z | Cpp/1252.cells-with-odd-values-in-a-matrix.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | Cpp/1252.cells-with-odd-values-in-a-matrix.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | class Solution {
public:
int oddCells(int n, int m, vector<vector<int>>& indices) {
vector<bool> rows(n, false);
vector<bool> cols(m, false);
for (const auto& indice : indices) {
rows[indice[0]] = !rows[indice[0]];
cols[indice[1]] = !cols[indice[1]];
... | 27.111111 | 62 | 0.461066 | [
"vector"
] |
a2fe32b75f3de55363ef1942ceb156f79452af4f | 2,362 | cc | C++ | paddle/fluid/inference/tensorrt/convert/test_io_converter.cc | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | 11 | 2016-08-29T07:43:26.000Z | 2016-08-29T07:51:24.000Z | paddle/fluid/inference/tensorrt/convert/test_io_converter.cc | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | null | null | null | paddle/fluid/inference/tensorrt/convert/test_io_converter.cc | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | 1 | 2021-12-09T08:59:17.000Z | 2021-12-09T08:59:17.000Z | /* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | 30.282051 | 79 | 0.740474 | [
"vector"
] |
0c136c0041b0d6710a622b8414f654fc642e3ebd | 7,739 | cpp | C++ | CompilerDev/Try-12/src/Vector3.cpp | Ashwin-Paudel/Tries | 91ea32d715eedca528d143cf5e9dfd9ba70804e3 | [
"Apache-2.0"
] | null | null | null | CompilerDev/Try-12/src/Vector3.cpp | Ashwin-Paudel/Tries | 91ea32d715eedca528d143cf5e9dfd9ba70804e3 | [
"Apache-2.0"
] | null | null | null | CompilerDev/Try-12/src/Vector3.cpp | Ashwin-Paudel/Tries | 91ea32d715eedca528d143cf5e9dfd9ba70804e3 | [
"Apache-2.0"
] | null | null | null | //
// Vector3.cpp
// Krim
//
// Created by आश्विन पौडेल on 2021-05-27.
//
#include <Vector3.h>
// Doing this will set the x, y, and z to 0
constexpr Vector3::Vector3()
{
x = 0;
y = 0;
z = 0;
}
// If the user gives a Vector3, we're going to set the x,y and z to the given vector
constexpr Vector3::Vecto... | 24.964516 | 130 | 0.622819 | [
"vector"
] |
0c1d2d39ce83eb52b2e2260bcea04eee7f30ac34 | 1,155 | hpp | C++ | src/xpcc/ui/gui/widgets/numberfield.hpp | roboterclubaachen/xpcc | 010924901947381d20e83b838502880eb2ffea72 | [
"BSD-3-Clause"
] | 161 | 2015-01-13T15:52:06.000Z | 2020-02-13T01:26:04.000Z | src/xpcc/ui/gui/widgets/numberfield.hpp | salkinium/xpcc | 010924901947381d20e83b838502880eb2ffea72 | [
"BSD-3-Clause"
] | 281 | 2015-01-06T12:46:40.000Z | 2019-01-06T13:06:57.000Z | src/xpcc/ui/gui/widgets/numberfield.hpp | salkinium/xpcc | 010924901947381d20e83b838502880eb2ffea72 | [
"BSD-3-Clause"
] | 51 | 2015-03-03T19:56:12.000Z | 2020-03-22T02:13:36.000Z | // coding: utf-8
/* Copyright (c) 2014, Roboterclub Aachen e.V.
* All Rights Reserved.
*
* The file is part of the xpcc library and is released under the 3-clause BSD
* license. See the file `LICENSE` for the full license governing this code.
*/
// ------------------------------------------------------------------... | 15.197368 | 79 | 0.651082 | [
"render"
] |
0c2c4c58aaff820269b0f99a4147134009544413 | 9,047 | cpp | C++ | applications/PfemFluidDynamicsApplication/custom_elements/three_step_second_order_pspg_updated_lagrangian_element.cpp | KlausBSautter/Kratos | 245b30e38497a242bbdf999278e9c1b6175a573a | [
"BSD-4-Clause"
] | 778 | 2017-01-27T16:29:17.000Z | 2022-03-30T03:01:51.000Z | applications/PfemFluidDynamicsApplication/custom_elements/three_step_second_order_pspg_updated_lagrangian_element.cpp | KlausBSautter/Kratos | 245b30e38497a242bbdf999278e9c1b6175a573a | [
"BSD-4-Clause"
] | 6,634 | 2017-01-15T22:56:13.000Z | 2022-03-31T15:03:36.000Z | applications/PfemFluidDynamicsApplication/custom_elements/three_step_second_order_pspg_updated_lagrangian_element.cpp | philbucher/Kratos | 1ceb900dbacfab344e27e32285250eafc52093ec | [
"BSD-4-Clause"
] | 224 | 2017-02-07T14:12:49.000Z | 2022-03-06T23:09:34.000Z | //
// Project Name: KratosFluidDynamicsApplication $
// Last modified by: $Author: AFranci $
// Date: $Date: June 2021 $
// Revision: $Revision: 0.0 $
//
// Implementation of the Gauss-Seidel two step Updated Lagrangian Velo... | 43.495192 | 192 | 0.610368 | [
"shape"
] |
0c4e752541696aff7c82b9689304a4f5797bef18 | 2,501 | cpp | C++ | src/Helper.cpp | 3zcs/Cpider | 969c9d996a6cd9aff08430739d7c51cd6bcb8fda | [
"Unlicense"
] | null | null | null | src/Helper.cpp | 3zcs/Cpider | 969c9d996a6cd9aff08430739d7c51cd6bcb8fda | [
"Unlicense"
] | null | null | null | src/Helper.cpp | 3zcs/Cpider | 969c9d996a6cd9aff08430739d7c51cd6bcb8fda | [
"Unlicense"
] | null | null | null | #include "Helper.h"
std::promise<std::string> prms;
std::future<std::string> ftr = prms.get_future();
std::vector<std::future<void>> futures;
std::mutex mutexCheck, mutexInsert, mtx;
std::condition_variable _cond;
bool ready = false;
void start(std::string url, std::string path)
{
if (!path.empty())
{
... | 25.01 | 98 | 0.569372 | [
"vector"
] |
0c50d4e54c0f2d2c9d9fa23bb8824efc3d7c900c | 8,399 | hxx | C++ | src/meanstdimage/meanstdimage.hxx | sderaedt/ITKTools | c1a0748bd9c09f9abd6ba4d1b88ce09fb2217df6 | [
"Apache-2.0"
] | 29 | 2015-03-14T07:13:00.000Z | 2021-12-16T13:01:44.000Z | src/meanstdimage/meanstdimage.hxx | sderaedt/ITKTools | c1a0748bd9c09f9abd6ba4d1b88ce09fb2217df6 | [
"Apache-2.0"
] | 6 | 2015-02-05T21:51:42.000Z | 2020-09-04T10:57:44.000Z | src/meanstdimage/meanstdimage.hxx | sderaedt/ITKTools | c1a0748bd9c09f9abd6ba4d1b88ce09fb2217df6 | [
"Apache-2.0"
] | 13 | 2015-07-02T14:35:22.000Z | 2021-05-27T08:46:37.000Z | /*=========================================================================
*
* Copyright Marius Staring, Stefan Klein, David Doria. 2011.
*
* 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
*
* ... | 36.202586 | 113 | 0.68401 | [
"vector"
] |
31c5f7e6d6cdb8725c575860912674657096b3aa | 2,642 | hpp | C++ | include/taskparts/rollforward.hpp | mikerainey/taskparts | 27d4bdda15a5c370c25df6ce8be1233362107cc8 | [
"MIT"
] | null | null | null | include/taskparts/rollforward.hpp | mikerainey/taskparts | 27d4bdda15a5c370c25df6ce8be1233362107cc8 | [
"MIT"
] | null | null | null | include/taskparts/rollforward.hpp | mikerainey/taskparts | 27d4bdda15a5c370c25df6ce8be1233362107cc8 | [
"MIT"
] | null | null | null | #pragma once
#include <utility>
#include <algorithm>
#include <vector>
#if defined(TASKPARTS_POSIX)
using register_type = greg_t;
#elif defined (TASKPARTS_NAUTILUS)
using register_type = ulong_t*;
#else
#error need to declare platform (e.g., TASKPARTS_POSIX)
#endif
/*-------------------------------------------------... | 24.238532 | 100 | 0.676382 | [
"vector"
] |
31c9a7276b3fa9ab9c3dc6102565d5580c86330b | 3,157 | cpp | C++ | UI/UI/TrainerCreator.cpp | primetime00/CCCheat | 827fcfb0f06946ed9cde5a10dd489b4a677209ff | [
"Apache-2.0"
] | 16 | 2017-01-30T05:51:34.000Z | 2022-01-26T21:04:26.000Z | UI/UI/TrainerCreator.cpp | ps3lib/CCCheat | 827fcfb0f06946ed9cde5a10dd489b4a677209ff | [
"Apache-2.0"
] | 2 | 2016-06-24T15:15:44.000Z | 2018-10-16T15:10:36.000Z | UI/UI/TrainerCreator.cpp | ps3lib/CCCheat | 827fcfb0f06946ed9cde5a10dd489b4a677209ff | [
"Apache-2.0"
] | 3 | 2015-09-26T17:04:15.000Z | 2020-06-09T16:09:22.000Z | #include "TrainerCreator.h"
#include "Trainer/Trainer.h"
#include "TrainerSrc.h"
#include <vector>
#include <algorithm>
#include <fstream>
#if !defined(_WIN32) && !defined(WIN32)
#include <sys/stat.h>
#endif
using namespace std;
TrainerCreator::TrainerCreator()
{
m_title = "";
m_region = "";
m_gameTitle = "";
m_au... | 32.214286 | 158 | 0.707634 | [
"vector"
] |
31cbee5f726e80de312e54af6f42df8a0c5900b6 | 14,307 | cpp | C++ | src/rpc_txn_client.cpp | thu-pacman/RisGraph | 2e36df68f1e88accf2f5f85669c532d3b7b5d7c3 | [
"Apache-2.0"
] | 13 | 2021-08-24T14:05:36.000Z | 2022-03-20T09:02:40.000Z | src/rpc_txn_client.cpp | thu-pacman/RisGraph | 2e36df68f1e88accf2f5f85669c532d3b7b5d7c3 | [
"Apache-2.0"
] | 1 | 2021-10-02T09:01:51.000Z | 2021-10-02T09:39:44.000Z | src/rpc_txn_client.cpp | thu-pacman/RisGraph | 2e36df68f1e88accf2f5f85669c532d3b7b5d7c3 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2020 Guanyu Feng, Tsinghua University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 52.793358 | 258 | 0.56364 | [
"vector"
] |
31d64324c216f5cb42b4b96eb1ebb7549bd20412 | 1,599 | cpp | C++ | src/guide/screenembeded.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | 2 | 2017-06-16T19:27:55.000Z | 2020-04-05T02:18:07.000Z | src/guide/screenembeded.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | null | null | null | src/guide/screenembeded.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | 2 | 2019-09-03T19:23:20.000Z | 2020-08-29T21:46:17.000Z | #define N_IMPLEMENTS TScreenEmbeded
//-------------------------------------------------------------------
// screenembeded.cpp
// (C) 2003 R.Predescu
//-------------------------------------------------------------------
#include "guide/screenembeded.h"
#include "guide/skin.h"
#include "guide/debug.h"
//-------------... | 27.568966 | 69 | 0.3202 | [
"render"
] |
31d6cf5a2586b140a5a6b08fbb8d0155f1f70def | 3,539 | cpp | C++ | src/vcfaddinfo.cpp | timmassingham/vcflib | e0cb656cb0e224dc078ba1e06079a88a5ea7b6ab | [
"MIT"
] | 379 | 2016-01-29T00:01:51.000Z | 2022-03-21T21:07:03.000Z | src/vcfaddinfo.cpp | timmassingham/vcflib | e0cb656cb0e224dc078ba1e06079a88a5ea7b6ab | [
"MIT"
] | 245 | 2016-01-31T19:05:29.000Z | 2022-03-31T13:17:17.000Z | src/vcfaddinfo.cpp | timmassingham/vcflib | e0cb656cb0e224dc078ba1e06079a88a5ea7b6ab | [
"MIT"
] | 168 | 2016-02-11T19:30:52.000Z | 2022-02-10T09:20:34.000Z | /*
vcflib C++ library for parsing and manipulating VCF files
Copyright © 2010-2020 Erik Garrison
Copyright © 2020 Pjotr Prins
This software is published under the MIT License. See the LICENSE file.
*/
#include "Variant.h"
#include "split.h"
#include <string>
#include <iostream>
#include <set>
u... | 29.247934 | 114 | 0.589715 | [
"vector"
] |
31f90081583afe036ac3f2b2e1b6deb8f0557f79 | 3,654 | cpp | C++ | src/services/pcn-dynmon/src/serializer/MetricConfigJsonObject.cpp | stefalbi/polycube | f7b65ece48505458796cb4969d41677e991fbdc8 | [
"ECL-2.0",
"Apache-2.0"
] | 337 | 2018-12-12T11:50:15.000Z | 2022-03-15T00:24:35.000Z | src/services/pcn-dynmon/src/serializer/MetricConfigJsonObject.cpp | l1b0k/polycube | 7af919245c131fa9fe24c5d39d10039cbb81e825 | [
"ECL-2.0",
"Apache-2.0"
] | 253 | 2018-12-17T21:36:15.000Z | 2022-01-17T09:30:42.000Z | src/services/pcn-dynmon/src/serializer/MetricConfigJsonObject.cpp | l1b0k/polycube | 7af919245c131fa9fe24c5d39d10039cbb81e825 | [
"ECL-2.0",
"Apache-2.0"
] | 90 | 2018-12-19T15:49:38.000Z | 2022-03-27T03:56:07.000Z | #include "MetricConfigJsonObject.h"
#include <regex>
namespace polycube {
namespace service {
namespace model {
MetricConfigJsonObject::MetricConfigJsonObject() {
m_nameIsSet = false;
m_mapNameIsSet = false;
m_extractionOptionsIsSet = false;
m_openMetricsMetadataIsSet = fal... | 32.336283 | 103 | 0.649973 | [
"object",
"model"
] |
31fc46e1e32370a62d03c520acb80e9c6a40f061 | 844 | cpp | C++ | leetcode/arrays101/Merge-Sorted-Array.cpp | leohr/competitive-programming | f97488e0cb777c1df78257ce2644ac4ff8191267 | [
"MIT"
] | 1 | 2020-10-08T19:28:40.000Z | 2020-10-08T19:28:40.000Z | leetcode/arrays101/Merge-Sorted-Array.cpp | leohr/competitive-programming | f97488e0cb777c1df78257ce2644ac4ff8191267 | [
"MIT"
] | null | null | null | leetcode/arrays101/Merge-Sorted-Array.cpp | leohr/competitive-programming | f97488e0cb777c1df78257ce2644ac4ff8191267 | [
"MIT"
] | 1 | 2020-10-24T02:32:27.000Z | 2020-10-24T02:32:27.000Z | class Solution {
public:
void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) {
if (m == 0) {
nums1 = nums2;
return;
}
if (n == 0) {
return;
}
vector<int> nums;
int i = 0, j = 0;
while (i + j < n + m) {
... | 24.823529 | 70 | 0.308057 | [
"vector"
] |
ee038bdc8d91b410e3ebb4b341058969fc1d84cc | 4,141 | cpp | C++ | android-30/android/net/wifi/ScanResult.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-30/android/net/wifi/ScanResult.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/net/wifi/ScanResult.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../os/Parcel.hpp"
#include "../../../JString.hpp"
#include "../../../JString.hpp"
#include "./ScanResult.hpp"
namespace android::net::wifi
{
// Fields
JString ScanResult::BSSID()
{
return getObjectField(
"BSSID",
"Ljava/lang/String;"
);
}
jint ScanResult::CHANNEL_WIDTH_160MHZ()
{
return ... | 18.082969 | 74 | 0.671335 | [
"object"
] |
ee0558634bd6e89f5799e1991a0866b65e9f01df | 9,811 | cc | C++ | src/Population.cc | evolbio/design2 | 7f1856e682382e91e56569de2a6d64a61cc424cc | [
"CC-BY-4.0"
] | null | null | null | src/Population.cc | evolbio/design2 | 7f1856e682382e91e56569de2a6d64a61cc424cc | [
"CC-BY-4.0"
] | null | null | null | src/Population.cc | evolbio/design2 | 7f1856e682382e91e56569de2a6d64a61cc424cc | [
"CC-BY-4.0"
] | null | null | null | #include <cmath>
#include "Population.h"
#include "util.h"
Population::Population(Param& param)
{
static bool flag = true;
std::string showRec;
popSize = param.popsize;
ind = std::vector<Individual>(popSize);
indFitness = std::vector<double>(popSize);
hvec = std::vector<uint64_t>(popSize);
... | 35.418773 | 219 | 0.568851 | [
"vector"
] |
ee0d17332c45d4118c37e69c185e0c052e2a03c1 | 411 | cpp | C++ | HackerRank-C++/HackerRank/HackerRank/BirthdayChocolate.cpp | domEnriquez/Algorithms | ec156f04f83463bcb320f55dc7234b558454c418 | [
"MIT"
] | null | null | null | HackerRank-C++/HackerRank/HackerRank/BirthdayChocolate.cpp | domEnriquez/Algorithms | ec156f04f83463bcb320f55dc7234b558454c418 | [
"MIT"
] | null | null | null | HackerRank-C++/HackerRank/HackerRank/BirthdayChocolate.cpp | domEnriquez/Algorithms | ec156f04f83463bcb320f55dc7234b558454c418 | [
"MIT"
] | null | null | null | #include "BirthdayChocolate.h"
using namespace HackerRank;
int BirthdayChocolate::CountPossiblePartitions(vector<int> s, int day, int month)
{
int barSize = s.size();
if (barSize < month)
return 0;
int count = 0;
for (int i = 0; i < barSize; i++) {
int sum = 0;
for (int j = i; j <= month - 1 + i && j <... | 15.222222 | 81 | 0.581509 | [
"vector"
] |
ee1a38ccfe23eb020ac6439761b7060d6b7fa263 | 7,551 | cpp | C++ | dod/DLLMain.cpp | matej0/source-engine-internals | c2d2014245e1ea901854280bf5f0b30f3c5aaa95 | [
"MIT"
] | 1 | 2021-11-14T17:29:05.000Z | 2021-11-14T17:29:05.000Z | dod/DLLMain.cpp | matej0/source-engine-internals | c2d2014245e1ea901854280bf5f0b30f3c5aaa95 | [
"MIT"
] | null | null | null | dod/DLLMain.cpp | matej0/source-engine-internals | c2d2014245e1ea901854280bf5f0b30f3c5aaa95 | [
"MIT"
] | 5 | 2021-09-18T01:13:24.000Z | 2021-12-18T22:20:53.000Z | #include "SDK.h"
#include "Client.h"
#include "Panels.h"
//doubt this will ever see the light of day ( unknowncheats ).
unsigned int Get(void* class_, unsigned int index) { return (unsigned int)(*(int**)class_)[index]; }
COffsets gOffsets;
CPlayerVariables gPlayerVars;
CInterfaces gInts;
CFriends gFriends... | 37.381188 | 132 | 0.727851 | [
"vector"
] |
ee1e05699be86a433174de9c24eac52c528b27b1 | 13,636 | cpp | C++ | gui/regionwidget.cpp | klindworth/disparity_estimation | 74759d35f7635ff725629a1ae555d313f3e9fb29 | [
"BSD-2-Clause"
] | null | null | null | gui/regionwidget.cpp | klindworth/disparity_estimation | 74759d35f7635ff725629a1ae555d313f3e9fb29 | [
"BSD-2-Clause"
] | null | null | null | gui/regionwidget.cpp | klindworth/disparity_estimation | 74759d35f7635ff725629a1ae555d313f3e9fb29 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2013, Kai Klindworth
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the... | 41.446809 | 408 | 0.729686 | [
"vector"
] |
ee210d59152aaffe20bed3972ed82aceed7e347d | 219 | h++ | C++ | mla/vector/all.h++ | ruimaciel/mla | b05f5913067af31a345cd2187de25871dbe31856 | [
"BSD-3-Clause"
] | null | null | null | mla/vector/all.h++ | ruimaciel/mla | b05f5913067af31a345cd2187de25871dbe31856 | [
"BSD-3-Clause"
] | null | null | null | mla/vector/all.h++ | ruimaciel/mla | b05f5913067af31a345cd2187de25871dbe31856 | [
"BSD-3-Clause"
] | null | null | null | #ifndef MLA_VECTOR_STORAGE_ALL_HPP
#define MLA_VECTOR_STORAGE_ALL_HPP
/**
* Convenience header used to include all MLA Vector classes
*/
#include <mla/vector/Dense.h++>
#include <mla/vector/SparseCS.h++>
#endif
| 14.6 | 60 | 0.753425 | [
"vector"
] |
ee22052f79623a49555218a5d5e36e465ac87a03 | 1,846 | hpp | C++ | src/org/apache/poi/hssf/eventusermodel/EventWorkbookBuilder.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hssf/eventusermodel/EventWorkbookBuilder.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hssf/eventusermodel/EventWorkbookBuilder.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/hssf/eventusermodel/EventWorkbookBuilder.java
#pragma once
#include <java/lang/fwd-POI.hpp>
#include <org/apache/poi/hssf/eventusermodel/fwd-POI.hpp>
#include <org/apache/poi/hssf/model/fwd-POI.hpp>
#include <org/apache/poi/hssf/record/fwd-POI.hpp>
#include <java/lang/Object... | 36.196078 | 211 | 0.738353 | [
"object",
"model"
] |
ee2bf0b69c959d8b9f03815a75e39993cc5cbdd0 | 1,441 | cpp | C++ | src/Cheese.cpp | JRThimesch/Pizza-Shop | 55f2268d492e40750b4d79d83b12e1f0c3f8a899 | [
"MIT"
] | null | null | null | src/Cheese.cpp | JRThimesch/Pizza-Shop | 55f2268d492e40750b4d79d83b12e1f0c3f8a899 | [
"MIT"
] | null | null | null | src/Cheese.cpp | JRThimesch/Pizza-Shop | 55f2268d492e40750b4d79d83b12e1f0c3f8a899 | [
"MIT"
] | null | null | null | // File Name: Cheese.cpp
// Author: Jonathan Thimesch
// Student ID: D696H345
// Exam Number: 3
#include "Pizza.h"
#include "Cheese.hpp"
static const double PRICE_CHEESE_TOPPINGS = 1.0;
Cheese::Cheese() : Pizza()
{
initialized = false;
panSize = SMALL;
numberOfCheeseToppings = 0;
}
Cheese::Che... | 19.213333 | 141 | 0.657876 | [
"object"
] |
0c5f88003b25620429796f2f1f472a0a3731fa9f | 13,404 | cpp | C++ | FlyEngine/Source/Action.cpp | rogerta97/FlyEngine | 33abd70c5b4307cd552e2b6269b401772b4327ba | [
"MIT"
] | null | null | null | FlyEngine/Source/Action.cpp | rogerta97/FlyEngine | 33abd70c5b4307cd552e2b6269b401772b4327ba | [
"MIT"
] | null | null | null | FlyEngine/Source/Action.cpp | rogerta97/FlyEngine | 33abd70c5b4307cd552e2b6269b401772b4327ba | [
"MIT"
] | null | null | null | #include "Action.h"
#include "FlyObject.h"
#include "Application.h"
#include "ModuleImGui.h"
#include "Texture.h"
#include "ResourceManager.h"
#include "GlobalBlackboardDockPanel.h"
#include "Room.h"
#include "ModuleWorldManager.h"
#include "FlyVariable.h"
#include "ActionConditionVariable.h"
#include "ActionCondition... | 23.681979 | 146 | 0.770889 | [
"object"
] |
0c632d888ca69a5c1202464ce98f5fc2ceb8b1b7 | 8,230 | hpp | C++ | engine/src/Renderer.hpp | skryabiin/core | 13bcdd0c9f3ebcc4954b9ee05ea95db0f77e16f7 | [
"MIT"
] | null | null | null | engine/src/Renderer.hpp | skryabiin/core | 13bcdd0c9f3ebcc4954b9ee05ea95db0f77e16f7 | [
"MIT"
] | null | null | null | engine/src/Renderer.hpp | skryabiin/core | 13bcdd0c9f3ebcc4954b9ee05ea95db0f77e16f7 | [
"MIT"
] | null | null | null | #ifndef CORE_RENDERER_HPP
#define CORE_RENDERER_HPP
#include <algorithm>
#include <memory>
#include <GL/glew.h>
//include stdlib so glut can override exit()
#include <stdlib.h>
#include <glut.h>
#include <SDL.h>
#include "SDL_image.h"
#include "Templates.hpp"
#include "Config.hpp"
#include "Math.hpp"
#include "Textu... | 23.994169 | 151 | 0.760996 | [
"render",
"vector",
"transform"
] |
0c66786024a9db3ba6c7787c133d484da6c73a23 | 2,722 | cpp | C++ | cpp/example_code/s3/copy_object.cpp | iconara/aws-doc-sdk-examples | 52706b31b4fce8fb89468e56743edf5369e69628 | [
"Apache-2.0"
] | 1 | 2020-10-24T04:19:21.000Z | 2020-10-24T04:19:21.000Z | cpp/example_code/s3/copy_object.cpp | iconara/aws-doc-sdk-examples | 52706b31b4fce8fb89468e56743edf5369e69628 | [
"Apache-2.0"
] | 1 | 2021-04-09T21:17:09.000Z | 2021-04-09T21:17:09.000Z | cpp/example_code/s3/copy_object.cpp | iconara/aws-doc-sdk-examples | 52706b31b4fce8fb89468e56743edf5369e69628 | [
"Apache-2.0"
] | 27 | 2020-04-16T22:52:53.000Z | 2021-09-30T22:55:58.000Z | //snippet-sourcedescription:[copy_object.cpp demonstrates how to copy an object from one Amazon Simple Storage Service (Amazon S3) bucket to another.]
//snippet-keyword:[AWS SDK for C++]
//snippet-keyword:[Code Sample]
//snippet-service:[Amazon S3]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[12/15/2021]
/... | 33.604938 | 150 | 0.655768 | [
"object",
"model"
] |
0c68702e851f3448c2acf34d971f1a787b539f21 | 1,810 | cpp | C++ | src/tests/class_tests/tensorbase/source/TensorType_test.cpp | dmccloskey/TensorBase | fe947c079907ffcea81833e6d73e7b48704d093c | [
"MIT"
] | 1 | 2020-01-27T19:23:18.000Z | 2020-01-27T19:23:18.000Z | src/tests/class_tests/tensorbase/source/TensorType_test.cpp | dmccloskey/TensorBase | fe947c079907ffcea81833e6d73e7b48704d093c | [
"MIT"
] | 38 | 2019-04-13T07:42:11.000Z | 2019-11-03T14:10:54.000Z | src/tests/class_tests/tensorbase/source/TensorType_test.cpp | dmccloskey/TensorBase | fe947c079907ffcea81833e6d73e7b48704d093c | [
"MIT"
] | 1 | 2019-04-12T10:54:42.000Z | 2019-04-12T10:54:42.000Z | /**TODO: Add copyright*/
#define BOOST_TEST_MODULE TensorType test suite
#include <boost/test/included/unit_test.hpp>
#include <TensorBase/ml/TensorType.h>
#include <cassert>
using namespace TensorBase;
using namespace std;
BOOST_AUTO_TEST_SUITE(tensorType)
BOOST_AUTO_TEST_CASE(Int8Type1)
{
Int8Type tensorType;... | 36.938776 | 123 | 0.738122 | [
"vector"
] |
0c858b34cbd96c11867ce756eb8a4239cabd92c7 | 6,476 | cpp | C++ | Systems/Engine/PropertyTrack.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | 1 | 2022-03-26T21:08:19.000Z | 2022-03-26T21:08:19.000Z | Systems/Engine/PropertyTrack.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | Systems/Engine/PropertyTrack.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
///
/// \file PropertyTrack.cpp
///
///
/// Authors: Joshua Claeys, Chris Peters
/// Copyright 2011-2014, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#include... | 32.542714 | 103 | 0.546634 | [
"object",
"transform"
] |
0c867a7e0ec1b260fca5f209fdd7517537d8aeea | 1,504 | cpp | C++ | src/application.cpp | vladislavmarkov/sketchthis | 0d494c9ed54846d759c3fad6a52aa23ae3aff4b8 | [
"MIT"
] | null | null | null | src/application.cpp | vladislavmarkov/sketchthis | 0d494c9ed54846d759c3fad6a52aa23ae3aff4b8 | [
"MIT"
] | null | null | null | src/application.cpp | vladislavmarkov/sketchthis | 0d494c9ed54846d759c3fad6a52aa23ae3aff4b8 | [
"MIT"
] | null | null | null | #include "application.hpp"
#include <tuple>
#include <SDL.h>
#include "fps_ctl.hpp"
#include "reactor.hpp"
#include "renderer.hpp"
#include "sdl2.hpp"
#include "texture.hpp"
#include "tlsm.hpp"
#include "window.hpp"
namespace sketchthis {
application_t::application_t(std::string_view title)
{
const auto [x, y,... | 20.324324 | 80 | 0.654255 | [
"vector"
] |
0c8d1ff310192ca57c0c371415a0801d4a3bf528 | 6,866 | cpp | C++ | Control/MV/mv.cpp | martinkro/tutorial-qt | 8685434520c6ab61691722aa06ca075f8ddbeacf | [
"MIT"
] | 2 | 2018-06-24T10:19:30.000Z | 2018-12-13T14:31:49.000Z | Control/MV/mv.cpp | martinkro/tutorial-qt | 8685434520c6ab61691722aa06ca075f8ddbeacf | [
"MIT"
] | null | null | null | Control/MV/mv.cpp | martinkro/tutorial-qt | 8685434520c6ab61691722aa06ca075f8ddbeacf | [
"MIT"
] | null | null | null | #include "mv.h"
#include <QStringListModel>
#include <QListView>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QMessageBox>
#include <QLineEdit>
#include <QSlider>
#include <QInputDialog>
#include <QFileSystemModel>
#include <QTreeView>
#include <QStandardItemModel>
#include <QTableView... | 26.306513 | 75 | 0.692106 | [
"model"
] |
0c92c2791d0f0e8fd159050572c02d0e9e04a2d1 | 5,208 | cpp | C++ | test/lib/math/vector2_test.cpp | stuhacking/SGEngine-Cpp | bf531b7ba02a20a2c0d756f6422b68461095664a | [
"BSD-3-Clause"
] | 1 | 2015-12-17T15:13:53.000Z | 2015-12-17T15:13:53.000Z | test/lib/math/vector2_test.cpp | stuhacking/SGEngine-Cpp | bf531b7ba02a20a2c0d756f6422b68461095664a | [
"BSD-3-Clause"
] | null | null | null | test/lib/math/vector2_test.cpp | stuhacking/SGEngine-Cpp | bf531b7ba02a20a2c0d756f6422b68461095664a | [
"BSD-3-Clause"
] | null | null | null | //
// Vec2f Unit Tests
//
#include <gtest/gtest.h>
#include <cfloat>
#include "lib.h"
/*==========================
Vector property Tests
==========================*/
TEST (Vec2f_Test, Length) {
EXPECT_FLOAT_EQ(5.0f, Vec2f(3.0f, 4.0f).mag());
}
TEST (Vec2f_Test, Zero) {
Vec2f v = Vec2f(10.0f, 10.0f);
... | 25.782178 | 97 | 0.569508 | [
"vector"
] |
0c9570c12bfcd96154523bd84c2765bcf2daa1ab | 5,049 | hxx | C++ | include/nifty/graph/graph_maps.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | 38 | 2016-06-29T07:42:50.000Z | 2021-12-09T09:25:25.000Z | include/nifty/graph/graph_maps.hxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 62 | 2016-07-27T16:07:53.000Z | 2022-03-30T17:24:36.000Z | include/nifty/graph/graph_maps.hxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 20 | 2016-01-25T21:21:52.000Z | 2021-12-09T09:25:16.000Z | #pragma once
#include "nifty/xtensor/xtensor.hxx"
namespace nifty{
namespace graph{
namespace graph_maps{
template<class G, class T>
struct NodeMap : public std::vector<T>{
NodeMap( const G & g, const T & val)
: std::vector<T>( g.nodeIdUpperBound()+1, val){
}
NodeMap( const G & g)
: std::v... | 23.16055 | 78 | 0.574767 | [
"object",
"shape",
"vector"
] |
0ca779df613cd5eff861f62f4500763ad51f55d8 | 28,895 | cpp | C++ | src/hagglekernel/ProtocolManager.cpp | eebenson/haggle | c461667b079934fa03b1ebb472ca67641a3d1140 | [
"Apache-2.0"
] | null | null | null | src/hagglekernel/ProtocolManager.cpp | eebenson/haggle | c461667b079934fa03b1ebb472ca67641a3d1140 | [
"Apache-2.0"
] | null | null | null | src/hagglekernel/ProtocolManager.cpp | eebenson/haggle | c461667b079934fa03b1ebb472ca67641a3d1140 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2008-2009 Uppsala University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 28.162768 | 131 | 0.665859 | [
"object"
] |
0ca8a0b5fbdfac2997883a9730dab671a290ce41 | 22,302 | hpp | C++ | utility/PtrVector.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 82 | 2016-04-18T03:59:06.000Z | 2019-02-04T11:46:08.000Z | utility/PtrVector.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 265 | 2016-04-19T17:52:43.000Z | 2018-10-11T17:55:08.000Z | utility/PtrVector.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 68 | 2016-04-18T05:00:34.000Z | 2018-10-30T12:41:02.000Z | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 28.888601 | 115 | 0.658416 | [
"object",
"vector"
] |
0cad017bc33de62519daf8cc09d0e7b56a6db4cc | 4,057 | hpp | C++ | external/opencv3.4.1/include/opencv2/face/face_alignment.hpp | Keneyr/Tracking | 412b288c5f7401b69b4eb3813bdd178e894ad104 | [
"MIT"
] | 33 | 2018-12-10T10:54:35.000Z | 2022-01-17T11:35:00.000Z | external/opencv3.4.1/include/opencv2/face/face_alignment.hpp | Keneyr/Tracking | 412b288c5f7401b69b4eb3813bdd178e894ad104 | [
"MIT"
] | 2 | 2018-07-26T10:36:24.000Z | 2019-03-08T12:38:49.000Z | external/opencv3.4.1/include/opencv2/face/face_alignment.hpp | Keneyr/Tracking | 412b288c5f7401b69b4eb3813bdd178e894ad104 | [
"MIT"
] | 8 | 2018-07-05T06:46:55.000Z | 2020-07-24T19:23:59.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifndef __OPENCV_FACE_ALIGNMENT_HPP__
#define __OPENCV_FACE_ALIGNMENT_HPP__
#include "facemark.hpp"
namespace cv{
namespace ... | 56.347222 | 185 | 0.731575 | [
"shape",
"vector",
"model"
] |
0cb60f49e4980515bd33a8dcea6e3eed51f6da2a | 10,023 | cpp | C++ | src/gvt/render/data/reader/ObjReader.cpp | TACC/GravIT | 0a79dc74036c11669075198e01b30a92a8150693 | [
"BSD-3-Clause"
] | 24 | 2015-08-13T20:16:11.000Z | 2020-03-02T17:03:17.000Z | src/gvt/render/data/reader/ObjReader.cpp | TACC/GravIT | 0a79dc74036c11669075198e01b30a92a8150693 | [
"BSD-3-Clause"
] | 16 | 2015-10-16T03:42:37.000Z | 2019-08-07T21:54:47.000Z | src/gvt/render/data/reader/ObjReader.cpp | TACC/GravIT | 0a79dc74036c11669075198e01b30a92a8150693 | [
"BSD-3-Clause"
] | 8 | 2015-08-25T15:07:35.000Z | 2019-03-10T11:00:32.000Z | /* =======================================================================================
This file is released as part of GraviT - scalable, platform independent ray tracing
tacc.github.io/GraviT
Copyright 2013-2015 Texas Advanced Computing Center, The University of Texas at Austin
All rights reserved.
... | 35.045455 | 119 | 0.587648 | [
"mesh",
"render",
"vector"
] |
0cbf6095ec5df23fde9a5ba609437fbaba505a47 | 45,063 | cpp | C++ | src/mongo/unittest/dbclient_test.cpp | amidvidy/mongo-cxx-driver | e13b3e30547cd611c4a9bb723a2b4003c7bd2a4c | [
"Apache-2.0"
] | null | null | null | src/mongo/unittest/dbclient_test.cpp | amidvidy/mongo-cxx-driver | e13b3e30547cd611c4a9bb723a2b4003c7bd2a4c | [
"Apache-2.0"
] | null | null | null | src/mongo/unittest/dbclient_test.cpp | amidvidy/mongo-cxx-driver | e13b3e30547cd611c4a9bb723a2b4003c7bd2a4c | [
"Apache-2.0"
] | null | null | null | /* Copyright 2014 MongoDB Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 34.690531 | 108 | 0.561281 | [
"vector"
] |
7b487604590ad1784bbeceb52714e4d72131229f | 4,075 | cpp | C++ | src/storage/storage_service_class.cpp | Telecominfraproject/wlan-cloud-owprov | 6d29c8e5ce6af7b4f4f4e4ad2a5332d78dc520aa | [
"BSD-3-Clause"
] | null | null | null | src/storage/storage_service_class.cpp | Telecominfraproject/wlan-cloud-owprov | 6d29c8e5ce6af7b4f4f4e4ad2a5332d78dc520aa | [
"BSD-3-Clause"
] | null | null | null | src/storage/storage_service_class.cpp | Telecominfraproject/wlan-cloud-owprov | 6d29c8e5ce6af7b4f4f4e4ad2a5332d78dc520aa | [
"BSD-3-Clause"
] | null | null | null | //
// Created by stephane bourque on 2022-04-06.
//
#include "storage_service_class.h"
//
// License type: BSD 3-Clause License
// License copy: https://github.com/Telecominfraproject/wlan-cloud-ucentralgw/blob/master/LICENSE
//
// Created by Stephane Bourque on 2021-03-04.
// Arilia Wireless Inc.
//
#include "stora... | 38.084112 | 199 | 0.630429 | [
"object",
"vector"
] |
7b4fdd5755e69e6eb688896b917507f02afdb4d4 | 1,547 | cpp | C++ | native/PCefRenderHandler.cpp | tseylerd/pcef | a9267eb54935fffeee66193814ce8f03afe18073 | [
"BSD-3-Clause"
] | null | null | null | native/PCefRenderHandler.cpp | tseylerd/pcef | a9267eb54935fffeee66193814ce8f03afe18073 | [
"BSD-3-Clause"
] | null | null | null | native/PCefRenderHandler.cpp | tseylerd/pcef | a9267eb54935fffeee66193814ce8f03afe18073 | [
"BSD-3-Clause"
] | null | null | null | //
// PCefRenderHandler.cpp
//
// Created by Dmitriy Tseyler on 20.07.2020.
//
#include "PCefRenderHandler.h"
void PCefRenderHandler::GetViewRect(CefRefPtr<CefBrowser> browser, CefRect& rect) {
auto result = _rect(_context, browsers::get_id(browser));
rect.x = result.x;
rect.y = result.y;
rect.width = resu... | 32.229167 | 158 | 0.663219 | [
"render"
] |
7b52f8f25e63efca07683b1b9669a9a1ed7ed572 | 1,597 | cc | C++ | SummingPieces/main.cc | wuxingyu1983/HackerRank | c42da8506fc65eca9bf6015b62c4446f9ab2af14 | [
"MIT"
] | null | null | null | SummingPieces/main.cc | wuxingyu1983/HackerRank | c42da8506fc65eca9bf6015b62c4446f9ab2af14 | [
"MIT"
] | null | null | null | SummingPieces/main.cc | wuxingyu1983/HackerRank | c42da8506fc65eca9bf6015b62c4446f9ab2af14 | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <map>
using namespace std;
#define DEBUG 0
#define MOD 1000000007
int main()
{
#if DEBUG
ifstream inFile;
inFile.open("inp... | 17.172043 | 60 | 0.39449 | [
"vector"
] |
7b594847bfdc85d57d0c5cda2fa65c560ee9b61f | 1,669 | cc | C++ | arcane/extras/coverity/ArcaneModel.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 16 | 2021-09-20T12:37:01.000Z | 2022-03-18T09:19:14.000Z | arcane/extras/coverity/ArcaneModel.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 66 | 2021-09-17T13:49:39.000Z | 2022-03-30T16:24:07.000Z | arcane/extras/coverity/ArcaneModel.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 11 | 2021-09-27T16:48:55.000Z | 2022-03-23T19:06:56.000Z | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
// Coverity Models For Arcane
// ///////////////////////
//
// These models suppress a few common false positives, mostly relating to
// asserts, or assert-like functions and macros.
//
// 1. Build the models with cov-make-library (i.e. buil... | 30.345455 | 112 | 0.714799 | [
"model"
] |
7b666d4d6a33f5be7288ca5b4733c3de27d0c3e1 | 205 | cpp | C++ | programmers/source/1-23.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 7 | 2019-06-26T07:03:32.000Z | 2020-11-21T16:12:51.000Z | programmers/source/1-23.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | null | null | null | programmers/source/1-23.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 9 | 2019-02-28T03:34:54.000Z | 2020-12-18T03:02:40.000Z | //자연수 뒤집어 배열로 만들기
// 2019.03.08
#include<vector>
using namespace std;
vector<int> solution(long long n)
{
vector<int> answer;
while (n>0)
{
answer.push_back(n % 10);
n /= 10;
}
return answer;
}
| 12.058824 | 33 | 0.639024 | [
"vector"
] |
7b6cbea9668b65953a2efb2ddadf9389665a40e0 | 11,758 | cpp | C++ | src/server.cpp | samkreter/bare-bones-socket-chat | 50360ff885e75dffa3482630b2af9870dca30958 | [
"MIT"
] | 2 | 2016-11-11T16:07:20.000Z | 2019-07-05T12:32:10.000Z | src/server.cpp | samkreter/bare-bones-socket-chat | 50360ff885e75dffa3482630b2af9870dca30958 | [
"MIT"
] | null | null | null | src/server.cpp | samkreter/bare-bones-socket-chat | 50360ff885e75dffa3482630b2af9870dca30958 | [
"MIT"
] | null | null | null | /*
** Sam Kreter
** 11/1/16
** This is the server for a chat application. One client will connect to the
** server interact over sockets
*/
#include <iostream>
#include <string>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <neti... | 27.217593 | 96 | 0.566763 | [
"vector"
] |
7b70a66ebc669d1a466eaaa2221cddf52fcc6b96 | 892 | cpp | C++ | source/write_output/Write_Stoichiometry_Matrix_For_Opt.cpp | DetlevCM/chemical-kinetics-solver | 7010fd6c72c29a0d912ad0c353ff13a5b643cc04 | [
"MIT"
] | 3 | 2015-07-03T20:14:00.000Z | 2021-02-02T13:45:31.000Z | source/write_output/Write_Stoichiometry_Matrix_For_Opt.cpp | DetlevCM/chemical-kinetics-solver | 7010fd6c72c29a0d912ad0c353ff13a5b643cc04 | [
"MIT"
] | null | null | null | source/write_output/Write_Stoichiometry_Matrix_For_Opt.cpp | DetlevCM/chemical-kinetics-solver | 7010fd6c72c29a0d912ad0c353ff13a5b643cc04 | [
"MIT"
] | 4 | 2017-11-09T19:49:18.000Z | 2020-08-04T18:29:28.000Z | /*
* WriteMechanism.cpp
*
* Created on: 21.11.2012
* Author: DetlevCM
*/
#include "../headers/Headers.hpp"
void Write_Stoichiometric_Matrix_For_Opt
(
string filename ,
const vector< SingleReactionData >& Reactions
)
{
size_t i, j;
ofstream Output (filename.c_str(),ios::out);
if (Output.is_open())
{... | 18.583333 | 75 | 0.607623 | [
"vector"
] |
7b7ee4193b3a62304e294d7267e428abd1b1992f | 527 | hpp | C++ | ares/msx/vdp/vdp.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/msx/vdp/vdp.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/msx/vdp/vdp.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | struct VDP : TMS9918, V9938, Thread {
Node::Object node;
Node::Video::Screen screen;
//vdp.cpp
auto load(Node::Object) -> void;
auto unload() -> void;
auto step(u32 clocks) -> void override;
auto irq(bool line) -> void override;
auto frame() -> void override;
auto power() -> void;
auto read(n2 po... | 20.269231 | 41 | 0.635674 | [
"object"
] |
7b8158f6aba58ffcfcf07a209ead9c9ad6f2fdf3 | 5,436 | hpp | C++ | inc/Application/Buffer.hpp | barne856/3DSWMM | 60dd2702c82857dcf4358b8d42a1fb430a568e90 | [
"MIT"
] | null | null | null | inc/Application/Buffer.hpp | barne856/3DSWMM | 60dd2702c82857dcf4358b8d42a1fb430a568e90 | [
"MIT"
] | null | null | null | inc/Application/Buffer.hpp | barne856/3DSWMM | 60dd2702c82857dcf4358b8d42a1fb430a568e90 | [
"MIT"
] | null | null | null | #ifndef BUFFER
#define BUFFER
#include <GL/glew.h>
#include <vector>
#include <string>
enum class ShaderDataType
{
None = 0,
Float,
Float2,
Float3,
Float4,
Mat3,
Mat4,
Int,
Int2,
Int3,
Int4,
Bool
};
struct BufferFormatElement
{
std::string m_name;
GLuint m_size;... | 25.641509 | 112 | 0.592347 | [
"vector"
] |
7b8a9f0eedcbb5386f9f9a9746c5c3f87964863c | 1,141 | cpp | C++ | dataStruct/cpp/LevelTraversal.cpp | FreezeSnail/LeetCode-Problems | 9754af9193b03fd2235c4ef8ec508f004ddf023f | [
"MIT"
] | null | null | null | dataStruct/cpp/LevelTraversal.cpp | FreezeSnail/LeetCode-Problems | 9754af9193b03fd2235c4ef8ec508f004ddf023f | [
"MIT"
] | null | null | null | dataStruct/cpp/LevelTraversal.cpp | FreezeSnail/LeetCode-Problems | 9754af9193b03fd2235c4ef8ec508f004ddf023f | [
"MIT"
] | null | null | null | /**102. Binary Tree Level Order Traversal
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNo... | 33.558824 | 108 | 0.581946 | [
"vector"
] |
7b8bb8eadeac30176f6a2ccef3d854be96546ca5 | 63,778 | cpp | C++ | src/raven_src/src/CommonFunctions.cpp | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | src/raven_src/src/CommonFunctions.cpp | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | src/raven_src/src/CommonFunctions.cpp | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | //////////////////////////////////////////////////////////////////
/// Raven Library Source Code
/// Copyright (c) 2008-2020 the Raven Development Team
//////////////////////////////////////////////////////////////////
#include <time.h>
#include "RavenInclude.h"
/////////////////////////////////////////////... | 38.513285 | 188 | 0.575904 | [
"mesh",
"shape",
"model"
] |
7b8cc48379726cfc0b318b84502522eb52faeea0 | 914 | cpp | C++ | UserLiteralExample.cpp | TheMaverickProgrammer/UniformDieCast | 466b2c8445b259c1d0162cc21479baf10b61d560 | [
"Zlib"
] | 16 | 2018-12-01T12:46:00.000Z | 2021-09-05T01:50:51.000Z | UserLiteralExample.cpp | TheMaverickProgrammer/UniformDieCast | 466b2c8445b259c1d0162cc21479baf10b61d560 | [
"Zlib"
] | null | null | null | UserLiteralExample.cpp | TheMaverickProgrammer/UniformDieCast | 466b2c8445b259c1d0162cc21479baf10b61d560 | [
"Zlib"
] | null | null | null | #include "DieCast.h"
#include <iostream>
// die::literal namespace exports a literal "# of rolls"_D(int sides)
// returns a facade to the die_cast object that can be concatenated.
int main() {
using namespace die::literal;
die::die_cast res = 4_D(6)+5 << 3_D(8) << 10_D(2)-30 << 1_D(6);
for(auto& i : ... | 28.5625 | 69 | 0.504376 | [
"object"
] |
7b90dfdf113960a314b092ea8439c1fa4e13a7ee | 2,170 | cpp | C++ | src/VectorViewTest.cpp | maxxboehme/BlockStorage | c539841d2ec66ab6fc4d71c2fa2e6dada707d799 | [
"MIT"
] | null | null | null | src/VectorViewTest.cpp | maxxboehme/BlockStorage | c539841d2ec66ab6fc4d71c2fa2e6dada707d799 | [
"MIT"
] | null | null | null | src/VectorViewTest.cpp | maxxboehme/BlockStorage | c539841d2ec66ab6fc4d71c2fa2e6dada707d799 | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include "BlockStorage.h"
#include "RecordStorage.h"
TEST_CASE("Create VectorView", "[VectorView]") {
std::unique_ptr<ISharedMemory> memory = std::make_unique<FakeSharedMemory>(0U);
BlockStorage<1028> storage(std::move(memory));
REQUIRE(storage.size() == 0U);
Block<1028> block = ... | 33.90625 | 92 | 0.659908 | [
"vector"
] |
7b99b48b0337eeb87d7f638be17efe8d7fa642dc | 2,982 | cpp | C++ | ImportantExample/QTableViewDemo/booleandelegate.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 3 | 2018-12-24T19:35:52.000Z | 2022-02-04T14:45:59.000Z | ImportantExample/QTableViewDemo/booleandelegate.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | null | null | null | ImportantExample/QTableViewDemo/booleandelegate.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 1 | 2019-05-09T02:42:40.000Z | 2019-05-09T02:42:40.000Z | #include <QStyle>
#include <QApplication>
#include "booleandelegate.h"
BooleanDelegate::BooleanDelegate(QObject *parent, bool defaultValue)
: QStyledItemDelegate(parent)
, defaultValue(defaultValue)
{
}
void BooleanDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
... | 32.064516 | 116 | 0.65057 | [
"model"
] |
7b9ba31a850ba3928fed356fb103ce9e4698344c | 900 | cpp | C++ | math/leetcode_math/246_strobogrammatic_number.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:19.000Z | 2020-10-12T19:18:19.000Z | math/leetcode_math/246_strobogrammatic_number.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | null | null | null | math/leetcode_math/246_strobogrammatic_number.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:04.000Z | 2020-10-12T19:18:04.000Z | //
// 246_strobogrammatic_number.cpp
// leetcode_math
//
// Created by Hadley on 12.08.20.
// Copyright © 2020 Hadley. All rights reserved.
//
#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include <stack>
#include <cstring>
#include <queue... | 19.565217 | 49 | 0.508889 | [
"vector"
] |
7b9bcd19fc1da8822c016e59101094866c58165e | 58,574 | cpp | C++ | ad_map_access/impl/tests/generated/ad/map/match/ObjectValidInputRangeTests.cpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | null | null | null | ad_map_access/impl/tests/generated/ad/map/match/ObjectValidInputRangeTests.cpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | null | null | null | ad_map_access/impl/tests/generated/ad/map/match/ObjectValidInputRangeTests.cpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | null | null | null | /*
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* ----------------- END LICENSE BLOCK -----------------------------------
*/
/*
* Generated file
*/
#include <gtest/gtest.h>
#include <limits>
#incl... | 78.307487 | 120 | 0.882012 | [
"object"
] |
7b9c9e6b2dea4eab83a8542b6e5ac678bfc18850 | 2,642 | hpp | C++ | RobotCode/src/objects/lcdCode/Gimmicks.hpp | ajcarney/VexCode2021-2022 | d17a29ff2533046c283c12a6bff31f719565c3a6 | [
"MIT"
] | null | null | null | RobotCode/src/objects/lcdCode/Gimmicks.hpp | ajcarney/VexCode2021-2022 | d17a29ff2533046c283c12a6bff31f719565c3a6 | [
"MIT"
] | null | null | null | RobotCode/src/objects/lcdCode/Gimmicks.hpp | ajcarney/VexCode2021-2022 | d17a29ff2533046c283c12a6bff31f719565c3a6 | [
"MIT"
] | null | null | null | /**
* @file: ./RobotCode/src/objects/lcdCode/Gimmicks.hpp
* @author: Aiden Carney
* @reviewed_on: 10/15/2019
* @reviewed_by: Aiden Carney
* TODO: fix loading screen, it sometimes does not work
*
* contains lcd gimmicks that are used to enhance interface
*
*/
#ifndef __GIMMICKS_HPP__
#define __GIMMICKS_HPP__
... | 23.589286 | 103 | 0.582513 | [
"object"
] |
7b9f3ecfed48eaf0028e5c90b46f208f374be320 | 3,506 | cpp | C++ | src/win32/tools/scsilist.cpp | tech-niche-biz/bacula-9.4.4 | 5e74458b612354f6838652dac9ddff94be1bbce6 | [
"BSD-2-Clause"
] | null | null | null | src/win32/tools/scsilist.cpp | tech-niche-biz/bacula-9.4.4 | 5e74458b612354f6838652dac9ddff94be1bbce6 | [
"BSD-2-Clause"
] | null | null | null | src/win32/tools/scsilist.cpp | tech-niche-biz/bacula-9.4.4 | 5e74458b612354f6838652dac9ddff94be1bbce6 | [
"BSD-2-Clause"
] | null | null | null | /*
* scsilist.cpp - Outputs the contents of a ScsiDeviceList.
*
* Author: Robert Nelson, August, 2006 <robertn@the-nelsons.org>
*
* Version $Id$
*
* This file was contributed to the Bacula project by Robert Nelson.
*
* Robert Nelson has been granted a perpetual, worldwide,
* non-exclusive, no-charge, royalty-... | 29.216667 | 97 | 0.678266 | [
"object"
] |
7ba5cbf4ca6d7c523ec945a5a11cf4a20a625672 | 4,139 | cpp | C++ | LTBL2/src/Sprite.cpp | Alia5/FSE | e53565aa1bbf0235dfcd2c3209d18b64c1fb2df1 | [
"MIT"
] | 17 | 2017-04-02T00:17:47.000Z | 2021-11-23T21:42:48.000Z | LTBL2/src/Sprite.cpp | Alia5/FSE | e53565aa1bbf0235dfcd2c3209d18b64c1fb2df1 | [
"MIT"
] | null | null | null | LTBL2/src/Sprite.cpp | Alia5/FSE | e53565aa1bbf0235dfcd2c3209d18b64c1fb2df1 | [
"MIT"
] | 5 | 2017-08-06T12:47:18.000Z | 2020-08-14T14:16:22.000Z | #include "Sprite.hpp"
#include "LightSystem.hpp"
namespace ltbl
{
Sprite::Sprite()
: BaseLight()
, mTexture(nullptr)
, mNormalsTexture(nullptr)
, mSpecularTexture(nullptr)
, light_system_(nullptr)
, mNormalsTarget(nullptr)
, mSpecularTarget(nullptr)
, mRenderNormals(false)
, mRenderSpecular(false)
... | 25.708075 | 92 | 0.695579 | [
"render",
"transform"
] |
7bafe794dc2fc3e617de3d83cfe05a35e87e2494 | 1,511 | cpp | C++ | examples/pxScene2d/external/libdash/libdash/libdash/source/mpd/BaseUrl.cpp | madanagopaltcomcast/pxCore | c4a3a40a190521c8b6383d126c87612eca5b3c42 | [
"Apache-2.0"
] | 46 | 2017-09-07T14:59:22.000Z | 2020-10-31T20:34:12.000Z | examples/pxScene2d/external/libdash/libdash/libdash/source/mpd/BaseUrl.cpp | madanagopaltcomcast/pxCore | c4a3a40a190521c8b6383d126c87612eca5b3c42 | [
"Apache-2.0"
] | 1,432 | 2017-06-21T04:08:48.000Z | 2020-08-25T16:21:15.000Z | examples/pxScene2d/external/libdash/libdash/libdash/source/mpd/BaseUrl.cpp | madanagopaltcomcast/pxCore | c4a3a40a190521c8b6383d126c87612eca5b3c42 | [
"Apache-2.0"
] | 317 | 2017-06-20T19:57:17.000Z | 2020-09-16T10:28:30.000Z | /*
* BaseUrl.cpp
*****************************************************************************
* Copyright (C) 2012, bitmovin Softwareentwicklung OG, All Rights Reserved
*
* Email: libdash-dev@vicky.bitmovin.net
*
* This source code and its use and distribution, is subject to the terms
* and conditions of the a... | 24.770492 | 95 | 0.555923 | [
"vector"
] |
7bb279cd728b8cee26302e219ba958ed4f248e48 | 821 | cpp | C++ | CodeChef/FROGV.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | 1 | 2020-10-16T18:14:30.000Z | 2020-10-16T18:14:30.000Z | CodeChef/FROGV.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | null | null | null | CodeChef/FROGV.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | 1 | 2021-01-06T04:45:38.000Z | 2021-01-06T04:45:38.000Z | //I've been expecting you <3
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define ll long long int
#define lb lower_bound
#define fr(i,n) for(int i=0; i<n; i++)
int main(){
int n,k,p;
cin>>n>>k>>p;
vector<int> vo(n),vd(n);
fr(i,n){
cin>>vo[i];
vd[i]=vo[i];
}
... | 22.805556 | 52 | 0.443362 | [
"vector"
] |
7bb6111723a1b5691a4aff04be5aaa4c925f9c01 | 9,870 | cpp | C++ | four-russian-optimization.cpp | hsiam261/LCS-with-Four-Russian-Optimization | e8a8146a828ca3c227849d1f6db94e485abd3ff6 | [
"MIT"
] | null | null | null | four-russian-optimization.cpp | hsiam261/LCS-with-Four-Russian-Optimization | e8a8146a828ca3c227849d1f6db94e485abd3ff6 | [
"MIT"
] | null | null | null | four-russian-optimization.cpp | hsiam261/LCS-with-Four-Russian-Optimization | e8a8146a828ca3c227849d1f6db94e485abd3ff6 | [
"MIT"
] | null | null | null | /**
*
* MIT License
*
* Copyright (c) [2021] [Siam Habib]
*
* 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, cop... | 25.703125 | 140 | 0.649341 | [
"vector"
] |
dcf4447ce3a4aef345b2bfe315f5986f73b49562 | 13,503 | cpp | C++ | src/AFQMC/Hamiltonians/THCHamiltonian.cpp | prckent/qmcpack | 127caf219ee99c2449b803821fcc8b1304b66ee1 | [
"NCSA"
] | null | null | null | src/AFQMC/Hamiltonians/THCHamiltonian.cpp | prckent/qmcpack | 127caf219ee99c2449b803821fcc8b1304b66ee1 | [
"NCSA"
] | null | null | null | src/AFQMC/Hamiltonians/THCHamiltonian.cpp | prckent/qmcpack | 127caf219ee99c2449b803821fcc8b1304b66ee1 | [
"NCSA"
] | null | null | null | #include<cstdlib>
#include<algorithm>
#include<complex>
#include<iostream>
#include<fstream>
#include<map>
#include<utility>
#include<vector>
#include<numeric>
#include "Configuration.h"
#include "io/hdf_archive.h"
#include "AFQMC/config.h"
#include "AFQMC/Utilities/Utils.hpp"
#include "AFQMC/Hamiltonians/THCHamilton... | 38.58 | 104 | 0.574095 | [
"shape",
"vector"
] |
0d092398ea16ee216c18ba798efb45aca43139ab | 1,644 | hpp | C++ | SummonEngine/CommonUtilities/Include/Camera.hpp | Raboni/SummonEngine | 2a1078d60b604a918b920d098f3f0e60e5ce35bc | [
"MIT"
] | 1 | 2020-03-27T15:22:17.000Z | 2020-03-27T15:22:17.000Z | SummonEngine/CommonUtilities/Include/Camera.hpp | Raboni/SummonEngine | 2a1078d60b604a918b920d098f3f0e60e5ce35bc | [
"MIT"
] | null | null | null | SummonEngine/CommonUtilities/Include/Camera.hpp | Raboni/SummonEngine | 2a1078d60b604a918b920d098f3f0e60e5ce35bc | [
"MIT"
] | 1 | 2021-01-22T03:49:01.000Z | 2021-01-22T03:49:01.000Z | #pragma once
#include "GrowingArray.hpp"
#include "Vector.hpp"
#include "Transform.hpp"
#include "PlaneVolume.hpp"
#include "Intersection.hpp"
namespace CU
{
class Camera
{
public:
Camera();
~Camera();
Camera& operator=(const Camera& aCamera);
const Matrix4x4f& GetSpace() const;
const Matrix4x4f& GetProj... | 28.842105 | 108 | 0.773723 | [
"vector",
"transform"
] |
0d11730dbb016fa45cf1da4dc4a80b881abf7278 | 2,010 | cpp | C++ | 17/day02/main.cpp | jakergrossman/aoc21 | 786444622b1d20b2c3a640f19f0bc24d3d48db34 | [
"Unlicense"
] | null | null | null | 17/day02/main.cpp | jakergrossman/aoc21 | 786444622b1d20b2c3a640f19f0bc24d3d48db34 | [
"Unlicense"
] | null | null | null | 17/day02/main.cpp | jakergrossman/aoc21 | 786444622b1d20b2c3a640f19f0bc24d3d48db34 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
#include <climits>
#include <sstream>
#include "common.h"
using std::vector;
int part_one(vector<vector<int> > input) {
vector<int> differences(input.size());
for (unsigned int i = 0; i < input.size(); i++) {
int min = INT_MAX, max = INT_MIN;
for (unsigne... | 26.103896 | 80 | 0.521891 | [
"vector"
] |
0d1358a9312e40f6fe4455ff85d751237b698c0b | 814 | cc | C++ | CPP/No717.cc | hxz1998/funny_leetcode | 1d2c425af09b57a030fc018ddc1e1a5ffb966cd0 | [
"Apache-2.0"
] | null | null | null | CPP/No717.cc | hxz1998/funny_leetcode | 1d2c425af09b57a030fc018ddc1e1a5ffb966cd0 | [
"Apache-2.0"
] | null | null | null | CPP/No717.cc | hxz1998/funny_leetcode | 1d2c425af09b57a030fc018ddc1e1a5ffb966cd0 | [
"Apache-2.0"
] | null | null | null | /**
* Created by Xiaozhong on 2020/11/23.
* Copyright (c) 2020/11/23 Xiaozhong. All rights reserved.
*/
#include <vector>
#include <iostream>
using namespace std;
class Solution {
public:
bool isOneBitCharacter(vector<int> &bits) {
for (int i = 0; i < bits.size(); ++i) {
// 如果到了倒数第二个字符,而且还等... | 25.4375 | 67 | 0.528256 | [
"vector"
] |
0d1aec28e01e1ccbf6e6e057bd37c688cdbb6da8 | 5,302 | cpp | C++ | OpenTESArena/src/Interface/ChooseNamePanel.cpp | Digital-Monk/OpenTESArena | 95f0bdaa642ff090b94081795a53b00f10dc4b03 | [
"MIT"
] | null | null | null | OpenTESArena/src/Interface/ChooseNamePanel.cpp | Digital-Monk/OpenTESArena | 95f0bdaa642ff090b94081795a53b00f10dc4b03 | [
"MIT"
] | null | null | null | OpenTESArena/src/Interface/ChooseNamePanel.cpp | Digital-Monk/OpenTESArena | 95f0bdaa642ff090b94081795a53b00f10dc4b03 | [
"MIT"
] | null | null | null | #include <unordered_map>
#include "SDL.h"
#include "ChooseClassPanel.h"
#include "ChooseGenderPanel.h"
#include "ChooseNamePanel.h"
#include "CursorAlignment.h"
#include "RichTextString.h"
#include "TextAlignment.h"
#include "TextBox.h"
#include "TextEntry.h"
#include "../Assets/ExeData.h"
#include "../Assets/MiscAss... | 28.202128 | 88 | 0.69785 | [
"render"
] |
0d1b4bacbfd50e950526d25ae0980d592d6c3099 | 1,408 | hpp | C++ | sources/Notebook.hpp | Shlomi-Lantser/Ex2-CPP | 74ec0a2e89c5568268400b93edc0fed1679eae21 | [
"MIT"
] | null | null | null | sources/Notebook.hpp | Shlomi-Lantser/Ex2-CPP | 74ec0a2e89c5568268400b93edc0fed1679eae21 | [
"MIT"
] | null | null | null | sources/Notebook.hpp | Shlomi-Lantser/Ex2-CPP | 74ec0a2e89c5568268400b93edc0fed1679eae21 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include "Direction.hpp"
using namespace std;
using ariel::Direction;
namespace ariel{
class Notebook{
private:
vector<vector<string>> pages; //Datastructure to hold the notebook
uint maxCols = 100;
public:
Notebook(... | 29.333333 | 92 | 0.473722 | [
"vector"
] |
0d1e3a46c9b0329d9c88d68728b0294f717a20d5 | 59,919 | hpp | C++ | include/GlobalNamespace/LocalNetworkPlayerModel.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/LocalNetworkPlayerModel.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/LocalNetworkPlayerModel.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: BaseNetworkPlayerModel
#inc... | 71.673445 | 353 | 0.769155 | [
"object",
"vector"
] |
0d2170ae7dc94cf9a0141f945ae4c1d7d4826df1 | 702 | cpp | C++ | leetcode/leetcode_912.cpp | xufor/dsa-hustle | 00ca691ddc4794a5a7b4439a59c463c4f0444a7a | [
"MIT"
] | null | null | null | leetcode/leetcode_912.cpp | xufor/dsa-hustle | 00ca691ddc4794a5a7b4439a59c463c4f0444a7a | [
"MIT"
] | null | null | null | leetcode/leetcode_912.cpp | xufor/dsa-hustle | 00ca691ddc4794a5a7b4439a59c463c4f0444a7a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define nl '\n'
#define sp " "
#define limit 1000000007
typedef long long ll;
using namespace std;
vector<int> sortArray(vector<int>& nums) {
sort(nums.begin(), nums.end());
return nums;
}
int main()
{
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen(... | 19.5 | 43 | 0.505698 | [
"vector"
] |
0d277dbf717388e7bc6c2bf9f9e43221f0a6cdfc | 7,525 | cpp | C++ | Game/DefRenderTestScene.cpp | NinjaDanz3r/NinjaOctopushBurgersOfDoom | 3b89f02d13504e4790fd655889b0cba261d4dbc6 | [
"MIT"
] | 1 | 2016-05-23T18:31:29.000Z | 2016-05-23T18:31:29.000Z | Game/DefRenderTestScene.cpp | NinjaDanz3r/NinjaOctopushBurgersOfDoom | 3b89f02d13504e4790fd655889b0cba261d4dbc6 | [
"MIT"
] | 25 | 2015-01-03T01:17:45.000Z | 2015-03-23T09:37:52.000Z | Game/DefRenderTestScene.cpp | NinjaDanz3r/NinjaOctopushBurgersOfDoom | 3b89f02d13504e4790fd655889b0cba261d4dbc6 | [
"MIT"
] | null | null | null | #include "DefRenderTestScene.h"
#include <gl/glew.h>
#include <Texture2D.h>
#include "settings.h"
#include <Shader.h>
#include <ShaderProgram.h>
#include "Player.h"
#include "Camera.h"
#include <Geometry.h>
#include "GeometryObject.h"
#include "Square.h"
#include "Cube.h"
#include "ShadowMap.h"
#include "input.h"
... | 36.352657 | 137 | 0.761329 | [
"geometry",
"render",
"model",
"transform"
] |
0d349aeebb7ad453fee902d4e48ec74fd202a5dd | 8,619 | cpp | C++ | utility.cpp | KevinLADLee/LiDARCamOdomCalib | 50f16619e0eb7088ba45677d64dafdf841406896 | [
"MIT"
] | null | null | null | utility.cpp | KevinLADLee/LiDARCamOdomCalib | 50f16619e0eb7088ba45677d64dafdf841406896 | [
"MIT"
] | null | null | null | utility.cpp | KevinLADLee/LiDARCamOdomCalib | 50f16619e0eb7088ba45677d64dafdf841406896 | [
"MIT"
] | null | null | null | #include "utility.h"
ostream& operator<<(ostream& os, const _6dof& dof)
{
os << dof.rx << ',' << dof.ry << ',' << dof.rz << ','<< dof.x << ','<< dof.y << ','<< dof.z;
return os;
}
bool headString(string line,string chara){
if(line.find(chara)==0)return true;
else return false;
}
double getDist2(POINT_3D a,P... | 26.850467 | 182 | 0.611556 | [
"3d"
] |
0d36b99d73cf317dec3dba6adbf6bf2fc5ab72ca | 1,425 | cpp | C++ | src/flexcl_info.cpp | grisu48/FlexCL | abaf126ab362628820fd537b5bdf46fe476f759e | [
"MIT"
] | null | null | null | src/flexcl_info.cpp | grisu48/FlexCL | abaf126ab362628820fd537b5bdf46fe476f759e | [
"MIT"
] | null | null | null | src/flexcl_info.cpp | grisu48/FlexCL | abaf126ab362628820fd537b5bdf46fe476f759e | [
"MIT"
] | null | null | null |
/* =============================================================================
*
* Title:
* Author:
* License:
* Description:
*
*
* =============================================================================
*/
#include <iostream>
#include "FlexCL.hpp"
#ifndef EXIT_SUCCESS
... | 25.909091 | 87 | 0.502456 | [
"vector"
] |
0d3aeb4f1aa7b3c57cf4bf4de070d6f27f872e66 | 4,583 | cpp | C++ | tests/demo/src/cpu_multithreading_get_partitions.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | tests/demo/src/cpu_multithreading_get_partitions.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | tests/demo/src/cpu_multithreading_get_partitions.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2021 Intel 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.o... | 35.253846 | 104 | 0.586515 | [
"shape",
"vector"
] |
0d5d4d1b1274784bb37399f2c609f9fbc1ecb6c1 | 7,271 | cpp | C++ | ToneArmEngine/RenderableModel.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | ToneArmEngine/RenderableModel.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | ToneArmEngine/RenderableModel.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | /*
========================
Copyright (c) 2014 Vinyl Games Studio
RenderableModel
Created by: Karl Merten
Created on: 06/05/2014
========================
*/
#include "RenderableModel.h"
#include "OpenGLMesh.h"
#include "CachedResourceLoader.h"
#include "BinaryFileResource.h"
#include "Log.h"
#include "MeshStruc... | 21.511834 | 133 | 0.642965 | [
"mesh",
"model",
"transform"
] |
0d6c7c36549763f8e9b8d41873d799b1c9b5e51b | 3,715 | cpp | C++ | src/main/cpp/JavaStringArray.cpp | emesz761/JniHelpers | ebe62e780156b65c4b614323836b01929178d6e7 | [
"Apache-2.0"
] | 565 | 2015-01-05T12:12:24.000Z | 2022-03-30T07:55:03.000Z | src/main/cpp/JavaStringArray.cpp | emesz761/JniHelpers | ebe62e780156b65c4b614323836b01929178d6e7 | [
"Apache-2.0"
] | 9 | 2015-02-23T10:01:45.000Z | 2021-02-04T10:43:14.000Z | src/main/cpp/JavaStringArray.cpp | emesz761/JniHelpers | ebe62e780156b65c4b614323836b01929178d6e7 | [
"Apache-2.0"
] | 120 | 2015-02-01T14:08:16.000Z | 2022-03-19T10:09:16.000Z | /*
* Copyright (c) 2014 Spotify AB
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, ... | 29.72 | 95 | 0.684253 | [
"object"
] |
0d7fe0d8b37ce1287021960354d7052ee2d2da78 | 1,954 | cpp | C++ | CSES/Advanced Techniques/Meet in the Middle.cpp | Harry-kp/Cp | 94e687a3a5256913467f50d8f757b12640529513 | [
"MIT"
] | 2 | 2020-11-19T19:21:24.000Z | 2021-04-22T10:53:16.000Z | CSES/Advanced Techniques/Meet in the Middle.cpp | Harry-kp/Cp | 94e687a3a5256913467f50d8f757b12640529513 | [
"MIT"
] | null | null | null | CSES/Advanced Techniques/Meet in the Middle.cpp | Harry-kp/Cp | 94e687a3a5256913467f50d8f757b12640529513 | [
"MIT"
] | 1 | 2021-12-02T06:03:17.000Z | 2021-12-02T06:03:17.000Z | #include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(0); \
cin.tie(0)
#define MP make_pair
#define EB emplace_back
#define MOD 1000000007
#define int long long int
#define S second
#define F first
#define debug1 cout << "debug1" << '\n'
#define debug2 cout... | 20.568421 | 105 | 0.420164 | [
"vector"
] |
0d80d3d72e0f18bd8d3e5c8c67c42e18cfded6a9 | 57,244 | cxx | C++ | nff_search_node.cxx | miquelramirez/t1 | 6696db1d1e12f93811dc17b8d921a19a75b549b5 | [
"Apache-2.0"
] | null | null | null | nff_search_node.cxx | miquelramirez/t1 | 6696db1d1e12f93811dc17b8d921a19a75b549b5 | [
"Apache-2.0"
] | null | null | null | nff_search_node.cxx | miquelramirez/t1 | 6696db1d1e12f93811dc17b8d921a19a75b549b5 | [
"Apache-2.0"
] | null | null | null | /*
Alexandre Albore, Miguel Ramirez, Hector Geffner
T1 conformant planner
Copyright (C) UPF 2010
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the Licens... | 27.233111 | 118 | 0.554521 | [
"vector",
"model"
] |
0d845bda8db934b7f425ff42d3eebe8755ac71b2 | 15,042 | cpp | C++ | src/ukf.cpp | olbedo/CarND-Unscented-Kalman-Filter | caa4582bec1fc00534f258c60ca98073c4adda35 | [
"MIT"
] | null | null | null | src/ukf.cpp | olbedo/CarND-Unscented-Kalman-Filter | caa4582bec1fc00534f258c60ca98073c4adda35 | [
"MIT"
] | null | null | null | src/ukf.cpp | olbedo/CarND-Unscented-Kalman-Filter | caa4582bec1fc00534f258c60ca98073c4adda35 | [
"MIT"
] | null | null | null | #include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... | 29.727273 | 96 | 0.576785 | [
"object",
"vector",
"transform"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.