text stringlengths 54 60.6k |
|---|
<commit_before>#include "NotepadPlugin.h"
#include <LuminaXDG.h>
#include "LSession.h"
NotePadPlugin::NotePadPlugin(QWidget* parent, QString ID) : LDPlugin(parent, ID){
QVBoxLayout *vlay = new QVBoxLayout();
this->setLayout( new QVBoxLayout() );
this->layout()->setContentsMargins(0,0,0,0);
vlay->setConte... |
<commit_before>/*************************************************************************
*
* $RCSfile: collator_unicode.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2003-04-08 15:43:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the followi... |
<commit_before>#pragma once
#include <ceres/ceres.h>
#include <ceres/rotation.h>
#include <openMVG/geometry/pose3.hpp>
#include <openMVG/cameras/Camera_Pinhole_Radial.hpp> //todo: not generic
// only Pinhole_Intrinsic_Radial_K3 is currently supported
// todo: allows in... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, Youssef Kashef
// Copyright (c) 2015, ELM Library Project
// 3-clause BSD License
//
//M*/
#include "elm/layers/graphcompatibility.h"
#include "elm/core/featuredata.h"
#include "elm/core/... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
//Criao da estrutura para AP2
typedef struct
{
int codigo;
char raca[30], nome[100];
} registro;
typedef struct
{
int codigo, offset;
} indice1;
typedef struct
{
char vacina[30];
int offset;
} indice2;
int Menu();
void... |
<commit_before>#include "tlang.h"
#include <taichi/util.h>
#include <taichi/visual/gui.h>
#include <taichi/common/bit.h>
TC_NAMESPACE_BEGIN
using namespace Tlang;
Matrix outer_product(Vector a, Vector b) {
TC_ASSERT(a.m == 1);
TC_ASSERT(b.m == 1);
Matrix m(a.n, b.n);
for (int i = 0; i < a.n; i++) {
for (... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scmdstrm.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: hr $ $Date: 2006-06-20 00:24:09 $
*
* The Contents of this file are made ... |
<commit_before>#include <communication.h>
Communication::Communication(ObjectExtractor *p_obj_e, FileAPI *p_api, JacoCustom *p_jaco)
{
m_object_ex_ptr = p_obj_e;
m_api_ptr = p_api;
m_jaco_ptr = p_jaco;
m_coordinate_received = false;
m_grasp_received = false;
m_train_received = false;
}
//-----... |
<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 L... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>/*
Copyright (C) 2016, BogDan Vatra <bogdan@kde.org>
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 Foundation, either version 3 of the
License, or (at your option) any... |
<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.
*/
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <wincodec.h>
#include "SkAutoCoInitialize.h"
#include "SkImageDecoder.h"
#include "SkImageEncoder.h"... |
<commit_before>/*
* Copyright (c) 2012-2016 Daniele Bartolini and individual contributors.
* License: https://github.com/taylor001/crown/blob/master/LICENSE
*/
#include "config.h"
#include "dynamic_string.h"
#include "filesystem.h"
#include "memory.h"
#include "path.h"
#include "queue.h"
#include "resource_loader.h... |
<commit_before>/*
* This file is part of Clockwork.
*
* Copyright (c) 2014-2016 Jeremy Othieno.
*
* The MIT License (MIT)
* 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 restr... |
<commit_before>/////////////////////////////////////////
//
// OpenLieroX
//
// code under LGPL, based on JasonBs work,
// enhanced by Dark Charlie and Albert Zeyer
//
//
/////////////////////////////////////////
// Client class
// Created 28/6/02
// Jason Boettcher
#include "LieroX.h"
#include "Profile... |
<commit_before>#ifndef DICT_KEY_VALUE_HPP
#define DICT_KEY_VALUE_HPP
#include <utility>
namespace io {
namespace detail {
// inspired/taken from libc++
template <class Key, class Value>
union key_value {
typedef Key key_type;
typedef Value mapped_type;
typedef std::pair<const key_type, mapped_type> valu... |
<commit_before>#pragma once
#include <atomic>
#include <dsnutil/observable.hpp>
#include <dsnutil/observer.hpp>
namespace dsn {
template <typename T> class observing_ptr : public observer {
static_assert(is_observable<T>::value, "observing_ptr<T> only works with subclasses of dsn::observable!");
private:
st... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 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>#pragma once
#include <vector>
template <typename MoeType>
Moether<MoeType>::Moether()
{
distrib_char = std::uniform_int_distribution<unsigned int>(32, 255);
}
template <typename MoeType>
Moether<MoeType>::~Moether()
{
}
template <typename MoeType>
void Moether<MoeType>::init( unsigned int _moesP... |
<commit_before>//
// Copyright (c) 2013-2014 Christoph Malek
// See LICENSE for more information.
//
#ifndef RJ_GAME_CAMERA_HPP
#define RJ_GAME_CAMERA_HPP
#include <rectojump/core/game_window.hpp>
namespace rj
{
class camera
{
game_window& m_gamewindow;
sf::RenderWindow& m_renderwindow;
const sf::View& m_... |
<commit_before>//
// Copyright (c) 2013-2014 Christoph Malek
// See LICENSE for more information.
//
#ifndef RJ_GAME_CAMERA_HPP
#define RJ_GAME_CAMERA_HPP
#include <rectojump/core/game_window.hpp>
namespace rj
{
class camera
{
game_window& m_gamewindow;
sf::RenderWindow& m_renderwindow;
const sf::View& m_... |
<commit_before>// This file is a part of Simdee, see homepage at http://github.com/tufak/simdee
// This file is distributed under the MIT license.
#ifndef SIMDEE_UTIL_MALLOC_HPP
#define SIMDEE_UTIL_MALLOC_HPP
#include <type_traits>
#include <exception>
#include <cstdlib>
#include <cstdint>
#include "noexcept.hpp"
na... |
<commit_before>// Copyright (c) 2021 Daniel Deptford
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_CONTRIB_PEG_HPP
#define TAO_PEGTL_CONTRIB_PEG_HPP
#include <tao/pegtl.hpp>
namespace TAO_PEGTL_NAMESPACE
{
namespace peg
{
// PEG grammar from https://pdos.cs... |
<commit_before>// The Art of C++ / Sequences
// Copyright (c) 2015 Daniel Frey
#ifndef TAOCPP_SEQUENCES_INCLUDE_TYPE_BY_INDEX_HPP
#define TAOCPP_SEQUENCES_INCLUDE_TYPE_BY_INDEX_HPP
#include <cstddef>
#include <type_traits>
namespace tao
{
namespace seq
{
namespace impl
{
// This is not very elegant... |
<commit_before>#ifndef TWISTEDCPP_LINE_RECEIVER
#define TWISTEDCPP_LINE_RECEIVER
#include "basic_protocol.hpp"
#include "protocol_core.hpp"
#include <vector>
#include <boost/range/iterator_range.hpp>
namespace twisted {
template <typename ChildProtocol>
class byte_receiver : public twisted::protocol_core<ChildProt... |
<commit_before>//============================================================================
// include/vsmc/utility/progress.hpp
//----------------------------------------------------------------------------
//
// vSMC: Scalable Monte Carlo
//
// This file is distribured under the 2-clauses BS... |
<commit_before>#ifndef STAN__MATH__FUNCTIONS__SIGN_HPP
#define STAN__MATH__FUNCTIONS__SIGN_HPP
namespace stan {
namespace math {
template<typename T>
inline int sign(const T& z) {
return (z == 0) ? 0 : z < 0 ? -1 : 1;
}
}
}
#endif
<commit_msg>added doc in code for sign<commit_after>#ifndef STAN... |
<commit_before>// Copyright (C) 2018 Egor Pugin <egor.pugin@gmail.com>
//
// 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 "primitives/sw/settings.h"
#defin... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2014 Artem Pavlenko, Jean-Francois Doyon
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU L... |
<commit_before>// see [A multi-threaded Producer Consumer with C++11](http://codereview.stackexchange.com/questions/84109/a-multi-threaded-producer-consumer-with-c11)
// note that `lock_guard` is recommended instead of `unique_lock` as it releases lock automatically follow RAII leaving the lock scope.
// see also [](ht... |
<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 <string>
#include "app/l10n_util.h"
#include "base/sys_info.h"
#include "chrome/browser/app_modal_dialog.h"
#include "chrome/... |
<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/plugin_data_remover.h"
#include "base/command_line.h"
#include "base/message_loop_proxy.h"
#include "base/met... |
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// See the corresponding header file for description of the functions in this
// file.
#include "install_util.h"
#include <alg... |
<commit_before>//-*- Mode: C++ -*-
// $Id: AliHLTJETConeFinder.cxx $
/**************************************************************************
* This file is property of and copyright by the ALICE HLT Project *
* ALICE Experiment at CERN, All rights reserved. *
* ... |
<commit_before>// $Id$
/**
* @file print-ESD-HLTdecision.C
* @brief Print HLT decisions per event of ESD
*
* <pre>
* Usage: aliroot -b -q print-ESD-HLTdecision.C
* </pre>
*
* The input file can be a file on Grid like e.g.
* "alien:///alice/data/2009/LHC09d/000104321/ESDs/pass5/09000104321018.30/AliESDs.root"
... |
<commit_before>/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the Apache 2.0 license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tre... |
<commit_before>/* OpenSceneGraph example, osgmultitexture.
*
* 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>/*=========================================================================
Program: Visualization Toolkit
Module: vtkDescriptiveStatistics.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for detai... |
<commit_before>/* Copyright 2017 R. Thomas
* Copyright 2017 Quarkslab
*
* 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 re... |
<commit_before>/*
Copyright (C) 2001 by Jorrit Tyberghein
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later ve... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// ThreadLocal test program for The Loki Library
// Copyright (c) 2009 by Richard Sposato
// The copyright on this file is protected under the terms of the MIT license.
//
// Permission is hereby granted, free of charge, ... |
<commit_before>/*
Kopete , The KDE Instant Messenger
Copyright (c) 2001-2002 by Duncan Mac-Vicar Prett <duncan@kde.org>
Viva Chile Mierda!
Started at Wed Dec 26 03:12:10 CLST 2001, Santiago de Chile
Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
*********************... |
<commit_before><commit_msg>Added SHEEN_ROUGHNESS and SHEEN_ALBEDOSCALING define<commit_after><|endoftext|> |
<commit_before>#include <babylon/materials/pbr/pbr_material_defines.h>
#include <sstream>
namespace BABYLON {
PBRMaterialDefines::PBRMaterialDefines()
{
boolDef = {
{"PBR", true}, //
{"REALTIME_FILTERING", false}, //
{"MAINUV1", false}, //
{"MAINUV2", false}, //
{"UV1", false}, //
{"U... |
<commit_before>// Filename: pystub.cxx
// Created by: drose (09Aug00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. ... |
<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)
#ifndef DUNE_GDT_SPACE_INTERFACE_HH
#define DUNE_GDT_SPACE_INTERFACE_HH
#include <memory... |
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "condensedbitvectors.h"
#include <vespa/vespalib/util/exceptions.h>
#include <vespa/vespalib/util/rcuvector.h>
#include <cassert>
using vespalib::IllegalArgumentException;
using vespalib::ma... |
<commit_before>// This file is part of the dune-stuff project:
// https://users.dune-project.org/projects/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_RANDOM_HH
#define DUNE_STUFF_RANDOM_HH
#include <ran... |
<commit_before>// Write a print function that print a text on the screen. If the type of the string is int include a space between the values. Do NOT change existing code.
// Hint: Start by implementing the generic version.
#include <iostream>
#include <seqan/sequence.h>
int computeScore(seqan::String<char> subText, ... |
<commit_before>#ifndef DUNE_STUFF_RANGES_RANGES_HH
#define DUNE_STUFF_RANGES_RANGES_HH
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#else
#include "config.h"
#endif // ifdef HAVE_CMAKE_CONFIG
#if HAVE_DUNE_GRID
#include <dune/stuff/common/disable_warnings.hh>
#include <dune/grid/common/gridview.hh>
#include <... |
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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 requir... |
<commit_before>/****************************************************************************
* Copyright (c) 2012-2018 by the DataTransferKit authors *
* All rights reserved. *
* ... |
<commit_before>#include "test_common.hh"
#include <dune/common/exceptions.hh>
#include <dune/common/shared_ptr.hh>
#include <dune/stuff/function.hh>
using namespace Dune::Stuff;
typedef testing::Types< FunctionExpression< double, 1, double, 1 >,
FunctionCheckerboard< double, 1, double, 1 > >... |
<commit_before>//===- Miscompilation.cpp - Debug program miscompilations -----------------===//
//
// This file implements program miscompilation debugging support.
//
//===----------------------------------------------------------------------===//
#include "BugDriver.h"
#include "SystemUtils.h"
#include "ListReducer.... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2008 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>void twoscales()
{
//example of macro illustrating how to superimpose two histograms
//with different scales in the "same" pad.
// To see the output of this macro, click begin_html <a href="gif/twoscales.gif" >here</a> end_html
TCanvas *c1 = new TCanvas("c1","hists with different scale... |
<commit_before>/*!
\copyright (c) RDO-Team, 2011
\file main.cpp
\author (rdo@rk9.bmstu.ru)
\authors (lord.tiran@gmail.com)
\date 10.05.2009
\brief common-
\indent 4T
*/
// ----------------------------------------------------------------------- PLATFORM
#include "util... |
<commit_before>#include "sinXScrollDemo.h"
#include "vrambatcher.h"
#include <cmath>
#include <nds/arm9/input.h>
SinXScrollDemo::SinXScrollDemo() : offset(0), amplitude(1) {}
void SinXScrollDemo::AcceptInput() {
auto keys = keysCurrent();
if(keys & KEY_X && amplitude > MIN_AMPLITUDE) {
amplitude -= 0.01;
} else ... |
<commit_before>// This file is part of the dune-stuff project:
// https://users.dune-project.org/projects/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
//
// Contributors: Kirsten Weber
#ifndef DUNE_STUFF_GRID_PROVIDER_HH
#d... |
<commit_before>#include "test_common.hh"
#include <memory>
#include <dune/common/exceptions.hh>
#include <dune/common/shared_ptr.hh>
#include <dune/stuff/function/interface.hh>
#include <dune/stuff/function/expression.hh>
#include <dune/stuff/function/checkerboard.hh>
#include <dune/stuff/function/spe10.hh>
#include... |
<commit_before>/*************************************************************************
*
* $RCSfile: FindVolumeMountPointClose.cpp,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2003-04-08 15:52:48 $
*
* The Contents of this file are made available subject to the terms of
* either of th... |
<commit_before>/*
* Copyright 2010-2011 Fabric Technologies Inc. All rights reserved.
*/
#include "objparser.h"
#include <sstream>
class Exception
{
public:
Exception(const char* msg)
: m_msg(msg)
{}
const char* getMsg()
{
return m_msg.c_str();
}
private:
std::string m_msg;
};
void skipToNe... |
<commit_before>void RichBatch(const Int_t iNevents,const Bool_t isDebug,const char *sConfigFileName)
{
if(isDebug) gAlice->SetDebug(1);
Info("my/RichBatch.C","%i event(s) requested, debug %i,config file %s",iNevents,isDebug,sConfigFileName);
TStopwatch sw;TDatime time;
AliSimulation *pSim=new AliSimula... |
<commit_before>// implementation for refinable.h
#include <algorithm>
#include <cmath>
#include <iostream>
#include <utils/array1d.h>
#include <algebra/matrix.h>
#include <numerics/eigenvalues.h>
#include <numerics/differences.h>
namespace WaveletTL
{
template <class MASK>
template <unsigned int DERIVATIVE>
Sam... |
<commit_before>// regimes.cpp : examples of working with posit regimes
//
// Copyright (C) 2017-2018 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include "common.hpp"
#include <posit>
// test reporting helper
int Repor... |
<commit_before>/**************************************************************************
*
* Copyright 2011 Jose Fonseca
* 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 t... |
<commit_before><commit_msg>Workaround for ObjCIvarDecl problem<commit_after><|endoftext|> |
<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 "ui/gfx/color_utils.h"
#include <math.h>
#if defined(OS_WIN)
#include <windows.h>
#endif
#include <algorithm>
#include "bas... |
<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 "ui/gfx/color_utils.h"
#include <math.h>
#if defined(OS_WIN)
#include <windows.h>
#endif
#include <algorithm>
#include "bas... |
<commit_before>#ifndef LISP_PTR_HH
#define LISP_PTR_HH
#include <string>
#include <vector>
#include <cstdio>
#include <unordered_map>
enum class Ptr_tag {
undefined = -1,
boolean = 0,
character,
cons,
symbol,
i_procedure,
n_procedure,
number,
string,
vector,
port,
env,
... |
<commit_before>#include "common.hpp"
#undef LOG_TRACE
#undef LOG_INFO
#undef LOG_WARN
#undef LOG_ERROR
#include <syslog.h>
#include <time.h>
#include <unistd.h>
#include <pthread.h>
#define UTIL_CONTEXT util::logging::log_context(__FILE__, __LINE__, __FUNCTION__)
// Stub is needed since pthreads
// don't know about... |
<commit_before>#include <atomic>
#include "test.hpp"
#include "caf/all.hpp"
#include "caf/string_algorithms.hpp"
using namespace std;
using namespace caf;
namespace {
atomic<size_t> s_error_count{0};
}
size_t caf_error_count() { return s_error_count; }
void caf_inc_error_count() { ++s_error_count; }
string caf_fi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ci_text2.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2006-09-15 11:10:40 $
*
* The Contents of this file are made... |
<commit_before>#include <algorithm>
#include <ctime>
#include <climits>
#include <iostream>
#include <string>
#include "arg_parser.hpp"
#include "alarm/alarm.h"
int main(int argc, char* argv[]) {
ArgParser input(argc, argv);
struct tm alarm_time;
if(!strptime(argv[1], "%H:%M", &alarm_time)) return -1;
... |
<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/basictypes.h"
#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/platform_thread.h"
#include "base/shared_me... |
<commit_before>#include "command.hh"
#include "shared.hh"
#include "eval.hh"
#include "attr-path.hh"
#include "progress-bar.hh"
#include <unistd.h>
using namespace nix;
struct CmdEdit : InstallableCommand
{
std::string name() override
{
return "edit";
}
std::string description() override
... |
<commit_before>#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "../ext/doctest.h"
#include "../nmea_parser.h"
using namespace nmea;
using doctest::Approx;
TEST_CASE("GxRMC parser") {
RmcData data;
uint8_t crc;
// From NL-8002U NAVILOCK Multi GNSS Receiver ublox 8
CHECK(parse("$GNRMC,031649.50,A,4958.... |
<commit_before>
#include <configure/Application.hpp>
#include <boost/filesystem.hpp>
#include <fstream>
namespace fs = boost::filesystem;
typedef configure::Application app_t;
BOOST_AUTO_TEST_CASE(invalid_args)
{
BOOST_CHECK_THROW(app_t(0, nullptr), std::exception);
BOOST_CHECK_THROW(app_t(-1, nullptr), std::exc... |
<commit_before>#include <iostream>
#include <stdlib.h>
#include "media/types.h"
using namespace std;
const int arraySize = 50;
/*
* Function for inserting a new medium (Medium, Video, Book, ...)
* to an array of Medium pointers.
*/
void addMedia(Medium* medium, Medium* media[], int arraySize) {
int i;
for (i... |
<commit_before>#include <iostream>
#include <queue>
#include <stdio.h>
using namespace std;
#include "Binary-tree.hpp"
#include "pretty-print.hpp"
// Функция создает сбалансированное дерево и возращает корневой узел дерева
Node* createBalancedBTree(Node** node, int *&value, int cnt)
{
if (cnt <= 0)
return NULL;
... |
<commit_before>#ifndef GNR_LIGHTPTR_HPP
# define GNR_LIGHTPTR_HPP
# pragma once
#include <cassert>
#include <atomic>
#include <memory>
#include <type_traits>
#include <utility>
namespace gnr
{
namespace detail
{
namespace light_ptr
{
using counter_type = unsigned;
using atomic_type = std::atomic<counter_type>... |
<commit_before>#pragma once
#ifndef LIGHTPTR_HPP
# define LIGHTPTR_HPP
#include <cassert>
#include <atomic>
#include <memory>
#include <utility>
#include <type_traits>
namespace generic
{
namespace detail
{
using counter_type = unsigned;
using atomic_type = ::std::atomic<counter_type>;
template <typename... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle 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 ap... |
<commit_before>/** FlexArray [PawLIB]
* Version: 1.0
*
* A dynamic array with a low dynamic allocation demand.
* Designed to take the place of 'std::vector'.
*
* Author(s): Michael Parkman, Jonathan Theodore, Jason C. McDonald
*/
/* LICENSE
* Copyright (c) 2016 MousePaw Media.
* All rights reserved.
*... |
<commit_before>#include "unlimited.h"
#include "test/test_bitcoin.h"
#include "../consensus/consensus.h"
#include <boost/algorithm/string.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/lexical_cast.hpp>
using namespace std;
// Defined in rpc_tests.cpp not bitcoin-cli.cpp
extern UniValue CallRPC(string str... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: srchitem.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: kz $ $Date: 2007-05-10 17:07:42 $
*
* The Contents of this file are made ... |
<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/ui/webui/options/chromeos/system_settings_provider.h"
#include <string>
#include "base/i18n/rtl.h"
#include ... |
<commit_before>#include "ReplicatedLog.h"
#include "Framework/Replication/ReplicationConfig.h"
#include "System/Events/EventLoop.h"
static Buffer enableMultiPaxos;
static Buffer dummy;
void ReplicatedLog::Init(QuorumContext* context_)
{
Log_Trace();
context = context_;
paxosID = 0;
proposer... |
<commit_before>#include "ReplicatedLog.h"
#include "Framework/Replication/ReplicationConfig.h"
#include "System/Events/EventLoop.h"
//#define RLOG_DEBUG_MESSAGES 1
static Buffer dummy;
void ReplicatedLog::Init(QuorumContext* context_)
{
Log_Trace();
context = context_;
paxosID = 0;
propose... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2017 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use t... |
<commit_before>/*
* Copyright (c) 2012-2013 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS I... |
<commit_before>/*
This file is part of the ORK library.
Full copyright and license terms can be found in the LICENSE.txt file.
*/
#pragma once
#include"ork/orientation.hpp"
#if ORK_USE_GLM
#include"glm/vec3.hpp"
#include"glm/geometric.hpp"
namespace ork {
namespace GLM {//Kind of deceiving, but whatever
struct dun... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cclass_unicode.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2005-09-07 17:04:48 $
*
* The Contents of this file are... |
<commit_before>#include "util/guidance/turn_lanes.hpp"
#include <algorithm>
#include <iostream>
#include <boost/assert.hpp>
namespace osrm
{
namespace util
{
namespace guidance
{
LaneTupel::LaneTupel() : lanes_in_turn(0), first_lane_from_the_right(INVALID_LANEID)
{
// basic constructor, set everything to zero
}
... |
<commit_before>/**
* \file
* \brief DynamicThreadBase class header
*
* \author Copyright (C) 2015-2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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
* dis... |
<commit_before>/*
* MD5 hash in C and x86 assembly
*
* Copyright (c) 2016 Project Nayuki
* https://www.nayuki.io/page/fast-md5-hash-implementation-in-x86-assembly
*
* (MIT License)
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of
* this software and associated documentation f... |
<commit_before>#include "collision.h"
#include <cmath>
//if the sum of the radius is <= the distance, the spheres collide
bool Overlap::isOverlapping(Shape::Circle left, Shape::Circle right){
return distance(left.center, right.center)
<= left.radius + right.radius;
}
//Returns whether the point exists within t... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved
*/
#include "../StroikaPreComp.h"
#include <cstdlib>
#include <cstring>
#include <ctime>
#if qPlatform_POSIX
#include <time.h>
#endif
#include "../Configuration/Common.h"
#include "../Characters/String... |
<commit_before>/*=========================================================================
Library: CTK
Copyright (c) Kitware 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
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.