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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17f4fd2aa42aba2bc2d5e442a303d1bc9d49005b | 7,579 | cpp | C++ | unittests/time/TimeTest.cpp | zavadovsky/stingraykit | 33e6587535325f08769bd8392381d70d4d316410 | [
"0BSD"
] | 24 | 2015-03-04T16:30:03.000Z | 2022-02-04T15:03:42.000Z | unittests/time/TimeTest.cpp | zavadovsky/stingraykit | 33e6587535325f08769bd8392381d70d4d316410 | [
"0BSD"
] | null | null | null | unittests/time/TimeTest.cpp | zavadovsky/stingraykit | 33e6587535325f08769bd8392381d70d4d316410 | [
"0BSD"
] | 7 | 2015-04-08T12:22:58.000Z | 2018-06-14T09:58:45.000Z | #include <gtest/gtest.h>
#include <stingraykit/string/StringUtils.h>
#include <stingraykit/time/Time.h>
using namespace stingray;
TEST(TimeTest, BrokenDownTime)
{
Time now = Time::Now();
{
BrokenDownTime bdt = now.BreakDown(TimeKind::Local);
Time reconstructed = Time::FromBrokenDownTime(bdt, TimeKind::Local);
... | 27.067857 | 89 | 0.727273 | zavadovsky |
17f51d46015ebf633df199d9b6436d447422e454 | 2,760 | cpp | C++ | firmware/src/ssdp.cpp | chientung/smartplug | 3247b15f4c410f0d9d0c4904277ff428485ebbf0 | [
"MIT"
] | 27 | 2018-08-28T12:37:22.000Z | 2022-03-11T19:39:32.000Z | firmware/src/ssdp.cpp | chientung/smartplug | 3247b15f4c410f0d9d0c4904277ff428485ebbf0 | [
"MIT"
] | 33 | 2018-09-10T07:26:21.000Z | 2022-02-26T17:53:24.000Z | firmware/src/ssdp.cpp | chientung/smartplug | 3247b15f4c410f0d9d0c4904277ff428485ebbf0 | [
"MIT"
] | 4 | 2019-02-01T22:38:52.000Z | 2021-05-09T17:23:57.000Z | /////////////////////////////////////////////////////////////////////////////
/** @file
SSDP
\copyright Copyright (c) 2018 Chris Byrne. All rights reserved.
Licensed under the MIT License. Refer to LICENSE file in the project root. */
/////////////////////////////////////////////////////////////////////////////
#ifnde... | 32.857143 | 80 | 0.526087 | chientung |
17fc90d62ac97936df4e0b3dfa69815aacb367ff | 5,439 | cpp | C++ | gen/blink/bindings/core/v8/V8HTMLDataListElement.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | 8 | 2019-05-05T16:38:05.000Z | 2021-11-09T11:45:38.000Z | gen/blink/bindings/core/v8/V8HTMLDataListElement.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | null | null | null | gen/blink/bindings/core/v8/V8HTMLDataListElement.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | 4 | 2018-12-14T07:52:46.000Z | 2021-06-11T18:06:09.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8HTMLDataListElement.h"
#include "bindings/c... | 45.325 | 585 | 0.797941 | gergul |
17fd466e46149e08035629ea84e1fc5c92584f7c | 4,579 | cc | C++ | FW/src/lp/common/utilities/simple_circular_buffer.cc | thesofproject/converged-mpp | 8e6e13d57b58d1c4ea1793de46f92f9ff819a01d | [
"BSD-3-Clause"
] | null | null | null | FW/src/lp/common/utilities/simple_circular_buffer.cc | thesofproject/converged-mpp | 8e6e13d57b58d1c4ea1793de46f92f9ff819a01d | [
"BSD-3-Clause"
] | null | null | null | FW/src/lp/common/utilities/simple_circular_buffer.cc | thesofproject/converged-mpp | 8e6e13d57b58d1c4ea1793de46f92f9ff819a01d | [
"BSD-3-Clause"
] | 1 | 2021-12-08T09:43:25.000Z | 2021-12-08T09:43:25.000Z | // SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2021 Intel Corporation. All rights reserved.
#include "simple_circular_buffer.h"
#include <xtensa/tie/xt_hifi3.h>
namespace dsp_fw
{
void copy_from_cb(uint8_t* out, size_t s_out, const uint8_t* in, size_t bytes)
{
size_t n_samples = bytes / 4;
const... | 30.125 | 100 | 0.612798 | thesofproject |
aa004b7aeb515436363442d3e443913fa0641b60 | 7,014 | cpp | C++ | src/config.cpp | lms-org/lms | be5decd8e408bcefb82cbf9e0ee8f5deb04fd5a6 | [
"Apache-2.0"
] | 8 | 2016-09-20T20:54:56.000Z | 2020-11-08T23:18:45.000Z | src/config.cpp | lms-org/lms | be5decd8e408bcefb82cbf9e0ee8f5deb04fd5a6 | [
"Apache-2.0"
] | 41 | 2016-06-07T17:26:11.000Z | 2017-05-27T12:22:20.000Z | src/config.cpp | lms-org/lms | be5decd8e408bcefb82cbf9e0ee8f5deb04fd5a6 | [
"Apache-2.0"
] | 5 | 2016-10-19T15:04:45.000Z | 2020-11-08T23:18:57.000Z | #include <fstream>
#include <string>
#include <cstdlib>
#include <iostream>
#include <unordered_map>
#include <lms/config.h>
#include "internal/string.h"
namespace lms {
struct Config::Private {
std::unordered_map<std::string, std::string> properties;
template <typename T>
T get(const std::string &key, ... | 27.72332 | 83 | 0.578129 | lms-org |
aa0525b1e304a5502a00df3c6058610aaa733929 | 1,373 | cpp | C++ | Problems/0322. Coin Change.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0322. Coin Change.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0322. Coin Change.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | class Solution {
public:
int coinChange(vector<int>& coins, int amount) {
int n = coins.size();
// 1D MATRIX APPROACH ==========================
vector<int> dp(amount+1, amount+1);
dp[0]=0; //0 ways to make 0 amount
for(int i=1; i<=amount; i++){
... | 35.205128 | 74 | 0.388201 | KrKush23 |
aa06077527bf6d1a837a7a4879fcedc3e4b7cb1a | 505 | cpp | C++ | codes/TC_2020/FALL/3.cpp | pikaninja/collection-of-chessbot-codes | a56e5e4e38c293ecddd2ce4b0b922723ca833089 | [
"MIT"
] | null | null | null | codes/TC_2020/FALL/3.cpp | pikaninja/collection-of-chessbot-codes | a56e5e4e38c293ecddd2ce4b0b922723ca833089 | [
"MIT"
] | null | null | null | codes/TC_2020/FALL/3.cpp | pikaninja/collection-of-chessbot-codes | a56e5e4e38c293ecddd2ce4b0b922723ca833089 | [
"MIT"
] | null | null | null | //miles
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
getline(cin,s);
string x = "";
for(int i = 0; i < s.length(); i++){
x+=s[i];
if(x == "LLL"){
cout << "A";
x = "";
}else if(x == "SSL"){
cout << "T";
... | 18.035714 | 40 | 0.320792 | pikaninja |
aa08cba3638129d6eda29d3a00238ff7717930d2 | 17,368 | hpp | C++ | libraries/chain/include/graphene/chain/protocol/types.hpp | cyvasia/cyva | e98b26abfe8e96d0e1470626b0a525d44f9372a9 | [
"MIT"
] | null | null | null | libraries/chain/include/graphene/chain/protocol/types.hpp | cyvasia/cyva | e98b26abfe8e96d0e1470626b0a525d44f9372a9 | [
"MIT"
] | null | null | null | libraries/chain/include/graphene/chain/protocol/types.hpp | cyvasia/cyva | e98b26abfe8e96d0e1470626b0a525d44f9372a9 | [
"MIT"
] | null | null | null | /* (c) 2018 CYVA. For details refer to LICENSE */
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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 wit... | 46.814016 | 152 | 0.661389 | cyvasia |
aa0a7b16813bd572ada4de1cb17fdf969caf0638 | 227 | cpp | C++ | slides/assets/physics_engines/snippets/cryengine.cpp | dodocloud/aph-tutorials | 85a3d1db0bb4d6add3156f07bde5f597dca34123 | [
"MIT"
] | null | null | null | slides/assets/physics_engines/snippets/cryengine.cpp | dodocloud/aph-tutorials | 85a3d1db0bb4d6add3156f07bde5f597dca34123 | [
"MIT"
] | null | null | null | slides/assets/physics_engines/snippets/cryengine.cpp | dodocloud/aph-tutorials | 85a3d1db0bb4d6add3156f07bde5f597dca34123 | [
"MIT"
] | 1 | 2022-01-17T20:55:02.000Z | 2022-01-17T20:55:02.000Z | if (min(min(min(body.M,ibody_inv.x),ibody_inv.y),ibody_inv.z)<0) {
body.M = body.Minv = 0;
body.Ibody_inv.zero(); body.Ibody.zero();
} else {
body.P = (body.v=v)*body.M;
body.L = body.q*(body.Ibody*(!body.q*(body.w=w)));
} | 32.428571 | 66 | 0.621145 | dodocloud |
aa0ad9ad4dd219b99636017624cb712976491fa0 | 4,581 | hpp | C++ | include/huffman/huff_pc_ss.hpp | kurpicz/pwm | 7e0837d0e3da6cf7b63e80b04a75a61b73b91779 | [
"BSD-2-Clause"
] | 14 | 2017-02-27T10:15:50.000Z | 2021-12-06T18:36:53.000Z | include/huffman/huff_pc_ss.hpp | kurpicz/pwm | 7e0837d0e3da6cf7b63e80b04a75a61b73b91779 | [
"BSD-2-Clause"
] | 5 | 2017-04-21T16:05:10.000Z | 2019-03-26T07:08:47.000Z | include/huffman/huff_pc_ss.hpp | kurpicz/pwm | 7e0837d0e3da6cf7b63e80b04a75a61b73b91779 | [
"BSD-2-Clause"
] | 3 | 2018-10-31T14:12:59.000Z | 2021-03-09T15:37:50.000Z | /*******************************************************************************
* include/huffman/huff_pc.hpp
*
* Copyright (C) 2018 Marvin Lรถbel <loebel.marvin@gmail.com>
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
*************************************************************... | 36.943548 | 80 | 0.591356 | kurpicz |
aa0d16b316f39f58a5dab58ad876890c8a9ff8fb | 260 | cpp | C++ | Game_PC/src/Butterfly.cpp | neuroprod/omniBotProto | 5abf1b5a9846ba093325af7a86ee2d7b8cbe12e6 | [
"MIT"
] | 46 | 2017-03-03T20:34:23.000Z | 2021-11-07T02:37:44.000Z | Game_PC/src/Butterfly.cpp | neuroprod/omniBotProto | 5abf1b5a9846ba093325af7a86ee2d7b8cbe12e6 | [
"MIT"
] | null | null | null | Game_PC/src/Butterfly.cpp | neuroprod/omniBotProto | 5abf1b5a9846ba093325af7a86ee2d7b8cbe12e6 | [
"MIT"
] | 18 | 2017-04-27T09:40:47.000Z | 2021-12-06T05:38:48.000Z | //
// Butterfly.cpp
// Game_PC
//
// Created by Kris Temmerman on 03/10/2017.
//
//
#include "Butterfly.hpp"
using namespace ci;
using namespace ci::app;
using namespace std;
ButterflyRef Butterfly::create()
{
return make_shared<Butterfly>();
}
| 11.304348 | 44 | 0.673077 | neuroprod |
aa10887002b21c22c61dc722e288c1d02bcc1e0e | 8,978 | cpp | C++ | tephra/src/tephra/descriptor.cpp | cvbn127/captal-engine | 93a5f428b4cee810b529b7c9a9b3bf6504c8f32f | [
"MIT"
] | 78 | 2021-11-02T13:55:43.000Z | 2022-02-25T09:37:22.000Z | tephra/src/tephra/descriptor.cpp | cvbn127/captal-engine | 93a5f428b4cee810b529b7c9a9b3bf6504c8f32f | [
"MIT"
] | null | null | null | tephra/src/tephra/descriptor.cpp | cvbn127/captal-engine | 93a5f428b4cee810b529b7c9a9b3bf6504c8f32f | [
"MIT"
] | 6 | 2021-11-03T06:56:22.000Z | 2022-01-13T19:11:29.000Z | //MIT License
//
//Copyright (c) 2021 Alexy Pellegrini
//
//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, ... | 39.725664 | 224 | 0.736578 | cvbn127 |
aa1a411584f5d23e498cdda72490e27d8fe6dcc2 | 5,402 | cpp | C++ | server/nhocr/nhocr-0.21/makedic/makedic.cpp | el-hoshino/HandwrAIter | b9fcc0db975bac615e6331d2a8147b596dd11028 | [
"MIT"
] | 17 | 2017-04-11T19:54:05.000Z | 2022-01-31T21:04:05.000Z | server/nhocr/nhocr-0.21/makedic/makedic.cpp | el-hoshino/HandwrAIter | b9fcc0db975bac615e6331d2a8147b596dd11028 | [
"MIT"
] | null | null | null | server/nhocr/nhocr-0.21/makedic/makedic.cpp | el-hoshino/HandwrAIter | b9fcc0db975bac615e6331d2a8147b596dd11028 | [
"MIT"
] | 3 | 2017-05-11T16:57:31.000Z | 2019-01-28T13:53:39.000Z | /*--------------------------------------------------------------
Make character dictionary makedic v1.1
(C) 2005-2010 Hideaki Goto (see accompanying LICENSE file)
Written by H.Goto, Dec. 2005
Revised by H.Goto, Feb. 2010
--------------------------------------------------------------*/
//#define Us... | 24.554545 | 93 | 0.536283 | el-hoshino |
aa1ba6daa0399115d30241c8191bf9a23df07db1 | 358 | hpp | C++ | src/sdm/core/states.hpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/core/states.hpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/core/states.hpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | #pragma once
#include <sdm/types.hpp>
#include <sdm/core/state/state.hpp>
// #include <sdm/core/state/history.hpp>
// #include <sdm/core/state/beliefs.hpp>
// #include <sdm/core/state/occupancy_state.hpp>
#include <sdm/core/state/serial_state.hpp>
// #include <sdm/core/state/serial_belief_state.hpp>
// #include <sdm/c... | 32.545455 | 55 | 0.751397 | SDMStudio |
aa1ba7dd1119eda20123b694f8f6eca5b22b2ff8 | 975 | hpp | C++ | soccer/planning/primitives/CreatePath.hpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | soccer/planning/primitives/CreatePath.hpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | soccer/planning/primitives/CreatePath.hpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "planning/MotionConstraints.hpp"
#include "planning/Trajectory.hpp"
#include "planning/primitives/PathSmoothing.hpp"
namespace Planning::CreatePath {
/**
* Generate a smooth path from start to goal avoiding obstacles.
*/
Trajectory rrt(const LinearMotionInstant& start,
const Li... | 36.111111 | 78 | 0.716923 | kasohrab |
aa2189162c3b04b1b1facd84eaca45707d24a94c | 2,818 | cpp | C++ | src/qt/src/corelib/arch/parisc/qatomic_parisc.cpp | martende/phantomjs | 5cecd7dde7b8fd04ad2c036d16f09a8d2a139854 | [
"BSD-3-Clause"
] | 1 | 2015-03-16T20:49:09.000Z | 2015-03-16T20:49:09.000Z | src/qt/src/corelib/arch/parisc/qatomic_parisc.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | src/qt/src/corelib/arch/parisc/qatomic_parisc.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
**... | 31.662921 | 77 | 0.679205 | martende |
aa21c0b4124ca9ee858ff56965e21eaf059ff1d7 | 5,289 | cpp | C++ | src/compiler/ParserProductionRule.cpp | LucvandenBrand/OperatorGraph | a15f2c9acfc9265e5ed5cbd89a8d3f7f638cb565 | [
"MIT"
] | null | null | null | src/compiler/ParserProductionRule.cpp | LucvandenBrand/OperatorGraph | a15f2c9acfc9265e5ed5cbd89a8d3f7f638cb565 | [
"MIT"
] | null | null | null | src/compiler/ParserProductionRule.cpp | LucvandenBrand/OperatorGraph | a15f2c9acfc9265e5ed5cbd89a8d3f7f638cb565 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cctype>
#include <functional>
#include <boost/variant/get.hpp>
#include <pga/compiler/Symbol.h>
#include <pga/compiler/Operator.h>
#include "ParserUtils.h"
#include "ParserOperator.h"
#include "ParserSymbol.h"
#include "ParserProductionRule.h"
namespace PGA
{
namespace Compiler
{
... | 29.220994 | 155 | 0.607487 | LucvandenBrand |
aa230dc8b07ea8f54f90d006f116822cb4a903f1 | 25,341 | cpp | C++ | src/hardware/gus.cpp | electroduck/boxless | f3a587c73c8003acac3f40392e323600aa6ebb62 | [
"BSD-3-Clause"
] | null | null | null | src/hardware/gus.cpp | electroduck/boxless | f3a587c73c8003acac3f40392e323600aa6ebb62 | [
"BSD-3-Clause"
] | null | null | null | src/hardware/gus.cpp | electroduck/boxless | f3a587c73c8003acac3f40392e323600aa6ebb62 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2002-2010 The DOSBox Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This p... | 28.441077 | 111 | 0.680084 | electroduck |
aa295c708985e7c4994156642cb22e6253554fc3 | 3,368 | cpp | C++ | src/vcml/net/client_tap.cpp | sturmk/vcml | e6ace78cd039c200df217dd629da16f95c7ca050 | [
"Apache-2.0"
] | 36 | 2018-01-29T12:20:37.000Z | 2022-03-29T06:14:59.000Z | src/vcml/net/client_tap.cpp | sturmk/vcml | e6ace78cd039c200df217dd629da16f95c7ca050 | [
"Apache-2.0"
] | 9 | 2018-12-04T10:37:14.000Z | 2021-11-16T16:57:29.000Z | src/vcml/net/client_tap.cpp | sturmk/vcml | e6ace78cd039c200df217dd629da16f95c7ca050 | [
"Apache-2.0"
] | 18 | 2018-10-14T11:30:43.000Z | 2022-01-08T07:12:56.000Z | /******************************************************************************
* *
* Copyright 2021 Jan Henrik Weinstock *
* *
... | 35.083333 | 80 | 0.461401 | sturmk |
aa29f0bd81aabde4162fd3af125a6adbecf1b7f5 | 5,109 | hpp | C++ | src/frontier_lib/StateFrontier.hpp | junkawahara/frontier | 4ae3eb360c96511ec5f3592b8bc85a1d8bce3aec | [
"MIT"
] | 16 | 2015-08-02T14:23:23.000Z | 2021-10-18T13:45:47.000Z | src/frontier_lib/StateFrontier.hpp | junkawahara/frontier | 4ae3eb360c96511ec5f3592b8bc85a1d8bce3aec | [
"MIT"
] | 1 | 2017-07-26T01:52:38.000Z | 2017-07-26T01:59:21.000Z | src/frontier_lib/StateFrontier.hpp | junkawahara/frontier | 4ae3eb360c96511ec5f3592b8bc85a1d8bce3aec | [
"MIT"
] | 7 | 2015-07-29T22:19:36.000Z | 2021-04-20T17:19:40.000Z | //
// StateFrontier.hpp
//
// Copyright (c) 2012 -- 2016 Jun Kawahara
//
// 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... | 29.703488 | 99 | 0.592875 | junkawahara |
aa2ecce0c5589845edfba32250a98fdd2d068e7a | 1,302 | hpp | C++ | build/external/include/marnav/nmea/rot.hpp | jft7/signalk-server-cpp | 060e79d364e3b82200f0d2962742bf81be9b47da | [
"Apache-2.0"
] | null | null | null | build/external/include/marnav/nmea/rot.hpp | jft7/signalk-server-cpp | 060e79d364e3b82200f0d2962742bf81be9b47da | [
"Apache-2.0"
] | 1 | 2021-11-10T14:40:21.000Z | 2021-11-10T14:40:21.000Z | build/external/include/marnav/nmea/rot.hpp | jft7/signalk-server-cpp | 060e79d364e3b82200f0d2962742bf81be9b47da | [
"Apache-2.0"
] | 1 | 2020-08-14T08:10:05.000Z | 2020-08-14T08:10:05.000Z | #ifndef MARNAV__NMEA__ROT__HPP
#define MARNAV__NMEA__ROT__HPP
#include <marnav/nmea/sentence.hpp>
#include <marnav/utils/optional.hpp>
namespace marnav
{
namespace nmea
{
/// @brief ROT - Rate Of Turn
///
/// @code
/// 1 2
/// | |
/// $--ROT,x.x,A*hh<CR><LF>
/// @endcode
///
/// Field Number:
/// 1.... | 22.448276 | 81 | 0.685868 | jft7 |
aa2faeec1bccc3f361a6742ccef03da1a22bab95 | 1,345 | cpp | C++ | example_math_svd/src/ofApp.cpp | icq4ever/ofxDlib | d87602b3f66f2ef3f478f004b65bc414360cd748 | [
"MIT"
] | 56 | 2017-04-11T14:09:28.000Z | 2020-12-23T15:01:35.000Z | example_math_svd/src/ofApp.cpp | icq4ever/ofxDlib | d87602b3f66f2ef3f478f004b65bc414360cd748 | [
"MIT"
] | 30 | 2017-04-13T01:15:43.000Z | 2020-12-03T23:28:02.000Z | example_math_svd/src/ofApp.cpp | icq4ever/ofxDlib | d87602b3f66f2ef3f478f004b65bc414360cd748 | [
"MIT"
] | 16 | 2017-04-18T07:47:47.000Z | 2021-07-09T13:35:51.000Z | //
// Copyright (c) 2017 Christopher Baker <https://christopherbaker.net>
//
// SPDX-License-Identifier: MIT
//
#include "ofApp.h"
void ofApp::setup()
{
// Example from https://www.mathworks.com/help/matlab/ref/svd.html
dlib::matrix<double> A(4, 2);
A = 1, 2,
3, 4,
5, 6,
7, 8;
... | 29.23913 | 104 | 0.517472 | icq4ever |
a8f907b57e189def24cb125e52c2bd6e22ab6664 | 3,039 | cpp | C++ | captcha/src/v20190722/model/TicketThroughUnit.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | captcha/src/v20190722/model/TicketThroughUnit.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | captcha/src/v20190722/model/TicketThroughUnit.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 27.133929 | 143 | 0.699243 | suluner |
a8fba8542063e488be2af5788f0ce8e53c1393ca | 7,958 | cpp | C++ | Engine/Collider.cpp | LeviMooreDev/Wolfenstein-3D-CPlusPlus | 24242623b679a6ec9e5020dfc1266d5b0e53db4a | [
"MIT"
] | null | null | null | Engine/Collider.cpp | LeviMooreDev/Wolfenstein-3D-CPlusPlus | 24242623b679a6ec9e5020dfc1266d5b0e53db4a | [
"MIT"
] | null | null | null | Engine/Collider.cpp | LeviMooreDev/Wolfenstein-3D-CPlusPlus | 24242623b679a6ec9e5020dfc1266d5b0e53db4a | [
"MIT"
] | null | null | null | #include "Collider.h"
#include "Scene.h"
#include <GLFW\glfw3.h>
#include <iostream>
#include "Debug.h"
#include "Raycast.h"
typedef std::basic_string<char> string;
//declare static fields
bool Collider::showWireframe = false;
void Collider::ListenForHit(std::function<void(GameObject *)> onHit)
{
(*this).onHit = onH... | 34.301724 | 168 | 0.602413 | LeviMooreDev |
a8fc68640a6667f1ca9933f6a12576ba0eef8455 | 3,150 | cpp | C++ | DDOCP/LevelButton.cpp | shortydude/DDOBuilder-learning | e71162c10b81bb4afd0365e61088437353cc4607 | [
"MIT"
] | null | null | null | DDOCP/LevelButton.cpp | shortydude/DDOBuilder-learning | e71162c10b81bb4afd0365e61088437353cc4607 | [
"MIT"
] | null | null | null | DDOCP/LevelButton.cpp | shortydude/DDOBuilder-learning | e71162c10b81bb4afd0365e61088437353cc4607 | [
"MIT"
] | null | null | null | // LevelButton.cpp
//
#include "stdafx.h"
#include "LevelButton.h"
#include "Character.h"
#include "GlobalSupportFunctions.h"
namespace
{
const COLORREF c_pinkWarningColour = RGB(0xFF, 0xB6, 0xC1); // Light Pink
}
#pragma warning(push)
#pragma warning(disable: 4407) // warning C4407: cast between different point... | 23.333333 | 143 | 0.63873 | shortydude |
a8ffc21781f7dd9c6cc48c1821e0f9f5ae1ebc29 | 662 | cpp | C++ | problems/letter-combinations-of-a-phone-number/src/Solution.cpp | bbackspace/leetcode | bc3f235fcd42c37800e6ef7eefab4c826d70f3d3 | [
"CC0-1.0"
] | null | null | null | problems/letter-combinations-of-a-phone-number/src/Solution.cpp | bbackspace/leetcode | bc3f235fcd42c37800e6ef7eefab4c826d70f3d3 | [
"CC0-1.0"
] | null | null | null | problems/letter-combinations-of-a-phone-number/src/Solution.cpp | bbackspace/leetcode | bc3f235fcd42c37800e6ef7eefab4c826d70f3d3 | [
"CC0-1.0"
] | null | null | null | class Solution {
const vector<string> keypad = {"", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"};
string s;
vector<string> ans;
void comb(string &dig, int d) {
if (dig.length() == 0) {
return;
}
if (d == dig.length()) {
ans.push_back(s);
... | 23.642857 | 101 | 0.432024 | bbackspace |
d100cc31b223afbda5fc9b7bcbbe8c3d2d20ec9e | 4,808 | cpp | C++ | NFIQ2/NFIQ2/NFIQ2Algorithm/src/features/OCLHistogramFeature.cpp | mahizhvannan/PYNFIQ2 | 56eac2d780c9b5becd0ca600ffa6198d3a0115a7 | [
"MIT"
] | null | null | null | NFIQ2/NFIQ2/NFIQ2Algorithm/src/features/OCLHistogramFeature.cpp | mahizhvannan/PYNFIQ2 | 56eac2d780c9b5becd0ca600ffa6198d3a0115a7 | [
"MIT"
] | null | null | null | NFIQ2/NFIQ2/NFIQ2Algorithm/src/features/OCLHistogramFeature.cpp | mahizhvannan/PYNFIQ2 | 56eac2d780c9b5becd0ca600ffa6198d3a0115a7 | [
"MIT"
] | 1 | 2022-02-14T03:16:05.000Z | 2022-02-14T03:16:05.000Z | #include "OCLHistogramFeature.h"
#include "FeatureFunctions.h"
#include "include/NFIQException.h"
#include "include/Timer.hpp"
#include <sstream>
#if defined WINDOWS || defined WIN32
#include <windows.h>
#include <float.h>
#define isnan _isnan // re-define isnan
#else
#ifndef isnan
#define isnan(x) ((x) != (x))
#end... | 26.130435 | 117 | 0.691764 | mahizhvannan |
d10447f20db2c6868d431b2832d8471f897f020f | 850 | cpp | C++ | tests/Test_ST_Policy_Safe.cpp | wuzhl2018/nano-signal-slot | 051588437938a262b0a9738da024afcab2e8b8e6 | [
"MIT"
] | null | null | null | tests/Test_ST_Policy_Safe.cpp | wuzhl2018/nano-signal-slot | 051588437938a262b0a9738da024afcab2e8b8e6 | [
"MIT"
] | null | null | null | tests/Test_ST_Policy_Safe.cpp | wuzhl2018/nano-signal-slot | 051588437938a262b0a9738da024afcab2e8b8e6 | [
"MIT"
] | null | null | null | #include <list>
#include "CppUnitTest.h"
#include "Test_Base.hpp"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace Nano_Tests
{
TEST_CLASS(Test_ST_Policy_Safe)
{
const int N = 64;
using Moo_T = Moo<Observer_STS>;
using Subject = Signal_Rng_STS;
TEST_... | 21.25 | 81 | 0.52 | wuzhl2018 |
d1065e8800a4f5fa75e67e4d231f97b5173ee5cf | 4,625 | hpp | C++ | rviz_default_plugins/test/rviz_default_plugins/publishers/odometry_publisher.hpp | EricCousineau-TRI/rviz | 3344a8ed63b134549eeb82682f0dee76f53b7565 | [
"BSD-3-Clause-Clear"
] | null | null | null | rviz_default_plugins/test/rviz_default_plugins/publishers/odometry_publisher.hpp | EricCousineau-TRI/rviz | 3344a8ed63b134549eeb82682f0dee76f53b7565 | [
"BSD-3-Clause-Clear"
] | null | null | null | rviz_default_plugins/test/rviz_default_plugins/publishers/odometry_publisher.hpp | EricCousineau-TRI/rviz | 3344a8ed63b134549eeb82682f0dee76f53b7565 | [
"BSD-3-Clause-Clear"
] | null | null | null | /*
* Copyright (c) 2018, Bosch Software Innovations GmbH.
* 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
* n... | 36.132813 | 96 | 0.721297 | EricCousineau-TRI |
d106d308a5b4edbed76b7acdca490bd4b5fc0f06 | 2,320 | hpp | C++ | src/utils/lambda/lambda_info.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 2 | 2021-03-18T16:25:04.000Z | 2021-11-13T00:29:27.000Z | src/utils/lambda/lambda_info.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | null | null | null | src/utils/lambda/lambda_info.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 1 | 2021-11-13T00:29:30.000Z | 2021-11-13T00:29:30.000Z | /**
* @file
* @author __AUTHOR_NAME__ <mail@host.com>
* @copyright 2021 __COMPANY_LTD__
* @license <a href="https://opensource.org/licenses/MIT">MIT License</a>
*/
#ifndef ZEN_UTILS_LAMBDA_INFO_HPP
#define ZEN_UTILS_LAMBDA_INFO_HPP
#include <tuple>
namespace Zen {
/**
* Source: angeart - https://qiita.com/a... | 22.307692 | 122 | 0.656466 | hexoctal |
d107d752afefac53db3abc46d66eb517ebcd3fc4 | 12,688 | cc | C++ | flare/rpc/protocol/protobuf/poppy_protocol.cc | AriCheng/flare | b2c84588fe4ac52f0875791d22284d7e063fd057 | [
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 868 | 2021-05-28T04:00:22.000Z | 2022-03-31T08:57:14.000Z | flare/rpc/protocol/protobuf/poppy_protocol.cc | AriCheng/flare | b2c84588fe4ac52f0875791d22284d7e063fd057 | [
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 33 | 2021-05-28T08:44:47.000Z | 2021-09-26T13:09:21.000Z | flare/rpc/protocol/protobuf/poppy_protocol.cc | AriCheng/flare | b2c84588fe4ac52f0875791d22284d7e063fd057 | [
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 122 | 2021-05-28T08:22:23.000Z | 2022-03-29T09:52:09.000Z | // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of the
// License at
//
// https://opensource.org/licenses/BSD-3-Clause
//
// Unless req... | 34.291892 | 80 | 0.686239 | AriCheng |
d109752586cd1d82c191278962f520bf82dba9f4 | 5,117 | cpp | C++ | scene_with_camera/src/scene_with_camera.cpp | Phyllostachys/graphics-demos | bf1f1f10c95e0c9f752117ad23295ce06acdb17c | [
"MIT"
] | 1 | 2015-09-05T11:15:07.000Z | 2015-09-05T11:15:07.000Z | scene_with_camera/src/scene_with_camera.cpp | Phyllostachys/graphics-demos | bf1f1f10c95e0c9f752117ad23295ce06acdb17c | [
"MIT"
] | null | null | null | scene_with_camera/src/scene_with_camera.cpp | Phyllostachys/graphics-demos | bf1f1f10c95e0c9f752117ad23295ce06acdb17c | [
"MIT"
] | null | null | null | #include "cube.h"
#include "shader.h"
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/type_ptr.hpp"
#include "glad/glad.h"
#include "GLFW/glfw3.h"
#include <cstdio>
#include <iostream>
glm::vec3 cameraPos = glm::vec3(0.0, 0.05, 23.0);
glm::vec3 cameraFront = glm::vec3(0.0f, 0.0f, ... | 30.640719 | 113 | 0.62478 | Phyllostachys |
d10aa175883debfa6a2ed2df0f352342fbe3048d | 211 | hpp | C++ | app/AppRunner.hpp | ChristopherCanfield/canfield_ant_simulator | 9ec671fe4936a8ed3a19f2c79a54e420092769fe | [
"MIT"
] | 1 | 2016-01-29T06:25:36.000Z | 2016-01-29T06:25:36.000Z | app/AppRunner.hpp | ChristopherCanfield/canfield_ant_simulator | 9ec671fe4936a8ed3a19f2c79a54e420092769fe | [
"MIT"
] | null | null | null | app/AppRunner.hpp | ChristopherCanfield/canfield_ant_simulator | 9ec671fe4936a8ed3a19f2c79a54e420092769fe | [
"MIT"
] | null | null | null | #pragma once
#include "App.hpp"
// Christopher D. Canfield
// October 2013
// AppRunner.hpp
namespace cdc
{
class AppRunner
{
public:
AppRunner() {}
~AppRunner() {}
void execute(App& app);
};
} | 9.590909 | 26 | 0.630332 | ChristopherCanfield |
d10c1022c5bef0fe89795eefc41779312f3a3d25 | 4,146 | cpp | C++ | tcss/src/v20201101/model/ModifyVirusMonitorSettingRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | tcss/src/v20201101/model/ModifyVirusMonitorSettingRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | tcss/src/v20201101/model/ModifyVirusMonitorSettingRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 27.64 | 104 | 0.733237 | suluner |
d111089c7c015c4b4d0049c87a575b577a2ccebf | 3,841 | hpp | C++ | libraries/eos-vm/include/eosio/vm/opcodes.hpp | pizzachain/pizchain | ba51553e46521ca7b265d7045d678312a32f8140 | [
"MIT"
] | 1,313 | 2018-01-09T01:49:01.000Z | 2022-02-26T11:10:40.000Z | src/vm/wasm/eos-vm/include/eosio/vm/opcodes.hpp | linnbenton/WaykiChain | 91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a | [
"MIT"
] | 32 | 2018-06-07T10:21:21.000Z | 2021-12-07T06:53:42.000Z | src/vm/wasm/eos-vm/include/eosio/vm/opcodes.hpp | linnbenton/WaykiChain | 91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a | [
"MIT"
] | 322 | 2018-02-26T03:41:36.000Z | 2022-02-08T08:12:16.000Z | #pragma once
#include <eosio/vm/opcodes_def.hpp>
#include <eosio/vm/variant.hpp>
#include <map>
namespace eosio { namespace vm {
enum opcodes {
EOS_VM_CONTROL_FLOW_OPS(EOS_VM_CREATE_ENUM)
EOS_VM_BR_TABLE_OP(EOS_VM_CREATE_ENUM)
EOS_VM_RETURN_OP(EOS_VM_CREATE_ENUM)
EOS_VM_CALL_OPS(EOS_VM_CREA... | 38.41 | 66 | 0.787555 | pizzachain |
d1112cc9ba8a907848b28fc67ed6bbfbefee1454 | 6,818 | cxx | C++ | Servers/ServerManager/vtkSMLookupTableProxy.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 1 | 2021-07-31T19:38:03.000Z | 2021-07-31T19:38:03.000Z | Servers/ServerManager/vtkSMLookupTableProxy.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | null | null | null | Servers/ServerManager/vtkSMLookupTableProxy.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 2 | 2019-01-22T19:51:40.000Z | 2021-07-31T19:38:05.000Z | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without... | 34.09 | 79 | 0.601496 | matthb2 |
d1113b9fefec12a5e6eee6acf59642f0769b9b9f | 7,343 | cpp | C++ | sounddev/SoundDeviceBase.cpp | Wapitiii/openmpt | 339c5f7f7e2c4a522415b42f0b6a9f4b2e2ab3bd | [
"BSD-3-Clause"
] | 4 | 2020-06-15T07:02:08.000Z | 2021-08-01T22:38:46.000Z | sounddev/SoundDeviceBase.cpp | glowcoil/microplug | 5c2708b89837dbc38a1f0e7cd793e5e53838e4a4 | [
"BSD-3-Clause"
] | null | null | null | sounddev/SoundDeviceBase.cpp | glowcoil/microplug | 5c2708b89837dbc38a1f0e7cd793e5e53838e4a4 | [
"BSD-3-Clause"
] | 1 | 2021-06-07T03:14:59.000Z | 2021-06-07T03:14:59.000Z | /*
* SoundDeviceBase.cpp
* -------------------
* Purpose: Sound device drivers base class.
* Notes : (currently none)
* Authors: Olivier Lapicque
* OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#include "stdafx.h"
#include "SoundDeviceBa... | 20.397222 | 169 | 0.74234 | Wapitiii |
d1139d7bdcff4c9e08d8f74bf3d09b42a3febf52 | 1,111 | cpp | C++ | Algorithms/Easy/53.maximum-subarray.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | Algorithms/Easy/53.maximum-subarray.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | Algorithms/Easy/53.maximum-subarray.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=53 lang=cpp
*
* [53] Maximum Subarray
*
* https://leetcode.com/problems/maximum-subarray/description/
*
* algorithms
* Easy (42.60%)
* Total Accepted: 456.2K
* Total Submissions: 1.1M
* Testcase Example: '[-2,1,-3,4,-1,2,1,-5,4]'
*
* Given an integer array nums, find the contig... | 20.574074 | 79 | 0.588659 | jtcheng |
d11403f76131eec16664899bfef104119a86aa00 | 6,449 | cpp | C++ | src/Engine/Renderer/RenderTechnique/RenderTechnique.cpp | hoshiryu/Radium-Engine | 2bc3c475a8fb1948dad84d1278bf4d61258f3cda | [
"Apache-2.0"
] | null | null | null | src/Engine/Renderer/RenderTechnique/RenderTechnique.cpp | hoshiryu/Radium-Engine | 2bc3c475a8fb1948dad84d1278bf4d61258f3cda | [
"Apache-2.0"
] | null | null | null | src/Engine/Renderer/RenderTechnique/RenderTechnique.cpp | hoshiryu/Radium-Engine | 2bc3c475a8fb1948dad84d1278bf4d61258f3cda | [
"Apache-2.0"
] | null | null | null | #include <Engine/Renderer/RenderTechnique/RenderTechnique.hpp>
#include <Engine/Renderer/Material/BlinnPhongMaterial.hpp>
#include <Engine/Renderer/RenderTechnique/RenderParameters.hpp>
#include <Engine/Renderer/RenderTechnique/ShaderConfigFactory.hpp>
#include <Engine/Renderer/RenderTechnique/ShaderProgramManager.hpp... | 34.486631 | 99 | 0.627849 | hoshiryu |
d1172b49c256ce5be60183c366fa7adf6977eaf4 | 479 | hpp | C++ | src/atlas/graphics/Earth.hpp | Groutcho/atlas | b69b7759be0361ffdcbbba64501e07feb79143be | [
"MIT"
] | 5 | 2018-12-13T03:41:12.000Z | 2020-08-27T04:45:11.000Z | src/atlas/graphics/Earth.hpp | Groutcho/atlas | b69b7759be0361ffdcbbba64501e07feb79143be | [
"MIT"
] | 1 | 2020-09-08T07:26:59.000Z | 2020-09-08T09:21:44.000Z | src/atlas/graphics/Earth.hpp | Groutcho/atlas | b69b7759be0361ffdcbbba64501e07feb79143be | [
"MIT"
] | 5 | 2018-12-20T10:31:09.000Z | 2021-09-07T07:38:49.000Z | //#ifndef ATLAS_GRAPHICS_EARTH_HPP
//#define ATLAS_GRAPHICS_EARTH_HPP
//
//#include "AtlasGraphics.hpp"
//#include "Node.hpp"
//#include "SurfaceTile.hpp"
//
//namespace atlas
//{
// namespace graphics
// {
// /**
// * @brief The Earth node manages the rendering of the surface of the earth.
// ... | 19.958333 | 89 | 0.517745 | Groutcho |
d11818a9e60220e0a8c6ef0f7075d8f9b21b1c69 | 1,184 | hpp | C++ | IcarusDetector/Checkers/ArmorCheckerBase.hpp | RoboPioneers/ProjectIcarus | 85328c0206d77617fe7fbb81b2ca0cda805de849 | [
"MIT"
] | 1 | 2021-10-05T03:43:57.000Z | 2021-10-05T03:43:57.000Z | IcarusDetector/Checkers/ArmorCheckerBase.hpp | RoboPioneers/ProjectIcarus | 85328c0206d77617fe7fbb81b2ca0cda805de849 | [
"MIT"
] | null | null | null | IcarusDetector/Checkers/ArmorCheckerBase.hpp | RoboPioneers/ProjectIcarus | 85328c0206d77617fe7fbb81b2ca0cda805de849 | [
"MIT"
] | null | null | null | #pragma once
#include "../Framework/CheckerBase.hpp"
#include "../Components/PONElement.hpp"
#include <cmath>
namespace Icarus
{
/// Distance scenario based light bar checker base class.
class ArmorCheckerBase : public CheckerBase<PONElement>
{
public:
double MaxLeaningAngle {};
double... | 30.358974 | 99 | 0.597973 | RoboPioneers |
d1182965d6ae73674b0acea284736b76c82b5135 | 9,867 | cc | C++ | test/assimp_test.cc | leonlynch/cortex | 239ece88de004f35ef31ad3c57fb20b0b0d86bde | [
"MIT"
] | 1 | 2017-11-26T08:37:04.000Z | 2017-11-26T08:37:04.000Z | test/assimp_test.cc | leonlynch/cortex | 239ece88de004f35ef31ad3c57fb20b0b0d86bde | [
"MIT"
] | null | null | null | test/assimp_test.cc | leonlynch/cortex | 239ece88de004f35ef31ad3c57fb20b0b0d86bde | [
"MIT"
] | null | null | null | /**
* @file assimp_test.cc
*
* Copyright (c) 2013 Leon Lynch
*
* This file is licensed under the terms of the MIT license.
* See LICENSE file.
*/
#include <assimp/DefaultLogger.hpp>
#include <assimp/Importer.hpp>
#include <assimp/postprocess.h>
#include <assimp/scene.h>
#include <iostream>
#include <cstdio>
s... | 26.595687 | 99 | 0.666869 | leonlynch |
d11a5b1a0844f875585961a98af58bfd3e57f57c | 983 | hpp | C++ | app/dml/src/dml/dml_paras.hpp | alexrenz/bosen-2 | c61ac4e892ba2f6e02bd4595632b15f9e53450e2 | [
"BSD-3-Clause"
] | 370 | 2015-06-30T09:46:17.000Z | 2017-01-21T07:14:00.000Z | app/dml/src/dml/dml_paras.hpp | alexrenz/bosen-2 | c61ac4e892ba2f6e02bd4595632b15f9e53450e2 | [
"BSD-3-Clause"
] | 3 | 2016-11-08T19:45:19.000Z | 2016-11-11T13:21:19.000Z | app/dml/src/dml/dml_paras.hpp | alexrenz/bosen-2 | c61ac4e892ba2f6e02bd4595632b15f9e53450e2 | [
"BSD-3-Clause"
] | 159 | 2015-07-03T05:58:31.000Z | 2016-12-29T20:59:01.000Z | #ifndef APPS_DML_SRC_DML_DML_PARAS_H_
#define APPS_DML_SRC_DML_DML_PARAS_H_
struct DmlParas{
// original feature dimension
int src_feat_dim;
// target feature dimension
int dst_feat_dim;
// tradeoff parameter
float lambda;
// distance threshold
float thre;
// learning rate
float learn_rate;
int e... | 22.340909 | 63 | 0.743642 | alexrenz |
d11a707cd6e98882ae3ce8c991b6c3f63662d5ad | 1,953 | cpp | C++ | STL_C++/STL_String.cpp | rsghotra/AbdulBari | 2d2845608840ddda6e5153ec91966110ca7e25f5 | [
"Apache-2.0"
] | 1 | 2020-12-02T09:21:52.000Z | 2020-12-02T09:21:52.000Z | STL_C++/STL_String.cpp | rsghotra/AbdulBari | 2d2845608840ddda6e5153ec91966110ca7e25f5 | [
"Apache-2.0"
] | null | null | null | STL_C++/STL_String.cpp | rsghotra/AbdulBari | 2d2845608840ddda6e5153ec91966110ca7e25f5 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
string s1{"happy"};
string s2{" birthday"};
string s3;
cout << "s1 is \"" << s1 << "\"; s2 is \"" << s2
<< "\"; s3 is \"" << s3 << '\"'
<< "\n\nThe results of comparing s2 and s1:" << boolalpha
<< "\n\nS2=... | 27.507042 | 71 | 0.47363 | rsghotra |
d11f94c143954afbbea823f954593499d5a789a8 | 2,938 | cpp | C++ | AfxHookGoldSrc/Store.cpp | markusforss/advancedfx | 0c427594e23c30b88081139c6b80f2688b7c211f | [
"MIT"
] | 339 | 2018-01-09T13:12:38.000Z | 2022-03-22T21:25:59.000Z | AfxHookGoldSrc/Store.cpp | markusforss/advancedfx | 0c427594e23c30b88081139c6b80f2688b7c211f | [
"MIT"
] | 474 | 2018-01-01T18:58:41.000Z | 2022-03-27T11:09:44.000Z | AfxHookGoldSrc/Store.cpp | markusforss/advancedfx | 0c427594e23c30b88081139c6b80f2688b7c211f | [
"MIT"
] | 77 | 2018-01-24T11:47:04.000Z | 2022-03-30T12:25:59.000Z | #include "stdafx.h"
#include "Store.h"
#include <stdexcept>
using namespace std;
////////////////////////////////////////////////////////////////////////////////
class FrequentStoreItem :
public IStoreItem
{
public:
FrequentStoreItem * NextFree;
FrequentStoreItem(FrequentStoreManager * manager)... | 16.505618 | 81 | 0.607216 | markusforss |
d1261471d3344588b1edeee41b378ac3b103d969 | 1,522 | cpp | C++ | findLargestWordInDictionary.cpp | harshallgarg/CPP | 4d15c5e5d426bb00d192368d21924ec9f017445f | [
"MIT"
] | 2 | 2020-08-09T02:09:50.000Z | 2020-08-09T07:07:47.000Z | findLargestWordInDictionary.cpp | harshallgarg/CPP | 4d15c5e5d426bb00d192368d21924ec9f017445f | [
"MIT"
] | null | null | null | findLargestWordInDictionary.cpp | harshallgarg/CPP | 4d15c5e5d426bb00d192368d21924ec9f017445f | [
"MIT"
] | 4 | 2020-05-25T10:24:14.000Z | 2021-05-03T07:52:35.000Z | //leetcode solution
class Solution {
public:
bool isSubsequence(string word,string s)
{
int m=word.length(),n=s.length();
int i,j;
for(i=0,j=0;i<m&&j<n;j++)
if(word.at(i)==s.at(j))
i++;
return i==m;
}
string findLongestWord(string s, vector<str... | 19.766234 | 115 | 0.489488 | harshallgarg |
d1274674e98c07b167b67cc3c6fda955077c5ef6 | 8,592 | cpp | C++ | src/libraries/criterion/cpu/ForceAlignmentCriterion.cpp | lithathampan/wav2letter | 8abf8431d99da147cc4aefc289ad33626e13de6f | [
"BSD-3-Clause"
] | null | null | null | src/libraries/criterion/cpu/ForceAlignmentCriterion.cpp | lithathampan/wav2letter | 8abf8431d99da147cc4aefc289ad33626e13de6f | [
"BSD-3-Clause"
] | null | null | null | src/libraries/criterion/cpu/ForceAlignmentCriterion.cpp | lithathampan/wav2letter | 8abf8431d99da147cc4aefc289ad33626e13de6f | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "libraries/criterion/cpu/ForceAlignmentCriterion.h"
#include <algorithm>
#include <cmath>
... | 28.170492 | 80 | 0.551443 | lithathampan |
d12930a94255a4ec9b44c1f3f3a5906d763baae9 | 1,766 | cpp | C++ | drazy/sieve_phi.cpp | gbuenoandrade/Manual-da-Sarrada | dc44666b8f926428164447997b5ea8363ebd6fda | [
"MIT"
] | null | null | null | drazy/sieve_phi.cpp | gbuenoandrade/Manual-da-Sarrada | dc44666b8f926428164447997b5ea8363ebd6fda | [
"MIT"
] | null | null | null | drazy/sieve_phi.cpp | gbuenoandrade/Manual-da-Sarrada | dc44666b8f926428164447997b5ea8363ebd6fda | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define DEBUG_ON 1
#define INF 0x3f3f3f3f
#define NSYNC ios::sync_with_stdio(false);
#define FOR(i,a,b) for(int i=a; i<(b); ++i)
#define FOR0(i,b) for(int i=0; i<(b); ++i)
#define TRAV(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it)
#define RTRAV(it,c... | 21.277108 | 90 | 0.556059 | gbuenoandrade |
d12954839358b9d5ed89bb220b0da36a5a437e1d | 8,991 | cpp | C++ | MasterControl/screensharing.cpp | CrankZ/ScreenSharing-FileTransfer-in-LAN | a6959e2c9c0ca725cf115d43509250d210bf0f17 | [
"MIT"
] | 87 | 2018-11-12T14:49:27.000Z | 2022-03-13T06:42:28.000Z | MasterControl/screensharing.cpp | 55gY/ScreenSharing-FileTransfer-in-LAN | 4b034b70f3e42f4a66eaf8aae1ebc13ca7886e3c | [
"MIT"
] | 3 | 2018-11-20T06:20:52.000Z | 2019-06-07T17:20:07.000Z | MasterControl/screensharing.cpp | 55gY/ScreenSharing-FileTransfer-in-LAN | 4b034b70f3e42f4a66eaf8aae1ebc13ca7886e3c | [
"MIT"
] | 54 | 2018-11-13T02:11:08.000Z | 2021-12-30T14:30:59.000Z | #include "screensharing.h"
ScreenSharing::ScreenSharing(int num=1)
{
quality = 60;
mutex = new QMutex;
mutex->lock();
flag = 0;
lock = true;
readSettings();
sender = new Sender();
QScreen *src = QApplication::primaryScreen();
QPixmap firstPixmap1 = src->grabWindow(QApplication::de... | 32.225806 | 148 | 0.542987 | CrankZ |
d12db1b8334448197c74b2e31a0fef8b48169f77 | 3,297 | cpp | C++ | src/Server.cpp | sempr-tk/sempr_ros | 55f12bddc2d0d461d9fb0799a85d630e07012c4b | [
"BSD-3-Clause"
] | null | null | null | src/Server.cpp | sempr-tk/sempr_ros | 55f12bddc2d0d461d9fb0799a85d630e07012c4b | [
"BSD-3-Clause"
] | null | null | null | src/Server.cpp | sempr-tk/sempr_ros | 55f12bddc2d0d461d9fb0799a85d630e07012c4b | [
"BSD-3-Clause"
] | null | null | null | #include <sempr/nodes/ECNodeBuilder.hpp>
#include <sempr/component/TextComponent.hpp>
#include <sempr/component/TripleContainer.hpp>
#include <sempr/component/TripleVector.hpp>
#include <sempr/component/TriplePropertyMap.hpp>
#include <sempr/component/AffineTransform.hpp>
#include <sempr/component/GeosGeometry.hpp>
#i... | 33.30303 | 83 | 0.672733 | sempr-tk |
d12f2665d4e92753df196e57c7058703da1c4a9f | 2,477 | cpp | C++ | DRCHEF.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null | DRCHEF.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | 1 | 2020-02-24T19:45:57.000Z | 2020-02-24T19:45:57.000Z | DRCHEF.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
void __print(int x) {cerr << x;}
void __print(long x) {cerr << x;}
void __print(long long x) {cerr << x;}
void __print(unsigned x) {cerr << x;}
void __print(unsigned long x) {cerr << x;}
void __print(unsigned long long x) {cerr << x;}
void __print(float x) {cerr << x;}
void ... | 24.524752 | 118 | 0.520791 | ankiiitraj |
d131fd6621072f48196c39832098e8eb8011b366 | 113 | cpp | C++ | demo/main.cpp | Nolnocn/Bayesian-Inference | 76ee29171c6e3a4a69b752c1f68ae3fef2526f92 | [
"MIT"
] | 1 | 2021-07-07T02:45:55.000Z | 2021-07-07T02:45:55.000Z | demo/main.cpp | Nolnocn/Bayes-Classifier | 76ee29171c6e3a4a69b752c1f68ae3fef2526f92 | [
"MIT"
] | null | null | null | demo/main.cpp | Nolnocn/Bayes-Classifier | 76ee29171c6e3a4a69b752c1f68ae3fef2526f92 | [
"MIT"
] | null | null | null |
#include "GolfDemo.hpp"
int main( int argc, const char* argv[] )
{
GolfDemo gd;
gd.init();
return 0;
}
| 10.272727 | 40 | 0.60177 | Nolnocn |
d134d5a6294862e54fcc64dcba2e7c16bde8c9dc | 1,289 | hpp | C++ | cmdstan/stan/lib/stan_math/stan/math/prim/scal/prob/lognormal_rng.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/prim/scal/prob/lognormal_rng.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/prim/scal/prob/lognormal_rng.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_PRIM_SCAL_PROB_LOGNORMAL_RNG_HPP
#define STAN_MATH_PRIM_SCAL_PROB_LOGNORMAL_RNG_HPP
#include <boost/random/lognormal_distribution.hpp>
#include <boost/random/variate_generator.hpp>
#include <stan/math/prim/scal/err/check_consistent_sizes.hpp>
#include <stan/math/prim/scal/err/check_finite.hpp>
#inclu... | 32.225 | 64 | 0.73623 | yizhang-cae |
d135a6ff9d3f6c6ec2db5836170015563bfaf28c | 1,297 | hpp | C++ | libadb/include/libadb/api/interactions/data/interaction-data-command-option.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | 1 | 2022-03-10T15:14:13.000Z | 2022-03-10T15:14:13.000Z | libadb/include/libadb/api/interactions/data/interaction-data-command-option.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | 9 | 2022-03-07T21:00:08.000Z | 2022-03-15T23:14:52.000Z | libadb/include/libadb/api/interactions/data/interaction-data-command-option.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <variant>
#include <optional>
#include <cstdint>
#include <vector>
#include <libadb/libadb.hpp>
#include <nlohmann/json_fwd.hpp>
#include <libadb/api/interactions/data/application-command-option-type.hpp>
namespace adb::api
{
/**
* @brief Application Command Interactio... | 38.147059 | 166 | 0.720123 | faserg1 |
d136cd8109bd2a87c64d24ed66563d217d0f15e5 | 23,064 | cpp | C++ | libraries/eosiolib/tester/tester.cpp | James-Mart/Eden | 0ccc405a94575c5044f6ecfdfbcf65a28ed00f90 | [
"MIT"
] | null | null | null | libraries/eosiolib/tester/tester.cpp | James-Mart/Eden | 0ccc405a94575c5044f6ecfdfbcf65a28ed00f90 | [
"MIT"
] | null | null | null | libraries/eosiolib/tester/tester.cpp | James-Mart/Eden | 0ccc405a94575c5044f6ecfdfbcf65a28ed00f90 | [
"MIT"
] | null | null | null | #include <eosio/abi.hpp>
#include <eosio/from_string.hpp>
#include <eosio/tester.hpp>
namespace
{
using cb_alloc_type = void* (*)(void* cb_alloc_data, size_t size);
extern "C"
{
// clang-format off
[[clang::import_name("tester_create_chain2")]] uint32_t tester_create_chain2(const ch... | 37.260097 | 219 | 0.588319 | James-Mart |
d13c8b1eb83ddcfc22baa0d4fe0557ae6afd97bf | 986 | cpp | C++ | matrizes/c.cpp | RuthMaria/algoritmo | ec9ebf629598dd75a05e33861706f1a6bc956cd5 | [
"MIT"
] | null | null | null | matrizes/c.cpp | RuthMaria/algoritmo | ec9ebf629598dd75a05e33861706f1a6bc956cd5 | [
"MIT"
] | null | null | null | matrizes/c.cpp | RuthMaria/algoritmo | ec9ebf629598dd75a05e33861706f1a6bc956cd5 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<conio.h>
main(){
float mat[3][3];
int lin, col, maior = 0, menor = 999, plinha = 0, pcol = 0, plinha1 = 0, pcol1 = 0;
maior = mat[0][0];
for(lin = 0; lin < 3; lin++){
printf("\n");
for(col = 0; col < 3; col++){
printf("Li... | 29 | 90 | 0.389452 | RuthMaria |
d13f5c6bc6b6719d6f59776a2b84b64e053ddbd9 | 452 | hpp | C++ | vm/os-solaris-x86.64.hpp | erg/factor | 134e416b132a1c4f95b0ae15ab2f9a42893b6b6f | [
"BSD-2-Clause"
] | null | null | null | vm/os-solaris-x86.64.hpp | erg/factor | 134e416b132a1c4f95b0ae15ab2f9a42893b6b6f | [
"BSD-2-Clause"
] | null | null | null | vm/os-solaris-x86.64.hpp | erg/factor | 134e416b132a1c4f95b0ae15ab2f9a42893b6b6f | [
"BSD-2-Clause"
] | null | null | null | #include <ucontext.h>
namespace factor
{
#define UAP_STACK_POINTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.gregs[RSP])
#define UAP_PROGRAM_COUNTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.gregs[RIP])
#define UAP_SET_TOC_POINTER(uap, ptr) (void)0
#define CODE_TO_FUNCTION_POINTER(code) (void)0
#define... | 30.133333 | 88 | 0.794248 | erg |
d141213cb5a0dacb18be219f9b0eadb3e0853b6b | 2,027 | cpp | C++ | core/base/Request.cpp | forrestsong/fpay_demo | 7b254a1389b011c799497ad7d08bb8d8d349e557 | [
"MIT"
] | 1 | 2018-08-12T15:08:49.000Z | 2018-08-12T15:08:49.000Z | core/base/Request.cpp | forrestsong/fpay_demo | 7b254a1389b011c799497ad7d08bb8d8d349e557 | [
"MIT"
] | null | null | null | core/base/Request.cpp | forrestsong/fpay_demo | 7b254a1389b011c799497ad7d08bb8d8d349e557 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Request.h"
using namespace std;
Request::Request()
: up(NULL, 0)
, cmd(NULL)
, parser(NULL)
, cpBuffer(NULL)
, od(NULL)
, os(0)
, protoType(PROTO_NONE)
{
}
Request::Request(const char *data, uint32_t sz, PROTO_T proto)
: up(data, sz)
, cmd(NULL)
... | 18.768519 | 73 | 0.537247 | forrestsong |
d14c6abb008fe02142c74237630e9626edcdea4b | 3,960 | cpp | C++ | src/Nokia5110.cpp | intoyuniot/Nokia5110 | 7d240b17aab230b661a8054ed998a256bbd608ca | [
"MIT"
] | null | null | null | src/Nokia5110.cpp | intoyuniot/Nokia5110 | 7d240b17aab230b661a8054ed998a256bbd608ca | [
"MIT"
] | null | null | null | src/Nokia5110.cpp | intoyuniot/Nokia5110 | 7d240b17aab230b661a8054ed998a256bbd608ca | [
"MIT"
] | null | null | null | /*
Adapted for IntoRobot by Robin, Sept 19, 2015
7-17-2011
Spark Fun Electronics 2011
Nathan Seidle
Modified on 03-12-2014 by ionpan
This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license).
*/
#include "Nokia5110.h"
#define pgm_read_byte(addr) (*(con... | 26.577181 | 118 | 0.658838 | intoyuniot |
d152e81423b8065f9304559d0862c3b60e4a6cee | 7,696 | cpp | C++ | src/abs.cpp | ivision-ufba/depth-face-detection | f70441eb9e72fa3f509458ffc202648c2f3e27d1 | [
"MIT"
] | 15 | 2017-11-01T11:39:32.000Z | 2021-04-02T02:42:59.000Z | src/abs.cpp | ivision-ufba/depth-face-detection | f70441eb9e72fa3f509458ffc202648c2f3e27d1 | [
"MIT"
] | 6 | 2017-07-26T17:55:27.000Z | 2020-11-15T22:04:35.000Z | src/abs.cpp | ivision-ufba/depth-face-detection | f70441eb9e72fa3f509458ffc202648c2f3e27d1 | [
"MIT"
] | 5 | 2018-05-09T13:42:17.000Z | 2020-01-17T06:22:59.000Z | #include <abs.hpp>
#include <cassert>
#include <exception>
#include <fstream>
#include <iostream>
#include <queue>
#include <sstream>
Abs::Abs(const std::string& s) { load(s); }
void Abs::crop(const cv::Rect& roi) {
const int rows = valid.rows;
const int cols = valid.cols;
for (int r = 0; r < rows; ++r)
f... | 29.829457 | 78 | 0.539891 | ivision-ufba |
d1609ecde0285d306a818ae8faf7a136157a2529 | 175 | cpp | C++ | 100000569/B/another.cpp | gongbo2018/codeup_contest | c61cd02f145c764b0eb2728fb2b3405314d522ca | [
"MIT"
] | 1 | 2020-08-14T09:33:51.000Z | 2020-08-14T09:33:51.000Z | 100000569/B/another.cpp | gongbo2018/codeup_contest | c61cd02f145c764b0eb2728fb2b3405314d522ca | [
"MIT"
] | null | null | null | 100000569/B/another.cpp | gongbo2018/codeup_contest | c61cd02f145c764b0eb2728fb2b3405314d522ca | [
"MIT"
] | null | null | null | #include <cstdio>
int main() {
int data[10];
for (int i=0;i<10;i++) {
scanf("%d", &data[i]);
}
for (int j=9; j>=0;j--) {
printf("%d\n", data[j]);
}
return 0;
}
| 10.9375 | 26 | 0.474286 | gongbo2018 |
d163f38fe1ea06fb34d229d3b3c5e5ab722fbd36 | 11,463 | hpp | C++ | include/caffe/loss_layers.hpp | xiaomi646/caffe_2d_mlabel | 912c92d6f3ba530e1abea79fb1ab2cb34aa5bd65 | [
"BSD-2-Clause"
] | 1 | 2015-07-08T15:30:06.000Z | 2015-07-08T15:30:06.000Z | include/caffe/loss_layers.hpp | xiaomi646/caffe_2d_mlabel | 912c92d6f3ba530e1abea79fb1ab2cb34aa5bd65 | [
"BSD-2-Clause"
] | null | null | null | include/caffe/loss_layers.hpp | xiaomi646/caffe_2d_mlabel | 912c92d6f3ba530e1abea79fb1ab2cb34aa5bd65 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2014 BVLC and contributors.
#ifndef CAFFE_LOSS_LAYERS_HPP_
#define CAFFE_LOSS_LAYERS_HPP_
#include <string>
#include <utility>
#include <vector>
#include "leveldb/db.h"
#include "pthread.h"
#include "boost/scoped_ptr.hpp"
#include "hdf5.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include ... | 33.615836 | 78 | 0.730524 | xiaomi646 |
d164bcc51b3bc70b7a3fbab916f75eba623a4f38 | 4,183 | cpp | C++ | MonoNative.Tests/mscorlib/System/Security/Cryptography/mscorlib_System_Security_Cryptography_MACTripleDES_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/Security/Cryptography/mscorlib_System_Security_Cryptography_MACTripleDES_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/Security/Cryptography/mscorlib_System_Security_Cryptography_MACTripleDES_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Security.Cryptography
// Name: MACTripleDES
// C++ Typed Name: mscorlib::System::Security::Cryptography::MACTripleDES
#include <gtest/gtest.h>
#include <mscorlib/System/Security/Cryptog... | 25.662577 | 130 | 0.696629 | brunolauze |
d1694b72f720450f38bfa8b0d5c914f6ce7cc91b | 2,128 | cpp | C++ | python/_nimblephysics/realtime/Ticker.cpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | 2 | 2021-09-30T06:23:29.000Z | 2022-03-09T09:59:09.000Z | python/_nimblephysics/realtime/Ticker.cpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | null | null | null | python/_nimblephysics/realtime/Ticker.cpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | 1 | 2021-08-20T13:56:14.000Z | 2021-08-20T13:56:14.000Z | #include <iostream>
#include <Python.h>
#include <dart/realtime/Ticker.hpp>
#include <pybind11/functional.h>
#include <pybind11/pybind11.h>
namespace py = pybind11;
namespace dart {
namespace python {
void Ticker(py::module& m)
{
::py::class_<dart::realtime::Ticker, std::shared_ptr<dart::realtime::Ticker>>(
... | 33.777778 | 80 | 0.43797 | jyf588 |
d16aedd116d8d31f861454b4a121c38b77986f1a | 436 | cpp | C++ | Codeforces/746A - Compote.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/746A - Compote.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/746A - Compote.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
#ifndef ONLINE_JUDGE
freopen("files/input.txt", "r", stdin);
freopen("files/output.txt", "w", stdout);
#endif
int a, b, c;
cin >> a >> b >> c;
int count = 0;
while(a >= 1 && b >= 2 && c >= 4) {... | 18.166667 | 45 | 0.465596 | naimulcsx |
d172df46567e2c2e55e3d573eee798a578f58eb0 | 3,500 | hpp | C++ | sources/include/structure/parameter.hpp | sydelity-net/EDACurry | 20cbf9835827e42efeb0b3686bf6b3e9d72417e9 | [
"MIT"
] | null | null | null | sources/include/structure/parameter.hpp | sydelity-net/EDACurry | 20cbf9835827e42efeb0b3686bf6b3e9d72417e9 | [
"MIT"
] | null | null | null | sources/include/structure/parameter.hpp | sydelity-net/EDACurry | 20cbf9835827e42efeb0b3686bf6b3e9d72417e9 | [
"MIT"
] | null | null | null | /// @file parameter.hpp
/// @author Enrico Fraccaroli (enrico.fraccaroli@gmail.com)
/// @copyright Copyright (c) 2021 sydelity.net (info@sydelity.com)
/// Distributed under the MIT License (MIT) (See accompanying LICENSE file or
/// copy at http://opensource.org/licenses/MIT)
#pragma once
#include "features/object... | 33.980583 | 140 | 0.679714 | sydelity-net |
ab6c16aacbe6605846db36584cbe96ea1a14369a | 3,544 | hpp | C++ | test/unit/detail/load_store_matrix_coop_sync.hpp | mkarunan/rocWMMA | 390a2e793699a1e17c18e46d7fe51e245907f012 | [
"MIT"
] | null | null | null | test/unit/detail/load_store_matrix_coop_sync.hpp | mkarunan/rocWMMA | 390a2e793699a1e17c18e46d7fe51e245907f012 | [
"MIT"
] | 1 | 2022-03-16T20:41:26.000Z | 2022-03-16T20:41:26.000Z | test/unit/detail/load_store_matrix_coop_sync.hpp | mkarunan/rocWMMA | 390a2e793699a1e17c18e46d7fe51e245907f012 | [
"MIT"
] | 2 | 2022-03-17T16:47:29.000Z | 2022-03-18T14:12:22.000Z | /*******************************************************************************
*
* MIT License
*
* Copyright 2021-2022 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
*... | 38.945055 | 99 | 0.69921 | mkarunan |
ab6c6cdf53c0c6cc26129c919f5797523bf0f34b | 1,178 | cpp | C++ | Leetcode/WordSearch.cpp | zhanghuanzj/C- | b271de02885466e97d6a2072f4f93f87625834e4 | [
"Apache-2.0"
] | null | null | null | Leetcode/WordSearch.cpp | zhanghuanzj/C- | b271de02885466e97d6a2072f4f93f87625834e4 | [
"Apache-2.0"
] | null | null | null | Leetcode/WordSearch.cpp | zhanghuanzj/C- | b271de02885466e97d6a2072f4f93f87625834e4 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
bool exist(vector<vector<char> > &board, string word) {
if(board.empty()) return false;
if(word.empty()) return true;
int m = board.size();
int n = board.front().size();
vector<vector<bool>> visited(m,vector<bool>(n,false));
for(int i=0;i<m;++... | 33.657143 | 116 | 0.457555 | zhanghuanzj |
ab7130c5aab5368ffa946eba554bcbdeb4c3b3c7 | 1,234 | cpp | C++ | Dynamic Range Sum Queries/sol.cpp | glaucogithub/CSES-Problem-Set | 62e96c5aedf920dac339cf1a5f1ff8665735b766 | [
"MIT"
] | 1 | 2022-01-14T00:42:32.000Z | 2022-01-14T00:42:32.000Z | Dynamic Range Sum Queries/sol.cpp | glaucogithub/CSES-Problem-Set | 62e96c5aedf920dac339cf1a5f1ff8665735b766 | [
"MIT"
] | null | null | null | Dynamic Range Sum Queries/sol.cpp | glaucogithub/CSES-Problem-Set | 62e96c5aedf920dac339cf1a5f1ff8665735b766 | [
"MIT"
] | null | null | null |
// author: glaucoacassioc
// created on: September 22, 2021 1:04 AM
// Problem: Dynamic Range Sum Queries
// URL: https://cses.fi/problemset/task/1648/
// Time Limit: 1000 ms
// Memory Limit: 512 MB
#include <bits/stdc++.h>
using namespace std;
#define LSONE(S) ((S & (-S)))
mt19937_64 rng(chrono::steady_clock::now... | 17.138889 | 71 | 0.536467 | glaucogithub |
ab730d7d79f157393452fa99ba3c334e8a70b274 | 3,603 | cpp | C++ | onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorMatMul.cpp | MaximKalininMS/onnxruntime | 1d79926d273d01817ce93f001f36f417ab05f8a0 | [
"MIT"
] | 4 | 2019-06-06T23:48:57.000Z | 2021-06-03T11:51:45.000Z | onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorMatMul.cpp | Montaer/onnxruntime | 6dc25a60f8b058a556964801d99d5508641dcf69 | [
"MIT"
] | 10 | 2019-03-25T21:47:46.000Z | 2019-04-30T02:33:05.000Z | onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorMatMul.cpp | Montaer/onnxruntime | 6dc25a60f8b058a556964801d99d5508641dcf69 | [
"MIT"
] | 3 | 2019-05-07T01:29:04.000Z | 2020-08-09T08:36:12.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "precomp.h"
namespace Dml
{
class DmlOperatorMatMul : public DmlOperator
{
enum InputTensors { IN_A, IN_B };
public:
DmlOperatorMatMul(const MLOperatorKernelCreationContext& kernelInfo)
: DmlOp... | 44.481481 | 154 | 0.706356 | MaximKalininMS |
ab73bc776134f3e88c7e8b1c24b2ba0d167f698b | 1,740 | cpp | C++ | ural/1706.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | 5 | 2015-07-14T10:29:25.000Z | 2016-10-11T12:45:18.000Z | ural/1706.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | null | null | null | ural/1706.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | 3 | 2016-08-23T01:05:26.000Z | 2017-05-28T02:04:20.000Z | #include<iostream>//boj 1178
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<queue>
#include<cmath>
using namespace std;
typedef long long ll;
const int maxn =10100;
const int maxv =10100;
int a[maxn],sa[maxn],container[maxn],wy[maxn],wv[maxn],wx[maxv],rk[maxn],h[maxn];
int cmp(int *r,int a,int b,int ... | 21.219512 | 81 | 0.520115 | jffifa |
ab772c758b026ba889a5aea1ba4ca80c8e9f811f | 34,224 | hpp | C++ | include/ldaplusplus/utils.hpp | angeloskath/supervised-lda | fe3a39bb0d6c7d0c2a33f069440869ad70774da8 | [
"MIT"
] | 22 | 2017-05-25T11:59:02.000Z | 2021-08-30T08:51:41.000Z | include/ldaplusplus/utils.hpp | angeloskath/supervised-lda | fe3a39bb0d6c7d0c2a33f069440869ad70774da8 | [
"MIT"
] | 22 | 2016-06-30T15:51:18.000Z | 2021-12-06T10:43:16.000Z | include/ldaplusplus/utils.hpp | angeloskath/supervised-lda | fe3a39bb0d6c7d0c2a33f069440869ad70774da8 | [
"MIT"
] | 4 | 2017-09-28T14:58:01.000Z | 2020-12-21T14:22:38.000Z | #ifndef _LDAPLUSPLUS_UTILS_HPP_
#define _LDAPLUSPLUS_UTILS_HPP_
#include <cmath>
#include <memory>
#include <mutex>
#include <array>
#include <Eigen/Core>
namespace ldaplusplus {
namespace math_utils {
static const std::array<double, 1024> exp_lut = {
1.000000000000000000e+00, 1.000977995032110268e+00, 1.00195... | 55.022508 | 101 | 0.769314 | angeloskath |
ab7b47f17b3292e2937294b990f633b91ff24918 | 1,571 | cpp | C++ | lib/smooth/application/network/mqtt/packet/Unsubscribe.cpp | luuvt/lms | 8f53ddeb62e9ca328acb36b922bf72e223ff3753 | [
"Apache-2.0"
] | 283 | 2017-07-18T15:31:42.000Z | 2022-03-30T12:05:03.000Z | lib/smooth/application/network/mqtt/packet/Unsubscribe.cpp | luuvt/lms | 8f53ddeb62e9ca328acb36b922bf72e223ff3753 | [
"Apache-2.0"
] | 131 | 2017-08-23T18:49:03.000Z | 2021-11-29T08:03:21.000Z | lib/smooth/application/network/mqtt/packet/Unsubscribe.cpp | luuvt/lms | 8f53ddeb62e9ca328acb36b922bf72e223ff3753 | [
"Apache-2.0"
] | 53 | 2017-12-31T13:34:21.000Z | 2022-02-04T11:26:49.000Z | /*
Smooth - A C++ framework for embedded programming on top of Espressif's ESP-IDF
Copyright 2019 Per Malmberg (https://gitbub.com/PerMalmberg)
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
h... | 33.425532 | 79 | 0.703374 | luuvt |
ab7e18d51f9318cccc2a369994175e31d0a50100 | 6,819 | cpp | C++ | src/scrollbar/cocScrollbar.cpp | codeoncanvas/coc-ui | d1b6389adba5234254665c07382a028716016dce | [
"MIT"
] | 1 | 2018-01-08T21:37:42.000Z | 2018-01-08T21:37:42.000Z | src/scrollbar/cocScrollbar.cpp | codeoncanvas/coc-ui | d1b6389adba5234254665c07382a028716016dce | [
"MIT"
] | null | null | null | src/scrollbar/cocScrollbar.cpp | codeoncanvas/coc-ui | d1b6389adba5234254665c07382a028716016dce | [
"MIT"
] | 1 | 2020-04-21T00:30:27.000Z | 2020-04-21T00:30:27.000Z | /**
*
* โโโโโโโโฌโโโโ
* โ โ โ โโโโค
* โโโโโโโโดโโโโ
* โโโโโโโโโโฌ โฌโโโโโโ
* โ โโโคโโโโโโโโโโคโโโ
* โโโโด โดโโโ โโ โด โดโโโ
*
* Copyright (c) 2014-2016 Code on Canvas Pty Ltd, http://CodeOnCanvas.cc
*
* This software is distributed under the MIT license
* https://tldrlegal.com/license/mit-licen... | 28.294606 | 140 | 0.543335 | codeoncanvas |
ab8185b6c8942cc7c789c30d993bb1a6fda4f1c2 | 795 | hpp | C++ | kernel/meta/compiler.hpp | panix-os/Panix | 1047fc384696684a7583bda035fa580da4adbd5b | [
"MIT"
] | 68 | 2020-10-10T03:56:04.000Z | 2021-07-22T19:15:47.000Z | kernel/meta/compiler.hpp | panix-os/Panix | 1047fc384696684a7583bda035fa580da4adbd5b | [
"MIT"
] | 88 | 2020-10-01T23:36:44.000Z | 2021-07-22T03:11:43.000Z | kernel/meta/compiler.hpp | panix-os/Panix | 1047fc384696684a7583bda035fa580da4adbd5b | [
"MIT"
] | 5 | 2021-06-25T16:56:46.000Z | 2021-07-21T02:38:41.000Z | /**
* @file compiler.hpp
* @author Keeton Feavel (keetonfeavel@cedarville.edu)
* @brief Compiler meta directives
* @version 0.1
* @date 2021-06-17
*
* @copyright Copyright the Xyris Contributors (c) 2021
*
*/
#pragma once
// Function attributes
#define NORET __attribute__((noreturn))
#define OPTIMIZE(x) __att... | 26.5 | 55 | 0.734591 | panix-os |
ab829bcfdb5e536bd2556c5acd0c195b4e57b807 | 258 | hpp | C++ | DLOCRModel.Calculate/DLOCRModel.Calculate.hpp | Frederisk/DeepLearning-OpticalCharacterRecognition-Model | 52998e877cdf1e849cc2648e7d07dee6ae865cc1 | [
"MIT"
] | null | null | null | DLOCRModel.Calculate/DLOCRModel.Calculate.hpp | Frederisk/DeepLearning-OpticalCharacterRecognition-Model | 52998e877cdf1e849cc2648e7d07dee6ae865cc1 | [
"MIT"
] | 1 | 2020-12-16T03:32:56.000Z | 2020-12-16T03:32:56.000Z | DLOCRModel.Calculate/DLOCRModel.Calculate.hpp | Frederisk/DeepLearning-OpticalCharacterRecognition-Model | 52998e877cdf1e849cc2648e7d07dee6ae865cc1 | [
"MIT"
] | null | null | null | ๏ปฟ#pragma once
using namespace System;
using MathNet::Numerics::LinearAlgebra::Matrix;
namespace DLOCRModel {
namespace Calculate {
public ref class FeedforwardNetworkPiece sealed {
public:
private:
};
}
} | 14.333333 | 57 | 0.627907 | Frederisk |
ab839c9d1069d6dce421d13fed082e5107abf190 | 4,871 | cpp | C++ | projects/atest/test_context.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | null | null | null | projects/atest/test_context.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | 136 | 2020-03-29T11:15:38.000Z | 2020-10-14T06:21:23.000Z | projects/atest/test_context.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | 1 | 2020-08-04T09:56:53.000Z | 2020-08-04T09:56:53.000Z | #ifndef __clang__
export module atest:test_context;
import :test_suite;
#endif
namespace atest
{
//! \private
export class TestContext
{
struct TestContextWrapper
{
TestContext *context = nullptr;
std::atomic<int> instances{};
};
public:
TestContext() noexcept :
parentContext{T... | 26.048128 | 112 | 0.53295 | agnesoft |
ab85331c3970fe232bb9914251791c6a4ccd641c | 2,259 | cpp | C++ | segmentation/Ncuts/util/mex_math.cpp | sfikas/sfikasLibrary | b99ac0bf01289c23d46c27bd9003e7891f026eb4 | [
"MIT"
] | 7 | 2016-10-03T12:43:59.000Z | 2020-07-18T08:17:44.000Z | segmentation/Ncuts/util/mex_math.cpp | sfikas/duguepes-matroutines | b99ac0bf01289c23d46c27bd9003e7891f026eb4 | [
"MIT"
] | null | null | null | segmentation/Ncuts/util/mex_math.cpp | sfikas/duguepes-matroutines | b99ac0bf01289c23d46c27bd9003e7891f026eb4 | [
"MIT"
] | null | null | null | /*================================================================
// Timothee Cour, 29-Aug-2006 07:49:15
mex_math = used by a couple of mex functions
*=================================================================*/
# include "math.h"
int round2(double x) {
//return floor(x+0.5);
return x>=0... | 21.932039 | 76 | 0.463922 | sfikas |
ab857925febd450c0ad4441b9f5341b548ca54c6 | 2,037 | hpp | C++ | rocsolver/clients/include/rocsolver_test.hpp | LuckyBoyDE/rocSOLVER | 6431459ce3f68b5a4c14b28b4ec35c25d664f0bc | [
"BSD-2-Clause"
] | null | null | null | rocsolver/clients/include/rocsolver_test.hpp | LuckyBoyDE/rocSOLVER | 6431459ce3f68b5a4c14b28b4ec35c25d664f0bc | [
"BSD-2-Clause"
] | null | null | null | rocsolver/clients/include/rocsolver_test.hpp | LuckyBoyDE/rocSOLVER | 6431459ce3f68b5a4c14b28b4ec35c25d664f0bc | [
"BSD-2-Clause"
] | null | null | null | /* ************************************************************************
* Copyright (c) 2018-2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#ifndef S_TEST_H_
#define S_TEST_H_
#include <boost/format.hpp>
#include <cstdarg>
#include <limits>
#defi... | 29.521739 | 78 | 0.471772 | LuckyBoyDE |
ab889664886083babd8ffdebf49f7ea22422ce8d | 23,207 | cpp | C++ | font.cpp | Yours3lf/text_game | 32c934a7cb396d2412a3f0847cd7c7da9d46e3c0 | [
"MIT"
] | null | null | null | font.cpp | Yours3lf/text_game | 32c934a7cb396d2412a3f0847cd7c7da9d46e3c0 | [
"MIT"
] | null | null | null | font.cpp | Yours3lf/text_game | 32c934a7cb396d2412a3f0847cd7c7da9d46e3c0 | [
"MIT"
] | null | null | null | #include "font.h"
#include <fstream>
#include "ft2build.h"
#include FT_FREETYPE_H
#define MAX_TEX_SIZE 8192
#define MIN_TEX_SIZE 128
#define FONT_VERTEX 0
#define FONT_TEXCOORD 1
#define FONT_VERTSCALEBIAS 2
#define FONT_TEXSCALEBIAS 3
#define FONT_COLOR 4
#define FONT_FACE 5
#define FONT_TRANSFORM 6
#define FONT_F... | 27.302353 | 186 | 0.630887 | Yours3lf |
ab8db9f0f7d107703c0285f716a5c922921b245f | 4,154 | cpp | C++ | unit_test/gtest_cell_index.cpp | Tokumasu-Lab/md_fdps | eb9ba6baa8ac2dba86ae74fa6104a38e18d045ff | [
"MIT"
] | null | null | null | unit_test/gtest_cell_index.cpp | Tokumasu-Lab/md_fdps | eb9ba6baa8ac2dba86ae74fa6104a38e18d045ff | [
"MIT"
] | null | null | null | unit_test/gtest_cell_index.cpp | Tokumasu-Lab/md_fdps | eb9ba6baa8ac2dba86ae74fa6104a38e18d045ff | [
"MIT"
] | null | null | null | //=======================================================================================
// This is unit test of MD_EXT::CellIndex.
// module location: ./generic_ext/cell_index.hpp
//=======================================================================================
#include <gtest/gtest.h>
#include <particl... | 34.907563 | 89 | 0.546221 | Tokumasu-Lab |
ab9af8c4d401cf7813a4789505c8f92cbd2753ee | 16,385 | cpp | C++ | Official Windows Driver Kit Sample/Windows Driver Kit (WDK) 8.1 Samples/[C++]-windows-driver-kit-81-cpp/WDK 8.1 C++ Samples/Sensors Geolocation Sample Driver (UMDF Version 1)/C++/RadioManagerGPS/SampleRadioManager.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 2 | 2022-01-21T01:40:58.000Z | 2022-01-21T01:41:10.000Z | Official Windows Driver Kit Sample/Windows Driver Kit (WDK) 8.1 Samples/[C++]-windows-driver-kit-81-cpp/WDK 8.1 C++ Samples/Sensors Geolocation Sample Driver (UMDF Version 1)/C++/RadioManagerGPS/SampleRadioManager.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | Official Windows Driver Kit Sample/Windows Driver Kit (WDK) 8.1 Samples/[C++]-windows-driver-kit-81-cpp/WDK 8.1 C++ Samples/Sensors Geolocation Sample Driver (UMDF Version 1)/C++/RadioManagerGPS/SampleRadioManager.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 2 | 2020-10-19T23:36:26.000Z | 2020-10-22T12:59:37.000Z | #include "precomp.h"
#pragma hdrstop
CSampleRadioManager::CSampleRadioManager() :
_pSensorManagerEvents(nullptr),
_hPnPEventThread(nullptr),
_hPnPEventThreadEvent(nullptr),
_hPnPEventWindow(nullptr)
{
}
HRESULT CSampleRadioManager::FinalConstruct()
{
HRESULT hr = S_OK;
// Create Sensor Manag... | 27.724196 | 118 | 0.595606 | zzgchina888 |
ab9d1614d83ef9bcca23fdc89da22a7a64a5c25a | 714 | cpp | C++ | test/algorithm/has_identity.cpp | muqsitnawaz/mate | 0353bb9bd04db0b7b4a547878e76617ed547b337 | [
"MIT"
] | null | null | null | test/algorithm/has_identity.cpp | muqsitnawaz/mate | 0353bb9bd04db0b7b4a547878e76617ed547b337 | [
"MIT"
] | null | null | null | test/algorithm/has_identity.cpp | muqsitnawaz/mate | 0353bb9bd04db0b7b4a547878e76617ed547b337 | [
"MIT"
] | null | null | null |
#include <gtest/gtest.h>
#include "mate/algorithm/has_identity.hpp"
TEST(IdentityTest, Additive)
{
const mate::Set_type<int> set { 1, 2, 3, 4, 5 };
EXPECT_FALSE(mate::has_identity<mate::Addition>(set));
const mate::Set_type<int> set1 { 0, 1, 2, 3, 4, 5 };
EXPECT_TRUE(mate::has_identity<mate::Additio... | 25.5 | 64 | 0.665266 | muqsitnawaz |
aba103dacd5a9d35d1adb833cbfea4d3c88d308e | 7,170 | cpp | C++ | Build/hosEngine/AudioSource.cpp | Game-institute-1st-While-true/hosEngine | 2cc0b464740a976a8b37afd7a9e3479fe7484cf0 | [
"MIT"
] | null | null | null | Build/hosEngine/AudioSource.cpp | Game-institute-1st-While-true/hosEngine | 2cc0b464740a976a8b37afd7a9e3479fe7484cf0 | [
"MIT"
] | null | null | null | Build/hosEngine/AudioSource.cpp | Game-institute-1st-While-true/hosEngine | 2cc0b464740a976a8b37afd7a9e3479fe7484cf0 | [
"MIT"
] | 2 | 2021-07-14T00:14:18.000Z | 2021-07-27T04:16:53.000Z | #include "AudioSource.h"
#include "Transform.h"
#include "GameObject.h"
#include "Scene.h"
#include "AudioListener.h"
using namespace hos;
// FL FR C LFE BL BR SL SR
//Degree(0~360) 334 26 0 360 260 100 217.5 142.5
static float EmitterAngle[] =
{
5.829... | 18.868421 | 134 | 0.665411 | Game-institute-1st-While-true |
aba28b08d7e832242a5481ff7f3f6ef9a524e350 | 7,243 | cpp | C++ | include/cinolib/isocontour.cpp | goodengineer/cinolib | 7de4de6816ed617e76a0517409e3e84c4546685e | [
"MIT"
] | null | null | null | include/cinolib/isocontour.cpp | goodengineer/cinolib | 7de4de6816ed617e76a0517409e3e84c4546685e | [
"MIT"
] | null | null | null | include/cinolib/isocontour.cpp | goodengineer/cinolib | 7de4de6816ed617e76a0517409e3e84c4546685e | [
"MIT"
] | null | null | null | /********************************************************************************
* This file is part of CinoLib *
* Copyright(C) 2016: Marco Livesu *
* ... | 51.368794 | 208 | 0.510976 | goodengineer |
aba6181e7c5734b80cc6e6a560af90fb33a2d409 | 1,725 | cpp | C++ | source/Task.cpp | acs9307/alib-cpp | 56eb3d31d979ef1b412d197e7ea8d10bac686077 | [
"MIT"
] | 1 | 2017-05-02T09:51:05.000Z | 2017-05-02T09:51:05.000Z | source/Task.cpp | acs9307/alib-cpp | 56eb3d31d979ef1b412d197e7ea8d10bac686077 | [
"MIT"
] | null | null | null | source/Task.cpp | acs9307/alib-cpp | 56eb3d31d979ef1b412d197e7ea8d10bac686077 | [
"MIT"
] | null | null | null | #include "includes/Task.h"
namespace alib
{
/****Initializers****/
void Task::init(task_callback callback, void* taskArg, alib_free_value freeArg,
uint8_t loopsPerCallback)
{
tcb = callback;
arg = taskArg;
freeArgCb = freeArg;
loopsPerCall = loopsPerCallback;
/* Default init other members. */
loopCou... | 22.402597 | 84 | 0.649275 | acs9307 |
aba6f7ae9aadd6b2bfa8e803f56bce4c0f92a1b1 | 326 | cc | C++ | ultra_fast_mathematician.cc | maximilianbrine/github-slideshow | 76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1 | [
"MIT"
] | null | null | null | ultra_fast_mathematician.cc | maximilianbrine/github-slideshow | 76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1 | [
"MIT"
] | 3 | 2021-01-04T18:33:39.000Z | 2021-01-04T19:37:21.000Z | ultra_fast_mathematician.cc | maximilianbrine/github-slideshow | 76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
int main() {
std::string a, b, c = "";
std::getline(std::cin, a);
std::getline(std::cin, b);
for (int i = 0; i < a.size(); ++i) {
if (a[i] != b[i]) {
c += "1";
} else {
c += "0";
}
}
std::cout << c;
retur... | 19.176471 | 40 | 0.383436 | maximilianbrine |
aba83b2fb430d3a70dcec3c0cc5f05f4a01049cf | 7,381 | hpp | C++ | DT3Core/Scripting/ScriptingRadioButton.hpp | nemerle/DT3 | 801615d507eda9764662f3a34339aa676170e93a | [
"MIT"
] | 3 | 2016-01-27T13:17:18.000Z | 2019-03-19T09:18:25.000Z | DT3Core/Scripting/ScriptingRadioButton.hpp | nemerle/DT3 | 801615d507eda9764662f3a34339aa676170e93a | [
"MIT"
] | 1 | 2016-01-28T14:39:49.000Z | 2016-01-28T22:12:07.000Z | DT3Core/Scripting/ScriptingRadioButton.hpp | adderly/DT3 | e2605be091ec903d3582e182313837cbaf790857 | [
"MIT"
] | 3 | 2016-01-25T16:44:51.000Z | 2021-01-29T19:59:45.000Z | #pragma once
#ifndef DT3_SCRIPTINGPAGEFLIPPER
#define DT3_SCRIPTINGPAGEFLIPPER
//==============================================================================
///
/// File: ScriptingRadioButton.hpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is su... | 49.536913 | 109 | 0.315811 | nemerle |
abaaca90eeb532ebd9937cf4f79f689e5e51d02b | 1,602 | cpp | C++ | Cpp/Docker/ASM.cpp | lehtojo/Evie | f41b3872f6a1a7da1778c241c7b01823b36ac78d | [
"MIT"
] | 12 | 2020-07-12T06:22:11.000Z | 2022-02-27T13:19:19.000Z | Cpp/Docker/ASM.cpp | lehtojo/Evie | f41b3872f6a1a7da1778c241c7b01823b36ac78d | [
"MIT"
] | 2 | 2020-07-12T06:22:48.000Z | 2021-11-28T01:23:25.000Z | Cpp/Docker/ASM.cpp | lehtojo/Evie | f41b3872f6a1a7da1778c241c7b01823b36ac78d | [
"MIT"
] | 3 | 2021-09-16T19:02:19.000Z | 2021-11-28T00:50:15.000Z | #include "../../H/Docker/ASM.h"
#include "../../H/UI/Safe.h"
void ASM::ASM_Analyzer(vector<string>& Output)
{
//here we will just make an prototype from every label. Parser can analyse wich one is a function, and what is not.
//and after that we want to give Evie Core the "use "filename"" without the preprosessor so... | 45.771429 | 124 | 0.730337 | lehtojo |
abb39c4e6463162fa3d0647f590f9a85288fbcb8 | 8,657 | cpp | C++ | sources/data/planet.cpp | n0dev/space-explorer | 87088bbd620128d09467aed7e188b717a19367ab | [
"MIT"
] | null | null | null | sources/data/planet.cpp | n0dev/space-explorer | 87088bbd620128d09467aed7e188b717a19367ab | [
"MIT"
] | null | null | null | sources/data/planet.cpp | n0dev/space-explorer | 87088bbd620128d09467aed7e188b717a19367ab | [
"MIT"
] | null | null | null | #include <math.h>
#include <fstream>
#include <FTGL/ftgl.h>
#include <GL/glew.h>
#include "rapidjson/document.h"
#include "../include/data/planet.h"
#include "../include/gui.h"
#include "../textures/loadpng.h"
#include "../gameplay/observer.h"
using namespace rapidjson;
Planet *mercury;
Planet *venus;
Planet *eart... | 31.944649 | 118 | 0.631859 | n0dev |
abb67a710058c771ece4227facb9d97f4c223d47 | 15,580 | cpp | C++ | sdl1/f1spirit/F1Spirit-auxiliar.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/f1spirit/F1Spirit-auxiliar.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/f1spirit/F1Spirit-auxiliar.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | #ifdef _WIN32
#include <windows.h>
#include <windowsx.h>
#else
#include <sys/time.h>
#include <time.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include "ctype.h"
#include "string.h"
#include "math.h"
#include "SDL.h"
#include "SDL_image.h"
#include "SDL_mixer.h"
#include "auxiliar.h"
#include "List.h"
#include... | 25.625 | 175 | 0.508023 | pdpdds |
abb7de1094601dbf1560777070d4c17f69bae869 | 3,767 | cpp | C++ | tf2_src/hammer/replacetexdlg.cpp | IamIndeedGamingAsHardAsICan03489/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | src/hammer/replacetexdlg.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | null | null | null | src/hammer/replacetexdlg.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $Date: $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//===================================================================... | 22.289941 | 95 | 0.68171 | IamIndeedGamingAsHardAsICan03489 |
abc0c946edd3d6dfabe817ff8e86c87b3aecf71c | 7,107 | cpp | C++ | BCG/BCGPToolbarSystemMenuButton.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 2 | 2018-03-30T06:40:08.000Z | 2022-02-23T12:40:13.000Z | BCG/BCGPToolbarSystemMenuButton.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | null | null | null | BCG/BCGPToolbarSystemMenuButton.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 1 | 2020-08-11T05:48:02.000Z | 2020-08-11T05:48:02.000Z | //*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of the BCGControlBar Library
// Copyright (C) 1998-2014 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and condi... | 29.736402 | 99 | 0.556071 | 11Zero |
abc4fb0ba91b9695df580ed90da3745bd7cf5ba4 | 1,454 | cpp | C++ | Leetcode/L1510.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | 8 | 2021-02-14T01:48:09.000Z | 2022-01-29T09:12:55.000Z | Leetcode/L1510.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | null | null | null | Leetcode/L1510.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | null | null | null |
#include <vector>
#include <iostream>
#include <queue>
#include <map>
#include <algorithm>
#include <functional>
#include <stack>
using namespace std;
const int INF = 0x3F3F3F3F;
const int MOD = 1E9 + 7;
#define ready ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define debug puts("pigtoria bling bling... | 21.382353 | 72 | 0.486245 | yanjinbin |
abc72cde4ceb89ad6ce76afd70301195b5a726ec | 1,362 | cpp | C++ | src/get_coords.cpp | ropensci/geoops | e83b0e98a3d532f9081f3adab787f8f719c9ffc1 | [
"MIT"
] | 11 | 2018-05-19T08:37:37.000Z | 2020-09-14T05:36:52.000Z | src/get_coords.cpp | cran/geoops | ec6c9300b7a48a4a604ba3a4243da7d0360e85a3 | [
"MIT"
] | 3 | 2018-03-19T18:37:19.000Z | 2020-05-15T21:49:48.000Z | src/get_coords.cpp | cran/geoops | ec6c9300b7a48a4a604ba3a4243da7d0360e85a3 | [
"MIT"
] | 2 | 2018-09-01T12:26:15.000Z | 2019-10-14T14:18:34.000Z | #include <Rcpp.h>
#include "json.h"
using json = nlohmann::json;
// Checks if coordinates contains a number
bool contains_number(std::string coordinates) {
auto jj = json::parse(coordinates);
if (jj.size() > 1 && jj[0].is_number() && jj[1].is_number()) {
return true;
}
if (jj[0].is_array() && jj[0].size(... | 24.763636 | 68 | 0.621145 | ropensci |
abca2b38f15a78dd26c059d92b69175c083018ae | 369 | cpp | C++ | Engine/EngineProject/DiceGameObject.cpp | joshuaRMS/BoardChampions- | b1146f721dd4e49b3fecba8243182efce64249f9 | [
"MIT"
] | 1 | 2019-12-09T13:53:40.000Z | 2019-12-09T13:53:40.000Z | Engine/EngineProject/DiceGameObject.cpp | joshuaRMS/BoardChampions- | b1146f721dd4e49b3fecba8243182efce64249f9 | [
"MIT"
] | null | null | null | Engine/EngineProject/DiceGameObject.cpp | joshuaRMS/BoardChampions- | b1146f721dd4e49b3fecba8243182efce64249f9 | [
"MIT"
] | null | null | null | #include "DiceGameObject.h"
void DiceGameObject::rollDices()
{
Dice1 = rand() % 6 + 1;
Dice2 = rand() % 6 + 1;
std::cout << Dice1 << std::endl;
}
void DiceGameObject::DrawDices()
{
}
void DiceGameObject::init()
{
rollDices();
}
void DiceGameObject::update(float elapsedTime)
{
}
DiceGameObject::DiceGameObje... | 10.542857 | 46 | 0.661247 | joshuaRMS |
abcbb26b1b2bdd7ef7356308bc5fdb0b8aa510cb | 1,064 | cpp | C++ | NestedRangesCheck.cpp | zuhaib786/CSES_SOLUTIONS | d506d25919b9ebc9b2b809e1cd5327c14872e4a9 | [
"MIT"
] | 1 | 2021-06-18T01:48:37.000Z | 2021-06-18T01:48:37.000Z | NestedRangesCheck.cpp | zuhaib786/CSES_SOLUTIONS | d506d25919b9ebc9b2b809e1cd5327c14872e4a9 | [
"MIT"
] | null | null | null | NestedRangesCheck.cpp | zuhaib786/CSES_SOLUTIONS | d506d25919b9ebc9b2b809e1cd5327c14872e4a9 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct range
{
int first;
int second;
int index;
};
bool compare(range range1, range range2)
{
if (range1.first== range2.first)
{
return range1.second > range2.second;
}
return range1.first < range2.first;
}
int main() {
int n;
cin>>n;
vector<range... | 18.033898 | 55 | 0.531955 | zuhaib786 |
abcec6dfcedef9a428b6ad69cd6fb01a057be837 | 268 | cpp | C++ | libs/core/render/src/detail/bksge_core_render_detail_index_array_base.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/render/src/detail/bksge_core_render_detail_index_array_base.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/render/src/detail/bksge_core_render_detail_index_array_base.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | ๏ปฟ/**
* @file bksge_core_render_detail_index_array_base.cpp
*
* @brief IndexArrayBase ใฎๅฎ่ฃ
*
* @author myoukaku
*/
#include <bksge/fnd/config.hpp>
#if !defined(BKSGE_HEADER_ONLY)
#include <bksge/core/render/detail/inl/index_array_base_inl.hpp>
#endif
| 20.615385 | 65 | 0.720149 | myoukaku |
abd4da0a61e24c5dfb3f3c38d60cbafc05a0a009 | 2,419 | cc | C++ | src/q_151_200/q0200.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 2 | 2021-09-28T18:41:03.000Z | 2021-09-28T18:42:57.000Z | src/q_151_200/q0200.cc | vNaonLu/Daily_LeetCode | 30024b561611d390931cef1b22afd6a5060cf586 | [
"MIT"
] | 16 | 2021-09-26T11:44:20.000Z | 2021-11-28T06:44:02.000Z | src/q_151_200/q0200.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 1 | 2021-11-22T09:11:36.000Z | 2021-11-22T09:11:36.000Z | #include <gtest/gtest.h>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
/**
* This file is generated by leetcode_add.py v1.0
*
* 200.
* Number of Islands
*
* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Description โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
*
* Given an โm x nโ 2D binary grid โgridโ w... | 29.144578 | 139 | 0.446465 | vNaonLu |
abd9de720def75125a9f45c56f58d0dbe5d584b1 | 1,215 | cpp | C++ | src/Graphics/TextureCPU.cpp | StarNuik/poi.Graphics | 551ef5eeb8f1576c4d7ac0d5dee4ff8faee8cc3c | [
"MIT"
] | null | null | null | src/Graphics/TextureCPU.cpp | StarNuik/poi.Graphics | 551ef5eeb8f1576c4d7ac0d5dee4ff8faee8cc3c | [
"MIT"
] | null | null | null | src/Graphics/TextureCPU.cpp | StarNuik/poi.Graphics | 551ef5eeb8f1576c4d7ac0d5dee4ff8faee8cc3c | [
"MIT"
] | null | null | null | #include <stb_image.h>
#include <string>
#include <GL/glew.h>
#include "Graphics/TextureCPU.hpp"
#include "Graphics/Enums/TextureFormatGPU.hpp"
#include "Graphics/Enums/TextureFormatCPU.hpp"
using namespace poi::Graphics;
namespace /* Project constants */
{
using namespace poi;
const int32 InternalC... | 24.795918 | 95 | 0.720165 | StarNuik |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.