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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a194049b6d19720ba1bf16da44ae734487318ef | 1,020 | cpp | C++ | kernel/arch/x86_64/com.cpp | jasonwer/WingOS | 1e3b8b272bc93542fda48ed1cf3226e63c923f39 | [
"BSD-2-Clause"
] | 1 | 2021-03-27T13:40:21.000Z | 2021-03-27T13:40:21.000Z | kernel/arch/x86_64/com.cpp | jasonwer/WingOS | 1e3b8b272bc93542fda48ed1cf3226e63c923f39 | [
"BSD-2-Clause"
] | null | null | null | kernel/arch/x86_64/com.cpp | jasonwer/WingOS | 1e3b8b272bc93542fda48ed1cf3226e63c923f39 | [
"BSD-2-Clause"
] | null | null | null | #include <arch.h>
#include <com.h>
#include <kernel.h>
#include <process.h>
#include <stdarg.h>
#include <utility.h>
char temp_buffer[17];
uint64_t last_count = 17;
bool com_device::echo_out(const char *data, uint64_t data_length)
{
for (uint64_t i = 0; i < data_length; i++)
{
write(data[i]);
}
... | 17 | 65 | 0.545098 | jasonwer |
4a1cf84fdc287c42f1dad8fa81015e3bc12e2db8 | 13,119 | cpp | C++ | src/Private/Resources/PlayingHudResource.cpp | heltena/KYEngine | 4ccb89d0b20683feb245ffe85dd34b6ffdc42c8e | [
"MIT"
] | null | null | null | src/Private/Resources/PlayingHudResource.cpp | heltena/KYEngine | 4ccb89d0b20683feb245ffe85dd34b6ffdc42c8e | [
"MIT"
] | null | null | null | src/Private/Resources/PlayingHudResource.cpp | heltena/KYEngine | 4ccb89d0b20683feb245ffe85dd34b6ffdc42c8e | [
"MIT"
] | null | null | null | #include <KYEngine/AddFaceViewParam.h>
#include <KYEngine/AddMapViewParam.h>
#include <KYEngine/AddProgressViewParam.h>
#include <KYEngine/AddJoystickButtonParam.h>
#include <KYEngine/AddPushButtonParam.h>
#include <KYEngine/Core.h>
#include <KYEngine/Private/Resources/PlayingHudResource.h>
#include <KYEngine/Utility/T... | 35.649457 | 139 | 0.647991 | heltena |
4a211385c55ec7464c20bc86d74449970d0c0d31 | 217 | cpp | C++ | CC/hello_world.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | 1 | 2020-10-12T08:03:20.000Z | 2020-10-12T08:03:20.000Z | CC/hello_world.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | null | null | null | CC/hello_world.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main() {
long long a = 2992;
long long b = 192;
int prod = a * b;
cout << "Product of " << a <<" and " << b << " is = " << prod << "\n";
return 0;
} | 24.111111 | 74 | 0.488479 | MrRobo24 |
4a2904fda2c70d52ed7767a3317284c589584fdb | 782 | cpp | C++ | leetcode/src/0142-detectCycle.cpp | Wasikowska/go-typebyname | 460c50de881508f340c4785c18cee47232095a50 | [
"MIT"
] | null | null | null | leetcode/src/0142-detectCycle.cpp | Wasikowska/go-typebyname | 460c50de881508f340c4785c18cee47232095a50 | [
"MIT"
] | null | null | null | leetcode/src/0142-detectCycle.cpp | Wasikowska/go-typebyname | 460c50de881508f340c4785c18cee47232095a50 | [
"MIT"
] | null | null | null | #include <iostream>
#include <unordered_set>
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution {
public:
ListNode *detectCycle(ListNode *head) {
if (!head) {
return nullptr;
}
// floyd's cycle finding algorithm
ListNode* n1{head};
Li... | 16.291667 | 47 | 0.543478 | Wasikowska |
4a2bf58675380c45030695db57d420ccd8cd67f1 | 2,286 | cpp | C++ | src/tests/test_rdtree_select.cpp | rvianello/chemicalite | 0feb0d122e2f38730e2033e76681699c12eb1b23 | [
"BSD-3-Clause"
] | 29 | 2015-03-07T14:40:35.000Z | 2022-02-05T21:17:42.000Z | src/tests/test_rdtree_select.cpp | rvianello/chemicalite | 0feb0d122e2f38730e2033e76681699c12eb1b23 | [
"BSD-3-Clause"
] | 3 | 2015-11-18T05:04:48.000Z | 2020-12-16T22:37:25.000Z | src/tests/test_rdtree_select.cpp | rvianello/chemicalite | 0feb0d122e2f38730e2033e76681699c12eb1b23 | [
"BSD-3-Clause"
] | 3 | 2020-05-13T19:02:07.000Z | 2021-08-02T10:45:32.000Z | #include "test_common.hpp"
TEST_CASE("rdtree select", "[rdtree]")
{
sqlite3 * db = nullptr;
test_db_open(&db);
int rc = sqlite3_exec(
db,
"CREATE VIRTUAL TABLE xyz USING rdtree(id integer primary key, s bits(1024))",
NULL, NULL, NULL);
REQUIRE(rc == SQLITE_OK);
// insert some binary fing... | 31.75 | 100 | 0.653981 | rvianello |
4a30d03c7eb0777c467f15599aebad9a2b02e6eb | 2,894 | cpp | C++ | src/graphics/ressources/buffers.cpp | guillaume-haerinck/learn-vulkan | 30acd5b477866f7454a3c89bf10a7bfffc11c9a1 | [
"MIT"
] | null | null | null | src/graphics/ressources/buffers.cpp | guillaume-haerinck/learn-vulkan | 30acd5b477866f7454a3c89bf10a7bfffc11c9a1 | [
"MIT"
] | null | null | null | src/graphics/ressources/buffers.cpp | guillaume-haerinck/learn-vulkan | 30acd5b477866f7454a3c89bf10a7bfffc11c9a1 | [
"MIT"
] | null | null | null | #include "buffers.h"
#include <chrono>
#include <glm/gtc/matrix_transform.hpp>
#include "graphics/setup/devices.h"
VertexBuffer::VertexBuffer(LogicalDevice& device, MemoryAllocator& memoryAllocator, const std::vector<Vertex>& vertices)
: m_vertices(vertices), IBuffer(device, memoryAllocator)
{
vk::BufferCrea... | 35.728395 | 148 | 0.715619 | guillaume-haerinck |
4a3198d1b97e8de48fe4a53eea560a25f3d8c27f | 1,565 | cpp | C++ | Algorithm important/search in almost sorted array.cpp | shauryauppal/Algo-DS-StudyMaterial | 1c481f066d21b33ec2533156e75f45fa9b6a7606 | [
"Apache-2.0"
] | 3 | 2020-12-03T14:52:23.000Z | 2021-12-19T09:26:50.000Z | Algorithm important/search in almost sorted array.cpp | shauryauppal/Algo-DS-StudyMaterial | 1c481f066d21b33ec2533156e75f45fa9b6a7606 | [
"Apache-2.0"
] | null | null | null | Algorithm important/search in almost sorted array.cpp | shauryauppal/Algo-DS-StudyMaterial | 1c481f066d21b33ec2533156e75f45fa9b6a7606 | [
"Apache-2.0"
] | null | null | null | /*Given an array which is sorted, but after sorting some elements are moved to either of the adjacent positions, i.e., arr[i] may be present at arr[i+1] or arr[i-1]. Write an efficient function to search an element in this array. Basically the element arr[i] can only be swapped with either arr[i+1] or arr[i-1].
For ... | 26.083333 | 313 | 0.53738 | shauryauppal |
4a32688bc6ba34f96da03103f07dc211f948f8b8 | 529 | cpp | C++ | aula10092020/retangulo.cpp | imdcode/imd0030_t02_2020 | 9c08e159752fa3d1169518fcc4a1046c045d7cec | [
"MIT"
] | 3 | 2020-09-23T00:59:43.000Z | 2020-10-06T22:27:00.000Z | aula10092020/retangulo.cpp | imdcode/imd0030_t02_2020 | 9c08e159752fa3d1169518fcc4a1046c045d7cec | [
"MIT"
] | null | null | null | aula10092020/retangulo.cpp | imdcode/imd0030_t02_2020 | 9c08e159752fa3d1169518fcc4a1046c045d7cec | [
"MIT"
] | 4 | 2020-10-05T05:36:25.000Z | 2020-12-08T02:47:32.000Z | #include <iostream>
#include "retangulo.hpp"
using std::cout;
using std::endl;
int Retangulo::getLargura() {
return largura;
}
void Retangulo::setLargura(int largura_) {
if (largura_ < 0) {
cout << "O valor da largura deve ser maior ou igual a zero." << endl;
} else {
largura = largura_;
}
}
int Retangulo:... | 16.53125 | 71 | 0.678639 | imdcode |
4a37d96cf9d056243d71c788eb078d88ef78a570 | 497 | hpp | C++ | src/loader/mod_package_loader.hpp | LeoCodes21/ModLoader | be2827f52390d77d7bf01b5f345092761b8f234d | [
"MIT"
] | 4 | 2020-07-05T15:13:35.000Z | 2021-02-04T00:03:01.000Z | src/loader/mod_package_loader.hpp | LeoCodes21/ModLoader | be2827f52390d77d7bf01b5f345092761b8f234d | [
"MIT"
] | 1 | 2020-11-25T03:14:37.000Z | 2020-11-25T03:14:37.000Z | src/loader/mod_package_loader.hpp | LeoCodes21/ModLoader | be2827f52390d77d7bf01b5f345092761b8f234d | [
"MIT"
] | 5 | 2020-03-22T19:22:27.000Z | 2021-02-21T15:22:58.000Z | //
// Created by coder on 3/17/2020.
//
#ifndef MODLOADER_MOD_PACKAGE_LOADER_HPP
#define MODLOADER_MOD_PACKAGE_LOADER_HPP
#include <filesystem>
#include "mod_package.hpp"
namespace fs = std::filesystem;
class mod_package_loader {
public:
mod_package_loader(std::string &server_id, fs::path &path);
~mod_pack... | 17.75 | 63 | 0.738431 | LeoCodes21 |
4a3997dd491fbc0f82d3a9540674e0dde872efae | 6,512 | hpp | C++ | libs/Core/include/argos-Core/Support/SyntaxPool.hpp | henrikfroehling/argos | 821ea18335838bcb2e88187adc12b59c51cd3522 | [
"MIT"
] | null | null | null | libs/Core/include/argos-Core/Support/SyntaxPool.hpp | henrikfroehling/argos | 821ea18335838bcb2e88187adc12b59c51cd3522 | [
"MIT"
] | 2 | 2022-02-16T23:58:02.000Z | 2022-03-16T20:53:15.000Z | libs/Core/include/argos-Core/Support/SyntaxPool.hpp | henrikfroehling/argos | 821ea18335838bcb2e88187adc12b59c51cd3522 | [
"MIT"
] | null | null | null | #ifndef ARGOS_CORE_SUPPORT_SYNTAXPOOL_H
#define ARGOS_CORE_SUPPORT_SYNTAXPOOL_H
#include <memory>
#include <unordered_map>
#include <vector>
#include "argos-Core/argos_global.hpp"
#include "argos-Core/Syntax/ISyntaxNode.hpp"
#include "argos-Core/Syntax/ISyntaxToken.hpp"
#include "argos-Core/Syntax/ISyntaxTrivia.hpp"
... | 42.285714 | 138 | 0.724355 | henrikfroehling |
6654c3d3a8690609b115e250c82c4b8bfa8c4ef1 | 7,848 | cpp | C++ | src/base64.cpp | abbyssoul/libsolace | 390c3094af1837715787c33297720bf514f04710 | [
"Apache-2.0"
] | 18 | 2016-05-30T23:46:27.000Z | 2022-01-11T18:20:28.000Z | src/base64.cpp | abbyssoul/libsolace | 390c3094af1837715787c33297720bf514f04710 | [
"Apache-2.0"
] | 4 | 2017-09-12T13:32:28.000Z | 2019-10-21T10:36:18.000Z | src/base64.cpp | abbyssoul/libsolace | 390c3094af1837715787c33297720bf514f04710 | [
"Apache-2.0"
] | 5 | 2017-11-24T19:34:06.000Z | 2019-10-18T14:24:12.000Z | /*
* Copyright 2017 Ivan Ryabov
*
* 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 ... | 35.192825 | 114 | 0.541157 | abbyssoul |
665a99b19c8f938f1889a8d7480d84add7512067 | 1,413 | cpp | C++ | src/omplapp/graphics/RenderGeometry.cpp | SZanlongo/omplapp | c56679337e2a71d266359450afbe63d700c0a666 | [
"BSD-3-Clause"
] | null | null | null | src/omplapp/graphics/RenderGeometry.cpp | SZanlongo/omplapp | c56679337e2a71d266359450afbe63d700c0a666 | [
"BSD-3-Clause"
] | null | null | null | src/omplapp/graphics/RenderGeometry.cpp | SZanlongo/omplapp | c56679337e2a71d266359450afbe63d700c0a666 | [
"BSD-3-Clause"
] | 1 | 2019-07-01T09:30:45.000Z | 2019-07-01T09:30:45.000Z | /*********************************************************************
* Rice University Software Distribution License
*
* Copyright (c) 2010, Rice University
* All Rights Reserved.
*
* For a full description see the file named LICENSE.
*
*********************************************************************/
/* Author... | 34.463415 | 129 | 0.669498 | SZanlongo |
6662d1f125d58e10c0535921002a78a797923a68 | 1,147 | cpp | C++ | BTTH05/01/PS.cpp | MiMi-Yup/sharing | 1a04a4fdd5e179bd5491725004931d0f71923262 | [
"BSD-4-Clause-UC"
] | null | null | null | BTTH05/01/PS.cpp | MiMi-Yup/sharing | 1a04a4fdd5e179bd5491725004931d0f71923262 | [
"BSD-4-Clause-UC"
] | null | null | null | BTTH05/01/PS.cpp | MiMi-Yup/sharing | 1a04a4fdd5e179bd5491725004931d0f71923262 | [
"BSD-4-Clause-UC"
] | null | null | null | #include "PS.h"
PS::PS(int tuso, int mauso) {
this->tuso = tuso;
this->mauso = mauso;
}
PS::PS(const PS& ps) {
this->tuso = ps.tuso;
this->mauso = ps.mauso;
}
int PS::UCLN(int a, int b) {
while (a * b != 0) {
if (a > b) {
a %= b;
}
else {
b %= a;
}
}
return a + b;
}
istream& operator>>(istream& is... | 16.867647 | 64 | 0.543156 | MiMi-Yup |
6665430965fdfd0db578199d98aacd16a0af9933 | 3,211 | hpp | C++ | fon9/io/SocketConfig.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 21 | 2019-01-29T14:41:46.000Z | 2022-03-11T00:22:56.000Z | fon9/io/SocketConfig.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | null | null | null | fon9/io/SocketConfig.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 9 | 2019-01-27T14:19:33.000Z | 2022-03-11T06:18:24.000Z | /// \file fon9/io/SocketConfig.hpp
/// \author fonwinz@gmail.com
#ifndef __fon9_io_SocketConfig_hpp__
#define __fon9_io_SocketConfig_hpp__
#include "fon9/io/IoBase.hpp"
#include "fon9/io/SocketAddress.hpp"
namespace fon9 { namespace io {
fon9_WARN_DISABLE_PADDING;
/// \ingroup io
/// Socket 基本參數.
struct fon9_API Soc... | 32.434343 | 93 | 0.628153 | fonwin |
6669dc244a2317eda8e4323d4e94150abb79e048 | 12,095 | cpp | C++ | Source/spells.cpp | nomdenom/devilution | 98a0692d14f338dc8f509c8424cab1ee6067a950 | [
"Unlicense"
] | 4 | 2018-09-24T17:02:21.000Z | 2021-05-27T08:42:50.000Z | Source/spells.cpp | nomdenom/devilution | 98a0692d14f338dc8f509c8424cab1ee6067a950 | [
"Unlicense"
] | null | null | null | Source/spells.cpp | nomdenom/devilution | 98a0692d14f338dc8f509c8424cab1ee6067a950 | [
"Unlicense"
] | null | null | null | //HEADER_GOES_HERE
#include "../types.h"
SpellData spelldata[MAX_SPELLS] = {
{ 0, 0, 0, NULL, NULL, 0, 0, FALSE, FALSE, 0, 0, { 0, 0, 0 }, 0, 0, 40, 80, 0, 0 },
{ SPL_FIREBOLT, 6, STYPE_FIRE, "Firebolt", "Firebolt", 1, 1, TRUE, FALSE, 15, IS_CAST2, { MIS_FIREBOLT, 0, 0 }, 1, 3, 40, 80, 1000, 50 },
... | 38.275316 | 154 | 0.518561 | nomdenom |
666b7b7e6178d193ed53e9af879004db7faf907d | 3,228 | hpp | C++ | engine/src/utility/command.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 20 | 2020-07-07T18:28:35.000Z | 2022-03-21T04:35:28.000Z | engine/src/utility/command.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 46 | 2021-01-20T10:13:09.000Z | 2022-03-29T12:27:19.000Z | engine/src/utility/command.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 12 | 2021-01-25T08:01:24.000Z | 2021-07-27T10:09:53.000Z | /*
* Copyright 2020 Robert Bosch GmbH
*
* 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 agre... | 27.827586 | 83 | 0.701673 | Sidharth-S-S |
6678da66a2f24c7fc81b1bfb93c40b0ad6139e3f | 1,742 | cpp | C++ | Dialogs/blurdialog.cpp | kalpanki/ocvGUI | 9fc1f2278b414c316f091e1de5a4b1c4e3695ee9 | [
"BSD-2-Clause"
] | 2 | 2019-08-21T13:37:51.000Z | 2019-10-18T01:39:53.000Z | Dialogs/blurdialog.cpp | kalpanki/ocvGUI | 9fc1f2278b414c316f091e1de5a4b1c4e3695ee9 | [
"BSD-2-Clause"
] | null | null | null | Dialogs/blurdialog.cpp | kalpanki/ocvGUI | 9fc1f2278b414c316f091e1de5a4b1c4e3695ee9 | [
"BSD-2-Clause"
] | null | null | null | #include "blurdialog.h"
#include "ui_blurdialog.h"
#include <iostream>
using namespace std;
BlurDialog::BlurDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::BlurDialog)
{
ui->setupUi(this);
this->currentIndex = ui->BlurComboBox->currentIndex();
this->kernelH = ui->kernelHeightSpinBox->value();... | 26.393939 | 83 | 0.730195 | kalpanki |
667976e24f139ddb0d10d6c3f056d5374a2ccee1 | 5,484 | hpp | C++ | test/test-200-types/include/test-develop.hpp | Kartonagnick/tools-types | 4b3a697e579050eade081b82f9b96309fea8f5e7 | [
"MIT"
] | null | null | null | test/test-200-types/include/test-develop.hpp | Kartonagnick/tools-types | 4b3a697e579050eade081b82f9b96309fea8f5e7 | [
"MIT"
] | 49 | 2021-02-20T12:08:15.000Z | 2021-05-07T19:59:08.000Z | test/test-200-types/include/test-develop.hpp | Kartonagnick/tools-types | 4b3a697e579050eade081b82f9b96309fea8f5e7 | [
"MIT"
] | null | null | null | // [2021y-03m-10d][12:46:41] Idrisov Denis R.
#pragma once
#ifndef dTEST_DEVELOP_USED_
#define dTEST_DEVELOP_USED_ 1
#define CODE_GENERATION_ON
#define INCLUDE_AUTO_GENERATED
// #define INCLUDE_STRESS_TESTS
#define INCLUDE_LONG_LONG_TESTS
#define INCLUDE_LONG_TESTS
//============================... | 58.340426 | 80 | 0.398432 | Kartonagnick |
6679f862eee8a9781371e0560ee2865749dd8c06 | 5,707 | cpp | C++ | Program Launcher/CCategory.cpp | barty32/program-launcher | f29277dda09f753e39258ff17af3b8c15d2504dc | [
"MIT"
] | null | null | null | Program Launcher/CCategory.cpp | barty32/program-launcher | f29277dda09f753e39258ff17af3b8c15d2504dc | [
"MIT"
] | null | null | null | Program Launcher/CCategory.cpp | barty32/program-launcher | f29277dda09f753e39258ff17af3b8c15d2504dc | [
"MIT"
] | null | null | null | //
// _
// ___ __ _| |_ ___ __ _ ___ _ __ _ _ ___ _ __ _ __
// / __/ _` | __/ _ \/ _` |/ _ \| '__| | | | / __| '_ \| '_ \
// | (_| (_| | || __/ (_| | (_) | | | |_| || (__| |_) | |_) |
// \___\__,_|\__\___|\__, |\___/|_| \__, (_)___| .__/| .__... | 25.823529 | 192 | 0.686175 | barty32 |
6682ad244c2bee9a0251cff2761fa395fef5ab07 | 1,529 | hpp | C++ | Parallel/OMPFor.hpp | DLancer999/SPHSimulator | 4f2f3a29d9769e62a9cae3d036b3e09dac99e305 | [
"MIT"
] | null | null | null | Parallel/OMPFor.hpp | DLancer999/SPHSimulator | 4f2f3a29d9769e62a9cae3d036b3e09dac99e305 | [
"MIT"
] | null | null | null | Parallel/OMPFor.hpp | DLancer999/SPHSimulator | 4f2f3a29d9769e62a9cae3d036b3e09dac99e305 | [
"MIT"
] | 1 | 2022-02-03T08:21:46.000Z | 2022-02-03T08:21:46.000Z |
/*************************************************************************\
License
Copyright (c) 2018 Kavvadias Ioannis.
This file is part of SPHSimulator.
Licensed under the MIT License. See LICENSE file in the project root for
full license information.
Description
Utility functions... | 22.485294 | 77 | 0.606279 | DLancer999 |
66965d15808e8f0b412b06866e9adb3e76a5d424 | 1,352 | hpp | C++ | include/cmn/rect.hpp | InsaneHamster/ihamster | 0f09e7eec3dff68ba7c2e899b03fd75940d3e242 | [
"MIT"
] | 1 | 2018-01-28T14:10:26.000Z | 2018-01-28T14:10:26.000Z | include/cmn/rect.hpp | InsaneHamster/ihamster | 0f09e7eec3dff68ba7c2e899b03fd75940d3e242 | [
"MIT"
] | null | null | null | include/cmn/rect.hpp | InsaneHamster/ihamster | 0f09e7eec3dff68ba7c2e899b03fd75940d3e242 | [
"MIT"
] | null | null | null | #pragma once
#include "point.hpp"
namespace cmn
{
template< typename T, int D >
struct rect_tt
{
typedef T value_type;
static int const dimension = D;
typedef point_tt<T,D> point_t;
point_t origin;
point_t size;
};
t... | 30.727273 | 171 | 0.545118 | InsaneHamster |
669cbac0cbdd5507c183a99e9fda1953d9dae3ef | 776 | cpp | C++ | src/algorithms/warmup/plus_minus/plus_minus.cpp | bmgandre/hackerrank-cpp | f4af5777afba233c284790e02c0be7b82108c677 | [
"MIT"
] | null | null | null | src/algorithms/warmup/plus_minus/plus_minus.cpp | bmgandre/hackerrank-cpp | f4af5777afba233c284790e02c0be7b82108c677 | [
"MIT"
] | null | null | null | src/algorithms/warmup/plus_minus/plus_minus.cpp | bmgandre/hackerrank-cpp | f4af5777afba233c284790e02c0be7b82108c677 | [
"MIT"
] | null | null | null | #include "plus_minus.h"
#include <iostream>
#include <iomanip>
#include <string>
using namespace hackerrank::bmgandre::algorithms::warmup;
/// Practice>Algorithms>Warmup>Plus Minus
///
/// https://www.hackerrank.com/challenges/plus-minus
void plus_minus::solve()
{
auto count = 0;
std::cin >> count;
auto negatives... | 24.25 | 82 | 0.614691 | bmgandre |
66a043db9a0fe52d8c8ab13abe86d1b9e0e5c8ad | 3,648 | cpp | C++ | src/GUI/FileIO.cpp | davidgreisler/four-in-a-line | a21014e926df30359365d76510c64665e49096e3 | [
"MIT"
] | 4 | 2015-01-18T09:33:30.000Z | 2019-02-28T12:00:09.000Z | src/GUI/FileIO.cpp | davidgreisler/four-in-a-line | a21014e926df30359365d76510c64665e49096e3 | [
"MIT"
] | null | null | null | src/GUI/FileIO.cpp | davidgreisler/four-in-a-line | a21014e926df30359365d76510c64665e49096e3 | [
"MIT"
] | null | null | null | #include "FileIO.hpp"
#include <QFile>
#include <QTextStream>
#include <QFileDialog>
#include <QMessageBox>
namespace GUI
{
/**
* Opens the file with the given filename, reads the whole file and stores it in content.
*
* @param parentWidget Parent widget.
* @param fileName File name/path of the file.
* @param c... | 26.627737 | 100 | 0.714638 | davidgreisler |
66a3907f117317eee1f35f0f5fb23e9a043976ce | 12,026 | cpp | C++ | graphics_test/graphics_test/src/ngl/rhi/d3d12/rhi_util.d3d12.cpp | nagakagachi/sample_projct | 300fcdaf65a009874ce1964a64682aeb6a6ef82e | [
"MIT"
] | null | null | null | graphics_test/graphics_test/src/ngl/rhi/d3d12/rhi_util.d3d12.cpp | nagakagachi/sample_projct | 300fcdaf65a009874ce1964a64682aeb6a6ef82e | [
"MIT"
] | null | null | null | graphics_test/graphics_test/src/ngl/rhi/d3d12/rhi_util.d3d12.cpp | nagakagachi/sample_projct | 300fcdaf65a009874ce1964a64682aeb6a6ef82e | [
"MIT"
] | null | null | null |
#include "rhi_util.d3d12.h"
namespace ngl
{
namespace rhi
{
DXGI_FORMAT ConvertResourceFormat(ResourceFormat v)
{
static DXGI_FORMAT table[] =
{
DXGI_FORMAT_UNKNOWN,
DXGI_FORMAT_R32G32B32A32_TYPELESS,
DXGI_FORMAT_R32G32B32A32_FLOAT,
DXGI_FORMAT_R32G32B32A32_UINT,
DXGI_FORMAT_R32G32B... | 23.580392 | 85 | 0.741144 | nagakagachi |
66b67c2affc8a6f7db4583a13eaf253b5d9edb44 | 943 | cpp | C++ | BMCP/Coloring.cpp | TomaszRewak/BMCP | 99e94b11f70658d9b8de792b36af7ecbb215d665 | [
"MIT"
] | 2 | 2019-11-04T15:09:52.000Z | 2022-01-12T05:41:16.000Z | BMCP/Coloring.cpp | TomaszRewak/BMCP | 99e94b11f70658d9b8de792b36af7ecbb215d665 | [
"MIT"
] | null | null | null | BMCP/Coloring.cpp | TomaszRewak/BMCP | 99e94b11f70658d9b8de792b36af7ecbb215d665 | [
"MIT"
] | 1 | 2020-09-09T12:24:35.000Z | 2020-09-09T12:24:35.000Z | // ========================================
// ======= Created by Tomasz Rewak ========
// ========================================
// ==== https://github.com/TomaszRewak ====
// ========================================
#include "Coloring.h"
namespace BMCP
{
size_t Coloring::size()
{
return genotype.size();
}
... | 20.955556 | 69 | 0.498409 | TomaszRewak |
66b6c0c945523ad16100001e06698e0eeed87762 | 3,496 | hpp | C++ | src/includes/utils.hpp | WillBlack403/ZKP-onehot | 42119353c6dfe3970267de1cb53d537854671f14 | [
"MIT"
] | null | null | null | src/includes/utils.hpp | WillBlack403/ZKP-onehot | 42119353c6dfe3970267de1cb53d537854671f14 | [
"MIT"
] | null | null | null | src/includes/utils.hpp | WillBlack403/ZKP-onehot | 42119353c6dfe3970267de1cb53d537854671f14 | [
"MIT"
] | null | null | null | /*Author: William Black,
* Ryan Henry
*Email: william.black@ucalgary.ca,
* ryan.henry@ucalgary.ca
*Date: 2019/06/28
*Project: Proof Of Concept for: There are 10 Types of Vectors (and Polynomials)
*File:utils.hpp
* Contains function declations of utility functions used in this project.
*/
#ifndef... | 29.880342 | 152 | 0.741419 | WillBlack403 |
66ba586ba3c57343ffa3c0dd543a2a312e372c85 | 2,362 | cpp | C++ | Sources/Sound/AudioWorld/audio_world.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 248 | 2015-01-08T05:21:40.000Z | 2022-03-20T02:59:16.000Z | Sources/Sound/AudioWorld/audio_world.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 39 | 2015-01-14T17:37:07.000Z | 2022-03-17T12:59:26.000Z | Sources/Sound/AudioWorld/audio_world.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 82 | 2015-01-11T13:23:49.000Z | 2022-02-19T03:17:24.000Z |
#include "Sound/precomp.h"
#include "API/Sound/AudioWorld/audio_world.h"
#include "API/Sound/AudioWorld/audio_object.h"
#include "API/Sound/soundbuffer.h"
#include "API/Core/Math/cl_math.h"
#include "audio_world_impl.h"
#include "audio_object_impl.h"
namespace clan
{
AudioWorld::AudioWorld(const ResourceManager &res... | 24.350515 | 87 | 0.680779 | xctan |
66bf1efd3a0bed608491a19bc7320a774df752dd | 2,732 | cpp | C++ | RUNETag/WinNTL/tests/LLLTest.cpp | vshesh/RUNEtag | 800e93fb7c0560ea5a6261ffc60c02638a8cc8c9 | [
"MIT"
] | null | null | null | RUNETag/WinNTL/tests/LLLTest.cpp | vshesh/RUNEtag | 800e93fb7c0560ea5a6261ffc60c02638a8cc8c9 | [
"MIT"
] | null | null | null | RUNETag/WinNTL/tests/LLLTest.cpp | vshesh/RUNEtag | 800e93fb7c0560ea5a6261ffc60c02638a8cc8c9 | [
"MIT"
] | null | null | null |
#include <NTL/LLL.h>
NTL_CLIENT
int main()
{
mat_ZZ B;
long s;
#if 1
cin >> B;
#else
long i, j;
long n;
cerr << "n: ";
cin >> n;
long m;
cerr << "m: ";
cin >> m;
long k;
cerr << "k: ";
cin >> k;
B.SetDims(n, m);
for (i = 1; i <= n; i++)
for (j = 1; j <= m; j++) ... | 19.514286 | 50 | 0.424597 | vshesh |
66c21c06dc026017e81dd6afcfd53b9af551b1f6 | 1,147 | cpp | C++ | lib/io/src/swap.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | lib/io/src/swap.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | lib/io/src/swap.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2018 Sylko Olzscher
*
*/
#include <cyng/io/swap.h>
namespace cyng
{
std::uint16_t swap_num(std::uint16_t val)
{
return (val << 8) | (val >> 8);
}
std::int16_t swap_num(std::int16_t val)
{
return (val << 8) | ((val >> 8) & 0xFF);
}
std::uint32_t swap... | 22.94 | 86 | 0.571055 | solosTec |
66c338b089efe6c614fb526cd5fa0e7984738317 | 51 | cpp | C++ | src/RefCore/Var.cpp | sppp/TheoremProver | efd583bc78e8fa93f6946def5f6af77001d01763 | [
"BSD-3-Clause"
] | null | null | null | src/RefCore/Var.cpp | sppp/TheoremProver | efd583bc78e8fa93f6946def5f6af77001d01763 | [
"BSD-3-Clause"
] | null | null | null | src/RefCore/Var.cpp | sppp/TheoremProver | efd583bc78e8fa93f6946def5f6af77001d01763 | [
"BSD-3-Clause"
] | null | null | null | #include "RefCore.h"
namespace RefCore {
}
| 8.5 | 21 | 0.607843 | sppp |
66c889f150ecfffe511b6cd69f485e795db892a1 | 1,342 | cpp | C++ | server/homeserver/network/json/JsonApi.Core.cpp | williamkoehler/home-server | ce99af73ea2e53fea3939fe0c4442433e65ac670 | [
"MIT"
] | 1 | 2021-07-05T21:11:59.000Z | 2021-07-05T21:11:59.000Z | server/homeserver/network/json/JsonApi.Core.cpp | williamkoehler/home-server | ce99af73ea2e53fea3939fe0c4442433e65ac670 | [
"MIT"
] | null | null | null | server/homeserver/network/json/JsonApi.Core.cpp | williamkoehler/home-server | ce99af73ea2e53fea3939fe0c4442433e65ac670 | [
"MIT"
] | null | null | null | #include "JsonApi.hpp"
#include "../../Core.hpp"
#include "../../tools/EMail.hpp"
namespace server
{
// Core
void JsonApi::BuildJsonSettings(const Ref<User>& user, rapidjson::Value& output, rapidjson::Document::AllocatorType& allocator)
{
assert(output.IsObject());
// Core settings
{
rapidjson::Value core... | 24.851852 | 128 | 0.697466 | williamkoehler |
66c9e7bb67a6e27cfea4b72d827ad9fc7ce1b116 | 6,210 | cpp | C++ | src/base/ossimCsvFile.cpp | vladislav-horbatiuk/ossim | 82417ad868fac022672335e1684bdd91d662c18c | [
"MIT"
] | 251 | 2015-10-20T09:08:11.000Z | 2022-03-22T18:16:38.000Z | src/base/ossimCsvFile.cpp | IvanLJF/ossim | 2e0143f682b9884a09ff2598ef8737f29e44fbdf | [
"MIT"
] | 73 | 2015-11-02T17:12:36.000Z | 2021-11-15T17:41:47.000Z | src/base/ossimCsvFile.cpp | IvanLJF/ossim | 2e0143f682b9884a09ff2598ef8737f29e44fbdf | [
"MIT"
] | 146 | 2015-10-15T16:00:15.000Z | 2022-03-22T12:37:14.000Z | #include <ossim/base/ossimCsvFile.h>
#include <iostream>
#include <iterator>
static const ossim_uint32 DEFAULT_BUFFER_SIZE = 1024;
ossim_int32 ossimCsvFile::INVALID_INDEX = -1;
static std::istream& csvSkipWhiteSpace(std::istream& in)
{
int c = in.peek();
while(!in.fail()&& ( (c == ' ')||(c == '\t')||(c == '\n')|... | 22.099644 | 87 | 0.554267 | vladislav-horbatiuk |
66cb1a9278851d2d9dc166e3c1f28165679a8dbc | 309 | hpp | C++ | r0 - hardware testing code/src/aqua_inputs.hpp | Tassany/projeto_aquaponia_fablab | 1973b9a74fd929ac445f95d1dda4cf0381c0c1cf | [
"MIT"
] | null | null | null | r0 - hardware testing code/src/aqua_inputs.hpp | Tassany/projeto_aquaponia_fablab | 1973b9a74fd929ac445f95d1dda4cf0381c0c1cf | [
"MIT"
] | null | null | null | r0 - hardware testing code/src/aqua_inputs.hpp | Tassany/projeto_aquaponia_fablab | 1973b9a74fd929ac445f95d1dda4cf0381c0c1cf | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <SPI.h>
#include <aqua_pins.hpp>
uint8_t aqua_inputs() {
digitalWrite(AQ_PIN_PL, true);
SPI.beginTransaction(SPISettings(1000000, MSBFIRST, SPI_MODE2));
uint8_t data = SPI.transfer(0);
SPI.endTransaction();
digitalWrite(AQ_PIN_PL, false);
return data;
}
| 23.769231 | 68 | 0.705502 | Tassany |
66cbb6525540e5091d6eb0ed00a16e7753948acc | 10,463 | cc | C++ | src/vt/vrt/collection/balance/stats_restart_reader.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 26 | 2019-11-26T08:36:15.000Z | 2022-02-15T17:13:21.000Z | src/vt/vrt/collection/balance/stats_restart_reader.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 1,215 | 2019-09-09T14:31:33.000Z | 2022-03-30T20:20:14.000Z | src/vt/vrt/collection/balance/stats_restart_reader.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 12 | 2019-09-08T00:03:05.000Z | 2022-02-23T21:28:35.000Z | /*
//@HEADER
// *****************************************************************************
//
// stats_restart_reader.cc
// DARMA/vt => Virtual Transport
//
// Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of... | 34.531353 | 81 | 0.684985 | rbuch |
66cc0f3b846b4a8720da090292c610a1779841ca | 6,876 | cc | C++ | lite/kernels/arm/box_coder_compute.cc | shentanyue/Paddle-Lite | c6baab724c9047c3e9809db3fc24b7a2b5ca26a2 | [
"Apache-2.0"
] | 1 | 2022-01-27T07:34:50.000Z | 2022-01-27T07:34:50.000Z | lite/kernels/arm/box_coder_compute.cc | shentanyue/Paddle-Lite | c6baab724c9047c3e9809db3fc24b7a2b5ca26a2 | [
"Apache-2.0"
] | 1 | 2021-05-26T05:19:38.000Z | 2021-05-26T05:19:38.000Z | lite/kernels/arm/box_coder_compute.cc | shentanyue/Paddle-Lite | c6baab724c9047c3e9809db3fc24b7a2b5ca26a2 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 36.967742 | 75 | 0.528069 | shentanyue |
66cdc42eaeffa61eb5f56d5a8dcdc6272bf062c7 | 3,438 | hpp | C++ | Kernel/include/generic_symbolicator_factory.hpp | foxostro/FlapjackOS | 34bd2cc9b0983b917a089efe2055ca8f78d56d9a | [
"BSD-2-Clause"
] | null | null | null | Kernel/include/generic_symbolicator_factory.hpp | foxostro/FlapjackOS | 34bd2cc9b0983b917a089efe2055ca8f78d56d9a | [
"BSD-2-Clause"
] | null | null | null | Kernel/include/generic_symbolicator_factory.hpp | foxostro/FlapjackOS | 34bd2cc9b0983b917a089efe2055ca8f78d56d9a | [
"BSD-2-Clause"
] | null | null | null | #ifndef FLAPJACKOS_COMMON_INCLUDE_GENERIC_SYMBOLICATOR_FACTORY_HPP
#define FLAPJACKOS_COMMON_INCLUDE_GENERIC_SYMBOLICATOR_FACTORY_HPP
#include <symbolicator.hpp>
#include <hardware_memory_management_unit.hpp>
#include <multiboot.h>
#include <common/elf.hpp>
#include <common/vector.hpp>
#include <common/logger.hpp>
te... | 32.742857 | 130 | 0.690809 | foxostro |
66cf9089ab7fe6895fd8c6c6cf77830b0ef44b51 | 2,298 | cpp | C++ | EpicForceTools/bin2c/main.cpp | MacgyverLin/MagnumEngine | 975bd4504a1e84cb9698c36e06bd80c7b8ced0ff | [
"MIT"
] | 1 | 2021-03-30T06:28:32.000Z | 2021-03-30T06:28:32.000Z | EpicForceTools/bin2c/main.cpp | MacgyverLin/MagnumEngine | 975bd4504a1e84cb9698c36e06bd80c7b8ced0ff | [
"MIT"
] | null | null | null | EpicForceTools/bin2c/main.cpp | MacgyverLin/MagnumEngine | 975bd4504a1e84cb9698c36e06bd80c7b8ced0ff | [
"MIT"
] | null | null | null | // bin2c.c
//
// convert a binary file into a C source vector
//
// THE "BEER-WARE LICENSE" (Revision 3.1415):
// sandro AT sigala DOT it wrote this file. As long as you retain this notice you can do
// whatever you want with this stuff. If we meet some day, and you think this stuff is
// worth it, you can buy me a be... | 18.836066 | 88 | 0.578329 | MacgyverLin |
66d159a07d7c1db5a2034ce136cf06dddcbb6e11 | 5,967 | cpp | C++ | test/collision/vector.cpp | neboat/cilktools | 7065c4f3281f133f2fd1a2e94b83c7326396ef7e | [
"MIT"
] | 3 | 2017-01-30T22:44:33.000Z | 2021-03-06T16:37:18.000Z | test/collision/vector.cpp | neboat/cilktools | 7065c4f3281f133f2fd1a2e94b83c7326396ef7e | [
"MIT"
] | null | null | null | test/collision/vector.cpp | neboat/cilktools | 7065c4f3281f133f2fd1a2e94b83c7326396ef7e | [
"MIT"
] | 5 | 2015-06-17T14:12:11.000Z | 2017-10-19T12:17:19.000Z | //========================================================================//
// Copyright 1994 (Unpublished Material) //
// SolidWorks Inc. //
//========================================================================//
//
// File Name: vector.cpp
// ... | 22.516981 | 127 | 0.558405 | neboat |
202d45e38a36b90376523fe8e8129b6bf0cd7b7e | 10,782 | cpp | C++ | src/math/matrix/matrix3x3.cpp | Gotatang/DadEngine_2.0 | 1e97e86996571c8ba1efec72b0f0e914d86533d3 | [
"MIT"
] | 2 | 2018-03-12T13:59:13.000Z | 2018-11-27T20:13:57.000Z | src/math/matrix/matrix3x3.cpp | Gotatang/DadEngine_2.0 | 1e97e86996571c8ba1efec72b0f0e914d86533d3 | [
"MIT"
] | 5 | 2018-12-22T10:43:28.000Z | 2019-01-17T22:02:16.000Z | src/math/matrix/matrix3x3.cpp | ladevieq/dadengine | 1e97e86996571c8ba1efec72b0f0e914d86533d3 | [
"MIT"
] | null | null | null | #include "matrix/matrix3x3.hpp"
#include "constants.hpp"
#include "vector/vector2.hpp"
#include "vector/vector3.hpp"
#include <limits>
namespace DadEngine
{
Matrix3x3::Matrix3x3(std::array<Vector3, 3> _vectors)
{
m_11 = _vectors[0U].x, m_12 = _vectors[1U].x, m_13 = _vectors[2U].x;
m_21 = _vec... | 34.557692 | 106 | 0.560286 | Gotatang |
2032531a2a5b2ff52b3ce301a1007240bd5e3ba0 | 781 | cc | C++ | leet_code/Check_If_Word_Is_Valid_After_Substitutions/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | leet_code/Check_If_Word_Is_Valid_After_Substitutions/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | leet_code/Check_If_Word_Is_Valid_After_Substitutions/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | class Solution {
private :
const int windowSize = 3;
const char invalid = -1;
public:
bool isValid(string S) {
string& in = S;
for (bool isChange = true; isChange;) {
string data;
for (int i = 0; i < in.length(); ++i) {
if (in[i] != invalid) {
... | 26.033333 | 68 | 0.386684 | ldy121 |
20336bb91326e6df27c8ebf0790a01ef49d9b053 | 729 | cpp | C++ | cpp_alkeet/2_Harjoitukset_190912/fourth.cpp | Diapolo10/TAMK-Exercises | 904958cc41b253201eef182f17e43d95cf4f7c89 | [
"MIT"
] | null | null | null | cpp_alkeet/2_Harjoitukset_190912/fourth.cpp | Diapolo10/TAMK-Exercises | 904958cc41b253201eef182f17e43d95cf4f7c89 | [
"MIT"
] | null | null | null | cpp_alkeet/2_Harjoitukset_190912/fourth.cpp | Diapolo10/TAMK-Exercises | 904958cc41b253201eef182f17e43d95cf4f7c89 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using std::vector;
double mass_sum(vector<double> nums) {
double result = .0;
for (auto num : nums) {
result += num;
}
return result;
}
vector<double>& get_passenger_masses(int n=4) {
vector<double> masses;
for (int i = 1; i <= n; ++i) {
double mass;
std::cout <... | 16.2 | 121 | 0.628258 | Diapolo10 |
2035f9c617a2c5660a1e1a416b52124a7f622c40 | 3,188 | cpp | C++ | test/test_optimizers.cpp | AvocadoML/CudaBackend | 314413c12efa7cb12a1ff0c2572c8aad9190d419 | [
"Apache-2.0"
] | 2 | 2022-03-14T07:13:37.000Z | 2022-03-16T00:16:33.000Z | test/test_optimizers.cpp | AvocadoML/CudaBackend | 314413c12efa7cb12a1ff0c2572c8aad9190d419 | [
"Apache-2.0"
] | null | null | null | test/test_optimizers.cpp | AvocadoML/CudaBackend | 314413c12efa7cb12a1ff0c2572c8aad9190d419 | [
"Apache-2.0"
] | 1 | 2022-03-14T07:13:44.000Z | 2022-03-14T07:13:44.000Z | /*
* test_optimizers.cpp
*
* Created on: Jan 27, 2022
* Author: Maciej Kozarzewski
*/
#include <testing/testing_helpers.hpp>
#include <gtest/gtest.h>
namespace avocado
{
namespace backend
{
TEST(TestOptimizer, float32_sgd)
{
if (not supportsType(AVOCADO_DTYPE_FLOAT32))
GTEST_SKIP();
Optimi... | 34.27957 | 101 | 0.663425 | AvocadoML |
2039ba4370d7625f068debb573eb3548460aabea | 744 | cpp | C++ | Arrays/miscellaneous/k_divisible_elements_subarray.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Arrays/miscellaneous/k_divisible_elements_subarray.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Arrays/miscellaneous/k_divisible_elements_subarray.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | //leetcode.com/problems/k-divisible-elements-subarrays/
#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
int countDistinct(vector<int>& nums, int k, int p) {
set<vector<int>> distinct_subarrays;
int multiples_of_p = 0;
for (int i = 0; i < nums.size(); ++i) {
... | 29.76 | 56 | 0.508065 | khushisinha20 |
203a102f86509c20df7e82f0cec3a908a06547bf | 2,459 | hpp | C++ | INCLUDE/json.hpp | n-mam/cpp-osl | 44f32d9e0670b30ff08f08f540e0f161f7d62965 | [
"MIT"
] | null | null | null | INCLUDE/json.hpp | n-mam/cpp-osl | 44f32d9e0670b30ff08f08f540e0f161f7d62965 | [
"MIT"
] | null | null | null | INCLUDE/json.hpp | n-mam/cpp-osl | 44f32d9e0670b30ff08f08f540e0f161f7d62965 | [
"MIT"
] | null | null | null | #ifndef JSON_HPP
#define JSON_HPP
#include <map>
#include <regex>
#include <string>
#include <vector>
#include <sstream>
#include <string.hpp>
class Json
{
public:
Json()
{
}
Json(const std::string& s)
{
iJsonString = s;
Parse();
}
~Json()
... | 16.727891 | 109 | 0.413176 | n-mam |
203a3fb00b88e7e7bac33472923c81858d9ec485 | 1,705 | cpp | C++ | Editor/Sources/o2Editor/Core/Properties/Basic/EnumProperty.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 181 | 2015-12-09T08:53:36.000Z | 2022-03-26T20:48:39.000Z | Editor/Sources/o2Editor/Core/Properties/Basic/EnumProperty.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 29 | 2016-04-22T08:24:04.000Z | 2022-03-06T07:06:28.000Z | Editor/Sources/o2Editor/Core/Properties/Basic/EnumProperty.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 13 | 2018-04-24T17:12:04.000Z | 2021-11-12T23:49:53.000Z | #include "o2Editor/stdafx.h"
#include "EnumProperty.h"
#include "o2/Scene/UI/Widgets/DropDown.h"
namespace Editor
{
EnumProperty::EnumProperty()
{}
EnumProperty::EnumProperty(const EnumProperty& other) :
TPropertyField<int>(other)
{
InitializeControls();
}
EnumProperty& EnumProperty::operator=(const EnumP... | 19.375 | 90 | 0.70088 | zenkovich |
203ae6d848b59e2bdcc89ce0d41f1f886bb6007b | 643 | cpp | C++ | Firmware/src/Buzzer/Buzzer.cpp | FERRERDEV/Mila | 80e9a0ba9e8d5e318a659f17523e3ab3a1d15dd4 | [
"MIT"
] | null | null | null | Firmware/src/Buzzer/Buzzer.cpp | FERRERDEV/Mila | 80e9a0ba9e8d5e318a659f17523e3ab3a1d15dd4 | [
"MIT"
] | null | null | null | Firmware/src/Buzzer/Buzzer.cpp | FERRERDEV/Mila | 80e9a0ba9e8d5e318a659f17523e3ab3a1d15dd4 | [
"MIT"
] | 1 | 2021-02-22T00:54:07.000Z | 2021-02-22T00:54:07.000Z | // Buzzer
#include "Buzzer.h"
// Arduino
#include "Arduino.h"
// Mila
#include "Mila.h"
Buzzer::Buzzer(int buzzerPin)
{
// Assign the buzzer pin.
this->buzzerPin = buzzerPin;
}
void Buzzer::playAlarm(alarm alarmToPlay, int loops)
{
bInfiniteAlarm = loops == -1;
while (bInfiniteAlarm)
{
for (int loop = loops... | 15.682927 | 74 | 0.642302 | FERRERDEV |
203d7e2a78cc55216f2452d82f56b547523ba228 | 4,345 | hh | C++ | psdaq/psdaq/eb/EbLfLink.hh | slac-lcls/pdsdata2 | 6e2ad4f830cadfe29764dbd280fa57f8f9edc451 | [
"BSD-3-Clause-LBNL"
] | null | null | null | psdaq/psdaq/eb/EbLfLink.hh | slac-lcls/pdsdata2 | 6e2ad4f830cadfe29764dbd280fa57f8f9edc451 | [
"BSD-3-Clause-LBNL"
] | null | null | null | psdaq/psdaq/eb/EbLfLink.hh | slac-lcls/pdsdata2 | 6e2ad4f830cadfe29764dbd280fa57f8f9edc451 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #ifndef Pds_Eb_EbLfLink_hh
#define Pds_Eb_EbLfLink_hh
#include "Endpoint.hh"
#include <stdint.h>
#include <cstddef>
#include <vector>
namespace Pds {
namespace Eb {
int setupMr(Fabrics::Fabric* fabric,
void* region,
size_t size,
... | 28.585526 | 104 | 0.560184 | slac-lcls |
203e80f0620ee2e5c2eaa63de1aea61ab20e64ea | 2,597 | hpp | C++ | example/resnet/model.hpp | wzppengpeng/LittleConv | 12aab4cfbbe965fa8b4053bb464db1165cc4ec31 | [
"MIT"
] | 93 | 2017-10-25T07:48:42.000Z | 2022-02-02T15:18:11.000Z | example/resnet/model.hpp | wzppengpeng/LittleConv | 12aab4cfbbe965fa8b4053bb464db1165cc4ec31 | [
"MIT"
] | null | null | null | example/resnet/model.hpp | wzppengpeng/LittleConv | 12aab4cfbbe965fa8b4053bb464db1165cc4ec31 | [
"MIT"
] | 20 | 2018-02-06T10:01:36.000Z | 2019-07-07T09:26:40.000Z | /**
* the model define by resnet
*/
#include "licon/licon.hpp"
using namespace std;
using namespace licon;
nn::NodePtr BasicBlock(int in_channel, int out_channel, int stride=1) {
auto basic_block = nn::Squential::CreateSquential();
auto conv_block = nn::Squential::CreateSquential();
conv_block->Add(nn... | 38.761194 | 83 | 0.644975 | wzppengpeng |
2040523da9fbf8fa9a4f9488a0b88c808831f963 | 655 | cpp | C++ | 383.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | 383.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | 383.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | //
// Created by pzz on 2021/10/20.
//
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
class Solution {
public:
bool canConstruct(string ransomNote, string magazine) {
int record[26] = {0};
for (char c: ransomNote)
record[c - 'a']++;
for (char ... | 18.194444 | 59 | 0.538931 | pengzhezhe |
204162dacd7d6099609d23ddb4a3b6737485e432 | 5,423 | cpp | C++ | TouchGFXPortTo_ILI9341_XPT2046_basic_yt_tut2/TouchGFX/generated/images/src/BitmapDatabase.cpp | trteodor/TouchGFX_Test | cd1abdef7e5a6f161ad35754fd951ea5de076021 | [
"MIT"
] | 1 | 2022-02-25T07:20:23.000Z | 2022-02-25T07:20:23.000Z | TouchGFXPortTo_ILI9341_XPT2046_basic_yt_tut2/TouchGFX/generated/images/src/BitmapDatabase.cpp | trteodor/TouchGFX_Test | cd1abdef7e5a6f161ad35754fd951ea5de076021 | [
"MIT"
] | null | null | null | TouchGFXPortTo_ILI9341_XPT2046_basic_yt_tut2/TouchGFX/generated/images/src/BitmapDatabase.cpp | trteodor/TouchGFX_Test | cd1abdef7e5a6f161ad35754fd951ea5de076021 | [
"MIT"
] | 1 | 2021-12-26T22:11:21.000Z | 2021-12-26T22:11:21.000Z | // 4.16.1 0x3fe153e6
// Generated by imageconverter. Please, do not edit!
#include <BitmapDatabase.hpp>
#include <touchgfx/Bitmap.hpp>
extern const unsigned char image_blue_radio_buttons_radio_button_active[]; // BITMAP_BLUE_RADIO_BUTTONS_RADIO_BUTTON_ACTIVE_ID = 0, Size: 44x44 pixels
extern const unsigned char image... | 84.734375 | 169 | 0.717868 | trteodor |
20419ff541ea6aea735c6d5731d25609bde79291 | 2,752 | cpp | C++ | cpp_harness/HarnessUtils.cpp | 13ofClubs/parHarness | 1e82dfabc64af8bced353a5236d1888def8f5dab | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cpp_harness/HarnessUtils.cpp | 13ofClubs/parHarness | 1e82dfabc64af8bced353a5236d1888def8f5dab | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cpp_harness/HarnessUtils.cpp | 13ofClubs/parHarness | 1e82dfabc64af8bced353a5236d1888def8f5dab | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
Copyright 2015 University of Rochester
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... | 22.193548 | 75 | 0.640625 | 13ofClubs |
20444e6d590c5db5d1d6fec05643d8a6815ecde1 | 1,360 | cpp | C++ | BOJ/boj13549_2.cpp | SukJinKim/Algo-Rhythm | db78de61643e9110ff0e721124a744e3b0ae27f0 | [
"MIT"
] | null | null | null | BOJ/boj13549_2.cpp | SukJinKim/Algo-Rhythm | db78de61643e9110ff0e721124a744e3b0ae27f0 | [
"MIT"
] | null | null | null | BOJ/boj13549_2.cpp | SukJinKim/Algo-Rhythm | db78de61643e9110ff0e721124a744e3b0ae27f0 | [
"MIT"
] | null | null | null | #include <array>
#include <deque>
#include <cstdio>
#include <limits>
#include <algorithm>
using namespace std;
const int MIN = 0;
const int MAX = (int)1e5;
const int INF = numeric_limits<int>::max();
array<int, MAX + 1> Time;
deque<int> dq;
bool inRange(int pos)
{
return (MIN <= pos && pos <= MAX);
}
int main... | 21.25 | 73 | 0.544118 | SukJinKim |
20499339390607b74e0dd42cd5506c14ce40cde5 | 1,230 | cpp | C++ | examples/cpp/reflection/nested_set_member/src/main.cpp | teh-cmc/flecs | ef6c366bae1142fa501d505ccb28d3e23d27ebc2 | [
"MIT"
] | 18 | 2021-09-17T16:41:14.000Z | 2022-02-01T15:22:20.000Z | examples/cpp/reflection/nested_set_member/src/main.cpp | teh-cmc/flecs | ef6c366bae1142fa501d505ccb28d3e23d27ebc2 | [
"MIT"
] | 36 | 2021-09-21T10:22:16.000Z | 2022-01-22T10:25:11.000Z | examples/cpp/reflection/nested_set_member/src/main.cpp | teh-cmc/flecs | ef6c366bae1142fa501d505ccb28d3e23d27ebc2 | [
"MIT"
] | 6 | 2021-09-26T11:06:32.000Z | 2022-01-21T15:07:05.000Z | #include <nested_set_member.h>
#include <iostream>
struct Point {
float x;
float y;
};
struct Line {
Point start;
Point stop;
};
int main(int, char *[]) {
flecs::world ecs;
ecs.component<Point>()
.member<float>("x")
.member<float>("y");
ecs.component<Line>()
.mem... | 24.117647 | 64 | 0.462602 | teh-cmc |
204f6459fdb6c2bea4b77a8d5378c20ebf959e0c | 6,821 | cpp | C++ | pcim.cpp | cshelton/pcim-plain | e48fa9ce3130f38a6b8da95d3fe121070d66d27d | [
"MIT"
] | 2 | 2018-09-17T10:03:12.000Z | 2021-01-10T03:09:14.000Z | pcim.cpp | cshelton/pcim-plain | e48fa9ce3130f38a6b8da95d3fe121070d66d27d | [
"MIT"
] | null | null | null | pcim.cpp | cshelton/pcim-plain | e48fa9ce3130f38a6b8da95d3fe121070d66d27d | [
"MIT"
] | 2 | 2018-04-13T01:37:28.000Z | 2019-02-01T16:44:33.000Z | #include "pcim.h"
#include <algorithm>
#include <cmath>
#include <mutex>
#include <future>
#include <queue>
#include "serial.h"
using namespace std;
inline vector<vartrajrange> torange(const vector<traj> &data) {
vector<vartrajrange> ret;
if (data.empty()) return ret;
int nv = data[0].size();
for(auto &x : data) ... | 27.393574 | 94 | 0.634218 | cshelton |
20556f7754c6f75e2f7ae5e881b60b422dae31dd | 7,378 | cpp | C++ | src/diffdrive_orientation.cpp | srmanikandasriram/ev3-ros | 8233c90934defd1db0616f8f83bc576e898c2a26 | [
"MIT"
] | 3 | 2016-11-30T19:23:16.000Z | 2020-07-13T12:16:08.000Z | src/diffdrive_orientation.cpp | srmanikandasriram/ev3-ros | 8233c90934defd1db0616f8f83bc576e898c2a26 | [
"MIT"
] | null | null | null | src/diffdrive_orientation.cpp | srmanikandasriram/ev3-ros | 8233c90934defd1db0616f8f83bc576e898c2a26 | [
"MIT"
] | 3 | 2016-11-30T19:23:19.000Z | 2019-06-19T14:46:18.000Z |
/*the srv file headers_ev3/go_to_goal.h should be of the form
float64 vecx
float64 vecy
---
float64 x
float64 y
float64 tf
This porgram enables the robot to orient itself along the vector (vecx,vecy) passed as request in rosservice call
*/
//Header files required to run ROS
#include <ros.h>
#include <nav_msgs... | 27.325926 | 149 | 0.561941 | srmanikandasriram |
2057181232b97d1b2157c851f24e60a42af468e8 | 197 | cpp | C++ | Content/Simulation/BodyInfo.cpp | jodavis42/NBody | 91a40ca60625494a27c517590d12df4a77f776b4 | [
"Unlicense"
] | null | null | null | Content/Simulation/BodyInfo.cpp | jodavis42/NBody | 91a40ca60625494a27c517590d12df4a77f776b4 | [
"Unlicense"
] | null | null | null | Content/Simulation/BodyInfo.cpp | jodavis42/NBody | 91a40ca60625494a27c517590d12df4a77f776b4 | [
"Unlicense"
] | 1 | 2018-12-07T22:19:06.000Z | 2018-12-07T22:19:06.000Z | #include "SimulationPrecompiled.hpp"
void BodyInfo::Load(Cog* cog)
{
mCog = cog;
mPosition = cog->has(Transform)->GetWorldTranslation();
mMass = cog->has(RigidBody)->GetMass();
}
| 19.7 | 58 | 0.659898 | jodavis42 |
20594cf85d943b944ec1da286269fbb073d497e5 | 1,544 | hpp | C++ | include/codegen/include/GlobalNamespace/ObstacleType.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/ObstacleType.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/ObstacleType.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.Enum
#include "System/Enum.hpp"
// Completed inc... | 40.631579 | 76 | 0.709845 | Futuremappermydud |
205c73ec2df4c3f9c85c202af7aaad2b4ad2eddb | 196 | cpp | C++ | src/better_ChatEntry.cpp | ddarknut/better | 47d801c4fa8de6c32dff933de7d25b559421ce09 | [
"Apache-2.0"
] | 5 | 2020-11-21T03:44:17.000Z | 2021-07-10T22:51:28.000Z | src/better_ChatEntry.cpp | ddarknut/better | 47d801c4fa8de6c32dff933de7d25b559421ce09 | [
"Apache-2.0"
] | null | null | null | src/better_ChatEntry.cpp | ddarknut/better | 47d801c4fa8de6c32dff933de7d25b559421ce09 | [
"Apache-2.0"
] | 1 | 2021-03-24T20:33:57.000Z | 2021-03-24T20:33:57.000Z | #include <cstdlib>
#include "better_ChatEntry.h"
#include "better_alloc.h"
void ChatEntry_free(ChatEntry* ce)
{
if (ce->name) BETTER_FREE(ce->name);
if (ce->msg) BETTER_FREE(ce->msg);
}
| 19.6 | 40 | 0.688776 | ddarknut |
205d4591ca401d01d1c69f660ebf63b30638c5a4 | 1,203 | cpp | C++ | LeetCode/cpp/127.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/cpp/127.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/cpp/127.cpp | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution {
public:
int ladderLength(string beginWord, string endWord, vector<string> &wordList) {
int n = beginWord.size(), count = 0;
if (n != endWord.size())
return 0;
unordered_map<string, bool> words;
for (auto &l:wordList)
words[l] = true;
q... | 30.846154 | 82 | 0.375727 | ZintrulCre |
206014f9e1269c5b0983deaea1dd932752f2a279 | 2,447 | cpp | C++ | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcReferentTypeEnum.cpp | AlexVlk/ifcplusplus | 2f8cd5457312282b8d90b261dbf8fb66e1c84057 | [
"MIT"
] | 426 | 2015-04-12T10:00:46.000Z | 2022-03-29T11:03:02.000Z | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcReferentTypeEnum.cpp | AlexVlk/ifcplusplus | 2f8cd5457312282b8d90b261dbf8fb66e1c84057 | [
"MIT"
] | 124 | 2015-05-15T05:51:00.000Z | 2022-02-09T15:25:12.000Z | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcReferentTypeEnum.cpp | AlexVlk/ifcplusplus | 2f8cd5457312282b8d90b261dbf8fb66e1c84057 | [
"MIT"
] | 214 | 2015-05-06T07:30:37.000Z | 2022-03-26T16:14:04.000Z | /* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <sstream>
#include <limits>
#include <map>
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/writer/WriterUtil.h"
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/IFC4/include/IfcReferentTypeE... | 34.464789 | 154 | 0.734369 | AlexVlk |
20605f6282406f6912e3e3f5bd55441cfc49d0b0 | 617 | cpp | C++ | mine/46-permutations.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | mine/46-permutations.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | mine/46-permutations.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> ans;
void recursiveBody(vector<int>& nums, int sz, vector<int>& perm){
if(sz == 0) { ans.push_back(perm); return; }
for(int i = 0; i < sz; ++i){
perm.push_back(nums[i]);
nums.erase(nums.begin()+i);
recu... | 29.380952 | 70 | 0.504052 | Junlin-Yin |
206439cbbf0308036f2856125ffde097e5b80495 | 8,088 | hpp | C++ | keychain_lib/include/keychain_lib/secmod_protocol.hpp | jokefor300/array-io-keychain | 1c281b76332af339f0456de51caf65cae9950c91 | [
"MIT"
] | 29 | 2018-03-21T09:21:18.000Z | 2020-09-22T16:31:03.000Z | keychain_lib/include/keychain_lib/secmod_protocol.hpp | jokefor300/array-io-keychain | 1c281b76332af339f0456de51caf65cae9950c91 | [
"MIT"
] | 119 | 2018-03-16T14:02:04.000Z | 2019-04-16T21:16:32.000Z | keychain_lib/include/keychain_lib/secmod_protocol.hpp | jokefor300/array-io-keychain | 1c281b76332af339f0456de51caf65cae9950c91 | [
"MIT"
] | 3 | 2018-03-21T15:00:16.000Z | 2019-12-25T09:03:58.000Z | // Created by roman on 8/12/18.
//
#ifndef KEYCHAINAPP_KEYCHAIN_SEC_MOD_PROTOCOL_HPP
#define KEYCHAINAPP_KEYCHAIN_SEC_MOD_PROTOCOL_HPP
#include <string>
#include <fc_light/variant.hpp>
#include <fc_light/io/json.hpp>
#include <fc_light/reflect/reflect.hpp>
#include <fc_light/reflect/variant.hpp>
#include "bitcoin_tra... | 26.781457 | 193 | 0.740232 | jokefor300 |
206455e8ab5621e90739dc80f9a12d67d0628933 | 1,703 | hpp | C++ | include/problem/composition_8.hpp | tsakiridis/deplusplus | 383754182c929ab51d9af045bbf138d6d74c009c | [
"MIT"
] | null | null | null | include/problem/composition_8.hpp | tsakiridis/deplusplus | 383754182c929ab51d9af045bbf138d6d74c009c | [
"MIT"
] | null | null | null | include/problem/composition_8.hpp | tsakiridis/deplusplus | 383754182c929ab51d9af045bbf138d6d74c009c | [
"MIT"
] | null | null | null | #ifndef DE_OPTIMIZATION_PROBLEM_COMPOSITION_FUNCTION_8_HPP
#define DE_OPTIMIZATION_PROBLEM_COMPOSITION_FUNCTION_8_HPP
#include "problem/cec_composition_function.hpp"
#include "problem/ackley.hpp"
#include "problem/griewank.hpp"
#include "problem/discus.hpp"
#include "problem/rosenbrock.hpp"
#include "problem/happycat.... | 38.704545 | 77 | 0.669407 | tsakiridis |
206561929d985c270fafe9ca79f362fc0f9868a9 | 374 | cpp | C++ | ComputerGraphics/src/Main.cpp | gerrygoo/graficas | 443832dc6820c0a93c8291831109e3248f57f9b0 | [
"MIT"
] | null | null | null | ComputerGraphics/src/Main.cpp | gerrygoo/graficas | 443832dc6820c0a93c8291831109e3248f57f9b0 | [
"MIT"
] | null | null | null | ComputerGraphics/src/Main.cpp | gerrygoo/graficas | 443832dc6820c0a93c8291831109e3248f57f9b0 | [
"MIT"
] | null | null | null | // #include <string>
// #include "scene_manager.h"
// #include <glad/glad.h>
// int main(int argc, char* argv[])
// {
// scene_manager::start(argc, argv, "Hello, World!", 800, 800);
// return 0;
// }
#include <iostream>
#include "scene_manager.h"
#include <vector>
int main(int argc, char* argv[]) {
scene_mana... | 19.684211 | 65 | 0.631016 | gerrygoo |
206a5c78743dfa16273ef830cac78f9fc98e52c3 | 225 | cc | C++ | build/ARM/python/m5/internal/param_ClockDomain.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_ClockDomain.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_ClockDomain.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
extern "C" {
void init_param_ClockDomain();
}
EmbeddedSwig embed_swig_param_ClockDomain(init_param_ClockDomain, "m5.internal._param_ClockDomain");
| 25 | 108 | 0.617778 | Jakgn |
206fce9b09872b55229c545460ca01e62d203ac9 | 3,152 | cpp | C++ | aws-cpp-sdk-ce/source/model/PlatformDifference.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-ce/source/model/PlatformDifference.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-ce/source/model/PlatformDifference.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ce/model/PlatformDifference.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
... | 34.26087 | 116 | 0.650381 | perfectrecall |
2071919f1d637958bc0d7a11ee95de66e045a410 | 3,176 | cpp | C++ | modules/filters/src/detection/detectedObject.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/filters/src/detection/detectedObject.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/filters/src/detection/detectedObject.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2018 Simon Vogl <svogl@voxel.at>
Angel Merino-Sastre <amerino@voxel.at>
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/licen... | 25.821138 | 122 | 0.67034 | voxel-dot-at |
2077a119247db1b7412879ef7d764425b631c1cc | 840 | hpp | C++ | src/map.hpp | REPOmAN2v2/Mindstorm-rover | 1529a02f246eaa5132be2b34bba27df6dc776ead | [
"MIT",
"Unlicense"
] | null | null | null | src/map.hpp | REPOmAN2v2/Mindstorm-rover | 1529a02f246eaa5132be2b34bba27df6dc776ead | [
"MIT",
"Unlicense"
] | null | null | null | src/map.hpp | REPOmAN2v2/Mindstorm-rover | 1529a02f246eaa5132be2b34bba27df6dc776ead | [
"MIT",
"Unlicense"
] | null | null | null | #ifndef MAP_HPP_INCLUDED
#define MAP_HPP_INCLUDED
#include <vector>
#include <utility>
#include <queue>
#include "cell.hpp"
class Map {
public:
// The map is composed of a 2D vector of cells
std::vector< std::vector< Cell > > cells;
// Queue of map states (a new state is created everytime something changes
// on ... | 26.25 | 89 | 0.680952 | REPOmAN2v2 |
207933cf4a9423cc0d3fde9eb79e0c3c1e95c057 | 213 | cpp | C++ | DSA/Bit Manipulation/5.Find position of the only set bit.cpp | mridul8920/winter-of-contributing | 9ee7c32cf6568c01f6a5263f4130e8edebb442fb | [
"MIT"
] | null | null | null | DSA/Bit Manipulation/5.Find position of the only set bit.cpp | mridul8920/winter-of-contributing | 9ee7c32cf6568c01f6a5263f4130e8edebb442fb | [
"MIT"
] | null | null | null | DSA/Bit Manipulation/5.Find position of the only set bit.cpp | mridul8920/winter-of-contributing | 9ee7c32cf6568c01f6a5263f4130e8edebb442fb | [
"MIT"
] | null | null | null | int findPosition(int N) {
int pos = 0, count = 0;
while (N != 0) {
if (N & 1 == 1) {
count++;
}
pos++;
N = N >> 1;
}
if (count == 0 || count > 1) {
return -1;
}
return pos;
}
| 14.2 | 32 | 0.399061 | mridul8920 |
207cf53ad626a85fd8461da773ae0dd74669854a | 10,573 | cpp | C++ | WTesterClient/widget_answer.cpp | RockRockWhite/WTester | 50a9de8ba7c48738eb054680d6eae0a2fc0c06e3 | [
"MIT"
] | null | null | null | WTesterClient/widget_answer.cpp | RockRockWhite/WTester | 50a9de8ba7c48738eb054680d6eae0a2fc0c06e3 | [
"MIT"
] | null | null | null | WTesterClient/widget_answer.cpp | RockRockWhite/WTester | 50a9de8ba7c48738eb054680d6eae0a2fc0c06e3 | [
"MIT"
] | null | null | null | #include "widget_answer.h"
#include "ui_widget_answer.h"
#include <QMessageBox>
#include <cmath>
#include <QTimer>
#include <QTextEdit>
#include <QCheckBox>
#include <QTcpSocket>
#pragma execution_character_set("utf-8")
extern QStringList question;
extern QString time;
QString errorNum;
QStringList answer,answer_u,e... | 27.823684 | 207 | 0.449352 | RockRockWhite |
207d572ba60eeb4b1900d9ccacff00a0cb24ca2e | 600 | cpp | C++ | plugins/single_plugins/autostart.cpp | SirCmpwn/wayfire | 007452f6ccc07ceca51879187bba142431832382 | [
"MIT"
] | 3 | 2019-01-16T14:43:24.000Z | 2019-10-09T10:07:33.000Z | plugins/single_plugins/autostart.cpp | SirCmpwn/wayfire | 007452f6ccc07ceca51879187bba142431832382 | [
"MIT"
] | null | null | null | plugins/single_plugins/autostart.cpp | SirCmpwn/wayfire | 007452f6ccc07ceca51879187bba142431832382 | [
"MIT"
] | 1 | 2019-05-07T09:46:58.000Z | 2019-05-07T09:46:58.000Z | #include <plugin.hpp>
#include "../../shared/config.hpp"
#include <core.hpp>
class wayfire_autostart : public wayfire_plugin_t
{
public:
void init(wayfire_config *config)
{
/* make sure we are run only when adding the first output */
if (core->get_next_output(output) != output)
... | 21.428571 | 68 | 0.613333 | SirCmpwn |
2083b0b313c271d325b3c26f93d5e7b738e8d634 | 657 | cpp | C++ | DxLibEngine/base/Input.cpp | darknesswind/LiteSTG | ec24641948369e6ee1a3bdcc0d6b78515f1a0374 | [
"MIT"
] | 2 | 2015-09-11T08:17:20.000Z | 2018-03-13T07:21:15.000Z | DxLibEngine/base/Input.cpp | darknesswind/LiteSTG | ec24641948369e6ee1a3bdcc0d6b78515f1a0374 | [
"MIT"
] | null | null | null | DxLibEngine/base/Input.cpp | darknesswind/LiteSTG | ec24641948369e6ee1a3bdcc0d6b78515f1a0374 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Input.h"
LInput::LInput(void)
: m_nJoyNum(0)
{
m_curKeyState.fill(0);
m_keyList.fill(KeyState::None);
m_logicKeyMap.fill(Keys::None);
m_nJoyNum = DxLib::GetJoypadNum();
}
LInput::~LInput(void)
{
}
bool LInput::update()
{
const bool bSucceed = (0 == DxLib::GetHitKeyStateAll(m_curK... | 22.655172 | 107 | 0.656012 | darknesswind |
20891035a5804095b2634ce802a9eb9d4f7f906b | 2,244 | cpp | C++ | Source/Application.cpp | michal-z/PerfExperiments | 4431a74cb90407d7cd3645c4f218eaccd8516ea1 | [
"MIT"
] | 1 | 2021-11-07T07:22:47.000Z | 2021-11-07T07:22:47.000Z | Source/Application.cpp | michal-z/MyPerfExperiments | 4431a74cb90407d7cd3645c4f218eaccd8516ea1 | [
"MIT"
] | null | null | null | Source/Application.cpp | michal-z/MyPerfExperiments | 4431a74cb90407d7cd3645c4f218eaccd8516ea1 | [
"MIT"
] | null | null | null | #include "Pch.h"
#include "Application.h"
FApplication GApp;
void FApplication::Initialize()
{
QueryPerformanceCounter(&StartCounter);
QueryPerformanceFrequency(&Frequency);
SetProcessDPIAware();
MakeWindow(1280, 720);
}
void FApplication::Update()
{
UpdateFrameTime();
}
double FApplication::GetTime()
{
LARG... | 22.44 | 110 | 0.720588 | michal-z |
20899eef7027a43b056777e704f0326e9a4149b3 | 3,226 | hpp | C++ | src/ibeo_8l_sdk/src/ibeosdk/devices/IbeoEcu.hpp | tomcamp0228/ibeo_ros2 | ff56c88d6e82440ae3ce4de08f2745707c354604 | [
"MIT"
] | 1 | 2020-06-19T11:01:49.000Z | 2020-06-19T11:01:49.000Z | include/ibeosdk/devices/IbeoEcu.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | null | null | null | include/ibeosdk/devices/IbeoEcu.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | 2 | 2020-06-19T11:01:48.000Z | 2020-10-29T03:07:14.000Z | //======================================================================
/*! \file IbeoEcu.hpp
*
* \copydoc Copyright
* \author Mario Brumm (mb)
* \date Apr 24, 2012
*///-------------------------------------------------------------------
#ifndef IBEOSDK_IBEOECU_HPP_SEEN
#define IBEOSDK_IBEOECU_HPP_SEEN
//=======... | 33.604167 | 127 | 0.450713 | tomcamp0228 |
208e31af872d140780be8836b8f8eb79ca09ca06 | 393 | hpp | C++ | inc/rook/ast/call.hpp | Vandise/Gambit-Archive | 6db1921d99d76cd10f8f1bd25c46776d435d85a7 | [
"MIT"
] | 1 | 2019-02-20T19:19:23.000Z | 2019-02-20T19:19:23.000Z | inc/rook/ast/call.hpp | Vandise/Gambit-Archive | 6db1921d99d76cd10f8f1bd25c46776d435d85a7 | [
"MIT"
] | null | null | null | inc/rook/ast/call.hpp | Vandise/Gambit-Archive | 6db1921d99d76cd10f8f1bd25c46776d435d85a7 | [
"MIT"
] | null | null | null | #ifndef __ROOK_CALLNODE
#define __ROOK_CALLNODE 1
#include "rook/ast/node.hpp"
#include <vector>
namespace RookAST
{
class CallNode : public RookAST::Node
{
protected:
std::string methodSignature;
int parameters;
public:
CallNode(std::string methodSignature, int parameters);
~... | 14.035714 | 60 | 0.669211 | Vandise |
209c4d620b6ba3e6717ab1b61a5efd30e62a2e99 | 1,036 | cpp | C++ | client/core/layers.cpp | syby119/icloth-web-application | 241d894b5f4805964ab7991b5ccb62e44a6aa7cb | [
"MIT"
] | 2 | 2021-11-12T05:53:48.000Z | 2021-11-12T05:53:59.000Z | client/core/layers.cpp | syby119/icloth-web-application | 241d894b5f4805964ab7991b5ccb62e44a6aa7cb | [
"MIT"
] | null | null | null | client/core/layers.cpp | syby119/icloth-web-application | 241d894b5f4805964ab7991b5ccb62e44a6aa7cb | [
"MIT"
] | null | null | null | #include <iostream>
#include "layers.h"
void Layers::set(int channel) noexcept {
_mask = 1 << channel;
}
void Layers::enable(int channel) noexcept {
_mask |= 1 << channel;
}
void Layers::enableAll() noexcept {
_mask = 0xFFFFFFFF;
}
void Layers::toggle(int channel) noexcept {
_mask ^= 1 << channel;
}... | 20.72 | 66 | 0.563707 | syby119 |
209cfe14153b98e74ba62878d208d95657a39e11 | 7,524 | cc | C++ | naos/src/kernel/arch/cpu.cc | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | 14 | 2020-02-12T11:07:58.000Z | 2022-02-02T00:05:08.000Z | naos/src/kernel/arch/cpu.cc | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | null | null | null | naos/src/kernel/arch/cpu.cc | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | 4 | 2020-02-27T09:53:53.000Z | 2021-11-07T17:43:44.000Z | #include "kernel/arch/cpu.hpp"
#include "kernel/arch/klib.hpp"
#include "kernel/arch/task.hpp"
#include "kernel/arch/tss.hpp"
#include "kernel/arch/paging.hpp"
#include "kernel/mm/vm.hpp"
#include "kernel/mm/memory.hpp"
#include "kernel/mm/mm.hpp"
#include "kernel/task.hpp"
#include "kernel/trace.hpp"
#include "kernel/... | 31.881356 | 118 | 0.68009 | kadds |
20a2ae88676f1ed59012289a780288c9fb47879c | 7,181 | hpp | C++ | QtDemoApp/auth/smbios.hpp | F474M0R64N4/license-system | 982f1297948353b58d736009a08c697c3e15a41b | [
"MIT"
] | 4 | 2020-10-13T19:57:16.000Z | 2021-09-08T11:57:12.000Z | client/client/src/auth/smbios.hpp | F474M0R64N4/license-system | 982f1297948353b58d736009a08c697c3e15a41b | [
"MIT"
] | null | null | null | client/client/src/auth/smbios.hpp | F474M0R64N4/license-system | 982f1297948353b58d736009a08c697c3e15a41b | [
"MIT"
] | null | null | null | #ifndef SMBIOS_H
#define SMBIOS_H
#pragma once
#include <cstdint>
#include <vector>
namespace smbios
{
namespace types
{
enum
{
bios_info = 0,
// Required
system_info = 1,
// Required
baseboard_info = 2,
module_info = 2,
system_enclosure = 3,
// Required
system_chassis = 3,
// Requ... | 17.179426 | 69 | 0.682495 | F474M0R64N4 |
20a36919a2849dc05936f9aedecf1dcbee09ae40 | 2,536 | cc | C++ | test/integration/kinetic_energy_monitor_system.cc | jasmeet0915/ign-gazebo | fc2a98ec5e1b149d773eeb6cae4a407bd82a81a2 | [
"ECL-2.0",
"Apache-2.0"
] | 198 | 2020-04-15T16:56:09.000Z | 2022-03-27T12:31:08.000Z | test/integration/kinetic_energy_monitor_system.cc | jasmeet0915/ign-gazebo | fc2a98ec5e1b149d773eeb6cae4a407bd82a81a2 | [
"ECL-2.0",
"Apache-2.0"
] | 1,220 | 2020-04-15T18:10:29.000Z | 2022-03-31T22:37:06.000Z | test/integration/kinetic_energy_monitor_system.cc | jasmeet0915/ign-gazebo | fc2a98ec5e1b149d773eeb6cae4a407bd82a81a2 | [
"ECL-2.0",
"Apache-2.0"
] | 134 | 2020-04-15T16:59:57.000Z | 2022-03-26T08:51:31.000Z | /*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* 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 appl... | 26.416667 | 76 | 0.69164 | jasmeet0915 |
20a383dc150347f4a66ce92e9e3607015dc031dd | 10,264 | cpp | C++ | src/game/server/hl2/grenade_tripwire.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/server/hl2/grenade_tripwire.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/server/hl2/grenade_tripwire.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Implements the tripmine grenade.
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "util.h"
#include "shake.h"
#include "grenade_tripwire.h"
#inc... | 25.853904 | 183 | 0.651598 | cstom4994 |
20a421a21adb494f67bfd0333cb69b1258419f2e | 210 | cpp | C++ | 2014/Communications/car-wire/slave_car_wire.cpp | WE-Bots/project-car-archive | 388fabc6e6c0cdde76a91d8277e29d29f01c5087 | [
"MIT"
] | null | null | null | 2014/Communications/car-wire/slave_car_wire.cpp | WE-Bots/project-car-archive | 388fabc6e6c0cdde76a91d8277e29d29f01c5087 | [
"MIT"
] | null | null | null | 2014/Communications/car-wire/slave_car_wire.cpp | WE-Bots/project-car-archive | 388fabc6e6c0cdde76a91d8277e29d29f01c5087 | [
"MIT"
] | 1 | 2018-08-15T14:30:54.000Z | 2018-08-15T14:30:54.000Z | #include "slave_car_wire.h"
void slave_car_wire::receiveEvent(){
if (Wire.available()){}
_cmd = Wire.readByte();
}
}
void slave_car_wire::requestEvent(){
//You kinda need to write this one yourself
} | 14 | 44 | 0.7 | WE-Bots |
20a626f8336273447e6fe5faa3a0fb2513d6251c | 55 | hpp | C++ | addons/admin/functions/script_component.hpp | ARCOMMADMIN/ARCORE | 5d8a632017abb646e6f01aa3eebf6c0747028213 | [
"MIT"
] | 1 | 2018-02-15T07:43:55.000Z | 2018-02-15T07:43:55.000Z | addons/admin/functions/script_component.hpp | ARCOMMADMIN/ARCORE | 5d8a632017abb646e6f01aa3eebf6c0747028213 | [
"MIT"
] | 36 | 2017-07-08T21:25:36.000Z | 2020-05-03T18:59:23.000Z | addons/admin/functions/script_component.hpp | ARCOMMADMIN/ARCORE | 5d8a632017abb646e6f01aa3eebf6c0747028213 | [
"MIT"
] | 4 | 2019-08-01T00:19:01.000Z | 2020-05-07T20:40:38.000Z | #include "\z\arcore\addons\admin\script_component.hpp"
| 27.5 | 54 | 0.8 | ARCOMMADMIN |
20a87caf8f6c132cf5237aa225734403bf7d678b | 286 | cpp | C++ | test_ext_core.cpp | tz-lom/thir | c85482f9fe6f7ecdfd9db6960f8e8277b3fe3979 | [
"MIT"
] | null | null | null | test_ext_core.cpp | tz-lom/thir | c85482f9fe6f7ecdfd9db6960f8e8277b3fe3979 | [
"MIT"
] | null | null | null | test_ext_core.cpp | tz-lom/thir | c85482f9fe6f7ecdfd9db6960f8e8277b3fe3979 | [
"MIT"
] | null | null | null | #include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/stringize.hpp>
#include BOOST_PP_STRINGIZE(BOOST_PP_CAT(BOOST_PP_CAT(test_ext_, THIR_TEST_EXTENSION), _.h))
int main(int argc, char *argv[])
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
| 26 | 92 | 0.751748 | tz-lom |
20a8d17dbb8eb529256e1e9c377f8c032ecc34bf | 280 | hpp | C++ | src/Elba/Graphics/GraphicsForwardDeclarations.hpp | nicholasammann/kotor-builder | ab0e042c09974a024a9884c6f9e34cf85ad63eeb | [
"MIT"
] | 1 | 2018-10-01T19:34:57.000Z | 2018-10-01T19:34:57.000Z | src/Elba/Graphics/GraphicsForwardDeclarations.hpp | nicholasammann/kotor-builder | ab0e042c09974a024a9884c6f9e34cf85ad63eeb | [
"MIT"
] | 9 | 2018-09-09T16:07:22.000Z | 2018-11-06T20:34:30.000Z | src/Elba/Graphics/GraphicsForwardDeclarations.hpp | nicholasammann/kotor-builder | ab0e042c09974a024a9884c6f9e34cf85ad63eeb | [
"MIT"
] | null | null | null | /**
* \file GraphicsForwardDeclarations.hpp
* \author Nicholas Ammann
* \date 2/24/2018
* \brief Forward declarations for all graphics classes.
*/
#pragma once
namespace Elba
{
class GraphicsModule;
class GraphicsFactory;
class Mesh;
class Submesh;
} // End of Elba namespace
| 14.736842 | 55 | 0.753571 | nicholasammann |
20a9fe709a650a0488eabb4e8d111ad85844a408 | 923 | cpp | C++ | codeforces/1480/A.cpp | gnomegeek/cp-submissions | c046be42876794d7cc6216db4e44a23c1174742d | [
"MIT"
] | null | null | null | codeforces/1480/A.cpp | gnomegeek/cp-submissions | c046be42876794d7cc6216db4e44a23c1174742d | [
"MIT"
] | null | null | null | codeforces/1480/A.cpp | gnomegeek/cp-submissions | c046be42876794d7cc6216db4e44a23c1174742d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define inf INT_MAX
#define int long long
#define ump unordered_map
#define endl "\n"
#define mod 1000000007
void OJ() {
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
}
void lego() {
string s;
cin >> s;
... | 17.75 | 39 | 0.422535 | gnomegeek |
20b975eab6655b804b6e51d9954e802b1fe52f69 | 686 | cpp | C++ | All About C/Pointers/4. Arithmatic Operation 1.cpp | tausiq2003/C-with-DS | 3ec324b180456116b03aec58f2a85025180af9aa | [
"Apache-2.0"
] | 7 | 2020-10-01T13:31:02.000Z | 2021-11-06T16:22:31.000Z | All About C/Pointers/4. Arithmatic Operation 1.cpp | tausiq2003/C-with-DS | 3ec324b180456116b03aec58f2a85025180af9aa | [
"Apache-2.0"
] | 9 | 2020-10-01T10:35:59.000Z | 2021-10-03T15:00:18.000Z | All About C/Pointers/4. Arithmatic Operation 1.cpp | tausiq2003/C-with-DS | 3ec324b180456116b03aec58f2a85025180af9aa | [
"Apache-2.0"
] | 44 | 2020-10-01T08:49:30.000Z | 2021-10-31T18:19:48.000Z | #include<iostream>
using namespace std;
int main(){
int A[]{1,2,3,4,5,6};
int *p=A;
//base address of A is given to pointer P.
cout<<*p<<endl;
cout<<p<<endl;
// output will be 1 and address
p++; //writing *p++ is not necessory.
cout<<*p<<endl; // * is used for derefrencing, it will print address without... | 19.6 | 145 | 0.625364 | tausiq2003 |
20be09e4c096718daf43243eb9724aeaaed76ec1 | 1,508 | cpp | C++ | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise6.cpp | Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 9 | 2018-10-24T15:16:47.000Z | 2021-12-14T13:53:50.000Z | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise6.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | null | null | null | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise6.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 7 | 2018-10-29T15:30:37.000Z | 2021-01-18T15:15:09.000Z | /*
TITLE Comparison & Ordering Chapter3Exercise6.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Put in order three input numbers;
Next to each other if they are equal.
Input: Requests 3 numbers.
Output: Prints numbers in order.
Author: Ch... | 25.559322 | 80 | 0.547082 | Ziezi |
20be582a26d284e303c4f964404cc071d7226025 | 694 | cpp | C++ | problem_solving/SPOJ/OPCPIZZA/14158584_AC_180ms_16384kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 2 | 2020-09-02T12:07:47.000Z | 2020-11-17T11:17:16.000Z | problem_solving/SPOJ/OPCPIZZA/14158584_AC_180ms_16384kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | null | null | null | problem_solving/SPOJ/OPCPIZZA/14158584_AC_180ms_16384kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 4 | 2020-08-11T14:23:34.000Z | 2020-11-17T10:52:31.000Z | #include <bits/stdc++.h>
#define le 100005
using namespace std;
int n[le];
bool fnc(int a, int b, int key){
int lo = a + 1, hi = b - 1, mid;
while(lo <= hi){
mid = (lo + hi) >> 1;
if(n[mid] == key) return 1;
else if(n[mid] > key) hi = mid - 1;
else lo = mid + 1;
}
return ... | 23.931034 | 57 | 0.402017 | cosmicray001 |
20c083c60bc05f9a0c0cc3e8f1f6fdf391477339 | 2,743 | cpp | C++ | src/Network/NetworkDevice.cpp | Harsh14901/COP290-Pacman | e9f821f0351a0ead5ed89becab81a3c8c0a7c18e | [
"BSD-3-Clause"
] | null | null | null | src/Network/NetworkDevice.cpp | Harsh14901/COP290-Pacman | e9f821f0351a0ead5ed89becab81a3c8c0a7c18e | [
"BSD-3-Clause"
] | null | null | null | src/Network/NetworkDevice.cpp | Harsh14901/COP290-Pacman | e9f821f0351a0ead5ed89becab81a3c8c0a7c18e | [
"BSD-3-Clause"
] | null | null | null | #include "Network/NetworkDevice.hpp"
#include "Network/Packet.hpp"
const int NetworkDevice::MAX_BUFFER;
NetworkDevice::NetworkDevice() {
recv_socket = nullptr;
send_socket = nullptr;
ps_buffer = queue<PacketStore>();
}
NetworkDevice::NetworkDevice(TCPsocket* recv_socket, TCPsocket* send_socket)
: recv_sock... | 28.278351 | 77 | 0.65731 | Harsh14901 |
20c0cb79b7ebfbf47fa19688903bde1eec2ce3f1 | 4,775 | cpp | C++ | gui/renderers/VolumeRenderer.cpp | pavelsevecek/OpenSPH | d547c0af6270a739d772a4dcba8a70dc01775367 | [
"MIT"
] | 20 | 2021-04-02T04:30:08.000Z | 2022-03-01T09:52:01.000Z | gui/renderers/VolumeRenderer.cpp | pavelsevecek/OpenSPH | d547c0af6270a739d772a4dcba8a70dc01775367 | [
"MIT"
] | null | null | null | gui/renderers/VolumeRenderer.cpp | pavelsevecek/OpenSPH | d547c0af6270a739d772a4dcba8a70dc01775367 | [
"MIT"
] | 1 | 2022-01-22T11:44:52.000Z | 2022-01-22T11:44:52.000Z | #include "gui/renderers/VolumeRenderer.h"
#include "gui/Factory.h"
#include "gui/objects/Camera.h"
#include "gui/objects/Colorizer.h"
#include "gui/renderers/FrameBuffer.h"
#include "objects/finders/KdTree.h"
#include "objects/utility/OutputIterators.h"
NAMESPACE_SPH_BEGIN
VolumeRenderer::VolumeRenderer(SharedPtr<ISc... | 37.015504 | 108 | 0.639372 | pavelsevecek |
20c12672fee4df28192a7f10dc5e6dc040f2090a | 606 | hh | C++ | click/elements/local/igmp/AddIPRouterAlertOption.hh | BasilRommens/IGMPv3-click | cb5d63192f0c0344d35dab35d928835c7c6f370f | [
"MIT"
] | null | null | null | click/elements/local/igmp/AddIPRouterAlertOption.hh | BasilRommens/IGMPv3-click | cb5d63192f0c0344d35dab35d928835c7c6f370f | [
"MIT"
] | null | null | null | click/elements/local/igmp/AddIPRouterAlertOption.hh | BasilRommens/IGMPv3-click | cb5d63192f0c0344d35dab35d928835c7c6f370f | [
"MIT"
] | null | null | null | #ifndef CLICK_AddIPRouterAlertOption_HH
#define CLICK_AddIPRouterAlertOption_HH
#include <click/element.hh>
#include <click/ipaddress.hh>
CLICK_DECLS
class AddIPRouterAlertOption : public Element {
public:
AddIPRouterAlertOption();
~AddIPRouterAlertOption();
const char *class_name() const { return "AddI... | 24.24 | 71 | 0.745875 | BasilRommens |
20c1a34f72fe6a0be98b8dda94854aaee65158a7 | 14,843 | hpp | C++ | library/src/include/tensile_host.hpp | amcamd/rocBLAS | f0986a922269c2fe343c414ec13a055cf8574bc3 | [
"MIT"
] | null | null | null | library/src/include/tensile_host.hpp | amcamd/rocBLAS | f0986a922269c2fe343c414ec13a055cf8574bc3 | [
"MIT"
] | null | null | null | library/src/include/tensile_host.hpp | amcamd/rocBLAS | f0986a922269c2fe343c414ec13a055cf8574bc3 | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright 2019-2021 Advanced Micro Devices, Inc.
* ************************************************************************/
/*********************************************************
* Declaration of the rocBLAS<->Tensile interface layer... | 39.687166 | 98 | 0.418042 | amcamd |
20c3c75d9d3987d1ed165025b829f6e846b99d79 | 2,111 | cpp | C++ | src/bluecadet/tangibleengine/TangibleEngineSimulator.cpp | bluecadet/Cinder-BluecadetTangibleEngine | a96e08a8a4556d5699aea90cd04e687999e772a5 | [
"MIT"
] | null | null | null | src/bluecadet/tangibleengine/TangibleEngineSimulator.cpp | bluecadet/Cinder-BluecadetTangibleEngine | a96e08a8a4556d5699aea90cd04e687999e772a5 | [
"MIT"
] | null | null | null | src/bluecadet/tangibleengine/TangibleEngineSimulator.cpp | bluecadet/Cinder-BluecadetTangibleEngine | a96e08a8a4556d5699aea90cd04e687999e772a5 | [
"MIT"
] | null | null | null | #include "TangibleEngineSimulator.h"
#include "cinder/Log.h"
#include "cinder/Color.h"
#include "bluecadet/core/ScreenCamera.h"
#include "bluecadet/views/EllipseView.h"
using namespace ci;
using namespace ci::app;
using namespace std;
namespace bluecadet {
namespace tangibleengine {
//=============================... | 23.455556 | 128 | 0.704879 | bluecadet |
20c737737bdc0360fd1d7e3b6522b18c4d90ae0e | 381 | cc | C++ | BOJ/2953.cc | Yaminyam/Algorithm | fe49b37b4b310f03273864bcd193fe88139f1c01 | [
"MIT"
] | 1 | 2019-05-18T00:02:12.000Z | 2019-05-18T00:02:12.000Z | BOJ/2953.cc | siontama/Algorithm | bb419e0d4dd09682bd4542f90038b492ee232bd2 | [
"MIT"
] | null | null | null | BOJ/2953.cc | siontama/Algorithm | bb419e0d4dd09682bd4542f90038b492ee232bd2 | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int arr[5]={0,};
int ansn=0;
int ans=0;
for(int i=0;i<5;i++){
for(int j=0;j<4;j++){
int x;
cin >> x;
arr[i]+=x;
}
if(arr[i]>ans){
ansn = i+1;
ans... | 15.875 | 31 | 0.383202 | Yaminyam |
20c7f5364e5566b486f8fe607f38e4e9b2a5dcc1 | 231 | hpp | C++ | Miracle/src/Miracle/Graphics/Vertex.hpp | McFlyboy/Miracle | 03a41bb8e24ecf2dfc18b5e3aee964640ec9a593 | [
"MIT"
] | null | null | null | Miracle/src/Miracle/Graphics/Vertex.hpp | McFlyboy/Miracle | 03a41bb8e24ecf2dfc18b5e3aee964640ec9a593 | [
"MIT"
] | 3 | 2021-12-10T23:19:29.000Z | 2022-03-27T05:04:14.000Z | Miracle/src/Miracle/Graphics/Vertex.hpp | McFlyboy/Miracle | 03a41bb8e24ecf2dfc18b5e3aee964640ec9a593 | [
"MIT"
] | null | null | null | #pragma once
#include <Miracle/components/Miracle/Math/Vector2f.hpp>
#include <Miracle/components/Miracle/Math/Vector3f.hpp>
namespace Miracle::Graphics {
struct Vertex {
Math::Vector2f position;
Math::Vector3f color;
};
}
| 19.25 | 55 | 0.757576 | McFlyboy |
20c8ed7ee46a4d274d0249ce2a6cc66b953f6dd0 | 599 | cpp | C++ | Cplusplus/trik.cpp | Jayseff/OpenKattis | 921ef2b6b5138505663edf53885fa8b6e655887e | [
"AFL-3.0"
] | null | null | null | Cplusplus/trik.cpp | Jayseff/OpenKattis | 921ef2b6b5138505663edf53885fa8b6e655887e | [
"AFL-3.0"
] | null | null | null | Cplusplus/trik.cpp | Jayseff/OpenKattis | 921ef2b6b5138505663edf53885fa8b6e655887e | [
"AFL-3.0"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main()
{
string actions;
int arr[3] = {1,0,0};
int temp = 0;
cin >> actions;
for (int i = 0; i < actions.length(); i++)
{
if (actions[i] == 'A')
{
temp = arr[0];
arr[0] = arr[1];
arr[1] = temp;
}
if (act... | 14.609756 | 44 | 0.420701 | Jayseff |
20cba4e40438a256da188e5a8d2217fb7220e037 | 11,928 | cpp | C++ | src/screen_settings.cpp | puzrin/dispenser | e0283af232a65a840dedb15feaaccf1294a3a7cb | [
"MIT"
] | 28 | 2019-09-02T05:23:00.000Z | 2022-01-16T22:19:55.000Z | src/screen_settings.cpp | puzrin/dispenser | e0283af232a65a840dedb15feaaccf1294a3a7cb | [
"MIT"
] | null | null | null | src/screen_settings.cpp | puzrin/dispenser | e0283af232a65a840dedb15feaaccf1294a3a7cb | [
"MIT"
] | 10 | 2019-12-31T02:22:22.000Z | 2021-12-14T04:11:27.000Z | #include "app.h"
#include "screen_settings.h"
#include "etl/to_string.h"
#include "etl/cyclic_value.h"
enum setting_type {
TYPE_NEEDLE_DIA = 0,
TYPE_SYRINGE_DIA = 1,
TYPE_VISCOSITY = 2,
TYPE_FLUX_PERCENT = 3,
TYPE_MOVE_PUSHER = 4
};
typedef struct {
float step_scale = 0.0f;
float current_... | 28.332542 | 102 | 0.618545 | puzrin |
20cd7b1f74e573bc0f0d699d4ce4f0fdddb9ffc6 | 1,655 | cpp | C++ | test/substring/longest_common_substring.test.cpp | camilne/cardigan | 6cb07095c3dc06e558108a9986ab0e434c4b13e1 | [
"MIT"
] | 2 | 2018-04-26T04:24:47.000Z | 2018-04-26T04:25:28.000Z | test/substring/longest_common_substring.test.cpp | camilne/cardigan | 6cb07095c3dc06e558108a9986ab0e434c4b13e1 | [
"MIT"
] | 22 | 2018-04-26T04:41:19.000Z | 2018-05-13T02:49:04.000Z | test/substring/longest_common_substring.test.cpp | camilne/cardigan | 6cb07095c3dc06e558108a9986ab0e434c4b13e1 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <vector>
#include "third_party/catch.hpp"
#include "substring/longest_common_substring.hpp"
using namespace cgn;
TEST_CASE("Longest Common Substring: Base cases", "[longest-common-substring]") {
std::string a;
auto substrings = longest_common_substring(a, a);
REQUIRE(substr... | 31.226415 | 102 | 0.642296 | camilne |
20cd9bcaea5ce1bc2259d381a832ae6a18340fe1 | 2,742 | hpp | C++ | OptFrame/Util/ScalarEvaluator.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 2 | 2018-05-24T11:04:12.000Z | 2020-03-03T13:37:07.000Z | OptFrame/Util/ScalarEvaluator.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | null | null | null | OptFrame/Util/ScalarEvaluator.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 1 | 2019-06-06T16:57:49.000Z | 2019-06-06T16:57:49.000Z | // OptFrame - Optimization Framework
// Copyright (C) 2009-2015
// http://optframe.sourceforge.net/
//
// This file is part of the OptFrame optimization framework. This framework
// is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License v3 as published by... | 23.435897 | 83 | 0.716265 | 216k155 |
20d0257f1178916f6dea3a51319aa56b1cdada3d | 726 | hpp | C++ | Framework/Common/BaseApplication.hpp | GameRay/GameEngineFromScratch | 96fe4990f743606683cbc93f6a4bdfc7e6ca55db | [
"MIT"
] | null | null | null | Framework/Common/BaseApplication.hpp | GameRay/GameEngineFromScratch | 96fe4990f743606683cbc93f6a4bdfc7e6ca55db | [
"MIT"
] | null | null | null | Framework/Common/BaseApplication.hpp | GameRay/GameEngineFromScratch | 96fe4990f743606683cbc93f6a4bdfc7e6ca55db | [
"MIT"
] | 1 | 2020-03-06T15:27:24.000Z | 2020-03-06T15:27:24.000Z | #pragma once
#include "IApplication.hpp"
namespace My {
class BaseApplication : implements IApplication
{
public:
BaseApplication(GfxConfiguration& cfg);
virtual int Initialize();
virtual void Finalize();
// One cycle of the main loop
virtual void Tick();
vi... | 22.6875 | 73 | 0.625344 | GameRay |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.