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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83f8257e20355335b0a652a0546a470ab75f318c | 4,946 | cpp | C++ | deps/libgeos/geos/src/geom/prep/PreparedPolygonPredicate.cpp | AmristarSolutions/node-gdal-next | 8c0a7d9b26c240bf04abbf1b1de312b0691b3d88 | [
"Apache-2.0"
] | 57 | 2020-02-08T17:52:17.000Z | 2021-10-14T03:45:09.000Z | deps/libgeos/geos/src/geom/prep/PreparedPolygonPredicate.cpp | AmristarSolutions/node-gdal-next | 8c0a7d9b26c240bf04abbf1b1de312b0691b3d88 | [
"Apache-2.0"
] | 47 | 2020-02-12T16:41:40.000Z | 2021-09-28T22:27:56.000Z | deps/libgeos/geos/src/geom/prep/PreparedPolygonPredicate.cpp | AmristarSolutions/node-gdal-next | 8c0a7d9b26c240bf04abbf1b1de312b0691b3d88 | [
"Apache-2.0"
] | 8 | 2020-03-17T11:18:07.000Z | 2021-10-14T03:45:15.000Z | /**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as p... | 27.477778 | 106 | 0.660938 | [
"geometry"
] |
83fb7551285e716814dc1bd909af9b10e6787ca0 | 4,149 | cpp | C++ | src/allegro_flare/drawing_interface_html_canvas.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 25 | 2015-03-30T02:02:43.000Z | 2019-03-04T22:29:12.000Z | src/allegro_flare/drawing_interface_html_canvas.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 122 | 2015-04-01T08:15:26.000Z | 2019-10-16T20:31:22.000Z | src/allegro_flare/drawing_interface_html_canvas.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 4 | 2016-09-02T12:14:09.000Z | 2018-11-23T20:38:49.000Z |
#include <allegro_flare/drawing_interface_html_canvas.h>
#include <AllegroFlare/Color.hpp>
#include <AllegroFlare/Useful.hpp>
#include <AllegroFlare/UsefulPHP.hpp>
using namespace AllegroFlare;
namespace allegro_flare
{
int DrawingInterfaceHTMLCanvas::next_html5_canvas_id = 1;
DrawingInterfaceHT... | 31.195489 | 199 | 0.638949 | [
"solid"
] |
83fd21523b1c102429b7785c68fe9a0f628accc2 | 9,277 | cpp | C++ | test/biggles_core.cpp | fbi-octopus/biggles | 2dac4f1748ab87242951239caf274f302be1143a | [
"Apache-2.0"
] | 1 | 2019-11-15T14:01:59.000Z | 2019-11-15T14:01:59.000Z | test/biggles_core.cpp | fbi-octopus/biggles | 2dac4f1748ab87242951239caf274f302be1143a | [
"Apache-2.0"
] | null | null | null | test/biggles_core.cpp | fbi-octopus/biggles | 2dac4f1748ab87242951239caf274f302be1143a | [
"Apache-2.0"
] | null | null | null | #include <stdlib.h>
#include <vector>
#include "biggles/detail/pair_collection.hpp"
#include "biggles/observation.hpp"
#include "biggles/point_2d.hpp"
#include "biggles/track.hpp"
// include this last to stop pre-processor macros breaking things
extern "C" {
#include <ccan/tap/tap.h>
}
using namespace biggles;
void... | 28.900312 | 84 | 0.584241 | [
"vector"
] |
86033080f8be1d8b77a8c34b7f63a0e40c933cba | 2,276 | cpp | C++ | src/flame/db/mongodb/client.cpp | partyfly/php-flame | aa7b06a1183f4f32dd1adaeefd564c6fbf8e8ea9 | [
"MIT"
] | null | null | null | src/flame/db/mongodb/client.cpp | partyfly/php-flame | aa7b06a1183f4f32dd1adaeefd564c6fbf8e8ea9 | [
"MIT"
] | null | null | null | src/flame/db/mongodb/client.cpp | partyfly/php-flame | aa7b06a1183f4f32dd1adaeefd564c6fbf8e8ea9 | [
"MIT"
] | null | null | null | #include "deps.h"
#include "../../flame.h"
#include "../../coroutine.h"
#include "../../thread_worker.h"
#include "client_implement.h"
#include "client.h"
#include "collection.h"
namespace flame {
namespace db {
namespace mongodb {
php::value client::__construct(php::parameters& params) {
impl = new cli... | 31.611111 | 94 | 0.660369 | [
"object"
] |
860b40591ef4f80b010017fdc22c032d033a21b2 | 489 | cpp | C++ | 27.remove_element.cpp | willyii/LeetcodeRecord | e2ce7ed140409b00ada0cc17854f6a537bf2fc51 | [
"MIT"
] | null | null | null | 27.remove_element.cpp | willyii/LeetcodeRecord | e2ce7ed140409b00ada0cc17854f6a537bf2fc51 | [
"MIT"
] | null | null | null | 27.remove_element.cpp | willyii/LeetcodeRecord | e2ce7ed140409b00ada0cc17854f6a537bf2fc51 | [
"MIT"
] | null | null | null | #include <vector>
using namespace std;
class Solution {
public:
int removeElement(vector<int> &nums, int val) {
int lo = 0, hi = nums.size() - 1;
while (hi >= lo && nums[lo] != val) {
lo++;
}
while (hi >= lo && nums[hi] == val) {
hi--;
}
while (lo <= hi) {
nums[lo++] = num... | 17.464286 | 49 | 0.429448 | [
"vector"
] |
86133b03cc11a0185ca1fbeaa80673679cd93cbc | 3,705 | cpp | C++ | src/other/openscenegraph/src/osgViewer/Scene.cpp | Zitara/BRLCAD | 620449d036e38bd52257f6b5b10daa55d9284900 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | 1 | 2019-10-23T16:17:49.000Z | 2019-10-23T16:17:49.000Z | src/other/openscenegraph/src/osgViewer/Scene.cpp | pombredanne/sf.net-brlcad | fb56f37c201b51241e8f3aa7b979436856f43b8c | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/other/openscenegraph/src/osgViewer/Scene.cpp | pombredanne/sf.net-brlcad | fb56f37c201b51241e8f3aa7b979436856f43b8c | [
"BSD-4-Clause",
"BSD-3-Clause"
] | 1 | 2018-12-21T21:09:47.000Z | 2018-12-21T21:09:47.000Z | /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* 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
* included with this... | 23.301887 | 93 | 0.648583 | [
"vector"
] |
8617f72634b6dc7eefc43bfe3d908d46bff4ab77 | 19,752 | cpp | C++ | src/inventory.cpp | crazyBaboon/MathWorlds | dd35e88e207a26be8632999ad09eeef81820343d | [
"CC-BY-4.0"
] | 1 | 2018-03-01T13:03:01.000Z | 2018-03-01T13:03:01.000Z | src/inventory.cpp | crazyBaboon/MathWorlds | dd35e88e207a26be8632999ad09eeef81820343d | [
"CC-BY-4.0"
] | null | null | null | src/inventory.cpp | crazyBaboon/MathWorlds | dd35e88e207a26be8632999ad09eeef81820343d | [
"CC-BY-4.0"
] | null | null | null | /*
Minetest
Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
This program 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 Free Software Foundation; either version 2.1 of the License, or
(at your option) any lat... | 19.811434 | 90 | 0.657351 | [
"vector"
] |
86194a9fe3e7646811aa8e683efca3a27053c6f8 | 2,838 | cpp | C++ | leetcode/cpp/qt_design_phone_directory.cpp | qiaotian/CodeInterview | 294c1ba86d8ace41a121c5ada4ba4c3765ccc17d | [
"WTFPL"
] | 5 | 2016-10-29T09:28:11.000Z | 2019-10-19T23:02:48.000Z | leetcode/cpp/qt_design_phone_directory.cpp | qiaotian/CodeInterview | 294c1ba86d8ace41a121c5ada4ba4c3765ccc17d | [
"WTFPL"
] | null | null | null | leetcode/cpp/qt_design_phone_directory.cpp | qiaotian/CodeInterview | 294c1ba86d8ace41a121c5ada4ba4c3765ccc17d | [
"WTFPL"
] | null | null | null | /**
* @Author: Tian Qiao
* @Date: 2016-08-03T15:28:29+08:00
* @Email: qiaotian@me.com
* @Last modified by: Tian Qiao
* @Last modified time: 2016-08-03T15:28:34+08:00
* @Tag: List, Design
*/
/*
Design a Phone Directory which supports the following operations:
get: Provide a number which is not assigned to anyone.... | 29.257732 | 103 | 0.660324 | [
"object",
"vector"
] |
861c81dd9fe92cbecc9517a8f930a1bcf05e014c | 1,784 | hpp | C++ | test/TestSink.hpp | iboB/jalog | d89a5bb4ef8b0ea701a7cd3ea0229de3fbb3ecd9 | [
"MIT"
] | 3 | 2021-12-07T06:16:31.000Z | 2021-12-22T14:12:36.000Z | test/TestSink.hpp | iboB/jalog | d89a5bb4ef8b0ea701a7cd3ea0229de3fbb3ecd9 | [
"MIT"
] | null | null | null | test/TestSink.hpp | iboB/jalog | d89a5bb4ef8b0ea701a7cd3ea0229de3fbb3ecd9 | [
"MIT"
] | null | null | null | // jalog
// Copyright (c) 2021-2022 Borislav Stanimirov
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/MIT
//
#include <doctest/doctest.h>
#include <jalog/Sink.hpp>
#include <jalog/Entry.hpp>
#include "TestTime.hpp"
#include <string... | 24.777778 | 73 | 0.557175 | [
"vector"
] |
861da1a753958c84a76c7cb1929f6eedb3f89055 | 25,052 | cxx | C++ | src/larcv3/core/dataformat/Tensor.cxx | felker/larcv3 | c73936ece5cb11ca854b10987e32930f633fc998 | [
"MIT"
] | null | null | null | src/larcv3/core/dataformat/Tensor.cxx | felker/larcv3 | c73936ece5cb11ca854b10987e32930f633fc998 | [
"MIT"
] | null | null | null | src/larcv3/core/dataformat/Tensor.cxx | felker/larcv3 | c73936ece5cb11ca854b10987e32930f633fc998 | [
"MIT"
] | null | null | null | #ifndef __LARCV3DATAFORMAT_TENSOR_CXX__
#define __LARCV3DATAFORMAT_TENSOR_CXX__
#include "larcv3/core/base/larbys.h"
#include "larcv3/core/base/larcv_logger.h"
#include "larcv3/core/dataformat/Tensor.h"
#include <iostream>
#include <string.h>
#include <stdio.h>
namespace larcv3 {
template<size_t dimension>
Tenso... | 34.554483 | 137 | 0.601509 | [
"object",
"shape",
"vector"
] |
862384de4a653e7946d37b0dc32aa4f06bde346d | 1,183 | cpp | C++ | cpp/0001-0099/46. Permutations/solution.cpp | RapDoodle/LeetCode-Solutions | 6f14b7621bc6db12303be7f85508f3a5b2c2c30a | [
"MIT"
] | null | null | null | cpp/0001-0099/46. Permutations/solution.cpp | RapDoodle/LeetCode-Solutions | 6f14b7621bc6db12303be7f85508f3a5b2c2c30a | [
"MIT"
] | null | null | null | cpp/0001-0099/46. Permutations/solution.cpp | RapDoodle/LeetCode-Solutions | 6f14b7621bc6db12303be7f85508f3a5b2c2c30a | [
"MIT"
] | null | null | null | class Solution {
public:
void backtrack(vector<int>& nums, int level, vector<vector<int>>& ans) {
// Reached the maximum depth
if (level == nums.size() - 1) {
ans.push_back(nums);
return;
}
// Every number left to the level-th number are "finalized"
... | 34.794118 | 76 | 0.486052 | [
"vector"
] |
862645ad103f810bf1aa30f24d528a61530b1836 | 9,241 | cxx | C++ | src/MeteringSDK/MCORE/private/MTimeZoneAndroid.cxx | beroset/C12Adapter | 593b201db169481245b0673813e19d174560a41e | [
"MIT"
] | 9 | 2016-09-02T17:24:58.000Z | 2021-12-14T19:43:48.000Z | src/MeteringSDK/MCORE/private/MTimeZoneAndroid.cxx | beroset/C12Adapter | 593b201db169481245b0673813e19d174560a41e | [
"MIT"
] | 1 | 2018-09-06T21:48:42.000Z | 2018-09-06T21:48:42.000Z | src/MeteringSDK/MCORE/private/MTimeZoneAndroid.cxx | beroset/C12Adapter | 593b201db169481245b0673813e19d174560a41e | [
"MIT"
] | 4 | 2016-09-06T16:54:36.000Z | 2021-12-16T16:15:24.000Z | // File MCORE/private/MTimeZoneAndroid.cxx
#ifndef M__TIMEZONE_USE_ANDROID_IMPLEMENTATION
#error "Do not compile .cxx files directly, they are included!"
#endif
#include <jni.h> // repeat the include purely for the IDE to recognize types
#include "MJavaEnv.h"
static const char s_androidClassName[] = "com/elste... | 36.964 | 175 | 0.719403 | [
"object"
] |
862ec8793b9363c2e1ddc78ed4cd6f5e35db337c | 946 | cpp | C++ | mainapp/Classes/Games/MultiplicationBoard/MultiplicationBoardInfo.cpp | JaagaLabs/GLEXP-Team-KitkitSchool | f94ea3e53bd05fdeb2a9edcc574bc054e575ecc0 | [
"Apache-2.0"
] | 45 | 2019-05-16T20:49:31.000Z | 2021-11-05T21:40:54.000Z | mainapp/Classes/Games/MultiplicationBoard/MultiplicationBoardInfo.cpp | rdsmarketing/GLEXP-Team-KitkitSchool | 6ed6b76d17fd7560abc35dcdf7cf4a44ce70745e | [
"Apache-2.0"
] | 10 | 2019-05-17T13:38:22.000Z | 2021-07-31T19:38:27.000Z | mainapp/Classes/Games/MultiplicationBoard/MultiplicationBoardInfo.cpp | rdsmarketing/GLEXP-Team-KitkitSchool | 6ed6b76d17fd7560abc35dcdf7cf4a44ce70745e | [
"Apache-2.0"
] | 29 | 2019-05-16T17:49:26.000Z | 2021-12-30T16:36:24.000Z | //
// MultiplicationBoardInfo.cpp
// KitkitSchool
//
// Created by harunom on 7/22/18.
//
#include "MultiplicationBoardInfo.hpp"
#include "Utils/TodoUtil.h"
std::vector<std::string> MultiplicationBoardInfo::enumerateLevelIDs()
{
vector<std::string> ddLevels;
//tsv 데이터 파일에서 제일 높은 레벨을 가져온다.
int ma... | 20.12766 | 78 | 0.623679 | [
"vector"
] |
862f11f551a73232ce9821bb7fbac7ae62cb7b7e | 3,501 | cpp | C++ | algorithms-and-data-structures/strings/f_lcs.cpp | nothingelsematters/university | 5561969b1b11678228aaf7e6660e8b1a93d10294 | [
"WTFPL"
] | 1 | 2018-06-03T17:48:50.000Z | 2018-06-03T17:48:50.000Z | algorithms-and-data-structures/strings/f_lcs.cpp | nothingelsematters/University | b1e188cb59e5a436731b92c914494626a99e1ae0 | [
"WTFPL"
] | null | null | null | algorithms-and-data-structures/strings/f_lcs.cpp | nothingelsematters/University | b1e188cb59e5a436731b92c914494626a99e1ae0 | [
"WTFPL"
] | 14 | 2019-04-07T21:27:09.000Z | 2021-12-05T13:37:25.000Z | #include <iostream>
#include <map>
#include <vector>
struct Vertex {
int length;
int suf_link;
int counted = -1;
std::string res;
std::map<char, int> trans;
};
struct SufTree {
SufTree() {
vertexes.push_back(Vertex());
vertexes.back().length = 0;
vertexes.back().suf_lin... | 29.420168 | 101 | 0.48529 | [
"vector"
] |
863eb72c5afb4c96ecd7053a3b3a76ea6ccc89c3 | 9,697 | cpp | C++ | lib/curlpipe/http.cpp | joewiz/curlpipe | e969d69bd156869f0ebdee85eed7cc8529c3e10e | [
"MIT"
] | 4 | 2019-03-08T19:56:41.000Z | 2022-03-11T09:55:48.000Z | lib/curlpipe/http.cpp | joewiz/curlpipe | e969d69bd156869f0ebdee85eed7cc8529c3e10e | [
"MIT"
] | 5 | 2018-11-22T16:11:32.000Z | 2018-11-23T13:01:32.000Z | lib/curlpipe/http.cpp | xquery/curlscript | b5a745ae481f578044b6c6016442b2f4620a0156 | [
"MIT"
] | 1 | 2018-11-22T15:49:26.000Z | 2018-11-22T15:49:26.000Z | /******************************************************************************
* curlpipe - https://github.com/xquery/curlpipe
******************************************************************************
* Copyright (c) 2017-2018 James Fuller <jim.fuller@webcomposite.com>
*
* Permission is hereby granted, free ... | 31.080128 | 101 | 0.611529 | [
"vector"
] |
8641f3bc3a9ee0eda1eb9f999e3bb93d7e7d1de6 | 451 | cpp | C++ | EOlymp/00008.cpp | vdshk/algos | 8896c9edd30225acbdb51fa2e9760c0cc4adf307 | [
"MIT"
] | null | null | null | EOlymp/00008.cpp | vdshk/algos | 8896c9edd30225acbdb51fa2e9760c0cc4adf307 | [
"MIT"
] | null | null | null | EOlymp/00008.cpp | vdshk/algos | 8896c9edd30225acbdb51fa2e9760c0cc4adf307 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define len(a) (int)a.size()
using namespace std;
typedef vector<int> vint;
typedef long double ld;
typedef long long ll;
typedef string str;
int main() {
ios_b... | 18.791667 | 42 | 0.611973 | [
"vector"
] |
86448a17e46dda4d94698fad1eb6145f7d8f2ea1 | 31,579 | cxx | C++ | arrows/serialize/protobuf/tests/test_convert_protobuf.cxx | chetnieter/kwiver | cebc8156b5109d423ffac34f6e4bb442d36c24ab | [
"BSD-3-Clause"
] | 176 | 2015-07-31T23:33:37.000Z | 2022-03-21T23:42:44.000Z | arrows/serialize/protobuf/tests/test_convert_protobuf.cxx | chetnieter/kwiver | cebc8156b5109d423ffac34f6e4bb442d36c24ab | [
"BSD-3-Clause"
] | 1,276 | 2015-05-03T01:21:27.000Z | 2022-03-31T15:32:20.000Z | arrows/serialize/protobuf/tests/test_convert_protobuf.cxx | chetnieter/kwiver | cebc8156b5109d423ffac34f6e4bb442d36c24ab | [
"BSD-3-Clause"
] | 85 | 2015-01-25T05:13:38.000Z | 2022-01-14T14:59:37.000Z | // This file is part of KWIVER, and is distributed under the
// OSI-approved BSD 3-Clause License. See top-level LICENSE file or
// https://github.com/Kitware/kwiver/blob/master/LICENSE for details.
#include <gtest/gtest.h>
#include <arrows/serialize/protobuf/convert_protobuf.h>
#include <arrows/serialize/protobuf/co... | 34.287731 | 109 | 0.617689 | [
"object",
"vector",
"3d"
] |
86457ee4591d1908e2b4490f19ef938d9fcfcf94 | 15,670 | cpp | C++ | dockerfiles/gaas_tutorial_2/GAAS/software/SLAM/ygz_slam_ros/Thirdparty/PCL/visualization/tools/real_sense_viewer.cpp | hddxds/scripts_from_gi | afb8977c001b860335f9062464e600d9115ea56e | [
"Apache-2.0"
] | 2 | 2019-04-10T14:04:52.000Z | 2019-05-29T03:41:58.000Z | software/SLAM/ygz_slam_ros/Thirdparty/PCL/visualization/tools/real_sense_viewer.cpp | glider54321/GAAS | 5c3b8c684e72fdf7f62c5731a260021e741069e7 | [
"BSD-3-Clause"
] | null | null | null | software/SLAM/ygz_slam_ros/Thirdparty/PCL/visualization/tools/real_sense_viewer.cpp | glider54321/GAAS | 5c3b8c684e72fdf7f62c5731a260021e741069e7 | [
"BSD-3-Clause"
] | 1 | 2021-12-20T06:54:41.000Z | 2021-12-20T06:54:41.000Z | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2015-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | 38.126521 | 171 | 0.575175 | [
"vector"
] |
864a30f9d793dd969440e9597496bed9d50ebadb | 37,673 | cpp | C++ | src/las.cpp | Helios-vmg/cppserialization | 01333f20758e3ef62dbb78fd182f86e6b403ff8a | [
"Unlicense"
] | 1 | 2016-04-28T10:03:24.000Z | 2016-04-28T10:03:24.000Z | src/las.cpp | Helios-vmg/cppserialization | 01333f20758e3ef62dbb78fd182f86e6b403ff8a | [
"Unlicense"
] | null | null | null | src/las.cpp | Helios-vmg/cppserialization | 01333f20758e3ef62dbb78fd182f86e6b403ff8a | [
"Unlicense"
] | 1 | 2020-06-27T01:39:14.000Z | 2020-06-27T01:39:14.000Z | #include "stdafx.h"
#include "las.h"
#include "util.h"
#include "variable_formatter.h"
#include "typehash.h"
#include "GenericException.h"
#ifndef HAVE_PRECOMPILED_HEADERS
#include <fstream>
#include <sstream>
#include <array>
#include <iomanip>
#include <cctype>
#endif
std::mt19937_64 rng;
std::uint64_... | 30.553933 | 176 | 0.604252 | [
"object",
"vector"
] |
8650c177f67ea2395b17d0dd1cc72c1ce48a8330 | 6,331 | cc | C++ | src/Foundational/iwbits/tbic.cc | michaelweiss092/LillyMol | a2b7d1d8a07ef338c754a0a2e3b2624aac694cc9 | [
"Apache-2.0"
] | 53 | 2018-06-01T13:16:15.000Z | 2022-02-23T21:04:28.000Z | src/Foundational/iwbits/tbic.cc | IanAWatson/LillyMol-4.0-Bazel | f38f23a919c622c31280222f8a90e6ab7d871b93 | [
"Apache-2.0"
] | 19 | 2018-08-14T13:43:18.000Z | 2021-09-24T12:53:11.000Z | src/Foundational/iwbits/tbic.cc | IanAWatson/LillyMol-4.0-Bazel | f38f23a919c622c31280222f8a90e6ab7d871b93 | [
"Apache-2.0"
] | 19 | 2018-10-23T19:41:01.000Z | 2022-02-17T08:14:00.000Z | /*
Mostly a timing tester for bits in common
*/
#include <stdlib.h>
#include <values.h>
#ifdef linux
#else
#include <limits.h>
#endif
#include <iomanip>
#include "cmdline.h"
#include "iwbits.h"
#include "iwrandom.h"
static int verbose = 0;
/*
To replicate bit densities encountered in real life, we may want to... | 21.033223 | 149 | 0.583162 | [
"vector"
] |
865936e2ed751addbc7a42854973e66718948d67 | 10,975 | cxx | C++ | panda/src/android/android_main.cxx | sean5470/panda3d | ea2d4fecd4af1d4064c5fe2ae2a902ef4c9b903d | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | panda/src/android/android_main.cxx | sean5470/panda3d | ea2d4fecd4af1d4064c5fe2ae2a902ef4c9b903d | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | panda/src/android/android_main.cxx | sean5470/panda3d | ea2d4fecd4af1d4064c5fe2ae2a902ef4c9b903d | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | /**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file android_main.cxx
* @au... | 35.983607 | 123 | 0.66861 | [
"object",
"vector",
"model",
"3d"
] |
865c4e2f956bd65bd993e4f95e46fb5f5d106695 | 2,667 | hpp | C++ | ppcnn/ppcnn_server/cnn/load_model.hpp | mt-st1/PP-CNN2 | a35caf4aa3081342b48556305f2b0574a3d68800 | [
"Apache-2.0"
] | 19 | 2020-09-28T20:53:20.000Z | 2022-03-14T06:22:26.000Z | ppcnn/ppcnn_server/cnn/load_model.hpp | mt-st1/PP-CNN2 | a35caf4aa3081342b48556305f2b0574a3d68800 | [
"Apache-2.0"
] | null | null | null | ppcnn/ppcnn_server/cnn/load_model.hpp | mt-st1/PP-CNN2 | a35caf4aa3081342b48556305f2b0574a3d68800 | [
"Apache-2.0"
] | 8 | 2020-09-28T20:53:26.000Z | 2022-02-15T13:52:41.000Z | /*
* Copyright 2020 Yamana Laboratory, Waseda University
* Supported by JST CREST Grant Number JPMJCR1503, Japan.
*
* 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... | 41.030769 | 79 | 0.657293 | [
"object"
] |
865fec785664cca9015ee22d1cf4a8f6c847cc7c | 2,768 | cpp | C++ | uva/volume-003/mapmaker.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | uva/volume-003/mapmaker.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | uva/volume-003/mapmaker.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
struct Array
{
unsigned int base_address;
unsigned int dimensions;
unsigned int element_size;
... | 19.356643 | 78 | 0.569725 | [
"vector"
] |
8661bfb50d529a2b9fcc894275b392bbb222767d | 1,113 | cpp | C++ | main.cpp | ArionasMC/Asteroids | b5a81f833af1615ede2706bfe41baa8b661fa209 | [
"Apache-2.0"
] | null | null | null | main.cpp | ArionasMC/Asteroids | b5a81f833af1615ede2706bfe41baa8b661fa209 | [
"Apache-2.0"
] | null | null | null | main.cpp | ArionasMC/Asteroids | b5a81f833af1615ede2706bfe41baa8b661fa209 | [
"Apache-2.0"
] | null | null | null | #include "SDL.h"
#include "Game.h"
#include <iostream>
#include <fstream>
#include <sys/stat.h>
using namespace std;
bool fileExists(const std::string& file);
Game *game = NULL;
const char* version = "v0.3";
const char* name = "Asteroids ";
int main(int argc, char *argv[])
{
const int FPS = 60;
... | 19.189655 | 49 | 0.592992 | [
"render"
] |
8665f8356c735a4ce6a6c2685bc96e6c91c18153 | 13,530 | cpp | C++ | imagesearch-20200212/cpp/src/image_search_20200212.cpp | alibabacloud-sdk-swift/alibabacloud-sdk | afd43b41530abb899076a34ceb96bdef55f74460 | [
"Apache-2.0"
] | null | null | null | imagesearch-20200212/cpp/src/image_search_20200212.cpp | alibabacloud-sdk-swift/alibabacloud-sdk | afd43b41530abb899076a34ceb96bdef55f74460 | [
"Apache-2.0"
] | null | null | null | imagesearch-20200212/cpp/src/image_search_20200212.cpp | alibabacloud-sdk-swift/alibabacloud-sdk | afd43b41530abb899076a34ceb96bdef55f74460 | [
"Apache-2.0"
] | null | null | null | // This file is auto-generated, don't edit it. Thanks.
#include <alibabacloud/image_search_20200212.hpp>
#include <alibabacloud/endpoint_util.hpp>
#include <alibabacloud/open_platform_20191219.hpp>
#include <alibabacloud/oss.hpp>
#include <alibabacloud/ossutil.hpp>
#include <alibabacloud/rpc.hpp>
#include <alibabaclou... | 73.934426 | 283 | 0.741981 | [
"vector"
] |
86684e254f00685024e8fc8ab430d48903790557 | 1,254 | hpp | C++ | src/percept/mesh/mod/smoother/SpacingFieldUtil.hpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 3 | 2017-08-08T21:06:02.000Z | 2020-01-08T13:23:36.000Z | src/percept/mesh/mod/smoother/SpacingFieldUtil.hpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2016-12-17T00:18:56.000Z | 2019-08-09T15:29:25.000Z | src/percept/mesh/mod/smoother/SpacingFieldUtil.hpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2017-11-30T07:02:41.000Z | 2019-08-05T17:07:04.000Z | // Copyright 2002 - 2008, 2010, 2011 National Technology Engineering
// Solutions of Sandia, LLC (NTESS). Under the terms of Contract
// DE-NA0003525 with NTESS, the U.S. Government retains certain rights
// in this software.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the L... | 30.585366 | 128 | 0.725678 | [
"mesh",
"vector"
] |
866a5c5c3437b5de9c3ebc4486d89a39ff053ed3 | 4,680 | cc | C++ | src/camera/lib/fake_camera/fake_camera_impl.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | src/camera/lib/fake_camera/fake_camera_impl.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | src/camera/lib/fake_camera/fake_camera_impl.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/camera/lib/fake_camera/fake_camera_impl.h"
#include <lib/async-loop/default.h>
#include <lib/async/cpp/task.h>
#include <lib/fit/function.h>... | 32.957746 | 99 | 0.743803 | [
"vector"
] |
866d24d10669e6a13da7edca5e1f9191a5a4c52f | 5,670 | cpp | C++ | 3rdparty/opencv-git/modules/features2d/src/detectors.cpp | luoyongheng/dtslam | d3c2230d45db14c811eff6fd43e119ac39af1352 | [
"BSD-3-Clause"
] | 144 | 2015-01-15T03:38:44.000Z | 2022-02-17T09:07:52.000Z | 3rdparty/opencv-git/modules/features2d/src/detectors.cpp | luoyongheng/dtslam | d3c2230d45db14c811eff6fd43e119ac39af1352 | [
"BSD-3-Clause"
] | 9 | 2015-09-09T06:51:46.000Z | 2020-06-17T14:10:10.000Z | 3rdparty/opencv-git/modules/features2d/src/detectors.cpp | luoyongheng/dtslam | d3c2230d45db14c811eff6fd43e119ac39af1352 | [
"BSD-3-Clause"
] | 58 | 2015-01-14T23:43:49.000Z | 2021-11-15T05:19:08.000Z | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 35 | 119 | 0.672487 | [
"vector"
] |
86712f9a66bf8a71ac58b22b15cad8f855fa13b7 | 471 | cpp | C++ | 0137-single-number-ii.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | 106 | 2019-06-08T15:23:45.000Z | 2020-04-04T17:56:54.000Z | 0137-single-number-ii.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | null | null | null | 0137-single-number-ii.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | 3 | 2019-07-13T05:51:29.000Z | 2020-04-04T17:56:57.000Z | class Solution {
public:
int singleNumber(vector<int>& nums) {
int tracking_a = 0, tracking_b = 0;
for (int i = 0; i < nums.size(); ++i) {
int for_tracking_b = tracking_a & nums[i];
int to_reset = tracking_a & tracking_b & nums[i];
tracking_a |= nums[i];
... | 29.4375 | 61 | 0.528662 | [
"vector"
] |
8675b59c409389fc4d44aa3158b3543c363f7814 | 9,190 | cpp | C++ | third_party/omr/fvtest/compilertriltest/SimplifierFoldAbsNegTest.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/fvtest/compilertriltest/SimplifierFoldAbsNegTest.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/fvtest/compilertriltest/SimplifierFoldAbsNegTest.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2017, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... | 37.81893 | 138 | 0.597933 | [
"vector"
] |
869979794696bf11f2a2dedb3e79b72aa3d2093d | 28,725 | cpp | C++ | extract_misc/brainvisa_ext/RII_Struct3D-4.1.0/RicCorticalThicknessByNormal/src/GM_Normal.cpp | binarybottle/mindboggle_sidelined | 1431d4877f4ceae384486fb66798bc22e6471af7 | [
"Apache-2.0"
] | 3 | 2019-07-20T05:36:03.000Z | 2020-12-23T07:47:43.000Z | extract_misc/brainvisa_ext/RII_Struct3D-4.1.0/RicCorticalThicknessByNormal/src/GM_Normal.cpp | binarybottle/mindboggle_sidelined | 1431d4877f4ceae384486fb66798bc22e6471af7 | [
"Apache-2.0"
] | 2 | 2020-11-30T10:18:42.000Z | 2020-12-24T06:29:47.000Z | extract_misc/brainvisa_ext/RII_Struct3D-4.1.0/RicCorticalThicknessByNormal/src/GM_Normal.cpp | binarybottle/mindboggle_sidelined | 1431d4877f4ceae384486fb66798bc22e6471af7 | [
"Apache-2.0"
] | null | null | null | // --------------------------- GM_Normal.cpp ---------------------------------
/**
\file
Routines to find the distance between two meshes by intersecting
normals from one mesh with triangles of the other.
Copyright (C) 2007 by Bill Rogers, Research Imaging Center, UTHSCSA
rogers@uthscsa.edu
*/
#include "RicMesh.h"
#... | 33.994083 | 95 | 0.655701 | [
"mesh",
"vector"
] |
86a262808b08377b8448f9d7ff11deb9daeb2f2f | 1,306 | cpp | C++ | examples/example5.cpp | mambaru/wjson | 48de30f1247564ab16c93fc824a14b182145ff90 | [
"MIT"
] | 21 | 2016-09-29T10:25:12.000Z | 2020-07-07T23:19:51.000Z | examples/example5.cpp | mambaru/wjson | 48de30f1247564ab16c93fc824a14b182145ff90 | [
"MIT"
] | 10 | 2016-11-17T09:09:35.000Z | 2021-10-03T11:47:18.000Z | examples/example5.cpp | mambaru/wjson | 48de30f1247564ab16c93fc824a14b182145ff90 | [
"MIT"
] | 6 | 2016-09-29T12:05:06.000Z | 2022-02-17T13:05:18.000Z | #include <wjson/json.hpp>
#include <wjson/strerror.hpp>
#include <iostream>
int main()
{
// Одномерный массив
typedef wjson::value<int> int_json;
typedef std::vector<int> vint_t;
typedef wjson::array< std::vector<int_json> > vint_json;
std::string json="[ 1,\t2,\r3,\n4, /*пять*/ 5 ]";
vint_t vint;
v... | 33.487179 | 75 | 0.649311 | [
"vector"
] |
86a69e52a03593aa2883684eb4d2678262d87267 | 32,574 | cpp | C++ | com/netfx/src/clr/utilcode/md5.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/netfx/src/clr/utilcode/md5.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/netfx/src/clr/utilcode/md5.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
//
// md5.cpp
//
#include "stdafx.h"
#include <stdlib.h>
#include <wtypes.h>
#include "md5.h"
void MD5::Init(BOOL fConstructed)
{
// These two fields are read only, and so initialization thereof can be ... | 36.848416 | 108 | 0.370357 | [
"transform"
] |
86b47410cc6753ecf36aa8348934604e6c72911d | 1,297 | cpp | C++ | src/active.cpp | robertblackwell/node-addon-example | 05a5949dbe6c8279e4d5b612134a475690971556 | [
"MIT"
] | null | null | null | src/active.cpp | robertblackwell/node-addon-example | 05a5949dbe6c8279e4d5b612134a475690971556 | [
"MIT"
] | null | null | null | src/active.cpp | robertblackwell/node-addon-example | 05a5949dbe6c8279e4d5b612134a475690971556 | [
"MIT"
] | null | null | null |
#include "active.h"
#include "CoreFoundation/CoreFoundation.h"
#include "CoreServices/CoreServices.h"
#include "check.h"
#include <algorithm>
#include <assert.h>
#include <iostream>
#include <memory>
#include <napi.h>
#include <node_api.h>
#include <stdio.h>
#include <string>
#include <vector>
typedef std::vector<Cal... | 24.942308 | 109 | 0.703932 | [
"vector"
] |
86b70f2b59d5d3e2b08fb5c31039aa9a3b1fa465 | 827 | cpp | C++ | Codility_MissingInteger.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | 1 | 2021-01-31T22:59:59.000Z | 2021-01-31T22:59:59.000Z | Codility_MissingInteger.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | null | null | null | Codility_MissingInteger.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <assert.h>
#include <math.h>
#include <vector>
#include <algorithm>
#include <numeric>
using namespace std;
int solution(vector<int> &A)
{
vector<int> incr(100000u,0u);
vector<int> mask(100000u,1u);
vector<int> result;
std::partial_sum(mask.begin(),mask.end(),incr.begin()... | 17.595745 | 95 | 0.586457 | [
"vector"
] |
86b90f7b1d5b782423b904d9e5ffb81e5b19b3f7 | 2,346 | cpp | C++ | src/mock/shelly_mock_rpc_service.cpp | timoschilling/shelly-homekit | c8923b3f82608a725e14734929d6b37b9472e96f | [
"Apache-2.0"
] | 1,061 | 2020-02-05T10:21:19.000Z | 2022-03-30T14:10:08.000Z | src/mock/shelly_mock_rpc_service.cpp | timoschilling/shelly-homekit | c8923b3f82608a725e14734929d6b37b9472e96f | [
"Apache-2.0"
] | 867 | 2020-02-05T15:47:10.000Z | 2022-03-31T23:17:40.000Z | src/mock/shelly_mock_rpc_service.cpp | timoschilling/shelly-homekit | c8923b3f82608a725e14734929d6b37b9472e96f | [
"Apache-2.0"
] | 119 | 2020-02-09T10:01:27.000Z | 2022-03-31T08:35:21.000Z | /*
* Copyright (c) Shelly-HomeKit Contributors
* 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 re... | 30.467532 | 79 | 0.652174 | [
"vector"
] |
86bda81b8bd4f1f2d81bb860c612b3f4606b84b7 | 1,343 | cpp | C++ | Codes/leetcode-with-errichto/may-challange/failed-29CourseSchedule.cpp | fahimfarhan/legendary-coding-odyssey | 55289e05aa04f866201c607bed00c505cd9c4df9 | [
"MIT"
] | 3 | 2019-07-20T07:26:31.000Z | 2020-08-06T09:31:09.000Z | Codes/leetcode-with-errichto/may-challange/failed-29CourseSchedule.cpp | fahimfarhan/legendary-coding-odyssey | 55289e05aa04f866201c607bed00c505cd9c4df9 | [
"MIT"
] | null | null | null | Codes/leetcode-with-errichto/may-challange/failed-29CourseSchedule.cpp | fahimfarhan/legendary-coding-odyssey | 55289e05aa04f866201c607bed00c505cd9c4df9 | [
"MIT"
] | 4 | 2019-06-20T18:43:32.000Z | 2020-10-07T16:45:23.000Z | #include <bits/stdc++.h>
using namespace std;
class Solution {
int n, end;
int *g;
public:
bool canFinish(int numCourses, vector<vector<int>>& prerequisites) {
// best guess input = vector<pair<int,int> >dekhte jerokom, thik seirokom
this->n = numCourses;
g = new int[numC... | 24.87037 | 81 | 0.443038 | [
"vector"
] |
86c274376ce63dd1206371259649dad22ec93967 | 1,261 | cpp | C++ | src/readQ.cpp | despargy/KukaImplementation-kinetic | 3a9ab106b117acfc6478fbf3e60e49b7e94b2722 | [
"MIT"
] | 1 | 2021-08-21T12:49:27.000Z | 2021-08-21T12:49:27.000Z | src/readQ.cpp | despargy/KukaImplementation-kinetic | 3a9ab106b117acfc6478fbf3e60e49b7e94b2722 | [
"MIT"
] | null | null | null | src/readQ.cpp | despargy/KukaImplementation-kinetic | 3a9ab106b117acfc6478fbf3e60e49b7e94b2722 | [
"MIT"
] | null | null | null | #include <fstream>
#include <vector>
#include <cstdlib>
#include <iostream>
#include <armadillo>
using namespace arma;
using namespace std;
mat readQ()
{
/* read */
// std::ifstream ifile("Collector/posmat.txt", std::ios::in);
std::ifstream ifile("Collector/posCollected_cut.txt", std::ios::in);
std::v... | 22.122807 | 72 | 0.527359 | [
"vector"
] |
86c7682bfaa4caed1caa84220fac691e3c0a5177 | 7,394 | cpp | C++ | menus.cpp | DaemonToolz/locuste.system.connector | b7b28f2b225d97a8c2aa723964a4183fe1893f7d | [
"MIT"
] | null | null | null | menus.cpp | DaemonToolz/locuste.system.connector | b7b28f2b225d97a8c2aa723964a4183fe1893f7d | [
"MIT"
] | null | null | null | menus.cpp | DaemonToolz/locuste.system.connector | b7b28f2b225d97a8c2aa723964a4183fe1893f7d | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <termios.h>
#include <unistd.h>
#include <vector>
#include <string>
#include <map>
#include <sstream>
#include <iterator>
#include <algorithm>
#include <regex>
#include <stdlib.h>
#include <sys/types.h>
#include <signal.h>
#include "./globals.h"
#include "./pipes/PipeHandler.h"
using name... | 28.438462 | 209 | 0.603733 | [
"vector"
] |
f86fa4a7a99a5aa8c1d259f208aa0c17edfe523c | 3,100 | hpp | C++ | lib/include/common/Ini.hpp | bielskij/altair-emu | 49463fd0fcacd70540fd6aa880dfc7cef0ad958d | [
"MIT"
] | null | null | null | lib/include/common/Ini.hpp | bielskij/altair-emu | 49463fd0fcacd70540fd6aa880dfc7cef0ad958d | [
"MIT"
] | null | null | null | lib/include/common/Ini.hpp | bielskij/altair-emu | 49463fd0fcacd70540fd6aa880dfc7cef0ad958d | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2020 Jaroslaw Bielski (bielski.j@gmail.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the r... | 26.495726 | 81 | 0.66 | [
"vector"
] |
f8717286c6a442984a0cf9105ec724810e1fb98d | 5,017 | cpp | C++ | Tools/Pipeline/DegenerateMesh.cpp | LukaszByczynski/tbl-4edges | 11f8c2a1e40271c542321d9d4d0e4ed24cce92c8 | [
"MIT"
] | 21 | 2015-07-19T13:47:17.000Z | 2022-03-13T11:13:28.000Z | Tools/Pipeline/DegenerateMesh.cpp | theblacklotus/4edges | 11f8c2a1e40271c542321d9d4d0e4ed24cce92c8 | [
"MIT"
] | 1 | 2018-03-24T17:54:49.000Z | 2018-03-24T17:57:01.000Z | Tools/Pipeline/DegenerateMesh.cpp | jsvennevid/tbl-4edges | 11f8c2a1e40271c542321d9d4d0e4ed24cce92c8 | [
"MIT"
] | 2 | 2019-02-07T20:42:13.000Z | 2021-02-10T07:09:47.000Z | /*
Copyright (c) 2004-2006 Jesper Svennevid, Daniel Collin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge... | 29.511765 | 119 | 0.615707 | [
"mesh",
"object",
"shape"
] |
f875245f4ae208628d61b53e612dae59bdd40e49 | 1,221 | cpp | C++ | SPOJ/SPOJ/robot.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | SPOJ/SPOJ/robot.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | SPOJ/SPOJ/robot.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <climits>
#include <cassert>
#include <iomanip>
#include <vector>
#include <utility>
#include <map>
#include <set>
#include <list>
#include <stack>
#include <queue>
#include <deque>
#include <bitset>
#include <complex>... | 18.784615 | 36 | 0.488124 | [
"vector"
] |
f877cb4809d006fe9cf0d2669644fdaf2cb3830a | 1,934 | cpp | C++ | socialNetwork/gen-cpp/UserTimelineService_server.skeleton.cpp | rodrigo-bruno/DeathStarBench | c9ce09aaf7c1298a7c88efacd1010a71db0fa59d | [
"Apache-2.0"
] | 364 | 2019-04-28T01:45:37.000Z | 2022-03-31T15:08:03.000Z | socialNetwork/gen-cpp/UserTimelineService_server.skeleton.cpp | rodrigo-bruno/DeathStarBench | c9ce09aaf7c1298a7c88efacd1010a71db0fa59d | [
"Apache-2.0"
] | 111 | 2019-04-15T11:08:49.000Z | 2022-03-31T17:39:16.000Z | socialNetwork/gen-cpp/UserTimelineService_server.skeleton.cpp | rodrigo-bruno/DeathStarBench | c9ce09aaf7c1298a7c88efacd1010a71db0fa59d | [
"Apache-2.0"
] | 229 | 2019-05-14T08:55:57.000Z | 2022-03-31T03:14:55.000Z | // This autogenerated skeleton file illustrates how to build a server.
// You should copy it to another filename to avoid overwriting it.
#include "UserTimelineService.h"
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/server/TSimpleServer.h>
#include <thrift/transport/TServerSocket.h>
#include <thrift/t... | 40.291667 | 192 | 0.770941 | [
"vector"
] |
f87840d967620a9725080c20b4e4fbba8a16f8f6 | 2,555 | cpp | C++ | casbin/util/builtin_operators.cpp | romitkarmakar/casbin-cpp | eed706b1171685f321311c6d14b365f72777989c | [
"Apache-2.0"
] | null | null | null | casbin/util/builtin_operators.cpp | romitkarmakar/casbin-cpp | eed706b1171685f321311c6d14b365f72777989c | [
"Apache-2.0"
] | null | null | null | casbin/util/builtin_operators.cpp | romitkarmakar/casbin-cpp | eed706b1171685f321311c6d14b365f72777989c | [
"Apache-2.0"
] | null | null | null | #include "builtin_operators.h"
bool key_match(string arg1, string arg2)
{
arg2 = trim(arg2);
arg1 = trim(arg1);
auto arg2arr = split(arg2, '/');
auto arg1arr = split(arg1, '/');
auto itr = arg2arr.begin();
int i = 0;
while (itr != arg2arr.end())
{
if (*itr == "*")
{
i++;
++itr;
continue;
}
i... | 17.992958 | 91 | 0.603523 | [
"vector"
] |
f87ce0d7aacff93d0213f47a87a6e9a7bf543cef | 7,423 | cpp | C++ | src/ethereum/ethereum.cpp | vpubchain/syscoin | 72af49f24d2f4dd3628fd3ca8f7e3415534f55c8 | [
"MIT"
] | 1 | 2020-02-09T21:15:36.000Z | 2020-02-09T21:15:36.000Z | src/ethereum/ethereum.cpp | vpubchain/syscoin | 72af49f24d2f4dd3628fd3ca8f7e3415534f55c8 | [
"MIT"
] | null | null | null | src/ethereum/ethereum.cpp | vpubchain/syscoin | 72af49f24d2f4dd3628fd3ca8f7e3415534f55c8 | [
"MIT"
] | 1 | 2021-12-01T07:18:04.000Z | 2021-12-01T07:18:04.000Z | // Copyright (c) 2019 The Syscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <uint256.h>
#include <arith_uint256.h>
#include <ethereum/ethereum.h>
#include <ethereum/sha3.h>
#include <services/witne... | 42.66092 | 298 | 0.659033 | [
"vector"
] |
f883d0bb27360f18bd6dbb2a3204cef40dacb5ee | 1,008 | cpp | C++ | 05-Code-Organization-Cpp-Templates/05. Demos/05. HeaderAndSourceFiles/Company.cpp | KostadinovK/Cpp-Advanced | ae2ef3185baecc887dcd231dec900cf8c7da44c9 | [
"Apache-2.0"
] | null | null | null | 05-Code-Organization-Cpp-Templates/05. Demos/05. HeaderAndSourceFiles/Company.cpp | KostadinovK/Cpp-Advanced | ae2ef3185baecc887dcd231dec900cf8c7da44c9 | [
"Apache-2.0"
] | null | null | null | 05-Code-Organization-Cpp-Templates/05. Demos/05. HeaderAndSourceFiles/Company.cpp | KostadinovK/Cpp-Advanced | ae2ef3185baecc887dcd231dec900cf8c7da44c9 | [
"Apache-2.0"
] | null | null | null | #include "Company.h"
#include <sstream>
Company::Company(int id, std::string name, std::vector<std::pair<char, char> > employees)
: id(id)
, name(name)
, employees(employees) {}
int Company::getId() const {
return this->id;
}
std::string Company::getName() const {
return this->name;
}
std::vector<std::pair<cha... | 21 | 89 | 0.646825 | [
"vector"
] |
f88628d0ea5a7da8b2a56abb369ec032c485b474 | 60,938 | hpp | C++ | include/universal/number/integer/integer_impl.hpp | FloEdelmann/universal | c5b83f251ad91229399b7f97e4eeefcf718819d4 | [
"MIT"
] | null | null | null | include/universal/number/integer/integer_impl.hpp | FloEdelmann/universal | c5b83f251ad91229399b7f97e4eeefcf718819d4 | [
"MIT"
] | null | null | null | include/universal/number/integer/integer_impl.hpp | FloEdelmann/universal | c5b83f251ad91229399b7f97e4eeefcf718819d4 | [
"MIT"
] | null | null | null | #pragma once
// integer_impl.hpp: implementation of a fixed-size arbitrary integer precision number
//
// Copyright (C) 2017-2022 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <string>
#include <sstream>
#include <i... | 37.044377 | 208 | 0.670928 | [
"vector",
"transform"
] |
f8867abd2f4fcf409bf408a0e40d5d1f60128fea | 18,380 | cc | C++ | chrome/browser/chromeos/power/cpu_data_collector.cc | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | chrome/browser/chromeos/power/cpu_data_collector.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | chrome/browser/chromeos/power/cpu_data_collector.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/power/cpu_data_collector.h"
#include <stddef.h>
#include <vector>
#include "base/bind.h"
#include "base/files/file_ut... | 40.663717 | 80 | 0.675027 | [
"vector"
] |
f88ee03a72b6df071db5f126a8dfb8510c302241 | 852 | hpp | C++ | src/leader/ileader_connections.hpp | mrc-g/FogMon | dc040e5566d4fa6b0fca80fb46767f40f19b7c2e | [
"MIT"
] | 7 | 2019-05-08T08:25:40.000Z | 2021-06-19T10:42:56.000Z | src/leader/ileader_connections.hpp | mrc-g/FogMon | dc040e5566d4fa6b0fca80fb46767f40f19b7c2e | [
"MIT"
] | 5 | 2020-03-07T15:24:27.000Z | 2022-03-12T00:49:53.000Z | src/leader/ileader_connections.hpp | mrc-g/FogMon | dc040e5566d4fa6b0fca80fb46767f40f19b7c2e | [
"MIT"
] | 4 | 2020-03-05T17:05:42.000Z | 2021-11-21T16:00:56.000Z | #ifndef ILEADER_CONNECTIONS_HPP_
#define ILEADER_CONNECTIONS_HPP_
#include "connections.hpp"
class ILeader;
class ILeaderConnections : virtual public IConnections {
public:
virtual void initialize(ILeader* parent) = 0;
virtual bool sendMHello(Message::node ip) = 0;
virtual bool sendRemoveNodes(std:... | 32.769231 | 89 | 0.747653 | [
"vector"
] |
f8914e352f3ab52dc0011fc5deddb3b526358892 | 2,790 | hpp | C++ | include/arrowhead/detail/_service_json.hpp | gebart/arrowhead | 03c0edd81e76c0700ab7900e5d0bf7c1825b3065 | [
"Apache-2.0"
] | null | null | null | include/arrowhead/detail/_service_json.hpp | gebart/arrowhead | 03c0edd81e76c0700ab7900e5d0bf7c1825b3065 | [
"Apache-2.0"
] | null | null | null | include/arrowhead/detail/_service_json.hpp | gebart/arrowhead | 03c0edd81e76c0700ab7900e5d0bf7c1825b3065 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2015-2016 Fotonic
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.e... | 24.690265 | 78 | 0.717204 | [
"object"
] |
f894bf135ae3c3f0d5ede4c7cc5cdc762e5fe7eb | 994 | cpp | C++ | kittens-imgui/core/midicontrol.cpp | christiancrowle/kittens | 180c77307629e8752b61df4ff3195f3c80131e11 | [
"MIT"
] | null | null | null | kittens-imgui/core/midicontrol.cpp | christiancrowle/kittens | 180c77307629e8752b61df4ff3195f3c80131e11 | [
"MIT"
] | null | null | null | kittens-imgui/core/midicontrol.cpp | christiancrowle/kittens | 180c77307629e8752b61df4ff3195f3c80131e11 | [
"MIT"
] | null | null | null | //
// Created by devbat on 6/26/20.
//
#include "midicontrol.h"
namespace Kittens::Core {
std::vector<std::string> MidiDevice::get_port_names() {
int count = this->get_num_out_ports();
std::vector<std::string> out;
if (count > 0) {
for (int i = 0; i < count; i++) {
out.push_back(this-... | 22.590909 | 66 | 0.622736 | [
"vector"
] |
f898a8b072c5a8a5a5d431f864851cb96175f891 | 3,938 | cpp | C++ | src/VideoStreaming/gstqtvideosink/delegates/qtquick2videosinkdelegate.cpp | matthiasnattke/qgroundcontrol | 9f87623a1598529a7bf24ab1122d409d02a0aed5 | [
"Apache-2.0"
] | null | null | null | src/VideoStreaming/gstqtvideosink/delegates/qtquick2videosinkdelegate.cpp | matthiasnattke/qgroundcontrol | 9f87623a1598529a7bf24ab1122d409d02a0aed5 | [
"Apache-2.0"
] | null | null | null | src/VideoStreaming/gstqtvideosink/delegates/qtquick2videosinkdelegate.cpp | matthiasnattke/qgroundcontrol | 9f87623a1598529a7bf24ab1122d409d02a0aed5 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). <qt-info@nokia.com>
Copyright (C) 2011-2013 Collabora Ltd. <info@collabora.com>
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1
as publis... | 36.12844 | 97 | 0.64195 | [
"geometry"
] |
f8b694aae1e53c5078e90906ff800349e791e58d | 11,658 | cpp | C++ | test/unit/classification_test.cpp | marisn/libLAS | 8c7f3109e5c3bc71cdf400b31cc36640fa42eeea | [
"BSD-3-Clause"
] | 212 | 2015-02-25T13:55:07.000Z | 2022-03-28T17:12:09.000Z | test/unit/classification_test.cpp | marisn/libLAS | 8c7f3109e5c3bc71cdf400b31cc36640fa42eeea | [
"BSD-3-Clause"
] | 134 | 2015-01-09T13:41:52.000Z | 2022-03-24T11:30:03.000Z | test/unit/classification_test.cpp | marisn/libLAS | 8c7f3109e5c3bc71cdf400b31cc36640fa42eeea | [
"BSD-3-Clause"
] | 139 | 2015-01-15T04:09:17.000Z | 2022-03-23T14:21:49.000Z | // $Id$
//
// (C) Copyright Mateusz Loskot 2008, mateusz@loskot.net
// Distributed under the BSD License
// (See accompanying file LICENSE.txt or copy at
// http://www.opensource.org/licenses/bsd-license.php)
//
#include <liblas/classification.hpp>
#include <tut/tut.hpp>
#include <bitset>
#include <sstream>
#include <s... | 22.725146 | 65 | 0.551381 | [
"object"
] |
f8b6ca6dd07cd2ddb1d987bb517a653c787c971f | 3,370 | cpp | C++ | src/core/TChem_InitialCondSurface.cpp | kyungjoo-kim/TChem | 69915ca8de71df9a6a463aae45c5bd6db31646bc | [
"BSD-2-Clause"
] | null | null | null | src/core/TChem_InitialCondSurface.cpp | kyungjoo-kim/TChem | 69915ca8de71df9a6a463aae45c5bd6db31646bc | [
"BSD-2-Clause"
] | null | null | null | src/core/TChem_InitialCondSurface.cpp | kyungjoo-kim/TChem | 69915ca8de71df9a6a463aae45c5bd6db31646bc | [
"BSD-2-Clause"
] | 1 | 2022-02-26T18:04:44.000Z | 2022-02-26T18:04:44.000Z | /* =====================================================================================
TChem version 2.0
Copyright (2020) NTESS
https://github.com/sandialabs/TChem
Copyright 2020 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Governme... | 35.851064 | 88 | 0.654006 | [
"vector",
"model"
] |
f8c1e56100fa209b4f4ad2587bd9c42119986650 | 9,463 | hpp | C++ | ThirdParty-mod/java2cpp/android/telephony/cdma/CdmaCellLocation.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/android/telephony/cdma/CdmaCellLocation.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/android/telephony/cdma/CdmaCellLocation.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: android.telephony.cdma.CdmaCellLocation
================================================================================*/
#ifndef J2CPP_... | 35.441948 | 115 | 0.74395 | [
"object"
] |
f8c30d8be5b0b655ab8c78227df1471bd5ddac1f | 7,602 | cpp | C++ | LeetCode/C++/637. Average of Levels in Binary Tree.cpp | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | LeetCode/C++/637. Average of Levels in Binary Tree.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | LeetCode/C++/637. Average of Levels in Binary Tree.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | /**
Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array.
Example 1:
Input:
3
/ \
9 20
/ \
15 7
Output: [3, 14.5, 11]
Explanation:
The average value of nodes on level 0 is 3, on level 1 is 14.5, and on level 2 is 11. Hence return [3, 14.5, 11].
... | 34.712329 | 456 | 0.62773 | [
"vector"
] |
f8c78d8113118a5f9d03e3840955af9bd28d52f3 | 9,131 | cpp | C++ | Src/Utilities/FFT_Wrapper.cpp | stpope/CSL6 | 5855a91fe8fc928753d180d8d5260a3ed3a1460b | [
"BSD-2-Clause"
] | 32 | 2020-04-17T22:48:53.000Z | 2021-06-15T13:13:28.000Z | Src/Utilities/FFT_Wrapper.cpp | stpope/CSL6 | 5855a91fe8fc928753d180d8d5260a3ed3a1460b | [
"BSD-2-Clause"
] | null | null | null | Src/Utilities/FFT_Wrapper.cpp | stpope/CSL6 | 5855a91fe8fc928753d180d8d5260a3ed3a1460b | [
"BSD-2-Clause"
] | 2 | 2020-06-05T15:51:31.000Z | 2021-08-31T15:09:26.000Z | //
// FFT_Wrapper.cpp -- wrapper class for FFTs that hides implementation details
// This file includes the 3 standard concrete subclasses:
// FFTW (assumes fftw3f),
// RealFFT (RealFFT code included in CSL), and
// KISS FFT (included, untested).
//
// See the copyright notice and acknowledgment of authors i... | 34.327068 | 101 | 0.610886 | [
"transform"
] |
f8d1c0da2732e91e64d09e7483e6077c8bb42f59 | 6,450 | cpp | C++ | src/DistanceToObject.cpp | username10000/Through-the-Darkness-of-Space | 34be0b65f60f0e10b0cbfb78793afa027d005a69 | [
"MIT"
] | null | null | null | src/DistanceToObject.cpp | username10000/Through-the-Darkness-of-Space | 34be0b65f60f0e10b0cbfb78793afa027d005a69 | [
"MIT"
] | null | null | null | src/DistanceToObject.cpp | username10000/Through-the-Darkness-of-Space | 34be0b65f60f0e10b0cbfb78793afa027d005a69 | [
"MIT"
] | null | null | null | #include <DistanceToObject.h>
DistanceToObject::DistanceToObject(sf::VideoMode _screen, sf::Font _font) {
screen = _screen;
font = _font;
size = (float)(screen.height / 5);
offset = 10;
// Settings for the outer circle
circle.setPosition(offset, screen.height - size - offset);
circle.setRadius(size / 2);
cir... | 40.3125 | 197 | 0.715504 | [
"render",
"object"
] |
f8d41313d1066e803bf10f284b797022834c4122 | 1,681 | hpp | C++ | interface/omni/core/model/literal_expression.hpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 33 | 2015-03-21T04:12:45.000Z | 2021-04-18T21:44:33.000Z | interface/omni/core/model/literal_expression.hpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | null | null | null | interface/omni/core/model/literal_expression.hpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 2 | 2016-03-05T12:57:05.000Z | 2017-09-12T10:11:52.000Z | #ifndef OMNI_CORE_MODEL_LITERAL_EXPRESSION_HPP
#define OMNI_CORE_MODEL_LITERAL_EXPRESSION_HPP
#include <omni/core/core.hpp>
#include <omni/core/model/pure_expression.hpp>
#ifndef Q_MOC_RUN
#include <boost/any.hpp>
#include <boost/signals2.hpp>
#endif
namespace omni {
namespace core {
class context;
}}
namespace omn... | 31.12963 | 162 | 0.744795 | [
"model"
] |
f8d6a4bc120e656bc8141d6110f629ea7a4d5ef0 | 3,308 | cpp | C++ | day23_equal_and_lexicographical_compare.cpp | KuKuXia/30-Days-Plan-for-Practicing-C-Plus-Plus-11-STL | dddb1f3f6b43b628b87dcb26b72495e5c7d19e55 | [
"MIT"
] | null | null | null | day23_equal_and_lexicographical_compare.cpp | KuKuXia/30-Days-Plan-for-Practicing-C-Plus-Plus-11-STL | dddb1f3f6b43b628b87dcb26b72495e5c7d19e55 | [
"MIT"
] | null | null | null | day23_equal_and_lexicographical_compare.cpp | KuKuXia/30-Days-Plan-for-Practicing-C-Plus-Plus-11-STL | dddb1f3f6b43b628b87dcb26b72495e5c7d19e55 | [
"MIT"
] | null | null | null | //
// Created by LongXiaJun on 2018/12/29 0029.
//
#include "day23_equal_and_lexicographical_compare.h"
#include <vector>
#include <algorithm>
#include <iostream>
#include <random>
namespace demo_equal_and_lexicographical_compare {
namespace definition {
//Possible definition
template<typename Inp... | 33.755102 | 87 | 0.480351 | [
"vector"
] |
f8d85abbfc2348b1f74e3c5b34b9706223c504e0 | 4,932 | cpp | C++ | src/Cello/mesh_ItFace.cpp | brittonsmith/enzo-e | 56d8417f2bdfc60f38326ba7208b633bfcea3175 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/Cello/mesh_ItFace.cpp | brittonsmith/enzo-e | 56d8417f2bdfc60f38326ba7208b633bfcea3175 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/Cello/mesh_ItFace.cpp | brittonsmith/enzo-e | 56d8417f2bdfc60f38326ba7208b633bfcea3175 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | // See LICENSE_CELLO file for license and copyright information
/// @file mesh_ItFace.cpp
/// @author James Bordner (jobordner@ucsd.edu)
/// @date 2013-06-11
/// @brief Implementation of the ItFace class
#include "mesh.hpp"
//----------------------------------------------------------------------
ItFace... | 25.6875 | 72 | 0.417072 | [
"mesh"
] |
f8d9ecd114b84c89b783cfd471b4f6f10f311c76 | 37,356 | cpp | C++ | lib/IniProcessor/ini_processing.cpp | q4a/TheXTech | 574a4ad6723cce804732337073db9d093cb700b1 | [
"MIT"
] | null | null | null | lib/IniProcessor/ini_processing.cpp | q4a/TheXTech | 574a4ad6723cce804732337073db9d093cb700b1 | [
"MIT"
] | null | null | null | lib/IniProcessor/ini_processing.cpp | q4a/TheXTech | 574a4ad6723cce804732337073db9d093cb700b1 | [
"MIT"
] | null | null | null | /*
* INI Processor - a small library which allows you parsing INI-files
*
* Copyright (c) 2015-2021 Vitaly Novichkov <admin@wohlnet.ru>
*
* 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 Softwar... | 26.663812 | 127 | 0.57035 | [
"vector"
] |
f8dce3d24300ea14f2f898ed933b046a3c691efd | 1,269 | hpp | C++ | include/edlib/Basis/BasisFullU1.hpp | cecri/ExactDiagonalization | a168ed2f60149b1c3e5bd9ae46a5d169aea76773 | [
"MIT"
] | null | null | null | include/edlib/Basis/BasisFullU1.hpp | cecri/ExactDiagonalization | a168ed2f60149b1c3e5bd9ae46a5d169aea76773 | [
"MIT"
] | null | null | null | include/edlib/Basis/BasisFullU1.hpp | cecri/ExactDiagonalization | a168ed2f60149b1c3e5bd9ae46a5d169aea76773 | [
"MIT"
] | null | null | null | #pragma once
#include "AbstractBasis.hpp"
#include "BasisJz.hpp"
#include <tbb/concurrent_vector.h>
#include <tbb/tbb.h>
namespace edlib
{
template<typename UINT> class BasisFullU1 final : public AbstractBasis<UINT>
{
private:
std::vector<UINT> basis_;
public:
explicit BasisFullU1(uint32_t N) : AbstractBasis... | 25.38 | 85 | 0.613869 | [
"vector"
] |
f8e1b0ec7ad10a3574b173f1e506f8875701342f | 18,607 | cc | C++ | content/browser/dom_storage/dom_storage_context_impl.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | content/browser/dom_storage/dom_storage_context_impl.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | content/browser/dom_storage/dom_storage_context_impl.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.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.
#include "content/browser/dom_storage/dom_storage_context_impl.h"
#include <inttypes.h>
#include <stddef.h>
#include <stdlib.h>
#include <utility>
... | 37.065737 | 80 | 0.734294 | [
"vector"
] |
25d4eceb326e686cceb2d8a9c46ff0a96d14cd13 | 12,844 | cc | C++ | src/operator/contrib/psroi_pooling.cc | wms2537/incubator-mxnet | b7d7e02705deb1dc4942bf39efc19f133e2181f7 | [
"Apache-2.0",
"MIT"
] | 1 | 2019-12-20T11:25:06.000Z | 2019-12-20T11:25:06.000Z | src/operator/contrib/psroi_pooling.cc | wms2537/incubator-mxnet | b7d7e02705deb1dc4942bf39efc19f133e2181f7 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/operator/contrib/psroi_pooling.cc | wms2537/incubator-mxnet | b7d7e02705deb1dc4942bf39efc19f133e2181f7 | [
"Apache-2.0",
"MIT"
] | 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 ... | 45.066667 | 100 | 0.575055 | [
"vector"
] |
25e344e793695be399d82c8ccfeb843461163276 | 21,701 | cpp | C++ | ecmascript/compiler/stub_optimizer.cpp | openharmony-sig-ci/ark_js_runtime | 72fcff4c114fd8323c9a5d1a835efeac043e9a72 | [
"Apache-2.0"
] | null | null | null | ecmascript/compiler/stub_optimizer.cpp | openharmony-sig-ci/ark_js_runtime | 72fcff4c114fd8323c9a5d1a835efeac043e9a72 | [
"Apache-2.0"
] | null | null | null | ecmascript/compiler/stub_optimizer.cpp | openharmony-sig-ci/ark_js_runtime | 72fcff4c114fd8323c9a5d1a835efeac043e9a72 | [
"Apache-2.0"
] | 1 | 2021-09-13T12:12:04.000Z | 2021-09-13T12:12:04.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 35.751236 | 120 | 0.657066 | [
"object",
"vector"
] |
25e7f1072b5898fa390d92f8899af8bf65b8afa7 | 4,622 | cpp | C++ | src/base/producer.cpp | lawarner/aft | fd2b6b97bedd2be3ccb1739b890aeea6aa2f9603 | [
"Apache-2.0"
] | null | null | null | src/base/producer.cpp | lawarner/aft | fd2b6b97bedd2be3ccb1739b890aeea6aa2f9603 | [
"Apache-2.0"
] | null | null | null | src/base/producer.cpp | lawarner/aft | fd2b6b97bedd2be3ccb1739b890aeea6aa2f9603 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 Andy Warner
*
* 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 o... | 25.535912 | 78 | 0.559065 | [
"object",
"vector"
] |
25f28d12d131e41d1d38ebd2591bc53540bc66c7 | 572 | cpp | C++ | tc 160+/GooseTattarrattatDiv2.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/GooseTattarrattatDiv2.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/GooseTattarrattatDiv2.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <numeric>
#include <functional>
using namespace std;
class GooseTattarrattatDiv2 {
public:
int getmi... | 20.428571 | 54 | 0.603147 | [
"vector"
] |
25f9e341f513c3385b4ce8376b810cf983fe2ccc | 7,638 | cpp | C++ | test/unit/range/view/view_get_test.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | test/unit/range/view/view_get_test.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | test/unit/range/view/view_get_test.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
//
// Copyright (c) 2006-2018, Knut Reinert, FU Berlin
// Copyright (c) 2016-2018, Knut Reinert & MPI M... | 41.51087 | 118 | 0.628044 | [
"vector"
] |
25ff18042036e206212ce49c88b3d93be0684ee6 | 4,387 | hxx | C++ | Branch/Include/OpenICV/Basis/icvPrimitiveTensorData.hxx | Tsinghua-OpenICV/OpenICV | 37bf88122414d0c766491460248f61fa1a9fd78c | [
"MIT"
] | 12 | 2019-12-17T08:17:51.000Z | 2021-12-14T03:13:10.000Z | Branch/Include/OpenICV/Basis/icvPrimitiveTensorData.hxx | Tsinghua-OpenICV/OpenICV | 37bf88122414d0c766491460248f61fa1a9fd78c | [
"MIT"
] | null | null | null | Branch/Include/OpenICV/Basis/icvPrimitiveTensorData.hxx | Tsinghua-OpenICV/OpenICV | 37bf88122414d0c766491460248f61fa1a9fd78c | [
"MIT"
] | 7 | 2019-12-17T08:17:54.000Z | 2022-02-21T15:53:57.000Z | #ifndef icvPrimitiveTensorData_hxx
#define icvPrimitiveTensorData_hxx
#include "OpenICV/Core/icvDataObject.h"
#include <vector>
#include <cstdarg>
#include <boost/static_assert.hpp>
#include <boost/type_traits/is_pod.hpp>
namespace icv { namespace data
{
enum icvTensorIndexOrder
{
FromF... | 36.558333 | 121 | 0.591065 | [
"shape",
"vector"
] |
d304eb8790fac12cc22fe76b79355a009dc0490e | 1,453 | hpp | C++ | src/hittable_list.hpp | utilForever/ray-tracing-in-one-weekend-cpp | 2c4108ba16890be02d58d72b27b6f35d23ac6d64 | [
"MIT"
] | 12 | 2020-04-01T05:30:40.000Z | 2022-03-23T13:00:47.000Z | src/hittable_list.hpp | utilForever/ray-tracing-in-one-weekend-cpp | 2c4108ba16890be02d58d72b27b6f35d23ac6d64 | [
"MIT"
] | null | null | null | src/hittable_list.hpp | utilForever/ray-tracing-in-one-weekend-cpp | 2c4108ba16890be02d58d72b27b6f35d23ac6d64 | [
"MIT"
] | 1 | 2020-04-20T16:38:38.000Z | 2020-04-20T16:38:38.000Z | // Copyright (c) 2020 Chris Ohk
// I am making my contributions/submissions to this project solely in my
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
// It is based on Ray Tracing in One Weekend book.
// References: https://raytracing.github.io
#ifndef R... | 22.703125 | 73 | 0.644873 | [
"object",
"vector"
] |
d3060aae3918c0dfea57d3197326ef2e0aa4c24b | 2,800 | cpp | C++ | ConversationalGame/Cap10/Adventure/Adventure/object.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | ConversationalGame/Cap10/Adventure/Adventure/object.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | ConversationalGame/Cap10/Adventure/Adventure/object.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include "object.h"
static const char *tags0[] = { "field", NULL };
static const char *tags1[] = { "cave", NULL };
static const char *tags2[] = { "silver", "coin", "silver coin", NULL };
static const char *tags3[] = { "gold", "coin", "gold coin", NULL };
static const char *tags4[] = { "guard", "burly... | 19.310345 | 74 | 0.563929 | [
"object",
"solid"
] |
d306e985728684518bfc6704474decf6c6a6f64e | 438 | cpp | C++ | Dataset/Leetcode/train/22/186.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/22/186.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/22/186.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<string> res;
vector<string> XXX(int n) {
generate("",n,n);
return res;
}
void generate(string str,int leftnum,int rightnum){
if(rightnum==0){
res.push_back(str);
return;
}
if(leftnum>0)
generate(... | 21.9 | 55 | 0.518265 | [
"vector"
] |
d30a218321637e22ce4f52a78685b31faf1acf32 | 2,344 | cpp | C++ | src/cpp/4_BehavioralPatterns/7_Observer/ObserverCodingExercise.cpp | MilovanTomasevic/Design-Patterns | 4ea38e5498d82c53216c45e1024e97470eb9bc7d | [
"MIT"
] | 10 | 2021-04-17T00:02:57.000Z | 2021-11-16T13:20:14.000Z | src/cpp/4_BehavioralPatterns/7_Observer/ObserverCodingExercise.cpp | MilovanTomasevic/Design-Patterns | 4ea38e5498d82c53216c45e1024e97470eb9bc7d | [
"MIT"
] | null | null | null | src/cpp/4_BehavioralPatterns/7_Observer/ObserverCodingExercise.cpp | MilovanTomasevic/Design-Patterns | 4ea38e5498d82c53216c45e1024e97470eb9bc7d | [
"MIT"
] | 1 | 2021-12-23T13:22:26.000Z | 2021-12-23T13:22:26.000Z | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
struct IRat
{
virtual void rat_enters(IRat* sender) = 0;
virtual void rat_dies(IRat* sender) = 0;
virtual void notify(IRat* target) = 0;
};
struct Game
{
vector<IRat*> rats;
virtual void fire_rat_enters(... | 19.697479 | 76 | 0.550341 | [
"vector"
] |
d30fc766e9f586935694b41fbe2832dca976e1eb | 2,348 | cpp | C++ | graph-source-code/374-C/8871444.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/374-C/8871444.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/374-C/8871444.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: MS C++
#include<iostream>
#include<cstdio>
#include<list>
#include<algorithm>
#include<cstring>
#include<string>
#include<queue>
#include<stack>
#include<map>
#include<vector>
#include<cmath>
#include<memory.h>
#include<set>
#include<cctype>
#define ll long long
#define eps 1e-8
cons... | 17.522388 | 54 | 0.513629 | [
"vector"
] |
d3157d4e404ad62240c88d8ea368f76fb56e6883 | 1,679 | cpp | C++ | cpp/data/load_data.cpp | equivalence1/ml_lib | 92d75ab73bc2d77ba8fa66022c803c06cad66f21 | [
"Apache-2.0"
] | null | null | null | cpp/data/load_data.cpp | equivalence1/ml_lib | 92d75ab73bc2d77ba8fa66022c803c06cad66f21 | [
"Apache-2.0"
] | null | null | null | cpp/data/load_data.cpp | equivalence1/ml_lib | 92d75ab73bc2d77ba8fa66022c803c06cad66f21 | [
"Apache-2.0"
] | null | null | null | #include "load_data.h"
#include <torch/torch.h>
#include <core/vec_factory.h>
#include <stdexcept>
DataSet loadFeaturesTxt(const std::string& file) {
std::ifstream in(file);
if (!in) {
throw std::runtime_error("Failed to open file " + file);
}
std::vector<float> pool;
std::vector<float>... | 25.439394 | 84 | 0.58249 | [
"vector"
] |
d322e5c396a39b36cdb81da9dcdd20094c0f33f3 | 3,603 | cpp | C++ | info.cpp | ft/amded | 8394ae4c761c960c4b72fc2ebf2694bb9769f2b4 | [
"BSD-2-Clause"
] | 7 | 2015-07-09T18:31:05.000Z | 2022-02-09T12:08:00.000Z | info.cpp | ft/amded | 8394ae4c761c960c4b72fc2ebf2694bb9769f2b4 | [
"BSD-2-Clause"
] | null | null | null | info.cpp | ft/amded | 8394ae4c761c960c4b72fc2ebf2694bb9769f2b4 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2009-2019 amded workers, All rights reserved.
* Terms for redistribution and use can be found in LICENCE.
*/
/**
* @file info.cpp
* @brief display various informational messages
*/
#include <iostream>
#include <vector>
#include "amded.h"
#include "info.h"
#ifdef VENDOR_BUILD
#include "amde... | 31.060345 | 78 | 0.668332 | [
"vector"
] |
d3304a996f566b9a4215d34e70ea4c82bdceb630 | 22,856 | cpp | C++ | src/amd/compiler/aco_print_ir.cpp | PWN-Hunter/mesa3d | be12e189989e3476d7c9d40e1c0c3a35143ee51a | [
"MIT"
] | null | null | null | src/amd/compiler/aco_print_ir.cpp | PWN-Hunter/mesa3d | be12e189989e3476d7c9d40e1c0c3a35143ee51a | [
"MIT"
] | null | null | null | src/amd/compiler/aco_print_ir.cpp | PWN-Hunter/mesa3d | be12e189989e3476d7c9d40e1c0c3a35143ee51a | [
"MIT"
] | null | null | null | #include "aco_ir.h"
#include "aco_builder.h"
#include "sid.h"
#include "ac_shader_util.h"
namespace aco {
static const char *reduce_ops[] = {
[iadd32] = "iadd32",
[iadd64] = "iadd64",
[imul32] = "imul32",
[imul64] = "imul64",
[fadd32] = "fadd32",
[fadd64] = "fadd64",
[fmul32] = "fmul32",
[fmu... | 34.682853 | 95 | 0.569785 | [
"3d"
] |
d336c07f4b930101a37b07f219998007e19bed25 | 37,682 | cpp | C++ | Source/AllProjects/CIDBuild/CIDBuild_VCppDriver.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | null | null | null | Source/AllProjects/CIDBuild/CIDBuild_VCppDriver.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | null | null | null | Source/AllProjects/CIDBuild/CIDBuild_VCppDriver.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | null | null | null | //
// FILE NAME: CIDBuild_VCppDriver.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 08/29/1998
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opens... | 33.67471 | 98 | 0.586487 | [
"object"
] |
d3386b22fbbca4bb131c7ca26e1b225974b7b254 | 1,739 | hpp | C++ | mainapp/Classes/Games/ComprehensionTest/Reordering/ReorderingScene.hpp | JaagaLabs/GLEXP-Team-KitkitSchool | f94ea3e53bd05fdeb2a9edcc574bc054e575ecc0 | [
"Apache-2.0"
] | 45 | 2019-05-16T20:49:31.000Z | 2021-11-05T21:40:54.000Z | mainapp/Classes/Games/ComprehensionTest/Reordering/ReorderingScene.hpp | rdsmarketing/GLEXP-Team-KitkitSchool | 6ed6b76d17fd7560abc35dcdf7cf4a44ce70745e | [
"Apache-2.0"
] | 10 | 2019-05-17T13:38:22.000Z | 2021-07-31T19:38:27.000Z | mainapp/Classes/Games/ComprehensionTest/Reordering/ReorderingScene.hpp | rdsmarketing/GLEXP-Team-KitkitSchool | 6ed6b76d17fd7560abc35dcdf7cf4a44ce70745e | [
"Apache-2.0"
] | 29 | 2019-05-16T17:49:26.000Z | 2021-12-30T16:36:24.000Z | //
// ReorderingScene.hpp
// KitkitSchool
//
// Created by HyeonGyu Yu on 20/12/2016.
//
//
#ifndef ReorderingScene_hpp
#define ReorderingScene_hpp
#include <stdio.h>
#include "cocos2d.h"
#include "ui/CocosGUI.h"
#include "../ComprehensionScene.hpp"
#include "ImageBlock.hpp"
#include "TextBlock.hpp"
#include <str... | 24.152778 | 82 | 0.580794 | [
"vector"
] |
d338cba0e36de955240d1cdf431329e0b56a495f | 1,018 | cpp | C++ | PAT1089.cpp | Geeks-Z/PAT | c02f08f11c4a628203f8d2dccbd7fecfc0943b34 | [
"MIT"
] | null | null | null | PAT1089.cpp | Geeks-Z/PAT | c02f08f11c4a628203f8d2dccbd7fecfc0943b34 | [
"MIT"
] | null | null | null | PAT1089.cpp | Geeks-Z/PAT | c02f08f11c4a628203f8d2dccbd7fecfc0943b34 | [
"MIT"
] | null | null | null | /*
* @Descripttion: 狼人杀-简单版
* @version: 1.0
* @Author: Geeks_Z
* @Date: 2021-05-06 15:28:15
* @LastEditors: Geeks_Z
* @LastEditTime: 2021-05-06 15:30:51
*/
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main()
{
int n;
cin >> n;
vector<int> v(n + 1);
for (int i = 1; i <= ... | 23.674419 | 78 | 0.5 | [
"vector"
] |
d33c914e6d5b227ab119861a58cd28ebcc30f555 | 10,644 | cc | C++ | tensorflow/dtensor/mlir/shape_utils.cc | TheRakeshPurohit/tensorflow | bee6d5a268122df99e1e55a7b92517e84ad25bab | [
"Apache-2.0"
] | 3 | 2022-03-09T01:39:56.000Z | 2022-03-30T23:17:58.000Z | tensorflow/dtensor/mlir/shape_utils.cc | TheRakeshPurohit/tensorflow | bee6d5a268122df99e1e55a7b92517e84ad25bab | [
"Apache-2.0"
] | 1 | 2020-08-01T05:40:12.000Z | 2020-08-01T05:40:12.000Z | tensorflow/dtensor/mlir/shape_utils.cc | TheRakeshPurohit/tensorflow | bee6d5a268122df99e1e55a7b92517e84ad25bab | [
"Apache-2.0"
] | 1 | 2022-03-22T00:45:15.000Z | 2022-03-22T00:45:15.000Z | /* Copyright 2022 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... | 40.318182 | 80 | 0.691469 | [
"shape",
"vector"
] |
d33f7f91076596fb0d20cd51e3ffdfa9ee408f77 | 7,254 | cpp | C++ | libs/graph_parallel/drivers/gizmo.cpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | 1 | 2021-09-03T10:22:04.000Z | 2021-09-03T10:22:04.000Z | libs/graph_parallel/drivers/gizmo.cpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | null | null | null | libs/graph_parallel/drivers/gizmo.cpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2018 Thejaka Amila Kanewala, Marcin Zalewski, Andrew Lumsdaine.
// Boost Software License - Version 1.0 - August 17th, 2003
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the... | 27.687023 | 98 | 0.64461 | [
"object",
"model"
] |
d34a1e695fc0153a709941ca1135e7f0be9bebf0 | 3,065 | cpp | C++ | Math/GeometryBasic.cpp | igortakeo/Algorithms | 6608132e442df7b0fb295aa63f287fa65a941939 | [
"MIT"
] | null | null | null | Math/GeometryBasic.cpp | igortakeo/Algorithms | 6608132e442df7b0fb295aa63f287fa65a941939 | [
"MIT"
] | null | null | null | Math/GeometryBasic.cpp | igortakeo/Algorithms | 6608132e442df7b0fb295aa63f287fa65a941939 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long
using namespace std;
//Referencia: https://github.com/icmcgema/gema/blob/master/13-Geometria_Computacional.ipynb
struct Point{
ll x, y;
Point(ll x, ll y){
this->x = x;
this->y = y;
}
Point operator+(const Point& b) const{
return P... | 20.85034 | 91 | 0.531811 | [
"vector"
] |
d3501266583e4e05b9eba4da77a143f308bb191c | 1,104 | hpp | C++ | test/MockFrequencyGovernor.hpp | avilcheslopez/geopm | 35ad0af3f17f42baa009c97ed45eca24333daf33 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | test/MockFrequencyGovernor.hpp | avilcheslopez/geopm | 35ad0af3f17f42baa009c97ed45eca24333daf33 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | test/MockFrequencyGovernor.hpp | avilcheslopez/geopm | 35ad0af3f17f42baa009c97ed45eca24333daf33 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2015 - 2022, Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef MOCKFREQUENCYGOVERNOR_HPP_INCLUDE
#define MOCKFREQUENCYGOVERNOR_HPP_INCLUDE
#include "gmock/gmock.h"
#include "FrequencyGovernor.hpp"
class MockFrequencyGovernor : public geopm::FrequencyGovernor
{
public:
... | 35.612903 | 80 | 0.671196 | [
"vector"
] |
d353ef63b23e78b7685c2619726646be25771e84 | 8,613 | cpp | C++ | src/conformance/conformance_test/test_ViewConfigurations.cpp | rpavlik/OpenXR-CTS | 5600673d550ddd5692614d11fabe0f9ceae16ed6 | [
"Unlicense",
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | 35 | 2020-07-07T18:10:11.000Z | 2022-03-13T10:48:45.000Z | src/conformance/conformance_test/test_ViewConfigurations.cpp | rpavlik/OpenXR-CTS | 5600673d550ddd5692614d11fabe0f9ceae16ed6 | [
"Unlicense",
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | 29 | 2020-09-10T16:36:59.000Z | 2022-03-31T18:17:32.000Z | src/conformance/conformance_test/test_ViewConfigurations.cpp | rpavlik/OpenXR-CTS | 5600673d550ddd5692614d11fabe0f9ceae16ed6 | [
"Unlicense",
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | 9 | 2020-09-10T16:01:57.000Z | 2022-01-21T18:28:35.000Z | // Copyright (c) 2019-2021, The Khronos Group Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
// 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/LICEN... | 50.964497 | 138 | 0.600836 | [
"vector"
] |
d35bdf651d173c0c61808d94732537fd56bca17d | 20,310 | cpp | C++ | src/gate.cpp | makzator/quandary | e3b1a0917991ad0b939b93cd55f5fce3fa821e58 | [
"MIT"
] | null | null | null | src/gate.cpp | makzator/quandary | e3b1a0917991ad0b939b93cd55f5fce3fa821e58 | [
"MIT"
] | null | null | null | src/gate.cpp | makzator/quandary | e3b1a0917991ad0b939b93cd55f5fce3fa821e58 | [
"MIT"
] | null | null | null | #include "gate.hpp"
Gate::Gate(){
dim_ess = 0;
dim_rho = 0;
}
Gate::Gate(std::vector<int> nlevels_, std::vector<int> nessential_, double time_, std::vector<double> gate_rot_freq_){
MPI_Comm_rank(PETSC_COMM_WORLD, &mpirank_petsc);
nessential = nessential_;
nlevels = nlevels_;
final_time = time_;
gate_r... | 35.631579 | 243 | 0.629838 | [
"vector"
] |
d36658c4fc5a1f7a3e8249c7b2f8036507064de8 | 52,188 | cpp | C++ | Sources/Elastos/Packages/Service/Telephony/src/elastos/droid/teleservice/phone/CMobileNetworkSettings.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Packages/Service/Telephony/src/elastos/droid/teleservice/phone/CMobileNetworkSettings.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Packages/Service/Telephony/src/elastos/droid/teleservice/phone/CMobileNetworkSettings.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 43.49 | 128 | 0.644401 | [
"object"
] |
d36d51bac863eea0355ccb6b4db24d964d2b77dd | 19,128 | cpp | C++ | src/algorithms/unchop.cpp | Ellmen/vg | f9f5a815ef2db3481b23ff2533355aaf7f2f947b | [
"MIT"
] | 1 | 2021-11-16T21:23:49.000Z | 2021-11-16T21:23:49.000Z | src/algorithms/unchop.cpp | CominLab/VG-SNP-Aware | 6e28125879ad7b5b9b0d160d19406e69278a0e58 | [
"MIT"
] | null | null | null | src/algorithms/unchop.cpp | CominLab/VG-SNP-Aware | 6e28125879ad7b5b9b0d160d19406e69278a0e58 | [
"MIT"
] | null | null | null | /**
* \file unchop.cpp
*
* Defines an algorithm to join adjacent handles.
*/
#include "unchop.hpp"
#include <unordered_set>
#include <list>
#include <set>
#include <iostream>
#include <sstream>
namespace vg {
namespace algorithms {
using namespace std;
/// Return true if nodes share all paths and the mappings ... | 38.256 | 199 | 0.533668 | [
"vector"
] |
d36e1d54d7723432c10d3fb96890ca256c69c730 | 1,488 | hpp | C++ | include/3d_line_detection/HoughTransform.hpp | xmba15/3d_line_detection | a287339caa88b257427dc5ec7c292d7e4695cf67 | [
"MIT"
] | 1 | 2021-09-15T12:04:00.000Z | 2021-09-15T12:04:00.000Z | include/3d_line_detection/HoughTransform.hpp | TANHAIYU/3d_line_detection | c62d9252b1e379b295e619a26afea88e03d556be | [
"MIT"
] | null | null | null | include/3d_line_detection/HoughTransform.hpp | TANHAIYU/3d_line_detection | c62d9252b1e379b295e619a26afea88e03d556be | [
"MIT"
] | 2 | 2021-09-15T12:07:49.000Z | 2022-02-24T06:09:10.000Z | /**
* @file HoughTransform.hpp
*
* @author btran
*
*/
#pragma once
#include <vector>
#include <pcl/ModelCoefficients.h>
#include <pcl/common/common.h>
#include "LineSegment3D.hpp"
#include "Sphere.hpp"
namespace perception
{
template <typename POINT_CLOUD_TYPE> class HoughTransform
{
public:
using Po... | 26.105263 | 112 | 0.713038 | [
"geometry",
"vector"
] |
d3764702a5a9920d1137308987b326831a209e80 | 1,988 | cpp | C++ | SerialHMD/source/driver_serialhmd.cpp | Seneral/SerialHMD | d01fa216fd9290c4d2ee5e664bbd54edf8a9e747 | [
"MIT"
] | 4 | 2019-03-14T11:51:57.000Z | 2020-09-21T15:47:12.000Z | SerialHMD/source/driver_serialhmd.cpp | Seneral/SerialHMD | d01fa216fd9290c4d2ee5e664bbd54edf8a9e747 | [
"MIT"
] | null | null | null | SerialHMD/source/driver_serialhmd.cpp | Seneral/SerialHMD | d01fa216fd9290c4d2ee5e664bbd54edf8a9e747 | [
"MIT"
] | 1 | 2021-04-12T21:14:09.000Z | 2021-04-12T21:14:09.000Z | // ON WINDOWS, compile with MSVC (e.g. Visual Studio) - gcc or g++ won't work since they produce libraries which Steam can't interact with properly!!
// ON LINUX - no tested. I did start off with Linux though, so atleast the base should throw no errors, and I might try again once there are VR games on Linux!
#inclu... | 27.611111 | 160 | 0.651408 | [
"vector"
] |
c96548aa24f28c92899440999c6033a522bf83a3 | 1,434 | hpp | C++ | include/fea/rendering/renderentity.hpp | CptAsgard/featherkit | 84e7a119fcb84cd3a4d8ad9ba9b288abe5c56aa5 | [
"Zlib"
] | 22 | 2015-01-13T10:49:38.000Z | 2020-12-23T15:25:59.000Z | include/fea/rendering/renderentity.hpp | CptAsgard/featherkit | 84e7a119fcb84cd3a4d8ad9ba9b288abe5c56aa5 | [
"Zlib"
] | 27 | 2015-01-11T03:47:27.000Z | 2015-12-10T17:52:17.000Z | include/fea/rendering/renderentity.hpp | CptAsgard/featherkit | 84e7a119fcb84cd3a4d8ad9ba9b288abe5c56aa5 | [
"Zlib"
] | 7 | 2015-09-18T15:06:45.000Z | 2020-02-19T15:12:34.000Z | #pragma once
#include <fea/config.hpp>
#include <fea/rendering/opengl.hpp>
#include <fea/rendering/uniform.hpp>
#include <fea/rendering/vertexattribute.hpp>
#include <vector>
namespace fea
{
enum BlendMode { NONE = 0, ALPHA, ADD, MULTIPLY, MULTIPLY2X };
struct FEA_API RenderEntity
{
std::vector<Un... | 29.875 | 119 | 0.645049 | [
"render",
"vector"
] |
c96bb7d30fa6541293dcb565ec03aee21813969b | 369 | hpp | C++ | resources/factories/factories.hpp | hyper1423/SomeFPS | dcd353124d58e2696be7eaf44cddec17d6259629 | [
"BSD-3-Clause"
] | null | null | null | resources/factories/factories.hpp | hyper1423/SomeFPS | dcd353124d58e2696be7eaf44cddec17d6259629 | [
"BSD-3-Clause"
] | null | null | null | resources/factories/factories.hpp | hyper1423/SomeFPS | dcd353124d58e2696be7eaf44cddec17d6259629 | [
"BSD-3-Clause"
] | null | null | null | #ifndef FACTORIES_HPP
#define FACTORIES_HPP
#include "../resource_list.hpp"
#include <string>
#include <memory>
#include <cstddef>
namespace factories {
class TextLoader {
public:
resourceTypes::Resource* operator()(std::vector<std::byte> bytes);
};
class ModelLoader {
public:
resourceTypes::Resource* operat... | 16.772727 | 70 | 0.723577 | [
"vector"
] |
c978d6f2d51611f114daa211071c8bc4b6cdda3d | 5,543 | cpp | C++ | X-Editor/src/Layers/EditorLayer.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 4 | 2020-02-17T07:08:26.000Z | 2020-08-07T21:35:12.000Z | X-Editor/src/Layers/EditorLayer.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 25 | 2020-03-08T05:35:25.000Z | 2020-07-08T01:59:52.000Z | X-Editor/src/Layers/EditorLayer.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 1 | 2020-10-15T12:39:29.000Z | 2020-10-15T12:39:29.000Z | // Editor Layer Source file
#include <chrono>
#include <ImGui/imgui.h>
#include <glm/gtc/type_ptr.hpp>
#include "Layers/EditorLayer.h"
#include "XEngine/Scene/Serializer.h"
#include <glm/gtc/matrix_transform.hpp>
#include "XEngine/Debug/Instrumentor.h"
namespace XEngine
{
EditorLayer::EditorLayer() : Layer("Editor Lay... | 36.467105 | 193 | 0.713152 | [
"transform"
] |
c97a35a05e57b528e7d50e3ee60abf368f114f4e | 3,652 | cpp | C++ | src/main.cpp | bergentroll/otus-cpp-14 | 7f9c429c94ca97f6213a52f9a34aed43bff406d4 | [
"CC0-1.0"
] | null | null | null | src/main.cpp | bergentroll/otus-cpp-14 | 7f9c429c94ca97f6213a52f9a34aed43bff406d4 | [
"CC0-1.0"
] | null | null | null | src/main.cpp | bergentroll/otus-cpp-14 | 7f9c429c94ca97f6213a52f9a34aed43bff406d4 | [
"CC0-1.0"
] | null | null | null | #include <boost/program_options.hpp>
#include <boost/serialization/strong_typedef.hpp>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <string>
#include <vector>
#include "file_marker.hpp"
#include "mapper.hpp"
#include "reducer.hpp"
#include "shuffler.hpp"
#include "thread_keeper.hpp"
using nam... | 26.852941 | 84 | 0.665663 | [
"vector"
] |
c97b37e460d5873cb7a621a6794e1a6b720b480e | 14,469 | cpp | C++ | rnn++/app/ygpdb_etl.cpp | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | rnn++/app/ygpdb_etl.cpp | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | rnn++/app/ygpdb_etl.cpp | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | #include <vector>
#include <algorithm>
#include <cctype>
#include <fstream>
#include <set>
#include <pqxx/pqxx>
#include <fmt/printf.h>
#include "similarity/query_engine.h"
#include "similarity/config.h"
#include "data_source/rss.h"
#include "data_source/ygp_db.h"
#include "data_source/ygp_etl.h"
#include "data_sour... | 31.18319 | 119 | 0.621467 | [
"vector"
] |
c97ceeb91fc8eb2c3d7e9713de898685156c3b71 | 11,100 | cc | C++ | FGUI/controls/listbox.cc | zanzo420/fgui | cb6c657ea01b8ea0c18a6ac29aa46e7cc9d1b53e | [
"MIT"
] | 1 | 2019-10-05T20:25:54.000Z | 2019-10-05T20:25:54.000Z | FGUI/controls/listbox.cc | Qazwar/fgui | cb6c657ea01b8ea0c18a6ac29aa46e7cc9d1b53e | [
"MIT"
] | null | null | null | FGUI/controls/listbox.cc | Qazwar/fgui | cb6c657ea01b8ea0c18a6ac29aa46e7cc9d1b53e | [
"MIT"
] | null | null | null | /* *
* fgui - an extensive oop gui framework *
* */
// includes
#include "listbox.hh"
#include "../handler/handler.hh"
#include "../dependencies/color.hh"
#include "../dependencies/aliases.hh"
fgui::listbox::listbox() {
fgui:... | 37.883959 | 258 | 0.627117 | [
"render"
] |
c97dde9e4c62cb17153c4701ac231a86cd5bc95c | 63 | hh | C++ | RAVL2/MSVC/include/Ravl/Crack.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/MSVC/include/Ravl/Crack.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/MSVC/include/Ravl/Crack.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null |
#include "../.././Math/Geometry/Euclidean/Boundary/Crack.hh"
| 15.75 | 60 | 0.68254 | [
"geometry"
] |
c97e9c6f28288e9e6d1d8815286360ed4f9fbf63 | 34,902 | cpp | C++ | tests/narrowphasetest.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | 6 | 2015-12-08T05:38:03.000Z | 2021-04-09T13:45:59.000Z | tests/narrowphasetest.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | tests/narrowphasetest.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************************
* Copyright (C) 2007 by the members of PG 510, University of Dortmund: *
* d-collide-users@lists.sourceforge.net *
* Andreas Beckermann, Christian Bode, Marcel Ens, Sebastian Ens, ... | 39.526614 | 102 | 0.607902 | [
"mesh",
"shape",
"vector"
] |
c9805e66f04f7e6f4bda126dba4b865e76a02718 | 10,097 | cc | C++ | RecoBTag/ONNXRuntime/plugins/DeepVertexONNXJetTagsProducer.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoBTag/ONNXRuntime/plugins/DeepVertexONNXJetTagsProducer.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoBTag/ONNXRuntime/plugins/DeepVertexONNXJetTagsProducer.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/makeRefToBaseProdFrom.h"
#include "FWCore/ParameterSet/interface/Parame... | 42.783898 | 120 | 0.639299 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.