text stringlengths 54 60.6k |
|---|
<commit_before>/**
* @file TextPlot.cpp
*
* A simple console-based data plotter.
*
* This file is part of the Aquila DSP library.
* Aquila is free software, licensed under the MIT/X11 License. A copy of
* the license is provided with the library in the LICENSE file.
*
* @package Aquila
* @version 3.0.0-dev
*... |
<commit_before>
#include "U8Gettext.h"
#include <Arduino.h>
#define ENSURE(condition) do { if (!(condition)) {Serial.println("ENSURE failed at: "#condition); while(1); } } while(0)
#define SIZE_OF_ARRAY(array) (sizeof((array))/sizeof((array)[0]))
#define PTR_OFFSET_BYTES(ptr, nBytes) ((void*)(((char *)(ptr)) + (... |
<commit_before>// Licensed to the Apache Software Foundation (ASF) under one
// 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
// "License"); you may not use this file except in compliance
// with t... |
<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 "leveldb/db.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#in... |
<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 3 of the License, or
* (at your option) any later version.
*
* Written (W) 1999-2009 Soeren Sonnenburg
* W... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2006-2007 Torsten Rahn <tackat@kde.org>
// Copyright 2007 Inge Walli... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// 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 "main.h"
#include "bitcoinrpc.h"
#include "pow_control.h"
usin... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include "tracker/... |
<commit_before>#include <iostream>
#include <cstring>
#include <cassert>
#include "ataxx.hpp"
#include "search.hpp"
#include "movegen.hpp"
#include "move.hpp"
#include "makemove.hpp"
#include "hashtable.hpp"
#include "pv.hpp"
#include "searchinfo.hpp"
#include "eval.hpp"
#include "score.hpp"
#include "zobrist.hpp"
#in... |
<commit_before>#include <paths.h>
#include <sys/stat.h>
#include <stdio.h>
#include <cerrno>
#include <cstring>
#include <iostream>
#include <fstream>
#include <unordered_map>
#include <string>
#include <stdio.h>
#include <string.h>
#include <sstream>
#include "../os.h"
#include "../../base/logger.h"
#include <mntent.... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2000 The Apache Software Foundation. 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. Redistr... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>/*
Copyright 2013 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) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <pthread.h>
#include <memory.h>
#include <iostream>
#include "util/thread.h"
#include "util/exception.h"
#if !defined(LEAN_USE_SPLI... |
<commit_before>/*
yqlcpp is a lightweight C++ API for performing Yahoo Query Language queries.
At this time it is intended to be a simple interface with minimal error
checking and no concern for thread safety. Built on top of and requires libcurl.
Author: Kevin Hawkins <kevindhawkins@gmail.com>
Copyright (c)... |
<commit_before>// $Id: directory.C,v 1.11 2000/06/27 09:08:52 oliver Exp $
#include <dirent.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <iostream>
#include <errno.h>
#include <BALL/SYSTEM/directory.h>
namespace BALL
{
Directory::Directory()
{... |
<commit_before>#include <thread>
#include <chrono>
#include <stdexcept>
#include <cctype>
#include <algorithm>
#include <vector>
#include <map>
#include <sstream>
#include "ogrsf_frmts.h"
#include "common/config.h"
#include "common/stringutils.h"
#include "server/worker.h"
using namespace Batyr;
struct OgrField
{
... |
<commit_before>#include "adaptiverandom.h"
#include <qmath.h>
#include <cstdlib>
namespace
{
AdaptiveRandom instance;
}
RpnOperand AdaptiveRandom::calculate(FunctionCalculator *calculator, QList<RpnOperand> actualArguments)
{
m_calculator = calculator;
m_functionName = actualArguments[0].value.value<QString>();
... |
<commit_before>/*
vcflib C++ library for parsing and manipulating VCF files
Copyright © 2010-2020 Erik Garrison
Copyright © 2020 Pjotr Prins
This software is published under the MIT License. See the LICENSE file.
*/
#include "Variant.h"
#include <set>
using namespace std;
using namespace vcflib... |
<commit_before>#include "addgroupwindow.h"
#include "functions.h"
/**
* Constructor of the AddGroupWindow class, generating its window.
* @param favorites List of favorites tags, needed for coloration
* @param parent The parent window
*/
AddGroupWindow::AddGroupWindow(QStringList sites, QStringList fa... |
<commit_before>/*******************************************************************************
* src/benchmark.cpp
*
* Copyright (C) 2017 Florian Kurpicz <florian.kurpicz@tu-dortmund.de>
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
**********************************************... |
<commit_before>#include "block_sync.h"
namespace redsea {
namespace {
const unsigned kBitmask16 = 0x000FFFF;
const unsigned kBitmask26 = 0x3FFFFFF;
const unsigned kBitmask28 = 0xFFFFFFF;
const unsigned kMaxErrorLength = 5;
const std::vector<uint16_t> offset_words =
{0x0FC, 0x198, 0x168, 0x350, 0x1B4};
const std:... |
<commit_before>/*
* Copyright 2008 by Tommi Rantala <tommi.rantala@cs.helsinki.fi>
*
* 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... |
<commit_before>/*
* _aaaa, _aa. sa, aaa _aaaa,_ ac .aa. .aa. .aa, _a, sa
* .wWV!!!T |Wm; dQ[ $WF _mWT!"?Y ]QE :Q#: ]QW[ :WWk. ]Q[ dW
* .jWf :WW: .dQ[ dQ[ .mW( )WE :Q#: .mSQh. :mWQa.]W[ dQ
* |QW: :Wm; mQ[ dQ[ ]Qk )Qmi_aQW:... |
<commit_before>
#include "mesh_exporter.h"
#include "material_exporter.h"
#include "logger.h"
#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <assimp/../../code/BoostWorkaround/boost/lexical_cast.hpp>
namespace {
void ExportScene(const char*, Assimp::IOSystem*, const aiScene*, ... |
<commit_before>/*!
\file timestamp.cpp
\brief Timestamp implementation
\author Ivan Shynkarenka
\date 26.01.2016
\copyright MIT License
*/
#include "time/timestamp.h"
#include "errors/exceptions.h"
#include <iostream>
#if defined(__APPLE__)
#include <mach/clock.h>
#include <mach/mach.h>
#include... |
<commit_before>/* Copyright (c) 2009-2013, Fortylines LLC
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, thi... |
<commit_before>/*
* 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.1 of the License, or (at your option) any later version.
*
* As a special exception, you may us... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include <stdlib.h... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include <stdlib.h... |
<commit_before>/*
Copyright (c) 2009-2011, Jack Poulson
All rights reserved.
This file is part of Elemental.
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 t... |
<commit_before>#include "dbmanager.h"
#include <QtSql/QSqlQuery>
#include <QTimeZone>
#include <QDateTime>
#include <QDebug>
DBManager::DBManager(const QString& path, bool doCreate, QObject *parent) : QObject(parent)
{
qRegisterMetaType<QList<NoteData*> >("QList<NoteData*>");
m_db = QSqlDatabase::addDatabase(... |
<commit_before>/* discovery.cpp -*- C++ -*-
Rémi Attab (remi.attab@gmail.com), 26 Dec 2013
FreeBSD-style copyright and disclaimer apply
Implementation of the node discovery database.
*/
#include "discovery.h"
#include "pack.h"
#include "lockless/bits.h"
#include <set>
#inclu... |
<commit_before>#include <signal.h>
#include <glog/logging.h>
#include <iostream>
#include <string>
#include <sstream>
#include <boost/bind.hpp>
#include <mesos/executor.hpp>
#include <process/process.hpp>
#include <process/protobuf.hpp>
#include "common/fatal.hpp"
#include "common/lock.hpp"
#include "common/loggi... |
<commit_before>/*
Copyright (c) 2006-2014, 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>//2014.03.28 - 2014.03.30 - 2014.03.31 Gustaf - CTG.
/* EXERCISE 4-3 :
For our dynamically allocated strings, create a function replaceString that takes
three parameters, each of type arrayString: source, target, and replaceText.
The function replaces every occurrence of target in source with replace... |
<commit_before>#include "sys/time.h"
#include "gspan.h"
#include "seperator.h"
#include "database.h"
namespace gspan {
void GSpan::execute(const char *seperator_type, const char *file_path, double support)
{
_m_seperator = new Seperator(seperator_type);
_m_file_path = file_path;
_m_support = support;
Inpu... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2012-2015 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>/* Copyright 2015-2016 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 requi... |
<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>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<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_SPACES_CONTINUOUSLAGRANGE_BASE_HH
#define DUNE_GDT_SPACES_CONTINUOUSLAG... |
<commit_before>/*
* Copyright 2017-2019 Leonid Yuriev <leo@yuriev.ru>
* and other libmdbx authors: please see AUTHORS file.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
*
* A cop... |
<commit_before>//=============================================================================================================
/**
* @file natus.cpp
* @author Lorenz Esch <lesch@mgh.harvard.edu>
* @version dev
* @date June, 2018
*
* @section LICENSE
*
* Copyright (C) 2018, Lorenz Esch. All rights re... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkContourWidget.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>// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff/
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_PLAYGROUND_FUNCTIONS_ESV2007_HH
#define DUNE_STUFF_PLAYGROUND... |
<commit_before>//
// XLCObjCppHelpers.hh
// XLCUtils
//
// Created by Xiliang Chen on 14-4-27.
// Copyright (c) 2014年 Xiliang Chen. All rights reserved.
//
#ifndef XLCUtils_XLCObjCppHelpers_hh
#define XLCUtils_XLCObjCppHelpers_hh
#include <type_traits>
#include <ostream>
#include <utility>
#include <string>
#incl... |
<commit_before>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2010 Emmanuel Benazera, juban@free.fr
*
* 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 by the Free Software ... |
<commit_before>//===---- tools/extra/ToolTemplate.cpp - Template for refactoring tool ----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: nodechangeimpl.hxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: rt $ $Date: 2005-09-08 04:30:33 $
*
* The Contents of this file ar... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** No Commercial Usage
**
** This file contains pre-release cod... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2013 Mohammed Nafees <nafees.technocool@gmail.com>
//
#include "ArrowDis... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (info@qt.nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/
**
** This file is part of the QtQml module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General P... |
<commit_before>/****************************************************************************
**
** This file is part of QtCompositor**
**
** Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
**
** Contact: Nokia Corporation qt-info@nokia.com
**
** You may use this file under the t... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2016 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<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 "content/browser/plugin_data_remover_impl.h"
#include "base/bind.h"
#include "base/metrics/histogram.h"
#include "base/synchr... |
<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 "content/browser/speech/speech_recognizer.h"
#include "base/time.h"
#include "chrome/browser/profiles/profile.h"
#include "ch... |
<commit_before>/* This file is part of Strigi Desktop Search
*
* Copyright (C) 2006 Jos van den Oever <jos@vandenoever.info>
*
* 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; eithe... |
<commit_before>/**
* @file max_ip_impl.hpp
* @author Ryan Curtin
*
* Implementation of the MaxIP class (maximum inner product search).
*/
#ifndef __MLPACK_METHODS_MAXIP_MAX_IP_IMPL_HPP
#define __MLPACK_METHODS_MAXIP_MAX_IP_IMPL_HPP
// In case it hasn't yet been included.
#include "max_ip.hpp"
#include <mlpack/co... |
<commit_before>// Copyright (c) 2012 Plenluno All rights reserved.
#include <assert.h>
#include <vector>
#include "libj/js_regexp.h"
#include "libj/undefined.h"
#include "./glue/regexp.h"
namespace libj {
static glue::RegExp::U16String toU16String(String::CPtr str) {
if (Type<char16_t>::id() == Type<uint16_t>::... |
<commit_before>/*
* opencog/util/Logger.cc
*
* Copyright (C) 2002-2007 Novamente LLC
* Copyright (C) 2008 by Singularity Institute for Artificial Intelligence
* All Rights Reserved
*
* Written by Andre Senna <senna@vettalabs.com>
* Gustavo Gama <gama@vettalabs.com>
*
* This program is free software... |
<commit_before>/*
* opencog/util/Logger.cc
*
* Copyright (C) 2002-2007 Novamente LLC
* Copyright (C) 2008 by OpenCog Foundation
* Copyright (C) 2009, 2011 Linas Vepstas
* Copyright (C) 2010 OpenCog Foundation
* All Rights Reserved
*
* Written by Andre Senna <senna@vettalabs.com>
* Gustavo Gama <gam... |
<commit_before>/************************************************************************************
* *
* Copyright (c) 2014, 2015 - 2016 Axel Menzel <info@rttr.org> *
* ... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (info@qt.nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/diag/prdf/plat/mem/prdfMemChnlFailCache.H $ ... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001 The Apache Software Foundation. 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. Redistrib... |
<commit_before>/*
* V1.cpp
*
* Created on: Jul 30, 2008
* Author: rasmussn
*/
#include "../include/pv_common.h"
#include "../include/default_params.h"
#include "../connections/PVConnection.h"
#include "HyPerLayer.hpp"
#include "V1.hpp"
#include <assert.h>
#include <float.h>
#include <math.h>
#include <stdi... |
<commit_before>
/**
* @ingroup tracking_algorithms
* @file
* Implementation of Correlation
*
* @author Manuel Huber <huberma@in.tum.de>
*/
#include "Correlation.h"
#ifdef HAVE_LAPACK
namespace Ubitrack { namespace Calibration {
double computeCorrelationDirect ( const std::vector< double >& left,
con... |
<commit_before>#include <reactive/bridge.hpp>
#include <reactive/consume.hpp>
#include <boost/optional.hpp>
#include <boost/test/unit_test.hpp>
#include <lua.hpp>
namespace Si
{
struct lua_deleter
{
void operator()(lua_State *L) const
{
lua_close(L);
}
};
std::unique_ptr<lua_State, lua_deleter> open_lua(... |
<commit_before>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "common.h"
#include "eventpipeeventinstance.h"
#include "eventpipejsonfile.h"
#include "fast... |
<commit_before>#include <type_traits>
#include <cassert>
#include <map>
#include <string>
#include <duktape.h>
#include <gtest/gtest.h>
#include <entt/core/type_info.hpp>
#include <entt/entity/registry.hpp>
template<typename Type>
struct tag { using type = Type; };
struct position {
double x;
double y;
};
st... |
<commit_before>/*
* Copyright 1999-2004 The Apache Software 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 ... |
<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>//
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2010 Dennis Nienhüser <earthwings@gentoo.org>
//
#include "signals.... |
<commit_before>#include "RRealtimeTimer.h"
#include "RScopedPointer.h"
#include "RIsr.h"
#include "RThread.h"
#define RREALTIME_TIMER_WAIT_PASS(code) \
while(pdPASS != (code)) \
{ \
RThread::yieldCurrentThread(); \
}
static const int32_t sMaxDelayMS = static_cast<int32_t>(portMAX_DELAY) *
... |
<commit_before>#include "TrackingWorker.hpp"
#include <boost/chrono/duration.hpp>
#include <ros/console.h>
#include <opencv2/core/core.hpp>
#include <map>
#include "../../matlab/profiling.hpp"
TrackingWorker::TrackingWorker(IPositionReceiver *receiver) : errorGraph(100, "Difference")
{
assert(receiver != 0);
thi... |
<commit_before>/*
This file is part of VROOM.
Copyright (c) 2015-2019, Julien Coupey.
All rights reserved (see LICENSE).
*/
#include "problems/cvrp/operators/exchange.h"
namespace vroom {
namespace cvrp {
Exchange::Exchange(const Input& input,
const utils::SolutionState& sol_state,
... |
<commit_before>//
// BatchEncoder - GetProgress WvUnpackDec
// Copyright (C) 2005-2017 Wiesław Šoltés <wieslaw.soltes@gmail.com>
//
// 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; version 2 ... |
<commit_before>/*
* Copyright (C) Alex Nekipelov (alex@nekipelov.net)
* License: MIT
*/
#ifndef REDISCLIENT_REDISCLIENTIMPL_CPP
#define REDISCLIENT_REDISCLIENTIMPL_CPP
#include <boost/asio/write.hpp>
#include <algorithm>
#include "redisclientimpl.h"
namespace
{
static const char crlf[] = {'\r', '\n'};
i... |
<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 3 of the License, or
* (at your option) any later version.
*
* Written (W) 1999-2012 Soeren Sonnenburg and ... |
<commit_before>#ifndef HMLIB_UTILITY_INC
#define HMLIB_UTILITY_INC 100
#
/*===utility===
主にオブジェクトの操作等に関わる汎用クラス/マクロ類を宣言する
v1_00/130717
hmLib_static_restrictを追加
template引数に宣言することで、template引数の実行条件に制約をかけるマクロ
clone関数を追加
コピーコンストラクタ/コピーファンクタを呼び出してクローンを生成する
exchange関数を追加
値を入れ替えつつ、前回の値を返す
*/
namespace hmLib{
namespa... |
<commit_before>/*
* Copyright 2017 The Cartographer 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>/******************************************************************************
* This file is part of dirtsand. *
* *
* dirtsand is free software: you can redistribute it and/or modi... |
<commit_before>#include "ct_defs.h"
#include "ctexceptions.h"
#include <fstream>
#include <string>
#include <stdlib.h>
#include "ctml.h"
#include "../../include/pypath.h"
using namespace Cantera;
namespace ctml {
static string pypath() {
string s = "python";
#ifdef PYTHON_EXE
s = string(PYTHON_EX... |
<commit_before>// Copyright 2008, Google 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list ... |
<commit_before>//
// MapData
// InternetMap
//
#include "MapData.hpp"
#include "Node.hpp"
#include "DisplayLines.hpp"
#include "Connection.hpp"
#include "IndexBox.hpp"
#include "MapDisplay.hpp"
#include <sstream>
#include <stdlib.h>
#include <fstream>
#include <assert.h>
// TODO: figure out how to do this right
#if... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkMatrix4x4.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Th... |
<commit_before><commit_msg>Cleaning up code.<commit_after><|endoftext|> |
<commit_before>/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozil... |
<commit_before>/*
* Copyright 2014 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
<commit_before><commit_msg>Fix trivial bug introduced in #683<commit_after><|endoftext|> |
<commit_before>#include "SDBPShardConnection.h"
#include "SDBPClient.h"
#include "Application/Common/ClientResponse.h"
#include "Application/SDBP/SDBPRequestMessage.h"
#include "Application/SDBP/SDBPResponseMessage.h"
#define CONN_BUFSIZE 4096
#define CLIENT_MUTEX_GUARD_DECLARE() MutexGuard mutexGuard(client->m... |
<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>#include "catch.hpp"
#include <initializer_list>
#include "cxxopts.hpp"
class Argv {
public:
Argv(std::initializer_list<const char*> args)
: m_argv(new char*[args.size()])
, m_argc(args.size())
{
int i = 0;
auto iter = args.begin();
while (iter != args.end()) {
auto len = ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2015 WxMaper (http://wxmaper.ru)
**
** This file is part of the PHPQt5.
**
** BEGIN LICENSE: MPL 2.0
**
** This Source Code Form is subject to the terms of the Mozilla Public
** License, v. 2.0. If a copy of... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, to any person obta... |
<commit_before>// RUN: %clangxx_asan -fexceptions -O %s -o %t && %run %t
//
// FIXME: Needs better C++ exception support
// XFAIL: win32
//
// Test __sanitizer_annotate_contiguous_container.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <sanitizer/asan_interface.h>
void TestC... |
<commit_before>/*
* Copyright 2010 MQWeb - Franky Braem
*
* Licensed under the EUPL, Version 1.1 or – as soon they
* will be approved by the European Commission - subsequent
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the
* Licence.
* You may obtain a copy of th... |
<commit_before>#include "Common/HighQueuePch.h"
#define BOOST_TEST_NO_MAIN HighQueuePerformanceTest
#include <boost/test/unit_test.hpp>
#include <HighQueue/Producer.h>
#include <HighQueue/Consumer.h>
#include <Common/Stopwatch.h>
#include <HQPerformance/TestMessage.h>
using namespace HighQueue;
typedef TestMessage<20... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.