text stringlengths 54 60.6k |
|---|
<commit_before>#include <Utils/GL+/Models/Mesh.h>
#include <Utils/GL+/Models/Material.h>
namespace GL {
namespace Model {
Mesh::Mesh() : Mesh("defaultMaterial") {
}
Mesh::Mesh(const std::string& materialName) {
this->materialName = materialName;
}
Mesh::Mesh... |
<commit_before>/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "... |
<commit_before>/*
* Copyright (C) 2006, 2007 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, thi... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>#include "command.hh"
#include "shared.hh"
#include "store-api.hh"
#include "sync.hh"
#include "thread-pool.hh"
#include <atomic>
using namespace nix;
struct CmdCopy : StorePathsCommand
{
std::string srcUri, dstUri;
CheckSigsFlag checkSigs = CheckSigs;
CmdCopy()
{
mkFlag(0, "... |
<commit_before>#include "command.hh"
#include "common-args.hh"
#include "shared.hh"
#include "store-api.hh"
#include "eval.hh"
#include "json.hh"
#include "value-to-json.hh"
using namespace nix;
struct CmdEval : MixJSON, InstallablesCommand
{
bool raw = false;
CmdEval()
{
mkFlag(0, "raw", "print ... |
<commit_before>#include "notebook.h"
#include "config.h"
#include "directories.h"
#include "logging.h"
#include <fstream>
#include <regex>
#include "cmake.h"
#include "filesystem.h"
#if GTKSOURCEVIEWMM_MAJOR_VERSION > 2 & GTKSOURCEVIEWMM_MINOR_VERSION > 17
#include "gtksourceview-3.0/gtksourceview/gtksourcemap.h"
#end... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>#ifndef RBX_VM_H
#define RBX_VM_H
#include "missing/time.h"
#include "globals.hpp"
#include "memory/object_mark.hpp"
#include "memory/managed.hpp"
#include "vm_thread_state.hpp"
#include "thread_nexus.hpp"
#include "metrics.hpp"
#include "util/thread.hpp"
#include "memory/variable_buffer.hpp"
#includ... |
<commit_before>/* ---------------------------------------------------------------------
* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2015-2016, Numenta, Inc. Unless you have an agreement
* with Numenta, Inc., for a separate license for this software code, the
* following terms and condition... |
<commit_before>#include "xmlreader.h"
#include "../base64.h"
#include "../file.h"
#include "../string.h"
#include <algorithm>
#include <cstring>
#include <sstream>
#include <stdexcept>
using namespace UnTech;
using namespace UnTech::Xml;
namespace UnTech {
namespace XmlPrivate {
inline bool isWhitespace(char c)
{
... |
<commit_before>#include "types.h"
#include "kernel.hh"
#include "spinlock.h"
#include "amd64.h"
#include "cpu.hh"
#include "wq.hh"
#define NSLOTS (1 << WQSHIFT)
struct wqueue {
struct work *w[NSLOTS];
volatile int head __mpalign__;
volatile int tail;
struct spinlock lock;
__padout__;
} __mpalign__;;
str... |
<commit_before>// Copyright 2016 Etix Labs
//
// 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 ... |
<commit_before>/*
* Copyright 2006-2008 The FLWOR Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
<commit_before>/*
* Arithmetic for point groups of elliptic curves over GF(p)
*
* (C) 2007 Martin Doering, Christoph Ludwig, Falko Strenzke
* 2008-2010 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/point_gfp.h>
#include <botan/numthry.h>
#include <botan/mp_asm.h>
#include <bota... |
<commit_before>#ifndef STAN_MATH_OPENCL_KERNEL_GENERATOR_ROWWISE_REDUCTION_HPP
#define STAN_MATH_OPENCL_KERNEL_GENERATOR_ROWWISE_REDUCTION_HPP
#ifdef STAN_OPENCL
#include <stan/math/opencl/matrix_cl_view.hpp>
#include <stan/math/prim/meta.hpp>
#include <stan/math/opencl/kernel_generator/type_str.hpp>
#include <stan/ma... |
<commit_before>#ifndef STAN_MATH_PRIM_MAT_PROB_NEG_BINOMIAL_2_LOG_GLM_LPMF_HPP
#define STAN_MATH_PRIM_MAT_PROB_NEG_BINOMIAL_2_LOG_GLM_LPMF_HPP
#include <stan/math/prim/scal/meta/is_constant_struct.hpp>
#include <stan/math/prim/scal/meta/partials_return_type.hpp>
#include <stan/math/prim/scal/meta/operands_and_partials... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: LayerDialogContent.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2007-04-03 15:39:50 $
*
* The Contents of this file... |
<commit_before>#ifndef _PITO_INTERCEPTOR_LOG_HELPER_
#define _PITO_INTERCEPTOR_LOG_HELPER_
#include <pito/interceptor/SystemCall.hpp>
#include <iostream>
namespace pito { namespace interceptor { namespace log {
template <class LibraryTag, class Ret, class... Args>
struct SystemCall;
template <class LibraryTag, cla... |
<commit_before>/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include "ccode.hpp"
#include <kdbmodule.h>
#include <kdbprivate.h>
#include <tests.hpp>
using std::string;
using CppKeySet = kdb::KeySet;
using CppKey = kdb::Key;
using ckdb::elektraModulesClo... |
<commit_before>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2010-2011 Emmanuel Benazera <ebenazer@seeks-project.info>
*
* 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 b... |
<commit_before>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2009 Emmanuel Benazera, juban@free.fr
*
* 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 ... |
<commit_before>/* This file is part of Ingen.
e< "\n\tcycle_start: " << _cycle_time.start_ticks()
* Copyright (C) 2007 Dave Robillard <http://drobilla.net>
*
* Ingen 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
... |
<commit_before>#include "ofdpa_bridge.hpp"
#include "roflibs/netlink/clogging.hpp"
#include <cassert>
#include <map>
#include <rofl/common/openflow/cofport.h>
namespace basebox {
ofdpa_bridge::ofdpa_bridge(rofl::rofl_ofdpa_fm_driver &fm_driver)
: fm_driver(fm_driver) {}
ofdpa_bridge::~ofdpa_bridge() {}
void ... |
<commit_before>#pragma once
// `krbn::grabbable_state_queue` can be used safely in a multi-threaded environment.
#include "boost_defs.hpp"
#include "event_queue.hpp"
#include "types.hpp"
#include <boost/circular_buffer.hpp>
#include <memory>
#include <nod/nod.hpp>
#include <optional>
#include <pqrs/dispatcher.hpp>
... |
<commit_before>/*
* Copyright (c) The Shogun Machine Learning Toolbox
* Written (w) 2014 Parijat Mazumdar
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source c... |
<commit_before>#ifndef __PML_FRACTION__
#define __PML_FRACTION__
#include <cmath>
#include <cstdlib>
#include <string>
#include "factor.hpp"
inline void parse_fraction(std::string frac, int64_t &num,
int64_t &den)
{
unsigned pos = 0;
for (unsigned i = 1; i < frac.... |
<commit_before>/*************************************************************************
*
* $RCSfile: uiks.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 17:01:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* $RCSfile: ndgrf.hxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: kz $ $Date: 2004-10-04 18:59:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>#include "dsa_common.h"
#include "ws_connection.h"
#include <boost/asio/write.hpp>
#include "module/logger.h"
#include "util/little_endian.h"
namespace dsa {
using tcp = boost::asio::ip::tcp; // from <boost/asio/ip/tcp.hpp>
namespace websocket =
boost::beast::websocket; // from <boost/beast/we... |
<commit_before>/**
* \file position.cc
* \author Jason Fernandez
* \date 07/04/2020
*/
#include "chess/position.h"
#include <cctype>
#include <cstddef>
#include <string>
#include "bitops/bitops.h"
#include "superstring/superstring.h"
#include "chess/util.h"
namespace chess {
/**
* Co... |
<commit_before>#include "process.hpp"
//////////////
// Includes //
#include "image.hpp"
//////////
// Code //
// Verifying the validity of a set of images.
bool validateImages(int count, Image** imgs) {
for (int i = 1; i < count; i++) {
if (imgs[i - 1]->width != imgs[i]->width ||
imgs[i ... |
<commit_before>#include "program.h"
#include "filesystem.h"
#include "common/settings.h"
#include "common/log.h"
#include "quickvertexbuffer.h"
#include <hl1bspinstance.h>
#include <SDL.h>
#include <glm/gtc/matrix_transform.hpp>
#include <iostream>
#include <sstream>
Application* gApp = new Program();
static FileLogg... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2012 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 Foundation; eit... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2022 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 Foundation; eit... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QIcon>
#include <QDebug>
#include <QMessageBox>
#include <QFileInfo>
#include <QFileDialog>
#include <QTextStream>
#define MESSAGE_DISPLAY_LENGTH 4000
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindo... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "model.h"
#include <fstream>
#include <QFileDialog>
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
modelWidget(nullptr)
{
ui->setupUi(this);
setModelWidget(new ... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <CoreService.h>
#include <QStandardItemModel>
CoreService *cs;
QStringList extension_name_list;
QString filePath;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWin... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QLabel>
#include <QPushButton>
#include <QComboBox>
#include <QCloseEvent>
#include <QTimer>
#include <QSignalMapper>
#include <QGridLayout>
#include <SDL_haptic.h>
const int kHapticLength = 500;
const int kSafeTimeout = 50;
static const ch... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "QFileDialog"
#include "QDebug"
#include <QPicture>
#include "imageprocessingstrategy.h"
#include "QMessageBox"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QFile raw... |
<commit_before>/*****************************************************************************
* Project: RooFit *
* Package: RooFitCore *
* File: $Id: RooAbsOptGoodnessOfFit.cc,v 1.4 2002/09/05 04:33:07... |
<commit_before>
#include <test/agrad/fwd/matrix/to_fvar_test.cpp>
//INTEGER-VALUED MATRIX SIZE FUNCTIONS -- DONE
#include <test/agrad/fwd/matrix/rows_test.cpp>
#include <test/agrad/fwd/matrix/cols_test.cpp>
//MATRIX ARITHMETIC OPEPRATORS -- DONE
//Negation Prefix Operators -- DONE
#include <test/agra... |
<commit_before>#include <iostream>
#include <iomanip>
#include <array>
#include <bitset>
struct sudoku_cell{
using numset = std::bitset<9>;
sudoku_cell():cells{}{}
std::array<unsigned,81> cells;
std::array<numset,81> cands;
std::array<numset,9> reduced_row;
std::array<numset,9> reduc... |
<commit_before>#include <cstdio>
#include <cstring>
#include <stdexcept>
const unsigned char HEX_TABLE[] = {
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
0,1,2,3,4,5,6,7... |
<commit_before>#include "culebra.h"
#include "linenoise.hpp"
#include <fstream>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace culebra;
using namespace std;
bool read_file(const char* path, vector<char>& buff)
{
ifstream ifs(path, ios::in|ios::binary);
if (ifs.fail()) {
retur... |
<commit_before><commit_msg>loplugin:simplifybool<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2021 PaddlePaddle 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/licenses/LICENSE-2.0
//
// ... |
<commit_before>/* This file is part of the Kate project.
*
* Copyright (C) 2010 Dominik Haumann <dhaumann kde org>
* Copyright (C) 2010 Diana-Victoria Tiriplica <diana.tiriplica@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General... |
<commit_before>/*************************************************************************
* *
* I|*j^3Cl|a "+!*% qt Nd gW *
* l]{y+l?MM* !#Wla\NNP NW MM I| *
* ... |
<commit_before>#include "process.hpp"
#include <cstdlib>
#include <unistd.h>
#include <signal.h>
#include <stdexcept>
Process::Data::Data(): id(-1) {}
Process::id_type Process::open(const std::string &command, const std::string &path) {
if(open_stdin)
stdin_fd=std::unique_ptr<fd_type>(new fd_type);
if(read_st... |
<commit_before>/*************************************************************************
*
* $RCSfile: usrfld.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2004-08-23 08:42:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>// Copyright (c) 2009-2012 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <iostream>
#include <fstream>
#include "init.h" // for pwalletMain
#include "bitcoinrpc.h"
#include "ui_i... |
<commit_before>// Copyright (c) 2009-2012 Bitcoin Developers
// Copyright (c) 2012-2015 The Peercoin developers
// Copyright (c) 2014-2015 The Paycoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h" ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: formatclipboard.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: kz $ $Date: 2006-12-12 17:12:52 $
*
* The Contents of this file ar... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2009-2014 Klaus Post
Copyright (C) 2014-2015 Pedro Côrte-Real
Copyright (C) 2017 Roman Lebedev
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as pu... |
<commit_before>/*
* Copyright (C) 2013 midnightBITS
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* mod... |
<commit_before>// main.cc
//
// Copyright (c) 2016 Frank Lin (lin.xiaoe.f@gmail.com)
//
// 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>/***********************************************************************
datetime.cpp - Implements date and time classes compatible with MySQL's
various date and time column types.
Copyright (c) 1998 by Kevin Atkinson, (c) 1999, 2000 and 2001 by
MySQL AB, and (c) 2004, 2005 by Educational Technology... |
<commit_before>#include "global.h"
#include "helper.h"
#include "mem_alloc.h"
#include "time.h"
bool itemid_t::operator==(const itemid_t &other) const {
return (type == other.type && location == other.location);
}
bool itemid_t::operator!=(const itemid_t &other) const {
return !(*this == other);
}
void itemid_t::o... |
<commit_before>/*
* Copyright (c) 2000-2005 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above c... |
<commit_before>// this node manage the number and index of present two wheel robot
// publish topic on two wheel robot information
// robot index, 2D position and speed of wheels
// use gazebo service to spawn and delete model in gazebo
// (compatible when a robot model is deleted directly from gazebo gui)
// acce... |
<commit_before><commit_msg>ant: optimizations<commit_after><|endoftext|> |
<commit_before>#include "test/test_syscoin_services.h"
#include "data/utxo.json.h"
#include "utiltime.h"
#include "rpcserver.h"
#include <boost/test/unit_test.hpp>
#include <univalue.h>
int currentTx = 0;
extern UniValue read_json(const std::string& jsondata);
BOOST_FIXTURE_TEST_SUITE (syscoin_snapshot_tests, SyscoinMa... |
<commit_before>/*
* LoadHandler.cpp
*
* Created on: 29.05.2017
* Author: Alexander
*/
#include "persistence/base/LoadHandler.hpp"
#include <sstream> // used for getLevel()
#include "abstractDataTypes/Bag.hpp"
#include "abstractDataTypes/Union.hpp"
#include "boost/algorithm/string.hpp" // used for string sp... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list... |
<commit_before>// This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// MGenTest.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "MGenTest.h"
#include "../MGe... |
<commit_before>/*
MCH DA for online occupancy
Contact: Laurent Aphecetche <laurent.aphecetche@subatech.in2p3.fr>, Jean-Luc Charvet <jean-luc.charvet@cea.fr>, Alberto Baldisseri <alberto.baldisseri@cea.fr>
Link:
Run Type: PHYSICS STANDALONE
DA Type: MON
Number of events needed: all (or at least as much as possi... |
<commit_before>//------------------------------------------------------------------------------
//
// Copyright (C) Streamlet. All rights reserved.
//
// File Name: XmlRpc.cpp
// Author: Streamlet
// Create Time: 2010-10-28
// Description:
//
// Version history:
//
//
//
//-------... |
<commit_before>// ----------------------------------------------------------------------------
// ModularDeviceBase.cpp
//
//
// Authors:
// Peter Polidoro polidorop@janelia.hhmi.org
// ----------------------------------------------------------------------------
#include "ModularDeviceBase.h"
using namespace modular_... |
<commit_before>// Copyright 2015 The Statify Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... |
<commit_before>#include <dgtype/dgtype.hh>
#include <memory>
#include <vector>
#include <iterator>
#include <iostream>
#include <cassert>
namespace DG {
namespace Sound {
void WAV::open(const std::string& fname) {
if (!is_file_accessible(fname)) {
throw dgtype::Inaccessible_file("WAV");
}
SNDFILE* temp = sf... |
<commit_before>/*
Copyright (C) 2008-2016 The Communi Project
You may use this file under the terms of BSD license as follows:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code mus... |
<commit_before>//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2019 Ryo Suzuki
// Copyright (c) 2016-2019 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <string>
# define __S... |
<commit_before>/*
* Copyright (c) 2006 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyri... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distribu... |
<commit_before>#include <platform.hpp>
#include <driver.h>
#include <vector>
#include <string>
#include <algorithm>
#include <sstream>
#include <iostream>
#include <stdexcept>
#include <cstdio>
//Macro for checking cuda errors following a cuda launch or api call
#define CUDA(call) ... |
<commit_before>#include <unistd.h>
#include <iostream>
#include <vector>
#include <utilities/realtime/dataman/ZmqMan.h>
using namespace std;
using namespace adios::realtime;
using json = nlohmann::json;
int main(){
adios::realtime::ZmqMan man;
json msg;
msg["local_ip"] = "127.0.0.1";
msg["remote_ip"... |
<commit_before>#ifndef BUFFER_CACHE_ALT_PAGE_HPP_
#define BUFFER_CACHE_ALT_PAGE_HPP_
#include "concurrency/cond_var.hpp"
#include "containers/backindex_bag.hpp"
#include "repli_timestamp.hpp"
#include "serializer/buf_ptr.hpp"
#include "serializer/types.hpp"
class cache_account_t;
namespace alt {
class page_cache_t;... |
<commit_before>#include "xchainer/native/im2col.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <vector>
#include "xchainer/array.h"
#include "xchainer/array_index.h"
#include "xchainer/constant.h"
#include "xchainer/device.h"
#include "xchainer/indexable_array.h"
#include "xchainer/indexer.h"
... |
<commit_before>/*
* Copyright © 2012 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, mod... |
<commit_before>#include "xchainer/python/device.h"
#include <memory>
#include <sstream>
#include "xchainer/backend.h"
#include "xchainer/device.h"
#include "xchainer/python/common.h"
namespace xchainer {
namespace py = pybind11; // standard convention
class PyDeviceScope {
public:
explicit PyDeviceScope(Devi... |
<commit_before>#include <doctest.h>
#include <algorithm>
#include <cctype>
#include <iterator>
#include <mirrage/utils/random_uuid_generator.hpp>
#include <sstream>
#include <vector>
TEST_CASE("A large number of ids generated by a random_uuid_generator does contain no duplicates.")
{
mirrage::util::random_uuid_genera... |
<commit_before>#include "miniz/miniz.h"
#include "Zip/ZipArchive.hpp"
namespace Slic3r {
ZipArchive::ZipArchive (std::string zip_archive_name, char zip_mode) : archive(mz_zip_archive()), zip_name(zip_archive_name), mode(zip_mode), stats(0), finalized(false)
{
// Initialize the miniz zip archive struct.
memset... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2013-2016 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are me... |
<commit_before>#include "common.th"
// c <- multiplicand
// d <- multiplier
// b -> product
.global imul
imul:
#if IMUL_EARLY_EXITS
b <- c == 0
d <- d &~ b // d = (c == 0) ? 0 : d
b <- d <> 0
jzrel(b, L_done)
#endif
pushall(h,i,j)
b <- 0
h <- 1
j <- d >> 31 // save sign bit in... |
<commit_before>#include "networktables/NetworkTable.h"
#include <algorithm>
#include "llvm/SmallString.h"
#include "tables/ITableListener.h"
#include "ntcore.h"
using llvm::StringRef;
const char NetworkTable::PATH_SEPARATOR_CHAR = '/';
std::string NetworkTable::s_ip_address;
bool NetworkTable::s_client = false;
boo... |
<commit_before>/*
* param.cpp
*
*/
#include "param.h"
using namespace himan;
using namespace std;
param::~param() {}
param::param()
: itsId(kHPMissingInt),
itsName("XX-X"),
itsScale(1),
itsBase(0),
itsUnivId(kHPMissingInt),
itsGribParameter(kHPMissingInt),
itsGribCategory(k... |
<commit_before>#include "core/numeric.h"
#include "lsearch_morethuente.h"
using namespace nano;
///
/// see dcstep routine in MINPACK-2 (see http://ftp.mcs.anl.gov/pub/MINPACK-2/csrch/)
///
static void dcstep(
scalar_t& stx, scalar_t& fx, scalar_t& dx,
scalar_t& sty, scalar_t& fy, scalar_t& dy,
scala... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2014 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 Foundation; eit... |
<commit_before>#include "Distributions.hh"
#include "conf.hh"
#include "LinearAlgebra.hh"
#include "HmmSet.hh"
#include "str.hh"
std::string stat_file;
conf::Config config;
HmmSet model;
int
main(int argc, char *argv[])
{
try {
config("usage: optimize [OPTION...]\n")
('h', "help", "", "", "display help"... |
<commit_before>// gampcompare_main.cpp: defines a GAMP to GAM annotation function
#include <omp.h>
#include <unistd.h>
#include <getopt.h>
#include <string>
#include <vector>
#include <set>
#include <subcommand.hpp>
#include "../algorithms/alignment_path_offsets.hpp"
#include "../multipath_alignment.hpp"
#include "... |
<commit_before>/*
* Copyright 2017-2019 Baidu 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 applicabl... |
<commit_before>#include "IndependentMultiRobotPathPlanner.hpp"
#include "RobotConstraints.hpp"
using namespace std;
namespace Planning {
std::map<int, std::unique_ptr<Path>> IndependentMultiRobotPathPlanner::run(
std::map<int, PlanRequest> requests) {
std::map<int, std::unique_ptr<Path>> paths;
std::map<... |
<commit_before>/*******************************************************************************
Licensed to the OpenCOR team under one or more contributor license agreements.
See the NOTICE.txt file distributed with this work for additional information
regarding copyright ownership. The OpenCOR team licenses this file... |
<commit_before><commit_msg>fixed image stride alignment and added detection visualization for debugging<commit_after><|endoftext|> |
<commit_before>#include <algorithm>
#include <cmath>
#include <iostream>
#include <QPainter>
#include <QPaintEvent>
#include <QPoint>
#include <QPointF>
#include <QPolygonF>
#include <QRect>
#include <QStylePainter>
#include <QVector>
#include "tattoo_canvas.h"
static double PI = 3.1415926535;
static double deg2rad... |
<commit_before>#include <jpl-tags/fiducial_stereo.h>
#include <opencv2/opencv.hpp>
#include <drc_utils/LcmWrapper.hpp>
#include <drc_utils/BotWrapper.hpp>
#include <lcm/lcm-cpp.hpp>
#include <lcmtypes/multisense/images_t.hpp>
#include <lcmtypes/bot_core/image_t.hpp>
#include <lcmtypes/drc/tag_detection_t.hpp>
#includ... |
<commit_before>// Copyright 2014 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 "components/sync_driver/shared_change_processor.h"
#include "base/message_loop/message_loop_proxy.h"
#include "components/sync_dr... |
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved.
#include "rdb_protocol/artificial_table/artificial_table.hpp"
#include "rdb_protocol/artificial_table/backend.hpp"
#include "rdb_protocol/env.hpp"
#include "rdb_protocol/func.hpp"
#include "rdb_protocol/table_common.hpp"
/* Determines how many coro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.