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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a2e387481274dcef10012da6d6208474b775c3e | 6,968 | hpp | C++ | include/common/io_buffer.hpp | anand-gs/cplusplus | 97f9115df1920c811531b053fc8b9fc9b1ad2ed2 | [
"MIT"
] | null | null | null | include/common/io_buffer.hpp | anand-gs/cplusplus | 97f9115df1920c811531b053fc8b9fc9b1ad2ed2 | [
"MIT"
] | null | null | null | include/common/io_buffer.hpp | anand-gs/cplusplus | 97f9115df1920c811531b053fc8b9fc9b1ad2ed2 | [
"MIT"
] | null | null | null | /*
LICENSE: BEGIN
===============================================================================
@author Shan Anand
@email anand.gs@gmail.com
@source https://github.com/shan-anand
@file io_buffer.hpp
@brief Buffer manipulation for I/O. Converts to and from network byte order.
==========================================... | 43.55 | 121 | 0.718714 | anand-gs |
2a326cb76ece92b9216403db763eaf203b91f0ec | 726 | cpp | C++ | 04/hw04f2.cpp | itiszac/CS1B | 6d523fe93b047d0c8872fda68ae079e4ffaf1c2f | [
"CC0-1.0"
] | null | null | null | 04/hw04f2.cpp | itiszac/CS1B | 6d523fe93b047d0c8872fda68ae079e4ffaf1c2f | [
"CC0-1.0"
] | null | null | null | 04/hw04f2.cpp | itiszac/CS1B | 6d523fe93b047d0c8872fda68ae079e4ffaf1c2f | [
"CC0-1.0"
] | null | null | null | #include "hw04f.h"
double getExp(double expItem[], char expDesc[][LEN], int esiz)
{
/*
* Gets the inputs related to users expenses
*
* Args:
* expItem[] (double): An array holding the expense amount
* expDesc[][] (char): A 2D array holding the expense description
* esiz (int): The total number e... | 21.352941 | 68 | 0.593664 | itiszac |
2a3504851872f7f6f6b4ec082012f8033fa3247b | 309 | cpp | C++ | printCode/lib/test.cpp | vivekvpandya/llvm-experiments | e814550d354ec76d037bf4cd0a89380e880a35cf | [
"MIT"
] | null | null | null | printCode/lib/test.cpp | vivekvpandya/llvm-experiments | e814550d354ec76d037bf4cd0a89380e880a35cf | [
"MIT"
] | null | null | null | printCode/lib/test.cpp | vivekvpandya/llvm-experiments | e814550d354ec76d037bf4cd0a89380e880a35cf | [
"MIT"
] | null | null | null | #include <iostream>
#include "instrMap.h"
int main(){
InstrMap *map = new InstrMap();
map->addInstr("V",1);
if(map->isAlreadyInserted("V"))
std::cout << "Finds!";
else
std::cout << "Not Finds";
if(map->isAlreadyInserted("D"))
std::cout << "Finds!";
else
std::cout << "Not Finds";
return 0;
} | 17.166667 | 32 | 0.608414 | vivekvpandya |
2a39735b06f2a6ea96d41d07d5477314ecdd45c4 | 6,052 | cpp | C++ | remote-client/flash_kernel.cpp | 0E800/android-keyboard-gadget | 43a1bdffc4054fe050bdc4c0a1f0244b4001ecdc | [
"Apache-2.0"
] | 1,029 | 2015-01-04T04:05:35.000Z | 2022-03-29T14:10:21.000Z | remote-client/flash_kernel.cpp | yauchungpo/android-keyboard-sss77147 | 3a4e88cf9a6b42b15b30dd79cc70a56284a08a64 | [
"Apache-2.0"
] | 167 | 2015-01-08T09:54:54.000Z | 2022-03-20T21:02:49.000Z | remote-client/flash_kernel.cpp | yauchungpo/android-keyboard-sss77147 | 3a4e88cf9a6b42b15b30dd79cc70a56284a08a64 | [
"Apache-2.0"
] | 303 | 2015-01-09T12:32:41.000Z | 2022-03-29T15:15:42.000Z | /*
* Copyright (C) 2015 Sergii Pylypenko
*
* 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 ... | 39.045161 | 262 | 0.716623 | 0E800 |
2a3af43fbb0df136b6ea458105c8855a48a4e030 | 8,009 | cpp | C++ | src/Backends/Vulkan/src/push_constants_layout.cpp | jayrulez/LiteFX | 482480fee96dd80c73356cd6898ea0e0544ac09d | [
"MIT"
] | 8 | 2021-06-23T09:04:10.000Z | 2022-02-06T19:01:21.000Z | src/Backends/Vulkan/src/push_constants_layout.cpp | jayrulez/LiteFX | 482480fee96dd80c73356cd6898ea0e0544ac09d | [
"MIT"
] | 29 | 2021-06-23T13:59:54.000Z | 2021-08-03T14:12:59.000Z | src/Backends/Vulkan/src/push_constants_layout.cpp | jayrulez/LiteFX | 482480fee96dd80c73356cd6898ea0e0544ac09d | [
"MIT"
] | 1 | 2021-10-30T18:44:02.000Z | 2021-10-30T18:44:02.000Z | #include <litefx/backends/vulkan.hpp>
using namespace LiteFX::Rendering::Backends;
// ------------------------------------------------------------------------------------------------
// Implementation.
// ------------------------------------------------------------------------------------------------
class VulkanPus... | 46.563953 | 234 | 0.667499 | jayrulez |
2a3f77e8b139dcfde273812a79ccc8eb36367aab | 2,436 | cpp | C++ | lib/MMXlib/CA.cpp | GroupCommuTeam/GroupCommu | 59b232efa2932f23f2da9152e76dbd1b78aa2225 | [
"MIT"
] | 7 | 2019-07-24T15:21:48.000Z | 2021-09-17T17:23:37.000Z | lib/MMXlib/CA.cpp | GroupCommuTeam/GroupCommu | 59b232efa2932f23f2da9152e76dbd1b78aa2225 | [
"MIT"
] | 3 | 2019-03-16T08:58:10.000Z | 2021-06-01T10:22:35.000Z | lib/MMXlib/CA.cpp | GroupCommuTeam/GroupCommu | 59b232efa2932f23f2da9152e76dbd1b78aa2225 | [
"MIT"
] | 3 | 2018-05-21T08:07:56.000Z | 2020-03-18T02:45:17.000Z | #include "CA.h"
#include "Base64.h"
#include <fstream>
CA::CA() {
cout << "正在初始化CA..." << endl;
rsa.generateKeyPair();
el_gamal.generateKeyPair();
}
// 证书格式为 id n b ca_sig_method s(数字都是数字字符串形式)
string CA::requare(const string &id, RSA::PublicKey *pk, int ca_sig_method) {
string pk_string = numberToS... | 31.230769 | 112 | 0.61289 | GroupCommuTeam |
2a4dd7c0eee110929c0713169aededabf1fdac7f | 2,059 | cpp | C++ | src/Plugins/hardlight/zone_logic/MotorStateChanger.cpp | cwaldren/HL-engine | 0a303759eaed6331e4e0022f59d71fd2cc5c4379 | [
"MIT"
] | 8 | 2019-01-18T04:39:08.000Z | 2020-05-16T01:11:54.000Z | src/Plugins/hardlight/zone_logic/MotorStateChanger.cpp | cwaldren/HL-engine | 0a303759eaed6331e4e0022f59d71fd2cc5c4379 | [
"MIT"
] | null | null | null | src/Plugins/hardlight/zone_logic/MotorStateChanger.cpp | cwaldren/HL-engine | 0a303759eaed6331e4e0022f59d71fd2cc5c4379 | [
"MIT"
] | 4 | 2019-01-18T21:20:32.000Z | 2020-06-29T14:34:06.000Z | #include "stdafx.h"
#include "MotorStateChanger.h"
#include "Locator.h"
#include "InstructionSet.h"
MotorStateChanger::MotorStateChanger(Location areaId) :
currentState(MotorFirmwareState::Idle),
previousContinuous(),
area(areaId),
m_lastSample(std::chrono::steady_clock::now())
{
}
MotorStateChanger::MotorFirmware... | 26.397436 | 96 | 0.763963 | cwaldren |
2a4e7831f010cc0d091307674dceabe63fdb1919 | 5,438 | hpp | C++ | type_name_pp.hpp | willwray/type_name_pp | ae112f7487b7f6c0bbc3a61e8d69c0f80c792876 | [
"BSL-1.0"
] | 2 | 2019-07-09T01:15:24.000Z | 2021-05-22T07:16:20.000Z | type_name_pp.hpp | willwray/type_name_pp | ae112f7487b7f6c0bbc3a61e8d69c0f80c792876 | [
"BSL-1.0"
] | null | null | null | type_name_pp.hpp | willwray/type_name_pp | ae112f7487b7f6c0bbc3a61e8d69c0f80c792876 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2019 Will Wray https://keybase.io/willwray
//
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
//
// Repo: https://github.com/willwray/type_name_pp
#ifndef LTL_TYPE_NAME_HPP
#define LTL_TYPE_NAME_HPP
#include "ntbs.hpp"
/*
"type_name_p... | 28.322917 | 72 | 0.635712 | willwray |
2a54981a1dba8310dcb68bfec458c83c85b339d4 | 2,741 | cc | C++ | runtime/onert/core/src/util/shapeinf/Permute.cc | kishcs/ONE | 5fd05b8836e004c2e08fecf3d2d6d7cf2c4e1acb | [
"Apache-2.0"
] | 1 | 2020-05-22T13:51:03.000Z | 2020-05-22T13:51:03.000Z | runtime/onert/core/src/util/shapeinf/Permute.cc | kvochko/ONE | 177aae1227344776d6fe0d90512c50978ce350ee | [
"Apache-2.0"
] | null | null | null | runtime/onert/core/src/util/shapeinf/Permute.cc | kvochko/ONE | 177aae1227344776d6fe0d90512c50978ce350ee | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 32.630952 | 99 | 0.706312 | kishcs |
2a5946bea459f6b411815f6c36c25ca42b0388df | 59,088 | cpp | C++ | src/plugPikiNishimura/Boss.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | 27 | 2021-09-28T00:33:11.000Z | 2021-11-18T19:38:40.000Z | src/plugPikiNishimura/Boss.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | src/plugPikiNishimura/Boss.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | #include "types.h"
/*
* --INFO--
* Address: ........
* Size: 00009C
*/
void _Error(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: ........
* Size: 0000F0
*/
void _Print(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: 8014D8CC
* Size: 0005AC
*/
BossProp::BossProp()
{
/*
.loc_0... | 20.097959 | 48 | 0.456861 | doldecomp |
2a595a8242061e073c52f90df628e27d7becdbef | 912 | cpp | C++ | codechef/ISCC2018/t26.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codechef/ISCC2018/t26.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codechef/ISCC2018/t26.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
int main()
{
int n;
cin >> n;
int start[n];
int end[n];
memset(start,0,sizeof(start));
memset(end,0,sizeof(end));
int m;
cin >> m;
while(m--)
{
int l, r;
cin >> l >> r;
l--;
r--;
start[l]++;
end[r]++;
}
int arr[n];
i... | 13.818182 | 32 | 0.447368 | udayan14 |
3980f423840cc99e44b6f84d7f8d9d835e34b9d7 | 172 | hpp | C++ | linux/greeting.hpp | njlr/buck-platform-deps-example | 1a6288a9f3b02287df8220e6146d8c854004ab9a | [
"MIT"
] | null | null | null | linux/greeting.hpp | njlr/buck-platform-deps-example | 1a6288a9f3b02287df8220e6146d8c854004ab9a | [
"MIT"
] | null | null | null | linux/greeting.hpp | njlr/buck-platform-deps-example | 1a6288a9f3b02287df8220e6146d8c854004ab9a | [
"MIT"
] | null | null | null | #ifndef LINUX_GREETING_HPP
#define LINUX_GREETING_HPP
#include <string>
namespace greetings {
std::string greeting() {
return "Hello from Linux. ";
}
}
#endif
| 11.466667 | 32 | 0.703488 | njlr |
3982a167a75c560003ca91bb9c5974f9a1891977 | 608 | cpp | C++ | src/ScopedFileDescriptor.cpp | wheybags/wcp | 57c5e64fb65dd8c282309b7cd9d26484fc9b7e56 | [
"MIT"
] | 175 | 2021-03-07T13:43:17.000Z | 2022-01-22T23:57:05.000Z | src/ScopedFileDescriptor.cpp | wheybags/wcp | 57c5e64fb65dd8c282309b7cd9d26484fc9b7e56 | [
"MIT"
] | 13 | 2021-03-07T22:21:33.000Z | 2021-12-10T21:41:28.000Z | src/ScopedFileDescriptor.cpp | wheybags/wcp | 57c5e64fb65dd8c282309b7cd9d26484fc9b7e56 | [
"MIT"
] | 7 | 2021-03-08T13:24:44.000Z | 2021-07-06T00:45:11.000Z | #include <unistd.h>
#include "ScopedFileDescriptor.hpp"
#include "Assert.hpp"
ScopedFileDescriptor::~ScopedFileDescriptor()
{
[[maybe_unused]] int ret = close(this->fd);
debug_assert(ret == 0);
}
Result ScopedFileDescriptor::open(const std::string& path, int oflag, mode_t mode)
{
OpenResult result = myOpe... | 23.384615 | 82 | 0.677632 | wheybags |
3986aeb307671dd5cfca69676b6e571724807aae | 26,832 | cpp | C++ | src/utilities/ConeRewriter.cpp | moritzwinger/ABC | 2d1f507dc7188b13767cce8050b8aa9daa7c1625 | [
"MIT"
] | null | null | null | src/utilities/ConeRewriter.cpp | moritzwinger/ABC | 2d1f507dc7188b13767cce8050b8aa9daa7c1625 | [
"MIT"
] | null | null | null | src/utilities/ConeRewriter.cpp | moritzwinger/ABC | 2d1f507dc7188b13767cce8050b8aa9daa7c1625 | [
"MIT"
] | null | null | null | #include <set>
#include <queue>
#include <vector>
#include <random>
#include <utility>
#include "ast_opt/utilities/ConeRewriter.h"
#include "ast_opt/ast/OperatorExpression.h"
#include "ast_opt/ast/Variable.h"
#include "ast_opt/visitor/GetAllNodesVisitor.h"
std::unique_ptr<AbstractNode> ConeRewriter::rewriteAst(std::u... | 44.497512 | 137 | 0.639833 | moritzwinger |
398a6de4396597f8663425b8359223c839424445 | 5,442 | cpp | C++ | src/CExceptionSystem.cpp | MenaceSan/GrayCore | 244e394adaefa17399232896fbd04b7aaeebac21 | [
"MIT"
] | 1 | 2020-12-18T04:55:27.000Z | 2020-12-18T04:55:27.000Z | src/CExceptionSystem.cpp | MenaceSan/GrayCore | 244e394adaefa17399232896fbd04b7aaeebac21 | [
"MIT"
] | null | null | null | src/CExceptionSystem.cpp | MenaceSan/GrayCore | 244e394adaefa17399232896fbd04b7aaeebac21 | [
"MIT"
] | null | null | null | //
//! @file cExceptionSystem.cpp
//! @copyright 1992 - 2020 Dennis Robinson (http://www.menasoft.com)
//
#include "pch.h"
#include "cExceptionSystem.h"
#include "cLogMgr.h"
#include "cAppState.h"
#if defined(_CPPUNWIND)
#if defined(_MSC_VER)
#include <crtdbg.h>
#include <eh.h>
#else
#include <signal.h>
#endif // _W... | 35.802632 | 175 | 0.736678 | MenaceSan |
398dcd0baea346a83fc0b0198a4db431ced544b8 | 364 | hpp | C++ | src/agl/glsl/function/matrix/addition_operator.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | src/agl/glsl/function/matrix/addition_operator.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | src/agl/glsl/function/matrix/addition_operator.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | #pragma once
#include "agl/glsl/mat/mat.hpp"
namespace agl {
template<typename T, std::size_t C, std::size_t R> constexpr
auto operator+(const Mat<T, C, R>& lm , const Mat<T, C, R>& rm) {
auto m = Mat<T, C, R>();
for(std::size_t c = 0; c < C; ++c)
for(std::size_t r = 0; r < R; ++r) {
m[c][r] = lm... | 20.222222 | 65 | 0.527473 | the-last-willy |
398eb6e9e8c2698a28baf45db8ba7d2f92eb6d54 | 2,173 | cpp | C++ | source/character/IK.cpp | AdilSerker/core2.0 | 3cef0a36a268da6dff7b50ba9a894d539e6fadce | [
"MIT"
] | null | null | null | source/character/IK.cpp | AdilSerker/core2.0 | 3cef0a36a268da6dff7b50ba9a894d539e6fadce | [
"MIT"
] | null | null | null | source/character/IK.cpp | AdilSerker/core2.0 | 3cef0a36a268da6dff7b50ba9a894d539e6fadce | [
"MIT"
] | null | null | null | #include "IK.h"
IK::IK()
: fade(0.075), threshold(0.8), smoothness(0.5), heel_height(5.0), toe_height(4.0)
{
memset(lock, 4, sizeof(float));
memset(position, 4, sizeof(glm::vec3));
memset(height, 4, sizeof(float));
}
void IK::two_joint(
glm::vec3 a, glm::vec3 b,
glm::vec3 c, glm::vec3 t, float eps,
... | 32.432836 | 105 | 0.563737 | AdilSerker |
3990d81de05a5a26be9c879b06aa8fe1cf3df24c | 1,543 | cpp | C++ | src/opengl/opengl_uniform_buffer.cpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/opengl/opengl_uniform_buffer.cpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/opengl/opengl_uniform_buffer.cpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | #include "opengl_uniform_buffer.hpp"
#include "instrumentor.hpp"
#include "opengl/opengl_check.hpp"
namespace cl::opengl {
OpenGLUniformBuffer::OpenGLUniformBuffer(GLuint program_id, size_t binding, size_t size, const std::string& uniform_block_name) : size_(size) {
CALCIUM_PROFILE_FUNCTION();
// Index of block... | 29.673077 | 143 | 0.736228 | zfccxt |
3993e814c2d24d4ec11d42c92d2e2bead1a2c8ed | 7,513 | cpp | C++ | libnd4j/include/ops/declarable/helpers/cpu/lstm.cpp | 1m2c3t4/deeplearning4j | 15991607d059282fff560d814fe05fb2df983c32 | [
"Apache-2.0"
] | 1 | 2018-12-14T02:56:28.000Z | 2018-12-14T02:56:28.000Z | libnd4j/include/ops/declarable/helpers/cpu/lstm.cpp | heronggen/deeplearning4j | 4670eee4f25cef84afca2ba2e2ebf46577968308 | [
"Apache-2.0"
] | null | null | null | libnd4j/include/ops/declarable/helpers/cpu/lstm.cpp | heronggen/deeplearning4j | 4670eee4f25cef84afca2ba2e2ebf46577968308 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | 43.935673 | 170 | 0.57913 | 1m2c3t4 |
399709b41e08c2efcb268f7814c72e2b60fd45b0 | 335 | cpp | C++ | src/init.cpp | mmoskal/codal-itsybitsy-m4 | b2ac8a7fe11c76ec083b9abbafa8f01db07a7735 | [
"MIT"
] | null | null | null | src/init.cpp | mmoskal/codal-itsybitsy-m4 | b2ac8a7fe11c76ec083b9abbafa8f01db07a7735 | [
"MIT"
] | null | null | null | src/init.cpp | mmoskal/codal-itsybitsy-m4 | b2ac8a7fe11c76ec083b9abbafa8f01db07a7735 | [
"MIT"
] | null | null | null | #include "sam.h"
#include "codal_target_hal.h"
#include "CodalDmesg.h"
extern "C" {
#include "samd/cache.h"
#include "samd/clocks.h"
}
void target_init();
extern "C" void cpu_init()
{
//SystemCoreClockUpdate();
clock_init();
samd_peripherals_enable_cache();
target_init();
... | 13.4 | 37 | 0.608955 | mmoskal |
399726dbaadb2d42d7117a78c9b1f421fcea2d60 | 7,385 | hpp | C++ | include/toolboxcpp/log/Log.hpp | target-san/log_facade | b0d3c78bf52eef464713657907d405ade2a2c8bc | [
"MIT"
] | 1 | 2017-12-08T10:11:56.000Z | 2017-12-08T10:11:56.000Z | include/toolboxcpp/log/Log.hpp | target-san/toolboxcpp | b0d3c78bf52eef464713657907d405ade2a2c8bc | [
"MIT"
] | null | null | null | include/toolboxcpp/log/Log.hpp | target-san/toolboxcpp | b0d3c78bf52eef464713657907d405ade2a2c8bc | [
"MIT"
] | null | null | null | #pragma once
#include <ostream>
#include <toolboxcpp/util/FuncRef.hpp>
#include <toolboxcpp/util/SourceLocation.hpp>
/*
Logging macros - use these to write messages to log
*/
// Hard, unrecoverable error
#define $log_error(...) $log_error_at($LogCurrentChannel, $LogCurrentLocation, ## __VA_ARGS__)
// An error wh... | 43.698225 | 168 | 0.687745 | target-san |
3997f69a927751507293bd3b8d7f25711a8157ed | 3,305 | cpp | C++ | src/ogre3d_procedural/src/ProceduralBoxGenerator.cpp | caigen/learn-game-ai | 6a423e3d6d11c50c9c8312e72347899b7a4d25f1 | [
"Zlib"
] | null | null | null | src/ogre3d_procedural/src/ProceduralBoxGenerator.cpp | caigen/learn-game-ai | 6a423e3d6d11c50c9c8312e72347899b7a4d25f1 | [
"Zlib"
] | null | null | null | src/ogre3d_procedural/src/ProceduralBoxGenerator.cpp | caigen/learn-game-ai | 6a423e3d6d11c50c9c8312e72347899b7a4d25f1 | [
"Zlib"
] | null | null | null | /*
-----------------------------------------------------------------------------
This source file is part of ogre-procedural
For the latest info, see http://code.google.com/p/ogre-procedural/
Copyright (c) 2010 Michael Broutin
Permission is hereby granted, free of charge, to any person obtaining a copy
of t... | 44.066667 | 88 | 0.730106 | caigen |
39a9f9f8e8710304648ed1f5022b9cfb273c7d03 | 3,431 | cpp | C++ | Keypad.X/keypad.cpp | w3woody/pic32mx | db6c2248bd92c10fb2a5c36b259a0837da5d76de | [
"BSD-2-Clause"
] | null | null | null | Keypad.X/keypad.cpp | w3woody/pic32mx | db6c2248bd92c10fb2a5c36b259a0837da5d76de | [
"BSD-2-Clause"
] | null | null | null | Keypad.X/keypad.cpp | w3woody/pic32mx | db6c2248bd92c10fb2a5c36b259a0837da5d76de | [
"BSD-2-Clause"
] | null | null | null | /* keypad.cpp
*
* Keypad scanner. Note the wiring is a little weird. We have 8 total
* lines that run to the keypad:
*
* Out
* RA1
* RB2
* RB3
* RA2
*
* In
* RA3
* RB4
* RA4
* RB5
*
* We configure the input ... | 21.71519 | 78 | 0.497814 | w3woody |
39afae6f039c566d353d384e6ed0cd63fd0f0c7c | 1,322 | cpp | C++ | ixperial/ixperial-injector/process-helper.cpp | aw-3/ixperial | 8406ac3265e572cf6a4fb4b53ae36936d550f4fe | [
"MIT"
] | 1 | 2019-07-14T04:01:42.000Z | 2019-07-14T04:01:42.000Z | ixperial/ixperial-injector/process-helper.cpp | aw-3/ixperial | 8406ac3265e572cf6a4fb4b53ae36936d550f4fe | [
"MIT"
] | null | null | null | ixperial/ixperial-injector/process-helper.cpp | aw-3/ixperial | 8406ac3265e572cf6a4fb4b53ae36936d550f4fe | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include <TlHelp32.h>
int ProcessHelper::GetPIDFromName(std::string processName)
{
int ret = 0;
HANDLE snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, NULL);
PROCESSENTRY32 pe = { 0 };
pe.dwSize = sizeof(pe);
if (Process32First(snapshot, &pe))
{
do
{
if (pe.szExeFile == proces... | 24.943396 | 121 | 0.726172 | aw-3 |
39b2e4f035389c75ef5a21117ee17683436eef59 | 19,765 | cpp | C++ | src/Chapter_10/GLinterop/GLinterop.cpp | wolfviking0/webcl-book-samples | 6326006ba4cd1d14dd0071566a20b43a82c4cbbf | [
"BSD-3-Clause"
] | 2 | 2015-09-03T08:16:01.000Z | 2016-12-03T00:05:58.000Z | src/Chapter_10/GLinterop/GLinterop.cpp | wolfviking0/webcl-book-samples | 6326006ba4cd1d14dd0071566a20b43a82c4cbbf | [
"BSD-3-Clause"
] | null | null | null | src/Chapter_10/GLinterop/GLinterop.cpp | wolfviking0/webcl-book-samples | 6326006ba4cd1d14dd0071566a20b43a82c4cbbf | [
"BSD-3-Clause"
] | 1 | 2018-06-27T10:53:18.000Z | 2018-06-27T10:53:18.000Z | //
// Book: OpenCL(R) Programming Guide
// Authors: Aaftab Munshi, Benedict Gaster, Timothy Mattson, James Fung, Dan Ginsburg
// ISBN-10: 0-321-74964-2
// ISBN-13: 978-0-321-74964-2
// Publisher: Addison-Wesley Professional
// URLs: http://safari.informit.com/9780132488006/
// http://w... | 29.108984 | 122 | 0.635062 | wolfviking0 |
39b4c214eb29300c31f261a57c7144a097b57519 | 1,175 | hpp | C++ | top-k_OAFP_pos/src/Const.hpp | ShowHey57/top-k_AOFP_pos | afbd69ca41a73dc5f0fcd86cad643a01df16e0a9 | [
"MIT"
] | 11 | 2017-06-30T01:58:09.000Z | 2018-05-28T06:57:46.000Z | top-k_OAFP_pos/src/Const.hpp | ShowHey57/top-k_AOFP_pos | afbd69ca41a73dc5f0fcd86cad643a01df16e0a9 | [
"MIT"
] | null | null | null | top-k_OAFP_pos/src/Const.hpp | ShowHey57/top-k_AOFP_pos | afbd69ca41a73dc5f0fcd86cad643a01df16e0a9 | [
"MIT"
] | 2 | 2018-04-18T14:34:44.000Z | 2020-12-21T07:53:16.000Z | /*
* Copyright (c) 2012 Daisuke Okanohara
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above Copyright
* notice, this list of condition... | 31.756757 | 83 | 0.755745 | ShowHey57 |
39bd9b9012c70459e1fb0b6bd55fe43baf6fcbda | 1,568 | hpp | C++ | inc/Screen.hpp | Xwilarg/KotodamaAiri | 7bd375919ea24b79fe9c42d8a99bc638c593278e | [
"Apache-2.0"
] | 2 | 2019-03-21T16:08:40.000Z | 2021-05-19T02:14:46.000Z | inc/Screen.hpp | Xwilarg/Airi | 7bd375919ea24b79fe9c42d8a99bc638c593278e | [
"Apache-2.0"
] | null | null | null | inc/Screen.hpp | Xwilarg/Airi | 7bd375919ea24b79fe9c42d8a99bc638c593278e | [
"Apache-2.0"
] | 1 | 2019-03-21T16:08:41.000Z | 2019-03-21T16:08:41.000Z | #pragma once
# include <vector>
# include "PixelInfo.hpp"
# include "PixelBlock.hpp"
namespace Airi
{
class Screen
{
public:
Screen() noexcept;
~Screen() noexcept;
void CheckPixels() noexcept;
private:
enum class Direction
{
LEFT,
RIGHT,
UNDEFINED
};
void RightClick() const noexcept;
[[n... | 35.636364 | 176 | 0.731505 | Xwilarg |
39c22d6835d81c08c70a657dd9e18dcc810413ed | 2,229 | cpp | C++ | BinaryConverter/BinaryConverter/BinaryConverter.cpp | forsbergsskola-se/marczaku-gp20-2021-0524-nim-game-Thomas-A-Forsbergs | 9fe7cff7245dacb15d798517c5684a5cef9939f6 | [
"MIT"
] | null | null | null | BinaryConverter/BinaryConverter/BinaryConverter.cpp | forsbergsskola-se/marczaku-gp20-2021-0524-nim-game-Thomas-A-Forsbergs | 9fe7cff7245dacb15d798517c5684a5cef9939f6 | [
"MIT"
] | null | null | null | BinaryConverter/BinaryConverter/BinaryConverter.cpp | forsbergsskola-se/marczaku-gp20-2021-0524-nim-game-Thomas-A-Forsbergs | 9fe7cff7245dacb15d798517c5684a5cef9939f6 | [
"MIT"
] | null | null | null | /*
* Copied from Joel Ring.
*/
#include <iostream>
#include <cstdlib>
#include <string>
#include "BinaryConverter.h"
using namespace std;
/*
Write a Program that reads (cin) decimal Integer numbers (positive only) And Outputs the Binary representation of that number: 0b110
Firstly, implement the function the way we... | 24.494505 | 151 | 0.708838 | forsbergsskola-se |
39c343f9ae18b27bbdd8c9ebaa7ee5280da30f05 | 12,647 | cpp | C++ | src/core/EngineCmds.cpp | DeviceNut/PixelNutSys | 8814203ea9794a20575188c850a5f954528e6d93 | [
"MIT"
] | null | null | null | src/core/EngineCmds.cpp | DeviceNut/PixelNutSys | 8814203ea9794a20575188c850a5f954528e6d93 | [
"MIT"
] | null | null | null | src/core/EngineCmds.cpp | DeviceNut/PixelNutSys | 8814203ea9794a20575188c850a5f954528e6d93 | [
"MIT"
] | null | null | null | // PixelNut Engine Class Implementation of Command functions
/*
Copyright (c) 2021, Greg de Valois
Software License Agreement (MIT License)
See license.txt for the terms of this license.
*/
#define DEBUG_OUTPUT 0 // 1 enables debugging this file
#include "core.h"
// returns true if value present and > 0 ... | 36.979532 | 98 | 0.571598 | DeviceNut |
39c44dbc53f1859250aeeda7b71e6d2b8865814a | 2,535 | hpp | C++ | include/kiwi/types.hpp | alurin/kiwi | d428b6e70fb79f80caa096916dd570f4fc9725cf | [
"MIT"
] | null | null | null | include/kiwi/types.hpp | alurin/kiwi | d428b6e70fb79f80caa096916dd570f4fc9725cf | [
"MIT"
] | null | null | null | include/kiwi/types.hpp | alurin/kiwi | d428b6e70fb79f80caa096916dd570f4fc9725cf | [
"MIT"
] | null | null | null | /*
*******************************************************************************
* Copyright (C) 2012 Vasiliy Sheredeko
* MIT license. All Rights Reserved.
*******************************************************************************
*/
#ifndef KIWI_TYPES_HPP_INCLUDED
#define KIWI_TYPES_HPP_INCLUDED
#incl... | 39.609375 | 80 | 0.607495 | alurin |
39c865f4685c092763b16ee8571801ca59c1de6e | 9,622 | cxx | C++ | cint/src/input.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 10 | 2018-03-26T07:41:44.000Z | 2021-11-06T08:33:24.000Z | cint/src/input.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | null | null | null | cint/src/input.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 1 | 2020-11-17T03:17:00.000Z | 2020-11-17T03:17:00.000Z | /* /% C %/ */
/***********************************************************************
* cint (C/C++ interpreter)
************************************************************************
* Source file input.c
************************************************************************
* Description:
* Interactive in... | 25.522546 | 86 | 0.536895 | paulwratt |
39c9b69d79ef017eb08368d29c78834615431c44 | 3,328 | cpp | C++ | simreconreconadvanced.cpp | abcucberkeley/LLSM_Processing_GUI | d90975e7b94d4414b821293d4df9e082efab2e7e | [
"BSD-3-Clause"
] | 1 | 2022-02-04T22:45:48.000Z | 2022-02-04T22:45:48.000Z | simreconreconadvanced.cpp | abcucberkeley/LLSM_Processing_GUI | d90975e7b94d4414b821293d4df9e082efab2e7e | [
"BSD-3-Clause"
] | null | null | null | simreconreconadvanced.cpp | abcucberkeley/LLSM_Processing_GUI | d90975e7b94d4414b821293d4df9e082efab2e7e | [
"BSD-3-Clause"
] | null | null | null | #include "simreconreconadvanced.h"
#include "ui_simreconreconadvanced.h"
simReconReconAdvanced::simReconReconAdvanced(simReconVals& simreconVals, QWidget *parent) :
QDialog(parent),
ui(new Ui::simReconReconAdvanced)
{
ui->setupUi(this);
srVals = &simreconVals;
ui->isLatticeCheckBox->setChecked(simr... | 46.873239 | 91 | 0.744591 | abcucberkeley |
39cecde49b92c698ed2a83d6fca04b69b45ea842 | 1,165 | cpp | C++ | src/enemy_controller.cpp | ksomervi/invader | 1bc211340e979a714ca70ce294de294056f3e6f0 | [
"MIT"
] | null | null | null | src/enemy_controller.cpp | ksomervi/invader | 1bc211340e979a714ca70ce294de294056f3e6f0 | [
"MIT"
] | 23 | 2018-08-09T01:47:49.000Z | 2020-04-29T01:03:50.000Z | src/enemy_controller.cpp | ksomervi/invader | 1bc211340e979a714ca70ce294de294056f3e6f0 | [
"MIT"
] | null | null | null | /*! \file enemy_controller.cpp
* \brief
* \author Kevin Somervill < kevin @ somervill dot org >
* \date 2018-09-30
*/
#include "enemy_controller.h"
enemy_controller::enemy_controller() : _mv_count(0) {
_rg = new random_generator();
}
enemy_controller::~enemy_controller() {
delete _rg;
}
void enemy_controlle... | 18.790323 | 56 | 0.592275 | ksomervi |
39d05e0025e2cc8416a6305b372cbf2da4f2e03e | 3,404 | hxx | C++ | ext/couchbase/operations/document_mutate_in.hxx | Sightplan/couchbase-ruby-client | 6b7189a13eb69b97212203993b1612860aa42f85 | [
"Apache-2.0"
] | null | null | null | ext/couchbase/operations/document_mutate_in.hxx | Sightplan/couchbase-ruby-client | 6b7189a13eb69b97212203993b1612860aa42f85 | [
"Apache-2.0"
] | null | null | null | ext/couchbase/operations/document_mutate_in.hxx | Sightplan/couchbase-ruby-client | 6b7189a13eb69b97212203993b1612860aa42f85 | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2020 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 35.092784 | 111 | 0.663043 | Sightplan |
39d1888f6edf6f52f2ea4857b31dd39856357d5e | 6,684 | cpp | C++ | code/tools/EncryptToBase64/main.cpp | refluxwhw/AuthorizedTool | 7262f8e0bc207c817d853779ab7ee58156ad9180 | [
"MIT"
] | null | null | null | code/tools/EncryptToBase64/main.cpp | refluxwhw/AuthorizedTool | 7262f8e0bc207c817d853779ab7ee58156ad9180 | [
"MIT"
] | 2 | 2018-11-19T09:15:39.000Z | 2018-11-19T09:19:14.000Z | code/tools/EncryptToBase64/main.cpp | refluxwhw/AuthorizedTool | 7262f8e0bc207c817d853779ab7ee58156ad9180 | [
"MIT"
] | 1 | 2019-02-26T09:24:38.000Z | 2019-02-26T09:24:38.000Z | #include <stdio.h>
#include <string.h>
#include <string>
#ifdef _WIN32
#include "WinGetopt.h"
#else
#include <getopt.h>
#endif
#include "EncryptKit.h"
#ifndef QT_NO_DEBUG
// debug mode
# define LOG(f, ...) do{\
printf(f, ##__VA_ARGS__);\
printf("\n");\
}while(0)
#else
// release mod... | 28.202532 | 87 | 0.530072 | refluxwhw |
39d7fb54c06d680f0804214fc934a1fb5c520f86 | 132 | cpp | C++ | AmyWare/src/AmyWare/Renderer/RendererAPI.cpp | CloseRange/AmyWare | 24f19cb9c983aae318c459d3dcf47ff752824d18 | [
"Apache-2.0"
] | null | null | null | AmyWare/src/AmyWare/Renderer/RendererAPI.cpp | CloseRange/AmyWare | 24f19cb9c983aae318c459d3dcf47ff752824d18 | [
"Apache-2.0"
] | null | null | null | AmyWare/src/AmyWare/Renderer/RendererAPI.cpp | CloseRange/AmyWare | 24f19cb9c983aae318c459d3dcf47ff752824d18 | [
"Apache-2.0"
] | null | null | null | #include "awpch.h"
#include "RendererAPI.h"
namespace AmyWare {
RendererAPI::API RendererAPI::active = RendererAPI::API::OpenGL;
} | 22 | 65 | 0.75 | CloseRange |
39e4a59ff562176e445e4366c53865efc79382c5 | 1,509 | cpp | C++ | src/xray/render/dx9/sources/constant_cache.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/render/dx9/sources/constant_cache.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/render/dx9/sources/constant_cache.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 25.02.2009
// Author : Mykhailo Parfeniuk
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "constant_cache.h"
namespace xray... | 26.017241 | 97 | 0.548045 | ixray-team |
39eae6de5288fdfeb549dde632af99d5a0268f8b | 319 | cpp | C++ | test/llvm_test_code/call_graphs/static_callsite_12.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 581 | 2018-06-10T10:37:55.000Z | 2022-03-30T14:56:53.000Z | test/llvm_test_code/call_graphs/static_callsite_12.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 172 | 2018-06-13T12:33:26.000Z | 2022-03-26T07:21:41.000Z | test/llvm_test_code/call_graphs/static_callsite_12.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 137 | 2018-06-10T10:31:14.000Z | 2022-03-06T11:53:56.000Z | // Handle function call on parent and child type's pointers
struct A {
public:
~A() = default;
void Vfunc() {}
};
struct B : public A {
public:
~B() = default;
void Vfunc() {}
};
int main() {
A *a1 = new A;
a1->Vfunc();
B *b = new B;
b->Vfunc();
A *a2 = b;
a2->Vfunc();
delete a1, b, a2;
}
| 11.392857 | 59 | 0.529781 | flix- |
39eb6e454d733e0f6fbd44edf04393c4e8b4df19 | 771 | hpp | C++ | src/thermocoupleReceiver.hpp | mreff555/TempCtrl | 6e7759c58e614d9ef9c7c552aada75082210aaa4 | [
"Apache-2.0"
] | 1 | 2021-02-28T15:34:36.000Z | 2021-02-28T15:34:36.000Z | src/thermocoupleReceiver.hpp | mreff555/TempCtrl | 6e7759c58e614d9ef9c7c552aada75082210aaa4 | [
"Apache-2.0"
] | 5 | 2021-02-25T22:22:05.000Z | 2021-06-12T23:56:35.000Z | src/thermocoupleReceiver.hpp | mreff555/TempCtrl | 6e7759c58e614d9ef9c7c552aada75082210aaa4 | [
"Apache-2.0"
] | null | null | null | #ifndef THERMOCOUPLE_RECEIVER_HPP
#define THERMOCOUPLE_RECEIVER_HPP
#include "common.hpp"
#include <vector>
class DataManager;
class ThermocoupleReceiver
{
public:
ThermocoupleReceiver(DataManager &_dataManager);
virtual ~ThermocoupleReceiver();
void startEventLoop(bool &terminate);
/**********************... | 21.416667 | 51 | 0.631647 | mreff555 |
39ecc06993766bf3951d10979128bedda41a416d | 1,144 | hh | C++ | viewer/colors/material.hh | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 1 | 2019-04-14T11:40:28.000Z | 2019-04-14T11:40:28.000Z | viewer/colors/material.hh | IJDykeman/experiments-1 | 22badf166b2ea441e953939463f751020b8c251b | [
"MIT"
] | 5 | 2018-04-18T13:54:29.000Z | 2019-08-22T20:04:17.000Z | viewer/colors/material.hh | IJDykeman/experiments-1 | 22badf166b2ea441e953939463f751020b8c251b | [
"MIT"
] | 1 | 2018-12-24T03:45:47.000Z | 2018-12-24T03:45:47.000Z | #pragma once
#include "eigen.hh"
namespace viewer {
namespace colors {
struct Material {
jcc::Vec3 ambient;
jcc::Vec3 diffuse;
jcc::Vec3 specular;
double shine;
};
inline Material get_plastic(const jcc::Vec4& color) {
const Eigen::Vector3d color3 = color.head<3>();
return Material{color3, jcc::Vec3(0.55... | 27.238095 | 90 | 0.70542 | jpanikulam |
39f4189a168c71d97d29b2e45e536aced086e528 | 1,456 | cpp | C++ | src/test_app/coMain.cpp | smogpill/core | 56ef53fda4582d7d4c1ade17e90e24d0a5128a8d | [
"MIT"
] | 1 | 2016-06-23T07:02:30.000Z | 2016-06-23T07:02:30.000Z | src/test_app/coMain.cpp | smogpill/core | 56ef53fda4582d7d4c1ade17e90e24d0a5128a8d | [
"MIT"
] | null | null | null | src/test_app/coMain.cpp | smogpill/core | 56ef53fda4582d7d4c1ade17e90e24d0a5128a8d | [
"MIT"
] | null | null | null | // Copyright(c) 2021 Jounayd Id Salah
// Distributed under the MIT License (See accompanying file LICENSE.md file or copy at http://opensource.org/licenses/MIT).
#include "test_app/pch.h"
#include "test/unit/coTestRegistry.h"
#include "app/coApp.h"
#include "app/window/coWindow.h"
#include "lang/result/coResult_f.h"
#i... | 21.411765 | 123 | 0.692995 | smogpill |
39f52f69dfa234dfb2a3b3e439aea3d8c6e7e372 | 7,081 | cpp | C++ | unittests/Utils/StableVectorTest.cpp | janniclas/phasar | 324302ae96795e6f0a065c14d4f7756b1addc2a4 | [
"MIT"
] | 1 | 2022-02-15T07:56:29.000Z | 2022-02-15T07:56:29.000Z | unittests/Utils/StableVectorTest.cpp | fabianbs96/phasar | 5b8acd046d8676f72ce0eb85ca20fdb0724de444 | [
"MIT"
] | null | null | null | unittests/Utils/StableVectorTest.cpp | fabianbs96/phasar | 5b8acd046d8676f72ce0eb85ca20fdb0724de444 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include <gtest/gtest-param-test.h>
#include <iterator>
#include <string>
#include "phasar/Utils/StableVector.h"
using namespace psr;
static StableVector<int> makeVecInt(int Size) {
StableVector<int> Vec;
for (int I = 0; I < Size; ++I) {
Vec.push_back(I);
}
return Vec;
}
static ... | 24.085034 | 74 | 0.626748 | janniclas |
26112919b8ebcd895f4b4f9f84f265d07d5443b3 | 1,379 | cpp | C++ | include/kp11/stack.t.cpp | kapows/kp11 | a68d5b2a2c747de017ee53503852f90b0f60b6b9 | [
"MIT"
] | null | null | null | include/kp11/stack.t.cpp | kapows/kp11 | a68d5b2a2c747de017ee53503852f90b0f60b6b9 | [
"MIT"
] | null | null | null | include/kp11/stack.t.cpp | kapows/kp11 | a68d5b2a2c747de017ee53503852f90b0f60b6b9 | [
"MIT"
] | null | null | null | #include "stack.h"
#include "traits.h" // is_marker_v
#include <catch.hpp>
using namespace kp11;
TEST_CASE("size", "[size]")
{
SECTION("1")
{
stack<10> m;
REQUIRE(m.size() == 10);
REQUIRE(m.max_size() == 10);
REQUIRE(m.count() == 0);
}
SECTION("2")
{
stack<101581> m;... | 19.152778 | 43 | 0.50979 | kapows |
2612a34164e2caba4477a9fd37bc9facd02d6c9a | 3,877 | cpp | C++ | fallen/Source/ribbon.cpp | jordandavidson/MuckyFoot-UrbanChaos | 00f7bda3f061bff9ecbb611d430f8f71bd557d14 | [
"MIT"
] | 188 | 2017-05-20T03:26:33.000Z | 2022-03-10T16:58:39.000Z | fallen/Source/ribbon.cpp | jordandavidson/MuckyFoot-UrbanChaos | 00f7bda3f061bff9ecbb611d430f8f71bd557d14 | [
"MIT"
] | 7 | 2017-05-28T14:28:13.000Z | 2022-01-09T01:47:38.000Z | fallen/Source/ribbon.cpp | inco1/MuckyFoot-UrbanChaos | 81aa5cfe18ef7fe2d1b1f9911bd33a47c22d5390 | [
"MIT"
] | 43 | 2017-05-20T07:31:32.000Z | 2022-03-09T18:39:35.000Z | //
// ribbon.cpp
// special effects: smoke, fire, wheelspray... all sorts
// matthew rosenfeld 10 nov 1998
//
#include "game.h"
#include "ribbon.h"
#ifndef PSX
#include "DrawXtra.h"
#endif
static Ribbon Ribbons[MAX_RIBBONS];
inline GameCoord Coord(SLONG x, SLONG y, SLONG z) { GameCoord bob = {x,y,z}; return bob; }... | 26.923611 | 131 | 0.551715 | jordandavidson |
2619a97e609fe2a7dc1e244dd4b48932a2344a18 | 1,290 | inl | C++ | src/Server/Scripting/LuaMathTypes.inl | Praetonus/Erewhon-Game | 0327efc5ea80e1084ffb78191818607e9678dcb3 | [
"MIT"
] | 1 | 2018-02-25T18:18:59.000Z | 2018-02-25T18:18:59.000Z | src/Server/Scripting/LuaMathTypes.inl | Praetonus/Erewhon-Game | 0327efc5ea80e1084ffb78191818607e9678dcb3 | [
"MIT"
] | null | null | null | src/Server/Scripting/LuaMathTypes.inl | Praetonus/Erewhon-Game | 0327efc5ea80e1084ffb78191818607e9678dcb3 | [
"MIT"
] | null | null | null | // Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Erewhon Server" project
// For conditions of distribution and use, see copyright notice in LICENSE
#include <Server/Scripting/LuaMathTypes.hpp>
#include <Nazara/Lua/LuaState.hpp>
namespace ewn
{
}
namespace Nz
{
inline int LuaImplReplyVal(const LuaS... | 23.035714 | 106 | 0.690698 | Praetonus |
261a2bd363122469a12502e7917a5b918327a514 | 6,235 | cc | C++ | MemEstimator.cc | jgphpc/jub1 | ab98a74077b2ea9774a3b170d325d0b57dc04d21 | [
"Unlicense"
] | null | null | null | MemEstimator.cc | jgphpc/jub1 | ab98a74077b2ea9774a3b170d325d0b57dc04d21 | [
"Unlicense"
] | null | null | null | MemEstimator.cc | jgphpc/jub1 | ab98a74077b2ea9774a3b170d325d0b57dc04d21 | [
"Unlicense"
] | null | null | null | #include <fstream>
#include <sstream>
#include <iostream>
#include <string>
#include <cstring>
#include <cstdlib>
#include "MemEstimator.h"
#include "MicroBench.h"
#include "util/fast_hash.h"
#include "util/epk_hashtab.h"
#include <malloc.h>
#ifdef __bgq__
#include <spi/include/kernel/memory.h>
#endif
#define ALLOCS... | 26.531915 | 106 | 0.642983 | jgphpc |
2620507becbdc893e8a568bdd7106749ca5e072c | 1,818 | cpp | C++ | MagicalEye.cpp | cycentum/autostereogram-canvas | 8ef9ab8c2fd13b6d0ff8e8726277f37d33804b0b | [
"MIT"
] | null | null | null | MagicalEye.cpp | cycentum/autostereogram-canvas | 8ef9ab8c2fd13b6d0ff8e8726277f37d33804b0b | [
"MIT"
] | null | null | null | MagicalEye.cpp | cycentum/autostereogram-canvas | 8ef9ab8c2fd13b6d0ff8e8726277f37d33804b0b | [
"MIT"
] | null | null | null | #include "MagicalEye.h"
void MainFrame_create( int ) ;
LRESULT CALLBACK MainFrameProc( HWND , UINT , WPARAM , LPARAM ) ;
LRESULT CALLBACK ShowPanelProc( HWND , UINT , WPARAM , LPARAM ) ;
LRESULT CALLBACK DrawPanelProc( HWND , UINT , WPARAM , LPARAM ) ;
static void makeWindowClass() ;
HINSTANCE hInst ;
... | 21.139535 | 97 | 0.626513 | cycentum |
2624c69fecdba08d6f0b9f96c341a1eff0c12d07 | 4,527 | hpp | C++ | tests/find_tests.hpp | 5cript/interval-tree | 27ffeb8e6e8268cb94bd6d5c4f085cf5b595789f | [
"CC0-1.0"
] | 36 | 2018-08-06T13:59:13.000Z | 2022-03-25T19:58:58.000Z | tests/find_tests.hpp | 5cript/interval-tree | 27ffeb8e6e8268cb94bd6d5c4f085cf5b595789f | [
"CC0-1.0"
] | 13 | 2017-04-03T12:17:27.000Z | 2022-02-27T12:17:33.000Z | tests/find_tests.hpp | 5cript/interval-tree | 27ffeb8e6e8268cb94bd6d5c4f085cf5b595789f | [
"CC0-1.0"
] | 5 | 2019-04-01T15:53:59.000Z | 2021-09-15T16:38:32.000Z | #pragma once
#include <ctime>
#include <random>
#include <cmath>
class FindTests
: public ::testing::Test
{
public:
using types = IntervalTypes <int>;
protected:
IntervalTypes <int>::tree_type tree;
std::default_random_engine gen;
std::uniform_int_distribution <int> distLarge{-50000,... | 26.946429 | 101 | 0.603048 | 5cript |
262538d2fd9b09ef514e86cf221724e968ec839d | 1,089 | cc | C++ | video/gva_video_rtp_yuv.cc | ross-abaco/vivoe-lite | 05478f6c2f8e30aa93d8ae79e749d5b8d20956b8 | [
"MIT"
] | null | null | null | video/gva_video_rtp_yuv.cc | ross-abaco/vivoe-lite | 05478f6c2f8e30aa93d8ae79e749d5b8d20956b8 | [
"MIT"
] | null | null | null | video/gva_video_rtp_yuv.cc | ross-abaco/vivoe-lite | 05478f6c2f8e30aa93d8ae79e749d5b8d20956b8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include "gva_video_rtp_yuv.h"
using namespace std;
gvaVideoRtpYuv::gvaVideoRtpYuv(char* ip, int port, int height, int width)
: gvaVideoSource(height, width)
{
strcpy(m_ip, ip);
m_port = port;
m_frameCounter = 0;
};
gvaVideoRtpYuv::gvaVideoRtpYuv(char* ip, int port)
: gv... | 23.673913 | 73 | 0.701561 | ross-abaco |
262761d083048868281401034f535f8a133c7431 | 3,404 | cpp | C++ | src/liftedinfer/common/src/propositionalresolution.cpp | PhDP/alchemy2 | fd6291ab23bc3fb3848d6c301ff63f82fe5377b9 | [
"MIT"
] | 21 | 2015-07-13T19:56:45.000Z | 2021-11-09T17:25:39.000Z | src/liftedinfer/common/src/propositionalresolution.cpp | PhDP/alchemy2 | fd6291ab23bc3fb3848d6c301ff63f82fe5377b9 | [
"MIT"
] | 1 | 2017-01-14T16:12:26.000Z | 2017-01-14T17:17:44.000Z | src/liftedinfer/common/src/propositionalresolution.cpp | PhDP/alchemy2 | fd6291ab23bc3fb3848d6c301ff63f82fe5377b9 | [
"MIT"
] | 9 | 2015-09-27T16:51:31.000Z | 2020-12-15T10:09:05.000Z | #include "propositionalresolution.h"
#include "cleanuputils.h"
void PropositionalResolution::doPropositionalSplit(vector<WClause*> CNF, Atom* atom,vector<vector<WClause*> >& resolvedCNFList)
{
vector<WClause*> posClauses;
vector<WClause*> negClauses;
LvrMLN::copyAllClauses(CNF,posClauses);
LvrMLN::copyAllClauses(... | 24.141844 | 136 | 0.641304 | PhDP |
1c7a2b4ac4623285420685d15f87f6c3b25e4745 | 1,275 | cpp | C++ | Codeforces/contest/717/d.cpp | miaowh/ICPC | c1f141ea005fb5d9582878e154c49f22b0f217ff | [
"MIT"
] | 1 | 2021-06-15T05:43:37.000Z | 2021-06-15T05:43:37.000Z | Codeforces/contest/717/d.cpp | MiaoWH/ICPC | c1f141ea005fb5d9582878e154c49f22b0f217ff | [
"MIT"
] | null | null | null | Codeforces/contest/717/d.cpp | MiaoWH/ICPC | c1f141ea005fb5d9582878e154c49f22b0f217ff | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
int a[maxn], nxt[maxn], pos[maxn];
int dp[20][maxn];
vector<int> getPrime(int x) {
vector<int> ret;
for (int i = 2; i * i <= x; i++) {
if (x % i == 0) {
ret.push_back(i);
while (x % i == 0) x /= i;
}... | 25 | 72 | 0.37098 | miaowh |
1c7b0f2bf4f4aebef0fde71162f273fb6d3113d5 | 1,817 | cpp | C++ | src/common/persistence/xml/XMLPersistence.cpp | MichaelBranz/MDE4CPP | 5b918850a37e9cee54f6c3b92f381b0458451724 | [
"MIT"
] | null | null | null | src/common/persistence/xml/XMLPersistence.cpp | MichaelBranz/MDE4CPP | 5b918850a37e9cee54f6c3b92f381b0458451724 | [
"MIT"
] | 1 | 2019-03-01T00:54:13.000Z | 2019-03-04T02:15:50.000Z | src/common/persistence/xml/XMLPersistence.cpp | vallesch/MDE4CPP | 7f8a01dd6642820913b2214d255bef2ea76be309 | [
"MIT"
] | null | null | null | /*
* XMLPersistence.cpp
*
* Created on: 25.01.2018
* Author: Alexander
*/
#include "persistence/xml/XMLPersistence.hpp"
#include "ecore/EObject.hpp"
#include "ecore/EPackage.hpp"
#include "persistence/base/Load.hpp"
#include "persistence/base/Save.hpp"
#include "persistence/xml/XMLSave.hpp"
#include "persi... | 26.333333 | 157 | 0.694001 | MichaelBranz |
1c8402c2ad41e2a3d4e3548c846a7391b5c5b3d0 | 13,231 | hpp | C++ | experimental/Pomdog.Experimental/Gameplay/GameObjectContext.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Gameplay/GameObjectContext.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Gameplay/GameObjectContext.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_GAMEOBJECTCONTEXT_DFD4E6A6_HPP
#define POMDOG_GAMEOBJECTCONTEXT_DFD4E6A6_HPP
#include "Component.hpp"
#include "GameObjectID.hpp"
#include "Pomdog/Utility/Assert.hpp"
#include <cstdint>
#include ... | 29.934389 | 121 | 0.696244 | bis83 |
1c88261eacc31861130f5db1eed1776c06876db7 | 1,796 | cpp | C++ | AP325/Q-6-14.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | 1 | 2019-09-07T15:56:05.000Z | 2019-09-07T15:56:05.000Z | AP325/Q-6-14.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | null | null | null | AP325/Q-6-14.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
constexpr const ll INF = 1L << 60;
constexpr const ll MOD = 1e9 + 9;
ll solve(const vector<int> &prices, const int times) {
vector<vector<int>> dp(
times + 1,
vector<int>(prices.size())); // dp[i][j]: best value of [0,j] when buying
... | 29.933333 | 80 | 0.438196 | Superdanby |
1c91370c78d923b42763ad26aa52e8c736b293f3 | 1,755 | cpp | C++ | src/c_fl_secret_input.cpp | micahwelf/FLTK-Ada | 83e0c58ea98e5ede2cbbb158b42eae44196c3ba7 | [
"Unlicense"
] | 1 | 2020-12-18T15:20:13.000Z | 2020-12-18T15:20:13.000Z | src/c_fl_secret_input.cpp | micahwelf/FLTK-Ada | 83e0c58ea98e5ede2cbbb158b42eae44196c3ba7 | [
"Unlicense"
] | null | null | null | src/c_fl_secret_input.cpp | micahwelf/FLTK-Ada | 83e0c58ea98e5ede2cbbb158b42eae44196c3ba7 | [
"Unlicense"
] | null | null | null |
#include <FL/Fl_Secret_Input.H>
#include "c_fl_secret_input.h"
#include "c_fl_type.h"
class My_Secret_Input : public Fl_Secret_Input {
public:
using Fl_Secret_Input::Fl_Secret_Input;
friend void secret_input_set_draw_hook(SECRET_INPUT i, void * d);
friend void fl_secret_input_draw(SECR... | 24.71831 | 87 | 0.707692 | micahwelf |
1c91ac4f083dd41ab9d194f830e41aafdb088351 | 60 | cpp | C++ | src/base/Scene.cpp | EdFil/Pathtracer | 57c0a17dd998fa8520a3d8f4f8142afd77d48350 | [
"Unlicense"
] | null | null | null | src/base/Scene.cpp | EdFil/Pathtracer | 57c0a17dd998fa8520a3d8f4f8142afd77d48350 | [
"Unlicense"
] | null | null | null | src/base/Scene.cpp | EdFil/Pathtracer | 57c0a17dd998fa8520a3d8f4f8142afd77d48350 | [
"Unlicense"
] | null | null | null | //
// Created by edgar on 6/27/21.
//
#include "Scene.hpp"
| 10 | 31 | 0.6 | EdFil |
1c92e764cf702e67586d4c509f681c8d04d8be9f | 55,818 | hpp | C++ | sourceCode/dotNet4.6/wpf/src/printing/cpp/inc/interopprinterinfo.hpp | csoap/csoap.github.io | 2a8db44eb63425deff147652b65c5912f065334e | [
"Apache-2.0"
] | 5 | 2017-03-03T02:13:16.000Z | 2021-08-18T09:59:56.000Z | sourceCode/dotNet4.6/wpf/src/printing/cpp/inc/interopprinterinfo.hpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | null | null | null | sourceCode/dotNet4.6/wpf/src/printing/cpp/inc/interopprinterinfo.hpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | 4 | 2016-11-15T05:20:12.000Z | 2021-11-13T16:32:11.000Z | #pragma once
#ifndef __INTEROPPRINTERINFO_HPP__
#define __INTEROPPRINTERINFO_HPP__
/*++
Copyright (C) 2002 - 2003 Microsoft Corporation
All rights reserved. ... | 28.162462 | 143 | 0.499158 | csoap |
1c92e76bd6799306979f5b2f768a34a1c15723fc | 12,977 | cpp | C++ | OpenSimRoot/src/engine/BaseClasses.cpp | nb-e/OpenRootSim | aaa1cd18e94ebf613c28737842401daba3b8d5ef | [
"BSD-3-Clause"
] | 1 | 2021-08-03T00:52:58.000Z | 2021-08-03T00:52:58.000Z | OpenSimRoot/src/engine/BaseClasses.cpp | nb-e/OpenRootSim | aaa1cd18e94ebf613c28737842401daba3b8d5ef | [
"BSD-3-Clause"
] | null | null | null | OpenSimRoot/src/engine/BaseClasses.cpp | nb-e/OpenRootSim | aaa1cd18e94ebf613c28737842401daba3b8d5ef | [
"BSD-3-Clause"
] | 1 | 2021-08-03T00:52:59.000Z | 2021-08-03T00:52:59.000Z | /*
Copyright © 2016, The Pennsylvania State University
All rights reserved.
Copyright © 2016 Forschungszentrum Jülich GmbH
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted under the GNU General Public License v3 and provided that the following conditi... | 35.072973 | 755 | 0.722586 | nb-e |
1c94faccec58de5b8fb40a606907c18ae4ef9ad1 | 9,189 | cpp | C++ | code/Apps/cTerrain/Terra.cpp | dlannan/deity | a612e2e4f0212de56183cac9cf2cf790dfb6b371 | [
"MIT"
] | null | null | null | code/Apps/cTerrain/Terra.cpp | dlannan/deity | a612e2e4f0212de56183cac9cf2cf790dfb6b371 | [
"MIT"
] | null | null | null | code/Apps/cTerrain/Terra.cpp | dlannan/deity | a612e2e4f0212de56183cac9cf2cf790dfb6b371 | [
"MIT"
] | null | null | null | #include <time.h>
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "..\\..\\Utils\\Image\\TGALoader.h"
#include <gl/gl.h>
#include <gl/glaux.h>
#pragma comment(lib,"opengl32.lib")
#pragma comment(lib,"glaux.lib")
#pragma comment(lib,"kernel32.lib")
#pragma comme... | 24.054974 | 107 | 0.603874 | dlannan |
1cab9b6aac6948a7ce4fe796cc3c6d693da71ff0 | 2,192 | cpp | C++ | PlayFabSDK/Plugins/PlayFab/Source/PlayFabProxy/Private/Proxy/Server/PFServerMoveItemToCharacterFromCharacter.cpp | fordream/UnrealCppSdk | 84a38f3f32712334c29704892c5c8358804b40ae | [
"Apache-2.0"
] | null | null | null | PlayFabSDK/Plugins/PlayFab/Source/PlayFabProxy/Private/Proxy/Server/PFServerMoveItemToCharacterFromCharacter.cpp | fordream/UnrealCppSdk | 84a38f3f32712334c29704892c5c8358804b40ae | [
"Apache-2.0"
] | null | null | null | PlayFabSDK/Plugins/PlayFab/Source/PlayFabProxy/Private/Proxy/Server/PFServerMoveItemToCharacterFromCharacter.cpp | fordream/UnrealCppSdk | 84a38f3f32712334c29704892c5c8358804b40ae | [
"Apache-2.0"
] | 1 | 2020-04-09T10:55:33.000Z | 2020-04-09T10:55:33.000Z | // This is automatically generated by PlayFab SDKGenerator. DO NOT modify this manually!
#include "PlayFabProxyPrivatePCH.h"
#include "PFServerMoveItemToCharacterFromCharacter.h"
UPFServerMoveItemToCharacterFromCharacter::UPFServerMoveItemToCharacterFromCharacter(const FObjectInitializer& ObjectInitializer)
: Super(O... | 39.142857 | 327 | 0.802007 | fordream |
1ccc141f6e3f482b51b86a9d4c24ffbfd357add9 | 21,812 | cpp | C++ | passes/techmap/recover_adder_core.cpp | azonenberg/yosys | 3c922cf49b0ea237e70e501895c2f124991cf406 | [
"0BSD"
] | 10 | 2016-04-13T06:21:50.000Z | 2021-06-13T01:26:02.000Z | passes/techmap/recover_adder_core.cpp | azonenberg/yosys | 3c922cf49b0ea237e70e501895c2f124991cf406 | [
"0BSD"
] | null | null | null | passes/techmap/recover_adder_core.cpp | azonenberg/yosys | 3c922cf49b0ea237e70e501895c2f124991cf406 | [
"0BSD"
] | 3 | 2016-12-06T03:59:00.000Z | 2020-10-27T15:44:15.000Z | /*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2017 Robert Ou <rqou@robertou.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copi... | 45.536534 | 117 | 0.387906 | azonenberg |
1cceb5d0f2937bbc4d871fe02a661376255c8c48 | 3,019 | cpp | C++ | zstage.cpp | craggslab/smOTTER | d5422787d833a4134f00731cd54ccff00b31430f | [
"MIT"
] | null | null | null | zstage.cpp | craggslab/smOTTER | d5422787d833a4134f00731cd54ccff00b31430f | [
"MIT"
] | null | null | null | zstage.cpp | craggslab/smOTTER | d5422787d833a4134f00731cd54ccff00b31430f | [
"MIT"
] | null | null | null | #include "zstage.h"
#include <QSerialPortInfo>
#include <QTextStream>
ZStage::ZStage(QObject *parent)
: QObject(parent),
m_connected(false)
{
}
QStringList ZStage::getAvailableCOMPorts()
{
QStringList out;
for (auto& info : QSerialPortInfo::availablePorts())
{
out.push_b... | 23.045802 | 106 | 0.592249 | craggslab |
1cd432869a475b13dd0e83e5a194bb75945f7331 | 1,738 | cpp | C++ | Tests/TreeMenuViewModelTest.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 14 | 2016-11-01T15:48:02.000Z | 2020-07-15T13:00:27.000Z | Tests/TreeMenuViewModelTest.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 29 | 2017-11-16T04:15:33.000Z | 2021-12-22T07:15:42.000Z | Tests/TreeMenuViewModelTest.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 2 | 2018-08-15T15:25:11.000Z | 2019-01-28T12:49:50.000Z | #include "pch.h"
#include "../Clerk/Data/ViewModels/TreeMenuViewModel.h"
#include "Fixture.cpp"
class TreeMenuViewModelTest : public Fixture {
public:
void SetUp() override {
Fixture::SetUp();
viewModel = new TreeMenuViewModel(context->GetAccountsService(), context->GetReportsService(), context->... | 24.138889 | 138 | 0.719793 | sergeylenkov |
1cd899fe89e53054f2dc73cd70e8436ae900211e | 2,856 | hpp | C++ | iRODS/lib/core/include/putUtil.hpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/core/include/putUtil.hpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/core/include/putUtil.hpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* putUtil.h - Header for for putUtil.c */
#ifndef PUT_UTIL_HPP
#define PUT_UTIL_HPP
#include "rodsClient.hpp"
#include "parseCommandLine.hpp"
#include "rodsPa... | 39.123288 | 99 | 0.670518 | PlantandFoodResearch |
1cda6ceac3414e0138852535ca135a79831ab3a8 | 2,890 | cpp | C++ | utilities/pdbqt2csv.cpp | annanguyen99/FixedRandom_idock | 5e4a7705836e22da93bf9962ba5ea4092a08a05d | [
"Apache-2.0"
] | 37 | 2015-02-11T02:24:36.000Z | 2022-01-19T13:41:25.000Z | utilities/pdbqt2csv.cpp | annanguyen99/FixedRandom_idock | 5e4a7705836e22da93bf9962ba5ea4092a08a05d | [
"Apache-2.0"
] | 30 | 2015-02-01T07:21:24.000Z | 2021-03-27T12:27:28.000Z | utilities/pdbqt2csv.cpp | annanguyen99/FixedRandom_idock | 5e4a7705836e22da93bf9962ba5ea4092a08a05d | [
"Apache-2.0"
] | 23 | 2017-04-02T20:16:38.000Z | 2022-03-30T13:21:20.000Z | #include <iostream>
#include <iomanip>
#include <vector>
#include <fstream>
#include <string>
#include <boost/lexical_cast.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/operations.hpp>
using namespace std;
using nam... | 26.513761 | 111 | 0.688235 | annanguyen99 |
1ce03e44209f4db653764ce7538f94d1ef071200 | 1,473 | hpp | C++ | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/client/async_resolve.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 10 | 2021-03-29T13:52:06.000Z | 2022-03-10T02:24:25.000Z | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/client/async_resolve.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | null | null | null | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/client/async_resolve.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 6 | 2021-07-03T07:56:56.000Z | 2022-02-14T15:28:23.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... | 38.763158 | 78 | 0.727766 | TiagoPedroByterev |
1ce27a2d48ade7d21b05e1d242bc981ec22a5387 | 4,414 | cpp | C++ | src/Nunchuck.cpp | ikkentim/arduino-game | e7de46066dbd740397268a5d4a7fa2c191573f4d | [
"Apache-2.0"
] | null | null | null | src/Nunchuck.cpp | ikkentim/arduino-game | e7de46066dbd740397268a5d4a7fa2c191573f4d | [
"Apache-2.0"
] | null | null | null | src/Nunchuck.cpp | ikkentim/arduino-game | e7de46066dbd740397268a5d4a7fa2c191573f4d | [
"Apache-2.0"
] | null | null | null | #include <avr/io.h>
#include <util/delay.h>
#include <stdio.h>
#include "Nunchuck.h"
#define NC_ADDRESS 0x52
#define NC_REQUEST 0x00
#define NC1_INIT_REGISTER 0x40
#define NC1_INIT_DATA 0x00
#define NC2_INIT_REGISTER 0xf0
#define NC2_INIT_DATA 0x55
Nunchuck::Nunchuck() {
ty... | 24.252747 | 112 | 0.580426 | ikkentim |
1ce60b8ba058bff09d04c98d27ecbe21af6b0895 | 1,286 | hpp | C++ | Source/AliveLibAO/Gibs.hpp | Leonard2/alive_reversing | c6d85f435e275db1d41e2ec8b4e52454aa932e05 | [
"MIT"
] | null | null | null | Source/AliveLibAO/Gibs.hpp | Leonard2/alive_reversing | c6d85f435e275db1d41e2ec8b4e52454aa932e05 | [
"MIT"
] | null | null | null | Source/AliveLibAO/Gibs.hpp | Leonard2/alive_reversing | c6d85f435e275db1d41e2ec8b4e52454aa932e05 | [
"MIT"
] | null | null | null | #pragma once
#include "FunctionFwd.hpp"
#include "BaseAnimatedWithPhysicsGameObject.hpp"
namespace AO {
struct GibPart final
{
FP field_0_x;
FP field_4_y;
FP field_8_z;
FP field_C_dx;
FP field_10_dy;
FP field_14_dz;
Animation field_18_anim;
};
ALIVE_ASSERT_SIZEOF(GibPart, 0xB0);
struct G... | 20.741935 | 88 | 0.726283 | Leonard2 |
1ce6b9ce9e26382d43a5095e7856bb98767ef04b | 3,789 | cpp | C++ | deps/src/ImageSpec.cpp | c42f/OpenImageIO.jl | cc05365bbb0cea8954b253e587d7b7fec1f01189 | [
"BSD-2-Clause"
] | 5 | 2017-07-04T19:33:52.000Z | 2020-10-31T05:39:15.000Z | deps/src/ImageSpec.cpp | c42f/OpenImageIO.jl | cc05365bbb0cea8954b253e587d7b7fec1f01189 | [
"BSD-2-Clause"
] | null | null | null | deps/src/ImageSpec.cpp | c42f/OpenImageIO.jl | cc05365bbb0cea8954b253e587d7b7fec1f01189 | [
"BSD-2-Clause"
] | null | null | null | #include "jl_oiio.h"
namespace jlcxx {
template<> struct IsBits<OIIO::ImageSpec::SerialFormat> : std::true_type {};
template<> struct IsBits<OIIO::ImageSpec::SerialVerbose> : std::true_type {};
}
namespace JlOpenImageIO
{
void register_ImageSpec(jlcxx::Module& mod)
{
// FIXME - jlcxx error
// mod.add_type<im... | 55.720588 | 86 | 0.626551 | c42f |
1ce6e5fcab05fa6aefcb3e3384f770aaab3fc01d | 2,083 | hpp | C++ | lib/Coor.hpp | atfrank/PCASA | cbb71ac4c1e822e731d854c364621dc80008e1b8 | [
"MIT"
] | 3 | 2017-04-17T15:38:16.000Z | 2019-07-26T12:15:19.000Z | lib/Coor.hpp | atfrank/PCASA | cbb71ac4c1e822e731d854c364621dc80008e1b8 | [
"MIT"
] | 1 | 2019-09-23T13:44:55.000Z | 2019-09-24T04:05:17.000Z | lib/Coor.hpp | atfrank/PCASA | cbb71ac4c1e822e731d854c364621dc80008e1b8 | [
"MIT"
] | null | null | null | //Sean M. Law
//Aaron T. Frank
/*
This file is part of MoleTools.
MoleTools is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
MoleTools ... | 28.930556 | 71 | 0.683149 | atfrank |
1ce70731ee59e4375526f5a6ee808ed4de130fc5 | 4,611 | cpp | C++ | src/Prey/game_trackmover.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | 2 | 2018-08-30T23:48:22.000Z | 2021-04-07T19:16:18.000Z | src/Prey/game_trackmover.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | null | null | null | src/Prey/game_trackmover.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | null | null | null | #include "../idlib/precompiled.h"
#pragma hdrstop
#include "prey_local.h"
const idEventDef EV_StartNextMove( "<startnextmove>", NULL );
const idEventDef EV_Kill( "<kill>" );
CLASS_DECLARATION(idMover, hhTrackMover)
EVENT( EV_PostSpawn, hhTrackMover::Event_PostSpawn )
EVENT( EV_StartNextMove, hhTrackMover::Eve... | 26.653179 | 131 | 0.699631 | AMS21 |
1ce71cc24bcd012eec200345dc9c91a4eaf66add | 1,075 | hpp | C++ | source/Structure/custom_plugins/plugins/HIL_server/serial.hpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | source/Structure/custom_plugins/plugins/HIL_server/serial.hpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | source/Structure/custom_plugins/plugins/HIL_server/serial.hpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | #ifndef SERIAL_H
#define SERIAL_H
#include <boost/asio.hpp>
#include <boost/thread.hpp>
class Serial
{
private:
// Pointer of the callback function that will be executed when data
// arrives.
boost::function<void(const boost::system::error_code& e, std::size_t size)> functor;
// Buffer in which to read the s... | 21.938776 | 86 | 0.693023 | Guiraffo |
1cea6c1b8a989ca0ca88131324c984b7647b8b13 | 1,273 | cpp | C++ | CCC/CCC01S5.cpp | Genius1506/Competitive-Programming | 0fcbd9cd1a2381cf6dcb6e31f4ad0afe7cb98947 | [
"MIT"
] | null | null | null | CCC/CCC01S5.cpp | Genius1506/Competitive-Programming | 0fcbd9cd1a2381cf6dcb6e31f4ad0afe7cb98947 | [
"MIT"
] | null | null | null | CCC/CCC01S5.cpp | Genius1506/Competitive-Programming | 0fcbd9cd1a2381cf6dcb6e31f4ad0afe7cb98947 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define all(x) x.begin(),x.end()
#define INF (0x3f3f3f3f)
#define ms(a,b) memset(a,b,sizeof(a));
const int mxN = 50;
int n,m;
string a[mxN],b[mxN];
vector<int>ans;
bool found = 0;
void rec(string A, string B, int x){
//cout << A << " " << B << '\n'... | 21.948276 | 43 | 0.438335 | Genius1506 |
1ced809e804cf78d5793b285f47b934b45bdf64a | 831 | hpp | C++ | src/include/maths.hpp | wiggocd/conanimator | 79d821c18dff8412bf4d64a2366ebd90bc46ec3c | [
"MIT"
] | null | null | null | src/include/maths.hpp | wiggocd/conanimator | 79d821c18dff8412bf4d64a2366ebd90bc46ec3c | [
"MIT"
] | null | null | null | src/include/maths.hpp | wiggocd/conanimator | 79d821c18dff8412bf4d64a2366ebd90bc46ec3c | [
"MIT"
] | null | null | null | /*
* Maths and conversion defs
*/
#ifndef __MATHS
#define __MATHS
#include <cstdlib>
#include <math.h>
// Unit conversion macros
#define S_TO_USECONDS(s) ((s)*1000000)
#define MS_TO_USECONDS(ms) ((ms)*1000)
// Frame renderer macros via reciprocals
#define FRAMERATE(frametime) (round(1... | 25.181818 | 84 | 0.684717 | wiggocd |
1cf12a240905cc025d3b87ac6f2204ec1ea6b5ca | 1,935 | hpp | C++ | src/ipc/message.hpp | dmitritt/lb | 936f2a7c7546b7d74cdf6a552012deed87e4ab79 | [
"MIT"
] | null | null | null | src/ipc/message.hpp | dmitritt/lb | 936f2a7c7546b7d74cdf6a552012deed87e4ab79 | [
"MIT"
] | 4 | 2015-11-27T11:03:37.000Z | 2015-12-10T15:55:02.000Z | src/ipc/message.hpp | dmitritt/qlb | 936f2a7c7546b7d74cdf6a552012deed87e4ab79 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 Dmitri
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, di... | 31.721311 | 80 | 0.739535 | dmitritt |
1cf3aca2aca99813dff633980f421c8151af04ca | 4,542 | cc | C++ | projects/lab5/code/lab5.cc | Luddw/rasterizer | 73195ecc71ef69f6aa1432fce770cee388e8adc9 | [
"MIT"
] | null | null | null | projects/lab5/code/lab5.cc | Luddw/rasterizer | 73195ecc71ef69f6aa1432fce770cee388e8adc9 | [
"MIT"
] | null | null | null | projects/lab5/code/lab5.cc | Luddw/rasterizer | 73195ecc71ef69f6aa1432fce770cee388e8adc9 | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
// Lab5.cc
// (C) 2015-2018 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "lab5.h"
#include <sstream>
#include <GL/glew.h>
#include <iostream>
#include <... | 23.412371 | 99 | 0.544254 | Luddw |
1cf3c4b45d17e3080cca5bba2b7dded9a7365864 | 8,119 | cpp | C++ | Game/Client/CEGUI/CEGUI/src/CEGUIImagesetManager.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/CEGUI/CEGUI/src/CEGUIImagesetManager.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/CEGUI/CEGUI/src/CEGUIImagesetManager.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | /************************************************************************
filename: CEGUIImagesetManager.cpp
created: 21/2/2004
author: Paul D Turner
purpose: Implements the ImagesetManager class
*************************************************************************/
/****************************************... | 33.004065 | 135 | 0.547604 | hackerlank |
7f2ee9b3417542e2ab9b4241585602ee58c34a51 | 4,273 | cpp | C++ | aoc/src/2018/day-13.cpp | DrPizza/advent-of-code-2017 | bcba170e3ffececb9c5b29f3b0fa0193fa59dcf9 | [
"Zlib"
] | 2 | 2017-12-09T06:13:08.000Z | 2017-12-18T12:15:08.000Z | aoc/src/2018/day-13.cpp | DrPizza/advent-of-code-2017 | bcba170e3ffececb9c5b29f3b0fa0193fa59dcf9 | [
"Zlib"
] | 1 | 2018-01-03T17:46:56.000Z | 2018-01-03T17:46:56.000Z | aoc/src/2018/day-13.cpp | DrPizza/advent-of-code | bcba170e3ffececb9c5b29f3b0fa0193fa59dcf9 | [
"Zlib"
] | null | null | null | #include "stdafx.h"
#include "problem.hpp"
#include <fstream>
#include <vector>
namespace
{
std::vector<std::string> track;
std::vector<std::string> pristine_track;
std::vector<std::string> cart_locations;
std::vector<std::string> pristine_cart_locations;
struct cart;
std::vector<cart> carts;
std::vector<cart... | 24.417143 | 111 | 0.591388 | DrPizza |
7f2fb6bdcdb9016b7a2898f6422d1510ab77746e | 1,353 | hh | C++ | src/mem/cache/replacement_policies/srrip_rp.hh | catbeat/lru_cache | a5478b23727dbaf63f84d92b51e1e3b443312bc3 | [
"BSD-3-Clause"
] | null | null | null | src/mem/cache/replacement_policies/srrip_rp.hh | catbeat/lru_cache | a5478b23727dbaf63f84d92b51e1e3b443312bc3 | [
"BSD-3-Clause"
] | null | null | null | src/mem/cache/replacement_policies/srrip_rp.hh | catbeat/lru_cache | a5478b23727dbaf63f84d92b51e1e3b443312bc3 | [
"BSD-3-Clause"
] | null | null | null | #ifndef __MEM_CACHE_REPLACEMENT_POLICIES_SRRIP_RP_HH__
#define __MEM_CACHE_REPLACEMENT_POLICIES_SRRIP_RP_HH__
#include "mem/cache/replacement_policies/base.hh"
#include "base/sat_counter.hh"
struct SRRIPRPParams;
class SRRIPRP: public BaseReplacementPolicy
{
protected:
struct SRRIPReplData: ReplacementDa... | 26.019231 | 83 | 0.585366 | catbeat |
7f30cceb53b8522447822d0ff3c1b1d3a23790ac | 1,376 | cpp | C++ | CrowdSimulator/CrowdSimulator/ContinuityEquationTest.cpp | Carbonfreezer/PanicSimulator | 9cf303e7936c97eb549abfb62404245c375e7657 | [
"MIT"
] | 2 | 2020-01-09T08:51:06.000Z | 2020-01-25T10:55:47.000Z | CrowdSimulator/CrowdSimulator/ContinuityEquationTest.cpp | Carbonfreezer/PanicSimulator | 9cf303e7936c97eb549abfb62404245c375e7657 | [
"MIT"
] | null | null | null | CrowdSimulator/CrowdSimulator/ContinuityEquationTest.cpp | Carbonfreezer/PanicSimulator | 9cf303e7936c97eb549abfb62404245c375e7657 | [
"MIT"
] | null | null | null | #include "ContinuityEquationTest.h"
#include "DataBase.h"
#include "VisualizationHelper.h"
void ContinuityEquationTest::PrepareTest(int eikonalMode)
{
m_solver.PrepareSolver();
switch(eikonalMode)
{
case 0:
m_pseudoIconalData = TransferHelper::BuildHorizontalGradient(100.0f, 0);
break;
case 1:
m_pseudoI... | 25.481481 | 110 | 0.787791 | Carbonfreezer |
7f3115ac8f527af962412f71a3c35f3daebe8e28 | 1,388 | cpp | C++ | mcc/src/GlobalVariable.cpp | petrufm/mcc | 83d74c00a90971d5a1d5392878d8fd9351c3dfc6 | [
"MIT"
] | 2 | 2018-03-12T03:05:57.000Z | 2019-04-17T10:19:59.000Z | mcc/src/GlobalVariable.cpp | petrufm/mcc | 83d74c00a90971d5a1d5392878d8fd9351c3dfc6 | [
"MIT"
] | null | null | null | mcc/src/GlobalVariable.cpp | petrufm/mcc | 83d74c00a90971d5a1d5392878d8fd9351c3dfc6 | [
"MIT"
] | null | null | null | #include "GlobalVariable.h"
bool GlobalVariable::isTriggered(AbstractTree &tree){
VTP_TreeP tmp_tree;
std::string dcltr_noinit = "dcltr_noinit";
std::string dcltr_affinit = "dcltr_affinit";
std::string dcltr_callinit = "dcltr_callinit";
std::string fndef = "fndef";
std::string cdsection = "class_decls_sectio... | 26.188679 | 74 | 0.724063 | petrufm |
7f37fd45b00b527c1232e3ec0ef473effe873c42 | 458 | cpp | C++ | Learning Basics of C++/HashDefine/main.cpp | RyanPaulMcKenna/C-Basics | 58943fb6ad123b4ffd82b624f1ceff88076816a0 | [
"MIT"
] | null | null | null | Learning Basics of C++/HashDefine/main.cpp | RyanPaulMcKenna/C-Basics | 58943fb6ad123b4ffd82b624f1ceff88076816a0 | [
"MIT"
] | null | null | null | Learning Basics of C++/HashDefine/main.cpp | RyanPaulMcKenna/C-Basics | 58943fb6ad123b4ffd82b624f1ceff88076816a0 | [
"MIT"
] | null | null | null | #ifndef BOOK
#define BOOK "C++ Programming in easy steps"
#endif
#include <iostream>
using namespace std;
int main()
{
#ifdef BOOK
cout << BOOK;
#endif //BOOK
#ifndef AUTHOR
#define AUTHOR "Mike McGrath"
cout << " By " << AUTHOR << endl;
#endif // AUTHOR
#ifdef BOOK
#undef BOOK
#endif // ... | 18.32 | 44 | 0.598253 | RyanPaulMcKenna |
7f3d6e20156ff16c602f264d3fb8f2a042d34373 | 1,057 | cpp | C++ | code archive/GJ/d011.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 4 | 2018-04-08T08:07:58.000Z | 2021-06-07T14:55:24.000Z | code archive/GJ/d011.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | null | null | null | code archive/GJ/d011.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 1 | 2018-10-29T12:37:25.000Z | 2018-10-29T12:37:25.000Z | /**********************************************************************************/
/* Problem: d011 "98年台中區第一題" from 98年台中區複賽 */
/* Language: C++ */
/* Result: AC (7ms, 192KB) on ZeroJudge ... | 25.780488 | 84 | 0.33491 | brianbbsu |
7f3e1448052581d32e1da2d24e39a68be165a98e | 1,928 | hh | C++ | jute/inc/EBinaryInputArchive.hh | cxxjava/CxxZookeeper | 149677c785627aff839b2102ab265c745882fa52 | [
"Apache-2.0"
] | 16 | 2018-03-05T02:42:00.000Z | 2020-11-30T12:57:19.000Z | jute/inc/EBinaryInputArchive.hh | cxxjava/CxxZookeeper | 149677c785627aff839b2102ab265c745882fa52 | [
"Apache-2.0"
] | 1 | 2021-06-04T03:25:59.000Z | 2021-08-06T13:54:28.000Z | jute/inc/EBinaryInputArchive.hh | cxxjava/CxxZookeeper | 149677c785627aff839b2102ab265c745882fa52 | [
"Apache-2.0"
] | 10 | 2018-03-18T14:33:09.000Z | 2021-05-24T05:56:28.000Z | /*
* EBinaryInputArchive.hh
*
* Created on: 2017-11-16
* Author: cxxjava@163.com
*/
#ifndef EBINARYINPUTARCHIVE_HH_
#define EBINARYINPUTARCHIVE_HH_
#include "./EInputArchive.hh"
namespace efc {
namespace ezk {
/**
*
*/
class EBinaryInputArchive: public EInputArchive {
public:
DECLARE_STATIC_INITZZ;
... | 31.096774 | 75 | 0.760373 | cxxjava |
7f42f93bbf559d3e4ee318cb7e4a37a614bcf358 | 8,044 | cpp | C++ | src/lmo/pi_lmo_parallel1.cpp | kimwalisch/primesum | c73b8afba311413454a25d45482efaea025ae3a0 | [
"BSD-2-Clause"
] | 31 | 2016-05-16T10:43:48.000Z | 2021-12-31T23:20:46.000Z | src/lmo/pi_lmo_parallel1.cpp | kimwalisch/primesum | c73b8afba311413454a25d45482efaea025ae3a0 | [
"BSD-2-Clause"
] | 2 | 2016-06-07T08:41:55.000Z | 2017-11-17T13:22:20.000Z | src/lmo/pi_lmo_parallel1.cpp | kimwalisch/primesum | c73b8afba311413454a25d45482efaea025ae3a0 | [
"BSD-2-Clause"
] | 2 | 2019-10-31T02:11:39.000Z | 2021-06-29T16:37:56.000Z | ///
/// @file pi_lmo_parallel1.cpp
/// @brief Parallel implementation of the Lagarias-Miller-Odlyzko
/// prime summing algorithm using OpenMP. This implementation
/// uses improved load balancing and counts the number of
/// unsieved elements using POPCNT without using any special
/// count... | 28.626335 | 90 | 0.59821 | kimwalisch |
7f4d3c5fac87c1aee6b30617c62f1b70070b3343 | 1,213 | hpp | C++ | src/barrier.hpp | Ravirael/concurrentpp | c018509074eee0abbcbc028fb53fed1ec8699666 | [
"MIT"
] | 2 | 2018-02-09T20:22:34.000Z | 2020-11-28T09:14:19.000Z | src/barrier.hpp | Ravirael/concurrentpp | c018509074eee0abbcbc028fb53fed1ec8699666 | [
"MIT"
] | null | null | null | src/barrier.hpp | Ravirael/concurrentpp | c018509074eee0abbcbc028fb53fed1ec8699666 | [
"MIT"
] | 1 | 2019-07-12T08:05:04.000Z | 2019-07-12T08:05:04.000Z | #pragma once
#include <mutex>
#include <condition_variable>
namespace concurrent {
class barrier {
std::mutex m_mutex;
std::condition_variable m_cv;
std::size_t m_count;
public:
explicit barrier(std::size_t count) :
m_count{count} {
}
barrier... | 22.054545 | 82 | 0.460016 | Ravirael |
7f4e4a305e984aa8a3ccac088897045aa860a9de | 672 | cpp | C++ | CODE/archive/test_display.cpp | ifknot/DOS16 | d93b9ef75f5833a958efd75ed6735f8accd38ea3 | [
"MIT"
] | 1 | 2021-04-04T19:41:40.000Z | 2021-04-04T19:41:40.000Z | CODE/archive/test_display.cpp | ifknot/DOS16 | d93b9ef75f5833a958efd75ed6735f8accd38ea3 | [
"MIT"
] | null | null | null | CODE/archive/test_display.cpp | ifknot/DOS16 | d93b9ef75f5833a958efd75ed6735f8accd38ea3 | [
"MIT"
] | null | null | null | #include "test_display.h"
#include <iostream>
#include <cstdio>
bool test_display() {
std::cout << "*** test display ***\n";
dos::display& display = dos::display::instance();
std::cout << dos::adapter_strings[display.detect_adapter()] << '\n'
<< "crtc " << ((display.detect_crtc()) ?"yes" :"not") << " found\n";
... | 30.545455 | 106 | 0.602679 | ifknot |
7f4f3eb669880ab6ab7530100db8b60ceee5d6d1 | 15,564 | cpp | C++ | data/810.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/810.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/810.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int LJQh,
mQC
,zp ,
P ,
pv1//j
,
yM
,u0ef, SV,
ZH ,Ja , io
,//i4
Erd5
,
nY6e,R3J
,aBFTp , xSQ
,
Ul63H
,/*kxr*/Hg/*px*/,/*lI*/
ADaN
,
mKi, vGK,
XaK,
fi ,
s71h, cWjM3,v8Hys
, wt2,
Ej ,
It , HM ,cy
,EWci //Gw8
, H4t, bL0Au ,Gebpl , zld3Hx
,A0JfI ,/*g*/PE/*Fq*/ , GaKS ,a3 , vjhST
, /*Q... | 10.334661 | 64 | 0.447057 | TianyiChen |
7f5b7baa70baa4c6f47eb58b091749d9ab0efe3b | 1,180 | hpp | C++ | Server/Sources/MapGenerator/MapGeneration.hpp | Eitu33/indie | 0183cfb07f76ec74aad24c7806965e0a6f9fe77b | [
"MIT"
] | 1 | 2022-01-28T19:48:31.000Z | 2022-01-28T19:48:31.000Z | Server/Sources/MapGenerator/MapGeneration.hpp | Eitu33/indie | 0183cfb07f76ec74aad24c7806965e0a6f9fe77b | [
"MIT"
] | null | null | null | Server/Sources/MapGenerator/MapGeneration.hpp | Eitu33/indie | 0183cfb07f76ec74aad24c7806965e0a6f9fe77b | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2019
** oop_indie_studio_2018
** File description:
** MapGeneration
*/
#ifndef MAPGENERATION_HPP_
#define MAPGENERATION_HPP_
#include <string>
#include <vector>
class MapGeneration {
public:
MapGeneration(const int &height = 100, const int &width = 100);
~MapGeneration() = default;
voi... | 26.818182 | 137 | 0.70678 | Eitu33 |
7f5eff7e881e7201a7e46528e3e72a1efcd93293 | 439 | cpp | C++ | editor/ui/windows/inspector/comp/collider.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | editor/ui/windows/inspector/comp/collider.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | editor/ui/windows/inspector/comp/collider.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | #include "chokoeditor.hpp"
#include "ext/ui_ext.hpp"
#include "ui/windows/inspector/status/comp/collider.hpp"
#include "ui/ew_macros.hpp"
CE_BEGIN_ED_NAMESPACE
CE_E_BEGIN_DRAWCOMP(Collider)
CE_E_EDIT_ENUM("Type", c->type, ColliderTypeStr, c);
switch (c->type()) {
case ColliderType::InfPlane:
break;
case ColliderType... | 19.954545 | 56 | 0.765376 | chokomancarr |
7f61cc28db3c0388fbf5e22ac9705660b5c16285 | 671 | hpp | C++ | mpllibs/metamonad/v1/is_exception.hpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 70 | 2015-01-15T09:05:15.000Z | 2021-12-08T15:49:31.000Z | mpllibs/metamonad/v1/is_exception.hpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 4 | 2015-06-18T19:25:34.000Z | 2016-05-13T19:49:51.000Z | mpllibs/metamonad/v1/is_exception.hpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 5 | 2015-07-10T08:18:09.000Z | 2021-12-01T07:17:57.000Z | #ifndef MPLLIBS_METAMONAD_V1_IS_EXCEPTION_HPP
#define MPLLIBS_METAMONAD_V1_IS_EXCEPTION_HPP
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2012.
// 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)
#in... | 23.964286 | 61 | 0.743666 | sabel83 |
7f64f3c5400b56560b3e69bfb4ddc2384ca00c8a | 43,755 | cpp | C++ | bsdrawgraph.cpp | elijivp/bsdraw | f9b309a7ae8438c7874be5c724c86c209f4241db | [
"Apache-2.0"
] | 5 | 2019-01-18T18:18:19.000Z | 2021-09-22T18:38:18.000Z | bsdrawgraph.cpp | elijivp/bsdraw | f9b309a7ae8438c7874be5c724c86c209f4241db | [
"Apache-2.0"
] | null | null | null | bsdrawgraph.cpp | elijivp/bsdraw | f9b309a7ae8438c7874be5c724c86c209f4241db | [
"Apache-2.0"
] | null | null | null | /// DrawGraph is a graph for standart 1D functions
/// Input: 1D array
/// Scaling: vertical scaling is 1 by default, so You can easily resize Draw
/// Created By: Elijah Vlasov
#include "bsdrawgraph.h"
#include "core/sheigen/bsshgenmain.h"
#ifndef SHNL
#define SHNL "\n"
#endif
class DrawGraph_Sheigen: public IShe... | 52.464029 | 236 | 0.5526 | elijivp |
7f67eb391817975934078db0bf04a686b8d43e5a | 1,358 | hpp | C++ | src/Video/Geometry/VertexType/StaticVertex.hpp | Chainsawkitten/Deathcap | 37ed5afccd3113d34612d89c6e6508e8da9a0d7f | [
"MIT"
] | 3 | 2017-09-08T06:05:10.000Z | 2017-10-28T04:22:20.000Z | src/Video/Geometry/VertexType/StaticVertex.hpp | Chainsawkitten/Deathcap | 37ed5afccd3113d34612d89c6e6508e8da9a0d7f | [
"MIT"
] | 894 | 2017-08-30T09:57:28.000Z | 2018-01-30T12:35:38.000Z | src/Video/Geometry/VertexType/StaticVertex.hpp | Chainsawkitten/LargeGameProjectEngine | 37ed5afccd3113d34612d89c6e6508e8da9a0d7f | [
"MIT"
] | 1 | 2020-11-06T23:59:58.000Z | 2020-11-06T23:59:58.000Z | #pragma once
#include <GL/glew.h>
#include <glm/glm.hpp>
#include "../../linking.hpp"
namespace Video {
namespace Geometry {
namespace VertexType {
/// Vertex type used for static meshes.
struct StaticVertex {
/// Position.
glm::vec3 position;
... | 31.581395 | 117 | 0.466863 | Chainsawkitten |
7f69166be3ec67aec676dcbbbad6e6c1e49a385f | 3,510 | hpp | C++ | src/tdmms_finder/tdmms_finder_dl/include/tdmms_finder_dl/main_window.hpp | tdmms/tdmms | 1bd779bb3d6fe6451cdc08dcd5b15a1bcbd03b35 | [
"BSD-3-Clause"
] | 16 | 2018-04-28T07:34:04.000Z | 2022-01-27T02:46:43.000Z | src/tdmms_finder/tdmms_finder_dl/include/tdmms_finder_dl/main_window.hpp | tdmms/tdmms | 1bd779bb3d6fe6451cdc08dcd5b15a1bcbd03b35 | [
"BSD-3-Clause"
] | 1 | 2018-10-16T08:41:55.000Z | 2018-10-16T08:44:33.000Z | src/tdmms_finder/tdmms_finder_dl/include/tdmms_finder_dl/main_window.hpp | tdmms/tdmms | 1bd779bb3d6fe6451cdc08dcd5b15a1bcbd03b35 | [
"BSD-3-Clause"
] | 2 | 2018-04-17T14:03:15.000Z | 2020-05-12T04:59:43.000Z | /**
* @file /include/tdmms_finder_dl/main_window.hpp
*
* @brief Qt based gui for tdmms_finder_dl.
*
* @date November 2010
**/
#ifndef tdmms_finder_dl_MAIN_WINDOW_H
#define tdmms_finder_dl_MAIN_WINDOW_H
/*****************************************************************************
** Includes
********************... | 37.340426 | 78 | 0.660114 | tdmms |
7f71a0cf1b5484bfd3f09dac96548c96004df475 | 2,219 | hh | C++ | src/monodroid/jni/xamarin-app.hh | grendello/xamarin-android | d1c910a948ea4cc7e20e38bd68b3169f17f74e97 | [
"MIT"
] | null | null | null | src/monodroid/jni/xamarin-app.hh | grendello/xamarin-android | d1c910a948ea4cc7e20e38bd68b3169f17f74e97 | [
"MIT"
] | null | null | null | src/monodroid/jni/xamarin-app.hh | grendello/xamarin-android | d1c910a948ea4cc7e20e38bd68b3169f17f74e97 | [
"MIT"
] | null | null | null | // Dear Emacs, this is a -*- C++ -*- header
#ifndef __XAMARIN_ANDROID_TYPEMAP_H
#define __XAMARIN_ANDROID_TYPEMAP_H
#include <stdint.h>
#include <mono/metadata/image.h>
#include "monodroid.h"
static constexpr uint32_t MODULE_MAGIC = 0x4D544158; // 'XATM', little-endian
static constexpr uint32_t MODULE_INDEX_M... | 25.505747 | 154 | 0.755746 | grendello |
7f71ac4eff2b276b7e97ae5ebfdbae1578bf9f02 | 299 | cpp | C++ | applications/ctlutils/powerctl.cpp | harsh-kakasaniya55/skift | 79ccaf5398cfb7921599105607ad6688ece452d8 | [
"MIT"
] | null | null | null | applications/ctlutils/powerctl.cpp | harsh-kakasaniya55/skift | 79ccaf5398cfb7921599105607ad6688ece452d8 | [
"MIT"
] | null | null | null | applications/ctlutils/powerctl.cpp | harsh-kakasaniya55/skift | 79ccaf5398cfb7921599105607ad6688ece452d8 | [
"MIT"
] | null | null | null | #include <abi/Syscalls.h>
#include <libutils/String.h>
int main(int argc, char **argv)
{
if (argc == 2 && String(argv[1]) == "--reboot")
__syscall(SYS_SYSTEM_REBOOT);
else if (argc == 2 && String(argv[1]) == "--shutdown")
__syscall(SYS_SYSTEM_SHUTDOWN);
return -1;
}
| 19.933333 | 58 | 0.595318 | harsh-kakasaniya55 |
7f737abd09a9b730bd349fed0ce722bb2b5091ba | 12,425 | cpp | C++ | src/models/ReceptorModel.cpp | sofea-model/sofea | a6ee54b59c6f96929592118ee77e286f71238c9e | [
"Apache-2.0"
] | null | null | null | src/models/ReceptorModel.cpp | sofea-model/sofea | a6ee54b59c6f96929592118ee77e286f71238c9e | [
"Apache-2.0"
] | 2 | 2020-01-31T06:21:44.000Z | 2020-01-31T06:26:52.000Z | src/models/ReceptorModel.cpp | sofea-model/sofea | a6ee54b59c6f96929592118ee77e286f71238c9e | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Dow, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | 29.939759 | 138 | 0.612958 | sofea-model |
7f76d865b2a5b14437c4ef18ea1f9ae3867cea3e | 2,770 | cc | C++ | client/terminal-user-interface/src/__test/test_helper.cc | xxm0703/poke-shell | 222353ebdbf6598a1639acfd9902ea3c0f3a6bd6 | [
"MIT"
] | null | null | null | client/terminal-user-interface/src/__test/test_helper.cc | xxm0703/poke-shell | 222353ebdbf6598a1639acfd9902ea3c0f3a6bd6 | [
"MIT"
] | 2 | 2020-05-26T07:30:36.000Z | 2020-05-26T07:30:37.000Z | client/terminal-user-interface/src/__test/test_helper.cc | xxm0703/poke-shell | 222353ebdbf6598a1639acfd9902ea3c0f3a6bd6 | [
"MIT"
] | null | null | null | #include "__test/test_helper.hh"
#include <cstdio>
#include <algorithm>
#include <stdexcept>
#include <string>
#include <sstream>
#include <stdexcept>
#include <vector>
#include <ncurses.h>
#include "ncurses_helper/exceptions/ncurses_exception.hh"
#define _NULL_NAME "NULL"
using terminal_user_interface::ncurses_hel... | 31.123596 | 85 | 0.566426 | xxm0703 |
7f7839f7dcb0521e61a47769f53bc520472597d5 | 10,672 | cc | C++ | build/x86/python/m5/proxy.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/proxy.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/proxy.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_proxy[] = {
120,156,197,89,109,143,27,87,21,62,51,99,123,119,118,189,
47,201,54,155,132,190,196,105,26,98,42,54,219,22,210,38,
16,149,166,121,107,137,88,69,227,210,109,182,68,35,175,231,
122,215,142,61,246,206,92,167,187,210,6,137,20,9,62,131,
... | 57.686486 | 77 | 0.661638 | billionshang |
7f7dd1b306b847781944654fb55e6ef71804ca6d | 14,539 | cpp | C++ | z2c/Compiler_Expression.cpp | MasterZean/z2c-compiler-cpp | 20ceae268b2197439a4d0ff68e317d6d443c7840 | [
"Apache-2.0"
] | null | null | null | z2c/Compiler_Expression.cpp | MasterZean/z2c-compiler-cpp | 20ceae268b2197439a4d0ff68e317d6d443c7840 | [
"Apache-2.0"
] | null | null | null | z2c/Compiler_Expression.cpp | MasterZean/z2c-compiler-cpp | 20ceae268b2197439a4d0ff68e317d6d443c7840 | [
"Apache-2.0"
] | null | null | null | #include "Compiler.h"
#include "ErrorReporter.h"
#include "OverloadResolver.h"
#include "tables.h"
namespace Z2 {
String strops[] = { "@add", "@sub", "@mul", "@div", "@mod", "@shl", "@shr", "@less", "@lesseq", "@more", "@moreeq", "@eq", "@neq", "@minus", "@plus", "@not", "@bitnot" };
String ops[] = { "add", "sub"... | 26.628205 | 171 | 0.614692 | MasterZean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.