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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a9a48281c3eb8e78cda7687f4c1b0c13f8d25d3c | 7,077 | cpp | C++ | src/replay_system.cpp | Bigbird37/walsureta | 79e90edf5ca747898894ce16fb1c36e53396ec82 | [
"MIT"
] | 34 | 2021-01-16T18:08:43.000Z | 2022-03-31T12:16:11.000Z | src/replay_system.cpp | Bigbird37/walsureta | 79e90edf5ca747898894ce16fb1c36e53396ec82 | [
"MIT"
] | 22 | 2021-04-18T05:12:58.000Z | 2022-03-23T02:30:46.000Z | src/replay_system.cpp | Bigbird37/walsureta | 79e90edf5ca747898894ce16fb1c36e53396ec82 | [
"MIT"
] | 16 | 2021-01-16T02:13:18.000Z | 2022-03-21T14:03:20.000Z | #include "replay_system.hpp"
#include "hooks.hpp"
void ReplaySystem::record_action(bool hold, bool player1, bool flip) {
if (is_recording()) {
auto gm = gd::GameManager::sharedState();
auto play_layer = gm->getPlayLayer();
auto is_two_player = play_layer->m_levelSettings->m_twoPlayerMode;
... | 38.884615 | 128 | 0.600537 | [
"object"
] |
a9aafb4a7f479815ed714730805ecdfe0f7730dd | 8,833 | hpp | C++ | src/core/shape_inference/include/lstm_cell_shape_inference.hpp | pfinashx/openvino | 1d417e888b508415510fb0a92e4a9264cf8bdef7 | [
"Apache-2.0"
] | null | null | null | src/core/shape_inference/include/lstm_cell_shape_inference.hpp | pfinashx/openvino | 1d417e888b508415510fb0a92e4a9264cf8bdef7 | [
"Apache-2.0"
] | 18 | 2022-01-21T08:42:58.000Z | 2022-03-28T13:21:31.000Z | src/core/shape_inference/include/lstm_cell_shape_inference.hpp | pfinashx/openvino | 1d417e888b508415510fb0a92e4a9264cf8bdef7 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <openvino/op/lstm_cell.hpp>
#include "utils.hpp"
namespace ov {
namespace op {
namespace ShapeInferLSTM {
template <class OpsType, class ShapeType>
void lstm_shape_infer(const OpsType* op,
... | 45.297436 | 120 | 0.46564 | [
"vector"
] |
a9ac99ded95cad9d8ffa428436cac34aeb4efc07 | 9,321 | cpp | C++ | wallet/qt/coldstakingpage.cpp | abdullahnazar/neblio | d47fa3d3645dfc0bfb5da54b1688fd423bcedda9 | [
"MIT"
] | 1 | 2021-02-23T22:38:06.000Z | 2021-02-23T22:38:06.000Z | wallet/qt/coldstakingpage.cpp | abdullahnazar/neblio | d47fa3d3645dfc0bfb5da54b1688fd423bcedda9 | [
"MIT"
] | null | null | null | wallet/qt/coldstakingpage.cpp | abdullahnazar/neblio | d47fa3d3645dfc0bfb5da54b1688fd423bcedda9 | [
"MIT"
] | null | null | null | #include "coldstakingpage.h"
#include "bitcoinunits.h"
#include "checkpoints.h"
#include "coldstakinglistfilterproxy.h"
#include "coldstakinglistitemdelegate.h"
#include "coldstakingmodel.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "main.h"
#include "newstakedelegationdialog.h"
#include "optionsmodel.h... | 37.584677 | 105 | 0.687158 | [
"model"
] |
a9aed8b7653fec5b16858262f3ecd5cbc2758b02 | 94,901 | cpp | C++ | Mysql/storage/ndb/test/ndbapi/testMgm.cpp | clockzhong/WrapLAMP | fa7ad07da3f1759e74966a554befa47bbbbb8dd5 | [
"Apache-2.0"
] | 1 | 2015-12-24T16:44:50.000Z | 2015-12-24T16:44:50.000Z | Mysql/storage/ndb/test/ndbapi/testMgm.cpp | clockzhong/WrapLAMP | fa7ad07da3f1759e74966a554befa47bbbbb8dd5 | [
"Apache-2.0"
] | 1 | 2015-12-24T18:23:56.000Z | 2015-12-24T18:24:26.000Z | Mysql/storage/ndb/test/ndbapi/testMgm.cpp | clockzhong/WrapLAMP | fa7ad07da3f1759e74966a554befa47bbbbb8dd5 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | 24.817207 | 104 | 0.625094 | [
"vector"
] |
a9b108bb9116aca7f49b44e28b2b08c8ee5412b0 | 7,388 | cpp | C++ | build/moc_coincontroldialog.cpp | zebbra2014/superpay | eb77638bacd8d64a593e0715a15d98b612c6caff | [
"MIT"
] | null | null | null | build/moc_coincontroldialog.cpp | zebbra2014/superpay | eb77638bacd8d64a593e0715a15d98b612c6caff | [
"MIT"
] | null | null | null | build/moc_coincontroldialog.cpp | zebbra2014/superpay | eb77638bacd8d64a593e0715a15d98b612c6caff | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'coincontroldialog.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.1)
**
** WARNING! All changes made in this file will be lost!
*********************************************... | 34.523364 | 131 | 0.592583 | [
"object"
] |
a9b2a1e0cadb8aa2832ef595f56e29d6e462e775 | 35,961 | cc | C++ | core/src/Utilities.cc | matthieuvigne/jiminy | f893b2254a9e695a4154b941b599536756ea3d8b | [
"MIT"
] | null | null | null | core/src/Utilities.cc | matthieuvigne/jiminy | f893b2254a9e695a4154b941b599536756ea3d8b | [
"MIT"
] | null | null | null | core/src/Utilities.cc | matthieuvigne/jiminy | f893b2254a9e695a4154b941b599536756ea3d8b | [
"MIT"
] | null | null | null | #include <math.h>
#include <climits>
#include <stdlib.h> /* srand, rand */
#ifndef _WIN32
#include <pwd.h>
#include <unistd.h>
#include <getopt.h>
#else
#include <stdlib.h>
#include <stdio.h>
#endif
#include <Eigen/Dense>
#include <Eigen/Geometry>
#include "pinocchio/algorithm/joint-configuration.hpp"
#include ... | 36.694898 | 134 | 0.496594 | [
"geometry",
"vector",
"model",
"transform"
] |
a9b530ce2ebdeb66d6b9214848a825221eff7f60 | 1,294 | cxx | C++ | json/Object.cxx | JeneLitsch/StreamJson | a2ae14302905c131569c10e9fa81f470304a23a9 | [
"MIT"
] | null | null | null | json/Object.cxx | JeneLitsch/StreamJson | a2ae14302905c131569c10e9fa81f470304a23a9 | [
"MIT"
] | null | null | null | json/Object.cxx | JeneLitsch/StreamJson | a2ae14302905c131569c10e9fa81f470304a23a9 | [
"MIT"
] | null | null | null | #include "Object.hxx"
#include "Value.hxx"
#include "Array.hxx"
void json::Object::readFromStream(std::istream & in) {
this->dict.clear();
if(!match(in, '{')) {
throw std::runtime_error("Object mmust begin with {");
}
if(match(in, '}')) {
return;
}
else while (true) {
std::string key = readString(in);
if... | 20.870968 | 72 | 0.608964 | [
"object"
] |
a9b64eb7a36e4ebdb1021ab3215654eab3dfc696 | 1,789 | hpp | C++ | test/uts/vranks_hybrid.hpp | snake0/upcxx-2020.10.0 | dcd313a65587efcdefdb4fdfb197389a0e390ccd | [
"BSD-3-Clause-LBNL"
] | null | null | null | test/uts/vranks_hybrid.hpp | snake0/upcxx-2020.10.0 | dcd313a65587efcdefdb4fdfb197389a0e390ccd | [
"BSD-3-Clause-LBNL"
] | null | null | null | test/uts/vranks_hybrid.hpp | snake0/upcxx-2020.10.0 | dcd313a65587efcdefdb4fdfb197389a0e390ccd | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-06-10T11:14:25.000Z | 2021-06-10T11:14:25.000Z | #ifndef _f387e40c_d7ab_4dbf_a130_3bcd835cc3b9
#define _f387e40c_d7ab_4dbf_a130_3bcd835cc3b9
#include <upcxx/upcxx.hpp>
#include <atomic>
#include <thread>
#include <vector>
#include <sched.h>
#if !UPCXX_THREADMODE
#error This test may only be compiled in PAR threadmode
#endif
#define VRANKS_IMPL "ranks+threads"
... | 22.935897 | 68 | 0.634433 | [
"vector"
] |
a9b9752d526ea5dff04a30f21a14b5c6865619f0 | 5,321 | cc | C++ | src/connectivity/network/testing/netemul/runner/model/environment.cc | yanyushr/fuchsia | 98e70672a81a206d235503e398f37b7b65581f79 | [
"BSD-3-Clause"
] | 1 | 2019-10-09T10:50:57.000Z | 2019-10-09T10:50:57.000Z | src/connectivity/network/testing/netemul/runner/model/environment.cc | bootingman/fuchsia2 | 04012f0aa1edd1d4108a2ac647a65e59730fc4c2 | [
"BSD-3-Clause"
] | null | null | null | src/connectivity/network/testing/netemul/runner/model/environment.cc | bootingman/fuchsia2 | 04012f0aa1edd1d4108a2ac647a65e59730fc4c2 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "environment.h"
#include <src/lib/fxl/strings/string_printf.h>
namespace netemul {
namespace config {
static const char* kDefaultName = "";
sta... | 31.3 | 78 | 0.605149 | [
"object",
"vector"
] |
a9bcc994631558d723e233dfed52bdb3becd3550 | 4,487 | hpp | C++ | openstudiocore/src/resultsviewer/TreeView.hpp | pepsi7959/OpenstudioThai | fb18afb8b983f71dd5eb171e753dac7d9a4b811b | [
"blessing"
] | 1 | 2015-06-28T09:06:24.000Z | 2015-06-28T09:06:24.000Z | openstudiocore/src/resultsviewer/TreeView.hpp | pepsi7959/OpenstudioThai | fb18afb8b983f71dd5eb171e753dac7d9a4b811b | [
"blessing"
] | 11 | 2015-05-05T16:16:33.000Z | 2017-08-10T08:15:50.000Z | openstudiocore/src/resultsviewer/TreeView.hpp | pepsi7959/OpenstudioThai | fb18afb8b983f71dd5eb171e753dac7d9a4b811b | [
"blessing"
] | 1 | 2017-09-23T12:51:13.000Z | 2017-09-23T12:51:13.000Z | /**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the... | 40.790909 | 134 | 0.772677 | [
"vector"
] |
a9bdba3bb5ad8cc379b95929210301f7cce1cff4 | 20,472 | cpp | C++ | dlib-19.9/tools/python/src/object_detection.cpp | shumon84/FaceRotate | 5d1c8434dc0aaeee2e116a66e4fa2108f759b9cd | [
"MIT"
] | null | null | null | dlib-19.9/tools/python/src/object_detection.cpp | shumon84/FaceRotate | 5d1c8434dc0aaeee2e116a66e4fa2108f759b9cd | [
"MIT"
] | 4 | 2018-02-27T15:44:25.000Z | 2018-02-28T01:26:03.000Z | dlib-19.9/tools/python/src/object_detection.cpp | shumon84/FaceRotate | 5d1c8434dc0aaeee2e116a66e4fa2108f759b9cd | [
"MIT"
] | null | null | null | // Copyright (C) 2015 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#include <dlib/python.h>
#include <dlib/matrix.h>
#include <dlib/geometry.h>
#include <dlib/image_processing/frontal_face_detector.h>
#include "simple_object_detector.h"
#include "sim... | 54.446809 | 224 | 0.663443 | [
"geometry",
"object",
"vector"
] |
a9c0c2b155517d24339c7bff72266f72b7d416f9 | 70,322 | cpp | C++ | src/modules/osgDB/generated_code/ReaderWriter.pypp.cpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 17 | 2015-06-01T12:19:46.000Z | 2022-02-12T02:37:48.000Z | src/modules/osgDB/generated_code/ReaderWriter.pypp.cpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 7 | 2015-07-04T14:36:49.000Z | 2015-07-23T18:09:49.000Z | src/modules/osgDB/generated_code/ReaderWriter.pypp.cpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 7 | 2015-11-28T17:00:31.000Z | 2020-01-08T07:00:59.000Z | // This file has been generated by Py++.
#include "boost/python.hpp"
#include "__call_policies.pypp.hpp"
#include "__convenience.pypp.hpp"
#include "wrap_osgdb.h"
#include "wrap_referenced.h"
#include "readerwriter.pypp.hpp"
namespace bp = boost::python;
struct ReaderWriter_wrapper : osgDB::ReaderWriter, bp::wrapper... | 50.847433 | 254 | 0.587384 | [
"object"
] |
a9c1da563d4ebd6816640f2d3bfe6a2fd5b3b56b | 6,902 | cpp | C++ | src/common/Misc/Camera.cpp | whatevermarch/Cauldron | b3a4f62bf79034240b979d575e67ee51790ab435 | [
"MIT"
] | 1 | 2021-10-13T06:15:46.000Z | 2021-10-13T06:15:46.000Z | src/common/Misc/Camera.cpp | whatevermarch/Cauldron | b3a4f62bf79034240b979d575e67ee51790ab435 | [
"MIT"
] | null | null | null | src/common/Misc/Camera.cpp | whatevermarch/Cauldron | b3a4f62bf79034240b979d575e67ee51790ab435 | [
"MIT"
] | null | null | null | // AMD Cauldron code
//
// Copyright(c) 2020 Advanced Micro Devices, Inc.All rights reserved.
// 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 limitat... | 31.953704 | 110 | 0.56998 | [
"vector"
] |
a9c1e7b251639a2907c75e72dd400c616a057c5a | 1,912 | hh | C++ | cc/reference-panel-plot.hh | acorg/acmacs-draw | b570149453724929d3468d6814475014291d2c97 | [
"MIT"
] | null | null | null | cc/reference-panel-plot.hh | acorg/acmacs-draw | b570149453724929d3468d6814475014291d2c97 | [
"MIT"
] | null | null | null | cc/reference-panel-plot.hh | acorg/acmacs-draw | b570149453724929d3468d6814475014291d2c97 | [
"MIT"
] | null | null | null | #include "acmacs-base/color.hh"
#include "acmacs-base/size-scale.hh"
#include "acmacs-chart-2/reference-panel-plot-data.hh"
// ----------------------------------------------------------------------
namespace acmacs
{
class PointCoordinates;
namespace surface
{
class Surface;
}
} // namespace... | 32.40678 | 182 | 0.596757 | [
"vector"
] |
a9c3141ba9911f12d53ba721ea9b0eacbf0274a0 | 16,279 | cpp | C++ | l2a/src/l2a_plugin.cpp | latex2ai/LaTeX2AI | b5c0db97017536b86b162bce2067a6fd8ba203df | [
"MIT"
] | 13 | 2021-12-09T13:38:38.000Z | 2022-03-23T14:57:10.000Z | l2a/src/l2a_plugin.cpp | latex2ai/LaTeX2AI | b5c0db97017536b86b162bce2067a6fd8ba203df | [
"MIT"
] | 5 | 2021-11-11T10:11:42.000Z | 2022-03-31T09:49:29.000Z | l2a/src/l2a_plugin.cpp | latex2ai/LaTeX2AI | b5c0db97017536b86b162bce2067a6fd8ba203df | [
"MIT"
] | null | null | null | // -----------------------------------------------------------------------------
// MIT License
//
// Copyright (c) 2020 Ivo Steinbrecher
//
// 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... | 30.090573 | 120 | 0.608207 | [
"object",
"vector"
] |
a9c3838bd9a68582da97612a41442be17a9356a0 | 4,498 | cpp | C++ | src/uscxml/plugins/datamodel/ecmascript/v8/dom/V8DOMImplementation.cpp | sradomski/uscxml | b8ba0e7c31f397a66f9d509ff20a85b33619475a | [
"W3C",
"BSD-2-Clause"
] | null | null | null | src/uscxml/plugins/datamodel/ecmascript/v8/dom/V8DOMImplementation.cpp | sradomski/uscxml | b8ba0e7c31f397a66f9d509ff20a85b33619475a | [
"W3C",
"BSD-2-Clause"
] | null | null | null | src/uscxml/plugins/datamodel/ecmascript/v8/dom/V8DOMImplementation.cpp | sradomski/uscxml | b8ba0e7c31f397a66f9d509ff20a85b33619475a | [
"W3C",
"BSD-2-Clause"
] | null | null | null | /**
* @file
* @author This file has been generated by generate-bindings.pl. DO NOT MODIFY!
* @copyright Simplified BSD
*
* @cond
* This program is free software: you can redistribute it and/or modify
* it under the terms of the FreeBSD license as published by the FreeBSD
* project.
*
* This progr... | 39.113043 | 190 | 0.721432 | [
"object"
] |
a9c5aecc62ac94dd3755af8b48ddc5b1a32580ea | 1,979 | cpp | C++ | cpp-leetcode/leetcode103-zigzag-traverse_deque.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | 45 | 2021-07-25T00:45:43.000Z | 2022-03-24T05:10:43.000Z | cpp-leetcode/leetcode103-zigzag-traverse_deque.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | null | null | null | cpp-leetcode/leetcode103-zigzag-traverse_deque.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | 15 | 2021-07-25T00:40:52.000Z | 2021-12-27T06:25:31.000Z | #include <iostream>
#include <vector>
#include <deque>
#include <algorithm>
using namespace std;
/**
* Definition for a binary tree node.
*/
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode() : val(0), left(nullptr), right(nullptr) {}
TreeNode(int x) : val(x), left(nullptr), r... | 27.486111 | 90 | 0.498737 | [
"vector"
] |
a9cbc4c04bb07a6977df72c8b3fe751e021269b0 | 2,693 | hpp | C++ | src/ui/toast.hpp | mrichards42/remarkable_puzzles | 5d2fe96e7f17229e3039cb5d72d1947af6cc7a34 | [
"MIT"
] | 8 | 2021-01-14T16:07:05.000Z | 2021-12-07T11:35:31.000Z | src/ui/toast.hpp | mrichards42/remarkable_puzzles | 5d2fe96e7f17229e3039cb5d72d1947af6cc7a34 | [
"MIT"
] | 15 | 2021-01-14T21:00:03.000Z | 2022-01-04T04:09:12.000Z | src/ui/toast.hpp | mrichards42/remarkable_puzzles | 5d2fe96e7f17229e3039cb5d72d1947af6cc7a34 | [
"MIT"
] | 2 | 2021-01-14T20:56:15.000Z | 2021-03-04T19:59:13.000Z | #ifndef RMP_TOAST_HPP
#define RMP_TOAST_HPP
#include <string>
#include <vector>
#include <rmkit.h>
#include "ui/util.hpp"
class Toast : public ui::Widget {
public:
std::string text;
remarkable_color color;
ui::TimerPtr timer;
int last_x = -1, last_y, last_w, last_h;
Toast(int x, int y, int w, i... | 29.271739 | 95 | 0.539918 | [
"render",
"vector"
] |
a9cbc565aa454befbea5bea1e57640a82fa94cab | 3,649 | cc | C++ | test/unit/core/algorithm_test.cc | BJackal/biodynamo_singularity | f2224b434b65e1d3f7e4cf154fbedad7e3cda40b | [
"Apache-2.0"
] | 57 | 2016-02-12T13:30:13.000Z | 2022-03-11T16:24:07.000Z | test/unit/core/algorithm_test.cc | BJackal/biodynamo_singularity | f2224b434b65e1d3f7e4cf154fbedad7e3cda40b | [
"Apache-2.0"
] | 66 | 2016-06-23T08:47:52.000Z | 2022-03-28T16:44:38.000Z | test/unit/core/algorithm_test.cc | BJackal/biodynamo_singularity | f2224b434b65e1d3f7e4cf154fbedad7e3cda40b | [
"Apache-2.0"
] | 53 | 2016-06-06T13:11:26.000Z | 2022-03-11T15:13:22.000Z | // -----------------------------------------------------------------------------
//
//
// Copyright (C) 2021 CERN & University of Surrey for the benefit of the
// BioDynaMo collaboration. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in co... | 32.873874 | 80 | 0.475473 | [
"vector"
] |
a9cc175d60bd38b3db482e25dbfe49855f75eff1 | 1,179 | hpp | C++ | libs/sprite/include/sge/sprite/compare/textures.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/sprite/include/sge/sprite/compare/textures.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/sprite/include/sge/sprite/compare/textures.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_SPRITE_COMPARE_TEXTURES_HPP_INCLUDED
#define SGE_SPRITE_COMPARE_TEXTURES_HPP_INCLUDED
... | 29.475 | 98 | 0.742154 | [
"object"
] |
a9cc48ddf6271facc1067e7b6250006d717826a6 | 541 | hpp | C++ | Board.hpp | ronsider/messageboard-b | 352ad0b488b6f94fe5328ceb314ecb3fe5310ea4 | [
"MIT"
] | null | null | null | Board.hpp | ronsider/messageboard-b | 352ad0b488b6f94fe5328ceb314ecb3fe5310ea4 | [
"MIT"
] | null | null | null | Board.hpp | ronsider/messageboard-b | 352ad0b488b6f94fe5328ceb314ecb3fe5310ea4 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include<vector>
#include "Direction.hpp"
namespace ariel
{
class Board
{
private:
std::vector<std::vector<char>> vec;
public:
Board()
{
std::vector<std::vector<char>>temp(9999,std::vector<char>(9999,'_'));//A 9999X9999 board
vec=temp;
... | 20.807692 | 96 | 0.604436 | [
"vector"
] |
a9cf0cb152551cf18ec979234c08b19613166d1d | 1,704 | cpp | C++ | Day_01/01_Sort_Colors.cpp | premnaaath/SDE-180 | 6d7cc2404d310600a81adaa652049172f2e10ed8 | [
"MIT"
] | null | null | null | Day_01/01_Sort_Colors.cpp | premnaaath/SDE-180 | 6d7cc2404d310600a81adaa652049172f2e10ed8 | [
"MIT"
] | null | null | null | Day_01/01_Sort_Colors.cpp | premnaaath/SDE-180 | 6d7cc2404d310600a81adaa652049172f2e10ed8 | [
"MIT"
] | null | null | null | // Problem Link:
// https://leetcode.com/problems/sort-colors/
// Approach 1: (Count Sort)
// TC: O(2*n)
// SC: O(1)
// Approach 2: (Dutch Flag Algorithm)
// TC: O(n)
// SC: O(1)
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define deb(x) cout << #x << ": " << x << "\n"
void sortColors1(vecto... | 17.04 | 58 | 0.450704 | [
"vector"
] |
a9d2a71039b16b4b0e4926ab4cf3810a93a4895b | 10,098 | cpp | C++ | src/graphics/vulkan/swapchain_init.cpp | InspectorSolaris/nd-engine | a8d63fe4bc0e57a96317adf015534d2e779ffcbb | [
"WTFPL"
] | null | null | null | src/graphics/vulkan/swapchain_init.cpp | InspectorSolaris/nd-engine | a8d63fe4bc0e57a96317adf015534d2e779ffcbb | [
"WTFPL"
] | null | null | null | src/graphics/vulkan/swapchain_init.cpp | InspectorSolaris/nd-engine | a8d63fe4bc0e57a96317adf015534d2e779ffcbb | [
"WTFPL"
] | null | null | null | #include "swapchain_init.hpp"
#include "tools_runtime.hpp"
namespace nd::src::graphics::vulkan
{
using namespace nd::src::tools;
u32
getNextImageIndex(const VkDevice device,
const VkSwapchainKHR swapchain,
const VkSemaphore semaphore,
... | 39.291829 | 146 | 0.623292 | [
"transform"
] |
a9d2e573f339d29f1a121d3a4508c4256805486e | 7,078 | cpp | C++ | modules/gapi/test/gapi_desc_tests.cpp | ghennadii/opencv | c6a4bad3692e62ff6733fe98f51b557d75ce65a0 | [
"BSD-3-Clause"
] | 4 | 2019-03-04T05:47:18.000Z | 2019-06-24T08:14:43.000Z | modules/gapi/test/gapi_desc_tests.cpp | ghennadii/opencv | c6a4bad3692e62ff6733fe98f51b557d75ce65a0 | [
"BSD-3-Clause"
] | 2 | 2019-03-23T03:53:50.000Z | 2019-03-23T03:53:52.000Z | modules/gapi/test/gapi_desc_tests.cpp | ghennadii/opencv | c6a4bad3692e62ff6733fe98f51b557d75ce65a0 | [
"BSD-3-Clause"
] | 2 | 2019-07-21T08:20:06.000Z | 2020-08-09T06:07:37.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "opencv2/gapi/cpu/gcpukernel.hpp"
namespac... | 29.491667 | 90 | 0.64976 | [
"vector"
] |
a9d2f74258aa452cc83250c4addb05a846cab3d5 | 9,488 | cc | C++ | test/server/admin/stats_handler_speed_test.cc | sergiitk/envoy | fa99ae02afda16ecdfe993d57d57e733e6d63d06 | [
"Apache-2.0"
] | 1 | 2022-03-02T14:23:12.000Z | 2022-03-02T14:23:12.000Z | test/server/admin/stats_handler_speed_test.cc | sergiitk/envoy | fa99ae02afda16ecdfe993d57d57e733e6d63d06 | [
"Apache-2.0"
] | 153 | 2021-10-04T04:32:48.000Z | 2022-03-31T04:22:40.000Z | test/server/admin/stats_handler_speed_test.cc | sergiitk/envoy | fa99ae02afda16ecdfe993d57d57e733e6d63d06 | [
"Apache-2.0"
] | 1 | 2021-12-14T02:39:44.000Z | 2021-12-14T02:39:44.000Z | // Note: this should be run with --compilation_mode=opt, and would benefit from a
// quiescent system with disabled cstate power management.
#include "source/common/buffer/buffer_impl.h"
#include "source/common/http/header_map_impl.h"
#include "source/common/stats/custom_stat_namespaces_impl.h"
#include "source/common... | 36.918288 | 96 | 0.729869 | [
"vector"
] |
a9d4c7e79e531fd1a519751cc98118fcd3cbcd99 | 7,745 | cpp | C++ | code/properties.cpp | Okityou/LessMore | cccebfe12e6f2d03e31dc536407da8a82de63f4b | [
"BSD-3-Clause"
] | 232 | 2018-06-08T11:49:11.000Z | 2022-02-02T16:17:35.000Z | code/properties.cpp | tomldh/LessMore | a9107b2765e367b6779a1edd82142651d16f3398 | [
"BSD-3-Clause"
] | 27 | 2018-06-22T04:48:44.000Z | 2021-07-17T13:51:22.000Z | code/properties.cpp | tomldh/LessMore | a9107b2765e367b6779a1edd82142651d16f3398 | [
"BSD-3-Clause"
] | 43 | 2018-06-14T06:40:41.000Z | 2021-12-08T08:02:27.000Z | /*
Copyright (c) 2016, TU Dresden
Copyright (c) 2017, Heidelberg University
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
noti... | 26.892361 | 101 | 0.540736 | [
"object",
"vector",
"model"
] |
a9d6240ea1c5ad250666d5d34eccec37f5bdb243 | 15,708 | cc | C++ | content/renderer/media/video_capture_impl.cc | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-01-25T10:18:18.000Z | 2021-01-23T15:29:56.000Z | content/renderer/media/video_capture_impl.cc | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/renderer/media/video_capture_impl.cc | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:24:13.000Z | 2020-11-04T07:24:13.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Notes about usage of this object by VideoCaptureImplManager.
//
// VideoCaptureImplManager access this object by using a Unretained()
// binding ... | 35.298876 | 80 | 0.703018 | [
"object",
"vector"
] |
a9d689807e42769fdab6574646b40f55cc83ce7b | 18,385 | cpp | C++ | lib/eval/dispatch_three_avx2.cpp | mastermind88/CandyPoker | 37b502ce6ea8733ce0b70476fcf32930961923a8 | [
"MIT"
] | null | null | null | lib/eval/dispatch_three_avx2.cpp | mastermind88/CandyPoker | 37b502ce6ea8733ce0b70476fcf32930961923a8 | [
"MIT"
] | null | null | null | lib/eval/dispatch_three_avx2.cpp | mastermind88/CandyPoker | 37b502ce6ea8733ce0b70476fcf32930961923a8 | [
"MIT"
] | null | null | null | #include "ps/eval/dispatch_table.h"
#include "ps/eval/generic_shed.h"
#include "ps/eval/generic_sub_eval.h"
#include "ps/eval/optimized_transform.h"
#include <boost/predef.h>
#if BOOST_OS_LINUX
#define PS_ALWAYS_INLINE __attribute__((__always_inline__))
#else
#define PS_ALWAYS_INLINE
#endif
namespace ps{
... | 48.254593 | 173 | 0.332282 | [
"vector"
] |
a9d8ede1750cd42c5581fde7a7c0588af87ef7ee | 8,091 | cc | C++ | tensorflow/lite/delegates/gpu/gl/kernels/elementwise.cc | carchrae/tensorflow | 6a69a6b2e286b14ac9ae813998bb0d78b6fee440 | [
"Apache-2.0"
] | 12 | 2020-12-28T18:42:10.000Z | 2022-03-24T17:34:21.000Z | tensorflow/lite/delegates/gpu/gl/kernels/elementwise.cc | carchrae/tensorflow | 6a69a6b2e286b14ac9ae813998bb0d78b6fee440 | [
"Apache-2.0"
] | 2 | 2021-08-25T15:58:27.000Z | 2022-02-10T02:04:40.000Z | tensorflow/lite/delegates/gpu/gl/kernels/elementwise.cc | carchrae/tensorflow | 6a69a6b2e286b14ac9ae813998bb0d78b6fee440 | [
"Apache-2.0"
] | 3 | 2020-03-09T19:17:02.000Z | 2020-06-26T23:14:31.000Z | /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 31.239382 | 80 | 0.596342 | [
"shape"
] |
a9e2a6b3ec792506ccd794186e047a3c630074f8 | 3,430 | cpp | C++ | SPOJ/POLYSUB.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | 2 | 2018-12-11T14:37:24.000Z | 2022-01-23T18:11:54.000Z | SPOJ/POLYSUB.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | SPOJ/POLYSUB.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define mt make_tuple
#define mp make_pair
#define pu push_back
#define INF 1000000001
#define MOD 1000000007
#define EPS 1e-6
#define ll long long int
#define ld long double
#define fi first
#define se second
#define all(v) v.begin(),v.end()
#define pr(v) { for(int i=0;i<v.size();i++) { v[i]==I... | 32.358491 | 226 | 0.439359 | [
"vector"
] |
a9e2e0a428fcd70d095d9ab3f7a0c8ee4942513f | 29,797 | cc | C++ | media/mojo/services/watch_time_recorder_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | media/mojo/services/watch_time_recorder_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | media/mojo/services/watch_time_recorder_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/mojo/services/watch_time_recorder.h"
#include <stddef.h>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/hash.h"
#i... | 42.325284 | 80 | 0.730107 | [
"vector"
] |
a9eb1359fe3574a78fc01ec9a694b4c613ad51b8 | 9,297 | hpp | C++ | third_party/osmium/area/problem_reporter_ogr.hpp | cypox/devacus-backend | ba3d2ca8d72843560c4ff754780482dfe8a67c6b | [
"BSD-2-Clause"
] | 1 | 2015-03-16T12:49:12.000Z | 2015-03-16T12:49:12.000Z | third_party/osmium/area/problem_reporter_ogr.hpp | antoinegiret/osrm-backend | ebe34da5428c2bfdb2b227392248011c757822e5 | [
"BSD-2-Clause"
] | 1 | 2015-02-25T18:27:19.000Z | 2015-02-25T18:27:19.000Z | third_party/osmium/area/problem_reporter_ogr.hpp | antoinegiret/osrm-backend | ebe34da5428c2bfdb2b227392248011c757822e5 | [
"BSD-2-Clause"
] | null | null | null | #ifndef OSMIUM_AREA_PROBLEM_REPORTER_OGR_HPP
#define OSMIUM_AREA_PROBLEM_REPORTER_OGR_HPP
/*
This file is part of Osmium (http://osmcode.org/libosmium).
Copyright 2014 Jochen Topf <jochen@topf.org> and others (see README).
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free ... | 44.913043 | 174 | 0.659568 | [
"object"
] |
a9ec18e017ac7eb9b4c40466b1e995b15d7af654 | 2,638 | hpp | C++ | watch.hpp | dhruvibm/phosphor-debug-collector | 124d31f09cbb0eebd0f14aceade5c2fd290520fe | [
"Apache-2.0"
] | 4 | 2017-12-01T19:36:26.000Z | 2021-03-30T16:44:11.000Z | watch.hpp | dhruvibm/phosphor-debug-collector | 124d31f09cbb0eebd0f14aceade5c2fd290520fe | [
"Apache-2.0"
] | 17 | 2017-10-05T11:28:56.000Z | 2022-02-21T05:27:31.000Z | watch.hpp | dhruvibm/phosphor-debug-collector | 124d31f09cbb0eebd0f14aceade5c2fd290520fe | [
"Apache-2.0"
] | 25 | 2021-09-03T19:04:36.000Z | 2022-03-31T13:09:18.000Z | #pragma once
#include "dump_utils.hpp"
#include <sys/inotify.h>
#include <systemd/sd-event.h>
#include <filesystem>
#include <functional>
#include <map>
namespace phosphor
{
namespace dump
{
namespace inotify
{
// User specific call back function input map(path:event) type.
using UserMap = std::map<std::filesystem... | 26.38 | 78 | 0.640637 | [
"object"
] |
a9fe3c752cd0f53b4b71e43df0b26eee358c408b | 4,122 | cpp | C++ | src/engine/Game.cpp | holdenrehg/survivor | b95abec0ce874e51d8367767fcd01b0f9c3e9b7f | [
"MIT"
] | null | null | null | src/engine/Game.cpp | holdenrehg/survivor | b95abec0ce874e51d8367767fcd01b0f9c3e9b7f | [
"MIT"
] | null | null | null | src/engine/Game.cpp | holdenrehg/survivor | b95abec0ce874e51d8367767fcd01b0f9c3e9b7f | [
"MIT"
] | null | null | null | #include <chrono>
#include <iostream>
#include <type_traits>
#include "raylib.h"
#include "include/engine/time.h"
#include "include/engine/Clock.h"
#include "include/engine/Game.h"
#include "include/engine/Scene.h"
#ifdef _WIN32
#include <Windows.h>
#else
#include <unistd.h>
#endif
using namespace std;
using namespac... | 29.234043 | 129 | 0.544639 | [
"render"
] |
e700c50ead099c74f63a6c46911a4aa67a399c8b | 1,163 | cpp | C++ | leetcode/Algorithms/SearchForARange/solution.cpp | hxdone/puzzles | b729bce8a61f77ad7cbb70957e00c5ade9a0a35f | [
"Apache-2.0"
] | 2 | 2015-07-03T03:05:30.000Z | 2015-07-03T03:05:31.000Z | leetcode/Algorithms/SearchForARange/solution.cpp | hxdone/puzzles | b729bce8a61f77ad7cbb70957e00c5ade9a0a35f | [
"Apache-2.0"
] | null | null | null | leetcode/Algorithms/SearchForARange/solution.cpp | hxdone/puzzles | b729bce8a61f77ad7cbb70957e00c5ade9a0a35f | [
"Apache-2.0"
] | null | null | null | // double binary search solution by hxdone
class Solution {
public:
vector<int> searchRange(vector<int>& nums, int target) {
vector<int> ret;
ret.push_back(lower_bound(nums, target));
ret.push_back(upper_bound(nums, target));
return ret;
}
private:
int lower_bound(vecto... | 27.690476 | 61 | 0.463457 | [
"vector"
] |
e710fc5f5379c48edf676ce1df4559f3c25f8efc | 2,387 | hpp | C++ | include/Device.hpp | gaoyingie/libmediasoupclient | 806a0385f76e953c6e5e12e1a761e3c54c01dc9e | [
"ISC"
] | null | null | null | include/Device.hpp | gaoyingie/libmediasoupclient | 806a0385f76e953c6e5e12e1a761e3c54c01dc9e | [
"ISC"
] | null | null | null | include/Device.hpp | gaoyingie/libmediasoupclient | 806a0385f76e953c6e5e12e1a761e3c54c01dc9e | [
"ISC"
] | null | null | null | #ifndef MSC_DEVICE_HPP
#define MSC_DEVICE_HPP
#include "Exception.hpp"
#include "Handler.hpp"
#include "Transport.hpp"
#include "json.hpp"
#include <map>
#include <string>
namespace mediasoupclient
{
class Device
{
public:
Device() = default;
~Device() = default;
bool IsLoaded() const;
const nlohmann::json& Get... | 23.401961 | 90 | 0.702137 | [
"object"
] |
e7113fc22687e6de275876bcce894d4ac4165e24 | 10,902 | cc | C++ | src/theia/sfm/reconstruction_test.cc | LEON-MING/TheiaSfM_Leon | 8ac187b80100ad7f52fe9af49fa4a0db6db226b9 | [
"BSD-3-Clause"
] | 3 | 2019-01-17T17:37:37.000Z | 2021-03-26T09:21:38.000Z | src/theia/sfm/reconstruction_test.cc | LEON-MING/TheiaSfM_Leon | 8ac187b80100ad7f52fe9af49fa4a0db6db226b9 | [
"BSD-3-Clause"
] | null | null | null | src/theia/sfm/reconstruction_test.cc | LEON-MING/TheiaSfM_Leon | 8ac187b80100ad7f52fe9af49fa4a0db6db226b9 | [
"BSD-3-Clause"
] | 3 | 2019-07-16T08:45:55.000Z | 2020-02-11T05:32:16.000Z | // Copyright (C) 2014 The Regents of the University of California (Regents).
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above... | 40.377778 | 80 | 0.772519 | [
"vector"
] |
e716cf5878e342130af79b5149a05db10c97bd95 | 2,846 | cpp | C++ | tests/testAlloc.cpp | frobnitzem/FastParticleToolkit | d5bc77f891d8aae18d777b8855ff4a6b3dd79761 | [
"CC-BY-4.0"
] | null | null | null | tests/testAlloc.cpp | frobnitzem/FastParticleToolkit | d5bc77f891d8aae18d777b8855ff4a6b3dd79761 | [
"CC-BY-4.0"
] | null | null | null | tests/testAlloc.cpp | frobnitzem/FastParticleToolkit | d5bc77f891d8aae18d777b8855ff4a6b3dd79761 | [
"CC-BY-4.0"
] | null | null | null | #include <catch2/catch_all.hpp>
#include <fpt/Alloc.hpp>
#include "TestAlpaka.hpp"
TEST_CASE( "allocator indices", "[allocator]") {
uint32_t N = 540;
SECTION( "fpt::searchNext returns in-range" ) {
std::vector<uint32_t> trials{0,3,10,100,N-32,N-1};
for(uint32_t blockId : trials) {
... | 29.957895 | 94 | 0.549543 | [
"vector"
] |
e7172ab59a1f2abf0ecc0dc5676d4c0df802c399 | 31,678 | cpp | C++ | src/gui/ossimPlanetQtApplication.cpp | ossimlabs/ossim-planet-gui | d5e63187111090f51920f7929c05b368a7e4a28d | [
"MIT"
] | 2 | 2018-11-28T10:04:38.000Z | 2019-07-12T14:13:53.000Z | src/gui/ossimPlanetQtApplication.cpp | ossimlabs/ossim-planet-gui | d5e63187111090f51920f7929c05b368a7e4a28d | [
"MIT"
] | 2 | 2019-01-28T23:22:28.000Z | 2021-11-11T09:35:24.000Z | src/gui/ossimPlanetQtApplication.cpp | ossimlabs/ossim-planet-gui | d5e63187111090f51920f7929c05b368a7e4a28d | [
"MIT"
] | null | null | null | #include <ossimPlanetQt/ossimPlanetQtApplication.h>
#include <QtCore/QDir>
#include <ossim/base/ossimEnvironmentUtility.h>
#include <ossim/init/ossimInit.h>
#include <iostream>
#include <osgDB/Registry>
#include <osg/ArgumentParser>
#include <osg/Drawable>
#include <osg/Texture>
#include <osg/ApplicationUsage>
#includ... | 35.633296 | 164 | 0.641328 | [
"vector",
"model"
] |
e71a0bc5e850f60dcb53c8d1396c532dbbd7d35d | 684 | cpp | C++ | leetcode/hash_table/contains_duplicate_II.cpp | codingpotato/algorithm-cpp | 793dc9e141000f48ea19c77ef0047923a7667358 | [
"MIT"
] | null | null | null | leetcode/hash_table/contains_duplicate_II.cpp | codingpotato/algorithm-cpp | 793dc9e141000f48ea19c77ef0047923a7667358 | [
"MIT"
] | null | null | null | leetcode/hash_table/contains_duplicate_II.cpp | codingpotato/algorithm-cpp | 793dc9e141000f48ea19c77ef0047923a7667358 | [
"MIT"
] | null | null | null | #include <doctest/doctest.h>
#include <unordered_map>
#include <vector>
// 219. Contains Duplicate II
class Solution {
public:
bool containsNearbyDuplicate(const std::vector<int>& nums, int k) {
std::unordered_map<int, int> map;
for (int i = 0; i < static_cast<int>(nums.size()); ++i) {
if (map.find(n... | 25.333333 | 69 | 0.611111 | [
"vector"
] |
e71a10e269634d36c2ac635f8ae977473d256cd6 | 4,947 | cpp | C++ | src/base/ossimAdjustmentInfo.cpp | vladislav-horbatiuk/ossim | 82417ad868fac022672335e1684bdd91d662c18c | [
"MIT"
] | 251 | 2015-10-20T09:08:11.000Z | 2022-03-22T18:16:38.000Z | src/base/ossimAdjustmentInfo.cpp | IvanLJF/ossim | 2e0143f682b9884a09ff2598ef8737f29e44fbdf | [
"MIT"
] | 73 | 2015-11-02T17:12:36.000Z | 2021-11-15T17:41:47.000Z | src/base/ossimAdjustmentInfo.cpp | IvanLJF/ossim | 2e0143f682b9884a09ff2598ef8737f29e44fbdf | [
"MIT"
] | 146 | 2015-10-15T16:00:15.000Z | 2022-03-22T12:37:14.000Z | //*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// LICENSE: See top level LICENSE.txt file.
//
// Author: Garrett Potts
//
//*************************************************************************
// $Id: ossimAdjustmentInfo.cpp 15833 2009-10-29 01:41:53Z... | 26.88587 | 113 | 0.653527 | [
"vector"
] |
e71c0dbecfc03d217f425dd307496e33747a8c1a | 5,157 | cc | C++ | src/c4/C4_Req.cc | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/c4/C4_Req.cc | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/c4/C4_Req.cc | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
/*!
* \file c4/C4_Req.cc
* \author Thomas M. Evans, Geoffrey Furnish
* \date Thu Jun 2 09:54:02 2005
* \brief C4_Req member definitions.
* \note Copyright (C) 2016-2019 Triad National Security, LLC.
* All rights reserv... | 26.177665 | 80 | 0.421563 | [
"object"
] |
e71cd9cae7f6ef6cd3db69cb654aec5e92dc6bd3 | 2,782 | cpp | C++ | IfcPlusPlus/src/ifcpp/IFC4/IfcCurveInterpolationEnum.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | 1 | 2018-10-23T09:43:07.000Z | 2018-10-23T09:43:07.000Z | IfcPlusPlus/src/ifcpp/IFC4/IfcCurveInterpolationEnum.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | null | null | null | IfcPlusPlus/src/ifcpp/IFC4/IfcCurveInterpolationEnum.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | null | null | null | /* -*-c++-*- IfcPlusPlus - www.ifcplusplus.com - Copyright (C) 2011 Fabian Gerold
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* in... | 36.12987 | 113 | 0.719986 | [
"model"
] |
e71e8c44857d75421a4a02d1f1420d9b1a4ab8f0 | 1,561 | cpp | C++ | problemes/probleme0xx/probleme070.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | 6 | 2015-10-13T17:07:21.000Z | 2018-05-08T11:50:22.000Z | problemes/probleme0xx/probleme070.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | null | null | null | problemes/probleme0xx/probleme070.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | null | null | null | #include "problemes.h"
#include "chiffres.h"
#include "premiers.h"
#include "utilitaires.h"
typedef unsigned long long nombre;
typedef std::vector<nombre> vecteur;
typedef boost::rational<nombre> fraction;
ENREGISTRER_PROBLEME(70, "Totient permutation") {
// Euler's Totient function, φ(n) [sometimes called the ph... | 36.302326 | 101 | 0.598334 | [
"vector"
] |
e71ea21d172c8574c561809e697dd7345a67032b | 1,118 | hpp | C++ | src/mlpack/methods/gmm/no_constraint.hpp | florian-rosenthal/mlpack | 4287a89886e39703571165ef1d40693eb51d22c6 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4,216 | 2015-01-01T02:06:12.000Z | 2022-03-31T19:12:06.000Z | src/mlpack/methods/gmm/no_constraint.hpp | florian-rosenthal/mlpack | 4287a89886e39703571165ef1d40693eb51d22c6 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2,621 | 2015-01-01T01:41:47.000Z | 2022-03-31T19:01:26.000Z | src/mlpack/methods/gmm/no_constraint.hpp | florian-rosenthal/mlpack | 4287a89886e39703571165ef1d40693eb51d22c6 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1,972 | 2015-01-01T23:37:13.000Z | 2022-03-28T06:03:41.000Z | /**
* @file methods/gmm/no_constraint.hpp
* @author Ryan Curtin
*
* No constraint on the covariance matrix.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license along with mlpack. If n... | 27.95 | 80 | 0.72898 | [
"object"
] |
e720eb4c4cf0920cec3f3b5ed6fbe125d0a8abdf | 15,997 | cc | C++ | dcmsr/tests/tsrcmr.cc | nikkoara/dcmtk | ef914cfb892c6bac9097cad50b5c889acbe6b7e5 | [
"Apache-2.0"
] | 3 | 2017-04-14T15:09:38.000Z | 2020-05-08T10:09:22.000Z | dcmsr/tests/tsrcmr.cc | nikkoara/dcmtk | ef914cfb892c6bac9097cad50b5c889acbe6b7e5 | [
"Apache-2.0"
] | null | null | null | dcmsr/tests/tsrcmr.cc | nikkoara/dcmtk | ef914cfb892c6bac9097cad50b5c889acbe6b7e5 | [
"Apache-2.0"
] | 3 | 2017-04-14T15:09:41.000Z | 2022-01-27T23:23:35.000Z | /*
*
* Copyright (C) 2015, J. Riesmeier, Oldenburg, Germany
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation are maintained by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmsr
*
* Aut... | 50.94586 | 161 | 0.746327 | [
"model"
] |
e726a522b4e90629f3a438554266bd09c8e3adb9 | 6,078 | cc | C++ | HeavyFlavorAnalysis/RecoDecay/src/BPHDecayVertex.cc | gputtley/cmssw | c1ef8454804e4ebea8b65f59c4a952a6c94fde3b | [
"Apache-2.0"
] | 2 | 2020-01-27T15:21:37.000Z | 2020-05-11T11:13:18.000Z | HeavyFlavorAnalysis/RecoDecay/src/BPHDecayVertex.cc | gputtley/cmssw | c1ef8454804e4ebea8b65f59c4a952a6c94fde3b | [
"Apache-2.0"
] | 8 | 2020-03-20T23:18:36.000Z | 2020-05-27T11:00:06.000Z | HeavyFlavorAnalysis/RecoDecay/src/BPHDecayVertex.cc | gputtley/cmssw | c1ef8454804e4ebea8b65f59c4a952a6c94fde3b | [
"Apache-2.0"
] | 3 | 2017-06-07T15:22:28.000Z | 2019-02-28T20:48:30.000Z | /*
* See header file for a description of this class.
*
* \author Paolo Ronchese INFN Padova
*
*/
//-----------------------
// This Class' Header --
//-----------------------
#include "HeavyFlavorAnalysis/RecoDecay/interface/BPHDecayVertex.h"
//-------------------------------
// Collaborating Class Headers --
... | 29.940887 | 115 | 0.660744 | [
"vector"
] |
e72b53d078bcc4a60f75c8ad18f7648c53e310e8 | 4,824 | hpp | C++ | src/ast/Node.hpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | 1 | 2019-06-17T07:16:01.000Z | 2019-06-17T07:16:01.000Z | src/ast/Node.hpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | src/ast/Node.hpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | /*
* soyac - Soya Programming Language compiler
* Copyright (c) 2009 Denis Washington <dwashington@gmx.net>
*
* This file is distributed under the terms of the MIT license.
* See LICENSE.txt for details.
*/
#ifndef _AST_NODE_HPP
#define _AST_NODE_HPP
#include <boost/signals2/signal.hpp>
#include <list>
#include... | 30.531646 | 81 | 0.667496 | [
"render",
"object"
] |
e72f82e50e099182dbf26c938bd8c5dc9e4b474d | 478 | hpp | C++ | src/Omega_h_egads.hpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 44 | 2019-01-23T03:37:18.000Z | 2021-08-24T02:20:29.000Z | src/Omega_h_egads.hpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 67 | 2019-01-29T15:35:42.000Z | 2021-08-17T20:42:40.000Z | src/Omega_h_egads.hpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 29 | 2019-01-14T21:33:32.000Z | 2021-08-10T11:35:24.000Z | #ifndef OMEGA_H_EGADS_HPP
#define OMEGA_H_EGADS_HPP
#include <Omega_h_array.hpp>
#include <string>
namespace Omega_h {
class Mesh;
struct Egads;
Egads* egads_load(std::string const& filename);
void egads_classify(Egads* eg, int nadj_faces, int const adj_face_ids[],
int* class_dim, int* class_id);
void egads_fre... | 20.782609 | 72 | 0.759414 | [
"mesh"
] |
e73111315019a1525f366cdb425d6cf91280454e | 10,777 | cpp | C++ | demos/face_detection_mtcnn_demo/cpp_gapi/src/custom_kernels.cpp | kblaszczak-intel/open_model_zoo | e313674d35050d2a4721bbccd9bd4c404f1ba7f8 | [
"Apache-2.0"
] | 2,201 | 2018-10-15T14:37:19.000Z | 2020-07-16T02:05:51.000Z | demos/face_detection_mtcnn_demo/cpp_gapi/src/custom_kernels.cpp | kblaszczak-intel/open_model_zoo | e313674d35050d2a4721bbccd9bd4c404f1ba7f8 | [
"Apache-2.0"
] | 759 | 2018-10-18T07:43:55.000Z | 2020-07-16T01:23:12.000Z | demos/face_detection_mtcnn_demo/cpp_gapi/src/custom_kernels.cpp | kblaszczak-intel/open_model_zoo | e313674d35050d2a4721bbccd9bd4c404f1ba7f8 | [
"Apache-2.0"
] | 808 | 2018-10-16T14:03:49.000Z | 2020-07-15T11:41:45.000Z | // Copyright (C) 2021-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "custom_kernels.hpp"
#include <string>
#include <utility>
#include <opencv2/gapi/cpu/gcpukernel.hpp>
#include <opencv2/imgproc.hpp>
namespace {
const float P_NET_WINDOW_SIZE = 12.0f;
std::vector<custom::Face> buildFaces(... | 42.097656 | 112 | 0.559618 | [
"vector"
] |
e733314cfc3ba0d2c9e8828605afeb21e79672be | 75,756 | cpp | C++ | chromium/third_party/WebKit/Source/core/editing/EditingStyle.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/third_party/WebKit/Source/core/editing/EditingStyle.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/third_party/WebKit/Source/core/editing/EditingStyle.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2007, 2008, 2009 Apple Computer, Inc.
* Copyright (C) 2010, 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must reta... | 43.688581 | 217 | 0.753234 | [
"vector"
] |
e734fb95562a57f751726797157893514a87e0f2 | 24,053 | cc | C++ | src/lib/dns/name.cc | mcr/kea | 7fbbfde2a0742a3d579d51ec94fc9b91687fb901 | [
"Apache-2.0"
] | 1 | 2019-08-10T21:52:58.000Z | 2019-08-10T21:52:58.000Z | src/lib/dns/name.cc | jxiaobin/kea | 1987a50a458921f9e5ac84cb612782c07f3b601d | [
"Apache-2.0"
] | null | null | null | src/lib/dns/name.cc | jxiaobin/kea | 1987a50a458921f9e5ac84cb612782c07f3b601d | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2009-2018 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <cctype>
#inclu... | 33.176552 | 80 | 0.54962 | [
"object",
"vector",
"transform"
] |
e73987146fc97f7ea2c77e17e2f0b67a96618c13 | 1,379 | hpp | C++ | include/DeferredSpecialize.hpp | scribe-lang/scribe | 28ee67cc5081aa3bdd0d4fc284c04738e3272687 | [
"MIT"
] | 13 | 2021-12-28T17:54:05.000Z | 2022-03-19T16:13:03.000Z | include/DeferredSpecialize.hpp | scribe-lang/scribe | 28ee67cc5081aa3bdd0d4fc284c04738e3272687 | [
"MIT"
] | null | null | null | include/DeferredSpecialize.hpp | scribe-lang/scribe | 28ee67cc5081aa3bdd0d4fc284c04738e3272687 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2022 Scribe Language Repositories
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, mod... | 27.039216 | 81 | 0.759246 | [
"vector"
] |
e73c5322bc06137f7bbc67b20e551e8838c1d05f | 31,854 | cc | C++ | jni/sources/voice_engine/voe_network_impl.cc | guo19941204/c-jni | 866a2bc3f1148824e1a5c270fdf452888cb06d2b | [
"MIT"
] | null | null | null | jni/sources/voice_engine/voe_network_impl.cc | guo19941204/c-jni | 866a2bc3f1148824e1a5c270fdf452888cb06d2b | [
"MIT"
] | null | null | null | jni/sources/voice_engine/voe_network_impl.cc | guo19941204/c-jni | 866a2bc3f1148824e1a5c270fdf452888cb06d2b | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All con... | 36.487973 | 81 | 0.597382 | [
"vector"
] |
e73ddd303458e956fbce09f81c000d3b2c9b928e | 3,776 | hpp | C++ | oink/src/oink.hpp | trolando/oink-experiments | a58937b78fd0857a26b8ec0e985552e672405862 | [
"Apache-2.0"
] | 1 | 2019-03-04T14:24:17.000Z | 2019-03-04T14:24:17.000Z | oink/src/oink.hpp | trolando/oink-experiments | a58937b78fd0857a26b8ec0e985552e672405862 | [
"Apache-2.0"
] | null | null | null | oink/src/oink.hpp | trolando/oink-experiments | a58937b78fd0857a26b8ec0e985552e672405862 | [
"Apache-2.0"
] | null | null | null | #ifndef OINK_HPP
#define OINK_HPP
#include <iostream>
#include <vector>
#include "game.hpp"
namespace pg {
class Solver;
class Oink
{
public:
Oink(Game &game, std::ostream &out=std::cout) : game(&game), logger(out) { }
~Oink() {}
/**
* After configuring Oink, use run() to run the solver.
*/
... | 29.5 | 110 | 0.610434 | [
"vector"
] |
e73fdee3ee6d5af98e3bcda394ddba4b126481fd | 35,164 | cpp | C++ | wxWidgets/samples/access/accesstest.cpp | VonaInc/lokl | 83fbaa9c73d3112490edd042da812ceeb3cc9e53 | [
"MIT"
] | 86 | 2015-08-06T11:30:01.000Z | 2022-02-28T04:50:22.000Z | wxWidgets/samples/access/accesstest.cpp | VonaInc/lokl | 83fbaa9c73d3112490edd042da812ceeb3cc9e53 | [
"MIT"
] | 6 | 2016-01-04T19:36:22.000Z | 2021-08-08T02:43:48.000Z | wxWidgets/samples/access/accesstest.cpp | VonaInc/lokl | 83fbaa9c73d3112490edd042da812ceeb3cc9e53 | [
"MIT"
] | 22 | 2015-11-04T04:04:54.000Z | 2022-02-28T04:50:24.000Z | /////////////////////////////////////////////////////////////////////////////
// Name: accesstest.cpp
// Purpose: wxWidgets accessibility sample
// Author: Julian Smart
// Modified by:
// Created: 2002-02-12
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////... | 31.56553 | 116 | 0.555938 | [
"object"
] |
e740a69fbc0d8dc0cbe54e2986d9079fb6c906b0 | 9,224 | cpp | C++ | utils.cpp | rohankhanna/tensorflow-object-detection-cpp | a53395918e4a04fcbe1563b5dd02383b68904aa6 | [
"MIT"
] | null | null | null | utils.cpp | rohankhanna/tensorflow-object-detection-cpp | a53395918e4a04fcbe1563b5dd02383b68904aa6 | [
"MIT"
] | null | null | null | utils.cpp | rohankhanna/tensorflow-object-detection-cpp | a53395918e4a04fcbe1563b5dd02383b68904aa6 | [
"MIT"
] | null | null | null | #include "utils.h"
#include <math.h>
#include <fstream>
#include <utility>
#include <vector>
#include <iostream>
#include <regex>
#include "tensorflow/cc/ops/const_op.h"
#include "tensorflow/cc/ops/image_ops.h"
#include "tensorflow/cc/ops/standard_ops.h"
#include "tensorflow/core/framework/graph.pb.h"
#include "tenso... | 38.594142 | 139 | 0.628144 | [
"object",
"shape",
"vector",
"model"
] |
8d4525881c7f33bf9087b0d6f4740d564b5d86ac | 470 | cpp | C++ | azioni/azioni.cpp | EndBug/olinfo-solutions | de278df0ad1c4995ac58a1ebc5d8902a0cc81ed3 | [
"MIT"
] | null | null | null | azioni/azioni.cpp | EndBug/olinfo-solutions | de278df0ad1c4995ac58a1ebc5d8902a0cc81ed3 | [
"MIT"
] | null | null | null | azioni/azioni.cpp | EndBug/olinfo-solutions | de278df0ad1c4995ac58a1ebc5d8902a0cc81ed3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
using namespace std;
int N, diff = 0;
vector <int> Q;
int main()
{
ifstream in("input.txt");
ofstream out("output.txt");
in >> N;
for (int i = 0; i < N; i++) {
int temp;
in >> temp;
Q.push_back(temp);
}
for (int... | 16.206897 | 43 | 0.493617 | [
"vector"
] |
8d4cbafcc4944311091bfe3b0ce915bd62ac3e91 | 12,786 | cpp | C++ | GATE_Engine/GeometryLoader.cpp | DocDonkeys/3D_Engine | bb2868884c6eec0ef619a45b7e21f5cf3857fe1b | [
"MIT"
] | 1 | 2019-10-14T00:35:48.000Z | 2019-10-14T00:35:48.000Z | GATE_Engine/GeometryLoader.cpp | DocDonkeys/3D_Engine | bb2868884c6eec0ef619a45b7e21f5cf3857fe1b | [
"MIT"
] | null | null | null | GATE_Engine/GeometryLoader.cpp | DocDonkeys/3D_Engine | bb2868884c6eec0ef619a45b7e21f5cf3857fe1b | [
"MIT"
] | 3 | 2020-02-13T22:52:44.000Z | 2020-10-21T06:55:45.000Z | #include "GeometryLoader.h"
#include "Application.h"
#include "ModuleRenderer3D.h"
#include "ModuleSceneIntro.h"
#include "ModuleFileSystem.h"
#include "ModuleResources.h"
#include "ModuleCamera3D.h"
#include "TextureLoader.h"
#include "Importer.h"
#include "libs/SDL/include/SDL_assert.h"
#include "libs/Assimp/include... | 31.415233 | 138 | 0.71985 | [
"mesh",
"object",
"vector",
"model",
"transform",
"3d"
] |
8d5064daac8ee0320115924aa1ac44615cca540c | 24,956 | cc | C++ | cc/tiles/image_controller_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | cc/tiles/image_controller_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | cc/tiles/image_controller_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/tiles/image_controller.h"
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/run... | 34.374656 | 80 | 0.685527 | [
"vector"
] |
8d5c851f403f5c9734cde80ccac3e13253f4c3e8 | 2,938 | cpp | C++ | UnitTests/HostVectorTests.cpp | pmontalb/CudaLight | 390efb41da88245b2f5909b84213fb5839d505cf | [
"MIT"
] | 2 | 2020-03-25T17:54:50.000Z | 2021-11-30T23:34:21.000Z | UnitTests/HostVectorTests.cpp | pmontalb/CudaLight | 390efb41da88245b2f5909b84213fb5839d505cf | [
"MIT"
] | 2 | 2018-03-04T22:26:42.000Z | 2018-03-13T12:57:46.000Z | UnitTests/HostVectorTests.cpp | pmontalb/CudaLight | 390efb41da88245b2f5909b84213fb5839d505cf | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <Vector.h>
#include <algorithm>
namespace clt
{
class HostVectorTests: public ::testing::Test
{
};
TEST_F(HostVectorTests, Allocation)
{
cl::test::vec v1(10, 1.2345f);
cl::test::dvec v2(10, 1.2345);
}
TEST_F(HostVectorTests, Copy)
{
cl::test::vec v1(10, 1.2345f);
c... | 20.545455 | 60 | 0.579646 | [
"vector"
] |
8d5eaed65a6f4d1c3064e2e8dc77d5e4a17b2938 | 5,344 | cpp | C++ | src/Graphics/GLSLProgram.cpp | shvrd/engine | 88a8cd30bcdd6c815a16497e6ba54eea70b6c2df | [
"MIT"
] | null | null | null | src/Graphics/GLSLProgram.cpp | shvrd/engine | 88a8cd30bcdd6c815a16497e6ba54eea70b6c2df | [
"MIT"
] | null | null | null | src/Graphics/GLSLProgram.cpp | shvrd/engine | 88a8cd30bcdd6c815a16497e6ba54eea70b6c2df | [
"MIT"
] | null | null | null | //
// Created by thekatze on 06/02/18.
//
#include "GLSLProgram.h"
#include "../Util/Logger.h"
#include "../Util/Constants.h"
#include <fstream>
#include <vector>
GLSLProgram::GLSLProgram() : programID(0), vertexShaderID(0), fragmentShaderID(0), numAttributes(0), compileStatus(0x00) {}
GLSLProgram::~GLSLProgram() =... | 28.731183 | 123 | 0.680202 | [
"vector"
] |
8d697164b291e1b5b39c4b105626ce02c329fe47 | 17,980 | cc | C++ | cc/accounting/privacy_loss_distribution.cc | dibakch/differential-privacy | ae9c6b6d5b7e772837ae336d1b3092683481ec16 | [
"Apache-2.0"
] | 2,550 | 2019-09-04T13:13:24.000Z | 2022-03-31T16:05:50.000Z | cc/accounting/privacy_loss_distribution.cc | fbalicchia/differential-privacy | 099080e49c4c047802d785bc818898c0caf84d45 | [
"Apache-2.0"
] | 90 | 2019-09-10T15:37:10.000Z | 2022-03-28T12:55:03.000Z | cc/accounting/privacy_loss_distribution.cc | fbalicchia/differential-privacy | 099080e49c4c047802d785bc818898c0caf84d45 | [
"Apache-2.0"
] | 324 | 2019-09-05T11:52:06.000Z | 2022-03-31T03:30:26.000Z | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 40.863636 | 80 | 0.715072 | [
"vector"
] |
8d6bb0bc456dac55bc6c90b4ded43fdc6f09cb6e | 8,617 | cpp | C++ | samples/bv3vlogic/bv3vlogic.cpp | coinhu/BitMagic | 64b53a056e3fde88620fdedda3395eb48aadfadb | [
"Apache-2.0"
] | 1 | 2021-07-25T10:50:36.000Z | 2021-07-25T10:50:36.000Z | samples/bv3vlogic/bv3vlogic.cpp | coinhu/BitMagic | 64b53a056e3fde88620fdedda3395eb48aadfadb | [
"Apache-2.0"
] | null | null | null | samples/bv3vlogic/bv3vlogic.cpp | coinhu/BitMagic | 64b53a056e3fde88620fdedda3395eb48aadfadb | [
"Apache-2.0"
] | null | null | null | /*
Copyright(c) 2002-2017 Anatoliy Kuznetsov(anatoliy_kuznetsov at yahoo.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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... | 27.977273 | 93 | 0.632123 | [
"vector"
] |
8d714ba0384ba9b775ff9d1b48e63d4cc01d95df | 71,251 | cpp | C++ | Source/Rendering/DirectX/vaRenderDeviceContextDX12.cpp | s-nase/vanilla | e2e26ed8037cff980ea86b5c6c21b979d82b1e36 | [
"MIT"
] | 8 | 2021-12-17T01:46:34.000Z | 2022-03-25T09:29:45.000Z | Source/Rendering/DirectX/vaRenderDeviceContextDX12.cpp | s-nase/XeGTAO | 11e439c33e3dd7c1e4ea0fc73733ca840bc95bec | [
"MIT"
] | null | null | null | Source/Rendering/DirectX/vaRenderDeviceContextDX12.cpp | s-nase/XeGTAO | 11e439c33e3dd7c1e4ea0fc73733ca840bc95bec | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Original work Copyright (C) 2016-2021, Intel Corporation
// Modified work Copyright (C) 2022, Vanilla Blue team
//
// SPDX-License-Identifier: MIT
//////////////////////////////////////////////... | 47.532355 | 328 | 0.669296 | [
"mesh",
"render",
"object",
"vector"
] |
8d714e91bd815a0defaa6cb7040108e0f2978f99 | 243 | hpp | C++ | gearoenix/render/widget/gx-rnd-wdg-alignment.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/render/widget/gx-rnd-wdg-alignment.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/render/widget/gx-rnd-wdg-alignment.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #ifndef GEAROENIX_RENDER_WIDGET_ALIGNMENT_HPP
#define GEAROENIX_RENDER_WIDGET_ALIGNMENT_HPP
#include <cstdint>
namespace gearoenix::render::widget {
enum struct Alignment : std::uint8_t {
Center = 1,
Start = 2,
End = 3,
};
}
#endif | 22.090909 | 45 | 0.744856 | [
"render"
] |
8d72a4339ec6ec23af4c6d559ff5813e4c9ea2de | 12,623 | cpp | C++ | flow/flat_buffers.cpp | marcmac/foundationdb | 65b0b454cb21c5f02fc0b88db63c0c52f0bfb4db | [
"Apache-2.0"
] | null | null | null | flow/flat_buffers.cpp | marcmac/foundationdb | 65b0b454cb21c5f02fc0b88db63c0c52f0bfb4db | [
"Apache-2.0"
] | 2 | 2019-03-15T22:23:06.000Z | 2019-03-17T18:45:04.000Z | flow/flat_buffers.cpp | marcmac/foundationdb | 65b0b454cb21c5f02fc0b88db63c0c52f0bfb4db | [
"Apache-2.0"
] | 1 | 2019-03-12T20:17:26.000Z | 2019-03-12T20:17:26.000Z | /*
* serialize.h
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2018 Apple Inc. and the FoundationDB project 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... | 26.914712 | 108 | 0.656738 | [
"object",
"vector"
] |
8d75d6c94d1c00cf29431a829fbd5680acb7e75f | 64,911 | cpp | C++ | compiler/writeAST_to_C.cpp | Bhare8972/Cyth | 334194be4b00456ed3fbf279f18bb22458d4ca81 | [
"Apache-2.0"
] | null | null | null | compiler/writeAST_to_C.cpp | Bhare8972/Cyth | 334194be4b00456ed3fbf279f18bb22458d4ca81 | [
"Apache-2.0"
] | 1 | 2016-01-09T19:00:14.000Z | 2016-01-09T19:00:14.000Z | compiler/writeAST_to_C.cpp | Bhare8972/Cyth | 334194be4b00456ed3fbf279f18bb22458d4ca81 | [
"Apache-2.0"
] | null | null | null |
#include "writeAST_to_C.hpp"
#include "AST_visitor.hpp"
#include <random>
#include <chrono>
using namespace csu;
using namespace std;
//// HEADER WRITERS ////
// writes import statements into header
class header_writeImports_visitor : public AST_visitorTree
{
public:
bool do_children; // set on way down to tru... | 37.826923 | 180 | 0.649874 | [
"vector"
] |
8d7cbdd3cd71eeb331383ca8cc1544ac18a32f19 | 17,588 | cpp | C++ | apps/tutorials/ospTutorialVolumePathTracer.cpp | ethan0911/ospray-tamr-fork | 553d2e31a7e7ff165fcc70063652fa42d1082de4 | [
"Apache-2.0"
] | null | null | null | apps/tutorials/ospTutorialVolumePathTracer.cpp | ethan0911/ospray-tamr-fork | 553d2e31a7e7ff165fcc70063652fa42d1082de4 | [
"Apache-2.0"
] | null | null | null | apps/tutorials/ospTutorialVolumePathTracer.cpp | ethan0911/ospray-tamr-fork | 553d2e31a7e7ff165fcc70063652fa42d1082de4 | [
"Apache-2.0"
] | null | null | null | // ======================================================================== //
// Copyright 2018-2019 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 36.794979 | 151 | 0.623834 | [
"geometry",
"render",
"object",
"vector"
] |
8d7fe9dd6ab5f03d9d34f0a4e0a82554be9c9b00 | 2,508 | cpp | C++ | source/utopian/core/renderer/jobs/BlurJob.cpp | simplerr/Papageno | 7ec1da40dc0459e26f5b9a8a3f72d8962237040d | [
"MIT"
] | null | null | null | source/utopian/core/renderer/jobs/BlurJob.cpp | simplerr/Papageno | 7ec1da40dc0459e26f5b9a8a3f72d8962237040d | [
"MIT"
] | null | null | null | source/utopian/core/renderer/jobs/BlurJob.cpp | simplerr/Papageno | 7ec1da40dc0459e26f5b9a8a3f72d8962237040d | [
"MIT"
] | null | null | null | #include "core/renderer/jobs/BlurJob.h"
#include "core/renderer/jobs/SSAOJob.h"
#include "core/renderer/CommonJobIncludes.h"
#include "vulkan/EffectManager.h"
namespace Utopian
{
BlurJob::BlurJob(Vk::Device* device, uint32_t width, uint32_t height)
: BaseJob(device, width, height)
{
blurImage = std::... | 34.356164 | 119 | 0.688198 | [
"render",
"vector"
] |
8d808c99ec26df917a573f882897ab83ec300f8c | 2,253 | cpp | C++ | CSES/Dynamic Programming/GridPaths.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | 2 | 2022-02-08T12:37:41.000Z | 2022-03-09T03:48:56.000Z | CSES/Dynamic Programming/GridPaths.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | null | null | null | CSES/Dynamic Programming/GridPaths.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define deb(x) cout << #x << " is " << x << "\n"
#define int long long
const int mod = 1000000007;
const int inf = 1e18;
const long double pi = acos(-1);
template <... | 23.46875 | 102 | 0.600533 | [
"vector"
] |
8d856e344f6f2174b23747b1894a42e66b3ca33e | 7,010 | hpp | C++ | engine/includes/graphics/transform.hpp | StuartDAdams/neon | d08a63b853801aec94390e50f2988d0217438061 | [
"MIT"
] | 1 | 2019-08-22T14:43:18.000Z | 2019-08-22T14:43:18.000Z | engine/includes/graphics/transform.hpp | StuartDAdams/neon | d08a63b853801aec94390e50f2988d0217438061 | [
"MIT"
] | null | null | null | engine/includes/graphics/transform.hpp | StuartDAdams/neon | d08a63b853801aec94390e50f2988d0217438061 | [
"MIT"
] | null | null | null | /*
===========================================================================
Moka Source Code
Copyright 2019 Stuart Adams. All rights reserved.
https://github.com/stuartdadams/moka
stuartdadams | linkedin.com/in/stuartdadams
This file is part of the Moka Real-Time Physically-Based Rendering Project.
Permission is h... | 30.745614 | 105 | 0.577461 | [
"object",
"transform"
] |
8d8bbd85b47b3fd7ce7db1a41ff74adb68f23556 | 32,292 | cpp | C++ | Engine/Source/Editor/DetailCustomizations/Private/DetailCustomizations.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Editor/DetailCustomizations/Private/DetailCustomizations.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Editor/DetailCustomizations/Private/DetailCustomizations.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "DetailCustomizations.h"
#include "Modules/ModuleManager.h"
#include "PropertyEditorModule.h"
#include "StaticMeshComponentDetails.h"
#include "LightComponentDetails.h"
#include "PointLightComponentDetails.h"
#include "DirectionalLightComponentDetai... | 82.377551 | 193 | 0.878546 | [
"object"
] |
8d8e5d375dbc98772d30bb2c99d399e75fba6e33 | 9,228 | cpp | C++ | source/utils/Image.cpp | 3096/Aether | bc547ec192d8a973a63a97eda2994b3c2bdfeef7 | [
"MIT"
] | 9 | 2020-05-06T20:23:22.000Z | 2022-01-19T10:37:46.000Z | source/utils/Image.cpp | 3096/Aether | bc547ec192d8a973a63a97eda2994b3c2bdfeef7 | [
"MIT"
] | 11 | 2020-03-22T03:40:50.000Z | 2020-06-09T00:53:13.000Z | source/utils/Image.cpp | 3096/Aether | bc547ec192d8a973a63a97eda2994b3c2bdfeef7 | [
"MIT"
] | 6 | 2020-05-03T06:59:36.000Z | 2020-07-15T04:21:59.000Z | #include "Aether/ThreadPool.hpp"
#include "Aether/utils/Image.hpp"
#include <array>
#include <cmath>
#include <thread>
namespace Aether::Utils::Image {
// Calculates the interpolated value using a cubic hermite spline
static double cubicHermite(const double a, const double b, const double c, const doub... | 43.323944 | 159 | 0.458713 | [
"vector"
] |
8d931a4d1d1d44b3bf32f2ae8da32ae4ffc0b2f4 | 5,933 | cc | C++ | src/devices/spi/drivers/spi/spi-test.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | src/devices/spi/drivers/spi/spi-test.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | src/devices/spi/drivers/spi/spi-test.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "spi.h"
#include <lib/fake_ddk/fake_ddk.h>
#include <lib/spi/spi.h>
#include <ddk/metadata.h>
#include <ddk/metadata/spi.h>
#include <ddktl/prot... | 31.727273 | 99 | 0.647902 | [
"vector"
] |
8d946d5121bb9b261c8f1d8bd1b74faee4dde96b | 7,881 | cpp | C++ | MetalMockTests/MetalMock/ValueReturnerTests.cpp | NeilJustice/ZenUnitAndZenMock | bbcb4221d063fa04e4ef3a98143e0f123e3af8d5 | [
"MIT"
] | 2 | 2019-11-11T17:32:53.000Z | 2020-04-22T20:42:56.000Z | MetalMockTests/MetalMock/ValueReturnerTests.cpp | NeilJustice/ZenUnitAndZenMock | bbcb4221d063fa04e4ef3a98143e0f123e3af8d5 | [
"MIT"
] | 1 | 2021-03-03T07:19:16.000Z | 2021-03-28T21:46:32.000Z | MetalMockTests/MetalMock/ValueReturnerTests.cpp | NeilJustice/ZenUnitAndZenMock | bbcb4221d063fa04e4ef3a98143e0f123e3af8d5 | [
"MIT"
] | null | null | null | #include "pch.h"
struct NonDefaultConstructible
{
int field;
explicit NonDefaultConstructible(int field)
: field(field) {}
};
namespace ZenUnit
{
template<>
class Equalizer<NonDefaultConstructible>
{
public:
static void AssertEqual(const NonDefaultConstructible& expected, ... | 54.729167 | 148 | 0.800025 | [
"vector"
] |
8d96be6ce9f6bc59566f8955fcf053feb258a7f5 | 3,206 | hpp | C++ | OptFrame/Commands/SystemPreprocessCommand.hpp | vncoelho/optmarket | dcfa8d909da98d89a464eda2420c38b0526f900c | [
"MIT"
] | null | null | null | OptFrame/Commands/SystemPreprocessCommand.hpp | vncoelho/optmarket | dcfa8d909da98d89a464eda2420c38b0526f900c | [
"MIT"
] | null | null | null | OptFrame/Commands/SystemPreprocessCommand.hpp | vncoelho/optmarket | dcfa8d909da98d89a464eda2420c38b0526f900c | [
"MIT"
] | null | null | null | // OptFrame - Optimization Framework
// Copyright (C) 2009-2015
// http://optframe.sourceforge.net/
//
// This file is part of the OptFrame optimization framework. This framework
// is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License v3 as published by... | 27.401709 | 237 | 0.693387 | [
"vector"
] |
8d96d24090ed42c86f56455b99b27ae122aa1aa3 | 56,700 | cpp | C++ | install/TexGen/Core/Mesher.cpp | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 14 | 2021-06-17T17:17:07.000Z | 2022-03-26T05:20:20.000Z | install/TexGen/Core/Mesher.cpp | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 6 | 2021-11-01T20:37:39.000Z | 2022-03-11T17:18:53.000Z | install/TexGen/Core/Mesher.cpp | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 8 | 2021-07-20T09:24:23.000Z | 2022-02-26T16:32:00.000Z | /*=============================================================================
TexGen: Geometric textile modeller.
Copyright (C) 2006 Martin Sherburn
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; ... | 28.708861 | 273 | 0.657795 | [
"mesh",
"vector",
"3d"
] |
8d9c7f0af84588b3018be717e473ac303f842f51 | 1,007 | cpp | C++ | Codemonk/Basics of Greedy Algorithms/Hunger Games.cpp | amarlearning/CodeForces | 6625d3be21cb6a78b88c7521860d1da263e77121 | [
"Unlicense"
] | 3 | 2016-02-20T12:14:51.000Z | 2016-03-18T20:09:36.000Z | Codemonk/Basics of Greedy Algorithms/Hunger Games.cpp | amarlearning/Codeforces | 6625d3be21cb6a78b88c7521860d1da263e77121 | [
"Unlicense"
] | null | null | null | Codemonk/Basics of Greedy Algorithms/Hunger Games.cpp | amarlearning/Codeforces | 6625d3be21cb6a78b88c7521860d1da263e77121 | [
"Unlicense"
] | 2 | 2018-07-26T21:00:42.000Z | 2019-11-30T19:33:57.000Z | /*
Author : Amar Prakash Pandey
contact : http://amarpandey.me
*/
#include <bits/stdc++.h>
using namespace std;
#ifndef ll
#define ll long long
#endif
vector <ll int> vec;
int main(int argc, char const *argv[]) {
ll int N, temp, cnt = 0;
scanf("%lld", &N);
for(int i=0; i < N; i++) {
cin >> temp;
... | 20.14 | 59 | 0.514399 | [
"vector"
] |
8da101e99bbdf722fea9eaaedc0cc4b628202ff7 | 9,652 | cpp | C++ | test/cpp/jit/test_utils.cpp | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 60,067 | 2017-01-18T17:21:31.000Z | 2022-03-31T21:37:45.000Z | test/cpp/jit/test_utils.cpp | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 66,955 | 2017-01-18T17:21:38.000Z | 2022-03-31T23:56:11.000Z | test/cpp/jit/test_utils.cpp | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 19,210 | 2017-01-18T17:45:04.000Z | 2022-03-31T23:51:56.000Z | #include <gtest/gtest.h>
#include <test/cpp/jit/test_utils.h>
#include <torch/csrc/jit/jit_log.h>
#include <torch/csrc/jit/passes/clear_undefinedness.h>
#include <torch/csrc/jit/runtime/custom_operator.h>
namespace torch {
namespace jit {
Stack createStack(std::vector<at::Tensor>&& list) {
return Stack(
std:... | 32.173333 | 102 | 0.611169 | [
"vector"
] |
8da614f47cc2c487f58ac59f7afd8a4183032dc8 | 111,187 | cpp | C++ | Source/bindings/v8/SerializedScriptValue.cpp | quanganh2627/bytm-x64-L-w05-2015_external_chromium_org_third_party_WebKit | 20e637e67a0c272870ae4d78466a68bcb77af041 | [
"BSD-3-Clause"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Source/bindings/v8/SerializedScriptValue.cpp | quanganh2627/bytm-x64-L-w05-2015_external_chromium_org_third_party_WebKit | 20e637e67a0c272870ae4d78466a68bcb77af041 | [
"BSD-3-Clause"
] | null | null | null | Source/bindings/v8/SerializedScriptValue.cpp | quanganh2627/bytm-x64-L-w05-2015_external_chromium_org_third_party_WebKit | 20e637e67a0c272870ae4d78466a68bcb77af041 | [
"BSD-3-Clause"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | /*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 36.300033 | 219 | 0.621709 | [
"object",
"vector"
] |
8da7b6b265dc40d880ee429973e0ceb58de4a2db | 13,299 | cc | C++ | chromeos/services/secure_channel/bluetooth_helper_impl_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chromeos/services/secure_channel/bluetooth_helper_impl_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chromeos/services/secure_channel/bluetooth_helper_impl_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/services/secure_channel/bluetooth_helper_impl.h"
#include <memory>
#include "base/memory/ptr_util.h"
#include "base/strings/string_nu... | 41.689655 | 80 | 0.7766 | [
"vector",
"transform"
] |
8da8fed354ed7b66648cb356825da37bba1b3187 | 7,718 | cpp | C++ | Extensions/Template/Extension.cpp | rickomax/VoxObject | f788e484fa060c00a29867f25192f3fbda8c63b1 | [
"MIT"
] | 1 | 2021-02-01T03:24:12.000Z | 2021-02-01T03:24:12.000Z | Extensions/Template/Extension.cpp | rickomax/VoxObject | f788e484fa060c00a29867f25192f3fbda8c63b1 | [
"MIT"
] | null | null | null | Extensions/Template/Extension.cpp | rickomax/VoxObject | f788e484fa060c00a29867f25192f3fbda8c63b1 | [
"MIT"
] | null | null | null | /* Extension.cpp
* This file contains the definitions for
* your extension's general runtime functions,
* such as the constructor and destructor,
* handling routines, etc.
* Functions defined here:
* Extension::Extension <constructor>
* Extension::~Extension <destructor>
* Extension::Handle
* Extension::Displa... | 30.505929 | 141 | 0.725058 | [
"object"
] |
8dab3b0bfae0cf1da097dd0d511f10b794ea48bc | 2,487 | cpp | C++ | Uva/Uva_AC/10189-Minesweeper.cpp | Saikat-S/acm-problems-solutions | 921c0f3e508e1ee8cd14be867587952d5f67bbb9 | [
"MIT"
] | 3 | 2018-05-11T07:33:20.000Z | 2020-08-30T11:02:02.000Z | Uva/Uva_AC/10189-Minesweeper.cpp | Saikat-S/acm-problems-solutions | 921c0f3e508e1ee8cd14be867587952d5f67bbb9 | [
"MIT"
] | 1 | 2018-05-11T18:10:26.000Z | 2018-05-12T18:00:28.000Z | Uva/Uva_AC/10189-Minesweeper.cpp | Saikat-S/acm-problems-solutions | 921c0f3e508e1ee8cd14be867587952d5f67bbb9 | [
"MIT"
] | null | null | null | /***************************************************
* Problem name : 10189-Minesweeper.cpp
* Problem Link : https://uva.onlinejudge.org/external/101/10189.pdf
* OJ : Uva
* Verdict : AC
* Date : 2018-04-29
* Problem Type : Adhoc
* Author Name : Saikat Sharma
* University : CSE,MBSTU
*... | 25.90625 | 109 | 0.469642 | [
"vector"
] |
8dab49c063a0800a6b1768600b81ce9210c9f82e | 974 | hpp | C++ | include/game/StarField.hpp | ThePythonator/Rocket-Manager | 61489a9df2ac25b96ac337afd5cb58375533c748 | [
"MIT"
] | 2 | 2022-03-17T18:11:07.000Z | 2022-03-17T19:55:35.000Z | include/game/StarField.hpp | ThePythonator/Rocket-Manager | 61489a9df2ac25b96ac337afd5cb58375533c748 | [
"MIT"
] | null | null | null | include/game/StarField.hpp | ThePythonator/Rocket-Manager | 61489a9df2ac25b96ac337afd5cb58375533c748 | [
"MIT"
] | null | null | null | #pragma once
//#include <random>
#include "Maths.hpp"
#include "GraphicsObjects.hpp"
struct Star {
Framework::vec2 position;
// Size also dictates speed of movement
uint8_t size;
Framework::Colour colour;
};
class StarField {
public:
struct StarFieldConstants {
uint32_t large_stars = 10;
uint32_t medium_s... | 18.730769 | 64 | 0.743326 | [
"render",
"vector"
] |
8db037a258fde6baa73283871b9448dfaad9192e | 27,878 | cc | C++ | src/yb/tablet/tablet_metadata.cc | pritamdamania87/yugabyte-db | 70355f6c9248356e84cf21588013ea477fd04a5d | [
"Apache-2.0",
"CC0-1.0"
] | 1 | 2021-01-15T00:24:31.000Z | 2021-01-15T00:24:31.000Z | src/yb/tablet/tablet_metadata.cc | pritamdamania87/yugabyte-db | 70355f6c9248356e84cf21588013ea477fd04a5d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/yb/tablet/tablet_metadata.cc | pritamdamania87/yugabyte-db | 70355f6c9248356e84cf21588013ea477fd04a5d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 36.585302 | 100 | 0.662386 | [
"object",
"vector"
] |
8db3066892534260c2da42a5d39a3045027df047 | 1,264 | hpp | C++ | arucoMap/src/PresetFiles/PresetSurfaceClass.hpp | imec-int/team_scheire_OK | 65ffce48fc8d2ed2a11f2b63f5293c97f05b86cf | [
"MIT"
] | 3 | 2020-10-13T14:24:48.000Z | 2020-10-15T09:20:14.000Z | arucoMap/src/PresetFiles/PresetSurfaceClass.hpp | imec-int/team_scheire_OK | 65ffce48fc8d2ed2a11f2b63f5293c97f05b86cf | [
"MIT"
] | null | null | null | arucoMap/src/PresetFiles/PresetSurfaceClass.hpp | imec-int/team_scheire_OK | 65ffce48fc8d2ed2a11f2b63f5293c97f05b86cf | [
"MIT"
] | 5 | 2020-10-13T14:55:12.000Z | 2021-05-29T21:39:04.000Z | //
// PresetSurfaceClass.hpp
// TeamScheireV2
//
// Created by Jan Everaert on 09/10/2019.
//
#ifndef PresetSurfaceClass_hpp
#define PresetSurfaceClass_hpp
#include <stdio.h>
#include "ofMain.h"
#include "ofxXmlSettings.h"
#include "PresetFileClass.hpp"
#include "PresetItemClass.hpp"
#include "PresetFileClass.hpp... | 20.721311 | 88 | 0.736551 | [
"vector"
] |
8db8971d6a7c6aaeccf35e74fd1773dd19953b6b | 8,890 | cpp | C++ | init/init_sec.cpp | NusantaraROM-Devices/device_samsung_universal7420-common | f905c9dcbe41e2b21bdfbed4e32f0cecb20076e3 | [
"Apache-2.0"
] | null | null | null | init/init_sec.cpp | NusantaraROM-Devices/device_samsung_universal7420-common | f905c9dcbe41e2b21bdfbed4e32f0cecb20076e3 | [
"Apache-2.0"
] | null | null | null | init/init_sec.cpp | NusantaraROM-Devices/device_samsung_universal7420-common | f905c9dcbe41e2b21bdfbed4e32f0cecb20076e3 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2015, The Dokdo Project. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of condit... | 34.324324 | 76 | 0.607874 | [
"model"
] |
8dbba8129069aca304791bfd529f336a0f06e887 | 3,735 | cpp | C++ | examples/algae.cpp | Romop5/procgen | 35d6e8e81b6fa0597b8a79863c1552edaa0219a0 | [
"MIT"
] | 5 | 2018-02-19T21:25:15.000Z | 2018-05-11T19:06:51.000Z | examples/algae.cpp | Romop5/procgen | 35d6e8e81b6fa0597b8a79863c1552edaa0219a0 | [
"MIT"
] | null | null | null | examples/algae.cpp | Romop5/procgen | 35d6e8e81b6fa0597b8a79863c1552edaa0219a0 | [
"MIT"
] | null | null | null | #include <procgen/derivation/derivation.h>
#include <procgen/derivation/appender.h>
class AlwaysTrue : public Function
{
public:
virtual bool operator()(RunStatus& rs)
{
*(bool*) getOutput()->getData() = true;
return false;
}
};
class ruleInt: public Function
{
Derivation* der;
public:
ruleInt(Derivation* ... | 23.789809 | 120 | 0.696118 | [
"vector"
] |
8dbd0dc766574c60a547173df34d556678df66ca | 1,708 | cpp | C++ | src/Config.cpp | nugins99/cdtags | 591d2f39c60f04498adec2fd1ca1acac8bd73ca6 | [
"MIT"
] | null | null | null | src/Config.cpp | nugins99/cdtags | 591d2f39c60f04498adec2fd1ca1acac8bd73ca6 | [
"MIT"
] | null | null | null | src/Config.cpp | nugins99/cdtags | 591d2f39c60f04498adec2fd1ca1acac8bd73ca6 | [
"MIT"
] | null | null | null | #include "Config.h"
#include "Debug.h"
#include <boost/algorithm/string.hpp>
#include <iostream>
#include <fstream>
namespace cdtags {
fs::path
configFile()
{
static const fs::path file = ".config/cdtags/config";
// Read configuration
fs::path home(getenv("HOME"));
return home / file;
}
Config
parseConfig()
... | 21.620253 | 77 | 0.574356 | [
"vector"
] |
8dbe62cdf5e73628256bab3759c0c9ce890352dc | 4,330 | hpp | C++ | include/utils/point.hpp | JoseFilipeFerreira/CG-1920 | 88e7827e26cccba37f1de463e09510bcbe496016 | [
"MIT"
] | null | null | null | include/utils/point.hpp | JoseFilipeFerreira/CG-1920 | 88e7827e26cccba37f1de463e09510bcbe496016 | [
"MIT"
] | null | null | null | include/utils/point.hpp | JoseFilipeFerreira/CG-1920 | 88e7827e26cccba37f1de463e09510bcbe496016 | [
"MIT"
] | 1 | 2021-04-27T10:52:05.000Z | 2021-04-27T10:52:05.000Z | #ifndef POINT_H
#define POINT_H
#include <cmath>
#include <string>
class Point;
class PointSpherical;
class Vector;
class VectorSpherical;
class Vector {
private:
float _x, _y, _z;
public:
Vector(): _x(0), _y(0), _z(0){};
Vector(float, float, float);
Vector(Point const&, Point const&);
Vector... | 35.203252 | 74 | 0.636259 | [
"vector"
] |
8dbf38605f34700ac8510c968dc7c3018b717681 | 4,622 | cpp | C++ | Libs/qtlockedfile/qtlockedfile.cpp | SCOTT-HAMILTON/OTPGen | 706ba9a3546abddc1d1eb8f4edac710fe35a0b22 | [
"BSD-2-Clause"
] | 8 | 2018-12-21T12:04:19.000Z | 2022-03-20T04:11:44.000Z | Libs/qtlockedfile/qtlockedfile.cpp | SCOTT-HAMILTON/OTPGen | 706ba9a3546abddc1d1eb8f4edac710fe35a0b22 | [
"BSD-2-Clause"
] | 8 | 2019-11-24T19:51:10.000Z | 2021-01-23T19:02:57.000Z | Libs/qtlockedfile/qtlockedfile.cpp | SCOTT-HAMILTON/OTPGen | 706ba9a3546abddc1d1eb8f4edac710fe35a0b22 | [
"BSD-2-Clause"
] | 5 | 2019-01-28T03:36:02.000Z | 2020-11-04T07:27:05.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | 30.609272 | 166 | 0.690826 | [
"object"
] |
8dc076a604e218b42c9e4ae16454f6b8abeee72b | 15,589 | cpp | C++ | lib/mirror_rb/mirror_circuit_rb.cpp | moar55/qcor | e744642c3e87ededf60813a442b7cde502467de4 | [
"BSD-3-Clause"
] | null | null | null | lib/mirror_rb/mirror_circuit_rb.cpp | moar55/qcor | e744642c3e87ededf60813a442b7cde502467de4 | [
"BSD-3-Clause"
] | null | null | null | lib/mirror_rb/mirror_circuit_rb.cpp | moar55/qcor | e744642c3e87ededf60813a442b7cde502467de4 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2018-, UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the BSD 3-Clause License
* which accompanies this distribution.
*
* Contributors:
... | 34.111597 | 86 | 0.611329 | [
"vector"
] |
8dc14524d67366be1b1cc610be0ee490419e7b35 | 3,005 | hpp | C++ | src/Common/LoggerImpl.hpp | mlaszko/DisCODe | 0042280ae6c1ace8c6e0fa25ae4d440512c113f6 | [
"MIT"
] | 1 | 2017-02-17T13:01:13.000Z | 2017-02-17T13:01:13.000Z | src/Common/LoggerImpl.hpp | mlaszko/DisCODe | 0042280ae6c1ace8c6e0fa25ae4d440512c113f6 | [
"MIT"
] | null | null | null | src/Common/LoggerImpl.hpp | mlaszko/DisCODe | 0042280ae6c1ace8c6e0fa25ae4d440512c113f6 | [
"MIT"
] | 1 | 2018-07-23T00:05:58.000Z | 2018-07-23T00:05:58.000Z | /*!
* \file LoggerImpl.hpp
* \brief Simple logging object
* \author mstefanc
* \date 2010-06-10
*/
#ifndef LOGGERIMPL_HPP_
#define LOGGERIMPL_HPP_
#include <iostream>
#include <sstream>
#include <string>
#include <boost/ptr_container/ptr_vector.hpp>
#include <Singleton.hpp>
#include "LoggerAux.hpp"
#include "L... | 19.900662 | 103 | 0.648253 | [
"object"
] |
44efd7e0dc30cffa744ab2af86a8955cce9d8177 | 732 | cpp | C++ | source/LCS.cpp | bpieszko/CopyTextFromVideo | f6722322c67da8ceb18d72be0241005b21a0f580 | [
"MIT"
] | 12 | 2019-01-30T11:59:03.000Z | 2022-03-30T23:02:34.000Z | source/LCS.cpp | bpieszko/CopyTextFromVideo | f6722322c67da8ceb18d72be0241005b21a0f580 | [
"MIT"
] | 1 | 2019-11-01T11:30:22.000Z | 2019-11-03T19:08:21.000Z | source/LCS.cpp | bpieszko/CopyTextFromVideo | f6722322c67da8ceb18d72be0241005b21a0f580 | [
"MIT"
] | 6 | 2019-03-13T16:37:17.000Z | 2022-03-28T05:16:37.000Z | #include "LCS.hpp"
const int LCS::getPercentSimilarity(const std::string & a, const std::string & b)
{
return getSimilarity(a, b) * 100 / std::max(a.size(), b.size());
}
const int LCS::getSimilarity(const std::string & a, const std::string & b)
{
std::vector<std::vector<int>> dp(a.size() + 1, std::vector<int>... | 28.153846 | 86 | 0.439891 | [
"vector"
] |
44f1414614a29b309421fac8f1502e1f61421b1c | 3,092 | cpp | C++ | Modules/CppMicroServices/core/examples/eventlistener/Activator.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Modules/CppMicroServices/core/examples/eventlistener/Activator.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Modules/CppMicroServices/core/examples/eventlistener/Activator.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*=============================================================================
Library: CppMicroServices
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in... | 32.547368 | 153 | 0.643273 | [
"vector"
] |
44f149de30c0b54ad8e7c38116675cc1bfe3e1f7 | 3,744 | cpp | C++ | src/scene/shaders.cpp | markreidvfx/glprojectiontool | d03495dfb461ad1487a2b18c21a1eabdd744105a | [
"BSD-3-Clause"
] | null | null | null | src/scene/shaders.cpp | markreidvfx/glprojectiontool | d03495dfb461ad1487a2b18c21a1eabdd744105a | [
"BSD-3-Clause"
] | null | null | null | src/scene/shaders.cpp | markreidvfx/glprojectiontool | d03495dfb461ad1487a2b18c21a1eabdd744105a | [
"BSD-3-Clause"
] | null | null | null | #include "shaders.h"
#include <GL/glew.h>
#include <string>
#include "rc_helper.h"
#include <iostream>
#include <vector>
bool compile_shader(const char *shader_code,
GLenum shader_type,
GLuint &shaderId)
{
shaderId = glCreateShader(shader_type);
glShaderSource(shaderI... | 28.363636 | 97 | 0.659188 | [
"geometry",
"vector"
] |
44f2384694f5fe3aacd59738fdc1900aaa8a0626 | 3,129 | cpp | C++ | 30 - days of code/Scope/scope.cpp | kiptechie/hackerank | a1f827a3a8c494b0461b0e8d77e23aaa16d201b8 | [
"MIT"
] | 1 | 2020-07-06T12:50:30.000Z | 2020-07-06T12:50:30.000Z | 30 - days of code/Scope/scope.cpp | kiptechie/hackerank | a1f827a3a8c494b0461b0e8d77e23aaa16d201b8 | [
"MIT"
] | null | null | null | 30 - days of code/Scope/scope.cpp | kiptechie/hackerank | a1f827a3a8c494b0461b0e8d77e23aaa16d201b8 | [
"MIT"
] | null | null | null | // Day 14: Scope
// Objective
// Today we’re discussing scope. Check out the Tutorial tab for learning materials and an instructional video!
// The absolute difference between two integers, a and b, is written as |a - b|. The maximum absolute difference between two integers in a set of positive integers, elements, is ... | 32.59375 | 247 | 0.677213 | [
"vector"
] |
44f94a10326af2129a74fb7a3d1bff8eaea7b7f6 | 4,530 | cpp | C++ | src/cascadia/TerminalApp/TabBase.cpp | paramsiddharth/terminal | e4a9c00f863db1ccb84fae43aaa786a2d0c02651 | [
"MIT"
] | 3 | 2020-12-17T21:46:18.000Z | 2020-12-24T23:00:50.000Z | src/cascadia/TerminalApp/TabBase.cpp | paramsiddharth/terminal | e4a9c00f863db1ccb84fae43aaa786a2d0c02651 | [
"MIT"
] | null | null | null | src/cascadia/TerminalApp/TabBase.cpp | paramsiddharth/terminal | e4a9c00f863db1ccb84fae43aaa786a2d0c02651 | [
"MIT"
] | 1 | 2021-04-07T16:59:45.000Z | 2021-04-07T16:59:45.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include <LibraryResources.h>
#include "TabBase.h"
#include "TabBase.g.cpp"
using namespace winrt;
using namespace winrt::Windows::UI::Xaml;
using namespace winrt::Windows::UI::Core;
using namespace winrt::Microsoft... | 30.608108 | 90 | 0.615232 | [
"model"
] |
44fb0fe5f28adb2655630cfc24caaffde50f78e6 | 3,331 | hpp | C++ | include/System/IO/SearchResultHandler_1.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/IO/SearchResultHandler_1.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/IO/SearchResultHandler_1.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
#include "extern/beatsaber-hook/s... | 55.516667 | 204 | 0.719304 | [
"object",
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.