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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
507212fb6d082be3fe5cec1aa03ec792737ef9e3 | 838 | cpp | C++ | Desarrollo(VS2017)/Motor2D/j1GUIlabel.cpp | Sanmopre/DESARROLLO | 4b601ca0862c6cf5831ec7fbe226fd97d52cf11b | [
"MIT"
] | null | null | null | Desarrollo(VS2017)/Motor2D/j1GUIlabel.cpp | Sanmopre/DESARROLLO | 4b601ca0862c6cf5831ec7fbe226fd97d52cf11b | [
"MIT"
] | null | null | null | Desarrollo(VS2017)/Motor2D/j1GUIlabel.cpp | Sanmopre/DESARROLLO | 4b601ca0862c6cf5831ec7fbe226fd97d52cf11b | [
"MIT"
] | 1 | 2019-12-27T20:26:49.000Z | 2019-12-27T20:26:49.000Z | #include "j1GUIlabel.h"
#include "j1App.h"
#include "j1Fonts.h"
#include "j1Render.h"
#include "j1Textures.h"
#include "j1Input.h"
j1GUIlabel::j1GUIlabel()
{
this->type = GUItype::GUI_LABEL;
}
j1GUIlabel::~j1GUIlabel() {
}
bool j1GUIlabel::Awake(pugi::xml_node&)
{
return true;
}
bool j1GUIlabel::Start()
{
... | 14.964286 | 145 | 0.684964 | [
"render"
] |
507454bc385a7ea78af532998872725fb5bf9d8d | 4,692 | cc | C++ | tests/test_getattr.cc | gerrymanoim/libpy | ffe19d53aa9602893aecc2dd8c9feda90e06b262 | [
"Apache-2.0"
] | 71 | 2020-06-26T00:36:33.000Z | 2021-12-02T13:57:02.000Z | tests/test_getattr.cc | stefan-jansen/libpy | e174ee103db76a9d0fcd29165d54c676ed1f2629 | [
"Apache-2.0"
] | 32 | 2020-06-26T18:59:15.000Z | 2022-03-01T19:02:44.000Z | tests/test_getattr.cc | gerrymanoim/libpy | ffe19d53aa9602893aecc2dd8c9feda90e06b262 | [
"Apache-2.0"
] | 24 | 2020-06-26T17:01:57.000Z | 2022-02-15T00:25:27.000Z | #include <string>
#include <vector>
#include "gtest/gtest.h"
#include "libpy/detail/python.h"
#include "libpy/getattr.h"
#include "test_utils.h"
namespace test_getattr {
class getattr : public with_python_interpreter {};
TEST_F(getattr, simple) {
py::owned_ref ns = RUN_PYTHON(R"(
class A(object):
... | 26.212291 | 82 | 0.598039 | [
"object",
"vector"
] |
50763c0997cc922902f82d16b735763d7e319494 | 593 | cpp | C++ | edpc/b.cpp | dashimaki360/atcoder | 1462150d59d50f270145703df579dba8c306376c | [
"MIT"
] | null | null | null | edpc/b.cpp | dashimaki360/atcoder | 1462150d59d50f270145703df579dba8c306376c | [
"MIT"
] | null | null | null | edpc/b.cpp | dashimaki360/atcoder | 1462150d59d50f270145703df579dba8c306376c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// #include <atcoder/all>
// using namespace atcoder;
#define rep(i,n) for (int i = 0; i < (n); ++i)
using ll = long long;
using P = pair<int,int>;
void chmin(int& x, int y){x = min(x,y);}
void chmax(int& x, int y){x = max(x,y);}
const int INF = 1001001001;
int main() {
... | 21.962963 | 47 | 0.531197 | [
"vector"
] |
507795eec702c09967dff6a2c80944cc00f81227 | 9,149 | cpp | C++ | tests/matrix.cpp | indianajohn/basic-matrix | 51f0b8cf712e61010acb39687deb6dc633394563 | [
"MIT"
] | null | null | null | tests/matrix.cpp | indianajohn/basic-matrix | 51f0b8cf712e61010acb39687deb6dc633394563 | [
"MIT"
] | null | null | null | tests/matrix.cpp | indianajohn/basic-matrix | 51f0b8cf712e61010acb39687deb6dc633394563 | [
"MIT"
] | null | null | null | #include "matrix.hpp"
#include "matrix_helpers.hpp"
#include "test_helpers.hpp"
#include <iostream>
#include <random>
#include <sstream>
using namespace basic_matrix;
void emptyMatrix() {
Matrix mat;
ASSERT_EQ(mat.width(), 0);
ASSERT_EQ(mat.height(), 0);
// make sure ostream operator handles empty matrices wel... | 29.323718 | 75 | 0.602689 | [
"vector"
] |
508cbbf4c8492eb845e217d890a1831e49258c28 | 14,899 | cpp | C++ | Sources/LibVulkan/source/VKScreenshot.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/LibVulkan/source/VKScreenshot.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/LibVulkan/source/VKScreenshot.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | /// https://github.com/Rominitch/MouCaLab
/// \author Rominitch
/// \license No license
#include "Dependencies.h"
#include "LibVulkan/include/VKScreenshot.h"
#include "LibRT/include/RTBufferCPU.h"
#include "LibRT/include/RTImage.h"
#include "LibVulkan/include/VKContextDevice.h"
#include "LibVulkan/include/VKContext... | 47.906752 | 207 | 0.642795 | [
"vector"
] |
5090abd971eadea52ce13dd6a5b7593d7a36e080 | 21,830 | cpp | C++ | src/qt/qtwebkit/Source/WebKit2/UIProcess/WebProcessProxy.cpp | viewdy/phantomjs | eddb0db1d253fd0c546060a4555554c8ee08c13c | [
"BSD-3-Clause"
] | 1 | 2015-05-27T13:52:20.000Z | 2015-05-27T13:52:20.000Z | src/qt/qtwebkit/Source/WebKit2/UIProcess/WebProcessProxy.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtwebkit/Source/WebKit2/UIProcess/WebProcessProxy.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | 1 | 2017-03-19T13:03:23.000Z | 2017-03-19T13:03:23.000Z | /*
* Copyright (C) 2010, 2011 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | 31.683599 | 192 | 0.733715 | [
"vector"
] |
50934708bf966e5fb254a7e3dc35f5d5fd89a063 | 31,899 | cpp | C++ | dialog/dialogflightplan.cpp | ignmiz/ATC_Console | 549dd67a007cf54b976e33fed1581f30beb08b06 | [
"Intel",
"MIT"
] | 5 | 2018-01-08T22:20:07.000Z | 2021-06-19T17:42:29.000Z | dialog/dialogflightplan.cpp | ignmiz/ATC_Console | 549dd67a007cf54b976e33fed1581f30beb08b06 | [
"Intel",
"MIT"
] | null | null | null | dialog/dialogflightplan.cpp | ignmiz/ATC_Console | 549dd67a007cf54b976e33fed1581f30beb08b06 | [
"Intel",
"MIT"
] | 2 | 2017-08-07T23:07:42.000Z | 2021-05-09T13:02:39.000Z | #include "dialogflightplan.h"
#include "ui_dialogflightplan.h"
DialogFlightPlan::DialogFlightPlan(ATCFlight *flight, ATCAirspace *airspace, ATCSimulation *simulation, ATCFlightFactory *flightFactory, QWidget *parent) :
ATCDialog(parent, "Flight Plan", 600, 650),
flight(flight),
airspace(airspace),
simu... | 34.080128 | 155 | 0.548481 | [
"model"
] |
5094b710cea4c6b6fbe9ed5ea686e020095f3321 | 29,774 | cc | C++ | lib/wabt/src/binary-reader-ir.cc | rekhadpr/demoazure1 | 394d777e507b171876734d871d50e47254636b9d | [
"MIT"
] | null | null | null | lib/wabt/src/binary-reader-ir.cc | rekhadpr/demoazure1 | 394d777e507b171876734d871d50e47254636b9d | [
"MIT"
] | null | null | null | lib/wabt/src/binary-reader-ir.cc | rekhadpr/demoazure1 | 394d777e507b171876734d871d50e47254636b9d | [
"MIT"
] | null | null | null | /*
* Copyright 2016 WebAssembly Community Group participants
*
* 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... | 32.790749 | 80 | 0.676597 | [
"vector"
] |
509c72e5eef28a94ce6fbd507a99a1650c01dd23 | 6,105 | cpp | C++ | javascript/binding.cpp | Sleen/FlexLayout | 4daacd256d5b4ef7b76b04a85c8bfa66bf10a8f1 | [
"MIT"
] | 68 | 2017-09-20T09:29:30.000Z | 2022-01-28T02:18:45.000Z | javascript/binding.cpp | amendgit/FlexLayout | 4daacd256d5b4ef7b76b04a85c8bfa66bf10a8f1 | [
"MIT"
] | 3 | 2019-04-04T06:28:55.000Z | 2021-08-05T10:24:18.000Z | javascript/binding.cpp | amendgit/FlexLayout | 4daacd256d5b4ef7b76b04a85c8bfa66bf10a8f1 | [
"MIT"
] | 6 | 2018-01-25T15:56:04.000Z | 2021-02-22T03:06:40.000Z | extern "C" {
#include "../src/FlexLayout.c"
}
#include <vector>
#include <memory>
#include <functional>
template<typename T, bool isEnum = false> struct _WrapType { using type = T; };
template<typename T> struct _WrapType<T, true> { using type = typename std::underlying_type<T>::type; };
template<typename T> stru... | 28.263889 | 144 | 0.649959 | [
"vector"
] |
50a5f4d6aa88acd54ec794c4f74d83c572808114 | 1,118 | cpp | C++ | informatics.mccme.ru/p165.cpp | bolatov/contests | 39654ec36e1b7ff62052e324428141a9564fd576 | [
"MIT"
] | null | null | null | informatics.mccme.ru/p165.cpp | bolatov/contests | 39654ec36e1b7ff62052e324428141a9564fd576 | [
"MIT"
] | null | null | null | informatics.mccme.ru/p165.cpp | bolatov/contests | 39654ec36e1b7ff62052e324428141a9564fd576 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
#endif
int n, m;
cin >> n >> m;
vector<vector<int>> vvi(n, vector<int>());
int p, q;
for (int i = 0; i < m; ++i) {
cin >> p >> q;
p--;
q--;
vvi[p].p... | 20.327273 | 48 | 0.345259 | [
"vector"
] |
50a655f8208515be6edb54b6f1c20c4e8c8f2dbd | 5,288 | cpp | C++ | src/plugins/robots/builderbot/control_interface/ci_builderbot_rangefinders_sensor.cpp | dcat52/argos3 | 16b1e1e36e33b01aa58154ef4cdda5f341dcd158 | [
"MIT"
] | 211 | 2015-01-27T20:16:40.000Z | 2022-02-25T03:11:13.000Z | src/plugins/robots/builderbot/control_interface/ci_builderbot_rangefinders_sensor.cpp | dcat52/argos3 | 16b1e1e36e33b01aa58154ef4cdda5f341dcd158 | [
"MIT"
] | 154 | 2015-02-09T20:32:38.000Z | 2022-03-30T21:35:24.000Z | src/plugins/robots/builderbot/control_interface/ci_builderbot_rangefinders_sensor.cpp | dcat52/argos3 | 16b1e1e36e33b01aa58154ef4cdda5f341dcd158 | [
"MIT"
] | 128 | 2015-02-09T10:21:49.000Z | 2022-03-31T22:24:51.000Z | /**
* @file <argos3/plugins/robots/builderbot/control_interface/ci_builderbot_rangefinders_sensor.cpp>
*
* @author Michael Allwright <allsey87@gmail.com>
*/
#include "ci_builderbot_rangefinders_sensor.h"
#ifdef ARGOS_WITH_LUA
#include <argos3/core/wrappers/lua/lua_utility.h>
#endif
namespace argos {
/*******... | 61.488372 | 171 | 0.600227 | [
"transform"
] |
50ad0b30406e244694035bfeec30566252cf636e | 13,981 | cpp | C++ | modules/tachyon/Viewer.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | 1 | 2016-05-24T19:27:01.000Z | 2016-05-24T19:27:01.000Z | modules/tachyon/Viewer.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | null | null | null | modules/tachyon/Viewer.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | null | null | null | // ======================================================================== //
// Copyright 2009-2016 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 35.665816 | 98 | 0.536299 | [
"geometry",
"vector",
"model"
] |
2708893117f83711d3638194ddd0b2e17f283a0d | 1,140 | cpp | C++ | src/sim/src/plugins/model/sensors/IMU.cpp | jiangchenzhu/crates_zhejiang | 711c9fafbdc775114345ab0ca389656db9d20df7 | [
"BSD-3-Clause"
] | 1 | 2016-03-29T00:15:47.000Z | 2016-03-29T00:15:47.000Z | src/sim/src/plugins/model/sensors/IMU.cpp | jiangchenzhu/crates_zhejiang | 711c9fafbdc775114345ab0ca389656db9d20df7 | [
"BSD-3-Clause"
] | null | null | null | src/sim/src/plugins/model/sensors/IMU.cpp | jiangchenzhu/crates_zhejiang | 711c9fafbdc775114345ab0ca389656db9d20df7 | [
"BSD-3-Clause"
] | null | null | null | #include "IMU.h"
using namespace gazebo;
// Constructor
IMU::IMU() {}
// All sensors must be configured using the current model information and the SDF
bool IMU::Configure(physics::LinkPtr link, sdf::ElementPtr root)
{
// Backup the link
linkPtr = link;
// Initialise the noise distribution
nLinAcc = NoiseFactor... | 21.509434 | 82 | 0.699123 | [
"model"
] |
2709a0f2af98ef92baaaee47d335b442aebffb4f | 14,756 | cc | C++ | src/mytest/parseBody_test.cc | swaroop0707/TinyWeb | 79d20f2bb858581cc5a0ea229bba3a54e5d1bd3e | [
"MIT"
] | 352 | 2018-02-07T08:24:43.000Z | 2022-03-31T12:35:17.000Z | src/mytest/parseBody_test.cc | zhouq3405/TinyWeb | 79d20f2bb858581cc5a0ea229bba3a54e5d1bd3e | [
"MIT"
] | 6 | 2018-02-08T11:52:12.000Z | 2022-01-20T03:37:41.000Z | src/mytest/parseBody_test.cc | zhouq3405/TinyWeb | 79d20f2bb858581cc5a0ea229bba3a54e5d1bd3e | [
"MIT"
] | 75 | 2018-02-07T08:24:42.000Z | 2021-10-03T08:20:24.000Z | /*
*Author:GeneralSandman
*Code:https://github.com/GeneralSandman/TinyWeb
*E-mail:generalsandman@163.com
*Web:www.dissigil.cn
*/
/*---XXX---
*
****************************************
*
*/
#include <tiny_http/http_parser.h>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typed... | 25.267123 | 110 | 0.399634 | [
"vector"
] |
2712d89bd9b247f52ca03cb9b89f67293e3d7b85 | 1,838 | cpp | C++ | Atcoder/Beginner172/c.cpp | Shahraaz/CP_P_S5 | b068ad02d34338337e549d92a14e3b3d9e8df712 | [
"MIT"
] | null | null | null | Atcoder/Beginner172/c.cpp | Shahraaz/CP_P_S5 | b068ad02d34338337e549d92a14e3b3d9e8df712 | [
"MIT"
] | null | null | null | Atcoder/Beginner172/c.cpp | Shahraaz/CP_P_S5 | b068ad02d34338337e549d92a14e3b3d9e8df712 | [
"MIT"
] | null | null | null | // Optimise
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "/home/shahraaz/bin/debug.h"
#else
#define db(...)
#endif
using ll = long long;
#define f first
#define s second
#define pb push_back
#define all(v) v.begin(), v.end()
const int NAX = 2e5 + 5, MOD = 1000000007;
class Solution
{
private:... | 20.886364 | 131 | 0.409684 | [
"vector"
] |
271971396c28dddb40c897a09b2e37804a038bc3 | 271 | hpp | C++ | Injector/pch.hpp | wilricknl/ACE | 53737d758827b609909844eed1bc964a734ce234 | [
"MIT"
] | null | null | null | Injector/pch.hpp | wilricknl/ACE | 53737d758827b609909844eed1bc964a734ce234 | [
"MIT"
] | null | null | null | Injector/pch.hpp | wilricknl/ACE | 53737d758827b609909844eed1bc964a734ce234 | [
"MIT"
] | null | null | null | #pragma once
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <iostream>
#include <string>
#include <vector>
#include <Windows.h>
#include <TlHelp32.h>
| 19.357143 | 45 | 0.767528 | [
"vector"
] |
271af36f82095508d59ff830e3533c7f5e75ab85 | 1,609 | cc | C++ | src/developer/debug/unwinder/unwind_local.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 210 | 2019-02-05T12:45:09.000Z | 2022-03-28T07:59:06.000Z | src/developer/debug/unwinder/unwind_local.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 5 | 2019-12-04T15:13:37.000Z | 2020-02-19T08:11:38.000Z | src/developer/debug/unwinder/unwind_local.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 73 | 2019-03-06T18:55:23.000Z | 2022-03-26T12:04:51.000Z | // Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/developer/debug/unwinder/unwind_local.h"
#include <link.h>
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <cstdio>
#in... | 27.741379 | 88 | 0.692356 | [
"vector"
] |
272095af36ae0736adfe7535fc78c342ec993216 | 1,467 | cpp | C++ | Source/Azura/RenderSystem/Src/Vulkan/Windows/VkWin32Platform.cpp | vasumahesh1/azura | 80aa23e2fb498e6288484bc49b0d5b8889db6ebb | [
"MIT"
] | 12 | 2019-01-08T23:10:37.000Z | 2021-06-04T09:48:42.000Z | Source/Azura/RenderSystem/Src/Vulkan/Windows/VkWin32Platform.cpp | vasumahesh1/azura | 80aa23e2fb498e6288484bc49b0d5b8889db6ebb | [
"MIT"
] | 38 | 2017-04-05T00:27:24.000Z | 2018-12-25T08:34:04.000Z | Source/Azura/RenderSystem/Src/Vulkan/Windows/VkWin32Platform.cpp | vasumahesh1/azura | 80aa23e2fb498e6288484bc49b0d5b8889db6ebb | [
"MIT"
] | 4 | 2019-03-27T10:07:32.000Z | 2021-07-15T03:22:27.000Z | #include "Vulkan/VkPlatform.h"
#include <Windows.h>
#include <vulkan/vulkan_win32.h>
#include "Vulkan/VkMacros.h"
namespace Azura {
namespace Vulkan {
VkSurfaceKHR VkPlatform::CreateSurface(const void* windowHandle, VkInstance instance, const Log& log_VulkanRenderSystem) {
VkWin32SurfaceCreateInfoKHR ... | 37.615385 | 140 | 0.76619 | [
"vector"
] |
27217251946098d18feb219086d5da986f82035f | 1,874 | cpp | C++ | Algorithms/Warmup/Plus_Minus.cpp | whitehatty/HackerRank | 6b0f5716ccd69cdf5857ba2d00740eef2b6520af | [
"MIT"
] | null | null | null | Algorithms/Warmup/Plus_Minus.cpp | whitehatty/HackerRank | 6b0f5716ccd69cdf5857ba2d00740eef2b6520af | [
"MIT"
] | null | null | null | Algorithms/Warmup/Plus_Minus.cpp | whitehatty/HackerRank | 6b0f5716ccd69cdf5857ba2d00740eef2b6520af | [
"MIT"
] | null | null | null | /**
Given an array of integers, calculate which fraction of its elements are positive, which fraction of its elements are negative, and which fraction of its elements are zeroes, respectively. Print the decimal value of each fraction on a new line.
Note: This challenge introduces precision problems. The test cases are... | 27.558824 | 244 | 0.666489 | [
"vector"
] |
27251e8b943fcb6d46fa22e7563745d20fda763b | 802 | cpp | C++ | codeforces/511div2/B/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | codeforces/511div2/B/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | codeforces/511div2/B/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
template <typename P, typename Q>
ostream& operator<<(ostream& os, pair<P, Q> p)
{
os << "(" << p.first << ... | 17.822222 | 52 | 0.564838 | [
"vector"
] |
272684fb1828c5d9f18a1ebacfd4e7e0a4b42b4f | 46,740 | cpp | C++ | released_plugins/v3d_plugins/terastitcher/src/presentation/PTabMergeTiles.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | released_plugins/v3d_plugins/terastitcher/src/presentation/PTabMergeTiles.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2016-12-03T05:33:13.000Z | 2016-12-03T05:33:13.000Z | released_plugins/v3d_plugins/terastitcher/src/presentation/PTabMergeTiles.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------------------------
// Copyright (c) 2012 Alessandro Bria and Giulio Iannello (University Campus Bio-Medico of Rome).
// All rights reserved.
//----------------------------------------------------------------------------------------------... | 46.786787 | 264 | 0.632199 | [
"object",
"vector",
"3d"
] |
27293254e526172dbea941542625405434dc3ca8 | 6,360 | cpp | C++ | src/Engine/Time.cpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/Engine/Time.cpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/Engine/Time.cpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | #include "Time.hpp"
#include <iomanip>
#include <iostream>
#include <algorithm>
Timer::Timer(bool canStart)
: started_(false),
paused_(false),
speed_(1.0f),
timePointTimerCreated_(std::chrono::steady_clock::now()),
reference_(std::chrono::steady_clock::now()),
accumulated_(std::chrono... | 30.873786 | 148 | 0.631132 | [
"vector"
] |
2732d238091976859563e5f7a9a65e1a61bd46b9 | 3,611 | hpp | C++ | applications/CANDLE/pilot2/tools/common.hpp | jonesholger/lbann | 3214f189a1438565d695542e076c4fa8e7332d34 | [
"Apache-2.0"
] | 194 | 2016-07-19T15:40:21.000Z | 2022-03-19T08:06:10.000Z | applications/CANDLE/pilot2/tools/common.hpp | jonesholger/lbann | 3214f189a1438565d695542e076c4fa8e7332d34 | [
"Apache-2.0"
] | 1,021 | 2016-07-19T12:56:31.000Z | 2022-03-29T00:41:47.000Z | applications/CANDLE/pilot2/tools/common.hpp | jonesholger/lbann | 3214f189a1438565d695542e076c4fa8e7332d34 | [
"Apache-2.0"
] | 74 | 2016-07-28T18:24:00.000Z | 2022-01-24T19:41:04.000Z | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... | 31.955752 | 146 | 0.580449 | [
"shape",
"vector"
] |
274afb2321cca759488e0917b30e525918fe895e | 19,000 | cpp | C++ | adapters/ns3/ns-allinone-3.26/ns-3.26/src/seed/model/seed-parser.cpp | kit-tm/seed | c6d4eaffbe25615b396aeabeae7305b724260d92 | [
"BSD-2-Clause"
] | null | null | null | adapters/ns3/ns-allinone-3.26/ns-3.26/src/seed/model/seed-parser.cpp | kit-tm/seed | c6d4eaffbe25615b396aeabeae7305b724260d92 | [
"BSD-2-Clause"
] | null | null | null | adapters/ns3/ns-allinone-3.26/ns-3.26/src/seed/model/seed-parser.cpp | kit-tm/seed | c6d4eaffbe25615b396aeabeae7305b724260d92 | [
"BSD-2-Clause"
] | null | null | null | #include "seed-parser.h"
#include <iostream>
#include <string>
#include <sstream>
#include <fstream>
#include <map>
#include <unordered_map>
#include "seed-interface.h"
#include "seed-interface-group.h"
#include "seed-node-types.h"
#include "seed-node.h"
#include "seed-node-group.h"
#include "seed-link.h"
#include "se... | 38.934426 | 169 | 0.484842 | [
"vector"
] |
27591b45447f58860ffc1832ae5b11d353640311 | 452 | cpp | C++ | exercises/pascals-triangle/example.cpp | marko213/cpp | 871529cd9c10d7c9c0b52d7e35e10ef2b9b4758f | [
"MIT"
] | 1 | 2019-07-14T18:07:13.000Z | 2019-07-14T18:07:13.000Z | exercises/pascals-triangle/example.cpp | marko213/cpp | 871529cd9c10d7c9c0b52d7e35e10ef2b9b4758f | [
"MIT"
] | 4 | 2019-09-08T15:56:22.000Z | 2021-12-03T00:53:01.000Z | exercises/pascals-triangle/example.cpp | marko213/cpp | 871529cd9c10d7c9c0b52d7e35e10ef2b9b4758f | [
"MIT"
] | 1 | 2020-03-25T15:53:16.000Z | 2020-03-25T15:53:16.000Z | #include "pascals_triangle.h"
namespace pascals_triangle
{
std::vector<std::vector<int>> generate_rows(size_t n)
{
std::vector<std::vector<int>> res;
for (size_t i = 0; i < n; i++)
{
std::vector<int> rowNum;
int val = 1;
for (size_t k = 0; k <= i; k++)
{
rowN... | 15.586207 | 53 | 0.49115 | [
"vector"
] |
2763aa6e036be7f720a8a71f9882e1a7bc6408b8 | 1,390 | cpp | C++ | cpp/dataStructure/segment/knightTournament.cpp | HieuuuLeee/WorldFinal | ea1b1e697e6e7987018a5a79402d1a2659270591 | [
"MIT"
] | null | null | null | cpp/dataStructure/segment/knightTournament.cpp | HieuuuLeee/WorldFinal | ea1b1e697e6e7987018a5a79402d1a2659270591 | [
"MIT"
] | null | null | null | cpp/dataStructure/segment/knightTournament.cpp | HieuuuLeee/WorldFinal | ea1b1e697e6e7987018a5a79402d1a2659270591 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define pb push_back
#define pf push_front
#define pp push
#define et empty
#define mp make_pair
#define For(i,a,b) for (int i=a;i<=b;i++)
#define Fod(i,b,a) for (int i=b;i>=a;i--)
#define Forl(i,a,b) for (ll i=a;i<=b;i++)
#define Fodl(i,... | 23.559322 | 80 | 0.543165 | [
"vector"
] |
27653af32a4ea1cf59a80d42962431ac83b5da40 | 9,305 | cpp | C++ | WechatExporter/core/AsyncTask.cpp | Fu-XDU/WechatExporter | eebb7375712ed5f9708348aa3205466451e5c6de | [
"Apache-2.0"
] | 1,469 | 2020-11-17T06:53:15.000Z | 2022-03-31T08:53:02.000Z | WechatExporter/core/AsyncTask.cpp | Fu-XDU/WechatExporter | eebb7375712ed5f9708348aa3205466451e5c6de | [
"Apache-2.0"
] | 80 | 2020-12-13T16:07:03.000Z | 2022-03-31T01:20:40.000Z | WechatExporter/core/AsyncTask.cpp | Fu-XDU/WechatExporter | eebb7375712ed5f9708348aa3205466451e5c6de | [
"Apache-2.0"
] | 201 | 2020-11-17T06:53:16.000Z | 2022-03-29T02:04:53.000Z | //
// AsyncTask.cpp
// WechatExporter
//
// Created by Matthew on 2021/4/20.
// Copyright © 2021 Matthew. All rights reserved.
//
#include "AsyncTask.h"
#include <curl/curl.h>
#include <iostream>
#include <fstream>
#ifdef _WIN32
#include <atlstr.h>
#ifndef NDEBUG
#include <cassert>
#endif
#endif
#include "FileSyst... | 25.148649 | 256 | 0.603009 | [
"vector"
] |
276a99369e04064c25003045d45b621108b640d5 | 11,160 | cpp | C++ | NFIQ2/NFIQ2/NFIQ2Algorithm/src/features/RVUPHistogramFeature.cpp | mahizhvannan/PYNFIQ2 | 56eac2d780c9b5becd0ca600ffa6198d3a0115a7 | [
"MIT"
] | null | null | null | NFIQ2/NFIQ2/NFIQ2Algorithm/src/features/RVUPHistogramFeature.cpp | mahizhvannan/PYNFIQ2 | 56eac2d780c9b5becd0ca600ffa6198d3a0115a7 | [
"MIT"
] | null | null | null | NFIQ2/NFIQ2/NFIQ2Algorithm/src/features/RVUPHistogramFeature.cpp | mahizhvannan/PYNFIQ2 | 56eac2d780c9b5becd0ca600ffa6198d3a0115a7 | [
"MIT"
] | 1 | 2022-02-14T03:16:05.000Z | 2022-02-14T03:16:05.000Z | #include "RVUPHistogramFeature.h"
#include "FeatureFunctions.h"
#include "include/NFIQException.h"
#include "include/Timer.hpp"
#include <sstream>
#include <opencv2/core/core.hpp>
#if defined WINDOWS || defined WIN32
#include <windows.h>
#include <float.h>
#define isnan _isnan // re-define isnan
#else
#ifndef isnan... | 32.727273 | 141 | 0.682796 | [
"vector"
] |
2776bb38d7f3cd09e58fc6ff5483e45c9730693a | 6,793 | cpp | C++ | Source/Atomic/Metrics/Metrics.cpp | phinoox/AtomicGameEngineExp | 3eb9e65e13ecf101e9fbfae8afd8517c524bd3c7 | [
"Apache-2.0",
"MIT"
] | null | null | null | Source/Atomic/Metrics/Metrics.cpp | phinoox/AtomicGameEngineExp | 3eb9e65e13ecf101e9fbfae8afd8517c524bd3c7 | [
"Apache-2.0",
"MIT"
] | 1 | 2017-02-05T16:54:00.000Z | 2017-02-05T16:54:00.000Z | Source/Atomic/Metrics/Metrics.cpp | phinoox/AtomicGameEngineExp | 3eb9e65e13ecf101e9fbfae8afd8517c524bd3c7 | [
"Apache-2.0",
"MIT"
] | null | null | null | //
// Copyright (c) 2014-2016 THUNDERBEAST GAMES LLC
//
// 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... | 25.066421 | 158 | 0.656117 | [
"object",
"vector"
] |
27805eb321498ae3c07ede48a03348b7ecd292a4 | 348 | cpp | C++ | Bit Algorithm/Find Non-Repeated Element/SolutionByAbhay.cpp | rajethanm4/Programmers-Community | d16083eb0e84403159d999d4d1a8bbf652ca51f6 | [
"MIT"
] | 8 | 2020-11-07T10:29:21.000Z | 2020-12-26T16:54:13.000Z | Bit Algorithm/Find Non-Repeated Element/SolutionByAbhay.cpp | rajethanm4/Programmers-Community | d16083eb0e84403159d999d4d1a8bbf652ca51f6 | [
"MIT"
] | null | null | null | Bit Algorithm/Find Non-Repeated Element/SolutionByAbhay.cpp | rajethanm4/Programmers-Community | d16083eb0e84403159d999d4d1a8bbf652ca51f6 | [
"MIT"
] | 2 | 2019-12-18T13:06:19.000Z | 2021-01-05T18:47:18.000Z | #include <bits/stdc++.h>
using namespace std;
int nonRepeated(vector<int> &v){
int x=v[0];
for(int i=1;i<v.size();i++){
x^=v[i];
}
return x;
}
int main(int argc, char const *argv[])
{
int n;
cin>>n;
vector<int> v1(n);
for(int i=0;i<n;i++){
cin >> v1[i];
}
cout << "\nNon Repeated Element\t:\t" << nonRepeat... | 16.571429 | 65 | 0.577586 | [
"vector"
] |
95984235b7b38e7365b73b29a2c5d13eda443202 | 7,862 | cc | C++ | src/core/utils/json/webjson.cc | ilariom/wildcat | 814f054e0cf3ef0def1f6481005ffd3f0ac42d1b | [
"MIT"
] | 11 | 2018-11-07T08:54:21.000Z | 2022-02-20T22:40:47.000Z | src/core/utils/json/webjson.cc | ilariom/wildcat | 814f054e0cf3ef0def1f6481005ffd3f0ac42d1b | [
"MIT"
] | null | null | null | src/core/utils/json/webjson.cc | ilariom/wildcat | 814f054e0cf3ef0def1f6481005ffd3f0ac42d1b | [
"MIT"
] | 1 | 2020-07-24T09:18:48.000Z | 2020-07-24T09:18:48.000Z | #include "webjson.h"
#include "gason.h"
#include "webstrings.h"
#include <cstring>
#include <functional>
namespace webjson
{
namespace
{
Object buildObjects(JsonValue& jsonValue)
{
Object obj;
switch(jsonValue.getTag())
{
case JSON_NUMBER:
obj ... | 19.803526 | 139 | 0.480158 | [
"object",
"vector"
] |
959cc526957fd621cbbabbcdf8a1f1db83506cf2 | 185,972 | cpp | C++ | singleheader/simdjson.cpp | easyaspi314/simdjson | 94bc1a5e67420ed5b5a543732d2cfb274f273f80 | [
"Apache-2.0"
] | null | null | null | singleheader/simdjson.cpp | easyaspi314/simdjson | 94bc1a5e67420ed5b5a543732d2cfb274f273f80 | [
"Apache-2.0"
] | null | null | null | singleheader/simdjson.cpp | easyaspi314/simdjson | 94bc1a5e67420ed5b5a543732d2cfb274f273f80 | [
"Apache-2.0"
] | null | null | null | /* auto-generated on Sun Oct 6 13:23:03 DST 2019. Do not edit! */
#include "simdjson.h"
/* used for http://dmalloc.com/ Dmalloc - Debug Malloc Library */
#ifdef DMALLOC
#include "dmalloc.h"
#endif
/* begin file src/simdjson.cpp */
#include <map>
namespace simdjson {
const std::map<int, const std::string> error_stri... | 35.208633 | 126 | 0.634058 | [
"object"
] |
959d99eeac90f6f984653fda3ee80a559e9a1c36 | 1,116 | cpp | C++ | src/EvaluateReversePolishNotation.cpp | harborn/LeetCode | 8488c0bcf306b8672492fd6220e496e335e2b9fe | [
"MIT"
] | null | null | null | src/EvaluateReversePolishNotation.cpp | harborn/LeetCode | 8488c0bcf306b8672492fd6220e496e335e2b9fe | [
"MIT"
] | 1 | 2021-12-14T15:56:11.000Z | 2021-12-14T15:56:11.000Z | src/EvaluateReversePolishNotation.cpp | harborn/LeetCode | 8488c0bcf306b8672492fd6220e496e335e2b9fe | [
"MIT"
] | null | null | null |
#include <iostream>
#include <string>
#include <vector>
#include <stack>
using namespace std;
int evalRPN(vector<string> &tokens) {
stack<int> st;
int size = tokens.size();
int i = 0;
while (i < size) {
if (tokens[i] == "+") {
if (st.size() >= 2) {
int i1 = st.top(); st.pop();
int i2 = st.top(); st... | 18 | 44 | 0.469534 | [
"vector"
] |
95a0498d5dbc1c105900dc74aa1a013d801373fe | 9,907 | cpp | C++ | airsim_ros_interface/src/kitti_utils.cpp | JonathanSchmalhofer/RecursiveStereoUAV | 005642f5afbfe719c632ce81411af9ac5e8522f5 | [
"MIT"
] | 15 | 2018-04-07T18:07:23.000Z | 2022-02-14T11:48:34.000Z | airsim_ros_interface/src/kitti_utils.cpp | JonathanSchmalhofer/RecursiveStereoUAV | 005642f5afbfe719c632ce81411af9ac5e8522f5 | [
"MIT"
] | 1 | 2017-10-21T12:55:07.000Z | 2017-10-21T14:33:09.000Z | airsim_ros_interface/src/kitti_utils.cpp | JonathanSchmalhofer/RecursiveStereoUAV | 005642f5afbfe719c632ce81411af9ac5e8522f5 | [
"MIT"
] | 8 | 2017-10-11T09:10:51.000Z | 2021-05-04T06:28:24.000Z | ///
/// @file
/// @copyright Copyright (C) 2017-2018, Jonathan Bryan Schmalhofer
///
/// @brief KITTI DataSet Utils
///
#include "kitti_utils.hpp"
namespace kitti_utils
{
// Source for GetFileList(): https://gist.github.com/vivithemage/9517678
std::vector<std::string> GetFileList(const std::string& path, const std::... | 35.765343 | 150 | 0.595841 | [
"vector"
] |
95a68ba8cbe8c32972bc1a0b731f5797bf0b925e | 14,194 | cpp | C++ | FlingEngine/Graphics/src/OffscreenSubpass.cpp | BenjaFriend/EngineBay | 402d49dc4378f0672fb66053effa49867b8c6726 | [
"MIT"
] | 315 | 2019-07-27T23:24:26.000Z | 2022-03-23T18:55:31.000Z | FlingEngine/Graphics/src/OffscreenSubpass.cpp | flingengine/FlingEngine | 402d49dc4378f0672fb66053effa49867b8c6726 | [
"MIT"
] | 109 | 2019-07-14T19:47:03.000Z | 2022-02-23T21:34:45.000Z | FlingEngine/Graphics/src/OffscreenSubpass.cpp | BenjaFriend/EngineBay | 402d49dc4378f0672fb66053effa49867b8c6726 | [
"MIT"
] | 18 | 2019-11-03T16:06:26.000Z | 2022-01-23T03:32:19.000Z | #include "OffscreenSubpass.h"
#include "FrameBuffer.h"
#include "CommandBuffer.h"
#include "PhyscialDevice.h"
#include "LogicalDevice.h"
#include "GraphicsHelpers.h"
#include "Components/Transform.h"
#include "MeshRenderer.h"
#include "SwapChain.h"
#include "UniformBufferObject.h"
#include "FirstPersonCamera.h"
#includ... | 33.635071 | 182 | 0.756376 | [
"mesh",
"render",
"vector",
"model",
"transform"
] |
95a6e25aff298ffc646e508458a4cb715b7b2796 | 1,036 | cpp | C++ | 1002.cpp | zhulk3/leetCode | 0a1dbf8d58558ab9b05c5150aafa9e4344cec5bc | [
"Apache-2.0"
] | 2 | 2020-03-13T08:14:01.000Z | 2021-09-03T15:27:49.000Z | 1002.cpp | zhulk3/LeetCode | 0a1dbf8d58558ab9b05c5150aafa9e4344cec5bc | [
"Apache-2.0"
] | null | null | null | 1002.cpp | zhulk3/LeetCode | 0a1dbf8d58558ab9b05c5150aafa9e4344cec5bc | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <string>
#include <iostream>
using namespace std;
class Solution {
public:
vector<string> commonChars(vector<string>& A) {
vector<string>ans;
int len = A.size();
string temp;
string::iterator it;
string first = A[0];
for (int i = 0; i < first.length(); i++) {
temp = f... | 17.266667 | 57 | 0.482625 | [
"vector"
] |
95b28aff1c2448abbfdf1b1dd5c500dce8af85b9 | 60,325 | cpp | C++ | Samples/Win7Samples/netds/fax/outboundrouting/cpp/OutboundRouting.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/netds/fax/outboundrouting/cpp/OutboundRouting.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/netds/fax/outboundrouting/cpp/OutboundRouting.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | //==========================================================================
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
/... | 47.991249 | 285 | 0.337903 | [
"object"
] |
95becb7402065b65394db0251f3fff3cc10ea09c | 8,117 | cpp | C++ | test/stringutil_test.cpp | fuersten/csvsqldb | 1b766ddf253805e31f9840cd3081cba559018a06 | [
"BSD-3-Clause"
] | 5 | 2015-09-10T08:53:41.000Z | 2020-05-30T18:42:20.000Z | test/stringutil_test.cpp | fuersten/csvsqldb | 1b766ddf253805e31f9840cd3081cba559018a06 | [
"BSD-3-Clause"
] | 20 | 2015-09-29T16:16:07.000Z | 2021-06-13T08:08:05.000Z | test/stringutil_test.cpp | fuersten/csvsqldb | 1b766ddf253805e31f9840cd3081cba559018a06 | [
"BSD-3-Clause"
] | 3 | 2015-09-09T22:51:44.000Z | 2020-11-11T13:19:42.000Z | //
// csvsqldb test
//
// BSD 3-Clause License
// Copyright (c) 2015, Lars-Christian Fürstenberg
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted
// provided that the following conditions are met:
//
// 1. Redistributions of source code ... | 33.962343 | 128 | 0.646667 | [
"vector",
"3d"
] |
95c5c81a8720bd79fa992fe356cb5a52f0e3b701 | 1,934 | hpp | C++ | src/libs/daemonlib/sc_heartbeatthread.hpp | suggitpe/RPMS | 7a12da0128f79b8b0339fd7146105ba955079b8c | [
"Apache-2.0"
] | null | null | null | src/libs/daemonlib/sc_heartbeatthread.hpp | suggitpe/RPMS | 7a12da0128f79b8b0339fd7146105ba955079b8c | [
"Apache-2.0"
] | null | null | null | src/libs/daemonlib/sc_heartbeatthread.hpp | suggitpe/RPMS | 7a12da0128f79b8b0339fd7146105ba955079b8c | [
"Apache-2.0"
] | null | null | null | #ifndef __sc_heartbeatthread_hpp
#define __sc_heartbeatthread_hpp
#include <base/sa_threadbase.hpp>
#include <base/st_spointer.hpp>
namespace rpms
{
// pre decl
class SA_Socket;
/**
* Heartbeater thread just replies to any incoming heartbeats
*
* @author Peter Suggitt (2005)
* @note ... | 32.779661 | 102 | 0.58635 | [
"object"
] |
95cf44c852c843fda661d8e60393545fa8925856 | 816 | cpp | C++ | Leetcode/Array/count-number-of-teams.cpp | rajnishmsrit/technical-interview-coding | 0a2a72b54d4865ee38b85184425d4a4875d95f01 | [
"MIT"
] | null | null | null | Leetcode/Array/count-number-of-teams.cpp | rajnishmsrit/technical-interview-coding | 0a2a72b54d4865ee38b85184425d4a4875d95f01 | [
"MIT"
] | null | null | null | Leetcode/Array/count-number-of-teams.cpp | rajnishmsrit/technical-interview-coding | 0a2a72b54d4865ee38b85184425d4a4875d95f01 | [
"MIT"
] | null | null | null | # include <bits/stdc++.h>
using namespace std;
class Solution {
public:
int numTeams(vector<int>& rating) {
int smaller=0,larger=0;
int frequency=0;
// small|med|large or large|med|small
for (int i = 0; i < rating.size(); i++)
{
int smaller=0,larger=0;
... | 21.473684 | 51 | 0.446078 | [
"vector"
] |
95d1e17af972bbf9929ee95f79a5a29fd135b004 | 4,528 | cpp | C++ | bazaar/Uniq/Posix.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | bazaar/Uniq/Posix.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | bazaar/Uniq/Posix.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | #include "Uniq.h"
NAMESPACE_UPP
#ifdef PLATFORM_POSIX
// send command line to callback handler
bool Uniq::SendCmdLine(int pipe)
{
char buf[256];
Vector<String>v;
fd_set rfds;
struct timeval tv;
FD_ZERO(&rfds);
FD_SET(pipe, &rfds);
tv.tv_sec = 0;
tv.tv_usec = 2000;
if(!select(pipe+1, &rfds... | 23.831579 | 75 | 0.628534 | [
"vector"
] |
95e45a994b464bb7c2bc72b72d5c7c27696e764c | 2,084 | cpp | C++ | AlgorithmStudyCpp/TIMETRIP_upsk1.cpp | waltechel/AlgorithmCpp | 5a02d1c25d987e6cb0e9953aa87c181f659c8e7c | [
"MIT"
] | 2 | 2021-08-01T13:43:00.000Z | 2021-12-08T10:02:55.000Z | AlgorithmStudyCpp/TIMETRIP_upsk1.cpp | waltechel/AlgorithmStudyCpp | c0557c2cd847ca9113bbb094403ea2e922787eda | [
"MIT"
] | null | null | null | AlgorithmStudyCpp/TIMETRIP_upsk1.cpp | waltechel/AlgorithmStudyCpp | c0557c2cd847ca9113bbb094403ea2e922787eda | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int V, V2;
const int INF = 10000000;
vector<pair<int, int>> adj[101];
pair<int, int> bellman2(int src, int target) {
vector<int> Upper(V, INF);
vector<int> Lower(V, INF);
Upper[src] = 0; Lower[src] = 0;
bool Uflag = false, Lflag = false;
for (int iter = ... | 31.575758 | 68 | 0.390115 | [
"vector"
] |
95f2b3f0e3e3406b6ae65e529c2150ada8902f0e | 2,523 | cc | C++ | src/texture.cc | webbbn/realtime_network_av | 973307babd44b0bb5908b688c60b1d3c40a0762d | [
"Apache-2.0"
] | 4 | 2019-03-13T14:37:12.000Z | 2019-11-07T07:11:53.000Z | src/texture.cc | webbbn/realtime-network-av | 973307babd44b0bb5908b688c60b1d3c40a0762d | [
"Apache-2.0"
] | null | null | null | src/texture.cc | webbbn/realtime-network-av | 973307babd44b0bb5908b688c60b1d3c40a0762d | [
"Apache-2.0"
] | null | null | null |
#include <iostream>
#include <SDL_image.h>
#include "texture.hh"
Texture::Texture(SDL_Renderer *renderer) : m_renderer(renderer) {
// Initialize
m_texture = NULL;
m_width = 0;
m_height = 0;
}
Texture::~Texture() {
// Deallocate
free();
}
bool Texture::load_from_file(const std::s... | 23.801887 | 98 | 0.619897 | [
"render"
] |
95fac1a8e5a2ce75d992a6ae6098c72b42637207 | 2,188 | cpp | C++ | aws-cpp-sdk-sagemaker/source/model/RStudioServerProUserGroup.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-sagemaker/source/model/RStudioServerProUserGroup.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-sagemaker/source/model/RStudioServerProUserGroup.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sagemaker/model/RStudioServerProUserGroup.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespac... | 30.816901 | 94 | 0.652651 | [
"model"
] |
95fe70403dce3ca1369932172d5b9159549d7397 | 19,385 | cpp | C++ | doomtool/cefclient_osr_widget_win.cpp | teaegg/cef3-windows-sample | 253e3f00cb3c82ca3ce4bcc5cb6cc56f026c40c0 | [
"MIT"
] | 23 | 2015-03-26T02:23:22.000Z | 2021-12-06T05:53:40.000Z | doomtool/cefclient_osr_widget_win.cpp | mapduty/cef3-windows-sample | 253e3f00cb3c82ca3ce4bcc5cb6cc56f026c40c0 | [
"MIT"
] | null | null | null | doomtool/cefclient_osr_widget_win.cpp | mapduty/cef3-windows-sample | 253e3f00cb3c82ca3ce4bcc5cb6cc56f026c40c0 | [
"MIT"
] | 10 | 2015-04-17T10:37:18.000Z | 2019-09-06T18:56:04.000Z | // Copyright (c) 2011 The Chromium Embedded Framework 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 "cefclient_osr_widget_win.h"
#include <windowsx.h>
#include "include/cef_runnable.h"
#include "resource.h"
#include "uti... | 26.701102 | 104 | 0.698942 | [
"render"
] |
2503da297b138cecf33429d0016d6e477d6f6cc3 | 2,634 | cpp | C++ | Hacker-Rank/Algorithms/implementation/bomber-man21.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | 1 | 2019-05-20T14:38:05.000Z | 2019-05-20T14:38:05.000Z | Hacker-Rank/Algorithms/implementation/bomber-man21.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | null | null | null | Hacker-Rank/Algorithms/implementation/bomber-man21.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int ax[]={1,0,-1,0};
int by[]={0,1,0,-1};
vector<vector<int>> v;
int m,n;
bool isvalid(int x,int y)
{
if(x>=0&&x<m&&y>=0&&y<n) return true;
return false;
}
void blast()
{
for(int i=0;i<m;i++)
{
for(int j=0;j<n;j++)
{
if(v[i][... | 16.670886 | 73 | 0.345103 | [
"vector"
] |
250dfc1642735dce17dc6b1d07692049747547d9 | 5,370 | hpp | C++ | include/GlobalNamespace/SliderControllerBase.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/SliderControllerBase.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/SliderControllerBase.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#include ... | 47.522124 | 201 | 0.75121 | [
"object",
"vector"
] |
2512364703976b72e25dc027aa9663f39124242d | 3,744 | cpp | C++ | src/ADT/SharedArray.cpp | mishazharov/caffeine | a1a8ad5bd2d69b5378d71d15ddec4658ea34f057 | [
"MIT"
] | 17 | 2021-03-04T01:10:22.000Z | 2022-03-30T18:33:14.000Z | src/ADT/SharedArray.cpp | mishazharov/caffeine | a1a8ad5bd2d69b5378d71d15ddec4658ea34f057 | [
"MIT"
] | 320 | 2020-11-16T02:42:50.000Z | 2022-03-31T16:43:26.000Z | src/ADT/SharedArray.cpp | mishazharov/caffeine | a1a8ad5bd2d69b5378d71d15ddec4658ea34f057 | [
"MIT"
] | 6 | 2020-11-10T02:37:10.000Z | 2021-12-25T06:58:44.000Z |
#include "caffeine/ADT/SharedArray.h"
#include "caffeine/Support/Assert.h"
namespace caffeine {
SharedArray::SharedArray(const std::vector<char>& data)
: data_(data), size_(data.size()) {}
SharedArray::SharedArray(std::vector<char>&& data) : data_(std::move(data)) {
size_ = std::get<std::vector<char>>(data_).s... | 25.297297 | 78 | 0.615652 | [
"vector"
] |
2515101249f8b4f23d7b1894a181b94f42a31865 | 3,220 | cpp | C++ | tests/Mutators/ScalarValueMutatorTest.cpp | clagah/mull | 9b5a7824b4f3ecdeff64e3b77ee63db2b40b3f99 | [
"Apache-2.0"
] | null | null | null | tests/Mutators/ScalarValueMutatorTest.cpp | clagah/mull | 9b5a7824b4f3ecdeff64e3b77ee63db2b40b3f99 | [
"Apache-2.0"
] | null | null | null | tests/Mutators/ScalarValueMutatorTest.cpp | clagah/mull | 9b5a7824b4f3ecdeff64e3b77ee63db2b40b3f99 | [
"Apache-2.0"
] | 1 | 2019-06-10T02:43:04.000Z | 2019-06-10T02:43:04.000Z | #include "mull/Mutators/ScalarValueMutator.h"
#include "FixturePaths.h"
#include "TestModuleFactory.h"
#include "mull/Config/Configuration.h"
#include "mull/Filter.h"
#include "mull/ModuleLoader.h"
#include "mull/MutationPoint.h"
#include "mull/MutationsFinder.h"
#include "mull/Program/Program.h"
#include "mull/Testee.... | 37.011494 | 78 | 0.75559 | [
"vector"
] |
2516763e6b029746cf53e4421fef9169c533a3c3 | 9,785 | cpp | C++ | src/gsbn/Database.cpp | herenvarno/gsbn | 47ed0932b605d8b3cf9661f9308908364ad5892e | [
"MIT"
] | 2 | 2016-08-12T15:06:02.000Z | 2021-10-05T08:12:17.000Z | src/gsbn/Database.cpp | herenvarno/gsbn | 47ed0932b605d8b3cf9661f9308908364ad5892e | [
"MIT"
] | 2 | 2017-04-23T17:22:23.000Z | 2017-05-25T14:22:51.000Z | src/gsbn/Database.cpp | herenvarno/gsbn | 47ed0932b605d8b3cf9661f9308908364ad5892e | [
"MIT"
] | null | null | null | #include "gsbn/Database.hpp"
namespace gsbn{
Database::Database() : _initialized(false){
}
Database::~Database(){
for(map<string, void*>::iterator it=_sync_vectors.begin(); it!=_sync_vectors.end(); it++){
if(it->first.substr(it->first.length()-2) == "_i"){
delete (SyncVector<int>*)(it->second);
}else if(it-... | 32.83557 | 91 | 0.692591 | [
"vector"
] |
2522005b7a2cafbf43c3107e88c8441ed1d0c9a8 | 439 | cpp | C++ | HashTables/Intersection of 2 Arrays.cpp | LynX-gh/LeetCode_Solutions | a0d03f8df0e120907bcdde94800587fcd4f05b60 | [
"MIT"
] | null | null | null | HashTables/Intersection of 2 Arrays.cpp | LynX-gh/LeetCode_Solutions | a0d03f8df0e120907bcdde94800587fcd4f05b60 | [
"MIT"
] | null | null | null | HashTables/Intersection of 2 Arrays.cpp | LynX-gh/LeetCode_Solutions | a0d03f8df0e120907bcdde94800587fcd4f05b60 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> intersection(vector<int>& nums1, vector<int>& nums2) {
std::unordered_set<int> nums1_set{nums1.begin(),nums1.end()};
std::unordered_set<int> nums2_set{nums2.begin(),nums2.end()};
std::vector<int> intersect;
for (int& i: nums1_set)
... | 31.357143 | 70 | 0.567198 | [
"vector"
] |
25264a5cd19683ed50eada350025caf2a3b8dc17 | 4,174 | cc | C++ | src/commands.cc | varqox/img2tex | 526b6f07d49d03eab40b3ad1d5e58fc91fc33a0e | [
"MIT"
] | 4 | 2019-09-06T22:40:20.000Z | 2021-10-10T10:20:26.000Z | src/commands.cc | varqox/img2tex | 526b6f07d49d03eab40b3ad1d5e58fc91fc33a0e | [
"MIT"
] | null | null | null | src/commands.cc | varqox/img2tex | 526b6f07d49d03eab40b3ad1d5e58fc91fc33a0e | [
"MIT"
] | null | null | null | #include "commands.h"
#include "symbol_database.h"
#include "untex_img.h"
#include "utilities.h"
#include <algorithm>
#include <filesystem>
#include <unistd.h>
using std::cerr;
using std::cin;
using std::cout;
using std::deque;
using std::endl;
using std::fixed;
using std::ifstream;
using std::max;
using std::min;
us... | 23.851429 | 77 | 0.666747 | [
"vector"
] |
2527e0809ae8eaeb2efe7ab0028642a8298f4eab | 8,677 | cpp | C++ | src/populate_grasp_dataset.cpp | lia2790/grasp-learning | e32c58eff37c1a951e914705a916452044c1d019 | [
"BSD-3-Clause"
] | 5 | 2017-11-08T12:51:50.000Z | 2021-01-26T12:17:22.000Z | src/populate_grasp_dataset.cpp | lia2790/grasp-learning | e32c58eff37c1a951e914705a916452044c1d019 | [
"BSD-3-Clause"
] | null | null | null | src/populate_grasp_dataset.cpp | lia2790/grasp-learning | e32c58eff37c1a951e914705a916452044c1d019 | [
"BSD-3-Clause"
] | 3 | 2017-05-30T14:59:28.000Z | 2019-12-11T13:34:27.000Z | /*
Software License Agreement (BSD License)
Copyright (c) 2016--, Liana Bertoni (liana.bertoni@gmail.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain... | 31.21223 | 145 | 0.590527 | [
"geometry",
"vector",
"model"
] |
252c65602756a466c6e5ac96f3df6f1067d930ce | 95,736 | cpp | C++ | dev/floyd_speak/llvm_pipeline/floyd_llvm_runtime.cpp | PavelVozenilek/floyd | debc34005bb85000f78d08aa979bcf6a2dad4fb0 | [
"MIT"
] | null | null | null | dev/floyd_speak/llvm_pipeline/floyd_llvm_runtime.cpp | PavelVozenilek/floyd | debc34005bb85000f78d08aa979bcf6a2dad4fb0 | [
"MIT"
] | null | null | null | dev/floyd_speak/llvm_pipeline/floyd_llvm_runtime.cpp | PavelVozenilek/floyd | debc34005bb85000f78d08aa979bcf6a2dad4fb0 | [
"MIT"
] | null | null | null | //
// floyd_llvm_runtime.cpp
// floyd_speak
//
// Created by Marcus Zetterquist on 2019-04-24.
// Copyright © 2019 Marcus Zetterquist. All rights reserved.
//
#include "floyd_llvm_runtime.h"
#include "floyd_llvm_codegen.h"
#include "floyd_runtime.h"
#include "sha1_class.h"
#include "text_parser.h"
#include "byte... | 31.933289 | 226 | 0.736076 | [
"object",
"vector"
] |
252f9d02ef58ea05308aaf0595c526681b26c87a | 2,445 | cc | C++ | src/route_path_utils.cc | comrob/tspns | 976875a7d180a72e8a341d404cded5ebd327b76c | [
"BSD-2-Clause"
] | null | null | null | src/route_path_utils.cc | comrob/tspns | 976875a7d180a72e8a341d404cded5ebd327b76c | [
"BSD-2-Clause"
] | null | null | null | src/route_path_utils.cc | comrob/tspns | 976875a7d180a72e8a341d404cded5ebd327b76c | [
"BSD-2-Clause"
] | null | null | null | /*
* File name: route_path_utils.cc
* Date: 2016/12/10 18:13
* Author: Jan Faigl
*/
#include <cmath>
#include <cstdio>
#include "route_path_utils.h"
/// - function -----------------------------------------------------------------
double get_path_length(const CoordsVector &pts, const double R, bool closed... | 28.430233 | 107 | 0.441309 | [
"vector"
] |
25349655d05413a88546197628fdfd29048fa7ce | 2,093 | cc | C++ | media/gpu/windows/hresult_status_debug_device.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | media/gpu/windows/hresult_status_debug_device.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | media/gpu/windows/hresult_status_debug_device.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/gpu/windows/hresult_status_debug_device.h"
#include "media/base/media_serializers.h"
#include "media/base/win/hresult_status_helper.h"
na... | 32.703125 | 76 | 0.684663 | [
"vector"
] |
253aae7183e1151c72286350ae40a2177483b71f | 14,425 | cpp | C++ | ffmpeg_output.cpp | iwo/SCR-Screen-Recorder-native | 7c136d2835fa7163b2e7576602d05c3d7cba9417 | [
"Apache-2.0"
] | 7 | 2017-02-28T03:49:49.000Z | 2020-07-31T19:03:53.000Z | ffmpeg_output.cpp | iwo/SCR-Screen-Recorder-native | 7c136d2835fa7163b2e7576602d05c3d7cba9417 | [
"Apache-2.0"
] | null | null | null | ffmpeg_output.cpp | iwo/SCR-Screen-Recorder-native | 7c136d2835fa7163b2e7576602d05c3d7cba9417 | [
"Apache-2.0"
] | 10 | 2017-02-04T07:01:59.000Z | 2020-11-12T10:20:37.000Z | #include "ffmpeg_output.h"
void FFmpegOutput::setupOutput() {
int ret;
loadFFmpegComponents();
setupOutputContext();
setupVideoStream();
setupFrames();
if (audioSource != SCR_AUDIO_MUTE) {
setupAudioOutput();
}
setupOutputFile();
if (audioSource != SCR_AUDIO_MUTE) {
... | 30.82265 | 102 | 0.589185 | [
"3d"
] |
253d4e2c08d7685107382cdd3c82da3c1a34b9a7 | 5,015 | cpp | C++ | src/main/util/common.cpp | sykhro/vgmtrans-qt | 6d0780bdaaac29ffe118b9be2e2ad87401b426fe | [
"Zlib"
] | 18 | 2018-01-04T17:42:15.000Z | 2021-05-26T02:52:22.000Z | src/main/util/common.cpp | sykhro/vgmtrans-qt | 6d0780bdaaac29ffe118b9be2e2ad87401b426fe | [
"Zlib"
] | 6 | 2017-10-19T16:47:19.000Z | 2021-09-10T15:26:24.000Z | src/main/util/common.cpp | sykhro/vgmtrans-qt | 6d0780bdaaac29ffe118b9be2e2ad87401b426fe | [
"Zlib"
] | 1 | 2017-10-19T16:40:12.000Z | 2017-10-19T16:40:12.000Z | /*
* VGMTrans (c) 2002-2019
* Licensed under the zlib license,
* refer to the included LICENSE.txt file
*/
#include "common.h"
#include <string>
#include <cstring>
#include <array>
#include <gsl-lite.hpp>
#define ZLIB_CONST
#include <zlib.h>
std::string removeExtFromPath(const std::string &s) {
size_t i = s.... | 25.850515 | 96 | 0.575673 | [
"vector"
] |
85916f728748015fdaaecc25acbdc0693d9c18d2 | 3,039 | cpp | C++ | call-by-cpp/call.cpp | meixiansen/ECO-pytorch | 31a1b8fc9c41351eae3fba7c81a4af4f658d0a40 | [
"BSD-2-Clause"
] | null | null | null | call-by-cpp/call.cpp | meixiansen/ECO-pytorch | 31a1b8fc9c41351eae3fba7c81a4af4f658d0a40 | [
"BSD-2-Clause"
] | null | null | null | call-by-cpp/call.cpp | meixiansen/ECO-pytorch | 31a1b8fc9c41351eae3fba7c81a4af4f658d0a40 | [
"BSD-2-Clause"
] | null | null | null | #include <torch/script.h> // One-stop header.
#include <iostream>
#include <memory>
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <ATen/ATen.h>
#include <torch/torch.h>
int main(){
// Deserialize the ScriptModule from a file using torch::jit::load().
std::shared_ptr<torch::jit::script... | 33.395604 | 101 | 0.654821 | [
"vector",
"model"
] |
859eb08f6ef4e0869dfe85da3e4bf3b4c57b8911 | 1,382 | cxx | C++ | test/common_test.cxx | amarps/amaynet | 58d3c3fddfaf410eaf86da5df22773b5cab9c004 | [
"MIT"
] | null | null | null | test/common_test.cxx | amarps/amaynet | 58d3c3fddfaf410eaf86da5df22773b5cab9c004 | [
"MIT"
] | null | null | null | test/common_test.cxx | amarps/amaynet | 58d3c3fddfaf410eaf86da5df22773b5cab9c004 | [
"MIT"
] | null | null | null | #include "common.hxx"
#include <gtest/gtest.h>
TEST(CommonTest, URL_Ttest)
{
// Call to default constructor will return empty object
AMAYNET::URL_T url0;
ASSERT_TRUE(url0.protocol.empty());
ASSERT_TRUE(url0.host.empty());
ASSERT_TRUE(url0.path.empty());
// test url without specifying protocol and path
A... | 30.711111 | 66 | 0.695369 | [
"object"
] |
85a41b7b3e0dd5a155176ef2f2c2f164411d6ff6 | 2,128 | hpp | C++ | lib/percy/include/percy/tt_utils.hpp | hriener/copycat | caae1899e88ad3726061903d319b97eff7a684b6 | [
"MIT"
] | 2 | 2019-04-25T13:42:09.000Z | 2019-05-17T08:21:45.000Z | lib/percy/include/percy/tt_utils.hpp | hriener/copycat | caae1899e88ad3726061903d319b97eff7a684b6 | [
"MIT"
] | 1 | 2019-06-03T16:43:01.000Z | 2019-06-03T18:28:55.000Z | lib/percy/include/percy/tt_utils.hpp | hriener/copycat | caae1899e88ad3726061903d319b97eff7a684b6 | [
"MIT"
] | 1 | 2019-05-31T10:23:12.000Z | 2019-05-31T10:23:12.000Z | #pragma once
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#include <kitty/bit_operations.hpp>
#include <kitty/constructors.hpp>
#include <kitty/dynamic_truth_table.hpp>
#include <kitty/npn.hpp>
#include <kitty/operations.hpp>
#include <kitty/static_truth_table.hpp>
#include <unordered_set>
#... | 31.294118 | 140 | 0.56062 | [
"transform"
] |
85aa9ac165d686f3cd162917afb60e9b2449d49f | 2,227 | hpp | C++ | Includes/Core/Math/CG.hpp | ADMTec/CubbyFlow | c71457fd04ccfaf3ef22772bab9bcec4a0a3b611 | [
"MIT"
] | 216 | 2017-01-25T04:34:30.000Z | 2021-07-15T12:36:06.000Z | Includes/Core/Math/CG.hpp | ADMTec/CubbyFlow | c71457fd04ccfaf3ef22772bab9bcec4a0a3b611 | [
"MIT"
] | 323 | 2017-01-26T13:53:13.000Z | 2021-07-14T16:03:38.000Z | Includes/Core/Math/CG.hpp | ADMTec/CubbyFlow | c71457fd04ccfaf3ef22772bab9bcec4a0a3b611 | [
"MIT"
] | 33 | 2017-01-25T05:05:49.000Z | 2021-06-17T17:30:56.000Z | // This code is based on Jet framework.
// Copyright (c) 2018 Doyub Kim
// CubbyFlow is voxel-based fluid simulation engine for computer games.
// Copyright (c) 2020 CubbyFlow Team
// Core Part: Chris Ohk, Junwoo Hwang, Jihong Sin, Seungwoo Yoo
// AI Part: Dongheon Cho, Minseo Kim
// We are making my contributions/subm... | 33.742424 | 80 | 0.717557 | [
"vector"
] |
85ac474c201f3c151648d520f704ecf8cf95f452 | 746 | cc | C++ | leet_code/Ugly_Number_II/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | leet_code/Ugly_Number_II/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | leet_code/Ugly_Number_II/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int nthUglyNumber(int n) {
priority_queue<long long, vector<long long>, greater<long long> > pq;
vector<long long> candidate({2, 3, 5});
unordered_set<long long> exist;
pq.push(1);
exist.insert(1);
int ret = 0;
for (int i = n; i > 0; -... | 29.84 | 94 | 0.451743 | [
"vector"
] |
85aee34e2e26b4758690c1a2a5261ce9d574cdb7 | 776 | cc | C++ | leetcode/Array/find_all_numbers_disappeared_in_an_array.cc | LIZHICHAOUNICORN/Toolkits | db45dac4de14402a21be0c40ba8e87b4faeda1b6 | [
"Apache-2.0"
] | null | null | null | leetcode/Array/find_all_numbers_disappeared_in_an_array.cc | LIZHICHAOUNICORN/Toolkits | db45dac4de14402a21be0c40ba8e87b4faeda1b6 | [
"Apache-2.0"
] | null | null | null | leetcode/Array/find_all_numbers_disappeared_in_an_array.cc | LIZHICHAOUNICORN/Toolkits | db45dac4de14402a21be0c40ba8e87b4faeda1b6 | [
"Apache-2.0"
] | null | null | null | // Author: Zhichao Li
// Time: 2021年06月19日
#include <vector>
using std::vector;
class Solution {
public:
vector<int> findDisappearedNumbers(vector<int>& nums) {
int n = nums.size();
for (auto& num : nums) {
int x = (num - 1) % n;
nums[x] += n;
}
vector<int> ret;
for (int i = 0; i < ... | 18.926829 | 57 | 0.496134 | [
"vector"
] |
85b810fc6bc911832a29bcb2bb7c7bce71fb6125 | 1,484 | hpp | C++ | qipython/pyfuture.hpp | Maelic/libqi-python | d5e250a7ce1b6039bb1f57f750cab51412dfecca | [
"BSD-3-Clause"
] | 7 | 2015-08-12T01:25:11.000Z | 2021-07-15T11:08:34.000Z | qipython/pyfuture.hpp | Maelic/libqi-python | d5e250a7ce1b6039bb1f57f750cab51412dfecca | [
"BSD-3-Clause"
] | 10 | 2015-10-01T11:33:53.000Z | 2022-03-23T10:19:33.000Z | qipython/pyfuture.hpp | Maelic/libqi-python | d5e250a7ce1b6039bb1f57f750cab51412dfecca | [
"BSD-3-Clause"
] | 7 | 2015-02-24T10:38:52.000Z | 2022-03-14T10:18:26.000Z | /*
** Copyright (C) 2020 SoftBank Robotics Europe
** See COPYING for the license
*/
#pragma once
#ifndef QIPYTHON_PYFUTURE_HPP
#define QIPYTHON_PYFUTURE_HPP
#include <qipython/common.hpp>
#include <qipython/pyguard.hpp>
#include <qi/future.hpp>
#include <qi/anyvalue.hpp>
namespace qi
{
namespace py
{
using Futur... | 23.555556 | 79 | 0.704178 | [
"object"
] |
85c6124db8817b6fff4a069bfce860e697de41c8 | 45,401 | cc | C++ | atomicz.cc | shawwn/atomicz | c81693fe18bbbeccabbae24019c1f8a2e5596798 | [
"Apache-2.0"
] | null | null | null | atomicz.cc | shawwn/atomicz | c81693fe18bbbeccabbae24019c1f8a2e5596798 | [
"Apache-2.0"
] | null | null | null | atomicz.cc | shawwn/atomicz | c81693fe18bbbeccabbae24019c1f8a2e5596798 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2017 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 agr... | 34.342663 | 318 | 0.619788 | [
"object",
"shape",
"vector"
] |
85c671fffdbd7af4f55263fb15bb2a660fd8f789 | 1,353 | cpp | C++ | OpenGL_S/OpenGL_S/Button.cpp | CreoDen-dev/COSMO | 1603c734fc592dad58b553625e5ce90046d99758 | [
"Apache-2.0"
] | null | null | null | OpenGL_S/OpenGL_S/Button.cpp | CreoDen-dev/COSMO | 1603c734fc592dad58b553625e5ce90046d99758 | [
"Apache-2.0"
] | null | null | null | OpenGL_S/OpenGL_S/Button.cpp | CreoDen-dev/COSMO | 1603c734fc592dad58b553625e5ce90046d99758 | [
"Apache-2.0"
] | null | null | null | #include "Button.h"
Button::Button() {
}
Button::Button(vec2 pos, vec2 size, ButtonType type) {
this->pos = pos;
this->size = size;
if (type == START) {
this->texture = HUDElement("resources/textures/button_START.png", pos, size, vec4(1, 2, 0, 0));
}
if (type == QUIT) {
this->texture = HUDElement("resources/... | 33 | 214 | 0.648189 | [
"render"
] |
85c6dfcf345e2d34d32f3c9b974a6ccd0a8e2985 | 712 | cpp | C++ | 438-find-all-anagrams-in-a-string/438-find-all-anagrams-in-a-string.cpp | AmrutanshuDash/LeetCode-Run | 07a4b552eadc528fb9346cfc5c6462239e3da467 | [
"Apache-2.0"
] | 1 | 2021-10-31T13:57:03.000Z | 2021-10-31T13:57:03.000Z | 438-find-all-anagrams-in-a-string/438-find-all-anagrams-in-a-string.cpp | AmrutanshuDash/LeetCode-Run | 07a4b552eadc528fb9346cfc5c6462239e3da467 | [
"Apache-2.0"
] | null | null | null | 438-find-all-anagrams-in-a-string/438-find-all-anagrams-in-a-string.cpp | AmrutanshuDash/LeetCode-Run | 07a4b552eadc528fb9346cfc5c6462239e3da467 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
vector<int> findAnagrams(string s, string p) {
int len_s = s.size();
int len_p = p.size();
if(len_s < len_p) return {};
vector<int> p_freq(26,0);
vector<int> window(26,0);
//first window
for(int i=0;i<len_p;... | 24.551724 | 58 | 0.422753 | [
"vector"
] |
85dcb76712f6aab654bbe2327466603406f5f725 | 15,294 | cpp | C++ | src/test/model_cache_test.cpp | IntelAI/OpenVINO-model-server | 281cffcc358013afcec0d810331acc66c18297f7 | [
"Apache-2.0"
] | 305 | 2018-10-01T12:41:28.000Z | 2020-04-24T10:36:08.000Z | src/test/model_cache_test.cpp | IntelAI/OpenVINO-model-server | 281cffcc358013afcec0d810331acc66c18297f7 | [
"Apache-2.0"
] | 61 | 2018-11-15T09:23:01.000Z | 2020-04-23T09:29:56.000Z | src/test/model_cache_test.cpp | IntelAI/OpenVINO-model-server | 281cffcc358013afcec0d810331acc66c18297f7 | [
"Apache-2.0"
] | 67 | 2018-10-13T14:33:48.000Z | 2020-04-22T19:01:32.000Z | //*****************************************************************************
// Copyright 2021 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.ap... | 42.132231 | 136 | 0.760233 | [
"shape",
"model"
] |
85dcee9c6e7e6815fb6d79bb9c3c19fa20c361d9 | 12,240 | cpp | C++ | ZEngine/src/Common/System.cpp | AarnoldGad/ZucchiniEngine | cb27d2a534a3f21ec59eaa116f052a169a811c06 | [
"Zlib"
] | 1 | 2020-12-04T17:56:22.000Z | 2020-12-04T17:56:22.000Z | ZEngine/src/Common/System.cpp | AarnoldGad/ZEngine | cb27d2a534a3f21ec59eaa116f052a169a811c06 | [
"Zlib"
] | 1 | 2022-02-02T23:24:34.000Z | 2022-02-02T23:24:34.000Z | ZEngine/src/Common/System.cpp | AarnoldGad/ZucchiniEngine | cb27d2a534a3f21ec59eaa116f052a169a811c06 | [
"Zlib"
] | null | null | null | // Inspired by https://github.com/ThePhD/infoware
#include "zepch.hpp"
#include "zengine/Common/System.hpp"
#include "zengine/Common/Backtrace/CallStack.hpp"
#include <bitset>
#include <csignal>
#include <cstdlib>
#if defined(_WIN32)
#include <lmcons.h>
#elif defined(__linux__)
#include <unistd.h>
#elif defi... | 28.465116 | 170 | 0.552369 | [
"vector",
"model"
] |
85e2d8b2e28b410a3224da515c88517a2481a183 | 257 | cpp | C++ | dataset/test/1624A/14.cpp | Karina5005/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | 3 | 2022-02-15T00:29:39.000Z | 2022-03-15T08:36:44.000Z | dataset/test/1624A/14.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | dataset/test/1624A/14.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{int t;
cin>>t;
while(t--)
{int n;
cin>>n;vector<int>v;int k;
for(int i=0;i<n;i++)
{cin>>k;v.push_back(k);}
sort(v.begin(),v.end());
cout<<v[n-1]-v[0]<<"\n";
}
} | 12.85 | 27 | 0.490272 | [
"vector"
] |
85e3230ee74a2c0f2867bd2156330a805e735614 | 255 | cpp | C++ | LeetCode/C++/0239._Sliding_Window_Maximum/example.cpp | icgw/LeetCode | cb70ca87aa4604d1aec83d4224b3489eacebba75 | [
"MIT"
] | 4 | 2018-09-12T09:32:17.000Z | 2018-12-06T03:17:38.000Z | LeetCode/C++/0239._Sliding_Window_Maximum/example.cpp | icgw/algorithm | cb70ca87aa4604d1aec83d4224b3489eacebba75 | [
"MIT"
] | null | null | null | LeetCode/C++/0239._Sliding_Window_Maximum/example.cpp | icgw/algorithm | cb70ca87aa4604d1aec83d4224b3489eacebba75 | [
"MIT"
] | null | null | null | #include <iostream>
#include "solution.hpp"
void run_example() {
Solution s;
vector<int> nums { 1, 3, -1, -3, 5, 3, 6, 7 };
vector<int> ans = s.maxSlidingWindow(nums, 3);
for (auto n : ans) std::cout << n << " ";
std::cout << "\n";
}
| 23.181818 | 50 | 0.545098 | [
"vector"
] |
85eea172d79299c5bfbd49cfc99383b524f0c733 | 29,018 | cpp | C++ | request/datesCalendarsRequest.cpp | thulio/quantraserver | 07dd319fcdefd052db9bc7c0979c7e583b47a546 | [
"BSD-3-Clause"
] | 7 | 2018-01-06T12:44:58.000Z | 2020-09-22T10:35:04.000Z | request/datesCalendarsRequest.cpp | thulio/quantraserver | 07dd319fcdefd052db9bc7c0979c7e583b47a546 | [
"BSD-3-Clause"
] | 2 | 2020-05-10T14:29:27.000Z | 2020-12-09T01:34:00.000Z | request/datesCalendarsRequest.cpp | thulio/quantraserver | 07dd319fcdefd052db9bc7c0979c7e583b47a546 | [
"BSD-3-Clause"
] | 7 | 2018-01-05T16:04:37.000Z | 2021-07-17T05:48:05.000Z | //
// Created by Josep Rubio on 7/19/17.
//
#include "datesCalendarsRequest.h"
void datesCalendarsRequest::isLeapYear(crow::request req, boost::shared_ptr<crow::json::wvalue> response) {
auto x = crow::json::load(req.body);
bool error = false;
bool tmpBool = false;
std::ostringstream erroros;
... | 26.025112 | 116 | 0.5326 | [
"vector"
] |
85ef37d99b14264a7e5b760769bd8e3e26cd29b8 | 76,526 | cpp | C++ | llvm/lib/Target/R600/SIISelLowering.cpp | oslab-swrc/juxta | 481cd6f01e87790041a07379805968bcf57d75f4 | [
"MIT"
] | 58 | 2016-08-27T03:19:14.000Z | 2022-01-05T17:33:44.000Z | llvm/lib/Target/R600/SIISelLowering.cpp | oslab-swrc/juxta | 481cd6f01e87790041a07379805968bcf57d75f4 | [
"MIT"
] | 14 | 2017-12-01T17:16:59.000Z | 2020-12-21T12:16:35.000Z | llvm/lib/Target/R600/SIISelLowering.cpp | oslab-swrc/juxta | 481cd6f01e87790041a07379805968bcf57d75f4 | [
"MIT"
] | 22 | 2016-11-27T09:53:31.000Z | 2021-11-22T00:22:53.000Z | //===-- SIISelLowering.cpp - SI DAG Lowering Implementation ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 35.11978 | 83 | 0.639247 | [
"vector"
] |
c8018bcd47657bc2f5bce68b6a54e97385a7bfdb | 2,801 | cpp | C++ | Isetta/IsettaEngine/Scene/Component.cpp | LukeMcCulloch/IsettaGameEngine | 9f112d7d088623607a19175707824c5b65662e03 | [
"MIT"
] | 2 | 2018-09-05T17:51:47.000Z | 2018-09-05T19:35:25.000Z | Isetta/IsettaEngine/Scene/Component.cpp | LukeMcCulloch/IsettaGameEngine | 9f112d7d088623607a19175707824c5b65662e03 | [
"MIT"
] | null | null | null | Isetta/IsettaEngine/Scene/Component.cpp | LukeMcCulloch/IsettaGameEngine | 9f112d7d088623607a19175707824c5b65662e03 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 Isetta
*/
#include "Scene/Component.h"
#include "Scene/Entity.h"
#include "Scene/Transform.h"
namespace Isetta {
bool Component::isFlattened = false;
bool Component::RegisterComponent(std::type_index curr, std::type_index base,
bool isUnique) {
if (isUniq... | 28.876289 | 77 | 0.691182 | [
"transform"
] |
65a5de88e06a5b448a37015397d51db3095214da | 23,394 | cpp | C++ | src/xeus_sqlite_interpreter.cpp | DerThorsten/xeus-sqlite | 9bcca6676623a43841423cc21e9a737ac9da6637 | [
"BSD-3-Clause"
] | 135 | 2020-04-01T11:51:41.000Z | 2022-03-26T09:59:03.000Z | src/xeus_sqlite_interpreter.cpp | DerThorsten/xeus-sqlite | 9bcca6676623a43841423cc21e9a737ac9da6637 | [
"BSD-3-Clause"
] | 78 | 2020-04-01T11:19:09.000Z | 2022-02-11T16:39:13.000Z | src/xeus_sqlite_interpreter.cpp | DerThorsten/xeus-sqlite | 9bcca6676623a43841423cc21e9a737ac9da6637 | [
"BSD-3-Clause"
] | 25 | 2020-04-01T11:52:30.000Z | 2021-10-04T11:36:32.000Z | /***************************************************************************
* Copyright (c) 2020, QuantStack and Xeus-SQLite contributors *
* *
* *
* Distribute... | 34.453608 | 113 | 0.452253 | [
"object",
"vector"
] |
65af994a099640dd5a6d9ea54c249204e55a9637 | 1,999 | cpp | C++ | test/Passes/Synthesis/diagonal_synth.cpp | zeta1999/tweedledum | f070bf582347668f96943a459e51e1a39572b7f4 | [
"MIT"
] | 1 | 2022-03-04T21:44:26.000Z | 2022-03-04T21:44:26.000Z | test/Passes/Synthesis/diagonal_synth.cpp | CQCL/tweedledum | f070bf582347668f96943a459e51e1a39572b7f4 | [
"MIT"
] | null | null | null | test/Passes/Synthesis/diagonal_synth.cpp | CQCL/tweedledum | f070bf582347668f96943a459e51e1a39572b7f4 | [
"MIT"
] | 1 | 2021-04-12T06:17:06.000Z | 2021-04-12T06:17:06.000Z | /*------------------------------------------------------------------------------
| Part of Tweedledum Project. This file is distributed under the MIT License.
| See accompanying file /LICENSE for details.
*-----------------------------------------------------------------------------*/
#include "tweedledum/Passes/Synth... | 37.716981 | 80 | 0.613807 | [
"vector"
] |
65b7da57d02a466c59a22bb5788d95b9dba17244 | 2,248 | hpp | C++ | laser_mapper/include/laser_mapper/laser_mapper.hpp | shibowing/segmatch | 4c93c465108f0a6e103526486aae894ea3d2ae9f | [
"BSD-3-Clause"
] | 13 | 2018-11-28T12:02:48.000Z | 2021-12-22T01:04:49.000Z | laser_mapper/include/laser_mapper/laser_mapper.hpp | yuekaka/segmatch | c662324d23b9e049fbb49b52cda7895d1a4d2798 | [
"BSD-3-Clause"
] | 2 | 2019-03-03T01:50:51.000Z | 2019-08-19T08:06:41.000Z | laser_mapper/include/laser_mapper/laser_mapper.hpp | yuekaka/segmatch | c662324d23b9e049fbb49b52cda7895d1a4d2798 | [
"BSD-3-Clause"
] | 8 | 2019-06-18T19:40:35.000Z | 2020-06-15T17:43:06.000Z | #ifndef LASER_MAPPER_LASER_MAPPER_HPP_
#define LASER_MAPPER_LASER_MAPPER_HPP_
#include <string>
#include <vector>
#include <laser_slam/parameters.hpp>
#include <laser_slam/incremental_estimator.hpp>
#include <laser_slam_ros/laser_slam_worker.hpp>
#include <segmatch/common.hpp>
#include <segmatch_ros/common.hpp>
#incl... | 27.414634 | 81 | 0.771797 | [
"vector",
"transform"
] |
65ba0fa0d41b1eb8478f62b034e9c7fc393c8afe | 131 | cpp | C++ | RobWork/src/rw/geometry/OBBCollider.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWork/src/rw/geometry/OBBCollider.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWork/src/rw/geometry/OBBCollider.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | #include "OBBCollider.hpp"
template class rw::geometry::OBBCollider< double >;
template class rw::geometry::OBBCollider< float >;
| 26.2 | 51 | 0.763359 | [
"geometry"
] |
65c4c6e33aef9e9edc07deb7d1ded4155812e30d | 8,574 | hpp | C++ | include/AnnGameObject.hpp | Ybalrid/Annwvyn | 30d63c722524c35a9054d51dcdd9f39af0599a3d | [
"MIT"
] | 39 | 2015-04-02T15:32:19.000Z | 2022-03-26T12:48:28.000Z | include/AnnGameObject.hpp | Ybalrid/Annwvyn | 30d63c722524c35a9054d51dcdd9f39af0599a3d | [
"MIT"
] | 136 | 2015-02-24T19:45:59.000Z | 2019-02-21T15:01:12.000Z | include/AnnGameObject.hpp | Ybalrid/Annwvyn | 30d63c722524c35a9054d51dcdd9f39af0599a3d | [
"MIT"
] | 12 | 2015-02-24T19:37:38.000Z | 2019-05-13T12:07:26.000Z | /**
* \file AnnGameObject.hpp
* \brief Game Object class
* \author A. Brainville (Ybalrid)
*/
#pragma once
#include "systemMacro.h"
#include <string>
#include <BtOgrePG.h>
//Annwvyn
#include "AnnTypes.h"
#include "AnnAbstractMovable.hpp"
#pragma warning(default : 4996)
namespace Annwvyn
{
class AnnDllExport An... | 31.638376 | 138 | 0.724049 | [
"object",
"shape",
"vector",
"3d"
] |
65c637630c21385dc253e7b676606ab7462747cc | 7,856 | cpp | C++ | Assassin/TransferTask.cpp | Jhovany200/Nagisa | b0197c50866883d53a029b6614decdc12975f7f4 | [
"MIT"
] | 1 | 2020-07-31T02:41:51.000Z | 2020-07-31T02:41:51.000Z | Assassin/TransferTask.cpp | MS-PC2/Nagisa | b0197c50866883d53a029b6614decdc12975f7f4 | [
"MIT"
] | null | null | null | Assassin/TransferTask.cpp | MS-PC2/Nagisa | b0197c50866883d53a029b6614decdc12975f7f4 | [
"MIT"
] | null | null | null | /******************************************************************************
Project: Assassin
Description: Implementation for TransferTask.
File Name: TransferTask.cpp
License: The MIT License
******************************************************************************/
#include "pch.h"
#include "TransferManage... | 25.673203 | 80 | 0.724669 | [
"object"
] |
65c908c53e6a805223e3819d97b33120657241a5 | 5,008 | cpp | C++ | Examples/pbr/main.cpp | teamclouday/Render | c24eb5d5a51452cbb092ead61612559e57951755 | [
"MIT"
] | null | null | null | Examples/pbr/main.cpp | teamclouday/Render | c24eb5d5a51452cbb092ead61612559e57951755 | [
"MIT"
] | null | null | null | Examples/pbr/main.cpp | teamclouday/Render | c24eb5d5a51452cbb092ead61612559e57951755 | [
"MIT"
] | null | null | null | #include "Base.hpp"
#include <string>
#include <iostream>
using namespace RenderIt;
// a sphere
struct MyModel
{
StructVAO vao;
uint32_t vertexCount;
glm::vec3 color = glm::vec3(0.5f, 1.0f, 1.0f);
glm::vec2 metallicRoughness = glm::vec2(0.5f);
float radius = 1.0f;
float tessLevel = 20.0f;
... | 29.28655 | 88 | 0.621206 | [
"model",
"transform"
] |
65c9374f3e1598a0867ea26b73291d6a0c9b5070 | 1,431 | cpp | C++ | aws-cpp-sdk-clouddirectory/source/model/ListOutgoingTypedLinksResult.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-clouddirectory/source/model/ListOutgoingTypedLinksResult.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-clouddirectory/source/model/ListOutgoingTypedLinksResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/clouddirectory/model/ListOutgoingTypedLinksResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
... | 28.62 | 142 | 0.779874 | [
"model"
] |
65d451be05ef92b0f5eec655829f97be8a761f08 | 9,130 | hpp | C++ | nodes.hpp | flode/BwTree | c68015e9be3ddb3e4aa76983ce3a7cc75c6fa28c | [
"Apache-2.0"
] | 93 | 2015-06-12T21:29:44.000Z | 2022-01-09T13:21:13.000Z | nodes.hpp | flode/BwTree | c68015e9be3ddb3e4aa76983ce3a7cc75c6fa28c | [
"Apache-2.0"
] | 3 | 2016-04-02T18:29:52.000Z | 2020-05-10T14:04:05.000Z | nodes.hpp | flode/BwTree | c68015e9be3ddb3e4aa76983ce3a7cc75c6fa28c | [
"Apache-2.0"
] | 20 | 2016-02-13T23:41:35.000Z | 2021-04-04T14:26:04.000Z | #ifndef NODES_HPP
#define NODES_HPP
#include <algorithm>
#include <vector>
#include <tuple>
namespace BwTree {
using PID = std::size_t;
constexpr PID NotExistantPID = std::numeric_limits<PID>::max();
enum class PageType : std::int8_t {
leaf,
inner,
deltaInsert,
deltaDelete... | 31.923077 | 228 | 0.550931 | [
"vector"
] |
65d637788615dab61213f870bf5960cba2e5cb39 | 2,624 | cpp | C++ | inheritance-students.cpp | aammeloot/hdcyb-cpp2020 | c5ebe57803a587008d4ee7437a00c3193e9e4d2f | [
"CC0-1.0"
] | null | null | null | inheritance-students.cpp | aammeloot/hdcyb-cpp2020 | c5ebe57803a587008d4ee7437a00c3193e9e4d2f | [
"CC0-1.0"
] | null | null | null | inheritance-students.cpp | aammeloot/hdcyb-cpp2020 | c5ebe57803a587008d4ee7437a00c3193e9e4d2f | [
"CC0-1.0"
] | null | null | null | //
// main.cpp
// inheritance
//
// Created by Aurélien Ammeloot on 12/11/2020.
//
#include <iostream>
#include <vector>
#include <string>
using namespace std;
// This is the base class - Person
class Person {
// Protected instead of Private so derived classed can access
protected:
string name;
string... | 24.523364 | 114 | 0.637957 | [
"vector"
] |
65d97546c66e97cf0f487e05b7fba5e15d9b4376 | 2,471 | hpp | C++ | libserver/ram_compiler/tinyram_precompiler.hpp | alittlehorse/osprey | 22f290a7de3413a847e3dc33c96328752cc37f47 | [
"MIT"
] | 5 | 2021-03-04T08:28:38.000Z | 2021-04-20T11:50:40.000Z | libserver/ram_compiler/tinyram_precompiler.hpp | alittlehorse/osprey | 22f290a7de3413a847e3dc33c96328752cc37f47 | [
"MIT"
] | null | null | null | libserver/ram_compiler/tinyram_precompiler.hpp | alittlehorse/osprey | 22f290a7de3413a847e3dc33c96328752cc37f47 | [
"MIT"
] | 1 | 2021-05-22T15:50:15.000Z | 2021-05-22T15:50:15.000Z | /** @file
*****************************************************************************
Declaration of interfaces for compiling tinyram(source language) to immediate language.
*****************************************************************************
* @author This file is part of libserver, developed by ... | 34.802817 | 88 | 0.445569 | [
"vector"
] |
65e031c844ed7f6a4646540e24ac369a79945424 | 9,026 | cpp | C++ | goliath/graph/node.cpp | hoenirvili/CFGTrace | 0ccb0b2f11634976eb220ec4a9cba3b90560537f | [
"MIT"
] | 3 | 2019-01-19T20:18:50.000Z | 2020-09-25T20:13:58.000Z | goliath/graph/node.cpp | hoenirvili/goliath | 0ccb0b2f11634976eb220ec4a9cba3b90560537f | [
"MIT"
] | null | null | null | goliath/graph/node.cpp | hoenirvili/goliath | 0ccb0b2f11634976eb220ec4a9cba3b90560537f | [
"MIT"
] | null | null | null | #include "goliath/graph/node.h"
#include "goliath/assembly/instruction.h"
#include "goliath/error/error.h"
#include "goliath/format/string.h"
#include <string>
void Node::mark_done() noexcept
{
this->is_done = true;
}
bool Node::done() const noexcept
{
return this->is_done;
}
size_t Node::true_neighbour() const no... | 23.444156 | 93 | 0.680589 | [
"vector"
] |
65e910af06d2d316a208a260963995cffd23a533 | 8,554 | cpp | C++ | Modules/DeformableRegistrationUI/QmitkDemonsRegistrationView.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Modules/DeformableRegistrationUI/QmitkDemonsRegistrationView.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Modules/DeformableRegistrationUI/QmitkDemonsRegistrationView.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied w... | 39.059361 | 121 | 0.700959 | [
"vector"
] |
65ea39af67725f2bbc2d88965022d741137fe5af | 15,800 | cpp | C++ | src/App.cpp | leodlplq/IMACraft | 5fec1729238e7e428bd39543dfd1fad521e16047 | [
"MIT"
] | 1 | 2021-11-24T16:49:48.000Z | 2021-11-24T16:49:48.000Z | src/App.cpp | leodlplq/IMACraft | 5fec1729238e7e428bd39543dfd1fad521e16047 | [
"MIT"
] | null | null | null | src/App.cpp | leodlplq/IMACraft | 5fec1729238e7e428bd39543dfd1fad521e16047 | [
"MIT"
] | null | null | null | #include "App.hpp"
std::vector<Model> getAllModels(const FilePath& appPath){
std::vector<Model> models;
// MODEL OF THE GROUND -- 0
Model grass(((std::string)appPath.dirPath() + "/assets/obj/grass/scene.gltf").c_str());
models.push_back(grass);
// COBBLE TEXTURE MODEL -- 1
Model cobblestone((... | 34.051724 | 234 | 0.577152 | [
"render",
"vector",
"model"
] |
65f4cbb7d702012be1b127a3616360c0c446ded1 | 3,485 | cpp | C++ | BlackVision/LibBlackVision/Source/Engine/Models/Plugins/Channels/Geometry/Simple/AnimatedStripComponent.cpp | black-vision-engine/bv-engine | 85089d41bb22afeaa9de070646e12aa1777ecedf | [
"MIT"
] | 1 | 2022-01-28T11:43:47.000Z | 2022-01-28T11:43:47.000Z | BlackVision/LibBlackVision/Source/Engine/Models/Plugins/Channels/Geometry/Simple/AnimatedStripComponent.cpp | black-vision-engine/bv-engine | 85089d41bb22afeaa9de070646e12aa1777ecedf | [
"MIT"
] | null | null | null | BlackVision/LibBlackVision/Source/Engine/Models/Plugins/Channels/Geometry/Simple/AnimatedStripComponent.cpp | black-vision-engine/bv-engine | 85089d41bb22afeaa9de070646e12aa1777ecedf | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "AnimatedStripComponent.h"
#include <cassert>
#include "Mathematics/defines.h"
#include "Engine/Models/Plugins/Channels/Geometry/AttributeChannelTyped.h"
#include "Memory/MemoryLeaks.h"
namespace bv { namespace model {
// *******************************
//
A... | 31.681818 | 207 | 0.573888 | [
"geometry",
"vector",
"model"
] |
5a013436c438cc66d676e051d0fd384451cb054f | 12,558 | cpp | C++ | tests/src/gauss_newton.test.cpp | Rookfighter/optimization-cpp | 482122c9bef39f30e57af69c93d99853005f14f7 | [
"MIT"
] | null | null | null | tests/src/gauss_newton.test.cpp | Rookfighter/optimization-cpp | 482122c9bef39f30e57af69c93d99853005f14f7 | [
"MIT"
] | null | null | null | tests/src/gauss_newton.test.cpp | Rookfighter/optimization-cpp | 482122c9bef39f30e57af69c93d99853005f14f7 | [
"MIT"
] | null | null | null | /// gauss_newton.test.cpp
///
/// Author: Fabian Meyer
/// Created On: 05 Aug 2019
/// License: MIT
#include <lsqcpp/lsqcpp.hpp>
#include "eigen_require.hpp"
#include "parabolic_error.hpp"
using namespace lsqcpp;
TEMPLATE_TEST_CASE("gauss newton", "[algorithm]", float, double)
{
constexpr auto Inputs = E... | 40.379421 | 94 | 0.547858 | [
"vector"
] |
5a02b9f27ea82652b11056e71368aa2a7f476408 | 4,165 | cpp | C++ | main/src/Pymodules/PyMatrixContainer.cpp | eapcivil/EXUDYN | 52bddc8c258cda07e51373f68e1198b66c701d03 | [
"BSD-3-Clause-Open-MPI"
] | 1 | 2020-10-06T08:06:25.000Z | 2020-10-06T08:06:25.000Z | main/src/Pymodules/PyMatrixContainer.cpp | eapcivil/EXUDYN | 52bddc8c258cda07e51373f68e1198b66c701d03 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | main/src/Pymodules/PyMatrixContainer.cpp | eapcivil/EXUDYN | 52bddc8c258cda07e51373f68e1198b66c701d03 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | /** ***********************************************************************************************
* @brief implementation for PyMatrixContainer
*
* @author Gerstmayr Johannes
* @date 2020-05-11 (created)
* @copyright This file is part of Exudyn. Exudyn is free software: you can redistribute it and/or modify it un... | 33.58871 | 182 | 0.654742 | [
"object",
"shape",
"vector"
] |
5a08c9fc077b73bb315229ecce8dbfa236d71a34 | 3,075 | cc | C++ | src/kernel/application.cc | devbrain/neutrino | 5e7cd7c93b5c264a5f1da6ae88312e14253de10d | [
"Apache-2.0"
] | null | null | null | src/kernel/application.cc | devbrain/neutrino | 5e7cd7c93b5c264a5f1da6ae88312e14253de10d | [
"Apache-2.0"
] | null | null | null | src/kernel/application.cc | devbrain/neutrino | 5e7cd7c93b5c264a5f1da6ae88312e14253de10d | [
"Apache-2.0"
] | null | null | null | //
// Created by igor on 07/10/2021.
//
#include <neutrino/kernel/application.hh>
#include <neutrino/utils/exception.hh>
#include "systems_manager.hh"
#include "main_window.hh"
namespace neutrino::kernel {
static application* s_instance = nullptr;
struct application::impl {
impl() : m_paused(false) {};
... | 23.295455 | 82 | 0.66374 | [
"render"
] |
5a115e455db6a0b69ab56d387f60ead609656682 | 4,467 | cpp | C++ | tc 160+/GuitarConcert.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/GuitarConcert.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/GuitarConcert.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 <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
int bc[1<<10];
void make_cand(int m, const vector<string> &G, vector<string> &res) {
for (int i=0; i<(int)G.size(); ++i)
if (m &... | 47.521277 | 471 | 0.579136 | [
"vector"
] |
5a230ee09b11b3561511fd6fd923289e1c463e0a | 8,970 | cpp | C++ | pxr/imaging/hdSt/dependencySceneIndexPlugin.cpp | dgovil/USD | db8e3266dcaa24aa26b7201bc20ff4d8e81448d6 | [
"Apache-2.0"
] | 1 | 2021-09-25T12:49:37.000Z | 2021-09-25T12:49:37.000Z | pxr/imaging/hdSt/dependencySceneIndexPlugin.cpp | dgovil/USD | db8e3266dcaa24aa26b7201bc20ff4d8e81448d6 | [
"Apache-2.0"
] | null | null | null | pxr/imaging/hdSt/dependencySceneIndexPlugin.cpp | dgovil/USD | db8e3266dcaa24aa26b7201bc20ff4d8e81448d6 | [
"Apache-2.0"
] | 1 | 2020-10-24T00:43:14.000Z | 2020-10-24T00:43:14.000Z | //
// Copyright 2022 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 30.614334 | 80 | 0.677815 | [
"vector"
] |
5a2a7df2a923d2bfec666aaad597dacb03f6e979 | 760 | hpp | C++ | lib/sfml/include/sfml/ErrorMessage.hpp | Brukols/Epitech-Arcade | 5443d28169e9494f0c77abac23f4139e60b46365 | [
"MIT"
] | null | null | null | lib/sfml/include/sfml/ErrorMessage.hpp | Brukols/Epitech-Arcade | 5443d28169e9494f0c77abac23f4139e60b46365 | [
"MIT"
] | null | null | null | lib/sfml/include/sfml/ErrorMessage.hpp | Brukols/Epitech-Arcade | 5443d28169e9494f0c77abac23f4139e60b46365 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** OOP_arcade_2019
** File description:
** ErrorMessage
*/
#ifndef ERRORMESSAGE_HPP_
#define ERRORMESSAGE_HPP_
#include "Button.hpp"
#include "Text.hpp"
namespace arc
{
class ErrorMessage {
public:
ErrorMessage(const std::string &message, const std::function<void()... | 21.714286 | 111 | 0.603947 | [
"vector"
] |
5a2be96c33185a3a8dadff0da9cdb39ec6915e45 | 2,824 | cpp | C++ | old.cpp | FashGek/chazelle-triangulation | 3ef89edb225dbfdd09ce8fde103fe657d01bcc98 | [
"MIT"
] | 1 | 2020-10-20T04:19:49.000Z | 2020-10-20T04:19:49.000Z | old.cpp | FashGek/chazelle-triangulation | 3ef89edb225dbfdd09ce8fde103fe657d01bcc98 | [
"MIT"
] | null | null | null | old.cpp | FashGek/chazelle-triangulation | 3ef89edb225dbfdd09ce8fde103fe657d01bcc98 | [
"MIT"
] | 1 | 2020-10-20T04:20:18.000Z | 2020-10-20T04:20:18.000Z | #include "lipton-tarjan.h"
#include <iostream>
#include <fstream>
#include <csignal>
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/properties.hpp>
#include <boost/graph/graph_traits.hpp>
#include <boost/property_map/property_map.hpp>
#include <boost/graph/planar_canonical_ordering.hpp>
#include <boos... | 29.726316 | 139 | 0.593484 | [
"vector"
] |
5a4a49c96e98f7f955191f999f7504a87b567cf6 | 5,042 | cpp | C++ | third_party/WebKit/Source/platform/audio/IIRFilter.cpp | 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 | third_party/WebKit/Source/platform/audio/IIRFilter.cpp | 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 | third_party/WebKit/Source/platform/audio/IIRFilter.cpp | 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 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "platform/audio/IIRFilter.h"
#include "wtf/MathExtras.h"
#include <complex>
namespace blink {
// The length of the memory buffers for the IIR ... | 35.507042 | 80 | 0.631297 | [
"transform"
] |
5a4c57b6205d90ef3a222e1c4c68cf861d6564f8 | 5,260 | cpp | C++ | CuteEngine/Widgets/transformwidget.cpp | Code0100Food/CuteEngine | 8e8500c6414b94a8be6243a6b05334a27def7516 | [
"MIT"
] | null | null | null | CuteEngine/Widgets/transformwidget.cpp | Code0100Food/CuteEngine | 8e8500c6414b94a8be6243a6b05334a27def7516 | [
"MIT"
] | null | null | null | CuteEngine/Widgets/transformwidget.cpp | Code0100Food/CuteEngine | 8e8500c6414b94a8be6243a6b05334a27def7516 | [
"MIT"
] | null | null | null | #include "transformwidget.h"
#include <QLabel>
#include <QDoubleSpinBox>
#include <QVBoxLayout>
#include <QGridLayout>
#include <QVector3D>
#include "transform.h"
TransformWidget::TransformWidget(QWidget* parent) : QWidget(parent)
{
//UI initialization
QVBoxLayout* main_layout = new QVBoxLayout();
//Windo... | 30.229885 | 94 | 0.713878 | [
"transform"
] |
9905938368dd4dc1ea16a6460328ede375a4db91 | 28,478 | cpp | C++ | prototype/src/asf/plugin_execute.cpp | glshort/MapReady | c9065400a64c87be46418ab32e3a251ca2f55fd5 | [
"BSD-3-Clause"
] | 3 | 2017-12-31T05:33:28.000Z | 2021-07-28T01:51:22.000Z | prototype/src/asf/plugin_execute.cpp | glshort/MapReady | c9065400a64c87be46418ab32e3a251ca2f55fd5 | [
"BSD-3-Clause"
] | null | null | null | prototype/src/asf/plugin_execute.cpp | glshort/MapReady | c9065400a64c87be46418ab32e3a251ca2f55fd5 | [
"BSD-3-Clause"
] | 7 | 2017-04-26T18:18:33.000Z | 2020-05-15T08:01:09.000Z | /**
Determine execution order for asf plugins.
Basically a compiler-like dependency analysis
and lazy execution system. This file is way too complicated
and buggy--need to figure out a cleaner, simpler approach.
The only external entry point is "execute_list" at the bottom.
External calls go out from here to the para... | 33.781732 | 166 | 0.709671 | [
"render",
"object",
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.