text stringlengths 54 60.6k |
|---|
<commit_before>#include "cnn/devices.h"
#include <boost/algorithm/string.hpp>
#include <iostream>
#include <unsupported/Eigen/CXX11/Tensor>
#include "cnn/cuda.h"
#include "cnn/cnn.h"
using namespace std;
namespace cnn {
DeviceMempoolSizes::DeviceMempoolSizes(size_t total_size) {
used[0] = total_size/3;
used[1]... |
<commit_before>// Copyright © 2012, Université catholique de Louvain
// 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 not... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: line.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 14:21:05 $
*
* The Contents of this file are made avai... |
<commit_before>/* * Copyright (c) 2016 Regents of the University of California. 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 copyrigh... |
<commit_before>/*
* Copyright (C) 2014 The Android Open Source Project
*
* 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>/*************************************************************************
*
* $RCSfile: localstratumbase.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-01-07 10:10:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the followi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: invalidatetree.cxx,v $
*
* $Revision: 1.20 $
*
* last change: $Author: rt $ $Date: 2005-09-08 04:25:09 $
*
* The Contents of this file ar... |
<commit_before>#include <stdexcept>
#include <functional>
#include <list>
#include "containers/iterators.hpp"
#include "unittest/gtest.hpp"
namespace unittest {
struct test_iterator : one_way_iterator_t<int> {
typedef std::list<std::list<int> > data_blocks_t;
explicit test_iterator(data_blocks_t& _data_block... |
<commit_before>#pragma once
#include "math_helpers.hpp"
#include <array>
#include <cassert>
#include <tuple>
namespace cu
{
/// An N-dimensional point whose coordinate type is @c T.
///
/// The coordinates can be accessed via the @c operator[]().
/// The constructor takes the same arguments as an @c std::array<T,N>... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<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>#include "code/ylikuutio/ontology/symbiosis.hpp"
#include "code/ylikuutio/ontology/symbiont_species.hpp"
#include "code/ylikuutio/ontology/symbiosis_struct.hpp"
#include "code/ylikuutio/command_line/command_line_master.hpp"
#include "code/ylikuutio/string/ylikuutio_string.hpp"
#include "assimp/scene.h"
... |
<commit_before>#ifndef _w32_mt_hpp__
#define _w32_mt_hpp__
// Copyright (c) 2009-2012, Andre Caron ([email protected])
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redis... |
<commit_before>/*
* Copyright (c) 2015, University Corporation for Atmospheric Research
* 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 ... |
<commit_before>/*
* Copyright (c) 2018 Airbus Defence and Space and RISC Software GmbH
*
* 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
*
* U... |
<commit_before>#ifdef WIN32
#include <intrin.h>
#include <windows.h>
#endif
#include "glresource.hpp"
#include "event.hpp"
namespace rs {
namespace {
bool g_bglfuncInit = false;
}
#define GLGETPROC(name) SDL_GL_GetProcAddress(BOOST_PP_STRINGIZE(name))
#if defined(_WIN32)
namespace {
using SetSwapInterval_... |
<commit_before>/*------------------------------------------------------------------------------
Copyright (c) 2004 Media Development Loan Fund
This file is part of the Campcaster project.
http://campcaster.campware.org/
To report bugs, send an e-mail to [email protected]
Campcaster is free soft... |
<commit_before>/**************************************************************************
*
* Copyright 2011 Jose Fonseca
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in t... |
<commit_before>
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkBlurMaskFilter.h"
namespace skiagm {
class BlursGM : public GM {
public:
BlursGM() {
this->setBGColor(0xFFDDDDDD);
... |
<commit_before>/************************************************************************/
/* XGPacket */
/* */
/* XGrid Packet */
/* ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tp_Wizard_TitlesAndObjects.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2007-07-25 08:38:49 $
*
* The Contents of t... |
<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 "base/stringprintf.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/extensions/extension_i... |
<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 <vector>
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/stringprintf.h"
#include "chrome/browser/exte... |
<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 "chrome/browser/sync/notifier/communicator/ssl_socket_adapter.h"
#include "base/compiler_specific.h"
#include "base/message_l... |
<commit_before>#include <iostream>
#include <boost/foreach.hpp>
#include <libport/package-info.hh>
namespace libport
{
PackageInfo::PackageInfo ()
: map_()
{
}
PackageInfo::data_type
PackageInfo::name_version_revision() const
{
return (get ("name")
+ " version " + get ("version")
+ " rev... |
<commit_before>#include "dreal/contractor/contractor.h"
#include <algorithm>
#include <utility>
#include "dreal/contractor/contractor_cell.h"
#include "dreal/contractor/contractor_fixpoint.h"
#include "dreal/contractor/contractor_forall.h"
#include "dreal/contractor/contractor_ibex_fwdbwd.h"
#include "dreal/contracto... |
<commit_before>#include "directories.h"
#include "logging.h"
Directories::Controller::Controller(Directories::Config& cfg) :
config_(cfg) {
m_ScrolledWindow.add(m_TreeView);
m_ScrolledWindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
}
void Directories::Controller::
open_folder(const boost::files... |
<commit_before>#include "Histogram.h"
#include "Matrix.h"
void Histogram::Init(Local<Object> target) {
Nan::Persistent<Object> inner;
Local<Object> obj = Nan::New<Object>();
inner.Reset(obj);
Nan::SetMethod(obj, "calcHist", CalcHist);
Nan::SetMethod(obj, "emd", Emd);
target->Set(Nan::New("histogram").ToL... |
<commit_before>#include "Histogram.h"
#include "Matrix.h"
void Histogram::Init(Local<Object> target) {
Nan::Persistent<Object> inner;
Local<Object> obj = Nan::New<Object>();
inner.Reset(obj);
Nan::SetMethod(obj, "calcHist", CalcHist);
Nan::SetMethod(obj, "emd", Emd);
target->Set(Nan::New("histogram").ToL... |
<commit_before><commit_msg>さっきのうそ<commit_after>#include <cstdio>
#include <vector>
#include <deque>
#include <string>
#include <algorithm>
#include <sstream>
/* definitions */
const int stone_size = 8;
const int field_size = 32;
const int empty_val = 257; // 障害物やzkの無いことを表す
const int filled_val = 256; // 障害物を表す
FILE* d... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
<commit_before>/* 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 <mpd/client.h>
#include "consumer.hh"
#include "globals.hh"
using namespace boost::filesy... |
<commit_before>//===------- X86ExpandPseudo.cpp - Expand pseudo instructions -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2008 Ulrich von Zadow
//
// 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; either
// version 2 of the Li... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkShepardMethod.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>/**
* echo.cpp - echo serial characters back
*
* connect using putty/hyperterm/minicom .. 9600-8-N-1
* what ever you type is echoed back
*/
#include <fabooh.h>
#include <main.h>
#include <serial.h>
namespace {
const uint32_t BAUD_RATE = 9600;
serial_default_t<BAUD_RATE, CPU::frequency, TX_PIN,... |
<commit_before>/*************************************************************************
*
* $RCSfile: urp_bridgeimpl.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: svesik $ $Date: 2004-04-21 13:44:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope... |
<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>#include "../HierarchicalEA.hpp"
#include "../PopulationNodeFactory.hpp"
#include "../../exception/MismatchedCountsException.hpp"
#pragma once
template<typename NodeType, typename... params>
void HierarchicalEA::addConstructiveLattice(
PopulationFormula * formula,
std::vector<std::vector<Locus*>> cont... |
<commit_before>// [WriteFile Name=OpenExistingMap, Category=Maps]
// [Legal]
// Copyright 2016 Esri.
// 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/LICENS... |
<commit_before>/*
* Copyright (C) 2008-2009 Manjeet Dahiya
*
* Author:
* Manjeet Dahiya
*
* Source:
* http://code.google.com/p/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lic... |
<commit_before>// Copyright 2006-2009 the V8 project authors. All rights reserved.
//
// Tests of profiler-related functions from log.h
#ifdef ENABLE_LOGGING_AND_PROFILING
#include <stdlib.h>
#include "v8.h"
#include "codegen.h"
#include "log.h"
#include "top.h"
#include "cctest.h"
#include "disassembler.h"
#includ... |
<commit_before>#include "common/ceph_crypto.h"
#include "gtest/gtest.h"
class CryptoEnvironment: public ::testing::Environment {
public:
void SetUp() {
ceph::crypto::init();
}
};
::testing::Environment* const crypto_env = ::testing::AddGlobalTestEnvironment(new CryptoEnvironment);
TEST(MD5, DigestSize) {
... |
<commit_before>#include "JsPlayer.h"
#include <string.h>
#include <node_buffer.h>
#include <nah/NodeHelpers.h>
///////////////////////////////////////////////////////////////////////////////
struct JsPlayer::AsyncData
{
virtual void process( JsPlayer* ) = 0;
};
/////////////////////////////////////////////////... |
<commit_before>/* Generated from orogen/lib/orogen/templates/typekit/typelib/OpaqueType.cpp */
#include "OpaqueConvertions.hpp"
#include "Types.hpp"
#include <rtt/typelib/OpaqueTypelibMarshaller.hpp>
#include "transports/typelib/Registration.hpp"
orogen_transports::TypelibMarshallerBase* orogen_typekits::<%= type.met... |
<commit_before>#include "kernel.h"
#include "raster.h"
#include "rastercoverage.h"
#include "pixeliterator.h"
#include "connectorinterface.h"
#include "symboltable.h"
#include "domainitem.h"
#include "itemdomain.h"
#include "numericitem.h"
#include "numericitemrange.h"
#include "ilwisoperation.h"
quint64 Ilwis::GridBl... |
<commit_before>//
// SRTerrain class : a subclass of vtDynTerrainGeom which encapsulates
// Stefan Roettger's CLOD algorithm.
//
// utilizes: Roettger's MINI library implementation
// http://wwwvis.informatik.uni-stuttgart.de/~roettger
//
// Copyright (c) 2002-2005 Virtual Terrain Project
// Free for all uses, see lic... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// 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)
//=================================... |
<commit_before>/* Copyright 2019 Andrei Khodko
*
* 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... |
<commit_before>/*
Arduino.cpp - Mocks for common Arduino APIs
Copyright © 2016 Ivan Grokhotkov
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 limitati... |
<commit_before>// Scintilla source code edit control
/** @file KeyWords.cxx
** Colourise for particular languages.
**/
// Copyright 1998-2001 by Neil Hodgson <[email protected]>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <string.h>
#i... |
<commit_before>/******************************************************************************\
* File: test.cpp
* Purpose: Implementation for wxextension cpp unit testing
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
* Created: za 17 jan 2009 11:51:20 CET
*
* Copyright (c) 2009 Anton ... |
<commit_before>//
// generateSimulatedData.cpp
// cPWP
//
// Created by Evan McCartney-Melstad on 12/31/14.
// Copyright (c) 2014 Evan McCartney-Melstad. All rights reserved.
//
#include "generateSimulatedData.h"
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <sstream>
#incl... |
<commit_before>#include <pip/context.hpp>
#include <pip/decl.hpp>
#include <pip/translator.hpp>
#include <pip/resolver.hpp>
#include <pip/evaluator.hpp>
#include <pip/type_checker.hpp>
#include <pip/pcap.hpp>
#include <pip/decode.hpp>
#include <sexpr/syntax.hpp>
#include <sexpr/context.hpp>
#include <sexpr/parser.hpp>... |
<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>#include <sstream>
#include <stdexcept>
#include "File.h"
#include "KeyValueFile.h"
#include "String.h"
#include "StringView.h"
#include "../debug/Debug.h"
void KeyValueFile::Section::init(std::string &&name)
{
this->name = std::move(name);
}
const std::string &KeyValueFile::Section::getName() const
... |
<commit_before>/*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2018 Miodrag Milanovic <[email protected]>
*
* 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 ... |
<commit_before>//
// Aspia Project
// Copyright (C) 2020 Dmitry Chapyshev <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your ... |
<commit_before>//
// CompositeTileImageProvider.cpp
// G3MiOSSDK
//
// Created by Diego Gomez Deck on 4/23/14.
//
//
#include "CompositeTileImageProvider.hpp"
#include "TileImageListener.hpp"
#include "Tile.hpp"
#include "CompositeTileImageContribution.hpp"
#include "IFactory.hpp"
#include "ICanvas.hpp"
#include "I... |
<commit_before>#include "xchainer/backprop_mode.h"
#include <algorithm>
#include <memory>
#include <utility>
#include <vector>
#include <nonstd/optional.hpp>
#include "xchainer/array.h"
#include "xchainer/array_node.h"
#include "xchainer/constant.h"
#include "xchainer/context.h"
#include "xchainer/graph.h"
namespac... |
<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 "chrome/browser/language_order_table_model.h"
#include "app/l10n_util.h"
#include "base/utf_string_conversions.h"
#include "c... |
<commit_before><commit_msg>"flip_over_serum_line"<commit_after><|endoftext|> |
<commit_before>// Material.cpp
#include "Material.h"
#include "CycException.h"
#include "Timer.h"
#include "Logger.h"
#include <cmath>
#include <vector>
using namespace std;
std::vector<mat_rsrc_ptr> Material::materials_;
bool Material::decay_wanted_ = false;
int Material::decay_interval_ = 1;
Table *Material::m... |
<commit_before>/*
Copyright 2008 Larry Gritz and the other authors and contributors.
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 cop... |
<commit_before>// Copyright (c) 2009-2012 The Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "crypter.h"
#include "script.h"
#include "scrypt.h"
#include <string>
#include <vector>
#include <bo... |
<commit_before>// Copyright (c) 2019, Sergey Abbakumov
// 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>#ifndef RFR_MOSTLY_CONTINUOUS_DATA_CONTAINER_WITH_INSTANCES_HPP
#define RFR_MOSTLY_CONTINUOUS_DATA_CONTAINER_WITH_INSTANCES_HPP
#include <vector>
#include <map>
#include <cmath>
#include "rfr/data_containers/data_container_base.hpp"
#include "rfr/data_containers/data_container_utils.hpp"
namespace r... |
<commit_before>// Copyright Joshua Boyce 2010-2012.
// 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)
// This file is part of HadesMem.
// <http://www.raptorfactor.com/> <[email protected]>
#inc... |
<commit_before>// Filename: connectionManager.cxx
// Created by: jns (07Feb00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// ... |
<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 (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/app/chrome_dll_resource.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/url_constants.h"
#includ... |
<commit_before>/* $Id: middlewareGeneralTests.cpp,v 1.1.2.7 2013/02/01 17:26:58 matthewmulhern Exp $
*
* OpenMAMA: The open middleware agnostic messaging API
* Copyright (C) 2011 NYSE Technologies, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser... |
<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 "chrome/test/base/test_web_dialog_observer.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/no... |
<commit_before>#include "callback_parameter.hpp"
#include "callback_object.hpp"
#include "cpp/ylikuutio/common/any_value.hpp"
#include "cpp/ylikuutio/hierarchy/hierarchy_templates.hpp"
// Include standard headers
#include <iostream> // std::cout, std::cin, std::cerr
#include <string> // std::string
namespace callba... |
<commit_before>// $Id: DCDFile.C,v 1.5 2000/12/20 18:39:02 anker Exp $
#include <BALL/FORMAT/DCDFile.h>
#include <BALL/MOLMEC/COMMON/snapShot.h>
using namespace std;
namespace BALL
{
DCDFile::DCDFile()
throw()
: TrajectoryFile(),
header_(),
swap_bytes_(false)
{
if (sizeof(int) != 4)
{
Log.error()... |
<commit_before>#include <QChildEvent>
#include "ButtonItem.h"
#include "LayoutItem.h"
#include "ModeItem.h"
ModeItem::ModeItem(QQuickItem *parent):
QQuickItem(parent),
m_layout(0)
{
setVisible(false);
setLayout(new LayoutItem());
}
ModeItem::~ModeItem()
{
}
LayoutItem *ModeItem::layout() const
{
return m_layout... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: configinit.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: obo $ $Date: 2006-10-12 14:05:05 $
*
* The Contents of this file are m... |
<commit_before>#include "t200_thruster.h"
//#include "sub_thruster_library/seabotix_thruster.h"
#include "generic_thruster.h"
#include "sub_trajectory/ThrusterCmd.h"
#include <json/json.h>
#include <ros/ros.h>
#include <std_srvs/Empty.h>
#include <diagnostic_msgs/DiagnosticStatus.h>
#include <diagnostic_msgs/SelfTest.... |
<commit_before>#include <gtest/gtest.h>
#include "../../cvmfs/util_concurrency.h"
class DummyLocker {
public:
DummyLocker() : locked(false) {}
void Lock() const {
locked = true;
}
void Unlock() const {
locked = false;
}
public:
mutable bool locked;
};
TEST(T_UtilConcurrency, ArbitraryLockGura... |
<commit_before>/*!
\copyright (c) RDO-Team, 2013
\file app/rdo_studio/src/plugins/plugin_loader.cpp
\author Чернов Алексей ([email protected])
\date 22.09.2013
\brief
\indent 4T
*/
// ---------------------------------------------------------------------------- PCH
// ---... |
<commit_before>/*
Copyright (c) 2003-2012, Arvid Norberg
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 of ... |
<commit_before>/* Copyright 2017 The TensorFlow 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
Unless required by appl... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>#include <itkImageRegionConstIterator.h>
#include "rtkSheppLoganPhantomFilter.h"
#include "rtkDrawSheppLoganFilter.h"
#include "rtkFDKConeBeamReconstructionFilter.h"
#include "rtkConstantImageSource.h"
#include "rtkDisplacedDetectorImageFilter.h"
template<class TImage>
void CheckImageQuality(typename T... |
<commit_before>#include "Block.h"
#include "DataSource.h"
#include "FilesystemException.h"
#include <cerrno>
#include <unistd.h>
using std::exception;
namespace RT11FS {
Block::Block(int sector, int count)
: sector(sector)
, count(count)
, dirty(false)
, refcount(0)
{
data.resize(count * SECTOR_SIZE);
}
... |
<commit_before>#include "IdDictionary.hpp"
#include <ros/console.h>
using namespace std;
IdDictionary::IdDictionary()
{
translated = false;
}
bool IdDictionary::contains(int n)
{
mutex.lock();
for (vector<int>::iterator it = ids.begin(); it != ids.end(); it++) {
if (*it = n) {
mutex.unlock();
return tr... |
<commit_before>#include "config.h"
#include <iostream>
#include "ed/connectors/geopal_parser.h"
#include "utils/timer.h"
#include "utils/init.h"
#include <fstream>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include "utils/exception.h"
#in... |
<commit_before>/*
* Convert any file descriptor to a pipe by splicing.
*
* author: Max Kellermann <[email protected]>
*/
#ifdef __linux
#include "istream_pipe.hxx"
#include "istream_internal.hxx"
#include "fd_util.h"
#include "direct.hxx"
#include "pipe_stock.hxx"
#include "stock.hxx"
#include "gerrno.h"
#include "po... |
<commit_before>
#include "app/gibbs/gibbs_sampling.h"
#include "app/gibbs/single_node_sampler.h"
#include "io/pb_parser.h"
#include "common.h"
#include <unistd.h>
#include <fstream>
#include "timer.h"
void load_fg(dd::FactorGraph * const _p_fg, const dd::CmdParser & cmd, const int & nodeid){
std::cout << "LOADING F... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief dispatcher thread
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version ... |
<commit_before>/*
* This file is part of signon
*
* Copyright (C) 2009-2011 Nokia Corporation.
*
* Contact: Aurel Popirtac <[email protected]>
* Contact: Alberto Mardegan <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of... |
<commit_before>// This file is part of the dune-stuff project:
// https://users.dune-project.org/projects/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_TEST_TOOLS_HH
#define DUNE_STUFF_TEST_TOOLS_HH
#incl... |
<commit_before>#define BOOST_TEST_MODULE "test_serialize_file"
#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST
#include <boost/test/unit_test.hpp>
#else
#define BOOST_TEST_NO_LIB
#include <boost/test/included/unit_test.hpp>
#endif
#include <toml.hpp>
#include <iostream>
#include <fstream>
BOOST_AUTO_TEST_CASE(test_example)
{... |
<commit_before>/**
* This is code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#include <vector>
#include "maropuparser.h"
#include "util.h"
#include "entropy.h"
#include "deltaio.h"
void message(const char * prog) {
cerr <... |
<commit_before>#include <algorithm>
#include <map>
#include <string>
#include "Prefetch.h"
#include "IRMutator.h"
#include "Bounds.h"
#include "Scope.h"
#include "Util.h"
namespace Halide {
namespace Internal {
using std::map;
using std::string;
using std::vector;
namespace {
// We need to be able to make loads fr... |
<commit_before>// Copyright (c) 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 "net/third_party/quiche/src/quic/core/quic_bandwidth.h"
#include "net/third_party/quiche/src/quic/core/quic_time.h"
#include "... |
<commit_before>/**********************************************************************
* $Id$
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2005-2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU ... |
<commit_before>/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
<commit_before>/*!
\copyright (c) RDO-Team, 2011
\file rdofile.cpp
\authors Урусов Андрей ([email protected])
\authors Пройдаков Евгений ([email protected])
\date 07.11.2020
\brief
\indent 4T
*/
// ---------------------------------------------------------------------------- PCH
// ----... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.