text stringlengths 54 60.6k |
|---|
<commit_before>#include <boost/program_options.hpp>
#include <iostream>
#include "data/GraphSerializer.hpp"
#include "data/PathSerializer.hpp"
#include "data/ConfigSerializer.hpp"
#include "genetic/GeneticSolver.hpp"
#include "genetic/GeneticAnalyser.hpp"
#include "utils/Random.hpp"
#include "net/PopulationExchanger.hp... |
<commit_before>/*
Copyright (c) 2007, 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 condi... |
<commit_before>/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#ifndef SET_HPP
#define SET_HPP
#include "coloredkdbio.hpp"
#include <command.hpp>
#include <kdb.hpp>
class SetCommand : public Command
{
kdb::KDB kdb;
public:
SetCommand ();
~SetCommand ();
... |
<commit_before>/* Copyright (C) 2016 INRA
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, pu... |
<commit_before>/*
This file is part of Csound.
Copyright (C) 2014 Rory Walsh
The Csound 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 Licens... |
<commit_before>#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include <catch/catch.hpp>
#include "plant_generator.h"
#include "from_json.h"
using namespace std;
using namespace plantgen;
namespace
{
constexpr size_t num_range_rng_tests = 1000;
}
TEST_CASE("Tes... |
<commit_before>/*************************************************************************
*
* $RCSfile: roadmapentry.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kz $ $Date: 2004-05-19 13:42:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>#include <stdio.h>
#include "utl/Logger.h"
#include "db.h"
using namespace odb;
dbMaster* createMaster2X1(dbLib* lib,
const char* name,
uint width,
uint height,
const char* in1,
... |
<commit_before>// Copyright (c) 2022 The Orbit 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 <gtest/gtest.h>
#include <random>
#include "GlCanvas.h"
#include "MockBatcher.h"
#include "MockTextRenderer.h"
#include "MockTi... |
<commit_before><commit_msg>Fixed getSemanticSortedColumn for both modes: zoom and grid<commit_after><|endoftext|> |
<commit_before><commit_msg>getSortedColumns aware of hideColumns option active or not<commit_after><|endoftext|> |
<commit_before>/ /
/ / R e m o t e P h o t o T o o l - r e m o t e c a m e r a c o n t r o l s o f t w a r e
/ / C o p y r i g h t ( C ) 2 0 0 8 - 2 0 1 8 M i c h a e l F i n k
/ /
/ / / \ f i l e L o c a t i o n \ s t d a f x . c p p P r e c o m p i l e d h e a d e r s u... |
<commit_before>/*************************************************************************
* Copyright (C) 2011-2013 by Paul-Louis Ageneau *
* paul-louis (at) ageneau (dot) org *
* *
* ... |
<commit_before>#ifndef HMLIB_TYPETRAITS_INC
#define HMLIB_TYPETRAITS_INC 100
#
#include<type_traits>
#include<iterator>
namespace hmLib{
template<typename type1, typename type2>
struct select_derived{
template<typename type, bool Type1IsBase = std::is_base_of<type1,type2>::value, bool Type2IsBase = std::is_base_of... |
<commit_before>#pragma once
namespace cdp
{
template <typename T>
constexpr auto is_complete_impl(int = 0) -> decltype(!sizeof(T))
{
return true;
}
template <typename T>
constexpr bool is_complete_impl(...)
{
return false;
}
template <typename T>
constexpr bool is_complete()
{
return is_complete_imp... |
<commit_before>#include "Morton_shuffler.hpp"
#include <iostream>
extern int myrank, nprocs;
Morton_shuffler::Morton_shuffler(
int N0, int N1, int N2,
int d,
int nfiles)
{
this->d = d;
if (nprocs % nfiles != 0)
{
std::cerr <<
"Number of output files incompatible... |
<commit_before>class Solution {
bool *rows;
bool *cols;
bool *add;
bool *diff;
int n;
bool valid(int i, int j)
{
if(!rows[i] && !cols[j] && !add[i+j] && !diff[i-j+n])
return true;
return false;
}
void help(vector<vector<string>> &result, vec... |
<commit_before>#pragma once
#include <type_traits>
#include <utility>
namespace yks {
template <typename T>
class Optional {
public:
Optional()
: present(false)
{
update_debug_ptr();
}
Optional(const Optional& o) {
if (o.present) {
new (&storage) T(*o.get_pointer());
}
present = o.present;
update... |
<commit_before>#include "PanelComponents.h"
//#include "timeKeeper.h"
#include "Arduino.h"
//---Switch------------------------------------------------------
PanelSwitch::PanelSwitch( void )
{
}
void PanelSwitch::init( uint8_t pinNum )
{
pinNumber = pinNum;
pinMode( pinNumber, INPUT_PULLUP );
update();
//force ne... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <stdio.h>
#include <cstring>
#include <cassert>
#include <opencv2/core/core.hpp>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "Lepton_Frame.h"
#include "Lepton_Driver.h"
#include "OpenCV_Adapter.h... |
<commit_before>#include <FWPlatform.h>
#include <EventLoop.h>
#include <CurlClient.h>
#include <Logger.h>
#include <ContextCairo.h>
#include <SDLSoundCanvas.h>
#include <Message.h>
#include <FWApplication.h>
#include <TouchEvent.h>
#include <DrawEvent.h>
#include <SysEvent.h>
#include <SDL/SDL.h>
#include <GL/gl.h>
#... |
<commit_before>/*
* BDSup2Sub++ (C) 2012 Adam T.
* Based on code from BDSup2Sub by Copyright 2009 Volker Oth (0xdeadbeef)
* and Copyright 2012 Miklos Juhasz (mjuhasz)
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
<commit_before>#ifndef TPNOWAYLEXREADER_HH
#define TPNOWAYLEXREADER_HH
#include <stdio.h>
#include <map>
#include <string>
#include "TPLexPrefixTree.hh"
#include "Vocabulary.hh"
// A class that reads the lexicon from a file and calls the lexical prefix
// tree class to create the lexical tree.
//
// FILE FORMAT:
//
... |
<commit_before><commit_msg>add invalid framebuffer operation to OpenGL error messages<commit_after><|endoftext|> |
<commit_before><commit_msg>debug helpers<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: gcach_xpeer.hxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: hr $ $Date: 2007-06-27 20:48:54 $
*
* The Contents of this file are m... |
<commit_before>#include "Chimera_Win.h"
#include <boost/algorithm/string/replace.hpp>
#include <QtCore/qglobal.h>
#include <QtPlugin>
#include <QQmlContext.h>
#include <QtQml/QQml.h>
#include <QtEndian>
#include "QmlVlc/QmlVlcSurfacePlayerProxy.h"
#ifdef QT_STATIC
Q_IMPORT_PLUGIN( QWindowsIntegrationPlugin );
... |
<commit_before>/*! \file uvar.cc
*******************************************************************************
File: uvar.cc\n
Implementation of the UVar class.
This file is part of
%URBI Kernel, version __kernelversion__\n
(c) Jean-Christophe Baillie, 2004-2006.
Permission to use, copy, modify, ... |
<commit_before>/*
* Copyright (c) 2009-2010 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implem... |
<commit_before>/*
* Copyright (c) 2007 The Hewlett-Packard Development Company
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms,
* with or without modification, are permitted provided that the
* following conditions are met:
*
* The software must be used only for Non... |
<commit_before>/*
* Copyright (c) 2007 The Hewlett-Packard Development Company
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms,
* with or without modification, are permitted provided that the
* following conditions are met:
*
* The software must be used only for Non... |
<commit_before>#include "bplustreeblocks.h"
using namespace bplustree;
const TRecordType BPlusTreeBlocks::commTypes[] =
{
COMM + LOG + SEND,
COMM + LOG + RECV,
COMM + PHY + SEND,
COMM + PHY + RECV,
RSEND + LOG,
RRECV + LOG,
RSEND + PHY,
RRECV + PHY
};
/****************************... |
<commit_before>//userliteral header
//Copyright (c) 2014 mmYYmmdd
#if !defined MMYYMMDD_USER_LITERAL_INCLUDED
#define MMYYMMDD_USER_LITERAL_INCLUDED
#include <ratio>
// create std::integral_constant and std::ratio from user defined literal
// ユーザー定義リテラルから std::integral_constant と std::ratio を出力する
namespace mymd {
... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparamsbase.h"
#include "util.h"
#include <assert.h>
#inclu... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2015-2017 The Bitcoin Unlimited developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "c... |
<commit_before>#include "xchainer/cuda/cuda_backend.h"
#include <cuda_runtime.h>
#include <gtest/gtest.h>
#include "xchainer/context.h"
#include "xchainer/cuda/cuda_runtime.h"
#include "xchainer/device.h"
namespace xchainer {
namespace cuda {
namespace {
TEST(CudaBackendTest, GetDeviceCount) {
Context ctx;
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xformsapi.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2006-06-19 18:58:07 $
*
* The Contents of this file are made... |
<commit_before>#include "BoundingBox.hpp"
#include "MotionPlanner.hpp"
#include <limits> // for numeric_limits
#include "boost/polygon/voronoi.hpp"
using boost::polygon::voronoi_builder;
using boost::polygon::voronoi_diagram;
namespace Slic3r {
MotionPlanner::MotionPlanner(const ExPolygons &islands)
: islands(is... |
<commit_before>#include <QDebug>
#include "appcontroller.h"
#include "appwindow.h"
#include "widgets/loginwidget.h"
#include "widgets/librarywidget.h"
//TODO: Minimizing to tray and restoring the window multiple times, after moving it for the first time and while not maximized, cause the window to move if taskbars ar... |
<commit_before>/*
* Copyright 2014-present Facebook, 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 appl... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved
*/
#include "../../../StroikaPreComp.h"
#include "../../../../Foundation/Characters/Format.h"
#include "../../../../Foundation/Characters/String_Constant.h"
#include "../../../../Foundation/Containers/Sequence.h"
#include "../..... |
<commit_before>/*
*
* Copyright © 2018 Luxon Jean-Pierre
* https://gumichan01.github.io/
*
* This library is under the MIT license
*
* Luxon Jean-Pierre (Gumichan01)
* [email protected]
*
*/
#ifndef UTF8_ITERATOR_HPP_INCLUDED
#define UTF8_ITERATOR_HPP_INCLUDED
/**
* @file utf8_iterator.hpp
* @... |
<commit_before>/*
What is our "Hello world!" app?
An agent orbits around the origin emitting the audio line input. The camera
view can be switched between a freely navigable keyboard/mouse controlled mode
and a sphere follow mode.
Requirements:
2 channels of spatial sound
2 windows, one front view, one back view
ste... |
<commit_before>// Copyright 2015-2020 Elviss Strazdins. All rights reserved.
#ifndef OUZEL_GRAPHICS_OBJECT_HPP
#define OUZEL_GRAPHICS_OBJECT_HPP
#include <memory>
#include "Material.hpp"
namespace ouzel::graphics
{
class Object final
{
public:
Object() = default;
Object(const Object&) = ... |
<commit_before><commit_msg>Set TOFChi2 to -1 in Run3 converter<commit_after><|endoftext|> |
<commit_before>#include "stft_client_storage.h"
#include <cinder/CinderMath.h>
namespace cieq {
namespace stft {
ClientStorage::ClientStorage(const Client::Format& fmt)
: mFftSize(fmt.getFftSize())
, mWindowType(fmt.getWindowType())
, mWindowSize(fmt.getWindowSize())
, mChannelSize(fmt.getChannelSize())
, mSmoo... |
<commit_before><commit_msg>Zastosowanie pętli c++11<commit_after><|endoftext|> |
<commit_before>#include "../adapter.hpp"
#include "../values.hpp"
namespace rev {
value_t::p Vector_Printable_str(value_t::p self) {
auto v = as<vector_t>(self);
std::string s = "[";
if (auto fst = imu::first(v)) {
s += str(*fst);
imu::for_each([&](const value_t::p& v) {
auto str =... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 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://ww... |
<commit_before>// @(#)root/thread:$Id$
// Authors: Enric Tejedor, Enrico Guiraud CERN 05/06/2018
/*************************************************************************
* Copyright (C) 1995-2016, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>#include "Graphics/Engine.h"
#include "EngineInternal.h"
#include "vulkan/vulkan.hpp"
#include <exception>
#include <iostream>
#include <memory>
#include <vector>
using namespace CR::Graphics;
using namespace std;
using namespace std::string_literals;
namespace {
constexpr uint MajorVersion = 0; //... |
<commit_before>/*
* InputSystem.cpp
*
* Created on: 15/07/2014
* Author: vitor
*/
#include "InputSystem.h"
void InputSystem::process_entities(std::map<uint64_t, EntityPtr>& entities,
double dt) {
SDL_Event event;
while (SDL_PollEvent(&event)) {
switch (event.type) {
case SDL_QUIT:
world_ptr->get... |
<commit_before>/*
* Copyright (C) 2019-present 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... |
<commit_before>// Created 18-Jul-2013 by Daniel Margala (University of California, Irvine) <[email protected]>
// convert guiding offsets to tp correction
// g++ -lboost_program_options guidingtp.cxx -o guidingtp
#include "boost/program_options.hpp"
#include "boost/math/special_functions/gamma.hpp"
#include <iostream>... |
<commit_before>#ifndef __TEST__MODELS__UTILITY_HPP__
#define __TEST__MODELS__UTILITY_HPP__
#include <stdexcept>
#include <boost/algorithm/string.hpp>
/**
* Gets the path separator for the OS.
*
* @return '\' for Windows, '/' otherwise.
*/
char get_path_separator() {
static char path_separator = 0;
if (path_... |
<commit_before>#include <boost/assert.hpp>
#include <boost/assign/list_of.hpp>
#include <boost/assign/list_inserter.hpp>
#include <boost/assign/std/vector.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/foreach.hpp>
#include <boost/tuple/tuple.hpp>
#include <openssl/ec.h>
#include <openssl/err.h>
#include "k... |
<commit_before>/*
* (C) 2014,2015 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "tests.h"
#if defined(BOTAN_HAS_BCRYPT)
#include <botan/bcrypt.h>
#endif
#if defined(BOTAN_HAS_PASSHASH9)
#include <botan/passhash9.h>
#endif
namespace Botan_Tests {
namespace {
#i... |
<commit_before>/*************************************************************************
MrEd interface to various garbage collectors, including the Boehm
collector, SenoraGC, and MzScheme's precise collector.
Copyright (c) 2004-2010 PLT Scheme Inc.
*****************************************************************... |
<commit_before>#include "treeface/gl/program.h"
#include "treeface/gl/type.h"
#include "treeface/gl/vertexattrib.h"
#include "treeface/misc/stringcast.h"
#include <treejuce/Logger.h>
#include <treejuce/StringRef.h>
#include <cstdio>
using namespace std;
using namespace treejuce;
TREEFACE_NAMESPACE_BEGIN
struct P... |
<commit_before>// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
// -- BEGIN LICENSE BLOCK ----------------------------------------------
// Copyright 2019 FZI Forschungszentrum Informatik
// Created on behalf of Universal Robots A/S
//
// Licensed under the Apache License, Version 2.0 (the "... |
<commit_before>#include "pch.h"
#include "7zAlloc.h"
#include "7zMyAlloc.h"
#include "7zFile.h"
#include "LzmaEnc.h"
#include "LzmaDec.h"
#include "Types.h"
ZString GetAppDir() {
char szPathName[MAX_PATH+48] = "";
GetModuleFileNameA(NULL, szPathName, MAX_PATH);
char* p = strrchr(szPathName, '\\');
p = (!p) ? szP... |
<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 "ui/views/widget/desktop_native_widget_aura.h"
#include "ui/base/hit_test.h"
#include "ui/views/widget/desktop_root_window_ho... |
<commit_before>#include <vw/Plate/ToastDem.h>
#include <vw/Plate/PlateManager.h>
#include <vw/Plate/PlateFile.h>
#include <vw/Core.h>
#include <boost/shared_ptr.hpp>
#include <boost/foreach.hpp>
#include <boost/program_options.hpp>
namespace po = boost::program_options;
#include <iostream>
using namespace std;
using... |
<commit_before>/** @file edgeelement.cpp
* @brief Класс, представляющий связь на диаграмме
* */
#include <QtGui/QStyleOptionGraphicsItem>
#include <QtGui/QStyle>
#include <QtGui/QTextDocument>
#include <QtGui/QMenu>
#include <math.h>
#include "../view/editorviewscene.h"
#include "uml_edgeelement.h"
#include "uml_no... |
<commit_before>/*******************************
Copyright (C) 2013-2016 gregoire ANGERAND
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 late... |
<commit_before>#include "net/http/HttpContext.h"
#include "net/NetBuffer.h"
#include "base/Timestamp.h"
using zl::base::Timestamp;
NAMESPACE_ZL_NET_START
/// parse:
/// request line \r\n
/// request header \r\n
/// \r\n
/// request body
// 使用chorme浏览器请求127.0.0.1:8888/index.html时,server收到的http消息... |
<commit_before>#include <vector>
#include <memory>
#include <iostream>
#include <cmath>
#include <ad/ad.h>
std::pair<Eigen::MatrixXd, Eigen::MatrixXd> GenDataset(int nb_examples) {
// dataset
Eigen::MatrixXd x(2, nb_examples);
Eigen::MatrixXd y(1, nb_examples);
for (int k = 0; k < nb_examples; ++k) {
... |
<commit_before>/*
Copyright (C) 2007 Carlo Todeschini - Metarete s.r.l. <[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
in the Software without restriction, including without limitation... |
<commit_before>/*
Copyright (c) 2009 Stephen John Bush
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... |
<commit_before>#include "setupdialog.h"
WARNINGS_DISABLE
#include <QDateTime>
#include <QDir>
#include <QFileDialog>
#include <QFileInfo>
#include <QStandardPaths>
// This is used for QHostInfo::localHostName(). It could be replaced with
// QSysInfo::machineHostName() to remove the dependency on the Qt network
// li... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2011 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><commit_msg>Create code.cpp<commit_after><|endoftext|> |
<commit_before>/**
* File : F.cpp
* Author : Kazune Takahashi
* Created : 2018-4-15 23:25:04
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> //... |
<commit_before><commit_msg>submit C.cpp to 'C - Divide the Problems' (abc132) [C++14 (GCC 5.4.1)]<commit_after><|endoftext|> |
<commit_before><commit_msg>tried B.cpp to 'B'<commit_after><|endoftext|> |
<commit_before><commit_msg>submit C.cpp to 'C - Count Order' (abc150) [C++14 (GCC 5.4.1)]<commit_after><|endoftext|> |
<commit_before><commit_msg>Added use method calling<commit_after><|endoftext|> |
<commit_before>#include <cstdio>
#include <poll.h>
#include <unistd.h>
#include <algorithm>
#include <regex>
#include <fstream>
#include <map>
#include <system_error>
#include <kms++/kms++.h>
#include <kms++util/kms++util.h>
#include <kms++util/videodevice.h>
const uint32_t NUM_SRC_BUFS=2;
const uint32_t NUM_DST_BUFS... |
<commit_before>#ifndef resplunk_event_Events_HeaderPlusPlus
#define resplunk_event_Events_HeaderPlusPlus
#include "resplunk/server/ServerSpecific.hpp"
#include "resplunk/util/TemplateImplRepo.hpp"
#include <cstdint>
#include <limits>
#include <type_traits>
#include <functional>
#include <memory>
#include <map>
#inclu... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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>#include "../../local/include/gtest/gtest.h"
#include <vector>
// uncomment to use threads
//#define THREADED
#ifdef THREADED
// Tron
//#define NUM_CORES 4
// Clue
#define NUM_CORES 12
#include <thread>
#include <future>
#endif // THREADED
#include "genetic.h"
#include "genetic_circuit.h"
#includ... |
<commit_before>#include <stdio.h>
#include <limits.h>
#include <vector>
#include <string>
#include <iostream>
#include "api/BamReader.h"
#include "api/BamWriter.h"
#include "../OutSources/fasta/Fasta.h"
#include "../OutSources/stripedSW/ssw_cpp.h"
using namespace std;
const StripedSmithWaterman::Filter kFilter(fals... |
<commit_before><commit_msg>[TritonCTS] Fix TechChar logs<commit_after><|endoftext|> |
<commit_before><commit_msg>Update de_web_plugin.cpp<commit_after><|endoftext|> |
<commit_before>
#include <ionWindow.h>
#include <ionGraphics.h>
#include <ionGraphicsGL.h>
#include <ionScene.h>
#include <ionApplication.h>
using namespace ion;
using namespace ion::Scene;
using namespace ion::Graphics;
int main()
{
////////////////////
// ionEngine Init //
////////////////////
... |
<commit_before>#include <QtSerialPort/QtSerialPort>
#include <iostream>
#include "PositionDispatcher.h"
#include "MavState.h"
#define DISPATCH_INTERVAL 100 //ms
PositionDispatcher::PositionDispatcher(QObject *parent) :
QObject(parent),
_serial(this)
{
_serial.setPortName("/dev/ttyUSB0");
// Open se... |
<commit_before>/////////////////////////////////////////////////////////////////
/// @file ClickEventHandler.cpp
/// @author Chris L Baker (clb) <[email protected]>
/// @date 2015.01.13
/// @brief Handle Click Events
///
/// @attention Copyright (C) 2015
/// @attention All rights reserved
/////////////... |
<commit_before>
#include "Output.h"
#include "../ObjectStore.h"
#include "../EspConnection.h"
#include "../../IPC/Message.h"
#include "../../IPOCS/Message.h"
#include "../../IPOCS/Packets/SetOutputPacket.h"
#include "../log.h"
Output::Output(): lastOrderTime(0), offDelay(0), outputPin(0),
lastSentSta... |
<commit_before>//
// Copyright (C) 2014, 2015 Ableton AG, Berlin. 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 the Software without restriction, including without limitation
... |
<commit_before>/*
Copyright 2015-2020 Igor Petrovic
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 i... |
<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>/*
* Copyright (C) 2003-2007 Funambol
*
* 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 ... |
<commit_before>//****************************************************************************//
// morphtargetmixer.cpp //
// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
//************************************************************... |
<commit_before>/* ---------------------------------------------------------------------------
** This software is implemented as part of the course Dynamic Algorithms
** (Q4 2015) at Aarhus Univerity Denmark.
**
** TD_EAGER.cpp
** Implementation of a truly dynamic algorithm for dynamic transitive closure
** based on ... |
<commit_before>#include "Expression.hpp"
#include "gtest/gtest.h"
TEST(LMCh04Ex05, DISABLED_willAddNumbers)
{
auto expression = lm::Expression("1.0 + 2.0");
ASSERT_DOUBLE_EQ(3.0, expression.getResult());
}
TEST(LMCh04Ex05, DISABLED_willSubtractNumbers)
{
auto expression = lm::Expression("3.1 - 5.3");
... |
<commit_before>#include "Triangle.h"
void Triangle::Move(uint16_t dirX, uint16_t dirY)
{
{
lastX = X;
lastY = Y;
X += dirX;
X += dirY;
HasMoved = true;
}
}
void Triangle::Update()
{
}
void Triangle::Render(Adafruit_ST7735 *tftDisplay, boolean clear)
{
/* In this method we only draw the rectangle if i... |
<commit_before>// Copyright (c) 2006, 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 ... |
<commit_before>/*****************************************************************************
* Copyright (C) 2008-2011 Massachusetts Institute of Technology *
* *
* Permission is hereby granted, free of charge, to any person obta... |
<commit_before>#include <time.h>
#include <iostream.h>
#include <iomanip.h>
#include <fstream.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "imds2.h"
#include "fileinfo2.h"
#include "fileindex2.h"
u_lint IMDS::GetNumFiles()
{
return FileStats.GetNumFiles();
}
int IMDS::LockStatus(struct i... |
<commit_before>/*
** Copyright 2011 Merethis
** This file is part of Centreon Broker.
**
** Centreon Broker is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Broker is distributed in t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.