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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
895ba54368aa9d373e9d1ea48a3ee5ea565abab8 | 17,323 | cpp | C++ | libfit++.cpp | apexrtos/libfdtxx | beb8134b880e58a86642fd31251fd368be85e610 | [
"0BSD"
] | 1 | 2021-12-08T07:12:22.000Z | 2021-12-08T07:12:22.000Z | libfit++.cpp | apexrtos/libfdtxx | beb8134b880e58a86642fd31251fd368be85e610 | [
"0BSD"
] | null | null | null | libfit++.cpp | apexrtos/libfdtxx | beb8134b880e58a86642fd31251fd368be85e610 | [
"0BSD"
] | 1 | 2021-12-08T07:12:24.000Z | 2021-12-08T07:12:24.000Z | #include "libfit++.h"
#include <array>
#include <tomcrypt.h>
extern "C" {
#include <libfdt.h>
}
using namespace std::literals;
/*
* These defines are to limit supported key formats at compile time to reduce
* code size, e.g.:
*
* gcc -DRSA_PKCS_8=0 -DRSA_X509=0
*/
#ifndef RSA_PKCS_1
#define RSA_PKCS_1 1
#endi... | 24.536827 | 93 | 0.667205 | [
"vector"
] |
8961edc4f6d001a3e575dfb3bfdffcd402efba51 | 13,214 | cc | C++ | apps/merge_var/merge_var.cc | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | 2 | 2020-06-03T15:59:50.000Z | 2020-12-21T11:11:57.000Z | apps/merge_var/merge_var.cc | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | null | null | null | apps/merge_var/merge_var.cc | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | 2 | 2019-10-02T06:47:23.000Z | 2020-02-02T18:32:23.000Z | // *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// ** Copyright UCAR (c) 1992 - 2015
// ** University Corporation for Atmospheric Research(UCAR)
// ** National Center for Atmospheric Research(NCAR)
// ** Research Applications Laboratory(RAL)
// ** P.O.Box 3000, Boulder, Colorado, 80307... | 30.587963 | 125 | 0.666414 | [
"object"
] |
8962e4fb5d99bf558f445726633ad7fd2459e2f5 | 11,118 | cpp | C++ | src/encoding/EncodeFile.cpp | ivannp/cync | a8be86c994d7fee727ac37d012fe88c60d7c2929 | [
"Apache-2.0"
] | 3 | 2018-02-20T01:26:56.000Z | 2020-03-05T03:18:29.000Z | src/encoding/EncodeFile.cpp | ivannp/cync | a8be86c994d7fee727ac37d012fe88c60d7c2929 | [
"Apache-2.0"
] | null | null | null | src/encoding/EncodeFile.cpp | ivannp/cync | a8be86c994d7fee727ac37d012fe88c60d7c2929 | [
"Apache-2.0"
] | null | null | null | #include <codecvt>
#include <cstdint>
#include <fstream>
#include "cryptopp/aes.h"
#include "cryptopp/blowfish.h"
#include "cryptopp/channels.h"
#include "cryptopp/cryptlib.h"
#include "cryptopp/files.h"
#include "cryptopp/filters.h"
#include "cryptopp/gcm.h"
#include "cryptopp/osrng.h"
#include "cryptopp/serpent.h"
#... | 34.104294 | 249 | 0.603706 | [
"vector"
] |
897478ba5c7813192eb4025faf1ca9c423018850 | 37,773 | cc | C++ | Implementation/Sparkfun Edge/Applications/szc_mnist/model/mnist.cc | DarkSZChao/Big-Little_NN_Strategies | 5821765c5ed1a2cbdfe7d9586df7bd36e08fa6fd | [
"MIT"
] | null | null | null | Implementation/Sparkfun Edge/Applications/szc_mnist/model/mnist.cc | DarkSZChao/Big-Little_NN_Strategies | 5821765c5ed1a2cbdfe7d9586df7bd36e08fa6fd | [
"MIT"
] | null | null | null | Implementation/Sparkfun Edge/Applications/szc_mnist/model/mnist.cc | DarkSZChao/Big-Little_NN_Strategies | 5821765c5ed1a2cbdfe7d9586df7bd36e08fa6fd | [
"MIT"
] | null | null | null | #include "model.h"
// Name of model tflite flatbuffer.
const unsigned char model_tflite_name[] = {"model"};
// Model data tflite flatbuffer.
const unsigned char model_tflite[] = {
0x20, 0x00, 0x00, 0x00, 0x54, 0x46, 0x4c, 0x33, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x12, 0x00, 0x1c, 0x00, 0x04, 0x00, 0x08, 0x00, 0... | 72.780347 | 73 | 0.649167 | [
"model"
] |
897c03c354b2ad0c6348408afc98cfa4e37fa4dd | 623 | cc | C++ | 001. Two_Sum.cc | orphie/lc | 1ead5b503375fb62ad7d4b85d05d3599e2a20128 | [
"MIT"
] | null | null | null | 001. Two_Sum.cc | orphie/lc | 1ead5b503375fb62ad7d4b85d05d3599e2a20128 | [
"MIT"
] | null | null | null | 001. Two_Sum.cc | orphie/lc | 1ead5b503375fb62ad7d4b85d05d3599e2a20128 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
typedef std::unordered_map<int, int> Num2Id;
Num2Id n2id;
std::vector<int> ret;
for (size_t id = 0;
id < nums.size();
++id) {
int current = nums[id];
int min... | 25.958333 | 55 | 0.425361 | [
"vector"
] |
897e12e851bd7a7ee4bca628d447918fb713d61c | 25,589 | cpp | C++ | tests/sysrepo_system-firmware.cpp | CESNET/velia | f0b7075f94014c5506bc43e6905f789c77d834b6 | [
"Apache-2.0"
] | 6 | 2021-02-26T13:01:56.000Z | 2022-02-22T07:07:24.000Z | tests/sysrepo_system-firmware.cpp | CESNET/velia | f0b7075f94014c5506bc43e6905f789c77d834b6 | [
"Apache-2.0"
] | 3 | 2020-11-05T21:20:46.000Z | 2021-06-04T18:32:46.000Z | tests/sysrepo_system-firmware.cpp | CESNET/velia | f0b7075f94014c5506bc43e6905f789c77d834b6 | [
"Apache-2.0"
] | null | null | null | #include "trompeloeil_doctest.h"
#include "dbus-helpers/dbus_rauc_server.h"
#include "pretty_printers.h"
#include "system/Firmware.h"
#include "test_log_setup.h"
#include "test_sysrepo_helpers.h"
#include "tests/configure.cmake.h"
#include "tests/mock/sysrepo/events.h"
using namespace std::literals;
struct InstallPro... | 53.758403 | 195 | 0.517879 | [
"vector"
] |
8983b34e1e8afe4058359b01f5716cb200ffa457 | 7,871 | hpp | C++ | src/graph/dense.hpp | Atsushi-Machida/OpenJij | e4bddebb13536eb26ff0b7b9fc6b1c75659fe934 | [
"Apache-2.0"
] | null | null | null | src/graph/dense.hpp | Atsushi-Machida/OpenJij | e4bddebb13536eb26ff0b7b9fc6b1c75659fe934 | [
"Apache-2.0"
] | null | null | null | src/graph/dense.hpp | Atsushi-Machida/OpenJij | e4bddebb13536eb26ff0b7b9fc6b1c75659fe934 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Jij Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agre... | 35.454955 | 114 | 0.382925 | [
"vector"
] |
8984235982d251622000df4674b8744c45ac6097 | 2,628 | cpp | C++ | google/2017/qr/c/c.2.cpp | suhwanhwang/problem-solving | 9421488fb97c4628bea831ac59ad5c5d9b8131d4 | [
"MIT"
] | null | null | null | google/2017/qr/c/c.2.cpp | suhwanhwang/problem-solving | 9421488fb97c4628bea831ac59ad5c5d9b8131d4 | [
"MIT"
] | null | null | null | google/2017/qr/c/c.2.cpp | suhwanhwang/problem-solving | 9421488fb97c4628bea831ac59ad5c5d9b8131d4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
using namespace std;
int getLS(const vector<int> &stalls, int s) {
int ls = 0;
for (int i = s - 1; i >= 0; --i) {
if (stalls[i] == 1) {
return ls;
}
++ls;
}
return ls;
}
i... | 23.464286 | 143 | 0.474505 | [
"vector"
] |
898e4bfdf97932271f0c01e780f9fd9dec65f4f9 | 3,131 | hpp | C++ | libff/algebra/curves/sw6/sw6_g1.hpp | Pratyush/zk-swap-libff | df7ba1fe5189d8adeb48b0c50d22cb987e698813 | [
"MIT"
] | 7 | 2019-10-23T18:27:29.000Z | 2020-03-30T21:00:58.000Z | libff/algebra/curves/sw6/sw6_g1.hpp | Pratyush/zk-swap-libff | df7ba1fe5189d8adeb48b0c50d22cb987e698813 | [
"MIT"
] | 3 | 2019-11-06T12:30:16.000Z | 2020-04-06T10:14:14.000Z | libff/algebra/curves/sw6/sw6_g1.hpp | Pratyush/zk-swap-libff | df7ba1fe5189d8adeb48b0c50d22cb987e698813 | [
"MIT"
] | 3 | 2020-12-10T20:01:24.000Z | 2022-03-21T04:01:33.000Z | /** @file
*****************************************************************************
Declaration of interfaces for the SW6 G1 group.
*****************************************************************************
* @author This file is part of libff, developed by SCIPR Lab
* and contributors (se... | 29.261682 | 95 | 0.634941 | [
"vector"
] |
899ae9d7ce496305bed0c5b898222946a25a8e70 | 944 | cpp | C++ | aws-cpp-sdk-kinesisvideo/source/model/CreateStreamResult.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-kinesisvideo/source/model/CreateStreamResult.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-kinesisvideo/source/model/CreateStreamResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"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/kinesisvideo/model/CreateStreamResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aw... | 23.02439 | 104 | 0.758475 | [
"model"
] |
89a74a46f6c5c953194222b4838b1fb7213b520e | 10,512 | cc | C++ | OnlineDB/CSCCondDB/src/CSCOnlineDB.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 1 | 2020-02-07T11:20:02.000Z | 2020-02-07T11:20:02.000Z | OnlineDB/CSCCondDB/src/CSCOnlineDB.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 7 | 2016-07-17T02:34:54.000Z | 2019-08-13T07:58:37.000Z | OnlineDB/CSCCondDB/src/CSCOnlineDB.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 2 | 2019-09-27T08:33:22.000Z | 2019-11-14T10:52:30.000Z | #include "OnlineDB/CSCCondDB/interface/CSCOnlineDB.h"
/**
* Constructor for condbon
*/
condbon::condbon() noexcept(false) {
std::string db_user;
std::string db_pass;
env = oracle::occi::Environment::createEnvironment(oracle::occi::Environment::OBJECT);
char *c_user = ::getenv("CONDBON_AUTH_USER");
char... | 30.64723 | 120 | 0.568398 | [
"object",
"vector"
] |
89b20feab7f0067f0d50dbab2f20534be3b384dc | 1,261 | hpp | C++ | src/runtime/binaryen/runtime_api/block_builder_impl.hpp | GeniusVentures/SuperGenius | ae43304f4a2475498ef56c971296175acb88d0ee | [
"MIT"
] | 1 | 2021-07-10T21:25:03.000Z | 2021-07-10T21:25:03.000Z | src/runtime/binaryen/runtime_api/block_builder_impl.hpp | GeniusVentures/SuperGenius | ae43304f4a2475498ef56c971296175acb88d0ee | [
"MIT"
] | null | null | null | src/runtime/binaryen/runtime_api/block_builder_impl.hpp | GeniusVentures/SuperGenius | ae43304f4a2475498ef56c971296175acb88d0ee | [
"MIT"
] | null | null | null | #ifndef SUPERGENIUS_SRC_RUNTIME_BINARYEN_BLOCK_BUILDER_IMPL_HPP
#define SUPERGENIUS_SRC_RUNTIME_BINARYEN_BLOCK_BUILDER_IMPL_HPP
#include "runtime/binaryen/runtime_api/runtime_api.hpp"
#include "runtime/block_builder.hpp"
#include "base/logger.hpp"
namespace sgns::runtime::binaryen {
class BlockBuilderImpl : public ... | 36.028571 | 76 | 0.767645 | [
"vector"
] |
89bdba109167451d682f21bcb5b92f1b4c436eaf | 18,528 | cc | C++ | strings/util.cc | romange/beeri | 60718d0f3133fffdf1500f8844852a79c91d8351 | [
"BSD-2-Clause"
] | 2 | 2015-01-07T06:34:25.000Z | 2019-01-25T10:11:24.000Z | strings/util.cc | romange/beeri | 60718d0f3133fffdf1500f8844852a79c91d8351 | [
"BSD-2-Clause"
] | null | null | null | strings/util.cc | romange/beeri | 60718d0f3133fffdf1500f8844852a79c91d8351 | [
"BSD-2-Clause"
] | 1 | 2019-01-25T10:11:28.000Z | 2019-01-25T10:11:28.000Z | //
// Copyright (C) 1999-2005 Google, Inc.
//
// TODO(user): visit each const_cast. Some of them are no longer necessary
// because last Single Unix Spec and grte v2 are more const-y.
#include "strings/util.h"
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <time.h> ... | 30.931553 | 80 | 0.554458 | [
"vector"
] |
89bf6e85a870c18be929f8d2157bfb36bead8885 | 4,303 | hpp | C++ | src/tensor.hpp | ecnerwala/cp-book | 89ba206e1d65ab48819d956d76073057fb43434e | [
"CC0-1.0"
] | 351 | 2019-11-26T14:56:22.000Z | 2022-03-30T10:40:13.000Z | src/tensor.hpp | Mastermind-git/cp-book | 53d97ec192a60e2956c2b4fbe17840ab74c066d6 | [
"CC0-1.0"
] | 8 | 2019-12-24T21:37:19.000Z | 2021-05-17T07:33:55.000Z | src/tensor.hpp | Mastermind-git/cp-book | 53d97ec192a60e2956c2b4fbe17840ab74c066d6 | [
"CC0-1.0"
] | 57 | 2020-04-28T09:20:17.000Z | 2022-02-13T09:35:31.000Z | #pragma once
#include <array>
template <typename T, int NDIMS> struct tensor_view {
static_assert(NDIMS >= 0, "NDIMS must be nonnegative");
protected:
std::array<int, NDIMS> shape;
std::array<int, NDIMS> strides;
T* data;
tensor_view(std::array<int, NDIMS> shape_, std::array<int, NDIMS> strides_, T* data_) : s... | 27.583333 | 137 | 0.629328 | [
"shape"
] |
89c5e57c6329e41a3eb3f4f399cb8e47c6b82276 | 33,681 | cxx | C++ | TRD/TRDrec/AliTRDQADataMakerRec.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1 | 2017-04-27T17:28:15.000Z | 2017-04-27T17:28:15.000Z | TRD/TRDrec/AliTRDQADataMakerRec.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 3 | 2017-07-13T10:54:50.000Z | 2018-04-17T19:04:16.000Z | TRD/TRDrec/AliTRDQADataMakerRec.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 5 | 2017-03-29T12:21:12.000Z | 2018-01-15T15:52:24.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 32.923754 | 148 | 0.61358 | [
"object",
"3d"
] |
89cba9eb82ed78511e02b640264e2d62fc8fe57d | 1,111 | cpp | C++ | models/networks/conv_ops.cpp | Myyyr/segmentation | 6b9423e327cff1eb23599404031b7fb8e9ecf75d | [
"MIT"
] | null | null | null | models/networks/conv_ops.cpp | Myyyr/segmentation | 6b9423e327cff1eb23599404031b7fb8e9ecf75d | [
"MIT"
] | null | null | null | models/networks/conv_ops.cpp | Myyyr/segmentation | 6b9423e327cff1eb23599404031b7fb8e9ecf75d | [
"MIT"
] | null | null | null | #include <torch/extension.h>
#include <vector>
#include <ATen/NativeFunctions.h>
#include <ATen/Config.h>
/*
This creates a Python-wrapper for the adjoint of the convolution with respect to the weight, which
handles the memory favorably compared to the Python implementation of Pytorch. Code adapted from
https://discus... | 28.487179 | 102 | 0.717372 | [
"vector"
] |
89cef64fa0f5ee3d6d1c3da283102ab1acec5f29 | 21,744 | cpp | C++ | mesh_map/src/mesh_map.cpp | SabrinaFrohn/mesh_navigation | 6949a62e4656f99f5d0dcda7419e269dbbe9058e | [
"BSD-3-Clause"
] | null | null | null | mesh_map/src/mesh_map.cpp | SabrinaFrohn/mesh_navigation | 6949a62e4656f99f5d0dcda7419e269dbbe9058e | [
"BSD-3-Clause"
] | null | null | null | mesh_map/src/mesh_map.cpp | SabrinaFrohn/mesh_navigation | 6949a62e4656f99f5d0dcda7419e269dbbe9058e | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2019, Sebastian Pütz
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the foll... | 29.623978 | 146 | 0.65195 | [
"mesh",
"vector"
] |
89d06a0b6d7503089ff009ed1465b93ab68a1b72 | 7,951 | cpp | C++ | PathCopyCopy/src/Plugin.cpp | nonomal/pathcopycopy | 73ca6e4600d4142ff76304d6f64e7738a9f5aeb9 | [
"MIT",
"Apache-2.0",
"MS-PL"
] | 739 | 2017-07-17T10:11:06.000Z | 2022-03-31T16:12:13.000Z | PathCopyCopy/src/Plugin.cpp | nonomal/pathcopycopy | 73ca6e4600d4142ff76304d6f64e7738a9f5aeb9 | [
"MIT",
"Apache-2.0",
"MS-PL"
] | 153 | 2017-07-17T00:52:50.000Z | 2022-01-15T04:54:18.000Z | PathCopyCopy/src/Plugin.cpp | nonomal/pathcopycopy | 73ca6e4600d4142ff76304d6f64e7738a9f5aeb9 | [
"MIT",
"Apache-2.0",
"MS-PL"
] | 70 | 2017-07-17T10:12:49.000Z | 2022-03-17T05:33:29.000Z | // Plugin.cpp
// (c) 2008-2021, Charles Lechasseur
//
// 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, ... | 32.321138 | 90 | 0.647969 | [
"object"
] |
89e0853c8c57f1cab586e4d9c3f95760590607b0 | 7,087 | hpp | C++ | src/netstack/socket.hpp | brandonbraun653/Ripple | 697501a90877390681afe9311103a02f9c40201e | [
"MIT"
] | null | null | null | src/netstack/socket.hpp | brandonbraun653/Ripple | 697501a90877390681afe9311103a02f9c40201e | [
"MIT"
] | null | null | null | src/netstack/socket.hpp | brandonbraun653/Ripple | 697501a90877390681afe9311103a02f9c40201e | [
"MIT"
] | null | null | null | /********************************************************************************
* File Name:
* socket.hpp
*
* Description:
* Socket class
*
* 2021 | Brandon Braun | brandonbraun653@gmail.com
*******************************************************************************/
#pragma once
#ifndef RIPPLE_... | 29.777311 | 91 | 0.559475 | [
"object"
] |
885c2787168ae901f8656c83e0bdbe7891aced98 | 2,631 | cpp | C++ | llcopyrandom.cpp | shirishbahirat/code_examples | ebc8bb743b7b0a4ad1e01164cd85afc0bfe7f107 | [
"MIT"
] | null | null | null | llcopyrandom.cpp | shirishbahirat/code_examples | ebc8bb743b7b0a4ad1e01164cd85afc0bfe7f107 | [
"MIT"
] | null | null | null | llcopyrandom.cpp | shirishbahirat/code_examples | ebc8bb743b7b0a4ad1e01164cd85afc0bfe7f107 | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
#include <vector>
using namespace std;
class Node {
public:
int val;
Node *next;
Node *random;
Node() {}
Node(int _val, Node *_next, Node *_random) {
val = _val;
next = _next;
random = _random;
}
};
void append(Node **head, int val) {
if ((*head) == null... | 16.651899 | 56 | 0.556062 | [
"vector"
] |
886c896f866f25715474ea4655a280a0a7b2bb7c | 9,938 | inl | C++ | Engine/Math/Clipping.inl | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | Engine/Math/Clipping.inl | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | Engine/Math/Clipping.inl | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z |
/*
* Line clipping flags
*/
#define LCF_REMOVED (0x00L) // the entire edge is invisible
#define LCF_UNCLIPPED (0x80L) // this point remains unclipped
#define LCF_NEAR (0x01L) // this point is clipped at near plane
#define LCF_FAR (0x02L) // this point is clipped at far plane
#define LCF_LEFT (0... | 24.41769 | 106 | 0.565506 | [
"object",
"transform"
] |
886dac75af37b0501f9e43d92d4eb67a2d7ed46c | 4,861 | cpp | C++ | cdb/src/v20170320/model/CreateAuditLogFileRequest.cpp | li5ch/tencentcloud-sdk-cpp | 12ebfd75a399ee2791f6ac1220a79ce8a9faf7c4 | [
"Apache-2.0"
] | null | null | null | cdb/src/v20170320/model/CreateAuditLogFileRequest.cpp | li5ch/tencentcloud-sdk-cpp | 12ebfd75a399ee2791f6ac1220a79ce8a9faf7c4 | [
"Apache-2.0"
] | null | null | null | cdb/src/v20170320/model/CreateAuditLogFileRequest.cpp | li5ch/tencentcloud-sdk-cpp | 12ebfd75a399ee2791f6ac1220a79ce8a9faf7c4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 24.675127 | 84 | 0.716108 | [
"model"
] |
887f9763c4636f0fbbfb4d021cab6530097d3c09 | 10,379 | cc | C++ | tensorflow_federated/cc/core/impl/executors/executor_service.cc | RyanMarten/federated | 43169e4224b169ad58927b783c680f4ff52d743a | [
"Apache-2.0"
] | null | null | null | tensorflow_federated/cc/core/impl/executors/executor_service.cc | RyanMarten/federated | 43169e4224b169ad58927b783c680f4ff52d743a | [
"Apache-2.0"
] | null | null | null | tensorflow_federated/cc/core/impl/executors/executor_service.cc | RyanMarten/federated | 43169e4224b169ad58927b783c680f4ff52d743a | [
"Apache-2.0"
] | null | null | null | /* Copyright 2021, The TensorFlow Federated 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 to ... | 42.536885 | 80 | 0.717699 | [
"vector"
] |
888446b70dd223eb9ac4c70309863b168cace5ce | 25,289 | cxx | C++ | Source/igstkMicronTracker.cxx | ipa/IGSTK | d31f77b04aa72469e18e8a989ed8316bad39ed7a | [
"BSD-3-Clause"
] | 5 | 2016-02-12T18:55:20.000Z | 2022-02-05T09:23:07.000Z | Source/igstkMicronTracker.cxx | ipa/IGSTK | d31f77b04aa72469e18e8a989ed8316bad39ed7a | [
"BSD-3-Clause"
] | 1 | 2018-01-26T10:39:31.000Z | 2018-01-26T10:39:31.000Z | Source/igstkMicronTracker.cxx | ipa/IGSTK | d31f77b04aa72469e18e8a989ed8316bad39ed7a | [
"BSD-3-Clause"
] | 4 | 2019-12-27T16:17:07.000Z | 2022-03-06T14:54:59.000Z | /*=========================================================================
Program: Image Guided Surgery Software Toolkit
Module: igstkMicronTracker.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) ISC Insight Software Consortium. All rights reserved.
See IGSTKCopyright.t... | 32.630968 | 80 | 0.692633 | [
"geometry",
"object",
"vector",
"model",
"transform"
] |
8885885cd23ab1301b0706b2be6ff4072fce3072 | 20,886 | hpp | C++ | packages/data/native/src/Data_AdjointElectronPhotonRelaxationDataContainer_def.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/data/native/src/Data_AdjointElectronPhotonRelaxationDataContainer_def.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/data/native/src/Data_AdjointElectronPhotonRelaxationDataContainer_def.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file Data_AdjointElectronPhotonRelaxationDataContainer_def.hpp
//! \author Luke Kersting
//! \brief The native adjoint electron-photon-relaxation data container template defs.
//!
//----------------------------------------------... | 64.662539 | 124 | 0.843723 | [
"vector"
] |
888714aed7b3fdfa52b86483a95c88301085c8fc | 34,895 | cpp | C++ | src/geometry.cpp | cse-sim/cse | ebe460ef8f38442424fe5a145ba51e34ef1d4639 | [
"BSD-3-Clause"
] | 13 | 2016-01-11T18:34:03.000Z | 2021-12-21T03:10:49.000Z | src/geometry.cpp | cse-sim/cse | ebe460ef8f38442424fe5a145ba51e34ef1d4639 | [
"BSD-3-Clause"
] | 90 | 2016-09-23T15:22:23.000Z | 2022-03-31T22:57:23.000Z | src/geometry.cpp | cse-sim/cse | ebe460ef8f38442424fe5a145ba51e34ef1d4639 | [
"BSD-3-Clause"
] | 5 | 2016-09-16T21:30:55.000Z | 2020-03-03T20:22:13.000Z | //==========================================================================
// Geometry.cpp -- contains different computational geomertic algoritms
//=============================================================================
// Copyright (c) 2014, ASHRAE.
// This work is a product of ASHRAE 1383-RP and draws on c... | 30.771605 | 100 | 0.498123 | [
"geometry",
"vector",
"transform",
"3d"
] |
8890799a44514f3e0535531d9d4f9bcbb4cfdad8 | 2,486 | cpp | C++ | o2018/subsystems/drivetrain/drivetrain_base.cpp | hansonl02/frc-robot-code | 4b120c917a7709df9f010c9089a87c320bab3a16 | [
"MIT"
] | null | null | null | o2018/subsystems/drivetrain/drivetrain_base.cpp | hansonl02/frc-robot-code | 4b120c917a7709df9f010c9089a87c320bab3a16 | [
"MIT"
] | null | null | null | o2018/subsystems/drivetrain/drivetrain_base.cpp | hansonl02/frc-robot-code | 4b120c917a7709df9f010c9089a87c320bab3a16 | [
"MIT"
] | null | null | null | #include "o2018/subsystems/drivetrain/drivetrain_base.h"
namespace o2018 {
namespace subsystems {
namespace drivetrain {
constexpr double kStallTorque = 1.41;
constexpr double kStallCurrent = 89;
constexpr double kFreeSpeed = 5840 * 2 * M_PI / 60;
constexpr double kFreeCurrent = 3;
constexpr double kMass = 45.;
cons... | 31.075 | 80 | 0.683025 | [
"model"
] |
8895aabb49e03490c7cb35b523ad9440ab27000f | 6,262 | cpp | C++ | src/raytrace/raytrace.cpp | JohanSmet/rtiow | 7ca1d0e52e96c7701b55bacebecf7ae9cdec773a | [
"BSD-3-Clause"
] | null | null | null | src/raytrace/raytrace.cpp | JohanSmet/rtiow | 7ca1d0e52e96c7701b55bacebecf7ae9cdec773a | [
"BSD-3-Clause"
] | null | null | null | src/raytrace/raytrace.cpp | JohanSmet/rtiow | 7ca1d0e52e96c7701b55bacebecf7ae9cdec773a | [
"BSD-3-Clause"
] | null | null | null | // raytrace/raytrace.cpp - Johan Smet - BSD-3-Clause (see LICENSE)
#include "raytrace.h"
#include "geometry_spheres.h"
#include "ray.h"
#include "utils.h"
#include "scene.h"
#include "thread_pool.h"
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cinttypes>
namespace rtiow {
RayTracer::RayTrace... | 34.788889 | 136 | 0.697062 | [
"render",
"object"
] |
88992a5e6a71b2467e836a99122d392f3b3db0b0 | 1,884 | cpp | C++ | src/induced_submat.cpp | USCCANA/lergm | e4ef1a516e4916b9097918d79bc1f7928fd358e0 | [
"MIT"
] | 7 | 2019-05-27T03:21:53.000Z | 2021-06-21T19:41:17.000Z | src/induced_submat.cpp | USCCANA/lergm | e4ef1a516e4916b9097918d79bc1f7928fd358e0 | [
"MIT"
] | 11 | 2019-05-03T16:24:59.000Z | 2020-07-16T04:59:11.000Z | src/induced_submat.cpp | USCCANA/lergm | e4ef1a516e4916b9097918d79bc1f7928fd358e0 | [
"MIT"
] | 1 | 2021-07-05T01:48:46.000Z | 2021-07-05T01:48:46.000Z | #include <Rcpp.h>
using namespace Rcpp;
inline IntegerMatrix induced_submati(
const IntegerMatrix & net,
const IntegerVector & v
) {
if (net.nrow() != net.ncol())
stop("`net` should be a square matrix");
IntegerVector v_unique = Rcpp::unique(v);
if (v.size() != v_unique.size())
stop("`v... | 23.848101 | 83 | 0.52017 | [
"vector"
] |
889c2eb678a918d5846e6378138c631be6ee9b34 | 1,768 | hpp | C++ | 07/handy_haversacks.hpp | ComicSansMS/AdventOfCode2020 | a46b49f5c566cabbea0e61e24f6238e4caf7470c | [
"Unlicense"
] | null | null | null | 07/handy_haversacks.hpp | ComicSansMS/AdventOfCode2020 | a46b49f5c566cabbea0e61e24f6238e4caf7470c | [
"Unlicense"
] | null | null | null | 07/handy_haversacks.hpp | ComicSansMS/AdventOfCode2020 | a46b49f5c566cabbea0e61e24f6238e4caf7470c | [
"Unlicense"
] | null | null | null | #ifndef ADVENT_OF_CODE_07_HANDY_HAVERSACKS_HPP_INCLUDE_GUARD
#define ADVENT_OF_CODE_07_HANDY_HAVERSACKS_HPP_INCLUDE_GUARD
#include <array>
#include <optional>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
struct Color {
enum class Attribute {
light,
dark,
... | 17.50495 | 93 | 0.547511 | [
"vector"
] |
889d24aae8d5c389c3e449883c1709d485b75dc2 | 13,935 | cpp | C++ | TCLogger2Excel/TCLogger2ExcelDlg.cpp | alsliahona/TCLogger2Excel | af9c896afb128a8dbed1ebc67f38a2dd0a49ca05 | [
"MIT"
] | null | null | null | TCLogger2Excel/TCLogger2ExcelDlg.cpp | alsliahona/TCLogger2Excel | af9c896afb128a8dbed1ebc67f38a2dd0a49ca05 | [
"MIT"
] | null | null | null | TCLogger2Excel/TCLogger2ExcelDlg.cpp | alsliahona/TCLogger2Excel | af9c896afb128a8dbed1ebc67f38a2dd0a49ca05 | [
"MIT"
] | 2 | 2016-08-11T03:28:24.000Z | 2021-07-24T01:30:51.000Z | // Copyright(c) 2015 Andrew L. Sandoval (http://www.andrewlsandoval.com)
//
// 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
// ... | 31.742597 | 150 | 0.754288 | [
"vector",
"model"
] |
88a78c1b89fa6467b712b6592af9a7c9605f98b9 | 13,066 | cpp | C++ | experiment_log/MetricHashing/lib/canned_food/Experiment.cpp | KukyNekoi/fpga_index_accelerator | 0026e0deb31c556cc3770ed2be64eae93257949f | [
"MIT"
] | 1 | 2018-07-12T09:43:05.000Z | 2018-07-12T09:43:05.000Z | experiment_log/MetricHashing/lib/canned_food/Experiment.cpp | honorpeter/fpga_index_accelerator | c09d222d3ad55d6bb354dee8aff97a4f519df89d | [
"MIT"
] | null | null | null | experiment_log/MetricHashing/lib/canned_food/Experiment.cpp | honorpeter/fpga_index_accelerator | c09d222d3ad55d6bb354dee8aff97a4f519df89d | [
"MIT"
] | 1 | 2019-04-09T02:38:27.000Z | 2019-04-09T02:38:27.000Z | //
// Created by Erik Andrés Regla Torres on 3/29/16.
//
#include "Experiment.h"
#include "../etc/Macros.h"
Experiment::Experiment(){
};
Experiment::~Experiment(){
};
void Experiment::set_output_path(std::string path){
this->output_path = path;
};
void Experiment::add_dataset(std::string path){
this->datas... | 43.698997 | 290 | 0.514082 | [
"vector"
] |
88ad561f6d8c4a39682d145602d29831503fd1dc | 257 | cpp | C++ | evaluate_division.cpp | spencercjh/sync-leetcode-today-problem-cpp-example | 178a974e5848e3a620f4565170b459d50ecfdd6b | [
"Apache-2.0"
] | null | null | null | evaluate_division.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 | evaluate_division.cpp | spencercjh/sync-leetcode-today-problem-cpp-example | 178a974e5848e3a620f4565170b459d50ecfdd6b | [
"Apache-2.0"
] | null | null | null | /**
* https://leetcode-cn.com/problems/evaluate-division/
*
* @author spencercjh
*/
class EvaluateDivision {
public:
vector<double> calcEquation(vector<vector<string>>& equations, vector<double>& values, vector<vector<string>>& queries) {
}
}
| 19.769231 | 125 | 0.696498 | [
"vector"
] |
88b5867727ad31a6decc5f19ad50b130788ef073 | 4,840 | cpp | C++ | gameemu-core-sm83/src/sm83.cpp | Dudejoe870/game-emu | 153b7f9b7bc56042cc6d41187688aa1d9a612830 | [
"MIT"
] | 1 | 2022-03-28T21:03:10.000Z | 2022-03-28T21:03:10.000Z | gameemu-core-sm83/src/sm83.cpp | Dudejoe870/game-emu | 153b7f9b7bc56042cc6d41187688aa1d9a612830 | [
"MIT"
] | null | null | null | gameemu-core-sm83/src/sm83.cpp | Dudejoe870/game-emu | 153b7f9b7bc56042cc6d41187688aa1d9a612830 | [
"MIT"
] | null | null | null | #include <game-emu/cores/processor/sm83.h>
namespace GameEmu::Cores::Processor::SM83
{
InstructionDecoder::Instruction* InstructionDecoder::getInstruction(const std::vector<u64>& opcodes)
{
if (opcodes.empty()) return nullptr;
u64 opcode = opcodes[0];
Instruction* instructionTable = instructions.data();
//... | 29.512195 | 190 | 0.702273 | [
"vector"
] |
88b800f28ba4b0a5a25cc273f31a1b37eab1174a | 1,729 | cpp | C++ | ver2/03-strings-vectors-and-arrays/03-24-sum-adjacent-pairs.cpp | aafulei/cppp5e | f8d254073866e3025c3a08b919d9bbe3965b6918 | [
"MIT"
] | null | null | null | ver2/03-strings-vectors-and-arrays/03-24-sum-adjacent-pairs.cpp | aafulei/cppp5e | f8d254073866e3025c3a08b919d9bbe3965b6918 | [
"MIT"
] | null | null | null | ver2/03-strings-vectors-and-arrays/03-24-sum-adjacent-pairs.cpp | aafulei/cppp5e | f8d254073866e3025c3a08b919d9bbe3965b6918 | [
"MIT"
] | null | null | null | // 21/12/23 = Thu
// 18/01/27 = Sat
// 17/10/22 = Sun
// Exercise 3.24: Redo the last exercise from § 3.3.3 (p. 105) using iterators.
// Exercise 3.20: Read a set of integers into a vector. Print the sum of each
// pair of adjacent elements. Change your program so that it prints the sum of
// the first and last eleme... | 19.647727 | 79 | 0.58878 | [
"vector"
] |
88bb95a3cea182c7c1122f10d1ecb01c8a5adf72 | 140,832 | cpp | C++ | src/appmanagement.cpp | wxphp/wxphp | a691f72e66162fabf4408abe9545d2f4cccb15fa | [
"PHP-3.01"
] | 269 | 2015-01-01T08:03:31.000Z | 2022-01-23T04:13:53.000Z | src/appmanagement.cpp | wxphp/wxphp | a691f72e66162fabf4408abe9545d2f4cccb15fa | [
"PHP-3.01"
] | 92 | 2015-01-01T13:03:06.000Z | 2020-11-23T02:43:58.000Z | src/appmanagement.cpp | wxphp/wxphp | a691f72e66162fabf4408abe9545d2f4cccb15fa | [
"PHP-3.01"
] | 54 | 2015-01-10T17:28:26.000Z | 2021-06-10T22:57:19.000Z | /*
* @author Mário Soares
* @contributors Jefferson González
* @contributors René Vögeli / Rangee GmbH
*
* @license
* This file is part of wxPHP check the LICENSE file for information.
*
* @note
* This file was auto-generated by the wxPHP source maker
*/
#include "php_wxwidgets.h"
#include "appmanagement.h... | 28.143885 | 5,702 | 0.583916 | [
"object"
] |
88c6beece6984aa53574d2265a4607fc1fe3f425 | 8,350 | cpp | C++ | src/occlusion_culling_test.cpp | kucars/culling | bb50befe5244ee388e901cd880063a683420e89e | [
"BSD-3-Clause"
] | 3 | 2020-12-16T19:25:10.000Z | 2021-04-06T13:32:31.000Z | src/occlusion_culling_test.cpp | kucars/culling | bb50befe5244ee388e901cd880063a683420e89e | [
"BSD-3-Clause"
] | null | null | null | src/occlusion_culling_test.cpp | kucars/culling | bb50befe5244ee388e901cd880063a683420e89e | [
"BSD-3-Clause"
] | 3 | 2020-10-30T11:36:33.000Z | 2021-11-20T10:51:17.000Z | #include <eigen_conversions/eigen_msg.h>
#include <geometry_msgs/Pose.h>
#include <geometry_msgs/PoseArray.h>
#include <math.h>
#include <ros/package.h>
#include <sensor_msgs/PointCloud2.h>
#include <sensor_msgs/point_cloud_conversion.h>
#include <std_msgs/Bool.h>
#include <tf/tf.h>
#include <tf_conversions/tf_eigen.h>... | 37.111111 | 107 | 0.66024 | [
"geometry",
"vector"
] |
88c9b50d9ceec7a1922f615b9d3be09a0f624f53 | 7,590 | hpp | C++ | Source/TitaniumKit/include/Titanium/Map/View.hpp | garymathews/titanium_mobile_windows | ff2a02d096984c6cad08f498e1227adf496f84df | [
"Apache-2.0"
] | 20 | 2015-04-02T06:55:30.000Z | 2022-03-29T04:27:30.000Z | Source/TitaniumKit/include/Titanium/Map/View.hpp | garymathews/titanium_mobile_windows | ff2a02d096984c6cad08f498e1227adf496f84df | [
"Apache-2.0"
] | 692 | 2015-04-01T21:05:49.000Z | 2020-03-10T10:11:57.000Z | Source/TitaniumKit/include/Titanium/Map/View.hpp | garymathews/titanium_mobile_windows | ff2a02d096984c6cad08f498e1227adf496f84df | [
"Apache-2.0"
] | 22 | 2015-04-01T20:57:51.000Z | 2022-01-18T17:33:15.000Z | /**
* TitaniumKit Titanium.Map.View
*
* Copyright (c) 2015 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License.
* Please see the LICENSE included with this distribution for details.
*/
#ifndef _TITANIUM_MAP_VIEW_HPP_
#define _TITANIUM_MAP_VIEW_HPP_
#include "Titani... | 36.84466 | 114 | 0.801976 | [
"vector"
] |
88cc7f6d7dc55249cb4bfcc9ab419a3a5b8f7d57 | 1,440 | cc | C++ | src/v1-asr/asr-source.cc | entn-at/ASR-decoder | a679ffb20081581897e1783734ac609adfbc332d | [
"MIT"
] | 15 | 2017-12-14T08:23:50.000Z | 2022-03-28T06:37:30.000Z | src/v1-asr/asr-source.cc | entn-at/ASR-decoder | a679ffb20081581897e1783734ac609adfbc332d | [
"MIT"
] | 3 | 2019-07-08T05:38:14.000Z | 2020-09-25T05:29:14.000Z | src/v1-asr/asr-source.cc | entn-at/ASR-decoder | a679ffb20081581897e1783734ac609adfbc332d | [
"MIT"
] | 12 | 2018-03-28T02:15:47.000Z | 2022-03-28T07:03:35.000Z |
#include "src/v1-asr/asr-source.h"
namespace kaldi {
std::string LatticeToString(const Lattice &lat, const fst::SymbolTable &word_syms)
{
LatticeWeight weight;
std::vector<int32> alignment;
std::vector<int32> words;
GetLinearSymbolSequence(lat, &alignment, &words, &weight);
std::ostringstream msg;
for (size_t... | 26.666667 | 91 | 0.682639 | [
"vector"
] |
88cd309eeb100fbd3e48db2639ecb3414599df02 | 6,222 | cc | C++ | art/runtime/mirror/array.cc | CanPisces/DexHunter | b8f46563c7f3aeb79cf40db09e1d231649f1a29a | [
"Apache-2.0"
] | 1,306 | 2015-09-01T05:06:16.000Z | 2022-03-10T07:13:10.000Z | art/runtime/mirror/array.cc | cnrat/DexHunter | b8f46563c7f3aeb79cf40db09e1d231649f1a29a | [
"Apache-2.0"
] | 11 | 2015-09-02T09:06:42.000Z | 2020-12-26T04:59:34.000Z | art/runtime/mirror/array.cc | cnrat/DexHunter | b8f46563c7f3aeb79cf40db09e1d231649f1a29a | [
"Apache-2.0"
] | 598 | 2015-09-01T05:06:18.000Z | 2022-03-27T07:59:49.000Z | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 37.481928 | 100 | 0.699132 | [
"object"
] |
88cdfc39faee27c003599cfa0a997515390f624c | 17,382 | cc | C++ | packages/mccomponents/lib/kernels/sample/diffraction/SingleCrystalDiffractionKernel.cc | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 5 | 2017-01-16T03:59:47.000Z | 2020-06-23T02:54:19.000Z | packages/mccomponents/lib/kernels/sample/diffraction/SingleCrystalDiffractionKernel.cc | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 293 | 2015-10-29T17:45:52.000Z | 2022-01-07T16:31:09.000Z | packages/mccomponents/lib/kernels/sample/diffraction/SingleCrystalDiffractionKernel.cc | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 1 | 2019-05-25T00:53:31.000Z | 2019-05-25T00:53:31.000Z | // -*- C++ -*-
//
// Jiao Lin <jiao.lin@gmail.com>
//
// The implementation here is borrowed from that of SingleCrystal component in mcstas.
// * Written by: Kristian Nielsen
// * Date: December 1999
// * Version: $Revision: 1.43 $
#include <cmath>
#include <cassert>
#include <iostream>
#include "mccomponents/kernels/... | 36.062241 | 120 | 0.61696 | [
"geometry",
"vector",
"3d"
] |
88d0a357336fe6001dd72d0e0e3366fe37a4f2e5 | 1,660 | cpp | C++ | Chapter_9_Rare_Topics/9.33_Gradient_Descent/kattis_wheretolive.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_9_Rare_Topics/9.33_Gradient_Descent/kattis_wheretolive.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_9_Rare_Topics/9.33_Gradient_Descent/kattis_wheretolive.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /**Kattis - wheretolive
* Gradient descent but without decreasing learning rate, just improve until no more
* improvement. We start from lowest possible x and y such that we break ties by not
* moving without improving.
*
* Time: O(2000*n), Space: O(n)
*/
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse... | 26.774194 | 84 | 0.475904 | [
"vector"
] |
88d964fd5272361e7ffcfaaf3b77547a557ee5f7 | 3,524 | cc | C++ | model.cc | yonsei-icsl/RelSim | 33ff9009ca679d1fa6f23b53de188e5af3890f7d | [
"BSD-3-Clause"
] | null | null | null | model.cc | yonsei-icsl/RelSim | 33ff9009ca679d1fa6f23b53de188e5af3890f7d | [
"BSD-3-Clause"
] | null | null | null | model.cc | yonsei-icsl/RelSim | 33ff9009ca679d1fa6f23b53de188e5af3890f7d | [
"BSD-3-Clause"
] | null | null | null | #include "model.h"
#include <iostream>
using namespace std;
// Reliability model base class
rel_model_t::rel_model_t(string m_type, string m_dist, double m_avg_mttf, double m_scale) :
type(get_rel_type(m_type)),
dist(get_rel_dist(m_dist)),
avg_mttf(m_avg_mttf),
scale(m_scale) {
}
rel_model_t::rel_mod... | 25.536232 | 91 | 0.698922 | [
"model"
] |
88df14ba005d00e46beed33e54ea6e5e06ba82e6 | 2,211 | cpp | C++ | EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/ATokPtr.cpp | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 2,757 | 2018-04-28T21:41:36.000Z | 2022-03-29T06:33:36.000Z | EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/ATokPtr.cpp | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 20 | 2019-07-23T15:29:32.000Z | 2022-01-21T12:53:04.000Z | EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/ATokPtr.cpp | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 449 | 2018-05-09T05:54:05.000Z | 2022-03-30T14:54:18.000Z | /* ATokPtr.C
*
* ANTLRToken MUST be defined before entry to this file.
*
* SOFTWARE RIGHTS
*
* We reserve no LEGAL rights to the Purdue Compiler Construction Tool
* Set (PCCTS) -- PCCTS is in the public domain. An individual or
* company may do whatever they wish with source code distributed with
* P... | 26.638554 | 74 | 0.665762 | [
"object"
] |
88e47be7cb99907cc99ec8f68f023e6d1ba25257 | 6,004 | cpp | C++ | VideoCube/VideoCubeCV/libs/app7-master/app7CoreLib/src/vector3d.cpp | Kvazikot/VideoProjects | 899cd047dd791b0e2f33d40cf6e11fe949333329 | [
"MIT"
] | null | null | null | VideoCube/VideoCubeCV/libs/app7-master/app7CoreLib/src/vector3d.cpp | Kvazikot/VideoProjects | 899cd047dd791b0e2f33d40cf6e11fe949333329 | [
"MIT"
] | null | null | null | VideoCube/VideoCubeCV/libs/app7-master/app7CoreLib/src/vector3d.cpp | Kvazikot/VideoProjects | 899cd047dd791b0e2f33d40cf6e11fe949333329 | [
"MIT"
] | null | null | null | /***********************************
Copyright (c) 2006, Richard Cassan
All rights reserved.
***********************************/
#include <math.h>
#include "../include/vector3d.h"
CVector3 makeVector3(float x, float y, float z)
{
CVector3 ret(x,y,z);
return ret;
}
void CVector3::setVector(float _x, float... | 16.494505 | 99 | 0.560293 | [
"vector"
] |
88e635bc1e394767d58c204bca163c4e561a79f1 | 26,864 | cpp | C++ | lumino/Font/src/FreeTypeFont.cpp | LuminoEngine/Lumino | 370db149da12abbe1c01a3a42b6caf07ca4000fe | [
"MIT"
] | 113 | 2020-03-05T01:27:59.000Z | 2022-03-28T13:20:51.000Z | lumino/Font/src/FreeTypeFont.cpp | LuminoEngine/Lumino | 370db149da12abbe1c01a3a42b6caf07ca4000fe | [
"MIT"
] | 13 | 2020-03-23T20:36:44.000Z | 2022-02-28T11:07:32.000Z | lumino/Font/src/FreeTypeFont.cpp | LuminoEngine/Lumino | 370db149da12abbe1c01a3a42b6caf07ca4000fe | [
"MIT"
] | 12 | 2020-12-21T12:03:59.000Z | 2021-12-15T02:07:49.000Z |
#include "Internal.hpp"
#include <ft2build.h>
#include FT_FREETYPE_H /* <freetype/freetype.h> */
#include FT_CACHE_H /* <freetype/ftcache.h> */
#include FT_TRUETYPE_TAGS_H /* <freetype/tttags.h> */
#include FT_TRUETYPE_TABLES_H /* <freetype/tttables.h> */
#include FT_SFNT_NAMES_H
#include FT_STROKER_H
#include FT_SYN... | 30.423556 | 161 | 0.704958 | [
"transform",
"3d"
] |
88ef7afd48753d0c676a9cd6403081e47c5a0af7 | 5,602 | hpp | C++ | include/Org/BouncyCastle/Asn1/DerBitString.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/Org/BouncyCastle/Asn1/DerBitString.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/Org/BouncyCastle/Asn1/DerBitString.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: Org.BouncyCastle.Asn1.DerStringBase
#include "Org/BouncyCastle/Asn1/De... | 50.927273 | 139 | 0.707069 | [
"object"
] |
323257982696382f9c7a8aef26a5b2bde62bde78 | 637 | hpp | C++ | src/dataset/mnist.hpp | ujtakk/fixednets | b7681947852a2bacd78290a34fc4c48e492ce2d5 | [
"MIT"
] | null | null | null | src/dataset/mnist.hpp | ujtakk/fixednets | b7681947852a2bacd78290a34fc4c48e492ce2d5 | [
"MIT"
] | null | null | null | src/dataset/mnist.hpp | ujtakk/fixednets | b7681947852a2bacd78290a34fc4c48e492ce2d5 | [
"MIT"
] | null | null | null | #ifndef _MNIST_HPP_
#define _MNIST_HPP_
#include "network.hpp"
#define _LENET
// #define _MLP
class MNIST : Dataset
{
private:
#if defined _MLP
MLP<Q_TYPE> model;
#elif defined _LENET
LeNet<Q_TYPE> model;
#endif
const std::string base = "../data/mnist/input/";
std::string data(int label, int sample) {
u... | 15.925 | 74 | 0.654631 | [
"model"
] |
3233a5de675fa2ce7a7d9321121f8c045b3dfcd9 | 5,944 | cpp | C++ | liboh/plugins/environment/Environment.cpp | sirikata/sirikata | 3a0d54a8c4778ad6e25ef031d461b2bc3e264860 | [
"BSD-3-Clause"
] | 31 | 2015-01-28T17:01:10.000Z | 2021-11-04T08:30:37.000Z | liboh/plugins/environment/Environment.cpp | sirikata/sirikata | 3a0d54a8c4778ad6e25ef031d461b2bc3e264860 | [
"BSD-3-Clause"
] | null | null | null | liboh/plugins/environment/Environment.cpp | sirikata/sirikata | 3a0d54a8c4778ad6e25ef031d461b2bc3e264860 | [
"BSD-3-Clause"
] | 9 | 2015-08-02T18:39:49.000Z | 2019-10-11T10:32:30.000Z | // Copyright (c) 2011 Sirikata 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 "Environment.hpp"
#include <sirikata/oh/HostedObject.hpp>
#include <json_spirit/json_spirit.h>
#define ENVIRONMENT_SERVICE_PORT 23
#define ENV_L... | 36.243902 | 159 | 0.62786 | [
"object",
"vector"
] |
323906570f6e557140cf1063afbfd0b89cfcf8b7 | 14,602 | cpp | C++ | cpp_proj/cv/omni/omni_rectify_stereo.cpp | 1487quantum/cv4_cpp | e8074a3aca72ed4bc0d9f9839f229b18fbf69222 | [
"MIT"
] | 7 | 2020-07-08T02:56:01.000Z | 2021-11-10T06:09:08.000Z | cpp_proj/cv/omni/omni_rectify_stereo.cpp | 1487quantum/cv4_cpp | e8074a3aca72ed4bc0d9f9839f229b18fbf69222 | [
"MIT"
] | null | null | null | cpp_proj/cv/omni/omni_rectify_stereo.cpp | 1487quantum/cv4_cpp | e8074a3aca72ed4bc0d9f9839f229b18fbf69222 | [
"MIT"
] | 1 | 2020-10-15T05:36:05.000Z | 2020-10-15T05:36:05.000Z | /*
* omni_rectify_stereo.cpp
* Omnidirectional Image Rectification
*
* __ _ _ ___ ______ ____ _
* /_ | || | / _ \____ / __ \ | |
* | | || || (_) | / / | | |_ _ __ _ _ __ | |_ _ _ _ __ ___
* | |__ _> _ < / /| | | | | | |/... | 35.100962 | 222 | 0.618545 | [
"object",
"vector"
] |
323e5cde370dd2ef15f1081dd04a28e0cc1feab8 | 3,480 | hpp | C++ | Board.hpp | Abodi-Massarweh/wargame-a | ce9d641e0d335a4f6ac1e4959377be0d65bf9aae | [
"MIT"
] | null | null | null | Board.hpp | Abodi-Massarweh/wargame-a | ce9d641e0d335a4f6ac1e4959377be0d65bf9aae | [
"MIT"
] | null | null | null | Board.hpp | Abodi-Massarweh/wargame-a | ce9d641e0d335a4f6ac1e4959377be0d65bf9aae | [
"MIT"
] | null | null | null | //
// Created by abodi on 27/05/2020.
//
#ifndef WARGAME_A_BOARD_HPP
#define WARGAME_A_BOARD_HPP
#include<vector>
#include "Soldier.hpp"
#include "Attacker.hpp"
#include "FootSoldier.hpp"
#include <stdexcept>
#include <iostream>
class Board {
std::vector<std::vector<Soldier*>> board;
public:
Soldier*& operato... | 25.777778 | 75 | 0.412644 | [
"vector"
] |
32456403772a8589a51ad2061c08a767d3a9ad48 | 5,817 | cpp | C++ | src/dacs/ofxLaserDacManagerEtherdream.cpp | suaretjorge/laser_ofx | 42d733489947c95cc83505f5708e89309f7d856f | [
"MIT"
] | 228 | 2015-08-19T06:33:13.000Z | 2022-03-21T13:38:47.000Z | src/dacs/ofxLaserDacManagerEtherdream.cpp | suaretjorge/laser_ofx | 42d733489947c95cc83505f5708e89309f7d856f | [
"MIT"
] | 19 | 2018-06-29T17:22:39.000Z | 2022-03-11T17:48:42.000Z | src/dacs/ofxLaserDacManagerEtherdream.cpp | suaretjorge/laser_ofx | 42d733489947c95cc83505f5708e89309f7d856f | [
"MIT"
] | 27 | 2015-11-21T02:31:51.000Z | 2022-03-20T02:25:55.000Z | //
// ofxLaserDacManagerBase.cpp
// ofxLaser
//
// Created by Seb Lee-Delisle on 29/03/2021.
//
#include "ofxLaserDacManagerEtherdream.h"
using namespace ofxLaser;
DacManagerEtherdream :: DacManagerEtherdream() {
ofxUDPSettings settings;
settings.bindPort = 7654;
settings.blocking = false;
u... | 33.624277 | 138 | 0.580368 | [
"vector"
] |
3245924133ce5b56bdb082b47670746fc801f3a3 | 2,784 | hh | C++ | src/Utilities/QuadraticInterpolatorInline.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Utilities/QuadraticInterpolatorInline.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Utilities/QuadraticInterpolatorInline.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | #include "Utilities/DBC.hh"
namespace Spheral {
//------------------------------------------------------------------------------
// Interpolate for the given x value.
//------------------------------------------------------------------------------
inline
double
QuadraticInterpolator::operator()(const double x) const ... | 26.514286 | 80 | 0.481681 | [
"vector"
] |
3246c4379ce26debb03497a50427028e24153f69 | 38,434 | cpp | C++ | llvm-2.9/lib/Target/X86/X86FrameLowering.cpp | DependableSystemsLab/Trident | 90b38ab3ce8b7ad743986ddf66eaea7d20d921cb | [
"MIT"
] | 5 | 2018-09-23T05:44:31.000Z | 2021-09-08T18:52:37.000Z | llvm-2.9/lib/Target/X86/X86FrameLowering.cpp | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | 4 | 2019-06-13T16:27:31.000Z | 2021-06-07T07:24:31.000Z | llvm-2.9/lib/Target/X86/X86FrameLowering.cpp | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | 4 | 2018-09-23T05:44:33.000Z | 2021-04-20T00:29:11.000Z | //=======- X86FrameLowering.cpp - X86 Frame Information ------------*- C++ -*-====//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------------------... | 37.791544 | 84 | 0.634282 | [
"object",
"vector"
] |
3248ea603a934d661c92e5552030b17694efd58e | 3,805 | cpp | C++ | caravan/SubProcess.cpp | crest-cassia/caravan_scheduler | 7e4fc99b1ad75d4978cad76080f6bb78d3b7cb48 | [
"MIT"
] | null | null | null | caravan/SubProcess.cpp | crest-cassia/caravan_scheduler | 7e4fc99b1ad75d4978cad76080f6bb78d3b7cb48 | [
"MIT"
] | null | null | null | caravan/SubProcess.cpp | crest-cassia/caravan_scheduler | 7e4fc99b1ad75d4978cad76080f6bb78d3b7cb48 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/poll.h>
#include <signal.h>
#include <x10/lang/Rail.h>
#include <x10/util/ArrayList.h>
#include <x10/lang/String.h>
int popen2(char*const* argv, i... | 23.060606 | 102 | 0.598949 | [
"vector"
] |
3249f23ad53e687b6dc6608f50f73339d21de2dc | 519 | cpp | C++ | CPP/CWE-477/28/bad.cpp | squinky86/FUBER | ee1382d01d589dd88d12ac1186c5e908acff240f | [
"ISC"
] | 1 | 2021-06-17T23:05:37.000Z | 2021-06-17T23:05:37.000Z | CPP/CWE-477/28/bad.cpp | squinky86/FUBER | ee1382d01d589dd88d12ac1186c5e908acff240f | [
"ISC"
] | null | null | null | CPP/CWE-477/28/bad.cpp | squinky86/FUBER | ee1382d01d589dd88d12ac1186c5e908acff240f | [
"ISC"
] | null | null | null | /*
* Copyright © 2018, Jon Hood www.hoodsecurity.com
* License: ISC
* derived from https://en.cppreference.com/w/cpp/utility/functional/unary_function
*/
#include <algorithm>
#include <functional>
#include <iostream>
#include <vector>
struct less_than_7 : std::unary_function<int, bool>
{
bool operator()(int i... | 22.565217 | 83 | 0.647399 | [
"vector"
] |
324bd45a0a6408fa16b472de121c79ef339fff7b | 2,634 | cpp | C++ | dataset/test/modification/1487_all/12/transformation_1.cpp | Karina5005/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | 3 | 2022-02-15T00:29:39.000Z | 2022-03-15T08:36:44.000Z | dataset/test/modification/1487_all/12/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | dataset/test/modification/1487_all/12/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | #include <iomanip>
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
#define imax INT_MAX
#define imin INT_MIN
#define pi pair<ll, ll>
#define ps pair<string, string>
#define pis pair<ll, string>
#define psi pair<string, ll>
#define mp make_pair
#define f first
#define s second
... | 18.680851 | 65 | 0.496583 | [
"vector"
] |
324cdf98c4580a97a061be12d79719c51962a597 | 5,479 | hpp | C++ | methods/slmm/slmmir_remapper.hpp | ambrad/COMPOSE | 0bda7aeaf2b8494c7de8cd179c22e340b08eda6e | [
"BSD-3-Clause"
] | 3 | 2018-12-30T20:01:25.000Z | 2020-07-22T23:44:14.000Z | methods/slmm/slmmir_remapper.hpp | E3SM-Project/COMPOSE | 0bda7aeaf2b8494c7de8cd179c22e340b08eda6e | [
"BSD-3-Clause"
] | 8 | 2019-02-06T19:08:31.000Z | 2020-04-24T03:40:49.000Z | methods/slmm/slmmir_remapper.hpp | ambrad/COMPOSE | 0bda7aeaf2b8494c7de8cd179c22e340b08eda6e | [
"BSD-3-Clause"
] | 2 | 2019-01-16T03:58:31.000Z | 2019-02-06T22:45:43.000Z | #ifndef INCLUDE_SLMMIR_REMAPPER_HPP
#define INCLUDE_SLMMIR_REMAPPER_HPP
#include "slmm_fit_extremum.hpp"
#include "slmmir_p_refine.hpp"
#include "slmmir_physgrid.hpp"
#include "slmmir_mono_data.hpp"
#include "slmmir_d2c.hpp"
#include "slmmir.hpp"
// Orchestrate the remap operation in one time step.
// "np basis" i... | 37.272109 | 82 | 0.724037 | [
"mesh",
"vector"
] |
325d14ebc37e58cb5da339704abb09473c820e62 | 755 | cpp | C++ | DSA/Sorting Algorithm/Divide And Conquer/RotatedSearch.cpp | RawRapter/CPlusPlus-Codes | 5c88fa6aaee47f6414fdfaafe8274522cb227605 | [
"MIT"
] | null | null | null | DSA/Sorting Algorithm/Divide And Conquer/RotatedSearch.cpp | RawRapter/CPlusPlus-Codes | 5c88fa6aaee47f6414fdfaafe8274522cb227605 | [
"MIT"
] | null | null | null | DSA/Sorting Algorithm/Divide And Conquer/RotatedSearch.cpp | RawRapter/CPlusPlus-Codes | 5c88fa6aaee47f6414fdfaafe8274522cb227605 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
/*Rotated search using modified binary search*/
int rotated_search(vector<int> &a,int key){
int n = a.size()-1;
int s=0;
int e = n-1;
while(s<=e){
int mid = (s+e)/2;
if(a[mid] == key)
return mid;
if(a[s]<a[mid]){
... | 19.358974 | 47 | 0.437086 | [
"vector"
] |
325d941628c704a584fc86b22bece36b3ba31b72 | 1,153 | cpp | C++ | C++/Graphs/Algorithms/DepthFirstSearch/DepthFirstSearch.cpp | Kytlin/Algorithms | fe9d07f968236de2e8bfc26fed198d11de5ae3d2 | [
"MIT"
] | null | null | null | C++/Graphs/Algorithms/DepthFirstSearch/DepthFirstSearch.cpp | Kytlin/Algorithms | fe9d07f968236de2e8bfc26fed198d11de5ae3d2 | [
"MIT"
] | null | null | null | C++/Graphs/Algorithms/DepthFirstSearch/DepthFirstSearch.cpp | Kytlin/Algorithms | fe9d07f968236de2e8bfc26fed198d11de5ae3d2 | [
"MIT"
] | null | null | null | // Date: 08/30/20
/* Program: Runs "Depth First Search" and outputs the
total distance of each node from the node 's' */
#include <iostream>
#include <vector>
#include <stack>
using namespace std;
void dfs(vector<vector<int>> graph, stack<int> track, int s, vector<bool> visited, vector<int> dist) {
bool visit = fals... | 19.87931 | 102 | 0.566349 | [
"vector"
] |
326e5021d67afba5f6dbcd147111f9f40e340e4c | 10,300 | hpp | C++ | src/decoders/novatel/api/binarytoasciicomposer.hpp | novatel/novatel_edie | d212681f1952704e50e9c8977891dd024c3338ae | [
"MIT"
] | 3 | 2021-05-04T21:14:18.000Z | 2021-07-23T17:19:54.000Z | src/decoders/novatel/api/binarytoasciicomposer.hpp | novatel/novatel_edie | d212681f1952704e50e9c8977891dd024c3338ae | [
"MIT"
] | 1 | 2022-03-07T18:04:18.000Z | 2022-03-07T18:04:18.000Z | src/decoders/novatel/api/binarytoasciicomposer.hpp | novatel/novatel_edie | d212681f1952704e50e9c8977891dd024c3338ae | [
"MIT"
] | 2 | 2021-05-04T21:18:25.000Z | 2021-06-24T08:51:43.000Z | ////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2020 NovAtel 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 restrictio... | 37.318841 | 278 | 0.698641 | [
"object",
"vector"
] |
3270bc9dba287e18f470abff6643d28542d76bff | 7,060 | hpp | C++ | ZeroLibraries/Meta/ThreadSafeReferenceCounted.hpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | 1 | 2022-03-26T21:08:19.000Z | 2022-03-26T21:08:19.000Z | ZeroLibraries/Meta/ThreadSafeReferenceCounted.hpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | ZeroLibraries/Meta/ThreadSafeReferenceCounted.hpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
///
/// Authors: Nathan Carlson
/// Copyright 2017, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#pragma once
namespace Zero
{
class ThreadSafeReferenceCoun... | 44.125 | 147 | 0.561898 | [
"object"
] |
32734bd16beb393efe530d4573010ba5423ca566 | 1,347 | cpp | C++ | Medium/90_subsetsWithDup/90_subsetsWithDup/main.cpp | yangbingjie/Leetcode | 2f1e386cfb8b2d7d49cf0e7dcf0bce1c936e1916 | [
"MIT"
] | 1 | 2020-10-08T06:15:37.000Z | 2020-10-08T06:15:37.000Z | Medium/90_subsetsWithDup/90_subsetsWithDup/main.cpp | yangbingjie/Leetcode | 2f1e386cfb8b2d7d49cf0e7dcf0bce1c936e1916 | [
"MIT"
] | null | null | null | Medium/90_subsetsWithDup/90_subsetsWithDup/main.cpp | yangbingjie/Leetcode | 2f1e386cfb8b2d7d49cf0e7dcf0bce1c936e1916 | [
"MIT"
] | null | null | null | //
// main.cpp
// 90_subsetsWithDup
//
// Created by Bella Yang on 2020/5/4.
// Copyright © 2020 Bella Yang. All rights reserved.
//
#include <iostream>
#include <vector>
#include <map>
using namespace std;
class Solution {
public:
vector<vector<int>> subsetsWithDup(vector<int>& nums) {
vector<vector<i... | 24.490909 | 62 | 0.455085 | [
"vector"
] |
327356f6fe4f4c4fd90cd5ccd9707471cc80c08b | 13,749 | hpp | C++ | ares/ngp/cpu/cpu.hpp | moon-chilled/Ares | 909fb098c292f8336d0502dc677050312d8b5c81 | [
"0BSD"
] | 7 | 2020-07-25T11:44:39.000Z | 2021-01-29T13:21:31.000Z | ares/ngp/cpu/cpu.hpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | null | null | null | ares/ngp/cpu/cpu.hpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | 1 | 2021-03-22T16:15:30.000Z | 2021-03-22T16:15:30.000Z | //the Neo Geo Pocket CPU is a custom component, but its internal registers most
//closely match the Toshiba TMP95C061. Until it's known exactly which components
//actually exist, this class tries to emulate all TMP95C061 functionality that
//it is able to.
struct CPU : TLCS900H, Thread {
Node::Component node;
ares... | 20.582335 | 80 | 0.603971 | [
"object",
"vector"
] |
3273dfedaa59e7699cf66d579b57be3ef5ae59af | 6,265 | hpp | C++ | Visitors/AcceptanceVisitors/DilatedSourceHoleTargetValidAcceptanceVisitor.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 39 | 2015-01-01T07:59:51.000Z | 2021-10-01T18:11:46.000Z | Visitors/AcceptanceVisitors/DilatedSourceHoleTargetValidAcceptanceVisitor.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 1 | 2019-04-24T09:56:15.000Z | 2019-04-24T14:45:46.000Z | Visitors/AcceptanceVisitors/DilatedSourceHoleTargetValidAcceptanceVisitor.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 18 | 2015-01-11T15:10:23.000Z | 2022-02-24T20:02:10.000Z | /*=========================================================================
*
* Copyright David Doria 2012 daviddoria@gmail.com
*
* 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
*
*... | 42.910959 | 158 | 0.694972 | [
"vector"
] |
327bd74b377d051150e68dd00a269e4df4cb8bf8 | 9,954 | cpp | C++ | webkit/WebCore/svg/SVGMaskElement.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 15 | 2016-01-05T12:43:41.000Z | 2022-03-15T10:34:47.000Z | webkit/WebCore/svg/SVGMaskElement.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | null | null | null | webkit/WebCore/svg/SVGMaskElement.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 2 | 2020-11-30T18:36:01.000Z | 2021-02-05T23:20:24.000Z | /*
Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
2005 Alexander Kellett <lypanov@kde.org>
2009 Dirk Schulze <krit@webkit.org>
This library is free software; you can redistribute i... | 41.302905 | 124 | 0.689773 | [
"vector"
] |
327e459b6949930562449596f015c1a53ee5f7e3 | 3,672 | cpp | C++ | src/Tools/Code/Polar/Frozenbits_generator/Frozenbits_generator_GA.cpp | FredrikBlomgren/aff3ct | fa616bd923b2dcf03a4cf119cceca51cf810d483 | [
"MIT"
] | 315 | 2016-06-21T13:32:14.000Z | 2022-03-28T09:33:59.000Z | src/Tools/Code/Polar/Frozenbits_generator/Frozenbits_generator_GA.cpp | a-panella/aff3ct | 61509eb756ae3725b8a67c2d26a5af5ba95186fb | [
"MIT"
] | 153 | 2017-01-17T03:51:06.000Z | 2022-03-24T15:39:26.000Z | src/Tools/Code/Polar/Frozenbits_generator/Frozenbits_generator_GA.cpp | a-panella/aff3ct | 61509eb756ae3725b8a67c2d26a5af5ba95186fb | [
"MIT"
] | 119 | 2017-01-04T14:31:58.000Z | 2022-03-21T08:34:16.000Z | #ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#include <algorithm>
#include <numeric>
#include <cmath>
#include "Tools/Code/Polar/decoder_polar_functions.h"
#include "Tools/Exception/exception.hpp"
#include "Tools/Code/Polar/Frozenbits_generator/Frozenbits_generator_GA.hpp"
using namespace aff3ct;
using ... | 31.384615 | 117 | 0.723856 | [
"vector"
] |
32864e9413ffd7624c698ac9926754bf40ca0b99 | 972 | cpp | C++ | snippets/vector/push_back.cpp | aditya041997/30-seconds-of-cpp | df6e750de7b26bc401ea75860be1e6ec1df34454 | [
"MIT"
] | 1,210 | 2019-03-22T18:53:59.000Z | 2022-03-31T07:47:34.000Z | snippets/vector/push_back.cpp | aditya041997/30-seconds-of-cpp | df6e750de7b26bc401ea75860be1e6ec1df34454 | [
"MIT"
] | 217 | 2019-04-05T09:07:26.000Z | 2022-01-29T22:42:37.000Z | snippets/vector/push_back.cpp | aditya041997/30-seconds-of-cpp | df6e750de7b26bc401ea75860be1e6ec1df34454 | [
"MIT"
] | 657 | 2019-03-17T15:04:47.000Z | 2022-03-31T05:05:40.000Z | // Follow the Style Guide while submitting code PR.
// Style Guide => https://github.com/Bhupesh-V/30-Seconds-Of-STL/blob/master/CONTRIBUTING.md/#Style Guide
/*
Author : Kamal Kant Sharma
Date : 05/07/2019
Time : 13:44
Description : std::vector::push_back from STL is used to add new elements to the end ... | 23.142857 | 105 | 0.648148 | [
"vector"
] |
328789f348ad0e5a363b2d445106a20774593d1e | 5,854 | cpp | C++ | bytesteady/bytepair_codec_test.cpp | ElementAI/bytesteady | 737cfc4a5fc0f0ad783ccc70b73200b5e3cef06f | [
"Apache-2.0"
] | 3 | 2021-11-08T19:18:32.000Z | 2022-03-06T06:09:58.000Z | bytesteady/bytepair_codec_test.cpp | ElementAI/bytesteady | 737cfc4a5fc0f0ad783ccc70b73200b5e3cef06f | [
"Apache-2.0"
] | null | null | null | bytesteady/bytepair_codec_test.cpp | ElementAI/bytesteady | 737cfc4a5fc0f0ad783ccc70b73200b5e3cef06f | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 ServiceNow
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, s... | 30.649215 | 80 | 0.659549 | [
"vector"
] |
328fc4c4b5ebebd1633c9daf531b78c70defc8bb | 2,996 | cpp | C++ | pro-TBB/ch06/fig_6_01.cpp | yyk99/tbb_junk | 0cfca1d2227690ce0f60cdcd1589350d26f8f8bb | [
"MIT"
] | 107 | 2019-07-30T13:24:31.000Z | 2022-03-25T10:51:33.000Z | pro-TBB/ch06/fig_6_01.cpp | yyk99/tbb_junk | 0cfca1d2227690ce0f60cdcd1589350d26f8f8bb | [
"MIT"
] | 21 | 2019-12-30T02:12:37.000Z | 2021-08-22T12:28:30.000Z | pro-TBB/ch06/fig_6_01.cpp | yyk99/tbb_junk | 0cfca1d2227690ce0f60cdcd1589350d26f8f8bb | [
"MIT"
] | 31 | 2019-07-11T17:21:40.000Z | 2022-03-06T08:54:28.000Z | /*
Copyright (C) 2019 Intel Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribut... | 33.288889 | 88 | 0.70227 | [
"object"
] |
3293ac73b27bd4ab59de7a976257bff097814811 | 2,765 | cpp | C++ | src/xlOil/Loaders/CoreEntryPoint.cpp | cunnane/xloil | 2c66bdbe47b3de4cb97213351bf5f1099a3c11d2 | [
"Apache-2.0"
] | null | null | null | src/xlOil/Loaders/CoreEntryPoint.cpp | cunnane/xloil | 2c66bdbe47b3de4cb97213351bf5f1099a3c11d2 | [
"Apache-2.0"
] | null | null | null | src/xlOil/Loaders/CoreEntryPoint.cpp | cunnane/xloil | 2c66bdbe47b3de4cb97213351bf5f1099a3c11d2 | [
"Apache-2.0"
] | null | null | null | #include <xlOil/Events.h>
#include <xlOil/ExcelObj.h>
#include <xlOil/Interface.h>
#include <xlOil/ExcelCall.h>
#include <xlOil/Loaders/CoreEntryPoint.h>
#include <xlOil/ExportMacro.h>
#include <xlOil/Log.h>
#include <xlOil/Loaders/PluginLoader.h>
#include <xlOil/WindowsSlim.h>
#include <xlOilHelpers/Settings.h>
#inclu... | 24.254386 | 80 | 0.65859 | [
"vector"
] |
32a9284ebf16f62a71cc3c73a0e915fc3bf63a21 | 9,495 | cpp | C++ | tags/ewstagstore.cpp | KrissN/akonadi-ews | 05ce7e24547fbdb559de55dabda86d337716cfba | [
"RSA-MD"
] | 122 | 2016-03-01T12:53:43.000Z | 2021-11-06T21:14:21.000Z | tags/ewstagstore.cpp | KrissN/akonadi-ews | 05ce7e24547fbdb559de55dabda86d337716cfba | [
"RSA-MD"
] | 54 | 2016-05-02T10:05:47.000Z | 2022-02-01T18:10:38.000Z | tags/ewstagstore.cpp | KrissN/akonadi-ews | 05ce7e24547fbdb559de55dabda86d337716cfba | [
"RSA-MD"
] | 17 | 2016-05-18T21:02:08.000Z | 2022-01-27T20:33:26.000Z | /* This file is part of Akonadi EWS Resource
Copyright (C) 2015-2017 Krzysztof Nowicki <krissn@op.pl>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of ... | 29.125767 | 107 | 0.611796 | [
"object"
] |
32aa1a127f25491b66bf5b9e17f47ed19b73d822 | 21,170 | cpp | C++ | object_estimation/src/estimator/object_tracker.cpp | grvcTeam/mbzirc2020 | e474cee6458a3bb14f858da43349c5154b3c8cdd | [
"MIT"
] | null | null | null | object_estimation/src/estimator/object_tracker.cpp | grvcTeam/mbzirc2020 | e474cee6458a3bb14f858da43349c5154b3c8cdd | [
"MIT"
] | null | null | null | object_estimation/src/estimator/object_tracker.cpp | grvcTeam/mbzirc2020 | e474cee6458a3bb14f858da43349c5154b3c8cdd | [
"MIT"
] | 2 | 2021-01-01T06:32:04.000Z | 2021-06-28T09:09:16.000Z | //------------------------------------------------------------------------------
// GRVC MBZIRC
// Author Jesus Capitan <jcapitan@us.es>
//------------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2019 GRVC University of Seville
//
// Permission is hereb... | 23.08615 | 106 | 0.640529 | [
"object",
"vector",
"transform"
] |
32ab81656613a1a558d8f1cb45b60b7c9147f781 | 1,300 | hpp | C++ | src/include/duckdb/planner/operator/logical_copy_from_file.hpp | pacien/duckdb | d887d2f80f283160643a3adf74ae3d1b7f8662c1 | [
"MIT"
] | null | null | null | src/include/duckdb/planner/operator/logical_copy_from_file.hpp | pacien/duckdb | d887d2f80f283160643a3adf74ae3d1b7f8662c1 | [
"MIT"
] | 7 | 2020-08-25T22:24:16.000Z | 2020-09-06T00:16:49.000Z | src/include/duckdb/planner/operator/logical_copy_from_file.hpp | pacien/duckdb | d887d2f80f283160643a3adf74ae3d1b7f8662c1 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/planner/operator/logical_copy_from_file.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/planner/logical_operator.hpp"... | 28.888889 | 106 | 0.638462 | [
"vector"
] |
32b307559d504f2268aa7a57fdff48e5dd75d5c9 | 658 | cpp | C++ | benchmarks/world/cube_collision.cpp | JoseETeixeira/vulkan-renderer | 982e8004d9269ab1ffb1b7e8da03b351136985c9 | [
"MIT"
] | 443 | 2019-12-26T03:24:17.000Z | 2022-03-29T07:55:01.000Z | benchmarks/world/cube_collision.cpp | JoseETeixeira/vulkan-renderer | 982e8004d9269ab1ffb1b7e8da03b351136985c9 | [
"MIT"
] | 384 | 2019-12-12T13:08:02.000Z | 2022-03-28T19:57:11.000Z | benchmarks/world/cube_collision.cpp | JoseETeixeira/vulkan-renderer | 982e8004d9269ab1ffb1b7e8da03b351136985c9 | [
"MIT"
] | 36 | 2020-03-31T11:44:28.000Z | 2022-03-12T08:44:25.000Z | #include <benchmark/benchmark.h>
#include <inexor/vulkan-renderer/world/collision_query.hpp>
#include <inexor/vulkan-renderer/world/cube.hpp>
namespace inexor::vulkan_renderer {
void CubeCollision(benchmark::State &state) {
for (auto _ : state) {
const glm::vec3 world_pos{0, 0, 0};
world::Cube wo... | 27.416667 | 90 | 0.68541 | [
"solid"
] |
32b97f114d7bdec8c05bdca7cc4bb11a9911bce9 | 11,736 | cpp | C++ | generator.cpp | kalven/autocodex | c6b3dfb741ca84505695166316a304282be7b7fd | [
"MIT"
] | null | null | null | generator.cpp | kalven/autocodex | c6b3dfb741ca84505695166316a304282be7b7fd | [
"MIT"
] | null | null | null | generator.cpp | kalven/autocodex | c6b3dfb741ca84505695166316a304282be7b7fd | [
"MIT"
] | null | null | null | // The autocodex wisdom generator. Compile with a C++17 capable compiler, like:
// $ g++ -o generator -O3 -std=c++17 generator.cpp
#include <algorithm>
#include <array>
#include <cstring>
#include <fstream>
#include <iostream>
#include <random>
#include <string>
#include <unordered_set>
#include <vector>
#include <un... | 29.487437 | 80 | 0.619376 | [
"vector"
] |
32c05f7af4c7c82588b344f7878ce537acbf2634 | 2,316 | cpp | C++ | paperSource/Segnet_mono.cpp | yubaoliu/Practice | 8f0a9a7fbfb4b1d6e7745822fd81e66b2cf40b61 | [
"MIT"
] | null | null | null | paperSource/Segnet_mono.cpp | yubaoliu/Practice | 8f0a9a7fbfb4b1d6e7745822fd81e66b2cf40b61 | [
"MIT"
] | null | null | null | paperSource/Segnet_mono.cpp | yubaoliu/Practice | 8f0a9a7fbfb4b1d6e7745822fd81e66b2cf40b61 | [
"MIT"
] | null | null | null | #include "Segnet.h"
// #include <glog/logging.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <algorithm>
#include <iosfwd>
#include <memory>
#include <string>
#include <utility>
#include <vector>
using namespace RE_SLAM;
void print_help()
{... | 24.638298 | 86 | 0.509067 | [
"vector"
] |
32c6b3b9a098a3bb8fc0175e10b8336a3ff74965 | 7,286 | inl | C++ | src/Core/Geometry/IndexedGeometry.inl | Yasoo31/Radium-Engine | e22754d0abe192207fd946509cbd63c4f9e52dd4 | [
"Apache-2.0"
] | 78 | 2017-12-01T12:23:22.000Z | 2022-03-31T05:08:09.000Z | src/Core/Geometry/IndexedGeometry.inl | Yasoo31/Radium-Engine | e22754d0abe192207fd946509cbd63c4f9e52dd4 | [
"Apache-2.0"
] | 527 | 2017-09-25T13:05:32.000Z | 2022-03-31T18:47:44.000Z | src/Core/Geometry/IndexedGeometry.inl | Yasoo31/Radium-Engine | e22754d0abe192207fd946509cbd63c4f9e52dd4 | [
"Apache-2.0"
] | 48 | 2018-01-04T22:08:08.000Z | 2022-03-03T08:13:41.000Z | #pragma once
#include <Core/Geometry/IndexedGeometry.hpp>
namespace Ra {
namespace Core {
namespace Geometry {
// GeometryIndexLayerBase
inline GeometryIndexLayerBase::GeometryIndexLayerBase( const GeometryIndexLayerBase& other ) :
ObjectWithSemantic( other.semantics() ) {}
inline GeometryIndexLayerBase&
Geome... | 34.861244 | 100 | 0.73703 | [
"geometry",
"object"
] |
32cdde0d5476e6cbc381cd5cfec01e729ab859ae | 268 | cpp | C++ | tests/src/main.cpp | jsmolka/sh | 8806d3155575baaea4cd0373ed894cc6f2769812 | [
"MIT"
] | null | null | null | tests/src/main.cpp | jsmolka/sh | 8806d3155575baaea4cd0373ed894cc6f2769812 | [
"MIT"
] | null | null | null | tests/src/main.cpp | jsmolka/sh | 8806d3155575baaea4cd0373ed894cc6f2769812 | [
"MIT"
] | null | null | null | #include "tests/array.h"
#include "tests/clap.h"
#include "tests/filesystem.h"
#include "tests/hash.h"
#include "tests/parse.h"
#include "tests/ranges.h"
#include "tests/stack.h"
#include "tests/utility.h"
#include "tests/vector.h"
auto main() -> int {
return 0;
}
| 19.142857 | 29 | 0.697761 | [
"vector"
] |
32da8514fdb03f6d85463ff21c95c6cc1879566d | 2,945 | cpp | C++ | hard/0004findMedianSortedArrays.cpp | wanghengg/LeetCode | 4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79 | [
"Apache-2.0"
] | null | null | null | hard/0004findMedianSortedArrays.cpp | wanghengg/LeetCode | 4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79 | [
"Apache-2.0"
] | null | null | null | hard/0004findMedianSortedArrays.cpp | wanghengg/LeetCode | 4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
// 暴力解法,直接将两个数组合并排序,然后取中间的数,时间复杂度O((m+n)log(m+n)),空间复杂度O(m+n)
class Solution{
public:
double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) {
vector<int> nums;
int totalLength = nums1.size() + nums2.size... | 34.244186 | 123 | 0.516129 | [
"vector"
] |
77f7bbae84934f5c9c016e6eb3dbd3218af41c73 | 15,483 | cpp | C++ | scan_passage_detection/src/passage_detection_node.cpp | grvcTeam/mbzirc2020 | e474cee6458a3bb14f858da43349c5154b3c8cdd | [
"MIT"
] | null | null | null | scan_passage_detection/src/passage_detection_node.cpp | grvcTeam/mbzirc2020 | e474cee6458a3bb14f858da43349c5154b3c8cdd | [
"MIT"
] | null | null | null | scan_passage_detection/src/passage_detection_node.cpp | grvcTeam/mbzirc2020 | e474cee6458a3bb14f858da43349c5154b3c8cdd | [
"MIT"
] | 2 | 2021-01-01T06:32:04.000Z | 2021-06-28T09:09:16.000Z | #include <ros/ros.h>
#include <sensor_msgs/LaserScan.h>
#include <geometry_msgs/Point.h>
#include <visualization_msgs/MarkerArray.h>
#include <mbzirc_comm_objs/ObjectDetectionList.h>
#include <mbzirc_comm_objs/WallList.h>
#include <scan_passage_detection/wall_utils.h>
#include <random_numbers/random_numbers.h>
#include... | 40.960317 | 174 | 0.59659 | [
"object",
"vector",
"model"
] |
77f8e321a819b01fcd62f24d8e057ab233f03033 | 3,757 | cxx | C++ | gui/moc_QvisDownloader.cxx | ahota/visit_ospray | d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9 | [
"BSD-3-Clause"
] | null | null | null | gui/moc_QvisDownloader.cxx | ahota/visit_ospray | d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9 | [
"BSD-3-Clause"
] | null | null | null | gui/moc_QvisDownloader.cxx | ahota/visit_ospray | d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'QvisDownloader.h'
**
** Created: Wed Nov 4 16:17:57 2015
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.3)
**
** WARNING! All changes made in this file will be lost!
*********************... | 32.387931 | 135 | 0.630822 | [
"object"
] |
77fad1c46cc2bdfe40fb79c01e2f744efb9bb618 | 1,058 | cpp | C++ | problems/315.Count_of_Smaller_Numbers_After_Self/yin_bit_n.cpp | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/315.Count_of_Smaller_Numbers_After_Self/yin_bit_n.cpp | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/315.Count_of_Smaller_Numbers_After_Self/yin_bit_n.cpp | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | // Bit Manipulation
// Time Complexity O(n)
// Space Complexity O(n)
class Solution {
private:
void bit_divide(vector<int>& nums, vector<int> ind, int mask, vector<int>& res) {
if (mask == 0 || ind.size() <= 1) return;
vector<int> lowGroup, highGroup;
int high = mask < 0 ? 0 : m... | 31.117647 | 85 | 0.478261 | [
"vector"
] |
ae006e2327e25505f392ec20c4c1c4a53037af33 | 12,087 | cpp | C++ | src/particle_filter.cpp | MC-8/SDC-P8-kidnapped-vehicle | 47773d985df74097e904eb2776a084c4a309a226 | [
"MIT"
] | null | null | null | src/particle_filter.cpp | MC-8/SDC-P8-kidnapped-vehicle | 47773d985df74097e904eb2776a084c4a309a226 | [
"MIT"
] | null | null | null | src/particle_filter.cpp | MC-8/SDC-P8-kidnapped-vehicle | 47773d985df74097e904eb2776a084c4a309a226 | [
"MIT"
] | null | null | null | /*
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: Tiffany Huang
*/
#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include <iterator>
#include "particle_filter.h"
usin... | 37.421053 | 187 | 0.675105 | [
"vector",
"transform"
] |
ae278ed05193781e83cd093aad1c5629cc78203d | 12,565 | hpp | C++ | include/hecate/hecate.hpp | allenday/hecate | 5e5ba1dd685b2d505cf90d066a3481fe12de3766 | [
"Apache-2.0"
] | 414 | 2016-09-07T15:06:36.000Z | 2022-03-29T07:47:04.000Z | include/hecate/hecate.hpp | allenday/hecate | 5e5ba1dd685b2d505cf90d066a3481fe12de3766 | [
"Apache-2.0"
] | 31 | 2016-12-07T09:01:54.000Z | 2020-08-17T16:29:02.000Z | include/hecate/hecate.hpp | allenday/hecate | 5e5ba1dd685b2d505cf90d066a3481fe12de3766 | [
"Apache-2.0"
] | 120 | 2016-09-20T08:52:25.000Z | 2022-03-20T03:54:26.000Z | /*
* HECTATE Video Processing Library
*
* Copyright 2016 Yahoo Inc.
* Licensed under the terms of the Apache 2.0 License.
* See LICENSE file in the project root for terms.
*
* Developer: Yale Song (yalesong@yahoo-inc.com)
*/
#ifndef HECATE_HPP
#define HECATE_HPP
#include <stdio.h>
#include <stdlib.h>
#include... | 35.797721 | 116 | 0.559411 | [
"vector"
] |
ae3cbad8e9dd1956ba9fe1228116b7826e386bc8 | 19,704 | cpp | C++ | src/masternode.cpp | abutaim/dash2 | 4c5a7da95a70aaf87e5cc6d4e847ae2ae29df106 | [
"MIT"
] | null | null | null | src/masternode.cpp | abutaim/dash2 | 4c5a7da95a70aaf87e5cc6d4e847ae2ae29df106 | [
"MIT"
] | null | null | null | src/masternode.cpp | abutaim/dash2 | 4c5a7da95a70aaf87e5cc6d4e847ae2ae29df106 | [
"MIT"
] | null | null | null | // Copyright (c) 2014-2015 The Dash developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "masternode.h"
#include "masternodeman.h"
#include "darksend.h"
#include "util.h"
#include "sync.h"
#include "addrman.h"... | 32.407895 | 251 | 0.652812 | [
"vector"
] |
ae44590cfda505a9c711524e690f1eedeeb66cb9 | 791 | cpp | C++ | Canadian Computing Contest/2020/S1.cpp | aldew5/Competitve-Programming | eb0b93a35af3bd5e806aedc44b835830af01d496 | [
"MIT"
] | 2 | 2020-05-09T15:54:18.000Z | 2021-01-23T22:32:53.000Z | Canadian Computing Contest/2020/S1.cpp | aldew5/Competitive-Programming | fc93723fae739d0b06bcf2dbe3b9274584a79a66 | [
"MIT"
] | null | null | null | Canadian Computing Contest/2020/S1.cpp | aldew5/Competitive-Programming | fc93723fae739d0b06bcf2dbe3b9274584a79a66 | [
"MIT"
] | null | null | null | /*
Aldew
PROB: Surmising a Sprinter's Speed
CLASSIFICATION: Implementation
*/
#include <iostream>
#include <vector>
#include <bits/stdc++.h>
#include <cmath>
#include <string>
#include <map>
#include <math.h>
#include <cstdio>
using namespace std;
int main()
{
int n;
cin >> n;
vector< pair<int, int> > ... | 16.142857 | 50 | 0.494311 | [
"vector"
] |
ae445cb1c0a278b8118acc5c6f931ae892c573d1 | 15,983 | cpp | C++ | fbx/FBXModelLoader.cpp | ArtemHollow/JustAnotherSchoolProject | 016c24fdbbebd5618c085b74ab43bf95bb20a642 | [
"MIT"
] | null | null | null | fbx/FBXModelLoader.cpp | ArtemHollow/JustAnotherSchoolProject | 016c24fdbbebd5618c085b74ab43bf95bb20a642 | [
"MIT"
] | null | null | null | fbx/FBXModelLoader.cpp | ArtemHollow/JustAnotherSchoolProject | 016c24fdbbebd5618c085b74ab43bf95bb20a642 | [
"MIT"
] | null | null | null | package ru.hollowhorizon.hc.client.model.fbx;
import net.minecraft.client.Minecraft;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
import ru.hollowhorizon.hc.client.model.fbx.raw.FBXElement;
import ru.hollowhorizon.hc.client.model.fbx.raw.FBXProperty;
import ru.hollowhorizon.hc.clien... | 43.314363 | 162 | 0.479635 | [
"mesh",
"geometry",
"object",
"model"
] |
ae52bdf39d78e71b0ca092d6aa9844724ac59a09 | 7,740 | cpp | C++ | src/submitter/app.cpp | pointnity/Scheduler-of-Pointnity-N.1.1.0 | 8824bfb95d80d638ff466535747430bae15c212d | [
"MIT"
] | 1 | 2019-08-15T10:04:31.000Z | 2019-08-15T10:04:31.000Z | src/submitter/app.cpp | pointnity/Scheduler-V0.1- | 8824bfb95d80d638ff466535747430bae15c212d | [
"MIT"
] | null | null | null | src/submitter/app.cpp | pointnity/Scheduler-V0.1- | 8824bfb95d80d638ff466535747430bae15c212d | [
"MIT"
] | null | null | null | /*******************************
File name: submitter/app.cpp
Version: 0.1
Description: app manager for submitter
*********************************/
#include <string>
#include <vector>
#include <stdio.h>
#include <iostream>
#include "submitter/hdfs_wrapper.h"
#include "submitter/app.h"
#include "include/classad_at... | 30.96 | 124 | 0.626615 | [
"vector"
] |
ae53133824d351f7c228d6ecb608b2bce53948f9 | 9,893 | cpp | C++ | src/extension-examples/technical_drawing.cpp | 104-Berlin/universal-software-kit | d542d3e3fd01954c1c68ba81e7251926889c9e65 | [
"MIT"
] | 1 | 2021-06-19T12:37:10.000Z | 2021-06-19T12:37:10.000Z | src/extension-examples/technical_drawing.cpp | 104-Berlin/universal-software-kit | d542d3e3fd01954c1c68ba81e7251926889c9e65 | [
"MIT"
] | 46 | 2021-03-26T22:11:59.000Z | 2022-03-29T20:13:59.000Z | src/extension-examples/technical_drawing.cpp | 104-Berlin/universal-software-kit | d542d3e3fd01954c1c68ba81e7251926889c9e65 | [
"MIT"
] | null | null | null | #include "editor_extension.h"
using namespace Engine;
using namespace Graphics;
using namespace Renderer;
EVector<RMesh::Vertex> planeVertices = {
{{-50.0f,-50.0f, -1.0f}},
{{ 50.0f,-50.0f, -1.0f}},
{{ 50.0f, 50.0f, -1.0f}},
{{-50.0f, 50.0f, -1.0f}},
};
EVector<u32> planeIndices = {
0, 1, 2, 2,... | 38.05 | 132 | 0.652684 | [
"mesh",
"vector",
"3d"
] |
ae5cdfdf9b8f8cf7dc76e017af779bc48ffb7c36 | 3,636 | cpp | C++ | svc_kube_vision_opencvplus/extras/EyeTracking/EyeTracking.cpp | lucmichalski/kube-vproxy | c7cc0edbcbcd07a48f0fc48b9457eae693b76688 | [
"Apache-2.0"
] | 3 | 2018-06-22T07:55:51.000Z | 2021-06-21T19:18:16.000Z | svc_kube_vision_opencvplus/extras/EyeTracking/EyeTracking.cpp | lucmichalski/kube-vproxy | c7cc0edbcbcd07a48f0fc48b9457eae693b76688 | [
"Apache-2.0"
] | null | null | null | svc_kube_vision_opencvplus/extras/EyeTracking/EyeTracking.cpp | lucmichalski/kube-vproxy | c7cc0edbcbcd07a48f0fc48b9457eae693b76688 | [
"Apache-2.0"
] | 1 | 2020-11-04T04:56:50.000Z | 2020-11-04T04:56:50.000Z | /**
* eye-tracking.cpp:
* Eye detection and tracking with OpenCV
*
* This program tries to detect and tracking the user's eye with webcam.
* At startup, the program performs face detection followed by eye detection
* using OpenCV's built-in Haar cascade classifier. If the user's eye detected
* successfully, an ... | 27.134328 | 91 | 0.679868 | [
"vector"
] |
ae5d5bc734328266bae2b097cbaf9c20fb460162 | 413 | hpp | C++ | libs/core/render/include/bksge/core/render/gl/fwd/gl_renderer_fwd.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/render/include/bksge/core/render/gl/fwd/gl_renderer_fwd.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/render/include/bksge/core/render/gl/fwd/gl_renderer_fwd.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file gl_renderer_fwd.hpp
*
* @brief GlRenderer クラスの前方宣言
*
* @author myoukaku
*/
#ifndef BKSGE_CORE_RENDER_GL_FWD_GL_RENDERER_FWD_HPP
#define BKSGE_CORE_RENDER_GL_FWD_GL_RENDERER_FWD_HPP
namespace bksge
{
namespace render
{
class GlRenderer;
} // namespace render
using render::Gl... | 15.296296 | 55 | 0.731235 | [
"render"
] |
ae615e97575fd41ea7b287522d3099ba36456137 | 7,310 | cpp | C++ | src/game/scenes/GameScene.cpp | TheLifes08/game-rpg | 592c0587f95a3f1c34e94b4e77c699c5cd6c4c25 | [
"MIT"
] | null | null | null | src/game/scenes/GameScene.cpp | TheLifes08/game-rpg | 592c0587f95a3f1c34e94b4e77c699c5cd6c4c25 | [
"MIT"
] | null | null | null | src/game/scenes/GameScene.cpp | TheLifes08/game-rpg | 592c0587f95a3f1c34e94b4e77c699c5cd6c4c25 | [
"MIT"
] | null | null | null | #include "GameScene.h"
#include "../../engine/audio/MusicManager.h"
#include "../../engine/graphics/TextureManager.h"
#include "../../engine/graphics/FontManager.h"
#include <iostream>
#include <fstream>
#include <cmath>
Game::Scenes::GameScene::GameScene(Engine::Gui::WindowManager& manager)
: Scene(manager), m_player... | 39.090909 | 119 | 0.618741 | [
"object",
"solid"
] |
ae678b6468884058c6a9cfb66cf8eb031c679722 | 2,117 | cpp | C++ | project/demo/demo.cpp | nanaHa1003/NLA_SCML_2018 | b44d026fd7e5bc26b296f0961899a7bc7a4cecaf | [
"MIT"
] | null | null | null | project/demo/demo.cpp | nanaHa1003/NLA_SCML_2018 | b44d026fd7e5bc26b296f0961899a7bc7a4cecaf | [
"MIT"
] | null | null | null | project/demo/demo.cpp | nanaHa1003/NLA_SCML_2018 | b44d026fd7e5bc26b296f0961899a7bc7a4cecaf | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <symrcm.hpp>
symrcm::matrix::Coo<double, int> read_mm_spd(const char *filename) {
std::ifstream mmfile(filename);
std::vector<char> buffer(4096); // max line size of mm format
do {
mmfile.getline(buffer.data(), 40... | 27.855263 | 77 | 0.557865 | [
"vector"
] |
ae6ef3054023444e8fdc0fb8b34d5ca0fd5322e2 | 9,126 | cpp | C++ | source/testMCDS.cpp | MIDA-group/itkAlphaAMD | 60bd21338b2213371e6e48fa4ab2a8fbbc61d85e | [
"MIT"
] | 1 | 2018-10-26T15:07:00.000Z | 2018-10-26T15:07:00.000Z | source/testMCDS.cpp | MIDA-group/itkAlphaAMD | 60bd21338b2213371e6e48fa4ab2a8fbbc61d85e | [
"MIT"
] | 1 | 2019-12-21T08:14:45.000Z | 2020-02-21T17:28:46.000Z | source/testMCDS.cpp | MIDA-group/itkAlphaAMD | 60bd21338b2213371e6e48fa4ab2a8fbbc61d85e | [
"MIT"
] | null | null | null |
#include "itkTimeProbesCollectorBase.h"
#include "itkMemoryProbesCollectorBase.h"
#include "common/itkImageProcessingTools.h"
//#include "metric/mcds.h"
//#include "metric/mcds2.h"
//#include "metric/mcds3.h"
//#include "metric/mcds4.h"
//#include "metric/mcds5.h"
//#include "metric/mcds6.h"
//#include "metric/mcds7.h... | 28.788644 | 147 | 0.587881 | [
"vector"
] |
ae70235a24157e53e7c10d7e8612df2c237ab46a | 511 | cpp | C++ | src/code/CallClassConstructor.cpp | shiruizhao/swift | 2026acce35f0717c7a3e9dc522ff1c69f8dc3227 | [
"BSD-4-Clause-UC",
"BSD-4-Clause"
] | 22 | 2016-07-11T15:34:14.000Z | 2021-04-19T04:11:13.000Z | src/code/CallClassConstructor.cpp | shiruizhao/swift | 2026acce35f0717c7a3e9dc522ff1c69f8dc3227 | [
"BSD-4-Clause-UC",
"BSD-4-Clause"
] | 14 | 2016-07-11T14:28:42.000Z | 2017-01-27T02:59:24.000Z | src/code/CallClassConstructor.cpp | shiruizhao/swift | 2026acce35f0717c7a3e9dc522ff1c69f8dc3227 | [
"BSD-4-Clause-UC",
"BSD-4-Clause"
] | 7 | 2016-10-03T10:05:06.000Z | 2021-05-31T00:58:35.000Z | /*
* CallClassConstructor.cpp
*
* Created on: Jan 22, 2014
* Author: leili
*/
#include "CallClassConstructor.h"
namespace swift {
namespace code {
CallClassConstructor::CallClassConstructor(Type type, std::vector<Expr*> args) :
Expr(args), type(type) {
}
CallClassConstructor::~CallClassConstructor() ... | 17.033333 | 80 | 0.692759 | [
"vector"
] |
ae7911128b5312a7fe0d11cc9dba95b0c7b9471e | 2,761 | hpp | C++ | Sources/Uis/Inputs/UiInputGrabber.hpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | Sources/Uis/Inputs/UiInputGrabber.hpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | Sources/Uis/Inputs/UiInputGrabber.hpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | #pragma once
#include "Devices/Joysticks.hpp"
#include "Devices/Keyboard.hpp"
#include "Devices/Mouse.hpp"
#include "Fonts/Text.hpp"
#include "Guis/Gui.hpp"
#include "Uis/UiObject.hpp"
#include "UiInputButton.hpp"
namespace acid {
class ACID_EXPORT UiInputGrabber : public UiObject {
public:
UiInputGrabber(UiObject *... | 24.433628 | 93 | 0.737776 | [
"transform"
] |
ae8a64da456829cfb0bf25340d714cec2b727033 | 18,201 | cpp | C++ | ZunTzuLib/ZunTzuLib/dxt_float.cpp | ZunTzu-Software/ZunTzu | cb5d52ecd0ab4b95b5fee39e7f1ca03fd781f287 | [
"MIT"
] | 3 | 2021-02-05T09:48:48.000Z | 2022-02-17T07:52:35.000Z | ZunTzuLib/ZunTzuLib/dxt_float.cpp | ZunTzu-Software/ZunTzu | cb5d52ecd0ab4b95b5fee39e7f1ca03fd781f287 | [
"MIT"
] | null | null | null | ZunTzuLib/ZunTzuLib/dxt_float.cpp | ZunTzu-Software/ZunTzu | cb5d52ecd0ab4b95b5fee39e7f1ca03fd781f287 | [
"MIT"
] | 2 | 2021-04-10T04:02:14.000Z | 2021-09-15T12:07:57.000Z | /* -----------------------------------------------------------------------------
Copyright (c) 2020 ZunTzu Software and contributors
----------------------------------------------------------------------------- */
#include "stdafx.h"
#include "ZunTzuLib.h"
#define ROUND(x) ((unsigned int)((x)+0.5f))
#define ROUND_... | 32.386121 | 166 | 0.617274 | [
"model"
] |
ae8f5c6b45d764080d3080bcbe140b815ddf2b89 | 30,062 | cpp | C++ | Gems/LmbrCentral/Code/Source/Shape/PolygonPrismShape.cpp | LB-KatarzynaDylska/o3de | d8d273697ea8e1beeb698f62b84904a192b0ab76 | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/LmbrCentral/Code/Source/Shape/PolygonPrismShape.cpp | LB-KatarzynaDylska/o3de | d8d273697ea8e1beeb698f62b84904a192b0ab76 | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/LmbrCentral/Code/Source/Shape/PolygonPrismShape.cpp | LB-KatarzynaDylska/o3de | d8d273697ea8e1beeb698f62b84904a192b0ab76 | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* 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 "PolygonPrismShape.h"
#include <AzCore/Math/Aabb.h>
#include <AzCore/Math/IntersectSegme... | 44.735119 | 187 | 0.645366 | [
"mesh",
"render",
"shape",
"vector",
"transform",
"3d",
"solid"
] |
ae993b539c24c71bedcf3d01796097fc8be0738c | 2,196 | cpp | C++ | test/UtilityFixture.cpp | CristianoNarducci/Eyeglass | 543928679fb49c114d14a05ae1220efdefd928e3 | [
"Beerware"
] | 1 | 2020-10-19T19:21:22.000Z | 2020-10-19T19:21:22.000Z | test/UtilityFixture.cpp | CristianoNarducci/Eyeglass | 543928679fb49c114d14a05ae1220efdefd928e3 | [
"Beerware"
] | 21 | 2020-07-17T09:53:00.000Z | 2020-09-22T17:53:01.000Z | test/UtilityFixture.cpp | CristianoNarducci/Eyeglass | 543928679fb49c114d14a05ae1220efdefd928e3 | [
"Beerware"
] | null | null | null | //
#include "gtest/gtest.h"
#include "../src/utils/ImageUtils.h"
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
class ImageUtilsSuite : public ::testing::Test{
/* In the SetUp() function two stock images are loaded as example
* There is a ImageUtils object for function calling in the fixture's t... | 49.909091 | 129 | 0.765483 | [
"object"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.