hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fd616b53c188503df6c6ec2c6e2cd2ec4e8145bd | 1,218 | cpp | C++ | exportNF/release/windows/obj/src/polymod/backends/IBackend.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | exportNF/release/windows/obj/src/polymod/backends/IBackend.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | exportNF/release/windows/obj/src/polymod/backends/IBackend.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | // Generated by Haxe 4.2.1+bf9ff69
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_polymod_backends_IBackend
#include <polymod/backends/IBackend.h>
#endif
#ifndef INCLUDED_polymod_backends_PolymodAssetLibrary
#include <polymod/backends/PolymodAssetLibrary.h>
#endif
... | 27.066667 | 80 | 0.727422 | theblobscp |
fd6201eb33763249147f0260869bfdd32c4491ce | 4,573 | cpp | C++ | source/7.4_Distortion_Mapping/DiffuseLightingMaterial.cpp | ssshammi/real-time-3d-rendering-with-directx-and-hlsl | 05a05c5c26784dafa9a89747276f385252951f2f | [
"MIT"
] | null | null | null | source/7.4_Distortion_Mapping/DiffuseLightingMaterial.cpp | ssshammi/real-time-3d-rendering-with-directx-and-hlsl | 05a05c5c26784dafa9a89747276f385252951f2f | [
"MIT"
] | null | null | null | source/7.4_Distortion_Mapping/DiffuseLightingMaterial.cpp | ssshammi/real-time-3d-rendering-with-directx-and-hlsl | 05a05c5c26784dafa9a89747276f385252951f2f | [
"MIT"
] | null | null | null | #include "pch.h"
#include "DiffuseLightingMaterial.h"
#include "Game.h"
#include "GameException.h"
#include "VertexDeclarations.h"
#include "VertexShader.h"
#include "PixelShader.h"
#include "Texture2D.h"
using namespace std;
using namespace std::string_literals;
using namespace DirectX;
using namespace winrt;
using n... | 32.899281 | 147 | 0.797726 | ssshammi |
fd6228b3d1041e72e04e26c1cbb0d5ccfeaeeea3 | 36,003 | cpp | C++ | ai/GridFunctions.cpp | AKuHAK/mrboom-libretro | 7aa1fc48b77bb67c4100b11993e4bfa190b00cf5 | [
"MIT"
] | 150 | 2017-04-17T15:17:42.000Z | 2022-03-24T20:26:15.000Z | ai/GridFunctions.cpp | AKuHAK/mrboom-libretro | 7aa1fc48b77bb67c4100b11993e4bfa190b00cf5 | [
"MIT"
] | 72 | 2017-04-20T05:08:28.000Z | 2021-10-07T21:41:12.000Z | ai/GridFunctions.cpp | AKuHAK/mrboom-libretro | 7aa1fc48b77bb67c4100b11993e4bfa190b00cf5 | [
"MIT"
] | 48 | 2017-04-17T08:15:05.000Z | 2022-03-25T01:52:33.000Z | #include <vector>
#include <algorithm>
#include <queue>
#include "GridFunctions.hpp"
#include "common.hpp"
#include "MrboomHelper.hpp"
#ifndef __LIBRETRO__
#include <strings.h>
#endif
#define liste_bombe_size (247)
#define INFINITE_SHIELD 1000000
#define COUNTDOWN_APOCALYPSE 64
int playerGrid[NUMBE... | 26.748143 | 263 | 0.5369 | AKuHAK |
fd641fabbedccd86a1a6dfae168ed2de6e58be7d | 916 | cpp | C++ | src/EventLoopThread.cpp | Kylepoops/Sharpen | 5ef19d89ddab0b63ffc4d2489a1cd50e2d5bb132 | [
"MIT"
] | 13 | 2020-10-25T04:02:07.000Z | 2022-03-29T13:21:30.000Z | src/EventLoopThread.cpp | Kylepoops/Sharpen | 5ef19d89ddab0b63ffc4d2489a1cd50e2d5bb132 | [
"MIT"
] | 18 | 2020-10-09T04:51:03.000Z | 2022-03-01T06:24:23.000Z | src/EventLoopThread.cpp | Kylepoops/Sharpen | 5ef19d89ddab0b63ffc4d2489a1cd50e2d5bb132 | [
"MIT"
] | 7 | 2020-10-23T04:25:28.000Z | 2022-03-23T06:52:39.000Z | #include <sharpen/EventLoopThread.hpp>
#include <cassert>
sharpen::EventLoopThread::EventLoopThread(sharpen::SelectorPtr selector)
:loop_(selector)
,thread_()
{
this->thread_ = std::move(std::thread(std::bind(&sharpen::EventLoopThread::Entry,this)));
}
sharpen::EventLoopThread::~EventLoopThread() noexcep... | 19.083333 | 93 | 0.659389 | Kylepoops |
fd6501fd6418b7d059cf1f8b69ff10f6747b04f2 | 2,413 | cpp | C++ | aws-cpp-sdk-imagebuilder/source/model/InstanceBlockDeviceMapping.cpp | grujicbr/aws-sdk-cpp | bdd43c178042f09c6739645e3f6cd17822a7c35c | [
"Apache-2.0"
] | 1 | 2020-03-11T05:36:20.000Z | 2020-03-11T05:36:20.000Z | aws-cpp-sdk-imagebuilder/source/model/InstanceBlockDeviceMapping.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-imagebuilder/source/model/InstanceBlockDeviceMapping.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 20.982609 | 86 | 0.733112 | grujicbr |
fd68bf121fb1630a5a616c57eeba72b49b39b21c | 2,814 | hpp | C++ | modules/core/statistics/include/nt2/statistics/functions/generic/evstat.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/statistics/include/nt2/statistics/functions/generic/evstat.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/statistics/include/nt2/statistics/functions/generic/evstat.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// 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.
// ... | 39.083333 | 81 | 0.464108 | psiha |
fd69298605cdc5bb8887f67ef7200e6e63ffd2a2 | 5,080 | cpp | C++ | samplecode/SampleConcavePaths.cpp | Shachlan/skia | 633db4db7672fd55b48ba1073256853e00f18d8c | [
"BSD-3-Clause"
] | 6 | 2018-10-20T10:53:55.000Z | 2021-12-25T07:58:57.000Z | samplecode/SampleConcavePaths.cpp | Shachlan/skia | 633db4db7672fd55b48ba1073256853e00f18d8c | [
"BSD-3-Clause"
] | null | null | null | samplecode/SampleConcavePaths.cpp | Shachlan/skia | 633db4db7672fd55b48ba1073256853e00f18d8c | [
"BSD-3-Clause"
] | 9 | 2018-10-31T03:07:11.000Z | 2021-08-06T08:53:21.000Z | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkCanvas.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkColorPriv.h"
#include "include/core/SkGraphics.h"
#include "include/core/Sk... | 35.774648 | 78 | 0.575591 | Shachlan |
fd69ceb89c0042687ee4cee42114c0e2f3bddab7 | 4,703 | cpp | C++ | src/lib/utility/ob_print_utils.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 74 | 2021-05-31T15:23:49.000Z | 2022-03-12T04:46:39.000Z | src/lib/utility/ob_print_utils.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 16 | 2021-05-31T15:26:38.000Z | 2022-03-30T06:02:43.000Z | src/lib/utility/ob_print_utils.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 64 | 2021-05-31T15:25:36.000Z | 2022-02-23T08:43:58.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase Database Proxy(ODP) is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ... | 27.994048 | 99 | 0.593451 | stutiredboy |
fd6a774c8ca2a3614cc94265fd5228897f8a343b | 3,776 | cpp | C++ | net/resolve.cpp | JoeHowse/native | af28ba33e85c3b8e1696a294d4c88f25391e65e3 | [
"MIT"
] | 42 | 2015-02-03T00:46:42.000Z | 2021-11-08T08:37:10.000Z | net/resolve.cpp | JoeHowse/native | af28ba33e85c3b8e1696a294d4c88f25391e65e3 | [
"MIT"
] | 13 | 2015-01-01T03:38:45.000Z | 2017-02-19T12:50:11.000Z | net/resolve.cpp | JoeHowse/native | af28ba33e85c3b8e1696a294d4c88f25391e65e3 | [
"MIT"
] | 23 | 2015-01-04T18:36:57.000Z | 2020-12-04T06:37:23.000Z | #include "net/resolve.h"
#include "base/logging.h"
#include "base/timeutil.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#ifdef _WIN32
#include <WinSock2.h>
#include <Ws2tcpip.h>
#undef min
#undef max
#else
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <... | 19.167513 | 105 | 0.574417 | JoeHowse |
fd7654a274e6e6914fc3c0d5f2c019023e1cdb58 | 3,437 | cpp | C++ | sources/2015/2015_07.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | 2 | 2021-02-01T13:19:37.000Z | 2021-02-25T10:39:46.000Z | sources/2015/2015_07.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | null | null | null | sources/2015/2015_07.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | null | null | null | #include "2015_07.h"
namespace Day07_2015
{
Argument::Argument()
: immediate(true), value(0)
{
}
Argument::Argument(const string& s)
{
if (s[0] >= '0' && s[0] <= '9')
{
immediate = true;
value = (word)stoi(s);
}
else
{
immediate = false;
identifier = s;
value = 0;
}
}
Instruction::... | 24.905797 | 119 | 0.64213 | tbielak |
fd769e7625786e1dbf4c4ef591c37e244f122a4a | 3,924 | cpp | C++ | src/qt/qtbase/tests/auto/corelib/plugin/qplugin/tst_qplugin.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | src/qt/qtbase/tests/auto/corelib/plugin/qplugin/tst_qplugin.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/tests/auto/corelib/plugin/qplugin/tst_qplugin.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... | 32.429752 | 102 | 0.654689 | power-electro |
fd7c2bc1a63e976de19c02a7d96dac2078fdbf2f | 2,528 | hpp | C++ | include/ShishGL/Core/RenderSystem/GraphicsPlatform/Events/MouseEvent.hpp | Shishqa/ShishGL | 36a3273aecb4b87d040616059ed9487d18abac1a | [
"MIT"
] | null | null | null | include/ShishGL/Core/RenderSystem/GraphicsPlatform/Events/MouseEvent.hpp | Shishqa/ShishGL | 36a3273aecb4b87d040616059ed9487d18abac1a | [
"MIT"
] | null | null | null | include/ShishGL/Core/RenderSystem/GraphicsPlatform/Events/MouseEvent.hpp | Shishqa/ShishGL | 36a3273aecb4b87d040616059ed9487d18abac1a | [
"MIT"
] | null | null | null | /*============================================================================*/
#ifndef SHISHGL_MOUSE_EVENT_HPP
#define SHISHGL_MOUSE_EVENT_HPP
/*============================================================================*/
#include "Event.hpp"
#include "Mouse.hpp"
#include "Vector2.hpp"
#include "PlatformListener.hp... | 25.28 | 80 | 0.456883 | Shishqa |
fd7ebe4fcc1a642c92c3ede241f2b10f7639e16b | 18,546 | cpp | C++ | viewer.cpp | Themaister/RetroWarp | 040a15682baef8d9244da6ef34b3bbc7ea22f751 | [
"MIT"
] | 36 | 2019-10-11T21:52:25.000Z | 2021-12-22T18:05:49.000Z | viewer.cpp | Themaister/RetroWarp | 040a15682baef8d9244da6ef34b3bbc7ea22f751 | [
"MIT"
] | null | null | null | viewer.cpp | Themaister/RetroWarp | 040a15682baef8d9244da6ef34b3bbc7ea22f751 | [
"MIT"
] | 2 | 2020-10-25T07:01:59.000Z | 2021-11-16T12:17:44.000Z | #include "primitive_setup.hpp"
#include "rasterizer_cpu.hpp"
#include "triangle_converter.hpp"
#include "canvas.hpp"
#include "stb_image_write.h"
#include <stdio.h>
#include <vector>
#include <random>
#include <assert.h>
#include "global_managers.hpp"
#include "math.hpp"
#include "texture_files.hpp"
#include "gltf.hpp... | 33.058824 | 164 | 0.711744 | Themaister |
fd804d99c4167ce0fe8e468b9bd10f271872da71 | 3,565 | cpp | C++ | test/blas_wrapper_test/dgekv_test.cpp | Samthos/MC-MPn-Direct | cdf05c7ce7b33bf1b86b80f57f800634822c9cc6 | [
"MIT"
] | 1 | 2021-04-06T05:01:47.000Z | 2021-04-06T05:01:47.000Z | test/blas_wrapper_test/dgekv_test.cpp | spec-org/MC-MPn-Direct | cdf05c7ce7b33bf1b86b80f57f800634822c9cc6 | [
"MIT"
] | null | null | null | test/blas_wrapper_test/dgekv_test.cpp | spec-org/MC-MPn-Direct | cdf05c7ce7b33bf1b86b80f57f800634822c9cc6 | [
"MIT"
] | 3 | 2020-06-09T23:53:28.000Z | 2022-03-02T05:44:55.000Z | #include "blas_wrapper_fixture.h"
#include "gtest/gtest.h"
#include "test_helper.h"
namespace {
template <class T>
class dgekvTest : public testing::Test {
public:
void check(const std::vector<double>& v, double a, double b) {
auto& f = this->blas_wrapper_fixture;
for (int row = 0; row < f.n; row++) {
... | 29.221311 | 99 | 0.592426 | Samthos |
fd805ebff8dde52941fc74f1e577bef5a8e5bdf0 | 860 | cpp | C++ | samples/snippets/cpp/VS_Snippets_CLR/EventArg/CPP/eventarg.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_CLR/EventArg/CPP/eventarg.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_CLR/EventArg/CPP/eventarg.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
// <Snippet1>
// The following example uses instances of classes in
// the System::Reflection namespace to discover an event argument type.
using namespace System;
using namespace System::Reflection;
public delegate void MyDelegate( int i );
public ref class MainClass
{
public:
event MyDelegate^ ev;
};... | 28.666667 | 79 | 0.683721 | hamarb123 |
fd832c3a2f9a6c4a801571f7c4cb34e339644c52 | 1,058 | cpp | C++ | src/bsoncxx/array/element.cpp | AsT4re/mongo-cxx-driver | 9e155e5298442a2be22719ff6c3b00546a5784b5 | [
"Apache-2.0"
] | 14 | 2018-06-16T04:49:50.000Z | 2021-04-10T03:18:40.000Z | src/bsoncxx/array/element.cpp | AsT4re/mongo-cxx-driver | 9e155e5298442a2be22719ff6c3b00546a5784b5 | [
"Apache-2.0"
] | null | null | null | src/bsoncxx/array/element.cpp | AsT4re/mongo-cxx-driver | 9e155e5298442a2be22719ff6c3b00546a5784b5 | [
"Apache-2.0"
] | 7 | 2018-06-14T10:15:32.000Z | 2020-11-06T17:07:09.000Z | // Copyright 2014 MongoDB Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... | 30.228571 | 85 | 0.750473 | AsT4re |
fd84d2287aa47bced9e214f422688ed233dbef2f | 1,314 | hh | C++ | hackt_docker/hackt/src/util/wtf.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/util/wtf.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/util/wtf.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "util/wtf.hh"
Intentionally undefined struct for the sake of seeing
the name of a resolved type.
TODO: extend this to work with function, member functions,
and their pointers.
$Id: wtf.hh,v 1.5 2006/04/23 07:37:28 fang Exp $
*/
#ifndef __UTIL_WTF_H__
#define __UTIL_WTF_H__
#if 0
#error This fil... | 21.540984 | 79 | 0.572298 | broken-wheel |
fd8686dd450e6c0e20b26bb071294604916bb2bc | 954,478 | cpp | C++ | test/bidi_test_469.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | null | null | null | test/bidi_test_469.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 1 | 2021-03-05T12:56:59.000Z | 2021-03-05T13:11:53.000Z | test/bidi_test_469.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 3 | 2019-10-30T18:38:15.000Z | 2021-03-05T12:10:13.000Z | // Warning! This file is autogenerated.
#include <boost/text/bidirectional.hpp>
#include "bidi_tests.hpp"
#include <gtest/gtest.h>
#include <algorithm>
std::vector<int> expected_levels;
std::vector<int> expected_reordered_indices;
TEST(bidi, bidi_469_000)
{
expected_levels = { 1, 1, 2, -1 };
expected_reo... | 32.953943 | 77 | 0.403913 | eightysquirrels |
fd892b527fcb09fd5d0124a9131e2364c92ba0b7 | 8,044 | cpp | C++ | courseinfoeditor.cpp | Harinlen/ANU-Timetable | 32143b3f25fbecb7d8634a0b1399780ed2485031 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2019-02-21T12:14:12.000Z | 2019-02-21T12:14:12.000Z | courseinfoeditor.cpp | Harinlen/ANU-Timetable | 32143b3f25fbecb7d8634a0b1399780ed2485031 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | courseinfoeditor.cpp | Harinlen/ANU-Timetable | 32143b3f25fbecb7d8634a0b1399780ed2485031 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | /*
* Copyright (C) Kreogist Dev Team
*
* 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 License, or (at your option) any later version.
*
* This program is distr... | 31.057915 | 109 | 0.668697 | Harinlen |
fd8b1807f2b2a78cf76e7a1dbf44f4c3a2bb6ab6 | 3,889 | cpp | C++ | ROMBitSettingsFrm.cpp | SiliconAnalysis/bitract | 733654f9d350db0b065dee2dc268953a9c308118 | [
"BSD-2-Clause"
] | 60 | 2020-04-29T08:54:33.000Z | 2022-03-30T17:58:01.000Z | ROMBitSettingsFrm.cpp | SiliconAnalysis/bitract | 733654f9d350db0b065dee2dc268953a9c308118 | [
"BSD-2-Clause"
] | null | null | null | ROMBitSettingsFrm.cpp | SiliconAnalysis/bitract | 733654f9d350db0b065dee2dc268953a9c308118 | [
"BSD-2-Clause"
] | null | null | null | //---------------------------------------------------------------------------
#include <vcl.h>
#include <stdio.h>
#pragma hdrstop
#include "ROMBitSettingsFrm.h"
#include "ImageFrm.h"
#include "LogFrm.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)... | 34.114035 | 110 | 0.524299 | SiliconAnalysis |
fd8b2f1adca9145dc26122849264e443a2e21528 | 2,167 | hpp | C++ | Source/StateMachine.hpp | ace13/MiniLD57 | 5035d6b19eac1bfc5b6289790286713274247375 | [
"MIT"
] | null | null | null | Source/StateMachine.hpp | ace13/MiniLD57 | 5035d6b19eac1bfc5b6289790286713274247375 | [
"MIT"
] | null | null | null | Source/StateMachine.hpp | ace13/MiniLD57 | 5035d6b19eac1bfc5b6289790286713274247375 | [
"MIT"
] | null | null | null | #pragma once
#include <osg/Object>
#include <osg/Switch>
#include <osgGA/GUIEventHandler>
#include <string>
#include <unordered_map>
#ifndef _WIN32
namespace std {
template<class E>class hash {
using sfinae = typename std::enable_if<std::is_enum<E>::value, E>::type;
public:
size_t operator()(const E&e) c... | 21.455446 | 118 | 0.664513 | ace13 |
fd8e9c434001cf76b4a35983c9957d77cd89e7f9 | 2,940 | cpp | C++ | design-snake-game/solution-0.cpp | tsenmu/leetcode | 6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee | [
"Apache-2.0"
] | null | null | null | design-snake-game/solution-0.cpp | tsenmu/leetcode | 6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee | [
"Apache-2.0"
] | null | null | null | design-snake-game/solution-0.cpp | tsenmu/leetcode | 6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee | [
"Apache-2.0"
] | null | null | null | class SnakeGame {
protected:
unordered_map<int, unordered_map<int, int>> m_board;
queue<pair<int, int>> m_food;
int m_score;
int m_row;
int m_col;
list<pair<int,int>> m_list;
bool isValidCoordinate(int r, int c) {
return r >= 0 && c >= 0 && r < m_row && c < m_col;
}
bool ha... | 26.486486 | 120 | 0.485374 | tsenmu |
fd8f24361dece0d34a62589ce030508eca751a93 | 520 | cpp | C++ | array/largestNumber.cpp | archit-1997/InterviewB | 6f5655ce0c9c8dd1b2433588f47da5aa7f5860d7 | [
"MIT"
] | 1 | 2021-01-27T16:37:38.000Z | 2021-01-27T16:37:38.000Z | array/largestNumber.cpp | archit-1997/InterviewBit | 6f5655ce0c9c8dd1b2433588f47da5aa7f5860d7 | [
"MIT"
] | null | null | null | array/largestNumber.cpp | archit-1997/InterviewBit | 6f5655ce0c9c8dd1b2433588f47da5aa7f5860d7 | [
"MIT"
] | null | null | null | bool compare(int &a, int &b) {
string x = to_string(a), y = to_string(b);
return ((x + y) > (y + x));
}
string Solution::largestNumber(const vector<int> &A) {
vector<int> v = A;
int n = v.size();
// check if all the elements are 0 ?
int flag = 0;
for (int i = 0; i < n; i++) {
if (v[i] != 0) {
... | 18.571429 | 54 | 0.492308 | archit-1997 |
fd90a5769cf8c511b968c2301847611b75cb731f | 3,699 | hpp | C++ | dart/dynamics/detail/EndEffectorAspect.hpp | dartsim/dart | f974937b438e92d558f8f2f01cc31b50d3386dd3 | [
"BSD-2-Clause"
] | 729 | 2015-01-05T22:01:30.000Z | 2022-03-31T14:26:23.000Z | dart/dynamics/detail/EndEffectorAspect.hpp | dartsim/dart | f974937b438e92d558f8f2f01cc31b50d3386dd3 | [
"BSD-2-Clause"
] | 1,071 | 2015-01-01T05:48:33.000Z | 2022-03-22T17:10:36.000Z | dart/dynamics/detail/EndEffectorAspect.hpp | dartsim/dart | f974937b438e92d558f8f2f01cc31b50d3386dd3 | [
"BSD-2-Clause"
] | 295 | 2015-01-09T01:50:25.000Z | 2022-03-24T03:20:20.000Z | /*
* Copyright (c) 2011-2021, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... | 34.896226 | 80 | 0.707489 | dartsim |
fd92e87f2e505faed9c8c795239930d8596d341c | 1,166 | hpp | C++ | src/amqpAnalyze/Dissector.hpp | kpvdr/amqpAnalyze | f1d3a073836191fd9d9a6e6f10a8d6ef2f060cf6 | [
"Apache-2.0"
] | 1 | 2019-04-02T23:03:23.000Z | 2019-04-02T23:03:23.000Z | src/amqpAnalyze/Dissector.hpp | kpvdr/amqpAnalyze | f1d3a073836191fd9d9a6e6f10a8d6ef2f060cf6 | [
"Apache-2.0"
] | 30 | 2017-04-17T11:21:41.000Z | 2018-01-09T19:21:44.000Z | src/amqpAnalyze/Dissector.hpp | kpvdr/amqpAnalyze | f1d3a073836191fd9d9a6e6f10a8d6ef2f060cf6 | [
"Apache-2.0"
] | null | null | null | /*
* Dissector.hpp
*
* Created on: Apr 2, 2017
* Author: kpvdr
*/
#ifndef SRC_AMQPANALYZE__WIREDISSECTOR_HPP_
#define SRC_AMQPANALYZE__WIREDISSECTOR_HPP_
#include <amqpAnalyze/FwdDecls.hpp>
#include <map>
#include <sstream>
namespace amqpAnalyze
{
class Packet;
enum class DissectorType_t:uint8_t ... | 24.291667 | 84 | 0.674099 | kpvdr |
fd9575b1be2554db73eebfcf4f865144666e113e | 3,987 | cpp | C++ | code/engine/primitive_classes/textured_object.cpp | SeanTheSheepCS/OpenAlice | 7ee602eecd9937deed92b7dc42a4403b3f94aac6 | [
"Unlicense"
] | 1 | 2021-01-03T00:08:46.000Z | 2021-01-03T00:08:46.000Z | code/engine/primitive_classes/textured_object.cpp | SeanTheSheepCS/OpenAlice | 7ee602eecd9937deed92b7dc42a4403b3f94aac6 | [
"Unlicense"
] | 4 | 2021-01-03T00:20:03.000Z | 2021-01-10T14:53:02.000Z | code/engine/primitive_classes/textured_object.cpp | SeanTheSheepCS/OpenAlice | 7ee602eecd9937deed92b7dc42a4403b3f94aac6 | [
"Unlicense"
] | null | null | null | #include "textured_object.h"
#include <iostream>
bool TexturedObject::isDefaultTextureInitialized = false;
sf::Texture TexturedObject::defaultTexture;
TexturedObject::TexturedObject(int xArg, int yArg, unsigned int widthArg, unsigned int heightArg, const sf::Texture* texturePointerArg): DrawableObject(xArg,yArg... | 30.204545 | 182 | 0.744921 | SeanTheSheepCS |
fd968508d8018b471f348769f617cdce3352d7b1 | 667 | hpp | C++ | src/cradle/imaging/shrink.hpp | mghro/astroid-core | 72736f64bed19ec3bb0e92ebee4d7cf09fc0399f | [
"MIT"
] | null | null | null | src/cradle/imaging/shrink.hpp | mghro/astroid-core | 72736f64bed19ec3bb0e92ebee4d7cf09fc0399f | [
"MIT"
] | 3 | 2020-10-26T18:45:47.000Z | 2020-10-26T18:46:06.000Z | src/cradle/imaging/shrink.hpp | mghro/astroid-core | 72736f64bed19ec3bb0e92ebee4d7cf09fc0399f | [
"MIT"
] | null | null | null | #ifndef CRADLE_IMAGING_SHRINK_HPP
#define CRADLE_IMAGING_SHRINK_HPP
#include <cradle/imaging/variant.hpp>
namespace cradle {
// Shrinks a 2D image by a factor of N x N, where N is a positive integer.
// Each pixel in the result image is the average of the corresponding block of
// N x N pixels in the source image.
t... | 23 | 78 | 0.730135 | mghro |
fd999eb44157bd14f25c2a11535eddca877196e1 | 10,152 | cpp | C++ | src/LightingProject.cpp | IcedLeon/Introduction-to-3D-with-OpenGL | 7e0edcb768d2e2b4b19cb5015a73335c60cd8f60 | [
"MIT"
] | null | null | null | src/LightingProject.cpp | IcedLeon/Introduction-to-3D-with-OpenGL | 7e0edcb768d2e2b4b19cb5015a73335c60cd8f60 | [
"MIT"
] | null | null | null | src/LightingProject.cpp | IcedLeon/Introduction-to-3D-with-OpenGL | 7e0edcb768d2e2b4b19cb5015a73335c60cd8f60 | [
"MIT"
] | null | null | null | #include "LightingProject.h"
#include <GLFW\glfw3.h>
#include "Camera.h"
Lighting::Lighting() : m_vLightColour(vec3(0.0f)),
m_fLighColourX(NULL),
m_fLighColourY(NULL),
m_fLighColourZ(NULL),
m_vLightDir(vec3(0.0f)),
m_fDirX(NULL),
m_fDirY(NULL),
m_fDirZ(NULL),
m_vAmbientL... | 24.287081 | 107 | 0.708432 | IcedLeon |
fd9c94d6592f9a69e4e509e9b17e56e8b49c2bc6 | 3,651 | cpp | C++ | toolbox/io/Reactor.ut.cpp | mmitkevich/toolbox-cpp | 59e26154acbd990de9658bf229ebdbf7f89fc0c8 | [
"Apache-2.0"
] | null | null | null | toolbox/io/Reactor.ut.cpp | mmitkevich/toolbox-cpp | 59e26154acbd990de9658bf229ebdbf7f89fc0c8 | [
"Apache-2.0"
] | null | null | null | toolbox/io/Reactor.ut.cpp | mmitkevich/toolbox-cpp | 59e26154acbd990de9658bf229ebdbf7f89fc0c8 | [
"Apache-2.0"
] | null | null | null | // The Reactive C++ Toolbox.
// Copyright (C) 2013-2019 Swirly Cloud Limited
// Copyright (C) 2020 Reactive Markets Limited
//
// 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:... | 26.266187 | 86 | 0.643111 | mmitkevich |
fd9f7d915cd6074ebc3239fc2421a1e551b52aa7 | 752 | hh | C++ | lib/basic_sdl.hh | anton4o123/histogram | 1a48b5193fdd3a20d91eab51ac6462db66864e60 | [
"BSD-3-Clause"
] | null | null | null | lib/basic_sdl.hh | anton4o123/histogram | 1a48b5193fdd3a20d91eab51ac6462db66864e60 | [
"BSD-3-Clause"
] | null | null | null | lib/basic_sdl.hh | anton4o123/histogram | 1a48b5193fdd3a20d91eab51ac6462db66864e60 | [
"BSD-3-Clause"
] | null | null | null | #ifndef BASIC_SDL_
#define BASIC_SDL_
#include <iostream>
#include <string>
#include <cmath>
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"
using namespace std;
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
const int SCREEN_BPP = 32;
extern bool surf_change;
extern SDL_Surfa... | 21.485714 | 96 | 0.780585 | anton4o123 |
fda0ca0cf6ec81708ca392ce898c5c8f2678c99e | 10,845 | cpp | C++ | src/TextEngine/TextRenderer.cpp | Patuti/crossuo | 489f69aba501fee0408c042ef6a45ea1b5cc6c34 | [
"MIT"
] | null | null | null | src/TextEngine/TextRenderer.cpp | Patuti/crossuo | 489f69aba501fee0408c042ef6a45ea1b5cc6c34 | [
"MIT"
] | null | null | null | src/TextEngine/TextRenderer.cpp | Patuti/crossuo | 489f69aba501fee0408c042ef6a45ea1b5cc6c34 | [
"MIT"
] | null | null | null | // MIT License
// Copyright (C) August 2016 Hotride
#include "TextRenderer.h"
#include "TextData.h"
#include "../SelectedObject.h"
#include "../Managers/ColorManager.h"
#include "../Managers/ConfigManager.h"
#include "../ScreenStages/GameScreen.h"
#include "../GameObjects/GameWorld.h"
#include "../Renderer/RenderAPI.h... | 24.873853 | 96 | 0.512218 | Patuti |
fda0f2afc178de760ee3e9b630171e1f8d20772f | 4,208 | cpp | C++ | tcob_tests/TextFormatterTests.cpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | 2 | 2021-08-18T19:14:35.000Z | 2021-12-01T14:14:49.000Z | tcob_tests/TextFormatterTests.cpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | tcob_tests/TextFormatterTests.cpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | #include "tests.hpp"
TEST_CASE("GFX.Text.Tokenizer")
{
Font* font { nullptr };
{
auto tokens { TextFormatter::shape(" ", font, true) };
REQUIRE(tokens.size() == 1);
REQUIRE(tokens[0].Type == TextFormatter::ShaperTokenType::Whitespace);
}
{
auto tokens { TextFormatter::... | 47.818182 | 93 | 0.625 | TobiasBohnen |
fda125291642e433d770c3395e5f6a0ed62e1525 | 710 | hpp | C++ | src/cmdstan/arguments/arg_tolerance.hpp | danluu/cmdstan | 7f96708bfbe6c3b8f716aacd2e7053099158a7aa | [
"BSD-3-Clause"
] | 1 | 2018-10-29T14:20:23.000Z | 2018-10-29T14:20:23.000Z | src/cmdstan/arguments/arg_tolerance.hpp | danluu/cmdstan | 7f96708bfbe6c3b8f716aacd2e7053099158a7aa | [
"BSD-3-Clause"
] | null | null | null | src/cmdstan/arguments/arg_tolerance.hpp | danluu/cmdstan | 7f96708bfbe6c3b8f716aacd2e7053099158a7aa | [
"BSD-3-Clause"
] | null | null | null | #ifndef CMDSTAN_ARGUMENTS_ARG_TOLERANCE_HPP
#define CMDSTAN_ARGUMENTS_ARG_TOLERANCE_HPP
#include <cmdstan/arguments/singleton_argument.hpp>
#include <boost/lexical_cast.hpp>
#include <string>
namespace cmdstan {
class arg_tolerance : public real_argument {
public:
arg_tolerance(const char *name, const char *... | 23.666667 | 65 | 0.674648 | danluu |
fda150110fbdbc168d6b5f8da72f61a4ddd5e6cd | 4,101 | hpp | C++ | src/xercesc/framework/psvi/XSModelGroup.hpp | rherardi/xerces-c-src_2_7_0 | a23711292bba70519940d7e6aeb07100319b607c | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-04-10T00:26:48.000Z | 2018-04-10T00:26:48.000Z | src/xercesc/framework/psvi/XSModelGroup.hpp | rherardi/xerces-c-src_2_7_0 | a23711292bba70519940d7e6aeb07100319b607c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/xercesc/framework/psvi/XSModelGroup.hpp | rherardi/xerces-c-src_2_7_0 | a23711292bba70519940d7e6aeb07100319b607c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2003,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 26.288462 | 79 | 0.558157 | rherardi |
fda3ee2ee62f50450274aa53915d0cf71299843c | 2,387 | cpp | C++ | Polymorphism Testing/Polyhedra.cpp | Daspien27/CSI4900---Honours-Project | 5f3a0fdee9570ffa94af060701d1718b06f477e7 | [
"MIT"
] | null | null | null | Polymorphism Testing/Polyhedra.cpp | Daspien27/CSI4900---Honours-Project | 5f3a0fdee9570ffa94af060701d1718b06f477e7 | [
"MIT"
] | null | null | null | Polymorphism Testing/Polyhedra.cpp | Daspien27/CSI4900---Honours-Project | 5f3a0fdee9570ffa94af060701d1718b06f477e7 | [
"MIT"
] | null | null | null | #include "Polyhedra.h"
#include <iostream>
#include "glm/glm.hpp"
Cube::Cube()
{
_vertices = new vec3[_numverts]{ vec3(-1.0f,-1.0f,-1.0f),
vec3(-1.0f,-1.0f,1.0f),
vec3(1.0f,-1.0f,1.0f),
vec3(1.0f,-1.0f,-1.0f),
vec3(-1.0f,1.0f,-1.0f),
vec3(-1.0f,1.0f,1.0f),
... | 18.083333 | 70 | 0.614579 | Daspien27 |
fda8f82831cec2f9c598adc71431192beb37fba2 | 1,457 | hpp | C++ | src/window_new.hpp | Oberon00/lsfml | c5440216c408234a856e59044addc7e6f6bd99b3 | [
"BSD-2-Clause"
] | 5 | 2015-02-21T23:28:39.000Z | 2017-01-04T10:04:45.000Z | src/window_new.hpp | Oberon00/lsfml | c5440216c408234a856e59044addc7e6f6bd99b3 | [
"BSD-2-Clause"
] | null | null | null | src/window_new.hpp | Oberon00/lsfml | c5440216c408234a856e59044addc7e6f6bd99b3 | [
"BSD-2-Clause"
] | null | null | null | // Part of the LSFML library -- Copyright (c) Christian Neumüller 2015
// This file is subject to the terms of the BSD 2-Clause License.
// See LICENSE.txt or http://opensource.org/licenses/BSD-2-Clause
#ifndef LSFML_WINDOW_NEW_HPP_INCLUDED
#define LSFML_WINDOW_NEW_HPP_INCLUDED
#include <apollo/lua_include.hpp>
#incl... | 28.568627 | 70 | 0.566232 | Oberon00 |
fdad5df524d63e3dc912939024081cea041d831d | 1,990 | cpp | C++ | src/mc_asia.cpp | moledoc/parcompfin | a6d16ef8eaa41eb10f2ec7ef5fc0b724d363f33e | [
"MIT"
] | null | null | null | src/mc_asia.cpp | moledoc/parcompfin | a6d16ef8eaa41eb10f2ec7ef5fc0b724d363f33e | [
"MIT"
] | 6 | 2021-03-18T10:24:50.000Z | 2021-05-25T17:42:27.000Z | src/mc_asia.cpp | moledoc/parcompfin | a6d16ef8eaa41eb10f2ec7ef5fc0b724d363f33e | [
"MIT"
] | null | null | null |
#include <common.h>
#include <comparison.h>
double mc_asia
(
double S0
,double E
,double r
,double sigma
,double T
,int N
,int M
,double payoff_fun
)
{
double dt = (double)T/(double)M;
// prepare generator
time_t cur_time;
std::random_device rd{};
std::mt19937 gen{rd()};
gen.seed(time(&cu... | 24.268293 | 105 | 0.583417 | moledoc |
fdb5795540e58392c19269d36e71f0dfa22ba7a4 | 3,915 | hpp | C++ | include/hydro/engine/Multiplicity.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/engine/Multiplicity.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/engine/Multiplicity.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | //
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// ... | 28.165468 | 148 | 0.622478 | hydraate |
fdb9aa1a3589b8cb51b699f5c34d3a3114d1069e | 15,841 | hxx | C++ | include/eixx/marshal/eterm.hxx | heri16/eixx | 4352e356b68d2adbbdd0163ce3aaa93406c15ae2 | [
"Apache-2.0"
] | null | null | null | include/eixx/marshal/eterm.hxx | heri16/eixx | 4352e356b68d2adbbdd0163ce3aaa93406c15ae2 | [
"Apache-2.0"
] | null | null | null | include/eixx/marshal/eterm.hxx | heri16/eixx | 4352e356b68d2adbbdd0163ce3aaa93406c15ae2 | [
"Apache-2.0"
] | null | null | null | //----------------------------------------------------------------------------
/// \file eterm.hxx
//----------------------------------------------------------------------------
/// \brief Implementation of eterm member functions.
//----------------------------------------------------------------------------
// Copyri... | 32.262729 | 113 | 0.559498 | heri16 |
fdba9536a8bf7db05510b6b0f22331ad1cbe349e | 1,320 | cpp | C++ | Solutions/Windows2/TinyCLR/Memory.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 529 | 2015-03-10T00:17:45.000Z | 2022-03-17T02:21:19.000Z | Solutions/Windows2/TinyCLR/Memory.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 495 | 2015-03-10T22:02:46.000Z | 2019-05-16T13:05:00.000Z | Solutions/Windows2/TinyCLR/Memory.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 332 | 2015-03-10T08:04:36.000Z | 2022-03-29T04:18:36.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... | 37.714286 | 201 | 0.40303 | PervasiveDigital |
fdbc3c3ae93fbf1d781b89395f22ebb2016b5556 | 3,121 | hpp | C++ | Krakoa/Source/EventsSystem/ApplicationEvent.hpp | KingKiller100/Krakatoa-Engine | ff07f7328d428c04e06b561b6afd315eea39865c | [
"Apache-2.0"
] | 1 | 2020-04-05T13:37:48.000Z | 2020-04-05T13:37:48.000Z | Krakoa/Source/EventsSystem/ApplicationEvent.hpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | Krakoa/Source/EventsSystem/ApplicationEvent.hpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Event.hpp"
#include "../Maths/Maths.hpp"
#include <Utility/String/kToString.hpp>
#include <string>
namespace krakoa::events
{
using namespace klib;
class KRAKOA_API ApplicationEvent : public Event
{
public:
EVENT_CLASS_CATEGORY(E_C_APP)
protected:
ApplicationEvent() = default;
};... | 17.732955 | 86 | 0.708427 | KingKiller100 |
fdbe32f89ec8a8eef614d54b36ecb2c897b0bae8 | 11,785 | cc | C++ | test/rpc/rpc_ssl_test.cc | flare-rpc/flare-cpp | c1630c7eb8bae0a0b0cee6ec3f13f1babeaef950 | [
"Apache-2.0"
] | 3 | 2022-01-23T17:55:24.000Z | 2022-03-23T12:55:18.000Z | test/rpc/rpc_ssl_test.cc | flare-rpc/flare-cpp | c1630c7eb8bae0a0b0cee6ec3f13f1babeaef950 | [
"Apache-2.0"
] | null | null | null | test/rpc/rpc_ssl_test.cc | flare-rpc/flare-cpp | c1630c7eb8bae0a0b0cee6ec3f13f1babeaef950 | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 32.645429 | 80 | 0.62588 | flare-rpc |
fdc0365c8a866fcd323d91393d9459ee34a1aa8f | 5,992 | cpp | C++ | imex/system/system.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 1 | 2017-08-11T19:12:24.000Z | 2017-08-11T19:12:24.000Z | imex/system/system.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 11 | 2018-07-07T20:09:44.000Z | 2020-02-16T22:45:09.000Z | imex/system/system.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | null | null | null | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#include "system.h"
#include "../module/iscene_module.h"
#include "../module/imesh_module.h"
#include "../module/iima... | 34.837209 | 115 | 0.471462 | aconstlink |
fdc0bc6b15580890f922a7f5ca6baf13df00bdf4 | 718 | hpp | C++ | src/HydroWave/test_hydro_wave.hpp | ADACS-Australia/quokka | 53778ddcc24edc0b254b40a0aefb11e479dbeda4 | [
"MIT"
] | 11 | 2021-10-06T06:34:50.000Z | 2022-02-17T06:54:44.000Z | src/HydroWave/test_hydro_wave.hpp | ADACS-Australia/quokka | 53778ddcc24edc0b254b40a0aefb11e479dbeda4 | [
"MIT"
] | 18 | 2021-11-18T01:07:53.000Z | 2022-03-26T05:41:31.000Z | src/HydroWave/test_hydro_wave.hpp | ADACS-Australia/quokka | 53778ddcc24edc0b254b40a0aefb11e479dbeda4 | [
"MIT"
] | 4 | 2021-10-06T05:46:22.000Z | 2022-03-30T03:31:48.000Z | #ifndef TEST_HYDRO_WAVE_HPP_ // NOLINT
#define TEST_HYDRO_WAVE_HPP_
//==============================================================================
// TwoMomentRad - a radiation transport library for patch-based AMR codes
// Copyright 2020 Benjamin Wibking.
// Released under the MIT license. See LICENSE file included ... | 29.916667 | 80 | 0.5961 | ADACS-Australia |
fdc2cfa95f314e5b4446de41102363f9864c2abb | 1,998 | cpp | C++ | libs/vm/src/function_decorators.cpp | baykaner/ledger | f45fbd49297a419e3a90a46e9aed0cfa65602109 | [
"Apache-2.0"
] | null | null | null | libs/vm/src/function_decorators.cpp | baykaner/ledger | f45fbd49297a419e3a90a46e9aed0cfa65602109 | [
"Apache-2.0"
] | null | null | null | libs/vm/src/function_decorators.cpp | baykaner/ledger | f45fbd49297a419e3a90a46e9aed0cfa65602109 | [
"Apache-2.0"
] | null | null | null | //------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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
//
// ... | 28.542857 | 84 | 0.621121 | baykaner |
fdc57bf539ae5d82f6c072d8bf166216e487016c | 31,410 | cpp | C++ | src/unit_test/nas_mcast_db_unittest.cpp | Tejaswi-Goel/opx-nas-multicast | 134e9543fa02df46fe36c8a14ce7bd3eda0dc1bd | [
"Apache-2.0"
] | null | null | null | src/unit_test/nas_mcast_db_unittest.cpp | Tejaswi-Goel/opx-nas-multicast | 134e9543fa02df46fe36c8a14ce7bd3eda0dc1bd | [
"Apache-2.0"
] | null | null | null | src/unit_test/nas_mcast_db_unittest.cpp | Tejaswi-Goel/opx-nas-multicast | 134e9543fa02df46fe36c8a14ce7bd3eda0dc1bd | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017 Dell Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARR... | 37.040094 | 128 | 0.583954 | Tejaswi-Goel |
fdc696c1b329504c3b668374bfae6d453c604159 | 5,442 | cpp | C++ | src/libtsduck/tsHiDesDeviceInfo.cpp | yrpark99/tsduck | 2929092e42c5c7eec95a119af91cc09ffdde2028 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/tsHiDesDeviceInfo.cpp | yrpark99/tsduck | 2929092e42c5c7eec95a119af91cc09ffdde2028 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/tsHiDesDeviceInfo.cpp | yrpark99/tsduck | 2929092e42c5c7eec95a119af91cc09ffdde2028 | [
"BSD-2-Clause"
] | null | null | null | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2018, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 35.337662 | 105 | 0.510658 | yrpark99 |
fdc96e7447533729c2ba11cdd6299684dab0daf8 | 333,575 | cpp | C++ | test/tailoring_rule_test_zh_pinyin_007.cpp | jan-moeller/text | c61e51c82dfb0ae6e74200c01ce040fa6db730c4 | [
"BSL-1.0"
] | null | null | null | test/tailoring_rule_test_zh_pinyin_007.cpp | jan-moeller/text | c61e51c82dfb0ae6e74200c01ce040fa6db730c4 | [
"BSL-1.0"
] | 1 | 2021-03-05T12:56:59.000Z | 2021-03-05T13:11:53.000Z | test/tailoring_rule_test_zh_pinyin_007.cpp | jan-moeller/text | c61e51c82dfb0ae6e74200c01ce040fa6db730c4 | [
"BSL-1.0"
] | 3 | 2019-10-30T18:38:15.000Z | 2021-03-05T12:10:13.000Z |
// Warning! This file is autogenerated.
#include <boost/text/collation_table.hpp>
#include <boost/text/collate.hpp>
#include <boost/text/data/all.hpp>
#ifndef LIMIT_TESTING_FOR_CI
#include <boost/text/save_load_table.hpp>
#include <boost/filesystem.hpp>
#endif
#include <gtest/gtest.h>
using namespace boost::text;
... | 32.310635 | 74 | 0.564068 | jan-moeller |
fdcd7ad405005f4cc9de54f92192bfade033e168 | 13,488 | cpp | C++ | libnd4j/include/helpers/cpu/jacobiSVD.cpp | wyfish/deeplearning4j_study | 32e5cc1945a3fb75bd281aa9558888b75761e26f | [
"Apache-2.0"
] | 1 | 2021-02-27T09:38:11.000Z | 2021-02-27T09:38:11.000Z | libnd4j/include/helpers/cpu/jacobiSVD.cpp | wyfish/deeplearning4j_study | 32e5cc1945a3fb75bd281aa9558888b75761e26f | [
"Apache-2.0"
] | 80 | 2019-08-01T19:41:52.000Z | 2021-08-02T16:57:51.000Z | libnd4j/include/helpers/cpu/jacobiSVD.cpp | wyfish/deeplearning4j_study | 32e5cc1945a3fb75bd281aa9558888b75761e26f | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | 30.93578 | 154 | 0.514235 | wyfish |
fdce1cee9fcd4a9f65b6847acce52717f6efc6a5 | 7,653 | cpp | C++ | Code/Tools/Libs/GuiFoundation/Widgets/Implementation/CurveEditData.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 703 | 2015-03-07T15:30:40.000Z | 2022-03-30T00:12:40.000Z | Code/Tools/Libs/GuiFoundation/Widgets/Implementation/CurveEditData.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 233 | 2015-01-11T16:54:32.000Z | 2022-03-19T18:00:47.000Z | Code/Tools/Libs/GuiFoundation/Widgets/Implementation/CurveEditData.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 101 | 2016-10-28T14:05:10.000Z | 2022-03-30T19:00:59.000Z | #include <GuiFoundation/GuiFoundationPCH.h>
#include <Foundation/Math/Math.h>
#include <Foundation/Tracks/Curve1D.h>
#include <GuiFoundation/Widgets/CurveEditData.h>
// clang-format off
EZ_BEGIN_STATIC_REFLECTED_ENUM(ezCurveTangentMode, 1)
EZ_ENUM_CONSTANTS(ezCurveTangentMode::Bezier, ezCurveTangentMode::FixedLength,... | 30.011765 | 132 | 0.710179 | Tekh-ops |
fdd1770dc5637e91b66277bb529d96c4993ea283 | 7,166 | hh | C++ | libraries/sql/tests/generic_sql_tests.hh | BlueSolei/lithium | 080b7db72efd6f673103f6a29ddb027cb50f812b | [
"MIT"
] | null | null | null | libraries/sql/tests/generic_sql_tests.hh | BlueSolei/lithium | 080b7db72efd6f673103f6a29ddb027cb50f812b | [
"MIT"
] | null | null | null | libraries/sql/tests/generic_sql_tests.hh | BlueSolei/lithium | 080b7db72efd6f673103f6a29ddb027cb50f812b | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
template <typename... T> std::ostream& operator<<(std::ostream& os, std::tuple<T...> t) {
os << "TUPLE<";
li::tuple_map(std::forward<std::tuple<T...>>(t), [&os](auto v) { os << v << " ,"; });
os << ">";
return os;
}
#define EXPECT_THROW(STM) ... | 40.948571 | 181 | 0.529305 | BlueSolei |
fdd45a03cf5f9f1fc73fcdd9ee60c0fee18844f1 | 112,441 | cpp | C++ | src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_s8s32_dot_16x4/generic.cpp | alankelly/ComputeLibrary | 4478fc92192b00f41a2cd577e19adae565af53ea | [
"MIT"
] | null | null | null | src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_s8s32_dot_16x4/generic.cpp | alankelly/ComputeLibrary | 4478fc92192b00f41a2cd577e19adae565af53ea | [
"MIT"
] | null | null | null | src/core/NEON/kernels/arm_gemm/kernels/a64_hybrid_s8s32_dot_16x4/generic.cpp | alankelly/ComputeLibrary | 4478fc92192b00f41a2cd577e19adae565af53ea | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2019 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 ... | 61.042888 | 286 | 0.412812 | alankelly |
fdd53031deacefcac200fa86df36668ebc8f067b | 9,770 | cc | C++ | src/MeshHelper.cc | huzjkevin/portal_maze_zgl | efb32b1c3430f20638c1401095999ecb4d0af5aa | [
"MIT"
] | null | null | null | src/MeshHelper.cc | huzjkevin/portal_maze_zgl | efb32b1c3430f20638c1401095999ecb4d0af5aa | [
"MIT"
] | null | null | null | src/MeshHelper.cc | huzjkevin/portal_maze_zgl | efb32b1c3430f20638c1401095999ecb4d0af5aa | [
"MIT"
] | null | null | null | #include "MeshHelper.hh"
glm::vec3 MeshHelper::getTangent(std::vector<glm::vec3>* normals, std::vector<glm::vec3>* tangents, glm::vec3 normal)
{
for (uint32_t i = 0; i < normals->size(); i++)
{
if (normal == (*normals)[i])
{
return (*tangents)[i];
}
}
return glm::ve... | 34.160839 | 151 | 0.62477 | huzjkevin |
fdd58344764df38a083c5f8110a6dd1a4e98c5fb | 218 | cpp | C++ | examples/multiprocesssystem/navi/navi.cpp | task-jp/qtmultiprocesssystem | 697af92672a4b413a1db1b50aeb779a1837d8077 | [
"BSD-3-Clause"
] | null | null | null | examples/multiprocesssystem/navi/navi.cpp | task-jp/qtmultiprocesssystem | 697af92672a4b413a1db1b50aeb779a1837d8077 | [
"BSD-3-Clause"
] | null | null | null | examples/multiprocesssystem/navi/navi.cpp | task-jp/qtmultiprocesssystem | 697af92672a4b413a1db1b50aeb779a1837d8077 | [
"BSD-3-Clause"
] | null | null | null | #include <QtMultiProcessSystem/qmpsapplicationplugin.h>
class Navi : public QMpsApplicationPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID QMpsApplicationFactoryInterface_iid FILE "navi.json")
};
#include "navi.moc"
| 21.8 | 79 | 0.798165 | task-jp |
fdd5889f024f0db66ba178f79ee3904d53299ebe | 3,736 | hpp | C++ | external/include/mapnik/palette.hpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | external/include/mapnik/palette.hpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | external/include/mapnik/palette.hpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | 2 | 2019-06-08T15:59:26.000Z | 2021-02-06T08:13:01.000Z | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... | 25.589041 | 85 | 0.589668 | Wujingli |
fdd7acb4122604630dd4ad15ca8cd38c913ce8a4 | 7,497 | cpp | C++ | cppcache/src/RegionFactory.cpp | vaijira/geode-native | 5a46b659b86ecc4890df59c1b7abe727192e5d06 | [
"Apache-2.0"
] | null | null | null | cppcache/src/RegionFactory.cpp | vaijira/geode-native | 5a46b659b86ecc4890df59c1b7abe727192e5d06 | [
"Apache-2.0"
] | null | null | null | cppcache/src/RegionFactory.cpp | vaijira/geode-native | 5a46b659b86ecc4890df59c1b7abe727192e5d06 | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 34.077273 | 79 | 0.7511 | vaijira |
fddbd9a6c4f70978f83ea5001704dad036792b79 | 2,507 | cpp | C++ | ARWorkspaceEngine/Source/DisplayInfoUtility.cpp | SekiShuhei/ARWorkspace | 917089e29f5ea41336ffea4cd6f545bffb1f1c16 | [
"Apache-2.0"
] | null | null | null | ARWorkspaceEngine/Source/DisplayInfoUtility.cpp | SekiShuhei/ARWorkspace | 917089e29f5ea41336ffea4cd6f545bffb1f1c16 | [
"Apache-2.0"
] | 5 | 2020-04-17T10:08:29.000Z | 2020-04-26T07:17:18.000Z | ARWorkspaceEngine/Source/DisplayInfoUtility.cpp | SekiShuhei/ARWorkspace | 917089e29f5ea41336ffea4cd6f545bffb1f1c16 | [
"Apache-2.0"
] | null | null | null |
#include <algorithm>
#include "DisplayInfoUtility.hpp"
namespace ARWorkspace {
DisplayInfoUtility::DisplayInfoUtility()
{
this->EnumDisplayInfo();
}
bool DisplayInfoUtility::EnumDisplayInfo() noexcept
{
::EnumDisplayMonitors(NULL, NULL, (MONITORENUMPROC)enumDisplayCallback, (LPARAM)this);
return... | 26.956989 | 122 | 0.713203 | SekiShuhei |
fde2aab50c2e4c521249820ebeae757579b9ca10 | 941 | hpp | C++ | MainBrain/src/Model/SdCard/SdCard.hpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 10 | 2017-07-30T21:26:32.000Z | 2021-05-04T14:33:29.000Z | MainBrain/src/Model/SdCard/SdCard.hpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 122 | 2017-07-30T15:55:55.000Z | 2019-05-19T20:29:13.000Z | MainBrain/src/Model/SdCard/SdCard.hpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 3 | 2018-03-10T20:01:10.000Z | 2019-06-07T18:02:38.000Z | /** Handles the hardware level functions of the SdFat library
*
* #include "SdCard.hpp"
* Created 1-5-18 By: Smitty
*
* A longer description.
*/
#ifndef SDCARD_HPP
#define SDCARD_HPP
#include "SdFat.h"
#include "../Constants/Port.hpp"
#include "../Constants/Constants.hpp"
class SdCard
{
public:
SdCard... | 18.45098 | 89 | 0.671626 | smit-happens |
fde3c387d142fe60352480fa8067b1b74a86d4a6 | 9,059 | cpp | C++ | src/elona/ui/ui_menu_crafting.cpp | ElonaFoobar/ElonaFoobar | 35864685dcca96c4c9ad683c4f5b3537e86bc06f | [
"MIT"
] | 84 | 2018-03-03T02:44:32.000Z | 2019-07-14T16:16:24.000Z | src/elona/ui/ui_menu_crafting.cpp | ki-foobar/ElonaFoobar | d251cf5bd8c21789db3b56b1c9b1302ce69b2c2e | [
"MIT"
] | 685 | 2018-02-27T04:31:17.000Z | 2019-07-12T13:43:00.000Z | src/elona/ui/ui_menu_crafting.cpp | ki-foobar/ElonaFoobar | d251cf5bd8c21789db3b56b1c9b1302ce69b2c2e | [
"MIT"
] | 23 | 2019-07-26T08:52:38.000Z | 2021-11-09T09:21:58.000Z | #include "ui_menu_crafting.hpp"
#include "../audio.hpp"
#include "../crafting.hpp"
#include "../data/types/type_crafting_material.hpp"
#include "../draw.hpp"
#include "../i18n.hpp"
#include "../inventory.hpp"
#include "../item.hpp"
#include "../message.hpp"
#include "../skill.hpp"
namespace elona
{
namespace ui
{
st... | 23.591146 | 80 | 0.551385 | ElonaFoobar |
fde4d3fd78567cf34db30e448a4f044f103e20db | 10,662 | hpp | C++ | include/RootSignature.hpp | procedural/d3d12_translation_layer | fc07d09db68e304b1210a7c4d7793c944dd8151f | [
"MIT"
] | 1 | 2020-04-08T03:12:17.000Z | 2020-04-08T03:12:17.000Z | include/RootSignature.hpp | procedural/d3d12_translation_layer | fc07d09db68e304b1210a7c4d7793c944dd8151f | [
"MIT"
] | null | null | null | include/RootSignature.hpp | procedural/d3d12_translation_layer | fc07d09db68e304b1210a7c4d7793c944dd8151f | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include <array>
namespace D3D12TranslationLayer
{
#define ROOT_SIGNATURE_FLAG_ALLOW_LOW_TIER_RESERVED_HW_CB_LIMIT ((D3D12_ROOT_SIGNATURE_FLAGS)0x80000000)
struct VersionedRootSignatureDescWithStorage
{
... | 40.694656 | 132 | 0.594072 | procedural |
fde53322803949bb0379985994662d6aa4b8e15b | 300 | cpp | C++ | example-Bg_Basic/src/ofApp.cpp | moebiussurfing/ofxBackgroundGradient | a95f62ed2d03aa20cf784f2318fb901bd6a4cfd2 | [
"MIT"
] | 1 | 2021-02-04T16:31:26.000Z | 2021-02-04T16:31:26.000Z | example-Bg_Basic/src/ofApp.cpp | moebiussurfing/ofxBackgroundGradient | a95f62ed2d03aa20cf784f2318fb901bd6a4cfd2 | [
"MIT"
] | null | null | null | example-Bg_Basic/src/ofApp.cpp | moebiussurfing/ofxBackgroundGradient | a95f62ed2d03aa20cf784f2318fb901bd6a4cfd2 | [
"MIT"
] | null | null | null | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::draw()
{
//bg.draw(); // -> draws bg and gui
bg.drawBackground(); // -> draws bg
cam.begin();
{
bg.drawFloor(); // -> draws a 3d floor environment
}
cam.end();
bg.drawGui(); // -> draws gui
} | 17.647059 | 64 | 0.446667 | moebiussurfing |
fde63bbd55e3d2c4faaf44c1c5a1d6d118491a90 | 640 | cpp | C++ | Third exercise/Double Diamond/DoubleDiamond type1.cpp | pouyaardehkhani/Fundamentals-of-Programming-Course-Exercises-CPP | a6bd550b5db46f6349ec418f25246f7578cdd015 | [
"MIT"
] | 1 | 2022-02-18T22:26:41.000Z | 2022-02-18T22:26:41.000Z | Third exercise/Double Diamond/DoubleDiamond type1.cpp | pouyaardehkhani/Fundamentals-of-Programming-Course-Exercises-CPP | a6bd550b5db46f6349ec418f25246f7578cdd015 | [
"MIT"
] | null | null | null | Third exercise/Double Diamond/DoubleDiamond type1.cpp | pouyaardehkhani/Fundamentals-of-Programming-Course-Exercises-CPP | a6bd550b5db46f6349ec418f25246f7578cdd015 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void repeat(char symbol, int times);
void printDoubleDiamond(int diameter);
int main() {
int diameter;
cin >> diameter;
printDoubleDiamond(diameter);
}
void printDoubleDiamond(int diameter) {
int middle_row = (diameter + 1) / 2;
for (int row = 1; row <= diameter; ++row) ... | 20.645161 | 56 | 0.648438 | pouyaardehkhani |
fde70e862706511bcc714cd2efbb46e0603fd686 | 2,522 | hpp | C++ | Declarations/Takion/Utils/WeakPtr-Decl.hpp | jwkim98/Takion | 5e7351c5bd3400429dc7d28c0be4cddcc1324180 | [
"MIT"
] | 1 | 2021-07-06T10:52:41.000Z | 2021-07-06T10:52:41.000Z | Declarations/Takion/Utils/WeakPtr-Decl.hpp | jwkim98/Takion | 5e7351c5bd3400429dc7d28c0be4cddcc1324180 | [
"MIT"
] | null | null | null | Declarations/Takion/Utils/WeakPtr-Decl.hpp | jwkim98/Takion | 5e7351c5bd3400429dc7d28c0be4cddcc1324180 | [
"MIT"
] | 3 | 2020-08-08T15:03:28.000Z | 2020-11-04T17:17:59.000Z | // Copyright (c) 2020, Jaewoo Kim
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#pragma once
#include <Takion/Utils/SharedPtr.hpp>
namespace Takion
{
//! \brief : Thi... | 29.325581 | 81 | 0.641554 | jwkim98 |
fdec7e17bf3f79d21e4c5dc0a0a74f63d4a7a10c | 1,024 | cpp | C++ | setupdialog.cpp | stanislav888/AddressBook | bab02390e25e08e225e54451a7f0868caeb0e3fe | [
"Apache-2.0"
] | null | null | null | setupdialog.cpp | stanislav888/AddressBook | bab02390e25e08e225e54451a7f0868caeb0e3fe | [
"Apache-2.0"
] | null | null | null | setupdialog.cpp | stanislav888/AddressBook | bab02390e25e08e225e54451a7f0868caeb0e3fe | [
"Apache-2.0"
] | null | null | null | #include <QFileDialog>
#include "setupdialog.h"
#include "ui_setupdialog.h"
#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))
#define STANDART_PATHS_IS_PRESENT
#include <QStandardPaths>
#endif
SetupDialog::SetupDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::SetupDialog)
{
ui->setupUi(this);
QString appDataFol... | 20.48 | 86 | 0.723633 | stanislav888 |
fdf6307a0937fdcb5368196d2a7b953818554b14 | 22,005 | cc | C++ | src/zetton_inference/tracker/mot_tracker.cc | project-zetton/zetton-inference | 2b7534d3e6b868338e6cbcddcb652553fe9b918c | [
"BSD-2-Clause"
] | 1 | 2021-03-16T03:07:31.000Z | 2021-03-16T03:07:31.000Z | src/zetton_inference/tracker/mot_tracker.cc | project-zetton/zetton-inference | 2b7534d3e6b868338e6cbcddcb652553fe9b918c | [
"BSD-2-Clause"
] | null | null | null | src/zetton_inference/tracker/mot_tracker.cc | project-zetton/zetton-inference | 2b7534d3e6b868338e6cbcddcb652553fe9b918c | [
"BSD-2-Clause"
] | null | null | null | #include "zetton_inference/tracker/mot_tracker.h"
#include <cstddef>
#include <stdexcept>
#include "zetton_common/util/ros_util.h"
namespace zetton {
namespace inference {
bool MotTracker::Init() {
load_config(&nh_);
opt_tracker = tracker::OpticalFlow(opt_param);
}
std::vector<tracker::LocalObject> MotTracker:... | 40.155109 | 80 | 0.672256 | project-zetton |
fdfb784d1f7f03e46ab068b9182c47b1a033e8e4 | 902 | hpp | C++ | boost/numeric/ublas/Newton.hpp | ATetiukhin/Davidon_Fletcher_Powell | 92f96b5e8552b86613fc5a5ac7f29bd653dbee1f | [
"MIT"
] | 2 | 2015-07-08T03:35:40.000Z | 2017-02-26T19:19:38.000Z | boost/numeric/ublas/Newton.hpp | ATetiukhin/Davidon_Fletcher_Powell | 92f96b5e8552b86613fc5a5ac7f29bd653dbee1f | [
"MIT"
] | null | null | null | boost/numeric/ublas/Newton.hpp | ATetiukhin/Davidon_Fletcher_Powell | 92f96b5e8552b86613fc5a5ac7f29bd653dbee1f | [
"MIT"
] | null | null | null | #ifndef BOOST_UBLAS_NEWTON_HPP
#define BOOST_UBLAS_NEWTON_HPP
#include "function.hpp"
#include "invert_matrix.hpp"
namespace boost {
namespace numeric {
namespace ublas {
template <class T>
vector<T> Newton(const Function<T> & f, vector<T> x, const double epsilon, size_t & number_i... | 31.103448 | 135 | 0.54102 | ATetiukhin |
fdfd6aed09a4e39b8b91b30ce951ab5944d82795 | 38,060 | hpp | C++ | include/System/Globalization/Calendar.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/Globalization/Calendar.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/Globalization/Calendar.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.IClonea... | 59.283489 | 229 | 0.731529 | Fernthedev |
a900093c6e0cef4d1276297aa4472190374535fb | 3,877 | cpp | C++ | unit_tests/mocks/mock_deferred_deleter.cpp | jdanecki/compute-runtime | 0d7be1066d61a4e803fee9dcea6e9e9b4213b3b9 | [
"MIT"
] | null | null | null | unit_tests/mocks/mock_deferred_deleter.cpp | jdanecki/compute-runtime | 0d7be1066d61a4e803fee9dcea6e9e9b4213b3b9 | [
"MIT"
] | null | null | null | unit_tests/mocks/mock_deferred_deleter.cpp | jdanecki/compute-runtime | 0d7be1066d61a4e803fee9dcea6e9e9b4213b3b9 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2017 - 2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge,... | 26.554795 | 77 | 0.749033 | jdanecki |
a905cc3382f7497806cf742d989dae71335e1424 | 730 | cpp | C++ | Bit Manipulation/minXOR.cpp | Ankitlenka26/IP2021 | 99322c9c84a8a9c9178a505afbffdcebd312b059 | [
"MIT"
] | null | null | null | Bit Manipulation/minXOR.cpp | Ankitlenka26/IP2021 | 99322c9c84a8a9c9178a505afbffdcebd312b059 | [
"MIT"
] | null | null | null | Bit Manipulation/minXOR.cpp | Ankitlenka26/IP2021 | 99322c9c84a8a9c9178a505afbffdcebd312b059 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<algorithm>
#include<string>
using namespace std ;
void helper(vector<int>& arr , int n){
sort(arr.begin() , arr.end());
vector<string>* res = new vector<string>();
int min = INT_MAX;
for(int i=0 ; i<arr.size()-1; i++){
int Xor = arr[i]^arr[i+1];
if(Xor < min){... | 18.25 | 65 | 0.558904 | Ankitlenka26 |
a906047ddf845829b909c41a9794fac08711c481 | 2,551 | cpp | C++ | src/Hpipe/Lexem.cpp | hleclerc/Hpipe | 5ac7fa1fa2a2a4aaf2826ae793c799ddd828ac6c | [
"Apache-2.0"
] | 2 | 2017-03-09T14:52:36.000Z | 2018-04-03T15:29:10.000Z | src/Hpipe/Lexem.cpp | hleclerc/Hpipe | 5ac7fa1fa2a2a4aaf2826ae793c799ddd828ac6c | [
"Apache-2.0"
] | null | null | null | src/Hpipe/Lexem.cpp | hleclerc/Hpipe | 5ac7fa1fa2a2a4aaf2826ae793c799ddd828ac6c | [
"Apache-2.0"
] | null | null | null | #include "DotOut.h"
#include "Lexem.h"
#include <string.h>
#include <fstream>
using namespace std;
namespace Hpipe {
Lexem::Lexem( Type type, Source *source, const char *beg, const string str ) : beg( beg ), str( str ), type( type ), source( source ) {
children[ 0 ] = 0;
children[ 1 ] = 0;
parent ... | 23.841121 | 135 | 0.462956 | hleclerc |
a90a8b1b890e54c9e441ec0f0c7dd83dcffcd5e6 | 905 | hpp | C++ | include/mqtt/remaining_length.hpp | BillPlunkett/mqtt_cpp | 824188ee65da2c098b069b94aa078390981cc767 | [
"BSL-1.0"
] | 1 | 2020-02-10T09:20:35.000Z | 2020-02-10T09:20:35.000Z | include/mqtt/remaining_length.hpp | karthik2883/mqtt_cpp | 8f2fa503f11eb6b52b94b55727c7aecb2046b1fe | [
"BSL-1.0"
] | 2 | 2021-09-08T07:53:05.000Z | 2021-09-17T13:37:51.000Z | include/mqtt/remaining_length.hpp | karthik2883/mqtt_cpp | 8f2fa503f11eb6b52b94b55727c7aecb2046b1fe | [
"BSL-1.0"
] | null | null | null | // Copyright Takatoshi Kondo 2015
//
// 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)
#if !defined(MQTT_REMAINING_LENGTH_HPP)
#define MQTT_REMAINING_LENGTH_HPP
#include <mqtt/namespace.hpp>
#include <mqtt/string... | 24.459459 | 61 | 0.754696 | BillPlunkett |
a90ded88805ed76b87f9b8a7e6743d8324ce65d5 | 2,700 | hpp | C++ | src/core/grabber/include/device_grabber_details/simple_modifications_manipulator_manager.hpp | jinjun021/kara | 2a60cbdba40c193c508e9117028757ce0c467c54 | [
"Unlicense"
] | null | null | null | src/core/grabber/include/device_grabber_details/simple_modifications_manipulator_manager.hpp | jinjun021/kara | 2a60cbdba40c193c508e9117028757ce0c467c54 | [
"Unlicense"
] | null | null | null | src/core/grabber/include/device_grabber_details/simple_modifications_manipulator_manager.hpp | jinjun021/kara | 2a60cbdba40c193c508e9117028757ce0c467c54 | [
"Unlicense"
] | null | null | null | #pragma once
#include "core_configuration/core_configuration.hpp"
#include "manipulator/manipulator_factory.hpp"
#include "manipulator/manipulator_manager.hpp"
#include "manipulator/manipulators/basic/basic.hpp"
namespace krbn {
namespace device_grabber_details {
class simple_modifications_manipulator_manager final {... | 36 | 140 | 0.664815 | jinjun021 |
a90f997bda0db5ea3848854fb85b45fdc35bb9f4 | 4,067 | cc | C++ | test/core/security/print_google_default_creds_token.cc | wangzihust/gRPC | 123547c9625c56fdf5cb4ddd1df55ae0c785fa60 | [
"Apache-2.0"
] | null | null | null | test/core/security/print_google_default_creds_token.cc | wangzihust/gRPC | 123547c9625c56fdf5cb4ddd1df55ae0c785fa60 | [
"Apache-2.0"
] | null | null | null | test/core/security/print_google_default_creds_token.cc | wangzihust/gRPC | 123547c9625c56fdf5cb4ddd1df55ae0c785fa60 | [
"Apache-2.0"
] | null | null | null | /*
*
* Copyright 2015 gRPC 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 agree... | 31.527132 | 79 | 0.712565 | wangzihust |
a910c8b33e79cfaa566de6099acac2cf11cb89fa | 14,501 | cpp | C++ | utils/ResourceLib/src/TauTexture.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | 1 | 2020-04-22T04:07:01.000Z | 2020-04-22T04:07:01.000Z | utils/ResourceLib/src/TauTexture.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | utils/ResourceLib/src/TauTexture.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | #include "TauTexture.hpp"
#include "IFile.hpp"
#include <EnumBitFields.hpp>
#include <String.hpp>
#include <Lzma2Dec.h>
#include <Alloc.h>
#pragma pack(push, 1)
namespace TT {
enum Flags : u16
{
None = 0,
HasDebugData = 1 << 0,
HasChecksum = 1 << 1,
Compressed = 1 << 2
};
e... | 31.184946 | 176 | 0.656713 | hyfloac |
a9176fb50e30a2822a3fc2e889b58e65c3e7f948 | 952 | hpp | C++ | Kernel/include/platform/x86_64/interrupt_parameters.hpp | foxostro/FlapjackOS | 34bd2cc9b0983b917a089efe2055ca8f78d56d9a | [
"BSD-2-Clause"
] | null | null | null | Kernel/include/platform/x86_64/interrupt_parameters.hpp | foxostro/FlapjackOS | 34bd2cc9b0983b917a089efe2055ca8f78d56d9a | [
"BSD-2-Clause"
] | null | null | null | Kernel/include/platform/x86_64/interrupt_parameters.hpp | foxostro/FlapjackOS | 34bd2cc9b0983b917a089efe2055ca8f78d56d9a | [
"BSD-2-Clause"
] | null | null | null | #ifndef FLAPJACKOS_KERNEL_INCLUDE_PLATFORM_X86_64_INTERRUPT_PARAMETERS_HPP
#define FLAPJACKOS_KERNEL_INCLUDE_PLATFORM_X86_64_INTERRUPT_PARAMETERS_HPP
#include <cstdint>
namespace x86_64 {
// A parameter package constructed by the low-level ISR wrapper.
struct InterruptParameters {
uint64_t size; // The size of t... | 24.410256 | 80 | 0.736345 | foxostro |
a918eef516551cb39a7714d66ea05f54f7870deb | 1,656 | cpp | C++ | LeetCode/683.K_Empty_Slots.cpp | ryanpark91/algorithm | 22ee4ede53d47c4b255556be0b3e22395566980e | [
"MIT"
] | 2 | 2018-04-08T14:48:45.000Z | 2018-04-11T16:38:48.000Z | LeetCode/683.K_Empty_Slots.cpp | ryanpark91/algorithm | 22ee4ede53d47c4b255556be0b3e22395566980e | [
"MIT"
] | null | null | null | LeetCode/683.K_Empty_Slots.cpp | ryanpark91/algorithm | 22ee4ede53d47c4b255556be0b3e22395566980e | [
"MIT"
] | null | null | null | struct NODE
{
int pos;
int val;
bool operator()(NODE p, NODE q)
{
return p.val > q.val;
}
};
class Solution {
public:
int kEmptySlots(vector<int>& flowers, int k) {
int slot_count = flowers.size();
if (k > slot_count-2) return -1;
vector<int> slots(slot_... | 30.109091 | 92 | 0.421498 | ryanpark91 |
a91f6f20fda7792e40981b169f0a642c1e0e4ff1 | 41 | cpp | C++ | BAC/exercises/ch5/UVa591.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC/exercises/ch5/UVa591.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC/exercises/ch5/UVa591.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa591 Box of Bricks
// Rujia Liu
// 棰 | 13.666667 | 23 | 0.634146 | Anyrainel |
a925819d4d6ab7ff3538aae1637ec8567b273f7a | 32,511 | cpp | C++ | src/topp/IDFilter.cpp | raghav17083/OpenMS | ddcdd3068a93a7c415675c39bac43d796a845f1d | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | null | null | null | src/topp/IDFilter.cpp | raghav17083/OpenMS | ddcdd3068a93a7c415675c39bac43d796a845f1d | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | null | null | null | src/topp/IDFilter.cpp | raghav17083/OpenMS | ddcdd3068a93a7c415675c39bac43d796a845f1d | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | null | null | null | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 47.810294 | 263 | 0.681708 | raghav17083 |
a926e12fb853464a9c605d61bce9121518c11137 | 2,787 | cpp | C++ | fileserver/src/fileserver.cpp | agandzyuk/fmultitransfer | 0b92cee70f7831fc8598fb3d5cf816bcece6261f | [
"MIT"
] | null | null | null | fileserver/src/fileserver.cpp | agandzyuk/fmultitransfer | 0b92cee70f7831fc8598fb3d5cf816bcece6261f | [
"MIT"
] | null | null | null | fileserver/src/fileserver.cpp | agandzyuk/fmultitransfer | 0b92cee70f7831fc8598fb3d5cf816bcece6261f | [
"MIT"
] | null | null | null | #include "fileserver.h"
#include "dispatcher.h"
#include "notify_base.h"
#include <iostream>
#include <algorithm>
#include <functional>
using namespace std;
//////////////////////////////////////////////////////////////////////////////////////////
// Application main
int main()
{
IPAddress::init();
u16 list... | 25.336364 | 124 | 0.532831 | agandzyuk |
a92a489fced3bb2e648dd035b3d0ff59b6ff282e | 4,469 | hpp | C++ | ReactNativeFrontend/ios/Pods/boost/boost/detail/basic_pointerbuf.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 2,728 | 2015-01-01T10:06:45.000Z | 2022-03-30T18:12:58.000Z | ReactNativeFrontend/ios/Pods/boost/boost/detail/basic_pointerbuf.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 1,192 | 2015-01-01T06:03:19.000Z | 2022-03-31T09:14:36.000Z | ReactNativeFrontend/ios/Pods/boost/boost/detail/basic_pointerbuf.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 334 | 2015-01-08T20:47:03.000Z | 2022-02-18T07:07:01.000Z | //-----------------------------------------------------------------------------
// boost detail/templated_streams.hpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2013 John Ma... | 32.151079 | 139 | 0.668382 | Harshitha91 |
a92a7990c3af2f773137479dc908629edf5aff70 | 8,468 | cpp | C++ | Code/Algorithms/A-13-0-RedBlackTree/RedBlackTreeTest.cpp | maomao9003/Introduction-to-Algorithms | 50b226cadfdc6c0f728f1d1ac814958c821f2a2c | [
"MIT"
] | 25 | 2018-07-06T08:37:50.000Z | 2021-07-13T08:56:14.000Z | Code/Algorithms/A-13-0-RedBlackTree/RedBlackTreeTest.cpp | dingydyd/Introduction-to-Algorithms | 50b226cadfdc6c0f728f1d1ac814958c821f2a2c | [
"MIT"
] | 9 | 2017-12-19T03:00:48.000Z | 2018-06-13T03:12:33.000Z | Code/Algorithms/A-13-0-RedBlackTree/RedBlackTreeTest.cpp | dingydyd/Introduction-to-Algorithms | 50b226cadfdc6c0f728f1d1ac814958c821f2a2c | [
"MIT"
] | 16 | 2018-07-19T13:36:36.000Z | 2021-05-20T08:18:52.000Z | // Copyright [2017] <MaoMao>
// Ref: https://articles.leetcode.com/how-to-pretty-print-binary-tree/
// There is reference code, so ignore code standard
#include "RedBlackTreeTest.h"
#include "RedBlackTree.h"
#include <iostream>
#include <sstream>
#include <iomanip>
#include <deque>
#include <algorithm>
#include <math... | 34.704918 | 234 | 0.581838 | maomao9003 |
a92f4e439290d0689043278a2bdaba4f79b97ec8 | 1,069 | cc | C++ | src/eckit/web/JavaUser.cc | wsmigaj/eckit | 1a44679243fde8907e760f9cc9eaca87efbd651a | [
"Apache-2.0"
] | null | null | null | src/eckit/web/JavaUser.cc | wsmigaj/eckit | 1a44679243fde8907e760f9cc9eaca87efbd651a | [
"Apache-2.0"
] | null | null | null | src/eckit/web/JavaUser.cc | wsmigaj/eckit | 1a44679243fde8907e760f9cc9eaca87efbd651a | [
"Apache-2.0"
] | null | null | null | /*
* (C) Copyright 1996- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an interg... | 32.393939 | 120 | 0.471469 | wsmigaj |
a93095b497ac6f198aecb38d4820956f74a66520 | 6,397 | cxx | C++ | TEvtGen/Photos/examples/photos_pythia_example.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | TEvtGen/Photos/examples/photos_pythia_example.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | TEvtGen/Photos/examples/photos_pythia_example.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**
* Example of use of photos C++ interface. Pythia events are
* generated first and photos used for FSR.
*
* @author Nadia Davidson
* @date 6 July 2009
*/
//pythia header files
#include "Pythia.h"
#include "HepMCInterface.h"
//MC-TESTER header files
#include "Generate.h"
#include "HepMCEvent.H"
#include "Setu... | 28.686099 | 101 | 0.651712 | AllaMaevskaya |
a9348eb40636e9b93b216e01fdcd2ef5152ad3af | 1,871 | hpp | C++ | toml/from_toml.hpp | xaxousis/toml11 | d82814fc86c4afd8ad013239322f83c4788e469f | [
"MIT"
] | null | null | null | toml/from_toml.hpp | xaxousis/toml11 | d82814fc86c4afd8ad013239322f83c4788e469f | [
"MIT"
] | null | null | null | toml/from_toml.hpp | xaxousis/toml11 | d82814fc86c4afd8ad013239322f83c4788e469f | [
"MIT"
] | null | null | null | // Copyright Toru Niina 2017.
// Distributed under the MIT License.
#ifndef TOML11_FROM_TOML
#define TOML11_FROM_TOML
#include "get.hpp"
namespace toml
{
template<typename T>
void from_toml(T& x, const toml::value& v)
{
x = toml::get<typename std::remove_reference<T>::type>(v);
return;
}
namespace detail... | 25.986111 | 80 | 0.622127 | xaxousis |
a93799d81b5c3e10a6ea80cf5bf69544de7c8a61 | 1,688 | hpp | C++ | libs/full/plugin_factories/include/hpx/plugin_factories/unique_plugin_name.hpp | bhumitattarde/hpx | 5b34d8d77b1664fa552445d44cd98e51dc69a74a | [
"BSL-1.0"
] | 1 | 2022-02-08T05:55:09.000Z | 2022-02-08T05:55:09.000Z | libs/full/plugin_factories/include/hpx/plugin_factories/unique_plugin_name.hpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | libs/full/plugin_factories/include/hpx/plugin_factories/unique_plugin_name.hpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2011 Bryce Lelbach
// Copyright (c) 2013-2021 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <hpx/modules/preproce... | 46.888889 | 80 | 0.342417 | bhumitattarde |
a93bb81a651d5c66710bafeff85a30de2cadcae4 | 3,198 | hpp | C++ | global/src/timing/Timer.hpp | mdp19pn/Chaste | f7b6bafa64287d567125b587b29af6d8bd7aeb90 | [
"Apache-2.0",
"BSD-3-Clause"
] | 100 | 2015-02-23T08:32:23.000Z | 2022-02-25T11:39:26.000Z | global/src/timing/Timer.hpp | mdp19pn/Chaste | f7b6bafa64287d567125b587b29af6d8bd7aeb90 | [
"Apache-2.0",
"BSD-3-Clause"
] | 11 | 2017-06-14T13:48:43.000Z | 2022-03-10T10:42:07.000Z | global/src/timing/Timer.hpp | mdp19pn/Chaste | f7b6bafa64287d567125b587b29af6d8bd7aeb90 | [
"Apache-2.0",
"BSD-3-Clause"
] | 53 | 2015-02-23T13:52:44.000Z | 2022-02-28T18:57:35.000Z | /*
Copyright (c) 2005-2021, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... | 31.048544 | 96 | 0.718574 | mdp19pn |
a93d1c2cc43715e62275dba24d8f4825b920fb54 | 1,724 | inl | C++ | cuj/inc/cuj/dsl/impl/bitcast.inl | AirGuanZ/cuj | 81030a35e1cb8f3f2134d267d8a416aa348348cd | [
"MIT"
] | 23 | 2021-04-24T12:08:40.000Z | 2022-01-18T14:26:00.000Z | cuj/inc/cuj/dsl/impl/bitcast.inl | AirGuanZ/cuj | 81030a35e1cb8f3f2134d267d8a416aa348348cd | [
"MIT"
] | null | null | null | cuj/inc/cuj/dsl/impl/bitcast.inl | AirGuanZ/cuj | 81030a35e1cb8f3f2134d267d8a416aa348348cd | [
"MIT"
] | 4 | 2021-04-24T12:08:56.000Z | 2022-01-20T07:46:41.000Z | #pragma once
#include <cuj/core/expr.h>
#include <cuj/dsl/arithmetic.h>
#include <cuj/dsl/bitcast.h>
#include <cuj/dsl/function.h>
CUJ_NAMESPACE_BEGIN(cuj::dsl)
namespace bitcast_detail
{
template<typename To, typename From>
To bitcast_impl(From from)
{
auto func_ctx = FunctionContext::get_func_... | 24.985507 | 79 | 0.683875 | AirGuanZ |
a940305a15447bec95aa018f8e400b971cd7683d | 2,807 | cpp | C++ | Tools/MMO.cpp | Inpher/XorPublic | 63f0bc679b618230bb786f0b7dea09bf8bdddd7a | [
"BSD-4-Clause-UC"
] | 2 | 2021-04-24T11:36:29.000Z | 2021-04-24T11:43:15.000Z | Tools/MMO.cpp | Inpher/Inpher-SPDZ | 63f0bc679b618230bb786f0b7dea09bf8bdddd7a | [
"BSD-4-Clause-UC"
] | 2 | 2017-03-21T20:05:23.000Z | 2017-03-27T17:36:55.000Z | Tools/MMO.cpp | Inpher/Inpher-SPDZ | 63f0bc679b618230bb786f0b7dea09bf8bdddd7a | [
"BSD-4-Clause-UC"
] | 1 | 2018-10-01T11:48:30.000Z | 2018-10-01T11:48:30.000Z | // (C) 2016 University of Bristol. See License.txt
/*
* MMO.cpp
*
*
*/
#include "MMO.h"
#include "Math/gf2n.h"
#include "Math/gfp.h"
#include "Math/bigint.h"
#include <unistd.h>
void MMO::zeroIV()
{
octet key[AES_BLK_SIZE];
memset(key,0,AES_BLK_SIZE*sizeof(octet));
setIV(key);
}
void MMO::setIV(oc... | 25.518182 | 99 | 0.505878 | Inpher |
a9478792b3dd945d2179fe4c370c17ed0f974f7c | 491 | hh | C++ | src/sqlitex/allocator_base.hh | igankevich/sqlitex | f174d3a2dadcaa2ffab0645031a0ffdd4ead7175 | [
"Unlicense"
] | 1 | 2021-05-02T10:56:30.000Z | 2021-05-02T10:56:30.000Z | src/sqlitex/allocator_base.hh | igankevich/sqlitex | f174d3a2dadcaa2ffab0645031a0ffdd4ead7175 | [
"Unlicense"
] | null | null | null | src/sqlitex/allocator_base.hh | igankevich/sqlitex | f174d3a2dadcaa2ffab0645031a0ffdd4ead7175 | [
"Unlicense"
] | null | null | null | #ifndef SQLITEX_ALLOCATOR_BASE_HH
#define SQLITEX_ALLOCATOR_BASE_HH
#include <sqlitex/forward.hh>
namespace sqlite {
class allocator_base {
public:
inline void* allocate(int size) { return nullptr; }
inline void free(void* ptr) {}
inline void* resize(void* ptr, int size) { return nullptr; }
inline int size... | 22.318182 | 62 | 0.700611 | igankevich |
a947d4fa448473d7467d4de168859d0a532b6fd7 | 4,895 | cpp | C++ | libpvkernel/plugins/input-types/pcap/pcap-gui/import-ui/src/ProgressWidget.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvkernel/plugins/input-types/pcap/pcap-gui/import-ui/src/ProgressWidget.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvkernel/plugins/input-types/pcap/pcap-gui/import-ui/src/ProgressWidget.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | //
// MIT License
//
// © ESI Group, 2015
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, pu... | 36.529851 | 96 | 0.687436 | inendi-inspector |
a94e59e301b8fd77de9fd9f593280d9a347dfbc6 | 2,056 | cpp | C++ | venv/lib/python3.7/site-packages/pystan/stan/lib/stan_math/test/unit/math/prim/arr/err/check_nonnegative_test.cpp | vchiapaikeo/prophet | e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7 | [
"MIT"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | venv/lib/python3.7/site-packages/pystan/stan/lib/stan_math/test/unit/math/prim/arr/err/check_nonnegative_test.cpp | vchiapaikeo/prophet | e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7 | [
"MIT"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | test/unit/math/prim/arr/err/check_nonnegative_test.cpp | riddell-stan/math | d84ee0d991400d6cf4b08a07a4e8d86e0651baea | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/prim/arr.hpp>
#include <gtest/gtest.h>
#include <vector>
#include <limits>
#include <string>
using stan::math::check_nonnegative;
TEST(ErrorHandlingScalar, CheckNonnegativeVectorized) {
int N = 5;
const char* function = "check_nonnegative";
std::vector<double> x(N);
x.assign(N, 0);
EXPE... | 30.235294 | 78 | 0.660019 | vchiapaikeo |
a9504007b966703471a6b9bbc8988fcf9afa649e | 1,534 | hpp | C++ | include/boost/webclient/polyfill/variant.hpp | madmongo1/webclient | 7eb52899443a76ced83b6f286b0e0d688f02fc65 | [
"BSL-1.0"
] | 3 | 2020-06-12T02:22:41.000Z | 2021-03-23T14:18:01.000Z | include/boost/webclient/polyfill/variant.hpp | madmongo1/webclient | 7eb52899443a76ced83b6f286b0e0d688f02fc65 | [
"BSL-1.0"
] | 1 | 2020-06-12T02:29:08.000Z | 2020-07-18T10:07:05.000Z | include/boost/webclient/polyfill/variant.hpp | madmongo1/webclient | 7eb52899443a76ced83b6f286b0e0d688f02fc65 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2020 Richard Hodges (hodges.r@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/madmongo1/webclient
//
// This project was made possible ... | 25.566667 | 98 | 0.723598 | madmongo1 |
a950d5276148795bacfa835dd2d785d325cbbcb2 | 28,065 | cpp | C++ | src/Application.cpp | Seif-Sallam/TomasolosAlgorithm | 7b150e2ae4deb4c2f9c770ff5610acb0b727af3b | [
"MIT"
] | null | null | null | src/Application.cpp | Seif-Sallam/TomasolosAlgorithm | 7b150e2ae4deb4c2f9c770ff5610acb0b727af3b | [
"MIT"
] | null | null | null | src/Application.cpp | Seif-Sallam/TomasolosAlgorithm | 7b150e2ae4deb4c2f9c770ff5610acb0b727af3b | [
"MIT"
] | null | null | null | #include "../headers/Application.h"
Application::Application()
: m_ActiveWindow(Windows::RenderWindow)
{
m_WindowSize = ImVec2(sf::VideoMode::getDesktopMode().width, sf::VideoMode::getDesktopMode().height);
m_Window = new sf::RenderWindow(sf::VideoMode(sf::VideoMode::getDesktopMode().width, sf::VideoMode::g... | 35.435606 | 222 | 0.564262 | Seif-Sallam |
a95160e948bece2befc666a4158625b4aac664fa | 2,619 | cpp | C++ | Sourcecode/private/mx/core/elements/Accidental.cpp | Webern/MxOld | 822f5ccc92363ddff118e3aa3a048c63be1e857e | [
"MIT"
] | 45 | 2019-04-16T19:55:08.000Z | 2022-02-14T02:06:32.000Z | Sourcecode/private/mx/core/elements/Accidental.cpp | Webern/MxOld | 822f5ccc92363ddff118e3aa3a048c63be1e857e | [
"MIT"
] | 70 | 2019-04-07T22:45:21.000Z | 2022-03-03T15:35:59.000Z | Sourcecode/private/mx/core/elements/Accidental.cpp | Webern/MxOld | 822f5ccc92363ddff118e3aa3a048c63be1e857e | [
"MIT"
] | 21 | 2019-05-13T13:59:06.000Z | 2022-03-25T02:21:05.000Z | // MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "mx/core/elements/Accidental.h"
#include "mx/core/FromXElement.h"
#include <iostream>
namespace mx
{
namespace core
{
Accidental::Accidental()
:myValue( AccidentalValue::natural )
... | 24.25 | 142 | 0.532264 | Webern |
a952303a21278dc1965eac8157f1859ac85b5ed4 | 2,198 | hpp | C++ | hal/ESP8266/gpio/gpio.hpp | yhsb2k/omef | 7425b62dd4b5d0af4e320816293f69d16d39f57a | [
"MIT"
] | null | null | null | hal/ESP8266/gpio/gpio.hpp | yhsb2k/omef | 7425b62dd4b5d0af4e320816293f69d16d39f57a | [
"MIT"
] | null | null | null | hal/ESP8266/gpio/gpio.hpp | yhsb2k/omef | 7425b62dd4b5d0af4e320816293f69d16d39f57a | [
"MIT"
] | null | null | null | #pragma once
#include <stdint.h>
/* List of ESP8266 pin functions according to this hal:
| DO,OD,DI | AF1 | AF2 | AF3 | AF4 |
| -------- | -------- | ---------- | ---------- | ----------- |
| GPIO0 | SPICS2 | - | - | CLK_OUT |
| GPIO1 | U0TXD | SPICS1 | ... | 34.888889 | 65 | 0.471793 | yhsb2k |
a962b6d441bc1bb345d1b098a297324ee7bce951 | 602 | cpp | C++ | depspawn-blitz-0.10/testsuite/slice-iterators.cpp | fraguela/depspawn | b5760f4c0d38a1b245ee5274e2ccc5c5fe2d3d45 | [
"MIT"
] | 8 | 2017-04-12T11:05:40.000Z | 2022-03-29T11:10:27.000Z | ibtk/third_party/blitz-0.10/testsuite/slice-iterators.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | null | null | null | ibtk/third_party/blitz-0.10/testsuite/slice-iterators.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | null | null | null | #include "testsuite.h"
#include <blitz/array.h>
BZ_USING_NAMESPACE(blitz)
int main(int argc, char* argv[]) {
Array<float,2> image(100, 200);
for (int x=0;x<100;x++)
for (int y=0;y<200;y++)
image(x,y) = 1000*y+x;
RectDomain<2> rect_domain(shape(0,0),shape(99,0));
Array<float,2> sl... | 24.08 | 69 | 0.574751 | fraguela |
a964e29519841b0f038fca04dd2e553327edd061 | 1,926 | cpp | C++ | Ln/Scid.cpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | 108 | 2020-10-01T17:12:40.000Z | 2022-03-30T09:18:03.000Z | Ln/Scid.cpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | 94 | 2020-10-03T13:40:30.000Z | 2022-03-30T09:18:00.000Z | Ln/Scid.cpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | 17 | 2020-10-29T13:27:59.000Z | 2022-03-18T13:05:03.000Z | #include"Ln/Scid.hpp"
#include<algorithm>
#include<sstream>
#include<stdexcept>
namespace {
bool is_digit(char c) {
return '0' <= c && c <= '9';
}
template<typename It>
bool parse_number(It b, It e, std::uint64_t& val, std::uint64_t mask) {
val = 0;
/* Does not filter out '000001'. */
while (b != e) {
auto c ... | 20.709677 | 71 | 0.565421 | 3nprob |
a967defccb1d94a3c65e0fe49d027949fa7c0faf | 6,202 | cpp | C++ | game_shared/haj/haj_cvars.cpp | steveuk/ham-and-jam | 25121bf6302d81e68207706ae5c313c0c84ffc78 | [
"MIT"
] | null | null | null | game_shared/haj/haj_cvars.cpp | steveuk/ham-and-jam | 25121bf6302d81e68207706ae5c313c0c84ffc78 | [
"MIT"
] | null | null | null | game_shared/haj/haj_cvars.cpp | steveuk/ham-and-jam | 25121bf6302d81e68207706ae5c313c0c84ffc78 | [
"MIT"
] | null | null | null | // *HaJ 202* - SteveUK
// Use this file for adding new serverside variables, for easy access.
#include "cbase.h"
#ifdef GAME_DLL
#include "hl2mp_cvars.h"
#endif
#include "haj_cvars.h"
#define HAJ_CVAR_FLAGS FCVAR_REPLICATED|FCVAR_ARCHIVE|FCVAR_NOTIFY
#define HAJ_CVAR_FLAGS_NO_SAVE FCVAR_REPLICATED|FCVAR_NOTIFY
// H... | 81.605263 | 217 | 0.781683 | steveuk |
a97372329c38b7c497a6f11d4081acc266ab8e35 | 2,548 | cpp | C++ | core/common/notif.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | null | null | null | core/common/notif.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | null | null | null | core/common/notif.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | null | null | null | #include "notif.h"
#include "str.h"
// global
NotificationBuffer g_notificationBuffer;
std::string Notification::getTypeStr(ServMgr::NOTIFY_TYPE type)
{
switch (type)
{
case ServMgr::NT_UPGRADE:
return "Upgrade Alert";
case ServMgr::NT_PEERCAST:
return "Peercast";
case ServMgr::NT_... | 24.980392 | 103 | 0.567504 | plonk |
a973fe4ec4476b14fd75109f0ba257cea3c54840 | 5,387 | hpp | C++ | src/Renderers/OIT/PerPixelLinkedListLineRenderer.hpp | FelixBrendel/LineVis | 428cf82328ba3d3ac9435f3df765330149d4a921 | [
"Apache-2.0"
] | null | null | null | src/Renderers/OIT/PerPixelLinkedListLineRenderer.hpp | FelixBrendel/LineVis | 428cf82328ba3d3ac9435f3df765330149d4a921 | [
"Apache-2.0"
] | null | null | null | src/Renderers/OIT/PerPixelLinkedListLineRenderer.hpp | FelixBrendel/LineVis | 428cf82328ba3d3ac9435f3df765330149d4a921 | [
"Apache-2.0"
] | null | null | null | /*
* BSD 2-Clause License
*
* Copyright (c) 2020, Christoph Neuhauser
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright ... | 40.503759 | 116 | 0.754594 | FelixBrendel |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.