text stringlengths 54 60.6k |
|---|
<commit_before>/*************************************************************************
*
* $RCSfile: SwXTextDefaults.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: tl $ $Date: 2002-10-16 06:55:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the followi... |
<commit_before>#include<chrono>
#include<iostream>
#include<mutex>
#include<random>
#include<queue>
#include<thread>
#include"../header/CThreadPool.h"
namespace
{
std::mutex mut;
size_t get()
{
using namespace std;
static mt19937 mu{static_cast<mt19937::result_type>(chrono::high_resolution_clock::now().time_si... |
<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
Permission is hereby granted, free of charge, to ... |
<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-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to ... |
<commit_before>/*
* Conway's Game of Life implementation with less than 1KB code.
* Prototype is developed first with Arduino then ported to ATtiny84A.
*
* Description:
* - cells are displayed on an 8x8 LED matrix
* - initial setup is set through 2 pots (X and Y) and one button to select/unselect a cell
* - sta... |
<commit_before>#define BT_USE_DOUBLE_PRECISION
#include "BulletElement.h"
#include "BulletModel.h"
using namespace std;
namespace DrakeCollision
{
BulletElement::BulletElement(const Matrix4d& T_elem_to_link, Shape shape,
const vector<double>& params)
: Element(T_elem_to_link, s... |
<commit_before>/*
* Copyright (c) 2015 Florian Behrens
*
* 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 appli... |
<commit_before>/*
Filename: algorithm.cpp
Author: Dhruv Somani and Khush Jain
*/
#include <iostream>
#include <sstream>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <cmath>
#include <assert.h>
using namespace std;
vector<string> solvePuzzle(string state);
vector<s... |
<commit_before>/**********************************************************\
tests/SimpleHashTester.cpp
\**********************************************************/
#include "TestSettings.h"
#ifdef TEST_SIMPLE_HASH
#undef NDEBUG
#include "../../momo/HashSet.h"
#include "../../momo/HashMap.h"
#inclu... |
<commit_before>/**
* This file contains a parametrizable unit test for algorithms finding cycles
* in a directed graph.
*/
#include <boost/assign.hpp>
#include <boost/foreach.hpp>
#include <boost/graph/directed_graph.hpp>
#include <boost/graph/graph_traits.hpp>
#include <boost/graph/graphviz.hpp>
#include <boost/gr... |
<commit_before><commit_msg>coverity#982642: add missing break<commit_after><|endoftext|> |
<commit_before><commit_msg>WaE: compile under product and dbgutil modes<commit_after><|endoftext|> |
<commit_before>#include <iostream>
#include <fstream>
#include <iomanip>
#include <vector>
#include <array>
#include <cmath>
using namespace std;
template <typename T>
inline vector<T> read(const string path)
{
vector<T> buf;
std::ifstream ifs(path, ios::binary | ios::ate);
const size_t num_bytes = ifs.tellg();
bu... |
<commit_before>#include "ofxMarkovChain.h"
void MarkovChain::setup(transitionMatrix mat, int _state){
transMat = mat;
state = _state;
}
void MarkovChain::load(string filename){
ofFile file;
if(!file.open(ofToDataPath(filename))){
ofLog(OF_LOG_ERROR) << "Cannot open \"" << filename << "\"";
}
ofBuffer buffer =... |
<commit_before>/*************************************************************************
*
* $RCSfile: xlconst.hxx,v $
*
* $Revision: 1.24 $
*
* last change: $Author: vg $ $Date: 2005-02-21 13:46:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: optab.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2008-01-29 15:32:35 $
*
* The Contents of this file are made ava... |
<commit_before>/*************************************************************************
*
* $RCSfile: optab.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2004-11-26 13:51:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses... |
<commit_before>/*************************************************************************
*
* $RCSfile: xmlwrap.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: nn $ $Date: 2000-12-02 16:27:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before><commit_msg>coverity#1242417 Logically dead code<commit_after><|endoftext|> |
<commit_before>// $Id: openBruker2DFile.C,v 1.2 2000/11/28 17:38:31 anhi Exp $
#include <BALL/MOLVIEW/GUI/DIALOGS/openBruker2DFile.h>
using std::istream;
using std::ostream;
namespace BALL
{
namespace MOLVIEW
{
OpenBruker2DFile::OpenBruker2DFile(QWidget* parent, const char* name)
: FileDialog("Impo... |
<commit_before>/**
* Copyright (C) 2014, BMW Car IT GmbH
* Author: Jonas Sticha (Jonas.Sticha@bmw-carit.de)
*
* This software is licensed under BSD 3-clause License
* (see http://spdx.org/licenses/BSD-3-Clause).
**/
#include "OneShotLatencyMeasurer.h"
#include <sys/mman.h>
#include <rt_tests_support/Logger.h>
#includ... |
<commit_before>#include <Arduino.h>
#define LED_PIN 13
#define IN1_PIN 3
#define IN2_PIN 5
#define IN3_PIN 6
#define IN4_PIN 9
void setup() {
pinMode(LED_PIN,OUTPUT);
pinMode(IN1_PIN,OUTPUT);
pinMode(IN2_PIN,OUTPUT);
pinMode(IN3_PIN,OUTPUT);
pinMode(IN4_PIN,OUTPUT);
}
void loop() {
digitalWrite(LED_PIN,... |
<commit_before>// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
<commit_before>//==================================================
// Copyright (c) 2015 Deividas Kazlauskas
//
// See the file license.txt for copying permission.
//==================================================
/*
* =====================================================================================
*
* ... |
<commit_before>
struct FLV_Pack {
int len;
int buf;
bool isKeyframe;
char * data;
};//FLV_Pack
char FLVHeader[13];
bool All_Hell_Broke_Loose = false;
//checks FLV Header for correctness
//returns true if everything is alright, false otherwise
bool FLV_Checkheader(char * header){
if (header[0] != 'F') return... |
<commit_before>/*
* Copyright (c) 2016 Nathan Lowe
*
* 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 the rights
* to use, copy, modify,... |
<commit_before>/***************************************************************************
copyright : (C) 2002, 2003 by Scott Wheeler
email : wheeler@kde.org
***************************************************************************/
/**********************************************... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NameContainer.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2007-05-22 18:19:47 $
*
* The Contents of this file are ... |
<commit_before>/**
* @author Mike Bogochow
* @version 2.4.0, Dec 8, 2015
*
* @file Bidder.cpp
*
* Bidder class implementation
*/
#include "Bidder.h"
#include "../lib_graphs/Graph.h"
#include "../lib_graphs/Subgraph.h"
#include "../lib_graphs/SpanningTree.h"
#include "../lib_graphs/Path.h"
//#include "../lib_gra... |
<commit_before>/*
* LoginConn.cpp
*
* Created on: 2013-6-21
* Author: ziteng@mogujie.com
*/
#include "LoginConn.h"
#include "IM.Server.pb.h"
#include "IM.Other.pb.h"
#include "IM.Login.pb.h"
#include "public_define.h"
using namespace IM::BaseDefine;
static ConnMap_t g_client_conn_map;
static ConnMap_t g_msg... |
<commit_before>/* Copyright 2020 The TensorFlow Authors. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
<commit_before>/*!
* Copyright (c) 2017 by Contributors
* \file arg_binder.cc
* \brief Helper utility to match and bind arguments.
*/
#include <tvm/ir.h>
#include <tvm/ir_pass.h>
#include <tvm/runtime/device_api.h>
#include "./ir_util.h"
#include "./arg_binder.h"
#include "../arithmetic/compute_expr.h"
namespace ... |
<commit_before>// Scintilla source code edit control
/** @file CallTip.cxx
** Code for displaying call tips.
**/
// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <string.h>
#includ... |
<commit_before>// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
// expected-no-diagnostics
// NOTE: This file intentionally uses DOS-style line endings to test
// that we don't propagate them into string literals as per [lex.string]p4.
constexpr const char* p = R"(a\
b
c)";
static_assert(p[0] == 'a', "");
sta... |
<commit_before>// Copyright (C) 2011 - 2015 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University
// of Manchester.
// All rights reserved.
#include "CQTaskMethodWidget.h"
#include "qtUtilities.h"
#include "copasi.h"
#include "utilities/CCopasiTask.h"
#include ... |
<commit_before>
/*
*
* Copyright 2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, th... |
<commit_before>// Copyright (c) 2008-2010 Kent State University
// Copyright (c) 2011 Texas A&M University
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.
#ifndef ORIGIN_ITERATOR_HPP
#defin... |
<commit_before>#include <iostream>
#include <QtConcurrent>
#include <QCoreApplication>
#include <stdint.h>
#include <pulse/simple.h>
#include "DBMeter.hpp"
using namespace std;
DBMeter::DBMeter()
{
settings.setCodec("audio/PCM");
settings.setChannelCount(1);
settings.setSampleRate(16000);
recorder = new QAudioR... |
<commit_before>
#include <planet/common.hpp>
#include <planet/utils.hpp>
#include <syslog.h>
namespace planet {
int core_file_system::getattr(path_type const& path, struct stat& stbuf) const
{
if (auto fs_ent = get_entry_of(path)) {
stbuf.st_nlink = fs_ent.use_count();
stbuf.s... |
<commit_before>
/* Display.cpp
*
* Copyright (C) 2013 Michael Imamura
*
* 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 requi... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// BOSSA
//
// Copyright (c) 2011-2012, ShumaTech
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:... |
<commit_before>#ifndef LEAP_SERVER_HPP
#define LEAP_SERVER_HPP
#include "Leap.h"
enum Direction { FORWARD, BACKWARD, RIGHT, LEFT, UNDEFINED };
using namespace Leap;
class LeapServer : public Listener {
private:
Direction direction;
Controller controller;
public:
LeapServer() {
direction = UNDEFINED;
}... |
<commit_before>/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2015 Francois Beaune, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any... |
<commit_before>#include "Message.hpp"
#include "User.hpp"
#include "Channel.hpp"
#include "Role.hpp"
#include "Network.hpp"
#include "PawnDispatcher.hpp"
#include "Callback.hpp"
#include "Logger.hpp"
#include "utils.hpp"
Message::Message(MessageId_t pawn_id, json const &data) : m_PawnId(pawn_id)
{
std::string author... |
<commit_before>#include <ctype.h>
#ifndef wcslen
/* for cygwin */
#include <wchar.h>
#endif
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0501 // For AddVectoredExceptionHandler
#ifndef UNICODE
#define UNICODE
#endif
#include <windows.h>
#include <shellapi.h>
#ifdef _MSC_VER
#undef min
#undef max
#endif
/* Diff... |
<commit_before>///
/// @file PhiTiny.cpp
/// @brief phi_tiny(x, a) counts the numbers <= x that are not
/// divisible by any of the first a primes. phi_tiny(x, a)
/// computes phi(x, a) in constant time for a <= 8 using
/// lookup tables and the formula below.
///
/// phi(x, a) = (x / pp) *... |
<commit_before>// This file is part of Tasks.
//
// Tasks 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 3 of the License, or
// (at your option) any later version.
//
// Tasks is dist... |
<commit_before>#ifndef SAPLIST_HPP
#define SAPLIST_HPP 1
#include <functional>
#include <map>
#include <typeinfo>
#include "CollisionManager.hpp"
struct AABB {
/** min/max
* - first is x axis
* - second is y axis */
struct EndPoint * min[2];
struct EndPoint * max[2];
size_t typeId; /* Nee... |
<commit_before>// Copyright 2017 Netherlands Institute for Radio Astronomy (ASTRON)
// Copyright 2017 Netherlands eScience Center
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... |
<commit_before>#include "Utility.h"
#include <vector>
#include <random>
#include <chrono>
#include <fstream>
#include <algorithm>
#include <string>
#include <cctype>
#include <iostream>
#include <cmath>
namespace String
{
namespace
{
const auto whitespace = " \t\n";
}
}
std::vector<std::string> S... |
<commit_before>/*
* fMBT, free Model Based Testing tool
* Copyright (c) 2011, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
*... |
<commit_before>/*
Copyright (c) 2012 Carsten Burstedde, Donna Calhoun
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 ... |
<commit_before>#include "OscillatorModule.h"
#include <cmath>
OscillatorModule::OscillatorModule(ModularSynth& synth)
:SynthModule(synth, moduleId, 2, 1, 0), mAccumulator(0.0f), mPreviousSync(0.0f)
{
}
void OscillatorModule::cycle()
{
if (getInput(1) > 0.0f && mPreviousSync <= 0.0f)
mAccumulator = 0;
mPrevious... |
<commit_before>#pragma once
#include <functional>
#include <string>
#include <system_error>
#include <type_traits>
#include <utility>
/** @brief Wraps common c style error handling for exception throwing
* This requires the callee to set errno on error.
* @details We often have a pattern in our code for... |
<commit_before>#define RAINY_RENDERER_EXPORT
#include "Renderer.h"
#include <fstream>
#include <algorithm>
#include "common.h"
#include "Vector3.h"
#include "material.h"
#include "Scene.h"
namespace rainy {
const Color Renderer::backgroundColor = Color();
const int Renderer::maxDepth = 5;
const... |
<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
Copyright (C) 2011 Harald Sitter <sitter@kde.org>
This library is fr... |
<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>#pragma once
#include <vector>
#include <cssdom/dom.hpp>
#include "elements/styleable.hpp"
#include "elements/container.hpp"
namespace svgdom{
class style_stack{
struct node{
const svgdom::styleable& s;
const svgdom::container* c = nullptr;
size_t index = 0; // index in its parent of the next ... |
<commit_before>// Copyright (c) 2016, Joseph Mirabel
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
//
// This file is part of hpp-core.
// hpp-core 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... |
<commit_before>/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... |
<commit_before>#include "polylineStyle.h"
#include "tangram.h"
#include "platform.h"
#include "material.h"
#include "gl/shaderProgram.h"
#include "gl/typedMesh.h"
#include "scene/stops.h"
#include "scene/drawRule.h"
#include "tile/tile.h"
#include "util/mapProjection.h"
#include "glm/vec3.hpp"
namespace Tangram {
st... |
<commit_before>#include "FitsObject.h"
#include <stdexcept>
using namespace std;
Fits::Fits(const string &filename)
: m_status(0), m_filename(filename)
{
fits_open_file(&*this->fptr(), this->m_filename.c_str(), READWRITE, &this->status());
this->check();
}
Fits::Fits() {}
Fits::~Fits()
{
fits_close_... |
<commit_before>/*
open source routing machine
Copyright (C) Dennis Luxen, others 2010
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU AFFERO General Public License as published by
the Free Software Foundation; either version 3 of the License, or
any later vers... |
<commit_before><commit_msg>Fix PickleTest.GetReadPointerAndAdvance not to produce wild addresses while checking for overflows.<commit_after><|endoftext|> |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>/***********************************************************************
filename: CEGUIBasicImage.cpp
created: Wed Feb 16 2011
author: Paul D Turner <paul@cegui.org.uk>
*************************************************************************/
/**************************************... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: YUsers.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: obo $ $Date: 2006-09-17 03:04:29 $
*
* The Contents of this file are made a... |
<commit_before>/***********************************************************************
filename: CEGUISpinner.cpp
created: 3/2/2005
author: Paul D Turner
*************************************************************************/
/***************************************************************************
* Cop... |
<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 "content/browser/ppapi_plugin_process_host.h"
#include <string>
#include "base/base_switches.h"
#include "base/command_line.... |
<commit_before>// $Id: mesh_refinement_smoothing.C,v 1.12 2006-04-17 21:18:09 roystgnr Exp $
// The libMesh Finite Element Library.
// Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General P... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs
*
* Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr>
*
* This program is f... |
<commit_before>// Copyright (c) 2016 Kasper Kronborg Isager and Radosław Niemczyk.
#include <vector>
#include <iostream>
#include <fstream>
#include <hayai/hayai.hpp>
#include <hayai/hayai_posix_main.cpp>
#include <hemingway/vector.hpp>
#include <hemingway/table.hpp>
using namespace lsh;
std::vector<vector> parse(std... |
<commit_before>#include "fight.h"
#include "../drivers/MotorDriver.h"
#include "../drivers/ProximitySensors.h"
#include "../control/Movement.h"
#define STANDARD_SPEED 170
enum {
SEARCH_INITIAL,
SEARCH_TURNING,
SEARCH_FORWARD,
FOUND_LEFT,
FOUND_RIGHT,
FOUND_STRAIGHT,
STOP_MOVING
} STATE = SEARCH_IN... |
<commit_before>#include "include/rados/librados.h"
#include "include/rados/librados.hpp"
#include "test/rados-api/test.h"
#include <sstream>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <unistd.h>
using namespace librados;
std::string get_temp_pool_name()
{
char out[17];
memset(out, 0, sizeof... |
<commit_before>// Copyright (c) 2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test.hpp>
#include <iostream>
#include "main.h"
#include "util.h"
#include "serializ... |
<commit_before>#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
for (int i = 0; i < 100; ++i)
{
printf("%d\n",i*16 );
}
return 0;
}<commit_msg>Heure 6<commit_after>#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
for (int i = 0; i < 100; ++i)
{
... |
<commit_before>/*
* (C) 2017 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "tests.h"
#if defined(BOTAN_HAS_CERTIFICATES)
#include <botan/x509_dn.h>
#include <botan/ber_dec.h>
#endif
namespace Botan_Tests {
#if defined(BOTAN_HAS_CERTIFICATES)
class X509_DN_Comp... |
<commit_before>namespace RegularExpressionMatching {
class Solution {
public:
bool checkIsMatch(const char *s, int posS, const char * p, int posP) {
if (s[posS] == '\0' && p[posP] == '\0') { // sample case: s="", p=""
return true;
}
if (s[... |
<commit_before>/** \file apply_differential_update.cc
* \brief A tool for applying a differential update to a complete MARC dump.
* \author Dr. Johannes Ruscheinski
*/
/*
Copyright (C) 2018 Library of the University of Tübingen
This program is free software: you can redistribute it and/or modify
... |
<commit_before>/** \file fix_article_biblio_levels.cc
* \author Dr. Johannes Ruscheinski
*
* A tool for patching up the bibliographic level of article records.
* Many, possibly all, article records that we get have an 'a' in leader position 7 instead of a 'b'.
* If the referenced parent is no a monograph t... |
<commit_before>// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "Lic... |
<commit_before>// The MIT License (MIT)
//
// Copyright (c) 2016 Northeastern University
//
// 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 limitatio... |
<commit_before>#ifndef GAMEOBJECT_HPP
#define GAMEOBJECT_HPP
#include "tools.hpp"
class Game;
class ContainerObject;
class GameObject { //scenegraph nodes
public:
GameObject();
virtual ~GameObject();
virtual void update(float deltaTime);
virtual void draw() const ;
void addTo(GameObject* parent);
void r... |
<commit_before>/*
** Copyright 2012 Merethis
**
** This file is part of Centreon Clib.
**
** Centreon Clib is free software: you can redistribute it
** and/or modify it under the terms of the GNU Affero General Public
** License as published by the Free Software Foundation, either version
** 3 of the License, or (at yo... |
<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 "net/test/test_server.h"
#include <algorithm>
#include <string>
#include <vector>
#include "build/build_config.h"
#if defin... |
<commit_before>// Copyright (c) 2011-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "clientmodel.h"
#include "bantablemodel.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "... |
<commit_before>/*
* Copyright (C) 2009 by Marc Boris Duerner, Tommi Maekitalo
*
* 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 your opt... |
<commit_before>// -*- coding: us-ascii-unix -*-
// Copyright 2013 Lukas Kemmer
//
// 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
//
// Unles... |
<commit_before><commit_msg>Piping now working for xml, phylip and binary cases.<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
* Copyright (C) 2007-2009 Torch Mobile, Inc.
* Copyright (C) 2011 University of Szeged. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>#include "alert.h"
using namespace Alert;
Warning::Warning(time_t detect_time, int angle, std::map<int, int> sensor_readings,
std::vector<int> triggered_sensors) : detect_time(detect_time), angle(angle*M_PI/180.0), sensor_readings(sensor_readings), triggered_sensors(triggered_sensors)
... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... |
<commit_before>#include <algorithm>
#include <iostream>
#include <stdexcept>
#include <chrono>
#include "config.hpp"
#include "requestHandler.hpp"
#include "response.hpp"
#include "torrent.hpp"
#include "utility.hpp"
#include "mysql.hpp"
TorrentMap RequestHandler::torMap;
UserMap RequestHandler::usrMap;
Database* Requ... |
<commit_before>/**
* Copyright 2008 Matthew Graham
* 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 l... |
<commit_before>#include <QClipboard>
#include <QDebug>
#include <QFile>
#include <QKeyEvent>
#include <QLineEdit>
#include <QMessageBox>
#include <QPoint>
#include <QSettings>
#include <QSize>
#include <algorithm>
#include <stdexcept>
#include <typeinfo>
#include "CorpusWidget.hh"
#include "StatisticsWindow.hh"
#incl... |
<commit_before>#include "Scheduler0.hpp"
#include "Funwrap3.hpp"
#include "Thread0.hpp"
#include "queue_lockfree_total.hpp"
#include <thread>
Scheduler0::Scheduler0(){
_thread.settask( [=](){ this->task(); } ); //set the scheduler task
}
Scheduler0::~Scheduler0(){
_thread.setaction( IThread::Action::END );
}
... |
<commit_before>/**
* \file
* \brief SignalInformationQueue 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
... |
<commit_before>//*****************************************************************************
// Copyright 2017-2018 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
... |
<commit_before>
// Copyright (c) 2010 libmv authors.
//
// 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 the
// rights to use, copy, modify... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.