text stringlengths 54 60.6k |
|---|
<commit_before>#include "slider.h"
#include "qdebug.h"
#include "media/player.h"
#include "media/duration.h"
#include "misc/stylesheets.h"
Slider::Slider(QWidget * parent, bool isPositionSlider) : QSlider(parent) {
setMouseTracking(isPositionSlider);
position_slider = isPositionSlider;
fillColor = QColor::... |
<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>/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
**********************... |
<commit_before>#include "rack.hpp"
struct QuantizeUtils {
//copied & fixed these scales http://www.grantmuller.com/MidiReference/doc/midiReference/ScaleReference.html
int SCALE_AEOLIAN [8] = {0, 2, 3, 5, 7, 8, 10, 12};
int SCALE_BLUES [7] = {0, 3, 5, 6, 7, 10, 12}; //FIXED!
int SCALE_CHROMATIC ... |
<commit_before>/*****************************************************************************
intersectMain.cpp
(c) 2009 - Aaron Quinlan
Hall Laboratory
Department of Biochemistry and Molecular Genetics
University of Virginia
aaronquinlan@gmail.com
Licenced under the GNU General Public License 2.0 licen... |
<commit_before>#include "joedb/journal/Generic_File.h"
#include <algorithm>
/////////////////////////////////////////////////////////////////////////////
void joedb::Generic_File::set_position(int64_t new_position)
/////////////////////////////////////////////////////////////////////////////
{
flush();
if (!seek(ne... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2014 Adam Dabrowski <adabrowski@piap.pl> <adamdbrw@gmail.com>
//
#... |
<commit_before>#include "crypto_utils.h"
#include <glibmm.h>
#include <openssl/pem.h>
#include <openssl/pkcs12.h>
#include <openssl/err.h>
#include <global_def.h>
#define UTIL_SECURITY_BUFFER_SIZE 2048
#define log_function_debug(X, ...) Davix::davix_log_debug(X, ##__VA_ARGS__)
static const std::string & check_... |
<commit_before>#include "logvisor/logvisor.hpp"
#include "boo/boo.hpp"
#include "specter/specter.hpp"
#include "hecl/CVarManager.hpp"
#include "Runtime/CBasics.hpp"
#include "ViewManager.hpp"
#include "hecl/hecl.hpp"
#include "hecl/CVarCommons.hpp"
#include "hecl/Console.hpp"
static logvisor::Module AthenaLog("Athena"... |
<commit_before>#include <tuple>
#include "drake/util/drakeGeometryUtil.h"
#include "drake/util/drakeGradientUtil.h"
#include "mex.h"
using namespace Eigen;
using namespace std;
namespace drake {
namespace internal {
template <typename Head, typename ...Tail>
struct TotalSizeAtCompileTime {
static const... |
<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>/* Copyright 2015 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>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.o... |
<commit_before>// $Id$
// Category: physics
//
// See the class description in the header file.
#include "TG4G3Defaults.h"
#include "TG4Globals.h"
#include <math.h>
// static const data members
// precision tolerance
const G4double TG4G3Defaults::fgkCutTolerance = 1. * keV;
// kinetic energy cuts
const G4double TG... |
<commit_before>TH1F *
ReadT0FillReference(Int_t run, Int_t year = 2010)
{
AliCDBManager *cdb = AliCDBManager::Instance();
cdb->SetDefaultStorage(Form("alien://folder=/alice/data/%d/Reference", year));
cdb->SetRun(run);
AliCDBEntry *cdbe = cdb->Get("TOF/Calib/T0Fill");
TH1F *hT0Fill = (TH1F *)cdbe->GetObject(... |
<commit_before>#include "stdafx.h"
#include "TypeRegistryTest.h"
#include "TypeRegistry.h"
template<int>
class Registered {};
TEST_F(TypeRegistryTest, VerifySimpleLocalRegistration) {
// Register two entries statically by uttering the static member's name:
RegType<Registered<1>>::r;
RegType<Registered<2>>::r;
... |
<commit_before>#include "Internet.h"
#include <curl/curl.h>
#include <iostream>
bool
Internet::CheckConnection()
{
CURL *curl = curl_easy_init();
if (curl) {
CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "google.com");
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,
[](char* ptr, size_t size, size_... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2015 Estimation and Control Library (ECL). All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
<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 <ctype.h>
#include <stdio.h>
#include "db/filename.h"
#include "db/dbformat.h"
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: activedatastreamer.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: ihi $ $Date: 2007-06-05 14:51:57 $
*
* The Contents of this fil... |
<commit_before>#include "Riostream.h"
#include "Coefficient.h"
#include "RooAbsReal.h"
#include <math.h>
#include "TMath.h"
ClassImp(doofit::roofit::functions::bdecay::Coefficient)
namespace doofit {
namespace roofit {
namespace functions {
namespace bdecay {
Coefficient::Coefficient(const std::string& name, ... |
<commit_before>#include "oglWidget.h"
//
// CONSTRUCTORS ////////////////////////////////////////////////////////////////
//
/**
* @brief Default constructor for OGLWidget.
*/
OGLWidget::OGLWidget()
{
// Update the widget after a frameswap
connect( this, SIGNAL( frameSwapped() ),
this, SLOT( up... |
<commit_before>// The following block tests the following:
// - Only 1 file is generated per translation unit
// - Replacements are written in YAML that matches the expected YAML file
// The test is run in %T/SerializeTest so it's easy to create a clean test
// directory.
//
// RUN: rm -rf %T/SerializeTest
// RUN: ... |
<commit_before>//#include "OpenCLHelper.h"
//#include "ClConvolve.h"
#include <iostream>
using namespace std;
#include "BoardHelper.h"
#include "MnistLoader.h"
#include "BoardPng.h"
#include "Timer.h"
#include "NeuralNet.h"
#include "test/AccuracyHelper.h"
#include "stringhelper.h"
#include "FileHelper.h"
void loadM... |
<commit_before>#include <ctype.h>
#include "vtkUnsignedCharScalars.h"
#include "vtkUnsignedShortScalars.h"
#include "vtkSLCReader.h"
// Description:
// Constructor for a vtkSLCReader.
vtkSLCReader::vtkSLCReader()
{
this->FileName = NULL;
}
// Description:
// Decodes an array of eight bit run-length encoded data.
u... |
<commit_before>//
// Created by ganyush on 4/23/21.
//
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*/
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <adios2.h>
#include <adios2/common/ADIOSTypes.h>
... |
<commit_before>#include "Caveman.hpp"
#include <iostream>
Caveman::Caveman(std::string cmd): cmd(cmd), lastAction('X'), actionHistory(""), sharpness(0), dead(false) {
// nothing to do here
}
// returns -1 for lose, 1 for win, 0 for N/A
int Caveman::provoke(Caveman& otherCaveman) {
getAction(actionHistory.length() ?... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Research In Motion
** Contact: http://www.qt-project.org/legal
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>// Copyright (c) 2011-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.
//
// Unit tests for block-chain checkpoints
//
#include "checkpoints.h"
#include "uint256.h"
#include ... |
<commit_before>#include <string>
#include <functional>
#include <Console.h>
#include <CPU.h>
#include <APU.h>
#include <PPU.h>
#include <Cart.h>
#include <Controller.h>
#include <Divider.h>
void Console::boot() {
cpu.boot([this] (uint16_t addr) {return cpuRead(addr);},
[this] (uint16_t addr, uint8_t data) {... |
<commit_before>/*=========================================================================
Program: Visualization Library
Module: Cylinder.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, reprod... |
<commit_before>#ifndef DVMBASE
#define DVMBASE
#include "BaseTypes.hpp"
#include "Body.hpp"
#include "VortexBlobs.hpp"
#include "VortexSheet.hpp"
#include "XmlHandler.hpp"
#include "Random.hpp"
#include "pugiconfig.hpp"
#include "pugixml.hpp"
#include <algorithm>
#include <armadillo>
#include <cmath>
#include <fstream... |
<commit_before>#include <Element.h>
#include <FWPlatform.h>
#include <TextLabel.h>
#include <LinearLayout.h>
#include <Command.h>
#include <FWApplication.h>
#include <cassert>
using namespace std;
void
Element::initialize(FWPlatform * _platform) {
assert(_platform);
if (_platform) {
platform = _platform;
... |
<commit_before>/******************************************************************************\
* File: appl.cpp
* Purpose: Implementation of sample classes for wxextension
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 1998-2009, Anton van Wezenbeek
* All rights are reserve... |
<commit_before>#pragma once
#include <iterator>
#include <cstdlib> //malloc, realloc
#include <cstring> //memcpy, memmove
#include <exception> //bad_alloc
#include <type_traits>
#include <utility>
#include <iostream>
namespace tyti {
template<typename T>
class any_iterator : std::iterator<std::bidirectional_iterato... |
<commit_before>/******************************************************************************\
* File: app.cpp
* Purpose: Implementation of classes for syncodbcquery
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 2008-2009, Anton van Wezenbeek
* All rights are reserved. Rep... |
<commit_before>#include "Poker.h"
#include "../GameObject.h"
#include "../Timer.h"
#include "../Advertisement.h"
Poker::Poker() :
m_InitialPlayers(4),
m_InitialMoney(1000),
m_RoundCounter(1),
m_PotMoney(0),
bettingCycle(1),
player0Frame(20, 16, 38, 7),
player1Frame(0 , 9, 38, 7),
playe... |
<commit_before>#include "Poker.h"
#include "../GameObject.h"
#include "../Advertisement.h"
Poker::Poker() :
m_InitialPlayers(4),
m_InitialMoney(*playerBalance),
m_RoundCounter(1),
m_PotMoney(0),
bettingCycle(1),
player0Frame(20, 16, 38, 7),
player1Frame(0 , 9, 38, 7),
player2Frame(20, ... |
<commit_before>//script showing how to use the GL viewer API to animate a picture
//Author: Richard maunder
#include "TGLViewer.h"
#include "TGLPerspectiveCamera.h"
#include "TTimer.h"
#include "TRandom.h"
#include "TVirtualPad.h"
TGLViewer::ECameraType camera;
TTimer timer(25);
TRandom randGen(0);
Int_t moveCount =... |
<commit_before>/*
* @Author: Ubi de Feo | Future Tailors
* @Date: 2017-07-09 16:34:07
* @Last Modified by: ubi
* @Last Modified time: 2017-07-09 16:41:17
*/
#include "FTDebouncer.h"
/* CONSTRUCTORS/DESTRUCTOR */
FTDebouncer::FTDebouncer() : debounceDelay(40) {
debouncedItemsCount = 0;
firstDebounceItem = l... |
<commit_before>/*
* Copyright 2022 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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 reta... |
<commit_before>/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope... |
<commit_before>#include <algorithm>
#include <cstdlib>
#include <csignal>
#include <iterator>
#include <iostream>
#include <sstream>
#include <string>
#include <sys/wait.h>
#include <list>
#include "shelly.hpp"
#include "commands.hpp"
Shelly::Shelly() : exit(false)
{ }
int Shelly::start()
{
while( ! exit)
{
// D... |
<commit_before>/*
* This file is part of the UnTech Editor Suite.
* Copyright (c) 2016 - 2018, Marcus Rowe <undisbeliever@gmail.com>.
* Distributed under The MIT License: https://opensource.org/licenses/MIT
*/
#include "spriteimporter-serializer.h"
#include "animation/serializer.h"
#include "models/common/atomico... |
<commit_before>#include <QtTest/QtTest>
#include <QDebug>
#include "../../../modules/Qnite/plugin/qniteticker.h"
class FooTicker : public QniteTicker
{
Q_OBJECT
public:
FooTicker(QObject * p=0) : QniteTicker(p) {}
void buildTicks()
{
m_majorTicks.clear();
for (int i=0; i<m_numSteps; ++i) {
... |
<commit_before><?hh //strict
namespace Hackdinium\Game;
use Hackdinium\Aim;
final class Pos {
public ImmVector<Pos> $neighbors = ImmVector {};
public function __construct(public int $x, public int $y) {}
public function neighbors() : ImmVector<Pos> {
return Aim::members()->map($dir ==> $this->to... |
<commit_before>// Copyright (c) 2020 Ultimaker B.V.
// CuraEngine is released under the terms of the AGPLv3 or higher.
#include <algorithm> //For std::partition_copy and std::min_element.
#include <unordered_set>
#include "WallToolPaths.h"
#include "SkeletalTrapezoidation.h"
#include "BeadingStrategy/BeadingOrderOpt... |
<commit_before>#include <tiramisu/tiramisu.h>
#include <tiramisu/auto_scheduler/evaluator.h>
#include <tiramisu/auto_scheduler/search_method.h>
using namespace tiramisu;
// Set to true to perform autoscheduling
bool perform_autoscheduling = false;
// Path to python (please give absolute path)
const std::string py_cm... |
<commit_before>//
// Created by Michael Barker on 01/09/15.
//
#include "NetUtil.h"
#ifdef __APPLE__
#include <libkern/OSByteOrder.h>
#define htobe16(x) OSSwapHostToBigInt16(x)
#define htole16(x) OSSwapHostToLittleInt16(x)
#define be16toh(x) OSSwapBigToHostInt16(x)
#define le16toh(x) OSSwapLittleToHostInt16(x)
#de... |
<commit_before>// Copyright (c) 2013 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 "ui/message_center/views/toast_contents_view.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/mem... |
<commit_before>#include "Exporter.h"
#include "VideoFile.h"
#include "SoundBuffer.h"
#include "Common.h"
#include <QtGui>
#include <QtDebug>
using namespace WTS;
class AssertFailed {
public:
AssertFailed(const QString& cond, const QString& file, int line,
QString extra = QString())
{
... |
<commit_before>//===- MultiJITTest.cpp - Unit tests for instantiating multiple JITs ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "can/canread.h"
#include "can/canwrite.h"
#include "signals.h"
#include "util/log.h"
#include "config.h"
#include "shared_handlers.h"
namespace can = openxc::can;
using openxc::util::log::debug;
using openxc::pipeline::Pipeline;
using openxc::config::getConfiguration;
using openxc::can::read::... |
<commit_before>/*
* Copyright 2009-2020 The VOTCA Development Team (http://www.votca.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
<commit_before>/**
* The MIT License (MIT)
*
* Copyright (c) 2015 Nathan Osman
*
* 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
... |
<commit_before>
#include "Grabber.h"
#include "tis_logging.h"
using namespace tis_imaging;
Grabber::Grabber ()
: device(nullptr), pipeline(std::make_shared<PipelineManager>())
{}
Grabber::~Grabber ()
{
if (isDeviceOpen())
closeDevice();
}
bool Grabber::openDevice (const CaptureDevice& _device)
... |
<commit_before>// csamisc_strictaliasing.cpp -*-C++-*-
#include <clang/AST/ExprCXX.h>
#include <csabase_analyser.h>
#include <csabase_registercheck.h>
#include <csabase_report.h>
#include <string>
using namespace csabase;
using namespace clang;
// -----------------------------... |
<commit_before>// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <Rosetta/Cards/Cards.hpp>
#include <RosettaTor... |
<commit_before>#include "TestClass.hpp"
static int magic = 0x11223344;
int TestClass::testOutlineFunction()
{
return someData_ * reinterpret_cast<int>(&magic);
}
int TestClass::testOutlineFunctionWithStaticVariable()
{
static int staticVar = -1;
staticVar += testOutlineFunction();
return staticVar;
... |
<commit_before>#include <algorithm>
#include <vector>
#include "unittest/gtest.hpp"
#include "btree/node.hpp"
#include "btree/leaf_node.hpp"
namespace unittest {
// TODO: This is rather duplicative of fsck::check_value.
void expect_valid_value_shallowly(const btree_value *value) {
EXPECT_TRUE(!(value->metadata_... |
<commit_before>// Translated from vib.tcl
#include <vtkActor.h>
#include <vtkCallbackCommand.h>
#include <vtkCamera.h>
#include <vtkDatasetMapper.h>
#include <vtkLookupTable.h>
#include <vtkNamedColors.h>
#include <vtkOutlineFilter.h>
#include <vtkPolyData.h>
#include <vtkPolyDataMapper.h>
#include <vtkPolyDataNormals... |
<commit_before>/**********************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013 Daniel Edler, Martin Rosvall
For more information, see <http://www.mapequation.org>
This file is part of Infomap software package.
... |
<commit_before>#include "Core/IncludeExcludeInfo.h"
#include "gtest/gtest.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include <fstream>
// FIXME: copied from unittests/Support/Path.cpp
#define ASSERT_NO_ERROR(x) \
if (llvm::error_code AS... |
<commit_before>#ifndef AL_AMBIFILEPLAYER_H
#define AL_AMBIFILEPLAYER_H
#include "allocore/sound/al_Ambisonics.hpp"
#include "allocore/sound/al_Speaker.hpp"
#include "allocore/io/al_AudioIOData.hpp"
#include "allocore/system/al_Parameter.hpp"
#include "alloaudio/al_SoundfileBuffered.hpp"
#include "alloaudio/al_AmbiTune... |
<commit_before>#include <algorithm>
#include <iostream>
#include "allocore/system/al_PeriodicThread.hpp"
namespace al{
PeriodicThread::PeriodicThread(double periodSec)
: mAutocorrect(0.1),
mUserData(nullptr)
{
period(periodSec);
}
PeriodicThread::PeriodicThread(const PeriodicThread& o)
: Thread(o), mPerio... |
<commit_before>#ifndef AMGCL_COARSENING_SMOOTHED_AGGREGATION_HPP
#define AMGCL_COARSENING_SMOOTHED_AGGREGATION_HPP
/*
The MIT License
Copyright (c) 2012-2014 Denis Demidov <dennis.demidov@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documenta... |
<commit_before>/**
* \file standard_gaussian.hpp
* \date May 2014
* \author Jan Issac (jan.issac@gmail.com)
* \author Manuel Wuthrich (manuel.wuthrich@gmail.com)
*/
#ifndef FL__DISTRIBUTION__STANDARD_GAUSSIAN_HPP
#define FL__DISTRIBUTION__STANDARD_GAUSSIAN_HPP
#include <Eigen/Dense>
#include <random>
#include <... |
<commit_before>/*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "modules.h"
#include <boost/algorithm/string/predicate.hpp>
#include... |
<commit_before>/*ckwg +5
* Copyright 2012 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "version.h"
#include <vistk/version.h>
/**
* \file version.cxx
*
... |
<commit_before>// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/***********************************************************************************
**
** OrionApplication.cpp
**
** Copyright (C) August 2016 ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: strmsys.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2006-09-17 01:01:47 $
*
* The Contents of this file are made ... |
<commit_before>/* Copyright 2015 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>#ifndef __RANK_FILTER__
#define __RANK_FILTER__
#include <deque>
#include <set>
#include <cmath>
#include <cassert>
#include <functional>
#include <iostream>
#include <iterator>
#include <type_traits>
#include <utility>
#include <boost/container/set.hpp>
#include <boost/container/node_allocator.hpp>
... |
<commit_before>/* ---------------------------------------------------------------------------
** This software is in the public domain, furnished "as is", without technical
** support, and with no warranty, express or implied, as to its usefulness for
** any purpose.
**
** PeerConnectionManager.cpp
**
** -------------... |
<commit_before>/*
* Copyright 2006 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. Al... |
<commit_before>///
/// @file PhiTiny.cpp
/// @brief phi_tiny(x, a) calculates the partial sieve function in
/// constant time (using lookup tables) for small values of
/// a <= 6 using the formula below:
///
/// phi(x, a) = (x / pp) * φ(pp) + phi(x % pp, a)
/// with pp = 2 * 3 * ... * prime... |
<commit_before>#include "GeniusCaeli.h"
//Seeded, so of course the same seed should always return the same grid.
void GeniusCaeli::genGrid2D(uint seed){
//Sounds like having a pre-generated grid and letting the values eventually repeat is a
//standard, Ken Perlin-approved approach to make this faster.
std::unif... |
<commit_before>#include <QGLWidget>
#include <QMatrix4x4>
#include <QVector3D>
#include <qmath.h>
#include "Logo.hpp"
#include <boost/math/constants/constants.hpp>
using namespace boost::math;
static const qreal bar_thickness = 0.10;
static const qreal logo_depth = 0.10;
static const qreal nleg1_height = 0.55; //th... |
<commit_before>//*****************************************************************************
// Copyright 2017-2019 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>#include "gl.hpp"
#include <QApplication>
#include <QOpenGLWidget>
#include <QOpenGLShaderProgram>
#include "eigen.hpp"
#include <array>
using namespace eigen;
struct mesh {
vector<vec3> vertices;
vector<vec3> normals;
vector<vec2> texcoords;
};
namespace gl {
struct camera {
vec3 pos... |
<commit_before>/*
* This file is part of knarr
*
* (c) 2016- Daniele De Sensi (d.desensi.software@gmail.com)
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#include "external/cppnanomsg/nn.hpp"
#include "knarr.hpp"
#include <cm... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.o... |
<commit_before>// Use, modification and distribution are subject to 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)
// Copyright Paul A. Bristow 2013
// Copyright Christopher Kormanyos 2013.
// Copyright John Maddock 2013.
#ifde... |
<commit_before>#pragma once
#include <cstddef>
#include <cstdint>
#include <fstream>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
#include <tudocomp/io/MMapHandle.hpp>
#include <tudocomp/io/InputSource.hpp>
#include <tudocomp/io/InputRestrictions.hpp>
#include <tudocomp/io/IOUtil.hpp>
#i... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 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 <map>
#include <memory>
#include <fstream>
#include <iostream>
#include "appsum.h"
#include "cmdline.h"
#include "vcfio.h"
#include "plinkio.h"
#include "hapmapio.h"
#include "rtmio.h"
namespace {
std::map<allele_t,int> count_allele(const vector<allele_t> &v)
{
std::map<allele_t,int> ac;
... |
<commit_before>// -------------------------------------------------------------------------
// CV Drone (= OpenCV + AR.Drone)
// Copyright(C) 2013 puku0x
// https://github.com/puku0x/cvdrone
//
// This source file is part of CV Drone library.
//
// This library is free software; you can redistribute it and/or
// modify... |
<commit_before>//C++ header - Open Scene Graph Simulation - Copyright (C) 1998-2002 Robert Osfield
// Distributed under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation.
//
// All software using osgSim must be GPL'd or excempted via the
// purchase of the Open Scene Gra... |
<commit_before>/*//////////////////////////////////////////////////////////////////
//// SKIRT -- an advanced radiative transfer code ////
//// © Astronomical Observatory, Ghent University ////
///////////////////////////////////////////////////////////////// */
#ifndef LOCKFREE_HPP
#define... |
<commit_before>#include "lexer.h"
#include "token.h"
#include "utils.h"
#include "exceptions.h"
namespace sota {
Token SotaLexer::Take(Token token) {
if (token)
_tokens.push_back(token);
return token;
}
Token SotaLexer::Emit() {
Token token = { TokenType::EndOfFile, In... |
<commit_before>#include "motorController.h"
#include "SubMotorController/MotorCurrentMsg.h"
#include "time.h"
#include "ros/ros.h"
#include "std_msgs/String.h"
#include <string>
using namespace std;
void printMessageMismatchError() {
}
ros::NodeHandle* n;
void MotorControllerHandler::print(string error) {
bool in... |
<commit_before>#include <iostream>
#include <vector>
#include <primesieve/ParallelPrimeSieve.hpp>
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/multiprecision/miller_rabin.hpp>
#include <boost/math/common_factor.hpp>
#include <primesieve.hpp>
#include <gmpxx.h>
using namespace boost::multiprecision;
cpp... |
<commit_before>#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif
#include "sass_interface.h"
#include "context.hpp"
#include "inspect.hpp"
#ifndef SASS_ERROR_HANDLING
#include "error_handling.hpp"
#endif
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cstring>
exte... |
<commit_before>#include "KeyboardSettingsPage.hpp"
#include "util/LayoutCreator.hpp"
#include <QFormLayout>
#include <QLabel>
namespace chatterino {
KeyboardSettingsPage::KeyboardSettingsPage()
: SettingsPage("Keybindings", "")
{
auto layout =
LayoutCreator<KeyboardSettingsPage>(this).s... |
<commit_before>/*
* Button representing user's Avatar
*
* Copyright (C) 2011 Martin Klapetek <martin.klapetek@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
... |
<commit_before>/*-------------------------------------------------------------------------
*
* nested_loop_join.cpp
* file description
*
* Copyright(c) 2015, CMU
*
* /peloton/src/executor/nested_loop_join_executor.cpp
*
*-------------------------------------------------------------------------
*/
#include "b... |
<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 test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICE... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2000 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. Redi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: detfunc.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2005-09-08 17:32:10 $
*
* The Contents of this file are made a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.