text stringlengths 54 60.6k |
|---|
<commit_before>
#pragma once
#include "numerics/frequency_analysis.hpp"
#include <algorithm>
#include <functional>
#include <vector>
#include "base/tags.hpp"
#include "geometry/grassmann.hpp"
#include "geometry/hilbert.hpp"
#include "numerics/poisson_series_basis.hpp"
#include "numerics/root_finders.hpp"
#include "... |
<commit_before>
#pragma once
#include "numerics/frequency_analysis.hpp"
#include <algorithm>
#include <functional>
#include <vector>
#include "base/status.hpp"
#include "base/tags.hpp"
#include "geometry/grassmann.hpp"
#include "geometry/hilbert.hpp"
#include "numerics/poisson_series_basis.hpp"
#include "numerics/r... |
<commit_before>#ifndef PARAMETERHANDLER_HH_INCLUDED
#define PARAMETERHANDLER_HH_INCLUDED
#include <fstream>
#include <ostream>
#include <map>
/**
* \brief class processing parameter file
*
* \c ParameterHandler reads a parameter file once and stores all found values internally
**/
class ParameterHandler
{
... |
<commit_before>#ifndef CLOVER_UTIL_PROFILING_HPP
#define CLOVER_UTIL_PROFILING_HPP
#include "build.hpp"
#include "util/preproc_join.hpp"
#include <thread>
// No profiling on windows due to odd crashes with mingw 4.8.2
#define PROFILING_ENABLED (ATOMIC_PTR_READWRITE == true && OS != OS_WINDOWS)
namespace clover {
na... |
<commit_before>#include <Refal2.h>
namespace Refal2 {
//-----------------------------------------------------------------------------
// CProgram
CProgram::CProgram( int numberOfModules ) :
modulesSize( numberOfModules ),
modules( new CRuntimeModule[modulesSize] ),
emptyFunction( new CEmptyFunction )
{
assert( m... |
<commit_before>#include <sstream>
#include <iostream>
#include <fstream>
#include <vector>
#include <boost/program_options.hpp>
#include <boost/program_options/variables_map.hpp>
#include "filelib.h"
#include "stringlib.h"
#include "sparse_vector.h"
#include "scorer.h"
#include "viterbi_envelope.h"
#include "inside_o... |
<commit_before>/*
* Copyright (C) 2008-2010 The QXmpp developers
*
* 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 Publi... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2018. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "../Time/Duration.h"
#include "Common.h"
#include "TimeOutException.h"
#include "WaitableEvent.h"
using namespace Stroika::Foundation;
using namespace Stroika::Foundation::Execution;... |
<commit_before>//
// This program will take a flow XML and run it in dummy mode.
// This means that it will run every node with a dummy function and
// exercise the flow with all of its guard acquisitions.
// It can be used to test the flow for bottlenecks or other effects.
// It may also indicate interesting effects... |
<commit_before>//
// Copyright 2014, 2015 Razer 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... |
<commit_before>#include <numeric>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <set>
#include <csignal>
#include <cmath>
#include <ctgmath>
#include "sdd/sdd.hh"
#include "sdd/tools/size.hh"
#include "sdd/tools/nodes.hh"
#include "sdd/tools/arcs.hh"
#include "s... |
<commit_before>// This file is part of Poseidon.
// Copyleft 2020, LH_Mouse. All wrongs reserved.
#ifndef POSEIDON_SOCKET_ABSTRACT_SOCKET_
#define POSEIDON_SOCKET_ABSTRACT_SOCKET_
#include "../fwd.hpp"
#include "enums.hpp"
#include "socket_address.hpp"
namespace poseidon {
class Abstract_Socket
: public ::asteria... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2011-2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public ... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2011-2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public ... |
<commit_before>
#include "util/zorba.h"
#include "store/naive/qname_pool.h"
namespace xqp
{
QNamePool* QNameImpl::theQNamePool = NULL;
//const xqp_unsignedLong QNamePool::MAX_CACHE_SIZE = 65536;
const float QNamePool::DEFAULT_LOAD_FACTOR = 0.6;
//////////////////////////////////////////////////////////////////////... |
<commit_before>/**********************************************************
* Author : Hsin-Yi Chou
* Email : [email protected]
* Last modified : 2015-07-22 16:29
* Filename : YiProdNtuple.C
* Description :
* *******************************************************/
#ifndef __YiProdNtuple_C__
#def... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE... |
<commit_before>// Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#include "core/CompileConfig.h"
#if OUZEL_SUPPORTS_DIRECTSOUND
#include <thread>
#include <dsound.h>
#include "audio/AudioDevice.hpp"
namespace ouzel
{
namespace audio
{
class AudioDeviceDS... |
<commit_before>/*
* (C) 2015 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "tests.h"
#if defined(BOTAN_HAS_COMPRESSION)
#include <botan/compression.h>
#endif
namespace Botan_Tests {
#if defined(BOTAN_HAS_COMPRESSION)
namespace {
const char* text_str =
"'Twas... |
<commit_before>/*
* header.cpp
*
* Created on: Aug 24, 2015
* Author: zmij
*/
#include <tip/http/common/header.hpp>
#include <boost/spirit/include/qi.hpp>
#include <tip/http/common/grammar/header_generate.hpp>
namespace tip {
namespace http {
std::ostream&
operator << (std::ostream& out, header const& val... |
<commit_before>/*
*
* StellarLikeBlockchainExplorerAccountSynchronizer.cpp
* ledger-core
*
* Created by Pierre Pollastri on 10/07/2019.
*
* The MIT License (MIT)
*
* Copyright (c) 2019 Ledger
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated d... |
<commit_before>/*********************************************************************************
*
* Copyright (c) 2017 Josef Adamsson
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2017 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or ... |
<commit_before>/*
* caosVM_flow.cpp
* openc2e
*
* Created by Alyssa Milburn on Sun May 30 2004.
* Copyright (c) 2004 Alyssa Milburn. All rights reserved.
*
* 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 ... |
<commit_before>#pragma once
#include <vector>
#include <cmath>
#include <utility>
#include <algorithm>
#include "command.hpp"
#include "tank.hpp"
#include "state.hpp"
class TankManager {
public:
void Act();
Tank getClosestEnemyTank(Tank tank);
double getDistance(Tank tank1, Tank tank2);
void aimAt(Tank shoote... |
<commit_before>/*
* Copyright (c) 2013 Sacha Refshauge
*
*/
// Blackberry implementation of the framework.
#include <pwd.h>
#include <unistd.h>
#include <string>
#include "BlackberryMain.h"
// Simple implementations of System functions
void SystemToast(const char *text) {
dialog_instance_t dialog = 0;
dialog_c... |
<commit_before>#include <iostream>
#include <vector>
using std::begin; using std::end; using std::cout; using std::endl; using std::vector; using std::size_t;
bool compare(const int lhs[], size_t lsize, const int rhs[], size_t rsize)
{
if (lsize != rsize) return false;
for (int i = 0; i != lsize; ++i)
... |
<commit_before>//
// ex9_34.cpp
// Exercise 9.34
//
// Created by pezy on 12/3/14.
// Copyright (c) 2014 pezy. All rights reserved.
//
// @Brief Assuming vi is a container of ints that includes even and odd
// values, predict the behavior of the following loop. After you've
// analyzed this loo... |
<commit_before>//! @file Exercise 9.49
//! @author pezy
//! @date 2014-12-05
//! @Brief A letter has an ascender if, as with d or f, part of the letter
//! extends above the middle of the line.
// A letter has a descender if, as with p or g, part of the letter
// extends below the line.
// ... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief I2C EEPROM ドライバー
@author 平松邦仁 ([email protected])
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RL78/blob/master/LICE... |
<commit_before>#include "ThermalContactMaterialsAction.h"
#include "ThermalContactAuxVarsAction.h"
#include "Factory.h"
static unsigned int n = 0;
template<>
InputParameters validParams<ThermalContactMaterialsAction>()
{
MooseEnum orders("CONSTANT, FIRST, SECOND, THIRD, FOURTH", "FIRST");
InputParameters param... |
<commit_before>#include "terrainedit.h"
#include "terrain.h"
#include <QRect>
inline uint qHash(const QPoint &key, uint seed)
{
return qHash(key.x(), seed) ^ (qHash(key.y(), seed) >> 8 | qHash(~key.y(), seed) << 24);
}
TerrainEdit::TerrainEdit(QObject *parent) :
QObject(parent),
done_(false)
{
}
Terrai... |
<commit_before>// set of classes to compare the performance of STL vector versus
// native Root TClonesArray.
// See main program bench.cxx
#include "TRandom.h"
#include "TFile.h"
#include "TTree.h"
#include "TClass.h"
//the next include must be the last one on systems like Windows/NT
#include "TBench.h"
THit hit;... |
<commit_before>#include <QtCore/QPair>
#include <QtCore/QStack>
#include "generatorBase/masterGeneratorBase.h"
#include <qrutils/outFile.h>
#include <qrutils/stringUtils.h>
#include <qrtext/languageToolboxInterface.h>
#include "readableControlFlowGenerator.h"
#include "gotoControlFlowGenerator.h"
#include "generator... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2013 Gauthier Brun <[email protected]>
// Copyright (C) 2013 Nicolas Carre <[email protected]>
// Copyright (C) 2013 Jean Ceccato <[email protected]>
// Copyright (C) 2013 Pierr... |
<commit_before>//------------------------------------------------------------------------------
// TestApp.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "Core/App.h"
#include "Gfx/Gfx.h"
#include "Gfx/Util/RawMeshLoader.h"
#include "Gfx/Util/ShapeB... |
<commit_before>//------------------------------------------------------------------------------
// TestApp.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "Core/Main.h"
#include "Gfx/Gfx.h"
#include "Assets/Gfx/ShapeBuilder.h"
#include "glm/mat4x4.hp... |
<commit_before>/***********************************************************************
test/string.cpp - Tests the behavior of mysqlpp::String, particularly
its data conversion methods.
Copyright (c) 2007-2008 by Educational Technology Resources, Inc.
Others may also hold copyrights on code in this file. See the... |
<commit_before>/***********************************************************************
test/string.cpp - Tests the behavior of mysqlpp::String, particularly
its data conversion methods.
Copyright (c) 2007-2008 by Educational Technology Resources, Inc.
Others may also hold copyrights on code in this file. See the... |
<commit_before>#include <common/defaults.h>
#include <common/list.h>
#include <common/map.h>
#include <common/log.h>
#include <common/string.h>
#include <gui/gui.h>
#include <gdb/gdb.h>
#include <gdb/result.h>
#include <gdb/memory.h>
#include <gdb/variable.h>
#include <user_cmd/cmd.h>
#include <user_cmd/subcmd.hash.h>
... |
<commit_before>
#include "do_sort.h"
#define DATA_SIZE 20
#define DUMP_DATA 0
using namespace std;
// Check whether the list is correctly sorted.
bool is_sorted(do_sort::sort* ss) {
for (int i = 0; i < ss->size() - 1; ++i)
if ((*ss)[i] > (*ss)[i + 1])
return false;
return true;
}
// Report the testin... |
<commit_before>#include <ctre.hpp>
#include <iostream>
static constexpr auto pattern = ctll::fixed_string("(?<first>[0-9])[0-9]++");
int main() {
using namespace std::string_view_literals;
auto input = "123,456,768"sv;
#if __cpp_nontype_template_parameter_class
for (auto match: ctre::range<"(?<first>[0-9])[0... |
<commit_before>//
// Created by kanairen on 2016/06/14.
//
#include "TestLayer.h"
#include "TestSoftMaxLayer.h"
#include "TestGridLayer.h"
#include "TestConvLayer.h"
#include "TestMaxPoolLayer.h"
#include "TestModel.h"
int main() {
// test Softmax Layer
sm_layer::test_init();
sm_layer::test_forward();
... |
<commit_before>// SPDX-FileCopyrightText: 2014 Félix Robles <[email protected]>
// SPDX-FileCopyrightText: 2021 Eduardo Robles <[email protected]>
//
// SPDX-License-Identifier: AGPL-3.0-only
#include <agora-airgap/ElGamal.h>
#include <agora-airgap/encrypt.h>
#include <agora-airgap/sha256.h>
#include <cryptopp/crypt... |
<commit_before>#include <glog/logging.h>
#include <cstring>
#include <map>
#include <string>
#include <vector>
#include "boost/algorithm/string.hpp"
#include "caffe/caffe.hpp"
using caffe::Blob;
using caffe::Caffe;
using caffe::Net;
using caffe::Layer;
using caffe::shared_ptr;
using caffe::Timer;
using caffe::vector... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum 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 option) any later version.
cpp-ethereum is dis... |
<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 <windows.h>
#include "base/basictypes.h"
#include "WTF/ListHashSet.h"
#include "WTF/Vector.h"
#include "SkiaFontWin.h"... |
<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/browser/ui/gtk/extensions/native_app_window_gtk.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/... |
<commit_before>/*
Copyright (c) 2007-2008, Python File Format Interface
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, ... |
<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>// 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/time/time.h"
#include "chrome/test/base/chrome_render_view_test.h"
#include "components/autofill/content/common/autofill... |
<commit_before>#include "card.hpp"
#include <iostream>
void card::assign(rank r, suit s) {
rank_ = r;
suit_ = s;
}
bool operator==(card a, card b) {
return a.get_rank() == b.get_rank() and
a.get_suit() == b.get_suit();
}
bool operator!=(card a, card b) {
return not (a == b);
}
std::ostr... |
<commit_before>/*
Упорядочить три числа в порядке возрастания.
C++ версия
*/
#include <iostream> // подключение ввода/вывода в консоль
#include <clocale> // Для Windows - подключение вывода русских букв в консоль
int main()
{
std::setlocale(LC_ALL, "RUS");
int x, y, z;
std::cout << "x: ";
std::... |
<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>#include <iostream>
#include <map>
#include <memory>
#include <string>
#include <vector>
#include <chrono>
#include "aggregate_bandwidth.cpp"
#include "aggregate_bandwidth.hpp"
#include "bytes_object.hpp"
#include "log_results.hpp"
#include <derecho/conf/conf.hpp>
#include <derecho/core/derecho.hpp>
#in... |
<commit_before>#include <boost/test/unit_test.hpp>
#include <fstream>
#include <streambuf>
#include <string>
// xerces
#include <xercesc/sax2/SAX2XMLReader.hpp>
#include <xercesc/sax2/XMLReaderFactory.hpp>
#include <xercesc/sax2/DefaultHandler.hpp>
#include <xercesc/util/XMLString.hpp>
// wiki xml dump lib
#include ... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>/*
Copyright Eli Dupree and Isaac Dupree, 2014
This file is part of Lasercake.
Lasercake 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
Lic... |
<commit_before><commit_msg>Update factory classes<commit_after><|endoftext|> |
<commit_before>#include "Genes/Look_Ahead_Gene.h"
#include <cassert>
#include <memory>
#include <algorithm>
#include "Genes/Gene.h"
#include "Utility.h"
#include "Game/Board.h"
#include "Game/Clock.h"
class Move;
Look_Ahead_Gene::Look_Ahead_Gene() :
mean_game_length(50),
game_length_uncertainty(0.5),
sp... |
<commit_before>#include "Genes/Look_Ahead_Gene.h"
#include <cmath>
#include <cassert>
#include <memory>
#include "Genes/Gene.h"
#include "Utility.h"
#include "Game/Board.h"
#include "Game/Clock.h"
#include "Moves/Move.h"
Look_Ahead_Gene::Look_Ahead_Gene() :
mean_game_length(50),
game_length_uncertainty(0.5)... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009-2013, 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
// ... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2009 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to ... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of cha... |
<commit_before>#include <set>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <unistd.h>
#include <uuid/uuid.h>
#include <vector>
#include <wchar.h>
#include <scxcorelib/scxcmn.h>
#include <scxcorelib/scxprocess.h>
#include <scxcorelib/stringaid.h>
#include <testutils/scxunit.h>
#include <testutils/p... |
<commit_before>#include "../../battery.h"
#include "../../../utils.h"
#define BATTERY_BASE_DIR "/proc/acpi/battery/"
AspectsRegister Battery::aspectsRegister("Battery", getInstance());
Battery * Battery::battery = 0;
Battery * Battery::getInstance() {
if ( battery == 0 )
battery = new Battery();
return battery;... |
<commit_before>// Copyright (c) 2014 Dims dev-team
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "addressToCoins.h"
#include <boost/foreach.hpp>
//#include <stdint.h>
namespace tracker
{
template <class K, clas... |
<commit_before>/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015
Vladimír Vondruš <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal... |
<commit_before>/*
Copyright 2013 SINTEF ICT, Applied Mathematics.
*/
extern int yylex();
extern int yyparse();
#include "SymbolTable.hpp"
#include "CheckASTVisitor.hpp"
#include "PrintASTVisitor.hpp"
#include "PrintEquelleASTVisitor.hpp"
#include "PrintCPUBackendASTVisitor.hpp"
#include "PrintMRSTBackendASTVisitor.... |
<commit_before>// Copyright (C) 2010 and 2011 Marcin Arkadiusz Skrobiranda.
// 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 copyri... |
<commit_before>/**
* Copyright 2014-2015 MongoDB, 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 app... |
<commit_before>#ifndef ITER_ACCUMULATE_H_
#define ITER_ACCUMULATE_H_
#include "internal/iterbase.hpp"
#include <utility>
#include <iterator>
#include <initializer_list>
#include <functional>
#include <type_traits>
#include <memory>
namespace iter {
namespace impl {
template <typename Container, typename Accumu... |
<commit_before>/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
*/
#include <Onsang/Log.hpp>
#include <Onsang/System/Session.hpp>
#include <Hord/Cmd/Defs.hpp>
#include <Hord/Cmd/Unit.hpp>
#include <iomanip>
#include <Onsang/detail/gr_core.hpp>
namespace Onsang {
namespace System {
#def... |
<commit_before>#include <iostream>
class MyClass
{
int m_iID = -1;
public:
MyClass(int iID) : m_iID(iID)
{
std::cout << "Built and instance with ID: " << m_iID << std::endl;
}
MyClass() : MyClass(42)
{
std::cout << "Delegated construction" << m_iID << std::endl;
}
};
int main(int argc, char* argv[])... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2009-05-12 19:56:03 +0200 (Di, 12 Mai 2009) $
Version: $Revision: 17179 $
Copyright (c) German Cancer Research Center, Division of Medic... |
<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>/*-----------------------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2015 OSRE ( Open Source Render Engine ) by Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated docum... |
<commit_before>#pragma XOD evaluate_on_pin disable
#pragma XOD evaluate_on_pin enable input_UPD
/*
* Datasheet can be found at
* https://cdn-shop.adafruit.com/datasheets/DS18B20.pdf
*
* Most code comments are quotes from that datasheet
*/
enum {
CMD_CONVERT = 0x44,
CMD_READ_SCRATCHPAD = 0xBE,
CMD_... |
<commit_before>/*
Copyright (c) 2007 Tobias Koenig <[email protected]>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any... |
<commit_before>/*
* rpi_spi.cpp
*
* Created on: 2016. 2. 26.
* Author: hwang
*/
#include "rpi_spi.hpp"
#include <cossb.hpp>
#include <string>
#include <3rdparty/bcm2835.h>
#include <tuple>
using namespace std;
#define PIN RPI_BPLUS_GPIO_J8_05
using namespace std;
USE_COMPONENT_INTERFACE(rpi_spi)
rpi_sp... |
<commit_before>// Copyright 2017 Netherlands Institute for Radio Astronomy (ASTRON)
// Copyright 2017 Netherlands eScience Center
//
// 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>#ifndef INCLUDE_ACKWARD_CORE_PROPERTY_HPP
#define INCLUDE_ACKWARD_CORE_PROPERTY_HPP
#include <iostream>
#include <string>
#include <boost/call_traits.hpp>
#include <ackward/core/ExceptionTranslator.hpp>
#include <ackward/core/Object.hpp>
namespace ackward {
namespace core {
/** Property<T> is a valu... |
<commit_before>/*
* AscEmu Framework based on ArcEmu MMORPG Server
* Copyright (C) 2014-2015 AscEmu Team <http://www.ascemu.org/>
* Copyright (C) 2008-2012 ArcEmu Team <http://www.ArcEmu.org/>
* Copyright (C) 2005-2007 Ascent Team
*
* This program is free software: you can redistribute it and/or modify
* it unde... |
<commit_before>#include <world/world.hpp>
#include <limits>
#include <cstring>
namespace MCPP {
Vector<Byte> ColumnContainer::ToChunkData (const ColumnID & id) const {
// First we need to convert the sane
// in memory format to the insane
// Mojang format
Word size=(
// One byte per block
// for... |
<commit_before>#include <x0/io/fileinfo_service.hpp>
#include <x0/strutils.hpp>
#include <boost/tokenizer.hpp>
namespace x0 {
fileinfo_service::fileinfo_service(struct ::ev_loop *loop) :
loop_(loop),
#if defined(HAVE_SYS_INOTIFY_H)
handle_(),
inotify_(loop_),
wd_(),
#endif
cache_(),
etag_consider_mtime_(true),... |
<commit_before>#include <vector>
#include <fstream>
#include <string>
#include <sys/stat.h>
#include <Windows.h>
char appplication_folder[1024];
void set_application_folder( char const* application_path )
{
int length = strrchr( application_path, '\\' ) - application_path + 1;
memcpy( appplication_folder, appl... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tbxcustomshapes.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: obo $ $Date: 2006-10-12 12:03:15 $
*
* The Contents of this file a... |
<commit_before>#include <unistd.h>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <vector>
#include <ctime>
#include <string>
#include <climits>
#include <queue>
#include "myers.h"
#include "SimpleEditDistance.h"
using namespace std;
int readFastaSequences(const char* path, vector< vector<unsigned... |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// varlen.cpp
//
// Identification: src/backend/common/varlen.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===--------------------------------------... |
<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>/*
* Copyright (C) 2015 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>/*
* Copyright (C) 2009, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#include <config.h... |
<commit_before>#include <config.h>
#include <assert.h>
#include <boost/concept/usage.hpp>
#include <boost/format.hpp>
#include <dune/common/exceptions.hh>
#include <dune/fem/io/file/dataoutput.hh>
#include <dune/fem/io/parameter.hh>
#include <dune/istl/scalarproducts.hh>
#include <dune/istl/solvers.hh>
#include <dune/m... |
<commit_before>/* Copyright 2020 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>#pragma once
#include "helpers.hpp"
#include "priority_queue.hpp"
using std::pair;
using std::make_pair;
namespace search
{
namespace ds
{
struct OldKeys : public unordered_map<Cell, Key, Cell::Hasher>
{
auto update_with(pair<Cell, Key> cell_key_pair... |
<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/login_prompt.h"
#include "app/l10n_util.h"
#include "base/command_line.h"
#include "base/lock.h"
#include "ch... |
<commit_before>//Copyright (c) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include "LinePolygonsCrossings.h"
#include <algorithm>
#include "../utils/polygonUtils.h"
#include "../sliceDataStorage.h"
#include "../utils/SVG.h"
namespace cura {
LinePolygonsCrossings::Crossing... |
<commit_before>#include "tango-gl-renderer/axis.h"
#include "tango-gl-renderer/camera.h"
#include "tango-gl-renderer/cube.h"
#include "tango-gl-renderer/frustum.h"
#include "tango-gl-renderer/gl_util.h"
#include "tango-gl-renderer/grid.h"
#include "tango-gl-renderer/trace.h"
#include "dance_steps.h"
#include "tango_da... |
<commit_before>// Copyright 2015-2018 Elviss Strazdins. All rights reserved.
#pragma once
#include <vector>
#include "math/Box3.hpp"
#include "math/Plane.hpp"
#include "math/Vector4.hpp"
namespace ouzel
{
class ConvexVolume
{
public:
ConvexVolume()
{
}
ConvexVolume(const ... |
<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.org.
*
* ... |
<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 "base/string_util.h"
#include "chrome/browser/worker_host/worker_service.h"
#include "chrome/common/chrome_switches.h"
#includ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.