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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4ec9e4157e231051d2f80680e9a9352868fc454e | 260 | cpp | C++ | Cpp_primer_5th/code_part10/prog10_9.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | Cpp_primer_5th/code_part10/prog10_9.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | Cpp_primer_5th/code_part10/prog10_9.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
void elimDups(vector<string> &words){
sort(words.begin(), words.end() );
auto end_unique = unique(words.begin(), words.end() );
words.erase(end_unique, words.end());
}
| 17.333333 | 55 | 0.684615 | [
"vector"
] |
4ecfd6c7f7074a3a39aa1f8dac4b85376da9cc84 | 5,012 | cc | C++ | src/lib/config/hooked_command_mgr.cc | telekom/dt-kea-netconf | f347df353d58827d6deb09f281d3680ab089e7af | [
"Apache-2.0"
] | 2 | 2021-06-29T09:56:34.000Z | 2021-06-29T09:56:39.000Z | src/lib/config/hooked_command_mgr.cc | telekom/dt-kea-netconf | f347df353d58827d6deb09f281d3680ab089e7af | [
"Apache-2.0"
] | null | null | null | src/lib/config/hooked_command_mgr.cc | telekom/dt-kea-netconf | f347df353d58827d6deb09f281d3680ab089e7af | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2017-2018 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <cc/command_int... | 37.684211 | 91 | 0.603152 | [
"vector"
] |
4ed35dee1246ae1f9542365169019f3c1192a60f | 1,274 | hpp | C++ | iow/io/acceptor/options_json.hpp | mambaru/iow | 986a7baa6a18eae73c5bc00e40a03c6d9d5e0d7c | [
"MIT"
] | 1 | 2018-07-30T20:46:33.000Z | 2018-07-30T20:46:33.000Z | iow/io/acceptor/options_json.hpp | mambaru/iow | 986a7baa6a18eae73c5bc00e40a03c6d9d5e0d7c | [
"MIT"
] | 11 | 2019-12-06T00:23:51.000Z | 2021-04-20T19:57:30.000Z | iow/io/acceptor/options_json.hpp | mambaru/iow | 986a7baa6a18eae73c5bc00e40a03c6d9d5e0d7c | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <iow/io/acceptor/options.hpp>
#include <wjson/json.hpp>
#include <wjson/name.hpp>
namespace iow{ namespace io{ namespace acceptor{
template<typename AcceptorOptions, typename ConnectionsOptionsJson>
struct options_json
{
typedef AcceptorOptions options_type;
typedef Connec... | 31.85 | 127 | 0.753532 | [
"object"
] |
4deee2450393bf7522a9c9fad43ccb80e7420d57 | 2,227 | cpp | C++ | MonteCarlo/BuffonNedlee/secuential/buffonNedlee.cpp | Jofemago/HPC | 6e19bb64ad4bc35a8ee00ec72a04fc3745027bec | [
"MIT"
] | null | null | null | MonteCarlo/BuffonNedlee/secuential/buffonNedlee.cpp | Jofemago/HPC | 6e19bb64ad4bc35a8ee00ec72a04fc3745027bec | [
"MIT"
] | null | null | null | MonteCarlo/BuffonNedlee/secuential/buffonNedlee.cpp | Jofemago/HPC | 6e19bb64ad4bc35a8ee00ec72a04fc3745027bec | [
"MIT"
] | null | null | null |
#include<bits/stdc++.h>
using namespace std;
using puntos = vector<double>;
using apuntador = vector<bool>;
double pi = M_PI;
double randiasDivGrades = pi/180.0;
std::random_device rd; //Will be used to obtain a seed for the random number engine
std::mt19937 gen(rd()); //Standard mersenne_twister_engine seede... | 25.306818 | 84 | 0.569376 | [
"vector"
] |
4dfb1258b5fcea2d7680100db05ec8102bbc1512 | 312 | cpp | C++ | demo/main.cpp | SovesT1337/lab-04-boost-filesystem | 245e3e9c0bf8f23efbc3cfd8c1fa7cf3f434c709 | [
"MIT"
] | null | null | null | demo/main.cpp | SovesT1337/lab-04-boost-filesystem | 245e3e9c0bf8f23efbc3cfd8c1fa7cf3f434c709 | [
"MIT"
] | null | null | null | demo/main.cpp | SovesT1337/lab-04-boost-filesystem | 245e3e9c0bf8f23efbc3cfd8c1fa7cf3f434c709 | [
"MIT"
] | null | null | null | #include <magic.hpp>
int main() {
// int main(int argc, char* argv[]) {
path p = "/home/sovest/CLionProjects/lab-04-boost-filesystem/misc";
// if (argc >= 2)
// p = argv[1];
// else
// p = boost::filesystem::current_path();
vector<file> list;
walker(p, list);
print(list);
magic(list);
} | 22.285714 | 69 | 0.589744 | [
"vector"
] |
4dfd2e0f6663ce375a9be098dcedba57a91770f3 | 4,373 | hpp | C++ | include/bio_ik/ik_gradient.hpp | SammyRamone/bio_ik | f903cd3190f4acf15342aef70cddcef6cbbf8819 | [
"BSD-3-Clause"
] | 1 | 2022-03-24T09:26:46.000Z | 2022-03-24T09:26:46.000Z | include/bio_ik/ik_gradient.hpp | SammyRamone/bio_ik | f903cd3190f4acf15342aef70cddcef6cbbf8819 | [
"BSD-3-Clause"
] | 9 | 2022-01-03T18:59:17.000Z | 2022-02-05T20:06:22.000Z | include/bio_ik/ik_gradient.hpp | SammyRamone/bio_ik | f903cd3190f4acf15342aef70cddcef6cbbf8819 | [
"BSD-3-Clause"
] | 2 | 2022-01-11T23:57:32.000Z | 2022-02-26T10:27:02.000Z | // Copyright (c) 2016-2017, Philipp Sebastian Ruppel
//
// 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 a... | 36.140496 | 78 | 0.721473 | [
"vector"
] |
1501973a43b9322b467e111fb067525d5e64bb8c | 4,000 | cc | C++ | chrome/browser/send_tab_to_self/send_tab_to_self_desktop_util.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/send_tab_to_self/send_tab_to_self_desktop_util.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/send_tab_to_self/send_tab_to_self_desktop_util.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-03-07T14:20:02.000Z | 2021-03-07T14:20:02.000Z | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/send_tab_to_self/send_tab_to_self_desktop_util.h"
#include <string>
#include "base/metrics/histogram_functions.h"
#include "bas... | 37.383178 | 82 | 0.7415 | [
"vector",
"model"
] |
150c7fad1bfba6a5ab71980ea712414cdd893617 | 6,720 | cxx | C++ | src/Cxx/Visualization/ShadowsLightsDemo.cxx | cvandijck/VTKExamples | b6bb89414522afc1467be8a1f0089a37d0c16883 | [
"Apache-2.0"
] | 2 | 2020-05-30T17:01:30.000Z | 2021-10-04T13:58:42.000Z | src/Cxx/Visualization/ShadowsLightsDemo.cxx | cvandijck/VTKExamples | b6bb89414522afc1467be8a1f0089a37d0c16883 | [
"Apache-2.0"
] | null | null | null | src/Cxx/Visualization/ShadowsLightsDemo.cxx | cvandijck/VTKExamples | b6bb89414522afc1467be8a1f0089a37d0c16883 | [
"Apache-2.0"
] | 1 | 2020-01-28T01:27:03.000Z | 2020-01-28T01:27:03.000Z | // The scene consists of
// * 4 actors: a rectangle, a box, a cone and a sphere. The box, the cone and
// the sphere are above the rectangle.
// * 2 spotlights: one in the direction of the box, another one in the
// direction of the sphere. Both lights are above the box, the cone and
// the sphere.
#include <vtkSmartPo... | 28.474576 | 78 | 0.72619 | [
"render"
] |
150ec559543e9b7fc69b465c53ad6c4b525c1114 | 11,047 | cpp | C++ | spheroidal/sphwv/common_main.cpp | SabininGV/scattering | 68ffea5605d9da87db0593ba7c56c7f60f6b3fae | [
"BSD-2-Clause"
] | 5 | 2016-05-02T11:51:54.000Z | 2021-10-04T14:35:58.000Z | spheroidal/sphwv/common_main.cpp | SabininGV/scattering | 68ffea5605d9da87db0593ba7c56c7f60f6b3fae | [
"BSD-2-Clause"
] | null | null | null | spheroidal/sphwv/common_main.cpp | SabininGV/scattering | 68ffea5605d9da87db0593ba7c56c7f60f6b3fae | [
"BSD-2-Clause"
] | 10 | 2016-03-17T03:58:52.000Z | 2021-10-04T14:36:00.000Z | //
// Copyright (c) 2014, Ross Adelman, Nail A. Gumerov, and Ramani Duraiswami
// 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 cop... | 26.491607 | 161 | 0.637458 | [
"vector"
] |
15103718dc73be894c7c86a75da243d2f5720ff4 | 16,233 | cc | C++ | services/media_session/audio_focus_manager.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | services/media_session/audio_focus_manager.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | services/media_session/audio_focus_manager.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2018 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 "services/media_session/audio_focus_manager.h"
#include <iterator>
#include <utility>
#include "base/bind.h"
#include "base/containers/adapters... | 31.520388 | 80 | 0.721616 | [
"vector"
] |
15113c81e4a76a859b784874f25470dac927d168 | 42,259 | cpp | C++ | thrift/compiler/test/fixtures/complex-struct/gen-cpp2/module_types.0.split.cpp | nathanawmk/fbthrift | 557cab1738eac15a00075a62389b50a3b6d900fc | [
"Apache-2.0"
] | null | null | null | thrift/compiler/test/fixtures/complex-struct/gen-cpp2/module_types.0.split.cpp | nathanawmk/fbthrift | 557cab1738eac15a00075a62389b50a3b6d900fc | [
"Apache-2.0"
] | null | null | null | thrift/compiler/test/fixtures/complex-struct/gen-cpp2/module_types.0.split.cpp | nathanawmk/fbthrift | 557cab1738eac15a00075a62389b50a3b6d900fc | [
"Apache-2.0"
] | null | null | null | /**
* Autogenerated by Thrift for src/module.thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated @nocommit
*/
#include "thrift/compiler/test/fixtures/complex-struct/gen-cpp2/module_types.h"
#include "thrift/compiler/test/fixtures/complex-struct/gen-cpp2/module_types.tcc"
#inc... | 44.577004 | 1,740 | 0.741073 | [
"vector"
] |
151d076d40bd9db5cd34ebe27bfb993a13b5deac | 5,763 | cpp | C++ | examples_oldgl_glfw/624_DefArapUi/main.cpp | nobuyuki83/delfem2 | 118768431ccc5b77ed10b8f76f625d38e0b552f0 | [
"MIT"
] | 153 | 2018-08-16T21:51:33.000Z | 2022-03-28T10:34:48.000Z | examples_oldgl_glfw/624_DefArapUi/main.cpp | nobuyuki83/delfem2 | 118768431ccc5b77ed10b8f76f625d38e0b552f0 | [
"MIT"
] | 63 | 2018-08-16T21:53:34.000Z | 2022-02-22T13:50:34.000Z | examples_oldgl_glfw/624_DefArapUi/main.cpp | nobuyuki83/delfem2 | 118768431ccc5b77ed10b8f76f625d38e0b552f0 | [
"MIT"
] | 18 | 2018-12-17T05:39:15.000Z | 2021-11-16T08:21:16.000Z | /*
* Copyright (c) 2019 Nobuyuki Umetani
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#if defined(_WIN32) // windows
# define NOMINMAX // to remove min,max macro
# include <windows.h> // this should come before glfw3.h
#endif
#def... | 30.983871 | 92 | 0.516745 | [
"mesh",
"vector"
] |
151d36b6337b2ecaf86dcbfc5fc87aaee7132c4c | 3,425 | hpp | C++ | src/include/guinsoodb/main/appender.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-04-22T05:41:54.000Z | 2021-04-22T05:41:54.000Z | src/include/guinsoodb/main/appender.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | null | null | null | src/include/guinsoodb/main/appender.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-12-12T10:24:57.000Z | 2021-12-12T10:24:57.000Z | //===----------------------------------------------------------------------===//
// GuinsooDB
//
// guinsoodb/main/appender.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "guinsoodb/common/types/data_chunk.hpp"
#include "guinsoo... | 28.07377 | 102 | 0.715036 | [
"vector"
] |
152112c81aaf4ad32513edfcceaa15efb0bd4108 | 19,308 | hpp | C++ | asmd/eita/Fmt1x_v170108_2.hpp | 00sapo/ASMD | 48e021f98d5fbecd09bed1cdd58024d9b471fad4 | [
"MIT"
] | 6 | 2021-09-18T08:36:26.000Z | 2022-03-25T16:37:04.000Z | asmd/eita/Fmt1x_v170108_2.hpp | 00sapo/ASMD | 48e021f98d5fbecd09bed1cdd58024d9b471fad4 | [
"MIT"
] | 4 | 2021-04-22T15:01:26.000Z | 2021-04-22T15:01:28.000Z | asmd/eita/Fmt1x_v170108_2.hpp | 00sapo/ASMD | 48e021f98d5fbecd09bed1cdd58024d9b471fad4 | [
"MIT"
] | 3 | 2021-07-13T15:11:38.000Z | 2021-11-26T07:38:00.000Z | /*
Copyright 2019 Eita Nakamura
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, publish, distribute, subli... | 30.406299 | 460 | 0.607727 | [
"vector"
] |
152a213a4f46e89ef8d7656b37895e9a196f816f | 12,349 | cpp | C++ | storage/src/tests/distributor/bucketdbmetricupdatertest.cpp | kennyeric/vespa | f69f960d5ae48d246f56a60e6e46c90a58f836ba | [
"Apache-2.0"
] | 1 | 2018-12-30T05:42:18.000Z | 2018-12-30T05:42:18.000Z | storage/src/tests/distributor/bucketdbmetricupdatertest.cpp | kennyeric/vespa | f69f960d5ae48d246f56a60e6e46c90a58f836ba | [
"Apache-2.0"
] | 1 | 2021-01-21T01:37:37.000Z | 2021-01-21T01:37:37.000Z | storage/src/tests/distributor/bucketdbmetricupdatertest.cpp | kennyeric/vespa | f69f960d5ae48d246f56a60e6e46c90a58f836ba | [
"Apache-2.0"
] | 1 | 2020-02-01T07:21:28.000Z | 2020-02-01T07:21:28.000Z | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vdstestlib/cppunit/macros.h>
#include <string>
#include <sstream>
#include <vespa/storage/bucketdb/bucketdatabase.h>
#include <vespa/storage/distributor/bucketdb/bucketdbmetricupdater.h... | 34.207756 | 118 | 0.749372 | [
"vector"
] |
15314d0f2c4ec6f4c98f37b43182f870222e7237 | 2,691 | cpp | C++ | 830.PositionsOfLargeGroups.cpp | mrdrivingduck/leet-code | fee008f3a62849a21ca703e05f755378996a1ff5 | [
"MIT"
] | null | null | null | 830.PositionsOfLargeGroups.cpp | mrdrivingduck/leet-code | fee008f3a62849a21ca703e05f755378996a1ff5 | [
"MIT"
] | null | null | null | 830.PositionsOfLargeGroups.cpp | mrdrivingduck/leet-code | fee008f3a62849a21ca703e05f755378996a1ff5 | [
"MIT"
] | null | null | null | /**
* @author Mr Dk.
* @version 2021/01/05
*/
/*
In a string s of lowercase letters, these letters form consecutive groups
of the same character.
For example, a string like s = "abbxxxxzyy" has the groups "a", "bb",
"xxxx", "z", and "yy".
A group is identified by an interval [start, end], wher... | 23.814159 | 88 | 0.563359 | [
"vector"
] |
1536794b543265d7b5872c5099d816deba82f44b | 435 | cpp | C++ | design_add_and_search_words_data_structure.cpp | spencercjh/sync-leetcode-today-problem-cpp-example | 178a974e5848e3a620f4565170b459d50ecfdd6b | [
"Apache-2.0"
] | null | null | null | design_add_and_search_words_data_structure.cpp | spencercjh/sync-leetcode-today-problem-cpp-example | 178a974e5848e3a620f4565170b459d50ecfdd6b | [
"Apache-2.0"
] | 1 | 2020-12-17T07:54:03.000Z | 2020-12-17T08:00:22.000Z | design_add_and_search_words_data_structure.cpp | spencercjh/sync-leetcode-today-problem-cpp-example | 178a974e5848e3a620f4565170b459d50ecfdd6b | [
"Apache-2.0"
] | null | null | null | package leetcode
// https://leetcode-cn.com/problems/design-add-and-search-words-data-structure/
class WordDictionary {
public:
WordDictionary() {
}
void addWord(string word) {
}
bool search(string word) {
}
};
/**
* Your WordDictionary object will be instantiated and called as s... | 18.125 | 79 | 0.657471 | [
"object"
] |
15387248f6f1ea6a72933444b7b6fc4952d2ffe0 | 2,260 | hpp | C++ | inc/concept/swappable_with.hpp | matrixjoeq/concepts | d9bac8343e44c62f22913ec41ac0856b767bedc4 | [
"MIT"
] | null | null | null | inc/concept/swappable_with.hpp | matrixjoeq/concepts | d9bac8343e44c62f22913ec41ac0856b767bedc4 | [
"MIT"
] | null | null | null | inc/concept/swappable_with.hpp | matrixjoeq/concepts | d9bac8343e44c62f22913ec41ac0856b767bedc4 | [
"MIT"
] | null | null | null | /** @file */
#ifndef __STL_CONCEPT_SWAPPABLE_WITH_HPP__
#define __STL_CONCEPT_SWAPPABLE_WITH_HPP__
#include "concept/referenceable.hpp"
#include <type_traits>
#include <utility>
#include <boost/concept/usage.hpp>
#include <boost/concept/detail/concept_def.hpp>
#include "concept/detail/unuse.hpp"
#if (defined _MSC_VER... | 28.607595 | 111 | 0.702212 | [
"object"
] |
15399c02c3c17ddc8ecd79c6a1d2a6f7453ff560 | 5,662 | cpp | C++ | test/main.cpp | JeffM2501/RLGameGui | 76577f889855b45e29bd287196f0b0c678a7dfe8 | [
"MIT"
] | 1 | 2021-04-08T16:12:42.000Z | 2021-04-08T16:12:42.000Z | test/main.cpp | JeffM2501/RLGameGui | 76577f889855b45e29bd287196f0b0c678a7dfe8 | [
"MIT"
] | 1 | 2021-02-03T16:16:57.000Z | 2021-02-03T16:16:57.000Z | test/main.cpp | JeffM2501/RLGameGui | 76577f889855b45e29bd287196f0b0c678a7dfe8 | [
"MIT"
] | 1 | 2021-02-03T10:26:49.000Z | 2021-02-03T10:26:49.000Z | /**********************************************************************************************
*
* RLGameGUi * A game gui for raylib
*
* LICENSE: MIT
*
* Copyright (c) 2020 Jeffery Myers
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documen... | 40.733813 | 220 | 0.716355 | [
"render"
] |
1539d9a99f3983a928940511c6f28e21bdbe53e5 | 1,366 | hxx | C++ | src/Query.hxx | Caltech-IPAC/libtinyhtm | abc3394f3d37b3729a625989d2fc144f14a7d208 | [
"BSD-3-Clause"
] | 1 | 2019-06-17T21:56:31.000Z | 2019-06-17T21:56:31.000Z | src/Query.hxx | Caltech-IPAC/libtinyhtm | abc3394f3d37b3729a625989d2fc144f14a7d208 | [
"BSD-3-Clause"
] | null | null | null | src/Query.hxx | Caltech-IPAC/libtinyhtm | abc3394f3d37b3729a625989d2fc144f14a7d208 | [
"BSD-3-Clause"
] | null | null | null | #ifndef TINYHTM_QUERY_HXX
#define TINYHTM_QUERY_HXX
#include <memory>
#include <vector>
#include <functional>
#include "Exception.hxx"
#include "Circle.hxx"
#include "Cartesian.hxx"
#include "Ellipse.hxx"
#include "Box.hxx"
#include "Polygon.hxx"
#include "Tree.hxx"
namespace tinyhtm
{
class Query
{
public:
Tree tr... | 22.032258 | 78 | 0.671303 | [
"shape",
"vector"
] |
153c7c4cf729e8ed3fe075f727e2bf6f6ffb02aa | 2,481 | hpp | C++ | datatools/backend/merge_regions.hpp | torms3/DataTools | 8144a9485ca69dc2208bbcc20f59132def977b7a | [
"MIT"
] | null | null | null | datatools/backend/merge_regions.hpp | torms3/DataTools | 8144a9485ca69dc2208bbcc20f59132def977b7a | [
"MIT"
] | null | null | null | datatools/backend/merge_regions.hpp | torms3/DataTools | 8144a9485ca69dc2208bbcc20f59132def977b7a | [
"MIT"
] | 2 | 2018-05-29T18:27:18.000Z | 2018-06-01T13:36:24.000Z | //
// Copyright (C) 2012-2019 Aleksandar Zlateski <zlateski@mit.edu>
// Kisuk Lee <kisuklee@mit.edu>
// ---------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General ... | 25.84375 | 72 | 0.536477 | [
"vector"
] |
154de20b48191ec8f6c8379bd617704b5fcee174 | 19,659 | cpp | C++ | deps/libgeos/geos/src/algorithm/LineIntersector.cpp | khrushjing/node-gdal-async | 6546b0c8690f2db677d5385b40b407523503b314 | [
"Apache-2.0"
] | 42 | 2021-03-26T17:34:52.000Z | 2022-03-18T14:15:31.000Z | deps/libgeos/geos/src/algorithm/LineIntersector.cpp | khrushjing/node-gdal-async | 6546b0c8690f2db677d5385b40b407523503b314 | [
"Apache-2.0"
] | 29 | 2021-06-03T14:24:01.000Z | 2022-03-23T15:43:58.000Z | deps/libgeos/geos/src/algorithm/LineIntersector.cpp | khrushjing/node-gdal-async | 6546b0c8690f2db677d5385b40b407523503b314 | [
"Apache-2.0"
] | 8 | 2021-05-14T19:26:37.000Z | 2022-03-21T13:44:42.000Z | /**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2005-2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify it under
* th... | 29.038405 | 125 | 0.567323 | [
"geometry"
] |
155422ffb88519b32501e28aa0b3426dff3ead8a | 695 | cpp | C++ | C++/unique-letter-string.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/unique-letter-string.cpp | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/unique-letter-string.cpp | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(n)
// Space: O(1)
class Solution {
public:
int uniqueLetterString(string S) {
static const int M = 1e9 + 7;
int result = 0;
vector<vector<int>> index(26, vector<int>(2, -1));
for (int i = 0; i < S.length(); ++i) {
int c = S[i] - 'A';
result = (res... | 28.958333 | 64 | 0.385612 | [
"vector"
] |
15562d4df3f69416c3a7ba0c2e5affe6e6d1ce70 | 2,826 | cpp | C++ | pelin/pelin.cpp | wowcube/wasm | 438c0b4a38a7754dd349684c0305d61f0e6bf01f | [
"MIT"
] | 1 | 2020-11-05T21:25:41.000Z | 2020-11-05T21:25:41.000Z | pelin/pelin.cpp | wowcube/wasm | 438c0b4a38a7754dd349684c0305d61f0e6bf01f | [
"MIT"
] | 4 | 2021-01-22T16:19:27.000Z | 2021-02-11T16:58:10.000Z | pelin/pelin.cpp | wowcube/wasm | 438c0b4a38a7754dd349684c0305d61f0e6bf01f | [
"MIT"
] | 3 | 2021-02-12T20:14:33.000Z | 2021-04-01T03:16:06.000Z | #include "cube_api.h"
#include <cstdio>
#include <string>
#include <cmath>
#include "PerlinNoise.h"
class CEventLoopEx : public CEventLoop
{
uint8_t m_cid = 0;
Get_TRBL_1_0 m_trbl;
double m_cache[240 * 240] = {};
protected:
bool OnTick(uint32_t time) override
{
for (int display = 0; disp... | 27.980198 | 111 | 0.54034 | [
"object",
"vector"
] |
1556fd4d40d1c89e42c20ac30407caaea64558b2 | 1,157 | cc | C++ | RecoLocalCalo/HcalRecAlgos/src/PedestalSub.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | RecoLocalCalo/HcalRecAlgos/src/PedestalSub.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | RecoLocalCalo/HcalRecAlgos/src/PedestalSub.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cmath>
#include <climits>
#include "RecoLocalCalo/HcalRecAlgos/interface/PedestalSub.h"
using namespace std;
PedestalSub::PedestalSub() : fThreshold(2.7),fQuantile(0.0),fCondition(0){
}
PedestalSub::~PedestalSub() {
}
void PedestalSub::init(int runCond=0, float threshold=0.0, float qu... | 25.711111 | 153 | 0.695765 | [
"vector"
] |
15611da6af4e81025ddd92e3622c6fcc0e0d03d0 | 6,446 | cpp | C++ | module-utils/bootconfig/src/bootconfig.cpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-utils/bootconfig/src/bootconfig.cpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-utils/bootconfig/src/bootconfig.cpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include <boot/bootconfig.hpp>
#include <boot/bootconstants.hpp>
#include <gsl/util>
#include <limits.h>
#include <purefs/filesystem_paths.hpp>
#include <product/version.hpp>
#include ... | 37.045977 | 118 | 0.546385 | [
"object"
] |
d08485b447fecfbac0eeee9da1bbd1197f8b3a82 | 20,844 | cpp | C++ | test/graph_partition.cpp | bergtholdt/ngraph | 55ca8bb15488ac7a567bb420ca32fcee25e60fe6 | [
"Apache-2.0"
] | null | null | null | test/graph_partition.cpp | bergtholdt/ngraph | 55ca8bb15488ac7a567bb420ca32fcee25e60fe6 | [
"Apache-2.0"
] | null | null | null | test/graph_partition.cpp | bergtholdt/ngraph | 55ca8bb15488ac7a567bb420ca32fcee25e60fe6 | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2018 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://w... | 39.328302 | 100 | 0.60521 | [
"shape",
"vector"
] |
d0886fa51bec961d094afd1d20f536119ba2d8ed | 2,968 | cpp | C++ | Matlab/source/bipl_sdnn_train.cpp | BIPL-HORIE/BIPL-SDNN-LIB-BETA | fb7aebf863f264c679ffaf477b3cd79622c59a72 | [
"BSD-3-Clause"
] | null | null | null | Matlab/source/bipl_sdnn_train.cpp | BIPL-HORIE/BIPL-SDNN-LIB-BETA | fb7aebf863f264c679ffaf477b3cd79622c59a72 | [
"BSD-3-Clause"
] | null | null | null | Matlab/source/bipl_sdnn_train.cpp | BIPL-HORIE/BIPL-SDNN-LIB-BETA | fb7aebf863f264c679ffaf477b3cd79622c59a72 | [
"BSD-3-Clause"
] | null | null | null | #include "mex.h"
#include "BIPL_LIB_SDNN.h"
#pragma comment(lib,"BIPL.SDNN.lib")
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
void sdnnTrain(const std::string &setting_filename,mwSize input_number, double *train_sample, double *train_target, mwSize train_n, const std::string &save_filena... | 29.68 | 165 | 0.618598 | [
"vector"
] |
d0894aa229519a48a430d6e59609686892cee636 | 1,233 | cpp | C++ | C++/Array/80. Remove Duplicates from Sorted Array II.cpp | iyybpatrick/LeetCode | 588171ee7de44383ea2b37d0c054fd0303288572 | [
"MIT"
] | 3 | 2017-02-13T16:06:23.000Z | 2017-09-02T18:05:29.000Z | C++/Array/80. Remove Duplicates from Sorted Array II.cpp | iyybpatrick/LeetCode | 588171ee7de44383ea2b37d0c054fd0303288572 | [
"MIT"
] | null | null | null | C++/Array/80. Remove Duplicates from Sorted Array II.cpp | iyybpatrick/LeetCode | 588171ee7de44383ea2b37d0c054fd0303288572 | [
"MIT"
] | 1 | 2022-01-24T06:27:07.000Z | 2022-01-24T06:27:07.000Z | //
// 80. Remove Duplicates from Sorted Array II.cpp
// leetcode
//
// Created by Yuebin Yang on 2017/2/7.
// Copyright © 2017年 yuebin. All rights reserved.
//
// Question:
//What if duplicates are allowed at most twice?
//
//For example,
//Given sorted array nums = [1,1,1,2,2,3],
... | 22.418182 | 166 | 0.509327 | [
"vector"
] |
d08993a448adcda214a3b8d6e4996158080cb6ce | 6,191 | cpp | C++ | src/talker.cpp | Prat33k-dev/beginner_tutorials | 329117874485d148f1baa2d564e753261571b793 | [
"MIT"
] | null | null | null | src/talker.cpp | Prat33k-dev/beginner_tutorials | 329117874485d148f1baa2d564e753261571b793 | [
"MIT"
] | null | null | null | src/talker.cpp | Prat33k-dev/beginner_tutorials | 329117874485d148f1baa2d564e753261571b793 | [
"MIT"
] | null | null | null | /**
* MIT License
*
* Copyright (c) 2021 Pratik Bhujbal
*
* 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... | 38.453416 | 86 | 0.702794 | [
"object",
"transform"
] |
d092c16cf0095e8fd329a1e388e952ce0c31dc2a | 6,806 | cpp | C++ | Classes/Scenes/Demo2Scene.cpp | HoangTrongMinhDuc/JMOK-Game | bd06a8dc166805de0709c61b4acdfcd89b9b3ff8 | [
"MIT"
] | 1 | 2019-07-11T08:06:06.000Z | 2019-07-11T08:06:06.000Z | Classes/Scenes/Demo2Scene.cpp | HoangTrongMinhDuc/JOMK-Game | bd06a8dc166805de0709c61b4acdfcd89b9b3ff8 | [
"MIT"
] | null | null | null | Classes/Scenes/Demo2Scene.cpp | HoangTrongMinhDuc/JOMK-Game | bd06a8dc166805de0709c61b4acdfcd89b9b3ff8 | [
"MIT"
] | 1 | 2021-09-13T12:00:12.000Z | 2021-09-13T12:00:12.000Z | #include "Scenes\Demo2Scene.h"
#include "ui\UIButton.h"
#include"Scenes\SettingOverlay.h"
#include "Character\Items\Key.h"
#define SCALE_RATIO 32.0
Scene* Demo2Scene::createScene()
{
auto scene = Scene::create();
#if SHOW_PHYSICS
#endif
// 'layer' is an autorelease object
GameObjectManager::getInstance()->getGa... | 28.476987 | 105 | 0.739348 | [
"object",
"shape",
"transform"
] |
d0a0149a466ad712215faa4ea1a1ca11a14b77c2 | 1,059 | cc | C++ | prac-cpp/strings_0.cc | benjaminchang23/jackson-street-problems | 99f4f254dc43e57462657207131ae94882ae54f9 | [
"MIT"
] | null | null | null | prac-cpp/strings_0.cc | benjaminchang23/jackson-street-problems | 99f4f254dc43e57462657207131ae94882ae54f9 | [
"MIT"
] | null | null | null | prac-cpp/strings_0.cc | benjaminchang23/jackson-street-problems | 99f4f254dc43e57462657207131ae94882ae54f9 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <string>
int main()
{
std::string sanatized_file_name = "---adf--[]as * df-k----";
const std::string unallowed = " /\\*?<>:;=[]!@|.";
while (sanatized_file_name.front() == '-')
{
sanatized_file_name.erase(sanatized_file_name.begin());
}
... | 27.153846 | 103 | 0.594901 | [
"transform"
] |
d0a2075ebf13487bdc7a669f952bc745fc163859 | 46,911 | hpp | C++ | SarvLibrary/ErrorCorrection/LoRDEC/thirdparty/gatb-core/doc/doxygen/src/snippetspage.hpp | cwright7101/llvm_sarvavid | 7567d617a7be78fecfde71ab04ebd8e9506a64e4 | [
"MIT"
] | null | null | null | SarvLibrary/ErrorCorrection/LoRDEC/thirdparty/gatb-core/doc/doxygen/src/snippetspage.hpp | cwright7101/llvm_sarvavid | 7567d617a7be78fecfde71ab04ebd8e9506a64e4 | [
"MIT"
] | null | null | null | SarvLibrary/ErrorCorrection/LoRDEC/thirdparty/gatb-core/doc/doxygen/src/snippetspage.hpp | cwright7101/llvm_sarvavid | 7567d617a7be78fecfde71ab04ebd8e9506a64e4 | [
"MIT"
] | null | null | null | /*****************************************************************************
* GATB : Genome Assembly Tool Box
* Copyright (C) 2014 R.Chikhi, G.Rizk, E.Drezen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* publi... | 42.919488 | 116 | 0.596534 | [
"object",
"model",
"solid"
] |
d0a6bebaa1d6d8ca5984ad1aac997e45a76ceeef | 5,788 | cpp | C++ | src/online/VCRaceDetectorTest.cpp | zhanglu623/EventRacer-WebKit | 0be75fef811657fd5fceeca20c5777e9447e12b2 | [
"Apache-2.0"
] | 6 | 2018-11-06T00:17:42.000Z | 2021-01-23T20:57:49.000Z | src/online/VCRaceDetectorTest.cpp | sema/EventRacer | 1fcd5899f57e569743d5cca9bc1f27dfc6e27d71 | [
"Apache-2.0"
] | null | null | null | src/online/VCRaceDetectorTest.cpp | sema/EventRacer | 1fcd5899f57e569743d5cca9bc1f27dfc6e27d71 | [
"Apache-2.0"
] | 1 | 2021-03-08T15:14:29.000Z | 2021-03-08T15:14:29.000Z | /*
Copyright 2013 Software Reliability Lab, ETH Zurich
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | 27.826923 | 125 | 0.687975 | [
"vector"
] |
d0aa252bac5e457b407898c589bdf8cb15aca93b | 1,504 | cpp | C++ | projects/view3d/render/scene_view.cpp | psryland/rylogic_code | f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b | [
"CNRI-Python"
] | 2 | 2020-11-11T16:19:04.000Z | 2021-01-19T01:53:29.000Z | projects/view3d/render/scene_view.cpp | psryland/rylogic_code | f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b | [
"CNRI-Python"
] | 1 | 2020-07-27T09:00:21.000Z | 2020-07-27T10:58:10.000Z | projects/view3d/render/scene_view.cpp | psryland/rylogic_code | f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b | [
"CNRI-Python"
] | 1 | 2021-04-04T01:39:55.000Z | 2021-04-04T01:39:55.000Z | //*********************************************
// Renderer
// Copyright (c) Rylogic Ltd 2012
//*********************************************
#include "pr/view3d/forward.h"
#include "pr/view3d/render/scene_view.h"
namespace pr::rdr
{
// Construct scene views
SceneView::SceneView()
:pr::Camera()
,m_shadow_zfar(1... | 37.6 | 126 | 0.672207 | [
"render"
] |
d0aa416c4ed5e46507f5146f091ae4ddb898069e | 4,063 | hpp | C++ | src/vlCore/Plane.hpp | Christophe-ABEL/VisualizationLibrary | 936fe9e5047970b23d97ff0088725e9016b470ee | [
"BSD-2-Clause"
] | 281 | 2016-04-16T14:11:04.000Z | 2022-03-24T14:48:52.000Z | src/vlCore/Plane.hpp | Christophe-ABEL/VisualizationLibrary | 936fe9e5047970b23d97ff0088725e9016b470ee | [
"BSD-2-Clause"
] | 91 | 2016-04-20T19:55:45.000Z | 2022-01-04T02:59:33.000Z | src/vlCore/Plane.hpp | Christophe-ABEL/VisualizationLibrary | 936fe9e5047970b23d97ff0088725e9016b470ee | [
"BSD-2-Clause"
] | 83 | 2016-04-26T01:28:40.000Z | 2022-03-21T13:23:55.000Z | /**************************************************************************************/
/* */
/* Visualization Library */
/* http://visualizationlibrary.org ... | 45.651685 | 89 | 0.452375 | [
"object",
"transform"
] |
d0ab58181d3e5a0e97f97d305d4c8886a8eefffa | 7,171 | cxx | C++ | Src/Decimation/qslim-2.1/mixkit/src/MxFitFrame-2.cxx | AspdenGroup/PeleAnalysis_Aspden | 4259efa97a65a646a4e1bc3493cd9dae1e7024c5 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/Decimation/qslim-2.1/mixkit/src/MxFitFrame-2.cxx | AspdenGroup/PeleAnalysis_Aspden | 4259efa97a65a646a4e1bc3493cd9dae1e7024c5 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/Decimation/qslim-2.1/mixkit/src/MxFitFrame-2.cxx | AspdenGroup/PeleAnalysis_Aspden | 4259efa97a65a646a4e1bc3493cd9dae1e7024c5 | [
"BSD-3-Clause-LBNL"
] | null | null | null | /************************************************************************
Frame-to-frame distance functions.
Since the code for computing frame-to-frame distances is reasonably
large, and not always necessary, I've placed it here in a separate file.
Copyright (C) 1998 Michael Garland. See "COPYING.txt" for ... | 28.011719 | 78 | 0.49993 | [
"vector"
] |
d0ab9208f270e1a27ffbb8b0a0c505eacc001192 | 3,364 | hpp | C++ | libs/TwoDLib/Triangle.hpp | dekamps/miind | 4b321c62c2bd27eb0d5d8336a16a9e840ba63856 | [
"MIT"
] | 13 | 2015-09-15T17:28:25.000Z | 2022-03-22T20:26:47.000Z | libs/TwoDLib/Triangle.hpp | dekamps/miind | 4b321c62c2bd27eb0d5d8336a16a9e840ba63856 | [
"MIT"
] | 41 | 2015-08-25T07:50:55.000Z | 2022-03-21T16:20:37.000Z | libs/TwoDLib/Triangle.hpp | dekamps/miind | 4b321c62c2bd27eb0d5d8336a16a9e840ba63856 | [
"MIT"
] | 9 | 2015-09-14T20:52:07.000Z | 2022-03-08T12:18:18.000Z | // Copyright (c) 2005 - 2015 Marc de Kamps
// 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 condition... | 36.565217 | 162 | 0.724435 | [
"vector"
] |
d0bed9c3b88ccca6363dc6d3795da771243f2f3b | 1,917 | hpp | C++ | libiop/relations/sparse_matrix.hpp | guipublic/libiop | 01dc1b567bc5058cbe54d12760aa7a35e27cfba7 | [
"MIT"
] | null | null | null | libiop/relations/sparse_matrix.hpp | guipublic/libiop | 01dc1b567bc5058cbe54d12760aa7a35e27cfba7 | [
"MIT"
] | null | null | null | libiop/relations/sparse_matrix.hpp | guipublic/libiop | 01dc1b567bc5058cbe54d12760aa7a35e27cfba7 | [
"MIT"
] | null | null | null | /** @file
*****************************************************************************
Interfaces for sparse matrices together with adapters for R1CS A/B/C matrices.
*****************************************************************************
* @author This file is part of libiop (see AUTHORS)
* @copyright ... | 30.919355 | 82 | 0.671362 | [
"vector"
] |
d0d3b981ffcb65956098f82358d4f64eb5df8e45 | 1,559 | cc | C++ | uva/chapter_4/452.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | 1 | 2019-05-12T23:41:00.000Z | 2019-05-12T23:41:00.000Z | uva/chapter_4/452.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | uva/chapter_4/452.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | #include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <queue>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cst... | 19.987179 | 47 | 0.527261 | [
"vector"
] |
d0dad78b13b3924b70f3f0be7195a03573915afe | 1,350 | cpp | C++ | Models/Chapter5_MBT/GearShiftingTestComponent/GSC_Test_Animation/MainGearShiftingTestComponent.cpp | PacktPublishing/Agile-Model-Based-Systems-Engineering-Cookbook | 459c90a7b5af0aa9c16f517fd6caafc39d83f545 | [
"MIT"
] | 9 | 2021-04-08T02:13:26.000Z | 2021-12-17T02:53:39.000Z | Models/Chapter5_MBT/GearShiftingTestComponent/GSC_Test_Animation/MainGearShiftingTestComponent.cpp | PacktPublishing/Agile-Model-Based-Systems-Engineering-Cookbook | 459c90a7b5af0aa9c16f517fd6caafc39d83f545 | [
"MIT"
] | null | null | null | Models/Chapter5_MBT/GearShiftingTestComponent/GSC_Test_Animation/MainGearShiftingTestComponent.cpp | PacktPublishing/Agile-Model-Based-Systems-Engineering-Cookbook | 459c90a7b5af0aa9c16f517fd6caafc39d83f545 | [
"MIT"
] | 3 | 2021-04-29T15:15:17.000Z | 2022-01-28T09:44:55.000Z | /********************************************************************
Rhapsody : 9.0
Login : Bruce
Component : GearShiftingTestComponent
Configuration : GSC_Test_Animation
Model Element : GSC_Test_Animation
//! Generated Date : Sat, 28, Nov 2020
File Path : GearShiftingTestComponent/GSC_Test_Animation/MainG... | 32.142857 | 91 | 0.548148 | [
"model"
] |
d0dd44cd42a964e20d928ce739af65ea0a59a189 | 5,728 | cc | C++ | src/indexing/main.cc | rainerdun/recomm_engine | 8433150fc25d4af83253250b2c4cd18a269e796c | [
"MIT"
] | 7 | 2016-01-14T15:53:59.000Z | 2021-08-25T03:47:10.000Z | src/indexing/main.cc | BaiGang/recomm_engine | 8433150fc25d4af83253250b2c4cd18a269e796c | [
"MIT"
] | null | null | null | src/indexing/main.cc | BaiGang/recomm_engine | 8433150fc25d4af83253250b2c4cd18a269e796c | [
"MIT"
] | 9 | 2015-04-14T10:18:46.000Z | 2018-12-20T08:18:21.000Z | // Copyright 2013 Sina Inc. All rights reserved.
// Author: yanbing3@staff.sina.com.cn (Yan-Bing Bai)
// Only for testing
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <boost/shared_ptr.hpp>
#include <boost/unordered_set.hpp>
#include <string>
#include <vector>
#include <map>
#include <iostream> ... | 27.671498 | 78 | 0.597242 | [
"vector"
] |
d0e2a3e1984874a5f719add61100efdcee5371b2 | 23,236 | cpp | C++ | Source/Manager/Resource/ResourceType/MeshResource.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | 2 | 2020-01-09T07:48:24.000Z | 2020-01-09T07:48:26.000Z | Source/Manager/Resource/ResourceType/MeshResource.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | null | null | null | Source/Manager/Resource/ResourceType/MeshResource.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | null | null | null | #include "MeshResource.hpp"
#include <fstream>
#include <sstream>
#include "../../../System/Graphics/DataType/MeshInfo.hpp"
#include "../../../System/Math/Algebra/Vector3.hpp"
#include "../../../System/Math/Algebra/Vector2.hpp"
#include "../../../System/Math/Primitive/ConvexHull2D/Triangle.hpp"
namespace Engine5
{
... | 36.941176 | 122 | 0.439577 | [
"mesh",
"vector",
"model"
] |
d0e3a9c0b621b9a555bd726ee54282c339a4c1bd | 71,030 | cpp | C++ | tools/DeCoSTAR_01042020/source/ReconciledTree.cpp | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | 2 | 2021-08-24T16:03:30.000Z | 2022-03-18T14:52:43.000Z | tools/DeCoSTAR_01042020/source/ReconciledTree.cpp | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | null | null | null | tools/DeCoSTAR_01042020/source/ReconciledTree.cpp | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | null | null | null | /*
Copyright or © or Copr. CNRS
This software is a computer program whose purpose is to estimate
phylogenies and evolutionary parameters from a dataset according to
the maximum likelihood principle.
This software is governed by the CeCILL license under French law and
abiding by the rules of distribution of free soft... | 26.008788 | 209 | 0.685218 | [
"vector"
] |
d0eb7e235d90691464d3f71bf51fb15295a57ebe | 184 | cpp | C++ | benchmarks/basic_arithmetic/Serial.cpp | irfanhamid/khyber | b6decef55ea199f884f2d77e049e979f1c7ba8bf | [
"Apache-2.0"
] | 1 | 2018-01-06T20:44:24.000Z | 2018-01-06T20:44:24.000Z | benchmarks/basic_arithmetic/Serial.cpp | irfanhamid/khyber | b6decef55ea199f884f2d77e049e979f1c7ba8bf | [
"Apache-2.0"
] | null | null | null | benchmarks/basic_arithmetic/Serial.cpp | irfanhamid/khyber | b6decef55ea199f884f2d77e049e979f1c7ba8bf | [
"Apache-2.0"
] | null | null | null | #include "Serial.hpp"
using namespace std;
void RunSerialImpl(vector<float>& dst, const vector<float>& src)
{
for ( auto i = 0; i < dst.size(); ++i ) {
dst[i] += src[i];
}
}
| 16.727273 | 64 | 0.592391 | [
"vector"
] |
d0f9778d46bec71c00acc8519574703ce7b440e1 | 9,420 | cpp | C++ | apps/lasblock.cpp | sebastic/libLAS | 59709b36d80bf48c5463c009e9c5ff251f398e33 | [
"BSD-3-Clause"
] | 1 | 2019-02-13T14:41:23.000Z | 2019-02-13T14:41:23.000Z | apps/lasblock.cpp | sebastic/libLAS | 59709b36d80bf48c5463c009e9c5ff251f398e33 | [
"BSD-3-Clause"
] | 1 | 2018-03-13T07:12:06.000Z | 2018-03-13T07:12:06.000Z | apps/lasblock.cpp | sebastic/libLAS | 59709b36d80bf48c5463c009e9c5ff251f398e33 | [
"BSD-3-Clause"
] | 2 | 2021-05-17T02:09:16.000Z | 2021-06-21T12:15:52.000Z | // $Id$
//
// lasblock generates block output for las2oci to store lidar data in OPC tables
//
//
// (C) Copyright Howard Butler 2010, hobu.inc@gmail.com
//
// Distributed under the BSD License
// (See accompanying file LICENSE.txt or copy at
// http://www.opensource.org/licenses/bsd-license.php)
//
#include <liblas/li... | 28.895706 | 170 | 0.497346 | [
"vector"
] |
d0fe82c041c683ad7da21ac95ccebdb17079848b | 15,642 | cpp | C++ | c++/src/objmgr/tse_split_info.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 31 | 2016-12-09T04:56:59.000Z | 2021-12-31T17:19:10.000Z | c++/src/objmgr/tse_split_info.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 6 | 2017-03-10T17:25:13.000Z | 2021-09-22T15:49:49.000Z | c++/src/objmgr/tse_split_info.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 20 | 2015-01-04T02:15:17.000Z | 2021-12-03T02:31:43.000Z | /* $Id: tse_split_info.cpp 390318 2013-02-26 21:04:57Z vasilche $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Wo... | 27.783304 | 79 | 0.63029 | [
"vector"
] |
d0fe92edab62e13a6acb9195683993e3aeff9196 | 3,310 | cpp | C++ | SU2-Quantum/Common/src/geometry/primal_grid/CHexahedron.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/Common/src/geometry/primal_grid/CHexahedron.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/Common/src/geometry/primal_grid/CHexahedron.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | 1 | 2021-12-03T06:40:08.000Z | 2021-12-03T06:40:08.000Z | /*!
* \file CHexahedron.cpp
* \brief Main classes for defining the primal grid elements
* \author F. Palacios
* \version 7.0.6 "Blackbird"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 Foundation
* (http://su2foundation.org)
*
* Copyright 2012-2020, SU2 Contr... | 34.842105 | 117 | 0.697281 | [
"geometry"
] |
cb9a07b64a09cc47d18bd2e928227de474ff68ad | 1,418 | cpp | C++ | src/measurement.cpp | zzchencn/SpotifyPuzzles | d0304da643935cc4b4952346b4ac6755515e1d8a | [
"Apache-2.0"
] | null | null | null | src/measurement.cpp | zzchencn/SpotifyPuzzles | d0304da643935cc4b4952346b4ac6755515e1d8a | [
"Apache-2.0"
] | null | null | null | src/measurement.cpp | zzchencn/SpotifyPuzzles | d0304da643935cc4b4952346b4ac6755515e1d8a | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <limits>
#include <cstrin... | 22.870968 | 83 | 0.594499 | [
"vector"
] |
cb9a2f23013c4adc684bc52d0b0de18dde4b4ba4 | 1,753 | cpp | C++ | Solution/Motor2D/j1Scene.cpp | rleonborras/DialogSystem | 16a0c4db516faf6d6dfa4985e49552b9738371a3 | [
"MIT"
] | null | null | null | Solution/Motor2D/j1Scene.cpp | rleonborras/DialogSystem | 16a0c4db516faf6d6dfa4985e49552b9738371a3 | [
"MIT"
] | null | null | null | Solution/Motor2D/j1Scene.cpp | rleonborras/DialogSystem | 16a0c4db516faf6d6dfa4985e49552b9738371a3 | [
"MIT"
] | null | null | null | #include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Input.h"
#include "j1Textures.h"
#include "j1Render.h"
#include "j1Window.h"
#include "j1Map.h"
#include "j1Fonts.h"
#include "j1Scene.h"
#include "DialogSystem.h"
j1Scene::j1Scene() : j1Module()
{
name.assign("scene");
}
// Destructor
j1Scene::~... | 19.054348 | 153 | 0.700513 | [
"render"
] |
cb9b834b5eb085147f28544318565d49c64bfaa7 | 4,592 | cpp | C++ | sim/sim.cpp | imichaelmiers/libforwardsec | e552e4a01d1776c9b61414e5f7a6011a68761ad2 | [
"BSD-2-Clause"
] | 56 | 2015-05-19T00:14:17.000Z | 2022-01-15T08:13:13.000Z | sim/sim.cpp | imichaelmiers/libforwardsec | e552e4a01d1776c9b61414e5f7a6011a68761ad2 | [
"BSD-2-Clause"
] | 1 | 2016-04-15T14:04:40.000Z | 2016-04-19T18:46:37.000Z | sim/sim.cpp | imichaelmiers/libforwardsec | e552e4a01d1776c9b61414e5f7a6011a68761ad2 | [
"BSD-2-Clause"
] | 6 | 2015-05-19T13:52:21.000Z | 2019-03-19T06:42:02.000Z | #include <iostream>
#include <vector>
#include <tuple>
#include <cereal/archives/portable_binary.hpp>
#include <cereal/archives/binary.hpp>
#include <cereal/archives/json.hpp>
#include <algorithm> // std::max
#include <iostream>
#include <fstream>
#include "locale"
#include "gmpfse.h"
#include <fstream>
#include "s... | 27.830303 | 110 | 0.611716 | [
"vector"
] |
cba00cf0a51df5f2b87d0c8932c3d68c3009101d | 2,967 | cpp | C++ | tsp.cpp | pantadeusz/simple-tsp | 696b7d396f516ba130250ba8d0d2568e1156516d | [
"MIT"
] | null | null | null | tsp.cpp | pantadeusz/simple-tsp | 696b7d396f516ba130250ba8d0d2568e1156516d | [
"MIT"
] | null | null | null | tsp.cpp | pantadeusz/simple-tsp | 696b7d396f516ba130250ba8d0d2568e1156516d | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#include <numeric>
#include <array>
#include <cmath>
namespace alo_tsp {
/**
* solucion contains vector of id-s of vertices to visit
* */
using solution_t = std::vector<int>;
/**
* coordinate
* */
class coordinate_t : public std::array<double,2> {};
using... | 24.121951 | 120 | 0.625548 | [
"vector"
] |
cba0e9dc3276b96194ad55d631ba2613563242f2 | 38,602 | cpp | C++ | msdf-atlas-gen/main.cpp | smolck/msdf-atlas-gen | 0f8d503803654d5c7c4ea2d58d4d7edda8705611 | [
"MIT"
] | null | null | null | msdf-atlas-gen/main.cpp | smolck/msdf-atlas-gen | 0f8d503803654d5c7c4ea2d58d4d7edda8705611 | [
"MIT"
] | null | null | null | msdf-atlas-gen/main.cpp | smolck/msdf-atlas-gen | 0f8d503803654d5c7c4ea2d58d4d7edda8705611 | [
"MIT"
] | null | null | null |
/*
* MULTI-CHANNEL SIGNED DISTANCE FIELD ATLAS GENERATOR v1.2 (2021-05-29) -
* standalone console program
* --------------------------------------------------------------------------------------------------
* A utility by Viktor Chlumsky, (c) 2020 - 2021
*
*/
#define _USE_MATH_DEFINES
#include <algorithm>
#incl... | 35.775718 | 137 | 0.625071 | [
"geometry",
"shape",
"vector"
] |
cba13d5dff33009fe5991596aea18b898d7bef42 | 1,111 | cpp | C++ | 202204/0422_spiralOrder.cpp | talentwill/CardCoding | 1fcd20f3a76cec85845552a8917847971d9aeeb1 | [
"MIT"
] | null | null | null | 202204/0422_spiralOrder.cpp | talentwill/CardCoding | 1fcd20f3a76cec85845552a8917847971d9aeeb1 | [
"MIT"
] | null | null | null | 202204/0422_spiralOrder.cpp | talentwill/CardCoding | 1fcd20f3a76cec85845552a8917847971d9aeeb1 | [
"MIT"
] | 1 | 2022-03-10T05:28:19.000Z | 2022-03-10T05:28:19.000Z | class Solution
{
public:
vector<int> spiralOrder(vector<vector<int>>& matrix) {
if (matrix.empty() or matrix[0].empty()) {
return {};
}
vector<int> ans;
int top = 0;
int bottom = matrix.size() - 1;
int left = 0;
int right = matrix[0].size() - 1;
... | 26.452381 | 59 | 0.412241 | [
"vector"
] |
cba5b8ba1625db3d7df854769c53b104d1d34b45 | 7,807 | cc | C++ | IO/rings.cc | jwillemsen/sidecar | 941d9f3b84d05ca405df1444d4d9fd0bde03887f | [
"MIT"
] | null | null | null | IO/rings.cc | jwillemsen/sidecar | 941d9f3b84d05ca405df1444d4d9fd0bde03887f | [
"MIT"
] | null | null | null | IO/rings.cc | jwillemsen/sidecar | 941d9f3b84d05ca405df1444d4d9fd0bde03887f | [
"MIT"
] | null | null | null | #include <cmath>
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <string>
#include "ace/FILE_Connector.h"
#include "IO/MessageManager.h"
#include "IO/Writers.h"
#include "Messages/RadarConfig.h"
#include "Messages/Video.h"
#include "Utils/CmdLineArgs.h"
#include "Utils/Utils.h"
using namespace Si... | 40.242268 | 117 | 0.5399 | [
"object"
] |
cba652b16d03af7d68fbdaa3805590751ce6f6ad | 13,158 | cc | C++ | src/scheduler.cc | sunnyxhuang/weaver | 7c27062e190f3a49b3be3f591233c549871747f0 | [
"Apache-2.0"
] | null | null | null | src/scheduler.cc | sunnyxhuang/weaver | 7c27062e190f3a49b3be3f591233c549871747f0 | [
"Apache-2.0"
] | null | null | null | src/scheduler.cc | sunnyxhuang/weaver | 7c27062e190f3a49b3be3f591233c549871747f0 | [
"Apache-2.0"
] | null | null | null | //
// scheduler.cc
// Ximulator
//
// Created by Xin Sunny Huang on 9/21/14.
// Copyright (c) 2014 Xin Sunny Huang. All rights reserved.
//
#include <iomanip>
#include <cfloat>
#include <sys/time.h>
#include <string.h>
#include "coflow.h"
#include "events.h"
#include "global.h"
#include "scheduler.h"
#include "u... | 31.328571 | 81 | 0.615975 | [
"vector"
] |
cbade2234dce65143ba1939c9945c85de88c9944 | 1,798 | cpp | C++ | client/client.cpp | utevo/Multiprocess-filesystem | 38ce2c53bd18a8946c1d01c071e5d1c0b6c1f348 | [
"MIT"
] | null | null | null | client/client.cpp | utevo/Multiprocess-filesystem | 38ce2c53bd18a8946c1d01c071e5d1c0b6c1f348 | [
"MIT"
] | null | null | null | client/client.cpp | utevo/Multiprocess-filesystem | 38ce2c53bd18a8946c1d01c071e5d1c0b6c1f348 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include "../libraries/client/lib.hpp"
#include "../libraries/core/utils.hpp"
// void printInode(const Inode&);
int main() {
MFSClient client;
c... | 32.107143 | 82 | 0.611791 | [
"vector"
] |
cbb1bf48270b5c37c1acd1b4eef289622254f9f8 | 1,147 | cpp | C++ | Engine/src/Object/Object.cpp | vimontgames/supervimontbros | d589e42628e549273878d3db1298dd8c7525036a | [
"MIT"
] | 1 | 2021-01-21T19:37:57.000Z | 2021-01-21T19:37:57.000Z | Engine/src/Object/Object.cpp | vimontgames/supervimontbros | d589e42628e549273878d3db1298dd8c7525036a | [
"MIT"
] | null | null | null | Engine/src/Object/Object.cpp | vimontgames/supervimontbros | d589e42628e549273878d3db1298dd8c7525036a | [
"MIT"
] | null | null | null | #include "Precomp.h"
#include "Object.h"
using namespace sf;
#if 0
#define DBG_REFCOUNT(fmt, ...) debugPrint(fmt, __VA_ARGS__)
#else
#define DBG_REFCOUNT(fmt, ...)
#endif
uint Object::s_count = 0;
//--------------------------------------------------------------------------
Object::Object(const sf::String & _name) ... | 26.068182 | 131 | 0.489102 | [
"object"
] |
cbb3646c3e855e66c4b4866a47809f2717592405 | 1,975 | cpp | C++ | Tree/BinaryTreeInorderTraversal/BinaryTreeInorderTraversal.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | 2 | 2015-08-28T03:52:05.000Z | 2015-09-03T09:54:40.000Z | Tree/BinaryTreeInorderTraversal/BinaryTreeInorderTraversal.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | null | null | null | Tree/BinaryTreeInorderTraversal/BinaryTreeInorderTraversal.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | null | null | null | // Source : https://leetcode.com/problems/binary-tree-inorder-traversal/
// Author : Yijing Bai
// Date : 2016-01-03
/**********************************************************************************
*
* Given a binary tree, return the inorder traversal of its nodes' values.
*
* For example:
* Given binary tre... | 22.701149 | 87 | 0.484051 | [
"vector"
] |
cbb73ff982c73780203b6a527a67117ebe6f2964 | 5,720 | cpp | C++ | Server.cpp | evgezoh/SDLGame | 50cf2c600b3d5031f761220498704c945a1b5c44 | [
"MIT"
] | null | null | null | Server.cpp | evgezoh/SDLGame | 50cf2c600b3d5031f761220498704c945a1b5c44 | [
"MIT"
] | null | null | null | Server.cpp | evgezoh/SDLGame | 50cf2c600b3d5031f761220498704c945a1b5c44 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#include <iostream>
#pragma comment(lib, "ws2_32.lib")
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <sdkddkver.h>
#include <fstream>
#include <thread>
//#include <mutex>
#include <vector>
#include <string>
SOCKET Connect;
SOCKET *Connections;
SOCK... | 21.107011 | 153 | 0.593531 | [
"vector"
] |
cbc16826b95f11f31ac7ccafb5e8e1053c873400 | 2,568 | cpp | C++ | aws-cpp-sdk-glue/source/model/JoinColumn.cpp | Nexuscompute/aws-sdk-cpp | e7ef485e46e6962c9e084b8c9b104c1bfcceaf26 | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-glue/source/model/JoinColumn.cpp | Nexuscompute/aws-sdk-cpp | e7ef485e46e6962c9e084b8c9b104c1bfcceaf26 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-glue/source/model/JoinColumn.cpp | Nexuscompute/aws-sdk-cpp | e7ef485e46e6962c9e084b8c9b104c1bfcceaf26 | [
"Apache-2.0"
] | 1 | 2021-11-09T12:02:58.000Z | 2021-11-09T12:02:58.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/glue/model/JoinColumn.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Glu... | 27.031579 | 172 | 0.742601 | [
"vector",
"model"
] |
cbcf252219915ed9d865e254ca47a3f99f1ee840 | 2,195 | cpp | C++ | 701_c.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 701_c.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 701_c.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | //Does Not Work
// Created by Tanuj Jain
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define pb push_back
#define mp make_pair
typedef long long ll;
typedef pair<int,int> pii;
template<class T> using oset... | 18.601695 | 106 | 0.542597 | [
"vector"
] |
cbd50479c24e640687ab8df05ed550451052c655 | 2,419 | hpp | C++ | src/state.hpp | przemekBielak/HSM | df9397ab80d366a4524e3d708485d231741f62dc | [
"MIT"
] | null | null | null | src/state.hpp | przemekBielak/HSM | df9397ab80d366a4524e3d708485d231741f62dc | [
"MIT"
] | null | null | null | src/state.hpp | przemekBielak/HSM | df9397ab80d366a4524e3d708485d231741f62dc | [
"MIT"
] | null | null | null | /**
* @file state.hpp
* @author Przemyslaw Bielak (przemyslaw.bielak@protonmail.com)
* @brief Describes a single state in a state machine.
* @version 0.1
* @date 2019-02-01
*
* @copyright Copyright (c) 2019
*
*/
#ifndef STATE_H
#define STATE_H
#include <vector>
#include "state_cfg.hpp"
/** @brief Pointer ... | 23.715686 | 120 | 0.590327 | [
"object",
"vector"
] |
cbdc04b60bf2e588a6dfcd279e65a3252eb9bdce | 10,138 | cpp | C++ | src/data_reader.cpp | Loop3D/map2model_cpp | 9c280f386e656837570e755859ccc0f4b8163761 | [
"MIT"
] | null | null | null | src/data_reader.cpp | Loop3D/map2model_cpp | 9c280f386e656837570e755859ccc0f4b8163761 | [
"MIT"
] | null | null | null | src/data_reader.cpp | Loop3D/map2model_cpp | 9c280f386e656837570e755859ccc0f4b8163761 | [
"MIT"
] | null | null | null | /******************************************************************************
* A class for reading input data.
*
* Author: Vitaliy Ogarko, vogarko@gmail.com
*******************************************************************************/
#include <fstream>
#include <iostream>
#include "clipper.h"
#include "con... | 30.721212 | 90 | 0.613336 | [
"object",
"vector"
] |
cbe55f215e95088c3765e218a03234e1afec0a6b | 3,483 | cpp | C++ | src/RcppExports.cpp | tnagler/wdm-r | a6452c388addc415b47f920970a2de490728182d | [
"MIT"
] | 2 | 2018-06-24T15:18:56.000Z | 2022-03-29T10:50:39.000Z | src/RcppExports.cpp | tnagler/wdm-r | a6452c388addc415b47f920970a2de490728182d | [
"MIT"
] | null | null | null | src/RcppExports.cpp | tnagler/wdm-r | a6452c388addc415b47f920970a2de490728182d | [
"MIT"
] | null | null | null | // Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <Rcpp.h>
using namespace Rcpp;
#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(... | 49.757143 | 188 | 0.747344 | [
"vector"
] |
cbe64698551beca1c6a401721901b254a5645e77 | 32,408 | cpp | C++ | src/AsyncWebServerMaintainer.cpp | Suicyc1e/Sequoia | 7a31bde385673e5522373eb7a2ee33c4042c3b8d | [
"MIT"
] | null | null | null | src/AsyncWebServerMaintainer.cpp | Suicyc1e/Sequoia | 7a31bde385673e5522373eb7a2ee33c4042c3b8d | [
"MIT"
] | null | null | null | src/AsyncWebServerMaintainer.cpp | Suicyc1e/Sequoia | 7a31bde385673e5522373eb7a2ee33c4042c3b8d | [
"MIT"
] | null | null | null | #include <AsyncWebServerMaintainer.h>
#include <SmartDoorBell.h>
#include <SDCardMaintainer.h>
#include <SmartPlantCarer.h>
#include <SpeakerMaintainer.h>
#include <TesterOfTheFeatures.h>
#include <ClampMaintainer.h>
#include <ScalesMaintainer.h>
#include <SmartPetFeeder.h>
const char* UI_CONTROL_ELEMENT_ID = "outp... | 32.44044 | 158 | 0.662522 | [
"model"
] |
cbea19374d5896f6427ab3d089386c88f9f7a093 | 1,617 | cpp | C++ | dijkstra/bellman ford.cpp | vijayshankarrealdeal/Algorithms | 973a4ccbc9d0d49216ecddce40355fab1e6b8178 | [
"MIT"
] | 1 | 2021-03-22T07:41:14.000Z | 2021-03-22T07:41:14.000Z | dijkstra/bellman ford.cpp | vijayshankarrealdeal/Algorithms | 973a4ccbc9d0d49216ecddce40355fab1e6b8178 | [
"MIT"
] | null | null | null | dijkstra/bellman ford.cpp | vijayshankarrealdeal/Algorithms | 973a4ccbc9d0d49216ecddce40355fab1e6b8178 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <fstream>
using namespace std;
vector<int> x;
class Graph
{
public:
char i;
char f;
int w;
Graph(char i, char f, int w);
};
Graph::Graph(char i, char f, int w)
{
this->i = i;
this->f = f;
this->w = w;
}
int dist[128];
void printArr(int arr[])
{
... | 18.802326 | 57 | 0.422387 | [
"vector"
] |
cbee3ee0bdb27903cde214baa34edd597f167e7b | 574 | hpp | C++ | include/saci/tree/model/tree.hpp | ricardocosme/saci | 2a6a134f63b6e69fde452e0fe9bb5acfd149a6e4 | [
"BSL-1.0"
] | 1 | 2020-07-29T20:42:58.000Z | 2020-07-29T20:42:58.000Z | include/saci/tree/model/tree.hpp | ricardocosme/saci | 2a6a134f63b6e69fde452e0fe9bb5acfd149a6e4 | [
"BSL-1.0"
] | null | null | null | include/saci/tree/model/tree.hpp | ricardocosme/saci | 2a6a134f63b6e69fde452e0fe9bb5acfd149a6e4 | [
"BSL-1.0"
] | null | null | null |
// Copyright Ricardo Calheiros de Miranda Cosme 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include "saci/tree/model/branch.hpp"
#include "saci/tree/model/branch_impl.hpp"
#include "saci/tree/... | 31.888889 | 61 | 0.763066 | [
"model"
] |
cbf30aee2a077ebbedbc97e0f91565d0480299cb | 7,772 | cpp | C++ | benchmarks/benchmarks.cpp | appelmar/RcppThread | be8884b8e206b97ef151868b546f5730dfc09f49 | [
"MIT"
] | null | null | null | benchmarks/benchmarks.cpp | appelmar/RcppThread | be8884b8e206b97ef151868b546f5730dfc09f49 | [
"MIT"
] | null | null | null | benchmarks/benchmarks.cpp | appelmar/RcppThread | be8884b8e206b97ef151868b546f5730dfc09f49 | [
"MIT"
] | null | null | null | // [[Rcpp::plugins(cpp11)]]
// [[Rcpp::plugins(openmp)]]
// [[Rcpp::depends(RcppThread)]]
// [[Rcpp::depends(RcppParallel)]]
// [[Rcpp::depends(RcppEigen)]]
// [[Rcpp::depends(wdm)]]
#include <Eigen/Dense>
#include <wdm/eigen.hpp>
#include <Rcpp.h>
// #include <RcppParallel.h>
#include <RcppThread.h>
#include <omp.h>
... | 24.673016 | 81 | 0.508621 | [
"vector"
] |
cbff9cc866d27cdae7195676234a733d3c8ea473 | 2,175 | cc | C++ | numerics/functions/piecewise_linear.cc | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 1 | 2019-04-14T11:40:28.000Z | 2019-04-14T11:40:28.000Z | numerics/functions/piecewise_linear.cc | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 5 | 2018-04-18T13:54:29.000Z | 2019-08-22T20:04:17.000Z | numerics/functions/piecewise_linear.cc | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 1 | 2018-12-24T03:45:47.000Z | 2018-12-24T03:45:47.000Z | #include "numerics/functions/piecewise_linear.hh"
#include "logging/assert.hh"
namespace numerics {
IncreasingPiecewiseLinearFunction1d::IncreasingPiecewiseLinearFunction1d(
const std::vector<IncreasingPiecewiseLinearFunction1d::ControlPoint>& points) {
JASSERT_GE(points.size(), 2u, "Must have at least 2 point... | 36.864407 | 90 | 0.690115 | [
"vector"
] |
cbffc9d276105564020c48ae0254f3c4e5736dd0 | 2,863 | cpp | C++ | source/Player.cpp | daniel2643/Go-Fish | 9acca717d7d527aa250867fc45cae0ee48cf84f7 | [
"MIT"
] | null | null | null | source/Player.cpp | daniel2643/Go-Fish | 9acca717d7d527aa250867fc45cae0ee48cf84f7 | [
"MIT"
] | null | null | null | source/Player.cpp | daniel2643/Go-Fish | 9acca717d7d527aa250867fc45cae0ee48cf84f7 | [
"MIT"
] | null | null | null | //
// Player.cpp
// FIT1048-AA2-28306848
//
// Created by Daniel on 07/09/2017.
// Copyright © 2017 Daniel. All rights reserved.
//
#include "Player.h"
int Player::player_count = 0;
//Constructors
Player::Player(){
name = "Player" + to_string(player_count+1);
player_count++;
}
Player::Player(string ini... | 22.193798 | 192 | 0.559204 | [
"vector"
] |
0204cbb92ef86681163d5f08417b7903afc8d4c1 | 4,327 | cc | C++ | components/safe_browsing/db/v4_embedded_test_server_util.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | components/safe_browsing/db/v4_embedded_test_server_util.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | components/safe_browsing/db/v4_embedded_test_server_util.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 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 "components/safe_browsing/db/v4_embedded_test_server_util.h"
#include <memory>
#include <string>
#include <vector>
#include "base/base64.h"
#in... | 37.301724 | 80 | 0.742778 | [
"vector"
] |
0207a4a6ae0834c8f0a6d88401739575bf1d6978 | 26,086 | cpp | C++ | my_windows_test_exec/example_3.cpp | Chaojimengnan/my-windows | 85fc5c205cea0820c090ea2b46fee62c0bba552a | [
"MIT"
] | null | null | null | my_windows_test_exec/example_3.cpp | Chaojimengnan/my-windows | 85fc5c205cea0820c090ea2b46fee62c0bba552a | [
"MIT"
] | null | null | null | my_windows_test_exec/example_3.cpp | Chaojimengnan/my-windows | 85fc5c205cea0820c090ea2b46fee62c0bba552a | [
"MIT"
] | null | null | null | #include "example_3.h"
#include "stdafx.h"
DWORD WINAPI ThreadFunc(PVOID param)
{
std::tcout << _T("这是另一个线程,正在执行中~\n");
return 0;
}
void example_3()
{
/*auto thread_handle = CreateThread(NULL, 0, ThreadFunc, nullptr, CREATE_SUSPENDED, nullptr);
SetThreadPriority(thread_handle, THREAD_PRIORITY_IDLE);
Re... | 24.086796 | 163 | 0.614813 | [
"vector"
] |
0209c6435b094f43716f3f329466d78ab225ae9d | 8,012 | cpp | C++ | clove/src/measure_chain.cpp | msmania/procjack | a8e7a48208d776235c2808f5f60ff1bd754c1279 | [
"MIT"
] | 12 | 2017-09-26T01:27:55.000Z | 2022-03-27T12:13:09.000Z | clove/src/measure_chain.cpp | msmania/procjack | a8e7a48208d776235c2808f5f60ff1bd754c1279 | [
"MIT"
] | null | null | null | clove/src/measure_chain.cpp | msmania/procjack | a8e7a48208d776235c2808f5f60ff1bd754c1279 | [
"MIT"
] | 5 | 2019-12-12T06:19:30.000Z | 2022-03-27T10:53:43.000Z | #include <windows.h>
#include <vector>
#include <memory>
#include <numeric>
#include "../../common.h"
#include "pack.h"
#include "page.h"
void Log(LPCWSTR format, ...);
std::vector<uint64_t> address_chain(const char *str);
void WaitAndThenCleanup();
extern "C" {
extern uint8_t MeasurementChain_Start;
extern uint8... | 33.805907 | 73 | 0.644284 | [
"vector"
] |
0211dadd461d1b26440f4e3059fd829d365cc2ce | 16,845 | hpp | C++ | blast/include/util/format_guess.hpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/include/util/format_guess.hpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/include/util/format_guess.hpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | #ifndef FORMATGUESS__HPP
#define FORMATGUESS__HPP
/* $Id: format_guess.hpp 629211 2021-04-12 18:52:01Z ivanov $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* Thi... | 36.070664 | 99 | 0.615732 | [
"object",
"vector"
] |
0215cbf587c84fe4aee2b9a8633d1023200b92bd | 4,994 | cpp | C++ | externals/browser/externals/browser/externals/libutility/utility/procstat.cpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 1 | 2021-09-02T08:42:59.000Z | 2021-09-02T08:42:59.000Z | externals/browser/externals/browser/externals/libutility/utility/procstat.cpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | null | null | null | externals/browser/externals/browser/externals/libutility/utility/procstat.cpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright (c) 2017 Melown Technologies SE
*
* 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 f... | 25.742268 | 78 | 0.622347 | [
"vector"
] |
0227877432ff3d6c347a6191087fcb2d649565af | 891 | cpp | C++ | acmicpc/1884.cpp | juseongkr/BOJ | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 7 | 2020-02-03T10:00:19.000Z | 2021-11-16T11:03:57.000Z | acmicpc/1884.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:58:24.000Z | 2021-01-03T06:58:24.000Z | acmicpc/1884.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2020-01-22T14:34:03.000Z | 2020-01-22T14:34:03.000Z | #include <iostream>
#include <vector>
#include <cstring>
#include <tuple>
using namespace std;
#define MAX 101
typedef tuple<int, int, int> tp;
const int INF = 1e9+7;
int k, n, r, s, d, l, t;
vector<tp> graph[MAX];
int dp[MAX][10001];
int solve(int cur, int cost)
{
if (cur == n)
return 0;
if (~dp[cur][cost])
r... | 16.2 | 70 | 0.556678 | [
"vector"
] |
0234febc0306ca9837bc18f75191ee4eadb6e574 | 3,859 | cpp | C++ | core/sph/solvers/StandardSets.cpp | grische/OpenSPH | 74a8fff865157ae94e8d7ed249b116fbadf6ad20 | [
"MIT"
] | null | null | null | core/sph/solvers/StandardSets.cpp | grische/OpenSPH | 74a8fff865157ae94e8d7ed249b116fbadf6ad20 | [
"MIT"
] | 1 | 2022-01-27T21:25:34.000Z | 2022-01-27T21:25:34.000Z | core/sph/solvers/StandardSets.cpp | grische/OpenSPH | 74a8fff865157ae94e8d7ed249b116fbadf6ad20 | [
"MIT"
] | null | null | null | #include "sph/solvers/StandardSets.h"
#include "sph/equations/DeltaSph.h"
#include "sph/equations/Fluids.h"
#include "sph/equations/Friction.h"
#include "sph/equations/HelperTerms.h"
#include "sph/equations/Potentials.h"
#include "sph/equations/XSph.h"
#include "sph/equations/av/Conductivity.h"
#include "sph/equations/... | 39.377551 | 106 | 0.69759 | [
"vector"
] |
02350613d616d940b868c0fb5bb1a0e77c2cde5e | 19,056 | cpp | C++ | Modules/ContourModel/DataManagement/mitkContourModel.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | null | null | null | Modules/ContourModel/DataManagement/mitkContourModel.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Modules/ContourModel/DataManagement/mitkContourModel.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | null | null | null | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 28.023529 | 151 | 0.687028 | [
"geometry",
"vector",
"model",
"3d"
] |
023c0b582ab0cf444de28bb8e2b8a6014e057b58 | 4,196 | cpp | C++ | src/execution/operator/aggregate/physical_simple_aggregate.cpp | xhochy/duckdb | 20ba65f96794ab53f7a66e22d9bc58d59d8bc623 | [
"MIT"
] | null | null | null | src/execution/operator/aggregate/physical_simple_aggregate.cpp | xhochy/duckdb | 20ba65f96794ab53f7a66e22d9bc58d59d8bc623 | [
"MIT"
] | null | null | null | src/execution/operator/aggregate/physical_simple_aggregate.cpp | xhochy/duckdb | 20ba65f96794ab53f7a66e22d9bc58d59d8bc623 | [
"MIT"
] | 1 | 2019-09-06T09:58:14.000Z | 2019-09-06T09:58:14.000Z | #include "execution/operator/aggregate/physical_simple_aggregate.hpp"
#include "common/vector_operations/vector_operations.hpp"
#include "execution/expression_executor.hpp"
#include "planner/expression/bound_aggregate_expression.hpp"
using namespace duckdb;
using namespace std;
PhysicalSimpleAggregate::PhysicalSimpl... | 34.966667 | 132 | 0.730458 | [
"vector"
] |
0243e801a72c0f212a3a90406cfb3114bf1724df | 1,029 | cpp | C++ | SPOJ/Random/PERMUT1/permut1.cpp | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | SPOJ/Random/PERMUT1/permut1.cpp | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | SPOJ/Random/PERMUT1/permut1.cpp | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include<stdio.h>
#include<iostream>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<map>
#include<set>
#include<vector>
#include<utility>
#define sd(x) scanf("%d",&x);
#define sd2(x,y) scanf("%d %d",&x,&y);
#define sd3(x,y,z) scanf("%d %d %d",&x,&y,&z);
#define sull(x) scanf("%ull",&x);
#define print(x... | 20.176471 | 49 | 0.498542 | [
"vector"
] |
024acdf4025277fddd118eb4ec756a7345a77460 | 1,605 | cpp | C++ | solutions/LeetCode/C++/1014.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | solutions/LeetCode/C++/1014.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | solutions/LeetCode/C++/1014.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 24 ms submission
static const auto io_sync_off = []() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
return 0;
}();
class Solution {
public:
int maxScoreSightseeingPair(vector<int>& A) {
int n = ... | 26.311475 | 98 | 0.621807 | [
"vector"
] |
024ba13ff0eab60c41a9a8a4478ed1fef32c7078 | 2,948 | cpp | C++ | core/src/main/cpp/util/MslContext.cpp | sghill/msl | 97f53d685389bab496df889d87ccdbd1e9728032 | [
"Apache-2.0"
] | 559 | 2015-01-01T14:47:49.000Z | 2022-03-05T02:33:53.000Z | core/src/main/cpp/util/MslContext.cpp | sghill/msl | 97f53d685389bab496df889d87ccdbd1e9728032 | [
"Apache-2.0"
] | 141 | 2015-01-06T18:43:22.000Z | 2020-09-27T02:21:21.000Z | core/src/main/cpp/util/MslContext.cpp | sghill/msl | 97f53d685389bab496df889d87ccdbd1e9728032 | [
"Apache-2.0"
] | 85 | 2015-03-04T19:10:35.000Z | 2022-02-15T10:34:40.000Z | /**
* Copyright (c) 2016-2017 Netflix, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 28.901961 | 94 | 0.712687 | [
"vector"
] |
025167a28fe55ceb82ed28ddd713e7206c0dc076 | 6,348 | cpp | C++ | jogo-da-forca/src/JogoForca.cpp | danihenrif/jogo-da-forca-maze | 684f5819891298aa9fea2c1dcaa21af8b60ef4e7 | [
"MIT"
] | null | null | null | jogo-da-forca/src/JogoForca.cpp | danihenrif/jogo-da-forca-maze | 684f5819891298aa9fea2c1dcaa21af8b60ef4e7 | [
"MIT"
] | null | null | null | jogo-da-forca/src/JogoForca.cpp | danihenrif/jogo-da-forca-maze | 684f5819891298aa9fea2c1dcaa21af8b60ef4e7 | [
"MIT"
] | null | null | null | #include "../include/JogoForca.h"
#include "../include/util.h"
#include <iostream>
#include <fstream>
#include <string>
#include <chrono>//sleep
#include <thread>//sleep
#include <random>//random number
#include <ctime>//random number
using namespace std;
JogoForca::JogoForca(int argc, string nomeArquivo){
let... | 26.78481 | 127 | 0.514335 | [
"vector"
] |
025ac63e954163f74ab58cb920e0bd641065ff65 | 51,611 | cpp | C++ | applications/incompressible_fluid_application/custom_elements/fluid_2dGLS.cpp | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 2 | 2020-04-30T19:13:08.000Z | 2021-04-14T19:40:47.000Z | applications/incompressible_fluid_application/custom_elements/fluid_2dGLS.cpp | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 13 | 2019-10-07T12:06:51.000Z | 2020-02-18T08:48:33.000Z | applications/incompressible_fluid_application/custom_elements/fluid_2dGLS.cpp | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 1 | 2020-06-12T08:51:24.000Z | 2020-06-12T08:51:24.000Z | /*
==============================================================================
KratosR1IncompressibleFluidApplication
A library based on:
Kratos
A General Purpose Software for Multi-Physics Finite Element Analysis
Version 1.0 (Released on march 05, 2007).
Copyright 2007
Pooyan Dadvand, Riccardo Rossi
pooyan@cimne.u... | 41.689015 | 236 | 0.614326 | [
"geometry",
"vector"
] |
025c413aa909d3ce23767adbe4e4461cffc4041d | 9,733 | cpp | C++ | src/sfm_iterative_functionbased.cpp | cmgladding/aslam-project | 3132374756c0179e3f09031765af556b5b4ee6b9 | [
"MIT"
] | null | null | null | src/sfm_iterative_functionbased.cpp | cmgladding/aslam-project | 3132374756c0179e3f09031765af556b5b4ee6b9 | [
"MIT"
] | null | null | null | src/sfm_iterative_functionbased.cpp | cmgladding/aslam-project | 3132374756c0179e3f09031765af556b5b4ee6b9 | [
"MIT"
] | null | null | null | //http://creativecommons.org/licenses/by-sa/4.0/
//http://hackingonspace.blogspot.com/2015/09/using-openmvg-library.html
#include <iostream>
#include "openMVG/sfm/sfm.hpp"
#include "openMVG/image/image.hpp"
#include "openMVG/stl/split.hpp"
#include "openMVG/matching_image_collection/Matcher_Regions_AllInMemory.hpp"
#... | 31.600649 | 125 | 0.737902 | [
"object",
"vector"
] |
025fc3c814eb054958db35c3779f14ca16210a60 | 489 | cpp | C++ | coding/bubble_sortWithVec/bubble_sortWithVec.cpp | manharjotkaur/ese2025-1 | 81c9a606d6ce1b067dfab4da910dbdfdb8de1572 | [
"MIT"
] | null | null | null | coding/bubble_sortWithVec/bubble_sortWithVec.cpp | manharjotkaur/ese2025-1 | 81c9a606d6ce1b067dfab4da910dbdfdb8de1572 | [
"MIT"
] | null | null | null | coding/bubble_sortWithVec/bubble_sortWithVec.cpp | manharjotkaur/ese2025-1 | 81c9a606d6ce1b067dfab4da910dbdfdb8de1572 | [
"MIT"
] | 2 | 2019-07-29T03:33:21.000Z | 2019-10-26T03:42:26.000Z | * bubble_sortWithVec.cpp
*
* Created on: Jul. 16, 2019
* Author: jass
*/
#include<iostream>
#include<vector>
#include<iterator>
#include<string>
#include<algorithm>
using namespace std;
vector<int>::iterator iter;
void print(vector<int> my_vec)
{
cout<<"The vector is = ";
for(iter=my_vec.begin();iter != my_ve... | 12.868421 | 53 | 0.638037 | [
"vector"
] |
02615d55a6071d84f878c0eb1c5939f2ea0a8bf9 | 15,797 | cpp | C++ | test/test_class.cpp | YarikTH/v8pp | d62a0d581fd4ab05beb8a675216a12c72a5077c8 | [
"BSL-1.0"
] | null | null | null | test/test_class.cpp | YarikTH/v8pp | d62a0d581fd4ab05beb8a675216a12c72a5077c8 | [
"BSL-1.0"
] | null | null | null | test/test_class.cpp | YarikTH/v8pp | d62a0d581fd4ab05beb8a675216a12c72a5077c8 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "v8pp/class.h... | 34.192641 | 1,642 | 0.649047 | [
"object",
"vector"
] |
02623bd6957c76a634ee0fae559f3fe87cd7ce2d | 1,056 | cpp | C++ | Engine/src/Engine/Renderer/Renderer.cpp | PalliativeX/GameEngine | 704cf5f3ebc81fdf5e3e514908c3ac47305ccd33 | [
"Apache-2.0"
] | null | null | null | Engine/src/Engine/Renderer/Renderer.cpp | PalliativeX/GameEngine | 704cf5f3ebc81fdf5e3e514908c3ac47305ccd33 | [
"Apache-2.0"
] | null | null | null | Engine/src/Engine/Renderer/Renderer.cpp | PalliativeX/GameEngine | 704cf5f3ebc81fdf5e3e514908c3ac47305ccd33 | [
"Apache-2.0"
] | null | null | null | #include "enginepch.h"
#include "Engine/Renderer/Renderer.h"
#include "Platform/OpenGL/OpenGLShader.h"
#include "Renderer2D.h"
namespace Engine
{
Renderer::SceneData* Renderer::sceneData = new Renderer::SceneData;
void Renderer::init()
{
ENGINE_PROFILE_FUNCTION();
RenderCommand::init();
Renderer2D::init();... | 24 | 137 | 0.751894 | [
"model",
"transform"
] |
0263d634edb65ead2f3d64b868a6b5794027a919 | 6,881 | cpp | C++ | zebROS_ws/src/frc_state_controllers/src/button_box_state_controller.cpp | FRC900/2020Offseason | 36ccd74667d379b07d9b7a1e937307c6d8119229 | [
"BSD-3-Clause"
] | 2 | 2021-09-23T22:34:11.000Z | 2022-01-13T00:20:12.000Z | zebROS_ws/src/frc_state_controllers/src/button_box_state_controller.cpp | FRC900/2020Offseason | 36ccd74667d379b07d9b7a1e937307c6d8119229 | [
"BSD-3-Clause"
] | 19 | 2021-03-20T01:10:04.000Z | 2022-01-17T22:51:05.000Z | zebROS_ws/src/frc_state_controllers/src/button_box_state_controller.cpp | FRC900/2020Offseason | 36ccd74667d379b07d9b7a1e937307c6d8119229 | [
"BSD-3-Clause"
] | null | null | null | #include "frc_state_controllers/button_box_state_controller.h"
namespace button_box_state_controller
{
bool ButtonBoxStateController::init(hardware_interface::JoystickStateInterface *hw,
ros::NodeHandle &root_nh,
ros::NodeHandle &controller_nh)
{
ROS_INFO_STREAM_NAMED("button... | 55.491935 | 119 | 0.675919 | [
"vector"
] |
02691e1c41b0e12d3f9d9871bb51c8a6d5a0f009 | 20,524 | hxx | C++ | src/CXX/libnn/topo/nn.hxx | vencik/libnn | 2385acc2e2601552627785cfd0fe8e09ae73fea2 | [
"BSD-3-Clause"
] | null | null | null | src/CXX/libnn/topo/nn.hxx | vencik/libnn | 2385acc2e2601552627785cfd0fe8e09ae73fea2 | [
"BSD-3-Clause"
] | null | null | null | src/CXX/libnn/topo/nn.hxx | vencik/libnn | 2385acc2e2601552627785cfd0fe8e09ae73fea2 | [
"BSD-3-Clause"
] | null | null | null | #ifndef libnn__topo__nn_hxx
#define libnn__topo__nn_hxx
/**
* Neural network topology
*
* \date 2015/09/04
* \author Vaclav Krpec <vencik@razdva.cz>
*
*
* LEGAL NOTICE
*
* Copyright (c) 2015, Vaclav Krpec
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or with... | 28.348066 | 80 | 0.538345 | [
"object",
"vector",
"model"
] |
02714f9abe0ee018edcd6735ba3f4875f91a512e | 6,071 | cpp | C++ | src/geode/inspector/criterion/private/colocation_impl.cpp | Geode-solutions/OpenGeode-Inspector | 837ab6bf0742195daf0ecadd230e660f9426bd81 | [
"MIT"
] | 6 | 2022-03-23T03:14:33.000Z | 2022-03-30T07:44:24.000Z | src/geode/inspector/criterion/private/colocation_impl.cpp | Geode-solutions/OpenGeode-Inspector | 837ab6bf0742195daf0ecadd230e660f9426bd81 | [
"MIT"
] | 1 | 2022-03-31T13:03:28.000Z | 2022-03-31T13:03:28.000Z | src/geode/inspector/criterion/private/colocation_impl.cpp | Geode-solutions/OpenGeode-Inspector | 837ab6bf0742195daf0ecadd230e660f9426bd81 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2019 - 2022 Geode-solutions
*
* 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, mer... | 41.29932 | 80 | 0.598089 | [
"mesh",
"geometry",
"vector"
] |
0272cb3bdc10a664559e608dc81a009ecdc313c3 | 4,876 | cpp | C++ | Project1P1.cpp | anikethsukhtankar/Hash-Tables | 0dbb6abc5a98710d95cf64f2a420954f2934500f | [
"MIT"
] | null | null | null | Project1P1.cpp | anikethsukhtankar/Hash-Tables | 0dbb6abc5a98710d95cf64f2a420954f2934500f | [
"MIT"
] | null | null | null | Project1P1.cpp | anikethsukhtankar/Hash-Tables | 0dbb6abc5a98710d95cf64f2a420954f2934500f | [
"MIT"
] | null | null | null | //**************************************************************
// main.cpp
// HashTable
//
// Created by Aniketh Sukhtankar on October 11, 2016.
// Demonstrate a simple Hash Table in C++.
// Implements a Linked List class.
//**************************************************************
#include "HashT... | 34.097902 | 226 | 0.474979 | [
"vector"
] |
02735c5c7e3bad5504e27e1b0b6574622215b6ca | 1,714 | cc | C++ | src/memory-bus.cc | dualslash/risc-v-emulator | 54638866e35d65472e5f3465fc0ed35ce0f52534 | [
"MIT"
] | null | null | null | src/memory-bus.cc | dualslash/risc-v-emulator | 54638866e35d65472e5f3465fc0ed35ce0f52534 | [
"MIT"
] | null | null | null | src/memory-bus.cc | dualslash/risc-v-emulator | 54638866e35d65472e5f3465fc0ed35ce0f52534 | [
"MIT"
] | null | null | null | /*
* rv64-emu -- Simple 64-bit RISC-V simulator
* memory-bus.h - "Interconnect" for different memory bus clients.
*/
#include "memory-bus.h"
MemoryBus::MemoryBus(std::vector<std::shared_ptr<MemoryInterface> > &&clients)
: clients(std::move(clients))
{
}
MemoryBus::~MemoryBus()
{
}
void
MemoryBus::addClient(std... | 17.313131 | 78 | 0.737456 | [
"vector"
] |
0277471f403fc93e6ddd490b2b72ace4904abd22 | 8,678 | hpp | C++ | myparser_rule.hpp | hczhcz/myparser | deb708c73e6b5a497573b4d3ac4122ee559651a3 | [
"MIT"
] | 7 | 2015-01-17T16:36:51.000Z | 2020-03-02T17:56:03.000Z | myparser_rule.hpp | hczhcz/myparser | deb708c73e6b5a497573b4d3ac4122ee559651a3 | [
"MIT"
] | null | null | null | myparser_rule.hpp | hczhcz/myparser | deb708c73e6b5a497573b4d3ac4122ee559651a3 | [
"MIT"
] | 2 | 2016-09-27T09:51:12.000Z | 2021-01-19T11:11:53.000Z | #pragma once
#include "myparser_ast_spec.hpp"
namespace myparser {
// builtin names -> myparser_ast.hpp
using ErrorList = MP_STR("Nothing matched");
using ErrorRegex = MP_STR("Regex not matched");
using ErrorChecking = MP_STR("Match not accepted");
using ErrorKeyword = MP_STR("Bad keyword");
template <size_t L, si... | 25.374269 | 75 | 0.503803 | [
"vector"
] |
0277d793ed8906353daeee2797803232963eb34c | 3,735 | cpp | C++ | libraries/CtrlLoop.cpp | Tfmenard/3d_scanner_pg_embedded | 52cb5a57d2a24a51f9ea7bd3f40aab90dcda38bb | [
"MIT"
] | null | null | null | libraries/CtrlLoop.cpp | Tfmenard/3d_scanner_pg_embedded | 52cb5a57d2a24a51f9ea7bd3f40aab90dcda38bb | [
"MIT"
] | null | null | null | libraries/CtrlLoop.cpp | Tfmenard/3d_scanner_pg_embedded | 52cb5a57d2a24a51f9ea7bd3f40aab90dcda38bb | [
"MIT"
] | null | null | null | #include "CtrlLoop.h"
#include "Arduino.h"
CtrlLoop::CtrlLoop(char _id, Encoder *mEncoder, Motor *_motor, PID *_pid, double &_Setpoint, double &_Input, double &_Output)
: id(_id), encoder(mEncoder), motor(_motor), pid(_pid), Setpoint(_Setpoint), Input(_Input), Output(_Output)
{
pid->SetMode(AUTOMATIC);
this->Setpoin... | 22.232143 | 125 | 0.685408 | [
"object"
] |
027ac67585c213ff9c4a4b6729016b43909dad08 | 1,309 | cpp | C++ | dynamic_programing/4_keys_keyboard.cpp | zm66260/Data_Structure_and_Algorithms | f3e6d60a9f0ddf1a8fe943dedc089172bc8c833e | [
"MIT"
] | null | null | null | dynamic_programing/4_keys_keyboard.cpp | zm66260/Data_Structure_and_Algorithms | f3e6d60a9f0ddf1a8fe943dedc089172bc8c833e | [
"MIT"
] | null | null | null | dynamic_programing/4_keys_keyboard.cpp | zm66260/Data_Structure_and_Algorithms | f3e6d60a9f0ddf1a8fe943dedc089172bc8c833e | [
"MIT"
] | null | null | null | // 4 keys keyboard
// Imagine you have a special keyboard with the following keys:
// Key 1: (A): Print one 'A' on screen.
// Key 2: (Ctrl-A): Select the whole screen.
// Key 3: (Ctrl-C): Copy selection to buffer.
// Key 4: (Ctrl-V): Print buffer on screen appending it after what has already been printed.
... | 23.375 | 141 | 0.550038 | [
"vector"
] |
028ed80761a5414beb36054c2b3f96845b5f3df8 | 2,505 | cpp | C++ | code/dunglish.cpp | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | 8 | 2020-02-21T22:21:01.000Z | 2022-02-16T05:30:54.000Z | code/dunglish.cpp | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | null | null | null | code/dunglish.cpp | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | 3 | 2020-08-05T05:42:35.000Z | 2021-08-30T05:39:51.000Z | #define _USE_MATH_DEFINES
#include <iostream>
#include <stdio.h>
#include <cmath>
#include <iomanip>
#include <vector>
#include <string>
#include <algorithm>
#include <unordered_set>
#include <unordered_map>
#include <ctype.h>
#include <queue>
#include <map>
#include <set>
#include <stack>
typedef long long ll;
typede... | 20.532787 | 69 | 0.545709 | [
"vector"
] |
0297328991093abcc2371e559c582f9d007ac517 | 15,609 | cpp | C++ | reluplex/Reluplex2py.cpp | rnbguy/python-reluplex | 42c23b010dbc28f1d0cb8faa9fbe635686adf264 | [
"MIT"
] | 2 | 2019-07-02T07:51:34.000Z | 2021-04-23T13:51:53.000Z | reluplex/Reluplex2py.cpp | rnbguy/python-reluplex | 42c23b010dbc28f1d0cb8faa9fbe635686adf264 | [
"MIT"
] | null | null | null | reluplex/Reluplex2py.cpp | rnbguy/python-reluplex | 42c23b010dbc28f1d0cb8faa9fbe635686adf264 | [
"MIT"
] | 1 | 2021-09-02T11:32:29.000Z | 2021-09-02T11:32:29.000Z | #include <Python.h>
#include <vector>
#include <NeuralReluplex.h>
#include <Reluplex.h>
#include <numpy/ndarraytypes.h>
#include <numpy/ufuncobject.h>
#include <numpy/npy_3kcompat.h>
PyObject* construct(PyObject* self, PyObject* args) {
NeuralReluplex* neuralReluplex = new NeuralReluplex();
PyObject* ... | 33.567742 | 127 | 0.590621 | [
"object",
"vector"
] |
029a73ac3b9149894bcc62e23e77fb5c895a4238 | 200 | cpp | C++ | MIDIAvoided/Button/LambdaButton.cpp | hyoiutu/AVOMID | c9f904f4d1f96feb9ed4e2b5c8b16989039752be | [
"MIT"
] | 2 | 2016-12-09T02:21:23.000Z | 2017-08-31T13:49:13.000Z | Game/Button/LambdaButton.cpp | IndistinQuest/Game | 3c8363026388a452a1e1b5a46ff34bb8fa8baff4 | [
"MIT"
] | null | null | null | Game/Button/LambdaButton.cpp | IndistinQuest/Game | 3c8363026388a452a1e1b5a46ff34bb8fa8baff4 | [
"MIT"
] | null | null | null | #include "LambdaButton.h"
LambdaButton::LambdaButton(Shape shape, std::function<void(void)> handler)
:BasicButton(shape), handler_m(handler){}
void LambdaButton::onClicked()
{
handler_m();
} | 22.222222 | 74 | 0.73 | [
"shape"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.