text stringlengths 54 60.6k |
|---|
<commit_before>//
// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include <GraphUtils.hpp>
#include <TestUtils.hpp>
#include <armnn/INetwork.hpp>
#include <doctest/doctest.h>
using namespace armnn;
namespace
{
#if defined(ARMNNREF_ENABLED)||defined(ARMCOMPUTEC... |
<commit_before>// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the ... |
<commit_before>/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before><commit_msg>Shuffle: make sure not to fail if getClipPreferences was not called<commit_after><|endoftext|> |
<commit_before>// @(#)root/reflex:$Id$
// Author: Stefan Roiser 2004
// Copyright CERN, CH-1211 Geneva 23, 2004-2006, All rights reserved.
//
// Permission to use, copy, modify, and distribute this software for any
// purpose is hereby granted without fee, provided that this copyright and
// permissions notice appear ... |
<commit_before><commit_msg>ENH: Added fractional diffs<commit_after><|endoftext|> |
<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 l... |
<commit_before>//
// Created by Miguel Rentes on 11/01/2017.
//
#include "introduction.h"
using namespace std;
int main(void) {
unsigned int n, q;
string line;
getline(cin, line);
n = (unsigned int) stoi(line.substr(0, 1));
q = (unsigned int) stoi(line.substr(2, 1));
unsigned int* array[n];... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// taskwarrior - a command line task list manager.
//
// Copyright 2006 - 2011, Paul Beckingham, Federico Hernandez.
// All rights reserved.
//
// This program is free software; you can redistribute it and/or modify it under... |
<commit_before>// This file is part of the AliceVision project.
// Copyright (c) 2016 AliceVision contributors.
// This Source Code Form is subject to the terms of the Mozilla Public License,
// v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
#inc... |
<commit_before>/*************************************************************************
*
* $RCSfile: bitmapaction.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: obo $ $Date: 2005-04-18 09:58:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>#ifndef VG_MAPPER_HPP_INCLUDED
#define VG_MAPPER_HPP_INCLUDED
#include <iostream>
#include <map>
#include <chrono>
#include <ctime>
#include "omp.h"
#include "xg.hpp"
#include "alignment.hpp"
#include "path.hpp"
#include "position.hpp"
#include "json2pb.h"
#include "graph.hpp"
#include "gcsa/internal.h"... |
<commit_before>#include <Arduino.h>
#include <IRremote.h>
#include <IRremoteInt.h>
#include "MagicRemoteIrCommunication.h"
MagicRemoteIrCommunication::MagicRemoteIrCommunication()
{
timeLastSend = 0;
}
void MagicRemoteIrCommunication::sendColorCode(byte colorCode)
{
timeLastSend = millis();
irSendColorCode(col... |
<commit_before>#ifndef _BAYES_FILTER_EXCEPTION
#define _BAYES_FILTER_EXCEPTION
/*
* Bayes++ the Bayesian Filtering Library
* Copyright (c) 2004 Michael Stevens
* See accompanying Bayes++.html for terms and conditions of use.
*
* $Header$
* $NoKeywords: $
*/
/*
* Exception types: Exception heirarchy for Bayesi... |
<commit_before>#ifndef NANOCV_THREAD_LOOP_H
#define NANOCV_THREAD_LOOP_H
#include "thread_pool.h"
namespace ncv
{
///
/// \brief split a loop computation of the given size using a thread pool
///
template
<
typename tsize,
class toperator
... |
<commit_before>#include "jnif.h"
#include <erl_driver.h>
static jclass NIF_class;
static jmethodID m_NIF__get_erts_version;
static jmethodID m_NIF__get_otp_release;
static jmethodID m_NIF__get_num_async_threads;
static jmethodID m_NIF__get_num_scheduler_threads;
static JavaVM *jvm;
void enif_system_info(ErlNifSysInf... |
<commit_before>#include "parser.hpp"
//////////////
// Includes //
#include <istream>
#include <string>
#include <vector>
#include <tuple>
#include "json.hpp"
//////////
// Code //
// Creating a parse exception.
ParseException::ParseException(std::string type) {
this->type = type;
}
// Returning a string to re... |
<commit_before>/*
* The main spawn screen
*/
#include "spawnDialog_defines.hpp"
class spawnDialog
{
idd = spawn_dialog;
movingEnable = false;
enableSimulation = true;
onLoad = "uiNamespace setVariable [""UK_SpawnDialog"", _this select 0]";
class Controls
{
class spawnScreen: RscFram... |
<commit_before>/*
* Copyright 2016-2017 deepstreamHub GmbH
*
* 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 a... |
<commit_before>// Copyright (c) 2009 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 "native_client/src/include/portability.h"
#if NACL_OSX
#include <crt_externs.h>
#endif
#ifdef _WIN64 /* TODO(gregoryd): rem... |
<commit_before><commit_msg>Revert 32626 - Remove the expiration check from Chrome code<commit_after><|endoftext|> |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestLinePlot.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Th... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2008-02-25 17:27:17 +0100 (Mo, 25 Feb 2008) $
Version: $Revision: 7837 $
Copyright (c) German Cancer Research Center, Division of Medical and
B... |
<commit_before>/*=============================================================================
Copyright (c) 2012-2013 Richard Otis
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
===============================... |
<commit_before>/*
WiFiServerBearSSL.cpp - SSL server for esp8266, mostly compatible
with Arduino WiFi shield library
Copyright (c) 2018 Earle F. Philhower, III
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License... |
<commit_before>/*********************************************************************
*
* Condor ClassAd library
* Copyright (C) 1990-2003, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI and Rajesh Raman.
*
* This source code is covered by the Condor Public License, which can
* ... |
<commit_before>/*
Copyright (c) 2007, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2015 ARM Limited
*
* 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
*
*... |
<commit_before>/*
Copyright (c) 2007, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>#include <mach/mach_port.h>
#include <mach/mach_interface.h>
#include <mach/mach_init.h>
#include <IOKit/pwr_mgt/IOPMLib.h>
#include <IOKit/IOMessage.h>
#include <pthread.h>
#include <uv.h>
#include "pm.h"
#include "constants.h"
io_connect_t root_port; // a reference to the Root Power Domain IOServ... |
<commit_before>/*
This file is part of KOrganizer.
Copyright (c) 1998 Preston Brown <[email protected]>
Copyright (C) 2003-2004 Reinhold Kainhofer <[email protected]>
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
... |
<commit_before>// Copyright 2010-2013 Google
// 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 a... |
<commit_before>/*
* Banjax is an ATS plugin that:
* enforce regex bans
* store logs in a mysql db
* run SVM on the log result
* send a ban request to swabber in case of banning.
*
* Copyright (c) 2013 eQualit.ie under GNU AGPL v3.0 or l... |
<commit_before>/*
* Copyright (C) 2004-2009 See the AUTHORS file for details.
*
* This program 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.
*/
#include "User.h"
class CNickServ : public C... |
<commit_before>// Copyright (c) 2014-2015 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 "base58.h"
#include "hash.h"
#include "uint256.h"
#include <assert.h>
#include <stdint.h>
#include ... |
<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 "Lice... |
<commit_before>/*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the fi... |
<commit_before>/**
* Clever programming language
* Copyright (c) 2011 Clever Team
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation ... |
<commit_before>#ifndef SRC_CORE_DETAIL_CONNECTION_HPP_
#define SRC_CORE_DETAIL_CONNECTION_HPP_
#include <type_traits>
#include "core/function_traits.hpp"
#include "core/traits.hpp"
namespace fc
{
namespace detail
{
enum void_flag
{
payload_void,
payload_not_void,
invalid,
};
template<class source,class sink, c... |
<commit_before>/*
* FilePathTests.cpp
*
* Copyright (C) 2009-20 by RStudio, PBC
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General ... |
<commit_before>#include "applications.h"
#include <QDir>
const int Applications::NameRole = Qt::UserRole + 1;
const int Applications::IconRole = Qt::UserRole + 2;
const int Applications::ExecRole = Qt::UserRole + 3;
const int Applications::TerminalRole = Qt::UserRole + 4;
Applications::Applications(QObject *parent) :... |
<commit_before>//-------------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2014 Vadim Macagon
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to ... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2011-2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public ... |
<commit_before>/* OpenHoW
* Copyright (C) 2017-2020 Mark Sowden <[email protected]>
*
* 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 3 of the License, or
* (at your optio... |
<commit_before>/*
* Copyright (c) 2012, Dennis Hedback
* 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,
* ... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public Licen... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public Licen... |
<commit_before>/* Efficient left and right language model state for sentence fragments.
* Intended usage:
* Store ChartState with every chart entry.
* To do a rule application:
* 1. Make a ChartState object for your new entry.
* 2. Construct RuleScore.
* 3. Going from left to right, call Terminal or NonTerm... |
<commit_before>#include "config.hpp"
#include <sys/types.h>
#include <boost/filesystem.hpp>
#include <boost/lexical_cast.hpp>
#include <libconfig.h++>
#ifdef _WIN32
#include <shlobj.h>
#include <windows.h>
#include <tchar.h>
// Use explicitly wide char functions and compile for unicode.
tstring home_directory()
{
... |
<commit_before>#include "input-manager.h"
#include "configuration.h"
#include "object/object.h"
#include "util/joystick.h"
#include "globals.h"
#include <stdlib.h>
#include <vector>
using namespace std;
InputManager * InputManager::manager = 0;
InputManager::InputManager(){
manager = this;
joystick = Joystic... |
<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>// Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/util/util.hpp>... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac ([email protected])
* Copyright (c) 2014 Manuel Wuthrich ([email protected])
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before>#include <node.h>
#include <node_buffer.h>
#include "dbstore.h"
using namespace v8;
DbStore::DbStore() : _db(0), _env(0), _txn(0) {};
DbStore::~DbStore() {
fprintf(stderr, "~DbStore %p\n", this);
close();
};
void DbStore::Init(Handle<Object> target) {
// Prepare constructor template
Local<Fun... |
<commit_before>//
// ulib - a collection of useful classes
// Copyright (C) 2006,2007,2008,2012,2013,2016,2017 Michael Fink
//
/// \file Timer.hpp Timer class
//
#pragma once
#pragma warning(push)
#pragma warning(disable: 28159) // Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflo... |
<commit_before>// vi:cin:et:sw=4 ts=4
//
// drafter.cc
//
// Created by Jiri Kratochvil on 2015-02-11
// Copyright (c) 2015 Apiary Inc. All rights reserved.
//
//
//
#include <string>
#include <iostream>
#include <sstream>
#include <fstream>
#include <tr1/memory>
#include <tr1/shared_ptr.h>
#include "snowcrash.h"... |
<commit_before>#include "driver.hpp"
#include "scanner.hpp"
#include "parser.hpp"
#include "ast.hpp"
#include "codegen.hpp"
#include <sstream>
#include <vector>
#include <cstdlib>
#include <getopt.h>
#include <fstream>
#include <functional>
#include <boost/filesystem.hpp>
using namespace std;
using boost::filesystem:... |
<commit_before>/*
* Convert an input and an output pipe to a duplex socket.
*
* This code is used in the test cases to convert stdin/stdout to a
* single socket.
*
* author: Max Kellermann <[email protected]>
*/
#include "duplex.hxx"
#include "system/fd-util.h"
#include "system/fd_util.h"
#include "event/event2.h"
... |
<commit_before>#include "fast++.hpp"
#include <vif/core/main.hpp>
const char* fastpp_version = "1.2";
const constexpr uint_t grid_id::z;
const constexpr uint_t grid_id::av;
const constexpr uint_t grid_id::age;
const constexpr uint_t grid_id::metal;
const constexpr uint_t grid_id::custom;
const constexpr uint_t prop_... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>// Time: O(nlogn)
// Space: O(n)
// BST solution.
class Solution {
public:
/**
* @param buildings: A list of lists of integers
* @return: Find the outline of those buildings
*/
vector<vector<int> > buildingOutline(vector<vector<int> > &buildings) {
unordered_map<int, vect... |
<commit_before>// Time: O(|V| + |E|)
// Space: O(|V| + |E|)
class Solution {
public:
struct node {
int parent;
vector<int>neighbors;
};
bool validTree(int n, vector<pair<int, int>>& edges) {
if (edges.size() != n - 1) {
return false;
} else if (n == 1) {
... |
<commit_before>#include <rm.hpp>
#include <kdb.hpp>
#include <cmdline.hpp>
#include <print.hpp>
#include <iostream>
using namespace std;
using namespace kdb;
RemoveCommand::RemoveCommand()
{}
int RemoveCommand::execute(Cmdline const& cl)
{
if (cl.arguments.size() != 1) throw invalid_argument("1 argument required"... |
<commit_before>void k_print_line(const char* string);
void k_print(const char* string);
extern "C"
void __attribute__ ((section ("main_section"))) kernel_main(){
k_print("thor> ");
return;
}
typedef unsigned int uint8_t __attribute__((__mode__(__QI__)));
typedef unsigned int uint16_t __attribute__ ((__mode_... |
<commit_before>#include <jni.h>
#include <string>
static ln::Application* g_app = nullptr;
extern "C" ::ln::Application* LuminoCreateApplicationInstance();
extern "C" JNIEXPORT void JNICALL
Java_org_lumino_lib_luminoapp_LuminoRenderer_nativeInitialize(
JNIEnv *env,
jobject /* this */,
jint wid... |
<commit_before>#ifndef _macros_hpp_INCLUDED
#define _macros_hpp_INCLUDED
// Central file for keeping (most) macros.
/*------------------------------------------------------------------------*/
// Profiling support.
#define START(P,ARGS...) \
do { \
if (internal->profiles.P.level > internal->opts.profile) break; \... |
<commit_before>#include <iostream>
#include <vw/Image/ImageMath.h>
#include <vw/Image/UtilityViews.h>
#include <vw/Plate/PlateFile.h>
#include <vw/Image/MaskViews.h>
#include <vw/Octave/Main.h>
#include <mvp/Config.h>
#include <mvp/MVPWorkspace.h>
#include <mvp/MVPJob.h>
#include <boost/program_options.hpp>
using n... |
<commit_before>#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/common/common.h>
#include <pcl/common/transforms.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/console/parse.h>
#include <pcl/console/print.h>
#include <pcl/io/pcd_io.h>
#include <iostream>
#include <flann/flann.h>
#... |
<commit_before>Parcer::Parcer(std::string filename){
Tokens = LexicalAnaltysis(filename);
};
/* 構文解析実行
@return 成功:true 失敗:false
*/
bool Parser::doParse(){
if(!Tokens){
fprintf(stderr, "error at lexer\n");
return false;
}
else{
return VisitTranslationUnit();
}
};
TranslationUni... |
<commit_before>/*
* Copyright 2014 David Moreno
*
* 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... |
<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 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2011 Heiko Strathmann
* Copyrig... |
<commit_before>/*======================================================================
This file is part of the elastix software.
Copyright (c) University Medical Center Utrecht. All rights reserved.
See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
details.
This software is distri... |
<commit_before>#include <primio.h>
#include <algorithm>
#include <bits.h>
#include <cassert>
#include <charconv>
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <exception.h>
#include <fcntl.h>
#include <kv.h>
#include <l.h>
#include <o.h>
#include <output.h>
#includ... |
<commit_before>struct Client1;
struct Client2;
typedef Visitor<Client1, Client2> BaseClientVisitor;
struct Client1 : BaseClientVisitor::Visitable<Client1> { };
struct Client2 : BaseClientVisitor::Visitable<Client2> { };
struct Client2a;
struct Client2b;
typedef Visitor<Client2a, Client2b> Client2Visitor;
struct Clien... |
<commit_before>#include "wide_graph_with_listener.h"
#include "../src/transwarp.h"
#include <iostream>
#include <fstream>
#include <random>
#include <numeric>
namespace tw = transwarp;
namespace {
std::mt19937 gen{1};
std::mutex mutex; // protect the generator
using data_t = std::shared_ptr<std::vector<double>>;
da... |
<commit_before>// Copyright © 2012, Université catholique de Louvain
// 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 not... |
<commit_before>/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at LICENSE-CDDL
* See the License for the... |
<commit_before>/*
* Copyright (C) 2012 Arthur O'Dwyer
*
* 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, modi... |
<commit_before>#include <falcon/ctmatch.hpp>
#include <iostream>
#include <type_traits>
template<int i> struct i_ : std::integral_constant<int, i> {};
class my_true_type {};
std::true_type normalize_branch_value(my_true_type) { return {}; }
template<class T, int i> struct Fi { i_<i> operator()(T) const { return {};... |
<commit_before>#include "audio_player.h"
#include <QDebug>
void endTrackSync(HSYNC handle, DWORD channel, DWORD data, void * user) {
// BASS_ChannelStop(channel);
// BASS_ChannelRemoveSync(channel, handle);
AudioPlayer * player = static_cast<AudioPlayer *>(user);
emit player -> playbackEnded();
}
AudioP... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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 <boost/noncopyable.hpp>
#include <boost/python.hpp>
#include <Box2D/Collision/Shapes/b2CircleShape.h>
#include <Box2D/Collision/Shapes/b2PolygonShape.h>
#include <Box2D/Dynamics/b2Body.h>
#include <Box2D/Dynamics/b2Fixture.h>
#include <Box2D/Dynamics/b2World.h>
#include <Box2D/Dynamics/Contacts... |
<commit_before>// Copyright (c) 2013, Adam Simpkins
#include "keyboard_v2.h"
#include <avrpp/progmem.h>
#include <avrpp/usb_hid_keyboard.h>
#include <avrpp/util.h>
#include <util/delay.h>
#if 0
/*
* Maltron's standard QWERTY layout used by recent (2013) 89-series keyboards
*/
static const uint8_t PROGMEM factory_k... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/kernel/bltohbdatamgr.C $ ... |
<commit_before>/*
Q Light Controller - Unit tests
qlcphysical_test.cpp
Copyright (C) Heikki Junnila
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... |
<commit_before>/*
* Convert GError to a HTTP response.
*
* author: Max Kellermann <[email protected]>
*/
#include "request.hxx"
#include "bp_instance.hxx"
#include "http_client.hxx"
#include "nfs/Quark.hxx"
#include "nfs/Error.hxx"
#include "ajp/ajp_client.hxx"
#include "memcached/memcached_client.hxx"
#include "cgi/c... |
<commit_before>
/**
* This file is part of the boostcache package.
*
* (c) Azat Khuzhin <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#include "session.h"
#include "util/log.h"
#include <boost/bind.hpp>
#i... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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 "random.h"
#include "crypto/sha512.h"
#include "support/... |
<commit_before>#include "net/socket/socket.h"
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
#include "glog/logging.h"
namespace net {
Socket::Socket(Socket&& socket) noexcept :
sd_(socket.sd_)
{
socket.sd_ = INVALID_... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: undoblk2.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: kz $ $Date: 2006-07-21 14:26:26 $
*
* The Contents of this file are made ... |
<commit_before>#include <node.h>
#include <nan.h>
#include <v8.h>
#include <vector>
#include "mouse.h"
#include "deadbeef_rand.h"
#include "keypress.h"
#include "screen.h"
#include "screengrab.h"
#include "MMBitmap.h"
using namespace v8;
/*
__ __
| \/ | ___ _ _ ___ ___
| |\/| |/ _ \| | ... |
<commit_before>// Copyright (c) 2009-2012 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "net.h"
#include "bitcoinrpc.h"
using namespace json_spirit;
using namespace std;
Value getconnectioncou... |
<commit_before>//! \file
//! ClientConnectedState class implementation
#include "MainState.h"
#include <sstream>
MainStateEnum ClientConnectedState::LocalUpdate()
{
if (InputHandler::InputTime == 0)
{
if (Index == 0)
{
if (InputHandler::LastInput == Down)
{
Index = 1;
}
else if (InputHandler::La... |
<commit_before>/* The libMesh Finite Element Library. */
/* Copyright (C) 2003 Benjamin S. Kirk */
/* 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 t... |
<commit_before>/* rbOOmit: An implementation of the Certified Reduced Basis method. */
/* Copyright (C) 2009, 2010 David J. Knezevic */
/* This file is part of rbOOmit. */
/* rbOOmit is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU Lesser General Public */
/* License as p... |
<commit_before>//C++ libs
#include <iostream>
#include <string>
#include <queue>
#include <vector>
#include <algorithm>
//C libs
#include <errno.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
const string cmd_delimit... |
<commit_before>#include <algorithm>
#include <boost/tokenizer.hpp>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <sstream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <vector>
#include <pwd.h>
const s... |
<commit_before>/*
* Copyright 2015 Google Inc. 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 requir... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <string>
#include <memory>
#include <vector>
#include <sstream>
#include <boost/tokenizer.hpp>
std::string UserHostInfo();
void Prompt();
void Parse(const char** argslist);
std::vector<std::string> ParseDashArg(const std::string& dashlist);
bool ContainsHo... |
<commit_before>#include "catch.hpp"
#include "../src/population.hpp"
#include "../src/random.hpp"
#include "../src/sequence.hpp"
TEST_CASE( "Test for random", "[random]" ) {
random::set_seed(1);
SECTION ( "random float inside range" ) {
float rand_f = random::f_range(0, 0.5);
REQUIRE(rand_f < 0.5);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.