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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9a39d79751778014da3e9ac19d7e7ca4a3feed88 | 8,704 | cpp | C++ | tool-dfxcli/src/ConfigCommand.cpp | nuralogix/dfx-api-client-cpp | 6b45307ddf4b0036c107eebd7e8915f6c501c3b0 | [
"MIT"
] | null | null | null | tool-dfxcli/src/ConfigCommand.cpp | nuralogix/dfx-api-client-cpp | 6b45307ddf4b0036c107eebd7e8915f6c501c3b0 | [
"MIT"
] | null | null | null | tool-dfxcli/src/ConfigCommand.cpp | nuralogix/dfx-api-client-cpp | 6b45307ddf4b0036c107eebd7e8915f6c501c3b0 | [
"MIT"
] | null | null | null | // Copyright (c) Nuralogix. All rights reserved. Licensed under the MIT license.
// See LICENSE.txt in the project root for license information.
#include "dfx/api/cli/ConfigCommand.hpp"
#include "nlohmann/json.hpp"
using nlohmann::json;
ConfigViewCommand::ConfigViewCommand(CLI::App* config, std::shared_ptr<Options> ... | 46.05291 | 120 | 0.534352 | nuralogix |
9a429a6662ec32856578f6b9347a6c613aa54248 | 5,250 | cc | C++ | src/remote_adapter/remote_adapter_client/hmi_adapter/lua_lib/hmi_adapter_client_lua_wrapper.cc | LuxoftSDL/sdl_atf | 454487dafdc422db724cceb02827a6738e93203b | [
"BSD-3-Clause"
] | 6 | 2016-03-04T20:27:37.000Z | 2021-11-06T08:05:00.000Z | src/remote_adapter/remote_adapter_client/hmi_adapter/lua_lib/hmi_adapter_client_lua_wrapper.cc | smartdevicelink/sdl_atf | 08354ae6633169513639a3d9257acd1229a5caa2 | [
"BSD-3-Clause"
] | 122 | 2016-03-09T20:03:50.000Z | 2022-01-31T14:26:36.000Z | src/remote_adapter/remote_adapter_client/hmi_adapter/lua_lib/hmi_adapter_client_lua_wrapper.cc | smartdevicelink/sdl_atf | 08354ae6633169513639a3d9257acd1229a5caa2 | [
"BSD-3-Clause"
] | 41 | 2016-03-10T09:34:00.000Z | 2020-12-01T09:08:24.000Z | #include "hmi_adapter/lua_lib/hmi_adapter_client_lua_wrapper.h"
#include <iostream>
#include "common/constants.h"
#include "hmi_adapter/hmi_adapter_client.h"
#include "rpc/detail/log.h"
namespace lua_lib {
RPCLIB_CREATE_LOG_CHANNEL(HmiAdapterClientLuaWrapper)
int HmiAdapterClientLuaWrapper::create_SDLRemoteTestAda... | 29.829545 | 80 | 0.689714 | LuxoftSDL |
9a4c545f7d7970ebd62784026561a3524d260312 | 1,288 | cpp | C++ | src/Cyril/Ops/CyrilPaletteItem.cpp | danhett/cyril | 38702d3334bdce56b2a4fcabcf4fd43dd08d6f95 | [
"MIT"
] | 87 | 2016-05-14T22:43:32.000Z | 2021-12-19T04:33:20.000Z | src/Cyril/Ops/CyrilPaletteItem.cpp | danhett/cyril | 38702d3334bdce56b2a4fcabcf4fd43dd08d6f95 | [
"MIT"
] | 15 | 2016-05-10T12:49:13.000Z | 2020-04-15T12:21:52.000Z | src/Cyril/Ops/CyrilPaletteItem.cpp | danhett/cyril | 38702d3334bdce56b2a4fcabcf4fd43dd08d6f95 | [
"MIT"
] | 12 | 2016-05-16T22:56:19.000Z | 2022-01-06T22:45:06.000Z | //
// CyrilPaletteItem.cpp
// cyril2
//
// Created by Darren Mothersele on 06/11/2013.
//
//
#include "CyrilPaletteItem.h"
CyrilPaletteItem::CyrilPaletteItem(float _f, Cyril* _e) : d(_f), e(_e) {
/*
string converter(_s);
stringstream sr(converter.substr(0,2));
stringstream sg(converter.substr(2,2));
stri... | 18.666667 | 72 | 0.599379 | danhett |
9a532ceacb03eda34f93e2483ea1039b1af28261 | 1,879 | cpp | C++ | src/entity_systems/ffi_layer.cpp | mokoi/luxengine | 965532784c4e6112141313997d040beda4b56d07 | [
"MIT"
] | 11 | 2015-03-02T07:43:00.000Z | 2021-12-04T04:53:02.000Z | src/entity_systems/ffi_layer.cpp | mokoi/luxengine | 965532784c4e6112141313997d040beda4b56d07 | [
"MIT"
] | 1 | 2015-03-28T17:17:13.000Z | 2016-10-10T05:49:07.000Z | src/entity_systems/ffi_layer.cpp | mokoi/luxengine | 965532784c4e6112141313997d040beda4b56d07 | [
"MIT"
] | 3 | 2016-11-04T01:14:31.000Z | 2020-05-07T23:42:27.000Z | /****************************
Copyright © 2014 Luke Salisbury
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including co... | 33.553571 | 243 | 0.728579 | mokoi |
9a54d2abbb11bce9c69996a17f854e121989a061 | 828 | hpp | C++ | detail/itoa.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | detail/itoa.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | detail/itoa.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | // Andrew Naplavkov
// http://stackoverflow.com/questions/6713420/c-convert-integer-to-string-at-compile-time
#ifndef BRIG_DETAIL_ITOA_HPP
#define BRIG_DETAIL_ITOA_HPP
#include <boost/mpl/string.hpp>
#include <string>
namespace brig { namespace detail {
template <bool Top, size_t N>
struct itoa_impl
... | 20.7 | 131 | 0.672705 | isadchenko |
9a591b4a1748d455b834f77cb6f9839b65a2b4a1 | 6,382 | cc | C++ | lib/correspondence.cc | dbs4261/smvs | 5a4ff04d7642a354c543ffadbead14c4be73918e | [
"BSD-3-Clause"
] | null | null | null | lib/correspondence.cc | dbs4261/smvs | 5a4ff04d7642a354c543ffadbead14c4be73918e | [
"BSD-3-Clause"
] | null | null | null | lib/correspondence.cc | dbs4261/smvs | 5a4ff04d7642a354c543ffadbead14c4be73918e | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2017, Fabian Langguth
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the LICENSE.txt file for details.
*/
#include "correspondence.h"
namespace smv... | 33.589474 | 88 | 0.559072 | dbs4261 |
9a59c458181420730463ff43414fdbdb0d97aaad | 801 | cpp | C++ | KROSS/src/Kross/Renderer/Context.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | KROSS/src/Kross/Renderer/Context.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | KROSS/src/Kross/Renderer/Context.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | #include <Kross_pch.h>
#include "Context.h"
#include "GFXAPI/OpenGL/GLContext.h"
#include "Kross/Renderer/Renderer.h"
#include "Kross/Core/Window.h"
namespace Kross {
Ref<Context> Context::CreateRef(Window* window)
{
switch (Renderer::GetAPI())
{
case RendererAPI::API::None: KROSS_FATAL("Invalid Graphics API... | 28.607143 | 85 | 0.715356 | WillianKoessler |
9a5a0d1e3eefc78619d8c6434e6d9ad05e723465 | 1,510 | cpp | C++ | Fasta.cpp | yanlinlin82/crabber | b924e5e4e19e8072303b9b83ec7eb945b42e58b3 | [
"Apache-2.0"
] | null | null | null | Fasta.cpp | yanlinlin82/crabber | b924e5e4e19e8072303b9b83ec7eb945b42e58b3 | [
"Apache-2.0"
] | null | null | null | Fasta.cpp | yanlinlin82/crabber | b924e5e4e19e8072303b9b83ec7eb945b42e58b3 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include "String.h"
#include "Fasta.h"
bool Fasta::Load(const std::string& filename, bool verbose)
{
std::ifstream file(filename, std::ios::in);
if (!file.is_open()) {
std::cerr << "Error: Can not open file '" << filename << "'!" << std::endl;
return false;
}
if (verbose... | 21.884058 | 82 | 0.586755 | yanlinlin82 |
9a5a18a89b6ab92e063758607dfe74e5cc84694b | 2,385 | cpp | C++ | Section02/Problem04/Source.cpp | 0xdec0de5/cpp-training | afa15c3bd9cbbe1ee7f219f5a5cae563cbe004b8 | [
"MIT"
] | null | null | null | Section02/Problem04/Source.cpp | 0xdec0de5/cpp-training | afa15c3bd9cbbe1ee7f219f5a5cae563cbe004b8 | [
"MIT"
] | null | null | null | Section02/Problem04/Source.cpp | 0xdec0de5/cpp-training | afa15c3bd9cbbe1ee7f219f5a5cae563cbe004b8 | [
"MIT"
] | null | null | null | #include <iostream>
int main()
{
std::cout << "Enter the character class for your player." << std::endl;
std::cout << "(B)arbarian, (M)age, (R)ogue, (D)ruid: ";
// TODO - handle user input: (b/B), (m/M), (r/R), or (d/D)
char character_class;
std::cin >> character_class;
// Barbarian Character
unsigned short ba... | 31.381579 | 88 | 0.644025 | 0xdec0de5 |
9a6087ab262f30d73951a4ee120da2c7333c789f | 162 | cpp | C++ | src/examples/04_module/08_strings/main.cpp | acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-Gabe-Cpp | f5b7d8610054c975b67ff04a41a7a054325e3c7e | [
"MIT"
] | null | null | null | src/examples/04_module/08_strings/main.cpp | acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-Gabe-Cpp | f5b7d8610054c975b67ff04a41a7a054325e3c7e | [
"MIT"
] | null | null | null | src/examples/04_module/08_strings/main.cpp | acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-Gabe-Cpp | f5b7d8610054c975b67ff04a41a7a054325e3c7e | [
"MIT"
] | null | null | null | #include<string>
#include<iostream>
#include "strings.h"
int main()
{
std::string str1 = "john";
loop_string_w_index(str1);
std::cout << str1;
return 0;
} | 12.461538 | 27 | 0.666667 | acc-cosc-1337-summer-2020-classroom |
9a6bf681d119656a39fe600124d3a3094b65a541 | 13,720 | cc | C++ | hackt_docker/hackt/src/Object/sizes-entity.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/sizes-entity.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/sizes-entity.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/sizes-entity.cc"
Just dumps the sizeof for most HAC::entity classes.
This file came from "art_persistent_table.cc".
$Id: sizes-entity.cc,v 1.3 2010/04/07 00:12:32 fang Exp $
*/
#include <iostream>
#include "common/sizes-common.hh"
#include "util/what.tcc" // use default typeinfo-based mangled n... | 41.829268 | 79 | 0.810277 | broken-wheel |
9a753b1acc734448b049111f8a0bb73bac5f8e00 | 2,145 | cpp | C++ | src/fastsynth/smt2_frontend.cpp | kroening/fastsynth | 6a8aed3182c7156e3ea4981576e2d29ba4088a3c | [
"BSD-3-Clause"
] | 3 | 2020-06-01T03:07:06.000Z | 2021-01-21T12:42:04.000Z | src/fastsynth/smt2_frontend.cpp | kroening/fastsynth | 6a8aed3182c7156e3ea4981576e2d29ba4088a3c | [
"BSD-3-Clause"
] | 10 | 2019-09-13T21:18:15.000Z | 2020-12-04T01:18:46.000Z | src/fastsynth/smt2_frontend.cpp | kroening/fastsynth | 6a8aed3182c7156e3ea4981576e2d29ba4088a3c | [
"BSD-3-Clause"
] | 2 | 2019-09-13T21:15:53.000Z | 2019-09-15T04:42:31.000Z | #include <util/cmdline.h>
#include <util/cout_message.h>
#include <util/namespace.h>
#include <util/symbol_table.h>
#include <solvers/flattening/boolbv.h>
#include <solvers/sat/satcheck.h>
#include <solvers/smt2/smt2_parser.h>
#include <fstream>
#include <iostream>
class smt2_frontendt:public smt2_parsert
{
public:
... | 18.815789 | 68 | 0.652681 | kroening |
9a77e1eabc656137780911f4cc82bb9207f1f000 | 6,003 | cpp | C++ | modules/futures_redis/src/RedisFuture.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 71 | 2017-12-18T10:35:41.000Z | 2021-12-11T19:57:34.000Z | modules/futures_redis/src/RedisFuture.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 1 | 2017-12-19T09:31:46.000Z | 2017-12-20T07:08:01.000Z | modules/futures_redis/src/RedisFuture.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 7 | 2017-12-20T01:55:44.000Z | 2019-12-06T12:25:55.000Z | #include <futures_redis/RedisFuture.h>
#include "hiredis/async.h"
#include "hiredis/hiredis.h"
namespace futures {
namespace redis_io {
AsyncContext::AsyncContext(EventExecutor *loop,
const std::string& addr, uint16_t port)
: io::IOObject(loop), c_(nullptr),
addr_(addr), port_(port),
rev_(loop->getLoo... | 27.791667 | 86 | 0.617191 | chyh1990 |
9a799309ae4d8f47c9cc005df306f0a5d0e0eb91 | 1,643 | cpp | C++ | src/physics_animation.cpp | AleksanderSiwek/Fluide_Engine | 12c626105b079a3dd21a3cc95b7d98342d041f5d | [
"MIT"
] | null | null | null | src/physics_animation.cpp | AleksanderSiwek/Fluide_Engine | 12c626105b079a3dd21a3cc95b7d98342d041f5d | [
"MIT"
] | null | null | null | src/physics_animation.cpp | AleksanderSiwek/Fluide_Engine | 12c626105b079a3dd21a3cc95b7d98342d041f5d | [
"MIT"
] | null | null | null | #include "physics_animation.hpp"
PhysicsAnimation::PhysicsAnimation()
{
Initialize();
}
PhysicsAnimation::~PhysicsAnimation()
{
}
void PhysicsAnimation::AdvanceSingleFrame()
{
Frame f = _currentFrame;
Update(++f);
}
void PhysicsAnimation::SetCurrentFrame(const Frame& frame)
{
_currentFrame = frame;... | 20.283951 | 126 | 0.720633 | AleksanderSiwek |
9a7ea5d5cb03f555ed8b370c08acadaee18ab31c | 1,297 | hpp | C++ | Axis.Echinopsis/application/factories/collectors/HyperworksNodeCollectorFactory.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Echinopsis/application/factories/collectors/HyperworksNodeCollectorFactory.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Echinopsis/application/factories/collectors/HyperworksNodeCollectorFactory.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #pragma once
#include "application/factories/collectors/CollectorFactory.hpp"
#include "application/factories/collectors/GeneralNodeCollectorFactory.hpp"
#include "HyperworksNodeCollectorBuilder.hpp"
namespace axis { namespace application { namespace factories { namespace collectors {
class HyperworksNodeCollectorF... | 41.83871 | 103 | 0.764842 | renato-yuzup |
9a846635ec4bc8ee32415cdc76a08ba1d8f16037 | 2,762 | cc | C++ | Neptune/Socket.cc | superly1213/Neptune | 11e34a6c44bd10161c59560d24cbe6f83580855e | [
"BSD-2-Clause"
] | 1 | 2017-01-30T04:32:27.000Z | 2017-01-30T04:32:27.000Z | Neptune/Socket.cc | superly1213/Neptune | 11e34a6c44bd10161c59560d24cbe6f83580855e | [
"BSD-2-Clause"
] | null | null | null | Neptune/Socket.cc | superly1213/Neptune | 11e34a6c44bd10161c59560d24cbe6f83580855e | [
"BSD-2-Clause"
] | 1 | 2019-03-21T07:09:16.000Z | 2019-03-21T07:09:16.000Z | // Copyright (c) 2017 ASMlover. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list ofconditions and... | 33.277108 | 79 | 0.736061 | superly1213 |
89412bbd52f4055b39f0530c4515f8abdd6d4ebb | 14,199 | cc | C++ | wrappers/8.1.1/vtkGeoProjectionWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 6 | 2016-02-03T12:48:36.000Z | 2020-09-16T15:07:51.000Z | wrappers/8.1.1/vtkGeoProjectionWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T01:30:43.000Z | 2020-03-30T16:59:32.000Z | wrappers/8.1.1/vtkGeoProjectionWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | null | null | null | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkObjectWrap.h"
#include "vtkGeoProjectionWrap.h"
#include "vtkObjectBaseWrap.h"
#include "../../plus/plus.h"
using namespace v8;
extern Nan... | 31.48337 | 106 | 0.7347 | axkibe |
89427c5306d3cbf81dfd33f11c25a5c2e9fbb185 | 1,329 | hpp | C++ | include/interface_handler.hpp | rdavid/atm | c3a69799b5993cec694a69b0f881603aa092fc32 | [
"0BSD"
] | null | null | null | include/interface_handler.hpp | rdavid/atm | c3a69799b5993cec694a69b0f881603aa092fc32 | [
"0BSD"
] | null | null | null | include/interface_handler.hpp | rdavid/atm | c3a69799b5993cec694a69b0f881603aa092fc32 | [
"0BSD"
] | null | null | null | #pragma once
#include <interface.hpp>
#include <future>
namespace atm
{
class interface_handler {
public:
std::future<void> issue_money(unsigned amount) const {
return std::async(&interface::issue_money, &m_interface, amount);
}
std::future<void> display_insufficient_funds() const {
return std::async(... | 30.906977 | 79 | 0.72912 | rdavid |
8945d2f322c94aad0085b1c9c7e31fbbfcc5e764 | 542 | hpp | C++ | libs/console/include/sge/console/callback/function_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/console/include/sge/console/callback/function_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/console/include/sge/console/callback/function_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_CONSOLE_CALLBACK_FUNCTION_TYPE_HPP_INCLUDED
#define SGE_CONSOLE_CALLBACK_FUNCTION_TYPE_... | 27.1 | 85 | 0.756458 | cpreh |
8947abb1f31cde821893456393d10619c8c882f2 | 432 | cpp | C++ | cs162/labs/lab6/square.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | cs162/labs/lab6/square.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | cs162/labs/lab6/square.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | #include "square.h"
Square::Square() {
//nothing here
}
Square::Square(float x, string name, string color) : Rectangle(x, x, name, color) {
//nothing here
}
float Square::get_dimensions() {
get_height();
}
void Square::set_dimensions(float x) {
set_height(x);
set_width(x);
}
float Square::get_area() {
float ... | 15.428571 | 83 | 0.662037 | franzmk |
894b98f737b3d6f2eeb7c7def093bd7f68529f96 | 207 | cpp | C++ | 2021.09.13-Homework-1/Task 5/Source.cpp | 095238/Personal-Space | 4950722f815193030674e7d899f5f07970e9e08f | [
"Apache-2.0"
] | null | null | null | 2021.09.13-Homework-1/Task 5/Source.cpp | 095238/Personal-Space | 4950722f815193030674e7d899f5f07970e9e08f | [
"Apache-2.0"
] | null | null | null | 2021.09.13-Homework-1/Task 5/Source.cpp | 095238/Personal-Space | 4950722f815193030674e7d899f5f07970e9e08f | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
int main(int argc, char* argv[])
{
int x = 0;
cin >> x;
int a = x % 10;
int b = (x % 100) / 10;
int c = x / 100;
cout << a+b+c << endl;
return EXIT_SUCCESS;
} | 14.785714 | 32 | 0.565217 | 095238 |
89566a1d7c886db3bfac38c58df9b36a0a639ef4 | 19,308 | cpp | C++ | source/games/game_tetris.cpp | Chrscool8/Brick-Game-9999-in-1 | 5f5aa93729ded47d395f7546308b7ce89f035c17 | [
"Zlib"
] | 5 | 2021-04-06T06:18:26.000Z | 2021-11-10T02:01:33.000Z | source/games/game_tetris.cpp | Chrscool8/Brick-Game-9999-in-1 | 5f5aa93729ded47d395f7546308b7ce89f035c17 | [
"Zlib"
] | null | null | null | source/games/game_tetris.cpp | Chrscool8/Brick-Game-9999-in-1 | 5f5aa93729ded47d395f7546308b7ce89f035c17 | [
"Zlib"
] | null | null | null | #include <games/game_tetris.h>
#include <games/game_race.h>
#include <grid_sprites.h>
#include <game_tetris_shapes.h>
#include <platform/control_layer.h>
// Let's the subgame know what main game it belongs to.
subgame_tetris::subgame_tetris(BrickGameFramework& _parent) : subgame(_parent)
{
name = "Tetris";
}
// Runs... | 24.596178 | 131 | 0.472757 | Chrscool8 |
895a6c3a827ff05009eac170a1e39c165b2d1f38 | 30,545 | inl | C++ | src/fonts/stb_font_arial_28_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_arial_28_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_arial_28_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_arial_28_usascii_*,... | 62.979381 | 117 | 0.775184 | stetre |
895cbed539482619f455397ed672789054adedaf | 1,801 | cpp | C++ | ext/types/offer.cpp | Atidot/hs-mesos | 7449a31550259a231c4809d9a6fcc626892502b3 | [
"MIT"
] | null | null | null | ext/types/offer.cpp | Atidot/hs-mesos | 7449a31550259a231c4809d9a6fcc626892502b3 | [
"MIT"
] | null | null | null | ext/types/offer.cpp | Atidot/hs-mesos | 7449a31550259a231c4809d9a6fcc626892502b3 | [
"MIT"
] | null | null | null | #include <iostream>
#include "types.h"
using namespace mesos;
OfferPtr toOffer(OfferIDPtr offerID,
FrameworkIDPtr frameworkID,
SlaveIDPtr slaveID,
char* hostname,
int hostnameLen,
ResourcePtr* resources,
int resourcesLen,
AttributePtr* attributes,
int attributesLen,
ExecutorIDPtr* executorI... | 22.5125 | 63 | 0.667962 | Atidot |
89678386c71f9f7c8a1dead073b46d650133a148 | 582 | cpp | C++ | hw4/src/lib/sema/ContextManager.cpp | idoleat/P-Language-Compiler-CourseProject | 57db735b349a0a3a30d78b927953e2d44b7c7d53 | [
"MIT"
] | 7 | 2020-09-10T16:54:49.000Z | 2022-03-15T12:39:23.000Z | hw4/src/lib/sema/ContextManager.cpp | idoleat/simple-P-compiler | 57db735b349a0a3a30d78b927953e2d44b7c7d53 | [
"MIT"
] | null | null | null | hw4/src/lib/sema/ContextManager.cpp | idoleat/simple-P-compiler | 57db735b349a0a3a30d78b927953e2d44b7c7d53 | [
"MIT"
] | null | null | null | #include "sema/SemanticAnalyzer.hpp"
std::string SemanticAnalyzer::ContextManager::TrimDimension(const char* typeString, int amount, bool TrimWhiteSpace){
std::string type = std::string(typeString);
std::size_t left, right;
while(amount != 0){
left = type.find_first_of("[");
right = type.fi... | 29.1 | 117 | 0.594502 | idoleat |
8967bedf82ef7802f2c640389d5bcc1ffdc0b67b | 1,198 | cpp | C++ | Source/10.0.18362.0/ucrt/string/strtok.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 2 | 2021-01-27T10:19:30.000Z | 2021-02-09T06:24:30.000Z | Source/10.0.18362.0/ucrt/string/strtok.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | null | null | null | Source/10.0.18362.0/ucrt/string/strtok.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 1 | 2021-01-27T10:19:36.000Z | 2021-01-27T10:19:36.000Z | //
// strtok.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Defines strtok(), which tokenizes a string via repeated calls.
//
// strtok() considers the string to consist of a sequence of zero or more text
// tokens separated by spans of one or more control characters. The first call,
/... | 35.235294 | 90 | 0.708681 | 825126369 |
896a4c73f95f68c47644475ea4886e136439e6b8 | 1,225 | hpp | C++ | CRTPFactory/src/AddToRegistry.hpp | DLancer999/FactoryImplementation | a87b595cac1b2c082a39113b5a6cfbc2548bd8ff | [
"MIT"
] | null | null | null | CRTPFactory/src/AddToRegistry.hpp | DLancer999/FactoryImplementation | a87b595cac1b2c082a39113b5a6cfbc2548bd8ff | [
"MIT"
] | null | null | null | CRTPFactory/src/AddToRegistry.hpp | DLancer999/FactoryImplementation | a87b595cac1b2c082a39113b5a6cfbc2548bd8ff | [
"MIT"
] | null | null | null |
/*************************************************************************\
License
Copyright (c) 2018 Kavvadias Ioannis.
This file is part of FactoryImplementation.
Licensed under the MIT License. See LICENSE file in the project root for
full license information.
Class
AddToRegistry
... | 27.840909 | 80 | 0.621224 | DLancer999 |
897172d3ad4713dc6ff9e70ca874f801cc893b2b | 747 | cpp | C++ | String/First Non-repeted char in a string.cpp | Biplob68/Data-Structure-and-Algorithms | 2ea7895a87ce1dfb9bd90495c678fc5d1ae133f6 | [
"MIT"
] | null | null | null | String/First Non-repeted char in a string.cpp | Biplob68/Data-Structure-and-Algorithms | 2ea7895a87ce1dfb9bd90495c678fc5d1ae133f6 | [
"MIT"
] | null | null | null | String/First Non-repeted char in a string.cpp | Biplob68/Data-Structure-and-Algorithms | 2ea7895a87ce1dfb9bd90495c678fc5d1ae133f6 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
int main(void)
{
char str[100] ;
scanf("%[^\n]%c", str);
int len = strlen(str);
int i,j,flag;
// Two loops to compare each character with other character
for(i = 0; i < len; i++)
{
flag = 0;
for(j = 0; j < len; j++)
{
... | 18.675 | 67 | 0.417671 | Biplob68 |
89780c9bf1eb5779c361a74d2cf56f2d76c3717d | 822 | cpp | C++ | acm/hdu/1873.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 17 | 2016-01-01T12:57:25.000Z | 2022-02-06T09:55:12.000Z | acm/hdu/1873.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | null | null | null | acm/hdu/1873.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 8 | 2018-12-27T01:31:49.000Z | 2022-02-06T09:55:12.000Z | #include<bits/stdc++.h>
using namespace std;
#define sa(x) scanf("%d",&x)
const int maxn = 1005;
struct node{
int pri;
int id;
bool operator < (const node a) const {
if(pri == a.pri)return id>a.id;
return pri<a.pri;
}
}g;
int main(){
string a;
int n;
while(cin>>n){
i... | 19.116279 | 50 | 0.375912 | xiaohuihuigh |
897970954c73f23ff6cf5eda1abbf808f5415d5b | 7,409 | hpp | C++ | src/operator/perturbedst2eoperator.hpp | susilehtola/aquarius | 9160e73bd7e3e0d8d97b10d00d9a4860aee709d2 | [
"BSD-3-Clause"
] | 18 | 2015-02-11T15:02:39.000Z | 2021-09-24T13:10:12.000Z | src/operator/perturbedst2eoperator.hpp | susilehtola/aquarius | 9160e73bd7e3e0d8d97b10d00d9a4860aee709d2 | [
"BSD-3-Clause"
] | 21 | 2015-06-23T13:32:29.000Z | 2022-02-15T20:14:42.000Z | src/operator/perturbedst2eoperator.hpp | susilehtola/aquarius | 9160e73bd7e3e0d8d97b10d00d9a4860aee709d2 | [
"BSD-3-Clause"
] | 8 | 2016-01-09T23:36:21.000Z | 2019-11-19T14:22:34.000Z | #ifndef _AQUARIUS_OPERATOR_PERTURBEDST2EOPERATOR_HPP_
#define _AQUARIUS_OPERATOR_PERTURBEDST2EOPERATOR_HPP_
#include "util/global.hpp"
#include "2eoperator.hpp"
#include "st2eoperator.hpp"
namespace aquarius
{
namespace op
{
/*
* _A -T A T _ A A T _ A
* Form X = e X e + [X, T ] = (X... | 43.582353 | 127 | 0.460791 | susilehtola |
897e903e3cd8d885a3599f107cb5c14b6bf1f674 | 3,803 | cpp | C++ | test/test_speed.cpp | barometz/ringbuf | 96b49b86d88969a46df56485cfa2d005bd524d9f | [
"MIT"
] | 15 | 2021-12-12T16:58:13.000Z | 2022-03-25T09:22:06.000Z | test/test_speed.cpp | barometz/ringbuf | 96b49b86d88969a46df56485cfa2d005bd524d9f | [
"MIT"
] | null | null | null | test/test_speed.cpp | barometz/ringbuf | 96b49b86d88969a46df56485cfa2d005bd524d9f | [
"MIT"
] | 1 | 2021-12-19T02:03:04.000Z | 2021-12-19T02:03:04.000Z | #include "baudvine/deque_ringbuf.h"
#include "baudvine/ringbuf.h"
#include <gtest/gtest.h>
#include <chrono>
// Speed comparison between deque and standard. Standard should generally be at
// least as fast as deque, but in practice we're not the only process so there's
// going to be some noise.
namespace std {
name... | 27.963235 | 80 | 0.645543 | barometz |
897f32006cf2ae2432b186da04d9755ca44448ab | 6,583 | cc | C++ | src/external_library/libgp/src/cg.cc | ecbaum/ugpm | 3ab6ff2dbc59642e0e9739f5f4647a906f19e333 | [
"MIT"
] | 89 | 2015-02-28T12:20:07.000Z | 2022-02-01T17:15:57.000Z | src/cg.cc | Bellout/libgp | f2bcfe7b5b6f02444ef98caf822717662c13fc88 | [
"BSD-3-Clause"
] | 212 | 2018-09-21T10:44:07.000Z | 2022-03-22T14:33:05.000Z | src/cg.cc | Bellout/libgp | f2bcfe7b5b6f02444ef98caf822717662c13fc88 | [
"BSD-3-Clause"
] | 58 | 2015-03-08T09:22:01.000Z | 2021-12-14T10:12:31.000Z | /*
* cg.cpp
*
* Created on: Feb 22, 2013
* Author: Joao Cunha <joao.cunha@ua.pt>
*/
#include "cg.h"
#include <iostream>
#include <Eigen/Core>
using namespace std;
namespace libgp
{
CG::CG()
{
}
CG::~CG()
{
}
void CG::maximize(GaussianProcess* gp, size_t n, bool verbose)
{
const double INT = 0.1; // ... | 27.776371 | 104 | 0.581346 | ecbaum |
8982d7c06dcd2f60a1505fc2864abd29f58310be | 6,511 | hpp | C++ | 3rdparty/stlsoft/include/acestl/memory/message_block_functions.hpp | wohaaitinciu/zpublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 50 | 2015-01-07T01:54:54.000Z | 2021-01-15T00:41:48.000Z | 3rdparty/stlsoft/include/acestl/memory/message_block_functions.hpp | lib1256/zpublic | 64c2be9ef1abab878288680bb58122dcc25df81d | [
"Unlicense"
] | 2 | 2016-01-08T19:32:57.000Z | 2019-10-11T03:50:34.000Z | 3rdparty/stlsoft/include/acestl/memory/message_block_functions.hpp | lib1256/zpublic | 64c2be9ef1abab878288680bb58122dcc25df81d | [
"Unlicense"
] | 39 | 2015-01-07T02:03:15.000Z | 2021-01-15T00:41:50.000Z | /* /////////////////////////////////////////////////////////////////////////
* File: acestl/memory/message_block_functions.hpp
*
* Purpose: Helper functions for ACE_Message_Block (and ACE_Data_Block) classes.
*
* Created: 23rd September 2004
* Updated: 10th August 2009
*
* Home: http:/... | 33.735751 | 84 | 0.664107 | wohaaitinciu |
89830906549049ec94bd68b5850cbaa453031e56 | 2,782 | cpp | C++ | src/Fantasma.cpp | rickylh/Medieval-Game | 2e818ab09cdd6158b59133c56cfca8e31d1f8f3a | [
"MIT"
] | null | null | null | src/Fantasma.cpp | rickylh/Medieval-Game | 2e818ab09cdd6158b59133c56cfca8e31d1f8f3a | [
"MIT"
] | null | null | null | src/Fantasma.cpp | rickylh/Medieval-Game | 2e818ab09cdd6158b59133c56cfca8e31d1f8f3a | [
"MIT"
] | null | null | null | #include "Fantasma.hpp"
#include "Fase.hpp"
const float Fantasma::TEMPO_FANTASMA (0.2f);
Fantasma::Fantasma(sf::Vector2f posicao)
: Inimigo(2.0f, false, false)
, caveira_de_fogo(1, 2,
sf::Vector2f(10.0f,10.0f), this)
, _tempo_ataque (0.0f)
{
setIdTipoObjeto(Codigos::FANTASMA);
setPosicao(po... | 28.387755 | 94 | 0.668584 | rickylh |
898400f485fa53dc1690a4de3cf759bc7b9292f9 | 704 | hpp | C++ | state/state.hpp | B777B2056/Design-Pattern-Cpp | cb2cb72d745cc7b529ef5957dc787b7094001165 | [
"MIT"
] | null | null | null | state/state.hpp | B777B2056/Design-Pattern-Cpp | cb2cb72d745cc7b529ef5957dc787b7094001165 | [
"MIT"
] | null | null | null | state/state.hpp | B777B2056/Design-Pattern-Cpp | cb2cb72d745cc7b529ef5957dc787b7094001165 | [
"MIT"
] | null | null | null | #ifndef STATE
#define STATE
#include <string>
#include <memory>
#include <iostream>
class context;
class state {
public:
virtual ~state() {}
virtual void handle(context& c) = 0;
};
class concrete_state_A : public state {
private:
std::string _inner_state;
public:
concrete_state_A();
virtual v... | 13.538462 | 45 | 0.691761 | B777B2056 |
8985ea1530bd6c49cbf6bc9acdb1f0b71aba2087 | 3,039 | cpp | C++ | src/order_book/order_book.cpp | YileZheng/hft-system | 9294d751a6906f42c6c2ebc4f180a1415c6ff12f | [
"MIT"
] | 1 | 2022-03-03T16:15:01.000Z | 2022-03-03T16:15:01.000Z | src/order_book/order_book.cpp | YileZheng/hft-system | 9294d751a6906f42c6c2ebc4f180a1415c6ff12f | [
"MIT"
] | null | null | null | src/order_book/order_book.cpp | YileZheng/hft-system | 9294d751a6906f42c6c2ebc4f180a1415c6ff12f | [
"MIT"
] | 1 | 2022-03-08T00:27:51.000Z | 2022-03-08T00:27:51.000Z | #include "order_book.hpp"
// make sure there should up to only one empty slot each time execute this function
void table_refresh(
int ystart,
int xstart,
price_lookup price_table[LEVELS*STOCKS][2]
){
bool last_empty = False;
price_lookup slot;
for (int i=0; i < LEVELS; i++){
slot = price_table[ystart+i][xstart... | 23.55814 | 115 | 0.71438 | YileZheng |
898864ee7acfbd5a1d4a0d68fccc6563d09be1c4 | 10,227 | cc | C++ | build/x86/cpu/o3/O3CPU.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/cpu/o3/O3CPU.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/cpu/o3/O3CPU.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_objects_O3CPU[] = {
120,156,181,152,91,87,27,57,18,128,101,67,204,37,36,16,
8,201,228,222,185,59,23,226,92,38,153,36,147,153,9,24,
72,60,67,128,180,205,230,44,47,62,237,150,140,5,237,110,
167,213,77,96,207,236,83,246,109,31,118,30,246,23,236,47,... | 57.455056 | 74 | 0.661093 | billionshang |
898997678197f9d0d9bcaa468b0dc51d11207bb2 | 488 | cpp | C++ | 70. Climbing Stairs/Solution.cpp | Ainevsia/Leetcode-Rust | c4f16d72f3c0d0524478b6bb90fefae9607d88be | [
"BSD-2-Clause"
] | 15 | 2020-02-07T13:04:05.000Z | 2022-03-02T14:33:21.000Z | 70. Climbing Stairs/Solution.cpp | Ainevsia/Leetcode-Rust | c4f16d72f3c0d0524478b6bb90fefae9607d88be | [
"BSD-2-Clause"
] | null | null | null | 70. Climbing Stairs/Solution.cpp | Ainevsia/Leetcode-Rust | c4f16d72f3c0d0524478b6bb90fefae9607d88be | [
"BSD-2-Clause"
] | 3 | 2020-04-02T15:36:57.000Z | 2021-09-14T14:13:44.000Z | #include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <tuple>
#include <deque>
#include <unordered_map>
#include <cmath>
using namespace std;
class Solution {
public:
int climbStairs(int n) {
vector <int> fib (n+1, 1);
for (int i=2; i<=n;i++) {
... | 16.266667 | 41 | 0.55123 | Ainevsia |
899bd53962ea646c9babfee418df07267d68983b | 4,397 | cpp | C++ | projs/sphere_reflect/src/app.cpp | colintan95/gl_projects | ad9bcdeaaa65474f45968b26a9a565cbe34af68e | [
"MIT"
] | null | null | null | projs/sphere_reflect/src/app.cpp | colintan95/gl_projects | ad9bcdeaaa65474f45968b26a9a565cbe34af68e | [
"MIT"
] | null | null | null | projs/sphere_reflect/src/app.cpp | colintan95/gl_projects | ad9bcdeaaa65474f45968b26a9a565cbe34af68e | [
"MIT"
] | null | null | null | #include "app.h"
#include <iostream>
#include <cstdlib>
#include <random>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/string_cast.hpp>
#include "gfx_utils/primitives.h"
//
// Significant portion of implementation adapted from: LearnOpenGL
// htt... | 26.810976 | 80 | 0.654992 | colintan95 |
899c0b78a6e02e4b8fb767c9b055e1c7303c4706 | 1,702 | cpp | C++ | src/Look.cpp | FellowRoboticists/myRobotScan | f87c73937d1a26a273479c6747bd7d4731bf31e3 | [
"MIT"
] | null | null | null | src/Look.cpp | FellowRoboticists/myRobotScan | f87c73937d1a26a273479c6747bd7d4731bf31e3 | [
"MIT"
] | null | null | null | src/Look.cpp | FellowRoboticists/myRobotScan | f87c73937d1a26a273479c6747bd7d4731bf31e3 | [
"MIT"
] | null | null | null | // Look Arduino library
//
// Copyright 2013 Dave Sieh
// See LICENSE.txt for details.
#include <Arduino.h>
#include "Look.h"
#include "SoftServo.h"
#include "IrSensors.h"
#include "PingSensor.h"
#include "pspc_support.h"
Look::Look(SoftServo *sweepServo, IrSensors *sensors, PingSensor *pingSensor) {
servo = sweepS... | 22.394737 | 82 | 0.672738 | FellowRoboticists |
89a64aaf723287c92770b3b3227e323d7298bea2 | 1,483 | cpp | C++ | 03-Ejemplo basico de Qt/main.cpp | vialrogo/TutorialCPP | f0b44dcc0f58eb54ce5d48a069923f5963eb545f | [
"CC0-1.0"
] | null | null | null | 03-Ejemplo basico de Qt/main.cpp | vialrogo/TutorialCPP | f0b44dcc0f58eb54ce5d48a069923f5963eb545f | [
"CC0-1.0"
] | null | null | null | 03-Ejemplo basico de Qt/main.cpp | vialrogo/TutorialCPP | f0b44dcc0f58eb54ce5d48a069923f5963eb545f | [
"CC0-1.0"
] | null | null | null | /*
+---------------------------------------+
| Ejemplos-Tutorial C++ con Qt |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| Creado por: Victor Alberto Romero |
| e-mail: vialrogo@gmail.com |
+---------------------------------------+
Archivo main de ejemplo de qt básico
En esta clase podemos ver como usamos la ... | 26.482143 | 119 | 0.664194 | vialrogo |
89a6ad9f44e2b3661a8cbab41b0e722e79153c56 | 842 | cpp | C++ | code_blocks/check_fft/main.cpp | rafald/xtechnical_analysis | 7686c16241e9e53fb5a5548354531b533f983b54 | [
"MIT"
] | 12 | 2020-01-20T14:22:18.000Z | 2022-01-26T04:41:36.000Z | code_blocks/check_fft/main.cpp | rafald/xtechnical_analysis | 7686c16241e9e53fb5a5548354531b533f983b54 | [
"MIT"
] | 1 | 2020-05-23T07:35:03.000Z | 2020-05-23T07:35:03.000Z | code_blocks/check_fft/main.cpp | rafald/xtechnical_analysis | 7686c16241e9e53fb5a5548354531b533f983b54 | [
"MIT"
] | 9 | 2019-11-02T19:01:55.000Z | 2021-07-08T21:51:44.000Z | #include <iostream>
#include "xtechnical_indicators.hpp"
using namespace std;
int main() {
cout << "Hello world!" << endl;
xtechnical_indicators::FreqHist<double>
iFreqHist(100, xtechnical_dft::RECTANGULAR_WINDOW);
const double MATH_PI = 3.14159265358979323846264338327950288;
for(size_t i = 0;... | 31.185185 | 87 | 0.58076 | rafald |
89a93f9d49fa304f09791a1595ca12b48e44ebdc | 1,952 | cpp | C++ | src/Gen/Builders/DoLoopBuilder.cpp | albeva/LightBASIC | 489bcc81bed268798874d6675054e594ffc8eb07 | [
"MIT"
] | 6 | 2021-05-24T15:43:58.000Z | 2022-03-21T12:50:05.000Z | src/Gen/Builders/DoLoopBuilder.cpp | albeva/LightBASIC | 489bcc81bed268798874d6675054e594ffc8eb07 | [
"MIT"
] | 15 | 2022-02-23T23:24:36.000Z | 2022-03-05T13:44:27.000Z | src/Gen/Builders/DoLoopBuilder.cpp | albeva/LightBASIC | 489bcc81bed268798874d6675054e594ffc8eb07 | [
"MIT"
] | 1 | 2017-04-13T13:13:29.000Z | 2017-04-13T13:13:29.000Z | //
// Created by Albert Varaksin on 28/05/2021.
//
#include "DoLoopBuilder.hpp"
#include "Driver/Context.hpp"
using namespace lbc;
using namespace Gen;
DoLoopBuilder::DoLoopBuilder(CodeGen& gen, AstDoLoopStmt& ast)
: Builder{ gen, ast },
m_bodyBlock{ llvm::BasicBlock::Create(m_llvmContext, "do_loop.body") },
m_con... | 27.492958 | 93 | 0.659324 | albeva |
89af705ee09cb1cb533cbad81ee8eaa74e2c01a7 | 413 | hpp | C++ | header/Connector.hpp | Sdc97/Rshell | 37c0dd264799d199e6c0dc1f13ae1e25f9368620 | [
"MIT"
] | 1 | 2020-06-28T20:40:57.000Z | 2020-06-28T20:40:57.000Z | header/Connector.hpp | Sdc97/Rshell | 37c0dd264799d199e6c0dc1f13ae1e25f9368620 | [
"MIT"
] | null | null | null | header/Connector.hpp | Sdc97/Rshell | 37c0dd264799d199e6c0dc1f13ae1e25f9368620 | [
"MIT"
] | 1 | 2021-04-02T21:47:58.000Z | 2021-04-02T21:47:58.000Z | #ifndef CONNECTOR
#define CONNECTOR
#include "Executable.hpp"
#include "Cmnd.hpp"
class Connector : public Executable {
protected:
Executable* left;
Executable* right;
public:
virtual bool run_command() =0;
virtual char** get_command() {}
virtual void set_left(Executable*) =0;
virtual void set_right(Executabl... | 18.772727 | 40 | 0.731235 | Sdc97 |
89af7544e15c04b34f0c1e40b22d5ca5ef17f78e | 1,953 | cpp | C++ | src/display/display.cpp | passinglink/passinglink | d1bc70cc8bf2c32a9dfea412fc37a44c6dbf09c1 | [
"MIT"
] | 76 | 2020-03-09T20:30:59.000Z | 2022-03-29T13:39:47.000Z | src/display/display.cpp | Project-Alpaca/passinglink | f259466d2e8aafca6c8511df3b1259156954e907 | [
"MIT"
] | 24 | 2020-08-08T23:07:12.000Z | 2022-03-31T20:38:07.000Z | src/display/display.cpp | Project-Alpaca/passinglink | f259466d2e8aafca6c8511df3b1259156954e907 | [
"MIT"
] | 18 | 2020-07-31T01:23:44.000Z | 2022-03-23T01:14:45.000Z | #include "display/display.h"
#include <stdio.h>
#include "arch.h"
#include "display/menu.h"
#include "display/ssd1306.h"
#include "types.h"
#include "util.h"
#include <logging/log.h>
#define LOG_LEVEL LOG_LEVEL_INF
LOG_MODULE_REGISTER(display);
static bool status_locked;
static bool status_probing;
static optional<... | 19.53 | 64 | 0.664107 | passinglink |
89b786614913a2a02561549873a2de4534c62c9d | 10,368 | cpp | C++ | src/D3dsurf.cpp | rbwsok/3dfx-OpenGL-ICD-update | 4e0846d6569bf5d7ec8b22918f33fc7701df6e73 | [
"Unlicense"
] | null | null | null | src/D3dsurf.cpp | rbwsok/3dfx-OpenGL-ICD-update | 4e0846d6569bf5d7ec8b22918f33fc7701df6e73 | [
"Unlicense"
] | null | null | null | src/D3dsurf.cpp | rbwsok/3dfx-OpenGL-ICD-update | 4e0846d6569bf5d7ec8b22918f33fc7701df6e73 | [
"Unlicense"
] | null | null | null | //
// d3dsurf.cpp : You *really* don't want to know
//
#include "stdafx.h"
#define INITGUID
#include <Guiddef.h>
// {1F2069EB-6D07-4f75-9409-AFEABA279E6A}
//DEFINE_GUID(IID_IGXP_D3DSurface8,
//0x1f2069eb, 0x6d07, 0x4f75, 0x94, 0x9, 0xaf, 0xea, 0xba, 0x27, 0x9e, 0x6a);
#define PRINTF while(0) printf
#define IS_2_P... | 21.6 | 151 | 0.66088 | rbwsok |
89b8c660bb355f90968b76344c6b893124347574 | 2,301 | cpp | C++ | src/omwmm/modmanager.cpp | luluco250/omwmm | ee9cd11e4876515c84ad4f2c97372ba23616ac2b | [
"MIT"
] | null | null | null | src/omwmm/modmanager.cpp | luluco250/omwmm | ee9cd11e4876515c84ad4f2c97372ba23616ac2b | [
"MIT"
] | null | null | null | src/omwmm/modmanager.cpp | luluco250/omwmm | ee9cd11e4876515c84ad4f2c97372ba23616ac2b | [
"MIT"
] | null | null | null | #include <omwmm/modmanager.hpp>
#include <filesystem>
#include <utility>
#include <functional>
#include <unordered_set>
#include <string>
#include <string_view>
#include <omwmm/config.hpp>
#include <omwmm/exceptions.hpp>
#include <7zpp/7zpp.h>
using Path = std::filesystem::path;
using DirectoryIterator = std::files... | 26.755814 | 79 | 0.734463 | luluco250 |
89bc5aecef0da213a33adbe7fcd3462897651c6d | 10,443 | cpp | C++ | src/libtsduck/dtv/descriptors/tsEventGroupDescriptor.cpp | manuelmann/tsduck-test | 13760d34bd6f522c2ff813a996371a7cb30e1835 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/dtv/descriptors/tsEventGroupDescriptor.cpp | manuelmann/tsduck-test | 13760d34bd6f522c2ff813a996371a7cb30e1835 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/dtv/descriptors/tsEventGroupDescriptor.cpp | manuelmann/tsduck-test | 13760d34bd6f522c2ff813a996371a7cb30e1835 | [
"BSD-2-Clause"
] | null | null | null | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 39.259398 | 145 | 0.551566 | manuelmann |
89c30d095e454b52779a31d7e31efe1f00ba13c0 | 3,746 | cc | C++ | storageServer/saveFile_2/src/Loop.cc | HenryKing96/MiniDistributedStorage | 7da8b7fb72baca4a04cfde9ce27eec3bb207e056 | [
"Apache-2.0"
] | null | null | null | storageServer/saveFile_2/src/Loop.cc | HenryKing96/MiniDistributedStorage | 7da8b7fb72baca4a04cfde9ce27eec3bb207e056 | [
"Apache-2.0"
] | null | null | null | storageServer/saveFile_2/src/Loop.cc | HenryKing96/MiniDistributedStorage | 7da8b7fb72baca4a04cfde9ce27eec3bb207e056 | [
"Apache-2.0"
] | null | null | null | #include "Loop.h"
#include "EpollEvent.h"
#include "EPoller.h"
#include <boost/bind.hpp>
#include <iostream>
#include <assert.h>
#include <signal.h>
#include <sys/eventfd.h>
using namespace Reactor;
Loop* t_loopInThisThread = 0;
const int kPollTimeMs = 10000;
static int createEventfd()
{
return ::eventfd(0, EFD_N... | 27.955224 | 1,532 | 0.381474 | HenryKing96 |
89c37b76a49283607c174aa28f43ff946d88690b | 5,710 | cpp | C++ | test_gcc/test.cpp | KnicKnic/native-powershell | add37eff76c47fc0e782c22a8460bff3f3327dca | [
"Apache-2.0"
] | 21 | 2019-06-27T06:29:11.000Z | 2021-12-29T05:08:37.000Z | test_gcc/test.cpp | KnicKnic/native-powershell | add37eff76c47fc0e782c22a8460bff3f3327dca | [
"Apache-2.0"
] | 5 | 2019-08-17T01:34:11.000Z | 2019-11-06T21:52:15.000Z | test_gcc/test.cpp | KnicKnic/native-powershell | add37eff76c47fc0e782c22a8460bff3f3327dca | [
"Apache-2.0"
] | 1 | 2021-03-13T20:58:48.000Z | 2021-03-13T20:58:48.000Z | // test.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <algorithm>
#include <vector>
#include "host.h"
#include "utils/macros.hpp"
#include "utils/zero_resetable.hpp"
#include "utils/cpp_wrappers.hpp"
using namespace std;
using namespace native_p... | 41.376812 | 171 | 0.670228 | KnicKnic |
89c562a87b5acce423f54442a803bd258039f8f2 | 1,036 | hpp | C++ | codegen.hpp | kwQt/dummyscope | 160010342e87fb1578f707b97812af9d34814d76 | [
"MIT"
] | 1 | 2020-07-17T05:17:07.000Z | 2020-07-17T05:17:07.000Z | codegen.hpp | kwQt/dummyscope | 160010342e87fb1578f707b97812af9d34814d76 | [
"MIT"
] | null | null | null | codegen.hpp | kwQt/dummyscope | 160010342e87fb1578f707b97812af9d34814d76 | [
"MIT"
] | null | null | null | #pragma once
#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/Value.h>
#include <memory>
#include "ast.hpp"
class ExprAST;
class CodeGen {
private:
std::unique_ptr<llvm::LLVMContext> context;
std::unique_ptr<llvm::Module> module;
std::unique_ptr<ll... | 21.142857 | 66 | 0.718147 | kwQt |
89c668a24249d00c648bf3d9099505d397572bf2 | 484 | cpp | C++ | Sesame/src/Sesame/Core/Log.cpp | yook00627/Sesame-Engine | 1adf6227afcfc582697203cb9ccf0e2d56c9d5eb | [
"MIT"
] | 3 | 2020-06-06T23:07:55.000Z | 2020-07-31T17:13:29.000Z | Sesame/src/Sesame/Core/Log.cpp | yook00627/Sesame-Engine | 1adf6227afcfc582697203cb9ccf0e2d56c9d5eb | [
"MIT"
] | 1 | 2020-08-09T17:43:03.000Z | 2021-03-25T02:22:23.000Z | Sesame/src/Sesame/Core/Log.cpp | yook00627/Sesame-Engine | 1adf6227afcfc582697203cb9ccf0e2d56c9d5eb | [
"MIT"
] | null | null | null | #include "ssmpch.h"
#include "Log.h"
namespace Sesame {
std::shared_ptr<spdlog::logger> Log::s_CoreLogger;
std::shared_ptr<spdlog::logger> Log::s_ClientLogger;
void Log::Init()
{
spdlog::set_pattern("%t-%^[%T] %n: %v%$");
s_CoreLogger = spdlog::stdout_color_mt("SESAME");
s_Cor... | 26.888889 | 57 | 0.634298 | yook00627 |
89c7c9bdd0b58f4151ed3099002373f24e5497f8 | 4,337 | cpp | C++ | apps/Stencil2D_InPlace_ASYN_Tps/Stencil2DKernel.cpp | randres2011/DARTS | d3a0d28926b15796661783f91451dcd313905582 | [
"BSD-2-Clause"
] | 3 | 2020-02-21T01:34:36.000Z | 2021-11-13T06:24:40.000Z | apps/Stencil2D_InPlace_ASYN_Tps/Stencil2DKernel.cpp | randres2011/DARTS | d3a0d28926b15796661783f91451dcd313905582 | [
"BSD-2-Clause"
] | 1 | 2021-01-25T06:57:45.000Z | 2022-02-02T11:44:04.000Z | apps/Stencil2D_InPlace_ASYN_Tps/Stencil2DKernel.cpp | randres2011/DARTS | d3a0d28926b15796661783f91451dcd313905582 | [
"BSD-2-Clause"
] | 4 | 2016-12-12T05:46:58.000Z | 2022-01-01T16:08:56.000Z |
#include <stdint.h>
#include <stdlib.h>
#include "Stencil2DKernel.h"
/**
* Naive 4pt stencil for 2D array
*/
void stencil2d_seq(double *dst,double *src,const uint64_t n_rows,const uint64_t n_cols,uint64_t n_tsteps){
typedef double (*Array2D)[n_cols];
Array2D DST = (Array2D) dst,
SRC = (Array2D) src;
fo... | 31.889706 | 174 | 0.709477 | randres2011 |
89c9c38e01658b9f9f35f37518c62387db41fdf2 | 11,634 | cpp | C++ | src/QtComponents/Traditions/nComboBox.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | src/QtComponents/Traditions/nComboBox.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | src/QtComponents/Traditions/nComboBox.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | #include <qtcomponents.h>
N::ComboBox:: ComboBox ( QWidget * parent , Plan * p )
: QComboBox ( parent )
, VirtualGui ( this , p )
, Thread ( 0 , false )
{
WidgetClass ;
Configure ( ) ;
}
N::Combo... | 32.406685 | 80 | 0.381382 | Vladimir-Lin |
89ce426f74a24b73142fd46265afa8a66c571523 | 697 | cpp | C++ | 4 course/parallel_programming/lab12/lab12_4/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | 4 course/parallel_programming/lab12/lab12_4/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | 4 course/parallel_programming/lab12/lab12_4/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | // Программа с пользовательской обработкой сигнала SIGINT.
#include <signal.h>
#include <iostream>
using namespace std;
// Функция my_handler - пользовательский обработчик сигнала.
void my_handler(int nsig)
{
if (nsig == SIGINT)
{
cout << "Receive signal " << nsig << ", CTRL-C pressed" << endl;
... | 21.78125 | 94 | 0.64132 | SgAkErRu |
89d190c4b043c886e75f81bca3cfbd3773c2488b | 3,867 | cpp | C++ | posix/subsystem/src/inotify.cpp | avdgrinten/managarm | 4c4478cbde21675ca31e65566f10e1846b268bd5 | [
"MIT"
] | 13 | 2017-02-13T23:29:44.000Z | 2021-09-30T05:41:21.000Z | posix/subsystem/src/inotify.cpp | avdgrinten/managarm | 4c4478cbde21675ca31e65566f10e1846b268bd5 | [
"MIT"
] | 12 | 2016-12-03T13:06:13.000Z | 2018-05-04T15:49:17.000Z | posix/subsystem/src/inotify.cpp | avdgrinten/managarm | 4c4478cbde21675ca31e65566f10e1846b268bd5 | [
"MIT"
] | 1 | 2021-12-01T19:01:53.000Z | 2021-12-01T19:01:53.000Z | #include <string.h>
#include <sys/epoll.h>
#include <sys/inotify.h>
#include <iostream>
#include <async/doorbell.hpp>
#include <helix/ipc.hpp>
#include "fs.hpp"
#include "inotify.hpp"
#include "process.hpp"
#include "vfs.hpp"
namespace inotify {
namespace {
struct OpenFile : File {
public:
struct Packet {
int de... | 27.041958 | 107 | 0.703905 | avdgrinten |
89d71df45db0d567d681e5286bf650ef2dc12542 | 2,078 | cpp | C++ | Settings.cpp | mariosbikos/Augmented_Reality_Chess_Game_RGB-D | aa22b722a9f7b6f94891c6015166e39d1570c27c | [
"MIT"
] | 6 | 2016-05-29T01:10:33.000Z | 2019-12-04T13:34:05.000Z | Settings.cpp | mariosbikos/Augmented_Reality_Chess_Game_RGB-D | aa22b722a9f7b6f94891c6015166e39d1570c27c | [
"MIT"
] | null | null | null | Settings.cpp | mariosbikos/Augmented_Reality_Chess_Game_RGB-D | aa22b722a9f7b6f94891c6015166e39d1570c27c | [
"MIT"
] | 5 | 2015-11-22T14:36:29.000Z | 2021-03-31T06:52:21.000Z | #include "Settings.h"
void SetCameraParameters(std::string TheIntrinsicFile)
{
TheDistCameraParameters.readFromXMLFile(TheIntrinsicFile);
TheDistCameraParameters.resize(
cv::Size(constants::COLOR_WIDTH,constants::COLOR_HEIGHT) );
TheCameraParameters=TheDistCameraParameters;
//The cv::Mat Distortion of TheCame... | 42.408163 | 185 | 0.786814 | mariosbikos |
89d8347c92b8a2e321d3484e482702ff32661d41 | 1,091 | ipp | C++ | include/External/stlib/packages/numerical/random/gamma/GammaGeneratorMarsagliaTsang.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/numerical/random/gamma/GammaGeneratorMarsagliaTsang.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/numerical/random/gamma/GammaGeneratorMarsagliaTsang.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | // -*- C++ -*-
#if !defined(__numerical_random_GammaGeneratorMarsagliaTsang_ipp__)
#error This file is an implementation detail of GammaGeneratorMarsagliaTsang.
#endif
namespace numerical {
template < typename T,
class Uniform,
template<class> class Normal >
inline
typename GammaGenerat... | 26.609756 | 78 | 0.56187 | bxl295 |
89dbf4bcc8fd03715f0ec2ef881dda474025b745 | 7,308 | cpp | C++ | ControlX/wk.cpp | bikashtudu/Interfacing-and-Data-Acquisition-from-Scientific-Instruments | e2da91b2a9a8a7bf19aac75334925ae30b2c10e9 | [
"MIT"
] | null | null | null | ControlX/wk.cpp | bikashtudu/Interfacing-and-Data-Acquisition-from-Scientific-Instruments | e2da91b2a9a8a7bf19aac75334925ae30b2c10e9 | [
"MIT"
] | null | null | null | ControlX/wk.cpp | bikashtudu/Interfacing-and-Data-Acquisition-from-Scientific-Instruments | e2da91b2a9a8a7bf19aac75334925ae30b2c10e9 | [
"MIT"
] | 1 | 2018-08-04T14:12:15.000Z | 2018-08-04T14:12:15.000Z | #include "wk.h"
#include "ui_wk.h"
#include "measureset.h"
#include "traceset.h"
#include "wkmeter.h"
#include "QFile"
#include "QTextStream"
#include <QDebug>
#include "allfun4.h"
#include <QPixmap>
#define sta sta4
#define sto sto4
#define read read4
#define write write4
#define delay delay1
#include <QTime>
#include... | 20.132231 | 155 | 0.532704 | bikashtudu |
89e25d3362cd03cd30ac65a747e3a353fea83e1f | 7,427 | cpp | C++ | SDKs/CryCode/3.6.15/CryEngine/CryAction/GameRulesSystem.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.8.1/CryEngine/CryAction/GameRulesSystem.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.8.1/CryEngine/CryAction/GameRulesSystem.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | /*************************************************************************
Crytek Source File.
Copyright (C), Crytek Studios, 2001-2004.
-------------------------------------------------------------------------
$Id$
$DateTime$
Description:
-------------------------------------------------------------------------
Hist... | 29.240157 | 181 | 0.616534 | amrhead |
89e644052dd68012cdb4039d8972a40e186d0b90 | 2,977 | cpp | C++ | ALight-RayCPU-Reference/mesh.cpp | Asixa/ALight-Renderer-Complex | 30b1ac19053ee89f38ee5b10e85387c92309e5bc | [
"FTL"
] | 1 | 2020-07-28T09:25:51.000Z | 2020-07-28T09:25:51.000Z | ALight-RayCPU-Reference/mesh.cpp | Asixa/ALight-Renderer-Complex | 30b1ac19053ee89f38ee5b10e85387c92309e5bc | [
"FTL"
] | null | null | null | ALight-RayCPU-Reference/mesh.cpp | Asixa/ALight-Renderer-Complex | 30b1ac19053ee89f38ee5b10e85387c92309e5bc | [
"FTL"
] | null | null | null | #include "mesh.h"
Mesh::Mesh(const char *fileName, Material material)
{
m_fileName = fileName;
m_material = material;
if (loadObj() != 0)
{
std::cerr << "Mesh: Error loading " << m_fileName << std::endl;
std::exit(1);
}
std::cout << "Mesh: " << m_fileName << " has been loaded ... | 25.444444 | 88 | 0.356063 | Asixa |
89eae73ba1a6b81299a89893c8f328a496874954 | 287 | cpp | C++ | core/src/cubos/core/io/cursor.cpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | 2 | 2021-09-28T14:13:27.000Z | 2022-03-26T11:36:48.000Z | core/src/cubos/core/io/cursor.cpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | 72 | 2021-09-29T08:55:26.000Z | 2022-03-29T21:21:00.000Z | core/src/cubos/core/io/cursor.cpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | null | null | null | #include <cubos/core/io/cursor.hpp>
using namespace cubos::core;
#ifdef WITH_GLFW
io::Cursor::Cursor(GLFWcursor* handle)
{
this->glfwHandle = handle;
}
#endif
io::Cursor::~Cursor()
{
#ifdef WITH_GLFW
if (this->glfwHandle)
glfwDestroyCursor(this->glfwHandle);
#endif
}
| 15.105263 | 44 | 0.69338 | GameDevTecnico |
8851eb91b640daf6f65521884f718c6b6d402a14 | 41,327 | cpp | C++ | belatedly/src/belatedly.cpp | Ahziu/Delayed-Hits | 39e062a34ce7d3bb693dceff0a7e68ea1ee6864b | [
"BSD-3-Clause-Clear"
] | 15 | 2020-09-04T18:32:14.000Z | 2022-03-31T08:29:05.000Z | belatedly/src/belatedly.cpp | Ahziu/Delayed-Hits | 39e062a34ce7d3bb693dceff0a7e68ea1ee6864b | [
"BSD-3-Clause-Clear"
] | 1 | 2021-02-18T08:14:29.000Z | 2021-02-18T08:14:29.000Z | belatedly/src/belatedly.cpp | Ahziu/Delayed-Hits | 39e062a34ce7d3bb693dceff0a7e68ea1ee6864b | [
"BSD-3-Clause-Clear"
] | 4 | 2020-10-17T21:39:38.000Z | 2021-06-04T14:29:27.000Z | // STD headers
#include <assert.h>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <string>
#include <thread>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <vector>
// Boost headers
#include <boost/bimap.hpp>
#include <boost/program... | 40.397849 | 146 | 0.599753 | Ahziu |
885723fee25f1b0e86d62aea222192c1febd6e59 | 36,952 | cpp | C++ | src/fred2/briefingeditordlg.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 1 | 2020-07-14T07:29:18.000Z | 2020-07-14T07:29:18.000Z | src/fred2/briefingeditordlg.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 2 | 2019-01-01T22:35:56.000Z | 2022-03-14T07:34:00.000Z | src/fred2/briefingeditordlg.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 2 | 2021-03-07T11:40:42.000Z | 2021-12-26T21:40:39.000Z | /*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on
* the source.
*/
/*
* $Logfile: /Freespace2/code/Fred2/BriefingEditorDlg.cpp $
* $Revision: ... | 25.519337 | 151 | 0.675227 | ptitSeb |
885de00c45ededb4aef602920d57ebefdf333fbd | 768 | hpp | C++ | Jackal/Source/RenderDevice/Public/RenderDevice/TextureCubeMap.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | Jackal/Source/RenderDevice/Public/RenderDevice/TextureCubeMap.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | Jackal/Source/RenderDevice/Public/RenderDevice/TextureCubeMap.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 Jackal Engine, MIT License.
#pragma once
#include "Core/Platform/JTypes.hpp"
#include "Core/Structure/JString.hpp"
#include "Core/Utility/TextureLoader.hpp"
#include "RenderDeviceTypes.hpp"
#include "RenderObject.hpp"
namespace jackal {
// CubeMap Texture object.
class CubeMap : public Rende... | 20.210526 | 69 | 0.705729 | CheezBoiger |
8866263f42cea726dfa486f18f253b776670aa6a | 1,278 | cpp | C++ | daily_challenge/September_LeetCoding_Challenge_2021/minimizeDistanceToGasStation.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | 1 | 2021-01-27T16:37:36.000Z | 2021-01-27T16:37:36.000Z | daily_challenge/September_LeetCoding_Challenge_2021/minimizeDistanceToGasStation.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | daily_challenge/September_LeetCoding_Challenge_2021/minimizeDistanceToGasStation.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | /**
* @author : archit
* @GitHub : archit-1997
* @Email : architsingh456@gmail.com
* @file : minimizeDistanceToGasStation.cpp
* @created : Saturday Sep 18, 2021 02:17:22 IST
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define P pair<int,int>
void init(){
fr... | 23.666667 | 83 | 0.536776 | archit-1997 |
88671c98ae280e3f980ab324078c10e768fd8152 | 304 | cpp | C++ | codeforces/codeforces_100_days/B/2.cpp | shivanshu-semwal/competitive-programming | b1c7fe1f9d5807fff47890267cc9936c9ff95f58 | [
"MIT"
] | 1 | 2021-09-24T03:57:42.000Z | 2021-09-24T03:57:42.000Z | codeforces/codeforces_100_days/B/2.cpp | shivanshu-semwal/competitive-programming | b1c7fe1f9d5807fff47890267cc9936c9ff95f58 | [
"MIT"
] | null | null | null | codeforces/codeforces_100_days/B/2.cpp | shivanshu-semwal/competitive-programming | b1c7fe1f9d5807fff47890267cc9936c9ff95f58 | [
"MIT"
] | null | null | null | // https://codeforces.com/problemset/problem/734/B
#include <iostream>
using namespace std;
int main() {
long k2, k3, k5, k6;
cin >> k2 >> k3 >> k5 >> k6;
long min1 = std::min(k2, min(k5, k6));
long long int ans = min1 * 256 + min(k2 - min1, k3) * 32;
cout << ans;
return 0;
}
| 20.266667 | 61 | 0.565789 | shivanshu-semwal |
886c4cd447dee614e0df4c02fbf260fdb26218e9 | 1,201 | hpp | C++ | include/caffe/util/parallel.hpp | whitenightwu/caffe-quant-TI | df1551f184d9d5e850650af0e7a68206d09cea2d | [
"MIT"
] | 2 | 2019-06-06T13:15:46.000Z | 2019-06-20T08:14:45.000Z | include/caffe/util/parallel.hpp | whitenightwu/caffe-quant-TI | df1551f184d9d5e850650af0e7a68206d09cea2d | [
"MIT"
] | null | null | null | include/caffe/util/parallel.hpp | whitenightwu/caffe-quant-TI | df1551f184d9d5e850650af0e7a68206d09cea2d | [
"MIT"
] | 1 | 2020-03-24T02:04:59.000Z | 2020-03-24T02:04:59.000Z | /**
* TI C++ Reference software for Computer Vision Algorithms (TICV)
* TICV is a software module developed to model computer vision
* algorithms on TI's various platforms/SOCs.
*
* Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
* ALL RIGHTS RESERVED
*/
/**
* @file: parallel.h
* ... | 24.510204 | 105 | 0.642798 | whitenightwu |
8872a557b0e6db1a52000ce44d6176f8cd4af1dd | 3,055 | hpp | C++ | include/espadin/comments_group.hpp | mexicowilly/Espadin | f33580d2c77c5efe92c05de0816ec194e87906f0 | [
"Apache-2.0"
] | null | null | null | include/espadin/comments_group.hpp | mexicowilly/Espadin | f33580d2c77c5efe92c05de0816ec194e87906f0 | [
"Apache-2.0"
] | null | null | null | include/espadin/comments_group.hpp | mexicowilly/Espadin | f33580d2c77c5efe92c05de0816ec194e87906f0 | [
"Apache-2.0"
] | null | null | null | #if !defined(ESPADIN_COMMENTS_GROUP_HPP_)
#define ESPADIN_COMMENTS_GROUP_HPP_
#include <espadin/comment.hpp>
#include <memory>
namespace espadin
{
class ESPADIN_EXPORT comments_group
{
public:
class create_interface
{
public:
virtual ~create_interface() = default;
virtual std::unique_ptr... | 29.375 | 107 | 0.615712 | mexicowilly |
887b0e7e8d39ff75c07236fe027d06843ce6b2f3 | 2,043 | cpp | C++ | 01/solution.cpp | IAmBullsaw/AOC-2017 | c320ea275403d261ebc0dbd8f46c8fb62453dc97 | [
"MIT"
] | null | null | null | 01/solution.cpp | IAmBullsaw/AOC-2017 | c320ea275403d261ebc0dbd8f46c8fb62453dc97 | [
"MIT"
] | null | null | null | 01/solution.cpp | IAmBullsaw/AOC-2017 | c320ea275403d261ebc0dbd8f46c8fb62453dc97 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int solveCaptcha(string & captcha) {
captcha.push_back(captcha.front());
string::const_iterator it{captcha.begin()};
int sum{0};
while(it != captcha.end()) {
char letter{*it};
unsigned n{0};
do {
if (letter == *(it+1+n)) {
++n... | 24.614458 | 57 | 0.565835 | IAmBullsaw |
887f1664c29e830bcfde11052ab662a9c323950c | 5,611 | cpp | C++ | src/slaggy-engine/slaggy-engine/engine/Shader.cpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | 1 | 2021-09-24T23:13:13.000Z | 2021-09-24T23:13:13.000Z | src/slaggy-engine/slaggy-engine/engine/Shader.cpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | null | null | null | src/slaggy-engine/slaggy-engine/engine/Shader.cpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | 2 | 2020-06-24T07:10:13.000Z | 2022-03-08T17:19:12.000Z | #include "Shader.hpp"
#include <fstream>
#include <sstream>
#include <iostream>
#include <glm/gtc/type_ptr.hpp>
namespace slaggy
{
std::map<Shader::ShaderType, Shader::ShaderTypeInfo> Shader::_shaderTypes =
{
{ShaderType::VERTEX, {"VERTEX", GL_VERTEX_SHADER}},
{ShaderType::FRAGMENT, {"FRAGMENT", GL_FRAGMENT_S... | 22.716599 | 112 | 0.679023 | SlaggyWolfie |
8881516f07cb80f2fe4b38071deddf5a594c62a4 | 5,164 | cpp | C++ | 2018/0325_ARC093/E.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 7 | 2019-03-24T14:06:29.000Z | 2020-09-17T21:16:36.000Z | 2018/0325_ARC093/E.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | null | null | null | 2018/0325_ARC093/E.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 1 | 2020-07-22T17:27:09.000Z | 2020-07-22T17:27:09.000Z | /**
* File : E.cpp
* Author : Kazune Takahashi
* Created : 2018-3-25 21:58:58
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // to_string(nnn)... | 19.785441 | 103 | 0.480442 | kazunetakahashi |
88842f01a273fce974ec20e86b3a43e9eedd4796 | 1,412 | cpp | C++ | src/problem79/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | 1 | 2016-09-29T14:23:59.000Z | 2016-09-29T14:23:59.000Z | src/problem79/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | null | null | null | src/problem79/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
bool exist(vector<vector<char>>& board, string word) {
len = word.size();
if (len == 0) {
return false;
}
row = board.size();
if (row == 0)
return false;
col = board[0].size();
if (col == 0)
return f... | 31.377778 | 98 | 0.445467 | MyYaYa |
889048e718aec3cb4029716789daa16ce803a323 | 1,071 | cpp | C++ | src/measurecurrent.cpp | WAAM-UFJF/Ensaio-Frequencia | 7063eb764872f5039c5ce203c894402d7edaab46 | [
"MIT"
] | null | null | null | src/measurecurrent.cpp | WAAM-UFJF/Ensaio-Frequencia | 7063eb764872f5039c5ce203c894402d7edaab46 | [
"MIT"
] | null | null | null | src/measurecurrent.cpp | WAAM-UFJF/Ensaio-Frequencia | 7063eb764872f5039c5ce203c894402d7edaab46 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <Adafruit_INA219.h>
// Definição do sensor de corrente e tensão.
Adafruit_INA219 ina219_0 (0x40);
// Define o valor de amostras para a media movel
static const int N = 128;
static const float n = 1.0/N;
static float mediaMovel[N];
static int contador=0;
void inicializaINA(){
while ... | 22.787234 | 54 | 0.612512 | WAAM-UFJF |
88906223a4d3d9e5c88edaf0266e2134e5a36e9c | 9,716 | cpp | C++ | Sources Age of Enigma/Scene_Island_Dive.cpp | calidrelle/Gamecodeur | 4449ea1dce02b8f08e39d258d864546fcc9b2fc6 | [
"CC0-1.0"
] | 29 | 2016-05-04T08:22:46.000Z | 2022-01-27T10:20:55.000Z | Sources Age of Enigma/Scene_Island_Dive.cpp | calidrelle/Gamecodeur | 4449ea1dce02b8f08e39d258d864546fcc9b2fc6 | [
"CC0-1.0"
] | 1 | 2018-11-25T14:12:39.000Z | 2018-11-25T14:12:39.000Z | Sources Age of Enigma/Scene_Island_Dive.cpp | calidrelle/Gamecodeur | 4449ea1dce02b8f08e39d258d864546fcc9b2fc6 | [
"CC0-1.0"
] | 49 | 2016-04-29T19:43:42.000Z | 2022-02-19T16:13:35.000Z | /*
* SceneFondMarin.cpp
*
* Created by Rockford on 19/04/10.
* Copyright 2010 Casual Games France. All rights reserved.
*
*/
#include "EScene.h"
#include "Scene_Island_Dive.h"
#include "ESceneDirector.h"
#include "SoundBank.h"
#include "MyGame.h"
#include <string>
#include "EMiniJeuTemplate.h"
#include "Globa... | 32.066007 | 138 | 0.63555 | calidrelle |
8895a634fb861c4d0f7d42812b8a21a98dce0726 | 1,557 | hpp | C++ | Game/Physics.hpp | Zakhar-V/Game32k | 1b44efb539c0382500511cb0190f00ccbfbe3243 | [
"MIT"
] | null | null | null | Game/Physics.hpp | Zakhar-V/Game32k | 1b44efb539c0382500511cb0190f00ccbfbe3243 | [
"MIT"
] | null | null | null | Game/Physics.hpp | Zakhar-V/Game32k | 1b44efb539c0382500511cb0190f00ccbfbe3243 | [
"MIT"
] | null | null | null | #pragma once
#include "Scene.hpp"
//----------------------------------------------------------------------------//
// Defs
//----------------------------------------------------------------------------//
//----------------------------------------------------------------------------//
// PhysicsBody
//---... | 22.897059 | 81 | 0.23571 | Zakhar-V |
88a0031164db190941245acab3b8bb995ce5c9d2 | 637 | cpp | C++ | rt/rt/cameras/perspective.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/cameras/perspective.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/cameras/perspective.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | #include <rt/cameras/perspective.h>
#include <rt/ray.h>
#include <cmath>
#include <iostream>
namespace rt
{
PerspectiveCamera::PerspectiveCamera(const Point& center, const Vector& forward,
const Vector& up, float verticalOpeningAngle, float horizontalOpeningAngle)
: center(center)
, focal(forward.normalize())... | 23.592593 | 80 | 0.704867 | DasNaCl |
88a1ef50564b78b62b5e7e2bab2b98d5beb9b829 | 32 | cpp | C++ | code/source/Octree.cpp | MajiKau/MoosEngine | 3fca25f52129a33f438d0b3477a810d1f6c83a3f | [
"MIT"
] | null | null | null | code/source/Octree.cpp | MajiKau/MoosEngine | 3fca25f52129a33f438d0b3477a810d1f6c83a3f | [
"MIT"
] | null | null | null | code/source/Octree.cpp | MajiKau/MoosEngine | 3fca25f52129a33f438d0b3477a810d1f6c83a3f | [
"MIT"
] | null | null | null | #include "code/headers/Octree.h" | 32 | 32 | 0.78125 | MajiKau |
88b4bbed90633e0e94837c47bc3a79716d3bcf98 | 1,923 | hpp | C++ | lib/abcresub/abcresub/vec_wrd.hpp | osamamowafy/mockturtle | 840ff314e9f5301686790a517c383240f1403588 | [
"MIT"
] | 98 | 2018-06-15T09:28:11.000Z | 2022-03-31T15:42:48.000Z | lib/abcresub/abcresub/vec_wrd.hpp | osamamowafy/mockturtle | 840ff314e9f5301686790a517c383240f1403588 | [
"MIT"
] | 257 | 2018-05-09T12:14:28.000Z | 2022-03-30T16:12:14.000Z | lib/abcresub/abcresub/vec_wrd.hpp | osamamowafy/mockturtle | 840ff314e9f5301686790a517c383240f1403588 | [
"MIT"
] | 75 | 2020-11-26T13:05:15.000Z | 2021-12-24T00:28:18.000Z | /*!
\file vec_wrd.hpp
\brief Extracted from ABC
https://github.com/berkeley-abc/abc
\author Alan Mishchenko (UC Berkeley)
*/
#pragma once
namespace abcresub
{
typedef struct Vec_Wrd_t_ Vec_Wrd_t;
struct Vec_Wrd_t_
{
int nCap;
int nSize;
word * pArray;... | 18.141509 | 62 | 0.552782 | osamamowafy |
88b562af416f747ac467974e3d2d9f316b8cc77c | 464 | cpp | C++ | app/bootloader/default_bd.cpp | HPezz/LekaOS | e4c16f52e2c7bd3d75c9d5aefe94eb67dbf5a694 | [
"Apache-2.0"
] | 2 | 2021-10-30T20:51:30.000Z | 2022-01-12T11:18:34.000Z | app/bootloader/default_bd.cpp | HPezz/LekaOS | e4c16f52e2c7bd3d75c9d5aefe94eb67dbf5a694 | [
"Apache-2.0"
] | 343 | 2021-07-15T12:57:08.000Z | 2022-03-29T10:14:06.000Z | app/bootloader/default_bd.cpp | HPezz/LekaOS | e4c16f52e2c7bd3d75c9d5aefe94eb67dbf5a694 | [
"Apache-2.0"
] | 3 | 2021-12-30T02:53:24.000Z | 2022-01-11T22:08:05.000Z | // Leka - LekaOS
// Copyright 2021 APF France handicap
// SPDX-License-Identifier: Apache-2.0
#include "QSPIFBlockDevice.h"
#include "SlicingBlockDevice.h"
auto get_secondary_bd() -> mbed::BlockDevice *
{
// In this case, our flash is much larger than a single image so
// slice it into the size of an image slot
s... | 24.421053 | 81 | 0.734914 | HPezz |
88c1c46e3fb983cd08d102bef22f878a3d7a3b6f | 42,925 | hpp | C++ | include/libopfcpp/OPF.hpp | thierrypin/LibOPFcpp | 27614069e6600a1a2cab0d016018103b4eea1ee5 | [
"Apache-2.0"
] | 4 | 2019-05-06T14:44:53.000Z | 2021-11-07T17:09:44.000Z | include/libopfcpp/OPF.hpp | thierrypin/LibOPFcpp | 27614069e6600a1a2cab0d016018103b4eea1ee5 | [
"Apache-2.0"
] | null | null | null | include/libopfcpp/OPF.hpp | thierrypin/LibOPFcpp | 27614069e6600a1a2cab0d016018103b4eea1ee5 | [
"Apache-2.0"
] | null | null | null | /******************************************************
* A C++ program for the OPF classification machine, *
* all contained in a single header file. *
* *
* Author: Thierry Moreira *
* ... | 27.855289 | 169 | 0.554595 | thierrypin |
88c5cdc5e757ed0ae1d023cf9a5501e289a7821d | 214 | cpp | C++ | Loops/displayDigits/displayDigits.cpp | ntjohns1/cppPractice | c9c18bec889cde56217f68996077b9d409ceef04 | [
"Apache-2.0"
] | null | null | null | Loops/displayDigits/displayDigits.cpp | ntjohns1/cppPractice | c9c18bec889cde56217f68996077b9d409ceef04 | [
"Apache-2.0"
] | null | null | null | Loops/displayDigits/displayDigits.cpp | ntjohns1/cppPractice | c9c18bec889cde56217f68996077b9d409ceef04 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
int n, digit;
cout<<"enter a number: ";
cin>>n;
while(n>0)
{
digit=n%10;
n=n/10;
cout<<digit<<" ";
}
} | 12.588235 | 30 | 0.448598 | ntjohns1 |
88c6dbab693d2a7388d9602126c089369a4a106d | 20,322 | cpp | C++ | src/caffe/multi_node/fc_thread.cpp | AIROBOTAI/caffe-mnode | e8b03bfb04f09dce21c9b5bbf66dacecb095d3e1 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/multi_node/fc_thread.cpp | AIROBOTAI/caffe-mnode | e8b03bfb04f09dce21c9b5bbf66dacecb095d3e1 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/multi_node/fc_thread.cpp | AIROBOTAI/caffe-mnode | e8b03bfb04f09dce21c9b5bbf66dacecb095d3e1 | [
"BSD-2-Clause"
] | null | null | null |
#include <map>
#include <string>
#include <vector>
#include "caffe/multi_node/fc_thread.hpp"
#include "caffe/multi_node/param_helper.hpp"
namespace caffe {
template <typename Dtype>
ParamBuf<Dtype> *FcWorker<Dtype>::pbuf_ = NULL;
template <typename Dtype>
boost::once_flag FcWorker<Dtype>::once_;
template <typenam... | 27.277852 | 80 | 0.635026 | AIROBOTAI |
88c838d2c91fe5fe7986ecd1f2f442f8990ce5c5 | 4,497 | hh | C++ | firmware/src/MightyBoard/shared/LcdBoard.hh | MalyanSystem/Malyan-M180-Sailfish | 8dd1ee7178a631f0e54c10db91ab3a18b370c363 | [
"AAL"
] | 2 | 2020-08-16T00:24:59.000Z | 2021-03-17T10:37:18.000Z | firmware/src/MightyBoard/shared/LcdBoard.hh | MalyanSystem/Malyan-M180-Sailfish | 8dd1ee7178a631f0e54c10db91ab3a18b370c363 | [
"AAL"
] | null | null | null | firmware/src/MightyBoard/shared/LcdBoard.hh | MalyanSystem/Malyan-M180-Sailfish | 8dd1ee7178a631f0e54c10db91ab3a18b370c363 | [
"AAL"
] | 1 | 2015-02-01T08:47:20.000Z | 2015-02-01T08:47:20.000Z | /*
* Copyright 2013 by Yongzong Lin <yongzong@malyansys.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
... | 34.592308 | 117 | 0.683567 | MalyanSystem |
88cbb50b6aeae06e424b64a97f1ff0b684e81f2c | 2,868 | cpp | C++ | BinaryTree.cpp | unigoetheradaw/AbstractDataTypes | 5e91af09d159afe68dbb4c19de9387b2139ea5e7 | [
"MIT"
] | null | null | null | BinaryTree.cpp | unigoetheradaw/AbstractDataTypes | 5e91af09d159afe68dbb4c19de9387b2139ea5e7 | [
"MIT"
] | null | null | null | BinaryTree.cpp | unigoetheradaw/AbstractDataTypes | 5e91af09d159afe68dbb4c19de9387b2139ea5e7 | [
"MIT"
] | null | null | null | //
// Created by Robert on 18/09/2019.
//
#include <iostream>
#include <stdio.h>
#include <array>
#include <iomanip>
using namespace std;
class BinaryTree {
private:
typedef struct Node {
int data;
Node *left = nullptr;
Node *right = nullptr;
};
Node *root;
publ... | 23.9 | 67 | 0.448396 | unigoetheradaw |
88d5ff603da09a240e513f72962a969765012868 | 100 | hh | C++ | source/src/hardware/driver/serial/pwmcontroller.hh | Dr-MunirShah/black-sheep | e908203d9516e01f90f4ed4c796cf4143d0df0c0 | [
"MIT"
] | 7 | 2019-07-25T10:06:31.000Z | 2021-02-20T06:00:51.000Z | source/src/hardware/driver/serial/pwmcontroller.hh | Dr-MunirShah/black-sheep | e908203d9516e01f90f4ed4c796cf4143d0df0c0 | [
"MIT"
] | null | null | null | source/src/hardware/driver/serial/pwmcontroller.hh | Dr-MunirShah/black-sheep | e908203d9516e01f90f4ed4c796cf4143d0df0c0 | [
"MIT"
] | 1 | 2019-08-31T23:32:02.000Z | 2019-08-31T23:32:02.000Z | #pragma once
#include "serial.hh"
class PWMController : public Serial{
using Serial::Serial;
};
| 12.5 | 36 | 0.72 | Dr-MunirShah |
88d8e2a584a1e2ff43810daacdcc69315a79e0bf | 6,678 | cpp | C++ | test/TestAlgorithm.cpp | AdrianWR/ft_containers | a6b519806448853b97dff385cf72dfc0e97c8ea2 | [
"MIT"
] | null | null | null | test/TestAlgorithm.cpp | AdrianWR/ft_containers | a6b519806448853b97dff385cf72dfc0e97c8ea2 | [
"MIT"
] | 3 | 2022-02-10T12:16:37.000Z | 2022-03-24T03:15:01.000Z | test/TestAlgorithm.cpp | AdrianWR/ft_containers | a6b519806448853b97dff385cf72dfc0e97c8ea2 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "algorithm.hpp"
#include <algorithm>
#include <deque>
#include <map>
#include <string>
#include <vector>
bool pred_int(int a, int b) { return a == b; }
bool pred_str(std::string a, std::string b) { return a == b; }
bool pred_map(std::pair<int, int> a, std::pair<int, int> b) { return ... | 41.7375 | 79 | 0.549117 | AdrianWR |
88de24f2162a886a0a7fc0f5fe81527bf16e7306 | 801 | cpp | C++ | PATest_paractice/PAT_1005.cpp | Ginuo/DataStructure_Algorithm | 3db0b328eeab9270fca14123061551de087d186c | [
"Apache-2.0"
] | null | null | null | PATest_paractice/PAT_1005.cpp | Ginuo/DataStructure_Algorithm | 3db0b328eeab9270fca14123061551de087d186c | [
"Apache-2.0"
] | null | null | null | PATest_paractice/PAT_1005.cpp | Ginuo/DataStructure_Algorithm | 3db0b328eeab9270fca14123061551de087d186c | [
"Apache-2.0"
] | null | null | null | #include<cstdio>
#include<cstring>
int main(){
char num[110];
gets(num);
int len = strlen(num);
int sum = 0;
for(int i = 0; i < len; i++){
sum = sum + (num[i] - '0');
}
int ans[100];
int index = 0;
do{
ans[index++] = sum % 10;
sum = sum / 10;
}while(sum != 0);
for(int i = index-1 ; i >= 0; i--){
... | 14.052632 | 36 | 0.486891 | Ginuo |
88df77e9b7aab27a0fce060078d0e5d3c0ee4812 | 349 | cpp | C++ | Problems/0026. Remove Duplicates from Sorted Array.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0026. Remove Duplicates from Sorted Array.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0026. Remove Duplicates from Sorted Array.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | #define pb push_back
class Solution {
public:
int removeDuplicates(vector<int>& nums) {
vector<int> v = nums;
nums.clear();
if(v.empty())
return 0;
nums.pb(v[0]);
for(int i=1;i<(int)v.size();i++)
if(v[i]!=v[i-1])
nums.pb(v[i]);
... | 21.8125 | 45 | 0.461318 | KrKush23 |
88e0f213a66a9ca4bda465c4039eb14e71d9b10f | 11,031 | cpp | C++ | Generation.cpp | DiscoveryInstitute/coaly | 3b9617b13887ae30423b192dcf89526d84b64d29 | [
"MIT"
] | null | null | null | Generation.cpp | DiscoveryInstitute/coaly | 3b9617b13887ae30423b192dcf89526d84b64d29 | [
"MIT"
] | null | null | null | Generation.cpp | DiscoveryInstitute/coaly | 3b9617b13887ae30423b192dcf89526d84b64d29 | [
"MIT"
] | null | null | null | #include "Generation.h"
#include <cmath>
#include <limits>
#include <numeric>
#include <vector>
using namespace std;
const double EPSILON = numeric_limits<double>::epsilon();
/**
* Given lambda, the expected number of ancestral children per member of the population,
* calculate the probability of h... | 39.823105 | 159 | 0.637567 | DiscoveryInstitute |
88e10f35fbebe90c460f2cc957b8d6446c2f40f4 | 11,947 | cpp | C++ | src/core/cruntimetracker.cpp | squigglepuff/XonMap | 3c426c9fd66eda77c34d78dd45566062c702f6b9 | [
"Apache-2.0"
] | null | null | null | src/core/cruntimetracker.cpp | squigglepuff/XonMap | 3c426c9fd66eda77c34d78dd45566062c702f6b9 | [
"Apache-2.0"
] | null | null | null | src/core/cruntimetracker.cpp | squigglepuff/XonMap | 3c426c9fd66eda77c34d78dd45566062c702f6b9 | [
"Apache-2.0"
] | null | null | null | #include "core/cruntimetracker.h"
std::unique_ptr<GlobalCVariables> g_pCVars;
std::unique_ptr<CRuntimeTracker> g_CrtTracker{new CRuntimeTracker};
// These are local to this module only!
#if defined(Q_OS_WINDOWS)
static PDH_HQUERY gCpuQuery;
static PDH_HCOUNTER gCpuTotal;
#endif //#if (Q_OS_WINDOWS).
CRunt... | 34.232092 | 167 | 0.594291 | squigglepuff |
88e1b0fc6478fec4b82d0773bd836b5a33f953f5 | 539 | hpp | C++ | kernel/frame_buffer.hpp | three-0-3/my-mikanos | e85f9e15d735babde1650c6fa87ffed210dece6d | [
"Apache-2.0"
] | null | null | null | kernel/frame_buffer.hpp | three-0-3/my-mikanos | e85f9e15d735babde1650c6fa87ffed210dece6d | [
"Apache-2.0"
] | null | null | null | kernel/frame_buffer.hpp | three-0-3/my-mikanos | e85f9e15d735babde1650c6fa87ffed210dece6d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <memory>
#include <vector>
#include "error.hpp"
#include "frame_buffer_config.hpp"
#include "graphics.hpp"
class FrameBuffer {
public:
// Initialize frame buffer by checking config
Error Initialize(const FrameBufferConfig& config);
FrameBufferWriter& Writer() { return *writer_; }
pri... | 22.458333 | 58 | 0.755102 | three-0-3 |
88e8a13a7f84538b0c31962a5996f038437f4554 | 3,112 | cpp | C++ | BroadCast_QT/group.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | 1 | 2016-01-05T07:24:32.000Z | 2016-01-05T07:24:32.000Z | BroadCast_QT/group.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | null | null | null | BroadCast_QT/group.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2014 by Project Tox <https://tox.im>
This file is part of qTox, a Qt-based graphical interface for Tox.
This program is libre software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either v... | 25.933333 | 80 | 0.646208 | mickelfeng |
88ee8bc44a0180d2b8890165543ced054bbbad66 | 1,102 | cc | C++ | callback.cc | stories2/Native-Node-JS | 583a2db17b0f398779378294ea21a7034ee2c815 | [
"MIT"
] | null | null | null | callback.cc | stories2/Native-Node-JS | 583a2db17b0f398779378294ea21a7034ee2c815 | [
"MIT"
] | null | null | null | callback.cc | stories2/Native-Node-JS | 583a2db17b0f398779378294ea21a7034ee2c815 | [
"MIT"
] | null | null | null | #include <node.h>
#include <nan.h>
namespace function_arg
{
// using v8::FunctionCallbackInfo;
using v8::Isolate;
using v8::Local;
using v8::Object;
using v8::String;
using v8::Value;
using v8::Context;
using v8::Number;
using v8::Function;
void CallbackFunc(const Nan::Function... | 27.55 | 72 | 0.599819 | stories2 |
88efae45ad5296fd391e686bde3f9b4bb9c75edf | 310 | cpp | C++ | LeetCode/Problems/Algorithms/#1480_RunningSumOf1DArray_sol2.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#1480_RunningSumOf1DArray_sol2.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#1480_RunningSumOf1DArray_sol2.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> runningSum(vector<int>& nums) {
const int N = nums.size();
vector<int> prefSum(N);
prefSum[0] = nums[0];
for(int i = 1; i < N; ++i){
prefSum[i] = prefSum[i - 1] + nums[i];
}
return prefSum;
}
}; | 25.833333 | 51 | 0.464516 | Tudor67 |
88f245d407e5f703cb66c9e7e6d8a2bfee10af68 | 594 | hpp | C++ | mpipe/modules/mod_equalizer.hpp | m-kus/mpipe | 82e2e93200030b89d76544cee13aabedf318ea0c | [
"MIT"
] | 2 | 2019-02-09T14:31:03.000Z | 2019-05-03T05:46:15.000Z | mpipe/modules/mod_equalizer.hpp | m-kus/mpipe | 82e2e93200030b89d76544cee13aabedf318ea0c | [
"MIT"
] | null | null | null | mpipe/modules/mod_equalizer.hpp | m-kus/mpipe | 82e2e93200030b89d76544cee13aabedf318ea0c | [
"MIT"
] | null | null | null | #pragma once
#include <core/mpipe.hpp>
#include <algorithm>
namespace mpipe
{
class ModEqualizer : public Module
{
public:
void Mutate(State* state) override
{
int64_t target_qty = 0;
for (auto& order : state->orders)
{
int64_t common_qty = order.qty / npabs(order.security->leg_factor);
if (... | 16.971429 | 71 | 0.624579 | m-kus |
88f7df8b08b019b9ba10bdf20a3bdf89d2dea2b7 | 357 | hpp | C++ | plugins/samefolder/version.hpp | TheChatty/FarManager | 0a731ce0b6f9f48f10eb370240309bed48e38f11 | [
"BSD-3-Clause"
] | 1 | 2019-11-15T10:13:04.000Z | 2019-11-15T10:13:04.000Z | plugins/samefolder/version.hpp | TheChatty/FarManager | 0a731ce0b6f9f48f10eb370240309bed48e38f11 | [
"BSD-3-Clause"
] | 1 | 2021-01-21T13:57:07.000Z | 2021-01-21T13:57:07.000Z | plugins/samefolder/version.hpp | TheChatty/FarManager | 0a731ce0b6f9f48f10eb370240309bed48e38f11 | [
"BSD-3-Clause"
] | null | null | null | #include "farversion.hpp"
#define PLUGIN_BUILD 1
#define PLUGIN_DESC L"Same Folder Plugin for Far Manager"
#define PLUGIN_NAME L"SameFolder"
#define PLUGIN_FILENAME L"SameFolder.dll"
#define PLUGIN_AUTHOR L"Far Group"
#define PLUGIN_VERSION MAKEFARVERSION(FARMANAGERVERSION_MAJOR,FARMANAGERVERSION_MINOR,FARMANAGERVERSI... | 39.666667 | 137 | 0.854342 | TheChatty |
0000dfdb0fea5abd19ee2dc1cfe3801c3a6cc439 | 5,240 | cpp | C++ | src/xray/editor/world/sources/particle_graph_node_collection.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/editor/world/sources/particle_graph_node_collection.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/editor/world/sources/particle_graph_node_collection.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 27.01.2010
// Author :
// Copyright (C) GSC Game World - 2010
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "particle_graph_node.h"
#include "particle_graph_node... | 31.005917 | 114 | 0.702863 | ixray-team |
0002cc1256b81fdab140ea63ebd2246830591eb1 | 637 | cpp | C++ | src/HiContrastThemeAsCeeCode.cpp | CHRYSICS/audacity | ce1b172825cb8dcc4b7cb2bb52a4f62946f0b141 | [
"CC-BY-3.0"
] | 1 | 2021-11-01T10:32:52.000Z | 2021-11-01T10:32:52.000Z | src/HiContrastThemeAsCeeCode.cpp | CHRYSICS/audacity | ce1b172825cb8dcc4b7cb2bb52a4f62946f0b141 | [
"CC-BY-3.0"
] | null | null | null | src/HiContrastThemeAsCeeCode.cpp | CHRYSICS/audacity | ce1b172825cb8dcc4b7cb2bb52a4f62946f0b141 | [
"CC-BY-3.0"
] | null | null | null | /*!********************************************************************
Audacity: A Digital Audio Editor
@file HiContrastThemeAsCeeCode.cpp
Paul Licameli split from Theme.cpp
**********************************************************************/
#include <vector>
#include "Theme.h"
static const std::vect... | 26.541667 | 72 | 0.576138 | CHRYSICS |
322fd6e8955bb801f5a5c6578c0b83bf195344b7 | 16,027 | cpp | C++ | Shoot/src/PropertyStream.cpp | franticsoftware/starports | d723404b20383949874868c251c60cfa06120fde | [
"MIT"
] | 5 | 2016-11-13T08:13:57.000Z | 2019-03-31T10:22:38.000Z | Shoot/src/PropertyStream.cpp | franticsoftware/starports | d723404b20383949874868c251c60cfa06120fde | [
"MIT"
] | null | null | null | Shoot/src/PropertyStream.cpp | franticsoftware/starports | d723404b20383949874868c251c60cfa06120fde | [
"MIT"
] | 1 | 2016-12-23T11:25:35.000Z | 2016-12-23T11:25:35.000Z | /*
Amine Rehioui
Created: February 24th 2010
*/
#include "Shoot.h"
#include "PropertyStream.h"
#include "MaterialProvider.h"
#include "rapidxml.hpp"
namespace shoot
{
//! Destructor
PropertyStream::~PropertyStream()
{
Clear();
}
//! reads/write from a property from this stream
void PropertyStream::Ser... | 29.67963 | 158 | 0.683222 | franticsoftware |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.