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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25d1824fb2cbe0e9da5dbffccab59beab8e79368 | 8,892 | cpp | C++ | thormang3_step_control_module/src/robotis_online_walking_plugin.cpp | thor-mang/ROBOTIS-THORMANG-MPC | 6d5d6479ddab1bbcf0ff34e5cf6f98823da38cad | [
"BSD-3-Clause"
] | 3 | 2018-01-30T16:03:20.000Z | 2021-11-13T21:14:08.000Z | thormang3_step_control_module/src/robotis_online_walking_plugin.cpp | thor-mang/ROBOTIS-THORMANG-MPC | 6d5d6479ddab1bbcf0ff34e5cf6f98823da38cad | [
"BSD-3-Clause"
] | null | null | null | thormang3_step_control_module/src/robotis_online_walking_plugin.cpp | thor-mang/ROBOTIS-THORMANG-MPC | 6d5d6479ddab1bbcf0ff34e5cf6f98823da38cad | [
"BSD-3-Clause"
] | null | null | null | #include <thormang3_step_control_module/robotis_online_walking_plugin.h>
#include <thormang3_walking_module/thormang3_online_walking.h>
#include <thormang3_walking_module/walking_module.h>
namespace thormang3
{
using namespace vigir_footstep_planning;
THORMANG3OnlineWalkingPlugin::THORMANG3OnlineWalkingPlugin()
... | 33.055762 | 158 | 0.753711 | thor-mang |
25d1f31082b94445867fed6605391419691dffe0 | 899 | hpp | C++ | tasks/LedMatrixDisplay.hpp | PhischDotOrg/stm32f4-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | 1 | 2022-01-31T01:59:52.000Z | 2022-01-31T01:59:52.000Z | tasks/LedMatrixDisplay.hpp | PhischDotOrg/stm32-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | 5 | 2020-04-13T21:55:12.000Z | 2020-06-27T17:44:44.000Z | tasks/LedMatrixDisplay.hpp | PhischDotOrg/stm32f4-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | null | null | null | /*-
* $Copyright$
-*/
#ifndef _TASKS_LED_MATRIX_DISPLAY_HPP_3dcb329a_694a_48b4_8249_5ca9cb2ed9b4
#define _TASKS_LED_MATRIX_DISPLAY_HPP_3dcb329a_694a_48b4_8249_5ca9cb2ed9b4
#include "tasks/Task.hpp"
#include <gpio/GpioPin.hpp>
#include <uart/UartDevice.hpp>
namespace tasks {
template<typename LedMatrixT, typename ... | 26.441176 | 149 | 0.765295 | PhischDotOrg |
25d39d929f95332c75d0f8c7a56f050bd408de0a | 609 | hpp | C++ | include/guidance/segregated_intersection_classification.hpp | AugustoQueiroz/pedalavel-backend | c7fa405ff6f6823bdc9d4bb857eddc7197be1f4f | [
"BSD-2-Clause"
] | null | null | null | include/guidance/segregated_intersection_classification.hpp | AugustoQueiroz/pedalavel-backend | c7fa405ff6f6823bdc9d4bb857eddc7197be1f4f | [
"BSD-2-Clause"
] | null | null | null | include/guidance/segregated_intersection_classification.hpp | AugustoQueiroz/pedalavel-backend | c7fa405ff6f6823bdc9d4bb857eddc7197be1f4f | [
"BSD-2-Clause"
] | 1 | 2019-09-23T22:49:07.000Z | 2019-09-23T22:49:07.000Z | #include "util/typedefs.hpp"
#include <unordered_set>
namespace osrm
{
namespace util
{
class NameTable;
}
namespace extractor
{
class NodeBasedGraphFactory;
}
namespace guidance
{
// Find all "segregated" edges, e.g. edges that can be skipped in turn instructions.
// The main cases are:
// - middle edges between t... | 21.75 | 95 | 0.701149 | AugustoQueiroz |
25dabbbb9c66336a8a909ef3fe31761be685940e | 1,886 | cpp | C++ | benchmarks/threadpool/benchmark.cpp | alexbriskin/taskflow | da69f8989f26f8ff7bc731dbafb2f6ce171934fc | [
"MIT"
] | null | null | null | benchmarks/threadpool/benchmark.cpp | alexbriskin/taskflow | da69f8989f26f8ff7bc731dbafb2f6ce171934fc | [
"MIT"
] | null | null | null | benchmarks/threadpool/benchmark.cpp | alexbriskin/taskflow | da69f8989f26f8ff7bc731dbafb2f6ce171934fc | [
"MIT"
] | null | null | null | #include <taskflow/taskflow.hpp>
#include <chrono>
#include "ThreadPool.hpp"
ThreadPool* ThreadPool::singleton = nullptr;
std::mutex ThreadPool::singleton_mutex;
tf::Executor executor;
class ChronoTimer {
public:
ChronoTimer(void) {
}
void start(void){
startTime = std::chrono::high_resolution_clock::now();
}
v... | 22.452381 | 61 | 0.629905 | alexbriskin |
25db6ad72a6d8a018fff90d5533d6d667604fe69 | 3,776 | hpp | C++ | src/core/exponential.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 11 | 2016-03-31T17:46:15.000Z | 2022-02-14T01:07:56.000Z | src/core/exponential.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2016-04-04T16:40:47.000Z | 2019-10-16T22:22:54.000Z | src/core/exponential.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2019-10-16T22:20:15.000Z | 2019-11-28T11:59:03.000Z | /*
Copyright 2016 Mitchell Young
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 ... | 27.362319 | 80 | 0.601165 | tp-ntouran |
25dcaa63f88e96f8b8aea70cd7e38066eaa3cd88 | 2,362 | cpp | C++ | Algorithms/0993.CousinsInBinaryTree/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0993.CousinsInBinaryTree/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0993.CousinsInBinaryTree/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | #include <queue>
#include "TreeNode.h"
#include "TreeNodeUtils.h"
#include "gtest/gtest.h"
using CommonLib::TreeNode;
namespace
{
struct NodeData
{
NodeData(TreeNode* current, size_t depth, TreeNode* parent) : Current(current), Depth(depth), Parent(parent)
{
}
TreeNode* Current;
size_t Depth;
... | 28.457831 | 129 | 0.600339 | stdstring |
25e0c3389da573d2eedb1433ce82a0f442dc3c7b | 881 | cpp | C++ | UOJ/Goodbye Yiwei/B/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | UOJ/Goodbye Yiwei/B/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | UOJ/Goodbye Yiwei/B/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstring>
#define maxn 100010
#define maxm 200010
using namespace std;
int T,n,m;
struct Graph{
int tot,head[maxn],to[maxm],next[maxm],du[maxn],mark[maxn];
void addedge(int a,int b){to[++tot]=b;next[tot]=head[a];head[a]=tot;++du[a];}
void clear(){tot=0;memset(head,0,size... | 22.589744 | 101 | 0.578888 | sjj118 |
25e3e10969df769bef5fb49031e2c4848fc1c2ea | 1,122 | hpp | C++ | sources/Notebook.hpp | LiorBreitman8234/Ex2_cpp_b | 53c8c2524d737e3121a749c3b1ff2ef4551de6cb | [
"MIT"
] | null | null | null | sources/Notebook.hpp | LiorBreitman8234/Ex2_cpp_b | 53c8c2524d737e3121a749c3b1ff2ef4551de6cb | [
"MIT"
] | null | null | null | sources/Notebook.hpp | LiorBreitman8234/Ex2_cpp_b | 53c8c2524d737e3121a749c3b1ff2ef4551de6cb | [
"MIT"
] | null | null | null | //
// Created by bravo8234 on 20/03/2022.
//
#ifndef EX2_CPP_QA_NOTEBOOK_HPP
#define EX2_CPP_QA_NOTEBOOK_HPP
#include <iostream>
#include <vector>
#include <map>
#include <unordered_map>
#include <string>
#include <stdexcept>
#include "Page.hpp"
#include "Direction.hpp"
#define ROW_LENGTH 100
#define CHAR_UP_LIMIT 1... | 25.5 | 115 | 0.688948 | LiorBreitman8234 |
25e45e9972c42667d5f0467baaa2ab2366b980c5 | 18,719 | cpp | C++ | src/incphp.cpp | StephanGocht/incphp | d92cd186d4bfb059140278b0adc2ec47de06f704 | [
"MIT"
] | 1 | 2021-03-08T08:08:03.000Z | 2021-03-08T08:08:03.000Z | src/incphp.cpp | StephanGocht/incphp | d92cd186d4bfb059140278b0adc2ec47de06f704 | [
"MIT"
] | null | null | null | src/incphp.cpp | StephanGocht/incphp | d92cd186d4bfb059140278b0adc2ec47de06f704 | [
"MIT"
] | 1 | 2017-08-29T07:09:09.000Z | 2017-08-29T07:09:09.000Z | #include "incphp.h"
#include <array>
#include <iostream>
#include <cmath>
#include <set>
#include "SatVariable.h"
#include "LearnedClauseEvaluationDecorator.h"
#include "tclap/CmdLine.h"
#include "carj/carj.h"
#include "carj/ScopedTimer.h"
#include "ipasir/randomized_ipasir.h"
#include "ipasir/ipasir_cpp.h"
#include... | 23.664981 | 87 | 0.653614 | StephanGocht |
25fcf11745a446cb8ddc224fe08418b05228c89a | 16,735 | hpp | C++ | examples/cpuid/libcpuid/include/cpuid/cpuid.hpp | DrPizza/jsm | d5fc0a6c1e579bbb15c546aa3b76012ad93bc7ef | [
"MIT"
] | 1 | 2021-06-29T06:46:34.000Z | 2021-06-29T06:46:34.000Z | examples/cpuid/libcpuid/include/cpuid/cpuid.hpp | DrPizza/jsm | d5fc0a6c1e579bbb15c546aa3b76012ad93bc7ef | [
"MIT"
] | null | null | null | examples/cpuid/libcpuid/include/cpuid/cpuid.hpp | DrPizza/jsm | d5fc0a6c1e579bbb15c546aa3b76012ad93bc7ef | [
"MIT"
] | null | null | null | #ifndef CPUID_HPP
#define CPUID_HPP
#include <cstddef>
#include <array>
#include <map>
#include <gsl/gsl>
#include <fmt/format.h>
#include "suffixes.hpp"
#if defined(_MSC_VER)
#define UNREACHABLE() __assume(0)
#else
#define UNREACHABLE() __builtin_unreachable()
#endif
namespace cpuid {
enum s... | 32.685547 | 126 | 0.612668 | DrPizza |
25fd87249c385e2b459e6d3fc0275a6b65d9b193 | 44,878 | cpp | C++ | source/backend/shape/bezier.cpp | acekiller/povray | ae6837fb8625bb9ca00830f8871c90c87dd21b75 | [
"Zlib"
] | 1 | 2015-06-21T05:27:57.000Z | 2015-06-21T05:27:57.000Z | source/backend/shape/bezier.cpp | binji/povray | ae6837fb8625bb9ca00830f8871c90c87dd21b75 | [
"Zlib"
] | null | null | null | source/backend/shape/bezier.cpp | binji/povray | ae6837fb8625bb9ca00830f8871c90c87dd21b75 | [
"Zlib"
] | null | null | null | /*******************************************************************************
* bezier.cpp
*
* This module implements the code for Bezier bicubic patch shapes
*
* This file was written by Alexander Enzmann. He wrote the code for
* bezier bicubic patches and generously provided us these enhancements.
*
* fro... | 19.088898 | 182 | 0.533246 | acekiller |
d308603b4cafc4b003b92fad971055b67b738aff | 5,336 | cpp | C++ | samples/stm32l011xx/command_line/main.cpp | JayKickliter/CML | d21061a3abc013a8386798280b9595e9d4a2978c | [
"MIT"
] | null | null | null | samples/stm32l011xx/command_line/main.cpp | JayKickliter/CML | d21061a3abc013a8386798280b9595e9d4a2978c | [
"MIT"
] | null | null | null | samples/stm32l011xx/command_line/main.cpp | JayKickliter/CML | d21061a3abc013a8386798280b9595e9d4a2978c | [
"MIT"
] | null | null | null | /*
Name: main.cpp
Copyright(c) 2019 Mateusz Semegen
This code is licensed under MIT license (see LICENSE file for details)
*/
//cml
#include <cml/collection/Vector.hpp>
#include <cml/common/cstring.hpp>
#include <cml/hal/counter.hpp>
#include <cml/hal/systick.hpp>
#include <cml/hal/peripherals... | 31.761905 | 118 | 0.572714 | JayKickliter |
d309a3a3096fdebad8cf4baf0f5fd64a39720fe9 | 673 | cpp | C++ | Leetcode/remve_duplicates_sorted.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | Leetcode/remve_duplicates_sorted.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | Leetcode/remve_duplicates_sorted.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | //leetcode - 26
#include<bits/stdc++.h>
using namespace std;
int remove_duplicate_sorteed_array(vector <int> &v)
{
if(v.size() == 0)
return 0;
int i(0);
int j(1);
while(j<v.size())
{
if(v[i] == v[j])
{
j++;
}
else
... | 14.020833 | 57 | 0.358098 | prameetu |
d30e9b47aca32b97d8a7182db8fdd762709681aa | 2,451 | cpp | C++ | BinaryIO/BinaryReader.cpp | ghaffaribehdad/Preprocessor | 85165a1259f8dcb1edd92a8113343875dd6085ea | [
"MIT"
] | null | null | null | BinaryIO/BinaryReader.cpp | ghaffaribehdad/Preprocessor | 85165a1259f8dcb1edd92a8113343875dd6085ea | [
"MIT"
] | null | null | null | BinaryIO/BinaryReader.cpp | ghaffaribehdad/Preprocessor | 85165a1259f8dcb1edd92a8113343875dd6085ea | [
"MIT"
] | null | null | null |
#include "BinaryReader.h"
#include <fstream>
#include <filesystem>
// define fs namespace for convenience
namespace fs = std::experimental::filesystem;
// keep track fo instantiation
unsigned int BinaryReader::s_instances = 0;
// constructor
BinaryReader::BinaryReader(const char* _fileName)
{
... | 20.771186 | 80 | 0.681355 | ghaffaribehdad |
d310a52a4d42d17e75db3bcf05f0fadc483e91be | 1,076 | cpp | C++ | JTS/CF-B/CF714-D2-B/main.cpp | rahulsrma26/ol_codes | dc599f5b70c14229a001c5239c366ba1b990f68b | [
"MIT"
] | 2 | 2019-03-18T16:06:10.000Z | 2019-04-07T23:17:06.000Z | JTS/CF-B/CF714-D2-B/main.cpp | rahulsrma26/ol_codes | dc599f5b70c14229a001c5239c366ba1b990f68b | [
"MIT"
] | null | null | null | JTS/CF-B/CF714-D2-B/main.cpp | rahulsrma26/ol_codes | dc599f5b70c14229a001c5239c366ba1b990f68b | [
"MIT"
] | 1 | 2019-03-18T16:06:52.000Z | 2019-03-18T16:06:52.000Z | // Date : 2019-03-29
// Author : Rahul Sharma
// Problem : http://codeforces.com/contest/714/problem/B
#include <algorithm>
#include <iostream>
#include <vector>
int main() {
using namespace std;
ios_base::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
int a = -1, b = -1, c = -1, ... | 18.877193 | 56 | 0.358736 | rahulsrma26 |
d310f83c21ed88818d09c47575a6108e2e6884e7 | 4,603 | hpp | C++ | System.Drawing/src/Switch/System/Drawing/Png.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 4 | 2021-10-14T01:43:00.000Z | 2022-03-13T02:16:08.000Z | System.Drawing/src/Switch/System/Drawing/Png.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | null | null | null | System.Drawing/src/Switch/System/Drawing/Png.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 2 | 2022-03-13T02:16:06.000Z | 2022-03-14T14:32:57.000Z | #pragma once
#define PNG_SKIP_SETJMP_CHECK
#include <png.h>
#undef PNG_SKIP_SETJMP_CHECK
#include <zlib.h>
#include <Switch/System/Object.hpp>
#include <Switch/System/IO//BinaryReader.hpp>
#include "../../../../include/Switch/System/Drawing/Image.hpp"
#include "../../../../include/Switch/System/Drawing/Imaging/FrameD... | 37.422764 | 187 | 0.611123 | kkptm |
d31146fb16e388b45f401cec225d5c1702cd50b7 | 2,865 | cpp | C++ | SDK/src/lgGuiExplorador.cpp | rgr0912/LibreGame | ffce4dbb3abeea1bbc64bb5bea29f76fc44b1e4f | [
"MIT"
] | null | null | null | SDK/src/lgGuiExplorador.cpp | rgr0912/LibreGame | ffce4dbb3abeea1bbc64bb5bea29f76fc44b1e4f | [
"MIT"
] | null | null | null | SDK/src/lgGuiExplorador.cpp | rgr0912/LibreGame | ffce4dbb3abeea1bbc64bb5bea29f76fc44b1e4f | [
"MIT"
] | null | null | null | #include "lgIMGUI.h"
Ogre::String objeto;
Ogre::SceneNode* _nodeImgui;
static int rb = 1;
static int rl = 1;
void lgGUI::Explorador(bool* p, Ogre::RenderWindow* win, Ogre::SceneManager* manager){
ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoTitleBar;
window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiW... | 36.730769 | 132 | 0.609773 | rgr0912 |
d312c56b74e161ad7b6c71cf7ae2bf2d04a1e8ec | 2,925 | cpp | C++ | cxx_examples/threshold_detect.cpp | kb3gtn/BladeRF_Setup_Instructions | 14f970a5d426a1909ab7d45165c808879bbb1f17 | [
"CC0-1.0"
] | 1 | 2021-12-12T15:05:25.000Z | 2021-12-12T15:05:25.000Z | cxx_examples/threshold_detect.cpp | kb3gtn/BladeRF_Setup_Instructions | 14f970a5d426a1909ab7d45165c808879bbb1f17 | [
"CC0-1.0"
] | null | null | null | cxx_examples/threshold_detect.cpp | kb3gtn/BladeRF_Setup_Instructions | 14f970a5d426a1909ab7d45165c808879bbb1f17 | [
"CC0-1.0"
] | null | null | null | ////////////////////////////////////////////
// Threshold Detect
//
// This is a simple demodulator that just tells
// if the received energy is above a threshold
// or not.
//
// You can use a UHF transmitter to transmit
// a CW or modulated signal at 446.5 MHz.
//
// This will indicate if it see the start of the sign... | 22.851563 | 78 | 0.623248 | kb3gtn |
d312ea3a6301bf51be5603d1359d3b40e59b6deb | 2,793 | hpp | C++ | include/Camera.hpp | alecwalsh/glfwogltest2 | 70224838d4851cb308834662763e51eb310f13b2 | [
"BSD-2-Clause"
] | null | null | null | include/Camera.hpp | alecwalsh/glfwogltest2 | 70224838d4851cb308834662763e51eb310f13b2 | [
"BSD-2-Clause"
] | null | null | null | include/Camera.hpp | alecwalsh/glfwogltest2 | 70224838d4851cb308834662763e51eb310f13b2 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include "GameObject.hpp"
#include "TimeManager.hpp"
#include <Physics/Collision.hpp>
#include <cstdint>
#include <glm/glm.hpp>
// TODO: Add support for roll
class Camera : public GameObject {
void UpdateViewMatrix() noexcept;
void UpdateVectors(glm::vec3 frontVector, glm::vec3 upVector) noexc... | 28.5 | 122 | 0.619764 | alecwalsh |
d3145bbc042c71a96f7ad0f02504129db950bdf6 | 3,108 | cpp | C++ | rvalue/perfect forwarding/src/Main.cpp | matt360/ModernCpp | 42ab42447d22c9e92f3da12dcb8ac16794668879 | [
"MIT"
] | null | null | null | rvalue/perfect forwarding/src/Main.cpp | matt360/ModernCpp | 42ab42447d22c9e92f3da12dcb8ac16794668879 | [
"MIT"
] | 16 | 2018-03-01T11:18:55.000Z | 2018-07-01T17:17:32.000Z | rvalue/perfect forwarding/src/Main.cpp | matzar/ModernCpp | 42ab42447d22c9e92f3da12dcb8ac16794668879 | [
"MIT"
] | null | null | null | // rvalue and perfect forwarding https://www.justsoftwaresolutions.co.uk/cplusplus/rvalue_references_and_perfect_forwarding.html
#include <iostream>
#include <vector>
class X
{
std::vector<double> data;
public:
X() :
data(100000) { std::cout << "constructed X!" << std::endl; } // lots of data
X(X const& other)... | 29.6 | 267 | 0.63964 | matt360 |
d3146253c3afc611d1abb7293222712fee2869d6 | 2,626 | cpp | C++ | sources/dansandu/glyph/internal/multimap.test.cpp | dansandu/glyph | d7d51bc57000d85eb4fd576e11502eeadbb0a6cf | [
"MIT"
] | null | null | null | sources/dansandu/glyph/internal/multimap.test.cpp | dansandu/glyph | d7d51bc57000d85eb4fd576e11502eeadbb0a6cf | [
"MIT"
] | null | null | null | sources/dansandu/glyph/internal/multimap.test.cpp | dansandu/glyph | d7d51bc57000d85eb4fd576e11502eeadbb0a6cf | [
"MIT"
] | null | null | null | #include "dansandu/glyph/internal/multimap.hpp"
#include "catchorg/catch/catch.hpp"
#include <set>
using dansandu::glyph::internal::multimap::Multimap;
using dansandu::glyph::symbol::Symbol;
TEST_CASE("Multimap")
{
SECTION("set values")
{
auto table = Multimap{};
table[Symbol{0}] = {Symbol{1... | 32.825 | 119 | 0.562072 | dansandu |
d319d61cf22889d604b25ed8057f3f1ff23bf12c | 4,435 | cpp | C++ | firmware/library/L1_Drivers/test/gpio_test.cpp | Adam-D-Sanchez/SJSU-Dev2 | ecb5bb01912f6f85a76b6715d0e72f2d3062ceed | [
"Apache-2.0"
] | null | null | null | firmware/library/L1_Drivers/test/gpio_test.cpp | Adam-D-Sanchez/SJSU-Dev2 | ecb5bb01912f6f85a76b6715d0e72f2d3062ceed | [
"Apache-2.0"
] | null | null | null | firmware/library/L1_Drivers/test/gpio_test.cpp | Adam-D-Sanchez/SJSU-Dev2 | ecb5bb01912f6f85a76b6715d0e72f2d3062ceed | [
"Apache-2.0"
] | null | null | null | #include "L0_LowLevel/LPC40xx.h"
#include "L1_Drivers/gpio.hpp"
#include "L4_Testing/testing_frameworks.hpp"
EMIT_ALL_METHODS(Gpio);
TEST_CASE("Testing Gpio", "[gpio]")
{
// Declared constants that are to be used within the different sections
// of this unit test
constexpr uint8_t kPin0 = 0;
constexpr uint8_t... | 36.056911 | 78 | 0.657046 | Adam-D-Sanchez |
d31eac89ad7b1543f83c0bded1103289ffb8d0ff | 18,370 | cpp | C++ | src/lib/rendering/descriptors/DescriptorPool.cpp | Lut99/Rasterizer | 453864506db749a93fb82fb17cc5ee88cc4ada01 | [
"MIT"
] | 1 | 2021-08-15T19:20:14.000Z | 2021-08-15T19:20:14.000Z | src/lib/rendering/descriptors/DescriptorPool.cpp | Lut99/Rasterizer | 453864506db749a93fb82fb17cc5ee88cc4ada01 | [
"MIT"
] | 17 | 2021-06-05T12:37:04.000Z | 2021-10-01T10:20:09.000Z | src/lib/rendering/descriptors/DescriptorPool.cpp | Lut99/Rasterizer | 453864506db749a93fb82fb17cc5ee88cc4ada01 | [
"MIT"
] | null | null | null | /* DESCRIPTOR POOL.cpp
* by Lut99
*
* Created:
* 26/04/2021, 14:38:48
* Last edited:
* 25/05/2021, 18:14:13
* Auto updated?
* Yes
*
* Description:
* Contains the DescriptorPool class, which serves as a memory pool for
* descriptors, which in turn describe how a certain buffer or other
* piece... | 42.62181 | 245 | 0.721121 | Lut99 |
d31f64e26267dc1b13491335ff3dd9b5b5f51e28 | 3,313 | cpp | C++ | hi_snex/snex_parser/snex_jit_SymbolParser.cpp | Matt-Dub/HISE | ae2dd1653e1c8d749a9088edcd573de6252b0b96 | [
"Intel"
] | null | null | null | hi_snex/snex_parser/snex_jit_SymbolParser.cpp | Matt-Dub/HISE | ae2dd1653e1c8d749a9088edcd573de6252b0b96 | [
"Intel"
] | null | null | null | hi_snex/snex_parser/snex_jit_SymbolParser.cpp | Matt-Dub/HISE | ae2dd1653e1c8d749a9088edcd573de6252b0b96 | [
"Intel"
] | null | null | null | /* ===========================================================================
*
* This file is part of HISE.
* Copyright 2016 Christoph Hart
*
* HISE is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation,... | 27.380165 | 126 | 0.715967 | Matt-Dub |
d3210fd0c26b61c2ef387e112f839acbc13abf16 | 4,988 | cc | C++ | src/ImgProc.cc | abhishekdewan101/RealTimeFaceTracking | 393dfd9418bf53e006d6c1fe533ecaca82c80e08 | [
"MIT"
] | 2 | 2019-02-20T00:37:57.000Z | 2019-02-20T00:38:32.000Z | node_modules/opencv/src/ImgProc.cc | nolim1t/opencv-aws-lambda | 744d2cc1e9ac257e24c8a1a33e8a0d53dd8aff56 | [
"MIT"
] | null | null | null | node_modules/opencv/src/ImgProc.cc | nolim1t/opencv-aws-lambda | 744d2cc1e9ac257e24c8a1a33e8a0d53dd8aff56 | [
"MIT"
] | 4 | 2015-03-29T19:50:06.000Z | 2021-03-31T18:55:35.000Z | #include "ImgProc.h"
#include "Matrix.h"
void ImgProc::Init(Handle<Object> target)
{
Persistent<Object> inner;
Local<Object> obj = NanNew<Object>();
NanAssignPersistent(inner, obj);
NODE_SET_METHOD(obj, "undistort", Undistort);
NODE_SET_METHOD(obj, "initUndistortRectifyMap", InitUndistortRectifyMa... | 29.341176 | 96 | 0.596231 | abhishekdewan101 |
d323d663b46feee228700e1768c809c4d1307c19 | 1,100 | cpp | C++ | source/rho/crypt/tSHA224.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | 1 | 2016-09-22T03:27:33.000Z | 2016-09-22T03:27:33.000Z | source/rho/crypt/tSHA224.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | null | null | null | source/rho/crypt/tSHA224.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | null | null | null | #include <rho/crypt/tSHA224.h>
#include <rho/crypt/hash_utils.h>
#include "sha.h"
namespace rho
{
namespace crypt
{
tSHA224::tSHA224()
: m_context(NULL)
{
m_context = new SHA256_CTX;
SHA224_Init((SHA256_CTX*)m_context);
}
tSHA224::~tSHA224()
{
delete ((SHA256_CTX*)m_context);
m_context = NULL;... | 18.333333 | 70 | 0.653636 | Rhobota |
d32630e21e4b2010a28a11dce1b2982c461e29fc | 243 | cpp | C++ | src/modules/lib/OrderPositionController.cpp | Thorsten-Geppert/Warehouse | b064e5b422d0b484ca702cc4433cbda90f40e009 | [
"BSD-3-Clause"
] | null | null | null | src/modules/lib/OrderPositionController.cpp | Thorsten-Geppert/Warehouse | b064e5b422d0b484ca702cc4433cbda90f40e009 | [
"BSD-3-Clause"
] | null | null | null | src/modules/lib/OrderPositionController.cpp | Thorsten-Geppert/Warehouse | b064e5b422d0b484ca702cc4433cbda90f40e009 | [
"BSD-3-Clause"
] | null | null | null | #include "OrderPositionController.h"
OrderPositionController::OrderPositionController(
RuntimeInformationType *rit
) : Controller(
rit,
_N("orders_positions"), // Table
_N("orderPositionId"), // Primary key
_N("rank") // Sorting
) {
}
| 20.25 | 49 | 0.73251 | Thorsten-Geppert |
d326f30e97bbe3c6b214736073ea6175cdb5fc6c | 1,113 | cpp | C++ | src/python_bindings.cpp | risteon/voxel-traversal | 331f390025d23fdc2d6f6e33292625bf42b3264c | [
"MIT"
] | 3 | 2022-03-02T17:17:52.000Z | 2022-03-25T09:03:43.000Z | src/python_bindings.cpp | risteon/voxel-traversal | 331f390025d23fdc2d6f6e33292625bf42b3264c | [
"MIT"
] | null | null | null | src/python_bindings.cpp | risteon/voxel-traversal | 331f390025d23fdc2d6f6e33292625bf42b3264c | [
"MIT"
] | null | null | null | #include "python_bindings.h"
#include <pybind11/stl.h>
#include "voxel_traversal.h"
namespace py = pybind11;
using namespace voxel_traversal;
namespace pytraversal {
py::array_t<int64_t, py::array::c_style> traverse(
const grid_type& grid, const grid_type::Vector3d& ray_origin,
const grid_type::Vector3d& r... | 27.825 | 75 | 0.68823 | risteon |
d32d1de1a820b1b8bfc0d9799320170b7033bf32 | 3,351 | cpp | C++ | packages/monte_carlo/core/src/MonteCarlo_AdjointPhotonProbeState.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/core/src/MonteCarlo_AdjointPhotonProbeState.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/core/src/MonteCarlo_AdjointPhotonProbeState.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_AdjointPhotonProbeState.cpp
//! \author Alex Robinson
//! \brief Adjoint photon probe state class declaration
//!
//---------------------------------------------------------------------------//
// FRENSIE Includ... | 28.887931 | 79 | 0.670248 | lkersting |
d32dfef64b2ca3e8da4825a88a07ae9a60a709fb | 5,485 | cpp | C++ | src/currency/Currency.cpp | MiKlTA/Lust_The_Game | aabe4a951ffd7305526466d378ba8b6769c555e8 | [
"MIT"
] | null | null | null | src/currency/Currency.cpp | MiKlTA/Lust_The_Game | aabe4a951ffd7305526466d378ba8b6769c555e8 | [
"MIT"
] | null | null | null | src/currency/Currency.cpp | MiKlTA/Lust_The_Game | aabe4a951ffd7305526466d378ba8b6769c555e8 | [
"MIT"
] | null | null | null | #include "Currency.h"
namespace lust {
Currency::Currency(const Fraction *owner, AmountType amount)
: m_fraction(owner),
m_amount(amount)
{
}
Currency::AmountType Currency::getAmount() const
{
return m_amount;
}
const Fraction * Currency::getFraction() const
{
return m_fraction;
}
cons... | 17.693548 | 71 | 0.643938 | MiKlTA |
d33bb133a1fdb90b06f49c838296a88b112c8ecc | 925 | cpp | C++ | test/scheme.cpp | syoliver/url | 7a992f6aa758807bbcd2e92e413453da98ee0c3d | [
"BSL-1.0"
] | null | null | null | test/scheme.cpp | syoliver/url | 7a992f6aa758807bbcd2e92e413453da98ee0c3d | [
"BSL-1.0"
] | null | null | null | test/scheme.cpp | syoliver/url | 7a992f6aa758807bbcd2e92e413453da98ee0c3d | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/vinniefalco/url
//
// Test that header file is self-co... | 22.560976 | 79 | 0.652973 | syoliver |
d3418780b49099787da948635bce7903710005cc | 1,853 | cpp | C++ | src/arguments.cpp | tsoding/ray-tracer | c8d189cc53445cae56bfb5e4f76926b93d0e67d5 | [
"MIT"
] | 16 | 2016-05-25T10:33:41.000Z | 2019-09-02T22:09:00.000Z | src/arguments.cpp | tsoding/ray-tracer | c8d189cc53445cae56bfb5e4f76926b93d0e67d5 | [
"MIT"
] | 67 | 2018-07-16T10:34:20.000Z | 2018-10-23T16:02:43.000Z | src/arguments.cpp | tsoding/ray-tracer | c8d189cc53445cae56bfb5e4f76926b93d0e67d5 | [
"MIT"
] | 5 | 2018-07-31T19:09:08.000Z | 2018-08-21T21:31:44.000Z | #include "./arguments.hpp"
#include <iostream>
#include <string>
Arguments::Arguments(int argc, char **argv):
m_argc(argc),
m_argv(argv),
m_threadCount(1),
m_width(800),
m_height(600) {
}
std::string Arguments::sceneFile() const {
return m_sceneFile;
}
std::string Arguments::outputFile() con... | 22.876543 | 108 | 0.474366 | tsoding |
d34b9891822c636074a61aba3466baa8db63339d | 1,577 | tpp | C++ | src/base/program_options.tpp | heshu-by/likelib-ws | 85987d328dc274622f4b758afa1b6af43d15564f | [
"Apache-2.0"
] | 1 | 2020-10-23T19:09:27.000Z | 2020-10-23T19:09:27.000Z | src/base/program_options.tpp | heshu-by/likelib-ws | 85987d328dc274622f4b758afa1b6af43d15564f | [
"Apache-2.0"
] | null | null | null | src/base/program_options.tpp | heshu-by/likelib-ws | 85987d328dc274622f4b758afa1b6af43d15564f | [
"Apache-2.0"
] | 1 | 2020-12-08T11:16:30.000Z | 2020-12-08T11:16:30.000Z | #pragma once
#include "program_options.hpp"
#include "base/error.hpp"
namespace base
{
template<typename ValueType>
void ProgramOptionsParser::addOption(const std::string& flag, const std::string& help)
{
_options_description.add_options()(flag.c_str(), boost::program_options::value<ValueType>(), help.c_str());... | 28.160714 | 111 | 0.700698 | heshu-by |
d34dd7b776401c3e51a2779909c902253f3aaf29 | 10,645 | cpp | C++ | ex2_ISALErasurecodeandrecovery/src/main.cpp | ingdex/isa-l | f487627d49441036fd0d40a04257745a9cb8fab0 | [
"BSD-3-Clause"
] | null | null | null | ex2_ISALErasurecodeandrecovery/src/main.cpp | ingdex/isa-l | f487627d49441036fd0d40a04257745a9cb8fab0 | [
"BSD-3-Clause"
] | null | null | null | ex2_ISALErasurecodeandrecovery/src/main.cpp | ingdex/isa-l | f487627d49441036fd0d40a04257745a9cb8fab0 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) <2017>, Intel Corporation
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Red... | 37.882562 | 100 | 0.607609 | ingdex |
d3590896e0df90b8defc4bcdd125e8879cad1434 | 5,290 | cpp | C++ | src/routine.cpp | gcp/CLBlast | 7c13bacf129291e3e295ecb6e833788477085fa0 | [
"Apache-2.0"
] | 1 | 2021-01-01T05:20:33.000Z | 2021-01-01T05:20:33.000Z | src/routine.cpp | gcp/CLBlast | 7c13bacf129291e3e295ecb6e833788477085fa0 | [
"Apache-2.0"
] | null | null | null | src/routine.cpp | gcp/CLBlast | 7c13bacf129291e3e295ecb6e833788477085fa0 | [
"Apache-2.0"
] | null | null | null |
// =================================================================================================
// This file is part of the CLBlast project. The project is licensed under Apache Version 2.0. This
// project loosely follows the Google C++ styleguide and uses a tab-size of two spaces and a max-
// width of 100 char... | 40.075758 | 100 | 0.644423 | gcp |
d35c8e3ba7c5010219d211d66032fc183eafb3a6 | 7,551 | cc | C++ | src/pf_manager.cc | jinzy15/CourseDataBaseTHU | af3a9abc1d887c674064ab823c4b9a1dcb810630 | [
"MIT"
] | 190 | 2015-01-08T14:26:25.000Z | 2022-03-21T17:43:52.000Z | src/pf_manager.cc | jinzy15/CourseDataBaseTHU | af3a9abc1d887c674064ab823c4b9a1dcb810630 | [
"MIT"
] | 4 | 2018-11-07T17:42:31.000Z | 2018-11-22T16:23:17.000Z | src/pf_manager.cc | jinzy15/CourseDataBaseTHU | af3a9abc1d887c674064ab823c4b9a1dcb810630 | [
"MIT"
] | 91 | 2015-01-07T08:13:38.000Z | 2022-03-10T04:35:44.000Z | //
// File: pf_manager.cc
// Description: PF_Manager class implementation
// Authors: Hugo Rivero (rivero@cs.stanford.edu)
// Dallan Quass (quass@cs.stanford.edu)
//
#include <cstdio>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "pf_internal.h"
#i... | 26.588028 | 80 | 0.649186 | jinzy15 |
d35f6cd973ec7a2b3bdab72b31db67f7fb5e4a5c | 680 | hpp | C++ | Object.hpp | Xiangze-Li/CG_Final | 6dc33457d6890e6cff8e327b004f76e9ed7d9615 | [
"MIT"
] | 2 | 2020-07-22T01:56:41.000Z | 2022-01-08T14:59:40.000Z | Object.hpp | Xiangze-Li/CG_Final | 6dc33457d6890e6cff8e327b004f76e9ed7d9615 | [
"MIT"
] | null | null | null | Object.hpp | Xiangze-Li/CG_Final | 6dc33457d6890e6cff8e327b004f76e9ed7d9615 | [
"MIT"
] | 1 | 2021-08-04T05:03:26.000Z | 2021-08-04T05:03:26.000Z | #pragma once
#include "utils.hpp"
#include "Texture.hpp"
#include "Ray.hpp"
#include "Hit.hpp"
class Object
{
protected:
Texture *_texture;
public:
Object() : _texture(nullptr) {}
explicit Object(Texture *texture) : _texture(texture) {}
virtual ~Object() = default;
virtual bool ... | 21.935484 | 72 | 0.648529 | Xiangze-Li |
d36606f218f0a139490b7efa4cfa186372a5018e | 5,637 | cpp | C++ | unicode_back/character_categories/other_format.cpp | do-m-en/random_regex_string | 7ded2dcf7c03122a68e66b5db6f94403e8c9c690 | [
"BSL-1.0"
] | null | null | null | unicode_back/character_categories/other_format.cpp | do-m-en/random_regex_string | 7ded2dcf7c03122a68e66b5db6f94403e8c9c690 | [
"BSL-1.0"
] | null | null | null | unicode_back/character_categories/other_format.cpp | do-m-en/random_regex_string | 7ded2dcf7c03122a68e66b5db6f94403e8c9c690 | [
"BSL-1.0"
] | null | null | null | #include "other_format.hpp"
namespace {
constexpr std::pair<char32_t, char32_t> make_point(char32_t point)
{
return std::pair<char32_t, char32_t>(point, point);
}
static const std::vector<std::pair<char32_t, char32_t>> characters
{
make_point(0xAD),
{0x600, 0x605},
make_point(0x61C)... | 30.47027 | 68 | 0.716516 | do-m-en |
d36c891c8cba712fb90e067aa9173c862c8ba09a | 1,003 | cpp | C++ | BOJ/boj10871.cpp | SukJinKim/Algo-Rhythm | db78de61643e9110ff0e721124a744e3b0ae27f0 | [
"MIT"
] | null | null | null | BOJ/boj10871.cpp | SukJinKim/Algo-Rhythm | db78de61643e9110ff0e721124a744e3b0ae27f0 | [
"MIT"
] | null | null | null | BOJ/boj10871.cpp | SukJinKim/Algo-Rhythm | db78de61643e9110ff0e721124a744e3b0ae27f0 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <climits>
#include <algorithm>
using namespace std;
int w[10][10];
int route[10];
int mn = INT_MAX;
int main()
{
int n, tmp, src, dest;
bool possible, necessary;
scanf("%d", &n);
for(int i = 0; i < n; i++) for(int j = 0; j < n; j++) scanf("%d", &w[i][j]);
for(int... | 19.288462 | 82 | 0.401795 | SukJinKim |
d36e937a9dcdf0811fcdb26b65fa1591b5ea25fc | 39 | hpp | C++ | src/boost_numeric_ublas_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_numeric_ublas_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_numeric_ublas_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/numeric/ublas/fwd.hpp>
| 19.5 | 38 | 0.769231 | miathedev |
d37668c5c67a86224709a7f9157c3b17028e6c1d | 829 | cpp | C++ | Intro_a_C++/codcad-5-questao01.cpp | taylorkcantalice/intro_a_programacao | 141e33f0b6cc227a4cc7b75701b603fcf53e2378 | [
"MIT"
] | null | null | null | Intro_a_C++/codcad-5-questao01.cpp | taylorkcantalice/intro_a_programacao | 141e33f0b6cc227a4cc7b75701b603fcf53e2378 | [
"MIT"
] | null | null | null | Intro_a_C++/codcad-5-questao01.cpp | taylorkcantalice/intro_a_programacao | 141e33f0b6cc227a4cc7b75701b603fcf53e2378 | [
"MIT"
] | null | null | null | /**
============================================================================
Nome : codcad-5-questao01.cpp
Autor : Taylor Klaus Cantalice Nobrega - 20200004268 (UFPB)
Versao : 1.0
Copyright : Your copyright notice
Descricao : Titulo
================================================================... | 20.725 | 77 | 0.349819 | taylorkcantalice |
c96b1fd93b62c37e2aac83768642b471e45b5e59 | 2,820 | cpp | C++ | src/SharpProj/CoordinateReferenceSystemInfo.cpp | AmpScm/ProjSharp | d112527174a3e5f9864b9f94e12c288322a5765e | [
"Apache-2.0"
] | 5 | 2021-02-15T13:56:34.000Z | 2022-03-22T10:49:01.000Z | src/SharpProj/CoordinateReferenceSystemInfo.cpp | AmpScm/SharpProj | ab16164635930d357bcbc81b8bd71d308b6b105e | [
"Apache-2.0"
] | 9 | 2021-03-05T15:32:58.000Z | 2022-02-24T08:44:16.000Z | src/SharpProj/CoordinateReferenceSystemInfo.cpp | FObermaier/SharpProj | d112527174a3e5f9864b9f94e12c288322a5765e | [
"Apache-2.0"
] | 4 | 2021-02-16T12:41:54.000Z | 2022-02-25T09:34:22.000Z | #include "pch.h"
#include "ProjObject.h"
#include "CoordinateReferenceSystem.h"
#include "CoordinateReferenceSystemInfo.h"
private ref class CRSComparer : System::Collections::Generic::IComparer<CoordinateReferenceSystemInfo^>
{
public:
// Inherited via IComparer
virtual int Compare(SharpProj::Proj::CoordinateRefere... | 26.857143 | 138 | 0.746454 | AmpScm |
c96c3f49204bcdb41a405d09d5fc5ffe1e4bb7a0 | 410 | hxx | C++ | src/ast/var-dec.hxx | MrMaDGaME/Tiger | f31f73cd386b3ccb3e02abe7b23a3de09d70bd0f | [
"MIT"
] | null | null | null | src/ast/var-dec.hxx | MrMaDGaME/Tiger | f31f73cd386b3ccb3e02abe7b23a3de09d70bd0f | [
"MIT"
] | null | null | null | src/ast/var-dec.hxx | MrMaDGaME/Tiger | f31f73cd386b3ccb3e02abe7b23a3de09d70bd0f | [
"MIT"
] | null | null | null | /**
** \file ast/var-dec.hxx
** \brief Inline methods of ast::VarDec.
*/
#pragma once
#include <ast/var-dec.hh>
namespace ast
{
inline const NameTy* VarDec::type_name_get() const { return type_name_; }
inline NameTy* VarDec::type_name_get() { return type_name_; }
inline const Exp* VarDec::init_get() const... | 20.5 | 75 | 0.680488 | MrMaDGaME |
c96cee3eba689d43bbd8a0995b96497062a7ed47 | 1,188 | cpp | C++ | hashtable.cpp | AbhinavDutta/syncmer | 38c67e858143b12ea44817d581607703738aabd0 | [
"MIT"
] | 3 | 2020-10-01T12:47:06.000Z | 2021-02-10T19:51:33.000Z | hashtable.cpp | AbhinavDutta/syncmer | 38c67e858143b12ea44817d581607703738aabd0 | [
"MIT"
] | null | null | null | hashtable.cpp | AbhinavDutta/syncmer | 38c67e858143b12ea44817d581607703738aabd0 | [
"MIT"
] | 2 | 2020-10-09T08:42:18.000Z | 2021-04-12T10:12:52.000Z | #include "myutils.h"
#include "syncmerindex.h"
#include "alpha.h"
void SyncmerIndex::CountPlus()
{
asserta(m_PlusCounts == 0);
m_PlusCounts = myalloc(byte, m_SlotCount);
zero(m_PlusCounts, m_SlotCount);
const uint K = GetKmerCount();
for (uint SeqPos = 0; SeqPos < K; ++SeqPos)
{
if (IsSyncmer(S... | 21.6 | 48 | 0.635522 | AbhinavDutta |
c9716b287ca13a6b2409202474074533a40e2a67 | 1,924 | cpp | C++ | engine/game/helpers/CallbackObject.cpp | ClayHanson/B4v21-Public-Repo | c812aa7bf2ecb267e02969c85f0c9c2a29be0d28 | [
"MIT"
] | 1 | 2020-08-18T19:45:34.000Z | 2020-08-18T19:45:34.000Z | engine/game/helpers/CallbackObject.cpp | ClayHanson/B4v21-Launcher-Public-Repo | c812aa7bf2ecb267e02969c85f0c9c2a29be0d28 | [
"MIT"
] | null | null | null | engine/game/helpers/CallbackObject.cpp | ClayHanson/B4v21-Launcher-Public-Repo | c812aa7bf2ecb267e02969c85f0c9c2a29be0d28 | [
"MIT"
] | null | null | null | #include "game/helpers/CallbackObject.h"
IMPLEMENT_CONOBJECT(CallbackObject);
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CallbackOb... | 32.066667 | 228 | 0.43763 | ClayHanson |
c973846e06c6fb3bd8684ac920902619a14478ad | 3,469 | cpp | C++ | nwol/label.cpp | asm128/nwol | a28d6df356bec817393adcd2e6573a65841832e2 | [
"MIT"
] | 3 | 2017-06-05T13:49:43.000Z | 2017-06-19T22:31:58.000Z | nwol/label.cpp | asm128/nwol | a28d6df356bec817393adcd2e6573a65841832e2 | [
"MIT"
] | 1 | 2017-06-19T12:36:46.000Z | 2017-06-30T22:34:06.000Z | nwol/label.cpp | asm128/nwol | a28d6df356bec817393adcd2e6573a65841832e2 | [
"MIT"
] | null | null | null | /// Copyright 2016-2017 - asm128
//#pragma warning(disable:4005)
#include "nwol_label.h"
#include "nwol_label_manager.h"
#include "stype.h"
#include <string>
//------------------------------------------------------------------- gsyslabel -------------------------------------------------------------------------------... | 51.014706 | 201 | 0.586913 | asm128 |
c974dc64623b9ddae78acb9d3b4c44b9bc5a6355 | 1,543 | hpp | C++ | plugins/d3d9/include/sge/d3d9/texture/planar.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/d3d9/include/sge/d3d9/texture/planar.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/d3d9/include/sge/d3d9/texture/planar.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_D3D9_TEXTURE_PLANAR_HPP_INCLUDED
#define SGE_D3D9_TEXTURE_PLANAR_HPP_INCLUDED
#include... | 26.603448 | 89 | 0.751782 | cpreh |
c97ab7aaeacb44c4bf54b7b2431f33a7c07d7a2f | 2,359 | cpp | C++ | Lab-Assignments/Data-Structure-Lab/Assignment-8/Question-5.cpp | Hics0000/Console-Based-Cpp-Programs | 6a7658a302d19b9d623ff7c5de5bc456c2d5ab69 | [
"MIT"
] | null | null | null | Lab-Assignments/Data-Structure-Lab/Assignment-8/Question-5.cpp | Hics0000/Console-Based-Cpp-Programs | 6a7658a302d19b9d623ff7c5de5bc456c2d5ab69 | [
"MIT"
] | 1 | 2021-10-05T17:00:52.000Z | 2021-10-05T17:00:52.000Z | Lab-Assignments/Data-Structure-Lab/Assignment-8/Question-5.cpp | Hics0000/Console-Based-Cpp-Programs | 6a7658a302d19b9d623ff7c5de5bc456c2d5ab69 | [
"MIT"
] | 7 | 2021-06-13T08:15:26.000Z | 2021-10-05T17:02:10.000Z | #include <bits/stdc++.h>
#include <climits>
using namespace std;
void swap(int *x, int *y);
class MinHeap
{
int *harr;
int capacity;
int heap_size;
public:
MinHeap(int capacity);
void MinHeapify(int);
int parent(int i) { return (i - 1) / 2; }
int left(int i) { return (2 * i + 1); }
... | 16.268966 | 63 | 0.50106 | Hics0000 |
c97b3c821773dee94f10dd4361d672edbe6199ad | 35,387 | cpp | C++ | Source/AllProjects/Drivers/IR/USBUIRT/USBUIRTS_DriverImpl.cpp | DeanRoddey/CQC | 3c494db7cf89c6ba73c2c1bd9327b7a8d061072a | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/Drivers/IR/USBUIRT/USBUIRTS_DriverImpl.cpp | DeanRoddey/CQC | 3c494db7cf89c6ba73c2c1bd9327b7a8d061072a | [
"MIT"
] | null | null | null | Source/AllProjects/Drivers/IR/USBUIRT/USBUIRTS_DriverImpl.cpp | DeanRoddey/CQC | 3c494db7cf89c6ba73c2c1bd9327b7a8d061072a | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: USBUIRTS_DriverImpl.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 09/12/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://ope... | 28.934587 | 85 | 0.574137 | DeanRoddey |
c97c9a5cc4291dae894effa8b9782c4ea2d12dd5 | 483 | cpp | C++ | Source/KInk/Private/Hangar/Lifesteal.cpp | DanySpin97/KInk | e9f65cfe20aab39a09467bf8e96e0cc06697a29f | [
"MIT"
] | 4 | 2016-11-30T04:39:51.000Z | 2018-06-29T06:38:27.000Z | Source/KInk/Private/Hangar/Lifesteal.cpp | DanySpin97/KInk | e9f65cfe20aab39a09467bf8e96e0cc06697a29f | [
"MIT"
] | null | null | null | Source/KInk/Private/Hangar/Lifesteal.cpp | DanySpin97/KInk | e9f65cfe20aab39a09467bf8e96e0cc06697a29f | [
"MIT"
] | null | null | null | // Copyright (c) 2016 WiseDragonStd
#include "KInk.h"
#include "Lifesteal.h"
ALifesteal::ALifesteal()
{
Weapon = EWeapon::WFireGun;
}
void ALifesteal::ActivatePowerUp()
{
Super::ActivatePowerUp();
Cast<ACustomPlayerState>(GetWorld()->GetFirstPlayerController()->PlayerState)->Lifesteal += LifestealAdded;
}
void A... | 23 | 108 | 0.761905 | DanySpin97 |
c981f5818431a97aad440abe3d029195e7cb5872 | 4,395 | cpp | C++ | src/solidity-frontend/pattern_check.cpp | maktheus/esbmc | 26c2a1e9e45f737e8423aaa1a2cadbc832d17fbe | [
"BSD-3-Clause"
] | null | null | null | src/solidity-frontend/pattern_check.cpp | maktheus/esbmc | 26c2a1e9e45f737e8423aaa1a2cadbc832d17fbe | [
"BSD-3-Clause"
] | null | null | null | src/solidity-frontend/pattern_check.cpp | maktheus/esbmc | 26c2a1e9e45f737e8423aaa1a2cadbc832d17fbe | [
"BSD-3-Clause"
] | null | null | null | #include <solidity-frontend/pattern_check.h>
#include <stdlib.h>
pattern_checker::pattern_checker(
const nlohmann::json &_ast_nodes,
const std::string &_target_func,
const messaget &msg)
: ast_nodes(_ast_nodes), target_func(_target_func), msg(msg)
{
}
bool pattern_checker::do_pattern_check()
{
// TODO: add ... | 31.847826 | 105 | 0.636633 | maktheus |
c98408bf2920f46c134c379826dc10e57f1d109a | 152 | hpp | C++ | higan/processor/arm/disassembler.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 3 | 2016-03-23T01:17:36.000Z | 2019-10-25T06:41:09.000Z | higan/processor/arm/disassembler.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | higan/processor/arm/disassembler.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | auto disassemble_arm_instruction(uint32 pc) -> string;
auto disassemble_thumb_instruction(uint32 pc) -> string;
auto disassemble_registers() -> string;
| 38 | 56 | 0.809211 | ameer-bauer |
c9871c91855e4eb966b8fe3d07a7362f569b0aed | 594 | hpp | C++ | include/depthai/common/CameraBoardSocket.hpp | SpectacularAI/depthai-core | 7516ca0d179c5f0769ecdab0020ac3a6de09cab9 | [
"MIT"
] | null | null | null | include/depthai/common/CameraBoardSocket.hpp | SpectacularAI/depthai-core | 7516ca0d179c5f0769ecdab0020ac3a6de09cab9 | [
"MIT"
] | null | null | null | include/depthai/common/CameraBoardSocket.hpp | SpectacularAI/depthai-core | 7516ca0d179c5f0769ecdab0020ac3a6de09cab9 | [
"MIT"
] | null | null | null | #pragma once
#include <ostream>
#include "depthai-shared/common/CameraBoardSocket.hpp"
namespace dai {
inline std::ostream& operator<<(std::ostream& out, const CameraBoardSocket& socket) {
switch(socket) {
case CameraBoardSocket::AUTO:
out << "AUTO";
break;
case CameraBoa... | 22 | 85 | 0.552189 | SpectacularAI |
c98921e4c917408cb2305561d730e9d24c06342c | 233 | cpp | C++ | cplusplus/cplusplus/main.cpp | youshihou/art | 7921dd58d303baef12de1558dace342e3dcdb924 | [
"MIT"
] | null | null | null | cplusplus/cplusplus/main.cpp | youshihou/art | 7921dd58d303baef12de1558dace342e3dcdb924 | [
"MIT"
] | null | null | null | cplusplus/cplusplus/main.cpp | youshihou/art | 7921dd58d303baef12de1558dace342e3dcdb924 | [
"MIT"
] | null | null | null | //
// main.cpp
// cplusplus-learning
//
// Created by Ankui on 6/12/20.
// Copyright © 2020 Ankui. All rights reserved.
//
#include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
return 0;
}
| 14.5625 | 48 | 0.626609 | youshihou |
c98922f898ddda43aa5c1b282d9c5446d1b9e7ff | 2,562 | cpp | C++ | src/software/geom/spline.cpp | matthewberends/Software | 4681c7cffc9c1ca8f739ea692daffc490a8c1910 | [
"MIT"
] | null | null | null | src/software/geom/spline.cpp | matthewberends/Software | 4681c7cffc9c1ca8f739ea692daffc490a8c1910 | [
"MIT"
] | null | null | null | src/software/geom/spline.cpp | matthewberends/Software | 4681c7cffc9c1ca8f739ea692daffc490a8c1910 | [
"MIT"
] | null | null | null | #include "software/geom/spline.h"
Spline::Spline(const std::vector<Point>& points) : knots(points)
{
initLinearSegments(points);
}
Spline::Spline(const std::initializer_list<Point>& points) : knots(points)
{
initLinearSegments(points);
}
Point Spline::valueAt(double val) const
{
if (val < 0.0 || val > 1.... | 27.548387 | 90 | 0.546838 | matthewberends |
c98b00bb80bfbf6b9c21c3faa781990cf2d19139 | 7,081 | cpp | C++ | IGC/VectorCompiler/unittests/SPIRVConversions/SPIRVConversionsTest.cpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 440 | 2018-01-30T00:43:22.000Z | 2022-03-24T17:28:37.000Z | IGC/VectorCompiler/unittests/SPIRVConversions/SPIRVConversionsTest.cpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 225 | 2018-02-02T03:10:47.000Z | 2022-03-31T10:50:37.000Z | IGC/VectorCompiler/unittests/SPIRVConversions/SPIRVConversionsTest.cpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 138 | 2018-01-30T08:15:11.000Z | 2022-03-22T14:16:39.000Z | /*========================== begin_copyright_notice ============================
Copyright (C) 2019-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#include "llvm/ADT/StringRef.h"
#include "llvm/GenXIntrinsics/GenXIntrinsics.h"
#in... | 29.627615 | 80 | 0.622511 | kurapov-peter |
c995886ef90dfe5fec483adb02c06dde94ecedd9 | 4,750 | cpp | C++ | src/solutions/untexturedobjects/gl/drawloop.cpp | michaelmarks/apitest | d252e949f82cc005d2cb443de9d08bb8d984cabc | [
"Unlicense"
] | 172 | 2015-01-05T15:36:14.000Z | 2022-03-11T10:57:23.000Z | src/solutions/untexturedobjects/gl/drawloop.cpp | michaelmarks/apitest | d252e949f82cc005d2cb443de9d08bb8d984cabc | [
"Unlicense"
] | 19 | 2015-02-19T00:48:36.000Z | 2020-02-21T01:23:26.000Z | src/solutions/untexturedobjects/gl/drawloop.cpp | michaelmarks/apitest | d252e949f82cc005d2cb443de9d08bb8d984cabc | [
"Unlicense"
] | 28 | 2015-01-08T12:16:18.000Z | 2020-05-30T18:07:36.000Z | #include "pch.h"
#include "drawloop.h"
#include "framework/gfx_gl.h"
// --------------------------------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------------------------------
// ------... | 37.698413 | 153 | 0.584632 | michaelmarks |
c99a63623f4ce3fa4894067ee5b48bfac0f876d4 | 555 | cc | C++ | simctty/main_web.cc | skip2/simctty | 0de7a58f77a14367361637601816bf6c657f96a2 | [
"MIT"
] | 4 | 2016-10-01T00:13:13.000Z | 2020-06-10T10:09:56.000Z | simctty/main_web.cc | skip2/simctty | 0de7a58f77a14367361637601816bf6c657f96a2 | [
"MIT"
] | null | null | null | simctty/main_web.cc | skip2/simctty | 0de7a58f77a14367361637601816bf6c657f96a2 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include "simctty/system.h"
int main(int argc, char** argv) {
System system;
uint64 cycle_count = 0;
const uint64 cycles_per_iteration = 20000000 / 1000;
fprintf(stdout, "Running\n");
if (!system.LoadImageFile("vmlinux.bin", 0x100)) {
fprintf(stderr, "Unable to load image\n");
... | 19.821429 | 54 | 0.654054 | skip2 |
c99c85a7c469b6f6329eacc2be26f3cb09a856ee | 928 | cpp | C++ | src/videowidget.cpp | radzevich/VSPlayer | b645589460cfc0ca4e5eae6ad4b0b1c1d4fc5c87 | [
"Apache-2.0"
] | 1 | 2020-07-07T01:41:22.000Z | 2020-07-07T01:41:22.000Z | src/videowidget.cpp | radzevich/VSPlayer | b645589460cfc0ca4e5eae6ad4b0b1c1d4fc5c87 | [
"Apache-2.0"
] | null | null | null | src/videowidget.cpp | radzevich/VSPlayer | b645589460cfc0ca4e5eae6ad4b0b1c1d4fc5c87 | [
"Apache-2.0"
] | null | null | null | #include "videowidget.h"
#include <QMouseEvent>
VideoWidget::VideoWidget(QWidget *parent)
: QVideoWidget(parent)
{
setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
QPalette p = palette();
p.setColor(QPalette::Window, Qt::black);
setPalette(p);
setAttribute(Qt::WA_OpaquePaintEvent);... | 23.2 | 83 | 0.665948 | radzevich |
c9a782c1fe1c1af5b9627e30bd010014d0854c75 | 443 | cpp | C++ | src/backends/sdl/system/event/wait.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | src/backends/sdl/system/event/wait.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | src/backends/sdl/system/event/wait.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | #include <awl/backends/sdl/exception.hpp>
#include <awl/backends/sdl/system/event/wait.hpp>
#include <fcppt/text.hpp>
#include <fcppt/config/external_begin.hpp>
#include <SDL_events.h>
#include <fcppt/config/external_end.hpp>
SDL_Event awl::backends::sdl::system::event::wait()
{
SDL_Event result;
if (SDL_WaitEven... | 23.315789 | 77 | 0.724605 | freundlich |
c9a97d9e835fd97a63f4622a646a0355d279fd56 | 4,660 | cpp | C++ | app/lib/gt_core/src/trainer.cpp | my-repositories/GameTrainer | fd307e0bd6e0ef74e8b3195ad6394c71e2fac555 | [
"MIT"
] | 3 | 2018-10-11T13:37:42.000Z | 2021-03-23T21:54:02.000Z | app/lib/gt_core/src/trainer.cpp | my-repositories/GameTrainer | fd307e0bd6e0ef74e8b3195ad6394c71e2fac555 | [
"MIT"
] | null | null | null | app/lib/gt_core/src/trainer.cpp | my-repositories/GameTrainer | fd307e0bd6e0ef74e8b3195ad6394c71e2fac555 | [
"MIT"
] | null | null | null | #include <gt_core/trainer.hpp>
#include <gt_os/window-finder.hpp>
#include <gt_os/window-enumerator.hpp>
namespace gt::core {
Trainer::Trainer(std::string&& trainerTitle, os::OsApi *osApi)
: title(trainerTitle) {
os::setConsoleTitle(this->title.c_str());
this->osApi = osApi;
}
Trainer::~Trainer() = defaul... | 28.072289 | 77 | 0.583262 | my-repositories |
c9ac6d0aff5e734df80b8d02b9bc3dad3e1b610a | 1,308 | cpp | C++ | src/main.cpp | ithamsteri/homework_05 | 713cb2558bd66fbbbaea656d96f430ed3be0551a | [
"MIT"
] | null | null | null | src/main.cpp | ithamsteri/homework_05 | 713cb2558bd66fbbbaea656d96f430ed3be0551a | [
"MIT"
] | 2 | 2018-09-22T13:27:08.000Z | 2018-10-16T16:42:52.000Z | src/main.cpp | ithamsteri/homework_05 | 713cb2558bd66fbbbaea656d96f430ed3be0551a | [
"MIT"
] | null | null | null | #include "DocumentController.h"
#include "DocumentModel.h"
#include "DocumentView.h"
#include "storages/SVG_Storage.h"
#include <iostream>
#include <string>
int main(int, char *[]) {
// ***************************
// * Setup MVC components *
// ***************************
DocumentModel model;
Do... | 33.538462 | 91 | 0.560398 | ithamsteri |
c9af0bc0a6b59a70ac6d8389b7936f9559638e00 | 212 | cpp | C++ | chapter-7/7.39.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-7/7.39.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-7/7.39.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | // Illegal
// it will introduce a ambiguous-like call, when there is a statememt trying to define a object of Sales_data class type but without arguments, compiler does not know which one is better to be called.
| 70.666667 | 200 | 0.787736 | zero4drift |
c9b0645c63044fa0174cbf257e6a4a1e32bf15df | 1,152 | cpp | C++ | Codeforces Round #303 (Div. 2)/B. Equidistant String/B. Equidistant String/main.cpp | anirudha-ani/Codeforces | 6c7f64257939d44b1c2ec9dd202f1c9f899f1cad | [
"Apache-2.0"
] | null | null | null | Codeforces Round #303 (Div. 2)/B. Equidistant String/B. Equidistant String/main.cpp | anirudha-ani/Codeforces | 6c7f64257939d44b1c2ec9dd202f1c9f899f1cad | [
"Apache-2.0"
] | null | null | null | Codeforces Round #303 (Div. 2)/B. Equidistant String/B. Equidistant String/main.cpp | anirudha-ani/Codeforces | 6c7f64257939d44b1c2ec9dd202f1c9f899f1cad | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// B. Equidistant String
//
// Created by Anirudha Paul on 5/21/15.
// Copyright (c) 2015 Anirudha Paul. All rights reserved.
//
#include <iostream>
#include <cstdio>
#include <string>
using namespace std;
int main(int argc, const char * argv[])
{
string first ;
string second ;
c... | 16.695652 | 58 | 0.422743 | anirudha-ani |
c9b1b9994010f3e31021925d781504d7a507db83 | 2,813 | hpp | C++ | include/lz_end_toolkit/construct_lcp.hpp | dkempa/lz-end-toolkit | d0a0bd0fd3ec6adc1df198190d588fbaa8ae7496 | [
"MIT"
] | 1 | 2021-06-24T07:27:41.000Z | 2021-06-24T07:27:41.000Z | include/lz_end_toolkit/construct_lcp.hpp | dkempa/lz-end-toolkit | d0a0bd0fd3ec6adc1df198190d588fbaa8ae7496 | [
"MIT"
] | null | null | null | include/lz_end_toolkit/construct_lcp.hpp | dkempa/lz-end-toolkit | d0a0bd0fd3ec6adc1df198190d588fbaa8ae7496 | [
"MIT"
] | null | null | null | /**
* @file construct_lcp.hpp
* @section LICENCE
*
* This file is part of LZ-End Toolkit v0.1.0
* See: https://github.com/dominikkempa/lz-end-toolkit
*
* Published in:
* Dominik Kempa and Dmitry Kosolobov:
* LZ-End Parsing in Compressed Space.
* Data Compression Conference (DCC), IEEE, 2017.
*
* Co... | 29.925532 | 72 | 0.697476 | dkempa |
c9ba58d381284e7e4438af2d088127afbc94aa8f | 6,191 | cc | C++ | tensorflow/core/kernels/remote_fused_graph_execute_utils_test.cc | Dashhh/tensorflow | 1708b92bb923e420d746a56baafc7d4ddcd5e05e | [
"Apache-2.0"
] | 5 | 2017-10-02T05:56:47.000Z | 2022-03-25T04:31:19.000Z | tensorflow/core/kernels/remote_fused_graph_execute_utils_test.cc | Dashhh/tensorflow | 1708b92bb923e420d746a56baafc7d4ddcd5e05e | [
"Apache-2.0"
] | null | null | null | tensorflow/core/kernels/remote_fused_graph_execute_utils_test.cc | Dashhh/tensorflow | 1708b92bb923e420d746a56baafc7d4ddcd5e05e | [
"Apache-2.0"
] | 8 | 2016-05-09T15:08:29.000Z | 2020-06-11T18:04:52.000Z | /* Copyright 2017 The TensorFlow Authors. 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 applicable law or a... | 41.831081 | 80 | 0.730738 | Dashhh |
c9bcd662975e6308d22fd1ae527e282d25623673 | 1,342 | cpp | C++ | src/All2DEngine/All2D/All2D_Controller.cpp | ldornbusch/All2D_Base | c790293b3030de97f65d62f6617222c42d18fa6a | [
"Apache-2.0"
] | null | null | null | src/All2DEngine/All2D/All2D_Controller.cpp | ldornbusch/All2D_Base | c790293b3030de97f65d62f6617222c42d18fa6a | [
"Apache-2.0"
] | null | null | null | src/All2DEngine/All2D/All2D_Controller.cpp | ldornbusch/All2D_Base | c790293b3030de97f65d62f6617222c42d18fa6a | [
"Apache-2.0"
] | null | null | null | #include "All2D_Controller.h"
#include "All2D_System.h"
All2D_Controller::All2D_Controller(std::string name) :xContainer("name"){
imgFrameBuffer.resize(All2D_System::fixedX,All2D_System::fixedY);
requestLoad();
}
All2D_Controller::~All2D_Controller(){
imgFrameBuffer.finish();
}
void All2D_Controller::init()
{... | 23.137931 | 97 | 0.586438 | ldornbusch |
c9c018adb71a3e5f0990a8daad2ab057a02adb3c | 3,742 | cpp | C++ | src/designer/formdesigner/formwindowsettings.cpp | leaderit/ananas-qt4 | 6830bf5074b316582a38f6bed147a1186dd7cc95 | [
"MIT"
] | 1 | 2021-03-16T21:47:41.000Z | 2021-03-16T21:47:41.000Z | src/designer/formdesigner/formwindowsettings.cpp | leaderit/ananas-qt4 | 6830bf5074b316582a38f6bed147a1186dd7cc95 | [
"MIT"
] | null | null | null | src/designer/formdesigner/formwindowsettings.cpp | leaderit/ananas-qt4 | 6830bf5074b316582a38f6bed147a1186dd7cc95 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 1992-2006 Trolltech ASA. All rights reserved.
**
** This file is part of the Qt Designer of the Qt Toolkit.
**
** This file may be used under the terms of the GNU General Public
** License version 2.0 as published by the F... | 35.980769 | 111 | 0.696152 | leaderit |
c9c1aa4f19e6498de34a61175dd7cf8af1f60929 | 9,006 | cpp | C++ | src/sample.cpp | reedacartwright/emdel | 58ea9d4db89c4a1852ba5405ef73c2eca6539ce3 | [
"MIT"
] | null | null | null | src/sample.cpp | reedacartwright/emdel | 58ea9d4db89c4a1852ba5405ef73c2eca6539ce3 | [
"MIT"
] | 1 | 2020-12-03T16:50:15.000Z | 2021-03-23T22:51:19.000Z | src/sample.cpp | reedacartwright/emdel | 58ea9d4db89c4a1852ba5405ef73c2eca6539ce3 | [
"MIT"
] | null | null | null | /***************************************************************************
* Copyright (C) 2007 by Reed A. Cartwright *
* reed@scit.us *
* *
* Permiss... | 26.333333 | 109 | 0.550411 | reedacartwright |
c9d45367809e61a9700e32cda325817e9055661f | 1,590 | cpp | C++ | src/RNN.cpp | Lehdari/EvolutionSimulator | 432da1c1f5bae389b6e785d1c7e47eca8dca9698 | [
"MIT"
] | 1 | 2018-03-22T07:52:03.000Z | 2018-03-22T07:52:03.000Z | src/RNN.cpp | Lehdari/EvolutionSimulator | 432da1c1f5bae389b6e785d1c7e47eca8dca9698 | [
"MIT"
] | null | null | null | src/RNN.cpp | Lehdari/EvolutionSimulator | 432da1c1f5bae389b6e785d1c7e47eca8dca9698 | [
"MIT"
] | null | null | null | #include "RNN.hpp"
#include <cstdio>
RNN::RNN(uint64_t nInputs, uint64_t nOutputs, const RNN::Genome& genome) :
_nInputs(nInputs), _nOutputs(nOutputs)
{
for (auto i=0llu; i<_nInputs; ++i)
_neurons.emplace_back();
for (auto i=0llu; i<_nOutputs; ++i)
_neurons.emplace_back();
for (auto... | 20.649351 | 75 | 0.579874 | Lehdari |
c9d843e9c2af6209232f2faab470f508eb00895f | 1,091 | cpp | C++ | test/std/utilities/optional/optional.nullopt/nullopt_t.pass.cpp | ontio/libcxx-mirror | 4b4f32ea383deb28911f5618126c6ea6c110b5e4 | [
"Apache-2.0"
] | null | null | null | test/std/utilities/optional/optional.nullopt/nullopt_t.pass.cpp | ontio/libcxx-mirror | 4b4f32ea383deb28911f5618126c6ea6c110b5e4 | [
"Apache-2.0"
] | 1 | 2019-04-21T16:53:33.000Z | 2019-04-21T17:15:25.000Z | test/std/utilities/optional/optional.nullopt/nullopt_t.pass.cpp | ontio/libcxx-mirror | 4b4f32ea383deb28911f5618126c6ea6c110b5e4 | [
"Apache-2.0"
] | 1 | 2020-09-09T07:40:32.000Z | 2020-09-09T07:40:32.000Z | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 25.97619 | 80 | 0.60495 | ontio |
c9d9649a41931432c8737a9bf9cdd88977d0893d | 8,608 | cpp | C++ | test/scenegraph/test_visualization3d.cpp | UCCS-Social-Robotics/libalmath | 608475eced68452eb19ef09c46e1916ac597ed88 | [
"BSD-3-Clause"
] | 4 | 2016-03-14T20:34:05.000Z | 2021-02-14T05:53:00.000Z | test/scenegraph/test_visualization3d.cpp | UCCS-Social-Robotics/libalmath | 608475eced68452eb19ef09c46e1916ac597ed88 | [
"BSD-3-Clause"
] | 1 | 2021-02-14T05:52:04.000Z | 2022-03-16T11:18:20.000Z | test/scenegraph/test_visualization3d.cpp | UCCS-Social-Robotics/libalmath | 608475eced68452eb19ef09c46e1916ac597ed88 | [
"BSD-3-Clause"
] | 9 | 2017-07-11T16:01:27.000Z | 2022-02-13T20:41:05.000Z | /*
* Copyright 2015 Aldebaran. All rights reserved.
*
*/
#include <almath/scenegraph/mesh.h>
#include <almath/scenegraph/scenebuilder.h>
#include <almath/scenegraph/meshfactory.h>
#include <almath/scenegraph/colladascenebuilder.h>
#include <almath/geometrics/shapes3d.h>
#include <gtest/gtest.h>
#include <almath/ty... | 27.414013 | 79 | 0.628369 | UCCS-Social-Robotics |
c9da357b490cb3140a8ed47c4083cc5336315b16 | 643 | hpp | C++ | libs/core/input/include/bksge/core/input/mouse_manager.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/input/include/bksge/core/input/mouse_manager.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/input/include/bksge/core/input/mouse_manager.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file mouse_manager.hpp
*
* @brief MouseManager の定義
*
* @author myoukaku
*/
#ifndef BKSGE_CORE_INPUT_MOUSE_MANAGER_HPP
#define BKSGE_CORE_INPUT_MOUSE_MANAGER_HPP
#include <bksge/core/input/config.hpp>
#if defined(BKSGE_CORE_INPUT_MOUSE_MANAGER_HEADER)
# include BKSGE_CORE_INPUT_MOUSE_MANAG... | 20.09375 | 60 | 0.752722 | myoukaku |
c9dd5ff102ed943e0434b9e6f4cd312f826df46d | 383 | cpp | C++ | chapter_07/Replace.cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | null | null | null | chapter_07/Replace.cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | 31 | 2021-05-14T03:37:24.000Z | 2022-03-13T17:38:32.000Z | chapter_07/Replace.cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | null | null | null | // Exercise 7.30 - Replace: space with underscore
#include <iostream>
#include <string>
int main()
{
std::string words;
std::cout << "Enter a string: ";
std::getline(std::cin, words);
for (int i = 0; i < words.length(); i++)
{
if (words[i] == ' ')
{
words[i] = '_';
... | 20.157895 | 49 | 0.490862 | Kevin-Oudai |
518b6befcd1cbcfa32f8b53241faebf1c19957cd | 14,567 | cpp | C++ | src/func-pilo/core/string/functional_test_module_class_fixed_wstring.cpp | picofox/pilo | 59e12c947307d664c4ca9dcc232b481d06be104a | [
"MIT"
] | 1 | 2019-07-31T06:44:46.000Z | 2019-07-31T06:44:46.000Z | src/func-pilo/core/string/functional_test_module_class_fixed_wstring.cpp | picofox/pilo | 59e12c947307d664c4ca9dcc232b481d06be104a | [
"MIT"
] | null | null | null | src/func-pilo/core/string/functional_test_module_class_fixed_wstring.cpp | picofox/pilo | 59e12c947307d664c4ca9dcc232b481d06be104a | [
"MIT"
] | null | null | null |
#include "core/string/string_util.hpp"
#include "core/string/fixed_wstring.hpp"
#include "core/io/format_output.hpp"
#include "functional_test_module_class_fixed_wstring.hpp"
#include <string>
#define MC_STR0_SIZE 8192
namespace pilo
{
namespace test
{
static pilo::i32_t functional_test_constructor... | 33.106818 | 151 | 0.483353 | picofox |
518b9a78c5ae45dcfc8ac2a695d551e72050bf8e | 338 | cpp | C++ | halfnetwork/HalfNetwork/ACE_wrappers/ace/Connection_Recycling_Strategy.cpp | cjwcjswo/com2us_cppNetStudy_work | 3aab26cfd2e9bf1544fa41a0f2694d81167b2584 | [
"MIT"
] | 25 | 2019-05-20T08:07:39.000Z | 2021-08-17T11:25:02.000Z | halfnetwork/HalfNetwork/ACE_wrappers/ace/Connection_Recycling_Strategy.cpp | cjwcjswo/com2us_cppNetStudy_work | 3aab26cfd2e9bf1544fa41a0f2694d81167b2584 | [
"MIT"
] | null | null | null | halfnetwork/HalfNetwork/ACE_wrappers/ace/Connection_Recycling_Strategy.cpp | cjwcjswo/com2us_cppNetStudy_work | 3aab26cfd2e9bf1544fa41a0f2694d81167b2584 | [
"MIT"
] | 17 | 2019-07-07T12:20:16.000Z | 2022-01-11T08:27:44.000Z | #include "ace/Connection_Recycling_Strategy.h"
ACE_RCSID(ace, Connection_Recycling_Strategy, "$Id: Connection_Recycling_Strategy.cpp 80826 2008-03-04 14:51:23Z wotte $")
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_Connection_Recycling_Strategy::~ACE_Connection_Recycling_Strategy (void)
{
}
ACE_END_VERSIONE... | 24.142857 | 123 | 0.816568 | cjwcjswo |
518c8538c87fb9c19d1f0e319a6a030c3f1dd55f | 20,785 | cpp | C++ | src/MdCharm/baseeditor/baseeditor.cpp | MonkeyMo/MdCharm | 78799f0bd85603aae9361b4fca05384a69f690e6 | [
"BSD-3-Clause"
] | 387 | 2015-01-01T17:51:59.000Z | 2021-06-13T19:40:15.000Z | src/MdCharm/baseeditor/baseeditor.cpp | MonkeyMo/MdCharm | 78799f0bd85603aae9361b4fca05384a69f690e6 | [
"BSD-3-Clause"
] | 26 | 2015-01-09T08:36:26.000Z | 2020-04-02T12:51:01.000Z | src/MdCharm/baseeditor/baseeditor.cpp | heefan/MdCharm | 78799f0bd85603aae9361b4fca05384a69f690e6 | [
"BSD-3-Clause"
] | 145 | 2015-01-10T18:07:45.000Z | 2021-09-14T07:39:35.000Z | #include <QtGui>
#include <QtCore>
#ifdef QT_V5
#include <QtPrintSupport>
#endif
#include "baseeditor.h"
#include "util/spellcheck/spellchecker.h"
#include "configuration.h"
#include "utils.h"
BaseEditor::BaseEditor(QWidget *parent) :
QPlainTextEdit(parent)
{
conf = Configuration::getInstance();
mdCharmG... | 33.470209 | 144 | 0.613279 | MonkeyMo |
518e20203bcc8f9d82cb17e797fc3152b00959f3 | 860 | cpp | C++ | PAT/A/1046.cpp | zhi2xin1/pat-ans | 740ee6b4d5a8c354bdff012750a615c738d5013e | [
"MIT"
] | null | null | null | PAT/A/1046.cpp | zhi2xin1/pat-ans | 740ee6b4d5a8c354bdff012750a615c738d5013e | [
"MIT"
] | null | null | null | PAT/A/1046.cpp | zhi2xin1/pat-ans | 740ee6b4d5a8c354bdff012750a615c738d5013e | [
"MIT"
] | null | null | null | //#include <iostream>
#include <cstdio>
void writex(int x)
{
if(x>9)
writex(x/10);
putchar(x%10+'0');
}
void readx(int &x)
{
x=0;
char s=getchar();
while(s<'0'||s>'9')
s=getchar();
while(s>='0'&&s<='9'){
x=x*10+s-'0';
s=getchar();
}
}
int main(){
int N,... | 16.538462 | 36 | 0.426744 | zhi2xin1 |
518f2b8a9782e9625a56852e3082683a4abb6a53 | 1,811 | cpp | C++ | snowman.cpp | shaiBonfil/CPP-Ex1 | ec9a82b8de9b99e3dd4488781b363ec36c95509e | [
"MIT"
] | null | null | null | snowman.cpp | shaiBonfil/CPP-Ex1 | ec9a82b8de9b99e3dd4488781b363ec36c95509e | [
"MIT"
] | null | null | null | snowman.cpp | shaiBonfil/CPP-Ex1 | ec9a82b8de9b99e3dd4488781b363ec36c95509e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <stdexcept>
#include <exception>
#include <array>
#include "snowman.hpp"
using namespace std;
using namespace ariel;
const int DEC = 10;
namespace ariel
{
int charToInt(char c) { return c - '0' -1;}
string snowman(long num)
{
// if the input nu... | 31.224138 | 101 | 0.437327 | shaiBonfil |
519a541e25f3b56b8474e43831e07c6e2093de86 | 6,635 | cpp | C++ | src/alns/SRP-Utils/ArgParser.cpp | alberto-santini/cvrp-decomposition | 854d2b5b7cdd51fe4ab46acac7d88dbc7e5bfb88 | [
"MIT"
] | null | null | null | src/alns/SRP-Utils/ArgParser.cpp | alberto-santini/cvrp-decomposition | 854d2b5b7cdd51fe4ab46acac7d88dbc7e5bfb88 | [
"MIT"
] | null | null | null | src/alns/SRP-Utils/ArgParser.cpp | alberto-santini/cvrp-decomposition | 854d2b5b7cdd51fe4ab46acac7d88dbc7e5bfb88 | [
"MIT"
] | null | null | null | // ***************************************************************************************
// * ArgParser.cpp
// *
// * Author: Stefan Ropke
// ***************************************************************************************
#include "ArgParser.h"
#include <cstdlib>
#include <iostream>
#include <string... | 38.575581 | 132 | 0.468124 | alberto-santini |
519c8414d40a3fa45c2df6ce968f3963980d1edd | 2,252 | cpp | C++ | Kernel/FileSystem/Custody.cpp | JamiKettunen/serenity | 232da5cc188496f570ef55276a897f1095509c87 | [
"BSD-2-Clause"
] | 3 | 2020-05-01T02:39:03.000Z | 2021-11-26T08:34:54.000Z | Kernel/FileSystem/Custody.cpp | JamiKettunen/serenity | 232da5cc188496f570ef55276a897f1095509c87 | [
"BSD-2-Clause"
] | 8 | 2019-08-25T12:52:40.000Z | 2019-09-08T14:46:11.000Z | Kernel/FileSystem/Custody.cpp | JamiKettunen/serenity | 232da5cc188496f570ef55276a897f1095509c87 | [
"BSD-2-Clause"
] | 1 | 2021-08-03T13:04:49.000Z | 2021-08-03T13:04:49.000Z | #include <AK/HashTable.h>
#include <AK/StringBuilder.h>
#include <Kernel/FileSystem/Custody.h>
#include <Kernel/FileSystem/Inode.h>
#include <Kernel/Lock.h>
static Lockable<InlineLinkedList<Custody>>& all_custodies()
{
static Lockable<InlineLinkedList<Custody>>* list;
if (!list)
list = new Lockable<Inl... | 27.13253 | 160 | 0.641208 | JamiKettunen |
51a893e8356e179e9f3ec430ccbeb4428588cdca | 3,004 | cpp | C++ | test/ZDAMessageParse_Test.cpp | neuralsandwich/NMEAParser | 3bd29601b048b091745312f8a214ab454335c94c | [
"MIT"
] | 1 | 2020-07-19T15:25:57.000Z | 2020-07-19T15:25:57.000Z | test/ZDAMessageParse_Test.cpp | neuralsandwich/NMEAParser | 3bd29601b048b091745312f8a214ab454335c94c | [
"MIT"
] | null | null | null | test/ZDAMessageParse_Test.cpp | neuralsandwich/NMEAParser | 3bd29601b048b091745312f8a214ab454335c94c | [
"MIT"
] | 1 | 2020-07-19T15:33:28.000Z | 2020-07-19T15:33:28.000Z | //===-- ZDAMessageParse_Test.cpp --------------------------------*- C++ -*-===//
//
// This file is distributed uner the MIT license. See LICENSE.txt for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// Functional tests for Parsing ZDA Messages
///
//===----... | 31.957447 | 80 | 0.616844 | neuralsandwich |
51a964727efe7d4f643c07a0e40b1e3f327b6152 | 4,518 | cc | C++ | course/test/src/isometry_TEST.cc | Lobotuerk/cppl1_q12020 | b93cf3adbd153fe6747a7bcf44dd8fea081ec26a | [
"Apache-2.0"
] | null | null | null | course/test/src/isometry_TEST.cc | Lobotuerk/cppl1_q12020 | b93cf3adbd153fe6747a7bcf44dd8fea081ec26a | [
"Apache-2.0"
] | 3 | 2020-03-12T12:58:58.000Z | 2020-04-27T01:56:30.000Z | course/test/src/isometry_TEST.cc | Lobotuerk/cppl1_q12020 | b93cf3adbd153fe6747a7bcf44dd8fea081ec26a | [
"Apache-2.0"
] | null | null | null | // This file describes a challenge of a C++ L1 Padawan. The goal
// of this unit test is to suggest an API and the abstractions
// needed to implement an isometry.
// Consider including other header files if needed.
// Copyright 2020 <Jose Tomas Lorente>
#include <cmath>
#include <sstream>
#include <string>
#includ... | 38.615385 | 80 | 0.629925 | Lobotuerk |
51b0b992e3e5aca3632a14fef04fb59f1e78ab55 | 2,388 | hpp | C++ | WICWIU_src/Module/GRULayer.hpp | ChanhyoLee/TextDataset | 397571f476a89ad42ef3ed77b82c76fc19ac3e33 | [
"Apache-2.0"
] | null | null | null | WICWIU_src/Module/GRULayer.hpp | ChanhyoLee/TextDataset | 397571f476a89ad42ef3ed77b82c76fc19ac3e33 | [
"Apache-2.0"
] | null | null | null | WICWIU_src/Module/GRULayer.hpp | ChanhyoLee/TextDataset | 397571f476a89ad42ef3ed77b82c76fc19ac3e33 | [
"Apache-2.0"
] | null | null | null | #ifndef __GRU_LAYER__
#define __GRU_LAYER__ value
#include "../Module.hpp"
template<typename DTYPE> class GRULayer : public Module<DTYPE>{
private:
public:
GRULayer(Operator<DTYPE> *pInput, int inputsize, int hiddensize, int outputsize, int use_bias = TRUE, std::string pName = "No Name") : Module<D... | 47.76 | 175 | 0.657035 | ChanhyoLee |
51b4a7eacab4f9c03d9a1229d8b71afb3286bf5e | 4,280 | hh | C++ | Shared/BrainCloudCompletionBlocks.hh | davidstl/braincloud-objc | 42e9376cba1c3ef1231a5f74e1c5c66442a34779 | [
"Apache-2.0"
] | null | null | null | Shared/BrainCloudCompletionBlocks.hh | davidstl/braincloud-objc | 42e9376cba1c3ef1231a5f74e1c5c66442a34779 | [
"Apache-2.0"
] | 1 | 2019-11-30T17:08:15.000Z | 2019-11-30T17:08:15.000Z | Shared/BrainCloudCompletionBlocks.hh | OrbiLabs/braincloud-objc | b5b63f98e339582e7819e1b765abfb28bcaccbeb | [
"Apache-2.0"
] | null | null | null | //
// BrainCloudCompletionBlocks.h
// brainCloudClientObjc
//
// Created by Ryan Homer on 30/4/2015.
// Copyright (c) 2016 bitHeads. All rights reserved.
//
#ifndef brainCloudClientObjc_BrainCloudCompletionBlocks_h
#define brainCloudClientObjc_BrainCloudCompletionBlocks_h
#import <Foundation/Foundation.h>
typede... | 34.24 | 134 | 0.692991 | davidstl |
51b81d57427905c7f7afda489f398593374c12bb | 25,712 | hpp | C++ | src/include/polo/utility/blas.hpp | aytekinar/polo | da682618e98755738905fd19e55e5271af937661 | [
"MIT"
] | 8 | 2018-10-12T09:54:25.000Z | 2020-06-18T12:04:44.000Z | src/include/polo/utility/blas.hpp | aytekinar/polo | da682618e98755738905fd19e55e5271af937661 | [
"MIT"
] | 10 | 2018-10-10T10:28:23.000Z | 2019-03-14T11:36:03.000Z | src/include/polo/utility/blas.hpp | aytekinar/polo | da682618e98755738905fd19e55e5271af937661 | [
"MIT"
] | null | null | null | #ifndef POLO_UTILITY_BLAS_HPP_
#define POLO_UTILITY_BLAS_HPP_
extern "C" {
// Single-precision, L1
void srotg_(const float *, const float *, float *, float *);
void srotmg_(float *, float *, float *, const float *, float *);
void srot_(const int *, float *, const int *, float *, const int *,
const float *, ... | 51.321357 | 80 | 0.57269 | aytekinar |
51bc4e001b165451ed5d356f30f6b1d24c029ba8 | 563 | cpp | C++ | programmers/hash1.cpp | rune2002/coding-study | 94ae7f4d4f5ea21f68538462cff56cc12f0e0718 | [
"MIT"
] | null | null | null | programmers/hash1.cpp | rune2002/coding-study | 94ae7f4d4f5ea21f68538462cff56cc12f0e0718 | [
"MIT"
] | null | null | null | programmers/hash1.cpp | rune2002/coding-study | 94ae7f4d4f5ea21f68538462cff56cc12f0e0718 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include <algorithm>
using namespace std;
string solution(vector<string> participant, vector<string> completion) {
sort(participant.begin(), participant.end());
sort(completion.begin(), completion.end());
string answer;
for (int i = 0; i < completion.size(); i++)
... | 24.478261 | 72 | 0.577265 | rune2002 |
51bd7a66f51e0b4efff85820169c5feffb791ae4 | 262 | cpp | C++ | src/batteries/suppress_test.cpp | tonyastolfi/batteries | 67349930e54785f44eab84f1e56da6c78c66a5f9 | [
"Apache-2.0"
] | 1 | 2022-01-04T20:28:17.000Z | 2022-01-04T20:28:17.000Z | src/batteries/suppress_test.cpp | mihir-thakkar/batteries | 67349930e54785f44eab84f1e56da6c78c66a5f9 | [
"Apache-2.0"
] | 2 | 2020-06-04T14:02:24.000Z | 2020-06-04T14:03:18.000Z | src/batteries/suppress_test.cpp | mihir-thakkar/batteries | 67349930e54785f44eab84f1e56da6c78c66a5f9 | [
"Apache-2.0"
] | 1 | 2022-01-03T20:24:31.000Z | 2022-01-03T20:24:31.000Z | // Copyright 2021 Anthony Paul Astolfi
//
#include <batteries/suppress.hpp>
//
#include <batteries/suppress.hpp>
namespace {
BATT_SUPPRESS("-Wreturn-type")
BATT_SUPPRESS("-Wunused-function")
int foo()
{
}
BATT_UNSUPPRESS()
BATT_UNSUPPRESS()
} // namespace
| 13.1 | 38 | 0.729008 | tonyastolfi |
51c0068121fe645432d8c07de6d95e472cb9df6f | 700 | cpp | C++ | editor/model/serialize/ControlSurfaceSerializer.cpp | remaininlight/axiom | abd3d9232ffe89dff84b0ef56ab4a1ba9e58d7ce | [
"MIT"
] | 642 | 2017-12-10T14:22:04.000Z | 2022-03-03T15:23:23.000Z | editor/model/serialize/ControlSurfaceSerializer.cpp | remaininlight/axiom | abd3d9232ffe89dff84b0ef56ab4a1ba9e58d7ce | [
"MIT"
] | 151 | 2017-12-21T02:08:45.000Z | 2020-07-03T14:18:51.000Z | editor/model/serialize/ControlSurfaceSerializer.cpp | remaininlight/axiom | abd3d9232ffe89dff84b0ef56ab4a1ba9e58d7ce | [
"MIT"
] | 30 | 2018-09-11T14:06:31.000Z | 2021-11-09T04:19:00.000Z | #include "ControlSurfaceSerializer.h"
#include "../objects/ControlSurface.h"
using namespace AxiomModel;
void ControlSurfaceSerializer::serialize(AxiomModel::ControlSurface *surface, QDataStream &stream) {}
std::unique_ptr<ControlSurface> ControlSurfaceSerializer::deserialize(QDataStream &stream, uint32_t version,
... | 46.666667 | 113 | 0.561429 | remaininlight |
51c4a6bb6749515743378b5a027d76c56509cd44 | 7,431 | cpp | C++ | src/shapefunction/spline.cpp | ellery85/sparselizard | 7d09e97e9443a436d74cbd241b8466527edb9e2f | [
"MIT"
] | null | null | null | src/shapefunction/spline.cpp | ellery85/sparselizard | 7d09e97e9443a436d74cbd241b8466527edb9e2f | [
"MIT"
] | null | null | null | src/shapefunction/spline.cpp | ellery85/sparselizard | 7d09e97e9443a436d74cbd241b8466527edb9e2f | [
"MIT"
] | null | null | null | #include "spline.h"
#include "mathop.h"
#include "mat.h"
#include "vec.h"
#include "myalgorithm.h"
spline::spline(std::string filename, char delimiter)
{
std::vector<double> data = mathop::loadvector(filename, delimiter, false);
if (data.size()%2 != 0)
{
std::cout << "Error in 'spline' object... | 30.9625 | 189 | 0.56668 | ellery85 |
51c96f6d013ecc6f84edbadd1476d86a9c1cee6e | 54,305 | cpp | C++ | src/lms7002m/LMS7002M_RxTxCalibrations.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | src/lms7002m/LMS7002M_RxTxCalibrations.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | src/lms7002m/LMS7002M_RxTxCalibrations.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | #include "LMS7002M.h"
#include "CalibrationCache.h"
#include "ErrorReporting.h"
#include <assert.h>
#include "MCU_BD.h"
#include "IConnection.h"
#include "mcu_programs.h"
#include "LMS64CProtocol.h"
#include <vector>
#include <ciso646>
#define LMS_VERBOSE_OUTPUT
///define for parameter enumeration if prefix might be n... | 33.604579 | 208 | 0.646405 | bastille-attic |
51c9c21d1b4092479f18df349118a72c0f23ce99 | 520 | cc | C++ | src/fe-readatarist.cc | hpingel/fluxengine | d4db131d3c8541fa0d35bac8591e6dea192e8fd6 | [
"MIT"
] | null | null | null | src/fe-readatarist.cc | hpingel/fluxengine | d4db131d3c8541fa0d35bac8591e6dea192e8fd6 | [
"MIT"
] | null | null | null | src/fe-readatarist.cc | hpingel/fluxengine | d4db131d3c8541fa0d35bac8591e6dea192e8fd6 | [
"MIT"
] | null | null | null | #include "globals.h"
#include "flags.h"
#include "reader.h"
#include "fluxmap.h"
#include "decoders/decoders.h"
#include "sector.h"
#include "sectorset.h"
#include "record.h"
#include "dataspec.h"
#include "ibm/ibm.h"
#include "fmt/format.h"
static FlagGroup flags { &readerFlags };
int mainReadAtariST(int argc, const... | 20.8 | 49 | 0.715385 | hpingel |
51d0df018658860ac68fe792ad64e4345f056757 | 753 | hpp | C++ | simulator/include/marlin/simulator/core/Event.hpp | marlinprotocol/OpenWeaver | 7a8c668cccc933d652fabe8a141e702b8a0fd066 | [
"MIT"
] | 60 | 2020-07-01T17:37:34.000Z | 2022-02-16T03:56:55.000Z | simulator/include/marlin/simulator/core/Event.hpp | marlinpro/openweaver | 0aca30fbda3121a8e507f48a52b718b5664a5bbc | [
"MIT"
] | 5 | 2020-10-12T05:17:49.000Z | 2021-05-25T15:47:01.000Z | simulator/include/marlin/simulator/core/Event.hpp | marlinpro/openweaver | 0aca30fbda3121a8e507f48a52b718b5664a5bbc | [
"MIT"
] | 18 | 2020-07-01T17:43:18.000Z | 2022-01-09T14:29:08.000Z | #ifndef MARLIN_SIMULATOR_CORE_EVENT_HPP
#define MARLIN_SIMULATOR_CORE_EVENT_HPP
#include <cstdint>
namespace marlin {
namespace simulator {
template<typename EventManager>
class Event {
private:
static uint64_t id_seq;
protected:
uint64_t id;
uint64_t tick;
public:
Event(uint64_t tick);
inline uint64_t get_ti... | 15.367347 | 43 | 0.74502 | marlinprotocol |
51d79b198e4fbaa925d325a02ccf495b91093d73 | 1,036 | hpp | C++ | src/color/yiq/akin/lab.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | null | null | null | src/color/yiq/akin/lab.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | null | null | null | src/color/yiq/akin/lab.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | 1 | 2022-03-03T07:55:24.000Z | 2022-03-03T07:55:24.000Z | #ifndef color_yiq_akin_lab
#define color_yiq_akin_lab
#include "../../generic/akin/yiq.hpp"
#include "../category.hpp"
#include "../../lab/category.hpp"
namespace color
{
namespace akin
{
template< >struct yiq< ::color::category::lab_uint8 >{ typedef ::color::category::yiq_uint8 akin_type; ... | 41.44 | 114 | 0.669884 | 3l0w |
51d81593a82dfd12f724018e95fd99ffeccd43d9 | 7,172 | cpp | C++ | CH19/FEM/channel.cpp | acastellanos95/AppCompPhys | 920a7ba707e92f1ef92fba9d97323863994f0b1a | [
"MIT"
] | null | null | null | CH19/FEM/channel.cpp | acastellanos95/AppCompPhys | 920a7ba707e92f1ef92fba9d97323863994f0b1a | [
"MIT"
] | null | null | null | CH19/FEM/channel.cpp | acastellanos95/AppCompPhys | 920a7ba707e92f1ef92fba9d97323863994f0b1a | [
"MIT"
] | null | null | null | /*
channel.cpp
solve for flow rates in a rectangular channel
Nx/Ny = number of nodes along a side
g++ -I/usr/local/include/eigen3 ...
*/
#include <iostream>
#include <fstream>
#include <cmath>
#include <random>
#include <vector>
#include <Eigen/Dense>
using namespace std;
using namespace Eigen;
class TwoVect {... | 26.08 | 93 | 0.506274 | acastellanos95 |
51daf32dcb3c3ca753d62d048d76611712f3cb6e | 641 | hpp | C++ | SDK/ARKSurvivalEvolved_E_StegoBackplateMode_structs.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_E_StegoBackplateMode_structs.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_E_StegoBackplateMode_structs.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Basic.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Enums
//---------------------------------------------------------------------------
... | 19.424242 | 77 | 0.595944 | 2bite |
51dce849eac84709b62a567aaa4f24712f72a234 | 2,156 | hpp | C++ | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/buffer/buflimit.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 10 | 2021-03-29T13:52:06.000Z | 2022-03-10T02:24:25.000Z | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/buffer/buflimit.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 1 | 2018-07-13T06:45:25.000Z | 2018-07-13T06:45:25.000Z | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/buffer/buflimit.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 7 | 2018-07-11T10:37:02.000Z | 2019-08-03T10:34:08.000Z | // OpenVPN -- An application to securely tunnel IP networks
// over a single port, with support for SSL/TLS-based
// session authentication and key exchange,
// packet encryption, packet authentication, and
// packet compression.
//
// Copyright (C) 2012-201... | 23.182796 | 78 | 0.62616 | TiagoPedroByterev |
51df0512a39f1f1081ef22b241df43d76ca83074 | 8,908 | cpp | C++ | src/qt/blocknettoolbar.cpp | CircuitBreaker88/blocknet | da08717b612c582367d2a00a79c90a8db2330773 | [
"MIT"
] | 1 | 2020-09-26T15:45:32.000Z | 2020-09-26T15:45:32.000Z | src/qt/blocknettoolbar.cpp | CircuitBreaker88/blocknet | da08717b612c582367d2a00a79c90a8db2330773 | [
"MIT"
] | null | null | null | src/qt/blocknettoolbar.cpp | CircuitBreaker88/blocknet | da08717b612c582367d2a00a79c90a8db2330773 | [
"MIT"
] | null | null | null | // Copyright (c) 2018-2019 The Blocknet developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/blocknettoolbar.h>
#include <qt/blocknetguiutil.h>
#include <QApplication>
#include <QProgressBar>
#include <QTime... | 36.211382 | 144 | 0.661989 | CircuitBreaker88 |
51e09353a31188075a4acc8e30d6e98201c5345d | 27,424 | cpp | C++ | WMap.cpp | HSHL/OSM | 89772fc5c89dbad08b8426de1772e49e5022005a | [
"MIT"
] | 5 | 2019-04-08T12:24:31.000Z | 2022-01-13T02:04:16.000Z | WMap.cpp | CBause/OSM | ef458a3b2787905f223180e01b79e7899e398fb6 | [
"MIT"
] | null | null | null | WMap.cpp | CBause/OSM | ef458a3b2787905f223180e01b79e7899e398fb6 | [
"MIT"
] | 2 | 2016-10-09T14:33:48.000Z | 2019-08-30T03:42:13.000Z | #include "WMap.hpp"
//-------------------------------------------------------------------------------------------------------------------------------------------------
WMap::WMap(MainController* pC, Data* pR) {
c = pC;
r = pR;
timer = new QTimer;
QObject::connect(timer,SIGNAL(timeout()),... | 46.481356 | 190 | 0.310968 | HSHL |
51e4be76c4bf77fc17279e8e7b8acfb626ce6280 | 38,962 | cpp | C++ | sceneloader.cpp | nlguillemot/fictional-doodle | d340f4e6983f77ea38b94f8ba30f7f1f5ebb532f | [
"MIT"
] | 14 | 2016-11-20T02:36:24.000Z | 2022-02-18T07:08:25.000Z | sceneloader.cpp | nlguillemot/fictional-doodle | d340f4e6983f77ea38b94f8ba30f7f1f5ebb532f | [
"MIT"
] | 1 | 2020-07-16T14:33:19.000Z | 2020-07-26T01:49:18.000Z | sceneloader.cpp | nlguillemot/fictional-doodle | d340f4e6983f77ea38b94f8ba30f7f1f5ebb532f | [
"MIT"
] | 1 | 2016-11-21T09:50:45.000Z | 2016-11-21T09:50:45.000Z | #include "sceneloader.h"
#include "scene.h"
// assimp includes
#include <cimport.h>
// assimp also has a scene.h. weird.
#include <scene.h>
#include <postprocess.h>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_inverse.hpp>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#include <vector>
#inclu... | 38.729622 | 157 | 0.603768 | nlguillemot |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.