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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7fd2130e7866bac13b1394b8e297b703e97d82d2 | 71 | hpp | C++ | Source/NieRTracker/defineOffsets.hpp | Asiern/NieR-Tracker | 8b5288989e434395a4f093891ce07092bb61f846 | [
"MIT"
] | null | null | null | Source/NieRTracker/defineOffsets.hpp | Asiern/NieR-Tracker | 8b5288989e434395a4f093891ce07092bb61f846 | [
"MIT"
] | null | null | null | Source/NieRTracker/defineOffsets.hpp | Asiern/NieR-Tracker | 8b5288989e434395a4f093891ce07092bb61f846 | [
"MIT"
] | null | null | null | #define entity 16053E8;
#define X 0x50;
#define Y 0x54;
#define Z 0x58; | 17.75 | 23 | 0.732394 | Asiern |
7fd4327a12b06fdea921b7b2009111b294779254 | 3,217 | hpp | C++ | AL/Collections/Iterator.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | AL/Collections/Iterator.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | AL/Collections/Iterator.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | #pragma once
#include "AL/Common.hpp"
#include <iterator>
namespace AL::Collections
{
template<typename T>
class ForwardIterator
{
public:
typedef T* pointer;
typedef T& reference;
typedef T value_type;
typedef std::ptrdiff_t ... | 24.371212 | 109 | 0.654958 | LeoTHPS |
7fdc3f737f0eac1e01f0a882d5b2f0715f89d3bc | 1,686 | hxx | C++ | opencascade/BinObjMgt_Position.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/BinObjMgt_Position.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/BinObjMgt_Position.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2021 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 Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special ... | 36.652174 | 113 | 0.800712 | mgreminger |
7fdcac4f87871a4b273078a5b58a207f5b6dfa30 | 1,116 | hpp | C++ | src/PathFinder/RecursiveBestFirstAgent.hpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | src/PathFinder/RecursiveBestFirstAgent.hpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | src/PathFinder/RecursiveBestFirstAgent.hpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | #pragma once
#include "PathFinderAgent.hpp"
#include "CollapsibleSearchNode.hpp"
namespace aima::path_finder {
class RecursiveBestFirstAgent final : public PathFinderAgent {
public:
std::unique_ptr<core::Agent> clone() const override;
std::shared_ptr<const SearchNode> getPlan() const override... | 41.333333 | 112 | 0.551075 | Person-93 |
8f0d35006a6914e8c8979ef500b51d4cf5acda4e | 6,717 | cpp | C++ | MachineLearning/Entity101/tests/root_mean_squared_error_test.cpp | CJBuchel/Entity101 | b868ffff4ca99e240a0bf1248d5c5ebb45019426 | [
"MIT"
] | null | null | null | MachineLearning/Entity101/tests/root_mean_squared_error_test.cpp | CJBuchel/Entity101 | b868ffff4ca99e240a0bf1248d5c5ebb45019426 | [
"MIT"
] | null | null | null | MachineLearning/Entity101/tests/root_mean_squared_error_test.cpp | CJBuchel/Entity101 | b868ffff4ca99e240a0bf1248d5c5ebb45019426 | [
"MIT"
] | null | null | null | /****************************************************************************************************************/
/* */
/* OpenNN: Open Neural Networks Library ... | 26.444882 | 122 | 0.589996 | CJBuchel |
8f0e5ea05920cd37f1b82c4ea0589b4d77b478e0 | 317 | hpp | C++ | dep_package/Hicore/hicore/wkb.hpp | KyrieBang/HiVecMap | b4861df4d41dd5299f277882d49540da25894972 | [
"MIT"
] | null | null | null | dep_package/Hicore/hicore/wkb.hpp | KyrieBang/HiVecMap | b4861df4d41dd5299f277882d49540da25894972 | [
"MIT"
] | null | null | null | dep_package/Hicore/hicore/wkb.hpp | KyrieBang/HiVecMap | b4861df4d41dd5299f277882d49540da25894972 | [
"MIT"
] | null | null | null | #ifndef WKB_HPP_
#define WKB_HPP_
#include "core.hpp"
#define POLYGON_TYPE 3
#define LINESTRING_TYPE 2
namespace HiGIS::IO {
Core::GeoType ReadWkb(Core::GeoBuffer &out, uint8_t *source, int type);
int ReadWkbType(uint8_t *source);
Core::GeoType GetGeoType(int code);
} // namespace HiGIS::IO
#endif // WKB_HPP_
| 17.611111 | 71 | 0.747634 | KyrieBang |
8f0e9dd013fce4f3c69f597b357ae41594f5a753 | 9,747 | cc | C++ | lib/render.cc | swwind/aurora | ea8c002d96e9ae4e0f2f73ae6a4692bb531ce46d | [
"MIT"
] | null | null | null | lib/render.cc | swwind/aurora | ea8c002d96e9ae4e0f2f73ae6a4692bb531ce46d | [
"MIT"
] | null | null | null | lib/render.cc | swwind/aurora | ea8c002d96e9ae4e0f2f73ae6a4692bb531ce46d | [
"MIT"
] | null | null | null | #include "render.h"
SDL_Window* gWindow = NULL;
SDL_Renderer* gRenderer = NULL;
std::map<int, SDL_Texture*> textureMap;
std::map<int, TTF_Font*> fontMap;
std::map<int, Mix_Music*> musicMap;
std::map<int, Mix_Chunk*> soundMap;
int tcnt = 0, fcnt = 0, mcnt = 0, scnt = 0;
std::vector<Napi::ThreadSafeFunction>
keyEvent... | 25.186047 | 105 | 0.674156 | swwind |
8f108241458a4ad128cca62cbbac1b351372bafa | 2,215 | hpp | C++ | tests/phmap/tracked.hpp | phprus/gtl | f80aefde2b3b1b57c0cbf467f6897561e2f889ad | [
"Apache-2.0"
] | 3 | 2022-03-09T05:56:37.000Z | 2022-03-29T15:32:53.000Z | tests/phmap/tracked.hpp | phprus/gtl | f80aefde2b3b1b57c0cbf467f6897561e2f889ad | [
"Apache-2.0"
] | 6 | 2022-03-09T18:46:55.000Z | 2022-03-29T12:57:26.000Z | tests/phmap/tracked.hpp | phprus/gtl | f80aefde2b3b1b57c0cbf467f6897561e2f889ad | [
"Apache-2.0"
] | 1 | 2022-03-09T05:56:39.000Z | 2022-03-09T05:56:39.000Z | // Copyright 2018 The Abseil Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 28.037975 | 79 | 0.679458 | phprus |
8f10dc394b595e2d21cd3ec7347a61468efb466e | 1,071 | hpp | C++ | modules/boost/simd/sdk/include/boost/simd/sdk/simd/pack/meta/model_of.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | 2 | 2016-09-14T00:23:53.000Z | 2018-01-14T12:51:18.000Z | modules/boost/simd/sdk/include/boost/simd/sdk/simd/pack/meta/model_of.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/sdk/include/boost/simd/sdk/simd/pack/meta/model_of.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | null | null | null | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 31.5 | 80 | 0.547152 | pbrunet |
8f146a6baded3606ecf981d6a0093b49d85f7dd5 | 1,221 | cpp | C++ | reporting/performance/logsumexp_performance.cpp | grlee77/math | e8c40e309cc32d43fbe42c49d9ec7da7cdb79418 | [
"BSL-1.0"
] | null | null | null | reporting/performance/logsumexp_performance.cpp | grlee77/math | e8c40e309cc32d43fbe42c49d9ec7da7cdb79418 | [
"BSL-1.0"
] | null | null | null | reporting/performance/logsumexp_performance.cpp | grlee77/math | e8c40e309cc32d43fbe42c49d9ec7da7cdb79418 | [
"BSL-1.0"
] | null | null | null | // (C) Copyright Matt Borland 2022.
// Use, modification and distribution are subject to 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 <vector>
#include <benchmark/benchmark.h>
#include <boost/math/special_functions/l... | 37 | 128 | 0.732187 | grlee77 |
8f15eeb33f2d1cdf88314c41d31f9f5c75497fdc | 1,933 | cpp | C++ | IcarusDetector/Behaviors/SendingCommand.cpp | RoboPioneers/ProjectIcarus | 85328c0206d77617fe7fbb81b2ca0cda805de849 | [
"MIT"
] | 1 | 2021-10-05T03:43:57.000Z | 2021-10-05T03:43:57.000Z | IcarusDetector/Behaviors/SendingCommand.cpp | RoboPioneers/ProjectIcarus | 85328c0206d77617fe7fbb81b2ca0cda805de849 | [
"MIT"
] | null | null | null | IcarusDetector/Behaviors/SendingCommand.cpp | RoboPioneers/ProjectIcarus | 85328c0206d77617fe7fbb81b2ca0cda805de849 | [
"MIT"
] | null | null | null | #include "SendingCommand.hpp"
#include <sw/redis++/redis++.h>
#include "../Modules/GeneralMessageTranslator.hpp"
#include "TurretCommand.pb.h"
namespace Icarus
{
using namespace Gaia::BehaviorTree;
void SendingCommand::OnInitialize()
{
InitializeFacilities();
auto connection = GetBlackboar... | 35.796296 | 96 | 0.638386 | RoboPioneers |
8f1703db107c1a8ca04f23a1c0f80e2877217378 | 1,305 | hpp | C++ | experimental/Pomdog.Experimental/Actions/ScaleToAction.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Actions/ScaleToAction.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Actions/ScaleToAction.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include "detail/TemporalAction.hpp"
#include "Pomdog.Experimental/Gameplay/Entity.hpp"
#include "Pomdog.Experimental/Gameplay2D/Transform.hpp"
#include "Pomdog/Math/Vector3.hpp"
#include "Pomdog/Utility/Assert.hpp"
namespace Pomdog... | 24.166667 | 81 | 0.695785 | ValtoForks |
8f1cae6fa2350fbfcbdff334e819bdd69797e002 | 9,227 | cpp | C++ | bootstrap_semantic.cpp | marionette-of-u/kp19pp | 61a80859774e4c391b9a6e2b2e98387bacb92410 | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2015-12-16T05:33:11.000Z | 2018-06-06T14:18:31.000Z | bootstrap_semantic.cpp | marionette-of-u/kp19pp | 61a80859774e4c391b9a6e2b2e98387bacb92410 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | bootstrap_semantic.cpp | marionette-of-u/kp19pp | 61a80859774e4c391b9a6e2b2e98387bacb92410 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <unordered_map>
#include <cstdlib>
#include "scanner_lexer.hpp"
#include "scanner.hpp"
#include "exception.hpp"
namespace kp19pp{
namespace scanner{
namespace semantic_action{
typedef scanner_type::token_type to... | 39.431624 | 222 | 0.687873 | marionette-of-u |
8f22289c193a2e7de5bff6bcaf9bd657d9174f5a | 2,882 | cpp | C++ | source/Camera.cpp | planetpratik/Alphonso-Graphics-Engine | d31b46fa5c34862e6e67d07fc99f34f63065929c | [
"MIT"
] | 2 | 2019-09-16T04:44:02.000Z | 2020-03-06T08:24:33.000Z | source/Camera.cpp | planetpratik/Alphonso-Graphics-Engine | d31b46fa5c34862e6e67d07fc99f34f63065929c | [
"MIT"
] | null | null | null | source/Camera.cpp | planetpratik/Alphonso-Graphics-Engine | d31b46fa5c34862e6e67d07fc99f34f63065929c | [
"MIT"
] | null | null | null | #pragma once
#include "Camera.h"
#define UNREFERENCED_PARAMETER(P) (P)
using namespace glm;
namespace AlphonsoGraphicsEngine
{
const float Camera::DefaultFieldOfView = 45.0f;
const float Camera::DefaultNearPlaneDistance = 0.1f;
const float Camera::DefaultFarPlaneDistance = 10.0f;
Camera::Camera(RendererC& rende... | 20.884058 | 163 | 0.719986 | planetpratik |
8f23fdc865ff8012af8949afdf760c16bd07da0a | 1,131 | cpp | C++ | test/function/scalar/rem_pio2.cpp | TobiasLudwig/boost.simd | c04d0cc56747188ddb9a128ccb5715dd3608dbc1 | [
"BSL-1.0"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | test/function/scalar/rem_pio2.cpp | remymuller/boost.simd | 3caefb7ee707e5f68dae94f8f31f72f34b7bb5de | [
"BSL-1.0"
] | null | null | null | test/function/scalar/rem_pio2.cpp | remymuller/boost.simd | 3caefb7ee707e5f68dae94f8f31f72f34b7bb5de | [
"BSL-1.0"
] | 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)
*/
//====================================... | 32.314286 | 100 | 0.585323 | TobiasLudwig |
8f2699c85a835ae4af3c92fb3242309afa3f6c1f | 510 | cpp | C++ | gcommon/source/gmeshedgenormaldynamic.cpp | DavidCoenFish/ancient-code-0 | 243fb47b9302a77f9b9392b6e3f90bba2ef3c228 | [
"Unlicense"
] | null | null | null | gcommon/source/gmeshedgenormaldynamic.cpp | DavidCoenFish/ancient-code-0 | 243fb47b9302a77f9b9392b6e3f90bba2ef3c228 | [
"Unlicense"
] | null | null | null | gcommon/source/gmeshedgenormaldynamic.cpp | DavidCoenFish/ancient-code-0 | 243fb47b9302a77f9b9392b6e3f90bba2ef3c228 | [
"Unlicense"
] | null | null | null | //
// GMeshEdgeNormalDynamic.cpp
//
// Created by David Coen on 2011 03 30
// Copyright 2010 Pleasure seeking morons. All rights reserved.
//
#include "GMeshEdgeNormalDynamic.h"
//constructor
GMeshEdgeNormalDynamic::GMeshEdgeNormalDynamic(
const int in_vertexIndex0,
const int in_vertexIndex1,
const int in_verte... | 18.888889 | 64 | 0.780392 | DavidCoenFish |
8f294933649aa45b9af001d6d61907e0686a4b0b | 2,464 | cpp | C++ | c++/0088-merge-sorted-array.cpp | aafulei/leetcode | e3a0ef9c912abf99a1d6e56eff8802ba44b0057d | [
"MIT"
] | 2 | 2019-04-13T09:55:04.000Z | 2019-05-16T12:47:40.000Z | c++/0088-merge-sorted-array.cpp | aafulei/leetcode | e3a0ef9c912abf99a1d6e56eff8802ba44b0057d | [
"MIT"
] | null | null | null | c++/0088-merge-sorted-array.cpp | aafulei/leetcode | e3a0ef9c912abf99a1d6e56eff8802ba44b0057d | [
"MIT"
] | null | null | null | // 22/06/07 = Tue
// 18/12/26 = Wed
// 88. Merge Sorted Array [Easy]
// You are given two integer arrays nums1 and nums2, sorted in non-decreasing
// order, and two integers m and n, representing the number of elements in nums1
// and nums2 respectively.
// Merge nums1 and nums2 into a single array sorted in non-dec... | 32.421053 | 80 | 0.57711 | aafulei |
8f2d2d22e31511a19c9487bc80eae1f977eaefdf | 1,281 | cpp | C++ | src/cppstubs.cpp | erikvanhamme/ecppstm32 | 4f265bf649be0a5d6c0ed333d27a10c21e90166e | [
"Apache-2.0"
] | 1 | 2019-06-25T14:28:51.000Z | 2019-06-25T14:28:51.000Z | src/cppstubs.cpp | erikvanhamme/ecppstm32 | 4f265bf649be0a5d6c0ed333d27a10c21e90166e | [
"Apache-2.0"
] | null | null | null | src/cppstubs.cpp | erikvanhamme/ecppstm32 | 4f265bf649be0a5d6c0ed333d27a10c21e90166e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 Erik Van Hamme
*
* 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 ... | 23.722222 | 75 | 0.674473 | erikvanhamme |
8f31ef0280910e22f1165dc29021556314c67555 | 11,619 | cpp | C++ | lib/seldon/lib/template-Blas.cpp | HongyuHe/lsolver | c791bf192308ba6b564cb60cb3991d2e72093cd7 | [
"Apache-2.0"
] | 7 | 2021-01-31T23:20:07.000Z | 2021-09-09T20:54:15.000Z | lib/seldon/lib/template-Blas.cpp | HongyuHe/lsolver | c791bf192308ba6b564cb60cb3991d2e72093cd7 | [
"Apache-2.0"
] | 1 | 2021-06-07T07:52:38.000Z | 2021-08-13T20:40:55.000Z | lib/seldon/lib/template-Blas.cpp | HongyuHe/lsolver | c791bf192308ba6b564cb60cb3991d2e72093cd7 | [
"Apache-2.0"
] | null | null | null | #ifndef SELDON_WITH_BLAS
#define SELDON_WITH_BLAS
#endif
#ifndef SELDON_WITH_LAPACK
#define SELDON_WITH_LAPACK
#endif
#include "SeldonHeader.hxx"
#ifndef SELDON_WITH_COMPILED_LIBRARY
#include "vector/Vector.cxx"
#include "matrix/Matrix_Base.cxx"
#include "matrix/Matrix_Pointers.cxx"
#include "matrix/Matrix_Symmetric.... | 83.589928 | 297 | 0.785093 | HongyuHe |
8f33db63665776258e8672f3b69f76bbb5933c38 | 12,342 | cpp | C++ | src/MainUi.cpp | membranesoftware/membrane-medialibraryui | 3e95d0b7991075386e442fec006f2fdc4257746c | [
"BSD-3-Clause"
] | null | null | null | src/MainUi.cpp | membranesoftware/membrane-medialibraryui | 3e95d0b7991075386e442fec006f2fdc4257746c | [
"BSD-3-Clause"
] | null | null | null | src/MainUi.cpp | membranesoftware/membrane-medialibraryui | 3e95d0b7991075386e442fec006f2fdc4257746c | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2018-2021 Membrane Software <author@membranesoftware.com> https://membranesoftware.com
*
* 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... | 32.737401 | 346 | 0.72549 | membranesoftware |
8f3846c38b07855eb813fe65418b785ec1ba87aa | 1,442 | cpp | C++ | Contests/USACO Solutions/2016-17/Open 2017/Silver/17 Open S2.cpp | nocrizwang/USACO | 8a922f8d4b3bc905da97f53f9a447debe97d5e81 | [
"CC0-1.0"
] | 1,760 | 2017-05-21T21:07:06.000Z | 2022-03-29T13:15:08.000Z | Contests/USACO Solutions/2016-17/Open 2017/Silver/17 Open S2.cpp | nocrizwang/USACO | 8a922f8d4b3bc905da97f53f9a447debe97d5e81 | [
"CC0-1.0"
] | 12 | 2018-01-24T02:41:53.000Z | 2022-03-17T13:09:26.000Z | Contests/USACO Solutions/2016-17/Open 2017/Silver/17 Open S2.cpp | nocrizwang/USACO | 8a922f8d4b3bc905da97f53f9a447debe97d5e81 | [
"CC0-1.0"
] | 473 | 2017-07-06T04:53:41.000Z | 2022-03-28T13:03:28.000Z | #include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pi;
template <class T> using Tree = tree<T, null_type, less<T>, rb_tree_tag,tree_order_statistic... | 22.184615 | 107 | 0.539528 | nocrizwang |
8f39482c56618b2c605d277ce6fc27ad76feb891 | 967 | cpp | C++ | OscillatorDPW.cpp | VSIONHAIRIES/CHEAP-FAT-OPEN | 36862751bd4f872cc510dfb205e9b1103d8cf6b8 | [
"MIT"
] | null | null | null | OscillatorDPW.cpp | VSIONHAIRIES/CHEAP-FAT-OPEN | 36862751bd4f872cc510dfb205e9b1103d8cf6b8 | [
"MIT"
] | null | null | null | OscillatorDPW.cpp | VSIONHAIRIES/CHEAP-FAT-OPEN | 36862751bd4f872cc510dfb205e9b1103d8cf6b8 | [
"MIT"
] | null | null | null | #include "OscillatorDPW.h"
OscillatorDPW::OscillatorDPW(): Oscillator() {
AudioOut = new AudioNodeOutput(this, &_osc);
_acc = 0;
_f0 = 1; // we should not divide by zero!!!!
_fs = (int64_t(48000) << 32); // placeholder until the below works // bitshift up with 32 then divide by 4, is the same as bitshifting up wit... | 31.193548 | 146 | 0.622544 | VSIONHAIRIES |
8f3ab0f31ad5b641201d339bfddc6e3a34898700 | 527 | cpp | C++ | Atomic/AtMem.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | 4 | 2019-11-10T21:56:40.000Z | 2021-12-11T20:10:55.000Z | Atomic/AtMem.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | null | null | null | Atomic/AtMem.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | 1 | 2019-11-11T08:38:59.000Z | 2019-11-11T08:38:59.000Z | #include "AtIncludes.h"
#include "AtMem.h"
// The below global objects MUST be initialized before code that may call the allocation functions in AtMem.h
#pragma warning (push)
#pragma warning (disable: 4073) // L3: initializers put in library initialization area
#pragma init_seg (lib)
#pragma warning (pop)
... | 21.08 | 110 | 0.690702 | denisbider |
8f3ed7695e438ba20f25549b9020bd0602463033 | 462 | cpp | C++ | solutions/URI_1329 - (2322746) - Accepted.cpp | KelwinKomka/URI-Online-Judge-1 | 3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6 | [
"MIT"
] | null | null | null | solutions/URI_1329 - (2322746) - Accepted.cpp | KelwinKomka/URI-Online-Judge-1 | 3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6 | [
"MIT"
] | null | null | null | solutions/URI_1329 - (2322746) - Accepted.cpp | KelwinKomka/URI-Online-Judge-1 | 3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, const char * argv[])
{
int x, y, n, num;
while(cin >> n && n != 0) {
x = 0;
y = 0;
for(; n > 0; n--){
cin >> num;
if(num == 0)
x++;
else
... | 17.769231 | 81 | 0.32684 | KelwinKomka |
8f413151c01347deb426f68e3dcbb068e665b3bd | 35,772 | cpp | C++ | Zaimoni.STL/OS/console.cpp | zaimoni/Franc | 54c41949676e0e4e2fdba00b7bb7813b1b45e649 | [
"BSL-1.0"
] | null | null | null | Zaimoni.STL/OS/console.cpp | zaimoni/Franc | 54c41949676e0e4e2fdba00b7bb7813b1b45e649 | [
"BSL-1.0"
] | null | null | null | Zaimoni.STL/OS/console.cpp | zaimoni/Franc | 54c41949676e0e4e2fdba00b7bb7813b1b45e649 | [
"BSL-1.0"
] | null | null | null | // Console.cxx
// implementation of VConsole
// NOTE: this is OS-sensitive
// Logical windows:
// top half: Franci
// bottom half: user
// 1st line of bottom half: user name
// 1st line of top half, or title bar: Franci
// headers
#include "console.hpp"
// to be initialized by the application
Consol... | 27.751746 | 118 | 0.699625 | zaimoni |
8f422cbdf2c2815681c2c5de887c3acc5548e9e0 | 21,089 | hpp | C++ | src/SDDK/wf_trans.hpp | ckae95/SIRIUS | ecb7edb4f19577c85b0cec82aa6a0d5374ee1f33 | [
"BSD-2-Clause"
] | null | null | null | src/SDDK/wf_trans.hpp | ckae95/SIRIUS | ecb7edb4f19577c85b0cec82aa6a0d5374ee1f33 | [
"BSD-2-Clause"
] | null | null | null | src/SDDK/wf_trans.hpp | ckae95/SIRIUS | ecb7edb4f19577c85b0cec82aa6a0d5374ee1f33 | [
"BSD-2-Clause"
] | null | null | null | /// Linear transformation of the wave-functions.
/** The transformation matrix is expected in the CPU memory. */
template <typename T>
inline void transform(device_t pu__,
int ispn__,
double alpha__,
... | 45.647186 | 158 | 0.437242 | ckae95 |
8f42af672d54dfd800bcc91efc2b0398649334a6 | 5,376 | cpp | C++ | isis/src/base/objs/Gui/GuiCubeParameter.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 134 | 2018-01-18T00:16:24.000Z | 2022-03-24T03:53:33.000Z | isis/src/base/objs/Gui/GuiCubeParameter.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 3,825 | 2017-12-11T21:27:34.000Z | 2022-03-31T21:45:20.000Z | isis/src/base/objs/Gui/GuiCubeParameter.cpp | jlaura/isis3 | 2c40e08caed09968ea01d5a767a676172ad20080 | [
"CC0-1.0"
] | 164 | 2017-11-30T21:15:44.000Z | 2022-03-23T10:22:29.000Z | /** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0 ... | 28.748663 | 79 | 0.629836 | kdl222 |
8f46a3de19bd49938a996e2572c3461888f23919 | 972 | cpp | C++ | PAT_A/PAT_A1071.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | 3 | 2019-07-08T05:20:28.000Z | 2021-09-22T10:53:26.000Z | PAT_A/PAT_A1071.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | null | null | null | PAT_A/PAT_A1071.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
string str, res;
int resNum = -1;
unordered_map<string, int> counts;
int main()
{
getline(cin, str);
int j = 0;
for (int i = 0; i < str.size(); i = j)
{
j = i;
string word = "";
while (j < str.size() && ((str[j] >= 'A' && str[j] <= '... | 23.707317 | 140 | 0.388889 | EnhydraGod |
8f47c70b229f8dfc7202775d940b36a75eaa1e51 | 1,737 | cpp | C++ | 10114 - Loansome Car Buyer/10114 - Loansome Car Buyer/main.cpp | anirudha-ani/UVa | 236f8cc2f357fa28abff05861afa45aa3419b6c3 | [
"Apache-2.0"
] | null | null | null | 10114 - Loansome Car Buyer/10114 - Loansome Car Buyer/main.cpp | anirudha-ani/UVa | 236f8cc2f357fa28abff05861afa45aa3419b6c3 | [
"Apache-2.0"
] | null | null | null | 10114 - Loansome Car Buyer/10114 - Loansome Car Buyer/main.cpp | anirudha-ani/UVa | 236f8cc2f357fa28abff05861afa45aa3419b6c3 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <cstring>
#include <string>
using namespace std;
int main()
{
int loan_duration , number_of_depriciation_recorded;
double down_payment , initial_loan;
while(scanf("%d %lf %lf %d", &loan_duration , & down_payment , &initial_loan , &number_of_depriciation_... | 27.571429 | 117 | 0.52274 | anirudha-ani |
8f47ee56cb447aed652640de5a07933a231d143a | 2,880 | cpp | C++ | src/frameworks/av/media/libmediaextractor/DataSourceBase.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/av/media/libmediaextractor/DataSourceBase.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/av/media/libmediaextractor/DataSourceBase.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2009 The Android Open Source Project
*
* 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 app... | 21.984733 | 83 | 0.6 | dAck2cC2 |
8f494c78b3e49366b93667a3aeafa1d108eff619 | 30,654 | cpp | C++ | src/util/IntegrateDimension.cpp | paullric/tempestextremes | a478fe4bd204fb83b00ba87708f9d21791260f9c | [
"Unlicense"
] | 38 | 2016-08-02T14:44:37.000Z | 2022-03-19T11:54:48.000Z | src/util/IntegrateDimension.cpp | ClimateGlobalChange/tempestextremes | 08401d5ed96fee1def58419479d0d0e2cfa7a703 | [
"Unlicense"
] | 32 | 2016-07-27T21:20:32.000Z | 2022-03-31T04:16:28.000Z | src/util/IntegrateDimension.cpp | paullric/tempestextremes | a478fe4bd204fb83b00ba87708f9d21791260f9c | [
"Unlicense"
] | 16 | 2017-09-30T09:03:46.000Z | 2022-03-18T08:44:25.000Z | ///////////////////////////////////////////////////////////////////////////////
///
/// \file IntegrateDimension.cpp
/// \author Paul Ullrich
/// \version December 26th, 2020
///
/// <remarks>
/// Copyright 2020 Paul Ullrich
///
/// This file is distributed as part of the Tempest source code package.
/// Permiss... | 30.963636 | 140 | 0.619886 | paullric |
8f495e13ad960055227d17a352fe157ded8f32ec | 1,054 | hpp | C++ | libs/core/include/fcppt/container/grid/in_range.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/include/fcppt/container/grid/in_range.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/include/fcppt/container/grid/in_range.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_CONTAINER_GRID_IN_RANGE_HPP_INCLUDED
#define FCPPT_CONTAINER_GRID_IN_RANGE_HPP_INCLUD... | 30.114286 | 90 | 0.740038 | freundlich |
8f4cd3f938f0ca768f22c5c7a2c94cc18d16dca7 | 3,844 | hpp | C++ | lib/dmitigr/util/debug.hpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | lib/dmitigr/util/debug.hpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | lib/dmitigr/util/debug.hpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | // -*- C++ -*-
// Copyright (C) Dmitry Igrishin
// For conditions of distribution and use, see files LICENSE.txt or util.hpp
#ifndef DMITIGR_UTIL_DEBUG_HPP
#define DMITIGR_UTIL_DEBUG_HPP
#include "dmitigr/util/macros.hpp"
#include <cstdio>
#include <stdexcept>
namespace dmitigr {
/**
* @brief The debug mode indic... | 31.768595 | 134 | 0.603278 | thevojacek |
8f4ddc3fad2a6a2e1403f1446267976ae2053673 | 1,074 | cpp | C++ | string_playing/string_playing/main.cpp | silentShadow/C-plus-plus | fb0108beb83f69d0c207f75dc29fae8c1657121c | [
"MIT"
] | null | null | null | string_playing/string_playing/main.cpp | silentShadow/C-plus-plus | fb0108beb83f69d0c207f75dc29fae8c1657121c | [
"MIT"
] | null | null | null | string_playing/string_playing/main.cpp | silentShadow/C-plus-plus | fb0108beb83f69d0c207f75dc29fae8c1657121c | [
"MIT"
] | null | null | null | //
// main.cpp
// string_playing
//
// Rev: 1
// Created by Jonathan Reiter on 6/8/16.
// Copyright © 2016 Jonathan Reiter. All rights reserved.
//
#include <iostream>
#include <cstring>
#define STRMAX 300
using namespace std;
int main() {
//char s[20];
char str[STRMAX];
char name[100];
cha... | 19.178571 | 58 | 0.540968 | silentShadow |
8f4e219558db87ad458179e40301a06cdbfaf031 | 2,042 | cpp | C++ | src/anim3/WxStageCanvas.cpp | xzrunner/easyone | c6cc33585a3a5affd44e51938a1bae5b146ab7af | [
"MIT"
] | 1 | 2020-07-07T07:14:01.000Z | 2020-07-07T07:14:01.000Z | src/anim3/WxStageCanvas.cpp | xzrunner/easyone | c6cc33585a3a5affd44e51938a1bae5b146ab7af | [
"MIT"
] | null | null | null | src/anim3/WxStageCanvas.cpp | xzrunner/easyone | c6cc33585a3a5affd44e51938a1bae5b146ab7af | [
"MIT"
] | null | null | null | #include "anim3/WxStageCanvas.h"
#ifdef MODULE_ANIM3
#include "anim3/WxStagePage.h"
#include "frame/WxStagePage.h"
#include <ee0/WxStagePage.h>
#include <ee0/SubjectMgr.h>
#include <model/Model.h>
#include <node0/SceneNode.h>
#include <node3/CompModel.h>
#include <node3/CompModelInst.h>
#include <node3/RenderSyste... | 24.023529 | 81 | 0.670421 | xzrunner |
8f4ec57cf153b478c713eab1e116468a44e006f3 | 5,684 | cpp | C++ | robot_by_robot/primitives.cpp | gfonsecabr/shadoks-robots | 04dc95e05cf7bf04545e72e2bbf4bda524d06594 | [
"MIT"
] | null | null | null | robot_by_robot/primitives.cpp | gfonsecabr/shadoks-robots | 04dc95e05cf7bf04545e72e2bbf4bda524d06594 | [
"MIT"
] | null | null | null | robot_by_robot/primitives.cpp | gfonsecabr/shadoks-robots | 04dc95e05cf7bf04545e72e2bbf4bda524d06594 | [
"MIT"
] | null | null | null | // CG:SHOP 2021 Coordinated Motion Planning - Shadoks Team
//
// Elementary classes
//
/**
* MIT License
*
* Copyright (c) 2020 Guilherme Dias da Fonseca <gfonsecabr@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (... | 23.487603 | 91 | 0.606967 | gfonsecabr |
8f52b68aee2583c26c8e6168d3f9178ddce7fbfe | 2,076 | cpp | C++ | src/pheromones/tests/UserCallRequestDTOUnitTests.cpp | SwarmUS/Propolis | 0d23dd862638ad8442ad6995ddf0563583fe955c | [
"MIT"
] | null | null | null | src/pheromones/tests/UserCallRequestDTOUnitTests.cpp | SwarmUS/Propolis | 0d23dd862638ad8442ad6995ddf0563583fe955c | [
"MIT"
] | 3 | 2021-01-31T14:03:05.000Z | 2021-04-22T21:02:55.000Z | src/pheromones/tests/UserCallRequestDTOUnitTests.cpp | SwarmUS/Propolis | 0d23dd862638ad8442ad6995ddf0563583fe955c | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <pheromones/UserCallRequestDTO.h>
class UserCallRequestDTOFixture : public testing::Test {
public:
static constexpr UserCallTargetDTO gc_src = UserCallTargetDTO::BUZZ;
static constexpr UserCallTargetDTO gc_dest = UserCallTargetDTO::BUZZ;
UserCallRequestDTO* m_request;
... | 28.833333 | 99 | 0.740848 | SwarmUS |
8f54b3f0e88f892b1d0998ed0640f4c462ecfb4d | 720 | cpp | C++ | src/QtComponents/Traditions/nScrollArea.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | src/QtComponents/Traditions/nScrollArea.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | src/QtComponents/Traditions/nScrollArea.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | #include <qtcomponents.h>
N::ScrollArea :: ScrollArea ( QWidget * parent , Plan * p )
: QScrollArea ( parent )
, VirtualGui ( this , p )
{
addIntoWidget ( parent , this ) ;
setAttribute ( Qt::WA_InputMethodEnabled ) ;
addCon... | 28.8 | 60 | 0.418056 | Vladimir-Lin |
8f56348b62a8478749caf7983bf269f7b39702f6 | 11,052 | cpp | C++ | Terminal/Source/Encoding.cpp | Gravecat/BearLibTerminal | 64fec04101350a99a71db872c513e17bdd2cc94d | [
"MIT"
] | 80 | 2020-06-17T15:26:27.000Z | 2022-03-29T11:17:01.000Z | Terminal/Source/Encoding.cpp | Gravecat/BearLibTerminal | 64fec04101350a99a71db872c513e17bdd2cc94d | [
"MIT"
] | 11 | 2020-07-19T15:22:06.000Z | 2022-03-31T03:33:13.000Z | Terminal/Source/Encoding.cpp | Gravecat/BearLibTerminal | 64fec04101350a99a71db872c513e17bdd2cc94d | [
"MIT"
] | 18 | 2020-09-16T01:29:46.000Z | 2022-03-27T18:48:09.000Z | /*
* BearLibTerminal
* Copyright (C) 2013-2016 Cfyz
*
* 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, modif... | 26.12766 | 125 | 0.606225 | Gravecat |
8f58886851d61f364d1c797d6fa3947c1dc70f0f | 2,003 | cpp | C++ | modules/cpp-core-mmciflib-wrapper-gen/src/wrapDictDataInfo.cpp | epeisach/py-mmcif | f44cb8e4a1699c1f254f873fadced1f4461763f6 | [
"Apache-2.0"
] | 9 | 2019-08-29T09:43:02.000Z | 2022-01-11T01:00:39.000Z | modules/cpp-core-mmciflib-wrapper-gen/src/wrapDictDataInfo.cpp | epeisach/py-mmcif | f44cb8e4a1699c1f254f873fadced1f4461763f6 | [
"Apache-2.0"
] | 7 | 2018-07-03T16:04:38.000Z | 2022-03-23T05:54:37.000Z | modules/cpp-core-mmciflib-wrapper-gen/src/wrapDictDataInfo.cpp | epeisach/py-mmcif | f44cb8e4a1699c1f254f873fadced1f4461763f6 | [
"Apache-2.0"
] | 10 | 2019-03-05T18:06:59.000Z | 2022-01-27T03:32:19.000Z | // File: ./src/wrapDictDataInfo.cpp
// Date: 2018-01-10
//
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <string>
#include <vector>
#include "DataInfo.h"
#include "DictObjCont.h"
#include "DictDataInfo.h"
namespace py = pybind11;
using namespace pybind11::literals;
#ifndef BINDER_PYBIND11_TYPE_CAS... | 48.853659 | 180 | 0.717424 | epeisach |
8f5b22d2e2d127643f05cb2dd4e3f534180dda07 | 665 | cpp | C++ | Hackerrank/Mathematics/Number Theory/The Chosen One.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | 5 | 2021-02-14T17:48:21.000Z | 2022-01-24T14:29:44.000Z | Hackerrank/Mathematics/Number Theory/The Chosen One.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | Hackerrank/Mathematics/Number Theory/The Chosen One.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
//tag: gcd();, find a divisor that divides n-1 number in an array;
ll prefix[1000005], suffix[1000005];
int main(){
int n;
cin>>n;
ll arr[n];
for(int i=0;i<n;i++) cin>>arr[i];
if(n==1) {
cout<<arr[0]+1<<endl;
return 0;
}
for(int ... | 14.777778 | 66 | 0.544361 | Sowmik23 |
8f5b9c2586c4d60944c24646a7e55e52ac71041e | 2,854 | cpp | C++ | artoo/src/stm32/hwtimer.cpp | meee1/OpenSolo | 6f299639adbad1e8d573c8ae1135832711b600e4 | [
"Apache-2.0"
] | 68 | 2019-09-23T03:27:05.000Z | 2022-03-12T03:00:41.000Z | artoo/src/stm32/hwtimer.cpp | meee1/OpenSolo | 6f299639adbad1e8d573c8ae1135832711b600e4 | [
"Apache-2.0"
] | 22 | 2019-10-26T20:15:56.000Z | 2022-02-12T05:41:56.000Z | artoo/src/stm32/hwtimer.cpp | meee1/OpenSolo | 6f299639adbad1e8d573c8ae1135832711b600e4 | [
"Apache-2.0"
] | 33 | 2019-09-29T19:52:19.000Z | 2022-03-12T03:00:43.000Z |
#include "hwtimer.h"
bool ALWAYS_INLINE IS_ADVANCED(volatile TIM_t *t) {
return t == &TIM1 || t == &TIM8;
}
void HwTimer::init(uint16_t period_, uint16_t prescaler) const
{
if (tim == &TIM1) {
RCC.APB2ENR |= (1 << 11); // TIM1 enable
RCC.APB2RSTR = (1 << 11); // TIM1 reset
RCC.APB2RST... | 27.980392 | 127 | 0.493343 | meee1 |
8f5c3f86f656e293cdf7be14e086167145a7f20a | 7,441 | cpp | C++ | test/resources/bichos/CEvent.cpp | Manu343726/biicode-common | 91b32c6fd1e4a72ce5451183f1766d313cd0e420 | [
"MIT"
] | 17 | 2015-04-15T09:40:23.000Z | 2017-05-17T20:34:49.000Z | test/resources/bichos/CEvent.cpp | Manu343726/biicode-common | 91b32c6fd1e4a72ce5451183f1766d313cd0e420 | [
"MIT"
] | 2 | 2015-04-22T11:29:36.000Z | 2018-09-25T09:31:09.000Z | test/resources/bichos/CEvent.cpp | bowlofstew/common | 45e9ca902be7bbbdd73dafe3ab8957bc4a006020 | [
"MIT"
] | 22 | 2015-04-15T09:46:00.000Z | 2020-09-29T17:03:31.000Z | //==============================================================================
#include "CEvent.h"
//==============================================================================
CEvent::CEvent() {
}
//------------------------------------------------------------------------------
CEvent::~CEvent() {
//Do... | 27.764925 | 249 | 0.425884 | Manu343726 |
8f5c949fcf8adc83f2fe152869ccbead4343f342 | 557 | cpp | C++ | private/shell/ext/intern/util.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/shell/ext/intern/util.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/shell/ext/intern/util.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | /*****************************************************************************
*
* util.cpp - Shared stuff that operates on all classes
*
*****************************************************************************/
#include "priv.h"
#include "util.h"
HINSTANCE g_hinst; /* My instance h... | 25.318182 | 80 | 0.464991 | King0987654 |
8f5e8b1f7cfc7dbdffefa41bb184de9aeea8396a | 596,867 | cpp | C++ | IOSTEST/Classes/Native/Il2CppGenericMethodTable.cpp | 1085069832/OpenBrushVR | acd5c5b4636d81fda5162d4bfc5381e37237f155 | [
"Unlicense",
"MIT"
] | 203 | 2016-09-04T16:36:34.000Z | 2022-03-16T23:55:18.000Z | IOSTEST/Classes/Native/Il2CppGenericMethodTable.cpp | 1085069832/OpenBrushVR | acd5c5b4636d81fda5162d4bfc5381e37237f155 | [
"Unlicense",
"MIT"
] | 5 | 2016-11-28T06:43:07.000Z | 2018-11-09T21:09:25.000Z | IOSTEST/Classes/Native/Il2CppGenericMethodTable.cpp | 1085069832/OpenBrushVR | acd5c5b4636d81fda5162d4bfc5381e37237f155 | [
"Unlicense",
"MIT"
] | 42 | 2016-09-05T04:05:15.000Z | 2021-06-27T12:26:23.000Z | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
extern const Il2CppGenericMethodF... | 108.897464 | 201 | 0.808066 | 1085069832 |
8f5e951daf815f3a8716c97d339f7049012d80b5 | 539 | hpp | C++ | test/util/memory_input_stream.hpp | falk-werner/nv | 7bb2b71de4333466b91b960f1eda822a73c3382e | [
"MIT"
] | null | null | null | test/util/memory_input_stream.hpp | falk-werner/nv | 7bb2b71de4333466b91b960f1eda822a73c3382e | [
"MIT"
] | null | null | null | test/util/memory_input_stream.hpp | falk-werner/nv | 7bb2b71de4333466b91b960f1eda822a73c3382e | [
"MIT"
] | null | null | null | #ifndef NV_MEMORY_INPUT_STREAM_H
#define NV_MEMORY_INPUT_STREAM_H
#include <cstdio>
#include <string>
namespace nv_test
{
class MemoryInputStream
{
MemoryInputStream(MemoryInputStream const & other) = delete;
MemoryInputStream& operator=(MemoryInputStream const & other) = delete;
public:
MemoryInputStrea... | 18.586207 | 75 | 0.716141 | falk-werner |
8f5fffc7826d74675e32c40ee16410fa0e85320e | 6,048 | cpp | C++ | CFD/src/visualization/visualization.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 1 | 2021-09-10T18:19:16.000Z | 2021-09-10T18:19:16.000Z | CFD/src/visualization/visualization.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | null | null | null | CFD/src/visualization/visualization.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 2 | 2020-04-02T06:46:56.000Z | 2021-06-17T16:47:57.000Z | #include "visualization/visualizer.h"
#include "mesh.h"
#include "cfd_components.h"
#include "graphics/assets/model.h"
#include "graphics/assets/assets.h"
#include "graphics/rhi/draw.h"
#include "components/transform.h"
#include "ecs/ecs.h"
#include "core/time.h"
#include "cfd_ids.h"
#include "core/math/vec3.h"
#inclu... | 33.977528 | 110 | 0.597057 | CompilerLuke |
8f635e69b343e7957a85ffd4f6b90dcea184775b | 5,883 | cpp | C++ | src/net/MosquittoClient.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 7 | 2018-06-09T05:55:59.000Z | 2021-01-05T05:19:02.000Z | src/net/MosquittoClient.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 1 | 2019-12-25T10:39:06.000Z | 2020-01-03T08:35:29.000Z | src/net/MosquittoClient.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 11 | 2018-05-10T08:29:05.000Z | 2020-01-22T20:49:32.000Z | #include <Poco/Clock.h>
#include <Poco/Error.h>
#include <Poco/Exception.h>
#include <Poco/Logger.h>
#include <Poco/Thread.h>
#include <Poco/Net/NetException.h>
#include "di/Injectable.h"
#include "net/MosquittoClient.h"
BEEEON_OBJECT_BEGIN(BeeeOn, MosquittoClient)
BEEEON_OBJECT_CASTABLE(StoppableRunnable)
BEEEON_OBJ... | 22.54023 | 92 | 0.739249 | jalowiczor |
8f65dcadfc53535fdb54577ca97323fb1737accb | 5,420 | cpp | C++ | src/grabbers/realsense_grabber.cpp | taketwo/radical | cce899af3b78a339204eab8201e67d8a6cb98b1a | [
"MIT"
] | 40 | 2016-10-23T06:22:38.000Z | 2021-08-11T04:28:11.000Z | src/grabbers/realsense_grabber.cpp | taketwo/radical | cce899af3b78a339204eab8201e67d8a6cb98b1a | [
"MIT"
] | 14 | 2017-03-29T14:05:28.000Z | 2021-06-25T08:49:48.000Z | src/grabbers/realsense_grabber.cpp | taketwo/radical | cce899af3b78a339204eab8201e67d8a6cb98b1a | [
"MIT"
] | 11 | 2016-07-21T01:56:11.000Z | 2020-10-07T02:40:19.000Z | /******************************************************************************
* Copyright (c) 2016 Sergey Alexandrov
*
* 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 restricti... | 34.303797 | 102 | 0.705351 | taketwo |
8f6664b1559ce5c6a8cf546e759f036587987987 | 533 | cpp | C++ | firmware/blinky_ota/firmware/components/Signal/biquad.cpp | popura/blinky | d9a81c0c0b8789ce9f0d234d1c768dd24f88d257 | [
"MIT"
] | 7 | 2019-04-08T03:37:00.000Z | 2021-09-07T10:02:01.000Z | firmware/blinky_ota/firmware/components/Signal/biquad.cpp | popura/blinky | d9a81c0c0b8789ce9f0d234d1c768dd24f88d257 | [
"MIT"
] | null | null | null | firmware/blinky_ota/firmware/components/Signal/biquad.cpp | popura/blinky | d9a81c0c0b8789ce9f0d234d1c768dd24f88d257 | [
"MIT"
] | 5 | 2019-10-01T06:24:22.000Z | 2022-02-12T03:40:32.000Z | //
// Created by Robin Scheibler
// Copyright (c) 2018 Robin Scheibler. All rights reserved.
//
#include "biquad.h"
Biquad::Biquad(float *_b, float *_a)
{
registers[0] = registers[1] = 0;
for (int i = 0 ; i < 3 ; i++)
b[i] = _b[i];
for (int i = 0 ; i < 2 ; i++)
a[i] = _a[i];
}
float Biquad::process(f... | 21.32 | 72 | 0.572233 | popura |
8f66d1ad15fb38f511743d8149abb95e42bb47f2 | 1,815 | hpp | C++ | kern/i686/video/edid.hpp | greck2908/LudOS | db38455eb33dfc0dfc6d4be102e6bd54d852eee8 | [
"MIT"
] | 44 | 2018-01-28T20:07:48.000Z | 2022-02-11T22:58:49.000Z | kern/i686/video/edid.hpp | greck2908/LudOS | db38455eb33dfc0dfc6d4be102e6bd54d852eee8 | [
"MIT"
] | 2 | 2017-09-12T15:38:16.000Z | 2017-11-05T12:19:01.000Z | kern/i686/video/edid.hpp | greck2908/LudOS | db38455eb33dfc0dfc6d4be102e6bd54d852eee8 | [
"MIT"
] | 8 | 2018-08-17T13:30:57.000Z | 2021-06-25T16:56:12.000Z | /*
edid.hpp
Copyright (c) 04 Yann BOUCHER (yann)
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, publish,... | 27.5 | 78 | 0.766942 | greck2908 |
8f67903672bfd65e415b15508b4d9550cb5084e1 | 350 | cpp | C++ | map/guides_on_map_delegate.cpp | suke-blog/omim | f3e75dad4fc2f8c2ec6f3b48fe3841084f8831eb | [
"Apache-2.0"
] | null | null | null | map/guides_on_map_delegate.cpp | suke-blog/omim | f3e75dad4fc2f8c2ec6f3b48fe3841084f8831eb | [
"Apache-2.0"
] | null | null | null | map/guides_on_map_delegate.cpp | suke-blog/omim | f3e75dad4fc2f8c2ec6f3b48fe3841084f8831eb | [
"Apache-2.0"
] | null | null | null | #include "map/guides_on_map_delegate.hpp"
GuidesOnMapDelegate::GuidesOnMapDelegate(
std::shared_ptr<CatalogHeadersProvider> const & headersProvider)
: m_headersProvider(headersProvider)
{
}
platform::HttpClient::Headers GuidesOnMapDelegate::GetHeaders()
{
if (!m_headersProvider)
return {};
return m_hea... | 21.875 | 68 | 0.777143 | suke-blog |
8f687c7a189551b3b618b9d5e9864a798ad8de2c | 3,972 | cc | C++ | physicalrobots/player/server/drivers/position/snd/gap_and_valley.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | physicalrobots/player/server/drivers/position/snd/gap_and_valley.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | physicalrobots/player/server/drivers/position/snd/gap_and_valley.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
* gap_and_valley.cpp
*
* Copyright 2007 Joey Durham <joey@engineering.ucsb.edu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Licen... | 25.299363 | 202 | 0.657603 | parasol-ppl |
8f6cd6b52732b6fcde7a638d3160ea1c715ad579 | 13,121 | hpp | C++ | Lib/Chip/Unknown/Spansion/MB9BF56xx/CLK_GATING.hpp | cjsmeele/Kvasir | c8d2acd8313ae52d78259ee2d409b963925f77d7 | [
"Apache-2.0"
] | 376 | 2015-07-17T01:41:20.000Z | 2022-03-26T04:02:49.000Z | Lib/Chip/Unknown/Spansion/MB9BF56xx/CLK_GATING.hpp | cjsmeele/Kvasir | c8d2acd8313ae52d78259ee2d409b963925f77d7 | [
"Apache-2.0"
] | 59 | 2015-07-03T21:30:13.000Z | 2021-03-05T11:30:08.000Z | Lib/Chip/Unknown/Spansion/MB9BF56xx/CLK_GATING.hpp | cjsmeele/Kvasir | c8d2acd8313ae52d78259ee2d409b963925f77d7 | [
"Apache-2.0"
] | 53 | 2015-07-14T12:17:06.000Z | 2021-06-04T07:28:40.000Z | #pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
// peripheral CLK_GATING
namespace ClkGatingCken0{ ///< register CKEN0
using Addr = Register::Address<0x4003c100,0xeaf00000,0x00000000,unsigned>;
/// bitfield GIOCK
constexpr Register::FieldLocation<Addr,Register::maskFro... | 72.093407 | 126 | 0.712751 | cjsmeele |
8f70ba2f7017b7aec42075a7fe662b3fa0a9c048 | 7,363 | cpp | C++ | application/applications/comma-options-to-name-value.cpp | mission-systems-pty-ltd/comma | 3ccec0b206fb15a8c048358a7fc01be61a7e4f1e | [
"BSD-3-Clause"
] | 21 | 2015-05-07T06:11:09.000Z | 2022-02-01T09:55:46.000Z | application/applications/comma-options-to-name-value.cpp | mission-systems-pty-ltd/comma | 3ccec0b206fb15a8c048358a7fc01be61a7e4f1e | [
"BSD-3-Clause"
] | 17 | 2015-01-16T01:38:08.000Z | 2020-03-30T09:05:01.000Z | application/applications/comma-options-to-name-value.cpp | mission-systems-pty-ltd/comma | 3ccec0b206fb15a8c048358a7fc01be61a7e4f1e | [
"BSD-3-Clause"
] | 13 | 2016-01-13T01:29:29.000Z | 2022-02-01T09:55:49.000Z | // This file is part of comma, a generic and flexible library
// Copyright (c) 2011 The University of Sydney
// 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 cod... | 56.206107 | 181 | 0.584409 | mission-systems-pty-ltd |
8f737a0a5a429069ae02c6ffa84d8c6d9c888b96 | 2,029 | cc | C++ | mysql-server/sql/dd/impl/bootstrap/bootstrap_ctx.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/sql/dd/impl/bootstrap/bootstrap_ctx.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/sql/dd/impl/bootstrap/bootstrap_ctx.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain so... | 40.58 | 79 | 0.748645 | silenc3502 |
8f74912a7ed21631fc610145fa8ddfb2aaf358e5 | 519 | cpp | C++ | uva/713.cpp | larc/competitive_programming | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | 1 | 2019-05-23T19:05:39.000Z | 2019-05-23T19:05:39.000Z | uva/713.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | uva/713.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | // 713 - Adding Reversed Numbers
#include <cstdio>
#include <cstring>
#define N 202
int main()
{
int n, i;
char A[N], B[N], C[N], a;
scanf("%d", &n);
while(n--)
{
memset(A, 0, sizeof(A));
memset(B, 0, sizeof(B));
scanf("%s %s", A, B);
a = 0;
for(i = 0; A[i] || B[i]; ++i)
{
a += A[i] ? A[i] - '... | 12.069767 | 32 | 0.396917 | larc |
8f77127a0ecb91262cc89e9285994acfbc98d5f9 | 891 | cpp | C++ | P4Library/Commands/P4LoginCommand.cpp | sipe9/PerforceAssist | faf91344c6e6b89b883fbfc799c27b1476eb60ed | [
"MIT"
] | null | null | null | P4Library/Commands/P4LoginCommand.cpp | sipe9/PerforceAssist | faf91344c6e6b89b883fbfc799c27b1476eb60ed | [
"MIT"
] | null | null | null | P4Library/Commands/P4LoginCommand.cpp | sipe9/PerforceAssist | faf91344c6e6b89b883fbfc799c27b1476eb60ed | [
"MIT"
] | null | null | null | #include "P4LoginCommand.hpp"
#include "../Utils/StringUtil.hpp"
#include <sstream>
namespace VersionControl
{
P4LoginCommand::P4LoginCommand(const std::string &password, bool globalTicket) :
P4Command("login"),
m_password(password),
m_loginRequired(false),
m_globalTicket(true)
{
}
bool P... | 18.5625 | 88 | 0.637486 | sipe9 |
8f783361cce71e4dd30ff1dd6d0a857a89b53bdc | 623 | hpp | C++ | DonkeyKom/dk/memory.hpp | branw/DonkeyKom | 3a7b90fc5d7ecf74e511e92da2e93baa148cf685 | [
"MIT"
] | 10 | 2018-01-07T09:33:53.000Z | 2021-11-26T03:39:37.000Z | DonkeyKom/dk/memory.hpp | branw/DonkeyKom | 3a7b90fc5d7ecf74e511e92da2e93baa148cf685 | [
"MIT"
] | null | null | null | DonkeyKom/dk/memory.hpp | branw/DonkeyKom | 3a7b90fc5d7ecf74e511e92da2e93baa148cf685 | [
"MIT"
] | 8 | 2018-01-07T09:33:54.000Z | 2019-10-13T15:38:21.000Z | #pragma once
#include <Windows.h>
#include <functional>
namespace dk {
struct memory_manager {
using Callback = std::function<bool(uint64_t, uint8_t *&)>;
memory_manager();
~memory_manager();
uint64_t scan_ranges(char *pool_tag, size_t page_size, Callback page_cb, Callback block_cb);
void map_all_memory(... | 18.323529 | 94 | 0.728732 | branw |
8f7fe1ab27ab28738be85a87e034e7f86e40cf02 | 3,072 | hpp | C++ | src/HYMLS_Householder.hpp | Sbte/hymls | 75cb1e70eb0b3d71085e481cc9d418bdfada1a35 | [
"Apache-2.0"
] | null | null | null | src/HYMLS_Householder.hpp | Sbte/hymls | 75cb1e70eb0b3d71085e481cc9d418bdfada1a35 | [
"Apache-2.0"
] | 17 | 2019-03-12T15:26:53.000Z | 2021-02-02T20:07:02.000Z | src/HYMLS_Householder.hpp | Sbte/hymls | 75cb1e70eb0b3d71085e481cc9d418bdfada1a35 | [
"Apache-2.0"
] | 2 | 2019-07-03T14:29:05.000Z | 2022-02-21T12:44:40.000Z | #ifndef HYMLS_HOUSEHOLDER_H
#define HYMLS_HOUSEHOLDER_H
#include "HYMLS_config.h"
#include "HYMLS_OrthogonalTransform.hpp"
class Epetra_RowMatrixTransposer;
namespace HYMLS {
//! Householder transform I-2vv'/v'v, where v_1=1+sqrt(n) and v_j=1 for 1<j<=n
class Householder : public OrthogonalTransform
{
public:
... | 32 | 90 | 0.740234 | Sbte |
8f824294758884516aa247417f19c241b576e4a4 | 3,981 | hpp | C++ | converter.hpp | YourName0729/B4-S4 | d079849e8d37191938ca18e89cfa5ec33ad9a3a6 | [
"MIT"
] | 1 | 2021-07-10T14:25:25.000Z | 2021-07-10T14:25:25.000Z | converter.hpp | YourName0729/B4-S4 | d079849e8d37191938ca18e89cfa5ec33ad9a3a6 | [
"MIT"
] | null | null | null | converter.hpp | YourName0729/B4-S4 | d079849e8d37191938ca18e89cfa5ec33ad9a3a6 | [
"MIT"
] | null | null | null | #include <vector>
#include <utility>
#include "cnf.hpp"
#include "state.hpp"
class Converter {
public:
Converter(unsigned int h, unsigned int l, unsigned int p) {
height = h + 2, length = l + 2, period = p;
}
CNF& convert() {
cnf.clear();
ruleNeighbor();
ruleWall();
... | 28.640288 | 86 | 0.431299 | YourName0729 |
8f82ce278e9ae7ebef94b522b832d38bbf357cbe | 5,513 | cpp | C++ | Externals/Falcor/Test/Source/DepthStencilStateTest.cpp | guoxx/Playground | bdbef6c7525631eabe37896102d125a03eaec1f3 | [
"MIT"
] | 49 | 2020-11-16T07:50:53.000Z | 2022-03-19T21:54:18.000Z | Test/Source/DepthStencilStateTest.cpp | tfoleyNV/Falcor-old | 2155109af2322f2aa1db2385cde44d1b7507976b | [
"BSD-3-Clause"
] | null | null | null | Test/Source/DepthStencilStateTest.cpp | tfoleyNV/Falcor-old | 2155109af2322f2aa1db2385cde44d1b7507976b | [
"BSD-3-Clause"
] | 5 | 2020-12-15T09:42:17.000Z | 2021-09-11T21:03:52.000Z | /***************************************************************************
# Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of sourc... | 44.459677 | 130 | 0.575186 | guoxx |
8f832afccb1d08aea0c006212bb555db6b49bb9f | 2,820 | cpp | C++ | wrappers/js/odil.cpp | genisysram/odil | e6b12df698ce452f9c5d86858e896e9b6d28cdf0 | [
"CECILL-B"
] | 72 | 2016-02-04T00:41:02.000Z | 2022-03-18T18:10:34.000Z | wrappers/js/odil.cpp | genisysram/odil | e6b12df698ce452f9c5d86858e896e9b6d28cdf0 | [
"CECILL-B"
] | 74 | 2016-01-11T16:04:46.000Z | 2021-11-18T16:36:11.000Z | wrappers/js/odil.cpp | genisysram/odil | e6b12df698ce452f9c5d86858e896e9b6d28cdf0 | [
"CECILL-B"
] | 23 | 2016-04-27T07:14:56.000Z | 2021-09-28T21:59:31.000Z | /*************************************************************************
* odil - Copyright (C) Universite de Strasbourg
* Distributed under the terms of the CeCILL-B license, as published by
* the CEA-CNRS-INRIA. Refer to the LICENSE file or to
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
* for... | 28.484848 | 81 | 0.674823 | genisysram |
8f8403002c26123c21432bece82fdf1f888c9068 | 7,093 | cpp | C++ | src/physics/havok/cloth.cpp | Caprica666/vixen | b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d | [
"BSD-2-Clause"
] | 1 | 2019-02-13T15:39:56.000Z | 2019-02-13T15:39:56.000Z | src/physics/havok/cloth.cpp | Caprica666/vixen | b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d | [
"BSD-2-Clause"
] | null | null | null | src/physics/havok/cloth.cpp | Caprica666/vixen | b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d | [
"BSD-2-Clause"
] | 2 | 2017-11-09T12:06:41.000Z | 2019-02-13T15:40:02.000Z | #include "vixen.h"
#include "physics/havok/vxphysics.h"
#include "physics/havok/vxcloth.h"
#include <Common/Base/KeyCode.h>
#include <Common/Base/hkBase.h>
#include <Common/Base/hkBase.h>
#include <Common/Base/Config/hkConfigVersion.h>
#include <Common/Base/Math/QsTransform/hkQsTransform.h>
#include <Common/Base/Threa... | 24.291096 | 104 | 0.732412 | Caprica666 |
8f889094ecc2f0ab9f75afd7f682153560a5591f | 101 | cpp | C++ | test/common/network/FakeUUIDFactory.cpp | Toinouze/Arthos | fc08d20fb1d9dcd539209f00bf1b6ab00d63bad6 | [
"Apache-2.0"
] | null | null | null | test/common/network/FakeUUIDFactory.cpp | Toinouze/Arthos | fc08d20fb1d9dcd539209f00bf1b6ab00d63bad6 | [
"Apache-2.0"
] | null | null | null | test/common/network/FakeUUIDFactory.cpp | Toinouze/Arthos | fc08d20fb1d9dcd539209f00bf1b6ab00d63bad6 | [
"Apache-2.0"
] | null | null | null | #include "FakeUUIDFactory.h"
UUID FakeUUIDFactory::create() {
return std::to_string(++count);
}
| 16.833333 | 35 | 0.70297 | Toinouze |
8f88edb34ccdd15da81d8370548d741136cd1311 | 1,216 | hpp | C++ | source/code/utilities/filesystem/files/observers/lstat_wrap/lib.hpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/code/utilities/filesystem/files/observers/lstat_wrap/lib.hpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/code/utilities/filesystem/files/observers/lstat_wrap/lib.hpp | UniLang/compiler | c338ee92994600af801033a37dfb2f1a0c9ca897 | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | #pragma once
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <unordered_map>
struct stat Lstat(std::string path_to_file);
size_t Last_Modified_Time_From_Epoch(std::string const& path_to_file);
//checking characteristics of a single file
bool Is_Symbolic_Link(std::string path_to_file);
boo... | 41.931034 | 79 | 0.818257 | luxe |
8f8e159d8afd321d528ac8666bdb57c8dfa181a7 | 2,065 | cpp | C++ | libs/fnd/memory/test/src/unit_test_fnd_memory_uninitialized_default_construct.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/memory/test/src/unit_test_fnd_memory_uninitialized_default_construct.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/memory/test/src/unit_test_fnd_memory_uninitialized_default_construct.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file unit_test_fnd_memory_uninitialized_default_construct.cpp
*
* @brief uninitialized_default_construct のテスト
*
* @author myoukaku
*/
#include <bksge/fnd/memory/uninitialized_default_construct.hpp>
#include <bksge/fnd/memory/destroy.hpp>
#include <bksge/fnd/iterator/begin.hpp>
#include <bksge/... | 21.28866 | 71 | 0.661985 | myoukaku |
8f8fd8262cc962079538fb912250447c2b8afb31 | 94 | cpp | C++ | src/toolchain/core/IL/ILProgram.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | null | null | null | src/toolchain/core/IL/ILProgram.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | null | null | null | src/toolchain/core/IL/ILProgram.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | 2 | 2015-03-03T04:36:51.000Z | 2018-10-01T03:04:11.000Z | #include "ILProgram.h"
ILProgram::ILProgram():Scope(NULL)
{
}
ILProgram::~ILProgram()
{
}
| 7.833333 | 34 | 0.659574 | layerzero |
8f92d3bf2d227d21c08a7dcb71791a3e408045fe | 20,943 | cc | C++ | CAPI/CAPI/CAPI/src/proto/Message2Server.pb.cc | BryantSuen/THUAI4 | 88c4ab90c814b781b0af58e8781720cf32699b48 | [
"MIT"
] | 7 | 2021-03-27T14:23:33.000Z | 2022-03-28T11:16:46.000Z | CAPI/CAPI/CAPI/src/proto/Message2Server.pb.cc | BryantSuen/THUAI4 | 88c4ab90c814b781b0af58e8781720cf32699b48 | [
"MIT"
] | 4 | 2021-03-21T10:56:38.000Z | 2021-04-30T15:02:12.000Z | CAPI/CAPI/CAPI/src/proto/Message2Server.pb.cc | BryantSuen/THUAI4 | 88c4ab90c814b781b0af58e8781720cf32699b48 | [
"MIT"
] | 13 | 2021-03-14T08:57:36.000Z | 2021-09-23T01:09:14.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Message2Server.proto
#include "Message2Server.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>... | 40.984344 | 175 | 0.727689 | BryantSuen |
8f93b88d9773d774a26185d20d22629c58af7c61 | 241 | cpp | C++ | LCOF/62.yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof.cpp | OctopusLian/leetcode-solutions | 40920d11c584504e805d103cdc6ef3f3774172b3 | [
"MIT"
] | 1 | 2020-12-01T18:35:24.000Z | 2020-12-01T18:35:24.000Z | LCOF/62.yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof.cpp | OctopusLian/leetcode-solutions | 40920d11c584504e805d103cdc6ef3f3774172b3 | [
"MIT"
] | 18 | 2020-11-10T05:48:29.000Z | 2020-11-26T08:39:20.000Z | LCOF/62.yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof.cpp | OctopusLian/leetcode-solutions | 40920d11c584504e805d103cdc6ef3f3774172b3 | [
"MIT"
] | 5 | 2020-11-09T07:43:00.000Z | 2021-12-02T14:59:37.000Z | class Solution {
public:
//1,数学+递归
int lastRemaining(int n, int m) {
return f(n,m);
}
int f(int n, int m) {
if (n == 1)
return 0;
int x = f(n - 1, m);
return (m + x) % n;
}
};
| 16.066667 | 37 | 0.40249 | OctopusLian |
8f93c25a0e62e2b4700ad005f1c9d7b5ec665244 | 3,155 | cpp | C++ | demos/sjtwo/oled/source/main.cpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 6 | 2020-06-20T23:56:42.000Z | 2021-12-18T08:13:54.000Z | demos/sjtwo/oled/source/main.cpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 153 | 2020-06-09T14:49:29.000Z | 2022-01-31T16:39:39.000Z | demos/sjtwo/oled/source/main.cpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 10 | 2020-08-02T00:55:38.000Z | 2022-01-24T23:06:51.000Z | #include "peripherals/lpc40xx/gpio.hpp"
#include "peripherals/lpc40xx/spi.hpp"
#include "devices/displays/oled/ssd1306.hpp"
#include "systems/graphics/graphics.hpp"
#include "utility/log.hpp"
#include "utility/time/time.hpp"
int main()
{
sjsu::LogInfo("Starting OLED Application...");
sjsu::lpc40xx::Spi & ssp1 ... | 30.336538 | 80 | 0.640887 | SarahS16 |
8f95b97568538ab829522cdac3e067c78833076c | 3,076 | cpp | C++ | GUI_LabelValuePair.cpp | TheNewBob/IMS2 | 572dcfd4c3621458f01278713437c2aca526d2e6 | [
"MIT"
] | 2 | 2018-01-28T20:07:52.000Z | 2018-03-01T22:41:39.000Z | GUI_LabelValuePair.cpp | TheNewBob/IMS2 | 572dcfd4c3621458f01278713437c2aca526d2e6 | [
"MIT"
] | 6 | 2017-08-26T10:24:48.000Z | 2018-01-28T13:45:34.000Z | GUI_LabelValuePair.cpp | TheNewBob/IMS2 | 572dcfd4c3621458f01278713437c2aca526d2e6 | [
"MIT"
] | null | null | null | #include "GUI_Common.h"
#include "GUI_LabelValuePair.h"
#include "GUI_LabelValuePairState.h"
GUI_LabelValuePair::GUI_LabelValuePair(string _label, string _value, RECT _rect, int _id, GUI_ElementStyle *_style, GUI_font *_valuefont)
: GUI_BaseElement(_rect, _id, _style), label(_label), valuefont(_valuefont)
{
swapStat... | 27.963636 | 180 | 0.730494 | TheNewBob |
8f9885bbeab0b33acc49b50e04af084143c267e1 | 5,572 | cxx | C++ | painty/renderer/src/TextureBrushDictionary.cxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 15 | 2020-04-22T15:18:28.000Z | 2022-03-24T07:48:28.000Z | painty/renderer/src/TextureBrushDictionary.cxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 25 | 2020-04-18T18:55:50.000Z | 2021-05-30T21:26:39.000Z | painty/renderer/src/TextureBrushDictionary.cxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 2 | 2020-09-16T05:55:54.000Z | 2021-01-09T12:09:43.000Z | /**
* @file TextureBrushDictionary.cxx
* @author Thomas Lindemeier
* @brief
* @date 2020-09-29
*
*/
#include "painty/renderer/TextureBrushDictionary.hxx"
#include <filesystem>
#include <fstream>
#include <iostream>
#include <map>
#include <random>
// #include "opencv2/highgui/highgui.hpp"
#inclu... | 30.448087 | 80 | 0.611271 | lindemeier |
8f9c2b9a39f8f684797d7cfbfa8c3831a742d24d | 3,477 | cpp | C++ | Source/ComponentProgressBar.cpp | Project-3-UPC-DDV-BCN/Project3 | 3fb345ce49485ccbc7d03fb320623df6114b210c | [
"MIT"
] | 10 | 2018-01-16T16:18:42.000Z | 2019-02-19T19:51:45.000Z | Source/ComponentProgressBar.cpp | Project-3-UPC-DDV-BCN/Project3 | 3fb345ce49485ccbc7d03fb320623df6114b210c | [
"MIT"
] | 136 | 2018-05-10T08:47:58.000Z | 2018-06-15T09:38:10.000Z | Source/ComponentProgressBar.cpp | Project-3-UPC-DDV-BCN/Project3 | 3fb345ce49485ccbc7d03fb320623df6114b210c | [
"MIT"
] | 1 | 2018-06-04T17:18:40.000Z | 2018-06-04T17:18:40.000Z | #include "ComponentProgressBar.h"
#include "GameObject.h"
#include "ComponentCanvas.h"
#include "ComponentRectTransform.h"
#include "Texture.h"
#include "Application.h"
#include "ModuleResources.h"
ComponentProgressBar::ComponentProgressBar(GameObject * attached_gameobject)
{
SetActive(true);
SetName("ProgressBar");... | 22.875 | 92 | 0.757262 | Project-3-UPC-DDV-BCN |
8f9d7d06b8752e0af1ccf1127dcdcc3e33712842 | 10,043 | cc | C++ | streetlearn/engine/pano_projection.cc | turningpoint1988/streetlearn | dd348cb811064582a77abe855b9ac15799e4a1ef | [
"Apache-2.0"
] | 256 | 2019-01-09T18:00:45.000Z | 2022-03-29T12:56:46.000Z | streetlearn/engine/pano_projection.cc | windstrip/DeepMind-StreetLearn | 35ffa07e053278b4dd88a2a9da9c72f23d1fff58 | [
"Apache-2.0"
] | 11 | 2019-02-05T20:12:18.000Z | 2021-05-24T11:20:13.000Z | streetlearn/engine/pano_projection.cc | windstrip/DeepMind-StreetLearn | 35ffa07e053278b4dd88a2a9da9c72f23d1fff58 | [
"Apache-2.0"
] | 60 | 2019-01-09T18:13:14.000Z | 2022-02-24T07:39:47.000Z | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writ... | 37.898113 | 80 | 0.666534 | turningpoint1988 |
8f9fa97caf1fc74fb3694c47316be88e0157ee4c | 676 | cpp | C++ | learncpp.com/9.14.Q1/main.cpp | kaubu/cpp-projects | 3f2b1de662c275e1aae7ccced669412b628c3bfb | [
"MIT"
] | null | null | null | learncpp.com/9.14.Q1/main.cpp | kaubu/cpp-projects | 3f2b1de662c275e1aae7ccced669412b628c3bfb | [
"MIT"
] | null | null | null | learncpp.com/9.14.Q1/main.cpp | kaubu/cpp-projects | 3f2b1de662c275e1aae7ccced669412b628c3bfb | [
"MIT"
] | 1 | 2021-04-09T13:45:49.000Z | 2021-04-09T13:45:49.000Z | #include <algorithm>
#include <iostream>
#include <string>
int main()
{
std::cout << "How many names do you wish to enter? ";
std::size_t namesAmount{};
std::cin >> namesAmount;
std::string *namesArray{ new std::string[namesAmount]{} };
for (size_t i{ 0 }; i <= namesAmount; ++i)
{
std::cout << "Enter name #"... | 20.484848 | 62 | 0.58432 | kaubu |
8fa2445ef2545e28995155af0ae4b2b25ed6097f | 597 | cc | C++ | crypto/internal.cc | chronos-tachyon/mojo | 8d268932dd927a24a2b5de167d63869484e1433a | [
"MIT"
] | 3 | 2017-04-24T07:00:59.000Z | 2020-04-13T04:53:06.000Z | crypto/internal.cc | chronos-tachyon/mojo | 8d268932dd927a24a2b5de167d63869484e1433a | [
"MIT"
] | 1 | 2017-01-10T04:23:55.000Z | 2017-01-10T04:23:55.000Z | crypto/internal.cc | chronos-tachyon/mojo | 8d268932dd927a24a2b5de167d63869484e1433a | [
"MIT"
] | 1 | 2020-04-13T04:53:07.000Z | 2020-04-13T04:53:07.000Z | // Copyright © 2017 by Donald King <chronos@chronos-tachyon.net>
// Available under the MIT License. See LICENSE for details.
#include "crypto/internal.h"
namespace crypto {
namespace internal {
std::string canonical_name(base::StringPiece in) {
std::string out;
out.reserve(in.size());
for (char ch : in) {
... | 22.961538 | 64 | 0.579564 | chronos-tachyon |
8fa4f728c6b428132adeb9e748c6380f25761b13 | 5,642 | cpp | C++ | src/org/apache/poi/ss/usermodel/DataConsolidateFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/DataConsolidateFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/DataConsolidateFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ss/usermodel/DataConsolidateFunction.java
#include <org/apache/poi/ss/usermodel/DataConsolidateFunction.hpp>
#include <java/io/Serializable.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/Comparable.hpp>
#include <java/lang/Enum.hpp>
#include <java/lang/... | 41.485294 | 197 | 0.706487 | pebble2015 |
8fa5ecfa889230b20409cec510e61b6d1c6e17f7 | 3,353 | cpp | C++ | lib/djvAV/TIFFFunc.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | null | null | null | lib/djvAV/TIFFFunc.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | null | null | null | lib/djvAV/TIFFFunc.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2020 Darby Johnston
// All rights reserved.
#include <djvAV/TIFFFunc.h>
#include <array>
using namespace djv::Core;
namespace djv
{
namespace AV
{
namespace IO
{
namespace TIFF
{
void readPalett... | 31.933333 | 110 | 0.421712 | pafri |
8fa68f10b64065a1e43f7291036da4b7943b8745 | 3,005 | cpp | C++ | IotHttpServer/tests/TestUriParser.cpp | saarbastler/IotHttpServer | f55896950510e7a6403d19ce2f425adae4761b2d | [
"BSD-2-Clause"
] | 1 | 2018-08-26T11:37:31.000Z | 2018-08-26T11:37:31.000Z | IotHttpServer/tests/TestUriParser.cpp | saarbastler/IotHttpServer | f55896950510e7a6403d19ce2f425adae4761b2d | [
"BSD-2-Clause"
] | null | null | null | IotHttpServer/tests/TestUriParser.cpp | saarbastler/IotHttpServer | f55896950510e7a6403d19ce2f425adae4761b2d | [
"BSD-2-Clause"
] | null | null | null | #ifdef IOT_HTTP_SERVER_TESTS
#include <iostream>
#include "../UriParser.h"
//#define BOOST_TEST_MODULE UriParserTest
#include <boost/test/unit_test.hpp>
using namespace saba::web;
BOOST_AUTO_TEST_CASE(UriParserTest_path1)
{
UriParser uriParser("/");
BOOST_CHECK_EQUAL(uriParser.getPath(), "/");
... | 28.349057 | 85 | 0.692512 | saarbastler |
8fa829cf09caf4185924822def95ead5d454d5d3 | 5,300 | cpp | C++ | common/Util.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 272 | 2019-06-27T12:21:49.000Z | 2022-03-23T07:18:33.000Z | common/Util.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 9 | 2019-08-11T13:07:01.000Z | 2022-01-26T12:30:24.000Z | common/Util.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 16 | 2019-09-29T01:41:02.000Z | 2022-03-29T15:51:35.000Z | #include "Util.h"
#include "Enums.h"
#include "../common/Macros.h"
Axis CubeFaceAxisMapping[(uint32_t)CubeFace::COUNT][(uint32_t)NormCoordAxis::COUNT] =
{
{ Axis::Y, Axis::Z, Axis::X },
{ Axis::Y, Axis::Z, Axis::X },
{ Axis::Z, Axis::X, Axis::Y },
{ Axis::Z, Axis::X, Axis::Y },
{ Axis::X, Axis::Y, Axis::Z },
{ A... | 28.648649 | 148 | 0.712264 | enjiushi |
8faccddc8c15d5eca8f759aee1b8a865cb6aade4 | 14,212 | inl | C++ | include/ion/math/matrix.inl | dvdbrink/ion | a5fe2aba7927b7a90e913cbf72325a04172fc494 | [
"MIT"
] | null | null | null | include/ion/math/matrix.inl | dvdbrink/ion | a5fe2aba7927b7a90e913cbf72325a04172fc494 | [
"MIT"
] | null | null | null | include/ion/math/matrix.inl | dvdbrink/ion | a5fe2aba7927b7a90e913cbf72325a04172fc494 | [
"MIT"
] | null | null | null | template<typename T, std::size_t R, std::size_t C>
inline Matrix<T, R, C>::Matrix()
{
for (unsigned int i = 0; i < R; i++)
{
for (unsigned int j = 0; j < C; j++)
{
m[i][j] = (T)((i == j) ? 1 : 0);
}
}
}
template<typename T, std::size_t R, std::size_t C>
inline Matrix<T, ... | 32.822171 | 188 | 0.485787 | dvdbrink |
8fb27bdb97fb335445a8ee19d6b85273db44cc1a | 150 | cpp | C++ | examples/llvm-hello_world/target/branching2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 581 | 2018-06-10T10:37:55.000Z | 2022-03-30T14:56:53.000Z | examples/llvm-hello_world/target/branching2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 172 | 2018-06-13T12:33:26.000Z | 2022-03-26T07:21:41.000Z | examples/llvm-hello_world/target/branching2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 137 | 2018-06-10T10:31:14.000Z | 2022-03-06T11:53:56.000Z | int main(int argc, char **argv) {
int a = 10;
int b = 100;
if (argc - 1) {
a = 20;
} else {
a = 30;
b = 300;
}
return a + b;
} | 13.636364 | 33 | 0.426667 | flix- |
8fb84ea0e291d10742fddeab683b67fcb9cbaef5 | 8,286 | cpp | C++ | SurfaceCtrl/MagicCamera.cpp | Xemuth/SurfaceCtrl | 07167935a0950c22f06fdf2ba2bff7bb3f2dee05 | [
"BSD-2-Clause"
] | 2 | 2020-07-12T21:06:23.000Z | 2021-02-17T11:39:37.000Z | SurfaceCtrl/MagicCamera.cpp | Xemuth/SurfaceCtrl | 07167935a0950c22f06fdf2ba2bff7bb3f2dee05 | [
"BSD-2-Clause"
] | 4 | 2021-02-17T11:38:45.000Z | 2021-03-20T20:27:49.000Z | SurfaceCtrl/MagicCamera.cpp | Xemuth/SurfaceCtrl | 07167935a0950c22f06fdf2ba2bff7bb3f2dee05 | [
"BSD-2-Clause"
] | null | null | null | #include "MagicCamera.h"
namespace Upp{
glm::mat4 MagicCamera::GetProjectionMatrix()const noexcept{
if(type == CameraType::PERSPECTIVE){
return glm::perspective(glm::radians(GetFOV()),float( ScreenSize.cx / ScreenSize.cy),GetDrawDistanceMin(),GetDrawDisanceMax());//We calculate Projection here since multiple camera ... | 35.715517 | 222 | 0.678132 | Xemuth |
8fba64c948f55005b98a0ad4969760169ec7934f | 3,633 | cpp | C++ | src/common/mathematica_graphics_test.cpp | wkrzemien/j-pet-mlem | 4ed746f3fe79890e4141158cd49d1869938105de | [
"Apache-2.0"
] | null | null | null | src/common/mathematica_graphics_test.cpp | wkrzemien/j-pet-mlem | 4ed746f3fe79890e4141158cd49d1869938105de | [
"Apache-2.0"
] | 5 | 2018-08-08T08:26:04.000Z | 2020-05-13T13:33:39.000Z | src/common/mathematica_graphics_test.cpp | wkrzemien/j-pet-mlem | 4ed746f3fe79890e4141158cd49d1869938105de | [
"Apache-2.0"
] | 5 | 2018-06-04T21:04:29.000Z | 2021-07-03T14:19:39.000Z | #include <sstream>
#include "util/test.h"
#include "mathematica_graphics.h"
#include "2d/barrel/square_detector.h"
#include "2d/barrel/scanner_builder.h"
#include "2d/geometry/line_segment.h"
#include "2d/geometry/pixel_grid.h"
#include "2d/barrel/options.h"
#include "common/types.h"
using LOR = PET2D::Barrel::LOR... | 28.382813 | 80 | 0.646573 | wkrzemien |
2631c73522cd8cea585b3cb74ac9e79fc190587e | 8,309 | cpp | C++ | generator/Patch.cpp | jessicalemos/Solar-System | 679b757b18bc5fe4d3c757de271b4639c8e1500d | [
"MIT"
] | null | null | null | generator/Patch.cpp | jessicalemos/Solar-System | 679b757b18bc5fe4d3c757de271b4639c8e1500d | [
"MIT"
] | null | null | null | generator/Patch.cpp | jessicalemos/Solar-System | 679b757b18bc5fe4d3c757de271b4639c8e1500d | [
"MIT"
] | null | null | null | #include "headers/Patch.h"
Patch::Patch(){
}
Patch::Patch(vector<Point> p){
controlPoints = p;
}
void Patch::multMatrixVector(float *m, float *v, float *res){
for (int j = 0; j < 4; ++j){
res[j] = 0;
for (int k = 0; k < 4; ++k)
res[j] += v[k] * m[j * 4 + k];
}
}
Patch::Patch(int tess... | 32.081081 | 121 | 0.479841 | jessicalemos |
26336d63dd840996ce7ce02b9a6a9e6f278e4d1a | 63,888 | cpp | C++ | src/lib/foundations/globals/numerics.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/foundations/globals/numerics.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/foundations/globals/numerics.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | // numerics.cpp
//
// Anton Betten
//
// started: February 11, 2018
#include "foundations.h"
using namespace std;
#define EPSILON 0.01
namespace orbiter {
namespace foundations {
numerics::numerics()
{
}
numerics::~numerics()
{
}
void numerics::vec_print(double *a, int len)
{
int i;
cout << "(";
for... | 19.633682 | 171 | 0.519487 | abetten |
263370c98e163baafdad40ec75d1366c1c1d7de5 | 259 | cpp | C++ | Cpp_Program/File Handling/writelinebyine.cpp | ajaypp123/DataStructure_Competative_Programing | 6d2cbac3498b31655de50cf4dc3f564d52608780 | [
"MIT"
] | null | null | null | Cpp_Program/File Handling/writelinebyine.cpp | ajaypp123/DataStructure_Competative_Programing | 6d2cbac3498b31655de50cf4dc3f564d52608780 | [
"MIT"
] | null | null | null | Cpp_Program/File Handling/writelinebyine.cpp | ajaypp123/DataStructure_Competative_Programing | 6d2cbac3498b31655de50cf4dc3f564d52608780 | [
"MIT"
] | null | null | null | #include<iostream>
#include<fstream>
using namespace std;
int main() {
fstream file;
file.open("file.txt");
string line;
while(line != "end") {
getline(cin, line);
file << line << endl;
}
file.close();
return 0;
} | 16.1875 | 29 | 0.552124 | ajaypp123 |
26352650d1252dd1882ab8b5ba4dd7d98247b782 | 861 | cpp | C++ | SelfProject/DrawAndDrop/mainwindow.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 3 | 2018-12-24T19:35:52.000Z | 2022-02-04T14:45:59.000Z | SelfProject/DrawAndDrop/mainwindow.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | null | null | null | SelfProject/DrawAndDrop/mainwindow.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 1 | 2019-05-09T02:42:40.000Z | 2019-05-09T02:42:40.000Z | #include <QDragEnterEvent>
#include <QDropEvent>
#include <QMimeData>
#include <QTextEdit>
#include "mainwindow.h"
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
textEdit = new QTextEdit;
setCentralWidget(textEdit);
textEdit->setAcceptDrops(false);
setAcceptDrops(true);
setWindowTitle(tr(... | 20.5 | 69 | 0.681765 | xiaohaijin |
26355530e1518b72c5f6e917ab4dd61156635581 | 53,079 | cc | C++ | chrome/browser/extensions/process_manager_browsertest.cc | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | chrome/browser/extensions/process_manager_browsertest.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | chrome/browser/extensions/process_manager_browsertest.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2013 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 <stddef.h>
#include <memory>
#include <utility>
#include "base/callback.h"
#include "base/macros.h"
#include "base/path_service.h"
#include "ba... | 45.522298 | 80 | 0.715273 | google-ar |
26362cf965b782026e910ea37ae72d445615cf61 | 227 | hpp | C++ | all.hpp | cslauritsen/MyThermostat | a0c888a75c1368c9949e1de8cfc6d75c1d8e735c | [
"Apache-2.0"
] | null | null | null | all.hpp | cslauritsen/MyThermostat | a0c888a75c1368c9949e1de8cfc6d75c1d8e735c | [
"Apache-2.0"
] | null | null | null | all.hpp | cslauritsen/MyThermostat | a0c888a75c1368c9949e1de8cfc6d75c1d8e735c | [
"Apache-2.0"
] | null | null | null | #include "MyThermostat.hpp"
#if defined(__APPLE__) || defined(__linux)
#include <fstream>
#include <iostream>
#include <ostream>
#endif
#if defined(__linux) || defined(ARDUINO)
#include <stdint.h>
#include <string.h>
#endif
| 16.214286 | 42 | 0.726872 | cslauritsen |
263699fa55fc119416ee683d5055f8412dd30d02 | 1,219 | hpp | C++ | D01/ex08/Human.hpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | D01/ex08/Human.hpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | D01/ex08/Human.hpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Human.hpp :+: :+: :+: ... | 39.322581 | 80 | 0.279737 | amoinier |
26392813434506c75d8fc68707a06bcadc556151 | 410 | hh | C++ | src/Zynga/Framework/ShardedDatabase/V3/Test/UserSharded/Config/Mock/Base/NoPassword.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 19 | 2018-04-23T09:30:48.000Z | 2022-03-06T21:35:18.000Z | src/Zynga/Framework/ShardedDatabase/V3/Test/UserSharded/Config/Mock/Base/NoPassword.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 22 | 2017-11-27T23:39:25.000Z | 2019-08-09T08:56:57.000Z | src/Zynga/Framework/ShardedDatabase/V3/Test/UserSharded/Config/Mock/Base/NoPassword.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 28 | 2017-11-16T20:53:56.000Z | 2021-01-04T11:13:17.000Z | <?hh // strict
namespace Zynga\Framework\ShardedDatabase\V3\Test\UserSharded\Config\Mock\Base;
use
Zynga\Framework\ShardedDatabase\V3\Config\Mock\Base as ConfigBase
;
use Zynga\Framework\ShardedDatabase\V3\ConnectionDetails;
class NoPassword extends ConfigBase {
public function shardsInit(): bool {
$this->ad... | 25.625 | 79 | 0.760976 | ssintzz |
2639ce8bd22d52aa9a2ac8021a704d0eae2e64ee | 3,758 | cc | C++ | frontend/lex/numbers.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | 10 | 2015-10-28T18:54:41.000Z | 2021-12-29T16:48:31.000Z | frontend/lex/numbers.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | 95 | 2020-02-27T22:34:02.000Z | 2022-03-06T19:45:24.000Z | frontend/lex/numbers.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | 2 | 2019-02-01T23:16:04.000Z | 2020-02-27T16:06:02.000Z | #include "frontend/lex/numbers.h"
#include <string>
#include <string_view>
#include <variant>
namespace frontend {
namespace {
template <int Base>
int64_t DigitInBase(char c) {
if constexpr (Base == 10) {
return ('0' <= c and c <= '9') ? (c - '0') : -1;
} else if constexpr (Base == 2) {
return ((c | 1) ==... | 29.825397 | 76 | 0.598457 | asoffer |
264181320de5d2983bce174e8145ccfaa5602aef | 3,961 | cpp | C++ | poprithms/tests/tests/schedule/shift/graph_hash.cpp | graphcore/poprithms | 9975a6a343891e3c5f8968a9507261c1185029ed | [
"MIT"
] | 24 | 2020-07-06T17:11:30.000Z | 2022-01-01T07:39:12.000Z | poprithms/tests/tests/schedule/shift/graph_hash.cpp | graphcore/poprithms | 9975a6a343891e3c5f8968a9507261c1185029ed | [
"MIT"
] | null | null | null | poprithms/tests/tests/schedule/shift/graph_hash.cpp | graphcore/poprithms | 9975a6a343891e3c5f8968a9507261c1185029ed | [
"MIT"
] | 2 | 2020-07-15T12:33:22.000Z | 2021-07-27T06:07:16.000Z | // Copyright (c) 2021 Graphcore Ltd. All rights reserved.
#include <iostream>
#include <string>
#include <poprithms/error/error.hpp>
#include <poprithms/schedule/shift/graph.hpp>
namespace {
using namespace poprithms::schedule::shift;
void test0() {
Graph g0;
/*
*
* A B (allocs)
* : :
... | 23.718563 | 78 | 0.537743 | graphcore |
2642b315fe73e455b2c5d384f3fc2e63eff319e5 | 26,959 | cc | C++ | tensorstore/driver/neuroglancer_precomputed/driver.cc | google/tensorstore | 8df16a67553debaec098698ceaa5404eaf79634a | [
"BSD-2-Clause"
] | 106 | 2020-04-02T20:00:18.000Z | 2022-03-23T20:27:31.000Z | tensorstore/driver/neuroglancer_precomputed/driver.cc | 0xgpapad/tensorstore | dfc2972e54588a7b745afea8b9322b57b26b657a | [
"BSD-2-Clause"
] | 28 | 2020-04-12T02:04:47.000Z | 2022-03-23T20:27:03.000Z | tensorstore/driver/neuroglancer_precomputed/driver.cc | 0xgpapad/tensorstore | dfc2972e54588a7b745afea8b9322b57b26b657a | [
"BSD-2-Clause"
] | 18 | 2020-04-08T06:41:30.000Z | 2022-02-18T03:05:49.000Z | // Copyright 2020 The TensorStore Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 41.221713 | 87 | 0.687451 | google |
2649aa1d585ddcda57f5cbb4c1ac6e2a042e75a9 | 4,575 | cpp | C++ | test/PHControlTest.cpp | IDzyre/TankController | 60ccdd6d4023be7a0e0155b508e8b067603bf8b2 | [
"MIT"
] | null | null | null | test/PHControlTest.cpp | IDzyre/TankController | 60ccdd6d4023be7a0e0155b508e8b067603bf8b2 | [
"MIT"
] | null | null | null | test/PHControlTest.cpp | IDzyre/TankController | 60ccdd6d4023be7a0e0155b508e8b067603bf8b2 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <ArduinoUnitTests.h>
#include <ci/ObservableDataStream.h>
#include "Devices/DateTime_TC.h"
#include "MainMenu.h"
#include "PHCalibrationMid.h"
#include "PHControl.h"
#include "TankControllerLib.h"
const uint16_t PIN = 49;
/**
* cycle the control through to a point of being off
*/
void... | 33.888889 | 112 | 0.74623 | IDzyre |
2650d87f48eb1b74a9a280537059de5dc71df5cb | 38 | hpp | C++ | src/boost_fusion_algorithm.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_algorithm.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_algorithm.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/algorithm.hpp>
| 19 | 37 | 0.789474 | miathedev |
26514c2bffae327a7b38b275f04db707c695e211 | 8,401 | cc | C++ | ja2/Build/Editor/EditorMapInfo.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | ja2/Build/Editor/EditorMapInfo.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | ja2/Build/Editor/EditorMapInfo.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | #include "Editor/EditorMapInfo.h"
#include "Editor/EditScreen.h"
#include "Editor/EditSys.h"
#include "Editor/EditorDefines.h"
#include "Editor/EditorItems.h"
#include "Editor/EditorMercs.h"
#include "Editor/EditorTaskbarUtils.h"
#include "Editor/EditorTerrain.h" //for access to TerrainTileDrawMode
#include "Editor/E... | 35.150628 | 100 | 0.717296 | gtrafimenkov |
26550220b122d5d69e5a93bdd574de699eb1315a | 5,812 | cc | C++ | src/operators/test/operator_mini1D.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/operators/test/operator_mini1D.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/operators/test/operator_mini1D.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | /*
Operators
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
Author: Konstantin Lipnikov (lipnikov@lanl.gov)
*/
#include <cstdlib... | 30.914894 | 98 | 0.582072 | fmyuan |