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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0fbb7d606228fa5f2e9ccf7ad166e91238c106f6 | 187 | cpp | C++ | scene.cpp | wutipong/font-render-tester | efa762cc4b1bc1a50fc73596d7b6b8bf70787ce9 | [
"MIT"
] | null | null | null | scene.cpp | wutipong/font-render-tester | efa762cc4b1bc1a50fc73596d7b6b8bf70787ce9 | [
"MIT"
] | null | null | null | scene.cpp | wutipong/font-render-tester | efa762cc4b1bc1a50fc73596d7b6b8bf70787ce9 | [
"MIT"
] | null | null | null | #include "scene.hpp"
std::unique_ptr<Scene> Scene::currentScene;
void Scene::TickCurrent(Context &context) {
if (currentScene == nullptr)
return;
currentScene->Tick(context);
}
| 18.7 | 43 | 0.716578 | wutipong |
0fbf5ff64d303e665711bb8575174b2b6e4a1e5e | 1,287 | hpp | C++ | src/util/DB.hpp | hindsights/xbtc | 243c29574651d4365cd5313b75043463afc80950 | [
"MIT"
] | 6 | 2018-05-08T00:52:40.000Z | 2019-11-14T23:47:00.000Z | src/util/DB.hpp | hindsights/xbtc | 243c29574651d4365cd5313b75043463afc80950 | [
"MIT"
] | null | null | null | src/util/DB.hpp | hindsights/xbtc | 243c29574651d4365cd5313b75043463afc80950 | [
"MIT"
] | 3 | 2018-09-01T16:45:10.000Z | 2019-02-13T08:31:16.000Z | #pragma once
#include <xul/data/slice.hpp>
#include <xul/lang/object.hpp>
#include <vector>
namespace leveldb {
struct Options;
}
namespace xbtc {
class DBWriteBatch : public xul::object
{
public:
virtual void clear() = 0;
virtual void write(const std::string& key, const std::string& val) = 0;
virtual ... | 24.75 | 88 | 0.663559 | hindsights |
0fc0c27211b0269016eee55c6b02e110f09ddd9e | 1,196 | cc | C++ | src/273.cc | o-olll/shuati | 64a031a5218670afd4bdbba5d3af3c428757b3fd | [
"Apache-2.0"
] | null | null | null | src/273.cc | o-olll/shuati | 64a031a5218670afd4bdbba5d3af3c428757b3fd | [
"Apache-2.0"
] | null | null | null | src/273.cc | o-olll/shuati | 64a031a5218670afd4bdbba5d3af3c428757b3fd | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_map>
#include <string>
#include "utils.h"
using namespace std;
string toWords(int num)
{
vector<string> v1 = {"", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten",
"Eleven", "Twelve", "Thirteen", "Fourt... | 24.408163 | 128 | 0.512542 | o-olll |
0fc22a8f7c3d258675a79d910b2eb544d6379d2d | 30,051 | hpp | C++ | headers/vmath.hpp/vmath_mat_fun.hpp | BlackMATov/vmath.hpp | 8c8d7765349620063db5c1632e367e60f0e01680 | [
"MIT"
] | 34 | 2020-11-20T19:26:03.000Z | 2022-03-04T04:37:34.000Z | headers/vmath.hpp/vmath_mat_fun.hpp | BlackMATov/vmath.hpp | 8c8d7765349620063db5c1632e367e60f0e01680 | [
"MIT"
] | 17 | 2020-11-29T00:52:10.000Z | 2021-06-25T16:23:58.000Z | headers/vmath.hpp/vmath_mat_fun.hpp | BlackMATov/vmath.hpp | 8c8d7765349620063db5c1632e367e60f0e01680 | [
"MIT"
] | 1 | 2022-02-25T07:30:19.000Z | 2022-02-25T07:30:19.000Z | /*******************************************************************************
* This file is part of the "https://github.com/blackmatov/vmath.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2020-2021, by Matvey Cherevko (blackmatov@gmail.com)
********************... | 34.462156 | 122 | 0.512296 | BlackMATov |
0fc308d0f78f4bd029044af4074f4601b5f8f1e7 | 3,940 | cpp | C++ | src/game/server/te_bloodstream.cpp | vxsd/refraction | bb6def1feb6c2e5c94b2604ad55607ed380a2d7e | [
"MIT"
] | 14 | 2021-02-16T14:13:50.000Z | 2022-03-17T18:29:19.000Z | src/game/server/te_bloodstream.cpp | undbsd/refraction | bb6def1feb6c2e5c94b2604ad55607ed380a2d7e | [
"MIT"
] | 7 | 2021-08-06T18:40:37.000Z | 2022-03-09T18:05:08.000Z | src/game/server/te_bloodstream.cpp | undbsd/refraction | bb6def1feb6c2e5c94b2604ad55607ed380a2d7e | [
"MIT"
] | 2 | 2021-08-05T16:03:03.000Z | 2021-11-26T00:11:27.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $Date: $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//====================================================================... | 28.970588 | 87 | 0.471827 | vxsd |
0fc4e68b9c84613237557eaabb49d970cb827c2d | 61 | cpp | C++ | cool-app/src/foo.cpp | TheHugeManatee/cmake-cpp-boilerplate | d9a0528a4d188557e1389618a2a9ba76543e8f90 | [
"CC0-1.0"
] | 1 | 2022-02-14T03:47:38.000Z | 2022-02-14T03:47:38.000Z | cool-app/src/foo.cpp | TheHugeManatee/cmake-cpp-boilerplate | d9a0528a4d188557e1389618a2a9ba76543e8f90 | [
"CC0-1.0"
] | null | null | null | cool-app/src/foo.cpp | TheHugeManatee/cmake-cpp-boilerplate | d9a0528a4d188557e1389618a2a9ba76543e8f90 | [
"CC0-1.0"
] | null | null | null | #include "foo.h"
// Implementation
int foo() { return 42; }
| 12.2 | 24 | 0.639344 | TheHugeManatee |
0fc91f43cae3e36d5d909226c943dec926152630 | 5,652 | cpp | C++ | src/data_processing/ParseMeasurementData.cpp | mwopfner/sick_safetyscanners_base | 14810d86074bc44e216839bf748cc7e22f0ac68c | [
"Apache-2.0"
] | null | null | null | src/data_processing/ParseMeasurementData.cpp | mwopfner/sick_safetyscanners_base | 14810d86074bc44e216839bf748cc7e22f0ac68c | [
"Apache-2.0"
] | null | null | null | src/data_processing/ParseMeasurementData.cpp | mwopfner/sick_safetyscanners_base | 14810d86074bc44e216839bf748cc7e22f0ac68c | [
"Apache-2.0"
] | null | null | null | // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
// -- BEGIN LICENSE BLOCK ----------------------------------------------
/*!
* Copyright (C) 2018, SICK AG, Waldkirch
* Copyright (C) 2018, FZI Forschungszentrum Informatik, Karlsruhe, Germany
*
*
* Licensed under the Apache License, Versio... | 36.464516 | 98 | 0.645081 | mwopfner |
0fcadcb5e60078b21637050a8130836c0fadfdb6 | 3,543 | cpp | C++ | dev/Repeater/VirtualizingLayoutContext.cpp | johnpf74/microsoft-ui-xaml | db7b371a8155a81800f4432d6052ef54cb20642a | [
"MIT"
] | null | null | null | dev/Repeater/VirtualizingLayoutContext.cpp | johnpf74/microsoft-ui-xaml | db7b371a8155a81800f4432d6052ef54cb20642a | [
"MIT"
] | null | null | null | dev/Repeater/VirtualizingLayoutContext.cpp | johnpf74/microsoft-ui-xaml | db7b371a8155a81800f4432d6052ef54cb20642a | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#include <pch.h>
#include <common.h>
#include "ItemsRepeater.common.h"
#include "VirtualizingLayoutContext.h"
#include "VirtualLayoutContextAdapter.h"
CppW... | 30.025424 | 138 | 0.761219 | johnpf74 |
0fd5283cfb06b413a5578338ad420ec46ed94c7d | 630 | cc | C++ | jax/codeforces/div3/cf-734/a_polycarp_and_coins.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | 2 | 2022-01-01T16:55:02.000Z | 2022-03-16T14:47:29.000Z | jax/codeforces/div3/cf-734/a_polycarp_and_coins.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | null | null | null | jax/codeforces/div3/cf-734/a_polycarp_and_coins.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using pi = pair<int, int>;
#define REP(i, l, r) for (int i = l; i < r; ++i)
#define F first
#define S second
#define PF push_fornt
#define PB push_back
#define MP make_pair
const char el = '\n';
const int N = 1e6 + 10;
void s... | 16.153846 | 48 | 0.495238 | JaxVanYang |
0fd7ab23e363057104e6435bb758bd2be0e6bdb4 | 272 | cc | C++ | kattis/mixedfractions.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | kattis/mixedfractions.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | kattis/mixedfractions.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://open.kattis.com/problems/mixedfractions
#include <iostream>
using namespace std;
int main() {
while (true) {
int n, d;
cin >> n >> d;
if (n == 0 && d == 0) break;
int q = n / d;
cout << q << " " << n - q * d << " / " << d << endl;
}
}
| 18.133333 | 56 | 0.470588 | Ashindustry007 |
0fd8da3879d2271a53de91472eae887305a8866a | 4,797 | cpp | C++ | core/impl/math/mat.cpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | core/impl/math/mat.cpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | core/impl/math/mat.cpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | #include <cmath>
#include <cassert>
#include "mat.hpp"
namespace e2 { namespace math {
mat::mat(){
// sets up default 4x4 dimension
int dim[2] = { 4, 4 };
resize_int( 2, dim );
}
void mat::resize_int( int count, int dim [] ){
if( count == 0 ){
_size = 0;
delete [] _mat;
_mat = new float [ 0 ];
r... | 20.240506 | 107 | 0.489056 | auyunli |
0fd93994208970957fe93a11a9e94d1219835c2b | 199 | hpp | C++ | src/Smarty/WifiConfig.hpp | davidorlea/smarty-esp8266 | 69cdac544a03c58cebe9f44001470d5c66c82b33 | [
"MIT"
] | 2 | 2018-01-09T15:48:08.000Z | 2019-10-29T22:37:14.000Z | src/Smarty/WifiConfig.hpp | davidorlea/smarty-esp8266 | 69cdac544a03c58cebe9f44001470d5c66c82b33 | [
"MIT"
] | null | null | null | src/Smarty/WifiConfig.hpp | davidorlea/smarty-esp8266 | 69cdac544a03c58cebe9f44001470d5c66c82b33 | [
"MIT"
] | null | null | null | #pragma once
class SmartyWifiConfig {
public:
virtual const char* getWifiSSID() const = 0;
virtual const char* getWifiPassword() const = 0;
virtual const char* getWifiHostname() const = 0;
};
| 22.111111 | 50 | 0.723618 | davidorlea |
0fdbe3ff46c059d57c3af6f39f25d2d6cf9d5cb9 | 803 | cpp | C++ | data/dailyCodingProblem471.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | 2 | 2020-09-04T20:56:23.000Z | 2021-06-11T07:42:26.000Z | data/dailyCodingProblem471.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | data/dailyCodingProblem471.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
Total number of possible Binary Search Trees with n different keys
(countBST(n)) = Catalan number Cn = (2n)! / ((n + 1)! * n!)
*/
// calculate factorial of n
unsigned long factorial(int n){
if(n==0 || n==1)
return 1;
unsigned long fact = 1;
for(int... | 19.585366 | 66 | 0.552927 | vidit1999 |
0fdd386c3a7a296ef1088d462b0ef8c3d6643fb5 | 4,764 | cpp | C++ | src/gui/Question_widget.cpp | Riateche/ridual | d91ca5326438e15fccd38a4e4263aeb291d64539 | [
"MIT"
] | 3 | 2015-07-08T07:41:36.000Z | 2017-11-08T15:01:26.000Z | src/gui/Question_widget.cpp | Riateche/ridual | d91ca5326438e15fccd38a4e4263aeb291d64539 | [
"MIT"
] | null | null | null | src/gui/Question_widget.cpp | Riateche/ridual | d91ca5326438e15fccd38a4e4263aeb291d64539 | [
"MIT"
] | null | null | null | #include "Question_widget.h"
#include "ui_Question_widget.h"
#include "Main_window.h"
#include "Pane.h"
#include <QKeyEvent>
#include <QDebug>
#include <QTextDocument>
Question_widget::Question_widget(Main_window *mw) :
ui(new Ui::Question_widget)
, main_window(mw)
{
ui->setupUi(this);
ui->answer_editor->install... | 31.137255 | 107 | 0.63749 | Riateche |
0fde44f342a37472427adbae19a28ee7d5e84381 | 337 | cpp | C++ | Modbus Poll/CVcSeriesCollection.cpp | DHSERVICE56/T3000_Building_Automation_System | 77bd47a356211b1c8ad09fb8d785e9f880d3cd26 | [
"MIT"
] | 1 | 2019-12-11T05:14:08.000Z | 2019-12-11T05:14:08.000Z | Modbus Poll/CVcSeriesCollection.cpp | DHSERVICE56/T3000_Building_Automation_System | 77bd47a356211b1c8ad09fb8d785e9f880d3cd26 | [
"MIT"
] | null | null | null | Modbus Poll/CVcSeriesCollection.cpp | DHSERVICE56/T3000_Building_Automation_System | 77bd47a356211b1c8ad09fb8d785e9f880d3cd26 | [
"MIT"
] | 1 | 2021-05-31T18:56:31.000Z | 2021-05-31T18:56:31.000Z | // CVcSeriesCollection.cpp : Definition of ActiveX Control wrapper class(es) created by Microsoft Visual C++
#include "stdafx.h"
#include "CVcSeriesCollection.h"
/////////////////////////////////////////////////////////////////////////////
// CVcSeriesCollection
// CVcSeriesCollection properties
// CVcSeriesColle... | 25.923077 | 109 | 0.608309 | DHSERVICE56 |
0fdee44b9076055cea64ceb8908c715fdac663a4 | 364 | cpp | C++ | ace/Recyclable.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | ace/Recyclable.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | ace/Recyclable.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | 1 | 2020-04-26T03:07:12.000Z | 2020-04-26T03:07:12.000Z | #include "ace/Recyclable.h"
#if !defined (__ACE_INLINE__)
#include "ace/Recyclable.inl"
#endif /* __ACE_INLINE __ */
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_Recyclable::ACE_Recyclable (ACE_Recyclable_State initial_state)
: recycle_state_ (initial_state)
{
}
ACE_Recyclable::~ACE_Recyclable (void)... | 16.545455 | 68 | 0.747253 | azerothcore |
0fe21ab50fbf0488e385dab787fe115c85e9d82a | 399 | cpp | C++ | algorithms/non-decreasing-array.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 41 | 2018-07-03T07:35:30.000Z | 2021-09-25T09:33:43.000Z | algorithms/non-decreasing-array.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 2 | 2018-07-23T10:50:11.000Z | 2020-10-06T07:34:29.000Z | algorithms/non-decreasing-array.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 7 | 2018-07-06T13:43:18.000Z | 2020-10-06T02:29:57.000Z | class Solution
{
public:
bool checkPossibility(vector<int>& nums)
{
int cnt = 0;
for (int i = 1; i < nums.size() && cnt <= 1; i++) {
if (nums[i - 1] > nums[i]) {
cnt++;
if (i < 2 || nums[i - 2] <= nums[i]) nums[i - 1] = nums[i];
else nu... | 23.470588 | 75 | 0.370927 | Chronoviser |
0feaa9e75f0b8a2bd44efa53d83617524b39586b | 3,567 | hh | C++ | LiteCore/Support/DeDuplicateEncoder.hh | tophatch/couchbase-lite-core | f457d9bc74af276516d868b61a48b81b5d717e5c | [
"Apache-2.0"
] | null | null | null | LiteCore/Support/DeDuplicateEncoder.hh | tophatch/couchbase-lite-core | f457d9bc74af276516d868b61a48b81b5d717e5c | [
"Apache-2.0"
] | null | null | null | LiteCore/Support/DeDuplicateEncoder.hh | tophatch/couchbase-lite-core | f457d9bc74af276516d868b61a48b81b5d717e5c | [
"Apache-2.0"
] | null | null | null | //
// DeDuplicateEncoder.hh
//
// Copyright 2020-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
// in that file, in accordance with the Business Source License, use of this
// software wil... | 39.197802 | 105 | 0.590692 | tophatch |
0ff02c681d3fbc7f5cfc77598206e6f3fc4b1585 | 394 | cpp | C++ | week-08/std/main2.cpp | greenfox-zerda-sparta/zerda-syllabus | 5e49a9f9a2528e58bedb1f2d96bf8a4feabd123c | [
"MIT"
] | null | null | null | week-08/std/main2.cpp | greenfox-zerda-sparta/zerda-syllabus | 5e49a9f9a2528e58bedb1f2d96bf8a4feabd123c | [
"MIT"
] | null | null | null | week-08/std/main2.cpp | greenfox-zerda-sparta/zerda-syllabus | 5e49a9f9a2528e58bedb1f2d96bf8a4feabd123c | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
vector<vector<int> > matrix = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
for (vector<vector<int> >::iterator it = matrix.begin(); it != matrix.end(); ++it) {
for (vector<int>::iterator it2 = (*it).begin(); it2 != (*it).end()... | 20.736842 | 86 | 0.540609 | greenfox-zerda-sparta |
0ff133e5724f2b61d5fec089af46f20b920af39c | 1,791 | cpp | C++ | WindowsProgram/PSoundMgr.cpp | bear1704/WindowsProgramming_Portfolio | 83f1d763c73d08b82291aa894ef246558fdf0198 | [
"Apache-2.0"
] | null | null | null | WindowsProgram/PSoundMgr.cpp | bear1704/WindowsProgramming_Portfolio | 83f1d763c73d08b82291aa894ef246558fdf0198 | [
"Apache-2.0"
] | null | null | null | WindowsProgram/PSoundMgr.cpp | bear1704/WindowsProgramming_Portfolio | 83f1d763c73d08b82291aa894ef246558fdf0198 | [
"Apache-2.0"
] | null | null | null | #include "PSoundMgr.h"
PSoundMgr::PSoundMgr()
{
}
PSoundMgr::~PSoundMgr()
{
}
bool PSoundMgr::Init()
{
FMOD::System_Create(&pSystem);
pSystem->init(32, FMOD_INIT_NORMAL, 0);
return true;
}
bool PSoundMgr::Frame()
{
pSystem->update();
for (auto itor = soundList.begin(); itor != soundList.end(); itor++)
{
... | 16.583333 | 85 | 0.651591 | bear1704 |
0ff52333f32a949f9683021782e6b2e4d804b048 | 1,325 | cpp | C++ | src/homework/tic_tac_toe/tic_tac_toe_data.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Sidrah99 | bf4db3de490c74bb7d55ba518322ed6594559c5a | [
"MIT"
] | null | null | null | src/homework/tic_tac_toe/tic_tac_toe_data.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Sidrah99 | bf4db3de490c74bb7d55ba518322ed6594559c5a | [
"MIT"
] | null | null | null | src/homework/tic_tac_toe/tic_tac_toe_data.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Sidrah99 | bf4db3de490c74bb7d55ba518322ed6594559c5a | [
"MIT"
] | null | null | null | //cpp
#include "tic_tac_toe_data.h"
#include "tic_tac_toe_3.h"
#include "tic_tac_toe_4.h"
#include <iostream>
#include <fstream>
#include <string>
using std::ofstream; using std::ifstream;
void TicTacToeData::save_games(const vector<std::unique_ptr<TicTacToe>> & games)
{
ofstream file;
file.open("games.txt");... | 21.031746 | 80 | 0.537358 | acc-cosc-1337-fall-2020 |
0ff759fb06a10a071818e0bb3da120c326044d75 | 4,846 | cc | C++ | src/update_engine/postinstall_runner_action_unittest.cc | remarkableno/update_engine | cdffd37e3f005b7738bf596b9bc8d4155e4c7e15 | [
"BSD-3-Clause"
] | 12 | 2019-06-26T18:32:06.000Z | 2022-03-01T17:32:36.000Z | src/update_engine/postinstall_runner_action_unittest.cc | remarkableno/update_engine | cdffd37e3f005b7738bf596b9bc8d4155e4c7e15 | [
"BSD-3-Clause"
] | 6 | 2018-11-22T21:11:34.000Z | 2022-02-24T13:36:57.000Z | src/update_engine/postinstall_runner_action_unittest.cc | remarkableno/update_engine | cdffd37e3f005b7738bf596b9bc8d4155e4c7e15 | [
"BSD-3-Clause"
] | 5 | 2018-06-24T13:19:40.000Z | 2020-10-15T17:10:56.000Z | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <memory>
#include <string>
#include <vector>
#include <gtest/gtest.h>
... | 29.017964 | 83 | 0.671275 | remarkableno |
0ffe9d71800bf540014c1619b5632502c8dc5594 | 1,938 | cpp | C++ | src/llvmir2hll/ir/trunc_cast_expr.cpp | Andrik-555/retdec | 1ac63a520da02912daf836b924f41d95b1b5fa10 | [
"MIT",
"BSD-3-Clause"
] | 521 | 2019-03-29T15:44:08.000Z | 2022-03-22T09:46:19.000Z | src/llvmir2hll/ir/trunc_cast_expr.cpp | Andrik-555/retdec | 1ac63a520da02912daf836b924f41d95b1b5fa10 | [
"MIT",
"BSD-3-Clause"
] | 30 | 2019-06-04T17:00:49.000Z | 2021-09-08T20:44:19.000Z | src/llvmir2hll/ir/trunc_cast_expr.cpp | Andrik-555/retdec | 1ac63a520da02912daf836b924f41d95b1b5fa10 | [
"MIT",
"BSD-3-Clause"
] | 99 | 2019-03-29T16:04:13.000Z | 2022-03-28T16:59:34.000Z | /**
* @file src/llvmir2hll/ir/trunc_cast_expr.cpp
* @brief Implementation of TruncCastExpr.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include "retdec/llvmir2hll/ir/trunc_cast_expr.h"
#include "retdec/llvmir2hll/support/debug.h"
#include "retdec/llvmir2hll/support/visitor.h"
namespace re... | 25.5 | 87 | 0.74097 | Andrik-555 |
ba035b3d180213742d44d4cfe5327827c879251c | 575 | hpp | C++ | engine/maps/tiles/features/include/AltarManipulator.hpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 1 | 2020-05-24T22:44:03.000Z | 2020-05-24T22:44:03.000Z | engine/maps/tiles/features/include/AltarManipulator.hpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | engine/maps/tiles/features/include/AltarManipulator.hpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | #pragma once
#include "IFeatureManipulator.hpp"
// Interface that defines a common handle() method for all altars.
class AltarManipulator : public IFeatureManipulator
{
public:
AltarManipulator(FeaturePtr feature);
bool handle(TilePtr tile, CreaturePtr creature) override;
bool drop(CreaturePtr dropping_... | 33.823529 | 140 | 0.782609 | sidav |
613425cfc0ad045ea6ad765b4a904ed8a0190519 | 11,905 | cpp | C++ | examples/smoke/main.cpp | Shakebones/VFXEpoch | 014c51d5f98253b45b947fcecec940b20b1a5f04 | [
"MIT"
] | null | null | null | examples/smoke/main.cpp | Shakebones/VFXEpoch | 014c51d5f98253b45b947fcecec940b20b1a5f04 | [
"MIT"
] | null | null | null | examples/smoke/main.cpp | Shakebones/VFXEpoch | 014c51d5f98253b45b947fcecec940b20b1a5f04 | [
"MIT"
] | null | null | null | /*******************************************************************************
VFXEPOCH - Physically based simulation VFX
Copyright (c) 2016 Snow Tsui <trevor.miscellaneous@gmail.com>
All rights reserved. Use of this source code is governed by
the MIT license as written in the LICENSE file.
********... | 32.002688 | 156 | 0.640319 | Shakebones |
6135e3544969ce7938494cc806665ac5596cddbd | 3,882 | cpp | C++ | util/generic/guid.cpp | gkutiel/catboost | 1c6b91413c3fe7ba8b77450e1d3c15f0a132272f | [
"Apache-2.0"
] | null | null | null | util/generic/guid.cpp | gkutiel/catboost | 1c6b91413c3fe7ba8b77450e1d3c15f0a132272f | [
"Apache-2.0"
] | null | null | null | util/generic/guid.cpp | gkutiel/catboost | 1c6b91413c3fe7ba8b77450e1d3c15f0a132272f | [
"Apache-2.0"
] | null | null | null | #include "guid.h"
#include "ylimits.h"
#include "string.h"
#include <util/string/ascii.h>
#include <util/string/builder.h>
#include <util/stream/format.h>
#include <util/system/unaligned_mem.h>
#include <util/random/easy.h>
namespace {
inline void LowerCaseHex(TString& s) {
for (auto&& c : s) {
... | 22.835294 | 110 | 0.514426 | gkutiel |
613e13e4ebec715f22787ee31c3e59bca8099fd1 | 8,853 | cpp | C++ | Source/OFSMEditor/Private/OFSMAssetEditor/SEdNode_OFSMNode.cpp | andriyDev/OFSM | c59f9f9e4aee1d90120736e8531c86e82a6f6621 | [
"MIT"
] | null | null | null | Source/OFSMEditor/Private/OFSMAssetEditor/SEdNode_OFSMNode.cpp | andriyDev/OFSM | c59f9f9e4aee1d90120736e8531c86e82a6f6621 | [
"MIT"
] | null | null | null | Source/OFSMEditor/Private/OFSMAssetEditor/SEdNode_OFSMNode.cpp | andriyDev/OFSM | c59f9f9e4aee1d90120736e8531c86e82a6f6621 | [
"MIT"
] | null | null | null | #include "SEdNode_OFSMNode.h"
#include "OFSMEditorPCH.h"
#include "Colors_OFSM.h"
#include "SLevelOfDetailBranchNode.h"
#include "SInlineEditableTextBlock.h"
#include "SCommentBubble.h"
#include "SlateOptMacros.h"
#include "SGraphPin.h"
#include "GraphEditorSettings.h"
#include "EdNode_OFSMNode.h"
#define LOCTEXT_NAME... | 26.505988 | 100 | 0.67751 | andriyDev |
614203dc04a75b557b2c4127fce181ba37c326a3 | 55,361 | cc | C++ | lib/jxl/enc_frame.cc | zond/libjxl | 04267a8780d1600d2bc9a79d161d7f769b5db93c | [
"BSD-3-Clause"
] | null | null | null | lib/jxl/enc_frame.cc | zond/libjxl | 04267a8780d1600d2bc9a79d161d7f769b5db93c | [
"BSD-3-Clause"
] | null | null | null | lib/jxl/enc_frame.cc | zond/libjxl | 04267a8780d1600d2bc9a79d161d7f769b5db93c | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) the JPEG XL Project Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "lib/jxl/enc_frame.h"
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <array>
#include <atomic>
#include <cmath>... | 40.087618 | 80 | 0.620852 | zond |
6142bba5ccbdc8cce655d8a51ca8974fc7e8c51d | 792 | cpp | C++ | src/hardwaremanager.cpp | XMrVertigoX/DualLampSwitch | c86a0bd38cc4e585de24cc2d8494067468fc4483 | [
"MIT"
] | null | null | null | src/hardwaremanager.cpp | XMrVertigoX/DualLampSwitch | c86a0bd38cc4e585de24cc2d8494067468fc4483 | [
"MIT"
] | null | null | null | src/hardwaremanager.cpp | XMrVertigoX/DualLampSwitch | c86a0bd38cc4e585de24cc2d8494067468fc4483 | [
"MIT"
] | null | null | null | #include <em_chip.h>
#include <em_cmu.h>
#include "hardwaremanager.hpp"
static inline void enableCrystalOscillators() {
CMU_OscillatorEnable(cmuOsc_HFXO, true, true);
CMU_OscillatorEnable(cmuOsc_LFXO, true, true);
}
static inline void switchClockBranches() {
CMU_ClockSelectSet(cmuClock_HF, cmuSelect_HFXO... | 24.75 | 53 | 0.753788 | XMrVertigoX |
614478090a07c8afea511a237c85cb95ced3fbdb | 264 | hpp | C++ | src/BloomContainer.hpp | a1sabau/bloomstream | 9195e3dea4bc7321a9dbf7a968d9c66285e38f7a | [
"MIT"
] | null | null | null | src/BloomContainer.hpp | a1sabau/bloomstream | 9195e3dea4bc7321a9dbf7a968d9c66285e38f7a | [
"MIT"
] | null | null | null | src/BloomContainer.hpp | a1sabau/bloomstream | 9195e3dea4bc7321a9dbf7a968d9c66285e38f7a | [
"MIT"
] | 1 | 2020-01-08T00:38:28.000Z | 2020-01-08T00:38:28.000Z | #ifndef _SBC_BLOOMCONTAINER_H_
#define _SBC_BLOOMCONTAINER_H_
#include "commons.h"
class BloomContainer {
public:
static int bitNo;
static int clustGen;
int timestamp;
int clust;
BitSet filter;
bool enableChild;
BloomContainer();
private:
};
#endif
| 11 | 30 | 0.757576 | a1sabau |
614d1428dcda54d789cdc2493803c0517a528a05 | 2,785 | hh | C++ | src/RTT_Format_Reader/Flags.hh | david8dixon/Draco | bf236e0018452d98704b35c516a44106ea8c9bd3 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/RTT_Format_Reader/Flags.hh | david8dixon/Draco | bf236e0018452d98704b35c516a44106ea8c9bd3 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/RTT_Format_Reader/Flags.hh | david8dixon/Draco | bf236e0018452d98704b35c516a44106ea8c9bd3 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | //--------------------------------------------*-C++-*---------------------------------------------//
/*!
* \file RTT_Format_Reader/Flags.hh
* \author B.T. Adams
* \date Wed Jun 7 10:33:26 2000
* \brief Header file for RTT_Format_Reader/Flags class.
* \note Copyright (C) 2016-2020 Triad National Security, LL... | 30.271739 | 100 | 0.543268 | david8dixon |
614dd682affd637c2da6a44093eb9e5a3ee8a3e7 | 1,352 | cpp | C++ | kernel/arch/x86_64/device/mboot_module.cpp | Synchro99/WingOS | d2d96f3554076c58b63245c7c4b357e3c2c0d59c | [
"BSD-2-Clause"
] | null | null | null | kernel/arch/x86_64/device/mboot_module.cpp | Synchro99/WingOS | d2d96f3554076c58b63245c7c4b357e3c2c0d59c | [
"BSD-2-Clause"
] | null | null | null | kernel/arch/x86_64/device/mboot_module.cpp | Synchro99/WingOS | d2d96f3554076c58b63245c7c4b357e3c2c0d59c | [
"BSD-2-Clause"
] | null | null | null |
#include <com.h>
#include <device/mboot_module.h>
#include <kernel.h>
#include <logging.h>
#include <utility.h>
#include <utils/memory/liballoc.h>
mboot_module main_boot_module_list;
mboot_module::mboot_module()
{
}
void mboot_module::init(stivale_struct *main_struct)
{
stistruct = main_struct;
log("mboot", L... | 25.037037 | 131 | 0.613905 | Synchro99 |
61513a45af160d732a5098ff88850b3142a0ee0a | 3,277 | hpp | C++ | modules/gapi/src/streaming/onevpl/accelerators/accel_policy_dx11.hpp | yash112-lang/opencv | be38d4ea932bc3a0d06845ed1a2de84acc2a09de | [
"Apache-2.0"
] | 2 | 2022-03-26T11:12:18.000Z | 2022-03-30T13:07:32.000Z | modules/gapi/src/streaming/onevpl/accelerators/accel_policy_dx11.hpp | itdog-lvchang/opencv | 6390b50d6e2cb8463ea747a7976317ff6abc5572 | [
"Apache-2.0"
] | 1 | 2022-03-01T23:47:24.000Z | 2022-03-01T23:47:24.000Z | modules/gapi/src/streaming/onevpl/accelerators/accel_policy_dx11.hpp | itdog-lvchang/opencv | 6390b50d6e2cb8463ea747a7976317ff6abc5572 | [
"Apache-2.0"
] | 1 | 2022-03-05T16:32:04.000Z | 2022-03-05T16:32:04.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2021 Intel Corporation
#ifndef GAPI_STREAMING_ONEVPL_ACCELERATORS_ACCEL_POLICY_DX11_HPP
#define GAPI_STRE... | 36.820225 | 97 | 0.745804 | yash112-lang |
615210354a82c976512009a9ab9422d20e91bc3e | 152 | cpp | C++ | src/common/exceptions/InvalidMetadataException.cpp | smartdu/kafkaclient-cpp | 03d108808a50a13d7a26e63461a1ac27c5bc141c | [
"Apache-2.0"
] | 5 | 2019-04-29T11:09:55.000Z | 2019-11-28T02:53:59.000Z | src/common/exceptions/InvalidMetadataException.cpp | smartdu/kafkaclient-cpp | 03d108808a50a13d7a26e63461a1ac27c5bc141c | [
"Apache-2.0"
] | 2 | 2019-05-10T09:37:49.000Z | 2019-05-14T02:40:16.000Z | src/common/exceptions/InvalidMetadataException.cpp | smartdu/kafkaclient-cpp | 03d108808a50a13d7a26e63461a1ac27c5bc141c | [
"Apache-2.0"
] | 1 | 2019-05-10T10:07:50.000Z | 2019-05-10T10:07:50.000Z | #include "InvalidMetadataException.h"
InvalidMetadataException::InvalidMetadataException(std::string message)
: ApiException(message.c_str())
{
}
| 19 | 71 | 0.789474 | smartdu |
615ac2a3bbcc0a917a702897585534250789801f | 8,977 | cpp | C++ | src/realm/parser/value_expression.cpp | tkaye407/realm-core | 69f34832f77b3817d1f2dacf32e29adb9eb25551 | [
"Apache-2.0"
] | null | null | null | src/realm/parser/value_expression.cpp | tkaye407/realm-core | 69f34832f77b3817d1f2dacf32e29adb9eb25551 | [
"Apache-2.0"
] | null | null | null | src/realm/parser/value_expression.cpp | tkaye407/realm-core | 69f34832f77b3817d1f2dacf32e29adb9eb25551 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/li... | 39.200873 | 114 | 0.645984 | tkaye407 |
616ad13ca8b993eaf1d069fe64c07a70b619faf0 | 1,313 | cpp | C++ | demo/loader_plugin/main.cpp | semenovf/modulus2-lib | 5480ba9e40868b6dfd2d06526a6b970e753ce5d1 | [
"MIT"
] | null | null | null | demo/loader_plugin/main.cpp | semenovf/modulus2-lib | 5480ba9e40868b6dfd2d06526a6b970e753ce5d1 | [
"MIT"
] | null | null | null | demo/loader_plugin/main.cpp | semenovf/modulus2-lib | 5480ba9e40868b6dfd2d06526a6b970e753ce5d1 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2021 Vladislav Trifochkin
//
// This file is part of [modulus2-lib](https://github.com/semenovf/modulus2-lib) library.
//
// Changelog:
// 2021.07.10 Initial version.
//////////////////////////////////////////////////... | 32.02439 | 89 | 0.637471 | semenovf |
616cb6bdc9fb160d1c66210e6623d57d22969819 | 3,127 | cpp | C++ | leetcode/weekly/220.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | 1 | 2020-05-05T13:06:51.000Z | 2020-05-05T13:06:51.000Z | leetcode/weekly/220.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | leetcode/weekly/220.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | /****************************************************
Date: Dec 20th, 2020
Successful submissions : 1
Time expiration : 0
Not Solved : 1
Wrong Answer/ Partial result/solved after looking at solution : 2
link: https://leetcode.com/contest/weekly-contest-220
****************************************************/
#include... | 19.666667 | 110 | 0.389191 | bvbasavaraju |
616ea8cc4c0384934c9657d106f30a3039a661a2 | 1,463 | cpp | C++ | source/ui/scene/tipsScene.cpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | source/ui/scene/tipsScene.cpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | source/ui/scene/tipsScene.cpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | /*
** tips.cpp for bomberman in /home/escoba_j/rendu/bomberman/source/ui
**
** Made by Joffrey Escobar
** Login <escoba_j@epitech.net>
**
** Started on Sat Jun 04 04:08:22 2016 Joffrey Escobar
*/
#include "tipsScene.hpp"
tipsScene::tipsScene(ui& ui) : ASubLayout(ui, "tips") {}
tipsScene::~tipsScene() {}
void tip... | 25.224138 | 116 | 0.676692 | Stephouuu |
616eefeba13f3cc97a18c01c31e2453f9cf71cb2 | 3,281 | cpp | C++ | src/animation/oscillator.cpp | alicemona/Smala | 6f66c3b4bb111993a6bcf148e84c229fb3fa3534 | [
"BSD-2-Clause"
] | null | null | null | src/animation/oscillator.cpp | alicemona/Smala | 6f66c3b4bb111993a6bcf148e84c229fb3fa3534 | [
"BSD-2-Clause"
] | null | null | null | src/animation/oscillator.cpp | alicemona/Smala | 6f66c3b4bb111993a6bcf148e84c229fb3fa3534 | [
"BSD-2-Clause"
] | null | null | null | /*
* djnn v2
*
* The copyright holders for the contents of this file are:
* Ecole Nationale de l'Aviation Civile, France (2018)
* See file "license.terms" for the rights and conditions
* defined by copyright holders.
*
*
* Contributors:
* Mathieu Magnaudet <mathieu.magnaudet@enac.fr>
*
*/
#i... | 31.548077 | 99 | 0.612923 | alicemona |
617003e618c4743a4e001ddc6e84e328ab4a4b9e | 18,713 | cpp | C++ | src/benchmarklib/tpch/tpch_table_generator.cpp | Bensk1/phd_thesis | 195e0fcf2fd32e01845c0b0eea5aa06d3920cad6 | [
"MIT"
] | null | null | null | src/benchmarklib/tpch/tpch_table_generator.cpp | Bensk1/phd_thesis | 195e0fcf2fd32e01845c0b0eea5aa06d3920cad6 | [
"MIT"
] | null | null | null | src/benchmarklib/tpch/tpch_table_generator.cpp | Bensk1/phd_thesis | 195e0fcf2fd32e01845c0b0eea5aa06d3920cad6 | [
"MIT"
] | null | null | null | #include "tpch_table_generator.hpp"
extern "C" {
#include <dss.h>
#include <dsstypes.h>
#include <rnd.h>
}
#include <filesystem>
#include <utility>
#include "benchmark_config.hpp"
#include "storage/chunk.hpp"
#include "storage/table_key_constraint.hpp"
#include "table_builder.hpp"
#include "utils/timer.hpp"
extern ... | 48.859008 | 307 | 0.701918 | Bensk1 |
6170f39d4092047d9f553cf4946446ef2a735ed7 | 3,522 | inl | C++ | TricksterEngine/Include/Noesis/NsCore/HighResTimer.inl | Trickje/Trickster | ab73f15ec1b45676a20793ad6d4e9acfc2ba944e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | TricksterEngine/Include/Noesis/NsCore/HighResTimer.inl | Trickje/Trickster | ab73f15ec1b45676a20793ad6d4e9acfc2ba944e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | TricksterEngine/Include/Noesis/NsCore/HighResTimer.inl | Trickje/Trickster | ab73f15ec1b45676a20793ad6d4e9acfc2ba944e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////
// NoesisGUI - http://www.noesisengine.com
// Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved.
////////////////////////////////////////////////////////////////////////////////////////////////////
#incl... | 27.952381 | 100 | 0.524418 | Trickje |
61759aec253e272bf7546eaaa367da79bfe2f3b9 | 700 | hxx | C++ | src/ObjWriter.hxx | perliedman/osmwave | a0ffa931844702cdc31b83f27d2632651973026a | [
"0BSD"
] | 10 | 2015-12-05T17:27:20.000Z | 2022-03-08T04:45:41.000Z | src/ObjWriter.hxx | perliedman/osmwave | a0ffa931844702cdc31b83f27d2632651973026a | [
"0BSD"
] | 1 | 2020-08-14T10:26:21.000Z | 2020-08-17T10:33:22.000Z | src/ObjWriter.hxx | perliedman/osmwave | a0ffa931844702cdc31b83f27d2632651973026a | [
"0BSD"
] | 2 | 2019-11-08T10:15:22.000Z | 2021-03-23T12:20:49.000Z | #ifndef _OBJEWRITER_HXX_
#define _OBJEWRITER_HXX_
#include <ostream>
using namespace std;
namespace osmwave {
class ObjWriter {
std::ostream& stream;
int vertIndex;
int offset;
public:
ObjWriter(std::ostream& stream);
void comment(const std::string& comment);
... | 20.588235 | 82 | 0.618571 | perliedman |
61763e540a8af27d02cacb1a1a85b0540d924723 | 6,480 | cpp | C++ | src/SpriteEdit/ScriptDlg.cpp | segafan/wme1_jankavan_tlc_edition-repo | 72163931f348d5a2132577930362d297cc375a26 | [
"MIT"
] | 3 | 2021-03-28T00:11:48.000Z | 2022-01-12T13:10:52.000Z | src/SpriteEdit/ScriptDlg.cpp | segafan/wme1_jankavan_tlc_edition-repo | 72163931f348d5a2132577930362d297cc375a26 | [
"MIT"
] | null | null | null | src/SpriteEdit/ScriptDlg.cpp | segafan/wme1_jankavan_tlc_edition-repo | 72163931f348d5a2132577930362d297cc375a26 | [
"MIT"
] | null | null | null | // ScriptDlg.cpp : implementation file
//
#include "stdafx.h"
#include "SpriteEdit.h"
#include "ScriptDlg.h"
#include "../mfc_shared/utils_mfc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////... | 28.173913 | 170 | 0.57284 | segafan |
6176e8b8c894a24b499f0ab54469b0cc11ca0003 | 4,974 | cp | C++ | aa/2000's - DICE/-Dice11/dice/src/DBasic/DxColor_js.cp | jht1900/DICE-AGE | 5ecb810f21b7e1075430f71890fc7bb82ec09caf | [
"MIT"
] | null | null | null | aa/2000's - DICE/-Dice11/dice/src/DBasic/DxColor_js.cp | jht1900/DICE-AGE | 5ecb810f21b7e1075430f71890fc7bb82ec09caf | [
"MIT"
] | null | null | null | aa/2000's - DICE/-Dice11/dice/src/DBasic/DxColor_js.cp | jht1900/DICE-AGE | 5ecb810f21b7e1075430f71890fc7bb82ec09caf | [
"MIT"
] | null | null | null | // --------------------------------------------------------------------------------
//
// Basic Color object.
//
// 2005.03.01 jht Created.
//
// Copyright (c) 2005 John Henry Thompson. All rights reserved.
// --------------------------------------------------------------------------------
#include "DxColor_js.h"
#... | 24.623762 | 83 | 0.462606 | jht1900 |
61773eb84ac00e5e0d6d33d40f9e98443f96b32c | 3,018 | hpp | C++ | dellve_cudnn_benchmark/include/CuDNN/Tensor.hpp | dellve/dellve_cudnn | 61491953f3f3953539e6060ccf18c303e7a3c1fd | [
"MIT"
] | 1 | 2018-01-06T13:45:01.000Z | 2018-01-06T13:45:01.000Z | dellve_cudnn_benchmark/include/CuDNN/Tensor.hpp | dellve/dellve_cudnn | 61491953f3f3953539e6060ccf18c303e7a3c1fd | [
"MIT"
] | null | null | null | dellve_cudnn_benchmark/include/CuDNN/Tensor.hpp | dellve/dellve_cudnn | 61491953f3f3953539e6060ccf18c303e7a3c1fd | [
"MIT"
] | null | null | null | #ifndef PYCUDNN_TENSOR_HPP
#define PYCUDNN_TENSOR_HPP
#include <cudnn.h>
#include <memory>
#include <numeric>
#include <tuple>
#include <vector>
#include "Buffer.hpp"
#include "DataType.hpp"
#include "TensorDescriptor.hpp"
namespace CuDNN {
template <typename T>
class Tensor {
Buffer<T> mBuffer;
CuDNN::Te... | 22.522388 | 79 | 0.589463 | dellve |
617fd6aa80fd22922ac52b0ab117c65c941cd0d5 | 5,590 | cxx | C++ | src/engine/ivp/ivp_controller/ivp_controller_stiff_spring.cxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/engine/ivp/ivp_controller/ivp_controller_stiff_spring.cxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/engine/ivp/ivp_controller/ivp_controller_stiff_spring.cxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | // Copyright (C) Ipion Software GmbH 1999-2000. All rights reserved.
#include <ivp_physics.hxx>
#ifndef WIN32
# pragma implementation "ivp_controller_stiff_spring.hxx"
#endif
#include <ivp_solver_core_reaction.hxx>
#include <ivp_actuator.hxx>
#include <ivp_controller_stiff_spring.hxx>
//////////////////////////... | 29.421053 | 120 | 0.738819 | cstom4994 |
61809b0550beed4af3ca9bb27b3e3508796485a0 | 1,677 | cpp | C++ | src/tpcc/TblDISTRICT_NEXT_O_ID.cpp | bailuding/centiman | 213eab0bd391822cbc9a01644979f8409440c376 | [
"Apache-2.0"
] | 4 | 2016-07-14T18:11:39.000Z | 2021-04-14T01:27:38.000Z | src/tpcc/TblDISTRICT_NEXT_O_ID.cpp | bailuding/centiman | 213eab0bd391822cbc9a01644979f8409440c376 | [
"Apache-2.0"
] | null | null | null | src/tpcc/TblDISTRICT_NEXT_O_ID.cpp | bailuding/centiman | 213eab0bd391822cbc9a01644979f8409440c376 | [
"Apache-2.0"
] | 1 | 2015-11-23T17:23:43.000Z | 2015-11-23T17:23:43.000Z | //
// TblDISTRICT_NEXT_O_ID.cpp
//
// Key and row descriptions for the TPC-C DISTRICT table
//
// Created by Alan Demers on 10/17/12.
// Copyright (c) 2012 ademers. All rights reserved.
//
#include "tpcc/TblDISTRICT_NEXT_O_ID.h"
namespace TPCC {
void TblDISTRICT_NEXT_O_ID::Key::init(uint16_t w_id, uint16_t ... | 27.048387 | 88 | 0.524747 | bailuding |
6180f2c69468d7bdb6505e834b9d51af5344c03e | 8,559 | cpp | C++ | libs/tfest/src/se2_l2.cpp | zarmomin/mrpt | 1baff7cf8ec9fd23e1a72714553bcbd88c201966 | [
"BSD-3-Clause"
] | 1 | 2021-12-10T06:24:08.000Z | 2021-12-10T06:24:08.000Z | libs/tfest/src/se2_l2.cpp | gao-ouyang/mrpt | 4af5fdf7e45b00be4a64c3d4f009acb9ef415ec7 | [
"BSD-3-Clause"
] | null | null | null | libs/tfest/src/se2_l2.cpp | gao-ouyang/mrpt | 4af5fdf7e45b00be4a64c3d4f009acb9ef415ec7 | [
"BSD-3-Clause"
] | 1 | 2019-09-11T02:55:04.000Z | 2019-09-11T02:55:04.000Z | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... | 32.667939 | 80 | 0.586517 | zarmomin |
618288393bd46b4e666f8d6e2979c3bcf2a484d4 | 1,109 | cpp | C++ | plugins/opengl/src/state/ffp/clip_plane/set.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/opengl/src/state/ffp/clip_plane/set.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/opengl/src/state/ffp/clip_plane/set.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/opengl/context/object_fwd.hpp>
#include <sge/opengl/context/use.hpp>
#include <sge/op... | 42.653846 | 82 | 0.728584 | cpreh |
6189909fec5c79c011c6350e8fda3efb2a76adc4 | 1,417 | cpp | C++ | src/arcturus/arcturus_scalar_type.cpp | aamshukov/arcturus | 4d10cd15ff2b79f23621853961a2178c0bde7d79 | [
"MIT"
] | 1 | 2020-12-10T02:33:41.000Z | 2020-12-10T02:33:41.000Z | src/arcturus/arcturus_scalar_type.cpp | aamshukov/arcturus | 4d10cd15ff2b79f23621853961a2178c0bde7d79 | [
"MIT"
] | null | null | null | src/arcturus/arcturus_scalar_type.cpp | aamshukov/arcturus | 4d10cd15ff2b79f23621853961a2178c0bde7d79 | [
"MIT"
] | null | null | null | //..............................
// UI Lab Inc. Arthur Amshukov .
//..............................
#include <core/pch.hpp>
#include <core/visitable.hpp>
#include <core/visitor.hpp>
#include <frontend/type/type.hpp>
#include <frontend/type/type.inl>
#include <arcturus_type.hpp>
#include <arcturus_scalar_type.hpp>
BE... | 23.616667 | 83 | 0.654199 | aamshukov |
618ae3d1bc17883aa16cf9178c8e435bb6645ecb | 2,756 | hpp | C++ | include/OrientedCircle.hpp | t-lou/CommonVisualizer | 38ec6891e1b7f5bd3fde36d2b62d542930a7f2c1 | [
"WTFPL"
] | null | null | null | include/OrientedCircle.hpp | t-lou/CommonVisualizer | 38ec6891e1b7f5bd3fde36d2b62d542930a7f2c1 | [
"WTFPL"
] | null | null | null | include/OrientedCircle.hpp | t-lou/CommonVisualizer | 38ec6891e1b7f5bd3fde36d2b62d542930a7f2c1 | [
"WTFPL"
] | null | null | null | //
// Created by tlou on 01.02.17.
//
#ifndef COMMONVISUALIZER_ORIENTEDCIRCLE_HPP
#define COMMONVISUALIZER_ORIENTEDCIRCLE_HPP
#include "Object.hpp"
namespace loco {
class OrientedCircle : public Object {
protected:
GLuint _buffer_color;
GLuint _buffer_normal;
GLuint _buffer_radius;
public:
OrientedCircle(... | 31.318182 | 76 | 0.707184 | t-lou |
618d26495b350b9723f03d8b1facecd9a6915da8 | 5,541 | cpp | C++ | src/storage/admin/RebuildTagIndexTask.cpp | linkensphere201/nebula-storage-personal | 4d516ad0ec20bf204977204ef4b96611a2efa52b | [
"Apache-2.0"
] | null | null | null | src/storage/admin/RebuildTagIndexTask.cpp | linkensphere201/nebula-storage-personal | 4d516ad0ec20bf204977204ef4b96611a2efa52b | [
"Apache-2.0"
] | null | null | null | src/storage/admin/RebuildTagIndexTask.cpp | linkensphere201/nebula-storage-personal | 4d516ad0ec20bf204977204ef4b96611a2efa52b | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "storage/StorageFlags.h"
#include "storage/admin/RebuildTagIndexTask.h"
#include "utils/IndexKeyUtils.h"
#inclu... | 35.980519 | 92 | 0.525176 | linkensphere201 |
618d624da4cab4280a65ed249de45eb59e580d10 | 2,932 | cpp | C++ | src/Applications/ApplicationAndException/ApplicationAndException.cpp | ericfont/Examples_wxWidgets | 5cd123eff9a5f9971413ec2f8effc15b76622987 | [
"MIT"
] | 70 | 2019-11-18T15:04:23.000Z | 2022-03-28T22:42:16.000Z | src/Applications/ApplicationAndException/ApplicationAndException.cpp | gammasoft71/Examples.wxWidgets | c710f31c29d502fee699f044014a5eae4ce6ef22 | [
"MIT"
] | 10 | 2020-11-18T02:37:11.000Z | 2021-09-16T17:05:29.000Z | src/Applications/ApplicationAndException/ApplicationAndException.cpp | gammasoft71/Examples.wxWidgets | c710f31c29d502fee699f044014a5eae4ce6ef22 | [
"MIT"
] | 10 | 2021-05-14T11:41:42.000Z | 2022-03-20T00:38:17.000Z | #include <stdexcept>
#include <wx/wx.h>
using namespace std;
namespace Examples {
class MainFrame : public wxFrame {
public:
MainFrame() : wxFrame {nullptr, wxID_ANY, "Application and exception example"} {
// uncomment to throw exception
//throw overflow_error("Creation object error");
... | 38.578947 | 306 | 0.673261 | ericfont |
618ef665f38b94777e5ce24d0122b1a2cbf10387 | 2,473 | hpp | C++ | extern/magnetic-force/fmmtl_minimum/fmmtl/dispatch/M2M.hpp | hg2120223/SPlisHSPlasH | b1596c6dfde914533367f7d3124b46997a833af2 | [
"MIT"
] | 52 | 2019-10-06T17:25:39.000Z | 2022-01-20T23:01:13.000Z | extern/magnetic-force/fmmtl_minimum/fmmtl/dispatch/M2M.hpp | hg2120223/SPlisHSPlasH | b1596c6dfde914533367f7d3124b46997a833af2 | [
"MIT"
] | 1 | 2019-10-08T18:44:41.000Z | 2019-10-09T07:48:31.000Z | extern/magnetic-force/fmmtl_minimum/fmmtl/dispatch/M2M.hpp | hg2120223/SPlisHSPlasH | b1596c6dfde914533367f7d3124b46997a833af2 | [
"MIT"
] | 10 | 2019-10-07T16:33:24.000Z | 2020-10-21T01:09:47.000Z | #pragma once
/** @file M2M.hpp
* @brief Dispatch methods for the M2M stage
*
*/
#include "fmmtl/util/Logger.hpp"
#include "fmmtl/meta/kernel_traits.hpp"
/** Default behavior gives a warning -- using non-existent method */
template <bool has_m2m>
struct M2M_Helper {
template <typename... Args>
inline static voi... | 32.116883 | 79 | 0.61949 | hg2120223 |
61954b742888ba947c60b407c88d75d8eac97caa | 940 | cpp | C++ | part-02/1_07_merge-two-sorted-lists_recursive.cpp | abhijeetbodas2001/DSA | ff244dea639a4a5c203e21df3efa47ff079f452a | [
"MIT"
] | null | null | null | part-02/1_07_merge-two-sorted-lists_recursive.cpp | abhijeetbodas2001/DSA | ff244dea639a4a5c203e21df3efa47ff079f452a | [
"MIT"
] | null | null | null | part-02/1_07_merge-two-sorted-lists_recursive.cpp | abhijeetbodas2001/DSA | ff244dea639a4a5c203e21df3efa47ff079f452a | [
"MIT"
] | null | null | null | // Problem: https://leetcode.com/problems/merge-two-sorted-lists/
// O(n) time, O(n) space recursive solution.
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* Lis... | 25.405405 | 77 | 0.510638 | abhijeetbodas2001 |
61964403071704a122a0846bb353ea4c0ab2db9d | 3,649 | cpp | C++ | ReClass/CNodeClass.cpp | changeofpace/ReClassEx | 6a25d2afe599ebfa062c6b79395e08112bf853a5 | [
"MIT"
] | 2 | 2019-09-02T00:49:04.000Z | 2020-05-18T10:35:22.000Z | ReClass/CNodeClass.cpp | changeofpace/ReClassEx | 6a25d2afe599ebfa062c6b79395e08112bf853a5 | [
"MIT"
] | null | null | null | ReClass/CNodeClass.cpp | changeofpace/ReClassEx | 6a25d2afe599ebfa062c6b79395e08112bf853a5 | [
"MIT"
] | 1 | 2020-09-30T18:14:47.000Z | 2020-09-30T18:14:47.000Z | #include "stdafx.h"
#include "CNodeClass.h"
#include "CClassFrame.h"
CNodeClass::CNodeClass( )
{
TCHAR szOffset[128];
m_nodeType = nt_class;
m_Offset = GetBaseAddress( );
#if defined(_M_AMD64)
_ui64tot_s( m_Offset, szOffset, 128, 16 );
#else
_ultot_s( m_Offset, szOffset, 128, 16 );
#e... | 30.157025 | 131 | 0.547273 | changeofpace |
61977d7e83a10c32ad91bd3a49e918220a94bc8b | 28,994 | cpp | C++ | ibpp/array.cpp | cyborgve/FBExport | 595cee439d95b5eebcd8a486d7817db1f6cff4a7 | [
"MIT"
] | 18 | 2015-02-15T17:45:55.000Z | 2022-02-15T05:51:30.000Z | ibpp/array.cpp | cyborgve/FBExport | 595cee439d95b5eebcd8a486d7817db1f6cff4a7 | [
"MIT"
] | 10 | 2015-02-14T12:47:05.000Z | 2020-07-30T14:34:36.000Z | ibpp/array.cpp | cyborgve/FBExport | 595cee439d95b5eebcd8a486d7817db1f6cff4a7 | [
"MIT"
] | 18 | 2015-02-12T16:31:38.000Z | 2021-12-15T18:20:52.000Z | ///////////////////////////////////////////////////////////////////////////////
//
// File : $Id: array.cpp 27 2006-05-20 19:31:15Z mbabuskov $
// Subject : IBPP, Array class implementation
//
///////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright 2000-2006 T.I.P. Group S... | 27.718929 | 93 | 0.604539 | cyborgve |
6199eb83cdc28a718a2a3b1008f94356fb793453 | 5,945 | hpp | C++ | program.hpp | kzoacn/GMW-MPZK | c3a5da9d4d00d38688665ed29a104e5a4bfce91d | [
"MIT"
] | null | null | null | program.hpp | kzoacn/GMW-MPZK | c3a5da9d4d00d38688665ed29a104e5a4bfce91d | [
"MIT"
] | null | null | null | program.hpp | kzoacn/GMW-MPZK | c3a5da9d4d00d38688665ed29a104e5a4bfce91d | [
"MIT"
] | null | null | null | #ifndef PROGRAM_HPP_
#define PROGRAM_HPP_
#include "gmw.hpp"
#include <iostream>
#include <vector>
#include "constant.h"
using namespace std;
//#define HASH
//#define YAO
#define AVG
vector<Bool> adder(vector<Bool> a,vector<Bool> b,MPC *gmw){
vector<Bool>res;
assert(a.size()==b.size());
Bool c;
... | 23.59127 | 281 | 0.615643 | kzoacn |
619a63d9ed8d057366617a17a4051a8a36f3fc4d | 1,989 | hpp | C++ | engine/engine/core/system.hpp | phossc/game-engine | 7695ed2795cfe44aa295da2114dffc49f258af33 | [
"Zlib"
] | 1 | 2019-01-13T14:43:15.000Z | 2019-01-13T14:43:15.000Z | engine/engine/core/system.hpp | phossc/game-engine | 7695ed2795cfe44aa295da2114dffc49f258af33 | [
"Zlib"
] | null | null | null | engine/engine/core/system.hpp | phossc/game-engine | 7695ed2795cfe44aa295da2114dffc49f258af33 | [
"Zlib"
] | 1 | 2019-01-13T14:43:02.000Z | 2019-01-13T14:43:02.000Z | #ifndef ENGINE_CORE_SYSTEM_HPP
#define ENGINE_CORE_SYSTEM_HPP
#include "engine/core/clock.hpp"
#include "engine/core/component_registry.hpp"
#include "engine/core/ecs.hpp"
#include "engine/core/game_loop.hpp"
#include "engine/core/profiler.hpp"
#include "engine/core/system_entity.hpp"
#include "engine/core/update_syst... | 24.555556 | 75 | 0.702866 | phossc |
619aa2778da5f99d3a078a8e1208bdaa9dc77581 | 9,463 | cpp | C++ | src/linux/systemd.cpp | ruhip/mesos1.0.1_20170518 | 7f9eb0f8dfaec1d8aeb3892b2d283bbc5b463f8d | [
"Apache-2.0"
] | 1 | 2016-09-12T05:25:15.000Z | 2016-09-12T05:25:15.000Z | src/linux/systemd.cpp | Acidburn0zzz/mesos | 3562f95d0cd216634b53217710e60c25ff7524d1 | [
"Apache-2.0"
] | null | null | null | src/linux/systemd.cpp | Acidburn0zzz/mesos | 3562f95d0cd216634b53217710e60c25ff7524d1 | [
"Apache-2.0"
] | null | null | null | // 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 may... | 28.417417 | 80 | 0.651273 | ruhip |
619b26a81e4e66123dc3bce0d991f086ea92d39b | 963 | hpp | C++ | include/gridtools/meta/zip.hpp | jdahm/gridtools | 5961932cd2ccf336d3d73b4bc967243828e55cc5 | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/meta/zip.hpp | jdahm/gridtools | 5961932cd2ccf336d3d73b4bc967243828e55cc5 | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/meta/zip.hpp | jdahm/gridtools | 5961932cd2ccf336d3d73b4bc967243828e55cc5 | [
"BSD-3-Clause"
] | null | null | null | /*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include "macros.hpp"
#include "transform.hpp"
namespace gridtools {
/**
* Zip lists
*/
namespa... | 25.342105 | 94 | 0.598131 | jdahm |
61a0b5074b38a4835c9bd26a088a93415edf9283 | 2,699 | hpp | C++ | src/pbkdf2_sha512/pbkdf2.hpp | mediapark-pk/bip39-cxx | 6bc635f58d36dea715a2fbf3b12313eb6db5585e | [
"MIT"
] | 1 | 2021-04-17T11:52:20.000Z | 2021-04-17T11:52:20.000Z | src/pbkdf2_sha512/pbkdf2.hpp | mediapark-pk/bip39-cxx | 6bc635f58d36dea715a2fbf3b12313eb6db5585e | [
"MIT"
] | null | null | null | src/pbkdf2_sha512/pbkdf2.hpp | mediapark-pk/bip39-cxx | 6bc635f58d36dea715a2fbf3b12313eb6db5585e | [
"MIT"
] | 2 | 2020-04-05T16:27:52.000Z | 2021-02-08T16:48:15.000Z | /**
* Copyright (c) 2013-2014 Tomas Dzetkulic
* Copyright (c) 2013-2014 Pavol Rusnak
*
* 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
... | 47.350877 | 127 | 0.791404 | mediapark-pk |
61a261778158cddaee877c235e234e15a277fcba | 117 | hpp | C++ | include/tcrand/string.hpp | afaji/tcrand | fa9c0d7fd8604e906c6e20898b4af7bcd6fcf032 | [
"MIT"
] | 4 | 2017-04-24T18:02:58.000Z | 2020-05-20T01:50:59.000Z | include/tcrand/string.hpp | hockyy/tcrand | fa9c0d7fd8604e906c6e20898b4af7bcd6fcf032 | [
"MIT"
] | null | null | null | include/tcrand/string.hpp | hockyy/tcrand | fa9c0d7fd8604e906c6e20898b4af7bcd6fcf032 | [
"MIT"
] | 2 | 2020-05-20T01:53:29.000Z | 2021-12-05T06:16:40.000Z | #pragma once
#include "utility.hpp"
#include "string/StringRandomizer.hpp"
#include "string/CfgStringRandomizer.hpp" | 23.4 | 41 | 0.803419 | afaji |
61a3c334ef1e2af59463da2cd6a42b2f84be239d | 1,172 | cpp | C++ | TP1-Peggle/Canon.cpp | Novaelum/TP1-Peggle | 7cf374d18848888574909d25e8d1130169770cf9 | [
"MIT"
] | null | null | null | TP1-Peggle/Canon.cpp | Novaelum/TP1-Peggle | 7cf374d18848888574909d25e8d1130169770cf9 | [
"MIT"
] | null | null | null | TP1-Peggle/Canon.cpp | Novaelum/TP1-Peggle | 7cf374d18848888574909d25e8d1130169770cf9 | [
"MIT"
] | null | null | null | #include "Canon.h"
Canon::Canon()
: mSprite(nullptr)
, mBullet(nullptr)
, mAngle(180.f)
, mRotSpeed(70)
{
mSprite = new Sprite(Texture::Canon_ID);
mSprite->SetPivot(D3DXVECTOR3(256 * 0.5f, 256 * 0.5f, 0.f));
mSprite->SetPosition(0, (SCREEN_RES_H * 0.5) - 35);
mSprite->SetRotationDeg(180.f, 0.f, mAngle);
mBulle... | 20.561404 | 160 | 0.630546 | Novaelum |
61a3c45ffd8c8e8344bbaeaebbf5dc16b27974b5 | 726 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/game/EffectObjectProvider_PhysicalRayFan.hpp | flibX0r/RED4ext.SDK | 18d075ef7559e35d8b02dc2e00a03ccc7ff4d77b | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/game/EffectObjectProvider_PhysicalRayFan.hpp | flibX0r/RED4ext.SDK | 18d075ef7559e35d8b02dc2e00a03ccc7ff4d77b | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/game/EffectObjectProvider_PhysicalRayFan.hpp | flibX0r/RED4ext.SDK | 18d075ef7559e35d8b02dc2e00a03ccc7ff4d77b | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/EffectInputParameter_Float.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/EffectObjectProvider_PhysicalRay.hpp>
namespace RED4ext
{
names... | 31.565217 | 88 | 0.809917 | flibX0r |
61a43ccf7b46e5c096eb2c3728b4bd643a6f25fd | 24,716 | cpp | C++ | src/ObservedDataStationHTF.cpp | yoshiya-usui/FEMTIC | 0c529e9cfd4e2acc80412b84c758bd6a70bc03f0 | [
"MIT"
] | 13 | 2021-11-08T16:20:48.000Z | 2021-12-16T12:30:35.000Z | src/ObservedDataStationHTF.cpp | yoshiya-usui/FEMTIC | 0c529e9cfd4e2acc80412b84c758bd6a70bc03f0 | [
"MIT"
] | 3 | 2021-11-11T05:59:01.000Z | 2021-11-11T06:05:05.000Z | src/ObservedDataStationHTF.cpp | yoshiya-usui/FEMTIC | 0c529e9cfd4e2acc80412b84c758bd6a70bc03f0 | [
"MIT"
] | 1 | 2021-11-24T11:30:31.000Z | 2021-11-24T11:30:31.000Z | //-------------------------------------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2021 Yoshiya Usui
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Softwar... | 42.249573 | 267 | 0.726533 | yoshiya-usui |
61a6e839e52f3e15d738b5fe3b3fe94fa9b5086a | 504 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_ClassScope.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_ClassScope.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_ClassScope.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_ClassScope.cpp
//
#include "smtc_ClassScope.h"
#ifndef LZZ_ENABLE_INLINE
#include "smtc_ClassScope.inl"
#endif
// semantic
#include "smtc_ScopeVisitor.h"
#define LZZ_INLINE inline
namespace smtc
{
ClassScope::ClassScope (ClassDefnPtr const & class_defn)
: m_class_defn (class_defn)
{}
}
namespace smtc... | 16.8 | 62 | 0.708333 | SuperDizor |
61aaf6b501286ba7f0addcb9c09dd4703ca86127 | 257 | hpp | C++ | firmware/include/Button.hpp | solderdev/silvia | a1c5f255054849306b8383e0a98fb7322a7b625f | [
"MIT"
] | 1 | 2020-12-03T20:26:48.000Z | 2020-12-03T20:26:48.000Z | firmware/include/Button.hpp | solderdev/silvia | a1c5f255054849306b8383e0a98fb7322a7b625f | [
"MIT"
] | null | null | null | firmware/include/Button.hpp | solderdev/silvia | a1c5f255054849306b8383e0a98fb7322a7b625f | [
"MIT"
] | null | null | null | #pragma once
#include "FreeRTOS.h"
#include "freertos/timers.h"
#include <atomic>
class Button
{
public:
Button(uint8_t pin, uint8_t mode);
bool active();
private:
uint8_t pin_;
std::atomic<uint8_t> debounce_;
TimerHandle_t timer_debounce_;
};
| 14.277778 | 36 | 0.723735 | solderdev |
61adc6f6a30ee3e7d4f49b9191e60fa916839eb3 | 1,369 | cpp | C++ | source/FAST/Examples/DataImport/streamImagesFromDisk.cpp | feifeizuo/FAST | a0d25141e5fdd3eabf69213c3a65ec7c103bf057 | [
"BSD-2-Clause"
] | null | null | null | source/FAST/Examples/DataImport/streamImagesFromDisk.cpp | feifeizuo/FAST | a0d25141e5fdd3eabf69213c3a65ec7c103bf057 | [
"BSD-2-Clause"
] | null | null | null | source/FAST/Examples/DataImport/streamImagesFromDisk.cpp | feifeizuo/FAST | a0d25141e5fdd3eabf69213c3a65ec7c103bf057 | [
"BSD-2-Clause"
] | null | null | null | /**
* @example streamImagesFromDisk.cpp
* An example of streaming and visualizing images from files using the ImageFileStreamer
*/
#include <FAST/Tools/CommandLineParser.hpp>
#include "FAST/Streamers/ImageFileStreamer.hpp"
#include "FAST/Visualization/ImageRenderer/ImageRenderer.hpp"
#include "FAST/Visualization/Sim... | 38.027778 | 113 | 0.728999 | feifeizuo |
61b1ef47c362c88034be5d71533f15a3c0b38429 | 1,519 | hpp | C++ | include/tser/base64_encoding.hpp | KonanM/tser | 9f44236de8fc9e1af5bbea443c8fe8b5a4952ec5 | [
"BSL-1.0"
] | 96 | 2020-01-31T15:25:10.000Z | 2022-03-11T23:32:52.000Z | include/tser/base64_encoding.hpp | KonanM/tser | 9f44236de8fc9e1af5bbea443c8fe8b5a4952ec5 | [
"BSL-1.0"
] | 7 | 2020-02-11T20:32:52.000Z | 2020-11-25T21:38:44.000Z | include/tser/base64_encoding.hpp | KonanM/tser | 9f44236de8fc9e1af5bbea443c8fe8b5a4952ec5 | [
"BSL-1.0"
] | 7 | 2020-10-16T20:30:48.000Z | 2021-08-24T20:16:02.000Z | // Licensed under the Boost License <https://opensource.org/licenses/BSL-1.0>.
// SPDX-License-Identifier: BSL-1.0
#pragma once
#include <array>
#include <string>
#include <string_view>
namespace tser {
//tables for the base64 conversions
static constexpr auto g_encodingTable = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef... | 37.04878 | 217 | 0.552995 | KonanM |
ba06f38fd9badee31c3d09ae6f0ce0996147160c | 19,592 | cpp | C++ | Code/GraphMol/SmilesParse/cxsmiles_test.cpp | ncfirth/rdkit | c3220f30a0369cbb70415a3bf2e4d9aa46f37e96 | [
"PostgreSQL"
] | null | null | null | Code/GraphMol/SmilesParse/cxsmiles_test.cpp | ncfirth/rdkit | c3220f30a0369cbb70415a3bf2e4d9aa46f37e96 | [
"PostgreSQL"
] | null | null | null | Code/GraphMol/SmilesParse/cxsmiles_test.cpp | ncfirth/rdkit | c3220f30a0369cbb70415a3bf2e4d9aa46f37e96 | [
"PostgreSQL"
] | 1 | 2020-09-15T15:48:44.000Z | 2020-09-15T15:48:44.000Z | //
// Copyright (C) 2016 Greg Landrum
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <RDGeneral/test.h>
#include <string>
#inclu... | 35.174147 | 80 | 0.637658 | ncfirth |
ba071ceccbd9d5e4440a698572f51e082874d35c | 2,810 | cpp | C++ | inference-engine/tests/functional/shared_test_classes/src/single_layer/embedding_segments_sum.cpp | slyubimt/openvino | f068a498940d6fa8ac4e831d9dcf2b35a00ed220 | [
"Apache-2.0"
] | null | null | null | inference-engine/tests/functional/shared_test_classes/src/single_layer/embedding_segments_sum.cpp | slyubimt/openvino | f068a498940d6fa8ac4e831d9dcf2b35a00ed220 | [
"Apache-2.0"
] | 34 | 2020-11-19T12:27:40.000Z | 2022-02-21T13:14:04.000Z | inference-engine/tests/functional/shared_test_classes/src/single_layer/embedding_segments_sum.cpp | mznamens/openvino | ec126c6252aa39a6c63ddf124350a92687396771 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "shared_test_classes/single_layer/embedding_segments_sum.hpp"
#include "ngraph_functions/builders.hpp"
namespace LayerTestsDefinitions {
std::string EmbeddingSegmentsSumLayerTest::getTestCaseName(const testing::TestParam... | 48.448276 | 135 | 0.72847 | slyubimt |
ba0d7fb3afe13cf345f694f1cc220836c270eec7 | 4,136 | cpp | C++ | examples/misc/aws_ssh.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | examples/misc/aws_ssh.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | examples/misc/aws_ssh.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | // Copyright (c) 2005-2007 Andre Merzky <andre@merzky.net>
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE file or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <saga/saga.hpp>
void print_io (saga::job::job j)
{
saga::job::istream out = j.get_stdout... | 28.328767 | 108 | 0.547872 | saga-project |
ba0e93af1f07774ff3d0388ab4882a63c236b0db | 1,755 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Remoting/RemotingConfiguration_IsWellKnownClientType2_Client/CPP/remotingconfiguration_iswellknownclienttype2_client.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 3,294 | 2016-10-30T05:27:20.000Z | 2022-03-31T15:59:30.000Z | samples/snippets/cpp/VS_Snippets_Remoting/RemotingConfiguration_IsWellKnownClientType2_Client/CPP/remotingconfiguration_iswellknownclienttype2_client.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 16,739 | 2016-10-28T19:41:29.000Z | 2022-03-31T22:38:48.000Z | samples/snippets/cpp/VS_Snippets_Remoting/RemotingConfiguration_IsWellKnownClientType2_Client/CPP/remotingconfiguration_iswellknownclienttype2_client.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 6,701 | 2016-10-29T20:56:11.000Z | 2022-03-31T12:32:26.000Z |
// System.Runtime.Remoting.RemotingConfiguration.IsWellKnownClientType(String,String)
/*
The following example demonstrates the 'IsWellKnownClientType(String,String)' method
of 'RemotingConfiguration' class. It registers a 'TcpChannel' object with the channel
services. Then registers the 'MyServerImpl' object as well... | 40.813953 | 146 | 0.766952 | BaruaSourav |
ba0ec5a9ebeafb0ccd6dfa61147296983d69dba5 | 4,638 | cpp | C++ | src/mapper/InfoNES_Mapper_191.cpp | jay-kumogata/InfoNES | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | 6 | 2019-05-10T02:09:55.000Z | 2021-09-16T09:10:14.000Z | src/mapper/InfoNES_Mapper_191.cpp | b004004/InfoNES-1 | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | null | null | null | src/mapper/InfoNES_Mapper_191.cpp | b004004/InfoNES-1 | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | 1 | 2019-05-10T16:02:51.000Z | 2019-05-10T16:02:51.000Z | /*===================================================================*/
/* */
/* Mapper 191 : SACHEN Super Cartridge Xin1 (Ver.1-9), Q-BOY Support */
/* */
/*==========================... | 32.661972 | 109 | 0.464424 | jay-kumogata |
ba12d903a36b0b7e02c6e13461f5b717a117119a | 1,370 | cpp | C++ | program/Tree.cpp | wojtkolos/huffman_tree_generator | 1679ead8c2b180024a782b1d027beffac7a95f64 | [
"Apache-2.0"
] | null | null | null | program/Tree.cpp | wojtkolos/huffman_tree_generator | 1679ead8c2b180024a782b1d027beffac7a95f64 | [
"Apache-2.0"
] | null | null | null | program/Tree.cpp | wojtkolos/huffman_tree_generator | 1679ead8c2b180024a782b1d027beffac7a95f64 | [
"Apache-2.0"
] | null | null | null | #include "Tree.h"
bool compare::operator()(MinHeapNode* l, MinHeapNode* r)
{
return (l->getFreq() > r->getFreq());
}
HuffmanTree::HuffmanTree(std::map<char, int> mp) {
for (std::map<char, int>::iterator itr = mp.begin(); itr != mp.end(); ++itr) {
minHeap.push(new MinHeapNode(itr->firs... | 22.833333 | 83 | 0.545255 | wojtkolos |
ba1b18a9a7937ac2beaa20bc3bf95246ec09dda5 | 3,109 | cpp | C++ | LeetCode/Problems/Algorithms/#936_StampingTheSequence_sol3_greedy_enqueue_by_window_O(S^2(T-S))_time_O(S(T-S))_extra_space_116ms_33.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#936_StampingTheSequence_sol3_greedy_enqueue_by_window_O(S^2(T-S))_time_O(S(T-S))_extra_space_116ms_33.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#936_StampingTheSequence_sol3_greedy_enqueue_by_window_O(S^2(T-S))_time_O(S(T-S))_extra_space_116ms_33.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> movesToStamp(string stamp, string target) {
const int STAMP_LENGTH = stamp.length();
const int TARGET_LENGTH = target.length();
vector<int> indices;
vector<bool> done(TARGET_LENGTH, false);
// windowDone[pos]: co... | 43.180556 | 115 | 0.46092 | Tudor67 |
ba20c06288dc8fcfef57bfa935bf3e6df7601200 | 2,865 | hpp | C++ | include/codegen/include/Zenject/MonoPoolableMemoryPool_3.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/MonoPoolableMemoryPool_3.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/MonoPoolableMemoryPool_3.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:44 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: Zenject.MemoryPool`3
#include "Zenject/MemoryPool_3.hpp"
#include "utils/il2cpp-utils.hp... | 40.928571 | 212 | 0.714485 | Futuremappermydud |
ba22cdb5d817cb5dae2f45598ca11daa30d50f6f | 1,552 | hpp | C++ | common/utility/inc/DynamicLibraryLoader.hpp | cbtek/ProjectGen | 6df00b33c82fd72ce2b742ba3a2d5c70fce4d133 | [
"MIT"
] | 1 | 2017-05-25T04:53:08.000Z | 2017-05-25T04:53:08.000Z | common/utility/inc/DynamicLibraryLoader.hpp | cbtek/ProjectGen | 6df00b33c82fd72ce2b742ba3a2d5c70fce4d133 | [
"MIT"
] | null | null | null | common/utility/inc/DynamicLibraryLoader.hpp | cbtek/ProjectGen | 6df00b33c82fd72ce2b742ba3a2d5c70fce4d133 | [
"MIT"
] | null | null | null | /*
DynamicLibraryLoader.hpp
*/
#pragma once
#include <string>
#include <memory>
#include "UtilityCommon.hpp"
#ifdef _WIN32
#include <windows.h>
#else
#include <dlfcn.h>
#endif
BEG_NAMESPACE_CBTEK_UTILITY
class DynamicLibraryLoader
{
public:
/**
* @brief DynamicLibraryLoader
* @param li... | 19.897436 | 85 | 0.560567 | cbtek |
ba244a3effff2d8ef0a57deb40643f11583c2466 | 2,487 | cpp | C++ | Kernel/src/Fs/FsNode.cpp | adi-g15/LemonOS | 47a15ecc0efe47eeebde0b63d668fb70c9e22b57 | [
"BSD-2-Clause"
] | 1 | 2021-08-07T09:58:59.000Z | 2021-08-07T09:58:59.000Z | Kernel/src/Fs/FsNode.cpp | adi-g15/LemonOS | 47a15ecc0efe47eeebde0b63d668fb70c9e22b57 | [
"BSD-2-Clause"
] | null | null | null | Kernel/src/Fs/FsNode.cpp | adi-g15/LemonOS | 47a15ecc0efe47eeebde0b63d668fb70c9e22b57 | [
"BSD-2-Clause"
] | null | null | null | #include <Fs/Filesystem.h>
#include <Errno.h>
#include <Logging.h>
FsNode::~FsNode(){
}
ssize_t FsNode::Read(size_t, size_t, uint8_t *){
Log::Warning("Base FsNode::Read called!");
return -ENOSYS;
}
ssize_t FsNode::Write(size_t, size_t, uint8_t *){
Log::Warning("Base FsNode::Write called!");
ret... | 21.076271 | 100 | 0.650181 | adi-g15 |
ba25e76749aa52d94d68d705f6358b06eb6c0950 | 3,817 | cpp | C++ | test/test_Stl_Pair.cpp | lutaml/rice | f60f0efa5761d1b12fb4a8542c3ef13edbfb51c1 | [
"BSD-2-Clause"
] | 205 | 2015-01-05T04:11:36.000Z | 2022-03-22T19:08:16.000Z | test/test_Stl_Pair.cpp | lutaml/rice | f60f0efa5761d1b12fb4a8542c3ef13edbfb51c1 | [
"BSD-2-Clause"
] | 91 | 2015-01-01T19:06:47.000Z | 2022-03-20T23:12:04.000Z | test/test_Stl_Pair.cpp | lutaml/rice | f60f0efa5761d1b12fb4a8542c3ef13edbfb51c1 | [
"BSD-2-Clause"
] | 32 | 2015-01-17T01:00:51.000Z | 2022-03-18T04:12:59.000Z | #include <utility>
#include "unittest.hpp"
#include "embed_ruby.hpp"
#include <rice/rice.hpp>
#include <rice/stl.hpp>
using namespace Rice;
TESTSUITE(Pair);
SETUP(Pair)
{
embed_ruby();
}
TESTCASE(CreatePair)
{
Module m = define_module("Testing");
Class c = define_pair<std::pair<int32_t, std::optional<std::s... | 26.324138 | 151 | 0.687713 | lutaml |
ba2928e29b52743e670fd4207d405598301dbd2b | 57,690 | cpp | C++ | [Lib]__Engine/Sources/DxEffect/DxShaderDefault.cpp | yexiuph/RanOnline | 7f7be07ef740c8e4cc9c7bef1790b8d099034114 | [
"Apache-2.0"
] | null | null | null | [Lib]__Engine/Sources/DxEffect/DxShaderDefault.cpp | yexiuph/RanOnline | 7f7be07ef740c8e4cc9c7bef1790b8d099034114 | [
"Apache-2.0"
] | null | null | null | [Lib]__Engine/Sources/DxEffect/DxShaderDefault.cpp | yexiuph/RanOnline | 7f7be07ef740c8e4cc9c7bef1790b8d099034114 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
//
#include "./DxSkinMesh9.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
//
//
//DWORD DxSkinMesh::m_dwDefaultVS[4];
//
//// Note : Skin Mesh 1
////
//DWORD DxSkinMesh::dwDefault1AVS[] = {
// 0xfffe0101, 0x0005fffe, 0x454c4946, 0x61666564,
// 0x31746c75, 0x76766e2e, 0x00000000, 0x0002fffe,
// 0x454e49... | 49.991334 | 50 | 0.782753 | yexiuph |
ba2b1211a6773e2be5c7842019d26baf02a95760 | 552 | cpp | C++ | aoj/volume0/n0049/Main.cpp | KoKumagai/exercises | 256b226d3e094f9f67352d75619b392a168eb4d1 | [
"MIT"
] | null | null | null | aoj/volume0/n0049/Main.cpp | KoKumagai/exercises | 256b226d3e094f9f67352d75619b392a168eb4d1 | [
"MIT"
] | null | null | null | aoj/volume0/n0049/Main.cpp | KoKumagai/exercises | 256b226d3e094f9f67352d75619b392a168eb4d1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int id;
char comma;
string bloodType;
int a = 0, b = 0, ab = 0, o = 0;
while (cin >> id >> comma >> bloodType) {
if (bloodType == "A") {
a++;
}
if (bloodType == "B") {
b++;
}
... | 13.8 | 45 | 0.365942 | KoKumagai |
ba2bd7cbf195a63fa4a39e1b6492dcf5480d18fd | 20,405 | cpp | C++ | tests/unit/security/key-chain.t.cpp | gtorresz/ndn-cxx | d2d56ea26b65a08adf0a51986bdb521d919873cd | [
"OpenSSL"
] | null | null | null | tests/unit/security/key-chain.t.cpp | gtorresz/ndn-cxx | d2d56ea26b65a08adf0a51986bdb521d919873cd | [
"OpenSSL"
] | null | null | null | tests/unit/security/key-chain.t.cpp | gtorresz/ndn-cxx | d2d56ea26b65a08adf0a51986bdb521d919873cd | [
"OpenSSL"
] | null | null | null | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2020 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
... | 37.647601 | 123 | 0.743641 | gtorresz |
ba2c0b213f82d8121ed50f3fa37ac2071a1bdf06 | 591 | cc | C++ | Consolidation1/P12943.cc | srmeeseeks/PRO1-jutge-FIB | 3af3d28c77ff14a5dbff20b1b5ddc4178462d8a1 | [
"MIT"
] | null | null | null | Consolidation1/P12943.cc | srmeeseeks/PRO1-jutge-FIB | 3af3d28c77ff14a5dbff20b1b5ddc4178462d8a1 | [
"MIT"
] | null | null | null | Consolidation1/P12943.cc | srmeeseeks/PRO1-jutge-FIB | 3af3d28c77ff14a5dbff20b1b5ddc4178462d8a1 | [
"MIT"
] | null | null | null | //Control C202C
#include <iostream>
using namespace std;
int main () {
int n, a = 0, b = 0, c = 0;
char resposta;
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> resposta;
if (resposta == 'a') ++a;
else if (resposta == 'b') ++b;
else if (resposta == 'c') ++c;
}
... | 25.695652 | 73 | 0.450085 | srmeeseeks |
ba2cd3ccfceeec220d359b86ba9f51960bdda8d4 | 4,901 | cpp | C++ | src/backend/benchmark/ycsb/ycsb_loader.cpp | EccentricLoggers/peloton | ede81a0318e023d8578426a9cffb235b838ea238 | [
"Apache-2.0"
] | null | null | null | src/backend/benchmark/ycsb/ycsb_loader.cpp | EccentricLoggers/peloton | ede81a0318e023d8578426a9cffb235b838ea238 | [
"Apache-2.0"
] | 57 | 2016-03-19T22:27:55.000Z | 2017-07-08T00:41:51.000Z | src/backend/benchmark/ycsb/ycsb_loader.cpp | EccentricLoggers/peloton | ede81a0318e023d8578426a9cffb235b838ea238 | [
"Apache-2.0"
] | 4 | 2016-07-17T20:44:56.000Z | 2018-06-27T01:01:36.000Z | //===----------------------------------------------------------------------===//
//
// PelotonDB
//
// ycsb_loader.cpp
//
// Identification: benchmark/ycsb/ycsb_loader.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===------------------------------------------------... | 31.018987 | 80 | 0.669455 | EccentricLoggers |
ba302321824ab95822d9e61adf4e43f924553776 | 336 | cpp | C++ | chapter-04/exercise_4_31.cpp | aufziehvogel/cpp-primer | 1ae8fdcda8580ea5d646a725fbb76110f138dbc8 | [
"MIT"
] | null | null | null | chapter-04/exercise_4_31.cpp | aufziehvogel/cpp-primer | 1ae8fdcda8580ea5d646a725fbb76110f138dbc8 | [
"MIT"
] | null | null | null | chapter-04/exercise_4_31.cpp | aufziehvogel/cpp-primer | 1ae8fdcda8580ea5d646a725fbb76110f138dbc8 | [
"MIT"
] | null | null | null | #include <vector>
#include <iostream>
int main()
{
std::vector<int> ivec(4, 0);
std::vector<int>::size_type cnt = ivec.size();
for (std::vector<int>::size_type ix = 0; ix != ivec.size(); ix++, cnt--) {
ivec[ix] = cnt;
}
for (int val : ivec) {
std::cout << val << std::endl;
}
... | 17.684211 | 78 | 0.514881 | aufziehvogel |
ba30a8bc29be0b397de192c6ec4914aa7f813ba6 | 340 | hpp | C++ | include/volt/paths.hpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | include/volt/paths.hpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | include/volt/paths.hpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | #pragma once
#include "macros.hpp"
#include <filesystem>
namespace volt::paths {
VOLT_API std::filesystem::path data();
VOLT_API std::filesystem::path documents();
VOLT_API std::filesystem::path pictures();
VOLT_API std::filesystem::path videos();
VOLT_API std::filesystem::path music();
VOLT_API std::filesyste... | 15.454545 | 43 | 0.729412 | voltengine |
ba32219e98ba8b9a4fddd8e2d5c1d41c084d5639 | 43,783 | cpp | C++ | Src/Vessel/DeltaGlider/ThermalSubsys.cpp | jarmonik/orbiter | 527db6209cb0acd4af839682f2d7f05132818fb8 | [
"MIT"
] | 1,040 | 2021-07-27T12:12:06.000Z | 2021-08-02T14:24:49.000Z | Src/Vessel/DeltaGlider/ThermalSubsys.cpp | jarmonik/orbiter | 527db6209cb0acd4af839682f2d7f05132818fb8 | [
"MIT"
] | 20 | 2021-07-27T12:25:22.000Z | 2021-08-02T12:22:19.000Z | Src/Vessel/DeltaGlider/ThermalSubsys.cpp | jarmonik/orbiter | 527db6209cb0acd4af839682f2d7f05132818fb8 | [
"MIT"
] | 71 | 2021-07-27T14:19:49.000Z | 2021-08-02T05:51:52.000Z | // Copyright (c) Martin Schweiger
// Licensed under the MIT License
// ==============================================================
// ORBITER MODULE: DeltaGlider
// Part of the ORBITER SDK
//
// ThermalSubsys.cpp
// Subsystem for coolant loop controls
// =============================... | 35.394503 | 209 | 0.636914 | jarmonik |
ba32f6e80dc3e1502246663944843be0fb49a35c | 6,262 | cpp | C++ | src/test/shamap/SHAMapSync_test.cpp | shichengripple001/rippled | 7c66747d27869f9f3c96617bd4227038f1fa92b8 | [
"ISC"
] | null | null | null | src/test/shamap/SHAMapSync_test.cpp | shichengripple001/rippled | 7c66747d27869f9f3c96617bd4227038f1fa92b8 | [
"ISC"
] | null | null | null | src/test/shamap/SHAMapSync_test.cpp | shichengripple001/rippled | 7c66747d27869f9f3c96617bd4227038f1fa92b8 | [
"ISC"
] | null | null | null | //------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... | 31.94898 | 80 | 0.546471 | shichengripple001 |
ba331e09dc8cc1045763b8515b798a593b076004 | 2,167 | hpp | C++ | include/oglplus/config/enums.hpp | highfidelity/oglplus | c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e | [
"BSL-1.0"
] | 2 | 2017-06-09T00:28:35.000Z | 2017-06-09T00:28:43.000Z | include/oglplus/config/enums.hpp | highfidelity/oglplus | c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e | [
"BSL-1.0"
] | null | null | null | include/oglplus/config/enums.hpp | highfidelity/oglplus | c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e | [
"BSL-1.0"
] | 8 | 2017-01-30T22:06:41.000Z | 2020-01-14T17:24:36.000Z | /**
* @file oglplus/config/enums.hpp
* @brief Enumerations-related compile-time configuration options
*
* @author Matus Chochlik
*
* 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/LIC... | 32.343284 | 81 | 0.787725 | highfidelity |
ba36d05772e33312be78dfef55918290d49b123a | 8,509 | hpp | C++ | DXMPP/Connection.hpp | mstfn/dxmpp | 7788c0f7312047c039c53e226aa8a702eb20357c | [
"BSL-1.0"
] | 17 | 2015-02-09T05:18:11.000Z | 2021-10-10T04:13:11.000Z | DXMPP/Connection.hpp | mstfn/dxmpp | 7788c0f7312047c039c53e226aa8a702eb20357c | [
"BSL-1.0"
] | 4 | 2017-04-07T13:55:10.000Z | 2019-06-10T09:56:47.000Z | DXMPP/Connection.hpp | mstfn/dxmpp | 7788c0f7312047c039c53e226aa8a702eb20357c | [
"BSL-1.0"
] | 24 | 2015-03-20T06:57:27.000Z | 2020-06-18T15:29:22.000Z | //
// Connection.hpp
// DXMPP
//
// Created by Stefan Karlsson on 31/05/14.
// Copyright (c) 2014 Deus ex Machinae. All rights reserved.
//
#ifndef DXMPP_Connection_hpp
#define DXMPP_Connection_hpp
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/thread.hpp>
#include <boost/bind.hpp>
#inclu... | 35.60251 | 116 | 0.594547 | mstfn |
ba3c264ba29160119718f460e6f70054e4f90ed7 | 1,829 | cpp | C++ | codelib/data_structs/test_treap.cpp | TissueRoll/admu-progvar-notebook | efd1c48872d40aeabe2b03af7b986bb831c062b1 | [
"MIT"
] | null | null | null | codelib/data_structs/test_treap.cpp | TissueRoll/admu-progvar-notebook | efd1c48872d40aeabe2b03af7b986bb831c062b1 | [
"MIT"
] | null | null | null | codelib/data_structs/test_treap.cpp | TissueRoll/admu-progvar-notebook | efd1c48872d40aeabe2b03af7b986bb831c062b1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <random>
#include <ctime>
struct cartree {
typedef struct _Node {
long long val;
long long delta;
long long subtree_val;
int prio;
int size;
_Node *l, *r;
_Node(long long val) {
this->val = val;
delta = 0;
subtree_val = val;
prio = std:... | 18.29 | 76 | 0.479497 | TissueRoll |
ba3ef432d7622d5df0eb4c1fd0d0e6ca251386d6 | 9,765 | cpp | C++ | src/Services/OptionsService/OptionsService.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Services/OptionsService/OptionsService.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Services/OptionsService/OptionsService.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | #include "OptionsService.h"
#include "Interface/LoggerServiceInterface.h"
#include "Kernel/Logger.h"
#include "Kernel/Stringalized.h"
#include "Kernel/Assertion.h"
#include "Config/StdString.h"
#include <algorithm>
#include <ctype.h>
//////////////////////////////////////////////////////////////////... | 31 | 110 | 0.376037 | Terryhata6 |
ba3f0958110742fa280279375b1daf74c088e7d4 | 7,556 | cpp | C++ | Benchmarks/PrimeFactors/PrimeFactors.cpp | SuckShit/Theron-6.00.02 | aa66bf77775188cc9fa0d5250d920ac54fb16129 | [
"BSL-1.0"
] | 30 | 2015-04-09T21:35:46.000Z | 2021-07-01T01:21:32.000Z | Benchmarks/PrimeFactors/PrimeFactors.cpp | SuckShit/Theron-6.00.02 | aa66bf77775188cc9fa0d5250d920ac54fb16129 | [
"BSL-1.0"
] | null | null | null | Benchmarks/PrimeFactors/PrimeFactors.cpp | SuckShit/Theron-6.00.02 | aa66bf77775188cc9fa0d5250d920ac54fb16129 | [
"BSL-1.0"
] | 15 | 2015-02-06T21:33:23.000Z | 2020-05-12T06:07:32.000Z | // Copyright (C) by Ashton Mason. See LICENSE.txt for licensing information.
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <queue>
#include <Theron/Theron.h>
#include "../Common/Timer.h"
static const Theron::uint64_t PRIME_FACTOR_1 = 20483ULL;
static const Theron::uint64_t PRIME_FACTOR_2 = 29... | 25.441077 | 115 | 0.602832 | SuckShit |
ba3f698ad6f27f097850087ac473861ac3d20e0f | 606 | cpp | C++ | docs/assets/playground/inline.cpp | gkgoat1/lexy | 9c600fa906e81efbb3e34b8951ebc56809f2a0df | [
"BSL-1.0"
] | 527 | 2020-12-01T14:23:50.000Z | 2022-03-31T11:30:24.000Z | docs/assets/playground/inline.cpp | ExternalRepositories/lexy | edc6bd4aabd6f0ecbddba6f2bbf9bd2c6e4fa61d | [
"BSL-1.0"
] | 44 | 2020-12-01T18:39:38.000Z | 2022-03-08T00:22:39.000Z | docs/assets/playground/inline.cpp | ExternalRepositories/lexy | edc6bd4aabd6f0ecbddba6f2bbf9bd2c6e4fa61d | [
"BSL-1.0"
] | 24 | 2020-12-02T01:45:53.000Z | 2022-03-22T21:31:31.000Z | // INPUT:Hello World!
struct name
{
static constexpr auto rule
// One or more alpha numeric characters, underscores or hyphens.
= dsl::identifier(dsl::ascii::alnum / dsl::lit_c<'_'> / dsl::lit_c<'-'>);
};
struct production
{
// Allow arbitrary spaces between individual tokens.
// Note that ... | 30.3 | 81 | 0.653465 | gkgoat1 |
ba41bb2d22628f6323e4616014f02df010261f3d | 1,065 | cpp | C++ | src/Jeux/Personnages/Assassin.cpp | SacreDeBirmanie/mustached-archer | 8f7d0b3b62a472f300755949599f18f5f7407618 | [
"MIT"
] | null | null | null | src/Jeux/Personnages/Assassin.cpp | SacreDeBirmanie/mustached-archer | 8f7d0b3b62a472f300755949599f18f5f7407618 | [
"MIT"
] | null | null | null | src/Jeux/Personnages/Assassin.cpp | SacreDeBirmanie/mustached-archer | 8f7d0b3b62a472f300755949599f18f5f7407618 | [
"MIT"
] | null | null | null | /*!
* \file Assassin.cpp
* \brief Fichier contenant l'implémentation de la classe Assassin
* \author François Hallereau
* \author Sébastien Vallée
* \date 12.2014
*/
Macchabee* Assassin::macchabee_ = new Macchabee();
//--------------------------------------------------
/*!
* \brief Constructeur de la clas... | 28.026316 | 99 | 0.600939 | SacreDeBirmanie |
ba42a37bb668662a596e67a3d37f03f2181a77ff | 679 | cc | C++ | test/ThreadPoolTest.cc | AYGY/http | 33ff8311c321c5a3e33eb67b6d3908197dcb4629 | [
"MIT"
] | 28 | 2019-12-17T11:04:21.000Z | 2022-01-11T13:56:35.000Z | test/ThreadPoolTest.cc | Gusiil/HttpServer | 5e34984a0c4fbf1dcbb8930e07d520f59b9e5886 | [
"MIT"
] | null | null | null | test/ThreadPoolTest.cc | Gusiil/HttpServer | 5e34984a0c4fbf1dcbb8930e07d520f59b9e5886 | [
"MIT"
] | 7 | 2019-12-17T14:28:35.000Z | 2021-07-24T05:03:25.000Z | #include "ThreadPool.h"
#include "CountDownLatch.h"
void print()
{
printf("%s\n", "Hello,World");
}
void printString(const std::string &str)
{
printf("%s\n", str.c_str());
}
int main()
{
webserver::ThreadPool pool(6, 100);
pool.start();
/* no arguments function*/
pool.addTask(print);
/* function with argu... | 17.410256 | 72 | 0.648012 | AYGY |
ba46a8b697fed207a5a89b0a23eef36f252e1912 | 3,825 | hpp | C++ | third-party/include/tao/json/events/to_value.hpp | ludchieng/IMAC-Lihowar | e5f551ab9958fa7d8fa4cbe07d0aa3555842b4fb | [
"BSL-1.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | third-party/include/tao/json/events/to_value.hpp | ludchieng/IMAC-Lihowar | e5f551ab9958fa7d8fa4cbe07d0aa3555842b4fb | [
"BSL-1.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | third-party/include/tao/json/events/to_value.hpp | ludchieng/IMAC-Lihowar | e5f551ab9958fa7d8fa4cbe07d0aa3555842b4fb | [
"BSL-1.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2021-12-24T08:13:21.000Z | 2021-12-24T08:13:21.000Z | // Copyright (c) 2016-2018 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAO_JSON_EVENTS_TO_VALUE_HPP
#define TAO_JSON_EVENTS_TO_VALUE_HPP
#include <cstddef>
#include <cstdint>
#include <string>
#include <utility>
#include <vector>
#include "../ex... | 25 | 95 | 0.465359 | ludchieng |
ba47eaad36f5302503c98afd9625bb80c72f4296 | 1,275 | hpp | C++ | src/Singleton/GameSync/GameSync.hpp | QLaille/Queenside | 4d9e0f776cd7bb4ecc55686317ebca032032ccba | [
"MIT"
] | null | null | null | src/Singleton/GameSync/GameSync.hpp | QLaille/Queenside | 4d9e0f776cd7bb4ecc55686317ebca032032ccba | [
"MIT"
] | null | null | null | src/Singleton/GameSync/GameSync.hpp | QLaille/Queenside | 4d9e0f776cd7bb4ecc55686317ebca032032ccba | [
"MIT"
] | null | null | null | #ifndef QUEENSIDE_SERVICE_GAMESYNC_HPP
# define QUEENSIDE_SERVICE_GAMESYNC_HPP
#include <unordered_map>
#include <optional>
#include "GameMaster.hpp"
#include "IDGenerator.hpp"
/**
**
** Gamesync class
**
** Used to create and managing gamemasters.
*/
namespace Queenside {
class Gamesync {
public:
static Games... | 31.875 | 102 | 0.731765 | QLaille |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.