hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 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 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | 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 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
217076e887dfc95d5921ce543b06a3fbb0019445 | 3,811 | cc | C++ | src/ipfs.cc | cloudcosmonaut/Browser | 4534b66266d73afdd8c80bea437a740b87e8c645 | [
"MIT"
] | null | null | null | src/ipfs.cc | cloudcosmonaut/Browser | 4534b66266d73afdd8c80bea437a740b87e8c645 | [
"MIT"
] | null | null | null | src/ipfs.cc | cloudcosmonaut/Browser | 4534b66266d73afdd8c80bea437a740b87e8c645 | [
"MIT"
] | null | null | null | #include "ipfs.h"
/**
* \brief IPFS Contructor, connect to IPFS
* \param host IPFS host (eg. localhost)
* \param port IPFS port number (5001)
* \param timeout IPFS time-out (which is a string, eg. "6s" for 6 seconds)
*/
IPFS::IPFS(const std::string& host, int port, const std::string& timeout)
: host(host),
... | 25.75 | 116 | 0.674626 | cloudcosmonaut |
2172120c9e267a69f2407de2e5284e17f3b1b5b6 | 5,320 | cpp | C++ | longcat/src/States/GameStateLoadLevel.cpp | Dreamer2345/arduboy-longcat | 576c68fa98574e956ac4f132fb85d0b7fe98d2f5 | [
"MIT"
] | 2 | 2022-03-05T15:16:14.000Z | 2022-03-09T03:07:18.000Z | longcat/src/States/GameStateLoadLevel.cpp | Dreamer2345/arduboy-longcat | 576c68fa98574e956ac4f132fb85d0b7fe98d2f5 | [
"MIT"
] | null | null | null | longcat/src/States/GameStateLoadLevel.cpp | Dreamer2345/arduboy-longcat | 576c68fa98574e956ac4f132fb85d0b7fe98d2f5 | [
"MIT"
] | 1 | 2022-03-17T23:14:27.000Z | 2022-03-17T23:14:27.000Z | #include "GameStateLoadLevel.h"
#include "../Game.h"
void GameStateLoadLevel::update(Game &game)
{
switch (game.getGameMode())
{
case GameMode::Random:
loadRandomLevel(game);
break;
default:
loadStaticLevel(game);
break;
}
game.setGameState(GameState::GamePlay);
}
void GameStateLoadLevel:... | 23.856502 | 195 | 0.628947 | Dreamer2345 |
2183b1798d89340b6ba3dfcfa7ab80ce4fe2d3b5 | 7,593 | cpp | C++ | fog/Fog/FogMakerContext.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | fog/Fog/FogMakerContext.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | fog/Fog/FogMakerContext.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | #include <Fog/FogIncludeAll.h>
TYPEINFO_SINGLE(FogMakerContext, Super)
TYPEINFO_SINGLE(FogEntityMakerContext, Super)
TYPEINFO_SINGLE(FogDecoratedMakerContext, Super)
TYPEINFO_SINGLE(FogFunctionMakerContext, Super)
TYPEINFO_SINGLE(FogNestedMakerContext, Super)
TYPEINFO_SINGLE(FogTemplatedMakerContext, Super)
... | 35.985782 | 121 | 0.762018 | UltimateScript |
2199a3d86ab5f647ad4d9e32d27f541fd27dfa3f | 12,290 | hpp | C++ | include/knn_tester.hpp | hfichtenberger/knn_tester | a661baf5cf43e57de7ca4e01246c61feca6160f3 | [
"MIT"
] | 1 | 2018-04-19T16:37:53.000Z | 2018-04-19T16:37:53.000Z | include/knn_tester.hpp | hfichtenberger/knn_tester | a661baf5cf43e57de7ca4e01246c61feca6160f3 | [
"MIT"
] | null | null | null | include/knn_tester.hpp | hfichtenberger/knn_tester | a661baf5cf43e57de7ca4e01246c61feca6160f3 | [
"MIT"
] | 1 | 2018-10-16T09:00:36.000Z | 2018-10-16T09:00:36.000Z | /*
Copyright 2018 Dennis Rohde
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, distribute, sublic... | 37.699387 | 460 | 0.504719 | hfichtenberger |
219bc1e121e0a684c067e1bd58f68409328344e7 | 441 | cpp | C++ | 20190727_ABC135/b.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | 20190727_ABC135/b.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | 20190727_ABC135/b.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
vector<int> p(n);
for(int i=0;i<n;i++) cin >> p[i];
vector<int> ps=p;
sort(ps.begin(),ps.end());
int cnt=0;
for(int i=0;i<n;i++){
if(p[i]!=ps[i]){
cnt++;
if(cnt>2){
... | 15.75 | 37 | 0.37415 | miyalab |
219bfeb3a6914687f004e95a67fd069c208bff48 | 1,240 | cpp | C++ | pochi_libs_and_includes/include/fastinterp/fastinterp_tpl_call_expr_enter_cpp_fn.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | pochi_libs_and_includes/include/fastinterp/fastinterp_tpl_call_expr_enter_cpp_fn.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | pochi_libs_and_includes/include/fastinterp/fastinterp_tpl_call_expr_enter_cpp_fn.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | #define POCHIVM_INSIDE_FASTINTERP_TPL_CPP
#define FASTINTERP_TPL_USE_LARGE_MCMODEL
#include "fastinterp_tpl_common.hpp"
#include "fastinterp_function_alignment.h"
#include "fastinterp_tpl_return_type.h"
namespace PochiVM
{
struct FICallExprEnterCppFnImpl
{
template<typename ReturnType,
bool isNoExce... | 25.833333 | 134 | 0.71371 | dghosef |
426e282d31852976df92192b2a88a65d5e46ed45 | 6,130 | cc | C++ | src/base/stream_msg_with_size_reader.cc | dspeterson/dory | 7261fb5481283fdd69b382c3cddbc9b9bd24366d | [
"Apache-2.0"
] | 82 | 2016-06-11T23:12:40.000Z | 2022-02-21T21:01:36.000Z | src/base/stream_msg_with_size_reader.cc | dspeterson/dory | 7261fb5481283fdd69b382c3cddbc9b9bd24366d | [
"Apache-2.0"
] | 18 | 2016-06-16T22:55:12.000Z | 2020-07-02T10:32:53.000Z | src/base/stream_msg_with_size_reader.cc | dspeterson/dory | 7261fb5481283fdd69b382c3cddbc9b9bd24366d | [
"Apache-2.0"
] | 14 | 2016-06-15T18:34:08.000Z | 2021-09-06T23:16:28.000Z | /* <base/stream_msg_with_size_reader.cc>
----------------------------------------------------------------------------
Copyright 2017 Dave Peterson <dave@dspeterson.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You m... | 31.116751 | 79 | 0.714192 | dspeterson |
42826d1483897572808b3dac7e7e2999223f2c88 | 719 | cpp | C++ | modules/gui/src/MetaObject/params/ui/Wt/bool.cpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 2 | 2017-10-26T04:41:49.000Z | 2018-02-09T05:12:19.000Z | modules/gui/src/MetaObject/params/ui/Wt/bool.cpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | null | null | null | modules/gui/src/MetaObject/params/ui/Wt/bool.cpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 3 | 2017-01-08T21:09:48.000Z | 2018-02-10T04:27:32.000Z | #ifdef HAVE_WT
#include "MetaObject/params/ui/Wt/POD.hpp"
#include <Wt/WCheckBox>
using namespace mo::UI::wt;
TDataProxy<bool, void>::TDataProxy() : _check_box(nullptr)
{
}
void TDataProxy<bool, void>::CreateUi(IParamProxy* proxy, bool& data, bool read_only)
{
_check_box = new Wt::WCheckBox(proxy);
_check_bo... | 21.787879 | 85 | 0.717663 | dtmoodie |
42858ca9ef79ddb0f71dded492f29825dff1988b | 1,580 | cpp | C++ | firmwareupdateprogressdialog.cpp | OSVR/OSVR-CPI | 95abd317d7295a49e0d97f663bce0f25637b63d2 | [
"Apache-2.0"
] | 7 | 2016-09-15T18:40:12.000Z | 2021-07-05T16:24:47.000Z | firmwareupdateprogressdialog.cpp | OSVR/OSVR-CPI | 95abd317d7295a49e0d97f663bce0f25637b63d2 | [
"Apache-2.0"
] | 2 | 2016-08-29T17:23:27.000Z | 2016-10-14T17:01:49.000Z | firmwareupdateprogressdialog.cpp | OSVR/OSVR-CPI | 95abd317d7295a49e0d97f663bce0f25637b63d2 | [
"Apache-2.0"
] | 6 | 2016-08-29T11:10:32.000Z | 2017-10-04T04:17:49.000Z | // Copyright 2016 Razer, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 33.617021 | 83 | 0.755696 | OSVR |
4286c19468d2149e477166a591fe07f81cfb8562 | 374 | cpp | C++ | c++/boost/Pool/singleton_pool.cpp | chenmingqiang/codesnippet | 6f355113fe4299d5cd0ddce6d8794a2fece0e891 | [
"MIT"
] | null | null | null | c++/boost/Pool/singleton_pool.cpp | chenmingqiang/codesnippet | 6f355113fe4299d5cd0ddce6d8794a2fece0e891 | [
"MIT"
] | null | null | null | c++/boost/Pool/singleton_pool.cpp | chenmingqiang/codesnippet | 6f355113fe4299d5cd0ddce6d8794a2fece0e891 | [
"MIT"
] | null | null | null | #include <boost/pool/singleton_pool.hpp>
#include <iostream>
using namespace std;
struct pool_tag1 { };
struct pool_tag2 { };
typedef boost::singleton_pool<pool_tag1, sizeof(int)> ipl;
typedef boost::singleton_pool<pool_tag2, sizeof(float)> fpl;
int main(int argc, char *argv[])
{
int *p = (int *) ipl::malloc(); ... | 19.684211 | 60 | 0.687166 | chenmingqiang |
4286cc464dc7d46c94aba09da909309f85855208 | 523 | hh | C++ | sensactIO_firmware/main/applicationBase.hh | klaus-liebler/sensactIO | a84f45c06dd47dc635b12472e258afdabe82a158 | [
"MIT"
] | null | null | null | sensactIO_firmware/main/applicationBase.hh | klaus-liebler/sensactIO | a84f45c06dd47dc635b12472e258afdabe82a158 | [
"MIT"
] | null | null | null | sensactIO_firmware/main/applicationBase.hh | klaus-liebler/sensactIO | a84f45c06dd47dc635b12472e258afdabe82a158 | [
"MIT"
] | null | null | null | #pragma once
#include <inttypes.h>
#include "common.hh"
using namespace sensact::comm;
class cApplication{
public:
uint32_t const id;
cApplication(const uint32_t id):id(id){}
virtual ErrorCode Setup(SensactContext *ctx) = 0;
virtual ErrorCode Loop(SensactContext *ctx) = 0;
virtual... | 32.6875 | 146 | 0.713193 | klaus-liebler |
428e4b24e560522fb0672d766c57799e90e6a69f | 5,235 | cpp | C++ | Universe.cpp | longmakesstuff/Newtons-Gravitation | 1d4964dd355cc6acc30b473602f5f29e821c2ac3 | [
"Apache-2.0"
] | 56 | 2021-01-13T05:22:33.000Z | 2021-08-20T01:47:05.000Z | Universe.cpp | longuyen97/newtons-gravitation | 1d4964dd355cc6acc30b473602f5f29e821c2ac3 | [
"Apache-2.0"
] | 1 | 2021-01-18T08:51:12.000Z | 2021-01-19T08:32:21.000Z | Universe.cpp | longuyen97/newtons-gravitation | 1d4964dd355cc6acc30b473602f5f29e821c2ac3 | [
"Apache-2.0"
] | 1 | 2021-05-19T19:59:02.000Z | 2021-05-19T19:59:02.000Z | #include "Universe.hpp"
Universe::Universe(sf::RenderWindow *window, sf::Font *font) : window(window), font(font) {
if (!sunTexture.loadFromFile("sun.png", sf::IntRect(0, 0, 660, 660))) {
LOG_ERROR("Can not load sun.png. Exit now")
std::exit(1);
}
// Load planet images
constexpr int32_... | 32.71875 | 119 | 0.480802 | longmakesstuff |
4291b63ed62bb2c6691782cf4b5010f89b0c9a8e | 1,750 | cpp | C++ | other/002/code.cpp | Shivam010/daily-coding-problem | 679376a7b0f5f9bccdd261a1a660e951a1142174 | [
"MIT"
] | 9 | 2020-09-13T12:48:35.000Z | 2022-03-02T06:25:06.000Z | other/002/code.cpp | Shivam010/daily-coding-problem | 679376a7b0f5f9bccdd261a1a660e951a1142174 | [
"MIT"
] | 9 | 2020-09-11T21:19:27.000Z | 2020-09-14T20:18:02.000Z | other/002/code.cpp | Shivam010/daily-coding-problem | 679376a7b0f5f9bccdd261a1a660e951a1142174 | [
"MIT"
] | 1 | 2020-09-11T22:03:29.000Z | 2020-09-11T22:03:29.000Z | // Copyright (c) 2020 Shivam Rathore. All rights reserved.
// Use of this source code is governed by MIT License that
// can be found in the LICENSE file.
// This file contains Solution to Challenge Other#002, run using
// g++ other/002/code.cpp -o bin/out
// ./bin/out < other/002/in.txt > other/002/out.txt
#include <... | 21.875 | 64 | 0.470286 | Shivam010 |
42932aa7e75343b486398ced449d88f1af5cad97 | 3,102 | cpp | C++ | src/rmx_win32/vConfigWnd/ConfigWndTree.cpp | darkain/RMX-Automation | b98df45a40c6e5ce8a8770579788274924d9e851 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T20:02:59.000Z | 2020-07-22T20:02:59.000Z | src/rmx_win32/vConfigWnd/ConfigWndTree.cpp | darkain/RMX-Automation | b98df45a40c6e5ce8a8770579788274924d9e851 | [
"BSD-3-Clause"
] | null | null | null | src/rmx_win32/vConfigWnd/ConfigWndTree.cpp | darkain/RMX-Automation | b98df45a40c6e5ce8a8770579788274924d9e851 | [
"BSD-3-Clause"
] | null | null | null | /****************************** RMX SDK ******************************\
* Copyright (c) 2007 Vincent E. Milum Jr., All rights reserved. *
* *
* See license.txt for more information *
* ... | 27.945946 | 106 | 0.568021 | darkain |
4294c06ac23afda28d822321df25352419712fbe | 1,649 | cpp | C++ | source/utils/JdStdStringUtils.cpp | soundandform/epigram | f4f560b405e529e84ffd4e8a0b1101bf57148b90 | [
"MIT"
] | 3 | 2018-02-16T04:30:22.000Z | 2021-03-26T02:06:51.000Z | source/utils/JdStdStringUtils.cpp | soundandform/epigram | f4f560b405e529e84ffd4e8a0b1101bf57148b90 | [
"MIT"
] | null | null | null | source/utils/JdStdStringUtils.cpp | soundandform/epigram | f4f560b405e529e84ffd4e8a0b1101bf57148b90 | [
"MIT"
] | null | null | null | //
// JdStdStringUtils.cpp
// Jigidesign
//
// Created by Steven Massey on 6/29/16.
// Copyright © 2016 Jigidesign. All rights reserved.
//
#include "JdStdStringUtils.hpp"
#include <fstream>
using namespace std;
namespace Jd
{
std::string TrimString (std::string i_string)
{
size_t p;
while ((p = i_stri... | 17.923913 | 86 | 0.607035 | soundandform |
429a745a6e4cb7aa617dba0ae1f100d73cc4b4d2 | 19,872 | cpp | C++ | cpp/fss-client.cpp | uishi/libfss | 7255fd26af146096c5df08f18605251280d2314a | [
"MIT"
] | 56 | 2017-03-24T10:06:24.000Z | 2022-03-24T12:55:32.000Z | cpp/fss-client.cpp | uishi/libfss | 7255fd26af146096c5df08f18605251280d2314a | [
"MIT"
] | 5 | 2017-04-12T21:49:41.000Z | 2018-11-15T20:22:29.000Z | cpp/fss-client.cpp | uishi/libfss | 7255fd26af146096c5df08f18605251280d2314a | [
"MIT"
] | 24 | 2017-01-11T21:52:22.000Z | 2022-03-25T06:43:52.000Z | // This is the client side code that does the key generation
#include "fss-client.h"
void initializeClient(Fss* f, uint32_t numBits, uint32_t numParties) {
#ifndef AESNI
// check if there is aes-ni instruction
uint32_t eax, ebx, ecx, edx;
eax = ebx = ecx = edx = 0;
__get_cpuid(1, &eax, &ebx, &ecx, &ed... | 30.714065 | 127 | 0.47192 | uishi |
42a21e4500f132edf473c7072a27ccbae9030b3c | 3,318 | cpp | C++ | Skybox.cpp | raulgonzalezupc/FirstAssigment | 9193de31049922787da966695340253d84439bf3 | [
"MIT"
] | null | null | null | Skybox.cpp | raulgonzalezupc/FirstAssigment | 9193de31049922787da966695340253d84439bf3 | [
"MIT"
] | null | null | null | Skybox.cpp | raulgonzalezupc/FirstAssigment | 9193de31049922787da966695340253d84439bf3 | [
"MIT"
] | null | null | null | #include "Skybox.h"
#include "GL/glew.h"
#include "Application.h"
#include "ModuleTexture.h"
#include "ModuleProgram.h"
#include "ModuleCamera.h"
#include "ModuleRender.h"
#include "Components/Camera.h"
#include "MathGeoLib/include/Math/float4.h"
Skybox::Skybox()
{
directory = "../Textures/Skybox/";
std::vector<std... | 24.218978 | 88 | 0.645871 | raulgonzalezupc |
42a3a8a9ff3ce21aa6af54a36b207008d72efe49 | 1,855 | cpp | C++ | cgi/vendor/tyco/tycocgi.cpp | harryoh/api-gateway | 9576d499c35fbf8d8304f470e825acaa7d9a4674 | [
"MIT"
] | null | null | null | cgi/vendor/tyco/tycocgi.cpp | harryoh/api-gateway | 9576d499c35fbf8d8304f470e825acaa7d9a4674 | [
"MIT"
] | null | null | null | cgi/vendor/tyco/tycocgi.cpp | harryoh/api-gateway | 9576d499c35fbf8d8304f470e825acaa7d9a4674 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
/// @file tycocgi.cpp
/// @~english
/// @brief Implementation of the TycoCGI class
/// @~
/// @authors Harry Oh (harry.oh@udptechnology.com)
/// @copyright UDP Technology
//////////////////////////////////////////////////////... | 29.919355 | 79 | 0.447978 | harryoh |
42a4bd0dee99304f63ef921c522d9a81b5b7633f | 916 | hpp | C++ | include/lug/System/Logger/Common.hpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 275 | 2016-10-08T15:33:17.000Z | 2022-03-30T06:11:56.000Z | include/lug/System/Logger/Common.hpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 24 | 2016-09-29T20:51:20.000Z | 2018-05-09T21:41:36.000Z | include/lug/System/Logger/Common.hpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 37 | 2017-02-25T05:03:48.000Z | 2021-05-10T19:06:29.000Z | #pragma once
#include <lug/System/Export.hpp>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#define FMT_HEADER_ONLY
#if defined(False)
#undef False
#include <fmt/format.h>
#include <fmt/ostream.h>
#define False 0
#else
#include <fmt/format.h>
#include <fmt/ostream.h>
#en... | 20.355556 | 71 | 0.593886 | Lugdunum3D |
42a5d6917ac74dd6520db6f7e25845c50ed81397 | 3,096 | cpp | C++ | modules/task_1/ikromov_i_sum_col/main.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | null | null | null | modules/task_1/ikromov_i_sum_col/main.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2021-02-13T03:00:05.000Z | 2021-02-13T03:00:05.000Z | modules/task_1/ikromov_i_sum_col/main.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2020-10-11T09:11:57.000Z | 2020-10-11T09:11:57.000Z | // Copyright 2020 Ikromov Inom
#include <mpi.h>
#include <gtest-mpi-listener.hpp>
#include <gtest/gtest.h>
#include <vector>
#include "./sum_col.h"
using std::vector;
TEST(Sum_Col_MPI, Square_Matrix) {
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
vector<vector<int>> global_mat;
const int rows = 5;
... | 28.145455 | 78 | 0.643734 | LioBuitrago |
42a73b04f67b3f76d89b3f4d33a19480eb579500 | 2,506 | cpp | C++ | frameworks/lua/interfaces/dmzLuaModule.cpp | tongli/dmz | f2242027a17ea804259f9412b07d69f719a527c5 | [
"MIT"
] | 1 | 2016-05-08T22:02:35.000Z | 2016-05-08T22:02:35.000Z | frameworks/lua/interfaces/dmzLuaModule.cpp | tongli/dmz | f2242027a17ea804259f9412b07d69f719a527c5 | [
"MIT"
] | null | null | null | frameworks/lua/interfaces/dmzLuaModule.cpp | tongli/dmz | f2242027a17ea804259f9412b07d69f719a527c5 | [
"MIT"
] | null | null | null | /*!
\defgroup Lua DMZ Lua Framework
\brief The Lua Framework provides Lua bindings for the DMZ Kernel and various
frameworks. More information about Lua may be found here: http://www.lua.org/ \n\n
\htmlonly
The DMZ Lua binding documentation is available <a href="dmzlua.html">here</a>.
\endhtmlonly
\class dmz::LuaModu... | 36.318841 | 87 | 0.791301 | tongli |
42aa8898cf467083bd4fef7030feac520c5c1450 | 472 | cpp | C++ | Beginning C++17 From Novice to Professional/Source/04_Making_Decisions/06_Using_the_conditional_operator_to_select_output.cpp | devgunho/Cpp_AtoZ | 4d87f22671a4eab06ca35b32c9b7f8f9abadb2bc | [
"MIT"
] | 1 | 2022-03-25T06:11:06.000Z | 2022-03-25T06:11:06.000Z | Beginning C++17 From Novice to Professional/Source/04_Making_Decisions/06_Using_the_conditional_operator_to_select_output.cpp | devgunho/Cpp_AtoZ | 4d87f22671a4eab06ca35b32c9b7f8f9abadb2bc | [
"MIT"
] | null | null | null | Beginning C++17 From Novice to Professional/Source/04_Making_Decisions/06_Using_the_conditional_operator_to_select_output.cpp | devgunho/Cpp_AtoZ | 4d87f22671a4eab06ca35b32c9b7f8f9abadb2bc | [
"MIT"
] | null | null | null | // Using the conditional operator to select output.
#include <iostream>
int main() {
int mice{}; // Count of all mice
int brown{}; // Count of brown mice
int white{}; // Count of white mice
std::cout << "How many brown mice do you have? ";
std::cin >> brown;
std::cout << "How many white mice do you have? "... | 23.6 | 51 | 0.588983 | devgunho |
42abb56726c9da5007d92c80dc1b17b987cd95a4 | 944 | hpp | C++ | traffic/incastGenerator.hpp | rajkiranjoshi/syndb-sim | 4be3e637d94bfd988869757f883cdb16170647df | [
"Apache-2.0"
] | 9 | 2021-04-12T17:11:31.000Z | 2022-03-03T04:05:09.000Z | traffic/incastGenerator.hpp | ghghliu/syndb-sim | 4be3e637d94bfd988869757f883cdb16170647df | [
"Apache-2.0"
] | 1 | 2021-04-19T07:03:06.000Z | 2021-04-21T09:52:28.000Z | traffic/incastGenerator.hpp | ghghliu/syndb-sim | 4be3e637d94bfd988869757f883cdb16170647df | [
"Apache-2.0"
] | 1 | 2021-04-19T06:36:19.000Z | 2021-04-19T06:36:19.000Z | #ifndef INCASTGENERATOR_H
#define INCASTGENERATOR_H
#include <memory>
#include <functional>
#include <list>
#include <set>
#include "utils/types.hpp"
struct incastScheduleInfo{
sim_time_t time;
host_id_t targetHostId;
std::set<host_id_t> sourceHosts;
void printScheduleInfo();
};
typedef std::share... | 17.811321 | 72 | 0.738347 | rajkiranjoshi |
42aff4b8a7bf034c952b35fb276cce49756c4196 | 20,741 | hpp | C++ | visualization/include/pcl/visualization/impl/point_cloud_handlers.hpp | zhangxaochen/CuFusion | e8bab7a366b1f2c85a80b95093d195d9f0774c11 | [
"MIT"
] | 52 | 2017-09-05T13:31:44.000Z | 2022-03-14T08:48:29.000Z | visualization/include/pcl/visualization/impl/point_cloud_handlers.hpp | GucciPrada/CuFusion | 522920bcf316d1ddf9732fc71fa457174168d2fb | [
"MIT"
] | 4 | 2018-05-17T22:45:35.000Z | 2020-02-01T21:46:42.000Z | visualization/include/pcl/visualization/impl/point_cloud_handlers.hpp | GucciPrada/CuFusion | 522920bcf316d1ddf9732fc71fa457174168d2fb | [
"MIT"
] | 21 | 2015-07-27T13:00:36.000Z | 2022-01-17T08:18:41.000Z | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of sour... | 35.454701 | 194 | 0.585218 | zhangxaochen |
42b1bb6a6979135c0a96b957443326031ba2027c | 2,165 | cpp | C++ | examples/CBuilder/Simple/ObjectSpace/AssociationClass/MainForm.cpp | LenakeTech/BoldForDelphi | 3ef25517d5c92ebccc097c6bc2f2af62fc506c71 | [
"MIT"
] | 121 | 2020-09-22T10:46:20.000Z | 2021-11-17T12:33:35.000Z | examples/CBuilder/Simple/ObjectSpace/AssociationClass/MainForm.cpp | LenakeTech/BoldForDelphi | 3ef25517d5c92ebccc097c6bc2f2af62fc506c71 | [
"MIT"
] | 8 | 2020-09-23T12:32:23.000Z | 2021-07-28T07:01:26.000Z | examples/CBuilder/Simple/ObjectSpace/AssociationClass/MainForm.cpp | LenakeTech/BoldForDelphi | 3ef25517d5c92ebccc097c6bc2f2af62fc506c71 | [
"MIT"
] | 42 | 2020-09-22T14:37:20.000Z | 2021-10-04T10:24:12.000Z | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "MainForm.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "BoldAbstractListHandle"
#pragma link "BoldCursorHandle"
#pragma l... | 33.307692 | 77 | 0.591686 | LenakeTech |
42b33e4ff5f09003e261c74f8949a3978d932fef | 359 | cpp | C++ | unit_tests/core/physics_test_utils.cpp | mchurchf/amr-wind | 4bd712966e830a7c9412b0a4ec4cd8d1e6e0582f | [
"BSD-3-Clause"
] | 40 | 2019-11-27T15:38:45.000Z | 2022-03-07T10:56:35.000Z | unit_tests/core/physics_test_utils.cpp | mchurchf/amr-wind | 4bd712966e830a7c9412b0a4ec4cd8d1e6e0582f | [
"BSD-3-Clause"
] | 207 | 2019-11-07T22:53:02.000Z | 2022-03-30T21:41:57.000Z | unit_tests/core/physics_test_utils.cpp | mchurchf/amr-wind | 4bd712966e830a7c9412b0a4ec4cd8d1e6e0582f | [
"BSD-3-Clause"
] | 55 | 2019-11-08T19:25:08.000Z | 2022-03-15T20:36:25.000Z | #include "physics_test_utils.H"
namespace amr_wind_tests {
PhysicsEx::PhysicsEx(amr_wind::CFDSim&) {}
void PhysicsEx::post_init_actions() {}
void PhysicsEx::post_regrid_actions() {}
void PhysicsEx::initialize_fields(int, const amrex::Geometry&) {}
void PhysicsEx::pre_advance_work() {}
void PhysicsEx::post_advance_wo... | 25.642857 | 65 | 0.768802 | mchurchf |
42b453d12e4af7ad15079083fbbc06cbde92d5a0 | 1,300 | cpp | C++ | src/simulate.cpp | krunal-shah/yinsh | 4f2bb348e6aa552fa8238420fcad510d70cc102b | [
"MIT"
] | null | null | null | src/simulate.cpp | krunal-shah/yinsh | 4f2bb348e6aa552fa8238420fcad510d70cc102b | [
"MIT"
] | null | null | null | src/simulate.cpp | krunal-shah/yinsh | 4f2bb348e6aa552fa8238420fcad510d70cc102b | [
"MIT"
] | null | null | null | #include <iostream>
#include "Solver.h"
#include <stdlib.h>
#include <cstring>
using namespace std;
// Sample C++ Code
int main(int argc, char** argv)
{
// Get input from server about game specifications
// cin >> move;
int seed1 = stoi(argv[1]), seed2 = stoi(argv[2]);
int player_id = 1, board_size = 6, ti... | 20.634921 | 87 | 0.58 | krunal-shah |
42be6706ac4c63f37bd26818ce2d662adf52c5af | 13,324 | cpp | C++ | rpkg_src/load_temp_tblu_hash_depends.cpp | hitman-resources/RPKG-Tool | 8767d3dd85f77df4a6eceaec480b330be34cee57 | [
"BSD-2-Clause"
] | 9 | 2021-06-01T00:58:46.000Z | 2022-02-16T12:44:15.000Z | rpkg_src/load_temp_tblu_hash_depends.cpp | hitman-resources/RPKG-Tool | 8767d3dd85f77df4a6eceaec480b330be34cee57 | [
"BSD-2-Clause"
] | 33 | 2021-06-02T17:55:16.000Z | 2022-02-27T15:03:06.000Z | rpkg_src/load_temp_tblu_hash_depends.cpp | hitman-resources/RPKG-Tool | 8767d3dd85f77df4a6eceaec480b330be34cee57 | [
"BSD-2-Clause"
] | 17 | 2021-06-01T01:05:45.000Z | 2022-01-30T12:19:53.000Z | #include "rpkg_function.h"
#include "file.h"
#include "global.h"
#include "crypto.h"
#include "console.h"
#include "util.h"
#include "generic_function.h"
#include <iostream>
#include <map>
int rpkg_function::load_temp_tblu_hash_depends(uint64_t rpkg_index, uint64_t hash_index)
{
/*hash_depends_variables temporary_... | 40.012012 | 242 | 0.594716 | hitman-resources |
42bfefce8059538fe81369be2eace83eb8bfb32f | 1,504 | hpp | C++ | src/org/apache/poi/util/BitField.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/util/BitField.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/util/BitField.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/util/BitField.java
#pragma once
#include <fwd-POI.hpp>
#include <org/apache/poi/util/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct default_init_tag;
class poi::util::BitField
: public virtual ::java::lang::Object
{
public:
typedef ::java::lang::Object super;... | 27.345455 | 65 | 0.727394 | pebble2015 |
42c0105c61902a1f7e7222f2f4bf285e7ca7d9a5 | 2,344 | hh | C++ | cordic.hh | aicodix/dsp | c83add357c695482590825ddd2713dc29fd903d2 | [
"0BSD"
] | 16 | 2019-01-25T02:02:21.000Z | 2022-02-11T04:05:54.000Z | cordic.hh | aicodix/dsp | c83add357c695482590825ddd2713dc29fd903d2 | [
"0BSD"
] | 2 | 2020-12-10T05:46:36.000Z | 2020-12-15T00:16:25.000Z | cordic.hh | aicodix/dsp | c83add357c695482590825ddd2713dc29fd903d2 | [
"0BSD"
] | 4 | 2019-01-25T02:02:15.000Z | 2021-10-06T13:50:59.000Z | /*
CORDIC atan2 implementation
Copyright 2019 Ahmet Inan <inan@aicodix.de>
*/
#pragma once
/*
for ((i = 0; i < 16; ++i)) ; do
echo -n "int(0.5+FAC*"
echo "scale=100; a((1/2)^$i)/(4*a(1))" | bc -l | head -n1 | sed 's/\\/L),/'
done
*/
namespace DSP {
template <typename TYPE>
class CORDIC
{
static const int BYTES ... | 32.109589 | 85 | 0.738055 | aicodix |
42c39b3a26a14add8177872f728eff47ea8142e7 | 7,193 | cpp | C++ | tests/src/astro/propagators/unitTestFullPropagationLambertTargeter.cpp | kimonito98/tudat | c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092 | [
"BSD-3-Clause"
] | null | null | null | tests/src/astro/propagators/unitTestFullPropagationLambertTargeter.cpp | kimonito98/tudat | c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092 | [
"BSD-3-Clause"
] | null | null | null | tests/src/astro/propagators/unitTestFullPropagationLambertTargeter.cpp | kimonito98/tudat | c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2010-2019, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have received
*... | 46.406452 | 160 | 0.72362 | kimonito98 |
42c510f268f3eda780d60ac4d83c5fc8c5187c83 | 10,716 | cpp | C++ | src/frontend/logic/main.cpp | AquaFlyRat/PotatoAdventure | f673d8f520ba88b7ff73888b5871aae99f1ab6b6 | [
"Zlib"
] | 2 | 2017-06-19T21:08:27.000Z | 2017-06-20T17:25:58.000Z | src/frontend/logic/main.cpp | AquaFlyRat/PotatoAdventure | f673d8f520ba88b7ff73888b5871aae99f1ab6b6 | [
"Zlib"
] | 1 | 2017-07-20T11:47:54.000Z | 2017-07-20T11:48:25.000Z | src/frontend/logic/main.cpp | AquaFlyRat/PotatoAdventure | f673d8f520ba88b7ff73888b5871aae99f1ab6b6 | [
"Zlib"
] | null | null | null | #include "../master.h"
#include "gui.h"
#include <deque>
namespace Backend
{
void Start();
void Tick();
}
void Boot();
void Main();
static int window_scale = 2;
static constexpr ivec2 screen_size(480,270);
namespace Cfg
{
static constexpr int log_x = 146, log_width = 334,
lo... | 33.911392 | 240 | 0.60573 | AquaFlyRat |
42c671822fc6edb50c04c797b1226eb317d2faf3 | 1,158 | cpp | C++ | src/test/test_find_feature_range.cpp | JerryLife/FedTree | 0544e6ac98c05da7e83d0db957fd93bf3bdf6ebf | [
"Apache-2.0"
] | 12 | 2021-04-27T11:59:15.000Z | 2022-03-15T02:55:52.000Z | src/test/test_find_feature_range.cpp | JerryLife/FedTree | 0544e6ac98c05da7e83d0db957fd93bf3bdf6ebf | [
"Apache-2.0"
] | 1 | 2021-12-20T09:54:01.000Z | 2021-12-21T04:08:44.000Z | src/test/test_find_feature_range.cpp | JerryLife/FedTree | 0544e6ac98c05da7e83d0db957fd93bf3bdf6ebf | [
"Apache-2.0"
] | 5 | 2021-04-28T03:27:07.000Z | 2021-12-18T09:55:58.000Z | //
// Created by Kelly Yung on 2021/2/25.
//
#include "FedTree/FL/party.h"
#include "gtest/gtest.h"
#include <vector>
class FeatureRangeTest: public ::testing::Test {
public:
vector<float_type> csc_val = {10, 20, 30, 50, 40, 60, 70, 80};
vector<int> csc_row_idx = {0, 0, 1, 1, 2, 2, 2, 4};
vector<int> cs... | 26.318182 | 67 | 0.686528 | JerryLife |
42cb8df109235db8e355bc34384fb65579bb7628 | 6,814 | hpp | C++ | clients/cpp/pitocin/src/BrokerTcp.hpp | javasboy/qmq | b39438f07f849e97ab47954e5abb98bee49c7004 | [
"Apache-2.0"
] | 2,499 | 2018-12-07T06:02:12.000Z | 2022-03-31T06:46:36.000Z | clients/cpp/pitocin/src/BrokerTcp.hpp | javasboy/qmq | b39438f07f849e97ab47954e5abb98bee49c7004 | [
"Apache-2.0"
] | 92 | 2018-12-07T06:35:03.000Z | 2022-03-20T01:54:54.000Z | clients/cpp/pitocin/src/BrokerTcp.hpp | javasboy/qmq | b39438f07f849e97ab47954e5abb98bee49c7004 | [
"Apache-2.0"
] | 657 | 2018-12-07T06:04:27.000Z | 2022-03-31T14:27:39.000Z | #ifndef PITOCIN_BROKER_TCP_H
#define PITOCIN_BROKER_TCP_H
#include <uv.h>
#include "Conn.hpp"
#include "Protocol.hpp"
#include "StackPool.hpp"
#include "ExiledChecker.hpp"
#include <cstdint>
#include <functional>
#include <string>
#include <unordered_map>
#include <iostream>
using namespace std;
namespace Pitocin
... | 27.475806 | 77 | 0.526856 | javasboy |
42cc5e6fb3e04419397b2613ceef3d0b5defc1a6 | 8,437 | cc | C++ | algorithms/map-sparsification/test/test_heuristic_landmark_sparsification.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 1,936 | 2017-11-27T23:11:37.000Z | 2022-03-30T14:24:14.000Z | algorithms/map-sparsification/test/test_heuristic_landmark_sparsification.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 353 | 2017-11-29T18:40:39.000Z | 2022-03-30T15:53:46.000Z | algorithms/map-sparsification/test/test_heuristic_landmark_sparsification.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 661 | 2017-11-28T07:20:08.000Z | 2022-03-28T08:06:29.000Z | #include <memory>
#include <Eigen/Core>
#include <map-sparsification/heuristic/cost-functions/min-keypoints-per-keyframe-cost.h>
#include <map-sparsification/heuristic/heuristic-sampling.h>
#include <map-sparsification/heuristic/scoring/descriptor-variance-scoring.h>
#include <map-sparsification/heuristic/scoring/obs... | 35.301255 | 88 | 0.775276 | AdronTech |
42ce01cbee2b709316f050822d10df725830726d | 6,865 | cpp | C++ | eb/src/v20210416/model/EventBus.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 1 | 2022-01-27T09:27:34.000Z | 2022-01-27T09:27:34.000Z | eb/src/v20210416/model/EventBus.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | eb/src/v20210416/model/EventBus.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 27.242063 | 139 | 0.675455 | suluner |
42cf83246cfd5df550b96a6efeb7aec0a7007eb6 | 2,965 | cpp | C++ | src/core/SettingsManager.cpp | tinfah/nvidia-system-monitor-qt | 805b7ba49c879c6d6d0af576292274e60148353f | [
"MIT"
] | null | null | null | src/core/SettingsManager.cpp | tinfah/nvidia-system-monitor-qt | 805b7ba49c879c6d6d0af576292274e60148353f | [
"MIT"
] | null | null | null | src/core/SettingsManager.cpp | tinfah/nvidia-system-monitor-qt | 805b7ba49c879c6d6d0af576292274e60148353f | [
"MIT"
] | null | null | null | #include "SettingsManager.h"
#include "NVSMIParser.h"
#include <QJsonArray>
#define constant(name) constexpr char name[] = "Graph/" #name
namespace Constants {
constant(gpuColors);
constant(updateDelay);
constant(length);
}
QVarLengthArray<QString> SettingsManager::m_gpuNames;
QVarLengthArray<QColor> SettingsManage... | 23.531746 | 78 | 0.661046 | tinfah |
42d3f4d158020b542d3c89f337537ba5017fb838 | 17,542 | cc | C++ | meter_multical21.cc | IBUSOL/wmbusmeters | 6786caaec646db23a1ad057692609e22cecfa029 | [
"MIT"
] | null | null | null | meter_multical21.cc | IBUSOL/wmbusmeters | 6786caaec646db23a1ad057692609e22cecfa029 | [
"MIT"
] | null | null | null | meter_multical21.cc | IBUSOL/wmbusmeters | 6786caaec646db23a1ad057692609e22cecfa029 | [
"MIT"
] | 1 | 2019-12-01T08:19:51.000Z | 2019-12-01T08:19:51.000Z | // Copyright (c) 2017 Fredrik Öhrström
//
// 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, publ... | 31.66426 | 133 | 0.627009 | IBUSOL |
42d50924ec6b5490b3c68609206c657cf4829a4e | 1,068 | cpp | C++ | scene.cpp | malinowskikam/OpenGLEngine | 146119967382283db8dc458cfa07b740c7accfc1 | [
"MIT"
] | null | null | null | scene.cpp | malinowskikam/OpenGLEngine | 146119967382283db8dc458cfa07b740c7accfc1 | [
"MIT"
] | null | null | null | scene.cpp | malinowskikam/OpenGLEngine | 146119967382283db8dc458cfa07b740c7accfc1 | [
"MIT"
] | null | null | null | #include "include.hpp"
extern Global *global;
Scene::Scene()
{
this->cameraRotation = glm::vec3(0.0f,-(M_PI/2.0),0.0f);//pitch, yaw, roll
this->cameraPosition = glm::vec3(0.0f,0.0f,0.0f);
this->cameraUp = glm::vec3(0.0,1.0,0.0);
}
void Scene::updateLookingAngle()
{
glm::vec3 direction;
direction... | 33.375 | 166 | 0.698502 | malinowskikam |
42d910b6ddbd2e5c0372fbc68b84ae05b5cea2b9 | 1,491 | hpp | C++ | utility.hpp | YuexuanX/WSDAD-MODEL | e24a566f6a4f54b7ab780a7a852b4801a411eede | [
"BSD-2-Clause"
] | 29 | 2018-08-01T00:27:16.000Z | 2021-12-16T06:20:46.000Z | utility.hpp | YuexuanX/WSDAD-MODEL | e24a566f6a4f54b7ab780a7a852b4801a411eede | [
"BSD-2-Clause"
] | 2 | 2018-09-05T07:07:17.000Z | 2019-05-20T23:26:12.000Z | utility.hpp | YuexuanX/WSDAD-MODEL | e24a566f6a4f54b7ab780a7a852b4801a411eede | [
"BSD-2-Clause"
] | 8 | 2018-08-29T02:53:31.000Z | 2021-06-15T06:11:55.000Z | /*
* utitlity.h
*
* Created on: Mar 27, 2015
* Author: Tadeze
*/
#ifndef UTILITY_HPP_
#define UTILITY_HPP_
#include<iostream>
#include<fstream>
#include<sstream>
#include <cmath>
#include <cstdlib>
#include<ctime>
#include<algorithm>
#include<queue>
#include<string>
#include<iterator>
#incl... | 22.253731 | 80 | 0.68008 | YuexuanX |
42d96c18584be698a4fbb430af9f9bc341a2d455 | 368 | cpp | C++ | Codeforces/268A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/268A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/268A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | #include<stdio.h>
int hosts[100];
int guests[100];
int main(){
int n, i, j, cont=0;
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%d%d", &hosts[i], &guests[i]);
}
for(i=0; i<n; i++){
for(j=0; j<n; j++){
if(hosts[i]==guests[j]){
cont++;
}
... | 18.4 | 45 | 0.38587 | DT3264 |
42e11bfe05e3e9861fa72326adb324ff1ea96969 | 2,325 | cpp | C++ | Ouroboros/Source/oGfx/surface_view.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oGfx/surface_view.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oGfx/surface_view.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | // Copyright (c) 2014 Antony Arciuolo. See License.txt regarding use.
#include <oGfx/surface_view.h>
#include <oGPU/vertex_buffer.h>
namespace ouro { namespace gfx {
void surface_view::initialize(gfx::core& _core)
{
core = &_core;
active = nullptr;
vs.initialize("fullscreen_tri", core->device, gpu::intri... | 23.72449 | 122 | 0.660645 | jiangzhu1212 |
42e1f1a29fd3b5f53791ce5cb15d46938da0f5cf | 1,294 | cpp | C++ | android-31/android/provider/Contacts_Organizations.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/provider/Contacts_Organizations.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/provider/Contacts_Organizations.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../content/Context.hpp"
#include "../net/Uri.hpp"
#include "../../JString.hpp"
#include "../../JString.hpp"
#include "./Contacts_Organizations.hpp"
namespace android::provider
{
// Fields
JString Contacts_Organizations::CONTENT_DIRECTORY()
{
return getStaticObjectField(
"android.provider.Contacts$Org... | 23.962963 | 105 | 0.727202 | YJBeetle |
42e3d619d693b69d27ffe109fc599f1213f3b067 | 9,214 | cpp | C++ | main/main.cpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | main/main.cpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | main/main.cpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | // This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <regex>
#include <string>
#include <vector>
#include <cctype>
#include <utility>
#include <iomanip>
#include <iostream>
#include "lgraph.h... | 26.176136 | 105 | 0.597026 | tamim-asif |
42e4d4601c5e15f07f865c9a1ced0112b8c22a99 | 1,624 | cpp | C++ | Stack/NextGreater/NextGreater.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | Stack/NextGreater/NextGreater.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | Stack/NextGreater/NextGreater.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | /*
Problem statement: Given an array, print the Next Greater Element (NGE) for every element. The Next greater Element for an element x is the first greater element
on the right side of x in the array. Elements for which no greater element exist, consider next greater element as -1.
Approaches:
Method 1: Use two l... | 33.142857 | 162 | 0.616379 | PrachieNaik |
42e5f53a584b97bb6ecf49879cb5daa3cf5fac19 | 4,146 | cpp | C++ | Libraries/SdFs-master/src/SpiDriver/SdSpiSTM32F1.cpp | surgtechlab/MagLib | 491937caec71c44ec58feec587109f27b50dfece | [
"MIT"
] | 45 | 2017-08-15T00:29:38.000Z | 2022-02-20T14:05:29.000Z | src/SpiDriver/SdSpiSTM32F1.cpp | digitalpbk/SdFs | 190a2677d4cbc87e6062137dfb5da6b2fed2b435 | [
"MIT"
] | 8 | 2017-12-14T12:07:43.000Z | 2021-01-12T16:23:14.000Z | src/SpiDriver/SdSpiSTM32F1.cpp | digitalpbk/SdFs | 190a2677d4cbc87e6062137dfb5da6b2fed2b435 | [
"MIT"
] | 17 | 2017-09-09T08:36:18.000Z | 2021-11-27T07:41:12.000Z | /**
* Copyright (c) 20011-2017 Bill Greiman
* This file is part of the SdFs library for SD memory cards.
*
* MIT License
*
* 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 rest... | 32.645669 | 80 | 0.592137 | surgtechlab |
42e6351fb2e0e41becc6572f3364c23aa4b0ec52 | 323 | cpp | C++ | solutions/781.rabbits-in-forest.379275117.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/781.rabbits-in-forest.379275117.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/781.rabbits-in-forest.379275117.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
int numRabbits(vector<int> &answers) {
unordered_map<int, int> count;
for (int a : answers)
count[a]++;
int ans = 0;
for (auto &p : count) {
while (p.second > 0) {
ans += (p.first + 1);
p.second -= (p.first + 1);
}
}
return ans;
}
... | 17 | 40 | 0.489164 | satu0king |
42e67df334542b7ec490b2cbf614887fbc338747 | 2,297 | hpp | C++ | src/util/vector.hpp | rxnew/qc | dcb9c0d9b4347d3cc9311fee16c88a0c2dca1dce | [
"MIT"
] | null | null | null | src/util/vector.hpp | rxnew/qc | dcb9c0d9b4347d3cc9311fee16c88a0c2dca1dce | [
"MIT"
] | null | null | null | src/util/vector.hpp | rxnew/qc | dcb9c0d9b4347d3cc9311fee16c88a0c2dca1dce | [
"MIT"
] | null | null | null | #pragma once
#include <array>
#include <sstream>
namespace qc {
namespace util {
namespace vector {
template <int dim, class Real = float>
class Vector {
public:
Vector() = default;
template <class T, class... Args,
class = std::enable_if_t<!std::is_convertible<T, Vector>::value>>
Vector(T&& t, Args... | 31.902778 | 77 | 0.638224 | rxnew |
42e92981aa07dbeb3bbe3d3b8678b99df6f35373 | 1,762 | cpp | C++ | Practice/2018/2018.2.20/BZOJ1064.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.2.20/BZOJ1064.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.2.20/BZOJ1064.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=100100;
const int maxM=1001000*2;
const int inf=2147483647;
int n,m;
int edgecnt=0,Head[maxN],Next[maxM],V[maxM],W[maxM];
b... | 20.022727 | 83 | 0.563564 | SYCstudio |
42edf91c0e136c5ecca5b2d1b0aaa074e6bc097e | 7,721 | cpp | C++ | 3DEngine/Source/ModuleCamera3D.cpp | PatatesIDracs/3DGameEngine | 9bf1fbbea6c9d6f02174657ae41e01ea3a984858 | [
"MIT"
] | 4 | 2017-10-23T18:05:48.000Z | 2017-11-29T06:57:26.000Z | 3DEngine/Source/ModuleCamera3D.cpp | PatatesIDracs/3DGameEngine | 9bf1fbbea6c9d6f02174657ae41e01ea3a984858 | [
"MIT"
] | null | null | null | 3DEngine/Source/ModuleCamera3D.cpp | PatatesIDracs/3DGameEngine | 9bf1fbbea6c9d6f02174657ae41e01ea3a984858 | [
"MIT"
] | null | null | null | #include "Application.h"
#include "ModuleCamera3D.h"
#include "ModuleSceneIntro.h"
#include "ConfigJSON.h"
#include "Imgui\imgui.h"
#include "Imgui\ImGuizmo.h"
#include "Glew\include\glew.h"
ModuleCamera3D::ModuleCamera3D(Application* app, bool start_enabled) : Module(app, "Camera", start_enabled)
{
Position = vec(1... | 24.279874 | 123 | 0.652636 | PatatesIDracs |
0cd3ab4502636bbcb208be68e57b69ba78456ec5 | 606 | cc | C++ | test/client_test.cc | Tibonium/genecis | 4de1d987f5a7928b1fc3e31d2820f5d2452eb5fc | [
"BSD-2-Clause"
] | null | null | null | test/client_test.cc | Tibonium/genecis | 4de1d987f5a7928b1fc3e31d2820f5d2452eb5fc | [
"BSD-2-Clause"
] | null | null | null | test/client_test.cc | Tibonium/genecis | 4de1d987f5a7928b1fc3e31d2820f5d2452eb5fc | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include <sstream>
#include <genecis/net/genecis_server.h>
using namespace std ;
using namespace genecis::net ;
int main() {
string host = "localhost" ;
int port = 45000 ;
cout << "Creating client server..." << endl ;
genecis_server client( host, port ) ;
cout << "Connecting..." << endl ;
c... | 20.896552 | 48 | 0.590759 | Tibonium |
0cd5682ae738de1b87ea1b6937053ce8f94340df | 1,421 | cpp | C++ | Other/CampusChapter1/WASHHAND.cpp | vinaysomawat/CodeChef-Solutions | 9a0666a4f1badd593cd075f3beb05377e3c6657a | [
"MIT"
] | 1 | 2020-04-12T01:39:10.000Z | 2020-04-12T01:39:10.000Z | Other/CampusChapter1/WASHHAND.cpp | vinaysomawat/CodeChef-Solutions | 9a0666a4f1badd593cd075f3beb05377e3c6657a | [
"MIT"
] | null | null | null | Other/CampusChapter1/WASHHAND.cpp | vinaysomawat/CodeChef-Solutions | 9a0666a4f1badd593cd075f3beb05377e3c6657a | [
"MIT"
] | null | null | null | /*
Contest: CodeChef March 2020 Cook-Off challange
Problem link:https://www.codechef.com/CHPTRS01/problems/WASHHAND
GitHub Solution Repository: https://github.com/vinaysomawat/CodeChef-Solutions
Author: Vinay Somawat
Author's Webpage: http://vinaysomawat.github.io/
Author's mail: vinaysomawat@h... | 16.147727 | 82 | 0.557354 | vinaysomawat |
0cd6ebc232993072993631da2b910f095b433944 | 3,070 | hpp | C++ | include/view.hpp | procedural/d3d11_on_12 | ffede331ce53247fc66ffdfcff625c632c1dd23b | [
"MIT"
] | 157 | 2020-01-15T20:24:54.000Z | 2022-03-17T01:50:45.000Z | include/view.hpp | TheozZ79/D3D11On12 | 37048dfc43665bad3dc6642f3c3991ed0edc982b | [
"MIT"
] | 11 | 2020-03-07T08:29:05.000Z | 2022-02-01T01:25:22.000Z | include/view.hpp | TheozZ79/D3D11On12 | 37048dfc43665bad3dc6642f3c3991ed0edc982b | [
"MIT"
] | 24 | 2020-01-17T03:46:09.000Z | 2022-03-17T13:28:32.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
namespace D3D11On12
{
template< class TIface >
struct ViewTraits;
#define DECLARE_VIEW_TRAITS(View, AbbreviatedView, DDIDescType, HandleType) \
template<> struct ViewTraits<ID3D11##View> \
{ \
typ... | 52.033898 | 153 | 0.754072 | procedural |
0cdb99eedb08cdd734bf5ea831e1c149cbd336a3 | 233 | cpp | C++ | Game/Client/WXClient/Network/PacketHandler/CGModifySettingHandler.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/WXClient/Network/PacketHandler/CGModifySettingHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/WXClient/Network/PacketHandler/CGModifySettingHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "StdAfx.h"
#include "CGModifySetting.h"
uint CGModifySettingHandler::Execute( CGModifySetting* pPacket, Player* pPlayer )
{
__ENTER_FUNCTION
return PACKET_EXE_CONTINUE ;
__LEAVE_FUNCTION
return PACKET_EXE_ERROR ;
}
| 13.705882 | 81 | 0.7897 | hackerlank |
0ce14b60b5960049e45c0996398a64d404c427cd | 11,343 | cpp | C++ | library/src/conversion/rocsparse_dense2coo.cpp | scchan/rocSPARSE | 6efc875765236a91d6b07ef42446b1b46de661e0 | [
"MIT"
] | null | null | null | library/src/conversion/rocsparse_dense2coo.cpp | scchan/rocSPARSE | 6efc875765236a91d6b07ef42446b1b46de661e0 | [
"MIT"
] | null | null | null | library/src/conversion/rocsparse_dense2coo.cpp | scchan/rocSPARSE | 6efc875765236a91d6b07ef42446b1b46de661e0 | [
"MIT"
] | 1 | 2019-09-26T21:19:46.000Z | 2019-09-26T21:19:46.000Z | /*! \file */
/* ************************************************************************
* Copyright (c) 2020-2021 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Softwa... | 47.659664 | 99 | 0.385524 | scchan |
0ce8e8842221bd3d28aa1aac28d7c5e37f8d58a9 | 1,830 | hpp | C++ | bulletgba/generator/data/code/otakutwo/self-0063.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | 5 | 2020-03-24T07:44:49.000Z | 2021-08-30T14:43:31.000Z | bulletgba/generator/data/code/otakutwo/self-0063.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | bulletgba/generator/data/code/otakutwo/self-0063.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | #ifndef GENERATED_a72e55c1eeb625dca9fc19a505808a41_HPP
#define GENERATED_a72e55c1eeb625dca9fc19a505808a41_HPP
#include "bullet.hpp"
void stepfunc_c22bc11f82cdfa20eb78a2374f78cb49_bc2040b4edc291f3d17b547048b6ef88(BulletInfo *p);
void stepfunc_7b7f365efd1478dca120d8a43d514890_bc2040b4edc291f3d17b547048b6ef88(Bullet... | 63.103448 | 105 | 0.910929 | pqrs-org |
0cec24619955ad46b053f84130f41a15f5b010fe | 15,081 | cpp | C++ | plugins/csp-measurement-tools/src/PathTool.cpp | FellegaraR/cosmoscout-vr | e04e1ac9c531106693a965bb03d3064f3a6179c6 | [
"BSL-1.0",
"Apache-2.0",
"MIT"
] | 302 | 2019-03-05T08:05:03.000Z | 2022-03-16T22:35:21.000Z | plugins/csp-measurement-tools/src/PathTool.cpp | FellegaraR/cosmoscout-vr | e04e1ac9c531106693a965bb03d3064f3a6179c6 | [
"BSL-1.0",
"Apache-2.0",
"MIT"
] | 230 | 2019-07-30T13:26:09.000Z | 2022-03-11T11:21:06.000Z | plugins/csp-measurement-tools/src/PathTool.cpp | FellegaraR/cosmoscout-vr | e04e1ac9c531106693a965bb03d3064f3a6179c6 | [
"BSL-1.0",
"Apache-2.0",
"MIT"
] | 24 | 2019-07-22T08:00:49.000Z | 2022-01-25T10:55:17.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is part of CosmoScout VR //
// and may be used under the terms of the MIT license. See the LICENSE file for details. //
// ... | 36.515738 | 100 | 0.602148 | FellegaraR |
0ced9f39706658dbfb6f60608eb52a71d9d40693 | 2,068 | cpp | C++ | library/src/Wav.cpp | StratifyLabs/AudioAPI | 1c85a8ae188bc03d3699dec448bc9d6f3439e3d7 | [
"MIT"
] | null | null | null | library/src/Wav.cpp | StratifyLabs/AudioAPI | 1c85a8ae188bc03d3699dec448bc9d6f3439e3d7 | [
"MIT"
] | null | null | null | library/src/Wav.cpp | StratifyLabs/AudioAPI | 1c85a8ae188bc03d3699dec448bc9d6f3439e3d7 | [
"MIT"
] | null | null | null | // Copyright 2011-2021 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#include "audio/Wav.hpp"
using namespace audio;
using namespace fs;
Wav::Wav() : m_header({0}){}
Wav::Wav(const var::StringView path) : File(path) {
read(var::View(m_header));
}
Wav::Wav(IsOverwrite is_overwrite, const var::S... | 35.655172 | 107 | 0.651838 | StratifyLabs |
0ceeb3f3ad0db4a1d0dfb3c1253cd707a66031c3 | 683 | hpp | C++ | MPAGScipher/processCommandline.hpp | bear-cpp-course/day-1-zoulzubazz | fe88e9a38e7baf223a26d05e55ac3ac221df61a0 | [
"MIT"
] | null | null | null | MPAGScipher/processCommandline.hpp | bear-cpp-course/day-1-zoulzubazz | fe88e9a38e7baf223a26d05e55ac3ac221df61a0 | [
"MIT"
] | null | null | null | MPAGScipher/processCommandline.hpp | bear-cpp-course/day-1-zoulzubazz | fe88e9a38e7baf223a26d05e55ac3ac221df61a0 | [
"MIT"
] | null | null | null | #ifndef MPAGSCIPHER_PROCESSCOMMANDLINE_HPP
#define MPAGSCIPHER_PROCESSCOMMANDLINE_HPP
#include <string>
#include <cctype>
#include <vector>
#include <iostream>
#include "CipherMode.hpp"
/** Processes command line arguments input to the Ceaser cipher */
class ProcessCmdArgs{
public:
struct programSettings {
... | 25.296296 | 73 | 0.711567 | bear-cpp-course |
0cf050c2cabebee94460a3e8fcb72dfd1ded2988 | 780 | cpp | C++ | test/test_homo_matrix.cpp | UnknownBugs/TMATH | 043f320a6ed05459cc6de3144be8a15fcfbd0f53 | [
"MIT"
] | null | null | null | test/test_homo_matrix.cpp | UnknownBugs/TMATH | 043f320a6ed05459cc6de3144be8a15fcfbd0f53 | [
"MIT"
] | null | null | null | test/test_homo_matrix.cpp | UnknownBugs/TMATH | 043f320a6ed05459cc6de3144be8a15fcfbd0f53 | [
"MIT"
] | null | null | null | #include <iostream>
#define __INITIALIZER_LIST_HPP__
#include <matrix.hpp>
#include <homocoordinates.hpp>
#include <initializer_list>
template<typename T>
void printV(const T &v) {
for (int i = 0; i < v.size(); i++) {
std::cout << v[i] << "\t";
}
std::cout << std::endl;
}
template<typename T>
... | 17.727273 | 57 | 0.503846 | UnknownBugs |
0cf0ff109567188005ff55bd42571bd60a74e684 | 5,285 | hpp | C++ | src/main/include/cyng/core/wrapper.hpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | src/main/include/cyng/core/wrapper.hpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | src/main/include/cyng/core/wrapper.hpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 Sylko Olzscher
*
*/
#ifndef CYNG_CORE_WRAPPER_HPP
#define CYNG_CORE_WRAPPER_HPP
#include <CYNG_project_info.h>
#include <cyng/compatibility/legacy_mode.hpp>
#include <cyng/core/object_interface.h>
#include <cyng/object.h>
#include <cyng/core/class_impl.hpp>
#i... | 21.396761 | 75 | 0.620814 | solosTec |
0cfa9fedbc74b618962d5a977d4370697bb70564 | 780 | hpp | C++ | libraries/chain/include/scorum/chain/operation_notification.hpp | scorum/scorum | 1da00651f2fa14bcf8292da34e1cbee06250ae78 | [
"MIT"
] | 53 | 2017-10-28T22:10:35.000Z | 2022-02-18T02:20:48.000Z | libraries/chain/include/scorum/chain/operation_notification.hpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 38 | 2017-11-25T09:06:51.000Z | 2018-10-31T09:17:22.000Z | libraries/chain/include/scorum/chain/operation_notification.hpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 27 | 2018-01-08T19:43:35.000Z | 2022-01-14T10:50:42.000Z | #pragma once
#include <scorum/chain/schema/scorum_object_types.hpp>
#include <scorum/protocol/operations.hpp>
namespace scorum {
namespace chain {
struct operation_notification
{
operation_notification(protocol::transaction_id_type trx_id,
uint32_t block,
uin... | 24.375 | 64 | 0.605128 | scorum |
0cfd9925e02970866f1d616127bc3a8588a2b411 | 5,230 | cc | C++ | src/api/auto_updater/api_auto_updater.cc | jtg-gg/node-webkit | bf309df6ccb7743f6211e5bcb109bb0fdf0ac294 | [
"MIT"
] | 27 | 2015-03-11T10:04:08.000Z | 2017-12-09T18:34:11.000Z | src/api/auto_updater/api_auto_updater.cc | jtg-gg/node-webkit | bf309df6ccb7743f6211e5bcb109bb0fdf0ac294 | [
"MIT"
] | null | null | null | src/api/auto_updater/api_auto_updater.cc | jtg-gg/node-webkit | bf309df6ccb7743f6211e5bcb109bb0fdf0ac294 | [
"MIT"
] | 7 | 2015-08-12T05:15:39.000Z | 2016-12-15T04:11:03.000Z | // Copyright (c) 2014 Jefry Tedjokusumo <jtg_gg@yahoo.com.sg>
//
// 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, c... | 40.859375 | 102 | 0.682218 | jtg-gg |
4906612fb7ee9dda4e91807a359f35958641ea5a | 4,618 | cxx | C++ | plugins/data/modules/rectilinear_grid_to_image/rectilinear_grid_to_image.cxx | moritz-h/ParaView-Plugins | b32e5dc4e710b25dc3f00b87a616e954d8549002 | [
"MIT"
] | null | null | null | plugins/data/modules/rectilinear_grid_to_image/rectilinear_grid_to_image.cxx | moritz-h/ParaView-Plugins | b32e5dc4e710b25dc3f00b87a616e954d8549002 | [
"MIT"
] | null | null | null | plugins/data/modules/rectilinear_grid_to_image/rectilinear_grid_to_image.cxx | moritz-h/ParaView-Plugins | b32e5dc4e710b25dc3f00b87a616e954d8549002 | [
"MIT"
] | 1 | 2021-02-22T16:27:28.000Z | 2021-02-22T16:27:28.000Z | #include "rectilinear_grid_to_image.h"
#include "common/checks.h"
#include "vtkCellData.h"
#include "vtkDataArray.h"
#include "vtkFieldData.h"
#include "vtkImageData.h"
#include "vtkInformation.h"
#include "vtkInformationVector.h"
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
#include "vtkRectilinearGrid.h"... | 30.993289 | 161 | 0.67042 | moritz-h |
490ac8955842cc316bdd2c92b6e90afcec944db5 | 892 | cpp | C++ | test/either/object.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | test/either/object.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | test/either/object.cpp | 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)
#include <fcppt/either/object.hpp>
#include <fcppt/config/external_begin.hpp>
#include <catch2/cat... | 13.313433 | 61 | 0.619955 | pmiddend |
490b610e09bac10f7383756124e594ca378c1537 | 3,721 | cpp | C++ | src/transport/websocket/WsFrame.cpp | xDimon/primitive | 092e9158444710cdde45c57c4115efa06c85e161 | [
"Apache-2.0"
] | 12 | 2017-09-12T20:47:16.000Z | 2019-04-05T11:39:40.000Z | src/transport/websocket/WsFrame.cpp | xDimon/primitive | 092e9158444710cdde45c57c4115efa06c85e161 | [
"Apache-2.0"
] | null | null | null | src/transport/websocket/WsFrame.cpp | xDimon/primitive | 092e9158444710cdde45c57c4115efa06c85e161 | [
"Apache-2.0"
] | 1 | 2018-11-23T16:51:55.000Z | 2018-11-23T16:51:55.000Z | // Copyright © 2017-2019 Dmitriy Khaustov
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... | 21.022599 | 101 | 0.604139 | xDimon |
490b69a7d63573e84afe1e53cba007ee4d383ff5 | 523 | hpp | C++ | src/headers/universal_ref.hpp | HrvojeFER/cpp_bench | f3657e58255b14ff256a4a892c790bd813fab850 | [
"MIT"
] | null | null | null | src/headers/universal_ref.hpp | HrvojeFER/cpp_bench | f3657e58255b14ff256a4a892c790bd813fab850 | [
"MIT"
] | null | null | null | src/headers/universal_ref.hpp | HrvojeFER/cpp_bench | f3657e58255b14ff256a4a892c790bd813fab850 | [
"MIT"
] | null | null | null | enum class ref_type_t
{
lvalue,
rvalue,
value
};
template <typename T>
constexpr inline ref_type_t get_ref_type(T &&of) noexcept
{
if constexpr (std::is_rvalue_reference_v<T>)
return ref_type_t::rvalue;
else if constexpr (std::is_lvalue_reference_v<T>)
return ref_type_t::lvalue;
... | 20.92 | 57 | 0.688337 | HrvojeFER |
49154c2311e38eb121bc44a1aec5ebfef7431758 | 2,270 | cpp | C++ | test/peer/test_peer_manager.cpp | EPI-ONE/epic | c314cab526641c00d49e51e08ec0793f1a6c171b | [
"MIT"
] | 24 | 2019-10-14T14:35:32.000Z | 2021-11-28T02:06:26.000Z | test/peer/test_peer_manager.cpp | EPI-ONE/epic | c314cab526641c00d49e51e08ec0793f1a6c171b | [
"MIT"
] | 3 | 2019-10-14T14:29:07.000Z | 2020-01-21T14:48:49.000Z | test/peer/test_peer_manager.cpp | EPI-ONE/epic | c314cab526641c00d49e51e08ec0793f1a6c171b | [
"MIT"
] | 4 | 2020-04-09T09:12:50.000Z | 2021-06-15T13:41:42.000Z | // Copyright (c) 2019 EPI-ONE Core Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <gtest/gtest.h>
#include "peer_manager.h"
#include "test_env.h"
class TestPeerManager : public testing::Test {
public:
... | 27.02381 | 70 | 0.673128 | EPI-ONE |
491598848f75b9bb37ca887549d71920846aebbc | 240 | cpp | C++ | [Lib]__RanClientUI/Sources/InnerUI/PrivateMarketShow.cpp | yexiuph/RanOnline | 7f7be07ef740c8e4cc9c7bef1790b8d099034114 | [
"Apache-2.0"
] | null | null | null | [Lib]__RanClientUI/Sources/InnerUI/PrivateMarketShow.cpp | yexiuph/RanOnline | 7f7be07ef740c8e4cc9c7bef1790b8d099034114 | [
"Apache-2.0"
] | null | null | null | [Lib]__RanClientUI/Sources/InnerUI/PrivateMarketShow.cpp | yexiuph/RanOnline | 7f7be07ef740c8e4cc9c7bef1790b8d099034114 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "PrivateMarketShow.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
CPrivateMarketShow::CPrivateMarketShow ()
: m_dwGaeaID ( UINT_MAX )
, m_bUsedMemPool( false )
{
}
CPrivateMarketShow::~CPrivateMarketShow ()
{
} | 15 | 42 | 0.745833 | yexiuph |
491bcc4eb54adf38abd2bdd60824f3e756aa77ab | 524 | cpp | C++ | Source/VSDKInputPlugin/Interactions/InteractableComponent.cpp | charles-river-analytics/VSDK-Unreal | 0f99ec140f6d6660a09148163bdd006c5ecc67d5 | [
"MIT"
] | 3 | 2021-05-26T14:12:01.000Z | 2022-01-09T01:15:12.000Z | Source/VSDKInputPlugin/Interactions/InteractableComponent.cpp | charles-river-analytics/VSDK-Unreal | 0f99ec140f6d6660a09148163bdd006c5ecc67d5 | [
"MIT"
] | null | null | null | Source/VSDKInputPlugin/Interactions/InteractableComponent.cpp | charles-river-analytics/VSDK-Unreal | 0f99ec140f6d6660a09148163bdd006c5ecc67d5 | [
"MIT"
] | null | null | null | // Copyright 2020 Charles River Analytics, Inc. All Rights Reserved.
#include "InteractableComponent.h"
UInteractableComponent::UInteractableComponent()
{
bIsComponentActive = false;
InteractableObject = Cast<AInteractableObject>(GetOwner());
}
void UInteractableComponent::BeginPlay()
{
Super::BeginPlay();
}
FN... | 20.153846 | 68 | 0.795802 | charles-river-analytics |
491efd93876ce5b551222828e827983764b44f44 | 3,797 | cpp | C++ | main.cpp | TheQuantumPhysicist/HttpRpcRelay | 810d9ed8907b4c769faa432ba7f829445b8d6f9f | [
"MIT"
] | null | null | null | main.cpp | TheQuantumPhysicist/HttpRpcRelay | 810d9ed8907b4c769faa432ba7f829445b8d6f9f | [
"MIT"
] | null | null | null | main.cpp | TheQuantumPhysicist/HttpRpcRelay | 810d9ed8907b4c769faa432ba7f829445b8d6f9f | [
"MIT"
] | null | null | null | #include "Logging/DefaultLogger.h"
#include "Relay/JsonRpcRelay.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include <atomic>
#include <boost/program_options.hpp>
#include <cstdlib>
#include <thread>
#include <vector>
std::atomic<bool> g_ShutdownProgram{false};
void interrupt_handler(int)
{
if (!g_ShutdownPro... | 36.864078 | 174 | 0.622597 | TheQuantumPhysicist |
492089b402c774f2fd897795f4a392beefdd1350 | 2,476 | cpp | C++ | libmoon/deps/MoonState/deps/AstraeusVPN/src/dtlsClientSpam.cpp | anonReview/Implementation | b86e0c48a1a9183a143687a2875b160504bcb202 | [
"MIT"
] | null | null | null | libmoon/deps/MoonState/deps/AstraeusVPN/src/dtlsClientSpam.cpp | anonReview/Implementation | b86e0c48a1a9183a143687a2875b160504bcb202 | [
"MIT"
] | null | null | null | libmoon/deps/MoonState/deps/AstraeusVPN/src/dtlsClientSpam.cpp | anonReview/Implementation | b86e0c48a1a9183a143687a2875b160504bcb202 | [
"MIT"
] | 1 | 2020-08-14T02:53:20.000Z | 2020-08-14T02:53:20.000Z | #include <array>
#include <cerrno>
#include <cstdlib>
#include <iostream>
#include <stdexcept>
#include <string>
#include <unordered_map>
#include <arpa/inet.h>
#include <cstring>
#include <signal.h>
#include <sys/select.h>
#include <unistd.h>
#include "common.hpp"
#include "dtls.hpp"
#include "tap.hpp"
using namesp... | 22.715596 | 91 | 0.651454 | anonReview |
4924694af36a1abdb478c850a1ac12136321b7ba | 2,716 | cpp | C++ | WinGUI/add35mmFocalLengthGUI.cpp | devil-tamachan/add35mmFocalLength | 01b084c2421fb75483350a17ed2b7fb1d45bbdf4 | [
"BSD-3-Clause"
] | 2 | 2018-06-13T18:17:26.000Z | 2019-01-06T16:30:19.000Z | WinGUI/add35mmFocalLengthGUI.cpp | devil-tamachan/add35mmFocalLength | 01b084c2421fb75483350a17ed2b7fb1d45bbdf4 | [
"BSD-3-Clause"
] | null | null | null | WinGUI/add35mmFocalLengthGUI.cpp | devil-tamachan/add35mmFocalLength | 01b084c2421fb75483350a17ed2b7fb1d45bbdf4 | [
"BSD-3-Clause"
] | null | null | null | /*
licenced by New BSD License
Copyright (c) 2014, devil.tamachan@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 the above copyright
not... | 34.820513 | 109 | 0.764359 | devil-tamachan |
492fc81cc8c20851bfaeb5d2c5161934aa6789cd | 533 | cpp | C++ | src/debug_gui/column.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/debug_gui/column.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/debug_gui/column.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #include "column.hpp"
#include "../imgui/imgui.h"
#include "lubee/src/error.hpp"
namespace rev {
namespace debug {
ColumnPush::ColumnPush(const int n, const bool border):
_prev(ImGui::GetColumnsCount()),
_n(n)
{
if(_prev > 1)
ImGui::Columns(1);
if(n > 1)
ImGui::Columns(n, nullptr, border);
}... | 17.766667 | 57 | 0.596623 | degarashi |
493756ad5a8ab388429b34ed5c3a39ec5f7d9d04 | 7,406 | cpp | C++ | src/runtime/type/ucase.cpp | sparkoss/ccm | 9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d | [
"Apache-2.0"
] | 6 | 2018-05-08T10:08:21.000Z | 2021-11-13T13:22:58.000Z | src/runtime/type/ucase.cpp | sparkoss/ccm | 9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d | [
"Apache-2.0"
] | 1 | 2018-05-08T10:20:17.000Z | 2018-07-23T05:19:19.000Z | src/runtime/type/ucase.cpp | sparkoss/ccm | 9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d | [
"Apache-2.0"
] | 4 | 2018-03-13T06:21:11.000Z | 2021-06-19T02:48:07.000Z | //=========================================================================
// Copyright (C) 2018 The C++ Component Model(CCM) 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 Lic... | 30.858333 | 91 | 0.588172 | sparkoss |
4944dbf6a3aeeb2653e538c5147f76c291046b35 | 3,063 | cpp | C++ | Terrain/worldMap.cpp | marcgpuig/FrozenEngine | 0abb8a15bc68efff8865f06523bc1d7b6f255175 | [
"MIT"
] | 2 | 2021-02-05T17:26:26.000Z | 2022-02-16T06:18:04.000Z | Terrain/worldMap.cpp | marcgpuig/FrozenEngine | 0abb8a15bc68efff8865f06523bc1d7b6f255175 | [
"MIT"
] | null | null | null | Terrain/worldMap.cpp | marcgpuig/FrozenEngine | 0abb8a15bc68efff8865f06523bc1d7b6f255175 | [
"MIT"
] | null | null | null | #include "worldMap.h"
#include "chunk.h"
//imgui
#include "ImGui/imgui.h"
#include "ImGui/examples/opengl3_example/imgui_impl_glfw_gl3.h"
static terraGen terrainGenerator;
worldMap::worldMap(uint8_t _width = 1, uint8_t _height = 1) : width(_width), height(_height)
{
for (int i = 0; i < width; ++i)
{
for (int j = ... | 28.626168 | 146 | 0.658831 | marcgpuig |
494570ced3afddbcc579870806960c74d093f9da | 1,896 | hpp | C++ | include/utils/Tracer.hpp | alexbatashev/pi_reproduce | 7129111ff80b9d76e4dfad26f1f2b67ef3826e52 | [
"Apache-2.0"
] | null | null | null | include/utils/Tracer.hpp | alexbatashev/pi_reproduce | 7129111ff80b9d76e4dfad26f1f2b67ef3826e52 | [
"Apache-2.0"
] | 4 | 2021-07-05T12:14:37.000Z | 2021-07-29T18:39:42.000Z | include/utils/Tracer.hpp | alexbatashev/pi_reproduce | 7129111ff80b9d76e4dfad26f1f2b67ef3826e52 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "utils/RTTI.hpp"
#include <functional>
#include <memory>
#include <span>
#include <string_view>
namespace dpcpp_trace {
namespace detail {
class NativeTracerImpl;
}
class OpenHandler {
public:
virtual void replaceFilename(std::string_view newFile) const = 0;
virtual ~OpenHandler() = defaul... | 24 | 79 | 0.698312 | alexbatashev |
49486d9cbcada57137cc827b5757b6a799b1d357 | 1,557 | cc | C++ | elements/local.bak/forceip.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | elements/local.bak/forceip.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | elements/local.bak/forceip.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | /*
* ForceIP.{cc,hh} -- element encapsulates packet in IP header
* Robert Morris
*
* Copyright (c) 1999-2000 Massachusetts Institute of Technology
*
* 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... | 24.714286 | 77 | 0.69878 | MacWR |
494d3e3960cf5a8bf95286c814c6915abf683974 | 9,718 | cpp | C++ | NWNXLib/API/Mac/API/CExoFileInternal.cpp | Qowyn/unified | 149d0b7670a9d156e64555fe0bd7715423db4c2a | [
"MIT"
] | null | null | null | NWNXLib/API/Mac/API/CExoFileInternal.cpp | Qowyn/unified | 149d0b7670a9d156e64555fe0bd7715423db4c2a | [
"MIT"
] | null | null | null | NWNXLib/API/Mac/API/CExoFileInternal.cpp | Qowyn/unified | 149d0b7670a9d156e64555fe0bd7715423db4c2a | [
"MIT"
] | null | null | null | #include "CExoFileInternal.hpp"
#include "API/Functions.hpp"
#include "Platform/ASLR.hpp"
namespace NWNXLib {
namespace API {
CExoFileInternal::CExoFileInternal(const CExoString& a0, const CExoString& a1)
{
CExoFileInternal__CExoFileInternalCtor__0(this, a0, a1);
}
CExoFileInternal::CExoFileInternal(const void*... | 35.727941 | 130 | 0.777526 | Qowyn |
49510d17a15d28945d0ca01c4866cd1238212a12 | 534 | cpp | C++ | Code/1005.cpp | sunruisjtu2020/POJ_Submits | 786161a5bc297ef7a2457951341e45ea31b6a481 | [
"MIT"
] | 1 | 2022-03-29T11:38:18.000Z | 2022-03-29T11:38:18.000Z | Code/1005.cpp | sunruisjtu2020/POJ_Submits | 786161a5bc297ef7a2457951341e45ea31b6a481 | [
"MIT"
] | null | null | null | Code/1005.cpp | sunruisjtu2020/POJ_Submits | 786161a5bc297ef7a2457951341e45ea31b6a481 | [
"MIT"
] | null | null | null | /*
* Problem 1005 - I Think I Need a Houseboat
* http://poj.org/problem?id=1005
* Date 3/30/2022
* Accepted
* MATH - Floating Numbers
*/
#include <cstdio>
#include <cmath>
const double pi = 3.14159265358979;
int n;
double x, y;
int main() {
scanf("%d", &n);
for(int i = 1; i <= n; ++i) {
scanf("%lf%lf", &x, &y);... | 18.413793 | 80 | 0.593633 | sunruisjtu2020 |
49513be5f83ef9f2046f88279209ca47c4a095b9 | 8,006 | cc | C++ | cpp/src/external/xpdf/xpdf/xpdf/pdftotext.cc | Mosaic-DigammaDB/HandbookPragmatics | 55399bb16362f90e26626704f8563fd6d7c0a1f9 | [
"BSL-1.0"
] | 1 | 2019-04-15T08:44:13.000Z | 2019-04-15T08:44:13.000Z | cpp/src/external/xpdf/xpdf/xpdf/pdftotext.cc | Mosaic-DigammaDB/HandbookPragmatics | 55399bb16362f90e26626704f8563fd6d7c0a1f9 | [
"BSL-1.0"
] | 1 | 2018-11-13T17:41:46.000Z | 2018-11-13T20:54:38.000Z | cpp/src/external/xpdf/xpdf/xpdf/pdftotext.cc | Mosaic-DigammaDB/HandbookPragmatics | 55399bb16362f90e26626704f8563fd6d7c0a1f9 | [
"BSL-1.0"
] | 1 | 2018-11-13T16:43:10.000Z | 2018-11-13T16:43:10.000Z | //========================================================================
//
// pdftotext.cc
//
// Copyright 1997-2013 Glyph & Cog, LLC
//
//========================================================================
#include <aconf.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#ifdef... | 28.390071 | 74 | 0.631526 | Mosaic-DigammaDB |
49514d067e943b8241e816096871f932e7508b31 | 12,102 | cpp | C++ | src/ui-win/manip/ManipAttrDragXy.cpp | steptosky/3DsMax-X-Obj-Exporter | c70f5a60056ee71aba1569f1189c38b9e01d2f0e | [
"BSD-3-Clause"
] | 20 | 2017-07-07T06:07:30.000Z | 2022-03-09T12:00:57.000Z | src/ui-win/manip/ManipAttrDragXy.cpp | steptosky/3DsMax-X-Obj-Exporter | c70f5a60056ee71aba1569f1189c38b9e01d2f0e | [
"BSD-3-Clause"
] | 28 | 2017-07-07T06:08:27.000Z | 2022-03-09T12:09:23.000Z | src/ui-win/manip/ManipAttrDragXy.cpp | steptosky/3DsMax-X-Obj-Exporter | c70f5a60056ee71aba1569f1189c38b9e01d2f0e | [
"BSD-3-Clause"
] | 7 | 2018-01-24T19:43:22.000Z | 2020-01-06T00:05:40.000Z | /*
** Copyright(C) 2017, StepToSky
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are met:
**
** 1.Redistributions of source code must retain the above copyright notice, this
** list of conditions and the following di... | 40.885135 | 145 | 0.44943 | steptosky |
49517757fa5cd6fe1f5f7099a366950e29099e73 | 28 | cpp | C++ | ReferenceDesign/SampleQTHMI/HMIFrameWork/log_interface.cpp | zenghuan1/HMI_SDK_LIB | d0d03af04abe07f5ca087cabcbb1e4f4858f266a | [
"BSD-3-Clause"
] | 8 | 2019-01-04T10:08:39.000Z | 2021-12-13T16:34:08.000Z | ReferenceDesign/SampleQTHMI/HMIFrameWork/log_interface.cpp | zenghuan1/HMI_SDK_LIB | d0d03af04abe07f5ca087cabcbb1e4f4858f266a | [
"BSD-3-Clause"
] | 33 | 2017-07-27T09:51:59.000Z | 2018-07-13T09:45:52.000Z | ReferenceDesign/SampleQTHMI/HMIFrameWork/log_interface.cpp | JH-G/HMI_SDK_LIB | caa4eac66d1f3b76349ef5d6ca5cf7dd69fcd760 | [
"BSD-3-Clause"
] | 12 | 2017-07-28T02:54:53.000Z | 2022-02-20T15:48:24.000Z | #include "log_interface.h"
| 9.333333 | 26 | 0.75 | zenghuan1 |
49557dd655167dfb1ab6cdeac085aba0a8e3e5fd | 992 | cpp | C++ | src/CaptureScreen/captureScreen.cpp | HalZhan/imager | 90bd14604c87a980a1a7734f3df180571847b57e | [
"MIT"
] | null | null | null | src/CaptureScreen/captureScreen.cpp | HalZhan/imager | 90bd14604c87a980a1a7734f3df180571847b57e | [
"MIT"
] | null | null | null | src/CaptureScreen/captureScreen.cpp | HalZhan/imager | 90bd14604c87a980a1a7734f3df180571847b57e | [
"MIT"
] | null | null | null | #include <node.h>
#include <iostream>
#include "CaptureScreen.h"
namespace imager {
using v8::FunctionCallbackInfo;
using v8::Isolate;
using v8::Local;
using v8::Object;
using v8::String;
using v8::Value;
// string to char *
char *To_CharP(Local<Value> val) {
String::Utf8Value utf8_value(val->ToString());
... | 23.619048 | 64 | 0.678427 | HalZhan |
4955c039b3bb3dc50f754754f259b52701fb26c7 | 3,520 | hxx | C++ | src/helperFunctions.hxx | mkuczyns/VTK_visualization | 68e2fca878bfa233e2c0e69c8f82c39c9da4f046 | [
"MIT"
] | null | null | null | src/helperFunctions.hxx | mkuczyns/VTK_visualization | 68e2fca878bfa233e2c0e69c8f82c39c9da4f046 | [
"MIT"
] | null | null | null | src/helperFunctions.hxx | mkuczyns/VTK_visualization | 68e2fca878bfa233e2c0e69c8f82c39c9da4f046 | [
"MIT"
] | null | null | null | /****************************************************************************
* helperFunctions.hxx
*
* Created by: Michael Kuczynski
* Created on: 19/01/2019
* Description: Definition of additional classes and functions
* used by the main program.
**********************************... | 27.936508 | 84 | 0.63125 | mkuczyns |
49585c3d858c9f406bbe22ce62befac55dfbb2f7 | 10,238 | cpp | C++ | src/Graph.cpp | RobertStivanson/CPP-Graph | 07a0d8cb3860986c3257285ee02e184352ca5bfe | [
"MIT"
] | null | null | null | src/Graph.cpp | RobertStivanson/CPP-Graph | 07a0d8cb3860986c3257285ee02e184352ca5bfe | [
"MIT"
] | null | null | null | src/Graph.cpp | RobertStivanson/CPP-Graph | 07a0d8cb3860986c3257285ee02e184352ca5bfe | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include "UnionFind.h"
#include "Heap.h"
#include "Graph.h"
//Default constructor
Graph::Graph() {
Clear();
return;
}
// GetNumVertices
// Returns the number of vertices in the graph
int Graph::GetNumVertices() const {
return vertices;
}
// GetNumEdges
// Returns the number of... | 25.341584 | 88 | 0.659113 | RobertStivanson |
495a23c8602085bc502de9aeef2d96c9e6ddfc65 | 369 | cxx | C++ | @test/remove_cv_t.cxx | mojo-runtime/lib-std | 35178964db5b51184f35447f33c379de9768b534 | [
"MIT"
] | null | null | null | @test/remove_cv_t.cxx | mojo-runtime/lib-std | 35178964db5b51184f35447f33c379de9768b534 | [
"MIT"
] | null | null | null | @test/remove_cv_t.cxx | mojo-runtime/lib-std | 35178964db5b51184f35447f33c379de9768b534 | [
"MIT"
] | null | null | null | #include "../is_same.hxx"
#include "../remove_cv_t.hxx"
static_assert(std::is_same<std::remove_cv_t< int>, int>(), "");
static_assert(std::is_same<std::remove_cv_t<const int>, int>(), "");
static_assert(std::is_same<std::remove_cv_t< volatile int>, int>(), "");
static_assert(std::is_same<st... | 46.125 | 77 | 0.639566 | mojo-runtime |
495ffde72df16e3872d0e947c9180005b17bdaf6 | 2,163 | hpp | C++ | TemporaryNameRenderer/camera.hpp | Cake42/RTN-Renderer | 57fe8353550fd8019a92caa0b7485faea26e03f0 | [
"MIT"
] | 1 | 2019-11-19T22:19:15.000Z | 2019-11-19T22:19:15.000Z | TemporaryNameRenderer/camera.hpp | Cake42/RTN-Renderer | 57fe8353550fd8019a92caa0b7485faea26e03f0 | [
"MIT"
] | null | null | null | TemporaryNameRenderer/camera.hpp | Cake42/RTN-Renderer | 57fe8353550fd8019a92caa0b7485faea26e03f0 | [
"MIT"
] | null | null | null | #pragma once
#ifndef CAMERA_HPP
#define CAMERA_HPP
#include <crt/host_defines.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/vec3.hpp>
#include "let.hpp"
#include "ray.hpp"
#include "utility.hpp"
namespace rtn
{
struct camera
{
float const fov;
float const width;
float const height;
union
... | 20.6 | 59 | 0.566805 | Cake42 |
49669e0543f6247c09e613667acf65707876ebf1 | 997 | cpp | C++ | src/arken/digest/md5/qt.cpp | charonplatform/charonplatform | ba5f711b2f8a8da760ccb71925d21a53f3255817 | [
"BSD-3-Clause"
] | 1 | 2018-01-26T14:54:27.000Z | 2018-01-26T14:54:27.000Z | src/arken/digest/md5/qt.cpp | arken-dev/arken | ba5f711b2f8a8da760ccb71925d21a53f3255817 | [
"BSD-3-Clause"
] | null | null | null | src/arken/digest/md5/qt.cpp | arken-dev/arken | ba5f711b2f8a8da760ccb71925d21a53f3255817 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Arken Platform 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 <cstring>
#include <arken/base>
#include <QCryptographicHash>
using namespace arken::digest;
char * md5::hash(const char * hash)
{
r... | 22.659091 | 103 | 0.674022 | charonplatform |
4969dcb431befa1db3e933750f5a1332cc803126 | 24,584 | cp | C++ | Win32/Sources/Formatting/CDisplayFormatter.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Win32/Sources/Formatting/CDisplayFormatter.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Win32/Sources/Formatting/CDisplayFormatter.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007-2009 Cyrus Daboo. 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
... | 25.555094 | 136 | 0.659819 | mulberry-mail |
496f5b667b8af29e8cdd4f55bd1d616ec3a27afb | 676 | hpp | C++ | fmo-cpp/android/env.hpp | sverbach/fmo-android | b4957ea51a4e0df6dc5315eaaf16b73c954d16a4 | [
"MIT"
] | 37 | 2019-03-11T09:08:20.000Z | 2022-02-26T19:01:51.000Z | fmo-cpp/android/env.hpp | sverbach/fmo-android | b4957ea51a4e0df6dc5315eaaf16b73c954d16a4 | [
"MIT"
] | 83 | 2020-09-22T09:04:38.000Z | 2021-06-10T16:15:17.000Z | fmo-cpp/android/env.hpp | sverbach/fmo-android | b4957ea51a4e0df6dc5315eaaf16b73c954d16a4 | [
"MIT"
] | 10 | 2020-06-29T03:22:28.000Z | 2021-10-01T15:28:25.000Z | #ifndef FMO_ANDROID_ENV_HPP
#define FMO_ANDROID_ENV_HPP
#include "java_interface.hpp"
#include <fmo/assert.hpp>
struct Env {
Env(const Env&) = delete;
Env& operator=(const Env&) = delete;
Env(JavaVM* vm, const char* threadName) : mVM(vm) {
JavaVMAttachArgs args = {JNI_VERSION_1_6, threadName, nu... | 22.533333 | 71 | 0.655325 | sverbach |
497560e68d677ab7f2476dfe7844d75de90e23f5 | 560 | cpp | C++ | dp/linear_dp/demo/acwing896.cpp | Fanjunmin/algorithm-template | db0d37a7c9c37ee9a167918fb74b03d1d09b6fad | [
"MIT"
] | 1 | 2021-04-26T11:03:04.000Z | 2021-04-26T11:03:04.000Z | dp/linear_dp/demo/acwing896.cpp | Fanjunmin/algrithm-template | db0d37a7c9c37ee9a167918fb74b03d1d09b6fad | [
"MIT"
] | null | null | null | dp/linear_dp/demo/acwing896.cpp | Fanjunmin/algrithm-template | db0d37a7c9c37ee9a167918fb74b03d1d09b6fad | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
const int N = 1e5 + 10;
int a[N];
int q[N]; //q[k]表示长度为k的上升子序列中的最小的末尾元素的值
int n;
int main()
{
cin >> n;
for (int i = 0; i < n; ++i) cin >> a[i];
int k = 0;
for (int i = 0; i < n; ++i) {
int l = 0, r = k;
while (l < r) {
// 二分查找q[N]中... | 21.538462 | 44 | 0.4 | Fanjunmin |
4977c74cc7e38ed67d7ef872e19d00330d07fe1a | 3,491 | cpp | C++ | src/main/laserAblationTest.cpp | fpancald/EpiScale_CrossSection | d7d941a18edf5d9cd6419bc772e72645f30e8eef | [
"MIT"
] | null | null | null | src/main/laserAblationTest.cpp | fpancald/EpiScale_CrossSection | d7d941a18edf5d9cd6419bc772e72645f30e8eef | [
"MIT"
] | 5 | 2018-10-11T23:43:01.000Z | 2020-05-08T13:37:07.000Z | src/main/laserAblationTest.cpp | arame002/EpiScale_Signal | 5215fd35ae60ad47b23fd36d94e68b4cf463f8f4 | [
"MIT"
] | 7 | 2018-06-14T23:42:28.000Z | 2019-12-13T22:04:07.000Z | //============================================================================
// Name : MeshGen.cpp
// Author : Wenzhao Sun
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
... | 30.893805 | 80 | 0.708679 | fpancald |
4978a37fbb3d51d260094d41d175bdf941c08a8c | 1,133 | cpp | C++ | src/exceptions.cpp | olivia76/cpp-sas7bdat | 1cd22561a13ee3df6bcec0b057f928de2014b81f | [
"Apache-2.0"
] | 4 | 2021-12-23T13:24:03.000Z | 2022-02-24T10:20:12.000Z | src/exceptions.cpp | olivia76/cpp-sas7bdat | 1cd22561a13ee3df6bcec0b057f928de2014b81f | [
"Apache-2.0"
] | 6 | 2022-02-23T14:05:53.000Z | 2022-03-17T13:47:46.000Z | src/exceptions.cpp | olivia76/cpp-sas7bdat | 1cd22561a13ee3df6bcec0b057f928de2014b81f | [
"Apache-2.0"
] | null | null | null | /**
* \file src/exceptions.cpp
*
* \brief Exceptions
*
* \author Olivia Quinet
*/
#include "exceptions.hpp"
#include <fmt/core.h>
#include <spdlog/spdlog.h>
#include <stdexcept>
namespace cppsas7bdat {
void raise_exception(const std::string &_msg) {
spdlog::critical(_msg);
throw std::runtime_error(_msg);... | 25.75 | 77 | 0.714916 | olivia76 |
497c3ac096c6c7ca6d30406201a74908ad0d485f | 32,980 | hpp | C++ | contrib/autoboost/autoboost/concept_check.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/concept_check.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/concept_check.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | //
// (C) Copyright Jeremy Siek 2000.
// Copyright 2002 The Trustees of Indiana University.
//
// 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)
//
// Revision History:
// 05 May 2001: Workarounds for HP aCC fr... | 30.368324 | 117 | 0.636234 | CaseyCarter |
21aa5f2c627281b7fa8f2ba357f2b17908670492 | 800 | cpp | C++ | src/Texture.cpp | TaniyaPeters/BorealEngine | 57937d0ec5476de0383f4cd1336b307a8a1f5434 | [
"Apache-2.0"
] | 1 | 2021-05-25T23:59:41.000Z | 2021-05-25T23:59:41.000Z | src/Texture.cpp | TaniyaPeters/BorealEngine | 57937d0ec5476de0383f4cd1336b307a8a1f5434 | [
"Apache-2.0"
] | null | null | null | src/Texture.cpp | TaniyaPeters/BorealEngine | 57937d0ec5476de0383f4cd1336b307a8a1f5434 | [
"Apache-2.0"
] | null | null | null | #include "Texture.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "glad/glad.h"
namespace Boreal {
Texture::Texture(const char* texturePath) {
unsigned char* data = stbi_load(texturePath, &m_Width, &m_Height, &m_Channels, 0);
glGenTextures(1, &m_Texture);
Bind();
glTexImage2D(GL_TEXTURE_2D... | 26.666667 | 97 | 0.745 | TaniyaPeters |
21b1a792729f667935a9f3968b1e4555bc2ccc6c | 5,449 | cpp | C++ | src/sound/iremga20.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 8 | 2020-05-01T15:15:16.000Z | 2021-05-30T18:49:15.000Z | src/sound/iremga20.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | null | null | null | src/sound/iremga20.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 5 | 2020-05-07T18:38:11.000Z | 2021-08-03T12:57:41.000Z | /*********************************************************
Irem GA20 PCM Sound Chip
It's not currently known whether this chip is stereo.
Revisions:
04-15-2002 Acho A. Tang
- rewrote channel mixing
- added prelimenary volume and sample rate emulation
05-30-2002 Acho A. Tang
- applied hyperbolic gain control to vo... | 21.285156 | 93 | 0.653514 | gameblabla |
21b893a2df1e2252ee19db53c52c3fc8d8f72774 | 404 | cpp | C++ | src/archt/processor_status.cpp | omecamtiv/mos6502emu | ff4a77638c41dcc3726f8f7e78637639a66f9c6c | [
"MIT"
] | null | null | null | src/archt/processor_status.cpp | omecamtiv/mos6502emu | ff4a77638c41dcc3726f8f7e78637639a66f9c6c | [
"MIT"
] | null | null | null | src/archt/processor_status.cpp | omecamtiv/mos6502emu | ff4a77638c41dcc3726f8f7e78637639a66f9c6c | [
"MIT"
] | null | null | null | #include "processor_status.hpp"
#include "bit_width.hpp"
ProcessorStatus::ProcessorStatus() {
StatusFlag.C = 0;
StatusFlag.Z = 0;
StatusFlag.I = 0;
StatusFlag.D = 0;
StatusFlag.B = 0;
StatusFlag.U = 0;
StatusFlag.V = 0;
StatusFlag.N = 0;
}
void ProcessorStatus::setPS(sByte byte) {
Status = (uByte)byte;
Sta... | 17.565217 | 56 | 0.690594 | omecamtiv |
21c0d2811891ad5f539f3aa6e2ace59d492239e0 | 2,355 | cpp | C++ | mel/source/parallelism/ThreadPool.cpp | dani-barrientos/dabal | 72f18260e20ce0c413d7c80b43e0b6a3bfb00e5e | [
"MIT"
] | null | null | null | mel/source/parallelism/ThreadPool.cpp | dani-barrientos/dabal | 72f18260e20ce0c413d7c80b43e0b6a3bfb00e5e | [
"MIT"
] | null | null | null | mel/source/parallelism/ThreadPool.cpp | dani-barrientos/dabal | 72f18260e20ce0c413d7c80b43e0b6a3bfb00e5e | [
"MIT"
] | null | null | null | #include <parallelism/ThreadPool.h>
using mel::parallelism::ThreadPool;
ThreadPool::ThreadPool( const ThreadPoolOpts& opts ):
mLastIndex(-1),
mPool(nullptr),
mOpts(opts)
{
if (opts.nThreads == THREADS_USE_ALL_CORES)
{
mNThreads = ::mel::core::getNumProcessors();
}
else if (opts.nThreads < 0)
{
int n = (i... | 25.322581 | 85 | 0.657325 | dani-barrientos |
21c7ded0a0683deb5420e27946d095a98ee196fa | 867 | cpp | C++ | src/botchi_c_3002/botchi_c_3002.cpp | dnasdw/paiza_botchi | 8f5c1a72492903fd3a69c13dfe5b840eab89464c | [
"MIT"
] | null | null | null | src/botchi_c_3002/botchi_c_3002.cpp | dnasdw/paiza_botchi | 8f5c1a72492903fd3a69c13dfe5b840eab89464c | [
"MIT"
] | null | null | null | src/botchi_c_3002/botchi_c_3002.cpp | dnasdw/paiza_botchi | 8f5c1a72492903fd3a69c13dfe5b840eab89464c | [
"MIT"
] | 1 | 2019-01-27T13:03:11.000Z | 2019-01-27T13:03:11.000Z | #include <iostream>
#ifndef USE_LIBSUNDAOWEN
#define USE_LIBSUNDAOWEN 0
#endif
#if USE_LIBSUNDAOWEN != 0
#include <sdw.h>
#else
#include <string>
using namespace std;
#endif
int main(int argc, char* argv[])
{
string sLine;
getline(cin, sLine);
bool bValid = true;
do
{
int nSize = static_cast<int>(sLine.size(... | 16.055556 | 98 | 0.60323 | dnasdw |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.