text stringlengths 54 60.6k |
|---|
<commit_before>#include "networking/servernetworker.h"
#include "global_constants.h"
ServerNetworker::ServerNetworker() : Networker(true)
{
ENetAddress address;
address.host = ENET_HOST_ANY;
address.port = 3224; // 3223-3230
host = enet_host_create(&address, PLAYER_LIMIT, 1, 0, 0);
if (host == NULL... |
<commit_before>#include <mtp/metadata/Library.h>
#include <mtp/ptp/Session.h>
#include <mtp/ptp/ObjectPropertyListParser.h>
#include <mtp/log.h>
#include <unordered_map>
namespace mtp
{
namespace
{
const std::string UknownArtist ("UknownArtist");
const std::string UknownAlbum ("UknownAlbum");
const std::stri... |
<commit_before>#include <algorithm>
#include <vector>
#include <endian.h>
#define LOGLEVEL VERBOSE
#include "utils/logging.h"
#include "nmranet/GlobalEventHandler.hxx"
#include "nmranet/NMRAnetEventRegistry.hxx"
#include "if/nmranet_if.h"
#include "core/nmranet_event.h"
#include "nmranet/EventHandlerTemplates.hxx"
#i... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of meegotouch-controlpanelapplets.
**
** If you have que... |
<commit_before>// This program compares the performance of appending many short strings
// using different facilities.
#include <cstdlib>
#include <cstdio>
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include <clue/timing.hpp>
using namespace std;
using namespace clue;
class WithString... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// simple_optimizer.cpp
//
// Identification: /peloton/src/optimizer/simple_optimizer.cpp
//
// Copyright (c) 2016, Carnegie Mellon University Database Group
//
//===---------------... |
<commit_before>/*
Copyright (C) 1998-2004 by Jorrit Tyberghein
(C) 2003 by Philip Aumayr
(C) 2004-2007 by Frank Richter
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 Found... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// simple_optimizer.cpp
//
// Identification: /peloton/src/optimizer/simple_optimizer.cpp
//
// Copyright (c) 2016, Carnegie Mellon University Database Group
//
//===---------------... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// simple_optimizer.cpp
//
// Identification: /peloton/src/optimizer/simple_optimizer.cpp
//
// Copyright (c) 2016, Carnegie Mellon University Database Group
//
//===---------------... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2008 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 Li... |
<commit_before>/**
* @file
*
* @brief Delegate implementation for the `leaf` plugin
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include <numeric>
#include <kdbassert.h>
#include <kdbease.h>
#include <kdblogger.h>
#include "leaf_delegate.hpp"
using std::accumulate;
using st... |
<commit_before>#ifndef SRC_PORTS_EVENT_SOURCES_EVENT_SOURCES_HPP_
#define SRC_PORTS_EVENT_SOURCES_EVENT_SOURCES_HPP_
#include <cassert>
#include <functional>
#include <memory>
#include <vector>
#include <core/traits.hpp>
#include <core/connection.hpp>
#include <ports/port_traits.hpp>
#include <core/detail/active_con... |
<commit_before>#include "netupdater.h"
namespace openalpp {
NetUpdater::NetUpdater(ost::UDPSocket *socket,ost::TCPStream *controlsocket,
const ALuint buffer1,ALuint buffer2,
ALenum format,unsigned int frequency,
unsigned int packetsize)
: StreamUpdater(buffer1,buffer2,format,frequency), ... |
<commit_before>#pragma once
#include <string>
#include <map>
#include <vector>
class RefeusProcess {
private: std::string executable;
private: std::map<std::string,std::string> environmentmap;
private: std::vector<std::string> parametersvector;
private: void configureNewRefeusDocument();
priv... |
<commit_before>//
// MIT License
// Copyright (c) 2017 Roman Orlov
// See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT
//
#ifndef _TFL_META17_HPP_
#define _TFL_META17_HPP_
#include <cstddef>
#include <utility>
namespace tfl::detail
{
//
// Entity representing one flag with its type and in... |
<commit_before>//
// TestMapScene.cpp
// everlost
//
// Created by Cedric Porter on 14-5-3.
//
//
#include "TestMapScene.h"
USING_NS_CC;
Scene* TestMapScene::createScene()
{
auto scene = Scene::createWithPhysics();
scene->getPhysicsWorld()->setDebugDrawMask(PhysicsWorld::DEBUGDRAW_ALL);
auto lay... |
<commit_before>// Copyright 2017 Global Phasing Ltd.
#ifndef GEMMI_VERSION_HPP_
#define GEMMI_VERSION_HPP_
#define GEMMI_VERSION "0.1.2"
#endif
<commit_msg>bump version before uploading to PyPI<commit_after>// Copyright 2017 Global Phasing Ltd.
#ifndef GEMMI_VERSION_HPP_
#define GEMMI_VERSION_HPP_
#define GEMMI_VE... |
<commit_before>#pragma once
#ifndef IBOTPP_LOADER_HPP
#define IBOTPP_LOADER_HPP
#include <string>
#include <boost/container/vector.hpp>
#include <clang/CodeGen/CodeGenAction.h>
#include <clang/Driver/Compilation.h>
#include <clang/Driver/Driver.h>
#include <clang/Frontend/CompilerInstance.h>
#include <clang/Frontend/C... |
<commit_before>/// \file kernel/userver.hh
/// \brief Definition of the UServer class.
#ifndef KERNEL_USERVER_HH
# define KERNEL_USERVER_HH
# include <cstdarg>
# include <sstream>
# include <libport/config.h>
# if LIBPORT_HAVE_WINDOWS_H
// Without this, windows.h may include winsock.h, which will conflict with
// w... |
<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>#pragma once
/*
** Copyright (C) 2012 Aldebaran Robotics
** See COPYING for the license
*/
#ifndef _QITYPE_DETAILS_FUNCTIONTYPE_HXX_
#define _QITYPE_DETAILS_FUNCTIONTYPE_HXX_
#include <qitype/genericvalue.hpp>
#include <qitype/details/bindtype.hxx>
namespace qi
{
inline CallableType::CallableType... |
<commit_before>/*$Id$
*
* This source file is a part of the Berlin Project.
* Copyright (C) 1999 Stefan Seefeld <stefan@berlin-consortium.org>
* http://www.berlin-consortium.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* Lic... |
<commit_before>
#include <map.hpp>
#include <datasource_cache.hpp>
#include <font_engine_freetype.hpp>
#include <agg_renderer.hpp>
#include <filter_factory.hpp>
#include <color_factory.hpp>
#include <image_util.hpp>
#include <iostream>
using namespace mapnik;
int main ( int argc , char** argv)
{
if (argc !=... |
<commit_before>
#include <iostream>
#include "drake/systems/LCMSystem.h"
#include "drake/systems/LinearSystem.h"
#include "drake/systems/cascade_system.h"
#include "drake/systems/plants/BotVisualizer.h"
#include "drake/systems/plants/RigidBodySystem.h"
#include "QuadrotorInput.h"
#include "QuadrotorOutput.h"
using na... |
<commit_before>namespace W
{
template <typename T>
class Bind : public Thing {
public:
};
class Result : public Thing {
};
class Thing {
public:
virtual const Result& release();
virtual Bind<Thing> clone() = 0;
};
class Container : public Thing {
public:
... |
<commit_before>#include <float.h>
#include "reductions.h"
#include "multiclass.h"
#include "cost_sensitive.h"
#include "cb.h"
#include "cb_algs.h"
#include "rand48.h"
#include "bs.h"
using namespace LEARNER;
namespace CBIFY {
struct cbify {
size_t k;
size_t tau;
float epsilon;
size_t counter... |
<commit_before>#pragma once
#include <cstdint>
#include <utility>
#include <vector>
#include <string>
#include "sequence/Common.hpp"
#include "sequence/details/StringView.hpp"
namespace sequence {
// An Item represents a sequence entry.
// It can be of the following types :
// - INVALID : the item is not in a valid... |
<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 "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop_proxy.h"
#include "remoting/jingle_glue/mock_obj... |
<commit_before>/*
* ccookies.hpp
*
* Created on: 19.11.2014
* Author: andreas
*/
#ifndef CCOOKIES_HPP_
#define CCOOKIES_HPP_
#include <inttypes.h>
#include <rofl/common/crofdpt.h>
#include <rofl/common/cauxid.h>
#include <rofl/common/crandom.h>
#include <rofl/common/openflow/messages/cofmsg_packet_in.h>
#... |
<commit_before>// Copyright 2016 Chirstopher Torres (Raven), L3nn0x
//
// 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... |
<commit_before>/*
Copyright (c) 2017-2018 Andrew Depke
*/
#include "BSDSocket.h"
#if OS_WINDOWS
#pragma comment(lib, "Ws2_32.lib")
#include <Ws2tcpip.h>
#include <memory>
#define RED_INVALID_SOCKET INVALID_SOCKET
#else
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#inc... |
<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 2013, Durachenko Aleksey V. <durachenko.aleksey@gmail.com>
//
// 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.1 of the License, or (at y... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Realm 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://ww... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_OPERATORS_RECONSTRUCTIONS_HH
#define DUNE_GDT_OPERATORS_RECONSTRUCTIONS... |
<commit_before>#include <ompl/base/ScopedState.h>
#include <ompl/base/spaces/RealVectorBounds.h>
#include <ompl/base/spaces/RealVectorStateSpace.h>
#include <ompl/base/spaces/SE2StateSpace.h>
#include <ompl/base/State.h>
#include <ompl/control/planners/syclop/Syclop.h>
#include <ompl/control/planners/syclop/SyclopRRT.h... |
<commit_before>#include "Runtime/World/CScriptBeam.hpp"
#include "Runtime/CStateManager.hpp"
#include "Runtime/Particle/CWeaponDescription.hpp"
#include "Runtime/Weapon/CPlasmaProjectile.hpp"
#include "Runtime/World/CActorParameters.hpp"
#include "TCastTo.hpp" // Generated file, do not modify include path
namespace ... |
<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>/**
* @file lltimectrl.cpp
* @brief LLTimeCtrl base class
*
* $LicenseInfo:firstyear=2001&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2011, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Less... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_OPERATORS_RECONSTRUCTIONS_HH
#define DUNE_GDT_OPERATORS_RECONSTRUCTIONS... |
<commit_before>#include <ompl/base/ScopedState.h>
#include <ompl/base/spaces/RealVectorBounds.h>
#include <ompl/base/spaces/RealVectorStateSpace.h>
#include <ompl/base/spaces/SE2StateSpace.h>
#include <ompl/base/State.h>
#include <ompl/control/planners/syclop/Syclop.h>
#include <ompl/control/planners/syclop/SyclopRRT.h... |
<commit_before>/*************************************************************************
*
* $RCSfile: taskpanelist.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: ssa $ $Date: 2002-03-22 13:08:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<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 "views/animation/bounds_animator.h"
#include "app/slide_animation.h"
#include "base/scoped_ptr.h"
#include "views/view.h"
//... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, 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... |
<commit_before>//
// Name: app.cpp
// Purpose: Example GLUT/vtlib application.
//
// Copyright (c) 2001 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include "SDL.h"
#ifdef __FreeBSD__
# include <ieeefp.h>
#endif
#include "vtlib/vtlib.h"
#include "vtlib/core/Terrain.h"
#include "vt... |
<commit_before>#include <sitkImageFileReader.h>
#include <sitkImageFileWriter.h>
#include <sitkHashImageFilter.h>
#include <sitkCastImageFilter.h>
#include <sitkSubtractImageFilter.h>
#include <sitkStatisticsImageFilter.h>
#include <sitkExtractImageFilter.h>
#include <memory>
#include "ImageCompare.h"
#include "itkExc... |
<commit_before>#include "point.h"
#include <assert.h>
#include "coord.h"
#include "isnan.h" //temporary fix for isnan()
#include "matrix.h"
#include <float.h> // for DBL_MAX
namespace Geom {
/** Scales this vector to make it a unit vector (within rounding error).
*
* The current version tries to handle infinite co... |
<commit_before>
// MCADefrag.cpp
// Implements the main app entrypoint and the cMCADefrag class representing the entire app
#include "Globals.h"
#include "MCADefrag.h"
#include "Logger.h"
#include "LoggerListeners.h"
#include "zlib/zlib.h"
// An array of 4096 zero bytes, used for writing the padding
static const... |
<commit_before>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <string.h>
#include "HBridgeCtrlRequest.h"
#include "HBridgeCtrlIndication.h"
#include "GeneratedTypes.h"
class HBridgeCtrlIndication : public HBridgeCtrlIndicationWrapper
{
public:
HBridgeCtrlIndication(int i... |
<commit_before>/* -*- Mode:C++; c-file-style:"gnu" -*- */
/*
* Copyright 2014 Waseda University, Sato Laboratory
* Author: Takahiro Miyamoto <mt3.mos@gmail.com>
* Jairo Eduardo Lopez <jairo@ruri.waseda.jp>
*
* nnn-nnpt.cc is free software: you can redistribute it and/or modify
* it under the terms o... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "QtUiAsset.h"
#include "AssetAPI.h"
#include <QByteArrayMatcher>
#include <QUrl>
#include "LoggingFunctions.h"
DEFINE_POCO_LOGGING_FUNCTIONS("QtUiAsset")
QtUiAsset::QtUiAsset(AssetAPI *o... |
<commit_before>#ifndef OM_GCSAFE_HPP_
#define OM_GCSAFE_HPP_
namespace Om {
/// GC Safety indicator.
/// `yes` as a parameter indicates that an operation may GC.
/// `no` indicates that it is not safe to GC, operations can not GC.
/// GC unsafe allocations are more likely to fail due to OOM.
enum class GcSafe { yes =... |
<commit_before>#ifndef __HOST_IPMI_DCMI_HANDLER_H__
#define __HOST_IPMI_DCMI_HANDLER_H__
#include <map>
#include <string>
#include <vector>
#include <sdbusplus/bus.hpp>
#include "nlohmann/json.hpp"
namespace dcmi
{
enum Commands
{
// Get capability bits
GET_CAPABILITIES = 0x01,
GET_POWER_LIMIT = 0x03,
... |
<commit_before>/* PCDM Login Manager:
* Written by Ken Moore (ken@pcbsd.org) 2012/2013
* Copyright(c) 2013 by the PC-BSD Project
* Available under the 3-clause BSD license
*/
#include <QApplication>
#include <QTranslator>
#include <QLocale>
#include <QDesktopWidget>
#include <QFile>
#include <QSplashScreen>
#includ... |
<commit_before>/// \file Buffer/main.cpp
/// Contains the main code for the Buffer.
#include <fcntl.h>
#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <cstdio>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include "../util/dtsc.h" //DTSC support
#include "../util/sock... |
<commit_before>#include "Arduino.h"
#include "ButtonState.h"
ButtonState::ButtonState(int pin)
{
pinMode(pin, INPUT_PULLUP);
_pin = pin;
_state = HIGH;
_lastState = HIGH;
_startHold = 0;
_holdDelay = 20;
_allow = false;
_dSwitch = -1;
}
void ButtonState::observer()
{
_state = digitalRead(_pin);
... |
<commit_before>#include <iostream>
#include <fstream>
#include <string>
#include <cctype>
using namespace std;
int main(int argc, char *argv[])
{
if(argc==1) //quit if no argument
{
cerr<<"Usage: "<<argv[0]<<" filename[s]\n";
exit(EXIT_FAILURE);
}
string str,str1;
for(int file=1;file<argc;file++)
{
i... |
<commit_before>//===- Writer.cpp ---------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>/* Copyright (C) 2013 BMW Group
* Author: Manfred Bathelt (manfred.bathelt@bmw.de)
* Author: Juergen Gehring (juergen.gehring@bmw.de)
* 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 "Util/Log.hpp"
#include "MainWindow.hpp"
#include "Manager/Managers.hpp"
#include "Manager/RenderManager.hpp"
#include <GL/glew.h>
#include <GLFW/glfw3.h>
MainWindow* MainWindow::instance = nullptr;
void WindowSizeCallback(GLFWwindow* window, int width, int height);
MainWindow::MainWindow(int ... |
<commit_before>// Framework-specific I2C methods, for Arduino and Particle devices
#if defined(ARDUINO) || defined(SPARK)
#ifdef ARDUINO
#include "Arduino.h"
#include <Wire.h>
#endif
#ifdef SPARK
#include "application.h"
#endif
#include "I2CDevice.h"
int8_t I2CDevice::readBytes(uint8_t regAddr, uint8_t... |
<commit_before>#include <cstdlib>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <functional>
#ifdef ENABLE_MPI
#include <mpi.h>
#endif
#include "Tools/date.h"
#include "Tools/general_utils.h"
#include "Tools/Display/bash_tools.h"
#include "Tools/Exception/exception.hpp"
#include "Tools/system_f... |
<commit_before>#include "LouvainSimplifier.h"
#include <Graph.h>
#include <Louvain.h>
#include <iostream>
using namespace std;
LouvainSimplifier::LouvainSimplifier(int _max_levels) : max_levels(_max_levels) {
keepHashtags(true);
keepLinks(false);
}
bool
LouvainSimplifier::apply(Graph & target_graph, time_t star... |
<commit_before>//
// WinAPI
//
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <Windows.h>
#include <SetupAPI.h>
#include <Shlwapi.h>
#include <initguid.h>
#include <winioctl.h>
#include "XUSB.h"
//
// STL
//
#include <string>
#include <codecvt>
#include <locale>
#include <map>
#include <iostream>
#include <fs... |
<commit_before>// Copyright 2013 The Flutter 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 "pointer_injector_delegate.h"
#include "flutter/fml/logging.h"
namespace flutter_runner {
using fup_Config = fuchsia::ui::pointer... |
<commit_before>//===-- RegisterContextPOSIX_arm.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 2009 Klarälvdalens Datakonsult AB
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 2 of
the License or (at your option) version 3 or any later ve... |
<commit_before>#include "Board.h"
#include "Pawn.h"
#include "Rook.h"
#include "Knight.h"
#include "Bishop.h"
#include "Queen.h"
#include "King.h"
namespace Chess {
Board::Board() {
for (int x = 0; x < 8; x++) {
for (int y = 0; y < 8; y++) {
pieces[x][y] = nullptr;
}
}
// Black pawns
for (int x = 0... |
<commit_before>#include "Board.h"
#include "Pawn.h"
#include "Rook.h"
#include "Knight.h"
#include "Bishop.h"
#include "Queen.h"
#include "King.h"
#include <iostream>
#include <sstream>
namespace Chess {
Board::Board() {
for (int x = 0; x < 8; x++) {
for (int y = 0; y < 8; y++) {
pieces[x][y] = nullptr;
}... |
<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>//
// Copyright (C) 2008 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2008 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
//////////////////////////////////////////////////////////////////////////////
// Author: Alexander... |
<commit_before>//
// Copyright (c) 2018 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//
#include "nf_networking_sntp.h"
static const CLR_RT_MethodHandler method_lookup[] =
{
NULL,
Library_nf_networking_sntp_nanoFramework_Networking_Sntp::Start__... |
<commit_before>/*
* Copyright (c) 2008, Willow Garage, 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
* ... |
<commit_before>#include <iostream>
#include <map>
#include <vector>
#include <deque>
#include <list>
#include <array>
#include <string>
#include <sstream>
#include <algorithm>
const int field_size = 32;
const int stone_size = 8;
const int empty_val = 256;
const int filled_val = 257;
const int normal = 0,
rot90 =... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>#include "console.h"
#include "sofa/helper/Utils.h"
#ifndef WIN32
# include <unistd.h> // for isatty()
#endif
namespace sofa {
namespace helper {
Console::ColorsStatus Console::s_colorsStatus = Console::ColorsDisabled;
#ifdef WIN32
static HANDLE s_console = NULL;
static Cons... |
<commit_before>//
// George 'papanikge' Papanikolaou
// CEID Advance Algorithm Design Course 2014
// Benchmarking of Minimum Spanning Tree algorithms with Boost & LEDA
//
#include <iostream>
#include <vector>
#include <map>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <ctime>
#include <LEDA/graph/gr... |
<commit_before>#include "CounterpointNode.hpp"
#include "System.hpp"
#include "Conversions.hpp"
#include <boost/numeric/ublas/operation.hpp>
namespace csound
{
CounterpointNode::CounterpointNode() : generationMode(GenerateCounterpoint),
musicMode(Counterpoint::Aeolian),
species(Counterpoint::... |
<commit_before>/* -*- Mode: C++; tab-width: 4 -*- */
/* vi: set ts=4 sw=4 noexpandtab: */
/*******************************************************************************
* FShell 2
* Copyright 2009 Michael Tautschnig, tautschnig@forsyte.de
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you... |
<commit_before>#pragma once
#include "IValidator.hpp"
#include "../StructuresCommon.hpp"
class QString;
namespace data{
class TextFieldValidator : public IFieldValidator<String> {
public:
TextFieldValidator();
TextFieldValidator( size_t minLength, size_t maxLength );
virtual bool isValid(const String &da... |
<commit_before>// This file is part of the dune-stuff project:
// https://users.dune-project.org/projects/dune-stuff/
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_LA_SOLVER_STUFF_HH
#define DUNE_STUFF_LA_SOLVER_STUF... |
<commit_before>/*
* Copyright (c) 2016, Simone Margaritelli <evilsocket at gmail dot com>
* 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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: MasterPagesPanel.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: rt $ $Date: 2007-04-03 16:22:28 $
*
* The Contents of this file ... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#include <BALL/VIEW/GUI/DIALOGS/colorMeshDialog.h>
#include <BALL/SYSTEM/path.h>
#include <BALL/DATATYPE/regularData3D.h>
#include <BALL/SYSTEM/file.h>
#include <BALL/VIEW/DATATYPE/colorTable.h>
#include <BALL/VIEW/GUI/KERNEL/mainControl.h>
#includ... |
<commit_before>/*!
* This file is part of CameraPlus.
*
* Copyright (C) 2012-2014 Mohammed Sameer <msameer@foolab.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 Foundation; either
* v... |
<commit_before>#ifndef _SMRH_
#define _SMRH_
#include <vector>
#include <atomic>
#include <algorithm>
namespace DNFC
{
/**
* HazardPointer default policy
*
*/
class DefaultHazardPointerPolicy
{
public:
const static int BlockSize = 4;
};
template <class T, class Policy = DefaultHazardPointerPolicy>
class Hazard... |
<commit_before>#include <sstream>
#include "StorageFlattening.h"
#include "IRMutator.h"
#include "IROperator.h"
#include "Scope.h"
#include "Bounds.h"
#include "Parameter.h"
namespace Halide {
namespace Internal {
using std::ostringstream;
using std::string;
using std::vector;
using std::map;
using std::pair;
using ... |
<commit_before>
// LogMainView.cpp : CLogMainView 类的实现
//
#include "stdafx.h"
// SHARED_HANDLERS 可以在实现预览、缩略图和搜索筛选器句柄的
// ATL 项目中进行定义,并允许与该项目共享文档代码。
#ifndef SHARED_HANDLERS
#include "LogCC.h"
#endif
#include "LogCCDoc.h"
#include "LogMainView.h"
#include "ILogQuery.h"
#include "LogQueryResult.h"
#include "LogItem.h"
... |
<commit_before>/*
* Copyright 2013 Matthew Harvey
*
* 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 applicabl... |
<commit_before>//
// PROJECT: Aspia
// FILE: category/category_logical_drive.cc
// LICENSE: Mozilla Public License Version 2.0
// PROGRAMMERS: Dmitry Chapyshev (dmitry@aspia.ru)
//
#include "base/files/logical_drive_enumerator.h"
#include "base/strings/unicode.h"
#include "category/categ... |
<commit_before>///
/// @file test.cpp
/// @brief bool test_ParallelPrimeSieve(); runs sieving tests to
/// ensure that ParallelPrimeSieve (and PrimeSieve) objects
/// produce correct results.
///
/// Copyright (C) 2013 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BS... |
<commit_before>/*
* Copyright (c) 2007-2008 The Florida State University
* 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
* n... |
<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 Li... |
<commit_before>//===-- LibCxxOptional.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>#include "ScreenSpaceFluidRenderer.h"
#include <iostream>
#include <glm/ext.hpp>
#include <glbinding/gl/enum.h>
#include <glbinding/gl/bitfield.h>
#include <glbinding/gl/functions.h>
#include <gloperate/painter/CameraCapability.h>
#include <gloperate/painter/PerspectiveProjectionCapability.h>
#includ... |
<commit_before>#include "FileCreator.h"
#include "ErrorCodes.h"
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <folly/Conv.h>
namespace facebook {
namespace wdt {
bool FileCreator::setFileSize(int fd, size_t fileSize) {
struct stat fileStat;
if (fstat(fd, &fileStat) ... |
<commit_before>/*
Copyright 2005-2007 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
*/
/*************************************************************************************************/
#include <GG... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.