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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
def845ea728244b0ef2804399bcb4e9ef3e2e214 | 5,099 | hh | C++ | src/angle/MomentIndexer.hh | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/angle/MomentIndexer.hh | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/angle/MomentIndexer.hh | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*----------------------------------//
/**
* @file MomentIndexer.hh
* @brief MomentIndexer class definition
* @note Copyright (C) Jeremy Roberts 2012-2013
*/
//---------------------------------------------------------------------------//
#ifndef detran_angle_MOMENTINDE... | 29.818713 | 79 | 0.476564 | baklanovp |
def930453708826a689f21e03e3c2ec109decde9 | 290 | cpp | C++ | c++/Test/Array.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Test/Array.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Test/Array.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <cstdlib>
class ArrayTest {
};
void out(const char* strings) {
std::cerr << strings << std::endl;
}
int main() {
char strings[0x100] = {};
memset(strings, 0, sizeof(strings));
out(strings);
Print();
ArrayTest test;
}
| 10.740741 | 38 | 0.568966 | taku-xhift |
defd0a759c95b2a9a7da77b8827a9da2965fa990 | 4,268 | cpp | C++ | main/model/PollSensorTask.cpp | enelson1001/M5StackBME280 | 887c3f128dc118937f22d78879f8f1097b96ce43 | [
"MIT"
] | 3 | 2020-01-01T06:09:54.000Z | 2021-05-14T09:35:36.000Z | main/model/PollSensorTask.cpp | enelson1001/M5StackBME280 | 887c3f128dc118937f22d78879f8f1097b96ce43 | [
"MIT"
] | null | null | null | main/model/PollSensorTask.cpp | enelson1001/M5StackBME280 | 887c3f128dc118937f22d78879f8f1097b96ce43 | [
"MIT"
] | null | null | null | /****************************************************************************************
* PollSensorTask.cpp - A task that runs periodically to poll the BME280 for measurements
*
* Created on Dec. 03, 2019
* Copyright (c) 2019 Ed Nelson (https://github.com/enelson1001)
* Licensed under MIT License (see LICENSE f... | 35.865546 | 119 | 0.530225 | enelson1001 |
7208688581878cedaa13430b0f143898a757f31c | 6,192 | hpp | C++ | src/grid/LayeredGridMap.hpp | JanWehrmann/slam-maps | c03117e9d66ec312723ad700baabc0af04f36d70 | [
"BSD-2-Clause"
] | 15 | 2016-05-20T05:21:45.000Z | 2021-07-21T02:34:18.000Z | src/grid/LayeredGridMap.hpp | JanWehrmann/slam-maps | c03117e9d66ec312723ad700baabc0af04f36d70 | [
"BSD-2-Clause"
] | 19 | 2016-06-22T18:43:36.000Z | 2021-09-28T15:20:31.000Z | src/grid/LayeredGridMap.hpp | JanWehrmann/slam-maps | c03117e9d66ec312723ad700baabc0af04f36d70 | [
"BSD-2-Clause"
] | 12 | 2017-03-10T10:19:46.000Z | 2021-06-04T05:50:10.000Z | //
// Copyright (c) 2015-2017, Deutsches Forschungszentrum für Künstliche Intelligenz GmbH.
// Copyright (c) 2015-2017, University of Bremen
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
... | 32.93617 | 121 | 0.590278 | JanWehrmann |
720bd123be32c1fb6c8b4ae02e201cf887bc8d92 | 967 | cpp | C++ | AgentCarl/src/PayloadHandle.cpp | TecStylos/Carl | 1873fd7991186ba503d06020f2dd955e6f0f1e92 | [
"MIT"
] | null | null | null | AgentCarl/src/PayloadHandle.cpp | TecStylos/Carl | 1873fd7991186ba503d06020f2dd955e6f0f1e92 | [
"MIT"
] | null | null | null | AgentCarl/src/PayloadHandle.cpp | TecStylos/Carl | 1873fd7991186ba503d06020f2dd955e6f0f1e92 | [
"MIT"
] | null | null | null | #include "PayloadHandle.h"
#if defined AGENT_CARL_PLATFORM_WINDOWS
#include "Platform/Win32PayloadHandle.h"
#elif defined AGENT_CARL_PLATFORM_UNIX
#error Unix currently unsupported!
#endif
#include <stdexcept>
#include <filesystem>
namespace AgentCarl
{
PayloadHandle::~PayloadHandle() noexcept(false)
{}
PayloadH... | 21.977273 | 92 | 0.773526 | TecStylos |
72113e8174eaac93684925a97a83b30b91d5cd4c | 320 | hpp | C++ | include/solver_base.hpp | arotem3/SchrodingerSEM | b1d5c5a959efe46cb8d473f284d150c3c7f0beb6 | [
"Apache-2.0"
] | null | null | null | include/solver_base.hpp | arotem3/SchrodingerSEM | b1d5c5a959efe46cb8d473f284d150c3c7f0beb6 | [
"Apache-2.0"
] | null | null | null | include/solver_base.hpp | arotem3/SchrodingerSEM | b1d5c5a959efe46cb8d473f284d150c3c7f0beb6 | [
"Apache-2.0"
] | null | null | null | #ifndef SOLVER_BASE_HPP
#define SOLVER_BASE_HPP
#include <concepts>
template <typename real>
struct solver_results
{
bool success;
int n_iter;
real residual;
};
class IdentityPreconditioner
{
public:
template <typename vec>
vec operator()(const vec& x)
{
return x;
}
};
#endif | 13.333333 | 32 | 0.665625 | arotem3 |
72137724ddedf3aa5ace5792ff3244bf89cbaa06 | 24,884 | cpp | C++ | src/plugins/booleans/less_equal.cpp | NK-Nikunj/phylanx | 6898992513a122c49d26947d877f329365486665 | [
"BSL-1.0"
] | null | null | null | src/plugins/booleans/less_equal.cpp | NK-Nikunj/phylanx | 6898992513a122c49d26947d877f329365486665 | [
"BSL-1.0"
] | null | null | null | src/plugins/booleans/less_equal.cpp | NK-Nikunj/phylanx | 6898992513a122c49d26947d877f329365486665 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2017-2018 Hartmut Kaiser
// Copyright (c) 2018 Tianyi Zhang
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <phylanx/config.hpp>
#include <phylanx/ir/node_data.hpp>
#include <phylan... | 36.11611 | 87 | 0.521098 | NK-Nikunj |
72210f5621bc64230626c259dcb07cea0d96035a | 2,269 | cpp | C++ | DataConfig/Source/DataConfigCore/Private/DataConfig/Property/DcPropertyTypes.cpp | slowburn-dev/DataConfig | cd4a494b5d83fae40cad094cf33fda0c7c11fde0 | [
"MIT"
] | 45 | 2021-04-03T03:49:31.000Z | 2022-03-17T07:52:06.000Z | DataConfig/Source/DataConfigCore/Private/DataConfig/Property/DcPropertyTypes.cpp | slowburn-dev/DataConfig | cd4a494b5d83fae40cad094cf33fda0c7c11fde0 | [
"MIT"
] | null | null | null | DataConfig/Source/DataConfigCore/Private/DataConfig/Property/DcPropertyTypes.cpp | slowburn-dev/DataConfig | cd4a494b5d83fae40cad094cf33fda0c7c11fde0 | [
"MIT"
] | 11 | 2021-04-14T20:37:01.000Z | 2022-03-21T01:09:01.000Z | #include "DataConfig/Property/DcPropertyTypes.h"
#include "DataConfig/Property/DcPropertyUtils.h"
#include "DataConfig/Diagnostic/DcDiagnosticCommon.h"
#include "DataConfig/DcEnv.h"
#include "UObject/PropertyAccessUtil.h"
FDcPropertyConfig FDcPropertyConfig::MakeDefault()
{
static FDcPropertyConfig _DEFAULT = [](){
... | 23.884211 | 121 | 0.782283 | slowburn-dev |
722460fc5d522ce43d71b0630f0206f2b40b4c30 | 2,789 | cpp | C++ | Leetcode Daily Challenge/December-2020/29. Pseudo-Palindromic Paths in a Binary Tree.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 5 | 2021-08-10T18:47:49.000Z | 2021-08-21T15:42:58.000Z | Leetcode Daily Challenge/December-2020/29. Pseudo-Palindromic Paths in a Binary Tree.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 2 | 2022-02-25T13:36:46.000Z | 2022-02-25T14:06:44.000Z | Leetcode Daily Challenge/December-2020/29. Pseudo-Palindromic Paths in a Binary Tree.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 1 | 2022-01-23T22:00:48.000Z | 2022-01-23T22:00:48.000Z | /*
Pseudo-Palindromic Paths in a Binary Tree
=========================================
Given a binary tree where node values are digits from 1 to 9. A path in the binary tree is said to be pseudo-palindromic if at least one permutation of the node values in the path is a palindrome.
Return the number of pseudo-palind... | 29.670213 | 408 | 0.631768 | Akshad7829 |
72269141064c8738786f40e41094a952e8390657 | 22,334 | cpp | C++ | projects/GuiEngine/vulkan_engine.cpp | Mawex/wotw-client | 19cd13a5cfab0b504d5f1aa3da6eb11e631bd9ca | [
"MIT"
] | 4 | 2022-02-14T08:41:49.000Z | 2022-03-02T17:58:45.000Z | projects/GuiEngine/vulkan_engine.cpp | Mawex/wotw-client | 19cd13a5cfab0b504d5f1aa3da6eb11e631bd9ca | [
"MIT"
] | 87 | 2021-10-18T10:57:32.000Z | 2022-03-31T18:15:28.000Z | projects/GuiEngine/vulkan_engine.cpp | Mawex/wotw-client | 19cd13a5cfab0b504d5f1aa3da6eb11e631bd9ca | [
"MIT"
] | 2 | 2022-01-22T22:00:56.000Z | 2022-02-22T08:37:47.000Z | #include <build.h>
#if USE_VULKAN
#include <engine.h>
#include <SDL2/SDL_vulkan.h>
#include <vulkan/vulkan.h>
#include <gui/implementation/imgui_impl_sdl.h>
#include <gui/implementation/imgui_impl_vulkan.h>
namespace gui_engine {
namespace
{
VkAllocationCallbacks* g_Allocator = NULL;
VkInstanc... | 45.302231 | 239 | 0.622683 | Mawex |
72295dbad3749d652e43358606bc816a87f70edc | 539 | cpp | C++ | src/test/miner_tests.cpp | zahidaliayub/TrezarCoin | e971550aec8485ba7dc1f47824cc08d20ab59309 | [
"MIT"
] | 6 | 2017-10-08T11:02:57.000Z | 2021-08-09T20:06:00.000Z | src/test/miner_tests.cpp | zahidaliayub/TrezarCoin | e971550aec8485ba7dc1f47824cc08d20ab59309 | [
"MIT"
] | 1 | 2019-06-04T14:16:02.000Z | 2019-06-04T14:16:02.000Z | src/test/miner_tests.cpp | zahidaliayub/TrezarCoin | e971550aec8485ba7dc1f47824cc08d20ab59309 | [
"MIT"
] | 11 | 2015-02-13T22:15:21.000Z | 2021-05-02T22:19:32.000Z | #include <boost/test/unit_test.hpp>
#include "init.h"
#include "uint256.h"
#include "wallet.h"
#include "miner.h"
BOOST_AUTO_TEST_SUITE(miner_tests)
BOOST_AUTO_TEST_CASE(CreateNewBlock_basic) {
CBlock *pblock;
int64 nStakeReward = 1 * COIN;
/* Create a PoW block template */
BOOST_CHECK(pblock = Crea... | 22.458333 | 75 | 0.719852 | zahidaliayub |
722ada51faf9e2c6147c547f093fb63d1536396c | 1,021 | cpp | C++ | leetcode/cpp/530-Minimum-Absolute-Difference-in-BST.cpp | liu-chunhou/OnlineJudge | b79c8e05acf05411d8cf172214aa42e49cc20867 | [
"MIT"
] | null | null | null | leetcode/cpp/530-Minimum-Absolute-Difference-in-BST.cpp | liu-chunhou/OnlineJudge | b79c8e05acf05411d8cf172214aa42e49cc20867 | [
"MIT"
] | null | null | null | leetcode/cpp/530-Minimum-Absolute-Difference-in-BST.cpp | liu-chunhou/OnlineJudge | b79c8e05acf05411d8cf172214aa42e49cc20867 | [
"MIT"
] | null | null | null | #include <climits>
#include <cmath>
#include <algorithm>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
};
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
... | 27.594595 | 62 | 0.593536 | liu-chunhou |
722af9f1846174f76ba55517c6634f9326ad4ef5 | 165 | cpp | C++ | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/InterfaceLinkLibraries/bang.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 107 | 2021-08-28T20:08:42.000Z | 2022-03-22T08:02:16.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/InterfaceLinkLibraries/bang.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 2 | 2022-01-13T04:03:55.000Z | 2022-03-12T01:02:31.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/InterfaceLinkLibraries/bang.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 16 | 2021-08-30T06:57:36.000Z | 2022-03-22T08:05:52.000Z |
#ifdef FOO_LIBRARY
# error Unexpected FOO_LIBRARY
#endif
#ifdef BAR_LIBRARY
# error Unexpected BAR_LIBRARY
#endif
#include "bang.h"
int bang()
{
return 0;
}
| 10.3125 | 31 | 0.727273 | duonglvtnaist |
722eaeca08b6accd824dcf5cf7ca12b000f0ae14 | 2,136 | cpp | C++ | dstore/network/inet_addr.cpp | Charles0429/dstore | a825e6c4cc30d853f10b7a56f5a9286c2e57cc75 | [
"MIT"
] | 78 | 2016-09-24T16:56:00.000Z | 2022-03-05T01:05:40.000Z | dstore/network/inet_addr.cpp | Charles0429/dstore | a825e6c4cc30d853f10b7a56f5a9286c2e57cc75 | [
"MIT"
] | null | null | null | dstore/network/inet_addr.cpp | Charles0429/dstore | a825e6c4cc30d853f10b7a56f5a9286c2e57cc75 | [
"MIT"
] | 9 | 2016-09-30T07:45:35.000Z | 2022-03-18T02:43:53.000Z | #include "inet_addr.h"
#include <netdb.h>
#include <cstring>
#include "errno_define.h"
#include "log.h"
using namespace dstore::common;
using namespace dstore::network;
InetAddr::InetAddr(void)
: host_(nullptr), port_(nullptr), addr_(), addr_len_(sizeof(addr_)),
ai_family_(-1), ai_socktype_(-1), ai_protocol_(-1),... | 22.967742 | 109 | 0.683052 | Charles0429 |
72363267d2d2fabe5e3f54aa304287bd95a8790c | 128 | cpp | C++ | Agent/Modules/AgentBlackboard.cpp | Dr-Dan/GOAP-Agent-System | fe888fb9e79e547116833c16b23698865dfd662e | [
"Apache-2.0"
] | 2 | 2016-10-07T21:53:09.000Z | 2017-12-31T12:39:16.000Z | Agent/Modules/AgentBlackboard.cpp | Dr-Dan/GOAP-Agent-System | fe888fb9e79e547116833c16b23698865dfd662e | [
"Apache-2.0"
] | null | null | null | Agent/Modules/AgentBlackboard.cpp | Dr-Dan/GOAP-Agent-System | fe888fb9e79e547116833c16b23698865dfd662e | [
"Apache-2.0"
] | null | null | null | //
// AgentBlackboard.cpp
// AgentGOBGridTest
//
// Created by D J Clarke on 18/05/2015.
//
//
#include "AgentBlackboard.h"
| 12.8 | 40 | 0.65625 | Dr-Dan |
723680b74c2ae46789f6001d371b34975e9add12 | 845 | cpp | C++ | practice/ilyaAndQueries.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | practice/ilyaAndQueries.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | practice/ilyaAndQueries.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fori(i,a,b) for (int i = a; i <= b ; ++i)
#define ford(i,a,b) for(int i = a;i >= b ; --i)
#define mk make_pair
#define mod 1000000007
#define pb push_back
#define ll long long
#define MAXN 100001
#define rnd mt19937_64 rng(chrono::high_resolution_clock::now().time_s... | 20.119048 | 89 | 0.537278 | xenowits |
5cfb19e3a16a54ef3b25741ff3327b74c52cd58b | 1,176 | cpp | C++ | reshape-the-matrix.cpp | AyoubEd/leetcode | 9875bd9eb14849e364e3a5458fd6bef8829a892b | [
"RSA-MD"
] | 3 | 2020-04-23T01:15:11.000Z | 2020-09-08T23:15:16.000Z | reshape-the-matrix.cpp | AyoubEd/leetcode | 9875bd9eb14849e364e3a5458fd6bef8829a892b | [
"RSA-MD"
] | null | null | null | reshape-the-matrix.cpp | AyoubEd/leetcode | 9875bd9eb14849e364e3a5458fd6bef8829a892b | [
"RSA-MD"
] | null | null | null | /* https://leetcode.com/problems/reshape-the-matrix
* Solution: variable count res[count/c][count%c]
*/
class Solution {
public:
vector<vector<int>> matrixReshape(vector<vector<int>>& nums, int r, int c) {
if(r*c != (nums.size())*(nums[0].size())) return nums;
vector<vector<int>> v(r, vector<int>... | 29.4 | 82 | 0.428571 | AyoubEd |
5cfb6a3ef6e1de1fe9fc13644e26343554d17148 | 1,477 | cpp | C++ | CSL/Tests/OLD/Test_RTP_Server.cpp | eriser/CSL | 6f4646369f0c90ea90e2c113374044818ab37ded | [
"BSD-4-Clause-UC"
] | 32 | 2020-04-17T22:48:53.000Z | 2021-06-15T13:13:28.000Z | CSL/Tests/OLD/Test_RTP_Server.cpp | eriser/CSL | 6f4646369f0c90ea90e2c113374044818ab37ded | [
"BSD-4-Clause-UC"
] | null | null | null | CSL/Tests/OLD/Test_RTP_Server.cpp | eriser/CSL | 6f4646369f0c90ea90e2c113374044818ab37ded | [
"BSD-4-Clause-UC"
] | 2 | 2020-06-05T15:51:31.000Z | 2021-08-31T15:09:26.000Z | //
// Test_main.cpp -- C main functions for the basic CSL4 tests.
//
// The full list of tests is in the Test_all.cpp file.
// See the copyright notice and acknowledgment of authors in the file COPYRIGHT
//
// This program simple reads the run_tests() function (at the bottom of this file)
// and executes a list of bas... | 24.213115 | 86 | 0.690589 | eriser |
cf05e1f1eb408b27bc750f0c922cd07ec7455bcb | 142 | cpp | C++ | Project/Importer.cpp | albertllopart/GTi-Engine-Reborn | 87d3137866488075f534e50a9480180d1f6354c0 | [
"MIT"
] | 1 | 2020-03-19T18:07:32.000Z | 2020-03-19T18:07:32.000Z | Project/Importer.cpp | albertllopart/GTi-Engine-Reborn | 87d3137866488075f534e50a9480180d1f6354c0 | [
"MIT"
] | null | null | null | Project/Importer.cpp | albertllopart/GTi-Engine-Reborn | 87d3137866488075f534e50a9480180d1f6354c0 | [
"MIT"
] | null | null | null | #include "Application.h"
#include "Importer.h"
Importer::Importer(importer_type type)
{
this->type = type;
}
Importer::~Importer()
{
}
| 8.875 | 38 | 0.676056 | albertllopart |
cf0648bf857b944cdfd924aa58b34fca6f396c59 | 624 | cpp | C++ | tutorial-1-hello-world/basic.cpp | NatalieWolfe/libuv-tutorials | a1a0a7fe87fe098f847ef6c387a8f0f5d8765382 | [
"MIT"
] | 3 | 2017-11-18T07:27:07.000Z | 2020-04-27T14:41:11.000Z | tutorial-1-hello-world/basic.cpp | NatalieWolfe/libuv-tutorials | a1a0a7fe87fe098f847ef6c387a8f0f5d8765382 | [
"MIT"
] | null | null | null | tutorial-1-hello-world/basic.cpp | NatalieWolfe/libuv-tutorials | a1a0a7fe87fe098f847ef6c387a8f0f5d8765382 | [
"MIT"
] | 1 | 2020-04-27T14:41:12.000Z | 2020-04-27T14:41:12.000Z |
#include <cstdlib>
#include <iostream>
#include <uv.h>
int main( void ){
std::cout << "Allocating loop." << std::endl;
// Allocate and initialize the loop.
uv_loop_t* loop = (uv_loop_t*)std::malloc( sizeof( uv_loop_t ) );
uv_loop_init( loop );
// Run the loop (in this example, it will return imm... | 24.96 | 95 | 0.623397 | NatalieWolfe |
cf14ab801fff9f71c7e48f72c49bc385e5009a0a | 8,121 | cpp | C++ | src/model/evohome/evohomeclient.cpp | giannivh/EvoTherm | c0d529f241d6927faa8df369f6331c8bd21f784c | [
"MIT"
] | null | null | null | src/model/evohome/evohomeclient.cpp | giannivh/EvoTherm | c0d529f241d6927faa8df369f6331c8bd21f784c | [
"MIT"
] | null | null | null | src/model/evohome/evohomeclient.cpp | giannivh/EvoTherm | c0d529f241d6927faa8df369f6331c8bd21f784c | [
"MIT"
] | null | null | null | //
// evohomeclient.cpp is part of EvoTherm.
//
// Copyright (c) 2016 Gianni Van Hoecke <gianni.vh@gmail.com>
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, inclu... | 33.282787 | 134 | 0.674794 | giannivh |
cf1555af1a61c4239f6a859e36d0ad0b3407d30b | 1,200 | cpp | C++ | Ca3DE/Client/ClientStateIdle.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | Ca3DE/Client/ClientStateIdle.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | Ca3DE/Client/ClientStateIdle.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "ClientStateIdle.hpp"
#include "Client.hpp"
ClientStateIdleT::ClientStateIdleT(ClientT& Client_)
: Client(Client_)
{
if (Client.Socket!=INVALID_SOCK... | 21.818182 | 129 | 0.709167 | dns |
cf199961d6a781db334c1b6804784784177aaf00 | 1,261 | cpp | C++ | codeforces/B - Yet Another Array Partitioning Task/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/B - Yet Another Array Partitioning Task/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/B - Yet Another Array Partitioning Task/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Feb/15/2019 00:53
* solution_verdict: Accepted language: GNU C++14
* run... | 28.659091 | 111 | 0.403648 | kzvd4729 |
cf1fd151c6c1c6e475fe90302c7d07cc1601aa91 | 673 | hpp | C++ | vendor/m2sdk/include/classes/CActor.hpp | m2ncrp/m2o-reborn | 4af7edfec2e450112943f69926f4a394d5868ea6 | [
"Apache-2.0"
] | 34 | 2018-10-08T08:56:24.000Z | 2021-06-13T14:45:59.000Z | vendor/m2sdk/include/classes/CActor.hpp | m2ncrp/m2o-reborn | 4af7edfec2e450112943f69926f4a394d5868ea6 | [
"Apache-2.0"
] | 4 | 2018-10-14T08:03:22.000Z | 2020-12-18T14:03:55.000Z | vendor/m2sdk/include/classes/CActor.hpp | m2ncrp/m2o-reborn | 4af7edfec2e450112943f69926f4a394d5868ea6 | [
"Apache-2.0"
] | 15 | 2018-10-08T08:56:28.000Z | 2021-07-30T04:48:27.000Z | /** @file CActor.hpp
* @brief Game's Entity class
*
*
* @author Tyldar (darreugne@gmail.com)
*/
#pragma once
#include "CEntityPos.hpp"
namespace M2
{
class ICActor : public C_EntityPos
{
public:
};
class C_Actor : public ICActor
{
public:
void SetPos(Vector3 pos)
{
... | 18.189189 | 77 | 0.560178 | m2ncrp |
cf25bf3b71f3d2769d56b41f9603e5c72cec0fdf | 3,744 | cpp | C++ | Game/Client/CEGUI/CEGUI/src/elements/CEGUITextItemProperties.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/CEGUI/CEGUI/src/elements/CEGUITextItemProperties.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/CEGUI/CEGUI/src/elements/CEGUITextItemProperties.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | /************************************************************************
filename: CEGUITextItemProperties.cpp
created: 8/4/2005
author: Tomas Lindquist Olsen (based on code by Paul D Turner)
*************************************************************************/
/**********************************************... | 26.935252 | 96 | 0.677618 | hackerlank |
cf300096af339fbb20a155ac6e52c3d0afe7e121 | 1,615 | cpp | C++ | examples/google-code-jam/sohelH/charge-large.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/sohelH/charge-large.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/sohelH/charge-large.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | /*
* Google Code Jam 2014
* @author: Sohel Hafiz
*/
#include<cstdio>
#include<iostream>
#include<queue>
#include<stack>
#include<vector>
#include<string>
#include<algorithm>
#include<map>
#include<sstream>
#include<cmath>
#include<cctype>
#include<cassert>
#include<cstring>
#include<cstdlib>
using... | 17.944444 | 60 | 0.490402 | rbenic-fer |
cf30e468bf07007a83a585141e390e795e01a211 | 897 | hpp | C++ | Software/Software_STM/usercode/SleepM.hpp | sulkith/BCDWristWatch | 4f80a6b92dabbd479b9f19544f7ee0d5ccddf36b | [
"MIT"
] | 3 | 2019-05-08T09:21:02.000Z | 2019-05-30T10:33:58.000Z | Software/Software_STM/usercode/SleepM.hpp | sulkith/BCDWristWatch | 4f80a6b92dabbd479b9f19544f7ee0d5ccddf36b | [
"MIT"
] | null | null | null | Software/Software_STM/usercode/SleepM.hpp | sulkith/BCDWristWatch | 4f80a6b92dabbd479b9f19544f7ee0d5ccddf36b | [
"MIT"
] | null | null | null | #ifndef __SLEEPM_HEADER_INCLUDE__
#define __SLEEPM_HEADER_INCLUDE__
#include <ClockM.hpp>
#include "HAL.hpp"
#include "SleepM.hpp"
#include "SleepSubscriber.hpp"
const uint8_t maxSubscribers = 5;
class SleepM
{
HAL *hal;
uint32_t wakeupTime = 0;
uint32_t sleepTime = 5;
static SleepM *instance;
uint8_t numSub... | 23.605263 | 77 | 0.714604 | sulkith |
cf34d3e7de269a29e1b96fc8b2951e957a196a88 | 715 | hpp | C++ | include/eve/function/fms.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | include/eve/function/fms.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | include/eve/function/fms.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 25.535714 | 100 | 0.534266 | orao |
cf38f2039ddbe3bccee4161a542668481e0b479c | 1,066 | cpp | C++ | src/Stats.cpp | ibancel/EmulIX-SMS | 3bb966929284750c44265ad1952ec27bbe0e71c0 | [
"MIT"
] | 1 | 2017-04-03T18:43:33.000Z | 2017-04-03T18:43:33.000Z | src/Stats.cpp | ibancel/EmulIX-SMS | 3bb966929284750c44265ad1952ec27bbe0e71c0 | [
"MIT"
] | null | null | null | src/Stats.cpp | ibancel/EmulIX-SMS | 3bb966929284750c44265ad1952ec27bbe0e71c0 | [
"MIT"
] | null | null | null | #include "Stats.h"
#include "CPU.h"
#include "definitions.h"
using namespace std;
float Stats::opcodeBySec = 0.0f;
long double Stats::cpuExecSpeed = 0.0;
int Stats::opcodeOccur[];
void Stats::add(u8 prefix, u8 opcode)
{
if(prefix == 0)
Stats::opcodeOccur[opcode]++;
}
int* Stats::getMost()
{
int arrayCpy[256];... | 20.5 | 111 | 0.648218 | ibancel |
cf398e5c5e18fc7fe388adce380d942bc9173f1b | 1,101 | cpp | C++ | HorseRacing/racemodel/servermodel.cpp | socec/HorseRacing | 9c3975a256130c98ab76a7133b03677c5084e534 | [
"MIT"
] | 2 | 2015-04-16T11:50:49.000Z | 2019-11-25T23:05:55.000Z | HorseRacing/racemodel/servermodel.cpp | socec/HorseRacing | 9c3975a256130c98ab76a7133b03677c5084e534 | [
"MIT"
] | 1 | 2018-05-02T18:41:14.000Z | 2018-08-09T19:49:56.000Z | HorseRacing/racemodel/servermodel.cpp | socec/HorseRacing | 9c3975a256130c98ab76a7133b03677c5084e534 | [
"MIT"
] | null | null | null | #include "servermodel.h"
ServerModel::ServerModel(float trackLength, int horseCount, QObject *parent)
: RaceModel(trackLength, horseCount, parent),
server("239.255.13.37", 51337, 4000)
{
// listen to client messages
connect(&server, SIGNAL(pendingClientData(int)), this, SLOT(receiveRequest(int)));
}
... | 31.457143 | 95 | 0.687557 | socec |
cf3ba5ac3876008244d176d73605680318ff3991 | 415 | hpp | C++ | src/targets/gpu/kernels/include/migraphx/kernels/types.hpp | causten/AMDMIGraphX | 9270ebafdcf93eb2696c6b3e30b1067ff0367045 | [
"MIT"
] | null | null | null | src/targets/gpu/kernels/include/migraphx/kernels/types.hpp | causten/AMDMIGraphX | 9270ebafdcf93eb2696c6b3e30b1067ff0367045 | [
"MIT"
] | null | null | null | src/targets/gpu/kernels/include/migraphx/kernels/types.hpp | causten/AMDMIGraphX | 9270ebafdcf93eb2696c6b3e30b1067ff0367045 | [
"MIT"
] | null | null | null | #ifndef MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_TYPES_HPP
#define MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_TYPES_HPP
#include <migraphx/kernels/hip.hpp>
namespace migraphx {
using index_int = std::uint32_t;
#define MIGRAPHX_DEVICE_CONSTEXPR constexpr __device__ __host__ // NOLINT
template <class T, index_int N>
using vec = T... | 20.75 | 73 | 0.807229 | causten |
cf41401ef8c7346adac683605f2090b527064ea7 | 23,412 | cpp | C++ | src/corehost/cli/deps_resolver.cpp | dotnet-maestro-bot/core-setup | 5fc66872ca226a4e7aad5e4ecaf2ec46c80cd54a | [
"MIT"
] | null | null | null | src/corehost/cli/deps_resolver.cpp | dotnet-maestro-bot/core-setup | 5fc66872ca226a4e7aad5e4ecaf2ec46c80cd54a | [
"MIT"
] | null | null | null | src/corehost/cli/deps_resolver.cpp | dotnet-maestro-bot/core-setup | 5fc66872ca226a4e7aad5e4ecaf2ec46c80cd54a | [
"MIT"
] | null | null | null | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <set>
#include <functional>
#include <cassert>
#include "trace.h"
#include "deps_entry.h"
#include "deps_format.h"
#include "deps_resol... | 34.530973 | 194 | 0.615624 | dotnet-maestro-bot |
cf451df7f7d0afbbbf11cede6d9aa52da2efced2 | 764 | cpp | C++ | 6.cpp | ViKrAm-Bais/final450_dsa | b6a6996b303dee23bbc78d26ea83622ad3fa46fc | [
"MIT"
] | null | null | null | 6.cpp | ViKrAm-Bais/final450_dsa | b6a6996b303dee23bbc78d26ea83622ad3fa46fc | [
"MIT"
] | null | null | null | 6.cpp | ViKrAm-Bais/final450_dsa | b6a6996b303dee23bbc78d26ea83622ad3fa46fc | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
void solve()
{
int x, y;
cin>>x>>y;
int a[x], b[y], c[x+y], l=0;
for(int i=0;i<x;i++) cin>>a[i];
for(int i=0;i<y;i++) cin>>b[i];
int i=0, j=0;
while(1)
{
if(i>=x && j<y)
{
c[l] = b[j];
j++;
l++;
}
else if(j>=y && i<x)
{
... | 13.172414 | 33 | 0.308901 | ViKrAm-Bais |
cf4cabbe7929849494136fad3fb3914471601457 | 3,835 | cpp | C++ | BitBlock.cpp | olehzdubna/FastOutReader | 81cd55220492a6ae042b38af03c1152ee6fc7eef | [
"MIT"
] | null | null | null | BitBlock.cpp | olehzdubna/FastOutReader | 81cd55220492a6ae042b38af03c1152ee6fc7eef | [
"MIT"
] | null | null | null | BitBlock.cpp | olehzdubna/FastOutReader | 81cd55220492a6ae042b38af03c1152ee6fc7eef | [
"MIT"
] | 1 | 2020-02-12T16:47:00.000Z | 2020-02-12T16:47:00.000Z | /*
* BitBlock.cpp
*
* Created on: Jul 4, 2019
* Author: oleh
*/
#include <cstring>
#include <iostream>
#include <BitBlock.h>
#include <Utils.h>
#include <DataGroup.h>
#include <IfstreamWithState.h>
BitBlock::BitBlock(long anId)
: IntegralData (anId)
, numSamples(0)
, numBytesPerSample() {
}
/*
// Rea... | 27.992701 | 156 | 0.618514 | olehzdubna |
cf4cd7ba64cdd682aced8924747c911c575172d4 | 946 | cpp | C++ | multithreading/thread.cpp | andreyc2018/otus_cpp_lessons | dfcf8198e6524dc01537d44de9e34721285651d4 | [
"MIT"
] | null | null | null | multithreading/thread.cpp | andreyc2018/otus_cpp_lessons | dfcf8198e6524dc01537d44de9e34721285651d4 | [
"MIT"
] | null | null | null | multithreading/thread.cpp | andreyc2018/otus_cpp_lessons | dfcf8198e6524dc01537d44de9e34721285651d4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <thread>
#include <map>
#include <mutex>
#include <future>
std::mutex cout_mutex;
std::mutex cerr_mutex;
using dict_t = std::map<std::string, std::string>;
std::string foo(dict_t &)
{
std::thread::id this_id = std::this_thread::get_id();
cout_mutex.lock();
... | 20.12766 | 57 | 0.584567 | andreyc2018 |
cf4faa2bd335cbeebd2522407eec39ef716d7e30 | 12,100 | cpp | C++ | code/external/libigl/external/embree/tutorials/common/tutorial/scene.cpp | dybiszb/MeanCurvatureLibrary | b168911ef6bf08b283e7a225cc006b850fe26400 | [
"MIT"
] | null | null | null | code/external/libigl/external/embree/tutorials/common/tutorial/scene.cpp | dybiszb/MeanCurvatureLibrary | b168911ef6bf08b283e7a225cc006b850fe26400 | [
"MIT"
] | 1 | 2018-11-14T23:14:58.000Z | 2018-11-14T23:14:58.000Z | code/external/libigl/external/embree/tutorials/common/tutorial/scene.cpp | dybiszb/MeanCurvatureLibrary | b168911ef6bf08b283e7a225cc006b850fe26400 | [
"MIT"
] | null | null | null | // ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 46.360153 | 164 | 0.624793 | dybiszb |
cf578c41b52af6c85c62f667c49f83a8a065ba1e | 6,979 | cpp | C++ | ad_map_access/tests/generated/ad/map/lane/LaneTypeTests.cpp | woojinjjang/map-1 | d12bb410f03d078a995130b4e671746ace8b6287 | [
"MIT"
] | 61 | 2019-12-19T20:57:24.000Z | 2022-03-29T15:20:51.000Z | ad_map_access/tests/generated/ad/map/lane/LaneTypeTests.cpp | woojinjjang/map-1 | d12bb410f03d078a995130b4e671746ace8b6287 | [
"MIT"
] | 54 | 2020-04-05T05:32:47.000Z | 2022-03-15T18:42:33.000Z | ad_map_access/tests/generated/ad/map/lane/LaneTypeTests.cpp | woojinjjang/map-1 | d12bb410f03d078a995130b4e671746ace8b6287 | [
"MIT"
] | 31 | 2019-12-20T07:37:39.000Z | 2022-03-16T13:06:16.000Z | /*
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* ----------------- END LICENSE BLOCK -----------------------------------
*/
/*
* Generated file
*/
#if defined(__clang__) && (__clang_major__ >= 7)
#... | 51.696296 | 119 | 0.664852 | woojinjjang |
cf57b8ccba6894359f2e9ade9a8e3384181319cc | 17,375 | inl | C++ | include/guise/math/vector.inl | jimmiebergmann/Guise | b6b16de961f4299e2384980db11a0a811f01eaf4 | [
"MIT"
] | 1 | 2020-09-06T10:35:58.000Z | 2020-09-06T10:35:58.000Z | include/guise/math/vector.inl | jimmiebergmann/Guise | b6b16de961f4299e2384980db11a0a811f01eaf4 | [
"MIT"
] | null | null | null | include/guise/math/vector.inl | jimmiebergmann/Guise | b6b16de961f4299e2384980db11a0a811f01eaf4 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2019 Jimmie Bergmann
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files(the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 27.106084 | 118 | 0.53646 | jimmiebergmann |
cf5973da9e6fda6698217c1032ecc86ca51ced22 | 2,395 | cpp | C++ | src/mir/lower.cpp | neheb/meson-plus-plus | 8f075012e7a12613883fa335b07c4143f5423111 | [
"Apache-2.0"
] | null | null | null | src/mir/lower.cpp | neheb/meson-plus-plus | 8f075012e7a12613883fa335b07c4143f5423111 | [
"Apache-2.0"
] | null | null | null | src/mir/lower.cpp | neheb/meson-plus-plus | 8f075012e7a12613883fa335b07c4143f5423111 | [
"Apache-2.0"
] | null | null | null | // SPDX-license-identifier: Apache-2.0
// Copyright © 2021 Intel Corporation
#include <unordered_map>
#include "lower.hpp"
#include "passes/private.hpp"
namespace MIR {
namespace {
void lower_impl(BasicBlock & block, State::Persistant & pstate) {
std::unordered_map<std::string, uint32_t> value_number_data{};
... | 38.015873 | 94 | 0.591649 | neheb |
cf619710a0c1ed6c0adf8cacd0442a07aa944bdc | 3,092 | cc | C++ | Tests/Separation_test.cc | brownd1978/TrackToy | e8839460693cd14caecbca0bef8259fe3e73413e | [
"Apache-2.0"
] | null | null | null | Tests/Separation_test.cc | brownd1978/TrackToy | e8839460693cd14caecbca0bef8259fe3e73413e | [
"Apache-2.0"
] | null | null | null | Tests/Separation_test.cc | brownd1978/TrackToy | e8839460693cd14caecbca0bef8259fe3e73413e | [
"Apache-2.0"
] | null | null | null | //
// Test separating DIO from CeMinus
//
#include "TrackToy/Spectra/DIOSpectrum.hh"
#include "TrackToy/Spectra/CeMinusSpectrum.hh"
#include "TFile.h"
#include "TH1D.h"
#include "TCanvas.h"
#include "TStyle.h"
#include "TLegend.h"
#include "TGraph.h"
#include <stdio.h>
#include <getopt.h>
#include <iostream>
#include ... | 30.313725 | 146 | 0.670116 | brownd1978 |
cf6290b643dfc2ac4b4d713777b9111d5358f935 | 579 | hpp | C++ | world/tiles/include/Weather.hpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | world/tiles/include/Weather.hpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | world/tiles/include/Weather.hpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #pragma once
#include <memory>
#include "ISerializable.hpp"
class Weather : public ISerializable
{
public:
Weather(const std::string& wind_speed);
bool operator==(const Weather& w) const;
void set_wind_speed(const int new_wind_speed);
int get_wind_speed() const;
virtual bool serialize(std::ostr... | 21.444444 | 71 | 0.734024 | prolog |
cf695a24a23fc14d7021988e8be4a5ee3004c1cd | 1,004 | hpp | C++ | iRODS/lib/api/include/subStructFileOpendir.hpp | nesi/irods | 49eeaf76305fc483f21b1bbfbdd77d540b59cfd2 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/api/include/subStructFileOpendir.hpp | nesi/irods | 49eeaf76305fc483f21b1bbfbdd77d540b59cfd2 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/api/include/subStructFileOpendir.hpp | nesi/irods | 49eeaf76305fc483f21b1bbfbdd77d540b59cfd2 | [
"BSD-3-Clause"
] | null | null | null | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to subStructFiles in the COPYRIGHT directory ***/
/* subStructFileOpendir.h
*/
#ifndef SUB_STRUCT_FILE_OPENDIR_HPP
#define SUB_STRUCT_FILE_OPENDIR_HPP
/* This is Object File I/O type API call */
#in... | 28.685714 | 88 | 0.755976 | nesi |
cf6a533a1e6cb4305abd85346176a841802ac3cd | 57,129 | cpp | C++ | app/gui/io.cpp | vle-forge/irritator | 4bbec5eb32a734d8bc71644be0098e7e26ae01e1 | [
"MIT"
] | 6 | 2019-06-26T18:16:59.000Z | 2021-11-08T10:37:32.000Z | app/gui/io.cpp | vle-forge/irritator | 4bbec5eb32a734d8bc71644be0098e7e26ae01e1 | [
"MIT"
] | 46 | 2020-04-29T13:08:45.000Z | 2022-02-08T11:22:57.000Z | app/gui/io.cpp | vle-forge/irritator | 4bbec5eb32a734d8bc71644be0098e7e26ae01e1 | [
"MIT"
] | 5 | 2020-04-01T13:51:44.000Z | 2021-11-12T15:34:27.000Z | // Copyright (c) 2020 INRA Distributed under the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "application.hpp"
#include "dialog.hpp"
#include <irritator/file.hpp>
#include <irritator/io.hpp>
#include <rapidjson/filereadst... | 26.783404 | 80 | 0.591311 | vle-forge |
cf703c81ea9ee557b1e64ad538c2e9d63f9c114c | 6,448 | cpp | C++ | PlatformIO/teensy-r4ge-pro-synth/test/test_embedded/test_main.cpp | DigiTorus86/Teensy-R4ge-Pro | d94a73f4f60957b3f28a27b7d6f74b01a61121fa | [
"MIT"
] | 1 | 2022-01-13T02:00:52.000Z | 2022-01-13T02:00:52.000Z | PlatformIO/esp32-r4ge-pro-synth/test/test_embedded/test_main.cpp | DigiTorus86/ESP32-R4ge-Pro | 786127b87491dcdd2bbc928b1a68968a97038aac | [
"MIT"
] | null | null | null | PlatformIO/esp32-r4ge-pro-synth/test/test_embedded/test_main.cpp | DigiTorus86/ESP32-R4ge-Pro | 786127b87491dcdd2bbc928b1a68968a97038aac | [
"MIT"
] | 2 | 2021-06-28T06:27:04.000Z | 2022-01-11T12:57:55.000Z | #include <Arduino.h>
#include <unity.h>
#include "SYN_buffer.h"
#define BUFF_SIZE 256
SYN_buffer BUFF_TO_TEST = SYN_buffer(BUFF_SIZE);
void setUp(void)
{
// set stuff up here
}
void tearDown(void)
{
// clean stuff up here
}
void fillBuffer(size_t num_elements)
{
BUFF_TO_TEST.clear();
for (size_t ... | 23.881481 | 81 | 0.738834 | DigiTorus86 |
cf70c28531a48fc5fdea408e8833db498200d67b | 307 | cpp | C++ | Mercurio.Hardware/Mercurio.Hardware/Fan.cpp | BasPaap/Mercurio.Hardware | c00fd36a3a447f60feeceeddb99654ec48993c9a | [
"MIT"
] | null | null | null | Mercurio.Hardware/Mercurio.Hardware/Fan.cpp | BasPaap/Mercurio.Hardware | c00fd36a3a447f60feeceeddb99654ec48993c9a | [
"MIT"
] | null | null | null | Mercurio.Hardware/Mercurio.Hardware/Fan.cpp | BasPaap/Mercurio.Hardware | c00fd36a3a447f60feeceeddb99654ec48993c9a | [
"MIT"
] | null | null | null | #include "Fan.h"
namespace Bas
{
Fan::Fan(int pin) : pin{ pin }
{
}
Fan::~Fan()
{
}
void Fan::initialize()
{
pinMode(this->pin, OUTPUT);
digitalWrite(this->pin, LOW);
}
void Fan::turnOn()
{
digitalWrite(this->pin, HIGH);
}
void Fan::turnOff()
{
digitalWrite(this->pin, LOW);
}
}
| 10.586207 | 32 | 0.579805 | BasPaap |
cf7956f4934db5ccfa8c4d05bcab2d113ebb3f21 | 16,304 | cpp | C++ | NULL Engine/Source/M_Scene.cpp | xsiro/NULL_Engine | bb8da3de7f507b27d895cf8066a03faa115ff3c6 | [
"MIT"
] | null | null | null | NULL Engine/Source/M_Scene.cpp | xsiro/NULL_Engine | bb8da3de7f507b27d895cf8066a03faa115ff3c6 | [
"MIT"
] | null | null | null | NULL Engine/Source/M_Scene.cpp | xsiro/NULL_Engine | bb8da3de7f507b27d895cf8066a03faa115ff3c6 | [
"MIT"
] | null | null | null | #include "Profiler.h"
#include "MathGeoTransform.h"
#include "JSONParser.h"
#include "Application.h" // ATTENTION: Globals.h already included in Module.h
#include "M_Window.h"
#include "M_Camera3D.h"
#include "M_Renderer3D.h"
#include "M_Input.h"
#include "M_FileSystem.h"
#include "M_Editor.h"
#include ... | 23.06082 | 175 | 0.683513 | xsiro |
cf7bd11bdcd17c6a2cbf784b3d746438be64ae8d | 1,622 | cpp | C++ | StardustFramework/Renderer.cpp | LucidSigma/Stardust-Framework | 35f31ea3182a4f4fce5f097ae1f2e86f8f1c19bd | [
"BSD-3-Clause"
] | null | null | null | StardustFramework/Renderer.cpp | LucidSigma/Stardust-Framework | 35f31ea3182a4f4fce5f097ae1f2e86f8f1c19bd | [
"BSD-3-Clause"
] | null | null | null | StardustFramework/Renderer.cpp | LucidSigma/Stardust-Framework | 35f31ea3182a4f4fce5f097ae1f2e86f8f1c19bd | [
"BSD-3-Clause"
] | null | null | null | #include "Renderer.h"
#include <stdexcept>
#include <utility>
void Renderer::RendererDestroyer::operator ()(sdl::Renderer* renderer) const noexcept
{
sdl::renderer::Destroy(renderer);
}
Renderer::Renderer() noexcept
: m_renderer(nullptr)
{ }
Renderer::Renderer(const Window& window, int flags, int index)
: m_rend... | 21.626667 | 91 | 0.723181 | LucidSigma |
cf7c5d1340da4aac424a20caa69b4fd4510d401f | 5,998 | cpp | C++ | tests/exception_info_test.cpp | lhamowski/kl | 52f4a4dda7b6444e1f1432f62372d0949ccab6f6 | [
"MIT"
] | 3 | 2016-08-20T23:59:28.000Z | 2020-03-04T17:49:46.000Z | tests/exception_info_test.cpp | lhamowski/kl | 52f4a4dda7b6444e1f1432f62372d0949ccab6f6 | [
"MIT"
] | 5 | 2020-02-17T12:57:01.000Z | 2020-11-02T19:35:48.000Z | tests/exception_info_test.cpp | lhamowski/kl | 52f4a4dda7b6444e1f1432f62372d0949ccab6f6 | [
"MIT"
] | 2 | 2020-02-04T14:04:28.000Z | 2020-03-04T17:50:10.000Z | #include "kl/exception_info.hpp"
#include "kl/split.hpp"
#include <catch2/catch.hpp>
#include <exception>
#include <vector>
#include <stdexcept>
#include <cstring>
namespace {
// clang-format off
struct io_error: std::exception {};
struct read_error: virtual io_error {};
struct write_error: virtual io_error {};
str... | 24.581967 | 78 | 0.526509 | lhamowski |
cf7f5ecc87ba43ba9d9590c45bdf6477d774166f | 1,777 | cpp | C++ | DSA Crack Sheet/solutions/Heap Sort.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 5 | 2021-08-10T18:47:49.000Z | 2021-08-21T15:42:58.000Z | DSA Crack Sheet/solutions/Heap Sort.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 2 | 2022-02-25T13:36:46.000Z | 2022-02-25T14:06:44.000Z | DSA Crack Sheet/solutions/Heap Sort.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 1 | 2022-01-23T22:00:48.000Z | 2022-01-23T22:00:48.000Z | /*
Heap Sort
=========
Given an array of size N. The task is to sort the array elements by completing functions heapify() and buildHeap() which are used to implement Heap Sort.
Example 1:
Input:
N = 5
arr[] = {4,1,3,9,7}
Output:
1 3 4 7 9
Explanation:
After sorting elements
using heap sort, elements will be
in order ... | 23.077922 | 340 | 0.639842 | Akshad7829 |
cf7fc8583787c08a290656c29cad479f835e9221 | 466 | cpp | C++ | 201411_201509/0725_ARC042/D.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 7 | 2019-03-24T14:06:29.000Z | 2020-09-17T21:16:36.000Z | 201411_201509/0725_ARC042/D.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | null | null | null | 201411_201509/0725_ARC042/D.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 1 | 2020-07-22T17:27:09.000Z | 2020-07-22T17:27:09.000Z | #include <iostream>
using namespace std;
typedef long long ll;
int X, P, A, B;
ll pw(int a) {
if (a == 0) return 1;
if (a%2 == 1) return (pw(a-1) * X)%P;
ll b = pw(a/2);
return (b*b)%P;
}
void answer() {
cin >> X >> P >> A >> B;
ll ans = P;
for (auto i=A; i<B; i++) {
ans = min(ans, pw(i));
if ... | 15.032258 | 39 | 0.454936 | kazunetakahashi |
cf847a328373299123cf41d0518442b8c5eb66e9 | 776 | hpp | C++ | 3DGE/include/core/GameObject.hpp | nflsilva/C3DGE | 9f1596c8e3842aeb095ad57d01f7d2e5e1587c3c | [
"Apache-2.0"
] | null | null | null | 3DGE/include/core/GameObject.hpp | nflsilva/C3DGE | 9f1596c8e3842aeb095ad57d01f7d2e5e1587c3c | [
"Apache-2.0"
] | null | null | null | 3DGE/include/core/GameObject.hpp | nflsilva/C3DGE | 9f1596c8e3842aeb095ad57d01f7d2e5e1587c3c | [
"Apache-2.0"
] | null | null | null | #ifndef GAME_OBJECT_HPP
#define GAME_OBJECT_HPP
#include <glm/mat4x4.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "render/model/BaseModel.hpp"
#include "ui/InputState.hpp"
class GameObject {
protected:
BaseModel* model;
glm::vec3 position;
glm::vec3 rotation;
glm::vec3 scale;
glm::mat4... | 22.171429 | 90 | 0.695876 | nflsilva |
cf8957c3220015ca09f706ff10510854fdeb27bd | 7,082 | cpp | C++ | src/ColorTheme.cpp | RSKYS/sboui | e136d334f1fc5a60d1e3e98961c489086f753455 | [
"MIT"
] | 23 | 2017-03-26T06:28:20.000Z | 2022-03-15T20:34:28.000Z | src/ColorTheme.cpp | RSKYS/sboui | e136d334f1fc5a60d1e3e98961c489086f753455 | [
"MIT"
] | 4 | 2017-05-25T19:16:51.000Z | 2022-03-16T20:38:37.000Z | src/ColorTheme.cpp | RSKYS/sboui | e136d334f1fc5a60d1e3e98961c489086f753455 | [
"MIT"
] | 3 | 2018-09-05T23:08:23.000Z | 2021-04-05T06:15:23.000Z | #include <iostream>
#include <string>
#include <curses.h>
#include <libconfig.h++>
#include "Color.h"
#include "ColorTheme.h"
using namespace libconfig;
/*******************************************************************************
Constructors
*********************************************************************... | 32.939535 | 80 | 0.615787 | RSKYS |
cf8ad598866053c2aac06e4aff6f2ef4214eb0aa | 1,900 | cpp | C++ | taichi/backends/metal/metal_program.cpp | damonwy/taichi | 160f73b610b0ef54751d7063e9303c9943fd794d | [
"MIT"
] | null | null | null | taichi/backends/metal/metal_program.cpp | damonwy/taichi | 160f73b610b0ef54751d7063e9303c9943fd794d | [
"MIT"
] | null | null | null | taichi/backends/metal/metal_program.cpp | damonwy/taichi | 160f73b610b0ef54751d7063e9303c9943fd794d | [
"MIT"
] | null | null | null | #include "metal_program.h"
#include "taichi/backends/metal/codegen_metal.h"
#include "taichi/backends/metal/struct_metal.h"
namespace taichi {
namespace lang {
MetalProgramImpl::MetalProgramImpl(CompileConfig &config_) : config(config_) {
}
FunctionType MetalProgramImpl::compile(Kernel *kernel,
... | 36.538462 | 78 | 0.640526 | damonwy |
cf8f8eb05c766acdf6b05faaa84b2fbb45cfc4c3 | 1,496 | cpp | C++ | src/win32/StatusBar.cpp | NullPopPoLab/Play--Framework | ab4594f9ef548f1476c9017e122a05dfb91cc9d3 | [
"BSD-2-Clause"
] | 35 | 2015-02-19T20:11:05.000Z | 2021-11-05T12:55:07.000Z | src/win32/StatusBar.cpp | NullPopPoLab/Play--Framework | ab4594f9ef548f1476c9017e122a05dfb91cc9d3 | [
"BSD-2-Clause"
] | 24 | 2015-07-19T04:51:29.000Z | 2022-03-31T00:36:45.000Z | src/win32/StatusBar.cpp | Thunder07/Play--Framework | b0c8487656492f237f6613fccadbb8011b61bd4d | [
"BSD-2-Clause"
] | 22 | 2015-02-16T03:36:00.000Z | 2022-01-23T13:15:00.000Z | #include "win32/StatusBar.h"
#include <commctrl.h>
using namespace Framework;
using namespace Framework::Win32;
CStatusBar::CStatusBar(HWND hParent)
{
InitCommonControls();
m_hWnd = CreateStatusWindow(WS_CHILD | WS_VISIBLE, _T(""), hParent, 0);
}
CStatusBar::~CStatusBar()
{
}
CStatusBar& CStat... | 23.746032 | 100 | 0.692513 | NullPopPoLab |
cf9d7bc4d4df7084ef61e55e46399ea9cd39290f | 323 | cpp | C++ | 121. Best Time to Buy and Sell Stock.cpp | qinenergy/leetCode | 79f960795445470a16a4755b05aa05f99e5c616b | [
"MIT"
] | 3 | 2017-02-22T14:28:27.000Z | 2017-04-26T16:26:06.000Z | 121. Best Time to Buy and Sell Stock.cpp | qinenergy/leetCode | 79f960795445470a16a4755b05aa05f99e5c616b | [
"MIT"
] | null | null | null | 121. Best Time to Buy and Sell Stock.cpp | qinenergy/leetCode | 79f960795445470a16a4755b05aa05f99e5c616b | [
"MIT"
] | null | null | null | class Solution2 {
public:
int maxProfit(vector<int>& prices) {
if (prices.empty())
return 0;
int N = prices.size();
int minPrice = prices[0], profit = 0;
for (int i = 0; i < N; i++)
{
minPrice = std::min(prices[i], minPrice);
profit = std::max(prices[i] - minPrice, profit);
}
return profit;
}... | 21.533333 | 51 | 0.591331 | qinenergy |
cfa16bd1e6010e5740cbbe643cf737d5afe2daf6 | 1,454 | cpp | C++ | examples/container/grid_iteration.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | examples/container/grid_iteration.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | examples/container/grid_iteration.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <fcppt/container/grid/object.hpp>
#include <fcppt/config/external_begin.hpp>
#include <ios... | 26.925926 | 61 | 0.676754 | freundlich |
cfa5fe55669f0c3066c8a7e39c7c56cc3681db27 | 265 | hh | C++ | src/Nuxed/Kernel/Event/EmitEvent.hh | tomoki1337/framework | ff06d260c5bf2a78a99b8d17b041de756550f95a | [
"MIT"
] | 1 | 2019-01-25T20:05:55.000Z | 2019-01-25T20:05:55.000Z | src/Nuxed/Kernel/Event/EmitEvent.hh | gitter-badger/framework-27 | 368b734f2753b06b7f19f819185091f896838467 | [
"MIT"
] | null | null | null | src/Nuxed/Kernel/Event/EmitEvent.hh | gitter-badger/framework-27 | 368b734f2753b06b7f19f819185091f896838467 | [
"MIT"
] | null | null | null | <?hh // strict
namespace Nuxed\Kernel\Event;
use type Nuxed\Contract\Event\EventInterface;
use type Nuxed\Contract\Http\Message\ResponseInterface;
class EmitEvent implements EventInterface {
public function __construct(public ResponseInterface $response) {}
}
| 24.090909 | 68 | 0.807547 | tomoki1337 |
bbb9ba3d19f4b0f2ba3683271f6558a58e8543d3 | 7,701 | cpp | C++ | Qt Repo/2D_Engine/inspector.cpp | Skyway666/Qt-Practice | ec239989bad523a91b5079a974fd204277527df1 | [
"MIT"
] | null | null | null | Qt Repo/2D_Engine/inspector.cpp | Skyway666/Qt-Practice | ec239989bad523a91b5079a974fd204277527df1 | [
"MIT"
] | null | null | null | Qt Repo/2D_Engine/inspector.cpp | Skyway666/Qt-Practice | ec239989bad523a91b5079a974fd204277527df1 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "sceneview.h"
#include "inspector.h"
#include "actions.h"
#include "ui_universals.h"
#include "ui_transform.h"
#include "ui_shaperenderer.h"
#include <QColorDialog>
#include "iostream"
Inspector::Inspector(MainWindow* main, QWidget* parent): QWidget(parent),
uiUniversals(new Ui:... | 30.927711 | 129 | 0.721595 | Skyway666 |
bbbb5dd9330e8cd9f63cbe14490270c31ac9540a | 807 | cpp | C++ | week6/w6d4/lexicographicRank.cpp | ash20012003/IPMPRepo | 3d288e8ab1c1a25113c45e983da7f7e780ff66d4 | [
"MIT"
] | 2 | 2021-11-13T05:41:49.000Z | 2022-02-06T16:12:56.000Z | week6/w6d4/lexicographicRank.cpp | ash20012003/IPMPRepo | 3d288e8ab1c1a25113c45e983da7f7e780ff66d4 | [
"MIT"
] | null | null | null | week6/w6d4/lexicographicRank.cpp | ash20012003/IPMPRepo | 3d288e8ab1c1a25113c45e983da7f7e780ff66d4 | [
"MIT"
] | null | null | null |
class Solution{
public:
int fact(int n){
if(n==0 || n==1) return 1;
else return n*fact(n-1);
}
int findSmallerInRight(string str, int low, int high)
{
int countRight = 0, i;
for (i = low + 1; i <= high; ++i)
if (str[i] < str[low])
++countRight;
return cou... | 18.767442 | 58 | 0.519207 | ash20012003 |
bbc66dc3d78d6766e7720facc66df9e39c2223a9 | 2,098 | hpp | C++ | pldmd/dbus_impl_pdr.hpp | anoo1/pldm-1 | fa0bf01f0a5d194875f65c54df5ca4e8888958fa | [
"Apache-2.0"
] | 14 | 2021-11-04T07:47:37.000Z | 2022-03-21T10:10:30.000Z | pldmd/dbus_impl_pdr.hpp | anoo1/pldm-1 | fa0bf01f0a5d194875f65c54df5ca4e8888958fa | [
"Apache-2.0"
] | 59 | 2021-08-11T12:03:06.000Z | 2022-03-29T13:49:53.000Z | pldmd/dbus_impl_pdr.hpp | anoo1/pldm-1 | fa0bf01f0a5d194875f65c54df5ca4e8888958fa | [
"Apache-2.0"
] | 139 | 2021-06-17T19:37:13.000Z | 2022-03-30T10:58:05.000Z | #pragma once
#include "libpldm/pdr.h"
#include "libpldm/platform.h"
#include "xyz/openbmc_project/PLDM/PDR/server.hpp"
#include <sdbusplus/bus.hpp>
#include <sdbusplus/server/object.hpp>
#include <vector>
namespace pldm
{
namespace dbus_api
{
using PdrIntf = sdbusplus::server::object::object<
sdbusplus::xyz::... | 29.549296 | 80 | 0.647283 | anoo1 |
bbc6c9e7509ad52adc896ddd26230a8eae7d719b | 1,335 | cpp | C++ | Source/ChessGame/GameClasses/BoardTile.cpp | Volvary/ChessGame | 5a20d0ef03518f7d17a4f04290c5bf1d5f95cb4f | [
"Apache-2.0"
] | 2 | 2019-05-16T15:07:39.000Z | 2019-11-23T09:31:20.000Z | Source/ChessGame/GameClasses/BoardTile.cpp | Volvary/ChessGame | 5a20d0ef03518f7d17a4f04290c5bf1d5f95cb4f | [
"Apache-2.0"
] | null | null | null | Source/ChessGame/GameClasses/BoardTile.cpp | Volvary/ChessGame | 5a20d0ef03518f7d17a4f04290c5bf1d5f95cb4f | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "BoardTile.h"
#include "Pieces/ChessPiece.h"
#include "ChessGame.h"
// Sets default values
ABoardTile::ABoardTile()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need... | 18.541667 | 115 | 0.726592 | Volvary |
bbc8c7527d63da0e9bc1a1aa90ef85f39fc637a0 | 3,488 | cpp | C++ | engine/Text.cpp | GenBrg/MagicCastlevania | 76ed248d4f0362ea92d29a159a2027d5b16c8a7b | [
"CC-BY-4.0"
] | 2 | 2020-10-31T01:34:42.000Z | 2020-12-08T15:16:22.000Z | engine/Text.cpp | GenBrg/MagicCastlevania | 76ed248d4f0362ea92d29a159a2027d5b16c8a7b | [
"CC-BY-4.0"
] | 50 | 2020-10-31T01:31:56.000Z | 2020-12-11T15:13:43.000Z | engine/Text.cpp | GenBrg/MagicCastlevania | 76ed248d4f0362ea92d29a159a2027d5b16c8a7b | [
"CC-BY-4.0"
] | null | null | null | #include "Text.hpp"
#include "../data_path.hpp"
#include "../Load.hpp"
#include <stdexcept>
FT_Library Text::library_;
Load<void> load_ft_library(LoadTagEarly, []() {
FT_Error error;
error = FT_Init_FreeType(&Text::library_);
if (error)
{
throw std::runtime_error("FT_Init_FreeType error!");
}
});
void Text... | 20.517647 | 106 | 0.68836 | GenBrg |
bbcafa0f1019f0588da120c0f4427ddcc54bdce2 | 2,995 | cpp | C++ | abstractbeatinterval.cpp | memmaa/cock-heroine | e5da101c97e5a35447c32a9c46da5a4e657ea4b9 | [
"Artistic-2.0"
] | 7 | 2021-04-23T19:16:14.000Z | 2021-12-10T02:34:41.000Z | abstractbeatinterval.cpp | memmaa/cock-heroine | e5da101c97e5a35447c32a9c46da5a4e657ea4b9 | [
"Artistic-2.0"
] | null | null | null | abstractbeatinterval.cpp | memmaa/cock-heroine | e5da101c97e5a35447c32a9c46da5a4e657ea4b9 | [
"Artistic-2.0"
] | 1 | 2021-05-14T16:26:09.000Z | 2021-05-14T16:26:09.000Z | #include "abstractbeatinterval.h"
#include "helperfunctions.h"
#include <QDebug>
#include <float.h>
#include "config.h"
#include "globals.h"
AbstractBeatInterval::AbstractBeatInterval()
{
}
AbstractBeatInterval::~AbstractBeatInterval()
{
}
bool AbstractBeatInterval::matchesThisInterval(int otherInterval) const
{
... | 29.95 | 147 | 0.709516 | memmaa |
bbd017f446411a504fceee0a73e55affccf04579 | 306 | cpp | C++ | xlib/Bell.cpp | X547/xlibe | fbab795ad8a86503174ecfcb8603ec868537d069 | [
"MIT"
] | 1 | 2022-01-02T16:10:26.000Z | 2022-01-02T16:10:26.000Z | xlib/Bell.cpp | X547/xlibe | fbab795ad8a86503174ecfcb8603ec868537d069 | [
"MIT"
] | null | null | null | xlib/Bell.cpp | X547/xlibe | fbab795ad8a86503174ecfcb8603ec868537d069 | [
"MIT"
] | null | null | null | /*
* Copyright 2003, Shibukawa Yoshiki. All rights reserved.
* Copyright 2021, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT license.
*/
#include <support/Beep.h>
extern "C" {
#include <X11/Xlib.h>
}
extern "C" int
XBell(Display* dpy, int percent)
{
beep();
return 0;
}
| 17 | 58 | 0.686275 | X547 |
bbd76d50e018c76984158892a935d5db9c67b22d | 19,877 | cpp | C++ | tests/src/NanoWinFileTests.cpp | openlab-vn-ua/NanoWin32 | 5d9d2349ca551766213f5e2dcdbed4cc43c91052 | [
"MIT"
] | 9 | 2017-09-28T11:37:36.000Z | 2021-03-30T14:30:23.000Z | tests/src/NanoWinFileTests.cpp | openlab-vn-ua/NanoWin32 | 5d9d2349ca551766213f5e2dcdbed4cc43c91052 | [
"MIT"
] | 3 | 2019-11-22T12:09:40.000Z | 2020-06-19T16:11:26.000Z | tests/src/NanoWinFileTests.cpp | openlab-vn-ua/NanoWin32 | 5d9d2349ca551766213f5e2dcdbed4cc43c91052 | [
"MIT"
] | 1 | 2020-04-25T10:13:01.000Z | 2020-04-25T10:13:01.000Z | #include "NWUnitTest.h"
#ifdef __linux
#include "unistd.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <cstring>
#include "NanoWinFile.h"
#include "NanoWinError.h"
#include "NanoWinStrConvert.h"
#include "NanoWinFileSys.h"
#else
#include <windows.h>
#include <direct.h>
#include <Shlwapi.h>
#include "Nan... | 28.154391 | 143 | 0.741359 | openlab-vn-ua |
bbdadfd84b0bf914baca073086b269990f423313 | 3,946 | cpp | C++ | src/task/task_impl.cpp | LogicFan/Project-OpenCLe | c5f3917c197cc3792c4f9f77fe6b74a474a7f278 | [
"BSD-3-Clause"
] | 3 | 2019-02-22T16:59:28.000Z | 2019-05-21T08:15:41.000Z | src/task/task_impl.cpp | LogicFan/Project-OpenCLe | c5f3917c197cc3792c4f9f77fe6b74a474a7f278 | [
"BSD-3-Clause"
] | null | null | null | src/task/task_impl.cpp | LogicFan/Project-OpenCLe | c5f3917c197cc3792c4f9f77fe6b74a474a7f278 | [
"BSD-3-Clause"
] | null | null | null | #define NDEBUG
#include "task_impl.hpp"
#include <utility>
#include "../util/logger/logger.hpp"
#include "../device/device_impl.hpp"
#include "../memory/global_ptr_impl.hpp"
namespace opencle
{
task_impl::task_impl(std::string const &source, std::string const &kernel_name)
: valid_{1}, source_{source}, kernel_n... | 26.306667 | 130 | 0.5963 | LogicFan |
bbdb9c089523aa73118e321f723dfb43a0bd170f | 269 | cpp | C++ | src/Thunk/Thunk.cpu.Tests/System/Collections/IEnumeratorTests.cpp | BclEx/GpuStructs | b93acb1c7196477d1d023453a75b480f75cdd29a | [
"MIT"
] | null | null | null | src/Thunk/Thunk.cpu.Tests/System/Collections/IEnumeratorTests.cpp | BclEx/GpuStructs | b93acb1c7196477d1d023453a75b480f75cdd29a | [
"MIT"
] | null | null | null | src/Thunk/Thunk.cpu.Tests/System/Collections/IEnumeratorTests.cpp | BclEx/GpuStructs | b93acb1c7196477d1d023453a75b480f75cdd29a | [
"MIT"
] | null | null | null | using namespace Xunit;
using namespace System;
namespace System { namespace Collections {
/// <summary>
/// IEnumeratorTests
/// </summary>
public ref class IEnumeratorTests
{
public:
[Fact]
void Current_TwoElementList_NotNull()
{
}
};
}} | 16.8125 | 43 | 0.66171 | BclEx |
bbe174dad5b6f32ca7f442e081c0b75ea7411d5d | 1,055 | hpp | C++ | server/include/request.hpp | juli1/srfs | df48c5895cf6b629a60ce071de8b5c8ada11766a | [
"Unlicense"
] | null | null | null | server/include/request.hpp | juli1/srfs | df48c5895cf6b629a60ce071de8b5c8ada11766a | [
"Unlicense"
] | null | null | null | server/include/request.hpp | juli1/srfs | df48c5895cf6b629a60ce071de8b5c8ada11766a | [
"Unlicense"
] | null | null | null | #ifndef __REQUEST_H__
#define __REQUEST_H__
#include <stddef.h>
using std::size_t;
typedef enum requestt
{
openfile = 1,
closefile = 2,
readfile = 3,
quit = 4,
invalid = -1
}request_type_t;
class request
{
public:
// Constructors
request() : type(invalid)
{
offset = 0;
size = 0;... | 18.189655 | 70 | 0.6 | juli1 |
bbe23e01129a87d07b3ba65536eebaa2f8030eec | 3,854 | cpp | C++ | Crowbot/Crowbot/Animated.cpp | pibomb/crowbot | 7acc794e3f8a2cb6529d198ada15bad6e4364ca6 | [
"Apache-2.0"
] | null | null | null | Crowbot/Crowbot/Animated.cpp | pibomb/crowbot | 7acc794e3f8a2cb6529d198ada15bad6e4364ca6 | [
"Apache-2.0"
] | null | null | null | Crowbot/Crowbot/Animated.cpp | pibomb/crowbot | 7acc794e3f8a2cb6529d198ada15bad6e4364ca6 | [
"Apache-2.0"
] | null | null | null | #include "resource.h"
Rect Animated::get_current_region(int frame_arg)
{
int x=(frame_arg%(al_get_bitmap_width(acd.spritesheet)/acd.ss_width))*acd.ss_width, y=(frame_arg/(al_get_bitmap_width(acd.spritesheet)/acd.ss_width))*acd.ss_height;
return Rect(x, y, x+acd.ss_width, y+acd.ss_height);
}
void Animated::dra... | 41.891304 | 184 | 0.742086 | pibomb |
bbe36676c90f8fe0e275c31efbedc4b08e5fcda7 | 6,109 | cpp | C++ | GameEngine/PhysVehicle3D.cpp | laura-96/GameEngine | 9bf5be938e8899d6a083041dae8b52737293f534 | [
"MIT"
] | null | null | null | GameEngine/PhysVehicle3D.cpp | laura-96/GameEngine | 9bf5be938e8899d6a083041dae8b52737293f534 | [
"MIT"
] | null | null | null | GameEngine/PhysVehicle3D.cpp | laura-96/GameEngine | 9bf5be938e8899d6a083041dae8b52737293f534 | [
"MIT"
] | null | null | null | #include "PhysVehicle3D.h"
#include "Primitive.h"
#include "Bullet/src/btBulletDynamicsCommon.h"
// ----------------------------------------------------------------------------
VehicleInfo::~VehicleInfo()
{
//if(wheels != NULL)
//delete wheels;
}
// ------------------------------------------------------------------... | 28.952607 | 148 | 0.648224 | laura-96 |
bbe4eb061a8802567e16e23ed8f559409f745df8 | 777 | hpp | C++ | Common/Converters/OctreeToPclOctreeConverter.hpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 7 | 2019-02-26T15:09:50.000Z | 2021-09-30T07:39:01.000Z | Common/Converters/OctreeToPclOctreeConverter.hpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | null | null | null | Common/Converters/OctreeToPclOctreeConverter.hpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 1 | 2020-12-06T12:09:05.000Z | 2020-12-06T12:09:05.000Z | /* --------------------------------------------------------------------------
*
* (C) Copyright …
*
* --------------------------------------------------------------------------
*/
/*!
* @file OctreeToPclOctreeConverter.cpp
* @date 17/09/2018
* @authors Irene Sanz
*/
/*!
* @addtogroup Converters
*
* Implementat... | 18.5 | 94 | 0.585586 | H2020-InFuse |
bbe8e7715d59c1cef0156692111894fd0aa36797 | 10,391 | hpp | C++ | include/core/BoundingBox.hpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 11 | 2018-11-22T03:07:10.000Z | 2022-03-31T15:51:29.000Z | include/core/BoundingBox.hpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 2 | 2019-02-14T15:05:42.000Z | 2019-07-26T06:07:13.000Z | include/core/BoundingBox.hpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 4 | 2018-12-18T12:40:07.000Z | 2022-03-31T15:51:31.000Z | #pragma once
#include <core\Common.hpp>
#include <core\Ray.hpp>
NAMESPACE_BEGIN
/**
* \brief Generic n-dimensional bounding box data structure
*
* Maintains a minimum and maximum position along each dimension and provides
* various convenience functions for querying and modifying them.
*
* This class is parameterize... | 22.014831 | 89 | 0.62506 | BlauHimmel |
bbe9498ab937aa23e9a9bb7252837390ae9dbff8 | 3,361 | hpp | C++ | src/messaging/transportsocketcache.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 61 | 2015-01-08T08:05:28.000Z | 2022-01-07T16:47:47.000Z | src/messaging/transportsocketcache.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 30 | 2015-04-06T21:41:18.000Z | 2021-08-18T13:24:51.000Z | src/messaging/transportsocketcache.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 64 | 2015-02-23T20:01:11.000Z | 2022-03-14T13:31:20.000Z | #pragma once
/*
** Copyright (C) 2015 Aldebaran Robotics
** See COPYING for the license
*/
#ifndef _SRC_TRANSPORTSOCKETCACHE2_HPP_
#define _SRC_TRANSPORTSOCKETCACHE2_HPP_
#include <string>
#include <boost/thread/mutex.hpp>
#include <boost/thread/synchronized_value.hpp>
#include <qi/future.hpp>
#include <qi/uri.hp... | 30.008929 | 120 | 0.715263 | arntanguy |
bbf88b0e642ccb2547de55a84cd7cd5667761dd3 | 11,221 | cpp | C++ | src/Core/Mesh/MeshUtils.cpp | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | src/Core/Mesh/MeshUtils.cpp | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | src/Core/Mesh/MeshUtils.cpp | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | #include <Core/Mesh/MeshUtils.hpp>
#include <Core/Math/Math.hpp>
#include <Core/Math/RayCast.hpp>
#include <Core/String/StringUtils.hpp>
#include <Core/Log/Log.hpp>
#include <utility>
#include <set>
#include <map>
#include <vector>
#include <utility>
#include <algorithm>
namespace Ra
{
namespace Core
{
... | 40.952555 | 116 | 0.392924 | nmellado |
bbf9a60f5009d5e88a478be0480211747e2f89ae | 1,058 | cpp | C++ | MFC++/SourceCodes/Chapter7/PreferLambda.cpp | CoodingPenguin/StudyMaterial | b6d8084fc38673ad6ffb54bc0bc60b2471168810 | [
"MIT"
] | 9 | 2019-02-21T20:20:25.000Z | 2020-04-14T15:18:59.000Z | MFC++/SourceCodes/Chapter7/PreferLambda.cpp | CoodingPenguin/StudyMaterial | b6d8084fc38673ad6ffb54bc0bc60b2471168810 | [
"MIT"
] | null | null | null | MFC++/SourceCodes/Chapter7/PreferLambda.cpp | CoodingPenguin/StudyMaterial | b6d8084fc38673ad6ffb54bc0bc60b2471168810 | [
"MIT"
] | 2 | 2019-07-09T02:01:37.000Z | 2020-01-07T18:45:25.000Z | /* Source by Effective Modern C++, Item 34.
*
* Topic - 함수 바인딩보다는 람다를 선호하자.
*/
#include <iostream>
#include <string>
#include <vector>
#include <functional>
#include <map>
#include <deque>
#include <chrono>
using namespace std;
using Time = chrono::steady_clock::time_point;
using Duration = chrono::steady_clock::... | 19.236364 | 85 | 0.679584 | CoodingPenguin |
bbfc56399ea0b8fecfc18ef362b3987ad7d57389 | 894 | cc | C++ | below2.1/easiest.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/easiest.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/easiest.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int x;
int mul, sum1, sum2, dum;
while (true)
{
cin >> x;
if (x == 0)
{
break;
}
int i = 11;
while (true)
{
sum1 = 0;
sum2 = 0;
mul = x * i;
... | 18.244898 | 33 | 0.230425 | danzel-py |
bbfe2f18307ce346c506c4a331d7e6deebc53e07 | 19,571 | cpp | C++ | src/engine/audio/private/snd_dev_common.cpp | DeadZoneLuna/csso-src | 6c978ea304ee2df3796bc9c0d2916bac550050d5 | [
"Unlicense"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | src/engine/audio/private/snd_dev_common.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | null | null | null | src/engine/audio/private/snd_dev_common.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Device Common Base Class.
//
//=====================================================================================//
#include "audio_pch.h"
#define ISPEAKER_RIGHT_FRONT 0
#define ISPEAKER_LEFT_FRONT 1
#define ISPEAKER_RIGHT... | 31.414125 | 168 | 0.692964 | DeadZoneLuna |
01017c7829cb05f32b5e0636126941d1d4e9e4e3 | 7,764 | cpp | C++ | lib_graphd/test/GraphUtilTest.cpp | spowers/INDDGO-survey | 860f15376f7be074f47280a74b912a8f0baa37bf | [
"BSD-3-Clause"
] | null | null | null | lib_graphd/test/GraphUtilTest.cpp | spowers/INDDGO-survey | 860f15376f7be074f47280a74b912a8f0baa37bf | [
"BSD-3-Clause"
] | null | null | null | lib_graphd/test/GraphUtilTest.cpp | spowers/INDDGO-survey | 860f15376f7be074f47280a74b912a8f0baa37bf | [
"BSD-3-Clause"
] | null | null | null | /*
This file is part of INDDGO.
Copyright (C) 2012, Oak Ridge National Laboratory
This product includes software produced by UT-Battelle, LLC under Contract No.
DE-AC05-00OR22725 with the Department of Energy.
This program is free software; you can redistribute it and/or modify
it under the terms o... | 25.539474 | 81 | 0.6288 | spowers |
01040c7578f6fae92095a63a4cda2a50f2008862 | 913 | cpp | C++ | example/src/main.cpp | PiotrMoscicki/s4_rtti | 8d22f42f84eb0a831b2472349d2d97b4cb351e07 | [
"MIT"
] | null | null | null | example/src/main.cpp | PiotrMoscicki/s4_rtti | 8d22f42f84eb0a831b2472349d2d97b4cb351e07 | [
"MIT"
] | 3 | 2021-12-18T16:50:24.000Z | 2021-12-18T16:53:54.000Z | example/src/main.cpp | PiotrMoscicki/s4_rtti | 8d22f42f84eb0a831b2472349d2d97b4cb351e07 | [
"MIT"
] | null | null | null | #include <rtti/rtti.hpp>
namespace ecs {
enum class ETimeSpeed {
NORMAL,
FAST,
FASTER,
FASTEST,
};
// class Entity {
// CLASS(ecs::Entity)
// public:
// virtual ~Entity() = default;
// bool m_bool = false;
// FIELD(m_bool)
// }; /... | 21.738095 | 78 | 0.523549 | PiotrMoscicki |
01090d2cdab010a9d33b8aa2eba60e39b8248129 | 340 | hpp | C++ | include/Constellation/Random.hpp | V0XNIHILI/constellation | 84a5868d98ee89216cccd56a475c059eeadee87e | [
"MIT"
] | 1 | 2021-03-11T23:47:28.000Z | 2021-03-11T23:47:28.000Z | include/Constellation/Random.hpp | V0XNIHILI/constellation | 84a5868d98ee89216cccd56a475c059eeadee87e | [
"MIT"
] | null | null | null | include/Constellation/Random.hpp | V0XNIHILI/constellation | 84a5868d98ee89216cccd56a475c059eeadee87e | [
"MIT"
] | null | null | null | //
// Created by Douwe den Blanken on 10/03/2021.
//
#ifndef CONSTELLATION_RANDOM_HPP
#define CONSTELLATION_RANDOM_HPP
#include "Matrix.hpp"
namespace Constellation {
template<typename U>
class Random : public Matrix<U> {
public:
Random(int w, int h) : Matrix<U>(w, h) {}
};
}
#endif //CONST... | 17 | 49 | 0.679412 | V0XNIHILI |
010ca7dfab3470e9a8a8acf67c90b00f77a23f9c | 2,019 | hpp | C++ | sdk/core/perf/inc/azure/perf/dynamic_test_options.hpp | RickWinter/azure-sdk-for-cpp | b4fe751310f53669a941e00aa93072f2d10a4eba | [
"MIT"
] | 96 | 2020-03-19T07:49:39.000Z | 2022-03-20T14:22:41.000Z | sdk/core/perf/inc/azure/perf/dynamic_test_options.hpp | RickWinter/azure-sdk-for-cpp | b4fe751310f53669a941e00aa93072f2d10a4eba | [
"MIT"
] | 2,572 | 2020-03-18T22:54:53.000Z | 2022-03-31T22:09:59.000Z | sdk/core/perf/inc/azure/perf/dynamic_test_options.hpp | RickWinter/azure-sdk-for-cpp | b4fe751310f53669a941e00aa93072f2d10a4eba | [
"MIT"
] | 81 | 2020-03-19T09:42:00.000Z | 2022-03-24T05:11:05.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
/**
* @file
* @brief Define the test application options.
*
*/
#pragma once
#include "azure/perf/argagg.hpp"
namespace Azure { namespace Perf {
/**
* @brief Define a wrapper container for the test options.
*
... | 26.220779 | 99 | 0.63051 | RickWinter |
010e8a513885649f45eb1ea231bff2941a339eb5 | 7,374 | hpp | C++ | include/misc/xmlwrapp/xpath_object.hpp | ncbi/ncbi-xmlwrapp | d5c25d7b911413fe4dffd408903e5ce06a68636e | [
"BSD-3-Clause"
] | 3 | 2018-01-18T21:46:01.000Z | 2021-04-06T03:04:00.000Z | include/misc/xmlwrapp/xpath_object.hpp | ncbi/ncbi-xmlwrapp | d5c25d7b911413fe4dffd408903e5ce06a68636e | [
"BSD-3-Clause"
] | null | null | null | include/misc/xmlwrapp/xpath_object.hpp | ncbi/ncbi-xmlwrapp | d5c25d7b911413fe4dffd408903e5ce06a68636e | [
"BSD-3-Clause"
] | 4 | 2018-01-18T21:44:47.000Z | 2020-12-13T14:38:18.000Z | /* $Id: xpath_object.hpp 446669 2014-09-17 15:29:33Z satskyse $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Governmen... | 27.931818 | 78 | 0.636018 | ncbi |
010e96c55c6454f2b9845e96b0351e8a058ec99e | 3,935 | cpp | C++ | Source/IDE/src/Dialogs/WelcomeDialog.cpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | null | null | null | Source/IDE/src/Dialogs/WelcomeDialog.cpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | null | null | null | Source/IDE/src/Dialogs/WelcomeDialog.cpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | 1 | 2021-10-30T20:43:01.000Z | 2021-10-30T20:43:01.000Z | /*
* WelcomeDialog.cpp
* Welcome Dialog
*/
#include <QCloseEvent>
#include <QFileDialog>
#include <QMessageBox>
#include <QFile>
#include <Dialogs/WelcomeDialog.hpp>
#include <Dialogs/NewProjectDialog.hpp>
#include <Project/Project.hpp>
#include <IdePreferences.hpp>
#include <Util.hpp>
#include "ui_welcomedialog.... | 28.514493 | 124 | 0.684371 | DatZach |
0110037aeb36ff806704f0cbddad1995f6ad4c18 | 1,991 | cpp | C++ | cute_tests/test_cute_test.cpp | tcorbat/CUTE | c9826733b69e42a9beb7060dbccce09d7706d0d4 | [
"MIT"
] | 37 | 2015-05-21T14:39:34.000Z | 2021-11-09T18:29:26.000Z | cute_tests/test_cute_test.cpp | tcorbat/CUTE | c9826733b69e42a9beb7060dbccce09d7706d0d4 | [
"MIT"
] | 46 | 2020-04-15T19:02:35.000Z | 2021-11-18T18:57:07.000Z | cute_tests/test_cute_test.cpp | tcorbat/CUTE | c9826733b69e42a9beb7060dbccce09d7706d0d4 | [
"MIT"
] | 15 | 2015-10-17T21:11:47.000Z | 2021-08-06T09:37:04.000Z | /*********************************************************************************
* This file is part of CUTE.
*
* Copyright (c) 2006-2018 Peter Sommerlad, IFS
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), ... | 35.553571 | 83 | 0.687092 | tcorbat |
0110597ceafb2d0e5827cf62624ad94037a7180c | 1,617 | cpp | C++ | src/allocator.cpp | akhleung/vole | 358bd7a84d245e89b3ae47d369c19b3fff2f8a75 | [
"MIT"
] | null | null | null | src/allocator.cpp | akhleung/vole | 358bd7a84d245e89b3ae47d369c19b3fff2f8a75 | [
"MIT"
] | null | null | null | src/allocator.cpp | akhleung/vole | 358bd7a84d245e89b3ae47d369c19b3fff2f8a75 | [
"MIT"
] | null | null | null | #include "allocator.hpp"
#include "value.hpp"
namespace Vole {
Allocator::Handle::Object::Object(char* ptr) : char_ptr(ptr) { }
Allocator::Handle::Object::Object(Value* ptr) : value_ptr(ptr) { }
Allocator::Handle::Handle(Type t, char* ptr, size_t s)
: type(t), object(ptr), size(s)
{ }
Allocator::Handle::... | 29.4 | 74 | 0.57081 | akhleung |
0114ef36e5336aec9033287a9cb56bbe6dbc6312 | 6,978 | cpp | C++ | automation/parser/mem_interface.cpp | HongshiTan/ThunderGP | 930e8c7a6920e83473a6a8a46e5d6e61510c1a33 | [
"Apache-2.0"
] | 87 | 2020-06-22T05:48:39.000Z | 2022-03-27T03:47:29.000Z | automation/parser/mem_interface.cpp | HongshiTan/ThunderGP | 930e8c7a6920e83473a6a8a46e5d6e61510c1a33 | [
"Apache-2.0"
] | 4 | 2020-07-06T09:49:38.000Z | 2021-08-02T07:02:57.000Z | automation/parser/mem_interface.cpp | HongshiTan/ThunderGP | 930e8c7a6920e83473a6a8a46e5d6e61510c1a33 | [
"Apache-2.0"
] | 25 | 2020-06-29T02:29:16.000Z | 2022-02-11T18:41:51.000Z |
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include "parser.h"
#include "parser_debug.h"
using namespace std;
typedef struct
{
unsigned int mask;
std::string name;
arg_instance_t input;
arg_instance_t attr;
std::vector<arg_instance_t> ins... | 24.657244 | 104 | 0.489825 | HongshiTan |
0117ce878cd1e9d4e09ec309cf4296ecbc09b852 | 356 | cpp | C++ | C-plus-plus/cpp_exercise/Chapter9/file1.cpp | dqhplhzz2008/Study-notes | 0df739d22add100e0f5976226abce34242fae57b | [
"MIT"
] | 11 | 2018-10-09T03:45:27.000Z | 2020-12-25T11:39:51.000Z | C-plus-plus/cpp_exercise/Chapter9/file1.cpp | dqhplhzz2008/Study-notes | 0df739d22add100e0f5976226abce34242fae57b | [
"MIT"
] | 2 | 2019-03-07T02:45:49.000Z | 2019-03-07T03:55:08.000Z | C-plus-plus/cpp_exercise/Chapter9/file1.cpp | dqhplhzz2008/Study-notes | 0df739d22add100e0f5976226abce34242fae57b | [
"MIT"
] | 7 | 2019-03-07T02:46:14.000Z | 2022-03-19T03:30:22.000Z | #include<iostream>
#include"coordin.h"
using namespace std;
int main()
{
rect rplace;
polar pplace;
cout << "Enter the x and y values: ";
while (cin >> rplace.x >> rplace.y)//slick use of cin
{
pplace = rect_to_polar(rplace);
show_polar(pplace);
cout << "Next two numbers(q to quit): ";
}
cout << "Bye!" << ... | 19.777778 | 54 | 0.640449 | dqhplhzz2008 |
0127f6a66a013d6ca0b0cc0397dab7c59ec8b452 | 451 | cpp | C++ | tests/array/encode/testTemplatedEncode1f.cpp | JieyangChen7/zfp | 1d6fbe597b1d86e78b51ffd8c13e2068a0c74b0f | [
"BSD-3-Clause"
] | 528 | 2016-10-21T07:50:43.000Z | 2022-03-27T13:52:12.000Z | tests/array/encode/testTemplatedEncode1f.cpp | JieyangChen7/zfp | 1d6fbe597b1d86e78b51ffd8c13e2068a0c74b0f | [
"BSD-3-Clause"
] | 150 | 2016-09-21T18:09:42.000Z | 2022-03-21T17:09:20.000Z | tests/array/encode/testTemplatedEncode1f.cpp | JieyangChen7/zfp | 1d6fbe597b1d86e78b51ffd8c13e2068a0c74b0f | [
"BSD-3-Clause"
] | 113 | 2016-09-22T07:27:14.000Z | 2022-03-13T04:14:30.000Z | #include "array/zfpcpp.h"
using namespace zfp;
extern "C" {
#include "constants/1dFloat.h"
#include "utils/rand32.h"
}
#define ZFP_FIELD_FUNC zfp_field_1d
#define ZFP_ENCODE_BLOCK_FUNC zfp_encode_block_float_1
#define ZFP_ENCODE_BLOCK_STRIDED_FUNC zfp_encode_block_strided_float_1
#define ZFP_ENCODE_PARTIAL_BLOCK_... | 25.055556 | 86 | 0.842572 | JieyangChen7 |
013066bab343f93e624f7654f328ad6ffaed9add | 3,731 | hpp | C++ | include/mcnla/core/matrix/coo/coo_storage.hpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | include/mcnla/core/matrix/coo/coo_storage.hpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | include/mcnla/core/matrix/coo/coo_storage.hpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @file include/mcnla/core/matrix/coo/coo_storage.hpp
/// @brief The COO storage.
///
/// @author Mu Yang <<emfomy@gmail.com>>
///
#ifndef MCNLA_CORE_MATRIX_COO_COO_STORAGE_HPP_
#def... | 33.3125 | 128 | 0.433664 | emfomy |
01311f971a08a8ec17b781bc6ddb72b82a42da94 | 1,448 | hpp | C++ | libs/core/include/fcppt/enable_shared_from_this_impl.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/enable_shared_from_this_impl.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/enable_shared_from_this_impl.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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 FCPPT_ENABLE_SHARED_FROM_THIS_IMPL_HPP_INCLUDED
#define FCPPT_ENABLE_SHARED_FROM_THIS_IMPL... | 15.242105 | 61 | 0.749309 | pmiddend |
0131c864537ce8a09d43d2b30755ccbe0ed2dee8 | 3,840 | cc | C++ | gazebo/physics/dart/DARTFixedJoint.cc | devrt/gazebo-mirror | 16589c29302bfec51079f62dd247864be54b71d3 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-03-04T14:12:55.000Z | 2019-03-04T14:12:55.000Z | gazebo/physics/dart/DARTFixedJoint.cc | devrt/gazebo-mirror | 16589c29302bfec51079f62dd247864be54b71d3 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/physics/dart/DARTFixedJoint.cc | devrt/gazebo-mirror | 16589c29302bfec51079f62dd247864be54b71d3 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2016-04-25T22:05:09.000Z | 2020-03-08T08:45:12.000Z | /*
* Copyright (C) 2015 Open Source Robotics Foundation
*
* 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 appl... | 30.72 | 80 | 0.598177 | devrt |
0136961de64c837b6c2afe66f1c5c36dc7833a89 | 3,706 | cpp | C++ | physicslib/body.cpp | mateka/cuboids | 6a01b300a6169a2c9fae8dc6f4fcb86c11b66e5a | [
"MIT"
] | null | null | null | physicslib/body.cpp | mateka/cuboids | 6a01b300a6169a2c9fae8dc6f4fcb86c11b66e5a | [
"MIT"
] | null | null | null | physicslib/body.cpp | mateka/cuboids | 6a01b300a6169a2c9fae8dc6f4fcb86c11b66e5a | [
"MIT"
] | null | null | null | #include <physicslib/body.h>
#include <physicslib/world.h>
#include <glm/gtc/matrix_transform.hpp>
#include <limits>
#include <array>
namespace physicslib {
body::body(
world& w,
const float mass,
btCollisionShape& shape,
const btTransform& startTransform
)
: m_world{ w }, m_motionState{ startTransform },
m_ri... | 25.383562 | 82 | 0.696978 | mateka |
013a7d64fe59c175d4e9c99124ae9952627b4825 | 222 | cpp | C++ | server/src/Network/Packet.cpp | iamagarwimbo/ClanGamer.io | 6d86dc4b6f890f997f84d8df1b6e836c2e7cfd34 | [
"MIT"
] | 16 | 2015-06-01T09:14:43.000Z | 2021-11-11T15:41:37.000Z | server/src/Network/Packet.cpp | iamagarwimbo/ClanGamer.io | 6d86dc4b6f890f997f84d8df1b6e836c2e7cfd34 | [
"MIT"
] | 2 | 2015-08-05T03:39:55.000Z | 2022-01-02T11:31:08.000Z | server/src/Network/Packet.cpp | iamagarwimbo/ClanGamer.io | 6d86dc4b6f890f997f84d8df1b6e836c2e7cfd34 | [
"MIT"
] | 16 | 2015-06-10T09:50:02.000Z | 2021-05-07T14:57:06.000Z | //
// Created by niels on 04.06.15.
//
#include <string.h>
#include "Packet.h"
String Packet::getData() const {
vector<uint8_t> buf;
buf.push_back(getId());
applyData(buf);
return String(buf.begin(), buf.end());
}
| 13.875 | 39 | 0.653153 | iamagarwimbo |
014a2439446f8f39bbf24917101d1a730cb15f2f | 2,321 | hpp | C++ | include/ast/StructTypeNode.hpp | aviralg/tastr | 184e6324de86831c1e4162112d446f537ad8f50c | [
"Apache-2.0"
] | 1 | 2021-03-25T04:05:35.000Z | 2021-03-25T04:05:35.000Z | include/ast/StructTypeNode.hpp | aviralg/tastr | 184e6324de86831c1e4162112d446f537ad8f50c | [
"Apache-2.0"
] | null | null | null | include/ast/StructTypeNode.hpp | aviralg/tastr | 184e6324de86831c1e4162112d446f537ad8f50c | [
"Apache-2.0"
] | null | null | null | #ifndef TASTR_AST_STRUCT_TYPE_NODE_HPP
#define TASTR_AST_STRUCT_TYPE_NODE_HPP
#include "ast/KeywordNode.hpp"
#include "ast/ParameterNode.hpp"
#include "ast/TypeNode.hpp"
namespace tastr {
namespace ast {
class StructTypeNode final: public TypeNode {
public:
explicit StructTypeNode(KeywordNodeUPtr keyword,
... | 26.078652 | 80 | 0.651443 | aviralg |
015061ee838a6d5ce1191fd56046422c8586a60e | 1,191 | hh | C++ | uvv8/include/util/convert.hh | Qard/river.js | 62cebbfa61cef96d241487e8c35d46211d0a68b8 | [
"MIT"
] | 3 | 2018-04-06T08:58:55.000Z | 2018-04-15T20:48:43.000Z | uvv8/include/util/convert.hh | Qard/river.js | 62cebbfa61cef96d241487e8c35d46211d0a68b8 | [
"MIT"
] | 6 | 2018-04-13T04:50:08.000Z | 2018-04-13T05:06:22.000Z | uvv8/include/util/convert.hh | Qard/river.js | 62cebbfa61cef96d241487e8c35d46211d0a68b8 | [
"MIT"
] | null | null | null | #pragma once
// TODO: Convert JS promise to a C++ alternative?
#include <string>
#include <v8.h>
#include "uvv8/util/check.hh"
//
// Strings
//
v8::MaybeLocal<v8::String> Convert(v8::Isolate* isolate, const char* string);
v8::MaybeLocal<v8::String> Convert(v8::Isolate* isolate, const std::string& string);
v8::Maybe... | 35.029412 | 84 | 0.715365 | Qard |
015646cb6e45563923018c1b308cec7b8dc99c38 | 876 | cpp | C++ | test/token.cpp | ionlang/ionlang | 839a5fc3aa0b575dc43e61c6e833e90e00dc922d | [
"Unlicense"
] | 13 | 2020-08-20T15:01:10.000Z | 2021-11-25T05:53:01.000Z | test/token.cpp | ionlang/ion | 839a5fc3aa0b575dc43e61c6e833e90e00dc922d | [
"Unlicense"
] | 3 | 2020-08-10T18:55:52.000Z | 2021-10-11T06:33:07.000Z | test/token.cpp | ionlang/ionlang | 839a5fc3aa0b575dc43e61c6e833e90e00dc922d | [
"Unlicense"
] | 2 | 2020-07-20T19:20:48.000Z | 2020-10-12T15:25:41.000Z | #include <ionlang/lexical/token.h>
#include "pch.h"
using namespace ionlang;
TEST(TokenTest, CorrectProperties) {
Token token = Token(TokenKind::Identifier, std::string("hello_world"), 123);
EXPECT_EQ(token.value, "hello_world");
EXPECT_EQ(token.kind, TokenKind::Identifier);
EXPECT_EQ(token.startPosi... | 28.258065 | 80 | 0.681507 | ionlang |
015a7a7110dd87a73ed11558e361f50009fe28e5 | 527 | cpp | C++ | world/tiles/source/unit_tests/CastleTile_test.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | world/tiles/source/unit_tests/CastleTile_test.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | world/tiles/source/unit_tests/CastleTile_test.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "gtest/gtest.h"
TEST(SW_World_Tiles_CastleTile, type_is_TILE_TYPE_CASTLE)
{
CastleTile castle_tile;
EXPECT_EQ(TileType::TILE_TYPE_CASTLE, castle_tile.get_tile_type());
}
TEST(SW_World_Tiles_CastleTile, tile_description_sid)
{
CastleTile castle_tile;
EXPECT_EQ(TileTextKeys::TILE_DESC_CASTLE, castle_... | 21.958333 | 87 | 0.819734 | sidav |
015c44abd6d20fbe0fd7aa6a7e897ea16eadb15d | 3,365 | hpp | C++ | include/collections_info.hpp | gordonwatts/func-adl-types-atlas | 9d135371d4e21d69373a8e1611ea8118cf2fff7f | [
"MIT"
] | null | null | null | include/collections_info.hpp | gordonwatts/func-adl-types-atlas | 9d135371d4e21d69373a8e1611ea8118cf2fff7f | [
"MIT"
] | 1 | 2022-02-23T17:56:48.000Z | 2022-02-23T17:56:48.000Z | include/collections_info.hpp | gordonwatts/func-adl-types-atlas | 9d135371d4e21d69373a8e1611ea8118cf2fff7f | [
"MIT"
] | null | null | null | #ifndef __collections_info__
#define __collections_info__
#include <string>
#include <map>
#include <vector>
// Collections can have options which download metadata and do other things. This file tracks that.
// Action that can be taken
struct var_action {
// The value for this action
std::string value;
... | 35.421053 | 150 | 0.642793 | gordonwatts |
015c8a4110ab73423face484087f67d76c0fc330 | 1,760 | hpp | C++ | src/include/state_machine.hpp | N4G170/project_euler | 0ab6a9252016b1150730149ce013106af212705e | [
"MIT"
] | null | null | null | src/include/state_machine.hpp | N4G170/project_euler | 0ab6a9252016b1150730149ce013106af212705e | [
"MIT"
] | null | null | null | src/include/state_machine.hpp | N4G170/project_euler | 0ab6a9252016b1150730149ce013106af212705e | [
"MIT"
] | null | null | null | #ifndef STATEMACHINE_HPP
#define STATEMACHINE_HPP
#include <memory>
#include <string>
#include "SDL.h"
#include "state_interface.hpp"
#include "constants.hpp"
#include "sdl_init.hpp"
#include "sdl_gui_manager.hpp"
#include "sdl_gui_resource_manager.hpp"
#include <mutex>
//class ResourceManager;
class StateInterface... | 24.788732 | 105 | 0.647159 | N4G170 |
01653d22b94ed9e6e9e166e302d3010d1dd5be80 | 3,719 | cpp | C++ | arduino/src/harvester/SSTHarvester/hardware/samd/1.8.3/variants/SparkFun_LilyMini/variant.cpp | ccroswhite/harvester | 16e7709a0d4eb4d325a339e6b51b10b972b5a7ac | [
"BSD-3-Clause"
] | null | null | null | arduino/src/harvester/SSTHarvester/hardware/samd/1.8.3/variants/SparkFun_LilyMini/variant.cpp | ccroswhite/harvester | 16e7709a0d4eb4d325a339e6b51b10b972b5a7ac | [
"BSD-3-Clause"
] | null | null | null | arduino/src/harvester/SSTHarvester/hardware/samd/1.8.3/variants/SparkFun_LilyMini/variant.cpp | ccroswhite/harvester | 16e7709a0d4eb4d325a339e6b51b10b972b5a7ac | [
"BSD-3-Clause"
] | null | null | null | /*
SparkFul LilyMini Configuration File
Based on Arduino SAMD21 configuration files,
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free S... | 60.967213 | 173 | 0.709868 | ccroswhite |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.