text stringlengths 54 60.6k |
|---|
<commit_before>97214a23-2747-11e6-88ce-e0f84713e7b8<commit_msg>Hey we can now do a thing<commit_after>972ffdc5-2747-11e6-ab08-e0f84713e7b8<|endoftext|> |
<commit_before>/*
* main.cpp
* openc2e
*
* Created by Alyssa Milburn on Wed 02 Jun 2004.
* Copyright (c) 2004-2008 Alyssa Milburn. All rights reserved.
* Copyright (c) 2005-2008 Bryan Donlan. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the ter... |
<commit_before>fbe33f70-2d3e-11e5-9ab4-c82a142b6f9b<commit_msg>fc578007-2d3e-11e5-adb5-c82a142b6f9b<commit_after>fc578007-2d3e-11e5-adb5-c82a142b6f9b<|endoftext|> |
<commit_before>f2087917-327f-11e5-84e4-9cf387a8033e<commit_msg>f20e1d9e-327f-11e5-bd75-9cf387a8033e<commit_after>f20e1d9e-327f-11e5-bd75-9cf387a8033e<|endoftext|> |
<commit_before>d379ad9c-313a-11e5-a99c-3c15c2e10482<commit_msg>d3804e05-313a-11e5-8186-3c15c2e10482<commit_after>d3804e05-313a-11e5-8186-3c15c2e10482<|endoftext|> |
<commit_before>// Copyright 2017 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 o... |
<commit_before>// Test driver for the StreamReader classes.
// Author: Eric McDonald
#include <cerrno>
#include <climits>
extern "C"
{
#include <stdint.h>
}
//#define SSIZE_MAX (SIZE_MAX / 2)
#include <cstring>
#include <cstdio>
#include <fcntl.h>
#include <sys/stat.h>
#include <cstdlib>
#include <error.h>
#include <... |
<commit_before>#include <cstdio>
#include <random>
#include <cmath>
#include <string>
#include <cstring>
#include <stdexcept>
#include <cassert>
#include <iostream>
#define TRACE(a) std::cout<<a<<std::endl;
//------------------------------------------------------------------------------
namespace base91
{
static const... |
<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 "sandbox/src/interceptors_64.h"
#include "sandbox/src/interceptors.h"
#include "sandbox/src/filesystem_interception.h"
#inclu... |
<commit_before>#include "catch.hpp"
#include "ab.hpp"
TEST_CASE("alpha beta size 1", "[alphabeta]") {
AlphaBeta<1> ab;
State<1> s;
REQUIRE(ab.alphabeta(s, BLACK).get_minimax() == 0);
}
TEST_CASE("alpha beta size 2", "[alphabeta]") {
AlphaBeta<2> ab;
State<2> s;
REQUIRE(ab.alphabeta(s, BLACK).ge... |
<commit_before><commit_msg>Fix overflow in smoketest, promotion from sal_Int32 to sal_Int64 doesn't happen before assign<commit_after><|endoftext|> |
<commit_before><commit_msg>we do have ValidCol(), so use it<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: undoutil.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2008-02-19 15:34:23 $
*
* The Contents of this file are made ... |
<commit_before><commit_msg>dr78: #i95280# read Excel view options in FillRenderMarkData if not done before<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: tabvwshd.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:45:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>/* Copyright 2016 Carnegie Mellon University
*
* 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>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/webui/web_ui.h"
#include "base/i18n/rtl.h"
#include "base/json/json_writer.h"
#include "base/stl_util-inl.h"... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkProjectedTexture.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2000 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
Redi... |
<commit_before>#pragma once
#include "bits.hpp"
#include <algorithm>
namespace spn {
//! 任意の型の縦横サイズ
template <class T>
struct _Size {
T width, height;
_Size() = default;
_Size(const T& s): width(s), height(s) {}
_Size(const T& w, const T& h): width(w), height(h) {}
template <class T2>
_Size(const _Size... |
<commit_before>/*******************************************************************************
* sort.cpp
*
* Test runner
*
*******************************************************************************
* Copyright (C) 2016 Lorenz Hübschle-Schneider <lorenz@4z2.de>
*
* The MIT License (MIT)
*
* Permission i... |
<commit_before>// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layoutUI/CGraphCurve.cpp,v $
// $Revision: 1.8 $
// $Name: $
// $Author: urost $
// $Date: 2008/01/15 09:52:39 $
// End CVS Header
// Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
// Properties, ... |
<commit_before>/* Begin CVS Header
$Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/plot/Attic/CPlotSpecVector.cpp,v $
$Revision: 1.10 $
$Name: $
$Author: ssahle $
$Date: 2004/05/27 11:59:10 $
End CVS Header */
#include "copasi.h"
#include "CPlotSpecVector.h"
#include "report/CKeyFactory.h... |
<commit_before>/*
* Copyright (c) 2011-2012 by Michael Berlin, Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*/
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <boost/scoped_ptr.hpp>
#include <CbFS.h>
#include <vector>
#include "cbfs/cbfs_adapter.h"
#include "c... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#include <pthread.h>
#include <errno.h>
#include <json/writer.h>
#include <GridsDefine.h>
#include <grids/GridsProtocol.h>
namespace Grids {
void... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Version: MPL 1.1 / GPLv3+ / LGPLv3+
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License or as spec... |
<commit_before>#include <cmath>
#include "auto_timer.h"
int main()
{
AutoTimer timer;
for (double i = 0; i < 100000; ++i)
{
double root = sqrt(i);
root *= root;
}
}
<commit_msg>Makes the test take a little longer.<commit_after>#include <cmath>
#include "auto_timer.h"
int main()
{
... |
<commit_before>#include "xml11.hpp"
#include <cassert>
#include <iostream>
#include <set>
#include <cstring>
#include <ctime>
using std::cout;
using std::endl;
void test_fn1()
{
using namespace xml11;
{
const auto text =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<story><... |
<commit_before>#include "config.h"
#include "file_io_type_pel.hpp"
#include "libpldm/base.h"
#include "oem/ibm/libpldm/file_io.h"
#include "common/utils.hpp"
#include "xyz/openbmc_project/Common/error.hpp"
#include <stdint.h>
#include <systemd/sd-bus.h>
#include <unistd.h>
#include <sdbusplus/server.hpp>
#include ... |
<commit_before>#include "PopulatingNextRightPointersInEachNodeII.hpp"
#include <queue>
using namespace std;
void PopulatingNextRightPointersInEachNodeII::connect(TreeLinkNode* root)
{
if (root == nullptr)
return;
queue<TreeLinkNode*> q;
q.push(root);
while (!q.empty()) {
int k = q.size(); // number ... |
<commit_before>//
// Copyright (C) 2006-2013 SIPez LLC. All rights reserved.
//
// Copyright (C) 2004-2007 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
////////////... |
<commit_before>/*
poedit, a wxWindows i18n catalogs editor
---------------
findframe.cpp
Find frame
(c) Vaclav Slavik, 2001
*/
#ifdef __GNUG__
#pragma implementation
#endif
#include <wx/wxprec.h>
#include <wx/xrc/xmlres.h>
#include <wx/config.h>
#include <wx/button.h>
#include... |
<commit_before><commit_msg>deleted "ef bb bf" characters<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: displayinfo.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2005-09-09 00:02:17 $
*
* The Contents of this file are ma... |
<commit_before>#include <cstddef>
#include <vector>
#include "aim.hpp"
// Algorithm to be tested
std::size_t largest_area(std::vector<std::vector<bool>> const& matrix)
{
std::size_t max_area = 0;
std::vector<std::size_t> last_start(matrix[0].size(), 0);
for (std::size_t idx {} ; idx != matrix.size() ; ++idx)
... |
<commit_before>/**
* @file src/mod_cardreader.cpp
* @brief
*
* @addtogroup
* @{
*/
#include "mod_cardreader.h"
#if MOD_CARDREADER
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "ch_tools.h"
#include "chprintf.h"
#include "qhal.h"
#include "module_init_cpp.h"
#in... |
<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 "ppapi/tests/test_case.h"
#include <string.h>
#include <sstream>
#include "ppapi/cpp/core.h"
#include "ppapi/cpp/module.h"
... |
<commit_before>/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
<commit_before>#include <QtTest>
#include <QtWidgets>
#include <DO/Graphics/DerivedQObjects/PaintingWindow.hpp>
using namespace DO;
class TestPaintingWindowConstructors: public QObject
{
Q_OBJECT
private slots:
void test_construction_of_PaintingWindow_with_small_size()
{
int width = 50;
int height = 50... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: i_ce2s.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2008-01-04 12:56:12 $
*
* The Contents of this file are made av... |
<commit_before>/** \copyright
* Copyright (c) 2013, Balazs Racz
* 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... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dlg_CreationWizard.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2007-07-25 08:32:28 $
*
* The Contents of this file... |
<commit_before>// -*- C++ -*-
// The MIT License (MIT)
//
// Copyright (c) 2021 Alexander Samoilov
//
// 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 withou... |
<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/ui/gtk/infobars/extension_infobar_gtk.h"
#include "base/debug/trace_event.h"
#include "chrome/browser/extensi... |
<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/ui/sync/one_click_signin_sync_starter.h"
#include "base/prefs/pref_service.h"
#include "base/utf_string_conve... |
<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/views/content_blocked_bubble_contents.h"
#if defined(OS_LINUX)
#include <gdk/gdk.h>
#endif
#include "app/l10... |
<commit_before>/*
* TrellisPath.cpp
*
* Created on: 16 Mar 2016
* Author: hieu
*/
#include <cassert>
#include <sstream>
#include "TrellisPath.h"
#include "TrellisPaths.h"
#include "Hypothesis.h"
#include "../System.h"
using namespace std;
namespace Moses2
{
void TrellisNode::Debug(std::ostream &out, const... |
<commit_before>#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <getopt.h>
#include <atomic>
#include <signal.h>
#include <unistd.h>
#include <zcm/zcm-cpp.hpp>
#include "zcm/json/json.h"
#include "util/TimeUtil.hpp"
using namespace std;
static atomic_int done {0};
static void s... |
<commit_before>#include "evpp/inner_pre.h"
#include "evpp/libevent_headers.h"
#include "evpp/sockets.h"
namespace evpp {
std::string strerror(int e) {
#ifdef H_OS_WINDOWS
LPVOID buf = NULL;
::FormatMessageA(
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
... |
<commit_before>/*
* This file is part of the statismo library.
*
* Author: Marcel Luethi (marcel.luethi@unibas.ch)
*
* Copyright (c) 2011 University of Basel
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
<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-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge,... |
<commit_before>/* -------------------------------------------------------------------------- *
* OpenSim: ConditionalPathPoint.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>#include "UI/reversesearchwindow.h"
#include "Models/reversesearchmodel.h"
#include "Misc/shared.h"
#include "Misc/track.h"
#include "Misc/application.h"
#include <QHeaderView>
#include <QDebug>
#include <QScrollBar>
#include <QPalette>
#include <QTextCursor>
#include <QTextCharFormat>
#include <QMessage... |
<commit_before>//------------------------------------------------------
// AliAnalysisTaskFemto - A task for the analysis framework
// from the FEMTOSCOPY analysis of PWG2. Creates the necessary
// connection between the ESD or AOD input and the femtoscopic
// code.
// Author: Adam Kisiel, OSU; Adam.Kisiel@cern.ch... |
<commit_before>Bool_t ConfigKstarLeading(
AliRsnMiniAnalysisTask *task,
Bool_t isMC = kFALSE,
Bool_t isPP = kFALSE,
Double_t nSigmaPart1TPC = -1,
Double_t nSigmaPart2TPC = -1,
Double_t nSigmaPart1TOF = -1,
Double_t nSigmaPart2TOF = -1
)
{
// -- Values --------------------------... |
<commit_before>#include "S_Credits.h"
#include "j1Window.h"
#include "j1Render.h"
S_Credits::S_Credits()
{
scene_str = "Credits";
}
S_Credits::~S_Credits()
{
}
bool S_Credits::Awake(pugi::xml_node& conf)
{
CreditsLogo_Rect = { 0,0,550,360 };
CreditsLogo_Y_Pos = App->win->GetWindowHHalf() - (int)(CreditsLogo_Rect.... |
<commit_before>/*
* Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>#ifndef STAN_MATH_PRIM_META_HPP
#define STAN_MATH_PRIM_META_HPP
#include <stan/math/prim/arr/meta/get.hpp>
#include <stan/math/prim/arr/meta/index_type.hpp>
#include <stan/math/prim/arr/meta/is_vector.hpp>
#include <stan/math/prim/arr/meta/length.hpp>
#include <stan/math/prim/mat/meta/as_array_or_scala... |
<commit_before>/*
* Copyright 2016-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>#include <QtCore/QFile>
#include <QtCore/QStringList>
#include <QtCore/QTextStream>
#include <QtGui/QVector2D>
#include "math.hpp"
qreal Polynom::operator()(qreal x, qreal y) const {
qreal result = 0;
for (ConstIterator i = begin(); i != end(); ++i) {
result += qPow(x, i->xPow) * qPow(y, i->yPow) * ... |
<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 "../main.h"
#include "../script.h"
#include "../wallet.h"
using namespace std;
// T... |
<commit_before>#include "DebugHandler.h"
//DebugHandler* DebugHandler::m_instance = nullptr;
DebugHandler::DebugHandler()
{
QueryPerformanceFrequency(&this->m_frequency);
this->m_displayFPS = true;
this->ClearConsole();
for (int i = 0; i < this->m_FRAMES_FOR_AVG; i++)
{
this->m_frameTimes[i] = 40;
}
this->m_... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fuprlout.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: rt $ $Date: 2005-12-14 17:02:27 $
*
* The Contents of this file are made... |
<commit_before>#include "CoreAudio.h"
#include "Functiondiscoverykeys_devpkey.h"
#include "../../Logger.h"
// {EC9CB649-7E84-4B42-B367-7FC39BE17806}
static const GUID G3RVXCoreAudioEvent = { 0xec9cb649, 0x7e84, 0x4b42,
{ 0xb3, 0x67, 0x7f, 0xc3, 0x9b, 0xe1, 0x78, 0x6 } };
HRESULT CoreAudio::Init() {
HRESULT ... |
<commit_before>#include "CoreAudio.h"
#include "Functiondiscoverykeys_devpkey.h"
#include "../../Logger.h"
HRESULT CoreAudio::Init() {
HRESULT hr;
hr = _devEnumerator.CoCreateInstance(__uuidof(MMDeviceEnumerator));
if (SUCCEEDED(hr)) {
hr = _devEnumerator->RegisterEndpointNotificationCallback(this... |
<commit_before>/*
* Copyright 2015 Cloudius Systems
*/
#pragma once
#include "http/httpd.hh"
#include "json/json_elements.hh"
#include "database.hh"
#include "service/storage_proxy.hh"
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp>
... |
<commit_before>#include "basicplugin.h"
Basicplugin::Basicplugin()
{
delegate = Q_NULLPTR;
parameterForm = new ParameterDialog();
}
Basicplugin::~Basicplugin(void)
{
}
QString Basicplugin::getModuleInformation()
{
return QString("Test Detection Module");
}
QDialog& Basicplugin::getP... |
<commit_before>// #include <vector>
#include <iostream>
#include <cmath>
#include <CGAL/Nef_polyhedron_3.h>
#include <CGAL/Aff_transformation_3.h>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Mesh_triangulation_3.h>
#include <CGAL/Mesh_complex_3_in_triangulation_3.h>
#include <CGAL/Me... |
<commit_before>#include "UT4WebAdmin.h"
#include "UT4WebAdminGameInfo.h"
#include "UT4WebAdminServerInfo.h"
#include "UT4WebAdminUtils.h"
#define UT4WA_WWW_FOLDER "www"
#define IS_DEBUG 1
#define PAGE1 "<html><head><title>File not found</title></head><body>File not found</body></html>"
#define DENIED "<html><head><t... |
<commit_before>#include "UnrealEnginePythonPrivatePCH.h"
#include "PyCommandlet.h"
#include "Regex.h"
UPyCommandlet::UPyCommandlet(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
LogToConsole = 1;
}
int32 UPyCommandlet::Main(const FString& CommandLine)
{
TArray<FString> Tokens, Switches... |
<commit_before>/*************************************************************************
*
* $RCSfile: appedit.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: vg $ $Date: 2003-04-15 17:11:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabcontr.cxx,v $
*
* $Revision: 1.18 $
*
* last change: $Author: ihi $ $Date: 2006-11-14 14:47:21 $
*
* The Contents of this file are mad... |
<commit_before>#include <aleph/containers/PointCloud.hh>
#include <aleph/geometry/BetaSkeleton.hh>
#include <aleph/geometry/HeatKernel.hh>
#include <aleph/geometry/distances/Euclidean.hh>
#include <iostream>
#include <unordered_map>
#include <string>
#include <vector>
using DataType = double;
using Distance = a... |
<commit_before>#include <vector>
#include <string>
#include <cstdlib>
#include <botan/botan.h>
#include <botan/lookup.h>
#include <botan/filters.h>
#if defined(BOTAN_HAS_RANDPOOL)
#include <botan/randpool.h>
#endif
#if defined(BOTAN_HAS_X931_RNG)
#include <botan/x931_rng.h>
#endif
#include "common.h"
using name... |
<commit_before>#ifndef __Z2H_BINDER__
#define __Z2H_BINDER__ = 1
#include <stddef.h>
#include <functional>
#include "token.hpp"
#include "symbol.hpp"
#include "parser.hpp"
using namespace std::placeholders;
namespace z2h {
template <typename TAst>
class Token;
template <typename TAst>
class Symb... |
<commit_before><commit_msg>coverity#1103652 Unchecked return value<commit_after><|endoftext|> |
<commit_before><commit_msg>Try to get rid of the SVG export code when DISABLE_EXPORT<commit_after><|endoftext|> |
<commit_before>/*
* PKCS#11 Mechanism
* (C) 2016 Daniel Neus, Sirrix AG
* (C) 2016 Philipp Weber, Sirrix AG
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/internal/p11_mechanism.h>
#include <botan/rfc6979.h>
#include <botan/scan_name.h>
#include <botan/emsa.h>
#include <tu... |
<commit_before>// Copyright (2015) Gustav
#include "finans/core/commandline.h"
#include "gtest/gtest.h"
#include "gmock/gmock.h"
using namespace testing;
class TestSubParser : public argparse::SubParser {
public:
TestSubParser() {
}
void AddParser(argparse::Parser& parser) override {
parser("-name", name... |
<commit_before>#include "scheduler.h"
#include "../task/taskexecutor.h"
#include "../log/logger.h"
#include <QDir>
#include <QTimer>
#include <QCoreApplication>
#include <QDebug>
#include <QPointer>
LOGGER(Scheduler)
class Scheduler::Private : public QObject
{
Q_OBJECT
public:
Private(Scheduler* q)
: q(... |
<commit_before>#include "addsemestredialog.h"
#include "ui_addsemestredialog.h"
#include <QMessageBox>
#include "src/uvmanager.hpp"
#include "src/exceptions.hpp"
#define UVM UvManager::getInstance()
#define NUM NoteUVManager::getInstance()
AddSemestreDialog::AddSemestreDialog(QWidget *parent) :
QDialog(parent),
... |
<commit_before>#include "qt/place_page_dialog.hpp"
#include "map/place_page_info.hpp"
// For search::AddressInfo.
#include "search/result.hpp"
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <... |
<commit_before>/*--------------------------------------------------------------------------
Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistribu... |
<commit_before>// Copyright (c) 2012, 2013 Pierre MOULON.
// 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/.
#ifndef OPENMVG_MATCHING_ARRAYMATCHER_KDTREE_FLANN_H_
#def... |
<commit_before>#define _USE_MATH_DEFINES
#include <math.h>
#include <RigAnimatedObject.h>
#include <algorithm>
#include "glm/gtc/matrix_transform.hpp"
#include <glbinding/gl/enum.h>
#include <globjects/globjects.h>
#include <globjects/Program.h>
#include <gloperate/primitives/AbstractDrawable.h>
#include <glopera... |
<commit_before>/*************************************************************************
*
* $RCSfile: dlgeddef.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: tbe $ $Date: 2001-09-17 11:23:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#pragma once
#include "base/recurring_thread.hpp"
#include "gtest/gtest.h"
namespace principia {
using namespace std::chrono_literals;
namespace base {
class RecurringThreadTest : public ::testing::Test {
protected:
using ToyRecurringThread = RecurringThread<int, double>;
static double Poolin... |
<commit_before>#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/kdtree/kdtree_flann.h>
#include <pcl/surface/mls.h>
int
main (int argc, char** argv)
{
// Load input file into a PointCloud<T> with an appropriate type
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ> ... |
<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>/**
* @file
*
* @brief Source for directoryvalue plugin
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include "directoryvalue.hpp"
#include "log.hpp"
#include <kdbhelper.h>
using ckdb::keyNew;
using std::exception;
using std::range_error;
using elektra::Direct... |
<commit_before>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2011 Emmanuel Benazera, ebenazer@seeks-project.info
* Copyright (C) 2011 Stéphane Bonhomme <stephane.bonhomme@seeks.pro>
*
* This program is free software: you can redistribute it and/or modify
* it under the ... |
<commit_before><commit_msg>Add driver inputs in Polaris SPH vehicle output files<commit_after><|endoftext|> |
<commit_before>#include "rift/bucket.hpp"
#include <elliptics/session.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/program_options.hpp>
using namespace ioremap;
int main(int argc, char *argv[])
{
struct rift::bucket_meta_raw meta;
std::vector<int> groups;
std::string remote;
std::string metadata_g... |
<commit_before>#include "docopt/docopt.h"
#include <iostream>
#include <cstdlib>
static const char USAGE[] =
R"(Causal Dynamical Triangulations in C++ using CGAL.
Copyright (c) 2014 Adam Getchell
A program that generates d-dimensional triangulated spacetimes
with a defined causal structure and evolves them accordin... |
<commit_before>/* **** **** **** **** **** **** **** **** *
*
* _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
* _/ _/ _/ _/ _/ _/
* _/ _/ _/ _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
*
* bit by bit
* bbb/function/lambda_symbol.hpp
*
* author: ISHII 2bit
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: valuemembernode.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-08 04:35:43 $
*
* The Contents of this file ar... |
<commit_before><commit_msg>Fix GCC build bustage.<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: valuemembernode.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: ihi $ $Date: 2007-11-23 14:48:26 $
*
* The Contents of this file a... |
<commit_before>/***********************************************************************
row.cpp - Implements the Row class.
Copyright (c) 1998 by Kevin Atkinson, (c) 1999, 2000 and 2001 by
MySQL AB, and (c) 2004, 2005 by Educational Technology Resources, Inc.
Others may also hold copyrights on code in this file. ... |
<commit_before>#include "util.h"
float *load_weights(string filename, int N) {
float *ret = (float *) malloc(N * sizeof(float));
ifstream file(filename);
float x;
for (int i = 0; i < N; i++) {
file >> x;
cout << x << endl;
ret[i] = x;
}
}
float *load_weights_cuda(string filename, int N) {
flo... |
<commit_before>/*
// Copyright (c) 2015 Pierre Guillot.
// For information on usage and redistribution, and for a DISCLAIMER OF ALL
// WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*/
#ifndef XPD_ATOM_HPP
#define XPD_ATOM_HPP
#include "xpd_symbol.hpp"
namespace xpd
{
typedef float f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.