text stringlengths 54 60.6k |
|---|
<commit_before>/* cclive
* Copyright (C) 2013 Toni Gundogdu <legatvs@gmail.com>
*
* This file is part of cclive <http://cclive.sourceforge.net/>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Soft... |
<commit_before>// --------------------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
// --------------------------------------------------------------------------------------------------------------------
//... |
<commit_before>#include "libircppclient.hpp"
/*
* TODO: These functions should return a value instead
* of nothing.
* Put returned errors in some kind of error stream?
*/
/*
* While there shouldn't be a reason to not pass an
* argument to a command that requires it, it may still happen.
* Return errors for tho... |
<commit_before>
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in th... |
<commit_before>#ifndef __PROXY_HPP__
#define __PROXY_HPP__
#include <string>
class Proxy : public Notifier , public IProxy
{
public:
//static const std::string NAME = "Proxy";
/**
* Constructor
*/
Proxy( const std::string & proxyName, void * data = NULL )
{
... |
<commit_before><commit_msg>fix copy ctor<commit_after><|endoftext|> |
<commit_before>/***************************************************************************
* Copyright (c) 2012 Imetric 3D GmbH *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFPluginLoader.cpp
// @Author : LvSheng.Huang
// @Date :
// @Module : NFPluginLoader
//
// -------------------------------------------------------... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFPluginLoader.cpp
// @Author : LvSheng.Huang
// @Date :
// @Module : NFPluginLoader
//
// -------------------------------------------------------... |
<commit_before>#include "Table.h"
#include <cstdarg>
#include <assert.h>
extern "C" {
Table* table_new(const char* name) {
return new Table(name);
}
void table_delete(Table* t) {
delete t;
}
size_t table_register_column(Table* t, ColumnType type, const char* name) {
return t->RegisterColumn(type, name);
}
size_... |
<commit_before>// Copyright 2017 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// +build
#define SYZ_EXECUTOR
#include "common_akaros.h"
#include "executor_posix.h"
#include "syscalls_akaros.h"
#include "executor.h"... |
<commit_before>#include "dataitem.h"
Results::Results(){
}
Results::~Results(){
}
void Results::clear(){
GrowthRate.clear();
GrowthErr.clear();
AppcCa.clear();
AppcCaErr.clear();
}
DataItem::DataItem()
{
}
DataItem::~DataItem()
{
}
bool DataItem::is_valid(){
if( (DripInt.length() == DripErr.le... |
<commit_before>/*
Copyright (c) 2007, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>#include <assert.h>
#include "Box2D/Box2D.h"
#include "ev_box2d.h"
struct ev_world {
};
ev_world* ev_world_create(void)
{
b2World *world = new b2World(b2Vec2(0,-9.8f));
return (ev_world*)world;
}
void ev_world_destroy(ev_world *world)
{
assert( world != NULL );
delete (b2World*)world... |
<commit_before>/******************************************************************************
Unified text output interface; designed for wrapping Bitmap & TrueType
font objects to co-exist under one roof.
Copyright (c) 2013 Jeffrey Carpenter
All rights reserved.
******************************************... |
<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>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libdui.
**
** If you have questions regarding the use ... |
<commit_before>// Copyright 2015 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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 b... |
<commit_before>/*
* LibusbDevice.cpp
*
* Copyright (C) ST-Ericsson SA 2011
* Authors: Srimanta Panda <srimanta.panda@stericsson.com>,
* Ola Borgelin <ola.borgelin@stericsson.com>,
* Karin Hedlund <karin.hedlund@stericsson.com>,
* Markus Andersson <markus.m.andersson@stericsson.com> for... |
<commit_before>//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant... |
<commit_before>// ScriptOp.cpp
/*
* Copyright (c) 2010, Dan Heeks
* This program is released under the BSD license. See the file COPYING for
* details.
*/
#include "stdafx.h"
#include <TopoDS_Edge.hxx>
#include "ScriptOp.h"
#include "ProgramCanvas.h"
#include "Program.h"
#include "interface/HeeksObj.h"
#include "t... |
<commit_before>// Onut
#include <onut/Files.h>
#include <onut/Settings.h>
#include <onut/Window.h>
// STL
#include <fstream>
OSettingsRef oSettings = OMake<OSettings>();
namespace onut
{
Settings::Settings()
{
m_isDirty = false;
m_isRunning = false;
}
Settings::~Settings()
{
... |
<commit_before>#include "maCrawler.h"
#include "maAdapt.h"
#include "maLayer.h"
#include <PCU.h>
#include <apfCavityOp.h>
namespace ma {
void syncLayer(Crawler* c, Crawler::Layer& layer)
{
Mesh* m = c->adapter->mesh;
PCU_Comm_Begin();
for (size_t i = 0; i < layer.size(); ++i) {
Entity* e = layer[i];
if ... |
<commit_before>#include "TrackingWorker.hpp"
#include <boost/chrono/duration.hpp>
#include <ros/console.h>
TrackingWorker::TrackingWorker(IPositionReceiver *receiver)
{
assert(receiver != 0);
this->receiver = receiver;
stop = false;
thread = new boost::thread(boost::bind(&TrackingWorker::run, this));
}
Track... |
<commit_before>// Copyright 2016 Zheng Xian Qiu
#include "Seeker.h"
namespace Seeker {
namespace UI {
// Global Object
Event* Event::_instance = Event::Instance();
Event* Event::Instance() {
if(!_instance) {
_instance = new Event;
}
return _instance;
}
Event::Event()... |
<commit_before>/*
* Copyright (c) 2015 Srijan R Shetty <srijan.shetty+code@gmail.com>
*
* 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>/*=========================================================================
Program: Visualization Library
Module: DSMapper.cc
Language: C++
Date: $Date$
Version: $Revision$
This file is part of the Visualization Library. No part of this file or its
contents may be copied, repro... |
<commit_before>/*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before>#include "Player.h"
#include "Song.h"
#include "Pattern.h"
#include "ITrackState.h"
#include "PatternRow.h"
#include "SequenceRow.h"
#include "Sequence.h"
#include "Macro.h"
#include "SDL.h"
#include <cstdio>
IPlayer::IPlayer(Song& song)
: Lockable(), mSong(song), state()
{
trackState = new ITrackStat... |
<commit_before>// Chemfiles, a modern library for chemistry file reading and writing
// Copyright (C) 2015-2016 Guillaume Fraux and contributors
//
// 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... |
<commit_before>/* Copyright (c) 2013 "Naftoreiclag" https://github.com/Naftoreiclag
*
* Distributed under the MIT License (http://opensource.org/licenses/mit-license.html)
* See accompanying file LICENSE
*/
#include "util/Sysout.h"
#include "Game.h"
#include "Luastuff.h"
#include "Potato.h"
// Print lua errors... |
<commit_before>#include <stdio.h>
#include <sstream>
#include "liblogger.h"
namespace liblogger
{
LogTail::LogTail(size_t length)
{
m_length = length;
}
void LogTail::GetName(std::string *str)
{
*str = "Tail";
}
void LogTail::GetDesc(std::string *str)
{
*str = "Keeps Last 'n' Messages in memory";
}
void LogTai... |
<commit_before>#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "physics/solar_system.hpp"
namespace principia {
using astronomy::ICRFJ2000Equator;
namespace physics {
class EclipseTest : public testing::Test {
protected:
EclipseTest() {
solar_system_1950_.Initialize(
SOLUTION_DIR ... |
<commit_before>#include "geometry/epoch.hpp"
#include "geometry/named_quantities.hpp"
#include "geometry/grassmann.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "integrators/symplectic_runge_kutta_nyström_integrator.hpp"
#include "physics/solar_system.hpp"
#include "quantities/elementary_functions.hpp... |
<commit_before>#include "geometry/epoch.hpp"
#include "geometry/named_quantities.hpp"
#include "geometry/grassmann.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "integrators/symplectic_runge_kutta_nyström_integrator.hpp"
#include "physics/solar_system.hpp"
#include "quantities/elementary_functions.hpp... |
<commit_before>#include "NTClient.h"
using namespace std;
NTClient::NTClient() {
hasError = false;
firstConnect = true;
connected = false;
}
bool NTClient::login(string username, string password) {
uname = username;
pword = password;
bool ret = true;
string data = string("username=");
data += uname;
data += "... |
<commit_before>#include "NTClient.h"
using namespace std;
NTClient::NTClient(int interval, double _accuracy) {
typeIntervalMS = interval;
accuracy = _accuracy;
hasError = false;
firstConnect = true;
connected = false;
lessonLen = 0;
lidx = 0;
log = new NTLogger("(Not logged in)");
}
NTClient::~NTClient() {
de... |
<commit_before>#include "NTClient.h"
using namespace std;
NTClient::NTClient(int interval, double _accuracy) {
typeIntervalMS = interval;
accuracy = _accuracy;
hasError = false;
firstConnect = true;
connected = false;
lessonLen = 0;
lidx = 0;
log = new NTLogger("(Not logged in)");
}
NTClient::~NTClient() {
de... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011-2014.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================================... |
<commit_before>#include "Transition.h"
#include "RenderState.h"
#include "MaskedSprite.h"
#include "core/oxygine.h"
#include "flow.h"
#if OXYGINE_RENDERER>2
# include "TweenAlphaFade.h"
#endif
namespace oxygine
{
namespace flow
{
Transition::Transition() : _done(false), _singleDirection(false), _f... |
<commit_before>/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* _______ _ *
* ( ____ \ ( \ |\ /| *
* | ( \/ | ( ( \ / ) *
* ... |
<commit_before>/**
* @file asynclog.cpp
* @brief This defines the `AsyncLog` class.
*/
#include "mapcache.hpp"
/**
* @details This obtains a reference to the emit method in the passed in
* `EventEmitter` object and initialises the mutex and async watcher.
*
* @param emitter A Node `EventEmitter` handle
*/
Asy... |
<commit_before>#include "Preheat.h"
namespace cura
{
void Preheat::setConfig(MeshGroup& settings)
{
for (int extruder_nr = 0; extruder_nr < settings.getExtruderCount(); extruder_nr++)
{
assert(settings.getExtruderTrain(extruder_nr) != nullptr);
ExtruderTrain& extruder_train = *settings.getExt... |
<commit_before>/*
* Load balancer for AddressList.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "balancer.hxx"
#include "cache.hxx"
#include "address_list.hxx"
#include "net/SocketAddress.hxx"
#include "failure.hxx"
#include "bulldog.h"
#include "AllocatorPtr.hxx"
#include <assert.h>
#include <stdbool.h... |
<commit_before>#include <cmath>
#include <ctime>
#include <iostream>
#include <iomanip>
#include <random>
#include <set>
#include <vector>
#include <unordered_map>
namespace {
inline size_t GenerateMaskWithRightOnes(size_t onesCount) {
return (1ull << onesCount) - 1ull;
}
class TCacheSet {
public:
TCacheSet... |
<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 LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>// utility functions
//
#include "Utility.h"
#include "Sum.h"
#include "Product.h"
#define PHRED_MAX 99999.0 // max phred should be ~ 71141.779, so PHRED_MAX effectively means "1.0"
using namespace std;
short qualityChar2ShortInt(char c) {
return static_cast<short>(c) - 33;
}
long double qualityC... |
<commit_before>/*
* Copyright 2011-2019 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include "bgfx_p.h"
#if BGFX_CONFIG_RENDERER_OPENGLES
# include "renderer_gl.h"
# if BGFX_USE_HTML5
#include <emscripten/emscripten.h>
#include <emscripten/html5.h>... |
<commit_before>#include "stdafx.h"
#include <boost/lexical_cast.hpp>
#include "operation.h"
#include "operations/post_operation.h"
#include "operations/put_operation.h"
#include "operations/erase_operation.h"
#include "internal_transaction.h"
#include "internal_datastore.h"
namespace You {
namespace DataStore {
namesp... |
<commit_before>//@author A0097630B
#include "stdafx.h"
#include "query_parser.h"
using Assert = Microsoft::VisualStudio::CppUnitTestFramework::Assert;
namespace You {
namespace NLP {
namespace UnitTests {
using You::NLP::EDIT_QUERY;
TEST_CLASS(EditQueryTests) {
public:
TEST_METHOD(fieldsBinaryOr) {
EDIT_QUERY::F... |
<commit_before>#include "cssysdef.h"
#include "awstimer.h"
#include "awstxtbx.h"
#include "ivideo/graph2d.h"
#include "ivideo/graph3d.h"
#include "ivideo/fontserv.h"
#include "csutil/scfstr.h"
#include "iutil/evdefs.h"
#include "csutil/csctype.h"
#include <stdio.h>
const int awsTextBox::fsNormal = 0x0;
const int awsT... |
<commit_before>#include <unistd.h>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <vector>
#include <ctime>
#include <string>
#include <climits>
#include "myers.h"
using namespace std;
int readFastaSequences(const char* path, vector< vector<unsigned char> >* seqs,
unsigned ch... |
<commit_before>#include "bytecode.h"
#include <assert.h>
#include <stdint.h>
class BytecodeException: public std::exception {};
static void put_uint16(std::vector<unsigned char> &obj, uint16_t x)
{
obj.push_back(static_cast<unsigned char>(x >> 8) & 0xff);
obj.push_back(static_cast<unsigned char>(x & 0xff));
... |
<commit_before>#include <stdio.h>
#include <string>
#include <boost/python.hpp>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <string.h>
#include <math.h>
#include <vector>
#include <boost/random.hpp>
#include <b... |
<commit_before>#include "graphics/gl_ext.h"
PFNGLBINDBUFFERPROC glBindBuffer;
PFNGLDELETEBUFFERSPROC glDeleteBuffers;
PFNGLGENBUFFERSPROC glGenBuffers;
PFNGLBUFFERDATAPROC glBufferData;
PFNGLCREATEPROGRAMPROC glCreateProgram;
PFNGLLINGPROGRAMPROC glLinkProgram;
PFNGLGETATTRIBLOCATION glGetAttribLocation;
PFNG... |
<commit_before>/**
* Copyright (c) 2016 Weitian Leung
*
* This file is part of LyricsX.
*
* This file is distributed under the MIT License.
* See the LICENSE file for details.
*
*/
#include "application.h"
#include <QSettings>
#include <QIcon>
#include <QTranslator>
#include <QLocale>
#include <QLibraryInfo>
... |
<commit_before>#include <armadillo>
#include "settings.h"
#include "RigidAlignment.h"
#include "landmark/LandmarkIO.h"
#include "mesh/MeshIO.h"
#include "mesh/Mesh.h"
#include "mesh/MeshNeighbors.h"
#include "mesh/MeshNeighborsIO.h"
#include "mesh/MeshOneRingNeighborsBuilder.h"
#include "mesh/MeshGeodesicNeighborsBu... |
<commit_before>/*
Copyright (C) 2007-2008 Tanguy Krotoff <tkrotoff@gmail.com>
Copyright (C) 2008 Lukas Durfina <lukas.durfina@gmail.com>
Copyright (C) 2009 Fathi Boudra <fabo@kde.org>
Copyright (C) 2009-2011 vlc-phonon AUTHORS <kde-multimedia@kde.org>
Copyright (C) 2011-2013 Harald Sitter <sitter@kd... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/*
* Copyright 2014 Cloudius Systems
*/
#include "reactor.hh"
#include "sstring.hh"
#include <iostream>
#include <algorithm>
#include <unordered_map>
#include <queue>
#include <bitset>
#include <limits>
#include <cctype>
class char_filter {
using uchar = unsigned char;
public:
template <typen... |
<commit_before>//
// sync_client.cpp
// ~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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)
//
#include <iostream>
#i... |
<commit_before>//
// sync_client.cpp
// ~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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)
//
#include <iostream>
#i... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//==================================================... |
<commit_before>/**
* @file
* @copyright defined in eosio/LICENSE.txt
*/
#include <appbase/application.hpp>
#include <eosio/chain_plugin/chain_plugin.hpp>
#include <eosio/http_plugin/http_plugin.hpp>
#include <eosio/net_plugin/net_plugin.hpp>
#include <eosio/producer_plugin/producer_plugin.hpp>
#include <fc/log/l... |
<commit_before>//
// Created by kyle on 10/12/16.
//
#include "tansa/jocsParser.h"
namespace tansa {
const std::string Jocs::HOME_KEY = "startPosition";
const std::string Jocs::DRONE_KEY = "drones";
const std::string Jocs::ID_KEY = "id";
const std::string Jocs::CHOREOGRAPHY_KEY = "chor";
const std::string Jocs::STARTPO... |
<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/browser/printing/print_preview_message_handler.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browse... |
<commit_before>/* cclive
* Copyright (C) 2013 Toni Gundogdu <legatvs@gmail.com>
*
* This file is part of cclive <http://cclive.sourceforge.net/>.
*
* 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 Fo... |
<commit_before><commit_msg>isfinite is supposed to be a macro for both double and float<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2012 Bram van der Kroef
*
* This file is part of LESS CSS Compiler.
*
* LESS CSS Compiler 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, o... |
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libvisio 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 ... |
<commit_before>#include "graph3d.h"
#include <math.h>
#include <memory.h>
#include <stdlib.h>
#include "lib/gfx/bitmap.h"
struct Vector2
{
float x, y;
};
struct Vector3
{
float x, y, z;
};
struct Point
{
Vector3 src; // Original co-ords passed to AddPoint
Vector3 dst; ... |
<commit_before>// -*-Mode: C++;-*-
// $Id$
// * BeginRiceCopyright *****************************************************
//
// Copyright ((c)) 2002-2007, Rice University
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the ... |
<commit_before>#include <iostream>
#include <unordered_set>
#include <vg/io/stream.hpp>
#include "chunker.hpp"
#include "algorithms/subgraph.hpp"
namespace vg {
using namespace std;
PathChunker::PathChunker(const PathPositionHandleGraph* graph) : graph(graph) {
}
PathChunker::~PathChunker() {
}
void PathChun... |
<commit_before>/* LiteSQL - Common routines for backends
*
* The list of contributors at http://litesql.sf.net/
*
* See LICENSE for copyright information. */
#include <map>
#include "compatibility.hpp"
#include "litesql/backend.hpp"
#include "litesql/string.hpp"
#include "litesql/types.hpp"
#include "mysql.hp... |
<commit_before>/*
Implementation of the Compiler class.
*/
#include <cctype> //character comparison functions
#include <stdexcept>
#include "compiler.hh"
namespace ds_compiler {
const size_t Compiler::NUM_REGISTERS = 8;
const char Compiler::ERR_CHAR = '\0';
const std::unordered_set<char> Compiler::AD... |
<commit_before>/****************************************************************************
This file is part of the QtMediaHub project on http://www.qtmediahub.com
Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).*
All rights reserved.
Contact: Girish Ramakrishnan girish@forwardbias.in
Contact: N... |
<commit_before>// Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University of
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Hei... |
<commit_before>#include "itkCommandLineArgumentParser.h"
#include "CommandLineArgumentHelper.h"
#include "itkImage.h"
#include "itkResampleImageFilter.h"
#include "itkNearestNeighborInterpolateImageFunction.h"
#include "itkBSplineInterpolateImageFunction.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter... |
<commit_before>// Copyright (c) 2014-2015 The Dash developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "masternode-sync.h"
#include "masternode-payments.h"
#include "masternode.h"
#include "... |
<commit_before>/* Copyright 2012-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
#include "watchman.h"
#include "make_unique.h"
static int proc_pid;
static uint64_t proc_start_time;
void w_clockspec_init(void) {
struct timeval tv;
proc_pid = (int)getpid();
if (gettimeofday(&tv, NUL... |
<commit_before>/*
* Copyright (C) 2020 Nagisa Sekiguchi
*
* 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>
/*
This file is part of cpp-ethereum.
cpp-ethereum 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.
cpp-ethereum is di... |
<commit_before>namespace LongestPalindromicSubstring {
// this is a dp solution, both time and space complexity are O(n^2)
class Solution1 {
public:
string longestPalindrome(string s) {
int len = s.size();
bool dp[len][len];
memset(dp, 0, len... |
<commit_before>#include "apfMPAS.h"
#include <apfMesh2.h>
#include <apfNumbering.h>
#include <diffMC/src/parma_ghostOwner.h>
#include <netcdf>
namespace apf {
using namespace netCDF;
struct MpasFile
{
~MpasFile()
{
delete [] x;
delete [] y;
delete [] z;
delete [] conn;
}
int elements;
int n... |
<commit_before>#include "apfMPAS.h"
#include <apfMesh2.h>
#include <apfNumbering.h>
#include <diffMC/src/parma_ghostOwner.h>
#include <netcdf>
namespace apf {
using namespace netCDF;
struct MpasFile
{
~MpasFile()
{
delete [] x;
delete [] y;
delete [] z;
delete [] conn;
}
int elements;
int n... |
<commit_before><commit_msg>Resolves: fdo#39348 toggling grammar checkbox deletes sentence<commit_after><|endoftext|> |
<commit_before>#pragma once
/*
** Copyright (C) 2013 Aldebaran Robotics
** See COPYING for the license
*/
#ifndef _QI_TYPE_DETAIL_ANYREFERENCE_HPP_
#define _QI_TYPE_DETAIL_ANYREFERENCE_HPP_
#include <vector>
#include <map>
#include <stdexcept>
#include <cmath>
#include <qi/atomic.hpp>
#include <qi/types.hpp>
#inclu... |
<commit_before>#include <vector>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <ctime>
#include <boost/rational.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/timer.hpp>
#include "timsort.hpp"
using namespace gfx;
enum state_t {
sorted, randomized, reversed
};
... |
<commit_before>// MFEM Example 33
//
// Compile with: make ex33
//
// Sample runs: ex33 -m ../data/square-disc.mesh -alpha 0.33 -o 2
// ex33 -m ../data/star.mesh -alpha 0.99 -o 3
// ex33 -m ../data/inline-quad.mesh -alpha 0.2 -o 3
// ex33 -m ../data/disc-n... |
<commit_before>#include "luacpp/register_any_function.hpp"
#include "luacpp/meta_table.hpp"
#include "luacpp/sink_into_lua.hpp"
#include "luacpp/pcall.hpp"
#include "luacpp/sink_from_lua.hpp"
#include <silicium/asio/tcp_acceptor.hpp>
#include <silicium/asio/writing_observable.hpp>
#include <silicium/observable/end.hpp>... |
<commit_before>// Copyright 2017 Google, Inc.
//
// simple JPEG compressor or re-compressor
//
// usage:
// sjpeg input.{jpg,png} [-o output.jpg] [-q quality]
//
// 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 ... |
<commit_before>//
// GameScene.cpp
// ItoToshi
//
// Created by Mihyaeru on H27/05/23.
//
//
#include "GameScene.h"
USING_NS_CC;
Scene* GameScene::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = GameScene::crea... |
<commit_before>/*---------------------------------------------------------------------------*\
* OpenSG *
* *
* ... |
<commit_before>//
// Created by fred.nicolson on 01/10/18.
//
#include <frnetlib/TcpListener.h>
#include <iostream>
#include <frnetlib/SocketSelector.h>
#include <frnetlib/Http.h>
#include <frnetlib/HttpRequest.h>
#include <frnetlib/HttpResponse.h>
#include <thread>
int main()
{
//Bind to port
auto listener =... |
<commit_before>#include "JavascriptFunction.h"
#include "JavascriptInterop.h"
#include "JavascriptContext.h"
#include "JavascriptException.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
namespace Noesis { namespace Javascript {
////////////////////////////////... |
<commit_before>/*---------------------------------------------------------------------------*\
* OpenSG *
* *
* ... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#include <BALL/VIEW/DIALOGS/pythonHotkeys.h>
#include <qtable.h>
#include <qpushbutton.h>
namespace BALL
{
namespace VIEW
{
PythonHotkeys::PythonHotkeys( QWidget* parent, const char* name, WFlags fl )
: PythonHotkeysData( parent, name, fl ... |
<commit_before>#include <iostream>
#include <regex>
#include <ctime>
#include <Ice/Ice.h>
#include <vlc/libvlc.h>
#include <vlc/vlc.h>
#include "server.h"
class MusicServer : public Player::IMusicServer
{
public:
enum FindBy { Artist, Title, Everything };
MusicServer(const std::string& port);
~MusicServer();
... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkImageMomentsTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2000 National Library of Medicine
All rights reserved... |
<commit_before>// $Id$
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
//#define MAIN
#include "itkExceptionObject.h"
#include <iostream>
#include "itkImage.h"
#include "itkStreamingImageFilter.h"
#include "itkMeanImageFilter.h"
#include "otbImageFileReader.h"
#include "otbImageFileWriter.h"
int ot... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.