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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
76206a073ec7c2e4f83fc17d98c29460852e58fb | 1,046 | hpp | C++ | libs/renderer/include/sge/renderer/index/any/detail/variant_types.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/include/sge/renderer/index/any/detail/variant_types.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/include/sge/renderer/index/any/detail/variant_types.hpp | 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)
#ifndef SGE_RENDERER_INDEX_ANY_DETAIL_VARIANT_TYPES_HPP_INCLUDED
#define SGE_RENDERER_INDEX_ANY_DET... | 32.6875 | 81 | 0.73327 | cpreh |
762a6ad7b01b80af9842b49d0146e94b8cafb44a | 5,598 | cpp | C++ | src/main.cpp | EmilGedda/raytracer | e73f561593c276cca9446c0b3d1712ec404c2861 | [
"BSL-1.0"
] | null | null | null | src/main.cpp | EmilGedda/raytracer | e73f561593c276cca9446c0b3d1712ec404c2861 | [
"BSL-1.0"
] | null | null | null | src/main.cpp | EmilGedda/raytracer | e73f561593c276cca9446c0b3d1712ec404c2861 | [
"BSL-1.0"
] | null | null | null | #include "vector.hpp"
#include <cmath>
#include <algorithm>
#include <chrono>
#include <fstream> // IWYU pragma: keep
#include <iostream>
#include <limits>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
constexpr static auto pi = static_cast<f32>(M_PI);
struct ray {
vector pos;
... | 26.530806 | 80 | 0.544123 | EmilGedda |
762ce95998d7ff8663b0773905083112e87e93b7 | 1,812 | cpp | C++ | tests/Harmony/AddressTests.cpp | EnoRage/wallet-core | 4e1f6f635e234bcda42d678df2dd26d1e3272311 | [
"MIT"
] | 2 | 2020-05-02T10:05:37.000Z | 2020-05-02T10:05:37.000Z | tests/Harmony/AddressTests.cpp | EnoRage/wallet-core | 4e1f6f635e234bcda42d678df2dd26d1e3272311 | [
"MIT"
] | null | null | null | tests/Harmony/AddressTests.cpp | EnoRage/wallet-core | 4e1f6f635e234bcda42d678df2dd26d1e3272311 | [
"MIT"
] | 3 | 2020-02-14T03:25:58.000Z | 2021-07-04T23:20:29.000Z | // Copyright © 2017-2019 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "Harmony/Address.h"
#include "HexCoding.h"
#includ... | 40.266667 | 98 | 0.788631 | EnoRage |
762e46666e34bf53d43957cf83e41944012bb32e | 465 | hxx | C++ | stdxx/json/error.hxx | JeneLitsch/stdxx | c83fedb802baf523b654b5c39ba03d3425902948 | [
"MIT"
] | 1 | 2022-03-08T10:14:38.000Z | 2022-03-08T10:14:38.000Z | stdxx/json/error.hxx | JeneLitsch/stdxx | c83fedb802baf523b654b5c39ba03d3425902948 | [
"MIT"
] | 1 | 2022-03-11T11:43:31.000Z | 2022-03-11T23:18:06.000Z | stdxx/json/error.hxx | JeneLitsch/stdxx | c83fedb802baf523b654b5c39ba03d3425902948 | [
"MIT"
] | null | null | null | #pragma once
#include <stdexcept>
namespace stx::json {
// General json related error
struct error : std::runtime_error {
error(const auto & msg)
: std::runtime_error(msg) {}
};
// Error while parsing file
struct syntax_error : stx::json::error {
syntax_error(const auto & msg)
: error(msg) {}
};
... | 21.136364 | 45 | 0.662366 | JeneLitsch |
763016e7ba2467d8b140075f1ccd15ed72b93990 | 1,534 | cpp | C++ | tests/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s05/CWE122_Heap_Based_Buffer_Overflow__cpp_src_char_cat_83_bad.cpp | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 28 | 2017-01-20T15:25:54.000Z | 2020-03-17T00:28:31.000Z | testcases/CWE122_Heap_Based_Buffer_Overflow/s05/CWE122_Heap_Based_Buffer_Overflow__cpp_src_char_cat_83_bad.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 1 | 2021-07-12T02:57:17.000Z | 2021-07-16T02:07:29.000Z | testcases/CWE122_Heap_Based_Buffer_Overflow/s05/CWE122_Heap_Based_Buffer_Overflow__cpp_src_char_cat_83_bad.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 2 | 2019-07-15T19:07:04.000Z | 2019-09-07T14:21:04.000Z | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_src_char_cat_83_bad.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_src.label.xml
Template File: sources-sink-83_bad.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Initial... | 35.674419 | 136 | 0.733377 | RanerL |
7630fe4412daf20557b3c795899f6cfbff8c4f5e | 2,676 | cpp | C++ | Week-2/Editorials/Contest_1/problem-5/solution2.cpp | tanayduggad0299/CP-Buddy-Series | 29b85801f216e10e1817ce0769dd2d9d98856163 | [
"MIT"
] | 58 | 2020-08-02T16:38:43.000Z | 2021-04-11T15:17:07.000Z | Week-2/Editorials/Contest_1/problem-5/solution2.cpp | tanayduggad0299/CP-Buddy-Series | 29b85801f216e10e1817ce0769dd2d9d98856163 | [
"MIT"
] | 29 | 2020-08-03T08:48:05.000Z | 2020-10-05T08:25:09.000Z | Week-2/Editorials/Contest_1/problem-5/solution2.cpp | tanayduggad0299/CP-Buddy-Series | 29b85801f216e10e1817ce0769dd2d9d98856163 | [
"MIT"
] | 44 | 2020-08-02T16:51:08.000Z | 2021-03-04T13:51:01.000Z | #include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
// Complete the lilysHomework function below.
int lilysHomework(vector<int> arr) {
map<int, int> m1, m2;
for(int i=0;i<arr.size();i++) {
m1[arr[i]] = i;
m2[arr[i]] = i;
}
vector<int> ascend... | 26.49505 | 116 | 0.558296 | tanayduggad0299 |
7640b2e74f1536c18b7fc4eb9ed1db72c0fefc15 | 5,012 | cpp | C++ | cleric/src/controller/boxes_controller.cpp | mpomaran/cleric | 8f486491f5dca8d436ce366260faa1a9545a3177 | [
"MIT"
] | null | null | null | cleric/src/controller/boxes_controller.cpp | mpomaran/cleric | 8f486491f5dca8d436ce366260faa1a9545a3177 | [
"MIT"
] | null | null | null | cleric/src/controller/boxes_controller.cpp | mpomaran/cleric | 8f486491f5dca8d436ce366260faa1a9545a3177 | [
"MIT"
] | null | null | null | /**
MIT License
Copyright (c) 2019 mpomaranski at gmail
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... | 32.335484 | 86 | 0.66241 | mpomaran |
7644da115706f8f87dbec94a1669067cd029e6f9 | 9,687 | cpp | C++ | Samples/Win7Samples/security/authorization/azman/azmigrate/AzApplication.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/security/authorization/azman/azmigrate/AzApplication.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/security/authorization/azman/azmigrate/AzApplication.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | /****************************************************************************
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
//... | 25.90107 | 117 | 0.641788 | windows-development |
76492bc7a37a148e4d6bbc13a39898fd9d3e8612 | 37,134 | cpp | C++ | ofdEditor/ofd/ofd_parser.cpp | mcoder2014/ofdEditor | c241f69447992cacb29d4ddae17fa4d7abd76b21 | [
"MIT"
] | 30 | 2018-09-27T09:26:57.000Z | 2022-03-31T01:45:20.000Z | ofdEditor/ofd/ofd_parser.cpp | mcoder2014/ofdEditor | c241f69447992cacb29d4ddae17fa4d7abd76b21 | [
"MIT"
] | 1 | 2019-09-06T04:54:16.000Z | 2019-09-06T04:54:16.000Z | ofdEditor/ofd/ofd_parser.cpp | mcoder2014/ofdEditor | c241f69447992cacb29d4ddae17fa4d7abd76b21 | [
"MIT"
] | 15 | 2018-04-23T02:49:20.000Z | 2021-09-27T03:06:55.000Z | #include "ofd_parser.h"
#include <QDebug>
#include "DataTypes/document/OFD.h"
#include "DataTypes/document/DocBody.h"
#include "DataTypes/document/CT_DocInfo.h"
#include "DataTypes/document/Document.h"
#include "DataTypes/page/Page.h"
#include "DataTypes/Color/CT_Color.h"
#include "DataTypes/image/CT_GraphicUnit.h"
#in... | 35.982558 | 111 | 0.480934 | mcoder2014 |
764cd7d1aeea3be601b69fc8c55af42e71984f76 | 373 | hpp | C++ | include/munin/detail/json_adaptors.hpp | KazDragon/munin | ca5ae77cf5f75f6604fddd1a39393fa6acb88769 | [
"MIT"
] | 6 | 2017-07-15T10:16:20.000Z | 2021-06-14T10:02:37.000Z | include/munin/detail/json_adaptors.hpp | KazDragon/munin | ca5ae77cf5f75f6604fddd1a39393fa6acb88769 | [
"MIT"
] | 243 | 2017-05-01T19:27:07.000Z | 2021-09-01T09:32:49.000Z | include/munin/detail/json_adaptors.hpp | KazDragon/munin | ca5ae77cf5f75f6604fddd1a39393fa6acb88769 | [
"MIT"
] | 2 | 2019-07-16T00:29:43.000Z | 2020-09-19T09:49:00.000Z | #pragma once
#include <nlohmann/json.hpp>
namespace terminalpp {
struct point;
struct extent;
struct glyph;
struct attribute;
struct element;
}
namespace munin { namespace detail {
nlohmann::json to_json(terminalpp::point const &pt);
nlohmann::json to_json(terminalpp::extent const &ext);
nlohmann... | 19.631579 | 56 | 0.726542 | KazDragon |
76502c42a393d6ddca85a699837e9d586e19ec3a | 2,036 | cpp | C++ | CSES/Graph Algorithms/Monsters.cpp | s166harth/CC | b6c0fe58f03633fe2787a567a16909f1b2966e7b | [
"MIT"
] | 406 | 2020-05-28T13:35:08.000Z | 2022-03-31T17:23:26.000Z | CSES/Graph Algorithms/Monsters.cpp | shakeeb-droids/CC | 2f49fcb52d748804aee9fc7f26abb3150bec69e5 | [
"MIT"
] | 3 | 2021-01-01T17:50:34.000Z | 2021-10-02T10:02:27.000Z | CSES/Graph Algorithms/Monsters.cpp | shakeeb-droids/CC | 2f49fcb52d748804aee9fc7f26abb3150bec69e5 | [
"MIT"
] | 108 | 2020-07-21T13:02:33.000Z | 2022-03-28T22:46:49.000Z | /**
🍪 the_hyp0cr1t3
🍪 17.05.2021 23:22:20
**/
#ifdef W
#include <k_II.h>
#else
#include <bits/stdc++.h>
using namespace std;
#endif
#define pb emplace_back
#define all(x) x.begin(), x.end()
#define sz(x) static_cast<int32_t>(x.size())
const array dx{1, 0, -1, 0};
const array dy{0, 1, 0, -1};
const stri... | 24.829268 | 72 | 0.399312 | s166harth |
76571d9d151a0bfdb508723a9f4ec201460521aa | 2,569 | cpp | C++ | ch11/associativecontainer/test.cpp | Cauahu/My_C- | 54af31686fc6e28b6f35beb92a1e3218cace1743 | [
"CC0-1.0"
] | null | null | null | ch11/associativecontainer/test.cpp | Cauahu/My_C- | 54af31686fc6e28b6f35beb92a1e3218cace1743 | [
"CC0-1.0"
] | null | null | null | ch11/associativecontainer/test.cpp | Cauahu/My_C- | 54af31686fc6e28b6f35beb92a1e3218cace1743 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <set>
#include <map>
#include <vector>
#include <fstream>
#include <memory>
#include <sstream>
#include <iterator>
using namespace std;
using line_no = vector<string>::size_type;//行号类型定义
class QueryResult {
friend ostream & print(ostream &, const QueryResult&);//打印输出结果友元函数
public :
Q... | 24.701923 | 109 | 0.599844 | Cauahu |
7659572e42d257a29b0bfcc056ad3b6249500193 | 941 | cpp | C++ | 60 Must Solve List/Number of Connected Components in Graph.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | 60 Must Solve List/Number of Connected Components in Graph.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | 60 Must Solve List/Number of Connected Components in Graph.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | // Hari
#include <bits/stdc++.h>
using namespace std;
void dfs(vector<int> adj[], int u, bool* vis){
vis[u] = true;
for(auto it: adj[u]){
if(!vis[it]) dfs(adj, it, vis);
}
}
int findConnected(vector<int> adj[], int n){
bool vis[n+1] = {false};
int num_of_components = 0;
for(int i = 1;... | 22.404762 | 154 | 0.53135 | Tiger-Team-01 |
765b85efb973020f8c8889221f953478c3a362a8 | 778 | cpp | C++ | src/states/credits_menu.cpp | zedrex/algosketch | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 16 | 2021-03-27T06:20:42.000Z | 2022-03-31T16:30:37.000Z | src/states/credits_menu.cpp | zedrex/Algo-Plus-Plus | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 1 | 2021-07-13T07:57:41.000Z | 2021-07-13T07:57:41.000Z | src/states/credits_menu.cpp | zedrex/Algo-Plus-Plus | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 3 | 2021-04-03T02:58:56.000Z | 2021-06-04T18:23:49.000Z | #include <states/credits_menu.hpp>
#include <state_elements/button.hpp>
#include <state_elements/panel.hpp>
CreditsMenu::CreditsMenu(StateManager *applicationStateManager) : State(applicationStateManager)
{
stateElementList.push_back(new Panel(this->stateManager, 10, 10, 1180, 50, "Credits", 32, sf::Color(200, 20... | 59.846154 | 289 | 0.754499 | zedrex |
765df620f6579705979521c6c1fce32b0f0123f5 | 15,249 | cpp | C++ | Tools/Tester/CodepointSequenceTester.cpp | radarhere/SheenBidi | e777ffe0b90c056d39b9f3ae9c7e629dc7ebd531 | [
"Apache-2.0"
] | 49 | 2018-12-01T13:39:24.000Z | 2022-03-25T01:34:52.000Z | Tools/Tester/CodepointSequenceTester.cpp | radarhere/SheenBidi | e777ffe0b90c056d39b9f3ae9c7e629dc7ebd531 | [
"Apache-2.0"
] | 13 | 2018-12-01T18:18:03.000Z | 2022-03-19T18:13:40.000Z | Tools/Tester/CodepointSequenceTester.cpp | radarhere/SheenBidi | e777ffe0b90c056d39b9f3ae9c7e629dc7ebd531 | [
"Apache-2.0"
] | 10 | 2020-12-01T17:47:30.000Z | 2022-03-10T15:58:51.000Z | /*
* Copyright (C) 2018 Muhammad Tayyab Akram
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 45.383929 | 118 | 0.610138 | radarhere |
76621e0f4965c28b5bf2a33533a9fcbdbfb96616 | 5,367 | cc | C++ | global/pidfile.cc | liucxer/ceph-msg | 2e5c18c0c72253b283bfd3d0576033c0b515ce55 | [
"Apache-2.0"
] | null | null | null | global/pidfile.cc | liucxer/ceph-msg | 2e5c18c0c72253b283bfd3d0576033c0b515ce55 | [
"Apache-2.0"
] | null | null | null | global/pidfile.cc | liucxer/ceph-msg | 2e5c18c0c72253b283bfd3d0576033c0b515ce55 | [
"Apache-2.0"
] | null | null | null | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... | 21.641129 | 71 | 0.583007 | liucxer |
76634627a2cde128a9912713a31092a8f7e31557 | 2,111 | cpp | C++ | counter/counter.cpp | upcMvc/-BankQueuingSystem | 6eaec760f61430cb3a49692453b444982299e45f | [
"MIT"
] | 2 | 2016-07-20T02:23:51.000Z | 2017-09-02T09:44:52.000Z | counter/counter.cpp | upcMvc/bank-queue-system | 6eaec760f61430cb3a49692453b444982299e45f | [
"MIT"
] | null | null | null | counter/counter.cpp | upcMvc/bank-queue-system | 6eaec760f61430cb3a49692453b444982299e45f | [
"MIT"
] | null | null | null | #include "counter.h"
#include "config.h"
#include "signin.h"
#include "ui_counter.h"
#include "evaluate.h"
#include "close.h"
#include "send.h"
#include <QMessageBox>
#include <QCloseEvent>
#include <QEvent>
#include <QDebug>
#include <QtNetwork>
#include <QBrush>
#include <QPixmap>
#include <QPalette>
Counter::Coun... | 21.11 | 81 | 0.644718 | upcMvc |
76638df01c8118648bff7a6de9760303b10eba59 | 3,396 | cpp | C++ | examples/framework/TrackballCamera.cpp | Arcahub/ige | b9f61209c924c7b683d2429a07e76251e6eb7b1b | [
"MIT"
] | 3 | 2021-06-05T00:36:50.000Z | 2022-02-27T10:23:53.000Z | examples/framework/TrackballCamera.cpp | Arcahub/ige | b9f61209c924c7b683d2429a07e76251e6eb7b1b | [
"MIT"
] | 11 | 2021-05-08T22:00:24.000Z | 2021-11-11T22:33:43.000Z | examples/framework/TrackballCamera.cpp | Arcahub/ige | b9f61209c924c7b683d2429a07e76251e6eb7b1b | [
"MIT"
] | 4 | 2021-05-20T12:41:23.000Z | 2021-11-09T14:19:18.000Z | #include "TrackballCamera.hpp"
#include "ige/plugin/InputPlugin.hpp"
#include "ige/plugin/ScriptPlugin.hpp"
#include "ige/plugin/TransformPlugin.hpp"
#include <cstdlib>
#include <glm/gtc/constants.hpp>
#include <glm/vec3.hpp>
#include <iostream>
using glm::vec3;
using ige::plugin::input::InputManager;
using ige::plugi... | 25.533835 | 77 | 0.59364 | Arcahub |
7667d157dad76a763990dc89b52101ad615c202d | 679 | cpp | C++ | 2 - Variables and assignments/2.4 - Arith expression (int)/activity/leasing_cost.cpp | aTonyXiao/Zybook | 36cd05a436c6ca007cdd14638cf5ee2a7724b889 | [
"MIT"
] | 11 | 2017-11-17T07:31:44.000Z | 2020-12-05T14:46:56.000Z | 2 - Variables and assignments/2.4 - Arith expression (int)/activity/leasing_cost.cpp | aTonyXiao/Zybook | 36cd05a436c6ca007cdd14638cf5ee2a7724b889 | [
"MIT"
] | null | null | null | 2 - Variables and assignments/2.4 - Arith expression (int)/activity/leasing_cost.cpp | aTonyXiao/Zybook | 36cd05a436c6ca007cdd14638cf5ee2a7724b889 | [
"MIT"
] | 1 | 2019-10-15T20:58:51.000Z | 2019-10-15T20:58:51.000Z |
#include <iostream>
using namespace std;
/* Computes the total cost of leasing a car given the down payment,
monthly rate, and number of months
*/
int main() {
int downpayment = 0;
int paymentPerMonth = 0;
int numMonths = 0;
int totalCost = 0; // Computed total cost to be output
c... | 21.903226 | 67 | 0.62592 | aTonyXiao |
766cc2909af771e0813c0ff882d39f5080254438 | 1,859 | hpp | C++ | src/erhe/graphics/state/viewport_state.hpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 36 | 2021-05-03T10:47:49.000Z | 2022-03-19T12:54:03.000Z | src/erhe/graphics/state/viewport_state.hpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 29 | 2020-05-17T08:26:31.000Z | 2022-03-27T08:52:47.000Z | src/erhe/graphics/state/viewport_state.hpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 2 | 2022-01-24T09:24:37.000Z | 2022-01-31T20:45:36.000Z | #pragma once
#include "erhe/gl/strong_gl_enums.hpp"
#include <functional>
namespace erhe::graphics
{
class Viewport_state
{
public:
Viewport_state()
: serial{get_next_serial()}
{
}
Viewport_state(
float x,
float y,
float width,
float height,
float min... | 17.875 | 78 | 0.535234 | tksuoran |
76704ab8d117deb4f47dcee8ef9462b45a8e8f59 | 1,920 | cpp | C++ | src/helpers/json_helper.cpp | nazt/arduino-sdk | 901dc918d6b28be9319b6f7ba16ad0f0d20a8da6 | [
"Apache-2.0"
] | 2 | 2021-12-13T08:04:53.000Z | 2021-12-20T06:12:02.000Z | src/helpers/json_helper.cpp | nazt/arduino-sdk | 901dc918d6b28be9319b6f7ba16ad0f0d20a8da6 | [
"Apache-2.0"
] | 4 | 2021-12-06T09:37:42.000Z | 2022-03-09T14:09:35.000Z | src/helpers/json_helper.cpp | nazt/arduino-sdk | 901dc918d6b28be9319b6f7ba16ad0f0d20a8da6 | [
"Apache-2.0"
] | 2 | 2021-12-14T20:52:02.000Z | 2022-03-27T03:45:58.000Z | #include "helpers/json_helper.h"
using namespace iotex;
using namespace iotex::json;
ResultCode iotex::json::SetValueFromJsonObject(const cJSON* json, reflection::CppType type,
void* pData, size_t max_size)
{
// Validate type and size
switch(type)
{
case reflection::CppType::OBJECT:
if(!cJSON_Is... | 22.068966 | 91 | 0.688021 | nazt |
76722a49016bb21225f9464196d6f98bdd9dd302 | 217 | cpp | C++ | Source/Core/GameSystems/AllBlocksAreLocks.cpp | sorosune/AllBlocksAreLocks | 39f4e29cd1ea24624cb9a93bb4f56e8c39b168f3 | [
"MIT"
] | null | null | null | Source/Core/GameSystems/AllBlocksAreLocks.cpp | sorosune/AllBlocksAreLocks | 39f4e29cd1ea24624cb9a93bb4f56e8c39b168f3 | [
"MIT"
] | null | null | null | Source/Core/GameSystems/AllBlocksAreLocks.cpp | sorosune/AllBlocksAreLocks | 39f4e29cd1ea24624cb9a93bb4f56e8c39b168f3 | [
"MIT"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
#include "AllBlocksAreLocks.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, AllBlocksAreLocks, "AllBlocksAreLocks" );
| 31 | 96 | 0.81106 | sorosune |
7675ccd17fd8279c363db0dfccef94f04e943eae | 2,153 | cpp | C++ | Simple-Demo/myTexture.cpp | ganyc717/Simple-Demo | 3e550af547393c5d53efec545a2c2c86172faaea | [
"MIT"
] | null | null | null | Simple-Demo/myTexture.cpp | ganyc717/Simple-Demo | 3e550af547393c5d53efec545a2c2c86172faaea | [
"MIT"
] | null | null | null | Simple-Demo/myTexture.cpp | ganyc717/Simple-Demo | 3e550af547393c5d53efec545a2c2c86172faaea | [
"MIT"
] | null | null | null | #include"myTexture.h"
#include<iostream>
#define TEXTURE_DIRECTORY ".\\resource\\texture\\"
myTexture::myTexture()
{
handle = 0;
width = 0;
height = 0;
mipLevels = 0;
glGenTextures(1, &handle);
if (handle == 0)
{
std::cout << "failed to create texture" << std::endl;
return;
}
glBindTexture(GL_TEXTURE_2D,... | 25.329412 | 159 | 0.732466 | ganyc717 |
767a762a19589e17106e3d0dd4308a45e1c9e1ef | 256 | hpp | C++ | src/Omega_h_laplace.hpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 44 | 2019-01-23T03:37:18.000Z | 2021-08-24T02:20:29.000Z | src/Omega_h_laplace.hpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 67 | 2019-01-29T15:35:42.000Z | 2021-08-17T20:42:40.000Z | src/Omega_h_laplace.hpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 29 | 2019-01-14T21:33:32.000Z | 2021-08-10T11:35:24.000Z | #ifndef OMEGA_H_LAPLACE_HPP
#define OMEGA_H_LAPLACE_HPP
#include <Omega_h_array.hpp>
namespace Omega_h {
class Mesh;
Reals solve_laplacian(
Mesh* mesh, Reals initial, Int width, Real tol, Real floor = EPSILON);
} // end namespace Omega_h
#endif
| 16 | 74 | 0.753906 | joshia5 |
767ac6d81b1e691ba5b8520a97980f3de4cea6ab | 1,471 | cpp | C++ | process-data/main.cpp | anvaka/citations | 099d565056534ea6de7c89a83abab646da1dc442 | [
"MIT"
] | 45 | 2019-02-01T06:14:09.000Z | 2021-11-24T18:50:02.000Z | process-data/main.cpp | anvaka/citations | 099d565056534ea6de7c89a83abab646da1dc442 | [
"MIT"
] | null | null | null | process-data/main.cpp | anvaka/citations | 099d565056534ea6de7c89a83abab646da1dc442 | [
"MIT"
] | 6 | 2019-02-01T15:58:26.000Z | 2021-07-21T16:57:25.000Z | /**
* count all citations and print them in decreasing order
*/
#include "./json.hpp"
#include <fstream>
#include <iostream>
#include <unordered_map>
#include <string>
#include <vector>
#include <tuple>
#include <algorithm>
using namespace std;
using json = nlohmann::json;
typedef unordered_map <string, int> MapTy... | 22.630769 | 90 | 0.567641 | anvaka |
7687e163d2259a59b01779cb2398eb96891da240 | 2,594 | cpp | C++ | Leetcode Daily Challenge/December-2020/19. Cherry Pickup II.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 5 | 2021-08-10T18:47:49.000Z | 2021-08-21T15:42:58.000Z | Leetcode Daily Challenge/December-2020/19. Cherry Pickup II.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 2 | 2022-02-25T13:36:46.000Z | 2022-02-25T14:06:44.000Z | Leetcode Daily Challenge/December-2020/19. Cherry Pickup II.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 1 | 2022-01-23T22:00:48.000Z | 2022-01-23T22:00:48.000Z | /*
Cherry Pickup II
================
Given a rows x cols matrix grid representing a field of cherries. Each cell in grid represents the number of cherries that you can collect.
You have two robots that can collect cherries for you, Robot #1 is located at the top-left corner (0,0) , and Robot #2 is located at the top-... | 32.425 | 178 | 0.558982 | Akshad7829 |
768e44ca118bbd476b6e84a118cd78a043dbc556 | 5,890 | cpp | C++ | Construction.cpp | allenbrubaker/guided-local-search | 22b882a3677d445393ecd2d33bf5b8f337db2c37 | [
"MIT"
] | 1 | 2017-07-25T19:12:12.000Z | 2017-07-25T19:12:12.000Z | Construction.cpp | allenbrubaker/guided-local-search | 22b882a3677d445393ecd2d33bf5b8f337db2c37 | [
"MIT"
] | null | null | null | Construction.cpp | allenbrubaker/guided-local-search | 22b882a3677d445393ecd2d33bf5b8f337db2c37 | [
"MIT"
] | 2 | 2019-07-28T02:46:25.000Z | 2020-08-05T02:38:53.000Z | #pragma once
#include "Solution.cpp"
#include "Global.cpp"
#include <list>
#include <typeinfo>
class Construction
{
public:
inline virtual Solution* Generate(const Instance&, int coreSize=0) = 0;
inline void UpdateFrom(Solution& s)
{
for (int i = 0; i < s.Size(); i++)
{
UpdateFrom(s, i);
}
};
inline vi... | 24.040816 | 199 | 0.62326 | allenbrubaker |
768fe82908a6259d32d689b3740efe696116e0a0 | 10,458 | cpp | C++ | Nostra Utils/src/source/nostrautils/thread/ThreadManager.cpp | Lehks/NostraUtils | ef1b2d492a1358775752a2a7621c714d86bf96b2 | [
"MIT"
] | 10 | 2018-01-07T01:00:11.000Z | 2021-09-16T14:08:45.000Z | NostraUtils/Nostra Utils/src/source/nostrautils/thread/ThreadManager.cpp | Lehks/NostraEngine | 0d610dcd97ba482fd8f183795140c38728c3a6b3 | [
"MIT"
] | 107 | 2018-04-06T10:15:47.000Z | 2018-09-28T07:13:46.000Z | NostraUtils/Nostra Utils/src/source/nostrautils/thread/ThreadManager.cpp | Lehks/NostraEngine | 0d610dcd97ba482fd8f183795140c38728c3a6b3 | [
"MIT"
] | null | null | null | #include "nostrautils/thread/ThreadManager.hpp"
#include "nostrautils/dat_alg/Vector.hpp"
#include "nostrautils/dat_alg/BinaryHeap.hpp"
#include "nostrautils/dat_alg/ObjectPool.hpp"
#include "nostrautils/core/Assertions.hpp"
#include "nostrautils/dat_alg/HashMap.hpp"
#include <iostream>
namespace NOU::NOU_THREAD
{
c... | 29.294118 | 105 | 0.739625 | Lehks |
7693bd132cba31af2c928a57c6ab28b69c03c096 | 3,659 | cpp | C++ | modules/boost/simd/base/unit/swar/simd/cummax.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/boost/simd/base/unit/swar/simd/cummax.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/base/unit/swar/simd/cummax.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 44.621951 | 108 | 0.666576 | psiha |
76940c0662b89703f052553a0c8af224fbbc576a | 1,816 | cc | C++ | CLARKSCV1.2.6.1/src/dscriptMaker.cc | Intensive-School-Virology-Unipv/metaviromics_data | df56c517b7d08000db0096b823a633450b15c0a1 | [
"MIT"
] | null | null | null | CLARKSCV1.2.6.1/src/dscriptMaker.cc | Intensive-School-Virology-Unipv/metaviromics_data | df56c517b7d08000db0096b823a633450b15c0a1 | [
"MIT"
] | null | null | null | CLARKSCV1.2.6.1/src/dscriptMaker.cc | Intensive-School-Virology-Unipv/metaviromics_data | df56c517b7d08000db0096b823a633450b15c0a1 | [
"MIT"
] | null | null | null | /*
* CLARK, CLAssifier based on Reduced K-mers.
*/
/*
* 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 3 of the License, or
* (at your option) any later versi... | 26.705882 | 82 | 0.615088 | Intensive-School-Virology-Unipv |
76941bbe11ead8b1b7c1c1b0fceab69b31d2250d | 228 | cpp | C++ | src/BApplication.cpp | Aaron-Goldman/creative-engine | c1f0a89cefe77415fc03283277e4472d771b6ebc | [
"MIT"
] | 13 | 2019-06-13T03:30:58.000Z | 2022-01-20T01:20:37.000Z | src/BApplication.cpp | Aaron-Goldman/creative-engine | c1f0a89cefe77415fc03283277e4472d771b6ebc | [
"MIT"
] | 21 | 2019-07-15T14:11:20.000Z | 2020-11-08T18:14:03.000Z | src/BApplication.cpp | Aaron-Goldman/creative-engine | c1f0a89cefe77415fc03283277e4472d771b6ebc | [
"MIT"
] | 12 | 2019-05-29T14:30:38.000Z | 2021-02-03T10:07:41.000Z | #include "Display/Display.h"
#include "BApplication.h"
BApplication::BApplication() {
SeedRandom(time(ENull));
gDisplay.Init();
};
BApplication::~BApplication() {}
static void Exit(TInt aExitCode) {
exit(aExitCode);
}
| 15.2 | 34 | 0.70614 | Aaron-Goldman |
7694c46987e43c02efdd5aae219151fac89aad7c | 1,511 | cpp | C++ | Source/FreeCursor/model/InventoryItem.cpp | jrsanjuan/freecursor-inventory | 8354873745f36d50e23d5f51cec1f0b9c4a5c7bf | [
"MIT"
] | 1 | 2020-11-01T19:24:50.000Z | 2020-11-01T19:24:50.000Z | Source/FreeCursor/model/InventoryItem.cpp | jrsanjuan/freecursor-inventory | 8354873745f36d50e23d5f51cec1f0b9c4a5c7bf | [
"MIT"
] | null | null | null | Source/FreeCursor/model/InventoryItem.cpp | jrsanjuan/freecursor-inventory | 8354873745f36d50e23d5f51cec1f0b9c4a5c7bf | [
"MIT"
] | 1 | 2020-11-01T19:24:41.000Z | 2020-11-01T19:24:41.000Z | #include "InventoryItem.h"
#include "FreeCursor.h"
//**********************************************************************
UInventoryItem::UInventoryItem(const FObjectInitializer& ObjectInitializer)
: UObject(ObjectInitializer) {
}
//**********************************************************************
void UInv... | 28.509434 | 94 | 0.563203 | jrsanjuan |
76968521c776e7e32ccec62faf1755b9ffa1724e | 1,928 | cpp | C++ | Classes/Tools.cpp | w13315071023/MaidVisionCamera_60 | 60dc32d8cddd4be566c8fd2535847a4857d13c5c | [
"MIT"
] | 1 | 2020-04-06T04:36:31.000Z | 2020-04-06T04:36:31.000Z | Classes/Tools.cpp | donginhb/MaidVisionCamera_60 | 60dc32d8cddd4be566c8fd2535847a4857d13c5c | [
"MIT"
] | null | null | null | Classes/Tools.cpp | donginhb/MaidVisionCamera_60 | 60dc32d8cddd4be566c8fd2535847a4857d13c5c | [
"MIT"
] | 1 | 2018-05-18T12:52:44.000Z | 2018-05-18T12:52:44.000Z | #include "Tools.h"
#include "GuangGao.h"
extern int instenceTarget = 140;
extern INT Ext_cameraNum = 0;
extern bool Ext_IsGolfXI = false;
extern bool Ext_IsResetGG = false;
extern bool Ext_IsThreadOn = false;
extern bool Ext_IsTurnEnd = false;
extern bool Ext_IsRecordBegin = false;
extern int Ext_VideoSize = 0;
exter... | 26.777778 | 70 | 0.717842 | w13315071023 |
76990712bf323549e56ac71118a9041421de4516 | 7,720 | hh | C++ | packages/SPn/solvers/MueLuPreconditioner.hh | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | 19 | 2015-06-04T09:02:41.000Z | 2021-04-27T19:32:55.000Z | packages/SPn/solvers/MueLuPreconditioner.hh | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | null | null | null | packages/SPn/solvers/MueLuPreconditioner.hh | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | 5 | 2016-10-05T20:48:28.000Z | 2021-06-21T12:00:54.000Z | //----------------------------------*-C++-*----------------------------------//
/*!
* \file SPn/solvers/MueLuPreconditioner.hh
* \author Thomas M. Evans, Steven Hamilton
* \date Fri Feb 21 13:41:13 2014
* \brief MueLuPreconditioner class definition.
* \note Copyright (C) 2014 Oak Ridge National Laboratory, ... | 28.487085 | 79 | 0.609715 | GCZhang |
7699ba4c830fcb2f2f876101e677523970e8fdda | 2,564 | cpp | C++ | src/buffer/stack_buffer_reserve.cpp | kitsudaiki/libKitsunemimiCommon | 65c60deddf9fb813035fc2f3251c5ae5c8f7423f | [
"MIT"
] | null | null | null | src/buffer/stack_buffer_reserve.cpp | kitsudaiki/libKitsunemimiCommon | 65c60deddf9fb813035fc2f3251c5ae5c8f7423f | [
"MIT"
] | 49 | 2020-08-24T18:09:35.000Z | 2022-02-13T22:19:39.000Z | src/buffer/stack_buffer_reserve.cpp | tobiasanker/libKitsunemimiCommon | d40d1314db0a6d7e04afded09cb4934e01828ac4 | [
"MIT"
] | 1 | 2020-08-29T14:30:41.000Z | 2020-08-29T14:30:41.000Z | #include <libKitsunemimiCommon/buffer/stack_buffer_reserve.h>
namespace Kitsunemimi
{
StackBufferReserve* StackBufferReserve::m_stackBufferReserve = new StackBufferReserve();
/**
* @brief constructor
*
* @param reserveSize maximum number of items in reserver
*/
StackBufferReserve::StackBufferReserve(const uint32... | 20.677419 | 88 | 0.678237 | kitsudaiki |
372259817479bc1155bc23308ae5bd83b4932f9f | 564 | hpp | C++ | include/Ishiko/Process.hpp | IshikoProject/EnvironmentVariables | af5de79d971a8a8e8c31621994f9674ebb2a070f | [
"MIT"
] | null | null | null | include/Ishiko/Process.hpp | IshikoProject/EnvironmentVariables | af5de79d971a8a8e8c31621994f9674ebb2a070f | [
"MIT"
] | null | null | null | include/Ishiko/Process.hpp | IshikoProject/EnvironmentVariables | af5de79d971a8a8e8c31621994f9674ebb2a070f | [
"MIT"
] | null | null | null | /*
Copyright (c) 2015-2022 Xavier Leclercq
Released under the MIT License
See https://github.com/ishiko-cpp/process/blob/main/LICENSE.txt
*/
#ifndef _ISHIKO_CPP_PROCESS_HPP_
#define _ISHIKO_CPP_PROCESS_HPP_
#include "Process/ChildProcess.h"
#include "Process/ChildProcessBuilder.h"
#include "Process/Comman... | 26.857143 | 67 | 0.79078 | IshikoProject |
37231ed644190a3af9181f1781785f4b444980b4 | 1,413 | cpp | C++ | src/MemePhysics/PhysicsState.cpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | src/MemePhysics/PhysicsState.cpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | src/MemePhysics/PhysicsState.cpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | #include <MemePhysics/PhysicsState.hpp>
#include <MemeCore/Debug.hpp>
namespace ml
{
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
PhysicsState::PhysicsState() { dispose(); }
PhysicsState::~PhysicsState() { dispose(); }
/* * * * * * * * * * * * * * * * * * * * * * * * * ... | 19.094595 | 86 | 0.496108 | Gurman8r |
37236d537d9d23ea4ac20a525286408b279e71c7 | 1,230 | cpp | C++ | practica18_aula25/wateringGrass.cpp | ImaMos01/ProgCom2021A | ae1cf91be54fe2f565a5b496575855100e8c5bf3 | [
"BSD-3-Clause"
] | null | null | null | practica18_aula25/wateringGrass.cpp | ImaMos01/ProgCom2021A | ae1cf91be54fe2f565a5b496575855100e8c5bf3 | [
"BSD-3-Clause"
] | null | null | null | practica18_aula25/wateringGrass.cpp | ImaMos01/ProgCom2021A | ae1cf91be54fe2f565a5b496575855100e8c5bf3 | [
"BSD-3-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int n=0;
double l,w;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
while(cin>>n>>l>>w){
int r=0,x=0,m=0;
vector<pair<double,double>> sprink;
for(int i=0; i<n;i++){
cin>>x>>r;
... | 20.847458 | 60 | 0.341463 | ImaMos01 |
372aa5f2a3985617658c076cbbee8ed8d1583434 | 1,738 | cc | C++ | src/q_301_350/q0303.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | null | null | null | src/q_301_350/q0303.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 2 | 2021-12-15T10:51:15.000Z | 2022-01-26T17:03:16.000Z | src/q_301_350/q0303.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <iostream>
#include <vector>
using namespace std;
/**
* This file is generated by leetcode_add.py
*
* 303.
* Range Sum Query - Immutable
*
* ––––––––––––––––––––––––––––– Description –––––––––––––––––––––––––––––
*
* Given an integer array ‘nums’ , handle multiple quer... | 27.587302 | 74 | 0.551784 | vNaonLu |
372ade4c80aa53cc3d04c12569428e8abbc65cd7 | 2,519 | cpp | C++ | wapper/LevelDB.DB.cpp | peters/LevelDB.Net | 0f58e0f276caa6e2a714d54f0265ed4205a6eb44 | [
"BSD-3-Clause"
] | 1 | 2020-04-25T13:18:56.000Z | 2020-04-25T13:18:56.000Z | wapper/LevelDB.DB.cpp | peters/LevelDB.Net | 0f58e0f276caa6e2a714d54f0265ed4205a6eb44 | [
"BSD-3-Clause"
] | null | null | null | wapper/LevelDB.DB.cpp | peters/LevelDB.Net | 0f58e0f276caa6e2a714d54f0265ed4205a6eb44 | [
"BSD-3-Clause"
] | 2 | 2016-04-13T11:48:32.000Z | 2018-12-29T01:49:54.000Z | #include "LevelDB.DB.h"
#include "LevelDB.LevelDBException.h"
#include <msclr/marshal_cppstd.h>
using namespace LevelDB;
using namespace System;
using namespace msclr::interop;
DB::DB(leveldb::DB* db_inner)
:db_inner(db_inner)
{
}
DB::~DB(void)
{
this->!DB();
}
DB::!DB(void)
{
if (db_inner !=... | 24.940594 | 111 | 0.676459 | peters |
372b2ffabbdf9c1dda77c8740dae58cdefed3dd9 | 8,573 | cpp | C++ | libskiwi/syscalls.cpp | janm31415/skiwi | 851a006c2964d527cc38b7a71f3e835b8dab52b5 | [
"MIT"
] | 4 | 2020-10-06T14:09:13.000Z | 2020-10-24T17:34:53.000Z | libskiwi/syscalls.cpp | janm31415/skiwi | 851a006c2964d527cc38b7a71f3e835b8dab52b5 | [
"MIT"
] | null | null | null | libskiwi/syscalls.cpp | janm31415/skiwi | 851a006c2964d527cc38b7a71f3e835b8dab52b5 | [
"MIT"
] | null | null | null | #include "syscalls.h"
#include <stdint.h>
#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif
#include <fcntl.h>
#include <fstream>
#include <chrono>
#include "file_utils.h"
#include "c_prim_decl.h"
SKIWI_BEGIN
int _skiwi_close(int const fd)
{
if (fd < 0)
return 0;
#ifdef _WIN32
return _close(fd... | 28.108197 | 144 | 0.727633 | janm31415 |
372c9548d63be7c7cab76032a5948653a6f8e556 | 2,993 | cpp | C++ | src/components/cameraControllerFirstPerson.cpp | TheSpyGeek/VoxelEngine | ef86291c4de5b040bad653adc08c81ba00c9288f | [
"MIT"
] | 9 | 2020-02-06T04:11:28.000Z | 2021-12-19T16:06:41.000Z | src/components/cameraControllerFirstPerson.cpp | TheSpyGeek/VoxelEngine | ef86291c4de5b040bad653adc08c81ba00c9288f | [
"MIT"
] | 5 | 2019-12-06T11:43:42.000Z | 2020-01-18T11:19:39.000Z | src/components/cameraControllerFirstPerson.cpp | TheSpyGeek/VoxelEngine | ef86291c4de5b040bad653adc08c81ba00c9288f | [
"MIT"
] | null | null | null | #include <imgui.h>
#include "cameraControllerFirstPerson.h"
#include "../engineClass/gameObject.h"
CameraControllerFirstPerson::CameraControllerFirstPerson() : m_sensitivityRotateWorld(glm::vec2(0.5f)), m_scrollZoomSensitivity(1.f), m_stafeSensitivity(0.1f) {
setName("Camera Controller");
}
CameraControllerF... | 32.182796 | 160 | 0.622118 | TheSpyGeek |
372fda4388a264768ffa113de20a4f8d62195e7e | 39,442 | cpp | C++ | synth/kick_wav.cpp | biocommando/avaruusseikkailu | a7df86df910618d7280eabe7c1b4b4ff3522c114 | [
"MIT"
] | null | null | null | synth/kick_wav.cpp | biocommando/avaruusseikkailu | a7df86df910618d7280eabe7c1b4b4ff3522c114 | [
"MIT"
] | null | null | null | synth/kick_wav.cpp | biocommando/avaruusseikkailu | a7df86df910618d7280eabe7c1b4b4ff3522c114 | [
"MIT"
] | null | null | null | #include "kick_wav.h"
static float kick_wav[4537] = {
-0.0079, 0, -0.0079, -0.0236, -0.0236, -0.0236, -0.0236,
-0.0236, -0.0236, -0.0236, -0.0236, -0.0157, -0.0157, -0.0157, -0.0079,
-0.0079, -0.0079, -0.0079, -0.0079, 0, -0.0079, 0, -0.0236,
-0.0945, -0.1339, -0.1969, -0.189, -0.1811, -0.1811, -0.1811, -0.1969,
-... | 68.357019 | 72 | 0.561888 | biocommando |
37309b46bf4c371b78010c84de29845ab9996270 | 5,322 | cpp | C++ | source/MaterialXCore/Material.cpp | willmuto-lucasfilm/MaterialX | 589dbcb5ef292b5e5b64f30aa3fea442a8498ef6 | [
"BSD-3-Clause"
] | 1 | 2021-04-10T16:07:17.000Z | 2021-04-10T16:07:17.000Z | source/MaterialXCore/Material.cpp | willmuto-lucasfilm/MaterialX | 589dbcb5ef292b5e5b64f30aa3fea442a8498ef6 | [
"BSD-3-Clause"
] | null | null | null | source/MaterialXCore/Material.cpp | willmuto-lucasfilm/MaterialX | 589dbcb5ef292b5e5b64f30aa3fea442a8498ef6 | [
"BSD-3-Clause"
] | 1 | 2021-10-19T01:17:12.000Z | 2021-10-19T01:17:12.000Z | //
// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
// All rights reserved. See LICENSE.txt for license.
//
#include <MaterialXCore/Material.h>
namespace MaterialX
{
std::unordered_set<NodePtr> getShaderNodes(NodePtr materialNode, const string& nodeType, const string& target)
{
ElementPt... | 36.204082 | 139 | 0.470688 | willmuto-lucasfilm |
3735b479659021bb2f8dd771d5f653bce23c3bd7 | 1,874 | cpp | C++ | 3rdparty/FlyCube/src/Core/Pipeline/DXComputePipeline.cpp | CU-Production/FlyCube-Demos | 2763720818499bc9244eb4b16e60e647a5c88827 | [
"MIT"
] | 8 | 2021-03-17T19:25:12.000Z | 2022-02-05T02:08:21.000Z | 3rdparty/FlyCube/src/Core/Pipeline/DXComputePipeline.cpp | THISISAGOODNAME/SSSR | ea4b6350b2da3d5656c7aa8c87f9965144369d22 | [
"MIT"
] | null | null | null | 3rdparty/FlyCube/src/Core/Pipeline/DXComputePipeline.cpp | THISISAGOODNAME/SSSR | ea4b6350b2da3d5656c7aa8c87f9965144369d22 | [
"MIT"
] | 2 | 2021-09-22T14:39:51.000Z | 2021-11-08T09:47:38.000Z | #include "Pipeline/DXComputePipeline.h"
#include "Pipeline/DXStateBuilder.h"
#include <Device/DXDevice.h>
#include <Program/DXProgram.h>
#include <Shader/Shader.h>
#include <BindingSetLayout/DXBindingSetLayout.h>
#include <View/DXView.h>
#include <Utilities/DXGIFormatHelper.h>
#include <directx/d3dx12.h>
DXComputePipe... | 30.721311 | 118 | 0.73159 | CU-Production |
373949da03caa1c7127c25722e5eb3fcc33ff4cc | 3,062 | cpp | C++ | src/CombFilterExec/ProcessAudio.cpp | avroshk/CombFilter | 49529c490e4c3720887b7a697b6d0cfbdade90ec | [
"MIT"
] | 1 | 2022-03-22T02:42:24.000Z | 2022-03-22T02:42:24.000Z | src/CombFilterExec/ProcessAudio.cpp | avroshk/CombFilter | 49529c490e4c3720887b7a697b6d0cfbdade90ec | [
"MIT"
] | 3 | 2016-01-24T08:45:01.000Z | 2016-01-27T16:14:13.000Z | src/CombFilterExec/ProcessAudio.cpp | avroshk/CombFilter | 49529c490e4c3720887b7a697b6d0cfbdade90ec | [
"MIT"
] | 1 | 2020-02-12T19:15:17.000Z | 2020-02-12T19:15:17.000Z | //
// ProcessAudio.cpp
// CombFilter
//
// Created by Avrosh Kumar on 1/23/16.
//
//
#include <math.h>
#include <iostream>
#include "ProcessAudio.h"
/* The constructor method for ProcessAudio */
ProcessAudio::ProcessAudio(int sampleRate, int blockSize) {
//set block size, sample rate and stuff
this->iBlo... | 30.62 | 130 | 0.61855 | avroshk |
373a7a2488d74a8eae3449f425cd1ea73d8642ec | 3,183 | cpp | C++ | Common/albaWizardBlockVMESelection.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | Common/albaWizardBlockVMESelection.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Common/albaWizardBlockVMESelection.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaWizardSelectionBlock
Authors: Gianluigi Crimi
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; withou... | 32.479592 | 96 | 0.458687 | IOR-BIC |
373c99613002032e59707405e372924d3473e5f9 | 321 | cpp | C++ | engine/src/Kiss/sound/sound.cpp | Paolo-Oliverio/Kiss | f13deba7bf799cdc836b2022d74e316f4b337f22 | [
"MIT"
] | 1 | 2020-11-11T15:11:40.000Z | 2020-11-11T15:11:40.000Z | engine/src/Kiss/sound/sound.cpp | Paolo-Oliverio/Kiss | f13deba7bf799cdc836b2022d74e316f4b337f22 | [
"MIT"
] | null | null | null | engine/src/Kiss/sound/sound.cpp | Paolo-Oliverio/Kiss | f13deba7bf799cdc836b2022d74e316f4b337f22 | [
"MIT"
] | null | null | null | #ifdef KISS_SOLOUD
#include <Kiss/pch.h>
#include "sound.h"
#include <soloud.h>
namespace kiss
{
namespace sound
{
SoLoud::Soloud manager;
void init()
{
//TODO in html5 setup input to unlock sound first.
manager.init(1, 0, 0, 2048, 2);
}
void release()
{
manager.deinit();
}
}
}
#endif... | 13.375 | 53 | 0.619938 | Paolo-Oliverio |
373ecce0d0bfcca3ed37c0e646a5090a241bfd69 | 8,966 | cxx | C++ | src/ADBSCEditDLL/src/WinClass/EditBox/EditBox.Navigate.cxx | ClnViewer/ADB-Android-Viewer | c619fe626ab390b656893974700a0b6379159c03 | [
"MIT"
] | 9 | 2019-05-20T12:06:36.000Z | 2022-03-24T19:11:06.000Z | src/ADBSCEditDLL/src/WinClass/EditBox/EditBox.Navigate.cxx | ClnViewer/ADB-Android-Viewer | c619fe626ab390b656893974700a0b6379159c03 | [
"MIT"
] | null | null | null | src/ADBSCEditDLL/src/WinClass/EditBox/EditBox.Navigate.cxx | ClnViewer/ADB-Android-Viewer | c619fe626ab390b656893974700a0b6379159c03 | [
"MIT"
] | 3 | 2020-07-06T04:51:33.000Z | 2021-07-26T20:08:02.000Z |
///
/// class:
/// showhelp(),
/// setdebugline(),
/// findtext(),
/// navigate()
void EditBox::showhelp()
{
try
{
setannotation(g_scedit_help, 0);
}
catch (...) { GameDev::ExceptionPrn::parse(std::current_exception(), g_sce... | 30.810997 | 118 | 0.452153 | ClnViewer |
373f83cc5f489b632010dd831775d921f5b2dd5c | 457 | cpp | C++ | source/containers/range_view.cpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 44 | 2020-10-03T21:37:52.000Z | 2022-03-26T10:08:46.000Z | source/containers/range_view.cpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 1 | 2021-01-01T23:22:39.000Z | 2021-01-01T23:22:39.000Z | source/containers/range_view.cpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | null | null | null | // Copyright David Stone 2018.
// 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 <containers/range_view.hpp>
#include <containers/array/array.hpp>
#include <containers/algorithms/compare.hpp>
namespace ... | 28.5625 | 63 | 0.743982 | davidstone |
3755f8d20a69c579071f9af791d989207e6339e3 | 7,808 | cpp | C++ | dllmain.cpp | xan1242/xnfs-getrpm | ec85a82dce5396e1864c371a2d709b2e7037be28 | [
"MIT"
] | null | null | null | dllmain.cpp | xan1242/xnfs-getrpm | ec85a82dce5396e1864c371a2d709b2e7037be28 | [
"MIT"
] | null | null | null | dllmain.cpp | xan1242/xnfs-getrpm | ec85a82dce5396e1864c371a2d709b2e7037be28 | [
"MIT"
] | null | null | null | // GetRPM. (GUI Edition) (Carbon)
// Currently using the IUP library.
// Sorry for clutter!
// This could be done without the (huge) FreeType library, however it is necessary for IupGauge to function.
// IupProgressBar works too. (without the bar colors)
#include "stdafx.h"
#include "stdio.h"
#include <windo... | 33.367521 | 190 | 0.659196 | xan1242 |
3764e49f31d93a48c144feb9ece9d158b9862375 | 14,080 | cpp | C++ | src/main/cpp/subsystems/C418/DriveTrainSubsystemC418.cpp | 1828Boxerbots/AllRobotsInOneCode | 95814c320517ff3cc53cade380c25bca4a3b1914 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/subsystems/C418/DriveTrainSubsystemC418.cpp | 1828Boxerbots/AllRobotsInOneCode | 95814c320517ff3cc53cade380c25bca4a3b1914 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/subsystems/C418/DriveTrainSubsystemC418.cpp | 1828Boxerbots/AllRobotsInOneCode | 95814c320517ff3cc53cade380c25bca4a3b1914 | [
"BSD-3-Clause"
] | null | null | null | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 25.053381 | 180 | 0.702202 | 1828Boxerbots |
3767611e071494b5c7da9fe4ab995795f6f92128 | 2,093 | hpp | C++ | src/Particles/Grid.hpp | Mischa-Alff/parsim | 082109b32d4cce5212efb8b25bb092be66952e35 | [
"MIT"
] | null | null | null | src/Particles/Grid.hpp | Mischa-Alff/parsim | 082109b32d4cce5212efb8b25bb092be66952e35 | [
"MIT"
] | null | null | null | src/Particles/Grid.hpp | Mischa-Alff/parsim | 082109b32d4cce5212efb8b25bb092be66952e35 | [
"MIT"
] | null | null | null | #pragma once
#include <array>
#include <glm/vec2.hpp>
struct CellIndex {
int16_t x;
int16_t y;
};
inline bool operator==(const CellIndex &a, const CellIndex &b) {return a.x==b.x && a.y==b.y;}
template<unsigned int MaxMembers>
struct GridCell {
std::array<uint32_t, MaxMembers> members;
};
// Supports NumCells up ... | 27.181818 | 190 | 0.701386 | Mischa-Alff |
376936047b8ce37ea8b0453accbb2d5ee3bad11b | 201 | cpp | C++ | contest/AtCoder/abc149/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/AtCoder/abc149/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/AtCoder/abc149/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "template.hpp"
int main() {
int64_t a(in), b(in), k(in);
if (a >= k) {
cout << a - k << " " << b << endl;
} else {
cout << 0 << " " << max(b - k + a, int64_t(0)) << endl;
}
}
| 18.272727 | 59 | 0.412935 | not522 |
376b6e53b57d159b3b50713404314f2cb88c76ce | 820 | cpp | C++ | Engine/src/ECS/Component/CameraComponent/MainCameraComponent.cpp | jaafersheriff/Neo-Engine | 526e83829761322ccf09e661efa825b028426fa5 | [
"MIT"
] | 6 | 2017-10-17T17:54:42.000Z | 2022-02-13T09:43:02.000Z | Engine/src/ECS/Component/CameraComponent/MainCameraComponent.cpp | jaafersheriff/Neo-Engine | 526e83829761322ccf09e661efa825b028426fa5 | [
"MIT"
] | 1 | 2020-04-11T10:37:41.000Z | 2021-11-15T21:03:32.000Z | Engine/src/ECS/Component/CameraComponent/MainCameraComponent.cpp | jaafersheriff/Neo-Engine | 526e83829761322ccf09e661efa825b028426fa5 | [
"MIT"
] | 4 | 2017-09-08T05:56:51.000Z | 2021-02-03T15:16:41.000Z | #include "MainCameraComponent.hpp"
#include <Engine.hpp>
#include "PerspectiveCameraComponent.hpp"
#include "ECS/GameObject.hpp"
#include "glm/gtc/matrix_transform.hpp"
namespace neo {
MainCameraComponent::MainCameraComponent(GameObject *gameObject) :
Component(gameObject) {
Messenger::addRe... | 37.272727 | 139 | 0.67439 | jaafersheriff |
376cd0d3048caee0b7c76c9d058f2636fffff558 | 2,279 | cc | C++ | cromwell/se_select.cc | sckicker/Fontainebleau | f45f660bc2a1c70b98c7fa971cb9c5eb915e539d | [
"Apache-2.0"
] | 1 | 2018-03-08T07:08:33.000Z | 2018-03-08T07:08:33.000Z | cromwell/se_select.cc | sckicker/Fontainebleau | f45f660bc2a1c70b98c7fa971cb9c5eb915e539d | [
"Apache-2.0"
] | null | null | null | cromwell/se_select.cc | sckicker/Fontainebleau | f45f660bc2a1c70b98c7fa971cb9c5eb915e539d | [
"Apache-2.0"
] | null | null | null | #include <string.h>
namespace cromwell {
typedef struct ApiState {
fd_set rfds, wfds;
/* We need to have a copy of the fd sets as it's not safe to reuse
* FD sets after select(). */
fd_set _rfds, _wfds;
} ApiState;
static int api_create(SeEventLoop* event_loop) {
ApiState *state = malloc(sizeof(Api... | 28.848101 | 86 | 0.62308 | sckicker |
37724df18dee1d8fe8a43439560e362d396e35f8 | 938 | hpp | C++ | include/X-GS/Entity.hpp | iPruch/X-GS | ac43b91735a048216f60c49a9b43d6edd6d5e35e | [
"Zlib"
] | 1 | 2015-01-04T22:17:25.000Z | 2015-01-04T22:17:25.000Z | include/X-GS/Entity.hpp | iPruch/X-GS | ac43b91735a048216f60c49a9b43d6edd6d5e35e | [
"Zlib"
] | null | null | null | include/X-GS/Entity.hpp | iPruch/X-GS | ac43b91735a048216f60c49a9b43d6edd6d5e35e | [
"Zlib"
] | null | null | null | // Modified version of SceneNode.hpp from SFML-Game-Development-Book
#ifndef XGS_ENTITY_HPP
#define XGS_ENTITY_HPP
#include <X-GS/SceneGraphNode.hpp>
#include <SFML/Window/Event.hpp>
#include <SFML/Graphics/RenderTarget.hpp> // Completes the RenderTarget forward declaration in Drawable, inherited from Entity <- Scen... | 26.055556 | 144 | 0.724947 | iPruch |
377c17e7ec7be26fa0f67942a9d8bdbfa74171fe | 4,668 | cpp | C++ | source/modules/distribution/multivariate/normal/normal.cpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 43 | 2018-07-26T07:20:42.000Z | 2022-03-02T10:23:12.000Z | source/modules/distribution/multivariate/normal/normal.cpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 212 | 2018-09-21T10:44:07.000Z | 2022-03-22T14:33:05.000Z | source/modules/distribution/multivariate/normal/normal.cpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 16 | 2018-07-25T15:00:36.000Z | 2022-03-22T14:19:46.000Z | #include "modules/distribution/multivariate/normal/normal.hpp"
#include "modules/experiment/experiment.hpp"
#include <auxiliar/logger.hpp>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_vector.h>
namespace korali
{
namespace distribution
{
namespace multivariate
{
;
void Normal::getDensity... | 32.416667 | 172 | 0.712725 | JonathanLehner |
3783397f485f54f8bdb5a83f1624cdc5f190be74 | 1,057 | cpp | C++ | MessageBox.cpp | pedromagician/CMD_MessageBox | dad9f60185bd5852b0a42b538ea25299075995ab | [
"MIT"
] | null | null | null | MessageBox.cpp | pedromagician/CMD_MessageBox | dad9f60185bd5852b0a42b538ea25299075995ab | [
"MIT"
] | null | null | null | MessageBox.cpp | pedromagician/CMD_MessageBox | dad9f60185bd5852b0a42b538ea25299075995ab | [
"MIT"
] | null | null | null | #pragma once
#include "stdafx.h"
#include "UTL_Cmd.h"
#include "UTL_Conversion.h"
int _tmain(int argc, _TCHAR* argv[])
{
int iCorrectParameters = 0;
bool bHelp = false;
wstring title = _T("");
wstring message = _T("");
UTL_Cmd::Type type = UTL_Cmd::Type::Ok;
UTL_Cmd::Icon icon = UTL_Cmd::Icon::NoIcon;
UTL_Cmd:... | 24.581395 | 109 | 0.672658 | pedromagician |
37850965102c435abe3c4b02438d560a53c8d2a6 | 3,543 | cpp | C++ | race.cpp | StavrosChryselis/hellenico | 8965de28ef87d794614ade054a2ccbbb1a03446a | [
"MIT"
] | null | null | null | race.cpp | StavrosChryselis/hellenico | 8965de28ef87d794614ade054a2ccbbb1a03446a | [
"MIT"
] | null | null | null | race.cpp | StavrosChryselis/hellenico | 8965de28ef87d794614ade054a2ccbbb1a03446a | [
"MIT"
] | null | null | null | /*
****************************************************************
****************************************************************
-> Coded by Stavros Chryselis
-> Visit my github for more solved problems over multiple sites
-> https://github.com/StavrosChryselis
-> Feel free to email me at stavrikios@gm... | 22.14375 | 198 | 0.438047 | StavrosChryselis |
3789d4c870c44934e33acc13fed7e735b593c6f2 | 2,595 | cpp | C++ | src/TcpServer.cpp | woegster/libESRI | 5f5e0afe78cd51bb259e42541edc640961743a43 | [
"Unlicense"
] | null | null | null | src/TcpServer.cpp | woegster/libESRI | 5f5e0afe78cd51bb259e42541edc640961743a43 | [
"Unlicense"
] | 8 | 2017-01-21T17:11:38.000Z | 2017-01-22T02:17:51.000Z | src/TcpServer.cpp | woegster/libESRI | 5f5e0afe78cd51bb259e42541edc640961743a43 | [
"Unlicense"
] | null | null | null | #include "stdafx.h"
#include "TcpServer.h"
#include "TcpClient.h"
namespace toni
{
TcpServer::~TcpServer()
{
CleanUp();
}
bool TcpServer::Start(const SocketEndpoint& localEndpoint, int Backlog)
{
if (m_listenSocket == INVALID_SOCKET)
{
m_listenSocket = socket(localEndpoint.GetAddressFamily... | 23.807339 | 125 | 0.617341 | woegster |
378ba8165f5caf2b22a1adc71acb41c6bf541abb | 86 | cpp | C++ | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/InterfaceLibrary/libsdir/shareddependlib.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 107 | 2021-08-28T20:08:42.000Z | 2022-03-22T08:02:16.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/InterfaceLibrary/libsdir/shareddependlib.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 3 | 2021-09-08T02:18:00.000Z | 2022-03-12T00:39:44.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/InterfaceLibrary/libsdir/shareddependlib.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 16 | 2021-08-30T06:57:36.000Z | 2022-03-22T08:05:52.000Z |
#include "shareddependlib.h"
int SharedDependLibObject::foo() const
{
return 0;
}
| 10.75 | 38 | 0.72093 | duonglvtnaist |
37921bf59031a0884073a5e32c62ab23ef298922 | 11,029 | hpp | C++ | Nacro/SDK/FN_QuestScreen_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_QuestScreen_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2021-08-11T18:40:26.000Z | 2021-08-11T18:40:26.000Z | Nacro/SDK/FN_QuestScreen_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function QuestScreen.Q... | 40.848148 | 161 | 0.622541 | Milxnor |
37954637953907aeca68206fb89eff847778db61 | 6,525 | hpp | C++ | src/event_emitter.hpp | JohnCWakley/ezi | 7578af5b85f3a080ae45e27d82a697d12c6e5bf2 | [
"MIT"
] | 3 | 2021-07-28T16:14:25.000Z | 2021-09-28T11:29:57.000Z | src/event_emitter.hpp | JohnCWakley/ezi | 7578af5b85f3a080ae45e27d82a697d12c6e5bf2 | [
"MIT"
] | null | null | null | src/event_emitter.hpp | JohnCWakley/ezi | 7578af5b85f3a080ae45e27d82a697d12c6e5bf2 | [
"MIT"
] | null | null | null | /**
* MIT License
*
* Copyright (c) 2021 John Wakley
*
* 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, m... | 38.382353 | 137 | 0.607816 | JohnCWakley |
379814fd1320de638091aba18f2d51531414d45d | 5,033 | cpp | C++ | src/Akuma/Items/ItemManager.cpp | MajorArkwolf/stonks | 5671f7811f19af33450e5fd07ab61c700f71ee69 | [
"0BSD"
] | null | null | null | src/Akuma/Items/ItemManager.cpp | MajorArkwolf/stonks | 5671f7811f19af33450e5fd07ab61c700f71ee69 | [
"0BSD"
] | null | null | null | src/Akuma/Items/ItemManager.cpp | MajorArkwolf/stonks | 5671f7811f19af33450e5fd07ab61c700f71ee69 | [
"0BSD"
] | null | null | null | #include "ItemManager.hpp"
#include "Stonk/Engine.hpp"
#include <assert.h>
void ItemLoader::init() {
constructGenerics();
auto &engine = Stonk::Engine::get();
string path = engine.basepath + "res/info/itemList.csv";
static constexpr char SEPARATOR = ',';
auto fileinput = ifstream();
auto ... | 27.05914 | 78 | 0.611961 | MajorArkwolf |
37991920ac1a315f34a2101ad70708a6f048242f | 489 | hpp | C++ | chemstab-lib/src/chem/graphs/EdgeNodePair.hpp | newdoug/chemstab | 0ac32d579fbcec1e2f6dccef41433a79e2e5f41a | [
"Apache-2.0"
] | null | null | null | chemstab-lib/src/chem/graphs/EdgeNodePair.hpp | newdoug/chemstab | 0ac32d579fbcec1e2f6dccef41433a79e2e5f41a | [
"Apache-2.0"
] | null | null | null | chemstab-lib/src/chem/graphs/EdgeNodePair.hpp | newdoug/chemstab | 0ac32d579fbcec1e2f6dccef41433a79e2e5f41a | [
"Apache-2.0"
] | null | null | null | #ifndef CHEM_EDGE_NODE_PAIR_HPP_
#define CHEM_EDGE_NODE_PAIR_HPP_
#include <memory>
#include "Node.hpp"
#include "Edge.hpp"
namespace structures
{
namespace graph
{
struct EdgeNodePair
{
std::shared_ptr<Node> left_node;
std::shared_ptr<Edge> edge;
std::shared_ptr<Node> right_node;
EdgeNodePair();
... | 18.807692 | 112 | 0.740286 | newdoug |
37a1bc6e9d4d90785b11f829b3b8550669f7a9f3 | 2,597 | cpp | C++ | examples/multipleSpheres.cpp | karangovil/ray_tracer | 16212db43cae4b6a3706cce23c7b476d8cc13595 | [
"MIT"
] | null | null | null | examples/multipleSpheres.cpp | karangovil/ray_tracer | 16212db43cae4b6a3706cce23c7b476d8cc13595 | [
"MIT"
] | null | null | null | examples/multipleSpheres.cpp | karangovil/ray_tracer | 16212db43cae4b6a3706cce23c7b476d8cc13595 | [
"MIT"
] | null | null | null | #include <vector>
#include "math/transformations.h"
#include "shapes/sphere.h"
#include "shapes/material.h"
#include "shapes/object.h"
#include "graphics/canvas.h"
#include "graphics/world.h"
#include "graphics/camera.h"
#include "graphics/colors.h"
using namespace RT;
int main()
{
sphere floor;
floor.set_tr... | 31.670732 | 83 | 0.616095 | karangovil |
37a6837762177f7ec3859404555b67ad29dec389 | 13,692 | cc | C++ | extras/av1enc.cc | RReverser/libwebp2 | c90b5b476004c9a98731ae1c175cebab5de50fbf | [
"Apache-2.0"
] | 4 | 2020-11-10T17:46:57.000Z | 2022-03-22T06:24:17.000Z | extras/av1enc.cc | RReverser/libwebp2 | c90b5b476004c9a98731ae1c175cebab5de50fbf | [
"Apache-2.0"
] | null | null | null | extras/av1enc.cc | RReverser/libwebp2 | c90b5b476004c9a98731ae1c175cebab5de50fbf | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 38.677966 | 80 | 0.559013 | RReverser |
37a7cd7899a488bcb6e1104c264dd26346670e75 | 2,048 | cpp | C++ | Tankerfield/Tankerfield/Camera.cpp | gamificalostudio/Tankerfield | f3801c5286ae836c0fd62392cc14be081b5c74e8 | [
"MIT"
] | 7 | 2019-03-11T11:31:36.000Z | 2019-05-18T08:03:35.000Z | Tankerfield/Tankerfield/Camera.cpp | gamificalostudio/Tankerfield | f3801c5286ae836c0fd62392cc14be081b5c74e8 | [
"MIT"
] | 86 | 2019-03-27T14:36:16.000Z | 2019-06-10T18:43:52.000Z | Tankerfield/Tankerfield/Camera.cpp | gamificalostudio/Tankerfield | f3801c5286ae836c0fd62392cc14be081b5c74e8 | [
"MIT"
] | 1 | 2019-09-10T17:37:44.000Z | 2019-09-10T17:37:44.000Z | #include "Camera.h"
#include "Obj_Tank.h"
#include "M_Map.h"
Camera::Camera()
{
max_shake_offset = 15.f;
trauma_decay = 0.9f;
random_generator.seed(random_device());
aim_distance = 2.5f;
lerp_factor = 3.75f;
}
void Camera::AddTrauma(float value)
{
if (trauma + value >= 1.f)
{
trauma = 1.f;
}
else
{
tra... | 24.380952 | 132 | 0.709473 | gamificalostudio |
37b49c5da819efd3388e787f8683451945e4e46f | 158 | cpp | C++ | ToyRenderer/src/rendering/Mesh/Mesh.cpp | IRCSS/ToyRenderer | 39b919a99cae47f9da34229b427958ea720d98d0 | [
"MIT"
] | 40 | 2020-03-19T20:05:22.000Z | 2022-03-27T07:52:38.000Z | ToyRenderer/src/rendering/Mesh/Mesh.cpp | IRCSS/ToyRenderer | 39b919a99cae47f9da34229b427958ea720d98d0 | [
"MIT"
] | null | null | null | ToyRenderer/src/rendering/Mesh/Mesh.cpp | IRCSS/ToyRenderer | 39b919a99cae47f9da34229b427958ea720d98d0 | [
"MIT"
] | 5 | 2021-09-25T01:32:25.000Z | 2021-11-18T13:42:18.000Z | #include "rendering/Mesh/Mesh.h"
namespace ToyRenderer {
Mesh::Mesh()
{
}
int Mesh::GetVertexCount() const
{
return VertexPositions.size();
}
}
| 11.285714 | 33 | 0.658228 | IRCSS |
37ba58b19cc0307aaebf448d897043c57fbe5502 | 1,441 | cpp | C++ | console/ForegroundColors.cpp | shadowc/dbu | ee6b63e9886580dfadb047569e35227c82e6b4ad | [
"MIT"
] | null | null | null | console/ForegroundColors.cpp | shadowc/dbu | ee6b63e9886580dfadb047569e35227c82e6b4ad | [
"MIT"
] | null | null | null | console/ForegroundColors.cpp | shadowc/dbu | ee6b63e9886580dfadb047569e35227c82e6b4ad | [
"MIT"
] | null | null | null | #include "ForegroundColors.h"
#include "Color.h"
namespace Console {
Color ForegroundColors::BLACK = Color(30, "30");
Color ForegroundColors::RED = Color(31, "31");
Color ForegroundColors::GREEN = Color(32, "32");
Color ForegroundColors::YELLOW = Color(33, "33");
Color ForegroundColors::BLUE = Color(34, "34");
C... | 35.146341 | 58 | 0.743234 | shadowc |
37c718f4f44a0f41440efb3655ec6b02f4852af0 | 35,664 | hpp | C++ | src/cli/RubyInterpreter.hpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 354 | 2015-01-10T17:46:11.000Z | 2022-03-29T10:00:00.000Z | src/cli/RubyInterpreter.hpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 3,243 | 2015-01-02T04:54:45.000Z | 2022-03-31T17:22:22.000Z | src/cli/RubyInterpreter.hpp | jmarrec/OpenStudio | 5276feff0d8dbd6c8ef4e87eed626bc270a19b14 | [
"blessing"
] | 157 | 2015-01-07T15:59:55.000Z | 2022-03-30T07:46:09.000Z | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 23.602912 | 125 | 0.70438 | muehleisen |
37c7f671208e56bfeb07b0f8e3a832a7dd5b967e | 742 | cpp | C++ | code/candy-2.cpp | tqgy/interview | 1f51a70fd6b86ba15a900aed072a138524e84609 | [
"CC0-1.0"
] | 4 | 2018-04-09T12:57:46.000Z | 2019-07-30T00:25:40.000Z | java/code/candy-2.cpp | sunchenglong/algorithm-essentials | 1b6d360e4993b14db221b0d97b238df49c792446 | [
"CC0-1.0"
] | null | null | null | java/code/candy-2.cpp | sunchenglong/algorithm-essentials | 1b6d360e4993b14db221b0d97b238df49c792446 | [
"CC0-1.0"
] | 3 | 2018-11-19T03:11:15.000Z | 2021-07-28T11:48:30.000Z | // Candy
// 备忘录法,时间复杂度O(n),空间复杂度O(n)
// @author fancymouse (http://weibo.com/u/1928162822)
class Solution {
public:
int candy(const vector<int>& ratings) {
vector<int> f(ratings.size());
int sum = 0;
for (int i = 0; i < ratings.size(); ++i)
sum += solve(ratings, f, i);
re... | 32.26087 | 70 | 0.462264 | tqgy |
37c981b3747d35377159ca6d1c1afd48f4138b22 | 883 | cpp | C++ | modul_tests/tsupereraser.cpp | AlexGtTroll/Alphabet-main-project | c5838d394cfcd6891978ba75c2ebad0f7e99e985 | [
"MIT"
] | 6 | 2020-03-20T05:42:22.000Z | 2020-05-30T04:35:32.000Z | modul_tests/tsupereraser.cpp | AlexGtTroll/Alphabet-main-project | c5838d394cfcd6891978ba75c2ebad0f7e99e985 | [
"MIT"
] | 7 | 2020-03-20T06:29:22.000Z | 2020-05-25T07:02:51.000Z | modul_tests/tsupereraser.cpp | AlexGtTroll/Alphabet-main-project | c5838d394cfcd6891978ba75c2ebad0f7e99e985 | [
"MIT"
] | 3 | 2020-03-20T05:48:57.000Z | 2020-05-26T06:46:20.000Z | #include "parent.h"
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
void supereraser(string& sentence, string& x, int& check)
{
check = 0;
size_t pos = x.find("-A");
bool symb = false;
if (pos != string::npos)
symb = true;
if (symb == true) {
check =... | 27.59375 | 80 | 0.534541 | AlexGtTroll |
37cc0b524ad7ea6d7db8eb0ff935223bfdb795be | 2,327 | cc | C++ | source/particles/pyG4PrimaryParticle.cc | yu22mal/geant4_pybind | ff7efc322fe53f39c7ae7ed140861052a92479fd | [
"Unlicense"
] | 6 | 2021-08-08T08:40:13.000Z | 2022-03-23T03:05:15.000Z | source/particles/pyG4PrimaryParticle.cc | yu22mal/geant4_pybind | ff7efc322fe53f39c7ae7ed140861052a92479fd | [
"Unlicense"
] | 3 | 2021-12-01T14:38:06.000Z | 2022-02-10T11:28:28.000Z | source/particles/pyG4PrimaryParticle.cc | yu22mal/geant4_pybind | ff7efc322fe53f39c7ae7ed140861052a92479fd | [
"Unlicense"
] | 3 | 2021-07-16T13:57:34.000Z | 2022-02-07T11:17:19.000Z | #include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <G4ParticleDefinition.hh>
#include <G4PrimaryParticle.hh>
#include "typecast.hh"
#include "opaques.hh"
namespace py = pybind11;
void export_G4PrimaryParticle(py::module &m)
{
py::class_<G4PrimaryParticle>(m, "G4PrimaryParticle", "primary particle"... | 45.627451 | 99 | 0.703051 | yu22mal |
56cbaa172b0d1fe7218f757cd46fcb9fb43cd074 | 68 | cpp | C++ | examples/cpp-openapi/model/src/error.cpp | cpp-openapi/runtime | 18fe7995b810617e8176f84e1bfe1138414e5e1c | [
"Apache-2.0"
] | null | null | null | examples/cpp-openapi/model/src/error.cpp | cpp-openapi/runtime | 18fe7995b810617e8176f84e1bfe1138414e5e1c | [
"Apache-2.0"
] | null | null | null | examples/cpp-openapi/model/src/error.cpp | cpp-openapi/runtime | 18fe7995b810617e8176f84e1bfe1138414e5e1c | [
"Apache-2.0"
] | null | null | null | #include "error.h"
OPENAP_JSON_CONVERT_FUNCS(Error, code, message)
| 17 | 47 | 0.794118 | cpp-openapi |
56ced93ba74d227f45f4af118943619ca589fe34 | 307 | hpp | C++ | src/io/register_loader_saver_lcp.hpp | ruolin/vg | fddf5a0e3172cfc50eb6f8a561dfbe3dbbbaec04 | [
"MIT"
] | 740 | 2016-02-23T02:31:10.000Z | 2022-03-31T20:51:36.000Z | src/io/register_loader_saver_lcp.hpp | ruolin/vg | fddf5a0e3172cfc50eb6f8a561dfbe3dbbbaec04 | [
"MIT"
] | 2,455 | 2016-02-24T08:17:45.000Z | 2022-03-31T20:19:41.000Z | src/io/register_loader_saver_lcp.hpp | ruolin/vg | fddf5a0e3172cfc50eb6f8a561dfbe3dbbbaec04 | [
"MIT"
] | 169 | 2016-03-03T15:41:33.000Z | 2022-03-31T04:01:53.000Z | #ifndef VG_IO_REGISTER_LOADER_SAVER_LCP_HPP_INCLUDED
#define VG_IO_REGISTER_LOADER_SAVER_LCP_HPP_INCLUDED
/**
* \file register_loader_saver_lcp.hpp
* Defines IO for an LCP array from stream files.
*/
namespace vg {
namespace io {
using namespace std;
void register_loader_saver_lcp();
}
}
#endif
| 13.954545 | 52 | 0.788274 | ruolin |
56cf1fa5e36c845dc7fdde26bce5d9f30e2bfaa3 | 6,024 | cpp | C++ | Source/HoloHands/Rendering/CrosshairRenderer.cpp | Iansdfg/HoloHands | fc534c3ed1a172adde0220993059420c448fa40a | [
"MIT"
] | 1 | 2021-12-29T16:41:09.000Z | 2021-12-29T16:41:09.000Z | Source/HoloHands/Rendering/CrosshairRenderer.cpp | Iansdfg/HoloHands | fc534c3ed1a172adde0220993059420c448fa40a | [
"MIT"
] | null | null | null | Source/HoloHands/Rendering/CrosshairRenderer.cpp | Iansdfg/HoloHands | fc534c3ed1a172adde0220993059420c448fa40a | [
"MIT"
] | null | null | null | #include "pch.h"
#include "CrosshairRenderer.h"
using namespace HoloHands;
using namespace Concurrency;
using namespace DirectX;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Numerics;
using namespace Windows::UI::Input::Spatial;
using namespace Microsoft::WRL;
namespace HoloHands
{
Cr... | 26.305677 | 114 | 0.557437 | Iansdfg |
56d14fe548f26f181565816876adda716b64747a | 5,324 | cpp | C++ | src/easymesh/easymeshcursor.cpp | lolengine/lolengine | d1a0443e69de96611d739d4c374633c5371e6e81 | [
"WTFPL"
] | 4 | 2015-02-14T21:14:25.000Z | 2021-12-12T15:45:44.000Z | src/easymesh/easymeshcursor.cpp | lolengine/lolengine | d1a0443e69de96611d739d4c374633c5371e6e81 | [
"WTFPL"
] | 3 | 2015-02-14T20:56:26.000Z | 2015-02-16T08:50:54.000Z | src/easymesh/easymeshcursor.cpp | lolengine/lolengine | d1a0443e69de96611d739d4c374633c5371e6e81 | [
"WTFPL"
] | 1 | 2021-10-06T16:01:03.000Z | 2021-10-06T16:01:03.000Z | //
// EasyMesh-Cursor — Cursor operations
//
// Copyright © 2012—2020 Sam Hocevar <sam@hocevar.net>
// © 2009—2015 Cédric Lecacheur <jordx@free.fr>
// © 2009—2015 Benjamin “Touky” Huet <huet.benjamin@gmail.com>
//
// Lol Engine is free software. It comes without any warranty, to
// the extent ... | 29.414365 | 96 | 0.507137 | lolengine |
56da87bd42ee7a2b5ca38ae55e4ce63a610872e4 | 2,272 | cpp | C++ | lect04-ex01-pvector-traits/src/pvector.cpp | rkoch/uzh-adv-cpp | 3c6e91a587229e023314d6d2173bc56be571481f | [
"MIT"
] | 1 | 2015-12-28T09:57:39.000Z | 2015-12-28T09:57:39.000Z | lect04-ex01-pvector-traits/src/pvector.cpp | rkoch/uzh-adv-cpp | 3c6e91a587229e023314d6d2173bc56be571481f | [
"MIT"
] | null | null | null | lect04-ex01-pvector-traits/src/pvector.cpp | rkoch/uzh-adv-cpp | 3c6e91a587229e023314d6d2173bc56be571481f | [
"MIT"
] | null | null | null | /*
* pvector.cpp
*
* Created on: 12.11.2013
* Author: rko
*/
#include <fstream>
#include "pvector.h"
using std::ifstream;
using std::ofstream;
using std::string;
template<typename T, typename P>
pvector<T, P>::pvector(string fname)
: filename(fname), vector() {
read_vector();
}
template<typename T, ty... | 19.929825 | 79 | 0.673415 | rkoch |
56ddd77f8ac7300b10059e44ef4c836831c3ce64 | 1,358 | cpp | C++ | 1004.cpp | CN-GuoZiyang/PAT | e075fb96b90ac5445c901416a4b15b7c325dab8e | [
"MIT"
] | null | null | null | 1004.cpp | CN-GuoZiyang/PAT | e075fb96b90ac5445c901416a4b15b7c325dab8e | [
"MIT"
] | null | null | null | 1004.cpp | CN-GuoZiyang/PAT | e075fb96b90ac5445c901416a4b15b7c325dab8e | [
"MIT"
] | null | null | null | #include <cstdio>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
int n, m;
struct node {
vector<int> children;
};
int main()
{
scanf("%d %d", &n, &m);
vector<node> nodes(n+1);
for(int i = 0; i < m; i ++)
{
int id, k;
scanf("%d %d", &id, &k);
... | 20.575758 | 70 | 0.385862 | CN-GuoZiyang |
56e2568b69f23223085b7ac978d7a0f14cbfbf2c | 2,519 | cc | C++ | src/ast/bitcast_expression_test.cc | jhanssen/tint | 30c1f25a7a4e180419444c12046348edb0f8fdd0 | [
"Apache-2.0"
] | null | null | null | src/ast/bitcast_expression_test.cc | jhanssen/tint | 30c1f25a7a4e180419444c12046348edb0f8fdd0 | [
"Apache-2.0"
] | null | null | null | src/ast/bitcast_expression_test.cc | jhanssen/tint | 30c1f25a7a4e180419444c12046348edb0f8fdd0 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 27.086022 | 75 | 0.695514 | jhanssen |
56e41e0fc68b60f4ee7784f29353c75b551f8010 | 8,743 | hpp | C++ | CBench/utils/utils.hpp | jinsian/VizAly-Foresight | 687b869424be4706e85bd23708ba319f4c371115 | [
"Unlicense",
"BSD-3-Clause"
] | 14 | 2019-12-07T18:17:17.000Z | 2021-11-17T11:41:21.000Z | CBench/utils/utils.hpp | jinsian/VizAly-Foresight | 687b869424be4706e85bd23708ba319f4c371115 | [
"Unlicense",
"BSD-3-Clause"
] | 9 | 2019-06-28T19:23:44.000Z | 2019-10-03T15:32:07.000Z | CBench/utils/utils.hpp | jinsian/VizAly-Foresight | 687b869424be4706e85bd23708ba319f4c371115 | [
"Unlicense",
"BSD-3-Clause"
] | 5 | 2020-01-05T04:40:20.000Z | 2020-11-17T21:56:01.000Z | /*================================================================================
This software is open source software available under the BSD-3 license.
Copyright (c) 2017, Los Alamos National Security, LLC.
All rights reserved.
Authors:
- Pascal Grosset
- Jesus Pulido
Utils.hpp is a collection of helper funct... | 24.69774 | 115 | 0.622441 | jinsian |
56ea0999dd1ca0d9627cd1a0636caaee991363f8 | 13,593 | hpp | C++ | src/MNode.hpp | ahfakt/DS | 28bf08e7866920acfcd3f3c7eafa65fe56fb954c | [
"MIT"
] | null | null | null | src/MNode.hpp | ahfakt/DS | 28bf08e7866920acfcd3f3c7eafa65fe56fb954c | [
"MIT"
] | null | null | null | src/MNode.hpp | ahfakt/DS | 28bf08e7866920acfcd3f3c7eafa65fe56fb954c | [
"MIT"
] | null | null | null | #ifndef DS_MNODE_HPP
#define DS_MNODE_HPP
#include "Holder.hpp"
namespace DS {
template <typename K, typename V>
struct MNode {
MNode* left;
MNode* right;
union state_t {
std::uint8_t _ = 2;
std::uint8_t balance:3;
struct {
bool isRight:1;
bool isBalanced:1;
bool isLeft:1;
bool :2;
bool hasRi... | 24.229947 | 130 | 0.589715 | ahfakt |
56eb2162966f8bb95f6edae4e895f99fa93491d4 | 12,230 | cpp | C++ | logarray_test.cpp | davidbien/bienutil_test | 744954979ca6d92c748d929dfa2a3f811149567a | [
"BSL-1.0"
] | null | null | null | logarray_test.cpp | davidbien/bienutil_test | 744954979ca6d92c748d929dfa2a3f811149567a | [
"BSL-1.0"
] | null | null | null | logarray_test.cpp | davidbien/bienutil_test | 744954979ca6d92c748d929dfa2a3f811149567a | [
"BSL-1.0"
] | null | null | null |
// Copyright David Lawrence Bien 1997 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt).
// logarray_test.cpp : Direct test new LogArray impl.
// dbien
// 01APR2021
#include "bienu... | 33.69146 | 154 | 0.651104 | davidbien |
56f075daac0af4c4c1da3da20c5c53831ad492dc | 26 | cpp | C++ | src/Solver/Technique.cpp | renanmoreira17/SudokuSolver | 62052c2d8a2319cb82f98ef0a9f618653e9e0a90 | [
"MIT"
] | null | null | null | src/Solver/Technique.cpp | renanmoreira17/SudokuSolver | 62052c2d8a2319cb82f98ef0a9f618653e9e0a90 | [
"MIT"
] | null | null | null | src/Solver/Technique.cpp | renanmoreira17/SudokuSolver | 62052c2d8a2319cb82f98ef0a9f618653e9e0a90 | [
"MIT"
] | null | null | null | #include "Technique.hpp"
| 8.666667 | 24 | 0.730769 | renanmoreira17 |
56f5b714161a517f1bd616687f54ea1b874b43f0 | 951 | hpp | C++ | libraries/plugins/dapp_history/include/fiberchain/dapp_history/dapp_history_plugin.hpp | FiberChain/FiberChain | f4640dfa71cdc57c56d9e299b4f369750dc760ec | [
"MIT"
] | null | null | null | libraries/plugins/dapp_history/include/fiberchain/dapp_history/dapp_history_plugin.hpp | FiberChain/FiberChain | f4640dfa71cdc57c56d9e299b4f369750dc760ec | [
"MIT"
] | null | null | null | libraries/plugins/dapp_history/include/fiberchain/dapp_history/dapp_history_plugin.hpp | FiberChain/FiberChain | f4640dfa71cdc57c56d9e299b4f369750dc760ec | [
"MIT"
] | null | null | null | #pragma once
#include <fiberchain/app/plugin.hpp>
#include <fiberchain/chain/database.hpp>
#include <fc/thread/future.hpp>
#define DAPP_HISTORY_PLUGIN_NAME "dapp_history"
namespace fiberchain { namespace dapp_history {
using fiberchain::app::application;
using namespace chain;
using namespace fiberchain::p... | 29.71875 | 103 | 0.727655 | FiberChain |
56f8a9336c4bda58cafc36acc0c7da57a39db2e3 | 15,510 | cpp | C++ | Irmqtt_firmware/src/ir_decode.cpp | tarontop/IRmqtt | 5b3c0a4e442aeae46b62f6d8e0013d19c76e00d8 | [
"MIT"
] | null | null | null | Irmqtt_firmware/src/ir_decode.cpp | tarontop/IRmqtt | 5b3c0a4e442aeae46b62f6d8e0013d19c76e00d8 | [
"MIT"
] | 1 | 2020-01-09T07:07:44.000Z | 2020-01-09T07:07:44.000Z | Irmqtt_firmware/src/ir_decode.cpp | tarontop/IRmqtt | 5b3c0a4e442aeae46b62f6d8e0013d19c76e00d8 | [
"MIT"
] | null | null | null | /**************************************************************************************
Filename: ir_decode.c
Revised: Date: 2016-10-01
Revision: Revision: 1.0
Description: This file provides algorithms for IR decode (status type)
Revision log:
* 2016-10-01: created by strawmanbobi
*************... | 23.861538 | 110 | 0.588395 | tarontop |
56fc26c3bc5dfc286132ee1b8e67d6440548f75e | 3,795 | cpp | C++ | 146. LRU Cache.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | 1 | 2020-10-11T08:10:53.000Z | 2020-10-11T08:10:53.000Z | 146. LRU Cache.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | null | null | null | 146. LRU Cache.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | null | null | null | #include "LeetCodeLib.h"
/*
*
* 146. LRU Cache
*
* https://leetcode.com/problems/lru-cache/description/
*
* algorithms
* Medium
*
* Design and implement a data structure for Least Recently Used (LRU) cache.
* It should support the following operations: get and put.
*
* get(key) - Get the value (will always... | 28.111111 | 82 | 0.63004 | yuyangh |
56fee1cbf8724cd70de5b67c57dce9f10a59b436 | 400 | cpp | C++ | src/Player.cpp | Dheeraj-Karki/Tic-Tac-Toe | a1492d200e861bf6b174fcea6b107814058508ba | [
"MIT"
] | null | null | null | src/Player.cpp | Dheeraj-Karki/Tic-Tac-Toe | a1492d200e861bf6b174fcea6b107814058508ba | [
"MIT"
] | null | null | null | src/Player.cpp | Dheeraj-Karki/Tic-Tac-Toe | a1492d200e861bf6b174fcea6b107814058508ba | [
"MIT"
] | null | null | null | //
// Player.cpp
// Tic-Tac-Toe
//
// Created by Dheeraj Karki on 29/10/18.
// Copyright © 2018 Dheeraj Karki. All rights reserved.
//
#include "Player.hpp"
Player::Player(std::string name, std::string mark): m_strName(name), m_strMark(mark) {
}
Player::~Player() {
}
std::string Player::name() const {
... | 16.666667 | 86 | 0.6475 | Dheeraj-Karki |
7106d3ac72cc6abaa59228b61cbdf2ab65c7bd52 | 5,168 | hpp | C++ | include/codegen/include/Zenject/MethodProviderWithContainer_11.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/MethodProviderWithContainer_11.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/MethodProviderWithContainer_11.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:46 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... | 58.727273 | 378 | 0.757159 | Futuremappermydud |
7112cf8fb114ec070dfd36fe7e8cf560a21db8f2 | 2,017 | hpp | C++ | include/argot/gen/is_modeled.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 49 | 2018-05-09T23:17:45.000Z | 2021-07-21T10:05:19.000Z | include/argot/gen/is_modeled.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | null | null | null | include/argot/gen/is_modeled.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 2 | 2019-08-04T03:51:36.000Z | 2020-12-28T06:53:29.000Z | /*==============================================================================
Copyright (c) 2016, 2017, 2018, 2019 Matt Calabrese
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=================================... | 31.515625 | 80 | 0.696579 | mattcalabrese |
71131d3b9882ec8f2adaa8eba5f94d311de1ef83 | 2,136 | cpp | C++ | Week3/E - Fibonacci Sequence/E - Fibonacci Sequence/main.cpp | coolspring1293/Algorithm_2015_Later | 7be91b0711d430245c52f351f339864853896f90 | [
"MIT"
] | 1 | 2015-11-30T12:34:04.000Z | 2015-11-30T12:34:04.000Z | Week3/E - Fibonacci Sequence/E - Fibonacci Sequence/main.cpp | coolspring1293/Algorithm_2015_Later | 7be91b0711d430245c52f351f339864853896f90 | [
"MIT"
] | null | null | null | Week3/E - Fibonacci Sequence/E - Fibonacci Sequence/main.cpp | coolspring1293/Algorithm_2015_Later | 7be91b0711d430245c52f351f339864853896f90 | [
"MIT"
] | null | null | null | //
// main.cpp
// E - Fibonacci Sequence
//
// Created by Kieran Will on 10/19/15.
// Copyright © 2015 Kieran Will. All rights reserved.
//
#include <iostream>
#include <stdio.h>
#define M_SIZE 2000000002
#define S_TRI 3
using namespace std;
long long cur, x_i, y_i, x_j, y_j, test, _l = - M_SIZE, _r = M_SIZE,... | 31.880597 | 87 | 0.389513 | coolspring1293 |
7115aa1f44ec203d39a61c7d304154635aa0b1f7 | 9,365 | cc | C++ | src/lm-state-derivs.cc | RoseSAK/pocolm | 2da2b6e5a709fb40021f7bbcdd18d84f174dfe30 | [
"Apache-2.0"
] | 88 | 2016-04-16T03:42:04.000Z | 2022-02-10T17:45:39.000Z | src/lm-state-derivs.cc | RoseSAK/pocolm | 2da2b6e5a709fb40021f7bbcdd18d84f174dfe30 | [
"Apache-2.0"
] | 81 | 2016-05-09T00:07:18.000Z | 2022-02-02T05:59:04.000Z | src/lm-state-derivs.cc | RoseSAK/pocolm | 2da2b6e5a709fb40021f7bbcdd18d84f174dfe30 | [
"Apache-2.0"
] | 43 | 2016-05-17T04:51:10.000Z | 2022-01-25T12:14:15.000Z | // lm-state-derivs.cc
// Copyright 2016 Johns Hopkins University (Author: Daniel Povey)
// See ../COPYING for clarification regarding multiple authors
//
// 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... | 35.339623 | 79 | 0.645061 | RoseSAK |
71190fd18bf0148cfd33427a6c812f77895840d4 | 12,918 | cpp | C++ | src/models/greedy_layerwise_autoencoder.cpp | andy-yoo/lbann-andy | 237c45c392e7a5548796ac29537ab0a374e7e825 | [
"Apache-2.0"
] | null | null | null | src/models/greedy_layerwise_autoencoder.cpp | andy-yoo/lbann-andy | 237c45c392e7a5548796ac29537ab0a374e7e825 | [
"Apache-2.0"
] | null | null | null | src/models/greedy_layerwise_autoencoder.cpp | andy-yoo/lbann-andy | 237c45c392e7a5548796ac29537ab0a374e7e825 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2016, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... | 35.391781 | 106 | 0.682149 | andy-yoo |
7119dc43f93d21d235c7c0b096f09016afc084fb | 26,751 | cpp | C++ | plugins/cusolver/backend/CusolverHandler_sparse_lapack_low_level.cpp | nicholaspiantadosi/GVirtuS | ab5d2a1127f29d199921588961fed278e1dbab3b | [
"Apache-2.0"
] | null | null | null | plugins/cusolver/backend/CusolverHandler_sparse_lapack_low_level.cpp | nicholaspiantadosi/GVirtuS | ab5d2a1127f29d199921588961fed278e1dbab3b | [
"Apache-2.0"
] | null | null | null | plugins/cusolver/backend/CusolverHandler_sparse_lapack_low_level.cpp | nicholaspiantadosi/GVirtuS | ab5d2a1127f29d199921588961fed278e1dbab3b | [
"Apache-2.0"
] | null | null | null | /*
* gVirtuS -- A GPGPU transparent virtualization component.
*
* Copyright (C) 2009-2010 The University of Napoli Parthenope at Naples.
*
* This file is part of gVirtuS.
*
* gVirtuS is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | 43.216478 | 166 | 0.683376 | nicholaspiantadosi |
712019357e91dddd13359510352d90f7e05fcefd | 2,831 | cpp | C++ | shf-cpp/src/Game/Menu/System.cpp | Upwinded/SHF | 797682152234251c9a32692324904c7aa8d90683 | [
"Zlib"
] | 71 | 2018-03-21T08:04:04.000Z | 2022-01-11T09:49:26.000Z | shf-cpp/src/Game/Menu/System.cpp | Upwinded/SHF | 797682152234251c9a32692324904c7aa8d90683 | [
"Zlib"
] | 2 | 2018-08-28T08:26:02.000Z | 2019-04-06T14:29:39.000Z | shf-cpp/src/Game/Menu/System.cpp | Upwinded/SHF | 797682152234251c9a32692324904c7aa8d90683 | [
"Zlib"
] | 25 | 2018-03-24T03:36:28.000Z | 2021-09-20T06:19:09.000Z | #include "System.h"
#include "SaveLoad.h"
#include "../GameManager/GameManager.h"
System::System()
{
priority = epMax;
init();
}
System::~System()
{
freeResource();
}
void System::init()
{
freeResource();
initFromIni("ini\\ui\\system\\window.ini");
title = addImageContainer("ini\\ui\\system\\Title.ini");
re... | 19.93662 | 82 | 0.643589 | Upwinded |
71224ed5486d64ac5ec3431af2d2817025db42cb | 2,740 | cpp | C++ | tests/example7.cpp | jgaa/RESTinCurl | cef61e43354063213d476eeb4b212becae238a4b | [
"MIT"
] | 10 | 2019-11-12T04:36:35.000Z | 2022-01-28T17:02:01.000Z | tests/example7.cpp | jgaa/RESTinCurl | cef61e43354063213d476eeb4b212becae238a4b | [
"MIT"
] | 1 | 2021-09-22T20:41:39.000Z | 2021-10-04T16:53:56.000Z | tests/example7.cpp | jgaa/RESTinCurl | cef61e43354063213d476eeb4b212becae238a4b | [
"MIT"
] | null | null | null |
// Include before restincurl.h
#include <future>
#include "logfault/logfault.h"
#include "restincurl/restincurl.h"
#include "nlohmann/json.hpp"
using namespace std;
using namespace restincurl;
using namespace logfault;
using namespace nlohmann;
int main( int argc, char * argv[]) {
// Use logfault for logging... | 35.128205 | 108 | 0.478102 | jgaa |
7123e81f46d2d2fb96670bcd0c4a275cded69afc | 36,910 | cpp | C++ | src/GenericDistributionDialog.cpp | sofea-model/sofea | a6ee54b59c6f96929592118ee77e286f71238c9e | [
"Apache-2.0"
] | null | null | null | src/GenericDistributionDialog.cpp | sofea-model/sofea | a6ee54b59c6f96929592118ee77e286f71238c9e | [
"Apache-2.0"
] | 2 | 2020-01-31T06:21:44.000Z | 2020-01-31T06:26:52.000Z | src/GenericDistributionDialog.cpp | sofea-model/sofea | a6ee54b59c6f96929592118ee77e286f71238c9e | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Dow, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | 42.968568 | 145 | 0.596261 | sofea-model |
7123f46c40df2c7cbee71854a6e7a09679de8208 | 2,246 | cpp | C++ | Stp/Base/System/EnvironmentPosix.cpp | markazmierczak/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:52.000Z | 2019-07-11T12:47:52.000Z | Stp/Base/System/EnvironmentPosix.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | null | null | null | Stp/Base/System/EnvironmentPosix.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:53.000Z | 2019-07-11T12:47:53.000Z | // Copyright 2017 Polonite Authors. All rights reserved.
// Distributed under MIT license that can be found in the LICENSE file.
#include "Base/System/Environment.h"
#include "Base/FileSystem/FilePath.h"
#include "Base/Text/Wtf.h"
#include "Base/Thread/Lock.h"
#include <stdlib.h>
namespace stp {
BasicLock Environm... | 26.738095 | 81 | 0.740873 | markazmierczak |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.