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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
58e40449a3cf68e081b1d4bba01d1fc4d0b357ad | 1,585 | cc | C++ | tests/libspindle/order/test02.cc | Kumfert/Spindle | d5f2cab92c86c547efbf09fb30be9d478da04332 | [
"BSD-4-Clause",
"FSFAP"
] | null | null | null | tests/libspindle/order/test02.cc | Kumfert/Spindle | d5f2cab92c86c547efbf09fb30be9d478da04332 | [
"BSD-4-Clause",
"FSFAP"
] | null | null | null | tests/libspindle/order/test02.cc | Kumfert/Spindle | d5f2cab92c86c547efbf09fb30be9d478da04332 | [
"BSD-4-Clause",
"FSFAP"
] | 1 | 2021-01-19T16:36:28.000Z | 2021-01-19T16:36:28.000Z | //
// src/order/drivers/tests/test02.cc -- test RCMEngine on a disconnected graph
//
// $Id: test02.cc,v 1.2 2000/02/18 01:32:09 kumfert Exp $
//
// Gary Kumfert, Old Dominion University
// Copyright(c) 1998, Old Dominion University. All rights reserved.
//
// Permission to use, copy, modify, distribute and sell t... | 29.351852 | 78 | 0.656782 | Kumfert |
58ea09d1554c03784cea50262eb037dc1517369a | 632 | hpp | C++ | characterloader.hpp | Alcardian1/Allorn-RoM | 6f4816b0f6642b7ba330d1014ea589beaf1ebe34 | [
"MIT"
] | null | null | null | characterloader.hpp | Alcardian1/Allorn-RoM | 6f4816b0f6642b7ba330d1014ea589beaf1ebe34 | [
"MIT"
] | null | null | null | characterloader.hpp | Alcardian1/Allorn-RoM | 6f4816b0f6642b7ba330d1014ea589beaf1ebe34 | [
"MIT"
] | null | null | null | #ifndef CHARACTERLOADER_HPP
#define CHARACTERLOADER_HPP
#include <iostream>
#include <fstream>
#include "character.hpp"
#include "alctools.hpp"
using namespace std;
class characterloader
{
private:
character player[6];
public:
characterloader();
v... | 26.333333 | 108 | 0.625 | Alcardian1 |
58eb42f0b87b9112c045c5dc887e09be1a63853b | 980 | cpp | C++ | Day 3/pointer_function.cpp | jiaangli/Basic_CPP | 2786da8b8b4c14e71857ea1b06c895c5656a2696 | [
"MIT"
] | 1 | 2021-01-22T14:15:06.000Z | 2021-01-22T14:15:06.000Z | Day 3/pointer_function.cpp | LearnAndRecord-Ang/cpp-re-learn | 67f28abc9f4dd2b7a53d0138e689778d1d70aeb2 | [
"MIT"
] | null | null | null | Day 3/pointer_function.cpp | LearnAndRecord-Ang/cpp-re-learn | 67f28abc9f4dd2b7a53d0138e689778d1d70aeb2 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
//指针类型的函数
//PART 1
// int* fun()
// {
// static int local = 1;
// return &local;
// }
// int main()
// {
// int *ptr = fun();
// cout<<*ptr;
// return 0;
// }
//PART 2
// int *search(int *a, int n)
// {
// for (int i = 0;i<n;i++)
// {
// //... | 15.076923 | 48 | 0.414286 | jiaangli |
58ecb2a6abbcfa0195733f4768be5b4aad20ca50 | 310 | cpp | C++ | src/periodic_table/periodic_table__delete_current_data.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | src/periodic_table/periodic_table__delete_current_data.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | src/periodic_table/periodic_table__delete_current_data.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | //
//
//
inline void delete_current_data()
{
current_symbol = "";
current_name = "";
current_electronic_config = "";
current_element = 0;
current_core_electrons = 0;
current_valence_electrons = 0;
current_orbitals = 0;
current_mass = 0.0;
current_covalent_radius = 0.0;
};
| 19.375 | 35 | 0.648387 | violador |
58ece1e83ab6098b123d328be4fce955072338ad | 11,007 | cpp | C++ | FiniteElementMethod/prog/verification_on_poisson_equation/matrix_creation/rectangle/second_order/SecondOrderRectangleCoefficients.cpp | avelycure/ScientificWork | e3d137691d6eac2c1273551e3db4198dc0f6b7a0 | [
"MIT"
] | null | null | null | FiniteElementMethod/prog/verification_on_poisson_equation/matrix_creation/rectangle/second_order/SecondOrderRectangleCoefficients.cpp | avelycure/ScientificWork | e3d137691d6eac2c1273551e3db4198dc0f6b7a0 | [
"MIT"
] | null | null | null | FiniteElementMethod/prog/verification_on_poisson_equation/matrix_creation/rectangle/second_order/SecondOrderRectangleCoefficients.cpp | avelycure/ScientificWork | e3d137691d6eac2c1273551e3db4198dc0f6b7a0 | [
"MIT"
] | null | null | null | #include "SecondOrderRectangleFE.hpp"
void setCoefficients(double &c1, double &c2, double &c3, double &c4,
double &c5, double &c6, double &c7, double &c8,
double &c9, double &c10, double &c11, double &c12,
double &c13, double &c14, double &c15, double &c16... | 46.054393 | 114 | 0.339239 | avelycure |
58f6e084bcb57e50cb788a2ed8500f6b41d704c6 | 967 | cpp | C++ | Source/ALS/Private/Utility/GameplayTags/AlsOverlayModeTags.cpp | mbwilding/ALS-Refactored | dcf8628a598443c61258a5cdbe83a28c98fd983c | [
"MIT"
] | null | null | null | Source/ALS/Private/Utility/GameplayTags/AlsOverlayModeTags.cpp | mbwilding/ALS-Refactored | dcf8628a598443c61258a5cdbe83a28c98fd983c | [
"MIT"
] | null | null | null | Source/ALS/Private/Utility/GameplayTags/AlsOverlayModeTags.cpp | mbwilding/ALS-Refactored | dcf8628a598443c61258a5cdbe83a28c98fd983c | [
"MIT"
] | null | null | null | #include "Utility/GameplayTags/AlsOverlayModeTags.h"
namespace AlsLocomotionActionTags
{
UE_DEFINE_GAMEPLAY_TAG(Default, TEXT("Als.OverlayMode.Default"))
UE_DEFINE_GAMEPLAY_TAG(Masculine, TEXT("Als.OverlayMode.Masculine"))
UE_DEFINE_GAMEPLAY_TAG(Feminine, TEXT("Als.OverlayMode.Feminine"))
UE_DEFINE_GAMEPLAY_TAG(I... | 50.894737 | 81 | 0.82213 | mbwilding |
58fb1ac6a0985eae8310a975d8efb08d8677519f | 785 | cpp | C++ | src/scene/comp/rigidbody.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | src/scene/comp/rigidbody.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | src/scene/comp/rigidbody.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | #include "chokoengine.hpp"
CE_BEGIN_NAMESPACE
_Rigidbody::_Rigidbody() : CE_COMPDEF(Rigidbody), _dynamic(true), _mass(1),
_moment(1), _bounce(0.8f), _velocity(0), _angularVelocity(Quat::identity()),
_acceleration(0), _torque(Quat::identity()) {}
void _Rigidbody::OnStart() {
Physics::OnBodyAdded(object());
}
#de... | 20.657895 | 77 | 0.694268 | chokomancarr |
58fe2a806016784983aa10d917b3c6b80205fff1 | 4,080 | cpp | C++ | Sources/CeleX/base/xthread.cpp | LarsHaalck/CeleX5-MIPI | 9f93929f2d3030fa33e0ce892e821f52f810cff4 | [
"Apache-2.0"
] | null | null | null | Sources/CeleX/base/xthread.cpp | LarsHaalck/CeleX5-MIPI | 9f93929f2d3030fa33e0ce892e821f52f810cff4 | [
"Apache-2.0"
] | null | null | null | Sources/CeleX/base/xthread.cpp | LarsHaalck/CeleX5-MIPI | 9f93929f2d3030fa33e0ce892e821f52f810cff4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2020 CelePixel Technology Co. Ltd. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 22.417582 | 110 | 0.63848 | LarsHaalck |
45009f470f23a5f4f99f1690ad5138379c016780 | 723 | cpp | C++ | SimpleEngine/src/game.cpp | NiceStuff2Code/GrabTheSquare | 93c0eb3959651ecb7936b254472a9fe864e9960b | [
"Apache-2.0"
] | null | null | null | SimpleEngine/src/game.cpp | NiceStuff2Code/GrabTheSquare | 93c0eb3959651ecb7936b254472a9fe864e9960b | [
"Apache-2.0"
] | null | null | null | SimpleEngine/src/game.cpp | NiceStuff2Code/GrabTheSquare | 93c0eb3959651ecb7936b254472a9fe864e9960b | [
"Apache-2.0"
] | null | null | null | #include "../include/SimpleEngine/game.h"
#include <iostream>
#include <GLFW/glfw3.h>
void SE::Game::run() {
//private members
std::cout << isRunning;
if (this->window == nullptr) {
//error
std::cerr << "error!";
}
//needs this
while (!glfwWindowShouldClose((*window).getWindow... | 17.634146 | 80 | 0.578147 | NiceStuff2Code |
450618c8998ef1955f52434d6e816b5a55c6fe03 | 1,521 | hpp | C++ | Krakoa/Source/Config/ConfigValueMap.hpp | KingKiller100/Krakatoa-Engine | ff07f7328d428c04e06b561b6afd315eea39865c | [
"Apache-2.0"
] | 1 | 2020-04-05T13:37:48.000Z | 2020-04-05T13:37:48.000Z | Krakoa/Source/Config/ConfigValueMap.hpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | Krakoa/Source/Config/ConfigValueMap.hpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../Debug/Instrumentor.hpp"
#include "../FileSystem/IniFile.hpp"
#include <filesystem>
#include <string>
#include <unordered_map>
namespace krakoa::configurations
{
using ValueMap = filesystem::IniFile::ValueMap;
class ConfigFileParser
{
public:
static ValueMap ParseFile(const std::file... | 20.28 | 96 | 0.662064 | KingKiller100 |
450bb9d068b7a8911e02e28c7ad6ca681b3bc910 | 7,637 | cpp | C++ | src/fluxions_ssg_path_animation.cpp | microwerx/fluxions-ssg | eb878248ce86196dab73023400d6a49da94768c9 | [
"MIT"
] | null | null | null | src/fluxions_ssg_path_animation.cpp | microwerx/fluxions-ssg | eb878248ce86196dab73023400d6a49da94768c9 | [
"MIT"
] | null | null | null | src/fluxions_ssg_path_animation.cpp | microwerx/fluxions-ssg | eb878248ce86196dab73023400d6a49da94768c9 | [
"MIT"
] | null | null | null | #include "fluxions_ssg_pch.hpp"
#include <fluxions_fileio_iostream.hpp>
#include <fluxions_ssg_path_animation.hpp>
namespace Fluxions {
Vector3f PathKeyframe::p() const {
return position_;
};
Quaternionf PathKeyframe::q() const {
switch (orientationType) {
case OrientationType::Quaternion:
return quaterni... | 26.15411 | 83 | 0.641613 | microwerx |
931d7457d63084494038e180930d1a15d856cd21 | 444 | cpp | C++ | ledctlemud/linux_utils.cpp | 0xADB/ledctlemu | ddf8176d8842a4b6896adfbe1201a16bd36bce9a | [
"MIT"
] | null | null | null | ledctlemud/linux_utils.cpp | 0xADB/ledctlemu | ddf8176d8842a4b6896adfbe1201a16bd36bce9a | [
"MIT"
] | null | null | null | ledctlemud/linux_utils.cpp | 0xADB/ledctlemu | ddf8176d8842a4b6896adfbe1201a16bd36bce9a | [
"MIT"
] | null | null | null | #include "linux_utils.h"
#include <cstring>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
std::error_code linux_utils::sigaction(int signum, signal_handler_t handler)
{
std::error_code err;
struct sigaction sa = {};
sa.sa_sigaction = handler;
sigemptyset(&sa.sa_mask);
sa.sa_flags = SA_SI... | 18.5 | 76 | 0.68018 | 0xADB |
9321418e33c9d6692343015c689071a7c3e75811 | 2,009 | hxx | C++ | opencascade/IGESGeom_Direction.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/IGESGeom_Direction.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/IGESGeom_Direction.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Created on: 1993-01-09
// Created by: CKY / Contract Toubro-Larsen ( Kiran )
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under... | 25.1125 | 81 | 0.760577 | mgreminger |
9322135efd9813e9c09421c784b65c1f4c4e110b | 592 | cpp | C++ | Source/TimelineViewport.cpp | Hybrid-Music-Lab/Unicycle | c550b6c5e021a75b516db598d077b176ae8258b9 | [
"MIT"
] | null | null | null | Source/TimelineViewport.cpp | Hybrid-Music-Lab/Unicycle | c550b6c5e021a75b516db598d077b176ae8258b9 | [
"MIT"
] | null | null | null | Source/TimelineViewport.cpp | Hybrid-Music-Lab/Unicycle | c550b6c5e021a75b516db598d077b176ae8258b9 | [
"MIT"
] | null | null | null | // Copyright (c) 2019 Christoph Mann (christoph.mann@gmail.com)
#include "TimelineViewport.h"
using namespace unc;
// TimelineViewport - Component
void unc::TimelineViewport::mouseWheelMove( const MouseEvent& e, const MouseWheelDetails& wheel )
{
float wheelDelta = wheel.deltaY != 0.f ? wheel.deltaY : wheel.deltaX;... | 24.666667 | 97 | 0.72973 | Hybrid-Music-Lab |
9324ba39cb5766506e3933aa118e12f66fb40304 | 5,406 | cpp | C++ | libs/qCC_db/ccIndexedTransformation.cpp | ohanlonl/qCMAT | f6ca04fa7c171629f094ee886364c46ff8b27c0b | [
"BSD-Source-Code"
] | null | null | null | libs/qCC_db/ccIndexedTransformation.cpp | ohanlonl/qCMAT | f6ca04fa7c171629f094ee886364c46ff8b27c0b | [
"BSD-Source-Code"
] | null | null | null | libs/qCC_db/ccIndexedTransformation.cpp | ohanlonl/qCMAT | f6ca04fa7c171629f094ee886364c46ff8b27c0b | [
"BSD-Source-Code"
] | 1 | 2019-02-03T12:19:42.000Z | 2019-02-03T12:19:42.000Z | //##########################################################################
//# #
//# CLOUDCOMPARE #
//# #
//# This pr... | 26.895522 | 106 | 0.624861 | ohanlonl |
9324e7d36354323dd8b04101f2a570934d27b4c2 | 1,749 | cpp | C++ | algorithms/4Sum/solve.cpp | reasonerjt/leetcode | db05338f8057ad440cb5dd6cfe0151aafb7a8d56 | [
"MIT"
] | 93 | 2016-04-27T23:25:27.000Z | 2021-07-13T20:32:25.000Z | algorithms/4Sum/solve.cpp | shangan/leetcode | db05338f8057ad440cb5dd6cfe0151aafb7a8d56 | [
"MIT"
] | null | null | null | algorithms/4Sum/solve.cpp | shangan/leetcode | db05338f8057ad440cb5dd6cfe0151aafb7a8d56 | [
"MIT"
] | 43 | 2016-05-31T15:46:50.000Z | 2021-04-09T04:07:39.000Z | #include <vector>
#include <map>
#include <set>
#include <cstdio>
#include <algorithm>
using namespace std;
class Solution {
public:
vector<vector<int>> fourSum(vector<int> &num, int target)
{
vector<vector<int>> result;
int n = num.size();
if (n < 4)
return result;
sort(num.begin(), num.end());
... | 24.633803 | 65 | 0.499714 | reasonerjt |
9324eb954058a362c125a32430d8fac0bbb8df91 | 778 | hpp | C++ | include/melon/concepts/detail/range_of.hpp | fhamonic/melon | 946cc9d92f994d649cc77b34e0dd0eac4cd4ad50 | [
"BSL-1.0"
] | null | null | null | include/melon/concepts/detail/range_of.hpp | fhamonic/melon | 946cc9d92f994d649cc77b34e0dd0eac4cd4ad50 | [
"BSL-1.0"
] | null | null | null | include/melon/concepts/detail/range_of.hpp | fhamonic/melon | 946cc9d92f994d649cc77b34e0dd0eac4cd4ad50 | [
"BSL-1.0"
] | null | null | null | #ifndef MELON_CONCEPTS_DETAIL_RANGE_OF_HPP
#define MELON_CONCEPTS_DETAIL_RANGE_OF_HPP
#include <concepts>
#include <ranges>
namespace fhamonic {
namespace melon {
namespace concepts {
namespace detail {
template <typename T, typename V>
concept range_of = std::ranges::range<T> && std::same_as<std::ranges::range_valu... | 29.923077 | 119 | 0.762211 | fhamonic |
932598c58ba94e1ea8bd88d96b808854c701b367 | 3,063 | cpp | C++ | Meduza/Source/Platform/Windows/Graphics/DepthStencil.cpp | NWagter/Meduza | d1df99061381fa1c7665d09e275ddc0060a6ac8d | [
"MIT"
] | 6 | 2020-10-17T10:50:13.000Z | 2022-02-25T20:14:23.000Z | Meduza/Source/Platform/Windows/Graphics/DepthStencil.cpp | NWagter/Meduza | d1df99061381fa1c7665d09e275ddc0060a6ac8d | [
"MIT"
] | null | null | null | Meduza/Source/Platform/Windows/Graphics/DepthStencil.cpp | NWagter/Meduza | d1df99061381fa1c7665d09e275ddc0060a6ac8d | [
"MIT"
] | 1 | 2020-05-06T12:02:47.000Z | 2020-05-06T12:02:47.000Z | #include "MePCH.h"
#include "Platform/Windows/Graphics/DepthStencil.h"
#include "Platform/Windows/Graphics/Device.h"
#include "Platform/Windows/Graphics/CommandList.h"
#include "Platform/Windows/Graphics/Descriptor.h"
Me::Renderer::Dx12::DepthStencilBuffer::DepthStencilBuffer(Device& a_device, CommandList& a_cmd, in... | 33.293478 | 114 | 0.80444 | NWagter |
93271fcfd79654161dc0d04df068db55e4ccd545 | 6,573 | cpp | C++ | chirpstack-ns-log.cpp | commandus/semtech-udp-packet-emitter | a874754b71dc9c8989e5620ce2dbbe9dc892b7ca | [
"MIT"
] | null | null | null | chirpstack-ns-log.cpp | commandus/semtech-udp-packet-emitter | a874754b71dc9c8989e5620ce2dbbe9dc892b7ca | [
"MIT"
] | null | null | null | chirpstack-ns-log.cpp | commandus/semtech-udp-packet-emitter | a874754b71dc9c8989e5620ce2dbbe9dc892b7ca | [
"MIT"
] | null | null | null | #include <string>
#include <cstring>
#include <sstream>
#include <vector>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <cmath>
#include <sys/time.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet... | 21.91 | 121 | 0.65982 | commandus |
93291e1f43c2a2198b4bf515ae847586e69a4f62 | 983 | cpp | C++ | HDU/20/hdu2098.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2017-08-19T16:02:15.000Z | 2017-08-19T16:02:15.000Z | HDU/20/hdu2098.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | null | null | null | HDU/20/hdu2098.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2018-01-05T23:37:23.000Z | 2018-01-05T23:37:23.000Z | #include <stdio.h>
int p[10001] = {0, 0, 1, 1, 0, 1};
int creat_prime(int prime[],int n,int total)
{
register int i;
register int j;
register int gab=2;
register int count;
for(i=7;i<=n;i+=gab)
{
count=1;
gab=6-gab;
for(j=0;prime[j]*prime[j]<=i;j... | 18.54717 | 44 | 0.365209 | bilibiliShen |
933046a3d2e177f845e22c4be76775032d425ff7 | 6,895 | cpp | C++ | drivers/I2C_SPI/AusExSHT31/src/AusExSHT31.cpp | houtbrion/AusEx | fd74cbab4281da6ba4f285412f2d1f53f40206c9 | [
"Apache-1.1"
] | null | null | null | drivers/I2C_SPI/AusExSHT31/src/AusExSHT31.cpp | houtbrion/AusEx | fd74cbab4281da6ba4f285412f2d1f53f40206c9 | [
"Apache-1.1"
] | null | null | null | drivers/I2C_SPI/AusExSHT31/src/AusExSHT31.cpp | houtbrion/AusEx | fd74cbab4281da6ba4f285412f2d1f53f40206c9 | [
"Apache-1.1"
] | null | null | null | #include "AusExSHT31.h"
/*
*
*/
AusExSHT31::AusExSHT31(TwoWire * theWire , int32_t tempSensorId, int32_t humiditySensorId):
_i2c_if(theWire),
_temp(this,tempSensorId),
_humidity(this,humiditySensorId)
{}
AusExSHT31::Temperature::Temperature(AUSEX_SHT31_CLASS * parent, int32_t id):
_parent(parent),
_id... | 25.164234 | 131 | 0.680493 | houtbrion |
9334a1eae52b17df2c259b289948ef526d2487db | 793 | cpp | C++ | judges/codeforces/exercises/old/find_color.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | null | null | null | judges/codeforces/exercises/old/find_color.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | 1 | 2018-10-17T11:53:02.000Z | 2018-10-17T11:54:42.000Z | judges/codeforces/exercises/old/find_color.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | 1 | 2018-10-17T12:14:04.000Z | 2018-10-17T12:14:04.000Z | #include<bits/stdc++.h>
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define what_is(x) cerr << #x << " is " << x << endl
#define REP(i,a,b) for (int i = a; i <= b; i++)
#define endl "\n"
using namespace std;
using ii = pair<int, int>;
using ll = long long;
int main(){
IOS;
ll x,y;
cin>>... | 16.520833 | 60 | 0.387137 | eduardonunes2525 |
93372ccc7b89ef03073ae39867ca8910767ab03e | 993 | hpp | C++ | src/But/Format/detail/argumentsCount.hpp | el-bart/but | eee2e7e34dde415f4c87461f75c2bab38fc56407 | [
"BSD-3-Clause"
] | 27 | 2016-01-12T19:30:57.000Z | 2022-01-27T15:52:39.000Z | src/But/Format/detail/argumentsCount.hpp | el-bart/but | eee2e7e34dde415f4c87461f75c2bab38fc56407 | [
"BSD-3-Clause"
] | 4 | 2017-04-10T16:30:22.000Z | 2019-04-24T21:02:55.000Z | src/But/Format/detail/argumentsCount.hpp | el-bart/but | eee2e7e34dde415f4c87461f75c2bab38fc56407 | [
"BSD-3-Clause"
] | 2 | 2016-12-09T17:09:59.000Z | 2019-07-16T00:19:31.000Z | #pragma once
#include <But/Container/Array.hpp>
#include <But/Format/detail/lastArgumentNumber.hpp>
namespace But
{
namespace Format
{
namespace detail
{
template<typename C>
constexpr auto bitsCount(C const& tab)
{
auto count = 0u;
for(auto b: tab)
count += b;
return count;
}
template<typename Ps, typenam... | 18.388889 | 60 | 0.713998 | el-bart |
933ccef356e0d5588577bb8b8087d64a949a87fd | 12,896 | cpp | C++ | CPP/src/cloud_fitting.cpp | Gltina/measurement_system_in_3d | 8149f20c1af098dc3fe70769457908d0defa8931 | [
"MIT"
] | 5 | 2021-04-16T12:29:38.000Z | 2022-02-26T09:14:39.000Z | CPP/src/cloud_fitting.cpp | Gltina/measurement_system_in_3d | 8149f20c1af098dc3fe70769457908d0defa8931 | [
"MIT"
] | null | null | null | CPP/src/cloud_fitting.cpp | Gltina/measurement_system_in_3d | 8149f20c1af098dc3fe70769457908d0defa8931 | [
"MIT"
] | null | null | null | #include "cloud_fitting.h"
cloud_fitting::cloud_fitting()
:m_num_theta_samples(1024),
m_num_phi_samples(512)
{
m_num_threads = std::thread::hardware_concurrency();
}
cloud_fitting::~cloud_fitting()
{
}
void cloud_fitting::fitting_line_3d_linear_least_squares(std::vector<point_3d>& points, line_func_3d & line_fu... | 27.035639 | 202 | 0.649504 | Gltina |
933e1ce21f4b0af958165183d0024ff2bdcf6b04 | 4,344 | cpp | C++ | examples/ex4.cpp | Cryst4L/BackProp | 89d344074fa597dcf39ce851e6071ceff85d47cd | [
"MIT"
] | 1 | 2021-12-09T12:19:48.000Z | 2021-12-09T12:19:48.000Z | examples/ex4.cpp | Cryst4L/BackProp | 89d344074fa597dcf39ce851e6071ceff85d47cd | [
"MIT"
] | null | null | null | examples/ex4.cpp | Cryst4L/BackProp | 89d344074fa597dcf39ce851e6071ceff85d47cd | [
"MIT"
] | null | null | null | // ConvNet + Dropout
#include "Backprop/Core.h"
using namespace Backprop;
// 98.83 s0 | 98.86 s9 | 98.90 s10 | 99.05 s11
int main(void)
{
srand(0);
/// Load the dataset ///////////////////////////////////////////////////////
MNIST train_set("data/MNIST", TRAIN);
/// Display some data ///////////////////////... | 26.327273 | 84 | 0.596685 | Cryst4L |
934263f1287c7f1d011a0e8dcd9f2caccdfa38c8 | 2,167 | cpp | C++ | 152_maximum_product_subarray.cpp | ender233/leetCode | b176b6d3c791549639aa7d3dced12fb16ce40b18 | [
"MIT"
] | null | null | null | 152_maximum_product_subarray.cpp | ender233/leetCode | b176b6d3c791549639aa7d3dced12fb16ce40b18 | [
"MIT"
] | 2 | 2017-06-27T20:26:33.000Z | 2017-10-24T19:45:41.000Z | 152_maximum_product_subarray.cpp | ender233/leetCode | b176b6d3c791549639aa7d3dced12fb16ce40b18 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <iostream>
#include <vector>
#include <array>
#include <set>
#include <unordered_map>
#include <prettyprint.hpp>
using namespace std;
/*
* Divide and Conquer
* case 1 : 0 maxNum = max(left, right)
* case 2 : -&
* odd: divede by odd
* maxNum =... | 27.0875 | 119 | 0.532072 | ender233 |
93429e3f33f9d446946f2cc69303cb597ed8152f | 3,685 | cpp | C++ | kernel/src/interrupts/interrupts.cpp | JoannaHammond/JOS | 642a78efd40b1cf994da837bf9a31eb62cefee0b | [
"Unlicense"
] | 1 | 2021-04-14T17:31:16.000Z | 2021-04-14T17:31:16.000Z | kernel/src/interrupts/interrupts.cpp | JoannaHammond/JOS | 642a78efd40b1cf994da837bf9a31eb62cefee0b | [
"Unlicense"
] | null | null | null | kernel/src/interrupts/interrupts.cpp | JoannaHammond/JOS | 642a78efd40b1cf994da837bf9a31eb62cefee0b | [
"Unlicense"
] | 1 | 2021-04-17T17:39:26.000Z | 2021-04-17T17:39:26.000Z | #include "interrupts.h"
#include "../panic.h"
#include "../io/IO.h"
#include "../userinput/keyboard.h"
#include "../scheduling/pit/pit.h"
__attribute__((interrupt)) void PageFault_Handler(interrupt_frame* frame){
Panic("Page Fault Detected");
while(true);
}
__attribute__((interrupt)) void DoubleFault_Handler(... | 24.243421 | 96 | 0.719674 | JoannaHammond |
93461e5b1c8214dea16ea6bdac508268ad1f39ac | 832 | hpp | C++ | source/prime_numbers_generator.hpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | source/prime_numbers_generator.hpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | source/prime_numbers_generator.hpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | #ifndef PK_PRIMENUMBERSGENERATOR_HPP
#define PK_PRIMENUMBERSGENERATOR_HPP
#include "sieve_of_eratosthenes.hpp"
#include "vector.hpp"
namespace pk
{
/**
* Computes prime numbers in [0, Range-1].
* Range should be greater than 1.
*/
template<int Range>
class prime_numbers_generator
{
public:
typedef pk::vect... | 16.979592 | 61 | 0.658654 | pawel-kieliszczyk |
934b86b93b632845213926cfd5cbd7701f443128 | 155 | cpp | C++ | RTHeightfield/TessellationControlShader.cpp | AndreSilvs/RTMasterThesis | 9eb6c34dbe5acb10ab818c2d34b16d786db11030 | [
"MIT"
] | 1 | 2020-06-18T19:21:01.000Z | 2020-06-18T19:21:01.000Z | RTHeightfieldScalable/TessellationControlShader.cpp | AndreSilvs/RTMasterThesis | 9eb6c34dbe5acb10ab818c2d34b16d786db11030 | [
"MIT"
] | null | null | null | RTHeightfieldScalable/TessellationControlShader.cpp | AndreSilvs/RTMasterThesis | 9eb6c34dbe5acb10ab818c2d34b16d786db11030 | [
"MIT"
] | null | null | null | #include "TessellationControlShader.h"
GLuint TessellationControlShader::generateShaderId() {
return glCreateShader( GL_TESS_CONTROL_SHADER );
}
| 25.833333 | 55 | 0.787097 | AndreSilvs |
9352d3a9a1aa1f4173aeec532a3829652fc24e2a | 492 | hpp | C++ | main/internal/dnuma.hpp | nextzlog/dusk | 2438104d5586160b240d9f5cbb6534c9e69da1cb | [
"BSD-3-Clause"
] | 1 | 2022-02-18T13:57:58.000Z | 2022-02-18T13:57:58.000Z | main/internal/dnuma.hpp | nextzlog/dusk | 2438104d5586160b240d9f5cbb6534c9e69da1cb | [
"BSD-3-Clause"
] | null | null | null | main/internal/dnuma.hpp | nextzlog/dusk | 2438104d5586160b240d9f5cbb6534c9e69da1cb | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************
* dusk - lightweight workstealing scheduler
*
* Copyright (C) 2015 http://pafelog.net.
* All rights reserved.
*
* See LICENSE for details.
*********************************************************************/
#ifndef _DNUMA_H
#define _DNUM... | 20.5 | 70 | 0.495935 | nextzlog |
935be2f15628b6cb3c860a5729f10067a00bafa5 | 1,298 | hh | C++ | util-wx/clipboard.hh | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 10 | 2016-12-28T22:06:31.000Z | 2021-05-24T13:42:30.000Z | util-wx/clipboard.hh | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 4 | 2015-10-09T23:55:10.000Z | 2020-04-04T08:09:22.000Z | util-wx/clipboard.hh | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | null | null | null | // -*- coding: us-ascii-unix -*-
// Copyright 2012 Lukas Kemmer
//
// 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 a... | 25.96 | 70 | 0.734206 | lukas-ke |
935efea808c3a2de1c07d4da6bcdc2b865fcd858 | 1,329 | cpp | C++ | src/git/Tree.cpp | rlbxku1r/gitahead | 48356edb4b65d28ee2e1dc47ebe59400c9e0e4aa | [
"MIT"
] | 1 | 2021-12-28T16:56:59.000Z | 2021-12-28T16:56:59.000Z | src/git/Tree.cpp | rlbxku1r/gitahead | 48356edb4b65d28ee2e1dc47ebe59400c9e0e4aa | [
"MIT"
] | null | null | null | src/git/Tree.cpp | rlbxku1r/gitahead | 48356edb4b65d28ee2e1dc47ebe59400c9e0e4aa | [
"MIT"
] | null | null | null | //
// Copyright (c) 2016, Scientific Toolworks, Inc.
//
// This software is licensed under the MIT License. The LICENSE.md file
// describes the conditions under which this software may be distributed.
//
// Author: Jason Haslam
//
#include "Tree.h"
#include "Index.h"
#include "git2/pathspec.h"
namespace git... | 20.765625 | 73 | 0.697517 | rlbxku1r |
9367d9a1a6718aeb9ffc324ccd8df41c98223b3c | 9,582 | cpp | C++ | tools/llvm-dec/llvm-dec.cpp | pwnzen-mobile/llvm_dagger_9.0 | ee097dc2a0cd194002fd54e574703de5094b12f1 | [
"Apache-2.0"
] | 4 | 2019-09-17T05:21:40.000Z | 2021-12-20T19:25:18.000Z | tools/llvm-dec/llvm-dec.cpp | pwnzen-mobile/llvm_dagger_9.0 | ee097dc2a0cd194002fd54e574703de5094b12f1 | [
"Apache-2.0"
] | null | null | null | tools/llvm-dec/llvm-dec.cpp | pwnzen-mobile/llvm_dagger_9.0 | ee097dc2a0cd194002fd54e574703de5094b12f1 | [
"Apache-2.0"
] | 2 | 2020-05-23T04:07:53.000Z | 2021-11-11T04:17:23.000Z | #define DEBUG_TYPE "llvm-dec"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/Triple.h"
#include "llvm/DC/DCInstrSema.h"
#include "llvm/DC/DCRegisterSema.h"
#include "llvm/DC/DCTranslator.h"
#include "llvm/DC/DCTranslator.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCAnalysis/MCCachingDisassembler.h"
#inc... | 32.262626 | 113 | 0.648925 | pwnzen-mobile |
9373f2bb8f6cce1b1a64dc70e33562ecb1f5cbdb | 54,916 | cpp | C++ | software/src/8.1/src/backend/IOMStream.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | software/src/8.1/src/backend/IOMStream.cpp | VisionAerie/vision | e40c39e3abc49b0e2c9623204c54b900c4333f29 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/8.1/src/backend/IOMStream.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /***** Stream I/O Driver Implementation *****/
/***************************
***** Facility Name *****
***************************/
#define FacilityName IOMStreamFacility
/************************
************************
***** Interfaces *****
************************
************************/
/********... | 30.6622 | 123 | 0.530082 | c-kuhlman |
9377b679410f60a777c350e154afb9621899fc6a | 2,890 | cpp | C++ | jakmuse_wave.cpp | alzwded/JakMuse | 0ec39fe1eda57b8f445db7149887515130115c1b | [
"BSD-2-Clause"
] | null | null | null | jakmuse_wave.cpp | alzwded/JakMuse | 0ec39fe1eda57b8f445db7149887515130115c1b | [
"BSD-2-Clause"
] | null | null | null | jakmuse_wave.cpp | alzwded/JakMuse | 0ec39fe1eda57b8f445db7149887515130115c1b | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2014-2015, Vlad Mesco
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 and the following... | 39.054054 | 755 | 0.697578 | alzwded |
9377c629d5094629dae143842c42be5d8ba70ebb | 2,452 | cpp | C++ | revisao/ExemploStructArrayeFuncao.cpp | crisfmb/CS2-Shopify | 494cb53ed35c62fe32905bca15350b3cb2c9b5e5 | [
"MIT"
] | null | null | null | revisao/ExemploStructArrayeFuncao.cpp | crisfmb/CS2-Shopify | 494cb53ed35c62fe32905bca15350b3cb2c9b5e5 | [
"MIT"
] | null | null | null | revisao/ExemploStructArrayeFuncao.cpp | crisfmb/CS2-Shopify | 494cb53ed35c62fe32905bca15350b3cb2c9b5e5 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include <string.h>
using namespace std;
// Criando struct do tipo cachorro
// Struct serve para criar um molde para facilitar a modelagem dos dados
struct cachorro
{
string name;
int Idade;
};
// criou uma função pra quebrar linha
void QuebraLinha()
{
cout << "---... | 27.244444 | 107 | 0.626427 | crisfmb |
938836bd1bd4208df84309b3f7e7b5aaadc998f5 | 1,237 | cpp | C++ | Object Oriented Algo Design in C++/lab/varsearch.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | Object Oriented Algo Design in C++/lab/varsearch.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | Object Oriented Algo Design in C++/lab/varsearch.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
class array
{
public:
array();
int a[1000];
int size;
};
array::array()
{
int index1;
cout<<"\nenter the size of the array:";
cin>>size;
cout<<"\nenter the elements of the array: ";
for(index1=1;index1<=size;index1++)
cin>>a[index1];
}
class search
{
public:
sear... | 16.276316 | 85 | 0.657235 | aishwaryamallampati |
938f5f7076e1c22906a606fc5543c4ce5d718672 | 251 | cpp | C++ | operator/operator/absval.cpp | houzh/Tengine | 423aaaf7e9008679f64a78ee93c8ebf7dbd58dc9 | [
"Apache-2.0"
] | 3 | 2019-12-27T02:31:59.000Z | 2021-08-04T05:59:03.000Z | operator/operator/absval.cpp | houzh/Tengine | 423aaaf7e9008679f64a78ee93c8ebf7dbd58dc9 | [
"Apache-2.0"
] | null | null | null | operator/operator/absval.cpp | houzh/Tengine | 423aaaf7e9008679f64a78ee93c8ebf7dbd58dc9 | [
"Apache-2.0"
] | null | null | null | #include "operator/absval.hpp"
#include "static_graph.hpp"
namespace TEngine {
void AbsVal::SetSchema(void)
{
Input({"input:float32"})
.Output({"output:float32"})
.SetDoc(R"DOC(AbsVal: only caffe flavor AbsVal)DOC");
}
} //namespace TEngine
| 22.818182 | 56 | 0.705179 | houzh |
939075b1adef791d4b2190680392009ebea03985 | 6,059 | cpp | C++ | Base/Window.cpp | guimeixen/OpenGLDemos | 3ecaa33c319e6091bcb70db3cf2c977bb5b076fe | [
"MIT"
] | null | null | null | Base/Window.cpp | guimeixen/OpenGLDemos | 3ecaa33c319e6091bcb70db3cf2c977bb5b076fe | [
"MIT"
] | null | null | null | Base/Window.cpp | guimeixen/OpenGLDemos | 3ecaa33c319e6091bcb70db3cf2c977bb5b076fe | [
"MIT"
] | null | null | null | #include "Window.h"
#include "Random.h"
#include "ResourcesLoader.h"
#include "imgui\imgui.h"
#include "imgui\imgui_impl_glfw.h"
#include "imgui\imgui_impl_opengl3.h"
#include <iostream>
Window::Window()
{
}
bool Window::Init(unsigned int width, unsigned int height)
{
this->width = width;
this->height = height;
... | 23.125954 | 206 | 0.698795 | guimeixen |
939a15d64db0d5f3676389c5b1e4ab3f68790957 | 1,107 | cpp | C++ | anagram substring.cpp | kunwar-vikrant/Hackerrank- | 84b2fb3ee85243e446e18ed4ff9dea2f9f0ad729 | [
"MIT"
] | 1 | 2019-12-24T06:00:11.000Z | 2019-12-24T06:00:11.000Z | anagram substring.cpp | kunwar-vikrant/Hackerrank- | 84b2fb3ee85243e446e18ed4ff9dea2f9f0ad729 | [
"MIT"
] | null | null | null | anagram substring.cpp | kunwar-vikrant/Hackerrank- | 84b2fb3ee85243e446e18ed4ff9dea2f9f0ad729 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// Complete the sherlockAndAnagrams function below.
int sherlockAndAnagrams(string s) {
int c = 0;
map<string, int> hash_map;
for(int i = 0; i < s.length(); i++){
for(int j = 1; j <= s.length()-i; j++){
string tmp = s.... | 18.45 | 57 | 0.448961 | kunwar-vikrant |
939cc56dbce01842a47acbe4210b40f3d57f699a | 3,236 | cpp | C++ | source/StateMachineClass.cpp | DS-Homebrew/bitsweeper | 74fe7e39b696a4367568f99006581cec37ac39ed | [
"MIT"
] | null | null | null | source/StateMachineClass.cpp | DS-Homebrew/bitsweeper | 74fe7e39b696a4367568f99006581cec37ac39ed | [
"MIT"
] | null | null | null | source/StateMachineClass.cpp | DS-Homebrew/bitsweeper | 74fe7e39b696a4367568f99006581cec37ac39ed | [
"MIT"
] | 2 | 2022-03-28T22:53:15.000Z | 2022-03-31T19:35:36.000Z | #include "StateMachineClass.h"
#include "StateIncludes.h"
StateMachineClass::StateMachineClass()
: Current(SHUT_DOWN_STATE),
Requested(BACKGROUND_FADE_IN_STATE)
{
List = new StateClass*[38];
List[BACKGROUND_FADE_IN_STATE] = new BackgroundFadeInStateClass();
List[LOGO_ZOOM_IN_STATE] = new LogoZoomInStateCla... | 43.146667 | 86 | 0.798517 | DS-Homebrew |
939d2038cf279ef3e0ac17fd4e0b89d16e1b1c23 | 1,058 | cpp | C++ | src/Drawables/CubeDrawableTest.cpp | Vbitz/Engine2D | 01848ccea6052dd2673c9f61c9f01374328ca1d7 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-05-23T05:11:19.000Z | 2020-05-23T05:11:19.000Z | src/Drawables/CubeDrawableTest.cpp | Vbitz/Engine2D | 01848ccea6052dd2673c9f61c9f01374328ca1d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/Drawables/CubeDrawableTest.cpp | Vbitz/Engine2D | 01848ccea6052dd2673c9f61c9f01374328ca1d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
Filename: Drawables/CubeDrawableTest.cpp
Purpose: Draw a square using th drawable system
Part of Engine2D
Copyright (C) 2014 Vbitz
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Lic... | 30.228571 | 75 | 0.675803 | Vbitz |
4d36a40c20cb89557a6106e822d829a8c6dd85ce | 173 | cpp | C++ | src/ix.cpp | smu-sc-gj/euler-fluid-cpp | 511e7f6d2c4f9f3a1f09b86425bfeda93ca825c5 | [
"MIT"
] | 58 | 2021-03-06T05:08:36.000Z | 2022-03-26T07:28:07.000Z | src/ix.cpp | smu-sc-gj/euler-fluid-cpp | 511e7f6d2c4f9f3a1f09b86425bfeda93ca825c5 | [
"MIT"
] | 2 | 2021-03-07T02:54:09.000Z | 2021-08-28T10:32:57.000Z | src/ix.cpp | smu-sc-gj/euler-fluid-cpp | 511e7f6d2c4f9f3a1f09b86425bfeda93ca825c5 | [
"MIT"
] | 9 | 2021-04-18T21:08:20.000Z | 2022-03-08T23:04:44.000Z | int IX(int x, int y, int N) {
if (x < 0) { x=0; }
if (x > N-1) { x=N-1; }
if (y < 0) { y=0; }
if (y > N-1) { y=N-1; }
return (y * N) + x;
}
| 15.727273 | 31 | 0.312139 | smu-sc-gj |
4d3a226204e2045546bab21ce37f71fdaacc46c7 | 28,115 | cpp | C++ | c/src/p2p/p2p_sock.cpp | finlchain/NODE | f5da331ef7963562b2036a5bad06427518b2e66d | [
"MIT"
] | 1 | 2020-02-07T00:09:32.000Z | 2020-02-07T00:09:32.000Z | c/src/p2p/p2p_sock.cpp | finlchain/NODE | f5da331ef7963562b2036a5bad06427518b2e66d | [
"MIT"
] | null | null | null | c/src/p2p/p2p_sock.cpp | finlchain/NODE | f5da331ef7963562b2036a5bad06427518b2e66d | [
"MIT"
] | 1 | 2020-02-07T00:09:34.000Z | 2020-02-07T00:09:34.000Z | /**
@file p2p_sock.cpp
@date 2019/06/03
@author FINL Chain Team
@version
@brief
*/
#include "global.h"
SOCK_CNTX_T g_p2p_sock_cntx;
// Local
static int32_t p2p_sock_pkt_cmd_grp_ind(int32_t rx_sockfd, struct sockaddr_in *p_peer_sock_addr, P2P_GRP_HDR_T *p_grp_hdr, P2P_SUB_HDR_T *p_s... | 32.02164 | 171 | 0.583852 | finlchain |
4d3a8e87e6b0ab73cb42606dc476bb1096b70dd4 | 3,738 | cpp | C++ | src/test/vector/test_vector_copy.cpp | Pcornat/BenLib | 5ec30f5eb0bbf827d4d3fd00c8cca1064109fb4c | [
"MIT"
] | null | null | null | src/test/vector/test_vector_copy.cpp | Pcornat/BenLib | 5ec30f5eb0bbf827d4d3fd00c8cca1064109fb4c | [
"MIT"
] | null | null | null | src/test/vector/test_vector_copy.cpp | Pcornat/BenLib | 5ec30f5eb0bbf827d4d3fd00c8cca1064109fb4c | [
"MIT"
] | null | null | null | #define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE vector_copy
#include <algorithm>
#include <boost/predef.h>
#include <random>
#if BOOST_COMP_GNUC
extern "C"
{
# include "quadmath.h"
}
#endif
#include <boost/multiprecision/cpp_int.hpp>
#if BOOST_COMP_GNUC
# include <boost/multiprecision/float128.hpp>
#endi... | 37.009901 | 90 | 0.540931 | Pcornat |
4d40bce21f2d2a2c8f71a71457dffdc6e0ab637a | 369 | cpp | C++ | Tasks/year3-demo-workspace/Lecture02-ComplexC/main.cpp | ConnorD02/Embedded-Systems | 3e42b3da487fbe3bf7cfa897a6dd4cdb568d97e1 | [
"Apache-2.0"
] | 33 | 2020-08-05T12:58:51.000Z | 2022-03-28T12:00:20.000Z | Tasks/year3-demo-workspace/Lecture02-ComplexC/main.cpp | ConnorD02/Embedded-Systems | 3e42b3da487fbe3bf7cfa897a6dd4cdb568d97e1 | [
"Apache-2.0"
] | 37 | 2020-08-05T12:53:22.000Z | 2022-03-04T10:24:47.000Z | Tasks/year3-demo-workspace/Lecture02-ComplexC/main.cpp | ConnorD02/Embedded-Systems | 3e42b3da487fbe3bf7cfa897a6dd4cdb568d97e1 | [
"Apache-2.0"
] | 51 | 2020-10-06T11:04:40.000Z | 2022-03-28T12:00:11.000Z | #include "mbed.h"
#include "ComplexNumber_C.hpp"
// main() runs in its own thread in the OS
int main()
{
ComplexNumber_C p = { .real = 2.0, .imag = 3.0 };
ComplexNumber_C q = { .real = 1.0, .imag = 7.0 };
ComplexNumber_C y = complexAdd(p,q);
displayComplex(y);
complexAddInPlace(&y, p);
... | 16.772727 | 53 | 0.582656 | ConnorD02 |
4d4261f8e16354c6e0e7b5df9b68b45ab4e3df34 | 21,180 | cpp | C++ | MicroPCR/CPlot Sources/Axis.cpp | Labgenomics/Labgenius_v2 | 24c22677698bb646cb4f669ec12989874b5a0956 | [
"Apache-2.0"
] | null | null | null | MicroPCR/CPlot Sources/Axis.cpp | Labgenomics/Labgenius_v2 | 24c22677698bb646cb4f669ec12989874b5a0956 | [
"Apache-2.0"
] | null | null | null | MicroPCR/CPlot Sources/Axis.cpp | Labgenomics/Labgenius_v2 | 24c22677698bb646cb4f669ec12989874b5a0956 | [
"Apache-2.0"
] | null | null | null | /*============================================================================*/
/* */
/* C O P Y R I G H T */
/* ... | 31.377778 | 133 | 0.624551 | Labgenomics |
4d426441ebde36d89b31c68233e2ac8f240b8d86 | 18,827 | cpp | C++ | HaloTAS/MCCTAS/tas_hooks.cpp | s3anyboy/HaloTAS | 9584786f19e1475399298fda2d5783d47623cccd | [
"MIT"
] | null | null | null | HaloTAS/MCCTAS/tas_hooks.cpp | s3anyboy/HaloTAS | 9584786f19e1475399298fda2d5783d47623cccd | [
"MIT"
] | null | null | null | HaloTAS/MCCTAS/tas_hooks.cpp | s3anyboy/HaloTAS | 9584786f19e1475399298fda2d5783d47623cccd | [
"MIT"
] | null | null | null | #include "pch.h"
#include "tas_hooks.h"
#include "windows_utilities.h"
#include "patch.h"
#include "hook.h"
#include "tas_overlay.h"
#include "tas_input.h"
#include "dll_cache.h"
#include "halo1_engine.h"
#include "speedometer.h"
static std::once_flag gOverlayInitialized;
// Global hooks should only apply to areas tha... | 28.184132 | 218 | 0.720933 | s3anyboy |
4d445eab3244cc333e5e76067bbec2dd277383f3 | 3,730 | hpp | C++ | include/Filterbank.hpp | Buerner/laproque | c44ebf7705770d269bf5df14b4be0a76869e66d5 | [
"MIT"
] | null | null | null | include/Filterbank.hpp | Buerner/laproque | c44ebf7705770d269bf5df14b4be0a76869e66d5 | [
"MIT"
] | null | null | null | include/Filterbank.hpp | Buerner/laproque | c44ebf7705770d269bf5df14b4be0a76869e66d5 | [
"MIT"
] | null | null | null | //
// Filterbank.hpp
// laproque - https://github.com/Buerner/laproque
//
// Copyright © 2017 Martin Bürner. All rights reserved.
// Licensed under the MIT License. See LICENSE.md file in the project root for full license information.
//
#ifndef Filterbank_hpp
#define Filterbank_hpp
#include "Filter.hpp"
#includ... | 28.914729 | 111 | 0.64933 | Buerner |
4d50278f24dab8808e5bfef501656e3854985ffe | 1,226 | cpp | C++ | src/core/ofxLaserQuadMask.cpp | suaretjorge/laser_ofx | 42d733489947c95cc83505f5708e89309f7d856f | [
"MIT"
] | 228 | 2015-08-19T06:33:13.000Z | 2022-03-21T13:38:47.000Z | src/core/ofxLaserQuadMask.cpp | suaretjorge/laser_ofx | 42d733489947c95cc83505f5708e89309f7d856f | [
"MIT"
] | 19 | 2018-06-29T17:22:39.000Z | 2022-03-11T17:48:42.000Z | src/core/ofxLaserQuadMask.cpp | suaretjorge/laser_ofx | 42d733489947c95cc83505f5708e89309f7d856f | [
"MIT"
] | 27 | 2015-11-21T02:31:51.000Z | 2022-03-20T02:25:55.000Z | //
// ofxLaserQuadMask.cpp
// ofxLaser
//
// Created by Seb Lee-Delisle on 16/04/2021.
//
#include "ofxLaserQuadMask.h"
using namespace ofxLaser;
QuadMask::QuadMask() : QuadGui() {
maskLevel.set("Reduction amount", 100, 0,100);
setColours(ofColor::red,ofColor::red,ofColor::red);
maskLevel.addListener... | 17.027778 | 64 | 0.621533 | suaretjorge |
4d517b40e25735f6b9510b667f4d331afbd5b6cc | 3,664 | hpp | C++ | Sources/epoch_config/Configs/CfgMissions/CfgExample.hpp | Schalldampfer/Epoch | 9c222bb556c704e4640daba6a5195e2e55df36e1 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2018-07-05T22:14:29.000Z | 2018-07-05T22:14:29.000Z | Sources/epoch_config/Configs/CfgMissions/CfgExample.hpp | Schalldampfer/Epoch | 9c222bb556c704e4640daba6a5195e2e55df36e1 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | Sources/epoch_config/Configs/CfgMissions/CfgExample.hpp | Schalldampfer/Epoch | 9c222bb556c704e4640daba6a5195e2e55df36e1 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | /*
Author: Andrew Gregory - EpochMod.com
Contributors:
Description:
Example Mission file containing individual tasks (Commented)
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
https://github.com/EpochModT... | 48.210526 | 177 | 0.66512 | Schalldampfer |
4d54f1c91ce4a6b3330e6317c16fdb3f6939b022 | 368 | cpp | C++ | MindlessEngine/src/random.cpp | morswin22/mindless | 293070c90d47a675c39ca9dae629a81407bbdaa7 | [
"MIT"
] | null | null | null | MindlessEngine/src/random.cpp | morswin22/mindless | 293070c90d47a675c39ca9dae629a81407bbdaa7 | [
"MIT"
] | null | null | null | MindlessEngine/src/random.cpp | morswin22/mindless | 293070c90d47a675c39ca9dae629a81407bbdaa7 | [
"MIT"
] | null | null | null | #include <MindlessEngine/random.hpp>
#include <random>
namespace MindlessEngine
{
bool randomBool()
{
return rand() % 2 == 0;
}
int randomInt(int min, int max)
{
return rand() % (max - min) + min;
}
float randomFloat(float min, float max)
{
return static_cast<float>(rand()) / static_ca... | 16 | 89 | 0.61413 | morswin22 |
4d610441d601270e6fe0367461454adb855687b9 | 15,843 | cpp | C++ | src/sgct/correction/scalable.cpp | sgct/sgct | 0a4596ff2ea90c9f0dfbddd7b14f7ecee783baf1 | [
"libpng-2.0"
] | 7 | 2020-02-11T15:03:48.000Z | 2022-01-08T04:04:58.000Z | src/sgct/correction/scalable.cpp | sgct/sgct | 0a4596ff2ea90c9f0dfbddd7b14f7ecee783baf1 | [
"libpng-2.0"
] | 28 | 2020-01-24T11:24:43.000Z | 2022-03-03T15:48:10.000Z | src/sgct/correction/scalable.cpp | sgct/sgct | 0a4596ff2ea90c9f0dfbddd7b14f7ecee783baf1 | [
"libpng-2.0"
] | 5 | 2020-02-19T08:26:25.000Z | 2022-01-08T04:05:10.000Z | /*****************************************************************************************
* SGCT *
* Simple Graphics Cluster Toolkit *
* ... | 34.97351 | 90 | 0.4828 | sgct |
4d62726292e44622f4b41b1ae3c1abff39a9c500 | 182 | hpp | C++ | test_main/src/world/entity_viewer.hpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | 15 | 2020-01-15T13:04:36.000Z | 2022-02-18T17:08:25.000Z | test_main/src/world/entity_viewer.hpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | 3 | 2015-09-09T08:16:30.000Z | 2015-11-24T16:22:48.000Z | test_main/src/world/entity_viewer.hpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | 1 | 2021-12-06T07:19:05.000Z | 2021-12-06T07:19:05.000Z | #pragma once
#include <higanbana/core/entity/database.hpp>
namespace app
{
class EntityView
{
bool m_show = false;
public:
void render(higanbana::Database<2048>& ecs);
};
}; | 15.166667 | 48 | 0.708791 | jgavert |
4d6352728663d5c2cf84aede3c8de94c50e3afe8 | 2,978 | cpp | C++ | src/new_logical_plan/setkv_planner.cpp | phantom9999/BaikalDB | 094a7fc457cb345d8e9834a052d7bc17e996999f | [
"Apache-2.0"
] | 1 | 2018-08-07T13:33:47.000Z | 2018-08-07T13:33:47.000Z | src/new_logical_plan/setkv_planner.cpp | MinHaoSun/BaikalDB | 191870058f1956d8b50258526aef92c24fc0262f | [
"Apache-2.0"
] | null | null | null | src/new_logical_plan/setkv_planner.cpp | MinHaoSun/BaikalDB | 191870058f1956d8b50258526aef92c24fc0262f | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2018 Baidu, Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... | 35.452381 | 85 | 0.606447 | phantom9999 |
4d6bf3391ac5a292c1ac00a9fabe03a7f42903b6 | 917 | cpp | C++ | a pattern to form Empty square and each axis sum is equal or less than the number entered by user.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | a pattern to form Empty square and each axis sum is equal or less than the number entered by user.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | a pattern to form Empty square and each axis sum is equal or less than the number entered by user.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main ()
{
int s = 1;
int x = 0;
{
int y = 0;
cout << "Enter size:" << "\n";
cin >> x;
x = x / 2;
y = x;
while (x >= 1)
{
int i = 1;
while (i <= x)
{
cout << i;
i++;
}
int j = s;
while (j > 1)
{
cout << " ";
j... | 12.736111 | 34 | 0.268266 | Faiquekhan15 |
4d6d4c950f3a6cb1bed7f040dcc4f2afc2d2f335 | 2,088 | cpp | C++ | BenchineSandbox/BenchineCore/Debugging/Logger.cpp | DatTestBench/BenchineSandbox | 7f059cfdbed20653d1f7dca1f2a26f7904f54f0d | [
"MIT"
] | 1 | 2021-03-04T09:51:24.000Z | 2021-03-04T09:51:24.000Z | BenchineSandbox/BenchineCore/Debugging/Logger.cpp | DatTestBench/BenchineSandbox | 7f059cfdbed20653d1f7dca1f2a26f7904f54f0d | [
"MIT"
] | null | null | null | BenchineSandbox/BenchineCore/Debugging/Logger.cpp | DatTestBench/BenchineSandbox | 7f059cfdbed20653d1f7dca1f2a26f7904f54f0d | [
"MIT"
] | 1 | 2021-03-04T09:51:31.000Z | 2021-03-04T09:51:31.000Z | #include "Debugging/Logger.hpp"
#include <regex>
#include "Core/CoreBasicTypes.hpp"
void Logger::OutputLog() noexcept
{
// Remove already displayed logs
m_LogList.remove_if([] (const LogEntry& entry) { return entry.markedForClear; });
if (ImGui::Begin("Log"))
{
if (ImGui::BeginCombo("LevelSelection", ENUM_TO_C... | 26.769231 | 142 | 0.624521 | DatTestBench |
4d6f1bcfad23dde134add3a19369571f775426c4 | 11,049 | cpp | C++ | Tuvok/Basics/LargeFileAIO.cpp | JensDerKrueger/ImageVis3D | 699ab32132c899b7ea227bc87a9de80768ab879f | [
"MIT"
] | null | null | null | Tuvok/Basics/LargeFileAIO.cpp | JensDerKrueger/ImageVis3D | 699ab32132c899b7ea227bc87a9de80768ab879f | [
"MIT"
] | null | null | null | Tuvok/Basics/LargeFileAIO.cpp | JensDerKrueger/ImageVis3D | 699ab32132c899b7ea227bc87a9de80768ab879f | [
"MIT"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2011 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation ... | 31.933526 | 81 | 0.624129 | JensDerKrueger |
4d7240bc9914db84b8b4801426d6a3dac4a6ebc4 | 3,525 | cpp | C++ | core/archive/pending_drafts.cpp | mail-ru-im/im-desktop | d6bb606650ad84b31046fe39b81db1fec4e6050b | [
"Apache-2.0"
] | 81 | 2019-09-18T13:53:17.000Z | 2022-03-19T00:44:20.000Z | core/archive/pending_drafts.cpp | mail-ru-im/im-desktop | d6bb606650ad84b31046fe39b81db1fec4e6050b | [
"Apache-2.0"
] | 4 | 2019-10-03T15:17:00.000Z | 2019-11-03T01:05:41.000Z | core/archive/pending_drafts.cpp | mail-ru-im/im-desktop | d6bb606650ad84b31046fe39b81db1fec4e6050b | [
"Apache-2.0"
] | 25 | 2019-09-27T16:56:02.000Z | 2022-03-14T07:11:14.000Z | #include "stdafx.h"
#include "pending_drafts.h"
#include "tools/system.h"
namespace
{
enum data_tlv_fields : uint32_t
{
tlv_contact = 1,
tlv_timestamp = 2,
};
}
namespace core::archive
{
pending_drafts::pending_drafts(std::wstring _data_path)
: storage_(std::make_unique<storage>(std::move(_data_path)))
{
... | 27.539063 | 163 | 0.676312 | mail-ru-im |
4d761c8fbbdaa3c1d4d5d27ebab9ffdacf17a1b5 | 14,599 | cpp | C++ | src/parser/parsed_data/alter_table_info.cpp | taniabogatsch/duckdb | dbb043b1149bdd70feec5cce131222d7897a3b91 | [
"MIT"
] | null | null | null | src/parser/parsed_data/alter_table_info.cpp | taniabogatsch/duckdb | dbb043b1149bdd70feec5cce131222d7897a3b91 | [
"MIT"
] | null | null | null | src/parser/parsed_data/alter_table_info.cpp | taniabogatsch/duckdb | dbb043b1149bdd70feec5cce131222d7897a3b91 | [
"MIT"
] | null | null | null | #include "duckdb/parser/parsed_data/alter_table_info.hpp"
#include "duckdb/common/field_writer.hpp"
#include "duckdb/parser/constraint.hpp"
namespace duckdb {
AlterInfo::AlterInfo(AlterType type, string schema_p, string name_p)
: type(type), schema(move(schema_p)), name(move(name_p)) {
}
AlterInfo::~AlterInfo() ... | 41.356941 | 120 | 0.672443 | taniabogatsch |
4d768bca2fa5686ba42840316f1b55b19567470b | 939 | hpp | C++ | 3DRadSpace/3DRadSpaceDll/StencilState.hpp | NicusorN5/3D_Rad_Space | 029c52817deb08db17f46bef6246413a115d9e1d | [
"CC0-1.0"
] | 9 | 2017-01-10T11:47:06.000Z | 2021-11-27T14:32:55.000Z | 3DRadSpace/3DRadSpaceDll/StencilState.hpp | NicusorN5/3D_Rad_Space | 029c52817deb08db17f46bef6246413a115d9e1d | [
"CC0-1.0"
] | null | null | null | 3DRadSpace/3DRadSpaceDll/StencilState.hpp | NicusorN5/3D_Rad_Space | 029c52817deb08db17f46bef6246413a115d9e1d | [
"CC0-1.0"
] | 6 | 2017-07-08T23:03:43.000Z | 2022-03-08T07:47:13.000Z | #pragma once
#include "Globals.hpp"
#include "Game.hpp"
#ifdef __DIRECTXVER
#include <d3d11.h>
namespace Engine3DRadSpace
{
class DLLEXPORT Game; //:pain:
/// <summary>
/// Represents a stencil state
/// </summary>
class DLLEXPORT StencilState
{
ID3D11Texture2D* _stenciltexture;
ID3D11DepthStencilState* _... | 21.837209 | 77 | 0.696486 | NicusorN5 |
4d76c42699682dcb05ba700dea10b2154fadbb65 | 1,744 | cc | C++ | test/random/distributions/ReciprocalDistribution.test.cc | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | 22 | 2020-03-31T14:18:22.000Z | 2022-01-10T09:43:06.000Z | test/random/distributions/ReciprocalDistribution.test.cc | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | 261 | 2020-04-29T15:14:29.000Z | 2022-03-31T19:07:14.000Z | test/random/distributions/ReciprocalDistribution.test.cc | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | 15 | 2020-05-01T19:47:19.000Z | 2021-12-25T06:12:09.000Z | //----------------------------------*-C++-*----------------------------------//
// Copyright 2021 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 31.709091 | 79 | 0.455275 | amandalund |
4d7ab6d48a3cba3e188fda2425868c7172932a71 | 2,912 | cc | C++ | util/uring/uring_socket_test.cc | romange/async | 30d387fa0f2b5eee32eec570781be00157b2d07d | [
"Apache-2.0"
] | 8 | 2020-10-14T14:12:56.000Z | 2021-10-06T15:53:51.000Z | util/uring/uring_socket_test.cc | romange/async | 30d387fa0f2b5eee32eec570781be00157b2d07d | [
"Apache-2.0"
] | null | null | null | util/uring/uring_socket_test.cc | romange/async | 30d387fa0f2b5eee32eec570781be00157b2d07d | [
"Apache-2.0"
] | null | null | null | // Copyright 2021, Beeri 15. All rights reserved.
// Author: Roman Gershman (romange@gmail.com)
//
#include "util/uring/uring_socket.h"
#include "base/gtest.h"
#include "base/logging.h"
namespace util {
namespace uring {
constexpr uint32_t kRingDepth = 8;
using namespace std;
namespace fibers = boost::fibers;
cla... | 26 | 96 | 0.691277 | romange |
4d7b98b8a81b59050576edbf404801cc74655de5 | 5,376 | hpp | C++ | excercise13/includes/bstree.hpp | kdzlvaids/algorithm_and_practice-pknu-2016 | 3a03d3445aa91423e4aa899ebc16043359d8d504 | [
"MIT"
] | null | null | null | excercise13/includes/bstree.hpp | kdzlvaids/algorithm_and_practice-pknu-2016 | 3a03d3445aa91423e4aa899ebc16043359d8d504 | [
"MIT"
] | null | null | null | excercise13/includes/bstree.hpp | kdzlvaids/algorithm_and_practice-pknu-2016 | 3a03d3445aa91423e4aa899ebc16043359d8d504 | [
"MIT"
] | null | null | null | #ifndef __BSTREE_HPP
#define __BSTREE_HPP 1
#include <iostream>
#include <string>
#include <queue>
#include "bstelement.hpp"
#include "bstnode.hpp"
class binary_search_tree
{
private:
bstnode *root;
bstnode *new_node(bstelement *element);
void delete_node(bstnode *node);
void clear_all_child(bs... | 22.779661 | 104 | 0.603981 | kdzlvaids |
4d7f39776fd72472339ade9a2d90bf4573d42042 | 625 | cpp | C++ | 9934.cpp | programmer-k/Baekjoon-Online-Judge-Submission | f4ea98b7e3cd101250de9e495982f218e80c37fb | [
"Apache-2.0"
] | null | null | null | 9934.cpp | programmer-k/Baekjoon-Online-Judge-Submission | f4ea98b7e3cd101250de9e495982f218e80c37fb | [
"Apache-2.0"
] | null | null | null | 9934.cpp | programmer-k/Baekjoon-Online-Judge-Submission | f4ea98b7e3cd101250de9e495982f218e80c37fb | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int k, tree[1024], limit = 1;
void GetInput()
{
cin.tie(NULL);
ios::sync_with_stdio(false);
cin >> k;
}
void InorderTraversal(int i)
{
if (i >= limit)
return;
InorderTraversal(2 * i);
cin >> tree[i];
InorderTraversal(2 * i + 1);
}
void CreateTree()
{
for (int i =... | 12.755102 | 45 | 0.5792 | programmer-k |
4d8352d8f000853c82d1c4a3d2858a3de805dbad | 2,107 | cpp | C++ | src/HTTPSServer.cpp | abelsensors/esp32_https_server | e568d8321764cce26ab76976f6489065b3744c7a | [
"MIT"
] | 221 | 2018-06-11T07:47:54.000Z | 2022-03-28T17:56:06.000Z | src/HTTPSServer.cpp | abelsensors/esp32_https_server | e568d8321764cce26ab76976f6489065b3744c7a | [
"MIT"
] | 128 | 2017-12-19T18:18:58.000Z | 2022-03-22T01:15:26.000Z | src/HTTPSServer.cpp | abelsensors/esp32_https_server | e568d8321764cce26ab76976f6489065b3744c7a | [
"MIT"
] | 82 | 2018-04-29T01:14:47.000Z | 2022-03-21T11:32:02.000Z | #include "HTTPSServer.hpp"
namespace httpsserver {
HTTPSServer::HTTPSServer(SSLCert * cert, const uint16_t port, const uint8_t maxConnections, const in_addr_t bindAddress):
HTTPServer(port, maxConnections, bindAddress),
_cert(cert) {
// Configure runtime data
_sslctx = NULL;
}
HTTPSServer::~HTTPSServer() {... | 20.456311 | 121 | 0.663977 | abelsensors |
4d87da0b2eb497bb7f66304da5bce8d082dcff44 | 242 | hh | C++ | neb/inc/com/centreon/engine/hash.hh | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 40 | 2015-03-10T07:55:39.000Z | 2021-06-11T10:13:56.000Z | neb/inc/com/centreon/engine/hash.hh | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 297 | 2015-04-30T10:02:04.000Z | 2022-03-09T13:31:54.000Z | neb/inc/com/centreon/engine/hash.hh | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 29 | 2015-08-03T10:04:15.000Z | 2021-11-25T12:21:00.000Z | #ifndef CCE_HASH_HH
#define CCE_HASH_HH
struct pair_hash {
template <class T1, class T2>
std::size_t operator()(const std::pair<T1, T2>& pair) const {
return std::hash<T1>()(pair.first) ^ std::hash<T2>()(pair.second);
}
};
#endif
| 20.166667 | 70 | 0.665289 | centreon-lab |
4d91b8be78f45ba750d1e333ab3797ab23508098 | 34,082 | cpp | C++ | VK9-Library/Perf_StateManager.cpp | mmmaisel/VK9 | b8dc0be644d1a455bfcb64fdb3f8800d0d8a481a | [
"Zlib"
] | 1 | 2020-07-20T19:08:25.000Z | 2020-07-20T19:08:25.000Z | VK9-Library/Perf_StateManager.cpp | mmmaisel/VK9 | b8dc0be644d1a455bfcb64fdb3f8800d0d8a481a | [
"Zlib"
] | null | null | null | VK9-Library/Perf_StateManager.cpp | mmmaisel/VK9 | b8dc0be644d1a455bfcb64fdb3f8800d0d8a481a | [
"Zlib"
] | null | null | null | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/*
Copyright(c) 2018 Christopher Joseph Dean Schaefer
This software is provided 'as-is', without any express or implied
warranty.In no event will the authors... | 36.29606 | 235 | 0.751218 | mmmaisel |
4d99066f407f10b40f93357c5fed0b54ecf1ac98 | 788 | hpp | C++ | scripts/tts_lns/cfgFunctions.hpp | TheTimidShade/Timid-Lights-Sirens | 58729c0619254370336aaefd3b89c676593cef2a | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 3 | 2021-12-06T13:57:58.000Z | 2022-03-12T02:49:22.000Z | scripts/tts_lns/cfgFunctions.hpp | TheTimidShade/Timid-Lights-Sirens | 58729c0619254370336aaefd3b89c676593cef2a | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | scripts/tts_lns/cfgFunctions.hpp | TheTimidShade/Timid-Lights-Sirens | 58729c0619254370336aaefd3b89c676593cef2a | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | class tts_lns
{
class lns
{
file = "scripts\tts_lns\functions";
class init { postInit = 1; };
class addSiren {};
class removeSiren {};
class turnLightsOn {};
class turnSirenOn {};
class createSirenSound {};
class addSirenActions {};
class r... | 26.266667 | 47 | 0.571066 | TheTimidShade |
4d9c4e74ab7c753d6dfdeaf5f637333f13088a65 | 3,482 | hpp | C++ | graphblas/backend/cuda/transpose.hpp | BenBrock/graphblast | c4909e115740e94ab65458a7e1177cbc76b1828d | [
"Apache-2.0"
] | 155 | 2019-01-19T12:15:12.000Z | 2022-03-21T02:59:03.000Z | graphblas/backend/cuda/transpose.hpp | BenBrock/graphblast | c4909e115740e94ab65458a7e1177cbc76b1828d | [
"Apache-2.0"
] | 16 | 2019-05-02T19:29:57.000Z | 2021-06-30T07:22:57.000Z | graphblas/backend/cuda/transpose.hpp | BenBrock/graphblast | c4909e115740e94ab65458a7e1177cbc76b1828d | [
"Apache-2.0"
] | 20 | 2019-06-10T17:36:41.000Z | 2022-03-23T19:48:26.000Z | #ifndef GRAPHBLAS_BACKEND_CUDA_TRANSPOSE_HPP_
#define GRAPHBLAS_BACKEND_CUDA_TRANSPOSE_HPP_
#include <cusparse.h>
#include <iostream>
#include <vector>
#include "graphblas/types.hpp"
namespace graphblas {
namespace backend {
template <typename T>
class Matrix;
template <typename a, typename b>
Info cusparseTransp... | 29.260504 | 68 | 0.626939 | BenBrock |
4d9d9b693c40ffaf9a82c089ae1988dead8a19ae | 832 | cpp | C++ | matrix_multiplier.cpp | iansimonson/math_suite | c8da2dc4b6461adfa892b0352799f223357df803 | [
"MIT"
] | null | null | null | matrix_multiplier.cpp | iansimonson/math_suite | c8da2dc4b6461adfa892b0352799f223357df803 | [
"MIT"
] | null | null | null | matrix_multiplier.cpp | iansimonson/math_suite | c8da2dc4b6461adfa892b0352799f223357df803 | [
"MIT"
] | null | null | null | #include <iostream>
#include "matrix.h"
using namespace MatProps;
void welcome(void);
void parseInput(const std::string & input);
int main() {
welcome();
std::string input = "";
bool quit = false;
do {
std::cout << "=$> ";
getline(std::cin, input, '\n');
if(input == "quit" || input == "q" || input == "... | 16.979592 | 57 | 0.569712 | iansimonson |
4da2fe2c73a177429e7c283608ba4fe472d188e1 | 10,835 | cpp | C++ | src/marker.cpp | elvisdukaj/markerdetector | 5e926404885969fc088286eaca15aa550751f158 | [
"BSD-2-Clause"
] | 2 | 2018-06-20T10:51:48.000Z | 2018-06-20T10:51:52.000Z | src/marker.cpp | elvisdukaj/markerdetector | 5e926404885969fc088286eaca15aa550751f158 | [
"BSD-2-Clause"
] | null | null | null | src/marker.cpp | elvisdukaj/markerdetector | 5e926404885969fc088286eaca15aa550751f158 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2017 Elvis Dukaj
//
// 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, publis... | 30.435393 | 117 | 0.58754 | elvisdukaj |
4da477d92255f15125096d538c5a0042c5458fad | 1,792 | cpp | C++ | boost.asio/network-programming/client-server/client_connection.cpp | pvthuyet/books | bac5f754a68243e463ec7b0d93610be8807b31ac | [
"BSL-1.0"
] | null | null | null | boost.asio/network-programming/client-server/client_connection.cpp | pvthuyet/books | bac5f754a68243e463ec7b0d93610be8807b31ac | [
"BSL-1.0"
] | null | null | null | boost.asio/network-programming/client-server/client_connection.cpp | pvthuyet/books | bac5f754a68243e463ec7b0d93610be8807b31ac | [
"BSL-1.0"
] | null | null | null | #include "client_connection.hpp"
#include "logger.hpp"
using namespace std::literals;
SG_BEGIN
ClientConnection::ClientConnection(boost::shared_ptr<hive> hiv) :
Connection(hiv)
{
}
void ClientConnection::OnAccept(const std::string& host, boost::uint16_t port)
{
LOGENTER;
LOGINFO(BOOST_CURRENT_LOCATION, host, ":",... | 21.333333 | 79 | 0.670759 | pvthuyet |
4db6b3c6b73e7beabf3f2963e48e3e727044830f | 2,171 | cpp | C++ | Team01/Game/Project/ShopShip.cpp | OiCGame/GameJam03 | 535fff1e39a3c509c4104029bd40386c5d8b4a69 | [
"MIT"
] | null | null | null | Team01/Game/Project/ShopShip.cpp | OiCGame/GameJam03 | 535fff1e39a3c509c4104029bd40386c5d8b4a69 | [
"MIT"
] | null | null | null | Team01/Game/Project/ShopShip.cpp | OiCGame/GameJam03 | 535fff1e39a3c509c4104029bd40386c5d8b4a69 | [
"MIT"
] | 1 | 2021-02-01T02:48:17.000Z | 2021-02-01T02:48:17.000Z | #include "ShopShip.h"
CShopShip::CShopShip() :
m_Position(),
m_pTexture(),
m_bShow(false),
m_pTextures(),
m_pPlayer(),
m_Items(),
m_TransportDistance(0),
m_TransportDistanceCount(0) {
}
CShopShip::~CShopShip() {
}
void CShopShip::SetTexutre(Mof::CTexture * ptr) {
this->m_pTexture = ptr;
}
void CShopShip::... | 21.71 | 83 | 0.683095 | OiCGame |
4db88cbcd2cfe45edc3beb0876a025494fcc9e94 | 1,751 | cpp | C++ | src/HTTPSClient.cpp | Ishiko-Cpp/HTTP | a430f8940428db91f8d7c5c76d8e9a942c21ab7b | [
"MIT"
] | null | null | null | src/HTTPSClient.cpp | Ishiko-Cpp/HTTP | a430f8940428db91f8d7c5c76d8e9a942c21ab7b | [
"MIT"
] | 3 | 2022-03-02T15:45:22.000Z | 2022-03-26T15:09:30.000Z | src/HTTPSClient.cpp | Ishiko-Cpp/HTTP | a430f8940428db91f8d7c5c76d8e9a942c21ab7b | [
"MIT"
] | null | null | null | /*
Copyright (c) 2022 Xavier Leclercq
Released under the MIT License
See https://github.com/ishiko-cpp/http/blob/main/LICENSE.txt
*/
#include "HTTPRequest.hpp"
#include "HTTPResponsePushParser.hpp"
#include "HTTPSClient.hpp"
using namespace Ishiko;
void HTTPSClient::Get(IPv4Address address, Port port, co... | 27.793651 | 119 | 0.662479 | Ishiko-Cpp |
4db9583160d5f575073bff7a8a9d596b0a4be571 | 1,552 | cpp | C++ | Entrega3/main.cpp | driden/E3 | 86dcdbe559dd98c60409f1035c79ea4c15210444 | [
"MIT"
] | null | null | null | Entrega3/main.cpp | driden/E3 | 86dcdbe559dd98c60409f1035c79ea4c15210444 | [
"MIT"
] | null | null | null | Entrega3/main.cpp | driden/E3 | 86dcdbe559dd98c60409f1035c79ea4c15210444 | [
"MIT"
] | null | null | null | #include "CasoDePrueba.h"
#include "PruebaMemoria.h"
#include "ConductorPrueba.h"
#include "Sistema.h"
Puntero<Sistema> Inicializar()
{
return new Sistema();
}
void main()
{
bool consola = false;
if (!consola) {
Puntero<ConductorPrueba> cp = new ConductorPrueba();
Array<Puntero<Prueba>> pruebas = Array<Punte... | 23.515152 | 134 | 0.634665 | driden |
4dbab89d8d4d9fbebd6c865e8d1e2520b2ba2b99 | 46,605 | cpp | C++ | sucpp/api.cpp | iankrout/StripedUnifrac | 4fb98b89ece30bc173b63ff9c478330394c25b2f | [
"BSD-3-Clause"
] | null | null | null | sucpp/api.cpp | iankrout/StripedUnifrac | 4fb98b89ece30bc173b63ff9c478330394c25b2f | [
"BSD-3-Clause"
] | null | null | null | sucpp/api.cpp | iankrout/StripedUnifrac | 4fb98b89ece30bc173b63ff9c478330394c25b2f | [
"BSD-3-Clause"
] | null | null | null | #include "api.hpp"
#include "biom.hpp"
#include "tree.hpp"
#include "unifrac.hpp"
#include <fstream>
#include <iomanip>
#include <thread>
#include <cstring>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <lz4.h>
#define MMAP_FD_MASK 0x0fff
#define MMAP_FLAG 0x1000
/* O_NOATIME is defined a... | 38.805162 | 146 | 0.612037 | iankrout |
4dbc39b759bc5b0a1f8f27a71bbc28f42b04542f | 15,752 | hpp | C++ | include/shared_flag/shared_flag_reader.hpp | peter-bloomfield/shared_flag | 43d554a2b442f23c07b413c726748013c489190b | [
"MIT"
] | null | null | null | include/shared_flag/shared_flag_reader.hpp | peter-bloomfield/shared_flag | 43d554a2b442f23c07b413c726748013c489190b | [
"MIT"
] | null | null | null | include/shared_flag/shared_flag_reader.hpp | peter-bloomfield/shared_flag | 43d554a2b442f23c07b413c726748013c489190b | [
"MIT"
] | null | null | null | /**
* @file shared_flag_reader.hpp
* @brief Declares a class which can read the state of a shared flag.
* @author Peter Bloomfield (https://peter.bloomfield.online)
* @copyright MIT License
*/
#ifndef PRB_SHARED_FLAG_READER_HPP_INCLUDED
#define PRB_SHARED_FLAG_READER_HPP_INCLUDED
#include <chrono>
#include <cond... | 46.60355 | 107 | 0.620112 | peter-bloomfield |
4dbce4ea1d47bd61381bb757dbd15f82e0d606c2 | 496 | hpp | C++ | source/xyo-pixel32--dependency.hpp | g-stefan/xyo-pixel32 | 2f0e7500473f38ccffdff19e864f262b9f36056d | [
"MIT",
"Unlicense"
] | null | null | null | source/xyo-pixel32--dependency.hpp | g-stefan/xyo-pixel32 | 2f0e7500473f38ccffdff19e864f262b9f36056d | [
"MIT",
"Unlicense"
] | null | null | null | source/xyo-pixel32--dependency.hpp | g-stefan/xyo-pixel32 | 2f0e7500473f38ccffdff19e864f262b9f36056d | [
"MIT",
"Unlicense"
] | null | null | null | //
// XYO Pixel32
//
// Copyright (c) 2020-2021 Grigore Stefan <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// MIT License (MIT) <http://opensource.org/licenses/MIT>
//
#ifndef XYO_PIXEL32__DEPENDENCY_HPP
#define XYO_PIXEL32__DEPENDENCYHPP
#ifndef XYO_HPP
#include "xyo.hpp"
... | 19.076923 | 63 | 0.719758 | g-stefan |
4dbd2dfb747ae75d885e8f21ef6a6f973874e68c | 17,136 | cpp | C++ | Libraries/MelobaseCore/Source/Sync/folderssync.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Libraries/MelobaseCore/Source/Sync/folderssync.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Libraries/MelobaseCore/Source/Sync/folderssync.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | //
// folderssync.cpp
// MelobaseCore
//
// Created by Daniel Cliche on 2021-01-28.
// Copyright (c) 2021 Daniel Cliche. All rights reserved.
//
#include "folderssync.h"
#define CPPHTTPLIB_USE_POLL
#include <httplib.h>
#include <sstream>
#include "folderpull.h"
#include "folderpush.h"
#include "sync.h"
using n... | 35.259259 | 120 | 0.570145 | dcliche |
4dc3563a455107ae7ab294f90eba3fbb525c06c3 | 20 | cpp | C++ | OpticSiege/src/ops_pch.cpp | CJBuchel/SiegeOptic | e8aca15b9d988d6efeaf0191c66a8d18267e5764 | [
"MIT"
] | null | null | null | OpticSiege/src/ops_pch.cpp | CJBuchel/SiegeOptic | e8aca15b9d988d6efeaf0191c66a8d18267e5764 | [
"MIT"
] | null | null | null | OpticSiege/src/ops_pch.cpp | CJBuchel/SiegeOptic | e8aca15b9d988d6efeaf0191c66a8d18267e5764 | [
"MIT"
] | null | null | null | #include "ops_pch.h" | 20 | 20 | 0.75 | CJBuchel |
4dc4cb48d71669140b7496bc6112b981d6b776fa | 1,089 | hh | C++ | src/linac/rfgap/RfGapTTF.hh | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 17 | 2018-02-09T23:39:06.000Z | 2022-03-04T16:27:04.000Z | src/linac/rfgap/RfGapTTF.hh | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 22 | 2017-05-31T19:40:14.000Z | 2021-09-24T22:07:47.000Z | src/linac/rfgap/RfGapTTF.hh | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 37 | 2016-12-08T19:39:35.000Z | 2022-02-11T19:59:34.000Z | /**
This class represents a Parmila type RF gap. It acts on the coordinates
of the particle by using the transit time factors. The model includes
non-linearity in transverse direction.
*/
#ifndef TTF_RF_GAP_H
#define TTF_RF_GAP_H
//MPI Function Wrappers
#include "orbit_mpi.hh"
#include "wrap_mpi_comm.hh"
... | 21.352941 | 81 | 0.662994 | LeoRya |
4dcbe40eb783fc64f30256bcd4ef9d29458181ca | 18,585 | cpp | C++ | src/BakerMemoryManager.cpp | vlastachu/llst | ce3c6e416f94e4f25eaa6f4e376d422161b6b05c | [
"MIT"
] | null | null | null | src/BakerMemoryManager.cpp | vlastachu/llst | ce3c6e416f94e4f25eaa6f4e376d422161b6b05c | [
"MIT"
] | null | null | null | src/BakerMemoryManager.cpp | vlastachu/llst | ce3c6e416f94e4f25eaa6f4e376d422161b6b05c | [
"MIT"
] | null | null | null | /*
* BakerMemoryManager.cpp
*
* Implementation of BakerMemoryManager class
*
* LLST (LLVM Smalltalk or Low Level Smalltalk) version 0.2
*
* LLST is
* Copyright (C) 2012-2013 by Dmitry Kashitsyn <korvin@deeptown.org>
* Copyright (C) 2012-2013 by Roman Proskuryakov <humbug@deeptown.or... | 36.369863 | 131 | 0.627334 | vlastachu |
4de074ca992d93a3cceb1ae0bd7c1b5540176116 | 2,187 | cpp | C++ | test/framework/integration_framework/fake_peer/network/on_demand_os_network_notifier.cpp | alohamora/iroha | aa8be2c62fedaa2de08f94f2d920275ad9ae8ba7 | [
"Apache-2.0"
] | null | null | null | test/framework/integration_framework/fake_peer/network/on_demand_os_network_notifier.cpp | alohamora/iroha | aa8be2c62fedaa2de08f94f2d920275ad9ae8ba7 | [
"Apache-2.0"
] | null | null | null | test/framework/integration_framework/fake_peer/network/on_demand_os_network_notifier.cpp | alohamora/iroha | aa8be2c62fedaa2de08f94f2d920275ad9ae8ba7 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "framework/integration_framework/fake_peer/network/on_demand_os_network_notifier.hpp"
#include "backend/protobuf/proposal.hpp"
#include "framework/integration_framework/fake_peer/behaviour/behaviour.hpp"
#inc... | 36.45 | 94 | 0.71925 | alohamora |
4e3464280d485a9a23e7f43b14a3969dab3fa76c | 44 | hpp | C++ | src/boost_python_to_python_value.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_python_to_python_value.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_python_to_python_value.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/python/to_python_value.hpp>
| 22 | 43 | 0.818182 | miathedev |
4e3db34046665986fa4d942d8b2207b58330c2b7 | 18,950 | cpp | C++ | src/cc/Books/ElementsOfProgrammingInterviews/reference/ch16.cpp | nuggetwheat/study | 1e438a995c3c6ce783af9ae6a537c349afeedbb8 | [
"MIT"
] | null | null | null | src/cc/Books/ElementsOfProgrammingInterviews/reference/ch16.cpp | nuggetwheat/study | 1e438a995c3c6ce783af9ae6a537c349afeedbb8 | [
"MIT"
] | null | null | null | src/cc/Books/ElementsOfProgrammingInterviews/reference/ch16.cpp | nuggetwheat/study | 1e438a995c3c6ce783af9ae6a537c349afeedbb8 | [
"MIT"
] | null | null | null |
#include "ch16.hpp"
#include <algorithm>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <deque>
#include <fstream>
#include <iostream>
#include <istream>
#include <map>
#include <queue>
#include <random>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <string>
#inc... | 28.668684 | 119 | 0.572665 | nuggetwheat |
4e403ca0e3a4e8997d2547f94a2a6615702847e6 | 2,118 | hpp | C++ | include/smbioshandler.hpp | tohas1986/intel-ipmi-oem | ca99ef5912b9296e09c8f9cb246ce291f9970750 | [
"Apache-2.0"
] | null | null | null | include/smbioshandler.hpp | tohas1986/intel-ipmi-oem | ca99ef5912b9296e09c8f9cb246ce291f9970750 | [
"Apache-2.0"
] | null | null | null | include/smbioshandler.hpp | tohas1986/intel-ipmi-oem | ca99ef5912b9296e09c8f9cb246ce291f9970750 | [
"Apache-2.0"
] | null | null | null | /*
// Copyright (c) 2018 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 20.970297 | 75 | 0.728517 | tohas1986 |
4e4489647b9c5bbc014bb1cd043c8f8e597dd046 | 16,571 | cpp | C++ | src/out_md.cpp | raadyn/aztotmd | f5867e2368cacc5fcb4fea282c087c6592d12993 | [
"MIT"
] | 4 | 2021-11-17T21:46:33.000Z | 2022-01-05T10:36:41.000Z | src/out_md.cpp | raadyn/aztotmd | f5867e2368cacc5fcb4fea282c087c6592d12993 | [
"MIT"
] | null | null | null | src/out_md.cpp | raadyn/aztotmd | f5867e2368cacc5fcb4fea282c087c6592d12993 | [
"MIT"
] | 2 | 2021-12-13T07:58:04.000Z | 2022-01-14T16:39:54.000Z | #include <stdio.h> // FILE, fprintf, scanf
#include <stdlib.h> // malloc, alloc, rand, NULL
#include <math.h> // sqrt
#include <string.h> // strcmp
#include "utils.h" // int_size..
#include "dataStruct.h" // Sim, Box, Atoms ....
#include "box.h"
#include "out_md.h"
#include "sys_init.h"
void history_he... | 28.375 | 225 | 0.487659 | raadyn |
4e4b188087dd3498501a0eb36cef21790e852a9e | 1,521 | cpp | C++ | TriangleRotation.cpp | KevzPeter/Computer-Graphics-C-C- | cd05363dd9bad72795594e12584ae0f267f05724 | [
"MIT"
] | 1 | 2021-07-18T12:00:09.000Z | 2021-07-18T12:00:09.000Z | TriangleRotation.cpp | KevzPeter/Computer_Graphics | cd05363dd9bad72795594e12584ae0f267f05724 | [
"MIT"
] | null | null | null | TriangleRotation.cpp | KevzPeter/Computer_Graphics | cd05363dd9bad72795594e12584ae0f267f05724 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<process.h>
#include<math.h>
void TriAngle(int x1, int y1, int x2, int y2, int x3, int y3);
void Rotate(int x1, int y1, int x2, int y2, int x3, int y3);
int main(void) {
int gd = DETECT, gm;
int x1, y1, x2, y2, x3, y3;
initwindow(800,800);
... | 29.25 | 63 | 0.549638 | KevzPeter |
4e4cc2b5483efb701af8daf88a69a6ea5bfbf27b | 602 | hpp | C++ | plugins/opengl/include/sge/opengl/state/core/rasterizer/fill_mode.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/opengl/include/sge/opengl/state/core/rasterizer/fill_mode.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/opengl/include/sge/opengl/state/core/rasterizer/fill_mode.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_OPENGL_STATE_CORE_RASTERIZER_FILL_MODE_HPP_INCLUDED
#define SGE_OPENGL_STATE_CORE_RASTE... | 30.1 | 87 | 0.767442 | cpreh |
4e4d64fadc5987f3e49d061588c320d4f5b13902 | 38,260 | cpp | C++ | movieplayback/LFD_Film.cpp | kcat/XLEngine | 0e735ad67fa40632add3872e0cbe5a244689cbe5 | [
"MIT"
] | 1 | 2021-07-25T15:10:39.000Z | 2021-07-25T15:10:39.000Z | movieplayback/LFD_Film.cpp | kcat/XLEngine | 0e735ad67fa40632add3872e0cbe5a244689cbe5 | [
"MIT"
] | null | null | null | movieplayback/LFD_Film.cpp | kcat/XLEngine | 0e735ad67fa40632add3872e0cbe5a244689cbe5 | [
"MIT"
] | null | null | null | #include "LFD_Film.h"
#include "../math/Math.h"
#include "../fileformats/Archive.h"
#include "../fileformats/LFD_Anim.h"
#include "../render/IDriver3D.h"
#include <math.h>
#include <string.h>
//#include "SoundSystem.h"
char m_Cache[4*1024*1024];
LFD_Film::Graphic LFD_Film::m_GraphicsCache[1024];
PLTT_File LFD_Film::m... | 31.25817 | 161 | 0.429247 | kcat |
4e5c7f5ce43401606b3e074ff62437010d6236c6 | 11,997 | cpp | C++ | src/executable/dotplot.cpp | rlorigro/simple-dotplot | ec501a58c7f014b858fdc90096050f4a7d2bdaf8 | [
"MIT"
] | 1 | 2022-03-11T20:00:35.000Z | 2022-03-11T20:00:35.000Z | src/executable/dotplot.cpp | rlorigro/simple-dotplot | ec501a58c7f014b858fdc90096050f4a7d2bdaf8 | [
"MIT"
] | 1 | 2022-01-12T15:05:10.000Z | 2022-01-20T23:03:40.000Z | src/executable/dotplot.cpp | rlorigro/simple-dotplot | ec501a58c7f014b858fdc90096050f4a7d2bdaf8 | [
"MIT"
] | null | null | null | #include "IterativeSummaryStats.hpp"
#include "FastqIterator.hpp"
#include "FastaReader.hpp"
#include "Color.hpp"
#include "CLI11.hpp"
using simple_dotplot::FastqElement;
using simple_dotplot::FastqIterator;
#include <Filesystem.hpp>
#include <algorithm>
#include <stdexcept>
#include <iostream>
#include <fstream>
#in... | 32.25 | 183 | 0.598816 | rlorigro |
4e62d0d297614ea25f40e6c784c9a52aee57b704 | 406 | cpp | C++ | benchmarks/BM_matmul.cpp | devinmacalaladdt/Matrix | c0ea8eae74fe420c25488f7fe6b9ac3d34b6e1cf | [
"MIT"
] | null | null | null | benchmarks/BM_matmul.cpp | devinmacalaladdt/Matrix | c0ea8eae74fe420c25488f7fe6b9ac3d34b6e1cf | [
"MIT"
] | null | null | null | benchmarks/BM_matmul.cpp | devinmacalaladdt/Matrix | c0ea8eae74fe420c25488f7fe6b9ac3d34b6e1cf | [
"MIT"
] | null | null | null | #include <Matrix.hpp>
#include <benchmark/benchmark.h>
static void BM_matmul(benchmark::State &state) {
Matrix mat = matrix.genfromtxt("./datasets/boston/boston.csv",',');
Matrix mat1 = mat.slice(1, 5, 0, 2);
Matrix mat2 = mat.slice(7, 9, 0, 3);
mat1.to_double();
mat2.to_double();
for (auto _ :... | 25.375 | 71 | 0.647783 | devinmacalaladdt |
4e649a58aad7762f10668cbe9b35502e270c845c | 8,778 | cpp | C++ | src/math.cpp | mgreter/libsass-math | 6a94cfc83840adb349c40d50514793b3fb0a3eb0 | [
"MIT"
] | 8 | 2015-10-23T23:35:07.000Z | 2016-09-14T12:50:32.000Z | src/math.cpp | mgreter/libsass-math | 6a94cfc83840adb349c40d50514793b3fb0a3eb0 | [
"MIT"
] | 1 | 2017-08-15T17:38:59.000Z | 2017-08-15T17:38:59.000Z | src/math.cpp | mgreter/libsass-math | 6a94cfc83840adb349c40d50514793b3fb0a3eb0 | [
"MIT"
] | 1 | 2017-08-15T08:00:19.000Z | 2017-08-15T08:00:19.000Z | #include <cstring>
#include <iostream>
#include <stdint.h>
#include <math.h>
#include "sass.h"
// implement sign indicator (-1, 0, 1)
inline double sign(double x) { return x < 0 ? -1 : x > 0 ? 1 : 0; }
// implement factorial
unsigned int fact(unsigned int x)
{
unsigned int value = 1;
for(unsigned... | 40.827907 | 112 | 0.724425 | mgreter |
4e6af79ae3feac16817ba948c9d2aa7cf4b96ef2 | 1,631 | hpp | C++ | include/sanelli/tree/impl/output.hpp | sanelli/libsanelli | 040b4987ae664b8bcc7e5f6d130e84a5e7060fcc | [
"MIT"
] | null | null | null | include/sanelli/tree/impl/output.hpp | sanelli/libsanelli | 040b4987ae664b8bcc7e5f6d130e84a5e7060fcc | [
"MIT"
] | null | null | null | include/sanelli/tree/impl/output.hpp | sanelli/libsanelli | 040b4987ae664b8bcc7e5f6d130e84a5e7060fcc | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <memory>
#include <sstream>
#include <sanelli/tree/impl/node.hpp>
namespace sanelli
{
namespace impl
{
template <typename TValue>
void to_graphviz(std::shared_ptr<node<TValue>> node,
std::stringstream &stream_nodes,
std::stringstream &stream_a... | 28.614035 | 83 | 0.605763 | sanelli |
4e6d69c24fb4bb413d29b8c39bb3e77a131c58f3 | 2,640 | cpp | C++ | modules/task_1/kurguzikov_striping_signs_vector/main.cpp | Oskg/pp_2021_autumn | c05d35f4d4b324cc13e58188b4a0c0174f891976 | [
"BSD-3-Clause"
] | 1 | 2021-12-09T17:20:25.000Z | 2021-12-09T17:20:25.000Z | modules/task_1/kurguzikov_striping_signs_vector/main.cpp | Oskg/pp_2021_autumn | c05d35f4d4b324cc13e58188b4a0c0174f891976 | [
"BSD-3-Clause"
] | null | null | null | modules/task_1/kurguzikov_striping_signs_vector/main.cpp | Oskg/pp_2021_autumn | c05d35f4d4b324cc13e58188b4a0c0174f891976 | [
"BSD-3-Clause"
] | 3 | 2022-02-23T14:20:50.000Z | 2022-03-30T09:00:02.000Z | // Copyright 2021 Kurguzikov Kirill
#include <gtest/gtest.h>
#include "./kurguzikov_striping_signs_vector.h"
#include <./gtest-mpi-listener.hpp>
TEST(Tets_parallel_and_sequential, sequential_test) {
int procRank;
MPI_Comm_rank(MPI_COMM_WORLD, &procRank);
if (procRank == 0) {
const int size = 10;
int... | 22.956522 | 95 | 0.673106 | Oskg |
4e7e9ddaf90ea3d1f8a9217c84040532bac97d45 | 4,183 | cpp | C++ | Shoot/src/ColorVisitor.cpp | franticsoftware/vlad-heavy-strike | a4da4df617e9ccd6ebd9819ad166d892924638ce | [
"MIT"
] | 3 | 2019-10-04T19:44:44.000Z | 2021-07-27T15:59:39.000Z | Shoot/src/ColorVisitor.cpp | franticsoftware/vlad-heavy-strike | a4da4df617e9ccd6ebd9819ad166d892924638ce | [
"MIT"
] | 1 | 2019-07-20T05:36:31.000Z | 2019-07-20T22:22:49.000Z | Shoot/src/ColorVisitor.cpp | aminere/vlad-heavy-strike | a4da4df617e9ccd6ebd9819ad166d892924638ce | [
"MIT"
] | null | null | null | /*
Amine Rehioui
Created: April 9th 2011
*/
#include "Shoot.h"
#include "ColorVisitor.h"
#include "ExplosionVisitor.h"
#include "MeshEntity.h"
namespace shoot
{
DEFINE_OBJECT(ColorVisitor);
//! constructor
ColorVisitor::ColorVisitor()
// properties
: m_fAlpha(1.0f)
, m_fDuration(1.0f)
{
}
//! des... | 25.198795 | 137 | 0.692565 | franticsoftware |
4e80e5678669b76c8d4761d8b56d371ae4eb14d4 | 474 | cpp | C++ | Pbinfo/CreareNumar1.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 7 | 2019-01-06T19:10:14.000Z | 2021-10-16T06:41:23.000Z | Pbinfo/CreareNumar1.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | null | null | null | Pbinfo/CreareNumar1.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 6 | 2019-01-06T19:17:30.000Z | 2020-02-12T22:29:17.000Z | #include <iostream>
using namespace std;
void numar(int n, int a[100], int &k){
int maxim=-1, minim=999999, aux;
k=0;
for(int i=0; i<n; i++){
if(a[i]>maxim) maxim=a[i];
if(a[i]<minim) minim=a[i];
}
k=maxim;
aux=minim;
while(minim){
k=k*10;
minim/=10;
... | 12.810811 | 38 | 0.464135 | Al3x76 |
4e82ced93a15050859cdf6554491a1c45a47ad7a | 9,110 | cpp | C++ | src/kelpie/ops/direct/OpKelpiePublish.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-01-25T21:21:07.000Z | 2021-04-29T17:24:00.000Z | src/kelpie/ops/direct/OpKelpiePublish.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 8 | 2018-10-09T14:35:30.000Z | 2020-09-30T20:09:42.000Z | src/kelpie/ops/direct/OpKelpiePublish.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-04-23T19:01:36.000Z | 2021-05-11T07:44:55.000Z | // Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#include <iostream>
#include "kelpie/core/Singleton.hh"
#include "kelpie/ops/direct/OpKelpiePublish.hh"
using n... | 37.80083 | 157 | 0.696707 | faodel |
4e867002f4a2efdafe45e8e177842b470bb7f500 | 62,740 | cpp | C++ | src/jitcat/CatGenericType.cpp | Zueuk/JitCat | 04eb77a9acf6f8b36689c0aabcb6d68edd28f0fc | [
"MIT"
] | null | null | null | src/jitcat/CatGenericType.cpp | Zueuk/JitCat | 04eb77a9acf6f8b36689c0aabcb6d68edd28f0fc | [
"MIT"
] | null | null | null | src/jitcat/CatGenericType.cpp | Zueuk/JitCat | 04eb77a9acf6f8b36689c0aabcb6d68edd28f0fc | [
"MIT"
] | null | null | null | /*
This file is part of the JitCat library.
Copyright (C) Machiel van Hooren 2018
Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
*/
#include "jitcat/CatGenericType.h"
#include "jitcat/CatLog.h"
#include "jitcat/Configuration.h"
#include "jitcat/MemberFunctionInfo.h... | 29.400187 | 211 | 0.72335 | Zueuk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.