text stringlengths 54 60.6k |
|---|
<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) 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 "remoting/jingle_glue/ssl_socket_adapter.h"
#include "base/base64.h"
#include "base/compiler_specific.h"
#include "base/messa... |
<commit_before>#include "audiostreamer.h"
#include "audiocallback.h"
#include <QSettings>
using namespace std;
/*
* Class to handle the RtAudio soundcard API.
*/
AudioStreamer::AudioStreamer(QObject *parent) : QObject(parent)
{
QSettings settings;
unsigned int processingInterval = settings.value("audiostrea... |
<commit_before>#include <iostream> /* allows to perform standard input and output operations */
#include <stdio.h> /* Standard input/output definitions */
#include <stdint.h> /* Standard input/output... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: WW8PieceTableImpl.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hbrinkm $ $Date: 2006-11-15 16:36:44 $
*
* The Contents of this ... |
<commit_before>// Python includes
#include <Python.h>
// Stl includes
#include <fstream>
// Qt includes
#include <QResource>
#include <QMetaType>
#include <QFile>
#include <QDir>
// hyperion util includes
#include <utils/jsonschema/QJsonSchemaChecker.h>
#include <utils/FileUtils.h>
#include <utils/Components.h>
// ... |
<commit_before><commit_msg>-Werror,-Wunused-private-field (Clang towards 3.2)<commit_after><|endoftext|> |
<commit_before>/*
* This file is part of the statismo library.
*
* Author: Marcel Luethi (marcel.luethi@unibas.ch)
*
* Copyright (c) 2011 University of Basel
* All rights reserved.
*
* Statismo is licensed under the BSD licence (3 clause) license
*/
#include "LowRankGPModelBuilder.h"
#include "StatisticalMo... |
<commit_before>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>// ======================================================================== //
// Copyright 2015-2019 Ingo Wald //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/******************************************************************************
* Copyright (c) 2012, Howard Butler (hobu.inc@gmail.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions a... |
<commit_before>/* ux++ - ux implementation for C++ */
/* LICENSE - The MIT License (MIT)
Copyright (c) 2013 Tomona Nanase
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, inc... |
<commit_before>//
// version.hpp
// ***********
//
// Copyright (c) 2018 Sharon W (sharon at aegis dot gg)
//
// Distributed under the MIT License. (See accompanying file LICENSE)
//
#pragma once
#if !defined(AEGIS_VERSION_LONG)
#define AEGIS_VERSION_LONG 0x00020000
#define AEGIS_VERSION_SHORT 020000
#define AEGIS_V... |
<commit_before>//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
// YYYYMMPP
// where:
// YYYY = 4-digit year number
// MM = 2-digit month number
// PP = 2-digit patch number
#define ARMNN_VERSION "20190200"
<commit_msg>IVGCVSW-3087 Changing version to 19.05... |
<commit_before>#include "common/upstream/eds.h"
#include "envoy/api/v2/eds.pb.validate.h"
#include "envoy/common/exception.h"
#include "envoy/stats/scope.h"
#include "common/common/fmt.h"
#include "common/config/metadata.h"
#include "common/config/subscription_factory.h"
#include "common/config/utility.h"
#include "c... |
<commit_before>#ifndef CAFFE_UTIL_IO_H_
#define CAFFE_UTIL_IO_H_
#include <string>
#include "google/protobuf/message.h"
#include "hdf5.h"
#include "hdf5_hl.h"
#include "caffe/blob.hpp"
#include "caffe/proto/caffe.pb.h"
#define HDF5_NUM_DIMS 4
namespace leveldb {
// Forward declaration for leveldb::Options to be us... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>#pragma once
#include <random>
using std::random_device;
using std::mt19937_64;
namespace hop {
class Random {
public:
static mt19937_64 RNG;
protected:
static random_device RANDOM_DEVIDE;
};
}
<commit_msg>devel: Removed "using ..." notation and added namespaces directly<commit... |
<commit_before>#ifndef LIBICS3_ICS3_EEPPARAM_H_
#define LIBICS3_ICS3_EEPPARAM_H_
#include"ics3/check_invalid.hpp"
#include"ics3/baudrate.hpp"
#include<array>
namespace ics {
class EepParam {
public:
using type = uint16_t;
using size_type = std::size_t;
using TargetContainer = std::array<uint8_t, 64>;... |
<commit_before>/* Copyright (c) 2015-present Advanced Micro Devices, Inc.
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, c... |
<commit_before>/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <guido.tack@monash.edu>
*/
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
/**
* @namespace nix::util
... |
<commit_before>/*
* Copyright 2010,
* François Bleibel,
* Olivier Stasse,
*
* CNRS/AIST
*
* This file is part of sot-core.
* sot-core 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 ver... |
<commit_before>#include <Mescaline/Audio/Synth.hpp>
using namespace Mescaline::Audio;
Synth::Synth( Environment& env
, const SynthDef& synthDef
, const NodeId& id
, MescalineSynth* synth
, size_t numAudioInputs
, AudioInputConnection* audioInputConnections
... |
<commit_before>//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "ExecutionContext.h"
#include... |
<commit_before>//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "ExecutionContext.h"
#include... |
<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 "views/controls/tabbed_pane/native_tabbed_pane_win.h"
#include <vssym32.h>
#include "app/l10n_util_win.h"
#include "app/reso... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TX... |
<commit_before>/*!
@file
@copyright Edouard Alligand and Joel Falcou 2015-2017
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_BRIGAND_SEQUENCES_SET_HPP
#define BOOST_BRIGAND_SEQUENCES_SET_HPP
#include <brigand/types/type.hpp>
#include <brigand/sequences/append.hpp>
#i... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/shared/mss_const... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/sbe/p9_get_sbe_msg_register... |
<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 "chrome/browser/search_engines/search_terms_data.h"
#include "base/logging.h"
#include "base/threading/thread_restrictions.h"... |
<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/tab_contents/thumbnail_generator.h"
#include <algorithm>
#include "base/histogram.h"
#include "base/time.h"
... |
<commit_before>/* Copyright 2017 The Apollo Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicab... |
<commit_before><commit_msg>Make it compile<commit_after><|endoftext|> |
<commit_before># pragma once
# include <Siv3D.hpp>
# include "AscMessageManager.hpp"
namespace asc
{
using namespace s3d;
class Novel
{
private:
std::unique_ptr<MessageManager> m_messageManager;
public:
Novel() :
m_messageManager(std::make_unique<MessageManager>()) {}
virtual ~Novel() = default;
... |
<commit_before>/*
* Copyright 2015 Cloudius Systems
*/
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include <algorithm>
#include <seastar/core/thread.hh>
#include <seastar/tests/test-utils.hh>
#include "utils/logalloc.hh"
#include "utils/managed_ref.hh"
#include "utils/managed_bytes.hh"
#inclu... |
<commit_before>#include "dataraptor.h"
#include "routing.h"
#include "routing/raptor_utils.h"
namespace navitia { namespace routing {
void dataRAPTOR::load(const type::PT_Data &data)
{
Label label;
label.dt = DateTimeUtils::inf;
label.boarding = nullptr;
label.type = boarding_type::uninitialized;
... |
<commit_before><commit_msg>Added debug from the plane! --kkd<commit_after><|endoftext|> |
<commit_before><commit_msg>Fixed some MSVC incompatibilities. +++<commit_after><|endoftext|> |
<commit_before>#include "gmock/gmock.h"
#include "Game.h"
#include "Human.h"
using namespace testing;
using namespace std;
TEST(AGame, GetWhoPlaysFirst) {
Human PlayerOne;
Human PlayerTwo;
Game game(PlayerOne, PlayerTwo);
GenericPlayer &player = game.whoPlaysFirst();
GenericPlayer &playerOne = game.getPlay... |
<commit_before><commit_msg>Fix dropping of mailto: Urls. Needs an up-to-date kdelibs. BUG: 164328<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: dlgedmod.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: kz $ $Date: 2004-10-04 19:41:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*
* cam_openssag.cpp
* PHD Guiding
*
* Created by Craig Stark.
* Copyright (c) 2009 Craig Stark.
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modification, a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docsh.hxx,v $
*
* $Revision: 1.36 $
*
* last change: $Author: obo $ $Date: 2006-10-11 08:47:01 $
*
* The Contents of this file are made a... |
<commit_before>#include <iostream>
#include <iomanip>
#include <algorithm>
#include <toml/region.hpp>
#include <toml/result.hpp>
#define TOML11_TEST_LEX_ACCEPT(lxr, tkn, expct) \
do { \
const std::string token ... |
<commit_before>// you can use includes, for example:
// #include <algorithm>
// you can write to stdout for debugging purposes, e.g.
// cout << "this is a debug message" << endl;
int solution(vector<int> &A, vector<int> &B) {
// write your code in C++11
// create an empty stack for alive fishes
vector<int... |
<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 "mojo/services/view_manager/server_view.h"
#include "mojo/services/view_manager/server_view_delegate.h"
#include "mojo/services/vi... |
<commit_before>//
// ex10_05.cpp
// Exercise 10.5
//
// Created by pezy on 11/9/14.
// Copyright (c) 2014 pezy. All rights reserved.
//
// @Brief In the call to equal on rosters, what would happen if both rosters held C-style strings, rather than library strings?
// @Answer It's the same as `std::string`
#incl... |
<commit_before>//
// ex12_23.cpp
// Exercise 12.23
//
// Created by pezy on 12/30/14.
//
// Write a program to concatenate two string literals, putting the result in a dynamically allocated array of char.
// Write a program to concatenate two library strings that have the same value as the literals used in the f... |
<commit_before>#include "SoundManager.h"
#include <sndfile.hh>
#include "Audio.h"
#include <al.h>
#include <alc.h>
namespace aie {
SoundManager* SoundManager::m_instance = nullptr;
static int getSampleSize(int format) {
int subFormat = format & SF_FORMAT_SUBMASK;
switch (subFormat) {
case SF_FORMAT_PCM_16: retur... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_MAPPER_BLOCK_HH
#define DUNE_GDT_MAPPER_BLOCK_HH
#include <dune/common... |
<commit_before>///
/// @file cmdoptions.cpp
/// @brief Parse command-line options for the primesieve console
/// (terminal) application.
///
/// Copyright (C) 2018 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.... |
<commit_before>// performance testing for gridding.
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <sys/time.h>
extern "C" {
#include "griddingSimple_float.h"
}
#include <static_image.h>
#include <image_io.h>
static double get_s(void) {
struct timeval tv;
gettimeofday(&tv, NULL);
r... |
<commit_before>/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>#include "mpdas.h"
#define APIKEY "a0ed2629d3d28606f67d7214c916788d"
#define SECRET "295f31c5d28215215b1503fb0327cc01"
#define CURL_MAX_RETRIES 3
#define CURL_RETRY_DELAY 3 // Seconds
CAudioScrobbler* AudioScrobbler = 0;
#define CLEANUP() _response.clear()
size_t writecb(void* ptr, size_t size, siz... |
<commit_before>#include <string>
#include "json/reader.h"
#include "json/value.h"
#include "log.h"
#include <iostream>
#include <fstream>
#include <algorithm>
#include <ctime>
#include "ace/Signal.h"
#include <ace/OS_NS_sys_stat.h>
#include <ace/Logging_Strategy.h>
#ifdef WIN32
#include <Windows.h>
#include <shlwap... |
<commit_before>// This file is part of The New Aspell
// Copyright (C) 2002 by Kevin Atkinson under the GNU LGPL license
// version 2.0 or 2.1. You should have received a copy of the LGPL
// license along with this library if you did not you can find
// it at http://www.gnu.org/.
#ifndef ASC_CTYPE__HPP
#define ASC_CT... |
<commit_before>/*
* Test Driver for Botan
*/
#include <vector>
#include <string>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <limits>
#include <memory>
#include <botan/botan.h>
#include <botan/libstate.h>
#include <botan/mp_types.h>
using namespace Botan;
#include "get... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief MAX7219 ドライバー
Copyright 2016 Kunihito Hiramatsu
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include <cstdint>
#include <... |
<commit_before>#include <tst/set.hpp>
#include <tst/check.hpp>
#include <regex>
#include <png.h>
#include <utki/span.hpp>
#include <r4/vector.hpp>
#include <papki/fs_file.hpp>
#include <svgdom/dom.hpp>
#include "../../src/svgren/config.hxx"
#include "../../src/svgren/render.hpp"
namespace{
const unsigned tolerance... |
<commit_before>// Copyright Hugh Perkins 2014 hughperkins at gmail
//
// 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 "conv/ForwardIm2Col.h"
#include "uti... |
<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 "SkPictureFlat.h"
#include "SkColorFilter.h"
#include "SkDrawLooper.h"
#include "SkMaskFilter.h"
#include "SkRasterizer.h"
#include "SkShader.h"
#incl... |
<commit_before>/* <src/capi.cpp>
*
* This file is part of the x0 web server project and is released under GPL-3.
* http://www.xzero.io/
*
* (c) 2009-2013 Christian Parpart <trapni@gmail.com>
*/
#include <x0/capi.h>
#include <x0/http/HttpServer.h>
#include <x0/http/HttpWorker.h>
#include <x0/http/HttpRequest.h>
#... |
<commit_before>/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/core/SkWriteBuffer.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkData.h"
#include "include/core/SkM44.h"
#include "include/core/... |
<commit_before>#include <iostream>
#include <string>
#include "TFile.h"
void readandtest (const std::string & fname)
{
TFile* inputFile = new TFile(fname.c_str(),"READ");
inputFile->Print();
inputFile->Close();
}
# ifndef __CINT__
int main(int argc, char ** argv)
{
if (argc != 2)
{
std::cerr << "... |
<commit_before><commit_msg>Fix DICOM import: Series sorting<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: bmkmenu.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: kz $ $Date: 2005-01-21 09:50:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkSuperquadricSource.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>/**
* Touhou Community Reliant Automatic Patcher
* Main DLL
*
* ----
*
* Breakpoints for contiguous files.
*/
#include "thcrap.h"
#include <map>
#define POST_JSON_SIZE(fr) (fr)->pre_json_size + (fr)->patch_size
int file_rep_init(file_rep_t *fr, const char *file_name)
{
size_t fn_len;
... |
<commit_before>// Copyright (c) 2015 The Brick Authors.
#include "brick/window_util.h"
#include <gtk/gtk.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include "include/internal/cef_linux.h"
#include "include/base/cef_logging.h"
#include "brick/brick_app.h"
namespace {
GList *default_ico... |
<commit_before>#include "chainerx/native/native_device.h"
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <memory>
#include "chainerx/device.h"
#include "chainerx/macro.h"
namespace chainerx {
namespace native {
std::shared_ptr<void> NativeDevice::Allocate(size_t bytesize) {
if (bytesize == 0)... |
<commit_before>#include <iostream>
#include <cstring>
#include "Memory.hpp"
#include "registerAddr.hpp"
Memory::Memory(void) {}
Memory::~Memory(void) {}
void Memory::reset(void)
{
memset(this->_m_wram, 0xFF, sizeof(_m_wram));
memset(this->_m_vram, 0xFF, sizeof(_m_vram));
memset(this->_m_oam, 0xFF, sizeof(_m_oam... |
<commit_before>/*************************************************************************
*
* $RCSfile: PolarLabelPositionHelper.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: iha $ $Date: 2004-01-17 13:10:03 $
*
* The Contents of this file are made available subject to the terms of
* either of th... |
<commit_before>#ifndef DICE_INTERPRETER_HPP_
#define DICE_INTERPRETER_HPP_
#include <array>
#include <memory>
#include <sstream>
#include <cassert>
#include "value.hpp"
#include "symbols.hpp"
#include "environment.hpp"
namespace dice
{
// compute decomposition of a random variable
class decomposition_visito... |
<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 "base/command_line.h"
#include "base/path_service.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#i... |
<commit_before>//---------------------------------------------------------------------------
// E L E N A P r o j e c t: ELENA Compiler
//
// This file contains ELENA Executive ELF Image class implementation
// supported platform: PPC64le
// (C)2021, by Aleksey Ra... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief EEPROM ドライバー
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include <cstdint>
#include "common/i2c_io.hpp"
#include "common/time.h"
na... |
<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 "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profi... |
<commit_before>#include "dcpdeclwidget.h"
#include <QGraphicsLinearLayout>
#include <QFile>
#include <MSettingsLanguageParser>
#include <MSettingsLanguageBinary>
#include <MSettingsLanguageWidget>
#include <MSettingsLanguageWidgetFactory>
#include <MGConfDataStore>
#include <MLabel>
#include <dcpdebug.h>
static cons... |
<commit_before>/*************************************************************************
*
* $RCSfile: register.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2003-04-24 13:54:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include "init.hpp"
#include <iterator>
#include <sstream>
#include "ExactMatchRule"
using namespace sprout;
BOOST_AUTO_TEST_CASE(checkDirectMatch)
{
ExactMatchRule<char, std::string> rule;
rule.setTarget("Cat");
rule.setToken("Animal");
std::stringstream str("Cat");
auto cursor ... |
<commit_before>#include "drivers/h3lis331dl.hpp"
#include "unit_config.hpp"
#include "chprintf.h"
void H3LIS331DL::init() {
// Configure (DS p. 24-28)
txbuf[0] = h3lis331dl::CTRL_REG1 | (1<<6); // Auto-increment write address
txbuf[1] = 0b00111111; // PM: normal mode, DR: 1000Hz, XYZ: enabled
txbuf[2] = 0... |
<commit_before>/* Sirikata Kernel -- Task scheduling system
* Time.cpp
*
* Copyright (c) 2008, Patrick Reiter Horn
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistribu... |
<commit_before>// Copyright 2021 The CFU-Playground 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 ... |
<commit_before>// @(#)root/tmva $Id$
// Author: Attila Krasznahorkay
/**********************************************************************************
* Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
* Package: TMVA ... |
<commit_before>/*
* Copyright (C) 2014 Pelagicore AB
* All rights reserved.
*/
#include <iostream>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <errno.h>
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include "fifoipc.h"
static const int BUF_SIZE = 1024;
FifoIPC::FifoIPC(I... |
<commit_before>/*
* Copyright (C) 2014 Pelagicore AB
* All rights reserved.
*/
#include <iostream>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include "errno.h"
#include <cstring>
#include "fifoipc.h"
FifoIPC::FifoIPC(AbstractController *controller):
m_controller(controller), m_fifoPath("... |
<commit_before>// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQExpressionWidget.cpp,v $
// $Revision: 1.26 $
// $Name: $
// $Author: shoops $
// $Date: 2008/07/10 20:40:09 $
// End CVS Header
// Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
// Propertie... |
<commit_before>// @(#)root/proofplayer:$Id$
// Author: Maarten Ballintijn 7/06/2004
/*************************************************************************
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of th... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkBoostGraphAdapter.h
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>// @(#)root/cont:$Id$
// Author: Fons Rademakers 04/08/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before><commit_msg>control: add planning seq number into control estop reason.<commit_after><|endoftext|> |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
<commit_before>/**
Copyright 2014-2015 Jason R. Wendlandt
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... |
<commit_before>#ifndef K3_VECTOR
#define K3_VECTOR
#include "boost/serialization/vector.hpp"
#include "boost/serialization/base_object.hpp"
#include "STLDataspace.hpp"
#include "serialization/Json.hpp"
#include "serialization/Yaml.hpp"
namespace K3 {
template <template <class> class Derived, class Elem>
using Vector... |
<commit_before>// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "platform/globals.h"
#if defined(TARGET_OS_MACOS)
#include <errno.h> // NOLIN... |
<commit_before>// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/coding.h"
namespace leveldb {
void EncodeFixed32(char* buf, uint32_t va... |
<commit_before><commit_msg>runtime: update comment to match current code<commit_after><|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.