text stringlengths 54 60.6k |
|---|
<commit_before>/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>#include "walletmodel.h"
#include "guiconstants.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include "transactiontablemodel.h"
#include "ui_interface.h"
#include "wallet.h"
#include "walletdb.h" // for BackupWallet
#include "base58.h"
#include <QSet>
#include <QTimer>
WalletModel::Wall... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 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>/**
* 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 ... |
<commit_before>/* Copyright 2020 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><commit_msg>Added in smooth scrolling for TabMenu, going to the right needs adjustment.<commit_after><|endoftext|> |
<commit_before>#include "testing/testing.hpp"
#include "routing/routing_callbacks.hpp"
#include "routing/routing_integration_tests/routing_test_tools.hpp"
#include "geometry/mercator.hpp"
#include "base/math.hpp"
using namespace integration;
using namespace routing;
using namespace routing::turns;
UNIT_TEST(Russi... |
<commit_before><commit_msg>tidying<commit_after><|endoftext|> |
<commit_before><commit_msg>quotient_info.hpp: extra template parameters<commit_after><|endoftext|> |
<commit_before>// $Id: parameterSection.C,v 1.16 2001/03/12 00:50:35 amoll Exp $
#include <BALL/FORMAT/parameterSection.h>
#include <BALL/FORMAT/parameters.h>
using namespace std;
namespace BALL
{
const String ParameterSection::UNDEFINED = "(UNDEFINED)";
ParameterSection::ParameterSection() throw()
: section... |
<commit_before>/*************************************************************************
*
* $RCSfile: handleinteractionrequest.cxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: sb $ $Date: 2001-07-13 12:48:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the... |
<commit_before>//
// Aspia Project
// Copyright (C) 2020 Dmitry Chapyshev <[email protected]>
//
// 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 ... |
<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>/***************************************************************************
* Copyright (C) 2006 by Ingo Kloecker <[email protected]> *
* *
* This program is free software; you can redistribute it and/or modify ... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lice... |
<commit_before>/*
* RandomSplitterTest.cpp
* Tests RandomSplitter
*
Copyright 2017 Wojciech Wilgierz
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
Unle... |
<commit_before><commit_msg>support bypassing frame-ancestors CSP in Node frame<commit_after><|endoftext|> |
<commit_before><commit_msg>Use base::WindowImpl instead of CWindowImpl to remove a dependency on ATL.<commit_after><|endoftext|> |
<commit_before>// Copyright 2013 Mirus Project
// 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... |
<commit_before><commit_msg>trying to make this fit in gcc-4.6s little brain<commit_after><|endoftext|> |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkInterpolateTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2000 National Library of Medicine
All rights reserved.... |
<commit_before>#include "AudioSymLoader.h"
#include "GUM_Audio.h"
#include <sprite2/AudioSymbol.h>
#include <uniaudio/AudioContext.h>
namespace gum
{
AudioSymLoader::AudioSymLoader(s2::AudioSymbol* sym)
: m_sym(sym)
{
if (m_sym) {
m_sym->AddReference();
}
}
AudioSymLoader::~AudioSymLoader()
{
if (m_sym) {
m... |
<commit_before>// Copyright 2017 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 o... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// Name: style.cpp
// Purpose: Implementation of wxExStyle class
// Author: Anton van Wezenbeek
// Created: 2010-02-08
// RCS-ID: $Id$
// Copyright: (c) 2010 Anton van Wezenbeek
///////////////////////////////... |
<commit_before>/*
* ipop-project
* Copyright 2016, University of Florida
*
* 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 us... |
<commit_before>
#pragma once
#include <type_traits>
#include <ostream>
#include "geometry/hilbert.hpp"
#include "quantities/named_quantities.hpp"
namespace principia {
namespace geometry {
namespace internal_complexification {
using quantities::Difference;
using quantities::Product;
using quantities::Quotient;
usi... |
<commit_before>/*
* SlideRenderer.cpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General... |
<commit_before>//
// Target.hpp
// Clock Signal
//
// Created by Thomas Harte on 03/06/2019.
// Copyright © 2019 Thomas Harte. All rights reserved.
//
#ifndef Analyser_Static_Macintosh_Target_h
#define Analyser_Static_Macintosh_Target_h
namespace Analyser {
namespace Static {
namespace Macintosh {
struct Target:... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief 菊水電源インターフェース・クラス @n
※0.14 mA 以下の電流を測定出来ない為、停電流源による下駄を @n
履かせている。@n
その為、起動時に定電流源の基準を測定している。
@author 平松邦仁 ([email protected])
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Re... |
<commit_before>#include <boost/program_options.hpp>
#include <iostream>
#include "parsed_args.h"
#include "test_gpucode.h"
#define N_ITERS 10
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_NO_MAIN
#include <boost/test/unit_test.hpp>
namespace ut = boost::unit_test;
namespace po = boost::program_options;
parsed_args p... |
<commit_before>/*!
\copyright (c) RDO-Team, 2011
\author ([email protected])
\date 07.03.2011
\brief
\indent 4T
*/
// ---------------------------------------------------------------------------- PCH
#include "simulator/compiler/parser/pch.h"
// ----------------------------------------------... |
<commit_before>/*
** Copyright 2009-2015 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 distribu... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: chips/p9/procedures/hwp/lib/p9_hcd_common.H $ ... |
<commit_before>/*
* Copyright (c) 2009, Mathieu Champlon
* 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 ... |
<commit_before>//===---- llvm/unittest/IR/PatternMatch.cpp - PatternMatch unit tests ----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------... |
<commit_before>
#include "stxxl/bits/io/wfs_file.h"
#ifdef BOOST_MSVC
__STXXL_BEGIN_NAMESPACE
HANDLE wfs_file_base::get_file_des() const
{
return file_des;
}
void wfs_file_base::lock()
{
if (LockFile(file_des, 0, 0, 0xffffffff, 0xffffffff) == 0)
stxxl_win_lasterror_exit("LockFile ", io_error)
... |
<commit_before>/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "AttributedString.h"
#include <react/renderer/debug/DebugStringConvertibleItem.h>
namespace facebook::r... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2012 Torus Knot Software Ltd
Permission is hereby granted, free of cha... |
<commit_before>#include "stdafx.h"
#include "SamplingTypeGenerator.h"
#include <math.h>
#include "DataHelper.h"
#include <algorithm>
#include <numeric>
#include "../FFTW-64/include/fftw3.h"
#pragma comment(lib, "../FFTW-64/lib/libfftw3-3.lib")
#pragma comment(lib, "../FFTW-64/lib/libfftw3f-3.lib")
#pragma comment(lib,... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distribu... |
<commit_before>// @(#)root/g3d:$Id$
// Author: Rene Brun 14/09/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: officeforms.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2007-06-27 15:17:34 $
*
* The Contents of this file are ma... |
<commit_before>/*
* Copyright (c) 2013, Ben Noordhuis <[email protected]>
*
* Permission to use, copy, modify, and/or 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 ... |
<commit_before>/*
Copyright (C) 2006 Matthias Kretz <[email protected]>
Copyright (C) 2009 Martin Sandsmark <[email protected]>
Copyright (C) 2011 Harald Sitter <[email protected]>
Copyright (C) 2011 Alessandro Siniscalchi <[email protected]>
This library is free software; you can redistribute i... |
<commit_before><commit_msg>vcl: PVS-Studio V595 'mpImplWin' pointer could be null<commit_after><|endoftext|> |
<commit_before>#include <PCU.h>
#include <MeshSim.h>
#include <SimPartitionedMesh.h>
#include <SimUtil.h>
#include <apfSIM.h>
#include <apfMDS.h>
#include <gmi.h>
#include <gmi_sim.h>
#include <apf.h>
#include <apfConvert.h>
#include <apfMesh2.h>
#include <ma.h>
#include <cassert>
#include <cstdlib>
#include <cstring>
... |
<commit_before>#include"CThreadList.h"
#include<utility>
namespace nThread
{
template<class T>
template<class ... Args>
void CThreadList<T>::emplace_back(Args &&...args)
{
std::lock_guard<std::mutex> lock{insertMut_};
list_.emplace_back(std::forward<Args>(args)...);
insert_.notify_all();
}
template<class ... |
<commit_before><commit_msg>VclPtr: crash on exit on impress<commit_after><|endoftext|> |
<commit_before>// Copyright 2011 Google
// 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... |
<commit_before>/***************************************************************************
utilities.cpp - description
copyright : (C) 1999 by Christian Thurner
email : [email protected]
***************************************************************************/
/*... |
<commit_before><commit_msg>use SAL_N_ELEMENTS<commit_after><|endoftext|> |
<commit_before>/*
Copyright (c) 2012 Carsten Burstedde, Donna Calhoun
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>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkFEMLoadImplementationsRegister.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserv... |
<commit_before>//===-- AMDGPUDisassembler.cpp - Disassembler for AMDGPU ISA --------------===//
//
// 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-2013 Stephen Williams ([email protected])
* Copyright CERN 2015
* @author Maciej Suminski ([email protected])
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public Lice... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkQtChartSeriesModelCollection.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm fo... |
<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 "base/memory/scoped_ptr.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prefs/session_startup_pref.... |
<commit_before>
#include "InverseKinematicsStudy.h"
#include "OpenSenseUtilities.h"
#include <OpenSim/Common/IO.h>
#include <OpenSim/Common/TimeSeriesTable.h>
#include <OpenSim/Common/TableSource.h>
#include <OpenSim/Common/STOFileAdapter.h>
#include <OpenSim/Common/TRCFileAdapter.h>
#include <OpenSim/Common/Reporter.h... |
<commit_before>
/* App.cpp
*
* Copyright (C) 2013 Michael Imamura
*
* 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>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <cassert>
#include <visionaray/math/math.h>
#include <gtest/gtest.h>
using namespace visionaray;
//-------------------------------------------------------------------------------------------------
// He... |
<commit_before>/*
* Copyright 2016-2017 deepstreamHub GmbH
*
* 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 <algorithm>
#include "CPU.hpp"
#include "WordDecoder.hpp"
namespace Core8 {
CPU::CPU(MMU& mmu, IoDevice& ioDevice, RandomNumberGenerator& rndGenerator)
: m_mmu{mmu},
m_ioDevice{ioDevice},
m_rndGenerator{rndGenerator},
m_dispatchTable{
{Chip8::OpCode::CLEAR_SCREE... |
<commit_before>#include "Course.h"
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
int main() {
// main prompt
bool isOpen = false; // MUST REPLACE WITH MEMBER FUNCTION FOR COURSE
Course course;
string input;
// string openCourse;
cout << "Welcome to grade-plus\n";
cout <... |
<commit_before>#include <cerrno>
#include <cstring>
#include <iostream>
#include <sstream>
#include "test_helpers.hxx"
using namespace pqxx;
// Simple test program for libpqxx's Large Objects interface.
namespace
{
const std::string Contents = "Large object test contents";
void test_050()
{
connection conn;
... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_query_cache_access_st... |
<commit_before>/* -*- mode: c++; tab-width: 2; indent-tabs-mode: nil; -*-
Copyright (c) 2010-2012 Marcus Geelnard
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyo... |
<commit_before>#include <gtest/gtest.h>
#include <uvw.hpp>
#ifdef _WIN32
#include <fcntl.h>
#endif
TEST(FileReq, OpenAndClose) {
const std::string filename = std::string{TARGET_FS_DIR} + std::string{"/test.fs"};
auto loop = uvw::Loop::getDefault();
auto request = loop->resource<uvw::FileReq>();
boo... |
<commit_before>#include <gtest/gtest.h>
#include <uvw.hpp>
#ifdef _WIN32
#include <fcntl.h>
#endif
TEST(FileReq, OpenAndClose) {
const std::string filename = std::string{TARGET_FS_DIR} + std::string{"/test.fs"};
auto loop = uvw::Loop::getDefault();
auto request = loop->resource<uvw::FileReq>();
boo... |
<commit_before>#include "HFO.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <assert.h>
#include <netdb.h>
#include <iostream>
#include <stdarg.h>
#include <agent.h>
#include <rcsc/common/basic_client.h>
... |
<commit_before>#include "picross.h"
using namespace std;
int main(int argc, char** argv)
{
ifstream f;
//f.open(argv[1]);
f.open("Fichiers\ Test/tipoisson.txt");
if(!f.is_open())
{
cerr<<"probleme d'ouverture du fichier"<<endl;
return 1;
}
else
{
/* On lit le fichier texte et construit le ... |
<commit_before>/*
* Super Entity Game Server Project
* http://segs.sf.net/
* Copyright (c) 2006 - 2016 Super Entity Game Server Team (see Authors.txt)
* This software is licensed! (See License.txt for details)
*
*/
//#define ACE_NTRACE 0
#include "Servers/HandlerLocator.h"
#include "Servers/MessageBus.h"
#includ... |
<commit_before>/**
* @file logistic_regression_impl.hpp
* @author Sumedh Ghaisas
*
* Implementation of the LogisticRegression class. This implementation supports
* L2-regularization.
*/
#ifndef __MLPACK_METHODS_LOGISTIC_REGRESSION_LOGISTIC_REGRESSION_IMPL_HPP
#define __MLPACK_METHODS_LOGISTIC_REGRESSION_LOGISTIC... |
<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.
#include "webkit/glue/plugins/plugin_list.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/string_util... |
<commit_before>//
// eventmodel.cpp
// Luves
//
// Created by hashdata on 16/9/30.
// Copyright © 2016年 hashdata. All rights reserved.
//
#include "eventmodel.h"
namespace luves {
//
//IO复用模型
//
std::map<int, Channel *> EventModel::channel_fd_map_;
void EventModel::AddChannel(Channel *channel)
{
if (c... |
<commit_before>#include "yaml-cpp/yaml.h"
#include "yaml-cpp/eventhandler.h"
#include <fstream>
#include <iostream>
#include <vector>
struct Params {
bool hasFile;
std::string fileName;
};
Params ParseArgs(int argc, char **argv) {
Params p;
std::vector<std::string> args(argv + 1, argv + argc);
return p;
}
cl... |
<commit_before>/*
* Copyright (c) 2017, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* 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.or... |
<commit_before>/*
* Copyright (c) 2019, Arm Limited and affiliates
* SPDX-License-Identifier: Apache-2.0
*
* 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/... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>#include "amftest.hpp"
#include "amf.hpp"
#include "types/amfarray.hpp"
#include "types/amfdouble.hpp"
#include "types/amfinteger.hpp"
#include "types/amfobject.hpp"
TEST(ArraySerializationTest, EmptyArray) {
AmfArray array;
isEqual(v8 { 0x09, 0x01, 0x01 }, array);
}
TEST(ArraySerializationTest, St... |
<commit_before>// codegen
#include <nan.h>
using node::ObjectWrap;
using namespace v8;
#include <iostream>
#include <string>
#include <map>
#include <vector>
#include "codegen.h"
class TypeWrapper : public ObjectWrap
{
TypeWrapper(TypeHandle *t)
: Type(t) {}
static NAN_METHOD(New)
{
NanSco... |
<commit_before>#include <stdexcept>
#include <map>
#include <xorg/gtest/xorg-gtest.h>
#include <linux/input.h>
#include <X11/Xlib.h>
#define XK_LATIN1
#include <X11/keysymdef.h>
#include <X11/XF86keysym.h>
#include <X11/Xutil.h>
#include <X11/extensions/XInput.h>
#include <X11/extensions/XInput2.h>
#include "input-dr... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 *
* (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS *
* ... |
<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 <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <liblogger.h>
using namespace liblogger;
#include "examples.h"
int main(int argc, char ** argv)
{
pid_t pid = fork();
if (pid == 0) {
int ret = system("../logmq/logmq");
exit(WEXITSTATUS(ret));
}
if (pid < 0)
abort()... |
<commit_before>/* Copyright (C) 2015 Cotton Seed
This file is part of arachne-pnr. Arachne-pnr 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.
This program is distributed in the h... |
<commit_before>/* Copyright (C) 2003 MySQL AB
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 program is d... |
<commit_before>#include <babylon/materials/textures/mirror_texture.h>
#include <nlohmann/json.hpp>
#include <babylon/babylon_stl_util.h>
#include <babylon/cameras/camera.h>
#include <babylon/core/structs.h>
#include <babylon/engines/engine.h>
#include <babylon/engines/scene.h>
#include <babylon/materials/ima... |
<commit_before>/*
* Copyright 2008, 2009 Google Inc.
* Copyright 2007 Nintendo 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... |
<commit_before>#include <memory>
#include <cassert>
#include "eval.hh"
#include "util.hh"
#include "keyword.hh"
#include "symbol.hh"
#include "cons.hh"
#include "function.hh"
#include "printer.hh"
using namespace std;
enum class VM_op : int{
nop = 0,
if_,
set_
};
namespace {
void funcall(const Function* ... |
<commit_before>#include "stdafx.h"
#include "ed.h"
#include "glob.h"
int
file_masks::match (const char *name) const
{
if (empty_p ())
return 0;
int not = 0, match = 0;
for (char **p = fm_masks; *p; p++)
if (**p == GLOB_NOT)
{
match |= pathname_match_p (*p + 1, name);
not = 1;
... |
<commit_before>#include <iostream>
#include <stdio.h>
#include <ctype.h>
#include <cstring>
#include <vector>
#include <unistd.h>
#include <sys/types.h>
#include <stdlib.h>
#include <sys/wait.h>
using namespace std;
//parses the entered command putting each string seperated
//by spaces into a vector passed in by refer... |
<commit_before>// Copyright (c) 2020-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparams.h>
#include <compat.h>
#include <compat/endian.h>
#include <crypto/sha256.h>
#include <f... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "irc.h"
#include "net.h"
#include "strlcpy.h"
#include... |
<commit_before>#include <glib.h>
#include <uv.h>
#include <nan.h>
#include <v8.h>
#include "debug.h"
#include "gi.h"
#include "loop.h"
#include "macros.h"
#include "util.h"
/* Integration for the GLib main loop and uv's main loop */
/* The way that this works is that we take uv's loop and nest it inside GLib's
* ma... |
<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>#if _WIN32
#include <Windows.h>
#endif // _WIN32
#include <GL/gl.h>
#include <GL/glut.h>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <omp.h>
#include <map>
#include <vector>
#include <chrono>
#include <thread>
#include <mutex>
#include <iostream>
#include "spvis.hpp"
static std::... |
<commit_before>#include <iostream>
#include "Pythia8/Pythia.h"
using Pythia8::Pythia;
using Pythia8::Hist;
int main() {
Pythia pythia;
pythia.readString("Beams:eCM = 13000.");
pythia.readString("SoftQCD:all = on");
pythia.readString("PhaseSpace:pTHatMin = 200.");
pythia.init();
Hist mult("charged multipl... |
<commit_before>#include <iostream>
#include "./problems/problem1.h"
#include "time.h"
using namespace std;
int main ()
{
clock_t start, end;
printf("\nPROJECT EULER SOLUTIONS\n");
printf("===========================\n\n");
start = clock();
problem1BruteForce();
end = clock();
printf(" [duration = %i ticks]\n... |
<commit_before>/**
* Path manipulation utilities
*/
#include "path.h"
#include <string>
#include <sys/stat.h>
#include <sys/types.h>
#include <limits.h>
#include <stdlib.h>
#ifdef windows
# include <io.h>
# define realpath(in, out) _fullpath(out, in, PATH_MAX)
#endif
/**
* Normalize path by removing "./", "../" a... |
<commit_before>///
/// @file phi.cpp
///
/// Copyright (C) 2013 Kim Walisch, <[email protected]>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include "pi_bsearch.h"
#include "imath.h"
#include <primesieve/soe/PrimeSieve.h>
#include <stdint.h>
#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.