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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4e758a620ec4844b959e40ad63c210cfe1cbd1f3 | 7,409 | cpp | C++ | bfvmm/src/hve/arch/intel_x64/exception.cpp | ilovepi/hypervisor | 6a61cccec6574d4daad2553e053099d437e4b929 | [
"MIT"
] | null | null | null | bfvmm/src/hve/arch/intel_x64/exception.cpp | ilovepi/hypervisor | 6a61cccec6574d4daad2553e053099d437e4b929 | [
"MIT"
] | 1 | 2016-12-15T20:11:37.000Z | 2016-12-16T02:26:43.000Z | bfvmm/src/hve/arch/intel_x64/exception.cpp | ilovepi/hypervisor | 6a61cccec6574d4daad2553e053099d437e4b929 | [
"MIT"
] | 1 | 2021-01-23T05:47:51.000Z | 2021-01-23T05:47:51.000Z | //
// Copyright (C) 2019 Assured Information Security, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy,... | 39.201058 | 96 | 0.552301 | [
"vector"
] |
4e76a44a75df9082e45341f5241ae9510455f830 | 12,493 | cpp | C++ | src/platforms/cpu/CpuPseudoContinuous.cpp | yongdd/langevin-fts | ae342e3d62c1fe87973d4168a61e208153cc8a3a | [
"MIT"
] | null | null | null | src/platforms/cpu/CpuPseudoContinuous.cpp | yongdd/langevin-fts | ae342e3d62c1fe87973d4168a61e208153cc8a3a | [
"MIT"
] | null | null | null | src/platforms/cpu/CpuPseudoContinuous.cpp | yongdd/langevin-fts | ae342e3d62c1fe87973d4168a61e208153cc8a3a | [
"MIT"
] | null | null | null | #include <cmath>
#include "CpuPseudoContinuous.h"
#include "SimpsonQuadrature.h"
CpuPseudoContinuous::CpuPseudoContinuous(
SimulationBox *sb,
PolymerChain *pc, FFT *fft)
: Pseudo(sb, pc)
{
try
{
const int M = sb->get_n_grid();
const int N = pc->get_n_segment();
... | 36.636364 | 132 | 0.504442 | [
"transform",
"3d"
] |
4e7c2707d1c827ce052b8c94c95df1a118b01137 | 193 | hpp | C++ | src/cloudproc/hacd_interface.hpp | HARPLab/trajopt | 40e2260d8f1e4d0a6a7a8997927bd65e5f36c3a4 | [
"BSD-2-Clause"
] | 250 | 2015-01-13T04:38:59.000Z | 2022-03-09T15:52:54.000Z | src/cloudproc/hacd_interface.hpp | HARPLab/trajopt | 40e2260d8f1e4d0a6a7a8997927bd65e5f36c3a4 | [
"BSD-2-Clause"
] | 31 | 2015-08-19T13:14:56.000Z | 2022-03-22T08:08:26.000Z | src/cloudproc/hacd_interface.hpp | HARPLab/trajopt | 40e2260d8f1e4d0a6a7a8997927bd65e5f36c3a4 | [
"BSD-2-Clause"
] | 118 | 2015-01-08T16:06:50.000Z | 2022-03-19T11:44:00.000Z | #pragma once
#include <pcl/PolygonMesh.h>
#include <vector>
#include "macros.h"
TRAJOPT_API std::vector<pcl::PolygonMesh::Ptr> ConvexDecompHACD(const pcl::PolygonMesh& mesh, float concavity);
| 27.571429 | 111 | 0.772021 | [
"mesh",
"vector"
] |
4e7cb26a0fb8250c18b3b2d1cc3c54ffe8bda1b3 | 1,876 | cpp | C++ | gearoenix/glc3/texture/gx-glc3-txt-sample.cpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/glc3/texture/gx-glc3-txt-sample.cpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/glc3/texture/gx-glc3-txt-sample.cpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #include "gx-glc3-txt-sample.hpp"
#ifdef GX_USE_OPENGL_CLASS_3
#include "../../system/gx-sys-log.hpp"
gearoenix::glc3::texture::SampleInfo::SampleInfo(const render::texture::SamplerInfo& o) noexcept
{
const auto min_fil_fun = [](render::texture::Filter f) {
switch (f) {
case render::texture::Filter... | 28.424242 | 96 | 0.616738 | [
"render"
] |
4e81580a5032bd3484105efebfba27e5bd746cf6 | 2,026 | cpp | C++ | td07/src/main.cpp | asassoye/ESI-DEV3-TD | 074c7ec4c81bcf3a927079202050d5d05e4e29ca | [
"MIT"
] | 4 | 2020-12-31T14:57:20.000Z | 2020-12-31T15:15:49.000Z | td07/src/main.cpp | asassoye/ESI-DEV3-TD | 074c7ec4c81bcf3a927079202050d5d05e4e29ca | [
"MIT"
] | null | null | null | td07/src/main.cpp | asassoye/ESI-DEV3-TD | 074c7ec4c81bcf3a927079202050d5d05e4e29ca | [
"MIT"
] | 1 | 2021-01-03T13:23:14.000Z | 2021-01-03T13:23:14.000Z | /**
* @file main.cpp
* @author Andrew SASSOYE
*/
#include <iostream>
#include <iomanip>
#include <algorithm>
#include "td07.hpp"
#include "../resources/utilscpp.hpp"
using namespace std;
using namespace g54327;
void exe1();
void exe2();
void exe3();
void exe4();
void exe5();
int main() {
utils::exercise("... | 22.021739 | 73 | 0.564166 | [
"vector"
] |
4e84d0ea17dd7a6ff7667702a0b29048dda52639 | 1,962 | cpp | C++ | aws-cpp-sdk-chime/source/model/PhoneNumberType.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-chime/source/model/PhoneNumberType.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-chime/source/model/PhoneNumberType.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime/model/PhoneNumberType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
... | 27.633803 | 92 | 0.61264 | [
"model"
] |
4e927451e92790779d711581c401414b1f9a08da | 9,355 | cpp | C++ | Server/src/Common/Cache/ResourceServiceCache.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Server/src/Common/Cache/ResourceServiceCache.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Server/src/Common/Cache/ResourceServiceCache.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2015 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will... | 29.698413 | 133 | 0.5721 | [
"object"
] |
4ea4620220433e8b8befa293972377e1e487ba59 | 44,154 | cpp | C++ | src/prod/ktl/src/tools/tests/khashtable/KHashTableTests.cpp | leikong/service-fabric | 6b81daab914c8cf02801073fe6b6e5bf97270e9b | [
"MIT"
] | null | null | null | src/prod/ktl/src/tools/tests/khashtable/KHashTableTests.cpp | leikong/service-fabric | 6b81daab914c8cf02801073fe6b6e5bf97270e9b | [
"MIT"
] | null | null | null | src/prod/ktl/src/tools/tests/khashtable/KHashTableTests.cpp | leikong/service-fabric | 6b81daab914c8cf02801073fe6b6e5bf97270e9b | [
"MIT"
] | null | null | null | /*++
Copyright (c) Microsoft Corporation
Module Name:
KHashTableTests.cpp
Abstract:
This file contains test case implementations.
To add a new unit test case:
1. Declare your test case routine in KHashTableTests.h.
2. Add an entry to the gs_KuTestCases table in KHashTableTestCases.cpp.
3. ... | 26.503001 | 137 | 0.614689 | [
"object",
"vector"
] |
4ea5c6c4044a19ea01e2ed114e68ab8800fc6f04 | 10,840 | cpp | C++ | gui/dialogs/dialogconcentrationimage_t.cpp | lkeegan/spatial-model-editor | 5dcb06550607b0a734acddd8b719035b68e35307 | [
"MIT"
] | 4 | 2019-07-18T15:05:09.000Z | 2020-03-14T09:50:07.000Z | gui/dialogs/dialogconcentrationimage_t.cpp | lkeegan/spatial-model-editor | 5dcb06550607b0a734acddd8b719035b68e35307 | [
"MIT"
] | 328 | 2019-06-30T12:03:01.000Z | 2020-10-05T15:56:35.000Z | gui/dialogs/dialogconcentrationimage_t.cpp | lkeegan/spatial-model-editor | 5dcb06550607b0a734acddd8b719035b68e35307 | [
"MIT"
] | 1 | 2019-06-08T22:47:14.000Z | 2019-06-08T22:47:14.000Z | #include "catch_wrapper.hpp"
#include "dialogconcentrationimage.hpp"
#include "model_test_utils.hpp"
#include "qt_test_utils.hpp"
#include "sme/model.hpp"
#include "sme/model_units.hpp"
#include <numeric>
using namespace sme::test;
TEST_CASE("DialogConcentrationImage", "[gui/dialogs/concentrationimage][gui/"
... | 37.37931 | 79 | 0.580904 | [
"vector",
"model"
] |
4ea703a0a50587451b1edfc9407d38f4eac86fd7 | 7,709 | cpp | C++ | services/vfs-svr/source/functions.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 16 | 2019-03-14T19:45:02.000Z | 2022-02-06T19:18:08.000Z | services/vfs-svr/source/functions.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 1 | 2020-05-08T08:40:02.000Z | 2020-05-08T13:27:59.000Z | services/vfs-svr/source/functions.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 2 | 2021-01-16T20:42:05.000Z | 2021-12-01T23:37:18.000Z | // functions.cpp
// Copyright (c) 2020, zhiayang
// Licensed under the Apache License Version 2.0.
#include <assert.h>
#include <map>
#include <tuple>
#include <optional>
#include <nx/rpc.h>
#include "internal.h"
#include "export/vfs.h"
using namespace nx;
namespace vfs
{
VfsState state;
struct ProcessState
... | 22.943452 | 118 | 0.649111 | [
"vector"
] |
4eb9dadec0156b6f3e95f95464c9bef802dd75ba | 3,656 | hpp | C++ | source/include/motion.hpp | ndoxx/wcore | 8b24519e9a01b0397ba2959507e1e12ea3a3aa44 | [
"Apache-2.0"
] | null | null | null | source/include/motion.hpp | ndoxx/wcore | 8b24519e9a01b0397ba2959507e1e12ea3a3aa44 | [
"Apache-2.0"
] | null | null | null | source/include/motion.hpp | ndoxx/wcore | 8b24519e9a01b0397ba2959507e1e12ea3a3aa44 | [
"Apache-2.0"
] | null | null | null | #ifndef MOTION_HPP
#define MOTION_HPP
#include "bezier.h"
#include "cspline.h"
#include "model.h"
namespace wcore
{
namespace timeEvolution
{
class TimeUpdater
{
public:
virtual ~TimeUpdater(){}
virtual void step(float& time, float dt, float scale, float tmin, float tmax) = 0;
};
class Alternating: public T... | 21.505882 | 90 | 0.583972 | [
"vector",
"model"
] |
4ecee61a357a2ce5563af4ed6054fdb8e247ce06 | 13,643 | cpp | C++ | src/tests/class_tests/openms/source/PeptideIndexing_test.cpp | michalsta/OpenMS | 7eed34f65354c4abce0b98cf746e4bfce4a488ac | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | 2 | 2018-08-27T19:15:39.000Z | 2019-03-22T21:29:50.000Z | src/tests/class_tests/openms/source/PeptideIndexing_test.cpp | michalsta/OpenMS | 7eed34f65354c4abce0b98cf746e4bfce4a488ac | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | 9 | 2017-10-29T20:59:19.000Z | 2018-02-09T15:37:14.000Z | src/tests/class_tests/openms/source/PeptideIndexing_test.cpp | michalsta/OpenMS | 7eed34f65354c4abce0b98cf746e4bfce4a488ac | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | 1 | 2020-07-21T23:23:49.000Z | 2020-07-21T23:23:49.000Z | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 47.371528 | 238 | 0.649271 | [
"vector"
] |
4ed2f2c3ee23ea9a49fcce4ee8f565c78fabe379 | 3,817 | cpp | C++ | GameObjects/Muebles/Fogon.cpp | javics2002/Paella | 53449d828b09ba63805ea9ee5a2f6b2d178490dc | [
"MIT"
] | 4 | 2022-01-29T16:50:42.000Z | 2022-03-04T09:44:59.000Z | GameObjects/Muebles/Fogon.cpp | javics2002/Paella | 53449d828b09ba63805ea9ee5a2f6b2d178490dc | [
"MIT"
] | 194 | 2022-01-27T09:47:37.000Z | 2022-03-31T21:42:06.000Z | GameObjects/Muebles/Fogon.cpp | javics2002/Paella | 53449d828b09ba63805ea9ee5a2f6b2d178490dc | [
"MIT"
] | 2 | 2022-02-05T10:18:35.000Z | 2022-03-27T11:52:13.000Z | #include "Fogon.h"
#include "../UI/UIManager.h"
#include "../../Control/Game.h"
#include "../../Control/ObjectManager.h"
#include "../Paella.h"
#include "../../sdlutils/SDLUtils.h"
#include "../../Scenes/Tutorial.h"
#include "../../Utils/ParticleExample.h"
using tweeny::easing;
Fogon::Fogon(Game* mGame, Vector2D<doub... | 23.85625 | 173 | 0.65837 | [
"render"
] |
4debcec61bcdf290f5efb49fc2723dcd0abbe0f4 | 2,678 | cpp | C++ | examples/graph/graph_examples.cpp | alex011235/algo | ce36c2673e037a12278117cb036550bee82ecadf | [
"MIT"
] | 2 | 2015-08-16T23:45:23.000Z | 2015-10-13T08:12:00.000Z | examples/graph/graph_examples.cpp | alex011235/algorithm | ce36c2673e037a12278117cb036550bee82ecadf | [
"MIT"
] | 1 | 2021-03-21T16:33:53.000Z | 2021-03-21T16:33:53.000Z | examples/graph/graph_examples.cpp | alex011235/algo | ce36c2673e037a12278117cb036550bee82ecadf | [
"MIT"
] | null | null | null | ///
/// \brief Data mining examples.
/// \author alex011235
/// \date 2020-02-28
/// \link <a href=https://github.com/alex011235/algo>Algo, Github</a>
///
#include <string>
#include "algo.hpp"
#include "io.hpp"
void PrintHelp()
{
std::cout
<< "Algorithms: Minimum spanning tree <mst>. Nearest neighbor <nn>. S... | 28.189474 | 130 | 0.65422 | [
"vector"
] |
4dedf270d1f967baebb89efe690221bfe4bd0ae7 | 15,084 | cpp | C++ | src/head_pose_postprocess_1/head_pose_postprocess_1.cpp | Atlas200dk/sample-headposeestimation | abbcf37ed7ad9673be9af959f11dfca6aa546cab | [
"Apache-2.0"
] | 1 | 2020-09-17T05:22:34.000Z | 2020-09-17T05:22:34.000Z | src/head_pose_postprocess_1/head_pose_postprocess_1.cpp | Atlas200dk/sample-headposeestimation | abbcf37ed7ad9673be9af959f11dfca6aa546cab | [
"Apache-2.0"
] | null | null | null | src/head_pose_postprocess_1/head_pose_postprocess_1.cpp | Atlas200dk/sample-headposeestimation | abbcf37ed7ad9673be9af959f11dfca6aa546cab | [
"Apache-2.0"
] | 1 | 2020-09-17T05:22:39.000Z | 2020-09-17T05:22:39.000Z | /*******
*
* Copyright(c)<2018>, <Huawei Technologies Co.,Ltd>
*
* @version 1.0
*
* @date 2018-5-19
*/
#include "head_pose_postprocess_1.h"
#include <vector>
#include <memory>
#include <fstream>
#include <sstream>
#include <cstdio>
#include <cstring>
#include <string>
#include <regex>
#include <cmath>
#include "hiaien... | 32.578834 | 200 | 0.691859 | [
"vector"
] |
4dee546e1d6505a4767c1fc4ad455cf211f5c35c | 622 | cpp | C++ | spoj/CANDY1.cpp | sidgairo18/Programming-Practice | 348ad38452fa9fa7b7302161455d3b3f697734da | [
"MIT"
] | 2 | 2018-06-26T09:52:14.000Z | 2018-07-12T15:02:01.000Z | spoj/CANDY1.cpp | sidgairo18/Programming-Practice | 348ad38452fa9fa7b7302161455d3b3f697734da | [
"MIT"
] | null | null | null | spoj/CANDY1.cpp | sidgairo18/Programming-Practice | 348ad38452fa9fa7b7302161455d3b3f697734da | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int n;
while(true){
scanf("%d", &n);
if(n==-1)
break;
int total = 0;
vector<int> v;
for(int i = 0; i<n; i++){
int x;
scanf("%d", &x);
total+=x;
v.pu... | 15.55 | 40 | 0.345659 | [
"vector"
] |
4def2c5fe32884a38d2173bfa3ea4782b78b29e9 | 16,802 | cc | C++ | sgf_parser/parser.cc | huangstc/sgf_parser | c80e16ad2cc3c61d0d40188dec90ff0c3f1c8532 | [
"MIT"
] | 1 | 2019-06-02T19:25:19.000Z | 2019-06-02T19:25:19.000Z | sgf_parser/parser.cc | huangstc/sgf_parser | c80e16ad2cc3c61d0d40188dec90ff0c3f1c8532 | [
"MIT"
] | null | null | null | sgf_parser/parser.cc | huangstc/sgf_parser | c80e16ad2cc3c61d0d40188dec90ff0c3f1c8532 | [
"MIT"
] | null | null | null | #include "sgf_parser/parser.h"
#include <math.h> /* fabs */
#include <fstream>
#include <memory>
#include <vector>
#include "absl/memory/memory.h"
#include "absl/strings/ascii.h"
#include "absl/strings/numbers.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_join.h"
#include "absl/strings/string_... | 33.806841 | 80 | 0.563861 | [
"vector"
] |
4df5d834b54caef6c81d1827b5a290969b4b04cd | 43,889 | cpp | C++ | xp_comm_proj/rd_vrml1/vrml2geo/Traverse2.cpp | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 3 | 2020-08-03T08:52:20.000Z | 2021-04-10T11:55:49.000Z | xp_comm_proj/rd_vrml1/vrml2geo/Traverse2.cpp | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | null | null | null | xp_comm_proj/rd_vrml1/vrml2geo/Traverse2.cpp | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 1 | 2021-06-08T18:16:45.000Z | 2021-06-08T18:16:45.000Z | //
// Traverse.C
// Local VRML traversal functions for AVS Module (read_VRML)
//
#include <QvElement.h>
#include <QvNodes.h>
#include <QvUnknownNode.h>
#include <QvState.h>
#include "gobject.h"
#include <avs/geom.h>
#include <travUtil.h>
#include <travLight.h>
#include <travCamera.h>
#include <travXForm.h>
#include <t... | 26.375601 | 103 | 0.608991 | [
"geometry",
"object",
"shape",
"vector",
"transform"
] |
4df80ffdf6bde678470a5615a36703a6b650e455 | 1,343 | cpp | C++ | Easy/682_calPoints/682_calPoints/main.cpp | yangbingjie/Leetcode | 2f1e386cfb8b2d7d49cf0e7dcf0bce1c936e1916 | [
"MIT"
] | 1 | 2020-10-08T06:15:37.000Z | 2020-10-08T06:15:37.000Z | Easy/682_calPoints/682_calPoints/main.cpp | yangbingjie/Leetcode | 2f1e386cfb8b2d7d49cf0e7dcf0bce1c936e1916 | [
"MIT"
] | null | null | null | Easy/682_calPoints/682_calPoints/main.cpp | yangbingjie/Leetcode | 2f1e386cfb8b2d7d49cf0e7dcf0bce1c936e1916 | [
"MIT"
] | null | null | null | //
// main.cpp
// 682_calPoints
//
// Created by Bella Yang on 2020/1/3.
// Copyright © 2020 Bella Yang. All rights reserved.
//
#include <iostream>
#include <vector>
#include <stack>
#include <string>
using namespace std;
class Solution {
public:
int calPoints(vector<string>& ops) {
stack<int> number;... | 25.339623 | 57 | 0.434847 | [
"vector"
] |
4dfc67d025e6c7554d606fc28629ae7b90dcd6d7 | 2,630 | cc | C++ | chrome/browser/web_applications/test/test_web_app_ui_manager.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/web_applications/test/test_web_app_ui_manager.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/web_applications/test/test_web_app_ui_manager.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.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/web_applications/test/test_web_app_ui_manager.h"
#include <utility>
#include "base/callback.h"
#include "base/stl_util.h"
#incl... | 31.309524 | 80 | 0.68289 | [
"vector"
] |
1506b98a593196cc462827f966c542a174b8cfe4 | 691 | hpp | C++ | include/beauty/route.hpp | Brian-Rader-Logikos/beauty | e4fff5304baa370936a67b9fae7e5d31c8556dd0 | [
"MIT"
] | null | null | null | include/beauty/route.hpp | Brian-Rader-Logikos/beauty | e4fff5304baa370936a67b9fae7e5d31c8556dd0 | [
"MIT"
] | null | null | null | include/beauty/route.hpp | Brian-Rader-Logikos/beauty | e4fff5304baa370936a67b9fae7e5d31c8556dd0 | [
"MIT"
] | null | null | null | #pragma once
#include <beauty/request.hpp>
#include <beauty/response.hpp>
#include <iostream>
#include <vector>
#include <string>
#include <string_view>
#include <functional>
namespace beauty
{
using route_cb = std::function<void(const beauty::request& req, beauty::response& res)>;
// -----------------------------... | 19.194444 | 88 | 0.603473 | [
"vector"
] |
1507821a3e313fdbbb810a4450727a3a14dcaf98 | 11,048 | cpp | C++ | source/AVoid_Turtle/empty_template/Geometry/TriangularSurface/MeshSimplification.cpp | whywhyy/AVoid_Turtle | 073cc45e37c15d54401f8b71096592c0403c583b | [
"MIT"
] | null | null | null | source/AVoid_Turtle/empty_template/Geometry/TriangularSurface/MeshSimplification.cpp | whywhyy/AVoid_Turtle | 073cc45e37c15d54401f8b71096592c0403c583b | [
"MIT"
] | null | null | null | source/AVoid_Turtle/empty_template/Geometry/TriangularSurface/MeshSimplification.cpp | whywhyy/AVoid_Turtle | 073cc45e37c15d54401f8b71096592c0403c583b | [
"MIT"
] | null | null | null | /*
Authored by Prof. Jeong-Mo Hong, CSE Dongguk University
for Introduction to Computer Graphics, 2017 Spring
*/
#include "MeshSimplification.h"
void MeshSimplification::update()
{
Array1D<TV> vertex_mean_curvatures_;
surface_.calculateVertexMeanCurvatures(vertex_mean_curvatures_);
triangles_flag_.init(surface_... | 41.848485 | 183 | 0.745565 | [
"mesh"
] |
1512ba5f4e69e6e8e0eeee623ae9e5adf3bc3890 | 4,077 | cpp | C++ | fun/kl_fast.cpp | swang1112/Markov_Switching_SVAR | 2cf0769f4f2608aa43ab7631ff24735873a59ed7 | [
"MIT"
] | null | null | null | fun/kl_fast.cpp | swang1112/Markov_Switching_SVAR | 2cf0769f4f2608aa43ab7631ff24735873a59ed7 | [
"MIT"
] | 1 | 2021-07-03T09:19:56.000Z | 2021-07-12T20:10:53.000Z | fun/kl_fast.cpp | swang1112/Markov_Switching_SVAR | 2cf0769f4f2608aa43ab7631ff24735873a59ed7 | [
"MIT"
] | 1 | 2022-01-11T16:04:26.000Z | 2022-01-11T16:04:26.000Z | #include <RcppArmadillo.h>
#include <typeinfo>
// [[Rcpp::depends(RcppArmadillo)]]
// [[Rcpp::plugins("cpp11")]]
using namespace Rcpp;
// choose 2 int from N (as index)
arma::imat choose2_fast(int &N)
{
arma::imat Out(N * (N - 1) / 2, 2);
int c = 0;
for (int i = 0; i < (N - 1); i++)
{
for (int j = i + 1;... | 23.566474 | 106 | 0.554329 | [
"vector",
"model"
] |
1522dc6441cae8c640b41af913b603eecc85c1d2 | 8,609 | cpp | C++ | engine/physics/src/physics/physics.cpp | hapass/defold | fd3602f27a2596a2ad62bf9a70ae9d7acda24ad8 | [
"Apache-2.0"
] | 1 | 2020-05-19T15:47:07.000Z | 2020-05-19T15:47:07.000Z | engine/physics/src/physics/physics.cpp | CagdasErturk/defold | 28e5eb635042d37e17cda4d33e47fce2b569cab8 | [
"Apache-2.0"
] | null | null | null | engine/physics/src/physics/physics.cpp | CagdasErturk/defold | 28e5eb635042d37e17cda4d33e47fce2b569cab8 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The Defold Foundation
// Licensed under the Defold License version 1.0 (the "License"); you may not use
// this file except in compliance with the License.
//
// You may obtain a copy of the License, together with FAQs at
// https://www.defold.com/license
//
// Unless required by applicable law or a... | 34.436 | 119 | 0.574283 | [
"object"
] |
15248baac7eccac1b8db3fbcb1e0255e6fe6b1ba | 13,997 | inl | C++ | include/CoreLib/Map.inl | AntoineJT/BurgWar | 8e435bd58dda0610d7dfc3ba6d313bd443c9b4b8 | [
"MIT"
] | null | null | null | include/CoreLib/Map.inl | AntoineJT/BurgWar | 8e435bd58dda0610d7dfc3ba6d313bd443c9b4b8 | [
"MIT"
] | null | null | null | include/CoreLib/Map.inl | AntoineJT/BurgWar | 8e435bd58dda0610d7dfc3ba6d313bd443c9b4b8 | [
"MIT"
] | null | null | null | // Copyright (C) 2016 Jérôme Leclercq
// This file is part of the "Burgwar" project
// For conditions of distribution and use, see copyright notice in Prerequisites.hpp
#include <CoreLib/Map.hpp>
namespace bw
{
inline Map::Map() :
m_freeUniqueId(1),
m_isValid(false)
{
}
inline Map::Map(MapInfo mapInfo) :
m_fr... | 28.391481 | 159 | 0.711438 | [
"vector"
] |
15337d56defc952862761bcecea3b25d044752a1 | 1,007 | cpp | C++ | problem_7/problem_7.cpp | MBM1607/euler-project | 1efe666adcb84636b1fa36afeda2a60eca03c62f | [
"MIT"
] | null | null | null | problem_7/problem_7.cpp | MBM1607/euler-project | 1efe666adcb84636b1fa36afeda2a60eca03c62f | [
"MIT"
] | null | null | null | problem_7/problem_7.cpp | MBM1607/euler-project | 1efe666adcb84636b1fa36afeda2a60eca03c62f | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cstdint>
#include <cmath>
using std::cin;
using std::cout;
using std::endl;
using std::vector;
using std::uint64_t;
using std::sqrt;
// Get nth prime number
uint64_t n_prime(int n) {
if (n == 1)
return 2;
uint64_t max_size = n;
while (true) {
uint64_t num_prime ... | 20.14 | 75 | 0.587885 | [
"vector"
] |
153ea5921107f4a1f71d2d184b09128191a4bcaf | 14,512 | hpp | C++ | packet.hpp | memade/common | ffca53a488118bd927a867310ced35b6b1e5f6d1 | [
"MIT"
] | null | null | null | packet.hpp | memade/common | ffca53a488118bd927a867310ced35b6b1e5f6d1 | [
"MIT"
] | null | null | null | packet.hpp | memade/common | ffca53a488118bd927a867310ced35b6b1e5f6d1 | [
"MIT"
] | null | null | null | #if !defined(AFX_SKSTU_packet_H__FE4AB_D5E85A09_412DB504D138CC2_F887__HEAD__)
#define AFX_SKSTU_packet_H__FE4AB_D5E85A09_412DB504D138CC2_F887__HEAD__
#include <map>
#include <vector>
#include <string>
#include "gpl/rapidjson/reader.h"
#include "gpl/rapidjson/document.h"
#include "gpl/rapidjson/rapidjson.h"
#include ... | 36.099502 | 156 | 0.666759 | [
"vector"
] |
15425f4416fb0dc75f6ec3c1513acc419b901de8 | 1,733 | cpp | C++ | PermutationsII.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | 3 | 2017-11-27T03:01:50.000Z | 2021-03-13T08:14:00.000Z | PermutationsII.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | PermutationsII.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | //class Solution {
// public:
// void dfs(vector<int> &nums, int now) {
// if (now >= nums.size()) {
// result.push_back(nums);
// return;
// }
// for (int i = now; i < nums.size(); i++) {
// bool found = false;
// fo... | 31.509091 | 65 | 0.394114 | [
"vector"
] |
1543832d3c645dd24a731d9ed4a76ed13d28b073 | 17,821 | cpp | C++ | PSME/agent/pnc/src/tools/gas_tool.cpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | 5 | 2021-10-07T15:36:37.000Z | 2022-03-01T07:21:49.000Z | PSME/agent/pnc/src/tools/gas_tool.cpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | null | null | null | PSME/agent/pnc/src/tools/gas_tool.cpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | 1 | 2022-03-01T07:21:51.000Z | 2022-03-01T07:21:51.000Z | /*!
* @section LICENSE
*
* @copyright
* Copyright (c) 2016-2017 Intel Corporation
*
* @copyright
* 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
*
* @copyright
* http://www.apach... | 44.330846 | 120 | 0.695191 | [
"model"
] |
15438d29aad3f65caeecb761c2fad53279d4ade2 | 7,189 | hpp | C++ | server/api_manager.hpp | photonmaster/scymnus | bcbf580091a730c63e15b67b6331705a281ba20b | [
"MIT"
] | 7 | 2021-08-19T01:11:21.000Z | 2021-08-31T15:25:51.000Z | server/api_manager.hpp | photonmaster/scymnus | bcbf580091a730c63e15b67b6331705a281ba20b | [
"MIT"
] | null | null | null | server/api_manager.hpp | photonmaster/scymnus | bcbf580091a730c63e15b67b6331705a281ba20b | [
"MIT"
] | null | null | null | #pragma once
#include <set>
#include <typeindex>
#include <unordered_map>
#include "doc_traits.hpp"
#include "external/json.hpp"
#include "settings.hpp"
#include "version.hpp"
namespace scymnus {
using json = nlohmann::json;
class api_manager {
std::string host_;
std::string base_path_{"/"};
std::vecto... | 29.706612 | 99 | 0.57741 | [
"vector"
] |
154dc0125e49da4e717deae635f1f80c4b84877d | 3,111 | cpp | C++ | libsrc/protoserver/ProtoServer.cpp | Bosken85/hyperion.ng | 55253b53224b2598b454e561127c23376ff73e2e | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 3 | 2017-01-11T07:03:13.000Z | 2020-09-29T05:17:21.000Z | libsrc/protoserver/ProtoServer.cpp | Bosken85/hyperion.ng | 55253b53224b2598b454e561127c23376ff73e2e | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 4 | 2018-01-02T23:19:58.000Z | 2019-08-31T10:02:52.000Z | libsrc/protoserver/ProtoServer.cpp | Bosken85/hyperion.ng | 55253b53224b2598b454e561127c23376ff73e2e | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 7 | 2018-01-02T21:30:25.000Z | 2018-10-09T07:28:43.000Z | #include <protoserver/ProtoServer.h>
#include "ProtoClientConnection.h"
// util
#include <utils/NetOrigin.h>
#include <utils/GlobalSignals.h>
// qt
#include <QJsonObject>
#include <QTcpServer>
#include <QTcpSocket>
ProtoServer::ProtoServer(const QJsonDocument& config, QObject* parent)
: QObject(parent)
, _server(n... | 25.925 | 132 | 0.726776 | [
"object"
] |
1553017a8e01cd4bc634e4f628ef1458e9f17bbf | 29,541 | cc | C++ | runtime/verifier/reg_type_cache.cc | Paschalis/android-llvm | 317f7fd4b736a0511a2273a2487915c34cf8933e | [
"Apache-2.0"
] | 20 | 2021-06-24T16:38:42.000Z | 2022-01-20T16:15:57.000Z | runtime/verifier/reg_type_cache.cc | Paschalis/android-llvm | 317f7fd4b736a0511a2273a2487915c34cf8933e | [
"Apache-2.0"
] | null | null | null | runtime/verifier/reg_type_cache.cc | Paschalis/android-llvm | 317f7fd4b736a0511a2273a2487915c34cf8933e | [
"Apache-2.0"
] | 4 | 2021-11-03T06:01:12.000Z | 2022-02-24T02:57:31.000Z | /*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 40.972261 | 100 | 0.667039 | [
"object"
] |
1565f904d447718f61eacbd3f29fb85882b4d340 | 3,827 | hpp | C++ | dbscan.hpp | GreenAvocado92/SimpleDBSCAN | c642cfcc2364f362dbef5c8dea74c20b805142d6 | [
"Apache-2.0"
] | 1 | 2021-10-09T15:28:27.000Z | 2021-10-09T15:28:27.000Z | dbscan.hpp | GreenAvocado92/SimpleDBSCAN | c642cfcc2364f362dbef5c8dea74c20b805142d6 | [
"Apache-2.0"
] | null | null | null | dbscan.hpp | GreenAvocado92/SimpleDBSCAN | c642cfcc2364f362dbef5c8dea74c20b805142d6 | [
"Apache-2.0"
] | null | null | null | #ifndef DBSCAN_HPP_
#define DBSCAN_HPP_
#include "kNeighbor.hpp"
#include <iostream>
#include <string>
#include <limits>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Point_set_3.h>
#include <CGAL/IO/read_points.h>
#include <CGAL/IO/io.h>
#include <glog/logging.h>
class Dbscan {
typedef CGAL::Si... | 26.762238 | 94 | 0.543245 | [
"vector"
] |
d07dc85515a911a4e66b7664cceb656e1601d443 | 664 | cpp | C++ | collection/cp/Algorithm_Collection-master/delete_to_palindrom.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | 1 | 2019-03-24T13:12:01.000Z | 2019-03-24T13:12:01.000Z | collection/cp/Algorithm_Collection-master/delete_to_palindrom.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | collection/cp/Algorithm_Collection-master/delete_to_palindrom.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <cmath>
#include <vector>
#include <string>
using namespace std;
int delete_to_palindrome( string str) {
int max_length = 1;
if (str.length() == 0)
{
return 0;
}
if (str.length() == 1) {
return 1;
}
int n = str.length();
if(str[0] ==str[n-1]) {
... | 19.529412 | 105 | 0.605422 | [
"vector"
] |
d08a11039a674eba9b6eeb6c58ef431a734c2db0 | 22,876 | cpp | C++ | source/kiwi-core/Codegen/Builder.cpp | alurin/kiwi | d428b6e70fb79f80caa096916dd570f4fc9725cf | [
"MIT"
] | null | null | null | source/kiwi-core/Codegen/Builder.cpp | alurin/kiwi | d428b6e70fb79f80caa096916dd570f4fc9725cf | [
"MIT"
] | null | null | null | source/kiwi-core/Codegen/Builder.cpp | alurin/kiwi | d428b6e70fb79f80caa096916dd570f4fc9725cf | [
"MIT"
] | null | null | null | /*
*******************************************************************************
* Copyright (C) 2012 Vasiliy Sheredeko
* MIT license. All Rights Reserved.
*******************************************************************************
*/
#include "Builder.hpp"
#include "Emitter.hpp"
#include "../ModuleImpl.... | 39.784348 | 159 | 0.637218 | [
"object",
"vector"
] |
d08cc4dc50ed1def2c87301e109be05308a8de3f | 496 | cpp | C++ | Texas Hold'em/Texas Hold'em/Rules.cpp | Dershlibob/TexasHoldem | 1da892a92c655dde38065d132eef941b27749666 | [
"MIT"
] | null | null | null | Texas Hold'em/Texas Hold'em/Rules.cpp | Dershlibob/TexasHoldem | 1da892a92c655dde38065d132eef941b27749666 | [
"MIT"
] | null | null | null | Texas Hold'em/Texas Hold'em/Rules.cpp | Dershlibob/TexasHoldem | 1da892a92c655dde38065d132eef941b27749666 | [
"MIT"
] | null | null | null | #include "Rules.h"
int Rules::EvaluateHand(std::vector<card> PlayerHand)
{
IsFlush(PlayerHand);
return 0;
}
bool Rules::IsFlush(std::vector<card> PlayerHand)
{
for (card Suit : PlayerHand)
{
int sameCards = 0;
for (card Hand : PlayerHand)
{
if (Suit.suit == Hand.suit)
{
sameC... | 13.405405 | 54 | 0.572581 | [
"vector"
] |
d092a291b0517052645647d6da6088d6993fd6a8 | 3,145 | cpp | C++ | UVA/10173.cpp | CodingYue/acm-icpc | 667596efae998f5480819870714c37e9af0740eb | [
"Unlicense"
] | 1 | 2015-11-03T09:31:07.000Z | 2015-11-03T09:31:07.000Z | UVA/10173.cpp | CodingYue/acm-icpc | 667596efae998f5480819870714c37e9af0740eb | [
"Unlicense"
] | null | null | null | UVA/10173.cpp | CodingYue/acm-icpc | 667596efae998f5480819870714c37e9af0740eb | [
"Unlicense"
] | null | null | null | // File Name: 10173.cpp
// Author: YangYue
// Created Time: Fri Oct 10 11:32:27 2014
//headers
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <ctime>
#include <string>
#include <queue>
#include <set>
#include <map>
#include <iostream>
#include ... | 24.379845 | 90 | 0.552941 | [
"vector"
] |
d095c1004eeececadcea649dfe9cf0707e81c3cd | 1,294 | cpp | C++ | leetcode/leetcode_16.cpp | xufor/dsa-hustle | 00ca691ddc4794a5a7b4439a59c463c4f0444a7a | [
"MIT"
] | null | null | null | leetcode/leetcode_16.cpp | xufor/dsa-hustle | 00ca691ddc4794a5a7b4439a59c463c4f0444a7a | [
"MIT"
] | null | null | null | leetcode/leetcode_16.cpp | xufor/dsa-hustle | 00ca691ddc4794a5a7b4439a59c463c4f0444a7a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define nl '\n'
#define sp " "
#define limit 1000000007
typedef long long ll;
using namespace std;
int threeSumClosest(vector<int>& nums, int target) {
sort(nums.begin(), nums.end());
int sum = 9999, j, k, cur_sum;
for(int i = 0; i < nums.size()-2; i++) {
j = i + 1;
... | 22.701754 | 59 | 0.42272 | [
"vector"
] |
d0998dfd6ba8527ba4d4b3afb340af6b6474baaa | 1,272 | cpp | C++ | apps/tests/test_mixer.cpp | ckae95/SIRIUS | ecb7edb4f19577c85b0cec82aa6a0d5374ee1f33 | [
"BSD-2-Clause"
] | null | null | null | apps/tests/test_mixer.cpp | ckae95/SIRIUS | ecb7edb4f19577c85b0cec82aa6a0d5374ee1f33 | [
"BSD-2-Clause"
] | null | null | null | apps/tests/test_mixer.cpp | ckae95/SIRIUS | ecb7edb4f19577c85b0cec82aa6a0d5374ee1f33 | [
"BSD-2-Clause"
] | null | null | null | #include <sirius.h>
using namespace sirius;
void test_mixer(Mixer<double>& mixer)
{
int N = 10;
std::vector<double> a(N), b(N);
for (int i = 0; i < N; i++)
{
a[i] = i + 1;
b[i] = i + 2;
}
double beta = mixer.beta();
printf("beta: %f\n", beta);
for (int i = 0; i < N; i... | 21.559322 | 110 | 0.532233 | [
"vector"
] |
d0a3ae227f596161c357d521fed9fa683248fb43 | 4,965 | cpp | C++ | example_apps/pagerank.cpp | libingzheren/GraphChi | cd960212ebc171bacbd3169e4c9bcd44e680aadb | [
"Apache-2.0"
] | 1 | 2020-12-27T13:52:57.000Z | 2020-12-27T13:52:57.000Z | example_apps/pagerank.cpp | mrgloom/graphchi-cpp | 7dfaa37a9da8f5d8901fc95435f98fb8844c7217 | [
"Apache-2.0"
] | null | null | null | example_apps/pagerank.cpp | mrgloom/graphchi-cpp | 7dfaa37a9da8f5d8901fc95435f98fb8844c7217 | [
"Apache-2.0"
] | null | null | null | /**
* @file
* @author Aapo Kyrola <akyrola@cs.cmu.edu>
* @version 1.0
*
* @section LICENSE
*
* Copyright [2012] [Aapo Kyrola, Guy Blelloch, Carlos Guestrin / Carnegie Mellon University]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... | 33.547297 | 113 | 0.596777 | [
"vector"
] |
d0b63516903949bb6246bf8b4740a0f6eb13d425 | 14,216 | cc | C++ | valhalla/test/mapmatch.cc | arminHadzic/Panorama_Valhalla | e20e73b7b8256901d9e5065b7b9aa2c0988fea68 | [
"MIT"
] | null | null | null | valhalla/test/mapmatch.cc | arminHadzic/Panorama_Valhalla | e20e73b7b8256901d9e5065b7b9aa2c0988fea68 | [
"MIT"
] | null | null | null | valhalla/test/mapmatch.cc | arminHadzic/Panorama_Valhalla | e20e73b7b8256901d9e5065b7b9aa2c0988fea68 | [
"MIT"
] | 1 | 2019-08-03T00:58:58.000Z | 2019-08-03T00:58:58.000Z | #include "test.h"
#include <vector>
#include <random>
#include <utility>
#include <iostream>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include "meili/map_matcher_factory.h"
#include "meili/map_matcher.h"
#include "tyr/actor.h"
#include "midgard/encoded.h"
#include "midg... | 46.763158 | 198 | 0.633723 | [
"geometry",
"shape",
"vector"
] |
d0ba16726bc8fece261bfd775e4fb5715f7303d7 | 2,065 | cpp | C++ | Contests/USACO Training/Ch 2/2.1 castle.cpp | nocrizwang/USACO | 8a922f8d4b3bc905da97f53f9a447debe97d5e81 | [
"CC0-1.0"
] | 1,760 | 2017-05-21T21:07:06.000Z | 2022-03-29T13:15:08.000Z | Contests/USACO Training/Ch 2/2.1 castle.cpp | nocrizwang/USACO | 8a922f8d4b3bc905da97f53f9a447debe97d5e81 | [
"CC0-1.0"
] | 12 | 2018-01-24T02:41:53.000Z | 2022-03-17T13:09:26.000Z | Contests/USACO Training/Ch 2/2.1 castle.cpp | nocrizwang/USACO | 8a922f8d4b3bc905da97f53f9a447debe97d5e81 | [
"CC0-1.0"
] | 473 | 2017-07-06T04:53:41.000Z | 2022-03-28T13:03:28.000Z | /*
ID: bqi3431
PROG: castle
LANG: C++11
*/
//#include <iostream>
#include <fstream>
#include <vector>
#include <queue>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ... | 23.735632 | 96 | 0.550605 | [
"vector"
] |
d0beef7419976efa76613520e014bfd5bbbf60dd | 22,166 | cpp | C++ | src/layer/x86/convolution1d_x86.cpp | YoungSx/ncnn | 531d26ac41ff5aec19171804899f5d8da4e3ef1f | [
"BSD-3-Clause"
] | 1 | 2022-03-10T02:57:15.000Z | 2022-03-10T02:57:15.000Z | src/layer/x86/convolution1d_x86.cpp | YoungSx/ncnn | 531d26ac41ff5aec19171804899f5d8da4e3ef1f | [
"BSD-3-Clause"
] | 9 | 2020-03-17T13:15:18.000Z | 2020-08-20T09:17:48.000Z | src/layer/x86/convolution1d_x86.cpp | YoungSx/ncnn | 531d26ac41ff5aec19171804899f5d8da4e3ef1f | [
"BSD-3-Clause"
] | null | null | null | // Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... | 33.738204 | 156 | 0.443066 | [
"vector"
] |
d0c29904e8ad17ad608859b9abdf3d77a47337c7 | 22,361 | cpp | C++ | OsiInterface/Functions/CharacterFunctions.cpp | wuergrob/ositools | 4161bd129e691496dcd2aa1e9b8bdd889a61168f | [
"MIT"
] | null | null | null | OsiInterface/Functions/CharacterFunctions.cpp | wuergrob/ositools | 4161bd129e691496dcd2aa1e9b8bdd889a61168f | [
"MIT"
] | null | null | null | OsiInterface/Functions/CharacterFunctions.cpp | wuergrob/ositools | 4161bd129e691496dcd2aa1e9b8bdd889a61168f | [
"MIT"
] | null | null | null | #include <stdafx.h>
#include "FunctionLibrary.h"
#include <OsirisProxy.h>
#include "PropertyMaps.h"
namespace dse::esv
{
FunctionHandle SkillIteratorEventHandle;
namespace func
{
CharacterDynamicStat * GetCharacterDynamicStat(esv::Character * character, uint32_t index)
{
if (character->Stats == nullptr) {
... | 33.983283 | 111 | 0.697554 | [
"object",
"vector"
] |
d0c433df168c26e51d8c861a84587a4edd280c4c | 5,528 | cpp | C++ | Code/Framework/AzCore/AzCore/Serialization/EditContext.cpp | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 8 | 2021-08-31T02:14:19.000Z | 2021-12-28T19:20:59.000Z | Code/Framework/AzCore/AzCore/Serialization/EditContext.cpp | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 8 | 2021-07-12T13:55:00.000Z | 2021-10-04T14:53:21.000Z | Code/Framework/AzCore/AzCore/Serialization/EditContext.cpp | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-16T05:06:18.000Z | 2021-09-16T05:06:18.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzCore/Serialization/EditContext.h>
namespace AZ
{
//==============================... | 34.335404 | 125 | 0.403039 | [
"vector",
"3d"
] |
d0c45d16c080045d03c78d93f21087f09eb26c42 | 6,502 | cpp | C++ | src/CatroModulo_CM-7.cpp | CardinalModules/catro-modulo | bf6f969c5f7fff6a419a54197fb4318671281ad5 | [
"BSD-3-Clause"
] | 17 | 2019-03-08T01:49:29.000Z | 2020-07-07T00:30:03.000Z | src/CatroModulo_CM-7.cpp | CardinalModules/catro-modulo | bf6f969c5f7fff6a419a54197fb4318671281ad5 | [
"BSD-3-Clause"
] | 20 | 2019-03-08T11:56:32.000Z | 2021-12-20T23:55:30.000Z | src/CatroModulo_CM-7.cpp | CardinalModules/catro-modulo | bf6f969c5f7fff6a419a54197fb4318671281ad5 | [
"BSD-3-Clause"
] | 3 | 2019-04-30T03:08:07.000Z | 2022-02-25T20:01:33.000Z | #include "CatroModulo.hpp"
//Catro-Module CM-7: vcClk--
struct CM7Module : Module {
enum ParamIds {
PARAM_RST,
NUM_PARAMS
};
enum InputIds {
INPUT_BPM,
INPUT_BPM2,
INPUT_RST,
NUM_INPUTS
};
enum OutputIds {
OUTPUT_CLKX1,
OUTPUT_CLK_2,
OUTPUT_CLK_3,
OUTPUT_CLK_4,
OUTPUT_CLK_5,
OUTPUT_CLK_... | 39.889571 | 112 | 0.729006 | [
"model"
] |
d0ca8133aa99b2b3091a8cef03bcf14460837f93 | 8,177 | cpp | C++ | src/homekit.cpp | Tao173/WBlinds | 0533e56bb915053abff8c75c87ef8d068f818c86 | [
"MIT"
] | 5 | 2021-06-29T23:38:39.000Z | 2022-03-11T08:27:09.000Z | src/homekit.cpp | Tao173/WBlinds | 0533e56bb915053abff8c75c87ef8d068f818c86 | [
"MIT"
] | 25 | 2021-07-03T03:44:12.000Z | 2021-07-12T04:56:36.000Z | src/homekit.cpp | Tao173/WBlinds | 0533e56bb915053abff8c75c87ef8d068f818c86 | [
"MIT"
] | 1 | 2022-01-22T14:06:22.000Z | 2022-01-22T14:06:22.000Z | #include "homekit.h"
hap_acc_t* accessory;
hap_serv_t* service;
const int kPosStateMin = 0; // ”Going to the minimum value specified in metadata” (UP, target < pos)
const int kPosStateMax = 1; // ”Going to the maximum value specified in metadata” (DOWN, target > pos)
const int kPosStateStopped = 2; // ”Stopped” (STOP... | 28.294118 | 110 | 0.713098 | [
"object",
"model"
] |
d0d33a374eb93adea1fac56a0f0464db9b0a6eec | 747 | hpp | C++ | game.hpp | jasonhutchens/kranzky_ice | 8b1cf40f7948ac8811cdf49729d1df0acb7fc611 | [
"Unlicense"
] | 4 | 2016-06-05T04:36:12.000Z | 2016-08-21T20:11:49.000Z | game.hpp | kranzky/kranzky_ice | 8b1cf40f7948ac8811cdf49729d1df0acb7fc611 | [
"Unlicense"
] | null | null | null | game.hpp | kranzky/kranzky_ice | 8b1cf40f7948ac8811cdf49729d1df0acb7fc611 | [
"Unlicense"
] | null | null | null | //==============================================================================
#ifndef ArseGame
#define ArseGame
#pragma once
#include <context.hpp>
#include <list>
class hgeSprite;
//------------------------------------------------------------------------------
class Game : public Context
{
pub... | 18.675 | 81 | 0.385542 | [
"render"
] |
d0dba44572338092b1efbe12bd7a5400a2891086 | 661 | cpp | C++ | Leetcode/0973. K Closest Points to Origin/0973.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/0973. K Closest Points to Origin/0973.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/0973. K Closest Points to Origin/0973.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> kClosest(vector<vector<int>>& points, int K) {
vector<vector<int>> ans;
auto compare = [&](const vector<int>& a, const vector<int>& b) {
return squareDist(a) < squareDist(b);
};
priority_queue<vector<int>, vector<vector<int>>, decltype(compare)> maxH... | 23.607143 | 80 | 0.579425 | [
"vector"
] |
d0ded591d42c656ad021b2794968f261a3a0756d | 465 | cpp | C++ | C++/FibonacciSequence.cpp | VrunArya/Hacktoberfest2021 | 5e739e52310dabf8b131abe5ecf906e13711b9d6 | [
"MIT"
] | 1 | 2022-03-20T14:32:08.000Z | 2022-03-20T14:32:08.000Z | C++/FibonacciSequence.cpp | VrunArya/Hacktoberfest2021 | 5e739e52310dabf8b131abe5ecf906e13711b9d6 | [
"MIT"
] | null | null | null | C++/FibonacciSequence.cpp | VrunArya/Hacktoberfest2021 | 5e739e52310dabf8b131abe5ecf906e13711b9d6 | [
"MIT"
] | 1 | 2021-10-05T09:55:35.000Z | 2021-10-05T09:55:35.000Z | #include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define MOD 1000000007
using namespace std;
int n;
vector<ll> fib;
// Program to print Fibonacci Sequence first n terms MODULO 1e9+7
int main()
{
cin >> n;
fib = vector<ll> (n+1);
fib[1] = fib[2] = 1;
for (int i = 1; i <= n; ++i)
{
if(i <= 2)... | 14.53125 | 65 | 0.544086 | [
"vector"
] |
d0e4ef217934619de2982324971cbf809e7a501f | 4,507 | cpp | C++ | src/miner.cpp | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | src/miner.cpp | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | src/miner.cpp | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | #include "miner.hpp"
#include "generator.hpp"
#include "interpreter.hpp"
#include "mutator.hpp"
#include "oeis_manager.hpp"
#include "optimizer.hpp"
#include "parser.hpp"
#include "program_util.hpp"
#include <fstream>
#include <random>
#include <sstream>
#include <unordered_set>
Miner::Miner( const Settings &setting... | 27.150602 | 113 | 0.58398 | [
"vector"
] |
d0e51b06011a8305ab84c2a90e9a4b02b7832d36 | 2,726 | cpp | C++ | src/types/OE_Light.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | null | null | null | src/types/OE_Light.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | 22 | 2020-05-19T18:18:45.000Z | 2022-03-31T12:11:08.000Z | src/types/OE_Light.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | null | null | null | #include <types/OE_Light.h>
#include <types/OE_World.h>
using namespace std;
std::vector<float> OE_RGBColor::to_arr() const{
return {r, g, b};
}
OE_Light::OE_Light(){
this->light_type = 0;
this->fov = 0.0f;
this->range = 0.0f;
this->intensity = 0.0f;
}
OE_Light::OE_Light(const string&... | 25.961905 | 147 | 0.607117 | [
"vector"
] |
d0f7649a93183e7daa54e6b8b3230c4d94e307e2 | 10,363 | cpp | C++ | samples/InteractiveSampleUWP/InteractiveSampleUWP/App.xaml.cpp | benank/interactive-cpp | 14f73197c7fb421261834997ada0b457cd4bff05 | [
"MIT"
] | null | null | null | samples/InteractiveSampleUWP/InteractiveSampleUWP/App.xaml.cpp | benank/interactive-cpp | 14f73197c7fb421261834997ada0b457cd4bff05 | [
"MIT"
] | null | null | null | samples/InteractiveSampleUWP/InteractiveSampleUWP/App.xaml.cpp | benank/interactive-cpp | 14f73197c7fb421261834997ada0b457cd4bff05 | [
"MIT"
] | null | null | null | //
// App.xaml.cpp
// Implementation of the App class.
//
#include "pch.h"
#include "MainPage.xaml.h"
#include "..\..\..\source\interactivity.h"
// STL includes
#include <chrono>
#include <thread>
#include <iostream>
#include <codecvt>
#include <string>
std::wstring_convert<std::codecvt_utf8_utf16... | 36.489437 | 241 | 0.689472 | [
"object"
] |
d0fb38d45bf4bd7e616068ed1b1970f0bfde4196 | 557 | cpp | C++ | c_src/erlimage/erlimage_transform.cpp | eyedouble/erlimage | cfef24124a2f10759db20d7595ea4d188e521b55 | [
"MIT"
] | null | null | null | c_src/erlimage/erlimage_transform.cpp | eyedouble/erlimage | cfef24124a2f10759db20d7595ea4d188e521b55 | [
"MIT"
] | null | null | null | c_src/erlimage/erlimage_transform.cpp | eyedouble/erlimage | cfef24124a2f10759db20d7595ea4d188e521b55 | [
"MIT"
] | null | null | null | #include "erlimage.h"
#include "erlimage.h"
class Erlimage_Transform {
public:
/* Import Erlimage interop data object */
static ERLIMAGE_L_DO
rescale ( ERLIMAGE_L_DO Input, int Width, int Height, int Algorithm ) {
ERLIMAGE_L_DO Result = {1, 0};
Input.Di... | 26.52381 | 90 | 0.552962 | [
"object"
] |
cba3ed802f71c4853cd5600c6741a09c5a73f6cf | 8,722 | cc | C++ | test/cpp/interop/istio_echo_server.cc | PJB2TY/grpc | 1630efd8ab3d2ff4b006f1288fde1be5c29dc651 | [
"Apache-2.0"
] | null | null | null | test/cpp/interop/istio_echo_server.cc | PJB2TY/grpc | 1630efd8ab3d2ff4b006f1288fde1be5c29dc651 | [
"Apache-2.0"
] | null | null | null | test/cpp/interop/istio_echo_server.cc | PJB2TY/grpc | 1630efd8ab3d2ff4b006f1288fde1be5c29dc651 | [
"Apache-2.0"
] | null | null | null | //
// Copyright 2022 gRPC authors.
//
// 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... | 38.422907 | 79 | 0.676336 | [
"vector"
] |
cba85c016672743ab98aaa523263aee3413c1b65 | 4,252 | cpp | C++ | main.cpp | hana-alice/SoftRenderer | bcb4a598801011e1cbed939cb4e4d86aae99638a | [
"MIT"
] | null | null | null | main.cpp | hana-alice/SoftRenderer | bcb4a598801011e1cbed939cb4e4d86aae99638a | [
"MIT"
] | null | null | null | main.cpp | hana-alice/SoftRenderer | bcb4a598801011e1cbed939cb4e4d86aae99638a | [
"MIT"
] | null | null | null | #include "tgaimage.h"
#include "model.h"
#include <limits>
#include "softgl.h"
#include "mathmatic.h"
#include "phongshader.h"
#include "depthshader.h"
const TGAColor white = TGAColor(255, 255, 255, 255);
const TGAColor red = TGAColor(255, 0, 0, 255);
const TGAColor green = TGAColor(0, 255, 0, 255);
Vec3f light_dir(1... | 25.011765 | 104 | 0.611242 | [
"model"
] |
cba98679e4b2c24af81edce700ced8e65c48b3f9 | 1,739 | hpp | C++ | fs/fileperms.hpp | jonathanrlemos/CloudSync | fdf90cdf74f7598ccfccc0a688babef9526e07b2 | [
"MIT"
] | 1 | 2019-10-09T05:28:43.000Z | 2019-10-09T05:28:43.000Z | fs/fileperms.hpp | jonathan-lemos/CloudSync | fdf90cdf74f7598ccfccc0a688babef9526e07b2 | [
"MIT"
] | null | null | null | fs/fileperms.hpp | jonathan-lemos/CloudSync | fdf90cdf74f7598ccfccc0a688babef9526e07b2 | [
"MIT"
] | null | null | null | /** @file fileperms.hpp
* @brief File permission functions.
* @copyright Copyright (c) 2018 Jonathan Lemos
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#ifndef __FILEPERMS_HPP
#define __FILEPERMS_HPP
#include <vector>
namespace Cl... | 33.442308 | 127 | 0.752156 | [
"vector"
] |
cbaaa0eec6a8c5fdb64b57ec9278157a208895a9 | 14,830 | cpp | C++ | src/core/curve.cpp | onecoolx/picasso | 65cc59b4517e1a8894eed0fbda6514d90220cab4 | [
"BSD-3-Clause"
] | 269 | 2015-01-31T11:08:23.000Z | 2022-03-30T10:06:21.000Z | src/core/curve.cpp | onecoolx/picasso | 65cc59b4517e1a8894eed0fbda6514d90220cab4 | [
"BSD-3-Clause"
] | 2 | 2016-04-16T09:47:46.000Z | 2019-03-28T04:05:58.000Z | src/core/curve.cpp | onecoolx/picasso | 65cc59b4517e1a8894eed0fbda6514d90220cab4 | [
"BSD-3-Clause"
] | 47 | 2015-01-31T21:55:29.000Z | 2022-03-07T11:08:14.000Z | /* Picasso - a vector graphics library
*
* Copyright (C) 2011 Zhang Ji Peng
* Contact: onecoolx@gmail.com
*/
#include "common.h"
#include "math_type.h"
#include "curve.h"
namespace picasso {
const scalar curve_collinearity_epsilon = FLT_TO_SCALAR(1e-30f);
const scalar curve_angle_tolerance_epsilon = FLT_T... | 28.74031 | 141 | 0.491571 | [
"vector"
] |
cbac260303d70f8c2a6682f6d0aef9d84eb2ee84 | 3,426 | hxx | C++ | include/log_entry.hxx | catFurr/cornerstone | 77601d6beb447e371a181ac692dc2c079ddd8cb9 | [
"BSL-1.0",
"Apache-2.0"
] | 219 | 2016-10-13T11:03:19.000Z | 2022-03-25T07:20:27.000Z | include/log_entry.hxx | catFurr/cornerstone | 77601d6beb447e371a181ac692dc2c079ddd8cb9 | [
"BSL-1.0",
"Apache-2.0"
] | 8 | 2017-10-08T01:20:25.000Z | 2021-03-02T05:13:53.000Z | include/log_entry.hxx | catFurr/cornerstone | 77601d6beb447e371a181ac692dc2c079ddd8cb9 | [
"BSL-1.0",
"Apache-2.0"
] | 56 | 2016-10-29T15:14:32.000Z | 2022-03-28T03:59:20.000Z | /*
* Copyright (c) 2016 - present Alpha Infra Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 30.052632 | 161 | 0.589317 | [
"object"
] |
cbbb0328636873eb17da0b04c18f894aed0c1caa | 3,159 | cpp | C++ | MMOCoreORB/src/server/zone/managers/stringid/StringIdManager.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/src/server/zone/managers/stringid/StringIdManager.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/src/server/zone/managers/stringid/StringIdManager.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | /*
* StringIdManager.cpp
*
* Created on: 25/12/2011
* Author: victor
*/
#include "StringIdManager.h"
#include "server/ServerCore.h"
#include "templates/string/StringFile.h"
#include "templates/manager/TemplateManager.h"
#include "templates/manager/DataArchiveStore.h"
#include "tre3/TreeArchive.h"
void Stri... | 25.475806 | 105 | 0.687559 | [
"vector"
] |
cbbbc2ed1d924776106723b5045535ef006fe5d5 | 7,424 | hpp | C++ | HuboPath/Operator.hpp | golems/HuboCan | eff17979148692359d6b81303fc0159723c958be | [
"BSD-2-Clause"
] | 1 | 2019-04-24T03:03:18.000Z | 2019-04-24T03:03:18.000Z | HuboPath/Operator.hpp | golems/HuboCan | eff17979148692359d6b81303fc0159723c958be | [
"BSD-2-Clause"
] | null | null | null | HuboPath/Operator.hpp | golems/HuboCan | eff17979148692359d6b81303fc0159723c958be | [
"BSD-2-Clause"
] | 2 | 2015-06-29T19:08:34.000Z | 2019-04-24T03:03:30.000Z | /*
* Copyright (c) 2015, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): Michael X. Grey <greyxmike@gmail.com>
*
* Humanoid Robotics Lab
*
* Directed by Prof. Mike Stilman <mstilman@cc.gatech.edu>
*
* This file is provided under the following "BSD-style" License:
* Redistribution an... | 33.29148 | 88 | 0.684806 | [
"vector"
] |
cbc2f98e64125043bbb51c7da9788ca4dfbae20d | 17,063 | cc | C++ | src/developer/debug/zxdb/expr/pretty_type.cc | liexusong/fuchsia | 81897680af92a1848a063e3c20ff3a4892ccff07 | [
"BSD-2-Clause"
] | 14 | 2020-10-25T05:48:36.000Z | 2021-09-20T02:46:20.000Z | src/developer/debug/zxdb/expr/pretty_type.cc | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | 56 | 2021-06-03T03:16:25.000Z | 2022-03-20T01:07:44.000Z | src/developer/debug/zxdb/expr/pretty_type.cc | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | 4 | 2020-12-28T17:04:45.000Z | 2022-03-12T03:20:44.000Z | // Copyright 2019 The Fuchsia 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 "src/developer/debug/zxdb/expr/pretty_type.h"
#include <lib/syslog/cpp/macros.h>
#include "src/developer/debug/shared/zx_status.h"
#include "src... | 43.307107 | 100 | 0.635469 | [
"object",
"vector"
] |
cbc863447e91ccf644848fcf8a1062727918898a | 3,304 | cpp | C++ | modules/common/src/img_loader.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 2 | 2021-02-22T11:36:33.000Z | 2021-07-20T11:31:08.000Z | modules/common/src/img_loader.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | null | null | null | modules/common/src/img_loader.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 3 | 2018-10-19T10:39:23.000Z | 2021-04-07T13:39:03.000Z | /****************************************************************************
**
** Copyright (C) 2018 TU Wien, ACIN, Vision 4 Robotics (V4R) group
** Contact: v4r.acin.tuwien.ac.at
**
** This file is part of V4R
**
** V4R is distributed under dual licenses - GPLv3 or closed source.
**
** GNU General Public License Usa... | 28.982456 | 101 | 0.675545 | [
"vector"
] |
cbc8d51d162641a2aea8a08603ad9d76e3908eec | 5,238 | hpp | C++ | src/Vulkan/Debug/Variable.hpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 1,570 | 2016-06-30T10:40:04.000Z | 2022-03-31T01:47:33.000Z | src/Vulkan/Debug/Variable.hpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 9 | 2017-01-16T07:09:08.000Z | 2020-08-25T18:28:59.000Z | src/Vulkan/Debug/Variable.hpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 253 | 2016-06-30T18:57:10.000Z | 2022-03-25T03:57:40.000Z | // Copyright 2019 The SwiftShader Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... | 25.182692 | 91 | 0.715349 | [
"vector"
] |
cbcb515663fa475b2b715b53c164ba44a0878f9b | 4,492 | cc | C++ | mindspore_serving/ccsrc/python/worker/servable_py.cc | mindspore-ai/serving | e32d989ce629b4bdbbf3f16fefb02b28dce2dc4c | [
"Apache-2.0"
] | 157 | 2020-12-10T09:42:48.000Z | 2021-12-02T09:27:48.000Z | mindspore_serving/ccsrc/python/worker/servable_py.cc | mindspore-ai/serving | e32d989ce629b4bdbbf3f16fefb02b28dce2dc4c | [
"Apache-2.0"
] | 1 | 2021-12-08T11:39:59.000Z | 2022-01-17T09:09:54.000Z | mindspore_serving/ccsrc/python/worker/servable_py.cc | mindspore-ai/serving | e32d989ce629b4bdbbf3f16fefb02b28dce2dc4c | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 41.592593 | 119 | 0.682992 | [
"vector",
"model"
] |
cbcecfc2829bd2341564f1e5b157fd10a2532530 | 2,415 | cpp | C++ | src/lib/utils/ct_utils.cpp | claudiushauptmann/botan | a4c62b3a79dd5066c1a6bea36fcc1ff8fe737e57 | [
"BSD-2-Clause"
] | 56 | 2019-04-25T19:06:11.000Z | 2022-03-25T20:26:25.000Z | src/lib/utils/ct_utils.cpp | claudiushauptmann/botan | a4c62b3a79dd5066c1a6bea36fcc1ff8fe737e57 | [
"BSD-2-Clause"
] | 184 | 2019-04-24T18:20:08.000Z | 2022-03-22T18:56:45.000Z | src/lib/utils/ct_utils.cpp | claudiushauptmann/botan | a4c62b3a79dd5066c1a6bea36fcc1ff8fe737e57 | [
"BSD-2-Clause"
] | 34 | 2019-04-03T15:21:16.000Z | 2022-03-20T04:26:53.000Z | /*
* (C) 2018 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/internal/ct_utils.h>
namespace Botan {
namespace CT {
secure_vector<uint8_t> copy_output(CT::Mask<uint8_t> bad_input,
const uint8_t input[],
... | 28.75 | 81 | 0.633954 | [
"vector"
] |
cbda3bc44a05599cc175e186664e332b66bc2671 | 2,350 | cpp | C++ | CC/CChef/4_FEMA2.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | 1 | 2020-10-12T08:03:20.000Z | 2020-10-12T08:03:20.000Z | CC/CChef/4_FEMA2.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | null | null | null | CC/CChef/4_FEMA2.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | null | null | null | //AC
#include <bits/stdc++.h>
#define LLI long long
using namespace std;
void solve(string s, LLI k) {
LLI p = 0, c = 0;
LLI n = s.size();
LLI sh[n+1], bk[n+1];
sh[0] = 0;
bk[0] = 0;
vector<LLI> i;
vector<LLI> m;
for (LLI j=0;j<n;j++) {
char ch = s[j];
sh[j+1] = sh[j... | 23.979592 | 67 | 0.286383 | [
"vector"
] |
cbdbc237c55e0532da276ed760e61308ecb26bea | 390 | cpp | C++ | src/librender/emitter.cpp | tizian/layer-laboratory | 008cc94b76127e9eb74227fcd3d0145da8ddec30 | [
"CNRI-Python"
] | 7 | 2020-07-24T03:19:59.000Z | 2022-03-30T10:56:12.000Z | src/librender/emitter.cpp | tizian/layer-laboratory | 008cc94b76127e9eb74227fcd3d0145da8ddec30 | [
"CNRI-Python"
] | 1 | 2021-04-07T22:30:23.000Z | 2021-04-08T00:55:36.000Z | src/librender/emitter.cpp | tizian/layer-laboratory | 008cc94b76127e9eb74227fcd3d0145da8ddec30 | [
"CNRI-Python"
] | 2 | 2020-06-08T08:25:09.000Z | 2021-04-05T22:13:08.000Z | #include <mitsuba/core/spectrum.h>
#include <mitsuba/render/emitter.h>
#include <mitsuba/render/endpoint.h>
NAMESPACE_BEGIN(mitsuba)
MTS_VARIANT Emitter<Float, Spectrum>::Emitter(const Properties &props) : Base(props) { }
MTS_VARIANT Emitter<Float, Spectrum>::~Emitter() { }
MTS_IMPLEMENT_CLASS_VARIANT(Emitter, Endpo... | 30 | 88 | 0.789744 | [
"render"
] |
cbdd6d60ad93370e5f45ec61470487ac7294a58b | 2,497 | cpp | C++ | gameswf/gameswf/gameswf_as_classes/as_number.cpp | trila/CCSWF | 65bd92e9f0daa9bb202d7b076627ce8fc9e62e10 | [
"Unlicense"
] | 1 | 2015-02-14T06:47:55.000Z | 2015-02-14T06:47:55.000Z | gameswf/gameswf/gameswf_as_classes/as_number.cpp | trila/CCSWF | 65bd92e9f0daa9bb202d7b076627ce8fc9e62e10 | [
"Unlicense"
] | null | null | null | gameswf/gameswf/gameswf_as_classes/as_number.cpp | trila/CCSWF | 65bd92e9f0daa9bb202d7b076627ce8fc9e62e10 | [
"Unlicense"
] | null | null | null | // as_number.cpp -- Vitaly Alexeev <tishka92@yahoo.com> 2008
// This source code has been donated to the Public Domain. Do
// whatever you want with it.
#include "as_number.h"
#include "as_string.h"
#include "gameswf_log.h"
namespace gameswf
{
// static builtins methods of Number class
static cons... | 20.467213 | 76 | 0.577893 | [
"object"
] |
cbe37bb068214bbd9c96b7d58c32d50d368891ae | 2,745 | cpp | C++ | computer_graphics/glengine2/ge2debugcamera.cpp | asgeir/old-school-projects | 96a502589c627e4556f9ee14fc1dc21ed53ce28a | [
"MIT"
] | null | null | null | computer_graphics/glengine2/ge2debugcamera.cpp | asgeir/old-school-projects | 96a502589c627e4556f9ee14fc1dc21ed53ce28a | [
"MIT"
] | null | null | null | computer_graphics/glengine2/ge2debugcamera.cpp | asgeir/old-school-projects | 96a502589c627e4556f9ee14fc1dc21ed53ce28a | [
"MIT"
] | null | null | null | #include "ge2debugcamera.h"
#include "ge2camera.h"
#include "ge2common.h"
#include "ge2renderer.h"
#include "ge2time.h"
#include "SDL_mouse.h"
using namespace ge2;
DebugCamera::DebugCamera()
{
m_root = new Node;
m_camera = new PerspectiveCamera(degToRad(40), geRenderer->width(), geRenderer->height(), 0.1f, 1000.... | 25.896226 | 153 | 0.688525 | [
"vector"
] |
cbe975d2efc777131ce1fd6fa56a692661689f31 | 32,147 | cpp | C++ | hackathon/LLF/neuron_factor_tree/neuron_factor_tree_tools.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | hackathon/LLF/neuron_factor_tree/neuron_factor_tree_tools.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | hackathon/LLF/neuron_factor_tree/neuron_factor_tree_tools.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | /*neuron_factor_tree_tools.cpp
*funcs for neuron_factor_tree struct.
*/
#include "neuron_factor_tree_plugin.h"
#include <QtGlobal>
void calculate_branches(const NeuronTree &neuron, vector<V3DLONG> &branches)
{
//calculate a node's branch num;
V3DLONG neuron_siz = neuron.listNeuron.size();
branches = vec... | 40.899491 | 225 | 0.668025 | [
"vector"
] |
cbed3fb62778bd4c7394c566fe86319af6848a72 | 1,946 | cpp | C++ | 07/01_bandwidth/04/main.cpp | HuSharp/parallel101 | 882a35c254538a64d3594d112caa6d1bb5315903 | [
"CC0-1.0"
] | 1,276 | 2021-12-11T05:21:48.000Z | 2022-03-31T15:30:45.000Z | 07/01_bandwidth/04/main.cpp | HuSharp/parallel101 | 882a35c254538a64d3594d112caa6d1bb5315903 | [
"CC0-1.0"
] | 7 | 2021-12-30T15:41:34.000Z | 2022-03-02T07:13:51.000Z | 07/01_bandwidth/04/main.cpp | HuSharp/parallel101 | 882a35c254538a64d3594d112caa6d1bb5315903 | [
"CC0-1.0"
] | 196 | 2021-12-12T08:15:36.000Z | 2022-03-31T07:15:23.000Z | #include <iostream>
#include <vector>
#include <cmath>
#include <cstring>
#include <cstdlib>
#include <array>
#include <benchmark/benchmark.h>
#include <x86intrin.h>
#include <omp.h>
constexpr size_t n = 1<<28;
std::vector<float> a(n); // 1GB
static float funcA(float x) {
return sqrtf(x) * x;
}
void BM_1funcA(... | 21.152174 | 40 | 0.556012 | [
"vector"
] |
cbf527ddc89a468877984025e9d7c90b479eddb6 | 1,641 | cpp | C++ | src/imagenes_panoramicass.cpp | SebsBarbas/Panoramic_Images | 8654307eb99809a8ec0d3b283369a2e6f9dcbb12 | [
"MIT"
] | null | null | null | src/imagenes_panoramicass.cpp | SebsBarbas/Panoramic_Images | 8654307eb99809a8ec0d3b283369a2e6f9dcbb12 | [
"MIT"
] | null | null | null | src/imagenes_panoramicass.cpp | SebsBarbas/Panoramic_Images | 8654307eb99809a8ec0d3b283369a2e6f9dcbb12 | [
"MIT"
] | null | null | null | // imagenes_panoramicass.cpp : Este archivo contiene la función "main". La ejecución del programa comienza y termina ahí.
//
#include <iostream>
#include <vector>
#include <opencv2/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "utils/reconstruction_manager.h"
void s... | 34.914894 | 183 | 0.737965 | [
"vector"
] |
cbf5e990a00e3ccf380f1b241a624892f922ba9b | 38,045 | cpp | C++ | build/linux-build/Sources/src/zpp_nape/util/ZNPList_ZPP_Shape.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/zpp_nape/util/ZNPList_ZPP_Shape.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/zpp_nape/util/ZNPList_ZPP_Shape.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.0.0-preview.5
#include <hxcpp.h>
#ifndef INCLUDED_zpp_nape_phys_ZPP_Interactor
#include <hxinc/zpp_nape/phys/ZPP_Interactor.h>
#endif
#ifndef INCLUDED_zpp_nape_shape_ZPP_Shape
#include <hxinc/zpp_nape/shape/ZPP_Shape.h>
#endif
#ifndef INCLUDED_zpp_nape_util_ZNPList_ZPP_Shape
#include <hxinc/zpp_... | 41.533843 | 230 | 0.695965 | [
"shape"
] |
cbfdde793c6a003db7f55fdeec601865b6800ce7 | 1,830 | cpp | C++ | src/stack.cpp | JakobOvrum/LuaCpp | bc54b2706babde54f6ee7f4c7580e61cc2d9e523 | [
"MIT"
] | 17 | 2015-04-09T17:26:51.000Z | 2021-11-14T15:45:36.000Z | src/stack.cpp | JakobOvrum/LuaCpp | bc54b2706babde54f6ee7f4c7580e61cc2d9e523 | [
"MIT"
] | null | null | null | src/stack.cpp | JakobOvrum/LuaCpp | bc54b2706babde54f6ee7f4c7580e61cc2d9e523 | [
"MIT"
] | 5 | 2015-06-21T15:35:35.000Z | 2018-09-03T14:26:03.000Z | #include <string>
#include <luacpp/stack.hpp>
#include <luacpp/reference.hpp>
#include <luacpp/table.hpp>
#include <luacpp/function.hpp>
#include <luacpp/object.hpp>
#include <luacpp/lua.hpp>
namespace lua
{
// from Lua
void getValue(lua_State* L, int index, table& r)
{
r = table(L, index);
}
void getValue(lu... | 17.264151 | 68 | 0.652459 | [
"object"
] |
cbffdad69d01872710d8e737d45be5f848f427c0 | 61,910 | cpp | C++ | _2_BasicsOfCplusPlus.cpp | BirdSofts/BasicCplusPlus | ed7712c44b5522f1f95582dfbad4e39b3da113a2 | [
"MIT"
] | null | null | null | _2_BasicsOfCplusPlus.cpp | BirdSofts/BasicCplusPlus | ed7712c44b5522f1f95582dfbad4e39b3da113a2 | [
"MIT"
] | null | null | null | _2_BasicsOfCplusPlus.cpp | BirdSofts/BasicCplusPlus | ed7712c44b5522f1f95582dfbad4e39b3da113a2 | [
"MIT"
] | null | null | null | // --------------------------------------------------------------------------------
/// <summary>
/// _2_Basics.cpp
/// </summary>
/// <created>ʆϒʅ,11.04.2018</created>
/// <changed>ʆϒʅ,13.10.2019</changed>
// --------------------------------------------------------------------------------
//! preprocessor directives... | 57.324074 | 243 | 0.514893 | [
"object"
] |
0201ef49caddcf3dfb4120e482f92f345a0da2cf | 48,841 | tcc | C++ | hackt_docker/hackt/src/sim/command_common.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/sim/command_common.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/sim/command_common.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "sim/command_common.tcc"
Library of template command implementations, re-usable with
different state types.
$Id: command_common.tcc,v 1.24 2011/05/23 01:10:50 fang Exp $
*/
#ifndef __HAC_SIM_COMMAND_COMMON_TCC__
#define __HAC_SIM_COMMAND_COMMON_TCC__
#include <iostream>
#include <fstream>
#include <l... | 26.718271 | 86 | 0.623472 | [
"object",
"vector"
] |
020519f59141326bcf952fcc66ab3134277eba17 | 596 | cpp | C++ | convex-hull/src/generator.cpp | bartoszswitalski/convex-hull | cd4e946d0eacc42a89e5cd999fb7a33dd117dc3f | [
"MIT"
] | null | null | null | convex-hull/src/generator.cpp | bartoszswitalski/convex-hull | cd4e946d0eacc42a89e5cd999fb7a33dd117dc3f | [
"MIT"
] | 4 | 2021-01-28T17:21:19.000Z | 2021-01-28T17:21:20.000Z | convex-hull/src/generator.cpp | bartoszswitalski/convex-hull | cd4e946d0eacc42a89e5cd999fb7a33dd117dc3f | [
"MIT"
] | null | null | null | /*
* Name: generator.cpp
* Purpose:
*
* Author: Piotr Frątczak, Bartosz Świtalski
*
* Warsaw University of Technology
* Faculty of Electronics and Information Technology
*/
#include "generator.hpp"
std::vector<Point> generator::generatePoints(int seed, int n){
std::mt19937 mt(seed);
std::normal_distributi... | 22.074074 | 62 | 0.624161 | [
"vector"
] |
020b0f516edcea5bf85c02e7c5b8548d7d346b97 | 7,181 | hh | C++ | include/goetia/storage/bitstorage.hh | camillescott/boink | db75dc0d87126c5ad20c35405699d89153f109a8 | [
"MIT"
] | 3 | 2019-03-10T02:30:16.000Z | 2020-02-07T20:11:26.000Z | include/goetia/storage/bitstorage.hh | camillescott/boink | db75dc0d87126c5ad20c35405699d89153f109a8 | [
"MIT"
] | 6 | 2018-04-11T02:01:18.000Z | 2020-01-31T14:21:55.000Z | include/goetia/storage/bitstorage.hh | camillescott/boink | db75dc0d87126c5ad20c35405699d89153f109a8 | [
"MIT"
] | 2 | 2019-03-09T19:15:08.000Z | 2019-04-18T19:27:08.000Z | /**
* (c) Camille Scott, 2019
* File : bitstorage.hh
* License: MIT
* Author : Camille Scott <camille.scott.w@gmail.com>
* Date : 30.08.2019
*
*** END GOETIA LICENSE BLOCK
*
* This file is part of khmer, https://github.com/dib-lab/khmer/, and is
* Copyright (C) 2016, The Regents of the University of Calif... | 28.955645 | 89 | 0.645732 | [
"vector"
] |
0217b4c95a2dfd2469646578baa053a57ce2bd37 | 874 | ipp | C++ | qir/qat/Rules/Notation/Phi.ipp | troelsfr/qat | 55ba460b6be307fc2ac7e8143bf14d7e117da161 | [
"MIT"
] | 15 | 2021-11-30T21:52:28.000Z | 2022-03-18T21:08:03.000Z | qir/qat/Rules/Notation/Phi.ipp | troelsfr/qat | 55ba460b6be307fc2ac7e8143bf14d7e117da161 | [
"MIT"
] | 30 | 2021-11-17T11:48:49.000Z | 2022-03-31T07:16:55.000Z | qir/qat/Rules/Notation/Phi.ipp | troelsfr/qat | 55ba460b6be307fc2ac7e8143bf14d7e117da161 | [
"MIT"
] | 1 | 2021-11-17T10:15:40.000Z | 2021-11-17T10:15:40.000Z | #pragma once
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "Llvm/Llvm.hpp"
#include "Rules/Notation/Notation.hpp"
#include "Rules/Patterns/AnyPattern.hpp"
#include "Rules/Patterns/Instruction.hpp"
#include "Rules/Patterns/PhiPattern.hpp"
#include "Rules/ReplacementRule.hpp"
#incl... | 22.410256 | 73 | 0.729977 | [
"vector"
] |
0220552023f08a28f9e344074359016fd439fae6 | 53,129 | cpp | C++ | scripts/static_relyzer/src/bb.cpp | ma3mool/Approxilyzer | e05a38d0222cd31a59c8fb49ac7078eacfce7494 | [
"Ruby"
] | 4 | 2017-02-25T13:17:35.000Z | 2021-04-27T06:30:24.000Z | scripts/static_relyzer/src/bb.cpp | ma3mool/Approxilyzer | e05a38d0222cd31a59c8fb49ac7078eacfce7494 | [
"Ruby"
] | null | null | null | scripts/static_relyzer/src/bb.cpp | ma3mool/Approxilyzer | e05a38d0222cd31a59c8fb49ac7078eacfce7494 | [
"Ruby"
] | 4 | 2017-03-19T02:13:45.000Z | 2019-12-20T05:37:49.000Z | #include "bb.h"
#include <queue>
#include <sstream>
#define DEBUG 0
#define CONTROL_EXPLORE_DEPTH 6
using namespace std;
int sese_count = 0;
int bb_count = 0;
struct explore_list_elem_{
bb_t * bb_ptr;
string reg_name;
};
typedef struct explore_list_elem_ explore_list_elem;
bb_t::bb_t(int i, cfg_t * c) {
// id =... | 27.051426 | 251 | 0.614278 | [
"vector"
] |
0226668ba69b258550b1d3639b429658c1883bf5 | 11,090 | cpp | C++ | clearsky/clearsky/src/rendersystem/submesh.cpp | n3on/clearsky | 8bec3eb941dd42db7666f3375e511bd8d4fd286b | [
"MIT"
] | 1 | 2015-02-19T16:37:01.000Z | 2015-02-19T16:37:01.000Z | clearsky/clearsky/src/rendersystem/submesh.cpp | n3on/clearsky | 8bec3eb941dd42db7666f3375e511bd8d4fd286b | [
"MIT"
] | 1 | 2015-12-26T12:43:48.000Z | 2015-12-26T12:43:48.000Z | clearsky/clearsky/src/rendersystem/submesh.cpp | n3on/clearsky | 8bec3eb941dd42db7666f3375e511bd8d4fd286b | [
"MIT"
] | null | null | null | /*
*
*/
#include "core/precompiled.h"
#include "rendersystem/mesh.h"
namespace clearsky
{
MOFSubmesh::MOFSubmesh():m_vertexBuffer(NULL),
m_indexBuffer(NULL),
m_vertexData(NULL),
m_indexData(NULL),
m_numVertices(0),
m_numElementsVertex(4),
m_numIndices(0),
m_visible(true),
m_primitiveT... | 21.745098 | 124 | 0.714247 | [
"mesh",
"vector",
"transform"
] |
022a15babc7c1bb970b032bc54f51c53534b7cae | 2,671 | hpp | C++ | orig_mplua/unpacker.hpp | AnonyHa/lua-msgpack-native | 41a91b994c70389dc9daa1a15678741d8ec41749 | [
"Apache-2.0"
] | 37 | 2015-02-08T17:56:04.000Z | 2021-08-30T03:47:02.000Z | orig_mplua/unpacker.hpp | kengonakajima/lua-msgpack-native | 41a91b994c70389dc9daa1a15678741d8ec41749 | [
"Apache-2.0"
] | null | null | null | orig_mplua/unpacker.hpp | kengonakajima/lua-msgpack-native | 41a91b994c70389dc9daa1a15678741d8ec41749 | [
"Apache-2.0"
] | 8 | 2015-04-15T06:50:47.000Z | 2021-12-07T14:31:40.000Z | /*
* MessagePack for Lua
*
* Copyright (C) 2009 Nobuyuki Kubota
*
* 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 requi... | 24.063063 | 78 | 0.672407 | [
"object"
] |
0247624ed29e11708af425629fc0c747ca03d46b | 1,540 | hpp | C++ | src/geo/vector.hpp | Harrand/Topaz-2 | c3cd3f67b1aaf20229075a593c8ffcad5585f362 | [
"Apache-2.0"
] | null | null | null | src/geo/vector.hpp | Harrand/Topaz-2 | c3cd3f67b1aaf20229075a593c8ffcad5585f362 | [
"Apache-2.0"
] | 9 | 2019-12-22T17:57:29.000Z | 2020-03-30T22:06:53.000Z | src/geo/vector.hpp | Harrand/Topaz-2 | c3cd3f67b1aaf20229075a593c8ffcad5585f362 | [
"Apache-2.0"
] | null | null | null | #ifndef TOPAZ_GEO_VECTOR_HPP
#define TOPAZ_GEO_VECTOR_HPP
#include "memory/align.hpp"
#include "memory/block.hpp"
#include "algo/static.hpp"
namespace tz
{
/**
* \addtogroup tz_geo Topaz Geometry Library (tz::geo)
* A collection of geometric data structures and mathematical types, such as vectors and matrices.
... | 24.83871 | 99 | 0.651299 | [
"geometry",
"vector"
] |
0264d31c889758573ba48a1baf62471c02f1ef82 | 3,607 | cpp | C++ | IntegerProgramming/LocalSearch/cpp/tsp.cpp | Koukyosyumei/Optimization | 6e9a3bb13706681dc0fd86fe648f67d555365299 | [
"Apache-2.0"
] | null | null | null | IntegerProgramming/LocalSearch/cpp/tsp.cpp | Koukyosyumei/Optimization | 6e9a3bb13706681dc0fd86fe648f67d555365299 | [
"Apache-2.0"
] | null | null | null | IntegerProgramming/LocalSearch/cpp/tsp.cpp | Koukyosyumei/Optimization | 6e9a3bb13706681dc0fd86fe648f67d555365299 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <cstdio>
#include <bits/stdc++.h>
#include <numeric>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)n; i++)
#define INF 1e9
const int MAXN = 16;
struct TSP
{
int n, m;
vector<vector<int>> distance;
int dp[1 << MAXN][MAXN];
vector<int> vis... | 22.265432 | 81 | 0.429443 | [
"vector"
] |
0268a2b0e1d38e3b341a1cacf46b7037c37eebcf | 13,287 | hpp | C++ | stapl_release/benchmarks/lonestar/barneshut/build.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/benchmarks/lonestar/barneshut/build.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/benchmarks/lonestar/barneshut/build.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... | 33.134663 | 80 | 0.632046 | [
"transform"
] |
0269a403ab91b63eb6aa0f0d1ab01b3a56b60b10 | 5,601 | cpp | C++ | libs/full/runtime_components/tests/unit/agas/split_credit.cpp | bhumitattarde/hpx | 5b34d8d77b1664fa552445d44cd98e51dc69a74a | [
"BSL-1.0"
] | 1 | 2022-02-08T05:55:09.000Z | 2022-02-08T05:55:09.000Z | libs/full/runtime_components/tests/unit/agas/split_credit.cpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | libs/full/runtime_components/tests/unit/agas/split_credit.cpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2011 Bryce Adelstein-Lelbach
//
// SPDX-License-Identifier: BSL-1.0
// 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 <hpx/config.hpp>
#if !defined(HPX_COMPUTE_DEVICE_CODE)
#include <hpx... | 32.947059 | 80 | 0.616497 | [
"object",
"vector"
] |
026b3d7bf9e8c407bb06dcdf513e4d6824df8510 | 4,910 | cpp | C++ | examples/triage/sections.cpp | carsonharmon/binaryninja-api | f7ad332ad69d370aa29cd54f4c7307da4d9173e2 | [
"MIT"
] | 589 | 2016-04-11T11:32:33.000Z | 2022-03-30T09:49:37.000Z | examples/triage/sections.cpp | carsonharmon/binaryninja-api | f7ad332ad69d370aa29cd54f4c7307da4d9173e2 | [
"MIT"
] | 2,744 | 2016-04-11T02:47:37.000Z | 2022-03-31T21:05:09.000Z | examples/triage/sections.cpp | carsonharmon/binaryninja-api | f7ad332ad69d370aa29cd54f4c7307da4d9173e2 | [
"MIT"
] | 178 | 2016-04-15T00:47:05.000Z | 2022-03-24T10:42:54.000Z | #include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <algorithm>
#include <vector>
#include "sections.h"
#include "headers.h"
#include "fontsettings.h"
SegmentsWidget::SegmentsWidget(QWidget* parent, BinaryViewRef data): QWidget(parent)
{
QGridLayout* layout = new QGridLayout();
layout->setCon... | 32.302632 | 96 | 0.711813 | [
"vector"
] |
02713881800fb086350bdfa89627caab41dd9ae7 | 2,804 | cpp | C++ | xs/src/libslic3r/SurfaceCollection.cpp | bharralure49/Slic3r | ac2b6de62bd38e6f9dd87f26f2a0394d7b6b41c7 | [
"CC-BY-3.0"
] | 1 | 2015-03-29T21:35:34.000Z | 2015-03-29T21:35:34.000Z | xs/src/libslic3r/SurfaceCollection.cpp | bharralure49/Slic3r | ac2b6de62bd38e6f9dd87f26f2a0394d7b6b41c7 | [
"CC-BY-3.0"
] | null | null | null | xs/src/libslic3r/SurfaceCollection.cpp | bharralure49/Slic3r | ac2b6de62bd38e6f9dd87f26f2a0394d7b6b41c7 | [
"CC-BY-3.0"
] | null | null | null | #include "SurfaceCollection.hpp"
#include <map>
namespace Slic3r {
SurfaceCollection::operator Polygons() const
{
Polygons polygons;
for (Surfaces::const_iterator surface = this->surfaces.begin(); surface != this->surfaces.end(); ++surface) {
Polygons surface_p = surface->expolygon;
polygons.i... | 31.863636 | 113 | 0.615549 | [
"vector"
] |
0272944bf8807b10051274dff25b350416f88d6a | 2,319 | hpp | C++ | catkin_ws/src/formation_control/include/formation_control/frame.hpp | jlrandulfe/drone-swarm | f6cb075aefa02c9f8cb1b06cf53356ed13ff2a47 | [
"MIT"
] | 8 | 2018-11-30T14:16:48.000Z | 2022-01-10T09:14:40.000Z | catkin_ws/src/formation_control/include/formation_control/frame.hpp | jlrandulfe/drone-swarm | f6cb075aefa02c9f8cb1b06cf53356ed13ff2a47 | [
"MIT"
] | 14 | 2018-11-02T12:44:41.000Z | 2019-01-13T12:19:26.000Z | catkin_ws/src/formation_control/include/formation_control/frame.hpp | jlrandulfe/drone-swarm | f6cb075aefa02c9f8cb1b06cf53356ed13ff2a47 | [
"MIT"
] | 3 | 2019-02-26T09:26:01.000Z | 2021-05-23T03:05:52.000Z | #ifndef FRAME_HPP_
#define FRAME_HPP_
#include <iostream>
#include <cstdlib>
#include <ros/ros.h>
#include <stdio.h>
#include <math.h>
#include "formation_control/Formation.h"
class Frame
{
public:
struct point
{
float x;
float y;
};
struct sort_struct
{
float distance;
int index;
};
Fra... | 31.767123 | 169 | 0.726606 | [
"shape",
"vector"
] |
027c863fa5229bbf545dea7710f5f86629eff95c | 2,059 | cpp | C++ | data_structures/union_find.cpp | vishalbelsare/cpp | 772178d911e8f90c23e9d3c1d8d32482bc397fc5 | [
"MIT"
] | 39 | 2017-11-14T03:20:10.000Z | 2021-09-06T09:46:17.000Z | data_structures/union_find.cpp | kunalyadav684/cpp | 3ce14b012acb2dcdf91459fb677de4bd0cb46170 | [
"MIT"
] | 1 | 2020-10-01T22:30:50.000Z | 2020-10-01T22:30:50.000Z | data_structures/union_find.cpp | kunalyadav684/cpp | 3ce14b012acb2dcdf91459fb677de4bd0cb46170 | [
"MIT"
] | 16 | 2018-02-07T22:44:32.000Z | 2020-11-19T10:18:16.000Z | #include <iostream>
#include <vector>
using namespace std;
class union_find
{
public:
union_find(int N)
{
num_sets = N; set_size.assign(N,1);
rank.assign(N,0); p.assign(N,0);
for (int i=0; i < N; i++) {p[i] = i;}
}
int find_set(int i) {return (p[i] == i) ? i : (p[i] = find_set(... | 24.807229 | 101 | 0.507528 | [
"vector"
] |
027d67bc5ad13606de762ce33993028080fa9c3c | 1,102 | cpp | C++ | source/main.cpp | nikhil133/Eigen-Computation | 028e11c742fa3e367fa70a5e984e977e36aa4150 | [
"MIT"
] | null | null | null | source/main.cpp | nikhil133/Eigen-Computation | 028e11c742fa3e367fa70a5e984e977e36aa4150 | [
"MIT"
] | null | null | null | source/main.cpp | nikhil133/Eigen-Computation | 028e11c742fa3e367fa70a5e984e977e36aa4150 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
#include"eignwcpp.h"
int main()
{
//eigenfilter e=eigenfilter();
double **a,**egvctor,**egvalu,**c;
int m,n;
cout<<"Enter order of the matrix\n"
cout<<"row= ";
cin>>m;
cout<<"col= ";
cin>>n;
a=new double*[m];
egvctor=new double*[m];
egvalu=new double*[m];
cout<<"Ente... | 15.971014 | 81 | 0.529946 | [
"vector"
] |
027d8c50a27a27f3e762f16b7bf4cb4292885dd2 | 2,002 | hpp | C++ | shared/cmd-line-parser-helper.hpp | industry-advance/nin10kit | dbf81c62c0fa2f544cfd22b1f7d008a885c2b589 | [
"Apache-2.0"
] | 45 | 2015-03-26T17:14:55.000Z | 2022-03-29T20:27:32.000Z | shared/cmd-line-parser-helper.hpp | industry-advance/nin10kit | dbf81c62c0fa2f544cfd22b1f7d008a885c2b589 | [
"Apache-2.0"
] | 35 | 2015-01-06T16:16:37.000Z | 2021-06-19T05:03:13.000Z | shared/cmd-line-parser-helper.hpp | industry-advance/nin10kit | dbf81c62c0fa2f544cfd22b1f7d008a885c2b589 | [
"Apache-2.0"
] | 5 | 2017-03-26T04:48:02.000Z | 2020-07-10T22:55:49.000Z | #ifndef CMD_LINE_PARSER_HELPER_HPP
#define CMD_LINE_PARSER_HELPER_HPP
#include <limits>
#include <set>
#include <string>
#include <vector>
#include <wx/cmdline.h>
/** Wrapper around wxWidget's command line parser library */
class CmdLineParserHelper
{
public:
CmdLineParserHelper(wxCmdLineParser& parser_)... | 51.333333 | 157 | 0.663836 | [
"vector"
] |
027f47f4206ba4096f816f7464897868684249ef | 10,072 | cpp | C++ | src/hssh/local_topological/evaluation/create_comparison_plots.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 6 | 2020-03-29T09:37:01.000Z | 2022-01-20T08:56:31.000Z | src/hssh/local_topological/evaluation/create_comparison_plots.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 1 | 2021-03-05T08:00:50.000Z | 2021-03-05T08:00:50.000Z | src/hssh/local_topological/evaluation/create_comparison_plots.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 11 | 2019-05-13T00:04:38.000Z | 2022-01-20T08:56:38.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 34.027027 | 127 | 0.625496 | [
"vector",
"solid"
] |
0283aad816ae7d062e27529138d4d45db42d0ff6 | 653 | cpp | C++ | leetcode66.cpp | thomasjmurphy/dataStructures | 1a2fef47cb3734574e7bd7948b0a705b915940da | [
"MIT"
] | null | null | null | leetcode66.cpp | thomasjmurphy/dataStructures | 1a2fef47cb3734574e7bd7948b0a705b915940da | [
"MIT"
] | null | null | null | leetcode66.cpp | thomasjmurphy/dataStructures | 1a2fef47cb3734574e7bd7948b0a705b915940da | [
"MIT"
] | null | null | null | bool allNines(vector<int> &digits)
{
for(int i=0;i<digits.size();i++)
{
if(digits[i] != 9){return 0;}
}
return 1;
}
void carry(vector<int> &digits)
{
for(int i=digits.size()-1;i>=0;i--)
{
if(digits[i] == 10)
{
digits[i] = 0;
digits[i-1]++;
... | 16.74359 | 42 | 0.43951 | [
"vector"
] |
02856ea8a627a8c26e650ec1adf89a700f828620 | 3,759 | cpp | C++ | src/Object/Component/sub/Sprite.cpp | bodguy/CrossPlatform | c8fb740456f8c9b0e6af495958d6b5d6c2d7946f | [
"Apache-2.0"
] | 6 | 2018-07-20T00:59:54.000Z | 2021-08-21T15:55:48.000Z | src/Object/Component/sub/Sprite.cpp | bodguy/CrossPlatform | c8fb740456f8c9b0e6af495958d6b5d6c2d7946f | [
"Apache-2.0"
] | 9 | 2018-07-17T15:03:22.000Z | 2019-10-05T01:02:31.000Z | src/Object/Component/sub/Sprite.cpp | bodguy/CrossPlatform | c8fb740456f8c9b0e6af495958d6b5d6c2d7946f | [
"Apache-2.0"
] | 1 | 2019-10-27T01:54:38.000Z | 2019-10-27T01:54:38.000Z | // Copyright (C) 2017 by bodguy
// This code is licensed under Apache 2.0 license (see LICENSE.md for details)
#include "Sprite.h"
#include <cstring>
#include "Asset/AssetManager.h"
#include "Asset/Texture2D.h"
namespace Theodore {
Sprite::Sprite()
: mFormat(IndexFormat::UInt16),
mTexture(nullptr),
... | 35.130841 | 130 | 0.630487 | [
"vector"
] |
028b7f774a8411ed43b64cba712887ee83e700fb | 5,236 | cpp | C++ | tools/unittests/Optimizations/PropagateConstWithDiffShapeTest.cpp | LiuLeif/onnc | 3f69e46172a9c33cc04541ff7fd78d5d7b6bdbba | [
"BSD-3-Clause"
] | 450 | 2018-08-03T08:17:03.000Z | 2022-03-17T17:21:06.000Z | tools/unittests/Optimizations/PropagateConstWithDiffShapeTest.cpp | LiuLeif/onnc | 3f69e46172a9c33cc04541ff7fd78d5d7b6bdbba | [
"BSD-3-Clause"
] | 104 | 2018-08-13T07:31:50.000Z | 2021-08-24T11:24:40.000Z | tools/unittests/Optimizations/PropagateConstWithDiffShapeTest.cpp | LiuLeif/onnc | 3f69e46172a9c33cc04541ff7fd78d5d7b6bdbba | [
"BSD-3-Clause"
] | 100 | 2018-08-12T04:27:39.000Z | 2022-03-11T04:17:42.000Z | //===- PropagateConstWithDiffShapeTest.cpp --------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <onnc/IR/Compute/Add.h>
#include <onnc/IR/Compute/Flatten.h>... | 42.918033 | 99 | 0.603514 | [
"shape"
] |
029509fcd56846a4e9ff9e9c2f8f0aa064361a8c | 2,008 | cxx | C++ | src/Cxx/Images/ImageToPolyDataFilter.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 81 | 2020-08-10T01:44:30.000Z | 2022-03-23T06:46:36.000Z | src/Cxx/Images/ImageToPolyDataFilter.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 2 | 2020-09-12T17:33:52.000Z | 2021-04-15T17:33:09.000Z | src/Cxx/Images/ImageToPolyDataFilter.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 27 | 2020-08-17T07:09:30.000Z | 2022-02-15T03:44:58.000Z | #include <vtkActor.h>
#include <vtkCamera.h>
#include <vtkImageQuantizeRGBToIndex.h>
#include <vtkImageToPolyDataFilter.h>
#include <vtkLookupTable.h>
#include <vtkNamedColors.h>
#include <vtkNew.h>
#include <vtkPNGReader.h>
#include <vtkPolyDataMapper.h>
#include <vtkProperty.h>
#include <vtkRenderWindow.h>
#include <... | 27.135135 | 73 | 0.747012 | [
"render"
] |
029648884b5c65b63277b96ce300a8c7f1d484bc | 1,086 | cpp | C++ | LeetCode/Algorithms/Medium/NextPermutation.cpp | roshan11160/Competitive-Programming-Solutions | 2d9cfe901c23a2b7344c410b7368eb02f7fa6e7e | [
"MIT"
] | 40 | 2020-07-25T19:35:37.000Z | 2022-01-28T02:57:02.000Z | LeetCode/Algorithms/Medium/NextPermutation.cpp | roshan11160/Competitive-Programming-Solutions | 2d9cfe901c23a2b7344c410b7368eb02f7fa6e7e | [
"MIT"
] | 160 | 2021-04-26T19:04:15.000Z | 2022-03-26T20:18:37.000Z | LeetCode/Algorithms/Medium/NextPermutation.cpp | roshan11160/Competitive-Programming-Solutions | 2d9cfe901c23a2b7344c410b7368eb02f7fa6e7e | [
"MIT"
] | 24 | 2020-05-03T08:11:53.000Z | 2021-10-04T03:23:20.000Z | class Solution
{
public:
void nextPermutation(vector<int> &nums)
{
int i = nums.size() - 2;
// First scan to find the first number greater than, number on the right
while (i >= 0 && nums[i + 1] <= nums[i])
{
i--;
}
if (i >= 0)
{
i... | 23.106383 | 85 | 0.440147 | [
"vector"
] |
0296b2a5fc30db5caf5f758a05c7af25801e9520 | 1,211 | hpp | C++ | src/state_manager.hpp | BadOPCode/Oblivion2-XRM | d65d9aa4b8021fc3b50b2c09edd0b19eb7baa1b9 | [
"Zlib"
] | 78 | 2015-10-08T07:14:37.000Z | 2022-02-10T04:51:21.000Z | src/state_manager.hpp | BadOPCode/Oblivion2-XRM | d65d9aa4b8021fc3b50b2c09edd0b19eb7baa1b9 | [
"Zlib"
] | 117 | 2015-12-14T16:51:42.000Z | 2020-02-16T07:00:36.000Z | src/state_manager.hpp | BadOPCode/Oblivion2-XRM | d65d9aa4b8021fc3b50b2c09edd0b19eb7baa1b9 | [
"Zlib"
] | 10 | 2015-12-10T16:54:24.000Z | 2022-02-10T04:51:29.000Z | #ifndef STATE_MANAGER_HPP
#define STATE_MANAGER_HPP
#include "state_base.hpp"
#include <memory>
#include <iostream>
#include <string>
#include <vector>
/**
* @class StateManager
* @author Michael Griffin
* @date 9/1/2015
* @file state_manager.hpp
* @brief State Manager to load the Menu System and pass session d... | 18.074627 | 82 | 0.618497 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.