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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8282e9c513fecfcaa2b87ec1a228db7313461333 | 2,927 | inl | C++ | include/vke/Core/Math/DirectX/CQuaternion.inl | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | 1 | 2018-01-06T04:44:36.000Z | 2018-01-06T04:44:36.000Z | include/vke/Core/Math/DirectX/CQuaternion.inl | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | null | null | null | include/vke/Core/Math/DirectX/CQuaternion.inl | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | null | null | null | #if VKE_USE_DIRECTX_MATH
#include "Core/Math/CMatrix.h"
namespace VKE
{
namespace Math
{
constexpr CQuaternion::CQuaternion( const float x, const float y, const float z, const float w ) :
CVector4( x, y, z, w )
{}
constexpr CQuaternion::CQuaternion(const CVector4& V) :
... | 34.435294 | 109 | 0.592757 | przemyslaw-szymanski |
8284ac456e675b8e7de8417afde49919e6cca6c7 | 3,992 | cc | C++ | src/cluster/ClusterPool.cc | devfaz/one | 6d9d82e2c3d41cb1f2eadbf46c3c01be747b95c1 | [
"Apache-2.0"
] | null | null | null | src/cluster/ClusterPool.cc | devfaz/one | 6d9d82e2c3d41cb1f2eadbf46c3c01be747b95c1 | [
"Apache-2.0"
] | null | null | null | src/cluster/ClusterPool.cc | devfaz/one | 6d9d82e2c3d41cb1f2eadbf46c3c01be747b95c1 | [
"Apache-2.0"
] | null | null | null | /* -------------------------------------------------------------------------- */
/* Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | 31.68254 | 80 | 0.428607 | devfaz |
82853f8be0477ef68e707391706ad097a7c4da5f | 4,968 | cpp | C++ | aztec/src/Sensor.cpp | viccsneto/aztec | a49e269c53f19d2de22f0d297908c917f36c658d | [
"MIT"
] | null | null | null | aztec/src/Sensor.cpp | viccsneto/aztec | a49e269c53f19d2de22f0d297908c917f36c658d | [
"MIT"
] | null | null | null | aztec/src/Sensor.cpp | viccsneto/aztec | a49e269c53f19d2de22f0d297908c917f36c658d | [
"MIT"
] | null | null | null | #include "Sensor.h"
#include "Config.h"
#include "ContactFilter.h"
#include "GameEngine.h"
namespace Aztec {
void Sensor::init(float x, float y)
{
_className.assign("Sensor");
Transform.position.set(x, y);
_width = 0.0f;
_height = 0.0f;
_radius = 0.0f;
_fixture = NULL;
_pointlist.cle... | 22.479638 | 126 | 0.615741 | viccsneto |
82866e211b30b641f845dccc72f3c16532447768 | 794 | hpp | C++ | Alpha9/core/a9pch.hpp | Mind-Blown012/Alpha-9 | 02f44f56bd8811b6df467eb65a243d751b0023b7 | [
"MIT"
] | null | null | null | Alpha9/core/a9pch.hpp | Mind-Blown012/Alpha-9 | 02f44f56bd8811b6df467eb65a243d751b0023b7 | [
"MIT"
] | null | null | null | Alpha9/core/a9pch.hpp | Mind-Blown012/Alpha-9 | 02f44f56bd8811b6df467eb65a243d751b0023b7 | [
"MIT"
] | null | null | null | #pragma once
// STL Containers
#include <vector>
#include <queue>
#include <tuple>
#include <array>
#include <string>
#include <iterator>
#include <map>
#include <iterator>
#include <unordered_map>
// STL Math and Time
#include <algorithm>
#include <cmath>
#include <complex>
#include <valarray>
#include <random>
#in... | 17.644444 | 45 | 0.738035 | Mind-Blown012 |
8287240db97857e3d365d3034208847a514a8c00 | 1,589 | cpp | C++ | uva/11340_Newspaper.cpp | st3v3nmw/competitive-programming | 581d36c1c128e0e3ee3a0b52628e932ab43821d4 | [
"MIT"
] | null | null | null | uva/11340_Newspaper.cpp | st3v3nmw/competitive-programming | 581d36c1c128e0e3ee3a0b52628e932ab43821d4 | [
"MIT"
] | null | null | null | uva/11340_Newspaper.cpp | st3v3nmw/competitive-programming | 581d36c1c128e0e3ee3a0b52628e932ab43821d4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define eol "\n"
#define _(x) #x << "=" << to_str(x) << ", "
#define debug(x) { ostringstream stream; stream << x; string s = stream.str(); cout << s.substr(0, s.length() - 2) << eol; }
string to_string(basic_string<char>& x) { return "\"" + x + "\""; }
string to_string(ch... | 39.725 | 198 | 0.482064 | st3v3nmw |
828f1e2aca17cb8ab466c532eef0452a6ba73cd5 | 4,829 | tpp | C++ | src/dtkMathSupport/dtkVector.tpp | eti-nne/dtk | b5095c7a181e7497391a6a1fa0bb37e71dfa4b56 | [
"BSD-3-Clause"
] | null | null | null | src/dtkMathSupport/dtkVector.tpp | eti-nne/dtk | b5095c7a181e7497391a6a1fa0bb37e71dfa4b56 | [
"BSD-3-Clause"
] | null | null | null | src/dtkMathSupport/dtkVector.tpp | eti-nne/dtk | b5095c7a181e7497391a6a1fa0bb37e71dfa4b56 | [
"BSD-3-Clause"
] | 1 | 2020-04-21T14:41:52.000Z | 2020-04-21T14:41:52.000Z | /* dtkVector.tpp ---
*
* Author: Thibaud Kloczko
* Copyright (C) 2008 - Thibaud Kloczko, Inria.
* Created: Mon Jul 12 16:04:26 2010 (+0200)
* Version: $Id: 828f1e2aca17cb8ab466c532eef0452a6ba73cd5 $
* Last-Updated: Thu Sep 20 10:09:50 2012 (+0200)
* By: tkloczko
* Update #: 8
*/
/* Commentary:... | 27.752874 | 129 | 0.581073 | eti-nne |
828fd56e6166b93447bdcfb3689a805d3524df6e | 4,896 | cpp | C++ | src/button_factory.cpp | josiest/gold | 140d7c92fce8548b8a4cc6d2eda4be5b12e32975 | [
"MIT"
] | null | null | null | src/button_factory.cpp | josiest/gold | 140d7c92fce8548b8a4cc6d2eda4be5b12e32975 | [
"MIT"
] | null | null | null | src/button_factory.cpp | josiest/gold | 140d7c92fce8548b8a4cc6d2eda4be5b12e32975 | [
"MIT"
] | null | null | null | #include "gold/button_factory.hpp"
// frameworks and interfaces
#include <SDL.h>
#include <SDL_ttf.h>
#include "gold/widget.hpp" // iwidget_factory
// data types
#include "gold/button.hpp"
#include <cstdint> // std::uint32_t
// data structures and resource handlers
#include <vector>
#include <memory> // std::unique_... | 34.723404 | 87 | 0.650735 | josiest |
82916e48182864d9405241f45882e2b1befa9867 | 3,292 | cpp | C++ | src/training/conditionlist.cpp | FreeAllegiance/AllegianceDX7 | 3955756dffea8e7e31d3a55fcf6184232b792195 | [
"MIT"
] | 76 | 2015-08-18T19:18:40.000Z | 2022-01-08T12:47:22.000Z | src/training/conditionlist.cpp | StudentAlleg/Allegiance | e91660a471eb4e57e9cea4c743ad43a82f8c7b18 | [
"MIT"
] | 37 | 2015-08-14T22:44:12.000Z | 2020-01-21T01:03:06.000Z | src/training/conditionlist.cpp | StudentAlleg/Allegiance | e91660a471eb4e57e9cea4c743ad43a82f8c7b18 | [
"MIT"
] | 42 | 2015-08-13T23:31:35.000Z | 2022-03-17T02:20:26.000Z | /*
** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
**
** File: conditionlist.cpp
**
** Author:
**
** Description:
** Implementation of the training library "conditionlist" interface.
**
** History:
*/
#include "pch.h"
#include "ConditionList.h"
namespace Training
{
//-----------... | 37.409091 | 90 | 0.495747 | FreeAllegiance |
8292f9b2621899744257e83b705ec4eb514bb7df | 1,067 | cpp | C++ | tests/dev/bcp_mono/main.cpp | bryllite/bcp-concept-prototype | 3ded79a85ee4c876fbbd0c1ee51680346874494e | [
"MIT"
] | null | null | null | tests/dev/bcp_mono/main.cpp | bryllite/bcp-concept-prototype | 3ded79a85ee4c876fbbd0c1ee51680346874494e | [
"MIT"
] | null | null | null | tests/dev/bcp_mono/main.cpp | bryllite/bcp-concept-prototype | 3ded79a85ee4c876fbbd0c1ee51680346874494e | [
"MIT"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <string>
#include "bryllite-common.hpp"
#include "bryllite-core.hpp"
#include "node_manager.hpp"
#include "node.hpp"
node_manager _node_manager;
// timer test
int main( int argc, char** argv )
{
// check for memory leak
#ifdef _WIN32
_CrtSetDbgFlag( _CRTDBG_ALLOC_M... | 17.783333 | 64 | 0.651359 | bryllite |
829d1213121fa448f763b71cb8d1d7d30fcdb6fc | 515 | cpp | C++ | src/decima/serializable/object/prefetch.cpp | torandi/ProjectDecima | 617e98164a0e9bf906cf85c86a16dfea3610fc63 | [
"MIT"
] | 15 | 2020-08-08T16:17:53.000Z | 2022-03-19T19:17:57.000Z | src/decima/serializable/object/prefetch.cpp | torandi/ProjectDecima | 617e98164a0e9bf906cf85c86a16dfea3610fc63 | [
"MIT"
] | 6 | 2020-08-09T23:50:50.000Z | 2022-02-24T20:52:35.000Z | src/decima/serializable/object/prefetch.cpp | torandi/ProjectDecima | 617e98164a0e9bf906cf85c86a16dfea3610fc63 | [
"MIT"
] | 6 | 2021-04-06T09:27:44.000Z | 2022-01-14T06:38:45.000Z | #include "decima/serializable/object/prefetch.hpp"
#include <algorithm>
void Decima::Prefetch::parse(ArchiveManager& manager, ash::buffer& buffer, CoreFile& file) {
CoreObject::parse(manager, buffer, file);
paths.parse(buffer, file);
sizes.parse(buffer, file);
links_total = buffer.get<decltype(links_t... | 32.1875 | 92 | 0.666019 | torandi |
829eb47045bd2561d81bd7af0921d324714bc2d5 | 3,895 | cpp | C++ | tools/macpo/libmacpo/loop_traversal.cpp | roystgnr/perfexpert | a03b13db9ac83e992e1c5cc3b6e45e52c266fe30 | [
"BSD-4-Clause-UC"
] | 28 | 2015-05-05T15:54:25.000Z | 2021-09-27T16:23:36.000Z | tools/macpo/libmacpo/loop_traversal.cpp | roystgnr/perfexpert | a03b13db9ac83e992e1c5cc3b6e45e52c266fe30 | [
"BSD-4-Clause-UC"
] | 15 | 2015-10-07T20:52:05.000Z | 2018-04-18T16:08:41.000Z | tools/macpo/libmacpo/loop_traversal.cpp | roystgnr/perfexpert | a03b13db9ac83e992e1c5cc3b6e45e52c266fe30 | [
"BSD-4-Clause-UC"
] | 11 | 2015-01-23T15:41:40.000Z | 2020-08-18T03:53:19.000Z | /*
* Copyright (c) 2011-2013 University of Texas at Austin. All rights reserved.
*
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* This file is part of PerfExpert.
*
* PerfExpert is free software: you can redistribute it and/or modify it under
* the terms of the The University of Texas at Austin Resea... | 31.41129 | 80 | 0.659564 | roystgnr |
82a4c59e8ab82e229e8d049f476c78ec1828c964 | 5,352 | cpp | C++ | src/qt_gui/dlfirmware.cpp | jung1981/linux-track | 92db912deb9dafe40aa30b00223ed065c9e334aa | [
"MIT"
] | 136 | 2015-07-17T07:48:39.000Z | 2022-03-11T21:42:58.000Z | src/qt_gui/dlfirmware.cpp | rfvizarra/linuxtrack | b8e788587362634ad4485399c5531945a0ed666b | [
"MIT"
] | 91 | 2015-07-24T00:40:33.000Z | 2022-03-31T13:15:49.000Z | src/qt_gui/dlfirmware.cpp | rfvizarra/linuxtrack | b8e788587362634ad4485399c5531945a0ed666b | [
"MIT"
] | 27 | 2015-08-10T14:10:03.000Z | 2022-03-08T14:55:05.000Z | #include "dlfirmware.h"
#include "ltr_gui_prefs.h"
#include <QTemporaryFile>
#include <QProcess>
#include <QFileDialog>
#include <QDateTime>
#include <QMessageBox>
//#include <QtNetwork>
#include <iostream>
DLFirmware::DLFirmware(): file(NULL), reply(NULL), busy(false)
{
mgr = new QNetworkAccessManager(this);
con... | 25.364929 | 107 | 0.658632 | jung1981 |
82a7db6c825015d5484331902a4b35ffb75a9601 | 517 | hpp | C++ | libs/imagecolor/include/sge/image/color/any/object_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/imagecolor/include/sge/image/color/any/object_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/imagecolor/include/sge/image/color/any/object_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_IMAGE_COLOR_ANY_OBJECT_FWD_HPP_INCLUDED
#define SGE_IMAGE_COLOR_ANY_OBJECT_FWD_HPP_INCL... | 25.85 | 65 | 0.738878 | cpreh |
82ab42da024164fcbe10c287d8a456a2886b8726 | 3,889 | cc | C++ | cc/chart-relax-disconnected.cc | acorg/acmacs-chart-2 | 0e95cf11ee71d9c383a0ef5cc619edc8afbeda76 | [
"MIT"
] | null | null | null | cc/chart-relax-disconnected.cc | acorg/acmacs-chart-2 | 0e95cf11ee71d9c383a0ef5cc619edc8afbeda76 | [
"MIT"
] | null | null | null | cc/chart-relax-disconnected.cc | acorg/acmacs-chart-2 | 0e95cf11ee71d9c383a0ef5cc619edc8afbeda76 | [
"MIT"
] | null | null | null | #include <iostream>
#include "acmacs-base/argc-argv.hh"
#include "acmacs-base/string.hh"
#include "acmacs-base/string-split.hh"
#include "acmacs-base/timeit.hh"
#include "acmacs-chart-2/factory-import.hh"
#include "acmacs-chart-2/factory-export.hh"
#include "acmacs-chart-2/chart-modify.hh"
#include "acmacs-chart-2/ran... | 45.752941 | 144 | 0.545642 | acorg |
82ac0a47080aff2a0a6277b3af326688d6acb97e | 38,949 | cpp | C++ | libraries/IRremoteESP8266-master/src/ir_Daikin.cpp | erdikusdemir/optomamqttremote | 7efe4cfd38978e21ff6dc955e8430729ffe94be2 | [
"MIT"
] | 2 | 2020-08-11T19:34:44.000Z | 2021-01-28T15:21:28.000Z | libraries/IRremoteESP8266-master/src/ir_Daikin.cpp | erdikusdemir/optomamqttremote | 7efe4cfd38978e21ff6dc955e8430729ffe94be2 | [
"MIT"
] | null | null | null | libraries/IRremoteESP8266-master/src/ir_Daikin.cpp | erdikusdemir/optomamqttremote | 7efe4cfd38978e21ff6dc955e8430729ffe94be2 | [
"MIT"
] | null | null | null | /*
An Arduino sketch to emulate IR Daikin ARC433** & ARC477A1 remote control unit
Read more at:
http://harizanov.com/2012/02/control-daikin-air-conditioner-over-the-internet/
Copyright 2016 sillyfrog
Copyright 2017 sillyfrog, crankyoldgit
Copyright 2018-2019 crankyoldgit
*/
#include "ir_Daikin.h"
#include <algorithm>... | 27.448203 | 105 | 0.649285 | erdikusdemir |
82ac5f4c45b53467c5b849e4a8ca061a433fe8c5 | 620 | cpp | C++ | src/Aplicatii Vectori/ex 15/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | 2 | 2021-11-27T18:29:32.000Z | 2021-11-28T14:35:47.000Z | src/Aplicatii Vectori/ex 15/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | src/Aplicatii Vectori/ex 15/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | #include <iostream>
//15.Să se determine dacă un tablou unidimensional de numere întregi are toate elemente egale. Se va
//afişa Da sau Nu.
using namespace std;
int main()
{
int n, i, v[100], k=1;
cout<<"Cate elemente se afla in vector? Scrie aici: ";
cin>>n;
cout<<"Scrie elementele vectorului v: ";
... | 16.315789 | 100 | 0.483871 | andrew-miroiu |
a11941ea7133b3e67302c03249ce0dd78aeb484b | 554 | hpp | C++ | include/threepp/scenes/FogExp2.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | include/threepp/scenes/FogExp2.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | include/threepp/scenes/FogExp2.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | // https://github.com/mrdoob/three.js/blob/r129/src/scenes/FogExp2.js
#ifndef THREEPP_FOGEXP2_HPP
#define THREEPP_FOGEXP2_HPP
#include "threepp/math/Color.hpp"
namespace threepp {
class FogExp2 {
public:
Color color;
float density;
template<class T>
explicit FogExp2(T hex,... | 18.466667 | 89 | 0.637184 | maidamai0 |
a11cb1ef7d617e5a56a77fccf72d6f88a3b6dd8c | 1,388 | cpp | C++ | test/uuid.cpp | bergtholdt/ngraph | 55ca8bb15488ac7a567bb420ca32fcee25e60fe6 | [
"Apache-2.0"
] | null | null | null | test/uuid.cpp | bergtholdt/ngraph | 55ca8bb15488ac7a567bb420ca32fcee25e60fe6 | [
"Apache-2.0"
] | null | null | null | test/uuid.cpp | bergtholdt/ngraph | 55ca8bb15488ac7a567bb420ca32fcee25e60fe6 | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2018 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// h... | 26.188679 | 80 | 0.592219 | bergtholdt |
a11e3e6bb7042aee0e40546046635be0a0680b11 | 12,561 | hpp | C++ | include/ddc/discrete_coordinate.hpp | Maison-de-la-Simulation/ddc | 05a31e46f825c63aaa9d77e3fe68a4d8616ed298 | [
"MIT"
] | 13 | 2021-12-03T14:03:38.000Z | 2022-03-14T16:15:58.000Z | include/ddc/discrete_coordinate.hpp | Maison-de-la-Simulation/ddc | 05a31e46f825c63aaa9d77e3fe68a4d8616ed298 | [
"MIT"
] | 25 | 2022-01-12T08:50:53.000Z | 2022-03-30T14:43:26.000Z | include/ddc/discrete_coordinate.hpp | Maison-de-la-Simulation/ddc | 05a31e46f825c63aaa9d77e3fe68a4d8616ed298 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
#pragma once
#include <array>
#include <cstddef>
#include <ostream>
#include <utility>
#include "ddc/detail/type_seq.hpp"
#include "ddc/discrete_vector.hpp"
template <class...>
class DiscreteCoordinate;
template <class T>
struct IsDiscreteCoordinate : std::false_type
{
};
template... | 29.836105 | 100 | 0.656715 | Maison-de-la-Simulation |
a11e7a95c9341ad1cfe3b624e57ce21d06ea4b0d | 5,722 | cpp | C++ | project/otSimWrapper/src/otSimWrapper.intergen.cpp | eglrp/otSim | 24b5773536856847bfaa90a47e331ccf9475bb9b | [
"MIT"
] | 2 | 2021-12-29T16:21:31.000Z | 2022-01-09T11:29:11.000Z | project/otSimWrapper/src/otSimWrapper.intergen.cpp | eglrp/otSim | 24b5773536856847bfaa90a47e331ccf9475bb9b | [
"MIT"
] | null | null | null | project/otSimWrapper/src/otSimWrapper.intergen.cpp | eglrp/otSim | 24b5773536856847bfaa90a47e331ccf9475bb9b | [
"MIT"
] | 2 | 2021-04-09T12:46:15.000Z | 2022-01-09T11:29:21.000Z |
//@file interface dispatcher generated by intergen v6
//See LICENSE file for copyright and license information
#include "ifc/otSimWrapperInterface.h"
#include "otSimWrapper.hpp"
#include <comm/ref.h>
#include <comm/singleton.h>
#include <comm/binstring.h>
#include <type_traits>
static_assert(intergen_interface::V... | 37.644737 | 158 | 0.706047 | eglrp |
a12053ec2012ba9716ce9f1c0d308df40d389545 | 1,813 | cpp | C++ | src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/behavior/infer_request/perf_counters.cpp | rburtsev-wd/openvino | 3578ee9c3f04bbf3c7d8c582c86065a34b846f5b | [
"Apache-2.0"
] | 1 | 2022-02-07T09:14:15.000Z | 2022-02-07T09:14:15.000Z | src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/behavior/infer_request/perf_counters.cpp | imikhale/openvino | bff9769dd29f759921404bf3ae6fcb68b7a78d9b | [
"Apache-2.0"
] | null | null | null | src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/behavior/infer_request/perf_counters.cpp | imikhale/openvino | bff9769dd29f759921404bf3ae6fcb68b7a78d9b | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "behavior/infer_request/perf_counters.hpp"
#include "api_conformance_helpers.hpp"
namespace {
using namespace ov::test::conformance;
using namespace BehaviorTestsDefinitions;
INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests, ... | 47.710526 | 104 | 0.619967 | rburtsev-wd |
a120e4fdddc7f1f960066459dd7d5f60de29fc06 | 3,248 | hh | C++ | src/physics/em/detail/Rayleigh.hh | vrpascuzzi/celeritas | 6a8ffc5e6551371fab7cdb5bbb55c60e65f0439f | [
"Apache-2.0",
"MIT"
] | null | null | null | src/physics/em/detail/Rayleigh.hh | vrpascuzzi/celeritas | 6a8ffc5e6551371fab7cdb5bbb55c60e65f0439f | [
"Apache-2.0",
"MIT"
] | null | null | null | src/physics/em/detail/Rayleigh.hh | vrpascuzzi/celeritas | 6a8ffc5e6551371fab7cdb5bbb55c60e65f0439f | [
"Apache-2.0",
"MIT"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 30.933333 | 79 | 0.541872 | vrpascuzzi |
a129c27a6c78505fd09252ff2ca387cf2da618ab | 248 | cpp | C++ | arquivos .h e .cpp/Plataforma.cpp | moises-dias/hunter-adventures | a403bc09d3583005ad689ed2ebbfe1361e678788 | [
"MIT"
] | 2 | 2020-05-26T22:46:48.000Z | 2022-01-12T12:32:06.000Z | arquivos .h e .cpp/Plataforma.cpp | moises-dias/hunter-adventures | a403bc09d3583005ad689ed2ebbfe1361e678788 | [
"MIT"
] | null | null | null | arquivos .h e .cpp/Plataforma.cpp | moises-dias/hunter-adventures | a403bc09d3583005ad689ed2ebbfe1361e678788 | [
"MIT"
] | null | null | null | #include "Plataforma.h"
Plataforma::Plataforma()
{
}
Plataforma::~Plataforma()
{
}
void Plataforma::setTipo( int t)
{
tipo = t;
}
int Plataforma::getTipo()
{
return tipo;
}
Vetor_R2& Plataforma::getPos(int i)
{
return posicao[i];
}
| 10.333333 | 35 | 0.645161 | moises-dias |
a130e2638c9dd257cb15b81b827ac0746a7942ac | 4,082 | hpp | C++ | include/zep/imgui/display_imgui.hpp | travisat/tezep | eedb7e3384d422392c6cb088055683574c028b3d | [
"MIT"
] | null | null | null | include/zep/imgui/display_imgui.hpp | travisat/tezep | eedb7e3384d422392c6cb088055683574c028b3d | [
"MIT"
] | null | null | null | include/zep/imgui/display_imgui.hpp | travisat/tezep | eedb7e3384d422392c6cb088055683574c028b3d | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include "zep/display.hpp"
#include "zep/syntax.hpp"
#include <imgui.h>
// Can't include this publicly
//#include "zep/mcommon/logger.h"
namespace Zep
{
inline auto toNVec2f(const ImVec2& im) -> NVec2f
{
return NVec2f(im.x, im.y);
}
inline auto toImVec2(const NVec2f& im) -> ImVec... | 32.919355 | 161 | 0.631308 | travisat |
a131a4a97aee3a3ad8c67dec773f9bf3aba22956 | 17,182 | cxx | C++ | EMCAL/EMCALbase/AliEMCALCalibReference.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | EMCAL/EMCALbase/AliEMCALCalibReference.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 2 | 2016-11-25T08:40:56.000Z | 2019-10-11T12:29:29.000Z | EMCAL/EMCALbase/AliEMCALCalibReference.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 37.845815 | 138 | 0.696194 | AllaMaevskaya |
a1335c76ad125b0cc6a2b3f5bd61feb9b3125224 | 13,442 | cpp | C++ | example/oglplus/029_muddy_stones.cpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 364 | 2015-01-01T09:38:23.000Z | 2022-03-22T05:32:00.000Z | example/oglplus/029_muddy_stones.cpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 55 | 2015-01-06T16:42:55.000Z | 2020-07-09T04:21:41.000Z | example/oglplus/029_muddy_stones.cpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 57 | 2015-01-07T18:35:49.000Z | 2022-03-22T05:32:04.000Z | /**
* @example oglplus/029_muddy_stones.cpp
* @brief Shows shell and fins-based parallax mapping
*
* @oglplus_screenshot{029_muddy_stones}
*
* Copyright 2008-2019 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boo... | 33.689223 | 79 | 0.441601 | matus-chochlik |
a1347c49a701543b735657a2a9cf5d3bd264d59a | 25,377 | hh | C++ | Archive/Stroika_FINAL_for_STERL_1992/Library/Framework/Headers/TextEdit.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/Framework/Headers/TextEdit.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/Framework/Headers/TextEdit.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
#ifndef __TextEdit__
#define __TextEdit__
/*
* $Header: /fuji/lewis/RCS/TextEdit.hh,v 1.8 1992/09/08 15:34:00 lewis Exp $
*
* Description:
*
* TODO:
* - Implement a new kind of string buffer to wrap the native implementation buffers. Will... | 33.434783 | 149 | 0.739134 | SophistSolutions |
a13c270c0eada708bfb250107d7407b6ebcff734 | 4,335 | cpp | C++ | RulesModifier/RulesModifierInteger.cpp | ankur91/asfermi | 07559eed02b88b081d09902a56cdf17b12a6f429 | [
"Unlicense"
] | 55 | 2015-04-29T20:20:11.000Z | 2022-03-30T10:46:49.000Z | RulesModifier/RulesModifierInteger.cpp | echoedit/asfermi | d014a9113db781a04d8894b7b489c2cf632f7b65 | [
"Unlicense"
] | null | null | null | RulesModifier/RulesModifierInteger.cpp | echoedit/asfermi | d014a9113db781a04d8894b7b489c2cf632f7b65 | [
"Unlicense"
] | 20 | 2015-04-29T20:20:15.000Z | 2022-03-30T10:46:51.000Z | #include "../DataTypes.h"
#include "../helper/helperMixed.h"
#include "../stdafx.h"
#include "stdafx.h" //SMark
#include "RulesModifierInteger.h"
struct ModifierRuleIMUL0U32: ModifierRule
{
ModifierRuleIMUL0U32(): ModifierRule("U32", true, false, false)
{
hpBinaryStringToOpcode4("1111 101011 1111... | 27.436709 | 128 | 0.709573 | ankur91 |
a13fa8803d4a3ba1b8a57f327094a78cb2d439ac | 533 | cpp | C++ | HW7/Q1.cpp | Liuian/1082_INTRODUCTION_TO_COMPUTER_AND_PROGRAMMING_LANGUAGE_2 | d2b78ec90976f5ef0ffcd1e33ed8c3b8d4d79601 | [
"MIT"
] | null | null | null | HW7/Q1.cpp | Liuian/1082_INTRODUCTION_TO_COMPUTER_AND_PROGRAMMING_LANGUAGE_2 | d2b78ec90976f5ef0ffcd1e33ed8c3b8d4d79601 | [
"MIT"
] | null | null | null | HW7/Q1.cpp | Liuian/1082_INTRODUCTION_TO_COMPUTER_AND_PROGRAMMING_LANGUAGE_2 | d2b78ec90976f5ef0ffcd1e33ed8c3b8d4d79601 | [
"MIT"
] | null | null | null | //
// main.cpp
// hw7-1
//
// Created by 劉翊安 on 2020/6/1.
// Copyright © 2020 劉翊安. All rights reserved.
//
#include <iostream>
#include <math.h>
using namespace std;
int main(){
int k=0;
for(int x=0;x<=1;x++){
for(int y=0;y<=6;y++){
for(int z=0;z<=13;z++){
for(int i=0;i... | 18.37931 | 46 | 0.377111 | Liuian |
a142c79c0d87744f3d6cd9b09d5c8cafd625cd62 | 2,041 | cpp | C++ | libs/sge_engine/src/sge_engine/traits/TraitViewportIcon.cpp | Alekssasho/sge_source | 2db4ae08f7b3434d32dd9767fe1136234cb70b83 | [
"MIT"
] | null | null | null | libs/sge_engine/src/sge_engine/traits/TraitViewportIcon.cpp | Alekssasho/sge_source | 2db4ae08f7b3434d32dd9767fe1136234cb70b83 | [
"MIT"
] | null | null | null | libs/sge_engine/src/sge_engine/traits/TraitViewportIcon.cpp | Alekssasho/sge_source | 2db4ae08f7b3434d32dd9767fe1136234cb70b83 | [
"MIT"
] | null | null | null | #include "TraitViewportIcon.h"
#include "sge_engine/Camera.h"
#include "sge_engine/enums2d.h"
namespace sge {
DefineTypeId(TraitViewportIcon, 20'05'22'0001);
ReflBlock() {
ReflAddType(TraitViewportIcon);
}
//-----------------------------------------------------------------------
// TraitViewportIcon
//-------------... | 39.25 | 134 | 0.706026 | Alekssasho |
a142f732374d6f9d3ba27ed74d413b3d0a64a5d4 | 942 | hpp | C++ | crazyflie_mrac_controllers/include/AdaptiveController.hpp | fjctp/crazyflie_mrac_ros | d43df1832860addd0ff7fbad391c7871cb3c6577 | [
"MIT"
] | 5 | 2019-10-09T03:17:39.000Z | 2021-04-24T06:00:12.000Z | crazyflie_mrac_controllers/include/AdaptiveController.hpp | fjctp/crazyflie_mrac_ros | d43df1832860addd0ff7fbad391c7871cb3c6577 | [
"MIT"
] | null | null | null | crazyflie_mrac_controllers/include/AdaptiveController.hpp | fjctp/crazyflie_mrac_ros | d43df1832860addd0ff7fbad391c7871cb3c6577 | [
"MIT"
] | 1 | 2019-05-24T22:48:29.000Z | 2019-05-24T22:48:29.000Z | #include "Controller.hpp"
#include "ReferenceModel.hpp"
#include "AdaptiveLaw.hpp"
class AdaptiveController: public Controller
{
protected:
ReferenceModel model;
AdaptiveLaw law;
void (*phi_functions) (VectorXd&, const VectorXd);
double last_zpos;
double dt;
public:
AdaptiveController(voi... | 30.387097 | 75 | 0.681529 | fjctp |
a143887d4bfac4b848aed891854932d71753fe85 | 3,735 | cpp | C++ | interrupts.cpp | kennethmyhra/zos | 156ca7d31d3c5c287614f0ba4b38d6dcaa5205a5 | [
"BSD-3-Clause"
] | null | null | null | interrupts.cpp | kennethmyhra/zos | 156ca7d31d3c5c287614f0ba4b38d6dcaa5205a5 | [
"BSD-3-Clause"
] | null | null | null | interrupts.cpp | kennethmyhra/zos | 156ca7d31d3c5c287614f0ba4b38d6dcaa5205a5 | [
"BSD-3-Clause"
] | null | null | null | #include "interrupts.h"
void printf(char* str);
InterruptHandler::InterruptHandler(uint8_t interruptNumber, InterruptManager* interruptManager)
{
this->interruptNumber = interruptNumber;
this->interruptManager = interruptManager;
interruptManager->handlers[interruptNumber] = this;
}
InterruptHandler::~Interru... | 25.236486 | 127 | 0.748059 | kennethmyhra |
a147e81a755e320506637655e5a34239fa06ae6f | 812 | cpp | C++ | src/QtCalendar/nByzantineCalendar.cpp | Vladimir-Lin/QtCalendar | fda02caddae9ebb4af94782622773f6a436879ae | [
"MIT"
] | null | null | null | src/QtCalendar/nByzantineCalendar.cpp | Vladimir-Lin/QtCalendar | fda02caddae9ebb4af94782622773f6a436879ae | [
"MIT"
] | null | null | null | src/QtCalendar/nByzantineCalendar.cpp | Vladimir-Lin/QtCalendar | fda02caddae9ebb4af94782622773f6a436879ae | [
"MIT"
] | null | null | null | #include <qtcalendar.h>
/*****************************************************************************\
* *
* Byzantine Calendar *
* ... | 21.945946 | 79 | 0.357143 | Vladimir-Lin |
a14f1d14b73c25b503e56f3bb2bfd2d936614856 | 4,152 | hxx | C++ | include/prevc/util/reader.hxx | arazeiros/prevc | 378f045f57b2e1c9460ac1699951291ac055c078 | [
"MIT"
] | 3 | 2018-10-30T20:33:45.000Z | 2019-03-06T11:46:31.000Z | include/prevc/util/reader.hxx | arazeiros/prevc | 378f045f57b2e1c9460ac1699951291ac055c078 | [
"MIT"
] | null | null | null | include/prevc/util/reader.hxx | arazeiros/prevc | 378f045f57b2e1c9460ac1699951291ac055c078 | [
"MIT"
] | null | null | null |
#ifndef PREVC_UTIL_READER_HXX
#define PREVC_UTIL_READER_HXX
#include <cstdint>
#include <cstdio>
#include <utility>
#include <prevc/util/string.hxx>
#define PREVC_UTIL_READER_DEFAULT_BUFFER_SIZE (8)
namespace prevc
{
namespace util
{
/**
* \brief A buffered reader that read UTF-8 input str... | 28.634483 | 120 | 0.489644 | arazeiros |
a150699b97c673c7e6dcb4f8abd4f8d1ee7f44bc | 8,233 | cc | C++ | modules/localization/msf/local_tool/map_creation/lossless_map_to_lossy_map.cc | panjiacheng/apollo | d547687f8d1e6b37c97421923aa6f507dd6b9e1c | [
"Apache-2.0"
] | 3 | 2020-01-08T14:53:36.000Z | 2020-01-08T14:53:43.000Z | modules/localization/msf/local_tool/map_creation/lossless_map_to_lossy_map.cc | panjiacheng/apollo | d547687f8d1e6b37c97421923aa6f507dd6b9e1c | [
"Apache-2.0"
] | 7 | 2021-03-10T18:14:25.000Z | 2022-02-27T04:46:46.000Z | modules/localization/msf/local_tool/map_creation/lossless_map_to_lossy_map.cc | panjiacheng/apollo | d547687f8d1e6b37c97421923aa6f507dd6b9e1c | [
"Apache-2.0"
] | 2 | 2020-08-05T12:52:42.000Z | 2021-10-19T13:07:49.000Z | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 38.115741 | 86 | 0.673752 | panjiacheng |
a15e6d667422da0b16a7e07074aea5153aa62bd2 | 447 | cpp | C++ | STL_C++/Map2.cpp | prabhash-varma/DSA-CP | 685b13d960d2045d003e30f235d678b9f05548b3 | [
"MIT"
] | null | null | null | STL_C++/Map2.cpp | prabhash-varma/DSA-CP | 685b13d960d2045d003e30f235d678b9f05548b3 | [
"MIT"
] | null | null | null | STL_C++/Map2.cpp | prabhash-varma/DSA-CP | 685b13d960d2045d003e30f235d678b9f05548b3 | [
"MIT"
] | null | null | null | // Unordered Maps
#include<bits/stdc++.h>
using namespace std;
void print(unordered_map<int,string> &m){
cout << m.size() <<endl;
for(auto &i: m){
cout<<i.first<<" "<<i.second<<endl;
}
}
int main(){
unordered_map<int,string> m;
m[1]="abc";
m[5]="cdc";
m[3]="acd";
m[6]="woow"... | 11.461538 | 43 | 0.512304 | prabhash-varma |
a1671cadd47ae268251a95ebfad145b453955efe | 5,898 | cpp | C++ | cpp-projects/exvr-designer/flow/node_flow_element.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/flow/node_flow_element.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/flow/node_flow_element.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null |
/***********************************************************************************
** exvr-designer **
** MIT License **
** Copyright (c) [2018] [Florian Lance][EPFL-LNCO] ... | 51.736842 | 158 | 0.651068 | FlorianLance |
a16b6faf6a2e843816ca28f1d913c1adc4aac0a8 | 3,250 | cpp | C++ | src/TScroller.cpp | webispy/tuapi | c613ec60b491081907b263d4915188b84a0bb51d | [
"MIT"
] | 1 | 2018-12-28T05:05:53.000Z | 2018-12-28T05:05:53.000Z | src/TScroller.cpp | webispy/tuapi | c613ec60b491081907b263d4915188b84a0bb51d | [
"MIT"
] | null | null | null | src/TScroller.cpp | webispy/tuapi | c613ec60b491081907b263d4915188b84a0bb51d | [
"MIT"
] | null | null | null | #include "TLibrary.h"
#include "TScroller.h"
EXPORT_API TScroller::TScroller (TObject *target) :
target(target), target_max_height(0), bg(0), bar(0), bar_size(0)
{
cairo_surface_t *sf;
cairo_t *cr;
int w = target->width(), h = target->height();
void *pixels;
bg = new TImage(target->getParentEvasObject(), w, h... | 22.887324 | 72 | 0.703385 | webispy |
a16b9027877c7b27c25141983f5e0ed5d3e1312e | 3,109 | cpp | C++ | app/src/sandbox_main.cpp | Sampas/cavez | b89185554477b92bf987c9e5d26b0a8abe1ae568 | [
"MIT"
] | 2 | 2019-03-11T11:26:52.000Z | 2019-09-26T07:50:55.000Z | app/src/sandbox_main.cpp | Sampas/cavez | b89185554477b92bf987c9e5d26b0a8abe1ae568 | [
"MIT"
] | 1 | 2020-10-29T15:44:47.000Z | 2020-10-29T15:44:47.000Z | app/src/sandbox_main.cpp | Sampas/cavez | b89185554477b92bf987c9e5d26b0a8abe1ae568 | [
"MIT"
] | 1 | 2020-10-28T18:56:46.000Z | 2020-10-28T18:56:46.000Z | /// Copyright (c) 2019 Joni Louhela
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to
/// deal in the Software without restriction, including without limitation the
/// rights to use, copy, modify, merge, pub... | 37.914634 | 98 | 0.700547 | Sampas |
a16c57db505de6b43f478f618335e75c8f16c253 | 1,298 | cc | C++ | assets/arcane/core/features/core/misc.cc | younasiqw/arcane-csgo | 2927bca882fb934cd0afe771530f9f1392581f48 | [
"MIT"
] | 1 | 2019-12-04T13:28:26.000Z | 2019-12-04T13:28:26.000Z | assets/arcane/core/features/core/misc.cc | younasiqw/arcane-csgo | 2927bca882fb934cd0afe771530f9f1392581f48 | [
"MIT"
] | null | null | null | assets/arcane/core/features/core/misc.cc | younasiqw/arcane-csgo | 2927bca882fb934cd0afe771530f9f1392581f48 | [
"MIT"
] | 1 | 2021-07-11T15:45:27.000Z | 2021-07-11T15:45:27.000Z | #include "misc.hh"
namespace arcane::core::features {
void auto_bunny_hop( sdk::ifaces::user_cmd* cmd ) {
if ( !menu::checkbox[ "#auto_bunny_hop_checkbox" ]->get_bool( ) )
return;
static auto local_player = ifaces::get_ifaces.client_entity->get_client_entity( ifaces::get_ifaces.engine->get_local_player( ) );
... | 36.055556 | 191 | 0.694915 | younasiqw |
a16da6639042888cf221c3ab3d114cd11145a76a | 3,544 | cc | C++ | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/3.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/3.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/3.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // 2010-12-17 Paolo Carlini <paolo.carlini@oracle.com>
//
// Copyright (C) 2010-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
/... | 38.107527 | 74 | 0.678894 | best08618 |
a16dc74fd504bb6b4a325f4d2ea99fa3f01ebf19 | 187 | cpp | C++ | main.cpp | xx01cyx/BASIC-Interpreter | cf73390fbb581c28ed93252f9014f542ff35797a | [
"MIT"
] | null | null | null | main.cpp | xx01cyx/BASIC-Interpreter | cf73390fbb581c28ed93252f9014f542ff35797a | [
"MIT"
] | null | null | null | main.cpp | xx01cyx/BASIC-Interpreter | cf73390fbb581c28ed93252f9014f542ff35797a | [
"MIT"
] | null | null | null | #include "basic.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Basic* basic = new Basic();
basic->run();
return a.exec();
}
| 13.357143 | 32 | 0.59893 | xx01cyx |
a179354b48dbc8186d488b11f01241216e10f4a1 | 28,874 | cpp | C++ | src/gui/formsettings.cpp | itsanurag94/Sample_Template | 78f6bc04ff20132a25f74ba11ca8c9eec3548e3a | [
"Unlicense"
] | 76 | 2015-01-18T09:04:29.000Z | 2021-02-19T11:47:56.000Z | src/gui/formsettings.cpp | itsanurag94/Sample_Template | 78f6bc04ff20132a25f74ba11ca8c9eec3548e3a | [
"Unlicense"
] | 29 | 2015-02-15T20:56:21.000Z | 2016-12-17T10:38:53.000Z | src/gui/formsettings.cpp | itsanurag94/Sample_Template | 78f6bc04ff20132a25f74ba11ca8c9eec3548e3a | [
"Unlicense"
] | 124 | 2015-01-05T18:34:00.000Z | 2018-01-26T11:23:23.000Z | /*
Copyright (c) 2012, BuildmLearn Contributors listed at http://buildmlearn.org/people/
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... | 43.48494 | 150 | 0.602203 | itsanurag94 |
a182d0db096f4ddc9d1ecdd07455788fa97f40a0 | 33,020 | cpp | C++ | server/src/types/Types.cpp | PolyProgrammist/UTBotCpp | 4886622f21c92e3b73daa553008e541be9d82f21 | [
"Apache-2.0"
] | null | null | null | server/src/types/Types.cpp | PolyProgrammist/UTBotCpp | 4886622f21c92e3b73daa553008e541be9d82f21 | [
"Apache-2.0"
] | null | null | null | server/src/types/Types.cpp | PolyProgrammist/UTBotCpp | 4886622f21c92e3b73daa553008e541be9d82f21 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) Huawei Technologies Co., Ltd. 2012-2021. All rights reserved.
*/
#include "Types.h"
#include "ArrayType.h"
#include "ObjectPointerType.h"
#include "SimpleType.h"
#include "TypeVisitor.h"
#include "exceptions/UnImplementedException.h"
#include "utils/PrinterUtils.h"
#include "loguru.h"
/*
* clas... | 32.277615 | 147 | 0.604573 | PolyProgrammist |
a182d598e4cacd286352e989b35bc1b42c62ad8c | 359 | cpp | C++ | Pagination.cpp | nifty-site-manager/nsm-snap-nift | b0617de0d516d972f420566aa10e9d987b79f9a0 | [
"MIT"
] | 229 | 2015-04-27T19:43:51.000Z | 2022-01-27T11:59:42.000Z | Pagination.cpp | nifty-site-manager/nsm-snap-nift | b0617de0d516d972f420566aa10e9d987b79f9a0 | [
"MIT"
] | 26 | 2019-10-20T10:42:40.000Z | 2021-09-26T13:52:12.000Z | Pagination.cpp | nifty-site-manager/nsm-snap-nift | b0617de0d516d972f420566aa10e9d987b79f9a0 | [
"MIT"
] | 15 | 2019-10-20T09:27:07.000Z | 2021-10-04T15:40:45.000Z | #include "Pagination.h"
Pagination::Pagination()
{
reset();
}
void Pagination::reset()
{
cPageNo = noPages = 0;
noItemsPerPage = 25;
callLineNo = separatorLineNo = templateCallLineNo = templateLineNo = -1;
indentAmount = paginateName = "";
separator = "\n\n";
templateStr = "$[paginate.page]";
items.clear();
... | 17.95 | 73 | 0.682451 | nifty-site-manager |
a184f57208489a72b2bcef18267d7817c4b72ba8 | 3,405 | cpp | C++ | main.cpp | GiadaTrevisani/SimpleBusinessManager | dec23378faffd4390befecfd52df8103a78b8523 | [
"MIT"
] | 2 | 2018-10-09T19:55:59.000Z | 2019-05-10T09:11:51.000Z | main.cpp | GiadaTrevisani/SimpleBusinessManager | dec23378faffd4390befecfd52df8103a78b8523 | [
"MIT"
] | null | null | null | main.cpp | GiadaTrevisani/SimpleBusinessManager | dec23378faffd4390befecfd52df8103a78b8523 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include <QApplication>
#include <QSqlDatabase>
#include <QSqlQuery>
#include "aziendadatabasemanager.h"
#include <QDebug>
int main(int argc, char *argv[])
{
/*
* qui è definita la connessione con
* il database con nome db, creato con sqlite3
* dove saranno mantenute tutte... | 46.013514 | 304 | 0.691043 | GiadaTrevisani |
a1869980752332fb6a077219c759d385daef3c6d | 1,668 | hpp | C++ | packages/monte_carlo/collision/core/src/MonteCarlo_AceLaw1NuclearScatteringEnergyDistribution.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/collision/core/src/MonteCarlo_AceLaw1NuclearScatteringEnergyDistribution.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/collision/core/src/MonteCarlo_AceLaw1NuclearScatteringEnergyDistribution.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_AceLaw1NuclearScatteringEnergyDistribution.hpp
//! \author Alex Bennett
//! \brief The nuclear equiprobable bin scattering energy distribution class
//!
//---------------------------------------------------------... | 29.785714 | 93 | 0.652878 | bam241 |
a186d443ea61cc04be071598bf07fafa16f7981c | 2,058 | cpp | C++ | src/avro/avro_utils.cpp | eikeschumann971/kspp | e9665f0d7fb9c976c232393428d2d3e616db7eb5 | [
"BSL-1.0"
] | 103 | 2017-01-13T11:27:52.000Z | 2022-01-22T08:30:41.000Z | src/avro/avro_utils.cpp | eikeschumann971/kspp | e9665f0d7fb9c976c232393428d2d3e616db7eb5 | [
"BSL-1.0"
] | 26 | 2017-02-16T13:26:24.000Z | 2022-03-07T18:05:58.000Z | src/avro/avro_utils.cpp | eikeschumann971/kspp | e9665f0d7fb9c976c232393428d2d3e616db7eb5 | [
"BSL-1.0"
] | 24 | 2017-05-09T03:44:28.000Z | 2022-02-04T02:40:18.000Z | #include <kspp/avro/avro_utils.h>
#include <sstream>
namespace kspp{
namespace avro_utils {
std::string normalize(const avro::ValidSchema &vs) {
std::stringstream ss;
vs.toJson(ss);
std::string s = ss.str();
// TBD we should strip type : string to string
// strip whitespace
s.... | 30.264706 | 102 | 0.555394 | eikeschumann971 |
a1874e4b9e32c7581b7115053608e273a31b6ecc | 2,143 | hpp | C++ | libcaf_core/caf/meta/save_callback.hpp | mydatamodels/actor-framework | d8fe071c86137918dff57ea12fc7aa44e7f0190a | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_core/caf/meta/save_callback.hpp | mydatamodels/actor-framework | d8fe071c86137918dff57ea12fc7aa44e7f0190a | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_core/caf/meta/save_callback.hpp | mydatamodels/actor-framework | d8fe071c86137918dff57ea12fc7aa44e7f0190a | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 36.948276 | 80 | 0.435371 | mydatamodels |
a1885aca1a791f50d47bff9b7174b9ab82d7ff24 | 7,454 | cpp | C++ | IfcPlusPlus/src/ifcpp/IFC4/IfcPropertyTableValue.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | 1 | 2018-10-23T09:43:07.000Z | 2018-10-23T09:43:07.000Z | IfcPlusPlus/src/ifcpp/IFC4/IfcPropertyTableValue.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | null | null | null | IfcPlusPlus/src/ifcpp/IFC4/IfcPropertyTableValue.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | null | null | null | /* -*-c++-*- IfcPlusPlus - www.ifcplusplus.com - Copyright (C) 2011 Fabian Gerold
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* in... | 44.903614 | 229 | 0.721358 | linsipese |
a18b599ae6b21627407afc9ebac717fd54d28a89 | 6,783 | cpp | C++ | mpp/hal/hal_task.cpp | Txwv/rockchip-linux-mpp | 786b79f9767d24bed618be60046546b508f9190e | [
"Apache-2.0"
] | 312 | 2016-12-26T12:32:03.000Z | 2022-03-29T13:37:59.000Z | mpp/hal/hal_task.cpp | Txwv/rockchip-linux-mpp | 786b79f9767d24bed618be60046546b508f9190e | [
"Apache-2.0"
] | 271 | 2017-01-12T03:59:31.000Z | 2022-03-31T02:26:45.000Z | mpp/hal/hal_task.cpp | Txwv/rockchip-linux-mpp | 786b79f9767d24bed618be60046546b508f9190e | [
"Apache-2.0"
] | 195 | 2016-12-01T07:22:01.000Z | 2022-03-30T23:09:00.000Z | /*
* Copyright 2015 Rockchip Electronics Co. LTD
*
* 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... | 27.79918 | 92 | 0.607106 | Txwv |
a1915bbc75139b4e8d04d94eea0edcf9e1482bcb | 1,605 | cpp | C++ | tests/OMPstream1/src/hif.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 13 | 2015-02-26T22:46:18.000Z | 2020-03-24T11:53:06.000Z | tests/OMPstream/src/hif.cpp | PacificBiosciences/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 5 | 2016-02-25T17:08:19.000Z | 2018-01-20T15:24:36.000Z | tests/OMPstream2/src/hif.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 12 | 2015-04-13T21:39:54.000Z | 2021-01-15T01:00:13.000Z | #include <stdint.h>
#include <omp.h>
#include "Ht.h"
using namespace Ht;
CHtHif *pHtHif;
CHtAuUnit ** __htc_units = NULL;
void *stencil_cp_calloc(size_t elems, size_t size)
{
void *ptr = pHtHif->MemAllocAlign( 4*1024, elems*size);
pHtHif->MemSet(ptr, (char)0, elems*size);
return ptr;
}
void *stencil_cp_al... | 20.576923 | 80 | 0.642991 | TonyBrewer |
0847fab67adaf6a4a31aed8084dbfc827d2d21eb | 3,471 | hpp | C++ | tests/test_function_tools.hpp | codeboy5/ensmallen | 26153353216c346f256ab918da6292156e466258 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2020-04-07T18:50:10.000Z | 2020-04-07T18:50:10.000Z | tests/test_function_tools.hpp | codeboy5/ensmallen | 26153353216c346f256ab918da6292156e466258 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | tests/test_function_tools.hpp | codeboy5/ensmallen | 26153353216c346f256ab918da6292156e466258 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2020-08-06T07:01:32.000Z | 2020-08-06T07:01:32.000Z | /**
* @file test_function_tools.hpp
* @author Marcus Edel
* @author Ryan Curtin
* @author Conrad Sanderson
*
* ensmallen is free software; you may redistribute it and/or modify it under
* the terms of the 3-clause BSD license. You should have received a copy of
* the 3-clause BSD license along with ensmallen. ... | 34.366337 | 79 | 0.622011 | codeboy5 |
084961e032295d97a3b06af813d1a09f1936f170 | 5,227 | hpp | C++ | include/cbr_utils/type_pack.hpp | yamaha-bps/cbr_utils | 222754dbb404ede15613e6e1394cc8257853dd7d | [
"MIT"
] | 3 | 2021-06-22T23:14:02.000Z | 2021-06-24T17:28:19.000Z | include/cbr_utils/type_pack.hpp | yamaha-bps/cbr_utils | 222754dbb404ede15613e6e1394cc8257853dd7d | [
"MIT"
] | 3 | 2021-06-22T16:41:36.000Z | 2021-11-12T19:36:54.000Z | include/cbr_utils/type_pack.hpp | yamaha-bps/cbr_utils | 222754dbb404ede15613e6e1394cc8257853dd7d | [
"MIT"
] | null | null | null | // Copyright Yamaha 2021
// MIT License
// https://github.com/yamaha-bps/cbr_utils/blob/master/LICENSE
#ifndef CBR_UTILS__TYPE_PACK_HPP_
#define CBR_UTILS__TYPE_PACK_HPP_
#include <tuple>
#include <type_traits>
#include <utility>
#include "integer_sequence.hpp"
#include "static_for.hpp"
namespace cbr
{
/**********... | 26.39899 | 91 | 0.641668 | yamaha-bps |
084d8861607aacee05c7e72d8ed51faf48f84510 | 7,416 | cc | C++ | mindspore/lite/src/runtime/kernel/arm/fp32/convolution_slidewindow_fp32.cc | wang121201/mindspore | d16e9bc3f689cf0b52c15a4566f5aad2c54a236e | [
"Apache-2.0"
] | 1 | 2021-07-16T12:05:53.000Z | 2021-07-16T12:05:53.000Z | mindspore/lite/src/runtime/kernel/arm/fp32/convolution_slidewindow_fp32.cc | wang121201/mindspore | d16e9bc3f689cf0b52c15a4566f5aad2c54a236e | [
"Apache-2.0"
] | null | null | null | mindspore/lite/src/runtime/kernel/arm/fp32/convolution_slidewindow_fp32.cc | wang121201/mindspore | d16e9bc3f689cf0b52c15a4566f5aad2c54a236e | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... | 37.64467 | 120 | 0.691882 | wang121201 |
08509a02e308523e7bad6d68478e542ee6265209 | 8,527 | cpp | C++ | Battle Corp/BattleMech/BattleMech/States/MechMenu.cpp | MJBrune/RandomProjects | c24d8aa78aa9d5a6df8ae186a92a82165a96c50c | [
"WTFPL"
] | null | null | null | Battle Corp/BattleMech/BattleMech/States/MechMenu.cpp | MJBrune/RandomProjects | c24d8aa78aa9d5a6df8ae186a92a82165a96c50c | [
"WTFPL"
] | null | null | null | Battle Corp/BattleMech/BattleMech/States/MechMenu.cpp | MJBrune/RandomProjects | c24d8aa78aa9d5a6df8ae186a92a82165a96c50c | [
"WTFPL"
] | null | null | null | #include "MechMenu.h"
namespace States
{
MechMenu::MechMenu()
:m_ptrMech(RLight, NULL, NULL, North)
{
m_okayBtn = new UI::Button(sf::FloatRect(0,0,280,50));
widgets.push_back(m_okayBtn);
m_nextBtn = new UI::Button(sf::FloatRect(0,0,280,50));
widgets.push_back(m_nextBtn);
m_backBtn = new UI::Button(sf::... | 34.804082 | 222 | 0.721238 | MJBrune |
0850df41e67acf6acc481ec9718cd2c3dfc8e545 | 1,481 | cpp | C++ | 1. Array/5_sum_of_target_with_repeated_element(find_pair_of_targets).cpp | manishhedau/Data-Structure-Algorithm | d45de87aa44d3af18d58fd59491993cf98dbe6fc | [
"MIT"
] | 3 | 2021-02-01T07:56:21.000Z | 2021-02-01T11:56:50.000Z | 1. Array/5_sum_of_target_with_repeated_element(find_pair_of_targets).cpp | manishhedau/Data-Structure-Algorithm | d45de87aa44d3af18d58fd59491993cf98dbe6fc | [
"MIT"
] | null | null | null | 1. Array/5_sum_of_target_with_repeated_element(find_pair_of_targets).cpp | manishhedau/Data-Structure-Algorithm | d45de87aa44d3af18d58fd59491993cf98dbe6fc | [
"MIT"
] | null | null | null | // Given a sorted array find the no of pair which sum = K
/*
Input :-
9 --> array length
1 4 4 5 5 5 6 6 11 -->Array values
11 -->K
Output :-
6 -->(6 pair possible)
*/
#include<iostream>
using namespace std;
// 1 Approach Time - 0(N^2), Space - 0(1)
void find_pair_1(int arr[], int n, int k)
{
int Pair = 0;
... | 14.81 | 57 | 0.372046 | manishhedau |
08589ca4fc1697db9cc2fb61eaf43cf3b1e1b739 | 6,934 | cpp | C++ | core/src/bind/emu/edi_delete.cpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 731 | 2020-05-07T06:22:59.000Z | 2022-03-31T16:36:03.000Z | core/src/bind/emu/edi_delete.cpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 67 | 2020-07-20T19:46:42.000Z | 2022-03-31T15:34:47.000Z | core/src/bind/emu/edi_delete.cpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 15 | 2021-01-29T04:49:11.000Z | 2022-03-04T22:16:31.000Z | #include "bind/emu/edi_delete.hpp"
#include "bind/emu/simple_text_register.hpp"
#include "bind/emu/text_util.hpp"
#include "bind/mode/change_mode.hpp"
#include "bind/safe_repeater.hpp"
#include "g_params.hpp"
#include "io/keybrd.hpp"
#include "key/keycode_def.hpp"
#include "key/ntype_logger.hpp"
#include "mo... | 31.807339 | 92 | 0.574704 | pit-ray |
0859a5f1a91c9e1e4e9a29d64062d946ac3bab69 | 395 | cpp | C++ | friendFunction/main.cpp | b15145456/learning_cpp | 073ec72ba953adf157633d08958c4509b3efa647 | [
"MIT"
] | null | null | null | friendFunction/main.cpp | b15145456/learning_cpp | 073ec72ba953adf157633d08958c4509b3efa647 | [
"MIT"
] | null | null | null | friendFunction/main.cpp | b15145456/learning_cpp | 073ec72ba953adf157633d08958c4509b3efa647 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class StankFist{
public:
StankFist(){stinkyVar=0;}
private:
int stinkyVar;
friend void stinkysFriend(StankFist &sfo); //trust this function to access private variable!
};
void stinkysFriend(StankFist &sfo){
sfo.stinkyVar = 99;
cout << sfo.st... | 20.789474 | 96 | 0.665823 | b15145456 |
085b63ef1b856013f5253bb871d934b7f2e81535 | 45,754 | hh | C++ | src/binutils/dwarf/dwarf++.hh | hondew/dithumb | 65ba730ae5f4bad5187ad531213c0b1b7cf3182f | [
"MIT"
] | 92 | 2016-03-01T02:48:23.000Z | 2021-12-09T15:49:37.000Z | src/binutils/dwarf/dwarf++.hh | hondew/dithumb | 65ba730ae5f4bad5187ad531213c0b1b7cf3182f | [
"MIT"
] | 3 | 2017-04-24T14:30:55.000Z | 2018-07-10T20:24:11.000Z | src/binutils/dwarf/dwarf++.hh | hondew/dithumb | 65ba730ae5f4bad5187ad531213c0b1b7cf3182f | [
"MIT"
] | 17 | 2016-07-05T13:37:14.000Z | 2021-04-26T07:21:58.000Z | #ifndef _DWARFPP_HH_
#define _DWARFPP_HH_
#ifndef DWARFPP_BEGIN_NAMESPACE
#define DWARFPP_BEGIN_NAMESPACE namespace dwarf {
#define DWARFPP_END_NAMESPACE }
#endif
#include "data.hh"
#include "small_vector.hh"
#include <initializer_list>
#include <map>
#include <memory>
#include <stdexcept>
#include <string>
#inclu... | 29.385999 | 101 | 0.579468 | hondew |
085f69e6644b71866aad1bd4f1dda6863d9550bd | 11,976 | hpp | C++ | include/VROSC/LocalSessionsDataController.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/VROSC/LocalSessionsDataController.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/VROSC/LocalSessionsDataController.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: VROSC.SessionsDataController
#inclu... | 63.365079 | 236 | 0.7581 | RedBrumbler |
0862400d313bb6bb9996baed513112a86c66b5d4 | 242 | cpp | C++ | src/core/CmptsView.cpp | yujunting/UECS | 679ae62fff4c8773ac074cde6babd752e3258c10 | [
"MIT"
] | null | null | null | src/core/CmptsView.cpp | yujunting/UECS | 679ae62fff4c8773ac074cde6babd752e3258c10 | [
"MIT"
] | null | null | null | src/core/CmptsView.cpp | yujunting/UECS | 679ae62fff4c8773ac074cde6babd752e3258c10 | [
"MIT"
] | null | null | null | #include <UECS/CmptsView.h>
using namespace Ubpa::UECS;
CmptAccessPtr CmptsView::GetCmpt(AccessTypeID t) const noexcept {
for(const auto& cmpt : cmpts) {
if (cmpt.AccessType() == t)
return cmpt;
}
return CmptAccessPtr::Invalid();
}
| 20.166667 | 65 | 0.710744 | yujunting |
0863d1530a7b2844147dece9e82cd654bd658133 | 792 | cc | C++ | src/lib/log/log_dbglevels.cc | oss-mirror/isc-kea | e7bfb8886b0312a293e73846499095e7ec9686b9 | [
"Apache-2.0"
] | 273 | 2015-01-22T14:14:42.000Z | 2022-03-13T10:27:44.000Z | src/lib/log/log_dbglevels.cc | oss-mirror/isc-kea | e7bfb8886b0312a293e73846499095e7ec9686b9 | [
"Apache-2.0"
] | 104 | 2015-01-16T16:37:06.000Z | 2021-08-08T19:38:45.000Z | src/lib/log/log_dbglevels.cc | oss-mirror/isc-kea | e7bfb8886b0312a293e73846499095e7ec9686b9 | [
"Apache-2.0"
] | 133 | 2015-02-21T14:06:39.000Z | 2022-02-27T08:56:40.000Z | // Copyright (C) 2017-2021 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
namespace isc {
namespac... | 30.461538 | 76 | 0.751263 | oss-mirror |
08656c9ea49bc01d441c0d942b6a8a16c4effe51 | 1,772 | cpp | C++ | ares/component/video/tms9918/io.cpp | moon-chilled/Ares | 909fb098c292f8336d0502dc677050312d8b5c81 | [
"0BSD"
] | 7 | 2020-07-25T11:44:39.000Z | 2021-01-29T13:21:31.000Z | ares/component/video/tms9918/io.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | null | null | null | ares/component/video/tms9918/io.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | 1 | 2021-03-22T16:15:30.000Z | 2021-03-22T16:15:30.000Z | auto TMS9918::status() -> uint8 {
io.controlLatch = 0;
uint8 data = 0x00;
data.bit(0,4) = io.spriteOverflowIndex;
data.bit(5) = io.spriteCollision;
data.bit(6) = io.spriteOverflow;
data.bit(7) = io.irqLine;
irq(io.irqLine = 0);
return data;
}
auto TMS9918::data() -> uint8 {
io.controlLatch = 0;
uin... | 24.957746 | 73 | 0.639955 | moon-chilled |
08681759dcd296004c9b39ea98175cd9c43bb1d3 | 712 | cpp | C++ | Blue-Flame-Engine/Core/BF/Graphics/Renderers/RenderLayer.cpp | FantasyVII/Blue-Flame-Engine | b0e44ccffdd41539fa9075e5d6a2b3c1cc811d96 | [
"MIT"
] | 2 | 2020-10-12T13:40:05.000Z | 2021-09-17T08:37:03.000Z | Blue-Flame-Engine/Core/BF/Graphics/Renderers/RenderLayer.cpp | FantasyVII/Blue-Flame-Engine | b0e44ccffdd41539fa9075e5d6a2b3c1cc811d96 | [
"MIT"
] | null | null | null | Blue-Flame-Engine/Core/BF/Graphics/Renderers/RenderLayer.cpp | FantasyVII/Blue-Flame-Engine | b0e44ccffdd41539fa9075e5d6a2b3c1cc811d96 | [
"MIT"
] | null | null | null | #include "RenderLayer.h"
#include <algorithm>
namespace BF
{
namespace Graphics
{
namespace Renderers
{
using namespace std;
using namespace BF::Graphics::Renderers::SpriteRendererComponents;
RenderLayer::RenderLayer(const string& name, SortingOrder sortingOrder) :
name(name), sortingOrder(sortingO... | 22.967742 | 89 | 0.703652 | FantasyVII |
08686e8d5ce419e671f53fc012f62106342f0ea0 | 2,473 | cpp | C++ | allocgc/src/details/gc_heap.cpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | null | null | null | allocgc/src/details/gc_heap.cpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | 2 | 2017-01-17T16:24:59.000Z | 2017-06-08T17:39:26.000Z | allocgc/src/details/gc_heap.cpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | null | null | null | #include <liballocgc/details/collectors/gc_heap.hpp>
#include <cassert>
#include <utility>
#include <liballocgc/details/compacting/fix_ptrs.hpp>
#include <liballocgc/details/compacting/two_finger_compactor.hpp>
#include <liballocgc/details/threads/gc_thread_manager.hpp>
#include <liballocgc/details/threads/world_snap... | 24.73 | 67 | 0.666397 | eucpp |
086d31005bdf5bb7fe10d2f4acca802015e65a80 | 1,348 | cpp | C++ | String/067. Add Binary.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | String/067. Add Binary.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | String/067. Add Binary.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z | /*
67. Add Binary
Given two binary strings, return their sum (also a binary string).
The input strings are both non-empty and contains only characters 1 or 0.
Example 1:
Input: a = "11", b = "1"
Output: "100"
Example 2:
Input: a = "1010", b = "1011"
Output: "10101"
*/
class Solution {
public:
... | 25.433962 | 99 | 0.454006 | beckswu |
08724e4f149c90be860136cdb6afd2acc7fce00b | 6,692 | cpp | C++ | Surfaces/VS700/ButtonPropsDlg.cpp | Schrankee/Cakewalk-Control-Surface-SDK | 7db5014645567142fc0c47c4f7cd47a4eb7315b3 | [
"MIT"
] | 36 | 2015-03-29T09:49:55.000Z | 2021-11-05T05:35:29.000Z | Surfaces/VS700/ButtonPropsDlg.cpp | Schrankee/Cakewalk-Control-Surface-SDK | 7db5014645567142fc0c47c4f7cd47a4eb7315b3 | [
"MIT"
] | 2 | 2020-06-04T14:07:30.000Z | 2020-09-15T06:39:10.000Z | Surfaces/VS700/ButtonPropsDlg.cpp | Schrankee/Cakewalk-Control-Surface-SDK | 7db5014645567142fc0c47c4f7cd47a4eb7315b3 | [
"MIT"
] | 17 | 2015-03-29T09:42:46.000Z | 2021-09-24T14:41:35.000Z | // ButtonPropsDlg.cpp : implementation file
//
#include "stdafx.h"
#include "ButtonPropsDlg.h"
#include "TacomaSurfacePropPage.h"
// CButtonPropsDlg dialog
IMPLEMENT_DYNAMIC(CButtonPropsDlg, CDialog)
CButtonPropsDlg::CButtonPropsDlg( CTacomaSurface* pSurface, CTacomaSurface::ButtonActionDefinition& b... | 29.610619 | 131 | 0.729976 | Schrankee |
0872d082edcba56e34e49232e419afcdf6a0986c | 813 | hpp | C++ | src/ivorium_graphics/Animation/Connectors/Source_Connector.hpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | 3 | 2021-02-26T02:59:09.000Z | 2022-02-08T16:44:21.000Z | src/ivorium_graphics/Animation/Connectors/Source_Connector.hpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | src/ivorium_graphics/Animation/Connectors/Source_Connector.hpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <ivorium_core/ivorium_core.hpp>
namespace iv
{
/**
*/
template< class T >
class Source_Connector : public Field< T >
{
public:
ClientMarker cm;
Source_Connector( Instance * inst, T const & default_value, AnimNode< T > * child = nullptr, Attr< T > * source = nullptr ... | 22.583333 | 152 | 0.526445 | ivorne |
087928e8c1de51bf9c3fb47418bedc2acdcc6f50 | 1,638 | cpp | C++ | 038-count-and-say/count-and-say.cpp | nagestx/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | 3 | 2018-12-15T14:07:12.000Z | 2020-07-19T23:18:09.000Z | 038-count-and-say/count-and-say.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | 038-count-and-say/count-and-say.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | // The count-and-say sequence is the sequence of integers with the first five terms as following:
//
//
// 1. 1
// 2. 11
// 3. 21
// 4. 1211
// 5. 111221
//
//
// 1 is read off as "one 1" or 11.
// 11 is read off as "two 1s" or 21.
// 21 is read off as "one 2, then one 1" or 1211.
//
// Given an int... | 24.818182 | 252 | 0.51221 | nagestx |
08792e8e2ab91ec3b1205d7d37656fcdd84c3c13 | 2,427 | hpp | C++ | module-utils/i18n/i18nImpl.hpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-utils/i18n/i18nImpl.hpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-utils/i18n/i18nImpl.hpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "JSONLoader.hpp"
#include "Metadata.hpp"
#include <optional>
#include <mutex.hpp>
#include <json11.hpp>
#include <i18n/i18n.hpp>
namespace utils
{
class i1... | 32.36 | 102 | 0.650185 | buk7456 |
087b796c8aee8322e1172fa5b1bf7db1b03cfbb8 | 6,154 | cpp | C++ | src/cpu/jit_uni_resize_bilinear.cpp | heagoo/mkl-dnn | c7d30404d31d8873310dd4de45f16edbf5deb228 | [
"Apache-2.0"
] | null | null | null | src/cpu/jit_uni_resize_bilinear.cpp | heagoo/mkl-dnn | c7d30404d31d8873310dd4de45f16edbf5deb228 | [
"Apache-2.0"
] | null | null | null | src/cpu/jit_uni_resize_bilinear.cpp | heagoo/mkl-dnn | c7d30404d31d8873310dd4de45f16edbf5deb228 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2018 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 37.987654 | 95 | 0.61131 | heagoo |
087da105d752295b37f55305a50fdd98ea6ab401 | 435 | cpp | C++ | back/src/class/utils/Thread/Thread.cpp | GUMBAUElric/6-qui-prend | 4ce2227d37a42b399cef769e14f69e8951f7321b | [
"MIT"
] | null | null | null | back/src/class/utils/Thread/Thread.cpp | GUMBAUElric/6-qui-prend | 4ce2227d37a42b399cef769e14f69e8951f7321b | [
"MIT"
] | null | null | null | back/src/class/utils/Thread/Thread.cpp | GUMBAUElric/6-qui-prend | 4ce2227d37a42b399cef769e14f69e8951f7321b | [
"MIT"
] | null | null | null | #include "Thread.h"
#include "Player.h"
#include "GameCore.h"
#include "Log.h"
using namespace std;
Thread::Thread()
{
}
Thread::~Thread()
{
}
/******************
* Methods *
*******************/
void Thread::detachThread() {
pthread_detach(pthread_self());
}
void Thread::lockThread() {
pthread_mu... | 14.032258 | 47 | 0.609195 | GUMBAUElric |
087fdfb04f00265a61f4a42337c6230a8f897141 | 7,314 | cpp | C++ | VulkanEngine/ProRender.cpp | radcpp/radcpp | c06ba9ada18d3b8058baa88b709ac8ca91d11c38 | [
"MIT"
] | 1 | 2022-01-01T10:39:25.000Z | 2022-01-01T10:39:25.000Z | VulkanEngine/ProRender.cpp | radcpp/radcpp | c06ba9ada18d3b8058baa88b709ac8ca91d11c38 | [
"MIT"
] | null | null | null | VulkanEngine/ProRender.cpp | radcpp/radcpp | c06ba9ada18d3b8058baa88b709ac8ca91d11c38 | [
"MIT"
] | null | null | null | #include "ProRender.h"
#include "RadeonProRender/RadeonProRender_VK.h"
#define RPR_CHECK(rprFunctionCall) { rpr_status _returnCode = rprFunctionCall; if (_returnCode != RPR_SUCCESS) { LogPrint("ProRender", LogLevel::Error, "Function %s failed with %s(%d)", __FUNCTION__, rprGetStatusString(_returnCode), _returnCode); t... | 42.77193 | 274 | 0.733661 | radcpp |
088816a2db3476d7a6983c418e1be029a247ac81 | 95 | cpp | C++ | src/commands/command.cpp | razorbeard/classic-games | 01130f35d5d7538b17a9d447d63227a3cee00111 | [
"MIT"
] | null | null | null | src/commands/command.cpp | razorbeard/classic-games | 01130f35d5d7538b17a9d447d63227a3cee00111 | [
"MIT"
] | null | null | null | src/commands/command.cpp | razorbeard/classic-games | 01130f35d5d7538b17a9d447d63227a3cee00111 | [
"MIT"
] | null | null | null | #include "commands/command.hpp"
Command::Command()
: action()
, category(Category::None)
{
} | 13.571429 | 31 | 0.684211 | razorbeard |
088b15806347116fba73d603d0af9599e98eb81e | 10,004 | hpp | C++ | intercom-cpp/src/detail/posix/library_index.hpp | Rantanen/com-export-rs | 4333bc1e58cb121809cc2ee8b2d392a66360815c | [
"MIT"
] | 45 | 2017-11-06T06:27:08.000Z | 2021-12-26T19:54:25.000Z | intercom-cpp/src/detail/posix/library_index.hpp | Rantanen/com-export-rs | 4333bc1e58cb121809cc2ee8b2d392a66360815c | [
"MIT"
] | 131 | 2017-12-05T03:18:58.000Z | 2021-11-28T23:16:12.000Z | intercom-cpp/src/detail/posix/library_index.hpp | Rantanen/com-export-rs | 4333bc1e58cb121809cc2ee8b2d392a66360815c | [
"MIT"
] | 7 | 2017-12-06T08:38:09.000Z | 2021-03-27T14:47:08.000Z | #ifndef INTERCOM_CPP_DETAIL_POSIX_CLASS_MAPPING_H
#define INTERCOM_CPP_DETAIL_POSIX_CLASS_MAPPING_H
#include <link.h>
#include <iostream>
#include <mutex>
#include <tuple>
#include <unordered_set>
#include <unordered_map>
#include <vector>
#include "../../guiddef.hpp"
#include "../declarations.hpp"
#include "../../r... | 36.779412 | 147 | 0.587365 | Rantanen |
088f554eeb650059362dc5952f0a45e440c65fd0 | 2,205 | cpp | C++ | homework/Maltsev/02/msu_work_02.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 12 | 2018-02-20T15:25:12.000Z | 2022-02-15T03:31:55.000Z | homework/Maltsev/02/msu_work_02.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 1 | 2018-02-26T12:40:47.000Z | 2018-02-26T12:40:47.000Z | homework/Maltsev/02/msu_work_02.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 33 | 2018-02-20T15:25:11.000Z | 2019-02-13T22:33:36.000Z | #include <iostream>
#include "numbers.dat"
#include <vector>
int binary_search(const int* data, int left_index, int right_index, int key) {
int mid_index;
while (right_index > left_index) {
mid_index = left_index + (right_index - left_index) / 2;
if (data[mid_index] >= key) {
right_... | 29.013158 | 78 | 0.457143 | nkotelevskii |
08964ec81fc762f8461f816654a9c85cb4bc8a53 | 342 | hpp | C++ | library/ATF/tagExtentInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/tagExtentInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/tagExtentInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <tagSIZE.hpp>
START_ATF_NAMESPACE
struct tagExtentInfo
{
unsigned int cb;
unsigned int dwExtentMode;
tagSIZE sizelProposed;
... | 21.375 | 108 | 0.710526 | lemkova |
0897763263f7e802b699a5b5f4ed6b662fb3ad21 | 3,036 | cpp | C++ | jixun/nowcoder/10/std.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | jixun/nowcoder/10/std.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | jixun/nowcoder/10/std.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int MOD = 998244353;
const int N = 3e5 + 7; // 2^21
int n, a, b, p, q;
int jc[N], inv[N], G[N];
namespace NTT {
int limit;
vector<int> A, B, rev;
inline int add(int x, int y) { return x += y, x >= MOD ? x - MOD : x; }
inline int mul(int x, int y) { ... | 30.979592 | 111 | 0.402174 | swwind |
089925415e2c0270042e830b79cfdd52b7342537 | 41,440 | cpp | C++ | src/dft/SxFermi.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | 1 | 2020-02-29T03:26:32.000Z | 2020-02-29T03:26:32.000Z | src/dft/SxFermi.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | src/dft/SxFermi.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | // ---------------------------------------------------------------------------
//
// The ab-initio based multiscale library
//
// S / P H I / n X
//
// Copyright: Max-Planck-Institute for Iron Research
// 40237 Duesseldorf, Germany
//
// Contact: https://sxlib.mpie.d... | 30.028986 | 97 | 0.506926 | ashtonmv |
08a002cba8ed0eb75fb61ed2177aba909a27d388 | 3,059 | hpp | C++ | include/boost/mysql/execute_params.hpp | sehe/mysql | 53da045c2c2c0f347ccd82888920d39d11f3f7a4 | [
"BSL-1.0"
] | 1 | 2021-03-07T20:45:35.000Z | 2021-03-07T20:45:35.000Z | include/boost/mysql/execute_params.hpp | sehe/mysql | 53da045c2c2c0f347ccd82888920d39d11f3f7a4 | [
"BSL-1.0"
] | null | null | null | include/boost/mysql/execute_params.hpp | sehe/mysql | 53da045c2c2c0f347ccd82888920d39d11f3f7a4 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2019-2021 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_MYSQL_EXECUTE_PARAMS_HPP
#define BOOST_MYSQL_EXECUTE_PARAMS_HPP... | 31.864583 | 99 | 0.75286 | sehe |
08a4921cd96f35d2796aae4df139dbb1aac70c43 | 1,596 | hpp | C++ | include/http/server_virtual_file_request_handler.hpp | bebuch/http | efc2f8422aca13f4e5627e244e24eb6c0558105a | [
"BSL-1.0"
] | null | null | null | include/http/server_virtual_file_request_handler.hpp | bebuch/http | efc2f8422aca13f4e5627e244e24eb6c0558105a | [
"BSL-1.0"
] | null | null | null | include/http/server_virtual_file_request_handler.hpp | bebuch/http | efc2f8422aca13f4e5627e244e24eb6c0558105a | [
"BSL-1.0"
] | null | null | null | //-----------------------------------------------------------------------------
// Copyright (c) 2012-2018 Benjamin Buch
//
// https://github.com/bebuch/http
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
//---... | 26.163934 | 79 | 0.648496 | bebuch |
08a7150e9ea242ad32ca7cd68d496007d97bb937 | 796 | cpp | C++ | src/main/cpp/find-median-from-data-stream.cpp | wittyResry/leetcode | 182258d91d8cd160fd897e9a5cce33104ac31afe | [
"Apache-2.0"
] | 1 | 2020-07-27T09:48:06.000Z | 2020-07-27T09:48:06.000Z | src/main/cpp/find-median-from-data-stream.cpp | wittyResry/leetcode | 182258d91d8cd160fd897e9a5cce33104ac31afe | [
"Apache-2.0"
] | 2 | 2016-05-25T07:32:35.000Z | 2016-05-25T07:48:40.000Z | src/main/cpp/find-median-from-data-stream.cpp | wittyResry/leetcode | 182258d91d8cd160fd897e9a5cce33104ac31afe | [
"Apache-2.0"
] | null | null | null | class MedianFinder {
public:
// Adds a number into the data structure.
void addNum(int num) {
preHeap.push(num);
postHeap.push(-preHeap.top());
preHeap.pop();
if (postHeap.size()-preHeap.size() > 1 && postHeap.size() > 0) {
preHeap.push(-postHeap.top());
... | 29.481481 | 112 | 0.58794 | wittyResry |
08ac255d5b186ce190935ceb77c10dd966eaf531 | 763 | hpp | C++ | include/SumBits.hpp | kimwalisch/primesum | c73b8afba311413454a25d45482efaea025ae3a0 | [
"BSD-2-Clause"
] | 31 | 2016-05-16T10:43:48.000Z | 2021-12-31T23:20:46.000Z | include/SumBits.hpp | kimwalisch/primesum | c73b8afba311413454a25d45482efaea025ae3a0 | [
"BSD-2-Clause"
] | 2 | 2016-06-07T08:41:55.000Z | 2017-11-17T13:22:20.000Z | include/SumBits.hpp | kimwalisch/primesum | c73b8afba311413454a25d45482efaea025ae3a0 | [
"BSD-2-Clause"
] | 2 | 2019-10-31T02:11:39.000Z | 2021-06-29T16:37:56.000Z | ///
/// @file SumBits.hpp
/// @brief Class that returns the sum of the 1 bit indexes
/// inside of a 16-bit word.
///
/// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef SUMBITS_HPP
... | 16.955556 | 67 | 0.591088 | kimwalisch |
08af2ecefb694f157c0b5ab306912beb3f508a8e | 3,675 | hh | C++ | hip/gpu-utils.hh | jussienko/minifmm | b1ef4d1538bd48d494dfa365df416bf033d80f2e | [
"MIT"
] | null | null | null | hip/gpu-utils.hh | jussienko/minifmm | b1ef4d1538bd48d494dfa365df416bf033d80f2e | [
"MIT"
] | null | null | null | hip/gpu-utils.hh | jussienko/minifmm | b1ef4d1538bd48d494dfa365df416bf033d80f2e | [
"MIT"
] | null | null | null | #pragma once
#include <hip/hip_runtime.h>
#ifdef __HIPCC__
#define HOSTDEVICE __host__ __device__
#define HIPCHECK(ans) \
{ \
gpu_assert((ans), __FILE__, __LINE__); ... | 27.022059 | 81 | 0.652789 | jussienko |
08b4a584039f261dafc942f8d0b94e49da2098c1 | 710 | cpp | C++ | 1093/c.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | 1 | 2021-10-24T00:46:37.000Z | 2021-10-24T00:46:37.000Z | 1093/c.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | 1093/c.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
const long long INF = 1000000000 * 1ll * 1000000000 + 1;
int main() {
int n;
cin >> n;
vector<long long> a(n);
long long prev_a = 0;
long long next_last_a = INF;
for (int i = 0; i < n / 2; ++i) {
long lon... | 19.722222 | 56 | 0.564789 | vladshablinsky |
08b94f0ba8a3e325a2720ffe51e3b5977ba2e46d | 1,697 | cpp | C++ | source/xyo-pixel32-process-scaledownx2onx.cpp | g-stefan/xyo-pixel32 | 2f0e7500473f38ccffdff19e864f262b9f36056d | [
"MIT",
"Unlicense"
] | null | null | null | source/xyo-pixel32-process-scaledownx2onx.cpp | g-stefan/xyo-pixel32 | 2f0e7500473f38ccffdff19e864f262b9f36056d | [
"MIT",
"Unlicense"
] | null | null | null | source/xyo-pixel32-process-scaledownx2onx.cpp | g-stefan/xyo-pixel32 | 2f0e7500473f38ccffdff19e864f262b9f36056d | [
"MIT",
"Unlicense"
] | null | null | null | //
// XYO Pixel32
//
// Copyright (c) 2020-2021 Grigore Stefan <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// MIT License (MIT) <http://opensource.org/licenses/MIT>
//
#include "xyo-pixel32-process.hpp"
namespace XYO {
namespace Pixel32 {
namespace Process {
using n... | 22.038961 | 122 | 0.539187 | g-stefan |
08badb728309f2f7f7dfd9aafe0cb853c20e61b5 | 117 | hpp | C++ | addons/main/TDD_Talon_Effects.hpp | ampersand38/tire-deflation-device | 7eca3ef165e4391423da7ac6047fcbf68018fa68 | [
"MIT"
] | null | null | null | addons/main/TDD_Talon_Effects.hpp | ampersand38/tire-deflation-device | 7eca3ef165e4391423da7ac6047fcbf68018fa68 | [
"MIT"
] | null | null | null | addons/main/TDD_Talon_Effects.hpp | ampersand38/tire-deflation-device | 7eca3ef165e4391423da7ac6047fcbf68018fa68 | [
"MIT"
] | null | null | null | class TDD_Talon_Effects
{
class GrenadeSmoke1
{
simulation = "particles";
type = "GrenadeSmoke1";
};
};
| 13 | 33 | 0.649573 | ampersand38 |
08bc696b23cf6267d125634c4b307673193bf407 | 638 | cpp | C++ | programs/FLSPOS.cpp | vaibhav-academic/conm | 8e0da7c0eb884c51186caa9c12f5cd111820733c | [
"Apache-2.0"
] | null | null | null | programs/FLSPOS.cpp | vaibhav-academic/conm | 8e0da7c0eb884c51186caa9c12f5cd111820733c | [
"Apache-2.0"
] | null | null | null | programs/FLSPOS.cpp | vaibhav-academic/conm | 8e0da7c0eb884c51186caa9c12f5cd111820733c | [
"Apache-2.0"
] | null | null | null | // root of a equation with false position method;
#include <math.h>
#include <stdio.h>
#include <conio.h>
#define SIGN(x) ((x<0.0)?-1:1)
#define APPROX 0.00003
double fx(double x)
{return x*x-25;}
int main()
{double x1=7,y1,x2=4,y2;
double x,y;
unsigned iterations=0;
y1=fx(x1);
y2=fx(x2);
clrscr();
if(SIGN(y2)==... | 19.333333 | 63 | 0.645768 | vaibhav-academic |
08c1ce7f1dec136f2b5a8f11fedab2a41eee559d | 2,010 | cpp | C++ | src/common/cmmobj/thread/Thread.cpp | yuanmartin/ubiquitous-perception | 1f9ca8947523e71259c9736eed7c62c525eb77d8 | [
"MulanPSL-1.0"
] | null | null | null | src/common/cmmobj/thread/Thread.cpp | yuanmartin/ubiquitous-perception | 1f9ca8947523e71259c9736eed7c62c525eb77d8 | [
"MulanPSL-1.0"
] | null | null | null | src/common/cmmobj/thread/Thread.cpp | yuanmartin/ubiquitous-perception | 1f9ca8947523e71259c9736eed7c62c525eb77d8 | [
"MulanPSL-1.0"
] | null | null | null | #include "Thread.h"
#include "log4cxx/Loging.h"
using namespace std;
using namespace common_cmmobj;
using namespace common_template;
CThread::CThread(Func Cb, const int s32SecCycle, const int s32mSecCycle, const std::string& strThreadFlag,const int& s32CpuId) :
m_Cb(Cb),
m_s32SecCycle(s32SecCycle),
m_s32... | 22.333333 | 129 | 0.676119 | yuanmartin |
08c7dd6065f6f8ca78d94c2e4405a13ffb688013 | 2,176 | cpp | C++ | Watty-Core/src/graphics/opengl/textures/SpriteSheetAnimation.cpp | jacksonmakesgames/Watty | ad7c8e3516ecfe3d7eecb7c0bea72b2fb428409f | [
"MIT"
] | null | null | null | Watty-Core/src/graphics/opengl/textures/SpriteSheetAnimation.cpp | jacksonmakesgames/Watty | ad7c8e3516ecfe3d7eecb7c0bea72b2fb428409f | [
"MIT"
] | 5 | 2020-02-12T16:02:24.000Z | 2020-08-02T00:30:25.000Z | Watty-Core/src/graphics/opengl/textures/SpriteSheetAnimation.cpp | jacksonmakesgames/LETC | 4eaa2e3d3281c4d03eb539406997cff335845bf0 | [
"MIT"
] | null | null | null | #include <graphics/textures/SpriteSheetAnimation.h>
namespace watty { namespace graphics {
SpriteSheetAnimation::SpriteSheetAnimation(SpriteSheetAnimInfo info)
: Animation2D(info.name, info.playbackRate, info.loop),
m_currentFrame(0),
m_info(info)
{
determineFrames();
m_currentFrame = m_minFrame;
... | 25.302326 | 102 | 0.652574 | jacksonmakesgames |
08c89798170b643a2fc021973df73babddcb9072 | 12,317 | cpp | C++ | ext/include/osgEarthQt/LOSControlWidget.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | 6 | 2015-09-26T15:33:41.000Z | 2021-06-13T13:21:50.000Z | ext/include/osgEarthQt/LOSControlWidget.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | null | null | null | ext/include/osgEarthQt/LOSControlWidget.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | 5 | 2015-05-04T09:02:23.000Z | 2019-06-17T11:34:12.000Z | /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2013 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 ... | 30.114914 | 149 | 0.706503 | energonQuest |
c09fcf67638af2f3fe09e05751676a1d1462b568 | 712 | cpp | C++ | HomeWork_06_FullOOP/02.SequenceGenerator/StartUp.cpp | wnkr/CPlusPlusSoftUni | 3d1856e0c5f5fee48e74070d5fed01f369aea665 | [
"MIT"
] | null | null | null | HomeWork_06_FullOOP/02.SequenceGenerator/StartUp.cpp | wnkr/CPlusPlusSoftUni | 3d1856e0c5f5fee48e74070d5fed01f369aea665 | [
"MIT"
] | null | null | null | HomeWork_06_FullOOP/02.SequenceGenerator/StartUp.cpp | wnkr/CPlusPlusSoftUni | 3d1856e0c5f5fee48e74070d5fed01f369aea665 | [
"MIT"
] | null | null | null | #include <iostream>
#include "FibonacciGenerator.h"
#include "SqrtGenerator.h"
using namespace std;
using namespace SequenceGenerators;
int main()
{
const long BIG_NUMBER = 10000;
for (int ind1 = 0; ind1 < BIG_NUMBER; ind1++) {
for (int ind2 = 0; ind2 < BIG_NUMBER; ind2++) {
FibonacciGenerator g(1, 10);
F... | 27.384615 | 71 | 0.706461 | wnkr |
c0a7439811291b4cbf5044f7d23b5f81f9457638 | 1,822 | hpp | C++ | libs/camera-pipes/pipeline/Thumbnail_nv_pipe.hpp | suburbanmarine/opaleye | c3843716ffc31956f2499987d3fdb9e31a7de0c9 | [
"BSD-3-Clause"
] | 4 | 2021-08-16T22:23:38.000Z | 2022-02-16T15:49:26.000Z | libs/camera-pipes/pipeline/Thumbnail_nv_pipe.hpp | suburbanmarine/opaleye | c3843716ffc31956f2499987d3fdb9e31a7de0c9 | [
"BSD-3-Clause"
] | 3 | 2021-11-15T03:35:00.000Z | 2022-01-15T19:06:34.000Z | libs/camera-pipes/pipeline/Thumbnail_nv_pipe.hpp | suburbanmarine/opaleye | c3843716ffc31956f2499987d3fdb9e31a7de0c9 | [
"BSD-3-Clause"
] | null | null | null | /**
* @author Jacob Schloss <jacob.schloss@suburbanmarine.io>
* @copyright Copyright (c) 2021 Suburban Marine, Inc. All rights reserved.
* @license Licensed under the 3-Clause BSD LICENSE. See LICENSE.txt for details.
*/
#pragma once
#include "cameras/Logitech_brio.hpp"
#include "pipeline/GST_element_base.hpp"
#i... | 23.973684 | 81 | 0.704171 | suburbanmarine |
c0a9f1273fd9a3a5b745ab4be3aeb324d298764e | 6,547 | cpp | C++ | src/core/math/frustum.cpp | Kuranes/KickstartRT_demo | 6de7453ca42e46db180f8bead7ba23f9e8936b69 | [
"MIT"
] | 83 | 2021-07-19T13:55:33.000Z | 2022-03-29T16:00:57.000Z | src/core/math/frustum.cpp | CompileException/donut | bc400a8c2c9db9c3c5ed16190dc108e75722b503 | [
"MIT"
] | 2 | 2021-11-04T06:41:28.000Z | 2021-11-30T08:25:28.000Z | src/core/math/frustum.cpp | CompileException/donut | bc400a8c2c9db9c3c5ed16190dc108e75722b503 | [
"MIT"
] | 10 | 2021-07-19T15:03:58.000Z | 2022-01-10T07:15:35.000Z | /*
* Copyright (c) 2014-2021, NVIDIA CORPORATION. All rights reserved.
*
* 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,... | 29.894977 | 108 | 0.544066 | Kuranes |
c0a9fdacdf10941734c9f0942a567949c9e59e66 | 1,261 | cpp | C++ | Application.cpp | mustafakemalgilor/ko-mfc-launcher | fc41f1756e84a4632f1d631663a4456919420ba6 | [
"MIT"
] | 2 | 2021-08-03T15:15:35.000Z | 2022-01-21T10:17:44.000Z | Application.cpp | mustafakemalgilor/ko-mfc-launcher | fc41f1756e84a4632f1d631663a4456919420ba6 | [
"MIT"
] | null | null | null | Application.cpp | mustafakemalgilor/ko-mfc-launcher | fc41f1756e84a4632f1d631663a4456919420ba6 | [
"MIT"
] | 2 | 2021-05-24T23:13:57.000Z | 2022-01-10T10:20:48.000Z | /**
* ______________________________________________________
* This file is part of ko-ascension-launcher project.
*
* @author Mustafa Kemal Gılor <mustafagilor@gmail.com> (2015)
* .
* SPDX-License-Identifier: MIT
* ______________________________________________________
*/
#include "stdafx.h"
#include "... | 18.014286 | 68 | 0.75337 | mustafakemalgilor |
c0ab9999f0e94f6e5f7c2a765c73aa407027c863 | 10,356 | cpp | C++ | himan-lib/source/configuration.cpp | jrintala/fmi-data | 625f0a44919e6406440349425ee0b3f1a64a923d | [
"MIT"
] | null | null | null | himan-lib/source/configuration.cpp | jrintala/fmi-data | 625f0a44919e6406440349425ee0b3f1a64a923d | [
"MIT"
] | null | null | null | himan-lib/source/configuration.cpp | jrintala/fmi-data | 625f0a44919e6406440349425ee0b3f1a64a923d | [
"MIT"
] | null | null | null | /**
* @file configuration.cpp
*
*/
#include "configuration.h"
#include "plugin_factory.h"
using namespace himan;
configuration::configuration()
: itsSourceProducerIterator(new producer_iter()),
itsOutputFileType(kGRIB1),
itsFileWriteOption(kSingleFile),
itsFileCompression(kNoCompression),
... | 45.823009 | 119 | 0.782059 | jrintala |
c0b0b78996d82be8c727ff36c1dab05b653416ef | 4,782 | cpp | C++ | swizzle/tests/unit_test/FileInfo-UT.cpp | SenorAgosto/Swizzle | 52c221de9fa293b0006f07a41b140d2afcc1a9ed | [
"BSD-4-Clause"
] | null | null | null | swizzle/tests/unit_test/FileInfo-UT.cpp | SenorAgosto/Swizzle | 52c221de9fa293b0006f07a41b140d2afcc1a9ed | [
"BSD-4-Clause"
] | null | null | null | swizzle/tests/unit_test/FileInfo-UT.cpp | SenorAgosto/Swizzle | 52c221de9fa293b0006f07a41b140d2afcc1a9ed | [
"BSD-4-Clause"
] | null | null | null | #include "./ut_support/UnitTestSupport.hpp"
#include <swizzle/lexer/FileInfo.hpp>
#include <swizzle/lexer/LineInfo.hpp>
#include <swizzle/lexer/Token.hpp>
#include <swizzle/lexer/TokenType.hpp>
namespace {
using namespace swizzle::lexer;
struct FileInfoFixture
{
FileInfoFixture()
... | 27.641618 | 95 | 0.569009 | SenorAgosto |
c0b2b81b786bd0f2321cc1f5641f1c38e523f892 | 891 | hpp | C++ | engine/src/BufferObjectBase.hpp | skryabiin/core | 13bcdd0c9f3ebcc4954b9ee05ea95db0f77e16f7 | [
"MIT"
] | null | null | null | engine/src/BufferObjectBase.hpp | skryabiin/core | 13bcdd0c9f3ebcc4954b9ee05ea95db0f77e16f7 | [
"MIT"
] | null | null | null | engine/src/BufferObjectBase.hpp | skryabiin/core | 13bcdd0c9f3ebcc4954b9ee05ea95db0f77e16f7 | [
"MIT"
] | null | null | null | #ifndef CORE_BUFFER_OBJECT_BASE_HPP
#define CORE_BUFFER_OBJECT_BASE_HPP
#include "GL/glew.h"
#include "Templates.hpp"
namespace core {
class BufferObjectBase : public initializable<BufferObjectBase, GLushort, GLenum, void, void> {
public:
bool createImpl(GLushort vertexDimension) {
_vertexDimension = vertex... | 15.631579 | 96 | 0.717172 | skryabiin |
c0b7080577aace7c97da5b8c01985d563bfeed30 | 1,469 | cpp | C++ | src/cetty/util/TimerFactory.cpp | frankee/Cetty | 4ec5be459e42f3ef76617a5a9c8d70cee277d131 | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 11 | 2015-01-22T11:23:23.000Z | 2021-04-18T13:06:04.000Z | src/cetty/util/TimerFactory.cpp | frankee/Cetty | 4ec5be459e42f3ef76617a5a9c8d70cee277d131 | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/cetty/util/TimerFactory.cpp | frankee/Cetty | 4ec5be459e42f3ef76617a5a9c8d70cee277d131 | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2015-04-17T08:13:04.000Z | 2020-11-28T04:12:29.000Z | /*
* Copyright (c) 2010-2011 frankee zhou (frankee.zhou at gmail dot com)
*
* Distributed under under the Apache License, version 2.0 (the "License").
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 27.716981 | 76 | 0.673928 | frankee |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.