text stringlengths 54 60.6k |
|---|
<commit_before>#include "template.h"
#include <simlib/time.h>
Template::TemplateEnder Template::baseTemplate(const StringView& title,
const StringView& styles, const StringView& scripts)
{
resp.headers["Content-Type"] = "text/html; charset=utf-8";
resp.content = "";
append("<!DOCTYPE html>\n"
"<html lang=\"en\... |
<commit_before><commit_msg>range support in globs<commit_after><|endoftext|> |
<commit_before>#include "euclidean_dist_grad.h"
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/shape_inference.h"
#include "tensorflow/core/framework/register_types.h"
// Not available for user made kernels
//#include "tensorflow/core/kernels/fill_functor.h"
#include <cmath>
#include <th... |
<commit_before>
#include <stdio.h>
#include "eudaq/FileReader.hh"
#include "eudaq/PluginManager.hh"
#include "eudaq/OptionParser.hh"
#include "eudaq/StandardEvent.hh"
#include <iostream>
#include <vector>
#include <map>
#ifndef WIN32
#include <inttypes.h>
#endif
#include "cfunc.h"
using namespace eudaq;
void euda... |
<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>#ifndef TOPPRA_CONST_ACCEL_HPP
#define TOPPRA_CONST_ACCEL_HPP
#include <toppra/parametrizer.hpp>
#include <toppra/toppra.hpp>
namespace toppra {
namespace parametrizer {
/** \brief A path parametrizer with constant acceleration assumption.
*
* We assume that in each segment, the path acceleration i... |
<commit_before>/*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>
using namespace View;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
undoButton = new QPushButton(this);
undoButton->setText("Undo");
undoButton->mov... |
<commit_before>#include <bits/stdc++.h>
using namespace std;
// ---- Start ----
template<typename T, typename Cmp=less<T> >
void quick_sort(T *beg, T *end, const Cmp &cmp = Cmp()){
if(beg == end || beg+1==end)return;
T mid = *beg;
T *l = beg+1, *r = end-1;
while(l != r+1){
if(cmp(mid, *r))r--;
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: optupdt.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: ihi $ $Date: 2006-08-04 09:48:19 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* $RCSfile: tabline.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: pb $ $Date: 2000-09-26 06:37:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlcnitm.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: obo $ $Date: 2006-10-12 12:56:25 $
*
* The Contents of this file are made... |
<commit_before>#include <stan/math/prim/scal.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include <gtest/gtest.h>
TEST(MathFunctions, falling_factorial) {
using stan::math::falling_factorial;
EXPECT_FLOAT_EQ(24, falling_factorial(4.0,3));
EXPECT_FLOAT_EQ(120, falling_factorial(5.0,4));
EXPEC... |
<commit_before>#define GURKE_STEP_NAME_PREFIX TestSteps
#include "gurkenlaeufer/Step.h"
#include "gtest/gtest.h"
#include <iostream>
#include <vector>
struct Calculator {
std::vector<int> values;
};
STEP(".*have entered (\\d+) into the calculator$")
{
// This step uses the gurkenlaeufer native API
auto c... |
<commit_before>/* Copyright (c) 2008 Eric Scott Albright
*
* 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, co... |
<commit_before>/*
level.cpp
Contains functions for loading and saving level data.
This code is released under the terms of the MIT license.
See COPYING.txt for details.
*/
#include "compress.h"
#include "romfile.h"
#include "level.h"
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cstdi... |
<commit_before>#include <iostream>
#include <fstream>
#include <string>
// Loriano: let's try Armadillo quick code
#include <armadillo>
#define ENTDIM 8
#define COORDIM (ENTDIM-2)
namespace
{
int numofline (const char * fname)
{
int number_of_lines = 0;
std::string line;
std::ifstream myfile(fnam... |
<commit_before>#include "lexer.hpp"
#include <cctype>
#include <algorithm>
#include <iterator>
#include <vector>
namespace klang {
namespace {
using const_iterator = std::string::const_iterator;
}
Token::Token()
: type_(TokenType::UNKNOWN), str_(), line_(-1)
{}
Token::Token(TokenType type, const std::string& st... |
<commit_before><commit_msg>Use +=<commit_after><|endoftext|> |
<commit_before><commit_msg>coverity#1257108 Explicit null dereferenced<commit_after><|endoftext|> |
<commit_before>#include "connection_manager.hpp"
#include "constants.hpp"
#include "filesystem.hpp"
#include "grabber_alerts_monitor.hpp"
#include "karabiner_version.h"
#include "logger.hpp"
#include "migration.hpp"
#include "process_utility.hpp"
#include "spdlog_utility.hpp"
#include "thread_utility.hpp"
#include "upd... |
<commit_before>/*************************************************************************
*
* $RCSfile: swlbox.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2004-08-12 12:58:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>#include <IOKit/hid/IOHIDKeys.h>
#include "CommonData.hpp"
#include "Config.hpp"
#include "EventInputQueue.hpp"
#include "FlagStatus.hpp"
#include "IOLockWrapper.hpp"
#include "ListHookedKeyboard.hpp"
#include "RemapClass.hpp"
namespace org_pqrs_KeyRemap4MacBook {
namespace {
ListHookedKeyboard li... |
<commit_before>/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation... |
<commit_before>/*************************************************************************
*
* $RCSfile: shdwcrsr.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 17:14:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>/*-------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2018 Advanced Micro Devices, Inc.
* Copyright (c) 2018 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may n... |
<commit_before>#include "dummy_video.h"
#include <halley/core/graphics/painter.h>
#include <halley/core/graphics/texture.h>
#include <halley/core/graphics/shader.h>
#include <halley/core/graphics/render_target/render_target_texture.h>
#include "dummy_system.h"
using namespace Halley;
DummyVideoAPI::DummyVideoAPI(Syst... |
<commit_before>/***************************************************************************
* Copyright (C) 2007 by Lothar May *
* *
* This program is free software; you can redistribute it and/or modi... |
<commit_before> /*
* Copyright (C) 2006-2015 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF... |
<commit_before>/*
* Copyright (c)2015 Oasis LMF Limited
* 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 ... |
<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>#ifndef ZXTK_UTILITIES_MODULES_REGISTER_SET_INCLUDE_GUARD
#define ZXTK_UTILITIES_MODULES_REGISTER_SET_INCLUDE_GUARD
#include <zxtk/utilities/exchange.hpp>
#include <zxtk/misc/zxtk_types.hpp>
#include <zxtk/misc/zxtk_config.hpp>
#include <utility>
#include <cstddef>
namespace zxtk {
namespace regist... |
<commit_before>// The MIT License(MIT)
//
// Copyright 2017 bladez-fate
//
// 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... |
<commit_before>#include <node.h>
#include <v8.h>
#include "LRUCache.h"
using namespace v8;
void init(Handle<Object> exports)
{
LRUCache::init(exports);
}
NODE_MODULE(native, init)
<commit_msg>test travis<commit_after>#include <node.h>
#include <nan.h>
#include "LRUCache.h"
using namespace v8;
void init(Handle<Obj... |
<commit_before>/*
* Copyright (c) 2013 Nicholas Corgan ([email protected])
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#include <iostream>
#include <stdexcept>
#include <string>
#include <vector>
#include <boost/cast.hpp>
#i... |
<commit_before>//===-- tsan_mman.cc --------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "logging.h"
#include <boost/log/utility/setup/console.hpp>
namespace logging = boost::log;
using boost::log::trivial::severity_level;
severity_level gLoggingThreshold;
int64_t get_curlopt_verbose() { return gLoggingThreshold <= boost::log::trivial::debug ? 1L : 0L; }
void logger_init() {
... |
<commit_before>#include "ofApp.h"
// ball related properties
int ballPosX; // x coordinate of the ball's position
int ballPosY; // y coordinate of the ball's position
int ballRadius; // radius of the ball
bool ballIsMoving; // indicates the moving state of the ball
// overall helper values
int moveme... |
<commit_before>#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
}
//--------------------------------------------------------------
void ofApp::update(){
}
//--------------------------------------------------------------
void ofApp::draw(){
ofBackgro... |
<commit_before>#include "ostree.h"
#include <json/json.h>
#include <stdio.h>
#include <unistd.h>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/filesystem.hpp>
#include <fstream>
#include "logger.h"
#include "utils.h... |
<commit_before>//=======================================================================
// Copyright 2014-2015 David Simmons-Duffin.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=============================================================... |
<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>#include <sstream>
#include <vector>
#include "extensions/filters/network/redis_proxy/command_splitter_impl.h"
#include "test/integration/integration.h"
using testing::Return;
namespace Envoy {
namespace {
// This is a basic redis_proxy configuration with a single host
// in the cluster. The load ba... |
<commit_before>/*=========================================================================
Program: Monteverdi2
Language: C++
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See Copyright.txt for details.
Monteverdi2 is distributed under the CeCILL licence version 2. See
Licenc... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>// $Id: patch_recovery_error_estimator.C,v 1.2 2004-06-02 20:55:17 jwpeterson Exp $
// The libMesh Finite Element Library.
// Copyright (C) 2002-2004 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser Gen... |
<commit_before>/*************************************************************************
*
* $RCSfile: monst.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:30:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>// Tests trace pc guard coverage collection.
//
// REQUIRES: has_sancovcc
// XFAIL: tsan
//
// RUN: DIR=%t_workdir
// RUN: CLANG_ARGS="-O0 -fsanitize-coverage=trace-pc-guard"
// RUN: rm -rf $DIR
// RUN: mkdir -p $DIR
// RUN: cd $DIR
// RUN: %clangxx -DSHARED1 $CLANG_ARGS -shared %s -o %t_1.so -fPIC
// RU... |
<commit_before>
#ifndef __SHUTDOWNICON_HXX__
#define __SHUTDOWNICON_HXX__
#ifndef _COM_SUN_STAR_FRAME_XTERMINATELISTENER_HPP_
#include <com/sun/star/frame/XTerminateListener.hpp>
#endif
#ifndef _COM_SUN_STAR_FRAME_XDESKTOP_HPP_
#include <com/sun/star/frame/XDesktop.hpp>
#endif
#ifndef _COM_SUN_STAR_LANG_XSINGLESERVICE... |
<commit_before>#include "win32_window.h"
#include <flutter_windows.h>
#include "resource.h"
namespace {
constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW";
// The number of Win32Window objects that currently exist.
static int g_active_window_count = 0;
using EnableNonClientDpiScaling = BO... |
<commit_before><commit_msg>no message<commit_after><|endoftext|> |
<commit_before><commit_msg>Fixed bug in ProjectGen not merging in code properly for code integrate locations<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: stlsheet.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: kz $ $Date: 2008-04-04 12:44:44 $
*
* The Contents of this file are made ... |
<commit_before>/**
* The Strawhouse Pattern.
*
* We allow or deny clients according to their IP address. It may keep
* spammers and idiots away, but won't stop a real attacker for more
* than a heartbeat.
*
* \date 25 Nov 2014
* \author Prem Shankar Kumar (\@meprem)
*/
#include <zmqpp/zmqpp.hpp>
#inclu... |
<commit_before>// netfortune session
// Copyright © 2017 Christian Rapp
// 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 versi... |
<commit_before>#include "IdPasskeyHandler.hpp"
#include <errno.h>
#include <pwd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <termios.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#in... |
<commit_before>// Copyright 2018 The Amber Authors.
//
// 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 applicabl... |
<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.
c... |
<commit_before>/*=========================================================================
*
* Copyright RTK 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>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>#include "test/mocks/http/mocks.h"
#include "test/test_common/utility.h"
#include "gtest/gtest.h"
#include "library/common/api/external.h"
#include "library/common/extensions/filters/http/platform_bridge/filter.h"
#include "library/common/extensions/filters/http/platform_bridge/filter.pb.h"
using testi... |
<commit_before>#include <utility>
#include <cmath>
#include "shape.hpp"
#include "data_structures.hpp"
Shape::Shape(Color color, float index_of_refraction, float ambient_coef,
float diffuse_coef, float specular_coef)
: index_of_refraction(index_of_refraction), color(color), ambient_coef(ambient_coef)... |
<commit_before>#include "state.h"
#include "quadtree.h"
#include <glog/logging.h>
#include <limits.h>
namespace GameState {
bool initialized_ = false;
sf::Vector2f camera_;
sf::FloatRect cameraBounds_;
util::Tick ticks_ = 0;
std::unique_ptr<entities::Sprite> hero_;
float moveSpeed_;
// Jumping stuff
bool jumpi... |
<commit_before>/*************************************************************************
* Copyright (C) 2011-2012 by Paul-Louis Ageneau *
* paul-louis (at) ageneau (dot) org *
* *
* ... |
<commit_before>#pragma once
enum TokenType {
// Symbols //////
NUL, // Reserved
WHITESPACE, // Spaces or tabs
INDENT, // Spaces or tabs
DEDENT, // Spaces or tabs
NEWLINE, // /n
LEFT_BRACKET, // {
RIGHT_BRACKET, // }
LEFT_SQUARE, // [
RIGHT_SQUARE, // ]
LEFT_PAREN, // ... |
<commit_before>/*
Copyright (c) 2011, The Mineserver Project
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 ... |
<commit_before>/***********************************************************************************
** MIT License **
** **
** Copyright (c) 2017 Victor DENIS (victordenis01@... |
<commit_before>/***********************************************************************************
** MIT License **
** **
** Copyright (c) 2018 Victor DENIS (victordenis01@... |
<commit_before>#include "stdafx.h"
#include "CppUnitTest.h"
#include <RoundRobin.h>
#include "ExceptionThrowingRoundRobinTask.h"
using namespace CppRoundRobin;
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace CppRoundRobinTest
{
TEST_CLASS(RoundRobinTests)
{
public:
TEST_... |
<commit_before>/*
Copyright (c) 2010 Aldo J. Nunez
Licensed under the Apache License, Version 2.0.
See the LICENSE text file for details.
*/
#include "Common.h"
#include "StackFrame.h"
#include "Thread.h"
#include "Module.h"
#include "SingleDocumentContext.h"
#include "CodeContext.h"
#include "E... |
<commit_before>/*
* -----------------------------------------------------------------------------
* This source file is part of OGRE
* (Object-oriented Graphics Rendering Engine)
* For the latest info, see http://www.ogre3d.org/
*
* Copyright (c) 2000-2013 Torus Knot Software Ltd
*
* Permission is hereby grante... |
<commit_before><commit_msg>Need to cast to WebCore::Widget explicitly since the method being called takes a void pointer! Argh :(<commit_after><|endoftext|> |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>#include <new>
#include "types.h"
#include "kernel.hh"
#include "cpputil.hh"
#include "spinlock.h"
#include "amd64.h"
#include "condvar.h"
#include "proc.hh"
#include "cpu.hh"
#include "elf.hh"
const std::nothrow_t std::nothrow;
void*
operator new(std::size_t nbytes)
{
panic("global operator new");
... |
<commit_before>/******************************************************************************
* Copyright (c) 2011, Michael P. Gerlek ([email protected])
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions a... |
<commit_before>// -*- Mode: c++-mode; c-basic-offset: 2; indent-tabs-mode: t; tab-width: 2; -*-
//
// Copyright (C) 2004 Grzegorz Jaskiewicz <gj at pointblue.com.pl>
//
// gadurichtextformat.cpp
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public Li... |
<commit_before>#include <iostream>
#include <talk/base/cryptstring.h>
#include <talk/base/logging.h>
#include <talk/xmpp/xmppclientsettings.h>
#include "xmppthread.h"
int main(int argc, char* argv[]) {
talk_base::LogMessage::LogToDebug(talk_base::LS_SENSITIVE);
talk_base::InsecureCryptStringImpl ipass;
ipass.p... |
<commit_before>/**
* \ file FlushToZero.cpp
*/
#include <cmath>
#include <ATK/Utility/FlushToZero.h>
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_NO_MAIN
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE(FTZ_test)
{
ATK::FlushToZero ftz;
BOOST_CHECK_THROW(throw std::runtime_error("check"), std::runti... |
<commit_before>#include "types.h"
#include "kernel.hh"
#include "mmu.h"
#include "amd64.h"
#include "spinlock.h"
#include "condvar.h"
#include "queue.h"
#include "proc.hh"
#include "cpu.hh"
#include "bits.hh"
#include "kmtrace.hh"
#include "sched.hh"
#include "vm.hh"
enum { sched_debug = 0 };
struct runq {
STAILQ_H... |
<commit_before>//
// Copyright (c) 2018, University of Edinburgh
// 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>#include "all.h"
#include "boost_test.h"
class MockBlock : public Block
{
void work(void) {}
};
BOOST_AUTO_TEST_CASE( graphValidityTests )
{
BOOST_CHECK(0);
#if 0
MockBlock block1;
MockBlock block2;
MockBlock block3;
MockBlock block4;
Graph dut;
/* No connections yet */
BOOST_CHECK_THROW(dut... |
<commit_before>#pragma once
#include "util.cpp"
#include <set>
#include <cmath>
struct Coord {
int r, c, h;
};
bool operator < (const Coord &a, const Coord &b) {
if (a.r != b.r)
return a.r < b.r;
else if (a.c != b.c)
return a.c < b.c;
else
return a.h < b.h;
}
double compute_distance(double r1, double c1, d... |
<commit_before>//===-- DTMMessageParse_Test.cpp --------------------------------*- C++ -*-===//
//
// This file is distributed uner the MIT license. See LICENSE.txt for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// Functional tests for parseing DTM Messag... |
<commit_before>/*
* Copyright (c) 2013 Teragon Audio. 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 lis... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// This is a test program for Safe-Bit-Fields in the Loki Library.
// Copyright (c) 2009 by Fedor Pikus & Rich Sposato
// The copyright on this file is protected under the terms of the MIT license.
//
// Permission to use... |
<commit_before>#include "fountain.h"
#include "TestApplication.h"
using namespace fei;
Texture tex;
Camera cam;
TestApplication testApp;
Clock mainClock;
ShaderProgram shader;
Image image, image2;
void test()
{
//auto eg = testApp.getEngine();
//if (eg->window->getKey(GLFW_KEY_W)) speed += fei::Vec2(0.0f, 2.0f);
... |
<commit_before>/*
============================================================================
Name : DmdSignal.cpp
Author : weizhenwei, <[email protected]>
Date :2016.02.13
Copyright :
* Copyright (c) 2016, weizhenwei
* All rights reserved.
*
* Redistribution and use in source a... |
<commit_before>/*! \class TrackFitPCAProducer
*
* \author S Viret / L Storchi
* \date 2016, Mar 4
*
*/
#ifndef TRACK_FITTER_PCA_H
#define TRACK_FITTER_PCA_H
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 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. Redistri... |
<commit_before>#include "HuboMotor.h"
#include <string>
#include <iostream>
HuboMotor::HuboMotor(){
this->ticks_position = 0;
this->desired_position = 0;
this->omega = MAX_ANGULAR_VELOCITY;
//NEW_DATA
currGoal = 0;
interStep = 0;
interVel = 0;
currVel = 0;
currPos = 0;
currCu... |
<commit_before>#include "stdafx.h"
#include "Line.h"
const float Line::kLineWidth = 0.0025f;
const float Line::kMinLineWidth = 0.001f;
const float Line::kNeighborInterpolationDistance = 0.03f;
Line::Line()
{
}
Line::~Line()
{
}
void Line::AddNode(float x, float y) {
nodes_.push_back(std::make_pair(x, y));
}
i... |
<commit_before>#include <iostream>
#include <string>
#include <ctime> //for seeding srand
#define WORDLIST_LENGTH 20
#define MAX_INCORRECT_GUESSES 6
using namespace std;
enum EGameState : int
{
WaitingToStart,
InProgress,
Over
};
//draws the current state of the hangman
void DrawHangman(int IncorrectGuesses)
{
... |
<commit_before>/*************************************************************************
*
* $RCSfile: tablecontainer.hxx,v $
*
* $Revision: 1.23 $
*
* last change: $Author: rt $ $Date: 2004-10-22 09:00:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<commit_before>/*
Kopete , The KDE Instant Messenger
Copyright (c) 2001-2002 by Duncan Mac-Vicar Prett <[email protected]>
Viva Chile Mierda!
Started at Wed Dec 26 03:12:10 CLST 2001, Santiago de Chile
Kopete (c) 2002-2003 by the Kopete developers <[email protected]>
*********************... |
<commit_before>#include <common/buffer.h>
#include <event/action.h>
#include <event/callback.h>
#include <event/event_system.h>
#include <io/pipe.h>
#include <xcodec/xcodec.h>
#include <xcodec/xcodec_encoder.h>
#include <xcodec/xcodec_encoder_pipe.h>
XCodecEncoderPipe::XCodecEncoderPipe(XCodec *codec)
: encoder_(co... |
<commit_before>// ascii plain text
// Licence: Lesser GNU Public License 2.1 (LGPL)
#define BUILDING_XYLIB
#include "text.h"
#include <cstdlib>
#include "util.h"
using namespace std;
using namespace xylib::util;
namespace xylib {
const FormatInfo TextDataSet::fmt_info(
"text",
"ascii text",
"", // "txt ... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/screen_recorder.h"
#include <algorithm>
#include "base/bind.h"
#include "base/callback.h"
#include "base/logg... |
<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 <string>
#include <list>
#include <windows.h>
#include <commctrl.h>
#include "app/gfx/native_theme_win.h"
#include "base/comm... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 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. Redistri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.