text stringlengths 54 60.6k |
|---|
<commit_before>/* bzflag
* Copyright (c) 1993-2013 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>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2005 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>#include <maya/MDGModifier.h>
#include <maya/MDagModifier.h>
#include <maya/MFnDagNode.h>
#include <maya/MFnPhongShader.h>
#include <maya/MFileObject.h>
#include <maya/MSelectionList.h>
#include <maya/MPlugArray.h>
#include <maya/MStatus.h>
#include <maya/MGlobal.h>
#include "assetManager.h"
#include "c... |
<commit_before>#include <config.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <complex>
#ifdef HAVE_MINUIT
#include "Minuit2/FunctionMinimum.h"
#include "Minuit2/MnMigrad.h"
#include "Minuit2/MnMinos.h"
#include "Minuit2/MnMinimize.h"
#include "Minuit2/MnUserParameters.h"
#include "Minuit2/MnPri... |
<commit_before>#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <boost/lexical_cast.hpp>
#include "packet.h"
#define USAGE "Usage:\r\nc \r\n[tux machine number] \r\n[probability of packet corruption in int for... |
<commit_before>#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/time.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <iostream>
#include <fstream>
#include <boost/lexical_cast.hpp>
#include "packet.h"
#define USAGE "U... |
<commit_before>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// GRINS - General Reacting Incompressible Navier-Stokes
//
// Copyright (C) 2014 Paul T. Bauman, Roy H. Stogner
// Copyright (C) 2010-2013 The PE... |
<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 dis... |
<commit_before>#include <iostream>
#include "Socket.h"
#include "client.h"
#include "GameState.h"
#include "utilitary.h"
//Les définitions ci dessous sont toutes les valeurs que peut avoir l'attribut 'status' de la class de base GameState.
//Valeurs générales :
enum STATUS
{
STATUS_DEFAULT = 0,
STATUS_BAD_ENT... |
<commit_before>#include <stdio.h>
#include "pthread.h"
#include <atomic>
#include <stdlib.h>
#ifndef XV6_USER
#include <string.h>
#else
#include "types.h"
#include "user.h"
#endif
#include "mtrace.h"
#include "fstest.h"
#ifndef XV6_USER
#include <stdlib.h>
#include <sched.h>
int
setaffinity(int cpu)
{
cpu_set_t mas... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2011 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>#include "selectors.hh"
#include "string.hh"
#include <algorithm>
namespace Kakoune
{
namespace
{
bool is_eol(char c)
{
return c == '\n';
}
bool is_blank(char c)
{
return c == ' ' or c == '\t';
}
template<bool punctuation_is_word = false>
bool is_word(char c);
template<>
bool is_word<fals... |
<commit_before>#include "paddle.h"
paddle::paddle(sf::Vector2i windowResolution, string positionDeterminant, char paddleSize)
{
//setting paddle size
size.x=windowResolution.x/64;
if(paddleSize == 'B' || paddleSize == 'b')
size.y=windowResolution.y/4;
else
size.y=windowResoluti... |
<commit_before>#include "qtcamdevice.h"
#include "qtcamviewfinder.h"
#include "qtcamconfig.h"
#include "qtcamdevice_p.h"
#include <QDebug>
#include <gst/gst.h>
#include "qtcamgstreamermessagelistener.h"
#include "qtcammode.h"
#include "qtcamimagemode.h"
#include "qtcamvideomode.h"
QtCamDevice::QtCamDevice(QtCamConfig ... |
<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>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>/* -*- mode: C++; c-file-style: "gnu" -*-
This file is part of kdepim.
Copyright (c) 2004 KDEPIM developers
KMail is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2013-2016 Rapptz, ThePhD and contributors
// 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 w... |
<commit_before>/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <guido.tack@monash.edu>
*/
/* 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 (C) 2015 deipi.com LLC and contributors. All rights reserved.
*
* 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 limit... |
<commit_before>#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
#include <pwd.h>
#include <grp.h>
#include <stdio.h>
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <vector>
#include <algorithm>
using namespace std;
#define ... |
<commit_before>#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
#include <cstdlib>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <iomanip>
#include <algorithm>
using namespace std;
#define FLAG_a 1
#define FLAG_l 2
#define F... |
<commit_before>#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
#include <pwd.h>
#include <grp.h>
#include <stdio.h>
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <vector>
using namespace std;
#define FLAG_a 1
#define FLAG... |
<commit_before>#include "mmu.h"
#include "boot.h"
#include "util/log.h"
MMU::MMU(Cartridge& inCartridge) :
cartridge(inCartridge)
{
}
uint8_t MMU::read(const Address address) const {
log_debug("Memory read: %d", address.value());
if (address.in_range(0x0, 0x7FFF)) {
if (address.in_range(0x0, 0... |
<commit_before>#include <iostream> // cin, cout
#include <fstream> // ifstream
#include <stdlib.h> // ifstream
#include <stdio.h> // ifstream
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
using namespace std;
bool exist(char * f) {
struct stat s;
if(stat(f, &s) == 0) {
... |
<commit_before>// RM.CPP
//
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <iostream>
#include <vector>
#include <string>
#include "rm.h"
#include "scandir.h"
bool RM_DIRS = false;
int main(int argc, char** argv) {
std::vector<const char*> cmdfiles;
... |
<commit_before>/*
* Copyright (c), Recep Aslantas.
*
* MIT License (MIT), http://opensource.org/licenses/MIT
* Full license can be found in the LICENSE file
*/
#include "sig.h"
#include <vector>
#include <map>
namespace sig {
#define SIG_REQ_TYPE_INT 0
#define SIG_REQ_TYPE_STR 1
#define sig_def_ctx const_cast... |
<commit_before>#include "socket.h"
// POSIX
#include <sys/stat.h>
// POSIX++
#include <cstdlib>
// PUT
#include <cxxutils/error_helpers.h>
#include <cxxutils/vterm.h>
// GenericSocket
GenericSocket::GenericSocket(EDomain domain,
EType type,
EProtocol ... |
<commit_before>
#include <nanosoft/socket.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
namespace nanosoft
{
socket::socket(): sock(0)
{
}
socket::~socket()
{
close();
}
bool socke... |
<commit_before>#include <functional>
#include <initializer_list>
#include <string>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <iostream>
#include <memory>
namespace parser{
class Sign_{
std::string name_;
bool isTerm_;
public:
Sign_(std::string n, bool ... |
<commit_before>#if !defined(ASCII_TREE_PARSER_H)
#define ASCII_TREE_PARSER_H
#include <memory>
#include <string>
#include <iterator>
namespace ascii_tree
{
struct parse_exception
{
const std::string s;
const size_t pos;
parse_exception(const std::string& s, size_t pos) : s(s), pos(po... |
<commit_before>#ifndef GLM_H
#define GLM_H
// ================================ include GLEW
#include <GL/glxew.h>
#include <GL/glew.h>
#include <SFML/OpenGL.hpp>
// ================================ include GLM
#include <glm/glm.hpp>
#define GLM_FORCE_RADIANS
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/... |
<commit_before>#include "car.h"
#include <cmath>
using namespace arma;
CAR::CAR(const colvec &y, const mat &X, const sp_mat &W) : ARModel(y, X, W),
XT(X.t()), XT_X(XT * X), XT_W(XT * W), XT_W_X(XT_W * X), XT_y(XT * y) {}
void
CAR::solve(){
calculate_rho();
if (! arma::solve(beta, XT_X - rho * XT_W_X, XT_y - rh... |
<commit_before>#include <iostream>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <time.h>
#include <fstream>
#include <stdlib.h>
#include <string.h>
#include <sys/times.h>
using namespace std;
int main(int argc, char ** argv) {
if (argc < 3)
retur... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>
#include <QFileDialog>
#include <QMessageBox>
#include <QImage>
#include <QPicture>
#include "facerecognizercontainer.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->... |
<commit_before>#ifndef GENERICS_H
#define GENERICS_H
#include"objects.hpp"
class Semispace;
/*-----------------------------------------------------------------------------
GenericTraverser
-----------------------------------------------------------------------------*/
/*An abstract base class which provides a
"trave... |
<commit_before>/* This file is part of the KDE libraries
Copyright (C) 2002 John Firebaugh <jfirebaugh@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This ... |
<commit_before>
#include <iostream>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
#include <ddraw.h>
#include "evas_common.h"
#include "evas_engine.h"
typedef LONG (*fct_DirectDrawCreate)(LPGUID, LPUNKNOWN *, LPUNKNOWN *);
fct_DirectDrawCreate lib_DirectDrawCreate;
typedef struct Eva... |
<commit_before>// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <stdio.h>
#include "db/dbformat.h"
#include "db/version_set.h"
#include "port/p... |
<commit_before>#include <Arduino.h>
#include <SoftwareSerial.h>
#include "PacketSerial.h"
#include "Adafruit_BNO055.h"
#include "Adafruit_DRV2605.h"
extern "C" {
//#include "pfleury/uart.h"
};
FUSES =
{
.low = 0xFF, //0xFF
.high = FUSE_SPIEN & FUSE_BOOTSZ0 & FUSE_BOOTRST, //0xDC
.extended = FUSE_BODLEVEL1 //0xFD
... |
<commit_before>#ifndef ___INANITY_META_IMPL_HPP___
#define ___INANITY_META_IMPL_HPP___
#include "ClassBase.ipp"
// Before inclusion of this header, do the following:
// * include header of needed meta provider class
// * define a macro META_PROVIDER to a full name of the meta provider class
// After inclusion you lik... |
<commit_before>/* libscratch - Multipurpose objective C++ library.
Copyright (c) 2013 - 2016 Angelo Geels <spansjh@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
res... |
<commit_before>#include <map>
#include <vector>
#include <thread>
#include <mutex>
#include <assert.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#ifdef WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else // WIN32
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#incl... |
<commit_before>#pragma once
class FindTests
: public ::testing::Test
{
public:
using types = IntervalTypes <int>;
protected:
IntervalTypes <int>::tree_type tree;
};
TEST_F(FindTests, WillReturnEndIfTreeIsEmpty)
{
EXPECT_EQ(tree.find({2, 7}), std::end(tree));
}
TEST_F(FindTests, WillNo... |
<commit_before>#include "RenderTarget.hpp"
RenderTarget* RenderTarget::current = nullptr;
RenderTarget::RenderBuffer::RenderBuffer(int width, int height, Texture::InternalFormat format) : format(format){
GL_ASSERT(glGenRenderbuffers(1, &handle));
resize(width, height);
}
RenderTarget::RenderBuffer::~RenderBuffer()... |
<commit_before>#include "PackUIWindowTask.h"
#include "PackUI.h"
#include "pack_ui_cfg.h"
#include <ee/FileHelper.h>
#include <ee/std_functor.h>
#include <ee/StringHelper.h>
#include <algorithm>
namespace erespacker
{
PackUIWindowTask::PackUIWindowTask(const std::string& filepath, const Json::Value& value)
: PackU... |
<commit_before>#include "predicator.h"
/**
predicator_planning
Can generate the set of predicates that would be true for a given location.
Also used to generate predicates based on current state.
**/
namespace predicator_planning {
/*
* createStatement()
* Simple helper function to create predicates wi... |
<commit_before>#ifndef FASTPP_HPP
#define FASTPP_HPP
#include <phypp/core/typedefs.hpp>
#include <phypp/core/vec.hpp>
#include <phypp/reflex/reflex.hpp>
#include <phypp/core/error.hpp>
#include <phypp/utility/generic.hpp>
#include <phypp/utility/string.hpp>
#include <phypp/utility/time.hpp>
#include <phypp/math/base.h... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_pm_pba_init.H $ ... |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <cmath>
#include <ctime>
#include "lib/font.h"
#include "lib/body.h"
#include "lib/image.h"
#include "lib/video.h"
#include "lib/output.h"
#include "lib/misc.h"
#include "lib/matrix.h"
#include "lib/units.h"
#include <... |
<commit_before>/*
* Copyright (c) 2004-2006 The Regents of The University of Michigan
* 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 c... |
<commit_before>#pragma once
#include <loom/protobuf.hpp>
#include <loom/protobuf_stream.hpp>
#include <loom/product_value.hpp>
namespace loom
{
class Sparsifier
{
public:
Sparsifier (
const protobuf::Config::Sparsify & config,
const ValueSchema & schema) :
config_(config),
... |
<commit_before>/*
* FDOmenu - Menu code generator for icewm
* Copyright (C) 2015 Eduard Bloch
*
* Inspired by icewm-menu-gnome2 and Freedesktop.org specifications
* Using pure glib/gio code and a built-in menu structure instead
* the XML based external definition (as suggested by FD.o specs)
*
* Release u... |
<commit_before>/*
* This file is part of openfx-arena <https://github.com/olear/openfx-arena>,
* Copyright (C) 2016 INRIA
*
* openfx-arena is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
* ... |
<commit_before>#include <cstdlib>
#include <iostream>
#include <string>
#include "boost/filesystem.hpp"
#include "SettingsController.h"
using std::cerr;
using std::getenv;
using std::string;
using namespace boost::filesystem;
void CheckCreatePath(path p) {
if (!exists(p)) {
if(!create_directory(p)) {
cerr <<... |
<commit_before>#include "powerSleep.h"
#include <Arduino.h>
#include <avr/sleep.h>
#include <avr/power.h>
void enterSleep()
{
/*** Setup Sleep options ***/
set_sleep_mode(SLEEP_MODE_PWR_DOWN); // Lowest powerdown mode
sleep_enable(); // Enable sleep
/*** Put processor to sleep ***/
... |
<commit_before><commit_msg>VAAPI: disable VP8 decoding for now<commit_after><|endoftext|> |
<commit_before>#include "stdafx.h"
#include "SettingsUI.h"
#include "Hotkeys.h"
#include "afxdialogex.h"
#include "HotkeyInfo.h"
#include "HotkeyPrompt.h"
#include "KeyGrabber.h"
IMPLEMENT_DYNAMIC(Hotkeys, CPropertyPage)
Hotkeys::Hotkeys() :
CPropertyPage(Hotkeys::IDD) {
}
Hotkeys::~Hotkeys() {
}
void Hotkeys::Do... |
<commit_before>#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *... |
<commit_before>// FRAGMENT(includes)
#include <iostream>
#include <seqan/sequence.h>
#include <seqan/file.h>
#include <seqan/stream.h>
using namespace seqan;
// FRAGMENT(tags)
struct BlastnTab_;
typedef Tag<BlastnTab_> BlastnTab;
struct BlastnTabComment_;
typedef Tag<BlastnTabComment_> BlastnTabComment;
struct Bla... |
<commit_before>#pragma once
#include <memory>
#include <anyode/anyode.hpp>
#include <anyode/anyode_blas_lapack.hpp> // dgemv, dgesvd
#include <anyode/anyode_matrix.hpp> // DenseMatrix
#include <anyode/anyode_decomposition.hpp> // SVD
namespace AnyODE {
template <typename Real_t=double, typename JacMat_t=Dense... |
<commit_before>//
// AppleStimulusDisplay.cpp
// MWorksCore
//
// Created by Christopher Stawarz on 12/14/20.
//
#include "AppleStimulusDisplay.hpp"
#include "OpenGLUtilities.hpp"
#include "Stimulus.h"
NS_ASSUME_NONNULL_BEGIN
@interface MWKStimulusDisplayViewDelegate : NSObject <MTKViewDelegate>
@property(non... |
<commit_before>#include "painter.hpp"
#include <iostream>
// Shader sources
const GLchar* vertexSource = R"(
#version 300 es
in vec2 position;
in vec2 texcoord;
out vec2 Texcoord;
void main() {
Texcoord = texcoord;
gl_Position = vec4(position, 0.0, 1.0);
}
)";
const GLchar* fragmen... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: servicenames.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: hr $ $Date: 2007-06-27 12:23:39 $
*
* The Contents of this file are ... |
<commit_before>// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "addressbookpage.h"
#include "addresstable... |
<commit_before>#ifndef SRC_CONFIGURATION_H_
#define SRC_CONFIGURATION_H_
#include <horsewhisperer/horsewhisperer.h>
#include <map>
namespace PXPAgent {
namespace HW = HorseWhisperer;
extern const std::string DEFAULT_SPOOL_DIR; // used by unit tests
extern const std::string LOGFILE_NAME; // not configu... |
<commit_before>#include <debugger/impl.h>
#include <debugger/io/helper.h>
#include <debugger/io/base.h>
#include <rapidjson/schema.h>
#include <rapidjson/error/en.h>
#include <fstream>
#if 1
# define log(...)
#else
#include <base/util/format.h>
#include <Windows.h>
template <class... Args>
static void log(const char... |
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Lic... |
<commit_before>// Copyright (C) 2011 Oliver Schulz <oliver.schulz@tu-dortmund.de>
// 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) any ... |
<commit_before><commit_msg>INTEGRATION: CWS changefileheader (1.11.124); FILE MERGED 2008/03/31 17:15:32 rt 1.11.124.1: #i87441# Change license header to LPGL v3.<commit_after><|endoftext|> |
<commit_before>// StateSensor.cc
#include "lib.h"
#include "StateSensor.h"
using namespace std;
StateSensor::StateSensor()
: state(INITIAL)
{
logWrite(SENSOR, "State change to INITIAL");
}
StateSensor::~StateSensor()
{
}
int StateSensor::getState(void) const
{
if (sendValid || ackValid)
{
return state;... |
<commit_before>// @(#)root/gui:$Name: $:$Id: TGButtonGroup.cxx,v 1.5 2001/01/10 09:35:00 rdm Exp $
// Author: Valeriy Onuchin & Fons Rademakers 16/10/2000
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All righ... |
<commit_before>// *****************************************************************************
//
// Copyright (c) 2008, Pleora Technologies Inc., All rights reserved.
//
// *****************************************************************************
#include <PvSampleUtils.h>
#include <PvDeviceFinderWnd.h>
#inc... |
<commit_before>#include "std.h"
#include "timespan.h"
#include <cmath>
#include <sstream>
#include <iomanip>
const Timespan Timespan::zero(Timespan::ms(0));
Timespan::Timespan() {
time = 0;
}
Timespan::Timespan(int64 micros) {
this->time = micros;
}
Timespan::Timespan(const void *from) {
time = *((int64 *)from)... |
<commit_before>//
// Copyright(c) 2018 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#include "benchmark/benchmark.h"
#include "spdlog/spdlog.h"
#include "spdlog/details/pattern_formatter.h"
void bench_scoped_pad(benchmark::State &state, size_t wrapped_size, spdlog::detail... |
<commit_before>#ifndef <%= component.name.upcase %>_<%= task.basename.upcase %>_TASK_HPP
#define <%= component.name.upcase %>_<%= task.basename.upcase %>_TASK_HPP
#include "<%= component.name.downcase %>/<%= task.basename %>Base.hpp"
namespace <%= component.name %> {
class <%= task.basename %> : public <%= task.b... |
<commit_before>/*************************************************************************
*
* $RCSfile: notesuno.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2004-06-04 11:56:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*************************************************************************
*
* Copyright 2016 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://www.... |
<commit_before>#include "drivers/ublox_neo7.hpp"
#include <cstdlib>
#include <cstring>
#include "chprintf.h"
#include "unit_config.hpp"
const char NMEA_LF = '\n';
const char *NMEA_DELIMS = ",\0";
struct GPGLLMessage {
float lon;
char lonDir;
float lat;
char latDir;
float utc;
char valid;
};
void UBloxN... |
<commit_before>/*
* $Id$
*
* Copyright(C) 1998-2004 Satoshi Nakamura
* All rights reserved.
*
*/
#include <qmapplication.h>
#include <qmfilenames.h>
#include <qmmacro.h>
#include <qsconv.h>
#include <qsosutil.h>
#include <qsstl.h>
#include <algorithm>
#include "filter.h"
using namespace q... |
<commit_before>/*
This file is part of Kontact.
Copyright (c) 2003 Kontact Developer
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 yo... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees hol... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scdetect.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 22:49:39 $
*
* The Contents of this file are made ... |
<commit_before>#include "stdafx.h"
#include "timermanager.h"
namespace dukat
{
Timer* TimerManager::create_timer(float interval, std::function<void(void)> callback, bool recurring)
{
auto timer = std::make_unique<Timer>(interval, callback, recurring);
auto res = timer.get();
timers.push... |
<commit_before>#pragma once
/*
** Copyright (C) 2013 Aldebaran Robotics
** See COPYING for the license
*/
#ifndef _QITYPE_DETAIL_PROPERTY_HXX_
#define _QITYPE_DETAIL_PROPERTY_HXX_
#include <boost/thread/locks.hpp>
#include <qi/property.hpp>
#include <qi/future.hpp>
#include <qi/property.hpp>
#include <ka/errorhandl... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, 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>// $Id$
//
// Copyright (C) 2004-2008 Greg Landrum and Rational Discovery LLC
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
... |
<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>/*
* ssl_context_service.cpp
*
* Created on: Aug 21, 2015
* Author: zmij
*/
#include <tip/ssl_context_service.hpp>
#include <boost/filesystem.hpp>
namespace tip {
namespace ssl {
ssl_context_service::io_service::id ssl_context_service::id;
struct ssl_context_service::impl {
context_type c... |
<commit_before>/**
* @file treeproc.cpp
* @brief Node tree processor
*
* (c) 2013-2014 by Mega Limited, Auckland, New Zealand
*
* This file is part of the MEGA SDK - Client Access Engine.
*
* Applications using the MEGA API must present a valid application key
* and comply with the the rules set forth in the T... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkGDCMImageIO.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCo... |
<commit_before>/**
* Copyright (c) 2016 zScale Technology GmbH <legal@zscale.io>
* Authors:
* - Paul Asmuth <paul@zscale.io>
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License ("the license") as
* published by the Free Software... |
<commit_before>// Tests trace pc guard coverage collection.
//
// REQUIRES: has_sancovcc,stable-runtime
// XFAIL: tsan,darwin,powerpc64,s390x
//
// RUN: DIR=%t_workdir
// RUN: rm -rf $DIR
// RUN: mkdir -p $DIR
// RUN: cd $DIR
// RUN: %clangxx -O0 -fsanitize-coverage=trace-pc-guard %s -ldl -o %t
// RUN: %env_tool_opts=c... |
<commit_before>/* ---------------------------------------------------------------------
* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2013-2015, Numenta, Inc. Unless you have an agreement
* with Numenta, Inc., for a separate license for this software code, the
* following terms and condition... |
<commit_before>// Copyright (c) 2014, Kyle Wilson
// 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. Redistributions of source code must retain the above copyright notice, thi... |
<commit_before>#include "helpers.h"
namespace node_leveldb {
leveldb::Options JsToOptions(Handle<Value> val) {
HandleScope scope;
Local<Object> obj = Object::Cast(*val);
leveldb::Options options;
if (obj->Has(String::New("create_if_missing"))) {
options.create_if_missing = obj->Get(String::New("create_if_... |
<commit_before>/* RTcmix - Copyright (C) 2000 The RTcmix Development Team
See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for
the license to this software and for a DISCLAIMER OF ALL WARRANTIES.
*/
/* rev for v2.3 by JGG */
#include <globals.h>
#include <stdio.h>
#include <assert.h>
#include "../r... |
<commit_before>/*
* This is code from the Simple Pseudo-random Number Generators
* Contact : http://craig.mcqueen.id.au
* Copyright : 2010 Craig McQueen
*
* Available on GitHub https://github.com/cmcqueen/simplerandom
*/
#include "simplerandom.hpp"
#include <stddef.h>
#ifndef UINT32_C
#define UINT32_C(val) val... |
<commit_before>/*
Copyright libCellML 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
<commit_before>/*
This file is part of libkholidays.
Copyright (c) 2004,2006 Allen Winter <winter@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
versi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.