text stringlengths 54 60.6k |
|---|
<commit_before><commit_msg>core: keep old index file resolution<commit_after><|endoftext|> |
<commit_before>
/*!
\file
\author Igor Mironchik (igor.mironchik at gmail dot com).
Copyright (c) 2014 Igor Mironchik
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
re... |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <QtCore/QBasicTimer>
#include <QtCore/QMetaType>
#include <QtCore/QMutexLocker>
#include <QtCore/QThread>
#ifdef Q_OS_MAC
#include <pthread.h>
#endif
#include "Canvas.h"
#include "Manager.h"
#include "Object.h"
// Declarations for part of Qt's internal API
... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013-2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=================================... |
<commit_before>/* Copyright (c) 2016, 2017 Dennis Wölfing
*
* 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 PROVIDED "AS IS" A... |
<commit_before>/*
* This file is part of Poedit (https://poedit.net)
*
* Copyright (C) 2017 Vaclav Slavik
*
* 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, i... |
<commit_before><commit_msg>[operators.oswaldinterpolation] drop dead code<commit_after><|endoftext|> |
<commit_before><commit_msg>Fix up some unit tests for HostResolver:<commit_after><|endoftext|> |
<commit_before>/*
Copyright (C) 2015 Preet Desai (preet.desai@gmail.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 License at
http://www.apache.org/licenses/LICENSE-2.0
Unless req... |
<commit_before><commit_msg>INTEGRATION: CWS warnings01 (1.4.24); FILE MERGED 2006/04/07 19:20:29 sb 1.4.24.2: RESYNC: (1.4-1.5); FILE MERGED 2005/11/16 16:42:14 pl 1.4.24.1: #i55991# removed warnings<commit_after><|endoftext|> |
<commit_before>/*****************************************************************************
Copyright (c) 2001 - 2011, The Board of Trustees of the University of Illinois.
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 file is part of Poedit (https://poedit.net)
*
* Copyright (C) 2017-2019 Vaclav Slavik
*
* 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 restrictio... |
<commit_before>/*
* Copyright (C) 2011 The Android Open Source 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 ... |
<commit_before>#ifndef regex_impl_hh_INCLUDED
#define regex_impl_hh_INCLUDED
#include "exception.hh"
#include "flags.hh"
#include "ref_ptr.hh"
#include "unicode.hh"
#include "utf8.hh"
#include "utf8_iterator.hh"
#include "vector.hh"
#include <string.h>
namespace Kakoune
{
enum class MatchDirection
{
Forward,
... |
<commit_before>#define BOOST_COMPUTE_DEBUG_KERNEL_COMPILATION
#include "boost/compute.hpp"
#include "Canvas.h"
#include "Triangle.h"
#include "draw_triangle.h"
#include <vector>
#include <iostream>
#include <string>
#include <exception>
using namespace std;
namespace bc = boost::compute;
bc::kernel make_kernel(cons... |
<commit_before>// Copyright (c) 2016 The Zcash developers
// Original code from: https://gist.github.com/laanwj/0e689cfa37b52bcbbb44
/*
To set up a new alert system
----------------------------
Create a new alert key pair:
openssl ecparam -name secp256k1 -genkey -param_enc explicit -outform PEM -out data.pem
Get th... |
<commit_before>#include<string>
#include<iostream>
#include<cstdio>
#include<sstream>
#include<iomanip>
#include<fstream>
#include<cstdlib>
#include<unistd.h>
#include"server_io.h"
int respondValidating(int submission_id)
{
ostringstream sout;
sout << "respond_validating.py " << submission_id;
system(sout.str... |
<commit_before><commit_msg>Inspector: optimize Probe's window-temperature<commit_after><|endoftext|> |
<commit_before>/*
* hooks.cpp
* StatusSpec project
*
* Copyright (c) 2014 thesupremecommander
* BSD 2-Clause License
* http://opensource.org/licenses/BSD-2-Clause
*
*/
#include "hooks.h"
void StatusSpecUnloader::ReadyToUnload(SourceHook::Plugin plug) {};
SourceHook::Impl::CSourceHookImpl g_SourceHook;
SourceHoo... |
<commit_before>//== BasicStore.cpp - Basic map from Locations to Values --------*- C++ -*--==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/**
* @file classify-test.cpp
*/
#include <vector>
#include <string>
#include <memory>
#include <iostream>
#include "index/document.h"
#include "io/config_reader.h"
#include "tokenizers/tokenizers.h"
#include "util/invertible_map.h"
#include "classify/classifier/all.h"
using std::vector;
using std::... |
<commit_before><commit_msg>fix text of commands to create B-spline curves<commit_after><|endoftext|> |
<commit_before>#ifndef KARM_UTILITY_H
#define KARM_UTILITY_H
#include "karmutility.h"
QString formatTime( long minutes )
{
QString time;
time.sprintf("%ld:%02ld", minutes / 60, labs(minutes % 60));
return time;
}
#endif // KARM_UTILITY_H
<commit_msg><commit_after>#ifndef KARM_UTILITY_H
#define KARM_UTILITY_H
... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//==================================================... |
<commit_before><commit_msg>[REF] Simpler symbol_set::enough_terminals method<commit_after><|endoftext|> |
<commit_before>// @(#)root/base:$Name: $:$Id: TStorage.cxx,v 1.5 2000/09/14 17:41:44 rdm Exp $
// Author: Fons Rademakers 29/07/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <Channel.h>
namespace test {
using ::testing::_;
using ::testing::Return;
using ::testing::AtLeast;
struct ChannelTestSuite : public ::testing::Test{
using Events = Transformer::Events;
using EventTypes = Transformer::EventTypes;
usi... |
<commit_before><commit_msg>Fix for osx Lanzcos scale test.<commit_after><|endoftext|> |
<commit_before>#include <glibmm/i18n.h>
#include "siteeditor.h"
using namespace AhoViewer;
using namespace AhoViewer::Booru;
#include "settings.h"
// Fixes issue with winnt.h
#ifdef DELETE
#undef DELETE
#endif
SiteEditor::SiteEditor(BaseObjectType *cobj, const Glib::RefPtr<Gtk::Builder> &bldr)
: Gtk::TreeView(cob... |
<commit_before>#pragma once
#include <algorithm>
#include <iterator>
namespace archie
{
template <typename Range, typename Pred>
auto filter(Range&, Pred);
namespace detail
{
template <typename ForwardIt, typename Pred>
class filter_impl {
class filter_iterator {
friend class filter_impl... |
<commit_before>#pragma once
#if defined(__x86_64__)
#include <immintrin.h>
#endif
namespace pthash::util {
template <typename T>
inline void prefetch(T const* ptr) {
#if defined(__x86_64__)
_mm_prefetch(reinterpret_cast<const char*>(ptr), _MM_HINT_T0);
#endif
}
inline uint8_t msb(uint64_t x) {
assert(x);
... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac (jan.issac@gmail.com)
* Copyright (c) 2014 Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before>/*
===============================================================================
FILE: laszip.hpp
CONTENTS:
Contains LASitem and LASchunk structs as well as the IDs of the currently
supported entropy coding scheme
PROGRAMMERS:
martin.isenburg@gmail.com
COPYRIGHT:... |
<commit_before>#pragma once
#include <vector>
#include <iostream>
#include <memory>
#include <array>
#include <fstream>
#include <sstream>
#include "SDL.h"
#include "proxy_sqrat.hpp"
#include "types.hpp"
namespace Oddlib
{
class IStream
{
public:
static inline void RegisterScriptBindings();
... |
<commit_before>#include "stdsneezy.h"
#include "games.h"
HiLoGame gHiLo;
const float WIN_INIT=0.05;
bool HiLoGame::enter(const TBeing *ch)
{
if(inuse){
ch->sendTo("This table is already in use.\n\r");
return false;
}
inuse = true;
hilo_shuffle(ch);
bet = 0;
name=ch->name;
return true;
}
void ... |
<commit_before>// RUN: clang-cc -fsyntax-only -verify %s
template<typename T> class A;
extern "C++" {
template<typename T> class B;
}
namespace N {
template<typename T> class C;
}
extern "C" {
template<typename T> class D; // expected-error{{templates must have C++ linkage}}
}
template<class U> class A; // e... |
<commit_before>#define OROCOS_TARGET gnulinux
#include <rtt/types/TypekitPlugin.hpp>
#include <rtt/typekit/RealTimeTypekit.hpp>
#include "Types.hpp"
#include "Plugin.hpp"
#include "opaque.h"
#ifdef WITH_CORBA
#include <omniORB4/CORBA.h>
#include <rtt/transports/corba/CorbaLib.hpp>
#include <rtt/transports/corba/CorbaT... |
<commit_before>// Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#include <algorithm>
#include "TextureResource.h"
#include "Renderer.h"
#include "core/Engine.h"
#include "math/MathUtils.h"
namespace ouzel
{
namespace graphics
{
TextureResource::TextureResource()
... |
<commit_before>#include "envoy/api/v2/discovery.pb.h"
#include "envoy/api/v2/rds.pb.h"
#include "envoy/grpc/status.h"
#include "envoy/stats/scope.h"
#include "common/config/protobuf_link_hacks.h"
#include "common/config/resources.h"
#include "common/protobuf/protobuf.h"
#include "common/protobuf/utility.h"
#include "... |
<commit_before>/**
* Copyright (C) 2015 3D Repo Ltd
*
* 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 later version.
*
* T... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2017 PX4 Development Team. 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>#ifndef EBITEN_GRAPHICS_DETAIL_OPENGL_DEVICE_HPP
#define EBITEN_GRAPHICS_DETAIL_OPENGL_DEVICE_HPP
#include "ebiten/graphics/detail/opengl/graphics_context.hpp"
#include "ebiten/graphics/detail/opengl/opengl_initializer.hpp"
#include "ebiten/graphics/detail/opengl/texture_factory.hpp"
#include "ebiten/gr... |
<commit_before>#pragma once
#include <sstream>
#include <string>
#include <chrono>
#include <tuple>
//#include "printPattern.hpp"
//#include "printPercentage.hpp"
//#include "printTime.hpp"
#include "Pattern.hpp"
#include "Time.hpp"
#include "Percentage.hpp"
#include "Label.hpp"
/**
* @brief A set of fancy progress... |
<commit_before>/*
* Copyright 2010-2012 Esrille Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2009 Bastian Holst <bastianholst@gmx.de>
//
// Self
#include "Wikip... |
<commit_before>#include "xchainer/routines/logic.h"
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <limits>
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include <nonstd/optional.hpp>
#include "xchainer/array.h"
#include "xchainer/device_id.h"
#include "xchainer/dtype.h"
#include "... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ximppage.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2005-09-09 14:00:16 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* $RCSfile: fonthdl.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: dvo $ $Date: 2001-06-29 21:07:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before><commit_msg>lowered dist threshhold<commit_after><|endoftext|> |
<commit_before>#pragma once
#include <iostream>
#include <vector>
#include <thread>
#include <mutex>
#include "cxxtest/TestSuite.h"
#include <zcm/message_tracker.hpp>
using namespace std;
class MessageTrackerTest : public CxxTest::TestSuite
{
public:
void setUp() override {}
void tearDown() override {}
... |
<commit_before>/**
* File : B.cpp
* Author : Kazune Takahashi
* Created : 2018-4-7 14:05:18
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // ... |
<commit_before>#ifndef STAN_MCMC_HMC_INTEGRATORS_BASE_LEAPFROG_HPP
#define STAN_MCMC_HMC_INTEGRATORS_BASE_LEAPFROG_HPP
#include <stan/interface_callbacks/writer/base_writer.hpp>
#include <stan/mcmc/hmc/integrators/base_integrator.hpp>
#include <iostream>
#include <iomanip>
namespace stan {
namespace mcmc {
tem... |
<commit_before>#ifndef STAN_MATH_OPENCL_KERNELS_NORMAL_ID_GLM_LPDF_HPP
#define STAN_MATH_OPENCL_KERNELS_NORMAL_ID_GLM_LPDF_HPP
#ifdef STAN_OPENCL
#include <stan/math/opencl/kernel_cl.hpp>
namespace stan {
namespace math {
namespace opencl_kernels {
// \cond
static const char* normal_id_glm_kernel_code = STRINGIFY(
... |
<commit_before>#ifndef STAN_MATH_PRIM_MAT_FUN_COV_MATRIX_CONSTRAIN_HPP
#define STAN_MATH_PRIM_MAT_FUN_COV_MATRIX_CONSTRAIN_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/fun/multiply_lower_tri_self_transpose.hpp>
#include <stan/math/prim/mat/meta/index_type.hpp>
#include <stan/math/prim/s... |
<commit_before>#include "MainVisitor.hpp"
#include <iostream>
#include <chrono>
#include "Event.hpp"
#include "typedefs.hpp"
#include "MainModule.hpp"
#include "events/Terminate.hpp"
#include "events/CmdResponseReceived.hpp"
#include "events/WebClientRequestReceived.hpp"
#include "../../utils/Machine.hpp"
#include ... |
<commit_before>/*************************************************************************
*
* $RCSfile: defaultproperties.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2003-11-24 16:48:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>/*************************************************************************
*
* $RCSfile: graphicproperties.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: pjunck $ $Date: 2004-11-03 10:51:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the fo... |
<commit_before>/*
*
* Copyright 2016, Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, thi... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// guaranteed_minimum_withdrawal_benefit.cpp
// -----------------------------------------
//
// Computes the price of a Guaranteed Minimum Withdrawal Benefit (GMWB) using an
// implicit, impulse control formulation.
//
// Au... |
<commit_before>/*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* 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 retai... |
<commit_before>/* -*- Mode: C; indent-tabs-mode: s; c-basic-offset: 4; tab-width: 4 -*- */
/* vim:set et sw=4 ts=4 sts=4: */
#include "ut_wallpaperwidget.h"
#include "wallpaperwidget.h"
#include "wallpaperbusinesslogic.h"
#include "wallpaperdescriptor.h"
#include "wallpapercurrentdescriptor.h"
#include "wallpapermodel.... |
<commit_before>/***********************************************************************
filename: CEGUIAnimationInstance.cpp
created: 7/8/2010
author: Martin Preisler
purpose: Implements the AnimationInstance class
*************************************************************************/
/... |
<commit_before>#include "medida/reporting/udp_reporter.h"
#include <iomanip>
#include <iostream>
#include <limits>
#include <sstream>
#include <string>
#include "util.h"
#include <cstring>
#include <cassert>
extern "C" {
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include... |
<commit_before>#include <LightGBM/objective_function.h>
#include "regression_objective.hpp"
#include "binary_objective.hpp"
#include "rank_objective.hpp"
#include "multiclass_objective.hpp"
#include "xentropy_objective.hpp"
namespace LightGBM {
ObjectiveFunction* ObjectiveFunction::CreateObjectiveFunction(const std::... |
<commit_before>//
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <tensorflow/lite/c/common.h>
#include <tensorflow/lite/interpreter.h>
#include <doctest/doctest.h>
#include <half/half.hpp>
using Half = half_float::half;
namespace armnnDe... |
<commit_before>// Copyright (c) 2013 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 "net/third_party/quiche/src/quic/core/congestion_control/pacing_sender.h"
#include "net/third_party/quiche/src/quic/core/quic... |
<commit_before>#include <sstream> //std::stringstream
#include <ctime> //std::time
#include "request.h"
#include "lib/curl_wrapper.h"
#include "lib/exceptions.h"
using namespace bittrex;
using namespace bittrex::lib;
std::string Request::get(const std::string &key,
const std::string &secret,
... |
<commit_before>#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <thread>
#include "../src/reactor/reactor.h"
using namespace testing;
class pair_socket_wrapper : public socket_wrapper_base
{
public:
pair_socket_wrapper(const std::shared_ptr<zmq::context_t> context, const std::string &addr)
: socket_wrap... |
<commit_before>#include <Render/Pipelining/Pipelines/CustomRenderPass/DeferredOnScreen.hh>
#include <Render/Textures/Texture2D.hh>
#include <Render/OpenGLTask/OpenGLState.hh>
#include <Render/GeometryManagement/Painting/Painter.hh>
#include <Culling/Output/RenderPipeline.hh>
#include <Render/ProgramResources/Types/Uni... |
<commit_before>#include <QFile>
#include <QtEndian>
#include <QMessageBox>
#include "level.h"
#define CHUNK_TABLE 0x14
// TODO: spin this shit into an actual file class like KALE/KDCE have
bool bigEndian = false;
typedef uint16_t u16;
typedef int16_t i16;
typedef uint32_t u32;
typedef int32_t i32;
template <typenam... |
<commit_before>/**
* Function.cpp
*
* Implementation for the function class
*
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 2013 Copernica BV
*/
#include "includes.h"
/**
* Set up namespace
*/
namespace Php {
/**
* Function that is called by the Zend engine every time that a... |
<commit_before>#include "lexer.h"
#include <string>
#include "lexerexception.h"
#include "log.h"
#include "scriptsource.h"
#include "token.h"
#include "tokenfactory.h"
namespace peachy {
Lexer::~Lexer() {
logger->debug("Lexer destructor");
}
Token * Lexer::nextToken() {
logger->debug("Lexer::nextToke... |
<commit_before>//===--- SILWitnessTable.cpp - Defines the SILWitnessTable class ----------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>//===- SystemUtils.h - Utilities to do low-level system stuff --*- C++ -*--===//
//
// This file contains functions used to do a variety of low-level, often
// system-specific, tasks.
//
//===----------------------------------------------------------------------===//
#include "Support/SystemUtils.h"
#in... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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 ... |
<commit_before>//
// Copyright 2020 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 la... |
<commit_before>//
// Copyright (C) Zbigniew Zagorski <z.zagorski@gmail.com>,
// licensed to the public under the terms of the GNU GPL (>= 2)
// see the file COPYING for details
// I.e., do what you like, but keep copyright and there's NO WARRANTY.
//
#include "tinfra/symbol.h"
#include <unittest++/UnitTest++.h>
#inc... |
<commit_before>// Copyright (c) 2013-2014 Sandstorm Development Group, Inc. and contributors
// Licensed under the MIT License:
//
// 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 r... |
<commit_before>//===-- SelectionDAGPrinter.cpp - Implement SelectionDAG::viewGraph() -----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>///
/// @file pod_vector.hpp
///
/// Copyright (C) 2022 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef POD_VECTOR_HPP
#define POD_VECTOR_HPP
#include "macros.hpp"
#include <algorithm>
#inclu... |
<commit_before>/*
* Copyright (C) 2008 Nokia Corporation.
*
* Contact: Marius Vollmer <marius.vollmer@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
*... |
<commit_before>/*
* Copyright (C) 2014-2016 Pelagicore AB
* All rights reserved.
*/
#include "dbusgateway.h"
DBusGateway::DBusGateway(ProxyType type
, const std::string &gatewayDir
, const std::string &name)
: Gateway(ID)
, m_type(type)
{
m_state = Gatew... |
<commit_before>#include "config_manager.h"
using namespace std;
using namespace TOOLS;
ConfigDataKeeper::ConfigDataKeeper(const ConfigDataKeeper& obj)
: storage(obj.storage), tinfo(obj.tinfo) { }
ConfigDataKeeper::ConfigDataKeeper(void* data, const string& tinfo)
: storage(data), tinfo(tinfo) { }
ConfigDataK... |
<commit_before>
// This file contains definition of C++ new/delete operators
#include <stddef.h>
#include <malloc.h>
#include "stdexcept.h"
namespace std {
void terminate();
}
typedef void (*new_handler)();
static new_handler new_handl = &std::terminate;
namespace std {
new_handler set_new_handler(new_ha... |
<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 "media/video/capture/fake_video_capture_device.h"
#include <string>
#include "base/memory/scoped_ptr.h"
#include "base/strin... |
<commit_before>//
// ex9_31.cpp
// Exercise 9.31
//
// Created by pezy on 12/3/14.
//
// @Brief The program on page 354 to remove even-valued elements and
// duplicate odd ones will not work on a list or forward_list. Why?
// Revise the program so that it works on these types as well.
// @fo... |
<commit_before>//
// Amiga.cpp
// Clock Signal
//
// Created by Thomas Harte on 16/07/2021.
// Copyright © 2021 Thomas Harte. All rights reserved.
//
#include "Amiga.hpp"
#include "../MachineTypes.hpp"
#include "../../Processors/68000/68000.hpp"
#include "../../Analyser/Static/Amiga/Target.hpp"
#include "../Ut... |
<commit_before>//===--- LangOptions.cpp - Language & configuration options ---------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief json helper functions
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2004-2013 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this f... |
<commit_before>#include <utility>
#include <cstdlib>
#include "number.hh"
using namespace std;
// number class definitions.
template <>
Number::complex_type Number::coerce() const{
switch(type_){
case Type::complex:
return z_;
case Type::real:
return complex_type{f_};
case Type::integer:
return c... |
<commit_before>/*
* IceWM
*
* Copyright (C) 1999-2002 Marko Macek
*/
#include "config.h"
#include "objmenu.h"
#include "objbar.h"
#include "objbutton.h"
#include "ybutton.h"
#include "prefs.h"
#include "wmtaskbar.h"
#include "wmapp.h"
#include "wpixmaps.h"
#include "yrect.h"
#include "yicon.h"
ref<YFont> ObjectBut... |
<commit_before>// Copyright 2015 Chris Sattinger
#include "ofApp.h"
#include "ofMain.h"
#include <stdio.h>
#include "style.h"
//--------------------------------------------------------------
void ofApp::setup() {
ofSetVerticalSync(true);
ofSetFrameRate(60);
ofAddListener(dataSource.didLoadEvent, this, &of... |
<commit_before>#include <iostream>
#include "btree.h"
using namespace std;
int main(int argc, char** argv)
{
{
btree index;
for (int i = 0; i < 8; i++)
{
index.insert(8 - i, i + 1);
index.print();
cout << "====================" << endl;
}
... |
<commit_before>// statTemplates.cpp : Defines the entry point for the DLL application.
//
#include "statTemplates.h"
#include "bzfsAPI.h"
#include "plugin_utils.h"
double start;
std::string getFileHeader ( void )
{
start = bz_getCurrentTime();
std::string page ="<HTML><HEAD></HEAD><BODY>\n<BR>\n";
std::string ... |
<commit_before>#define EXTERN_DLL_EXPORT
#include <windows.h>
#include <Psapi.h>
#include <tlhelp32.h>
#include <vector>
#include <algorithm>
#include <beaengine/BeaEngine.h>
const int PATH_MAXIMUM_LENGTH = 260;
enum class RequestFunction
{
IsProcessValid,
OpenRemoteProcess,
CloseRemoteProcess,
ReadRemoteMemor... |
<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-2006 Torus Knot Software Ltd
Also see acknowledgements in Readme.html
This pro... |
<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-2006 Torus Knot Software Ltd
Also see acknowledgements in Readme.html
This pro... |
<commit_before>/*
This file is part of Csound.
Copyright (C) 2014 Rory Walsh
The Csound 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.1 of the Licens... |
<commit_before>// Copyright Hugh Perkins 2016
// 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 agr... |
<commit_before>#include "easylogging++.h"
#include "json.hpp"
#include "snake.h"
using nlohmann::json;
// Good runs: http://game.snake.cygni.se/#/viewgame/88a759cf-e406-4941-9eba-28d51ed9c600
// http://game.snake.cygni.se/#/viewgame/af42c3a4-fbf9-4a14-b892-3fdf6da063a4
// http://game.snake... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.