hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9108955b49f7f48dea454530454dc867462dd24c | 2,495 | cpp | C++ | libvast/src/system/signal_monitor.cpp | vast-io/vast | 6c9c787adc54079202dba85ea4a929004063f1ba | [
"BSD-3-Clause"
] | 63 | 2016-04-22T01:50:03.000Z | 2019-07-31T15:50:36.000Z | libvast/src/system/signal_monitor.cpp | vast-io/vast | 6c9c787adc54079202dba85ea4a929004063f1ba | [
"BSD-3-Clause"
] | 216 | 2017-01-24T16:25:43.000Z | 2019-08-01T19:37:00.000Z | libvast/src/system/signal_monitor.cpp | vast-io/vast | 6c9c787adc54079202dba85ea4a929004063f1ba | [
"BSD-3-Clause"
] | 28 | 2016-05-19T13:09:19.000Z | 2019-04-12T15:11:42.000Z | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2016 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#include "vast/system/signal_monitor.hpp"
#include "vas... | 30.802469 | 79 | 0.625651 | vast-io |
910affbde23fb26cd3aaa8866651a6385ef9f13f | 20,815 | cpp | C++ | src/mme-app/utils/mmeContextManagerUtils.cpp | aggarwalanubhav/Nucleus | 107113cd9a1b68b1a28b35091ed17785ed32d319 | [
"Apache-2.0"
] | null | null | null | src/mme-app/utils/mmeContextManagerUtils.cpp | aggarwalanubhav/Nucleus | 107113cd9a1b68b1a28b35091ed17785ed32d319 | [
"Apache-2.0"
] | null | null | null | src/mme-app/utils/mmeContextManagerUtils.cpp | aggarwalanubhav/Nucleus | 107113cd9a1b68b1a28b35091ed17785ed32d319 | [
"Apache-2.0"
] | 1 | 2021-05-18T07:21:24.000Z | 2021-05-18T07:21:24.000Z | /*
* Copyright (c) 2019, Infosys Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <cmath>
#include <controlBlock.h>
#include <contextManager/subsDataGroupManager.h>
#include <err_codes.h>
#include <log.h>
#include <mmeStates/createBearerProcedureStates.h>
#include <mmeStates/dedBearerActProcedureStates.h>
... | 30.386861 | 125 | 0.684122 | aggarwalanubhav |
510454def85f339ae7c3e550d51c096e69e7b911 | 750 | cpp | C++ | ros2_mod_ws/build/std_srvs/rosidl_typesupport_c/std_srvs/srv/empty__type_support.cpp | mintforpeople/robobo-ros2-ios-port | 1a5650304bd41060925ebba41d6c861d5062bfae | [
"Apache-2.0"
] | 1 | 2020-05-19T14:33:49.000Z | 2020-05-19T14:33:49.000Z | ros2_mod_ws/build/std_srvs/rosidl_typesupport_c/std_srvs/srv/empty__type_support.cpp | mintforpeople/robobo-ros2-ios-port | 1a5650304bd41060925ebba41d6c861d5062bfae | [
"Apache-2.0"
] | null | null | null | ros2_mod_ws/build/std_srvs/rosidl_typesupport_c/std_srvs/srv/empty__type_support.cpp | mintforpeople/robobo-ros2-ios-port | 1a5650304bd41060925ebba41d6c861d5062bfae | [
"Apache-2.0"
] | null | null | null | // generated from rosidl_typesupport_c/resource/srv__type_support.cpp.em
// generated code does not contain a copyright notice
#include <cstddef>
#include "rosidl_generator_c/service_type_support_struct.h"
#include "std_srvs/msg/rosidl_typesupport_c__visibility_control.h"
#include "rosidl_typesupport_interface/macr... | 26.785714 | 114 | 0.849333 | mintforpeople |
5105961852b2abe6f1b5cdda2d2d9fd01fe5ca34 | 317 | cpp | C++ | models/model_robertson/model_robertson_M.cpp | paszkow/AMICI | a0407673453d6e18a9abec5b6f73758dd09f7aaf | [
"BSD-3-Clause"
] | null | null | null | models/model_robertson/model_robertson_M.cpp | paszkow/AMICI | a0407673453d6e18a9abec5b6f73758dd09f7aaf | [
"BSD-3-Clause"
] | null | null | null | models/model_robertson/model_robertson_M.cpp | paszkow/AMICI | a0407673453d6e18a9abec5b6f73758dd09f7aaf | [
"BSD-3-Clause"
] | null | null | null |
#include "amici/symbolic_functions.h"
#include "amici/defines.h" //realtype definition
typedef amici::realtype realtype;
#include <cmath>
using namespace amici;
void M_model_robertson(realtype *M, const realtype t, const realtype *x, const realtype *p, const realtype *k) {
M[0+0*3] = 1.0;
M[1+1*3] = 1.0;
}
| 22.642857 | 112 | 0.712934 | paszkow |
51066701eaff539f3f66d545f3214ad8a0d6ddef | 6,239 | cpp | C++ | quic/api/QuicBatchWriter.cpp | neko-suki/mvfst | 275edda5be49742221dfb0072e93786eb79cdc43 | [
"MIT"
] | 1 | 2020-01-29T06:41:43.000Z | 2020-01-29T06:41:43.000Z | quic/api/QuicBatchWriter.cpp | neko-suki/mvfst | 275edda5be49742221dfb0072e93786eb79cdc43 | [
"MIT"
] | null | null | null | quic/api/QuicBatchWriter.cpp | neko-suki/mvfst | 275edda5be49742221dfb0072e93786eb79cdc43 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
#include <quic/api/QuicBatchWriter.h>
namespace quic {
// BatchWriter
bool BatchWriter::needsFlush(size_t /*unused*/) {
retur... | 23.279851 | 77 | 0.677032 | neko-suki |
51067fb7034721216304f1ce1b0206557d544038 | 38,851 | cpp | C++ | src/etl/ETLSource.cpp | crypticrabbit/clio | ffc8779a14f22e25830e801487e898cec6c2f5c2 | [
"ISC"
] | null | null | null | src/etl/ETLSource.cpp | crypticrabbit/clio | ffc8779a14f22e25830e801487e898cec6c2f5c2 | [
"ISC"
] | null | null | null | src/etl/ETLSource.cpp | crypticrabbit/clio | ffc8779a14f22e25830e801487e898cec6c2f5c2 | [
"ISC"
] | null | null | null | #include <ripple/beast/net/IPEndpoint.h>
#include <ripple/protocol/STLedgerEntry.h>
#include <boost/asio/strand.hpp>
#include <boost/beast/http.hpp>
#include <boost/beast/ssl.hpp>
#include <boost/json.hpp>
#include <boost/json/src.hpp>
#include <boost/log/trivial.hpp>
#include <backend/DBHelpers.h>
#include <etl/ETLSou... | 32.896698 | 81 | 0.524337 | crypticrabbit |
510a8912d1fb1aadb57f069a27baad9adb0206fc | 2,279 | cpp | C++ | Practica2/ProyectosOGREvc15x86/IG2App/AspasMolino.cpp | nicoFdez/PracticasIG2 | cae65f0020e9231b5575cabcc86280a26ab3ba6e | [
"MIT"
] | null | null | null | Practica2/ProyectosOGREvc15x86/IG2App/AspasMolino.cpp | nicoFdez/PracticasIG2 | cae65f0020e9231b5575cabcc86280a26ab3ba6e | [
"MIT"
] | null | null | null | Practica2/ProyectosOGREvc15x86/IG2App/AspasMolino.cpp | nicoFdez/PracticasIG2 | cae65f0020e9231b5575cabcc86280a26ab3ba6e | [
"MIT"
] | null | null | null | #include "AspasMolino.h"
#include <OgreSceneManager.h>
#include <OgreEntity.h>
#include <SDL_keycode.h>
#include "Avion.h"
AspasMolino::AspasMolino(Ogre::SceneNode* rootNode, int numAspas, int number) : EntidadIG(), numAspas(numAspas)
{
Ogre::Entity* ent;
if(modoGiro == 0)
mNode = rootNode->createChildSceneNode("a... | 27.792683 | 121 | 0.679684 | nicoFdez |
510c760baa2b3dae99bf5e0bafe5e7e8011aff1f | 2,907 | cpp | C++ | character/character.cpp | Jay2645/character | 8bd6943c39b7c859e054c2df6b274ba8b8de787d | [
"MIT"
] | 2 | 2020-09-14T02:28:06.000Z | 2022-01-27T23:57:24.000Z | character/character.cpp | Jay2645/character | 8bd6943c39b7c859e054c2df6b274ba8b8de787d | [
"MIT"
] | null | null | null | character/character.cpp | Jay2645/character | 8bd6943c39b7c859e054c2df6b274ba8b8de787d | [
"MIT"
] | 2 | 2020-09-14T02:28:15.000Z | 2021-01-08T03:38:12.000Z | #include "character.h"
#include "scene/3d/camera.h"
#include "scene/3d/collision_shape.h"
#include "scene/3d/spatial.h"
Character::Character() {
connect("ready", this, "_character_ready");
set_physics_process(true);
_command_manager = NULL;
_movement = NULL;
}
void Character::_character_ready() {
... | 35.888889 | 196 | 0.778122 | Jay2645 |
510d6f1f2c6977dc0579f719731dd5a7c2234321 | 3,339 | hpp | C++ | deps/boost/libs/beast/test/beast/core/file_test.hpp | alexhenrie/poedit | b9b31a111d9e8a84cf1e698aff2c922a79bdd859 | [
"MIT"
] | 1,155 | 2015-01-10T19:04:33.000Z | 2022-03-30T12:30:30.000Z | deps/boost/libs/beast/test/beast/core/file_test.hpp | alexhenrie/poedit | b9b31a111d9e8a84cf1e698aff2c922a79bdd859 | [
"MIT"
] | 618 | 2015-01-02T01:39:26.000Z | 2022-03-28T15:18:40.000Z | deps/boost/libs/beast/test/beast/core/file_test.hpp | alexhenrie/poedit | b9b31a111d9e8a84cf1e698aff2c922a79bdd859 | [
"MIT"
] | 228 | 2015-01-13T12:55:42.000Z | 2022-03-30T11:11:05.000Z | //
// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco 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)
//
// Official repository: https://github.com/boostorg/beast
//
#ifndef BOOST_BEAST_... | 25.883721 | 79 | 0.604373 | alexhenrie |
510d87800f34aa4a9523b96fe5dca8ba92f0c3e6 | 65 | cpp | C++ | TileDeck.cpp | kengonakajima/moyai | 70077449eb2446de6c24de928050ad8affc6df3d | [
"Zlib"
] | 37 | 2015-07-23T04:02:51.000Z | 2021-09-23T08:39:12.000Z | TileDeck.cpp | kengonakajima/moyai | 70077449eb2446de6c24de928050ad8affc6df3d | [
"Zlib"
] | 1 | 2018-08-30T08:33:38.000Z | 2018-08-30T08:33:38.000Z | TileDeck.cpp | kengonakajima/moyai | 70077449eb2446de6c24de928050ad8affc6df3d | [
"Zlib"
] | 8 | 2015-07-23T04:02:58.000Z | 2020-11-10T14:52:12.000Z | #include "client.h"
#include "TileDeck.h"
int Deck::idgen = 1;
| 10.833333 | 21 | 0.661538 | kengonakajima |
510e94ca8586abf80c106ea9f05427606c552c32 | 368 | hpp | C++ | plugins/community/repos/rcm/include/PianoRoll/Auditioner.hpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 233 | 2018-07-02T16:49:36.000Z | 2022-02-27T21:45:39.000Z | plugins/community/repos/rcm/include/PianoRoll/Auditioner.hpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-09T11:32:15.000Z | 2022-01-07T01:45:43.000Z | plugins/community/repos/rcm/include/PianoRoll/Auditioner.hpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-14T21:55:30.000Z | 2021-05-04T04:20:34.000Z |
namespace rack_plugin_rcm {
class Auditioner {
public:
void start(int step);
void retrigger();
void stop();
bool isAuditioning();
int stepToAudition();
bool consumeRetrigger();
bool consumeStopEvent();
private:
int step = -1;
bool needsRetrigger = false;
bool auditioning = false;
bool stopPend... | 16 | 30 | 0.701087 | guillaume-plantevin |
510fda49aa3667dd2c2520ce53abf5e216995981 | 304 | cc | C++ | tensorflow/core/kernels/cwise_op_square.cc | vsilyaev/tensorflow | f41959ccb2d9d4c722fe8fc3351401d53bcf4900 | [
"Apache-2.0"
] | 4 | 2021-06-11T09:43:32.000Z | 2021-11-17T11:15:52.000Z | tensorflow/core/kernels/cwise_op_square.cc | cleargraphinc/tensorflow | 21fac39c471dede0e4ae62dd60e2b0b85db48415 | [
"Apache-2.0"
] | null | null | null | tensorflow/core/kernels/cwise_op_square.cc | cleargraphinc/tensorflow | 21fac39c471dede0e4ae62dd60e2b0b85db48415 | [
"Apache-2.0"
] | 2 | 2016-05-18T12:48:06.000Z | 2019-03-30T03:56:31.000Z | #include "tensorflow/core/kernels/cwise_ops_common.h"
namespace tensorflow {
REGISTER5(UnaryOp, CPU, "Square", functor::square, float, double, int32,
complex64, int64);
#if GOOGLE_CUDA
REGISTER3(UnaryOp, GPU, "Square", functor::square, float, double, int64);
#endif
} // namespace tensorflow
| 30.4 | 73 | 0.733553 | vsilyaev |
511027f32a168ea3f82a4b64a1562b217e3865be | 1,842 | hpp | C++ | include/eagine/memory/buffer_pool.hpp | ford442/oglplu2 | abf1e28d9bcd0d2348121e8640d9611a94112a83 | [
"BSL-1.0"
] | 103 | 2015-10-15T07:09:22.000Z | 2022-03-20T03:39:32.000Z | include/eagine/memory/buffer_pool.hpp | ford442/oglplu2 | abf1e28d9bcd0d2348121e8640d9611a94112a83 | [
"BSL-1.0"
] | 11 | 2015-11-25T11:39:49.000Z | 2021-06-18T08:06:06.000Z | include/eagine/memory/buffer_pool.hpp | ford442/oglplu2 | abf1e28d9bcd0d2348121e8640d9611a94112a83 | [
"BSL-1.0"
] | 10 | 2016-02-28T00:13:20.000Z | 2021-09-06T05:21:38.000Z | /// @file
///
/// Copyright Matus Chochlik.
/// 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 EAGINE_MEMORY_BUFFER_POOL_HPP
#define EAGINE_MEMORY_BUFFER_POOL_HPP
#include "buffer.hpp"
#include <algo... | 30.7 | 84 | 0.565689 | ford442 |
511158aad9b954dfa26a6b4b65ef6b6eb0430a4b | 445 | hpp | C++ | include/innovatrics/ansiiso_accuracy_test.hpp | tomas-krupa/ansi_iso_accuracy_test | a87600c1ff8997cd689539432e5badaa1bf8a776 | [
"Apache-2.0"
] | null | null | null | include/innovatrics/ansiiso_accuracy_test.hpp | tomas-krupa/ansi_iso_accuracy_test | a87600c1ff8997cd689539432e5badaa1bf8a776 | [
"Apache-2.0"
] | null | null | null | include/innovatrics/ansiiso_accuracy_test.hpp | tomas-krupa/ansi_iso_accuracy_test | a87600c1ff8997cd689539432e5badaa1bf8a776 | [
"Apache-2.0"
] | null | null | null | /**
* @file ansiiso_accuracy_test.hpp
*
* @copyright Copyright (c) 2020 Innovatrics s.r.o. All rights reserved.
*
* @maintainer Tomas Krupa <tomas.krupa@innovatrics.com>
* @created 10.08.2020
*
*/
#pragma once
#include <string>
#include <innovatrics/config.hpp>
namespace Innovatrics {
class AnsiIsoAccuracy... | 15.344828 | 72 | 0.719101 | tomas-krupa |
5111d99b1f96f7fcfc98f238e3bfa2f2fb06cebc | 6,072 | cxx | C++ | IO/ParallelXML/vtkXMLPTableWriter.cxx | michaelchanwahyan/vtk-8.1.2 | 243225b750443f76dcb119c1bb8e72d41e505bc0 | [
"BSD-3-Clause"
] | 2 | 2017-12-08T07:50:51.000Z | 2018-07-22T19:12:56.000Z | IO/ParallelXML/vtkXMLPTableWriter.cxx | sakjain92/VTK | 1c32f7a180e2750d4678744d7fc47a00f0eb4780 | [
"BSD-3-Clause"
] | 1 | 2019-06-03T17:04:59.000Z | 2019-06-05T15:13:28.000Z | IO/ParallelXML/vtkXMLPTableWriter.cxx | sakjain92/VTK | 1c32f7a180e2750d4678744d7fc47a00f0eb4780 | [
"BSD-3-Clause"
] | 1 | 2020-07-20T06:43:49.000Z | 2020-07-20T06:43:49.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: vtkXMLPTableWriter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwa... | 30.36 | 82 | 0.583333 | michaelchanwahyan |
51125d409e5de20a38e78ff2acfd56a4d9e69bc6 | 2,924 | cpp | C++ | src/sequence.cpp | entn-at/JSGFKit_Plus_Plus | dd8a414f6eb4b48be3546aa3377ba49d86634c8a | [
"Unlicense"
] | 9 | 2019-08-09T08:45:35.000Z | 2022-03-11T12:25:05.000Z | src/sequence.cpp | entn-at/JSGFKit_Plus_Plus | dd8a414f6eb4b48be3546aa3377ba49d86634c8a | [
"Unlicense"
] | 9 | 2019-01-29T18:49:18.000Z | 2020-03-20T23:45:43.000Z | src/sequence.cpp | entn-at/JSGFKit_Plus_Plus | dd8a414f6eb4b48be3546aa3377ba49d86634c8a | [
"Unlicense"
] | 2 | 2019-08-07T06:48:32.000Z | 2019-08-09T09:48:39.000Z | #include "sequence.h"
#include <iostream>
Sequence::Sequence()
{
//ctor
}
Sequence::~Sequence()
{
}
Expansion * Sequence::clone() {
Sequence * s = new Sequence();
std::vector<std::shared_ptr<Expansion>> c = this->getChildren();
for(std::vector<std::shared_ptr<Expansion>>::iterator childIterator = c.b... | 30.14433 | 245 | 0.658345 | entn-at |
511307c7d5ebd32269ebb54010987c6873d834ae | 7,453 | cpp | C++ | Examples/GrandBlimpBastards/SceneDirector.cpp | radical-bumblebee/bumblebee-engine | c5b7eb4bcd825bc2c5be66d6306912c519a56a2d | [
"MIT"
] | 1 | 2017-08-15T03:56:22.000Z | 2017-08-15T03:56:22.000Z | Examples/GrandBlimpBastards/SceneDirector.cpp | radical-bumblebee/bumblebee-engine | c5b7eb4bcd825bc2c5be66d6306912c519a56a2d | [
"MIT"
] | null | null | null | Examples/GrandBlimpBastards/SceneDirector.cpp | radical-bumblebee/bumblebee-engine | c5b7eb4bcd825bc2c5be66d6306912c519a56a2d | [
"MIT"
] | null | null | null | #include "SceneDirector.h"
#include "SceneInfo.h"
#include <sstream>
void SceneDirector::tick() {
if (_world->config->game_over < 1.0f && _world->config->game_over > 0.0f) {
_world->config->game_over -= 0.3f * _world->dt;
if (_world->config->game_over < 0.0f) {
_world->config->game_over = 0.0f;
_world->scen... | 43.331395 | 216 | 0.695693 | radical-bumblebee |
5114fdf5e436670aa4f96417aa6beb7218245e57 | 1,791 | hpp | C++ | teas/teaport_utils/shell.hpp | benman64/buildhl | 137f53d3817928d67b898653b612bbaa669d0112 | [
"MIT"
] | null | null | null | teas/teaport_utils/shell.hpp | benman64/buildhl | 137f53d3817928d67b898653b612bbaa669d0112 | [
"MIT"
] | null | null | null | teas/teaport_utils/shell.hpp | benman64/buildhl | 137f53d3817928d67b898653b612bbaa669d0112 | [
"MIT"
] | null | null | null | #pragma once
// this is a good item to be it's own library. Cross platform process
// creation library.
#include <string>
#include <initializer_list>
#include <vector>
#include <cstdint>
#include "Version.hpp"
namespace tea {
struct CompletedProcess {
int exit_code = 1;
std::vector<uint8_t> stdo... | 34.442308 | 104 | 0.691234 | benman64 |
511b09a85aa534798dbe47e96104be64727a5eb9 | 17,078 | cpp | C++ | src/tests/accuracy_test_mixed_callback.cpp | ddeka2910/clFFT | 7b060b4f27ac22f95c17790476503f622ffea4c6 | [
"Apache-2.0"
] | 406 | 2015-02-01T07:32:29.000Z | 2022-03-31T15:21:54.000Z | src/tests/accuracy_test_mixed_callback.cpp | ddeka2910/clFFT | 7b060b4f27ac22f95c17790476503f622ffea4c6 | [
"Apache-2.0"
] | 169 | 2015-01-01T00:06:42.000Z | 2021-12-01T19:15:45.000Z | src/tests/accuracy_test_mixed_callback.cpp | ddeka2910/clFFT | 7b060b4f27ac22f95c17790476503f622ffea4c6 | [
"Apache-2.0"
] | 183 | 2015-01-05T02:21:16.000Z | 2022-03-14T08:25:39.000Z | /* ************************************************************************
* Copyright 2015 Advanced Micro Devices, 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... | 33.750988 | 207 | 0.720752 | ddeka2910 |
511b6d995a3b75d481537e76c838e03be7d0f323 | 743 | hh | C++ | src/decoder-phrasebased/src/native/decoder/util/pool.hh | ugermann/MMT | 715ad16b4467f44c8103e16165261d1391a69fb8 | [
"Apache-2.0"
] | 3 | 2020-02-28T21:42:44.000Z | 2021-03-12T13:56:16.000Z | tools/mosesdecoder-master/util/pool.hh | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2020-11-06T14:40:10.000Z | 2020-12-29T19:03:11.000Z | tools/mosesdecoder-master/util/pool.hh | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2019-11-26T05:27:16.000Z | 2019-12-17T01:53:43.000Z | // Very simple pool. It can only allocate memory. And all of the memory it
// allocates must be freed at the same time.
#ifndef UTIL_POOL_H
#define UTIL_POOL_H
#include <vector>
#include <stdint.h>
namespace util {
class Pool {
public:
Pool();
~Pool();
void *Allocate(std::size_t size) {
void... | 16.511111 | 76 | 0.602961 | ugermann |
511f43175f952e74575897bf2d3b2b1fe2a41c12 | 8,476 | cpp | C++ | src/GShaderProgram.cpp | mallocc/glw | 5fe808e1bcd8559ad1fa0a5b8a58279b5e59b246 | [
"Apache-2.0"
] | 3 | 2019-04-08T19:17:29.000Z | 2019-09-22T05:35:47.000Z | src/GShaderProgram.cpp | mallocc/glw | 5fe808e1bcd8559ad1fa0a5b8a58279b5e59b246 | [
"Apache-2.0"
] | null | null | null | src/GShaderProgram.cpp | mallocc/glw | 5fe808e1bcd8559ad1fa0a5b8a58279b5e59b246 | [
"Apache-2.0"
] | null | null | null | #include "GShaderProgram.h"
#include "Logger.h"
#include "StringFormat.h"
#include "GReturnCode.h"
#include <fstream>
using glw::engine::glsl::GShaderProgram;
using glw::engine::glsl::GShaderProgramId;
using glw::engine::glsl::GShaderVariableHandle;
using glw::engine::glsl::GShaderVariableHandleId;
using glw::engine::... | 26.160494 | 96 | 0.737494 | mallocc |
5120e6e419be763070c899b65998040423d525ca | 5,502 | cpp | C++ | OpenGL-SOFT/OpenGL-SOFT/Chunk.cpp | Tom-Todd/OpenGL-Height-Map-Generation | 1004b945557071b1e65b441510dc8c144320140b | [
"Unlicense"
] | null | null | null | OpenGL-SOFT/OpenGL-SOFT/Chunk.cpp | Tom-Todd/OpenGL-Height-Map-Generation | 1004b945557071b1e65b441510dc8c144320140b | [
"Unlicense"
] | null | null | null | OpenGL-SOFT/OpenGL-SOFT/Chunk.cpp | Tom-Todd/OpenGL-Height-Map-Generation | 1004b945557071b1e65b441510dc8c144320140b | [
"Unlicense"
] | null | null | null | #include "Chunk.h"
#include "glm/gtc/matrix_transform.hpp"
#include <glm/glm.hpp>
#include <vector>
#include <iostream>
#include "FastNoise.h"
#include "texture.hpp"
const int w = 150;
const int h = 150;
Chunk::Chunk() {
}
Chunk::~Chunk() {
delete[] heightMap;
glDeleteProgram(shadersID);
}
Chunk::Chunk(GLuint sh... | 27.103448 | 102 | 0.622501 | Tom-Todd |
5120fed4befbeb143a9526102c6a639bf65349fd | 5,051 | cc | C++ | src/ptr_matrix.cc | Charles-Chao-Chen/fastSolver2 | 60eed8825f05c29919f7153497a4b57dec1ef76d | [
"MIT"
] | 1 | 2020-11-28T12:41:51.000Z | 2020-11-28T12:41:51.000Z | src/ptr_matrix.cc | Charles-Chao-Chen/fastSolver2 | 60eed8825f05c29919f7153497a4b57dec1ef76d | [
"MIT"
] | 2 | 2017-09-15T23:39:34.000Z | 2017-11-21T21:43:00.000Z | src/ptr_matrix.cc | Charles-Chao-Chen/fastSolver2 | 60eed8825f05c29919f7153497a4b57dec1ef76d | [
"MIT"
] | 3 | 2016-10-04T04:34:32.000Z | 2017-09-15T22:16:11.000Z | #include "ptr_matrix.hpp"
#include "utility.hpp"
#include <assert.h>
#include <stdlib.h> // for srand48_r(), lrand48_r() and drand48_r()
PtrMatrix::PtrMatrix()
: mRows(-1), mCols(-1), leadD(-1), ptr(NULL),
has_memory(false), trans('n') {}
PtrMatrix::PtrMatrix(int r, int c)
: mRows(r), mCols(c), leadD(r),
... | 24.519417 | 67 | 0.559097 | Charles-Chao-Chen |
512301f537ba191042486d680edab9c600e5d49b | 15,210 | cpp | C++ | 2dSpriteGame/Monkey/Level_Editor/Classes/AppFrame.cpp | ScottRMcleod/CPLUSPLUS | 94352ddf374b048fab960c1e7d5b2000d08ab399 | [
"Unlicense"
] | null | null | null | 2dSpriteGame/Monkey/Level_Editor/Classes/AppFrame.cpp | ScottRMcleod/CPLUSPLUS | 94352ddf374b048fab960c1e7d5b2000d08ab399 | [
"Unlicense"
] | null | null | null | 2dSpriteGame/Monkey/Level_Editor/Classes/AppFrame.cpp | ScottRMcleod/CPLUSPLUS | 94352ddf374b048fab960c1e7d5b2000d08ab399 | [
"Unlicense"
] | null | null | null | #include "AppFrame.h"
#define TOOLBAR_SIZE 16
#define GRID_SIZE 32
BEGIN_EVENT_TABLE(AppFrame, wxFrame)
EVT_MENU( ID_New_Package, AppFrame::OnNewPackage)
EVT_MENU( ID_New_Level, AppFrame::OnNewLevel)
EVT_MENU( ID_Save, AppFrame::OnSave)
EVT_MENU( ID_Load, AppFrame::OnLoad)
EVT_MENU( ID_About, AppFrame:... | 25.955631 | 132 | 0.673044 | ScottRMcleod |
512306955fcd3f467b3442d6632e987902f2d21f | 3,439 | cpp | C++ | desktop-ui/program/drivers.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | desktop-ui/program/drivers.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | desktop-ui/program/drivers.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | auto Program::videoDriverUpdate() -> void {
ruby::video.create(settings.video.driver);
ruby::video.setContext(presentation.viewport.handle());
videoMonitorUpdate();
videoFormatUpdate();
ruby::video.setExclusive(settings.video.exclusive);
ruby::video.setBlocking(settings.video.blocking);
ruby::video.setFlu... | 30.433628 | 131 | 0.700785 | CasualPokePlayer |
512398c8e1c780d5fd682f014a3e27bb0eb3e881 | 2,684 | hpp | C++ | modules/boost/simd/base/include/boost/simd/operator/functions/shift_right.hpp | feelpp/nt2 | 4d121e2c7450f24b735d6cff03720f07b4b2146c | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/boost/simd/base/include/boost/simd/operator/functions/shift_right.hpp | feelpp/nt2 | 4d121e2c7450f24b735d6cff03720f07b4b2146c | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/base/include/boost/simd/operator/functions/shift_right.hpp | feelpp/nt2 | 4d121e2c7450f24b735d6cff03720f07b4b2146c | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 31.952381 | 145 | 0.625931 | feelpp |
5124183a50986bde23dacf6d7b946a55c22a9d59 | 16,733 | cpp | C++ | src/main.cpp | MlsDmitry/RakNet-samples | 05873aecb5c8dac0c0f822845c764bd5f8dc6a6d | [
"MIT"
] | null | null | null | src/main.cpp | MlsDmitry/RakNet-samples | 05873aecb5c8dac0c0f822845c764bd5f8dc6a6d | [
"MIT"
] | null | null | null | src/main.cpp | MlsDmitry/RakNet-samples | 05873aecb5c8dac0c0f822845c764bd5f8dc6a6d | [
"MIT"
] | null | null | null | // #include <iostream>
// #include <thread>
// #include <chrono>
// #include <string>
// #include <iomanip>
// #include <cstring>
// #include "RakPeerInterface.h"
// #include "RakNetTypes.h"
// #include "RakNetDefines.h"
// #include "RakNetStatistics.h"
// #include "BitStream.h"
// #include "StringCompressor.h"
// #in... | 32.874263 | 166 | 0.541804 | MlsDmitry |
51286344076bc3d1c2da743388d15ea6578679af | 142 | cpp | C++ | bmi-calculator-flutter/build/app/intermediates/javac/debug/classes/C++ & C/2.cpp | Bijitakc/Hacktoberfest2021-2 | 167e7c81dc9c5cc83fd604ea1d4bce52aa882605 | [
"MIT"
] | 20 | 2021-10-06T13:51:46.000Z | 2021-11-11T16:12:17.000Z | bmi-calculator-flutter/build/app/intermediates/javac/debug/classes/C++ & C/2.cpp | Bijitakc/Hacktoberfest2021-2 | 167e7c81dc9c5cc83fd604ea1d4bce52aa882605 | [
"MIT"
] | 42 | 2021-10-08T09:49:17.000Z | 2021-10-21T23:18:39.000Z | bmi-calculator-flutter/build/app/intermediates/javac/debug/classes/C++ & C/2.cpp | Bijitakc/Hacktoberfest2021-2 | 167e7c81dc9c5cc83fd604ea1d4bce52aa882605 | [
"MIT"
] | 97 | 2021-10-06T13:04:34.000Z | 2021-11-11T16:12:21.000Z | #include<iostream>
using namespace std;
int main(){
int a,b;
int result;
a=5;
b=6;
a=a+1;
result=a-b;
cout<<"result : "<<result;
return 0;
}
| 10.142857 | 26 | 0.640845 | Bijitakc |
512a7d29217fb2d99e3193711c74406cc93e23ad | 18,686 | cpp | C++ | NeoMathEngine/src/CPU/x86/CpuX86MathEngineBlas.cpp | sergesk/neoml | cca05584ef3d892cb00d23a105bac6674b3d50ef | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | NeoMathEngine/src/CPU/x86/CpuX86MathEngineBlas.cpp | sergesk/neoml | cca05584ef3d892cb00d23a105bac6674b3d50ef | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | NeoMathEngine/src/CPU/x86/CpuX86MathEngineBlas.cpp | sergesk/neoml | cca05584ef3d892cb00d23a105bac6674b3d50ef | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /* Copyright © 2017-2020 ABBYY Production LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 33.367857 | 117 | 0.689393 | sergesk |
512d3330eec97e0ad717464069a9d579312c05f3 | 750 | cpp | C++ | acmicpc/20006.cpp | juseongkr/BOJ | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 7 | 2020-02-03T10:00:19.000Z | 2021-11-16T11:03:57.000Z | acmicpc/20006.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:58:24.000Z | 2021-01-03T06:58:24.000Z | acmicpc/20006.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2020-01-22T14:34:03.000Z | 2020-01-22T14:34:03.000Z | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
#define MAX 301
int p, m, l, idx, lv[MAX];
vector<pair<string, int>> vec[MAX];
string n;
int main()
{
cin >> p >> m;
for (int i=0; i<p; ++i) {
cin >> l >> n;
for (int j=0; j<MAX; ++j) {
if (lv[j] == 0) {
lv[j] = l;
vec[j]... | 17.44186 | 62 | 0.48 | juseongkr |
512d3ec39e3fa15402e93f461609be030e11f815 | 7,821 | cc | C++ | benchmarks/benchmark.cc | jlquinn/intgemm | a56f8225c2ebade4a742b1e691514c7d6c9def3d | [
"MIT"
] | 37 | 2018-06-25T07:08:05.000Z | 2022-03-30T05:10:19.000Z | benchmarks/benchmark.cc | jlquinn/intgemm | a56f8225c2ebade4a742b1e691514c7d6c9def3d | [
"MIT"
] | 50 | 2019-03-20T10:34:34.000Z | 2022-03-30T16:49:10.000Z | benchmarks/benchmark.cc | jlquinn/intgemm | a56f8225c2ebade4a742b1e691514c7d6c9def3d | [
"MIT"
] | 16 | 2018-10-10T11:58:32.000Z | 2022-01-28T23:19:05.000Z | #include "../intgemm/aligned.h"
#include "intgemm/intgemm_config.h"
#include "../intgemm/avx512_gemm.h"
#include "../intgemm/sse2_gemm.h"
#include "../intgemm/avx2_gemm.h"
#include "../intgemm/ssse3_gemm.h"
#include "../intgemm/intgemm.h"
#include "../intgemm/stats.h"
#include "../intgemm/callbacks.h"
#include <algori... | 36.376744 | 193 | 0.664749 | jlquinn |
512f0745860519e583a559b258a8aecc0b41b6a7 | 905 | cpp | C++ | mp32wav/tests/LittleBigEndian_Test.cpp | dissabte/mp32wav | 6b3e8e08f94df0db84ff99fe4bdf5f6aa92c7cee | [
"MIT"
] | 3 | 2018-03-26T03:54:14.000Z | 2021-12-27T14:04:03.000Z | mp32wav/tests/LittleBigEndian_Test.cpp | dissabte/mp32wav | 6b3e8e08f94df0db84ff99fe4bdf5f6aa92c7cee | [
"MIT"
] | null | null | null | mp32wav/tests/LittleBigEndian_Test.cpp | dissabte/mp32wav | 6b3e8e08f94df0db84ff99fe4bdf5f6aa92c7cee | [
"MIT"
] | null | null | null | #include <UnitTest++/UnitTest++.h>
#include "../src/LittleBigEndian.h"
#include <cstring>
SUITE(AudilFileTest)
{
TEST(LittleEndianTest)
{
const uint32_t testValue = 0x00AACCBB;
LittleEndian<uint32_t> leValue;
std::memcpy(leValue.bytes, &testValue, sizeof(uint32_t));
uint32_t leCheckValue = leValue;
CHECK... | 25.857143 | 60 | 0.740331 | dissabte |
5130edb3dd55fe64a3752239e9d9ca4d6f82a649 | 10,497 | cc | C++ | unittests/libtests/meshio/TestMeshIO.cc | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | 1 | 2021-09-09T06:24:11.000Z | 2021-09-09T06:24:11.000Z | unittests/libtests/meshio/TestMeshIO.cc | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | null | null | null | unittests/libtests/meshio/TestMeshIO.cc | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | null | null | null | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 34.758278 | 199 | 0.656187 | joegeisz |
51338ae50e20e8f5e0911e3e850ce9cf8888c6c4 | 500 | cpp | C++ | 1 semester/AP/Labs/2/Code/2_1.cpp | kurpenok/Labs | 069c92b7964a1445d093313b38ebdc56318d2a73 | [
"MIT"
] | 1 | 2022-02-06T17:50:25.000Z | 2022-02-06T17:50:25.000Z | 1 semester/AP/Labs/2/Code/2_1.cpp | kurpenok/Labs | 069c92b7964a1445d093313b38ebdc56318d2a73 | [
"MIT"
] | null | null | null | 1 semester/AP/Labs/2/Code/2_1.cpp | kurpenok/Labs | 069c92b7964a1445d093313b38ebdc56318d2a73 | [
"MIT"
] | 1 | 2022-03-02T06:45:06.000Z | 2022-03-02T06:45:06.000Z | #include <iostream>
#include <cmath>
double f(double x) {
double b = 1.3;
if (x < 1.3) {
return log(b * x) - (1 / (b * x + 1));
} else if ((x >= 1.3) && (x <= 1.7)) {
return b * x + 1;
} else if (x > 1.7) {
return log(b * x) + (1 / (b * x + 1));
}
return 0;
}
int main... | 17.241379 | 55 | 0.41 | kurpenok |
51374e254f627a0689f573774ad92185f041b855 | 275 | cpp | C++ | src/qlift-c-api/qlift-QHBoxLayout.cpp | msenol86/qlift-c-api | b591f1f020a6f35fdaf2a3ffee25aa98662cc027 | [
"MIT"
] | null | null | null | src/qlift-c-api/qlift-QHBoxLayout.cpp | msenol86/qlift-c-api | b591f1f020a6f35fdaf2a3ffee25aa98662cc027 | [
"MIT"
] | null | null | null | src/qlift-c-api/qlift-QHBoxLayout.cpp | msenol86/qlift-c-api | b591f1f020a6f35fdaf2a3ffee25aa98662cc027 | [
"MIT"
] | 1 | 2020-08-18T19:17:21.000Z | 2020-08-18T19:17:21.000Z | #include <QHBoxLayout>
#include "qlift-QHBoxLayout.h"
void* QHBoxLayout_new(void *parent) {
return static_cast<void*>(new QHBoxLayout {static_cast<QWidget*>(parent)});
}
void QHBoxLayout_delete(void *hBoxLayout) {
delete static_cast<QHBoxLayout*>(hBoxLayout);
}
| 19.642857 | 79 | 0.741818 | msenol86 |
51382e19cbcbdfcb6b312e8d57c035f52a61d321 | 21,914 | hpp | C++ | unit_test/tstGridOperator3d.hpp | abisner/picasso | 06c1ae58e75f7da4c3eb2421c3297e5258c2ad90 | [
"BSD-3-Clause"
] | null | null | null | unit_test/tstGridOperator3d.hpp | abisner/picasso | 06c1ae58e75f7da4c3eb2421c3297e5258c2ad90 | [
"BSD-3-Clause"
] | null | null | null | unit_test/tstGridOperator3d.hpp | abisner/picasso | 06c1ae58e75f7da4c3eb2421c3297e5258c2ad90 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
* Copyright (c) 2021 by the Picasso authors *
* All rights reserved. *
* *
* This ... | 39.843636 | 80 | 0.544401 | abisner |
513838948060ea5b2cd034b2115cdf228725fc6b | 1,158 | cpp | C++ | cpp/string_multibyte_mbrlen.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | cpp/string_multibyte_mbrlen.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | cpp/string_multibyte_mbrlen.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | /*
g++ --std=c++20 -pthread -o ../_build/cpp/string_multibyte_mbrlen.exe ./cpp/string_multibyte_mbrlen.cpp && (cd ../_build/cpp/;./string_multibyte_mbrlen.exe)
https://en.cppreference.com/w/cpp/string/multibyte/mbrlen
*/
#include <clocale>
#include <string>
#include <iostream>
#include <cwchar>
int main()
{
// allo... | 39.931034 | 156 | 0.587219 | rpuntaie |
5138a09ebc9f4012bdbaa539c9546a9ea4fa182c | 1,368 | cpp | C++ | tests/transactions/helpers.cpp | brett19/couchbase-transactions-cxx | 468342818a62b8648798b112618afb47ed229c0b | [
"Apache-2.0"
] | null | null | null | tests/transactions/helpers.cpp | brett19/couchbase-transactions-cxx | 468342818a62b8648798b112618afb47ed229c0b | [
"Apache-2.0"
] | null | null | null | tests/transactions/helpers.cpp | brett19/couchbase-transactions-cxx | 468342818a62b8648798b112618afb47ed229c0b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 Couchbase, 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... | 25.811321 | 77 | 0.679094 | brett19 |
5138e1dd4b3e47239ee7e34d93c4a6a94b85d575 | 4,062 | cc | C++ | content/browser/android/navigation_handle_proxy.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-10-18T02:33:40.000Z | 2020-10-18T02:33:40.000Z | content/browser/android/navigation_handle_proxy.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2021-05-17T16:28:52.000Z | 2021-05-21T22:42:22.000Z | content/browser/android/navigation_handle_proxy.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/android/navigation_handle_proxy.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base/an... | 38.320755 | 80 | 0.745692 | DamieFC |
513cb0f1884a2eef048bfab38cebff17d8cc5262 | 6,671 | cc | C++ | RAVL2/OS/Network/SocketAddr.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/OS/Network/SocketAddr.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/OS/Network/SocketAddr.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null |
#include "Ravl/OS/SocketAddr.hh"
#if RAVL_OS_SOLARIS
#define __EXTENSIONS__ 1
#include <string.h>
#include <netdir.h>
#endif
#ifdef __linux__
#define _REENTRANT 1
#define _BSD_SOURCE 1
#define _XOPEN_SOURCE_EXTENDED 1
#endif
#include "Ravl/OS/SocketAddr.hh"
#include "Ravl/OS/Date.hh"
#include "Ravl/OS/SktError.hh"... | 28.387234 | 141 | 0.641733 | isuhao |
513d3587339e31c9de95dc67bba5ced73c4966b9 | 19,821 | cpp | C++ | gtest/containers/set_test.cpp | public-jun/42_ft_containers | 28e32632ebf7100537fc2c0bc85438ada9f0e4f0 | [
"MIT"
] | null | null | null | gtest/containers/set_test.cpp | public-jun/42_ft_containers | 28e32632ebf7100537fc2c0bc85438ada9f0e4f0 | [
"MIT"
] | 40 | 2022-02-12T06:50:14.000Z | 2022-03-31T14:43:29.000Z | gtest/containers/set_test.cpp | public-jun/42_ft_containers | 28e32632ebf7100537fc2c0bc85438ada9f0e4f0 | [
"MIT"
] | null | null | null | #if STL // -DTEST=1
#else // -DTEST=0
#include <set.hpp>
#endif
#if __cplusplus >= 201103L
#include <gtest/gtest.h>
#else
#include "../ft_test.hpp"
#endif
#include <set>
#include <time.h>
// 内部構造はmapと同じなのでテストは簡易
template <class T>
void compare_set_iterator(T first1, T end1, T first2)
{
for (; first1 != end1; ... | 27.152055 | 79 | 0.498007 | public-jun |
5148c105f61a8d9a40261bdc33f36e846b1d9c63 | 1,030 | hpp | C++ | src/controls/color_picker.hpp | AndrewGrim/Agro | f065920ab665938852bc8aa7e38d4d73f7e3ec0d | [
"MIT"
] | null | null | null | src/controls/color_picker.hpp | AndrewGrim/Agro | f065920ab665938852bc8aa7e38d4d73f7e3ec0d | [
"MIT"
] | null | null | null | src/controls/color_picker.hpp | AndrewGrim/Agro | f065920ab665938852bc8aa7e38d4d73f7e3ec0d | [
"MIT"
] | 1 | 2021-04-18T12:06:55.000Z | 2021-04-18T12:06:55.000Z | #pragma once
#include "widget.hpp"
#include "label.hpp"
#include "line_edit.hpp"
#define COLOR_PICKER_WIDTH 300
#define COLOR_PICKER_HEIGHT 200
class ColorPicker : public Widget {
public:
EventListener<Widget*, Color> onColorChanged = EventListener<Widget*, Color>();
ColorPicker();
~Colo... | 32.1875 | 101 | 0.675728 | AndrewGrim |
514c8365dd9993283844233c553e94c886391f7a | 1,453 | cpp | C++ | aws-cpp-sdk-lexv2-runtime/source/model/DialogAction.cpp | blinemedical/aws-sdk-cpp | c7c814b2d6862b4cb48f3fb3ac083a9e419674e8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-lexv2-runtime/source/model/DialogAction.cpp | blinemedical/aws-sdk-cpp | c7c814b2d6862b4cb48f3fb3ac083a9e419674e8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-lexv2-runtime/source/model/DialogAction.cpp | blinemedical/aws-sdk-cpp | c7c814b2d6862b4cb48f3fb3ac083a9e419674e8 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/lexv2-runtime/model/DialogAction.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
na... | 19.118421 | 93 | 0.73159 | blinemedical |
5150a860afb3aa8901f132cbdf37307813c7e933 | 3,867 | cc | C++ | dash/test/meta/RangeTest.cc | RuhanDev/dash | c56193149c334e552df6f8439c3fb1510048b7f1 | [
"BSD-3-Clause"
] | 1 | 2019-05-19T20:31:20.000Z | 2019-05-19T20:31:20.000Z | dash/test/meta/RangeTest.cc | RuhanDev/dash | c56193149c334e552df6f8439c3fb1510048b7f1 | [
"BSD-3-Clause"
] | null | null | null | dash/test/meta/RangeTest.cc | RuhanDev/dash | c56193149c334e552df6f8439c3fb1510048b7f1 | [
"BSD-3-Clause"
] | 2 | 2019-10-02T23:19:22.000Z | 2020-06-27T09:23:31.000Z |
#include "RangeTest.h"
#include <gtest/gtest.h>
#include <dash/View.h>
#include <dash/Array.h>
#include <dash/Matrix.h>
#include <dash/internal/StreamConversion.h>
#include <array>
#include <iterator>
TEST_F(RangeTest, RangeTraits)
{
dash::Array<int> array(dash::size() * 10);
auto v_sub = dash::sub(0, 10, ... | 39.865979 | 78 | 0.57564 | RuhanDev |
51519fac19dcbe9973762850e55c65a79c3c9ff2 | 1,550 | cpp | C++ | src/efscape/utils/type.cpp | clinejc/efscape | ef8bbf272827c7b364aa02af33dc5d239f070e0b | [
"0BSD"
] | 1 | 2019-07-29T07:44:13.000Z | 2019-07-29T07:44:13.000Z | src/efscape/utils/type.cpp | clinejc/efscape | ef8bbf272827c7b364aa02af33dc5d239f070e0b | [
"0BSD"
] | null | null | null | src/efscape/utils/type.cpp | clinejc/efscape | ef8bbf272827c7b364aa02af33dc5d239f070e0b | [
"0BSD"
] | 1 | 2019-07-11T10:49:48.000Z | 2019-07-11T10:49:48.000Z | // __COPYRIGHT_START__
// Package Name : efscape
// File Name : type.cpp
// Copyright (C) 2006-2018 Jon C. Cline
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear... | 27.678571 | 158 | 0.694194 | clinejc |
51594205af499ec87806554cc33848bb3ce7283d | 1,124 | cpp | C++ | dbus-cxx/standard-interfaces/peerinterfaceproxy.cpp | tvladax/dbus-cxx | 396041a2130985acd72bb801b7137ec06e04b161 | [
"BSD-3-Clause"
] | null | null | null | dbus-cxx/standard-interfaces/peerinterfaceproxy.cpp | tvladax/dbus-cxx | 396041a2130985acd72bb801b7137ec06e04b161 | [
"BSD-3-Clause"
] | null | null | null | dbus-cxx/standard-interfaces/peerinterfaceproxy.cpp | tvladax/dbus-cxx | 396041a2130985acd72bb801b7137ec06e04b161 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: LGPL-3.0-or-later OR BSD-3-Clause
/***************************************************************************
* Copyright (C) 2020 by Robert Middleton *
* robert.middleton@rm5248.com *
* ... | 37.466667 | 80 | 0.513345 | tvladax |
515aaa5bb2e69a154d85f4fdd3dc3f16729dcffa | 403 | cpp | C++ | Dataset/Leetcode/train/62/677.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/62/677.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/62/677.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
int XXX(int m, int n) {
if(m==1||n==1) return 1;
vector<vector<int>> v(m,vector<int>(n,0));
v[0][1]=1;
v[1][0]=1;
for(int i=0;i<m;i++){
for(int ii=0;ii<n;ii++){
if(i-1>=0) v[i][ii]+=v[i-1][ii];
if(ii-1>=0) v... | 22.388889 | 50 | 0.364764 | kkcookies99 |
515b7518098672ff18f2ff1ec2ade048038696b1 | 2,540 | cpp | C++ | src/xray/editor/world/sources/command_delete_object.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/editor/world/sources/command_delete_object.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/editor/world/sources/command_delete_object.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 02.04.2009
// Author : Armen Abroyan
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "command_delete_object.h"
#include "le... | 26.736842 | 108 | 0.666929 | ixray-team |
5160a119e018d97e0d7c700ff5632049d9c9de36 | 447 | cpp | C++ | nhn_next_gameserver_lab_2017_IocpServer/Samples/ObjectPoolTest/main.cpp | jacking75/Netowrok_Projects | 7788a9265818db6d781620fd644124aca425fe3c | [
"MIT"
] | 25 | 2019-05-20T08:07:39.000Z | 2021-08-17T11:25:02.000Z | nhn_next_gameserver_lab_2017_IocpServer/Samples/ObjectPoolTest/main.cpp | jacking75/Netowrok_Projects | 7788a9265818db6d781620fd644124aca425fe3c | [
"MIT"
] | null | null | null | nhn_next_gameserver_lab_2017_IocpServer/Samples/ObjectPoolTest/main.cpp | jacking75/Netowrok_Projects | 7788a9265818db6d781620fd644124aca425fe3c | [
"MIT"
] | 17 | 2019-07-07T12:20:16.000Z | 2022-01-11T08:27:44.000Z | #include <iostream>
#include <vector>
#include "ClientSession.h"
int main()
{
std::vector<ClientSession*> sessions;
for (int i = 0; i < 3; ++i)
{
auto session = new ClientSession();
sessions.push_back(session);
}
for (int i = 0; i < 3; ++i)
{
delete sessions[i];
}
sessions.clear()... | 15.413793 | 39 | 0.572707 | jacking75 |
51615861ba867c2962b7b31451910795c6ca3751 | 3,290 | cpp | C++ | src/Map/CompressionTools.cpp | Lexicality/Wulf2012 | 5bcf42797e6fb0db16107ab134e8b977fc99daed | [
"MIT"
] | 6 | 2015-01-06T13:04:52.000Z | 2020-04-21T05:50:01.000Z | src/Map/CompressionTools.cpp | Lexicality/Wulf2012 | 5bcf42797e6fb0db16107ab134e8b977fc99daed | [
"MIT"
] | null | null | null | src/Map/CompressionTools.cpp | Lexicality/Wulf2012 | 5bcf42797e6fb0db16107ab134e8b977fc99daed | [
"MIT"
] | null | null | null | //
// WulfGame/Map/CompressionTools.cpp
// Copyright (C) 2012 Lexi Robinson
// This code is freely available under the MIT licence.
//
#include "Map/CompressionTools.h"
#include <stdexcept>
using Wulf::word;
using Wulf::byte;
using namespace Wulf;
word LEconcat(byte low, byte high);
static const byte NEARTAG = 0xA7... | 24.37037 | 93 | 0.660486 | Lexicality |
5162729d357122aa639de9b836496c5469f72068 | 2,113 | cpp | C++ | test/training_data/plag_original_codes/abc037_c_6420655_827.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | 13 | 2021-01-20T19:53:16.000Z | 2021-11-14T16:30:32.000Z | test/training_data/plag_original_codes/abc037_c_6420655_827.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | test/training_data/plag_original_codes/abc037_c_6420655_827.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | /*
引用元:https://atcoder.jp/contests/abc037/tasks/abc037_c
C - 総和Editorial
// ソースコードの引用元 : https://atcoder.jp/contests/abc037/submissions/6420655
// 提出ID : 6420655
// 問題ID : abc037_c
// コンテストID : abc037
// ユーザID : xryuseix
// コード長 : 1857
// 実行時間 : 11
*/
#include <iostream>
#include <cstdio>
#include <algorithm>
#inclu... | 20.920792 | 70 | 0.563654 | xryuseix |
516441de661be2abaab3cbf612dac08b81f2820d | 11,487 | cpp | C++ | libRaftExt/protobuffer/RaftProtoBufferSerializer.cpp | ZhenYongFan/libRaft | 7da0b124d9eed800bebaff39b01c9d1ae36c1ccd | [
"Apache-2.0"
] | 4 | 2019-08-21T06:32:36.000Z | 2021-12-16T09:30:48.000Z | libRaftExt/protobuffer/RaftProtoBufferSerializer.cpp | ZhenYongFan/libRaft | 7da0b124d9eed800bebaff39b01c9d1ae36c1ccd | [
"Apache-2.0"
] | 1 | 2019-08-20T07:11:42.000Z | 2019-08-26T00:03:22.000Z | libRaftExt/protobuffer/RaftProtoBufferSerializer.cpp | ZhenYongFan/libRaft | 7da0b124d9eed800bebaff39b01c9d1ae36c1ccd | [
"Apache-2.0"
] | 2 | 2020-03-09T06:03:02.000Z | 2021-02-03T03:21:57.000Z | #include "stdafx.h"
#include "RaftProtoBufferSerializer.h"
#include "raft.pb.h"
#include "rpc.pb.h"
#include <RaftEntry.h>
#include <RequestOp.h>
void LocalToPb(const CRaftEntry &entry, raftpb::Entry &entryPb)
{
entryPb.set_term(entry.m_u64Term);
entryPb.set_index(entry.m_u64Index);
entryPb.set_type(raftpb... | 34.809091 | 106 | 0.716984 | ZhenYongFan |
5164704f47f0e300f549eb6be63bc4f345237968 | 9,796 | cpp | C++ | fboss/agent/hw/bcm/BcmPortIngressBufferManager.cpp | TomMD/fboss | 30654277076e1f1f50c9b756e9690737dc1476e0 | [
"BSD-3-Clause"
] | null | null | null | fboss/agent/hw/bcm/BcmPortIngressBufferManager.cpp | TomMD/fboss | 30654277076e1f1f50c9b756e9690737dc1476e0 | [
"BSD-3-Clause"
] | null | null | null | fboss/agent/hw/bcm/BcmPortIngressBufferManager.cpp | TomMD/fboss | 30654277076e1f1f50c9b756e9690737dc1476e0 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... | 29.684848 | 80 | 0.713352 | TomMD |
5166174d985515dd0a3fa627f1c1736d6b152600 | 4,659 | cpp | C++ | src/generic_cpu/b_ipc_target.cpp | cicerone/kosim | a9f718a19019c11fd6e6c6fc0164d4d214bbb5e2 | [
"BSL-1.0"
] | 2 | 2019-11-15T19:15:36.000Z | 2022-03-14T12:53:18.000Z | src/generic_cpu/b_ipc_target.cpp | cicerone/kosim | a9f718a19019c11fd6e6c6fc0164d4d214bbb5e2 | [
"BSL-1.0"
] | null | null | null | src/generic_cpu/b_ipc_target.cpp | cicerone/kosim | a9f718a19019c11fd6e6c6fc0164d4d214bbb5e2 | [
"BSL-1.0"
] | null | null | null | /*===============================================================================================
Copyright (c) 2009 Kotys LLC. 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)
Author: Cicerone Mihalache ... | 36.116279 | 97 | 0.605924 | cicerone |
51681500c39ac4640164102458d08cbc89d5e7c2 | 807 | cpp | C++ | Codeforces/r217d2/B.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | Codeforces/r217d2/B.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | Codeforces/r217d2/B.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <queue>
#include <vector>
#define sz(X) (int)X.size()
using namespace std;
typedef vector<int> vi;
int n;
vi m[100];
int main() {
cin >> n;
for (int i = 0; i < n; i++)
{
int x;
cin >> x;
m[i].resize(x);
for (int j = 0; j < x; j++)
cin >> m[i][j];
... | 13.016129 | 41 | 0.408922 | s9v |
516925e539cd8565aac25799d06e8cbc361665ad | 3,003 | cc | C++ | src/lib/util/tests/base64_unittest.cc | svenauhagen/kea | 8a575ad46dee1487364fad394e7a325337200839 | [
"Apache-2.0"
] | 273 | 2015-01-22T14:14:42.000Z | 2022-03-13T10:27:44.000Z | src/lib/util/tests/base64_unittest.cc | jxiaobin/kea | 1987a50a458921f9e5ac84cb612782c07f3b601d | [
"Apache-2.0"
] | 104 | 2015-01-16T16:37:06.000Z | 2021-08-08T19:38:45.000Z | src/lib/util/tests/base64_unittest.cc | jxiaobin/kea | 1987a50a458921f9e5ac84cb612782c07f3b601d | [
"Apache-2.0"
] | 133 | 2015-02-21T14:06:39.000Z | 2022-02-27T08:56:40.000Z | // Copyright (C) 2010-2015 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>
#include <string>
#inclu... | 31.946809 | 72 | 0.664336 | svenauhagen |
516c38a4b97ddbfc803afb36b00d4f0bc1e3ace6 | 265 | cc | C++ | Sources/pyTheGame/Tasks/StackTask.cc | JYPark09/TheGame | 2af0bbe1199df794bd1688837c0f814479deded8 | [
"MIT"
] | null | null | null | Sources/pyTheGame/Tasks/StackTask.cc | JYPark09/TheGame | 2af0bbe1199df794bd1688837c0f814479deded8 | [
"MIT"
] | null | null | null | Sources/pyTheGame/Tasks/StackTask.cc | JYPark09/TheGame | 2af0bbe1199df794bd1688837c0f814479deded8 | [
"MIT"
] | null | null | null | #include <pyTheGame/Tasks/StackTask.hpp>
#include <TheGame/Tasks/StackTask.hpp>
namespace py = pybind11;
using namespace TheGame;
void buildStackTask(py::module& m)
{
py::class_<StackTask, Task>(m, "StackTask")
.def(py::init<Card, std::size_t>());
}
| 20.384615 | 47 | 0.69434 | JYPark09 |
516c8c98979cb71a25f3b40f2ed3b4509106adba | 600 | hpp | C++ | include/kjq_navigation/BiPridgeNode.hpp | CtfChan/kjq_navigation | 4969fe633c74fa19ab3330e30a561efbcacc6b03 | [
"BSD-3-Clause"
] | null | null | null | include/kjq_navigation/BiPridgeNode.hpp | CtfChan/kjq_navigation | 4969fe633c74fa19ab3330e30a561efbcacc6b03 | [
"BSD-3-Clause"
] | null | null | null | include/kjq_navigation/BiPridgeNode.hpp | CtfChan/kjq_navigation | 4969fe633c74fa19ab3330e30a561efbcacc6b03 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <ros/ros.h>
#include <sensor_msgs/LaserScan.h>
#include <geometry_msgs/Pose.h>
#include <tf/transform_broadcaster.h>
namespace kjq_navigation
{
class PiBridgeNode {
public:
PiBridgeNode(ros::NodeHandle& nh);
private:
void scanCallback(sensor_msgs::LaserScan::Ptr msg);
void odomC... | 17.142857 | 55 | 0.728333 | CtfChan |
516ce0b27fa09d3a1ea844c0cb55c514f66746ed | 1,870 | cpp | C++ | Code/C++/Search/vj1910.cpp | EdmundLuan/NOIP14-16 | c4277dfc7467346d6c67dd4cfae9a9caa08b487c | [
"MIT"
] | null | null | null | Code/C++/Search/vj1910.cpp | EdmundLuan/NOIP14-16 | c4277dfc7467346d6c67dd4cfae9a9caa08b487c | [
"MIT"
] | null | null | null | Code/C++/Search/vj1910.cpp | EdmundLuan/NOIP14-16 | c4277dfc7467346d6c67dd4cfae9a9caa08b487c | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cctype>
#include <algorithm>
#include <cstring>
using namespace std;
#define mnum 5
const int mod[mnum] = {8233, 9067, 9337, 20929, 10007};
int n, m, a[110][mnum];
int ans[1001000];
bool check[1001000];
void read(int &x) {
char chr = getchar();
int minus = 1;
x = 0;
while (!isdigit(chr... | 17.809524 | 60 | 0.491979 | EdmundLuan |
516d06a3b4c1c5d214b2de1e4313584fe89cae16 | 54,826 | cpp | C++ | include/enki/viewer/objects/EPuckBody.cpp | ou-real/nevil-grandparent | 38324705678afac77d002391da753c6f10ee95e2 | [
"MIT"
] | null | null | null | include/enki/viewer/objects/EPuckBody.cpp | ou-real/nevil-grandparent | 38324705678afac77d002391da753c6f10ee95e2 | [
"MIT"
] | null | null | null | include/enki/viewer/objects/EPuckBody.cpp | ou-real/nevil-grandparent | 38324705678afac77d002391da753c6f10ee95e2 | [
"MIT"
] | null | null | null |
/*
Enki - a fast 2D robot simulator
Copyright (C) 1999-2013 Stephane Magnenat <stephane at magnenat dot net>
Copyright (C) 2004-2005 Markus Waibel <markus dot waibel at epfl dot ch>
Copyright (c) 2004-2005 Antoine Beyeler <abeyeler at ab-ware dot com>
Copyright (C) 2005-2006 Laboratory of Int... | 74.189445 | 117 | 0.6378 | ou-real |
516ee4d8d4246c315aa8525ee046b6e0ae3f44e7 | 1,962 | cpp | C++ | tree/search_tree/best_fit/bestFit.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null | tree/search_tree/best_fit/bestFit.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null | tree/search_tree/best_fit/bestFit.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null |
// best fit bin packing
#include <iostream>
#include "dBinarySearchTreeWithGE.h"
using namespace std;
void bestFitPack(int *objectSize, int numberOfObjects, int binCapacity)
{// Output best-fit packing into bins of size binCapacity.
// objectSize[1:numberOfObjects] are the object sizes.
int n = numbe... | 27.633803 | 72 | 0.583588 | vectordb-io |
516fb1cfc8317517817557bd7bd6fe676725cda1 | 5,187 | cpp | C++ | ethernet_bridge/src/tcp_client/node.cpp | UniBwTAS/ethernet_bridge | c13c537b0c08326728911687dddfcdf14a727798 | [
"BSD-3-Clause"
] | 5 | 2021-06-06T18:38:35.000Z | 2021-08-09T22:31:13.000Z | ethernet_bridge/src/tcp_client/node.cpp | UniBwTAS/ethernet_bridge | c13c537b0c08326728911687dddfcdf14a727798 | [
"BSD-3-Clause"
] | null | null | null | ethernet_bridge/src/tcp_client/node.cpp | UniBwTAS/ethernet_bridge | c13c537b0c08326728911687dddfcdf14a727798 | [
"BSD-3-Clause"
] | 4 | 2021-08-08T23:50:59.000Z | 2021-08-09T22:31:39.000Z | #include "node.h"
#include <QTcpSocket>
#include <QHostAddress>
#include <ethernet_msgs/Event.h>
#include <ethernet_msgs/EventType.h>
#include <ethernet_msgs/ProtocolType.h>
#include <ethernet_msgs/utils.h>
Node::Node(ros::NodeHandle& nh, ros::NodeHandle& private_nh) : nh_(nh), private_nh_(nh)
{
/// Pa... | 36.787234 | 135 | 0.710816 | UniBwTAS |
51706b4bc2a573e50ce30f7eebe1e9225cc7608a | 196 | cpp | C++ | Floating_Point_Instructions/DP_Instructions/Conversion_and_Move/FMV.D.X.cpp | vinodganesan/shaktiISS | fb48e202596989004136b3d44e6fcfa191ba6ea8 | [
"BSD-3-Clause"
] | null | null | null | Floating_Point_Instructions/DP_Instructions/Conversion_and_Move/FMV.D.X.cpp | vinodganesan/shaktiISS | fb48e202596989004136b3d44e6fcfa191ba6ea8 | [
"BSD-3-Clause"
] | null | null | null | Floating_Point_Instructions/DP_Instructions/Conversion_and_Move/FMV.D.X.cpp | vinodganesan/shaktiISS | fb48e202596989004136b3d44e6fcfa191ba6ea8 | [
"BSD-3-Clause"
] | null | null | null | #include<stdio.h>
#include<sstream>
#include<iostream>
#include<string>
void fmvdx(int rd, int rs1, std::string rm)
{
getrounding(rm);
for(int i= 0; i < 64 ; ++i)
Rreg[rs1][i] = Freg[rd][i];
}
| 15.076923 | 43 | 0.642857 | vinodganesan |
517089bb21af2202511875938970efe499b93c99 | 2,469 | cpp | C++ | 2021day21/run.cpp | AntonJoha/AdventOfCode | 3349f789adf3dc1d8062d56ba3efb20fbb0ee335 | [
"MIT"
] | null | null | null | 2021day21/run.cpp | AntonJoha/AdventOfCode | 3349f789adf3dc1d8062d56ba3efb20fbb0ee335 | [
"MIT"
] | null | null | null | 2021day21/run.cpp | AntonJoha/AdventOfCode | 3349f789adf3dc1d8062d56ba3efb20fbb0ee335 | [
"MIT"
] | null | null | null | #include "run.h"
#include <iostream>
#define STARTONE 1
#define STARTTWO 7
//FIRST PROBLEM HERE
#ifdef FIRST
#define MAXSIZE 10
#define WINNING 1000
std::string run::solve(std::ifstream* file){
unsigned int point1 = 0;
unsigned int point2 = 0;
unsigned int pos1 = STARTONE;
unsigned int pos2 = STARTTWO;
unsig... | 16.243421 | 141 | 0.617659 | AntonJoha |
5170919522b3f04f6b03e3ee51c44c1cace9b9be | 1,244 | hpp | C++ | SummaryDlg.hpp | chrisoldwood/UTSvrBrowser | 341d8b09afdcab5a296df6f074cae47c10637f0f | [
"MIT"
] | 3 | 2017-08-17T15:10:43.000Z | 2021-02-27T04:47:49.000Z | SummaryDlg.hpp | chrisoldwood/UTSvrBrowser | 341d8b09afdcab5a296df6f074cae47c10637f0f | [
"MIT"
] | null | null | null | SummaryDlg.hpp | chrisoldwood/UTSvrBrowser | 341d8b09afdcab5a296df6f074cae47c10637f0f | [
"MIT"
] | null | null | null | /******************************************************************************
** (C) Chris Oldwood
**
** MODULE: SUMMARYDLG.HPP
** COMPONENT: The Application
** DESCRIPTION: The CSummaryDlg class declaration.
**
*******************************************************************************
*/
// Check for previous... | 18.028986 | 79 | 0.410772 | chrisoldwood |
5173e92a9eb31c020877e4977fa7b300b03d04e5 | 14,528 | cpp | C++ | src/server/qgsserver.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/server/qgsserver.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/server/qgsserver.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
qgsserver.cpp
A server application supporting WMS / WFS / WCS
-------------------
begin : July 04, 2006
copyright : (C) 2006 by Marco Hugentobler & Ionu... | 34.755981 | 162 | 0.677657 | dyna-mis |
517a331d2e94d35e5628b728cf86f2f6feaa6f64 | 1,724 | cpp | C++ | Chapter11/clang-plugin/NamingPlugin.cpp | PacktPublishing/Learn-LLVM-12 | e53e4ce5ecabeecc42a61acad9b707e3424dc472 | [
"MIT"
] | 149 | 2021-04-24T05:39:42.000Z | 2022-03-31T02:02:39.000Z | Chapter11/clang-plugin/NamingPlugin.cpp | PacktPublishing/Learn-LLVM-12 | e53e4ce5ecabeecc42a61acad9b707e3424dc472 | [
"MIT"
] | 7 | 2021-06-03T00:44:13.000Z | 2022-01-06T23:05:50.000Z | Chapter11/clang-plugin/NamingPlugin.cpp | PacktPublishing/Learn-LLVM-9 | e53e4ce5ecabeecc42a61acad9b707e3424dc472 | [
"MIT"
] | 42 | 2021-05-18T11:41:05.000Z | 2022-03-29T02:11:53.000Z |
#include "clang/AST/ASTConsumer.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendPluginRegistry.h"
using namespace clang;
namespace {
class NamingASTConsumer : public ASTConsumer {
CompilerInstance &CI;
public:
NamingASTConsumer(CompilerInstance &CI) : CI(CI) {}
bool HandleTop... | 26.9375 | 56 | 0.614849 | PacktPublishing |
517baa146ec5a67f6b1353188db116e52cd8b024 | 2,861 | hpp | C++ | libtbag/tiled/details/TmxImageLayer.hpp | osom8979/tbag | c31e2d884907d946df0836a70d8d5d69c4bf3c27 | [
"MIT"
] | 21 | 2016-04-05T06:08:41.000Z | 2022-03-28T10:20:22.000Z | libtbag/tiled/details/TmxImageLayer.hpp | osom8979/tbag | c31e2d884907d946df0836a70d8d5d69c4bf3c27 | [
"MIT"
] | null | null | null | libtbag/tiled/details/TmxImageLayer.hpp | osom8979/tbag | c31e2d884907d946df0836a70d8d5d69c4bf3c27 | [
"MIT"
] | 2 | 2019-07-16T00:37:21.000Z | 2021-11-10T06:14:09.000Z | /**
* @file TmxImageLayer.hpp
* @brief TmxImageLayer class prototype.
* @author zer0
* @date 2019-08-11
*/
#ifndef __INCLUDE_LIBTBAG__LIBTBAG_TILED_DETAILS_TMXIMAGELAYER_HPP__
#define __INCLUDE_LIBTBAG__LIBTBAG_TILED_DETAILS_TMXIMAGELAYER_HPP__
// MS compatible compilers support #pragma once
#if defined(_MS... | 27.509615 | 85 | 0.6669 | osom8979 |
517cdf24c59a46b068950e8bc45dd38309516b2b | 19,361 | cpp | C++ | gsa/wit/COIN/Coin/Test/CoinPackedMatrixTest.cpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 1 | 2019-10-25T05:25:23.000Z | 2019-10-25T05:25:23.000Z | gsa/wit/COIN/Coin/Test/CoinPackedMatrixTest.cpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 2 | 2019-09-04T17:34:59.000Z | 2020-09-16T08:10:57.000Z | gsa/wit/COIN/Coin/Test/CoinPackedMatrixTest.cpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 18 | 2019-07-22T19:01:25.000Z | 2022-03-03T15:36:11.000Z | // Copyright (C) 2000, International Business Machines
// Corporation and others. All Rights Reserved.
#if defined(_MSC_VER)
// Turn off compiler warning about long names
# pragma warning(disable:4786)
#endif
#include <cassert>
#include "CoinFloatEqual.hpp"
#include "CoinPackedVector.hpp"
#include "CoinPackedMatri... | 31.687398 | 103 | 0.469449 | kant |
517d4a1a62061ad5166536ef1e0a5fd4a610adcc | 708 | cpp | C++ | src/plugins/monocle/plugins/dik/util.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/monocle/plugins/dik/util.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/monocle/plugins/dik/util.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | 22.83871 | 83 | 0.538136 | Maledictus |
517dc23312aef835ebeb65f481f6b9e7f0cfea00 | 18,480 | cpp | C++ | src/editor/BMC-Editor.midi.utility.cpp | neroroxxx/BMC | ec85174f5398e548c829821f75a14edfeabfecf1 | [
"MIT"
] | 36 | 2020-07-16T02:19:21.000Z | 2022-03-21T22:11:41.000Z | src/editor/BMC-Editor.midi.utility.cpp | neroroxxx/BMC | ec85174f5398e548c829821f75a14edfeabfecf1 | [
"MIT"
] | 1 | 2021-11-24T05:49:19.000Z | 2021-11-24T15:01:57.000Z | src/editor/BMC-Editor.midi.utility.cpp | neroroxxx/BMC | ec85174f5398e548c829821f75a14edfeabfecf1 | [
"MIT"
] | null | null | null | /*
See https://www.RoxXxtar.com/bmc for more details
Copyright (c) 2020 RoxXxtar.com
Licensed under the MIT license.
See LICENSE file in the project root for full license information.
*/
#include "editor/BMC-Editor.h"
void BMCEditor::utilityCommand(){
dataForBMC.reset();
if(dataForBMC.set(isWriteMessage(),... | 29.010989 | 93 | 0.695238 | neroroxxx |
517efa2467c899b605c19800a56ab2b618abba44 | 8,412 | cpp | C++ | newweb/browser/render_process/webengine/dom/Document.cpp | cauthu/shadow-browser-plugin | e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298 | [
"BSD-3-Clause"
] | null | null | null | newweb/browser/render_process/webengine/dom/Document.cpp | cauthu/shadow-browser-plugin | e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298 | [
"BSD-3-Clause"
] | null | null | null | newweb/browser/render_process/webengine/dom/Document.cpp | cauthu/shadow-browser-plugin | e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298 | [
"BSD-3-Clause"
] | null | null | null |
#include <event2/event.h>
#include <strings.h>
#include <boost/bind.hpp>
#include "../../../../utility/easylogging++.h"
#include "../../../../utility/common.hpp"
#include "../../../../utility/folly/ScopeGuard.h"
#include "Document.hpp"
#include "../webengine.hpp"
#include "../events/EventTypeNames.hpp"
#include "../... | 26.620253 | 98 | 0.666429 | cauthu |
5183065061469c4b6fdb4010bde946649fdbeff5 | 1,487 | cpp | C++ | src/search/searchdata.cpp | l1422586361/vnote | 606dcef16f882350cc2be2fd108625894d13143b | [
"MIT"
] | 1 | 2021-09-13T04:38:27.000Z | 2021-09-13T04:38:27.000Z | src/search/searchdata.cpp | micalstanley/vnote-1 | 606dcef16f882350cc2be2fd108625894d13143b | [
"MIT"
] | null | null | null | src/search/searchdata.cpp | micalstanley/vnote-1 | 606dcef16f882350cc2be2fd108625894d13143b | [
"MIT"
] | null | null | null | #include "searchdata.h"
#include <QJsonObject>
using namespace vnotex;
SearchOption::SearchOption()
: m_objects(SearchObject::SearchName | SearchObject::SearchContent),
m_targets(SearchTarget::SearchFile | SearchTarget::SearchFolder)
{
}
QJsonObject SearchOption::toJson() const
{
QJsonObject obj;
... | 30.979167 | 76 | 0.68191 | l1422586361 |
3d5ffe41d3f816c7d51e08c18ec2dc430aaa3e70 | 9,469 | hpp | C++ | include/pokemaze/util/algebra/Matrices.hpp | williamniemiec/PokeMaze | f5e8376cfd536610e432725d0c4f7c4474238b5b | [
"0BSD"
] | null | null | null | include/pokemaze/util/algebra/Matrices.hpp | williamniemiec/PokeMaze | f5e8376cfd536610e432725d0c4f7c4474238b5b | [
"0BSD"
] | null | null | null | include/pokemaze/util/algebra/Matrices.hpp | williamniemiec/PokeMaze | f5e8376cfd536610e432725d0c4f7c4474238b5b | [
"0BSD"
] | null | null | null | #pragma once
#include <cstdio>
#include <cstdlib>
#include <glm/mat4x4.hpp>
#include <glm/vec4.hpp>
#include <glm/gtc/matrix_transform.hpp>
namespace pokemaze { namespace util { namespace algebra {
/**
* Responsible for performing matrix operations.
*/
class Matrices
{
//-------------------... | 35.07037 | 103 | 0.498363 | williamniemiec |
3d608433952d01a65822d48f19c38e763ebce34c | 168 | cpp | C++ | isode++/code/iso/itu/osi/als/tsap/tpdu/CC.cpp | Kampbell/ISODE | 37f161e65f11348ef6fca2925d399d611df9f31b | [
"Apache-2.0"
] | 3 | 2016-01-18T17:00:00.000Z | 2021-06-25T03:18:13.000Z | isode++/code/iso/itu/osi/als/tsap/tpdu/CC.cpp | Kampbell/ISODE | 37f161e65f11348ef6fca2925d399d611df9f31b | [
"Apache-2.0"
] | null | null | null | isode++/code/iso/itu/osi/als/tsap/tpdu/CC.cpp | Kampbell/ISODE | 37f161e65f11348ef6fca2925d399d611df9f31b | [
"Apache-2.0"
] | null | null | null | /*
* CC.cpp
*
* Created on: 29 juil. 2014
* Author: FrancisANDRE
*/
#include "als/tsap/tpdu/CC.h"
namespace ALS {
namespace TSAP {
namespace TPDU {
}
}
}
| 9.882353 | 29 | 0.60119 | Kampbell |
3d640ab8ac368d076aa3a34db363bad6f3a6c4e5 | 10,418 | cpp | C++ | common/src/algo_factory/algo_factory.cpp | ane-community/botan-crypto-ane | 71056f5f0d5fd706e6d42e2f7ec0f7f55d86fb74 | [
"MIT"
] | 5 | 2018-01-03T06:43:07.000Z | 2020-07-30T13:15:29.000Z | common/src/algo_factory/algo_factory.cpp | ane-community/botan-crypto-ane | 71056f5f0d5fd706e6d42e2f7ec0f7f55d86fb74 | [
"MIT"
] | null | null | null | common/src/algo_factory/algo_factory.cpp | ane-community/botan-crypto-ane | 71056f5f0d5fd706e6d42e2f7ec0f7f55d86fb74 | [
"MIT"
] | 2 | 2019-11-04T02:54:49.000Z | 2020-04-24T17:50:46.000Z | /*
* Algorithm Factory
* (C) 2008-2010 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/algo_factory.h>
#include <botan/internal/algo_cache.h>
#include <botan/internal/stl_util.h>
#include <botan/engine.h>
#include <botan/exceptn.h>
#include <botan/block_cipher.h>
#include <botan/str... | 29.596591 | 82 | 0.637934 | ane-community |
3d64a056be5621c19644728ac7b032c6a8a76f9c | 2,440 | cpp | C++ | emulator/src/devices/cpu/sh/sh7604_wdt.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/devices/cpu/sh/sh7604_wdt.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/devices/cpu/sh/sh7604_wdt.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Angelo Salese
/***************************************************************************
SH7604 Watchdog Timer Controller
TODO:
- Host CPU setter (clock and callback for irq and reset lines);
- memory map (needs to verify if ID write is ok);
********************... | 29.047619 | 117 | 0.458607 | rjw57 |
3d674e75f4301f260f133e265014501c3167b91e | 20,853 | cpp | C++ | module/mpc-be/SRC/src/filters/source/SubtitleSource/SubtitleSource.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | module/mpc-be/SRC/src/filters/source/SubtitleSource/SubtitleSource.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | module/mpc-be/SRC/src/filters/source/SubtitleSource/SubtitleSource.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | /*
* (C) 2003-2006 Gabest
* (C) 2006-2020 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE 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 3 of the License, or
* (at your opt... | 26.06625 | 147 | 0.714669 | 1aq |
3d6b7d93ea70ca5f0d91a162cb8c03dc2179ee6c | 1,496 | cc | C++ | src/Queue/lockFreeQueue.cc | josebrandao13/MDTs | 923251280beebb10127c5216c2ef6d7789261e94 | [
"MIT"
] | null | null | null | src/Queue/lockFreeQueue.cc | josebrandao13/MDTs | 923251280beebb10127c5216c2ef6d7789261e94 | [
"MIT"
] | null | null | null | src/Queue/lockFreeQueue.cc | josebrandao13/MDTs | 923251280beebb10127c5216c2ef6d7789261e94 | [
"MIT"
] | null | null | null | #include <boost/lockfree/queue.hpp>
#include <boost/thread/thread.hpp>
#include <thread>
#include <iostream>
#define LOOP 500000
#define BENCH_RUNS 5
using namespace std;
boost::lockfree::queue<int> q{LOOP};
vector<int> NTHREADS;
int poped;
void lockFree(){
for (int i=0; i < LOOP; i++){
q.push(i);
if... | 22.666667 | 71 | 0.556818 | josebrandao13 |
3d6dd30c1e48578bce39c83660ffea14e92d3371 | 3,227 | cpp | C++ | ordered_set.cpp | shiningflash/Advance-Data-Structure | 87f1813c5bcfb2ad77b8f1f2d8f0259d3f87371a | [
"MIT"
] | 3 | 2020-11-09T18:36:48.000Z | 2020-12-31T03:51:08.000Z | ordered_set.cpp | shiningflash/data-structure | 87f1813c5bcfb2ad77b8f1f2d8f0259d3f87371a | [
"MIT"
] | null | null | null | ordered_set.cpp | shiningflash/data-structure | 87f1813c5bcfb2ad77b8f1f2d8f0259d3f87371a | [
"MIT"
] | 3 | 2019-04-30T22:11:19.000Z | 2020-04-11T18:34:27.000Z | /*
+> Ordered set is a policy based data structure in g++ that keeps the unique elements in sorted order.
It performs all the operations as performed by the set data structure in STL in log(n) complexity
and performs two additional operations also in log(n) complexity.
- order_of_key (k) : Number of items strictly sm... | 30.158879 | 156 | 0.693214 | shiningflash |
3d6f0857c27d0df23cf4ec4b97b2490c8e3547fe | 1,590 | hpp | C++ | src/config.hpp | IronySuzumiya/NiuDianNao | b6c157807129653e8d9e46238dff80a230ff4928 | [
"MIT"
] | 6 | 2019-03-05T07:49:09.000Z | 2022-01-20T21:45:53.000Z | src/config.hpp | IronySuzumiya/NiuDianNao | b6c157807129653e8d9e46238dff80a230ff4928 | [
"MIT"
] | null | null | null | src/config.hpp | IronySuzumiya/NiuDianNao | b6c157807129653e8d9e46238dff80a230ff4928 | [
"MIT"
] | 2 | 2019-03-05T02:23:28.000Z | 2022-01-20T22:14:54.000Z | #ifndef __DNN_CONFIG__
#define __DNN_CONFIG__
#include "option_parser.hpp"
class DnnConfig {
public:
DnnConfig() {};
~DnnConfig() {};
void reg_options(option_parser_t opp);
// Bit-width
unsigned bit_width;
// Pipeline stage buffer size
unsigned max_buffer_siz... | 22.714286 | 106 | 0.664151 | IronySuzumiya |
3d6f50e094123507a09b9784d36d9a35c3bf0f29 | 2,157 | cpp | C++ | modules/OCULUS/external/oculusSDK/LibOVRKernel/Src/Kernel/OVR_Rand.cpp | Mithsen/Gallbladder | 981cec68ca9e9af8613a6bf5a71048f86c16a070 | [
"BSD-3-Clause"
] | 3 | 2016-01-18T06:15:18.000Z | 2016-05-23T22:21:16.000Z | modules/OCULUS/external/oculusSDK/LibOVRKernel/Src/Kernel/OVR_Rand.cpp | Mithsen/Gallbladder | 981cec68ca9e9af8613a6bf5a71048f86c16a070 | [
"BSD-3-Clause"
] | null | null | null | modules/OCULUS/external/oculusSDK/LibOVRKernel/Src/Kernel/OVR_Rand.cpp | Mithsen/Gallbladder | 981cec68ca9e9af8613a6bf5a71048f86c16a070 | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************
Filename : OVR_Rand.cpp
Content : Random number generator
Created : Aug 28, 2014
Author : Chris Taylor
Copyright : Copyright 2014 Oculus VR, Inc. All Rights reserved.
Licensed under the Oculus VR Rift SDK License ... | 26.9625 | 85 | 0.634678 | Mithsen |
3d72496566cba8a43ec58fa6b46a0c16ae1a5f8f | 3,791 | cpp | C++ | src/osvr/Common/CommonComponent.cpp | stephengroat/OSVR-Core | 35e0967b18c8d6cb4caa152ebcbcb6cc473c9bf1 | [
"Apache-2.0"
] | 369 | 2015-03-08T03:12:41.000Z | 2022-02-08T22:15:39.000Z | src/osvr/Common/CommonComponent.cpp | DavidoRotho/OSVR-Core | b2fbb44e7979d9ebdf4bd8f00267cc267edbb465 | [
"Apache-2.0"
] | 486 | 2015-03-09T13:29:00.000Z | 2020-10-16T00:41:26.000Z | src/osvr/Common/CommonComponent.cpp | DavidoRotho/OSVR-Core | b2fbb44e7979d9ebdf4bd8f00267cc267edbb465 | [
"Apache-2.0"
] | 166 | 2015-03-08T12:03:56.000Z | 2021-12-03T13:56:21.000Z | /** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 L... | 33.548673 | 80 | 0.666843 | stephengroat |
3d73f71afaf2e57b2d8224491cd80507a053becb | 22,080 | cpp | C++ | src/fred2/campaigneditordlg.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 1 | 2020-07-14T07:29:18.000Z | 2020-07-14T07:29:18.000Z | src/fred2/campaigneditordlg.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 2 | 2019-01-01T22:35:56.000Z | 2022-03-14T07:34:00.000Z | src/fred2/campaigneditordlg.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 2 | 2021-03-07T11:40:42.000Z | 2021-12-26T21:40:39.000Z | /*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on
* the source.
*/
// CampaignEditorDlg.cpp : implementation file
//
#include <setjmp.h>
#inclu... | 24.949153 | 163 | 0.71721 | ptitSeb |
3d75c6be53f8faf936c05a7ea8f4ebbaa3cf55d7 | 10,769 | hpp | C++ | rapi_core/include/core/port.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | rapi_core/include/core/port.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | rapi_core/include/core/port.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <cassert>
#include <condition_variable>
#include <deque>
#include <functional>
#include <limits>
#include <map>
#include <memory>
#include <mutex>
#include <iostream>
#include "adstlog_cxx/adstlog.hpp"
#include "adstutil_cxx/compiler_diagnostics.hpp"
#include "core/impl/asy... | 34.73871 | 116 | 0.642957 | csitarichie |
3d76b3c08ae3f2a41530a971feadd39696ef51a6 | 374 | hpp | C++ | lib/include/messages/at.hpp | WojciechMigda/TCO-Ringbeller | 8447e6ff44bba84b85250bdd3905180fcf1a96aa | [
"MIT"
] | null | null | null | lib/include/messages/at.hpp | WojciechMigda/TCO-Ringbeller | 8447e6ff44bba84b85250bdd3905180fcf1a96aa | [
"MIT"
] | null | null | null | lib/include/messages/at.hpp | WojciechMigda/TCO-Ringbeller | 8447e6ff44bba84b85250bdd3905180fcf1a96aa | [
"MIT"
] | null | null | null | #pragma once
#ifndef LIB_INCLUDE_MESSAGES_AT_HPP_
#define LIB_INCLUDE_MESSAGES_AT_HPP_
#include "create.hpp"
#include "message.hpp"
namespace Ringbeller
{
/*
* Prepare "AT" command
*/
template<typename Body = string_body>
basic_request<Body> make_at()
{
return make_basic<Body>("", "");
}
} // namespace R... | 13.357143 | 41 | 0.729947 | WojciechMigda |
3d7869bd5c391ebe2d762a9c9e55ea7f6c9dd705 | 2,884 | cc | C++ | CondFormats/PhysicsToolsObjects/test/SiStripDeDx2DReader.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | CondFormats/PhysicsToolsObjects/test/SiStripDeDx2DReader.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | CondFormats/PhysicsToolsObjects/test/SiStripDeDx2DReader.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #ifndef SiStripDeDx2DReader_H
#define SiStripDeDx2DReader_H
// system include files
//#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Event... | 34.746988 | 120 | 0.679612 | ckamtsikis |
3d7a945d5c2782cee1353075fa0211fbc70be92d | 3,371 | cpp | C++ | 2JCIE-EV01/OPT3001DNP.cpp | takjn/GRMOmronTest | 26478958be0c623ac8c1cbc9bbfd607f7c9bf245 | [
"MIT"
] | null | null | null | 2JCIE-EV01/OPT3001DNP.cpp | takjn/GRMOmronTest | 26478958be0c623ac8c1cbc9bbfd607f7c9bf245 | [
"MIT"
] | null | null | null | 2JCIE-EV01/OPT3001DNP.cpp | takjn/GRMOmronTest | 26478958be0c623ac8c1cbc9bbfd607f7c9bf245 | [
"MIT"
] | 1 | 2020-02-14T06:49:41.000Z | 2020-02-14T06:49:41.000Z | // SPDX-License-Identifier: MIT
/*
* MIT License
* Copyright (c) 2019, 2018 - present OMRON Corporation
* Copyright (c) 2019 Renesas Electronics Corporation
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation file... | 27.185484 | 78 | 0.677544 | takjn |
3d7b0b4c14ef977d5aad1ddab068dd5a80480113 | 18,514 | hh | C++ | Kaskade/io/lossystorageDUNE.hh | chenzongxiong/streambox | 76f95780d1bf6c02731e39d8ac73937cea352b95 | [
"Unlicense"
] | 3 | 2019-07-03T14:03:31.000Z | 2021-12-19T10:18:49.000Z | Kaskade/io/lossystorageDUNE.hh | chenzongxiong/streambox | 76f95780d1bf6c02731e39d8ac73937cea352b95 | [
"Unlicense"
] | 6 | 2020-02-17T12:01:31.000Z | 2021-12-09T22:02:36.000Z | Kaskade/io/lossystorageDUNE.hh | chenzongxiong/streambox | 76f95780d1bf6c02731e39d8ac73937cea352b95 | [
"Unlicense"
] | 2 | 2020-12-03T04:41:18.000Z | 2021-01-11T21:44:42.000Z | #ifndef LOSSYSTORAGEDUNE_HH
#define LOSSYSTORAGEDUNE_HH
#include <map>
#include <cassert>
#include "dune/grid/common/grid.hh"
#include "dune/grid/common/entitypointer.hh"
#include "dune/grid/common/entity.hh"
#include "dune/grid/io/file/dgfparser/dgfparser.hh"
#include "dune/istl/matrix.hh"
#include "dune/istl/bcrsma... | 30.35082 | 128 | 0.633737 | chenzongxiong |
3d7b49ae1d91f630dd24ca58761b05eec3f2eb85 | 841 | cpp | C++ | Leetcode/Coding Interviews/56_01_Single_Numbers.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | 1 | 2019-11-26T11:52:25.000Z | 2019-11-26T11:52:25.000Z | Leetcode/Coding Interviews/56_01_Single_Numbers.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | Leetcode/Coding Interviews/56_01_Single_Numbers.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | /*
一个整型数组 nums 里除两个数字之外,其他数字都出现了两次。请写程序找出这两个只出现一次的数字。
要求时间复杂度是O(n),空间复杂度是O(1)。
示例 1:
输入:nums = [4,1,4,6]
输出:[1,6] 或 [6,1]
示例 2:
输入:nums = [1,2,10,4,1,4,3,3]
输出:[2,10] 或 [10,2]
限制:
2 <= nums <= 10000
*/
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<int> singleNum... | 21.564103 | 148 | 0.525565 | ZR-Huang |
3d7dc2702f89d2573a9aa8f59d12c1217bcd3428 | 2,199 | hpp | C++ | plugins/history_plugin/include/eosio/history_plugin/public_key_history_object.hpp | linapex/eos-chinese | 33539709c30940b6489cec1ed2d982ff76da5cc5 | [
"MIT"
] | null | null | null | plugins/history_plugin/include/eosio/history_plugin/public_key_history_object.hpp | linapex/eos-chinese | 33539709c30940b6489cec1ed2d982ff76da5cc5 | [
"MIT"
] | null | null | null | plugins/history_plugin/include/eosio/history_plugin/public_key_history_object.hpp | linapex/eos-chinese | 33539709c30940b6489cec1ed2d982ff76da5cc5 | [
"MIT"
] | null | null | null |
//<developer>
// <name>linapex 曹一峰</name>
// <email>linapex@163.com</email>
// <wx>superexc</wx>
// <qqgroup>128148617</qqgroup>
// <url>https://jsq.ink</url>
// <role>pku engineer</role>
// <date>2019-03-16 19:44:17</date>
//</624457052034437120>
/*
*@文件
*@eos/license中定义的版权
**/
#pragma once
... | 31.869565 | 126 | 0.740791 | linapex |
3d80126b6396cea31dd30fb9995176cb44122e00 | 280 | hpp | C++ | ch5/stack5assign.hpp | silenc3502/cpp_examples | cee147ac92e68c9086b7a2465e8fe360d3a594dd | [
"MIT"
] | null | null | null | ch5/stack5assign.hpp | silenc3502/cpp_examples | cee147ac92e68c9086b7a2465e8fe360d3a594dd | [
"MIT"
] | null | null | null | ch5/stack5assign.hpp | silenc3502/cpp_examples | cee147ac92e68c9086b7a2465e8fe360d3a594dd | [
"MIT"
] | null | null | null | template <typename T>
template <typename T2>
Stack<T>& Stack<T>::operator=(Stack<T2> const& op2) {
if((void*)this == (void*)&op2) {
return *this;
}
Stack<T2> tmp(op2);
elems.clear();
while (!tmp.empty()) {
elems.push_front(tmp.top());
tmp.pop();
}
return *this;
}
| 15.555556 | 53 | 0.607143 | silenc3502 |
3d8369e2d74a6da787ed278e972c1233294725a3 | 1,117 | cpp | C++ | oclint-core/lib/RuleBase.cpp | BGU-AiDnD/oclint | 484fed44ca0e34532745b3d4f04124cbf5bb42fa | [
"BSD-3-Clause"
] | 3,128 | 2015-01-01T06:00:31.000Z | 2022-03-29T23:43:20.000Z | oclint-core/lib/RuleBase.cpp | BGU-AiDnD/oclint | 484fed44ca0e34532745b3d4f04124cbf5bb42fa | [
"BSD-3-Clause"
] | 432 | 2015-01-03T15:43:08.000Z | 2022-03-29T02:32:48.000Z | oclint-core/lib/RuleBase.cpp | BGU-AiDnD/oclint | 484fed44ca0e34532745b3d4f04124cbf5bb42fa | [
"BSD-3-Clause"
] | 454 | 2015-01-06T03:11:12.000Z | 2022-03-22T05:49:38.000Z | #include "oclint/RuleBase.h"
using namespace oclint;
void RuleBase::takeoff(RuleCarrier *carrier)
{
_carrier = carrier;
apply();
}
const std::string RuleBase::attributeName() const
{
return name();
}
const std::string RuleBase::identifier() const
{
std::string copy = name();
if (copy.empty())
... | 18.616667 | 77 | 0.59803 | BGU-AiDnD |
3d8535d3e6a7fd259ed2c5d332e77902c3c882e5 | 6,902 | cc | C++ | test/gtest/uct/test_ib.cc | abouteiller/ucx | f4196de7b4be0a78412d548a025d46ec3163767a | [
"BSD-3-Clause"
] | null | null | null | test/gtest/uct/test_ib.cc | abouteiller/ucx | f4196de7b4be0a78412d548a025d46ec3163767a | [
"BSD-3-Clause"
] | null | null | null | test/gtest/uct/test_ib.cc | abouteiller/ucx | f4196de7b4be0a78412d548a025d46ec3163767a | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (C) Mellanox Technologies Ltd. 2001-2014. ALL RIGHTS RESERVED.
* Copyright (C) UT-Battelle, LLC. 2014. ALL RIGHTS RESERVED.
* See file LICENSE for terms.
*/
extern "C" {
#include <poll.h>
#include <uct/api/uct.h>
#include <ucs/time/time.h>
#include <uct/ib/base/ib_device.h>
#include <uct/ib/base/ib_if... | 31.230769 | 106 | 0.619096 | abouteiller |
3d85a355c011f71f3f8f59494c3b6a539c6ba3c6 | 6,869 | cpp | C++ | src/Huffman.cpp | taleroangel/ProyeccionesEDD | d246dc22776fca09b2a36c82b3db682f3af3a155 | [
"MIT"
] | null | null | null | src/Huffman.cpp | taleroangel/ProyeccionesEDD | d246dc22776fca09b2a36c82b3db682f3af3a155 | [
"MIT"
] | null | null | null | src/Huffman.cpp | taleroangel/ProyeccionesEDD | d246dc22776fca09b2a36c82b3db682f3af3a155 | [
"MIT"
] | null | null | null | #include "Huffman.h"
#include <cstdlib>
#include <cstring>
#include <exception>
#include <fstream>
#include <map>
#include <queue>
#include <sstream>
#include <stdexcept>
#include <string>
#include <utility>
#include "ArbolCodificacion.hxx"
#include "CodigoElemento.hxx"
#include "Imagen.h"
#include "NodoCodificacion.... | 31.081448 | 78 | 0.579706 | taleroangel |
3d85a65106b3b1cbf38d423250ae88c711eb6ae9 | 22,475 | cpp | C++ | Blizzlike/ArcEmu/C++/Battlegrounds/StrandOfTheAncient.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/ArcEmu/C++/Battlegrounds/StrandOfTheAncient.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/ArcEmu/C++/Battlegrounds/StrandOfTheAncient.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* ArcEmu MMORPG Server
* Copyright (C) 2008-2011 <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later versi... | 30.127346 | 153 | 0.703671 | 499453466 |
3d863b82983aeee62a5aacb13b2ba80e00c330b0 | 2,932 | cc | C++ | tests/test_routing_table2.cc | telosprotocol/xkad | f3591d5544bf26ba486cb4a7f141d9500422206e | [
"MIT"
] | 13 | 2019-09-16T13:34:35.000Z | 2020-01-13T08:06:17.000Z | tests/test_routing_table2.cc | telosprotocol/xkad | f3591d5544bf26ba486cb4a7f141d9500422206e | [
"MIT"
] | null | null | null | tests/test_routing_table2.cc | telosprotocol/xkad | f3591d5544bf26ba486cb4a7f141d9500422206e | [
"MIT"
] | null | null | null | // Copyright (c) 2017-2019 Telos Foundation & contributors
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <stdio.h>
#include <string.h>
#include <string>
#include <memory>
#include <fstream>
#include <gtest/gtest.h>
... | 27.401869 | 75 | 0.731924 | telosprotocol |
3d87c5e1fe983ea58070d1ad289737234e5e097d | 2,452 | cpp | C++ | src/datastructures/LinkedList.cpp | tkaleas/cpp-sandbox | 9501619421edc8ced6023ab6b83908c43b26f134 | [
"MIT"
] | 1 | 2019-12-13T03:39:57.000Z | 2019-12-13T03:39:57.000Z | src/datastructures/LinkedList.cpp | tkaleas/cpp-sandbox | 9501619421edc8ced6023ab6b83908c43b26f134 | [
"MIT"
] | null | null | null | src/datastructures/LinkedList.cpp | tkaleas/cpp-sandbox | 9501619421edc8ced6023ab6b83908c43b26f134 | [
"MIT"
] | null | null | null | #include "LinkedList.h"
#include <sstream>
SinglyLinkedList::SinglyLinkedList() :
head(nullptr)
{
}
SinglyLinkedList::SinglyLinkedList(int startValue):
head(new ListNode(startValue))
{
}
SinglyLinkedList::~SinglyLinkedList()
{
this->clearList();
delete head;
}
void SinglyLinkedList::clearList() {
}... | 17.89781 | 74 | 0.633768 | tkaleas |
3d89f6dcde802a8916d36a1458bb44f2f1f00192 | 1,772 | cc | C++ | libinternalfield/test/test.cc | mattkjames7/libinternalfield | 3b590c278b59c600a8b3d9d532e466b6a54433e1 | [
"MIT"
] | null | null | null | libinternalfield/test/test.cc | mattkjames7/libinternalfield | 3b590c278b59c600a8b3d9d532e466b6a54433e1 | [
"MIT"
] | null | null | null | libinternalfield/test/test.cc | mattkjames7/libinternalfield | 3b590c278b59c600a8b3d9d532e466b6a54433e1 | [
"MIT"
] | null | null | null | #include "test.h"
int main() {
/* some input coordinates to test a few models with */
std::array<double,16> r = {3,3,3,3, 3,3,3,3, 3,3,3,3, 3,3,3,3};
std::array<double,16> tdeg = {10,10,10,10,55,55,55,55,90,90,90,90,130,130,130,130};
std::array<double,16> pdeg = {0,27,180,340, 0,27,180,340, 0,27,180,340, 0,27,18... | 26.058824 | 109 | 0.549097 | mattkjames7 |
3d8b9179a7bc8e45d7a7a15a1fa954ca8e555e82 | 4,822 | cpp | C++ | P9/BST/main.cpp | summerwish/DataStructure_homework | 7ba86f69edd413643679aba3cf9da5e987b14055 | [
"MIT"
] | null | null | null | P9/BST/main.cpp | summerwish/DataStructure_homework | 7ba86f69edd413643679aba3cf9da5e987b14055 | [
"MIT"
] | null | null | null | P9/BST/main.cpp | summerwish/DataStructure_homework | 7ba86f69edd413643679aba3cf9da5e987b14055 | [
"MIT"
] | null | null | null | //
// main.cpp
// BST
//
// Created by Breezewish on 11/24/14.
// Copyright (c) 2014 BW. All rights reserved.
//
#include <iostream>
#include <string>
using namespace std;
class Node
{
public:
int key;
int n;
Node* left;
Node* right;
Node(int k):key(k),n(1),left(NULL),right(NULL){};
};
void ... | 24.602041 | 71 | 0.421609 | summerwish |