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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a8b65727aab1d85755f8257aad436a6bbbb7b5eb | 3,712 | cpp | C++ | BasicBMPDiff/diff-PNG.cpp | kolmoblocks/imageexpander | 661cc9761465910dec2859c9195fac68765b2cb4 | [
"Zlib"
] | 2 | 2019-02-19T20:55:33.000Z | 2019-04-03T21:01:24.000Z | BasicBMPDiff/diff-PNG.cpp | kolmoblocks/imageexpander | 661cc9761465910dec2859c9195fac68765b2cb4 | [
"Zlib"
] | null | null | null | BasicBMPDiff/diff-PNG.cpp | kolmoblocks/imageexpander | 661cc9761465910dec2859c9195fac68765b2cb4 | [
"Zlib"
] | null | null | null | #include "lodepng.h"
#include <iostream>
using namespace std;
unsigned int gcd(unsigned int u, unsigned int v)
{
// simple cases (termination)
if (u == v)
return u;
if (u == 0)
return v;
if (v == 0)
return u;
// look for factors of 2
if (~u & 1) // u is even
{
... | 36.752475 | 163 | 0.625808 | kolmoblocks |
a8b88121050448fe8c94270714dd59868be40852 | 452 | cpp | C++ | Tests/Experiments/Sources/MemFunc.cpp | Anonymus-Player/HackSolutions | 7d865de8ec06bb098a3a11bd6328faaaf96dc1df | [
"MIT"
] | 33 | 2020-11-20T14:58:25.000Z | 2022-03-04T10:04:08.000Z | Tests/Experiments/Sources/MemFunc.cpp | Anonymus-Player/HackSolutions | 7d865de8ec06bb098a3a11bd6328faaaf96dc1df | [
"MIT"
] | 8 | 2021-01-05T23:18:32.000Z | 2022-02-22T18:25:37.000Z | Tests/Experiments/Sources/MemFunc.cpp | Anonymus-Player/HackSolutions | 7d865de8ec06bb098a3a11bd6328faaaf96dc1df | [
"MIT"
] | 6 | 2021-01-05T22:02:57.000Z | 2022-02-22T18:34:22.000Z | #include <TypeTraits.hpp>
template <typename T>
struct TestStruct
{
T* data = nullptr;
hsd::usize sz = 0;
TestStruct(T* ptr, hsd::usize size)
: data{ptr}, sz{size}
{}
T* begin()
{
return data;
}
T* end()
{
return data + sz;
}
};
template <typename T>
... | 13.69697 | 48 | 0.553097 | Anonymus-Player |
a8bdd701da715f8ddec5009a55759eeec5710eef | 648 | cpp | C++ | lab11_9_1question/lab11_9_1/lab11_9_1.cpp | wjingzhe/CPP_lab | 081ba3612c2d96ffd074061ca1800b7f31486c37 | [
"MIT"
] | null | null | null | lab11_9_1question/lab11_9_1/lab11_9_1.cpp | wjingzhe/CPP_lab | 081ba3612c2d96ffd074061ca1800b7f31486c37 | [
"MIT"
] | null | null | null | lab11_9_1question/lab11_9_1/lab11_9_1.cpp | wjingzhe/CPP_lab | 081ba3612c2d96ffd074061ca1800b7f31486c37 | [
"MIT"
] | null | null | null | // lab11_9_1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
#include<iostream>
#include<fstream>
using namespace std;
void main() {
ofstream file;
file.open("input.txt");
file<<"aaaaaaaa\nbbbbbbbb\ncccccccc";
file.close();
... | 14.4 | 71 | 0.591049 | wjingzhe |
a8bdf0cb01d14fe0d613c5aadc67c00c0cbf7a4d | 1,491 | hpp | C++ | System/include/Switch/System/IO/WatcherChangeTypes.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 4 | 2021-10-14T01:43:00.000Z | 2022-03-13T02:16:08.000Z | System/include/Switch/System/IO/WatcherChangeTypes.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | null | null | null | System/include/Switch/System/IO/WatcherChangeTypes.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 2 | 2022-03-13T02:16:06.000Z | 2022-03-14T14:32:57.000Z | /// @file
/// @brief Contains Switch::System::IO::WatcherChangeTypes enum.
#pragma once
#include <Switch/As.hpp>
#include <Switch/System/EventArgs.hpp>
#include <Switch/System/Exception.hpp>
/// @brief The Switch namespace contains all fundamental classes to access Hardware, Os, System, and more.
namespace Switch {
... | 46.59375 | 215 | 0.695506 | kkptm |
a8bfdb823c5e96782c15b039d0f919d295062e3a | 1,493 | cpp | C++ | d04/ex04/BocalSteroid.cpp | ncoden/42_CPP_pool | 9f2d9aa030b65e3ad967086bff97e80e23705a29 | [
"Apache-2.0"
] | 5 | 2018-02-10T12:33:53.000Z | 2021-03-28T09:27:05.000Z | d04/ex04/BocalSteroid.cpp | ncoden/42_CPP_pool | 9f2d9aa030b65e3ad967086bff97e80e23705a29 | [
"Apache-2.0"
] | null | null | null | d04/ex04/BocalSteroid.cpp | ncoden/42_CPP_pool | 9f2d9aa030b65e3ad967086bff97e80e23705a29 | [
"Apache-2.0"
] | 6 | 2017-11-25T17:34:43.000Z | 2020-12-20T12:00:04.000Z | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* BocalSteroid.cpp :+: :+: :+: ... | 29.27451 | 80 | 0.352981 | ncoden |
a8c077c12d6da2d3d73a0234c8dd362c44040fe6 | 4,126 | hpp | C++ | xr3core/h/xr/strings/stringutils.hpp | zyndor/xrhodes | 15017c2ba6499b19e1dd327608ffb44dbaba7a4e | [
"BSD-2-Clause"
] | 7 | 2018-11-13T09:44:56.000Z | 2022-01-12T02:22:41.000Z | xr3core/h/xr/strings/stringutils.hpp | zyndor/xrhodes | 15017c2ba6499b19e1dd327608ffb44dbaba7a4e | [
"BSD-2-Clause"
] | 2 | 2018-10-30T08:19:02.000Z | 2018-12-31T18:48:13.000Z | xr3core/h/xr/strings/stringutils.hpp | zyndor/xrhodes | 15017c2ba6499b19e1dd327608ffb44dbaba7a4e | [
"BSD-2-Clause"
] | null | null | null | #ifndef XR_STRINGUTILS_HPP
#define XR_STRINGUTILS_HPP
//==============================================================================
//
// XRhodes
//
// copyright (c) Gyorgy Straub. All rights reserved.
//
// License: https://github.com/zyndor/xrhodes#License-bsd-2-clause
//
//========================================... | 40.851485 | 83 | 0.663354 | zyndor |
a8c1159b3471732e1290bc1af1d285b6d70f9610 | 63 | cpp | C++ | src/Graphics/stb_image/stb_image.cpp | jkbz64/Zadymka | 16c2bf66ce6c3bbff8eeeb3fad291b2939e4a5b7 | [
"MIT"
] | 2 | 2020-03-18T16:13:04.000Z | 2021-07-30T12:18:52.000Z | src/Graphics/stb_image/stb_image.cpp | jkbz64/Zadymka | 16c2bf66ce6c3bbff8eeeb3fad291b2939e4a5b7 | [
"MIT"
] | null | null | null | src/Graphics/stb_image/stb_image.cpp | jkbz64/Zadymka | 16c2bf66ce6c3bbff8eeeb3fad291b2939e4a5b7 | [
"MIT"
] | null | null | null | #define STB_IMAGE_IMPLEMENTATION
#include "../stb/stb_image.h"
| 21 | 32 | 0.793651 | jkbz64 |
a8c381722bb1c74255fd83b43e9432d36c56ee35 | 3,068 | hh | C++ | TrkBase/TrkModuleId.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkBase/TrkModuleId.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkBase/TrkModuleId.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------
// File and Version Information:
// $Id: TrkModuleId.hh,v 1.3 2007/02/05 22:16:38 brownd Exp $
//
// Description:
// Trivial class to identify modules used in tracking.
// Environment:
// Software developed for the BaBar Detector... | 36.52381 | 92 | 0.70339 | brownd1978 |
a8c8c88328a9de59b535c4606e69b5fdc6de8b99 | 399 | cpp | C++ | App/Source/ECS/System/Render/SpriteRendererSystem.cpp | Clymiaru/GDPARCM_InteractiveLoadingScreen | 20b6de0719ab3bd0e50efbbc792470826de8e7f1 | [
"MIT"
] | null | null | null | App/Source/ECS/System/Render/SpriteRendererSystem.cpp | Clymiaru/GDPARCM_InteractiveLoadingScreen | 20b6de0719ab3bd0e50efbbc792470826de8e7f1 | [
"MIT"
] | null | null | null | App/Source/ECS/System/Render/SpriteRendererSystem.cpp | Clymiaru/GDPARCM_InteractiveLoadingScreen | 20b6de0719ab3bd0e50efbbc792470826de8e7f1 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "SpriteRendererSystem.h"
SpriteRendererSystem::SpriteRendererSystem()
{
}
SpriteRendererSystem::~SpriteRendererSystem()
{
}
void SpriteRendererSystem::Render(sf::RenderWindow& window)
{
for (auto* component : m_SpriteRendererComponentList)
{
auto transform = component->GetTransform();
... | 19 | 59 | 0.754386 | Clymiaru |
a8d1dcb69247bb3c4f6d515cf8603296d5587cfd | 1,995 | cpp | C++ | hiro/qt/action/menu-radio-item.cpp | mp-lee/higan | c38a771f2272c3ee10fcb99f031e982989c08c60 | [
"Intel",
"ISC"
] | 38 | 2018-04-05T05:00:05.000Z | 2022-02-06T00:02:02.000Z | hiro/qt/action/menu-radio-item.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 1 | 2018-04-29T19:45:14.000Z | 2018-04-29T19:45:14.000Z | hiro/qt/action/menu-radio-item.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 8 | 2018-04-16T22:37:46.000Z | 2021-02-10T07:37:03.000Z | #if defined(Hiro_MenuRadioItem)
namespace hiro {
auto pMenuRadioItem::construct() -> void {
qtMenuRadioItem = new QtMenuRadioItem(*this);
qtActionGroup = new QActionGroup(nullptr);
qtMenuRadioItem->setCheckable(true);
qtMenuRadioItem->setActionGroup(qtActionGroup);
qtMenuRadioItem->setChecked(true);
qtMen... | 25.253165 | 85 | 0.66416 | mp-lee |
a8d3aed4aa014d868ef457e9b6be1f6f89f6772a | 1,093 | hpp | C++ | headers/MyFunctions.hpp | DetlevCM/chemical-kinetics-solver | 7010fd6c72c29a0d912ad0c353ff13a5b643cc04 | [
"MIT"
] | 3 | 2015-07-03T20:14:00.000Z | 2021-02-02T13:45:31.000Z | headers/MyFunctions.hpp | DetlevCM/chemical-kinetics-solver | 7010fd6c72c29a0d912ad0c353ff13a5b643cc04 | [
"MIT"
] | null | null | null | headers/MyFunctions.hpp | DetlevCM/chemical-kinetics-solver | 7010fd6c72c29a0d912ad0c353ff13a5b643cc04 | [
"MIT"
] | 4 | 2017-11-09T19:49:18.000Z | 2020-08-04T18:29:28.000Z |
#ifndef _MY_OTHER_FUNCTIONS_
#define _MY_OTHER_FUNCTIONS_
//*** Define some of my random hard to classify functions ***//
void Process_User_Input(
FileNames& filenames,
vector<string> User_Inputs
);
void Get_Mechanism(
string filename ,
Reaction_Mechanism& reaction_mechanism
);
vector< double > Get_Delta... | 27.325 | 129 | 0.778591 | DetlevCM |
a8d942a2fb1a8ef5b8f33043378af3d4b7bc2422 | 1,125 | hpp | C++ | src/lib/interface/ChoixReseau.hpp | uvsq21603504/in608-tcp_ip_simulation | 95cedcbe7dab5991b84e182297b6ada3ae24679b | [
"MIT"
] | null | null | null | src/lib/interface/ChoixReseau.hpp | uvsq21603504/in608-tcp_ip_simulation | 95cedcbe7dab5991b84e182297b6ada3ae24679b | [
"MIT"
] | null | null | null | src/lib/interface/ChoixReseau.hpp | uvsq21603504/in608-tcp_ip_simulation | 95cedcbe7dab5991b84e182297b6ada3ae24679b | [
"MIT"
] | null | null | null | #ifndef CHOIXRESEAU_H
#define CHOIXRESEAU_H
#include <QApplication>
#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QVBoxLayout>
#include <QComboBox>
#include <QSpinBox>
#include <QMessageBox>
class ChoixReseau : public QVBoxLayout
{
Q_OBJECT
private :
// Attributs
QComboBox*... | 20.089286 | 40 | 0.639111 | uvsq21603504 |
a8df4e4843a9caae2341d5511806be09178b1caa | 2,702 | hh | C++ | asv_wave_sim_gazebo_plugins/include/asv_wave_sim_gazebo_plugins/Algorithm.hh | minzlee/asv_wave_sim | d9426e1b7b75d43f0c1bd3201e6ba62e54af968f | [
"Apache-2.0"
] | 25 | 2019-05-29T04:55:19.000Z | 2022-03-18T19:07:07.000Z | asv_wave_sim_gazebo_plugins/include/asv_wave_sim_gazebo_plugins/Algorithm.hh | minzlee/asv_wave_sim | d9426e1b7b75d43f0c1bd3201e6ba62e54af968f | [
"Apache-2.0"
] | 12 | 2019-02-14T16:26:57.000Z | 2022-03-30T19:44:33.000Z | asv_wave_sim_gazebo_plugins/include/asv_wave_sim_gazebo_plugins/Algorithm.hh | minzlee/asv_wave_sim | d9426e1b7b75d43f0c1bd3201e6ba62e54af968f | [
"Apache-2.0"
] | 11 | 2019-05-29T04:55:22.000Z | 2022-02-23T11:55:32.000Z | // Copyright (C) 2019 Rhys Mainwaring
//
// 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.
//
// This program is dist... | 32.554217 | 92 | 0.650259 | minzlee |
a8e05fb9e6cce6191951628ed578fd922dc23416 | 4,043 | cpp | C++ | systems/plants/shapes/Geometry.cpp | peteflorence/drake | 42bc694cd2371c73f79967a6a653be769935b33f | [
"BSD-3-Clause"
] | null | null | null | systems/plants/shapes/Geometry.cpp | peteflorence/drake | 42bc694cd2371c73f79967a6a653be769935b33f | [
"BSD-3-Clause"
] | null | null | null | systems/plants/shapes/Geometry.cpp | peteflorence/drake | 42bc694cd2371c73f79967a6a653be769935b33f | [
"BSD-3-Clause"
] | 1 | 2021-09-29T19:37:28.000Z | 2021-09-29T19:37:28.000Z | #include <fstream>
#include "Geometry.h"
#include "spruce.hh"
using namespace std;
using namespace Eigen;
namespace DrakeShapes
{
Geometry::Geometry() : shape(UNKNOWN) {}
Geometry::Geometry(const Geometry& other)
{
shape = other.getShape();
}
Geometry::Geometry(Shape shape) : shape(shape) {};
cons... | 24.355422 | 168 | 0.602276 | peteflorence |
a8e13198cf7b051b3c5e3db005b77c2552950850 | 14,284 | ipp | C++ | implement/oglplus/enums/ext/nv_path_metric_query_class.ipp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 459 | 2016-03-16T04:11:37.000Z | 2022-03-31T08:05:21.000Z | implement/oglplus/enums/ext/nv_path_metric_query_class.ipp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 2 | 2016-08-08T18:26:27.000Z | 2017-05-08T23:42:22.000Z | implement/oglplus/enums/ext/nv_path_metric_query_class.ipp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 47 | 2016-05-31T15:55:52.000Z | 2022-03-28T14:49:40.000Z | // File implement/oglplus/enums/ext/nv_path_metric_query_class.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/ext/nv_path_metric_query.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2015 Matus Chochlik.
// Distributed under... | 30.391489 | 91 | 0.810067 | Extrunder |
a8e1b70c01acc3aea8a195d5fd755ddd493f8e7b | 33,182 | cpp | C++ | benchmark/create_complex/fruit.cpp | dan-42/di | 3253bfd841d03d75f7b70c05ac3789b605337deb | [
"BSL-1.0"
] | null | null | null | benchmark/create_complex/fruit.cpp | dan-42/di | 3253bfd841d03d75f7b70c05ac3789b605337deb | [
"BSL-1.0"
] | null | null | null | benchmark/create_complex/fruit.cpp | dan-42/di | 3253bfd841d03d75f7b70c05ac3789b605337deb | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2012-2019 Kris Jusiak (kris at jusiak dot net)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <memory>
#include <fruit/fruit.h>
// clang-format off
struct X00 { INJECT(X00()) { }... | 99.945783 | 249 | 0.620095 | dan-42 |
5ef22ff91aec9f8c9a014c91b8f85944407c0115 | 893 | cpp | C++ | src/storage/appstatedb.cpp | nunchuk-io/libnunchuk | 4d29efe25b5ba3b392ebebc31e58b43daa96560e | [
"MIT"
] | 44 | 2020-11-13T19:34:31.000Z | 2022-03-03T18:06:45.000Z | src/storage/appstatedb.cpp | nunchuk-io/libnunchuk | 4d29efe25b5ba3b392ebebc31e58b43daa96560e | [
"MIT"
] | 13 | 2020-12-03T17:27:23.000Z | 2022-03-01T02:16:28.000Z | src/storage/appstatedb.cpp | nunchuk-io/libnunchuk | 4d29efe25b5ba3b392ebebc31e58b43daa96560e | [
"MIT"
] | 7 | 2020-11-25T08:23:48.000Z | 2022-02-22T10:36:42.000Z | // Copyright (c) 2020 Enigmo
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "appstatedb.h"
namespace nunchuk {
void NunchukAppStateDb::Init() { CreateTable(); }
int NunchukAppStateDb::GetChainTip() const { return Ge... | 27.060606 | 80 | 0.764838 | nunchuk-io |
5ef539e73db3d1a9fe40c316b995530498fb6af3 | 194 | cpp | C++ | atcoder/abc116_a.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | atcoder/abc116_a.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | atcoder/abc116_a.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
using namespace std;
int n[4];
int main(){
for(int i= 0; i < 3; i++){
scanf("%d", &n[i]);
}
sort(n, n + 3);
cout << (n[0] * n[1]) / 2 << endl;
return 0;
}
| 16.166667 | 36 | 0.469072 | cosmicray001 |
5efa6dc76165da7ec08042ea40e80f0cef03ceb1 | 568 | cpp | C++ | leetcode/968. Binary Tree Cameras/s2.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/968. Binary Tree Cameras/s2.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/968. Binary Tree Cameras/s2.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/binary-tree-cameras/
// Author: github.com/lzl124631x
// Time: O(N)
// Space: O(logN)
class Solution {
private:
int ans = 0;
int postorder(TreeNode *root) {
if (!root) return 1;
int left = postorder(root->left);
int right = postorder(root->right);
... | 27.047619 | 57 | 0.538732 | zhuohuwu0603 |
5efdd863cb351fa9f374bb229d969fbde03ea2cd | 2,918 | cc | C++ | src/third_party/starboard/rdk/shared/main_rdk.cc | rmaddali991/rdk-cobalt | b2f08a80c136be75295338aeb71895d06bb6d374 | [
"Apache-2.0"
] | 1 | 2022-01-25T21:22:47.000Z | 2022-01-25T21:22:47.000Z | src/third_party/starboard/rdk/shared/main_rdk.cc | rmaddali991/rdk-cobalt | b2f08a80c136be75295338aeb71895d06bb6d374 | [
"Apache-2.0"
] | null | null | null | src/third_party/starboard/rdk/shared/main_rdk.cc | rmaddali991/rdk-cobalt | b2f08a80c136be75295338aeb71895d06bb6d374 | [
"Apache-2.0"
] | 1 | 2021-09-14T22:35:29.000Z | 2021-09-14T22:35:29.000Z | //
// Copyright 2020 Comcast Cable Communications Management, LLC
//
// 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... | 31.717391 | 75 | 0.745716 | rmaddali991 |
6f01fdd29d35bd789567ccff1060a27e0f159cca | 1,735 | cpp | C++ | mycontainer1.cpp | bruennijs/ise.cppworkshop | c54a60ad3468f83aeb45b347657b3f246d7190cc | [
"MIT"
] | null | null | null | mycontainer1.cpp | bruennijs/ise.cppworkshop | c54a60ad3468f83aeb45b347657b3f246d7190cc | [
"MIT"
] | null | null | null | mycontainer1.cpp | bruennijs/ise.cppworkshop | c54a60ad3468f83aeb45b347657b3f246d7190cc | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <list>
class MoveableString
{
public:
MoveableString()
{
}
~MoveableString()
{
}
std::string m_data;
};
class Moveable
{
public:
Moveable()
{
std::cout << "Moveable" << std::endl;
this->m_data = new char[1024];
}
~Moveable()
{
std::cout << "~Moveable... | 14.338843 | 57 | 0.607493 | bruennijs |
6f08ad7f772de4bac4598f6d7ae02cd456c0dc62 | 1,057 | cpp | C++ | TicTacToeMinMax/Field.cpp | SzymonOzog/TicTacToeCustomSizeMinMax | 095cf6037c23a421c1d97b93901f17d0c3562137 | [
"CC0-1.0"
] | null | null | null | TicTacToeMinMax/Field.cpp | SzymonOzog/TicTacToeCustomSizeMinMax | 095cf6037c23a421c1d97b93901f17d0c3562137 | [
"CC0-1.0"
] | null | null | null | TicTacToeMinMax/Field.cpp | SzymonOzog/TicTacToeCustomSizeMinMax | 095cf6037c23a421c1d97b93901f17d0c3562137 | [
"CC0-1.0"
] | null | null | null | #include "Field.h"
#include "WinChecker.h"
#include <cmath>
Field::Field(int side)
{
pointsNeededToWin = side < 4 ? side : 4;
fieldSide = side;
winCheckers.push_back(new RowChecker(this));
winCheckers.push_back(new ColumnChecker(this));
winCheckers.push_back(new ForwardDiagonalChecker(this));
winCheckers.push_bac... | 21.14 | 58 | 0.687796 | SzymonOzog |
6f0cf0a401c181ae1522a363c994f5dbe8b911a3 | 28,915 | cpp | C++ | src/mesh/meshblock.cpp | cnstahl/athena | 52a7ead1ee9000fe0fcc61824e26adae93fac227 | [
"BSD-3-Clause"
] | null | null | null | src/mesh/meshblock.cpp | cnstahl/athena | 52a7ead1ee9000fe0fcc61824e26adae93fac227 | [
"BSD-3-Clause"
] | null | null | null | src/mesh/meshblock.cpp | cnstahl/athena | 52a7ead1ee9000fe0fcc61824e26adae93fac227 | [
"BSD-3-Clause"
] | null | null | null | //========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//===============================... | 36.92848 | 114 | 0.602628 | cnstahl |
6f190c690e6104dc25b2a3f14b4035a8f6fdaf30 | 5,486 | hpp | C++ | bst/inc/RBT.hpp | kraylas/shit-code | d0565116deacd91497722659e0151112361d90f7 | [
"MIT"
] | null | null | null | bst/inc/RBT.hpp | kraylas/shit-code | d0565116deacd91497722659e0151112361d90f7 | [
"MIT"
] | null | null | null | bst/inc/RBT.hpp | kraylas/shit-code | d0565116deacd91497722659e0151112361d90f7 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <cassert>
#include <compare>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <functional>
#include <type_traits>
#include <utility>
#include <iostream>
#include "utils.hpp"
namespace RBT {
enum class Color : std::uint8_t { RED,
BLACK };
template <t... | 24.274336 | 116 | 0.52479 | kraylas |
6f1d24ded8c40501fe66e1e7ad5b85884940a93f | 7,089 | cpp | C++ | src/std_sequence_containers.cpp | tyoungjr/Catch2Practice | 6c602b0b57edaf2299043b4ef3c11d9507ce167b | [
"MIT"
] | null | null | null | src/std_sequence_containers.cpp | tyoungjr/Catch2Practice | 6c602b0b57edaf2299043b4ef3c11d9507ce167b | [
"MIT"
] | null | null | null | src/std_sequence_containers.cpp | tyoungjr/Catch2Practice | 6c602b0b57edaf2299043b4ef3c11d9507ce167b | [
"MIT"
] | null | null | null | //
// Created by tyoun on 10/25/2021.
//
#include <catch2/catch.hpp>
#include <array>
#include <vector>
#include <utility>
#include <cstdint>
#include <iostream>
#include <unordered_set>
#include "../include/print_std_library_containers.h"
std::array<int, 10> static_array{}; // braced initialization will initialize a... | 24.277397 | 94 | 0.58217 | tyoungjr |
6f1dd9506205d4f86165f2477eb7d24aee7c6d15 | 4,176 | cpp | C++ | src/core/Window.cpp | AndrijaAda99/Bubo | 662bb8e602f18a81ea6d8f367cb697c60b3e6670 | [
"Apache-2.0"
] | null | null | null | src/core/Window.cpp | AndrijaAda99/Bubo | 662bb8e602f18a81ea6d8f367cb697c60b3e6670 | [
"Apache-2.0"
] | null | null | null | src/core/Window.cpp | AndrijaAda99/Bubo | 662bb8e602f18a81ea6d8f367cb697c60b3e6670 | [
"Apache-2.0"
] | null | null | null | #include "core/Window.h"
#include "events/MouseEvent.h"
#include "events/WindowEvent.h"
#include "events/KeyEvent.h"
namespace bubo {
Window::Window(const WindowProperties_t &windowProperties) {
init(windowProperties);
BUBO_TRACE("Window initialized!");
}
Window::~Window() {
shut... | 35.092437 | 106 | 0.610632 | AndrijaAda99 |
6f26716f8ce835e63dd95904ee486c940f3e90b7 | 4,378 | cpp | C++ | src/mod/debug/penetration.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 33 | 2016-02-18T04:27:53.000Z | 2022-01-15T18:59:53.000Z | src/mod/debug/penetration.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 5 | 2018-01-10T18:41:38.000Z | 2020-10-01T13:34:53.000Z | src/mod/debug/penetration.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 14 | 2017-08-06T23:02:49.000Z | 2021-08-24T00:24:16.000Z | #include "mod.h"
#include "stub/tfplayer.h"
#include "stub/tfweaponbase.h"
#include "util/scope.h"
namespace Mod::Debug::Penetration
{
struct penetrated_target_list
{
CBaseEntity *ent; // +0x00
float fraction; // +0x04
};
struct CBulletPenetrateEnum
{
void **vtable; // +0x00
Ray_... | 34.746032 | 159 | 0.694838 | fugueinheels |
6f2bd87de10eeeb166a68241bfc5ff16358dd56b | 1,848 | cpp | C++ | Source/GIS/LevelSet.cpp | hustztz/Urho3D | 90abf7d8f176da9f9b828bb7ea9f46d1058ed009 | [
"MIT"
] | null | null | null | Source/GIS/LevelSet.cpp | hustztz/Urho3D | 90abf7d8f176da9f9b828bb7ea9f46d1058ed009 | [
"MIT"
] | null | null | null | Source/GIS/LevelSet.cpp | hustztz/Urho3D | 90abf7d8f176da9f9b828bb7ea9f46d1058ed009 | [
"MIT"
] | null | null | null | #include "LevelSet.h"
GIS::LevelSet::LevelSet( GIS::ElevationConfig & config )
{
config.GetValue(ConfigKey::TILE_ORIGIN, &tileOrigin_);
int numLevels = 0;
if ( config.GetValue(ConfigKey::NUM_LEVELS, &numLevels))
{
levels_.reserve(numLevels);
config.GetValue(ConfigKey::LEVEL_ZERO_TILE_DELTA, &levelZeroTileDel... | 24.315789 | 75 | 0.70184 | hustztz |
6f2d2ed8548721a77cd722b4a369e52296c19b3c | 2,148 | cpp | C++ | framework/src/Core/Network/Udp/UdpSocketServer.cpp | gautier-lefebvre/cppframework | bc1c3405913343274d79240b17ab75ae3f2adf56 | [
"MIT"
] | null | null | null | framework/src/Core/Network/Udp/UdpSocketServer.cpp | gautier-lefebvre/cppframework | bc1c3405913343274d79240b17ab75ae3f2adf56 | [
"MIT"
] | 3 | 2015-12-21T09:04:49.000Z | 2015-12-21T19:22:47.000Z | framework/src/Core/Network/Udp/UdpSocketServer.cpp | gautier-lefebvre/cppframework | bc1c3405913343274d79240b17ab75ae3f2adf56 | [
"MIT"
] | null | null | null | #include "Core/Network/Udp/UdpSocketServer.hh"
#include "Core/Network/Udp/UdpSocketClient.hh"
#include "Core/Network/Exception.hh"
using namespace fwk;
UdpSocketServer::UdpSocketServer(void):
AUdpSocket(),
APooled<UdpSocketServer>()
{}
UdpSocketServer::~UdpSocketServer(void) {
this->reinit();
}
void UdpSoc... | 27.538462 | 177 | 0.695065 | gautier-lefebvre |
6f2d4d7ec9d1bc1a22bcc0300ec98488607e3c66 | 65 | hpp | C++ | clove/components/core/platform/include/Clove/Platform/Windows/CloveWindows.hpp | mondoo/Clove | 3989dc3fea0d886a69005c1e0bb4396501f336f2 | [
"MIT"
] | 33 | 2020-01-09T04:57:29.000Z | 2021-08-14T08:02:43.000Z | clove/components/core/platform/include/Clove/Platform/Windows/CloveWindows.hpp | mondoo/Clove | 3989dc3fea0d886a69005c1e0bb4396501f336f2 | [
"MIT"
] | 234 | 2019-10-25T06:04:35.000Z | 2021-08-18T05:47:41.000Z | clove/components/core/platform/include/Clove/Platform/Windows/CloveWindows.hpp | mondoo/Clove | 3989dc3fea0d886a69005c1e0bb4396501f336f2 | [
"MIT"
] | 4 | 2020-02-11T15:28:42.000Z | 2020-09-07T16:22:58.000Z | #define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <Windows.h> | 21.666667 | 27 | 0.830769 | mondoo |
6f2daeb28f5468d7c69a6a4bee7a48ccfa47aad9 | 13,202 | cpp | C++ | library/src/level2/rocsparse_csrmv.cpp | akilaMD/rocSPARSE | 2694e68938cefa711a50b286fd9fd0baff712099 | [
"MIT"
] | null | null | null | library/src/level2/rocsparse_csrmv.cpp | akilaMD/rocSPARSE | 2694e68938cefa711a50b286fd9fd0baff712099 | [
"MIT"
] | null | null | null | library/src/level2/rocsparse_csrmv.cpp | akilaMD/rocSPARSE | 2694e68938cefa711a50b286fd9fd0baff712099 | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright (c) 2018 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without re... | 55.238494 | 99 | 0.348508 | akilaMD |
6f2e459b1555628e9f17111de92544156c04247a | 1,923 | hpp | C++ | include/sphere.hpp | lebarsfa/vpython-wx | 38df062e5532b79f632f4f2a1abae86754c264a9 | [
"BSL-1.0"
] | 68 | 2015-01-17T05:41:58.000Z | 2021-04-24T08:35:24.000Z | include/sphere.hpp | lebarsfa/vpython-wx | 38df062e5532b79f632f4f2a1abae86754c264a9 | [
"BSL-1.0"
] | 16 | 2015-01-02T19:36:06.000Z | 2018-09-09T21:01:25.000Z | include/sphere.hpp | lebarsfa/vpython-wx | 38df062e5532b79f632f4f2a1abae86754c264a9 | [
"BSL-1.0"
] | 37 | 2015-02-04T04:23:00.000Z | 2020-06-07T03:24:41.000Z | #ifndef VPYTHON_SPHERE_HPP
#define VPYTHON_SPHERE_HPP
// Copyright (c) 2000, 2001, 2002, 2003 by David Scherer and others.
// Copyright (c) 2003, 2004 by Jonathan Brandmeyer and others.
// See the file license.txt for complete license terms.
// See the file authors.txt for a complete list of contributors.
#in... | 31.52459 | 79 | 0.699428 | lebarsfa |
6f3a5ec123a79ff128b9824f2d70b379f023af64 | 6,711 | cpp | C++ | kernel/devices/pci/PciCapabilities.cpp | DeanoBurrito/northport | 6da490b02bfe7d0a12a25316db879ecc249be1c7 | [
"MIT"
] | 19 | 2021-12-10T12:48:44.000Z | 2022-03-30T09:17:14.000Z | kernel/devices/pci/PciCapabilities.cpp | DeanoBurrito/northport | 6da490b02bfe7d0a12a25316db879ecc249be1c7 | [
"MIT"
] | 24 | 2021-11-30T10:00:05.000Z | 2022-03-29T10:19:21.000Z | kernel/devices/pci/PciCapabilities.cpp | DeanoBurrito/northport | 6da490b02bfe7d0a12a25316db879ecc249be1c7 | [
"MIT"
] | 2 | 2021-11-24T00:52:10.000Z | 2021-12-27T23:47:32.000Z | #include <devices/pci/PciCapabilities.h>
#include <devices/PciBridge.h>
namespace Kernel::Devices::Pci
{
sl::Opt<PciCap*> FindPciCap(PciAddress addr, uint8_t withId, PciCap* start)
{
uint16_t statusReg = addr.ReadReg(1) >> 16;
if ((statusReg & (1 << 4)) == 0)
return {}; //capabiliti... | 31.805687 | 106 | 0.554016 | DeanoBurrito |
6f3b10fd913ba92540b381a7af8e05f4c197853b | 4,287 | cpp | C++ | tests/NEO/SignerTests.cpp | vladyslav-iosdev/wallet-core | 6f8f175a380bdf9756f38bfd82fedd9b73b67580 | [
"MIT"
] | 1,306 | 2019-08-08T13:25:24.000Z | 2022-03-31T23:32:28.000Z | tests/NEO/SignerTests.cpp | vladyslav-iosdev/wallet-core | 6f8f175a380bdf9756f38bfd82fedd9b73b67580 | [
"MIT"
] | 1,179 | 2019-08-08T07:06:10.000Z | 2022-03-31T12:33:47.000Z | tests/NEO/SignerTests.cpp | vladyslav-iosdev/wallet-core | 6f8f175a380bdf9756f38bfd82fedd9b73b67580 | [
"MIT"
] | 811 | 2019-08-08T13:27:44.000Z | 2022-03-31T21:22:53.000Z | // Copyright © 2017-2020 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "PublicKey.h"
#include "HexCoding.h"
#include "NEO... | 50.435294 | 557 | 0.804759 | vladyslav-iosdev |
6f3fd83769469def7e39feeb43f9bec6bb6d4790 | 2,350 | cpp | C++ | lib/frame_window_filtering/disparity_morphology.cpp | itko/scanbox | 9a00c11eafb4cc2faa69bfcc76bdf0d8e295dcf3 | [
"BSD-3-Clause"
] | 1 | 2020-01-09T09:30:23.000Z | 2020-01-09T09:30:23.000Z | lib/frame_window_filtering/disparity_morphology.cpp | itko/scanbox | 9a00c11eafb4cc2faa69bfcc76bdf0d8e295dcf3 | [
"BSD-3-Clause"
] | 23 | 2018-03-19T20:54:52.000Z | 2018-05-16T12:36:59.000Z | lib/frame_window_filtering/disparity_morphology.cpp | itko/scanbox | 9a00c11eafb4cc2faa69bfcc76bdf0d8e295dcf3 | [
"BSD-3-Clause"
] | 1 | 2018-03-14T20:00:43.000Z | 2018-03-14T20:00:43.000Z | /// \file
/// Maintainer: Felice Serena
///
///
#include "disparity_morphology.h"
#include <boost/log/trivial.hpp>
#include <iostream>
#include <opencv2/core/eigen.hpp>
#include <opencv2/imgproc/imgproc.hpp>
namespace MouseTrack {
FrameWindow DisparityMorphology::operator()(const FrameWindow &window) const {
Frame... | 30.519481 | 80 | 0.701277 | itko |
6f4713c130917dcea35d3d2c842b4dc3b0f5e7a3 | 2,833 | cpp | C++ | src/services/svc-mdns.cpp | RDobrinov/espurna32 | b0bcf5bb80324e3c96a8a7f756014804b618730e | [
"NTP",
"Unlicense"
] | null | null | null | src/services/svc-mdns.cpp | RDobrinov/espurna32 | b0bcf5bb80324e3c96a8a7f756014804b618730e | [
"NTP",
"Unlicense"
] | null | null | null | src/services/svc-mdns.cpp | RDobrinov/espurna32 | b0bcf5bb80324e3c96a8a7f756014804b618730e | [
"NTP",
"Unlicense"
] | null | null | null | /*
MDNS MODULE
Copyright (C) 2017-2019 by Xose Pérez <xose dot perez at gmail dot com>
*/
// -----------------------------------------------------------------------------
// mDNS Server
// -----------------------------------------------------------------------------
#include "config/hardware.h"
#if MDNS_SERVER_SU... | 27.504854 | 99 | 0.549594 | RDobrinov |
6f4b12abd36a6e78d7c1c194358d03b9974b8ade | 1,085 | cpp | C++ | LeetCode/680.valid_palindrome_2.cpp | PieroNarciso/cprogramming | d3a53ce2afce6f853e0b7cc394190d5be6427902 | [
"MIT"
] | 2 | 2021-05-22T17:47:01.000Z | 2021-05-27T17:10:58.000Z | LeetCode/680.valid_palindrome_2.cpp | PieroNarciso/cprogramming | d3a53ce2afce6f853e0b7cc394190d5be6427902 | [
"MIT"
] | null | null | null | LeetCode/680.valid_palindrome_2.cpp | PieroNarciso/cprogramming | d3a53ce2afce6f853e0b7cc394190d5be6427902 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
bool validPalindrome(string s) {
if (s.size() <= 1) return true;
int start = 0;
int end = s.size() - 1;
int count = 0;
while (start < end && count <= 1) {
if (s[start] != s[end]) {
end--;
count++;
} else if (s[start] == s[end]) {
end--;
start++;
}
}
i... | 21.7 | 60 | 0.517972 | PieroNarciso |
6f4d1b8a026c8333c161f9cfc4a43f3bfd437630 | 5,603 | hpp | C++ | src/core/Patchwork.hpp | tfwu/AOGDetector | 296bdeefa3e111596ea824396203d15c5c0c4577 | [
"MIT"
] | 33 | 2016-01-11T22:42:41.000Z | 2020-12-27T17:19:26.000Z | src/core/Patchwork.hpp | mrgloom/AOGDetector | 296bdeefa3e111596ea824396203d15c5c0c4577 | [
"MIT"
] | null | null | null | src/core/Patchwork.hpp | mrgloom/AOGDetector | 296bdeefa3e111596ea824396203d15c5c0c4577 | [
"MIT"
] | 16 | 2015-11-15T14:48:28.000Z | 2021-09-16T12:59:07.000Z | // This file is adapted from FFLDv2 (the Fast Fourier Linear Detector version 2)
// Copyright (c) 2013 Idiap Research Institute, <http://www.idiap.ch/>
// Written by Charles Dubout <charles.dubout@idiap.ch>
#ifndef RGM_PATCHWORK_HPP_
#define RGM_PATCHWORK_HPP_
#include <utility>
extern "C" {
#include <fftw3.h>
}
#i... | 33.957576 | 110 | 0.704087 | tfwu |
6f534a2bc172a3dc5c80a02a292e44e0f461e39b | 5,748 | cpp | C++ | RLSimion/Common/named-var-set.cpp | xcillero001/SimionZoo | b343b08f3356e1aa230d4132b0abb58aac4c5e98 | [
"MIT"
] | 1 | 2019-02-21T10:40:28.000Z | 2019-02-21T10:40:28.000Z | RLSimion/Common/named-var-set.cpp | JosuGom3z/SimionZoo | b343b08f3356e1aa230d4132b0abb58aac4c5e98 | [
"MIT"
] | null | null | null | RLSimion/Common/named-var-set.cpp | JosuGom3z/SimionZoo | b343b08f3356e1aa230d4132b0abb58aac4c5e98 | [
"MIT"
] | null | null | null | #include "named-var-set.h"
#include "wire.h"
#include "wire-handler.h"
#include <algorithm>
#include <stdexcept>
#include "../../tools/System/CrossPlatform.h"
using namespace std;
NamedVarProperties::NamedVarProperties()
{
CrossPlatform::Strcpy_s(m_name, VAR_NAME_MAX_LENGTH, "N/A");
CrossPlatform::Strcpy_s(m_units... | 24.991304 | 115 | 0.709986 | xcillero001 |
6f53f478c54127fe674d24559593dc5fb5dd7e83 | 129 | cc | C++ | tensorflow-yolo-ios/dependencies/tensorflow/core/platform/posix/net.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/tensorflow/core/platform/posix/net.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/tensorflow/core/platform/posix/net.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:3cc7fcb7f8a9a1e665dce3cb98580bd376e1c6dfd73287c5c623743400561d9b
size 3402
| 32.25 | 75 | 0.883721 | initialz |
6f547ad130111112210b243c95ec816c8ce6c908 | 774 | cpp | C++ | breeze/testing/brz/test_descriptor.cpp | gennaroprota/breeze | 7afe88a30dc8ac8b97a76a192dc9b189d9752e8b | [
"BSD-3-Clause"
] | 1 | 2021-04-03T22:35:52.000Z | 2021-04-03T22:35:52.000Z | breeze/testing/brz/test_descriptor.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | null | null | null | breeze/testing/brz/test_descriptor.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-10-01T04:26:48.000Z | 2021-10-01T04:26:48.000Z | // ===========================================================================
// Copyright 2016 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3-C... | 24.967742 | 78 | 0.609819 | gennaroprota |
6f59ce012956abb6322c028101f43206f4ec15a5 | 2,671 | cpp | C++ | products/BellHybrid/apps/application-bell-settings/presenter/TimeUnitsPresenter.cpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | products/BellHybrid/apps/application-bell-settings/presenter/TimeUnitsPresenter.cpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | products/BellHybrid/apps/application-bell-settings/presenter/TimeUnitsPresenter.cpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "models/TemperatureUnitModel.hpp"
#include "presenter/TimeUnitsPresenter.hpp"
#include <common/layouts/HomeScreenLayouts.hpp>
#include <common/models/LayoutModel.hpp>
#inclu... | 36.094595 | 115 | 0.639461 | GravisZro |
6f5a7dcf0f2218a5b0fa5cbde81e46d3a0d43f48 | 1,403 | cpp | C++ | test/postconditions.cpp | jdgarciauc3m/min-contracts | 184b0c2f9f131fb802596d7fd7d6f9d954552a5e | [
"Apache-2.0"
] | null | null | null | test/postconditions.cpp | jdgarciauc3m/min-contracts | 184b0c2f9f131fb802596d7fd7d6f9d954552a5e | [
"Apache-2.0"
] | null | null | null | test/postconditions.cpp | jdgarciauc3m/min-contracts | 184b0c2f9f131fb802596d7fd7d6f9d954552a5e | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 J. Daniel Garcia
//
// 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 applicab... | 26.980769 | 78 | 0.686386 | jdgarciauc3m |
6f5acec3eb86ab29356830c499e089dbf22e7986 | 10,688 | cpp | C++ | src/xalanc/PlatformSupport/XalanParsedURI.cpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 24 | 2015-07-29T22:49:17.000Z | 2022-03-25T10:14:17.000Z | src/xalanc/PlatformSupport/XalanParsedURI.cpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 14 | 2019-05-10T16:25:50.000Z | 2021-11-24T18:04:47.000Z | src/xalanc/PlatformSupport/XalanParsedURI.cpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 28 | 2015-04-20T15:50:51.000Z | 2022-01-26T14:56:55.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the "License");
* you m... | 33.4 | 108 | 0.526291 | ulisesten |
6f69f9d2c5e707b8b64d304648f4ac8cefa6f546 | 4,802 | cpp | C++ | runtime/containers/HashSet.cpp | rschleitzer/scaly | 7537cdf44f7a63ad1a560975017ee1c897c73787 | [
"MIT"
] | null | null | null | runtime/containers/HashSet.cpp | rschleitzer/scaly | 7537cdf44f7a63ad1a560975017ee1c897c73787 | [
"MIT"
] | null | null | null | runtime/containers/HashSet.cpp | rschleitzer/scaly | 7537cdf44f7a63ad1a560975017ee1c897c73787 | [
"MIT"
] | null | null | null | namespace scaly::containers {
using namespace scaly::memory;
// https://planetmath.org/goodhashtableprimes
static size_t HASH_PRIMES[] = {
3, 5, 11, 23, 53, 97, 193, 389, 769, 1543, 3079, 6151, 12289, 24593, 49157, 98317, 196613,
393241, 786433, 1572869, 3145739, 6291469, 12582917, 25165843, 50331653, 1006633... | 28.754491 | 98 | 0.526447 | rschleitzer |
6f6d5587e2e046708ccca2587b3dce6656d99f82 | 2,528 | cpp | C++ | operator.cpp | zhanghexie/design-patterns | ff8841dd555116f49da00876f0c68865c916a251 | [
"MIT"
] | null | null | null | operator.cpp | zhanghexie/design-patterns | ff8841dd555116f49da00876f0c68865c916a251 | [
"MIT"
] | null | null | null | operator.cpp | zhanghexie/design-patterns | ff8841dd555116f49da00876f0c68865c916a251 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
// 运算父类
class Operator {
private:
double _numberA;
double _numberB;
public:
double getA(){
return _numberA;
}
void setA(double number){
_numberA = number;
}
double getB(){
return ... | 23.626168 | 76 | 0.474288 | zhanghexie |
6f6e7528dd300da390ef4e8d77cbe99c31053fe0 | 7,907 | hpp | C++ | nvmctrl.hpp | Skrywerbeer/SAMl21-Scoped-headers | 804affebc2f732aca80ff217f8672db52773217e | [
"MIT"
] | null | null | null | nvmctrl.hpp | Skrywerbeer/SAMl21-Scoped-headers | 804affebc2f732aca80ff217f8672db52773217e | [
"MIT"
] | null | null | null | nvmctrl.hpp | Skrywerbeer/SAMl21-Scoped-headers | 804affebc2f732aca80ff217f8672db52773217e | [
"MIT"
] | null | null | null | // ****************************************
// File: nvmctrl.hpp
// Written by: Johan Grobler
// Started: 13/9/2017
// Updated: 17/9/2017
// ****************************************
// Non-Voltile Memory Conrtoller special
// function registers of the ATSAML21J18
// MCU.
// ****************************************
#if... | 30.528958 | 76 | 0.53636 | Skrywerbeer |
6f71d05d82f1f1b6e9dbfcaed69fc6f480c4a935 | 1,146 | cc | C++ | TestOutput/Subfolder/Windows.SharedLibrary.cc | hannes-harnisch/Snakify | 41254edddf2e0da0f4cc6d5e715b63701c7e17d1 | [
"MIT"
] | null | null | null | TestOutput/Subfolder/Windows.SharedLibrary.cc | hannes-harnisch/Snakify | 41254edddf2e0da0f4cc6d5e715b63701c7e17d1 | [
"MIT"
] | null | null | null | TestOutput/Subfolder/Windows.SharedLibrary.cc | hannes-harnisch/Snakify | 41254edddf2e0da0f4cc6d5e715b63701c7e17d1 | [
"MIT"
] | null | null | null | module;
#include "Core/Macros.hh"
#include "Windows.API.hh"
#include <string_view>
export module Vitro.Windows.SharedLibrary;
import Vitro.App.SharedLibraryBase;
import Vitro.Core.Unique;
import Vitro.Windows.Utils;
namespace vt::windows
{
export class SharedLibrary : public SharedLibraryBase
{
pu... | 22.038462 | 91 | 0.67801 | hannes-harnisch |
4cfa63858fd2c35c81208f00ae7f292a0ea48f71 | 707 | cpp | C++ | src/chargemon.cpp | kimmoli/chargemon | c441bec10531de8ff13226df5c48236e3a58e04b | [
"MIT"
] | 2 | 2018-04-02T14:48:32.000Z | 2018-08-29T19:44:16.000Z | src/chargemon.cpp | kimmoli/chargemon | c441bec10531de8ff13226df5c48236e3a58e04b | [
"MIT"
] | 10 | 2016-03-15T11:13:42.000Z | 2021-11-14T13:00:36.000Z | src/chargemon.cpp | kimmoli/chargemon | c441bec10531de8ff13226df5c48236e3a58e04b | [
"MIT"
] | 4 | 2016-03-15T10:32:13.000Z | 2018-08-29T08:29:09.000Z | /*
* Charge monitor (C) 2014-2019 Kimmo Lindholm
* LICENSE MIT
*/
#ifdef QT_QML_DEBUG
#include <QtQuick>
#endif
#include <sailfishapp.h>
#include <QtQml>
#include <QScopedPointer>
#include <QQuickView>
#include <QQmlEngine>
#include <QGuiApplication>
#include <QQmlContext>
#include <QCoreApplication>... | 22.09375 | 79 | 0.681754 | kimmoli |
4cffff380a8068b1638ddbc355b7c1e132d489ff | 1,494 | cpp | C++ | testing/bench_ext_pushpull.cpp | arthurbiancarelli/liblsl | c217f93060e2ac1bde84dd3aa5bcfd9bc8460f1f | [
"MIT"
] | null | null | null | testing/bench_ext_pushpull.cpp | arthurbiancarelli/liblsl | c217f93060e2ac1bde84dd3aa5bcfd9bc8460f1f | [
"MIT"
] | null | null | null | testing/bench_ext_pushpull.cpp | arthurbiancarelli/liblsl | c217f93060e2ac1bde84dd3aa5bcfd9bc8460f1f | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include "helper_type.hpp"
#include <atomic>
#include <list>
#include <lsl_cpp.h>
#include <string>
#include <thread>
TEMPLATE_TEST_CASE("pushpull", "[basic][throughput]", char, float, std::string) {
const std::size_t max_nchan = 128, chunk_size = 128;
const std::size_t param_nchan[] = {1, max_n... | 33.2 | 96 | 0.697456 | arthurbiancarelli |
98048a5af18a9553730de157db8aa33d687fe8e8 | 12,809 | cpp | C++ | src/matrix.cpp | tenglvjun/math | 6865d39512ff8836281fa00980fb5fa85ced2a35 | [
"MIT"
] | null | null | null | src/matrix.cpp | tenglvjun/math | 6865d39512ff8836281fa00980fb5fa85ced2a35 | [
"MIT"
] | null | null | null | src/matrix.cpp | tenglvjun/math | 6865d39512ff8836281fa00980fb5fa85ced2a35 | [
"MIT"
] | null | null | null | #include "matrix.h"
#include <memory.h>
#include <assert.h>
#include <cmath>
#include <iostream>
#include "math_tools.h"
#include "math_def.h"
GeoMatrix::GeoMatrix(const unsigned int row, const unsigned int col)
: m_data(nullptr), m_row(0), m_col(0)
{
Init(row, col);
}
GeoMatrix::GeoMatrix(const unsigned int ... | 21.312812 | 130 | 0.487626 | tenglvjun |
980492efb2ca86c09bbc14d218251b3a45554a25 | 5,158 | hpp | C++ | store.servers/src/rs256-secure-server.hpp | once-ler/Store-cpp | 27d65057b2984c61a4b8be9d96d8fa6d70de1fb7 | [
"BSD-3-Clause"
] | 3 | 2019-08-18T19:14:02.000Z | 2019-09-20T05:38:58.000Z | store.servers/src/rs256-secure-server.hpp | once-ler/Store-cpp | 27d65057b2984c61a4b8be9d96d8fa6d70de1fb7 | [
"BSD-3-Clause"
] | null | null | null | store.servers/src/rs256-secure-server.hpp | once-ler/Store-cpp | 27d65057b2984c61a4b8be9d96d8fa6d70de1fb7 | [
"BSD-3-Clause"
] | 1 | 2019-09-20T05:39:01.000Z | 2019-09-20T05:39:01.000Z | #pragma once
#include <regex>
#include "store.common/src/web_token.hpp"
#include "store.servers/src/http-server.hpp"
#include "store.servers/src/session.hpp"
#include "store.servers/src/replies.hpp"
#include "store.models/src/ioc/service_provider.hpp"
using namespace store::common;
using namespace store::servers::uti... | 31.072289 | 106 | 0.620396 | once-ler |
980e45bcc8a334783d08781cb88a8be0339e8aa7 | 7,660 | hxx | C++ | include/itkSmoothBinarySurfaceImageFilter.hxx | Bonelab/ITKMorphometry | ee1480bc1a93425ae7fff1c9595b0688fc58abc5 | [
"Apache-2.0"
] | null | null | null | include/itkSmoothBinarySurfaceImageFilter.hxx | Bonelab/ITKMorphometry | ee1480bc1a93425ae7fff1c9595b0688fc58abc5 | [
"Apache-2.0"
] | null | null | null | include/itkSmoothBinarySurfaceImageFilter.hxx | Bonelab/ITKMorphometry | ee1480bc1a93425ae7fff1c9595b0688fc58abc5 | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | 29.921875 | 100 | 0.610574 | Bonelab |
9817001af4dcbe142760ce94ac6808dac7d2ad02 | 2,832 | cpp | C++ | src/random_object.cpp | scwfri/natalie | 11e874607a8ac7b934e57c4c7e5790623afaee7a | [
"MIT"
] | 7 | 2022-03-08T08:47:54.000Z | 2022-03-29T15:08:36.000Z | src/random_object.cpp | scwfri/natalie | 11e874607a8ac7b934e57c4c7e5790623afaee7a | [
"MIT"
] | 12 | 2022-03-10T13:04:42.000Z | 2022-03-24T01:40:23.000Z | src/random_object.cpp | scwfri/natalie | 11e874607a8ac7b934e57c4c7e5790623afaee7a | [
"MIT"
] | 5 | 2022-03-13T17:46:16.000Z | 2022-03-31T07:28:26.000Z | #include "natalie.hpp"
#include <natalie/random_object.hpp>
#include <random>
namespace Natalie {
Value RandomObject::initialize(Env *env, Value seed) {
if (!seed) {
m_seed = (nat_int_t)std::random_device()();
} else {
if (seed->is_float()) {
seed = seed->as_float()->to_i(env);
... | 35.4 | 108 | 0.491172 | scwfri |
981fdb72c88b75efe1a3fed99f68cac73bed709d | 1,635 | cpp | C++ | backup/2/leetcode/c++/sum-of-nodes-with-even-valued-grandparent.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/leetcode/c++/sum-of-nodes-with-even-valued-grandparent.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/leetcode/c++/sum-of-nodes-with-even-valued-grandparent.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 34.0625 | 345 | 0.526606 | yangyanzhan |
98204080566ef43c3fe933280661d997ee0167d2 | 59 | cpp | C++ | build/CMakeTmp/check_qt_application.cpp | TradingLab/tldbinit | 1029ed59d97ca1200346b8dc94969777e567cd2b | [
"Apache-2.0"
] | null | null | null | build/CMakeTmp/check_qt_application.cpp | TradingLab/tldbinit | 1029ed59d97ca1200346b8dc94969777e567cd2b | [
"Apache-2.0"
] | null | null | null | build/CMakeTmp/check_qt_application.cpp | TradingLab/tldbinit | 1029ed59d97ca1200346b8dc94969777e567cd2b | [
"Apache-2.0"
] | null | null | null | #include <QtCore/QtGlobal>
int main()
{
return 0;
}
| 9.833333 | 26 | 0.59322 | TradingLab |
9821015105397b3217ca6269618e750c78ff3ca4 | 2,107 | cpp | C++ | src/layers/shuffle_channel_layer.cpp | ktts16/mini-caffe | 58a5007d7921c69c9c3105b20b92b2136af26a4e | [
"BSD-3-Clause"
] | 413 | 2015-07-09T09:33:07.000Z | 2022-03-10T02:26:27.000Z | src/layers/shuffle_channel_layer.cpp | ktts16/mini-caffe | 58a5007d7921c69c9c3105b20b92b2136af26a4e | [
"BSD-3-Clause"
] | 65 | 2015-07-10T01:38:10.000Z | 2020-08-06T07:27:42.000Z | src/layers/shuffle_channel_layer.cpp | ktts16/mini-caffe | 58a5007d7921c69c9c3105b20b92b2136af26a4e | [
"BSD-3-Clause"
] | 196 | 2015-08-18T07:59:33.000Z | 2021-07-27T02:44:21.000Z | #include <algorithm>
#include <vector>
#include "./shuffle_channel_layer.hpp"
#include "../util//math_functions.hpp"
namespace caffe {
void ShuffleChannelLayer::LayerSetUp(const vector<Blob*> &bottom,
const vector<Blob*> &top) {
group_ = this->layer_param_.shuffle_channel_param... | 32.921875 | 111 | 0.633128 | ktts16 |
9821474a8ffa4f55b9bfcf96b90b83f32ba2151a | 7,250 | cpp | C++ | day_15/src/ofApp.cpp | andymasteroffish/inktober_2020 | e836c33cf739e119d79570d7e870e97a52c2883a | [
"MIT"
] | 16 | 2020-10-09T12:02:06.000Z | 2022-01-06T01:49:03.000Z | day_15/src/ofApp.cpp | andymasteroffish/inktober_2020 | e836c33cf739e119d79570d7e870e97a52c2883a | [
"MIT"
] | null | null | null | day_15/src/ofApp.cpp | andymasteroffish/inktober_2020 | e836c33cf739e119d79570d7e870e97a52c2883a | [
"MIT"
] | null | null | null | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofBackground(250);
for (int i=0; i<NUM_COLS; i++){
gcode[i].setup(100);
gcode[i].show_transit_lines = false;
gcode[i].show_do_not_reverse = true;
}
gcode[PURPLE].demo_co... | 27.358491 | 113 | 0.452966 | andymasteroffish |
982689cfbb60495a477caab60651c602e58226a4 | 3,974 | cpp | C++ | src/Engine/App/AssetRegistry.cpp | kimkulling/osre | b738c87e37d0b1d2d0779a412b88ce68517c4328 | [
"MIT"
] | 118 | 2015-05-12T15:12:14.000Z | 2021-11-14T15:41:11.000Z | src/Engine/App/AssetRegistry.cpp | kimkulling/osre | b738c87e37d0b1d2d0779a412b88ce68517c4328 | [
"MIT"
] | 76 | 2015-06-06T18:04:24.000Z | 2022-01-14T20:17:37.000Z | src/Engine/App/AssetRegistry.cpp | kimkulling/osre | b738c87e37d0b1d2d0779a412b88ce68517c4328 | [
"MIT"
] | 7 | 2016-06-28T09:14:38.000Z | 2021-03-12T02:07:52.000Z | /*-----------------------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2015-2021 OSRE ( Open Source Render Engine ) by Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation f... | 27.985915 | 97 | 0.638903 | kimkulling |
9828a78dcc719784a1e07d059d2c2bd1aa853a37 | 2,629 | cpp | C++ | debugger/src/gui_plugin/qt_wrapper.cpp | hossameldin1995/riscv_vhdl | aab7196a6b9962626ed7314b7c86b93760e76f83 | [
"Apache-2.0"
] | 2 | 2020-08-12T17:01:28.000Z | 2020-10-06T02:50:49.000Z | debugger/src/gui_plugin/qt_wrapper.cpp | hossameldin1995/riscv_vhdl | aab7196a6b9962626ed7314b7c86b93760e76f83 | [
"Apache-2.0"
] | null | null | null | debugger/src/gui_plugin/qt_wrapper.cpp | hossameldin1995/riscv_vhdl | aab7196a6b9962626ed7314b7c86b93760e76f83 | [
"Apache-2.0"
] | 1 | 2021-11-18T17:40:35.000Z | 2021-11-18T17:40:35.000Z | /*
* Copyright 2018 Sergey Khabarov, sergeykhbr@gmail.com
*
* 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... | 26.555556 | 76 | 0.689996 | hossameldin1995 |
982a75a9741b990d28e90c87657a0f1083614c4c | 18,269 | cpp | C++ | contracts/contracts/rem.system/src/producer_pay.cpp | kushnirenko/remprotocol | ec450227a40bb18527b473266b07b982efc1d093 | [
"MIT"
] | 1 | 2020-07-13T04:53:53.000Z | 2020-07-13T04:53:53.000Z | contracts/contracts/rem.system/src/producer_pay.cpp | kushnirenko/remprotocol | ec450227a40bb18527b473266b07b982efc1d093 | [
"MIT"
] | 1 | 2020-05-20T20:14:13.000Z | 2020-05-20T20:14:13.000Z | contracts/contracts/rem.system/src/producer_pay.cpp | kushnirenko/remprotocol | ec450227a40bb18527b473266b07b982efc1d093 | [
"MIT"
] | 1 | 2020-05-13T14:06:06.000Z | 2020-05-13T14:06:06.000Z | #include <rem.system/rem.system.hpp>
#include <rem.token/rem.token.hpp>
#include <cmath>
#include <numeric>
namespace eosiosystem {
const static int producer_repetitions = 12;
const static int blocks_per_round = system_contract::max_block_producers * producer_repetitions;
using eosio::current_time_point;
... | 49.375676 | 192 | 0.647873 | kushnirenko |
982af8ecf9502e6c01bf5fb2971827969a5708f1 | 1,045 | hpp | C++ | binspector/fuzzer.hpp | sur5r/binspector | 9eeb9af463254edf1056d59944c49d00770e36f0 | [
"BSL-1.0"
] | 119 | 2015-01-14T18:03:20.000Z | 2022-03-18T14:02:46.000Z | binspector/fuzzer.hpp | sur5r/binspector | 9eeb9af463254edf1056d59944c49d00770e36f0 | [
"BSL-1.0"
] | 8 | 2015-03-06T01:18:39.000Z | 2021-05-04T21:55:34.000Z | binspector/fuzzer.hpp | sur5r/binspector | 9eeb9af463254edf1056d59944c49d00770e36f0 | [
"BSL-1.0"
] | 22 | 2015-01-09T16:18:38.000Z | 2022-03-13T13:41:04.000Z | /*
Copyright 2014 Adobe
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 BINSPECTOR_FUZZER_HPP
... | 34.833333 | 102 | 0.396172 | sur5r |
982ff1eb1b47c7de70e0623986d562615065e2ac | 8,073 | cpp | C++ | PEOperator/ThreadAnalysisFile.cpp | JokerRound/PEOperator | 19dcbaa42ea2888369e380d01652ea815eadfdd4 | [
"MIT"
] | null | null | null | PEOperator/ThreadAnalysisFile.cpp | JokerRound/PEOperator | 19dcbaa42ea2888369e380d01652ea815eadfdd4 | [
"MIT"
] | null | null | null | PEOperator/ThreadAnalysisFile.cpp | JokerRound/PEOperator | 19dcbaa42ea2888369e380d01652ea815eadfdd4 | [
"MIT"
] | 1 | 2022-02-08T09:07:50.000Z | 2022-02-08T09:07:50.000Z | #include "stdafx.h"
#include "ThreadAnalysisFile.h"
#include "PEOperatorDlg.h"
CThreadAnalysisFile::CThreadAnalysisFile()
{
}
CThreadAnalysisFile::~CThreadAnalysisFile()
{
}
bool CThreadAnalysisFile::OnThreadEventRun(LPVOID lpParam)
{
#ifdef DEBUG
DWORD dwError = -1;
CString csErrorMessage;
#endif // DEBUG... | 36.040179 | 80 | 0.503778 | JokerRound |
98301e097fdeb4530c3eab82151022723e861abf | 14,784 | cpp | C++ | src/widgets/portfiltersettingswidget.cpp | dehnhardt/mioconfig | 6d1ac1d85379eaf168d2c2fce81b09f020500605 | [
"MIT"
] | 16 | 2018-07-16T14:13:10.000Z | 2021-02-07T06:43:57.000Z | src/widgets/portfiltersettingswidget.cpp | dehnhardt/iconnconfig | 6d1ac1d85379eaf168d2c2fce81b09f020500605 | [
"MIT"
] | 16 | 2017-09-06T19:38:15.000Z | 2021-01-04T17:54:02.000Z | src/widgets/portfiltersettingswidget.cpp | dehnhardt/mioconfig | 6d1ac1d85379eaf168d2c2fce81b09f020500605 | [
"MIT"
] | 10 | 2018-03-03T14:50:03.000Z | 2020-09-30T18:08:55.000Z | #include "portfiltersettingswidget.h"
#include "controls/midicontrollercombodelegate.h"
#include "ui_portfiltersettingswidget.h"
#include <QLabel>
PortFilterSettingsWidget::PortFilterSettingsWidget(pk::PortDirection direction,
QWidget *parent)
: QWidget(parent), ui(new Ui::PortFilterSettingsWidget),
... | 33.753425 | 80 | 0.753314 | dehnhardt |
98330e664b439905402cc0bc827383cf5479bfad | 186 | cpp | C++ | examples/infinite_loop.cpp | stateos/IntrOS | 76ee5025442cefe37bc1434cdb95ea1b335ca667 | [
"MIT"
] | 36 | 2016-11-08T16:01:58.000Z | 2022-02-24T05:26:32.000Z | examples/infinite_loop.cpp | stateos/IntrOS | 76ee5025442cefe37bc1434cdb95ea1b335ca667 | [
"MIT"
] | null | null | null | examples/infinite_loop.cpp | stateos/IntrOS | 76ee5025442cefe37bc1434cdb95ea1b335ca667 | [
"MIT"
] | 9 | 2018-05-22T16:02:01.000Z | 2022-02-24T05:26:37.000Z | #include <stm32f4_discovery.h>
#include <os.h>
using namespace device;
using namespace intros;
int main()
{
auto led = Led();
for (;;)
{
thisTask::delay(SEC);
led.tick();
}
}
| 10.941176 | 30 | 0.634409 | stateos |
98342bc3b11cdbf40f251abab736b2083858853c | 2,723 | cpp | C++ | Chapter-4-Making-Decisions/Review Questions and Exercises/Programming Challenges/10.cpp | jesushilarioh/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 3 | 2019-02-02T16:59:48.000Z | 2019-02-28T14:50:08.000Z | Chapter-4-Making-Decisions/Review Questions and Exercises/Programming Challenges/10.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | null | null | null | Chapter-4-Making-Decisions/Review Questions and Exercises/Programming Challenges/10.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 1 | 2021-07-25T09:50:07.000Z | 2021-07-25T09:50:07.000Z | /********************************************************************
*
* 10. Days in a Month
*
* Write a program that asks the user to enter the month
* (letting the user enter an integer in the range of 1
* through 12) and the year. The program should then display
* the number of days in that ... | 27.23 | 75 | 0.423797 | jesushilarioh |
98345aa435f375b031b936b25836e00ec0bfbf8a | 10,792 | cpp | C++ | Source/Gui/TranslatorPanel.cpp | alvinahmadov/Dixter | 6f98f1e84192e1e43eee409bdee6b3dac75d6443 | [
"MIT"
] | 4 | 2018-12-06T01:20:50.000Z | 2019-08-04T10:19:23.000Z | Source/Gui/TranslatorPanel.cpp | alvinahmadov/Dixter | 6f98f1e84192e1e43eee409bdee6b3dac75d6443 | [
"MIT"
] | null | null | null | Source/Gui/TranslatorPanel.cpp | alvinahmadov/Dixter | 6f98f1e84192e1e43eee409bdee6b3dac75d6443 | [
"MIT"
] | null | null | null | /**
* Copyright (C) 2015-2019
* Author Alvin Ahmadov <alvin.dev.ahmadov@gmail.com>
*
* This file is part of Dixter Project
* License-Identifier: MIT License
* See README.md for more information.
*/
#include <QBoxLayout>
#include <QButtonGroup>
#include <QGroupBox>
#include "Configuration.hpp"
#include "Co... | 33.411765 | 119 | 0.71275 | alvinahmadov |
9838df6041c667e838fda18969face5723dd9981 | 532 | cpp | C++ | cpp source/gtavchacks/readprocess/main2.cpp | MEGAMINDMK/search-engine | 0e2748a4a3169e7290d8712f3c7bcefc8aec2bc3 | [
"Unlicense"
] | 1 | 2017-12-13T07:30:08.000Z | 2017-12-13T07:30:08.000Z | cpp source/gtavchacks/readprocess/main2.cpp | MEGAMINDMK/Softwares | 0e2748a4a3169e7290d8712f3c7bcefc8aec2bc3 | [
"Unlicense"
] | null | null | null | cpp source/gtavchacks/readprocess/main2.cpp | MEGAMINDMK/Softwares | 0e2748a4a3169e7290d8712f3c7bcefc8aec2bc3 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <windows.h>
#include <string>
using namespace std;
DWORD pid;
DWORD Health = 0x99A0508;
int MyHealth;
int main()
{
HWND hWnd = FindWindow(0, "GTA: Vice City");
GetWindowThreadProcessId(hWnd, &pid);
HANDLE pHandle = OpenProcess(PROCESS_VM_READ, FALSE, pid);
whi... | 21.28 | 84 | 0.612782 | MEGAMINDMK |
983b36dc11c39bd91ad89176317bdc53f1ec9377 | 780 | cpp | C++ | src/plugins/robots/attabot/real_robot/real_kheperaiv_differential_steering_device.cpp | DiegoD616/argos3-ATTABOT | e909bf1432dbd6649450dbb95e4e9f68f375eefa | [
"MIT"
] | null | null | null | src/plugins/robots/attabot/real_robot/real_kheperaiv_differential_steering_device.cpp | DiegoD616/argos3-ATTABOT | e909bf1432dbd6649450dbb95e4e9f68f375eefa | [
"MIT"
] | null | null | null | src/plugins/robots/attabot/real_robot/real_kheperaiv_differential_steering_device.cpp | DiegoD616/argos3-ATTABOT | e909bf1432dbd6649450dbb95e4e9f68f375eefa | [
"MIT"
] | null | null | null | #include "real_attabot_differential_steering_device.h"
#include <argos3/core/utility/logging/argos_log.h>
#include <memory>
/****************************************/
/****************************************/
CRealAttabotDifferentialSteeringDevice* CRealAttabotDifferentialSteeringDevice::GetInstance() {
static st... | 33.913043 | 95 | 0.548718 | DiegoD616 |
983c75c43839bcd1025b9d261a0e03d29dbb6898 | 2,097 | hpp | C++ | Nacro/SDK/FN_QuestTrackerSubEntry_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_QuestTrackerSubEntry_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_QuestTrackerSubEntry_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function QuestTrackerS... | 28.337838 | 173 | 0.722938 | Milxnor |
983ce42da7277e132c994239f8fe6ea3e1a15e34 | 2,347 | hpp | C++ | include/socket/base/ev_timer.hpp | chensoft/libxio | 17345e500cca5085641b5392ce8ef7dc65369d69 | [
"MIT"
] | 6 | 2018-07-28T08:03:24.000Z | 2022-03-31T08:56:57.000Z | include/socket/base/ev_timer.hpp | chensoft/libxio | 17345e500cca5085641b5392ce8ef7dc65369d69 | [
"MIT"
] | null | null | null | include/socket/base/ev_timer.hpp | chensoft/libxio | 17345e500cca5085641b5392ce8ef7dc65369d69 | [
"MIT"
] | 2 | 2019-05-21T02:26:36.000Z | 2020-04-13T16:46:20.000Z | /**
* Created by Jian Chen
* @since 2017.02.03
* @author Jian Chen <admin@chensoft.com>
* @link http://chensoft.com
*/
#pragma once
#include "socket/base/ev_base.hpp"
#include <functional>
#include <chrono>
namespace chen
{
class ev_timer: public ev_base
{
public:
enum class Flag {Normal, ... | 23.237624 | 83 | 0.532595 | chensoft |
984208815cc54cf2cdf49e6c24a78550ecf64ccc | 10,091 | cpp | C++ | Game15Puzzle.cpp | loiola0/artificial-intelligence-ufc | f356a6a572bdd0b3419b89c93a9c0bd45a669312 | [
"MIT"
] | 2 | 2021-11-08T22:06:06.000Z | 2021-12-17T19:40:01.000Z | Game15Puzzle.cpp | loiola0/artificial-intelligence-ufc | f356a6a572bdd0b3419b89c93a9c0bd45a669312 | [
"MIT"
] | null | null | null | Game15Puzzle.cpp | loiola0/artificial-intelligence-ufc | f356a6a572bdd0b3419b89c93a9c0bd45a669312 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <cstring>
#include <stdlib.h>
#include <set>
#include <map>
#include <ctime>
#include <vector>
#include <queue>
#include <functional>
#include <locale.h>
#include <unistd.h>
using namespace std;
class Node;
bool idfs();
bool A_estrela();
bool dfs(int k);
bool gulosa();... | 20.021825 | 89 | 0.603211 | loiola0 |
98460fc5f88b037a28e453b4e6f7b00863de1b2a | 1,059 | hpp | C++ | include/libp2p/common/literals.hpp | Alexey-N-Chernyshov/cpp-libp2p | 8b52253f9658560a4b1311b3ba327f02284a42a6 | [
"Apache-2.0",
"MIT"
] | null | null | null | include/libp2p/common/literals.hpp | Alexey-N-Chernyshov/cpp-libp2p | 8b52253f9658560a4b1311b3ba327f02284a42a6 | [
"Apache-2.0",
"MIT"
] | null | null | null | include/libp2p/common/literals.hpp | Alexey-N-Chernyshov/cpp-libp2p | 8b52253f9658560a4b1311b3ba327f02284a42a6 | [
"Apache-2.0",
"MIT"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef LIBP2P_LITERALS_HPP
#define LIBP2P_LITERALS_HPP
#include <cstdint>
#include <vector>
#include <libp2p/common/types.hpp>
namespace libp2p {
namespace multi {
class Multiaddress;
class Multihash;
... | 23.021739 | 70 | 0.694051 | Alexey-N-Chernyshov |
985037a14f29b5ae6859757d7ec7e47d49dc29d7 | 4,800 | cpp | C++ | ogsr_engine/COMMON_AI/PATH/patrol_path_storage.cpp | tiger-vlad/OGSR-Engine | 2b9700d6af4ece2728acc108decb2f34d43a6231 | [
"Apache-2.0"
] | 1 | 2019-06-21T10:33:20.000Z | 2019-06-21T10:33:20.000Z | ogsr_engine/COMMON_AI/PATH/patrol_path_storage.cpp | tiger-vlad/OGSR-Engine | 2b9700d6af4ece2728acc108decb2f34d43a6231 | [
"Apache-2.0"
] | null | null | null | ogsr_engine/COMMON_AI/PATH/patrol_path_storage.cpp | tiger-vlad/OGSR-Engine | 2b9700d6af4ece2728acc108decb2f34d43a6231 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
// Module : patrol_path_storage.cpp
// Created : 15.06.2004
// Modified : 15.06.2004
// Author : Dmitriy Iassenev
// Description : Patrol path storage
////////////////////////////////////////////////////////////////////////////
#include... | 25.531915 | 181 | 0.641875 | tiger-vlad |
9852e6ce0c07b1308e383043a1504518586acdfe | 777 | cpp | C++ | src/main/cpp/autonomous/AutoBaseLine.cpp | Team3512/Robot-2017 | 1e5f3c1dcd78464d0c967aa17ca0e479775f7ed3 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/autonomous/AutoBaseLine.cpp | Team3512/Robot-2017 | 1e5f3c1dcd78464d0c967aa17ca0e479775f7ed3 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/autonomous/AutoBaseLine.cpp | Team3512/Robot-2017 | 1e5f3c1dcd78464d0c967aa17ca0e479775f7ed3 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2016-2021 FRC Team 3512. All Rights Reserved.
#include "Robot.hpp"
constexpr double kSafetyInches = 10.0;
// Drives forward until passing white line 120 inches away from start
void Robot::AutoBaseLine() {
robotDrive.StartClosedLoop();
shifter.Set(false); // false = high gear
gearPunch.... | 25.9 | 74 | 0.675676 | Team3512 |
9855218d27807b581da5d1f58a4e439ff444e345 | 304 | cpp | C++ | core/xnet/env.cpp | forrestsong/fpay_demo | 7b254a1389b011c799497ad7d08bb8d8d349e557 | [
"MIT"
] | 1 | 2018-08-12T15:08:49.000Z | 2018-08-12T15:08:49.000Z | core/xnet/env.cpp | forrestsong/fpay_demo | 7b254a1389b011c799497ad7d08bb8d8d349e557 | [
"MIT"
] | null | null | null | core/xnet/env.cpp | forrestsong/fpay_demo | 7b254a1389b011c799497ad7d08bb8d8d349e557 | [
"MIT"
] | null | null | null | #include <iostream>
#include "IOLoop.h"
#include "SignalHandler.h"
#include "env.h"
int env::SocketErrorLogLevel = 0;
time_t env::now = time(NULL);
std::string env::strTime = "";
unsigned int env::msec = 0;
uint64_t env::usec = 0;
IOLoop* env::_loop = NULL;
SignalHandler* env::_signalHandler = NULL;
| 21.714286 | 42 | 0.700658 | forrestsong |
985a0b9d65797ab47cdf40363ae2fd2855d88c2d | 416 | cpp | C++ | Kawakawa/Excalibur/Core/Object/System/CameraSystem.cpp | JiaqiJin/KawaiiDesune | e5c3031898f96f1ec5370b41371b2c1cf22c3586 | [
"MIT"
] | null | null | null | Kawakawa/Excalibur/Core/Object/System/CameraSystem.cpp | JiaqiJin/KawaiiDesune | e5c3031898f96f1ec5370b41371b2c1cf22c3586 | [
"MIT"
] | null | null | null | Kawakawa/Excalibur/Core/Object/System/CameraSystem.cpp | JiaqiJin/KawaiiDesune | e5c3031898f96f1ec5370b41371b2c1cf22c3586 | [
"MIT"
] | null | null | null | #include "CameraSystem.h"
namespace Excalibur
{
CameraSystem::CameraSystem(World* world) :
m_World(world)
{
}
int CameraSystem::Initialize()
{
return 0;
}
void CameraSystem::Finalize()
{
m_MainCamera = nullptr;
}
std::shared_ptr<Entity> CameraSystem::GetMainCamera()
{
return m_MainCamera;
}
vo... | 13.866667 | 65 | 0.704327 | JiaqiJin |
985c7580f09279333a49b64f260e36cbda9522cd | 730 | cpp | C++ | Contests/Codeforces/CF1011/A.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Contests/Codeforces/CF1011/A.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Contests/Codeforces/CF1011/A.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=51;
const int inf=2147483647;
const int meminf=1061109567;
char str[maxN];
int n,K;
int F[maxN][maxN];
int main()
{
scanf... | 18.25 | 49 | 0.591781 | SYCstudio |
985eb7be388d30e5a22ea2a1476c73eefc86cabd | 10,253 | cpp | C++ | xfa/src/fxbarcode/datamatrix/BC_SymbolInfo.cpp | f100cleveland/external_pdfium | 12eec9c70519554387f199aa1eef42ed15478d02 | [
"BSD-3-Clause"
] | 1 | 2018-01-12T03:24:59.000Z | 2018-01-12T03:24:59.000Z | xfa/src/fxbarcode/datamatrix/BC_SymbolInfo.cpp | f100cleveland/external_pdfium | 12eec9c70519554387f199aa1eef42ed15478d02 | [
"BSD-3-Clause"
] | null | null | null | xfa/src/fxbarcode/datamatrix/BC_SymbolInfo.cpp | f100cleveland/external_pdfium | 12eec9c70519554387f199aa1eef42ed15478d02 | [
"BSD-3-Clause"
] | 1 | 2020-07-30T12:07:00.000Z | 2020-07-30T12:07:00.000Z | // Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
// Original code is licensed as follows:
/*
* Copyright 2006 Jeremias M... | 39.894942 | 81 | 0.627329 | f100cleveland |
9862551214aa4d28d9d1ccd3872b85e1f097a981 | 3,752 | cpp | C++ | main.cpp | vega1986/wcalc_expression_parser | e9645a5fa8086c4108ce4dc1f3ad7da3cead6480 | [
"MIT"
] | null | null | null | main.cpp | vega1986/wcalc_expression_parser | e9645a5fa8086c4108ce4dc1f3ad7da3cead6480 | [
"MIT"
] | null | null | null | main.cpp | vega1986/wcalc_expression_parser | e9645a5fa8086c4108ce4dc1f3ad7da3cead6480 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <sstream>
#include <iostream>
#include <queue>
// #include "kernel.h"
#include "ctexpression/ctkernel.h"
// #define use_string_interpreter 0
int main(int argc, char *argv[])
{
using namespace std;
using namespace compile_time_expression_structure;
#if 0
// istringstream ist ... | 25.875862 | 79 | 0.452292 | vega1986 |
98647a9fd20bb76d081f2cb841782bcd9340933e | 3,107 | cpp | C++ | test/PAGSmokeTest.cpp | cy-j/libpag | 9b1636a0a67ad5e009d60c6c348034790d247692 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | 2 | 2022-02-26T16:10:30.000Z | 2022-03-18T01:28:40.000Z | test/PAGSmokeTest.cpp | cy-j/libpag | 9b1636a0a67ad5e009d60c6c348034790d247692 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | null | null | null | test/PAGSmokeTest.cpp | cy-j/libpag | 9b1636a0a67ad5e009d60c6c348034790d247692 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... | 36.988095 | 97 | 0.619569 | cy-j |
986cf9d18eb8becd9ea2150c7940ec2db9eada36 | 2,607 | cpp | C++ | core/src/view/TileView.cpp | voei/megamol | 569b7b58c1f9bc5405b79549b86f84009329f668 | [
"BSD-3-Clause"
] | 2 | 2020-10-16T10:15:37.000Z | 2021-01-21T13:06:00.000Z | core/src/view/TileView.cpp | voei/megamol | 569b7b58c1f9bc5405b79549b86f84009329f668 | [
"BSD-3-Clause"
] | null | null | null | core/src/view/TileView.cpp | voei/megamol | 569b7b58c1f9bc5405b79549b86f84009329f668 | [
"BSD-3-Clause"
] | 1 | 2021-01-28T01:19:54.000Z | 2021-01-28T01:19:54.000Z | /*
* TileView.cpp
*
* Copyright (C) 2010 by VISUS (Universitaet Stuttgart).
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "mmcore/view/TileView.h"
#include "vislib/memutils.h"
using namespace megamol::core;
using vislib::graphics::CameraParameters;
/*
* view::TileView::TileView
*/
view::TileVie... | 23.070796 | 108 | 0.632528 | voei |
986de253998848da15157e3b571e0ea914336a35 | 4,668 | cpp | C++ | src/moore.cpp | poluyan/MultiDimFloodFill | 388b38a4bfb643b708524d04ab296a40e4d3e087 | [
"Apache-2.0"
] | null | null | null | src/moore.cpp | poluyan/MultiDimFloodFill | 388b38a4bfb643b708524d04ab296a40e4d3e087 | [
"Apache-2.0"
] | null | null | null | src/moore.cpp | poluyan/MultiDimFloodFill | 388b38a4bfb643b708524d04ab296a40e4d3e087 | [
"Apache-2.0"
] | null | null | null | #include "moore.h"
#include "pdf.h"
void FloodFill_MultipleGrids_Moore(const std::vector<std::vector<double>> &grids,
std::vector<std::vector<int>> &points,
std::set<std::vector<int>> &visited,
std::vector<std::vec... | 31.328859 | 106 | 0.442588 | poluyan |
987b5047e513fc893fa90e342c6c2422d33d0512 | 1,371 | cpp | C++ | hard/23_merge_k_sorted_lists.cpp | pdu/leetcode_cpp | c487df7561f92562b20a31317957f47e0a20c485 | [
"Apache-2.0"
] | 4 | 2019-07-22T03:53:23.000Z | 2019-10-17T01:37:41.000Z | hard/23_merge_k_sorted_lists.cpp | pdu/leetcode_cpp | c487df7561f92562b20a31317957f47e0a20c485 | [
"Apache-2.0"
] | null | null | null | hard/23_merge_k_sorted_lists.cpp | pdu/leetcode_cpp | c487df7561f92562b20a31317957f47e0a20c485 | [
"Apache-2.0"
] | 2 | 2020-03-10T03:30:41.000Z | 2020-11-10T06:51:34.000Z | // step 1: clarify
//
// quite straightforward
//
// step 2: solutions
//
// set the pointer to each of the list head, put all the values into the priority_queue
// pop the minimum value one and move the related pointer to the next position
// time complexity: O(n * logk), n is the total number
// space complexity: O(k... | 26.882353 | 97 | 0.585704 | pdu |
987fd977e4e261af31b0736f215f562fb8f784a3 | 7,443 | cpp | C++ | Source/System/CacheManager.cpp | gunstarpl/Game-Engine-12-2013 | bfc53f5c998311c17e97c1b4d65792d615c51d36 | [
"MIT",
"Unlicense"
] | 6 | 2017-12-31T17:28:40.000Z | 2021-12-04T06:11:34.000Z | Source/System/CacheManager.cpp | gunstarpl/Game-Engine-12-2013 | bfc53f5c998311c17e97c1b4d65792d615c51d36 | [
"MIT",
"Unlicense"
] | null | null | null | Source/System/CacheManager.cpp | gunstarpl/Game-Engine-12-2013 | bfc53f5c998311c17e97c1b4d65792d615c51d36 | [
"MIT",
"Unlicense"
] | null | null | null | #include "Precompiled.hpp"
#include "CacheManager.hpp"
#include "MainGlobal.hpp"
namespace
{
// Log error messages.
#define LogInitializeError() "Failed to initialize the cache manager! "
#define LogRecreateCacheError() "Failed to recreate the cache! "
// Cache registry filename.
const char* Cach... | 23.703822 | 116 | 0.593847 | gunstarpl |
9880b1c76cf919d2e52f8cfc208134f59555b22b | 8,810 | hpp | C++ | scripting/src/SceneGraph/LuaSceneBuilder.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 36 | 2015-03-12T10:42:36.000Z | 2022-01-12T04:20:40.000Z | scripting/src/SceneGraph/LuaSceneBuilder.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 1 | 2015-12-17T00:25:43.000Z | 2016-02-20T12:00:57.000Z | scripting/src/SceneGraph/LuaSceneBuilder.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 6 | 2017-06-17T07:57:53.000Z | 2019-04-09T21:11:24.000Z | /*
* Copyright (c) 2013, Hernan Saez
* 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 of con... | 36.106557 | 135 | 0.605221 | hhsaez |
9882c8ace1f7470eb207ba3eccd0a20d351c4e5f | 2,860 | cpp | C++ | src/dawn/IIR/AccessToNameMapper.cpp | Kayjukh/dawn | 431a59ceeff062beb8390056c6bbd5b5d6d808d3 | [
"MIT"
] | null | null | null | src/dawn/IIR/AccessToNameMapper.cpp | Kayjukh/dawn | 431a59ceeff062beb8390056c6bbd5b5d6d808d3 | [
"MIT"
] | null | null | null | src/dawn/IIR/AccessToNameMapper.cpp | Kayjukh/dawn | 431a59ceeff062beb8390056c6bbd5b5d6d808d3 | [
"MIT"
] | null | null | null | //===--------------------------------------------------------------------------------*- C++ -*-===//
// _
// | |
// __| | __ ___ ___ ___
// / _` |/ _` \ \ /\ / / '_ |
// | (_| | (_| |\ V V /| | | |
// ... | 39.178082 | 100 | 0.615035 | Kayjukh |
98830ee90e34373b77453559e1a5a1c2170bb82e | 4,623 | cpp | C++ | src/model/searchlistmodel.cpp | sailfish-os-apps/harbour-sailseries | df8fb67b720e4ba9f8c4644ebc03cf90bb745e3c | [
"MIT"
] | null | null | null | src/model/searchlistmodel.cpp | sailfish-os-apps/harbour-sailseries | df8fb67b720e4ba9f8c4644ebc03cf90bb745e3c | [
"MIT"
] | null | null | null | src/model/searchlistmodel.cpp | sailfish-os-apps/harbour-sailseries | df8fb67b720e4ba9f8c4644ebc03cf90bb745e3c | [
"MIT"
] | null | null | null | #include "searchlistmodel.h"
SearchListModel::SearchListModel(QObject *parent, DatabaseManager *dbmanager, Api *api) :
QObject(parent)
{
m_dbmanager = dbmanager;
m_api = api;
connect(m_api,
SIGNAL(readyToPopulateSeries(QList<QVariantMap>)),
this,
SLOT(searchFinished... | 26.722543 | 133 | 0.718797 | sailfish-os-apps |
9887816891913384f92ed443f1518d4f74bd709f | 18,089 | cpp | C++ | src/xtd.core.native.win32/src/xtd/native/win32/socket.cpp | gammasoft71/xtd | 09e589a9dd2cb292d1e54c9c4f803c2b3ad22102 | [
"MIT"
] | 251 | 2019-04-20T02:02:24.000Z | 2022-03-31T09:52:08.000Z | src/xtd.core.native.win32/src/xtd/native/win32/socket.cpp | gammasoft71/xtd | 09e589a9dd2cb292d1e54c9c4f803c2b3ad22102 | [
"MIT"
] | 29 | 2021-01-07T12:52:12.000Z | 2022-03-29T08:42:14.000Z | src/xtd.core.native.win32/src/xtd/native/win32/socket.cpp | gammasoft71/xtd | 09e589a9dd2cb292d1e54c9c4f803c2b3ad22102 | [
"MIT"
] | 27 | 2019-11-21T02:37:44.000Z | 2022-03-30T22:59:14.000Z | #define __XTD_CORE_NATIVE_LIBRARY__
#include <xtd/native/socket.h>
#include <xtd/native/address_family_constants.h>
#include <xtd/native/protocol_type_constants.h>
#include <xtd/native/select_mode_constants.h>
#include <xtd/native/socket_option_name_constants.h>
#include <xtd/native/socket_option_level_constants.h>
#in... | 60.498328 | 1,023 | 0.779535 | gammasoft71 |
9889c6f9277040707bed82dfc5ce1110184f66d5 | 2,104 | cpp | C++ | GUICheckbox.cpp | Magtheridon96/Unfinished-RPG | f002a7e19684f31e6158ca78e24bdd514932d72c | [
"MIT"
] | 1 | 2015-09-14T13:19:16.000Z | 2015-09-14T13:19:16.000Z | GUICheckbox.cpp | Magtheridon96/Unfinished-RPG | f002a7e19684f31e6158ca78e24bdd514932d72c | [
"MIT"
] | null | null | null | GUICheckbox.cpp | Magtheridon96/Unfinished-RPG | f002a7e19684f31e6158ca78e24bdd514932d72c | [
"MIT"
] | null | null | null | #include "GUICheckbox.h"
#include "Context.h"
gui::check_box::check_box(const std::string& p_label, int p_x, int p_y, int p_size)
: state(false)
, label(p_label)
, size(p_size)
{
set_callback([this] { state = !state; });
set_x(p_x);
set_y(p_y);
if (label != "") {
const sf::Fon... | 33.935484 | 113 | 0.647814 | Magtheridon96 |
988c4200da0ddfdd9902759e819c734fb996dee2 | 468 | hpp | C++ | src/chp13/employee.hpp | gianscarpe/cpp_primer | f09c645449d9b79e7c77dde13381513dee25519a | [
"MIT"
] | null | null | null | src/chp13/employee.hpp | gianscarpe/cpp_primer | f09c645449d9b79e7c77dde13381513dee25519a | [
"MIT"
] | null | null | null | src/chp13/employee.hpp | gianscarpe/cpp_primer | f09c645449d9b79e7c77dde13381513dee25519a | [
"MIT"
] | null | null | null | #ifndef EMPLOYEE_H
#define EMPLOYEE_H
#include <string>
class Employee{
public:
static int counter;
Employee(std::string _name) : name(_name) {
id = counter++;
}
Employee(const Employee& e){
name = e.name;
id = counter++;
}
Employee& operator=(const Employee& e){
name = e.name;
id = cou... | 16.137931 | 45 | 0.630342 | gianscarpe |
988c7809c5520bacc7fcffcab5196747afdde658 | 1,428 | cpp | C++ | BUPT 2021 Winter Training #10/k.cpp | rakty/2022-spring-training | db36ad3838945d2bb3a951f9ccd8dfa6f0916d0d | [
"MIT"
] | 1 | 2022-03-04T15:11:33.000Z | 2022-03-04T15:11:33.000Z | BUPT 2021 Winter Training #10/k.cpp | rakty/2022-spring-training | db36ad3838945d2bb3a951f9ccd8dfa6f0916d0d | [
"MIT"
] | null | null | null | BUPT 2021 Winter Training #10/k.cpp | rakty/2022-spring-training | db36ad3838945d2bb3a951f9ccd8dfa6f0916d0d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define ll long long
//const int inf=0x7fffffff;
const int inf = 0x3f3f3f3f;
int t, n, a, b, k, f;
void solve()
{
cin >> n >> a >> b >> k >> f;
vector<pair<string, string>>s(n);
map<pair<string, string>, int> mp;
int ans = a, temp;
for ... | 24.20339 | 84 | 0.487395 | rakty |
989aceb1a0cda59239ab2e4a6247f902a47535f3 | 1,975 | hpp | C++ | pose_refinement/SA-LMPE/ba/openMVG/sfm/pipelines/global/GlobalSfM_rotation_averaging.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 90 | 2019-05-19T03:48:23.000Z | 2022-02-02T15:20:49.000Z | pose_refinement/SA-LMPE/ba/openMVG/sfm/pipelines/global/GlobalSfM_rotation_averaging.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 11 | 2019-05-22T07:45:46.000Z | 2021-05-20T01:48:26.000Z | pose_refinement/SA-LMPE/ba/openMVG/sfm/pipelines/global/GlobalSfM_rotation_averaging.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 18 | 2019-05-19T03:48:32.000Z | 2021-05-29T18:19:16.000Z | // This file is part of OpenMVG, an Open Multiple View Geometry C++ library.
// Copyright (c) 2015 Pierre MOULON.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#... | 29.477612 | 100 | 0.787848 | Aurelio93 |
989c6bf4799c7224060564ca1d073ddfbff46e0c | 1,097 | cpp | C++ | pass/lnast_print/pass_lnast_print.cpp | realdavidpang/livehd | c0462922400d34c0327b4aabb450332bda50f174 | [
"BSD-3-Clause"
] | 46 | 2018-05-31T23:07:02.000Z | 2019-09-16T20:21:03.000Z | pass/lnast_print/pass_lnast_print.cpp | realdavidpang/livehd | c0462922400d34c0327b4aabb450332bda50f174 | [
"BSD-3-Clause"
] | 120 | 2018-05-16T23:11:09.000Z | 2019-09-25T18:52:49.000Z | pass/lnast_print/pass_lnast_print.cpp | realdavidpang/livehd | c0462922400d34c0327b4aabb450332bda50f174 | [
"BSD-3-Clause"
] | 8 | 2018-11-08T18:53:52.000Z | 2019-09-05T20:04:20.000Z | // This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#include "pass_lnast_print.hpp"
#include "lnast_writer.hpp"
#include <fstream>
#include <ostream>
#include <iostream>
static Pass_plugin sample("pass_lnast_print", Pass_lnast_print::setup);
Pass_lnast_print::Pass_lnast_print(cons... | 31.342857 | 132 | 0.709207 | realdavidpang |
98a02a22ec0da77d3923487ae14f1a256fa57d08 | 704 | cpp | C++ | origin_code/d.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null | origin_code/d.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null | origin_code/d.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null | // function for Chapter 2 exercise
#include <iostream>
#include <algorithm>
using namespace std;
void d(int x[], int n)
{
for (int i = 0; i < n; i += 2)
x[i] += 2;
i = 1;
while (i <= n/2)
{
x[i] += x[i+1];
i++;
}
}
int main()
{
int a[15] = {1,2,3,4,5,6,7,8,... | 16.761905 | 52 | 0.46733 | vectordb-io |
f0f9ce7929d400f516c460bc7b3b284787cf5bf9 | 7,856 | cc | C++ | arccore/src/message_passing/arccore/message_passing/SerializeMessageList.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 16 | 2021-09-20T12:37:01.000Z | 2022-03-18T09:19:14.000Z | arccore/src/message_passing/arccore/message_passing/SerializeMessageList.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 66 | 2021-09-17T13:49:39.000Z | 2022-03-30T16:24:07.000Z | arccore/src/message_passing/arccore/message_passing/SerializeMessageList.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 11 | 2021-09-27T16:48:55.000Z | 2022-03-23T19:06:56.000Z | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... | 37.588517 | 96 | 0.502037 | cedricga91 |
0b0127cd0c6c2815889dde2d9e5e7755c47094d7 | 1,310 | cc | C++ | lib/ui/painting/image.cc | alibitek/engine | 0f0b144b0320d00d837fb2af80cd542ab1359491 | [
"BSD-3-Clause"
] | null | null | null | lib/ui/painting/image.cc | alibitek/engine | 0f0b144b0320d00d837fb2af80cd542ab1359491 | [
"BSD-3-Clause"
] | null | null | null | lib/ui/painting/image.cc | alibitek/engine | 0f0b144b0320d00d837fb2af80cd542ab1359491 | [
"BSD-3-Clause"
] | 1 | 2020-03-05T02:44:12.000Z | 2020-03-05T02:44:12.000Z | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/lib/ui/painting/image.h"
#include "flutter/common/threads.h"
#include "flutter/lib/ui/painting/utils.h"
#include "lib/tonic/converter/d... | 25.192308 | 76 | 0.730534 | alibitek |
0b035cdafea27f5861f8050bec3addbba883aa00 | 1,724 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/rubetek/socket/tcp_acceptor.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/rubetek/socket/tcp_acceptor.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/rubetek/socket/tcp_acceptor.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | #pragma once
#include <msw/noncopyable.hpp>
#include <msw/asio/tcp_acceptor.hpp>
#include <msw/lexical_cast/network/endpoint/to_string.hpp>
#include <msw/lexical_cast/network/endpoint/from_string.hpp>
namespace rubetek
{
struct tcp_acceptor
: msw::noncopyable
{
typedef msw::tcp_acceptor::io_s... | 32.528302 | 118 | 0.61949 | yklishevich |
0b077a221f8f1e994f8c9141b207ad6ad5078ef3 | 733 | hh | C++ | styler.hh | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | styler.hh | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | styler.hh | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | #ifndef __MAKEMORE_STYLER_HH__
#define __MAKEMORE_STYLER_HH__ 1
#include <string.h>
#include <stdlib.h>
#include <string>
#include <map>
#include "project.hh"
#include "cholo.hh"
namespace makemore {
struct Styler : Project {
double *tmp;
unsigned int dim;
std::map<std::string, Cholo*> tag_cholo;
double *... | 17.878049 | 68 | 0.673943 | jdb19937 |
0b0bf34cddfcaaf99c2bee8de7bb780719217fed | 2,689 | cpp | C++ | src/modules/keyboardmanager/KeyboardManagerEditorLibrary/KeyboardManagerEditorStrings.cpp | tameemzabalawi/PowerToys | 5c6f7b1aea90ecd9ebe5cb8c7ddf82f8113fcb45 | [
"MIT"
] | 76,518 | 2019-05-06T22:50:10.000Z | 2022-03-31T22:20:54.000Z | src/modules/keyboardmanager/KeyboardManagerEditorLibrary/KeyboardManagerEditorStrings.cpp | Nakatai-0322/PowerToys | 1f64c1cf837ca958ad14dc3eb7887f36220a1ef9 | [
"MIT"
] | 15,530 | 2019-05-07T01:10:24.000Z | 2022-03-31T23:48:46.000Z | src/modules/keyboardmanager/KeyboardManagerEditorLibrary/KeyboardManagerEditorStrings.cpp | Nakatai-0322/PowerToys | 1f64c1cf837ca958ad14dc3eb7887f36220a1ef9 | [
"MIT"
] | 5,184 | 2019-05-06T23:32:32.000Z | 2022-03-31T15:43:25.000Z | #include "pch.h"
#include "KeyboardManagerEditorStrings.h"
// Function to return the error message
winrt::hstring KeyboardManagerEditorStrings::GetErrorMessage(ShortcutErrorType errorType)
{
switch (errorType)
{
case ShortcutErrorType::NoError:
return GET_RESOURCE_STRING(IDS_ERRORMESSAGE_REMAPSUCCE... | 54.877551 | 90 | 0.804016 | tameemzabalawi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.