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 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3d323d783baec2c138768d7e519d4e7556b8201c | 5,302 | cc | C++ | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/ag_AguilaGuiTest.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/ag_AguilaGuiTest.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/ag_AguilaGuiTest.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #include "ag_AguilaGuiTest.h"
// External headers.
#include <boost/filesystem.hpp>
// Project headers.
#include "dal_Exception.h"
// Module headers.
#include "ag_Aguila.h"
#include "ag_Viewer.h"
/*!
\file
This file contains the implementation of the AguilaGuiTest class.
*/
namespace ag {
//---------------... | 22.277311 | 80 | 0.577707 |
3d35c3c9a7b42ea5e888bed29e718ccd70f36423 | 7,306 | hpp | C++ | include/argot/prov/switch_/detail/generate_switch_provision.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 49 | 2018-05-09T23:17:45.000Z | 2021-07-21T10:05:19.000Z | include/argot/prov/switch_/detail/generate_switch_provision.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | null | null | null | include/argot/prov/switch_/detail/generate_switch_provision.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 2 | 2019-08-04T03:51:36.000Z | 2020-12-28T06:53:29.000Z | /*==============================================================================
Copyright (c) 2017, 2018 Matt Calabrese
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)
=============================================... | 40.142857 | 85 | 0.656584 |
3d36745f5a28918e6248895cf2c1fea18e67768a | 3,807 | hpp | C++ | ext/lexertl/lexertl/partition/equivset.hpp | thangduong/tokenex | fbc124caf248aaf83b8fb5e293b38398da7b1d6a | [
"MIT"
] | null | null | null | ext/lexertl/lexertl/partition/equivset.hpp | thangduong/tokenex | fbc124caf248aaf83b8fb5e293b38398da7b1d6a | [
"MIT"
] | null | null | null | ext/lexertl/lexertl/partition/equivset.hpp | thangduong/tokenex | fbc124caf248aaf83b8fb5e293b38398da7b1d6a | [
"MIT"
] | null | null | null | // equivset.hpp
// Copyright (c) 2005-2017 Ben Hanson (http://www.benhanson.net/)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file licence_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef LEXERTL_EQUIVSET_HPP
#define LEXERTL_EQUIVSET_HPP
#include <algorithm>
#i... | 28.2 | 79 | 0.567113 |
3d39874c86d5a8d0607dff20b27d0641b0a681ce | 1,847 | cpp | C++ | mapping/src/mapperLazyTimesteps.cpp | xaedes/GNSS-Shadowing | a748e3063fb76272005b6430a844a53644cca9b0 | [
"MIT"
] | 29 | 2017-10-13T12:14:13.000Z | 2022-02-25T16:39:05.000Z | mapping/src/mapperLazyTimesteps.cpp | xaedes/GNSS-Shadowing | a748e3063fb76272005b6430a844a53644cca9b0 | [
"MIT"
] | null | null | null | mapping/src/mapperLazyTimesteps.cpp | xaedes/GNSS-Shadowing | a748e3063fb76272005b6430a844a53644cca9b0 | [
"MIT"
] | 8 | 2018-04-21T14:52:26.000Z | 2022-02-14T13:51:10.000Z |
#include "mapping/mapperLazyTimesteps.h"
#include <iostream>
namespace gnssShadowing {
namespace mapping {
MapperLazyTimesteps::MapperLazyTimesteps(world::World& world, MapProperties mapProperties, double startTimeUnixTimeSeconds, double timePerStep, double minimumSatelliteElevation)
: m_world(world)
... | 27.567164 | 181 | 0.651326 |
3d3bb9d6ec3066e7ae8aa645808da6c09ff82951 | 678 | cpp | C++ | simple_model_loader/src/main.cpp | JacobNeal/gl-projects | 4ea40797fde28602b9f787f0ec8005dcd164e054 | [
"MIT"
] | null | null | null | simple_model_loader/src/main.cpp | JacobNeal/gl-projects | 4ea40797fde28602b9f787f0ec8005dcd164e054 | [
"MIT"
] | null | null | null | simple_model_loader/src/main.cpp | JacobNeal/gl-projects | 4ea40797fde28602b9f787f0ec8005dcd164e054 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include "ModelLoader.hpp"
#include "Model.hpp"
#include "Window.hpp"
#include "Logger.hpp"
LOGGER_DECL
int main()
{
Window window("Simple Model Loader", 800, 640);
ModelLoader modelLoader;
Model * model = modelLoader.load("cube.MODEL");
while (!window.isDone... | 14.73913 | 51 | 0.589971 |
3d3ee1870119b322c1714c4886457ca06e699be7 | 1,010 | cpp | C++ | src/random/NormalDistribution.cpp | cuhkshenzhen/CUHKSZLib | 4ad122d7e736cda3e768c8ae8dcad1f9fb195a1f | [
"MIT"
] | null | null | null | src/random/NormalDistribution.cpp | cuhkshenzhen/CUHKSZLib | 4ad122d7e736cda3e768c8ae8dcad1f9fb195a1f | [
"MIT"
] | 29 | 2017-04-26T09:15:28.000Z | 2017-05-21T15:50:37.000Z | src/random/NormalDistribution.cpp | cuhkshenzhen/CUHKSZLib | 4ad122d7e736cda3e768c8ae8dcad1f9fb195a1f | [
"MIT"
] | 7 | 2017-04-26T09:32:39.000Z | 2021-11-03T02:00:07.000Z | #include "random/NormalDistribution.h"
#include <cmath>
#include "utils/error.h"
namespace cuhksz {
void NormalDistribution::init(double mean, double stddev) {
if (stddev <= 0) {
error("Invalid parameter `stddev` for NormalDistribution");
}
mean_ = mean;
stddev_ = stddev;
}
double NormalDistribution::nex... | 24.634146 | 63 | 0.664356 |
3d3ff38fa83b28d3310c62eecfd311f8e5a1c197 | 8,097 | cc | C++ | tests/types/traits/logical.cc | evanacox/freestanding-rt | 44cb68d86654f07fe82c0a44a139f90ed5730ac3 | [
"BSD-3-Clause"
] | null | null | null | tests/types/traits/logical.cc | evanacox/freestanding-rt | 44cb68d86654f07fe82c0a44a139f90ed5730ac3 | [
"BSD-3-Clause"
] | null | null | null | tests/types/traits/logical.cc | evanacox/freestanding-rt | 44cb68d86654f07fe82c0a44a139f90ed5730ac3 | [
"BSD-3-Clause"
] | null | null | null | //======---------------------------------------------------------------======//
// //
// Copyright 2021-2022 Evan Cox <evanacox00@gmail.com>. All rights reserved. //
// //
... | 57.835714 | 108 | 0.682845 |
3d406ccf27012fa7f5b609ec3291bada72ac6268 | 140 | hpp | C++ | template-bot/src/utils.hpp | bmstu-iu8-cpp-sem-1/homework-telegram-bot | 138f6611e4ca08b9a5c4dde76c54af1cefe6504c | [
"MIT"
] | 2 | 2021-03-09T08:12:28.000Z | 2022-02-21T18:10:36.000Z | template-bot/src/utils.hpp | sjuda/telegram-bot | 11f7bb7f24044bdd4e0d30b7a65757e5a4d1be8d | [
"MIT"
] | null | null | null | template-bot/src/utils.hpp | sjuda/telegram-bot | 11f7bb7f24044bdd4e0d30b7a65757e5a4d1be8d | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <boost/locale.hpp>
namespace Utils
{
std::string fromLocale(const std::string& localeStr);
}
| 12.727273 | 57 | 0.714286 |
3d420cd5393eba0250fc200d6e0304cc05ed703d | 3,343 | cpp | C++ | Code/System/Resource/ResourceLoader.cpp | JuanluMorales/KRG | f3a11de469586a4ef0db835af4bc4589e6b70779 | [
"MIT"
] | 419 | 2022-01-27T19:37:43.000Z | 2022-03-31T06:14:22.000Z | Code/System/Resource/ResourceLoader.cpp | jagt/KRG | ba20cd8798997b0450491b0cc04dc817c4a4bc76 | [
"MIT"
] | 2 | 2022-01-28T20:35:33.000Z | 2022-03-13T17:42:52.000Z | Code/System/Resource/ResourceLoader.cpp | jagt/KRG | ba20cd8798997b0450491b0cc04dc817c4a4bc76 | [
"MIT"
] | 20 | 2022-01-27T20:41:02.000Z | 2022-03-26T16:16:57.000Z | #include "ResourceLoader.h"
#include "ResourceHeader.h"
#include "System/Core/Serialization/BinaryArchive.h"
#include "System/Core/Logging/Log.h"
//-------------------------------------------------------------------------
namespace KRG::Resource
{
bool ResourceLoader::Load( ResourceID const& resourceID, ... | 44.573333 | 177 | 0.638648 |
3d447cbeece9cbf1aa1dc04cf5ba3f18bd7e77fd | 2,937 | cc | C++ | moe/moe-core/moe.apple/moe.core.native/android.art.compiler/src/main/native/compiler_common_gen/image_writer_operator_out.cc | ark100/multi-os-engine | f71d66a58b3d7e5eb2a68541480b7a0d88c7b908 | [
"Apache-2.0"
] | 1 | 2020-05-11T18:36:25.000Z | 2020-05-11T18:36:25.000Z | moe/moe-core/moe.apple/moe.core.native/android.art.compiler/src/main/native/compiler_common_gen/image_writer_operator_out.cc | ark100/multi-os-engine | f71d66a58b3d7e5eb2a68541480b7a0d88c7b908 | [
"Apache-2.0"
] | null | null | null | moe/moe-core/moe.apple/moe.core.native/android.art.compiler/src/main/native/compiler_common_gen/image_writer_operator_out.cc | ark100/multi-os-engine | f71d66a58b3d7e5eb2a68541480b7a0d88c7b908 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014-2016 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | 49.779661 | 131 | 0.765066 |
3d4aedc2125a1985f141e06caed48c4ba3c24f50 | 1,991 | hpp | C++ | aslam_optimizer/sparse_block_matrix/test/sbm_gtest.hpp | PushyamiKaveti/kalibr | d8bdfc59ee666ef854012becc93571f96fe5d80c | [
"BSD-4-Clause"
] | 2,690 | 2015-01-07T03:50:23.000Z | 2022-03-31T20:27:01.000Z | aslam_optimizer/sparse_block_matrix/test/sbm_gtest.hpp | PushyamiKaveti/kalibr | d8bdfc59ee666ef854012becc93571f96fe5d80c | [
"BSD-4-Clause"
] | 481 | 2015-01-27T10:21:00.000Z | 2022-03-31T14:02:41.000Z | aslam_optimizer/sparse_block_matrix/test/sbm_gtest.hpp | PushyamiKaveti/kalibr | d8bdfc59ee666ef854012becc93571f96fe5d80c | [
"BSD-4-Clause"
] | 1,091 | 2015-01-26T21:21:13.000Z | 2022-03-30T01:55:33.000Z | /**
* @file sbm_gtest.hpp
* @author Paul Furgale <paul.furgale@gmail.com>
* @date Wed Jan 11 09:29:57 2012
*
* @brief Helper functions for unit testing SBM
*
*
*/
#ifndef _SBM_GTEST_H_
#define _SBM_GTEST_H_
namespace sparse_block_matrix {
template<typename MATRIX1_TYPE, typename MATRIX2_TYPE, typ... | 36.87037 | 126 | 0.550979 |
3d4c6a768bef0b77475e30aa4f9b42aff74bbba1 | 444 | cpp | C++ | codeforces/1108B.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | codeforces/1108B.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | codeforces/1108B.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
#define le 130
using namespace std;
int n[le];
map<int, int> mp;
int main(){
//freopen("input.txt", "r", stdin);
int len, mx = -INT_MAX, mx1 = -INT_MAX;
scanf("%d", &len);
for(int i = 0; i < len; i++){
scanf("%d", &n[i]);
mx = max(mx, n[i]);
}
for(int i = 0; i < len; i++){
... | 21.142857 | 60 | 0.481982 |
3d4cbc776bb8b6c4f70872c069f5e89785342846 | 620 | cpp | C++ | c++11/understanding-cpp11/chapter7/7-3-13.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter7/7-3-13.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter7/7-3-13.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | #include <vector>
#include <algorithm>
using namespace std;
vector<int> nums;
vector<int> largeNums;
const int ubound = 10;
inline void LargeNumsFunc(int i){
if (i > ubound)
largeNums.push_back(i);
}
void Above() {
// 传统的for循环
for (auto itr = nums.begin(); itr != nums.end(); ++itr) {
if ... | 19.375 | 61 | 0.562903 |
3d4cc3e641a6d66de21abeea0c2035956e900a7d | 5,612 | cpp | C++ | FBConsole.cpp | StereoRocker/fbconsole | a0ad55525f1c6a0a048147f8d5317a081fe372f0 | [
"BSD-3-Clause"
] | null | null | null | FBConsole.cpp | StereoRocker/fbconsole | a0ad55525f1c6a0a048147f8d5317a081fe372f0 | [
"BSD-3-Clause"
] | null | null | null | FBConsole.cpp | StereoRocker/fbconsole | a0ad55525f1c6a0a048147f8d5317a081fe372f0 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 Dominic Houghton. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Framebuffer console driver, using the I_Framebuffer interface
#include "FBConsole.hpp"
template <class T>
FBConsole<T>::FBConsole(I_Framebuffer<T>* frame... | 30.335135 | 115 | 0.50392 |
3d4ce5463fc1e90aa8c6ff5511f4d0f941e7304c | 4,819 | cpp | C++ | librtt/Display/Rtt_ClosedPath.cpp | pouwelsjochem/corona | 86ffe9002e42721b4bb2c386024111d995e7b27c | [
"MIT"
] | null | null | null | librtt/Display/Rtt_ClosedPath.cpp | pouwelsjochem/corona | 86ffe9002e42721b4bb2c386024111d995e7b27c | [
"MIT"
] | null | null | null | librtt/Display/Rtt_ClosedPath.cpp | pouwelsjochem/corona | 86ffe9002e42721b4bb2c386024111d995e7b27c | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: support@coronalabs.com
//
////////////////////////... | 19.913223 | 128 | 0.599709 |
3d4d428b5518f3ebfb7a75e47af0c31a1f7b8b90 | 271 | cpp | C++ | tester-webserv/CppTester/src/Utility/close_pipe.cpp | aprilmayjune135/42_web_server | 46bc46dd6a0008119842e3848d4fe57fcd84526b | [
"MIT"
] | 2 | 2022-01-04T13:07:46.000Z | 2022-01-04T13:08:50.000Z | tester-webserv/CppTester/src/Utility/close_pipe.cpp | aprilmayjune135/web-server | 46bc46dd6a0008119842e3848d4fe57fcd84526b | [
"MIT"
] | 3 | 2021-09-27T08:35:34.000Z | 2021-11-25T09:49:52.000Z | tester-webserv/CppTester/src/Utility/close_pipe.cpp | aprilmayjune135/web-server | 46bc46dd6a0008119842e3848d4fe57fcd84526b | [
"MIT"
] | 2 | 2021-11-17T20:26:55.000Z | 2021-12-22T21:54:24.000Z | #include "utility.hpp"
#include "macros.hpp"
#include <unistd.h>
#include <stdio.h>
namespace util
{
void closeFd(int fd)
{
if (close(fd) == -1)
{
syscallError(_FUNC_ERR("close"));
}
}
void closePipe(int* fds)
{
closeFd(fds[0]);
closeFd(fds[1]);
}
}
| 12.318182 | 36 | 0.612546 |
3d5308430ff86e27b6bdd8de09fc22daa0968ff1 | 460 | cpp | C++ | src/util/bip32.cpp | ligui2003/BCEX | 2f34c68fce7215d36c5520e46fe83321a6df4408 | [
"Apache-2.0"
] | 4 | 2020-05-02T08:07:37.000Z | 2021-07-09T03:17:00.000Z | src/util/bip32.cpp | ligui2003/BCEX | 2f34c68fce7215d36c5520e46fe83321a6df4408 | [
"Apache-2.0"
] | null | null | null | src/util/bip32.cpp | ligui2003/BCEX | 2f34c68fce7215d36c5520e46fe83321a6df4408 | [
"Apache-2.0"
] | 3 | 2019-07-01T18:40:12.000Z | 2021-07-09T03:17:01.000Z | // Copyright (c) 2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <sstream>
#include <stdio.h>
#include "util/tinyformat.h"
#include "util/bip32.h"
#include "util/strencodings.h"
bool... | 24.210526 | 82 | 0.743478 |
3d5811c0d2006ec2c33ae0fdf33af47b00862d3d | 752 | cpp | C++ | halfacookie.cpp | nemo201/Kattis | 887711eece263965a4529048011847f7a2749fec | [
"MIT"
] | null | null | null | halfacookie.cpp | nemo201/Kattis | 887711eece263965a4529048011847f7a2749fec | [
"MIT"
] | null | null | null | halfacookie.cpp | nemo201/Kattis | 887711eece263965a4529048011847f7a2749fec | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define trav(a, x) for(auto& a : x)
#define all(x) x.begin(), x.end()
#define sz(x) (int)(x).size()
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
int main() {
cout << fixed << setprecision(4);
... | 30.08 | 94 | 0.482713 |
3d59a072f742b1c1ae7225767f5ef46ae0edec0c | 1,088 | cpp | C++ | Tree Algorithms/Distance Queries.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | 2 | 2022-02-12T12:30:13.000Z | 2022-02-12T13:59:20.000Z | Tree Algorithms/Distance Queries.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | 2 | 2022-02-12T11:09:41.000Z | 2022-02-12T11:55:49.000Z | Tree Algorithms/Distance Queries.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
vector<vector<int>> adjList;
int up[(int)(2e5+1.5)][20] {};
vector<int>tin,tout,d;
int n,q,timer;
void dfs(int curr,int pre){
tin[curr]=timer++;
up[curr][0]=pre;
for (int i=1;i<20;++i){
up[curr][i]=up[up[curr][i-1]][i-1];
}
for (int &v:adjList[curr]){
if (v==pre)... | 19.087719 | 53 | 0.579963 |
3d5b8c15d444b1fe8d4086f4a81a95f4f38fec7f | 1,718 | cpp | C++ | plugins/robots/common/kitBase/src/blocksBase/common/getButtonCodeBlock.cpp | anastasia143/qreal | 9bd224b41e569c9c50ab88848a5746a010c65ad7 | [
"Apache-2.0"
] | 39 | 2015-01-26T16:18:43.000Z | 2021-12-20T23:36:41.000Z | plugins/robots/common/kitBase/src/blocksBase/common/getButtonCodeBlock.cpp | anastasia143/qreal | 9bd224b41e569c9c50ab88848a5746a010c65ad7 | [
"Apache-2.0"
] | 1,248 | 2019-02-21T19:32:09.000Z | 2022-03-29T16:50:04.000Z | plugins/robots/common/kitBase/src/blocksBase/common/getButtonCodeBlock.cpp | anastasia143/qreal | 9bd224b41e569c9c50ab88848a5746a010c65ad7 | [
"Apache-2.0"
] | 58 | 2015-03-03T12:57:28.000Z | 2020-05-09T15:54:42.000Z | /* Copyright 2007-2015 QReal Research Group
*
* 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... | 26.030303 | 111 | 0.735157 |
3d5e27cb374a8905ccf9b4d80607ae7935995314 | 2,235 | cpp | C++ | sdlpaint/rcolor.cpp | cbries/utilities | 86ce97d2c3e0d13b9beb0fc6ec79d31945c14461 | [
"MIT"
] | 1 | 2015-02-22T17:40:23.000Z | 2015-02-22T17:40:23.000Z | sdlpaint/rcolor.cpp | cbries/utilities | 86ce97d2c3e0d13b9beb0fc6ec79d31945c14461 | [
"MIT"
] | null | null | null | sdlpaint/rcolor.cpp | cbries/utilities | 86ce97d2c3e0d13b9beb0fc6ec79d31945c14461 | [
"MIT"
] | null | null | null | /**
* Copyright (C) 2007 Christian B. Ries
* License: MIT
* Website: https://github.com/cbries/utilities
*/
#include "rcolor.h"
RColor::RColor()
{
setType( COLOR );
}
RColor::RColor( const SDL_Surface * surface,
int xpos, int ypos,
int width, int height )
: RButton( surface, xpos, ypos, width, height ... | 33.358209 | 102 | 0.536913 |
3d5fbc8152f3d044e3385f2629cd0cc7640b2fc8 | 110 | hpp | C++ | include/lib_B/lib_B.hpp | dep-heaven/lib_B | c7b119372bfe85b8bff8a6dc42c5955a5e2b03fd | [
"MIT"
] | null | null | null | include/lib_B/lib_B.hpp | dep-heaven/lib_B | c7b119372bfe85b8bff8a6dc42c5955a5e2b03fd | [
"MIT"
] | null | null | null | include/lib_B/lib_B.hpp | dep-heaven/lib_B | c7b119372bfe85b8bff8a6dc42c5955a5e2b03fd | [
"MIT"
] | null | null | null | #ifndef LIB_B_HPP
#define LIB_B_HPP
namespace lib_B {
int fn_b();
} // namespace lib_B
#endif // LIB_B_HPP | 11 | 20 | 0.718182 |
87d1f145000427ebc429b437c62dd6992a6a9d1e | 2,299 | cpp | C++ | src/_cxx11/_semaphore.cpp | ombre5733/weos | 2c3edef042fa80baa7c8fb968ba3104b7119cf2d | [
"BSD-2-Clause"
] | 11 | 2015-10-06T21:00:30.000Z | 2021-07-27T05:54:44.000Z | src/_cxx11/_semaphore.cpp | ombre5733/weos | 2c3edef042fa80baa7c8fb968ba3104b7119cf2d | [
"BSD-2-Clause"
] | null | null | null | src/_cxx11/_semaphore.cpp | ombre5733/weos | 2c3edef042fa80baa7c8fb968ba3104b7119cf2d | [
"BSD-2-Clause"
] | 1 | 2015-10-03T03:51:28.000Z | 2015-10-03T03:51:28.000Z | /*******************************************************************************
WEOS - Wrapper for embedded operating systems
Copyright (c) 2013-2016, Manuel Freiberger
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the foll... | 30.653333 | 80 | 0.680731 |
87d364317e653c45917da8b33c7adfcf1e21c6ab | 10,868 | cpp | C++ | cobs/construction/compact_index.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | cobs/construction/compact_index.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | cobs/construction/compact_index.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | /*******************************************************************************
* cobs/construction/compact_index.cpp
*
* Copyright (c) 2018 Florian Gauger
*
* All rights reserved. Published under the MIT License in the LICENSE file.
******************************************************************************/... | 36.592593 | 80 | 0.544442 |
87d7b5b251da24ca870ee9f024016db0aed12c78 | 42,165 | cpp | C++ | MatlabToolbox/external/tinyXml/tinyxml2_wrap.cpp | sigurdal/AutoActive-Matlab-toolbox | 2fad294d62f91ff192eb2d7c6980bc41cffef0f9 | [
"Apache-2.0"
] | 1 | 2020-07-03T10:19:48.000Z | 2020-07-03T10:19:48.000Z | MatlabToolbox/external/tinyXml/tinyxml2_wrap.cpp | SINTEF/AutoActive-core | 3e2cb7bbbae8c6b5f812cf85795d3daf738f4633 | [
"Apache-2.0"
] | null | null | null | MatlabToolbox/external/tinyXml/tinyxml2_wrap.cpp | SINTEF/AutoActive-core | 3e2cb7bbbae8c6b5f812cf85795d3daf738f4633 | [
"Apache-2.0"
] | 1 | 2022-03-29T11:10:39.000Z | 2022-03-29T11:10:39.000Z | /*
* XML serializing/deserializing of MATLAB arrays
* author: Ladislav Dobrovsky (dobrovsky@fme.vutbr.cz, ladislav.dobrovsky@gmail.com)
*
* last change: 2015-03-17
*
*
* 2015-02-28 Peter van den Biggelaar Handle structure similar to xml_load from Matlab Central
* 2015-03-05 Ladislav Do... | 34.675164 | 168 | 0.579106 |
87dd82ed0539a26de1a25c25eeb2fc8dda035205 | 892 | hh | C++ | dune/xt/common/python.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 2 | 2020-02-08T04:08:52.000Z | 2020-08-01T18:54:14.000Z | dune/xt/common/python.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 35 | 2019-08-19T12:06:35.000Z | 2020-03-27T08:20:39.000Z | dune/xt/common/python.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:09:34.000Z | 2020-02-08T04:09:34.000Z | // This file is part of the dune-xt project:
// https://zivgitlab.uni-muenster.de/ag-ohlberger/dune-community/dune-xt
// Copyright 2009-2021 dune-xt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (h... | 29.733333 | 95 | 0.719731 |
87dda1ed26f9e38adf47580171f95e67e0d5d7d0 | 24,417 | cpp | C++ | src/dialman.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 9 | 2020-04-01T04:15:22.000Z | 2021-09-26T21:03:47.000Z | src/dialman.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 17 | 2020-04-02T19:38:40.000Z | 2020-04-12T05:47:08.000Z | src/dialman.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************/
/* SOURCE CONTROL VERSIONS */
/*---------------------------------------------------------------------------*/
/* ... | 27.009956 | 91 | 0.60507 |
87ddf5a2e5a3747713708066b0d4f8f8c710746c | 3,835 | cpp | C++ | VGP242/06_HelloTexturing/GameState.cpp | TheJimmyGod/JimmyGod_Engine | b9752c6fbd9db17dc23f03330b5e4537bdcadf8e | [
"MIT"
] | null | null | null | VGP242/06_HelloTexturing/GameState.cpp | TheJimmyGod/JimmyGod_Engine | b9752c6fbd9db17dc23f03330b5e4537bdcadf8e | [
"MIT"
] | null | null | null | VGP242/06_HelloTexturing/GameState.cpp | TheJimmyGod/JimmyGod_Engine | b9752c6fbd9db17dc23f03330b5e4537bdcadf8e | [
"MIT"
] | null | null | null | #include "GameState.h"
using namespace JimmyGod::Input;
using namespace JimmyGod::Graphics;
using namespace JimmyGod::Math;
void GameState::Initialize()
{
GraphicsSystem::Get()->SetClearColor(Colors::Black);
mCamera.SetPosition({ 0.0f,0.0f,-5.0f });
mCamera.SetDirection({ 0.0f,0.0f,1.0f });
/* Home... | 30.19685 | 145 | 0.690743 |
87e0ec19e6f60dc42bcc6fa3a417c0796aee134d | 1,187 | hpp | C++ | include/codegen/include/GlobalNamespace/BeatmapEventData.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/BeatmapEventData.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/BeatmapEventData.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: BeatmapEventType
#include "GlobalNamespace/BeatmapEvent... | 35.969697 | 101 | 0.699242 |
87e24f9b179db7cf817f62262a028bed3a77134d | 3,987 | hpp | C++ | src/main/cpp/USSL/BasicArithmatic.hpp | Crtl-F5/F5RC-Kernel | 145cf9f7a34463226e68112033f56e0d121425e3 | [
"MIT"
] | 1 | 2018-08-12T03:50:19.000Z | 2018-08-12T03:50:19.000Z | src/main/cpp/USSL/BasicArithmatic.hpp | Crtl-F5/F5RC-Kernel | 145cf9f7a34463226e68112033f56e0d121425e3 | [
"MIT"
] | null | null | null | src/main/cpp/USSL/BasicArithmatic.hpp | Crtl-F5/F5RC-Kernel | 145cf9f7a34463226e68112033f56e0d121425e3 | [
"MIT"
] | null | null | null | #pragma once
#include <ProgramType.hpp>
namespace USSL
{
inline void ADD(ProgramType* args, unsigned char* programMemory)
{
switch (args[0].type)
{
case b: *((signed char*)programMemory + args[0].data.i) = args[1].data.b + args[2].data.b; break;
case s: *((signed short*)... | 56.957143 | 114 | 0.563582 |
87e7683708abea0b9a5cf4c0ecbae75ffdf6184e | 1,582 | cpp | C++ | acmicpc/16235.cpp | juseongkr/BOJ | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 7 | 2020-02-03T10:00:19.000Z | 2021-11-16T11:03:57.000Z | acmicpc/16235.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:58:24.000Z | 2021-01-03T06:58:24.000Z | acmicpc/16235.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2020-01-22T14:34:03.000Z | 2020-01-22T14:34:03.000Z | #include <iostream>
#include <algorithm>
#include <cstring>
#include <vector>
using namespace std;
#define MAX 11
const int dx[8] = {-1, -1, -1, 0, 0, 1, 1, 1};
const int dy[8] = {-1, 0, 1, -1, 1, -1, 0, 1};
int n, m, k, x, y, z;
int map[MAX][MAX], nou[MAX][MAX], new_tree[MAX][MAX];
bool visit[MAX][MAX];
vector<int> t... | 19.530864 | 53 | 0.453224 |
87e9cd99ee6892015e96a6141a5649aad854bde2 | 1,580 | cpp | C++ | libnativeipc/src/ConnectionFactory.cpp | stream-labs/twitch-native-ipc | 81154497fcf55288c51cb5c93e95014ec4f0644d | [
"MIT"
] | 8 | 2020-10-12T21:44:47.000Z | 2021-07-29T16:58:41.000Z | libnativeipc/src/ConnectionFactory.cpp | ConnectionMaster/twitch-native-ipc | 81154497fcf55288c51cb5c93e95014ec4f0644d | [
"MIT"
] | 1 | 2021-08-28T03:11:34.000Z | 2021-08-28T03:11:34.000Z | libnativeipc/src/ConnectionFactory.cpp | ConnectionMaster/twitch-native-ipc | 81154497fcf55288c51cb5c93e95014ec4f0644d | [
"MIT"
] | 3 | 2020-10-02T17:34:57.000Z | 2021-08-28T03:11:23.000Z | // Copyright Twitch Interactive, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT
#include "ClientConnection.h"
#include "ConnectionFactoryPrivate.h"
#include "Pipe-ClientTransport.h"
#include "Pipe-ServerTransport.h"
#include "TCP-ClientTransport.h"
#include "TCP-ServerTransport.h"
#includ... | 32.244898 | 140 | 0.772152 |
87eeb246a6f0325edcc78761210938ddb9930ff2 | 516 | cc | C++ | ChiTech/ChiMesh/Region/chi_region.cc | Jrgriss2/chi-tech | db75df761d5f25ca4b79ee19d36f886ef240c2b5 | [
"MIT"
] | 7 | 2019-09-10T12:16:08.000Z | 2021-05-06T16:01:59.000Z | ChiTech/ChiMesh/Region/chi_region.cc | Jrgriss2/chi-tech | db75df761d5f25ca4b79ee19d36f886ef240c2b5 | [
"MIT"
] | 72 | 2019-09-04T15:00:25.000Z | 2021-12-02T20:47:29.000Z | ChiTech/ChiMesh/Region/chi_region.cc | Jrgriss2/chi-tech | db75df761d5f25ca4b79ee19d36f886ef240c2b5 | [
"MIT"
] | 41 | 2019-09-02T15:33:31.000Z | 2022-02-10T13:26:49.000Z | #include "chi_region.h"
#include "chi_log.h"
extern ChiLog& chi_log;
//###################################################################
/** Obtains the latest created grid from the region.*/
chi_mesh::MeshContinuumPtr chi_mesh::Region::GetGrid()
{
if (this->volume_mesh_continua.empty())
{
chi_log.Log(LOG_... | 25.8 | 69 | 0.602713 |
87eed6ecbee0098d46274cc62d47f0f864ad77bf | 18,482 | cpp | C++ | mainwindow.cpp | Chady00/Three-Rocks-Game | 40e803e329080bc4f759599bd8561ed65914247f | [
"MIT"
] | null | null | null | mainwindow.cpp | Chady00/Three-Rocks-Game | 40e803e329080bc4f759599bd8561ed65914247f | [
"MIT"
] | null | null | null | mainwindow.cpp | Chady00/Three-Rocks-Game | 40e803e329080bc4f759599bd8561ed65914247f | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QPlainTextEdit>
#include<QLabel>
#include<QColor>
#include <QApplication>
#include <QProcess>
#include<QTime>
#include<QString>
#include<QThread>
#include<QtDebug>
#include<QMessageBox>
////////////////////////////////////////////////
int counte... | 25.111413 | 102 | 0.511092 |
87efcf503e4fdf4c4251b35612961e906b8b0b90 | 1,361 | cpp | C++ | TP/starters 12/maxpoint.cpp | ShyrenMore/DSA_Docs | 7d489326799886afd8d5f7ec7f4b88311e86e582 | [
"Unlicense"
] | null | null | null | TP/starters 12/maxpoint.cpp | ShyrenMore/DSA_Docs | 7d489326799886afd8d5f7ec7f4b88311e86e582 | [
"Unlicense"
] | null | null | null | TP/starters 12/maxpoint.cpp | ShyrenMore/DSA_Docs | 7d489326799886afd8d5f7ec7f4b88311e86e582 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define deb(x) cout << #x << ": " << x << endl;
#define deb2(x, y) cout << #x << ": " << x << " ~ " << #y << ": " << y << endl;
#define in(n, arr) \
for (int i = 0; i < n; i++) \
cin >> arr[i]
#define out(n, arr) \
for (int i = 0; i < n; i++) \
cout << a... | 24.745455 | 79 | 0.404849 |
87f309380c4edea79fa65041f91153ead7e3da12 | 6,775 | cpp | C++ | src/change.cpp | janreerink/CarND-Path-Planning-Project | ef9d3f19603cdde3096c5f4bd25ab4f1679c619a | [
"MIT"
] | null | null | null | src/change.cpp | janreerink/CarND-Path-Planning-Project | ef9d3f19603cdde3096c5f4bd25ab4f1679c619a | [
"MIT"
] | null | null | null | src/change.cpp | janreerink/CarND-Path-Planning-Project | ef9d3f19603cdde3096c5f4bd25ab4f1679c619a | [
"MIT"
] | null | null | null | #include <list>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
double consider_change(int lane, vector<vector<double>> sensor_fusion, double current_speed, double car_s, int prev_size, double same_lane_dist)
{
int rec_lane = lane;
std::list<int> potential_lanes;... | 29.714912 | 161 | 0.601919 |
87f3b27586d6ffea1b2d3b216f9bea13a9ef1fad | 12,602 | cpp | C++ | game_server/test/misc_test.cpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | 5 | 2017-07-20T10:36:23.000Z | 2018-01-30T16:18:31.000Z | game_server/test/misc_test.cpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | null | null | null | game_server/test/misc_test.cpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | null | null | null | #include "misc_test.hpp"
#include <cstring>
#include <cstdio>
#include <cinttypes>
#include <constants.hpp>
using namespace std;
int fails = 0;
int tests = 0;
int math_tests()
{
fails = 0;
tests = 0;
// TODO tests go here
//test binary_to_num
string test1 = "1101";
string test2 = "00001101";
string tes... | 38.656442 | 187 | 0.610062 |
87f60818cf08ceae83d9cce078c75e5de85c125d | 33,887 | cpp | C++ | Blizzlike/ArcEmu/C++/World/ScriptMgr.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/ArcEmu/C++/World/ScriptMgr.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/ArcEmu/C++/World/ScriptMgr.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* ArcEmu MMORPG Server
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2008-2011 <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software... | 30.25625 | 174 | 0.741051 |
87ff0fe2e6931d5ab67336efe927a2c045ad694d | 1,584 | cpp | C++ | Cpp-Projects/Part_02_Foundation/L4_writing_multiple_programs/13_Classes_and_OOP/1_Code_without_Objects/main.cpp | selfbeing/selfdriving | 8a40db76e5aa4ac3b0f83a855e4ca29b99b90dd9 | [
"MIT"
] | null | null | null | Cpp-Projects/Part_02_Foundation/L4_writing_multiple_programs/13_Classes_and_OOP/1_Code_without_Objects/main.cpp | selfbeing/selfdriving | 8a40db76e5aa4ac3b0f83a855e4ca29b99b90dd9 | [
"MIT"
] | null | null | null | Cpp-Projects/Part_02_Foundation/L4_writing_multiple_programs/13_Classes_and_OOP/1_Code_without_Objects/main.cpp | selfbeing/selfdriving | 8a40db76e5aa4ac3b0f83a855e4ca29b99b90dd9 | [
"MIT"
] | null | null | null | /*
Code without Objects
Suppose you were writing a program to model several cars.
In your program, you want to keep track of each car's color and the distance the car has traveled,
and you want to be able to increment this distance and print out the car's properties.
You could write something like the code below to ac... | 36 | 108 | 0.705177 |
e2008f873e49dc817c7bbea2579cd98fb7e09b25 | 4,792 | cpp | C++ | sdh/crc.cpp | ipab-slmc/SDHLibrary-CPP | 0217d4edf82f34292750240bd7a3d9c63feb7e33 | [
"Apache-2.0"
] | 2 | 2021-11-12T09:28:45.000Z | 2021-12-22T09:09:31.000Z | sdh/crc.cpp | ipab-slmc/SDHLibrary-CPP | 0217d4edf82f34292750240bd7a3d9c63feb7e33 | [
"Apache-2.0"
] | null | null | null | sdh/crc.cpp | ipab-slmc/SDHLibrary-CPP | 0217d4edf82f34292750240bd7a3d9c63feb7e33 | [
"Apache-2.0"
] | 2 | 2019-05-02T20:03:29.000Z | 2019-06-24T14:50:42.000Z | //======================================================================
/*!
\file
\section sdhlibrary_cpp_crc_cpp_general General file information
\author Dirk Osswald
\date 2007-02-19
\brief
Implementation of class #SDH::cCRC_DSACON32m (actually only the static members all other is derived).... | 42.785714 | 105 | 0.515442 |
e207034aa51177b9803721c97bffdf7abe9ae688 | 279 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/rend/WindShapeAnchorPointVert.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/rend/WindShapeAnchorPointVert.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/rend/WindShapeAnchorPointVert.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
namespace RED4ext
{
namespace rend {
enum class WindShapeAnchorPointVert : uint32_t
{
AP_CENTER = 0,
AP_TOP = 1,
AP_BOTTOM = 2,
};
} // namespace rend
} // namespace RED4ext
| 16.411765 | 57 | 0.698925 |
e20737d3135a49e21df6882d87d3d9136988046b | 786 | hpp | C++ | source/gui/LogEntry.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:18.000Z | 2021-12-26T12:48:18.000Z | source/gui/LogEntry.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | null | null | null | source/gui/LogEntry.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:25.000Z | 2021-12-26T12:48:25.000Z | #pragma once
#include <VehicleID.hpp>
class LogEntry {
public:
std::string timestamp;
std::string source;
std::string text;
uint8_t color[3];
/**
* @brief Create a log entry.
* @param [in] timestamp The UTC second of the day.
* @param [in] sour... | 25.354839 | 112 | 0.554707 |
e208cd81c87125355ee128e641604a7199345678 | 1,545 | cpp | C++ | libpigpiodpp/test/pihardwaremanagerfactorytests.cpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | null | null | null | libpigpiodpp/test/pihardwaremanagerfactorytests.cpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | 14 | 2019-11-17T14:46:25.000Z | 2021-03-10T02:48:40.000Z | libpigpiodpp/test/pihardwaremanagerfactorytests.cpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include "tendril/devices/i2cdevicedata.hpp"
#include "tendril/devices/pca9685.hpp"
#include "pigpiodpp/pihardwaremanagerfactory.hpp"
BOOST_AUTO_TEST_SUITE( PiHardwareManagerFactory )
BOOST_AUTO_TEST_CASE( Smoke )
{
Tendril::HardwareManagerData config;
auto hwm = PiGPIOdpp::G... | 32.1875 | 66 | 0.756634 |
e20a1779c288f36bf771964a87d0f79255b286bb | 10,634 | cpp | C++ | Quickhaptics/examples/ShapeDepthFeedback/ShapeDepthFeedbackGLUT/src/main.cpp | Stalpaard/SensoHapt | 74c90f1f4b1a17bd94109bc6543a864006849c75 | [
"MIT"
] | null | null | null | Quickhaptics/examples/ShapeDepthFeedback/ShapeDepthFeedbackGLUT/src/main.cpp | Stalpaard/SensoHapt | 74c90f1f4b1a17bd94109bc6543a864006849c75 | [
"MIT"
] | null | null | null | Quickhaptics/examples/ShapeDepthFeedback/ShapeDepthFeedbackGLUT/src/main.cpp | Stalpaard/SensoHapt | 74c90f1f4b1a17bd94109bc6543a864006849c75 | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
//OpenHaptics QuickHaptics - Depth and Feedback Buffer Example
//SensAble Technologies, Woburn, MA
//September 03, 2008
//Programmer: Hari Vasudevan
//////////////////////////////////////////////////////////////////////////////
#include <Q... | 43.227642 | 152 | 0.639552 |
e20eea4aa0e49a939e83748eb6704d8bf33e8e06 | 545 | cpp | C++ | 440. K-th Smallest in Lexicographical Order/solution.cpp | zlsun/leetcode | 438d0020a701d7aa6a82eee0e46e5b11305abfda | [
"MIT"
] | null | null | null | 440. K-th Smallest in Lexicographical Order/solution.cpp | zlsun/leetcode | 438d0020a701d7aa6a82eee0e46e5b11305abfda | [
"MIT"
] | null | null | null | 440. K-th Smallest in Lexicographical Order/solution.cpp | zlsun/leetcode | 438d0020a701d7aa6a82eee0e46e5b11305abfda | [
"MIT"
] | null | null | null | /** 440. K-th Smallest in Lexicographical Order
Given integers n and k, find the lexicographically k-th smallest integer in the range from 1 to n.
Note: 1 ≤ k ≤ n ≤ 109.
Example:
Input:
n: 13 k: 2
Output:
10
Explanation:
The lexicographical order is [1, 10, 11, 12, 13, 2, 3, 4, 5, 6, 7, 8, 9], so the se... | 16.029412 | 110 | 0.638532 |
e2120377a58db75c38aa97ec4ec682b2383728db | 15,892 | cc | C++ | qbmove_manipulator/build/msgs/pos_current_echo_request.pb.cc | valeria-parnenzini/qbmove_manipulator | b51f5c1d8d091e1b3f84a257f6ea45977c00edd0 | [
"Apache-2.0"
] | 1 | 2020-10-28T12:44:44.000Z | 2020-10-28T12:44:44.000Z | qbmove_manipulator/build/msgs/pos_current_echo_request.pb.cc | valeria-parnenzini/qbmove_manipulator | b51f5c1d8d091e1b3f84a257f6ea45977c00edd0 | [
"Apache-2.0"
] | null | null | null | qbmove_manipulator/build/msgs/pos_current_echo_request.pb.cc | valeria-parnenzini/qbmove_manipulator | b51f5c1d8d091e1b3f84a257f6ea45977c00edd0 | [
"Apache-2.0"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pos_current_echo_request.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "pos_current_echo_request.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/p... | 33.812766 | 112 | 0.703499 |
e2149b5c91c3ba0cb374d5e5506b3b243b969ff1 | 1,709 | hpp | C++ | src/core/Math.hpp | bferan/lucent | b19163df12739ffc513110d927e92f98c0b54321 | [
"MIT"
] | 1 | 2021-11-12T08:42:43.000Z | 2021-11-12T08:42:43.000Z | src/core/Math.hpp | bferan/lucent | b19163df12739ffc513110d927e92f98c0b54321 | [
"MIT"
] | null | null | null | src/core/Math.hpp | bferan/lucent | b19163df12739ffc513110d927e92f98c0b54321 | [
"MIT"
] | null | null | null | #pragma once
#include <cmath>
#include "math.h"
namespace lucent
{
constexpr float kPi = 3.14159265358979323846;
constexpr float k2Pi = kPi * 2.0f;
constexpr float kHalfPi = kPi / 2.0f;
// Math wrapper functions:
inline float Sqrt(float x)
{
return std::sqrt(x);
}
inline float Sin(float radians)
{
return ... | 14.008197 | 72 | 0.647162 |
e216b026375f1dfdaeeb490f3eeb344d5e13abb4 | 1,052 | cpp | C++ | control/examples/pegel/main.cpp | devfix/b15f | 5a49a37e69cca99359a98e1ef29a83043afed5e5 | [
"MIT"
] | 1 | 2019-10-26T18:37:49.000Z | 2019-10-26T18:37:49.000Z | control/examples/pegel/main.cpp | devfix/b15f | 5a49a37e69cca99359a98e1ef29a83043afed5e5 | [
"MIT"
] | null | null | null | control/examples/pegel/main.cpp | devfix/b15f | 5a49a37e69cca99359a98e1ef29a83043afed5e5 | [
"MIT"
] | 1 | 2022-03-26T16:06:23.000Z | 2022-03-26T16:06:23.000Z | #include <iostream>
#include <cmath>
#include <b15f/b15f.h>
#include <b15f/plottyfile.h>
/*
* Inkrementiert DAC 0 von 0 bis 1023 und speichert zu jeder Ausgabe den Wert von ADC 0 in einem Puffer.
* Die Funktion ADC 0 abhängig von DAC 0 wird als Graph geplottet.
*/
const char PLOT_FILE[] = "plot.bin";
int main()
{... | 21.04 | 104 | 0.635932 |
e21babaa579368d6960e67e4357583b0514be73d | 17,289 | cpp | C++ | engine/hltvclient.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | cstrike15_src/engine/hltvclient.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | cstrike15_src/engine/hltvclient.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //===== Copyright (c) Valve Corporation, All rights reserved. ======//
//
// hltvclient.cpp: implementation of the CHLTVClient class.
//
// $NoKeywords: $
//
//==================================================================//
#include <tier0/vprof.h>
#include "hltvclient.h"
#include "netmessages.h"
#include "hltvse... | 28.066558 | 208 | 0.692116 |
e21c6fa48127900170983abd4d0f273513c10bf7 | 44,201 | cpp | C++ | deprecated-code/Ajisai/Integrators/BidirectionalPath.cpp | siyuanpan/ajisai_render | 203d79235bf698c1a4a747be291c0f3050b213da | [
"MIT"
] | null | null | null | deprecated-code/Ajisai/Integrators/BidirectionalPath.cpp | siyuanpan/ajisai_render | 203d79235bf698c1a4a747be291c0f3050b213da | [
"MIT"
] | null | null | null | deprecated-code/Ajisai/Integrators/BidirectionalPath.cpp | siyuanpan/ajisai_render | 203d79235bf698c1a4a747be291c0f3050b213da | [
"MIT"
] | null | null | null | /*
Copyright 2021 Siyuan Pan <pansiyuan.cs@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, including without limitation
the rights to use, copy, modify, merge, publ... | 36.111928 | 80 | 0.573878 |
e21d279030ae945e07b298fba9765629f435c3ad | 13,800 | cpp | C++ | lib/Sema/DerivedConformanceVectorProtocol.cpp | eaplatanios/swift-language | be21761f8fb4fe8763dc4786b64819b827fad2f2 | [
"Apache-2.0"
] | 2 | 2020-04-30T06:02:35.000Z | 2020-10-16T12:25:28.000Z | lib/Sema/DerivedConformanceVectorProtocol.cpp | eaplatanios/swift-language | be21761f8fb4fe8763dc4786b64819b827fad2f2 | [
"Apache-2.0"
] | null | null | null | lib/Sema/DerivedConformanceVectorProtocol.cpp | eaplatanios/swift-language | be21761f8fb4fe8763dc4786b64819b827fad2f2 | [
"Apache-2.0"
] | 1 | 2021-09-12T16:22:05.000Z | 2021-09-12T16:22:05.000Z | //===--- DerivedConformanceVectorProtocol.cpp -----------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | 44.37299 | 80 | 0.706957 |
e2228f6754b8bbf31357a6f7086c29b17ac48b84 | 6,380 | hpp | C++ | libctrpf/include/CTRPluginFrameworkImpl/Menu/KeyboardImpl.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/include/CTRPluginFrameworkImpl/Menu/KeyboardImpl.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/include/CTRPluginFrameworkImpl/Menu/KeyboardImpl.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | #ifndef CTRPLUGINFRAMEWORKIMPL_KEYBOARD_HPP
#define CTRPLUGINFRAMEWORKIMPL_KEYBOARD_HPP
#include "CTRPluginFrameworkImpl/Graphics.hpp"
#include "CTRPluginFramework/Graphics/CustomIcon.hpp"
#include "CTRPluginFrameworkImpl/Graphics/TouchKey.hpp"
#include "CTRPluginFrameworkImpl/Graphics/TouchKeyString.hpp"
#include "CT... | 38.902439 | 96 | 0.54185 |
e224e709d74a393c04acd3371847fe9ca1d0b0e3 | 704 | cpp | C++ | 152-maxProductSubarray.cpp | riasood02/leetcoding-problems | 568bb4e323acb57e274b87c07969a772f011259e | [
"Unlicense"
] | 5 | 2020-10-06T13:10:04.000Z | 2021-06-07T02:07:59.000Z | 152-maxProductSubarray.cpp | riasood02/leetcoding-problems | 568bb4e323acb57e274b87c07969a772f011259e | [
"Unlicense"
] | 5 | 2020-10-05T17:23:57.000Z | 2020-10-10T12:56:15.000Z | 152-maxProductSubarray.cpp | riasood02/leetcoding-problems | 568bb4e323acb57e274b87c07969a772f011259e | [
"Unlicense"
] | 43 | 2020-10-05T17:31:56.000Z | 2020-10-29T23:47:53.000Z | // https://leetcode.com/problems/maximum-product-subarray/
class Solution {
public:
int maxProduct(vector<int>& nums) {
int cur = INT_MIN;
vector<int> a(nums.size(),0);
vector<int> b(nums.size(),0);
a[0] = nums[0];
b[0] = nums[0];
int ma = a[0];
for(int i = 1... | 27.076923 | 58 | 0.400568 |
e226f459cd362e116b198f580aba183789202887 | 653 | cc | C++ | autofuzz/lcms_fuzz.cc | Munyola/security-research-pocs | bbbd8ccf20999800a736070b379d5116731aa1f5 | [
"Apache-2.0"
] | 2 | 2020-09-18T04:59:08.000Z | 2020-12-28T18:59:36.000Z | autofuzz/lcms_fuzz.cc | Sicks3c/security-research-pocs | bbbd8ccf20999800a736070b379d5116731aa1f5 | [
"Apache-2.0"
] | null | null | null | autofuzz/lcms_fuzz.cc | Sicks3c/security-research-pocs | bbbd8ccf20999800a736070b379d5116731aa1f5 | [
"Apache-2.0"
] | 1 | 2021-06-08T17:12:24.000Z | 2021-06-08T17:12:24.000Z | #include <stdint.h>
#include <string>
#include "lcms2.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
if (size < 2) {
return 0;
}
size_t mid = size / 2;
cmsHPROFILE hInProfile, hOutProfile;
cmsHTRANSFORM hTransform;
hInProfile = cmsOpenProfileFromMem(data, mid);
hOutPr... | 24.185185 | 73 | 0.689127 |
e22cbd6c605e06532af43dbbde37760a540e4ad3 | 2,773 | hpp | C++ | src/cpp/basic_lot.hpp | plewis/phycas | 9f5a4d9b2342dab907d14a46eb91f92ad80a5605 | [
"MIT"
] | 3 | 2015-09-24T23:12:57.000Z | 2021-04-12T07:07:01.000Z | src/cpp/basic_lot.hpp | plewis/phycas | 9f5a4d9b2342dab907d14a46eb91f92ad80a5605 | [
"MIT"
] | null | null | null | src/cpp/basic_lot.hpp | plewis/phycas | 9f5a4d9b2342dab907d14a46eb91f92ad80a5605 | [
"MIT"
] | 1 | 2015-11-23T10:35:43.000Z | 2015-11-23T10:35:43.000Z | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
| Phycas: Python software for phylogenetic analysis |
| Copyright (C) 2006 Mark T. Holder, Paul O. Lewis and David L. Swofford |
| |
... | 33.011905 | 120 | 0.510999 |
e2338d870195e71b2e20868ca3757af7d5680636 | 5,493 | cpp | C++ | src/uavpc/Pose/PoseService.cpp | filipdutescu/uavpc | 050bd19b103f2cf7cdac9fd167d8965d0032c5ec | [
"Apache-2.0"
] | 2 | 2021-10-11T02:54:08.000Z | 2021-10-11T09:29:59.000Z | src/uavpc/Pose/PoseService.cpp | filipdutescu/uavpc | 050bd19b103f2cf7cdac9fd167d8965d0032c5ec | [
"Apache-2.0"
] | null | null | null | src/uavpc/Pose/PoseService.cpp | filipdutescu/uavpc | 050bd19b103f2cf7cdac9fd167d8965d0032c5ec | [
"Apache-2.0"
] | null | null | null | #include "uavpc/Pose/PoseService.hpp"
#include <ctime>
#include <iostream>
#include <stdexcept>
#include <string>
#include <opencv2/core/types.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/videoio.hpp>
#include <openpose/core/matrix.hpp>
#include <openpose/core/point.hpp>
#incl... | 25.910377 | 101 | 0.57728 |
e23ab9f821e9f74c8baa4061e876516778c0842a | 422 | cpp | C++ | CanadianExperience/CanadianExperience/Testing/CAnimChannelAngleTest.cpp | NicholsTyler/cse_335 | b8a46522c15a9881cb681ae94b4a5f737817b05e | [
"MIT"
] | null | null | null | CanadianExperience/CanadianExperience/Testing/CAnimChannelAngleTest.cpp | NicholsTyler/cse_335 | b8a46522c15a9881cb681ae94b4a5f737817b05e | [
"MIT"
] | null | null | null | CanadianExperience/CanadianExperience/Testing/CAnimChannelAngleTest.cpp | NicholsTyler/cse_335 | b8a46522c15a9881cb681ae94b4a5f737817b05e | [
"MIT"
] | null | null | null | #include "pch.h"
#include "CppUnitTest.h"
#include "AnimChannelAngle.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace Testing
{
TEST_CLASS(CAnimChannelAngleTest)
{
public:
TEST_METHOD(TestCAnimChannelAngleName)
{
CAnimChannelAngle channel;
channel.SetNam... | 16.230769 | 74 | 0.687204 |
e24129d77e249d87a686a143648196a9981f0b01 | 788 | cpp | C++ | SumNumber/SumNumber.cpp | Tupiet/Learncpp-tutorial | d9c382687d0f7f6dca4bd18c1c78d11368047726 | [
"MIT"
] | null | null | null | SumNumber/SumNumber.cpp | Tupiet/Learncpp-tutorial | d9c382687d0f7f6dca4bd18c1c78d11368047726 | [
"MIT"
] | null | null | null | SumNumber/SumNumber.cpp | Tupiet/Learncpp-tutorial | d9c382687d0f7f6dca4bd18c1c78d11368047726 | [
"MIT"
] | null | null | null |
// This app will, simply, sum two numbers that we'll input from the console. It's an easy program.
#include "sum.h" // Including the header with the math logic
#include "getInput.h" // Including the header with all the inputs
#include "utilities.h" // This includes some utilities that will made this easy t... | 31.52 | 101 | 0.643401 |
e249cc60aa888d14c8688687992cf22d8f83ba50 | 1,069 | hpp | C++ | include/gclib/gc_delete.hpp | axilmar/gclib | 1d2707238b549d889a7c9b097d599a36e3841da4 | [
"Apache-2.0"
] | 2 | 2021-11-24T18:49:09.000Z | 2022-01-11T04:30:43.000Z | include/gclib/gc_delete.hpp | axilmar/gclib | 1d2707238b549d889a7c9b097d599a36e3841da4 | [
"Apache-2.0"
] | null | null | null | include/gclib/gc_delete.hpp | axilmar/gclib | 1d2707238b549d889a7c9b097d599a36e3841da4 | [
"Apache-2.0"
] | 1 | 2020-10-27T09:51:06.000Z | 2020-10-27T09:51:06.000Z | #ifndef GCLIB_GC_DELETE_HPP
#define GCLIB_GC_DELETE_HPP
#include "gc_new_array.hpp"
namespace gclib {
/**
* Deletes an object pointed to by the given pointer.
* @param p pointer to object to delete; can be null; if not null, then it should have a value returned by gc_new,
* otherwise the opera... | 22.270833 | 118 | 0.558466 |
e249ede58f2470a9c1f7e80dc03b41cb69fcfeb0 | 6,519 | cpp | C++ | src/VDBMapping.cpp | fzi-forschungszentrum-informatik/vdb_mapping | b15e5349309f82fc05d39152865d6eb43fe75215 | [
"Apache-2.0"
] | 12 | 2021-04-15T10:22:41.000Z | 2022-03-16T16:35:13.000Z | src/VDBMapping.cpp | fzi-forschungszentrum-informatik/vdb_mapping | b15e5349309f82fc05d39152865d6eb43fe75215 | [
"Apache-2.0"
] | 2 | 2021-12-06T18:13:43.000Z | 2022-03-25T11:05:07.000Z | src/VDBMapping.cpp | fzi-forschungszentrum-informatik/vdb_mapping | b15e5349309f82fc05d39152865d6eb43fe75215 | [
"Apache-2.0"
] | 2 | 2021-06-30T10:28:44.000Z | 2022-03-17T10:39:12.000Z | // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
// -- BEGIN LICENSE BLOCK ----------------------------------------------
// Copyright 2021 FZI Forschungszentrum Informatik
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... | 32.432836 | 99 | 0.637828 |
f46d513866d62800e662f5381531cf2cd4b82e88 | 2,430 | cpp | C++ | control/groupsform.cpp | TheMrButcher/offline-mentor | 15c362710fc993b21ed2d23adfc98e797e2380db | [
"MIT"
] | null | null | null | control/groupsform.cpp | TheMrButcher/offline-mentor | 15c362710fc993b21ed2d23adfc98e797e2380db | [
"MIT"
] | 101 | 2017-03-11T19:09:46.000Z | 2017-09-04T17:37:55.000Z | control/groupsform.cpp | TheMrButcher/offline-mentor | 15c362710fc993b21ed2d23adfc98e797e2380db | [
"MIT"
] | 1 | 2018-03-13T03:47:15.000Z | 2018-03-13T03:47:15.000Z | #include "groupsform.h"
#include "ui_groupsform.h"
#include "group_utils.h"
#include "groupdialog.h"
GroupsForm::GroupsForm(QWidget *parent) :
QWidget(parent),
ui(new Ui::GroupsForm)
{
ui->setupUi(this);
}
GroupsForm::~GroupsForm()
{
delete ui;
}
void GroupsForm::load()
{
ui->listWidget->clear();... | 25.578947 | 86 | 0.671605 |
f46e2fffcd01d3db771283a05a6a14e9cb327b97 | 432 | cpp | C++ | ArkEngineTest/ArkEngineTest.cpp | gamedevboy/ArkEngine | 1fb1fb153ac73fcbfa75f8e02eb5a26e8993ff01 | [
"MIT"
] | null | null | null | ArkEngineTest/ArkEngineTest.cpp | gamedevboy/ArkEngine | 1fb1fb153ac73fcbfa75f8e02eb5a26e8993ff01 | [
"MIT"
] | null | null | null | ArkEngineTest/ArkEngineTest.cpp | gamedevboy/ArkEngine | 1fb1fb153ac73fcbfa75f8e02eb5a26e8993ff01 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CppUnitTest.h"
#include "../ArkEngine/include/ArkEngine/AEModuleManager.h"
#include "../ArkEngine/include/ArkEngine/gfx/AEGFXDevice.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace ArkEngineTest
{
TEST_CLASS(ArkEngineTest)
{
public:
TEST_METHOD(Module... | 19.636364 | 62 | 0.743056 |
f472b7a520d86afbd6c1e38b9fa9230bfe2880da | 3,156 | cpp | C++ | day11/day11.cpp | throx/advent2020 | 071dee09e6bb2596c3f78c19f9c97d076798c8b3 | [
"Unlicense"
] | null | null | null | day11/day11.cpp | throx/advent2020 | 071dee09e6bb2596c3f78c19f9c97d076798c8b3 | [
"Unlicense"
] | null | null | null | day11/day11.cpp | throx/advent2020 | 071dee09e6bb2596c3f78c19f9c97d076798c8b3 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <numeric>
using namespace std;
int NumOcc(const vector<string>& seats, int x, int y)
{
int maxx = seats[0].length();
int maxy = seats.size();
int numocc = 0;
for (int x1 = max(0, x - 1); x1 < min(maxx, x + 2); ++x1) {
for (int y... | 21.616438 | 104 | 0.398289 |
f474d24b5559b63aa17cce38e93e1ffaff1cee97 | 2,098 | cpp | C++ | cpp/leetcode/RemoveComments.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/leetcode/RemoveComments.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/leetcode/RemoveComments.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | //Leetcode Problem No 722 Remove Comments
//Solution written by Xuqiang Fang on 30 May, 2018
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>
#include <stack>
#include <queue>
#include <regex>
using namespace std;
class Solution{
public:
... | 28.739726 | 203 | 0.408008 |
f4758d1ca2a898ed6dab41ffc92a79c178fe68b9 | 993 | hpp | C++ | Converter/include/converter.hpp | ref-humbold/CPlusPlus-Gtk | acd78ea9ec0fe94c5847b532a05a33b4ca23d898 | [
"MIT"
] | 1 | 2020-08-06T08:06:43.000Z | 2020-08-06T08:06:43.000Z | Converter/include/converter.hpp | ref-humbold/CPlusPlus-Gtk | acd78ea9ec0fe94c5847b532a05a33b4ca23d898 | [
"MIT"
] | null | null | null | Converter/include/converter.hpp | ref-humbold/CPlusPlus-Gtk | acd78ea9ec0fe94c5847b532a05a33b4ca23d898 | [
"MIT"
] | null | null | null | #ifndef CONVERTER_HPP_
#define CONVERTER_HPP_
#include <cstdlib>
#include <cmath>
#include <exception>
#include <iostream>
#include <stdexcept>
#include <algorithm>
#include <string>
#include <vector>
#include <numeric>
class converter_exception : public std::logic_error
{
public:
explicit converter_exception(con... | 20.265306 | 78 | 0.683787 |
f47cb5a5ca81f778eccc1c89e0c3879162d31a72 | 1,921 | cpp | C++ | mp3encoder/jni/mp3_encoder/libmp3_encoder/mp3_encoder.cpp | belieflong/media-dev-android | 6103cdce4725bc9ab1a8d5d085abbdab26a164dc | [
"Apache-2.0"
] | null | null | null | mp3encoder/jni/mp3_encoder/libmp3_encoder/mp3_encoder.cpp | belieflong/media-dev-android | 6103cdce4725bc9ab1a8d5d085abbdab26a164dc | [
"Apache-2.0"
] | null | null | null | mp3encoder/jni/mp3_encoder/libmp3_encoder/mp3_encoder.cpp | belieflong/media-dev-android | 6103cdce4725bc9ab1a8d5d085abbdab26a164dc | [
"Apache-2.0"
] | null | null | null | #include "mp3_encoder.h"
#define LOG_TAG "Mp3Encoder"
Mp3Encoder::Mp3Encoder() {
}
Mp3Encoder::~Mp3Encoder() {
}
int Mp3Encoder::Init(const char* pcmFilePath, const char *mp3FilePath, int sampleRate, int channels, int bitRate) {
int ret = -1;
pcmFile = fopen(pcmFilePath, "rb");
if(pcmFile) {
mp3File = fopen(mp... | 28.671642 | 146 | 0.68506 |
f47e2107c702f649175447aec68f6acf7eaff645 | 254 | hpp | C++ | pythran/pythonic/include/operator_/__itruediv__.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/operator_/__itruediv__.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/operator_/__itruediv__.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_OPERATOR_ITRUEDIV__HPP
#define PYTHONIC_INCLUDE_OPERATOR_ITRUEDIV__HPP
#include "pythonic/include/operator_/itruediv.hpp"
namespace pythonic
{
namespace operator_
{
USING_FUNCTOR(__itruediv__, itruediv);
}
}
#endif
| 15.875 | 50 | 0.807087 |
f47e9665cb2ddbe80c4ea6ef19e806cc109ec4d8 | 5,435 | cpp | C++ | LexRisLogic/src/MathStructures/Polygon.cpp | chanochambure/LexRisLogicHeaders | 00a07ac1aa3f5122dcbe7a38c2e3e7dc740ed2f6 | [
"MIT"
] | 2 | 2016-01-31T03:32:25.000Z | 2020-12-07T02:59:35.000Z | LexRisLogic/src/MathStructures/Polygon.cpp | chanochambure/LexRisLogicHeaders | 00a07ac1aa3f5122dcbe7a38c2e3e7dc740ed2f6 | [
"MIT"
] | null | null | null | LexRisLogic/src/MathStructures/Polygon.cpp | chanochambure/LexRisLogicHeaders | 00a07ac1aa3f5122dcbe7a38c2e3e7dc740ed2f6 | [
"MIT"
] | null | null | null | /* Polygon.cpp -- Polygon Math Structure Source - LexRis Logic Headers
Copyright (c) 2017-2018 LexRisLogic
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, includi... | 39.384058 | 119 | 0.552714 |
f4858b21356f076b7544d53c05055b358c718911 | 3,229 | hpp | C++ | src/Zv8/V8Engine.hpp | indie-zen/zen-server | deb4485fe462d6c88eeeadb09c62e6024e06ff67 | [
"MIT"
] | null | null | null | src/Zv8/V8Engine.hpp | indie-zen/zen-server | deb4485fe462d6c88eeeadb09c62e6024e06ff67 | [
"MIT"
] | 8 | 2016-12-06T15:55:28.000Z | 2016-12-18T17:31:36.000Z | src/Zv8/V8Engine.hpp | indie-zen/zen-server | deb4485fe462d6c88eeeadb09c62e6024e06ff67 | [
"MIT"
] | null | null | null | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
// V8 plugin for Zen Scripting
//
// Copyright (C) 2001 - 2016 Raymond A. Richards
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
#pragma once
#include <Zen/Scripting/I_ScriptEngine.hpp>
#include <memory... | 35.483516 | 113 | 0.549396 |
f498dc62d5bebae3e8bd7c1efbc82658400f67d4 | 2,051 | cpp | C++ | Semester1/Homeworks/HW7.Lists/7.3/7.3/list.cpp | PavelSaltykov/Course1 | 68920c4a4679b6dd0e0b83cb8109d3c52d2cf076 | [
"Apache-2.0"
] | null | null | null | Semester1/Homeworks/HW7.Lists/7.3/7.3/list.cpp | PavelSaltykov/Course1 | 68920c4a4679b6dd0e0b83cb8109d3c52d2cf076 | [
"Apache-2.0"
] | 2 | 2019-12-17T11:58:46.000Z | 2019-12-21T20:08:01.000Z | Semester1/Homeworks/HW7.Lists/7.3/7.3/list.cpp | PavelSaltykov/Course1 | 68920c4a4679b6dd0e0b83cb8109d3c52d2cf076 | [
"Apache-2.0"
] | 1 | 2020-02-24T18:28:00.000Z | 2020-02-24T18:28:00.000Z | #include <stdio.h>
#include <string.h>
#include "list.h"
struct Entry
{
char *name = nullptr;
char *phone = nullptr;
Entry *next = nullptr;
};
struct List
{
int length = 0;
Entry *head = nullptr;
Entry *tail = nullptr;
};
List *createList()
{
return new List;
}
bool isEmpty(List *list)
{
return list->head =... | 15.537879 | 58 | 0.641151 |
f49da775121857bfc051cb595e70bbd9923d03ea | 3,588 | cpp | C++ | main.cpp | DennisZZH/CS263_Project_Garbage_Collector | 07e81c0eb532792cb3d1fd504b501bca67b5365d | [
"MIT"
] | null | null | null | main.cpp | DennisZZH/CS263_Project_Garbage_Collector | 07e81c0eb532792cb3d1fd504b501bca67b5365d | [
"MIT"
] | null | null | null | main.cpp | DennisZZH/CS263_Project_Garbage_Collector | 07e81c0eb532792cb3d1fd504b501bca67b5365d | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <sstream>
#include "frontend/lexer.h"
#include "frontend/parser.h"
#include "backend/codegen.h"
using namespace cs160::frontend;
using namespace cs160::backend;
void usage(char const* programName) {
std::cerr << "Usage: " << programName << " program.l2 [--gen-asm-only... | 31.752212 | 247 | 0.625139 |
f4a5bfba34e14bc084fff11d5e9053a3bf5831ca | 3,815 | cpp | C++ | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgWrappers/osgParticle/Emitter.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 3 | 2018-08-20T12:12:43.000Z | 2021-06-06T09:43:27.000Z | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgWrappers/osgParticle/Emitter.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | null | null | null | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgWrappers/osgParticle/Emitter.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 1 | 2022-03-31T03:12:23.000Z | 2022-03-31T03:12:23.000Z | // ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/Type... | 39.329897 | 133 | 0.603932 |
f4ab44e636aa92f02d494f3c626325500d4f0c26 | 666 | cpp | C++ | src/SerialMenu.cpp | rico-quidel/SerialMenu | 4891c0b670aecd23fd5c7d7906c012147f2c24b7 | [
"MIT"
] | 7 | 2020-02-02T21:13:26.000Z | 2021-07-27T22:24:50.000Z | src/SerialMenu.cpp | rico-quidel/SerialMenu | 4891c0b670aecd23fd5c7d7906c012147f2c24b7 | [
"MIT"
] | 4 | 2020-02-06T17:50:34.000Z | 2022-01-03T12:59:44.000Z | src/SerialMenu.cpp | rico-quidel/SerialMenu | 4891c0b670aecd23fd5c7d7906c012147f2c24b7 | [
"MIT"
] | 7 | 2020-12-22T01:23:49.000Z | 2022-02-23T12:59:25.000Z | ///////////////////////////////////////////////////////////////////////////////
// Serial port Menus
// SerialMenu - Copyright (c) 2019 Dan Truong
// See SerialMenu.hpp for details
///////////////////////////////////////////////////////////////////////////////
#define SERIALMENU_DISABLE_PROGMEM_SUPPORT true
#define SER... | 44.4 | 79 | 0.608108 |
f4ab84cd87a1853294e48fc98a7110a2fd1a11f9 | 6,507 | hpp | C++ | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_StdClass.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 216 | 2019-03-09T06:41:28.000Z | 2022-02-25T16:27:19.000Z | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_StdClass.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 9 | 2020-09-27T08:00:52.000Z | 2021-07-02T14:27:31.000Z | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_StdClass.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 29 | 2019-03-09T10:12:24.000Z | 2021-03-03T22:25:29.000Z | //
// FILE NAME: CIDMacroEng_StdClass.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 01/24/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://open... | 35.950276 | 78 | 0.442908 |
f4ac64b514f7a6a1259d2da3562e3034220407b8 | 16,221 | cc | C++ | swap-ssdb-1.9.2/tests/qa/integration/hash_test.cc | TimothyZhang023/swapdb | e40c1ddf46892e698acf54f26b02927f0505ea84 | [
"BSD-2-Clause"
] | 242 | 2017-12-14T00:31:28.000Z | 2022-02-16T02:00:15.000Z | swap-ssdb-1.9.2/tests/qa/integration/hash_test.cc | javaperson/swapdb | 66efd9f919dfaa56dcefd9b39a8bdabe57624546 | [
"BSD-2-Clause"
] | 7 | 2017-12-14T08:34:43.000Z | 2020-12-19T02:53:03.000Z | swap-ssdb-1.9.2/tests/qa/integration/hash_test.cc | javaperson/swapdb | 66efd9f919dfaa56dcefd9b39a8bdabe57624546 | [
"BSD-2-Clause"
] | 47 | 2017-12-26T03:11:26.000Z | 2022-01-26T07:46:45.000Z | #include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <sstream>
#include "SSDB_client.h"
#include "gtest/gtest.h"
#include "ssdb_test.h"
using namespace std;
class HashTest : public SSDBTest
{
public:
ssdb::Status s;
std::vector<std::string> list, keys, kvs2;
s... | 28.308901 | 87 | 0.573208 |
f4acf5c25709d692fda58cf417492ad69f05621d | 3,227 | cpp | C++ | src/HandGunC.cpp | pablojor/mood | 779af33ae3fc596c1749901917f67c0d8a14d63f | [
"MIT"
] | null | null | null | src/HandGunC.cpp | pablojor/mood | 779af33ae3fc596c1749901917f67c0d8a14d63f | [
"MIT"
] | 2 | 2020-04-12T14:01:00.000Z | 2020-05-20T12:53:11.000Z | src/HandGunC.cpp | NoVariableGlobal/mood | e3446857a1d309dfac71beaf6407bb905f02a912 | [
"MIT"
] | 1 | 2020-10-07T15:09:45.000Z | 2020-10-07T15:09:45.000Z | #include "HandGunC.h"
#include "BulletC.h"
#include "ComponentsManager.h"
#include "Entity.h"
#include "FactoriesFactory.h"
#include "Ogre.h"
#include "OgreQuaternion.h"
#include "RigidbodyPC.h"
#include "Scene.h"
#include "TransformComponent.h"
#include <json.h>
void HandGunC::onShoot(TransformComponent* transform, R... | 35.076087 | 80 | 0.662845 |
f4ad65e4c0e2b702c324528a34702eec26bceafb | 6,137 | cpp | C++ | opt_kappa.cpp | dokyum/tiLDA | 7dc3a2c8023bfc92b777fa9a2f50ace65209fccc | [
"Apache-2.0"
] | 2 | 2016-01-21T02:40:42.000Z | 2018-12-22T18:07:02.000Z | opt_kappa.cpp | vineelpratap/tiLDA | 7dc3a2c8023bfc92b777fa9a2f50ace65209fccc | [
"Apache-2.0"
] | null | null | null | opt_kappa.cpp | vineelpratap/tiLDA | 7dc3a2c8023bfc92b777fa9a2f50ace65209fccc | [
"Apache-2.0"
] | 2 | 2015-02-13T20:53:34.000Z | 2021-01-30T17:11:51.000Z | #include "opt_kappa.h"
#define KAPPA_NEWTON_THRESH 1e-6
#define KAPPA_MAX_ITER 5000
#define LIKELIHOOD_DECREASE_ALLOWANCE 1e-5
extern double oneoverk;
double opt_kappa(double* kappa, int ntopics, int nchildren,
double* dirichlet_prior,
double alpha, double tau,
double* digamma_sum_over_children,
... | 31.311224 | 112 | 0.653577 |
f4aef88cf32cde12ced412931608263def713ce6 | 1,686 | cpp | C++ | Utility/lib/src/utility/math_utils.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | 1 | 2019-07-10T04:25:45.000Z | 2019-07-10T04:25:45.000Z | Utility/lib/src/utility/math_utils.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | null | null | null | Utility/lib/src/utility/math_utils.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | null | null | null | #include "math_utils.hpp"
#include <cmath>
glm::vec3 MeanPoint(const std::vector<glm::vec3> & points){
glm::vec3 result(0.0, 0.0, 0.0);
auto size=points.size();
for(auto it=points.begin(); it<points.end(); ++it){
result += *it;
}
if(size>0){
result /= size;
}
return result;
}
float DegToRad(float angle_... | 21.896104 | 78 | 0.578885 |
f4b24fd42585dcb7dc04986e92fbbad1563f21a0 | 944 | cc | C++ | dreal/util/infty.cc | martinjos/dlinear4 | c0569f49762393eab2cd5d8823db8decb3cbe15e | [
"Apache-2.0"
] | 2 | 2020-07-12T18:01:24.000Z | 2020-10-02T21:11:51.000Z | dreal/util/infty.cc | martinjos/dlinear4 | c0569f49762393eab2cd5d8823db8decb3cbe15e | [
"Apache-2.0"
] | null | null | null | dreal/util/infty.cc | martinjos/dlinear4 | c0569f49762393eab2cd5d8823db8decb3cbe15e | [
"Apache-2.0"
] | null | null | null | /// @file infty.cc
///
#include "dreal/util/infty.h"
namespace dreal {
namespace util {
mpq_class* mpq_class_infinity = nullptr;
mpq_class* mpq_class_ninfinity = nullptr;
void InftyStart(double val) {
mpq_class_infinity = new mpq_class(val);
mpq_class_ninfinity = new mpq_class(-val);
}
void InftyStart(const mp... | 20.977778 | 63 | 0.739407 |
f4b9f8ed45470d551028eb05368f1f2c8ae8d057 | 2,856 | cpp | C++ | naklibsrc/src/core/MessageHash/Base58EncDec.cpp | murphyj8/testNakStructure | fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a | [
"Unlicense"
] | 1 | 2021-07-01T02:01:27.000Z | 2021-07-01T02:01:27.000Z | naklibsrc/src/core/MessageHash/Base58EncDec.cpp | murphyj8/testNakStructure | fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a | [
"Unlicense"
] | 1 | 2020-09-23T12:34:34.000Z | 2020-09-23T12:34:34.000Z | naklibsrc/src/core/MessageHash/Base58EncDec.cpp | murphyj8/testNakStructure | fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a | [
"Unlicense"
] | null | null | null | #include "MessageHash/Base58EncDec.h"
#include "MessageHash/Base58EncDecImpl.h"
Base58EncDec::Base58EncDec() : m_pImpl(new Base58EncDecImpl){
return ;
}
Base58EncDec::~Base58EncDec(){
return ;
}
std::string Base58EncDec::encode (const std::vector<uint8_t>& vch){
return (m_pImpl->encode(vch));
}
std::st... | 30.382979 | 105 | 0.644258 |
f4bafce0eb4329174202ea4c22b8e6b84b9afafe | 94,230 | cpp | C++ | src/raven_src/src/StandardOutput.cpp | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | src/raven_src/src/StandardOutput.cpp | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | src/raven_src/src/StandardOutput.cpp | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | /*----------------------------------------------------------------
Raven Library Source Code
Copyright (c) 2008-2020 the Raven Development Team
Includes CModel routines for writing output headers and contents:
CModel::CloseOutputStreams()
CModel::WriteOutputFileHeaders()
CModel::WriteMinorOutput()
... | 43.10613 | 171 | 0.582575 |
f4bc121c4304525c02031b34fad39c65d8a34747 | 798 | cpp | C++ | src/modules/osg/generated_code/ClipPlaneList.pypp.cpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 17 | 2015-06-01T12:19:46.000Z | 2022-02-12T02:37:48.000Z | src/modules/osg/generated_code/ClipPlaneList.pypp.cpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 7 | 2015-07-04T14:36:49.000Z | 2015-07-23T18:09:49.000Z | src/modules/osg/generated_code/ClipPlaneList.pypp.cpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 7 | 2015-11-28T17:00:31.000Z | 2020-01-08T07:00:59.000Z | // This file has been generated by Py++.
#include "boost/python.hpp"
#include "indexing_suite/container_suite.hpp"
#include "indexing_suite/vector.hpp"
#include "wrap_osg.h"
#include "_ref_ptr_less__osg_scope_ClipPlane__greater___value_traits.pypp.hpp"
#include "clipplanelist.pypp.hpp"
namespace bp = boost::python;
... | 36.272727 | 113 | 0.740602 |
f4bd24595ae54aaad502d864082ac65a7180b5d7 | 739 | cpp | C++ | Structure_and_pointer_using_arrow_operator.cpp | gptakhil/Cpp-Revision | ae2a9e9ed4eaeb66a4b00787637ae4ff3132b57b | [
"MIT"
] | null | null | null | Structure_and_pointer_using_arrow_operator.cpp | gptakhil/Cpp-Revision | ae2a9e9ed4eaeb66a4b00787637ae4ff3132b57b | [
"MIT"
] | null | null | null | Structure_and_pointer_using_arrow_operator.cpp | gptakhil/Cpp-Revision | ae2a9e9ed4eaeb66a4b00787637ae4ff3132b57b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
// Student structure
struct Student {
string name;
int roll_number;
int marks;
};
// main function
int main() {
// Declare structure variable
struct Student s1;
// Declare structure pointer
struct Student *ptrs1;
// Store address of structure variable in struc... | 19.972973 | 61 | 0.640054 |
f4bd493befc9a42fcd2e0c51b941f91c214307bd | 2,440 | cpp | C++ | metaforce-gui/CVarDialog.cpp | Jcw87/urde | fb9ea9092ad00facfe957ece282a86c194e9cbda | [
"MIT"
] | 267 | 2016-03-10T21:59:16.000Z | 2021-03-28T18:21:03.000Z | metaforce-gui/CVarDialog.cpp | cobalt2727/metaforce | 3bb05c0ee5dd9b1b8eaa861fc49713aef62c844a | [
"MIT"
] | 129 | 2016-03-12T10:17:32.000Z | 2021-04-05T20:45:19.000Z | metaforce-gui/CVarDialog.cpp | cobalt2727/metaforce | 3bb05c0ee5dd9b1b8eaa861fc49713aef62c844a | [
"MIT"
] | 31 | 2016-03-20T00:20:11.000Z | 2021-03-10T21:14:11.000Z | #include "CVarDialog.hpp"
#include "ui_CVarDialog.h"
#include <utility>
enum class CVarType {
String,
Boolean,
};
struct CVarItem {
QString m_name;
CVarType m_type;
QVariant m_defaultValue;
CVarItem(QString name, CVarType type, QVariant defaultValue)
: m_name(std::move(name)), m_type(type), m_defaultVa... | 30.886076 | 107 | 0.703279 |
f4bddf3d7b8570b8edff54fcafb5860712621925 | 2,097 | hpp | C++ | ziomon/ziorep_framer.hpp | nikita-dubrovskii/s390-tools | 074de1e14ed785c18f55ecf9762ac3f5de3465b4 | [
"MIT"
] | 43 | 2017-08-21T12:18:57.000Z | 2021-01-21T09:20:59.000Z | ziomon/ziorep_framer.hpp | nikita-dubrovskii/s390-tools | 074de1e14ed785c18f55ecf9762ac3f5de3465b4 | [
"MIT"
] | 99 | 2017-08-21T20:41:13.000Z | 2021-01-27T16:23:07.000Z | ziomon/ziorep_framer.hpp | nikita-dubrovskii/s390-tools | 074de1e14ed785c18f55ecf9762ac3f5de3465b4 | [
"MIT"
] | 37 | 2017-08-21T20:37:32.000Z | 2021-02-02T10:10:45.000Z | /*
* FCP report generators
*
* Class for reading messages into frames.
*
* Copyright IBM Corp. 2008, 2017
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#ifndef ZIOREP_FRAMER
#define ZIOREP_FRAMER
#include <list>
#i... | 25.573171 | 73 | 0.72103 |
f4bfc17b377b3c5017fcc97a6105b03afe47b3c0 | 27,119 | cpp | C++ | src/SphinxService.cpp | ExpandingDev/PyramidASR | dbfddc13bb6dde7a8e349e87e4ca9df229d64703 | [
"Unlicense"
] | null | null | null | src/SphinxService.cpp | ExpandingDev/PyramidASR | dbfddc13bb6dde7a8e349e87e4ca9df229d64703 | [
"Unlicense"
] | 10 | 2019-07-08T03:38:52.000Z | 2019-11-20T20:57:17.000Z | src/SphinxService.cpp | ExpandingDev/PyramidASR | dbfddc13bb6dde7a8e349e87e4ca9df229d64703 | [
"Unlicense"
] | null | null | null | #include "SphinxService.h"
#include "ReplyType.h"
#include "Buckey.h"
#include "HypothesisEventData.h"
#include <chrono>
using namespace std::chrono;
SphinxService * SphinxService::instance;
std::atomic<bool> SphinxService::instanceSet(false);
unsigned long SphinxService::onEnterPromptEventHandlerID;
unsigned long Sp... | 32.911408 | 245 | 0.668424 |
f4c255172c3cff4a99ca1c0952190ae2834d4131 | 848 | hpp | C++ | Object.hpp | LinarAbdrazakov/MIPT_GAME | 55d96906cb60752c3907fb83ce70910879dc4ed8 | [
"MIT"
] | null | null | null | Object.hpp | LinarAbdrazakov/MIPT_GAME | 55d96906cb60752c3907fb83ce70910879dc4ed8 | [
"MIT"
] | null | null | null | Object.hpp | LinarAbdrazakov/MIPT_GAME | 55d96906cb60752c3907fb83ce70910879dc4ed8 | [
"MIT"
] | null | null | null | #ifndef OBJECT_HPP
#define OBJECT_HPP
#include <SFML/Graphics.hpp>
class Object
{
private:
int id_;
sf::Sprite* sprite_;
sf::Vector2f coordinate_;
sf::Vector2f speed_;
sf::Vector2i size_;
float* dt_;
public:
explicit Object();
Object(const Object&);
Object(int, sf::Vector2f,... | 22.315789 | 64 | 0.595519 |
f4c3d5422d8acf9ab1abf0cfabafd06a5f731f38 | 1,493 | hpp | C++ | lib/qt/LocationListComboBox.hpp | ncorgan/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 4 | 2017-06-10T13:21:44.000Z | 2019-10-30T21:20:19.000Z | lib/qt/LocationListComboBox.hpp | PMArkive/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 12 | 2017-04-05T11:13:34.000Z | 2018-06-03T14:31:03.000Z | lib/qt/LocationListComboBox.hpp | PMArkive/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 2 | 2019-01-22T21:02:31.000Z | 2019-10-30T21:20:20.000Z | /*
* Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#ifndef PKMN_QT_LOCATIONLISTCOMBOBOX_HPP
#define PKMN_QT_LOCATIONLISTCOMBOBOX_HPP
#include <pkmn/config.hpp>
#ifdef ... | 27.145455 | 106 | 0.618218 |
f4c4917cbb9b86920862bb09496beeb71e3ec2c3 | 3,786 | cpp | C++ | src/VideoDevice.cpp | nayanavenkataramana/earlyapp | eafd8ae8507dee79d2b751f7c5d9320f5519029b | [
"MIT"
] | 5 | 2019-01-02T18:34:52.000Z | 2021-05-13T16:09:10.000Z | src/VideoDevice.cpp | nayanavenkataramana/earlyapp | eafd8ae8507dee79d2b751f7c5d9320f5519029b | [
"MIT"
] | 10 | 2018-10-26T06:11:45.000Z | 2019-06-24T06:25:43.000Z | src/VideoDevice.cpp | nayanavenkataramana/earlyapp | eafd8ae8507dee79d2b751f7c5d9320f5519029b | [
"MIT"
] | 20 | 2018-10-26T02:16:51.000Z | 2021-02-17T11:39:59.000Z | ////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2018 Intel Corporation
//
// 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 restr... | 25.409396 | 80 | 0.596408 |
f4c4ea6bac0a1d4a5e6e89bd188e9b83f1d875cb | 7,360 | cpp | C++ | src/caffe/layers/cross_correlation_layer.cpp | NicoleWang/caffe-for-rfcn | fafed9bac1b1ccb46ac11d1790f1ca4f86ce0d0d | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/cross_correlation_layer.cpp | NicoleWang/caffe-for-rfcn | fafed9bac1b1ccb46ac11d1790f1ca4f86ce0d0d | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/cross_correlation_layer.cpp | NicoleWang/caffe-for-rfcn | fafed9bac1b1ccb46ac11d1790f1ca4f86ce0d0d | [
"BSD-2-Clause"
] | null | null | null | #include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layers/cross_correlation_layer.hpp"
#include "caffe/util/math_functions.hpp"
#define DEBUG_INFO
#undef DEBUG_INFO
namespace caffe {
template <typename Dtype>
void CrossCorrelationLayer<Dtype>::Reshape(
const vector<Blob<Dtype>*>& bottom, con... | 40.43956 | 95 | 0.640353 |
f4c62a895f625fee35ffda86d37a343556908493 | 4,779 | cxx | C++ | PWG/FLOW/Tasks/AliAnalysisTaskLYZEventPlane.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | PWG/FLOW/Tasks/AliAnalysisTaskLYZEventPlane.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | PWG/FLOW/Tasks/AliAnalysisTaskLYZEventPlane.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | /*************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors are m... | 31.235294 | 93 | 0.686545 |
f4cab2b2c4c57009bb838b1d3b13e58fcdb8e847 | 787 | cpp | C++ | backend/sgx/trusted/src/encryption.cpp | alxshine/eNNclave | 639aa7e8df9440922788d0c2a79846b198f117aa | [
"MIT"
] | null | null | null | backend/sgx/trusted/src/encryption.cpp | alxshine/eNNclave | 639aa7e8df9440922788d0c2a79846b198f117aa | [
"MIT"
] | null | null | null | backend/sgx/trusted/src/encryption.cpp | alxshine/eNNclave | 639aa7e8df9440922788d0c2a79846b198f117aa | [
"MIT"
] | null | null | null | #include "encryption.h"
#include "sgxParameterLoader.h"
#include <memory>
#include "output.h"
using namespace eNNclave;
using namespace std;
namespace
{
std::unique_ptr<SgxParameterLoader> parameterLoader;
} // namespace
void open_encrypted_parameters()
{
parameterLoader = std::unique_ptr<SgxParameterLoader... | 23.848485 | 164 | 0.733164 |
f4cb58df8bc7c0e402744e2a1a91c261ba5edabc | 1,797 | cpp | C++ | src/Display.cpp | yann-boyer/OKUR | f575dbd3d06fa8f669bfadc2918e757168e231be | [
"Zlib"
] | 1 | 2022-03-22T15:10:44.000Z | 2022-03-22T15:10:44.000Z | src/Display.cpp | yann-boyer/OKUR | f575dbd3d06fa8f669bfadc2918e757168e231be | [
"Zlib"
] | null | null | null | src/Display.cpp | yann-boyer/OKUR | f575dbd3d06fa8f669bfadc2918e757168e231be | [
"Zlib"
] | null | null | null | /*
This file is a part of OKUR.
This file contains code to emulate
Chip8 screen.
Copyright (c) 2022 - Yann BOYER.
*/
#include "Display.hpp"
Display::Display() {
chip8Window = SDL_CreateWindow(
"OKUR Chip8 Emu by Yann BOYER.",
SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED,
WINDOW_WIDTH,
WINDOW_HEIGHT,
SD... | 23.337662 | 85 | 0.723984 |
f4d79e89943264d79c4041097bad11fe2e7f6c89 | 37,548 | cpp | C++ | 3p/ClassLib/Windows/window.cpp | stbrenner/NiLogViewer | e6fe2b57da6d7bd61983cf7e8f0ee3139cc0ce20 | [
"MIT"
] | 2 | 2018-11-20T15:58:08.000Z | 2021-12-15T14:51:10.000Z | 3p/ClassLib/Windows/window.cpp | stbrenner/NiLogViewer | e6fe2b57da6d7bd61983cf7e8f0ee3139cc0ce20 | [
"MIT"
] | 1 | 2016-12-27T08:26:27.000Z | 2016-12-27T08:26:27.000Z | 3p/ClassLib/Windows/window.cpp | ymx/NiLogViewer | e6fe2b57da6d7bd61983cf7e8f0ee3139cc0ce20 | [
"MIT"
] | 1 | 2016-08-09T10:44:48.000Z | 2016-08-09T10:44:48.000Z | //
// window.cpp
//
// (C) Copyright 2000 Jan van den Baard.
// All Rights Reserved.
//
#include "window.h"
#include "mdiwindow.h"
#include "../application.h"
#include "../gdi/gdiobject.h"
#include "../gdi/dc.h"
#include "../menus/menu.h"
#include "../menus/bitmapmenu.h"
#include "../tools/multimonitor.h"
#include... | 26.800857 | 177 | 0.6562 |
f4d992fa6259231d30a542a191c9d94793d23fc2 | 3,110 | cpp | C++ | libs/ofxLineaDeTiempo/src/View/KeyframeTrackHeader.cpp | roymacdonald/ofxLineaDeTiempo | 1a080c7d5533dc9b0e587bd1557506fe288f05e8 | [
"MIT"
] | 31 | 2020-04-29T06:11:54.000Z | 2021-11-10T19:14:09.000Z | libs/ofxLineaDeTiempo/src/View/KeyframeTrackHeader.cpp | roymacdonald/ofxLineaDeTiempo | 1a080c7d5533dc9b0e587bd1557506fe288f05e8 | [
"MIT"
] | 11 | 2020-07-27T17:12:05.000Z | 2021-12-01T16:33:18.000Z | libs/ofxLineaDeTiempo/src/View/KeyframeTrackHeader.cpp | roymacdonald/ofxLineaDeTiempo | 1a080c7d5533dc9b0e587bd1557506fe288f05e8 | [
"MIT"
] | null | null | null | //
// KeyframeTrackHeader.cpp
// ofxGuiWidgetDOMintegration
//
// Created by Roy Macdonald on 4/12/20.
//
#include "LineaDeTiempo/View/KeyframeTrackHeader.h"
#include "LineaDeTiempo/View/TrackGroupView.h"
#include "LineaDeTiempo/View/BaseTrackView.h"
namespace ofx {
namespace LineaDeTiempo {
template<typename Par... | 26.581197 | 198 | 0.791318 |
f4dbb4983a66a6d8cdf4192b8d85e3ba544a2928 | 104,662 | cpp | C++ | sxaccelerate/src/math/SxBlasLib.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | 1 | 2020-02-29T03:26:32.000Z | 2020-02-29T03:26:32.000Z | sxaccelerate/src/math/SxBlasLib.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | sxaccelerate/src/math/SxBlasLib.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | // ---------------------------------------------------------------------------
//
// The general purpose cross platform C/C++ framework
//
// S x A c c e l e r a t e
//
// Home: https://www.sxlib.de
// License: Apache 2
// Authors: see src/AUTHOR... | 36.127718 | 90 | 0.524202 |
f4e35f80c0c5af0818c4a4e061d12b0d1d2fb196 | 890 | tpp | C++ | lib/include/ellcpp/oracles/sdp_oracle.tpp | luk036/ellcpp | 3415e7ffb70b63edb9ce4d6c2b9fee92898538bc | [
"MIT"
] | 2 | 2020-07-26T04:58:11.000Z | 2021-01-26T06:29:59.000Z | lib/include/ellcpp/oracles/sdp_oracle.tpp | luk036/ellcpp | 3415e7ffb70b63edb9ce4d6c2b9fee92898538bc | [
"MIT"
] | null | null | null | lib/include/ellcpp/oracles/sdp_oracle.tpp | luk036/ellcpp | 3415e7ffb70b63edb9ce4d6c2b9fee92898538bc | [
"MIT"
] | 2 | 2018-06-03T08:20:20.000Z | 2019-06-30T10:41:49.000Z | // -*- coding: utf-8 -*-
#pragma once
#include "lmi_oracle.hpp"
namespace bnu = boost::numeric::ublas;
class sdp_oracle
{
using Mat = bnu::symmetric_matrix<double, bnu::upper>;
using Vec = bnu::vector<double>;
using Arr = bnu::vector<Mat>;
public:
sdp_oracle(const Vec& c, const Arr& F)... | 20.697674 | 59 | 0.477528 |
f4e85aaa6bbe122fff1af5ec5d461311f2ed6228 | 10,000 | hpp | C++ | metricknn/metricknn_lib/src/metricknn/metricknn_cpp/mknn_predefined_distance.hpp | juanbarrios/multimedia_tools | 91fe64779168c3dd3ad4e51e089df9ccad5f176b | [
"BSD-2-Clause"
] | 6 | 2015-09-08T00:14:59.000Z | 2018-09-11T09:46:40.000Z | metricknn/metricknn_lib/src/metricknn/metricknn_cpp/mknn_predefined_distance.hpp | juanbarrios/multimedia_tools | 91fe64779168c3dd3ad4e51e089df9ccad5f176b | [
"BSD-2-Clause"
] | null | null | null | metricknn/metricknn_lib/src/metricknn/metricknn_cpp/mknn_predefined_distance.hpp | juanbarrios/multimedia_tools | 91fe64779168c3dd3ad4e51e089df9ccad5f176b | [
"BSD-2-Clause"
] | 1 | 2020-11-13T15:55:30.000Z | 2020-11-13T15:55:30.000Z | /*
* Copyright (C) 2012-2015, Juan Manuel Barrios <http://juan.cl/>
* All rights reserved.
*
* This file is part of MetricKnn. http://metricknn.org/
* MetricKnn is made available under the terms of the BSD 2-Clause License.
*/
#ifndef MKNN_PREDEFINED_DISTANCE_HPP_
#define MKNN_PREDEFINED_DISTANCE_HPP_
#include ... | 37.593985 | 162 | 0.6887 |
f4e96d63ad6cb13ab1d635f38a2c82281158d907 | 4,545 | cpp | C++ | Engine/__Deprecated/ImGui/ImUtil.cpp | zolo-mario/ZeloEngine | e595467dd057157c47cc8fa91399b0c7137dae63 | [
"MIT"
] | 98 | 2019-09-13T16:00:57.000Z | 2022-03-25T05:15:36.000Z | Engine/__Deprecated/ImGui/ImUtil.cpp | zolo-mario/ZeloEngine | e595467dd057157c47cc8fa91399b0c7137dae63 | [
"MIT"
] | 269 | 2019-08-22T01:47:09.000Z | 2021-12-01T14:47:47.000Z | Engine/__Deprecated/ImGui/ImUtil.cpp | zolo-mario/ZeloEngine | e595467dd057157c47cc8fa91399b0c7137dae63 | [
"MIT"
] | 5 | 2021-05-07T11:11:40.000Z | 2022-03-29T08:38:33.000Z | // ImUtil.cpp
// created on 2021/5/28
// author @zoloypzuo
#include "ZeloPreCompiledHeader.h"
#include "ImUtil.h"
#include "ImGuiInternal.h"
int ImStricmp(const char *str1, const char *str2) {
int d;
while ((d = toupper(*str2) - toupper(*str1)) == 0 && *str1) {
str1++;
str2++;
}
return ... | 27.545455 | 102 | 0.492629 |
f4edd60f9853e6fd95b8846f13265c60b1d426d9 | 3,854 | cpp | C++ | manycal/nodes/camera_throttler.cpp | Humhu/argus | 8b112382038c6df1ecf15d9c872b6cc9b471cd22 | [
"AFL-3.0"
] | 6 | 2017-08-02T20:32:52.000Z | 2021-06-15T09:33:33.000Z | manycal/nodes/camera_throttler.cpp | Humhu/argus | 8b112382038c6df1ecf15d9c872b6cc9b471cd22 | [
"AFL-3.0"
] | 1 | 2018-03-12T22:57:59.000Z | 2018-03-13T02:52:36.000Z | manycal/nodes/camera_throttler.cpp | Humhu/argus | 8b112382038c6df1ecf15d9c872b6cc9b471cd22 | [
"AFL-3.0"
] | 4 | 2017-03-25T08:36:17.000Z | 2019-04-23T00:28:16.000Z | #include <ros/ros.h>
#include <deque>
#include <boost/foreach.hpp>
#include "image_transport/image_transport.h"
#include "cv_bridge/cv_bridge.h"
#include "argus_utils/synchronization/MessageThrottler.hpp"
#include "manycal/SetThrottleWeight.h"
#include "argus_utils/utils/ParamUtils.h"
using namespace argus;
class C... | 31.080645 | 103 | 0.614427 |