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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e4f44654c88895dcda9c1e4b53d6c07f62531b1 | 54,943 | cpp | C++ | src/glib/mine/mc.cpp | mihapapler/qminer | 078bdd249313e984751789532c986309ab9689fd | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/glib/mine/mc.cpp | mihapapler/qminer | 078bdd249313e984751789532c986309ab9689fd | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/glib/mine/mc.cpp | mihapapler/qminer | 078bdd249313e984751789532c986309ab9689fd | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /**
* Copyright (c) 2015, Jozef Stefan Institute, Quintelligence d.o.o. and contributors
* All rights reserved.
*
* This source code is licensed under the FreeBSD license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "mc.h"
using namespace TMc;
////////////////////////////... | 30.971251 | 213 | 0.702091 | mihapapler |
9e4fcd830168bc05e983ed384e857bec231c4f1c | 3,432 | cpp | C++ | src/tests/depend_test/MetricSerializerTest.cpp | vinsle/dependency-analysis | 087d218864833fccab20b5693cfcdca728b31218 | [
"BSL-1.0"
] | null | null | null | src/tests/depend_test/MetricSerializerTest.cpp | vinsle/dependency-analysis | 087d218864833fccab20b5693cfcdca728b31218 | [
"BSL-1.0"
] | null | null | null | src/tests/depend_test/MetricSerializerTest.cpp | vinsle/dependency-analysis | 087d218864833fccab20b5693cfcdca728b31218 | [
"BSL-1.0"
] | null | null | null | //
// Copyright Silvin Lubecki 2010
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#include "depend_test_pch.h"
#include "depend/MetricSerializer.h"
#include "MockVisitable.h"
#include "Moc... | 34.32 | 90 | 0.560023 | vinsle |
9e51c9beff53ca22fb6293360d86b88e2e27454a | 3,000 | cc | C++ | sky/viewer/internals.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 5 | 2019-05-24T01:25:34.000Z | 2020-04-06T05:07:01.000Z | sky/viewer/internals.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | null | null | null | sky/viewer/internals.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 5 | 2016-12-23T04:21:10.000Z | 2020-06-18T13:52:33.000Z | // Copyright 2014 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 "sky/viewer/internals.h"
#include "mojo/edk/js/core.h"
#include "mojo/edk/js/handle.h"
#include "mojo/edk/js/support.h"
#include "mojo/public/cp... | 32.967033 | 77 | 0.732333 | domenic |
9e535c8c1a81aa0f0f727ccdb4351a11e2dba8bc | 2,514 | hpp | C++ | src/flat_file_back_translation.hpp | StephenHwang/vg | cf4d516a5e9ee5163c783e4437ddf16b18a4b561 | [
"MIT"
] | null | null | null | src/flat_file_back_translation.hpp | StephenHwang/vg | cf4d516a5e9ee5163c783e4437ddf16b18a4b561 | [
"MIT"
] | null | null | null | src/flat_file_back_translation.hpp | StephenHwang/vg | cf4d516a5e9ee5163c783e4437ddf16b18a4b561 | [
"MIT"
] | null | null | null | /**
* \file flat_file_back_translation.hpp
* Defines a back-translation from graph node ID space to named node space,
* backed by a flat text file.
*/
#ifndef VG_FLAT_FILE_BACK_TRANSLATION_HPP_INCLUDED
#define VG_FLAT_FILE_BACK_TRANSLATION_HPP_INCLUDED
#include "handle.hpp"
#include <unordered_map>
#include <ist... | 32.230769 | 104 | 0.716786 | StephenHwang |
9e54dc69adefb12e81b4683b73b4cb8bd6e8f4cf | 4,417 | cpp | C++ | mpid/nt2unix/tests/test_sockets.cpp | RWTH-OS/MP-MPICH | f2ae296477bb9d812fda587221b3419c09f85b4a | [
"mpich2"
] | null | null | null | mpid/nt2unix/tests/test_sockets.cpp | RWTH-OS/MP-MPICH | f2ae296477bb9d812fda587221b3419c09f85b4a | [
"mpich2"
] | null | null | null | mpid/nt2unix/tests/test_sockets.cpp | RWTH-OS/MP-MPICH | f2ae296477bb9d812fda587221b3419c09f85b4a | [
"mpich2"
] | 1 | 2021-01-23T11:01:01.000Z | 2021-01-23T11:01:01.000Z | /* $id$ */
/* generally test if sockets work */
/*
HOWTO USE:
start the demon on a host ( host1> ./test_sockets )
start the ping process on another host ( hopst2> ./test_sockets host1 )
on successfully completion 100 Messages will be displayed and the completion
time is mentioned
*/
#include <windows... | 21.651961 | 107 | 0.633688 | RWTH-OS |
9e56aa6b69f5606f83732ad8e58f08ebe6b70d99 | 2,403 | cpp | C++ | src/StatusLed.cpp | BlueMasters/arduino-wolves | 5e4522b34bf6abc9c22f25b0ec2e912ca0057a58 | [
"Apache-2.0"
] | null | null | null | src/StatusLed.cpp | BlueMasters/arduino-wolves | 5e4522b34bf6abc9c22f25b0ec2e912ca0057a58 | [
"Apache-2.0"
] | 13 | 2016-05-09T13:42:28.000Z | 2016-05-19T17:18:47.000Z | src/StatusLed.cpp | BlueMasters/arduino-wolves | 5e4522b34bf6abc9c22f25b0ec2e912ca0057a58 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
* Copyright 2016 BlueMasters
*
* 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... | 28.270588 | 79 | 0.633375 | BlueMasters |
9e63359ba05404e474c3ff1b87432d1bbfaf7dc4 | 3,852 | hpp | C++ | include/MpiRoutines.hpp | bonoboris/hpc_project | c5106efa3d51b1572c3dbefc5c136d8f1d2b698a | [
"MIT"
] | null | null | null | include/MpiRoutines.hpp | bonoboris/hpc_project | c5106efa3d51b1572c3dbefc5c136d8f1d2b698a | [
"MIT"
] | null | null | null | include/MpiRoutines.hpp | bonoboris/hpc_project | c5106efa3d51b1572c3dbefc5c136d8f1d2b698a | [
"MIT"
] | null | null | null | // Distributed implementation of common operation on vectors and matrix using MPI
#pragma once
#include "MpiWrapper.hpp"
#include "Matrix.hpp"
#include "linalg.hpp"
#include <string>
// Assuming every process have their part of the input
// Return the scalar product (x.y) for every process
template<typ... | 31.57377 | 131 | 0.666667 | bonoboris |
9e63e9fbef03662087ca7b6dda6aed118bc681e5 | 2,829 | cpp | C++ | zebROS_ws/src/talon_state_controller/src/orchestra_state_controller.cpp | FRC900/2020RobotCode | e5d5f8f9f0ea2dc0e1139e776989ccb5a05896de | [
"BSD-3-Clause"
] | 4 | 2020-11-25T18:30:33.000Z | 2021-11-14T04:50:16.000Z | zebROS_ws/src/talon_state_controller/src/orchestra_state_controller.cpp | FRC900/2020Offseason | 36ccd74667d379b07d9b7a1e937307c6d8119229 | [
"BSD-3-Clause"
] | 19 | 2021-03-20T01:10:04.000Z | 2022-01-17T22:51:05.000Z | zebROS_ws/src/talon_state_controller/src/orchestra_state_controller.cpp | FRC900/2020Offseason | 36ccd74667d379b07d9b7a1e937307c6d8119229 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T22:48:25.000Z | 2021-11-14T06:13:06.000Z | #include <algorithm>
#include <cstddef>
#include <pluginlib/class_list_macros.h>
#include "talon_state_controller/orchestra_state_controller.h"
namespace orchestra_state_controller
{
bool OrchestraStateController::init(hardware_interface::OrchestraStateInterface *hw,
ros::NodeHandle &... | 30.419355 | 114 | 0.721103 | FRC900 |
9e6908596f3cb20bb693d761c13d56f0bce21475 | 349 | cpp | C++ | src/test/CanvasTest.cpp | SamuelGauthier/iphito | 83cbcc9037965f5722aa39e7a7c13f0677264ff3 | [
"Unlicense"
] | null | null | null | src/test/CanvasTest.cpp | SamuelGauthier/iphito | 83cbcc9037965f5722aa39e7a7c13f0677264ff3 | [
"Unlicense"
] | null | null | null | src/test/CanvasTest.cpp | SamuelGauthier/iphito | 83cbcc9037965f5722aa39e7a7c13f0677264ff3 | [
"Unlicense"
] | null | null | null | /**
* @file Test_Canvas.cpp
* @brief Canvas tests
* @author Samuel Gauthier
* @version 1.0
* @date 2018-10-01
*/
#include <catch2/catch.hpp>
#include "renderer/Canvas.h"
using namespace iphito::renderer;
TEST_CASE("canvas size", "[Canvas]") {
Canvas c = Canvas(3, 4);
REQUIRE(c.getWidth() == 3);
REQ... | 17.45 | 38 | 0.633238 | SamuelGauthier |
9e6e73fc6cbae26db09a3e75a9b6a6ef5a392672 | 9,607 | cpp | C++ | native/cocos/core/assets/EffectAsset.cpp | SteveLau-GameDeveloper/engine | 159e5acd0f5115a878d59ed59f924ce7627a5466 | [
"Apache-2.0",
"MIT"
] | null | null | null | native/cocos/core/assets/EffectAsset.cpp | SteveLau-GameDeveloper/engine | 159e5acd0f5115a878d59ed59f924ce7627a5466 | [
"Apache-2.0",
"MIT"
] | null | null | null | native/cocos/core/assets/EffectAsset.cpp | SteveLau-GameDeveloper/engine | 159e5acd0f5115a878d59ed59f924ce7627a5466 | [
"Apache-2.0",
"MIT"
] | null | null | null | /****************************************************************************
Copyright (c) 2021 Xiamen Yaji Software Co., Ltd.
http://www.cocos.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwi... | 32.788396 | 179 | 0.583845 | SteveLau-GameDeveloper |
9e712b6e64acd223e26aa2dfc3413d35ddc4e1ad | 1,805 | hpp | C++ | include/tudocomp/ds/LCPFromPLCP.hpp | JZentgraf/tudocomp | 3a4522e3089716e4483b935e74aaae56cc547589 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/tudocomp/ds/LCPFromPLCP.hpp | JZentgraf/tudocomp | 3a4522e3089716e4483b935e74aaae56cc547589 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/tudocomp/ds/LCPFromPLCP.hpp | JZentgraf/tudocomp | 3a4522e3089716e4483b935e74aaae56cc547589 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #pragma once
#include <tudocomp/ds/TextDSFlags.hpp>
#include <tudocomp/ds/CompressMode.hpp>
#include <tudocomp/ds/ArrayDS.hpp>
#include <tudocomp_stat/StatPhase.hpp>
namespace tdc {
/// Constructs the LCP array using the Phi algorithm.
class LCPFromPLCP: public Algorithm, public ArrayDS {
private:
len_t m_max;
... | 24.391892 | 83 | 0.559003 | JZentgraf |
9e756972795e8e7a3568820395646115fc53a563 | 1,715 | cpp | C++ | A2/OmarLovesCandies.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | A2/OmarLovesCandies.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | A2/OmarLovesCandies.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cctype>
#include <vector>
#include <set>
#include <queue>
#include <map>
#include <stack>
#include <iostream>
#include <algorithm>
#include <iterator>
#include <string>
#include <cstring>
#include <sstream>
#include <cstdlib>
#include <locale>
#include <cmath>
#define scd(x) scanf("%d", &x)
... | 20.416667 | 66 | 0.566181 | MartinAparicioPons |
9e75a140787b5a9cdce94b4e4e9f20304a9a6d56 | 4,635 | hpp | C++ | Map2Cat.hpp | tbs1980/Map2Cat | 3a92fa0314ffb4c072cb0939f74017b78d8db64c | [
"MIT"
] | null | null | null | Map2Cat.hpp | tbs1980/Map2Cat | 3a92fa0314ffb4c072cb0939f74017b78d8db64c | [
"MIT"
] | null | null | null | Map2Cat.hpp | tbs1980/Map2Cat | 3a92fa0314ffb4c072cb0939f74017b78d8db64c | [
"MIT"
] | null | null | null | #ifndef MAP2CAT_HPP
#define MAP2CAT_HPP
#include <fstream>
#include <iostream>
#include <iomanip>
#include <exception>
#include <vector>
#include <cmath>
#include <cassert>
#include <random>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include <boost/log/trivial.hpp>
#includ... | 32.87234 | 113 | 0.633441 | tbs1980 |
9e792e43db0859b434aa5abd52581c5fd6df2fff | 502 | cc | C++ | ports/www/chromium-legacy/newport/files/patch-base_files_file__path__watcher__unittest.cc | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ports/www/chromium-legacy/newport/files/patch-base_files_file__path__watcher__unittest.cc | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ports/www/chromium-legacy/newport/files/patch-base_files_file__path__watcher__unittest.cc | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | --- base/files/file_path_watcher_unittest.cc.orig 2019-10-21 19:06:18 UTC
+++ base/files/file_path_watcher_unittest.cc
@@ -435,7 +435,7 @@ TEST_F(FilePathWatcherTest, WatchDirectory) {
VLOG(1) << "Waiting for file1 creation";
ASSERT_TRUE(WaitForEvents());
-#if !defined(OS_MACOSX)
+#if !defined(OS_MACOSX) && !de... | 41.833333 | 73 | 0.7251 | danielfojt |
9e7a0b87d8e92a6e863c8d4061cb0a71d8ce6437 | 1,302 | cpp | C++ | LiteCppDB/LiteCppDB.Console/InputCommand.cpp | pnadan/LiteCppDB | cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2 | [
"MIT"
] | 2 | 2019-07-18T06:30:33.000Z | 2020-01-23T17:40:36.000Z | LiteCppDB/LiteCppDB.Console/InputCommand.cpp | pnadan/LiteCppDB | cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2 | [
"MIT"
] | null | null | null | LiteCppDB/LiteCppDB.Console/InputCommand.cpp | pnadan/LiteCppDB | cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "InputCommand.h"
#include <iostream>
#include <string>
namespace LiteCppDB_Console
{
InputCommand::InputCommand() noexcept
{
this->mRunning = true;
}
InputCommand::~InputCommand()
{
}
InputCommand::InputCommand(const InputCommand& src) noexcept
{
this->mRunning = src.mRunni... | 16.481013 | 72 | 0.678955 | pnadan |
9e7e4b3387b9755107e8f92fe57920f1512f5321 | 592 | cc | C++ | cxx/general/dataforge.cc | Zelenyy/phd-code | d5b8bfefd2418a915dde89f7da2cb6683f438556 | [
"MIT"
] | null | null | null | cxx/general/dataforge.cc | Zelenyy/phd-code | d5b8bfefd2418a915dde89f7da2cb6683f438556 | [
"MIT"
] | null | null | null | cxx/general/dataforge.cc | Zelenyy/phd-code | d5b8bfefd2418a915dde89f7da2cb6683f438556 | [
"MIT"
] | null | null | null | //
// Created by zelenyy on 24.02.2020.
//
#include "dataforge/include/SimpleEnvelope.hh"
#include "dataforge/include/ArrayBinary.hh"
#include "dataforge/include/TaggedEnvelopeFormat.hh"
#include <iostream>
#include <vector>
int main(){
std::vector<double> data;
data.reserve(100);
for (int i=0; i<100; ++i){
... | 22.769231 | 52 | 0.677365 | Zelenyy |
9e87333ae060fa03008d297effd56104fce078d7 | 652 | cpp | C++ | iree/compiler/Dialect/Modules/VMVX/IR/VMVXTypes.cpp | kintel/iree | 7dbe1aea471e880327694ffbfc0b536f1e587f2c | [
"Apache-2.0"
] | 1,163 | 2019-09-13T19:10:42.000Z | 2022-03-31T05:44:10.000Z | compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXTypes.cpp | okkwon/iree | e32cc76952d37a14f73c8a7da889edf47fcc2fce | [
"Apache-2.0"
] | 3,346 | 2019-09-23T04:16:36.000Z | 2022-03-31T23:56:57.000Z | compiler/src/iree/compiler/Dialect/Modules/VMVX/IR/VMVXTypes.cpp | okkwon/iree | e32cc76952d37a14f73c8a7da889edf47fcc2fce | [
"Apache-2.0"
] | 311 | 2019-09-19T02:34:23.000Z | 2022-03-28T16:06:57.000Z | // Copyright 2021 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "iree/compiler/Dialect/Modules/VMVX/IR/VMVXTypes.h"
#include "llvm/ADT/StringExtras.h"
... | 26.08 | 72 | 0.756135 | kintel |
9e89c425a28b1b29cd4327619aff6fe2d9c56f25 | 228 | cpp | C++ | test/test_main.cpp | ciniml/umcache | 4b349e8be27b981e55446940db8fe16fab487bab | [
"BSL-1.0"
] | null | null | null | test/test_main.cpp | ciniml/umcache | 4b349e8be27b981e55446940db8fe16fab487bab | [
"BSL-1.0"
] | null | null | null | test/test_main.cpp | ciniml/umcache | 4b349e8be27b981e55446940db8fe16fab487bab | [
"BSL-1.0"
] | null | null | null | /**
* User mode cache using userfaultfd.
* Copyright(C) 2021 Kenta IDA
* SPDX: BSL-1.0
*/
#include <gtest/gtest.h>
int main(int argc, char* argv[])
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
} | 19 | 43 | 0.649123 | ciniml |
9e920998435b8e5d0e3d98efb5136ece79486649 | 13,535 | hpp | C++ | extern/stm32/rcc.hpp | Better-Idea/Mix-C | 71f34a5fc8c17a516cf99bc397289d046364a82e | [
"Apache-2.0"
] | 41 | 2019-09-24T02:17:34.000Z | 2022-01-18T03:14:46.000Z | extern/stm32/rcc.hpp | Better-Idea/Mix-C | 71f34a5fc8c17a516cf99bc397289d046364a82e | [
"Apache-2.0"
] | 2 | 2019-11-04T09:01:40.000Z | 2020-06-23T03:03:38.000Z | extern/stm32/rcc.hpp | Better-Idea/Mix-C | 71f34a5fc8c17a516cf99bc397289d046364a82e | [
"Apache-2.0"
] | 8 | 2019-09-24T02:17:35.000Z | 2021-09-11T00:21:03.000Z | #ifndef xpack_extern_stm32_rcc
#define xpack_extern_stm32_rcc
#pragma push_macro("xuser")
#undef xuser
#define xuser mixc::extern_stm32_rcc::inc
#include"extern/stm32/define.hpp"
#include"macro/xexport.hpp"
#include"meta/is_same.hpp"
#pragma pop_macro("xuser")
namespace mixc::extern_stm32_rcc{
// read/clear/enabl... | 30.97254 | 85 | 0.419209 | Better-Idea |
9e93ede0c89fef8f59a909fe00f0a2f6d571efea | 1,444 | cpp | C++ | src/dawn/core/math/Vec3i.cpp | greck2908/dawnengine | 74743077fea0140da67c9fd7dd0648098010fcc7 | [
"MIT"
] | 17 | 2015-12-05T12:38:12.000Z | 2019-06-06T09:18:46.000Z | src/dawn/core/math/Vec3i.cpp | greck2908/dawnengine | 74743077fea0140da67c9fd7dd0648098010fcc7 | [
"MIT"
] | 53 | 2015-12-04T01:58:53.000Z | 2019-03-14T22:52:23.000Z | src/dawn/core/math/Vec3i.cpp | greck2908/dawnengine | 74743077fea0140da67c9fd7dd0648098010fcc7 | [
"MIT"
] | 4 | 2016-03-07T11:50:20.000Z | 2018-11-18T16:52:19.000Z | /*
* Dawn Engine
* Written by David Avedissian (c) 2012-2019 (git@dga.dev)
*/
#include "Base.h"
#include "Vec3i.h"
namespace dw {
Vec3i::Vec3i() : x(0), y(0), z(0) {
}
Vec3i::Vec3i(int _x, int _y, int _z) : x(_x), y(_y), z(_z) {
}
Vec3i::Vec3i(const Vec3& v)
: x(static_cast<int>(v.x)), y(static_cast<int>(v.y... | 19.253333 | 84 | 0.57687 | greck2908 |
9e99f564944f9fc214e4f3acc87aa4a3cfa2b1ff | 802 | cpp | C++ | light.cpp | HanlinHu/Ray_tracing_in_C | 2848d7ffb25c357a02998441aa097ca8fbbeb12d | [
"MIT"
] | null | null | null | light.cpp | HanlinHu/Ray_tracing_in_C | 2848d7ffb25c357a02998441aa097ca8fbbeb12d | [
"MIT"
] | null | null | null | light.cpp | HanlinHu/Ray_tracing_in_C | 2848d7ffb25c357a02998441aa097ca8fbbeb12d | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include "entities.h"
#include "light.h"
void append_light(const light *X, light_node *list)
{
light_node tmp, newNode;
/* allocate the lnode */
newNode = (light_node)malloc(sizeof(struct lnode));
COPY_POINT3(newNode->element.position, X->position);
COPY_COLOR(newNode->e... | 17.434783 | 58 | 0.642145 | HanlinHu |
9e9a33555789c8254d45fb3424b9f67de3d2e5dc | 6,040 | cc | C++ | src/common/serializable.cc | MrKOSMOS/ANESE | 8ae814d615479b1496c98033a1f5bc4da5921c6f | [
"MIT"
] | 349 | 2017-11-15T22:51:00.000Z | 2022-03-21T13:43:57.000Z | src/common/serializable.cc | MrKOSMOS/ANESE | 8ae814d615479b1496c98033a1f5bc4da5921c6f | [
"MIT"
] | 12 | 2018-08-28T21:38:29.000Z | 2021-12-11T16:24:36.000Z | src/common/serializable.cc | MrKOSMOS/ANESE | 8ae814d615479b1496c98033a1f5bc4da5921c6f | [
"MIT"
] | 28 | 2018-06-10T07:31:13.000Z | 2022-03-21T10:54:26.000Z | #include "serializable.h"
// #define fprintf(...) // disable spam
/*---------- Serializable Chunk Implementation ----------*/
Serializable::Chunk::~Chunk() {
delete this->data;
delete this->next;
}
Serializable::Chunk::Chunk() {
this->len = 0;
this->data = nullptr;
this->next = nullptr;
}
Serializable:... | 26.844444 | 81 | 0.588907 | MrKOSMOS |
9e9bb88c61534ee26bb7229d50f1c31845f82238 | 3,815 | cpp | C++ | src/FalconEngine/Graphics/Renderer/Primitive.cpp | LiuYiZhou95/FalconEngine | b798f20e9dbd01334a4e4cdbbd9a5bec74966418 | [
"MIT"
] | null | null | null | src/FalconEngine/Graphics/Renderer/Primitive.cpp | LiuYiZhou95/FalconEngine | b798f20e9dbd01334a4e4cdbbd9a5bec74966418 | [
"MIT"
] | null | null | null | src/FalconEngine/Graphics/Renderer/Primitive.cpp | LiuYiZhou95/FalconEngine | b798f20e9dbd01334a4e4cdbbd9a5bec74966418 | [
"MIT"
] | 1 | 2021-08-25T07:39:02.000Z | 2021-08-25T07:39:02.000Z | #include <FalconEngine/Graphics/Renderer/Primitive.h>
#include <FalconEngine/Graphics/Renderer/Resource/IndexBuffer.h>
#include <FalconEngine/Graphics/Renderer/Resource/VertexBuffer.h>
#include <FalconEngine/Graphics/Renderer/Resource/VertexGroup.h>
namespace FalconEngine
{
/******************************************... | 25.264901 | 92 | 0.494364 | LiuYiZhou95 |
9e9edb843b800c557c89644a57caae00bdcd40e2 | 59 | cpp | C++ | DeviceCode/pal/Buttons/GPIO_Buttons_fastcompile.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 529 | 2015-03-10T00:17:45.000Z | 2022-03-17T02:21:19.000Z | DeviceCode/pal/Buttons/GPIO_Buttons_fastcompile.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 495 | 2015-03-10T22:02:46.000Z | 2019-05-16T13:05:00.000Z | DeviceCode/pal/Buttons/GPIO_Buttons_fastcompile.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 332 | 2015-03-10T08:04:36.000Z | 2022-03-29T04:18:36.000Z | #include "GPIO_Buttons.cpp"
#include "GPIO_config.cpp"
| 14.75 | 28 | 0.728814 | PervasiveDigital |
9ea153f76375eb317aa355648929cc82582d02dd | 4,685 | cpp | C++ | runtime/src/sort.cpp | lezsakdomi/jscomp | 83828441cb38ec96603a6a60be06977d4852940a | [
"Apache-2.0"
] | 220 | 2015-07-22T03:18:03.000Z | 2022-03-19T07:26:26.000Z | runtime/src/sort.cpp | lezsakdomi/jscomp | 83828441cb38ec96603a6a60be06977d4852940a | [
"Apache-2.0"
] | 31 | 2015-06-17T14:20:21.000Z | 2018-10-14T12:58:41.000Z | runtime/src/sort.cpp | lezsakdomi/jscomp | 83828441cb38ec96603a6a60be06977d4852940a | [
"Apache-2.0"
] | 13 | 2015-09-16T16:07:45.000Z | 2021-02-06T19:44:04.000Z | // Copyright (c) 2015 Tzvetan Mikov.
// Licensed under the Apache License v2.0. See LICENSE in the project
// root for complete license information.
#include "jsc/sort.h"
namespace js {
void selectionSort (StackFrame * caller, IExchangeSortCB * cb, uint32_t begin, uint32_t end)
{
if (end == begin)
return... | 26.468927 | 112 | 0.517609 | lezsakdomi |
9ea3b2da88211e4df5fb7fd1a2ea95f042944f9b | 6,004 | cpp | C++ | tests/pool.cpp | corentinberge/dynamic-graph | 89b3ab9cbac71daaa2eddb75947299270868a31b | [
"BSD-2-Clause"
] | 1 | 2019-07-01T07:49:35.000Z | 2019-07-01T07:49:35.000Z | tests/pool.cpp | corentinberge/dynamic-graph | 89b3ab9cbac71daaa2eddb75947299270868a31b | [
"BSD-2-Clause"
] | null | null | null | tests/pool.cpp | corentinberge/dynamic-graph | 89b3ab9cbac71daaa2eddb75947299270868a31b | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2010 Thomas Moulard.
//
#include <sstream>
#include <iostream>
#include <dynamic-graph/entity.h>
#include <dynamic-graph/factory.h>
#include <dynamic-graph/exception-factory.h>
#include <dynamic-graph/pool.h>
#include <dynamic-graph/signal-ptr.h>
#include <dynamic-graph/signal-time-dependent.h>
#define B... | 29.287805 | 113 | 0.69437 | corentinberge |
9ea6a1d44f7ccf69ab6b8394a48fefdb088d2877 | 1,525 | cpp | C++ | datasets/github_cpp_10/10/116.cpp | yijunyu/demo-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | 1 | 2019-05-03T19:27:45.000Z | 2019-05-03T19:27:45.000Z | datasets/github_cpp_10/10/116.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null | datasets/github_cpp_10/10/116.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include <vector>
#include <utility>
using namespace std;
int min_dist(string word1, string word2) {
std::vector<std::vector<int>> arr;
arr.resize(word1.size());
for (auto& item : arr)
{
item.resize(word2.size());
}
if (word1[0] == word2[0])
{
arr[0][0... | 21.478873 | 92 | 0.403934 | yijunyu |
9eaa844764ff9068d854a8e6e7b83a01f3bed63f | 17,635 | cpp | C++ | tools/DeCoSTAR_01042020/source/MyCladesAndTripartitions.cpp | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | 2 | 2021-08-24T16:03:30.000Z | 2022-03-18T14:52:43.000Z | tools/DeCoSTAR_01042020/source/MyCladesAndTripartitions.cpp | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | null | null | null | tools/DeCoSTAR_01042020/source/MyCladesAndTripartitions.cpp | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | null | null | null | /*
Copyright or © or Copr. CNRS
This software is a computer program whose purpose is to estimate
phylogenies and evolutionary parameters from a dataset according to
the maximum likelihood principle.
This software is governed by the CeCILL license under French law and
abiding by the rules of distribution of free soft... | 28.443548 | 244 | 0.707343 | danydoerr |
9eac9905161f18dc3a4e190a59c24a24634730c3 | 1,902 | cpp | C++ | Real-Time Corruptor/BizHawk_RTC/libgambatte/src/interrupter.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 45 | 2017-07-24T05:31:06.000Z | 2019-03-29T12:23:57.000Z | Real-Time Corruptor/BizHawk_RTC/libgambatte/src/interrupter.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 7 | 2019-01-14T14:46:46.000Z | 2019-01-25T20:57:05.000Z | Real-Time Corruptor/BizHawk_RTC/libgambatte/src/interrupter.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 10 | 2017-07-24T02:11:43.000Z | 2018-12-27T20:49:37.000Z | /***************************************************************************
* Copyright (C) 2007 by Sindre Aamås *
* aamas@stud.ntnu.no *
* *
* This pr... | 44.232558 | 106 | 0.476341 | redscientistlabs |
9eb2c54062d4af7fb20fc56ec332c1e8523b8d3c | 955 | cpp | C++ | src/view/codeeditor/keybehavior/abstractkeybehavior.cpp | Tatsu015/markdownmindmap | 93e305c04d3adb59073612a5843579d5ce11c79e | [
"MIT"
] | null | null | null | src/view/codeeditor/keybehavior/abstractkeybehavior.cpp | Tatsu015/markdownmindmap | 93e305c04d3adb59073612a5843579d5ce11c79e | [
"MIT"
] | 1 | 2022-01-18T16:10:11.000Z | 2022-01-18T16:11:33.000Z | src/view/codeeditor/keybehavior/abstractkeybehavior.cpp | Tatsu015/markdownmindmap | 93e305c04d3adb59073612a5843579d5ce11c79e | [
"MIT"
] | null | null | null | #include "abstractkeybehavior.h"
#include <QKeyEvent>
AbstractKeyBehavior::AbstractKeyBehavior() {
}
AbstractKeyBehavior::~AbstractKeyBehavior() {
}
void AbstractKeyBehavior::keyPressEvent(CodeEditor* codeEditor, QKeyEvent* event) {
if (event->modifiers() == Qt::NoModifier) {
noModifierKeyPressEvent(codeEditor... | 28.088235 | 83 | 0.762304 | Tatsu015 |
9eb3253e79fd27c7d9e2cf616af6e5a7751dd9ae | 3,778 | cpp | C++ | src/PixelpartPluginCurve.cpp | soeren-m/pixelpart-plugin-unity | 622dab395e04bb5c44ab170f6d399b241cd0557e | [
"MIT"
] | 1 | 2022-03-22T09:21:22.000Z | 2022-03-22T09:21:22.000Z | src/PixelpartPluginCurve.cpp | soeren-m/pixelpart-plugin-unity | 622dab395e04bb5c44ab170f6d399b241cd0557e | [
"MIT"
] | null | null | null | src/PixelpartPluginCurve.cpp | soeren-m/pixelpart-plugin-unity | 622dab395e04bb5c44ab170f6d399b241cd0557e | [
"MIT"
] | null | null | null | #include "PixelpartPlugin.h"
extern "C" {
UNITY_INTERFACE_EXPORT float UNITY_INTERFACE_API PixelpartCurveGet(pixelpart::Curve<pixelpart::floatd>* curve, float position) {
if(!curve) {
return 0.0f;
}
return static_cast<float>(curve->get(position));
}
UNITY_INTERFACE_EXPORT float UNITY_INTERFACE_API PixelpartCurv... | 27.179856 | 147 | 0.766278 | soeren-m |
9eb439ffcc10306fbb31659c82087836961da1aa | 70 | hpp | C++ | other/Renegade Ops/dxgi/FakeProcessAffinityMask/game.hpp | gibbed/Gibbed.Avalanche | 549c7a7fa902c5b4d180847ad6f11867d4281398 | [
"Zlib"
] | 2 | 2020-02-08T02:50:41.000Z | 2020-12-14T05:36:58.000Z | other/Renegade Ops/dxgi/FakeProcessAffinityMask/game.hpp | MerkeX/Gibbed.Avalanche | 549c7a7fa902c5b4d180847ad6f11867d4281398 | [
"Zlib"
] | null | null | null | other/Renegade Ops/dxgi/FakeProcessAffinityMask/game.hpp | MerkeX/Gibbed.Avalanche | 549c7a7fa902c5b4d180847ad6f11867d4281398 | [
"Zlib"
] | 3 | 2018-12-05T12:15:11.000Z | 2021-06-16T01:17:28.000Z | #ifndef __GAME_HPP
#define __GAME_HPP
bool GameHook();
#endif
| 10 | 19 | 0.7 | gibbed |
9eb565915ecb429d535bcdc5471c621a41981670 | 13,577 | cpp | C++ | wheelemulator.cpp | andresviikmaa/Robotiina | 985de6e2afa159d7420b8a5f94d87d3a66fb3c17 | [
"MIT"
] | 1 | 2016-03-18T08:19:38.000Z | 2016-03-18T08:19:38.000Z | wheelemulator.cpp | andresviikmaa/Robotiina | 985de6e2afa159d7420b8a5f94d87d3a66fb3c17 | [
"MIT"
] | null | null | null | wheelemulator.cpp | andresviikmaa/Robotiina | 985de6e2afa159d7420b8a5f94d87d3a66fb3c17 | [
"MIT"
] | null | null | null |
#include "wheelemulator.h"
#include <boost/property_tree/ini_parser.hpp>
#include <boost/thread/thread.hpp>
#include <sstream>
#include <stdio.h>
#include <algorithm> // std::min
#include <opencv2/opencv.hpp>
WheelEmulator::WheelEmulator(const std::string &name, boost::asio::io_service &io_service, std::string por... | 25.520677 | 132 | 0.565663 | andresviikmaa |
9eb6ff3c29fcea8631076bb4a163d2f1699ec8d2 | 2,602 | cpp | C++ | CppP4rhSln/13/old/plain-ptr.cpp | blacop/CppPR | a76574ee83000d898d989aab96eac4ac746244fa | [
"MIT"
] | null | null | null | CppP4rhSln/13/old/plain-ptr.cpp | blacop/CppPR | a76574ee83000d898d989aab96eac4ac746244fa | [
"MIT"
] | null | null | null | CppP4rhSln/13/old/plain-ptr.cpp | blacop/CppPR | a76574ee83000d898d989aab96eac4ac746244fa | [
"MIT"
] | null | null | null | #include <iostream>
using std::ostream; using std::cout; using std::endl;
#include <string>
// class that has a pointer member that behaves like a plain pointer
class HasPtr {
public:
friend ostream& operator<<(ostream&, const HasPtr&);
// copy of the values we're given
HasPtr(int *p, int i): ptr(p), val(i... | 27.389474 | 87 | 0.615296 | blacop |
9eb84bc7df8f51591d3ef018e2bb494cb23f71e0 | 5,105 | cpp | C++ | polygon3D.cpp | degarashi/boomstick | 55dc5bfcfad6119d8401f578f91df7bbd44c192b | [
"MIT"
] | 1 | 2015-06-14T15:54:27.000Z | 2015-06-14T15:54:27.000Z | polygon3D.cpp | degarashi/boomstick | 55dc5bfcfad6119d8401f578f91df7bbd44c192b | [
"MIT"
] | null | null | null | polygon3D.cpp | degarashi/boomstick | 55dc5bfcfad6119d8401f578f91df7bbd44c192b | [
"MIT"
] | null | null | null | #include "convex.hpp"
namespace boom {
namespace geo3d {
Polygon::Polygon() {}
Polygon::Polygon(const Vec3* vsrc) {
init(vsrc);
}
Polygon::Polygon(const Vec3& v0, const Vec3& v1, const Vec3& v2) {
init(v0, v1, v2);
}
void Polygon::setUserData(uint32_t dat) {
_ud = dat;
}
uint32_t Polygon::get... | 26.868421 | 86 | 0.588834 | degarashi |
9eb9ad20a51c3b259b6c9f35e09e25dea22e6ac4 | 4,265 | cpp | C++ | libwarpsharp/src/IntegerKernel.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 11 | 2018-11-10T11:14:11.000Z | 2021-12-27T17:17:08.000Z | libwarpsharp/src/IntegerKernel.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 27 | 2018-11-11T00:06:25.000Z | 2021-06-24T06:43:38.000Z | libwarpsharp/src/IntegerKernel.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 7 | 2018-11-10T20:32:49.000Z | 2021-03-15T18:03:42.000Z | // IntegerKernel.cpp
#include <stdio.h>
#include "support.h"
#include "Gray8Image.h"
#include "IntegerKernel.h"
using std::cerr;
// constructor
IntegerKernel::IntegerKernel(kernel_func function, int32 radius, bool horizontal)
: fElement(NULL),
fDiameter(0),
fHorizontal(horizontal),
fSymetry(KERNEL_SYMET... | 23.826816 | 81 | 0.52544 | waddlesplash |
9ebd6392b746f97cf6ff5e91845f08d3fb0828ee | 223 | cpp | C++ | path_tracking/stanley_controller/test/main.cpp | nvdpsingh/cpp_robotics | 1ec80f16cd93abe2ff197f646a06a3ad9ef13dbd | [
"MIT"
] | 57 | 2019-07-02T00:58:48.000Z | 2022-02-20T03:13:28.000Z | path_tracking/stanley_controller/test/main.cpp | leoandersoon/cpp_robotics | b667074485117ffd68f54c3fd867a3c5f510edd9 | [
"MIT"
] | null | null | null | path_tracking/stanley_controller/test/main.cpp | leoandersoon/cpp_robotics | b667074485117ffd68f54c3fd867a3c5f510edd9 | [
"MIT"
] | 28 | 2019-07-02T02:00:26.000Z | 2022-02-28T16:42:35.000Z | #include <iostream>
#include "stanley_controller.hpp"
int main() {
std::cout << "Hello, World!" << std::endl;
cpp_robotics::path_tracking::stanley_controller::StanleyController sc;
sc.test();
return 0;
} | 18.583333 | 74 | 0.668161 | nvdpsingh |
9ec1025a10bc9df14eb3f137515cc8e62e6108c8 | 2,504 | cpp | C++ | app/ChooseAddTargetDialog.cpp | Toysoft/ciderpress | 640959dad551ba75a48bd3c49629579730ead351 | [
"BSD-3-Clause"
] | 84 | 2015-01-01T00:27:18.000Z | 2022-03-28T22:55:56.000Z | app/ChooseAddTargetDialog.cpp | Toysoft/ciderpress | 640959dad551ba75a48bd3c49629579730ead351 | [
"BSD-3-Clause"
] | 49 | 2015-01-11T19:58:57.000Z | 2022-01-08T00:27:12.000Z | app/ChooseAddTargetDialog.cpp | Toysoft/ciderpress | 640959dad551ba75a48bd3c49629579730ead351 | [
"BSD-3-Clause"
] | 19 | 2015-06-06T15:23:18.000Z | 2022-01-12T23:26:43.000Z | /*
* CiderPress
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
* See the file LICENSE for distribution terms.
*/
/*
* Functions for the ChooseAddTarget dialog box.
*/
#include "StdAfx.h"
#include "ChooseAddTargetDialog.h"
#include "DiskFSTree.h"
using namespace DiskImgLib;
BEGIN_ME... | 29.116279 | 79 | 0.607827 | Toysoft |
9ec751721ee776c12ce8506a1656d35523d28eab | 3,512 | cpp | C++ | source/world/nodes/Node.cpp | RaygenGroup/kaleido | e4648c3f4ba88a1aae942fdd854b32142e35fb78 | [
"MIT"
] | 4 | 2021-01-28T07:39:53.000Z | 2022-01-17T14:02:13.000Z | source/world/nodes/Node.cpp | RaygenEngine/Kaleido | e4648c3f4ba88a1aae942fdd854b32142e35fb78 | [
"MIT"
] | null | null | null | source/world/nodes/Node.cpp | RaygenEngine/Kaleido | e4648c3f4ba88a1aae942fdd854b32142e35fb78 | [
"MIT"
] | null | null | null | #include "pch/pch.h"
#include "world/nodes/Node.h"
#include "asset/util/ParsingAux.h"
#include "asset/AssetManager.h"
#include "reflection/ReflectionTools.h"
#include "world/World.h"
#include "core/MathAux.h"
#include <glm/gtx/matrix_decompose.hpp>
RootNode* Node::GetWorldRoot() const
{
return Engine::GetWorld()->G... | 23.891156 | 109 | 0.758257 | RaygenGroup |
9eca5a1f63d4545c8fdf6f44c02c7aa2852a27dc | 1,794 | cpp | C++ | src/tests-core/tests/prototype/sample_suite.cpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2021-07-30T16:54:24.000Z | 2021-09-08T15:48:17.000Z | src/tests-core/tests/prototype/sample_suite.cpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | null | null | null | src/tests-core/tests/prototype/sample_suite.cpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2020-03-14T15:15:25.000Z | 2020-06-15T11:26:56.000Z |
// Copyright 2013 Victor Smirnov
//
// 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... | 23.298701 | 75 | 0.69621 | victor-smirnov |
9ecb3958d229db604248fc58cc88c60492410154 | 4,823 | hxx | C++ | opencascade/MAT_Graph.hxx | valgur/OCP | 2f7d9da73a08e4ffe80883614aedacb27351134f | [
"Apache-2.0"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | opencascade/MAT_Graph.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 66 | 2019-12-20T16:07:36.000Z | 2022-03-15T21:56:10.000Z | opencascade/MAT_Graph.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | // Created on: 1993-04-29
// Created by: Yves FRICAUD
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU L... | 33.493056 | 300 | 0.750985 | valgur |
9ecc879c8ce38f6b9b10e646b5a908af8745e8fb | 517 | hpp | C++ | Axis.CommonLibrary/domain/fwd/numerical_model.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.CommonLibrary/domain/fwd/numerical_model.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.CommonLibrary/domain/fwd/numerical_model.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #pragma once
/*
Forward declaration generally required when manipulating the numerical model.
*/
namespace axis { namespace domain {
namespace analyses {
class NumericalModel;
class ModelKinematics;
class ModelDynamics;
} // namespace analyses
namespace elements {
class Node;
class DoF;
class FiniteElement;
} // n... | 17.233333 | 77 | 0.779497 | renato-yuzup |
19b2c011bb5acff263702c20ff31c30de367f8c2 | 6,455 | cpp | C++ | Demos/VerveTutorialBase/source/Verve/VActor/Humanoid/VHumanoidActor.cpp | AnteSim/Verve | 22a55d182f86e3d7684fdc52f628ca57837cac8a | [
"MIT"
] | 1 | 2021-01-02T09:17:18.000Z | 2021-01-02T09:17:18.000Z | Templates/Verve/source/Verve/VActor/Humanoid/VHumanoidActor.cpp | AnteSim/Verve | 22a55d182f86e3d7684fdc52f628ca57837cac8a | [
"MIT"
] | null | null | null | Templates/Verve/source/Verve/VActor/Humanoid/VHumanoidActor.cpp | AnteSim/Verve | 22a55d182f86e3d7684fdc52f628ca57837cac8a | [
"MIT"
] | 4 | 2015-05-16T17:35:07.000Z | 2021-01-02T09:17:26.000Z | //-----------------------------------------------------------------------------
// Verve
// Copyright (C) - Violent Tulip
//-----------------------------------------------------------------------------
#include "VHumanoidActor.h"
#include "core/stream/bitStream.h"
//--------------------------------------------------... | 26.673554 | 105 | 0.41828 | AnteSim |
19b2e55e7fb205304eea477f1f151684e45a45be | 4,070 | cpp | C++ | src/Event.cpp | borisblizzard/aprilui | 1a8d7d10b215940d5143c1fd8ca59df34802f19f | [
"BSD-3-Clause"
] | null | null | null | src/Event.cpp | borisblizzard/aprilui | 1a8d7d10b215940d5143c1fd8ca59df34802f19f | [
"BSD-3-Clause"
] | null | null | null | src/Event.cpp | borisblizzard/aprilui | 1a8d7d10b215940d5143c1fd8ca59df34802f19f | [
"BSD-3-Clause"
] | null | null | null | /// @file
/// @version 5.1
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause
#include <hltypes/hlog.h>
#include <hltypes/hstring.h>
#include "aprilui.h"
#include "Event.h"
#def... | 33.360656 | 86 | 0.766339 | borisblizzard |
19b4e84fae7cd9b67b331c4288ca3f0ecb6965c2 | 1,114 | cpp | C++ | platforms/gfg/0000_boundary_traversal_of_binary_tree.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | 2 | 2020-09-17T09:04:00.000Z | 2020-11-20T19:43:18.000Z | platforms/gfg/0000_boundary_traversal_of_binary_tree.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | platforms/gfg/0000_boundary_traversal_of_binary_tree.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | #include "../../template.hpp"
ostream& operator<<(ostream& os, Node* root) { print_inorder(root); return os; }
void go_left(Node* root) {
if (not root) return;
if (not root->left and not root->right) return;
cout << root->value << ' ';
go_left(root->left);
}
void go_right(Node* root) {
if (not ro... | 25.318182 | 80 | 0.599641 | idfumg |
19b4ea4abff43abd9f3ae2cea240b2b94596cc12 | 265,414 | cpp | C++ | src/base/ex_eval.cpp | dufferprog/verbexx | bfc3c30ad2ca6c246c8f88405b386475278f9ecc | [
"MIT"
] | null | null | null | src/base/ex_eval.cpp | dufferprog/verbexx | bfc3c30ad2ca6c246c8f88405b386475278f9ecc | [
"MIT"
] | 1 | 2018-09-14T00:07:27.000Z | 2018-09-14T00:07:27.000Z | src/base/ex_eval.cpp | dufferprog/verbexx | bfc3c30ad2ca6c246c8f88405b386475278f9ecc | [
"MIT"
] | 1 | 2018-09-13T23:43:12.000Z | 2018-09-13T23:43:12.000Z | // ex_eval.cpp
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////... | 64.04778 | 292 | 0.379234 | dufferprog |
19b625f3e035e438063835cbbb28712a695c16b1 | 505 | cpp | C++ | GraphGenerator/Testfiles/classes_simple.cpp | krystalsavv/Architecture-Mining | da47474f90bfb928ee65967610cb5ebb22057bb1 | [
"MIT"
] | 2 | 2021-03-31T19:14:51.000Z | 2021-07-16T12:27:09.000Z | GraphGenerator/Testfiles/classes_simple.cpp | krystalsavv/Architecture-Mining | da47474f90bfb928ee65967610cb5ebb22057bb1 | [
"MIT"
] | null | null | null | GraphGenerator/Testfiles/classes_simple.cpp | krystalsavv/Architecture-Mining | da47474f90bfb928ee65967610cb5ebb22057bb1 | [
"MIT"
] | null | null | null | /*
Classes
Namespaces
Inheritence
*/
namespace CS{
namespace CS_1{
class class_X;
class class_B;
class class_B {class_B* b;};
class class_A { class_B b;};
struct struct_S {};
class class_X : public class_A, class_B {};
}
}
namespace N_2 {
class class_A{};
}
using n... | 14.852941 | 48 | 0.60198 | krystalsavv |
19b7effe9bb367eb5344e2667e1d3bae1676946c | 4,254 | cpp | C++ | Tools/MultiThreading/MultiThreads/Thread_message/Thread_messageDlg.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | 5 | 2019-09-17T09:12:15.000Z | 2021-05-29T10:54:39.000Z | Tools/MultiThreading/MultiThreads/Thread_message/Thread_messageDlg.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | null | null | null | Tools/MultiThreading/MultiThreads/Thread_message/Thread_messageDlg.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | 2 | 2021-07-26T06:36:12.000Z | 2022-01-23T15:20:30.000Z |
// Thread_messageDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Thread_message.h"
#include "Thread_messageDlg.h"
#include "afxdialogex.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CAboutDlg dialog used for App About
class CAboutDlg : public CDialogEx
{
public:
CAboutDlg();
// Dialog Data
en... | 22.041451 | 90 | 0.747532 | liangjisheng |
19b8212fc9e15dfbcddd0db48b11142eb8f30504 | 1,960 | cpp | C++ | Detector/Classifier.cpp | goddoe/Learner | c499adda2f341003c6a3ec35bf41f2ca05c98833 | [
"MIT"
] | 4 | 2016-05-19T08:40:43.000Z | 2018-04-08T14:25:17.000Z | Detector/Classifier.cpp | goddoe/Learner | c499adda2f341003c6a3ec35bf41f2ca05c98833 | [
"MIT"
] | null | null | null | Detector/Classifier.cpp | goddoe/Learner | c499adda2f341003c6a3ec35bf41f2ca05c98833 | [
"MIT"
] | null | null | null | // Author : Sung-ju Kim
// Email : goddoe2@gmail.com
// github : https://github.com/goddoe
// The MIT License (MIT)
// Copyright (c) 2016 Sung-ju Kim
#include "Classifier.h"
using namespace cv;
namespace CRVL
{
////////////////////////////////////////////////////////////////////////// /////////////////... | 25.454545 | 151 | 0.433163 | goddoe |
19c05d49bd2be73577bc76f88ad3dcf40e86c480 | 3,537 | hpp | C++ | library/src/main/jni/openslmediaplayer-jni/include/OpenSLMediaPlayerJNIBinder.hpp | cirnoftw/android-openslmediaplayer | 6b363282dd0ac19bcb4e8ce52a4cb7bf35c58583 | [
"Apache-2.0"
] | 435 | 2015-01-16T14:36:07.000Z | 2022-02-11T02:32:19.000Z | library/src/main/jni/openslmediaplayer-jni/include/OpenSLMediaPlayerJNIBinder.hpp | cirnoftw/android-openslmediaplayer | 6b363282dd0ac19bcb4e8ce52a4cb7bf35c58583 | [
"Apache-2.0"
] | 59 | 2015-02-12T22:21:49.000Z | 2021-06-16T11:48:15.000Z | library/src/main/jni/openslmediaplayer-jni/include/OpenSLMediaPlayerJNIBinder.hpp | cirnoftw/android-openslmediaplayer | 6b363282dd0ac19bcb4e8ce52a4cb7bf35c58583 | [
"Apache-2.0"
] | 104 | 2015-01-16T14:36:07.000Z | 2021-05-24T03:32:54.000Z | //
// Copyright (C) 2014 Haruki Hasegawa
//
// 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 ap... | 40.655172 | 96 | 0.723777 | cirnoftw |
19c05fb369728c69e2124569dc65a833c34d4bb3 | 3,610 | cpp | C++ | kernel/source/font/TrueType/TableLoca.cpp | Hydrorastaman/PDFOut-SDK | 329e08068f96c1623493ed4ddb292a333f668762 | [
"MIT"
] | 4 | 2021-03-23T15:04:08.000Z | 2021-08-28T08:08:14.000Z | kernel/source/font/TrueType/TableLoca.cpp | Hydrorastaman/PDFOut-SDK | 329e08068f96c1623493ed4ddb292a333f668762 | [
"MIT"
] | null | null | null | kernel/source/font/TrueType/TableLoca.cpp | Hydrorastaman/PDFOut-SDK | 329e08068f96c1623493ed4ddb292a333f668762 | [
"MIT"
] | null | null | null | #include <font/TrueType/TableLoca.h>
#include <map>
#include <memory>
#include <vector>
#include <algorithm>
#include <Exception.h>
#include <font/TrueType/TableDttf.h>
#include <font/TrueType/SimpleGlyph.h>
#include <font/TrueType/CompoundGlyph.h>
#undef min
#undef max
namespace kernel{ namespace fo... | 28.203125 | 99 | 0.622992 | Hydrorastaman |
19c488e72d0da13d0c145c5f8d6899ee126b5f45 | 2,133 | cpp | C++ | librf/src/mutex_v1.cpp | HungMingWu/librf | d3c568ca8c717e6e6d9607aee55e3da219a33c1e | [
"Apache-2.0"
] | null | null | null | librf/src/mutex_v1.cpp | HungMingWu/librf | d3c568ca8c717e6e6d9607aee55e3da219a33c1e | [
"Apache-2.0"
] | null | null | null | librf/src/mutex_v1.cpp | HungMingWu/librf | d3c568ca8c717e6e6d9607aee55e3da219a33c1e | [
"Apache-2.0"
] | null | null | null | #include "../librf.h"
namespace resumef
{
namespace detail
{
mutex_impl::mutex_impl()
{
}
void mutex_impl::unlock()
{
std::scoped_lock lock_(this->_lock);
if (_owner != nullptr)
{
for (auto iter = _awakes.begin(); iter != _awakes.end(); )
{
auto awaker = *iter;
iter = _awakes.... | 16.534884 | 80 | 0.604313 | HungMingWu |
19c7f9f9d5c6a6f83e31670ed9696acdd4d9be52 | 2,516 | cpp | C++ | vox_nav_pose_navigator/src/behavior_tree.cpp | NMBURobotics/vox_nav | 7d71c97166ce57680bf2e637cca7c745d55b045a | [
"Apache-2.0"
] | 47 | 2021-06-03T08:46:51.000Z | 2022-03-31T08:07:09.000Z | vox_nav_pose_navigator/src/behavior_tree.cpp | BADAL244/vox_nav | cd88c8a921feed65a92355d6246cf6cb8dd27939 | [
"Apache-2.0"
] | 6 | 2021-06-06T01:17:38.000Z | 2022-01-06T10:01:53.000Z | vox_nav_pose_navigator/src/behavior_tree.cpp | BADAL244/vox_nav | cd88c8a921feed65a92355d6246cf6cb8dd27939 | [
"Apache-2.0"
] | 10 | 2021-06-03T08:46:53.000Z | 2022-03-04T00:57:51.000Z | // Copyright (c) 2019 Intel Corporation
//
// 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 agr... | 31.061728 | 88 | 0.703498 | NMBURobotics |
19c940869c24b2de99f6fc0dc97d39bb6d2e7226 | 749 | cpp | C++ | 1-introduction/p097-05_imperial_lenght_to_metric.cpp | mohsend/Magnificent-University-projects | 4b0f9df939a60ace45eeccb331db85af77d83ee9 | [
"MIT"
] | null | null | null | 1-introduction/p097-05_imperial_lenght_to_metric.cpp | mohsend/Magnificent-University-projects | 4b0f9df939a60ace45eeccb331db85af77d83ee9 | [
"MIT"
] | null | null | null | 1-introduction/p097-05_imperial_lenght_to_metric.cpp | mohsend/Magnificent-University-projects | 4b0f9df939a60ace45eeccb331db85af77d83ee9 | [
"MIT"
] | null | null | null | // imperial_lenght_to_metric.cpp : Defines the entry point for the console application.
// pgae 95 - 5
#include <iostream>
using namespace std;
int main()
{
double input_imperial();
double converter(double);
void print(double);
print(converter(input_imperial()));
cin.ignore();
cin.get();
re... | 18.725 | 115 | 0.634179 | mohsend |
19dbfc0af25a42fb649879c625548d8f6b216beb | 1,598 | cpp | C++ | npy/NHybridMesher.cpp | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 11 | 2020-07-05T02:39:32.000Z | 2022-03-20T18:52:44.000Z | npy/NHybridMesher.cpp | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | null | null | null | npy/NHybridMesher.cpp | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 4 | 2020-09-03T20:36:32.000Z | 2022-01-19T07:42:21.000Z | /*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... | 21.890411 | 89 | 0.705257 | hanswenzel |
19dce13e71b38a04167159f062cde3aefb19f6d5 | 1,836 | hpp | C++ | compiler/tools/fpp-to-cpp/test/top/HealthTopologyAc.ref.hpp | LeStarch/fpp | 1894719f37daf7081e31b624d197ff5b7c52ef91 | [
"Apache-2.0"
] | null | null | null | compiler/tools/fpp-to-cpp/test/top/HealthTopologyAc.ref.hpp | LeStarch/fpp | 1894719f37daf7081e31b624d197ff5b7c52ef91 | [
"Apache-2.0"
] | null | null | null | compiler/tools/fpp-to-cpp/test/top/HealthTopologyAc.ref.hpp | LeStarch/fpp | 1894719f37daf7081e31b624d197ff5b7c52ef91 | [
"Apache-2.0"
] | null | null | null | // ======================================================================
// \title HealthTopologyAc.hpp
// \author Generated by fpp-to-cpp
// \brief hpp file for Health topology
// ======================================================================
#ifndef M_HealthTopologyAc_HPP
#define M_HealthTopologyAc_HPP
#... | 22.666667 | 75 | 0.370915 | LeStarch |
19dd748b5ed4ae157cf512f115218db8cee43f5f | 250 | cxx | C++ | source/code/icelib/private/output/elements/alias.cxx | iceshard-engine/code-emitter | b86eda2bc0cbdc4302fb4b03ce012ca2a0f3aeea | [
"BSD-3-Clause-Clear"
] | null | null | null | source/code/icelib/private/output/elements/alias.cxx | iceshard-engine/code-emitter | b86eda2bc0cbdc4302fb4b03ce012ca2a0f3aeea | [
"BSD-3-Clause-Clear"
] | 2 | 2019-09-30T05:20:37.000Z | 2019-10-10T19:18:59.000Z | source/code/icelib/private/output/elements/alias.cxx | iceshard-engine/code-emitter | b86eda2bc0cbdc4302fb4b03ce012ca2a0f3aeea | [
"BSD-3-Clause-Clear"
] | null | null | null | #include <ice/output/elements/alias.hxx>
namespace ice::output
{
template<>
auto identifier(Alias const& data) noexcept -> std::string
{
return { "alias:" + data.name + "{" + data.type + "}" };
}
} // namespace ice::output
| 19.230769 | 64 | 0.592 | iceshard-engine |
19e37a284ec00834886557f53a23cfb33b6480c8 | 604 | cpp | C++ | Longest Common Subsequence (DP)/main.cpp | AhmedAMorsy/Algorithms_ | 6f4b6d8a231e61e6e3d2289b7a42c6ef24224944 | [
"Unlicense"
] | null | null | null | Longest Common Subsequence (DP)/main.cpp | AhmedAMorsy/Algorithms_ | 6f4b6d8a231e61e6e3d2289b7a42c6ef24224944 | [
"Unlicense"
] | null | null | null | Longest Common Subsequence (DP)/main.cpp | AhmedAMorsy/Algorithms_ | 6f4b6d8a231e61e6e3d2289b7a42c6ef24224944 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
const int N=1005;
string a,b;
int mem[N][N];
int solve(int i,int j)
{
if(i==a.size()||j==b.size())
{
return 0;
}
if(mem[i][j]!=-1)
{
return mem[i][j];
}
if(a[i]==b[j])
{
return mem[i... | 15.1 | 42 | 0.478477 | AhmedAMorsy |
19e4dbe378a6c5ed210199c3f349e8f3ddb59976 | 1,155 | hpp | C++ | Mary-Lang/Utils/Memory.hpp | iamOgunyinka/Mary-Lang | 025584184764ca0ca501ee4da9266d54067284a8 | [
"MIT"
] | null | null | null | Mary-Lang/Utils/Memory.hpp | iamOgunyinka/Mary-Lang | 025584184764ca0ca501ee4da9266d54067284a8 | [
"MIT"
] | null | null | null | Mary-Lang/Utils/Memory.hpp | iamOgunyinka/Mary-Lang | 025584184764ca0ca501ee4da9266d54067284a8 | [
"MIT"
] | null | null | null | #include <memory>
namespace MaryLang
{
namespace Support
{
#if __cplusplus != 201402L
template<typename T>
struct UniqueIf
{
typedef std::unique_ptr<T> SingleObject;
};
template< typename T>
struct UniqueIf<T[]>
{
typedef std::unique... | 25.108696 | 80 | 0.544589 | iamOgunyinka |
19ee83333b4eae4d5b28fa524d4900ed25073038 | 4,704 | cxx | C++ | the/lib/ui/graphics.cxx | deni64k/the | c9451f03fe690d456bae89ac2d4a9303317dd8cd | [
"Apache-2.0"
] | null | null | null | the/lib/ui/graphics.cxx | deni64k/the | c9451f03fe690d456bae89ac2d4a9303317dd8cd | [
"Apache-2.0"
] | null | null | null | the/lib/ui/graphics.cxx | deni64k/the | c9451f03fe690d456bae89ac2d4a9303317dd8cd | [
"Apache-2.0"
] | null | null | null | #include <thread>
#include "the/lib/ui/errors.hxx"
#include "the/lib/ui/graphics.hxx"
namespace the::ui {
int Graphics::windowWidth_;
int Graphics::windowHeight_;
OglFallible<> Graphics::Init() {
using namespace std::placeholders;
glfwSetErrorCallback(Graphics::OnGlfwErrorCallback_);
// start GL context and... | 30.348387 | 107 | 0.716837 | deni64k |
19f1c46be7f69bd09adc9b06ce7ce97646dc05ec | 2,008 | hpp | C++ | src/mge/graphics/vertex_layout.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | src/mge/graphics/vertex_layout.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | 91 | 2019-03-09T11:31:29.000Z | 2022-02-27T13:06:06.000Z | src/mge/graphics/vertex_layout.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | // mge - Modern Game Engine
// Copyright (c) 2021 by Alexander Schroeder
// All rights reserved.
#pragma once
#include "mge/core/small_vector.hpp"
#include "mge/graphics/dllexport.hpp"
#include "mge/graphics/vertex_format.hpp"
#include <iosfwd>
#include <string_view>
namespace mge {
/**
* A vertex layout def... | 25.417722 | 73 | 0.530876 | mge-engine |
19f232378c950c61e0174c72fa4e35cc334e6448 | 7,998 | cpp | C++ | Natsu2D/RenderDevice/n2dLayerImpl.cpp | akemimadoka/Natsu2D | c1dd335642f3485470aebde165416a19a8751b4d | [
"WTFPL"
] | 11 | 2016-01-26T09:49:56.000Z | 2019-04-24T09:33:40.000Z | Natsu2D/RenderDevice/n2dLayerImpl.cpp | akemimadoka/Natsu2D | c1dd335642f3485470aebde165416a19a8751b4d | [
"WTFPL"
] | null | null | null | Natsu2D/RenderDevice/n2dLayerImpl.cpp | akemimadoka/Natsu2D | c1dd335642f3485470aebde165416a19a8751b4d | [
"WTFPL"
] | null | null | null | #include "n2dLayerImpl.h"
#include <natUtil.h>
#include <cassert>
n2dLayerImpl::n2dLayerImpl(n2dLayerHandler* Handler, nInt Order, nStrView Name, natNode* pParent)
: m_Handler(Handler), m_pParent(pParent), m_Name(Name), m_Order(Order)
{
}
n2dLayerImpl::~n2dLayerImpl()
{
RefCountBase<n2dLayer>::AddRef();
RefCountBa... | 20.403061 | 138 | 0.708802 | akemimadoka |
19f2905db79a2a3979d77757d8c624e1b38369cf | 1,109 | hxx | C++ | ds/security/base/lsa/server/extsdll/lib/lsaapi.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/security/base/lsa/server/extsdll/lib/lsaapi.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/security/base/lsa/server/extsdll/lib/lsaapi.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 2001 Microsoft Corporation
All rights reserved
Module Name:
lsaapi.hxx
Abstract:
This file provides useful accssors and mutators.
Author:
Larry Zhu (LZhu) May 1, 2001 Created
Environment:
User Mode -Win32
Revision History:
--*/
#ifn... | 16.072464 | 58 | 0.650135 | npocmaka |
19f47dfe54e62e59afb49ae28108269c8bcbc34a | 159 | cpp | C++ | Source/GLUnit.cpp | jetspiking/Blockworld | be452d31563f33924ba3e03ee6beb5b9e7058cc5 | [
"MIT"
] | null | null | null | Source/GLUnit.cpp | jetspiking/Blockworld | be452d31563f33924ba3e03ee6beb5b9e7058cc5 | [
"MIT"
] | null | null | null | Source/GLUnit.cpp | jetspiking/Blockworld | be452d31563f33924ba3e03ee6beb5b9e7058cc5 | [
"MIT"
] | null | null | null | #include "GLUnit.h"
GLUnit::GLUnit()
{
}
GLUnit::~GLUnit()
{
}
void GLUnit::setGLObject(GLObject* glObject)
{
this->glObject = glObject;
}
| 9.9375 | 45 | 0.597484 | jetspiking |
19f59e49220a691eb33f1a9ef7a49f183683a43b | 9,311 | hpp | C++ | VG-ArmaZ/ravage_dmd_edit.chernarusredux/dmd_respawn_config.hpp | Sausag3s/VG-A3-DEV | acf1c83a98b8f6aaef4c18ae0357197ae578ce56 | [
"MIT"
] | null | null | null | VG-ArmaZ/ravage_dmd_edit.chernarusredux/dmd_respawn_config.hpp | Sausag3s/VG-A3-DEV | acf1c83a98b8f6aaef4c18ae0357197ae578ce56 | [
"MIT"
] | null | null | null | VG-ArmaZ/ravage_dmd_edit.chernarusredux/dmd_respawn_config.hpp | Sausag3s/VG-A3-DEV | acf1c83a98b8f6aaef4c18ae0357197ae578ce56 | [
"MIT"
] | null | null | null |
class CfgRoles {
class Survivalist {
displayName = "01 - Survivalist";
icon = "\A3\ui_f\data\igui\cfg\simpleTasks\types\run_ca.paa";
};
class Mechanic {
displayName = "02 - Mechanic";
icon = "\A3\ui_f\data\igui\cfg\simpleTasks\types\repair_ca.paa";
};
class Bandit {
displayName = "03 - Bandit";
icon... | 41.566964 | 344 | 0.70014 | Sausag3s |
19f5b9f1619481b5939c8f6c59155451b873c7cd | 6,666 | hpp | C++ | Versionen/2021_06_15/RMF/rmf_ws/install/rmf_dispenser_msgs/include/rmf_dispenser_msgs/msg/detail/dispenser_state__struct.hpp | flitzmo-hso/flitzmo_agv_control_system | 99e8006920c03afbd93e4c7d38b4efff514c7069 | [
"MIT"
] | null | null | null | Versionen/2021_06_15/RMF/rmf_ws/install/rmf_dispenser_msgs/include/rmf_dispenser_msgs/msg/detail/dispenser_state__struct.hpp | flitzmo-hso/flitzmo_agv_control_system | 99e8006920c03afbd93e4c7d38b4efff514c7069 | [
"MIT"
] | null | null | null | Versionen/2021_06_15/RMF/rmf_ws/install/rmf_dispenser_msgs/include/rmf_dispenser_msgs/msg/detail/dispenser_state__struct.hpp | flitzmo-hso/flitzmo_agv_control_system | 99e8006920c03afbd93e4c7d38b4efff514c7069 | [
"MIT"
] | 2 | 2021-06-21T07:32:09.000Z | 2021-08-17T03:05:38.000Z | // generated from rosidl_generator_cpp/resource/idl__struct.hpp.em
// with input from rmf_dispenser_msgs:msg/DispenserState.idl
// generated code does not contain a copyright notice
#ifndef RMF_DISPENSER_MSGS__MSG__DETAIL__DISPENSER_STATE__STRUCT_HPP_
#define RMF_DISPENSER_MSGS__MSG__DETAIL__DISPENSER_STATE__STRUCT_HP... | 33.164179 | 298 | 0.752475 | flitzmo-hso |
19f92ade6aeb4f31a86bce122c2887f699d51c23 | 817 | cpp | C++ | Camp_0-2563/1007-62_CrossC.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_0-2563/1007-62_CrossC.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_0-2563/1007-62_CrossC.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<math.h>
int main (){
int q;
scanf("%d",&q);
while(q--){
double x1,x2,y1,y2,r1,r2;
scanf("%lf %lf %lf %lf %lf %lf",&x1,&y1,&r1,&x2,&y2,&r2);
double dist = sqrt(pow(x1-x2, 2) + pow(y1-y2,2));
if(dist > r1+r2){
printf("None");
}
else if(x1 == x2 && y1 == y2 && r1... | 19.452381 | 60 | 0.468788 | MasterIceZ |
19fb2d62999fe9d77642334f2f3fd8abff9c3aa7 | 1,920 | hpp | C++ | CXX/include/euler/utils/maps.hpp | troberson/exercises-euler | 03ffafb1016d252ca297f2ab6f02552df1377496 | [
"BSD-3-Clause"
] | 1 | 2020-02-12T20:40:39.000Z | 2020-02-12T20:40:39.000Z | CXX/include/euler/utils/maps.hpp | troberson/exercises-euler | 03ffafb1016d252ca297f2ab6f02552df1377496 | [
"BSD-3-Clause"
] | null | null | null | CXX/include/euler/utils/maps.hpp | troberson/exercises-euler | 03ffafb1016d252ca297f2ab6f02552df1377496 | [
"BSD-3-Clause"
] | null | null | null | /*
* Project Euler - Utils - maps
* Tamara Roberson <tamara.roberson@gmail.com>
* Copyright (c) 2019 Tamara Roberson
*
* Functions for operating on maps.
*/
#pragma once
#include <algorithm> // std::transform
#include <map> // std::map
#include <vector> // std::vector
namespace euler::utils
{
/**
* Get one s... | 25.6 | 88 | 0.688021 | troberson |
c2011b5e74589f80dc9ead7a4baeaaac7958febe | 4,901 | cpp | C++ | practice/misc/tg02/main.cpp | rahulsrma26/ol_codes | dc599f5b70c14229a001c5239c366ba1b990f68b | [
"MIT"
] | 2 | 2019-03-18T16:06:10.000Z | 2019-04-07T23:17:06.000Z | practice/misc/tg02/main.cpp | rahulsrma26/ol_codes | dc599f5b70c14229a001c5239c366ba1b990f68b | [
"MIT"
] | null | null | null | practice/misc/tg02/main.cpp | rahulsrma26/ol_codes | dc599f5b70c14229a001c5239c366ba1b990f68b | [
"MIT"
] | 1 | 2019-03-18T16:06:52.000Z | 2019-03-18T16:06:52.000Z | #include <iostream>
#include <vector>
using namespace std;
void fun(vector<int>& ary) {
const int n = ary.size();
if (n == 1) {
cout << ary[0] << '\n';
return;
}
vector<vector<int>> sols(n);
sols[n - 1].push_back({ary[n - 1]});
sols[n - 2].push_back({ary[n - 2]});
vector<i... | 30.253086 | 79 | 0.322791 | rahulsrma26 |
c202972bc0bda99085172701cf0f8652a95afccf | 803 | cc | C++ | tests/error_msg_test.cc | RobDickinson/pmemkv | 9f7de0cc1bb5a31c10d2feaa8d1c12cac1ab3b68 | [
"BSD-3-Clause"
] | null | null | null | tests/error_msg_test.cc | RobDickinson/pmemkv | 9f7de0cc1bb5a31c10d2feaa8d1c12cac1ab3b68 | [
"BSD-3-Clause"
] | 4 | 2017-02-20T17:14:10.000Z | 2017-02-20T22:36:43.000Z | tests/error_msg_test.cc | RobDickinson/pmemkv | 9f7de0cc1bb5a31c10d2feaa8d1c12cac1ab3b68 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2021, Intel Corporation */
#include <libpmemkv.hpp>
#include "unittest.hpp"
static void errormsg_cleared()
{
pmem::kv::db kv;
auto s = kv.open("non-existing name");
ASSERT_STATUS(s, pmem::kv::status::WRONG_ENGINE_NAME);
auto err = pmem::kv::errormsg();
UT_A... | 20.589744 | 55 | 0.666252 | RobDickinson |
c2052ec4ae5fbf6537be4d3eedc18131f3128272 | 1,587 | cpp | C++ | Greet-core/src/ecs/components/Camera2DComponent.cpp | Thraix/Greet-Engine | 9474a4f4b88a582289fc68e7fc3e62ba2c6d0ec8 | [
"Apache-2.0"
] | null | null | null | Greet-core/src/ecs/components/Camera2DComponent.cpp | Thraix/Greet-Engine | 9474a4f4b88a582289fc68e7fc3e62ba2c6d0ec8 | [
"Apache-2.0"
] | 1 | 2018-03-30T18:10:37.000Z | 2018-03-30T18:10:37.000Z | Greet-core/src/ecs/components/Camera2DComponent.cpp | Thraix/Greet-Engine-Port | 9474a4f4b88a582289fc68e7fc3e62ba2c6d0ec8 | [
"Apache-2.0"
] | null | null | null | #include "Camera2DComponent.h"
#include <utils/MetaFileLoading.h>
namespace Greet
{
Camera2DComponent::Camera2DComponent(const Mat3& viewMatrix, bool active)
: active{active}, projectionMatrix{Mat3::OrthographicViewport()}, viewMatrix{viewMatrix}
{}
Camera2DComponent::Camera2DComponent(const MetaFileClass&... | 32.387755 | 92 | 0.73913 | Thraix |
c205e9ba64539097bc96f438934a81d0af0f9983 | 8,419 | cpp | C++ | Invaders-2/src/World.cpp | dalawr32/invaders-repository | 7e9cdae877296b8149c2fa12b02af0c981a72a9d | [
"CC-BY-4.0"
] | null | null | null | Invaders-2/src/World.cpp | dalawr32/invaders-repository | 7e9cdae877296b8149c2fa12b02af0c981a72a9d | [
"CC-BY-4.0"
] | null | null | null | Invaders-2/src/World.cpp | dalawr32/invaders-repository | 7e9cdae877296b8149c2fa12b02af0c981a72a9d | [
"CC-BY-4.0"
] | null | null | null | /**
* Created by Daniel.
* Contains all the information for
* running the internal logic of
* the game, such as spawning
* enemies and moving all objects.
*/
#include "World.h"
#include "Enemy.h"
#include "Player.h"
#include "Basic_Enemy.h"
#include "Basic_Shooter.h"
#include "Repeater.h"
#in... | 30.284173 | 121 | 0.530229 | dalawr32 |
c206a64d0d644f20fd5347120eca86028a073203 | 22,153 | cc | C++ | pigasus/software/src/sfrt/sfrt_dir.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/src/sfrt/sfrt_dir.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/src/sfrt/sfrt_dir.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | //--------------------------------------------------------------------------
// Copyright (C) 2014-2018 Cisco and/or its affiliates. All rights reserved.
// Copyright (C) 2006-2013 Sourcefire, Inc.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public... | 28.845052 | 103 | 0.580779 | zhipengzhaocmu |
c20af5889fe0358a83bf1bd6e73f7fd364a53973 | 1,950 | hh | C++ | mcg/src/external/BSR/include/io/serialization/serial_istream.hh | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 392 | 2015-01-14T13:19:40.000Z | 2022-02-12T08:47:33.000Z | mcg/src/external/BSR/include/io/serialization/serial_istream.hh | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 45 | 2015-02-03T12:16:10.000Z | 2022-03-07T00:25:09.000Z | mcg/src/external/BSR/include/io/serialization/serial_istream.hh | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 168 | 2015-01-05T02:29:53.000Z | 2022-02-22T04:32:04.000Z | /*
* Serial input stream built on top of a standard istream.
*/
#ifndef IO__SERIALIZATION__SERIAL_ISTREAM_HH
#define IO__SERIALIZATION__SERIAL_ISTREAM_HH
#include "io/serialization/serial_input_stream.hh"
#include "io/streams/istream.hh"
namespace io {
namespace serialization {
/*
* Imports.
*/
using io::streams:... | 26.712329 | 72 | 0.697436 | mouthwater |
c20fef07b2bff7ad091c3c34183a18557ed007d5 | 20,431 | cpp | C++ | graphics.cpp | vladetaStoj/DirectX_11_Framework | 19b38d4b192a303a2403e7509302d2d2af7a65e5 | [
"MIT"
] | null | null | null | graphics.cpp | vladetaStoj/DirectX_11_Framework | 19b38d4b192a303a2403e7509302d2d2af7a65e5 | [
"MIT"
] | null | null | null | graphics.cpp | vladetaStoj/DirectX_11_Framework | 19b38d4b192a303a2403e7509302d2d2af7a65e5 | [
"MIT"
] | null | null | null | #include "graphics.h"
#include "primitives.h"
using namespace std;
Graphics::Graphics()
{
SwapChain = 0;
d3d11Device = 0;
d3d11DevCon = 0;
renderTargetView = 0;
depthStencilView = 0;
depthStencilBuffer = 0;
m_renderState = 0;
Transparency = 0;
CCWcullMode = 0;
CWcullMode = 0;
NoCullMod... | 30.769578 | 262 | 0.72713 | vladetaStoj |
c2129085e7d639b1e224f7381cb4bf0e437252a2 | 5,073 | cpp | C++ | rtl/eclrtl/rtlcommon.cpp | davidarcher/HPCC-Platform | fa817ab9ea7d8154ac08bc780ce9ce673f3e51e3 | [
"Apache-2.0"
] | null | null | null | rtl/eclrtl/rtlcommon.cpp | davidarcher/HPCC-Platform | fa817ab9ea7d8154ac08bc780ce9ce673f3e51e3 | [
"Apache-2.0"
] | null | null | null | rtl/eclrtl/rtlcommon.cpp | davidarcher/HPCC-Platform | fa817ab9ea7d8154ac08bc780ce9ce673f3e51e3 | [
"Apache-2.0"
] | 3 | 2021-05-02T17:01:57.000Z | 2021-05-02T17:02:28.000Z | #include "jiface.hpp"
#include "jbuff.hpp"
#include "jstring.hpp"
#include "junicode.hpp"
#include "rtlcommon.hpp"
CThorContiguousRowBuffer::CThorContiguousRowBuffer(ISerialStream * _in) : in(_in)
{
buffer = NULL;
maxOffset = 0;
readOffset = 0;
}
void CThorContiguousRowBuffer::doRead(size32_t len, void * ... | 24.272727 | 143 | 0.685196 | davidarcher |
c2146d653943a65008d6d88a20225c0a46d258f7 | 1,200 | cpp | C++ | RaychelEngine/src/Raychel/Engine/Interface/Camera.cpp | Weckyy702/RaychelCPU | a372ac0dfa3339cac19b06b11ec916ae275b67c0 | [
"MIT"
] | 4 | 2020-12-07T21:57:14.000Z | 2021-12-06T10:39:18.000Z | RaychelEngine/src/Raychel/Engine/Interface/Camera.cpp | Weckyy702/RaychelCPU | a372ac0dfa3339cac19b06b11ec916ae275b67c0 | [
"MIT"
] | null | null | null | RaychelEngine/src/Raychel/Engine/Interface/Camera.cpp | Weckyy702/RaychelCPU | a372ac0dfa3339cac19b06b11ec916ae275b67c0 | [
"MIT"
] | 2 | 2021-04-08T12:05:03.000Z | 2021-12-06T09:23:32.000Z | #include "Raychel/Engine/Interface/Camera.h"
namespace Raychel {
vec3 Camera::forward() const noexcept
{
return normalize(g_forward * transform_.rotation);
}
vec3 Camera::up() const noexcept
{
return normalize(g_up * transform_.rotation);
}
vec3 Camera::right() const noex... | 21.818182 | 58 | 0.6225 | Weckyy702 |
c214d5e62c1b33707f9cad8646dc1df519d2cff0 | 462 | cpp | C++ | test/deck.cpp | Matt-London/blackjack-bot | 950fd5f33280d4441c8812cd4e29ebaa07e98b37 | [
"MIT"
] | 1 | 2021-02-28T14:41:39.000Z | 2021-02-28T14:41:39.000Z | test/deck.cpp | Matt-London/blackjack-bot | 950fd5f33280d4441c8812cd4e29ebaa07e98b37 | [
"MIT"
] | null | null | null | test/deck.cpp | Matt-London/blackjack-bot | 950fd5f33280d4441c8812cd4e29ebaa07e98b37 | [
"MIT"
] | null | null | null | #include <iostream>
#include "../include/resources/Constants.h"
#include "../include/objects/Card.hpp"
#include "../include/objects/Deck.hpp"
#include "../include/objects/Player.hpp"
#include "../include/objects/Dealer.hpp"
#include "../include/resources/Tool.hpp"
#include "../include/objects/Game.hpp"
using namespac... | 22 | 47 | 0.65368 | Matt-London |
c21b102e27678318ad8c8c568eca51682b1def63 | 19,535 | cpp | C++ | CollyraEngine/CollyraEngine/M_Scene.cpp | Collyra-Modding-Guild/CollyraEngine | c6c99160995dc2ed28a058df353f13d6ce8c3af4 | [
"MIT"
] | null | null | null | CollyraEngine/CollyraEngine/M_Scene.cpp | Collyra-Modding-Guild/CollyraEngine | c6c99160995dc2ed28a058df353f13d6ce8c3af4 | [
"MIT"
] | null | null | null | CollyraEngine/CollyraEngine/M_Scene.cpp | Collyra-Modding-Guild/CollyraEngine | c6c99160995dc2ed28a058df353f13d6ce8c3af4 | [
"MIT"
] | null | null | null | #include "M_Scene.h"
#include "GameObject.h"
#include "p2Defs.h"
#include <stack>
#include <map>
#include "Component.h"
#include "C_Mesh.h"
#include "C_Transform.h"
#include "C_Material.h"
#include "C_Camera.h"
#include "C_Script.h"
#include "Application.h"
#include "M_Camera3D.h"
#include "M_UIManager.h"
#include "M... | 19.772267 | 190 | 0.675557 | Collyra-Modding-Guild |
c21b39a182d84e22fad4d14cfcaea972222a815f | 4,192 | cpp | C++ | CAD/HILine.cpp | danheeks/PyCAD | 711543aaa88c88a82d909f329b6ee36a9b96ae79 | [
"BSD-3-Clause"
] | 17 | 2018-07-30T17:38:02.000Z | 2022-02-03T10:35:38.000Z | CAD/HILine.cpp | danheeks/PyCAD | 711543aaa88c88a82d909f329b6ee36a9b96ae79 | [
"BSD-3-Clause"
] | 2 | 2020-06-11T10:29:06.000Z | 2020-06-11T15:42:00.000Z | CAD/HILine.cpp | danheeks/PyCAD | 711543aaa88c88a82d909f329b6ee36a9b96ae79 | [
"BSD-3-Clause"
] | null | null | null | // HILine.cpp
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"
#include "HILine.h"
#include "HLine.h"
#include "HArc.h"
//#include "HCircle.h"
#include "HPoint.h"
#include "Gripper.h"
#include "Property.h"
HILine::HI... | 21.947644 | 109 | 0.638597 | danheeks |
c22760fb1eaa3adbebe0a488774ba4de8a0f5b12 | 253 | cpp | C++ | codeforces/38A.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | codeforces/38A.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | codeforces/38A.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int arr[101];
int main()
{
int n,a,b,sum=0;
scanf("%d",&n);
for(int i=2; i<=n; i++) scanf("%d",&arr[i]);
scanf("%d%d",&a,&b);
for(int i=a+1; i<=b; i++)sum+=arr[i];
return printf("%d\n",sum ), 0;
}
| 16.866667 | 45 | 0.525692 | Shisir |
c22cbf9ac569265c60a0b3584e038c97f5e7e754 | 2,144 | cpp | C++ | SimulationCore/TimeHistory_S2D_ME_s_RigidBody.cpp | MingAtUWA/SimpleMPM | 46a0e48028b7d6258f452f9cbee6195bb7f6aa41 | [
"MIT"
] | null | null | null | SimulationCore/TimeHistory_S2D_ME_s_RigidBody.cpp | MingAtUWA/SimpleMPM | 46a0e48028b7d6258f452f9cbee6195bb7f6aa41 | [
"MIT"
] | null | null | null | SimulationCore/TimeHistory_S2D_ME_s_RigidBody.cpp | MingAtUWA/SimpleMPM | 46a0e48028b7d6258f452f9cbee6195bb7f6aa41 | [
"MIT"
] | null | null | null | #include "SimulationCore_pcp.h"
#include "Model_S2D_ME_s_RigidBody.h"
#include "Step_S2D_ME_s_RigidBody.h"
#include "ResultFile.h"
#include <fstream>
#include "TimeHistory_S2D_ME_s_RigidBody.h"
/*====================================================================
TimeHistory_S2D_ME_s_RigidBody Class
==============... | 33.5 | 86 | 0.704291 | MingAtUWA |
c22db8568c5bc9d77ef40861de1576200a549d4c | 2,013 | cpp | C++ | LeetCode/C++/367. Valid Perfect Square.cpp | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | LeetCode/C++/367. Valid Perfect Square.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | LeetCode/C++/367. Valid Perfect Square.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | //Runtime: 4 ms, faster than 100.00% of C++ online submissions for Valid Perfect Square.
//Memory Usage: 8 MB, less than 83.44% of C++ online submissions for Valid Perfect Square.
class Solution {
public:
bool isPerfectSquare(int num) {
long long lnum = num;
for(long long i = 1; i * i <= lnum; i++)... | 25.481013 | 115 | 0.561848 | shreejitverma |
c230eeb723c8e61bcc87afc39c6722f8e09f021d | 1,466 | hpp | C++ | include/tkn/sky.hpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 23 | 2019-07-11T14:47:39.000Z | 2021-12-24T09:56:24.000Z | include/tkn/sky.hpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | null | null | null | include/tkn/sky.hpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 4 | 2021-04-06T18:20:43.000Z | 2022-01-15T09:20:45.000Z | #pragma once
#include <array>
#include <vector>
#include <tkn/types.hpp>
// Utility for the hosek-wilkie sky model. The model was modified
// to use a preetham-like zenith darkening and transitions to black
// when the sky is below the horizon (the original model assumed
// the sun above the horizon).
// Can evaluate... | 25.719298 | 78 | 0.749659 | nyorain |
ea4b4dcb3fb9241a65953d6a1362b41837b9c777 | 526 | cpp | C++ | src/duke/engine/rendering/ShaderConstants.cpp | hradec/duke | efacf7139cd1d7c2cd2f5127079721bd263dda50 | [
"MIT"
] | 51 | 2015-01-07T18:36:39.000Z | 2021-11-30T15:24:44.000Z | src/duke/engine/rendering/ShaderConstants.cpp | virneo/duke | efacf7139cd1d7c2cd2f5127079721bd263dda50 | [
"MIT"
] | 1 | 2015-01-08T10:48:43.000Z | 2015-02-11T19:32:14.000Z | src/duke/engine/rendering/ShaderConstants.cpp | virneo/duke | efacf7139cd1d7c2cd2f5127079721bd263dda50 | [
"MIT"
] | 18 | 2015-05-11T12:43:37.000Z | 2019-11-29T11:15:41.000Z | #include "ShaderConstants.hpp"
namespace duke {
namespace shader {
const char gTextureSampler[] = "gTextureSampler";
const char gViewport[] = "gViewport";
const char gImage[] = "gImage";
const char gPan[] = "gPan";
const char gPanAndChar[] = "gPanAndChar";
const char gZoom[] = "gZoom";
const char gAlpha[] = "gAlpha";... | 26.3 | 49 | 0.69962 | hradec |
ea4d95543b02650f0bc8968753c4cb5885e59d11 | 6,203 | cpp | C++ | NPSVisor/SVisor/svisor/source/D_Wait.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | NPSVisor/SVisor/svisor/source/D_Wait.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | NPSVisor/SVisor/svisor/source/D_Wait.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | //--------- d_wait.cpp -------------------------------------------------------
//----------------------------------------------------------------------------
#include "precHeader.h"
//----------------------------------------------------------------------------
#include "d_wait.h"
#include "p_base.h"
#include "ptraspbit... | 25.953975 | 124 | 0.482992 | NPaolini |
ea4e9e1b585af2bdbed9114638ad9b4c58417e04 | 3,223 | cpp | C++ | Source/Analyzer/WfAnalyzer_CheckScope_DuplicatedSymbol.cpp | vczh2/Workflow | 7ad7d53927ee66ae1df7d68b35e185ce9edcfcf1 | [
"RSA-MD"
] | 1 | 2018-10-17T16:00:38.000Z | 2018-10-17T16:00:38.000Z | Source/Analyzer/WfAnalyzer_CheckScope_DuplicatedSymbol.cpp | vczh2/Workflow | 7ad7d53927ee66ae1df7d68b35e185ce9edcfcf1 | [
"RSA-MD"
] | null | null | null | Source/Analyzer/WfAnalyzer_CheckScope_DuplicatedSymbol.cpp | vczh2/Workflow | 7ad7d53927ee66ae1df7d68b35e185ce9edcfcf1 | [
"RSA-MD"
] | null | null | null | #include "WfAnalyzer.h"
namespace vl
{
namespace workflow
{
namespace analyzer
{
using namespace collections;
/***********************************************************************
CheckScopes_DuplicatedSymbol
***********************************************************************/
bool CheckScopes_Dup... | 34.287234 | 99 | 0.530872 | vczh2 |
ea4eea7a4b2ac3369c6a8090708918bb1d350f01 | 295 | cpp | C++ | cpp/tests/SpiralMatrixIITest.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | 4 | 2018-03-05T02:27:16.000Z | 2021-03-15T14:19:44.000Z | cpp/tests/SpiralMatrixIITest.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | null | null | null | cpp/tests/SpiralMatrixIITest.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | 2 | 2018-07-22T10:32:10.000Z | 2018-10-20T03:14:28.000Z | #include "SpiralMatrixII.h"
#include "gtest/gtest.h"
using namespace lcpp;
TEST(SpiralMatrixII, Solution59_1) {
auto S59_1 = Solution59_1();
int const N = 3;
std::vector<std::vector<int>> const Expected{{1, 2, 3}, {8, 9, 4}, {7, 6, 5}};
EXPECT_EQ(Expected, S59_1.generateMatrix(N));
} | 24.583333 | 80 | 0.674576 | qianbinbin |
ea4f8441d87f2eb5cdb34b211e8700770fd4b520 | 8,128 | cpp | C++ | src/ilc.cpp | ronthecookie/ilc | 4e2f78bd39da0497bddf58b6783b4a3b3489a2cf | [
"Unlicense"
] | 2 | 2020-08-20T15:01:13.000Z | 2020-08-20T15:58:23.000Z | src/ilc.cpp | ionlang/onyx | 4e2f78bd39da0497bddf58b6783b4a3b3489a2cf | [
"Unlicense"
] | 4 | 2019-12-26T02:50:38.000Z | 2020-10-16T01:15:05.000Z | src/ilc.cpp | ionlang/onyx | 4e2f78bd39da0497bddf58b6783b4a3b3489a2cf | [
"Unlicense"
] | 2 | 2020-10-01T15:33:30.000Z | 2020-10-12T15:41:02.000Z | // Include the cross-platform header before anything else.
#include <ilc/cli/cross_platform.h>
#include <queue>
#include <filesystem>
#include <CLI11/CLI11.hpp>
#include <ionshared/misc/util.h>
#include <ionlang/misc/static_init.h>
#include <ionir/construct/type/void_type.h>
#include <ionir/construct/prototype.h>
#inc... | 32.126482 | 112 | 0.55844 | ronthecookie |
ea4fc20bd01161d9343ff5b423394a5386703cf1 | 1,771 | cpp | C++ | codes/HDU/hdu1298.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu1298.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu1298.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 100005;
const int maxm = 105;
const int sigma_size = 26;
const char dir[15][10] = {"", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"};
struct Tire {
int sz, g[maxn][sigma_size], val[maxn];
void init();
... | 16.866667 | 92 | 0.455675 | JeraKrs |
ea50b4403bade635f9e36de4236f8e74defa4081 | 2,986 | cc | C++ | src/CaliceDetectorConstruction.cc | lopezzot/CALICESiWTB | ea1cdbdad0c406d27065e350bf6cc2256aceedfa | [
"MIT"
] | 1 | 2022-02-28T16:19:38.000Z | 2022-02-28T16:19:38.000Z | src/CaliceDetectorConstruction.cc | lopezzot/CALICESiWTB | ea1cdbdad0c406d27065e350bf6cc2256aceedfa | [
"MIT"
] | null | null | null | src/CaliceDetectorConstruction.cc | lopezzot/CALICESiWTB | ea1cdbdad0c406d27065e350bf6cc2256aceedfa | [
"MIT"
] | null | null | null | //**************************************************
// \file CaliceDetectorConstruction.cc
// \brief: Implementation of
// CaliceDetectorConstruction class
// \author: Lorenzo Pezzotti (CERN EP-SFT-sim)
// @lopezzot
// \start date: 17 February 2022
//*************************************************... | 34.321839 | 110 | 0.570328 | lopezzot |
ea533bb5004ff5315c56c2b433485a927e7a300e | 3,023 | cpp | C++ | core/src/main/cpp/process/facedetector/FaceDetector.cpp | caolongcl/OpenImage | d29e0309bc35ff1766e0c81bfba82b185a7aabb6 | [
"BSD-3-Clause"
] | 2 | 2021-09-16T15:14:39.000Z | 2021-09-17T14:39:52.000Z | core/src/main/cpp/process/facedetector/FaceDetector.cpp | caolongcl/OpenImage | d29e0309bc35ff1766e0c81bfba82b185a7aabb6 | [
"BSD-3-Clause"
] | null | null | null | core/src/main/cpp/process/facedetector/FaceDetector.cpp | caolongcl/OpenImage | d29e0309bc35ff1766e0c81bfba82b185a7aabb6 | [
"BSD-3-Clause"
] | null | null | null | //
// Created by caolong on 2020/8/10.
//
#include <res/ResManager.hpp>
#include <utils/Utils.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/imgcodecs.hpp>
#include <process/facedetector/FaceDetector.hpp>
#include <render/Flow.hpp>
#include <render/polygon/Polygon.hpp>
#include <softarch/Msg.hpp>
#include <rend... | 27.733945 | 94 | 0.656632 | caolongcl |
ea53d8043af247cd7bf81dfa7a1687b2023f438b | 1,580 | hpp | C++ | src/merge/feature_sample_merge.hpp | toppic-suite/toppic-suite | b5f0851f437dde053ddc646f45f9f592c16503ec | [
"Apache-2.0"
] | 8 | 2018-05-23T14:37:31.000Z | 2022-02-04T23:48:38.000Z | src/merge/feature_sample_merge.hpp | toppic-suite/toppic-suite | b5f0851f437dde053ddc646f45f9f592c16503ec | [
"Apache-2.0"
] | 9 | 2019-08-31T08:17:45.000Z | 2022-02-11T20:58:06.000Z | src/merge/feature_sample_merge.hpp | toppic-suite/toppic-suite | b5f0851f437dde053ddc646f45f9f592c16503ec | [
"Apache-2.0"
] | 4 | 2018-04-25T01:39:38.000Z | 2020-05-20T19:25:07.000Z | //Copyright (c) 2014 - 2020, The Trustees of Indiana University.
//
//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 a... | 30.980392 | 74 | 0.705063 | toppic-suite |
ea53fdedf8e355b51193835f6c8197b60cc5f999 | 306 | cpp | C++ | module04/ex00/Cat.cpp | JohnnyZaev/CPP-Piscine | f1d0f0164131094823bb911c084d5075b0aee392 | [
"MIT"
] | null | null | null | module04/ex00/Cat.cpp | JohnnyZaev/CPP-Piscine | f1d0f0164131094823bb911c084d5075b0aee392 | [
"MIT"
] | null | null | null | module04/ex00/Cat.cpp | JohnnyZaev/CPP-Piscine | f1d0f0164131094823bb911c084d5075b0aee392 | [
"MIT"
] | null | null | null | //
// Created by Johnny Zaev on 25.05.2022.
//
#include "Cat.hpp"
Cat::Cat() {
type = "Cat";
}
Cat::~Cat() {}
Cat::Cat(const Cat &b) {
*this = b;
}
Cat &Cat::operator=(const Cat &other) {
this->type = other.type;
return *this;
}
void Cat::makeSound() const {
std::cout << "Meow!" << std::endl;
} | 12.75 | 40 | 0.568627 | JohnnyZaev |
ea548247736f817f178157d2aa51d6afe5857ed4 | 1,050 | hpp | C++ | include/tdc/pred/result.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 1 | 2021-05-06T13:39:22.000Z | 2021-05-06T13:39:22.000Z | include/tdc/pred/result.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 1 | 2020-03-07T08:05:20.000Z | 2020-03-07T08:05:20.000Z | include/tdc/pred/result.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 2 | 2020-05-27T07:54:43.000Z | 2021-11-18T13:29:14.000Z | #pragma once
#include <utility>
namespace tdc {
namespace pred {
/// \brief The result of a predecessor or successor query, wrapping the position of the located key.
struct PosResult {
/// \brief Whether the predecessor or successor exists.
bool exists;
/// \brief The position of the predecessor or ... | 23.333333 | 103 | 0.657143 | herlez |
ea564452fd2f84743d55951770c638d2d9d9124b | 2,856 | cpp | C++ | Practice/2019.7.10/UOJ242.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2019.7.10/UOJ242.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2019.7.10/UOJ242.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define double long double
const int maxN=101000;
const double Pi=acos(-1);
const double eps=1e-10;
class Point{
public:
double x,y;
double len(){
return sqrt(x*x+y*y);
}
double angle(){
return atan2(y,x);
}
};
class Line{
public:
Point p,f;
};
int n;
Point A[ma... | 23.032258 | 84 | 0.598039 | SYCstudio |
ea57a38efd0da9b8e4ed5f8cb14a592aeb757b1a | 894 | hpp | C++ | includes/eeros/control/ros/RosPublisherDoubleArray.hpp | jonas-frei/eeros-framework | d3cf6b04f724d06cb45a512b9ff56e057fcfbb28 | [
"Apache-2.0"
] | null | null | null | includes/eeros/control/ros/RosPublisherDoubleArray.hpp | jonas-frei/eeros-framework | d3cf6b04f724d06cb45a512b9ff56e057fcfbb28 | [
"Apache-2.0"
] | null | null | null | includes/eeros/control/ros/RosPublisherDoubleArray.hpp | jonas-frei/eeros-framework | d3cf6b04f724d06cb45a512b9ff56e057fcfbb28 | [
"Apache-2.0"
] | null | null | null | #ifndef ORG_EEROS_CONTROL_ROSPUBLISHER_DOUBLEARRAY_HPP
#define ORG_EEROS_CONTROL_ROSPUBLISHER_DOUBLEARRAY_HPP
#include <eeros/control/ros/RosPublisher.hpp>
#include <eeros/math/Matrix.hpp>
#include <std_msgs/Float64MultiArray.h>
namespace eeros {
namespace control {
template < typename SigInType >
class RosPubl... | 30.827586 | 101 | 0.750559 | jonas-frei |
ea5a74d1307f33122a8a769acc5d76cd0ed75eb7 | 7,263 | cc | C++ | project2/server/basic_client.cc | luozhaoyu/rpc | 06ec56d00a5137436db48416cfbac3bd31e12a30 | [
"MIT"
] | 1 | 2019-02-16T14:33:14.000Z | 2019-02-16T14:33:14.000Z | project2/server/basic_client.cc | luozhaoyu/rpc | 06ec56d00a5137436db48416cfbac3bd31e12a30 | [
"MIT"
] | null | null | null | project2/server/basic_client.cc | luozhaoyu/rpc | 06ec56d00a5137436db48416cfbac3bd31e12a30 | [
"MIT"
] | null | null | null | // basic_client.cc : implements a simple client shell for testing rpc calls.
// by: allison morris
#include <fstream>
#include <iostream>
#include "file_service.h"
using namespace File;
using grpc::Channel;
using grpc::ClientContext;
using grpc::Status;
// provides an interface to the File service and some convenien... | 26.315217 | 92 | 0.591078 | luozhaoyu |
ea5c768d3cdf67c57ce452050d6b0e7caa15c2bf | 1,788 | cpp | C++ | src/ros/master.cpp | Xamla/torch-ros | 1f42cd4863d68bc4f9134bd1932988c1d5d1e7ca | [
"BSD-3-Clause"
] | 26 | 2016-03-16T06:21:16.000Z | 2021-01-04T05:37:07.000Z | src/ros/master.cpp | Xamla/torch-ros | 1f42cd4863d68bc4f9134bd1932988c1d5d1e7ca | [
"BSD-3-Clause"
] | 15 | 2016-04-04T21:31:29.000Z | 2021-08-20T05:27:34.000Z | src/ros/master.cpp | Xamla/torch-ros | 1f42cd4863d68bc4f9134bd1932988c1d5d1e7ca | [
"BSD-3-Clause"
] | 10 | 2016-04-04T21:07:43.000Z | 2018-05-17T12:54:27.000Z | #include "torch-ros.h"
#include <ros/master.h>
ROSIMP(bool, Master, execute)(
const char *method,
xamla::Variable *request,
xamla::Variable *response,
xamla::Variable *payload,
bool wait_for_master) {
XmlRpc::XmlRpcValue request_;
VariableToXmlRpcValue(*request, request_); // copy request
XmlRpc::... | 26.294118 | 93 | 0.685682 | Xamla |
ea5cece6ddc18b993b4689b60269abf1be39f44e | 7,211 | cpp | C++ | Code/max/Containers/PointTest.cpp | ProgramMax/max | 174b0501463dde4263813371546667763478e75e | [
"BSD-3-Clause"
] | 1 | 2015-12-30T08:22:26.000Z | 2015-12-30T08:22:26.000Z | Code/max/Containers/PointTest.cpp | ProgramMax/max | 174b0501463dde4263813371546667763478e75e | [
"BSD-3-Clause"
] | 55 | 2015-10-16T06:13:16.000Z | 2020-11-16T06:45:07.000Z | Code/max/Containers/PointTest.cpp | ProgramMax/max | 174b0501463dde4263813371546667763478e75e | [
"BSD-3-Clause"
] | 1 | 2019-01-03T11:21:59.000Z | 2019-01-03T11:21:59.000Z | // Copyright 2021, The max Contributors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "PointTest.hpp"
#include <max/Containers/Point.hpp>
#include <max/Testing/TestSuite.hpp>
#include <max/Testing/CoutResultPolicy.hpp>
#include <u... | 48.722973 | 274 | 0.694772 | ProgramMax |