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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e85659c8a6c118ebe7e4ed04bee70cd125b1ee6 | 5,729 | cpp | C++ | Software/Remote-Control/LCD/settings.cpp | Nils2332/Timelapsebuild | b52f6aef94047295e815dabe2a9db1f44e46d883 | [
"MIT"
] | null | null | null | Software/Remote-Control/LCD/settings.cpp | Nils2332/Timelapsebuild | b52f6aef94047295e815dabe2a9db1f44e46d883 | [
"MIT"
] | null | null | null | Software/Remote-Control/LCD/settings.cpp | Nils2332/Timelapsebuild | b52f6aef94047295e815dabe2a9db1f44e46d883 | [
"MIT"
] | null | null | null | /*
* settings.cpp
*
* Created on: 02.04.2019
* Author: Nils
*/
#include "settings.h"
#include "Gui.h"
#include "math.h"
#include "lvgl.h"
#include "joycon.h"
#include "App.h"
#include "System.h"
static lv_res_t fkt_Jaw_min(lv_obj_t *btn);
static lv_res_t fkt_Jaw_max(lv_obj_t *btn);
static lv_res_t fkt_Pit... | 26.896714 | 81 | 0.699948 | Nils2332 |
2e8717ba32c0ba0666497ed6a52f05b851ac8e46 | 1,997 | hh | C++ | include/premaidai_teleoperation/interactive_marker.hh | chikuta/premaidai_teleoperation | b2bae0e09d0c923a9aeb4ebea1b4c4e2cb85e2d4 | [
"MIT"
] | null | null | null | include/premaidai_teleoperation/interactive_marker.hh | chikuta/premaidai_teleoperation | b2bae0e09d0c923a9aeb4ebea1b4c4e2cb85e2d4 | [
"MIT"
] | null | null | null | include/premaidai_teleoperation/interactive_marker.hh | chikuta/premaidai_teleoperation | b2bae0e09d0c923a9aeb4ebea1b4c4e2cb85e2d4 | [
"MIT"
] | null | null | null | #ifndef _PREMAIDAI_INTERACTIVE_MARKER_HH_
#define _PREMAIDAI_INTERACTIVE_MARKER_HH_
#include <ros/ros.h>
#include <std_srvs/Empty.h>
#include <tf2_ros/transform_broadcaster.h>
#include <tf2_ros/transform_listener.h>
#include <interactive_markers/interactive_marker_server.h>
namespace premaidai_teleoperation
{
class ... | 42.489362 | 119 | 0.699549 | chikuta |
2e8cac60d5c21599a6e03391c8585c04fcaf87ea | 5,905 | cc | C++ | modules/intermodal/src/query_bounds.cc | dgcl/motis | 6b134f80aa3b6445f710418962f1fed9cffda3a0 | [
"MIT"
] | 2 | 2020-08-11T19:41:58.000Z | 2021-12-10T16:05:52.000Z | modules/intermodal/src/query_bounds.cc | dgcl/motis | 6b134f80aa3b6445f710418962f1fed9cffda3a0 | [
"MIT"
] | null | null | null | modules/intermodal/src/query_bounds.cc | dgcl/motis | 6b134f80aa3b6445f710418962f1fed9cffda3a0 | [
"MIT"
] | 1 | 2021-10-06T13:48:23.000Z | 2021-10-06T13:48:23.000Z | #include "motis/intermodal/query_bounds.h"
#include "utl/verify.h"
#include "motis/core/access/station_access.h"
#include "motis/module/context/motis_call.h"
#include "motis/module/message.h"
#include "motis/intermodal/error.h"
using namespace flatbuffers;
using namespace motis::routing;
using namespace motis::modu... | 37.852564 | 80 | 0.584589 | dgcl |
2e8fda6cf4184d3935b4202492bdc60e23b818db | 2,033 | cpp | C++ | demos/sjtwo/esp8266/source/main.cpp | diarkia124/SJSU-Dev2 | 3385f034690d281c2720e17b0a6bdbe51a65113c | [
"Apache-2.0"
] | 1 | 2019-11-25T20:31:07.000Z | 2019-11-25T20:31:07.000Z | demos/sjtwo/esp8266/source/main.cpp | diarkia124/SJSU-Dev2 | 3385f034690d281c2720e17b0a6bdbe51a65113c | [
"Apache-2.0"
] | null | null | null | demos/sjtwo/esp8266/source/main.cpp | diarkia124/SJSU-Dev2 | 3385f034690d281c2720e17b0a6bdbe51a65113c | [
"Apache-2.0"
] | null | null | null | #include <cinttypes>
#include <cstdint>
#include <string_view>
#include "L1_Peripheral/lpc40xx/uart.hpp"
#include "L2_HAL/communication/esp8266.hpp"
#include "utility/log.hpp"
#include "utility/debug.hpp"
constexpr char kGetRequestExample[] =
"GET / HTTP/1.1\r\n"
"Host: www.example.com\r\n\r\n";
#define LOG_... | 27.472973 | 75 | 0.597147 | diarkia124 |
2e99becc881b7f2b3104ef16f8e13011e63532dd | 1,308 | cpp | C++ | src/compiler/Type Checker/TypeString.cpp | dimashky/compiler | 0b772d16aec1a327698886b1f28f3abdfa60c1a1 | [
"MIT"
] | 5 | 2018-07-06T04:05:05.000Z | 2021-08-05T23:59:44.000Z | src/compiler/Type Checker/TypeString.cpp | maheralkassir/compiler | 0b772d16aec1a327698886b1f28f3abdfa60c1a1 | [
"MIT"
] | 4 | 2018-07-05T22:19:30.000Z | 2018-07-05T22:19:30.000Z | src/compiler/Type Checker/TypeString.cpp | maheralkassir/compiler | 0b772d16aec1a327698886b1f28f3abdfa60c1a1 | [
"MIT"
] | 3 | 2018-12-08T10:13:32.000Z | 2021-03-27T02:04:18.000Z | #include "all.h"
#include <iostream>
#include <string>
TypeString::TypeString() {
this->typeId = TYPE_STRING;
this->bytes = 255;
}
TypeString* TypeString::instance = nullptr;
TypeString* TypeString::getInstance() {
if (TypeString::instance == nullptr) {
TypeString::instance = new TypeString();
}
return TypeSt... | 22.947368 | 108 | 0.704128 | dimashky |
2e9aa7cd74b7f8b00fa1da4ebcf03018f8fd3099 | 339 | cpp | C++ | duilib_test/EditTab.cpp | balloonwj/BalloonDuilib | 3fd8700d3b10075e2a9f62931c56bb394e893876 | [
"BSD-2-Clause",
"MIT"
] | 2 | 2018-11-23T00:57:12.000Z | 2019-03-26T05:52:41.000Z | duilib_test/EditTab.cpp | balloonwj/BalloonDuilib | 3fd8700d3b10075e2a9f62931c56bb394e893876 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | duilib_test/EditTab.cpp | balloonwj/BalloonDuilib | 3fd8700d3b10075e2a9f62931c56bb394e893876 | [
"BSD-2-Clause",
"MIT"
] | 9 | 2019-05-13T17:36:45.000Z | 2022-03-22T12:46:33.000Z | #include "stdafx.h"
#include "EditTab.h"
CEditTab::CEditTab( CPaintManagerUI* ppm /*= NULL*/ )
{
CDialogBuilder builder;
CContainerUI* pbtnTab = static_cast<CContainerUI*>(builder.Create(_T("Edit.xml"), 0, NULL, ppm));
if( pbtnTab ) {
this->Add(pbtnTab);
}
else {
this->RemoveAll();
return;
}
}
CEditTab::~... | 16.95 | 98 | 0.666667 | balloonwj |
2e9c807a920155169b02111123b65f82b9dfc004 | 1,913 | hpp | C++ | modules/core/linalg/include/nt2/linalg/functions/scalar/mnormfro.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/linalg/include/nt2/linalg/functions/scalar/mnormfro.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/linalg/include/nt2/linalg/functions/scalar/mnormfro.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 34.781818 | 80 | 0.568217 | psiha |
2ea1a62694467a11b46470d8cdc9c57bd29a6633 | 2,846 | cc | C++ | flens/blas/interface/blas/rot.cc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 98 | 2015-01-26T20:31:37.000Z | 2021-09-09T15:51:37.000Z | flens/blas/interface/blas/rot.cc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 16 | 2015-01-21T07:43:45.000Z | 2021-12-06T12:08:36.000Z | flens/blas/interface/blas/rot.cc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 31 | 2015-01-05T08:06:45.000Z | 2022-01-26T20:12:00.000Z | #include <flens/blas/interface/blas/config.h>
using namespace flens;
extern "C" {
void
BLAS(srot)(const INTEGER *N,
float *X,
const INTEGER *INCX,
float *Y,
const INTEGER *INCY,
const float *C,
const float *S)
{
# ... | 20.47482 | 68 | 0.471188 | stip |
2ea2226d328d4098b2aa6ca50bde3a070926d8ff | 2,515 | cc | C++ | src/server.cc | SiLeader/eidos | 5ec2b19c79f45d25936fae799f59ef7cf35f4580 | [
"Apache-2.0"
] | 2 | 2022-01-24T07:05:16.000Z | 2022-02-08T07:14:53.000Z | src/server.cc | SiLeader/eidos | 5ec2b19c79f45d25936fae799f59ef7cf35f4580 | [
"Apache-2.0"
] | null | null | null | src/server.cc | SiLeader/eidos | 5ec2b19c79f45d25936fae799f59ef7cf35f4580 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 SiLeader and Cerussite.
//
// 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... | 35.422535 | 118 | 0.694632 | SiLeader |
2ea49c6074e1ff6cd59e672d45e6aac514b86928 | 397 | cpp | C++ | Leetcode0887.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | 1 | 2020-06-28T06:29:05.000Z | 2020-06-28T06:29:05.000Z | Leetcode0887.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | Leetcode0887.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | int f[101][10001];
class Solution {
public:
int superEggDrop(int k, int n) {
//i个鸡蛋扔j次能确定的最大楼层
//f[i][j] = f[i - 1][j - 1] + 1 + f[i - 1][j];
for (int j = 1; j <= n; j++) {
for (int i = 1; i <= k; i++) {
f[i][j] = f[i - 1][j - 1] + 1 + f[i][j - 1];
}
... | 24.8125 | 60 | 0.345088 | dezhonger |
2eb5c8a863d254852370df75945d49cfa4631c3e | 42,923 | hpp | C++ | CmnCS/module/computationalgeometry2/inc/computationalgeometry2/MinimumVolumeBox3.hpp | Khoronus/CmnUniverse | 9cf9b4297f2fcb49330126aa1047b422144045e1 | [
"MIT"
] | null | null | null | CmnCS/module/computationalgeometry2/inc/computationalgeometry2/MinimumVolumeBox3.hpp | Khoronus/CmnUniverse | 9cf9b4297f2fcb49330126aa1047b422144045e1 | [
"MIT"
] | null | null | null | CmnCS/module/computationalgeometry2/inc/computationalgeometry2/MinimumVolumeBox3.hpp | Khoronus/CmnUniverse | 9cf9b4297f2fcb49330126aa1047b422144045e1 | [
"MIT"
] | null | null | null | // Geometric Tools LLC, Redmond WA 98052
// Copyright (c) 1998-2015
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 1.0.10 (2015/03/10)
#pragma once
#include "GteOrientedBox.h"
#includ... | 37.066494 | 78 | 0.569578 | Khoronus |
2eb70835727b7adf472d827a3451e5970c096e81 | 2,090 | cpp | C++ | calibration/source/PECCalibration.cpp | pavlokleymonov/PEDeadReckoning | 0a8b60d90d02386d0d6a4ef8e0b0cd5fec012a20 | [
"BSD-2-Clause"
] | 2 | 2019-10-23T12:02:58.000Z | 2019-10-23T12:03:49.000Z | calibration/source/PECCalibration.cpp | pavlokleymonov/PEDeadReckoning | 0a8b60d90d02386d0d6a4ef8e0b0cd5fec012a20 | [
"BSD-2-Clause"
] | null | null | null | calibration/source/PECCalibration.cpp | pavlokleymonov/PEDeadReckoning | 0a8b60d90d02386d0d6a4ef8e0b0cd5fec012a20 | [
"BSD-2-Clause"
] | null | null | null | /**
* Position Engine provides dead reckoning engine to obtain position
* information based on fusion of different kind of sensors.
*
* Copyright 2017 Pavlo Kleymonov <pavlo.kleymonov@gmail.com>
*
* Distributed under the OSI-approved BSD License (the "License");
* see accompanying file LICENSE.txt for det... | 19 | 99 | 0.590431 | pavlokleymonov |
e483565e6180c0ebbf30c3798faaae258858e613 | 2,691 | cpp | C++ | src/OpenGL/entrypoints/GL3.0/gl_get_tex_parameter_i_iv.cpp | kbiElude/VKGL | fffabf412723a3612ba1c5bfeafe1da38062bd18 | [
"MIT"
] | 114 | 2018-08-05T16:26:53.000Z | 2021-12-30T07:28:35.000Z | src/OpenGL/entrypoints/GL3.0/gl_get_tex_parameter_i_iv.cpp | kbiElude/VKGL | fffabf412723a3612ba1c5bfeafe1da38062bd18 | [
"MIT"
] | 5 | 2018-08-18T21:16:58.000Z | 2018-11-22T21:50:48.000Z | src/OpenGL/entrypoints/GL3.0/gl_get_tex_parameter_i_iv.cpp | kbiElude/VKGL | fffabf412723a3612ba1c5bfeafe1da38062bd18 | [
"MIT"
] | 6 | 2018-08-05T22:32:28.000Z | 2021-10-04T15:39:53.000Z | /* VKGL (c) 2018 Dominik Witczak
*
* This code is licensed under MIT license (see LICENSE.txt for details)
*/
#include "OpenGL/entrypoints/GL3.0/gl_get_tex_parameter_i_iv.h"
#include "OpenGL/context.h"
#include "OpenGL/globals.h"
#include "OpenGL/utils_enum.h"
static bool validate(OpenGL::Context* in_context_ptr,
... | 38.442857 | 87 | 0.493497 | kbiElude |
e4838a972eefe8df7790cd9a6a495d8c754f3223 | 26,147 | hpp | C++ | library/ATF/CMainThread.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/CMainThread.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/CMainThread.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <CBattleTournamentInfo.hpp>
#include <CCharacter.hpp>
#include <CCheckSum.hpp>
#include <CConnNumPHMgr.hpp>
#include <CFrameRate.hpp>
#include <CGameObject.hpp>
... | 60.385681 | 581 | 0.752209 | lemkova |
e48534dd596495a1205132f60f02b8ac514233c8 | 916 | cc | C++ | CH16_TemplatesAndGenericProgramming/exercises/ex16_30_31.cc | iZhangHui/CppPrimer | e61f660c9b0155a2c13d64f104cbd3f641ea00c4 | [
"Unlicense"
] | 34 | 2016-09-23T06:22:35.000Z | 2021-12-09T14:01:14.000Z | CH16_TemplatesAndGenericProgramming/exercises/ex16_30_31.cc | zhangzheng0317/CppPrimer | 322ed3cb120fe0282fe75e147b7d13c2a966519c | [
"Unlicense"
] | null | null | null | CH16_TemplatesAndGenericProgramming/exercises/ex16_30_31.cc | zhangzheng0317/CppPrimer | 322ed3cb120fe0282fe75e147b7d13c2a966519c | [
"Unlicense"
] | 10 | 2018-05-14T01:35:18.000Z | 2021-06-14T02:44:53.000Z | #include <iostream>
#include <string>
#include "Blob.h"
int main(int argc, char const *argv[])
{
Blob<int> blob{1, 2, 3};
blob.push_back(4);
for (size_t i = 0; i != blob.size(); ++i) {
std::cout << blob[i] << " ";
}
std::cout << std::endl;
// int ret = blob.back();
int& ret = blob.back();
ret = 5;
for (s... | 22.341463 | 74 | 0.537118 | iZhangHui |
e4853e6f0eed01a2abe8cf3f53e86a776843e761 | 179 | hpp | C++ | optionals/last_ship/XEH_PREP.hpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 6 | 2018-05-05T22:28:57.000Z | 2019-07-06T08:46:51.000Z | optionals/last_ship/XEH_PREP.hpp | Schwaggot/kellerkompanie-mods | 7a389e49e3675866dbde1b317a44892926976e9d | [
"MIT"
] | 107 | 2018-04-11T19:42:27.000Z | 2019-09-13T19:05:31.000Z | optionals/last_ship/XEH_PREP.hpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 3 | 2018-10-03T11:54:46.000Z | 2019-02-28T13:30:16.000Z | PREP(addVendingActions);
PREP(canRefillVendingMachine);
PREP(checkAmountLeft);
PREP(initTelephone);
PREP(initVendingMachine);
PREP(refillVendingMachine);
PREP(useVendingMachine);
| 22.375 | 30 | 0.843575 | kellerkompanie |
e486b760eae206c1a5ed3a7817f9167fef0063a3 | 4,006 | cpp | C++ | Day03/Day03.cpp | Zhoroaan/adventofcode2021 | 099b6ae8d58032045dfa4c2edc2d7b2f9f0fdab9 | [
"MIT"
] | null | null | null | Day03/Day03.cpp | Zhoroaan/adventofcode2021 | 099b6ae8d58032045dfa4c2edc2d7b2f9f0fdab9 | [
"MIT"
] | null | null | null | Day03/Day03.cpp | Zhoroaan/adventofcode2021 | 099b6ae8d58032045dfa4c2edc2d7b2f9f0fdab9 | [
"MIT"
] | null | null | null | #include <bitset>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include "../Lib/CommonLib.h"
const char* InputData = "TestInputData.txt";
//const char* InputData = "MyInput.txt";
int32_t CountSetInColumn(const std::vector<std::bitset<32>>& InRows, int InColumn)
{
uint32_t count = 0;... | 33.949153 | 114 | 0.594109 | Zhoroaan |
e4890b3a6dc165690f9ec27c21a78230dbec4662 | 8,487 | cpp | C++ | cpp-projects/exvr-designer/widgets/components/config_parameters/camera_target_pw.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/widgets/components/config_parameters/camera_target_pw.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/widgets/components/config_parameters/camera_target_pw.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null |
/***********************************************************************************
** exvr-designer **
** MIT License **
** Copyright (c) [2018] [Florian Lance][EPFL-LNCO] ... | 44.434555 | 175 | 0.609403 | FlorianLance |
e49423a473eb24293b0f9323adeb7b47175d9bd0 | 2,945 | cpp | C++ | test/test_Sort.cpp | chuyangliu/tastylib | 0f353938b18e39efdfce27be36ad511b3112af6b | [
"MIT"
] | 11 | 2019-06-12T03:11:05.000Z | 2021-08-13T16:04:31.000Z | test/test_Sort.cpp | chuyangliu/tastylib | 0f353938b18e39efdfce27be36ad511b3112af6b | [
"MIT"
] | null | null | null | test/test_Sort.cpp | chuyangliu/tastylib | 0f353938b18e39efdfce27be36ad511b3112af6b | [
"MIT"
] | 3 | 2019-12-05T20:56:48.000Z | 2021-07-25T20:44:57.000Z | #include "gtest/gtest.h"
#include "tastylib/Sort.h"
#include "tastylib/util/random.h"
#include <algorithm>
using tastylib::Random;
using tastylib::insertionSort;
using tastylib::selectionSort;
using tastylib::heapSort;
using tastylib::quickSort;
using tastylib::quickSelect;
TEST(SortTest, InsertionSort) {
Random ... | 32.362637 | 72 | 0.564686 | chuyangliu |
e4945739f60d5a9a45751d2931cc6480aea1f38f | 1,154 | cc | C++ | 2018/santi/day_7.1.cc | bbglab/adventofcode | 65b6d8331d10f229b59232882d60024b08d69294 | [
"MIT"
] | null | null | null | 2018/santi/day_7.1.cc | bbglab/adventofcode | 65b6d8331d10f229b59232882d60024b08d69294 | [
"MIT"
] | null | null | null | 2018/santi/day_7.1.cc | bbglab/adventofcode | 65b6d8331d10f229b59232882d60024b08d69294 | [
"MIT"
] | 3 | 2016-12-02T09:20:42.000Z | 2021-12-01T13:31:07.000Z | #include <iostream>
#include <vector>
using namespace std;
struct work{
char id;
int prev;
vector<struct work *> next;
};
bool compare( struct work a, struct work b){
return a.id < b.id;
}
int main(){
string word;
char a, b;
vector<struct work> works = vector<struct work>('Z' - 'A' + 1);
for(int i = 0; i < w... | 22.627451 | 87 | 0.548527 | bbglab |
e494de65fb3756ac707e9c54cc9904d391a1588d | 3,487 | cpp | C++ | src/OutputWindow.cpp | kmachnicki/houseOnFire | eac4aaf3ed6d8e3b8359f58737eeeb127105c058 | [
"MIT"
] | null | null | null | src/OutputWindow.cpp | kmachnicki/houseOnFire | eac4aaf3ed6d8e3b8359f58737eeeb127105c058 | [
"MIT"
] | null | null | null | src/OutputWindow.cpp | kmachnicki/houseOnFire | eac4aaf3ed6d8e3b8359f58737eeeb127105c058 | [
"MIT"
] | null | null | null | #include "OutputWindow.hpp"
#include "Firefighter.hpp"
#include "Arsonist.hpp"
OutputWindow::OutputWindow()
: m_screen(Coords(0,0))
{
initscr();
cbreak();
noecho();
start_color();
curs_set(FALSE);
init_pair(1, COLOR_WHITE, COLOR_YELLOW);
init_pair(2, COLOR_WHITE, COLOR_RED);
init_pa... | 34.524752 | 107 | 0.65357 | kmachnicki |
e499dbf5d66a39f8b17ecf75d0ac31ae93f96261 | 12,449 | cpp | C++ | libs/vm_modules/tests/unit/array_tests.cpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | null | null | null | libs/vm_modules/tests/unit/array_tests.cpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | null | null | null | libs/vm_modules/tests/unit/array_tests.cpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | null | null | null | //------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 21.538062 | 98 | 0.601012 | devjsc |
e49b955c2dc3aa8a8c91eb256165625354e1102b | 4,159 | cpp | C++ | ibp_external__libtommatch_set01__bn_fast_s_mp_mul_high_digs.cpp | dmitry-lipetsk/libtommath-for-ibprovider--set01 | b7b8e7cf76bd0b2d265d0c31a99836a3b4bad882 | [
"WTFPL"
] | null | null | null | ibp_external__libtommatch_set01__bn_fast_s_mp_mul_high_digs.cpp | dmitry-lipetsk/libtommath-for-ibprovider--set01 | b7b8e7cf76bd0b2d265d0c31a99836a3b4bad882 | [
"WTFPL"
] | null | null | null | ibp_external__libtommatch_set01__bn_fast_s_mp_mul_high_digs.cpp | dmitry-lipetsk/libtommath-for-ibprovider--set01 | b7b8e7cf76bd0b2d265d0c31a99836a3b4bad882 | [
"WTFPL"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
#include <_pch_.h>
#pragma hdrstop
#include "source/external/libtommath/set01/ibp_external__libtommatch_set01__tommath_private.h"
#include <structure/t_limits.h>
namespace ibp{namespace external{namespace libtommath{namespace set01{
////... | 25.054217 | 94 | 0.577062 | dmitry-lipetsk |
e4a02f0ce3bd8d4eb4f89b9be5992b51654a7390 | 901 | cpp | C++ | M5Stack_MultiApp_Firmware/Apps/appCfgBrightness.cpp | botofancalin/M5Stack_MultiApp_Firmware | 05894d1d61cab7015d17109e9e31f24d11ba54e1 | [
"MIT"
] | 21 | 2018-04-07T21:10:54.000Z | 2020-06-08T18:10:05.000Z | M5Stack_MultiApp_Firmware/Apps/appCfgBrightness.cpp | botofancalin/M5Stack_MultiApp_Firmware | 05894d1d61cab7015d17109e9e31f24d11ba54e1 | [
"MIT"
] | 1 | 2018-04-25T07:38:22.000Z | 2018-04-25T07:38:22.000Z | M5Stack_MultiApp_Firmware/Apps/appCfgBrightness.cpp | botofancalin/M5Stack_MultiApp_Firmware | 05894d1d61cab7015d17109e9e31f24d11ba54e1 | [
"MIT"
] | 5 | 2018-04-01T14:43:20.000Z | 2020-05-15T10:13:34.000Z | #include "../apps.h"
void appCfgBrigthness()
{
byte tmp_brigth = byte(EEPROM.read(0));
byte tmp_lbrigth = 0;
MyMenu.drawAppMenu(F("DISPLAY BRIGHTNESS"), F("-"), F("OK"), F("+"));
while (M5.BtnB.wasPressed())
{
M5.update();
}
while (!M5.BtnB.wasPressed())
{
if (M5.BtnA.... | 25.027778 | 73 | 0.502775 | botofancalin |
e4a2a680843d3323f4b8f895886e0253e38c97bb | 339 | cpp | C++ | applications/TexturePainter/main.cpp | billhj/Etoile2015 | c9311fc2a901cd60b2aeead5462ca8d6f7c5aa3a | [
"Apache-2.0"
] | null | null | null | applications/TexturePainter/main.cpp | billhj/Etoile2015 | c9311fc2a901cd60b2aeead5462ca8d6f7c5aa3a | [
"Apache-2.0"
] | null | null | null | applications/TexturePainter/main.cpp | billhj/Etoile2015 | c9311fc2a901cd60b2aeead5462ca8d6f7c5aa3a | [
"Apache-2.0"
] | null | null | null | #include "TexturePainter.h"
#include <QtGui/QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QFile stylesheet("./styles/stylesheet.txt");
stylesheet.open(QFile::ReadOnly);
QString setSheet = QLatin1String(stylesheet.readAll());
a.setStyleSheet(setSheet);
TexturePainter w;
w.show();
... | 22.6 | 56 | 0.731563 | billhj |
e4a5a710402c5b46dd6f444f48194d7655726ac7 | 1,667 | cpp | C++ | RealFluid/src/App/Application/EventHandlers.cpp | cypherix93/cse328-project | 8239f7ddc7d104607649dd24670584b91be8e162 | [
"MIT"
] | null | null | null | RealFluid/src/App/Application/EventHandlers.cpp | cypherix93/cse328-project | 8239f7ddc7d104607649dd24670584b91be8e162 | [
"MIT"
] | null | null | null | RealFluid/src/App/Application/EventHandlers.cpp | cypherix93/cse328-project | 8239f7ddc7d104607649dd24670584b91be8e162 | [
"MIT"
] | null | null | null | #include "EventHandlers.h"
#include <Core/Physics/NavierStokesSolver/NavierStokesSolver.h>
/* Event Handlers*/
void InitHandler()
{
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_DEPTH_TEST);
glEnable(GL_COLOR_MATERIAL);
glEnable(GL_NORMALIZE);
glEnable(GL_P... | 26.460317 | 89 | 0.710258 | cypherix93 |
e4acd3c0442de01e743af498da7efc818232acc5 | 1,224 | cpp | C++ | e-olymp/Transport-system.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | e-olymp/Transport-system.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | e-olymp/Transport-system.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | /**
* author: MaGnsi0
* created: 09/06/2021 00:48:50
**/
#include <bits/stdc++.h>
using namespace std;
void bfs(vector<vector<int>>& adj, vector<int>& d, int& s) {
queue<int> q;
q.push(s);
d[s] = 0;
while (!q.empty()) {
int v = q.front();
q.pop();
for (auto& u : adj[v])... | 23.538462 | 75 | 0.378268 | MaGnsio |
e4b4475eea2c48d572a8a8f0653bfaccc22538e9 | 1,534 | cpp | C++ | binarysearch.cpp | AKoudounis/refactored-journey | 81719c57104f14b141f0f7cd2aa805f9007ed79e | [
"MIT"
] | null | null | null | binarysearch.cpp | AKoudounis/refactored-journey | 81719c57104f14b141f0f7cd2aa805f9007ed79e | [
"MIT"
] | null | null | null | binarysearch.cpp | AKoudounis/refactored-journey | 81719c57104f14b141f0f7cd2aa805f9007ed79e | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <algorithm>
using namespace std;
template<class T>
int binarySearch(T* arr, T* left, T* right, T x)
{
int result = -1;
if (*left > *right){
return result;
}
T* mid = left + (right - left) / 2;
if (*mid==x){
r... | 18.481928 | 78 | 0.4309 | AKoudounis |
e4bae320dd28ebc1f4219ea1c1b09318a3b2e9f2 | 585 | cc | C++ | 0_leetcode/121_best-time-to-buy-and-sell-stock/maxProfit2.cc | amdfansheng/alogrithm | b2e1dd4094b766895dda8c8fc2cbb2e37e6aa22d | [
"MIT"
] | null | null | null | 0_leetcode/121_best-time-to-buy-and-sell-stock/maxProfit2.cc | amdfansheng/alogrithm | b2e1dd4094b766895dda8c8fc2cbb2e37e6aa22d | [
"MIT"
] | null | null | null | 0_leetcode/121_best-time-to-buy-and-sell-stock/maxProfit2.cc | amdfansheng/alogrithm | b2e1dd4094b766895dda8c8fc2cbb2e37e6aa22d | [
"MIT"
] | null | null | null | // 自己写的
// 超出时间限制 O(n^2)
#include <cstdio>
#include <climits>
#include <vector>
using namespace std;
class Solution {
public:
int maxProfit(vector<int>& prices)
{
int max{}, min{INT_MAX};
for (auto &&price : prices) {
if (price - min > max) max = price - min;
if (min > ... | 17.727273 | 53 | 0.504274 | amdfansheng |
e4c05c71427a74d04d2776cbafedbb5af695d9a5 | 12,134 | cc | C++ | src/2d/mpi/tausch_exchanger.cc | cedar-framework/cedar | 9fb53ec221738b8dd16dfb31dc9a18d69fc2cc44 | [
"BSD-3-Clause"
] | 9 | 2018-03-07T19:15:27.000Z | 2019-02-22T20:10:23.000Z | src/2d/mpi/tausch_exchanger.cc | cedar-framework/cedar | 9fb53ec221738b8dd16dfb31dc9a18d69fc2cc44 | [
"BSD-3-Clause"
] | 5 | 2018-11-13T19:59:46.000Z | 2020-04-09T19:31:25.000Z | src/2d/mpi/tausch_exchanger.cc | cedar-framework/cedar | 9fb53ec221738b8dd16dfb31dc9a18d69fc2cc44 | [
"BSD-3-Clause"
] | 2 | 2018-07-20T01:06:48.000Z | 2019-11-25T12:15:16.000Z | #include <cedar/2d/mpi/tausch_exchanger.h>
extern "C" {
using namespace cedar;
void BMG2_SymStd_SETUP_Tausch(int nog, len_t *dimx, len_t *dimy,
len_t *dimxfine, len_t *dimyfine, int nproci, int nprocj);
}
namespace cedar { namespace cdr2 { namespace mpi {
line_pkg::line_pkg(grid_top... | 33.243836 | 114 | 0.633756 | cedar-framework |
e4c32af310ef2dbc0391b581081c12b8241aa751 | 3,513 | hpp | C++ | src/framework/qobj.hpp | awcross1/qiskit-aer | 72863e804ec3d07c0da2ebeb665a31db7a7e3010 | [
"Apache-2.0"
] | null | null | null | src/framework/qobj.hpp | awcross1/qiskit-aer | 72863e804ec3d07c0da2ebeb665a31db7a7e3010 | [
"Apache-2.0"
] | null | null | null | src/framework/qobj.hpp | awcross1/qiskit-aer | 72863e804ec3d07c0da2ebeb665a31db7a7e3010 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2018, IBM.
*
* This source code is licensed under the Apache License, Version 2.0 found in
* the LICENSE.txt file in the root directory of this source tree.
*/
#ifndef _aer_framework_qobj_hpp_
#define _aer_framework_qobj_hpp_
#include <iostream>
#include <stdexcept>
#include <string>
#include <ve... | 31.648649 | 98 | 0.522346 | awcross1 |
e4c3c28e1cf13b834c5d035ba15b95f2a13815eb | 4,525 | cpp | C++ | src/net/examples/sita_net_example_003/src/sita_net_example_003-main.cpp | SimpleTalkCpp/libsita | e0c13f16cebf799f0d57b8345d21de7407f59e2b | [
"MIT"
] | 2 | 2021-03-19T13:19:27.000Z | 2021-04-03T17:42:30.000Z | src/net/examples/sita_net_example_003/src/sita_net_example_003-main.cpp | SimpleTalkCpp/libsita | e0c13f16cebf799f0d57b8345d21de7407f59e2b | [
"MIT"
] | null | null | null | src/net/examples/sita_net_example_003/src/sita_net_example_003-main.cpp | SimpleTalkCpp/libsita | e0c13f16cebf799f0d57b8345d21de7407f59e2b | [
"MIT"
] | null | null | null | #include <sita_net_common.h>
#include <sita_imgui.h>
namespace sita {
enum class MyPacketCmd : NEPacketCmd {
Hello,
Test,
};
#define MyPacket_Define(T) \
virtual void onWrite(BinSerializer& se) { io(se); } \
virtual void onRead (BinDeserializer& se) { io(se); } \
public: \
MyPacket_##T() : MyPac... | 20.022124 | 93 | 0.601105 | SimpleTalkCpp |
e4c485ca8e332a8baddb257a0666d2ec19a0ae07 | 25,688 | cpp | C++ | gamgee/variant/variant_builder.cpp | audiohacked/gamgee | 772a095c5f0725c410e7c23e88f79d8b76e098a8 | [
"MIT"
] | 24 | 2015-01-20T16:15:46.000Z | 2019-09-16T07:53:54.000Z | gamgee/variant/variant_builder.cpp | audiohacked/gamgee | 772a095c5f0725c410e7c23e88f79d8b76e098a8 | [
"MIT"
] | 8 | 2015-01-30T07:27:00.000Z | 2017-07-11T21:37:17.000Z | gamgee/variant/variant_builder.cpp | audiohacked/gamgee | 772a095c5f0725c410e7c23e88f79d8b76e098a8 | [
"MIT"
] | 15 | 2015-01-11T05:28:26.000Z | 2022-01-18T08:47:10.000Z | #include "variant_builder.h"
#include "../missing.h"
#include <algorithm>
#include <stdexcept>
using namespace std;
namespace gamgee {
VariantBuilder::VariantBuilder(const VariantHeader& header) :
m_header { header.m_header }, // Important: take shared ownership of header rather than make a deep copy
m_contig... | 42.389439 | 183 | 0.739372 | audiohacked |
e4c870018d54f71d477e97735d7189686c52fb46 | 800 | cpp | C++ | scugog_project/frontend_src/EndGameScreen.cpp | akinshonibare/Food-Fight-Game | cad246c5e29dab32c94d52ab97804575edd2233c | [
"MIT"
] | null | null | null | scugog_project/frontend_src/EndGameScreen.cpp | akinshonibare/Food-Fight-Game | cad246c5e29dab32c94d52ab97804575edd2233c | [
"MIT"
] | null | null | null | scugog_project/frontend_src/EndGameScreen.cpp | akinshonibare/Food-Fight-Game | cad246c5e29dab32c94d52ab97804575edd2233c | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "EndGameScreen.h"
int EndGameScreen::Show(sf::RenderWindow & renderWindow, int player_won)
{
//sf::Image image;
sf::Texture texture;
if (player_won == 0) {
if (texture.loadFromFile("../scugog_project/resources/images/player_one_wins.png") != true)
{
return -1;
}
}
else {
... | 18.604651 | 93 | 0.65625 | akinshonibare |
e4c8e9967610e7aa0758c54e24ea3c1220e982bf | 1,410 | cpp | C++ | examples/FeatureShowcase/features/step_definitions/TagSteps.cpp | meshell/cucumber-cpp | a41565d8fd7b87fd160e441602b398dc76f6d739 | [
"MIT"
] | 214 | 2015-01-09T05:09:50.000Z | 2022-03-25T05:51:23.000Z | examples/FeatureShowcase/features/step_definitions/TagSteps.cpp | meshell/cucumber-cpp | a41565d8fd7b87fd160e441602b398dc76f6d739 | [
"MIT"
] | 186 | 2015-01-06T15:52:03.000Z | 2022-03-07T21:16:01.000Z | examples/FeatureShowcase/features/step_definitions/TagSteps.cpp | meshell/cucumber-cpp | a41565d8fd7b87fd160e441602b398dc76f6d739 | [
"MIT"
] | 120 | 2015-01-06T15:40:54.000Z | 2022-03-22T17:56:29.000Z | #include <gtest/gtest.h>
#include <cucumber-cpp/autodetect.hpp>
#include <iostream>
using std::string;
using std::cout;
using std::endl;
BEFORE_ALL()
{
cout << "-------------------- (Before all scenarios)" << endl;
}
AFTER_ALL()
{
cout << "-------------------- (After all scenarios)" << endl;
}
BEFORE() {
... | 22.741935 | 69 | 0.574468 | meshell |
e4caf51c0ab1d17d3e307e83a3f74cfedfd1c4ef | 932 | cpp | C++ | aws-cpp-sdk-sagemaker/source/model/Alarm.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-sagemaker/source/model/Alarm.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-sagemaker/source/model/Alarm.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2022-03-23T15:17:18.000Z | 2022-03-23T15:17:18.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sagemaker/model/Alarm.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Sag... | 15.533333 | 69 | 0.703863 | perfectrecall |
e4cbcd1f69f4b00e194b33b4c2e1c5c893251641 | 708 | hpp | C++ | include/voxelio/macro.hpp | Eisenwave/voxel-io | d902568de2d4afda254e533a5ee9e4ad5fe7d2be | [
"MIT"
] | 12 | 2020-06-25T13:40:22.000Z | 2021-12-06T04:00:29.000Z | include/voxelio/macro.hpp | Eisenwave/voxel-io | d902568de2d4afda254e533a5ee9e4ad5fe7d2be | [
"MIT"
] | 2 | 2021-02-04T16:19:40.000Z | 2021-06-25T09:39:20.000Z | include/voxelio/macro.hpp | Eisenwave/voxel-io | d902568de2d4afda254e533a5ee9e4ad5fe7d2be | [
"MIT"
] | null | null | null | #ifndef VXIO_MACRO_HPP
#define VXIO_MACRO_HPP
#include "results.hpp"
#define VXIO_FORWARD_ERROR(expr) \
if (auto exprResult__ = expr; ::voxelio::isError(static_cast<::voxelio::ResultCode>(exprResult__))) { \
return exprResult__; ... | 39.333333 | 107 | 0.487288 | Eisenwave |
e4cc16d81bd9b13a4d5fd21d54a3fca46968bd31 | 589 | cpp | C++ | examples/article_examples/hello_world_timer.cpp | jbandela/cppcomponents_libuv | 412fd05b32b7e01d4bd85e799d1e887537a4143a | [
"BSL-1.0"
] | 16 | 2015-04-09T06:27:45.000Z | 2021-11-21T15:43:38.000Z | examples/article_examples/hello_world_timer.cpp | jbandela/cppcomponents_libuv | 412fd05b32b7e01d4bd85e799d1e887537a4143a | [
"BSL-1.0"
] | 1 | 2015-07-30T00:08:59.000Z | 2015-07-30T00:08:59.000Z | examples/article_examples/hello_world_timer.cpp | jbandela/cppcomponents_libuv | 412fd05b32b7e01d4bd85e799d1e887537a4143a | [
"BSL-1.0"
] | 4 | 2015-02-26T20:01:16.000Z | 2021-11-11T05:25:10.000Z | #include <cppcomponents_libuv/cppcomponents_libuv.hpp>
using cppcomponents::Future;
int main(){
cppcomponents_libuv::Tty out{1,false};
Future<int> output_fut = out.Write("Hello world...");
output_fut.Then(
[&](Future<int> f){
cppcomponents_libuv::Timer::WaitFor(std::chrono::seconds{5}).... | 31 | 96 | 0.601019 | jbandela |
e4cfd11fccda7b927fdf0cafbf262445b37a573f | 2,815 | hpp | C++ | src/include/log_file_handler.hpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | src/include/log_file_handler.hpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | src/include/log_file_handler.hpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | // ../src/include/log_file_handler.hpp ------------------------------------------------- //
//
// File author: Humberto Jr.
//
// Date: 09/2013
//
// Description: The log file handler defines the data struct of members that
// handles the usage of the log file. The overloaded << operat-
// or ... | 32.732558 | 95 | 0.711901 | violador |
e4e157ac23bd111bbfbd8a9f74a737ae0948f6b2 | 603 | cpp | C++ | libnes/emu.cpp | am1ko/nes | 4c1addaa6331733ccde90a3d9a0eed74968e859e | [
"MIT"
] | null | null | null | libnes/emu.cpp | am1ko/nes | 4c1addaa6331733ccde90a3d9a0eed74968e859e | [
"MIT"
] | null | null | null | libnes/emu.cpp | am1ko/nes | 4c1addaa6331733ccde90a3d9a0eed74968e859e | [
"MIT"
] | null | null | null | #include "emu.h"
Emu::Emu(Cpu& cpu, Ppu& ppu) : cpu(cpu), ppu(ppu) {}
// ---------------------------------------------------------------------------------------------- //
void Emu::reset() {
cpu.reset();
ppu.reset();
}
// ---------------------------------------------------------------------------------------... | 25.125 | 100 | 0.356551 | am1ko |
e4e3ac596b384b17e121ba89e933db0f300d596a | 5,481 | hpp | C++ | mainwindow.hpp | NuarkNoir/toynote | ba7fdb8a8d93012123e4125dae1dcdb4cf2e9b51 | [
"Unlicense"
] | null | null | null | mainwindow.hpp | NuarkNoir/toynote | ba7fdb8a8d93012123e4125dae1dcdb4cf2e9b51 | [
"Unlicense"
] | null | null | null | mainwindow.hpp | NuarkNoir/toynote | ba7fdb8a8d93012123e4125dae1dcdb4cf2e9b51 | [
"Unlicense"
] | null | null | null | /*!
* \file
* \brief Заголовочный файл класса MainWindow.
* \author Кирилл Пушкарёв
* \date 2017
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <memory> // unique_ptr
#include <QItemSelection>
#include <QMainWindow>
#include "notebook.hpp"
// Объявляем класс Ui::MainWindow, чтобы ниже можно было упомина... | 35.823529 | 110 | 0.713009 | NuarkNoir |
e4e3ca9534d7b4cb05ba68061ff52a6a1551e45f | 4,314 | cpp | C++ | test/multi_type_vector/perf/test_main.cpp | kohei101/multidimalgorithm | c479747d204b8953933fdbec9a88650a75b822b7 | [
"MIT"
] | 3 | 2018-10-08T16:30:06.000Z | 2018-10-24T05:05:11.000Z | test/multi_type_vector/perf/test_main.cpp | kohei101/mdds | c479747d204b8953933fdbec9a88650a75b822b7 | [
"MIT"
] | null | null | null | test/multi_type_vector/perf/test_main.cpp | kohei101/mdds | c479747d204b8953933fdbec9a88650a75b822b7 | [
"MIT"
] | null | null | null | /*************************************************************************
*
* Copyright (c) 2011-2013 Kohei Yoshida
*
* 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
* restric... | 32.19403 | 114 | 0.623783 | kohei101 |
e4e44608ae31175b57a7dc94c830397e0c06dcba | 2,363 | cpp | C++ | src/widgets/SettingsDialog.cpp | picardb/QtRemote | 049610cb93d01eec21f923b2fa824f15318d07bc | [
"MIT"
] | null | null | null | src/widgets/SettingsDialog.cpp | picardb/QtRemote | 049610cb93d01eec21f923b2fa824f15318d07bc | [
"MIT"
] | null | null | null | src/widgets/SettingsDialog.cpp | picardb/QtRemote | 049610cb93d01eec21f923b2fa824f15318d07bc | [
"MIT"
] | null | null | null | /* This source file is distributed under the MIT license
* (see attached LICENSE.txt file for details)
*/
#include "SettingsDialog.h"
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QLabel>
#include <QFileDialog>
#include "globals.h"
/*
* SettingsDialog::SettingsDialog
*
* SettingsDialog constructor. C... | 29.5375 | 114 | 0.700804 | picardb |
e4e7894cf82f25fc8b679efd1bb9d930c8517891 | 4,101 | cpp | C++ | bindings/python/src/LibraryCorePy/Types/Integer.cpp | cowlicks/library-core | 9a872ab7aa6bc4aba22734705b72dc22ea35ee77 | [
"Apache-2.0"
] | null | null | null | bindings/python/src/LibraryCorePy/Types/Integer.cpp | cowlicks/library-core | 9a872ab7aa6bc4aba22734705b72dc22ea35ee77 | [
"Apache-2.0"
] | null | null | null | bindings/python/src/LibraryCorePy/Types/Integer.cpp | cowlicks/library-core | 9a872ab7aa6bc4aba22734705b72dc22ea35ee77 | [
"Apache-2.0"
] | 1 | 2020-12-01T14:50:50.000Z | 2020-12-01T14:50:50.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Library ▸ Core
/// @file LibraryCorePy/Types/Integer.cpp
/// @author Lucas Brémond <lucas@loftorbital.com>
/// @license ... | 40.60396 | 160 | 0.486467 | cowlicks |
e4ea88aac26fcc1cbc391368d23aa4840ebd9abe | 109 | hh | C++ | build/x86/mem/protocol/RubyRequest.hh | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/mem/protocol/RubyRequest.hh | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/mem/protocol/RubyRequest.hh | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | #include "/mnt/hgfs/ShareShen/gem5-origin-stable-2015-9-3/build/x86/mem/ruby/slicc_interface/RubyRequest.hh"
| 54.5 | 108 | 0.807339 | billionshang |
e4eda83af21b6ce02a47bda2b18e178204a81045 | 2,972 | cc | C++ | src/base/varint-encoding.cc | emptyland/nyaa | e2092a086869342b14de51c2afc1246500dbf47d | [
"BSD-2-Clause"
] | null | null | null | src/base/varint-encoding.cc | emptyland/nyaa | e2092a086869342b14de51c2afc1246500dbf47d | [
"BSD-2-Clause"
] | null | null | null | src/base/varint-encoding.cc | emptyland/nyaa | e2092a086869342b14de51c2afc1246500dbf47d | [
"BSD-2-Clause"
] | null | null | null | #include "base/varint-encoding.h"
namespace nyaa {
namespace base {
#define TEST_OR_SET(c) b = ((in & 0x7FU << (c * 7)) >> (c * 7))
#define FILL_AND_TEST_OR_SET(c) \
out[i++] = (b | 0x80); \
TEST_OR_SET(c)
/*static*/ size_t Varint32::Encode(void *buf, uint32_t in) {
size_t i = 0;
uint8_t b;
... | 23.967742 | 68 | 0.53432 | emptyland |
e4f083a8855ae7c69d4e8e357a5d31b735235454 | 290 | cc | C++ | src/NOP.cc | domahony/6502Emulator | dbc1088998966ce4d59b9a38e5fe08dfcb1bfcf9 | [
"MIT"
] | null | null | null | src/NOP.cc | domahony/6502Emulator | dbc1088998966ce4d59b9a38e5fe08dfcb1bfcf9 | [
"MIT"
] | 1 | 2015-02-04T01:30:10.000Z | 2015-02-04T01:30:10.000Z | src/NOP.cc | domahony/6502Emulator | dbc1088998966ce4d59b9a38e5fe08dfcb1bfcf9 | [
"MIT"
] | null | null | null | /*
* NOP.cc
*
* Created on: Feb 16, 2015
* Author: domahony
*/
#include "NOP.h"
#include "CPU.h"
using domahony::emu::CPU;
void
initNOP(std::function<int (domahony::emu::CPU&)> *fn)
{
/*
* NOP
*/
// implied
fn[0xea] = [](CPU& cpu) {
cpu.NOP();
return 2;
};
}
| 9.666667 | 53 | 0.531034 | domahony |
e4f0b2741b7e892fefa56b36bfad4a92a1a7e51d | 7,184 | cpp | C++ | dlls/Game/scene/inPlay/GameOver.cpp | Mynsu/sirtet_SFML | ad1b64597868959d96d27fcb73fd272f41b21e16 | [
"MIT"
] | null | null | null | dlls/Game/scene/inPlay/GameOver.cpp | Mynsu/sirtet_SFML | ad1b64597868959d96d27fcb73fd272f41b21e16 | [
"MIT"
] | null | null | null | dlls/Game/scene/inPlay/GameOver.cpp | Mynsu/sirtet_SFML | ad1b64597868959d96d27fcb73fd272f41b21e16 | [
"MIT"
] | null | null | null | #include "../../pch.h"
#include "GameOver.h"
#include "../../ServiceLocatorMirror.h"
bool scene::inPlay::GameOver::IsInstantiated = false;
scene::inPlay::GameOver::GameOver( const sf::RenderWindow& window,
sf::Drawable& shapeOrSprite,
std::unique_ptr<::scene::inPlay::IScene>& overlappedScene )
:... | 26.80597 | 105 | 0.627366 | Mynsu |
e4f471d665ee67e7cf16ce85c6e80bf57482736e | 3,748 | hpp | C++ | include/af/autograd/Functions.hpp | syurkevi/arrayfire-ml | fde97a5bf157936c8d904d0c857c6cb3275ee527 | [
"BSD-3-Clause"
] | 106 | 2015-07-29T14:41:22.000Z | 2021-12-03T23:46:17.000Z | include/af/autograd/Functions.hpp | syurkevi/arrayfire-ml | fde97a5bf157936c8d904d0c857c6cb3275ee527 | [
"BSD-3-Clause"
] | 30 | 2015-08-05T00:27:17.000Z | 2022-03-25T10:24:30.000Z | include/af/autograd/Functions.hpp | arrayfire/arrayfire-ml | fde97a5bf157936c8d904d0c857c6cb3275ee527 | [
"BSD-3-Clause"
] | 19 | 2015-07-29T15:18:05.000Z | 2021-10-05T05:36:31.000Z | /*******************************************************
* Copyright (c) 2017, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... | 44.619048 | 78 | 0.64968 | syurkevi |
e4f95ba54616ff3737c0cb522dc637384bf1eff8 | 1,958 | cpp | C++ | transport/message_compressor_metrics.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | 1 | 2018-03-14T21:48:43.000Z | 2018-03-14T21:48:43.000Z | transport/message_compressor_metrics.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | null | null | null | transport/message_compressor_metrics.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2016 MongoDB 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 applicabl... | 35.6 | 92 | 0.693054 | RedBeard0531 |
e4faa34de907099cb390ecccfe0c00b750eafb45 | 1,079 | cpp | C++ | src/gp_map/network_maps/bool_to_bool_net_map.cpp | jamesbut/NeuroEvo | 96a2e952e93c280e6018a7f55b2c66264cd47206 | [
"MIT"
] | 8 | 2019-07-23T13:05:35.000Z | 2020-07-09T03:42:27.000Z | src/gp_map/network_maps/bool_to_bool_net_map.cpp | jamesbut/NeuroEvo | 96a2e952e93c280e6018a7f55b2c66264cd47206 | [
"MIT"
] | null | null | null | src/gp_map/network_maps/bool_to_bool_net_map.cpp | jamesbut/NeuroEvo | 96a2e952e93c280e6018a7f55b2c66264cd47206 | [
"MIT"
] | null | null | null | #include <gp_map/network_maps/bool_to_bool_net_map.h>
#include <phenotype/vector_phenotype.h>
namespace NeuroEvo {
BoolToBoolNetMap::BoolToBoolNetMap(NetworkBuilder& net_builder,
VectorPhenotypeSpec* pheno_spec) :
NetworkMap<bool, bool>(net_builder, pheno_spec) {}
Phenotype<bo... | 29.162162 | 96 | 0.677479 | jamesbut |
e4fd0627c44066b5635690a94d268c554f640c1a | 386 | cpp | C++ | sword_to_offer/Solution_10.cpp | fingthinking/nowcoder | 9a88a431cd682369a5b19eb4f1055480ccb3a81d | [
"Apache-2.0"
] | null | null | null | sword_to_offer/Solution_10.cpp | fingthinking/nowcoder | 9a88a431cd682369a5b19eb4f1055480ccb3a81d | [
"Apache-2.0"
] | null | null | null | sword_to_offer/Solution_10.cpp | fingthinking/nowcoder | 9a88a431cd682369a5b19eb4f1055480ccb3a81d | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int rectCover(int number) {
// 依然是斐波那契数列数列
// f(n) = f(n-1)+f(n-2); 最后一个横着放,或竖着放;横着放,则其他的就是f(n-1),竖着放,则其他的是f(n-2)
if(number <=0){
return 0;
}
int before = 0, after = 1;
while (number-- >= 0) {
before += after;
... | 24.125 | 78 | 0.455959 | fingthinking |
e4ffeb9f67795a3b8f4ee0071a9ccb92f5191c55 | 475 | cpp | C++ | ejercicio3.cpp | fienbeh1/portfolio | 2f25112c73b9304cbd6e45bb0fbfa21e97e4e26f | [
"Unlicense"
] | null | null | null | ejercicio3.cpp | fienbeh1/portfolio | 2f25112c73b9304cbd6e45bb0fbfa21e97e4e26f | [
"Unlicense"
] | null | null | null | ejercicio3.cpp | fienbeh1/portfolio | 2f25112c73b9304cbd6e45bb0fbfa21e97e4e26f | [
"Unlicense"
] | null | null | null | #include <stdio.h>
#include <conio.h>
#include "iostream"
using namespace std;
int main()
{
string nom;
string carrera;
int edad;
cout << "Bienvenido"<< endl;
cout << "Ingrese el Nombre: "; cin >> nom;
cout << "Carrera: "; cin >> carrera;
cout << "Ingrese Edad: "; cin >> edad;
... | 17.592593 | 47 | 0.534737 | fienbeh1 |
07e75c50215e633c7dc870e7ff3702f5a8a744c1 | 1,962 | hpp | C++ | lib/openZia/openZia/Packet.hpp | NicolasKeita/Apache-like | e8e866ab164547dda4353dc6fbc8219e32846082 | [
"MIT"
] | 1 | 2020-01-13T22:50:40.000Z | 2020-01-13T22:50:40.000Z | lib/openZia/openZia/Packet.hpp | NicolasKeita/My_Apache | e8e866ab164547dda4353dc6fbc8219e32846082 | [
"MIT"
] | null | null | null | lib/openZia/openZia/Packet.hpp | NicolasKeita/My_Apache | e8e866ab164547dda4353dc6fbc8219e32846082 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** CPP_zia_2019
** File description:
** NetworkPacket
*/
#pragma once
#include "ByteArray.hpp"
#include "Endpoint.hpp"
namespace oZ { class Packet; }
class oZ::Packet
{
public:
/**
* @brief Construct a new Packet object
*/
Packet(void) = default;
/**
* @brief ... | 24.835443 | 90 | 0.637615 | NicolasKeita |
07f14abbc1d5cc983e4d97576aa3aec091307aa9 | 6,967 | cpp | C++ | base/src/GameSparksRT/Proto/Packet.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 7 | 2019-07-11T02:05:32.000Z | 2020-11-01T18:57:51.000Z | base/src/GameSparksRT/Proto/Packet.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 3 | 2019-02-26T15:59:03.000Z | 2019-06-04T10:46:07.000Z | base/src/GameSparksRT/Proto/Packet.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 6 | 2020-05-18T08:44:47.000Z | 2022-02-26T12:18:17.000Z | #include "../../System/IO/MemoryStream.hpp"
#include "./Packet.hpp"
#include "ProtocolParser.hpp"
#include "../Commands/Requests/RTRequest.hpp"
#include "ProtocolBufferException.hpp"
#include "../../System/IO/EndOfStreamException.hpp"
namespace GameSparks { namespace RT { namespace Proto {
System::Failable<void> Pack... | 36.668421 | 133 | 0.590211 | djdron |
07f84009250626525431410b771e25f940ae3a66 | 308 | hpp | C++ | include/hg_enzine/events/Event.hpp | HadesD/HGEnzine | 722b22c1ac2a192c04cbf5729335d3ef7f50b5b0 | [
"MIT"
] | null | null | null | include/hg_enzine/events/Event.hpp | HadesD/HGEnzine | 722b22c1ac2a192c04cbf5729335d3ef7f50b5b0 | [
"MIT"
] | null | null | null | include/hg_enzine/events/Event.hpp | HadesD/HGEnzine | 722b22c1ac2a192c04cbf5729335d3ef7f50b5b0 | [
"MIT"
] | null | null | null | #ifndef __HGENZINE_EVENTS_EVENT_HPP__
#define __HGENZINE_EVENTS_EVENT_HPP__
#include "hg_enzine/core/BeginPreprocessors.hpp"
#include <functional>
namespace HGEnzine::events
{
class HGENZINE_API Event
{
public:
virtual ~Event();
public:
virtual void update() = 0;
};
}
#endif
| 14 | 48 | 0.714286 | HadesD |
07fcd84a1594d8c35c570e30a2e464460cfa6a1c | 5,392 | cpp | C++ | vkconfig_core/layer_setting_value.cpp | johnzupin/VulkanTools | 4a4d824b43984d29902f7c8246aab99f0909151d | [
"Apache-2.0"
] | null | null | null | vkconfig_core/layer_setting_value.cpp | johnzupin/VulkanTools | 4a4d824b43984d29902f7c8246aab99f0909151d | [
"Apache-2.0"
] | null | null | null | vkconfig_core/layer_setting_value.cpp | johnzupin/VulkanTools | 4a4d824b43984d29902f7c8246aab99f0909151d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 Valve Corporation
* Copyright (c) 2020 LunarG, 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
*
* Unl... | 32.678788 | 123 | 0.594955 | johnzupin |
07fdd91bae99dfdb428f4842587a3f1c570e0b4c | 3,027 | cpp | C++ | camera.cpp | dodopod/raycast | 31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1 | [
"MIT"
] | null | null | null | camera.cpp | dodopod/raycast | 31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1 | [
"MIT"
] | null | null | null | camera.cpp | dodopod/raycast | 31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1 | [
"MIT"
] | null | null | null | #include "camera.hpp"
Camera::Camera(Map* map, const Vec2& position, const Vec2& direction,
double fov, double nearDistance, double drawDistance) :
map(map),
position(position),
nearDistance(nearDistance),
drawDistance(drawDistance)
{
zUni... | 29.970297 | 86 | 0.487281 | dodopod |
5804098fd6441cdb267cc812bec43ca5690816b6 | 714 | cpp | C++ | 02/roh/1543.cpp | Dcom-KHU/2021-Winter-Algorithm-Study | ea32826abe7d8245ee9d3dc8d0161f7ba018a02f | [
"MIT"
] | 2 | 2021-01-09T10:05:21.000Z | 2021-01-10T06:14:03.000Z | 02/roh/1543.cpp | Dcom-KHU/2021-Winter-Algorithm-Study | ea32826abe7d8245ee9d3dc8d0161f7ba018a02f | [
"MIT"
] | null | null | null | 02/roh/1543.cpp | Dcom-KHU/2021-Winter-Algorithm-Study | ea32826abe7d8245ee9d3dc8d0161f7ba018a02f | [
"MIT"
] | 1 | 2021-02-03T13:09:09.000Z | 2021-02-03T13:09:09.000Z | #include <iostream>
#include <string>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
string a,b;
getline(cin,a);
getline(cin,b);
int cnt = 0;
//아래 if문안넣어서 제출 10번함 띠용..
if(a.size() >= b.size())
for(int shift = 0; shift <= a.size() - b.size(); shift++... | 19.297297 | 60 | 0.511204 | Dcom-KHU |
580dcb92371e2fd8cc738ad861a46b5c872287d7 | 18,749 | cpp | C++ | mobilican_demos/pick_and_place/src/point_head_action.cpp | robotican/mobilican_robots | faf97fa1dbb05db8068eaede65b572e1e0ba2273 | [
"BSD-2-Clause"
] | 1 | 2020-05-01T19:39:51.000Z | 2020-05-01T19:39:51.000Z | mobilican_demos/pick_and_place/src/point_head_action.cpp | robotican/mobilican_robots | faf97fa1dbb05db8068eaede65b572e1e0ba2273 | [
"BSD-2-Clause"
] | 1 | 2019-01-21T11:00:54.000Z | 2019-01-28T08:21:30.000Z | mobilican_demos/pick_and_place/src/point_head_action.cpp | robotican/mobilican_robots | faf97fa1dbb05db8068eaede65b572e1e0ba2273 | [
"BSD-2-Clause"
] | 2 | 2019-01-22T12:13:19.000Z | 2019-01-30T10:07:21.000Z | /*******************************************************************************
* Copyright (c) 2018, RoboTICan, LTD.
* 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... | 34.592251 | 159 | 0.655288 | robotican |
580fcfad0f567543f742f09b4cb8e48b0f1bb72b | 300 | hpp | C++ | src/up/task_pool.hpp | snailbaron/up | 586e9514d914010dcd62a2144ef82a9018db5abf | [
"MIT"
] | null | null | null | src/up/task_pool.hpp | snailbaron/up | 586e9514d914010dcd62a2144ef82a9018db5abf | [
"MIT"
] | null | null | null | src/up/task_pool.hpp | snailbaron/up | 586e9514d914010dcd62a2144ef82a9018db5abf | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <vector>
enum class TaskState {
Running,
Success,
Fail,
};
class TaskPool {
public:
void add(std::function<TaskState(double)>&& task);
void update(double delta);
private:
std::vector<std::function<TaskState(double)>> _tasks;
};
| 15 | 57 | 0.67 | snailbaron |
581286790fb436c431b95e5dd6123efd0fb7205f | 3,679 | cpp | C++ | Sandbox/Scenes/SceneModelViewer.cpp | adriengivry/Lumos | beab295c25639e2320be9f1b6f0c0e49a2412d5a | [
"MIT"
] | null | null | null | Sandbox/Scenes/SceneModelViewer.cpp | adriengivry/Lumos | beab295c25639e2320be9f1b6f0c0e49a2412d5a | [
"MIT"
] | null | null | null | Sandbox/Scenes/SceneModelViewer.cpp | adriengivry/Lumos | beab295c25639e2320be9f1b6f0c0e49a2412d5a | [
"MIT"
] | 1 | 2020-04-17T13:40:49.000Z | 2020-04-17T13:40:49.000Z | #include "SceneModelViewer.h"
using namespace Lumos;
using namespace Maths;
SceneModelViewer::SceneModelViewer(const std::string& SceneName)
: Scene(SceneName)
{
}
SceneModelViewer::~SceneModelViewer()
{
}
void SceneModelViewer::OnInit()
{
Scene::OnInit();
LoadModels();
m_pCamera = new EditorCamera(-20.0f, 33... | 31.991304 | 216 | 0.742593 | adriengivry |
58140229249902d21d2a42726d33256d52e16e20 | 6,235 | cc | C++ | dp/CoinsWaySameValueSamePapper.cc | raining888/leetcode | e9e8ac51d49e0c5f1450a6b76ba9777b89f7e25b | [
"MIT"
] | null | null | null | dp/CoinsWaySameValueSamePapper.cc | raining888/leetcode | e9e8ac51d49e0c5f1450a6b76ba9777b89f7e25b | [
"MIT"
] | null | null | null | dp/CoinsWaySameValueSamePapper.cc | raining888/leetcode | e9e8ac51d49e0c5f1450a6b76ba9777b89f7e25b | [
"MIT"
] | null | null | null | #include <iostream>
#include <unordered_map>
#include <stdbool.h>
#include <random>
#include <memory.h>
using namespace std;
class CoinsWaySameValueSamePapper
{
public:
class Info
{
public:
int* coins; // coins[i]不同的面值
int* zhangs; // zhangs[i]面值的张数
int length; // 去重后的数组长度
... | 25.553279 | 94 | 0.451002 | raining888 |
581a707426fc893d330b340dd9005937ff7b1d96 | 5,591 | cc | C++ | lib/core/builder/ninja/syntax.cc | poacpm/cpm | 1e004120990d952ec8f20cdc72e58b57fba9e333 | [
"Apache-2.0"
] | null | null | null | lib/core/builder/ninja/syntax.cc | poacpm/cpm | 1e004120990d952ec8f20cdc72e58b57fba9e333 | [
"Apache-2.0"
] | null | null | null | lib/core/builder/ninja/syntax.cc | poacpm/cpm | 1e004120990d952ec8f20cdc72e58b57fba9e333 | [
"Apache-2.0"
] | null | null | null | // external
#include <boost/regex.hpp>
// internal
#include "poac/core/builder/ninja/syntax.hpp"
#include "poac/util/pretty.hpp"
namespace poac::core::builder::ninja::syntax {
/// Expand a string containing $vars as Ninja would.
///
/// Note: doesn't handle the full Ninja variable syntax, but it's enough
/// to make... | 28.237374 | 80 | 0.62547 | poacpm |
5820f7cd77c89c0c427627b244697a53750946e6 | 8,544 | hpp | C++ | include/ldgr/logger.hpp | akalsi87/ldgr | 490392d7e3a0de3cb6240f4bcf12bce80ed5135f | [
"Zlib"
] | null | null | null | include/ldgr/logger.hpp | akalsi87/ldgr | 490392d7e3a0de3cb6240f4bcf12bce80ed5135f | [
"Zlib"
] | null | null | null | include/ldgr/logger.hpp | akalsi87/ldgr | 490392d7e3a0de3cb6240f4bcf12bce80ed5135f | [
"Zlib"
] | null | null | null | //! @file logger.hpp
//! @brief Logger
/*
* zlib License
*
* (C) 2020 Aaditya Kalsi
*
* 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... | 34.039841 | 79 | 0.525866 | akalsi87 |
582362dae1216080f8d7b442b9fe59fae721d4e7 | 1,427 | cpp | C++ | src/animation/animation.cpp | krait-games/hyperion-engine | 5c52085658630fbf0992f794ecfcb25325b80b1c | [
"MIT"
] | 21 | 2022-01-23T15:20:59.000Z | 2022-03-31T22:10:14.000Z | src/animation/animation.cpp | krait-games/hyperion-engine | 5c52085658630fbf0992f794ecfcb25325b80b1c | [
"MIT"
] | 2 | 2022-01-30T22:24:58.000Z | 2022-03-28T02:37:07.000Z | src/animation/animation.cpp | krait-games/hyperion-engine | 5c52085658630fbf0992f794ecfcb25325b80b1c | [
"MIT"
] | 2 | 2022-02-10T13:55:26.000Z | 2022-03-31T22:10:16.000Z | #include "animation.h"
#include "../math/math_util.h"
namespace hyperion {
Animation::Animation(const std::string &name)
: name(name)
{
}
Animation::Animation(const Animation &other)
: name(name),
tracks(other.tracks)
{
}
const std::string &Animation::GetName() const
{
return name;
}
void Animatio... | 18.532468 | 70 | 0.627891 | krait-games |
58266bb50af9f4d41e04bae91df5ab9607cefda7 | 1,515 | hpp | C++ | src/mlpack/core/tree/space_split/midpoint_space_split.hpp | RMaron/mlpack | a179a2708d9555ab7ee4b1e90e0c290092edad2e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 675 | 2019-02-07T01:23:19.000Z | 2022-03-28T05:45:10.000Z | src/mlpack/core/tree/space_split/midpoint_space_split.hpp | RMaron/mlpack | a179a2708d9555ab7ee4b1e90e0c290092edad2e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 843 | 2019-01-25T01:06:46.000Z | 2022-03-16T11:15:53.000Z | src/mlpack/core/tree/space_split/midpoint_space_split.hpp | RMaron/mlpack | a179a2708d9555ab7ee4b1e90e0c290092edad2e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 83 | 2019-02-20T06:18:46.000Z | 2022-03-20T09:36:09.000Z | /**
* @file midpoing_space_split.hpp
* @author Marcos Pividori
*
* Definition of MidpointSpaceSplit, to create a splitting hyperplane
* considering the midpoint of the values in a certain projection.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD lice... | 29.705882 | 78 | 0.747855 | RMaron |
582a73f9ef3f01d3937dc0f1e9d724d3c752c5d3 | 4,889 | cpp | C++ | docs/template_plugin/tests/functional/op_reference/sigmoid.cpp | ivkalgin/openvino | 81685c8d212135dd9980da86a18db41fbf6d250a | [
"Apache-2.0"
] | null | null | null | docs/template_plugin/tests/functional/op_reference/sigmoid.cpp | ivkalgin/openvino | 81685c8d212135dd9980da86a18db41fbf6d250a | [
"Apache-2.0"
] | 18 | 2022-01-21T08:42:58.000Z | 2022-03-28T13:21:31.000Z | docs/template_plugin/tests/functional/op_reference/sigmoid.cpp | ematroso/openvino | 403339f8f470c90dee6f6d94ed58644b2787f66b | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include "openvino/op/sigmoid.hpp"
#include "base_reference_test.hpp"
using namespace reference_tests;
using namespace ov;
namespace {
struct SigmoidParams {
template <class IT>
SigmoidParams(cons... | 35.427536 | 144 | 0.617304 | ivkalgin |
582d0e4755402a4e2c221813857d1277ef1f8094 | 3,800 | cpp | C++ | src/lib/factory_manager.cpp | sj0897/my-ARIAC-competition-2021 | fbaa26430d5c37444464a3c04d44d80cf11c5ef1 | [
"BSD-3-Clause"
] | null | null | null | src/lib/factory_manager.cpp | sj0897/my-ARIAC-competition-2021 | fbaa26430d5c37444464a3c04d44d80cf11c5ef1 | [
"BSD-3-Clause"
] | null | null | null | src/lib/factory_manager.cpp | sj0897/my-ARIAC-competition-2021 | fbaa26430d5c37444464a3c04d44d80cf11c5ef1 | [
"BSD-3-Clause"
] | null | null | null | #include "factory_manager.h"
#include <string>
#include <std_srvs/Trigger.h>
#include <nist_gear/KittingShipment.h>
#include <nist_gear/AssemblyShipment.h>
FactoryManager::FactoryManager(ros::NodeHandle* nodehandle):
m_nh{*nodehandle},
m_orders{nodehandle}
{
// Subscribers
m_busy_subscriber = m_nh.subscribe(... | 24.516129 | 144 | 0.697895 | sj0897 |
583e2c1a990b26c999fb50cafcc3f738de619d45 | 1,148 | cpp | C++ | src/UdpServer.cpp | anloro/modular_slam | fbcb125f57e7875051ca0f600e882c87d72b1bdb | [
"MIT"
] | 1 | 2021-09-05T10:58:01.000Z | 2021-09-05T10:58:01.000Z | src/UdpServer.cpp | anloro/modular_slam | fbcb125f57e7875051ca0f600e882c87d72b1bdb | [
"MIT"
] | null | null | null | src/UdpServer.cpp | anloro/modular_slam | fbcb125f57e7875051ca0f600e882c87d72b1bdb | [
"MIT"
] | 1 | 2021-09-05T10:58:04.000Z | 2021-09-05T10:58:04.000Z | // Server side implementation of UDP client-server model
#include "UdpClientServer.h"
using namespace anloro;
anloro::UdpServer::UdpServer()
{
// Create the UDP socket
// SOCK_STREAM for TCP / SOCK_DGRAM for UDP
if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
perror("cannot create socket\n");
... | 24.956522 | 93 | 0.623693 | anloro |
58455840aca91f9510459442d3ede8058ebbb07a | 238 | cpp | C++ | solutions/717.1-bit-and-2-bit-characters.249179424.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/717.1-bit-and-2-bit-characters.249179424.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/717.1-bit-and-2-bit-characters.249179424.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
bool isOneBitCharacter(vector<int> &bits) {
for (int i = 0; i < bits.size(); i++) {
if (i == bits.size() - 1)
return true;
if (bits[i] == 1)
i++;
}
return false;
}
};
| 15.866667 | 45 | 0.47479 | satu0king |
5847bf7b722c0a98d5b24db66f5c59ce67b592ff | 3,141 | hpp | C++ | src/mesh/mesh.hpp | guhanfeng/HSF | d2f091e990bb5a18473db0443872e37de6b6a83f | [
"Apache-2.0"
] | null | null | null | src/mesh/mesh.hpp | guhanfeng/HSF | d2f091e990bb5a18473db0443872e37de6b6a83f | [
"Apache-2.0"
] | null | null | null | src/mesh/mesh.hpp | guhanfeng/HSF | d2f091e990bb5a18473db0443872e37de6b6a83f | [
"Apache-2.0"
] | null | null | null | /**
* @file: mesh.hpp
* @author: Liu Hongbin
* @brief:
* @date: 2019-09-24 09:25:44
* @last Modified by: lenovo
* @last Modified time: 2019-11-28 10:27:09
*/
#ifndef MESH_HPP
#define MESH_HPP
#include "utilities.hpp"
#include "section.hpp"
#include "topology.hpp"
#include "nodes.hpp"
namespace HSF
{
/**
* @brie... | 21.080537 | 87 | 0.687361 | guhanfeng |
5847ce0346d8abf2c2692c30cefd0d4219c5731e | 3,905 | hpp | C++ | include/integratorxx/quadratures/muraknowles.hpp | evaleev/IntegratorXX | 70339ca2d8f753e477dffb64788913c1bc12b519 | [
"BSD-3-Clause"
] | null | null | null | include/integratorxx/quadratures/muraknowles.hpp | evaleev/IntegratorXX | 70339ca2d8f753e477dffb64788913c1bc12b519 | [
"BSD-3-Clause"
] | null | null | null | include/integratorxx/quadratures/muraknowles.hpp | evaleev/IntegratorXX | 70339ca2d8f753e477dffb64788913c1bc12b519 | [
"BSD-3-Clause"
] | 3 | 2019-05-09T21:02:21.000Z | 2021-03-04T21:34:35.000Z | #pragma once
#include <integratorxx/quadrature.hpp>
#include <integratorxx/quadratures/uniform.hpp>
namespace IntegratorXX {
/**
* @brief Implementation of the Mura-Knowles radial quadrature.
*
* Generates a quadrature on the bounds (0, inf). Suitable for integrands
* which tend to zero as their argument tend... | 28.713235 | 74 | 0.646607 | evaleev |
58488fe57a8099381d7b96f43d0bc199ebea1358 | 769 | cpp | C++ | date-triad/main.cpp | Sanlovty/lab-date-triad | 9b0232192049e0affdebc1c4ed15358a33a19eac | [
"Apache-2.0"
] | null | null | null | date-triad/main.cpp | Sanlovty/lab-date-triad | 9b0232192049e0affdebc1c4ed15358a33a19eac | [
"Apache-2.0"
] | null | null | null | date-triad/main.cpp | Sanlovty/lab-date-triad | 9b0232192049e0affdebc1c4ed15358a33a19eac | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "Date.h"
using namespace std;
int main()
{
try
{
Date date(10, 15, 2001);
cout << "Initial date: " << date.toString();
date.increaseDateByN(10);
cout << endl << "Date after 10 days: " << date.toString();
date.increaseFirst();
cout << endl << "Date after applying method incr... | 25.633333 | 85 | 0.637191 | Sanlovty |
5849b58566a16cebca8d63cb9124c2f21ce3ce65 | 6,131 | cpp | C++ | test/queue_bridge.cpp | uos/hatsdf_slam | f30f69c0f6b9286cd4fa51ca17f0e2d423ca4682 | [
"BSD-3-Clause"
] | 5 | 2021-05-21T07:52:50.000Z | 2022-02-09T04:26:31.000Z | test/queue_bridge.cpp | uos/hatsdf_slam | f30f69c0f6b9286cd4fa51ca17f0e2d423ca4682 | [
"BSD-3-Clause"
] | null | null | null | test/queue_bridge.cpp | uos/hatsdf_slam | f30f69c0f6b9286cd4fa51ca17f0e2d423ca4682 | [
"BSD-3-Clause"
] | 1 | 2022-02-09T04:26:33.000Z | 2022-02-09T04:26:33.000Z | /**
* @file queue_bridge.cpp
* @author Marcel Flottmann
* @date 2020-10-6
*/
#include "catch2_config.h"
#include <comm/receiver.h>
#include <msg/stamped.h>
#include <msg/point_cloud.h>
#include <comm/buffered_receiver.h>
#include <comm/queue_bridge.h>
#include <iostream>
using namespace fastsense::comm;
using nam... | 25.127049 | 80 | 0.585549 | uos |
5850c3de7cfeeeef067a1000d1bd3f86a682913f | 1,147 | cpp | C++ | src/parser/Parser.cpp | SebastianBogado/7559-tp-concu-2014-1c | 8aab30db8b9a7d9c10e5f6b1980207ee89b6bad1 | [
"MIT"
] | null | null | null | src/parser/Parser.cpp | SebastianBogado/7559-tp-concu-2014-1c | 8aab30db8b9a7d9c10e5f6b1980207ee89b6bad1 | [
"MIT"
] | null | null | null | src/parser/Parser.cpp | SebastianBogado/7559-tp-concu-2014-1c | 8aab30db8b9a7d9c10e5f6b1980207ee89b6bad1 | [
"MIT"
] | null | null | null | #include "parser/Parser.h"
#include <iostream>
#include <cassert>
#include <unistd.h>
#include <stdlib.h>
#include <getopt.h>
Parser::Parser() : _debug(default_debug), _ready(true), _surtidores(default_surtidores), _empleados(default_empleados) {
}
void Parser::printUsage() const {
std::cout << "Uso: ./estacion [-d... | 19.775862 | 120 | 0.634699 | SebastianBogado |
5855830bd1a7e4f5b08e7fd41e595a5ff66b3d37 | 912 | cpp | C++ | tests/core/IntegrationTest.cpp | dkozyr/brainfuck | dd6cae16e78ab2afcbd12d70bf399d6559a1f92f | [
"MIT"
] | 1 | 2022-02-01T09:57:29.000Z | 2022-02-01T09:57:29.000Z | tests/core/IntegrationTest.cpp | dkozyr/brainfuck | dd6cae16e78ab2afcbd12d70bf399d6559a1f92f | [
"MIT"
] | null | null | null | tests/core/IntegrationTest.cpp | dkozyr/brainfuck | dd6cae16e78ab2afcbd12d70bf399d6559a1f92f | [
"MIT"
] | null | null | null | #include "Compiler.h"
#include <gtest/gtest.h>
TEST(Integration, HelloWorld) {
Compiler bf(std::string{EXAMPLES_PATH} + "/hello.bf");
bf.Execute();
bf.ExecuteOptimized();
}
TEST(Integration, Bench1) {
Compiler bf(std::string{EXAMPLES_PATH} + "/bench-1.bf");
bf.Execute();
bf.ExecuteOptimized();... | 24 | 68 | 0.662281 | dkozyr |
5855fef4e8b04780212d3f0d8704f88527ea70e2 | 631 | hpp | C++ | include/awl/backends/windows/wndclass.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | include/awl/backends/windows/wndclass.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | include/awl/backends/windows/wndclass.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | #ifndef AWL_BACKENDS_WINDOWS_WNDCLASS_HPP_INCLUDED
#define AWL_BACKENDS_WINDOWS_WNDCLASS_HPP_INCLUDED
#include <awl/backends/windows/windows.hpp>
#include <awl/backends/windows/wndclass_fwd.hpp>
#include <awl/detail/symbol.hpp>
#include <fcppt/noncopyable.hpp>
#include <fcppt/string.hpp>
namespace awl
{
namespace bac... | 15.775 | 53 | 0.77813 | freundlich |
58567d983af56e3a411066ea32da58ec0a87c356 | 380 | hpp | C++ | include/Variable.hpp | andremmvgabriel/boolean_circuit_generator | 21a36e04072b4ce388b22992d3ca35643b967fc9 | [
"MIT"
] | 1 | 2021-09-03T14:03:28.000Z | 2021-09-03T14:03:28.000Z | include/Variable.hpp | andremmvgabriel/boolean_circuit_generator | 21a36e04072b4ce388b22992d3ca35643b967fc9 | [
"MIT"
] | null | null | null | include/Variable.hpp | andremmvgabriel/boolean_circuit_generator | 21a36e04072b4ce388b22992d3ca35643b967fc9 | [
"MIT"
] | null | null | null | #pragma once
#include <stdint.h>
#include <vector>
#include <Wire.hpp>
namespace gabe
{
namespace circuits
{
class Variable
{
public:
std::vector<Wire> wires;
uint8_t number_wires;
public:
Variable();
Variable(uint8_t n_... | 14.615385 | 37 | 0.492105 | andremmvgabriel |
5856a7e58f4e14787f3910cd09f3ecabd992b495 | 2,352 | hpp | C++ | far/common/keep_alive.hpp | lidacity/FarManager | 4ff6edbd53b6652d3ab1d9ae86f66873be850209 | [
"BSD-3-Clause"
] | 1 | 2019-11-15T10:13:04.000Z | 2019-11-15T10:13:04.000Z | far/common/keep_alive.hpp | fcccode/FarManager | 5df65d2ea1fc1dca27acd439313b5347d4c9afdd | [
"BSD-3-Clause"
] | 1 | 2021-01-21T13:57:07.000Z | 2021-01-21T13:57:07.000Z | far/common/keep_alive.hpp | fcccode/FarManager | 5df65d2ea1fc1dca27acd439313b5347d4c9afdd | [
"BSD-3-Clause"
] | null | null | null | #ifndef KEEP_ALIVE_HPP_9C3E665F_56D5_4A21_9950_F1F8F6BFC7A3
#define KEEP_ALIVE_HPP_9C3E665F_56D5_4A21_9950_F1F8F6BFC7A3
#pragma once
/*
keep_alive.hpp
*/
/*
Copyright © 2018 Far Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | 32.666667 | 78 | 0.758929 | lidacity |
5856cc332134f67cd2873a77599d9df4cbd74c5e | 529 | hpp | C++ | include/Interpreter.hpp | Electrux/alacrity-lang | 2931533c0f393cf2d2500ac0848da452fbc19295 | [
"BSD-3-Clause"
] | 15 | 2019-03-21T14:37:17.000Z | 2021-11-14T20:35:46.000Z | include/Interpreter.hpp | Electrux/alacrity-lang | 2931533c0f393cf2d2500ac0848da452fbc19295 | [
"BSD-3-Clause"
] | null | null | null | include/Interpreter.hpp | Electrux/alacrity-lang | 2931533c0f393cf2d2500ac0848da452fbc19295 | [
"BSD-3-Clause"
] | 5 | 2019-02-02T10:18:04.000Z | 2021-05-06T16:34:04.000Z | /*
Copyright (c) 2019, Electrux
All rights reserved.
Using the BSD 3-Clause license for the project,
main LICENSE file resides in project's root directory.
Please read that file and understand the license terms
before using or altering the project.
*/
#ifndef INTERPRETER_HPP
#define INTERPRETER_HPP
#include "P... | 24.045455 | 75 | 0.765595 | Electrux |
58573f1335b4829382b546f26d700970695a75c1 | 439 | cpp | C++ | Libraries/Libc/_init.cpp | vpachkov/MacaronOS | e2572761f0d73a435d5660eb88d4dc96c944a349 | [
"MIT"
] | 21 | 2021-08-22T19:06:54.000Z | 2022-03-31T12:44:30.000Z | Libraries/Libc/_init.cpp | Plunkerusr/WisteriaOS | 14f853cb8fdd6b958dd94ab24e5f19ac0268a4f6 | [
"MIT"
] | 1 | 2021-09-01T22:55:59.000Z | 2021-09-08T20:52:09.000Z | Libraries/Libc/_init.cpp | Plunkerusr/WisteriaOS | 14f853cb8fdd6b958dd94ab24e5f19ac0268a4f6 | [
"MIT"
] | null | null | null | #include <Macaronlib/Common.hpp>
extern "C" {
extern void _init();
void _init()
{
extern void (*__init_array_start[])(int, char**, char**) __attribute__((visibility("hidden")));
extern void (*__init_array_end[])(int, char**, char**) __attribute__((visibility("hidden")));
const size_t size = __init_array_... | 25.823529 | 99 | 0.635535 | vpachkov |
585931ff9957e4fb029299be48f167e1e318211c | 3,060 | cpp | C++ | codeforces/archived/B_Putting_Bricks_in_the_Wall.cpp | st3v3nmw/competitive-programming | 581d36c1c128e0e3ee3a0b52628e932ab43821d4 | [
"MIT"
] | null | null | null | codeforces/archived/B_Putting_Bricks_in_the_Wall.cpp | st3v3nmw/competitive-programming | 581d36c1c128e0e3ee3a0b52628e932ab43821d4 | [
"MIT"
] | null | null | null | codeforces/archived/B_Putting_Bricks_in_the_Wall.cpp | st3v3nmw/competitive-programming | 581d36c1c128e0e3ee3a0b52628e932ab43821d4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define eol "\n"
#define _(x) #x << "=" << to_str(x) << ", "
#define debug(x) { ostringstream stream; stream << x; string s = stream.str(); cout << s.substr(0, s.length() - 2) << eol; }
string to_string(basic_string<char>& x) { return "\"" + x + "\""; }
string to_string(ch... | 36.86747 | 198 | 0.418301 | st3v3nmw |
5859f9acabe99c710454e61e68802858b64fe00b | 3,296 | cpp | C++ | weatherclass.cpp | Alvee93/PhotoAnnotator | 9b330b35b59883f98eb54b3d85e858071626cbff | [
"Unlicense"
] | null | null | null | weatherclass.cpp | Alvee93/PhotoAnnotator | 9b330b35b59883f98eb54b3d85e858071626cbff | [
"Unlicense"
] | null | null | null | weatherclass.cpp | Alvee93/PhotoAnnotator | 9b330b35b59883f98eb54b3d85e858071626cbff | [
"Unlicense"
] | null | null | null | #include "weatherclass.h"
#include <QApplication>
QString api_key = "_api_key_";
WeatherClass::WeatherClass(QObject *parent) : QObject(parent)
{
}
QString WeatherClass::getWeather(double map_lat, double map_long, string p_date)
{
// This string will contain weather info
QString weather_qStr;
// Parsin... | 33.632653 | 112 | 0.635012 | Alvee93 |
5861a7b82f8784c5a5852244033e2a3c2d6f4c01 | 2,066 | cpp | C++ | IlluminoEngine/src/Illumino/Renderer/SceneRenderer.cpp | MohitSethi99/IlluminoEngine | c24efc384d538caa1b635770bfba6666cc5448a8 | [
"Apache-2.0"
] | null | null | null | IlluminoEngine/src/Illumino/Renderer/SceneRenderer.cpp | MohitSethi99/IlluminoEngine | c24efc384d538caa1b635770bfba6666cc5448a8 | [
"Apache-2.0"
] | null | null | null | IlluminoEngine/src/Illumino/Renderer/SceneRenderer.cpp | MohitSethi99/IlluminoEngine | c24efc384d538caa1b635770bfba6666cc5448a8 | [
"Apache-2.0"
] | null | null | null | #include "ipch.h"
#include "SceneRenderer.h"
#include <glm/glm.hpp>
#include <glm/gtx/transform.hpp>
#include "RenderCommand.h"
#include "Shader.h"
namespace IlluminoEngine
{
static Ref<Shader> s_Shader;
static glm::mat4 s_Projection;
std::vector<MeshData> SceneRenderer::s_Meshes;
void SceneRenderer::Init()
... | 19.12963 | 91 | 0.662149 | MohitSethi99 |
58623d1d6a408e522769ff0a1cacdb667f233c64 | 1,452 | cpp | C++ | gfg_DP/fibo.cpp | kbhartiya/C-Problems | 2dd0e74b44bb4678a55afcb58ed1292efa237efa | [
"Apache-2.0"
] | 1 | 2019-01-05T13:16:21.000Z | 2019-01-05T13:16:21.000Z | gfg_DP/fibo.cpp | kbhartiya/C-Problems | 2dd0e74b44bb4678a55afcb58ed1292efa237efa | [
"Apache-2.0"
] | null | null | null | gfg_DP/fibo.cpp | kbhartiya/C-Problems | 2dd0e74b44bb4678a55afcb58ed1292efa237efa | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
//#include<chrono>
using namespace std;
//using namespace std::chrono;
# define MAX 102334155
long long res[MAX+1]={-1};
long long recursive(long long n)
{
if(n==1) return 1;
if(n==0) return 0;
return recursive(n-1) + recursive(n-2);
}
long long bott_up(long long n)
{
int fib[n+1];
fib... | 23.419355 | 71 | 0.641873 | kbhartiya |
58627161bf53585d8433038adc01695bbccc28b8 | 1,994 | hpp | C++ | Components/8530/z8530.hpp | ajacocks/CLK | 5f39938a192f976f51f54e4bbaf6d5cded03d48d | [
"MIT"
] | null | null | null | Components/8530/z8530.hpp | ajacocks/CLK | 5f39938a192f976f51f54e4bbaf6d5cded03d48d | [
"MIT"
] | null | null | null | Components/8530/z8530.hpp | ajacocks/CLK | 5f39938a192f976f51f54e4bbaf6d5cded03d48d | [
"MIT"
] | null | null | null | //
// z8530.hpp
// Clock Signal
//
// Created by Thomas Harte on 07/06/2019.
// Copyright © 2019 Thomas Harte. All rights reserved.
//
#ifndef z8530_hpp
#define z8530_hpp
#include <cstdint>
namespace Zilog {
namespace SCC {
/*!
Models the Zilog 8530 SCC, a serial adaptor.
*/
class z8530 {
public:
/*
**In... | 19.94 | 74 | 0.673521 | ajacocks |
5863cd5477845084d895724ee922c756b8c99aaa | 3,097 | cpp | C++ | src/homework/06_tic_tac_toe/tic_tac_toe_3.cpp | acc-cosc-1337-fall-2021/acc-cosc-1337-fall-2021-hopeAtACC | 52e495ed939dafc78293a4ea280ac7dcd3c24c25 | [
"MIT"
] | null | null | null | src/homework/06_tic_tac_toe/tic_tac_toe_3.cpp | acc-cosc-1337-fall-2021/acc-cosc-1337-fall-2021-hopeAtACC | 52e495ed939dafc78293a4ea280ac7dcd3c24c25 | [
"MIT"
] | null | null | null | src/homework/06_tic_tac_toe/tic_tac_toe_3.cpp | acc-cosc-1337-fall-2021/acc-cosc-1337-fall-2021-hopeAtACC | 52e495ed939dafc78293a4ea280ac7dcd3c24c25 | [
"MIT"
] | null | null | null | #include "tic_tac_toe_3.h"
using std::string; using std::vector; using std::ostream; using std::istream; using std::endl; using std::cout;
bool Tic_tac_toe_3::check_column_win()
{
for (int i = 0; i<= 8; i++)
{
if (pegs[0] == "X" && pegs[3] == "X" && pegs[6] == "X")
{
return true;
... | 24.007752 | 111 | 0.399096 | acc-cosc-1337-fall-2021 |
5863d5374103c52890b7726cb33d3eaf776fcf1b | 18,267 | cpp | C++ | cli/main.cpp | svp-dev/mgsim | 0abd708f3c48723fc233f6c53f3e638129d070fa | [
"MIT"
] | 7 | 2016-03-01T13:16:59.000Z | 2021-08-20T07:41:43.000Z | cli/main.cpp | svp-dev/mgsim | 0abd708f3c48723fc233f6c53f3e638129d070fa | [
"MIT"
] | null | null | null | cli/main.cpp | svp-dev/mgsim | 0abd708f3c48723fc233f6c53f3e638129d070fa | [
"MIT"
] | 5 | 2015-04-20T14:29:38.000Z | 2018-12-29T11:09:17.000Z | #ifdef HAVE_CONFIG_H
#include <sys_config.h>
#endif
#include "simreadline.h"
#include "commands.h"
#include <arch/MGSystem.h>
#include <sim/config.h>
#include <sim/configparser.h>
#include <sim/readfile.h>
#include <sim/rusage.h>
#include <sim/sampling.h>
#include <sim/monitor.h>
#include <sstream>
#include <iostream... | 32.503559 | 163 | 0.573384 | svp-dev |
586be7c392c580a6d34c2613e9365e021c6fcc7b | 3,035 | hpp | C++ | beaker/value.hpp | thehexia/beaker2 | ca6c563c51be4a08d78e4eda007967bc4ae812a2 | [
"Apache-2.0"
] | null | null | null | beaker/value.hpp | thehexia/beaker2 | ca6c563c51be4a08d78e4eda007967bc4ae812a2 | [
"Apache-2.0"
] | null | null | null | beaker/value.hpp | thehexia/beaker2 | ca6c563c51be4a08d78e4eda007967bc4ae812a2 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2015 Andrew Sutton
// All rights reserved
#ifndef BEAKER_VALUE_HPP
#define BEAKER_VALUE_HPP
// The value module represents compile-time or
// interpreted values.
//
// TODO: Make a visitor for values.
#include "prelude.hpp"
struct Value;
enum Value_kind
{
error_value,
integer_value,
funct... | 18.065476 | 58 | 0.695222 | thehexia |
5878daeeba6873f8bb34bb4ba1ce0ba70faf2643 | 6,483 | hpp | C++ | include/autotune/continuous_parameter.hpp | DavidPfander-UniStuttgart/AutoTuneTMP | f5fb836778b04c2ab0fbcc4d36c466e577e96e65 | [
"BSD-3-Clause"
] | 5 | 2019-11-06T15:02:41.000Z | 2022-01-14T20:25:50.000Z | include/autotune/continuous_parameter.hpp | DavidPfander-UniStuttgart/AutoTuneTMP | f5fb836778b04c2ab0fbcc4d36c466e577e96e65 | [
"BSD-3-Clause"
] | 3 | 2018-01-25T21:25:22.000Z | 2022-03-14T17:35:27.000Z | include/autotune/continuous_parameter.hpp | DavidPfander-UniStuttgart/AutoTuneTMP | f5fb836778b04c2ab0fbcc4d36c466e577e96e65 | [
"BSD-3-Clause"
] | 1 | 2020-07-15T11:05:43.000Z | 2020-07-15T11:05:43.000Z | #pragma once
#include "autotune_exception.hpp"
#include "util.hpp"
#include <cmath>
#include <functional>
#include <iomanip>
namespace autotune {
class stepable_continuous_parameter {
protected:
std::string name;
double initial;
double current;
double step;
bool multiply;
// std::function<double(double, ... | 23.834559 | 80 | 0.603424 | DavidPfander-UniStuttgart |
587a791edcedde92a23e91c10620ac6b6ef4c407 | 12,134 | cpp | C++ | src/nescore/apu_tnd.cpp | BenWenger/Schpune | 723e0bae8cac846c2bcbc9c1fb4f4a9fd1191a23 | [
"MIT"
] | 2 | 2018-11-11T03:49:47.000Z | 2019-05-22T09:34:20.000Z | src/nescore/apu_tnd.cpp | BenWenger/Schpune | 723e0bae8cac846c2bcbc9c1fb4f4a9fd1191a23 | [
"MIT"
] | null | null | null | src/nescore/apu_tnd.cpp | BenWenger/Schpune | 723e0bae8cac846c2bcbc9c1fb4f4a9fd1191a23 | [
"MIT"
] | null | null | null |
#include "apu_tnd.h"
#include "cpubus.h"
#include "resetinfo.h"
#include "dmaunit.h"
#include "eventmanager.h"
#include "apu.h"
#include <algorithm>
namespace schcore
{
const u16 Apu_Tnd::noiseFreqLut[2][0x10] = {
{ 4, 8, 16, 32, 64, 96, 128, 160, 202, 254, 380, 508, 762, 1016, 2034, 4068 }, ... | 30.796954 | 118 | 0.449563 | BenWenger |
587add24c3c19686ff638d4ae70d2d9abab23d44 | 3,735 | cpp | C++ | source/main.cpp | suVrik/aabbox_benchmark | f83a838c9342a0fc684d4bb978f6c1b76a6c487f | [
"MIT"
] | null | null | null | source/main.cpp | suVrik/aabbox_benchmark | f83a838c9342a0fc684d4bb978f6c1b76a6c487f | [
"MIT"
] | null | null | null | source/main.cpp | suVrik/aabbox_benchmark | f83a838c9342a0fc684d4bb978f6c1b76a6c487f | [
"MIT"
] | null | null | null | #include "shared.h"
#include <chrono>
#include <cstdlib>
#include <iomanip>
#include <iostream>
constexpr size_t TEST_COUNT = 10000000;
int main(int argc, char* argv[]) {
//
// Generate data.
//
float4 float3_data[8192];
aabbox aabbox_data[4096];
for (float4& value : float3_data) {
... | 29.642857 | 90 | 0.599197 | suVrik |
587fbc1bf055b7d1476cfc9b6a5ba6a03173d7dd | 11,857 | hpp | C++ | statistics.hpp | 25077667/statistics_BM_NSYSU | 2c6c462727d9bf4bcff5844e785fd165a82c5a2d | [
"MIT"
] | null | null | null | statistics.hpp | 25077667/statistics_BM_NSYSU | 2c6c462727d9bf4bcff5844e785fd165a82c5a2d | [
"MIT"
] | null | null | null | statistics.hpp | 25077667/statistics_BM_NSYSU | 2c6c462727d9bf4bcff5844e785fd165a82c5a2d | [
"MIT"
] | null | null | null | #include <boost/math/distributions/normal.hpp>
#include <boost/math/distributions/students_t.hpp>
#include <cmath>
#include <fstream>
#include <iostream>
#include <map>
#include <utility>
#include <vector>
// this header for all except for ch8
// MIT LICENSE
#ifndef STATISTICS_HPP
#define STATISTICS_HPP
using namespace... | 36.595679 | 120 | 0.651177 | 25077667 |
5885ce345983b2acb00db0411fa4b6344d94d5b2 | 3,865 | hpp | C++ | cpp/euler003/Primesieve.hpp | marvins/ProjectEuler | 55a377bb9702067bac6908c1316c578498402668 | [
"MIT"
] | null | null | null | cpp/euler003/Primesieve.hpp | marvins/ProjectEuler | 55a377bb9702067bac6908c1316c578498402668 | [
"MIT"
] | null | null | null | cpp/euler003/Primesieve.hpp | marvins/ProjectEuler | 55a377bb9702067bac6908c1316c578498402668 | [
"MIT"
] | 1 | 2020-12-16T09:25:19.000Z | 2020-12-16T09:25:19.000Z | #ifndef __PRIME_SIEVE_H__
#define __PRIME_SIEVE_H__
// C++ Standard Libraries
#include <cinttypes>
#include <iostream>
#include <cmath>
#include <vector>
#include <sstream>
#include <string>
using namespace std;
/**
* @class Prime Sieve Class
*
* Implements a basic prime sieve
*/
class Primes{
public:
... | 22.602339 | 88 | 0.381371 | marvins |
5888eae2237ee496343ad00fe64f487ec39abe45 | 1,457 | cpp | C++ | src/Pic.cpp | NiwakaDev/X86_EMULATOR_2 | 2e725e0eaa543048ce9a20bd223bcdcde2df7a73 | [
"MIT"
] | 16 | 2021-11-19T22:26:22.000Z | 2022-02-16T12:38:50.000Z | src/Pic.cpp | NiwakaDev/X86_EMULATOR_2 | 2e725e0eaa543048ce9a20bd223bcdcde2df7a73 | [
"MIT"
] | 1 | 2022-02-19T04:56:47.000Z | 2022-02-19T10:00:58.000Z | src/Pic.cpp | NiwakaDev/X86_EMULATOR_2 | 2e725e0eaa543048ce9a20bd223bcdcde2df7a73 | [
"MIT"
] | null | null | null | #include "Pic.h"
#include <format>
#include "IoDevice.h"
using namespace std;
Pic::Pic(IoDevice** io_devices) {
if (io_devices == NULL) {
throw runtime_error("io_devices is NULL at Pic::Pic");
}
this->obj = make_unique<Object>();
for (int i = 0; i < 16; i++) {
this->irq_list[i] = false;
}
this->io_... | 22.765625 | 80 | 0.539465 | NiwakaDev |
588f5de16d7dacf8c21f1a364bb9b7f54d6304c4 | 906 | cc | C++ | leet_code/Iterator_for_Combination/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | leet_code/Iterator_for_Combination/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | leet_code/Iterator_for_Combination/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | class CombinationIterator {
private :
list<string> m_list;
list<string>::iterator m_iter;
void generate(string& characters, string str, int idx, int n) {
if (n == 0) {
m_list.push_back(str);
} else if ((n > 0) && (idx < characters.length())) {
generate(characters, str + characters[idx], idx + 1, n - 1);
... | 23.230769 | 85 | 0.66777 | ldy121 |
588f88a4b57ef2b4f86f673d4bd7ec668ccedb95 | 5,339 | cpp | C++ | test/decode.cpp | cdglove/boost.radix | 39626a1a76eb33ce9bd43b3957f1a39678943a30 | [
"BSL-1.0"
] | 1 | 2018-01-11T20:27:16.000Z | 2018-01-11T20:27:16.000Z | test/decode.cpp | cdglove/boost.radix | 39626a1a76eb33ce9bd43b3957f1a39678943a30 | [
"BSL-1.0"
] | null | null | null | test/decode.cpp | cdglove/boost.radix | 39626a1a76eb33ce9bd43b3957f1a39678943a30 | [
"BSL-1.0"
] | null | null | null | //
// test/decode.cpp
//
// Copyright (c) Chris Glover, 2017-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)
//
#define BOOST_TEST_MODULE TestDecode
#include <boost/test/unit_test.hpp>
#include <boost/radi... | 27.379487 | 80 | 0.701255 | cdglove |
5895b01774a3b95dcf02a56bcf363bf6e704c4f3 | 5,486 | cpp | C++ | lang/steve/Cli.cpp | flowgrammable/steve-legacy | 5e7cbc16280c199732d26a2cb0703422695abe16 | [
"Apache-2.0"
] | 1 | 2017-07-30T04:18:56.000Z | 2017-07-30T04:18:56.000Z | lang/steve/Cli.cpp | flowgrammable/steve-legacy | 5e7cbc16280c199732d26a2cb0703422695abe16 | [
"Apache-2.0"
] | null | null | null | lang/steve/Cli.cpp | flowgrammable/steve-legacy | 5e7cbc16280c199732d26a2cb0703422695abe16 | [
"Apache-2.0"
] | null | null | null |
#include <steve/Cli.hpp>
#include <steve/Config.hpp>
#include <steve/Ast.hpp>
#include <steve/Error.hpp>
#include <steve/Extract.hpp>
#include <steve/Module.hpp>
#include <steve/String.hpp>
#include <cctype>
#include <cstring>
#include <algorithm>
#include <iostream>
namespace steve {
namespace cli {
namespace {
/... | 24.711712 | 90 | 0.595516 | flowgrammable |
5895e8e4df264498717bb31cea0001f602950c9f | 1,227 | cpp | C++ | lib/Seeed_Arduino_TFlidar/src/TFLidar.cpp | sei-kiu/Wio-Terminal-Grove-TF-Mini-LiDAR | f1a3090d0ad4de7c8ac4bccf765a5266d998a81a | [
"MIT"
] | null | null | null | lib/Seeed_Arduino_TFlidar/src/TFLidar.cpp | sei-kiu/Wio-Terminal-Grove-TF-Mini-LiDAR | f1a3090d0ad4de7c8ac4bccf765a5266d998a81a | [
"MIT"
] | null | null | null | lib/Seeed_Arduino_TFlidar/src/TFLidar.cpp | sei-kiu/Wio-Terminal-Grove-TF-Mini-LiDAR | f1a3090d0ad4de7c8ac4bccf765a5266d998a81a | [
"MIT"
] | 2 | 2021-05-31T21:57:02.000Z | 2022-03-29T22:38:19.000Z | #include "TFLidar.h"
TFLidar::TFLidar(TFBase *TF_Lidar){
_TF_Lidar = TF_Lidar;
}
void TFLidar::begin(SoftwareSerial *TFSerial,uint32_t baud_rate){
_TF_Lidar->begin(TFSerial,baud_rate);
}
void TFLidar::begin(HardwareSerial *TFSerial,uint32_t baud_rate){
_TF_Lidar->begin(TFSerial,baud_rate);
}
uint16_t TF... | 21.526316 | 65 | 0.745721 | sei-kiu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.