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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4e65589e56b357a5238f162e2b0cb858650eb374 | 3,126 | cc | C++ | content/browser/process_internals/process_internals_browsertest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | content/browser/process_internals/process_internals_browsertest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | content/browser/process_internals/process_internals_browsertest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/strings/utf_string_conversions.h"
#include "content/browser/child_process_security_policy_impl.h"
#include "content/browser/renderer_host/r... | 42.243243 | 80 | 0.742163 | zealoussnow |
4e6665fe6dbf02a5fb4af8c55d94b849798b8836 | 4,826 | cpp | C++ | src/Screens/MusicSelect/Drawables/ControlPanels.cpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 19 | 2020-02-28T20:34:12.000Z | 2022-01-28T20:18:25.000Z | src/Screens/MusicSelect/Drawables/ControlPanels.cpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 7 | 2019-10-22T09:43:16.000Z | 2022-03-12T00:15:13.000Z | src/Screens/MusicSelect/Drawables/ControlPanels.cpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 5 | 2019-10-22T08:14:57.000Z | 2021-03-13T06:32:04.000Z | #include "ControlPanels.hpp"
#include "../../../Toolkit/SFMLHelpers.hpp"
namespace MusicSelect {
void LeftButton::draw(sf::RenderTarget& target, sf::RenderStates states) const {
states.transform *= getTransform();
sf::CircleShape circle{get_panel_size()*0.4f};
circle.setFillColor(sf::Color... | 43.477477 | 87 | 0.648363 | Subject38 |
4e6ae5947b7e3480f74525a74eceeda1ab1347ef | 752 | cpp | C++ | lib/DBMS/DBMS.cpp | travisolbrich/315-P1-DBMS | 84168bbb3f5fe7518cbb212baa01d54ca7e6815d | [
"MIT"
] | null | null | null | lib/DBMS/DBMS.cpp | travisolbrich/315-P1-DBMS | 84168bbb3f5fe7518cbb212baa01d54ca7e6815d | [
"MIT"
] | null | null | null | lib/DBMS/DBMS.cpp | travisolbrich/315-P1-DBMS | 84168bbb3f5fe7518cbb212baa01d54ca7e6815d | [
"MIT"
] | 3 | 2016-02-15T22:32:31.000Z | 2021-01-10T14:41:14.000Z | #include "../SqlTokenizer/SqlTokenizer.h"
#include "../SqlTokenizer/Token.h"
#include "../SqlParser/SqlParser.h"
#include "../DBMSEngine/Relation.h"
#include "../DBMSEngine/Engine.h"
#include "DBMS.h"
#include <string>
#include <vector>
/**
Returns:
0: valid answer
1: Exception
2: Exit called
**/
int DBMS::execut... | 18.341463 | 52 | 0.660904 | travisolbrich |
4e6af3670917df035958d0dbc1368177dd4e0669 | 157 | cpp | C++ | problem-2/main.cpp | ProgrammingLanguagesClass/Assignment-2 | a65ff25decee4da401660a0c85bb3467f065e119 | [
"MIT"
] | 1 | 2019-12-10T11:03:59.000Z | 2019-12-10T11:03:59.000Z | problem-2/main.cpp | ProgrammingLanguagesClass/Assignment-2 | a65ff25decee4da401660a0c85bb3467f065e119 | [
"MIT"
] | null | null | null | problem-2/main.cpp | ProgrammingLanguagesClass/Assignment-2 | a65ff25decee4da401660a0c85bb3467f065e119 | [
"MIT"
] | 1 | 2019-01-03T11:00:30.000Z | 2019-01-03T11:00:30.000Z | #include <iostream>
#include "main.h"
using namespace std;
string getGrade(int score)
{
string grade;
// Write your code here
return grade;
} | 12.076923 | 27 | 0.66879 | ProgrammingLanguagesClass |
4e6c736bb84dcefe43dc1cdebe261f47dc437c97 | 6,678 | cpp | C++ | test/distribution/joint_distribution_iid_test.cpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 17 | 2015-07-03T06:53:05.000Z | 2021-05-15T20:55:12.000Z | test/distribution/joint_distribution_iid_test.cpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 3 | 2015-02-20T12:48:17.000Z | 2019-12-18T08:45:13.000Z | test/distribution/joint_distribution_iid_test.cpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 15 | 2015-02-20T11:34:14.000Z | 2021-05-15T20:55:13.000Z | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2014 Max-Planck-Institute for Intelligent Systems,
* University of Southern California
* Jan Issac (jan.issac@gmail.com)
* Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
*
*
* Redistribution and use in source and binary... | 33.727273 | 81 | 0.686733 | aeolusbot-tommyliu |
4e6d1fa6994a4c3374ff41e672058f0baf99e5ab | 576 | cpp | C++ | Opportunity.ChakraBridge.WinRT/Value/JsString.cpp | OpportunityLiu/ChakraBridge | 38e3eb058a94fb2f8bab0aed19af2dbfdbb556f3 | [
"MIT"
] | null | null | null | Opportunity.ChakraBridge.WinRT/Value/JsString.cpp | OpportunityLiu/ChakraBridge | 38e3eb058a94fb2f8bab0aed19af2dbfdbb556f3 | [
"MIT"
] | null | null | null | Opportunity.ChakraBridge.WinRT/Value/JsString.cpp | OpportunityLiu/ChakraBridge | 38e3eb058a94fb2f8bab0aed19af2dbfdbb556f3 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "JsString.h"
using namespace Opportunity::ChakraBridge::WinRT;
JsStringImpl::~JsStringImpl()
{
// ignore error.
JsRelease(Reference.Ref, nullptr);
}
JsStringImpl::JsStringImpl(RawValue ref)
:JsValueImpl(std::move(ref))
{
Reference.AddRef();
}
uint32 JsStringImpl::Length::ge... | 18 | 73 | 0.704861 | OpportunityLiu |
4e6f96ffeb0d0f1b8b3698debfd3b342ebda6277 | 25,032 | cpp | C++ | ExaHyPE/exahype/mappings/PredictionOrLocalRecomputation.cpp | linusseelinger/ExaHyPE-Tsunami | 92a6e14926862e1584ef1e935874c91d252e8112 | [
"BSD-3-Clause"
] | null | null | null | ExaHyPE/exahype/mappings/PredictionOrLocalRecomputation.cpp | linusseelinger/ExaHyPE-Tsunami | 92a6e14926862e1584ef1e935874c91d252e8112 | [
"BSD-3-Clause"
] | null | null | null | ExaHyPE/exahype/mappings/PredictionOrLocalRecomputation.cpp | linusseelinger/ExaHyPE-Tsunami | 92a6e14926862e1584ef1e935874c91d252e8112 | [
"BSD-3-Clause"
] | 1 | 2021-04-08T16:12:18.000Z | 2021-04-08T16:12:18.000Z | /**os
* This file is part of the ExaHyPE project.
* Copyright (c) 2016 http://exahype.eu
* All rights reserved.
*
* The project has received funding from the European Union's Horizon
* 2020 research and innovation programme under grant agreement
* No 671698. For copyrights and licensing, please consult the web... | 44.148148 | 155 | 0.740932 | linusseelinger |
4e70497236b5f181b81da3ed17ebe1bd946a0c23 | 382 | hpp | C++ | src/geocode/protocol_mapquest.hpp | stephaneyfx/geocode-cpp | 18ec8f62cbd71953f200c41887408028a03cd8a5 | [
"MIT"
] | null | null | null | src/geocode/protocol_mapquest.hpp | stephaneyfx/geocode-cpp | 18ec8f62cbd71953f200c41887408028a03cd8a5 | [
"MIT"
] | null | null | null | src/geocode/protocol_mapquest.hpp | stephaneyfx/geocode-cpp | 18ec8f62cbd71953f200c41887408028a03cd8a5 | [
"MIT"
] | null | null | null | // Copyright (C) 2018 Stephane Raux. Distributed under the MIT license.
#pragma once
#include "protocol.hpp"
#include <string>
class ProtocolMapQuest {
public:
explicit ProtocolMapQuest(std::string key);
std::string host() const;
Coordinates parse(const Response& resp) const;
Request request(const st... | 21.222222 | 71 | 0.719895 | stephaneyfx |
4e70e45f0c11f881a50d7ea5189126a2233439bd | 4,475 | cc | C++ | ui/ozone/platform/drm/gpu/drm_gpu_util.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | ui/ozone/platform/drm/gpu/drm_gpu_util.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | ui/ozone/platform/drm/gpu/drm_gpu_util.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/ozone/platform/drm/gpu/drm_gpu_util.h"
#include <fcntl.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
#include "base/files/scoped_file.h"... | 31.076389 | 78 | 0.627039 | mghgroup |
4e73d28eaf35e20955ff67c5a9a70c97c9781d65 | 1,318 | cpp | C++ | raizes_equacao.cpp | Institutionoffoz/Teste1 | cfb5c67b8b93daf0a777caed15f8fcefa1fce51d | [
"MIT"
] | null | null | null | raizes_equacao.cpp | Institutionoffoz/Teste1 | cfb5c67b8b93daf0a777caed15f8fcefa1fce51d | [
"MIT"
] | null | null | null | raizes_equacao.cpp | Institutionoffoz/Teste1 | cfb5c67b8b93daf0a777caed15f8fcefa1fce51d | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
int raizes(double a, double b, double c, double *px1, double *px2)
{
double delta;
if(a == 0.0)
{
*px1 = *px2 = -c/b;
}
else
{
delta = b * b - 4 * a * c;
if(delta < 0)
{
*px1 = *px2 = -3.141592... | 19.671642 | 78 | 0.403642 | Institutionoffoz |
4e75707d7d71c63a8b0376c10824ee39930c8b04 | 80,177 | cxx | C++ | com/oleutest/stgbvt/ctolestg/tests/stgbase/irootstg.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/oleutest/stgbvt/ctolestg/tests/stgbase/irootstg.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/oleutest/stgbvt/ctolestg/tests/stgbase/irootstg.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //-------------------------------------------------------------------------
//
// Microsoft OLE
// Copyright (C) Microsoft Corporation, 1994 - 1995.
//
// File: irootstg.cxx
//
// Contents: storage base tests basically pertaining to IRootStorage
// interface.
//
// Functions:
//... | 28.512447 | 88 | 0.52863 | npocmaka |
4e7e029039f7c2c3cee7b8d1493150a03259b4a5 | 1,856 | cpp | C++ | font.cpp | darkoppressor/huberts-island-level-editor | a1d7b0ccc20b8d463b7c26886349e5f0b0ee0d8c | [
"MIT"
] | null | null | null | font.cpp | darkoppressor/huberts-island-level-editor | a1d7b0ccc20b8d463b7c26886349e5f0b0ee0d8c | [
"MIT"
] | null | null | null | font.cpp | darkoppressor/huberts-island-level-editor | a1d7b0ccc20b8d463b7c26886349e5f0b0ee0d8c | [
"MIT"
] | null | null | null | /* Copyright (c) 2012-2013 Cheese and Bacon Games, LLC */
/* See the file docs/COPYING.txt for copying permission. */
#include "font.h"
#include "render.h"
using namespace std;
BitmapFont::BitmapFont(){
//Initialize the variables:
bitmap_font_texture=NULL;
w=0;
h=0;
}
BitmapFont::~BitmapFont(){
... | 25.777778 | 96 | 0.625539 | darkoppressor |
4e7f3e6af671ae4ceae882f9d82a0967b51bb84a | 3,981 | cc | C++ | src/dns/cmn/dns.cc | sagarc-contrail/contrail-controller | 834302367f3ff81f1ce93f4036b6b3788dfd6994 | [
"Apache-2.0"
] | null | null | null | src/dns/cmn/dns.cc | sagarc-contrail/contrail-controller | 834302367f3ff81f1ce93f4036b6b3788dfd6994 | [
"Apache-2.0"
] | null | null | null | src/dns/cmn/dns.cc | sagarc-contrail/contrail-controller | 834302367f3ff81f1ce93f4036b6b3788dfd6994 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <boost/assign.hpp>
#include <base/logging.h>
#include <base/task.h>
#include <io/event_manager.h>
#include <cmn/dns.h>
#include <cmn/buildinfo.h>
#include <sandesh/sandesh_types.h>
#include <sandesh/sandesh.h>
#include <sandesh/request_... | 36.522936 | 86 | 0.690781 | sagarc-contrail |
4e81115ab7d2f1b129ff498bd35b15abddc3dcb6 | 710 | cpp | C++ | src/Evolution/Systems/Burgers/BoundaryConditions/RegisterDerivedWithCharm.cpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 1 | 2018-10-01T06:07:16.000Z | 2018-10-01T06:07:16.000Z | src/Evolution/Systems/Burgers/BoundaryConditions/RegisterDerivedWithCharm.cpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 4 | 2018-06-04T20:26:40.000Z | 2018-07-27T14:54:55.000Z | src/Evolution/Systems/Burgers/BoundaryConditions/RegisterDerivedWithCharm.cpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Evolution/Systems/Burgers/BoundaryConditions/RegisterDerivedWithCharm.hpp"
#include "Evolution/Systems/Burgers/BoundaryConditions/BoundaryCondition.hpp"
#include "Evolution/Systems/Burgers/BoundaryConditions/Dirichlet.hpp"
#include "Evolu... | 41.764706 | 84 | 0.840845 | macedo22 |
4e829278fb9227290b2d2fe71b937f2cd66e3766 | 10,357 | cpp | C++ | src/driveshaft-config.cpp | tlalexan/driveshaft | 122422e78e561053ec859015a4de5990f97a297b | [
"MIT"
] | 43 | 2015-09-22T21:07:56.000Z | 2020-08-05T16:10:03.000Z | src/driveshaft-config.cpp | tlalexan/driveshaft | 122422e78e561053ec859015a4de5990f97a297b | [
"MIT"
] | 16 | 2015-09-22T15:53:18.000Z | 2020-08-10T16:22:48.000Z | src/driveshaft-config.cpp | tlalexan/driveshaft | 122422e78e561053ec859015a4de5990f97a297b | [
"MIT"
] | 11 | 2015-09-21T20:36:37.000Z | 2020-06-16T13:40:05.000Z | #include <fstream>
#include <boost/range/algorithm/copy.hpp>
#include <boost/range/adaptors.hpp>
#include <boost/filesystem.hpp>
#include "driveshaft-config.h"
namespace Driveshaft {
namespace cfgkeys {
static std::string GEARMAN_SERVERS_LIST = "gearman_servers_list";
static std::string POOLS_LIST = "pools_list";
sta... | 38.359259 | 115 | 0.615043 | tlalexan |
4e83416ca4979e3362bbfa5c90b6e3f92def4009 | 5,113 | cpp | C++ | cppcache/integration/framework/GfshExecute.cpp | isabella232/geode-native | 0d9a99d5e0632de62df17921950cf3f6640efb33 | [
"Apache-2.0"
] | 1 | 2018-09-08T05:05:22.000Z | 2018-09-08T05:05:22.000Z | cppcache/integration/framework/GfshExecute.cpp | pivotal-jbarrett/geode-native | 50a441c4c0f78679558d520eaf20022ae51de3ff | [
"Apache-2.0"
] | 1 | 2021-02-23T12:27:00.000Z | 2021-02-23T12:27:00.000Z | cppcache/integration/framework/GfshExecute.cpp | isabella232/geode-native | 0d9a99d5e0632de62df17921950cf3f6640efb33 | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 37.595588 | 120 | 0.673577 | isabella232 |
4e849a62bed6f7e3b8b87854d60e114f1c5e8169 | 2,282 | cpp | C++ | src/Client/States/Game/AuthenticationState.cpp | ImperatorS79/BurgWar | 5d8282513945e8f25e30d8491639eb297bfc0317 | [
"MIT"
] | null | null | null | src/Client/States/Game/AuthenticationState.cpp | ImperatorS79/BurgWar | 5d8282513945e8f25e30d8491639eb297bfc0317 | [
"MIT"
] | null | null | null | src/Client/States/Game/AuthenticationState.cpp | ImperatorS79/BurgWar | 5d8282513945e8f25e30d8491639eb297bfc0317 | [
"MIT"
] | null | null | null | // Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Burgwar" project
// For conditions of distribution and use, see copyright notice in LICENSE
#include <Client/States/Game/AuthenticationState.hpp>
#include <Client/ClientApp.hpp>
#include <Client/States/LoginState.hpp>
#include <Client/States/Game/Asset... | 29.636364 | 127 | 0.73532 | ImperatorS79 |
4e8b9458e71d2c7943d3be58c60a8da8b0c72a7c | 20,431 | cc | C++ | C++/matrix/vector.cc | WaizungTaam/Strassen-Algorithm | 85267a2a869d786a260174e7eb21a950def1cadd | [
"Apache-2.0"
] | null | null | null | C++/matrix/vector.cc | WaizungTaam/Strassen-Algorithm | 85267a2a869d786a260174e7eb21a950def1cadd | [
"Apache-2.0"
] | null | null | null | C++/matrix/vector.cc | WaizungTaam/Strassen-Algorithm | 85267a2a869d786a260174e7eb21a950def1cadd | [
"Apache-2.0"
] | null | null | null | /*Copyright 2016 WaizungTaam. 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 by applicable law or agre... | 29.354885 | 77 | 0.580637 | WaizungTaam |
4e8c4643c574217df23249e076d4a0f507de4d5c | 3,026 | cpp | C++ | engine/engine.cpp | geefr/vulkan-learning | 47018427bb3322f8d6fd6c74ac4b8f0ff670b583 | [
"BSD-3-Clause"
] | null | null | null | engine/engine.cpp | geefr/vulkan-learning | 47018427bb3322f8d6fd6c74ac4b8f0ff670b583 | [
"BSD-3-Clause"
] | null | null | null | engine/engine.cpp | geefr/vulkan-learning | 47018427bb3322f8d6fd6c74ac4b8f0ff670b583 | [
"BSD-3-Clause"
] | null | null | null | /*
* Provided under the BSD 3-Clause License, see LICENSE.
*
* Copyright (c) 2020, Gareth Francis
* All rights reserved.
*/
#include "engine.h"
#include "renderer.h"
#include "node.h"
Engine::Engine()
: mRend(new Renderer(*this))
, mNodeGraph(new Node())
, mQuit(false)
{}
Engine::~Engine() {}
void Engine... | 26.778761 | 118 | 0.665235 | geefr |
4e8c6449fdf88de8b6820f9925ebd7946112ca71 | 2,095 | cpp | C++ | Vic2ToHoI4/Source/HOI4World/Technologies.cpp | CarbonY26/Vic2ToHoI4 | af3684d6aaaafea81aaadfb64a21a2b696f618e1 | [
"MIT"
] | 25 | 2018-12-10T03:41:49.000Z | 2021-10-04T10:42:36.000Z | Vic2ToHoI4/Source/HOI4World/Technologies.cpp | CarbonY26/Vic2ToHoI4 | af3684d6aaaafea81aaadfb64a21a2b696f618e1 | [
"MIT"
] | 739 | 2018-12-13T02:01:20.000Z | 2022-03-28T02:57:13.000Z | Vic2ToHoI4/Source/HOI4World/Technologies.cpp | CarbonY26/Vic2ToHoI4 | af3684d6aaaafea81aaadfb64a21a2b696f618e1 | [
"MIT"
] | 43 | 2018-12-10T03:41:58.000Z | 2022-03-22T23:55:41.000Z | #include "Technologies.h"
HoI4::technologies::technologies(const Mappers::TechMapper& techMapper,
const Mappers::ResearchBonusMapper& researchBonusMapper,
const std::set<std::string>& oldTechnologiesAndInventions)
{
for (const auto& techMapping: techMapper.getTechMappings())
{
bool requirementViolated = fals... | 22.526882 | 99 | 0.717422 | CarbonY26 |
4e8f378117d7cf1af642fddb5a300b0e295ecb84 | 11,861 | cc | C++ | ACAP_linux/3rd/CoMISo/NSolver/NewtonSolver.cc | shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 216 | 2018-09-09T11:53:56.000Z | 2022-03-19T13:41:35.000Z | ACAP_linux/3rd/CoMISo/NSolver/NewtonSolver.cc | gaolinorange/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 13 | 2018-10-23T08:29:09.000Z | 2021-09-08T06:45:34.000Z | ACAP_linux/3rd/CoMISo/NSolver/NewtonSolver.cc | shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 41 | 2018-09-13T08:50:41.000Z | 2022-02-23T00:33:54.000Z | //=============================================================================
//
// CLASS NewtonSolver - IMPLEMENTATION
//
//=============================================================================
//== INCLUDES =================================================================
#include "NewtonSolver.hh"
#incl... | 27.329493 | 136 | 0.579715 | shubhMaheshwari |
4e909e9fc4eb891a24ec781bdfed79964a7da3a9 | 861 | hpp | C++ | include/dca/testing/type_testing.hpp | NunoEdgarGFlowHub/DCA | 51d0085084c9c3eb628893b78596eacfaf2d3ace | [
"BSD-3-Clause"
] | 27 | 2018-08-02T04:28:23.000Z | 2021-07-08T02:14:20.000Z | include/dca/testing/type_testing.hpp | cosdis/DCA | 3cfd2a4f4bb876fb69f9c22e7ad06332fb5ebbe5 | [
"BSD-3-Clause"
] | 200 | 2018-08-02T18:19:03.000Z | 2022-03-16T21:28:41.000Z | include/dca/testing/type_testing.hpp | PDoakORNL/DCA-2 | 5a373f6af5a7d4b5be69199f60ec75a16e58c626 | [
"BSD-3-Clause"
] | 22 | 2018-08-15T15:50:00.000Z | 2021-09-30T13:41:46.000Z | // Copyright (C) 2019 ETH Zurich
// Copyright (C) 2019 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Author: Peter Doak (doakpw@ornl.gov)
//
// This class provides an alternative output mode ... | 24.6 | 100 | 0.720093 | NunoEdgarGFlowHub |
4e97145d1a7f70cbbc569a43001af03503cb7612 | 10,760 | cpp | C++ | modules/media/test/apps/test_game_tokens.cpp | LCClyde/nyra | f8280db2633e888ab62e929a2c238a33755ff694 | [
"MIT"
] | null | null | null | modules/media/test/apps/test_game_tokens.cpp | LCClyde/nyra | f8280db2633e888ab62e929a2c238a33755ff694 | [
"MIT"
] | 1 | 2016-01-25T13:03:03.000Z | 2016-01-25T13:03:03.000Z | modules/media/test/apps/test_game_tokens.cpp | LCClyde/nyra | f8280db2633e888ab62e929a2c238a33755ff694 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2017 Clyde Stanfield
*
* 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, pub... | 35.278689 | 79 | 0.560409 | LCClyde |
4e9c86d8dd802f0a91038b54f776b20993f9ba62 | 7,818 | hpp | C++ | RobWorkSim/src/rwsim/dynamics/FixedLink.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWorkSim/src/rwsim/dynamics/FixedLink.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWorkSim/src/rwsim/dynamics/FixedLink.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 33.410256 | 100 | 0.553978 | ZLW07 |
4e9d9f7a9a6f5f95ca34946c0031440deee25059 | 2,086 | cpp | C++ | 2015/9.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | 2 | 2020-08-06T22:14:51.000Z | 2020-08-10T19:42:36.000Z | 2015/9.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | null | null | null | 2015/9.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
int index(std::string location) {
switch(location[0]) {
case 'F':
return 2;
case 'N':
return 3;
case 'A':
switch(location[1]) {
case 'l':return 0;
case 'r':return 1;
}
break;
case 'S':
switch(location[1]) {
ca... | 24.833333 | 103 | 0.5628 | wgevaert |
4e9e563229c8da756e113d4b5e469c976289f0a3 | 967 | hpp | C++ | C++ Programming/CPTS 122/Programming Assignments/BST Data Analysis/BST.hpp | subhamb123/WSU-Coding-Projects | bb2910d76ac446f190ce641b869e68ae86d9b760 | [
"MIT"
] | 1 | 2020-09-03T07:09:05.000Z | 2020-09-03T07:09:05.000Z | C++ Programming/CPTS 122/Programming Assignments/BST Data Analysis/BST.hpp | subhamb123/WSU-Coding-Projects | bb2910d76ac446f190ce641b869e68ae86d9b760 | [
"MIT"
] | null | null | null | C++ Programming/CPTS 122/Programming Assignments/BST Data Analysis/BST.hpp | subhamb123/WSU-Coding-Projects | bb2910d76ac446f190ce641b869e68ae86d9b760 | [
"MIT"
] | null | null | null | /************************************************************************
* Programmer: Subham Behera *
* Class: CptS 122; Lab Section 13 *
* Programming Assignment: PA 8 - Data Analysis using Binary Search Trees*
* Date: 4/10/2021 ... | 31.193548 | 73 | 0.509824 | subhamb123 |
4ea17060b3ee1a6c462fd96f99afe957f375c45a | 7,740 | cpp | C++ | tests/ip/address_v4.cpp | chriskohlhoff/ip-address | 38251ff2f9a2cb5e4152c7314e14d2e65e69f27d | [
"BSL-1.0"
] | 31 | 2015-01-25T13:09:27.000Z | 2021-04-22T04:58:14.000Z | tests/ip/address_v4.cpp | chriskohlhoff/ip-address | 38251ff2f9a2cb5e4152c7314e14d2e65e69f27d | [
"BSL-1.0"
] | 1 | 2018-12-06T07:06:53.000Z | 2018-12-06T07:06:53.000Z | tests/ip/address_v4.cpp | chriskohlhoff/ip-address | 38251ff2f9a2cb5e4152c7314e14d2e65e69f27d | [
"BSL-1.0"
] | 7 | 2016-01-10T07:20:12.000Z | 2021-08-07T01:22:07.000Z | //
// address_v4.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Test that header file is self-contai... | 30.352941 | 80 | 0.669121 | chriskohlhoff |
4ea4e9f0cc62d073d6339d00521078963ef87afa | 19,627 | cpp | C++ | admin/snapin/smonlog/smlogcfg/smtprov.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/snapin/smonlog/smlogcfg/smtprov.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/snapin/smonlog/smlogcfg/smtprov.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (C) 1998-1999 Microsoft Corporation
Module Name:
smtprov.cpp
Abstract:
This object is used to store the list of all current
trace providers in the system.
--*/
#include "Stdafx.h"
#include <wbemidl.h>
#include <initguid.h>
#include <wmistr.h>
#include <evntrace.h>
... | 31.605475 | 135 | 0.456463 | npocmaka |
4ea7caa0902b92b741a1d815d0e82c3879e9dc0f | 306 | cpp | C++ | Wumpus.cpp | GoldenMean58/wumpus | 51d7b850523383f1f1d4304c8fc763d58205f641 | [
"Apache-2.0"
] | null | null | null | Wumpus.cpp | GoldenMean58/wumpus | 51d7b850523383f1f1d4304c8fc763d58205f641 | [
"Apache-2.0"
] | null | null | null | Wumpus.cpp | GoldenMean58/wumpus | 51d7b850523383f1f1d4304c8fc763d58205f641 | [
"Apache-2.0"
] | null | null | null | #include "Wumpus.h"
Wumpus::Wumpus() : _dead(false) { this->_type = ObjectType::WumpusType; }
Wumpus::Wumpus(int x, int y) : _dead(false) {
this->_x = x;
this->_y = y;
this->_type = ObjectType::WumpusType;
}
bool Wumpus::is_dead() { return this->_dead; }
void Wumpus::kill() { this->_dead = true; }
| 27.818182 | 73 | 0.643791 | GoldenMean58 |
4ea807cc70b45cf25e04b55c444390a629c7365a | 7,240 | cpp | C++ | UNITTESTS/drivers/PwmOut/test_pwmout.cpp | pattyolanterns/mbed-os | f05af9a870580a0a81688e4d8f94cf72ca17a4d6 | [
"Apache-2.0"
] | 3,897 | 2015-09-04T13:42:23.000Z | 2022-03-30T16:53:07.000Z | UNITTESTS/drivers/PwmOut/test_pwmout.cpp | pattyolanterns/mbed-os | f05af9a870580a0a81688e4d8f94cf72ca17a4d6 | [
"Apache-2.0"
] | 13,030 | 2015-09-17T10:30:05.000Z | 2022-03-31T13:36:44.000Z | UNITTESTS/drivers/PwmOut/test_pwmout.cpp | pattyolanterns/mbed-os | f05af9a870580a0a81688e4d8f94cf72ca17a4d6 | [
"Apache-2.0"
] | 2,950 | 2015-09-08T19:07:05.000Z | 2022-03-31T13:37:23.000Z | /*
* Copyright (c) 2019 Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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/LICENS... | 27.953668 | 78 | 0.696271 | pattyolanterns |
4eaa821ea34976f9846029924a4311c94415d791 | 514 | cpp | C++ | src/OpenLoco/Map/SurfaceTile.cpp | JimmyAllnighter/OpenLoco | dda8245be39a033db5cadfa455f1679a3f24ff24 | [
"MIT"
] | 180 | 2018-01-18T07:56:44.000Z | 2019-02-18T21:33:45.000Z | src/OpenLoco/Map/SurfaceTile.cpp | JimmyAllnighter/OpenLoco | dda8245be39a033db5cadfa455f1679a3f24ff24 | [
"MIT"
] | 186 | 2018-01-18T13:17:58.000Z | 2019-02-10T12:28:35.000Z | src/OpenLoco/Map/SurfaceTile.cpp | JimmyAllnighter/OpenLoco | dda8245be39a033db5cadfa455f1679a3f24ff24 | [
"MIT"
] | 35 | 2018-01-18T12:38:26.000Z | 2018-11-14T16:01:32.000Z | #include "../TownManager.h"
#include "../ViewportManager.h"
#include "TileManager.h"
namespace OpenLoco::Map
{
void SurfaceElement::removeIndustry(const Map::Pos2& pos)
{
if (hasHighTypeFlag())
{
setHighTypeFlag(false);
setVar6SLR5(0);
setIndustry(IndustryId(... | 25.7 | 79 | 0.568093 | JimmyAllnighter |
4eaadad1ebb68857cb29ffd0c08d0f1b294c64be | 1,309 | cpp | C++ | Arcane/src/Arcane/Graphics/IBL/ReflectionProbe.cpp | flygod1159/Arcane-Engine | bfb95cc6734a25e5737d4195c2b9e92e03117707 | [
"MIT"
] | 387 | 2016-10-04T03:30:38.000Z | 2022-03-31T15:42:29.000Z | Arcane/src/Arcane/Graphics/IBL/ReflectionProbe.cpp | flygod1159/Arcane-Engine | bfb95cc6734a25e5737d4195c2b9e92e03117707 | [
"MIT"
] | 9 | 2017-04-04T04:23:47.000Z | 2020-07-11T05:05:54.000Z | Arcane/src/Arcane/Graphics/IBL/ReflectionProbe.cpp | flygod1159/Arcane-Engine | bfb95cc6734a25e5737d4195c2b9e92e03117707 | [
"MIT"
] | 36 | 2017-07-02T07:11:40.000Z | 2022-03-08T01:49:24.000Z | #include "arcpch.h"
#include "ReflectionProbe.h"
#include <Arcane/Graphics/Shader.h>
#include <Arcane/Graphics/Texture/Texture.h>
#include <Arcane/Graphics/Texture/Cubemap.h>
namespace Arcane
{
Texture* ReflectionProbe::s_BRDF_LUT = nullptr;
ReflectionProbe::ReflectionProbe(glm::vec3 &probePosition, glm::vec2 &pro... | 29.75 | 162 | 0.760886 | flygod1159 |
4eac76ab7447bc9574b9464cab5f5017f536c72b | 1,517 | cpp | C++ | TrendExtractor-C++/TrendExtractor.cpp | auyeongwy/TrendCrawler | 5520c969ad7863f23d994a5cf9d711538363f879 | [
"Apache-2.0"
] | null | null | null | TrendExtractor-C++/TrendExtractor.cpp | auyeongwy/TrendCrawler | 5520c969ad7863f23d994a5cf9d711538363f879 | [
"Apache-2.0"
] | null | null | null | TrendExtractor-C++/TrendExtractor.cpp | auyeongwy/TrendCrawler | 5520c969ad7863f23d994a5cf9d711538363f879 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2015 Au Yeong Wing Yau
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 writing, software
d... | 20.226667 | 98 | 0.711931 | auyeongwy |
4eb1e5f442196822ac2f9b707c440f7676220cab | 593 | cpp | C++ | src/problem132/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | 1 | 2016-09-29T14:23:59.000Z | 2016-09-29T14:23:59.000Z | src/problem132/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | null | null | null | src/problem132/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int minCut(string s) {
if (s == "")
return 0;
vector<int> dp(s.size() + 1, 0);
dp[s.size()] = -1;
vector<vector<bool>> bm(s.size(), vector<bool>(s.size(), false));
for (int i = s.size() - 1; i >= 0; --i) {
dp[i] = INT_MAX;
... | 28.238095 | 73 | 0.338954 | MyYaYa |
4eb9e7cdb180c1f5d36e3668bf7c461f74036694 | 217 | cpp | C++ | Tutorials/Programming/learn_C++_w3c/arrays.cpp | jmreis/Learning-Programming-With-W3C-School | 0d62b841cf221cf2a4c55c782248fa06d2575528 | [
"MIT"
] | 1 | 2022-03-25T03:19:09.000Z | 2022-03-25T03:19:09.000Z | Tutorials/Programming/learn_C++_w3c/arrays.cpp | jmreis/Learning-Programming-With-W3C-School | 0d62b841cf221cf2a4c55c782248fa06d2575528 | [
"MIT"
] | null | null | null | Tutorials/Programming/learn_C++_w3c/arrays.cpp | jmreis/Learning-Programming-With-W3C-School | 0d62b841cf221cf2a4c55c782248fa06d2575528 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"};
for (int i = 0; i < 4; i++) {
cout << cars[i] << endl;
}
return 0;
} | 19.727273 | 55 | 0.511521 | jmreis |
4ebb6cda05e82a436aa0724f8a471ce93d50e1b4 | 4,537 | cpp | C++ | src/core/LoaderComponent.cpp | talesm/glBoilerplate | 46d8f418408290698e3f889b8cc053ac7ce4c824 | [
"MIT"
] | null | null | null | src/core/LoaderComponent.cpp | talesm/glBoilerplate | 46d8f418408290698e3f889b8cc053ac7ce4c824 | [
"MIT"
] | null | null | null | src/core/LoaderComponent.cpp | talesm/glBoilerplate | 46d8f418408290698e3f889b8cc053ac7ce4c824 | [
"MIT"
] | null | null | null | #include "LoaderComponent.hpp"
#include "Camera.hpp"
#include "SceneDetail.hpp"
#include "util/fastMath.hpp"
using namespace std;
inline int
getAreaToReload(int offset)
{
int areaToReload = abs(offset) - (CHUNK_HALF_SIDE - CHUNK_LOAD_DELTA);
int remaining = areaToReload % CHUNK_LOAD_DELTA;
if (remaining) {
... | 33.116788 | 77 | 0.616046 | talesm |
4ec06cb47d3b5f9e5853c6ee73687c2ec1d8cfff | 226,398 | cpp | C++ | test/grapheme_iterator_06.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | null | null | null | test/grapheme_iterator_06.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 1 | 2021-03-05T12:56:59.000Z | 2021-03-05T13:11:53.000Z | test/grapheme_iterator_06.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 3 | 2019-10-30T18:38:15.000Z | 2021-03-05T12:10:13.000Z | // Warning! This file is autogenerated.
#include <boost/text/grapheme_iterator.hpp>
#include <boost/text/transcode_iterator.hpp>
#include <gtest/gtest.h>
#include <algorithm>
TEST(grapheme, iterator_06_0_fwd)
{
// ÷ 0903 ÷ AC01 ÷
// ÷ [0.2] DEVANAGARI SIGN VISARGA (SpacingMark) ÷ [999.0] HANGUL SYLLABLE G... | 28.148452 | 157 | 0.502959 | eightysquirrels |
4ec2ce4271211ca8b20a2ff6db692b3ce2e98d99 | 5,994 | cpp | C++ | src/joystick.cpp | allender/emulator | 8310afee84b74cff7d91ecd78f7976264a8df900 | [
"MIT"
] | 53 | 2017-01-19T08:08:40.000Z | 2022-01-26T03:01:24.000Z | src/joystick.cpp | allender/emulator | 8310afee84b74cff7d91ecd78f7976264a8df900 | [
"MIT"
] | 15 | 2017-03-10T22:55:53.000Z | 2021-04-14T13:29:38.000Z | src/joystick.cpp | allender/emulator | 8310afee84b74cff7d91ecd78f7976264a8df900 | [
"MIT"
] | 1 | 2019-07-09T07:19:53.000Z | 2019-07-09T07:19:53.000Z | /*
MIT License
Copyright (c) 2016-2017 Mark Allender
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, pu... | 35.467456 | 120 | 0.72973 | allender |
4ec80fde7b7c5457c8fbd6f93bd04ec2013f1625 | 100,040 | cpp | C++ | src/parallel/PetscSolverFeti.cpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | 2 | 2018-07-04T16:44:04.000Z | 2021-01-03T07:26:27.000Z | src/parallel/PetscSolverFeti.cpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | src/parallel/PetscSolverFeti.cpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | /******************************************************************************
*
* AMDiS - Adaptive multidimensional simulations
*
* Copyright (C) 2013 Dresden University of Technology. All Rights Reserved.
* Web: https://fusionforge.zih.tu-dresden.de/projects/amdis
*
* Authors:
* Simon Vey, Thomas Witkowski, ... | 33.683502 | 121 | 0.602279 | spraetor |
4ec90784fc25d0c39dc37fc4151197064263ad21 | 1,130 | cpp | C++ | Redline/Renderer/BRDF/CookTorrence/Functions/GGX_Geometry.cpp | 64-bit/Redline | c3f5ebd24da8ac437aee5429b2eeea7a14cc93b0 | [
"MIT"
] | 1 | 2019-02-03T04:47:21.000Z | 2019-02-03T04:47:21.000Z | Redline/Renderer/BRDF/CookTorrence/Functions/GGX_Geometry.cpp | 64-bit/Redline | c3f5ebd24da8ac437aee5429b2eeea7a14cc93b0 | [
"MIT"
] | null | null | null | Redline/Renderer/BRDF/CookTorrence/Functions/GGX_Geometry.cpp | 64-bit/Redline | c3f5ebd24da8ac437aee5429b2eeea7a14cc93b0 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "GGX_Geometry.h"
using namespace mathfu;
using namespace Redline;
using namespace CookTorrenceBRDF;
float GGX_Geometry::Geometry(
const vec3& incommingAngle,
const vec3& outgoingAngle,
const vec3& normal,
const vec3& halfAngle,
float roughness) const
{
const float incomming = GGX_Ge... | 19.824561 | 72 | 0.717699 | 64-bit |
4eca6a6280a9c00c8567b67e506ae22dc21604c6 | 13,055 | cpp | C++ | src/UIController.cpp | nselikoff/Cinder-MinimalUI | f5ace74b8e514a372869d7211e5d76122d573241 | [
"MIT"
] | 6 | 2015-03-12T12:33:49.000Z | 2018-04-20T18:30:28.000Z | src/UIController.cpp | nselikoff/Cinder-MinimalUI | f5ace74b8e514a372869d7211e5d76122d573241 | [
"MIT"
] | null | null | null | src/UIController.cpp | nselikoff/Cinder-MinimalUI | f5ace74b8e514a372869d7211e5d76122d573241 | [
"MIT"
] | 3 | 2020-04-20T21:34:16.000Z | 2020-05-06T19:24:42.000Z | #include "UIController.h"
#include "UIElement.h"
#include "Slider.h"
#include "Button.h"
#include "Label.h"
#include "Image.h"
#include "Graph.h"
using namespace ci;
using namespace ci::app;
using namespace std;
using namespace MinimalUI;
class FontStyleExc;
int UIController::DEFAULT_PANEL_WIDTH = 216;
int UIControl... | 31.841463 | 231 | 0.704175 | nselikoff |
4ecd712da91a3780130429066135de39eddafd50 | 5,766 | cc | C++ | sg_agent/test/naming_registry_strategy_unittest.cc | wuxianxingkong/octo-ns | 2833e7517472d5b9655d4b6c031c12f7054cf984 | [
"Apache-2.0"
] | 324 | 2018-12-20T11:16:10.000Z | 2022-03-11T14:02:13.000Z | sg_agent/test/naming_registry_strategy_unittest.cc | wuxianxingkong/octo-ns | 2833e7517472d5b9655d4b6c031c12f7054cf984 | [
"Apache-2.0"
] | 18 | 2019-08-09T02:00:51.000Z | 2021-12-14T21:16:35.000Z | sg_agent/test/naming_registry_strategy_unittest.cc | wuxianxingkong/octo-ns | 2833e7517472d5b9655d4b6c031c12f7054cf984 | [
"Apache-2.0"
] | 84 | 2018-12-20T10:52:41.000Z | 2022-03-23T07:25:18.000Z | /*
* Copyright (c) 2011-2018, Meituan Dianping. All Rights Reserved.
*
* 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
* t... | 31.336957 | 77 | 0.773673 | wuxianxingkong |
4ecf3705018615222bf6a218551f06d534fbf648 | 24,170 | hpp | C++ | code/vpp/docs/conceptual/headers/vppContainers.hpp | maikebing/vpp | efa6c32f898e103d749764ce3a0b7dc29d6e9a51 | [
"BSD-2-Clause"
] | null | null | null | code/vpp/docs/conceptual/headers/vppContainers.hpp | maikebing/vpp | efa6c32f898e103d749764ce3a0b7dc29d6e9a51 | [
"BSD-2-Clause"
] | null | null | null | code/vpp/docs/conceptual/headers/vppContainers.hpp | maikebing/vpp | efa6c32f898e103d749764ce3a0b7dc29d6e9a51 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright 2016-2018 SOFT-ERG, Przemek Kuczmierczyk (www.softerg.com)
All rights reserved.
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... | 40.690236 | 94 | 0.631485 | maikebing |
4ed14106689212e65d37eafc191f2f4c5b193666 | 10,302 | cpp | C++ | QPaintedWidgets/QPaintedWidgets/components/TextOutlined.cpp | SammyEnigma/QPaintedWidgets | 95ada72bf35bd7f8c959466e7353ba0363c0cd09 | [
"MIT"
] | 6 | 2019-11-07T13:18:12.000Z | 2021-11-07T14:10:40.000Z | QPaintedWidgets/QPaintedWidgets/components/TextOutlined.cpp | SammyEnigma/QPaintedWidgets | 95ada72bf35bd7f8c959466e7353ba0363c0cd09 | [
"MIT"
] | null | null | null | QPaintedWidgets/QPaintedWidgets/components/TextOutlined.cpp | SammyEnigma/QPaintedWidgets | 95ada72bf35bd7f8c959466e7353ba0363c0cd09 | [
"MIT"
] | 5 | 2019-11-13T19:45:41.000Z | 2020-12-17T07:18:52.000Z | #include "TextOutlined.hpp"
// =============================================================================
template <typename T>
static bool field_changed(T& curr_value, const T& new_value) {
const bool changed = (curr_value != new_value);
curr_value = new_value;
return changed;
}
bool QPaintedWidgets:... | 34.34 | 159 | 0.560474 | SammyEnigma |
4ed8a96a4bd9643062f1c037ba2a03316ae436d7 | 7,229 | cpp | C++ | src/notifybyaudio_canberra.cpp | pasnox/knotifications | ef2871b2a485be5abe393e61c6cd93867420f896 | [
"BSD-3-Clause"
] | 1 | 2019-11-02T03:54:16.000Z | 2019-11-02T03:54:16.000Z | src/notifybyaudio_canberra.cpp | pasnox/knotifications | ef2871b2a485be5abe393e61c6cd93867420f896 | [
"BSD-3-Clause"
] | 2 | 2019-10-27T23:06:33.000Z | 2020-01-11T00:44:07.000Z | src/notifybyaudio_canberra.cpp | brute4s99/knotifications | bc01688f99fcbdc2d3ceb4ad9475da1359441408 | [
"BSD-3-Clause"
] | null | null | null | /* This file is part of the KDE libraries
Copyright (C) 2014-2015 by Martin Klapetek <mklapetek@kde.org>
Copyright (C) 2018 Kai Uwe Broulik <kde@privat.broulik.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publishe... | 34.922705 | 150 | 0.678794 | pasnox |
4de56c2f1e5fa72d6ec33aeb6d98a3908b10cd9f | 844 | cc | C++ | test/test_split.cc | embeddedawesome/cpp-subprocess | 62635b57456baf41547315f4a5a8dd77cdf2c381 | [
"MIT"
] | 331 | 2016-03-19T12:19:14.000Z | 2022-03-31T08:59:01.000Z | test/test_split.cc | mr132001/cpp-subprocess | f1ce916fdc52648da9481a386a24c221bf703f1d | [
"MIT"
] | 50 | 2016-03-21T12:03:46.000Z | 2022-03-15T17:37:31.000Z | test/test_split.cc | mr132001/cpp-subprocess | f1ce916fdc52648da9481a386a24c221bf703f1d | [
"MIT"
] | 79 | 2016-03-20T19:58:10.000Z | 2022-03-31T13:07:53.000Z | #include <iostream>
#include <string>
#include <vector>
std::vector<std::string>
split(const std::string& str, const std::string& delims=" \t")
{
std::vector<std::string> res;
size_t init = 0;
while (true) {
auto pos = str.find_first_of(delims, init);
if (pos == std::string::npos) {
re... | 19.627907 | 62 | 0.567536 | embeddedawesome |
4de57c438d087a5af5c53c646a0d9761a0d914c3 | 4,587 | cpp | C++ | IPCDemo/IPCPort.cpp | Celemony/ARA_Examples | 24239cf5176b9b230ddd7aa2b9053b6e582cdb2a | [
"Apache-2.0"
] | 2 | 2021-04-27T07:08:07.000Z | 2021-05-20T16:08:51.000Z | IPCDemo/IPCPort.cpp | Celemony/ARA_Examples | 24239cf5176b9b230ddd7aa2b9053b6e582cdb2a | [
"Apache-2.0"
] | null | null | null | IPCDemo/IPCPort.cpp | Celemony/ARA_Examples | 24239cf5176b9b230ddd7aa2b9053b6e582cdb2a | [
"Apache-2.0"
] | null | null | null | //------------------------------------------------------------------------------
//! \file IPCMessage.cpp
//! messaging used for IPC in SDK IPC demo example
//! \project ARA SDK Examples
//! \copyright Copyright (c) 2012-2021, Celemony Software GmbH, All Rights Reserved.
//! \license Licensed u... | 39.205128 | 154 | 0.669937 | Celemony |
4de81c0a7fe7af2277b25493cb4ad06339c8c6ab | 5,053 | cpp | C++ | Data Structures/Trees/Threaded Binary Tree/Threaded_Binary_Tree_all.cpp | sejalsingh417/Open-DSA | dd2228abd3022f0899ded08ff3f710e51b74649f | [
"MIT"
] | 1 | 2021-10-05T15:45:42.000Z | 2021-10-05T15:45:42.000Z | Data Structures/Trees/Threaded Binary Tree/Threaded_Binary_Tree_all.cpp | sejalsingh417/Open-DSA | dd2228abd3022f0899ded08ff3f710e51b74649f | [
"MIT"
] | 17 | 2021-10-05T13:47:01.000Z | 2021-11-06T13:15:42.000Z | Data Structures/Trees/Threaded Binary Tree/Threaded_Binary_Tree_all.cpp | sejalsingh417/Open-DSA | dd2228abd3022f0899ded08ff3f710e51b74649f | [
"MIT"
] | 9 | 2021-10-05T07:21:09.000Z | 2021-10-20T08:31:03.000Z | #include <iostream>
#include <cstdlib>
#define MAX_VALUE 65536
using namespace std;
class N { //node declaration
public:
int k;
N *l, *r;
bool leftTh, rightTh;
};
class ThreadedBinaryTree {
private:
N *root;
public:
ThreadedBinaryTree() { //constructor to initialize the variables
root= ... | 24.293269 | 67 | 0.435385 | sejalsingh417 |
4de9be458ee5e8a5a1fbceee7a061b00ba7112cf | 633 | cpp | C++ | GummiShip/lazer.cpp | fonicartist/GummiShip | 1977f3b4360321fc78da0b124ce1e57797e8911c | [
"MIT"
] | null | null | null | GummiShip/lazer.cpp | fonicartist/GummiShip | 1977f3b4360321fc78da0b124ce1e57797e8911c | [
"MIT"
] | null | null | null | GummiShip/lazer.cpp | fonicartist/GummiShip | 1977f3b4360321fc78da0b124ce1e57797e8911c | [
"MIT"
] | null | null | null | #include "lazer.h"
Lazer::Lazer(float pos, float x, float y, int direction) {
sprite.setPosition(pos, 640);
velocity = sf::Vector2f(x, y);
hit = false;
printf("New lazer created at (%d,%d).\n", pos, 700);
loadAssets(direction);
}
void Lazer::loadAssets(int direction) {
texture.loadFromFile("..\\assets\\sprites\... | 21.1 | 63 | 0.666667 | fonicartist |
4deb7026a232745d63f2132aa2f8693ead309392 | 577 | cpp | C++ | runtime/fpga/software/runtime/run_elf_zcu102.cpp | caesr-uwaterloo/MapleBoard | 4687854d230ef6ca16270fc0168f8c627c7e7eac | [
"MIT"
] | 1 | 2022-02-19T13:12:08.000Z | 2022-02-19T13:12:08.000Z | runtime/fpga/software/runtime/run_elf_zcu102.cpp | caesr-uwaterloo/MapleBoard | 4687854d230ef6ca16270fc0168f8c627c7e7eac | [
"MIT"
] | null | null | null | runtime/fpga/software/runtime/run_elf_zcu102.cpp | caesr-uwaterloo/MapleBoard | 4687854d230ef6ca16270fc0168f8c627c7e7eac | [
"MIT"
] | null | null | null | #include "common.h"
#include <iostream>
#include <cstring>
#include "loguru.hpp"
using namespace std::chrono_literals;
int main(int argc, char** argv) {
_argc = argc;
_argv = argv;
std::cout << "ZCU102 Real Board" << std::endl;
int exit_code;
// NOTE: this function will launch a new thread
test_main(&e... | 19.233333 | 54 | 0.691508 | caesr-uwaterloo |
4decca83a36b5e74bccd1c25fda6fbcfdecdbdb5 | 10,037 | cpp | C++ | reader.cpp | blackslender/LIBPRO | d0cc2f64f7a01f4a1bf8dfa2b6be54928247e0c9 | [
"MIT"
] | null | null | null | reader.cpp | blackslender/LIBPRO | d0cc2f64f7a01f4a1bf8dfa2b6be54928247e0c9 | [
"MIT"
] | null | null | null | reader.cpp | blackslender/LIBPRO | d0cc2f64f7a01f4a1bf8dfa2b6be54928247e0c9 | [
"MIT"
] | null | null | null | #include "reader.h"
#include "ui_reader.h"
#include <QSqlQuery>
#include <QDebug>
#include <QSqlQueryModel>
#include <QTableView>
#include <QSqlRelationalTableModel>
#include <QtWidgets>
#include <muonsach.h>
#include "book.h"
#include "phieumuon.h"
READER::READER(QSqlDatabase *db,USER *user,QWidget *paren... | 33.568562 | 105 | 0.648002 | blackslender |
4ded86b2ab65bb903d7588cb593b902c90bf6c66 | 3,049 | cxx | C++ | Modules/Numerics/Statistics/test/itkProbabilityDistributionTest.cxx | itkvideo/ITK | 5882452373df23463c2e9410c50bc9882ca1e8de | [
"Apache-2.0"
] | 1 | 2015-10-12T00:14:09.000Z | 2015-10-12T00:14:09.000Z | Modules/Numerics/Statistics/test/itkProbabilityDistributionTest.cxx | itkvideo/ITK | 5882452373df23463c2e9410c50bc9882ca1e8de | [
"Apache-2.0"
] | null | null | null | Modules/Numerics/Statistics/test/itkProbabilityDistributionTest.cxx | itkvideo/ITK | 5882452373df23463c2e9410c50bc9882ca1e8de | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... | 38.1125 | 103 | 0.677927 | itkvideo |
4defa947d2fdd0525563e4e097cbb1cf304c16aa | 2,405 | hpp | C++ | gsa/wit/COIN/include/SbbCompareBase.hpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 1 | 2019-10-25T05:25:23.000Z | 2019-10-25T05:25:23.000Z | gsa/wit/COIN/include/SbbCompareBase.hpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 2 | 2019-09-04T17:34:59.000Z | 2020-09-16T08:10:57.000Z | gsa/wit/COIN/include/SbbCompareBase.hpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 18 | 2019-07-22T19:01:25.000Z | 2022-03-03T15:36:11.000Z | // Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
#ifndef SbbCompareBase_H
#define SbbCompareBase_H
//#############################################################################
/* These are alternative strategies for node traversal.
They can take data et... | 29.329268 | 82 | 0.649896 | kant |
4df15c604af1d762325a2f9c0a991157880794fb | 9,012 | hpp | C++ | include/xll/detail/type_text.hpp | jbuonagurio/libxll | 2e91163dbcbeeef3644add6ac583ee98a37b5aac | [
"BSL-1.0"
] | 1 | 2021-03-23T12:40:56.000Z | 2021-03-23T12:40:56.000Z | include/xll/detail/type_text.hpp | jbuonagurio/libxll | 2e91163dbcbeeef3644add6ac583ee98a37b5aac | [
"BSL-1.0"
] | 1 | 2022-03-15T04:23:18.000Z | 2022-03-15T04:23:56.000Z | include/xll/detail/type_text.hpp | jbuonagurio/libxll | 2e91163dbcbeeef3644add6ac583ee98a37b5aac | [
"BSL-1.0"
] | null | null | null | // Copyright 2020 John Buonagurio
//
// Distributed under the Boost Software License, Version 1.0.
//
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#pragma once
/**
* \file type_text.hpp
* Compile-time mapping from primitive type to pxTypeText identifier wchar array... | 32.770909 | 99 | 0.694075 | jbuonagurio |
4df1d2b11318142a5d6080ee7f14f528f0fa8c65 | 2,124 | cpp | C++ | cpp/roman-to-int.cpp | lindsayad/misc_programming | 60d4056a99d52e247bc1ae08b9eaaf0b13cc1b2e | [
"MIT"
] | null | null | null | cpp/roman-to-int.cpp | lindsayad/misc_programming | 60d4056a99d52e247bc1ae08b9eaaf0b13cc1b2e | [
"MIT"
] | null | null | null | cpp/roman-to-int.cpp | lindsayad/misc_programming | 60d4056a99d52e247bc1ae08b9eaaf0b13cc1b2e | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
class Solution {
public:
int romanToInt(string s) {
if (s.empty())
return 0;
unordered_map<const char *, int> roman_to_int = {std::make_pair("I", 1),
... | 26.222222 | 89 | 0.392655 | lindsayad |
4df22f2837c6aee3c237eb2f94000fe2612f137c | 477 | cpp | C++ | Main.cpp | shaCode256/Cpp-Ex1-Do-You-Want-To-Code-A-Snowman | 6c7f6a260553a55bd95b400d286de4a76615429a | [
"MIT"
] | null | null | null | Main.cpp | shaCode256/Cpp-Ex1-Do-You-Want-To-Code-A-Snowman | 6c7f6a260553a55bd95b400d286de4a76615429a | [
"MIT"
] | null | null | null | Main.cpp | shaCode256/Cpp-Ex1-Do-You-Want-To-Code-A-Snowman | 6c7f6a260553a55bd95b400d286de4a76615429a | [
"MIT"
] | null | null | null | /**
* Main Demo program for snowman exercise.
*
* Author: Shavit Luzon
* Since : 2021-03
*/
#include "snowman.hpp"
#include <iostream>
#include <stdexcept>
using namespace std;
using namespace ariel;
int main() {
int number;
cout << "Type a number which represent a snowman: "; // Type a number... | 22.714286 | 86 | 0.654088 | shaCode256 |
4df3827815083eaaad9b713dbca753c12115665f | 304 | cpp | C++ | C++ STL/Memberfunction_template_OutsideClass.cpp | junior-geek04/C-Stl | d7731c52616810f5067162453557075b524690a5 | [
"Apache-2.0"
] | 2 | 2021-05-27T12:18:32.000Z | 2021-05-27T17:33:03.000Z | C++ STL/Memberfunction_template_OutsideClass.cpp | junior-geek04/C-Stl | d7731c52616810f5067162453557075b524690a5 | [
"Apache-2.0"
] | null | null | null | C++ STL/Memberfunction_template_OutsideClass.cpp | junior-geek04/C-Stl | d7731c52616810f5067162453557075b524690a5 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
template<class t>
class enjoy
{public:
t data;
enjoy(t a)
{
data=a;
}
void display();
};
template<class t>
void enjoy<t>::display()
{
cout<<data;
}
int main()
{
enjoy<int> e(94);
cout<<e.data<<"\n";
e.display();
} | 12.16 | 25 | 0.546053 | junior-geek04 |
4df446b0d6258e7c84e7ea316ebba019ed3867cd | 973 | cpp | C++ | libhydrosphere/source/common/compiler/memcpy.cpp | Kaenbyo/Hydrosphere | 123143da54329dc678eea3ac3451bd9275a5513d | [
"Apache-2.0",
"MIT"
] | 17 | 2019-08-05T07:11:04.000Z | 2019-11-27T11:55:04.000Z | libhydrosphere/source/common/compiler/memcpy.cpp | Kaenbyo/Hydrosphere | 123143da54329dc678eea3ac3451bd9275a5513d | [
"Apache-2.0",
"MIT"
] | 1 | 2019-09-15T11:42:50.000Z | 2019-09-15T11:42:50.000Z | libhydrosphere/source/common/compiler/memcpy.cpp | Kaenbyo/Hydrosphere | 123143da54329dc678eea3ac3451bd9275a5513d | [
"Apache-2.0",
"MIT"
] | 3 | 2019-08-27T09:54:38.000Z | 2019-09-11T09:50:08.000Z | /*
* Copyright (c) 2019 Hydrosphère Developers
*
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
* http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
* <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
* option. This file may not be copied, modified, or distributed
* ex... | 31.387097 | 71 | 0.67112 | Kaenbyo |
4df470f507cf3cc70118ea94ef7177fbcdae8d59 | 3,545 | cpp | C++ | _investigacion/contests/un_marzo/polygon_intersection.cpp | civilian/competitive_programing | a6ae7ad0db84240667c1dd6231c51c586ba040c7 | [
"MIT"
] | 1 | 2016-02-11T21:28:22.000Z | 2016-02-11T21:28:22.000Z | _investigacion/contests/un_marzo/polygon_intersection.cpp | civilian/competitive_programing | a6ae7ad0db84240667c1dd6231c51c586ba040c7 | [
"MIT"
] | null | null | null | _investigacion/contests/un_marzo/polygon_intersection.cpp | civilian/competitive_programing | a6ae7ad0db84240667c1dd6231c51c586ba040c7 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
#include <cctype>
#include <cassert>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <deque>
#include <list>
#include <set>
#include <map>
#i... | 20.491329 | 94 | 0.514245 | civilian |
4df8e9d4deab18f1114c98c7a05e1c916c65f84f | 320 | cxx | C++ | tomviz/Logger.cxx | sankhesh/tomviz | 7116f4eb75b30534a24462f4ddfb1694fe41c308 | [
"BSD-3-Clause"
] | 284 | 2015-01-05T08:53:20.000Z | 2022-03-31T07:35:16.000Z | tomviz/Logger.cxx | sankhesh/tomviz | 7116f4eb75b30534a24462f4ddfb1694fe41c308 | [
"BSD-3-Clause"
] | 1,579 | 2015-03-19T15:56:44.000Z | 2022-03-21T11:29:04.000Z | tomviz/Logger.cxx | sankhesh/tomviz | 7116f4eb75b30534a24462f4ddfb1694fe41c308 | [
"BSD-3-Clause"
] | 74 | 2015-01-29T16:24:32.000Z | 2022-03-07T21:52:29.000Z | /* This source file is part of the Tomviz project, https://tomviz.org/.
It is released under the 3-Clause BSD License, see "LICENSE". */
#include "Logger.h"
#include "PythonUtilities.h"
#include <QDebug>
namespace tomviz {
void Logger::critical(const QString& msg)
{
qCritical() << msg;
}
} // namespace tomviz
| 20 | 71 | 0.7 | sankhesh |
4dfa60ed9c6171598f0a9edffa74f6a84d355fcb | 10,144 | cpp | C++ | SPARKS/BaseSpark/ComponentSystem.cpp | adele-robots/fiona | 1ef1fb18e620e18b2187e79e4cca31d66d3f1fd2 | [
"MIT"
] | null | null | null | SPARKS/BaseSpark/ComponentSystem.cpp | adele-robots/fiona | 1ef1fb18e620e18b2187e79e4cca31d66d3f1fd2 | [
"MIT"
] | null | null | null | SPARKS/BaseSpark/ComponentSystem.cpp | adele-robots/fiona | 1ef1fb18e620e18b2187e79e4cca31d66d3f1fd2 | [
"MIT"
] | null | null | null | #include "stdAfx.h"
#include "Logger.h"
#include "ErrorHandling.h"
#include "fileops.h"
#include "Component.h"
#include "IConcurrent.h"
#include "Configuration.h"
#include "ComponentSystem.h"
#include <fstream>
#include <iostream>
#include <sstream>
using namespace std;
map<string, string> ComponentSyst... | 30.011834 | 158 | 0.716285 | adele-robots |
4dfe8155469073b68112c037559d4dcd6a88e3e6 | 1,528 | cpp | C++ | Source/common/SoundBank.cpp | leduyquang753/tetrec | 9f1da4485b1a6412af5b244ad99aa462b65a374b | [
"MIT"
] | 16 | 2021-08-03T07:44:15.000Z | 2022-01-17T15:14:17.000Z | Source/common/SoundBank.cpp | leduyquang753/tetrec | 9f1da4485b1a6412af5b244ad99aa462b65a374b | [
"MIT"
] | 1 | 2021-08-03T23:36:55.000Z | 2021-08-04T03:01:36.000Z | Source/common/SoundBank.cpp | leduyquang753/tetrec | 9f1da4485b1a6412af5b244ad99aa462b65a374b | [
"MIT"
] | null | null | null | #include <memory>
#include <random>
#include <string>
#include <vector>
#include "soloud.h"
#include "soloud_wav.h"
#include "common/Utils.h"
#include "common/SoundBank.h"
using namespace std::string_literals;
// SoundBankSingle -------------------------------------------------------------
SoundBankSingle::SoundB... | 24.253968 | 80 | 0.655105 | leduyquang753 |
15006fe04e62b248d130fe4904f72e3bfa5b0bdb | 5,635 | cpp | C++ | pikoc/src/Frontend/PipeASTVisitor.cpp | piko-dev/piko-public | 8d7ab461de155992ca75e839f406670279fb6bad | [
"BSD-3-Clause"
] | 15 | 2015-05-19T08:23:26.000Z | 2021-11-26T02:59:36.000Z | pikoc/src/Frontend/PipeASTVisitor.cpp | piko-dev/piko-public | 8d7ab461de155992ca75e839f406670279fb6bad | [
"BSD-3-Clause"
] | null | null | null | pikoc/src/Frontend/PipeASTVisitor.cpp | piko-dev/piko-public | 8d7ab461de155992ca75e839f406670279fb6bad | [
"BSD-3-Clause"
] | 4 | 2015-10-06T15:14:43.000Z | 2020-02-20T13:17:11.000Z | #include "Frontend/clangUtilities.hpp"
#include "Frontend/PipeASTVisitor.hpp"
#include "Frontend/StageASTVisitor.hpp"
bool PipeASTVisitor::VisitCXXRecordDecl(clang::CXXRecordDecl *decl) {
// Stop if errors have occurred in compilation
if(context.getDiagnostics().hasErrorOccurred()) {
llvm::errs() << "Compilation ... | 24.714912 | 87 | 0.670453 | piko-dev |
1501554ff5b6f85c1379ffba8a4dee83c4c569a2 | 4,266 | cpp | C++ | TestSuite/url_unittest.cpp | w20089527/Net | ca40f0d4a5aa94c64abb8ccc7306bc66bdf12584 | [
"MIT"
] | 1 | 2019-08-10T20:29:13.000Z | 2019-08-10T20:29:13.000Z | TestSuite/url_unittest.cpp | whrool/Net | ca40f0d4a5aa94c64abb8ccc7306bc66bdf12584 | [
"MIT"
] | null | null | null | TestSuite/url_unittest.cpp | whrool/Net | ca40f0d4a5aa94c64abb8ccc7306bc66bdf12584 | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright(c) 2015 huan.wang
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files(the "Software"),
// to deal in the Software without restriction, including without limitation the rights
// to use, copy, m... | 42.66 | 129 | 0.592827 | w20089527 |
1501694fdcde864f56bd759fc7b468560a1c44f2 | 2,013 | cpp | C++ | manager/src/CommManager.cpp | FCS-holding/blaze | ed6146219ec47f95ed352c611576edf3f418d803 | [
"Apache-2.0"
] | null | null | null | manager/src/CommManager.cpp | FCS-holding/blaze | ed6146219ec47f95ed352c611576edf3f418d803 | [
"Apache-2.0"
] | null | null | null | manager/src/CommManager.cpp | FCS-holding/blaze | ed6146219ec47f95ed352c611576edf3f418d803 | [
"Apache-2.0"
] | null | null | null | #include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <fcntl.h>
#include <fstream>
#include <stdio.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <time.h>
#ifdef NDEBUG
#define LOG_HEADER "CommManager"
#endif
#include <glog/logging.h>
#include "blaze/CommMa... | 23.406977 | 67 | 0.660705 | FCS-holding |
1503830f14ffe7593a49ff3447f9cdbc31dd5a60 | 3,416 | cpp | C++ | Frameworks/Starboard/DNSService.cpp | crossmob/WinObjC | 7bec24671c4c18b81aaf85eff2887438f18a697c | [
"MIT"
] | 6,717 | 2015-08-06T18:04:37.000Z | 2019-05-04T12:38:51.000Z | Frameworks/Starboard/DNSService.cpp | Michael-Young48/WinObjC | 7bec24671c4c18b81aaf85eff2887438f18a697c | [
"MIT"
] | 2,711 | 2015-08-06T18:41:09.000Z | 2019-04-29T12:14:23.000Z | Frameworks/Starboard/DNSService.cpp | Michael-Young48/WinObjC | 7bec24671c4c18b81aaf85eff2887438f18a697c | [
"MIT"
] | 1,021 | 2015-08-06T18:08:56.000Z | 2019-04-14T06:50:57.000Z | //******************************************************************************
//
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | 34.505051 | 95 | 0.462237 | crossmob |
1503c4b0cda665eac97f9160dbf3473cf56e5229 | 14,328 | cpp | C++ | src/tool/editor_file/editor.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | src/tool/editor_file/editor.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | src/tool/editor_file/editor.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | #include "editor.hpp"
#include "../../engine/mlib/mlib.hpp"
#include "../../version.h"
#include <wx/notebook.h>
#define L_TEXT_X 3
#define L_TEXT_Y 3
#define E_V1 0x31307645
#define ENTITY_VERSION 0x32307645
#define ENGINE_SFML_VERSION "SFML v2.4.1"
BEGIN_EVENT_TABLE(Editor, wxFrame)
EVT_BUTTON(ID_BTN_AS_NEW, E... | 33.633803 | 166 | 0.624023 | FoFabien |
1503f04180268d2c13ac772c8efadb559c2d434a | 4,225 | cpp | C++ | apps/ScreenSaver/ScreenSaver Example v2/ofxScreenSaver/ofxScreenSaverApp.cpp | local-projects/openframeworks_osx_64 | 430bdd0df27e803ed29078480093f5836053f5fa | [
"MIT"
] | null | null | null | apps/ScreenSaver/ScreenSaver Example v2/ofxScreenSaver/ofxScreenSaverApp.cpp | local-projects/openframeworks_osx_64 | 430bdd0df27e803ed29078480093f5836053f5fa | [
"MIT"
] | null | null | null | apps/ScreenSaver/ScreenSaver Example v2/ofxScreenSaver/ofxScreenSaverApp.cpp | local-projects/openframeworks_osx_64 | 430bdd0df27e803ed29078480093f5836053f5fa | [
"MIT"
] | null | null | null |
// ofxScreenSaverApp.cpp
// ofxScreenSaver
//
// Created by Nick Hardeman on 1/24/14.
//
//
#include "ofxScreenSaverApp.h"
#include "ofxScreenSaverWindow.h"
#include "ofAppRunner.h"
#include "ofTypes.h"
#include "ofUtils.h"
#include "testApp.h"
#include "ofURLFileLoader.h"
#include "Poco/Net/SSLManager.h"
#include... | 24.281609 | 103 | 0.446154 | local-projects |
1505e76b5dd4ce74fd263a39acda730a92acb2c5 | 2,341 | cpp | C++ | Codeforces/1472/g.cpp | eyangch/competitive-programming | 59839efcec72cb792e61b7d316f83ad54f16a166 | [
"MIT"
] | 14 | 2019-08-14T00:43:10.000Z | 2021-12-16T05:43:31.000Z | Codeforces/1472/g.cpp | eyangch/competitive-programming | 59839efcec72cb792e61b7d316f83ad54f16a166 | [
"MIT"
] | null | null | null | Codeforces/1472/g.cpp | eyangch/competitive-programming | 59839efcec72cb792e61b7d316f83ad54f16a166 | [
"MIT"
] | 6 | 2020-12-30T03:30:17.000Z | 2022-03-11T03:40:02.000Z | /*
Solution: O(N + M)
BFS bash. One bfs to find distances from capital.
Another bfs from each node to find nodes able to be reached without action 2
Another bfs after taking action 2 once.
*/
#include <bits/stdc++.h>
using namespace std;
int N, M;
vector<int> graph[200000], rgraph[200000];
int dist[200000], vis[2000... | 22.95098 | 76 | 0.425459 | eyangch |
15064781235ed302c0e33dcf2ba76978824be282 | 3,528 | cc | C++ | bin/ledger/storage/fake/fake_journal_delegate.cc | Acidburn0zzz/peridot | 9a3b1fb8e834d0315092478d83d0176ef28cb765 | [
"BSD-3-Clause"
] | 1 | 2018-02-05T23:33:32.000Z | 2018-02-05T23:33:32.000Z | bin/ledger/storage/fake/fake_journal_delegate.cc | Acidburn0zzz/peridot | 9a3b1fb8e834d0315092478d83d0176ef28cb765 | [
"BSD-3-Clause"
] | null | null | null | bin/ledger/storage/fake/fake_journal_delegate.cc | Acidburn0zzz/peridot | 9a3b1fb8e834d0315092478d83d0176ef28cb765 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 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 "peridot/bin/ledger/storage/fake/fake_journal_delegate.h"
#include <utility>
#include "lib/fxl/random/rand.h"
#include "peridot/bin/ledger/stora... | 27.138462 | 80 | 0.671202 | Acidburn0zzz |
1507186a0e1250e9514b50221437c101d51109cd | 3,069 | hh | C++ | RAVL2/SourceTools/CxxDoc/Parser.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/SourceTools/CxxDoc/Parser.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/SourceTools/CxxDoc/Parser.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | // This file is part of CxxDoc, The RAVL C++ Documentation tool
// Copyright (C) 2001, University of Surrey
// This code may be redistributed under the terms of the GNU General
// Public License (GPL). See the gpl.licence file for details or
// see http://www.gnu.org/copyleft/gpl.html
// file-header-ends-here
#ifndef... | 22.566176 | 69 | 0.62333 | isuhao |
1509db1e1ae5ea5bcc9111b295734a2cb8ce4779 | 1,242 | hpp | C++ | includes/Dataset.hpp | arghyatiger/HighPerformanceCNN | 166701ae53885199c4f06c97e127cba688cbe1c3 | [
"MIT"
] | null | null | null | includes/Dataset.hpp | arghyatiger/HighPerformanceCNN | 166701ae53885199c4f06c97e127cba688cbe1c3 | [
"MIT"
] | null | null | null | includes/Dataset.hpp | arghyatiger/HighPerformanceCNN | 166701ae53885199c4f06c97e127cba688cbe1c3 | [
"MIT"
] | null | null | null | #pragma once
#include <Layer.hpp>
#include <iostream>
#include <memory>
#include <string>
#include <utility>
#include <vector>
class DataSet : public Layer {
public:
explicit DataSet(std::string data_path, bool shuffle = false); //constructor
void reset(); //setting train indexes to zero
void forward(int bat... | 30.292683 | 130 | 0.728663 | arghyatiger |
150bc8341f423db902b170fbbeae552438b65b85 | 8,010 | cpp | C++ | src/lunar-master/precess2.cpp | TehSnappy/lib_lunar_ex | a4cd4a3cdec44c2adaefbf1791b8863db568cbbd | [
"MIT"
] | 1 | 2019-03-11T14:46:04.000Z | 2019-03-11T14:46:04.000Z | lib/net/src/nrun/astro/precess2.cpp | lcityd/paragon | 47a43872a5656a8c431c774d353ed214f9d0ed1d | [
"MIT"
] | null | null | null | lib/net/src/nrun/astro/precess2.cpp | lcityd/paragon | 47a43872a5656a8c431c774d353ed214f9d0ed1d | [
"MIT"
] | 1 | 2019-10-12T03:23:41.000Z | 2019-10-12T03:23:41.000Z | /* precess2.cpp: (deprecated version of) functions for computing
Earth precession; see precess.cpp for current version, and
'changes.txt' for info on why this is deprecated
Copyright (C) 2010, Project Pluto
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Pu... | 32.693878 | 83 | 0.576404 | TehSnappy |
150f91c9bdd785d55e82bf1dec95e6a732972e20 | 377 | cpp | C++ | DataStructures/Graphs/Union_Find.cpp | allenli873/USACO_Materials | 62540bf22268619283863e624d06b2588961e0a4 | [
"MIT"
] | 2 | 2020-05-30T22:24:43.000Z | 2020-05-30T23:35:15.000Z | DataStructures/Graphs/Union_Find.cpp | allenli873/USACO_Materials | 62540bf22268619283863e624d06b2588961e0a4 | [
"MIT"
] | null | null | null | DataStructures/Graphs/Union_Find.cpp | allenli873/USACO_Materials | 62540bf22268619283863e624d06b2588961e0a4 | [
"MIT"
] | null | null | null | template<int SZ> struct DSU {
int par[SZ], ranks[SZ];
DSU() {
iota(par, par + SZ, 0);
}
int find(int curr) {
return par[curr] == curr ? curr : (par[curr] = find(par[curr]));
}
void unite(int n1, int n2) {
int f1 = find(n1);
int f2 = find(n2);
if(ranks[f1] > ranks[f2]) {
par[f2] = f1;
ranks[f1]... | 15.708333 | 66 | 0.517241 | allenli873 |
15153f5d2d66a6fc55c18c6c04aeb3a3eb38afe4 | 621 | cpp | C++ | C++ Programs/square_root_using_binary_search.cpp | manvitha1726/RTU-DigitalLibrary | e2dbf042bcebaa52613fa925dfdbe1f72dc13bcd | [
"MIT"
] | 32 | 2020-10-06T09:45:10.000Z | 2021-12-23T02:15:42.000Z | C++ Programs/square_root_using_binary_search.cpp | GayatriDS/RTU-DigitalLibrary | 6565798f40896371210dc547aa61eb112046de8d | [
"MIT"
] | 55 | 2020-10-05T06:21:13.000Z | 2021-09-11T18:06:50.000Z | C++ Programs/square_root_using_binary_search.cpp | Tausif121/RTU-DigitalLibrary | b0ad54356158ba92c476472241b5b118fb624bf4 | [
"MIT"
] | 248 | 2020-10-05T06:21:19.000Z | 2021-10-03T08:29:23.000Z | #include<bits/stdc++.h>
using namespace std;
float square_root(int num,int p) {
int s=0;
int e=num;
float ans=-1;
while(s<=e) {
int mid=s+e>>1; // (s+e)/2
if(mid*mid==num) {
return mid;
}
else if(mid*mid>=num) {
e=mid-1;
}
else { //as 7*7 is vey close to 50
s=mid+1;
ans=mid;
}
}
... | 14.113636 | 39 | 0.557166 | manvitha1726 |
15190683b6207230f0df6041ffdcfaf3ecfb50af | 1,109 | cpp | C++ | CsPlugin/Source/CsCore/Public/Managers/Pool/Payload/CsPayload_PooledObjectImpl.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsPlugin/Source/CsCore/Public/Managers/Pool/Payload/CsPayload_PooledObjectImpl.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsPlugin/Source/CsCore/Public/Managers/Pool/Payload/CsPayload_PooledObjectImpl.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.
#include "Managers/Pool/Payload/CsPayload_PooledObjectImpl.h"
#include "Containers/CsInterfaceMap.h"
const FName NCsPooledObject::NPayload::FImpl::Name = FName("NCsPooledObject::NPayload::FImpl");
namespace NCsPooledObject
{
namespace NPayload
{
... | 20.163636 | 95 | 0.699729 | closedsum |
151deaa252ded8f32e97a3a98dcf327dcbb26263 | 3,763 | cpp | C++ | vlcdemo/vlc/vlc.cpp | liyuzhao/QWidgetDemo | a056894da7b7385e37a523ea4825cea48c82d297 | [
"MulanPSL-1.0"
] | 3,095 | 2019-10-11T03:00:33.000Z | 2022-03-31T08:15:13.000Z | vlcdemo/vlc/vlc.cpp | liyuzhao/QWidgetDemo | a056894da7b7385e37a523ea4825cea48c82d297 | [
"MulanPSL-1.0"
] | 28 | 2019-11-12T07:24:06.000Z | 2022-02-28T02:04:48.000Z | vlcdemo/vlc/vlc.cpp | liyuzhao/QWidgetDemo | a056894da7b7385e37a523ea4825cea48c82d297 | [
"MulanPSL-1.0"
] | 1,023 | 2019-10-09T12:54:07.000Z | 2022-03-30T04:02:07.000Z | #include "vlc.h"
VlcThread::VlcThread(QObject *parent) : QThread(parent)
{
setObjectName("VlcThread");
stopped = false;
isPlay = false;
url = "rtsp://192.168.1.200:554/1";
vlcInst = NULL;
vlcMedia = NULL;
vlcPlayer = NULL;
static bool isInit = false;
if (!isInit) {
isIn... | 19.805263 | 171 | 0.597661 | liyuzhao |
151f3dd67175a7f64d3fbc91bb474512ea823b11 | 457 | cpp | C++ | chapter_05/BitLevelOperations.cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | null | null | null | chapter_05/BitLevelOperations.cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | 31 | 2021-05-14T03:37:24.000Z | 2022-03-13T17:38:32.000Z | chapter_05/BitLevelOperations.cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | null | null | null | // Exercise 5.46 - Computer Architecture: Bit-level operations
// I am not sure of this solution it is not mine I need to understand this program.
#include <iostream>
int main()
{
std::cout << "Enter an integer: ";
int value, mask = 1, temp, bit;
std::cin >> value;
std::cout << "The bits are ";
fo... | 21.761905 | 83 | 0.553611 | Kevin-Oudai |
151f6553975810ceb7a1cebbc794e9528eaeaac5 | 418 | cpp | C++ | Competitive Programming/leetcode/Number-of-Good-Pairs.cpp | JcsnP/My-Playground | 683600bd32ee7050bbe2cfca8eaf96eb1cdf039c | [
"Unlicense"
] | 2 | 2020-12-31T09:30:57.000Z | 2021-03-15T05:04:18.000Z | Competitive Programming/leetcode/Number-of-Good-Pairs.cpp | JcsnP/My-Playground | 683600bd32ee7050bbe2cfca8eaf96eb1cdf039c | [
"Unlicense"
] | null | null | null | Competitive Programming/leetcode/Number-of-Good-Pairs.cpp | JcsnP/My-Playground | 683600bd32ee7050bbe2cfca8eaf96eb1cdf039c | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int numIdenticalPairs(vector<int>& nums){
unsigned int pairs = 0;
for(unsigned int i = 0; i < nums.size(); i++){
for(unsigned int j = 0; j < nums.size(); j++){
if(nums[i] == nums[j] and i < j){
++pairs;
}
}
}
return pairs;
}
int main... | 19 | 50 | 0.552632 | JcsnP |
152263c52ba441d91db240eae1b01e0beb96f69a | 8,424 | cpp | C++ | pxr/usd/lib/usdSkel/bindingAPI.cpp | navefx/YuksUSD | 56c2e1def36ee07121f4ecb349c1626472b3c338 | [
"AML"
] | 6 | 2018-08-26T13:27:22.000Z | 2021-08-14T23:57:38.000Z | pxr/usd/lib/usdSkel/bindingAPI.cpp | navefx/YuksUSD | 56c2e1def36ee07121f4ecb349c1626472b3c338 | [
"AML"
] | 1 | 2021-08-14T23:57:51.000Z | 2021-08-14T23:57:51.000Z | pxr/usd/lib/usdSkel/bindingAPI.cpp | navefx/YuksUSD | 56c2e1def36ee07121f4ecb349c1626472b3c338 | [
"AML"
] | 4 | 2018-06-14T18:14:59.000Z | 2021-09-13T22:20:50.000Z | //
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 27.529412 | 101 | 0.688746 | navefx |
1523647b42aa57408cd2e1f5c83e3244f1c9a8d5 | 1,701 | cpp | C++ | Algo-1/week1/1-Vector/main.cpp | pepincho/Python101-and-Algo1-Courses | 7cf38d26d5be5ffc1a37477ae6375a99906df9e2 | [
"MIT"
] | 2 | 2016-10-11T14:09:05.000Z | 2017-01-20T19:30:34.000Z | Algo-1/week1/3-Stack/main.cpp | pepincho/HackBulgaria | 7cf38d26d5be5ffc1a37477ae6375a99906df9e2 | [
"MIT"
] | null | null | null | Algo-1/week1/3-Stack/main.cpp | pepincho/HackBulgaria | 7cf38d26d5be5ffc1a37477ae6375a99906df9e2 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Vector.h"
#include "Queue.h"
#include "Stack.h"
#include <time.h>
int main() {
clock_t beg = clock();
Vector pesho;
pesho.add(5);
pesho.add(2);
pesho.add(8);
pesho.add(16);
pesho.insert(1, 10);
pesho.add(33);
pesho.printVector();
pesho.insert(2, 10);
std::cout << "pesho ... | 22.381579 | 77 | 0.563786 | pepincho |
1526cf54858f8c6ff963783c1a303c91e54e44a7 | 653 | hpp | C++ | cpp/include/core/https/HttpsClient.hpp | nawbar23/fleetmgr | e5f93877fa373841845941dacf37cfcd4364f69c | [
"MIT"
] | null | null | null | cpp/include/core/https/HttpsClient.hpp | nawbar23/fleetmgr | e5f93877fa373841845941dacf37cfcd4364f69c | [
"MIT"
] | null | null | null | cpp/include/core/https/HttpsClient.hpp | nawbar23/fleetmgr | e5f93877fa373841845941dacf37cfcd4364f69c | [
"MIT"
] | null | null | null | #ifndef FM_CORE_HTTPS_HTTPSCLIENT_HPP
#define FM_CORE_HTTPS_HTTPSCLIENT_HPP
#include <string>
namespace fm
{
namespace core
{
namespace https {
/**
* Created by: Bartosz Nawrot
* Date: 2018-11-27
* Description:
*/
class HttpsClient
{
public:
enum Method
{
POST,
PUT,
GET,
... | 13.604167 | 78 | 0.644717 | nawbar23 |
1530acbd09e58deb3f6305bdb938900452df6334 | 528 | hpp | C++ | examples/02Physics/LevelEnd.hpp | Galhad/firestorm | 3c1584b1e5b95f21d963b9cf226f6ec1a469d7af | [
"MIT"
] | null | null | null | examples/02Physics/LevelEnd.hpp | Galhad/firestorm | 3c1584b1e5b95f21d963b9cf226f6ec1a469d7af | [
"MIT"
] | null | null | null | examples/02Physics/LevelEnd.hpp | Galhad/firestorm | 3c1584b1e5b95f21d963b9cf226f6ec1a469d7af | [
"MIT"
] | null | null | null |
#ifndef FIRESTORM_LEVELEND_HPP
#define FIRESTORM_LEVELEND_HPP
#include "scene/SceneNode.hpp"
#include <memory>
namespace fs::scene
{
class LevelEnd : public SceneNode
{
public:
LevelEnd() = default;
~LevelEnd() override = default;
void create(io::InputManager& inputManager, physics::PhysicsManager& p... | 18.206897 | 118 | 0.725379 | Galhad |
15322fdd0929ad0f55e4421424f3146d31247b4c | 4,211 | cpp | C++ | modules/task_3/kharunova_a_algorithm_of_strongin/main.cpp | Gurgen-Arm/pp_2021_autumn | ad549e49d765612c4544f34b04c9eb9432ac0dc7 | [
"BSD-3-Clause"
] | null | null | null | modules/task_3/kharunova_a_algorithm_of_strongin/main.cpp | Gurgen-Arm/pp_2021_autumn | ad549e49d765612c4544f34b04c9eb9432ac0dc7 | [
"BSD-3-Clause"
] | null | null | null | modules/task_3/kharunova_a_algorithm_of_strongin/main.cpp | Gurgen-Arm/pp_2021_autumn | ad549e49d765612c4544f34b04c9eb9432ac0dc7 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 Kharunova Alina
#include <gtest/gtest.h>
#include "./algorithm_of_strongin.h"
#include <gtest-mpi-listener.hpp>
TEST(Parallel_Operations_MPI, parallel_sum_in_10_elements_matrix) {
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
double start, end, timeLin, timeParal;
if (rank == 0) {
sta... | 28.452703 | 76 | 0.625742 | Gurgen-Arm |
15343d244e983291fce531f0643c5f70262e8831 | 571 | hpp | C++ | upgrade/boot_loader/VerifierRsa.hpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | 54 | 2019-04-02T14:42:54.000Z | 2022-03-20T23:02:19.000Z | upgrade/boot_loader/VerifierRsa.hpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | 32 | 2019-03-26T06:57:29.000Z | 2022-03-25T00:04:44.000Z | upgrade/boot_loader/VerifierRsa.hpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | 20 | 2019-03-25T15:49:49.000Z | 2022-03-20T23:02:22.000Z | #ifndef UPGRADE_VERIFIER_RSA_HPP
#define UPGRADE_VERIFIER_RSA_HPP
#include "upgrade/boot_loader/Verifier.hpp"
namespace application
{
class VerifierRsa
: public Verifier
{
public:
VerifierRsa(infra::ConstByteRange publicKeyN, infra::ConstByteRange publicKeyE);
virtual bool IsValid... | 24.826087 | 163 | 0.730298 | oguzcanphilips |
15361ff688031e211c11b637af0b229804760345 | 2,494 | cpp | C++ | src/Services/FunctionManagementService.cpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | src/Services/FunctionManagementService.cpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | src/Services/FunctionManagementService.cpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | #include "ECSS_Configuration.hpp"
#ifdef SERVICE_FUNCTION
#include "Services/FunctionManagementService.hpp"
void FunctionManagementService::call(Message& msg) {
msg.resetRead();
ErrorHandler::assertRequest(msg.packetType == Message::TC, msg,
ErrorHandler::AcceptanceErrorType::Unacceptab... | 37.223881 | 112 | 0.761427 | ACubeSAT |
1539fab1fc1668eed8ad73910cf93a87afee1161 | 2,238 | cpp | C++ | tests/ModLoaderTests.cpp | Zemurin/commonItems | cda7c217c7b3433b61a17cd05ce8d3893b711bf7 | [
"MIT"
] | 7 | 2018-12-22T03:59:34.000Z | 2021-06-10T22:42:37.000Z | tests/ModLoaderTests.cpp | IhateTrains/commonItems | 759705dc41ff1595db9786d0a9facc0b336888c3 | [
"MIT"
] | 45 | 2018-12-04T04:51:20.000Z | 2021-08-12T12:20:56.000Z | tests/ModLoaderTests.cpp | IhateTrains/commonItems | 759705dc41ff1595db9786d0a9facc0b336888c3 | [
"MIT"
] | 15 | 2019-01-09T05:59:48.000Z | 2020-08-27T09:08:09.000Z | #include "../ModLoader/ModLoader.h"
#include "../OSCompatibilityLayer.h"
#include "gtest/gtest.h"
#include <gmock/gmock-matchers.h>
using testing::UnorderedElementsAre;
TEST(ModLoaderTests, ModsCanBeLocatedUnpackedAndUpdated)
{
Mods incomingMods; // this is what comes from the save
incomingMods.emplac... | 37.3 | 108 | 0.758266 | Zemurin |
153a61e9019d7b15d28d88d3922dd9ac261ebd05 | 6,529 | hpp | C++ | includes/coff/string.hpp | archercreat/linux-pe | 902f744424b70979d401a9274afd579bceea104a | [
"BSD-3-Clause"
] | 140 | 2020-01-16T19:04:33.000Z | 2022-03-10T02:54:01.000Z | includes/coff/string.hpp | archercreat/linux-pe | 902f744424b70979d401a9274afd579bceea104a | [
"BSD-3-Clause"
] | 4 | 2021-02-28T12:02:46.000Z | 2022-02-14T01:41:57.000Z | includes/coff/string.hpp | archercreat/linux-pe | 902f744424b70979d401a9274afd579bceea104a | [
"BSD-3-Clause"
] | 38 | 2020-01-16T01:48:08.000Z | 2022-03-12T16:52:20.000Z | // Copyright (c) 2020 Can Boluk
// All rights reserved.
//
// 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 lis... | 38.405882 | 134 | 0.559657 | archercreat |
153e7c40f2bc9bfd7b3574a1fb809f1b9ef5da28 | 3,750 | hpp | C++ | third_party/boost/simd/arch/x86/avx2/simd/function/shift_left.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | third_party/boost/simd/arch/x86/avx2/simd/function/shift_left.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/arch/x86/avx2/simd/function/shift_left.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/**
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
**/
//====================================... | 33.482143 | 100 | 0.461333 | SylvainCorlay |
153f99ecd798218b9cb5ddf6ca547d6d87587629 | 2,400 | cpp | C++ | LiveCam/Core/Tracking/CaffeFaceDetector.cpp | KanSmith/LiveCam | 8b863f55f08cb3ea5090e417c68ad82ded690743 | [
"MIT"
] | null | null | null | LiveCam/Core/Tracking/CaffeFaceDetector.cpp | KanSmith/LiveCam | 8b863f55f08cb3ea5090e417c68ad82ded690743 | [
"MIT"
] | null | null | null | LiveCam/Core/Tracking/CaffeFaceDetector.cpp | KanSmith/LiveCam | 8b863f55f08cb3ea5090e417c68ad82ded690743 | [
"MIT"
] | null | null | null | #include "CaffeFaceDetector.h"
#include <Common/CommonClasses.h>
CaffeFaceDetector::CaffeFaceDetector()
{
capacity = MAX_TARGETS_COUNT;
inputSize = cv::Size(300, 300);
inputMean = cv::Scalar(104.0, 177.0, 123.0);
inputName = "data";
outputName = "detection_out";
const cv::String trackerConfiguration = "Assets/... | 27.272727 | 111 | 0.722917 | KanSmith |
1540132a3a38811421655f7b946b35a07fbe798b | 118,611 | cpp | C++ | jtransc-rt/resources/cpp/Base.cpp | renesugar/jtransc | 9a562bf3f855c16cbea8c8c2e2ca4f3665d8626a | [
"Apache-2.0"
] | null | null | null | jtransc-rt/resources/cpp/Base.cpp | renesugar/jtransc | 9a562bf3f855c16cbea8c8c2e2ca4f3665d8626a | [
"Apache-2.0"
] | null | null | null | jtransc-rt/resources/cpp/Base.cpp | renesugar/jtransc | 9a562bf3f855c16cbea8c8c2e2ca4f3665d8626a | [
"Apache-2.0"
] | null | null | null | #ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#define _CRT_SECURE_NO_DEPRECATE
#include <windows.h>
#endif
#ifdef _WIN32
#define _JTRANSC_UNIX_LIKE_ 0
#define _JTRANSC_WINDOWS_ 1
#elif __APPLE__
#define _JTRANSC_UNIX_LIKE_ 1
#define _JTRANSC_WINDOWS_ 0
#elif __linux__
#define _JTRANSC_UNIX_LIKE_ 1
#... | 38.114075 | 406 | 0.713652 | renesugar |
1543882b2a28c40a8b2f7f37d65e700e15b4e2ee | 2,979 | hpp | C++ | libs/visitor/Visitable.hpp | cesiumsolutions/dynamic_generic_visitor | da8fe928bf77270e1a64beae0051bfadba7ea256 | [
"MIT"
] | null | null | null | libs/visitor/Visitable.hpp | cesiumsolutions/dynamic_generic_visitor | da8fe928bf77270e1a64beae0051bfadba7ea256 | [
"MIT"
] | null | null | null | libs/visitor/Visitable.hpp | cesiumsolutions/dynamic_generic_visitor | da8fe928bf77270e1a64beae0051bfadba7ea256 | [
"MIT"
] | null | null | null | #ifndef Visitable_hpp
#define Visitable_hpp
#include <functional>
#include <typeinfo>
// ----------------------------------------------------------------------------
// VisitableBase
// ----------------------------------------------------------------------------
template<typename VisitorType, typename Sign... | 35.464286 | 83 | 0.65089 | cesiumsolutions |
1543a351fa8dec3493095c95e01a4b6449ff059e | 1,117 | cc | C++ | lib/base/database/SPar.cc | SiFi-CC/sifi-framework | 8dba20dcc4dc8b25ca000d58e6eac27b2a94eb55 | [
"MIT"
] | null | null | null | lib/base/database/SPar.cc | SiFi-CC/sifi-framework | 8dba20dcc4dc8b25ca000d58e6eac27b2a94eb55 | [
"MIT"
] | 3 | 2020-05-06T18:22:40.000Z | 2020-05-26T14:00:23.000Z | lib/base/database/SPar.cc | SiFi-CC/sifi-framework | 8dba20dcc4dc8b25ca000d58e6eac27b2a94eb55 | [
"MIT"
] | 4 | 2021-02-11T10:44:29.000Z | 2021-06-17T10:50:23.000Z | // @(#)lib/base:$Id$
// Author: Rafal Lalik 18/11/2017
/*************************************************************************
* Copyright (C) 2017-2018, Rafał Lalik. *
* All rights reserved. *
* ... | 36.032258 | 76 | 0.52641 | SiFi-CC |
154892726a064aa98f1dd9781fcd606859ade052 | 573 | cpp | C++ | task3_zad3.cpp | slaveya-nusheva/assignments8g | f082378f6d81f0ee6432c1f9e2d042daf7b6eb3d | [
"Apache-2.0"
] | null | null | null | task3_zad3.cpp | slaveya-nusheva/assignments8g | f082378f6d81f0ee6432c1f9e2d042daf7b6eb3d | [
"Apache-2.0"
] | null | null | null | task3_zad3.cpp | slaveya-nusheva/assignments8g | f082378f6d81f0ee6432c1f9e2d042daf7b6eb3d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
void printLine (int star, int space)//function not returning any result is void
{
for (int i = 0; i < space; i++)
{
cout<<" "<<" ";
}
for (int i = 0; i < star; i++)
{
cout<<"*"<<" ";
}
cout<<endl;
}
int main()
{
int lines = 0;
... | 18.483871 | 79 | 0.481675 | slaveya-nusheva |
1549cbcd24f93a67ce4a96896a56c07c39ce7a62 | 318 | cpp | C++ | 389.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 389.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 389.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | class Solution {
public:
char findTheDifference(string s, string t) {
int res = 0;
for (char c : s) {
int ch = c - 'a';
res ^= ch;
}
for (char c : t) {
int ch = c - 'a';
res ^= ch;
}
return (char)(res + 'a');
}
};
| 19.875 | 48 | 0.367925 | Alex-Amber |
154d9907057df14a6add70a2e8b3a3d5a92ee4b9 | 3,311 | cpp | C++ | src/OpenGL/VertexBuffer.cpp | neuromancer/Phantasma | 9552d3b43ab5ffe235f69d6d9d4e921b715464f3 | [
"MIT"
] | 13 | 2015-06-09T21:35:16.000Z | 2021-08-18T14:14:43.000Z | src/OpenGL/VertexBuffer.cpp | neuromancer/Phantasma | 9552d3b43ab5ffe235f69d6d9d4e921b715464f3 | [
"MIT"
] | null | null | null | src/OpenGL/VertexBuffer.cpp | neuromancer/Phantasma | 9552d3b43ab5ffe235f69d6d9d4e921b715464f3 | [
"MIT"
] | 7 | 2017-09-28T20:18:41.000Z | 2021-03-16T11:55:45.000Z | //
// VertexArray.cpp
// Phantasma
//
// Created by Thomas Harte on 22/12/2013.
// Copyright (c) 2013 Thomas Harte. All rights reserved.
//
#include "VertexBuffer.h"
#include <map>
VertexBuffer *VertexBuffer::boundBuffer;
VertexBuffer::VertexBuffer()
{
// create a vector to write new values to and seed our stri... | 27.591667 | 138 | 0.728179 | neuromancer |
154de9e98f0aa68c49a924d63034fe984444059e | 960 | cxx | C++ | src/DmwApplication.cxx | DmitrySemikin/das-mesh-workbench | 35a4d3b8b6d51a2ea6dc7ebfd019ea89e4ae3fb6 | [
"Apache-2.0"
] | null | null | null | src/DmwApplication.cxx | DmitrySemikin/das-mesh-workbench | 35a4d3b8b6d51a2ea6dc7ebfd019ea89e4ae3fb6 | [
"Apache-2.0"
] | null | null | null | src/DmwApplication.cxx | DmitrySemikin/das-mesh-workbench | 35a4d3b8b6d51a2ea6dc7ebfd019ea89e4ae3fb6 | [
"Apache-2.0"
] | null | null | null | #include <memory>
#include <QApplication>
#include <QSurfaceFormat>
#include <QVTKOpenGLStereoWidget.h>
#include "DmwKernel.hxx"
#include "DmwApplication.hxx"
using std::make_unique;
DmwApplication::DmwApplication(int argc, char ** argv)
: qApplication(nullptr)
{
// TODO: Move everything from constructor to `... | 25.263158 | 116 | 0.739583 | DmitrySemikin |
15520df3796e4a0361494a452b28788498a03910 | 193,984 | cpp | C++ | src/Cmfd.cpp | AI-Pranto/OpenMOC | 7f6ce4797aec20ddd916981a56a4ba54ffda9a06 | [
"MIT"
] | 1 | 2021-02-14T12:43:30.000Z | 2021-02-14T12:43:30.000Z | src/Cmfd.cpp | AI-Pranto/OpenMOC | 7f6ce4797aec20ddd916981a56a4ba54ffda9a06 | [
"MIT"
] | null | null | null | src/Cmfd.cpp | AI-Pranto/OpenMOC | 7f6ce4797aec20ddd916981a56a4ba54ffda9a06 | [
"MIT"
] | 1 | 2020-10-25T06:08:50.000Z | 2020-10-25T06:08:50.000Z | #include "Cmfd.h"
/**
* @brief Constructor initializes boundaries and variables that describe
* the CMFD object.
* @details The constructor initializes the many variables that describe
* the CMFD mesh and are used to solve the nonlinear diffusion
* acceleration problem.
*/
Cmfd::Cmfd()... | 34.559772 | 93 | 0.622556 | AI-Pranto |
1552378da34476a34fdfd3a8c2c03f900a09baa3 | 44 | hh | C++ | include/trick/compat/sim_services/DMTCP/include/dmtcp_checkpoint_c_intf.hh | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 1 | 2021-01-17T21:02:33.000Z | 2021-01-17T21:02:33.000Z | include/trick/compat/sim_services/DMTCP/include/dmtcp_checkpoint_c_intf.hh | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | null | null | null | include/trick/compat/sim_services/DMTCP/include/dmtcp_checkpoint_c_intf.hh | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 3 | 2021-06-22T11:02:39.000Z | 2021-10-21T00:58:00.000Z | #include "trick/dmtcp_checkpoint_c_intf.hh"
| 22 | 43 | 0.840909 | gilbertguoze |
1554fd5d21463a2a7b8ec2921d65099c3e46beaa | 2,953 | cc | C++ | libLogging/test/LoggerTest.cc | marcbejerano/cpp-tools | 9ef62064a5b826b8722ff96e423ffff2d85f49f1 | [
"BSD-3-Clause"
] | null | null | null | libLogging/test/LoggerTest.cc | marcbejerano/cpp-tools | 9ef62064a5b826b8722ff96e423ffff2d85f49f1 | [
"BSD-3-Clause"
] | null | null | null | libLogging/test/LoggerTest.cc | marcbejerano/cpp-tools | 9ef62064a5b826b8722ff96e423ffff2d85f49f1 | [
"BSD-3-Clause"
] | null | null | null | #include "LoggerTest.h"
#include <Logger>
#include <sstream>
using namespace hslib;
class StringBufferAppender : public Appender
{
private:
std::stringstream buffer;
public:
StringBufferAppender() : Appender(), buffer() { }
StringBufferAppender(const StringBufferAppender& copy) : Appen... | 25.678261 | 93 | 0.66678 | marcbejerano |