text stringlengths 54 60.6k |
|---|
<commit_before>// ///////////////////////////////////////////////////////////////////////////
// tenh/utility/optimization.hpp by Victor Dods, created 2013/12/09
// Copyright Leap Motion Inc.
// ///////////////////////////////////////////////////////////////////////////
#ifndef TENH_UTILITY_OPTIMIZATION_HPP_
#define T... |
<commit_before>/*=========================================================================
*
* Copyright NumFOCUS
*
* 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:... |
<commit_before>/*
Copyright (c) 2015 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
*/
#include "library/defeq_simplifier.h"
#include "util/interrupt.h"
#include "util/sexpr/option_declarations.h"
#include "kernel/expr_maps.h"
#include "kern... |
<commit_before>/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2006 Christian Gehl
* Written (... |
<commit_before>#include <iostream>
#include <sauce/sauce.h>
/**
* The purpose of this test is to enforce ansi c++ compatibility within the source.
*
* It does so by first pulling in all desired includes, instantiating templates and then asserting
* that it was compiled with -ansi.
*/
using ::sauce::AbstractProv... |
<commit_before>#include <boost/archive/polymorphic_iarchive.hpp>
#include <boost/archive/polymorphic_oarchive.hpp>
#include <boost/serialization/export.hpp>
#include <boost/lexical_cast.hpp>
#include "watcherColors.h"
#include <string>
using namespace boost;
using namespace std;
BOOST_CLASS_EXPORT_GUID(watcher::ev... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: calendar_gregorian.hxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: kz $ $Date: 2006-10-06 09:08:39 $
*
* The Contents of this fil... |
<commit_before>#include "catch.hpp"
#include <limits>
#include <vector>
#include <random>
#include <simdify/simd_types.hpp>
#include <simdify/util/malloc.hpp>
TEST_CASE("Ray-box intersection", "[perf]") {
// allocate data
struct RayBoxData {
float minx[8];
float miny[8];
float minz[8];
... |
<commit_before>/**
* @file llfloaterevent.cpp
* @brief Display for events in the finder
*
* $LicenseInfo:firstyear=2004&license=viewergpl$
*
* Copyright (c) 2004-2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided by Linden Lab
* to you ... |
<commit_before>#include "LineElement.h"
#include "LineLook.h"
namespace map_server
{
void LineElement::load(void)
{
_loaded = true;
auto cursor = _iMap->getConnectionPtr()->query("diaphnea.line_elements", MONGO_QUERY("_id" << _mongoId), 1);
if (cursor->more())
{
mon... |
<commit_before>/* -*- mode: c++; fill-column: 132; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* rodsAgent.c - The main code for rodsAgent
*/
#include <... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "MumbleVoipModule.h"
#include "MemoryLeakCheck.h"
#include "RexLogicModule.h"
#include "ModuleManager.h"
#include "Avatar/Avatar.h"
#include "EC_OgrePlaceable.... |
<commit_before>/**
* @file llwearabletype.cpp
* @brief LLWearableType class implementation
*
* $LicenseInfo:firstyear=2002&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the t... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* 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 ... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* 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 ... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Claire Xenia Wolf <claire@yosyshq.com>
*
* 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 ... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* 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 no... |
<commit_before>/**
* \file route.hxx
* Provides a class to manage a list of waypoints (i.e. a route).
*/
// Written by Curtis Olson, started October 2000.
//
// Copyright (C) 2000 Curtis L. Olson - curt@hfrl.umn.edu
//
// This program is free software; you can redistribute it and/or
// modify it under the terms o... |
<commit_before>/* Copyright 2012-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
#include "watchman.h"
#include <system_error>
#ifndef _WIN32
#include <dirent.h>
#endif
#ifdef __APPLE__
#include <sys/attr.h>
#include <sys/utsname.h>
#include <sys/vnode.h>
#endif
#include "FileDescriptor.h"
... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2015 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<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-2009 Torus Knot Software Ltd
Also see acknowledgements in Readme.html
This pro... |
<commit_before>// Copyright 2015 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 "build/build_config.h"
#include <windows.h>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/f... |
<commit_before>/*
* Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO>
*
* 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... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef ALIGN_HH_
#define ALIGN_HH_
#include <cstdint>
#include <cstdlib>
template <typename T>
inline
T align_up(T v, T align) {
return (v + align - 1) & ~(align - 1);
}
template <typename T>
inline
T* align_up(T* v, size_t align) {
static_... |
<commit_before>// See LICENSE file for copyright and license details.
#include <cstdlib>
#include <cassert>
#include <ctime>
#include <stdexcept>
#include "core/core.hpp"
#include "core/jsonHelpers.hpp"
Core::Core()
: mConfig(parseConfig("confCore.json")),
mCurrentPlayer(nullptr),
mSelectedUnit(nullptr),
... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef FILE_DESC_HH_
#define FILE_DESC_HH_
#include "sstring.hh"
#include <sys/types.h>
#include <unistd.h>
#include <assert.h>
#include <utility>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/eventfd.h>
#include <sys/timerfd.h>
#include <s... |
<commit_before>#include <iostream>
#include <string>
#include <vector>
#include <diffpp/diffpp.hpp>
//////////////////////////////////////////////////////////////////////////////////////////
/// all tests shall be contained in functions with the following signature:
typedef bool(*test_function)();
/// a test return... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2005 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>// Subscribes to Point Cloud Data, updates the occupancy grid, then publishes the data.
#include <cv_bridge/cv_bridge.h>
#include <igvc_msgs/map.h>
#include <math.h>
#include <nav_msgs/Odometry.h>
#include <pcl/point_cloud.h>
#include <pcl_ros/point_cloud.h>
#include <pcl_ros/transforms.h>
#include <ros... |
<commit_before>/*!
* \file tessellated_path.hpp
* \brief file tessellated_path.hpp
*
* Copyright 2016 by Intel.
*
* Contact: kevin.rogovin@intel.com
*
* 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 ... |
<commit_before>#pragma once
#ifndef BINARYDATA_HPP
#define BINARYDATA_HPP
#include <memory>
class BINARY_DATA
{
unsigned char* m_data;
size_t m_size;
public:
BINARY_DATA()
: m_data(nullptr),
m_size(0)
{}
BINARY_DATA(const unsigned int size)
{
m_size = size;
m_data = (new unsigned char[size]);
}
BINA... |
<commit_before>/*
* Copyright 2015 Aldebaran
*
* 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 ... |
<commit_before>// Copyright (c) 2020, Open Source Robotics Foundation, Inc.
// All rights reserved.
//
// Software License Agreement (BSD License 2.0)
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redis... |
<commit_before>#pragma once
/**
@file
@brief pseudrandom generator
@author MITSUNARI Shigeo(@herumi)
@license modified new BSD license
http://opensource.org/licenses/BSD-3-Clause
*/
#ifndef CYBOZU_DONT_USE_EXCEPTION
#include <cybozu/exception.hpp>
#endif
#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>
#i... |
<commit_before>/**
* \file
* \brief DynamicThread class header
*
* \author Copyright (C) 2015-2016 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 MPL was not
* distrib... |
<commit_before>/*
* Copyright (c) 2006, Mathieu Champlon
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met :
*
* . Redistributions of source code must retain ... |
<commit_before>/**
* \file
* \brief DynamicThread 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 MPL was not
* distrib... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>#ifndef ENGINE_RESPONSE_OBJECTS_HPP_
#define ENGINE_RESPONSE_OBJECTS_HPP_
#include "extractor/turn_instructions.hpp"
#include "extractor/travel_mode.hpp"
#include "engine/polyline_compressor.hpp"
#include "util/coordinate.hpp"
#include "util/json_container.hpp"
#include <boost/optional.hpp>
#include <... |
<commit_before>/* This file is part of Mapnik (c++ mapping toolkit)
* Copyright (C) 2006 Artem Pavlenko
*
* Mapnik is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or an... |
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / /
* / /_// /\ / /_// / ... |
<commit_before>#ifndef SOLAIRE_CORE_ARRAY_LIST_HPP
#define SOLAIRE_CORE_ARRAY_LIST_HPP
//Copyright 2016 Adam G. Smith
//
//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... |
<commit_before>#include "DrawCallBatching.h"
#include "dataset/Image.h"
#include "render/ShaderMgr.h"
#include "render/RenderContextStack.h"
#include "render/ShaderContext.h"
#include <dtex.h>
#include <gl/glew.h>
namespace d2d
{
DrawCallBatching* DrawCallBatching::m_instance = NULL;
/////////////////////////////... |
<commit_before>#include <algorithm>
#include <iostream>
#include <string>
#include <tabulate/column.hpp>
#include <tabulate/font_style.hpp>
#include <tabulate/printer.hpp>
#include <tabulate/row.hpp>
#include <tabulate/termcolor.hpp>
#include <vector>
#ifdef max
#undef max
#endif
#ifdef min
#undef min
#endif
namespace... |
<commit_before>//----------------------------------------------------------------------------
/// \file variant_tree_error.hpp
/// \author Serge Aleynikov
//----------------------------------------------------------------------------
/// Defines variant_tree_error classes for ease of configuration error reporting
//---... |
<commit_before>#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include "variant.hpp"
#include <cstdint>
#include <limits>
#include <string>
#include <ostream>
#include <memory>
using namespace mapbox;
template <typename T>
struct mutating_visitor : util::static_visitor<>
{
mutating_visitor(T & val)
: v... |
<commit_before>#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include "variant.hpp"
#include <cstdint>
#include <limits>
#include <string>
#include <ostream>
#include <memory>
using namespace mapbox;
template <typename T>
struct mutating_visitor : util::static_visitor<>
{
mutating_visitor(T & val)
: v... |
<commit_before>#ifndef ORG_EEROS_CONTROL_CONSTANT_HPP_
#define ORG_EEROS_CONTROL_CONSTANT_HPP_
#include <type_traits>
#include <eeros/control/Block1o.hpp>
#include <eeros/core/System.hpp>
namespace eeros {
namespace control {
template < typename T = double >
class Constant : public Block1o<T> {
pu... |
<commit_before>/****************************************************************************
** Meta object code from reading C++ file 'oldnormalizeobject.h'
**
** Created: Wed Nov 18 11:43:05 2009
** by: The Qt Meta Object Compiler version 62 (Qt 4.7.0)
**
** WARNING! All changes made in this file will be lost!
*... |
<commit_before>//===--- PartialApplyCombiner.cpp -----------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>// C++11 (c) 2014 Vladimír Štill <xstill@fi.muni.cz>
/* C++ inteface for libComedi and elevator, based on wrapping
* original C interface by Martin Korsgaard (see below)
*
* Almost the only change is that everything is wrapped in struct
* to avoid global variable and hardcoded device name
*/
//... |
<commit_before>//===-- X86ATTInstPrinter.cpp - AT&T assembly instruction printing --------===//
//
// 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 <fstream>
#include <vector>
#include <dirent.h>
int main(int argc, char** argv) {
std::string mainMakefile = "CC = g++\nLIBS = -ldl -lpthread\nLDFLAGS=$(LIBS) -rdynamic\nCXXFLAGS=-Wall -pthread $(DEBUG)\nSOURCES=modinterface.cpp server.cpp channel.cpp config.cpp modules.cpp... |
<commit_before>#include "FiltersPage.hpp"
#include "controllers/filters/FilterModel.hpp"
#include "singletons/Settings.hpp"
#include "singletons/WindowManager.hpp"
#include "util/LayoutCreator.hpp"
#include "widgets/Window.hpp"
#include "widgets/dialogs/ChannelFilterEditorDialog.hpp"
#include "widgets/helper/EditableM... |
<commit_before>/*
* AscEmu Framework based on ArcEmu MMORPG Server
* Copyright (c) 2014-2018 AscEmu Team <http://www.ascemu.org>
* Copyright (C) 2008-2012 ArcEmu Team <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Pu... |
<commit_before>/*
* Copyright (C) 2011, British Broadcasting Corporation
* All Rights Reserved.
*
* Author: Philip de Nier
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source cod... |
<commit_before>#ifndef INTERCOM_CPP_MSVC_DATATYPES_H
#define INTERCOM_CPP_MSVC_DATATYPES_H
#include <cstdint>
// Use predefined set if available.
#include<WinDef.h>
// The generated C++ headers and classes expect the data types in intercom namespace.
namespace intercom
{
namespace _internal
{
templat... |
<commit_before>// CommonFunc.cpp -- source file
/*
* Author: Ivan Chapkailo (septimomend)
* Date: 02.07.2017
*
* © 2017 Ivan Chapkailo. All rights reserved
* e-mail: chapkailo.ivan@gmail.com
*/
#include "stdafx.h"
#include "CommonFunc.h"
Common::Common()
{
m_pAll = tml.getAllControllerObj();
m_pCnfg = m_p... |
<commit_before>#include <vector>
#include <algorithm>
#include <getopt.h>
#include <sstream>
#include <utility>
#include <map>
#ifndef WIN32 //for using ntohl, ntohs, etc.
#include <in.h>
#include <errno.h>
#endif
#include "IpAddress.h"
#include "SystemUtils.h"
#include "RawPacket.h"
#include "ProtocolType... |
<commit_before>// See http://herbsutter.com/2009/05/15/effective-concurrency-eliminate-false-sharing/
#include <iostream>
#include <algorithm>
#include <random>
#include <vector>
#include <tbb/task_group.h>
#include <tbb/task_scheduler_init.h>
#include <boost/lexical_cast.hpp>
class SquareMatrix
{
public:
SquareMat... |
<commit_before>AliEmcalEsdTrackFilterTask* AddTaskEmcalEsdTrackFilter(
const char *name = "TrackFilter",
const char *trackCuts = "Hybrid_LHC11h",
const char *taskName = "AliEmcalEsdTrackFilterTask"
)
{
enum CutsType {
kHybrid = 0,
kTpcOnly = 1
};
enum DataSet {
k... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: sysinfo.C,v 1.14 2005/03/01 14:54:52 amoll Exp $
//
#include <BALL/SYSTEM/sysinfo.h>
#ifdef BALL_HAS_SYS_SYSINFO_H
# include <sys/sysinfo.h>
# include <BALL/SYSTEM/file.h>
#else
# ifdef BALL_PLATFORM_WINDOWS
# define WIN32_LEAN_AND_MEAN
... |
<commit_before>// $Id: File_test.C,v 1.9 2000/10/19 20:00:45 amoll Exp $
#include <BALL/CONCEPT/classTest.h>
///////////////////////////
#include <BALL/SYSTEM/file.h>
#include <sys/types.h>
#include <sys/stat.h>
///////////////////////////
START_TEST(class_name, "$Id: File_test.C,v 1.9 2000/10/19 20:00:45 amoll Exp $... |
<commit_before>// Fill out your copyright notice in the Description page of Project Settings.
#include "SemLogPrivatePCH.h"
#include "SLManager.h"
#include "SLContactTriggerBox.h"
// Set default values
ASLContactTriggerBox::ASLContactTriggerBox()
{
// Create raster
bCreateRaster = false;
// Number of rows in the ... |
<commit_before>/* The GC superclass methods, used by both GCs. */
#include "object_utils.hpp"
#include "gc/gc.hpp"
#include "objectmemory.hpp"
#include "gc/object_mark.hpp"
#include "builtin/class.hpp"
#include "builtin/tuple.hpp"
#include "builtin/module.hpp"
#include "builtin/symbol.hpp"
#include "builtin/weakref.... |
<commit_before>#include <iostream>
#include <string>
#include <vector>
#include <stdexcept>
#include <vexcl/vexcl.hpp>
#include <boost/compute.hpp>
#include <algorithm>
#include <QtGui>
#include <QtOpenGL>
#include <boost/compute/command_queue.hpp>
#include <boost/compute/kernel.hpp>
#include <boost/compute/program.h... |
<commit_before>/**
* $ g++ solution.cpp && ./a.out
* Day 15!
* Part 1: 631
* Part 2: 279
*/
#include <iostream>
#include <string>
#include <stdint.h>
using namespace std;
const uint64_t FACTOR_A = 16807;
const uint64_t FACTOR_B = 48271;
const uint64_t DIVISOR = 2147483647;
// Generator A starts with 873
// ... |
<commit_before>#define DEBUG 1
/**
* File : F2.cpp
* Author : Kazune Takahashi
* Created : 2/11/2020, 12:10:07 PM
* Powered by Visual Studio Code
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cst... |
<commit_before>#define DEBUG 1
/**
* File : D2.cpp
* Author : Kazune Takahashi
* Created : 4/20/2020, 12:13:08 AM
* Powered by Visual Studio Code
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cst... |
<commit_before>/*
* 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 at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cancellablejob.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2007-07-18 13:30:29 $
*
* The Contents of this file ar... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLRangeHelper.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2007-05-22 16:33:25 $
*
* The Contents of this file are... |
<commit_before>// See LICENSE file for copyright and license details.
#include "ui_opengl/event/move.h"
#include <cassert>
#include <SDL/SDL_opengl.h>
#include "core/misc.h"
#include "core/v2i.h"
#include "core/dir.h"
#include "core/core.h"
#include "core/path.h"
#include "ui_opengl/v2f.h"
#include "ui_opengl/vertex_a... |
<commit_before>/*
$Id$
a node in a MIME tree.
Copyright (C) 2002 by Klarlvdalens Datakonsult AB
This code is licensed under the GPL, blah, blah, blah...
*/
#include <config.h>
#include "partNode.h"
#include <klocale.h>
#include <kdebug.h>
#include "kmcomposewin.h"
#include "kmmimeparttree.h"
/*
=========... |
<commit_before>#include <opencv2/imgcodecs/imgcodecs.hpp>
#include <opencv2/core/core.hpp>
#include <string>
#include <iostream>
const unsigned int defaultWidth = 640;
const unsigned int defaultHeight = 480;
void fillWithShadingGain(cv::Mat &image)
{
for (unsigned int y = 0; y < image.rows; y++)
{
for (unsigned in... |
<commit_before>// c++ -std=c++11 converter.cpp -o converter -I/usr/local/include -L/usr/local/lib -lassimp -g -Wall
#define SAVE_RIG 1
#include <iostream>
#include <fstream>
#include <algorithm> // pair
#include <unordered_map>
#include <cassert>
#include <assimp/Exporter.hpp>
#include <assimp/cimport.h>
#include <a... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef FILE_DESC_HH_
#define FILE_DESC_HH_
#include "sstring.hh"
#include <sys/types.h>
#include <unistd.h>
#include <assert.h>
#include <utility>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/eventfd.h>
#include <sys/timerfd.h>
#include <s... |
<commit_before>#ifndef GNR_COROUTINE_HPP
# define GNR_COROUTINE_HPP
# pragma once
#include <cassert>
#include <cstdint>
#include <functional>
#include <memory>
#include "savestate.hpp"
namespace gnr
{
namespace
{
enum : std::size_t { anon_default_stack_size = 512 * 1024 };
}
template <
std::size_t N = anon_... |
<commit_before>/***************************************************************************
optionconvertertestcase.cpp
-------------------
begin : 2004/01/20
email : mcatan@free.fr
********************************************... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010, 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regar... |
<commit_before>#ifndef DUNE_DETAILED_SOLVERS_STATIONARY_LINEAR_ELLIPTIC_MODEL_THERMALBLOCK_HH
#define DUNE_DETAILED_SOLVERS_STATIONARY_LINEAR_ELLIPTIC_MODEL_THERMALBLOCK_HH
// system
#include <vector>
#include <string>
// dune-common
#include <dune/common/shared_ptr.hh>
// dune-stuff
#include <dune/stuff/function/ex... |
<commit_before>#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
constexpr bool debug = true;
using UInt = unsigned int;
template <typename Container>
void printContainer(const Container& c, const string& name) {
cout << "Printing container - " <<... |
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*-
dialogs/certificateselectiondialog.cpp
This file is part of Kleopatra, the KDE keymanager
Copyright (c) 2008 Klarälvdalens Datakonsult AB
Kleopatra is free software; you can redistribute it and/or modify
it under the terms of the GNU General Pu... |
<commit_before>// draw the 1st sensor of every ladder of requested layers (axis directions - thin arrows)
// and the tracking frame of each sensor (axis directions - thick arrows)
void drawLr(int layMin=1,int layMax=1)
{
gSystem->Load("libITSUpgradeBase.so");
gSystem->Load("libITSUpgradeSim.so");
gSystem->Loa... |
<commit_before>/*
* Source: http://codility.com/demo/take-sample-test/peaks/
* Result: 36/100 @ https://codility.com/demo/results/demoQ8W6PM-VFP/
* Result: 9/100 @ https://codility.com/demo/results/demoA7NMY2-HX9/
*
* A non-empty zero-indexed array A consisting of N integers is given.
*
* A peak is an array e... |
<commit_before>//
// LinearProbing.cpp
// HashTables
//
// Created by Sunil on 4/29/17.
// Copyright © 2017 Sunil. All rights reserved.
//
#include "HashTable.hpp"
#include "CollisionResolver.hpp"
LinearProbingResolver::LinearProbingResolver(CollisionCounter* counter)
: counter(counter) {
}
void LinearProbin... |
<commit_before>//= ValueState.cpp - Path-Sens. "State" for tracking valuues -----*- C++ -*--=//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//
// QC.cpp
//
// Class to compute QC metrics on .sim files
// Metrics include: Sample magnitude (normalized by probe), sample xydiff
//
//
// Author: Iain Bancarz <ib5@sanger.ac.uk>
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that th... |
<commit_before>// Generator builder
// This is the device that builds generators.
#include <filesystem> // C++17 specific feature.
#include <gtk/gtk.h>
#include <ifstream>
#include <libxml/parser.h>
#include <string>
#include <vector>
namespace fs = std::filesystem
// Add element to document.
// elementLabel is the l... |
<commit_before>//===-- SelectionDAGPrinter.cpp - Implement SelectionDAG::viewGraph() -----===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>/* Copyright 2014 CyberTech Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
<commit_before>//===--- GuaranteedARCOpts.cpp --------------------------------------------===//
//
// 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>#include "KnowledgeConstructionPass.h"
KnowledgeConstruction::~KnowledgeConstruction() {
delete instances;
delete instanceStream;
}
void KnowledgeConstruction::addToInstanceStream(std::string &instance) {
(*instanceStream) << instance << " ";
}
void KnowledgeConstruction::registerInstance(PointerAddre... |
<commit_before>/*
* Copyright (C) 2007-2013 German Aerospace Center (DLR/SC)
*
* Created: 2010-08-13 Markus Litz <Markus.Litz@dlr.de>
* Changed: $Id$
*
* Version: $Revision$
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... |
<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>#include <stdexcept>
#include <iostream>
#include <signal.h>
#include <sys/wait.h>
#include <vector>
#include <string.h>
#include "ExternalIndexer.h"
#include "IndexSink.h"
namespace {
void X(int error) {
// Prevent errors from shutting down the child "gracefully".
if (error == -1) {
std... |
<commit_before>/*
Copyright (c) 2015, Project OSRM contributors
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of condi... |
<commit_before>/*
* Copyright 2015 - 2018 gtalent2@gmail.com
*
* 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/.
*/
#pragma once
#include "new.hpp"
#include "types... |
<commit_before>#include <iostream>
#include <vector>
#include <map>
#include "timer.h"
#include "crp.h"
#include "sampler.h"
#include "tdict.h"
Dict TD::dict_;
std::string TD::empty = "";
std::string TD::space = " ";
using namespace std;
void ShowTopWords(const map<WordID, int>& counts) {
multimap<int, WordID> ms;... |
<commit_before>/*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.