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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e607a277d584751297f091ceba54a55e2f02909d | 33,624 | cpp | C++ | lib/game_save_gen2impl.cpp | ncorgan/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 4 | 2017-06-10T13:21:44.000Z | 2019-10-30T21:20:19.000Z | lib/game_save_gen2impl.cpp | PMArkive/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 12 | 2017-04-05T11:13:34.000Z | 2018-06-03T14:31:03.000Z | lib/game_save_gen2impl.cpp | PMArkive/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 2 | 2019-01-22T21:02:31.000Z | 2019-10-30T21:20:20.000Z | /*
* Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#include "exception_internal.hpp"
#include "game_save_gen2impl.hpp"
#include "item_bag_gen2impl.hpp"
#include "item_l... | 33.061947 | 106 | 0.617833 | [
"vector"
] |
e60d32bdd0ed16bf96f287d231d6772fa6b63de8 | 1,174 | hh | C++ | include/click/driver.hh | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | include/click/driver.hh | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | include/click/driver.hh | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | // -*- c-basic-offset: 4; related-file-name: "../../lib/driver.cc" -*-
#ifndef CLICK_DRIVER_HH
#define CLICK_DRIVER_HH
#include <click/package.hh>
#define CLICK_DEFAULT_PROVIDES /* nada */
#if defined(CLICK_USERLEVEL) || defined(CLICK_MINIOS)
CLICK_DECLS
class Router;
class Master;
class ErrorHandler;
class Lexer;
s... | 26.681818 | 115 | 0.72402 | [
"vector"
] |
e611f78098c09cc31577355cfe4d138f1a8c7cb6 | 13,683 | cpp | C++ | daemon/linux/proc/ProcStatFileRecord.cpp | RufUsul/gator | 6a944e7ee1f1c3ab9b2a57efd24c58503122db02 | [
"BSD-3-Clause"
] | 118 | 2015-03-24T16:09:42.000Z | 2022-03-21T09:01:59.000Z | daemon/linux/proc/ProcStatFileRecord.cpp | RufUsul/gator | 6a944e7ee1f1c3ab9b2a57efd24c58503122db02 | [
"BSD-3-Clause"
] | 26 | 2016-03-03T23:24:08.000Z | 2022-03-21T10:24:43.000Z | daemon/linux/proc/ProcStatFileRecord.cpp | RufUsul/gator | 6a944e7ee1f1c3ab9b2a57efd24c58503122db02 | [
"BSD-3-Clause"
] | 73 | 2015-06-09T09:44:06.000Z | 2021-12-30T09:49:00.000Z | /* Copyright (C) 2017-2021 by Arm Limited. All rights reserved. */
#include "linux/proc/ProcStatFileRecord.h"
#include "lib/Assert.h"
#include "lib/Format.h"
#include <cctype>
#include <cstdlib>
#include <cstring>
namespace lnx {
namespace {
/**
* Skip over any spaces
*
* @ret... | 39.776163 | 153 | 0.450778 | [
"vector"
] |
e612fb8eadda127f7c50847ab76d28c2619cbf7a | 2,354 | cc | C++ | cpp/Codeforces/51-100/58A_Chat_room.cc | phongvcao/CP_Contests_Solutions | 2e76e73ee7e53c798f63e1870be47653c75180a9 | [
"MIT"
] | null | null | null | cpp/Codeforces/51-100/58A_Chat_room.cc | phongvcao/CP_Contests_Solutions | 2e76e73ee7e53c798f63e1870be47653c75180a9 | [
"MIT"
] | null | null | null | cpp/Codeforces/51-100/58A_Chat_room.cc | phongvcao/CP_Contests_Solutions | 2e76e73ee7e53c798f63e1870be47653c75180a9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
#include <vector>
void fillArr(bool *arr, int size, bool value) {
for (int i = 0; i != size; ++i) {
arr[i] = value;
}
}
int skipChar(std::string str, char c, int curIdx) {
while (str[curIdx] != c) {
++curIdx;
}
return curI... | 23.306931 | 80 | 0.329227 | [
"vector"
] |
e625c9765c61ba1bae1233793fdea05cd566008f | 2,969 | cpp | C++ | Sharing/Src/Source/Common/Private/RemoveOperation.cpp | matthejo/MixedRealityToolkit | c97ace84cfc4cdf97044b35b568bd9182497497a | [
"MIT"
] | 300 | 2017-08-12T12:57:42.000Z | 2019-05-06T00:31:29.000Z | Sharing/Src/Source/Common/Private/RemoveOperation.cpp | matthejo/MixedRealityToolkit | c97ace84cfc4cdf97044b35b568bd9182497497a | [
"MIT"
] | 84 | 2017-08-14T11:03:37.000Z | 2019-04-24T22:59:59.000Z | Sharing/Src/Source/Common/Private/RemoveOperation.cpp | matthejo/MixedRealityToolkit | c97ace84cfc4cdf97044b35b568bd9182497497a | [
"MIT"
] | 114 | 2017-08-12T03:51:58.000Z | 2019-05-06T03:36:26.000Z | //////////////////////////////////////////////////////////////////////////
// RemoveOperation.cpp
//
// Copyright (C) 2016 Microsoft Corp. All Rights Reserved
//////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "RemoveOperation.h"
XTOOLS_NAMESPACE_BEGIN
NAMESPACE_B... | 23.377953 | 122 | 0.710677 | [
"vector"
] |
e6285ca57aed64cd06dd00b12d2e50e446dcb460 | 9,858 | cpp | C++ | GameFramwork/GameFramwork/Mesh.cpp | Suroboros/Game-Framwork | 95dd3c2fe8504722990abb6c7cdf810881ad84c2 | [
"MIT"
] | null | null | null | GameFramwork/GameFramwork/Mesh.cpp | Suroboros/Game-Framwork | 95dd3c2fe8504722990abb6c7cdf810881ad84c2 | [
"MIT"
] | null | null | null | GameFramwork/GameFramwork/Mesh.cpp | Suroboros/Game-Framwork | 95dd3c2fe8504722990abb6c7cdf810881ad84c2 | [
"MIT"
] | null | null | null | /////////////////////////////////////
// Object.cpp
// The mesh of object.
/////////////////////////////////////
#include "Mesh.h"
#include "D3DClass.h"
#include <fstream>
#include <string>
Mesh::Mesh()
{
m_vertexBuffer = nullptr;
m_indexBuffer = nullptr;
}
Mesh::Mesh(const Mesh &)
{
}
Mesh::~Mesh()
{
}
bool Mesh... | 18.848948 | 107 | 0.624772 | [
"mesh",
"render",
"object",
"vector",
"model"
] |
e639dc7a8deabc1c7236896ee36d15db5edaeaa6 | 178 | cc | C++ | test/states/test_states.cc | gorobot/symctrl | ca76bcd2bfed8c5bef21545d735125aa6f3dd1dd | [
"MIT"
] | 1 | 2018-04-17T20:01:43.000Z | 2018-04-17T20:01:43.000Z | test/states/test_states.cc | gorobot/symctrl | ca76bcd2bfed8c5bef21545d735125aa6f3dd1dd | [
"MIT"
] | null | null | null | test/states/test_states.cc | gorobot/symctrl | ca76bcd2bfed8c5bef21545d735125aa6f3dd1dd | [
"MIT"
] | 1 | 2018-05-13T03:50:07.000Z | 2018-05-13T03:50:07.000Z | #include <catch2/catch.hpp>
#include <symctrl/states/state.hpp>
#include <symctrl/states/vector.hpp>
using namespace symctrl;
TEST_CASE("States: operations", "[states]") {
}
| 16.181818 | 45 | 0.730337 | [
"vector"
] |
e63b817cbf02643c23a5d05a29ad481925504d2d | 9,802 | cpp | C++ | module/src/main/cpp/main.cpp | musheng2020/Riru-ModuleFridaGadget | 4e77bcf6194668ed37b7d50330c52e20292b360b | [
"MIT"
] | 69 | 2021-10-21T03:18:58.000Z | 2022-03-28T05:22:19.000Z | module/src/main/cpp/main.cpp | musheng2020/Riru-ModuleFridaGadget | 4e77bcf6194668ed37b7d50330c52e20292b360b | [
"MIT"
] | 6 | 2021-12-06T12:02:07.000Z | 2022-03-30T11:34:33.000Z | module/src/main/cpp/main.cpp | musheng2020/Riru-ModuleFridaGadget | 4e77bcf6194668ed37b7d50330c52e20292b360b | [
"MIT"
] | 32 | 2021-09-14T06:23:17.000Z | 2022-03-29T07:29:44.000Z | #include <jni.h>
#include <sys/types.h>
#include <riru.h>
#include <malloc.h>
#include <vector>
#include <cstring>
#include <dlfcn.h>
#include "logging.h"
#include "main.h"
static char nice_process_name[256] = {0};
static char package_name[256] = {0};
static jint my_uid = 0;
static bool isApp(int uid) {
if (uid... | 35.643636 | 172 | 0.633646 | [
"vector"
] |
e63d86f6fbff4b0307f0c4f91c147919c3d82e4b | 7,493 | cc | C++ | src/objects/float.cc | Cc618/Riddim | da79694b78f854a075632d36e1bd9fa70d744ef2 | [
"MIT"
] | 7 | 2021-06-20T13:40:28.000Z | 2022-01-05T15:49:53.000Z | src/objects/float.cc | Cc618/Riddim | da79694b78f854a075632d36e1bd9fa70d744ef2 | [
"MIT"
] | null | null | null | src/objects/float.cc | Cc618/Riddim | da79694b78f854a075632d36e1bd9fa70d744ef2 | [
"MIT"
] | 1 | 2021-06-27T12:53:20.000Z | 2021-06-27T12:53:20.000Z | #include "float.hh"
#include "bool.hh"
#include "error.hh"
#include "hash.hh"
#include "int.hh"
#include "map.hh"
#include "str.hh"
#include "vec.hh"
#include "program.hh"
#include <iomanip>
#include <sstream>
// Avoid typedef conflicts
#define float_t cmath_float_t
#include <cmath>
#undef float_t
using namespace std... | 21.286932 | 76 | 0.513546 | [
"object"
] |
e6467ebd140c0565da6f20fa880da2da4618c004 | 8,997 | cpp | C++ | src/Lib/rfc5285/RtpHeaderExtension.cpp | miseri/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | 1 | 2021-07-14T08:15:05.000Z | 2021-07-14T08:15:05.000Z | src/Lib/rfc5285/RtpHeaderExtension.cpp | 7956968/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | null | null | null | src/Lib/rfc5285/RtpHeaderExtension.cpp | 7956968/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | 2 | 2021-07-14T08:15:02.000Z | 2021-07-14T08:56:10.000Z | #include "CorePch.h"
#include <rtp++/rfc5285/RtpHeaderExtension.h>
#include <cpputil/Utility.h>
#define COMPONENT_LOG_LEVEL 10
namespace rtp_plus_plus
{
namespace rfc5285
{
RtpHeaderExtension::RtpHeaderExtension(uint16_t uiProfileDefined, RtpHeaderExtensionType eType, uint16_t uiExtensionLengthInWords, uint8_t uiApp... | 31.348432 | 219 | 0.661332 | [
"vector"
] |
e64bfda271903dc2bd8cc9b5f48f966f6876917f | 1,069 | hh | C++ | Testcase4-Application-breakdown/online-compiling/src/net/redis.hh | hunhoffe/ServerlessBench | 529eb835638cad0edb5be3343166c7ade375ece2 | [
"MulanPSL-1.0"
] | 129 | 2020-08-09T12:02:30.000Z | 2022-03-31T15:26:03.000Z | Testcase4-Application-breakdown/online-compiling/src/net/redis.hh | hunhoffe/ServerlessBench | 529eb835638cad0edb5be3343166c7ade375ece2 | [
"MulanPSL-1.0"
] | 11 | 2020-09-17T09:42:07.000Z | 2022-03-30T19:05:38.000Z | Testcase4-Application-breakdown/online-compiling/src/net/redis.hh | hunhoffe/ServerlessBench | 529eb835638cad0edb5be3343166c7ade375ece2 | [
"MulanPSL-1.0"
] | 22 | 2020-08-20T06:59:24.000Z | 2022-03-18T21:00:05.000Z | /* -*-mode:c++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
#ifndef NET_REDIS_HH
#define NET_REDIS_HH
#include <vector>
#include <string>
#include <functional>
#include "net/requests.hh"
struct RedisClientConfig
{
std::string ip { "0.0.0.0" };
uint16_t port { 6379 };
std::string username {}... | 24.295455 | 98 | 0.626754 | [
"vector"
] |
e651dfc2aa8b0091c5d22be75a7f4a3275ac7c7f | 6,765 | cpp | C++ | New Source/Hgine/C++/Classes/3D/Mesh/Mesh.cpp | survivalizeed/CppRawEnginePrototype | 2aa87c4b09771ea252583cc0c6f6566b90f1bead | [
"MIT"
] | 5 | 2021-04-18T11:07:54.000Z | 2021-06-11T08:16:29.000Z | New Source/Hgine/C++/Classes/3D/Mesh/Mesh.cpp | survivalizeed/CppRawEnginePrototype | 2aa87c4b09771ea252583cc0c6f6566b90f1bead | [
"MIT"
] | null | null | null | New Source/Hgine/C++/Classes/3D/Mesh/Mesh.cpp | survivalizeed/CppRawEnginePrototype | 2aa87c4b09771ea252583cc0c6f6566b90f1bead | [
"MIT"
] | 2 | 2021-02-25T08:48:33.000Z | 2021-03-02T12:20:24.000Z |
#include "Mesh.h"
sur::Mesh::Mesh(const std::string& file, Vec3f position, Color color, Vec3f origin, const Mat3x3& projection)
{
this->position = position;
this->color = color;
this->origin = origin;
this->projection = projection;
auto replacestr = [](std::string& input, char from, char to) {
... | 31.760563 | 166 | 0.416999 | [
"mesh",
"render",
"vector"
] |
e658778419a4316ab206014fcc10bd2b88ae4b1f | 567 | cpp | C++ | cpp/WordBreak.cpp | sizeoftank/leetcode-solutions | ccf27cdf4eeb816175c51ac67a5d79c8cbfd5beb | [
"MIT"
] | null | null | null | cpp/WordBreak.cpp | sizeoftank/leetcode-solutions | ccf27cdf4eeb816175c51ac67a5d79c8cbfd5beb | [
"MIT"
] | null | null | null | cpp/WordBreak.cpp | sizeoftank/leetcode-solutions | ccf27cdf4eeb816175c51ac67a5d79c8cbfd5beb | [
"MIT"
] | null | null | null | class Solution {
public:
bool wordBreak(string s, unordered_set<string> &dict) {
vector<bool> dp(s.size()+1);
set<int> wordsize;
for (auto it : dict)
wordsize.insert(it.size());
dp[0] = true;
for (int i = 0; i<s.size(); i++){
for (auto k : wordsize){
... | 28.35 | 68 | 0.405644 | [
"vector"
] |
e65ed833bbbfe521449d0dc38a5348bdbe509ab2 | 40,000 | cpp | C++ | samples/mha_sample.cpp | azrael417/cudnn-frontend | 704a61f7a3c16bcc52acfa9c4587b2df7703a29c | [
"MIT"
] | null | null | null | samples/mha_sample.cpp | azrael417/cudnn-frontend | 704a61f7a3c16bcc52acfa9c4587b2df7703a29c | [
"MIT"
] | null | null | null | samples/mha_sample.cpp | azrael417/cudnn-frontend | 704a61f7a3c16bcc52acfa9c4587b2df7703a29c | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use... | 44.642857 | 133 | 0.5189 | [
"vector"
] |
e66339ea718adb09f6ed23cb7bcbf16de50231f7 | 26,443 | cpp | C++ | src/client/ParticleSystem.cpp | bqqbarbhg/spear | 727f41fa5197f9681337d1ff37ea63c44708f0d4 | [
"BSD-3-Clause"
] | 29 | 2020-07-27T09:56:02.000Z | 2022-03-28T01:38:07.000Z | src/client/ParticleSystem.cpp | bqqbarbhg/spear | 727f41fa5197f9681337d1ff37ea63c44708f0d4 | [
"BSD-3-Clause"
] | 3 | 2020-05-29T11:43:20.000Z | 2020-09-04T09:56:56.000Z | src/client/ParticleSystem.cpp | bqqbarbhg/spear | 727f41fa5197f9681337d1ff37ea63c44708f0d4 | [
"BSD-3-Clause"
] | 2 | 2020-05-29T11:34:46.000Z | 2021-03-08T08:39:07.000Z | #include "ParticleSystem.h"
#include "client/AreaSystem.h"
#include "sf/HashMap.h"
#include "sf/Frustum.h"
#include "sf/Random.h"
#include "sf/Float4.h"
#include "sf/Sort.h"
#include "sp/Renderer.h"
#include "client/ParticleTexture.h"
#include "client/BSpline.h"
#include "client/VisFogSystem.h"
#include "game/shad... | 29.026345 | 184 | 0.676587 | [
"transform"
] |
e663fd16376ed3977785689079408b556a53b596 | 6,084 | cpp | C++ | examples/learned_decompositions.cpp | shubho/gtn | 9d2d7a6269bc7c2b594aed7ef80b5039b0f40dec | [
"MIT"
] | 478 | 2020-09-30T11:25:18.000Z | 2022-03-14T12:40:17.000Z | examples/learned_decompositions.cpp | KonstantinKlepikov/gtn | 319e939f292121dcfc6bcb001773889b18227034 | [
"MIT"
] | 18 | 2020-09-30T16:23:54.000Z | 2021-06-02T22:51:46.000Z | examples/learned_decompositions.cpp | KonstantinKlepikov/gtn | 319e939f292121dcfc6bcb001773889b18227034 | [
"MIT"
] | 47 | 2020-09-30T11:38:44.000Z | 2021-11-06T01:32:22.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <sstream>
#include "gtn/gtn.h"
using namespace gtn;
void asgWithTransducers() {
// We can simplify ASG to it's core a... | 31.853403 | 80 | 0.605851 | [
"vector"
] |
e669697ee3c048914b9d5656aafbcf52051527e5 | 2,406 | cpp | C++ | sources/dansandu/math/clustering.cpp | dansandu/math | 48e463c01a440a8f3c7b1d99c230e141f0037266 | [
"MIT"
] | null | null | null | sources/dansandu/math/clustering.cpp | dansandu/math | 48e463c01a440a8f3c7b1d99c230e141f0037266 | [
"MIT"
] | null | null | null | sources/dansandu/math/clustering.cpp | dansandu/math | 48e463c01a440a8f3c7b1d99c230e141f0037266 | [
"MIT"
] | null | null | null | #include "dansandu/math/clustering.hpp"
#include "dansandu/ballotin/exception.hpp"
#include "dansandu/math/common.hpp"
#include <algorithm>
#include <limits>
#include <random>
using dansandu::math::matrix::ConstantMatrixView;
using dansandu::math::matrix::distance;
using dansandu::math::matrix::dynamic;
using dansand... | 34.869565 | 99 | 0.608063 | [
"vector"
] |
e66c34f97e922ce6bb67257e9b5e83332dda7923 | 10,507 | hpp | C++ | misc/baxter_class/include/baxter.hpp | YoshimitsuMatsutaIe/rmp_test | a7c94ff68b518ef51821484795c308c2c8519c4c | [
"MIT"
] | null | null | null | misc/baxter_class/include/baxter.hpp | YoshimitsuMatsutaIe/rmp_test | a7c94ff68b518ef51821484795c308c2c8519c4c | [
"MIT"
] | null | null | null | misc/baxter_class/include/baxter.hpp | YoshimitsuMatsutaIe/rmp_test | a7c94ff68b518ef51821484795c308c2c8519c4c | [
"MIT"
] | null | null | null | /******************************************************************************
* Code generated with sympy 1.9 *
* *
* See http://www.sympy.org/ for more information. *
... | 45.288793 | 82 | 0.624346 | [
"vector"
] |
e67cbcd35cf891dd7ff29f5aa79d4b6a47b9cd41 | 9,988 | cpp | C++ | packages/monte_carlo/collision/native/src/MonteCarlo_SubshellIncoherentPhotonScatteringDistribution.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/collision/native/src/MonteCarlo_SubshellIncoherentPhotonScatteringDistribution.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/collision/native/src/MonteCarlo_SubshellIncoherentPhotonScatteringDistribution.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_SubshellIncoherentPhotonScatteringDistribution.cpp
//! \author Alex Robinson
//! \brief The subshell incoherent photon scattering distribution decl.
//!
//---------------------------------------------------------... | 34.205479 | 95 | 0.733881 | [
"model"
] |
e67ecd773decbcfaded6fc4dd9ab4a020f958c1b | 3,673 | cpp | C++ | src/CollisionDispatcher.cpp | 20tab/pybulletphysics | 7e227fc9870321785a1b6c53dd4e767cc66aad6f | [
"MIT"
] | 21 | 2015-09-16T15:24:41.000Z | 2019-03-19T07:28:32.000Z | src/CollisionDispatcher.cpp | 20tab/pybulletphysics | 7e227fc9870321785a1b6c53dd4e767cc66aad6f | [
"MIT"
] | 2 | 2015-07-17T16:54:25.000Z | 2016-09-24T14:45:33.000Z | src/CollisionDispatcher.cpp | 20tab/pybulletphysics | 7e227fc9870321785a1b6c53dd4e767cc66aad6f | [
"MIT"
] | 1 | 2020-03-31T09:26:54.000Z | 2020-03-31T09:26:54.000Z | #include "pybulletphysics.h"
extern PyTypeObject bulletphysics_DefaultCollisionConfigurationType;
static void
CollisionDispatcher_dealloc(bulletphysics_DispatcherObject* self)
{
Py_DECREF(self->collision_configuration);
delete(self->dispatcher);
self->ob_type->tp_free((PyObject*)self);
}
static PyOb... | 40.362637 | 118 | 0.658045 | [
"object"
] |
e6805c50fab243d63ba297ea12faf57535d79e47 | 19,403 | cpp | C++ | B2G/hardware/libhardware_legacy/audio/audio_hw_hal.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/hardware/libhardware_legacy/audio/audio_hw_hal.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/hardware/libhardware_legacy/audio/audio_hw_hal.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 32.018152 | 93 | 0.695769 | [
"vector"
] |
e6846e542ded5ddc6da34f84e74b2a549bbed210 | 1,914 | hpp | C++ | vcl/interaction/light_animation_data/light_animation_data.hpp | vogr/OceanGL | e894df3319243b8ee2102856785ab3a9930e0029 | [
"MIT"
] | null | null | null | vcl/interaction/light_animation_data/light_animation_data.hpp | vogr/OceanGL | e894df3319243b8ee2102856785ab3a9930e0029 | [
"MIT"
] | null | null | null | vcl/interaction/light_animation_data/light_animation_data.hpp | vogr/OceanGL | e894df3319243b8ee2102856785ab3a9930e0029 | [
"MIT"
] | null | null | null | #pragma once
#include <vcl/interaction/camera/camera.hpp>
#include <vcl/wrapper/glad/glad.hpp>
namespace vcl {
enum class DrawType {
STANDARD, PASS0, PASS1
};
class light_animation_data {
public:
light_animation_data() = default;
light_animation_data(GLuint shader0, GLuint sha... | 37.529412 | 104 | 0.643156 | [
"object"
] |
e6898d7ac640a6746d5f555bdce121fe7d7ed0d1 | 626 | cpp | C++ | src/QModel/SqliteModelIndex.cpp | bradosia/BookFiler-Lib-Sort-Filter-Table-Widget | 6d4b99ed27eb6b43f6ac0495a8adb02bec5c801e | [
"MIT"
] | 2 | 2021-02-25T05:09:29.000Z | 2022-01-12T03:27:26.000Z | src/QModel/SqliteModelIndex.cpp | bradosia/BookFiler-Lib-Sort-Filter-Table-Widget | 6d4b99ed27eb6b43f6ac0495a8adb02bec5c801e | [
"MIT"
] | null | null | null | src/QModel/SqliteModelIndex.cpp | bradosia/BookFiler-Lib-Sort-Filter-Table-Widget | 6d4b99ed27eb6b43f6ac0495a8adb02bec5c801e | [
"MIT"
] | 1 | 2020-12-11T17:19:44.000Z | 2020-12-11T17:19:44.000Z | /*
* @name BookFiler Widget - Sqlite Model
* @author Branden Lee
* @version 1.00
* @license MIT
* @brief QAbstractItemModel with a sqlite3 backend.
*/
#if DEPENDENCY_SQLITE
// C++
#include <iostream>
// Local Project
#include "SqliteModelIndex.hpp"
/*
* bookfiler - widget
*/
namespace bookfiler {
namespace ... | 15.65 | 65 | 0.71246 | [
"model"
] |
e695410a7d14de262beba871fe0e69aca3485e61 | 4,105 | hpp | C++ | src/BayesW.hpp | medical-genomics-group/hydra | d352f1096d8397a36d6984ff7ea944bdb6c4e1d5 | [
"MIT"
] | 7 | 2020-09-09T08:35:24.000Z | 2021-11-14T16:09:12.000Z | src/BayesW.hpp | medical-genomics-group/hydra | d352f1096d8397a36d6984ff7ea944bdb6c4e1d5 | [
"MIT"
] | 2 | 2020-12-09T14:48:15.000Z | 2021-04-23T09:56:24.000Z | src/BayesW.hpp | medical-genomics-group/hydra | d352f1096d8397a36d6984ff7ea944bdb6c4e1d5 | [
"MIT"
] | 1 | 2020-10-11T12:33:25.000Z | 2020-10-11T12:33:25.000Z | /*
* BayesRRm.h
*
* Created on: 5 Sep 2018
* Author: admin
*/
#ifndef SRC_BAYESW_HPP_
#define SRC_BAYESW_HPP_
#include "BayesRRm.h"
#include "data.hpp"
#include "options.hpp"
#include "distributions_boost.hpp"
#include <Eigen/Eigen>
// Three structures for ARS
struct pars{
/* Common parameters for the... | 30.183824 | 217 | 0.711328 | [
"vector",
"model"
] |
e6972d503562dbb99fcae87d85f0bce13d01f9e4 | 1,969 | cpp | C++ | DammitGLFW/Camera.cpp | SuniTheFish/DammitGLFW | bf80928ba1bbc439b06a54098110d8dff7388e38 | [
"MIT"
] | null | null | null | DammitGLFW/Camera.cpp | SuniTheFish/DammitGLFW | bf80928ba1bbc439b06a54098110d8dff7388e38 | [
"MIT"
] | null | null | null | DammitGLFW/Camera.cpp | SuniTheFish/DammitGLFW | bf80928ba1bbc439b06a54098110d8dff7388e38 | [
"MIT"
] | null | null | null | #include "Camera.h"
void Camera::updateCameraVectors()
{
// Calculate the new Front vector
glm::vec3 front
{
cos(glm::radians(m_yaw)) * cos(glm::radians(m_pitch)), // x
sin(glm::radians(m_pitch)), // y
sin(glm::radians(m_yaw)) * cos(glm::radians(m_pitch)) // z
};
m_front = glm::normalize(front);
// A... | 24.308642 | 186 | 0.693245 | [
"vector"
] |
e69c93c06176e475312cf1bcf7b51b2ef7cb09db | 5,294 | hpp | C++ | include/Objects.hpp | jLantxa/PathTracer | 37dabfeefebd16799357233242b76eed1f0cd2ab | [
"Apache-2.0"
] | null | null | null | include/Objects.hpp | jLantxa/PathTracer | 37dabfeefebd16799357233242b76eed1f0cd2ab | [
"Apache-2.0"
] | 5 | 2018-07-11T22:13:05.000Z | 2018-07-13T21:22:29.000Z | include/Objects.hpp | jLantxa/PathTracer | 37dabfeefebd16799357233242b76eed1f0cd2ab | [
"Apache-2.0"
] | null | null | null | /*
* This source file is part of PathTracer
*
* Copyright 2018, 2019 Javier Lancha Vázquez
*
* 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/LICENS... | 28.159574 | 85 | 0.680582 | [
"mesh",
"object",
"vector",
"3d"
] |
e69f3ed92eab824f0936d897504ef1d088cd3697 | 756 | cpp | C++ | Leetcode_challenges/Day6/longestconsecutivesequence.cpp | vishwajeet-hogale/LearnSTL | 0cbfc12b66ba844de23d7966d18cadc7b2d5a77f | [
"MIT"
] | null | null | null | Leetcode_challenges/Day6/longestconsecutivesequence.cpp | vishwajeet-hogale/LearnSTL | 0cbfc12b66ba844de23d7966d18cadc7b2d5a77f | [
"MIT"
] | null | null | null | Leetcode_challenges/Day6/longestconsecutivesequence.cpp | vishwajeet-hogale/LearnSTL | 0cbfc12b66ba844de23d7966d18cadc7b2d5a77f | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
class Solution {
public:
int longestConsecutive(vector<int>& nums) {
if(nums.size() == 0){
return 0;
}
else if(nums.size() == 1)
return 1;
sort(nums.begin(),nums.end());
int c =0;
... | 21.6 | 47 | 0.332011 | [
"vector"
] |
e69fd73ef33e45f62ce5f7f56ec3e694e30e8272 | 3,382 | cpp | C++ | src/pytorch/cpp/approx_linear_xA_b.cpp | adelmanm/approx | 6a1e26b5996c464f7a47701cbd06c35865268d60 | [
"BSD-3-Clause"
] | 5 | 2021-07-08T12:28:27.000Z | 2022-03-10T16:44:25.000Z | src/pytorch/cpp/approx_linear_xA_b.cpp | adelmanm/approx | 6a1e26b5996c464f7a47701cbd06c35865268d60 | [
"BSD-3-Clause"
] | null | null | null | src/pytorch/cpp/approx_linear_xA_b.cpp | adelmanm/approx | 6a1e26b5996c464f7a47701cbd06c35865268d60 | [
"BSD-3-Clause"
] | 2 | 2021-10-20T04:29:11.000Z | 2022-03-10T16:44:29.000Z | #include <torch/extension.h>
/***********************************************************************
Applies approximate linear transformation to the incoming data: y = xA + b.
Note: A is assumed not transposed
the matrix multiply xA is approximated
Shape:
- Input: (N, *, in\_features) where `... | 37.164835 | 133 | 0.575991 | [
"shape"
] |
e6a0bdfa89fcfb9c0706d44e684a5d55af6dd89a | 8,449 | cc | C++ | xmysqlnd/xmysqlnd_index_collection_commands.cc | kirmorozov/pecl-database-mysql_xdevapi | 214e0b13dcea17dfa86000092860e3fb35f02257 | [
"PHP-3.01"
] | 14 | 2017-11-16T03:13:31.000Z | 2022-03-10T14:59:53.000Z | xmysqlnd/xmysqlnd_index_collection_commands.cc | kirmorozov/pecl-database-mysql_xdevapi | 214e0b13dcea17dfa86000092860e3fb35f02257 | [
"PHP-3.01"
] | 8 | 2018-03-02T06:08:27.000Z | 2022-01-18T10:34:43.000Z | xmysqlnd/xmysqlnd_index_collection_commands.cc | kirmorozov/pecl-database-mysql_xdevapi | 214e0b13dcea17dfa86000092860e3fb35f02257 | [
"PHP-3.01"
] | 18 | 2018-03-01T13:45:16.000Z | 2022-03-10T06:30:02.000Z | /*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+--------------... | 28.447811 | 114 | 0.698544 | [
"object"
] |
e6a693b9d9f20bac64a4df7f7c3b4e393e866085 | 541 | cpp | C++ | codechef/feb18/1.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | codechef/feb18/1.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | codechef/feb18/1.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main(int argc, char const *argv[]){
int t;
cin>>t;
while(t--){
int n;
cin>>n;
int max1=0,max2=0;
int sum1=0,sum2=0;
for(int i=0;i<n;i++){
int x;
cin>>x;
if(x>max1) max1=x;
sum1+=x;
}
for(in... | 15.911765 | 39 | 0.55268 | [
"vector"
] |
e6ab32f34c151d416484080513c6642ee278eafc | 4,496 | cpp | C++ | src/CgiHelper.cpp | praveenster/leplib | f3db88d9e0ca72be7faec820590f17f576b93b75 | [
"MIT"
] | 1 | 2018-10-30T07:43:42.000Z | 2018-10-30T07:43:42.000Z | src/CgiHelper.cpp | praveenster/leplib | f3db88d9e0ca72be7faec820590f17f576b93b75 | [
"MIT"
] | 7 | 2015-02-03T18:40:35.000Z | 2015-05-04T06:33:20.000Z | src/CgiHelper.cpp | praveenster/leplib | f3db88d9e0ca72be7faec820590f17f576b93b75 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2011 Neevarp Yhtroom
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
... | 32.345324 | 92 | 0.717749 | [
"vector"
] |
e6b1a64cfe77e575c8246085f4e3538c55b449a3 | 262 | cpp | C++ | cold/cold/render/impl/debug.cpp | bqqbarbhg/cold | 23237e0112e1a904c2ae0c0e32420bd08ca5595c | [
"MIT"
] | null | null | null | cold/cold/render/impl/debug.cpp | bqqbarbhg/cold | 23237e0112e1a904c2ae0c0e32420bd08ca5595c | [
"MIT"
] | null | null | null | cold/cold/render/impl/debug.cpp | bqqbarbhg/cold | 23237e0112e1a904c2ae0c0e32420bd08ca5595c | [
"MIT"
] | null | null | null | #include "debug.h"
#include <cold/render/render.h>
namespace cold { namespace impl {
void RenderDebugHandle::check_error() const {
render::error_t err;
if (render::get_error(err)) {
std::string s = render::get_error_string(err);
__debugbreak();
}
}
} } | 18.714286 | 48 | 0.698473 | [
"render"
] |
e6b2ed11b389e54462238a915a150f3d3eb6ba8b | 2,125 | cc | C++ | test/shuffle_unittest.cc | cgetzen/cpp-infima | a0fb32946181c6fe0c207e602f9849466d0031ea | [
"Apache-2.0"
] | null | null | null | test/shuffle_unittest.cc | cgetzen/cpp-infima | a0fb32946181c6fe0c207e602f9849466d0031ea | [
"Apache-2.0"
] | null | null | null | test/shuffle_unittest.cc | cgetzen/cpp-infima | a0fb32946181c6fe0c207e602f9849466d0031ea | [
"Apache-2.0"
] | null | null | null | #include "gtest/gtest.h"
#include "infima/infima.h"
template <typename T>
void equal_vector(std::vector<T> x, std::vector<T> y) {
ASSERT_EQ(x.size(), y.size()) << "Vectors x and y are of unequal length";
for (long unsigned int i = 0; i < x.size(); ++i) {
EXPECT_EQ(x[i], y[i]) << "Vectors x and y differ at ind... | 42.5 | 118 | 0.696471 | [
"vector"
] |
e6b77b3cf54b5d2947b0fa84e476fc41a33f67c9 | 1,297 | cpp | C++ | src/systems/HealthBarRenderSystem.cpp | losinggeneration/starwarrior | 31b6b531f67166467c424c710186c02701ac8ccc | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/systems/HealthBarRenderSystem.cpp | losinggeneration/starwarrior | 31b6b531f67166467c424c710186c02701ac8ccc | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/systems/HealthBarRenderSystem.cpp | losinggeneration/starwarrior | 31b6b531f67166467c424c710186c02701ac8ccc | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include "systems/HealthBarRenderSystem.h"
#include "components/Health.h"
#include "components/Transform.h"
#include <sstream>
using namespace hecate;
namespace StarWarrior {
HealthBarRenderSystem::HealthBarRenderSystem(SDL_Surface *screen, TTF_Font *font) {
Health h;
Transform t;
componentList_t l;
l.push_ba... | 21.616667 | 83 | 0.706245 | [
"transform"
] |
e6bdbbe9101840857cfe52970937735dca81356c | 5,790 | cpp | C++ | game.cpp | blatchley/AUHACK19 | e2c2c07a4f318bde2c888c64da72bb2b12dfc0a6 | [
"BSL-1.0"
] | 1 | 2020-12-29T04:43:11.000Z | 2020-12-29T04:43:11.000Z | game.cpp | killerdogice/AUHACK19 | e2c2c07a4f318bde2c888c64da72bb2b12dfc0a6 | [
"BSL-1.0"
] | null | null | null | game.cpp | killerdogice/AUHACK19 | e2c2c07a4f318bde2c888c64da72bb2b12dfc0a6 | [
"BSL-1.0"
] | null | null | null | #include <ctime>
#include "time.h"
#include "shared_state.hpp"
#include <chrono>
#include <thread>
#include <sstream>
#include <iostream>
// private:
// int height, width;
// int headx, heady;
// enum eDirection {STOP, LEFT, RIGHT, UP, DOWN};
// eDirection dir;
// bool gameRunning;
// pub... | 22.183908 | 110 | 0.490674 | [
"render",
"vector"
] |
e6be0ad82c4a2f06f70cf7aa6836b896b509509e | 33,708 | cpp | C++ | src/common/Honey/Math/Alge/Matrix/Matrix4.cpp | Qarterd/Honeycomb | 9b7066529444cdd85d3e3467b02b72eea651853d | [
"CC0-1.0"
] | 33 | 2015-05-08T00:11:01.000Z | 2022-03-04T08:25:06.000Z | src/common/Honey/Math/Alge/Matrix/Matrix4.cpp | Qarterd/Honeycomb | 9b7066529444cdd85d3e3467b02b72eea651853d | [
"CC0-1.0"
] | null | null | null | src/common/Honey/Math/Alge/Matrix/Matrix4.cpp | Qarterd/Honeycomb | 9b7066529444cdd85d3e3467b02b72eea651853d | [
"CC0-1.0"
] | 6 | 2015-08-08T13:47:14.000Z | 2021-04-06T02:29:41.000Z | // Honeycomb, Copyright (C) 2015 NewGamePlus Inc. Distributed under the Boost Software License v1.0.
#pragma hdrstop
#include "Honey/Math/Alge/Matrix/Matrix4.h"
#include "Honey/Math/Alge/Transform.h"
#define Section_Source
#include "Honey/Math/Alge/Matrix/platform/Matrix4.h"
#undef Section_Source
namesp... | 34.966805 | 122 | 0.503501 | [
"vector",
"transform",
"3d"
] |
e6d0e517ab5fd3c87a94124f7cdff1c4128b02e8 | 2,605 | cpp | C++ | atcoder/arc070/D/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | atcoder/arc070/D/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | atcoder/arc070/D/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | // atcoder/arc070/D/main.cpp
// author: @___Johniel
// github: https://github.com/johniel/
#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... | 27.421053 | 144 | 0.495585 | [
"vector"
] |
e6d2145605230831468fd028aa3e99ee15fad163 | 10,767 | cpp | C++ | src/hard/ray-of-light/solutions/c++/solution.cpp | rdtsc/codeeval-solutions | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | [
"MIT"
] | null | null | null | src/hard/ray-of-light/solutions/c++/solution.cpp | rdtsc/codeeval-solutions | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | [
"MIT"
] | null | null | null | src/hard/ray-of-light/solutions/c++/solution.cpp | rdtsc/codeeval-solutions | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstddef>
#include <fstream>
#include <functional>
#include <iostream>
#include <limits>
#include <queue>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <unordered_map>
#include <vector>
struct Entity
{
using value_type = char;... | 24.923611 | 80 | 0.521315 | [
"render",
"vector"
] |
e6d42cfe4c383713389c254c77a0a4bf96b1eb2c | 17,930 | cpp | C++ | create_clang_svml_intrinsic.cpp | Neumann-A/llvm_svml_intrinsic_generator | cdfeb4db8110de8b8c0684a98c74bc079605ea98 | [
"MIT"
] | 3 | 2019-06-09T20:55:05.000Z | 2021-11-23T13:30:24.000Z | create_clang_svml_intrinsic.cpp | Neumann-A/llvm_svml_intrinsic_generator | cdfeb4db8110de8b8c0684a98c74bc079605ea98 | [
"MIT"
] | null | null | null | create_clang_svml_intrinsic.cpp | Neumann-A/llvm_svml_intrinsic_generator | cdfeb4db8110de8b8c0684a98c74bc079605ea98 | [
"MIT"
] | 1 | 2022-02-06T21:26:11.000Z | 2022-02-06T21:26:11.000Z | ///-------------------------------------------------------------------------------------------------
// file: create_clang_svml_intrinsic.cpp
//
// Copyright (c) 2019 Alexander Neumann.
// MIT License see https://github.com/Neumann-A/llvm_svml_intrinsic_generator/blob/master/LICENSE
//
// author: Alexander
// date: 09.... | 32.132616 | 167 | 0.685611 | [
"vector"
] |
5c7fcd28c99b17a4f44ae1312cd8977ef9cf2377 | 1,969 | cpp | C++ | ss/utils.cpp | leduftw/ss | eb9ec70b8adbf6cd991f009c89f1667682150701 | [
"MIT"
] | 1 | 2021-09-01T09:00:06.000Z | 2021-09-01T09:00:06.000Z | ss/utils.cpp | leduftw/ss | eb9ec70b8adbf6cd991f009c89f1667682150701 | [
"MIT"
] | null | null | null | ss/utils.cpp | leduftw/ss | eb9ec70b8adbf6cd991f009c89f1667682150701 | [
"MIT"
] | null | null | null | #include "utils.hpp"
#include "usage_error.hpp"
void Utils::process_input(int argc, char** argv, string& input_file_name, string& output_file_name) {
if (argc < 2 || argc > 4) {
throw UsageError();
}
if (string(argv[1]) == "-o") {
if (argc != 4) {
throw UsageError();
}
... | 24.924051 | 101 | 0.606399 | [
"vector"
] |
5c7ff4034195f5f2126e876965c6ea3d3c27c289 | 4,272 | cpp | C++ | clmagmablas/zlascl_2x2.cpp | Zhitao-Li/clMagma | c8dcc4025601ac67736714fb43f8f4382c05d900 | [
"BSD-3-Clause"
] | null | null | null | clmagmablas/zlascl_2x2.cpp | Zhitao-Li/clMagma | c8dcc4025601ac67736714fb43f8f4382c05d900 | [
"BSD-3-Clause"
] | 1 | 2021-03-13T10:05:16.000Z | 2021-03-13T10:05:16.000Z | clmagmablas/zlascl_2x2.cpp | Zhitao-Li/clMagma | c8dcc4025601ac67736714fb43f8f4382c05d900 | [
"BSD-3-Clause"
] | null | null | null | /*
-- MAGMA (version 1.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date
@precisions normal z -> s d c
auto-converted from zlascl_2x2.cu
@author Ichitaro Yamazaki
*/
#include "clmagma_runtime.h"
#include "common_magm... | 32.610687 | 100 | 0.529494 | [
"vector"
] |
5c82388bfe8a0007c55b5f3f4ea7b55518b865ba | 1,338 | hpp | C++ | shared_model/backend/protobuf/query_responses/proto_transaction_response.hpp | artyom-yurin/iroha-archive | 1ad3a149d21d30e99c650a9a4bad88b2792d751d | [
"Apache-2.0"
] | 31 | 2019-04-17T19:32:05.000Z | 2022-02-05T01:35:02.000Z | shared_model/backend/protobuf/query_responses/proto_transaction_response.hpp | artyom-yurin/iroha-archive | 1ad3a149d21d30e99c650a9a4bad88b2792d751d | [
"Apache-2.0"
] | 11 | 2016-10-13T10:09:55.000Z | 2019-06-13T08:49:11.000Z | shared_model/backend/protobuf/query_responses/proto_transaction_response.hpp | artyom-yurin/iroha-archive | 1ad3a149d21d30e99c650a9a4bad88b2792d751d | [
"Apache-2.0"
] | 12 | 2019-06-03T10:31:31.000Z | 2021-12-13T12:17:15.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_SHARED_MODEL_PROTO_TRANSACTION_RESPONSE_HPP
#define IROHA_SHARED_MODEL_PROTO_TRANSACTION_RESPONSE_HPP
#include "backend/protobuf/common_objects/trivial_proto.hpp"
#include "backend/protobuf/transaction.h... | 32.634146 | 73 | 0.740658 | [
"vector"
] |
5c826d3b4813716b1dd11940edf33bb172e619a4 | 21,095 | hxx | C++ | include/itkVariationalRegistrationElasticRegularizer.hxx | InsightSoftwareConsortium/ITKVariationalRegistration | 7634013fa2b661eda81d79e52b804f669ec0ce79 | [
"Apache-2.0"
] | 1 | 2018-11-05T19:59:43.000Z | 2018-11-05T19:59:43.000Z | include/itkVariationalRegistrationElasticRegularizer.hxx | InsightSoftwareConsortium/ITKVariationalRegistration | 7634013fa2b661eda81d79e52b804f669ec0ce79 | [
"Apache-2.0"
] | 23 | 2016-12-06T17:11:58.000Z | 2020-02-23T09:01:51.000Z | include/itkVariationalRegistrationElasticRegularizer.hxx | InsightSoftwareConsortium/ITKVariationalRegistration | 7634013fa2b661eda81d79e52b804f669ec0ce79 | [
"Apache-2.0"
] | 3 | 2016-12-05T21:52:36.000Z | 2020-05-08T18:17:46.000Z | /*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.o... | 33.590764 | 119 | 0.647736 | [
"vector"
] |
5c88943deb4512df1a0ab3fa528db7d7f7573bde | 2,404 | cpp | C++ | src/VISParser.cpp | Open-Source-Autonomous-Boat/Vessel-Instruction-Set-Interpreter | b06ae3aca657f844bc3e0e42957d7f1b6c7b66f5 | [
"MIT"
] | null | null | null | src/VISParser.cpp | Open-Source-Autonomous-Boat/Vessel-Instruction-Set-Interpreter | b06ae3aca657f844bc3e0e42957d7f1b6c7b66f5 | [
"MIT"
] | null | null | null | src/VISParser.cpp | Open-Source-Autonomous-Boat/Vessel-Instruction-Set-Interpreter | b06ae3aca657f844bc3e0e42957d7f1b6c7b66f5 | [
"MIT"
] | null | null | null | #include "VISParser.h"
#ifndef UNICODE
#define UNICODE
#endif
#ifdef __cplusplus
VISParser::VISParser(){};
VISParser::~VISParser() {}
void VISParser::OpenFile(VISFile *a_file) {
// Opens file with ifstream
this->m_file = a_file;
// Strips unneeded characters and seperates lines into vector entries
this->Pre... | 26.711111 | 80 | 0.644343 | [
"vector"
] |
5c89a75126f769ff779098ccc7695fdbe894b916 | 13,041 | cpp | C++ | src/main.cpp | nickerso/opencor | 63e164c6424dc855a4e46b835a777f6f84c617dc | [
"Apache-2.0"
] | null | null | null | src/main.cpp | nickerso/opencor | 63e164c6424dc855a4e46b835a777f6f84c617dc | [
"Apache-2.0"
] | null | null | null | src/main.cpp | nickerso/opencor | 63e164c6424dc855a4e46b835a777f6f84c617dc | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
Licensed to the OpenCOR team under one or more contributor license agreements.
See the NOTICE.txt file distributed with this work for additional information
regarding copyright ownership. The OpenCOR team licenses this file to you under
t... | 35.92562 | 115 | 0.624262 | [
"object",
"3d"
] |
5c917c725994e6950039417962df7f65178de207 | 217 | cpp | C++ | Sudoku-cpp/main.cpp | Kmalechkanov/sudoku-cpp | 93d5c99706228b9f48377f6780d742db5c8f4aed | [
"MIT"
] | 1 | 2020-06-03T09:10:10.000Z | 2020-06-03T09:10:10.000Z | Sudoku-cpp/main.cpp | Kmalechkanov/sudoku-cpp | 93d5c99706228b9f48377f6780d742db5c8f4aed | [
"MIT"
] | null | null | null | Sudoku-cpp/main.cpp | Kmalechkanov/sudoku-cpp | 93d5c99706228b9f48377f6780d742db5c8f4aed | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include "generator.h"
#include "manager.h"
#include "globalconstants.h"
#include "menu.h"
int main()
{
Menu menu;
menu.Main();
} | 13.5625 | 28 | 0.677419 | [
"vector"
] |
5c93df3c000298c0432b9a1e190fc0e44b137401 | 2,950 | cpp | C++ | src/wm_navigation/wm_fake_localization_node.cpp | fmrico/WaterMellon | 5d61914d9597118735e933e6d61a7e7872d83f5a | [
"BSD-3-Clause"
] | 1 | 2017-02-23T02:05:57.000Z | 2017-02-23T02:05:57.000Z | src/wm_navigation/wm_fake_localization_node.cpp | fmrico/WaterMellon | 5d61914d9597118735e933e6d61a7e7872d83f5a | [
"BSD-3-Clause"
] | null | null | null | src/wm_navigation/wm_fake_localization_node.cpp | fmrico/WaterMellon | 5d61914d9597118735e933e6d61a7e7872d83f5a | [
"BSD-3-Clause"
] | null | null | null | /*
* mapper_node.cpp
*
* Created on: 22/08/2015
* Author: paco
*/
#include "ros/ros.h"
#include <string>
#include "ros/ros.h"
#include "gazebo_msgs/ModelStates.h"
#include "geometry_msgs/PoseWithCovariance.h"
#include "geometry_msgs/PoseWithCovarianceStamped.h"
#include "geometry_msgs/Pose.h"
#include "tf/... | 21.851852 | 100 | 0.655254 | [
"transform"
] |
5c983dd2e90ea245ffbc4594f8657d07f6d0a74a | 1,431 | cpp | C++ | src/graphics/Canvas.cpp | j0ntan/RayTracerChallenge | 91e201b2d7f90032580101a1ccf18eb2d6e5b522 | [
"Unlicense"
] | null | null | null | src/graphics/Canvas.cpp | j0ntan/RayTracerChallenge | 91e201b2d7f90032580101a1ccf18eb2d6e5b522 | [
"Unlicense"
] | null | null | null | src/graphics/Canvas.cpp | j0ntan/RayTracerChallenge | 91e201b2d7f90032580101a1ccf18eb2d6e5b522 | [
"Unlicense"
] | null | null | null | #include <cmath>
#include <fstream>
#include <graphics/Canvas.hpp>
#include <string>
Canvas::Canvas(size_t width, size_t height)
: width{width}, height{height}, pixels{std::vector<std::vector<Color>>(
height,
std::vector<Color>(width, ... | 33.27907 | 79 | 0.59399 | [
"vector"
] |
5c9aaaef929f0f8e5faab7ef0baca78f9e1e2a22 | 338 | cpp | C++ | 1.9_functions_and_recurs/1.9.4_two_points_distance.cpp | yoshi42/simple_but_important_algorythms | 301b529cea13c121579901ddeffaa062a49f4caf | [
"MIT"
] | null | null | null | 1.9_functions_and_recurs/1.9.4_two_points_distance.cpp | yoshi42/simple_but_important_algorythms | 301b529cea13c121579901ddeffaa062a49f4caf | [
"MIT"
] | null | null | null | 1.9_functions_and_recurs/1.9.4_two_points_distance.cpp | yoshi42/simple_but_important_algorythms | 301b529cea13c121579901ddeffaa062a49f4caf | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
#include <vector>
#include <iomanip>
using namespace std;
double distance(double x1, double y1, double x2, double y2)
{
return sqrt(pow((x2-x1), 2) + pow((y2-y1), 2));
}
int main()
{
double a, b, c, d;
cin >> a >> b >> c >> d;
cout << distance(a, b, c, d) << endl... | 16.9 | 59 | 0.573964 | [
"vector"
] |
5c9b84e6c370383266bce5f3b601a4a22f4af98c | 498 | hpp | C++ | include/GroupEditOperation.hpp | jianjieluo/MineCube | e3da815740b0e7297dcf05b8748988ce70236308 | [
"MIT"
] | 12 | 2019-10-07T19:01:12.000Z | 2022-03-29T18:12:22.000Z | include/GroupEditOperation.hpp | jianjieluo/MineCube | e3da815740b0e7297dcf05b8748988ce70236308 | [
"MIT"
] | 12 | 2018-06-27T04:33:55.000Z | 2019-01-28T07:19:30.000Z | include/GroupEditOperation.hpp | longjj/MineCube | e3da815740b0e7297dcf05b8748988ce70236308 | [
"MIT"
] | 3 | 2018-07-16T17:24:49.000Z | 2018-07-22T04:00:48.000Z | #ifndef GroupEditOperation_hpp
#define GroupEditOperation_hpp
#include "EditOperationInterface.hpp"
#include <vector>
#include <memory>
using std::vector;
using std::shared_ptr;
class GroupEditOperation: public EditOperationInterface {
private:
vector<shared_ptr<EditOperationInterface>> ops;
public:
... | 22.636364 | 83 | 0.710843 | [
"vector"
] |
5ca89ec59de0e755b2929a8849be867ca0f60ef0 | 4,563 | cpp | C++ | main.cpp | grantrostig/combinatorics | 2be6f7a9e91d07b7eb97e5692b26a4fa183eb2ef | [
"MIT"
] | 1 | 2019-04-05T01:38:12.000Z | 2019-04-05T01:38:12.000Z | main.cpp | grantrostig/combinatorics | 2be6f7a9e91d07b7eb97e5692b26a4fa183eb2ef | [
"MIT"
] | null | null | null | main.cpp | grantrostig/combinatorics | 2be6f7a9e91d07b7eb97e5692b26a4fa183eb2ef | [
"MIT"
] | null | null | null | /* copyright (c) Grant Rostig 2018
MIT license
*/
#include "../../Dropbox/src/utils/cpp_headers.h"
#include "../../Dropbox/src/utils/math_grostig.h"
#include <algorithm>
#include <cmath>
#include <iostream>
#include <iterator>
#include <vector>
using namespace std;
// template <typename T> // utility f() to pri... | 32.827338 | 102 | 0.544817 | [
"vector",
"transform"
] |
5cab489fc31d4e9d4879b5d0d20864faa5960422 | 4,352 | cpp | C++ | collisions/Superposer.cpp | iomonad/deny-toolkit | b91b3fc89f94c6fef174b9b4f43c2d26871a7e2f | [
"MIT"
] | 1 | 2020-09-28T10:47:13.000Z | 2020-09-28T10:47:13.000Z | collisions/Superposer.cpp | iomonad/deny-toolkit | b91b3fc89f94c6fef174b9b4f43c2d26871a7e2f | [
"MIT"
] | null | null | null | collisions/Superposer.cpp | iomonad/deny-toolkit | b91b3fc89f94c6fef174b9b4f43c2d26871a7e2f | [
"MIT"
] | null | null | null | //
// (c) 2020 iomonad - <iomonad@riseup.net>
// See: https://github.com/iomonad/deny-toolkit
//
#include <list>
#include <fstream>
#include <iostream>
#include <opencv2/core/core.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include <opencv2/highgui/highgui.hpp>
#include "Superposer.hpp"
// Basic constructor, load ... | 22.905263 | 82 | 0.624081 | [
"object",
"vector"
] |
5cb3f5bfbcd382eea270de74e2e0aa902469f621 | 32,591 | cpp | C++ | src/Engine/Engine.cpp | scemino/engge | 3362ad56b67f58bdc89f7eb1a77f0f75bd350e1f | [
"MIT"
] | 127 | 2018-12-09T18:40:02.000Z | 2022-03-06T00:10:07.000Z | src/Engine/Engine.cpp | scemino/engge | 3362ad56b67f58bdc89f7eb1a77f0f75bd350e1f | [
"MIT"
] | 267 | 2019-02-26T22:16:48.000Z | 2022-02-09T09:49:22.000Z | src/Engine/Engine.cpp | scemino/engge | 3362ad56b67f58bdc89f7eb1a77f0f75bd350e1f | [
"MIT"
] | 17 | 2019-02-26T20:45:34.000Z | 2021-06-17T15:06:26.000Z | #ifdef _WIN32
// for Windows you'll need this to have M_PI defined
#define _USE_MATH_DEFINES
#endif
#include <cmath>
#include <ctime>
#include <cwchar>
#include <filesystem>
#include <iomanip>
#include <memory>
#include <set>
#include <string>
#include <unordered_set>
#include <squirrel.h>
#include <ngf/Application.h>
... | 35.006445 | 120 | 0.711515 | [
"render",
"object",
"vector"
] |
5cb91c864c2353ddb25ad71555abb944bb1407dd | 15,199 | cpp | C++ | IrisLangLibrary/src/IrisExportAPIs/IrisExportForC.cpp | yuwenhuisama/Iris-Language | d2cabe4bb89628a33bc34e429d1fdce6f3f076e6 | [
"Apache-2.0"
] | 13 | 2016-03-15T06:44:57.000Z | 2021-06-13T16:37:48.000Z | IrisLangLibrary/src/IrisExportAPIs/IrisExportForC.cpp | yuwenhuisama/Iris-Language | d2cabe4bb89628a33bc34e429d1fdce6f3f076e6 | [
"Apache-2.0"
] | null | null | null | IrisLangLibrary/src/IrisExportAPIs/IrisExportForC.cpp | yuwenhuisama/Iris-Language | d2cabe4bb89628a33bc34e429d1fdce6f3f076e6 | [
"Apache-2.0"
] | 5 | 2016-03-15T07:31:49.000Z | 2017-02-01T04:30:45.000Z | #include "IrisExportAPIs\IrisExportForC.h"
#include "stdafx.h"
#include "IrisDevelopUtil.h"
#include "IrisInterpreter/IrisStructure/IrisClass.h"
#include "IrisInterpreter/IrisStructure/IrisModule.h"
#include "IrisInterpreter.h"
#include "IrisInterpreter/IrisNativeClasses/IrisInteger.h"
#include "IrisInterpreter/IrisN... | 36.71256 | 190 | 0.836042 | [
"object"
] |
5cbeab4c0ba04ab04ce2c5a86011d154119a248f | 3,006 | cpp | C++ | 25mt/src/dfexplike.cpp | johnoel/tagest | be0a6b164683c448c90f0c3952343f5963eece3d | [
"BSD-2-Clause"
] | 3 | 2015-08-26T17:14:02.000Z | 2015-11-17T04:18:56.000Z | 25mt/src/dfexplike.cpp | johnoel/tagest | be0a6b164683c448c90f0c3952343f5963eece3d | [
"BSD-2-Clause"
] | 10 | 2015-08-20T00:51:05.000Z | 2016-11-16T19:14:48.000Z | 25mt/src/dfexplike.cpp | johnoel/tagest | be0a6b164683c448c90f0c3952343f5963eece3d | [
"BSD-2-Clause"
] | 3 | 2016-11-16T00:52:23.000Z | 2021-09-10T02:17:40.000Z | //$Id: dfexplike.cpp 2754 2011-01-02 20:57:07Z jsibert $
#include "par_t.h"
#include "trace.h"
void getreturns(dmatrix& returns, const int fleet, const year_month& date, const int cohort, const recaptype_vector& recaps, const int nrec, const int m, const int n);
extern ofstream clogf;
extern int _global_repor... | 38.538462 | 352 | 0.621756 | [
"vector"
] |
5cbec1734fdf2ff7ecb4697bda76ac20b4189bcc | 11,520 | cpp | C++ | src/autotune.cpp | kit-algo/TCPSPSuite | 01499b4fb0f28bda72115a699cd762c70d7fff63 | [
"MIT"
] | 3 | 2018-05-02T11:45:57.000Z | 2020-09-14T08:35:43.000Z | src/autotune.cpp | kit-algo/TCPSPSuite | 01499b4fb0f28bda72115a699cd762c70d7fff63 | [
"MIT"
] | null | null | null | src/autotune.cpp | kit-algo/TCPSPSuite | 01499b4fb0f28bda72115a699cd762c70d7fff63 | [
"MIT"
] | null | null | null | #include "main.hpp"
#include <assert.h> // for assert
#include <execinfo.h> // for backtrace
#include <stdio.h> // for fprintf
#include <algorithm> // for find
#inclu... | 41.890909 | 157 | 0.572222 | [
"vector"
] |
5cbf70bd6edb57a37bbc20346fceed70866cb855 | 794 | cpp | C++ | leetcode/two_sum/leetcode_40.cpp | HuangJingGitHub/PracMakePert_C | 94e570c55d9e391913ccd9c5c72026ab926809b2 | [
"Apache-2.0"
] | 1 | 2019-10-17T03:13:29.000Z | 2019-10-17T03:13:29.000Z | leetcode/two_sum/leetcode_40.cpp | HuangJingGitHub/PracMakePert_C-Cpp | 6ed39e757ad8ba7bdd75fffdaf28d17a294a11e5 | [
"Apache-2.0"
] | null | null | null | leetcode/two_sum/leetcode_40.cpp | HuangJingGitHub/PracMakePert_C-Cpp | 6ed39e757ad8ba7bdd75fffdaf28d17a294a11e5 | [
"Apache-2.0"
] | null | null | null | class Solution {
private:
vector<int> candidates;
vector<vector<int>> res;
vector<int> path;
public:
void backtrack(int start, int target){
if (target == 0){
res.push_back(path);
return;
}
for (int i = start; i < candidates.size() && target - candidates[i... | 26.466667 | 87 | 0.535264 | [
"vector"
] |
5cd2e6702979c75bc44eb94d8304cf5cd8630bc0 | 1,474 | cpp | C++ | Common/Processes/src/scalerefProcess.cpp | slaclab/gdml | 017d19c6488128ad6f663013cfb1be597c556d51 | [
"BSD-3-Clause-LBNL"
] | 1 | 2017-04-19T05:43:30.000Z | 2017-04-19T05:43:30.000Z | Common/Processes/src/scalerefProcess.cpp | slaclab/gdml | 017d19c6488128ad6f663013cfb1be597c556d51 | [
"BSD-3-Clause-LBNL"
] | 1 | 2017-04-10T23:15:21.000Z | 2017-04-11T02:31:45.000Z | Common/Processes/src/scalerefProcess.cpp | slaclab/gdml | 017d19c6488128ad6f663013cfb1be597c556d51 | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-12-13T00:05:47.000Z | 2020-12-13T00:05:47.000Z | #include "Processes/ReferenceTypeProcess.h"
#include "Schema/BooleanSolidType.h"
#include "Schema/SinglePlacementType.h"
#include <cstdlib>
#include <iostream>
class scalerefProcess : public ReferenceTypeProcess
{
public:
scalerefProcess( const ProcessingContext* context = 0 )
: ReferenceTypeProcess( con... | 26.321429 | 89 | 0.636364 | [
"object"
] |
5cdbc932f57bf845d7a11a1844f46d6135eed002 | 44,366 | cc | C++ | src/ix/ix.cc | moophis/CS222-Simple-Data-Management-System | 55b34eccc4d66c0c0ed201992fd0a2cd4e4711d5 | [
"Apache-2.0"
] | null | null | null | src/ix/ix.cc | moophis/CS222-Simple-Data-Management-System | 55b34eccc4d66c0c0ed201992fd0a2cd4e4711d5 | [
"Apache-2.0"
] | null | null | null | src/ix/ix.cc | moophis/CS222-Simple-Data-Management-System | 55b34eccc4d66c0c0ed201992fd0a2cd4e4711d5 | [
"Apache-2.0"
] | null | null | null |
#include "ix.h"
#define PRIMARY_SUFFIX ".pp"
#define OVERFLOW_SUFFIX ".op"
ActivityManager *ActivityManager::_instance = 0;
IndexManager* IndexManager::_index_manager = 0;
IndexManager* IndexManager::instance()
{
if(!_index_manager)
_index_manager = new IndexManager();
return _index_manager;
}
I... | 30.471154 | 132 | 0.584073 | [
"vector"
] |
5ce053aa0c45af3f93224d04398317beb8ed7a81 | 1,414 | cpp | C++ | day06/part_2.cpp | jgriemsmann/adventofcode | 415c0e74100045281e88fc3034bca489f07f337f | [
"MIT"
] | null | null | null | day06/part_2.cpp | jgriemsmann/adventofcode | 415c0e74100045281e88fc3034bca489f07f337f | [
"MIT"
] | null | null | null | day06/part_2.cpp | jgriemsmann/adventofcode | 415c0e74100045281e88fc3034bca489f07f337f | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <set>
unsigned calcSumOfCommonGroupAnswers(const std::set<char>& uniqueGroupAnswers, const std::vector<std::string>& personAnswers) {
unsigned sumOfCommonGroupAnswers = 0;
for (auto it_group = uniqueGroupAnswers.begin(); it_group != uniqueGroupAnswers.end(); ++it_grou... | 33.666667 | 127 | 0.682461 | [
"vector"
] |
5ce54782a5687a2c83ada4c6ffdded51f5477768 | 6,826 | cpp | C++ | SSLServer/SSLServer/main.cpp | shanpark/Shan.Lib | a57de39a026788ddf67e5c2dbb4cae2f3ec62396 | [
"BSD-2-Clause"
] | 1 | 2017-05-05T03:05:18.000Z | 2017-05-05T03:05:18.000Z | SSLServer/SSLServer/main.cpp | shanpark/Shan.Lib | a57de39a026788ddf67e5c2dbb4cae2f3ec62396 | [
"BSD-2-Clause"
] | null | null | null | SSLServer/SSLServer/main.cpp | shanpark/Shan.Lib | a57de39a026788ddf67e5c2dbb4cae2f3ec62396 | [
"BSD-2-Clause"
] | null | null | null | //
// main.cpp
// SSLServer
//
// Created by Sung Han Park on 2017. 4. 10..
// Copyright © 2017 Sung Han Park. All rights reserved.
//
#include <iostream>
#include <stdio.h>
#include <iostream>
#include <ctime>
#include <shan/net_ssl.h>
#include <shan/util/pool.h>
using namespace std;
using namespace shan::net;
... | 34.13 | 161 | 0.701875 | [
"object"
] |
5ceb11d7fb1c3fa9b2781b3f37b495ddb909905c | 6,014 | cpp | C++ | src/caffe/gpi_communicator_diff.cpp | cc-hpc-itwm/caffeGPI | 85c57a91ec99fb1419fc281585cf54b0e3c97fb8 | [
"BSD-2-Clause"
] | 1 | 2017-09-07T07:32:29.000Z | 2017-09-07T07:32:29.000Z | src/caffe/gpi_communicator_diff.cpp | cc-hpc-itwm/CaffeGPI | 85c57a91ec99fb1419fc281585cf54b0e3c97fb8 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/gpi_communicator_diff.cpp | cc-hpc-itwm/CaffeGPI | 85c57a91ec99fb1419fc281585cf54b0e3c97fb8 | [
"BSD-2-Clause"
] | null | null | null | #include "caffe/gpi_communicator_diff.hpp"
namespace caffe {
template <typename Dtype>
void CommunicatorDiff<Dtype>::operator()(void) {
for (long i = 0; i < com_buffers_diff_read_.size(); i++) {
RingBufferRead<Dtype>& buffer = com_buffers_diff_read_[i];
while (com_buffers_diff_read_status_[i] < calculated_b... | 34.365714 | 95 | 0.695211 | [
"vector"
] |
5cee11b47f1bfbba29e7d0984baa3cf54c99dcc3 | 3,334 | cc | C++ | services/native_viewport/viewport_surface.cc | rafaelw/mojo | d3495a129dcbe679e2d5ac729c85a58acf38f8c4 | [
"BSD-3-Clause"
] | 5 | 2015-04-30T00:13:21.000Z | 2019-07-10T02:17:24.000Z | services/native_viewport/viewport_surface.cc | rafaelw/mojo | d3495a129dcbe679e2d5ac729c85a58acf38f8c4 | [
"BSD-3-Clause"
] | null | null | null | services/native_viewport/viewport_surface.cc | rafaelw/mojo | d3495a129dcbe679e2d5ac729c85a58acf38f8c4 | [
"BSD-3-Clause"
] | 1 | 2019-05-12T13:53:44.000Z | 2019-05-12T13:53:44.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 "services/native_viewport/viewport_surface.h"
#include "base/bind.h"
#include "mojo/converters/geometry/geometry_type_converters.h"
#include "mo... | 31.158879 | 80 | 0.689862 | [
"geometry",
"transform"
] |
5cf4e5ab2ca6b1c574ca11c2af93a99270cd5fe7 | 1,352 | cc | C++ | codes/raulcr-p3727-Accepted-s1209647.cc | raulcr98/coj-solutions | b8c4d6009869b76a67d7bc1d5328b9bd6bfc33ca | [
"MIT"
] | 1 | 2020-03-17T01:44:21.000Z | 2020-03-17T01:44:21.000Z | codes/raulcr-p3727-Accepted-s1209647.cc | raulcr98/coj-solutions | b8c4d6009869b76a67d7bc1d5328b9bd6bfc33ca | [
"MIT"
] | null | null | null | codes/raulcr-p3727-Accepted-s1209647.cc | raulcr98/coj-solutions | b8c4d6009869b76a67d7bc1d5328b9bd6bfc33ca | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
vector<int> ady[2000005];
bool visited[2000005], construct[2000005];
int N,M;
int BFS(int a){
queue<int>cola;
cola.push(a);
visited[a]=true;
cola.push(1);
int citi,b;
int sol=0;
while(!cola.empty()){
sol++;
c... | 18.27027 | 47 | 0.428994 | [
"vector"
] |
5cf88f484ce8458d25386a1f8d09ddbf3678d05f | 17,373 | hh | C++ | cc/tree.hh | acorg/acmacs-tal | 13da33bb8ed456ac1f968b8b86df295467ee5429 | [
"MIT"
] | null | null | null | cc/tree.hh | acorg/acmacs-tal | 13da33bb8ed456ac1f968b8b86df295467ee5429 | [
"MIT"
] | null | null | null | cc/tree.hh | acorg/acmacs-tal | 13da33bb8ed456ac1f968b8b86df295467ee5429 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
#include <tuple>
#include <optional>
#include <algorithm>
#include "acmacs-base/log.hh"
#include "acmacs-base/named-type.hh"
#include "acmacs-base/counter.hh"
#include "acmacs-base/date.hh"
#include "acmacs-base/color.hh"
#include "acmacs-base/flat-set.hh"
#include "ac... | 40.496503 | 196 | 0.611811 | [
"vector",
"3d"
] |
9dcf021fc3a79d0931071e01d6a90a43d29194fa | 1,492 | cpp | C++ | Utilities/Utility.cpp | Dr-Dan/GOAP-Agent-System | fe888fb9e79e547116833c16b23698865dfd662e | [
"Apache-2.0"
] | 2 | 2016-10-07T21:53:09.000Z | 2017-12-31T12:39:16.000Z | Utilities/Utility.cpp | Dr-Dan/GOAP-Agent-System | fe888fb9e79e547116833c16b23698865dfd662e | [
"Apache-2.0"
] | null | null | null | Utilities/Utility.cpp | Dr-Dan/GOAP-Agent-System | fe888fb9e79e547116833c16b23698865dfd662e | [
"Apache-2.0"
] | null | null | null | //
// Utility.cpp
// AgentGOBGridTest
//
// Created by D J Clarke on 09/03/2015.
//
//
#include "Utility.h"
#include "GridCell.h"
#include "AgentFact.h"
int Utility::worldId = 0;
ofVec2f Utility::GetGridPos(ofVec2f refPos, vector<GridCell>& cells){
ofVec2f posOut = ofVec2f();
for(int i = 0; i < cells... | 23.3125 | 88 | 0.684316 | [
"vector"
] |
9dd14cd5d6d9783437d5fc4f4647d5a4062323a2 | 16,772 | cpp | C++ | Direct3D_11_Exe/direct3d.cpp | Roy-Fokker/Direct3D_11_Eg | 172bbb84f6a707911d6df69a8b2a709b3ac44636 | [
"Unlicense"
] | null | null | null | Direct3D_11_Exe/direct3d.cpp | Roy-Fokker/Direct3D_11_Eg | 172bbb84f6a707911d6df69a8b2a709b3ac44636 | [
"Unlicense"
] | null | null | null | Direct3D_11_Exe/direct3d.cpp | Roy-Fokker/Direct3D_11_Eg | 172bbb84f6a707911d6df69a8b2a709b3ac44636 | [
"Unlicense"
] | null | null | null | #pragma comment(lib, "dxgi.lib")
#pragma comment(lib, "d3d11.lib")
#ifdef _DEBUG
#pragma comment(lib, "dxguid.lib")
#endif // DEBUG
#include "direct3d.h"
#include "vertex.h"
#include <cassert>
#include <cstdint>
#include <array>
#include <vector>
#include <DirectXColors.h>
using namespace direct3d_11_eg;
using nam... | 27.360522 | 159 | 0.687992 | [
"mesh",
"render",
"vector"
] |
9dd470be09da6d0359fbe5d2849b55d1dbec2fec | 2,047 | cpp | C++ | src/engine/texture-generator/method/PerlinNoise3D.cpp | stanfortonski/Procedural-Terrain-Generator-OpenGL | a88bf2d7a44e7efa10dd980147e2bad0d1a782bf | [
"MIT"
] | 93 | 2020-03-06T21:40:48.000Z | 2022-03-28T06:30:55.000Z | texture-generator/method/PerlinNoise3D.cpp | stanfortonski/3D-Engine-OpenGL-4 | 6086d006b5027bc43169605dc3bb5c9575335f51 | [
"MIT"
] | 1 | 2021-08-31T07:56:37.000Z | 2021-08-31T16:06:35.000Z | src/engine/texture-generator/method/PerlinNoise3D.cpp | stanfortonski/Procedural-Terrain-Generator-OpenGL | a88bf2d7a44e7efa10dd980147e2bad0d1a782bf | [
"MIT"
] | 10 | 2020-06-06T11:21:35.000Z | 2022-03-24T01:55:20.000Z | /* Copyright (c) 2020 by Stan Fortoński */
/* Perlin noise from GLM library to generate 3d textures */
/* Based on: OpenGL 4 ShadingLanguage Cookbook Second Edition David Wolff */
#include "PerlinNoise3D.hpp"
namespace Engine
{
PerlinNoise3D::PerlinNoise3D(const double & pFrequency, const double & pAmplitude, const... | 35.293103 | 249 | 0.608207 | [
"vector",
"3d"
] |
9dd76285596ac91c14924dbb4e379f6b3bb9b2e0 | 1,368 | cpp | C++ | SubwayParis/subwayparismain.cpp | tenoriomatheus/AI_Search | d71e86c88c933d039ad1b14c2099910af2406de8 | [
"MIT"
] | null | null | null | SubwayParis/subwayparismain.cpp | tenoriomatheus/AI_Search | d71e86c88c933d039ad1b14c2099910af2406de8 | [
"MIT"
] | 3 | 2016-02-20T19:32:23.000Z | 2016-02-20T19:44:13.000Z | SubwayParis/subwayparismain.cpp | tenoriomatheus/AI_Search | d71e86c88c933d039ad1b14c2099910af2406de8 | [
"MIT"
] | null | null | null | #include <SubwayParis/subwayparisstate.h>
#include <solver.h>
#include <bfs.h>
#include <astar.h>
#include <iterativedfs.h>
using namespace AI_Search;
int main2(int argc, char* argv[]) {
int initialId = 8;
int goalId = 7;
State<int>* initialState = new SubwayParisState(initialId, nullptr, new SubwayParis... | 34.2 | 141 | 0.620614 | [
"vector"
] |
9ddfae7cba0836cab95dae144aef3231845c8007 | 3,156 | cpp | C++ | FPSGame/src/Model.cpp | brizzbrett/ObjectiveBasedFPS | d29eb3885a4399f0e20556b0571a1bb7a55c3476 | [
"MIT"
] | null | null | null | FPSGame/src/Model.cpp | brizzbrett/ObjectiveBasedFPS | d29eb3885a4399f0e20556b0571a1bb7a55c3476 | [
"MIT"
] | null | null | null | FPSGame/src/Model.cpp | brizzbrett/ObjectiveBasedFPS | d29eb3885a4399f0e20556b0571a1bb7a55c3476 | [
"MIT"
] | null | null | null | #include "Model.hpp"
Model::Model(GLchar* path)
{
this->loadModel(path);
}
void Model::Render(Shader* s)
{
for (GLuint i = 0; i < this->meshes.size(); i++)
this->meshes[i].Render(s);
}
void Model::loadModel(std::string path)
{
Assimp::Importer importer;
const aiScene* scene = importer.ReadFile(path, aiProcess... | 23.552239 | 119 | 0.663181 | [
"mesh",
"render",
"vector",
"model"
] |
9de0543ed022d61470daca895a6282b7e2bb5dd3 | 9,214 | cpp | C++ | methods/lexdfs/search/OverlappingEdgeColors.cpp | ix-labs/codacom | 41b3a96d0f5efa15676810dfb0638f59226baf62 | [
"CECILL-B"
] | 1 | 2017-07-23T14:27:40.000Z | 2017-07-23T14:27:40.000Z | methods/lexdfs/search/OverlappingEdgeColors.cpp | ix-labs/codacom | 41b3a96d0f5efa15676810dfb0638f59226baf62 | [
"CECILL-B"
] | null | null | null | methods/lexdfs/search/OverlappingEdgeColors.cpp | ix-labs/codacom | 41b3a96d0f5efa15676810dfb0638f59226baf62 | [
"CECILL-B"
] | null | null | null | // Copyright GREYC - UMR 6072 ; Université de Caen Normandie
// Esplanade de la paix
// CS 14032
// 14032 Caen CEDEX 5
// contributeur :
// Jean Creusefond, 2015
//
// jean.creusefond@unicaen.fr
//
// Ce logiciel est un programme informatique servant à la comparaison et à l'analyse d'outils de détection de communauté... | 37.917695 | 428 | 0.648687 | [
"vector"
] |
9de543fe651172fa9294633f9fc53d315789d6d0 | 1,022 | cpp | C++ | Sliding Window/1423_Maximum-Points-You-Can-Obtain-from-Cards/1423_Maximum-Points-You-Can-Obtain-from-Cards.cpp | YunWGui/LeetCode | 2587eca22195ec7d9263227554467ec4010cfe05 | [
"MIT"
] | null | null | null | Sliding Window/1423_Maximum-Points-You-Can-Obtain-from-Cards/1423_Maximum-Points-You-Can-Obtain-from-Cards.cpp | YunWGui/LeetCode | 2587eca22195ec7d9263227554467ec4010cfe05 | [
"MIT"
] | null | null | null | Sliding Window/1423_Maximum-Points-You-Can-Obtain-from-Cards/1423_Maximum-Points-You-Can-Obtain-from-Cards.cpp | YunWGui/LeetCode | 2587eca22195ec7d9263227554467ec4010cfe05 | [
"MIT"
] | null | null | null | /*******************************************************************************
* Title:
* 1423. Maximum Points You Can Obtain from Cards
* 1423. 可获得的最大点数
* Address:
* https://leetcode-cn.com/problems/maximum-points-you-can-obtain-from-cards/
*********************************************************... | 25.55 | 84 | 0.460861 | [
"vector"
] |
9def4ba0d0b384cf87aaa243915d3d5f2cfcc86e | 568 | cpp | C++ | aws-cpp-sdk-greengrass/source/model/DeleteFunctionDefinitionRequest.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-greengrass/source/model/DeleteFunctionDefinitionRequest.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-greengrass/source/model/DeleteFunctionDefinitionRequest.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/greengrass/model/DeleteFunctionDefinitionRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Greengrass::Model;
using namespace Aws::Util... | 20.285714 | 69 | 0.769366 | [
"model"
] |
9dfb6185b36e91180fcd10f6ffbd2007a49f0b6e | 4,417 | cpp | C++ | source/Library.Shared/ShadowcastedDirectionalEffect.cpp | DakkyDaWolf/OpenGL | 628e9aed116022175cc0c59c88ace7688309628c | [
"MIT"
] | null | null | null | source/Library.Shared/ShadowcastedDirectionalEffect.cpp | DakkyDaWolf/OpenGL | 628e9aed116022175cc0c59c88ace7688309628c | [
"MIT"
] | null | null | null | source/Library.Shared/ShadowcastedDirectionalEffect.cpp | DakkyDaWolf/OpenGL | 628e9aed116022175cc0c59c88ace7688309628c | [
"MIT"
] | null | null | null | #include "pch.h"
#include "ShadowcastedDirectionalEffect.h"
#include "Mesh.h"
#include "VertexDeclarations.h"
using namespace glm;
using namespace std;
namespace Library
{
RTTI_DEFINITIONS(ShadowcastedDirectionalEffect)
ShadowcastedDirectionalEffect::ShadowcastedDirectionalEffect() :
SHADER_VARIABLE_INITIALIZATI... | 57.363636 | 237 | 0.876839 | [
"mesh"
] |
9dfdb24b11629b1c8301092f8c82581f1f34f5bf | 55,310 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/os/CStrictMode.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/os/CStrictMode.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/os/CStrictMode.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
//
// ... | 35.050697 | 157 | 0.670005 | [
"object"
] |
3b02bcd34d9dbe81aea0745309607597fabd3985 | 14,102 | cpp | C++ | hphp/util/test/coro.cpp | donsbot/hhvm | ac98a590f75c569e1249b6c1145c7512c7bd240e | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-03-11T02:25:37.000Z | 2022-03-11T02:25:37.000Z | hphp/util/test/coro.cpp | donsbot/hhvm | ac98a590f75c569e1249b6c1145c7512c7bd240e | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2022-02-17T04:00:03.000Z | 2022-03-24T03:45:33.000Z | hphp/util/test/coro.cpp | donsbot/hhvm | ac98a590f75c569e1249b6c1145c7512c7bd240e | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-02-19T09:29:50.000Z | 2022-02-19T09:29:50.000Z | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... | 26.507519 | 78 | 0.589987 | [
"vector"
] |
3b2960f3d549e29ff7523382e9ad33ba83b0f745 | 20,373 | cpp | C++ | spoopy/tools/vole/source/olderfiles/rbase/db_index_shida.cpp | rodrigobressan/PADify | 362db2b3a33793ac53f938e89f90a6ecdf778e89 | [
"MIT"
] | 12 | 2019-11-26T07:44:08.000Z | 2021-03-03T09:51:43.000Z | spoopy/tools/vole/source/rbase/db_index_shida.cpp | rodrigobressan/PADify | 362db2b3a33793ac53f938e89f90a6ecdf778e89 | [
"MIT"
] | 13 | 2020-01-28T22:09:41.000Z | 2022-03-11T23:43:37.000Z | spoopy/tools/vole/source/olderfiles/rbase/db_index_shida.cpp | rodrigobressan/PADify | 362db2b3a33793ac53f938e89f90a6ecdf778e89 | [
"MIT"
] | 5 | 2020-01-02T09:52:42.000Z | 2022-02-21T15:45:23.000Z | #include <sstream>
#include <vector>
#include <cassert>
#include "db_index_shida.h"
namespace iread {
DbIndexShida::DbIndexShida(bool sharpenedPreMult, bool sharpenedPostMult)
: nScenes(11), nLights(4),
input_raw_data_path("/net/cv/illum/multi_shida/orig_tiff/"), raw_ground_truth_path("/net/cv/illum/multi_shida/o... | 40.422619 | 152 | 0.6595 | [
"vector"
] |
3b3610e466dd5b88c4b78f625c8d528ba57abf81 | 5,278 | hpp | C++ | include/cnn/neural_network.hpp | Matumba/CNN-Library | 09c2214a8bbc901da132253e2175b6a5579c4477 | [
"Apache-2.0"
] | 1 | 2019-08-27T22:19:19.000Z | 2019-08-27T22:19:19.000Z | include/cnn/neural_network.hpp | Matumba/CNN-Library | 09c2214a8bbc901da132253e2175b6a5579c4477 | [
"Apache-2.0"
] | null | null | null | include/cnn/neural_network.hpp | Matumba/CNN-Library | 09c2214a8bbc901da132253e2175b6a5579c4477 | [
"Apache-2.0"
] | null | null | null | // Copyright 2016 by Glukhov V. O. 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 a... | 26.39 | 96 | 0.69875 | [
"vector"
] |
3b41efba333c859a76372d04a8388d829cb89a3c | 3,037 | cpp | C++ | person.cpp | annykyforu/PRG2_SocialMediaApplication | 67059bda6ca0e6a32856ea94f72e2f73fcf59b83 | [
"MIT"
] | null | null | null | person.cpp | annykyforu/PRG2_SocialMediaApplication | 67059bda6ca0e6a32856ea94f72e2f73fcf59b83 | [
"MIT"
] | null | null | null | person.cpp | annykyforu/PRG2_SocialMediaApplication | 67059bda6ca0e6a32856ea94f72e2f73fcf59b83 | [
"MIT"
] | 1 | 2019-12-02T11:57:39.000Z | 2019-12-02T11:57:39.000Z | //
// person.cpp
// Social Media Application
//
// Created by annykyforu on 21.11.18.
// Copyright © 2018 PRG2_ws18. All rights reserved.
//
#include <algorithm>
#include "person.h"
#include "social_media_account.h"
Person::Person() : name{"Example Examplerius"} {}
Person::Person(string n)
{
if(n == "")
thr... | 29.485437 | 101 | 0.621008 | [
"vector"
] |
3b46d1143d16f0af0eaceb777f4df9eaafb84cb0 | 13,119 | cpp | C++ | UnitTests/Physics/CollidePointTests.cpp | All8Up/JoltPhysics | 751d13891f5bd8850863ad236eaa3c340e90de9a | [
"MIT"
] | 1,311 | 2021-08-16T07:37:05.000Z | 2022-03-31T21:13:39.000Z | UnitTests/Physics/CollidePointTests.cpp | All8Up/JoltPhysics | 751d13891f5bd8850863ad236eaa3c340e90de9a | [
"MIT"
] | 102 | 2021-08-28T14:41:32.000Z | 2022-03-31T20:25:55.000Z | UnitTests/Physics/CollidePointTests.cpp | All8Up/JoltPhysics | 751d13891f5bd8850863ad236eaa3c340e90de9a | [
"MIT"
] | 65 | 2021-08-16T07:59:04.000Z | 2022-03-28T06:18:49.000Z | // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
// SPDX-License-Identifier: MIT
#include "UnitTestFramework.h"
#include "PhysicsTestContext.h"
#include "Layers.h"
#include <Physics/Collision/Shape/BoxShape.h>
#include <Physics/Collision/Shape/SphereShape.h>
#include <Physics/Collision/Shape/CapsuleShape.h>
#include <Phys... | 30.368056 | 190 | 0.683741 | [
"shape",
"transform"
] |
8dc9d2a94eb3e2dbb65e2bb4a20cddfce5fabab3 | 63,137 | cpp | C++ | RenderCore/OpenGLES/Metal/InputLayout.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | 3 | 2018-05-17T08:39:39.000Z | 2020-12-09T13:20:26.000Z | RenderCore/OpenGLES/Metal/InputLayout.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | null | null | null | RenderCore/OpenGLES/Metal/InputLayout.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | 1 | 2021-11-14T08:50:15.000Z | 2021-11-14T08:50:15.000Z | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "InputLayout.h"
#include "Shader.h"
#include "ShaderIntrospection.h"
#include "Format.h"
#include "TextureView.h"
#include "PipelineL... | 48.417945 | 306 | 0.561335 | [
"object",
"vector",
"model",
"3d"
] |
8dcbd55e08085d442674fb620a8e251edd6f6e4d | 781 | hpp | C++ | libs/core/include/fcppt/optional/is_object.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/optional/is_object.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/optional/is_object.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_OPTIONAL_IS_OBJECT_HPP_INCLUDED
#define FCPPT_OPTIONAL_IS_OBJECT_HPP_INCLUDED
#incl... | 15.019231 | 61 | 0.731114 | [
"object"
] |
8dceef16e62de72ec733969c5efa798f4abe6e8a | 1,130 | cpp | C++ | dataset/test/modification/1480_rename/14/transformation_1.cpp | Karina5005/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | 3 | 2022-02-15T00:29:39.000Z | 2022-03-15T08:36:44.000Z | dataset/test/modification/1480_rename/14/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | dataset/test/modification/1480_rename/14/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | /**
* Author: Fau
* Time: 2021-12-31 23:22
**/
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 1; i <= (n); ++i)
using namespace std;
typedef long long ll;
const int t = 1E5 + 10;
int r_ah[t];
vector<int> i[t];
int main()
{
#ifdef CODE_Fau
Fau_Begin
#endif
//-------------------------------------------------... | 24.042553 | 112 | 0.476106 | [
"vector"
] |
8dd033c5544be87c54132f450b85f93d02c77d1a | 1,244 | cpp | C++ | geeksforgeeks/product-of-primes5328/main.cpp | Yash-Singh1/competitive-programming | 3b9d278ed8138ab614e2a3d748627db8f4a2cdbd | [
"MIT"
] | null | null | null | geeksforgeeks/product-of-primes5328/main.cpp | Yash-Singh1/competitive-programming | 3b9d278ed8138ab614e2a3d748627db8f4a2cdbd | [
"MIT"
] | null | null | null | geeksforgeeks/product-of-primes5328/main.cpp | Yash-Singh1/competitive-programming | 3b9d278ed8138ab614e2a3d748627db8f4a2cdbd | [
"MIT"
] | null | null | null | vector<long long> prime;
class Solution{
public:
long long primeProduct(long long L, long long R){
vector<bool> smaller(sqrt(R), true);
for (long long i{2}; i <= sqrt(R); ++i) {
if (smaller[i]) {
prime.push_back(i);
for (long long j{i * i}; j <= sqrt(R); ... | 30.341463 | 67 | 0.369775 | [
"vector"
] |
8dd160eef71128c5ed5d066c6cded2c52dc69c98 | 222 | cpp | C++ | cloud-disk/zmq_server.cpp | G-Club/c-cpp | e89f8efae357fc8349d0d66f1aef703a6a287bef | [
"Apache-2.0"
] | null | null | null | cloud-disk/zmq_server.cpp | G-Club/c-cpp | e89f8efae357fc8349d0d66f1aef703a6a287bef | [
"Apache-2.0"
] | 1 | 2017-02-07T00:49:21.000Z | 2017-02-16T00:55:28.000Z | cloud-disk/zmq_server.cpp | G-Club/c-cpp | e89f8efae357fc8349d0d66f1aef703a6a287bef | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
#include <zmq.h>
#include <vector>
#include <zmq.h>
using namespace std;
int main(int argc,char *argv[])
{
std::cout<<"hello world"<<std::endl;
return 0;
}
| 13.875 | 44 | 0.599099 | [
"vector"
] |
8de4d8b0d2c0591a53e6e7985897906cc22eed2c | 497 | cpp | C++ | test/GridBFS.test.cpp | yuruhi/library | fecbd92ec6c6997d50bf954c472ac4bfeff74de5 | [
"Apache-2.0"
] | null | null | null | test/GridBFS.test.cpp | yuruhi/library | fecbd92ec6c6997d50bf954c472ac4bfeff74de5 | [
"Apache-2.0"
] | 6 | 2021-01-05T07:39:05.000Z | 2021-01-05T07:44:31.000Z | test/GridBFS.test.cpp | yuruhi/library | fecbd92ec6c6997d50bf954c472ac4bfeff74de5 | [
"Apache-2.0"
] | null | null | null | #define PROBLEM "https://onlinejudge.u-aizu.ac.jp/problems/0558"
#include "./../Utility/Point.cpp"
#include "./../search/GridBFS.cpp"
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main() {
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
int h, w, n;
cin >> h >> w >> n;
vect... | 21.608696 | 64 | 0.573441 | [
"vector"
] |
8debedfd64062e4d38914d240aa5ea238fe7a7af | 1,891 | cpp | C++ | BasicCPP/C2-1/C2-1/C2-1.cpp | Angorithm4/AdvancedCPP | e1b3c844efaa2b179c043cfbd9b910b153fbd3d1 | [
"MIT"
] | null | null | null | BasicCPP/C2-1/C2-1/C2-1.cpp | Angorithm4/AdvancedCPP | e1b3c844efaa2b179c043cfbd9b910b153fbd3d1 | [
"MIT"
] | null | null | null | BasicCPP/C2-1/C2-1/C2-1.cpp | Angorithm4/AdvancedCPP | e1b3c844efaa2b179c043cfbd9b910b153fbd3d1 | [
"MIT"
] | null | null | null | // C2-1.cpp : This file contains the 'main' function. Program execution begins and ends there.
// 20201121 Jiawei Wang
#include <iostream>
int main()
{
std::cout << "Hello World!\n";
// types transformation
bool b = 42; std::cout << "b = " << b << std::endl; // output: b = 1
bool t = true; int i = ... | 36.365385 | 135 | 0.584876 | [
"transform"
] |
8dec34020fee2aa17ef0fa058fb6036c261ddb32 | 6,168 | cpp | C++ | test/meta_mnemonic.cpp | fengjixuchui/xbyak_aarch64 | 7427c0c3baf5a13807c50c07acfe2f2c27f311bd | [
"Apache-2.0"
] | 134 | 2019-12-09T22:40:27.000Z | 2022-03-12T09:07:52.000Z | test/meta_mnemonic.cpp | fengjixuchui/xbyak_aarch64 | 7427c0c3baf5a13807c50c07acfe2f2c27f311bd | [
"Apache-2.0"
] | 29 | 2019-12-13T13:27:07.000Z | 2022-03-21T23:31:38.000Z | test/meta_mnemonic.cpp | fengjixuchui/xbyak_aarch64 | 7427c0c3baf5a13807c50c07acfe2f2c27f311bd | [
"Apache-2.0"
] | 29 | 2019-12-10T03:13:50.000Z | 2022-03-12T09:06:19.000Z | /*******************************************************************************
* Copyright 2019-2020 FUJITSU LIMITED
*
* 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://ww... | 38.074074 | 81 | 0.445363 | [
"vector"
] |
8dfe197fc84debc260773cb4d8b9c918d5b6f575 | 8,153 | cpp | C++ | RobWork/gtest/proximity/ProximityStrategyTest.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWork/gtest/proximity/ProximityStrategyTest.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWork/gtest/proximity/ProximityStrategyTest.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2017 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 42.243523 | 95 | 0.668588 | [
"geometry",
"object",
"vector",
"model"
] |
8dfeab068a005636f4dc90098bffece701e5a01f | 1,916 | cpp | C++ | src/process.cpp | kaipomauli/CppND-System-Monitor | bb6390229a98b92bf78cb9eb271d4d4fad21b747 | [
"MIT"
] | null | null | null | src/process.cpp | kaipomauli/CppND-System-Monitor | bb6390229a98b92bf78cb9eb271d4d4fad21b747 | [
"MIT"
] | null | null | null | src/process.cpp | kaipomauli/CppND-System-Monitor | bb6390229a98b92bf78cb9eb271d4d4fad21b747 | [
"MIT"
] | null | null | null | #include "process.h"
using std::string;
using std::to_string;
using std::vector;
int Process::getPid() { return pid_; }
// TODO: Return this process's CPU utilization
void Process::setCpuUtilization() {
unsigned long int utime, stime, cutime, cstime, starttime,TotTime,
PrevTotTime, PrevSeconds, Seconds,... | 25.210526 | 80 | 0.640919 | [
"vector"
] |
5c0b76022c2efc8e282dc1f38b347d567449dd6c | 1,419 | hpp | C++ | source/system/Input.hpp | Godlike/Xanthus | f35a5fd8b7aa974f5fcb37bf5bb8df3f2602847d | [
"MIT"
] | null | null | null | source/system/Input.hpp | Godlike/Xanthus | f35a5fd8b7aa974f5fcb37bf5bb8df3f2602847d | [
"MIT"
] | null | null | null | source/system/Input.hpp | Godlike/Xanthus | f35a5fd8b7aa974f5fcb37bf5bb8df3f2602847d | [
"MIT"
] | null | null | null | #ifndef XANTHUS_SYSTEM_INPUT_HPP
#define XANTHUS_SYSTEM_INPUT_HPP
#include "entity/Entity.hpp"
#include <unicorn/system/Window.hpp>
#include <unicorn/UnicornRender.hpp>
#include <set>
namespace xanthus
{
class WorldTime;
namespace assemblage
{
class Factory;
}
namespace system
{
class Intent;
class Render;
cla... | 17.962025 | 79 | 0.701903 | [
"render",
"vector"
] |
5c1081e2e0b835a7ec8a9f37af65a37e8061a980 | 9,526 | cpp | C++ | Source/SystemQOR/MSWindows/winpthreads/MSW_clock.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/winpthreads/MSW_clock.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/winpthreads/MSW_clock.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //MSW_clock.cpp
// Copyright Querysoft Limited 2013
//
// 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 "Software") to use, reproduce, display, distribute,
// execute, and transmit the Softw... | 30.24127 | 108 | 0.636889 | [
"object"
] |
5c14eb7d0578d4ee0381449b26df4189cb2e367b | 2,041 | hxx | C++ | include/moneta/traits/fixed_values.hxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | 2 | 2015-10-09T12:11:54.000Z | 2016-01-20T15:34:33.000Z | include/moneta/traits/fixed_values.hxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | 5 | 2015-07-04T20:31:32.000Z | 2015-07-04T20:44:58.000Z | include/moneta/traits/fixed_values.hxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | null | null | null | // [===========================================================================]
// [ M o n e t a ]
// [---------------------------------------------------------------------------]
// [ ... | 41.653061 | 80 | 0.419892 | [
"vector"
] |
5c203aa308aad171fabd91fcbbe0535ef421f4a0 | 9,462 | cpp | C++ | liquidfun/liquidfun/Box2D/lfjs/jsBindings/jsBindings.cpp | subatomicglue/fluid | c85376f86828a1c234bcd9535b9030cfb1a1e8bd | [
"MIT"
] | 17 | 2017-04-02T00:17:47.000Z | 2021-11-23T21:42:48.000Z | liquidfun/liquidfun/Box2D/lfjs/jsBindings/jsBindings.cpp | subatomicglue/fluid | c85376f86828a1c234bcd9535b9030cfb1a1e8bd | [
"MIT"
] | 1 | 2022-01-09T17:14:54.000Z | 2022-01-16T12:35:06.000Z | liquidfun/liquidfun/Box2D/lfjs/jsBindings/jsBindings.cpp | subatomicglue/fluid | c85376f86828a1c234bcd9535b9030cfb1a1e8bd | [
"MIT"
] | 5 | 2017-08-06T12:47:18.000Z | 2020-08-14T14:16:22.000Z | /* The pure C function declarations need to be externed or they get
mangled by the compiler*/
extern "C" {
#include "Collision/b2CollisionJsBindings.h"
#include "Collision/Shapes/b2ChainShapeJsBindings.h"
#include "Collision/Shapes/b2CircleShapeJsBindings.h"
#include "Collision/Shapes/b2EdgeShapeJsBindings.h"
#include ... | 49.28125 | 94 | 0.69573 | [
"shape"
] |
5c2b5cd0006d3dad2a66f1e1aeffdb2052faabd0 | 4,152 | cpp | C++ | PizzaSeparator.cpp | Loniowsky/GoogleHashCodeTestRound | 95c101981fc6b180d5ce9b20a782df132e32c575 | [
"MIT"
] | null | null | null | PizzaSeparator.cpp | Loniowsky/GoogleHashCodeTestRound | 95c101981fc6b180d5ce9b20a782df132e32c575 | [
"MIT"
] | null | null | null | PizzaSeparator.cpp | Loniowsky/GoogleHashCodeTestRound | 95c101981fc6b180d5ce9b20a782df132e32c575 | [
"MIT"
] | null | null | null | #include "PizzaSeparator.h"
#include "PrintVector.h"
#include <iostream>
#include <fstream>
#include <cstdlib>
#include "Point.h"
#include "Parser.h"
using namespace std;
PizzaSeparator::PizzaSeparator(std::vector<std::vector<bool>>* v){
for(unsigned int i = 0; i < columns; ++i){
isTaken.emplace_back();
for(uns... | 24.568047 | 124 | 0.627649 | [
"vector"
] |
5c3468d5687d592168353213d78ec820693a8cec | 11,725 | cpp | C++ | src/server/chatservice.cpp | Robust-Jay/JayChat | e59071b7b3f37e3e24ffb99583d37cf650d8d184 | [
"MIT"
] | 1 | 2022-03-02T03:44:20.000Z | 2022-03-02T03:44:20.000Z | src/server/chatservice.cpp | Robust-Jay/JayChat | e59071b7b3f37e3e24ffb99583d37cf650d8d184 | [
"MIT"
] | null | null | null | src/server/chatservice.cpp | Robust-Jay/JayChat | e59071b7b3f37e3e24ffb99583d37cf650d8d184 | [
"MIT"
] | null | null | null | /*
* @Author: Han Liu
* @Date: 2022-02-27 18:31:35
* @LastEditTime: 2022-03-02 16:49:08
* @LastEditors: Han Liu
* @Description:
* @FilePath: /JayChat/src/server/chatservice.cpp
* 不积跬步 无以至千里
*/
#include "chatservice.hpp"
namespace JayChat
{
/**
* @description: 获取单例对象的接口函数
* @param {*}
* @ret... | 31.100796 | 164 | 0.490405 | [
"vector"
] |
5c3dfe92f578d18c885e76032bbd6955c1b2edbd | 4,468 | hpp | C++ | src/cs-scene/CelestialAnchor.hpp | bernstein/cosmoscout-vr | 4243384a0f96853dc12fc8e9d5862c9c37f7cadf | [
"MIT"
] | null | null | null | src/cs-scene/CelestialAnchor.hpp | bernstein/cosmoscout-vr | 4243384a0f96853dc12fc8e9d5862c9c37f7cadf | [
"MIT"
] | null | null | null | src/cs-scene/CelestialAnchor.hpp | bernstein/cosmoscout-vr | 4243384a0f96853dc12fc8e9d5862c9c37f7cadf | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is part of CosmoScout VR //
// and may be used under the terms of the MIT license. See the LICENSE file for details. //
// ... | 46.061856 | 100 | 0.690018 | [
"object"
] |
5c4e56689b299005e7e0641300b4e6a1bcaf68ac | 1,878 | hh | C++ | packages/spatial/Cartesian_Overlay.hh | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 2 | 2020-04-13T20:06:41.000Z | 2021-02-12T17:55:54.000Z | packages/spatial/Cartesian_Overlay.hh | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 1 | 2018-10-22T21:03:35.000Z | 2018-10-22T21:03:35.000Z | packages/spatial/Cartesian_Overlay.hh | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 3 | 2019-04-03T02:15:37.000Z | 2022-01-04T05:50:23.000Z | #ifndef Cartesian_Overlay_hh
#define Cartesian_Overlay_hh
#include <memory>
#include <vector>
#include "Indexing.hh"
class Distance;
class Cartesian_Overlay
{
public:
enum Cell_Error
{
LOWER_BOUND = -1,
UPPER_BOUND = -2
};
Cartesian_Overlay(int dimension,
... | 29.809524 | 84 | 0.627263 | [
"vector"
] |
5c52973a66ba072cd49e81c3aeb6cd4ea6f3be39 | 1,669 | cpp | C++ | dsa_problemset_cn/7-3.cpp | sonaspy/PAT-PTA | dc7d7c64e66a844cc199bfe845bc2873d4435732 | [
"Unlicense"
] | 1 | 2018-11-28T09:38:23.000Z | 2018-11-28T09:38:23.000Z | dsa_problemset_cn/7-3.cpp | NewGuonx/PAT-PTA | dc7d7c64e66a844cc199bfe845bc2873d4435732 | [
"Unlicense"
] | null | null | null | dsa_problemset_cn/7-3.cpp | NewGuonx/PAT-PTA | dc7d7c64e66a844cc199bfe845bc2873d4435732 | [
"Unlicense"
] | null | null | null | // author -sonaspy@outlook.com
// coding - utf_8
#include <bits/stdc++.h>
#define test() freopen("in", "r", stdin)
using namespace std;
struct TreeNode
{
char data;
TreeNode *left = nullptr, *right = nullptr;
TreeNode(char x) : data(x) {}
};
typedef vector<TreeNode *> Tree;
TreeNode *BulidTree(Tree &T)
... | 23.507042 | 96 | 0.494907 | [
"vector"
] |
5c552061f2d4d9d869de1028b7810b662a71bc0b | 9,801 | cpp | C++ | Common/source/ipc/TriPlayer.cpp | RoutineFree/TriPlayer | 4e5ee19c992eba033b57444b7f4b312acf339163 | [
"MIT"
] | null | null | null | Common/source/ipc/TriPlayer.cpp | RoutineFree/TriPlayer | 4e5ee19c992eba033b57444b7f4b312acf339163 | [
"MIT"
] | null | null | null | Common/source/ipc/TriPlayer.cpp | RoutineFree/TriPlayer | 4e5ee19c992eba033b57444b7f4b312acf339163 | [
"MIT"
] | null | null | null | #include "ipc/Command.hpp"
#include "ipc/TriPlayer.hpp"
#include <string.h>
#include <switch.h>
namespace TriPlayer {
static Service * service = nullptr; // Service object used for communication
bool initialize() {
// Return true if already initialized
if (service != nullptr) {
... | 33.680412 | 123 | 0.607591 | [
"object",
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.