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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6c63be6cf33d8e877629d460244ba7e9d240a7ae | 1,102 | cpp | C++ | 1041-robot-bounded-in-circle/1041-robot-bounded-in-circle.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 2 | 2022-01-02T19:15:00.000Z | 2022-01-05T21:12:24.000Z | 1041-robot-bounded-in-circle/1041-robot-bounded-in-circle.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | null | null | null | 1041-robot-bounded-in-circle/1041-robot-bounded-in-circle.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 1 | 2022-03-11T17:11:07.000Z | 2022-03-11T17:11:07.000Z | class Solution {
public:
bool isRobotBounded(string s) {
if(s.length()==0)
return false;
pair<int,int>dest={0,0};
char currdir='N';
for(int i=0;i<s.length();i++){
if(s[i]=='G'){
dest.second+= currdir=='N'?1:0;
dest.second+= currdi... | 30.611111 | 59 | 0.342105 | Ananyaas |
6c6629142b4e2daa82c477ef1d2c0b4545390d34 | 122 | cpp | C++ | pqnet/util/tests/logger_test.cpp | paoqi1997/pqnet | 3413916bdc355b0a4eea8ef934a3ff658b047b19 | [
"BSD-3-Clause"
] | null | null | null | pqnet/util/tests/logger_test.cpp | paoqi1997/pqnet | 3413916bdc355b0a4eea8ef934a3ff658b047b19 | [
"BSD-3-Clause"
] | null | null | null | pqnet/util/tests/logger_test.cpp | paoqi1997/pqnet | 3413916bdc355b0a4eea8ef934a3ff658b047b19 | [
"BSD-3-Clause"
] | null | null | null | #include <pqnet/util/logger.h>
int main()
{
const char *name = "pqnet";
INFO("Hello %s!", name);
return 0;
}
| 13.555556 | 31 | 0.565574 | paoqi1997 |
6c685a90c095ec9a2aab601a32152a4f29892c32 | 1,009 | cpp | C++ | Vic2ToHoI4/Source/HOI4World/CountryCategories/CountryGrammarRuleFactory.cpp | gawquon/Vic2ToHoI4 | 8371cfb1fd57cf81d854077963135d8037e754eb | [
"MIT"
] | 25 | 2018-12-10T03:41:49.000Z | 2021-10-04T10:42:36.000Z | Vic2ToHoI4/Source/HOI4World/CountryCategories/CountryGrammarRuleFactory.cpp | gawquon/Vic2ToHoI4 | 8371cfb1fd57cf81d854077963135d8037e754eb | [
"MIT"
] | 739 | 2018-12-13T02:01:20.000Z | 2022-03-28T02:57:13.000Z | Vic2ToHoI4/Source/HOI4World/CountryCategories/CountryGrammarRuleFactory.cpp | Osariusz/Vic2ToHoI4 | 9738b52c7602b1fe187c3820660c58a8d010d87e | [
"MIT"
] | 43 | 2018-12-10T03:41:58.000Z | 2022-03-22T23:55:41.000Z | #include "CountryGrammarRuleFactory.h"
#include "ParserHelpers.h"
#include "StringUtils.h"
HoI4::CountryGrammarRuleFactory::CountryGrammarRuleFactory()
{
registerKeyword("category", [this](std::istream& theStream) {
countryGrammarRule.category = commonItems::getString(theStream);
});
registerKeyword("vic2_tag",... | 33.633333 | 107 | 0.781962 | gawquon |
6c6c2da1adea25a343514f8d6b9e167df4fbb993 | 505 | hpp | C++ | lib/mystd/types.hpp | Alessandro-Salerno/ASCIIPaint | d2b978b186fa05ff6d410f54787598e33d9cccd5 | [
"Apache-2.0"
] | 6 | 2022-03-08T12:17:19.000Z | 2022-03-21T20:28:12.000Z | lib/mystd/types.hpp | Alessandro-Salerno/ASCIIPaint | d2b978b186fa05ff6d410f54787598e33d9cccd5 | [
"Apache-2.0"
] | null | null | null | lib/mystd/types.hpp | Alessandro-Salerno/ASCIIPaint | d2b978b186fa05ff6d410f54787598e33d9cccd5 | [
"Apache-2.0"
] | null | null | null | #ifndef TYPES_H
#define TYPES_H
// Defines some types to improve code readibility
typedef char int8;
typedef unsigned char uint8;
typedef short int16;
typedef unsigned short uint16;
typedef int int32;
typedef unsigned int ... | 29.705882 | 53 | 0.558416 | Alessandro-Salerno |
6c6e2847255e66d1b9f7c176f71883ba4ba3ced4 | 1,768 | hh | C++ | construct/ECylinderShape.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | construct/ECylinderShape.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | construct/ECylinderShape.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | //---------------------------------*-C++-*-----------------------------------//
/*!
* \file construct/ECylinderShape.hh
* \brief ECylinderShape class declaration
* \note Copyright (c) 2020 Oak Ridge National Laboratory, UT-Battelle, LLC.
*/
//-----------------------------------------------------------------------... | 23.573333 | 79 | 0.49491 | celeritas-project |
6c70c0a915eab552c69488e4dc0c2d42437f6ae0 | 3,200 | hpp | C++ | external/boost_1_60_0/qsboost/preprocessor/repetition/enum.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/preprocessor/repetition/enum.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/preprocessor/repetition/enum.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | # /* Copyright (C) 2001
# * Housemarque Oy
# * http://www.housemarque.com
# *
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt or copy at
# * http://www.boost.org/LICENSE_1_0.txt)
# */
#
# /* Revised by Paul Mensonides (2002) */
#
# /* See http://www.boost... | 47.761194 | 135 | 0.744688 | wouterboomsma |
6c736aa55612be039ef083ee34493e9cc5377ba4 | 15,143 | cpp | C++ | tools/tcon/tcon.cpp | LioQing/personal-utils | e24d1ea1510087797c6b85bae89a3801a2e77f3d | [
"Unlicense"
] | null | null | null | tools/tcon/tcon.cpp | LioQing/personal-utils | e24d1ea1510087797c6b85bae89a3801a2e77f3d | [
"Unlicense"
] | null | null | null | tools/tcon/tcon.cpp | LioQing/personal-utils | e24d1ea1510087797c6b85bae89a3801a2e77f3d | [
"Unlicense"
] | null | null | null | #include "tcon.hpp"
#include <cstdio>
#include <cstdlib>
#include <sys/ioctl.h>
#include <unistd.h>
namespace tcon
{
namespace
{
constexpr char ESC = 0x1b;
enum Signal : sig_atomic_t
{
None = 0,
Exit = 1 << 0,
Resize = 1 << 1,
};
... | 32.777056 | 133 | 0.437892 | LioQing |
6c792cbe538f4fecd2a1940bbbee0242c27faace | 1,937 | hpp | C++ | libraries/chain/include/scorum/chain/services/escrow.hpp | scorum/scorum | 1da00651f2fa14bcf8292da34e1cbee06250ae78 | [
"MIT"
] | 53 | 2017-10-28T22:10:35.000Z | 2022-02-18T02:20:48.000Z | libraries/chain/include/scorum/chain/services/escrow.hpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 38 | 2017-11-25T09:06:51.000Z | 2018-10-31T09:17:22.000Z | libraries/chain/include/scorum/chain/services/escrow.hpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 27 | 2018-01-08T19:43:35.000Z | 2022-01-14T10:50:42.000Z | #pragma once
#include <scorum/chain/services/service_base.hpp>
#include <scorum/chain/schema/scorum_objects.hpp>
namespace scorum {
namespace chain {
struct escrow_service_i : public base_service_i<escrow_object>
{
using base_service_i<escrow_object>::get;
virtual const escrow_object& get(const account_name... | 39.530612 | 98 | 0.548787 | scorum |
6c7a0e676dc8cd85f49cf2cada628d9e59a322fc | 5,656 | hh | C++ | src/analysis.hh | codyjrivera/cuSZ | 32ef852687866b4c74bd64368c6e145777a311a6 | [
"BSD-3-Clause"
] | null | null | null | src/analysis.hh | codyjrivera/cuSZ | 32ef852687866b4c74bd64368c6e145777a311a6 | [
"BSD-3-Clause"
] | null | null | null | src/analysis.hh | codyjrivera/cuSZ | 32ef852687866b4c74bd64368c6e145777a311a6 | [
"BSD-3-Clause"
] | 1 | 2022-03-02T13:52:40.000Z | 2022-03-02T13:52:40.000Z | #ifndef ANALYSIS_HH
#define ANALYSIS_HH
/**
* @file analysis.hh
* @author Jiannan Tian
* @brief Analysis and visualization of datum.
* @version 0.1
* @date 2020-09-20
* Created on 2020-02-09
*
* @copyright Copyright (c) 2020 by Washington State University, The University of Alabama, Argonne National Laboratory... | 31.954802 | 119 | 0.525283 | codyjrivera |
6c7ab7b233280b19d0fda5c56cf7720c69e19bdf | 15,563 | cpp | C++ | src/kernels/composable_kernel/src/kernel_wrapper/gridwise_convolution_implicit_gemm_v4r4_gen_xdlops_nchw_kcyx_nkhw_lds_double_buffer.cpp | jane-zxy/MIOpen | da79ca10acb669fd745f5fa65bb24735c54f33ff | [
"MIT"
] | 1 | 2021-07-26T18:45:53.000Z | 2021-07-26T18:45:53.000Z | src/kernels/composable_kernel/src/kernel_wrapper/gridwise_convolution_implicit_gemm_v4r4_gen_xdlops_nchw_kcyx_nkhw_lds_double_buffer.cpp | jane-zxy/MIOpen | da79ca10acb669fd745f5fa65bb24735c54f33ff | [
"MIT"
] | null | null | null | src/kernels/composable_kernel/src/kernel_wrapper/gridwise_convolution_implicit_gemm_v4r4_gen_xdlops_nchw_kcyx_nkhw_lds_double_buffer.cpp | jane-zxy/MIOpen | da79ca10acb669fd745f5fa65bb24735c54f33ff | [
"MIT"
] | null | null | null | #include "common_header.hpp"
#include "ConstantTensorDescriptor_deprecated.hpp"
#include "gridwise_convolution_implicit_gemm_v4r4_gen_xdlops_nchw_kcyx_nkhw_lds_double_buffer.hpp"
#include "gridwise_convolution_implicit_gemm_v4r4_gen_xdlops_fp16_bfp16_fwd_nchw_kcyx_nkhw_lds_double_buffer.hpp"
#include "gridwise_convolut... | 47.160606 | 143 | 0.731157 | jane-zxy |
6c7d0c03df38ebbc1fa4be8d23140e2cf1258e72 | 582 | cpp | C++ | Example/fusion_03/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/fusion_03/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/fusion_03/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | #include <boost/fusion/tuple.hpp>
#include <boost/fusion/view.hpp>
#include <boost/fusion/algorithm.hpp>
#include <boost/type_traits.hpp>
#include <boost/mpl/arg.hpp>
#include <string>
#include <iostream>
using namespace boost::fusion;
struct print
{
template <typename T>
void operator()(const T &t) const
{
... | 22.384615 | 71 | 0.678694 | KwangjoJeong |
6c7d23a38d947b95ad49ec690228601d9d5c2bd7 | 1,370 | cpp | C++ | Src/Tests/ZoneTests.cpp | wokste/sudokugen | ed866fdccad856acfb8f52982e74129326557e8f | [
"MIT"
] | null | null | null | Src/Tests/ZoneTests.cpp | wokste/sudokugen | ed866fdccad856acfb8f52982e74129326557e8f | [
"MIT"
] | 8 | 2019-04-11T12:14:31.000Z | 2019-04-13T18:59:12.000Z | Src/Tests/ZoneTests.cpp | wokste/sudokugen | ed866fdccad856acfb8f52982e74129326557e8f | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include "Layer.h"
#include <unordered_set>
#include <iostream>
#include <string>
#include <sstream>
#define RANGE(a) begin(a),end(a)
using namespace std;
namespace stdx {
template< typename ... Args >
std::string cat(Args const& ... args)
{
std::ostringstream stream;
using List = int[];
... | 21.746032 | 75 | 0.578832 | wokste |
6c806eac3c4c0be8553225dec4dd4e05862b43fb | 17,732 | cc | C++ | wrappers/7.0.0/vtkRendererSourceWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 6 | 2016-02-03T12:48:36.000Z | 2020-09-16T15:07:51.000Z | wrappers/7.0.0/vtkRendererSourceWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T01:30:43.000Z | 2020-03-30T16:59:32.000Z | wrappers/7.0.0/vtkRendererSourceWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | null | null | null | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkAlgorithmWrap.h"
#include "vtkRendererSourceWrap.h"
#include "vtkObjectWrap.h"
#include "vtkRendererWrap.h"
#include "vtkImageDataWrap.h"
#i... | 32.00722 | 104 | 0.737762 | axkibe |
6c8412a3508cb217e621c72c67e1049608ff0060 | 5,285 | cpp | C++ | CxxProfiler/SourceWidget.cpp | mmozeiko/CxxProfiler | 5836f2a948cf97ad87bef0e357fd39c95d07189f | [
"Unlicense"
] | 110 | 2016-05-06T09:17:55.000Z | 2022-03-30T02:34:41.000Z | CxxProfiler/SourceWidget.cpp | mmozeiko/CxxProfiler | 5836f2a948cf97ad87bef0e357fd39c95d07189f | [
"Unlicense"
] | null | null | null | CxxProfiler/SourceWidget.cpp | mmozeiko/CxxProfiler | 5836f2a948cf97ad87bef0e357fd39c95d07189f | [
"Unlicense"
] | 5 | 2017-10-27T10:59:53.000Z | 2022-01-10T02:24:41.000Z | #include "SourceWidget.h"
#include "SyntaxHighlighter.h"
namespace
{
class PercentAreaWidget : public QWidget
{
public:
explicit PercentAreaWidget(SourceWidget* source)
: QWidget(source)
, mSource(source)
{
setMouseTracking(true);
}
QSize... | 26.163366 | 117 | 0.605109 | mmozeiko |
6c91d41c1843acac259d62c8aef17ff4a7ac865a | 11,779 | cpp | C++ | src/cli/parser.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | 1 | 2021-06-28T00:31:08.000Z | 2021-06-28T00:31:08.000Z | src/cli/parser.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | null | null | null | src/cli/parser.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | null | null | null | /******************************************************************************
* Author(s): Christopher J. Havlicek
*
* See LICENSE and CONTACTS.
******************************************************************************/
#include "parser.hpp"
#include "../common.hpp"
#include <boost/fusion/includ... | 35.693939 | 175 | 0.496731 | moralismercatus |
6c955ae2a01e105e802eb164998d8dc0fe13275a | 1,987 | hpp | C++ | MPAGSCipher/PlayfairCipher.hpp | tomlatham/mpags-day-4-JamesDownsLab | 38371339e5b9323d9bbc7b81b19141a6d396dc8b | [
"MIT"
] | null | null | null | MPAGSCipher/PlayfairCipher.hpp | tomlatham/mpags-day-4-JamesDownsLab | 38371339e5b9323d9bbc7b81b19141a6d396dc8b | [
"MIT"
] | null | null | null | MPAGSCipher/PlayfairCipher.hpp | tomlatham/mpags-day-4-JamesDownsLab | 38371339e5b9323d9bbc7b81b19141a6d396dc8b | [
"MIT"
] | 1 | 2019-11-19T15:41:38.000Z | 2019-11-19T15:41:38.000Z | //
// Created by james on 08/11/2019.
//
#ifndef MPAGSCIPHER_PLAYFAIRCIPHER_HPP
#define MPAGSCIPHER_PLAYFAIRCIPHER_HPP
#include <string>
#include <map>
#include "CipherMode.hpp"
/**
* \file PlayfairCipher.hpp
* \brief Contains the declaration of the PlayfairCipher class
*/
struct Point
{
unsigned long x, y;... | 24.530864 | 100 | 0.664821 | tomlatham |
6c9c296e86661954df9580d1d8cab6cbedfc0a66 | 1,375 | cpp | C++ | Training/Helvetic Coding Contest 2017 - A.cpp | nicolasventer/Algorithmic-problems-in-cpp | cdd29d692c0353866a549593a25335fe816840e2 | [
"MIT"
] | null | null | null | Training/Helvetic Coding Contest 2017 - A.cpp | nicolasventer/Algorithmic-problems-in-cpp | cdd29d692c0353866a549593a25335fe816840e2 | [
"MIT"
] | null | null | null | Training/Helvetic Coding Contest 2017 - A.cpp | nicolasventer/Algorithmic-problems-in-cpp | cdd29d692c0353866a549593a25335fe816840e2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <set>
#include <map>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
unsigned int n,k;
cin >> n >> k;
set<int> s;
int a[n];
vector<vector<int>> s_list;
s_list.push_back(vector<int>(n, 0));
for (unsigned int i = 0; i < n; ++i... | 15.988372 | 65 | 0.519273 | nicolasventer |
6ca3538232e0fde86717bbb475dee360e6ebabab | 1,492 | cpp | C++ | code/MikoEngine/Renderer/Resource/CompositorNode/Pass/Clear/CompositorResourcePassClear.cpp | warzes/MikoEngine | 1199f59a71ab3dfcbea5d02238639db55eded0d4 | [
"MIT"
] | 5 | 2020-08-04T17:57:01.000Z | 2021-02-07T12:19:02.000Z | code/MikoEngine/Renderer/Resource/CompositorNode/Pass/Clear/CompositorResourcePassClear.cpp | warzes/MikoEngine | 1199f59a71ab3dfcbea5d02238639db55eded0d4 | [
"MIT"
] | null | null | null | code/MikoEngine/Renderer/Resource/CompositorNode/Pass/Clear/CompositorResourcePassClear.cpp | warzes/MikoEngine | 1199f59a71ab3dfcbea5d02238639db55eded0d4 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Renderer/Resource/CompositorNode/Pass/Clear/CompositorResourcePassClear.h"
#include "Renderer/Resource/CompositorNode/Loader/CompositorNodeFileFormat.h"
//[-------------------------------------------------------]
//[ Namespace ]
//[-------------... | 38.25641 | 108 | 0.530831 | warzes |
6ca7302f9f4d4ea1fb34781e0a6388adcaa0daf0 | 545 | cpp | C++ | config/gl/has_GL_KHR_debug.cpp | regnirpsj/oglplus | e267cee16067edb92f58f04b61489bc2e83d2f19 | [
"BSL-1.0"
] | 2 | 2017-06-09T00:28:35.000Z | 2017-06-09T00:28:43.000Z | config/gl/has_GL_KHR_debug.cpp | regnirpsj/oglplus | e267cee16067edb92f58f04b61489bc2e83d2f19 | [
"BSL-1.0"
] | null | null | null | config/gl/has_GL_KHR_debug.cpp | regnirpsj/oglplus | e267cee16067edb92f58f04b61489bc2e83d2f19 | [
"BSL-1.0"
] | 8 | 2017-01-30T22:06:41.000Z | 2020-01-14T17:24:36.000Z | /**
* Copyright 2010-2014 Matus Chochlik. 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)
*/
#define OGLPLUS_CONFIG_QUERY_GL_VER_MAJOR 3
#define OGLPLUS_CONFIG_QUERY_GL_VER_MINOR 2
#include "init_GL.ipp"
bool... | 23.695652 | 68 | 0.790826 | regnirpsj |
6ca93785fb50c2a84dcac9d64a2618531d7e4642 | 6,784 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_PrintMbrDecl.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_PrintMbrDecl.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_PrintMbrDecl.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_PrintMbrDecl.cpp
//
#include "smtc_PrintMbrDecl.h"
// std lib
#include <algorithm>
// semantic
#include "smtc_AcceptEntityVisitor.h"
#include "smtc_ClassDefn.h"
#include "smtc_EntityVisitor.h"
#include "smtc_PrintAccessSpec.h"
#include "smtc_PrintMbrClassDecl.h"
#include "smtc_PrintMbrClassDefn.h"
#include "s... | 26.294574 | 102 | 0.728037 | SuperDizor |
6ca9db3c8d2fa8a881443ad3b7d4c043ce67d3b7 | 27 | cpp | C++ | src/Scene/MapSegment.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 12 | 2020-12-27T22:13:58.000Z | 2021-03-14T09:03:02.000Z | src/Scene/MapSegment.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 10 | 2021-01-14T15:14:31.000Z | 2021-05-24T22:01:09.000Z | src/Scene/MapSegment.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | null | null | null | #include "MapSegment.hpp"
| 9 | 25 | 0.740741 | Strife-AI |
6cab49842f4fd62fe9ddfd87e43d9026703b56e0 | 878 | cpp | C++ | codeforces/educationalround18/a.cpp | L3Sota/atcoder | 7d9444e03837b537ebc6f4f917b9567af6cf5483 | [
"MIT"
] | null | null | null | codeforces/educationalround18/a.cpp | L3Sota/atcoder | 7d9444e03837b537ebc6f4f917b9567af6cf5483 | [
"MIT"
] | null | null | null | codeforces/educationalround18/a.cpp | L3Sota/atcoder | 7d9444e03837b537ebc6f4f917b9567af6cf5483 | [
"MIT"
] | null | null | null | // DATA STRUCTURES
#include <vector>
// MISCELLANEOUS
#include <algorithm>//min/max/sort(rand-access it)/merge
#include <iostream>//cin/cout/wcin/wcout/left/right/internal/dec/hex/oct/fixed/scientific
typedef unsigned int ui;
using namespace std;
int main(void)
{
size_t n;
cin >> n;
vector<int> a;
f... | 23.105263 | 89 | 0.547836 | L3Sota |
6caba7a514e2b12de0fe08cd7c30fa25a501d192 | 10,956 | cpp | C++ | Honey Engine/Source/Lua.cpp | paulahitz8/HoneyEngine | caece066c4426fd6ebc501c6aabf3ceb17f03796 | [
"MIT"
] | null | null | null | Honey Engine/Source/Lua.cpp | paulahitz8/HoneyEngine | caece066c4426fd6ebc501c6aabf3ceb17f03796 | [
"MIT"
] | null | null | null | Honey Engine/Source/Lua.cpp | paulahitz8/HoneyEngine | caece066c4426fd6ebc501c6aabf3ceb17f03796 | [
"MIT"
] | null | null | null | #include "Lua.h"
#include "Engine.h"
#include "SceneManager.h"
#include "GameObject.h"
#include "ComponentTransform.h"
#include "ImGuiAppLog.h"
#include "Log.h"
#include "SceneManager.h"
#include "Scene.h"
#include "Input.h"
#include "Window.h"
#include "ComponentMaterial.h"
#include "ComponentScript.h"
float LuaWork:... | 28.755906 | 177 | 0.624772 | paulahitz8 |
6cb264e6a467417b7e28c59d0424ddc30fda90c6 | 14,735 | cpp | C++ | net.ssa/xrParticles_old/action_api.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | xrParticles_old/action_api.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | xrParticles_old/action_api.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | #include "stdafx.h"
namespace PAPI{
extern void _pAddActionToList (ParticleAction *S);
extern void _pCallActionList (PAVec* pa, ParticleEffect *pe);
// Do not call this function.
void _pSendAction(ParticleAction *S)
{
_ParticleState &_ps = _GetPState();
VERIFY(_ps.in_new_list);
_pAddActionTo... | 31.021053 | 130 | 0.700984 | ixray-team |
6cb431b873a35070d59cafcae7d2a27b8d7e9547 | 4,254 | cc | C++ | paddle/fluid/operators/conv_transpose_op_npu.cc | heliqi/Paddle | feb0ed1b912b66de55c30d8af1ccc61cc1fdf59b | [
"Apache-2.0"
] | 1 | 2021-09-06T15:52:29.000Z | 2021-09-06T15:52:29.000Z | paddle/fluid/operators/conv_transpose_op_npu.cc | XYZ916829/Paddle | 1833a2311a9528b09ccba6ed8ebfa104db5147ff | [
"Apache-2.0"
] | null | null | null | paddle/fluid/operators/conv_transpose_op_npu.cc | XYZ916829/Paddle | 1833a2311a9528b09ccba6ed8ebfa104db5147ff | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 36.991304 | 79 | 0.64598 | heliqi |
6cb759f462fc1b989abda4d465601d0cce6c1627 | 459 | cpp | C++ | insitu_utils/src/ros.cpp | AdamPettinger/insitu | 6f19bbd541ebc7ce97807d12f6f3bd7efc7025af | [
"BSD-3-Clause"
] | 5 | 2021-09-15T14:57:19.000Z | 2022-02-03T13:44:00.000Z | insitu_utils/src/ros.cpp | AdamPettinger/insitu | 6f19bbd541ebc7ce97807d12f6f3bd7efc7025af | [
"BSD-3-Clause"
] | 14 | 2021-07-15T05:01:22.000Z | 2022-01-29T00:08:32.000Z | insitu_utils/src/ros.cpp | AdamPettinger/insitu | 6f19bbd541ebc7ce97807d12f6f3bd7efc7025af | [
"BSD-3-Clause"
] | 4 | 2021-09-13T19:47:05.000Z | 2022-01-04T17:35:36.000Z | #include "insitu_utils/ros.hpp"
#include <ros/master.h>
namespace insitu_utils
{
void getTopicsByType(std::vector<std::string>& ret, const std::string& type)
{
ros::master::V_TopicInfo topic_infos;
ros::master::getTopics(topic_infos);
ret.clear();
for (const auto& topic : topic_infos)
{
if... | 20.863636 | 76 | 0.614379 | AdamPettinger |
6cb8d05838db1f9e73ebacd69f87de7f2618d688 | 1,241 | cpp | C++ | project/OFEC_sc2/instance/algorithm/realworld/DVRP/LKH/Penalty_CVRP.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/algorithm/realworld/DVRP/LKH/Penalty_CVRP.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/algorithm/realworld/DVRP/LKH/Penalty_CVRP.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | #include "./INCLUDE/LKH.h"
#include "./INCLUDE/Segment.h"
namespace LKH {
GainType LKHAlg::Penalty_CVRP()
{
static Node *StartRoute = 0;
Node *N, *CurrentRoute;
GainType DemandSum, DistanceSum, P = 0;
if (!StartRoute)
StartRoute = Depot;
if (StartRoute->Id > DimensionSaved)
StartRoute -= DimensionSav... | 26.978261 | 68 | 0.597099 | BaiChunhui-9803 |
6cbabf4c40c0004a341e5d4dc6f7c17181355473 | 374 | hpp | C++ | src/behavior/singleagent/learnfromdemo/mlirl/multiple_intentions_MLIRL.hpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | 4 | 2019-04-19T00:11:36.000Z | 2020-04-08T09:50:37.000Z | src/behavior/singleagent/learnfromdemo/mlirl/multiple_intentions_MLIRL.hpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | null | null | null | src/behavior/singleagent/learnfromdemo/mlirl/multiple_intentions_MLIRL.hpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | null | null | null |
/*
* Mark Benjamin 6th March 2019
* Copyright (c) 2019 Mark Benjamin
*/
#ifndef FASTRL_BEHAVIOR_SINGLEAGENT_LEARNFROMDEMO_MLIRL_MULTIPLE_INTENTIONS_MLIRL_HPP
#define FASTRL_BEHAVIOR_SINGLEAGENT_LEARNFROMDEMO_MLIRL_MULTIPLE_INTENTIONS_MLIRL_HPP
class MultipleIntentionsMLIRL {
};
#endif //FASTRL_BEHAVIOR_SINGLEAG... | 24.933333 | 86 | 0.871658 | MarkieMark |
6cbd182c02b262871ff9bba9b99fa3433c1d094d | 487 | cpp | C++ | cpp/BinarySearch/BinarySearch_khusw.cpp | khusw/training_algorithm | 3ecb0c8db26c027ed7503a521cb3d45b807f065d | [
"Apache-2.0"
] | null | null | null | cpp/BinarySearch/BinarySearch_khusw.cpp | khusw/training_algorithm | 3ecb0c8db26c027ed7503a521cb3d45b807f065d | [
"Apache-2.0"
] | 3 | 2020-10-03T09:08:53.000Z | 2020-12-02T05:07:28.000Z | cpp/BinarySearch/BinarySearch_khusw.cpp | khusw/training_algorithm | 3ecb0c8db26c027ed7503a521cb3d45b807f065d | [
"Apache-2.0"
] | 1 | 2020-10-03T09:59:41.000Z | 2020-10-03T09:59:41.000Z | #include <stdio.h>
int arr[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int main() {
int low, high, mid, location, x;
scanf("%d", &x);
low = 0;
high = 9;
location = 0;
while (low <= high && location == 0) {
mid = (low + high) / 2;
if (x == arr[mid])
location = mid;
... | 20.291667 | 46 | 0.416838 | khusw |
6cbe24b578807ec760b1e705247704cc9515d8ef | 24,956 | hpp | C++ | include/GlobalNamespace/GameplayModifiersModelSO_--c.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/GameplayModifiersModelSO_--c.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/GameplayModifiersModelSO_--c.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: GameplayModifiersModelSO
#i... | 77.503106 | 238 | 0.769434 | RedBrumbler |
6cbf2e28f69d1834d2dd2c8d583e5c1cda23c9be | 3,308 | hpp | C++ | sdl/Vocabulary/PrintSyms.hpp | sdl-research/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 29 | 2015-01-26T21:49:51.000Z | 2021-06-18T18:09:42.000Z | sdl/Vocabulary/PrintSyms.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 1 | 2015-12-08T15:03:15.000Z | 2016-01-26T14:31:06.000Z | sdl/Vocabulary/PrintSyms.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 4 | 2015-11-21T14:25:38.000Z | 2017-10-30T22:22:00.000Z | // Copyright 2014-2015 SDL plc
// 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,... | 32.116505 | 116 | 0.728839 | sdl-research |
6cc02d1084aa29b30d48ce58a3225091a8316e13 | 259 | cpp | C++ | src/ProcessInfo.cpp | Kylepoops/Sharpen | 5ef19d89ddab0b63ffc4d2489a1cd50e2d5bb132 | [
"MIT"
] | null | null | null | src/ProcessInfo.cpp | Kylepoops/Sharpen | 5ef19d89ddab0b63ffc4d2489a1cd50e2d5bb132 | [
"MIT"
] | null | null | null | src/ProcessInfo.cpp | Kylepoops/Sharpen | 5ef19d89ddab0b63ffc4d2489a1cd50e2d5bb132 | [
"MIT"
] | null | null | null | #include <sharpen/ProcessInfo.hpp>
#ifdef SHARPEN_IS_WIN
#include <Windows.h>
#else
#include <unistd.h>
#endif
sharpen::Uint32 sharpen::GetProcessId() noexcept
{
#ifdef SHARPEN_IS_WIN
return ::GetCurrentProcessId();
#else
return ::getpid();
#endif
} | 16.1875 | 48 | 0.733591 | Kylepoops |
6cce0c1554ef561065986c4c5e58e8550fb72bdf | 3,042 | cpp | C++ | test/interpreter/tSparseContiguousMap.cpp | Grossley/opengml | bc3494aae64092f1c32a16361fd781249e2ea630 | [
"MIT"
] | 26 | 2019-07-18T04:45:08.000Z | 2022-03-13T09:52:04.000Z | test/interpreter/tSparseContiguousMap.cpp | Grossley/opengml | bc3494aae64092f1c32a16361fd781249e2ea630 | [
"MIT"
] | 6 | 2021-09-10T00:48:00.000Z | 2021-11-27T22:00:48.000Z | test/interpreter/tSparseContiguousMap.cpp | Grossley/opengml | bc3494aae64092f1c32a16361fd781249e2ea630 | [
"MIT"
] | 9 | 2019-07-26T06:32:53.000Z | 2022-01-12T14:38:59.000Z | #include "catch/catch.hpp"
#include "ogm/interpreter/SparseContiguousMap.hpp"
#include <map>
#include <iostream>
using namespace ogm::interpreter;
TEST_CASE( "scm basic insert and removal", "[sparse contiguous map]" )
{
SparseContiguousMap<int16_t, int32_t> scm;
// check that checking containment does not i... | 26.684211 | 92 | 0.43787 | Grossley |
6cd13cd383e6238ab72fc124e8d4a51472a17eac | 1,354 | cpp | C++ | src/RamKeyValueStore.cpp | ryanplusplus/tiny.cpp | 70d5f8dc660348be2e97e247a2a27de1b4cae5b4 | [
"MIT"
] | null | null | null | src/RamKeyValueStore.cpp | ryanplusplus/tiny.cpp | 70d5f8dc660348be2e97e247a2a27de1b4cae5b4 | [
"MIT"
] | null | null | null | src/RamKeyValueStore.cpp | ryanplusplus/tiny.cpp | 70d5f8dc660348be2e97e247a2a27de1b4cae5b4 | [
"MIT"
] | null | null | null | /*!
* @file
* @brief
*/
#include <cstring>
#include "tiny/RamKeyValueStore.h"
using namespace tiny;
RamKeyValueStore::RamKeyValueStore(const Configuration& configuration, void* storage)
: _on_change(), configuration(configuration), storage(storage)
{
Key last_key = this->configuration.key_value_pair_count - 1... | 24.618182 | 85 | 0.723781 | ryanplusplus |
6cdac60dcb0e6c91c0a8ddd41d39c23ba41bdd94 | 1,402 | cpp | C++ | tests/memPSGRand_bug118/src_pers/PersTest00_src.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 13 | 2015-02-26T22:46:18.000Z | 2020-03-24T11:53:06.000Z | tests/memPSGRand_bug118/src_pers/PersTest00_src.cpp | PacificBiosciences/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 5 | 2016-02-25T17:08:19.000Z | 2018-01-20T15:24:36.000Z | tests/memPSGRand_bug118/src_pers/PersTest00_src.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 12 | 2015-04-13T21:39:54.000Z | 2021-01-15T01:00:13.000Z | #include "Ht.h"
#include "PersTest00.h"
void CPersTest00::PersTest00() {
if (PR_htValid) {
switch (PR_htInst) {
case TEST00_ENTRY: {
HtContinue(TEST00_WR0);
break;
}
case TEST00_WR0: {
S_test00_0_src_s0_data[1].test00_0_src_v0_data = ((uint8_t)0x0019dd5784fd41e0LL);
HtContinue(TEST00_ST0);
brea... | 23.762712 | 140 | 0.682596 | TonyBrewer |
6cdc2f630c9273559c640fa54d3ec91c20dc2e9a | 1,458 | cpp | C++ | src/LightBulb/Learning/Reinforcement/AbstractReinforcementLearningRule.cpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 5 | 2016-02-04T06:14:42.000Z | 2017-02-06T02:21:43.000Z | src/LightBulb/Learning/Reinforcement/AbstractReinforcementLearningRule.cpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 41 | 2015-04-15T21:05:45.000Z | 2015-07-09T12:59:02.000Z | src/LightBulb/Learning/Reinforcement/AbstractReinforcementLearningRule.cpp | domin1101/LightBulb | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | null | null | null | // Includes
#include "LightBulb/Learning/Reinforcement/AbstractReinforcementLearningRule.hpp"
// Library includes
#include "LightBulb/Learning/Reinforcement/AbstractReinforcementEnvironment.hpp"
#include "LightBulb/Learning/Reinforcement/AbstractReinforcementIndividual.hpp"
namespace LightBulb
{
AbstractReinforcement... | 33.906977 | 121 | 0.810014 | domin1101 |
6cdfafbec5a68b09cfbd24d25cbb49adac7383f1 | 12,528 | cc | C++ | src/hbase/test-util/mini-cluster.cc | julia-emelyanova/hbase-native-client | 13a4f339dbaa0c245346570fb66354d39d99547d | [
"Apache-2.0"
] | 35 | 2019-05-09T02:53:54.000Z | 2022-02-11T08:31:24.000Z | src/hbase/test-util/mini-cluster.cc | julia-emelyanova/hbase-native-client | 13a4f339dbaa0c245346570fb66354d39d99547d | [
"Apache-2.0"
] | 16 | 2019-04-23T15:49:55.000Z | 2022-02-07T07:25:59.000Z | src/hbase/test-util/mini-cluster.cc | julia-emelyanova/hbase-native-client | 13a4f339dbaa0c245346570fb66354d39d99547d | [
"Apache-2.0"
] | 16 | 2019-04-17T14:02:21.000Z | 2021-11-09T21:20:46.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 40.412903 | 120 | 0.721823 | julia-emelyanova |
6ce6cdaf5c0d8f3ef56dee72abb19e75455260d8 | 910 | cpp | C++ | MyFiles/shortcuts.cpp | manishSRM/solvedProblems | 78492e51488605e46fd19bba472736825a2faf32 | [
"Apache-2.0"
] | null | null | null | MyFiles/shortcuts.cpp | manishSRM/solvedProblems | 78492e51488605e46fd19bba472736825a2faf32 | [
"Apache-2.0"
] | null | null | null | MyFiles/shortcuts.cpp | manishSRM/solvedProblems | 78492e51488605e46fd19bba472736825a2faf32 | [
"Apache-2.0"
] | null | null | null |
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + L Clears the Screen, similar to the clear command
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl... | 53.529412 | 111 | 0.76044 | manishSRM |
6cee6a3e7f6e2cf3814dea43718647728f82ac01 | 7,774 | cpp | C++ | MintRobotTeachingPad/app/View/Util/WidgetKeypad.cpp | mintrobot/MTP | f6775ac3552e00f3d69ab78c579d875eac2e1b1e | [
"BSD-3-Clause"
] | 1 | 2021-03-28T07:25:52.000Z | 2021-03-28T07:25:52.000Z | MintRobotTeachingPad/app/View/Util/WidgetKeypad.cpp | mintrobot/MTP | f6775ac3552e00f3d69ab78c579d875eac2e1b1e | [
"BSD-3-Clause"
] | null | null | null | MintRobotTeachingPad/app/View/Util/WidgetKeypad.cpp | mintrobot/MTP | f6775ac3552e00f3d69ab78c579d875eac2e1b1e | [
"BSD-3-Clause"
] | null | null | null | /*
********************************************************************************************
* Copyright (c) 2019 MINTROBOT Co., Ltd.
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 ... | 42.480874 | 148 | 0.718806 | mintrobot |
6cf649c0f61d09b3744b868905717fbc606bccb8 | 8,780 | cpp | C++ | src/merge_ifs.cpp | glaba/glc | f262ee29594da9cee3ddfb476baa4a300d0eace4 | [
"MIT"
] | null | null | null | src/merge_ifs.cpp | glaba/glc | f262ee29594da9cee3ddfb476baa4a300d0eace4 | [
"MIT"
] | null | null | null | src/merge_ifs.cpp | glaba/glc | f262ee29594da9cee3ddfb476baa4a300d0eace4 | [
"MIT"
] | null | null | null | #include "merge_ifs.h"
#include "parser.h"
#include "visitor.h"
#include "print_program.h"
#include "maude.h"
#include <vector>
#include <memory>
#include <string>
#include <cassert>
#include <map>
#include <set>
using std::vector;
using std::unique_ptr;
using std::make_unique;
using std::string;
using std::map;
usin... | 32.161172 | 124 | 0.648292 | glaba |
6cfc286bbbe568be6b7e2639e14ad040e14a326e | 6,301 | cpp | C++ | demos/TXMgr/GSTabCtrl.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | 33 | 2018-07-04T09:38:12.000Z | 2021-06-19T06:11:45.000Z | demos/TXMgr/GSTabCtrl.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | null | null | null | demos/TXMgr/GSTabCtrl.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | 13 | 2018-07-01T01:55:17.000Z | 2021-08-03T10:55:45.000Z | #include "stdafx.h"
#include "GSTabCtrl.h"
#include <algorithm>
#include "souistd.h"
GSTabCtrl::GSTabCtrl()
{
m_pSkinAniHover = NULL;
m_pSkinAniDown = NULL;
m_nElapseTime = 0;
m_nTabShowName = 0;
}
GSTabCtrl::~GSTabCtrl()
{
}
/**
* STabCtrl::OnPaint
* @brief 绘画消息
* @param IRenderTa... | 23.337037 | 151 | 0.642755 | wzaen |
6cff8ebced7a018f111e47ed29a703a68274e7ea | 7,496 | cpp | C++ | test/test/easycomm3_vl_vr_vu_vd/test.cpp | yapiolibs/hamlib-rotctl-easycomm-parser | ab71f6ec3c5b0af02cb3429ca408a125b3b22836 | [
"Apache-2.0"
] | null | null | null | test/test/easycomm3_vl_vr_vu_vd/test.cpp | yapiolibs/hamlib-rotctl-easycomm-parser | ab71f6ec3c5b0af02cb3429ca408a125b3b22836 | [
"Apache-2.0"
] | null | null | null | test/test/easycomm3_vl_vr_vu_vd/test.cpp | yapiolibs/hamlib-rotctl-easycomm-parser | ab71f6ec3c5b0af02cb3429ca408a125b3b22836 | [
"Apache-2.0"
] | null | null | null | #if !defined(ENV_NATIVE)
#include <Arduino.h>
#endif
#include "../common-parse-command.h"
#include <easycomm-parser-types-ctors.h>
#include <easycomm-parser-types-operators.h>
#include <easycomm-parser-types-sprintf.h>
#include <easycomm-parser.h>
#include <string.h>
#include <unity.h>
INVARIANT_TEST_PARSE_EASYCOMM_... | 36.745098 | 119 | 0.638474 | yapiolibs |
9f01bf1e091c04c59e3beccce4a9a9e50f5787e2 | 25,767 | cpp | C++ | yolk/egg-vanilla.cpp | tayloia/egg | 99c6e03dfbc19864b3de364f7d4b3de6d9db5dbc | [
"MIT"
] | 3 | 2018-10-11T18:11:23.000Z | 2020-11-05T01:28:45.000Z | yolk/egg-vanilla.cpp | tayloia/egg | 99c6e03dfbc19864b3de364f7d4b3de6d9db5dbc | [
"MIT"
] | 1 | 2018-06-20T15:29:03.000Z | 2018-06-21T15:35:01.000Z | yolk/egg-vanilla.cpp | tayloia/egg | 99c6e03dfbc19864b3de364f7d4b3de6d9db5dbc | [
"MIT"
] | 1 | 2020-11-05T02:45:43.000Z | 2020-11-05T02:45:43.000Z | #include "yolk/yolk.h"
#include "yolk/lexers.h"
#include "yolk/egg-tokenizer.h"
#include "yolk/egg-syntax.h"
#include "yolk/egg-parser.h"
#include "yolk/egg-engine.h"
#include "yolk/egg-program.h"
namespace {
class VanillaBase : public egg::ovum::SoftReferenceCounted<egg::ovum::IObject> {
EGG_NO_COPY(VanillaBase... | 43.821429 | 212 | 0.67276 | tayloia |
9f06ceb4092e88a8ac93261e2b89929dd35c8444 | 970 | cpp | C++ | bzoj/3676.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | bzoj/3676.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | bzoj/3676.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long
using namespace std;
inline int read(){
int x=0,f=0;char ch=getchar();
while(ch>'9'||ch<'0'){if(ch=='-')f=1;ch=getchar();}
while(ch<='9'&&ch>='0'){x=(x<<3)+(x<<1)+ch-'0';ch=getchar();}
return f?-x:x;
}
ll ans;
int n;
char ch[300005];
struct pam{
int cnt, last;
int a[3... | 20.638298 | 62 | 0.502062 | swwind |
9f0825b0c647fb598fe852ef092a860a8a148dd9 | 2,262 | hh | C++ | src/sim/mypriority.hh | sakshi-bodhi/gem5-modified | eb679461c29bc90f5f8e813ea689b5baaa9ac35c | [
"BSD-3-Clause"
] | null | null | null | src/sim/mypriority.hh | sakshi-bodhi/gem5-modified | eb679461c29bc90f5f8e813ea689b5baaa9ac35c | [
"BSD-3-Clause"
] | null | null | null | src/sim/mypriority.hh | sakshi-bodhi/gem5-modified | eb679461c29bc90f5f8e813ea689b5baaa9ac35c | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2000-2005 The Regents of The University of Michigan
* Copyright (c) 2013 Advanced Micro Devices, Inc.
* Copyright (c) 2013 Mark D. Hill and David A. Wood
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... | 36.483871 | 73 | 0.76702 | sakshi-bodhi |
9f0bd3279fe55a8254e7e2bfdf79adf6c807daf5 | 322 | cpp | C++ | examples/pop.cpp | gumenov61/HW-Stack2 | 51302e82276463448a123f88fc718eef9a6be813 | [
"MIT"
] | null | null | null | examples/pop.cpp | gumenov61/HW-Stack2 | 51302e82276463448a123f88fc718eef9a6be813 | [
"MIT"
] | null | null | null | examples/pop.cpp | gumenov61/HW-Stack2 | 51302e82276463448a123f88fc718eef9a6be813 | [
"MIT"
] | null | null | null | //METHOD POP
#include "stack.hpp"
void foo_pop() {
cout << endl << "RUN POP FILE..." << endl;
Stack<double> DoubleArr;
for(int i = 0; i < 10; i++) { DoubleArr.push(double(i)); }
cout << "RESULT\t";
for(int j = 0; j < 5; j++) { cout << DoubleArr.pop() << " "; }
cout << endl << endl;
}
int main() {
foo_pop();... | 20.125 | 63 | 0.537267 | gumenov61 |
9f0cb2f5a560c31ace2e43efb2d3e0a7eca5f4e7 | 1,009 | hpp | C++ | lib/STL+/persistence/persistent_enum.hpp | knela96/Game-Engine | 06659d933c4447bd8d6c8536af292825ce4c2ab1 | [
"Unlicense"
] | 3 | 2018-05-07T19:09:23.000Z | 2019-05-03T14:19:38.000Z | deps/stlplus/persistence/persistent_enum.hpp | evpo/libencryptmsg | fa1ea59c014c0a9ce339d7046642db4c80fc8701 | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | null | null | null | deps/stlplus/persistence/persistent_enum.hpp | evpo/libencryptmsg | fa1ea59c014c0a9ce339d7046642db4c80fc8701 | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | null | null | null | #ifndef STLPLUS_PERSISTENT_ENUM
#define STLPLUS_PERSISTENT_ENUM
////////////////////////////////////////////////////////////////////////////////
// Author: Andy Rushton
// Copyright: (c) Southampton University 1999-2004
// (c) Andy Rushton 2004 onwards
// License: BSD License, see ../... | 29.676471 | 82 | 0.489594 | knela96 |
9f0d4792b525234ae2a047ad648ef06120f79738 | 309 | hpp | C++ | src/contains.hpp | UtopiaLang/src | be8904f978f3ea0d92afb72895cc2bb052cf4107 | [
"Unlicense"
] | 7 | 2021-03-01T17:24:45.000Z | 2021-10-01T02:28:25.000Z | src/contains.hpp | UtopiaLang/Utopia | be8904f978f3ea0d92afb72895cc2bb052cf4107 | [
"Unlicense"
] | 6 | 2021-02-27T18:25:45.000Z | 2021-09-10T21:27:39.000Z | src/contains.hpp | UtopiaLang/src | be8904f978f3ea0d92afb72895cc2bb052cf4107 | [
"Unlicense"
] | null | null | null | #pragma once
namespace Utopia
{
// My 2020 vision grants me this most complex C++20 STL feature.
template <typename Vec, typename Val>
[[nodiscard]] bool contains(const Vec& vec, const Val& val)
{
for (const auto& item : vec)
{
if (item == val)
{
return true;
}
}
return false;
}
}
| 16.263158 | 65 | 0.631068 | UtopiaLang |
2f57a1ca2eeb7315ae5e55776cb536b1a2b77c61 | 1,128 | cpp | C++ | src/gui/toolbarwidgetmpr.cpp | GavriloviciEduard/Asclepios-DICOM-Viewer | 2aeb90ae4fcbdfcf0fe1b714f31e2b1c8fd6a8ed | [
"MIT"
] | 55 | 2020-09-10T01:29:27.000Z | 2022-03-23T06:41:09.000Z | src/gui/toolbarwidgetmpr.cpp | GavriloviciEduard/Asclepios-DICOM-Viewer | 2aeb90ae4fcbdfcf0fe1b714f31e2b1c8fd6a8ed | [
"MIT"
] | 4 | 2020-09-10T01:25:07.000Z | 2022-03-22T02:34:39.000Z | src/gui/toolbarwidgetmpr.cpp | GavriloviciEduard/Asclepios-DICOM-Viewer | 2aeb90ae4fcbdfcf0fe1b714f31e2b1c8fd6a8ed | [
"MIT"
] | 16 | 2020-11-24T07:37:43.000Z | 2022-03-03T03:16:30.000Z | #include "toolbarwidgetmpr.h"
#include <QToolButton>
asclepios::gui::ToolbarWidgetMPR::ToolbarWidgetMPR(QWidget* parent)
: QWidget(parent)
{
initView();
}
//-----------------------------------------------------------------------------
void asclepios::gui::ToolbarWidgetMPR::onButtonPressed()
{
auto* const button =
... | 26.857143 | 79 | 0.589539 | GavriloviciEduard |
2f58e7604b78e2e9a21833fc708ba74532bc1095 | 3,685 | cpp | C++ | tf2_src/utils/voice_tweak/waveout.cpp | IamIndeedGamingAsHardAsICan03489/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | tf2_src/utils/voice_tweak/waveout.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | null | null | null | tf2_src/utils/voice_tweak/waveout.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "stdafx.h"
#include <windows.h>
#include <assert.h>
#include <mmsystem.h>
#include "waveout.h"
#include "ivoicecod... | 17.88835 | 85 | 0.664858 | IamIndeedGamingAsHardAsICan03489 |
2f5e4b0ca1ff0911187f53fdc27974b362746e84 | 1,408 | cpp | C++ | Project2/lib.cpp | vantonyy/CourseProject-2-Multiprocessing | 4fbbfe88f911ca50c8e5aba9e2a4f09d355e1cac | [
"MIT"
] | null | null | null | Project2/lib.cpp | vantonyy/CourseProject-2-Multiprocessing | 4fbbfe88f911ca50c8e5aba9e2a4f09d355e1cac | [
"MIT"
] | null | null | null | Project2/lib.cpp | vantonyy/CourseProject-2-Multiprocessing | 4fbbfe88f911ca50c8e5aba9e2a4f09d355e1cac | [
"MIT"
] | null | null | null | #include <cstdio>
#include "lib.hpp"
#define DLL_EXPORT __declspec(dllexport)
DLL_EXPORT extern const int maxPackSize = 20; //max packet size
DLL_EXPORT extern const int mesNum = 1000; //total number of messages
DLL_EXPORT extern const int tPack = 100; //period of packets (msec)
DLL_EXPORT extern const float ... | 25.142857 | 90 | 0.613636 | vantonyy |
2f71c2623a4d4a5097cd8f7c6af9c58fb78affc2 | 753 | cpp | C++ | src/application/log.cpp | ev1313/hexx0ar | f8aa8c2f0bad6c97b9818aba5dc066235c30864b | [
"MIT"
] | null | null | null | src/application/log.cpp | ev1313/hexx0ar | f8aa8c2f0bad6c97b9818aba5dc066235c30864b | [
"MIT"
] | 10 | 2018-03-29T21:14:55.000Z | 2018-04-05T22:57:11.000Z | src/application/log.cpp | ev1313/hexx0ar | f8aa8c2f0bad6c97b9818aba5dc066235c30864b | [
"MIT"
] | 1 | 2018-10-11T04:09:55.000Z | 2018-10-11T04:09:55.000Z | #include "log.hpp"
void Logger::_log_file(std::string msg) {
if (m_log_file.is_open()) {
m_log_file << std::put_time(std::localtime(&time_now), "%OH%OM") << ":" << SDL_GetTicks() << " " << msg
<< std::endl;
}
}
void Logger::_log(std::string msg) {
std::cout << SDL_GetTicks() << " " << msg << ... | 30.12 | 122 | 0.596282 | ev1313 |
2f761a43b7330975f39078dd72cb28f8eddd8027 | 2,956 | cpp | C++ | BRE/SceneLoader/EnvironmentLoader.cpp | nicolasbertoa/D3D12Base | cdf36d9a6ef8ab3860a03cb250032a0690f89851 | [
"BSD-3-Clause"
] | 9 | 2016-07-14T05:43:45.000Z | 2016-10-31T15:21:53.000Z | BRE/SceneLoader/EnvironmentLoader.cpp | yang-shuohao/BRE12 | cdf36d9a6ef8ab3860a03cb250032a0690f89851 | [
"BSD-3-Clause"
] | null | null | null | BRE/SceneLoader/EnvironmentLoader.cpp | yang-shuohao/BRE12 | cdf36d9a6ef8ab3860a03cb250032a0690f89851 | [
"BSD-3-Clause"
] | null | null | null | #include "EnvironmentLoader.h"
#pragma warning( push )
#pragma warning( disable : 4127)
#include <yaml-cpp/yaml.h>
#pragma warning( pop )
#include <SceneLoader\TextureLoader.h>
namespace BRE {
void
EnvironmentLoader::LoadEnvironment(const YAML::Node& rootNode) noexcept
{
BRE_ASSERT(rootNode.IsDefined());
/... | 44.787879 | 108 | 0.70839 | nicolasbertoa |
2f7c20f4a10450bc823d158a083c40400277d408 | 577 | hpp | C++ | 02/ex01/Fixed.hpp | mo-san99/CPP-Module | 54be4aa108c9638e28a4ec774ee6071be2b7c75e | [
"MIT"
] | 2 | 2021-04-01T12:42:44.000Z | 2021-08-02T12:40:59.000Z | 02/ex01/Fixed.hpp | Sviridovamd/CPP-Module | fe8494a0c775da699e5013458f8b8ebdfa88bef6 | [
"MIT"
] | null | null | null | 02/ex01/Fixed.hpp | Sviridovamd/CPP-Module | fe8494a0c775da699e5013458f8b8ebdfa88bef6 | [
"MIT"
] | null | null | null | //
// Created by moboustt on 2/2/2021.
//
#ifndef __FIXED_H__
#define __FIXED_H__
#include <iostream>
#include <cmath>
class Fixed {
public:
Fixed();
Fixed(const int x);
Fixed(const Fixed &other);
Fixed(float const f);
~Fixed();
Fixed & operator=(const Fixed &other);
int getRawBits() co... | 16.485714 | 68 | 0.65338 | mo-san99 |
2f812e2feaddc662ebeeb89da0276e2a05f1d306 | 1,983 | cc | C++ | src/search/binary_search/winter_challenge.cc | m-hu/cpp-code-snippets | abc8aed737bd7205a6aa2bcdaa5edff4a26c224b | [
"MIT"
] | null | null | null | src/search/binary_search/winter_challenge.cc | m-hu/cpp-code-snippets | abc8aed737bd7205a6aa2bcdaa5edff4a26c224b | [
"MIT"
] | null | null | null | src/search/binary_search/winter_challenge.cc | m-hu/cpp-code-snippets | abc8aed737bd7205a6aa2bcdaa5edff4a26c224b | [
"MIT"
] | null | null | null | //https://www.hackerrank.com/contests/launchpad-1-winter-challenge/challenges/binary-search-advanced
#include <bits/stdc++.h>
#define rep(i, l, r) for ((i) = (l); (i) < (r); (i)++)
#define all(x) (x).begin(), (x).end()
using namespace std;
int upper_bound(int A[],int N,int K){
int low , high , mid;
mid = 0;
... | 31.983871 | 100 | 0.513364 | m-hu |
2f835d5b4ca9e052512f3ab48cc4884e74706f26 | 21,468 | cpp | C++ | testworktimetracker.cpp | nst1911/worktime-tracker | 67c237ab8055b79debdc70093a7477bd41ab319e | [
"MIT"
] | null | null | null | testworktimetracker.cpp | nst1911/worktime-tracker | 67c237ab8055b79debdc70093a7477bd41ab319e | [
"MIT"
] | null | null | null | testworktimetracker.cpp | nst1911/worktime-tracker | 67c237ab8055b79debdc70093a7477bd41ab319e | [
"MIT"
] | null | null | null | #include "testworktimetracker.h"
WorktimeTracker TestWorktimeTracker::example(const QSqlDatabase &db)
{
WorktimeTracker wt(db);
wt.insertSchedule("testschedule1", QTime(5, 25), QTime(9, 49), QTime(6,0), QTime(7,0));
wt.insertRecord(QDate(2022, 01, 18), QTime(9, 0), QTime(17, 0));
for (int ... | 35.543046 | 115 | 0.61608 | nst1911 |
2f8db5666ef2790517e69b6b6a0d066cf6d6f887 | 1,732 | cpp | C++ | src/vega/age.cpp | project-eutopia/vega | c7b536c5e949094a908fa8f378729dbffc657f4a | [
"MIT"
] | 18 | 2018-01-23T12:28:13.000Z | 2022-02-13T12:23:21.000Z | src/vega/age.cpp | project-eutopia/vega | c7b536c5e949094a908fa8f378729dbffc657f4a | [
"MIT"
] | 2 | 2018-11-29T01:51:25.000Z | 2022-03-22T14:14:22.000Z | src/vega/age.cpp | project-eutopia/vega | c7b536c5e949094a908fa8f378729dbffc657f4a | [
"MIT"
] | 6 | 2019-02-01T09:54:44.000Z | 2022-01-09T22:13:54.000Z | #include "vega/age.h"
#include "vega/vega.h"
#include <stdexcept>
#include <sstream>
namespace vega {
Age::Age()
:
m_count(0),
m_unit(Unit::DAY)
{}
Age::Age(uint16_t count, Age::Unit unit)
:
m_count(count),
m_unit(unit)
{
if (m_count > 999) throw vega::Exception("Age count ... | 23.093333 | 92 | 0.560046 | project-eutopia |
2f8dc1b2cedcd5eeea46dfa6945255b7d78bed01 | 99,134 | cc | C++ | protocal/map/map.pb.cc | racestart/g2r | d115ebaab13829d716750eab2ebdcc51d79ff32e | [
"Apache-2.0"
] | 1 | 2020-03-05T12:49:21.000Z | 2020-03-05T12:49:21.000Z | protocal/map/map.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | null | null | null | protocal/map/map.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | 1 | 2020-03-25T15:06:39.000Z | 2020-03-25T15:06:39.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: map/map.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "map/map.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <go... | 34.589672 | 116 | 0.695634 | racestart |
2f9819be7a1b1304f2ea35746328b296054e52ae | 24,883 | cpp | C++ | api/opengl/src/graphics/gl_header.cpp | Nielsbishere/ignis | 3a1d441c80d0816c3cc487312bce9f5b377ec622 | [
"MIT"
] | null | null | null | api/opengl/src/graphics/gl_header.cpp | Nielsbishere/ignis | 3a1d441c80d0816c3cc487312bce9f5b377ec622 | [
"MIT"
] | 3 | 2019-11-27T21:51:01.000Z | 2019-11-27T21:51:24.000Z | api/opengl/src/graphics/gl_header.cpp | Nielsbishere/ignis | 3a1d441c80d0816c3cc487312bce9f5b377ec622 | [
"MIT"
] | null | null | null | #include "graphics/enums.hpp"
#include "system/log.hpp"
#include "system/system.hpp"
#include "graphics/shader/descriptors.hpp"
#include "graphics/memory/primitive_buffer.hpp"
#include "graphics/memory/framebuffer.hpp"
#include "graphics/memory/gl_gpu_buffer.hpp"
#include "graphics/memory/gl_texture_object.hpp"
#includ... | 27.164847 | 126 | 0.705261 | Nielsbishere |
2f98ab374074cb6d08c191bf7985d0bfcba8564d | 2,023 | cpp | C++ | Game Engine/GameEngine/src/light/light_handler.cpp | llGuy/gamedev | 16aa203934fd767926c58558e021630288556399 | [
"MIT"
] | null | null | null | Game Engine/GameEngine/src/light/light_handler.cpp | llGuy/gamedev | 16aa203934fd767926c58558e021630288556399 | [
"MIT"
] | 4 | 2018-12-24T11:16:53.000Z | 2018-12-24T11:20:29.000Z | Game Engine/GameEngine/src/light/light_handler.cpp | llGuy/gamedev | 16aa203934fd767926c58558e021630288556399 | [
"MIT"
] | null | null | null | #include "../api/api.h"
#include "light_handler.h"
#include <glm/gtc/type_ptr.hpp>
struct light_info_shader_data
{
glm::vec4 position;
glm::vec4 ambient_intensity;
glm::vec4 diffuse_intensity;
glm::vec4 specular_intensity;
};
light_handler::light_handler(void)
: light{ glm::vec3(-10.0f, 10.0f, -10.0f)
, glm::ve... | 28.097222 | 128 | 0.754325 | llGuy |
2f9f5389b3adfccdd4091a1e875c4d7f260341b7 | 4,177 | hpp | C++ | NState Manager/nstate.hpp | SebastianNetsch/NEngine | 15ad1f9da2cf66d9338e7b462cd489ca1823f742 | [
"MIT"
] | null | null | null | NState Manager/nstate.hpp | SebastianNetsch/NEngine | 15ad1f9da2cf66d9338e7b462cd489ca1823f742 | [
"MIT"
] | null | null | null | NState Manager/nstate.hpp | SebastianNetsch/NEngine | 15ad1f9da2cf66d9338e7b462cd489ca1823f742 | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////
//
// NEngine C++ Library
// Copyright (c) 2017-2017 Sebastian Netsch
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use... | 46.411111 | 83 | 0.414652 | SebastianNetsch |
2f9fba33da341404efb9b5e491fc20eeddc7771c | 605 | cpp | C++ | leetcode/495. Teemo Attacking/s1.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | 1 | 2021-02-09T11:38:51.000Z | 2021-02-09T11:38:51.000Z | leetcode/495. Teemo Attacking/s1.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | null | null | null | leetcode/495. Teemo Attacking/s1.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | null | null | null | class Solution {
public:
int findPoisonedDuration(vector<int>& timeSeries, int duration) {
if (timeSeries.empty() || duration <= 0) return 0;
int ans = 0, N = timeSeries.size();
for (int i = 0; i < N;) {
int start = timeSeries[i], end = timeSeries[i] + duration, j = i + 1;
... | 31.842105 | 81 | 0.42314 | contacttoakhil |
2fa8fe9878e6c9f919bcb609128ece0de8a0badd | 5,575 | cpp | C++ | cpp-projects/exvr-designer/widgets/components/config_parameters/fixation_cross_viewer_pw.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/widgets/components/config_parameters/fixation_cross_viewer_pw.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/widgets/components/config_parameters/fixation_cross_viewer_pw.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null |
/***********************************************************************************
** exvr-designer **
** MIT License **
** Copyright (c) [2018] [Florian Lance][EPFL-LNCO] ... | 50.681818 | 200 | 0.639462 | FlorianLance |
2fac26c5576a995bbdcb1af21a24e451bd16a746 | 8,323 | cpp | C++ | firmware/libraries/state-following/state-following.cpp | miaucl/sti-robot-competition | 9984306a0b9c93d98d401e026df202e902c2c47c | [
"MIT"
] | null | null | null | firmware/libraries/state-following/state-following.cpp | miaucl/sti-robot-competition | 9984306a0b9c93d98d401e026df202e902c2c47c | [
"MIT"
] | null | null | null | firmware/libraries/state-following/state-following.cpp | miaucl/sti-robot-competition | 9984306a0b9c93d98d401e026df202e902c2c47c | [
"MIT"
] | null | null | null | /*
state-following.h - Following state methods
Created by Cyrill Lippuner, 2019.
*/
#include "Arduino.h"
#include "math.h"
#include "config.h"
#include "sensors.h"
#include "actuators.h"
#define USE_RIGHT_WALL 1
#define USE_RIGHT_WALL_PLATFORM 0
// Internal control flags
enum IState
{
is_start,
//is_calibrat... | 34.53527 | 184 | 0.713805 | miaucl |
2facf06e8afdfbb4cdd00617dfa95842fa1fada3 | 18,254 | hpp | C++ | vroom_env/codecs.hpp | fanhualta/dint | d5b4b9ef1998119b2f06b9143153f7e82f12cb56 | [
"Apache-2.0"
] | 16 | 2019-01-27T20:41:07.000Z | 2021-05-03T05:21:50.000Z | vroom_env/codecs.hpp | fanhualta/dint | d5b4b9ef1998119b2f06b9143153f7e82f12cb56 | [
"Apache-2.0"
] | 3 | 2020-06-25T03:28:28.000Z | 2021-04-26T07:15:24.000Z | vroom_env/codecs.hpp | fanhualta/dint | d5b4b9ef1998119b2f06b9143153f7e82f12cb56 | [
"Apache-2.0"
] | 6 | 2019-08-20T02:34:16.000Z | 2022-02-22T00:01:11.000Z | #pragma once
#include "FastPFor/headers/optpfor.h"
#include "FastPFor/headers/variablebyte.h"
#include "streamvbyte/include/streamvbyte.h"
#include "MaskedVByte/include/varintencode.h"
#include "MaskedVByte/include/varintdecode.h"
#include "VarIntG8IU.h"
#include "varintgb.h"
#include "interpolative_coding.hpp"
#inclu... | 35.44466 | 80 | 0.525145 | fanhualta |
2fb0219fe770b059f76434911a3fae41b8e3de45 | 9,472 | cpp | C++ | src/Shader.cpp | Liyara/JGL | b3597700fe865b929c5bd52e81add32a6c0b297c | [
"MIT"
] | null | null | null | src/Shader.cpp | Liyara/JGL | b3597700fe865b929c5bd52e81add32a6c0b297c | [
"MIT"
] | null | null | null | src/Shader.cpp | Liyara/JGL | b3597700fe865b929c5bd52e81add32a6c0b297c | [
"MIT"
] | null | null | null | #include "Shader.h"
#include "jgl.h"
namespace jgl {
const jutil::String shaderVersion = "400 core";
Shader *Shader::active;
ShaderFile::ShaderFile(ShaderFileType t, const jutil::File &file) : Resource(ResourceType::SHADER), fType(t) {
fileData = "";
jutil::String line = "";
siz... | 35.081481 | 164 | 0.56799 | Liyara |
2fb31573aa7dba817e88fb511d3c4e6e1e25d6b0 | 1,862 | cc | C++ | src/angle/test/test_Uniform.cc | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/angle/test/test_Uniform.cc | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/angle/test/test_Uniform.cc | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*----------------------------------//
/*!
* \file test_Uniform.cc
* \author Jeremy Roberts
* \date Jun 22, 2012
* \brief Test of Uniform class
* \note Copyright (C) 2012 Jeremy Roberts.
*/
//-------------------------------------------------------------------------... | 26.6 | 79 | 0.468851 | RLReed |
2fb8a4e0655cfc8e4dbc7a3e9b7b68c7ac8ff15a | 6,106 | cpp | C++ | WoW API/Camera.cpp | Fernir/Dinnerbot | 7f517a46c66a44b32ab9904283babb8b3faa1d5b | [
"MIT"
] | 3 | 2018-04-25T10:01:53.000Z | 2022-01-09T20:30:37.000Z | WoW API/Camera.cpp | Fernir/Dinnerbot | 7f517a46c66a44b32ab9904283babb8b3faa1d5b | [
"MIT"
] | null | null | null | WoW API/Camera.cpp | Fernir/Dinnerbot | 7f517a46c66a44b32ab9904283babb8b3faa1d5b | [
"MIT"
] | 1 | 2022-01-09T20:30:40.000Z | 2022-01-09T20:30:40.000Z | #include "Camera.h"
#include "..\Geometry\Coordinate.h"
/*
CGCamera GetActiveCamera()
{
CGCamera ActiveCamera;
ReadProcessMemory(WoW::handle, (LPVOID)(Camera_Pointer), &ActiveCamera.ActiveCamera, sizeof(ActiveCamera.ActiveCamera), 0);
ReadProcessMemory(WoW::handle, (LPVOID)(ActiveCamera.ActiveCamera + Camera_Offset... | 42.402778 | 152 | 0.690468 | Fernir |
2fbc9a3e8e92746cf1c77318cabea973c05d2ef4 | 343 | hpp | C++ | include/Common/Connection.hpp | Lyidgi/kuramaserver | 9121cef5b540efd42eedc88cfbec215c6b863d63 | [
"Apache-2.0"
] | null | null | null | include/Common/Connection.hpp | Lyidgi/kuramaserver | 9121cef5b540efd42eedc88cfbec215c6b863d63 | [
"Apache-2.0"
] | null | null | null | include/Common/Connection.hpp | Lyidgi/kuramaserver | 9121cef5b540efd42eedc88cfbec215c6b863d63 | [
"Apache-2.0"
] | null | null | null | //
// Created by dev on 17/09/2019.
//
#ifndef KUBI_CONNECTION_HPP_INCLUDED
#define KUBI_CONNECTION_HPP_INCLUDED
#include <netinet/in.h>
class Connection {
public:
Connection();
~Connection() = default;
private:
in_port_t m_port = 8080;
in_addr_t ip_v4 = INADDR_ANY;
sockaddr_in address{};
};
#endif //KUBI_C... | 14.291667 | 37 | 0.746356 | Lyidgi |
2fbe481090adea8258a44f52cce3c10f8c0b8e28 | 6,844 | hpp | C++ | include/commander/detail__storage/empty_storage.hpp | daishe/commander | 0a23abcbe406e234a4242e0d508bb89d72b28e25 | [
"BSL-1.0"
] | null | null | null | include/commander/detail__storage/empty_storage.hpp | daishe/commander | 0a23abcbe406e234a4242e0d508bb89d72b28e25 | [
"BSL-1.0"
] | null | null | null | include/commander/detail__storage/empty_storage.hpp | daishe/commander | 0a23abcbe406e234a4242e0d508bb89d72b28e25 | [
"BSL-1.0"
] | null | null | null | // Copyright Marek Dalewski 2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include "../applier.hpp"
#include "../detail__type_traits/unwrap_reference_wrapper.hpp"
#... | 42.509317 | 291 | 0.621859 | daishe |
2fbfe14f9e5b02c7fd5b3438be989464cc3f3828 | 745 | cpp | C++ | leetcode/archives_am/733.flood-fill.cpp | saurabhraj042/dsaPrep | 0973a03bc565a2850003c7e48d99b97ff83b1d01 | [
"MIT"
] | 23 | 2021-10-30T04:11:52.000Z | 2021-11-27T09:16:18.000Z | leetcode/archives_am/733.flood-fill.cpp | saurabhraj042/dsaPrep | 0973a03bc565a2850003c7e48d99b97ff83b1d01 | [
"MIT"
] | null | null | null | leetcode/archives_am/733.flood-fill.cpp | saurabhraj042/dsaPrep | 0973a03bc565a2850003c7e48d99b97ff83b1d01 | [
"MIT"
] | 4 | 2021-10-30T03:26:05.000Z | 2021-11-14T12:15:04.000Z | // https://leetcode.com/problems/flood-fill/
class Solution {
public:
vector<vector<int>> floodFill(vector<vector<int>>& image, int sr, int sc, int newColor) {
dfs(image, sr, sc, image[sr][sc], newColor);
return image;
}
void dfs(vector<vector<int>>& image, int r, int c, int oldColor, i... | 39.210526 | 93 | 0.557047 | saurabhraj042 |
2fc3185e1209d0ee3dbe3c07ecb57420a474a989 | 6,561 | cpp | C++ | vendor/android-tools/healthd/tests/AnimationParser_test.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | 3 | 2018-04-01T18:35:29.000Z | 2020-12-18T21:09:53.000Z | vendor/android-tools/healthd/tests/AnimationParser_test.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | 2 | 2017-04-24T12:29:05.000Z | 2017-05-09T12:27:10.000Z | vendor/android-tools/healthd/tests/AnimationParser_test.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... | 33.994819 | 80 | 0.705533 | dylanh333 |
2fc59a4dd78a65139bd7bcb45fa247f7a42938d2 | 727 | hpp | C++ | engine/src/engine/graphics/SDLRenderable.hpp | CaptureTheBanana/CaptureTheBanana | 1398bedc80608e502c87b880c5b57d272236f229 | [
"MIT"
] | 1 | 2018-08-14T05:45:29.000Z | 2018-08-14T05:45:29.000Z | engine/src/engine/graphics/SDLRenderable.hpp | CaptureTheBanana/CaptureTheBanana | 1398bedc80608e502c87b880c5b57d272236f229 | [
"MIT"
] | null | null | null | engine/src/engine/graphics/SDLRenderable.hpp | CaptureTheBanana/CaptureTheBanana | 1398bedc80608e502c87b880c5b57d272236f229 | [
"MIT"
] | null | null | null | // This file is part of CaptureTheBanana++.
//
// Copyright (c) 2018 the CaptureTheBanana++ contributors (see CONTRIBUTORS.md)
// This file is licensed under the MIT license; see LICENSE file in the root of this
// project for details.
#ifndef ENGINE_GRAPHIC_SDL_RENDERALBE_HPP
#define ENGINE_GRAPHIC_SDL_RENDERALBE_HPP... | 22.030303 | 84 | 0.738652 | CaptureTheBanana |
2fd1ca1aade3c97ad1c643c27df69497c94a5d64 | 2,384 | cpp | C++ | src/common/Honey/Object/ListenerList.cpp | Qarterd/Honeycomb | 9b7066529444cdd85d3e3467b02b72eea651853d | [
"CC0-1.0"
] | 33 | 2015-05-08T00:11:01.000Z | 2022-03-04T08:25:06.000Z | src/common/Honey/Object/ListenerList.cpp | Qarterd/Honeycomb | 9b7066529444cdd85d3e3467b02b72eea651853d | [
"CC0-1.0"
] | null | null | null | src/common/Honey/Object/ListenerList.cpp | Qarterd/Honeycomb | 9b7066529444cdd85d3e3467b02b72eea651853d | [
"CC0-1.0"
] | 6 | 2015-08-08T13:47:14.000Z | 2021-04-06T02:29:41.000Z | // Honeycomb, Copyright (C) 2015 NewGamePlus Inc. Distributed under the Boost Software License v1.0.
#pragma hdrstop
#include "Honey/Object/ListenerList.h"
namespace honey
{
void ListenerList::add(const Listener& listener)
{
SpinLock::Scoped _(_lock);
//Add listener to object map
_objMap.i... | 28.380952 | 102 | 0.626678 | Qarterd |
2fd68dc30bf00e3759b6676b4c2dbb30f0949f57 | 5,848 | cpp | C++ | AlphaClient/AlphaGraph/CRenderCommandMgr.cpp | xujianming/Alpha | 641f17b8091deede9869056cd62868c76035c975 | [
"MIT"
] | null | null | null | AlphaClient/AlphaGraph/CRenderCommandMgr.cpp | xujianming/Alpha | 641f17b8091deede9869056cd62868c76035c975 | [
"MIT"
] | null | null | null | AlphaClient/AlphaGraph/CRenderCommandMgr.cpp | xujianming/Alpha | 641f17b8091deede9869056cd62868c76035c975 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CGraphic.h"
#include "CRenderCommandMgr.h"
#include "CRenderStateMgr.h"
CRenderCommandMgr::CRenderCommandMgr(CGraphic* pGraphic):
m_pGraphic(pGraphic)
{
m_envirStack.clear();
m_curEnvir.ambient;
m_curEnvir.nLighCnt = 0;
}
CRenderCommandMgr::~CRenderCommandMgr()
{
}
... | 34.809524 | 258 | 0.745896 | xujianming |
2fd7b93bed570e648970317828d015c8fb24c6c8 | 365 | cpp | C++ | C++/Clase 6/Clase6.7.cpp | Rofernweh/UDPpl | da448091396b3f567f83e2964e8db97f6b8382bc | [
"MIT"
] | null | null | null | C++/Clase 6/Clase6.7.cpp | Rofernweh/UDPpl | da448091396b3f567f83e2964e8db97f6b8382bc | [
"MIT"
] | 1 | 2021-06-29T05:16:19.000Z | 2021-06-29T05:16:19.000Z | C++/Clase 6/Clase6.7.cpp | Rofernweh/UDPpl | da448091396b3f567f83e2964e8db97f6b8382bc | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
//Calcular el producto de dos números a y b dados sin usar el operador *
int main()
{
int a, b;
cout << "Ingrese el multiplicando: ";
cin >> a;
cout << "Ingrese el multiplicador: ";
cin >> b;
int resultado=1;
int i=0;
while (i<b)
{
resultado *= a;
i++... | 16.590909 | 73 | 0.589041 | Rofernweh |
7c7c0760fb927b2856069847a19b0f9ce88f908c | 7,206 | cpp | C++ | source/TestHarness/UserPrompter.cpp | easmith14/cse687-group1 | 48de6502c0bcc76f5269fdab8b8d1f2378f75a1e | [
"MIT"
] | 2 | 2021-04-15T22:57:53.000Z | 2021-04-27T02:13:55.000Z | source/TestHarness/UserPrompter.cpp | easmith14/cse687-group1 | 48de6502c0bcc76f5269fdab8b8d1f2378f75a1e | [
"MIT"
] | null | null | null | source/TestHarness/UserPrompter.cpp | easmith14/cse687-group1 | 48de6502c0bcc76f5269fdab8b8d1f2378f75a1e | [
"MIT"
] | 1 | 2021-04-15T22:58:35.000Z | 2021-04-15T22:58:35.000Z | /*
CSE687 - Object Oriented Design
Syracuse University
///////////////////////////////////////////////////////////
// Final Project by Aaron Mendelsohn, Evan Smith, Stephen Woodard, Mike Rice
///////////////////////////////////////////////////////////
5/13/2021
*/
#include <iostream>
#include "UserPrompter.h"
using st... | 24.848276 | 131 | 0.572301 | easmith14 |
7c7cab6beac54f7dd8e644d60cec308c0cae2d1d | 1,594 | cxx | C++ | node.cxx | trotill/11parts_CPP | 53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b | [
"MIT"
] | null | null | null | node.cxx | trotill/11parts_CPP | 53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b | [
"MIT"
] | null | null | null | node.cxx | trotill/11parts_CPP | 53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b | [
"MIT"
] | null | null | null | /*
* node.cxx
*
* Created on: 18 дек. 2018 г.
* Author: root
*/
#include "node.h"
eErrorTp NodeT::LoadAndApplySetting(string setting_name)
{
string JSONstr;
if (Sm.LoadJSONInStorage(JSONstr,(char*)setting_name.c_str())==NO_ERROR)
return ApplySetting(JSONstr);
else
GPRINT(NORMAL_LEVEL,"Critical error... | 20.973684 | 94 | 0.696361 | trotill |
7c83227ce604dab1fbe49b411558ad6486019bff | 62,622 | hpp | C++ | ikcp.hpp | Mainvooid/kcp-hpp | efc68b6732d6641c9f710e19e2680b65d5f9caf6 | [
"MIT"
] | 2 | 2020-11-25T01:17:38.000Z | 2021-02-08T06:31:18.000Z | ikcp.hpp | Mainvooid/kcp-hpp | efc68b6732d6641c9f710e19e2680b65d5f9caf6 | [
"MIT"
] | null | null | null | ikcp.hpp | Mainvooid/kcp-hpp | efc68b6732d6641c9f710e19e2680b65d5f9caf6 | [
"MIT"
] | null | null | null | //=====================================================================
//
// KCP - A Better ARQ Protocol Implementation
// 原作者: skywind3000 (at) gmail.com, 2010-2011
//
// Features:
// + Average RTT reduce 30% - 40% vs traditional ARQ like tcp.
// + Maximum RTT reduce three times vs tcp.
// + Lightweight, dist... | 31.659252 | 144 | 0.548386 | Mainvooid |
7c894e843fae7c7045eaf1fc5950387bab9a5e5c | 831 | inl | C++ | src/ScriptSystem/Init/details/UECS_AutoRefl/SingletonLocator_AutoRefl.inl | Jerry-Shen0527/Utopia | 5f40edc814e5f6a33957cdc889524c41c5ef870f | [
"MIT"
] | 321 | 2020-10-04T01:43:36.000Z | 2022-03-31T02:43:38.000Z | src/ScriptSystem/Init/details/UECS_AutoRefl/SingletonLocator_AutoRefl.inl | Jerry-Shen0527/Utopia | 5f40edc814e5f6a33957cdc889524c41c5ef870f | [
"MIT"
] | 9 | 2020-11-17T04:06:22.000Z | 2022-02-19T09:05:29.000Z | src/ScriptSystem/Init/details/UECS_AutoRefl/SingletonLocator_AutoRefl.inl | Jerry-Shen0527/Utopia | 5f40edc814e5f6a33957cdc889524c41c5ef870f | [
"MIT"
] | 41 | 2020-10-09T10:09:34.000Z | 2022-03-27T02:51:57.000Z | // This file is generated by Ubpa::USRefl::AutoRefl
#pragma once
#include <USRefl/USRefl.h>
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::UECS::SingletonLocator> :
TypeInfoBase<Ubpa::UECS::SingletonLocator>
{
#ifdef UBPA_USREFL_NOT_USE_NAMEOF
static constexpr char name[29] = "Ubpa::UECS::SingletonLocator";
... | 34.625 | 100 | 0.701564 | Jerry-Shen0527 |
7c8b9434847d3ded52f36db34b7a249abe88a833 | 3,675 | cpp | C++ | src/style_editor_dialog.cpp | delaitre/flan | 8b001b419e984613aa5711d0a434d43b8b2a51a0 | [
"MIT"
] | null | null | null | src/style_editor_dialog.cpp | delaitre/flan | 8b001b419e984613aa5711d0a434d43b8b2a51a0 | [
"MIT"
] | 14 | 2022-03-28T00:41:02.000Z | 2022-03-28T21:26:33.000Z | src/style_editor_dialog.cpp | delaitre/flan | 8b001b419e984613aa5711d0a434d43b8b2a51a0 | [
"MIT"
] | null | null | null |
#include <flan/color_button.hpp>
#include <flan/style_editor_dialog.hpp>
#include <QComboBox>
#include <QDialogButtonBox>
#include <QFormLayout>
#include <QLabel>
namespace flan
{
namespace
{
//! Cast an enum class value \a e to its underlying type.
template <typename Enum>
[[maybe_unused]] constexpr auto to_underlyi... | 35 | 100 | 0.733061 | delaitre |
7c8cb59b847dd05f43e4fe4042bc11766f1af1d1 | 558 | cpp | C++ | src/RE/BSExtraData/ExtraAliasInstanceArray.cpp | SpectralPlatypus/CommonLibSSE | 18f076cdbe99c3a0e7d53ba5fb8c93ffe001279c | [
"MIT"
] | 1 | 2021-08-30T20:33:43.000Z | 2021-08-30T20:33:43.000Z | src/RE/BSExtraData/ExtraAliasInstanceArray.cpp | SpectralPlatypus/CommonLibSSE | 18f076cdbe99c3a0e7d53ba5fb8c93ffe001279c | [
"MIT"
] | null | null | null | src/RE/BSExtraData/ExtraAliasInstanceArray.cpp | SpectralPlatypus/CommonLibSSE | 18f076cdbe99c3a0e7d53ba5fb8c93ffe001279c | [
"MIT"
] | 1 | 2020-10-08T02:48:33.000Z | 2020-10-08T02:48:33.000Z | #include "RE/BSExtraData/ExtraAliasInstanceArray.h"
#include "RE/Memory/MemoryManager.h"
namespace RE
{
ExtraAliasInstanceArray::ExtraAliasInstanceArray() :
BSExtraData(),
aliases(),
lock()
{
REL::Relocation<std::uintptr_t> vtbl{ Offset::ExtraAliasInstanceArray::Vtbl };
((std::uintptr_t*)this)[0] = vtbl.... | 18 | 80 | 0.72043 | SpectralPlatypus |
7c932dc74b9d9027531d71b32e28f294fdd9a633 | 7,146 | cpp | C++ | plugins/assign_icon.cpp | quietust/dfhack-23a | 6096c385cc70db363d8d680745d7da4a973b05d5 | [
"BSD-2-Clause"
] | 1 | 2017-09-28T04:55:05.000Z | 2017-09-28T04:55:05.000Z | plugins/assign_icon.cpp | quietust/dfhack-23a | 6096c385cc70db363d8d680745d7da4a973b05d5 | [
"BSD-2-Clause"
] | null | null | null | plugins/assign_icon.cpp | quietust/dfhack-23a | 6096c385cc70db363d8d680745d7da4a973b05d5 | [
"BSD-2-Clause"
] | 1 | 2016-04-16T04:40:16.000Z | 2016-04-16T04:40:16.000Z | // Display building icons in the Assign to Cage/Chain UI
#include "Core.h"
#include <Console.h>
#include <Export.h>
#include <PluginManager.h>
#include <MiscUtils.h>
#include <modules/Gui.h>
#include <modules/Units.h>
#include <modules/Screen.h>
#include <vector>
#include <string>
#include <set>
#include <algorithm>
... | 27.37931 | 150 | 0.59068 | quietust |
7c93338cf40f3c9a7edc50c4ed113ecf9202747f | 324 | cpp | C++ | Codeforces/1000~1999/1244/C.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | 6 | 2018-12-30T06:16:54.000Z | 2022-03-23T08:03:33.000Z | Codeforces/1000~1999/1244/C.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | Codeforces/1000~1999/1244/C.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <cstring>
#define int long long
int n, a, b, c;
signed main() {
scanf("%lld%lld%lld%lld", &n, &c, &a, &b);
for (int x, y = 0, t; y < a; y++)
if (!((t = c - y * b) % a) && (x = t / a) >= 0 && x + y <= n)
return !printf("%lld %lld %lld", x, y, n - x - y);
puts("-1"... | 24.923077 | 63 | 0.481481 | tiger0132 |
7c95a4ca2f855dfc625ee899427181bd811f1329 | 34,203 | cc | C++ | src/components/application_manager/test/commands/hmi/dummy_hmi_commands_test.cc | APipko/sdl_core | 7f7fcbb998fb17f2954fd103349af67ea9b71a3f | [
"BSD-3-Clause"
] | 2 | 2016-09-21T12:36:17.000Z | 2017-11-03T07:58:33.000Z | src/components/application_manager/test/commands/hmi/dummy_hmi_commands_test.cc | APipko/sdl_core | 7f7fcbb998fb17f2954fd103349af67ea9b71a3f | [
"BSD-3-Clause"
] | 64 | 2016-04-21T10:30:58.000Z | 2020-01-30T11:17:36.000Z | src/components/application_manager/test/commands/hmi/dummy_hmi_commands_test.cc | APipko/sdl_core | 7f7fcbb998fb17f2954fd103349af67ea9b71a3f | [
"BSD-3-Clause"
] | 12 | 2015-09-14T08:17:55.000Z | 2018-06-29T10:16:59.000Z | /*
* Copyright (c) 2016, Ford Motor Company
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of condit... | 55.34466 | 89 | 0.787153 | APipko |
7c9e23c44946cc0bbc914a71334b54d72921fbf0 | 4,729 | cpp | C++ | gui/utils/launch.cpp | ERPShuen/ICQ1 | f319a72ad60aae4809eef0e4eb362f4d69292296 | [
"Apache-2.0"
] | 1 | 2019-12-02T08:37:10.000Z | 2019-12-02T08:37:10.000Z | gui/utils/launch.cpp | ERPShuen/ICQ1 | f319a72ad60aae4809eef0e4eb362f4d69292296 | [
"Apache-2.0"
] | null | null | null | gui/utils/launch.cpp | ERPShuen/ICQ1 | f319a72ad60aae4809eef0e4eb362f4d69292296 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "launch.h"
#include "application.h"
#include "../types/chat.h"
#include "../types/contact.h"
#include "../types/images.h"
#include "../types/link_metadata.h"
#include "../types/message.h"
#include "../types/typing.h"
#include "../types/snap.h"
#include "../cache/snaps/SnapStorage.h"
#includ... | 29.93038 | 108 | 0.666526 | ERPShuen |
7c9f8d04bea38f2c93bc226eacaac40a32bc8b0d | 2,189 | hpp | C++ | CUI/include/cui/compile_time/format/format.hpp | mscofield0/cui-sfml | f70dfdf977958eb2b37162d474873c75df4dadc5 | [
"MIT"
] | null | null | null | CUI/include/cui/compile_time/format/format.hpp | mscofield0/cui-sfml | f70dfdf977958eb2b37162d474873c75df4dadc5 | [
"MIT"
] | null | null | null | CUI/include/cui/compile_time/format/format.hpp | mscofield0/cui-sfml | f70dfdf977958eb2b37162d474873c75df4dadc5 | [
"MIT"
] | null | null | null | #ifndef CUI_CT_FMT_FORMAT_HPP
#define CUI_CT_FMT_FORMAT_HPP
#include <array>
#include <exception>
#include <limits>
#include <aliases.hpp>
#include <compile_time/format/detail/log10.hpp>
#include <compile_time/format/detail/pow.hpp>
#include <utils/abs.hpp>
namespace cui::ct {
template <std::size_t Size>
class Form... | 22.336735 | 77 | 0.65281 | mscofield0 |
7ca3526ffa51d34e37cab84d858981c1e1d3114c | 421 | cpp | C++ | LoaderPkg/kernel/Mouse.cpp | hogehogei/HogepOS | 27ab0927c3efa6d766b9ff1732cea8c147a604cd | [
"Apache-2.0"
] | null | null | null | LoaderPkg/kernel/Mouse.cpp | hogehogei/HogepOS | 27ab0927c3efa6d766b9ff1732cea8c147a604cd | [
"Apache-2.0"
] | null | null | null | LoaderPkg/kernel/Mouse.cpp | hogehogei/HogepOS | 27ab0927c3efa6d766b9ff1732cea8c147a604cd | [
"Apache-2.0"
] | null | null | null |
//
// include files
//
#include "Mouse.hpp"
#include "MouseCursor.hpp"
#include "usb/memory.hpp"
#include "usb/device.hpp"
#include "usb/classdriver/mouse.hpp"
#include "usb/xhci/xhci.hpp"
#include "usb/xhci/trb.hpp"
//
// constant
//
//
// static variables
//
//
// static function declaration
//
//
// funcion d... | 12.757576 | 58 | 0.68171 | hogehogei |
7ca5a65a9ee2234963ed0b936302efc826e645c9 | 1,279 | hpp | C++ | include/skyr/v2/percent_encoding/percent_encode.hpp | BioDataAnalysis/url | 281501b0fdf00b52eeb114f6856a9a83004d204e | [
"BSL-1.0"
] | 47 | 2019-08-24T13:43:45.000Z | 2022-02-21T11:45:19.000Z | include/skyr/v2/percent_encoding/percent_encode.hpp | BioDataAnalysis/url | 281501b0fdf00b52eeb114f6856a9a83004d204e | [
"BSL-1.0"
] | 35 | 2018-10-13T10:35:00.000Z | 2021-06-11T12:23:55.000Z | include/skyr/v2/percent_encoding/percent_encode.hpp | BioDataAnalysis/url | 281501b0fdf00b52eeb114f6856a9a83004d204e | [
"BSL-1.0"
] | 25 | 2019-02-19T02:46:21.000Z | 2021-10-21T14:53:00.000Z | // Copyright 2020 Glyn Matthews.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SKYR_V2_PERCENT_ENCODING_PERCENT_ENCODE_HPP
#define SKYR_V2_PERCENT_ENCODING_PERCENT_ENCODE_HPP
#include <string_view>
#i... | 35.527778 | 111 | 0.762314 | BioDataAnalysis |
7ca6f6c8cc5fbf1a54c3cc97c24d99b72f813599 | 990 | cc | C++ | src/calculator.cc | HardGraphite/SimpleCalculator | e72e7ec0177379638ff90adeff574ae4b9a073f7 | [
"MIT"
] | null | null | null | src/calculator.cc | HardGraphite/SimpleCalculator | e72e7ec0177379638ff90adeff574ae4b9a073f7 | [
"MIT"
] | null | null | null | src/calculator.cc | HardGraphite/SimpleCalculator | e72e7ec0177379638ff90adeff574ae4b9a073f7 | [
"MIT"
] | null | null | null | #include <lexic.h>
#include <syntax.h>
#include <eval.h>
#include <calculator.h>
#include <sstream>
using namespace hgl::calc;
double hgl::calc::calculate(const char * expr)
{
Calculator c;
return c.calculate(expr);
}
double hgl::calc::calculate(std::istream & expr)
{
Calculator c;
return c.calcula... | 17.068966 | 67 | 0.658586 | HardGraphite |
7ca7b55ed9f1477688715d510f75d14141df5f5c | 27,741 | cpp | C++ | src/obstacle_detector.cpp | yssmii/emulated_srs | 6551ee20f1a5fdf337391d99843b143fa630856f | [
"MIT"
] | null | null | null | src/obstacle_detector.cpp | yssmii/emulated_srs | 6551ee20f1a5fdf337391d99843b143fa630856f | [
"MIT"
] | 1 | 2021-10-04T07:54:47.000Z | 2021-10-04T07:54:53.000Z | src/obstacle_detector.cpp | yssmii/emulated_srs | 6551ee20f1a5fdf337391d99843b143fa630856f | [
"MIT"
] | null | null | null | // -*- C++ -*-
/**
* @file obstacle_detector.cpp
* @brief A class of a ROS node for obstacle detection with classification
*
* @author Yasushi SUMI <y.sumi@aist.go.jp>
*
* Copyright (C) 2019 AIST
* Released under the MIT license
* https://opensource.org/licenses/mit-license.php
*/
#ifdef HAVE_CONFIG_H
#incl... | 27.880402 | 101 | 0.67247 | yssmii |
7ca86f67ad6ab3e682cd2f3f2e581b2849e6ba8c | 45,189 | hpp | C++ | Motorola/MCore IDA IDP/4.8/IDA/Inc/dbg.hpp | erithion/old_junk | b2dcaa23320824f8b2c17571f27826869ccd0d4b | [
"MIT"
] | 1 | 2021-06-26T17:08:24.000Z | 2021-06-26T17:08:24.000Z | Motorola/MCore IDA IDP/4.8/IDA/Inc/dbg.hpp | erithion/old_junk | b2dcaa23320824f8b2c17571f27826869ccd0d4b | [
"MIT"
] | null | null | null | Motorola/MCore IDA IDP/4.8/IDA/Inc/dbg.hpp | erithion/old_junk | b2dcaa23320824f8b2c17571f27826869ccd0d4b | [
"MIT"
] | null | null | null | /*
* Interactive disassembler (IDA).
* Copyright (c) 1990-98 by Ilfak Guilfanov.
* ALL RIGHTS RESERVED.
* E-mail: ig@estar.msk.su, ig@datarescue.com
* FIDO: 2:5020/209
*
*/
#ifndef DBG_HPP
#define DBG_HPP
#pragma pack(push, 1)... | 48.747573 | 171 | 0.626126 | erithion |
7caa1439e62e3f3ad94056595f39b68a10ed209a | 4,310 | cpp | C++ | tools/try/main.cpp | stonelang/stone | 381d2ef5d87dc3fb2922410d4e9cba1006b93aa4 | [
"MIT"
] | 2 | 2021-01-25T06:18:02.000Z | 2021-01-25T09:25:20.000Z | tools/try/main.cpp | stonelang/stone | 381d2ef5d87dc3fb2922410d4e9cba1006b93aa4 | [
"MIT"
] | null | null | null | tools/try/main.cpp | stonelang/stone | 381d2ef5d87dc3fb2922410d4e9cba1006b93aa4 | [
"MIT"
] | null | null | null | #include <assert.h>
#include <stdio.h>
#include <memory>
// class Compilable {
// public:
// virtual void CompileFile() = 0;
// };
// class SyntaxConsumer {
// public:
// virtual void Listen(int i) = 0;
// };
// class SyntaxParsing : public Compilable {
// SyntaxConsumer *consumer = nullptr;
// public:
// ... | 18.986784 | 78 | 0.660325 | stonelang |
7cac6d5f3b3907612a975b13e7bfe0f68423f661 | 194 | cpp | C++ | samples/labs/main.cpp | SAI990323/compiler | 6104c6d6cb844c9f61d313f2533d2df354c95a0d | [
"MIT"
] | null | null | null | samples/labs/main.cpp | SAI990323/compiler | 6104c6d6cb844c9f61d313f2533d2df354c95a0d | [
"MIT"
] | 3 | 2020-03-29T05:35:03.000Z | 2020-03-31T04:06:30.000Z | samples/labs/main.cpp | SAI990323/compiler | 6104c6d6cb844c9f61d313f2533d2df354c95a0d | [
"MIT"
] | 4 | 2020-03-26T03:35:55.000Z | 2020-05-09T11:41:51.000Z | #include <utils/show/graphShow.hpp>
int main() {
utils::show::graphShow graphShow;
graphShow.load("./assets/dfa/nfa_define.txt");
graphShow.nfa_to_dfa();
graphShow.dfa_show();
} | 24.25 | 50 | 0.685567 | SAI990323 |
7cacf2521a8b3facfc4802f9c1795970c2a59a44 | 521 | hpp | C++ | Merlin/Merlin/Platform/GLFW/glfw_input.hpp | kshatos/MerlinEngine | a7eb9b39b6cb8a02bef0f739db25268a7a06e215 | [
"MIT"
] | null | null | null | Merlin/Merlin/Platform/GLFW/glfw_input.hpp | kshatos/MerlinEngine | a7eb9b39b6cb8a02bef0f739db25268a7a06e215 | [
"MIT"
] | null | null | null | Merlin/Merlin/Platform/GLFW/glfw_input.hpp | kshatos/MerlinEngine | a7eb9b39b6cb8a02bef0f739db25268a7a06e215 | [
"MIT"
] | null | null | null | #ifndef GLFW_INPUT_HPP
#define GLFW_INPUT_HPP
#include "Merlin/Core/input.hpp"
namespace Merlin
{
class GLFWInput : public Input
{
InputState input_state;
protected:
void HandleEventImpl(AppEvent& app_event) override;
void EndFrameImpl() override;
bool GetKeyDownImpl(KeyCod... | 26.05 | 63 | 0.702495 | kshatos |
7cb01834839f2fc9f986e1b3301ef01e18600513 | 302 | cpp | C++ | DCEL_CUTS/Float_Offsets.cpp | Procedurally-Unorthodox/DCEL_Cuts | 181c8c42cfb56f982e6d61acbfe372711e3a845b | [
"MIT"
] | null | null | null | DCEL_CUTS/Float_Offsets.cpp | Procedurally-Unorthodox/DCEL_Cuts | 181c8c42cfb56f982e6d61acbfe372711e3a845b | [
"MIT"
] | null | null | null | DCEL_CUTS/Float_Offsets.cpp | Procedurally-Unorthodox/DCEL_Cuts | 181c8c42cfb56f982e6d61acbfe372711e3a845b | [
"MIT"
] | null | null | null | #include "Double_Offsets.h"
FLL<Pdbl> offsetPolygon(FLL<Pdbl> &source, double distance) {
FLL<Pdbl> adjustments;
Pdbl last = source.last();
for (auto next : source) {
Pdbl segment = next - last;
Pdbl perp(-segment.Y, segment.X);
perp.Normalize();
last = next;
}
return FLL<Pdbl>();
} | 16.777778 | 61 | 0.65894 | Procedurally-Unorthodox |
7cb3c741641c677bb38eac6ab24bfc87b679e6a2 | 37,821 | cpp | C++ | src/d3d9/d3d9_state.cpp | dports/dxup | e961838d3d0d5db02cd065b782ad890bf876ceef | [
"Zlib"
] | 268 | 2018-04-27T14:05:01.000Z | 2022-03-24T03:55:54.000Z | src/d3d9/d3d9_state.cpp | dports/dxup | e961838d3d0d5db02cd065b782ad890bf876ceef | [
"Zlib"
] | 49 | 2018-04-29T09:39:03.000Z | 2019-09-14T12:33:44.000Z | src/d3d9/d3d9_state.cpp | dports/dxup | e961838d3d0d5db02cd065b782ad890bf876ceef | [
"Zlib"
] | 28 | 2018-05-16T12:07:49.000Z | 2022-02-26T09:19:18.000Z | #include "d3d9_state.h"
#include "d3d9_util.h"
#include "d3d9_texture.h"
namespace dxup {
// I hate this whole file. It sucks.
// I really want to clean up state capturing sometime but I'm not really sure how.
// I thought about having a generic state class, but something like that wouldn't really work
// nic... | 35.713881 | 135 | 0.721848 | dports |
7cb4086802c660052faef50556968a3f136524d4 | 192 | cpp | C++ | stm32/Core/Src/RadioConfig/radio_config_b1_cw.cpp | tk20dk/garfield | b2602125c80d024cd55f1d25f3c9bf56067aba05 | [
"MIT"
] | null | null | null | stm32/Core/Src/RadioConfig/radio_config_b1_cw.cpp | tk20dk/garfield | b2602125c80d024cd55f1d25f3c9bf56067aba05 | [
"MIT"
] | null | null | null | stm32/Core/Src/RadioConfig/radio_config_b1_cw.cpp | tk20dk/garfield | b2602125c80d024cd55f1d25f3c9bf56067aba05 | [
"MIT"
] | null | null | null | #include <stdint.h>
#include "RadioConfig/radio_config_b1_cw.h"
uint8_t const RADIO__CONFIG_B1_CW[] = RADIO_CONFIGURATION_DATA_ARRAY;
uint8_t const *RADIO_CONFIG_B1_CW = RADIO__CONFIG_B1_CW;
| 32 | 69 | 0.838542 | tk20dk |
7cbe2e96472595c3e1a85c7724a93afe009e766d | 10,658 | cpp | C++ | sabre/src/sabre/Type_Interner.cpp | OmarHadhoud/sabre | d4f21fa05e6b6d4bebd4c64a3025daddd52b2003 | [
"BSD-3-Clause"
] | null | null | null | sabre/src/sabre/Type_Interner.cpp | OmarHadhoud/sabre | d4f21fa05e6b6d4bebd4c64a3025daddd52b2003 | [
"BSD-3-Clause"
] | null | null | null | sabre/src/sabre/Type_Interner.cpp | OmarHadhoud/sabre | d4f21fa05e6b6d4bebd4c64a3025daddd52b2003 | [
"BSD-3-Clause"
] | null | null | null | #include "sabre/Type_Interner.h"
namespace sabre
{
inline static Type
_vec_builtin(Type* base, size_t width, size_t size, size_t alignment)
{
Type self{};
self.kind = Type::KIND_VEC;
self.size = size;
self.alignment = alignment;
self.vec.base = base;
self.vec.width = width;
return self;
... | 34.716612 | 175 | 0.709608 | OmarHadhoud |
7cc00540a58f2063cf1033eff2ca4374258c0853 | 693 | cpp | C++ | source/logging/logging.cpp | rzbdz/libcoring | dffd4c2193ac4f2ab8822b5e047c056d6eb11f8d | [
"MIT"
] | 4 | 2022-01-08T21:03:07.000Z | 2022-02-18T11:15:10.000Z | source/logging/logging.cpp | rzbdz/libcoring | dffd4c2193ac4f2ab8822b5e047c056d6eb11f8d | [
"MIT"
] | null | null | null | source/logging/logging.cpp | rzbdz/libcoring | dffd4c2193ac4f2ab8822b5e047c056d6eb11f8d | [
"MIT"
] | null | null | null |
#include <coring/logging.hpp>
#include "coring/detail/thread.hpp"
namespace coring {
log_level LOG_LEVEL = LOG_LEVEL_CNT;
logger::submit_interface logger::submitter_;
// this must be completed in front end
const char *logger::log_level_map_[] = {"TRACE", "DEBUG", "INFO ", "WARN ", "ERROR", "FATAL"};
logger::logger(... | 33 | 94 | 0.715729 | rzbdz |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.