text stringlengths 54 60.6k |
|---|
<commit_before>/*
* Copyright © 2013 Intel Corporation
*
* 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, mod... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2009-2014 Klaus Post
Copyright (C) 2014-2015 Pedro Côrte-Real
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 Foundati... |
<commit_before>#include "a_lane.h"
namespace a {
///! laneInstance
laneInstance::laneInstance(lane *parent)
: m_parent(parent)
{
m_flags |= kProtected;
}
void laneInstance::getAudio(float *buffer, size_t samples) {
int handle = m_parent->m_channelHandle;
if (handle == 0)
return;
audio *o... |
<commit_before>#include "config.h"
#include "matmul.decl.h"
#include "logger.h"
#include "messages.h"
#include "timer.h"
#include <getopt.h>
#ifdef VERIFY_MULTIPLY
#include "index.h"
#endif
void matmulInit()
{
DEBUG("on PE %d, turning manual LB on\n", CkMyPe());
//TurnManualLBOn();
}
class Main : public CBase_Ma... |
<commit_before>//
// PROJECT: Aspia Remote Desktop
// FILE: ui/file_manager_panel.cc
// LICENSE: Mozilla Public License Version 2.0
// PROGRAMMERS: Dmitry Chapyshev (dmitry@aspia.ru)
//
#include "ui/file_manager_panel.h"
#include "ui/file_manager_helpers.h"
#include "ui/status_c... |
<commit_before>// Copyright 2019 Google LLC
//
// 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>#include <QDir>
#include <QApplication>
#include "mainwindow.h"
#include "parameter.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QFont font = QApplication::font();
if (font.defaultFamily() == QLatin1String("SimSun")) {
font.setFamily(QLatin1String("Microsoft YaH... |
<commit_before>// bbldc_basicisdaactualactual.cpp -*-C++-*-
#include <bbldc_basicisdaactualactual.h>
#include <bsls_ident.h>
BSLS_IDENT_RCSID(bbldc_basicisdaactualactual_cpp,"$Id$ $CSID$")
#include <bdlt_serialdateimputil.h>
#include <bsls_assert.h>
namespace BloombergLP {
namespa... |
<commit_before>#ifndef BUW_COLOR_HPP
#define BUW_COLOR_HPP
#include <iostream>
struct Color
{
Color(float red, float green, float blue) : r_(red), g_(green), b_(blue) {}
float r_;
float g_;
float b_;
friend std::ostream& operator<<(std::ostream& os, Color const& c)
{
os << "(" << c.r_ << "," << c.g_ ... |
<commit_before>/*
* InterColComm.cpp
*
* Created on: Aug 28, 2008
* Author: rasmussn
*/
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "InterColComm.hpp"
#include "HyPerCol.hpp"
namespace PV {
InterColComm::InterColComm(int* argc, char*** argv) : Communicator(argc... |
<commit_before>#pragma once
#include <thread>
#include <poll.h>
#include <sys/types.h>
#include <unistd.h>
#include <signal.h>
namespace nix {
class MonitorFdHup
{
private:
std::thread thread;
public:
MonitorFdHup(int fd)
{
thread = std::thread([&]() {
/* Wait indefinitely until a ... |
<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 <winsock2.h>
#include <ws2tcpip.h>
#include <mswsock.h>
#include "bin/builtin.... |
<commit_before>#include <light.hpp>
Light::Light() :
light_position_{ glm::vec3{0.0,0.0,0.0} },
intensity_{ Color{0.0,0.0,0.0} } {}
Light::Light(glm::vec3 pos) :
light_position_{ pos },
intensity_{ Color{0.0,0.0,0.0} } {}
Light::Light(Color intensity) :
light_position_{ glm::vec3{0.0,0.0,0.0} },
intensity_{ i... |
<commit_before>//
// CameraRenderer.cpp
// G3MiOSSDK
//
// Created by Agustín Trujillo Pino on 30/07/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#include <iostream>
#include "CameraRenderer.h"
#include "IGL.hpp"
//const Planet* CameraRenderer::_planet;
//const ILogger* CameraRende... |
<commit_before>/*----------------------------------------------------------------------------------*\
| |
| rcb_generator.hpp |
| |
| Copyright (c) 2016 Richard Cookman |
| |
| Permission is hereby granted, free of charge... |
<commit_before>//=====================================================================//
/*! @file
@brief RX24T LCD サンプル @n
・(インジケーター)P00(4) ピンに赤色LED(VF:1.9V)を吸い込みで接続する
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://git... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <math.h>
#include "bio++.H"
#include "meryl.H"
#include "merStream.H"
#include <unordered_map>
#include <vector>
#include <set>
using namespace std;
#define MAX_HASH 0xffffffffffffffff
int
main(int argc, char **ar... |
<commit_before>#include <iostream>
#include "SimpleHttpRequest.h"
using namespace std;
int main() {
int r;
uv_loop = uv_default_loop();
map<string, string> options;
map<string, string> headers;
options["hostname"] = "192.168.10.9";
options["port"] = "10509";
options["path"] = "/archive";
options["me... |
<commit_before>#include <easyqrpng/easyqrpngpp.h>
#include <iostream>
int main(int argc, char* argv[])
{
easyqrpng p;
p.setTargetWidth(500);
if (p.encode("Encode me in a test"))
{
std::cout << "ENCODE ERROR: " << p.errorMessage() << std::endl;
return 0;
}
if (p.save("test.png"))
{
std::cout << "SAVE ER... |
<commit_before>#include "catch.hpp"
#include "inputfile.hpp"
using namespace groho;
TEST_CASE("Missing input file parsing", "[InputFile]")
{
auto lines = load_input_file("non-existent.txt");
REQUIRE(!lines);
}
TEST_CASE("Input file parsing", "[InputFile]")
{
auto lines = load_input_file("../examples/001... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: namedvaluecollection.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2006-09-17 17:12:43 $
*
* The Contents of this f... |
<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>/*
* Copyright (C) 2009, 2010, 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.
*/
/// \file ur... |
<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 <sys/sta... |
<commit_before>/*
* Copyright Andrey Semashev 2007 - 2013.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/config/abi_prefix.hpp>
#if !defined(BOOST_LOG_ENABLE_WARNINGS... |
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* Razor - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
*
* Copyright: 2012 Razor team
* Authors:
* Kuzma Shapran <kuzma.shapran@gmail.com>
* Luís Pereira <luis.artur.pereira@gmail.com>
*
* This program or library is free soft... |
<commit_before>//===--- LiveRangeEdit.cpp - Basic tools for editing a register live range --===//
//
// 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) 2014-2016 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<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/utf_string_conversions.h"
#include "chrome/browser/password_manager/password_form_data.h"
#include "chrome/browser/sync/... |
<commit_before>#include <ros/ros.h>
#include <std_msgs/Header.h>
inline void
time(std::string message, const std_msgs::Header &header, bool info=false){
ros::Time time = ros::Time::now();
std::ostringstream stringStream;
stringStream << message << ", Time now: " << time.sec <<"." << time.nsec << ", ";
stringStrea... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010, 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
// met:... |
<commit_before>/********************************************************************************
LibVideoGfx - video processing library
Copyright (C) 2002 Dirk Farin
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as ... |
<commit_before>/************************************************************************/
/* */
/* Copyright 2015 by Thorsten Beier */
/* */
/* ... |
<commit_before>#include "RadioUtils.h"
#include <RF12.h>
#include <Arduino.h>
#include <EEPROM.h>
#include "../../src/common.h"
RadioUtils::RadioUtils(){
dynamicRouting = false;
distance = 100;
int nodeID = 0;
int groupID = 0;
int parentID = 0;
}
void RadioUtils::initialize(){
nodeID = EEPROM.... |
<commit_before>#ifndef VSMC_UTILITY_CL_MANAGER_HPP
#define VSMC_UTILITY_CL_MANAGER_HPP
#include <vsmc/internal/common.hpp>
namespace vsmc {
struct CLDefault
{
typedef cxx11::integral_constant<cl_device_type, CL_DEVICE_TYPE_DEFAULT>
opencl_device_type;
};
/// \brief OpenCL Manager
/// \ingroup Utility
//... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: localsinglebackend.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2005-09-08 04:06:32 $
*
* The Contents of this fil... |
<commit_before>// Copyright 2019 DeepMind Technologies Limited.
//
// 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 ... |
<commit_before>/*************************************************************************
*
* $RCSfile: xlstyle.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2003-04-08 16:29:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>#ifndef ITER_GROUP_BY_HPP_
#define ITER_GROUP_BY_HPP_
#include "iterbase.hpp"
#include <utility>
#include <iterator>
#include <initializer_list>
namespace iter {
template <typename Container, typename KeyFunc>
class GroupBy;
template <typename Container, typename KeyFunc>
GroupBy<Con... |
<commit_before>#ifndef GROUP__BY__HPP
#define GROUP__BY__HPP
#include <iterbase.hpp>
#include <utility>
#include <iterator>
namespace iter {
template <typename Container, typename KeyFunc>
class GroupBy;
template <typename Container, typename KeyFunc>
GroupBy<Container, KeyFunc> groupby(Container &... |
<commit_before>#include <catch2/catch.hpp>
#include <iostream>
#include <mtao/geometry/mesh/laplacian.hpp>
#include <mtao/simulation/hexahedral/laplacian.hpp>
#include <mtao/simulation/simplicial/laplacian.hpp>
using namespace mtao::simulation::simplicial;
using namespace mtao::geometry::mesh;
TEST_CASE("Lap2", "[lap... |
<commit_before>#include <stdexcept>
#include <fstream>
#include <xorg/gtest/xorg-gtest.h>
#include <X11/extensions/XInput.h>
#include <X11/extensions/XInput2.h>
#include "input-driver-test.h"
class LegacyInputDriverTest : public InputDriverTest {
public:
virtual void ConfigureInputDevice(std::string &driver) {
... |
<commit_before>/*******************************************************************************
* tests/net/group_test.cpp
*
* Part of Project c7a.
*
* Copyright (C) 2015 Timo Bingmann <tb@panthema.net>
*
* This file has no license. Only Chuck Norris can compile it.
*********************************************... |
<commit_before>/** \file
*
* Copyright (c) 2012 by Travis Gockel. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it under the terms of the Apache License
* as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any la... |
<commit_before>/*
* Copyright (c) 2019-2020 Fastly, Inc., Toru Maesaka, Goro Fuji
*
* 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><commit_msg>Coverity: Initialize member view_ to NULL in constructor.<commit_after><|endoftext|> |
<commit_before>//===--- Local.cpp - Functions that perform local SIL transformations. ---===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http:... |
<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/platform_thread.h"
#include "base/multiprocess_test.h"
#include "chrome/common/process_watcher.h"
#include "testing/gtes... |
<commit_before>#line 2 "togo/core/lua/lua.hpp"
/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
@file
@brief Scripting interface.
@ingroup lib_core_lua
*/
#pragma once
#include <togo/core/config.hpp>
#include <togo/core/types.hpp>
#include <togo/core/error/assert.hpp>
#include <togo/core/... |
<commit_before>
#include <util/ScopeUtils.h>
#include <util/StringUtil.h>
#include <gtest/gtest.h>
using namespace aeron::common::util;
TEST(utilTests, scopeTest)
{
bool flag = false;
if (1)
{
OnScopeExit onExit ([&]()
{
flag = true;
});
ASSERT_EQ(flag, false)... |
<commit_before>/*
* istream implementation which reads a file from a NFS server.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "istream_nfs.hxx"
#include "istream/istream_internal.hxx"
#include "istream/istream_buffer.hxx"
#include "nfs_client.hxx"
#include "pool.hxx"
#include "util/Cast.hxx"
#include "ut... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/bookmarks/bookmark_context_menu_controller.h"
#include "base/compiler_specific.h"
#include "chrome/app/chrome... |
<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/chromeos/gdata/operation_registry.h"
#include "base/compiler_specific.h"
#include "base/memory/weak_ptr.h"
#i... |
<commit_before>#include "TileRenderer.h"
namespace nme
{
TileRenderer::TileRenderer(const GraphicsJob &inJob, const GraphicsPath &inPath)
{
mBlendMode = bmNormal;
mFill = inJob.mFill->AsBitmapFill();
mFill->IncRef();
mFiller = Filler::Create(mFill);
const UserPoint *point = (const UserPo... |
<commit_before>/**
* Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS)
* Copyright (c) 2016-2018 metaverse core developers (see MVS-AUTHORS)
*
* This file is part of metaverse.
*
* metaverse is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public Li... |
<commit_before>#include <tiramisu/auto_scheduler/search_method.h>
#include <random>
namespace tiramisu::auto_scheduler
{
void beam_search::search(syntax_tree& ast)
{
if (ast.nb_explored_optims % NB_OPTIMIZATIONS == 0)
ast.clear_new_optimizations();
std::vector<syntax_tree*> children;
... |
<commit_before><commit_msg>Modify page_load_test so that reliability_tests.exe option --noclearprofile works.<commit_after><|endoftext|> |
<commit_before><commit_msg>Fix typo from r23272.<commit_after><|endoftext|> |
<commit_before>// Copyright 2010 Google 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 ... |
<commit_before>#include "Processor.h"
#include "sim/config.h"
namespace Simulator
{
#define NUM_COUNTERS 18
size_t Processor::PerfCounters::GetSize() const { return NUM_COUNTERS * sizeof(Integer); }
Result Processor::PerfCounters::Read(MemAddr address, void *data, MemSize size, LFID fid, TID tid, const RegAddr& wr... |
<commit_before>//
// Created by Rui Wang on 16-4-29.
//
#include "hybrid_scan_executor.h"
#include <memory>
#include <utility>
#include <vector>
#include "backend/common/types.h"
#include "backend/executor/logical_tile.h"
#include "backend/executor/logical_tile_factory.h"
#include "backend/executor/executor_context.... |
<commit_before>// @(#)root/base:$Name: $:$Id: TRegexp.cxx,v 1.9 2002/09/30 17:31:46 rdm Exp $
// Author: Fons Rademakers 04/08/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 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>// 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_frame/sync_msg_reply_dispatcher.h"
#include "ipc/ipc_sync_message.h"
void SyncMessageReplyDispatcher::Push(IPC::Sync... |
<commit_before>#include "Processor.h"
#include "sim/config.h"
#include "sim/range.h"
#include <cassert>
#include <iomanip>
using namespace std;
namespace Simulator
{
//
// RegisterFile implementation
//
Processor::RegisterFile::RegisterFile(const std::string& name, Processor& parent, Clock& clock, Allocator& alloc, ... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// This one has to come first (includes the config.h)!
#include <dune/stuff/test/test_com... |
<commit_before>#include "Archive.hpp"
#include <iostream>
WarArchive::WarArchive()
{
currentArchiveFileStream = NULL;
}
WarArchive::~WarArchive()
{
}
void WarArchive::LoadArchive(const std::string &filePath)
{
CleanArchive();
currentArchiveFileStream = new std::ifstream;
currentArchiveFileS... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICE... |
<commit_before>#include "file-utils.h"
#include <QDir>
#include <QFileInfo>
#include <QString>
#include <QStringList>
bool copyRecursively(QString srcFilePath, QString tgtFilePath, bool overwrite)
{
// Trim directory names of their trailing slashes
if (srcFilePath.endsWith(QDir::separator())) {
srcFilePath.chop(1... |
<commit_before>//===- DCE.cpp - Code to perform dead code elimination --------------------===//
//
// 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) 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/utf_string_conversions.h"
#include "chrome/browser/password_manager/password_form_data.h"
#include "chrome/browser/sync/... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (c) 2010 Arjen Hiemstra <ahiemstra@heimr.nl>
* Copyright (C) 2010 Dan Leinir Turthra Jensen <admin@leinir.dk>
*
* This library is free software; you can r... |
<commit_before>#ifndef __CPREL_BDDDOMAIN_MANAGER_HH__
#define __CPREL_BDDDOMAIN_MANAGER_HH__
#include <iostream>
#include <boost/utility.hpp>
#include <boost/shared_ptr.hpp>
#include <cudd/cuddInt.h>
namespace MPG { namespace CPRel { namespace VarImpl {
namespace Limits {
/**
* \brief Number of bits to represent an... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to... |
<commit_before>#ifndef OPENMVG_VOCABULARY_TREE_VOCABULARY_TREE_HPP
#define OPENMVG_VOCABULARY_TREE_VOCABULARY_TREE_HPP
#include "distance.hpp"
#include "feature_allocator.hpp"
#include <stdint.h>
#include <vector>
#include <cassert>
#include <limits>
#include <fstream>
#include <stdexcept>
#include <iostream>
names... |
<commit_before>// Copyright (c) 2007, 2008 libmv authors.
//
// 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, m... |
<commit_before>/*************************************************************************
*
* $RCSfile: ViewTabBar.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-02-04 14:18:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>// Copyright (c) 2017 ASMlover. 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 o... |
<commit_before>#include "../../edgeElement.h"
#include "../../nodeElement.h"
#include "embeddedLinker.h"
#include <math.h>
#include <QDebug>
#include <QStyle>
#include <QGraphicsItem>
#include <QStyleOptionGraphicsItem>
#include "../../../view/editorViewScene.h"
#include "../../../mainwindow/mainWindow.h"
#include "... |
<commit_before>/*
* Copyright 2011, 2012 Esrille 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 applic... |
<commit_before>#include <iostream>
#include <gtest/gtest.h>
#include "../pipeline.h"
#include "../channel.h"
class PipelineTest : testing::Test { };
TEST(PipelineTest, Test_fibonacci_n4134)
{
/*
// n4134: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4134.pdf
generator<int> fib(int n)
{
int a = 0;
... |
<commit_before>#include <nanyc/library.h>
#include <nanyc/program.h>
#include <yuni/yuni.h>
#include <yuni/core/getopt.h>
#include <yuni/core/string.h>
#include <yuni/io/filename-manipulation.h>
#include <yuni/datetime/timestamp.h>
#include <yuni/core/system/console/console.h>
#include <yuni/core/process/program.h>
#in... |
<commit_before>#include <cstdio>
#include <vector>
#include <deque>
#include <string>
#include <sstream>
/* definitions */
const int stone_size = 8;
const int field_size = 32;
const int empty_val = -1; // 障害物やzkの無いことを表す
const int filled_val = 256; // 障害物を表す
FILE* dumpout = stdout; // dump系関数の出力先
struct Position {
/... |
<commit_before>#include <iostream>
#include <algebra/infinite_vector.h>
#include <utils/array1d.h>
#include <interval/dku_basis.h>
using namespace std;
using namespace WaveletTL;
int main()
{
cout << "Testing the DKU bases..." << endl;
const int d = 2;
const int dT = 4;
typedef DKUBasis<d, dT> Basis;
Bas... |
<commit_before>#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace cv;
using namespace std;
int main(int argc, char** argv) {
Mat src, src_gray;
Mat dst, dst_norm, dst_norm_scaled;
dst = Mat::zeros(src.siz... |
<commit_before>/*
* Copyright (c) 2003-2010 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.... |
<commit_before>#include <laser_odometry_core/laser_odometry_utils.h>
namespace laser_odometry
{
namespace utils
{
void tfFromXYTheta(const double x, const double y, const double theta, tf::Transform& t)
{
t = tf::Transform(tf::createQuaternionFromYaw(theta),
{x, y, 0});
}
bool getTf(const std::... |
<commit_before>#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE "test_functions"
#include <boost/test/unit_test.hpp>
#include "core/minimize.h"
#include "math/random.hpp"
#include "math/epsilon.hpp"
#include "func/function_trid.h"
#include "func/function_beale.h"
#include "func/function_booth.h"
#include "func/f... |
<commit_before>/*
This is just a fast checksum to replace the old CRC32, nothing much here.
It hashes 4x4 (16) bytes at a time then merges them at the end.
*/
#include "checksum.hpp"
inline unsigned int Checksum::Load32(unsigned char *p)
{
return (p[0] << 24 | p[1] << 16 | p[2] << 8 | p[3]); // Endian safe
}
unsig... |
<commit_before>//
// Fio.cpp
//
// Created by Jan Sten Adamek && Vojtech Micka on 2.10.13.
// Copyright (c) 2013 All rights reserved.
//
#include "Fio.h"
#include <unistd.h>
#include <memory.h>
Fio::Fio(int fileDescriptor):_fileDescriptor(fileDescriptor),_ptr(_buffer + B_SIZE),_gcount(0),_fileFinish(false),_finish... |
<commit_before>/**
** \file scheduler/scheduler.hh
** \brief Definition of scheduler::Scheduler.
*/
#ifndef SCHEDULER_SCHEDULER_HH
# define SCHEDULER_SCHEDULER_HH
# include <queue>
# include <boost/tuple/tuple.hpp>
# include <boost/utility.hpp>
# include <libport/utime.hh>
# include "scheduler/fwd.hh"
# include "... |
<commit_before>#include "Chemharp.hpp"
#include <boost/python.hpp>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
#include <boost/numpy.hpp>
namespace py = boost::python;
namespace np = boost::numpy;
using namespace harp;
void translate_Error(Error const& e) {
auto err = std::string("Chemharp er... |
<commit_before>#ifndef __RWI_LOCK_HPP__
#define __RWI_LOCK_HPP__
#include "errors.hpp"
#include <boost/function.hpp>
#include "containers/intrusive_list.hpp"
#include "concurrency/access.hpp"
// Forward declarations
struct rwi_lock_t;
struct lock_request_t;
/**
* Callback class used to notify lock clients that the... |
<commit_before>/*
** Copyright 2009-2013,2015,2018 Centreon
**
** 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 a... |
<commit_before>#include <bits/stdc++.h>
#define endl '\n'
#define debug(x) cout << #x << " " <<x <<endl
#define MAX (1000005)
using namespace std;
int block;
int cnt[MAX];
struct query {
int left;
int right;
int id;
void show(){
cout <<"["<< left << " "<< right <<"]"<<endl;
}
bool operator <(query q) const{
... |
<commit_before>#ifndef __TDB_API_HELPER_H__
static_assert(0, "Include TDB_API/TDB_API_helper.h instead!");
#endif
#include "util.h"
#include "kdb+.util/type_convert.h"
#include <cassert>
#pragma region
template <typename TDBDefine_T>
K TDB::FieldAccessor<TDBDefine_T>::extract(TDBDefine_T const* dataArray, std::size... |
<commit_before>2d490f85-2e4f-11e5-95e6-28cfe91dbc4b<commit_msg>2d51d678-2e4f-11e5-bc0b-28cfe91dbc4b<commit_after>2d51d678-2e4f-11e5-bc0b-28cfe91dbc4b<|endoftext|> |
<commit_before>4c86970c-2748-11e6-8a0e-e0f84713e7b8<commit_msg>Fixed that one bug<commit_after>4c9b9a1c-2748-11e6-ae71-e0f84713e7b8<|endoftext|> |
<commit_before>809e91a1-2d15-11e5-af21-0401358ea401<commit_msg>809e91a2-2d15-11e5-af21-0401358ea401<commit_after>809e91a2-2d15-11e5-af21-0401358ea401<|endoftext|> |
<commit_before>/** main.cpp
* Dylan Auty, 2016
*/
#include <ncurses.h>
#include "CursesWindow.hpp"
#include "Map.hpp"
using namespace std;
// TODO: Move redrawMap to another file for tidiness
void redrawMap(WINDOW* &mapWin, WINDOW* &debugRowWin, Map &gameMap, int currMapY, int currMapX, int currFloor); ///< Functi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.