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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a865f27a20daf4e5f2d44d68a329738578fdeb54 | 4,959 | cpp | C++ | examples/tlm/at_ooo/src/at_ooo_top.cpp | veeYceeY/systemc | 1bd5598ed1a8cf677ebb750accd5af485bc1085a | [
"Apache-2.0"
] | 194 | 2019-07-25T21:27:23.000Z | 2022-03-22T00:08:06.000Z | examples/tlm/at_ooo/src/at_ooo_top.cpp | veeYceeY/systemc | 1bd5598ed1a8cf677ebb750accd5af485bc1085a | [
"Apache-2.0"
] | 24 | 2019-12-03T18:26:07.000Z | 2022-02-17T09:38:25.000Z | examples/tlm/at_ooo/src/at_ooo_top.cpp | veeYceeY/systemc | 1bd5598ed1a8cf677ebb750accd5af485bc1085a | [
"Apache-2.0"
] | 64 | 2019-08-02T19:28:25.000Z | 2022-03-30T10:21:22.000Z | /*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... | 43.5 | 80 | 0.497076 | veeYceeY |
a86623195137bb99ea71ffcb7029404dda1ec14a | 6,306 | hpp | C++ | src/3rd party/boost/boost/multi_array/concept_checks.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 8 | 2016-01-25T20:18:51.000Z | 2019-03-06T07:00:04.000Z | src/3rd party/boost/boost/multi_array/concept_checks.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | null | null | null | src/3rd party/boost/boost/multi_array/concept_checks.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 3 | 2016-02-14T01:20:43.000Z | 2021-02-03T11:19:11.000Z | // Copyright (C) 2002 Ronald Garcia
//
// Permission to copy, use, sell and distribute this software is granted
// provided this copyright notice appears in all copies.
// Permission to modify the code and to distribute modified code is granted
// provided this copyright notice appears in all copies, and a notice
// ... | 30.911765 | 75 | 0.679987 | OLR-xray |
a86a357c163bc7e81e00664a6ed39905f5d40611 | 15,313 | cc | C++ | source/geometry/divisions/pyG4ParameterisationCons.cc | yu22mal/geant4_pybind | ff7efc322fe53f39c7ae7ed140861052a92479fd | [
"Unlicense"
] | 6 | 2021-08-08T08:40:13.000Z | 2022-03-23T03:05:15.000Z | source/geometry/divisions/pyG4ParameterisationCons.cc | yu22mal/geant4_pybind | ff7efc322fe53f39c7ae7ed140861052a92479fd | [
"Unlicense"
] | 3 | 2021-12-01T14:38:06.000Z | 2022-02-10T11:28:28.000Z | source/geometry/divisions/pyG4ParameterisationCons.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 <G4ParameterisationCons.hh>
#include <G4Material.hh>
#include <G4VPhysicalVolume.hh>
#include <G4VTouchable.hh>
#include <G4VSolid.hh>
#include <G4Box.hh>
#include <G4Tubs.hh>
#include <G4Trd.hh>
#include <G4Trap.hh>
#include <G4Cons.hh>
#i... | 43.751429 | 121 | 0.717691 | yu22mal |
a86d654f31b46bd834a81acc20772f64da3ee653 | 22,484 | hpp | C++ | src/Enzo/enzo_EnzoRiemannLUT.hpp | buketbenek/enzo-e | 329a398ce4b11b03a1b2f1aef9e46d04560fe894 | [
"BSD-3-Clause"
] | null | null | null | src/Enzo/enzo_EnzoRiemannLUT.hpp | buketbenek/enzo-e | 329a398ce4b11b03a1b2f1aef9e46d04560fe894 | [
"BSD-3-Clause"
] | null | null | null | src/Enzo/enzo_EnzoRiemannLUT.hpp | buketbenek/enzo-e | 329a398ce4b11b03a1b2f1aef9e46d04560fe894 | [
"BSD-3-Clause"
] | null | null | null | // See LICENSE_CELLO file for license and copyright information
/// @file enzo_EnzoRiemannUtils.hpp
/// @author Matthew Abruzzo (matthewabruzzo@gmail.com)
/// @date Thurs May 15 2020
/// @brief [\ref Enzo] Implementation of EnzoRiemannLUTWrapper
#ifndef ENZO_ENZO_RIEMANN_LUT_WRAPPER_HPP
#define ENZO_ENZO... | 46.939457 | 80 | 0.618262 | buketbenek |
a86e86e5c4401366713810ee099c099e47b96948 | 3,007 | cpp | C++ | examples/stackedfm.cpp | vlazzarini/aurora | 4990d81a6873beace4a39d6584cc77afbda82cf4 | [
"BSD-3-Clause"
] | 11 | 2021-11-26T16:23:40.000Z | 2022-01-19T21:36:35.000Z | examples/stackedfm.cpp | vlazzarini/aurora | 4990d81a6873beace4a39d6584cc77afbda82cf4 | [
"BSD-3-Clause"
] | null | null | null | examples/stackedfm.cpp | vlazzarini/aurora | 4990d81a6873beace4a39d6584cc77afbda82cf4 | [
"BSD-3-Clause"
] | null | null | null | // stackedfm.cpp:
// Stacked FM example
//
// (c) V Lazzarini, 2021
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditi... | 37.123457 | 80 | 0.663785 | vlazzarini |
a870b58f24e926981982fe06011b886bee7bf558 | 9,897 | cpp | C++ | mps/src/v20190612/model/MediaVideoStreamItem.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | mps/src/v20190612/model/MediaVideoStreamItem.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | mps/src/v20190612/model/MediaVideoStreamItem.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 27.722689 | 153 | 0.682025 | suluner |
a8764ec99f69dcf8e96cdfb694ae72a5c9e31b59 | 1,107 | cpp | C++ | Source/Services/TitleStorage/title_storage_blob_result.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 2 | 2021-07-17T13:34:20.000Z | 2022-01-09T00:55:51.000Z | Source/Services/TitleStorage/title_storage_blob_result.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | null | null | null | Source/Services/TitleStorage/title_storage_blob_result.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 1 | 2018-11-18T08:32:40.000Z | 2018-11-18T08:32:40.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
/... | 27.675 | 64 | 0.707317 | blgrossMS |
a87c3784001508ab174db2c836a7b2647d2e98b0 | 1,212 | ipp | C++ | ThirdParty/oglplus-develop/implement/oglplus/enums/ext/compat_client_attrib_group_range.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 24 | 2015-01-31T15:30:49.000Z | 2022-01-29T08:36:42.000Z | ThirdParty/oglplus-develop/implement/oglplus/enums/ext/compat_client_attrib_group_range.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 4 | 2015-08-21T02:29:15.000Z | 2020-05-02T13:50:36.000Z | ThirdParty/oglplus-develop/implement/oglplus/enums/ext/compat_client_attrib_group_range.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 9 | 2015-06-08T22:04:15.000Z | 2021-08-16T03:52:11.000Z | /*
* .file oglplus/enums/ext/compat_client_attrib_group_range.ipp
*
* Automatically generated header file. DO NOT modify manually,
* edit 'source/enums/oglplus/ext/compat_client_attrib_group.txt' instead.
*
* Copyright 2010-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (S... | 28.186047 | 75 | 0.808581 | vif |
a880e6c33081304e5af2743506785dcbeb227880 | 1,423 | cpp | C++ | src/isPaADescendantOfPb.cpp | buaazhouxingyu/topoana | 50a235614efe48cc17d9691c3cc150564e6e60f7 | [
"MIT"
] | 15 | 2020-01-13T01:30:14.000Z | 2022-01-17T03:22:34.000Z | src/isPaADescendantOfPb.cpp | buaazhouxingyu/topoana | 50a235614efe48cc17d9691c3cc150564e6e60f7 | [
"MIT"
] | 5 | 2019-06-01T13:38:44.000Z | 2021-06-19T09:26:12.000Z | src/isPaADescendantOfPb.cpp | buaazhouxingyu/topoana | 50a235614efe48cc17d9691c3cc150564e6e60f7 | [
"MIT"
] | 9 | 2019-06-01T10:19:25.000Z | 2022-01-10T15:00:21.000Z | #include "../include/topoana.h"
#include <iostream>
#include <cstdlib>
bool topoana::isPaADescendantOfPb(vector<int> vMidx, int idxA, int idxB)
{
if(idxA<0||((unsigned int) idxA)>=vMidx.size())
{
cerr<<"Error: The integer \"idxA\" is not a reasonable index for the vector \"vMidx\"!"<<endl;
cerr<<"Inf... | 33.093023 | 100 | 0.574842 | buaazhouxingyu |
a88bb60b8cfba4c5329201301f9d32e310f9cfef | 2,725 | cc | C++ | tests/semaphore_unit_test.cc | boboxxd/DelayQueueCpp | b6e7d0271122932e7d947973048bae4a4769aa3c | [
"Apache-2.0"
] | 5 | 2020-11-10T00:07:35.000Z | 2022-02-08T06:27:13.000Z | tests/semaphore_unit_test.cc | boboxxd/DelayQueueCpp | b6e7d0271122932e7d947973048bae4a4769aa3c | [
"Apache-2.0"
] | null | null | null | tests/semaphore_unit_test.cc | boboxxd/DelayQueueCpp | b6e7d0271122932e7d947973048bae4a4769aa3c | [
"Apache-2.0"
] | 3 | 2021-02-07T07:16:29.000Z | 2021-06-18T01:28:07.000Z | // Copyright (c) 2020 Xi Cheng. All rights reserved.
// Use of this source code is governed by a Apache License 2.0 that can be
// found in the LICENSE file.
#include <atomic>
#include <chrono>
#include <thread>
#include "gtest/gtest.h"
#include "src/semaphore.h"
class SemaphoreUnitTest : public ::testing::Test {
};... | 34.493671 | 79 | 0.714862 | boboxxd |
a8920ba644c3c9ba7d729fa7f8da6344aabc0ee8 | 3,099 | hpp | C++ | classdef/ObjectRoot.hpp | dwringer/a3system | b14f8992542c2c3c38c9b87644f2c5d7249affda | [
"MIT"
] | 3 | 2016-10-31T21:05:20.000Z | 2017-08-15T14:00:05.000Z | classdef/ObjectRoot.hpp | dwringer/ANIMA | a8813dbac158d05bea5d9a9c882567446caf48c3 | [
"MIT"
] | null | null | null | classdef/ObjectRoot.hpp | dwringer/ANIMA | a8813dbac158d05bea5d9a9c882567446caf48c3 | [
"MIT"
] | null | null | null | /*
ObjectRoot class
:: ObjectRoot -> nil
Methods:
_setf var_name value :: set variable in obj namespace and record key
_getf var_name :: simple getVariable interface
_push_attr var_name value :: append to an array variable
_locals :: list of all recorded keys that ... | 32.621053 | 79 | 0.611488 | dwringer |
a89574102e7d1798c0f51304b552e553df5864df | 1,700 | cpp | C++ | ema-tools/find-rigid-coil-vertex-correspondence/src/bin/main.cpp | ahewer/mri-shape-tools | 4268499948f1330b983ffcdb43df62e38ca45079 | [
"MIT"
] | null | null | null | ema-tools/find-rigid-coil-vertex-correspondence/src/bin/main.cpp | ahewer/mri-shape-tools | 4268499948f1330b983ffcdb43df62e38ca45079 | [
"MIT"
] | 2 | 2017-05-29T09:43:01.000Z | 2017-05-29T09:50:05.000Z | ema-tools/find-rigid-coil-vertex-correspondence/src/bin/main.cpp | ahewer/mri-shape-tools | 4268499948f1330b983ffcdb43df62e38ca45079 | [
"MIT"
] | 4 | 2017-05-17T11:56:02.000Z | 2022-03-05T09:12:24.000Z | #include "mesh/MeshIO.h"
#include "ema/Ema.h"
#include "settings.h"
#include "CorrespondenceSubsetFinder.h"
#include "CorrespondenceSubsetFinderBuilder.h"
#include "VertexSubsets.h"
#include "OutputResult.h"
int main(int argc, char* argv[]) {
Settings settings(argc, argv);
Mesh mesh = MeshIO::read(settings.mesh... | 27.419355 | 94 | 0.731765 | ahewer |
a89d419de02d737fbdb96d5cb9e63a37bb25c9a1 | 2,825 | cpp | C++ | src/test_hdf5.cpp | uwmri/mri_recon | c74780d56c87603fb935744bf312e8c59d415997 | [
"BSD-3-Clause"
] | null | null | null | src/test_hdf5.cpp | uwmri/mri_recon | c74780d56c87603fb935744bf312e8c59d415997 | [
"BSD-3-Clause"
] | 2 | 2020-11-06T19:45:34.000Z | 2020-11-07T03:22:25.000Z | src/test_hdf5.cpp | uwmri/mri_recon | c74780d56c87603fb935744bf312e8c59d415997 | [
"BSD-3-Clause"
] | null | null | null | #include "recon_lib.h"
using namespace NDarray;
using namespace std;
int main(void) {
// Write Section
{
HDF5 file = HDF5("TEST.h5", "w");
Array<float, 3> TEMP(2, 3, 4, ColumnMajorArray<3>());
Array<complex<float>, 3> TEMPC(4, 3, 2, ColumnMajorArray<3>());
Array<short, 3> TEMPS(2, 3, 4, ColumnMaj... | 27.163462 | 67 | 0.458761 | uwmri |
a8a1f8e567cd88425fd2864cba0cfaf5017f967a | 3,395 | cpp | C++ | examples/07_BLE/BLE_write/lib/BLE/BLEServiceMap.cpp | MelihOzbk/deneyapkart-platformio-core | c0fbc8ffa181ee22e597569b24bde5a011ccaaa4 | [
"Apache-2.0"
] | 17 | 2021-07-28T21:57:26.000Z | 2022-02-28T20:32:04.000Z | esp-at/libraries/BLE/src/BLEServiceMap.cpp | PowerfulCat/Works | 94b729ee2afd14a5fde03ea94f826e0b98b80dcf | [
"MIT"
] | 7 | 2021-08-07T23:20:14.000Z | 2022-03-20T15:05:21.000Z | esp-at/libraries/BLE/src/BLEServiceMap.cpp | PowerfulCat/Works | 94b729ee2afd14a5fde03ea94f826e0b98b80dcf | [
"MIT"
] | 10 | 2021-08-11T13:47:36.000Z | 2022-03-26T02:41:45.000Z | /*
* BLEServiceMap.cpp
*
* Created on: Jun 22, 2017
* Author: kolban
*/
#include "sdkconfig.h"
#if defined(CONFIG_BT_ENABLED)
#include <stdio.h>
#include <iomanip>
#include "BLEService.h"
/**
* @brief Return the service by UUID.
* @param [in] UUID The UUID to look up the service.
* @return The character... | 24.601449 | 81 | 0.693078 | MelihOzbk |
a8a7066949366a04cb2241d22dc414ca03c1cb48 | 782 | cpp | C++ | ablateLibrary/domain/region.cpp | UBCHREST/ablate | 02a5b390ba4e257b96bd19f4604c269598dccd9d | [
"BSD-3-Clause"
] | 3 | 2021-01-19T21:29:10.000Z | 2021-08-20T19:54:49.000Z | ablateLibrary/domain/region.cpp | UBCHREST/ablate | 02a5b390ba4e257b96bd19f4604c269598dccd9d | [
"BSD-3-Clause"
] | 124 | 2021-01-14T15:30:48.000Z | 2022-03-28T14:44:31.000Z | ablateLibrary/domain/region.cpp | UBCHREST/ablate | 02a5b390ba4e257b96bd19f4604c269598dccd9d | [
"BSD-3-Clause"
] | 17 | 2021-02-10T22:34:57.000Z | 2022-03-21T18:46:06.000Z | #include "region.hpp"
#include <algorithm>
#include <functional>
ablate::domain::Region::Region(std::string name, std::vector<int> valuesIn) : name(name), values(valuesIn.empty() ? valuesIn : std::vector<int>{1}) {
// sort the values
std::sort(values.begin(), values.end());
// Create a unique string
a... | 37.238095 | 167 | 0.648338 | UBCHREST |
a8a84ec6b2d6731049af178e48b57c0ed74bf879 | 57,757 | cpp | C++ | src/stm32_sd.cpp | andreili/STM32F4 | 9054d699ec1f65e7de8aa5dd7d3ee0522dad18dc | [
"MIT"
] | 6 | 2019-04-16T11:38:45.000Z | 2020-12-12T16:55:03.000Z | src/stm32_sd.cpp | andreili/STM32F4 | 9054d699ec1f65e7de8aa5dd7d3ee0522dad18dc | [
"MIT"
] | 1 | 2020-12-15T10:45:53.000Z | 2021-02-22T11:59:19.000Z | src/stm32_sd.cpp | andreili/STM32F4 | 9054d699ec1f65e7de8aa5dd7d3ee0522dad18dc | [
"MIT"
] | 2 | 2019-05-23T03:08:25.000Z | 2020-10-10T12:43:06.000Z | #include "stm32_sd.hpp"
#ifdef STM32_USE_SD
#define DATA_BLOCK_SIZE EDataBlockSize::_512B
#define SDIO_STATIC_FLAGS SDIO_STA::EMasks::CCRCFAIL, SDIO_STA::EMasks::DCRCFAIL, \
SDIO_STA::EMasks::CTIMEOUT, SDIO_STA::EMasks::DTIMEOUT, \
... | 33.231876 | 125 | 0.603546 | andreili |
a8a9e9cada22d02e04ef8d38652d2316a62eb347 | 1,786 | cpp | C++ | 01-assignment/vigenere/main.cpp | Feqzz/DCS3101-1-20H | dcdccf63d9eaec23e37cda6827ce208f3cb35728 | [
"MIT"
] | null | null | null | 01-assignment/vigenere/main.cpp | Feqzz/DCS3101-1-20H | dcdccf63d9eaec23e37cda6827ce208f3cb35728 | [
"MIT"
] | null | null | null | 01-assignment/vigenere/main.cpp | Feqzz/DCS3101-1-20H | dcdccf63d9eaec23e37cda6827ce208f3cb35728 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
std::string vigenereEncrypt(std::string plaintext, std::string key)
{
char tmp[plaintext.size()];
int outOfBoundsCharacters = 0;
for (int i = 0; i < plaintext.size(); i++)
{
bool isLowerCaseInput;
bool isLowerCaseKey;
if (static_cast<int>(plaintext[i]) > 64 && static_cas... | 23.194805 | 97 | 0.643897 | Feqzz |
a8aef35415225fc1967e15a145501c3b551bd520 | 1,235 | cpp | C++ | test/gtx/gtx_scalar_multiplication.cpp | hrehfeld/glm_working | 8dd5acc8ccc1fb8b6557670281c9786ee643e629 | [
"MIT"
] | null | null | null | test/gtx/gtx_scalar_multiplication.cpp | hrehfeld/glm_working | 8dd5acc8ccc1fb8b6557670281c9786ee643e629 | [
"MIT"
] | null | null | null | test/gtx/gtx_scalar_multiplication.cpp | hrehfeld/glm_working | 8dd5acc8ccc1fb8b6557670281c9786ee643e629 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2014-09-22
// Updated : 20... | 28.068182 | 99 | 0.434008 | hrehfeld |
a8b22945fcd3c79673df188e2016fed380cf4809 | 326 | cpp | C++ | Module-2/Problem_7c.cpp | farhanmasud/ruet-discrete-mathematics | 4c510c48a6e5f3ed8f202a57c4761c6a1f1286ea | [
"MIT"
] | null | null | null | Module-2/Problem_7c.cpp | farhanmasud/ruet-discrete-mathematics | 4c510c48a6e5f3ed8f202a57c4761c6a1f1286ea | [
"MIT"
] | null | null | null | Module-2/Problem_7c.cpp | farhanmasud/ruet-discrete-mathematics | 4c510c48a6e5f3ed8f202a57c4761c6a1f1286ea | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int sum = 0;
int l1 = 0;
int u1 = 5;
int l2 = 0;
int u2 = 10;
for(int i = l1; i <= u1; i++)
{
for(int j = l2; j <= u2; j++)
{
sum = sum + i + j;
}
}
cout << "The sum is: " << sum;
return... | 13.583333 | 37 | 0.389571 | farhanmasud |
a8bc210c67bfebf4f0bc8d51a5cbe72c2bbc0e3a | 17,616 | cpp | C++ | source/glbinding/source/gl/functions_d.cpp | j-o/glbinding | c1e3a571ea4ee7058879e46777ba728a58ca2fa8 | [
"MIT"
] | null | null | null | source/glbinding/source/gl/functions_d.cpp | j-o/glbinding | c1e3a571ea4ee7058879e46777ba728a58ca2fa8 | [
"MIT"
] | null | null | null | source/glbinding/source/gl/functions_d.cpp | j-o/glbinding | c1e3a571ea4ee7058879e46777ba728a58ca2fa8 | [
"MIT"
] | null | null | null |
#include "../Binding_pch.h"
#include <glbinding/gl/functions.h>
using namespace glbinding;
namespace gl
{
void glDebugMessageCallback(GLDEBUGPROC callback, const void * userParam)
{
return Binding::DebugMessageCallback(callback, userParam);
}
void glDebugMessageCallbackAMD(GLDEBUGPROCAMD callback, void * u... | 28.504854 | 232 | 0.770322 | j-o |
a8c03f48697e81f1d38f294227fc5696fc575a31 | 23,961 | cpp | C++ | _studio/enctools/src/mfx_enctools_common.cpp | alexelizarov/oneVPL-intel-gpu | 1aecebeea5e73670f194481b4c1402628837506f | [
"MIT"
] | null | null | null | _studio/enctools/src/mfx_enctools_common.cpp | alexelizarov/oneVPL-intel-gpu | 1aecebeea5e73670f194481b4c1402628837506f | [
"MIT"
] | null | null | null | _studio/enctools/src/mfx_enctools_common.cpp | alexelizarov/oneVPL-intel-gpu | 1aecebeea5e73670f194481b4c1402628837506f | [
"MIT"
] | 1 | 2021-07-13T08:25:02.000Z | 2021-07-13T08:25:02.000Z | // Copyright (c) 2019-2021 Intel Corporation
//
// 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, merge,... | 34.377331 | 194 | 0.683527 | alexelizarov |
a8c77a8d6511d8e05f53b5006e55b6a009c4a853 | 1,285 | hpp | C++ | src/func.hpp | Dlanis/SDLPong | 8229aae0d8b80c530a49e98cb6fb91c1f7768929 | [
"MIT"
] | null | null | null | src/func.hpp | Dlanis/SDLPong | 8229aae0d8b80c530a49e98cb6fb91c1f7768929 | [
"MIT"
] | null | null | null | src/func.hpp | Dlanis/SDLPong | 8229aae0d8b80c530a49e98cb6fb91c1f7768929 | [
"MIT"
] | null | null | null | #pragma once
#include <thread>
#include <cmath>
#include <SDL.h>
#include "ball.hpp"
#include "paddle.hpp"
constexpr float pi = 3.14159;
inline void sleep(double seconds) {
std::this_thread::sleep_for(std::chrono::duration<double>(seconds));
}
inline constexpr bool intersects(float cx, float cy, float radius, ... | 29.204545 | 116 | 0.65214 | Dlanis |
a8c94980f544f30152f6937a3bfdaa292b7e6feb | 19,268 | cpp | C++ | src/trident/ml/batch.cpp | dkw-aau/trident-clone | 18f896db2be05870069ae7b3aa6b4837c74fff0f | [
"Apache-2.0"
] | 20 | 2018-10-17T21:39:40.000Z | 2021-11-10T11:07:23.000Z | src/trident/ml/batch.cpp | dkw-aau/trident-clone | 18f896db2be05870069ae7b3aa6b4837c74fff0f | [
"Apache-2.0"
] | 5 | 2020-07-06T22:50:04.000Z | 2022-03-17T10:34:15.000Z | src/trident/ml/batch.cpp | dkw-aau/trident-clone | 18f896db2be05870069ae7b3aa6b4837c74fff0f | [
"Apache-2.0"
] | 9 | 2018-09-18T11:37:35.000Z | 2022-03-29T07:46:41.000Z | #include <trident/ml/batch.h>
#include <trident/kb/kb.h>
#include <trident/kb/querier.h>
#include <fstream>
#include <algorithm>
#include <random>
#include <unordered_map>
BatchCreator::BatchCreator(string kbdir, uint64_t batchsize,
uint16_t nthreads,
const float valid,
const float test,
... | 31.847934 | 123 | 0.535344 | dkw-aau |
a8c978333b4cc8f14c54e1d6a096d8ba09193dc3 | 6,495 | inl | C++ | qbase/include/util/Iterators.inl | jeanleflambeur/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 36 | 2015-03-09T16:47:14.000Z | 2021-02-04T08:32:04.000Z | qbase/include/util/Iterators.inl | jeanlemotan/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 42 | 2017-02-11T11:15:51.000Z | 2019-12-28T16:00:44.000Z | qbase/include/util/Iterators.inl | jeanleflambeur/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 5 | 2015-10-15T05:46:48.000Z | 2020-05-11T17:40:36.000Z | //////////////////////////////////////////////////////////////////////////
template<class T>
Const_Ptr_Iterator<T>::Const_Ptr_Iterator(uint8_t const* data, size_type stride, size_type count)
: m_begin(data)
, m_end(data ? data + stride*count : nullptr)
, m_ptr(data)
, m_stride(stride)
{
QASSERT(stride > ... | 24.602273 | 120 | 0.676982 | jeanleflambeur |
a8c9b6217d453f3fcfc699a816d4107dac77435c | 9,935 | cpp | C++ | chapter21/chapter21_drill.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 170 | 2015-05-02T18:08:38.000Z | 2018-07-31T11:35:17.000Z | chapter21/chapter21_drill.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 7 | 2018-08-29T15:43:14.000Z | 2021-09-23T21:56:49.000Z | chapter21/chapter21_drill.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 105 | 2015-05-28T11:52:19.000Z | 2018-07-17T14:11:25.000Z | // Chapter 21, drill
#include "../lib_files/std_lib_facilities.h"
#include<map>
#include<numeric>
//------------------------------------------------------------------------------
struct Item {
string name;
int iid;
double value;
Item() :name(), iid(0), value(0) { }
Item(string n, int i, double v)... | 24.899749 | 81 | 0.459386 | TingeOGinge |
a8d2a313ad5617fefbde1f293e387688f997fe2d | 7,966 | cpp | C++ | source/rx/Font.cpp | zhiayang/sim-thing | 8d9d5163146e2bdde15f4eadefa85453f12fac18 | [
"Apache-2.0"
] | 1 | 2021-02-07T08:40:11.000Z | 2021-02-07T08:40:11.000Z | source/rx/Font.cpp | zhiayang/sim-thing | 8d9d5163146e2bdde15f4eadefa85453f12fac18 | [
"Apache-2.0"
] | null | null | null | source/rx/Font.cpp | zhiayang/sim-thing | 8d9d5163146e2bdde15f4eadefa85453f12fac18 | [
"Apache-2.0"
] | null | null | null | // Font.cpp
// Copyright (c) 2014 - 2017, zhiayang@gmail.com
// Licensed under the Apache License Version 2.0.
#include <map>
#include <algorithm>
#include <stdio.h>
#include <sys/stat.h>
#include "rx.h"
#include <glbinding/gl/gl.h>
#define STB_RECT_PACK_IMPLEMENTATION
#include "stb/stb_pack_rect.h"
#define STB_T... | 27.37457 | 127 | 0.6765 | zhiayang |
a8d3237a56ea3587567abea6faf254e185968081 | 1,671 | hpp | C++ | program/object-detection-armnn-tflite/includes/detect.hpp | steffenlarsen/armnn-mlperf | c7da4c51f62af7c4e5c43e83345fa23df2fb0bc6 | [
"MIT"
] | 23 | 2019-04-24T15:12:40.000Z | 2022-01-06T16:10:34.000Z | program/object-detection-armnn-tflite/includes/detect.hpp | steffenlarsen/armnn-mlperf | c7da4c51f62af7c4e5c43e83345fa23df2fb0bc6 | [
"MIT"
] | 5 | 2019-06-04T11:07:52.000Z | 2022-01-06T16:45:40.000Z | program/object-detection-armnn-tflite/includes/detect.hpp | steffenlarsen/armnn-mlperf | c7da4c51f62af7c4e5c43e83345fa23df2fb0bc6 | [
"MIT"
] | 8 | 2019-10-31T11:55:36.000Z | 2021-11-21T04:33:34.000Z | /*
* Copyright (c) 2019 dividiti Ltd.
* Copyright (c) 2019 Arm Ltd.
*
* SPDX-License-Identifier: MIT.
*/
#ifndef DETECT_H
#define DETECT_H
#include <iomanip>
#include <vector>
#include <iterator>
#include "armnn/ArmNN.hpp"
#include "armnn/Exceptions.hpp"
#include "armnn/Tensor.hpp"
#include "armnn/INetwork.hpp"... | 28.322034 | 102 | 0.708558 | steffenlarsen |
a8d33ad75224dd08756dc3270497cc6a0db5532e | 328 | cpp | C++ | lessons/06-objects/src/main_item_v2_sol.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | lessons/06-objects/src/main_item_v2_sol.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | lessons/06-objects/src/main_item_v2_sol.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | #include "item_v2_sol.h"
int main() {
Item myItem;
std::cout << "Setting name to `chocolate`\n"
<< " price to `$1.15`\n"
<< " num_items to `10`\n";
myItem.SetName("chocolate");
myItem.SetPrice(1.15);
myItem.SetNumItems(10);
myItem.PrintItem();
retu... | 16.4 | 51 | 0.521341 | chemphys |
a8d482b137992070a001f7aba4e957db268c238b | 6,659 | cpp | C++ | Libtorch eval/VGG16/vgg16eighty.cpp | atcp1520/soter4 | 2c2273e1b4788bf30dc93c5590daf77c6b10fb65 | [
"MIT"
] | null | null | null | Libtorch eval/VGG16/vgg16eighty.cpp | atcp1520/soter4 | 2c2273e1b4788bf30dc93c5590daf77c6b10fb65 | [
"MIT"
] | null | null | null | Libtorch eval/VGG16/vgg16eighty.cpp | atcp1520/soter4 | 2c2273e1b4788bf30dc93c5590daf77c6b10fb65 | [
"MIT"
] | 1 | 2022-01-14T07:59:21.000Z | 2022-01-14T07:59:21.000Z | // VGG16 - 80% in CUDA
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <torch/library.h>
#include <torch/script.h>
#include <torch/torch.h>
#include <ATen/ATen.h>
#include <iostream>
#include <random>
#include <string>
#include <io.h>
#include <memory>
#include <vector>
#include ... | 26.636 | 100 | 0.526055 | atcp1520 |
a8d4fe181bcec3f99675a7a771839ca38b3db16f | 458 | hpp | C++ | telnetpp/include/telnetpp/options/msdp/detail/decoder.hpp | CalielOfSeptem/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | 1 | 2017-03-30T14:31:33.000Z | 2017-03-30T14:31:33.000Z | telnetpp/include/telnetpp/options/msdp/detail/decoder.hpp | HoraceWeebler/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | null | null | null | telnetpp/include/telnetpp/options/msdp/detail/decoder.hpp | HoraceWeebler/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | null | null | null | #pragma once
#include "telnetpp/options/msdp/variable.hpp"
namespace telnetpp { namespace options { namespace msdp { namespace detail {
//* =========================================================================
/// \brief Decode a byte stream into a list of MSDP variables.
//* ====================================... | 32.714286 | 77 | 0.4869 | CalielOfSeptem |
a8d8972bac80e68d05e8e6b1cd9287ae3f9dbe91 | 685 | cpp | C++ | lab2/Lab2Task4Var4/Lab2Task4Var4/Lab2Task4Var4.cpp | AlexanderChibirev/OOP | e30adebbf961d9573a2d14981e5d8b92466207fd | [
"MIT"
] | null | null | null | lab2/Lab2Task4Var4/Lab2Task4Var4/Lab2Task4Var4.cpp | AlexanderChibirev/OOP | e30adebbf961d9573a2d14981e5d8b92466207fd | [
"MIT"
] | 9 | 2016-02-17T09:08:02.000Z | 2016-05-19T12:02:59.000Z | lab2/Lab2Task4Var4/Lab2Task4Var4/Lab2Task4Var4.cpp | AlexanderChibirev/OOP | e30adebbf961d9573a2d14981e5d8b92466207fd | [
"MIT"
] | null | null | null | // Lab2Task4Var4.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "GeneratePrimeNumbersSet.h"
int main(int argc, char** argv)
{
if (argc != 2)
{
std::cout << "Wrong amount of arguments was proposed\nEnter a correct arguments amount please, for example:\n'upperBound < 0 or... | 22.096774 | 154 | 0.670073 | AlexanderChibirev |
a8d8c005a64253a10cb9005070a72d00ef246a2c | 9,993 | cpp | C++ | src/monStaGen/incrementalDeterministicGraphGenerator.cpp | tyrex-team/gmark | e9f16c06d2c9fb76167077a3839d2f10585bc546 | [
"MIT"
] | 8 | 2020-01-04T15:12:36.000Z | 2021-12-15T16:26:52.000Z | src/monStaGen/incrementalDeterministicGraphGenerator.cpp | tyrex-team/gmark | e9f16c06d2c9fb76167077a3839d2f10585bc546 | [
"MIT"
] | 2 | 2019-12-17T18:29:57.000Z | 2020-04-09T14:01:37.000Z | src/monStaGen/incrementalDeterministicGraphGenerator.cpp | tyrex-team/gmark | e9f16c06d2c9fb76167077a3839d2f10585bc546 | [
"MIT"
] | 5 | 2020-02-22T20:20:13.000Z | 2022-01-19T21:12:47.000Z | /*
* incrementalDeterministicGraphGenerator.cpp
*
* Created on: Sep 16, 2016
* Author: wilcovanleeuwen
*/
#include <vector>
#include <algorithm> // std::set_intersection, std::sort
#include <chrono>
#include "incrementalDeterministicGraphGenerator.h"
#include "graphNode.h"
namespace std {
incrementalDe... | 35.18662 | 158 | 0.749925 | tyrex-team |
a8da46207fb40fcd8b6a5cda7b0bfc146bef0671 | 7,681 | cpp | C++ | bullet-2.81-rev2613/src/BulletFluids/btFluidHfRigidDynamicsWorld.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | 19 | 2015-01-18T09:34:48.000Z | 2021-07-22T08:00:17.000Z | bullet-2.81-rev2613/src/BulletFluids/btFluidHfRigidDynamicsWorld.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | null | null | null | bullet-2.81-rev2613/src/BulletFluids/btFluidHfRigidDynamicsWorld.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | 8 | 2015-02-09T08:03:04.000Z | 2021-07-22T08:01:54.000Z | /*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.com
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is grant... | 36.402844 | 243 | 0.728291 | rtrius |
a8df659c0231eab9f7ce36fbe8fe6c5553ba3673 | 9,504 | cc | C++ | src/arg_parse.cc | dstrain115/Stim | 82a161741c05d637fe16ea20b1d99a48b4ca4750 | [
"Apache-2.0"
] | 2 | 2021-07-24T13:56:07.000Z | 2021-11-17T11:03:51.000Z | src/arg_parse.cc | ephxyscj1996/Stim | 1f35e36c33a6dba244318e904c35b63a3d82977a | [
"Apache-2.0"
] | null | null | null | src/arg_parse.cc | ephxyscj1996/Stim | 1f35e36c33a6dba244318e904c35b63a3d82977a | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 32.216949 | 117 | 0.539983 | dstrain115 |
a8e1a3df1922b5c8d625de3942b1b5e1f9824e29 | 20,621 | hpp | C++ | include/vuk/Image.hpp | zacharycarter/vuk | db3808fbbebcbf1912f060b54aad083e0e0168ae | [
"MIT"
] | 173 | 2020-02-25T08:35:12.000Z | 2022-03-28T07:48:39.000Z | include/vuk/Image.hpp | zacharycarter/vuk | db3808fbbebcbf1912f060b54aad083e0e0168ae | [
"MIT"
] | 42 | 2020-10-15T12:48:29.000Z | 2022-03-19T17:08:58.000Z | include/vuk/Image.hpp | zacharycarter/vuk | db3808fbbebcbf1912f060b54aad083e0e0168ae | [
"MIT"
] | 13 | 2020-05-28T13:28:46.000Z | 2022-02-06T09:34:50.000Z | #pragma once
#include "Types.hpp"
#include "../src/CreateInfo.hpp"
namespace vuk {
using Image = VkImage;
using Sampler = Handle<VkSampler>;
enum class ImageTiling {
eOptimal = VK_IMAGE_TILING_OPTIMAL,
eLinear = VK_IMAGE_TILING_LINEAR,
eDrmFormatModifierEXT = VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT
};
en... | 34.83277 | 124 | 0.772513 | zacharycarter |
a8e2677a71bad7cf97c3dcd5ab12238ebcdaf3ab | 33,487 | cc | C++ | zircon/system/ulib/paver/paver.cc | sysidos/fuchsia | 0c00fd3c78a9c0111af4689f1e038b3926c4dc9b | [
"BSD-3-Clause"
] | null | null | null | zircon/system/ulib/paver/paver.cc | sysidos/fuchsia | 0c00fd3c78a9c0111af4689f1e038b3926c4dc9b | [
"BSD-3-Clause"
] | null | null | null | zircon/system/ulib/paver/paver.cc | sysidos/fuchsia | 0c00fd3c78a9c0111af4689f1e038b3926c4dc9b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "paver.h"
#include <dirent.h>
#include <fcntl.h>
#include <lib/fdio/directory.h>
#include <lib/fidl-async/cpp/bind.h>
#include <lib/fidl/epitaph.... | 35.776709 | 100 | 0.672858 | sysidos |
a8e89b3a2181f913f0b8d6d9fb35d04715d32ed0 | 1,447 | cxx | C++ | src/mlio/data_type.cxx | rizwangilani/ml-io | d9572227281168139c4e99d79a6d2ebc83323a61 | [
"Apache-2.0"
] | null | null | null | src/mlio/data_type.cxx | rizwangilani/ml-io | d9572227281168139c4e99d79a6d2ebc83323a61 | [
"Apache-2.0"
] | 2 | 2020-04-08T01:37:44.000Z | 2020-04-14T20:14:07.000Z | src/mlio/data_type.cxx | rizwangilani/ml-io | d9572227281168139c4e99d79a6d2ebc83323a61 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "lice... | 25.839286 | 74 | 0.656531 | rizwangilani |
a8efb1646c1d2d5bf11a8a4516d5fbe95fc08062 | 445 | cpp | C++ | wliotproxy-src-base/libVDIL/src/core/StopBlock.cpp | ooolms/wl_iot_framework | 77f5d577105d505fd1c5a21940f29b72eb3391ea | [
"Apache-2.0"
] | null | null | null | wliotproxy-src-base/libVDIL/src/core/StopBlock.cpp | ooolms/wl_iot_framework | 77f5d577105d505fd1c5a21940f29b72eb3391ea | [
"Apache-2.0"
] | null | null | null | wliotproxy-src-base/libVDIL/src/core/StopBlock.cpp | ooolms/wl_iot_framework | 77f5d577105d505fd1c5a21940f29b72eb3391ea | [
"Apache-2.0"
] | null | null | null | #include "VDIL/core/StopBlock.h"
#include "VDIL/core/Program.h"
using namespace WLIOTVDIL;
const QString StopBlock::mBlockName="stop";
StopBlock::StopBlock(quint32 blockId)
:BaseBlock(blockId)
{
}
QString StopBlock::groupName()const
{
return Program::reservedCoreGroupName;
}
QString StopBlock::blockName()const
{... | 15.892857 | 43 | 0.761798 | ooolms |
a8f1206a684e311f8692318e04eeeb0f28c73f4a | 173 | hpp | C++ | src/intersim/booksim_config.hpp | beneslami/Multi-GPU | 89101177a29a0f238fa85671943f2f584e82a815 | [
"Apache-2.0"
] | null | null | null | src/intersim/booksim_config.hpp | beneslami/Multi-GPU | 89101177a29a0f238fa85671943f2f584e82a815 | [
"Apache-2.0"
] | null | null | null | src/intersim/booksim_config.hpp | beneslami/Multi-GPU | 89101177a29a0f238fa85671943f2f584e82a815 | [
"Apache-2.0"
] | null | null | null | #ifndef _BOOKSIM_CONFIG_HPP_
#define _BOOKSIM_CONFIG_HPP_
#include "config_utils.hpp"
class BookSimConfig : public Configuration {
public:
BookSimConfig( );
};
#endif
| 14.416667 | 44 | 0.780347 | beneslami |
a8f1450e8d56be831e3c0b8fa3c744f83dd959c6 | 24,470 | cpp | C++ | nGenEx/Window.cpp | RogerioY/starshatter-open | 3a507e08b1d4e5970b27401a7e6517570d529400 | [
"BSD-3-Clause"
] | null | null | null | nGenEx/Window.cpp | RogerioY/starshatter-open | 3a507e08b1d4e5970b27401a7e6517570d529400 | [
"BSD-3-Clause"
] | 4 | 2019-09-05T22:22:57.000Z | 2021-03-28T02:09:24.000Z | nGenEx/Window.cpp | RogerioY/starshatter-open | 3a507e08b1d4e5970b27401a7e6517570d529400 | [
"BSD-3-Clause"
] | null | null | null | /* Starshatter OpenSource Distribution
Copyright (c) 1997-2004, Destroyer Studios LLC.
All Rights Reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain t... | 25.463059 | 106 | 0.479403 | RogerioY |
5ef47ed827fd88cd573bd7c95daec49cb7a816ee | 1,170 | cpp | C++ | qtgui/ResultImage.cpp | starturtle/one-bit | 32138249e20c42bd164c1d91a209f338087730f9 | [
"MIT"
] | null | null | null | qtgui/ResultImage.cpp | starturtle/one-bit | 32138249e20c42bd164c1d91a209f338087730f9 | [
"MIT"
] | 25 | 2020-03-18T22:50:22.000Z | 2020-10-30T10:49:16.000Z | qtgui/ResultImage.cpp | starturtle/one-bit | 32138249e20c42bd164c1d91a209f338087730f9 | [
"MIT"
] | null | null | null | #include "ResultImage.h"
#include "logging.h"
#include <algorithm>
#include <QMouseEvent>
ResultImage::ResultImage(QQuickItem* parent)
: QQuickPaintedItem()
, image{}
{
}
void ResultImage::setData(const QImage& data)
{
if (data.isNull())
{
logging::logger() << logging::Level::NOTE << "Input Image empty!" <<... | 21.666667 | 97 | 0.642735 | starturtle |
5ef76395fe577771422a3fe5adc717b25613601f | 5,459 | cpp | C++ | src/test_array_of_ordered.cpp | mheyman/daw_json_link_vcpkg_tests | efb56c122bec2f1a80d6a1843752510a2a8ca956 | [
"BSL-1.0"
] | 275 | 2019-04-28T18:53:01.000Z | 2022-03-29T23:10:14.000Z | src/test_array_of_ordered.cpp | mheyman/daw_json_link_vcpkg_tests | efb56c122bec2f1a80d6a1843752510a2a8ca956 | [
"BSL-1.0"
] | 78 | 2019-11-15T16:20:11.000Z | 2022-02-23T01:24:49.000Z | src/test_array_of_ordered.cpp | mheyman/daw_json_link_vcpkg_tests | efb56c122bec2f1a80d6a1843752510a2a8ca956 | [
"BSL-1.0"
] | 15 | 2019-06-20T10:28:47.000Z | 2022-03-10T16:45:10.000Z | // Copyright (c) Darrell Wright
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/beached/daw_json_link
//
#include <daw/json/daw_json_link.h>
#include <cstdint>
#include <io... | 62.747126 | 1,543 | 0.66111 | mheyman |
5ef78d02c64c47f4d9c91d76878ca14bf8b2679d | 8,274 | cpp | C++ | generator/maxspeeds_builder.cpp | sthirvela/organicmaps | 14885ba070ac9d1b7241ebb89eeefa46c9fdc1e4 | [
"Apache-2.0"
] | 3,062 | 2021-04-09T16:51:55.000Z | 2022-03-31T21:02:51.000Z | generator/maxspeeds_builder.cpp | MAPSWorks/organicmaps | b5fef4b5954cb27153c0dafddd7eed3bfa0b1e7f | [
"Apache-2.0"
] | 1,396 | 2021-04-08T07:26:49.000Z | 2022-03-31T20:27:46.000Z | generator/maxspeeds_builder.cpp | MAPSWorks/organicmaps | b5fef4b5954cb27153c0dafddd7eed3bfa0b1e7f | [
"Apache-2.0"
] | 242 | 2021-04-10T17:10:46.000Z | 2022-03-31T13:41:07.000Z | #include "generator/maxspeeds_builder.hpp"
#include "generator/maxspeeds_parser.hpp"
#include "generator/routing_helpers.hpp"
#include "routing/index_graph.hpp"
#include "routing/maxspeeds_serialization.hpp"
#include "routing/routing_helpers.hpp"
#include "routing_common/maxspeed_conversion.hpp"
#include "indexer/f... | 29.236749 | 103 | 0.630771 | sthirvela |
5efbeea1d451979703edf492de43826be70fc94f | 2,018 | cpp | C++ | number theory/segmented_sieve.cpp | ferdouszislam/Algorithms | bfae54231a3a27bcc69aa6585574e9ec8863e8ba | [
"MIT"
] | 1 | 2020-10-15T10:55:45.000Z | 2020-10-15T10:55:45.000Z | number theory/segmented_sieve.cpp | ferdouszislam/Algorithms | bfae54231a3a27bcc69aa6585574e9ec8863e8ba | [
"MIT"
] | null | null | null | number theory/segmented_sieve.cpp | ferdouszislam/Algorithms | bfae54231a3a27bcc69aa6585574e9ec8863e8ba | [
"MIT"
] | null | null | null | /**
Segmented Sieve
Find all prime numbers in the range- [a, b] where (a, b)<=10^14 and b-a<=10^5
Complexity: O(loglogN)
**/
#include <bits/stdc++.h>
using namespace std;
///------------------- Segmented Sieve start -------------------///
vector<int> primes;
// Sieve Of Eratosthenes to find primes u... | 19.784314 | 81 | 0.512884 | ferdouszislam |
6f06c982cb4f6df43487f4be1d7153ba54206d82 | 1,206 | cpp | C++ | Timus/Devices.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | Timus/Devices.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | Timus/Devices.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#ifdef ONLINE_JUDGE
#define DB(x)
#define DBL(x)
#define EL
#else
#define DB(x) cerr << "#" << (#x) << ": " << (x) << " ";
#define DBL(x) cerr << "#" << (#x) << ": " << (x) << endl;
#define EL cerr << endl;
#endif
#define EPS 1e-11
#define X first
#define Y second
#define PB push_back
... | 23.647059 | 64 | 0.548093 | MartinAparicioPons |
6f08483d4f17cb075d9126823f81938f1bbdd3e3 | 1,226 | cpp | C++ | src/CefWing/CefRenderApp/CefViewAppBase.cpp | klarso-gmbh/CefView_CefViewCore | 18958c0dbcc44e851ce8569909b098a13ea37953 | [
"MIT"
] | null | null | null | src/CefWing/CefRenderApp/CefViewAppBase.cpp | klarso-gmbh/CefView_CefViewCore | 18958c0dbcc44e851ce8569909b098a13ea37953 | [
"MIT"
] | null | null | null | src/CefWing/CefRenderApp/CefViewAppBase.cpp | klarso-gmbh/CefView_CefViewCore | 18958c0dbcc44e851ce8569909b098a13ea37953 | [
"MIT"
] | null | null | null | //
// CefWingAppBase.cpp
// CeViewfWing
//
// Created by Sheen Tian on 2020/6/17.
//
#pragma region project_heasers
#include "CefViewAppBase.h"
#pragma endregion project_heasers
#pragma region mac_headers
#include <Common/CefViewCoreLog.h>
#pragma endregion mac_headers
#include <CefViewCoreProtocol.h>
// These ... | 26.652174 | 86 | 0.769984 | klarso-gmbh |
6f0d8852d96eb107a385ea7ca3e1c83189e2f07a | 11,150 | cpp | C++ | tests/GrCCPRTest.cpp | lightbell/skia | 37aea440fdb0257a4cffb0b41ab9745a9fc4d4fa | [
"BSD-3-Clause"
] | null | null | null | tests/GrCCPRTest.cpp | lightbell/skia | 37aea440fdb0257a4cffb0b41ab9745a9fc4d4fa | [
"BSD-3-Clause"
] | null | null | null | tests/GrCCPRTest.cpp | lightbell/skia | 37aea440fdb0257a4cffb0b41ab9745a9fc4d4fa | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkTypes.h"
#include "Test.h"
#if SK_SUPPORT_GPU
#include "GrContext.h"
#include "GrContextPriv.h"
#include "GrClip.h"
#include "GrDrawingManager.h"
#include "GrPat... | 36.201299 | 100 | 0.634978 | lightbell |
6f10c3ca253ea68208faa87e31d11465acb79831 | 9,178 | hpp | C++ | proton-c/bindings/cpp/include/proton/container.hpp | aikchar/qpid-proton | 10df4133e8877ee535e24b494738356369dcd24c | [
"Apache-2.0"
] | null | null | null | proton-c/bindings/cpp/include/proton/container.hpp | aikchar/qpid-proton | 10df4133e8877ee535e24b494738356369dcd24c | [
"Apache-2.0"
] | null | null | null | proton-c/bindings/cpp/include/proton/container.hpp | aikchar/qpid-proton | 10df4133e8877ee535e24b494738356369dcd24c | [
"Apache-2.0"
] | 1 | 2020-12-17T15:47:50.000Z | 2020-12-17T15:47:50.000Z | #ifndef PROTON_CONTAINER_HPP
#define PROTON_CONTAINER_HPP
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you ... | 38.563025 | 99 | 0.686097 | aikchar |
6f1759908d4bb42a1f3f7b6639aca363236a09ab | 4,484 | cpp | C++ | Source/Scripting/bsfScript/Generated/BsScriptParticleDepthCollisionSettings.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 1,745 | 2018-03-16T02:10:28.000Z | 2022-03-26T17:34:21.000Z | Source/Scripting/bsfScript/Generated/BsScriptParticleDepthCollisionSettings.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 395 | 2018-03-16T10:18:20.000Z | 2021-08-04T16:52:08.000Z | Source/Scripting/bsfScript/Generated/BsScriptParticleDepthCollisionSettings.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 267 | 2018-03-17T19:32:54.000Z | 2022-02-17T16:55:50.000Z | //********************************* bs::framework - Copyright 2018-2019 Marko Pintera ************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "BsScriptParticleDepthCollisionSettings.generated.h"
#include... | 40.763636 | 170 | 0.807538 | bsf2dev |
6f1bcda59f47ce894a61e4f743de58b2941f4687 | 20,321 | cpp | C++ | lv_cpp/core/LvObj.cpp | lvgl/lv_binding_cpp | 5ce27254ac8526dd1ca61e883785ed2606076a68 | [
"MIT"
] | 7 | 2021-07-26T12:26:48.000Z | 2022-03-19T16:30:56.000Z | lv_cpp/core/LvObj.cpp | lvgl/lv_binding_cpp | 5ce27254ac8526dd1ca61e883785ed2606076a68 | [
"MIT"
] | 4 | 2021-07-15T21:31:48.000Z | 2022-02-03T11:48:16.000Z | lv_cpp/core/LvObj.cpp | kisvegabor/lv_binding_cpp | 5ce27254ac8526dd1ca61e883785ed2606076a68 | [
"MIT"
] | 2 | 2021-10-06T00:59:52.000Z | 2022-02-18T15:03:51.000Z | /*
* LvObj.cpp
*
* Created on: Jun 24, 2021
* Author: fstuffdev
*/
#include "LvObj.h"
namespace lvglpp {
LvObj::LvObj() : LvObj(NULL){
}
LvObj::LvObj(LvObj* Parent) {
if(Parent)
cObj.reset(lv_obj_create(Parent->raw()));
else
cObj.reset(lv_obj_create(lv_scr_act()));
}
lv_obj_t* LvObj::raw() {
retur... | 28.341702 | 146 | 0.771763 | lvgl |
6f1ce37f18f27a5a0216f1df4ca5e79255e52500 | 3,475 | hh | C++ | include/util/Singleton.hh | janpipek/g4application | 6b063636474a7a8f212023ada7fbb60bd4439606 | [
"MIT"
] | 1 | 2018-04-14T08:53:04.000Z | 2018-04-14T08:53:04.000Z | include/util/Singleton.hh | janpipek/g4application | 6b063636474a7a8f212023ada7fbb60bd4439606 | [
"MIT"
] | 23 | 2015-01-13T10:57:36.000Z | 2015-11-25T17:49:27.000Z | include/util/Singleton.hh | janpipek/g4application | 6b063636474a7a8f212023ada7fbb60bd4439606 | [
"MIT"
] | null | null | null | #ifndef SINGLETON_HH
#define SINGLETON_HH
#include <stdexcept>
#include <cstdlib>
#include <mutex>
namespace g4
{
namespace util
{
template<typename T> bool instanceExists();
/**
* @short A simple, non-thread-safe singleton template.
*
* You have to inherit it wi... | 28.958333 | 116 | 0.488345 | janpipek |
6f1e713f595884b4d652c9ae231061b70f145424 | 805 | hpp | C++ | inc/GraphicsLib/ImGui/ImGuiImage.hpp | Sushiwave/graphics-lib | c303e9fb9f11276230a09b45581cdbefa8d2a356 | [
"MIT"
] | 1 | 2020-07-13T18:10:33.000Z | 2020-07-13T18:10:33.000Z | inc/GraphicsLib/ImGui/ImGuiImage.hpp | Sushiwave/graphics-lib | c303e9fb9f11276230a09b45581cdbefa8d2a356 | [
"MIT"
] | null | null | null | inc/GraphicsLib/ImGui/ImGuiImage.hpp | Sushiwave/graphics-lib | c303e9fb9f11276230a09b45581cdbefa8d2a356 | [
"MIT"
] | null | null | null | #pragma once
#include <GraphicsLib/Graphics/GPUResource/ShaderResource/Texture/Texture2D/Base/ITexture2D.hpp>
#include <GraphicsLib/Graphics/GPUResource/RenderTarget/IRenderTarget.hpp>
#include <GraphicsLib/Graphics/GPUResource/MultipleRenderTargets/IMultipleRenderTargets.hpp>
#include <ThirdParty/ExtendedImGui/ImGui/i... | 40.25 | 100 | 0.81118 | Sushiwave |
6f2812c72819a586601a26520e68c02418434c2d | 51,157 | cxx | C++ | libbuild2/variable.cxx | build2/build2 | af662849b756ef2ff0f3d5148a6771acab78fd80 | [
"MIT"
] | 422 | 2018-05-30T12:00:00.000Z | 2022-03-29T07:29:56.000Z | libbuild2/variable.cxx | build2/build2 | af662849b756ef2ff0f3d5148a6771acab78fd80 | [
"MIT"
] | 183 | 2018-07-02T20:38:30.000Z | 2022-03-31T09:54:35.000Z | libbuild2/variable.cxx | build2/build2 | af662849b756ef2ff0f3d5148a6771acab78fd80 | [
"MIT"
] | 14 | 2019-01-09T12:34:02.000Z | 2021-03-16T09:10:53.000Z | // file : libbuild2/variable.cxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#include <libbuild2/variable.hxx>
#include <cstring> // memcmp()
#include <libbutl/path-pattern.hxx>
#include <libbuild2/target.hxx>
#include <libbuild2/diagnostics.hxx>
using namespace std;
namespace build2
{
//... | 25.425944 | 94 | 0.523487 | build2 |
6f285d643ccafd41d15127989f6c9aa7e022512d | 243 | cpp | C++ | Day 15/Q.2]/RAO.cpp | gopalshendge18/Practice-Question | c0dfefb4b6d7c3c5344d09b23d311f07a4444149 | [
"MIT"
] | 1 | 2022-01-03T14:04:26.000Z | 2022-01-03T14:04:26.000Z | Day 15/Q.2]/RAO.cpp | gopalshendge18/Practice-Question | c0dfefb4b6d7c3c5344d09b23d311f07a4444149 | [
"MIT"
] | null | null | null | Day 15/Q.2]/RAO.cpp | gopalshendge18/Practice-Question | c0dfefb4b6d7c3c5344d09b23d311f07a4444149 | [
"MIT"
] | 8 | 2021-11-03T04:12:17.000Z | 2021-12-11T09:28:54.000Z | class Solution {
public:
void moveZeroes(vector<int>& A) {
int num = 0;
for(int i=0; i<A.size(); i++){
if(A[i]!=0) A[num++] = A[i];
}
while(num<A.size()) A[num++] = 0;
}
};
| 18.692308 | 41 | 0.386831 | gopalshendge18 |
6f2a0a323650e354c611b51725880cc698fbda16 | 901 | cpp | C++ | topic_wise/backtracking/subsets.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | 1 | 2021-01-27T16:37:36.000Z | 2021-01-27T16:37:36.000Z | topic_wise/backtracking/subsets.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | topic_wise/backtracking/subsets.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | /**
* @author : archit
* @GitHub : archit-1997
* @email : architsingh456@gmail.com
* @file : subsets.cpp
* @created : Wednesday Jul 28, 2021 12:47:45 IST
*/
#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
void findSubsets(vector<vector<int>> &ans,vector<i... | 23.102564 | 91 | 0.564928 | archit-1997 |
6f2fdd220abe67337e0a805327cedbdda42266f8 | 1,830 | cpp | C++ | src/GameState/PhysicalObject/Enemies/Enemy.cpp | Heaven31415/SpaceShooter | 385e43aa2deb8720c1b0a23834ad31de97fd25eb | [
"Zlib"
] | null | null | null | src/GameState/PhysicalObject/Enemies/Enemy.cpp | Heaven31415/SpaceShooter | 385e43aa2deb8720c1b0a23834ad31de97fd25eb | [
"Zlib"
] | null | null | null | src/GameState/PhysicalObject/Enemies/Enemy.cpp | Heaven31415/SpaceShooter | 385e43aa2deb8720c1b0a23834ad31de97fd25eb | [
"Zlib"
] | null | null | null | #include "Enemy.hpp"
#include "../../../Game.hpp"
#include "../../../Common/Randomizer.hpp"
Enemy::Enemy(Context& context, World& world, LaserFactory& laserFactory)
: PhysicalObject(context, world, Type::Enemy, context.textures.get("EnemyShip"))
, m_laserFactory(laserFactory)
, m_manager(nullptr)
{
setVelocity({0.... | 24.72973 | 129 | 0.644809 | Heaven31415 |
6f3253248ac38b5e8fdff4ca2f25591258362cbb | 5,685 | cc | C++ | tc/core/polyhedral/reduction_matcher.cc | abdullah1908/TensorComprehensions | 90360b9290244ff96f8a89d5311dc75981f70bb7 | [
"Apache-2.0"
] | 1 | 2021-08-28T17:59:20.000Z | 2021-08-28T17:59:20.000Z | tc/core/polyhedral/reduction_matcher.cc | abdullah1908/TensorComprehensions | 90360b9290244ff96f8a89d5311dc75981f70bb7 | [
"Apache-2.0"
] | null | null | null | tc/core/polyhedral/reduction_matcher.cc | abdullah1908/TensorComprehensions | 90360b9290244ff96f8a89d5311dc75981f70bb7 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (c) 2017-present, Facebook, 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 ... | 31.236264 | 79 | 0.692876 | abdullah1908 |
6f36ba3779fc499e30c0d77e201cc4ead021382f | 1,621 | cpp | C++ | command.cpp | KonradCzerw/portal2util | 07bd8fbafe887bed35b076434a899db6444f901d | [
"MIT"
] | null | null | null | command.cpp | KonradCzerw/portal2util | 07bd8fbafe887bed35b076434a899db6444f901d | [
"MIT"
] | null | null | null | command.cpp | KonradCzerw/portal2util | 07bd8fbafe887bed35b076434a899db6444f901d | [
"MIT"
] | null | null | null | #include <command.hpp>
#include <utils.hpp>
#include <tier1.hpp>
std::vector<Command*>& Command::GetList() {
static std::vector<Command*> list;
return list;
}
Command::Command() :
ptr(nullptr),
version(0),
isRegistered(false),
isReference(false)
{}
Command::~Command() {
if(!this->isReference) SAFE_DELETE(thi... | 21.905405 | 143 | 0.705737 | KonradCzerw |
6f3dd367e6ef4ffc34e6c37a711ee907ac0db512 | 20,019 | cc | C++ | ncrack/timing.cc | Adam-K-P/dwm | 7a95bb7e68abe713c4fd45809897ab19b33e65f7 | [
"MIT"
] | null | null | null | ncrack/timing.cc | Adam-K-P/dwm | 7a95bb7e68abe713c4fd45809897ab19b33e65f7 | [
"MIT"
] | null | null | null | ncrack/timing.cc | Adam-K-P/dwm | 7a95bb7e68abe713c4fd45809897ab19b33e65f7 | [
"MIT"
] | null | null | null |
/***************************************************************************
* timing.cc -- Functions related to computing crack timing and keeping *
* track of rates. *
* *
**********... | 38.572254 | 155 | 0.636445 | Adam-K-P |
6f3ddcedff81425b1bbbbd4bc05feec1b03a490b | 1,618 | cpp | C++ | Engine/lib/sdl/src/video/winrt/SDL_winrtopengles.cpp | John3/crabmusket_Torque3D | d84bd0fce2837ffac69d9fc9aadcdf5ee2c98b5c | [
"Unlicense"
] | 77 | 2015-09-09T00:00:15.000Z | 2021-08-28T04:37:35.000Z | Engine/lib/sdl/src/video/winrt/SDL_winrtopengles.cpp | John3/crabmusket_Torque3D | d84bd0fce2837ffac69d9fc9aadcdf5ee2c98b5c | [
"Unlicense"
] | 10 | 2015-01-20T23:14:46.000Z | 2019-04-05T22:04:15.000Z | Engine/lib/sdl/src/video/winrt/SDL_winrtopengles.cpp | John3/crabmusket_Torque3D | d84bd0fce2837ffac69d9fc9aadcdf5ee2c98b5c | [
"Unlicense"
] | 53 | 2015-12-14T08:33:27.000Z | 2021-12-28T04:51:43.000Z | /*
Simple DirectMedia Layer
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | 31.72549 | 76 | 0.765142 | John3 |
6f4079e4415ef8af8f2de5d02fccf8e96c58c68a | 10,359 | cpp | C++ | Experimental/Samples/VR/src/Sample_VR.cpp | azhirnov/DE-Experimental | be0872e603ff0ea1a2aa2b4e579807f6931e65ff | [
"MIT"
] | 1 | 2020-12-19T02:16:12.000Z | 2020-12-19T02:16:12.000Z | Experimental/Samples/VR/src/Sample_VR.cpp | azhirnov/DE-Experimental | be0872e603ff0ea1a2aa2b4e579807f6931e65ff | [
"MIT"
] | null | null | null | Experimental/Samples/VR/src/Sample_VR.cpp | azhirnov/DE-Experimental | be0872e603ff0ea1a2aa2b4e579807f6931e65ff | [
"MIT"
] | null | null | null | #include <random>
#include <thread>
#include "Timer.hpp"
#include "MapHelper.hpp"
#include "Sample_VR.hpp"
#include "TextureUtilities.h"
#include "TexturedCube.hpp"
#include "EngineFactoryVk.h"
#include "OpenVRDevice.h"
#include "VREmulator.h"
namespace DEVR
{
using EHmdStatus = IVRDevice::EHmdStatus;
void Sample_VR... | 36.094077 | 153 | 0.643209 | azhirnov |
6f4832a47b91566139d2569ab9e05e6c03acc272 | 2,083 | cpp | C++ | Top Interview Questions/130. Surrounded Regions/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 1 | 2021-11-19T19:58:33.000Z | 2021-11-19T19:58:33.000Z | Top Interview Questions/130. Surrounded Regions/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | null | null | null | Top Interview Questions/130. Surrounded Regions/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 2 | 2021-11-26T12:47:27.000Z | 2022-01-13T16:14:46.000Z | //
// main.cpp
// 130. Surrounded Regions
//
// Created by 边俊林 on 2019/10/20.
// Copyright © 2019 Minecode.Link. All rights reserved.
//
#include <map>
#include <set>
#include <queue>
#include <string>
#include <stack>
#include <vector>
#include <cstdio>
#include <numeric>
#include <cstdlib>
#include <utility>
#in... | 26.367089 | 68 | 0.473836 | Minecodecraft |
6f4860860d3892964a0adf854adff6219f3b37ca | 1,733 | hpp | C++ | bsengine/src/bstorm/mesh.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | bsengine/src/bstorm/mesh.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | bsengine/src/bstorm/mesh.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | #pragma once
#include <bstorm/cache_store.hpp>
#include <vector>
#include <memory>
#include <unordered_map>
#include <d3dx9.h>
namespace bstorm
{
struct MeshVertex
{
MeshVertex() : x(0), y(0), z(0), nx(0), ny(0), nz(0), u(0), v(0) {}
MeshVertex(float x, float y, float z, float nx, float ny, float nz, float u... | 25.865672 | 147 | 0.651471 | At-sushi |
6f4b2016ad7ae6eb186aaa70fa1f31b8e9db2bb9 | 582 | cpp | C++ | src/resources/pattern_store.cpp | mnewhouse/tselements | bd1c6724018e862156948a680bb1bc70dd28bef6 | [
"MIT"
] | null | null | null | src/resources/pattern_store.cpp | mnewhouse/tselements | bd1c6724018e862156948a680bb1bc70dd28bef6 | [
"MIT"
] | null | null | null | src/resources/pattern_store.cpp | mnewhouse/tselements | bd1c6724018e862156948a680bb1bc70dd28bef6 | [
"MIT"
] | null | null | null | /*
* TS Elements
* Copyright 2015-2018 M. Newhouse
* Released under the MIT license.
*/
#include "pattern_store.hpp"
#include "pattern.hpp"
namespace ts
{
namespace resources
{
Pattern& PatternStore::load_from_file(const std::string& file_name)
{
auto it = loaded_patterns_.find(file_name);
if... | 20.068966 | 91 | 0.654639 | mnewhouse |
6f4c3ad56bda5cc867130af27b5df9949f2f502e | 25,884 | cpp | C++ | amara/amara_uiBox.cpp | BigBossErndog/Amara-RPG | 0a95a35fcddd69775a7ca7b34f3f23be9eb77178 | [
"MIT"
] | null | null | null | amara/amara_uiBox.cpp | BigBossErndog/Amara-RPG | 0a95a35fcddd69775a7ca7b34f3f23be9eb77178 | [
"MIT"
] | null | null | null | amara/amara_uiBox.cpp | BigBossErndog/Amara-RPG | 0a95a35fcddd69775a7ca7b34f3f23be9eb77178 | [
"MIT"
] | null | null | null | #pragma once
#ifndef AMARA_UIBOX
#define AMARA_UIBOX
#include "amara.h"
namespace Amara {
class UIBox: public Amara::Actor {
public:
SDL_Renderer* gRenderer = nullptr;
SDL_Texture* canvas = nullptr;
Amara::ImageTexture* texture = nullptr;
std::string textur... | 35.264305 | 139 | 0.42478 | BigBossErndog |
6f4d3fc0b0beb8d9cdded7f3b25a283b0cc65d00 | 5,923 | cpp | C++ | tests/knnshow.cpp | HIPERT-SRL/libnabo | b3864c8ecab86932e27bd4d463977bfa4e3dc584 | [
"BSD-3-Clause"
] | null | null | null | tests/knnshow.cpp | HIPERT-SRL/libnabo | b3864c8ecab86932e27bd4d463977bfa4e3dc584 | [
"BSD-3-Clause"
] | null | null | null | tests/knnshow.cpp | HIPERT-SRL/libnabo | b3864c8ecab86932e27bd4d463977bfa4e3dc584 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2010--2011, Stephane Magnenat, ASL, ETHZ, Switzerland
You can contact the author at <stephane at magnenat dot net>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions... | 35.467066 | 180 | 0.650346 | HIPERT-SRL |
6f4fe5bc42841fbf76bea2508a67be5874d8abff | 836 | cpp | C++ | application/main.cpp | Italo1994/SimuladorMips | 075bfd9e1bc6e47f8c37f14208afe450bfad46b1 | [
"MIT"
] | null | null | null | application/main.cpp | Italo1994/SimuladorMips | 075bfd9e1bc6e47f8c37f14208afe450bfad46b1 | [
"MIT"
] | null | null | null | application/main.cpp | Italo1994/SimuladorMips | 075bfd9e1bc6e47f8c37f14208afe450bfad46b1 | [
"MIT"
] | null | null | null | #include "conjuntoInstrucoes.h"
#include "operador.h"
#include "registrador.h"
#include "tokenizacao.h"
#include "pipeline.h"
#include "dependencias.h"
//#include "tela.h"
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
//Simulador simulador;
//simulador.criarInstrucoes()... | 17.061224 | 46 | 0.741627 | Italo1994 |
6f568b8959b2d624e7df9210b2fa793e83de6fd0 | 11,250 | hpp | C++ | public/anton/algorithm.hpp | kociap/atl | a7dc9b35c14453040db82dbbeca3c305bb25c66e | [
"MIT"
] | null | null | null | public/anton/algorithm.hpp | kociap/atl | a7dc9b35c14453040db82dbbeca3c305bb25c66e | [
"MIT"
] | null | null | null | public/anton/algorithm.hpp | kociap/atl | a7dc9b35c14453040db82dbbeca3c305bb25c66e | [
"MIT"
] | 1 | 2020-12-15T13:51:38.000Z | 2020-12-15T13:51:38.000Z | #pragma once
#include <anton/algorithm/sort.hpp>
#include <anton/array.hpp>
#include <anton/iterators.hpp>
#include <anton/math/math.hpp>
#include <anton/memory.hpp>
#include <anton/pair.hpp>
#include <anton/swap.hpp>
namespace anton {
// fill_with_consecutive
// Fills range [first, last[ with consecutive val... | 36.407767 | 160 | 0.594133 | kociap |
6f591527b2be7029eee4abfee918a2c3df84cc94 | 11,940 | cc | C++ | dcmpstat/libsrc/dvpsspl.cc | trice-imaging/dcmtk | 60b158654dc7215d938a9ddba92ef5e93ded298d | [
"Apache-2.0"
] | 10 | 2016-07-03T12:16:58.000Z | 2021-12-18T06:15:50.000Z | dcmpstat/libsrc/dvpsspl.cc | trice-imaging/dcmtk | 60b158654dc7215d938a9ddba92ef5e93ded298d | [
"Apache-2.0"
] | 1 | 2020-04-30T07:55:55.000Z | 2020-04-30T07:55:55.000Z | dcmpstat/libsrc/dvpsspl.cc | trice-imaging/dcmtk | 60b158654dc7215d938a9ddba92ef5e93ded298d | [
"Apache-2.0"
] | 9 | 2017-02-09T02:16:39.000Z | 2021-01-06T02:49:24.000Z | /*
*
* Copyright (C) 1998-2010, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmpstat
*
* Author: Marco Eic... | 33.633803 | 139 | 0.687102 | trice-imaging |
6f5b5c581e62b3d363fc5bd1a32840b839d2bf77 | 1,736 | cpp | C++ | src/helpers/Utils.cpp | mnaveedb/finalmq | 3c3b2b213fa07bb5427a1364796b19d732890ed2 | [
"MIT"
] | 11 | 2020-10-13T11:50:29.000Z | 2022-02-27T11:47:34.000Z | src/helpers/Utils.cpp | mnaveedb/finalmq | 3c3b2b213fa07bb5427a1364796b19d732890ed2 | [
"MIT"
] | 15 | 2020-10-07T18:01:27.000Z | 2021-07-08T09:09:13.000Z | src/helpers/Utils.cpp | mnaveedb/finalmq | 3c3b2b213fa07bb5427a1364796b19d732890ed2 | [
"MIT"
] | 2 | 2020-10-07T21:29:06.000Z | 2020-10-14T18:02:17.000Z | //MIT License
//Copyright (c) 2020 bexoft GmbH (mail@bexoft.de)
//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, ... | 37.73913 | 127 | 0.718318 | mnaveedb |
6f5bca818e2a3c464f8effe2a8604306e66e4ab7 | 327 | cpp | C++ | Semestr_1/HomeWork_11/Number_1/Number_1/test.cpp | SaveliyLipaev/HomeWork | 06994ce6ab6f12dd69507fffb6f2d3ba361f0069 | [
"MIT"
] | null | null | null | Semestr_1/HomeWork_11/Number_1/Number_1/test.cpp | SaveliyLipaev/HomeWork | 06994ce6ab6f12dd69507fffb6f2d3ba361f0069 | [
"MIT"
] | 1 | 2018-11-06T05:30:37.000Z | 2018-11-06T05:30:37.000Z | Semestr_1/HomeWork_11/Number_1/Number_1/test.cpp | SaveliyLipaev/HomeWork | 06994ce6ab6f12dd69507fffb6f2d3ba361f0069 | [
"MIT"
] | null | null | null | #include "KMP.h"
using namespace std;
int readAndTest(string str)
{
ifstream file("Text.txt");
int temp = find(file, str);
file.close();
return temp;
}
bool test()
{
string str1 = "dda";
string str2 = "fff";
string str3 = "egj";
return readAndTest(str1) == -1 && readAndTest(str2) == 40 && readAndTest(str3) =... | 17.210526 | 86 | 0.642202 | SaveliyLipaev |
6f5d00c5fc96374548bde085971e7a8b45fecae6 | 14,791 | cpp | C++ | tests/LineTests.cpp | lindale-dev/MathGeoLib | bdd01c86b2d1450dfa323366e3b6646e2796e873 | [
"Apache-2.0"
] | null | null | null | tests/LineTests.cpp | lindale-dev/MathGeoLib | bdd01c86b2d1450dfa323366e3b6646e2796e873 | [
"Apache-2.0"
] | null | null | null | tests/LineTests.cpp | lindale-dev/MathGeoLib | bdd01c86b2d1450dfa323366e3b6646e2796e873 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include "../src/MathGeoLib.h"
#include "../src/Math/myassert.h"
#include "TestRunner.h"
MATH_IGNORE_UNUSED_VARS_WARNING
Line RandomLineContainingPoint(const vec &pt);
Ray RandomRayContainingPoint(const vec &pt);
LineSegment RandomLineSegmentContainingPoint(const vec &pt);
RAN... | 45.371166 | 147 | 0.747279 | lindale-dev |
6f5d4f14fed83eb31f03d6488066852d15840ad1 | 28,327 | cc | C++ | src/protos/Docflow/DocumentWithDocflowV3.pb.cc | Edw-K/diadocsdk-cpp | c50c5ceb5e0c897c9322bd7b66c028cdbc82047e | [
"MIT"
] | 7 | 2016-05-31T17:37:54.000Z | 2022-01-17T14:28:18.000Z | src/protos/Docflow/DocumentWithDocflowV3.pb.cc | Edw-K/diadocsdk-cpp | c50c5ceb5e0c897c9322bd7b66c028cdbc82047e | [
"MIT"
] | 22 | 2017-02-07T09:34:02.000Z | 2021-09-06T08:08:34.000Z | src/protos/Docflow/DocumentWithDocflowV3.pb.cc | Edw-K/diadocsdk-cpp | c50c5ceb5e0c897c9322bd7b66c028cdbc82047e | [
"MIT"
] | 23 | 2016-06-07T06:11:47.000Z | 2020-10-06T13:00:21.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Docflow/DocumentWithDocflowV3.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "Docflow/DocumentWithDocflowV3.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include... | 34.629584 | 146 | 0.70198 | Edw-K |
6f640aab4b430e2a29e45c5ec9aeaac9dee7d887 | 36,232 | cpp | C++ | src/CTimeUnits.cpp | MenaceSan/GrayCore | 244e394adaefa17399232896fbd04b7aaeebac21 | [
"MIT"
] | 1 | 2020-12-18T04:55:27.000Z | 2020-12-18T04:55:27.000Z | src/CTimeUnits.cpp | MenaceSan/GrayCore | 244e394adaefa17399232896fbd04b7aaeebac21 | [
"MIT"
] | null | null | null | src/CTimeUnits.cpp | MenaceSan/GrayCore | 244e394adaefa17399232896fbd04b7aaeebac21 | [
"MIT"
] | null | null | null | //
//! @file cTimeUnits.cpp
//! @copyright 1992 - 2020 Dennis Robinson (http://www.menasoft.com)
//
#include "pch.h"
#include "cTimeUnits.h"
#include "cTimeInt.h"
#include "cTimeZone.h"
#include "StrChar.h"
#include "StrT.h"
#include "cBits.h"
#ifdef __linux__
#include "cTimeVal.h"
#endif
namespace Gray
{
// Stock d... | 28.664557 | 142 | 0.627953 | MenaceSan |
6f65e943f84922e051aab70aef8f82b5238e41a5 | 1,055 | hpp | C++ | Fw/Prm/PrmString.hpp | lahiruroot/fprime | 8245dbd0c454e379af3504b70462e98d7f4353c2 | [
"Apache-2.0"
] | 4 | 2021-02-20T13:38:25.000Z | 2021-05-04T17:20:34.000Z | Fw/Prm/PrmString.hpp | lahiruroot/fprime | 8245dbd0c454e379af3504b70462e98d7f4353c2 | [
"Apache-2.0"
] | 4 | 2020-10-12T18:52:14.000Z | 2021-09-02T22:38:58.000Z | Fw/Prm/PrmString.hpp | lahiruroot/fprime | 8245dbd0c454e379af3504b70462e98d7f4353c2 | [
"Apache-2.0"
] | 5 | 2019-09-06T23:25:26.000Z | 2021-06-22T03:01:07.000Z | #ifndef FW_PRM_STRING_TYPE_HPP
#define FW_PRM_STRING_TYPE_HPP
#include <Fw/Types/BasicTypes.hpp>
#include <Fw/Types/StringType.hpp>
#include <FpConfig.hpp>
#include <Fw/Cfg/SerIds.hpp>
namespace Fw {
class ParamString : public Fw::StringBase {
public:
enum {
SERIALIZED_TYPE_I... | 27.051282 | 129 | 0.625592 | lahiruroot |
6f72053a49d3d65e4318d2a9fe335cfa808a5d8d | 372 | hpp | C++ | src/EditorTraceBuilder.hpp | ryu-raptor/amf | 33a42cf1025ea512f23c4769a5be27d6a0c335bc | [
"MIT"
] | 1 | 2020-05-31T02:25:39.000Z | 2020-05-31T02:25:39.000Z | src/EditorTraceBuilder.hpp | ryu-raptor/amf | 33a42cf1025ea512f23c4769a5be27d6a0c335bc | [
"MIT"
] | null | null | null | src/EditorTraceBuilder.hpp | ryu-raptor/amf | 33a42cf1025ea512f23c4769a5be27d6a0c335bc | [
"MIT"
] | null | null | null | #pragma once
#include <fstream>
#include <string>
#include <vector>
#include <memory>
#include "Trace.hpp"
#include "Pacemaker.hpp"
namespace otoge2019 {
/// ファイルからトレースを作成
class EditorTraceBuilder
{
public:
/// @fn
/// トレースをビルド
std::shared_ptr<std::vector<std::shared_ptr<Trace>>> build(std:... | 19.578947 | 90 | 0.666667 | ryu-raptor |
4cf7e02d9d072783424bd496685228e748517e01 | 608 | cpp | C++ | PAT_B/PAT_B1067.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | 3 | 2019-07-08T05:20:28.000Z | 2021-09-22T10:53:26.000Z | PAT_B/PAT_B1067.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | null | null | null | PAT_B/PAT_B1067.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
string ansStr, tempStr;
vector<string> strVec;
int i, n;
cin >> ansStr >> n;
getchar();
while(1)
{
getline(cin, tempStr);
if(tempStr == "#") break;
else strVec.push_back(tempStr);
}
for (i = 0; i < n;... | 20.965517 | 63 | 0.483553 | EnhydraGod |
4cfb8a77b20fe613ad253e1681d17005225fda0b | 5,465 | cpp | C++ | buffer_cache.cpp | cephalicmarble/drumlin | c86319fbb0670fa7cf9437e335f0a41ab7496028 | [
"MIT"
] | null | null | null | buffer_cache.cpp | cephalicmarble/drumlin | c86319fbb0670fa7cf9437e335f0a41ab7496028 | [
"MIT"
] | null | null | null | buffer_cache.cpp | cephalicmarble/drumlin | c86319fbb0670fa7cf9437e335f0a41ab7496028 | [
"MIT"
] | null | null | null | #define TAOJSON
#include "buffer_cache.h"
#include <vector>
#include <algorithm>
#include <boost/date_time/posix_time/posix_time.hpp>
#include "drumlin.h"
namespace drumlin {
namespace Buffers {
/**
* @brief BufferCache::BufferCache : only constructor
*/
BufferCache::BufferCache()
{
}
/**
* @brief BufferCache::... | 26.921182 | 118 | 0.64172 | cephalicmarble |
4cfc46a690d41a0bdbb90b03c781d3a6861ececf | 1,137 | cc | C++ | tests/invoke.cc | chip5441/ezy | 4e4ed4edcfe182b4a6b5fd3459a67200474013ec | [
"MIT"
] | null | null | null | tests/invoke.cc | chip5441/ezy | 4e4ed4edcfe182b4a6b5fd3459a67200474013ec | [
"MIT"
] | null | null | null | tests/invoke.cc | chip5441/ezy | 4e4ed4edcfe182b4a6b5fd3459a67200474013ec | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include <ezy/invoke.h>
int foo()
{
return 101;
}
SCENARIO("invoke")
{
GIVEN("a struct")
{
struct S
{
int f() { return 3; };
constexpr int cf() const { return 4; }
int mem{5};
};
struct D : S
{};
S s;
WHEN("its pointer to member function in... | 16.478261 | 103 | 0.510114 | chip5441 |
4cfd341ed7cbb30d4c2e926e0efdc0a52470e86d | 1,319 | cpp | C++ | qn3m.cpp | Gourav1695/pp_assignment2_part1 | 6cf3b1251741d161ff52c92eb0fcf1d985d1a8aa | [
"MIT"
] | null | null | null | qn3m.cpp | Gourav1695/pp_assignment2_part1 | 6cf3b1251741d161ff52c92eb0fcf1d985d1a8aa | [
"MIT"
] | null | null | null | qn3m.cpp | Gourav1695/pp_assignment2_part1 | 6cf3b1251741d161ff52c92eb0fcf1d985d1a8aa | [
"MIT"
] | null | null | null |
#include <bits/stdc++.h>
#include <time.h>
using namespace std;
struct node
{
int player_id;
struct node *next;
};
struct node *start, *ptr, *ptr1, *new_node, *beginn;
int main()
{
int v2;
srand(time(NULL));
int n, k, i, count;
cout << "enter the no.of player : " << endl;
... | 23.140351 | 97 | 0.461713 | Gourav1695 |
9804f1cd2784d3bf0c2da9c8e89a89bdc09fd5d2 | 244 | hpp | C++ | typed_python/PyForwardInstance.hpp | npang1/nativepython | df311a5614a9660c15a8183b2dc606ff3e4600df | [
"Apache-2.0"
] | 7 | 2018-08-07T15:41:54.000Z | 2019-02-19T12:47:57.000Z | typed_python/PyForwardInstance.hpp | npang1/nativepython | df311a5614a9660c15a8183b2dc606ff3e4600df | [
"Apache-2.0"
] | 38 | 2018-10-17T13:37:46.000Z | 2019-04-11T20:50:14.000Z | typed_python/PyForwardInstance.hpp | npang1/nativepython | df311a5614a9660c15a8183b2dc606ff3e4600df | [
"Apache-2.0"
] | 4 | 2019-02-11T17:44:55.000Z | 2019-03-20T07:38:18.000Z | #pragma once
#include "PyInstance.hpp"
class PyForwardInstance : public PyInstance {
public:
typedef Forward modeled_type;
static bool pyValCouldBeOfTypeConcrete(Type* t, PyObject* pyRepresentation) {
return false;
}
};
| 17.428571 | 81 | 0.721311 | npang1 |
98058cf9ef627263828704600f68564f95695420 | 831 | cpp | C++ | Lab 2/Chapter 3 Source Code/Ch3_ProgrammingEx4_Code.cpp | candr002/CS150 | 8270f60769fc8a9c18e5c5c46879b63663ba2117 | [
"Unlicense"
] | null | null | null | Lab 2/Chapter 3 Source Code/Ch3_ProgrammingEx4_Code.cpp | candr002/CS150 | 8270f60769fc8a9c18e5c5c46879b63663ba2117 | [
"Unlicense"
] | null | null | null | Lab 2/Chapter 3 Source Code/Ch3_ProgrammingEx4_Code.cpp | candr002/CS150 | 8270f60769fc8a9c18e5c5c46879b63663ba2117 | [
"Unlicense"
] | null | null | null | //Logic errors.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double cost;
double area;
double bagSize;
cout << fixed << showpoint << setprecision(2);
cout << "Enter the amount of fertilizer, in pounds, "
<< "in one bag: ";
cin >>... | 21.868421 | 60 | 0.519856 | candr002 |
980f2bd43fd11162e852dac327bd4541255ab413 | 431 | hpp | C++ | src/TitleScreen.hpp | ara159/gravity | d990bcae0b2f980a05a50705ec5633d9532bc599 | [
"MIT"
] | null | null | null | src/TitleScreen.hpp | ara159/gravity | d990bcae0b2f980a05a50705ec5633d9532bc599 | [
"MIT"
] | null | null | null | src/TitleScreen.hpp | ara159/gravity | d990bcae0b2f980a05a50705ec5633d9532bc599 | [
"MIT"
] | null | null | null | #ifndef TITLE_SCREEN
#define TITLE_SCREEN 1
#include "MyGameObject.hpp"
class TitleScreen : public MyGameObject
{
private:
Texture* txTitle;
Texture* txBtnStart;
Texture* txBtnRank;
Sprite* spTitle;
Sprite* spBtnStart;
Sprite* spBtnRank;
public:
TitleScreen();
~TitleScreen();
void s... | 18.73913 | 43 | 0.684455 | ara159 |
980ff7498832c784eab718a8b886e82891047599 | 2,811 | cpp | C++ | lavaMD-sycl/util/num/num.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 58 | 2020-08-06T18:53:44.000Z | 2021-10-01T07:59:46.000Z | lavaMD-sycl/util/num/num.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 66 | 2015-06-15T20:38:19.000Z | 2020-08-26T00:11:43.000Z | lavaMD-sycl/util/num/num.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 34 | 2017-12-14T01:06:58.000Z | 2022-02-14T09:40:35.000Z | #ifdef __cplusplus
extern "C" {
#endif
//===============================================================================================================================================================================================================200
// DESCRIPTION
//==================================================... | 52.055556 | 212 | 0.144077 | BeauJoh |
98129e2010a742c1e942454501b9ee2cc01aa60d | 23,600 | hxx | C++ | Utilities/itkVectorImageFileReader.hxx | KevinScholtes/ANTsX | 5462269c0c32e5d65560bae4014c5a05cb02588d | [
"BSD-3-Clause"
] | null | null | null | Utilities/itkVectorImageFileReader.hxx | KevinScholtes/ANTsX | 5462269c0c32e5d65560bae4014c5a05cb02588d | [
"BSD-3-Clause"
] | null | null | null | Utilities/itkVectorImageFileReader.hxx | KevinScholtes/ANTsX | 5462269c0c32e5d65560bae4014c5a05cb02588d | [
"BSD-3-Clause"
] | 1 | 2019-10-06T07:31:58.000Z | 2019-10-06T07:31:58.000Z | /*=========================================================================
Program: Advanced Normalization Tools
Copyright (c) ConsortiumOfANTS. All rights reserved.
See accompanying COPYING.txt or
https://github.com/stnava/ANTs/blob/master/ANTSCopyright.txt for details.
This software is distributed W... | 32.108844 | 105 | 0.579661 | KevinScholtes |
98140f5ab75cbb6a9f7d5201745af88b5a7383ba | 6,750 | cpp | C++ | src/lib/rtm/SystemLogger.cpp | r-kurose/OpenRTM-aist | 258c922c55a97c6d1265dbf45e1e8b2ea29b2d86 | [
"RSA-MD"
] | 15 | 2019-01-08T15:34:04.000Z | 2022-03-01T08:36:17.000Z | src/lib/rtm/SystemLogger.cpp | r-kurose/OpenRTM-aist | 258c922c55a97c6d1265dbf45e1e8b2ea29b2d86 | [
"RSA-MD"
] | 448 | 2018-12-27T03:13:56.000Z | 2022-03-24T09:57:03.000Z | src/lib/rtm/SystemLogger.cpp | r-kurose/OpenRTM-aist | 258c922c55a97c6d1265dbf45e1e8b2ea29b2d86 | [
"RSA-MD"
] | 31 | 2018-12-26T04:34:22.000Z | 2021-11-25T04:39:51.000Z | // -*- C++ -*-
/*!
* @file SystemLogger.cpp
* @brief RT component logger class
* @date $Date: 2007-07-20 16:10:32 $
* @author Noriaki Ando <n-ando@aist.go.jp>
*
* Copyright (C) 2003-2008
* Task-intelligence Research Group,
* Intelligent Systems Research Institute,
* National Institute of
* ... | 23.195876 | 87 | 0.560296 | r-kurose |
9815dd20ae1d892b46f7fe757df35eb2aa3adadc | 1,163 | cpp | C++ | LeetCode/H/Merge-k-Sorted-List.cpp | luismoroco/ProgrCompetitiva | 011cdb18749a16d17fd635a7c36a8a21b2b643d9 | [
"BSD-3-Clause"
] | null | null | null | LeetCode/H/Merge-k-Sorted-List.cpp | luismoroco/ProgrCompetitiva | 011cdb18749a16d17fd635a7c36a8a21b2b643d9 | [
"BSD-3-Clause"
] | null | null | null | LeetCode/H/Merge-k-Sorted-List.cpp | luismoroco/ProgrCompetitiva | 011cdb18749a16d17fd635a7c36a8a21b2b643d9 | [
"BSD-3-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode() : val(0), next(nullptr) {}
ListNode(int x) : val(x), next(nullptr) {}
ListNode(int x, ListNode *next) : val(x), next(next) {}
};
ListNode* mergeKLists(vector<ListNode*>& lists) {
... | 20.403509 | 67 | 0.490972 | luismoroco |
982070a1a6ebe5e90785863829153ca3d78b46cb | 1,632 | cpp | C++ | DawnBreakers/Source/DawnBreakers/GameLogic/GameRules/GameMode/ZombieSurvive/ZombieSurvivalHUD.cpp | 954818696/FPSGame | bc82ceb1b56460a8e0e0c0e9a0da20fb5898e158 | [
"MIT"
] | 1 | 2017-01-21T14:08:06.000Z | 2017-01-21T14:08:06.000Z | DawnBreakers/Source/DawnBreakers/GameLogic/GameRules/GameMode/ZombieSurvive/ZombieSurvivalHUD.cpp | 954818696/FPSGame | bc82ceb1b56460a8e0e0c0e9a0da20fb5898e158 | [
"MIT"
] | null | null | null | DawnBreakers/Source/DawnBreakers/GameLogic/GameRules/GameMode/ZombieSurvive/ZombieSurvivalHUD.cpp | 954818696/FPSGame | bc82ceb1b56460a8e0e0c0e9a0da20fb5898e158 | [
"MIT"
] | 2 | 2017-11-14T10:36:01.000Z | 2020-07-13T08:52:08.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "DawnBreakers.h"
#include "ZombieSurvivalHUD.h"
AZombieSurvivalHUD::AZombieSurvivalHUD(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer),
m_ShowHUD(true)
{
static ConstructorHelpers::FObjectFinder<UTextur... | 27.661017 | 125 | 0.765319 | 954818696 |
98219446db14f643fa7e1edcdcf079ce6842023a | 3,007 | hpp | C++ | NativeCore/Shared/Keys.hpp | jesterret/ReClass.NET | 0ee8a4cd6a00e2664f2ef3250a81089c32d69392 | [
"MIT"
] | 1,009 | 2018-02-07T05:07:34.000Z | 2022-03-31T10:27:35.000Z | NativeCore/Shared/Keys.hpp | EliteOutlaws/ReClass.NET | 8125eac282d56fa0b9040294ca49b2febd7d9237 | [
"MIT"
] | 161 | 2018-02-25T00:32:47.000Z | 2022-03-31T21:02:50.000Z | NativeCore/Shared/Keys.hpp | EliteOutlaws/ReClass.NET | 8125eac282d56fa0b9040294ca49b2febd7d9237 | [
"MIT"
] | 281 | 2018-02-07T05:07:43.000Z | 2022-03-28T16:42:57.000Z | #pragma once
enum class Keys : int32_t
{
None = 0,
LButton = 1,
RButton = 2,
Cancel = 3,
MButton = 4,
XButton1 = 5,
XButton2 = 6,
Back = 8,
Tab = 9,
LineFeed = 10,
Clear = 12,
Return = 13,
Enter = 13,
ShiftKey = 16,
ControlKey = 17,
Menu = 18,
Pause = 19,
Capital = 20,
CapsLock = 20,
KanaMode = 21,... | 14.319048 | 68 | 0.588959 | jesterret |
9822cd1f28ae392b5e549930721ef3a468c0eda7 | 46,171 | cpp | C++ | Test/Unit/future/FutureTest.cpp | erikzenker/asyncly | 550dbec10c3e74c10303345e44ad7c9f98e3db06 | [
"ECL-2.0",
"Apache-2.0"
] | 23 | 2020-02-25T14:11:58.000Z | 2021-09-23T04:32:09.000Z | Test/Unit/future/FutureTest.cpp | erikzenker/asyncly | 550dbec10c3e74c10303345e44ad7c9f98e3db06 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-03-11T14:04:19.000Z | 2020-11-09T20:50:41.000Z | Test/Unit/future/FutureTest.cpp | erikzenker/asyncly | 550dbec10c3e74c10303345e44ad7c9f98e3db06 | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2020-02-25T14:12:39.000Z | 2021-12-28T01:30:48.000Z | /*
* Copyright 2019 LogMeIn
*
* 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 w... | 30.698803 | 100 | 0.631067 | erikzenker |
982537b9da42cfe4184a27d5b1f3deb91abdcd1e | 12,950 | cpp | C++ | MainWindow.cpp | azonenberg/sump-monitor | 74d44823990f4ad84fca32e8ddf47b96f5e5ee5c | [
"BSD-3-Clause"
] | null | null | null | MainWindow.cpp | azonenberg/sump-monitor | 74d44823990f4ad84fca32e8ddf47b96f5e5ee5c | [
"BSD-3-Clause"
] | null | null | null | MainWindow.cpp | azonenberg/sump-monitor | 74d44823990f4ad84fca32e8ddf47b96f5e5ee5c | [
"BSD-3-Clause"
] | null | null | null | /***********************************************************************************************************************
* *
* SUMP MONITOR v0.1 ... | 36.685552 | 120 | 0.59529 | azonenberg |
9825da1c31e6dde9b247fba908733786293c6894 | 657 | cpp | C++ | Engine/Src/SFEngine/Asset/Importer/SFAssetImporterTexture.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | Engine/Src/SFEngine/Asset/Importer/SFAssetImporterTexture.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | Engine/Src/SFEngine/Asset/Importer/SFAssetImporterTexture.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) 2018 Kyungkun Ko
//
// Author : KyungKun Ko
//
// Description : Asset Importer
//
////////////////////////////////////////////////////////////////////////////////
#include "SFEnginePCH.h"
#include "Resul... | 17.289474 | 82 | 0.499239 | blue3k |
9831de890e9deaa18ea939c33f4de2368059108e | 13,427 | cpp | C++ | source/modules/neuralNetwork/layer/pooling/pooling.cpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 43 | 2018-07-26T07:20:42.000Z | 2022-03-02T10:23:12.000Z | source/modules/neuralNetwork/layer/pooling/pooling.cpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 212 | 2018-09-21T10:44:07.000Z | 2022-03-22T14:33:05.000Z | source/modules/neuralNetwork/layer/pooling/pooling.cpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 16 | 2018-07-25T15:00:36.000Z | 2022-03-22T14:19:46.000Z | #include "modules/neuralNetwork/layer/pooling/pooling.hpp"
#include "modules/neuralNetwork/neuralNetwork.hpp"
#ifdef _KORALI_USE_CUDNN
#include "auxiliar/cudaUtils.hpp"
#endif
#ifdef _KORALI_USE_ONEDNN
#include "auxiliar/dnnUtils.hpp"
using namespace dnnl;
#endif
#include <Eigen/Dense>
using namespace Eigen;
na... | 38.253561 | 262 | 0.690996 | JonathanLehner |
9835d0a1c3f347d9f92019864766c823c4093a4b | 3,221 | cpp | C++ | ESRenderEngine/app/src/main/cpp/MapExample/MapFlushVertexApp.cpp | Woohyun-Kim/ESRenderEngine | 431dbbbc6529a599441b497f9797eeb223052627 | [
"MIT"
] | 1 | 2018-06-06T18:07:20.000Z | 2018-06-06T18:07:20.000Z | ESRenderEngine/app/src/main/cpp/MapExample/MapFlushVertexApp.cpp | artrointel/ESRenderEngine | 431dbbbc6529a599441b497f9797eeb223052627 | [
"MIT"
] | null | null | null | ESRenderEngine/app/src/main/cpp/MapExample/MapFlushVertexApp.cpp | artrointel/ESRenderEngine | 431dbbbc6529a599441b497f9797eeb223052627 | [
"MIT"
] | null | null | null | //
// Created by we.kim on 2017-07-20.
//
#include "MapFlushVertexApp.h"
bool MapFlushVertexApp::init()
{
if(TriangleVBOApp::init())
{
// Generate an additional VBO for map example
glGenBuffers(1, &vboMapId);
glBindBuffer(GL_ARRAY_BUFFER, vboMapId);
glBufferData(GL... | 37.022989 | 118 | 0.595157 | Woohyun-Kim |
983604f7fce37559c7a955132739d5389a33e810 | 14,811 | hpp | C++ | include/mgard-x/DataRefactoring/MultiDimension/Correction/LevelwiseProcessingKernel.hpp | JasonRuonanWang/MGARD | 70d3399f6169c8a369da9fe9786c45cb6f3bb9f1 | [
"Apache-2.0"
] | null | null | null | include/mgard-x/DataRefactoring/MultiDimension/Correction/LevelwiseProcessingKernel.hpp | JasonRuonanWang/MGARD | 70d3399f6169c8a369da9fe9786c45cb6f3bb9f1 | [
"Apache-2.0"
] | null | null | null | include/mgard-x/DataRefactoring/MultiDimension/Correction/LevelwiseProcessingKernel.hpp | JasonRuonanWang/MGARD | 70d3399f6169c8a369da9fe9786c45cb6f3bb9f1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021, Oak Ridge National Laboratory.
* MGARD-X: MultiGrid Adaptive Reduction of Data Portable across GPUs and CPUs
* Author: Jieyang Chen (chenj3@ornl.gov)
* Date: December 1, 2021
*/
#ifndef MGARD_X_LEVELWISE_PROCESSING_KERNEL_TEMPLATE
#define MGARD_X_LEVELWISE_PROCESSING_KERNEL_TEMPLATE
#include... | 32.623348 | 80 | 0.542165 | JasonRuonanWang |
9838e28fe961cfe241d63ad265dc4125ab77dbd7 | 24,415 | cpp | C++ | src/limits.cpp | neivv/teippi | 05c006c2f74ad11285c39d37135aed03d1fb8806 | [
"MIT"
] | 11 | 2015-08-25T23:27:00.000Z | 2021-05-06T18:53:21.000Z | src/limits.cpp | neivv/teippi | 05c006c2f74ad11285c39d37135aed03d1fb8806 | [
"MIT"
] | 2 | 2015-08-30T21:22:59.000Z | 2016-05-31T17:49:42.000Z | src/limits.cpp | neivv/teippi | 05c006c2f74ad11285c39d37135aed03d1fb8806 | [
"MIT"
] | 5 | 2015-08-29T22:35:28.000Z | 2016-02-26T19:15:24.000Z | #include "limits.h"
#include "patch/patchmanager.h"
#include "ai.h"
#include "bullet.h"
#include "bunker.h"
#include "commands.h"
#include "dialog.h"
#include "draw.h"
#include "flingy.h"
#include "game.h"
#include "init.h"
#include "image.h"
#include "iscript.h"
#include "log.h"
#include "offsets_hooks.h"
#include "o... | 36.992424 | 118 | 0.665452 | neivv |
983c1b878efed132e65028ff5e1119bce5e830f9 | 3,608 | cpp | C++ | hphp/compiler/statement/class_constant.cpp | kkopachev/hhvm | a9f242ec029c37b1e9d1715b13661e66293d87ab | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/compiler/statement/class_constant.cpp | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/compiler/statement/class_constant.cpp | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-12-30T13:22:47.000Z | 2020-12-30T13:22:47.000Z | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... | 33.719626 | 79 | 0.561253 | kkopachev |
983d4a9a9f304a7d065a213220ce7e29bd7c02fc | 1,147 | cpp | C++ | csapex_vision_features/src/register_plugin.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 2 | 2016-09-02T15:33:22.000Z | 2019-05-06T22:09:33.000Z | csapex_vision_features/src/register_plugin.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 1 | 2021-02-14T19:53:30.000Z | 2021-02-14T19:53:30.000Z | csapex_vision_features/src/register_plugin.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 6 | 2016-10-12T00:55:23.000Z | 2021-02-10T17:49:25.000Z | /// HEADER
#include "register_plugin.h"
/// COMPONENT
#include <csapex/factory/generic_node_factory.hpp>
#include <csapex/factory/node_factory_impl.h>
#include <csapex/msg/generic_value_message.hpp>
#include <csapex_vision_features/descriptor_message.h>
#include <csapex_vision_features/keypoint_message.h>
/// PROJECT... | 28.675 | 146 | 0.79599 | AdrianZw |
983f46aeeba033a9d84c6d7faeb1e26484552933 | 7,369 | cpp | C++ | QTDialogs/SceneEditorTab/SceneEditorTab.cpp | msolids/musen | 67d9a70d03d771ccda649c21b78d165684e31171 | [
"BSD-3-Clause"
] | 19 | 2020-09-28T07:22:50.000Z | 2022-03-07T09:52:20.000Z | QTDialogs/SceneEditorTab/SceneEditorTab.cpp | LasCondes/musen | 18961807928285ff802e050050f4c627dd7bec1e | [
"BSD-3-Clause"
] | 5 | 2020-12-26T18:18:27.000Z | 2022-02-23T22:56:43.000Z | QTDialogs/SceneEditorTab/SceneEditorTab.cpp | LasCondes/musen | 18961807928285ff802e050050f4c627dd7bec1e | [
"BSD-3-Clause"
] | 11 | 2020-11-02T11:32:03.000Z | 2022-01-27T08:22:04.000Z | /* Copyright (c) 2013-2020, MUSEN Development Team. All rights reserved.
This file is part of MUSEN framework http://msolids.net/musen.
See LICENSE file for license and warranty information. */
#include "SceneEditorTab.h"
#include <QMessageBox>
CSceneEditorTab::CSceneEditorTab(QWidget *parent /*= 0*/) : CMusenD... | 41.398876 | 204 | 0.780703 | msolids |
9846bd5882d147f78ebdab29031e533a267552fb | 567 | hpp | C++ | include/Pomdog/Async/ImmediateScheduler.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | include/Pomdog/Async/ImmediateScheduler.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | include/Pomdog/Async/ImmediateScheduler.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_IMMEDIATESCHEDULER_6ABB0F4A_HPP
#define POMDOG_IMMEDIATESCHEDULER_6ABB0F4A_HPP
#include "Pomdog/Async/Scheduler.hpp"
namespace Pomdog {
namespace Concurrency {
class POMDOG_EXPORT ImmediateSche... | 24.652174 | 70 | 0.767196 | bis83 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.