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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19c629d1c949ed973d3c2f9de99c167a5a7a3f4b | 50 | cpp | C++ | src/Compiler.cpp | RamblingMadMan/ilang-base | 79186d4667b1a3165c16d47e80b75ca225f58dd8 | [
"MIT"
] | null | null | null | src/Compiler.cpp | RamblingMadMan/ilang-base | 79186d4667b1a3165c16d47e80b75ca225f58dd8 | [
"MIT"
] | null | null | null | src/Compiler.cpp | RamblingMadMan/ilang-base | 79186d4667b1a3165c16d47e80b75ca225f58dd8 | [
"MIT"
] | null | null | null | #include "ilang/Util.hpp"
using namespace ilang;
| 12.5 | 25 | 0.76 | RamblingMadMan |
19ca1eb0bab7481bce1050562b1d289780578903 | 4,622 | cpp | C++ | core/alignment/AlignmentReader.cpp | dillonl/graphite | 798b4961f8eeebc0a633ecca5b26e27453dfe487 | [
"MIT"
] | 27 | 2015-09-17T08:35:51.000Z | 2021-04-07T02:37:37.000Z | core/alignment/AlignmentReader.cpp | dillonl/gwiz | 798b4961f8eeebc0a633ecca5b26e27453dfe487 | [
"MIT"
] | 6 | 2015-12-30T21:43:56.000Z | 2018-12-13T22:52:29.000Z | core/alignment/AlignmentReader.cpp | dillonl/graphite | 798b4961f8eeebc0a633ecca5b26e27453dfe487 | [
"MIT"
] | 7 | 2015-12-30T21:33:49.000Z | 2019-11-25T10:16:01.000Z | #include "AlignmentReader.h"
#include "core/util/Utility.h"
#include "cram/cram.h"
#include "cram/cram_io.h"
namespace graphite
{
// Example from here: https://www.biostars.org/p/151053/
AlignmentReader::AlignmentReader(const std::string& filename, const std::string& refPath) : m_path(filename), m_overwrite_sample... | 29.628205 | 209 | 0.661835 | dillonl |
19d1560d1b56a181dcb0aec4d30b651867fed4a1 | 4,135 | cpp | C++ | Plugins/SCUE4/Source/SCUE4/Private/ISCUE4.cpp | ArmainAP/Cheessy | e2e0fa2eb8fc111f944c45c238ad1dfaf96860f0 | [
"Apache-2.0"
] | null | null | null | Plugins/SCUE4/Source/SCUE4/Private/ISCUE4.cpp | ArmainAP/Cheessy | e2e0fa2eb8fc111f944c45c238ad1dfaf96860f0 | [
"Apache-2.0"
] | null | null | null | Plugins/SCUE4/Source/SCUE4/Private/ISCUE4.cpp | ArmainAP/Cheessy | e2e0fa2eb8fc111f944c45c238ad1dfaf96860f0 | [
"Apache-2.0"
] | 1 | 2021-12-24T03:19:09.000Z | 2021-12-24T03:19:09.000Z | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
// Copyright 2016 (C) Bruno Xavier B. Leite //
//////////////////////////////////////... | 50.426829 | 165 | 0.495284 | ArmainAP |
19d25539a108521048953fffd0eb961ad961e09b | 597 | cpp | C++ | src/GraphicsLib/Graphics/GPUResource/ShaderResource/Buffer/ConstantBuffer/D3D11/D3D11DynamicConstantBuffer.cpp | Sushiwave/graphics-lib | c303e9fb9f11276230a09b45581cdbefa8d2a356 | [
"MIT"
] | 1 | 2020-07-13T18:10:33.000Z | 2020-07-13T18:10:33.000Z | src/GraphicsLib/Graphics/GPUResource/ShaderResource/Buffer/ConstantBuffer/D3D11/D3D11DynamicConstantBuffer.cpp | Sushiwave/graphics-lib | c303e9fb9f11276230a09b45581cdbefa8d2a356 | [
"MIT"
] | null | null | null | src/GraphicsLib/Graphics/GPUResource/ShaderResource/Buffer/ConstantBuffer/D3D11/D3D11DynamicConstantBuffer.cpp | Sushiwave/graphics-lib | c303e9fb9f11276230a09b45581cdbefa8d2a356 | [
"MIT"
] | null | null | null | #include <Graphics/GPUResource/ShaderResource/Buffer/ConstantBuffer/D3D11/D3D11DynamicConstantBuffer.hpp>
namespace cg
{
namespace d3d11
{
DynamicConstantBuffer::DynamicConstantBuffer(unsigned int byteStride, const void* pData)
: ConstantBuffer(byteStride, pData)
{
}
void DynamicConstantBuffer::update... | 22.111111 | 105 | 0.758794 | Sushiwave |
19db1aad5f258dd8901a4fc4da898ab1be7c0ad9 | 358 | cpp | C++ | llarp/consensus/table.cpp | wratc/loki-network | 0d6d0ec7b27f80c2836eb5d4c4f6e7b1974dd178 | [
"Zlib"
] | 3 | 2018-11-17T07:38:39.000Z | 2021-04-29T23:39:47.000Z | llarp/consensus/table.cpp | wratc/loki-network | 0d6d0ec7b27f80c2836eb5d4c4f6e7b1974dd178 | [
"Zlib"
] | 1 | 2020-03-28T08:59:56.000Z | 2020-03-28T08:59:56.000Z | llarp/consensus/table.cpp | wratc/loki-network | 0d6d0ec7b27f80c2836eb5d4c4f6e7b1974dd178 | [
"Zlib"
] | 2 | 2021-01-28T05:36:14.000Z | 2021-01-28T05:47:53.000Z | #include <consensus/table.hpp>
#include <crypto/crypto.hpp>
namespace llarp
{
namespace consensus
{
ShortHash
Table::CalculateHash() const
{
ShortHash h;
const llarp_buffer_t buf(begin()->data(), size());
CryptoManager::instance()->shorthash(h, buf);
return h;
}
} // name... | 19.888889 | 56 | 0.636872 | wratc |
19deb479a62bfb1b92482efda6125c55b2b644fd | 828 | hpp | C++ | aech/src/systems/transparent_shadow_renderer.hpp | markomijolovic/aech | 6e2ea36146596dff6f92e451a598aab535b03d3c | [
"BSD-3-Clause"
] | 4 | 2021-05-25T13:58:30.000Z | 2021-05-26T20:13:15.000Z | aech/src/systems/transparent_shadow_renderer.hpp | markomijolovic/aech | 6e2ea36146596dff6f92e451a598aab535b03d3c | [
"BSD-3-Clause"
] | null | null | null | aech/src/systems/transparent_shadow_renderer.hpp | markomijolovic/aech | 6e2ea36146596dff6f92e451a598aab535b03d3c | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "directional_light.hpp"
#include "directional_light_renderer.hpp"
#include "framebuffer.hpp"
#include "framebuffer_library.hpp"
#include "material_library.hpp"
#include "resource_manager.hpp"
#include "system.hpp"
namespace aech::graphics {
class transparent_shadow_renderer_t : public ecs::syste... | 33.12 | 113 | 0.754831 | markomijolovic |
19ecf047253cfa58367e27e5f31b9f0d0364c693 | 954 | cpp | C++ | data/dailyCodingProblem16.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | 2 | 2020-09-04T20:56:23.000Z | 2021-06-11T07:42:26.000Z | data/dailyCodingProblem16.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | data/dailyCodingProblem16.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
You run an e-commerce website and want to record the last N order ids in a log.
Implement a data structure to accomplish this, with the following API:
record(order_id): adds the order_id to the log
get_last(i): gets the ith last element from the log. i is guaranteed to... | 20.73913 | 102 | 0.684486 | vidit1999 |
19edecff3844fdfb825f1e7b9eba0833b155a22f | 1,071 | hpp | C++ | components/FrameControl/include/frame_control.hpp | li624120638/EasySa | 5e5dc9f08570bafca1eb0c99ee81984ff1b546d9 | [
"Apache-2.0"
] | 2 | 2021-09-22T13:00:33.000Z | 2021-10-01T23:31:56.000Z | components/FrameControl/include/frame_control.hpp | li624120638/EasySa | 5e5dc9f08570bafca1eb0c99ee81984ff1b546d9 | [
"Apache-2.0"
] | null | null | null | components/FrameControl/include/frame_control.hpp | li624120638/EasySa | 5e5dc9f08570bafca1eb0c99ee81984ff1b546d9 | [
"Apache-2.0"
] | null | null | null | #ifndef FRAME_CONTROL_HPP
#include <chrono>
#include <thread>
namespace easysa {
namespace components {
class FrameController {
public:
explicit FrameController(uint32_t frame_rate) :
frame_rate_(frame_rate){}
void Start() { start_ = std::chrono::steady_clock::now(); }
inline uint32_t GetFrameRate() const ... | 26.775 | 65 | 0.697479 | li624120638 |
19f08cfbbe5ccc8f31f10fe27a3c0a8c2100dedd | 2,070 | hpp | C++ | Sources/Maths/Transform.hpp | hhYanGG/Acid | f5543e9290aee5e25c6ecdafe8a3051054b203c0 | [
"MIT"
] | 1 | 2019-03-13T08:26:38.000Z | 2019-03-13T08:26:38.000Z | Sources/Maths/Transform.hpp | hhYanGG/Acid | f5543e9290aee5e25c6ecdafe8a3051054b203c0 | [
"MIT"
] | null | null | null | Sources/Maths/Transform.hpp | hhYanGG/Acid | f5543e9290aee5e25c6ecdafe8a3051054b203c0 | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/Exports.hpp"
#include "Matrix4.hpp"
#include "Vector3.hpp"
namespace acid
{
/// <summary>
/// Holds position, rotation, and scale components.
/// </summary>
class ACID_EXPORT Transform
{
private:
Vector3 m_position;
Vector3 m_rotation;
Vector3 m_scaling;
public:
/// <summ... | 26.202532 | 117 | 0.677778 | hhYanGG |
19f21c6a71fe54320bb9345e2d858a22a4446d46 | 3,207 | cpp | C++ | Samples/AppWindow/cppwinrt/Code/Hash/gmp/mpz/prodlimbs.cpp | OSIREM/ecoin-minimal | 7d8314484c0cd47c673046c86c273cc48eaa43d2 | [
"MIT"
] | null | null | null | Samples/AppWindow/cppwinrt/Code/Hash/gmp/mpz/prodlimbs.cpp | OSIREM/ecoin-minimal | 7d8314484c0cd47c673046c86c273cc48eaa43d2 | [
"MIT"
] | null | null | null | Samples/AppWindow/cppwinrt/Code/Hash/gmp/mpz/prodlimbs.cpp | OSIREM/ecoin-minimal | 7d8314484c0cd47c673046c86c273cc48eaa43d2 | [
"MIT"
] | null | null | null | /* mpz_prodlimbs(RESULT, V, LEN) -- Set RESULT to V[0]*V[1]*...*V[LEN-1].
Contributed to the GNU project by Marco Bodrato.
THE FUNCTION IN THIS FILE IS INTERNAL WITH A MUTABLE INTERFACE.
IT IS ONLY SAFE TO REACH IT THROUGH DOCUMENTED INTERFACES.
IN FACT, IT IS ALMOST GUARANTEED THAT IT WILL CHANGE OR
DISAPPEAR... | 29.154545 | 75 | 0.625507 | OSIREM |
19f26bbd2e45658020ba9ff97a7d81fa93efb7cc | 183 | cpp | C++ | Project4/Project4/Exit.cpp | mattgambill/MiscCppProjects | e2c6d39e8f6825b28ba0fea19268bfc3a59b736f | [
"MIT"
] | null | null | null | Project4/Project4/Exit.cpp | mattgambill/MiscCppProjects | e2c6d39e8f6825b28ba0fea19268bfc3a59b736f | [
"MIT"
] | null | null | null | Project4/Project4/Exit.cpp | mattgambill/MiscCppProjects | e2c6d39e8f6825b28ba0fea19268bfc3a59b736f | [
"MIT"
] | null | null | null | #include"Header.h"
#include<iostream>
using namespace std;
void magi() {
char userChar('q');
while (userChar != 'q') {
cout << "enter q to quit ";
cin >> userChar;
}
} | 18.3 | 30 | 0.590164 | mattgambill |
19f6fd70d63e3f68cff70a871935618592ad7480 | 4,142 | cpp | C++ | src/plugins/dependency_mining/validation_strategy/ucc_validation_rule_spider.cpp | dey4ss/masters_thesis | 23c671a50ef2731397b08b1a232ad40f617fe700 | [
"MIT"
] | null | null | null | src/plugins/dependency_mining/validation_strategy/ucc_validation_rule_spider.cpp | dey4ss/masters_thesis | 23c671a50ef2731397b08b1a232ad40f617fe700 | [
"MIT"
] | null | null | null | src/plugins/dependency_mining/validation_strategy/ucc_validation_rule_spider.cpp | dey4ss/masters_thesis | 23c671a50ef2731397b08b1a232ad40f617fe700 | [
"MIT"
] | null | null | null | #include "ucc_validation_rule_spider.hpp"
#include "hyrise.hpp"
#include "operators/aggregate_hash.hpp"
#include "operators/get_table.hpp"
#include "operators/pqp_utils.hpp"
#include "operators/sort.hpp"
#include "resolve_type.hpp"
#include "statistics/attribute_statistics.hpp"
#include "statistics/table_statistics.hp... | 39.075472 | 117 | 0.682279 | dey4ss |
19f76c534ef3eb84b185122ccfee9f0133b788dd | 2,620 | cpp | C++ | Lua Script Game 0.46c/TextEngine.cpp | dbechrd/LuaScriptGame | 32c045e394d5b84bea11808c74a8056267690eeb | [
"MIT"
] | 1 | 2020-06-19T01:53:34.000Z | 2020-06-19T01:53:34.000Z | Lua Script Game 0.46c/TextEngine.cpp | dbechrd/LuaScriptGame | 32c045e394d5b84bea11808c74a8056267690eeb | [
"MIT"
] | null | null | null | Lua Script Game 0.46c/TextEngine.cpp | dbechrd/LuaScriptGame | 32c045e394d5b84bea11808c74a8056267690eeb | [
"MIT"
] | null | null | null | #include "TextEngine.h"
#include "RenderEngine.h"
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"
#include <string>
#include <iostream>
TextEngine* TextEngine::pinstance = 0;
TextEngine* TextEngine::Instance( std::string filename )
{
//Create single instance if it doesn't already e... | 26.464646 | 111 | 0.597328 | dbechrd |
19f95f29619a14e945cb34390ac806b0d49d3836 | 1,332 | cpp | C++ | src/resource/Extension.cpp | galek/anki-3d-engine | 2b12968d8f2ca44d2aeb7480a4b8e63f7703ae75 | [
"BSD-3-Clause"
] | 1 | 2016-09-29T06:39:41.000Z | 2016-09-29T06:39:41.000Z | src/resource/Extension.cpp | galek/anki-3d-engine | 2b12968d8f2ca44d2aeb7480a4b8e63f7703ae75 | [
"BSD-3-Clause"
] | null | null | null | src/resource/Extension.cpp | galek/anki-3d-engine | 2b12968d8f2ca44d2aeb7480a4b8e63f7703ae75 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (C) 2014, Panagiotis Christopoulos Charitos.
// All rights reserved.
// Code licensed under the BSD License.
// http://www.anki3d.org/LICENSE
#include "anki/resource/Extension.h"
#include "anki/util/Exception.h"
//#include <dlfcn.h>
namespace anki {
//====================================================... | 29.6 | 80 | 0.426426 | galek |
19fccdc68cfb04ffff8e5db7b5bdd103de4256c3 | 813 | hpp | C++ | wxgit/git/Commit.hpp | yatsuha4/wxgit | b208d04f9772b896269e79ad45946072727d0807 | [
"MIT"
] | null | null | null | wxgit/git/Commit.hpp | yatsuha4/wxgit | b208d04f9772b896269e79ad45946072727d0807 | [
"MIT"
] | null | null | null | wxgit/git/Commit.hpp | yatsuha4/wxgit | b208d04f9772b896269e79ad45946072727d0807 | [
"MIT"
] | null | null | null | /***********************************************************************//**
@file
***************************************************************************/
#pragma once
namespace wxgit {
namespace git {
/***********************************************************************//**
@brief
************************... | 26.225806 | 77 | 0.305043 | yatsuha4 |
c204ed21b151ef27c6f0ce6b794309172be69f54 | 8,872 | cpp | C++ | Sources/MouCaCore/source/LoaderManager.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/MouCaCore/source/LoaderManager.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/MouCaCore/source/LoaderManager.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | #include "Dependencies.h"
#include "LibCore/include/CoreFile.h"
#include "LibRT/include/RTAnimationBones.h"
#include "LibRT/include/RTImage.h"
#include "LibRT/include/RTShaderFile.h"
#include "LibRT/include/RTMesh.h"
#include "LibMedia/include/AnimationLoader.h"
#include "LibMedia/include/ImageLoader.h"
#include "Li... | 26.966565 | 136 | 0.596821 | Rominitch |
c20519f39363b3913a8d6f7c7e47fc98d12edfdd | 435 | cpp | C++ | PAT/B1006.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | PAT/B1006.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | PAT/B1006.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | #include<stdio.h>
#include<string.h>
#include<algorithm>
#include<stack>
using namespace std;
int main(void) {
// freopen("in.txt","r",stdin);
int N;
while(~scanf("%d",&N)){
for(int i=N/100;i>0;i--) putchar('B');
N=N%100;
for(int i=N/10;i>0;i--) putchar('S');
N=N%10;
... | 15 | 46 | 0.512644 | iphelf |
c209b7ebd03a15893b3b0dcf6f82554d0b2d9f0d | 6,023 | cpp | C++ | AYKEditor/src/EditorLayer.cpp | AreYouReal/AYK | c6859047cfed674291692cc31095d8bb61b27a35 | [
"Apache-2.0"
] | null | null | null | AYKEditor/src/EditorLayer.cpp | AreYouReal/AYK | c6859047cfed674291692cc31095d8bb61b27a35 | [
"Apache-2.0"
] | null | null | null | AYKEditor/src/EditorLayer.cpp | AreYouReal/AYK | c6859047cfed674291692cc31095d8bb61b27a35 | [
"Apache-2.0"
] | null | null | null | #include "aykpch.h"
#include "EditorLayer.h"
#include "imgui/imgui.h"
#include <glm/gtc/type_ptr.hpp>
namespace AYK {
EditorLayer::EditorLayer() : Layer("EditorLayer"), CameraController(1280.0f / 720.0f) { }
void EditorLayer::OnAttach() {
AYK_PROFILE_FUNCTION();
CheckerboardTexture = AYK::Texture2D::Create(... | 32.556757 | 171 | 0.706293 | AreYouReal |
c20baacab732767849323e5a82219fc03d37c830 | 17,555 | cc | C++ | src/filesystem.cc | toyoshim/naclfs | 35074ccbf8289b98fae3873209c19a94a0587c08 | [
"BSD-3-Clause"
] | null | null | null | src/filesystem.cc | toyoshim/naclfs | 35074ccbf8289b98fae3873209c19a94a0587c08 | [
"BSD-3-Clause"
] | null | null | null | src/filesystem.cc | toyoshim/naclfs | 35074ccbf8289b98fae3873209c19a94a0587c08 | [
"BSD-3-Clause"
] | null | null | null | //
// Copyright (c) 2012, Takashi TOYOSHIMA <toyoshim@gmail.com>
// 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,
... | 28.637847 | 79 | 0.648476 | toyoshim |
c21169a596fd4ee529afd46467c059812f5c2a29 | 4,685 | hxx | C++ | include/lineage/problem-graph.hxx | rempfler/efficient-mlt | 653be91ae707ab9c766ed0c08c512b30c61c51ab | [
"MIT"
] | 3 | 2018-02-19T18:42:24.000Z | 2020-04-20T03:09:02.000Z | include/lineage/problem-graph.hxx | rempfler/efficient-mlt | 653be91ae707ab9c766ed0c08c512b30c61c51ab | [
"MIT"
] | null | null | null | include/lineage/problem-graph.hxx | rempfler/efficient-mlt | 653be91ae707ab9c766ed0c08c512b30c61c51ab | [
"MIT"
] | 1 | 2020-05-23T17:26:09.000Z | 2020-05-23T17:26:09.000Z | #pragma once
#ifndef LINEAGE_PROBLEM_GRAPH_HXX
#define LINEAGE_PROBLEM_GRAPH_HXX
#include <vector>
#include <andres/graph/graph.hxx>
#include "problem.hxx"
#include <levinkov/timer.hxx>
namespace lineage {
class ProblemGraph
{
public:
typedef andres::graph::Graph<> Graph;
template <class EdgeLabels>
s... | 25.188172 | 74 | 0.580576 | rempfler |
c213b4b65b3050ab10a23466d551e5a0e50e40fb | 511 | hpp | C++ | vp/src/platform/redv/i2cserver.hpp | U2654/riscv-vp | 2ecb20927d72bf8431c7b436ddbe90d634d32c64 | [
"MIT"
] | null | null | null | vp/src/platform/redv/i2cserver.hpp | U2654/riscv-vp | 2ecb20927d72bf8431c7b436ddbe90d634d32c64 | [
"MIT"
] | null | null | null | vp/src/platform/redv/i2cserver.hpp | U2654/riscv-vp | 2ecb20927d72bf8431c7b436ddbe90d634d32c64 | [
"MIT"
] | 1 | 2021-11-04T14:18:06.000Z | 2021-11-04T14:18:06.000Z | #ifndef RISCV_VP_I2CSERVER_H
#define RISCV_VP_I2CSERVER_H
#include <atomic>
#include <boost/asio.hpp>
#include <thread>
#include "i2c.hpp"
class I2CServer : public I2C {
public:
I2CServer();
~I2CServer();
virtual uint8_t process_i2c(uint8_t f_reg, uint8_t f_in);
private:
boost::asio::io_service m_io_serv... | 20.44 | 58 | 0.737769 | U2654 |
c21633534bfa1fc42643ca0e7abc5530e3e373e6 | 392 | cpp | C++ | src/src/timer.cpp | cruwaller/FENIX-rx5808-pro-diversity | 6d1c07bde3c0782a599c3a0a40db8dacc522ef6e | [
"MIT"
] | 1 | 2020-08-20T19:58:13.000Z | 2020-08-20T19:58:13.000Z | src/src/timer.cpp | cruwaller/FENIX-rx5808-pro-diversity | 6d1c07bde3c0782a599c3a0a40db8dacc522ef6e | [
"MIT"
] | null | null | null | src/src/timer.cpp | cruwaller/FENIX-rx5808-pro-diversity | 6d1c07bde3c0782a599c3a0a40db8dacc522ef6e | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include "timer.h"
Timer::Timer(uint16_t delay) {
this->delay = delay;
reset();
}
const bool ICACHE_RAM_ATTR Timer::hasTicked() {
if (!this->ticked)
this->ticked = (0 >= (int32_t)(this->nextTick - millis()));
return this->ticked;
}
void ICACHE_RAM_ATTR Timer::reset() {
... | 19.6 | 67 | 0.619898 | cruwaller |
c21655bca65b9be8d1b8ecfe2f4401b3cc67e2b6 | 963 | cpp | C++ | GCL/Base/MathTool.cpp | Jenocn/GameCommonLibraryForCpp | 9e816dfecd2e219dc6ed91ff550d759c4f44b2a5 | [
"MIT"
] | null | null | null | GCL/Base/MathTool.cpp | Jenocn/GameCommonLibraryForCpp | 9e816dfecd2e219dc6ed91ff550d759c4f44b2a5 | [
"MIT"
] | null | null | null | GCL/Base/MathTool.cpp | Jenocn/GameCommonLibraryForCpp | 9e816dfecd2e219dc6ed91ff550d759c4f44b2a5 | [
"MIT"
] | null | null | null | #include "MathTool.h"
#include <random>
using namespace GCL::Base;
float MathTool::BezierAt(float a, float b, float c, float d, float t) {
return (powf(1 - t, 3) * a +
3 * t * (powf(1 - t, 2)) * b +
3 * powf(t, 2) * (1 - t) * c +
powf(t, 3) * d);
}
float MathTool::BezierLength(float startx, float starty, f... | 21.4 | 150 | 0.586708 | Jenocn |
c2192db01e71c107100dabb43322fc53a9eb557e | 1,997 | cpp | C++ | Client/client/Graphics/VisualEffect.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 14 | 2019-03-05T10:03:59.000Z | 2021-12-21T03:00:18.000Z | Client/client/Graphics/VisualEffect.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 1 | 2019-10-24T21:37:59.000Z | 2019-10-24T21:37:59.000Z | Client/client/Graphics/VisualEffect.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 1 | 2020-12-06T21:07:52.000Z | 2020-12-06T21:07:52.000Z | #include "VisualEffect.hpp"
VisualEffect::VisualEffect(eVisualType p_Type, bool p_Under, uint8 p_ID, uint8 p_NbFrames) :
m_Type(p_Type),
m_ID(p_ID),
m_NbFrames(p_NbFrames)
{
m_DiffTimeAnim = 0;
m_ActualFrame = 0;
m_Started = false;
m_Show = false;
m_IsFinish = false;
m_Under = p_Und... | 17.990991 | 92 | 0.604907 | pinkmouse |
c21a16758851234b821ff58e262bd5b068c760cb | 710 | cpp | C++ | src/concurrency/future_error.cpp | pan-/lbb | 3ec6cf1dfc6ef9e6915e6436ea678c4e83c9e218 | [
"MIT"
] | 1 | 2017-07-07T11:52:20.000Z | 2017-07-07T11:52:20.000Z | src/concurrency/future_error.cpp | pan-/lbb | 3ec6cf1dfc6ef9e6915e6436ea678c4e83c9e218 | [
"MIT"
] | 1 | 2017-06-23T10:49:00.000Z | 2017-06-23T10:49:25.000Z | src/concurrency/future_error.cpp | pan-/lbb | 3ec6cf1dfc6ef9e6915e6436ea678c4e83c9e218 | [
"MIT"
] | 1 | 2020-08-07T10:15:36.000Z | 2020-08-07T10:15:36.000Z | #include "lbb/concurrency/future_error.h"
namespace lbb {
namespace concurrency {
namespace {
static const char* _error_code_messages[] = {
"broken promise : the asynchronous task abandoned its shared state",
"future already retrieved : the contents of shared state were already accessed",
"promise already sa... | 21.515152 | 85 | 0.740845 | pan- |
c21acf18af0d7c2c54cd6174dbc17949e933e0e3 | 5,189 | hpp | C++ | src/rstd/format.hpp | agerasev/cpp-rstd | cb4dcb510c4b3d562f7fed0d9eaa3eca94c9db36 | [
"MIT"
] | null | null | null | src/rstd/format.hpp | agerasev/cpp-rstd | cb4dcb510c4b3d562f7fed0d9eaa3eca94c9db36 | [
"MIT"
] | null | null | null | src/rstd/format.hpp | agerasev/cpp-rstd | cb4dcb510c4b3d562f7fed0d9eaa3eca94c9db36 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <sstream>
#include <rcore/io.hpp>
#include <rcore/panic.hpp>
#include "macros.hpp"
namespace rstd {
namespace fmt {
template <typename T>
struct Display {
static void fmt(const T &t, std::ostream &o) {
o << t;
}
};
template <typename T>
void display(std::o... | 24.476415 | 101 | 0.514165 | agerasev |
c21e56b3d4f20a2a20259e9a69c33c72cf88be9a | 8,498 | hpp | C++ | Boss2D/element/boss_solver.hpp | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | Boss2D/element/boss_solver.hpp | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | Boss2D/element/boss_solver.hpp | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | #pragma once
#include <boss.hpp>
namespace BOSS
{
class Solver;
enum class SolverValueType {Range, Integer, Float, Text};
enum class SolverOperandType {Unknown, Literal, Variable, Formula};
enum class SolverOperatorType {Unknown,
Addition, Subtract, Multiply, Divide, Remainder, // +, ... | 43.579487 | 108 | 0.6265 | Yash-Wasalwar-07 |
c21e9c4a9a4a1a0db3cbdca5e8cf2e852d2386d4 | 4,941 | cpp | C++ | gstnvarguscamera_utils.cpp | loopinno/gst-nvarguscamera | c78e25f144278afada2a4499d6dbc831872aba7c | [
"Unlicense"
] | null | null | null | gstnvarguscamera_utils.cpp | loopinno/gst-nvarguscamera | c78e25f144278afada2a4499d6dbc831872aba7c | [
"Unlicense"
] | null | null | null | gstnvarguscamera_utils.cpp | loopinno/gst-nvarguscamera | c78e25f144278afada2a4499d6dbc831872aba7c | [
"Unlicense"
] | null | null | null | /*
* Copyright (c) 2017-2020, NVIDIA CORPORATION. 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 ... | 43.342105 | 107 | 0.771099 | loopinno |
c21f713ee69d63fe21c352614c1829c7b4da6fec | 1,338 | cpp | C++ | testOpenCP/guiConsoleTest.cpp | norishigefukushima/OpenCP | 63090131ec975e834f85b04e84ec29b2893845b2 | [
"BSD-3-Clause"
] | 137 | 2015-03-27T07:11:19.000Z | 2022-03-30T05:58:22.000Z | testOpenCP/guiConsoleTest.cpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 2 | 2016-05-18T06:33:16.000Z | 2016-07-11T17:39:17.000Z | testOpenCP/guiConsoleTest.cpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 43 | 2015-02-20T15:34:25.000Z | 2022-01-27T14:59:37.000Z | #include <opencp.hpp>
using namespace std;
using namespace cv;
using namespace cp;
void consoleImageTest()
{
ConsoleImage ci(Size(640, 480), "console");
Timer t;
bool isLine = false;
int count = 0;
int key = 0;
while (key != 'q')
{
Mat src;
Mat dest;
cout << count << endl;
cout << "===================... | 20.272727 | 55 | 0.533632 | norishigefukushima |
c21f764a3796a18b89f599bd31326b2c6517d917 | 6,276 | cpp | C++ | obj2wkm/vecmat.cpp | AdrienTD/wktools | 7d5be1dfdf63f5350f5cc1b9a049384b29d0d675 | [
"MIT"
] | 3 | 2021-06-25T13:16:20.000Z | 2021-12-01T19:46:22.000Z | obj2wkm/vecmat.cpp | AdrienTD/wktools | 7d5be1dfdf63f5350f5cc1b9a049384b29d0d675 | [
"MIT"
] | 1 | 2017-07-22T16:20:27.000Z | 2017-07-28T23:45:43.000Z | obj2wkm/vecmat.cpp | AdrienTD/wktools | 7d5be1dfdf63f5350f5cc1b9a049384b29d0d675 | [
"MIT"
] | null | null | null | // (C) 2016-2017 AdrienTD
// Licensed under the MIT license (see license.txt for more information)
#include "global.h"
#define determinant33(a, b, c, d, e, f, g, h, i) ((a)*(e)*(i) + (b)*(f)*(g) + (c)*(d)*(h) - (g)*(e)*(c) - (h)*(f)*(a) - (i)*(d)*(b))
#ifndef VECMAT_D3DX
void Vec3Cross(Vector3 *r, Vector3 *a, Vecto... | 27.769912 | 132 | 0.515296 | AdrienTD |
ea50de6153dd39bc8ea92b81cb7a7d2d75aca1ba | 14,299 | hpp | C++ | src/Print/ColorConv.hpp | happeneddr9/STM32F0-YM2151-VGMPlayer | 202b3cc1f9b4c4c26468444710e9c4a17eb61510 | [
"MIT"
] | 1 | 2020-04-16T10:58:10.000Z | 2020-04-16T10:58:10.000Z | src/Print/ColorConv.hpp | happeneddr9/STM32F0-YM2151-VGMPlayer | 202b3cc1f9b4c4c26468444710e9c4a17eb61510 | [
"MIT"
] | null | null | null | src/Print/ColorConv.hpp | happeneddr9/STM32F0-YM2151-VGMPlayer | 202b3cc1f9b4c4c26468444710e9c4a17eb61510 | [
"MIT"
] | null | null | null | /**
* @Name : ColorConv.hpp
* @Date : 2019年11月24日 下午1:56:59
* @Author : happe
* @brief : structs, functions, variables which about RGB or HSV Colors.
*/
#ifndef PRINT_COLORCONV_HPP_
#define PRINT_COLORCONV_HPP_
#include "Arduino/Basic.h"
#include <initializer_list>
namespace Pixel {
#define USE_Dim_Cu... | 25.042032 | 96 | 0.549059 | happeneddr9 |
ea56a4a82940f07c57f5cb1af0d640d84994a768 | 2,518 | hpp | C++ | accumulate.hpp | itamar600/c-assignment-5 | e8dac2e42cb868de370a8054c01f378682fc63a2 | [
"MIT"
] | null | null | null | accumulate.hpp | itamar600/c-assignment-5 | e8dac2e42cb868de370a8054c01f378682fc63a2 | [
"MIT"
] | null | null | null | accumulate.hpp | itamar600/c-assignment-5 | e8dac2e42cb868de370a8054c01f378682fc63a2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
namespace itertools{
typedef struct{
template<typename U>
U operator()(U x,U y){
return x+y;
}
}add;
template<typename T, typename FUNCTION=add>
struct accumulate{
const T& con;
const FUNCTION& f;
accumu... | 26.787234 | 100 | 0.353455 | itamar600 |
ea570d570a9c3810555719144570c43329dce436 | 886 | cpp | C++ | src/nodebatch.cpp | roloza7/nn-test | 3400e6e065be68858c6ce692d349f3ddb8596033 | [
"MIT"
] | null | null | null | src/nodebatch.cpp | roloza7/nn-test | 3400e6e065be68858c6ce692d349f3ddb8596033 | [
"MIT"
] | null | null | null | src/nodebatch.cpp | roloza7/nn-test | 3400e6e065be68858c6ce692d349f3ddb8596033 | [
"MIT"
] | null | null | null | #include "nodebatch.h"
#include "sparsematrix.h"
#include <cstddef>
using std::vector;
using std::size_t;
NodeBatch::NodeBatch(size_t node_count) : n_interfaces_(0), inner_node_count_(node_count) {};
const vector<SparseMatrix<double>*>& NodeBatch::GetWeights() const { return weights_; }
vector<SparseMatrix<d... | 32.814815 | 94 | 0.67833 | roloza7 |
ea58a9ffeb55f54d7af1b4d5ebe9e1736d05ed67 | 581 | hpp | C++ | include/details/pipedesp.hpp | etorth/reproc | 0446255e5c3bbfbb494394b31dc7d5161ec35337 | [
"MIT"
] | null | null | null | include/details/pipedesp.hpp | etorth/reproc | 0446255e5c3bbfbb494394b31dc7d5161ec35337 | [
"MIT"
] | null | null | null | include/details/pipedesp.hpp | etorth/reproc | 0446255e5c3bbfbb494394b31dc7d5161ec35337 | [
"MIT"
] | null | null | null | /*
* =====================================================================================
*
* Filename: pipedesp.hpp
* Created: 01/16/2019 22:43:24
* Description:
*
* Version: 1.0
* Revision: none
* Compiler: gcc
*
* Author: ANHONG
* Email: anhonghe@gmai... | 20.75 | 88 | 0.363167 | etorth |
ea5f84d3d8024b463f5f56d1416d0d384f4912b0 | 23,850 | cpp | C++ | blas1_c/blas1_c.cpp | CppSoftwares/Basic-Linear-Algebra-Subprograms | 059100dcc3163099d5a47f4480743f05318267b1 | [
"MIT"
] | 1 | 2020-07-31T14:21:46.000Z | 2020-07-31T14:21:46.000Z | blas1_c/blas1_c.cpp | CppSoftwares/Basic-Linear-Algebra-Subprograms | 059100dcc3163099d5a47f4480743f05318267b1 | [
"MIT"
] | null | null | null | blas1_c/blas1_c.cpp | CppSoftwares/Basic-Linear-Algebra-Subprograms | 059100dcc3163099d5a47f4480743f05318267b1 | [
"MIT"
] | null | null | null | # include <cstdlib>
# include <iostream>
# include <iomanip>
# include <cmath>
# include <ctime>
# include <complex>
using namespace std;
# include "blas0.hpp"
# include "blas1_c.hpp"
//****************************************************************************80
void caxpy ( int n, complex <float> ca, complex <fl... | 20.229008 | 80 | 0.490692 | CppSoftwares |
ea5ffd514cbb273d3732ec59dc95c3b2acfd334a | 1,277 | hpp | C++ | inc/Meshes/TriangleMesh.hpp | barne856/MARE | 5390fa15777876a7aebefe2c2aecf0b173011923 | [
"MIT"
] | 2 | 2020-05-23T19:37:18.000Z | 2020-06-07T23:25:43.000Z | inc/Meshes/TriangleMesh.hpp | barne856/MARE | 5390fa15777876a7aebefe2c2aecf0b173011923 | [
"MIT"
] | null | null | null | inc/Meshes/TriangleMesh.hpp | barne856/MARE | 5390fa15777876a7aebefe2c2aecf0b173011923 | [
"MIT"
] | 1 | 2021-03-17T09:53:58.000Z | 2021-03-17T09:53:58.000Z | #ifndef TRIANGLEMESH
#define TRIANGLEMESH
// MARE
#include "Meshes.hpp"
#include "Renderer.hpp"
// External Libraries
#include "glm.hpp"
namespace mare {
/**
* @brief A SimpleMesh of a 2D Triangle.
* @details Provides vertices but no normals or texture coordinates.
*/
class TriangleMesh : public SimpleMesh {
publ... | 26.604167 | 77 | 0.685983 | barne856 |
ea641376b20eb23251e7816186f2b1acd6883551 | 1,553 | hpp | C++ | bulletgba/generator/data/code/__system/bow-pepper.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | 5 | 2020-03-24T07:44:49.000Z | 2021-08-30T14:43:31.000Z | bulletgba/generator/data/code/__system/bow-pepper.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | bulletgba/generator/data/code/__system/bow-pepper.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | #ifndef GENERATED_4ad6cce62bd261d9acaa6b41a3273721_HPP
#define GENERATED_4ad6cce62bd261d9acaa6b41a3273721_HPP
#include "bullet.hpp"
void stepfunc_19168d02a0cf6fbc883fd21bc023c19f_ec13c10efe706e20b72a0748364846bd(BulletInfo *p);
void stepfunc_19d950e39ae48232acec83992a5e9c14_ec13c10efe706e20b72a0748364846bd(Bullet... | 59.730769 | 104 | 0.909852 | pqrs-org |
ea6c1aad557e2ff159149f195aa3686df8f0c4fe | 2,568 | cc | C++ | src/lq_info.cc | jwlawson/ptope | 2c664ac4fb7b036a298e7c6a1b2cf58d803f227a | [
"Apache-2.0"
] | 1 | 2019-02-22T03:03:13.000Z | 2019-02-22T03:03:13.000Z | src/lq_info.cc | jwlawson/ptope | 2c664ac4fb7b036a298e7c6a1b2cf58d803f227a | [
"Apache-2.0"
] | 9 | 2016-08-31T16:34:59.000Z | 2016-09-12T16:29:55.000Z | src/lq_info.cc | jwlawson/ptope | 2c664ac4fb7b036a298e7c6a1b2cf58d803f227a | [
"Apache-2.0"
] | null | null | null | /*
* lq_info.cc
* Copyright 2015 John Lawson
*
* 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... | 32.1 | 78 | 0.709891 | jwlawson |
ea7244b1fa3549c18b87bdbe50c891eae9a856e3 | 5,341 | cpp | C++ | box2d/native/src/shape.cpp | rgrams/defold-box2d | f16c138d2c7260cc04272c30d54cd532b572d6a0 | [
"MIT"
] | null | null | null | box2d/native/src/shape.cpp | rgrams/defold-box2d | f16c138d2c7260cc04272c30d54cd532b572d6a0 | [
"MIT"
] | null | null | null | box2d/native/src/shape.cpp | rgrams/defold-box2d | f16c138d2c7260cc04272c30d54cd532b572d6a0 | [
"MIT"
] | null | null | null | #include "shape.h"
#include "utils.h"
#include "extra_utils.h"
namespace box2dDefoldNE {
b2Vec2* parse_vertices(lua_State *L, const char* key,const char* error,int* b2vecSize){
lua_getfield(L, -1, key);
if(lua_istable(L,-1)){
int size = lua_objlen(L,-1);
b2Vec2* vertices = new b2Vec2[size];
... | 36.087838 | 114 | 0.605505 | rgrams |
ea74cc336926fcc0c4e958bae37e323d334d49a7 | 96 | hpp | C++ | test/bit/round.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | test/bit/round.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | test/bit/round.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #ifndef FALCON_TEST_BIT_ROUND_HPP
#define FALCON_TEST_BIT_ROUND_HPP
void round_test();
#endif
| 13.714286 | 33 | 0.84375 | jonathanpoelen |
ea7535b5e1dc2b3452ee19a661018ea3650aac31 | 6,883 | cpp | C++ | syn/core/ebnf_extension.cpp | asmwarrior/syncpp | df34b95b308d7f2e6479087d629017efa7ab9f1f | [
"Apache-2.0"
] | 1 | 2019-02-08T02:23:56.000Z | 2019-02-08T02:23:56.000Z | syn/core/ebnf_extension.cpp | asmwarrior/syncpp | df34b95b308d7f2e6479087d629017efa7ab9f1f | [
"Apache-2.0"
] | null | null | null | syn/core/ebnf_extension.cpp | asmwarrior/syncpp | df34b95b308d7f2e6479087d629017efa7ab9f1f | [
"Apache-2.0"
] | 1 | 2020-12-02T02:37:40.000Z | 2020-12-02T02:37:40.000Z | /*
* Copyright 2014 Anton Karmanov
*
* 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 agree... | 27.754032 | 119 | 0.783234 | asmwarrior |
ea795709d2cd9ab3eced03801a53e244fa90c5b2 | 10,657 | hpp | C++ | json_config.hpp | HCLOpenBMC/phosphor-fan-presence | 3efec61c8f0ba530a24ad46e6c10d8827fbf9219 | [
"Apache-2.0"
] | null | null | null | json_config.hpp | HCLOpenBMC/phosphor-fan-presence | 3efec61c8f0ba530a24ad46e6c10d8827fbf9219 | [
"Apache-2.0"
] | null | null | null | json_config.hpp | HCLOpenBMC/phosphor-fan-presence | 3efec61c8f0ba530a24ad46e6c10d8827fbf9219 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright © 2020 IBM 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 agr... | 33.831746 | 80 | 0.540959 | HCLOpenBMC |
ea7bb03e21ed3ee511c952875227b18113fc16e7 | 1,497 | hpp | C++ | src/fft/turbulence.hpp | dfielding14/athena-public-version | f44403aca8539fce375d8e8a8525943178b448ee | [
"BSD-3-Clause"
] | null | null | null | src/fft/turbulence.hpp | dfielding14/athena-public-version | f44403aca8539fce375d8e8a8525943178b448ee | [
"BSD-3-Clause"
] | null | null | null | src/fft/turbulence.hpp | dfielding14/athena-public-version | f44403aca8539fce375d8e8a8525943178b448ee | [
"BSD-3-Clause"
] | null | null | null | #ifndef FFT_TURBULENCE_HPP_
#define FFT_TURBULENCE_HPP_
//========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
// Licensed under the 3-clause BSD License, see L... | 27.722222 | 92 | 0.657983 | dfielding14 |
ea8369eab62c3e1864cc59f6e993e29a12ef5284 | 3,673 | cpp | C++ | Dynamic Programming/72_Edit-Distance.cpp | YunWGui/LeetCode | 2587eca22195ec7d9263227554467ec4010cfe05 | [
"MIT"
] | null | null | null | Dynamic Programming/72_Edit-Distance.cpp | YunWGui/LeetCode | 2587eca22195ec7d9263227554467ec4010cfe05 | [
"MIT"
] | null | null | null | Dynamic Programming/72_Edit-Distance.cpp | YunWGui/LeetCode | 2587eca22195ec7d9263227554467ec4010cfe05 | [
"MIT"
] | null | null | null | /*
Title:
72. Edit Distance
72. 编辑距离
又称:Levenshtein Distance - 莱文斯坦距离
Description:
Given two words word1 and word2, find the minimum number of operations required to
convert word1 to word2.
You have the following 3 operations permitted on a word:
1. Insert a character
2. Delete... | 24.817568 | 94 | 0.42336 | YunWGui |
ea8422094131913249185b796edc97a131e3a3d5 | 13,187 | cpp | C++ | samples/04-DeferredRendering/Src/LightingPass.cpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 227 | 2018-09-17T16:03:35.000Z | 2022-03-19T02:02:45.000Z | samples/04-DeferredRendering/Src/LightingPass.cpp | DragonJoker/RendererLib | 0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a | [
"MIT"
] | 39 | 2018-02-06T22:22:24.000Z | 2018-08-29T07:11:06.000Z | samples/04-DeferredRendering/Src/LightingPass.cpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 8 | 2019-05-04T10:33:32.000Z | 2021-04-05T13:19:27.000Z | #include "LightingPass.hpp"
#include <ashespp/Buffer/Buffer.hpp>
#include <ashespp/Buffer/StagingBuffer.hpp>
#include <ashespp/Buffer/VertexBuffer.hpp>
#include <ashespp/Command/CommandBuffer.hpp>
#include <ashespp/Command/CommandPool.hpp>
#include <ashespp/Core/Device.hpp>
#include <ashespp/Descriptor/DescriptorSet.h... | 35.353887 | 168 | 0.732767 | DragonJoker |
ea8529c281de92b7e48d14262c4d6d1c2827c014 | 1,216 | hpp | C++ | include/GameEngine/Physics/StaticObject.hpp | AlxHnr/2d-platformer-demo | cdd2ce9251556968b00339b3a5faacfebd0a53fb | [
"MIT"
] | 5 | 2021-05-08T10:24:25.000Z | 2021-12-30T10:27:49.000Z | include/GameEngine/Physics/StaticObject.hpp | AlxHnr/2d-platformer-demo | cdd2ce9251556968b00339b3a5faacfebd0a53fb | [
"MIT"
] | null | null | null | include/GameEngine/Physics/StaticObject.hpp | AlxHnr/2d-platformer-demo | cdd2ce9251556968b00339b3a5faacfebd0a53fb | [
"MIT"
] | 1 | 2021-12-15T13:38:49.000Z | 2021-12-15T13:38:49.000Z | /** @file
* Contains a class representing static world geometry.
*/
#ifndef GAME_ENGINE_INCLUDE_GAME_ENGINE_PHYSICS_STATIC_OBJECT_HPP
#define GAME_ENGINE_INCLUDE_GAME_ENGINE_PHYSICS_STATIC_OBJECT_HPP
#include "GameEngine/Physics/Object.hpp"
#include <glm/vec2.hpp>
#include <utility>
namespace GameEngine::Physics {... | 32 | 98 | 0.76727 | AlxHnr |
ea89fe6de231754178e1dd1ddd6f4336aac8d76f | 4,230 | cpp | C++ | src/cpp/base-audio-context.cpp | node-3d/waa-raub | e458d76f290b1e12ef2a0adc063b521816337f04 | [
"MIT"
] | 17 | 2018-10-03T00:44:33.000Z | 2022-03-17T06:40:15.000Z | src/cpp/base-audio-context.cpp | raub/node-waa | e458d76f290b1e12ef2a0adc063b521816337f04 | [
"MIT"
] | 7 | 2019-07-16T08:22:31.000Z | 2021-11-29T21:45:06.000Z | src/cpp/base-audio-context.cpp | raub/node-waa | e458d76f290b1e12ef2a0adc063b521816337f04 | [
"MIT"
] | 2 | 2019-08-05T20:00:42.000Z | 2020-03-15T13:25:41.000Z | #include "base-audio-context.hpp"
bool compareMagic(const uint8_t *data, const int16_t *magic) {
for (int i = 0; magic[i] != -2; i++) {
if (magic[i] >= 0 && data[i] != magic[i]) {
return false;
}
}
return true;
}
std::string getExtension(const uint8_t *data) {
static const int16_t wv[] = { 'w', 'v', 'p'... | 19.859155 | 101 | 0.680142 | node-3d |
ea8d93baa78ca37f628d7bbabcdbc85d95bb11b5 | 891 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/game/TrafficWorkspotTransitionData.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/game/TrafficWorkspotTransitionData.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/game/TrafficWorkspotTransitionData.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/ISerializable.hpp>
#include <RED4ext/Scripting/Natives/Generated/Vector3.hpp>
namespace RED4ext
{
namespace game { struct SetupWorkspotActionEvent; }... | 29.7 | 76 | 0.780022 | jackhumbert |
ea8e39957f5f5622a9958bd4f91af7c133112fcb | 7,635 | cc | C++ | comm/test/zkprocess_test.cc | wahidHarb/rdp-1 | 73a0813d9a08f0aad34b56ba678167e6387b5e74 | [
"Apache-2.0"
] | 112 | 2018-12-05T07:45:42.000Z | 2022-01-24T11:28:11.000Z | comm/test/zkprocess_test.cc | wahidHarb/rdp-1 | 73a0813d9a08f0aad34b56ba678167e6387b5e74 | [
"Apache-2.0"
] | 2 | 2020-02-29T02:34:59.000Z | 2020-05-12T06:34:29.000Z | comm/test/zkprocess_test.cc | wahidHarb/rdp-1 | 73a0813d9a08f0aad34b56ba678167e6387b5e74 | [
"Apache-2.0"
] | 88 | 2018-12-16T07:35:10.000Z | 2022-03-09T17:41:16.000Z | //
//Copyright 2018 vip.com.
//
//Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
//the License. You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing, sof... | 31.680498 | 117 | 0.595023 | wahidHarb |
ea9061b4bf08536c581175a4aea2e60f4f0fbd0c | 1,065 | cpp | C++ | 0-100/11/main.cpp | KevinEsh/LeetCode-Problems | 7e29509ad1cdc907bbba339f82e89f9e210e8249 | [
"MIT"
] | null | null | null | 0-100/11/main.cpp | KevinEsh/LeetCode-Problems | 7e29509ad1cdc907bbba339f82e89f9e210e8249 | [
"MIT"
] | null | null | null | 0-100/11/main.cpp | KevinEsh/LeetCode-Problems | 7e29509ad1cdc907bbba339f82e89f9e210e8249 | [
"MIT"
] | null | null | null | #include <vector>
using namespace std;
class Solution
{
public:
int maxArea(vector<int> &walls)
{ // Build the solution based on the first level of water, find the two walls
// i & j more distants between each other, calcule the volumen as 1 * (j - i)
// then go up to level two and repeat the s... | 30.428571 | 85 | 0.528638 | KevinEsh |
ea90f8df490ed9560534415f15543b17d5da76ca | 906 | inl | C++ | SoftRP/PointSamplerImpl.inl | loreStefani/SoftRP | 2676145f74c734b272268820b1e1c503aa8ff765 | [
"MIT"
] | null | null | null | SoftRP/PointSamplerImpl.inl | loreStefani/SoftRP | 2676145f74c734b272268820b1e1c503aa8ff765 | [
"MIT"
] | null | null | null | SoftRP/PointSamplerImpl.inl | loreStefani/SoftRP | 2676145f74c734b272268820b1e1c503aa8ff765 | [
"MIT"
] | null | null | null | #ifndef SOFTRP_POINT_SAMPLER_IMPL_INL_
#define SOFTRP_POINT_SAMPLER_IMPL_INL_
#include "PointSampler.h"
namespace SoftRP {
inline Math::Vector4 PointSampler::sample(const Texture2D<Math::Vector4>& texture, const Math::Vector2& textCoords, unsigned int mipLevel) {
const unsigned int width = texture.mipLevelWidth(mipL... | 47.684211 | 141 | 0.746137 | loreStefani |
ea96096eee494786489c26a79b3416d91343baea | 5,125 | hpp | C++ | math/fast-factorize.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | 2 | 2021-06-24T11:21:08.000Z | 2022-03-15T05:57:25.000Z | math/fast-factorize.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | 102 | 2021-10-30T21:30:00.000Z | 2022-03-26T18:39:47.000Z | math/fast-factorize.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | null | null | null | #pragma once
#include "./base.hpp"
#include <atcoder/modint>
#include <cstdint>
#include <cstdlib>
#include <vector>
namespace math {
namespace inner {
using u32 = uint32_t;
using u64 = uint64_t;
using i64 = int64_t;
using u128 = __uint128_t;
u64 gcd_impl(u64 n, u64 m) {
constexpr u64 K ... | 25.883838 | 91 | 0.454049 | matumoto1234 |
ea9bd5f5bd30053e4dfe3f17513e9d650ed62678 | 1,079 | cpp | C++ | Immortal/Framework/Log.cpp | QSXW/Immortal | bac85fa526b77ed8cf49954f66ad3e9a165348e6 | [
"Apache-2.0"
] | 6 | 2021-09-15T08:56:28.000Z | 2022-03-29T15:55:02.000Z | Immortal/Framework/Log.cpp | DaShi-Git/Immortal | e3345b4ff2a2b9d215c682db2b4530e24cc3b203 | [
"Apache-2.0"
] | null | null | null | Immortal/Framework/Log.cpp | DaShi-Git/Immortal | e3345b4ff2a2b9d215c682db2b4530e24cc3b203 | [
"Apache-2.0"
] | 4 | 2021-12-05T17:28:57.000Z | 2022-03-29T15:55:05.000Z | #include "impch.h"
#include "Log.h"
#include <spdlog/async.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/sinks/basic_file_sink.h>
#include <spdlog/sinks/rotating_file_sink.h>
namespace Immortal
{
std::shared_ptr<spdlog::logger> LOG::logger;
void LOG::Setup(bool async)
{
std::vector<spdlog::si... | 29.162162 | 163 | 0.673772 | QSXW |
ea9e283ad631031a5d30a99f9e8b3ece6c0b9321 | 2,349 | cpp | C++ | atcoder/abc230/D/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | atcoder/abc230/D/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | atcoder/abc230/D/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | // atcoder/abc230/D/main.cpp
// author: @___Johniel
// github: https://github.com/johniel/
#include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first << ... | 30.907895 | 150 | 0.541507 | Johniel |
ea9e88420962f41e79f5602a4efbcd5868773264 | 62 | cpp | C++ | examples/opentracing-cpp/main.cpp | sanblch/hunter | a21edf8a43f567d2ae60ea1acdaab7d4facf3db7 | [
"BSD-2-Clause"
] | 2,146 | 2015-01-10T07:26:58.000Z | 2022-03-21T02:28:01.000Z | examples/opentracing-cpp/main.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 1,778 | 2015-01-03T11:50:30.000Z | 2019-12-26T05:31:20.000Z | examples/opentracing-cpp/main.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 734 | 2015-03-05T19:52:34.000Z | 2022-02-22T23:18:54.000Z | #include <opentracing/tracer.h>
int main()
{
return 0;
}
| 8.857143 | 31 | 0.629032 | sanblch |
eaa274bf60e7b64b68a5c1b9b75596f2f2c8d29a | 807 | cpp | C++ | src/test-layered-direct-filter.cpp | Rutvik28/dfc | 86ce00057c358f91d38826d3c36c95ad0d7b4b74 | [
"MIT"
] | null | null | null | src/test-layered-direct-filter.cpp | Rutvik28/dfc | 86ce00057c358f91d38826d3c36c95ad0d7b4b74 | [
"MIT"
] | 1 | 2019-09-19T21:31:36.000Z | 2019-09-23T04:43:25.000Z | src/test-layered-direct-filter.cpp | skindstrom/dfc | 4d7b9c29bc791c0a18a325478eafbeb459b48758 | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include "flat-direct-filter.hpp"
#include "layered-direct-filter.hpp"
#include "util-test.hpp"
using dfc::FlatDirectFilter;
using dfc::LayeredDirectFilter;
using dfc::test::createPattern;
TEST_CASE(
"DF collection returns the maximum byte count required for indexing") {
LayeredDirectFilte... | 27.827586 | 76 | 0.738538 | Rutvik28 |
eaa42412f467d22483285a98a05a2d51c8b062b6 | 145 | cpp | C++ | OpenGL_Planetarium/winmain.cpp | vmkarhula/Planetarium | f99acf1c98f2789a3eae70eba69d83ab4cba2a43 | [
"MIT"
] | null | null | null | OpenGL_Planetarium/winmain.cpp | vmkarhula/Planetarium | f99acf1c98f2789a3eae70eba69d83ab4cba2a43 | [
"MIT"
] | null | null | null | OpenGL_Planetarium/winmain.cpp | vmkarhula/Planetarium | f99acf1c98f2789a3eae70eba69d83ab4cba2a43 | [
"MIT"
] | null | null | null | #include "PlanetariumApp.h"
int main(int argc, char* argv[]) {
PlanetariumApp* app = new PlanetariumApp();
app->Init();
app->Run();
}
| 10.357143 | 44 | 0.627586 | vmkarhula |
eaa690de0305b359e90e11e64b54b5f9b5525057 | 2,196 | hpp | C++ | archived/atest.hpp | HiTMonitor/ginan | f348e2683507cfeca65bb58880b3abc2f9c36bcf | [
"Apache-2.0"
] | 1 | 2022-03-31T15:16:19.000Z | 2022-03-31T15:16:19.000Z | archived/atest.hpp | hqy123-cmyk/ginan | b69593b584f75e03238c1c667796e2030391fbed | [
"Apache-2.0"
] | null | null | null | archived/atest.hpp | hqy123-cmyk/ginan | b69593b584f75e03238c1c667796e2030391fbed | [
"Apache-2.0"
] | null | null | null | // /*
// * include files
// */
//
// #include <math.h>
// #include "eigenIncluder.hpp"
//
// /*
// * global definitions and variables
// */
//
// // #ifndef LINE_MAX
// // # define LINE_MAX 80
// // #endif
//
// // typedef struct epoch_datum {
// // double epoch;
// // double xyz[3];
// // dou... | 24.674157 | 42 | 0.371129 | HiTMonitor |
eaa7eea7dd195f0e498d9ea14b4dcec87e2497f7 | 387 | hpp | C++ | src/mge/input/dllexport.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | src/mge/input/dllexport.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | 91 | 2019-03-09T11:31:29.000Z | 2022-02-27T13:06:06.000Z | src/mge/input/dllexport.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | // mge - Modern Game Engine
// Copyright (c) 2021 by Alexander Schroeder
// All rights reserved.
#pragma once
#include "mge/dllexport.hpp"
/**
* @def MGEINPUT_EXPORT
* @brief Macro to declare class or function to be exported by/imported from
* input library.
*/
#ifdef BUILD_MGEINPUT
# define MGEINPUT_EXPORT MG... | 21.5 | 76 | 0.744186 | mge-engine |
eaafaa4cd3b393b4b0df5fc3d39de1c8c29021be | 896 | cpp | C++ | novas-wrapper/src/slurp_file.cpp | raphm/planetaria | 1ace1ef6d6cd24f34be63086e456b5bf4a06718b | [
"MIT"
] | null | null | null | novas-wrapper/src/slurp_file.cpp | raphm/planetaria | 1ace1ef6d6cd24f34be63086e456b5bf4a06718b | [
"MIT"
] | null | null | null | novas-wrapper/src/slurp_file.cpp | raphm/planetaria | 1ace1ef6d6cd24f34be63086e456b5bf4a06718b | [
"MIT"
] | null | null | null |
#include "slurp_file.h"
#include <cstring>
#include <vector>
#include <fstream>
std::string slurpfile (const std::string& fileName) {
std::ifstream ifs (fileName.c_str (), std::ios::in | std::ios::binary);
if (!ifs.is_open ()) {
std::string errstr (strerror (errno));
throw std::runtime_error ("error while op... | 26.352941 | 87 | 0.667411 | raphm |
eab475c5389937057cc5a6dc056c44e661ae719c | 2,658 | cpp | C++ | GraphicsMagick.NET/Drawables/DrawableLine.cpp | dlemstra/GraphicsMagick.NET | 332718f2315c3752eaeb84f4a6a30a553441e79e | [
"ImageMagick",
"Apache-2.0"
] | 35 | 2015-10-18T19:49:52.000Z | 2022-01-18T05:30:46.000Z | GraphicsMagick.NET/Drawables/DrawableLine.cpp | elyor0529/GraphicsMagick.NET | 332718f2315c3752eaeb84f4a6a30a553441e79e | [
"ImageMagick",
"Apache-2.0"
] | 12 | 2016-07-22T16:05:03.000Z | 2020-02-26T15:21:03.000Z | GraphicsMagick.NET/Drawables/DrawableLine.cpp | elyor0529/GraphicsMagick.NET | 332718f2315c3752eaeb84f4a6a30a553441e79e | [
"ImageMagick",
"Apache-2.0"
] | 12 | 2016-02-24T12:11:50.000Z | 2021-07-12T18:20:12.000Z | //=================================================================================================
// Copyright 2014-2015 Dirk Lemstra <https://graphicsmagick.codeplex.com/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may ob... | 40.892308 | 100 | 0.382619 | dlemstra |
eab4992aff5418065007b5c875537e522bdafbb6 | 1,487 | inl | C++ | LibGraphics/SceneGraph/Wm4IndexBuffer.inl | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 3 | 2021-08-02T04:03:03.000Z | 2022-01-04T07:31:20.000Z | LibGraphics/SceneGraph/Wm4IndexBuffer.inl | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | null | null | null | LibGraphics/SceneGraph/Wm4IndexBuffer.inl | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 5 | 2019-10-13T02:44:19.000Z | 2021-08-02T04:03:10.000Z | // Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Restricted Libraries source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4RestrictedLicense.pdf
// and may not be copie... | 33.795455 | 78 | 0.446537 | wjezxujian |
eab87e678fd9a26a1d032058283da48f3519696d | 4,052 | cpp | C++ | grading/runner.cpp | UuqV/HomeworkServerHack | ceaababd8f098c7c0d2144d90ae99a4fc9817a19 | [
"BSD-3-Clause"
] | null | null | null | grading/runner.cpp | UuqV/HomeworkServerHack | ceaababd8f098c7c0d2144d90ae99a4fc9817a19 | [
"BSD-3-Clause"
] | null | null | null | grading/runner.cpp | UuqV/HomeworkServerHack | ceaababd8f098c7c0d2144d90ae99a4fc9817a19 | [
"BSD-3-Clause"
] | null | null | null | /* FILENAME: runner.cpp
* YEAR: 2014
* AUTHORS:
* Members of Rensselaer Center for Open Source (rcos.rpi.edu):
* Chris Berger
* Jesse Freitas
* Severin Ibarluzea
* Kiana McNellis
* Kienan Knight-Boehm
* Sam Seng
* LICENSE: Please refer to 'LICENSE.md' for the conditions of using this code
*
* ... | 30.931298 | 133 | 0.580948 | UuqV |
eab988411a370aec0c29325a4b00ce4173e514f1 | 2,557 | cpp | C++ | src/plugins/legacy/itkDataImage/writers/itkMetaDataImageWriter.cpp | aarrieul/medInria-public | 0cd113a6b41e40497f1472630e9afa8e688ba85a | [
"BSD-4-Clause",
"BSD-1-Clause"
] | 61 | 2015-04-14T13:00:50.000Z | 2022-03-09T22:22:18.000Z | src/plugins/legacy/itkDataImage/writers/itkMetaDataImageWriter.cpp | aarrieul/medInria-public | 0cd113a6b41e40497f1472630e9afa8e688ba85a | [
"BSD-4-Clause",
"BSD-1-Clause"
] | 510 | 2016-02-03T13:28:18.000Z | 2022-03-23T10:23:44.000Z | src/plugins/legacy/itkDataImage/writers/itkMetaDataImageWriter.cpp | mathildemerle/medInria-public | e8c517ef6263c1d98a62b79ca7aad30a21b61094 | [
"BSD-4-Clause",
"BSD-1-Clause"
] | 36 | 2015-03-03T22:58:19.000Z | 2021-12-28T18:19:23.000Z | /*=========================================================================
medInria
Copyright (c) INRIA 2013. All rights reserved.
See LICENSE.txt for details in the root of the sources or:
https://github.com/medInria/medInria-public/blob/master/LICENSE.txt
This software is distributed WITHOUT ANY WARRANTY; w... | 33.207792 | 107 | 0.590536 | aarrieul |
eac76fa6834de1f998571e561a3b4e2d4c221ce5 | 268 | cpp | C++ | Graph/menusupprimer.cpp | Dieupix/Graph | c57f17808e274f3c0f9d2829ecf58daec8983fd6 | [
"MIT"
] | null | null | null | Graph/menusupprimer.cpp | Dieupix/Graph | c57f17808e274f3c0f9d2829ecf58daec8983fd6 | [
"MIT"
] | null | null | null | Graph/menusupprimer.cpp | Dieupix/Graph | c57f17808e274f3c0f9d2829ecf58daec8983fd6 | [
"MIT"
] | null | null | null | #include "menusupprimer.h"
menuSupprimer::menuSupprimer(QWidget *parent)
: QMainWindow{parent}, d_vue{this}
{
d_vue.creeInterfaceSupprimer();
connect(&d_vue, &vue::Quitter, this, &menuSupprimer::close);
}
int menuSupprimer::getId()
{
return d_id;
}
| 17.866667 | 64 | 0.701493 | Dieupix |
eac7c94b01df29fa051909cc59ac842a9b5792a8 | 674 | hpp | C++ | src/CalculatorVisitor.hpp | mapret/calculator | fe8e8ac79f8d74625d6e0ece898e025dde6e22a9 | [
"BSD-3-Clause"
] | null | null | null | src/CalculatorVisitor.hpp | mapret/calculator | fe8e8ac79f8d74625d6e0ece898e025dde6e22a9 | [
"BSD-3-Clause"
] | null | null | null | src/CalculatorVisitor.hpp | mapret/calculator | fe8e8ac79f8d74625d6e0ece898e025dde6e22a9 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "Ast.hpp"
#include "BaseVisitor.hpp"
#include <sstream>
#include <stack>
class CalculatorVisitor : public BaseVisitor
{
public:
CalculatorVisitor(std::ostream& error_stream);
void lexingError(char c) override;
void parsingError(const std::string& message) override;
void visit... | 24.071429 | 59 | 0.724036 | mapret |
eac991ef3c058ff6d84f80d847e285b3b9f76479 | 499 | cc | C++ | solutions/cpp/378-kth-smallest-element-in-a-sorted-matrix.cc | PW486/leetcode | c8a38265ebc98fc6335b6420fefe0ce2bb3eeae9 | [
"Unlicense"
] | null | null | null | solutions/cpp/378-kth-smallest-element-in-a-sorted-matrix.cc | PW486/leetcode | c8a38265ebc98fc6335b6420fefe0ce2bb3eeae9 | [
"Unlicense"
] | null | null | null | solutions/cpp/378-kth-smallest-element-in-a-sorted-matrix.cc | PW486/leetcode | c8a38265ebc98fc6335b6420fefe0ce2bb3eeae9 | [
"Unlicense"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int kthSmallest(vector<vector<int>> &matrix, int k) {
vector<int> flat;
for (auto row : matrix) {
flat.insert(flat.end(), row.begin(), row.end());
}
sort(flat.begin(), flat.end());
re... | 18.481481 | 71 | 0.591182 | PW486 |
eaca0fa20c4f51b0d2807f8b220fda65dcadd0e1 | 750 | cpp | C++ | data-structure/L1-010/main.cpp | pipo-chen/play-ptat | d97d0bafcb6ef0a32f4969e0adffd400c673bf77 | [
"MIT"
] | 1 | 2021-05-26T23:14:01.000Z | 2021-05-26T23:14:01.000Z | data-structure/L1-010/main.cpp | pipo-chen/play-pat | 4968f7f1db3fdb48925f5c29574cdc72339c7233 | [
"MIT"
] | null | null | null | data-structure/L1-010/main.cpp | pipo-chen/play-pat | 4968f7f1db3fdb48925f5c29574cdc72339c7233 | [
"MIT"
] | null | null | null | //
// main.cpp
// L1-010
//
// Created by zihan on 2021/12/8.
// Copyright © 2021 xihe. All rights reserved.
//
#include <iostream>
using namespace::std;
int main(int argc, const char * argv[]) {
int a, b, c;
cin >> a >> b >> c;
if (a < b && a < c) {
printf("%d->",a);
if (b < c)
... | 19.230769 | 47 | 0.374667 | pipo-chen |
ead28ecd11f00a39831b5924bca67b24adaa48ea | 324 | cpp | C++ | windmill/src/interface/time/time_system.cpp | racz16/Windmill-Game-Engine | 189534734af9c3152e5663e62873e3e4ea564fb1 | [
"MIT"
] | null | null | null | windmill/src/interface/time/time_system.cpp | racz16/Windmill-Game-Engine | 189534734af9c3152e5663e62873e3e4ea564fb1 | [
"MIT"
] | null | null | null | windmill/src/interface/time/time_system.cpp | racz16/Windmill-Game-Engine | 189534734af9c3152e5663e62873e3e4ea564fb1 | [
"MIT"
] | null | null | null | #include "time_system.h"
#include "../../implementation/time/wm_chrono_time_system.h"
namespace wm {
ptr<time_system> time_system::create() {
return ptr<time_system>(new wm_chrono_time_system());
}
key<time_system> time_system::get_key() {
static const key<time_system> key("WM_TIME_SYSTEM");
return key;
}... | 19.058824 | 60 | 0.725309 | racz16 |
eadc935badc690d46abffe01b4bc18d40a99bd2b | 721 | cxx | C++ | Packages/java/util/function/IntSupplier.cxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | Packages/java/util/function/IntSupplier.cxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | Packages/java/util/function/IntSupplier.cxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | //
// IntSupplier.cxx
// Aries
//
// Created by Brandon on 2018-02-24.
// Copyright © 2018 Brandon. All rights reserved.
//
#include "IntSupplier.hxx"
using java::util::function::IntSupplier;
using java::lang::Object;
IntSupplier::IntSupplier(JVM* vm, jobject instance) : Object()
{
if (vm && instance)
{
... | 24.862069 | 102 | 0.650485 | Brandon-T |
eae1fbb9a9afa825a6d2f3594bf36db9096dec31 | 2,407 | cpp | C++ | sdk/apps/tutorials/webinar_1/GoalGenerator.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2020-04-14T13:55:16.000Z | 2020-04-14T13:55:16.000Z | sdk/apps/tutorials/webinar_1/GoalGenerator.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 4 | 2020-09-25T22:34:29.000Z | 2022-02-09T23:45:12.000Z | sdk/apps/tutorials/webinar_1/GoalGenerator.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2022-01-28T16:37:51.000Z | 2022-01-28T16:37:51.000Z | /*
Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... | 32.972603 | 81 | 0.735771 | ddr95070 |
eae4575153ded72cd72efc801c45c2afe22680df | 3,831 | cpp | C++ | third-party/Empirical/examples/web/Image.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/examples/web/Image.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/examples/web/Image.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | // This file is part of Empirical, https://github.com/devosoft/Empirical
// Copyright (C) Michigan State University, 2018.
// Released under the MIT Software license; see doc/LICENSE
#include "emp/math/Random.hpp"
#include "emp/web/Animate.hpp"
#include "emp/web/canvas_utils.hpp"
#include "emp/web/color_map.hpp"
#i... | 29.697674 | 177 | 0.631428 | koellingh |
eaea633aacfe366e9a48cdf43e44b38b719de81d | 9,314 | cpp | C++ | src/sport/MarketBook.cpp | Sherlock92/greentop | aa278d08babe02326b3ab85a6eafb858d780dec5 | [
"MIT"
] | 5 | 2019-06-30T06:29:46.000Z | 2021-12-17T12:41:23.000Z | src/sport/MarketBook.cpp | Sherlock92/greentop | aa278d08babe02326b3ab85a6eafb858d780dec5 | [
"MIT"
] | 2 | 2018-01-09T17:14:45.000Z | 2020-03-23T00:16:50.000Z | src/sport/MarketBook.cpp | Sherlock92/greentop | aa278d08babe02326b3ab85a6eafb858d780dec5 | [
"MIT"
] | 7 | 2015-09-13T18:40:58.000Z | 2020-01-24T10:57:56.000Z | /**
* Copyright 2017 Colin Doig. Distributed under the MIT license.
*/
#include "greentop/sport/MarketBook.h"
namespace greentop {
namespace sport {
MarketBook::MarketBook() {
}
MarketBook::MarketBook(const std::string& marketId,
const Optional<bool>& isMarketDataDelayed,
const MarketStatus& status,
... | 30.24026 | 101 | 0.678656 | Sherlock92 |
eaf3ffbec60aa264444d02df32ea902c52de1c3a | 10,091 | cpp | C++ | construct_tx.cpp | lemengbin/dalichain-test | f16438dfb7bee03df3927a964e5eee56c7e6c0d3 | [
"MIT"
] | null | null | null | construct_tx.cpp | lemengbin/dalichain-test | f16438dfb7bee03df3927a964e5eee56c7e6c0d3 | [
"MIT"
] | null | null | null | construct_tx.cpp | lemengbin/dalichain-test | f16438dfb7bee03df3927a964e5eee56c7e6c0d3 | [
"MIT"
] | null | null | null | #include <fstream>
#include "construct_tx.h"
#include "base58.h"
#include "keystore.h"
#include "script/script.h"
#include "script/standard.h"
#include "script/sign.h"
#include "utilstrencodings.h"
#include "net.h"
#include "netmessagemaker.h"
#include "core_io.h"
using namespace std;
enum TX_TYPE{COMMON_TX = 1, MULT... | 33.862416 | 127 | 0.621544 | lemengbin |
eaf4190781d0682c37bdde39bf26700f3dce36cb | 4,122 | cpp | C++ | source/librenderer/forward_render_pipeline.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 113 | 2015-06-25T06:24:59.000Z | 2021-09-26T02:46:02.000Z | source/librenderer/forward_render_pipeline.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 2 | 2015-05-03T07:22:49.000Z | 2017-12-11T09:17:20.000Z | source/librenderer/forward_render_pipeline.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 17 | 2015-11-10T15:07:15.000Z | 2021-01-19T15:28:16.000Z | // +----------------------------------------------------------------------
// | Project : ray.
// | All rights reserved.
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017.
// +----------------------------------------------------------------------
// | * Redistributi... | 37.472727 | 108 | 0.715187 | Lauvak |
eaf7d10bb661ee3ab44e6f7080bf9eac89a97a9f | 2,343 | hpp | C++ | codegen/boost/mpl11/detail/left_folds/bounded.erb.hpp | ldionne/mpl11 | 927d4339edc0c0cc41fb65ced2bf19d26bcd4a08 | [
"BSL-1.0"
] | 80 | 2015-03-09T03:19:12.000Z | 2022-03-04T06:44:12.000Z | codegen/boost/mpl11/detail/left_folds/bounded.erb.hpp | rbock/mpl11 | 7923ad2bdc0d8ddaa6a6254ebf5be2b5c6f5a277 | [
"BSL-1.0"
] | 1 | 2021-07-27T22:37:43.000Z | 2021-08-06T17:42:07.000Z | codegen/boost/mpl11/detail/left_folds/bounded.erb.hpp | rbock/mpl11 | 7923ad2bdc0d8ddaa6a6254ebf5be2b5c6f5a277 | [
"BSL-1.0"
] | 8 | 2015-01-28T00:18:57.000Z | 2021-08-06T03:00:49.000Z | /*!
* @file
* Defines `boost::mpl11::detail::left_folds::bounded`.
*
*
* @copyright Louis Dionne 2014
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE.md or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
/////////////////////////////////////... | 28.228916 | 79 | 0.512591 | ldionne |
46b004d3c2d05af1d8f70f87c5d6ee8a5969e064 | 21 | cpp | C++ | src/array.cpp | bluescarni/mod_array | 890e8aa364fcdd71c52d224979119328ea9b87b3 | [
"MIT"
] | null | null | null | src/array.cpp | bluescarni/mod_array | 890e8aa364fcdd71c52d224979119328ea9b87b3 | [
"MIT"
] | null | null | null | src/array.cpp | bluescarni/mod_array | 890e8aa364fcdd71c52d224979119328ea9b87b3 | [
"MIT"
] | null | null | null | #include <array.hpp>
| 10.5 | 20 | 0.714286 | bluescarni |
46b113c28de414af2ee5c09a06f50d0fce12b98a | 18,036 | cpp | C++ | sources/settings.cpp | kr0st/fpgui | 26c584648b3954fd86f1499f8898c96156e33e9e | [
"MIT"
] | null | null | null | sources/settings.cpp | kr0st/fpgui | 26c584648b3954fd86f1499f8898c96156e33e9e | [
"MIT"
] | 45 | 2017-08-29T14:39:05.000Z | 2018-08-13T15:05:23.000Z | sources/settings.cpp | kr0st/fpgui | 26c584648b3954fd86f1499f8898c96156e33e9e | [
"MIT"
] | null | null | null | #include <QCoreApplication>
#include <QString>
#include <QDir>
#include <QTextStream>
#include <settings.h>
#include <globals.h>
#include <utils.h>
namespace fpgui {
namespace settings {
std::string get_config_path()
{
char *home = getenv("HOME");
QString path = home;
path += "/.config/";
path += QC... | 42.041958 | 162 | 0.676314 | kr0st |
46b957df6afe7f92247e8abec59fda052c03bf08 | 5,294 | hpp | C++ | youbot/youbot_driver/include/youbot_driver/youbot/ProtocolDefinitions.hpp | MrJaeqx/ESA--WORK | 50d5b397f634db98e2627a764c7731e76a4b3feb | [
"MIT"
] | 2 | 2018-03-09T13:44:29.000Z | 2019-12-18T16:17:03.000Z | youbot/youbot_driver/include/youbot_driver/youbot/ProtocolDefinitions.hpp | MrJaeqx/ESA--WORK | 50d5b397f634db98e2627a764c7731e76a4b3feb | [
"MIT"
] | 32 | 2017-11-19T16:26:41.000Z | 2018-01-19T12:36:10.000Z | youbot/youbot_driver/include/youbot_driver/youbot/ProtocolDefinitions.hpp | FontysAtWork/ESA-PROJ | 50d5b397f634db98e2627a764c7731e76a4b3feb | [
"MIT"
] | 1 | 2017-11-19T12:45:37.000Z | 2017-11-19T12:45:37.000Z | /****************************************************************
*
* Copyright (c) 2011
* All rights reserved.
*
* Hochschule Bonn-Rhein-Sieg
* University of Applied Sciences
* Computer Science Department
*
* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* Author:
* Jan Paulus, Nico Hoc... | 28.616216 | 103 | 0.670382 | MrJaeqx |
46ba8f84af9b33fa5b3187ecde4ec4e0d73622fa | 36,767 | hpp | C++ | libs/PhiCore/include/phi/core/integer.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 3 | 2020-12-21T13:47:35.000Z | 2022-03-16T23:53:21.000Z | libs/PhiCore/include/phi/core/integer.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 53 | 2020-08-07T07:46:57.000Z | 2022-02-12T11:07:08.000Z | libs/PhiCore/include/phi/core/integer.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 1 | 2020-08-19T15:50:02.000Z | 2020-08-19T15:50:02.000Z | // This file is heavily inspired by Jonathan Müllers <jonathanmueller.dev@gmail.com> type_safe library https://github.com/foonathan/type_safe
// licensed under the MIT license https://github.com/foonathan/type_safe/blob/master/LICENSE
// Original file at https://github.com/foonathan/type_safe/blob/master/include/type_s... | 40.806881 | 141 | 0.667174 | AMS21 |
46bc880d10bc9d8ba1f33f01ac1a434c3be7119b | 8,741 | cpp | C++ | OrbitCore/Capture.cpp | MariaSandru27/orbit | 6dcc6d82405654d07094ee66c396762892379b31 | [
"BSD-2-Clause"
] | 1 | 2020-08-10T09:59:33.000Z | 2020-08-10T09:59:33.000Z | OrbitCore/Capture.cpp | MariaSandru27/orbit | 6dcc6d82405654d07094ee66c396762892379b31 | [
"BSD-2-Clause"
] | null | null | null | OrbitCore/Capture.cpp | MariaSandru27/orbit | 6dcc6d82405654d07094ee66c396762892379b31 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2020 The Orbit Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "Capture.h"
#include <fstream>
#include <ostream>
#include "Core.h"
#include "EventBuffer.h"
#include "FunctionUtils.h"
#include "Injection.h"... | 31.90146 | 80 | 0.624185 | MariaSandru27 |
46c635d3cbbb1a7fd6bd238a7159cd281399216d | 1,596 | hpp | C++ | include/locic/Lex/NumericValue.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 80 | 2015-02-19T21:38:57.000Z | 2016-05-25T06:53:12.000Z | include/locic/Lex/NumericValue.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 8 | 2015-02-20T09:47:20.000Z | 2015-11-13T07:49:17.000Z | include/locic/Lex/NumericValue.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 6 | 2015-02-20T11:26:19.000Z | 2016-04-13T14:30:39.000Z | #ifndef LOCIC_LEX_NUMERICVALUE_HPP
#define LOCIC_LEX_NUMERICVALUE_HPP
#include <cassert>
#include <locic/Support/APInt.hpp>
namespace locic {
namespace Lex {
class NumericValue {
public:
enum Kind {
INTEGER,
FLOAT,
VERSION
};
static NumericValue Integer(APInt integerValue) {
Nu... | 17.347826 | 60 | 0.630326 | scross99 |
46cb59edef76bc0669ef9948d1eb1d0951db666b | 382 | cpp | C++ | codeforces/group/Brazilian Summer Camp 2018/Brazilian Summer Camp 2018, Day 2: Geometry Gauntlet (Basic)/d.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | codeforces/group/Brazilian Summer Camp 2018/Brazilian Summer Camp 2018, Day 2: Geometry Gauntlet (Basic)/d.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | codeforces/group/Brazilian Summer Camp 2018/Brazilian Summer Camp 2018, Day 2: Geometry Gauntlet (Basic)/d.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
#include <cpplib/adt/triangle.hpp>
int32_t main(){
desync();
point<int> tri[3];
for(int i=0; i<3; ++i)
cin >> tri[i].x >> tri[i].y;
triangle<int> t(tri[0], tri[1], tri[2]);
auto ic = t.incenter();
auto r = t.inradius();
cout << fixed << setprecision(10... | 22.470588 | 81 | 0.513089 | tysm |
46ce59e9272ace755a61bf9c6bc109e43b3bcb8d | 299 | cpp | C++ | chapter 7/example/76.cpp | realme72/beginning | 9c6c5abaf675a53f88552dbc7fbf44c6bc94087c | [
"MIT"
] | 2 | 2018-07-01T07:39:44.000Z | 2020-05-17T07:26:26.000Z | chapter 7/example/76.cpp | realme72/beginning | 9c6c5abaf675a53f88552dbc7fbf44c6bc94087c | [
"MIT"
] | null | null | null | chapter 7/example/76.cpp | realme72/beginning | 9c6c5abaf675a53f88552dbc7fbf44c6bc94087c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
void pfactors(int num);
int main ()
{
int n;
printf("enter a number\n");
scanf("%d",&n);
pfactors(n);
return 0;
}
void pfactors(int num)
{
int i=2;
if (num==1)
return ;
while(num%i!=0)
{
i++;
}
printf("%d\n",i);
pfactors(num/i);
} | 10.310345 | 28 | 0.571906 | realme72 |
46d0ab5e2fb0fd8e6dd92905cde461c06896e528 | 3,654 | hpp | C++ | Utils/Types/test/ut/CircularBuffer/CircularState.hpp | m-aleem/fprime | ae8a2a43a39d0e8a1908a82b48106467357d6cba | [
"Apache-2.0"
] | 1 | 2020-05-12T03:43:36.000Z | 2020-05-12T03:43:36.000Z | Utils/Types/test/ut/CircularBuffer/CircularState.hpp | abcouwer-jpl/fprime | f28c92e31d58e7e44bff09ad57d574ca5d5e91c7 | [
"Apache-2.0"
] | 5 | 2020-07-13T16:56:33.000Z | 2020-07-23T20:38:13.000Z | Utils/Types/test/ut/CircularBuffer/CircularState.hpp | abcouwer-jpl/fprime | f28c92e31d58e7e44bff09ad57d574ca5d5e91c7 | [
"Apache-2.0"
] | 3 | 2020-09-05T18:17:21.000Z | 2020-11-15T04:06:24.000Z | /**
* CircularState.hpp:
*
* Setup a fake logger for use with the testing. This allows for the capture of messages from the system and ensure that
* the proper log messages are coming through as expected.
*
* @author mstarch
*/
#include <Fw/Types/BasicTypes.hpp>
#include <Utils/Types/CircularBuffer.hpp>
#ifnde... | 34.471698 | 120 | 0.562671 | m-aleem |
46e07d16271c39333b6104f0d6c8decf3403069a | 691 | cpp | C++ | codeforces/544/B.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | codeforces/544/B.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | codeforces/544/B.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll ;
const ll N=102;
ll gcd(ll a, ll b){ return b == 0 ? a : gcd(b,a%b); }
ll lcm(ll a, ll b) { return a/gcd(a,b)*b; }
int n;
char arr[N][N];
int main(){
int k;
cin>>n>>k;
int a;
if(n%2==0) {
a = (n/2)*(n);
}else{
a =(... | 16.452381 | 53 | 0.364689 | Mohammad-Elsharkawy |
46e4bd263763bf9e77c33e3b4ba497f692ae26d4 | 2,243 | cpp | C++ | rocket/libs/http/grammar.cpp | xcodecraft/youbar | 7fe5073138848e2cff0f3bcd22842c2cad3d0390 | [
"Apache-2.0"
] | null | null | null | rocket/libs/http/grammar.cpp | xcodecraft/youbar | 7fe5073138848e2cff0f3bcd22842c2cad3d0390 | [
"Apache-2.0"
] | null | null | null | rocket/libs/http/grammar.cpp | xcodecraft/youbar | 7fe5073138848e2cff0f3bcd22842c2cad3d0390 | [
"Apache-2.0"
] | 1 | 2018-12-28T03:33:54.000Z | 2018-12-28T03:33:54.000Z | #include "http/http.h"
#include "grammar.h"
using namespace std;
using namespace pylon;
using namespace pylon::http ;
using namespace boost;
namespace pylon {
namespace http {
http_grammar::http_grammar()
: http_grammar::base_type(_requ_header,"requ_header")
{
using namespace qi::labels;
_requ_lin... | 35.603175 | 132 | 0.556844 | xcodecraft |
46e5aaf01032cecc857c8910bbeb15a40204ec0d | 5,169 | cpp | C++ | addsequence.cpp | rcetin/pipo | 4237da9344006f87a78e7b762b321928919a80cf | [
"MIT"
] | null | null | null | addsequence.cpp | rcetin/pipo | 4237da9344006f87a78e7b762b321928919a80cf | [
"MIT"
] | 6 | 2018-12-31T10:49:53.000Z | 2019-06-26T13:26:02.000Z | addsequence.cpp | rcetin/pipo | 4237da9344006f87a78e7b762b321928919a80cf | [
"MIT"
] | null | null | null | #include "addsequence.h"
#include "ui_addsequence.h"
#include "mainwindow.h"
#include <QMessageBox>
#include <QCloseEvent>
#include <QDebug>
#include <QStringList>
addSequence::addSequence(QWidget *parent) :
QDialog(parent),
ui(new Ui::addSequence)
{
ui->setupUi(this);
editFlag = 0;
}
addSequence::add... | 29.878613 | 134 | 0.572838 | rcetin |
46eb362eb950080d90e0f42cb3ab8262b8b0da8a | 1,971 | cpp | C++ | 12657.cpp | R-penguins/UVa-Online-Judge-Solutions | 4bb24ab26c207903ff5b6fea6cfe122ae6578d62 | [
"MIT"
] | null | null | null | 12657.cpp | R-penguins/UVa-Online-Judge-Solutions | 4bb24ab26c207903ff5b6fea6cfe122ae6578d62 | [
"MIT"
] | null | null | null | 12657.cpp | R-penguins/UVa-Online-Judge-Solutions | 4bb24ab26c207903ff5b6fea6cfe122ae6578d62 | [
"MIT"
] | null | null | null | /**
* AOAPC II Example 6-5 Boxes in a Lines
*/
#include <bits/stdc++.h>
using namespace std;
vector<int> L, R;
void link(int l, int r)
{
R[l] = r;
L[r] = l;
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n, m, T = 1;
while (cin >> n >> m)
{
L.clear();
R.c... | 23.188235 | 62 | 0.267377 | R-penguins |
46eb47cb753a053599aea0a9ea8f534188ad80b3 | 1,484 | hpp | C++ | turtlebot4_base/include/turtlebot4_base/buttons.hpp | turtlebot/turtlebot4_robot | a9925d12f01904fb4e4208dbc45d8dc990ffdbfe | [
"Apache-2.0"
] | 2 | 2022-03-07T17:02:13.000Z | 2022-03-29T03:07:06.000Z | turtlebot4_base/include/turtlebot4_base/buttons.hpp | turtlebot/turtlebot4_robot | a9925d12f01904fb4e4208dbc45d8dc990ffdbfe | [
"Apache-2.0"
] | null | null | null | turtlebot4_base/include/turtlebot4_base/buttons.hpp | turtlebot/turtlebot4_robot | a9925d12f01904fb4e4208dbc45d8dc990ffdbfe | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 Clearpath Robotics, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 25.152542 | 82 | 0.762129 | turtlebot |
46f1f7d09d5f25a5afe1a4c9925c84459a0c8d45 | 4,216 | cpp | C++ | samples/boost.asio/drink_shop/drink_shop_cli.cpp | roamingunner/cmake-template | c4254d261eb945ae7fdff83f28b1bab999f72e8c | [
"Apache-2.0"
] | null | null | null | samples/boost.asio/drink_shop/drink_shop_cli.cpp | roamingunner/cmake-template | c4254d261eb945ae7fdff83f28b1bab999f72e8c | [
"Apache-2.0"
] | null | null | null | samples/boost.asio/drink_shop/drink_shop_cli.cpp | roamingunner/cmake-template | c4254d261eb945ae7fdff83f28b1bab999f72e8c | [
"Apache-2.0"
] | null | null | null | #include <argp.h>
#include <stdint.h>
#include <string>
#include <json/json.h>
#include <iostream>
#include <boost/asio.hpp>
#include "drink_shop_protocol.hpp"
using namespace std;
using namespace boost::asio;
const char *argp_program_version =
"1.0";
const char *argp_program_bug_address =
"<xxxxxx@xxx.com>";
/* Prog... | 26.186335 | 99 | 0.620019 | roamingunner |
46f392fcc3bf626609a452f158001feef5427e29 | 393 | cpp | C++ | src/main.cpp | SkepticCoder/grEditor | 8ae9255c8346178c3baa7706a49604cf556517c7 | [
"MIT"
] | null | null | null | src/main.cpp | SkepticCoder/grEditor | 8ae9255c8346178c3baa7706a49604cf556517c7 | [
"MIT"
] | null | null | null | src/main.cpp | SkepticCoder/grEditor | 8ae9255c8346178c3baa7706a49604cf556517c7 | [
"MIT"
] | null | null | null |
#include <QtGui>
#include <QtWidgets/QApplication>
#include "mainwindow.h"
int main(int argv, char *args[])
{
Q_INIT_RESOURCE(project);
QApplication app(argv, args);
app.setStyle("windowsmodernstyle");
app.setWindowIcon(QIcon(":/res/icon32.ico"));
MainWindow mainWindow;
mainWindow.setGeomet... | 18.714286 | 49 | 0.679389 | SkepticCoder |
46f4eab14369c7f182a996aa82d27f220f2d94a9 | 1,699 | cpp | C++ | domain/creature/src/human.cpp | PKizin/game_design | 6223466ea46c091616f8d832659306fe7140b316 | [
"MIT"
] | null | null | null | domain/creature/src/human.cpp | PKizin/game_design | 6223466ea46c091616f8d832659306fe7140b316 | [
"MIT"
] | null | null | null | domain/creature/src/human.cpp | PKizin/game_design | 6223466ea46c091616f8d832659306fe7140b316 | [
"MIT"
] | null | null | null | #include "human.hpp"
#include "i_move_strategy.hpp"
#include "i_hit_strategy.hpp"
#include "i_search_strategy.hpp"
Human::Human() {
}
Human::~Human() {
}
void Human::move(enum EDirection dir) {
if (_move_strategy) {
_move_strategy->move(*this, dir);
}
}
void Human::hit() {
... | 17.884211 | 69 | 0.661566 | PKizin |
46f61a5ff6fc807089978ece6c7ac14c01d44996 | 2,098 | cpp | C++ | 06-class-design/readerEx.06.02/main.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 81 | 2018-11-15T21:23:19.000Z | 2022-03-06T09:46:36.000Z | 06-class-design/readerEx.06.02/main.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | null | null | null | 06-class-design/readerEx.06.02/main.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 41 | 2018-11-15T21:23:24.000Z | 2022-02-24T03:02:26.000Z | //
// main.cpp
//
// This program uses a Card class to create a deck of cards.
//
// For example:
//
// CS106B Programming Abstractions in C++: Chpt 6, Ex 2
// Print a deck of playing cards modeled with a Class
//
// AC 2C 3C 4C 5C 6C 7C 8C 9C 10C JC QC KC
// AD 2D 3D 4D 5D 6D 7D 8D 9D 10D JD QD KD
// AH... | 32.276923 | 91 | 0.56101 | heavy3 |
46f7a8b325fc6dfe69b0470c4edfb346377a89ba | 818 | cpp | C++ | test/SourceFiles/InfrastructureTest/EncodedTransformTest.cpp | IceEmblem/DocFinder | 4d6609fbfcad3965e787ab6614a1dc63288b170b | [
"MIT"
] | 1 | 2020-01-13T10:13:45.000Z | 2020-01-13T10:13:45.000Z | test/SourceFiles/InfrastructureTest/EncodedTransformTest.cpp | IceEmblem/DocFinder | 4d6609fbfcad3965e787ab6614a1dc63288b170b | [
"MIT"
] | null | null | null | test/SourceFiles/InfrastructureTest/EncodedTransformTest.cpp | IceEmblem/DocFinder | 4d6609fbfcad3965e787ab6614a1dc63288b170b | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "../../../src/Infrastructure/HeaderFiles/EncodedTransform.hpp"
using namespace Infrastructure;
class EncodedTransformTest : public testing::Test {
public:
// 每个测试用例开始时调用
void SetUp()
{
}
// 每个测试用例结束后调用
void TearDown()
{
}
};
TEST_F(EncodedTransformT... | 22.108108 | 78 | 0.658924 | IceEmblem |
46f845375b8e317c0306c93b0d31419b10f39861 | 15,185 | cpp | C++ | utilities.cpp | ranea/cryptopals | a390da22dc87a336c70a170675cf9ab3db103dfa | [
"MIT"
] | null | null | null | utilities.cpp | ranea/cryptopals | a390da22dc87a336c70a170675cf9ab3db103dfa | [
"MIT"
] | null | null | null | utilities.cpp | ranea/cryptopals | a390da22dc87a336c70a170675cf9ab3db103dfa | [
"MIT"
] | null | null | null | #include <algorithm>
#include <array>
#include <bitset>
#include <climits>
#include <experimental/string_view>
#include <fstream>
#include <iostream>
#include <limits>
#include <numeric>
#include <sstream>
#include <string>
#include <unordered_map>
#include <vector>
// uncomment to disable assert()
// #define NDEBUG
#i... | 32.17161 | 80 | 0.586434 | ranea |
46fbaef7e48b90351cf81f1bef0e6f3e491c2b33 | 199 | hpp | C++ | generated/CompileTimeConfig_Engine.hpp | CXUtk/TRV2 | 945950012e2385aeb24e80bf5e876703445ba423 | [
"Apache-2.0"
] | null | null | null | generated/CompileTimeConfig_Engine.hpp | CXUtk/TRV2 | 945950012e2385aeb24e80bf5e876703445ba423 | [
"Apache-2.0"
] | 15 | 2021-09-04T13:02:51.000Z | 2021-10-05T05:51:31.000Z | generated/CompileTimeConfig_Engine.hpp | CXUtk/TRV2 | 945950012e2385aeb24e80bf5e876703445ba423 | [
"Apache-2.0"
] | null | null | null | // The configured options and settings for TRV2 Engine
#define TRV2_ENGINE_VERSION_MAJOR 0
#define TRV2_ENGINE_VERSION_MINOR 3
#define TRV2_ENGINE_VERSION_PATCH 0
#define TRV2_ENGINE_VERSION_TWEAK 0
| 33.166667 | 54 | 0.864322 | CXUtk |
46feee1877a5b6825e794559b50b81318c6e8040 | 913 | cpp | C++ | volume4/1343_16Apr2007_1618680.cpp | andriybuday/timus | a5cdc03f3ca8e7878220b8e0a0c72343f98ee1eb | [
"MIT"
] | null | null | null | volume4/1343_16Apr2007_1618680.cpp | andriybuday/timus | a5cdc03f3ca8e7878220b8e0a0c72343f98ee1eb | [
"MIT"
] | null | null | null | volume4/1343_16Apr2007_1618680.cpp | andriybuday/timus | a5cdc03f3ca8e7878220b8e0a0c72343f98ee1eb | [
"MIT"
] | null | null | null | //1343_AC
#include <stdio.h>
#define PR_ARR 5000000
#define PR_DONE 340000
__int64 a[PR_DONE + 10000],i,n,m;
bool b[PR_ARR + 50];
void make()
{
__int64 i,j,an;
for (i=2; i<PR_ARR; i++)
if (!b[i])
for (j=2; j<=PR_ARR/i; j++)
if (i*j<=PR_ARR) b[i*j]=1;
an=0;
for (i=2; i<PR_ARR; i++)
if (!b[i])
{
an++... | 12.506849 | 39 | 0.500548 | andriybuday |
20078fd76a884cbcf32357fe43726f4555842ba3 | 133 | cpp | C++ | miniFE-sycl/basic/TBBNode.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 692 | 2015-11-12T13:56:43.000Z | 2022-03-30T03:45:59.000Z | miniFE-sycl/basic/TBBNode.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 1,096 | 2015-11-12T09:08:22.000Z | 2022-03-31T21:48:41.000Z | miniFE-sycl/basic/TBBNode.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 224 | 2015-11-12T21:17:03.000Z | 2022-03-30T00:57:48.000Z | #ifdef MINIFE_HAVE_TBB
#include "TBBNode.hpp"
tbb::task_scheduler_init TBBNode::tsi_(tbb::task_scheduler_init::deferred);
#endif
| 14.777778 | 75 | 0.789474 | BeauJoh |
20174fead8a887cd6c2ebf7c6db299bee341dddf | 9,596 | hpp | C++ | gil_2/boost/gil/extension/opencv/drawing.hpp | boost-gil/gil-contributions | 22c32e6221d0c52a4c4bd46d1395b00fdefbd061 | [
"BSL-1.0"
] | 1 | 2019-01-19T00:50:12.000Z | 2019-01-19T00:50:12.000Z | gil_2/boost/gil/extension/opencv/drawing.hpp | boost-gil/gil-contributions-archive | 22c32e6221d0c52a4c4bd46d1395b00fdefbd061 | [
"BSL-1.0"
] | null | null | null | gil_2/boost/gil/extension/opencv/drawing.hpp | boost-gil/gil-contributions-archive | 22c32e6221d0c52a4c4bd46d1395b00fdefbd061 | [
"BSL-1.0"
] | null | null | null | /*
Copyright 2008 Christian Henning
Use, modification and distribution are 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).
*/
/***********************************************************************************... | 27.184136 | 99 | 0.466965 | boost-gil |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.