text stringlengths 54 60.6k |
|---|
<commit_before>#include "SandboxApp.h"
#include <SpriteBatchBuffer.h>
#include <Windows.h>
#include <stb_image.h>
#include <ds_imgui.h>
#include "Material.h"
#include <ds_logpanel.h>
ds::BaseApp *app = new SandboxApp();
void my_debug(const LogLevel& level, const char* message) {
OutputDebugString(message);
OutputDe... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/test/nacl/nacl_sandbox_test.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/test/test_ti... |
<commit_before>/*
Copyright 2014 Justin White
See included LICENSE file for details.
*/
#include <unistd.h>
#include <easylogging++.h>
#define ELPP_UNICODE
#define ELPP_NO_DEFAULT_LOG_FILE
#include <Game.h>
INITIALIZE_EASYLOGGINGPP
//system data
const int version = 0;
const int revision = 1;
const int wid... |
<commit_before>/***********************************************************************************************************************
* *
* SPLASH build system v0.2 ... |
<commit_before>//Copyright (c) 2017 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include "infill.h"
#include "LayerPlan.h"
#include "sliceDataStorage.h"
#include "TopSurface.h"
namespace cura
{
TopSurface::TopSurface()
{
//Do nothing. Areas stays empty.
}
void TopSurface::se... |
<commit_before>#pragma ident "$Id$"
/**
* @file WGS84Geoid.hpp
* WGS 1984 model of the geoid
*/
#ifndef GPSTK_WGS84GEOID_HPP
#define GPSTK_WGS84GEOID_HPP
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free so... |
<commit_before> /**
- -* (C) Copyright 2013 King Abdullah University of Science and Technology
Authors:
Ali Charara (ali.charara@kaust.edu.sa)
David Keyes (david.keyes@kaust.edu.sa)
Hatem Ltaief (hatem.ltaief@kaust.edu.sa)
Redistribution and use in source and binary forms, with or without
modificat... |
<commit_before>/* Copyright (c) 2016 Trevaling */
#if defined(PARTICLE)
#include "application.h"
#else
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "particle_mock.h"
#endif
#include "cellular.h"
#define META_CASE_RETURN(type) case type: return #type
const char* at_resp_type_to_str(... |
<commit_before>#include "stdsneezy.h"
#include "database.h"
#include "corporation.h"
int getAssets(int corp_id)
{
int value=0, keepernum=0;
TDatabase db(DB_SNEEZY);
TObj *o=NULL;
TRoom *room;
TMonster *keeper;
db.query("select in_room, keeper from shop where shop_nr in (select shop_nr from shopowned where... |
<commit_before>#include <iostream>
#include <string>
#include <map>
#include <vector>
using namespace std;
char out [2][13];
int main() {
map<char, vector<int>> m;
string str; cin >> str;
for (int i = 0; i < 27; i++) m[str[i]].push_back(i);
char me;
vector<int> v;
for (auto it : m) {
... |
<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><commit_msg>Allow 'chrome-extension:' URLs to bypass content settings (1/2)<commit_after><|endoftext|> |
<commit_before>
#include "VM.h"
#include <libevm/VMFace.h>
#include "ExecutionEngine.h"
#include "Compiler.h"
#include "Type.h"
namespace dev
{
namespace eth
{
namespace jit
{
bytesConstRef VM::go(ExtVMFace& _ext, OnOpFunc const&, uint64_t)
{
auto module = Compiler().compile(_ext.code);
ExecutionEngine engine;
... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkMersenneTwisterRandomVariateGeneratorTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. Al... |
<commit_before>#ifndef LUNATIC_LUA_FUNCTION_HPP_INCLUDED
#define LUNATIC_LUA_FUNCTION_HPP_INCLUDED
#include "lua.hpp"
#include <cassert>
#include <string>
#include <tuple>
#include <utility>
namespace lunatic
{
// Helper templates to push values from C++ to the Lua stack.
// You can define your own specializ... |
<commit_before>//Copyright (c) 2021 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include <gtest/gtest.h>
#include "../src/settings/Settings.h" //Settings to generate walls with.
#include "../src/utils/polygon.h" //To create example polygons.
#include "../src/sliceDataStorage.h" //... |
<commit_before>#pragma once
#include "user_mark.hpp"
#include "user_mark_container.hpp"
#include "../coding/reader.hpp"
#include "../geometry/point2d.hpp"
#include "../geometry/rect2d.hpp"
#include "../base/timer.hpp"
#include "../std/string.hpp"
#include "../std/noncopyable.hpp"
#include "../std/iostream.hpp"
#in... |
<commit_before>#include <cassert>
#include "structures/union_find.h"
using namespace theorysolver;
UnionFind::UnionFind() : nodes(), merges(), pending() {
}
UnionFind::UnionFind(unsigned int size_hint) : UnionFind() {
this->expand(size_hint);
}
UnionFind::~UnionFind() {
for (unsigned i=0; i<this->nodes.siz... |
<commit_before><commit_msg>ocTableRef is not in RPN<commit_after><|endoftext|> |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (C) 2010 Laszlo Papp <djszapi@archlinux.us>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesse... |
<commit_before>// score_main.cpp: defines a GAM to GAM annotation function
#include <omp.h>
#include <unistd.h>
#include <getopt.h>
#include <string>
#include <vector>
#include <set>
#include <subcommand.hpp>
#include "../alignment.hpp"
#include "../vg.hpp"
#include <vg/io/stream.hpp>
using namespace std;
using na... |
<commit_before>// Copyright (c) 2013-2014 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 "rpcserver.h"
#include "rpcclient.h"
#include "base58.h"
#include "wallet.h"
#include <boost/algori... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 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>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 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>#include "ancovabayesianform.h"
#include "ui_ancovabayesianform.h"
AncovaBayesianForm::AncovaBayesianForm(QWidget *parent) :
AnalysisForm("AncovaBayesianForm", parent),
ui(new Ui::AncovaBayesianForm)
{
ui->setupUi(this);
ui->listAvailableFields->setModel(&_availableVariablesModel);
_dependentList... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/ref_counted.h"
#include "base/utf_string_conversions.h"
#include "chrome/test/automation/dom_element_proxy.h"
#include "... |
<commit_before>
/*!
\file
\author Igor Mironchik (igor.mironchik at gmail dot com).
Copyright (c) 2013-2017 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... |
<commit_before>// This file is part of Poseidon.
// Copyleft 2020, LH_Mouse. All wrongs reserved.
#include "../precompiled.hpp"
#include "timer_driver.hpp"
#include "../core/abstract_timer.hpp"
#include "../xutilities.hpp"
namespace poseidon {
namespace {
inline
int64_t&
do_shift_time(int64_t& value, int64_t shift)
... |
<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/proxy/serialized_flash_menu.h"
#include "ipc/ipc_message.h"
#include "ppapi/c/private/ppb_flash_menu.h"
#include "ppap... |
<commit_before>/*
Copyright (C) 2019 The Falco Authors.
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 t... |
<commit_before>/*
* Copyright (c) 2013 - 2016, Roland Bock
* 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>/***************************************************************************
* Copyright (C) 2009 Peter Krusche, The University of Warwick *
* peter@dcs.warwick.ac.uk *
*************************************************************************... |
<commit_before>/******************************************************************************
This source file is part of the tomviz project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
... |
<commit_before>//===-- Acceptor.cpp --------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
* Copyright 2017, International Business Machines
*
* 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 requ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: EventOASISTContext.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2006-06-19 18:52:28 $
*
* The Contents of this file... |
<commit_before>/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkDevice.h"
#include "SkGraphics.h"
#include "SkMath.h"
#include "SkOSFile.h"
#include "SkPicture.h"
#incl... |
<commit_before>/******************************************************************************
* Birthstone is a programming language and interpreter language written *
* by Robb Tolliver for his Senior Project at BYU-Idaho during the Fall *
* Semester of 2010. ... |
<commit_before>#include "action_header.h"
#include "../server_settings.h"
#include "../ClientMain.h"
namespace
{
void access_dir_details(std::string folder, std::string& ret)
{
bool has_error = false;
getFiles(folder, &has_error);
if (has_error)
{
ret += "Cannot access " + folder + ". " + os_last_err... |
<commit_before>// infoware - C++ System information Library
//
// Written in 2016 by nabijaczleweli <nabijaczleweli@gmail.com> and ThePhD <phdofthehouse@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related
// and neighboring rights to this software to the public doma... |
<commit_before>/*
* Copyright 2018 Google, Inc.
*
* 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 conditions and the following ... |
<commit_before>/*
* Copyright 2018 Google, Inc.
*
* 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 conditions and the following ... |
<commit_before>#if defined(TLANG_WITH_LLVM)
// A helper for the llvm backend
#include <llvm/Transforms/Utils/Cloning.h>
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "... |
<commit_before>// Copyright (c) 2012-2019 The Syscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <compressor.h>
#include <test/setup_common.h>
#include <stdint.h>
#include <boost/test/unit_test.hp... |
<commit_before>#include <fastarduino/eeprom.h>
#include <fastarduino/devices/tones.h>
#include <fastarduino/time.h>
// Board-dependent settings
static constexpr const board::Timer NTIMER = board::Timer::TIMER1;
static constexpr const board::DigitalPin OUTPUT = board::PWMPin::D9_PB1_OC1A;
using devices::audio::Tone;
u... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlnumfe.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2007-04-11 13:34:03 $
*
* The Contents of this file are made ... |
<commit_before>/*
Solution to this task can be found at our blog.
You are going to build a stone wall. The wall should be straight and N meters long, and its thickness should be constant; however, it should have different heights in different places. The height of the wall is specified by a zero-indexed array H of N po... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/lib/p9_ppe_utils.H $ ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tempfile.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2005-09-09 14:17:54 $
*
* The Contents of this file are made ... |
<commit_before>#include "variant/sdc_platform.hpp"
#include "hal.h"
// SDC1 configuration
static const SDCConfig SDC1_CONFIG {
0 // Dummy
};
SDCPlatform::SDCPlatform() {
sdcStart(&SDCD1, &SDC1_CONFIG);
palSetPadMode(GPIOB, 12, PAL_MODE_INPUT_PULLUP); // uSD-CD
palSetPadMode(GPIOC, 8, PAL_MODE_ALTERNATE... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2014 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 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
#include <vespa/log/log.h>
LOG_SETUP("optimized_test");
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/vespalib/util/optimized.h>
using namespac... |
<commit_before>#include "viewer/primitives/simple_geometry_primitives.hh"
#include <GL/glew.h>
#include "viewer/colors/material.hh"
#include "viewer/gl_aliases.hh"
#include "geometry/perp.hh"
namespace viewer {
using Vec3 = Eigen::Vector3d;
using Vec4 = Eigen::Vector4d;
void draw_axes(const Axes &axes) {
glPushA... |
<commit_before>//_____________________________________________________________________
/**
*
*
* @param d Detector
* @param r Ring
* @param vz Z--coordinate of interaction point
* @param nDead On returm the number of dead strips
* @param deadScript Output stream for dead strips
*
* @retur... |
<commit_before>#ifndef _DEDEFS_HPP
#define _DEDEFS_HPP
/*-------------------------------------------------------------------------
* drawElements C++ Base Library
* -----------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
... |
<commit_before>#pragma once
#ifndef INPUTCOMMON_H_UTH
#define INPUTCOMMON_H_UTH
//Windows
#include <UtH/Platform/Common/InputBase.hpp>
#include <pmath/Vector2.hpp>
namespace uth
{
enum InputEvent
{
NONE = 0,
STATIONARY,
CLICK,
TAP = CLICK,
DRAG,
ZOOM_IN,
ZOOM_OUT
};
class CommonInput : public InputBa... |
<commit_before>/**
* Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free... |
<commit_before>// (C) Copyright Gennadiy Rozental 2012-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)
// See http://www.boost.org/libs/test for the library home page.
//
/// @file
/// Forward declar... |
<commit_before>#include "brents_fun.h"
#include <iomanip>
//The code is from: http://rosettacode.org/wiki/Roots_of_a_function#C.2B.2B
unsigned int brents_fun(std::function<double (double)> f, double& sol, double lower, double upper, double tol, unsigned int max_iter)
{
double a = lower;
double b = upper;
double fa... |
<commit_before>/**
* \file
* \brief SortedIntrusiveForwardList template class header
*
* \author Copyright (C) 2015-2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the ... |
<commit_before>#include <pcl/common/common.h>
#include <pcl/search/kdtree.h>
#include <cv_bridge/cv_bridge.h>
#include <opencv/cv.h>
#include <eigen3/Eigen/Core>
#include <image_geometry/pinhole_camera_model.h>
#include <sensor_msgs/PointCloud2.h>
#include <common/small_helpers.hpp>
#ifndef PCL_DEPTH_FILTER_H_
#def... |
<commit_before>//============================================================================
// include/vsmc/opencl/internal/cl_wrapper.hpp
//----------------------------------------------------------------------------
//
// vSMC: Scalable Monte Carlo
//
// This file is distributed under the 2-... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2007 Christoph Cullmann <cullmann@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
Thi... |
<commit_before>//
// file : xQGanttBarViewPort_Events.C
// date : 11 nov 2000
// changed : 27 dec 2000
// author : jh
//
#include "xQGanttBarViewPort.h"
#include "xQGanttBarView.h"
#include <math.h>
KGanttItem* xQGanttBarViewPort::_currentItem = NULL;
int _currentMButton = 0;
bool _Mousemoved = FALSE;... |
<commit_before>/*
* Copyright 2018-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><commit_msg>Resolves: tdf#90256 repair invalid docking positions<commit_after><|endoftext|> |
<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 "Lice... |
<commit_before>#include <QSettings>
#include "QGCSettingsWidget.h"
#include "MainWindow.h"
#include "ui_QGCSettingsWidget.h"
#include "LinkManager.h"
#include "MAVLinkProtocol.h"
#include "MAVLinkSettingsWidget.h"
#include "GAudioOutput.h"
//, Qt::WindowFlags flags
QGCSettingsWidget::QGCSettingsWidget(QWidget *pare... |
<commit_before>//**************************************************************************************************
//
// OSSIM Open Source Geospatial Data Processing Library
// See top level LICENSE.txt file for license information
//
//**************************************************************************... |
<commit_before>// Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "..\StdAfx.h"
#include "..\BatchEncoder.h"
#include "Utilities.h"
#include "UnicodeUtf8.h"
#include "Utf8String.h"
#ifdef _DEBUG
#define ... |
<commit_before>#include <QtPlugin>
#include <QApplication>
#include <QFontDatabase>
#include "fish_annotator/video_annotator/mainwindow.h"
#ifdef _WIN32
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
Q_IMPORT_PLUGIN(QICOPlugin)
#endif
int main(int argc, char* argv[]) {
QApplication a(argc, argv);
#if __unix__
QFontD... |
<commit_before>/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2014 Ben Vanik. All rights reserved. ... |
<commit_before>/*
Copyright (c) 2012-2014 The SSDB 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 "resp.h"
#include <stdio.h>
#include <sstream>
#include <iomanip>
#include <util/strings.h>
int Response::size() const{
return ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: UnoNamespaceMap.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-08 17:14:53 $
*
* The Contents of this file ar... |
<commit_before>/*************************************************************************
*
* $RCSfile: fmservs.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: obo $ $Date: 2004-03-19 12:20:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>// LICENSE/*{{{*/
/*
sxc - Simple Xmpp Client
Copyright (C) 2008 Dennis Felsing, Andreas Waidler
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 Licen... |
<commit_before>//
// Created by Zal on 11/19/16.
//
#include <assert.h>
#include "BinaryMatrix.h"
void BinaryMatrix::BinaryMatrix(int w, int h) {
this->width = w;
this->height = h;
baseSize = sizeof(char);
int n = w*h;
dataLength = (n % baseSize == 0)? n/baseSize : n/baseSize +1;
this->data =... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>
#include "SchedulingManagerFactory.h"
#include "TimeWarpEventSetFactory.h"
#include "TimeWarpSimulationManager.h"
#include "SimulationConfiguration.h"
#include "SchedulingManager.h"
#include "DefaultSchedulingManager.h"
#include "TimeWarpMultiSetSchedulingManager.h"
#include <WarpedDebug.h>
/*
... |
<commit_before>/*
This file is part of kdepim.
Copyright (c) 2004 Bo Thorsen <bo@sonofthor.dk>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the... |
<commit_before>/*=========================================================================
*
* Copyright RTK Consortium
*
* 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
*
* ... |
<commit_before>/*
kopeteaddrbookexport.cpp - Kopete Online Status
Logic for exporting data acquired from messaging systems to the
KDE address book
Copyright (c) 2004 by Will Stephenson <lists@stevello.free-online.co.uk>
Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
... |
<commit_before>/*
This file is part of the kolab resource - the implementation of the
Kolab storage format. See www.kolab.org for documentation on this.
Copyright (c) 2004 Bo Thorsen <bo@sonofthor.dk>
This library is free software; you can redistribute it and/or
modify it under the terms of the GN... |
<commit_before>#include "nodetests.h"
#include "yaml-cpp/yaml.h"
namespace {
struct TEST {
TEST(): ok(false) {}
TEST(bool ok_): ok(ok_) {}
TEST(const char *error_): ok(false), error(error_) {}
bool ok;
std::string error;
};
}
#define YAML_ASSERT(cond) do { if(!(cond)) return " Assert failed: " #cond; ... |
<commit_before>// Copyright 2010 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>#include <stdio.h>
#include "../http_server.h"
using namespace mevent;
class HelloWorld {
public:
void Index(Connection *conn) {
conn->Resp()->SetHeader("Content-Type", "text/html");
conn->Resp()->WriteString("hello world!");
}
};
int main() {
HelloWorld hello;
HT... |
<commit_before>#include <sstream>
#include <string>
#include <gtest/gtest.h>
#include "phpcxx/module.h"
#include "phpcxx/fcall.h"
#include "phpcxx/phpexception.h"
#include "phpcxx/parameters.h"
#include "phpcxx/function.h"
#include "testsapi.h"
#include "globals.h"
namespace {
class MyModule : public phpcxx::Module {... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: DResultSet.cxx,v $
*
* $Revision: 1.24 $
*
* last change: $Author: obo $ $Date: 2006-09-17 02:23:22 $
*
* The Contents of this file are m... |
<commit_before>#ifndef ITER_ACCUMULATE_H_
#define ITER_ACCUMULATE_H_
#include "iterbase.hpp"
#include <utility>
#include <iterator>
#include <initializer_list>
#include <functional>
#include <type_traits>
namespace iter {
//Forward declarations of Accumulator and accumulate
template <typename Container, typ... |
<commit_before>#ifndef ITER_ACCUMULATE_H_
#define ITER_ACCUMULATE_H_
#include "internal/iterator_wrapper.hpp"
#include "internal/iterbase.hpp"
#include <functional>
#include <iterator>
#include <memory>
#include <type_traits>
#include <utility>
namespace iter {
namespace impl {
template <typename Container, ty... |
<commit_before>#include <libmesh/mesh.h>
#include <libmesh/mesh_generation.h>
#include <libmesh/mesh_refinement.h>
#include <libmesh/remote_elem.h>
#include <libmesh/replicated_mesh.h>
#include <libmesh/auto_ptr.h> // libmesh_make_unique
#include "test_comm.h"
#include "libmesh_cppunit.h"
using namespace libMesh;
c... |
<commit_before>#include "config/Base.hh"
#include "containers/PointCloud.hh"
#include "tests/Base.hh"
#include <iostream>
#include <string>
#include <vector>
using namespace aleph;
template <class T> void testFormats()
{
ALEPH_TEST_BEGIN( "Point cloud formats" );
using PointCloud = PointCloud<T>;
std::vect... |
<commit_before>
#include <cmath>
#include <functional>
#include <iostream>
#include <random>
#include <vector>
#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <spii/google_test_compatibility.h>
#include <spii/auto_diff_term.h>
#include <spii/solver.h>
using namespace spii;
void info_log_function(const std::... |
<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>#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <localsession.hxx>
#include <treecache.hxx>
#include <options.hxx>
#include <rtl/ustring.hxx>
#include "treeload.hxx"
// -----------------------------------------------------------------------------
namespace configmgr
{
namespace uno ... |
<commit_before>/*************************************************************************
*
* $RCSfile: PColumn.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2004-10-22 08:45:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<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 "ui/app_list/views/search_result_list_view.h"
#include <algorithm>
#include "base/bind.h"
#include "base/message_loop/messag... |
<commit_before>// Virvo - Virtual Reality Volume Rendering
// Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University
// Contact: Jurgen P. Schulze, jschulze@ucsd.edu
//
// This file is part of Virvo.
//
// Virvo is free software; you can redistribute it and/or
// modify it under the terms of the GN... |
<commit_before>/*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#include "log.h"
#include <string>
#include <ctime>
#include <cstring>
#include <uv.h>
namespace game
{
Scoped_Log_Init::Scoped_Log_Init() noexcept
{
init_log();
}
Scoped_Log_Init::~Scoped_Log_Init() noexcept
{
uninit... |
<commit_before>/******************************************************************************
This source file is part of the tomviz project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.