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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4aa46507f58ef6450874fac86c3b690a4d8c866d | 497 | cpp | C++ | lib/duden/FsdFile.cpp | nonwill/lsd2dsl | 00e2a9832666dff03667b07815d73fab3fa8378e | [
"MIT"
] | 66 | 2015-01-17T16:57:38.000Z | 2022-02-06T15:29:54.000Z | lib/duden/FsdFile.cpp | nonwill/lsd2dsl | 00e2a9832666dff03667b07815d73fab3fa8378e | [
"MIT"
] | 19 | 2015-02-08T15:35:12.000Z | 2022-01-26T10:46:11.000Z | lib/duden/FsdFile.cpp | nongeneric/lsd2dsl | 4bf92b42b1ae47eee8e0b71bc04224dc037bd549 | [
"MIT"
] | 18 | 2015-03-23T07:06:07.000Z | 2022-01-15T21:03:04.000Z | #include "FsdFile.h"
#include <limits>
namespace duden {
FsdFile::FsdFile(std::shared_ptr<dictlsd::IRandomAccessStream> stream) : _stream(stream) {}
void FsdFile::read(uint32_t plainOffset, uint32_t size, std::vector<char>& output) {
output.resize(size);
std::fill(begin(output), end(output), 0);
_stream-... | 24.85 | 91 | 0.704225 | [
"vector"
] |
4aaaa6aaf0b10e20f96a003a81405a276b1195d2 | 1,016 | cpp | C++ | Others/1143-longest-common-subsequence.cpp | wandsX/LeetCodeExperience | 8502e6e8ce911045f45f0075bcf3ee751a4558c7 | [
"MIT"
] | null | null | null | Others/1143-longest-common-subsequence.cpp | wandsX/LeetCodeExperience | 8502e6e8ce911045f45f0075bcf3ee751a4558c7 | [
"MIT"
] | null | null | null | Others/1143-longest-common-subsequence.cpp | wandsX/LeetCodeExperience | 8502e6e8ce911045f45f0075bcf3ee751a4558c7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
//leetcode submit region begin(Prohibit modification and deletion)
class Solution
{
public:
int longestCommonSubsequence(string text1, string text2)
{
int m = text1.length();
int n = text2.length();
// ... | 26.051282 | 72 | 0.397638 | [
"vector"
] |
4ab7f1d42c0e8705b682d8389ed65bee3ced431c | 2,723 | cpp | C++ | rede/admitanceCalc.cpp | BigsonLvrocha/NeuralPowerFlow | 3d64078b5d1053cd521318229b69592acab6582a | [
"MIT"
] | null | null | null | rede/admitanceCalc.cpp | BigsonLvrocha/NeuralPowerFlow | 3d64078b5d1053cd521318229b69592acab6582a | [
"MIT"
] | null | null | null | rede/admitanceCalc.cpp | BigsonLvrocha/NeuralPowerFlow | 3d64078b5d1053cd521318229b69592acab6582a | [
"MIT"
] | null | null | null | /**
* @brief Implements methods for admitance calculation of power network
*
* @file admitanceCalc.cpp
* @author Luiz Victor Linhares Rocha
* @date 2018-09-22
* @copyright 2018 Luiz Victor Linhares Rocha
*/
#include <iostream>
#include "barra.hpp"
#include "branch.hpp"
#include "powerNet.hpp"
#include "admitan... | 28.663158 | 83 | 0.602277 | [
"object"
] |
3860032bf9652b8a0c5a3dee1d97dcf890d8fa8d | 6,831 | cpp | C++ | StepClearpath.cpp | ctsuu/clear-path-servo-in-ROS | 1783d72ea28871de11395a24a0fa27061dc6ae04 | [
"MIT"
] | 2 | 2019-01-14T08:11:14.000Z | 2019-06-14T10:57:14.000Z | StepClearpath.cpp | ctsuu/clear-path-servo-in-ROS | 1783d72ea28871de11395a24a0fa27061dc6ae04 | [
"MIT"
] | null | null | null | StepClearpath.cpp | ctsuu/clear-path-servo-in-ROS | 1783d72ea28871de11395a24a0fa27061dc6ae04 | [
"MIT"
] | null | null | null | /*
StepClearpath.h - Library for interfacing with Clearpath motors using an Arduino- Version 1
Teknic 2014 Brendan Flosenzier
This library is free software; you can redistribute it and/or
modify it.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the ... | 23 | 112 | 0.615576 | [
"object"
] |
3867e0513a6a189b2ecc8daad15dd0d79eeffcc2 | 2,014 | cpp | C++ | source/ff.data/source/value_vector.cpp | spadapet/ff_game_library | f1bf00f90adde66c2c2aa35b109fe61b8d2c6352 | [
"MIT"
] | null | null | null | source/ff.data/source/value_vector.cpp | spadapet/ff_game_library | f1bf00f90adde66c2c2aa35b109fe61b8d2c6352 | [
"MIT"
] | null | null | null | source/ff.data/source/value_vector.cpp | spadapet/ff_game_library | f1bf00f90adde66c2c2aa35b109fe61b8d2c6352 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "value_vector.h"
ff::value_ptr ff::type::value_vector_type::try_convert_from(const value* other) const
{
if (other->can_have_indexed_children())
{
ff::value_vector vec;
vec.reserve(other->index_child_count());
for (size_t i = 0; i < other->index_child_count();... | 23.418605 | 92 | 0.575968 | [
"vector"
] |
387bfa0c8bac62d4921faa28a688511cb3a7cfc4 | 916 | hpp | C++ | cpp/include/cg3/manager/strategy.hpp | tychota/cg3-path-tracer | 548519121cacb01a4be835c0bece21238b56f92b | [
"Beerware"
] | null | null | null | cpp/include/cg3/manager/strategy.hpp | tychota/cg3-path-tracer | 548519121cacb01a4be835c0bece21238b56f92b | [
"Beerware"
] | null | null | null | cpp/include/cg3/manager/strategy.hpp | tychota/cg3-path-tracer | 548519121cacb01a4be835c0bece21238b56f92b | [
"Beerware"
] | null | null | null | # pragma once
# include "cg3/manager/tile.hpp"
class Strategy
{
public:
Strategy( tiny_vec< std::size_t, 2 > subdivisions
, std::size_t samples_per_pixel
, Tile::sampling_type subsampling = Tile::SAMPLE_RANDOM
)
: _subdivisions( subdivisio... | 32.714286 | 148 | 0.655022 | [
"vector"
] |
387cfb2428d00e442c49d7cb5db7e5e1e887e044 | 2,381 | cpp | C++ | Interview Puzzles/Pascal's Triangle or Binomial.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | Interview Puzzles/Pascal's Triangle or Binomial.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | Interview Puzzles/Pascal's Triangle or Binomial.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | #include<vector>
#include<stack>
#include<set>
#include<map>
#include<queue>
#include<deque>
#include<string>
#include<iostream>
#include<algorithm>
#include<cstring>
#include<cassert>
#include<cstdlib>
#include<cstdio>
#include<cmath>
#include<string>
#include<stdio.h>
using namespace std;
#define s(n) ... | 19.516393 | 52 | 0.457791 | [
"vector"
] |
387d7dc162934c5d07ae9f50d99ccd8f48d1af9a | 8,943 | cpp | C++ | src/icebox/icebox/plugins/heapsan.cpp | IMULMUL/icebox | 60586590472d7816645fa1f087b45c1ed08d794b | [
"MIT"
] | null | null | null | src/icebox/icebox/plugins/heapsan.cpp | IMULMUL/icebox | 60586590472d7816645fa1f087b45c1ed08d794b | [
"MIT"
] | null | null | null | src/icebox/icebox/plugins/heapsan.cpp | IMULMUL/icebox | 60586590472d7816645fa1f087b45c1ed08d794b | [
"MIT"
] | null | null | null | #include "heapsan.hpp"
#define FDP_MODULE "heapsan"
#include "core.hpp"
#include "log.hpp"
#include "nt/nt.hpp"
#include "tracer/heaps.gen.hpp"
#include "utils/hash.hpp"
#include "utils/utils.hpp"
#include <map>
#include <unordered_map>
#include <unordered_set>
namespace
{
struct realloc_t
{
thread_t... | 30.111111 | 169 | 0.58146 | [
"vector"
] |
387e15a8cd5e51f9161ea6ec80a75dc6dbaba59a | 2,582 | cpp | C++ | src/common/utils/utils.cpp | intel/oneccl | b7d66de16e17f88caffd7c6df4cd5e12b266af84 | [
"Apache-2.0"
] | 26 | 2019-11-18T09:45:28.000Z | 2020-03-02T17:00:24.000Z | src/common/utils/utils.cpp | intel/oneccl | b7d66de16e17f88caffd7c6df4cd5e12b266af84 | [
"Apache-2.0"
] | 8 | 2020-02-05T20:34:23.000Z | 2020-02-21T22:26:22.000Z | src/common/utils/utils.cpp | intel/oneccl | b7d66de16e17f88caffd7c6df4cd5e12b266af84 | [
"Apache-2.0"
] | 9 | 2019-11-21T16:58:47.000Z | 2020-02-26T15:40:04.000Z | /*
Copyright 2016-2020 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.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | 33.532468 | 92 | 0.63904 | [
"vector"
] |
38958a2dcbf3366342d8f69bafb36b5451f682b7 | 551 | cpp | C++ | src/processor.cpp | h-arieff/SystemMonitor | 64db2d76832b3a0c15f6481ad49ec363d828dbcd | [
"MIT"
] | null | null | null | src/processor.cpp | h-arieff/SystemMonitor | 64db2d76832b3a0c15f6481ad49ec363d828dbcd | [
"MIT"
] | null | null | null | src/processor.cpp | h-arieff/SystemMonitor | 64db2d76832b3a0c15f6481ad49ec363d828dbcd | [
"MIT"
] | null | null | null | #include "processor.h"
#include "linux_parser.h"
#include <string>
#include <vector>
#include <numeric>
#include <iostream>
// TODO: Return the aggregate CPU utilization
float Processor::Utilization()
{
//from the link provided to roseta code
std::vector<unsigned long> r=LinuxParser::CpuUtilization();
unsig... | 29 | 63 | 0.704174 | [
"vector"
] |
38b554dc89a613647bddb8c7b32d7dbe3ab6db57 | 25,084 | hpp | C++ | cpp-projects/exvr-designer/data/connector.hpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/data/connector.hpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/data/connector.hpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null |
/***********************************************************************************
** exvr-designer **
** MIT License **
** Copyright (c) [2018] [Florian Lance][EPFL-LNCO] ... | 57.53211 | 162 | 0.45244 | [
"vector",
"transform"
] |
38bb26842d991fb1289d113450eba3e26d42af0e | 1,863 | cpp | C++ | src/main.cpp | matt-harvey/swx | e7b10fe7d4bf0bd6581ceada53ad14b08bc1d852 | [
"Apache-2.0"
] | 7 | 2017-10-08T08:08:25.000Z | 2020-04-27T09:25:00.000Z | src/main.cpp | matt-harvey/swx | e7b10fe7d4bf0bd6581ceada53ad14b08bc1d852 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | matt-harvey/swx | e7b10fe7d4bf0bd6581ceada53ad14b08bc1d852 | [
"Apache-2.0"
] | 1 | 2020-04-27T09:24:42.000Z | 2020-04-27T09:24:42.000Z | /*
* Copyright 2014, 2017 Matthew Harvey
*
* 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... | 26.614286 | 79 | 0.648953 | [
"vector"
] |
38bcb3980c968a279196e9a9b5c67deb11ad8d23 | 6,107 | cpp | C++ | urdf_transform/src/AlignRotationAxis.cpp | JenniferBuehler/urdf_tools | 548ddd4fb8865ee6a08921ce8436c39069f14692 | [
"BSD-3-Clause"
] | 6 | 2017-01-17T01:55:39.000Z | 2020-04-24T02:03:30.000Z | urdf_transform/src/AlignRotationAxis.cpp | JenniferBuehler/urdf_tools | 548ddd4fb8865ee6a08921ce8436c39069f14692 | [
"BSD-3-Clause"
] | 10 | 2016-06-16T19:38:38.000Z | 2020-12-11T12:13:05.000Z | urdf_transform/src/AlignRotationAxis.cpp | JenniferBuehler/urdf_tools | 548ddd4fb8865ee6a08921ce8436c39069f14692 | [
"BSD-3-Clause"
] | 7 | 2017-12-12T17:21:19.000Z | 2021-02-10T05:51:25.000Z | /**
* <ORGANIZATION> = Jennifer Buehler
* <COPYRIGHT HOLDER> = Jennifer Buehler
*
* Copyright (c) 2016 Jennifer Buehler
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redist... | 37.931677 | 149 | 0.691174 | [
"geometry",
"vector",
"transform",
"3d"
] |
38bfe318c6066b39ee0b67d0853efccbb5880186 | 10,233 | cpp | C++ | Database/Scheduler/SharedWorklistScheduler.cpp | gunaprsd/cavalia | a408c75fa349f3c6f45c929734437647a0c023c5 | [
"Apache-2.0"
] | null | null | null | Database/Scheduler/SharedWorklistScheduler.cpp | gunaprsd/cavalia | a408c75fa349f3c6f45c929734437647a0c023c5 | [
"Apache-2.0"
] | null | null | null | Database/Scheduler/SharedWorklistScheduler.cpp | gunaprsd/cavalia | a408c75fa349f3c6f45c929734437647a0c023c5 | [
"Apache-2.0"
] | null | null | null | #include "SharedWorklistScheduler.h"
#include "../Executor/ConcurrentExecutor.h"
using namespace Cavalia;
using namespace Cavalia::Database;
void SharedWorklistScheduler::Initialize(const size_t& thread_id) {
std::vector<ParamBatch*>* execution_batches = new std::vector<ParamBatch*>();
std::vector<ParamBatch... | 39.206897 | 103 | 0.594156 | [
"vector"
] |
38c5e33577fd0fa1018e9f76d8daeb1b097c3adb | 6,796 | hpp | C++ | libcaf_io/caf/io/network/test_multiplexer.hpp | samanbarghi/actor-framework | 9fb82f556760e1004e27fb4d303499b603a3fc19 | [
"BSL-1.0",
"BSD-3-Clause"
] | 2 | 2020-08-25T15:22:08.000Z | 2021-03-05T16:29:24.000Z | libcaf_io/caf/io/network/test_multiplexer.hpp | wujsy/actor-framework | 9fb82f556760e1004e27fb4d303499b603a3fc19 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_io/caf/io/network/test_multiplexer.hpp | wujsy/actor-framework | 9fb82f556760e1004e27fb4d303499b603a3fc19 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 36.537634 | 86 | 0.623014 | [
"vector"
] |
38c5e3de0a20706fdd4143637a8019d8c465f634 | 3,713 | cpp | C++ | src/renderer/raytracer/raytracer_renderer.cpp | KsEv13/CGGD | ac02e41077777d1fa80d6110120ea1053e67f622 | [
"CC-BY-3.0",
"Cube",
"MIT"
] | null | null | null | src/renderer/raytracer/raytracer_renderer.cpp | KsEv13/CGGD | ac02e41077777d1fa80d6110120ea1053e67f622 | [
"CC-BY-3.0",
"Cube",
"MIT"
] | null | null | null | src/renderer/raytracer/raytracer_renderer.cpp | KsEv13/CGGD | ac02e41077777d1fa80d6110120ea1053e67f622 | [
"CC-BY-3.0",
"Cube",
"MIT"
] | null | null | null | #include "raytracer_renderer.h"
#include "utils/resource_utils.h"
#include <iostream>
void cg::renderer::ray_tracing_renderer::init()
{
model = std::make_shared<cg::world::model>();
model->load_obj(settings->model_path);
camera = std::make_shared<cg::world::camera>();
camera->set_width(static_cast<float>(setti... | 28.128788 | 96 | 0.70132 | [
"render",
"model"
] |
38d141b8b7cae900cef204e7bcb5defebdcca13c | 326 | hpp | C++ | 3/picture.hpp | j00st/cpse2 | f541d9097d1db064974d71f816cf49ecae30c6f8 | [
"MIT"
] | null | null | null | 3/picture.hpp | j00st/cpse2 | f541d9097d1db064974d71f816cf49ecae30c6f8 | [
"MIT"
] | null | null | null | 3/picture.hpp | j00st/cpse2 | f541d9097d1db064974d71f816cf49ecae30c6f8 | [
"MIT"
] | null | null | null | #ifndef _PICTURE_HPP
#define _PICTURE_HPP
#include <SFML/Graphics.hpp>
#include "entity.hpp"
class picture : public entity {
private:
std::string path;
sf::Texture image;
sf::RectangleShape shape;
public:
picture(sf::Vector2f position, std::string path);
std::string print() override;
};
#... | 14.818182 | 53 | 0.687117 | [
"shape"
] |
38d1e17de61546bc9f0317f9c3f3dc5adbe75727 | 3,573 | cpp | C++ | module/eagle2bookshelf/PadsASCII2bookshelf.cpp | sethhillbrand/SA-PCB | 5403d495f4478861fa61592481342820046e4dcd | [
"BSD-3-Clause"
] | 1 | 2020-09-23T05:07:16.000Z | 2020-09-23T05:07:16.000Z | module/eagle2bookshelf/PadsASCII2bookshelf.cpp | sethhillbrand/SA-PCB | 5403d495f4478861fa61592481342820046e4dcd | [
"BSD-3-Clause"
] | 1 | 2019-07-18T19:23:12.000Z | 2019-07-18T19:23:12.000Z | module/eagle2bookshelf/PadsASCII2bookshelf.cpp | sethhillbrand/SA-PCB | 5403d495f4478861fa61592481342820046e4dcd | [
"BSD-3-Clause"
] | 2 | 2019-07-18T19:11:05.000Z | 2019-07-30T06:04:26.000Z | #include <iostream>
#include <fstream>
#include <vector>
#include <sstream>
#include <string>
#include <map>
struct pin {
std::string m_name;
};
struct net {
std::vector<pin> m_pins;
};
size_t tokenlize(std::string &str, std::vector<std::string> *token) {
std::stringstream ss(str);
std::string s;
while (s... | 23.201299 | 150 | 0.563952 | [
"vector"
] |
38d2d3fc6f70e7eb6bc89a88c92d74f2d49bbe6b | 2,860 | hpp | C++ | src/snoise.hpp | RedErr404/cprocessing | ab8ef25ea3e4bcd915f9c086b649696866ea77ca | [
"BSD-2-Clause"
] | 12 | 2015-01-12T07:43:22.000Z | 2022-03-08T06:43:20.000Z | src/snoise.hpp | RedErr404/cprocessing | ab8ef25ea3e4bcd915f9c086b649696866ea77ca | [
"BSD-2-Clause"
] | null | null | null | src/snoise.hpp | RedErr404/cprocessing | ab8ef25ea3e4bcd915f9c086b649696866ea77ca | [
"BSD-2-Clause"
] | 7 | 2015-02-09T15:44:10.000Z | 2019-07-07T11:48:10.000Z | #ifndef SIMPLEXNOISE_HPP_
#define SIMPLEXNOISE_HPP_
namespace cprocessing {
class SimplexNoise {
private:
static double SQRT3;
static double SQRT5;
/**
* Skewing and unskewing factors for 2D, 3D and 4D, some of them
* pr... | 33.647059 | 89 | 0.501748 | [
"3d"
] |
38e4da9b19edaf38e81709ab44d20abfe252eb73 | 41,026 | cpp | C++ | dev/Code/CryEngine/CryAISystem/AIActions.cpp | crazyskateface/lumberyard | 164512f8d415d6bdf37e195af319ffe5f96a8f0b | [
"AML"
] | 5 | 2018-08-17T21:05:55.000Z | 2021-04-17T10:48:26.000Z | dev/Code/CryEngine/CryAISystem/AIActions.cpp | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | null | null | null | dev/Code/CryEngine/CryAISystem/AIActions.cpp | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | 5 | 2017-12-05T16:36:00.000Z | 2021-04-27T06:33:54.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 34.388935 | 202 | 0.568371 | [
"object"
] |
38e6ba694b493c956ed722ebdee672cc058ca0cc | 10,638 | cc | C++ | services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc | zbowling/mojo | 4d2ed40dc2390ca98a6fea0580e840535878f11c | [
"BSD-3-Clause"
] | 1 | 2020-04-28T14:35:10.000Z | 2020-04-28T14:35:10.000Z | services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc | zbowling/mojo | 4d2ed40dc2390ca98a6fea0580e840535878f11c | [
"BSD-3-Clause"
] | null | null | null | services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc | zbowling/mojo | 4d2ed40dc2390ca98a6fea0580e840535878f11c | [
"BSD-3-Clause"
] | 1 | 2020-04-28T14:35:11.000Z | 2020-04-28T14:35:11.000Z | // Copyright 2015 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 "base/bind.h"
#include "base/logging.h"
#include "base/run_loop.h"
#include "base/strings/string_split.h"
#include "base/strings/stringprintf.h"
... | 38.266187 | 78 | 0.704832 | [
"vector"
] |
38ee07b14f11b1d8074dce539eba8115de98d782 | 1,382 | cpp | C++ | src/3d/geometry/transform_test.cpp | wkrzemien/j-pet-mlem | 4ed746f3fe79890e4141158cd49d1869938105de | [
"Apache-2.0"
] | null | null | null | src/3d/geometry/transform_test.cpp | wkrzemien/j-pet-mlem | 4ed746f3fe79890e4141158cd49d1869938105de | [
"Apache-2.0"
] | 5 | 2018-08-08T08:26:04.000Z | 2020-05-13T13:33:39.000Z | src/3d/geometry/transform_test.cpp | wkrzemien/j-pet-mlem | 4ed746f3fe79890e4141158cd49d1869938105de | [
"Apache-2.0"
] | 5 | 2018-06-04T21:04:29.000Z | 2021-07-03T14:19:39.000Z | #include "util/test.h"
#include "3d/geometry/ray.h"
#include "3d/geometry/point.h"
#include "3d/geometry/transform.h"
#include "common/types.h"
using Vector = PET3D::Vector<F>;
using Point = PET3D::Point<F>;
TEST_CASE("3d/transform") {
SECTION("vector/rotation/1") {
Vector src(0.1f, 0.2f, 0.3f);
auto de... | 26.075472 | 80 | 0.600579 | [
"geometry",
"vector",
"transform",
"3d"
] |
38efc4c1faaf59f21ca5b541dd25bc43b57b03ad | 462 | cpp | C++ | codetop/Leetcode121.cpp | Aged-cat/interview_codehub | 0d915934a8d89a10943ef3e0ba8e528948433578 | [
"MIT"
] | 2 | 2021-09-06T06:47:34.000Z | 2022-02-21T04:43:23.000Z | codetop/Leetcode121.cpp | Aged-cat/interview_codehub | 0d915934a8d89a10943ef3e0ba8e528948433578 | [
"MIT"
] | null | null | null | codetop/Leetcode121.cpp | Aged-cat/interview_codehub | 0d915934a8d89a10943ef3e0ba8e528948433578 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include<map>
#include<string.h>
#include<vector>
#include<algorithm>
#include<sstream>
#include<climits>
using namespace std;
int maxProfit(vector<int>& prices)
{
int preMin=prices[0];
int maxPro=INT32_MIN;
for(int i=1;i<prices.size();++i)
{
int curPro=pric... | 17.769231 | 37 | 0.649351 | [
"vector"
] |
38f4c37734066eb065e03450ef248e561eb669f9 | 12,293 | hpp | C++ | include/puffinn/prefixmap.hpp | mvesterli/puffinn | cefac8aac93f983d82da09953ac990433df0b179 | [
"MIT"
] | 49 | 2019-06-28T08:00:35.000Z | 2021-10-31T16:01:26.000Z | include/puffinn/prefixmap.hpp | mvesterli/puffinn | cefac8aac93f983d82da09953ac990433df0b179 | [
"MIT"
] | 7 | 2019-08-26T07:58:28.000Z | 2021-06-07T10:55:08.000Z | include/puffinn/prefixmap.hpp | mvesterli/puffinn | cefac8aac93f983d82da09953ac990433df0b179 | [
"MIT"
] | 7 | 2019-08-20T13:50:55.000Z | 2022-02-15T10:16:52.000Z | #pragma once
#include "puffinn/dataset.hpp"
#include "puffinn/hash_source/hash_source.hpp"
#include "puffinn/typedefs.hpp"
#include "puffinn/performance.hpp"
#include <algorithm>
#include <cstdint>
#include <functional>
#include <istream>
#include <ostream>
#include <utility>
#include <vector>
namespace puffinn {
... | 42.389655 | 104 | 0.575612 | [
"object",
"vector"
] |
ac029fc8af3b4ed03a85826f3a06d2e8a1ffb36a | 1,545 | cpp | C++ | nurbs++-3.0.11/nurbs++-3.0.11/nurbs/d_nurbsS.cpp | Ophien/H-GM-Humanoid-Robot-Real-Time-Trajectory-Manipulator | febe9e0f6b55a7eb25f1bf83fb9f6bc896bf9323 | [
"MIT"
] | null | null | null | nurbs++-3.0.11/nurbs++-3.0.11/nurbs/d_nurbsS.cpp | Ophien/H-GM-Humanoid-Robot-Real-Time-Trajectory-Manipulator | febe9e0f6b55a7eb25f1bf83fb9f6bc896bf9323 | [
"MIT"
] | null | null | null | nurbs++-3.0.11/nurbs++-3.0.11/nurbs/d_nurbsS.cpp | Ophien/H-GM-Humanoid-Robot-Real-Time-Trajectory-Manipulator | febe9e0f6b55a7eb25f1bf83fb9f6bc896bf9323 | [
"MIT"
] | null | null | null | #include "nurbsS.cpp"
namespace PLib {
#ifdef NO_IMPLICIT_TEMPLATES
// double instantiation
template class NurbsSurface<double,3> ;
template void gordonSurface(NurbsCurveArray<double,3>& lU, NurbsCurveArray<double,3>& lV, const Matrix< Point_nD<double,3> >& intersections, NurbsSurface<double,3>& gS);
template int ... | 51.5 | 169 | 0.750809 | [
"vector"
] |
f19d407ed3a80815271f40ce4333e79555f81fde | 1,230 | hpp | C++ | PSE/include/base_flow.hpp | srharris91/OrrSommerfeld_Squire | 92a1dcdc8e982238c7ed8f287622293f9cc60e73 | [
"MIT"
] | null | null | null | PSE/include/base_flow.hpp | srharris91/OrrSommerfeld_Squire | 92a1dcdc8e982238c7ed8f287622293f9cc60e73 | [
"MIT"
] | null | null | null | PSE/include/base_flow.hpp | srharris91/OrrSommerfeld_Squire | 92a1dcdc8e982238c7ed8f287622293f9cc60e73 | [
"MIT"
] | 1 | 2020-09-25T15:09:43.000Z | 2020-09-25T15:09:43.000Z | #ifndef BASE_FLOW_H
#define BASE_FLOW_H
#include <petscksp.h>
namespace PSE
{
/**
* \brief set plane channel flow velocity variables U, U' and U''
* \usage use this once to set the vectors with the velocity of plane channel flow (max u=1)
* \return 0 if successful
*/
int base_flow(
... | 39.677419 | 96 | 0.558537 | [
"vector"
] |
f1a051412ca14ca41879ce31c938a600fec619d4 | 3,076 | cpp | C++ | libraries/scripts/data_gen/cor_mruby_cor_mruby_interface_inc.cpp | rmake/cor-engine | d8920325db490d19dc8c116ab8e9620fe55e9975 | [
"MIT"
] | 4 | 2015-01-13T09:55:02.000Z | 2016-09-10T03:42:23.000Z | libraries/scripts/data_gen/cor_mruby_cor_mruby_interface_inc.cpp | rmake/cor-engine | d8920325db490d19dc8c116ab8e9620fe55e9975 | [
"MIT"
] | null | null | null | libraries/scripts/data_gen/cor_mruby_cor_mruby_interface_inc.cpp | rmake/cor-engine | d8920325db490d19dc8c116ab8e9620fe55e9975 | [
"MIT"
] | 2 | 2015-01-22T02:30:29.000Z | 2021-05-10T06:56:49.000Z | #undef __SSE__
#define BOOST_VARIANT_HPP
#include "../../cor_type/sources/basic_types.h"
#include "../../cor_type/sources/collision/collision_2d.h"
#include "../../cor_type/sources/collision/collision_2d_tmpl.h"
#include "../../cor_type/sources/cor_type.h"
#include "../../cor_type/sources/math/matrix4x4.h"
#include "..... | 53.964912 | 72 | 0.75 | [
"geometry"
] |
f1a6a93f124b9a7115bd0d757bd6d86fc9e229c8 | 5,846 | cpp | C++ | iotvideo/src/v20191126/model/SystemType.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | iotvideo/src/v20191126/model/SystemType.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | iotvideo/src/v20191126/model/SystemType.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 29.525253 | 107 | 0.625556 | [
"vector",
"model"
] |
f1ac955a9381aad629d1e8973cbab7e327ea10d6 | 362 | cpp | C++ | chap12/Page473_weak_ptr.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 50 | 2016-01-08T14:28:53.000Z | 2022-01-21T12:55:00.000Z | chap12/Page473_weak_ptr.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 2 | 2017-06-05T16:45:20.000Z | 2021-04-17T13:39:24.000Z | chap12/Page473_weak_ptr.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 18 | 2016-08-17T15:23:51.000Z | 2022-03-26T18:08:43.000Z | #include <memory>
using std::make_shared;
using std::shared_ptr;
using std::weak_ptr;
int main()
{
shared_ptr<int> sp = make_shared<int>(42);
weak_ptr<int> wp(sp);
if(shared_ptr<int> np = wp.lock()) //true if np is not null, an artful way to use condition
{// inside if, np shares its object with sp
... | 24.133333 | 95 | 0.643646 | [
"object"
] |
f1b1e3661e46ac342439a159a93a1788a5399a0c | 1,814 | cpp | C++ | test/LogFileHelperTest.cpp | rock-cpp/new_rock_replay | bc24c181b589533037e626b9361597bf1bf1170f | [
"BSD-3-Clause"
] | null | null | null | test/LogFileHelperTest.cpp | rock-cpp/new_rock_replay | bc24c181b589533037e626b9361597bf1bf1170f | [
"BSD-3-Clause"
] | null | null | null | test/LogFileHelperTest.cpp | rock-cpp/new_rock_replay | bc24c181b589533037e626b9361597bf1bf1170f | [
"BSD-3-Clause"
] | null | null | null | #include "LogFileHelper.hpp"
#include "FileLocationHandler.hpp"
#include <boost/test/unit_test.hpp>
#include <iostream>
const std::string logFolder = getLogFilePath();
void testParser(const std::vector<std::string>& args, uint64_t size)
{
auto fileNames = LogFileHelper::parseFileNames(args);
BOOST_TEST(fil... | 25.549296 | 108 | 0.729879 | [
"vector"
] |
f1b202403f195dbf84642852606f10ee1700a8f9 | 999 | cpp | C++ | BOJ_solve/14412.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | BOJ_solve/14412.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | null | null | null | BOJ_solve/14412.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const long long llINF = 1e18;
//long long mod;
typedef long long ll;
ty... | 21.255319 | 46 | 0.551552 | [
"vector"
] |
f1b6cb060b76ba7d0832ac016b701da5637f9920 | 4,938 | cpp | C++ | rootex/vendor/Rlottie/rlottie/example/lottieperf.cpp | ChronicallySerious/Rootex | bf2a0997b6aa5be84dbfc0e7826c31ff693ca0f1 | [
"MIT"
] | 166 | 2019-06-19T19:51:45.000Z | 2022-03-24T13:03:29.000Z | rootex/vendor/Rlottie/rlottie/example/lottieperf.cpp | rahil627/Rootex | 44f827d469bddc7167b34dedf80d7a8b984fdf20 | [
"MIT"
] | 312 | 2019-06-13T19:39:25.000Z | 2022-03-02T18:37:22.000Z | rootex/vendor/Rlottie/rlottie/example/lottieperf.cpp | rahil627/Rootex | 44f827d469bddc7167b34dedf80d7a8b984fdf20 | [
"MIT"
] | 23 | 2019-10-04T11:02:21.000Z | 2021-12-24T16:34:52.000Z | #include <memory>
#include <vector>
#include <dirent.h>
#include <algorithm>
#include <chrono>
#include <iostream>
#include <cstring>
#include <rlottie.h>
static bool isJsonFile(const char *filename) {
const char *dot = strrchr(filename, '.');
if(!dot || dot == filename) return false;
return !strcmp(dot + 1, "j... | 30.670807 | 118 | 0.548198 | [
"render",
"vector"
] |
f1b9324d2beb7fa0ff462f1613525509c1010cf4 | 1,665 | hpp | C++ | src/profiling/ProfilingConnectionDumpToFileDecorator.hpp | sahilbandar/armnn | 249950645b7bc0593582182097c7e2f1d6d97442 | [
"MIT"
] | 856 | 2018-03-09T17:26:23.000Z | 2022-03-24T21:31:33.000Z | src/profiling/ProfilingConnectionDumpToFileDecorator.hpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | 623 | 2018-03-13T04:40:42.000Z | 2022-03-31T09:45:17.000Z | src/profiling/ProfilingConnectionDumpToFileDecorator.hpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | 284 | 2018-03-09T23:05:28.000Z | 2022-03-29T14:42:28.000Z | //
// Copyright © 2019 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "IProfilingConnection.hpp"
#include "ProfilingUtils.hpp"
#include <Runtime.hpp>
#include <armnn/Optional.hpp>
#include <fstream>
#include <memory>
#include <string>
#include <vector>
names... | 26.015625 | 110 | 0.663664 | [
"vector"
] |
f1c075d558b32da69445cf7e73aa849061800b62 | 13,460 | cpp | C++ | VehiclePhysicsSim/src/Track.cpp | lbowes/A-Level-Computer-Science-NEA | 0dd3f15a0b22a6622a962381089e8353c330680f | [
"MIT"
] | 3 | 2019-09-07T02:05:47.000Z | 2019-12-11T08:53:44.000Z | VehiclePhysicsSim/src/Track.cpp | lbowes/vehicle-dynamics-simulation | 0dd3f15a0b22a6622a962381089e8353c330680f | [
"MIT"
] | null | null | null | VehiclePhysicsSim/src/Track.cpp | lbowes/vehicle-dynamics-simulation | 0dd3f15a0b22a6622a962381089e8353c330680f | [
"MIT"
] | null | null | null | #include "Track.h"
#define CIRCULAR_TRACK 0
#define COMPLEX_TRACK 1
#define SQUARE_TRACK 0
#define ALMOST_SQUARE_TRACK 0
#define P_SHAPED_TRACK 0
namespace External {
Track::Track(const unsigned int terrainSize_heightSamples) :
/* Called by Terrain::Terrain
* Prepares the class for runHe... | 34.336735 | 136 | 0.699034 | [
"shape",
"vector"
] |
f1c33f29cfd7960e4ab05bf939d8248f36e69a56 | 3,225 | cpp | C++ | ivmpServer/apiDialog.cpp | WuskieFTW1113/IV-MP-T4 | ec4f193c90d23e07e6200dcb061ec8773be6bedc | [
"MIT"
] | 2 | 2021-07-18T17:37:32.000Z | 2021-08-04T12:33:51.000Z | ivmpServer/apiDialog.cpp | VittorioC97/IV-MP-T4 | ec4f193c90d23e07e6200dcb061ec8773be6bedc | [
"MIT"
] | 1 | 2022-02-22T03:26:50.000Z | 2022-02-22T03:26:50.000Z | ivmpServer/apiDialog.cpp | WuskieFTW1113/IV-MP-T4 | ec4f193c90d23e07e6200dcb061ec8773be6bedc | [
"MIT"
] | 5 | 2021-06-17T06:41:00.000Z | 2022-02-17T09:37:40.000Z | #include "API/apiDialog.h"
#include "networkManager.h"
#include <map>
#include "players.h"
#include "API/apiPlayerEvents.h"
#include "dialogManager.h"
#include "../SharedDefines/packetsIds.h"
#if linux
#define _strdup strdup
#endif
struct dialogRowInternal
{
std::string data;
int customId;
};
struct dialogListInte... | 20.15625 | 90 | 0.697054 | [
"vector"
] |
f1caec92a7a0320cc49e8da978cbdb25f032d313 | 4,493 | cpp | C++ | D-Squared-Engine/source/Library.Shared/XmlParseMaster.cpp | stropheum/D_Square_Engine | 4e607f7cd6f5e7ffd9dc5207dc2b29ad6c4fa5b1 | [
"MIT"
] | null | null | null | D-Squared-Engine/source/Library.Shared/XmlParseMaster.cpp | stropheum/D_Square_Engine | 4e607f7cd6f5e7ffd9dc5207dc2b29ad6c4fa5b1 | [
"MIT"
] | null | null | null | D-Squared-Engine/source/Library.Shared/XmlParseMaster.cpp | stropheum/D_Square_Engine | 4e607f7cd6f5e7ffd9dc5207dc2b29ad6c4fa5b1 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "XmlParseMaster.h"
using namespace std;
namespace Library
{
RTTI_DEFINITIONS(XmlParseMaster::SharedData);
XmlParseMaster::XmlParseMaster(SharedData* const sharedData) :
m_xmlParser(XML_ParserCreate(nullptr)),
m_activeFileName(""),
m_sharedData(sharedData), ... | 27.396341 | 105 | 0.597819 | [
"vector"
] |
f1d77dabe635008a2465875a320d25b5a6e90c42 | 12,607 | cpp | C++ | src/Athena_Blocks.cpp | wparad/athena_blocks | e66a84f4a22fce0ce6d8f7ba6be3c5750dcf7e19 | [
"MIT"
] | 1 | 2015-08-04T23:36:28.000Z | 2015-08-04T23:36:28.000Z | src/Athena_Blocks.cpp | wparad/athena_blocks | e66a84f4a22fce0ce6d8f7ba6be3c5750dcf7e19 | [
"MIT"
] | null | null | null | src/Athena_Blocks.cpp | wparad/athena_blocks | e66a84f4a22fce0ce6d8f7ba6be3c5750dcf7e19 | [
"MIT"
] | null | null | null | //============================================================================
// Name : Athena_Blocks.cpp
// Author : Warren Parad
// Version : v1.0
// Date : 9/25/2012
// Copyright : Copy at your own risk
// Description : Hello World in C++, Ansi-style
/*IMPORTANT DETAILS:
*
* Answer: 80684432... | 36.123209 | 127 | 0.673911 | [
"vector"
] |
f1d8922dca2bac40d82b0159ea59366f756f16d5 | 5,285 | cpp | C++ | src/interface/uiFloatingButtonLayer.cpp | santaclose/noose | e963138b81f380ca0f46369941cf65c4349bd4fb | [
"Apache-2.0"
] | 8 | 2021-01-31T11:30:05.000Z | 2021-09-01T07:48:34.000Z | src/interface/uiFloatingButtonLayer.cpp | santaclose/noose | e963138b81f380ca0f46369941cf65c4349bd4fb | [
"Apache-2.0"
] | 4 | 2021-09-01T08:17:18.000Z | 2021-09-24T22:32:24.000Z | src/interface/uiFloatingButtonLayer.cpp | santaclose/noose | e963138b81f380ca0f46369941cf65c4349bd4fb | [
"Apache-2.0"
] | 1 | 2021-09-01T07:49:58.000Z | 2021-09-01T07:49:58.000Z | #include "uiFloatingButtonLayer.h"
#include <pathUtils.h>
#include <vector>
#include <iostream>
#include "uiData.h"
#include <math/nooseMath.h>
#include <math/vectorOperators.h>
#define BUTTON_RADIUS 0.46f // uv space
#define BUTTON_COLOR 0x5a5a5aff
#define BUTTON_SIZE 50
#define MARGIN 18
namespace uiFloatingButtonL... | 31.088235 | 145 | 0.705014 | [
"vector"
] |
f1ea7f702c6c7a18d90322f25069f20f6a55e042 | 935 | cpp | C++ | API/GameEngineContents/KillCountUI.cpp | hooony1324/Portfolio | 5be1b439d53dcc861b4e06ec69bad53f3bd05ab5 | [
"MIT"
] | null | null | null | API/GameEngineContents/KillCountUI.cpp | hooony1324/Portfolio | 5be1b439d53dcc861b4e06ec69bad53f3bd05ab5 | [
"MIT"
] | null | null | null | API/GameEngineContents/KillCountUI.cpp | hooony1324/Portfolio | 5be1b439d53dcc861b4e06ec69bad53f3bd05ab5 | [
"MIT"
] | null | null | null | #include "KillCountUI.h"
#include <GameEngine/GameEngine.h>
#include <GameEngineBase/GameEngineWindow.h>
#include <GameEngine/GameEngineImageManager.h>
#include <GameEngine/GameEngineRenderer.h>
#include "GameInfo.h"
KillCountUI::KillCountUI()
{
}
KillCountUI::~KillCountUI()
{
}
void KillCountUI::Start()
{
SetPo... | 22.261905 | 111 | 0.721925 | [
"render"
] |
f1ebda26dd37ff179e96c600ed1eeee001c44de6 | 16,182 | cpp | C++ | data/QuadriFlow/src/dedge.cpp | hjwdzh/TextureNet | f3515537909ffb4ab04694b91109b535bb5c85d5 | [
"MIT"
] | 89 | 2019-03-30T03:59:25.000Z | 2021-08-25T05:16:51.000Z | data/QuadriFlow/src/dedge.cpp | jtpils/TextureNet | f3515537909ffb4ab04694b91109b535bb5c85d5 | [
"MIT"
] | 1 | 2019-06-29T11:21:11.000Z | 2019-07-12T04:09:41.000Z | data/QuadriFlow/src/dedge.cpp | jtpils/TextureNet | f3515537909ffb4ab04694b91109b535bb5c85d5 | [
"MIT"
] | 12 | 2019-04-12T01:20:44.000Z | 2020-07-12T16:10:33.000Z | #include "dedge.hpp"
#include "config.hpp"
#include <atomic>
#include <fstream>
#include <iostream>
#include <set>
#include <vector>
#include "compare-key.hpp"
#ifdef WITH_TBB
#include "tbb_common.h"
#endif
inline int dedge_prev(int e, int deg) { return (e % deg == 0u) ? e + (deg - 1) : e - 1; }
inline bool atomicCom... | 33.433884 | 173 | 0.476579 | [
"mesh",
"vector"
] |
f1ecdbf126c59918d736d6e1a6191b65947c5db8 | 3,479 | cpp | C++ | cameras/environment.cpp | cathook/rendering_final_proj | d0c147b563d6949839983bf38317c81367e2ed4c | [
"BSD-2-Clause"
] | 3 | 2020-12-09T00:03:29.000Z | 2021-07-03T13:31:41.000Z | cameras/environment.cpp | piwell/CS348B-pbrt | 147a9a3ef55cfcb0a1ad0132c63d1ac2f928418f | [
"BSD-2-Clause"
] | null | null | null | cameras/environment.cpp | piwell/CS348B-pbrt | 147a9a3ef55cfcb0a1ad0132c63d1ac2f928418f | [
"BSD-2-Clause"
] | 1 | 2020-11-28T12:33:24.000Z | 2020-11-28T12:33:24.000Z |
/*
pbrt source code Copyright(c) 1998-2012 Matt Pharr and Greg Humphreys.
This file is part of pbrt.
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... | 38.655556 | 79 | 0.68008 | [
"vector"
] |
f1edc62bbe0a011f35d40dece0ff284d29844276 | 4,710 | cpp | C++ | src/qt/bitcoinamountfield.cpp | lachesis/bitcoin | 5c5d310a0a94ec00d08c52637d38f3344a6e2c6f | [
"MIT"
] | 2 | 2017-10-01T04:19:51.000Z | 2021-09-03T01:23:54.000Z | src/qt/bitcoinamountfield.cpp | Lolcust/Tenebrix-QT | 822bf1ac9be041cfb608183d2d5c9ab8a7b212f9 | [
"MIT"
] | null | null | null | src/qt/bitcoinamountfield.cpp | Lolcust/Tenebrix-QT | 822bf1ac9be041cfb608183d2d5c9ab8a7b212f9 | [
"MIT"
] | null | null | null | #include "bitcoinamountfield.h"
#include "qvalidatedlineedit.h"
#include "qvaluecombobox.h"
#include "bitcoinunits.h"
#include <QLabel>
#include <QLineEdit>
#include <QRegExpValidator>
#include <QHBoxLayout>
#include <QKeyEvent>
#include <QComboBox>
BitcoinAmountField::BitcoinAmountField(QWidget *parent):
QWi... | 26.312849 | 82 | 0.661783 | [
"object"
] |
f1f280f8943b8b082cb0d813a01d222066fe4662 | 1,204 | cpp | C++ | Regex/Problem24/main.cpp | zsef123/ModernCppChallengeStudy | 058c0a6c5e41758f53336e554f29b497c9881fae | [
"MIT"
] | null | null | null | Regex/Problem24/main.cpp | zsef123/ModernCppChallengeStudy | 058c0a6c5e41758f53336e554f29b497c9881fae | [
"MIT"
] | null | null | null | Regex/Problem24/main.cpp | zsef123/ModernCppChallengeStudy | 058c0a6c5e41758f53336e554f29b497c9881fae | [
"MIT"
] | null | null | null | #include <gsl/gsl>
#include <vector>
#include <string>
#include <iostream>
#include <boost/algorithm/string.hpp>
/*
String to binary conversion
Write a function that, given a string containing hexadecimal digits as the input argument,
returns a vector of 8-bit integers that represent the numerical deserialization of th... | 28 | 107 | 0.60299 | [
"vector"
] |
f1f8e8b0fc7357bfa364b9526addd07f1d1d7981 | 789 | cpp | C++ | JAL/PAT/Advanced/1028.cpp | webturing/CPlusPlus | 6b9c671b0c9a7c0d24d937610bf54e9aec9a5a1f | [
"AFL-2.0"
] | 14 | 2018-06-21T14:41:26.000Z | 2021-12-19T14:43:51.000Z | JAL/PAT/Advanced/1028.cpp | webturing/CPlusPlus | 6b9c671b0c9a7c0d24d937610bf54e9aec9a5a1f | [
"AFL-2.0"
] | null | null | null | JAL/PAT/Advanced/1028.cpp | webturing/CPlusPlus | 6b9c671b0c9a7c0d24d937610bf54e9aec9a5a1f | [
"AFL-2.0"
] | 2 | 2020-04-20T11:16:53.000Z | 2021-01-02T15:58:35.000Z | #include<bits/stdc++.h>
using namespace std;
template<typename T = int>
T read(){
T x;
cin >> x;
return x;
}
struct Node
{
int score;
string id,name;
};
int main(){
int n = read(), c = read();
vector<Node>v(n);
for(auto &i: v){
i.id = read<string>();
i.name = read<string>();
i.score = read();
}
if(c ==... | 18.785714 | 58 | 0.515843 | [
"vector"
] |
f1f9edacbb5ae5aa215f999debe5c34b746ae29a | 4,420 | cpp | C++ | src/GLES/FCGLMesh.cpp | mslinklater/FC | d00e2e56a982cd7c85c7de18ac0449bf43d8025e | [
"MIT"
] | null | null | null | src/GLES/FCGLMesh.cpp | mslinklater/FC | d00e2e56a982cd7c85c7de18ac0449bf43d8025e | [
"MIT"
] | null | null | null | src/GLES/FCGLMesh.cpp | mslinklater/FC | d00e2e56a982cd7c85c7de18ac0449bf43d8025e | [
"MIT"
] | 2 | 2015-04-13T10:07:14.000Z | 2019-05-16T11:14:18.000Z | /*
Copyright (C) 2011-2012 by Martin Linklater
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, merge, publi... | 27.116564 | 97 | 0.755204 | [
"render"
] |
f1fc9b839cc0c7552376eafc87809e3fbcbbf4b1 | 49,476 | cc | C++ | ash/wm/desks/templates/desks_templates_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-11-16T13:10:29.000Z | 2021-11-16T13:10:29.000Z | ash/wm/desks/templates/desks_templates_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ash/wm/desks/templates/desks_templates_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 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 <string>
#include "ash/constants/app_types.h"
#include "ash/constants/ash_features.h"
#include "ash/constants/ash_pref_names.h"
#include "ash/pu... | 39.549161 | 80 | 0.723502 | [
"object",
"vector",
"model"
] |
f1fda526ff06f7e982b08d37fa9425039615bbfe | 1,000 | hpp | C++ | src/countWorkerSystem.hpp | AlexAUT/WordCount | 7afcbaa2583cba341b22d21da788a90bcc67ffbc | [
"MIT"
] | null | null | null | src/countWorkerSystem.hpp | AlexAUT/WordCount | 7afcbaa2583cba341b22d21da788a90bcc67ffbc | [
"MIT"
] | null | null | null | src/countWorkerSystem.hpp | AlexAUT/WordCount | 7afcbaa2583cba341b22d21da788a90bcc67ffbc | [
"MIT"
] | null | null | null | //
// Created by alex on 11/24/17.
//
#ifndef WORDCOUNT_COUNTWORKERSYSTEM_HPP
#define WORDCOUNT_COUNTWORKERSYSTEM_HPP
#include <array>
#include <condition_variable>
#include <mutex>
#include <queue>
#include <string>
#include <thread>
#include <unordered_map>
class CountWorkerSystem
{
public:
typedef std::queue<st... | 20 | 65 | 0.76 | [
"vector"
] |
f1feb9b1d3bcaad2668ef5e7db135e1c254dfa1e | 49,525 | cpp | C++ | programming/sampleProject/allData.cpp | ljyang100/dataScience | ad2b243673c570c18d83ab1a0cd1bb4694c17eac | [
"MIT"
] | 2 | 2020-12-10T02:05:29.000Z | 2021-05-30T15:23:56.000Z | programming/sampleProject/allData.cpp | ljyang100/dataScience | ad2b243673c570c18d83ab1a0cd1bb4694c17eac | [
"MIT"
] | null | null | null | programming/sampleProject/allData.cpp | ljyang100/dataScience | ad2b243673c570c18d83ab1a0cd1bb4694c17eac | [
"MIT"
] | 1 | 2020-04-21T11:18:18.000Z | 2020-04-21T11:18:18.000Z | #include "allData.h"
//#include <chrono> //*** don't need this header even I use std::chrono::high_resolution_clock::time_point, because I have included std::chrono...
void AllData::initializeTraderParameters()
{
m_volatilityFactorLong = 1.0;
m_volatilityFactorShort = 1.0;
m_closeLongPositions = false;
m_closeShort... | 47.392344 | 300 | 0.700939 | [
"vector"
] |
f1ff303f92624f119ad2fbcd47ec5c96e00f8906 | 1,653 | cpp | C++ | aws-cpp-sdk-iotthingsgraph/source/model/DissociateEntityFromThingRequest.cpp | crazecdwn/aws-sdk-cpp | e74b9181a56e82ee04cf36a4cb31686047f4be42 | [
"Apache-2.0"
] | 1 | 2020-03-11T05:36:20.000Z | 2020-03-11T05:36:20.000Z | aws-cpp-sdk-iotthingsgraph/source/model/DissociateEntityFromThingRequest.cpp | crazecdwn/aws-sdk-cpp | e74b9181a56e82ee04cf36a4cb31686047f4be42 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-iotthingsgraph/source/model/DissociateEntityFromThingRequest.cpp | crazecdwn/aws-sdk-cpp | e74b9181a56e82ee04cf36a4cb31686047f4be42 | [
"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... | 27.098361 | 120 | 0.772535 | [
"model"
] |
7b0552e86ea45eca995f0a651ef1a49c9998f605 | 2,333 | cc | C++ | src/ft_ee_ua_read_op.cc | Incont/n-ftdi | fb9ec653b731c9e55d50a668be539b4774950c8b | [
"MIT"
] | 2 | 2019-09-30T09:22:06.000Z | 2019-09-30T14:40:11.000Z | src/ft_ee_ua_read_op.cc | Incont/n-ftdi | fb9ec653b731c9e55d50a668be539b4774950c8b | [
"MIT"
] | 8 | 2019-09-05T05:18:45.000Z | 2021-07-11T11:45:30.000Z | src/ft_ee_ua_read_op.cc | Incont/n-ftdi | fb9ec653b731c9e55d50a668be539b4774950c8b | [
"MIT"
] | 3 | 2020-05-25T09:49:25.000Z | 2020-06-29T18:34:47.000Z | #include "ft_ee_ua_read_op.h"
Napi::Object FtEeUaReadOp::Init(Napi::Env env, Napi::Object exports)
{
exports.Set("eeUaReadSync", Napi::Function::New(env, FtEeUaReadOp::InvokeSync));
exports.Set("eeUaRead", Napi::Function::New(env, FtEeUaReadOp::Invoke));
return exports;
}
Napi::Object FtEeUaReadOp::Invoke... | 35.348485 | 132 | 0.697385 | [
"object"
] |
7b05a43e1daeaca1b45256e4a2bf946362f94a69 | 3,418 | hpp | C++ | src/GennyIda.hpp | fengjixuchui/REFramework | 131b25ef58064b1c36cdd15072c30f5fbd9a7ad8 | [
"MIT"
] | 583 | 2021-06-05T06:56:54.000Z | 2022-03-31T19:16:09.000Z | src/GennyIda.hpp | drowhunter/REFramework | 49ef476d13439110cc0ae565cc323cd615d9b327 | [
"MIT"
] | 198 | 2021-07-13T02:54:19.000Z | 2022-03-29T20:28:53.000Z | src/GennyIda.hpp | drowhunter/REFramework | 49ef476d13439110cc0ae565cc323cd615d9b327 | [
"MIT"
] | 73 | 2021-07-12T18:52:12.000Z | 2022-03-31T17:12:56.000Z | // SdkGenny - Genny.hpp - A single file header framework for generating C++ compatible SDKs
// https://github.com/cursey/sdkgenny
// GennyIda.hpp is an optional extra for SdkGenny that generates output intended to be consumed by IDA.
#pragma once
#include "Genny.hpp"
namespace genny::ida {
// Does a destructive tran... | 33.509804 | 115 | 0.593622 | [
"object",
"vector",
"transform"
] |
7b090b5839bb590397bce37ab0dea7057841beee | 1,695 | cpp | C++ | modules/face/test/test_mace.cpp | ptelang/opencv_contrib | dd68e396c76f1db4d82e5aa7a6545580939f9b9d | [
"Apache-2.0"
] | 7,158 | 2016-07-04T22:19:27.000Z | 2022-03-31T07:54:32.000Z | modules/face/test/test_mace.cpp | ptelang/opencv_contrib | dd68e396c76f1db4d82e5aa7a6545580939f9b9d | [
"Apache-2.0"
] | 2,184 | 2016-07-05T12:04:14.000Z | 2022-03-30T19:10:12.000Z | modules/face/test/test_mace.cpp | ptelang/opencv_contrib | dd68e396c76f1db4d82e5aa7a6545580939f9b9d | [
"Apache-2.0"
] | 5,535 | 2016-07-06T12:01:10.000Z | 2022-03-31T03:13:24.000Z | // This file is part of the 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.
#include "test_precomp.hpp"
#include <fstream>
namespace opencv_test { namespace {
const string FACE_DIR = "face";
cons... | 24.565217 | 90 | 0.653097 | [
"vector"
] |
7b0940dd6f80a3ed392c8e8867febc6a723e8bce | 6,261 | cpp | C++ | myproj/main.cpp | StanislawPluszkiewicz/OpenGL-Engine | fc8a0eab4c6314ca0179bf234505cc9a755f95aa | [
"MIT"
] | null | null | null | myproj/main.cpp | StanislawPluszkiewicz/OpenGL-Engine | fc8a0eab4c6314ca0179bf234505cc9a755f95aa | [
"MIT"
] | null | null | null | myproj/main.cpp | StanislawPluszkiewicz/OpenGL-Engine | fc8a0eab4c6314ca0179bf234505cc9a755f95aa | [
"MIT"
] | null | null | null | #include <fstream>
#include <string>
#include <vector>
#include <GL/glew.h>
#include <SDL2/SDL_main.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#undef main
#include "NFD/nfd.h"
#include "helperFunctions.h"
#include "myShader.h"
#include "myCamera.h"
#include "myObject3D.h"
#include <glm/glm.hpp>
using ... | 24.649606 | 108 | 0.711388 | [
"mesh",
"object",
"vector"
] |
7b095cb112fa0bb3c54c788e4b731db1f75ba2a7 | 3,202 | cpp | C++ | source/format/BP1Aggregator.cpp | pnorbert/ADIOS2 | 6bd06b550431cf3e354a1a0b3f0d825e39fe97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | source/format/BP1Aggregator.cpp | pnorbert/ADIOS2 | 6bd06b550431cf3e354a1a0b3f0d825e39fe97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | source/format/BP1Aggregator.cpp | pnorbert/ADIOS2 | 6bd06b550431cf3e354a1a0b3f0d825e39fe97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* BP1Aggregator.cpp
*
* Created on: Mar 21, 2017
* Author: wfg
*/
/// \cond EXCLUDE_FROM_DOXYGEN
#include <fstream>
#include <stdexcept>
#include <vector>
/// \endcond
#include "for... | 29.376147 | 80 | 0.53935 | [
"vector"
] |
7b11afc2d3425d7e2674dc184be3a144680c7be5 | 14,633 | hpp | C++ | nplus1/include/np1/rel/detail/helper.hpp | AnthonyNystrom/r17 | a73f5faf07a554c9c693074192b34be834f3106c | [
"Apache-2.0"
] | 1 | 2015-11-05T21:40:47.000Z | 2015-11-05T21:40:47.000Z | nplus1/include/np1/rel/detail/helper.hpp | AnthonyNystrom/r17 | a73f5faf07a554c9c693074192b34be834f3106c | [
"Apache-2.0"
] | null | null | null | nplus1/include/np1/rel/detail/helper.hpp | AnthonyNystrom/r17 | a73f5faf07a554c9c693074192b34be834f3106c | [
"Apache-2.0"
] | null | null | null | // Copyright 2012 Matthew Nourse and n plus 1 computing pty limited unless otherwise noted.
// Please see LICENSE file for details.
#ifndef NP1_REL_DETAIL_HELPER_HPP
#define NP1_REL_DETAIL_HELPER_HPP
#include "np1/hash/fnv1a64.hpp"
#include "np1/rel/rlang/dt.hpp"
namespace np1 {
namespace rel {
namespace detail {
na... | 27.819392 | 106 | 0.6594 | [
"object"
] |
7b1693a84bdf8b4fd287a080e255b882c06b9aba | 104,340 | cpp | C++ | CT/InputGenerator.cpp | bredelings/Compatibility-Testing | d775a1a052bf09655a154bc115eb95ce00f40d9e | [
"MIT"
] | null | null | null | CT/InputGenerator.cpp | bredelings/Compatibility-Testing | d775a1a052bf09655a154bc115eb95ce00f40d9e | [
"MIT"
] | null | null | null | CT/InputGenerator.cpp | bredelings/Compatibility-Testing | d775a1a052bf09655a154bc115eb95ce00f40d9e | [
"MIT"
] | null | null | null | //MIT License
//
//Copyright (c) 2018 Lei Liu
//
//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, merge, publ... | 50.405797 | 161 | 0.592323 | [
"vector"
] |
7b1a4db2b87a4b47f1d18fbf88dfe6927dc9791c | 1,510 | cpp | C++ | src/main/cpp/weismarts/zmq/ZMsg.cpp | match08/zmq-android | d13c2277ec76cb6fef3cf23fa9572d9dc24a4d16 | [
"MIT"
] | null | null | null | src/main/cpp/weismarts/zmq/ZMsg.cpp | match08/zmq-android | d13c2277ec76cb6fef3cf23fa9572d9dc24a4d16 | [
"MIT"
] | null | null | null | src/main/cpp/weismarts/zmq/ZMsg.cpp | match08/zmq-android | d13c2277ec76cb6fef3cf23fa9572d9dc24a4d16 | [
"MIT"
] | null | null | null | //
// Created by weismarts on 9/26/21.
//
#include "ZMsg.h"
ZMsg::ZMsg(){
};
void ZMsg::Add(char* msg)
{
_multipart.addstr(std::string(msg));
}
void ZMsg::Add(void* msg, size_t len)
{
_multipart.addmem(msg, len);
}
void ZMsg::Add(std::string msg)
{
_multipart.addstr(msg);
}
void ZMsg::Add(zmq::messag... | 18.414634 | 120 | 0.616556 | [
"vector"
] |
7b29c384137d34b3eb7a67199cd3d88ba785cadd | 11,666 | cpp | C++ | cpp/SmurffCpp/Sessions/TrainSession.cpp | ExaScience/smurff | 29c3859badca49275833024cd77f8ca7fa6f76be | [
"MIT"
] | 65 | 2017-06-23T14:01:58.000Z | 2022-03-10T16:13:48.000Z | cpp/SmurffCpp/Sessions/TrainSession.cpp | ExaScience/smurff | 29c3859badca49275833024cd77f8ca7fa6f76be | [
"MIT"
] | 143 | 2017-08-11T10:43:52.000Z | 2021-09-23T17:07:51.000Z | cpp/SmurffCpp/Sessions/TrainSession.cpp | ExaScience/smurff | 29c3859badca49275833024cd77f8ca7fa6f76be | [
"MIT"
] | 14 | 2018-05-17T18:33:28.000Z | 2021-12-23T20:41:32.000Z | #include "TrainSession.h"
#include <fstream>
#include <string>
#include <iomanip>
#include <SmurffCpp/Utils/omp_util.h>
#include <SmurffCpp/Utils/Distribution.h>
#include <SmurffCpp/Utils/MatrixUtils.h>
#include <SmurffCpp/Utils/counters.h>
#include <SmurffCpp/Utils/Error.h>
#include <SmurffCpp/Utils/StringUtils.h>
... | 27.842482 | 153 | 0.587862 | [
"model"
] |
7b3445a808addbcd55389640b4e0bf0f95bf835a | 4,754 | cc | C++ | src/Modules/Legacy/DataIO/WriteField.cc | mhansen1/SCIRun | 9719c570a6d6911a9eb8df584bd2c4ad8b8cd2ba | [
"Unlicense"
] | null | null | null | src/Modules/Legacy/DataIO/WriteField.cc | mhansen1/SCIRun | 9719c570a6d6911a9eb8df584bd2c4ad8b8cd2ba | [
"Unlicense"
] | null | null | null | src/Modules/Legacy/DataIO/WriteField.cc | mhansen1/SCIRun | 9719c570a6d6911a9eb8df584bd2c4ad8b8cd2ba | [
"Unlicense"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (... | 27.479769 | 86 | 0.675642 | [
"vector"
] |
7b3755849b95a0368ae34d2d8f9702bb9882c4c6 | 943 | hpp | C++ | src/platform/socket.hpp | traplol/malang | 3c02f4f483b7580a557841c31a65bf190fd1228f | [
"MIT"
] | 4 | 2017-10-31T14:01:58.000Z | 2019-07-16T04:53:32.000Z | src/platform/socket.hpp | traplol/malang | 3c02f4f483b7580a557841c31a65bf190fd1228f | [
"MIT"
] | null | null | null | src/platform/socket.hpp | traplol/malang | 3c02f4f483b7580a557841c31a65bf190fd1228f | [
"MIT"
] | 2 | 2018-01-23T12:59:07.000Z | 2019-07-16T04:53:39.000Z | #ifndef MALANG_SOCKET_HPP
#define MALANG_SOCKET_HPP
#include <string>
#include <vector>
namespace plat
{
enum socket_result
{
ERR_Close_Fail = -6,
ERR_Recv_Fail = -5,
ERR_Send_Fail = -4,
ERR_Connection_Failed = -3,
ERR_Socket_Acquisition_Failed = -2,
ERR_Address_... | 31.433333 | 99 | 0.703075 | [
"vector"
] |
7b3b42f4000c25d37ee3bfe99d498039f2085a6b | 4,366 | cpp | C++ | platforms/codeforces/all/codeforces_59_E.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | 2 | 2020-09-17T09:04:00.000Z | 2020-11-20T19:43:18.000Z | platforms/codeforces/all/codeforces_59_E.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | platforms/codeforces/all/codeforces_59_E.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | #define IS_TEST 1
#if IS_TEST == 1
#include "../headers.hpp"
#else
#include <bits/stdc++.h>
#endif
// https://codeforces.com/contest/59/problem/E
using namespace std;
struct Vertex final {
int x{-1};
int y{-1};
bool operator==(const Vertex& vertex) const noexcept {
return x == vertex.x and y ==... | 21.613861 | 79 | 0.446404 | [
"vector"
] |
0da5a64fe00dbdac36250b7e6263529d1c07790c | 565 | cpp | C++ | src/0022.cpp | downdemo/LeetCode-Solutions-in-Cpp17 | e6ad1bd56ecea08fc418a9b50e78bdac23860e9f | [
"MIT"
] | 38 | 2020-03-05T06:38:32.000Z | 2022-03-11T02:32:14.000Z | src/0022.cpp | downdemo/LeetCode-Solutions-in-Cpp17 | e6ad1bd56ecea08fc418a9b50e78bdac23860e9f | [
"MIT"
] | null | null | null | src/0022.cpp | downdemo/LeetCode-Solutions-in-Cpp17 | e6ad1bd56ecea08fc418a9b50e78bdac23860e9f | [
"MIT"
] | 16 | 2020-04-02T15:13:20.000Z | 2022-02-25T07:34:35.000Z | class Solution {
public:
vector<string> generateParenthesis(int n) {
vector<string> res;
dfs(res, "", n, n);
return res;
}
void dfs(vector<string>& res, string s, int l_parenthese, int r_parenthese) {
if (l_parenthese == 0 && r_parenthese == 0) {
res.emplace_back(s);
return;
}
... | 23.541667 | 79 | 0.557522 | [
"vector"
] |
0da9c750fbc1d6dd292cb9f3c8267077c0ae8354 | 4,076 | cpp | C++ | Uncategorized/phantom1.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | Uncategorized/phantom1.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | Uncategorized/phantom1.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define gc getchar()
#define pc(x) putchar(x)
template<typename T> void scan(T &x){x = 0;bool _=0;T c=gc;_=c==45;c=_?gc:c;while(c<48||c>57)c=gc;for(;c<48||c>57;c=gc);for(;c>47&&c<58;c=gc)x=(x<<3)+(x<<1)+(c&15);x=_?-x:x;}
template<typename T> void print... | 33.138211 | 183 | 0.576791 | [
"vector"
] |
0daac429bf666529098396fed823762a854b1d4d | 730 | cpp | C++ | 1-100/1-twoSum.cpp | serverglen/LeeCode | 21240d050a688e3d51a2f4d4effdb14476c42e34 | [
"Apache-2.0"
] | null | null | null | 1-100/1-twoSum.cpp | serverglen/LeeCode | 21240d050a688e3d51a2f4d4effdb14476c42e34 | [
"Apache-2.0"
] | null | null | null | 1-100/1-twoSum.cpp | serverglen/LeeCode | 21240d050a688e3d51a2f4d4effdb14476c42e34 | [
"Apache-2.0"
] | null | null | null | /*
* 1. 两数之和
*
* 给定一个整数数组 nums 和一个整数目标值 target,请你在该数组中找出 和为目标值 target 的那 两个 整数,并返回它们的数组下标。
*
* 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素在答案里不能重复出现。
*
* 你可以按任意顺序返回答案。
*
* 示例 1:
*
* 输入:nums = [2,7,11,15], target = 9
* 输出:[0,1]
* 解释:因为 nums[0] + nums[1] == 9 ,返回 [0, 1] 。
*
* 示例 2:
*
* 输入:nums = [3,2,4], target = 6
* 输出:[1,2]
*... | 17.804878 | 76 | 0.452055 | [
"vector"
] |
0dad59511379a5c2b18978e82e07ae9cd32fbb05 | 338 | cpp | C++ | notes/code4/smallIntTest.cpp | suryaavala/advancedcpp | 84c1847bf42ff744f99b4c0f94b77cfa71ca00d8 | [
"MIT"
] | null | null | null | notes/code4/smallIntTest.cpp | suryaavala/advancedcpp | 84c1847bf42ff744f99b4c0f94b77cfa71ca00d8 | [
"MIT"
] | null | null | null | notes/code4/smallIntTest.cpp | suryaavala/advancedcpp | 84c1847bf42ff744f99b4c0f94b77cfa71ca00d8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <iterator>
#include "SmallInt.h"
int main() {
std::vector<SmallInt> vec{SmallInt{3}, SmallInt{1}, SmallInt{2}};
std::sort(vec.begin(), vec.end());
std::copy(vec.begin(), vec.end(),
std::ostream_iterator<SmallInt>(st... | 22.533333 | 67 | 0.647929 | [
"vector"
] |
0db0d5bbef0ffd50ca9b809ecf999ad77be83cd1 | 2,099 | cpp | C++ | src/thunderbots/software/test/primitive/stop_primitive.cpp | qgolsteyn/Software | 08beaa44059519b1ed2954079e436790393da6db | [
"MIT"
] | null | null | null | src/thunderbots/software/test/primitive/stop_primitive.cpp | qgolsteyn/Software | 08beaa44059519b1ed2954079e436790393da6db | [
"MIT"
] | null | null | null | src/thunderbots/software/test/primitive/stop_primitive.cpp | qgolsteyn/Software | 08beaa44059519b1ed2954079e436790393da6db | [
"MIT"
] | null | null | null | /**
* This file contains the unit tests for the StopPrimitive class
*/
#include "ai/primitive/stop_primitive.h"
#include <gtest/gtest.h>
#include <string.h>
TEST(StopPrimTest, construct_with_no_params_test)
{
const std::string stop_prim_name = "Stop Primitive";
StopPrimitive stop_prim = StopPrimitive(0, t... | 24.406977 | 69 | 0.715579 | [
"vector"
] |
0dc1183a53b33347774ae1370a2fb5861d364268 | 3,345 | cpp | C++ | backdoor/hilbert.cpp | Javantea/coastermelt | 8a521ff4cea9304e700859332b5582eb6d79ccec | [
"MIT"
] | 146 | 2015-01-02T19:42:04.000Z | 2021-11-27T19:27:12.000Z | backdoor/hilbert.cpp | Javantea/coastermelt | 8a521ff4cea9304e700859332b5582eb6d79ccec | [
"MIT"
] | 3 | 2015-02-20T10:59:53.000Z | 2022-02-07T19:11:08.000Z | backdoor/hilbert.cpp | Javantea/coastermelt | 8a521ff4cea9304e700859332b5582eb6d79ccec | [
"MIT"
] | 20 | 2015-02-27T01:56:19.000Z | 2021-06-27T09:26:13.000Z | /*
* Fast hilbert curve transform in C++
*
* Adapted from http://en.wikipedia.org/wiki/Hilbert_curve
* Inspired by http://xkcd.com/195/
* Deterministically and contiguously maps an (x,y)
* coordinate in a 4096x4096 image to a 24-bit value.
*
* Copyright (c) 2014 Micah Elizabeth Scott
*
* Permission is he... | 28.109244 | 83 | 0.611958 | [
"transform"
] |
0dc377830d8fd45d0b47a0869c9fe39522dcfcaf | 25,747 | cpp | C++ | source/Main.cpp | stanford-mast/GraphTool | 03fb86829c50e5dc28af2af21174460bf3bbe6e7 | [
"BSD-3-Clause"
] | null | null | null | source/Main.cpp | stanford-mast/GraphTool | 03fb86829c50e5dc28af2af21174460bf3bbe6e7 | [
"BSD-3-Clause"
] | null | null | null | source/Main.cpp | stanford-mast/GraphTool | 03fb86829c50e5dc28af2af21174460bf3bbe6e7 | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************
* GraphTool
* Tools for manipulating graphs.
*****************************************************************************
* Authored by Samuel Grossman
* Department of Electrical Engineering, Stanford University
* Copyright (c) 2016-2017
... | 47.155678 | 206 | 0.55187 | [
"object",
"vector",
"transform"
] |
0dc52544d17e322a1931dee19a3028024be56d93 | 9,370 | hpp | C++ | oanda_v20/include/oanda/v20/endpoint/Transaction.hpp | CodeRancher/offcenter_oanda | c7817299b2c7199508307b2379179923e3f60fdc | [
"Apache-2.0"
] | null | null | null | oanda_v20/include/oanda/v20/endpoint/Transaction.hpp | CodeRancher/offcenter_oanda | c7817299b2c7199508307b2379179923e3f60fdc | [
"Apache-2.0"
] | null | null | null | oanda_v20/include/oanda/v20/endpoint/Transaction.hpp | CodeRancher/offcenter_oanda | c7817299b2c7199508307b2379179923e3f60fdc | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2021 Scott Brauer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 28.919753 | 141 | 0.721345 | [
"vector"
] |
0dd68de1e7dc62e916fce3407fb50f46e02bc82a | 3,191 | cpp | C++ | willow/src/patterns/nlllwithsoftmaxgraddirect.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 61 | 2020-07-06T17:11:46.000Z | 2022-03-12T14:42:51.000Z | willow/src/patterns/nlllwithsoftmaxgraddirect.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 1 | 2021-02-25T01:30:29.000Z | 2021-11-09T11:13:14.000Z | willow/src/patterns/nlllwithsoftmaxgraddirect.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 6 | 2020-07-15T12:33:13.000Z | 2021-11-07T06:55:00.000Z | // Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#include <popart/graph.hpp>
#include <popart/op/nll.hpp>
#include <popart/op/softmax.hpp>
#include <popart/patterns/nlllwithsoftmaxgraddirect.hpp>
#include <popart/patterns/patterns.hpp>
#include <popart/tensor.hpp>
#include <popart/tensors.hpp>
namespace popar... | 31.594059 | 80 | 0.685365 | [
"vector"
] |
0dd7c1ec406fcde0ab28d9aeec323e66f1c414c7 | 4,730 | cxx | C++ | Libs/MRML/Widgets/qMRMLNavigationView.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | Libs/MRML/Widgets/qMRMLNavigationView.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | Libs/MRML/Widgets/qMRMLNavigationView.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | 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... | 31.959459 | 83 | 0.563002 | [
"object",
"3d"
] |
0dd9391486257bcd68a31c51254604779e412e01 | 3,490 | cpp | C++ | RenderDocEventStatistics/RenderDocEventStatistics/GeneratorCommand.cpp | BleedingChips/Ue4LightweightTool | afe436f0bbdf15ff02a0d4464f4ab5a9d4733df3 | [
"MIT"
] | 1 | 2021-03-21T16:54:50.000Z | 2021-03-21T16:54:50.000Z | RenderDocEventStatistics/RenderDocEventStatistics/GeneratorCommand.cpp | BleedingChips/Ue4LightweightTool | afe436f0bbdf15ff02a0d4464f4ab5a9d4733df3 | [
"MIT"
] | null | null | null | RenderDocEventStatistics/RenderDocEventStatistics/GeneratorCommand.cpp | BleedingChips/Ue4LightweightTool | afe436f0bbdf15ff02a0d4464f4ab5a9d4733df3 | [
"MIT"
] | null | null | null | #include "GeneratorCommand.h"
#include <sstream>
using namespace PO::Tool;
std::tuple<std::u16string, size_t> clear_name(const std::u16string& b)
{
size_t index = 0;
auto start = b.begin();
for (; start != b.end(); ++start)
{
if (*start != u' ' && *start != u'\\' && *start != u'-')
break;
++index;
}
auto... | 23.581081 | 94 | 0.515759 | [
"vector"
] |
0de02f52ad459e51fb59940949e29d049338636d | 17,258 | cc | C++ | spartyjet-4.0.2_mac/External/fastjet-3.0.0/tools/JetMedianBackgroundEstimator.cc | mickypaganini/SSI2016-jet-clustering | a340558957f55159197e845850fc16e622082e7e | [
"MIT"
] | 3 | 2018-06-15T09:12:17.000Z | 2021-06-20T15:58:21.000Z | spartyjet-4.0.2_mac/External/fastjet-3.0.0/tools/JetMedianBackgroundEstimator.cc | mickypaganini/SSI2016-jet-clustering | a340558957f55159197e845850fc16e622082e7e | [
"MIT"
] | 1 | 2016-08-19T23:48:43.000Z | 2016-08-20T01:01:34.000Z | spartyjet-4.0.2_mac/External/fastjet-3.0.0/tools/JetMedianBackgroundEstimator.cc | mickypaganini/SSI2016-jet-clustering | a340558957f55159197e845850fc16e622082e7e | [
"MIT"
] | 6 | 2016-08-18T23:16:00.000Z | 2020-04-13T01:13:20.000Z | //STARTHEADER
// $Id: JetMedianBackgroundEstimator.cc 2616 2011-09-30 18:03:40Z salam $
//
// Copyright (c) 2005-2011, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
//
//----------------------------------------------------------------------
// This file is part of FastJet.
//
// FastJet is free software; you can r... | 38.782022 | 284 | 0.668849 | [
"vector"
] |
0de2a4a837ae661ea9ddf104d72c979e224a1d47 | 1,868 | cc | C++ | src/0027_remove_element/remove_element.cc | youngqqcn/LeetCodeNodes | 62bbd30fbdf1640526d7fc4437cde1b05d67fc8f | [
"MIT"
] | 1 | 2021-05-23T02:15:03.000Z | 2021-05-23T02:15:03.000Z | src/0027_remove_element/remove_element.cc | youngqqcn/LeetCodeNotes | 62bbd30fbdf1640526d7fc4437cde1b05d67fc8f | [
"MIT"
] | null | null | null | src/0027_remove_element/remove_element.cc | youngqqcn/LeetCodeNotes | 62bbd30fbdf1640526d7fc4437cde1b05d67fc8f | [
"MIT"
] | null | null | null | // author: yqq
// date: 2021-05-27 20:49:31
// descriptions:
#include <iostream>
#include <vector>
#include <set>
using namespace std;
class Solution
{
public:
// 暴力查找
// int removeElement(vector<int> &nums, int val)
// {
// int i = 0;
// int removed_count = 0; // 已经移除的元素个数
// for (... | 22.238095 | 76 | 0.422377 | [
"vector"
] |
0df38439bf1b1fd719b0a3b7f23e404fcb566d9b | 788 | cpp | C++ | ex_agorithm/chips.cpp | chaixiang2002/code-works | 1c8a61a2dc29e755dd16e48d49d7b4a03b91973e | [
"Unlicense"
] | null | null | null | ex_agorithm/chips.cpp | chaixiang2002/code-works | 1c8a61a2dc29e755dd16e48d49d7b4a03b91973e | [
"Unlicense"
] | null | null | null | ex_agorithm/chips.cpp | chaixiang2002/code-works | 1c8a61a2dc29e755dd16e48d49d7b4a03b91973e | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
#include "e2.hpp"
using namespace std;
void conquer(vector<chip>& chips){
if(chips.size()==1){
return;
}
vector<chip>::iterator fast;
vector<chip>::iterator slow;
fast=chips.begin();
++fast;
slow=chips.begin();
while (slow!=chips.end() && fa... | 21.297297 | 57 | 0.541878 | [
"vector"
] |
0df7dcea4b8b403fae2952562978a39a116bb46a | 2,268 | cpp | C++ | modules/task_2/yashina_d_linear_block_filtration_omp/main.cpp | allnes/pp_2022_spring | 159191f9c2f218f8b8487f92853cc928a7652462 | [
"BSD-3-Clause"
] | null | null | null | modules/task_2/yashina_d_linear_block_filtration_omp/main.cpp | allnes/pp_2022_spring | 159191f9c2f218f8b8487f92853cc928a7652462 | [
"BSD-3-Clause"
] | null | null | null | modules/task_2/yashina_d_linear_block_filtration_omp/main.cpp | allnes/pp_2022_spring | 159191f9c2f218f8b8487f92853cc928a7652462 | [
"BSD-3-Clause"
] | 2 | 2022-03-31T17:48:22.000Z | 2022-03-31T18:06:07.000Z | // Copyright 2018 Nesterov Alexander
#include <gtest/gtest.h>
#include <vector>
#include "./yashina_d_linear_block_filtration_omp.h"
TEST(Omp, Test_img_1) {
int weight = 10;
int height = 10;
double* m = create_random_kernel(3, 3.0);
std::vector< std::vector<double> >image(height);
getRandomImg(&imag... | 32.869565 | 70 | 0.671076 | [
"vector"
] |
0dfda019f56f0f5b867e429513eea5f6b8465e47 | 29,846 | cc | C++ | src/Molecule_Lib/reaction_from_smirks.cc | michaelweiss092/LillyMol | a2b7d1d8a07ef338c754a0a2e3b2624aac694cc9 | [
"Apache-2.0"
] | 53 | 2018-06-01T13:16:15.000Z | 2022-02-23T21:04:28.000Z | src/Molecule_Lib/reaction_from_smirks.cc | michaelweiss092/LillyMol | a2b7d1d8a07ef338c754a0a2e3b2624aac694cc9 | [
"Apache-2.0"
] | 19 | 2018-08-14T13:43:18.000Z | 2021-09-24T12:53:11.000Z | src/Molecule_Lib/reaction_from_smirks.cc | michaelweiss092/LillyMol | a2b7d1d8a07ef338c754a0a2e3b2624aac694cc9 | [
"Apache-2.0"
] | 19 | 2018-10-23T19:41:01.000Z | 2022-02-17T08:14:00.000Z | #include <stdlib.h>
#include <memory>
#include "misc.h"
//#define TESTING_STUFF
#ifdef TESTING_STUFF
#include "cmdline.h"
#include "aromatic.h"
#endif
#include "iwreaction.h"
#include "molecule_to_query.h"
static int smirks_lost_atom_means_remove_frgment = 0;
void
set_smirks_lost_atom_means_remove_frgment(int s)
{... | 27.841418 | 166 | 0.624573 | [
"object"
] |
df04badb3c5b01700c08754d605459ea600674c6 | 1,913 | cpp | C++ | day1.cpp | aspingley/designpatternsekvira | 02565628bde608018e8536688e9e7e98303d78c3 | [
"Apache-2.0"
] | 1 | 2021-01-14T13:25:55.000Z | 2021-01-14T13:25:55.000Z | day1.cpp | aspingley/designpatternsekvira | 02565628bde608018e8536688e9e7e98303d78c3 | [
"Apache-2.0"
] | null | null | null | day1.cpp | aspingley/designpatternsekvira | 02565628bde608018e8536688e9e7e98303d78c3 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
// RAII: Resource Acquisition Is Initialization
class Sample{
private:
public:
};
class Chair{
private:
std::string _legs;
unsigned short _numLegs;
public:
unsigned short getLegsCount(){
return _numLegs;
}
... | 18.219048 | 69 | 0.510193 | [
"shape"
] |
df0a0f102fb39c9941ae6f11149427e4128f2607 | 1,992 | cpp | C++ | restformance/RequestAnalyzer.cpp | tsunday/restformance | c98970e39f30afb3e5ce69181df70494dcf73118 | [
"Apache-2.0"
] | null | null | null | restformance/RequestAnalyzer.cpp | tsunday/restformance | c98970e39f30afb3e5ce69181df70494dcf73118 | [
"Apache-2.0"
] | null | null | null | restformance/RequestAnalyzer.cpp | tsunday/restformance | c98970e39f30afb3e5ce69181df70494dcf73118 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "RequestAnalyzer.h"
#include <thread>
#include <algorithm>
#include <numeric>
#include <chrono>
RequestAnalyzer::RequestAnalyzer(std::shared_ptr<Request> _request){
request = _request;
}
pplx::task<void> RequestAnalyzer::invokeRepeatedRequest(const method mtd, const int count, const m... | 28.457143 | 137 | 0.634036 | [
"vector"
] |
df0a8db2eb89a199acdd515797e40af69cb5feb5 | 4,387 | cpp | C++ | source/nx/content_meta.cpp | tiliarou/Tinfoil-2 | f80d8b2c52e44c273f41547321830917e5f3b572 | [
"MIT"
] | 9 | 2020-12-24T00:12:29.000Z | 2022-02-22T11:37:45.000Z | source/nx/content_meta.cpp | tiliarou/Tinfoil-2 | f80d8b2c52e44c273f41547321830917e5f3b572 | [
"MIT"
] | null | null | null | source/nx/content_meta.cpp | tiliarou/Tinfoil-2 | f80d8b2c52e44c273f41547321830917e5f3b572 | [
"MIT"
] | 1 | 2020-07-20T01:30:03.000Z | 2020-07-20T01:30:03.000Z | #include "nx/content_meta.hpp"
#include <string.h>
#include "util/title_util.hpp"
#include "debug.h"
#include "error.hpp"
namespace nx::ncm
{
ContentMeta::ContentMeta()
{
m_bytes.Resize(sizeof(ContentMetaHeader));
}
ContentMeta::ContentMeta(u8* data, size_t size) :
m_bytes(size)
{... | 40.247706 | 161 | 0.704126 | [
"vector"
] |
df1173c970bc8e3770d3a5416f032419ae1d5fd3 | 2,872 | hpp | C++ | include/oogl/VertexBuffer.hpp | rharel/cpp-oogl | e8fd19649cc113aff43ddb8d805ca356e9a6b02c | [
"MIT"
] | 1 | 2019-08-28T19:03:45.000Z | 2019-08-28T19:03:45.000Z | include/oogl/VertexBuffer.hpp | rharel/cpp-oogl | e8fd19649cc113aff43ddb8d805ca356e9a6b02c | [
"MIT"
] | null | null | null | include/oogl/VertexBuffer.hpp | rharel/cpp-oogl | e8fd19649cc113aff43ddb8d805ca356e9a6b02c | [
"MIT"
] | 1 | 2019-08-28T19:03:51.000Z | 2019-08-28T19:03:51.000Z | /**
* Vertex Buffer Object.
*
* @author Raoul Harel
* @url github/rharel/cpp-oogl
*/
#pragma once
#include <glew/glew.h>
#include <oogl/GLObject.hpp>
namespace oogl
{
/**
* This class wraps around OpenGL vertex buffer objects.
* Vertex buffers store vertex data to be used in the rendering pipel... | 24.547009 | 77 | 0.549095 | [
"object"
] |
df126ba4a22e529560ec6aab3f09050067560efc | 8,804 | cpp | C++ | src/mongo/client/connection_string.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/client/connection_string.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/client/connection_string.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... | 34.124031 | 100 | 0.634257 | [
"vector"
] |
df179aadd329ff25fd471a436243564b6a0655b7 | 7,796 | cxx | C++ | ds/adsi/msext/clocalty.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/adsi/msext/clocalty.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/adsi/msext/clocalty.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1995
//
// File: cLocality.cxx
//
// Contents: Locality object
//
// History: 11-1-95 krishnag Created.
//
//-----------------------------------... | 20.624339 | 80 | 0.602232 | [
"object"
] |
df1811cbf8e2f6dc4f6bf5f2c886f2de1824bd7d | 9,166 | cxx | C++ | main-probe.cxx | miquelramirez/t1 | 6696db1d1e12f93811dc17b8d921a19a75b549b5 | [
"Apache-2.0"
] | null | null | null | main-probe.cxx | miquelramirez/t1 | 6696db1d1e12f93811dc17b8d921a19a75b549b5 | [
"Apache-2.0"
] | null | null | null | main-probe.cxx | miquelramirez/t1 | 6696db1d1e12f93811dc17b8d921a19a75b549b5 | [
"Apache-2.0"
] | null | null | null | /*
Alexandre Albore, Miguel Ramirez, Hector Geffner
T1: A conformant planner
Copyright UPF (C) 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 L... | 37.260163 | 108 | 0.618045 | [
"vector"
] |
df1e23938907717a7b3ab1f0075b055efa0f7bed | 2,792 | hpp | C++ | shift/service/public/shift/service/service_host.hpp | cspanier/shift | 5b3b9be310155fbc57d165d06259b723a5728828 | [
"Apache-2.0"
] | 2 | 2018-11-28T18:14:08.000Z | 2020-08-06T07:44:36.000Z | shift/service/public/shift/service/service_host.hpp | cspanier/shift | 5b3b9be310155fbc57d165d06259b723a5728828 | [
"Apache-2.0"
] | 4 | 2018-11-06T21:01:05.000Z | 2019-02-19T07:52:52.000Z | shift/service/public/shift/service/service_host.hpp | cspanier/shift | 5b3b9be310155fbc57d165d06259b723a5728828 | [
"Apache-2.0"
] | null | null | null | #ifndef SHIFT_SERVICE_SERVICEHOST_HPP
#define SHIFT_SERVICE_SERVICEHOST_HPP
#include <cstdint>
#include <memory>
#include <vector>
#include <chrono>
#include <shift/core/boost_disable_warnings.hpp>
#include <boost/asio/ip/address.hpp>
#include <shift/core/boost_restore_warnings.hpp>
#include <shift/core/singleton.hpp>... | 29.702128 | 77 | 0.734599 | [
"vector"
] |
df20a069f83d6eceb8b51621d3f5ce2c722fc687 | 4,019 | cpp | C++ | plugins/single_plugins/extra-gestures.cpp | EdwardBetts/wayfire | 10eb4dbe4ed1c930702bc271e41ed29ff9fa8b7d | [
"MIT"
] | 1,249 | 2018-08-20T02:39:53.000Z | 2022-03-31T08:04:02.000Z | plugins/single_plugins/extra-gestures.cpp | EdwardBetts/wayfire | 10eb4dbe4ed1c930702bc271e41ed29ff9fa8b7d | [
"MIT"
] | 1,084 | 2018-08-14T19:44:47.000Z | 2022-03-31T14:08:10.000Z | plugins/single_plugins/extra-gestures.cpp | EdwardBetts/wayfire | 10eb4dbe4ed1c930702bc271e41ed29ff9fa8b7d | [
"MIT"
] | 190 | 2018-09-10T09:52:59.000Z | 2022-03-30T23:53:29.000Z | #include <wayfire/plugin.hpp>
#include <wayfire/core.hpp>
#include <wayfire/touch/touch.hpp>
#include <wayfire/view.hpp>
#include <wayfire/option-wrapper.hpp>
#include <wayfire/output-layout.hpp>
#include <wayfire/output.hpp>
#include <wayfire/util/log.hpp>
namespace wf
{
using namespace touch;
class extra_gestures_p... | 31.896825 | 84 | 0.639711 | [
"vector"
] |
b309aeeea3f2a03b67da6bb0b3d21917452b178e | 918 | cpp | C++ | 02_WikiRacer/InternetTest/src/main.cpp | yangyueren/CS106L | b4267ffa4402909e20d751d7417a8957de51fb5c | [
"BSD-3-Clause"
] | null | null | null | 02_WikiRacer/InternetTest/src/main.cpp | yangyueren/CS106L | b4267ffa4402909e20d751d7417a8957de51fb5c | [
"BSD-3-Clause"
] | null | null | null | 02_WikiRacer/InternetTest/src/main.cpp | yangyueren/CS106L | b4267ffa4402909e20d751d7417a8957de51fb5c | [
"BSD-3-Clause"
] | null | null | null |
#include <iostream>
#include <string>
#include <vector>
#include <queue>
#include <set>
#include "wikiscraper.h"
using std::cout; using std::cin;
using std::endl; using std::string;
void waitForInput() {
string msg = " Take screenshot, then press enter to continue: ";
cout << string(msg.size(), '=') <... | 23.538462 | 68 | 0.527233 | [
"vector"
] |
b30a7befbb2e51efc204c25442a61815d23a26b8 | 1,691 | hpp | C++ | VoidEngine/Rendering/Shaders/_Shader.hpp | madstk1/VoidEngine | f7f5df83f24661454e258185faea72f95d592307 | [
"MIT"
] | null | null | null | VoidEngine/Rendering/Shaders/_Shader.hpp | madstk1/VoidEngine | f7f5df83f24661454e258185faea72f95d592307 | [
"MIT"
] | null | null | null | VoidEngine/Rendering/Shaders/_Shader.hpp | madstk1/VoidEngine | f7f5df83f24661454e258185faea72f95d592307 | [
"MIT"
] | null | null | null | #ifndef VOID_RENDERING_SHADERS_SHADER_H__
#define VOID_RENDERING_SHADERS_SHADER_H__
#include <string>
#include <vector>
#include <VoidEngine/Core/Common.hpp>
namespace VOID_NS {
class ShaderLayout {
public:
typedef enum {
Byte, UByte,
Short, UShort,
Int, UInt,
... | 21.961039 | 84 | 0.563572 | [
"vector"
] |
b30c206b299ab73e8bedd04fcf7b70e14140b1cd | 4,350 | cpp | C++ | plug-ins/snapDeformer/snapMeshDeformer.cpp | davidrichardnelson/maya | c0f2677a7ae73a2305d60db0041102f4e3558748 | [
"MIT"
] | 15 | 2016-01-16T16:20:53.000Z | 2022-03-31T03:56:39.000Z | plug-ins/snapDeformer/snapMeshDeformer.cpp | davidrichardnelson/maya | c0f2677a7ae73a2305d60db0041102f4e3558748 | [
"MIT"
] | null | null | null | plug-ins/snapDeformer/snapMeshDeformer.cpp | davidrichardnelson/maya | c0f2677a7ae73a2305d60db0041102f4e3558748 | [
"MIT"
] | 3 | 2016-02-25T02:00:38.000Z | 2020-09-01T07:20:19.000Z | #include <maya/MFnMesh.h>
#include <maya/MMatrix.h>
#include <maya/MPointArray.h>
#include <maya/MItGeometry.h>
#include <maya/MFnNumericAttribute.h>
#include <maya/MFnEnumAttribute.h>
#include <maya/MFnTypedAttribute.h>
#include <mayaFuntions.h>
#include <KdTree.h>
#include "snapMeshDeformer.h"
MTypeId snapDeformer:... | 25.438596 | 112 | 0.667356 | [
"mesh",
"object"
] |
b30cdfb7befc49af7efa417320c6a3d9bbee6923 | 32,927 | cpp | C++ | library/src/main/cpp/impl/applicationfunctions.cpp | sdankbar/jaqumal | 5878cce1df8e8029381044a5284332aa0954fbc0 | [
"MIT"
] | 3 | 2020-01-02T03:58:57.000Z | 2021-05-19T18:11:06.000Z | library/src/main/cpp/impl/applicationfunctions.cpp | sdankbar/jaqumal | 5878cce1df8e8029381044a5284332aa0954fbc0 | [
"MIT"
] | null | null | null | library/src/main/cpp/impl/applicationfunctions.cpp | sdankbar/jaqumal | 5878cce1df8e8029381044a5284332aa0954fbc0 | [
"MIT"
] | null | null | null | /**
* The MIT License
* Copyright © 2020 Stephen Dankbar
*
* 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,... | 36.913677 | 183 | 0.611838 | [
"geometry",
"vector"
] |
b31088b95d7c17c9c25dd8547af03d6943520916 | 844 | hpp | C++ | renderer/backbuffer_menu_surface.hpp | caitisgreat/jkgfxmod | f861441a751e438e6bb1b930fb611e728bd44b61 | [
"MIT"
] | 57 | 2019-03-11T20:29:42.000Z | 2022-03-11T19:26:01.000Z | renderer/backbuffer_menu_surface.hpp | caitisgreat/jkgfxmod | f861441a751e438e6bb1b930fb611e728bd44b61 | [
"MIT"
] | 71 | 2019-03-31T14:39:58.000Z | 2022-02-12T05:25:39.000Z | renderer/backbuffer_menu_surface.hpp | caitisgreat/jkgfxmod | f861441a751e438e6bb1b930fb611e728bd44b61 | [
"MIT"
] | 10 | 2019-05-14T21:02:57.000Z | 2021-06-06T23:19:16.000Z | #pragma once
#include "ddrawsurface_impl.hpp"
#include "renderer_fwd.hpp"
#include <vector>
namespace jkgm {
class primary_menu_surface;
class backbuffer_menu_surface : public DirectDrawSurface_impl {
private:
renderer *r;
primary_menu_surface *surf;
public:
backbuffer_menu_s... | 30.142857 | 90 | 0.699052 | [
"vector"
] |
b31acf816aee1864468c0e7feaa0283511f4af0d | 4,031 | cpp | C++ | distributions/univariate/continuous/LogisticRand.cpp | StochasticEngineer/RandLib | fff111968f5369b7ddaffac44289bbb26cc5c0f3 | [
"MIT"
] | 61 | 2017-11-01T16:29:54.000Z | 2020-06-20T01:34:30.000Z | distributions/univariate/continuous/LogisticRand.cpp | vishalbelsare/RandLib | fff111968f5369b7ddaffac44289bbb26cc5c0f3 | [
"MIT"
] | 8 | 2015-07-01T21:30:22.000Z | 2017-10-18T22:15:43.000Z | distributions/univariate/continuous/LogisticRand.cpp | vishalbelsare/RandLib | fff111968f5369b7ddaffac44289bbb26cc5c0f3 | [
"MIT"
] | 8 | 2017-11-05T19:33:44.000Z | 2020-06-20T01:34:28.000Z | #include "LogisticRand.h"
template < typename RealType >
LogisticRand<RealType>::LogisticRand(double location, double scale)
{
SetLocation(location);
SetScale(scale);
}
template < typename RealType >
String LogisticRand<RealType>::Name() const
{
return "Logistic(" + this->toStringWithPrecision(GetLocation... | 24.430303 | 123 | 0.657901 | [
"vector"
] |
b31c6f6f217a4040bd77edfc3d3189589b0f2444 | 1,385 | cpp | C++ | src/engine/render/Model.cpp | HaedHutner/Explorer | f3de70b8d72d4b4e61734bde10ebd577e3082dc0 | [
"MIT"
] | null | null | null | src/engine/render/Model.cpp | HaedHutner/Explorer | f3de70b8d72d4b4e61734bde10ebd577e3082dc0 | [
"MIT"
] | null | null | null | src/engine/render/Model.cpp | HaedHutner/Explorer | f3de70b8d72d4b4e61734bde10ebd577e3082dc0 | [
"MIT"
] | null | null | null | #include "Model.h"
#include <utility>
Model::Model()
: meshes(std::vector<Mesh *>()), model(glm::mat4(1.0f)), position(glm::vec3()), rotation(glm::vec3()),
scale(glm::vec3()) {
}
Model::Model(std::vector<Mesh *> meshes, const glm::vec3 &position, const glm::fvec3 &rotation, const glm::vec3 &scale)
... | 25.648148 | 119 | 0.639711 | [
"mesh",
"vector",
"model"
] |
b31f1da4e8adf8aa253d1ade83ef82f6ffa73ca8 | 6,071 | cpp | C++ | src/db/Database.cpp | aogaki/WebApiELIADE | acea9dbe4e98a2b4ead670ca51c037c7c8bddf65 | [
"Apache-2.0"
] | null | null | null | src/db/Database.cpp | aogaki/WebApiELIADE | acea9dbe4e98a2b4ead670ca51c037c7c8bddf65 | [
"Apache-2.0"
] | null | null | null | src/db/Database.cpp | aogaki/WebApiELIADE | acea9dbe4e98a2b4ead670ca51c037c7c8bddf65 | [
"Apache-2.0"
] | null | null | null |
#include <bsoncxx/builder/stream/array.hpp>
#include <bsoncxx/builder/stream/document.hpp>
#include <bsoncxx/builder/stream/helpers.hpp>
#include <bsoncxx/exception/exception.hpp>
#include <bsoncxx/json.hpp>
#include <iostream>
#include <mongocxx/client.hpp>
#include <mongocxx/exception/operation_exception.hpp>
#inclu... | 35.711765 | 80 | 0.636304 | [
"object"
] |
b32181904be7c321f267dbfed7cbf7e3651e5874 | 4,278 | cc | C++ | 2021/day09/lib.cc | kfarnung/advent-of-code | 74604578379c518bd7ad959e0088ca55a6986515 | [
"MIT"
] | 1 | 2017-12-11T07:08:52.000Z | 2017-12-11T07:08:52.000Z | 2021/day09/lib.cc | kfarnung/advent-of-code | 74604578379c518bd7ad959e0088ca55a6986515 | [
"MIT"
] | 2 | 2020-12-01T08:16:42.000Z | 2021-05-12T04:54:34.000Z | 2021/day09/lib.cc | kfarnung/advent-of-code | 74604578379c518bd7ad959e0088ca55a6986515 | [
"MIT"
] | null | null | null | #include "lib.h"
#include <algorithm>
#include <deque>
#include <limits>
#include <numeric>
#include <set>
namespace
{
std::vector<std::vector<uint8_t>> parse_grid(const std::vector<std::string> &input)
{
std::vector<std::vector<uint8_t>> grid;
for (const auto &line : input)
{
... | 27.960784 | 105 | 0.496494 | [
"vector"
] |
b329e8b870cb327189b15df124f6da7d4bb9d50e | 1,417 | cpp | C++ | Facebook/C++/Question-3-Solution.cpp | echpee/Hacktoberfest_Interview_Questions_2020 | e62b3adaae36f209b7c703a8ec84336a7e57cf1d | [
"MIT"
] | 2 | 2020-10-03T09:21:13.000Z | 2020-10-26T05:58:26.000Z | Facebook/C++/Question-3-Solution.cpp | echpee/Hacktoberfest_Interview_Questions_2020 | e62b3adaae36f209b7c703a8ec84336a7e57cf1d | [
"MIT"
] | 15 | 2020-10-03T00:07:11.000Z | 2020-10-25T08:58:48.000Z | Facebook/C++/Question-3-Solution.cpp | echpee/Hacktoberfest_Interview_Questions_2020 | e62b3adaae36f209b7c703a8ec84336a7e57cf1d | [
"MIT"
] | 23 | 2020-10-03T01:35:56.000Z | 2020-10-25T16:33:29.000Z | #include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define f first
#define s second
// Function to find all pairs in both arrays
// whose sum is equal to given value x
void findPairs(int arr1[], int arr2[], int n,
int m, int x)
{
// Insert all elements of ... | 26.735849 | 70 | 0.478476 | [
"vector"
] |
b333147806b452079d35f201a59e8b6095e78d4e | 8,248 | cpp | C++ | c++调用py/Format Strings for PyArg_ParseTuple.cpp | keetsky/c_c-_python_mutprog | f918db6ef1624b8c16efe2b4d384dd4c6f72d3dd | [
"Apache-2.0"
] | 3 | 2021-01-26T07:52:50.000Z | 2021-11-25T11:28:36.000Z | c++调用py/Format Strings for PyArg_ParseTuple.cpp | keetsky/c_c-_python_mutprog | f918db6ef1624b8c16efe2b4d384dd4c6f72d3dd | [
"Apache-2.0"
] | null | null | null | c++调用py/Format Strings for PyArg_ParseTuple.cpp | keetsky/c_c-_python_mutprog | f918db6ef1624b8c16efe2b4d384dd4c6f72d3dd | [
"Apache-2.0"
] | null | null | null |
next up previous Extending and Embedding the Python Interpreter contents
Next: 1.8 Keyword Parsing with Up: 1. Extending Python with Previous: 1.6 Calling Python Functions
1.7 Format Strings for PyArg_ParseTuple()
The PyArg_ParseTuple() function is declared as follows:
int PyArg_ParseTuple(PyObject *arg,... | 58.084507 | 633 | 0.701382 | [
"object"
] |
b334c4cbdba00b08dbbca2c271f56e829638d4e8 | 15,819 | cpp | C++ | proj.android/Photon-AndroidNDK_SDK/Demos/demo_loadBalancing/src/NetworkLogic.cpp | h-iwata/MultiplayPaint | b170ec60bdda93c041ef59625ac2d6eba54d0335 | [
"MIT"
] | 1 | 2016-05-31T22:56:26.000Z | 2016-05-31T22:56:26.000Z | proj.ios_mac/Photon-iOS_SDK/Demos/demo_loadBalancing/src/NetworkLogic.cpp | h-iwata/MultiplayPaint | b170ec60bdda93c041ef59625ac2d6eba54d0335 | [
"MIT"
] | null | null | null | proj.ios_mac/Photon-iOS_SDK/Demos/demo_loadBalancing/src/NetworkLogic.cpp | h-iwata/MultiplayPaint | b170ec60bdda93c041ef59625ac2d6eba54d0335 | [
"MIT"
] | null | null | null | #include "NetworkLogic.h"
static const ExitGames::Common::JString appId = L"<no-app-id>"; // set your app id here
static const ExitGames::Common::JString appVersion = L"1.0";
static const bool autoLobbbyStats = true;
static const bool useDefaultRegion = false;
static const ExitGames::Common::JString PLAYER_N... | 38.963054 | 306 | 0.693723 | [
"object"
] |
b3389de53ddc680d48778fc864bf5147469ed3f0 | 1,451 | hpp | C++ | distribution_model/boost/statistics/detail/distribution/model/key/prior_model_dataset_spec.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | distribution_model/boost/statistics/detail/distribution/model/key/prior_model_dataset_spec.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | distribution_model/boost/statistics/detail/distribution/model/key/prior_model_dataset_spec.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// distribution::model::key::prior_model_dataset_spec.hpp //
// //
// Copyright 2009 Erwann Rogard. Distributed under the Boost //
... | 40.305556 | 103 | 0.605789 | [
"model"
] |
b34029635cb5e6bbace0876d60f587a8dbb98366 | 1,458 | cpp | C++ | Backtracking/37. Sudoku Solver.cpp | prashantsingh20/LeetCode-Solutions | d8219691820c9103d368c4ea4edf4f837a0a20ad | [
"MIT"
] | 2 | 2021-07-07T19:09:55.000Z | 2021-07-14T04:20:47.000Z | Backtracking/37. Sudoku Solver.cpp | prashantsingh20/LeetCode-Solutions | d8219691820c9103d368c4ea4edf4f837a0a20ad | [
"MIT"
] | null | null | null | Backtracking/37. Sudoku Solver.cpp | prashantsingh20/LeetCode-Solutions | d8219691820c9103d368c4ea4edf4f837a0a20ad | [
"MIT"
] | null | null | null | /* 37. Sudoku Solver
https://leetcode.com/problems/sudoku-solver/
*/
class Solution {
public:
bool safe(int i, int j, char c, map<string, bool>& mp, bool erase)
{
string x = "row" + to_string(i) + " ";
string y = "col" + to_string(j) + " ";
string z = "box" + to_string(i / 3) + to_string(j / 3) +... | 26.035714 | 83 | 0.484911 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.