text stringlengths 54 60.6k |
|---|
<commit_before>/**
* @file measurement_systen_node.cpp
* @author Izabella Thais Oliveira Gomes
* @date 23/09/2016
*
* @attention Copyright (C) 2014 UnBall Robot Soccer Team
*
* @brief Rotate robot position datas acording to camera position in the vision and simulator and publishes that.
*
*/
#include <vect... |
<commit_before>#include "dll/dbn.hpp"
template<typename DBN>
void test_dbn(){
DBN dbn;
dbn.display();
std::vector<vector<double>> images;
std::vector<vector<double>> labels;
dbn.pretrain(images, 10);
dbn.fine_tune(images, labels, 10, 10);
}
template <typename RBM>
using pcd2_trainer_t = dll... |
<commit_before>// Copyright (c) 2010 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 "chrome/browser/chromeos/cros/cryptohome_library.h"
#include "base/hash_tables.h"
#include "base/message_loop.h"
#include "ch... |
<commit_before>// Copyright (c) 2006-2008 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 <gtk/gtk.h>
#include "base/string_util.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/... |
<commit_before>#include <stdio.h>
#include <stdarg.h>
#include <iostream>
#include <fstream>
#include <string>
#include <list>
#include <memory>
#include <algorithm>
#include <vector>
#include "platform_tizen.h"
#include "platform_gl.h"
#include "urlWorker.h"
#include "log.h"
#include <libgen.h>
#include <unistd.h>
... |
<commit_before>// @(#)root/roostats:$Id$
// Author: Kyle Cranmer 28/07/2008
/*************************************************************************
* Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>#include "LolaAdaptor.h"
using namespace naoth;
LolaAdaptor::LolaAdaptor()
{
// open semaphore to synchronize with NaoController
if((sem = sem_open("motion_trigger", O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0)) == SEM_FAILED)
{
perror("[LolaAdaptor] sem_open");
::exit(-1);
}... |
<commit_before>/*****************************************************************************
* recents.cpp : Recents MRL (menu)
*****************************************************************************
* Copyright © 2008-2014 VideoLAN and VLC authors
* $Id$
*
* Authors: Ludovic Fauvet <etix@l0cal.com>
* ... |
<commit_before>// $Id: elem_refinement.C,v 1.2 2003-05-29 15:54:06 benkirk Exp $
// The Next Great Finite Element Library.
// Copyright (C) 2002 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Licen... |
<commit_before>// $Id$
// The libMesh Finite Element Library.
// Copyright (C) 2002-2008 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// This library 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 Foun... |
<commit_before>/*************************************************************************
*
* $RCSfile: parsersvc.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2003-04-17 13:35:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>// Copyright (c) 2012 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 "base/auto_reset.h"
#include "base/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/json/json_writer.h"
#in... |
<commit_before>//----------------------------------------------------------------------------//
// █ █ //
// ████████ //
// ██ ██ ... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:... |
<commit_before>#include "stdafx.h"
#include "CppUnitTest.h"
#include "../huffman/huffman_tree.hpp"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace unit_test_for_huffman
{
using FrequencyMap = cpr::huffman::FrequencyMap < unsigned char, unsigned long > ;
using HuffmanTree = cpr::huffman::Huf... |
<commit_before><commit_msg>Transform: Remove unused std header.<commit_after><|endoftext|> |
<commit_before>// $Id: ThreadPool.cpp 3045 2010-04-05 13:07:29Z hieuhoang1972 $
/***********************************************************************
Moses - factored phrase-based language decoder
Copyright (C) 2009 University of Edinburgh
This library is free software; you can redistribute it and/or
modify it... |
<commit_before><commit_msg>vcl: cosmetic reident and cleanup of RawBitmap class definition<commit_after><|endoftext|> |
<commit_before>#include "stdafx.h"
#include "../NWindow.h"
namespace nui
{
namespace Ui
{
NWindow::NWindow()
{
}
NWindow::~NWindow()
{
}
NFrame* NWindow::GetRootFrame()
{
if(rootFrame_ == NULL)
{
Base::NI... |
<commit_before>//===--- ToolChain.cpp - Collections of tools for one platform ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include <iostream>
#include <random>
#define SIZEF 500
struct Position{
int x;
int y;
};
using namespace std;
void walk(Position *p,int &board,int size){
//https://stackoverflow.com/questions/5008804/generating-random-integer-from-a-range
random_device rd;
mt19937_64 gen(rd());
//http://e... |
<commit_before><commit_msg>fix windows build<commit_after><|endoftext|> |
<commit_before>/*
Sequence hot to se the PWG1 analysis tasks:
//1. Load libraries if needed:
//
gSystem->Load("/usr/local/grid/XRootd/GSI/lib/libXrdClient.so");
gSystem->Load("libANALYSIS.so");
gSystem->Load("libANALYSISalice.so");
gSystem->Load("libPWG0base.so");
gSystem->Load("libPWG0dep.so");
... |
<commit_before><commit_msg>use LanguageTag<commit_after><|endoftext|> |
<commit_before><commit_msg>WaE: comparison between signed and unsigned integer expressions<commit_after><|endoftext|> |
<commit_before>#pragma once
#include <agency/new_executor_traits.hpp>
#include <agency/future.hpp>
#include <agency/detail/executor_traits/check_for_member_functions.hpp>
#include <type_traits>
#include <iostream>
namespace agency
{
namespace detail
{
namespace new_executor_traits_detail
{
namespace multi_agent_when_... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: oslfile2streamwrap.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2006-06-19 22:53:20 $
*
* The Contents of this file... |
<commit_before>#ifndef PYTHONMULTIMAPPING_INL
#define PYTHONMULTIMAPPING_INL
#include "PythonMultiMapping.h"
namespace sofa {
namespace component {
namespace mapping {
template<class TIn, class TOut>
PythonMultiMapping<TIn, TOut>::PythonMultiMapping() :
matrix(initData(&matrix, "jacobian", "jacobian for the ma... |
<commit_before>//
// Created by everettjf on 2017/7/5.
//
#include "CommonDisplay.h"
#include <iostream>
#include "../util/Utility.h"
#include <libmoex/node/loadcommand.h>
using namespace std;
bool CommonDisplay::Init(const std::string & filepath,bool is_csv){
print_ = BeautyTextPrinterFactory::CreatePrinter(is... |
<commit_before>/******************************************************************************
* Copyright 2017 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 ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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 ... |
<commit_before>// Copyright (c) 2012 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 "net/base/cert_verifier.h"
#include "base/bind.h"
#include "base/file_path.h"
#include "base/format_macros.h"
#include "base/... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_TEST_GRIDS_HH
#define DUNE_GDT_TEST_GRIDS_HH
#include <dune/grid/sgri... |
<commit_before>#include "serial.h"
int main()
{
Serial gps(4800,"/dev/ttyUSB0",false);
std::cout << gps.serialRead(41);
}
<commit_msg>Got rid of getData()<commit_after>#include "serial.h"
int main()
{
Serial gps(4800,"/dev/ttyUSB0",false);
std::cout << gps.serialRead(41) << std::endl;
return 0;
}
<... |
<commit_before>#pragma once
#include <string>
#include <opencv2/core.hpp>
#include <opencv2/core/affine.hpp>
namespace cv
{
typedef std::string String;
namespace viz
{
class CV_EXPORTS Color : public Scalar
{
public:
Color();
Color(double gray);
... |
<commit_before>#include <luabind/detail/typetraits.hpp>
#include <boost/static_assert.hpp>
using namespace luabind::detail;
struct tester {};
void test_type_traits()
{
BOOST_STATIC_ASSERT(is_nonconst_reference<int&>::value);
BOOST_STATIC_ASSERT(!is_nonconst_reference<const int&>::value);
BOOST_STATIC_ASSERT(is_no... |
<commit_before>#include <tiramisu/tiramisu.h>
#include "benchmarks.h"
using namespace tiramisu;
/**
* Benchmark for BLAS GEMV
* out = a*A*x + b*y
*
* A : is a M x N matrix
* x : is a size N vector
* y : is a size M vector
* a,b : are scalars
*
* out : is a size M vector
**
We will ma... |
<commit_before>/***************************************************************************
* mongodb_log_tf.cpp - MongoDB Logger for /tf
*
* Created: Wed Dec 8 17:00:25 2010 -0500
* Copyright 2010 Tim Niemueller [www.niemueller.de]
* 2010 Carnegie Mellon University
* 2010 Intel Lab... |
<commit_before>/*
* Copyright (c) 2013 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. ... |
<commit_before>#include <iostream>
#include <Python.h>
#include "character.h"
using namespace std;
static int error(const std::string & message){
std::cout << message << std::endl;
//PyErr_Print();
return -1;
}
int main(int argc, char ** argv){
if (argc > 1){
Py_Initialize();
... |
<commit_before>// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/utilities/CCopasiMethod.cpp,v $
// $Revision: 1.46 $
// $Name: $
// $Author: jdada $
// $Date: 2007/11/06 15:01:39 $
// End CVS Header
// Copyright (C) 2007 by Pedro Mendes, Virginia Tech Intellectual
// Properti... |
<commit_before> /*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NConnection.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-12-14 09:40:56 $
*
* The Contents of this file are m... |
<commit_before>/** creative_filters.cc -*- C++ -*-
Rémi Attab, 09 Aug 2013
Copyright (c) 2013 Datacratic. All rights reserved.
Registry and implementation of the creative filters.
*/
#include "creative_filters.h"
using namespace std;
using namespace ML;
namespace RTBKIT... |
<commit_before>/** analytics_endpoint.cc -*- C++ -*-
Michael Burkat, 22 Oct 2014
Copyright (c) 2014 Datacratic. All rights reserved.
Analytics endpoint used to log events on different channels.
*/
#include <iostream>
#include <functional>
#include "analytics... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.o... |
<commit_before>#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QDoubleSpinBox>
#include <QSpinBox>
#include <QPushButton>
#include <QMessageBox>
#include <QFuture>
#include <QtConcurrentRun>
#include <QWidget>
#include <QTabWidget>
#include <QDebug>
#include <QLabel>
#include <QRadioButton>
#i... |
<commit_before>// NBNBNBNBNBNBNBNBNBNBNBNBNBNBNBNB
// Any subscriptions/construction with Model Client must
// be before typical user subscriptions - if the same LCM object
// is used. Otherwise it won't be received before handling them
// NBNBNBNBNBNBNBNBNBNBNBNBNBNBNBNB
#include <stdio.h>
#include <sys/time.h>
#inclu... |
<commit_before>// Copyright (c) 2009 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 <gtk/gtk.h>
#include "build/build_config.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/compi... |
<commit_before>#include "rigidBodyManipulatorMexFunctions.h"
#include "RigidBodyManipulator.h"
#include "standardMexConversions.h"
#include <typeinfo>
using namespace std;
using namespace Eigen;
/**
* fromMex specializations
*/
RigidBodyManipulator &fromMex(const mxArray *source, RigidBodyManipulator *) {
return ... |
<commit_before>/*!
* \page LFSTestSuite_cpp Command-Line Test to Demonstrate How To Test the SimLFS Project
* \code
*/
// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// STL
#include <sstream>
#inclu... |
<commit_before>#include <node.h>
#include <v8.h>
#include <string>
#include <iostream>
#include "steamworks-sdk/public/steam/steam_api.h"
#include "steamworks-sdk/public/steam/steam_gameserver.h"
#include "steamworks-sdk/public/steam/isteamremotestorage.h"
using namespace v8;
using namespace std;
struct F... |
<commit_before>/*
* Copyright (C) 2018 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla 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
* (at your op... |
<commit_before>#include <Arduino.h>
#include <SPI.h>
#include <Wire.h>
#include "Sleepy.h"
#include "RFM69_ATC.h"
#include "SPIFlash_Marzogh.h"
#include <EEPROM.h>
#include "Adafruit_MAX31856.h"
#define NODEID 11
#define GATEWAYID 0
#define FREQUENCY RF69_433MHZ //frequency of radio
#define ATC_RSSI -70 //ideal Signal... |
<commit_before>#include "BAMap.h"
#include <Arduboy.h>
#include "BAGlobal.h"
#include "ABMapSprites.h"
void drawMapAtPosition(BAPlayer *player, ABPoint position, bool showShips){
// flip for watrer animation
bool waterAnimationStepped = arduboy.everyXFrames(30);
for(byte mapPosY = 0; mapPosY < GAME_BOARD_S... |
<commit_before>//
// Created by iskakoff on 22/08/16.
//
#include <gtest/gtest.h>
#include "edlib/Hamiltonian.h"
#include "edlib/HubbardModel.h"
#include "edlib/Storage.h"
#include "edlib/EDParams.h"
#include "edlib/StaticObservables.h"
#include "edlib/GreensFunction.h"
#include "edlib/ChiLoc.h"
#ifdef USE_MPI
clas... |
<commit_before>#pragma once
#include <unordered_map>
namespace AGE
{
struct RenderPainter;
struct RenderPipeline
{
std::unordered_map<size_t, RenderPainter> keys;
};
}<commit_msg>culling old file removed<commit_after><|endoftext|> |
<commit_before>/*******************************************************************************
* Copyright (c) 2016, ROBOTIS CO., LTD.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redist... |
<commit_before>#include <gtest/gtest.h>
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
<commit_msg>Add gmock to main fil -User Stroy #8<commit_after>#include <gtest/gtest.h>
#include <gmock/gmock.h>
int main(int argc, char** argv) {
::testing::InitGoogleTest(&... |
<commit_before>// 031. Next Permutation
/**
* Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
*
* If such arrangement is not possible, it must rearrange it as the lowest possible order (ie, sorted in ascending order).
*
* The replacement must be ... |
<commit_before>/*
* Copyright (C) 2007-2013 German Aerospace Center (DLR/SC)
*
* Created: 2014-01-28 Mark Geiger <Mark.Geiger@dlr.de>
*
* 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
*... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2014 Luis B. Barrancos, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to a... |
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <ctime>
#include <f... |
<commit_before>#include <mlopen.h>
#include "test.hpp"
#include <vector>
#include <array>
#include <iterator>
#include <memory>
#include <mlopen/tensor_extra.hpp>
struct handle_fixture
{
mlopenHandle_t handle;
#if MLOPEN_BACKEND_OPENCL
cl_command_queue q;
#endif
handle_fixture()
{
mlopenCreate... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2014 Srinath Ravichandran, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, t... |
<commit_before>// Copyright (c) 2021 by Apex.AI Inc. 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless... |
<commit_before>/*************************************************************************
*
* Copyright 2016 Realm 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.... |
<commit_before>#ifndef VIENNAGRID_METAINFO_HPP
#define VIENNAGRID_METAINFO_HPP
/* =======================================================================
Copyright (c) 2011-2012, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
... |
<commit_before>/**
* \file RLSFilter.cpp
*/
#include "RLSFilter.h"
#include <cstdint>
#include <cstring>
#include <stdexcept>
namespace ATK
{
template<typename DataType_>
RLSFilter<DataType_>::RLSFilter(int64_t size)
:Parent(1, 1), global_size(size), P(PType::Identity(size, size)), w(wType::Zero(size, 1)), m... |
<commit_before>/*=========================================================================
Program: Monteverdi
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/utils/stopreg/p9_stop_data_stru... |
<commit_before>#include "ksp_plugin/journal.hpp"
#include <fstream>
#include <list>
#include <string>
#include <type_traits>
#include "base/array.hpp"
#include "base/get_line.hpp"
#include "base/hexadecimal.hpp"
#include "base/map_util.hpp"
#include "glog/logging.h"
namespace principia {
namespace ksp_plugin {
usin... |
<commit_before>/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SampleSlide.h"
#include "SkCanvas.h"
#include "SkCommonFlags.h"
#include "SkKey.h"
#include "SkOSFile.h"
#include "SkStream.h"
using namespace sk_app;
S... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>
#include "XXX/kernel.h"
#include "XXX/topic.h"
#include "XXX/wamp_session.h"
#include "XXX/wamp_connector.h"
#include "XXX/websocket_protocol.h"
#include "XXX/rawsocket_protocol.h"
#include <iostream>
using namespace XXX;
struct timeout_error : public std::runtime_error
{
timeout_error()
: std:... |
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "geo_location.h"
using vespalib::geo::ZCurve;
namespace search::common {
namespace {
ZCurve::BoundingBox to_z(GeoLocation::Box box) {
return ZCurve::BoundingBox(box.x.low, box.x.high... |
<commit_before>#pragma once
#include <agency/detail/config.hpp>
#include <agency/experimental/array.hpp>
#include <agency/experimental/span.hpp>
#include <type_traits>
#include <iterator>
namespace agency
{
namespace experimental
{
// XXX this is only valid for contiguous containers
template<class Container>
__AGEN... |
<commit_before>#include<iostream.h>
#include<conio.h>
#include<dos.h>
char s[3][3]={" "," "," "};
char p1[15],p2[15]="COMPUTER";
<commit_msg>Create board<commit_after>#include<iostream.h>
#include<conio.h>
#include<dos.h>
char s[3][3]={"123","456","789"};
char p1[15],p2[15]="COMPUTER";
void board()
{
clrscr();
... |
<commit_before>/*
* 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.
*/
#import "SynchronousEventBeat.h"
namespace facebook {
namespace react {
SynchronousEventBeat::SynchronousEventBeat... |
<commit_before>#ifndef _RATIONAL_H
#define _RATIONAL_H
#include <cmath>
#include <cstddef>
#include <iosfwd>
#include <stdexcept>
#include <type_traits>
#include <limits>
#ifndef RATIONAL_NCONSTEXPR
#define CONSTEXPR constexpr
#else
#define CONSTEXPR /* not supported */
#endif
namespace rational {
struct NoRedu... |
<commit_before>#include "cnn/devices.h"
#include <iostream>
#include "cnn/cuda.h"
using namespace std;
namespace cnn {
Device::~Device() {}
#if HAVE_CUDA
Device_GPU::Device_GPU(int mb, int device_id) :
Device(DeviceType::GPU, &gpu_mem), cuda_device_id(device_id), gpu_mem(device_id) {
CUDA_CHECK(cudaSetDevic... |
<commit_before>#ifndef UNIT_CONFIG_HPP_
#define UNIT_CONFIG_HPP_
namespace unit_config {
const float DT = 0.001;
const double PI = 3.14159265358979323846;
// Maximum angular position in the roll and pitch axes (rad)
const float MAX_PITCH_ROLL_POS = 30.0 * PI / 180.0;
// Maximum angular velocity in the roll and pit... |
<commit_before>// The MIT License (MIT)
//
// Copyright (c) 2016 Mustafa Serdar Sanli
// Copyright (c) 2015 Markus Kuhn
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restricti... |
<commit_before><commit_msg>coverity#705773 Resource leak<commit_after><|endoftext|> |
<commit_before>#include <babylon/gamepads/controllers/pose_enabled_controller.h>
#include <babylon/culling/ray.h>
#include <babylon/engines/scene.h>
#include <babylon/interfaces/ibrowser_gamepad.h>
#include <babylon/maths/tmp_vectors.h>
#include <babylon/meshes/abstract_mesh.h>
namespace BABYLON {
PoseEnabledControl... |
<commit_before>
#include <cmath> // for std::abs, std::pow, std::fabs
#include <cstdint> // I dont use int, long, long long etc b/c they are ambiguous
#include <iostream> // for std::cin
#include <fstream> // for std::ifstream
#include <sstream> // for std::istringstream
#include <algorithm> // for std::swap... |
<commit_before>/*
*
* Copyright (c) 2021 Project CHIP 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
*
* http://www.apache.org/l... |
<commit_before>#include "CommonImport.h"
#include "CommonUtilities.h"
#include "CommonMeshUtilities.h"
#include "CommonAlembic.h"
#include <boost/algorithm/string.hpp>
#include <sstream>
bool parseBool(std::string value){
//std::istringstream(valuePair[1]) >> bExportSelected;
if( value.find("true") != std::strin... |
<commit_before>#pragma once
#include "jansson_handle.hpp"
#include "base/exception.hpp"
#include "base/string_utils.hpp"
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
#include <boost/optional.hpp>
#include "3party/jansson/src/jansson.h"
namespace base
{
struct JSONDecRef
{
void operat... |
<commit_before>
#include <cstdlib>
#include <boost/test/unit_test.hpp>
#include <cucumber-cpp/defs.hpp>
#include <QApplication>
#include <QTest>
#include <CalculatorWidget.h>
static int argc = 0;
static QApplication app(argc, 0);
static int milliseconds = -1;
int millisecondsToWait() {
if (milliseconds < 0)
... |
<commit_before>/**
* The MIT License (MIT)
*
* Copyright (c) 2016 Ruben Van Boxem
*
* 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 th... |
<commit_before>#pragma once
#include "manipulator/details/base.hpp"
#include "manipulator/details/types.hpp"
#include <json/json.hpp>
#include <unordered_set>
#include <vector>
namespace krbn {
namespace manipulator {
namespace details {
class basic final : public base {
public:
class manipulated_original_event fin... |
<commit_before>/******************************************************************************
* Copyright 2017 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 ... |
<commit_before><commit_msg>Bugfix: pass variables of correct type to `VariableStruct` constructor.<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2011 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 "net/base/x509_util.h"
#include "net/base/x509_util_nss.h"
#include <cert.h>
#include <secoid.h>
#include "base/memory/scope... |
<commit_before>/*************************************************************************
*
* $RCSfile: bootstrap.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: kr $ $Date: 2001-10-05 08:00:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#include "dock.h"
#include "mainwindow.h"
#include "connection.h"
#include "dockmanagerconfig.h"
#include "dockdelegates.h"
#include "controlbar_dockmanager.h"
#include "serialize.h"
#include <ui_controlbarcommon.h>
#include <QScrollBar>
/*#include <ui_controlbarlogs.h>
#include <ui_controlbarplots.h>
#i... |
<commit_before>#include <ncurses.h>
int main()
{
initscr();
endwin();
return 0;
}
<commit_msg>NCusrses igh<commit_after>#include <ncurses.h>
int main()
{
initscr();
endwin();
// end
return 0;
}
<|endoftext|> |
<commit_before>#include "bot/InputOutput.hxx"
#include "bot/HypothesisSpace.hxx"
#include "bot/ObjectFeatureExtractor.hxx"
#include "bot/AverageObject.hxx"
#include "bot/SingletsGenerator.hxx"
#include "bot/MultipletsGenerator.hxx"
#include "bot/CPLEXSolverSystem.hxx"
#include "bot/TrackingPredictor.hxx"
#include "vigr... |
<commit_before>#include <ncurses.h>
int main()
{
initscr();
endwin();
return 0;
}
<commit_msg>NCusrses igh<commit_after>#include <ncurses.h>
int main()
{
initscr();
endwin();
// end
return 0;
}
<|endoftext|> |
<commit_before>#include "symboltable.hpp"
#include "exception.hpp"
#include "configuration.hpp"
#include "version.h"
#include "builtin/array.hpp"
#include "builtin/encoding.hpp"
#include "builtin/exception.hpp"
#include "builtin/string.hpp"
#include "builtin/symbol.hpp"
#include <iostream>
#include <iomanip>
namespa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.