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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
be506367cace8b8ab7ca9dd040eeee4cb400ced3 | 15,492 | hpp | C++ | http/utility.hpp | gp-akf/bmcweb | 916ba6059417fefe24711f99116a78e6c7f7734f | [
"Apache-2.0"
] | null | null | null | http/utility.hpp | gp-akf/bmcweb | 916ba6059417fefe24711f99116a78e6c7f7734f | [
"Apache-2.0"
] | null | null | null | http/utility.hpp | gp-akf/bmcweb | 916ba6059417fefe24711f99116a78e6c7f7734f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "nlohmann/json.hpp"
#include <openssl/crypto.h>
#include <chrono>
#include <cstdint>
#include <cstring>
#include <functional>
#include <regex>
#include <stdexcept>
#include <string>
#include <tuple>
namespace crow
{
namespace black_magic
{
constexpr unsigned findClosingTag(std::string_view s,... | 24.473934 | 80 | 0.563 | gp-akf |
be52999e8599ce4ba63975e20e4eacb971779f63 | 2,977 | cpp | C++ | export/release/windows/obj/src/lime/_internal/format/GZip.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/release/windows/obj/src/lime/_internal/format/GZip.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/release/windows/obj/src/lime/_internal/format/GZip.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime__internal_backend_native_NativeCFFI
#include <lime/_internal/backend/native/NativeCFFI.h>
#endif
#ifndef INCLUDED_lime__internal_format_GZip
#include <lime/_internal/format/GZip.h>
#endi... | 30.690722 | 199 | 0.749748 | bobisdabbing |
be5790be4e0d181ecd75a71f9e5201811c80c2e1 | 1,016 | cpp | C++ | Codeforces/B. Fedor and New Game.cpp | Mhmd-Hisham/Problem-Solving | 7ce0955b697e735c5ccb37347d9bec83e57339b5 | [
"MIT"
] | null | null | null | Codeforces/B. Fedor and New Game.cpp | Mhmd-Hisham/Problem-Solving | 7ce0955b697e735c5ccb37347d9bec83e57339b5 | [
"MIT"
] | null | null | null | Codeforces/B. Fedor and New Game.cpp | Mhmd-Hisham/Problem-Solving | 7ce0955b697e735c5ccb37347d9bec83e57339b5 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
/*
Problem: B. Fedor and New Game
Link : https://codeforces.com/problemset/problem/467/B
Solution by: Mohamed Hisham El-Banna
Gmail : Mohamed00Hisham@Gmail.com
Github : www.github.com/Mhmd-Hisham
LinkedIn: www.linkedin.com/in/Mhmd-Hisham
*/
using namespace std;
int N, M, K;
int players... | 14.724638 | 72 | 0.541339 | Mhmd-Hisham |
be5cf3aa10f800dd9aa0df9ea41a95fcce1b34eb | 5,811 | cc | C++ | src/CALPHADSpeciesPhaseGibbsEnergy.cc | stvdwtt/Thermo4PFM | 5308b7c58c4b67ed98d2bd50469226b7d89da2b8 | [
"BSD-3-Clause"
] | null | null | null | src/CALPHADSpeciesPhaseGibbsEnergy.cc | stvdwtt/Thermo4PFM | 5308b7c58c4b67ed98d2bd50469226b7d89da2b8 | [
"BSD-3-Clause"
] | null | null | null | src/CALPHADSpeciesPhaseGibbsEnergy.cc | stvdwtt/Thermo4PFM | 5308b7c58c4b67ed98d2bd50469226b7d89da2b8 | [
"BSD-3-Clause"
] | null | null | null | #include "CALPHADSpeciesPhaseGibbsEnergy.h"
#include <cassert>
#include <iostream>
#include <math.h>
#include <vector>
#ifndef CALPHAD4PFM_ERROR
#define CALPHAD4PFM_ERROR(X) \
do \
{ ... | 28.072464 | 80 | 0.5111 | stvdwtt |
be5f1af8ced453119a98a69ed62473ce6fc86346 | 2,572 | cpp | C++ | Src/Vulkan/Shapes/VKSkybox.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | Src/Vulkan/Shapes/VKSkybox.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | Src/Vulkan/Shapes/VKSkybox.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | /***********************************************************************
* AUTHOR: <Stavros Bizelis>
* FILE: VKSkybox.cpp
* DATE: Fri Jul 13 19:30:00 2018
* DESCR:
***********************************************************************/
#include "Vulkan/Shapes/VKSkybox.h"
/*
* Method: VKSkybox::VKSkybox
... | 24.730769 | 147 | 0.563764 | StavrosBizelis |
be6065914857dc73c650f7d57196465b245e7c25 | 5,028 | hpp | C++ | xs/src/libslic3r/ExPolygon.hpp | hroncok/Slic3r | 321b70115b60df786fe74d376c3f67b1f7076fc0 | [
"CC-BY-3.0"
] | 2 | 2015-05-05T06:47:47.000Z | 2015-07-29T05:37:06.000Z | xs/src/libslic3r/ExPolygon.hpp | hroncok/Slic3r | 321b70115b60df786fe74d376c3f67b1f7076fc0 | [
"CC-BY-3.0"
] | null | null | null | xs/src/libslic3r/ExPolygon.hpp | hroncok/Slic3r | 321b70115b60df786fe74d376c3f67b1f7076fc0 | [
"CC-BY-3.0"
] | null | null | null | #ifndef slic3r_ExPolygon_hpp_
#define slic3r_ExPolygon_hpp_
#include "Polygon.hpp"
#include "Polyline.hpp"
#include <vector>
namespace Slic3r {
class ExPolygon;
typedef std::vector<ExPolygon> ExPolygons;
class ExPolygon
{
public:
Polygon contour;
Polygons holes;
operator Points() const;
operator... | 32.43871 | 120 | 0.670048 | hroncok |
4157ef45e130dd05de99e07fb3fe4d58b45f8fa7 | 1,905 | cpp | C++ | tests/resolve_generic_class.cpp | ElDesalmado/lasanga | 2239653b1e4713da7178a7dbeb30ffea4bfd897d | [
"MIT"
] | null | null | null | tests/resolve_generic_class.cpp | ElDesalmado/lasanga | 2239653b1e4713da7178a7dbeb30ffea4bfd897d | [
"MIT"
] | 5 | 2021-10-04T17:41:11.000Z | 2021-10-09T15:42:31.000Z | tests/resolve_generic_class.cpp | ElDesalmado/lasanga | 2239653b1e4713da7178a7dbeb30ffea4bfd897d | [
"MIT"
] | null | null | null |
#include <lasanga/impl/resolve_generic_class.h>
#include <iostream>
template <template <typename...> class>
struct wrapped_tt;
template <typename...>
struct type_list;
template <template <typename...> class>
struct get_alias_list;
namespace alias
{
template <typename...>
struct A;
template <typename... | 16.422414 | 75 | 0.615748 | ElDesalmado |
415e94f1697d61c33fc0bf8e8045f976865196a1 | 968 | cc | C++ | leetcode/219_contains_duplicate2.cc | norlanliu/algorithm | 1684db2631f259b4de567164b3ee866351e5b1b6 | [
"MIT"
] | null | null | null | leetcode/219_contains_duplicate2.cc | norlanliu/algorithm | 1684db2631f259b4de567164b3ee866351e5b1b6 | [
"MIT"
] | null | null | null | leetcode/219_contains_duplicate2.cc | norlanliu/algorithm | 1684db2631f259b4de567164b3ee866351e5b1b6 | [
"MIT"
] | null | null | null | /*
* =====================================================================================
*
* Filename: 219_contains_duplicate2.cc
*
* Description:
*
* Version: 1.0
* Created: 06/28/2015 05:05:18 PM
* Revision: none
* Compiler: gcc
*
* Author: (Qi Liu), l... | 26.162162 | 88 | 0.386364 | norlanliu |
416143436a4f19f5b6bbd5798d9b7e947d3f7123 | 2,405 | hh | C++ | bzlog.hh | emprice/benzaiten | 20ed069f6936bb968137272d35d778f691b1416f | [
"MIT"
] | 1 | 2021-04-11T21:26:06.000Z | 2021-04-11T21:26:06.000Z | bzlog.hh | emprice/benzaiten | 20ed069f6936bb968137272d35d778f691b1416f | [
"MIT"
] | null | null | null | bzlog.hh | emprice/benzaiten | 20ed069f6936bb968137272d35d778f691b1416f | [
"MIT"
] | 1 | 2021-06-17T18:25:15.000Z | 2021-06-17T18:25:15.000Z | #ifndef _BZLOG_HH_
#define _BZLOG_HH_
#include "bzexpression.hh"
#include "bzfunction.hh"
#include "bzquo.hh"
#include <cmath>
#include <ostream>
#include <type_traits>
namespace benzaiten
{
template <typename E>
struct FnLog;
template <typename Wrt, size_t Order, typename E>
struct FnLogDerivativeT... | 25.052083 | 115 | 0.570062 | emprice |
416f7a7761bab175f588e93ace9afacbe9c37fc3 | 5,045 | cpp | C++ | compiler/src/core/DumpHelper_Exp1.cpp | d08ble/acpu | fb7b809ada746ecc3d1dbbe1096b120ac8f63256 | [
"Unlicense"
] | 2 | 2021-08-28T14:45:13.000Z | 2021-11-15T12:24:03.000Z | compiler/src/core/DumpHelper_Exp1.cpp | d08ble/acpu | fb7b809ada746ecc3d1dbbe1096b120ac8f63256 | [
"Unlicense"
] | null | null | null | compiler/src/core/DumpHelper_Exp1.cpp | d08ble/acpu | fb7b809ada746ecc3d1dbbe1096b120ac8f63256 | [
"Unlicense"
] | null | null | null | //
// Another CPU Language - ACPUL - a{};
//
// THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
// SHALL THE FREEBSD PROJECT O... | 26.413613 | 91 | 0.496928 | d08ble |
417007fa202cd2bfbc03d4f3f143e3106d877425 | 9,171 | cpp | C++ | CLI/FK_CLI/cpp/Projection_CLI.cpp | rita0222/FK | bc5786a5da0dd732e2f411c1a953b331323ee432 | [
"BSD-3-Clause"
] | 4 | 2020-05-15T03:43:53.000Z | 2021-06-05T16:21:31.000Z | CLI/FK_CLI/cpp/Projection_CLI.cpp | rita0222/FK | bc5786a5da0dd732e2f411c1a953b331323ee432 | [
"BSD-3-Clause"
] | 1 | 2020-05-19T09:27:16.000Z | 2020-05-21T02:12:54.000Z | CLI/FK_CLI/cpp/Projection_CLI.cpp | rita0222/FK | bc5786a5da0dd732e2f411c1a953b331323ee432 | [
"BSD-3-Clause"
] | null | null | null | #include "Projection_CLI.h"
namespace FK_CLI {
::FK::fk_ProjectBase * fk_ProjectBase::GetP(void)
{
return pProj;
}
fk_ProjectBase::fk_ProjectBase(bool argNewFlg) : dFlg(argNewFlg)
{
if(argNewFlg == true) pProj = new ::FK::fk_ProjectBase();
}
fk_ProjectBase::fk_ProjectBase() : dFlg(true)
... | 23.217722 | 79 | 0.619453 | rita0222 |
4170f6aab0a9969bf526cc598c658783e64e525e | 2,681 | cpp | C++ | bsangs/10757_big_integer_calculator/soruce.cpp | clgh0331/Dooda-Study | db24a78abe4848866525d27cd553619fad6442cc | [
"MIT"
] | null | null | null | bsangs/10757_big_integer_calculator/soruce.cpp | clgh0331/Dooda-Study | db24a78abe4848866525d27cd553619fad6442cc | [
"MIT"
] | null | null | null | bsangs/10757_big_integer_calculator/soruce.cpp | clgh0331/Dooda-Study | db24a78abe4848866525d27cd553619fad6442cc | [
"MIT"
] | 1 | 2021-01-06T11:03:27.000Z | 2021-01-06T11:03:27.000Z | #include <stdio.h>
#define BIT_LEN 33220
#define INT_LEN 10003
#define ZERO_ASCII 48
// 편의상 아래 배열들을 Decimal이라고 이름 붙임.
char input_a[INT_LEN], input_b[INT_LEN], int_sum[INT_LEN], int_temp[INT_LEN], int_cpy_temp[INT_LEN];
// 2^33216 의 길이: 10000
bool bit_A[BIT_LEN], bit_B[BIT_LEN], bit_sum[BIT_LEN], bit_temp[BIT_LEN];
... | 25.056075 | 119 | 0.606863 | clgh0331 |
417482e7713ca3355aa06dbdc495220dd5ea9eca | 16,734 | cpp | C++ | src/mode_calc_pca.cpp | ToruNiina/Coffee-mill | 343a6b89f7bc4645d596809aac9009db1c5ec0d8 | [
"MIT"
] | 4 | 2017-12-11T07:26:34.000Z | 2021-02-01T07:33:37.000Z | src/mode_calc_pca.cpp | ToruNiina/Coffee-mill | 343a6b89f7bc4645d596809aac9009db1c5ec0d8 | [
"MIT"
] | null | null | null | src/mode_calc_pca.cpp | ToruNiina/Coffee-mill | 343a6b89f7bc4645d596809aac9009db1c5ec0d8 | [
"MIT"
] | null | null | null | #include "mode_calc_pca.hpp"
#include <mill/util/cmdarg.hpp>
#include <mill/math/Vector.hpp>
// #include <mill/math/EigenSolver.hpp>
#include <mill/traj.hpp>
#include <toml/toml.hpp>
#include <numeric>
#include <Eigen/Dense>
namespace mill
{
const char* mode_calc_pca_usage() noexcept
{
return "usage: mill calc ... | 36.220779 | 171 | 0.537528 | ToruNiina |
4174cda2136a35a36b49e8f306ce01a80d34d5ee | 405 | hpp | C++ | pythran/pythonic/include/operator_/matmul.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 1 | 2018-03-24T00:33:03.000Z | 2018-03-24T00:33:03.000Z | pythran/pythonic/include/operator_/matmul.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/operator_/matmul.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_OPERATOR_MATMUL_HPP
#define PYTHONIC_INCLUDE_OPERATOR_MATMUL_HPP
#include "pythonic/include/utils/functor.hpp"
#include "pythonic/include/numpy/dot.hpp"
PYTHONIC_NS_BEGIN
namespace operator_
{
template <class A, class B>
auto matmul(A const &a, B const &b) -> decltype(numpy::functor::do... | 20.25 | 77 | 0.780247 | SylvainCorlay |
41771cadacb99d784c7423a6a34b15c3693228a1 | 11,833 | hpp | C++ | src/ui/ns_event.hpp | FreeAllegiance/AllegianceDX7 | 3955756dffea8e7e31d3a55fcf6184232b792195 | [
"MIT"
] | 76 | 2015-08-18T19:18:40.000Z | 2022-01-08T12:47:22.000Z | src/ui/ns_event.hpp | StudentAlleg/Allegiance | e91660a471eb4e57e9cea4c743ad43a82f8c7b18 | [
"MIT"
] | 37 | 2015-08-14T22:44:12.000Z | 2020-01-21T01:03:06.000Z | src/ui/ns_event.hpp | StudentAlleg/Allegiance | e91660a471eb4e57e9cea4c743ad43a82f8c7b18 | [
"MIT"
] | 42 | 2015-08-13T23:31:35.000Z | 2022-03-17T02:20:26.000Z |
#pragma once
#include "ui.h"
#include "items.hpp"
class EventToBoolean : public ModifiableBoolean, IEventSink {
TRef<IEventSource> m_pEnableSource;
TRef<IEventSource> m_pDisableSource;
public:
EventToBoolean(const TRef<IEventSource>& pEnableSource, const TRef<IEventSource>& pDisableSource) :
m_p... | 36.297546 | 182 | 0.614891 | FreeAllegiance |
41790b2a6fb59bbbbe7892a8ca43c7ca66880929 | 1,532 | cc | C++ | examples/test_vector.cc | zrui65/toystl | 9b0bafe068d8393c76387ee05a6aefc7bd5e4ba6 | [
"MIT"
] | null | null | null | examples/test_vector.cc | zrui65/toystl | 9b0bafe068d8393c76387ee05a6aefc7bd5e4ba6 | [
"MIT"
] | null | null | null | examples/test_vector.cc | zrui65/toystl | 9b0bafe068d8393c76387ee05a6aefc7bd5e4ba6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <toy_vector.h>
#include <toy_string.h>
using namespace toy;
void printV(const vector<int>& v) {
std::cout << "Scan all: ";
for(size_t i = 0; i < v.size(); i++) {
std::cout << v[i] << " ";
}
std::cout << std::endl;
}
void printVS(const vector<string>& v) {
st... | 20.426667 | 62 | 0.471932 | zrui65 |
41791baf9335806e28f450da0b8e1d9e803c6115 | 2,160 | cpp | C++ | sources/Features/Settings.cpp | MA-School/IndieStudio | 8069c992ccea3ee1dec0a9e8c3929333697ffe46 | [
"MIT"
] | 1 | 2018-02-06T16:07:17.000Z | 2018-02-06T16:07:17.000Z | sources/Features/Settings.cpp | MaximeAubanel/IndieStudio | 8069c992ccea3ee1dec0a9e8c3929333697ffe46 | [
"MIT"
] | null | null | null | sources/Features/Settings.cpp | MaximeAubanel/IndieStudio | 8069c992ccea3ee1dec0a9e8c3929333697ffe46 | [
"MIT"
] | 3 | 2018-02-06T16:07:22.000Z | 2018-07-12T15:02:03.000Z | /*
** Settings.cpp for cpp_indie_studio in /home/aubane_m/tek2/cpp_indie_studio/src
**
** Made by aubane_m
** Login <aubane_m@epitech.net>
**
** Started on Fri May 05 11:17:18 2017 aubane_m
** Last update Thu May 11 20:43:06 2017 sshSupreme
*/
#include "Settings.hpp"
t_arrayFunction tab[] = {
{"BRIGHTNESS", &Set... | 25.411765 | 95 | 0.475463 | MA-School |
417969b2750c99e454eaf072093f0ad059bdf2eb | 8,436 | hxx | C++ | include/nifty/graph/agglo/cluster_policies/node_and_edge_weighted_cluster_policy.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | 38 | 2016-06-29T07:42:50.000Z | 2021-12-09T09:25:25.000Z | include/nifty/graph/agglo/cluster_policies/node_and_edge_weighted_cluster_policy.hxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 62 | 2016-07-27T16:07:53.000Z | 2022-03-30T17:24:36.000Z | include/nifty/graph/agglo/cluster_policies/node_and_edge_weighted_cluster_policy.hxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 20 | 2016-01-25T21:21:52.000Z | 2021-12-09T09:25:16.000Z | #pragma once
#include <functional>
#include "nifty/tools/changable_priority_queue.hxx"
#include "nifty/graph/graph_maps.hxx"
#include "nifty/graph/edge_contraction_graph.hxx"
#include "nifty/graph/agglo/cluster_policies/cluster_policies_common.hxx"
namespace nifty{
namespace graph{
namespace agglo{
template... | 28.40404 | 98 | 0.690849 | konopczynski |
4181d8221d7fc4333f6dd6ce736f05c5d4bbb59d | 546 | cpp | C++ | gtest/array_test.cpp | zhileilei/mcl | f98b635cf7dc86329675aab927d0ce8271745d29 | [
"Apache-2.0"
] | null | null | null | gtest/array_test.cpp | zhileilei/mcl | f98b635cf7dc86329675aab927d0ce8271745d29 | [
"Apache-2.0"
] | null | null | null | gtest/array_test.cpp | zhileilei/mcl | f98b635cf7dc86329675aab927d0ce8271745d29 | [
"Apache-2.0"
] | null | null | null | #include "gtest/gtest.h"
#include "mcl/array.h"
using namespace std;
class ArrayTest : public testing::Test {
protected:
void SetUp() override {}
void TearDown() override {}
};
TEST_F(ArrayTest, array_init) {
MCL_DECL_ARRAY(int, IntArray);
int a[10] = {0, 1, 2, 3};
IntArray arr;
MCL_INI... | 21.84 | 40 | 0.650183 | zhileilei |
4185ae2d3fcaa43318d3b75e45840438bb3344ca | 4,537 | cpp | C++ | Rtos/FreeRtos.cpp | ozanbilici/FreeRtos-Wrapper | f69fa6298b7dde7e132ee2cc1c61468879733236 | [
"MIT"
] | 1 | 2020-07-23T02:57:32.000Z | 2020-07-23T02:57:32.000Z | Rtos/FreeRtos.cpp | ozanbilici/FreeRtosWrapper | f69fa6298b7dde7e132ee2cc1c61468879733236 | [
"MIT"
] | null | null | null | Rtos/FreeRtos.cpp | ozanbilici/FreeRtosWrapper | f69fa6298b7dde7e132ee2cc1c61468879733236 | [
"MIT"
] | null | null | null | /* RTOS header includes ----------------------------------------------------- */
#include "FreeRTOS.h"
#include "task.h"
/* Custom header includes --------------------------------------------------- */
#include "DefaultHandler.hpp"
/* Public functions --------------------------------------------------------- */
... | 35.445313 | 114 | 0.712585 | ozanbilici |
418c063240744626f728db7fe040f7d6d63ccff4 | 4,113 | cpp | C++ | Examples/listbox_inline_widget.cpp | LuisRGameloft/nana-demo | 05e05dbc1ee8eb5d94b31282290dae0c7e2e3620 | [
"BSL-1.0"
] | null | null | null | Examples/listbox_inline_widget.cpp | LuisRGameloft/nana-demo | 05e05dbc1ee8eb5d94b31282290dae0c7e2e3620 | [
"BSL-1.0"
] | null | null | null | Examples/listbox_inline_widget.cpp | LuisRGameloft/nana-demo | 05e05dbc1ee8eb5d94b31282290dae0c7e2e3620 | [
"BSL-1.0"
] | null | null | null | #include <nana/gui/wvl.hpp>
#include <nana/gui/widgets/listbox.hpp>
#include <nana/gui/widgets/button.hpp>
#include <nana/gui/widgets/textbox.hpp>
using namespace nana;
//Creates a textbox and button
//textbox shows the value of the sub item
//button is used to delete the item.
class inline_widget : public listbox::i... | 26.882353 | 89 | 0.690737 | LuisRGameloft |
418f09ee6071db4e9cb2d4a5d55362c495b41a05 | 34,839 | cpp | C++ | Test/Socks5Extender/Socks5Connection.cpp | kareldonk/QuantumGate | c6563b156c628ca0d32534680aa001d4eb820b73 | [
"MIT"
] | 87 | 2018-09-01T05:29:22.000Z | 2022-03-13T17:44:00.000Z | Test/Socks5Extender/Socks5Connection.cpp | kareldonk/QuantumGate | c6563b156c628ca0d32534680aa001d4eb820b73 | [
"MIT"
] | 6 | 2019-01-30T14:48:17.000Z | 2022-03-14T21:10:56.000Z | Test/Socks5Extender/Socks5Connection.cpp | kareldonk/QuantumGate | c6563b156c628ca0d32534680aa001d4eb820b73 | [
"MIT"
] | 16 | 2018-11-25T23:09:47.000Z | 2022-02-01T22:14:11.000Z | // This file is part of the QuantumGate project. For copyright and
// licensing information refer to the license file(s) in the project root.
#include "pch.h"
#include "Socks5Connection.h"
#include "Socks5Extender.h"
#include "Console.h"
#include "Common\Util.h"
#include "Common\Endian.h"
using namespace QuantumGate... | 27.65 | 117 | 0.650363 | kareldonk |
41a0bbcf50f6f84c0d01c47b4d750bccb2344c96 | 10,518 | cpp | C++ | RapidXML/RapidXMLSTD.cpp | Fe-Bell/RapidXML | 5c97748913e2a7f48496ed44fb26bbf797c9d796 | [
"MIT"
] | 1 | 2020-07-25T16:48:44.000Z | 2020-07-25T16:48:44.000Z | RapidXML/RapidXMLSTD.cpp | Fe-Bell/RapidXML | 5c97748913e2a7f48496ed44fb26bbf797c9d796 | [
"MIT"
] | null | null | null | RapidXML/RapidXMLSTD.cpp | Fe-Bell/RapidXML | 5c97748913e2a7f48496ed44fb26bbf797c9d796 | [
"MIT"
] | null | null | null | #include "RapidXMLSTD.hpp"
/**Opens a new XML file
* @param filePath - The path to a file
* @returns A xml file object*/
XMLFile* OpenXMLFile(const std::string& filePath, std::string& error)
{
if (filePath.empty())
return nullptr;
return new XMLFile(filePath.c_str());
}
/**Disposes resources.
* @param doc - A xml... | 23.689189 | 158 | 0.70232 | Fe-Bell |
41a6ba31778479e0e7f3fe68659e2a091f2c3150 | 229 | cpp | C++ | test/snippet/alphabet/nucleotide/dna15_literal.cpp | marehr/nomchop | a88bfb6f5d4a291a71b6b3192eeac81fdc450d43 | [
"CC-BY-4.0",
"CC0-1.0"
] | 1 | 2021-03-01T11:12:56.000Z | 2021-03-01T11:12:56.000Z | test/snippet/alphabet/nucleotide/dna15_literal.cpp | simonsasse/seqan3 | 0ff2e117952743f081735df9956be4c512f4ccba | [
"CC0-1.0",
"CC-BY-4.0"
] | 2 | 2017-05-17T07:16:19.000Z | 2020-02-13T16:10:10.000Z | test/snippet/alphabet/nucleotide/dna15_literal.cpp | simonsasse/seqan3 | 0ff2e117952743f081735df9956be4c512f4ccba | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | #include <seqan3/alphabet/nucleotide/dna15.hpp>
int main()
{
using seqan3::operator""_dna15;
seqan3::dna15_vector foo{"ACGTTA"_dna15};
seqan3::dna15_vector bar = "ACGTTA"_dna15;
auto bax = "ACGTTA"_dna15;
}
| 20.818182 | 47 | 0.681223 | marehr |
41aa31532f15264e9e4aaae6300b86fe61203daf | 1,271 | cpp | C++ | src/burner/win32/image_win32.cpp | tt-arcade/fba-pi | 10407847a98f0d315b05e44f0ecf01824f4558aa | [
"Apache-2.0"
] | null | null | null | src/burner/win32/image_win32.cpp | tt-arcade/fba-pi | 10407847a98f0d315b05e44f0ecf01824f4558aa | [
"Apache-2.0"
] | null | null | null | src/burner/win32/image_win32.cpp | tt-arcade/fba-pi | 10407847a98f0d315b05e44f0ecf01824f4558aa | [
"Apache-2.0"
] | null | null | null | #include "burner.h"
#include "png.h"
HBITMAP ImageToBitmap(HWND hwnd, IMAGE* img)
{
BITMAPINFO bi;
if (hwnd == NULL || img == NULL) {
return NULL;
}
bi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
bi.bmiHeader.biWidth = img->width;
bi.bmiHeader.biHeight = img->height;
bi.bmiHeader.biPlanes = 1;
bi.bmiHeade... | 22.298246 | 87 | 0.690008 | tt-arcade |
41ae35346000aa3a5dde0e5b3804c23cc51ef6f2 | 2,877 | cc | C++ | policies/DIF/EFCP/DTP/RTTEstimator/RTTEstimatorPolicyTCP/RTTEstimatorPolicyTCP.cc | kaleal/RINA | b1cec2a1f6dff4bbf95a967350cd4d533833a1d0 | [
"MIT"
] | null | null | null | policies/DIF/EFCP/DTP/RTTEstimator/RTTEstimatorPolicyTCP/RTTEstimatorPolicyTCP.cc | kaleal/RINA | b1cec2a1f6dff4bbf95a967350cd4d533833a1d0 | [
"MIT"
] | null | null | null | policies/DIF/EFCP/DTP/RTTEstimator/RTTEstimatorPolicyTCP/RTTEstimatorPolicyTCP.cc | kaleal/RINA | b1cec2a1f6dff4bbf95a967350cd4d533833a1d0 | [
"MIT"
] | null | null | null | //
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser 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 distributed in the hope that it wil... | 29.659794 | 78 | 0.562391 | kaleal |
41afbbe09b61398a29b987da3a75bb66ea8ddd89 | 369 | cpp | C++ | cpp-utils/test/fast_hash_tests.cpp | ferd36/sandbox | 37c3f319249d60d92d22535838116427b622978a | [
"MIT"
] | null | null | null | cpp-utils/test/fast_hash_tests.cpp | ferd36/sandbox | 37c3f319249d60d92d22535838116427b622978a | [
"MIT"
] | null | null | null | cpp-utils/test/fast_hash_tests.cpp | ferd36/sandbox | 37c3f319249d60d92d22535838116427b622978a | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <bytes.hpp>
#include <fast_hash.hpp>
using namespace std;
using namespace utils;
void test_fasthash64() {
{
char key[] = "abcdefghijklmnop";
Bytes<size_t,char,true> x(key);
Bytes<size_t,char,false> y(key);
assert(fasthash64(x) == fasthash64(y));
}
}... | 16.772727 | 43 | 0.663957 | ferd36 |
41b2f0d5929a692f45fff5145182f1da46b92cf7 | 1,331 | cc | C++ | src/system/actor-ai-system.cc | emptyland/nyaa | e2092a086869342b14de51c2afc1246500dbf47d | [
"BSD-2-Clause"
] | null | null | null | src/system/actor-ai-system.cc | emptyland/nyaa | e2092a086869342b14de51c2afc1246500dbf47d | [
"BSD-2-Clause"
] | null | null | null | src/system/actor-ai-system.cc | emptyland/nyaa | e2092a086869342b14de51c2afc1246500dbf47d | [
"BSD-2-Clause"
] | null | null | null | #include "system/actor-ai-system.h"
#include "component/zone-component.h"
#include "component/movement-component.h"
#include "component/ai-state-component.h"
#include "component/property-components.h"
#include "game/entity-virtual-db.h"
namespace nyaa {
namespace sys {
void ActorAISystem::Update(com::AIStateComponen... | 31.690476 | 109 | 0.49136 | emptyland |
41b4baac7b5ef2710f51286182e81d7850f7946e | 19,303 | cpp | C++ | WildMagic4/LibFoundation/Containment/Wm4ContBox3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 23 | 2015-08-13T07:36:00.000Z | 2022-01-24T19:00:04.000Z | WildMagic4/LibFoundation/Containment/Wm4ContBox3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | null | null | null | WildMagic4/LibFoundation/Containment/Wm4ContBox3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 6 | 2015-07-06T21:37:31.000Z | 2020-07-01T04:07:50.000Z | // Geometric Tools, LLC
// Copyright (c) 1998-2010
// 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: 4.10.0 (2009/11/18)
#include "Wm4FoundationPCH.h"
#include "Wm4ContBox3.h"... | 36.21576 | 79 | 0.511527 | rms80 |
41ba13e67a83cfad9acf00b053e0b27c52dbae75 | 101,195 | hpp | C++ | boost/graph/distributed/adjacency_list.hpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | 1 | 2021-09-03T10:22:04.000Z | 2021-09-03T10:22:04.000Z | boost/graph/distributed/adjacency_list.hpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | null | null | null | boost/graph/distributed/adjacency_list.hpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2004-2012 The Trustees of Indiana University.
// Copyright (C) 2007 Douglas Gregor
// Use, modification and distribution is subject to 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)
// Authors: Douglas Gregor
//... | 38.3605 | 120 | 0.677039 | thejkane |
41bc7bfefa9ca018cb7057ab55065b979901cae9 | 789 | cpp | C++ | src/cpp/lib/Extras/Utils/nutils.cpp | soonoo/nodegui | 8258cb76e0b031d79e3f19a12613d58ba05602c1 | [
"MIT"
] | 1 | 2021-07-12T16:40:11.000Z | 2021-07-12T16:40:11.000Z | src/cpp/lib/Extras/Utils/nutils.cpp | soonoo/nodegui | 8258cb76e0b031d79e3f19a12613d58ba05602c1 | [
"MIT"
] | null | null | null | src/cpp/lib/Extras/Utils/nutils.cpp | soonoo/nodegui | 8258cb76e0b031d79e3f19a12613d58ba05602c1 | [
"MIT"
] | null | null | null | #include <string>
#include <QWidget>
#include "Extras/Utils/nutils.h"
#include "deps/spdlog/spdlog.h"
YGSize extrautils::measureQtWidget (YGNodeRef node, float width, YGMeasureMode widthMode, float height, YGMeasureMode heightMode){
FlexLayout::NodeContext *ctx = FlexLayout::getNodeContext(node);
if(ctx){
... | 32.875 | 130 | 0.60076 | soonoo |
41bff90cecec7a61d2474e2f15bd3e5f366ccc5c | 351 | hpp | C++ | engine/source/public/core/atl/aligned_buffer.hpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | 12 | 2019-01-02T11:13:19.000Z | 2020-06-02T10:58:20.000Z | engine/source/public/core/atl/aligned_buffer.hpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | null | null | null | engine/source/public/core/atl/aligned_buffer.hpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | 1 | 2020-04-03T11:54:53.000Z | 2020-04-03T11:54:53.000Z | #ifndef CORE_ATL_ALIGNED_BUFFER_HPP_INCLUDE
#define CORE_ATL_ALIGNED_BUFFER_HPP_INCLUDE
#include <core/types.hpp>
namespace anton_engine::atl {
template <usize size, usize alignment>
struct Aligned_Buffer {
alignas(alignment) char buffer[size];
};
} // namespace anton_engine::atl
#endif // !CORE_... | 25.071429 | 46 | 0.769231 | kociap |
41c1dea15c218877e1738c8970efcd8fd6285ecc | 33,044 | cpp | C++ | 140_debug/vcrt_fwd_x64_debug/vcamp140d_app/vcamp140d_app.cpp | majaeger/vcrt-forwarders | 84f0c7a7fd4296ea4642fc357ced6ba549e28467 | [
"MIT"
] | 17 | 2019-05-12T07:42:02.000Z | 2022-01-16T10:50:24.000Z | 140_debug/vcrt_fwd_x64_debug/vcamp140d_app/vcamp140d_app.cpp | majaeger/vcrt-forwarders | 84f0c7a7fd4296ea4642fc357ced6ba549e28467 | [
"MIT"
] | 27 | 2019-05-08T06:01:18.000Z | 2021-12-14T16:41:10.000Z | 140_debug/vcrt_fwd_x64_debug/vcamp140d_app/vcamp140d_app.cpp | majaeger/vcrt-forwarders | 84f0c7a7fd4296ea4642fc357ced6ba549e28467 | [
"MIT"
] | 15 | 2019-07-01T05:07:54.000Z | 2022-01-17T20:27:28.000Z | #pragma comment(linker, "/export:??0_Event@details@Concurrency@@QEAA@AEBV012@@Z=vcamp140d.??0_Event@details@Concurrency@@QEAA@AEBV012@@Z")
#pragma comment(linker, "/export:??0_Event@details@Concurrency@@QEAA@XZ=vcamp140d.??0_Event@details@Concurrency@@QEAA@XZ")
#pragma comment(linker, "/export:??0accelerator@Concurre... | 197.868263 | 589 | 0.841363 | majaeger |
41c280a0597dafb927947ea8f9542122e21bea74 | 514 | hpp | C++ | include/DTConfig.hpp | Raemien/DebrisTweaksQuest | 22c4aa7f372f3c777090e1eff2619280d9c72f15 | [
"MIT"
] | 1 | 2021-01-14T07:38:13.000Z | 2021-01-14T07:38:13.000Z | include/DTConfig.hpp | Raemien/DebrisTweaksQuest | 22c4aa7f372f3c777090e1eff2619280d9c72f15 | [
"MIT"
] | 4 | 2020-12-18T17:32:29.000Z | 2021-09-03T21:28:50.000Z | include/DTConfig.hpp | Raemien/DebrisTweaksQuest | 22c4aa7f372f3c777090e1eff2619280d9c72f15 | [
"MIT"
] | 2 | 2020-12-18T17:34:04.000Z | 2020-12-28T00:17:51.000Z | #include "modloader/shared/modloader.hpp"
#include "beatsaber-hook/shared/utils/logging.hpp"
#include "beatsaber-hook/shared/config/config-utils.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-functions.hpp"
struct Config_t
{
bool enabled;
bool overrideLifetime;
bool enablePCDebris;
bool enableGravi... | 23.363636 | 59 | 0.749027 | Raemien |
41c30f68ec9df793f24955802f03b3eeb6ed562a | 26,503 | hpp | C++ | external/include/type_safe/reference.hpp | fesily/tinyrefl | b9dee7cb8e1409cd10b537218b91e97952f4bd66 | [
"MIT"
] | null | null | null | external/include/type_safe/reference.hpp | fesily/tinyrefl | b9dee7cb8e1409cd10b537218b91e97952f4bd66 | [
"MIT"
] | null | null | null | external/include/type_safe/reference.hpp | fesily/tinyrefl | b9dee7cb8e1409cd10b537218b91e97952f4bd66 | [
"MIT"
] | null | null | null | // Copyright (C) 2016-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef TYPE_SAFE_REFERENCE_HPP_INCLUDED
#define TYPE_SAFE_REFERENCE_HPP_INCLUDED
#include <new>
#include <type_traits>
... | 37.275668 | 138 | 0.595291 | fesily |
41cf551e3a509419e5d2bd4016cbede0005483ca | 1,066 | cpp | C++ | SerialPrograms/Source/Kernels/Waterfill/Kernels_Waterfill_Core_64x4_Default.cpp | Gin890/Arduino-Source | 9047ff584010d8ddc3558068874f16fb3c7bb46d | [
"MIT"
] | 1 | 2022-03-29T18:51:49.000Z | 2022-03-29T18:51:49.000Z | SerialPrograms/Source/Kernels/Waterfill/Kernels_Waterfill_Core_64x4_Default.cpp | Gin890/Arduino-Source | 9047ff584010d8ddc3558068874f16fb3c7bb46d | [
"MIT"
] | null | null | null | SerialPrograms/Source/Kernels/Waterfill/Kernels_Waterfill_Core_64x4_Default.cpp | Gin890/Arduino-Source | 9047ff584010d8ddc3558068874f16fb3c7bb46d | [
"MIT"
] | null | null | null | /* Waterfill Core (64-bit integer)
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include "Kernels_Waterfill_Session.tpp"
#include "Kernels_Waterfill_Routines.h"
#include "Kernels_Waterfill_Core_64x4_Default.h"
namespace PokemonAutomation{
namespace Kernels{
namespace Waterfill{... | 26 | 112 | 0.738274 | Gin890 |
41d911022ab1e5039e092ad6faabb4f033359e01 | 14,508 | cpp | C++ | src/NMEA-UDP-Sender.cpp | mayopan/NMEA-UDP-Sender | 5aa30ac4236171def04c67fb7e27f1ab0b55b179 | [
"MIT"
] | 3 | 2019-09-07T18:22:45.000Z | 2020-06-02T10:39:26.000Z | src/NMEA-UDP-Sender.cpp | mayopan/NMEA-UDP-Sender | 5aa30ac4236171def04c67fb7e27f1ab0b55b179 | [
"MIT"
] | null | null | null | src/NMEA-UDP-Sender.cpp | mayopan/NMEA-UDP-Sender | 5aa30ac4236171def04c67fb7e27f1ab0b55b179 | [
"MIT"
] | null | null | null | /*
Reading position data from Ublox GPS module via UBX binary commands using UART @115200 baud
...based on Sparkfun example (Thank you very much!!)
Reading Bearing direction from HMC5883L (it may be on the same GPS module for drone like this https://ja.aliexpress.com/item/32860597703.html)
And send them after nm... | 30.162162 | 144 | 0.639165 | mayopan |
41dd742e89cd0fd425d5835691e41bc704d99ecb | 826 | cpp | C++ | Rectangle.cpp | whitesoundcl/Avoid-the-blocks | 1825a254ba957348a3d62cbe0e4d1b65b9ebe04b | [
"MIT"
] | null | null | null | Rectangle.cpp | whitesoundcl/Avoid-the-blocks | 1825a254ba957348a3d62cbe0e4d1b65b9ebe04b | [
"MIT"
] | null | null | null | Rectangle.cpp | whitesoundcl/Avoid-the-blocks | 1825a254ba957348a3d62cbe0e4d1b65b9ebe04b | [
"MIT"
] | null | null | null | #include "Rectangle.h"
Rectangle::Rectangle()
{
set(0, 0, 1, 1);
}
Rectangle::Rectangle(byte x, byte y, byte width, byte height)
{
set(x, y, width, height);
}
void Rectangle::set(byte x, byte y, byte width, byte height)
{
_x = x;
_y = y;
_width = width;
_height = height;
}
void Rectangle::setX(byte x)
{... | 12.707692 | 61 | 0.57385 | whitesoundcl |
41dd7656ae28c12484410c51fadf3bb1e04b0318 | 815 | hpp | C++ | shared_model/backend/protobuf/query_responses/proto_block_response.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 1,467 | 2016-10-25T12:27:19.000Z | 2022-03-28T04:32:05.000Z | shared_model/backend/protobuf/query_responses/proto_block_response.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 2,366 | 2016-10-25T10:07:57.000Z | 2022-03-31T22:03:24.000Z | shared_model/backend/protobuf/query_responses/proto_block_response.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 662 | 2016-10-26T04:41:22.000Z | 2022-03-31T04:15:02.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_SHARED_MODEL_PROTO_BLOCK_RESPONSE_HPP
#define IROHA_SHARED_MODEL_PROTO_BLOCK_RESPONSE_HPP
#include "interfaces/query_responses/block_response.hpp"
#include "backend/protobuf/block.hpp"
#include "qry_res... | 25.46875 | 69 | 0.746012 | akshatkarani |
41e5cc46c6ccdc382c1a92df8ca40bd8a86a95ec | 385 | cpp | C++ | testfiles/c++/test5.cpp | eoswald/hdb | fb5987b72a81c204ea1300757a32d0657913622d | [
"MIT"
] | 1 | 2015-02-27T14:48:15.000Z | 2015-02-27T14:48:15.000Z | testfiles/c++/test5.cpp | eoswald/hdb | fb5987b72a81c204ea1300757a32d0657913622d | [
"MIT"
] | null | null | null | testfiles/c++/test5.cpp | eoswald/hdb | fb5987b72a81c204ea1300757a32d0657913622d | [
"MIT"
] | null | null | null | #include<vector>
#include<iostream>
#include<cmath>
int lcm(int x, int y){
float lower, higher;
if (x<y){
lower=x;
higher=y;
}
else{
higher=x;
lower=y;
}
std::cout<<higher<<" "<<lower<<std::endl;
for (int a=ceil(higher/lower)*lower;a<higher*lower;a+=lower){
if (floor(a/higher)*higher==a)return a;
... | 15.4 | 62 | 0.615584 | eoswald |
41e772e7dbe126bc9a87ecf5fb7e40fb3ab50558 | 383 | cpp | C++ | C++ Projects/DeGuzmanIAN_Activity1/Slide_15-1.cpp | metaeatscake/schoolfiles | 2420242d43c6f5d27585b73bb3e9903de8e3e5a3 | [
"Unlicense"
] | null | null | null | C++ Projects/DeGuzmanIAN_Activity1/Slide_15-1.cpp | metaeatscake/schoolfiles | 2420242d43c6f5d27585b73bb3e9903de8e3e5a3 | [
"Unlicense"
] | 1 | 2020-03-27T07:18:56.000Z | 2020-03-27T07:27:22.000Z | C++ Projects/DeGuzmanIAN_Activity1/Slide_15-1.cpp | metaeatscake/schoolfiles | 2420242d43c6f5d27585b73bb3e9903de8e3e5a3 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
main()
{
int varA, varB, varC, varD;
cout << "Enter a value for varA: ";
cin >> varA ;
cout << "Enter a value for varB: ";
cin >> varB ;
varC = pow(varA, 2) + pow(varB, 2) ;
varD = varA - 10 ;
cout << "\nValue of VarC (A^2 + B^2): ... | 19.15 | 50 | 0.527415 | metaeatscake |
41ee5fd65ad59609416328f4299a9989f515436f | 831 | cpp | C++ | imgwriter.cpp | eolandro/AbsMachines | b726e65863493a099bc30d72c991969c8650a4c6 | [
"Unlicense"
] | null | null | null | imgwriter.cpp | eolandro/AbsMachines | b726e65863493a099bc30d72c991969c8650a4c6 | [
"Unlicense"
] | null | null | null | imgwriter.cpp | eolandro/AbsMachines | b726e65863493a099bc30d72c991969c8650a4c6 | [
"Unlicense"
] | null | null | null | #include "imgwriter.hpp"
using namespace std;
bool ImgWriter::savePlainPBM(const char * filename, int * src, int len, int width, int height){
int lndata = width * height;
if (width == 0){
return false;
}
if (height == 0){
return false;
}
char *data = new char[ lndata ]{'0'};
int i = 0;
for (i = 0;... | 15.109091 | 95 | 0.478941 | eolandro |
41f1b7b2e2542378bdaef7be18b0dd7ceecd3c77 | 6,267 | cpp | C++ | pwiz/data/vendor_readers/Mobilion/ChromatogramList_Mobilion.cpp | vagisha/pwiz | aa65186bf863cdebde3d15c293d137085365bead | [
"Apache-2.0"
] | null | null | null | pwiz/data/vendor_readers/Mobilion/ChromatogramList_Mobilion.cpp | vagisha/pwiz | aa65186bf863cdebde3d15c293d137085365bead | [
"Apache-2.0"
] | null | null | null | pwiz/data/vendor_readers/Mobilion/ChromatogramList_Mobilion.cpp | vagisha/pwiz | aa65186bf863cdebde3d15c293d137085365bead | [
"Apache-2.0"
] | null | null | null | //
// $Id$
//
//
// Original author: Matt Chambers <matt.chambers .@. vanderbilt.edu>
//
// Copyright 2009 Vanderbilt University - Nashville, TN 37232
//
// 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 t... | 32.811518 | 130 | 0.698899 | vagisha |
41f377a4ddda2421c9c3861c300b919519c05bb1 | 2,417 | cpp | C++ | src/Script/json/json_windowConfig.cpp | FraMecca/Coccode | e302c400e0bff40859c65ccefac923133c770861 | [
"BSD-3-Clause"
] | null | null | null | src/Script/json/json_windowConfig.cpp | FraMecca/Coccode | e302c400e0bff40859c65ccefac923133c770861 | [
"BSD-3-Clause"
] | null | null | null | src/Script/json/json_windowConfig.cpp | FraMecca/Coccode | e302c400e0bff40859c65ccefac923133c770861 | [
"BSD-3-Clause"
] | null | null | null | /*
* =================== json_windowConfig.cpp =====================
* -- tpr --
* CREATE -- 2019.08.08
* MODIFY --
* ----------------------------------------------------------
*/
#include "pch.h"
//----------... | 30.594937 | 86 | 0.468763 | FraMecca |
41f7a0792b633a2115d16099d86135238fe2d027 | 1,446 | cpp | C++ | galaga/Audio.cpp | lukka/CppOpenGLWebAssemblyCMake | 1e2f161812f808d4467cec7cfd8c2e7181af0a75 | [
"MIT"
] | 59 | 2018-06-10T03:29:03.000Z | 2022-01-19T18:01:05.000Z | galaga/Audio.cpp | BlueSolei/CppOpenGLWebAssemblyCMake | 4da1c47dd3548aa9595ee8d78b5c01c94b217dad | [
"MIT"
] | 3 | 2019-05-04T10:58:19.000Z | 2020-05-15T03:08:20.000Z | galaga/Audio.cpp | BlueSolei/CppOpenGLWebAssemblyCMake | 4da1c47dd3548aa9595ee8d78b5c01c94b217dad | [
"MIT"
] | 7 | 2018-07-02T22:31:07.000Z | 2021-05-10T12:07:26.000Z | #include "Audio.h"
#include "GalagaMachine.h"
namespace Galaga
{
Audio::Audio(GalagaMachine& galagaMachine)
: _galagaMachine(galagaMachine), _buffer()
{
_timer = new Emulator::CTimer(
"UpdateSound", galagaMachine.scheduler,
[this](int64_t, int64_t currentTime) { update(currentTime); }... | 27.807692 | 81 | 0.596127 | lukka |
5102930456c50bbedbe9d4f92563fcc7f6847cc0 | 3,625 | cpp | C++ | libraries/chain/settings_evaluator.cpp | EDCBlockchain/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | 12 | 2019-10-31T13:24:21.000Z | 2021-12-29T22:02:22.000Z | libraries/chain/settings_evaluator.cpp | DONOVA28/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | null | null | null | libraries/chain/settings_evaluator.cpp | DONOVA28/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | 11 | 2019-07-24T12:46:29.000Z | 2021-11-27T04:41:48.000Z | #include <graphene/chain/settings_evaluator.hpp>
#include <graphene/chain/settings_object.hpp>
#include <graphene/chain/database.hpp>
#include <graphene/chain/exceptions.hpp>
#include <graphene/chain/hardfork.hpp>
#include <iostream>
namespace graphene { namespace chain {
void_result settings_evaluator::do_evaluate(... | 33.878505 | 104 | 0.726345 | EDCBlockchain |
eee1a1fc77e8f8711c00a657a852e5f6c0f0d8f2 | 16,278 | cpp | C++ | kopenid.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | null | null | null | kopenid.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | null | null | null | kopenid.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | 1 | 2021-08-20T16:15:01.000Z | 2021-08-20T16:15:01.000Z | /*
//
// DEKAF(tm): Lighter, Faster, Smarter(tm)
//
// Copyright (c) 2019, Ridgeware, Inc.
//
// +-------------------------------------------------------------------------+
// | /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\|
// |/+------------------------------------------------------... | 30.483146 | 133 | 0.509399 | ridgeware |
eee1aedf05b4cc83c8a2e31ca7fa9689cea935df | 56 | hpp | C++ | src/boost_asio_posix_basic_stream_descriptor.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_asio_posix_basic_stream_descriptor.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_asio_posix_basic_stream_descriptor.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/asio/posix/basic_stream_descriptor.hpp>
| 28 | 55 | 0.839286 | miathedev |
eee3b1c1f89b4fe7d83a8c261af5b35f2f36421b | 518 | hpp | C++ | src/processor/Reader.hpp | gregorgrisza/eir | 654d9377bb6aae004278b03c6482e545791d3e50 | [
"Unlicense"
] | null | null | null | src/processor/Reader.hpp | gregorgrisza/eir | 654d9377bb6aae004278b03c6482e545791d3e50 | [
"Unlicense"
] | null | null | null | src/processor/Reader.hpp | gregorgrisza/eir | 654d9377bb6aae004278b03c6482e545791d3e50 | [
"Unlicense"
] | null | null | null | #ifndef READER_H
#define READER_H
#include <fstream>
#include "IntentDefinition.hpp"
/**
* @brief Learn data reader.
*/
class Reader {
public:
/**
* @brief Read learn data from JSON
*
* @param file Path to file.
* @return std::vector<IntentDefinition>
*/
... | 20.72 | 114 | 0.606178 | gregorgrisza |
eee634c6eadde9d7fc70df9da319e10a62aa4ff3 | 2,660 | hh | C++ | include/cml/MilRabSafePrimeGenerator.hh | LazyMechanic/cml | b99b3417d2196e741ed01256618f61c9715d252a | [
"MIT"
] | null | null | null | include/cml/MilRabSafePrimeGenerator.hh | LazyMechanic/cml | b99b3417d2196e741ed01256618f61c9715d252a | [
"MIT"
] | null | null | null | include/cml/MilRabSafePrimeGenerator.hh | LazyMechanic/cml | b99b3417d2196e741ed01256618f61c9715d252a | [
"MIT"
] | null | null | null | #pragma once
#include "Algorithms.hh"
#include "ExtendedContainer.hh"
#include "IsPrimeGenerator.hh"
#include "IsRandomGenerator.hh"
#include "PrimeGenerator.hh"
namespace cml {
template <class PrimeGeneratorType,
class RandomGeneratorType,
typename ResultType = typename ExtendedContainer<typenam... | 36.438356 | 116 | 0.734211 | LazyMechanic |
eee6836f7efb2eeacc01b5eaf91c03a27ca21424 | 6,205 | cpp | C++ | source/solution_zoo/common/xproto_plugins/vioplugin/src/vioplugin/vioplugin.cpp | HorizonRobotics-Platform/AI-EXPRESS | 413206d88dae1fbd465ced4d60b2a1769d15c171 | [
"BSD-2-Clause"
] | 98 | 2020-09-11T13:52:44.000Z | 2022-03-23T11:52:02.000Z | source/solution_zoo/common/xproto_plugins/vioplugin/src/vioplugin/vioplugin.cpp | HorizonRobotics-Platform/ai-express | 413206d88dae1fbd465ced4d60b2a1769d15c171 | [
"BSD-2-Clause"
] | 8 | 2020-10-19T14:23:30.000Z | 2022-03-16T01:00:07.000Z | source/solution_zoo/common/xproto_plugins/vioplugin/src/vioplugin/vioplugin.cpp | HorizonRobotics-Platform/AI-EXPRESS | 413206d88dae1fbd465ced4d60b2a1769d15c171 | [
"BSD-2-Clause"
] | 28 | 2020-09-17T14:20:35.000Z | 2022-01-10T16:26:00.000Z | /*
* @Description: implement of vioplugin
* @Author: fei.cheng@horizon.ai
* @Date: 2019-08-26 16:17:25
* @Author: songshan.gong@horizon.ai
* @Date: 2019-09-26 16:17:25
* @LastEditors: hao.tian@horizon.ai
* @LastEditTime: 2019-10-16 15:35:08
* @Copyright 2017~2019 Horizon Robotics, Inc.
*/
#include <fstream>
#i... | 27.214912 | 79 | 0.633683 | HorizonRobotics-Platform |
eee73e31e7093769fa81edc81f9ea39b497d2693 | 5,860 | cpp | C++ | Angel/Infrastructure/Vector3.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | 171 | 2015-01-08T10:35:56.000Z | 2021-07-03T12:35:10.000Z | Angel/Infrastructure/Vector3.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | 11 | 2015-01-30T05:30:54.000Z | 2017-04-08T23:34:33.000Z | Angel/Infrastructure/Vector3.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | 59 | 2015-02-01T03:43:00.000Z | 2020-12-01T02:08:57.000Z | //////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2008-2014, Shane Liesegang
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// *... | 26.880734 | 154 | 0.640444 | Tifox |
eee866d78fe74393fa8aaa2f76dae150e1cbaddf | 1,853 | cpp | C++ | C++ framework/layers/pooling.cpp | hdieset/approximate_DNN_framework | a22d88cf6378288c57282aec06357f7ff2727a74 | [
"MIT"
] | 1 | 2020-10-20T07:27:04.000Z | 2020-10-20T07:27:04.000Z | C++ framework/layers/pooling.cpp | hdieset/approximate_DNN_framework | a22d88cf6378288c57282aec06357f7ff2727a74 | [
"MIT"
] | null | null | null | C++ framework/layers/pooling.cpp | hdieset/approximate_DNN_framework | a22d88cf6378288c57282aec06357f7ff2727a74 | [
"MIT"
] | null | null | null | #ifndef pooling_cpp
#define pooling_cpp
#include <cmath>
#include "pooling.hpp"
template <typename T>
MaxPool2D<T>::MaxPool2D(int channels, int input_height, int input_width, int kernel_size, int stride)
{
this->channels = channels;
this->kernel_size = kernel_size;
this->stride = stride;
this->inpu... | 30.883333 | 101 | 0.6136 | hdieset |
eeebb7f88ccd1277771b839d8351e80eff742a76 | 560 | hpp | C++ | examples/containers/shape_painter.hpp | derpda/yomm2 | 07a1b6b20604c6867e12d2886af8730cfa8c0d2e | [
"BSL-1.0"
] | null | null | null | examples/containers/shape_painter.hpp | derpda/yomm2 | 07a1b6b20604c6867e12d2886af8730cfa8c0d2e | [
"BSL-1.0"
] | null | null | null | examples/containers/shape_painter.hpp | derpda/yomm2 | 07a1b6b20604c6867e12d2886af8730cfa8c0d2e | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2020 Jean-Louis Leroy
// 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)
// This exmaple is based on sample code provided by Github user matpen in
// https://github.com/jll63/yomm2/issues/7
#ifndef... | 22.4 | 75 | 0.751786 | derpda |
eeec418b85c2c7fdce17af3abda72f5cbfb9f8d1 | 8,692 | cpp | C++ | yuv420sp.cpp | yszheda/rgb2yuv-neon | b834da064ed32a08cedc1e7d122dc4fe3df2e22c | [
"MIT"
] | 22 | 2018-01-31T08:33:34.000Z | 2022-03-04T06:49:51.000Z | yuv420sp.cpp | yszheda/rgb2yuv-neon | b834da064ed32a08cedc1e7d122dc4fe3df2e22c | [
"MIT"
] | 1 | 2018-05-02T06:49:25.000Z | 2018-05-02T06:49:25.000Z | yuv420sp.cpp | yszheda/rgb2yuv-neon | b834da064ed32a08cedc1e7d122dc4fe3df2e22c | [
"MIT"
] | 13 | 2018-04-30T14:51:46.000Z | 2021-05-24T07:16:35.000Z | /*
* =====================================================================================
*
* Filename: yuv420sp.cpp
*
* Description:
*
* Version: 1.0
* Created: 2017年06月20日 10时46分08秒
* Revision: none
* Compiler: gcc
*
* Author: Shuai YUAN (),
* Organizat... | 37.465517 | 197 | 0.464335 | yszheda |
eef073a197ab40a473fffaac879f413491988748 | 4,165 | cpp | C++ | src/ui/Windows/PWPListEntries.cpp | blare-ski/pwsafe | bad5eb4dfefad852e897370c9a0930068e0220fb | [
"Artistic-2.0"
] | 1 | 2020-11-19T09:01:29.000Z | 2020-11-19T09:01:29.000Z | src/ui/Windows/PWPListEntries.cpp | blare-ski/pwsafe | bad5eb4dfefad852e897370c9a0930068e0220fb | [
"Artistic-2.0"
] | 1 | 2020-05-30T15:31:29.000Z | 2020-05-31T05:14:15.000Z | src/ui/Windows/PWPListEntries.cpp | blare-ski/pwsafe | bad5eb4dfefad852e897370c9a0930068e0220fb | [
"Artistic-2.0"
] | 3 | 2020-06-15T18:03:43.000Z | 2020-06-18T10:42:42.000Z | /*
* Copyright (c) 2003-2020 Rony Shapiro <ronys@pwsafe.org>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
// PWPListEntries.cpp... | 28.333333 | 79 | 0.728932 | blare-ski |
eef321d2d6230ebe02fccfd1b78ed7ce5b74fdda | 9,724 | cpp | C++ | src/main.cpp | gerner/cvc | 20fefae422d8e04848e5b4e64d3eeb6e3c182f86 | [
"MIT"
] | null | null | null | src/main.cpp | gerner/cvc | 20fefae422d8e04848e5b4e64d3eeb6e3c182f86 | [
"MIT"
] | null | null | null | src/main.cpp | gerner/cvc | 20fefae422d8e04848e5b4e64d3eeb6e3c182f86 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <memory>
#include <random>
#include <vector>
#include <unordered_map>
#include <deque>
#include <chrono>
#include "core.h"
#include "decision_engine.h"
#include "action_factories.h"
#include "sarsa/sarsa_agent.h"
#include "sarsa/sarsa_learner.h"
#include "sarsa/sarsa_action_factories.h"
#in... | 30.482759 | 123 | 0.647573 | gerner |
eef351f10f9eeabf9a1f11affb9f697bdca8b275 | 727 | cpp | C++ | C++/No.322 Coin Change.cpp | YC-Qiu/MyLeetCodeRepo | f8fd6e28572d5b7ab938bbc1239608d1ebfbb9df | [
"MIT"
] | 1 | 2020-12-21T07:35:31.000Z | 2020-12-21T07:35:31.000Z | C++/No.322 Coin Change.cpp | YC-Qiu/MyLeetCodeRepo | f8fd6e28572d5b7ab938bbc1239608d1ebfbb9df | [
"MIT"
] | null | null | null | C++/No.322 Coin Change.cpp | YC-Qiu/MyLeetCodeRepo | f8fd6e28572d5b7ab938bbc1239608d1ebfbb9df | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<functional>
#include<stack>
#include<queue>
#include<cstdlib>
#include<deque>
using namespace std;
class Solution {
public:
int coinChange(vector<int>& coins, int amount) {
vector<int> dp (amount + 1,-1);
for (int c :... | 25.964286 | 61 | 0.514443 | YC-Qiu |
eef6ae47d4241976b70cfff53eea8deee6f86525 | 3,198 | hpp | C++ | source/solution_zoo/xstream/methods/snapshotmethod/include/SnapShotMethod/snapshot_data_type/snapshot_data_type.hpp | HorizonRobotics-Platform/AI-EXPRESS | 413206d88dae1fbd465ced4d60b2a1769d15c171 | [
"BSD-2-Clause"
] | 98 | 2020-09-11T13:52:44.000Z | 2022-03-23T11:52:02.000Z | source/solution_zoo/xstream/methods/snapshotmethod/include/SnapShotMethod/snapshot_data_type/snapshot_data_type.hpp | HorizonRobotics-Platform/ai-express | 413206d88dae1fbd465ced4d60b2a1769d15c171 | [
"BSD-2-Clause"
] | 8 | 2020-10-19T14:23:30.000Z | 2022-03-16T01:00:07.000Z | source/solution_zoo/xstream/methods/snapshotmethod/include/SnapShotMethod/snapshot_data_type/snapshot_data_type.hpp | HorizonRobotics-Platform/AI-EXPRESS | 413206d88dae1fbd465ced4d60b2a1769d15c171 | [
"BSD-2-Clause"
] | 28 | 2020-09-17T14:20:35.000Z | 2022-01-10T16:26:00.000Z | /**
* Copyright (c) 2018 Horizon Robotics. All rights reserved.
* @brief snapshot_data_type header
* @author chao.yang
* @email chao01.yang@horizon.ai
* @version 0.0.16
* @date 2019.04.22
*/
#ifndef SNAPSHOTMETHOD_SNAPSHOT_DATA_TYPE_SNAPSHOT_DATA_TYPE_HPP_
#define SNAPSHOTMETHOD_SNAPSHOT_DATA_... | 31.352941 | 77 | 0.722014 | HorizonRobotics-Platform |
eef97a5eb88f2566af89426e28ef38516ba9fb61 | 11,253 | cpp | C++ | lib/Crypto/encryptrequest.cpp | inzanity/sailfish-secrets | aecaf06f6766029b97d47c1c74bdf7e2ccba5bfe | [
"BSD-3-Clause"
] | null | null | null | lib/Crypto/encryptrequest.cpp | inzanity/sailfish-secrets | aecaf06f6766029b97d47c1c74bdf7e2ccba5bfe | [
"BSD-3-Clause"
] | null | null | null | lib/Crypto/encryptrequest.cpp | inzanity/sailfish-secrets | aecaf06f6766029b97d47c1c74bdf7e2ccba5bfe | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2018 Jolla Ltd.
* Contact: Chris Adams <chris.adams@jollamobile.com>
* All rights reserved.
* BSD 3-Clause License, see LICENSE.
*/
#include "Crypto/encryptrequest.h"
#include "Crypto/encryptrequest_p.h"
#include "Crypto/cryptomanager.h"
#include "Crypto/cryptomanager_p.h"
#include "Crypto/ser... | 30.168901 | 121 | 0.637874 | inzanity |
e10370d64d81b014a340b68bd520dee4d683c354 | 1,599 | cpp | C++ | src/tdi_target.cpp | weiqiand/tdi | 6a60998acc91933b3526bf88535da2fddb962297 | [
"Apache-2.0"
] | null | null | null | src/tdi_target.cpp | weiqiand/tdi | 6a60998acc91933b3526bf88535da2fddb962297 | [
"Apache-2.0"
] | null | null | null | src/tdi_target.cpp | weiqiand/tdi | 6a60998acc91933b3526bf88535da2fddb962297 | [
"Apache-2.0"
] | 1 | 2022-03-14T04:33:13.000Z | 2022-03-14T04:33:13.000Z | /*
* Copyright(c) 2021 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this software except as stipulated in 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 ag... | 27.568966 | 84 | 0.716698 | weiqiand |
e108974083ea2b5852b24fb61466f340f42d8bbc | 758 | cpp | C++ | heap/1046-last-stone-weight.cpp | geyixin/awesome-Leetcode | 488cb477beeaa6fa7e65950615bfafa899eed3a3 | [
"MIT"
] | 1 | 2020-04-10T05:05:50.000Z | 2020-04-10T05:05:50.000Z | heap/1046-last-stone-weight.cpp | geyixin/awesome-Leetcode | 488cb477beeaa6fa7e65950615bfafa899eed3a3 | [
"MIT"
] | null | null | null | heap/1046-last-stone-weight.cpp | geyixin/awesome-Leetcode | 488cb477beeaa6fa7e65950615bfafa899eed3a3 | [
"MIT"
] | null | null | null | /*
* @Author: Eashin
* @Date: 2020-06-06 11:39:52
* @LastEditors: Eashin
* @LastEditTime: 2020-06-06 11:45:32
* @Description:
* @FilePath: /heap/1046-last-stone-weight.cpp
*/
#include <iostream>
#include <vector>
#include <queue>
using namespace std;
class Solution {
public:
int lastStoneWeight(vector<i... | 22.969697 | 57 | 0.551451 | geyixin |
e10abfc322127348d138e995352695159cf6fa09 | 1,865 | cpp | C++ | src/Progress.cpp | cdcseacave/HDRView | b5f68a51cd7afaf3cb066ed94b3ebcf947116b33 | [
"MIT"
] | 21 | 2019-09-20T20:26:28.000Z | 2022-03-22T02:36:48.000Z | src/Progress.cpp | ikrima/hdrview | 8436cf9dc8973b13347c187dfa7152d15d5cfc45 | [
"MIT"
] | 4 | 2021-08-24T07:00:25.000Z | 2021-10-07T13:44:36.000Z | src/Progress.cpp | ikrima/hdrview | 8436cf9dc8973b13347c187dfa7152d15d5cfc45 | [
"MIT"
] | 7 | 2020-03-30T04:20:03.000Z | 2022-02-22T13:57:39.000Z | //
// Copyright (C) Wojciech Jarosz <wjarosz@gmail.com>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can
// be found in the LICENSE.txt file.
//
#include "Progress.h"
#include <iostream>
AtomicProgress::AtomicProgress(bool createState, float totalPercentage) :
m_numSteps(1... | 25.547945 | 92 | 0.765147 | cdcseacave |
e10b0da750dad80e1d20b69d2a23f8c25e5d700a | 1,537 | hpp | C++ | Nana.Cpp03/include/nana/gui/detail/timer_trigger.hpp | gfannes/nana | 3b8d33f9a98579684ea0440b6952deabe61bd978 | [
"BSL-1.0"
] | 1 | 2018-02-09T21:25:13.000Z | 2018-02-09T21:25:13.000Z | Nana.Cpp03/include/nana/gui/detail/timer_trigger.hpp | gfannes/nana | 3b8d33f9a98579684ea0440b6952deabe61bd978 | [
"BSL-1.0"
] | null | null | null | Nana.Cpp03/include/nana/gui/detail/timer_trigger.hpp | gfannes/nana | 3b8d33f9a98579684ea0440b6952deabe61bd978 | [
"BSL-1.0"
] | null | null | null | /*
* A Timer Trigger Implementation
* Copyright(C) 2003-2013 Jinhao(cnjinhao@hotmail.com)
*
* 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)
*
* @file: nana/gui/detail/timer_trigger.hpp
* @description:
* ... | 27.446429 | 98 | 0.783995 | gfannes |
e111a0e54e8f40a6fa3ec82a13b8e0a9567f5653 | 15,597 | cpp | C++ | source/EAStreamMemory.cpp | kitsilanosoftware/EAIO | bb739e0258efb653703e911423772e9994ac2dfa | [
"BSD-3-Clause"
] | 1 | 2016-11-09T18:45:52.000Z | 2016-11-09T18:45:52.000Z | source/EAStreamMemory.cpp | kitsilanosoftware/EAIO | bb739e0258efb653703e911423772e9994ac2dfa | [
"BSD-3-Clause"
] | null | null | null | source/EAStreamMemory.cpp | kitsilanosoftware/EAIO | bb739e0258efb653703e911423772e9994ac2dfa | [
"BSD-3-Clause"
] | 2 | 2016-10-22T17:02:33.000Z | 2021-11-25T14:22:48.000Z | /*
Copyright (C) 2009-2010 Electronic Arts, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions a... | 29.098881 | 156 | 0.609156 | kitsilanosoftware |
e1149da4b4fe46a3725f627b22c7695f3b0018fc | 1,578 | cpp | C++ | external/globjects-0.5.0/source/globjects/source/implementations/TextureStorageImplementation_DirectStateAccessEXT.cpp | steppobeck/rgbd-recon | 171a8336c8e3ba52a1b187b73544338fdd3c9285 | [
"MIT"
] | 18 | 2016-09-03T05:12:25.000Z | 2022-02-23T15:52:33.000Z | external/globjects-0.5.0/source/globjects/source/implementations/TextureStorageImplementation_DirectStateAccessEXT.cpp | 3d-scan/rgbd-recon | c4a5614eaa55dd93c74da70d6fb3d813d74f2903 | [
"MIT"
] | 1 | 2016-05-04T09:06:29.000Z | 2016-05-04T09:06:29.000Z | external/globjects-0.5.0/source/globjects/source/implementations/TextureStorageImplementation_DirectStateAccessEXT.cpp | 3d-scan/rgbd-recon | c4a5614eaa55dd93c74da70d6fb3d813d74f2903 | [
"MIT"
] | 7 | 2016-04-20T13:58:50.000Z | 2018-07-09T15:47:26.000Z |
#include "TextureStorageImplementation_DirectStateAccessEXT.h"
#include <glm/gtc/type_ptr.hpp>
#include <glbinding/gl/enum.h>
#include <globjects/globjects.h>
using namespace gl;
namespace globjects {
TextureStorageImplementation_DirectStateAccessEXT::TextureStorageImplementation_DirectStateAccessEXT()
{
}
Text... | 36.697674 | 201 | 0.799747 | steppobeck |
e116f427f339b9fe3291a0e887882f00662ca4f3 | 6,858 | cpp | C++ | live555/testProgs/playSIP.cpp | SQZhangOwO/videoMonitoring | d0c5890dc161ad13e84d597faed3ef28ad171645 | [
"MIT"
] | 1 | 2020-05-13T19:04:11.000Z | 2020-05-13T19:04:11.000Z | live555/testProgs/playSIP.cpp | SQZhangOwO/videoMonitoring | d0c5890dc161ad13e84d597faed3ef28ad171645 | [
"MIT"
] | 1 | 2021-06-11T06:11:22.000Z | 2021-06-11T06:11:22.000Z | live555/testProgs/playSIP.cpp | SQZhangOwO/videoMonitoring | d0c5890dc161ad13e84d597faed3ef28ad171645 | [
"MIT"
] | 1 | 2018-03-12T14:18:12.000Z | 2018-03-12T14:18:12.000Z | /**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This librar... | 37.07027 | 159 | 0.702537 | SQZhangOwO |
e1184d43fc637f43ddb1d28f2730329ff29cea80 | 2,293 | cc | C++ | system/full/libs/cxx/graphxx/src/graphxx.cc | karlzheng/EwokOS | bbbd7a12e05b979232356a41a5cfd1653c5f022b | [
"Apache-2.0"
] | 166 | 2018-02-20T06:23:58.000Z | 2022-03-15T08:25:16.000Z | system/full/libs/cxx/graphxx/src/graphxx.cc | karlzheng/EwokOS | bbbd7a12e05b979232356a41a5cfd1653c5f022b | [
"Apache-2.0"
] | 9 | 2019-05-04T03:27:45.000Z | 2020-12-04T06:52:54.000Z | system/full/libs/cxx/graphxx/src/graphxx.cc | karlzheng/EwokOS | bbbd7a12e05b979232356a41a5cfd1653c5f022b | [
"Apache-2.0"
] | 32 | 2018-02-19T11:37:38.000Z | 2022-03-24T08:42:51.000Z | #include <graphxx/graphxx.h>
using namespace Ewok;
Graph::Graph(uint32_t* buffer, uint32_t w, uint32_t h) {
g = graph_new(buffer, w, h);
}
Graph::~Graph(void) {
if(g != NULL) {
graph_free(g);
g = NULL;
}
}
void Graph::pixel(int32_t x, int32_t y, uint32_t color) {
if(g == NULL)
return;
graph_pixel(g, x, ... | 23.639175 | 91 | 0.651548 | karlzheng |
e11a4cf71fde7ba6d793cc577c738a8247af40a4 | 511 | hpp | C++ | stuff/types.hpp | gkuznets/stuff | ab3fb41cdc10dfd73d1bd25a9bfea6f7b884f5bf | [
"Unlicense"
] | null | null | null | stuff/types.hpp | gkuznets/stuff | ab3fb41cdc10dfd73d1bd25a9bfea6f7b884f5bf | [
"Unlicense"
] | null | null | null | stuff/types.hpp | gkuznets/stuff | ab3fb41cdc10dfd73d1bd25a9bfea6f7b884f5bf | [
"Unlicense"
] | null | null | null | #pragma once
#include <cstdint>
namespace stuff {
namespace detail {
template <unsigned width>
struct uint_t;
template <>
struct uint_t<8> {
using type = std::uint8_t;
};
template <>
struct uint_t<16> {
using type = std::uint16_t;
};
template <>
struct uint_t<32> {
using type = std::uint32_t;
};
tem... | 13.447368 | 52 | 0.669276 | gkuznets |
e11a550983114e860cacabb29fbe5eaa28523ee7 | 2,467 | hpp | C++ | modules/test/benchmark/include/nt2/sdk/bench/benchmark.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/test/benchmark/include/nt2/sdk/bench/benchmark.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/test/benchmark/include/nt2/sdk/bench/benchmark.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2009 - 2013 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 - 2013 MetaScale SAS
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICEN... | 40.442623 | 80 | 0.580057 | psiha |
e11d88cb15de713a03f18e780d8e01b65047346b | 6,364 | cc | C++ | test/generate.cc | bartlettroscoe/SCOREC-core | 1e6d06bf903d743560661a3ea238e614cca9ce73 | [
"BSD-3-Clause"
] | null | null | null | test/generate.cc | bartlettroscoe/SCOREC-core | 1e6d06bf903d743560661a3ea238e614cca9ce73 | [
"BSD-3-Clause"
] | null | null | null | test/generate.cc | bartlettroscoe/SCOREC-core | 1e6d06bf903d743560661a3ea238e614cca9ce73 | [
"BSD-3-Clause"
] | null | null | null | #include <PCU.h>
#include <MeshSim.h>
#include <SimAdvMeshing.h>
#include <SimPartitionedMesh.h>
#include <SimModelerAdvUtil.h>
#include <SimModelerUtil.h>
#include <SimUtil.h>
#include <apfSIM.h>
#include <apfMDS.h>
#include "gmi_sim_config.h"
#include <gmi_sim.h>
#include <apf.h>
#include <apfConvert.h>
#include <apf... | 24.666667 | 113 | 0.679604 | bartlettroscoe |
e12dd43f676c53004ba447a037bd7a374ce32b5b | 12,906 | cpp | C++ | ROS_WS/github-radar/Delphi_ESR_SSR_gazebo_plugin/radar_plugin/src/radar_srr_plugin.cpp | OrangeSodahub/ROS-WS | 5b3c56ea1b46025298360eed9c06f25f7c5f7fe6 | [
"MIT"
] | 1 | 2022-03-20T19:16:06.000Z | 2022-03-20T19:16:06.000Z | ROS_WS/github-radar/Delphi_ESR_SSR_gazebo_plugin/radar_plugin/src/radar_srr_plugin.cpp | OrangeSodahub/ROS-WS | 5b3c56ea1b46025298360eed9c06f25f7c5f7fe6 | [
"MIT"
] | null | null | null | ROS_WS/github-radar/Delphi_ESR_SSR_gazebo_plugin/radar_plugin/src/radar_srr_plugin.cpp | OrangeSodahub/ROS-WS | 5b3c56ea1b46025298360eed9c06f25f7c5f7fe6 | [
"MIT"
] | null | null | null | #include <radar_srr_plugin/radar_srr_plugin.h>
#include <gazebo-11/gazebo/physics/Link.hh>
#include <gazebo-11/gazebo/physics/Model.hh>
#include <gazebo-11/gazebo/physics/World.hh>
#include <gazebo-11/gazebo/sensors/Sensor.hh>
#include <gazebo-11/gazebo/sensors/SensorManager.hh>
#include <gazebo-11/gazebo/sensors/senso... | 36.35493 | 234 | 0.704091 | OrangeSodahub |
e12de0e1cb5e8ac46868f87de280312f15eefa6b | 3,631 | cpp | C++ | src/modules/faceRec/faceRec.cpp | RafaelKozar/CLCVBack | 95022193c6b5e96dfaa7b8f2ec42222db9c49be0 | [
"BSD-3-Clause"
] | null | null | null | src/modules/faceRec/faceRec.cpp | RafaelKozar/CLCVBack | 95022193c6b5e96dfaa7b8f2ec42222db9c49be0 | [
"BSD-3-Clause"
] | null | null | null | src/modules/faceRec/faceRec.cpp | RafaelKozar/CLCVBack | 95022193c6b5e96dfaa7b8f2ec42222db9c49be0 | [
"BSD-3-Clause"
] | null | null | null | #include "faceRec.hpp"
#include "modules/common/ScopedTimer.hpp"
#include "modules/common/ImageUtils.hpp"
cv::Ptr<cv::CascadeClassifier> faceCascade;
cv::Ptr<cv::CascadeClassifier> nestedCascade;
const static cv::Scalar colors[] = { CV_RGB(0,0,255),
CV_RGB(0,128,255),
CV_RGB(0,255,255),
CV_RGB(0,255,0),
... | 30.008264 | 102 | 0.559901 | RafaelKozar |
e12e67d36184a4e445fc909de77a013d2c2a1b96 | 7,904 | cc | C++ | syntax_parser/enumeration.cc | L4OS/Primula | f87876d5ee7b3c81467cdd9ecde34e5b80d3fc34 | [
"Apache-2.0"
] | 9 | 2019-11-27T18:57:16.000Z | 2020-12-26T03:43:08.000Z | syntax_parser/enumeration.cc | L4OS/Primula | f87876d5ee7b3c81467cdd9ecde34e5b80d3fc34 | [
"Apache-2.0"
] | 2 | 2019-12-17T07:21:21.000Z | 2019-12-19T14:18:24.000Z | syntax_parser/enumeration.cc | L4OS/Primula | f87876d5ee7b3c81467cdd9ecde34e5b80d3fc34 | [
"Apache-2.0"
] | 5 | 2019-12-11T13:15:26.000Z | 2022-01-20T09:09:26.000Z | #include "namespace.h"
#if ! MODERN_COMPILER
# include <stdlib.h>
#endif
expression_node_t * namespace_t::TryEnumeration(std::string name)
{
expression_node_t * node = nullptr;
if (this->enum_map.count(name) > 0)
{
#if MODERN_COMPILER
auto pair = this->enum_map.find(name);
#else
std::map<s... | 27.444444 | 118 | 0.566169 | L4OS |
e130e072caef1e62c5855a88444452f8d2b61fbb | 398 | cpp | C++ | src/temoto_output_manager.cpp | temoto-telerobotics/temoto_output_manager | f0c5a11ac733d6e5922080258559d18e6363d33a | [
"Apache-2.0"
] | null | null | null | src/temoto_output_manager.cpp | temoto-telerobotics/temoto_output_manager | f0c5a11ac733d6e5922080258559d18e6363d33a | [
"Apache-2.0"
] | null | null | null | src/temoto_output_manager.cpp | temoto-telerobotics/temoto_output_manager | f0c5a11ac733d6e5922080258559d18e6363d33a | [
"Apache-2.0"
] | null | null | null | #include "ros/ros.h"
#include "std_msgs/String.h"
#include "temoto_output_manager/rviz_manager/rviz_manager.h"
#include <sstream>
int main(int argc, char **argv)
{
ros::init(argc, argv, "temoto_output_manager");
ros::NodeHandle n;
// Create instance of rviz manager
temoto_output_manager::RvizManager... | 19.9 | 60 | 0.698492 | temoto-telerobotics |
e13264b54f22eca234e8240f78e3733d46e1ed7c | 1,042 | cpp | C++ | 10.03-byteSwap0/main.cpp | andreasfertig/programming-with-cpp20 | 7c70351f3a46aea295e964096be77eb159be6e9f | [
"MIT"
] | 107 | 2021-04-13T12:43:06.000Z | 2022-03-30T05:07:16.000Z | 10.03-byteSwap0/main.cpp | jessesimpson/programming-with-cpp20 | 7c70351f3a46aea295e964096be77eb159be6e9f | [
"MIT"
] | 1 | 2021-04-13T12:59:30.000Z | 2021-04-13T13:02:55.000Z | 10.03-byteSwap0/main.cpp | jessesimpson/programming-with-cpp20 | 7c70351f3a46aea295e964096be77eb159be6e9f | [
"MIT"
] | 29 | 2021-04-13T18:07:03.000Z | 2022-03-28T13:44:01.000Z | // Copyright (c) Andreas Fertig.
// SPDX-License-Identifier: MIT
#if HAVE_integral
# include <bit>
# include <concepts>
# include <cstddef>
# include <cstdint>
# include <utility>
constexpr auto ReverseBytes(std::integral auto value)
{
return [&]<size_t... I>(std::index_sequence<I...>)->decltype(value)
{
... | 23.681818 | 76 | 0.645873 | andreasfertig |
e132f4111951dbd660f9dcbe62362721dce9ddae | 2,910 | cpp | C++ | badger/src/ConsoleViewBadger.cpp | projetpeip-montp2/badger | fc12b8fe2889a0a3c9a9d5503dcfe55ab8d37cbc | [
"BSD-3-Clause"
] | null | null | null | badger/src/ConsoleViewBadger.cpp | projetpeip-montp2/badger | fc12b8fe2889a0a3c9a9d5503dcfe55ab8d37cbc | [
"BSD-3-Clause"
] | 2 | 2021-01-22T13:58:53.000Z | 2021-01-22T13:59:08.000Z | badger/src/ConsoleViewBadger.cpp | projetpeip-montp2/badger | fc12b8fe2889a0a3c9a9d5503dcfe55ab8d37cbc | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////
// Copyright (c) 2012 Polytech Montpellier
// 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 so... | 27.45283 | 80 | 0.598625 | projetpeip-montp2 |
e137f23208f9f9c5e1eab9adaba048ca9ea3ee89 | 1,481 | cpp | C++ | main.cpp | atinfinity/calcHistgram | f5d519b309e9361c4203aac7683ac6765ee118c3 | [
"MIT"
] | null | null | null | main.cpp | atinfinity/calcHistgram | f5d519b309e9361c4203aac7683ac6765ee118c3 | [
"MIT"
] | null | null | null | main.cpp | atinfinity/calcHistgram | f5d519b309e9361c4203aac7683ac6765ee118c3 | [
"MIT"
] | null | null | null | #include "calcHistgram.hpp"
#include <opencv2/imgproc.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>
#define VIEW_HISTGRAM
void viewHistgram(std::vector<int>& hist, const int bin_size)
{
const int max = *std::max_element(hist.begin(), hist.end());
cv::Mat hist_img(cv... | 25.534483 | 149 | 0.584065 | atinfinity |
e13da96444d1b73ab9cc033c26b660ca84efe3a0 | 9,524 | cxx | C++ | languages/lua/opwig/wrapperspecification.cxx | ouroboros-project/ouroboros | 0edce6600f570a901a818161f77db9792f120e11 | [
"Zlib"
] | 1 | 2020-12-24T14:37:31.000Z | 2020-12-24T14:37:31.000Z | languages/lua/opwig/wrapperspecification.cxx | ouroboros-project/ouroboros | 0edce6600f570a901a818161f77db9792f120e11 | [
"Zlib"
] | null | null | null | languages/lua/opwig/wrapperspecification.cxx | ouroboros-project/ouroboros | 0edce6600f570a901a818161f77db9792f120e11 | [
"Zlib"
] | null | null | null |
#include <lua/opwig/wrapperspecification.h>
#include <lua/opwig/codes.h>
#include <opwig/md/function.h>
#include <opwig/md/variable.h>
#include <opwig/md/namespace.h>
#include <sstream>
namespace opa {
namespace lua {
using std::string;
using std::stringstream;
using opwig::md::Ptr;
using opwig::md::Namespace;
Wrap... | 37.058366 | 104 | 0.49622 | ouroboros-project |
e13e3a45b8413e9983076fdbfd9b1c49e1b060ba | 760 | hpp | C++ | src/Engine/Entity/Entity.hpp | avraal/Projector | bb234f03ccf34ed829a130c664b7adad400653f4 | [
"Zlib"
] | null | null | null | src/Engine/Entity/Entity.hpp | avraal/Projector | bb234f03ccf34ed829a130c664b7adad400653f4 | [
"Zlib"
] | null | null | null | src/Engine/Entity/Entity.hpp | avraal/Projector | bb234f03ccf34ed829a130c664b7adad400653f4 | [
"Zlib"
] | null | null | null | //
// Created by andrew on 17.01.19.
//
#ifndef PROJECTOR_ENTITY_HPP
#define PROJECTOR_ENTITY_HPP
#include "../Utils/CONST_DEFINITIONS.hpp"
#include <string>
#include <SFML/Graphics/Texture.hpp>
#include <SFML/Graphics/Sprite.hpp>
#include <SFML/Graphics/RenderTarget.hpp>
class Entity
{
protected:
friend class L... | 18.536585 | 42 | 0.678947 | avraal |
e141e9557d9d6227a4bc1dfd845f033bfb0d8638 | 13,127 | hpp | C++ | mlog/char_trait.hpp | Lowdham/mlog | 034134ec2048fb78084f4772275b5f67efeec433 | [
"MIT"
] | 2 | 2021-06-19T04:14:14.000Z | 2021-08-30T15:39:49.000Z | mlog/char_trait.hpp | Lowdham/mlog | 034134ec2048fb78084f4772275b5f67efeec433 | [
"MIT"
] | 1 | 2021-06-21T15:58:19.000Z | 2021-06-22T02:04:39.000Z | mlog/char_trait.hpp | Lowdham/mlog | 034134ec2048fb78084f4772275b5f67efeec433 | [
"MIT"
] | null | null | null | // This file is part of mlogger
#ifndef MLOG_CHAR_TRAIT_HPP_
#define MLOG_CHAR_TRATT_HPP_
#include "fwd.hpp"
#include "malloc.hpp"
#include "throw.hpp"
#include <cstring>
#if defined(MLOG_WIN)
#define FGETC_UNLOCKED(strm) _fgetc_nolock(strm);
#define FGETWC_UNLOCKED(strm) _fgetwc_nolock(strm);
#define FPUTC_UNLOCKE... | 28.914097 | 80 | 0.624819 | Lowdham |
e14310abc38adca437197cb496fd6c4d18e6fee4 | 16,990 | cpp | C++ | game/SpiderComponent.cpp | Sheph/TriggerTime | 9265dee6a178e43bf7365e3aa2f7f2ca22df074f | [
"BSD-2-Clause"
] | 24 | 2019-02-24T14:48:16.000Z | 2022-03-21T21:37:26.000Z | game/SpiderComponent.cpp | Sheph/TriggerTime | 9265dee6a178e43bf7365e3aa2f7f2ca22df074f | [
"BSD-2-Clause"
] | 3 | 2019-02-25T20:45:09.000Z | 2019-02-28T18:05:45.000Z | game/SpiderComponent.cpp | Sheph/TriggerTime | 9265dee6a178e43bf7365e3aa2f7f2ca22df074f | [
"BSD-2-Clause"
] | 7 | 2019-02-28T11:33:15.000Z | 2022-01-26T20:11:45.000Z | /*
* Copyright (c) 2014, Stanislav Vorobiov
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of ... | 29.807018 | 125 | 0.499058 | Sheph |
e145472a45d9a066cd60b84ed46931542c79a478 | 403 | hpp | C++ | handsome/cpp_src/Filter.hpp | bracket/handsome | c93d34f94d0eea24f5514efc9bc423eb28b44a6b | [
"BSD-2-Clause"
] | null | null | null | handsome/cpp_src/Filter.hpp | bracket/handsome | c93d34f94d0eea24f5514efc9bc423eb28b44a6b | [
"BSD-2-Clause"
] | null | null | null | handsome/cpp_src/Filter.hpp | bracket/handsome | c93d34f94d0eea24f5514efc9bc423eb28b44a6b | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include "Vec.hpp"
struct SampleBuffer;
struct TileCache;
void convolve_into(
SampleBuffer & out,
SampleBuffer const & in,
SampleBuffer const & kernel,
Vec<2, int> const & out_offset,
Vec<2, int> const & in_offset,
int out_sample_rate,
int in_sample_rate
);
void convolve_into(
SampleBuffer & ou... | 16.791667 | 32 | 0.744417 | bracket |
e147951ca8f74b86bca3e2f16a72465a2a51280a | 6,634 | cpp | C++ | Modules/Core/Platform/WindowsPC/vaInputMouse.cpp | magcius/CMAA2 | 8ceb0daa2afa6b12804da62631494d2ed4b31b53 | [
"Apache-2.0"
] | 110 | 2018-09-04T20:33:59.000Z | 2021-12-17T08:46:11.000Z | Modules/Core/Platform/WindowsPC/vaInputMouse.cpp | magcius/CMAA2 | 8ceb0daa2afa6b12804da62631494d2ed4b31b53 | [
"Apache-2.0"
] | 5 | 2018-09-05T20:57:08.000Z | 2021-02-24T09:02:31.000Z | Modules/Core/Platform/WindowsPC/vaInputMouse.cpp | magcius/CMAA2 | 8ceb0daa2afa6b12804da62631494d2ed4b31b53 | [
"Apache-2.0"
] | 20 | 2018-09-05T00:41:13.000Z | 2021-08-04T01:31:50.000Z | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2019, Intel Corporation
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to de... | 30.855814 | 119 | 0.615315 | magcius |
e1481fd97c38deae1f576a6b1a8a11915a428c7c | 4,854 | cpp | C++ | src/core/CoolFileSystem.cpp | ObjectifSciencesInternational/LaCOOLBoard | 45f363c1e31b6cfeb65cd1db6f28aa6f32fcab83 | [
"BSD-3-Clause",
"MIT-0",
"MIT"
] | null | null | null | src/core/CoolFileSystem.cpp | ObjectifSciencesInternational/LaCOOLBoard | 45f363c1e31b6cfeb65cd1db6f28aa6f32fcab83 | [
"BSD-3-Clause",
"MIT-0",
"MIT"
] | null | null | null | src/core/CoolFileSystem.cpp | ObjectifSciencesInternational/LaCOOLBoard | 45f363c1e31b6cfeb65cd1db6f28aa6f32fcab83 | [
"BSD-3-Clause",
"MIT-0",
"MIT"
] | 1 | 2019-03-10T15:34:23.000Z | 2019-03-10T15:34:23.000Z | /**
* Copyright (c) 2018 La Cool Co SAS
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge... | 30.149068 | 80 | 0.675525 | ObjectifSciencesInternational |
e14b1e6f5d1d63cb9de27893452bec5b4b104abf | 5,405 | cpp | C++ | src/HuffmanTree.cpp | Devinsomnia/Huffman-Compressor-Encoding---Decoding- | c297391a9e5b98858f85387e34b4f9ae7ab2c7e0 | [
"MIT"
] | null | null | null | src/HuffmanTree.cpp | Devinsomnia/Huffman-Compressor-Encoding---Decoding- | c297391a9e5b98858f85387e34b4f9ae7ab2c7e0 | [
"MIT"
] | null | null | null | src/HuffmanTree.cpp | Devinsomnia/Huffman-Compressor-Encoding---Decoding- | c297391a9e5b98858f85387e34b4f9ae7ab2c7e0 | [
"MIT"
] | null | null | null | //
// HuffmanTree.cpp
// odevs
//
// Created by Tuncay Cansız on 17.12.2017.
// Copyright © 2017 Tuncay Cansız. All rights reserved.
//
#include "HuffmanTree.hpp"
#include <iostream>
#include <fstream>
#include <sstream>
#include <bitset>
#include <algorithm>
using namespace std;
HuffmanTree::HuffmanTree(string ... | 25.023148 | 132 | 0.561147 | Devinsomnia |
e14fa3f83f9537f181fb00852d48b26babd600cb | 740 | cc | C++ | elements/standard/join.cc | leeopop/ClickNF | 5bca7586195d1b24d3a899fa084feafa93f81790 | [
"MIT"
] | 32 | 2017-11-02T12:33:21.000Z | 2022-02-07T22:25:58.000Z | elements/standard/join.cc | leeopop/ClickNF | 5bca7586195d1b24d3a899fa084feafa93f81790 | [
"MIT"
] | 2 | 2019-02-18T08:47:16.000Z | 2019-05-24T14:41:23.000Z | elements/standard/join.cc | leeopop/ClickNF | 5bca7586195d1b24d3a899fa084feafa93f81790 | [
"MIT"
] | 10 | 2018-06-13T11:54:53.000Z | 2020-09-08T06:52:43.000Z | /*
* join.{cc,hh} -- joins segments in a packet
* Rafael Laufer
*
* Copyright (c) 2016 Nokia Bell Labs
*
*/
#include <click/config.h>
#include <click/args.hh>
#include <click/error.hh>
#include "join.hh"
CLICK_DECLS
Join::Join() : _segs(0), _p(NULL)
{
}
int
Join::configure(Vector<String> &conf, ErrorHandler *e... | 13.962264 | 57 | 0.628378 | leeopop |
e151fbf8383920224713147e17f9693145cdedff | 1,014 | cpp | C++ | archive/1/tort.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | archive/1/tort.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | archive/1/tort.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
typedef long long int I;
void cin_diffs(I d, I n, I *t) {
I last = 0;
for(I i = 0; i < n; ++i) {
I curr; cin >> curr;
t[i] = curr - last;
last = curr;
}
t[n] = d - last;
sort(t, t + n + 1);
}
I num_gt(I *xdiffs... | 18.107143 | 54 | 0.431953 | Aleshkev |
e15205a083991c95520d2e84ce06e2a266550f70 | 3,462 | cpp | C++ | game/network/to_ws_session.cpp | xgm-skywave/xgs | d75f3f44ca7f9a5e633f5e14330e84a0fa2777ef | [
"MIT"
] | 3 | 2019-11-05T16:33:21.000Z | 2020-10-27T10:28:36.000Z | game/network/to_ws_session.cpp | langxgm/xgs | d75f3f44ca7f9a5e633f5e14330e84a0fa2777ef | [
"MIT"
] | null | null | null | game/network/to_ws_session.cpp | langxgm/xgs | d75f3f44ca7f9a5e633f5e14330e84a0fa2777ef | [
"MIT"
] | 2 | 2020-10-27T10:25:07.000Z | 2020-11-10T05:36:33.000Z |
#include "to_ws_session.h"
#include "game/main/GameServer.h"
#include "game/logic/HandleMsgMacros.h"
#include "game/logic/LoginHandler.h"
#include "game/config/SystemConfig.h"
#include "game/pbconfig/game.conf.pb.h"
#include "game/protos/core.pb.h"
#include "xbase/TimeUtil.h"
#include <glog/logging.h>
To_Ws_Sess... | 22.927152 | 120 | 0.721548 | xgm-skywave |
e152c51cf121f03e144e81bdb9df3bddaf62cb9b | 660 | cpp | C++ | race/src/main.cpp | OthmaneAmdaui/gba-sprite-engine | 173ced390627b959bd7f6762a1323e5079f43e1c | [
"MIT"
] | null | null | null | race/src/main.cpp | OthmaneAmdaui/gba-sprite-engine | 173ced390627b959bd7f6762a1323e5079f43e1c | [
"MIT"
] | null | null | null | race/src/main.cpp | OthmaneAmdaui/gba-sprite-engine | 173ced390627b959bd7f6762a1323e5079f43e1c | [
"MIT"
] | null | null | null | //
// Created by Othmane Amdaui on 01-Dec-18.
//
#include <libgba-sprite-engine/gba_engine.h>
#include <libgba-sprite-engine/scene.h>
#include "startScene.h"
int main() {
std::shared_ptr<GBAEngine> engine(new GBAEngine());
//auto game = new game();
auto *startScene = new StartScene(engine, 1);
//a... | 20.625 | 56 | 0.65303 | OthmaneAmdaui |
e154e56f44d0a6f5e5d620479f70940a33190bcc | 31,353 | cpp | C++ | src/JSystem/JStudio/stb/stb.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/JSystem/JStudio/stb/stb.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/JSystem/JStudio/stb/stb.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "JStudio/stb.h"
#include "JStudio/object.h"
/*
Generated from dpostproc
.section .data, "wa" # 0x8049E220 - 0x804EFC20
.global __vt__Q37JStudio3stb6TParse
__vt__Q37JStudio3stb6TParse:
.4byte 0
.4byte 0
.4byte __dt__Q37JStudio3stb6TParseFv
.4byte parseHeader_ne... | 19.657053 | 268 | 0.564316 | projectPiki |
e156411cf9ed0a94c946f2f35dcf9f43968eb8b5 | 8,285 | cxx | C++ | 1283_Smallest_Divisor.cxx | KerouichaReda/leetcode_submission | f4a1c668fcb962e5ff92285d6bfc41b7573b9dc0 | [
"MIT"
] | 1 | 2020-12-05T06:06:28.000Z | 2020-12-05T06:06:28.000Z | 1283_Smallest_Divisor.cxx | KerouichaReda/leetcode_submission | f4a1c668fcb962e5ff92285d6bfc41b7573b9dc0 | [
"MIT"
] | null | null | null | 1283_Smallest_Divisor.cxx | KerouichaReda/leetcode_submission | f4a1c668fcb962e5ff92285d6bfc41b7573b9dc0 | [
"MIT"
] | null | null | null | /*
* 1283_Smallest_Divisor.cxx
*
* Copyright 2020 RedaKerouicha <redakerouicha@localhost>
*
* 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 2 of the License, or
* (at yo... | 142.844828 | 6,895 | 0.826795 | KerouichaReda |
e1567057c9541abdd583ae4e2174f9c055ec17f7 | 218 | hpp | C++ | examples/simple/layers/blur_layer.hpp | ennis/autograph | 4dcbdb75bf088a3a8039fbb8df88cf512a4f8b7d | [
"MIT"
] | null | null | null | examples/simple/layers/blur_layer.hpp | ennis/autograph | 4dcbdb75bf088a3a8039fbb8df88cf512a4f8b7d | [
"MIT"
] | null | null | null | examples/simple/layers/blur_layer.hpp | ennis/autograph | 4dcbdb75bf088a3a8039fbb8df88cf512a4f8b7d | [
"MIT"
] | null | null | null | #ifndef BLUR_LAYER_HPP
#define BLUR_LAYER_HPP
#include "../canvas.hpp"
class BlurLayer : public TLayer<LayerType::Blur>
{
public:
void draw(LayerContext& context) override
{
}
private:
};
#endif | 12.111111 | 48 | 0.678899 | ennis |
e156744351c54cc64ca995d2915f40215c03a9af | 213,296 | cpp | C++ | src/frontend/SageIII/ompAstConstruction.cpp | passlab/rexompiler | 5494df3766ab606e230c5f1785b438a019c9e353 | [
"BSD-3-Clause"
] | null | null | null | src/frontend/SageIII/ompAstConstruction.cpp | passlab/rexompiler | 5494df3766ab606e230c5f1785b438a019c9e353 | [
"BSD-3-Clause"
] | 65 | 2020-10-16T17:58:15.000Z | 2022-03-23T17:59:44.000Z | src/frontend/SageIII/ompAstConstruction.cpp | passlab/rexompiler | 5494df3766ab606e230c5f1785b438a019c9e353 | [
"BSD-3-Clause"
] | null | null | null | // Put here code used to construct SgOmp* nodes
// Liao 10/8/2010
#include "sage3basic.h"
#include "rose_paths.h"
#include "astPostProcessing.h"
#include "sageBuilder.h"
#include "OmpAttribute.h"
#include "ompAstConstruction.h"
#include "OpenMPIR.h"
#include <deque>
extern OpenMPDirective* parseOpenMP(const char*, ... | 40.496677 | 229 | 0.645675 | passlab |
e15764ede35d938f8af846c5dcb619d8496dc969 | 13,374 | cpp | C++ | test/ordering.cpp | petter-holmberg/elements | 934f111d8180ea60ab13cb0bd97398df24d2e763 | [
"MIT"
] | 2 | 2018-10-25T20:43:11.000Z | 2022-03-05T19:24:50.000Z | test/ordering.cpp | petter-holmberg/elements | 934f111d8180ea60ab13cb0bd97398df24d2e763 | [
"MIT"
] | null | null | null | test/ordering.cpp | petter-holmberg/elements | 934f111d8180ea60ab13cb0bd97398df24d2e763 | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include "ordering.h"
namespace e = elements;
struct s
{
s() = default;
s(int value_, int stability_index_)
: value{value_}, stability_index{stability_index_}
{}
int value{0};
int stability_index{0};
};
auto operator==(s const& x, s const& y) -> bool
{
return x... | 45.80137 | 73 | 0.410872 | petter-holmberg |
e15d39fb07c4b4f3e0b5a92fd773ee46b6045a1c | 3,018 | cc | C++ | src/common/linux/file_id_unittest.cc | wincent/Google-Breakpad | 7b873221e6741208827b2a4a5f2dda35ceccb474 | [
"BSD-3-Clause"
] | 3 | 2016-01-05T15:53:37.000Z | 2016-05-28T17:14:28.000Z | src/common/linux/file_id_unittest.cc | wincent/Google-Breakpad | 7b873221e6741208827b2a4a5f2dda35ceccb474 | [
"BSD-3-Clause"
] | null | null | null | src/common/linux/file_id_unittest.cc | wincent/Google-Breakpad | 7b873221e6741208827b2a4a5f2dda35ceccb474 | [
"BSD-3-Clause"
] | 3 | 2015-06-15T06:59:35.000Z | 2021-06-25T10:57:21.000Z | // Copyright (c) 2009, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... | 39.194805 | 73 | 0.733267 | wincent |
e15d4facdf90630597930e7ea5e5eaf2a45ddcdf | 2,462 | hpp | C++ | src/eval_param.hpp | jj1guj/dekunobou | 09608450192f45d3e2974af2ee784c181bb9add4 | [
"MIT"
] | 4 | 2021-11-16T12:25:24.000Z | 2022-01-09T15:15:56.000Z | src/eval_param.hpp | jj1guj/dekunobou | 09608450192f45d3e2974af2ee784c181bb9add4 | [
"MIT"
] | 2 | 2021-12-01T10:34:11.000Z | 2021-12-04T07:11:24.000Z | src/eval_param.hpp | jj1guj/dekunobou | 09608450192f45d3e2974af2ee784c181bb9add4 | [
"MIT"
] | null | null | null | #include "dekunobou.hpp"
#pragma once
float param[param_size]={
0.0619059,
0.466878,
-0.879181,
-0.405615,
0.172344,
-0.74594,
0.806029,
-0.773033,
-0.703957,
-0.573712,
0.445874,
0.270685,
0.975889,
0.154331,
-0.838509,
0.0376886,
-0.265439,
-0.04... | 14.568047 | 25 | 0.490658 | jj1guj |
e15ea71cd877f1ffb7610ea518cde597f0f4f252 | 4,044 | cpp | C++ | libs/functional/tests/unit/bind_cv_test.cpp | picanumber/hpx | 76d6fe0bf4bd7f23e62c170fd8a0c8dbed66ec7d | [
"BSL-1.0"
] | null | null | null | libs/functional/tests/unit/bind_cv_test.cpp | picanumber/hpx | 76d6fe0bf4bd7f23e62c170fd8a0c8dbed66ec7d | [
"BSL-1.0"
] | null | null | null | libs/functional/tests/unit/bind_cv_test.cpp | picanumber/hpx | 76d6fe0bf4bd7f23e62c170fd8a0c8dbed66ec7d | [
"BSL-1.0"
] | null | null | null | // Taken from the Boost.Bind library
//
// bind_cv_test.cpp
//
// Copyright (c) 2004 Peter Dimov
// Copyright (c) 2013 Agustin Berge
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICE... | 24.071429 | 80 | 0.504946 | picanumber |
ff180fe1cc856d69a22fc4a4d637e99cae9ef933 | 258 | cpp | C++ | GL/ShootingGame/Include/Render/GLRenderResetTargetCommand.cpp | KoreanGinseng/CreativeLabo4 | a7c03ad2cea958be1509cd0c09581b1f4fc81275 | [
"MIT"
] | null | null | null | GL/ShootingGame/Include/Render/GLRenderResetTargetCommand.cpp | KoreanGinseng/CreativeLabo4 | a7c03ad2cea958be1509cd0c09581b1f4fc81275 | [
"MIT"
] | null | null | null | GL/ShootingGame/Include/Render/GLRenderResetTargetCommand.cpp | KoreanGinseng/CreativeLabo4 | a7c03ad2cea958be1509cd0c09581b1f4fc81275 | [
"MIT"
] | null | null | null | #include "GLRenderResetTargetCommand.h"
using namespace sip;
#ifdef __GLLIB
#include "../../Framework/Graphics/GraphicsController.h"
void GLRenderResetTargetCommand::Exec() {
Sample::GraphicsController::GetInstance().ResetTarget();
}
#endif //__GLLIB | 21.5 | 60 | 0.767442 | KoreanGinseng |
ff1a5cacc7dcb8eab0cc4edf244df375b6dee4a5 | 2,803 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Remoting/FileWebRequest_ContentLength/CPP/filewebrequest_contentlength.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 3,294 | 2016-10-30T05:27:20.000Z | 2022-03-31T15:59:30.000Z | samples/snippets/cpp/VS_Snippets_Remoting/FileWebRequest_ContentLength/CPP/filewebrequest_contentlength.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 16,739 | 2016-10-28T19:41:29.000Z | 2022-03-31T22:38:48.000Z | samples/snippets/cpp/VS_Snippets_Remoting/FileWebRequest_ContentLength/CPP/filewebrequest_contentlength.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 6,701 | 2016-10-29T20:56:11.000Z | 2022-03-31T12:32:26.000Z | // System::Net::FileWebRequest::ContentLength;System::Net::FileWebRequest::RequestUri;
/*
This program demonstrates 'ContentLength'and 'RequestUri' property of 'FileWebRequest' class.
The path of a file where user would like to write something is obtained from command line argument.
Then a 'WebRequest' Object* is crea... | 38.39726 | 165 | 0.647521 | BaruaSourav |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.