text stringlengths 54 60.6k |
|---|
<commit_before>#include <errno.h>
#include <stdlib.h>
#include <getopt.h>
#include <string>
#include <boost/asio.hpp>
#include <boost/lexical_cast.hpp>
#include "logger.h"
#include "client.h"
#include <libwatcher/labelMessage.h>
using namespace std;
using namespace watcher;
using namespace watcher::event;
using names... |
<commit_before>/*
Copyright (C) 2011 Martin Klapetek <mklapetek@kde.org>
Copyright (C) 2013 David Edmundson <davidedmundsonk@kde.org>
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 ... |
<commit_before>// This file is part of SWGANH which is released under the MIT license.
// See file LICENSE or go to http://swganh.com/LICENSE
#include "command_queue.h"
#include "anh/logger.h"
#include "anh/service/service_manager.h"
#include "swganh/app/swganh_kernel.h"
#include "swganh/command/base_swg_command.h... |
<commit_before>// This file is part of the "x0" project
// (c) 2009-2015 Christian Parpart <https://github.com/christianparpart>
//
// x0 is free software: you can redistribute it and/or modify it under
// the terms of the GNU Affero General Public License v3.0.
// You should have received a copy of the GNU Affero Ge... |
<commit_before>#include "iobservable.h"
namespace gg
{
IObservable::~IObservable()
{
}
void IObservable::attach(IObserver & observer)
{
std::lock_guard<std::mutex> lock_guard(_observers_lock);
if (not attached(observer))
{
_observers.push_back(observer);
if (not attached(observer))
... |
<commit_before>/*************************************************************************
*
* $RCSfile: VTypeDef.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: oj $ $Date: 2000-10-30 07:21:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "... |
<commit_before>#include "qgeoroutingmanagerenginegooglemaps.h"
#include "qgeoroutereplygooglemaps.h"
#include <QtCore/QUrlQuery>
#include <QtCore/QDebug>
QGeoRoutingManagerEngineGooglemaps::QGeoRoutingManagerEngineGooglemaps(const QVariantMap ¶meters,
QGeo... |
<commit_before># ifndef CPPAD_CORE_ABS_NORMAL_HPP
# define CPPAD_CORE_ABS_NORMAL_HPP
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 Bradley M. Bell
CppAD is distributed under multiple licenses. This distribution is under
the t... |
<commit_before>// Copyright (c) 2015, the Dart GL extension authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD-style license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
// This file contains... |
<commit_before>#include "../base/SRC_FIRST.hpp"
#include "render_policy_mt.hpp"
#include "events.hpp"
#include "drawer_yg.hpp"
#include "window_handle.hpp"
#include "../yg/render_state.hpp"
#include "../yg/internal/opengl.hpp"
#include "../geometry/transformations.hpp"
#include "../base/mutex.hpp"
#include "../plat... |
<commit_before><commit_msg>Revert "CID#705982 ensure umask for mkstemp"<commit_after><|endoftext|> |
<commit_before>#include "OI.h"
#include "Commands/ControlCatapult.h"
#include "Subsystems/Catapult.h"
/// Default constructor of the class.
ControlCatapult::ControlCatapult()
{
manualMode = kSafe;
Requires(Catapult::GetInstance());
}
/// Called just before this Command runs the first time.
void ControlCatapult::In... |
<commit_before>/***********************************************************************
created: Tue Feb 17 2009
author: Paul D Turner
*************************************************************************/
/***************************************************************************
* Copyright (C)... |
<commit_before>/*************************************************************************
*
* $RCSfile: dsEntriesNoExp.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: obo $ $Date: 2004-11-16 14:49:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the followi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: indexfieldscontrol.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2007-07-06 08:30:39 $
*
* The Contents of this fil... |
<commit_before>/*
* Copyright (c) 2017 Trail of Bits, 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 a... |
<commit_before>/*************************************************************************\
**
** tOutput.cpp: Functions for output objects
**
**
**
** $Id: tOutput.cpp,v 1.16 1999-03-15 23:34:43 nmgaspar Exp $
\*************************************************************************/
#include "tOutput.h"
/******... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dbtoolsclient.cxx,v $
*
* $Revision: 1.15 $
*
* last change: $Author: rt $ $Date: 2005-09-08 22:49:46 $
*
* The Contents of this file are... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2008-2012, Shane Liesegang
// 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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: accpage.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-09 02:53:17 $
*
* The Contents of this file are made a... |
<commit_before>/* ****************************************************************************
*
* FILE main_UnitTest.cpp
*
* AUTHOR Javier Lois
*
* DATE December 2011
*
* DESCRIPTION
*
* Main file for the automatic unit testing application
*
*/
#include "gtest/gtest.h"
/* **********... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ascatr.cxx,v $
* $Revision: 1.10... |
<commit_before>/*************************************************************************
*
* $RCSfile: ascatr.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2004-01-13 16:36:19 $
*
* 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: wrtasc.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-09 05:34:44 $
*
* The Contents of this file are made av... |
<commit_before>/*
* The Biomechanical ToolKit
* Copyright (c) 2009-2012, Arnaud Barré
* 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 re... |
<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/gpu/gpu_process_host_ui_shim.h"
#include <algorithm>
#include "base/debug/trace_event.h"
#include "base/id_... |
<commit_before>#include "client_wrapper.h"
#include "../io_service_pool.h"
#include "../service_locator/service_locator.h"
#include "../configuration/configuration_wrapper.h"
#include "../stats/stats_manager.h"
#include "../utils/log_wrapper.h"
#include "../constants.h"
#include "../http/http_commons.h"
#include "../ne... |
<commit_before>// Copyright 2014 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/loader/temporary_file_stream.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/files/file_util... |
<commit_before>/**********************************************************************
* $Id$
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesse... |
<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 "testing/gtest/include/gtest/gtest.h"
#include "base/memory/scoped_ptr.h"
#include "base/time.h"
#include "content/common/hi_... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlbrshi.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 06:19:40 $
*
* The Contents of this file are made ... |
<commit_before>////////////////
//Task 1
//Days in a month
////////////////
#include <iostream>
using namespace std;
int main()
{
int year, month, days;
cout << "Въведете месец (1-12)\n";
cin >> month;
cout << "Въведете година\n";
cin >> year;
bool isLeap = (year % 4 == 0 && year % 100 != 0
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: TableFieldDescWin.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: kz $ $Date: 2007-05-10 10:42:14 $
*
* The Contents of this file ... |
<commit_before>/**
* @file sgd_impl.hpp
* @author Ryan Curtin
*
* Implementation of stochastic gradient descent.
*/
#ifndef __MLPACK_CORE_OPTIMIZERS_SGD_SGD_IMPL_HPP
#define __MLPACK_CORE_OPTIMIZERS_SGD_SGD_IMPL_HPP
// In case it hasn't been included yet.
#include "sgd.hpp"
namespace mlpack {
namespace optimizat... |
<commit_before>/*
Copyright (c) 2011-2014, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
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 c... |
<commit_before>/*
* Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Bumjin Im <bj.im@samsung.com>
*
* 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 Lice... |
<commit_before>//
// android_sound.cc
// SharkSound
//
// Created by Jon Sharkey on 2013-06-25.
// Copyright 2013 Sharkable. All rights reserved.
//
#include "sharksound/android/android_sound.h"
#include <android/log.h>
#include "sharksound/android/android_sound_instance.h"
using namespace SharkSound;
AndroidS... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2014 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 Lic... |
<commit_before>#include <node.h>
#include <node_buffer.h>
#include <v8.h>
//Includes from phoenixLib iOS HAL
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
#include <AudioToolbox/AudioToolbox.h>
#include <CoreFoundation/CoreFoundation.h>
#include "CAHostTimeBase.h"
#inc... |
<commit_before>#include <stdio.h>
#include <iostream>
#include <sstream>
#include <fstream>
extern "C" {
#include "type.h"
#include "node.h"
#include "tree.h"
#include "wake.tab.h"
extern int yyparse();
extern Node* parsetree;
extern FILE *yyin;
}
#include "Parser.h"
#include "Linker.h"
#include "ParseTreeTrav... |
<commit_before>#include "sqliteindexwriter.h"
#include "sqliteindexmanager.h"
#include <sqlite3.h>
#include <sstream>
using namespace std;
using namespace jstreams;
SqliteIndexWriter::SqliteIndexWriter(SqliteIndexManager *m)
: manager(m) {
int r = sqlite3_open(manager->getDBFile(), &db);
// any value ... |
<commit_before>#include "sqliteindexwriter.h"
#include "sqliteindexmanager.h"
#include <sqlite3.h>
#include <sstream>
using namespace std;
using namespace jstreams;
SqliteIndexWriter::SqliteIndexWriter(SqliteIndexManager *m)
: manager(m) {
int r = sqlite3_open(manager->getDBFile(), &db);
// any value ... |
<commit_before>/**
* This file is part of Slideshow.
* Copyright (C) 2008 David Sveningsson <ext@sidvind.com>
*
* Slideshow 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
... |
<commit_before>//
// Created by lz on 1/21/17.
//
#ifndef C10K_SERVER_EVENT_LOOP_HPP
#define C10K_SERVER_EVENT_LOOP_HPP
#endif //C10K_SERVER_EVENT_LOOP_HPP
#include <sys/epoll.h>
#include <sys/types.h>
#include <unistd.h>
#include <memory>
#include <cstdlib>
#include <unordered_map>
#include <functional>
#include <s... |
<commit_before>/*
* Copyright 2007-2022 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparamsbase.h"
#include "util.h"
#include <assert.h>
#inclu... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Data Differential YATL (i.e. libtest) library
*
* Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 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) 2015-2018 Dubalu LLC. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the right... |
<commit_before>/*
Copyright (c) 2003, Magnus Jonsson & 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, t... |
<commit_before>#include "geocoder.h"
#include <sstream>
#include <deque>
#include <set>
#include <iostream>
#include <algorithm>
using namespace GeoNLP;
Geocoder::Geocoder()
{
}
std::string Geocoder::name_primary(const std::string &dname)
{
return dname + "/geonlp-primary.sqlite";
}
std::string Geocoder::name_no... |
<commit_before>#include <SFML/Graphics.hpp>
const float epsilon = 1e-3f;
inline bool check(const float &x) {
return -epsilon <= x && x <= 1.f + epsilon;
}
inline sf::Vector2f interp(const sf::Vector2f p1, const sf::Vector2f p2, float t) {
return (1.f - t) * p1 + t * p2;
}
struct segment {
sf::Vector2f p1, p2;
s... |
<commit_before>#include "httpdata.h"
#include "utils.h"
using namespace std;
using namespace native::http;
using namespace qttp;
HttpData::HttpData(request* req, response* resp):
m_Request(req),
m_Response(resp),
m_Query(),
m_Json(),
m_RequestParams(),
m_ControlFlag(None),
m_Uid(QUuid::cre... |
<commit_before>#include <algorithm>
#include "xUnit++/xUnit++.h"
#include "FileDataspace.hpp"
template<typename DS>
bool containsDS(DS ds, const K3::Value& val)
{
return ds.template fold<bool>(
[val](bool fnd, K3::Value cur) {
if (fnd || val == cur)
return true;
... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2017 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>#include "./Chromosome.hh"
Chromosome::Chromosome()
{
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_int_distribution<> dis(MIN_GENE_VALUE, MAX_GENE_VALUE);
for (int j = 0; j < GENE_PER_CHROMOSOME; j++)
_strand.push_back(dis(gen));
}
void Chromosome::setFitness(doub... |
<commit_before>//===- islClan.cpp ---------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------------------... |
<commit_before>#include <iostream>
#include <string>
#include "PasswordGeneration.hpp"
void run_part_one() {
std::string password = "cqjxjnds";
do {
password = increment_password(password);
} while (!is_valid_password(password));
std::cout << password << std::endl;
}
void run_part_two() {
}
... |
<commit_before>//
//###################################################################
//# EPOS 1.67 K. WERNER, T. PIEROG, S. PORTEBOEUF. #
//# Contact: werner@subatech.in2p3.fr #
//###################################################################
//
// TEpos.cxx
//
//... |
<commit_before>#include <algorithm>
#include <functional>
#include <cctype>
#include <locale>
//code used from http://stackoverflow.com/questions/216823/whats-the-best-way-to-trim-stdstring
// trim from start
static inline std::string <rim(std::string &s) {
s.erase(s.begin(), std::find_if(s.begin(), s.end(),... |
<commit_before>/*
* i, j is the position.
* i - 2, j + 1
* i - 2, j - 1
* i - 1, j + 2
* i - 1, j - 2
* i + 1, j + 2
* i + 1, j - 2
* i + 2, j + 1
* i + 2, j - 1
*/
#include<iostream>
#include<vector>
using namespace std;
class KnightsTour
{
public:
vector <pair <int, int> > validmoves(vector <string> ... |
<commit_before>/*
This program demonstrates several aspects of SCF usage:
- Dynamic class loading/unloading (Dog and Worm classes)
- Always-static class linkage (Frog class)
- Object-created-within-object (Worm::Split method)
- Run-time class registration with SCF kernel (no need for scf.cfg)
-... |
<commit_before>#include "xid.h"
#include "sm-log.h"
#include "epoch.h"
#include "serial.h"
#include "../txn.h"
#include <atomic>
#include <unistd.h>
namespace TXN {
#if 0
} // disable autoindent
#endif
/* There are a fixed number of transaction contexts in the system
(some thousands of them), and our primary task... |
<commit_before>
#include "atFile.h++"
#ifdef _MSC_VER
#include <Windows.h>
#include <Strsafe.h>
bool createDirectory(char * path)
{
// Attempt to create the directory (passing NULL as the second parameter
// means that we will use the security and permission profile of the
// calling ... |
<commit_before>#ifndef FP_DERIVATIVE_HPP
#define FP_DERIVATIVE_HPP
namespace fp {
}
#endif<commit_msg>Coding up the derivative and some type traits i need to write the function (through std::enable_if)<commit_after>#ifndef FP_DERIVATIVE_HPP
#define FP_DERIVATIVE_HPP
#include <type_traits>
#include <cmath>
#incl... |
<commit_before><commit_msg>added period.<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2016, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "memory_subsystem.h"
#include "agent/util/path_tree.h"
#include "protocol/galaxy.pb.h"
#include <boost/filesystem/path.hpp>
#include... |
<commit_before>// See Fossen 2011, chapter 12.3.2
#include "lagrange_allocator.h"
#include <iostream>
#include <math.h>
template<typename Derived>
inline bool isFucked(const Eigen::MatrixBase<Derived>& x)
{
return !((x.array() == x.array())).all() && !( (x - x).array() == (x - x).array()).all();
}
// Function to ... |
<commit_before>// See Fossen 2011, chapter 12.3.2
#include "lagrange_allocator.h"
template<typename Derived>
inline bool is_fucked(const Eigen::MatrixBase<Derived>& x)
{
return !((x.array() == x.array())).all() && !( (x - x).array() == (x - x).array()).all();
}
LagrangeAllocator::LagrangeAllocator()
{
n = 6... |
<commit_before>/*
* Copyright (c) 2003-2005 The Regents of The University of Michigan
* Copyright (c) 2007 MIPS Technologies, 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: redistri... |
<commit_before><commit_msg>Updated to C++17<commit_after><|endoftext|> |
<commit_before>#include "SolarSystem.hpp"
#include <algorithm>
using namespace std;
using namespace Geometry2d;
REGISTER_PLAY_CATEGORY(Gameplay::Plays::SolarSystem, "Demos")
Gameplay::Plays::SolarSystem::SolarSystem(GameplayModule* gameplay):
Play(gameplay)
{
}
float Gameplay::Plays::SolarSystem::score(Gameplay... |
<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 <atlbase.h>
#include <vector>
#include "base/file_path.h"
#include "base/scoped_comptr_win.h"
#include "chrome/browser/browse... |
<commit_before>#include "builders/terrain/ExteriorGenerator.hpp"
#include "entities/Way.hpp"
#include "entities/Area.hpp"
#include "entities/Relation.hpp"
#include "math/Vector2.hpp"
#include "utils/GeometryUtils.hpp"
#include <climits>
#include <map>
#include <unordered_set>
#include <unordered_map>
using namespace ... |
<commit_before>#include <iostream>
#include <string.h>
#ifdef NCS_CUDA
#include <cuda.h>
#include <cuda_runtime.h>
#include <ncs/sim/CUDA.h>
#endif // NCS_CUDA
namespace ncs {
namespace sim {
template<DeviceType::Type MType>
template<typename T>
bool Memory<MType>::malloc(T*& addr, size_t count) {
addr = Memory<... |
<commit_before><commit_msg>[cros] Update OOBE network error message.<commit_after><|endoftext|> |
<commit_before><commit_msg>Fix a memory leak in extension install.<commit_after><|endoftext|> |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>#ifndef FUNCTIONS_HPP
#define FUNCTIONS_HPP
#include <algorithm>
#include <iterator>
namespace cutehmi {
template <class INPUT_IT, class SIZE, class OUTPUT_IT>
OUTPUT_IT copy_n(INPUT_IT first, SIZE count, OUTPUT_IT result);
template <class INPUT_IT1, class INPUT_IT2>
bool equal(INPUT_IT1 first1, INPU... |
<commit_before>/*-------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License... |
<commit_before>/***************************************************************************
plugin_katexmlcheck.cpp - checks XML files using xmllint
-------------------
begin : 2002-07-06
copyright : (C) 2002 by Daniel Naber
email ... |
<commit_before>#ifndef STAN_MATH_PRIM_PROB_LOGLOGISTIC_CDF_HPP
#define STAN_MATH_PRIM_PROB_LOGLOGISTIC_CDF_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/as_column_vector_or_scalar.hpp>
#include <stan/math/prim/fun/as_array_or_scalar.hpp>
#include <stan/math/prim/... |
<commit_before>/*****************************************************************************
* x11_window.cpp
*****************************************************************************
* Copyright (C) 2003 the VideoLAN team
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
* Olivier Teulière <... |
<commit_before>// Copyright 2016 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>/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <fstream>
#include <sstream>
#include <boost/assign/list_of.hpp>
using namespace boost::assign;
#include "bgp/bgp_factory.h"
#include "bgp/bgp_membership.h"
#include "bgp/bgp_session_manager.h"
#include "bgp/bgp_xmpp_chan... |
<commit_before>#include <sys/inotify.h>
#include <cstdint>
#include <string>
#include "envoy/common/exception.h"
#include "envoy/event/dispatcher.h"
#include "envoy/event/file_event.h"
#include "common/common/assert.h"
#include "common/common/fmt.h"
#include "common/common/utility.h"
#include "common/filesystem/watc... |
<commit_before>// $Id$
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
CppAD is distributed under multiple licenses. This distribution is under
the terms of the
Common Public License Version... |
<commit_before>// #define DEBUG_MEM
#include "memory.h"
#ifdef DEBUG_MEM
#include <iostream>
#endif
// ---------------------------------------------------------------------------------------------- //
Memory::Memory(std::string& fname) : file(fname, std::ios::in | std::ios::binary) {
if (file) {
// get len... |
<commit_before>// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
namespace simple {
int Foo(void *const p __attribute__((pass_object_size(0))));
int OvlFoo(void *const p __attribute__((pass_object_size(0))));
int OvlFoo(void *const p, int);
struct Statics {
static int Foo(void *const p __attribute__((pass_obj... |
<commit_before>#include "pch.h"
#include "service_manager.h"
#include "service.h"
ServiceManager::ServiceManager()
: _state(Service::PRE_INIT)
, _elapsedTime(0.0f)
{
}
ServiceManager::~ServiceManager()
{
}
void ServiceManager::cleanup()
{
for (ServicesType::reverse_iterator it = _services.rbegin(), e... |
<commit_before>/* **********************************************************
* Copyright (c) 2015 Google, Inc. All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... |
<commit_before>#include <log4cxx/logger.h>
#include <log4cxx/basicconfigurator.h>
#include <log4cxx/xml/domconfigurator.h>
#include <log4cxx/level.h>
#include <log4cxx/helpers/objectptr.h>
#include <log4cxx/patternlayout.h>
#include <log4cxx/consoleappender.h>
#include "Logger.h"
#include <stdio.h>
//static log4cxx::L... |
<commit_before>/*************************************************************************
*
* $RCSfile: helpagentwindow.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: vg $ $Date: 2003-07-22 11:12:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<commit_before>#include "PyMeshPlugin.hh"
// todo: some switch for boost static build or not
#include <boost/python.hpp>
#include <OpenFlipper/BasePlugin/PluginFunctions.hh>
#include <OpenFlipper/common/GlobalOptions.hh>
// adds openmesh python module for inter language communication
#include <OpenMesh/src/Python/B... |
<commit_before>#include "../test.h"
#include <cuda_runtime_api.h>
#include <memory>
#include <vector>
#include <Eigen/Core>
#include "../cuda_array_mapper.h"
#include "../../src/utils/image_persister.h"
#include "../../src/utils/path_helper.h"
#include "../../src/placement/apollonius.h"
#include "../../src/utils/cuda_h... |
<commit_before>//==================================
//
// Summary: Winged Edge Facilities Test
// Notes:
// Dependencies: N/A
//==================================
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "WingedEdge.h"
#include... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2016 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>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE**
* CONDOR Copyright Notice
*
* See LICENSE.TXT for additional notices and disclaimers.
*
* Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department,
* University of Wisconsin-Madison, Madison, WI. All Rights Reserved.
* No ... |
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE**
* CONDOR Copyright Notice
*
* See LICENSE.TXT for additional notices and disclaimers.
*
* Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department,
* University of Wisconsin-Madison, Madison, WI. All Rights Reserved.
* No ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.