text stringlengths 54 60.6k |
|---|
<commit_before>#include"line.hpp"
<commit_msg>In Progress Code for Fitting Splines<commit_after>#include"line.hpp"
#include"spline.hpp"
bool debug_spline = false;
void matrix_multiplication_spline(float* arr1, int arr1_rows, int arr1_cols, float* arr2, int arr2_rows, int arr2_cols, float* r_arr)
{
for(in... |
<commit_before>// t0513.cc
// sizeof a struct with a bitfield
struct S1 {
unsigned x : 2;
unsigned y : 30;
};
int arr1[sizeof(S1)==4? +1 : -1];
struct S2 {
unsigned x : 2;
unsigned y : 30;
unsigned z : 1;
};
// edg and icc both say this is 8 ...
int arr2[sizeof(S2)==8? +1 : -1];
// this is from a head... |
<commit_before>#include "nanocv.h"
#include "grid_image.h"
#include <boost/program_options.hpp>
#include <algorithm>
int main(int argc, char *argv[])
{
ncv::init();
using namespace ncv;
// prepare object string-based selection
const strings_t task_ids = task_manager_t::instance().ids(... |
<commit_before>// qual_aux.cc
// some auxillary functions for cc_qual.ast
#include "cc.ast.gen.h" // C++ AST
void TypeSpecifier::printExtras_Q(ostream &os, int indent) const
{
xassert(q);
if (q->ql) {
ind(os, indent);
os << q->literalsToString() << endl;
}
}
char const *TS_name::getTypeName() c... |
<commit_before>/** @file
A simple remap plugin for ATS
@section license License
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 th... |
<commit_before>/*
* eos - A 3D Morphable Model fitting library written in modern C++11/14.
*
* File: include/eos/render/normals.hpp
*
* Copyright 2014-2019 Patrik Huber
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You m... |
<commit_before>/*
* Copyright (C) 2018 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... |
<commit_before>/*
* Copyright (C) 2009, 2010, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#ifndef LIB... |
<commit_before>/*
Copyright (c) 2006, 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>/*
Copyright (c) 2006, 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>/*
Copyright (c) 2016 nshcat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di... |
<commit_before>#include "DataType.h"
#include <iostream>
using namespace std;
DataType::DataType(Type type) {
this->type = type;
this->length = 0;
}
DataType::DataType(DataType::Type type, int length) {
this->type = type;
this->length = length;
}
//map<string, DataType::Type> DataType::str_to_type = {
// {"int... |
<commit_before>#ifndef SQUALL__EVENT_BUFFER_HXX
#define SQUALL__EVENT_BUFFER_HXX
#include <vector>
#include <algorithm>
#include "NonCopyable.hxx"
#include "PlatformLoop.hxx"
#include "PlatformWatcher.hxx"
#ifdef HAVE_UNISTD_H
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#endif // HAVE_UNISTD_H
using st... |
<commit_before>// Copyright (c) 2014-2022 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL
#ifndef TAO_PEGTL_DEMANGLE_HPP
#define TAO_PEGTL_DEMANGLE_HPP
#include <ciso646>
#include <string_view>
#include "config.hpp"
#include "internal/dependent_true.hpp"
... |
<commit_before>// Copyright (c) 2013, Cloudera, inc.
#include "util/net/socket.h"
#include <errno.h>
#include <glog/logging.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <string>
#include "util/errno.h"
#include "util/net/sockaddr.h"
... |
<commit_before>#include "stdafx.h"
#include "Rule.h"
#include "Simulation.h"
namespace sim
{
Rule::Rule(json_spirit::Object &data)
{
weight = 0.0;
for (json_spirit::Pair &pair : data)
{
std::string &key = pair.name_;
if (key == "scores") setupNeededScores(pair.value_.get_array());
else if (key == "paramete... |
<commit_before>#include "bwbot.h"
int main() {
BWBOT bwbot;
bwbot.init('t');
bwbot.testinit();
bwbot.run();
bwbot.testprint();
return 0;
}
void BWBOT::run() {
int i=0;
while(!buildOrder.atEnd()&&i<1000) {
update();
i++;
}
}
void BWBOT::update() {
ActiveUnit currentUnit = buildHandler.update();
Frame c... |
<commit_before>#include "Session.hh"
#include "../net/HttpConnection.hh"
#include "../net/HttpRequest.hh"
#include <tr064/trace.hh>
#include "../Tr064Exception.hh"
#include <pugixml/pugixml.hpp>
#include <sstream>
#include <iostream>
using namespace tr064::soap;
//------------------------------------------------... |
<commit_before>#ifndef _INCLUDED_DS_TEXTDS_HPP
#define _INCLUDED_DS_TEXTDS_HPP
#include <sdsl/int_vector.hpp>
#include <tudocomp/ds/ITextDSProvider.hpp>
#include <tudocomp/ds/SuffixArray.hpp>
#include <tudocomp/ds/InverseSuffixArray.hpp>
#include <tudocomp/ds/PhiArray.hpp>
#include <tudocomp/ds/LCPArray.hpp>
#inclu... |
<commit_before>/*
* Copyright 2007-2020 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <[email protected]>
*
* 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... |
<commit_before>/* This file is part of the KDE project.
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
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 o... |
<commit_before>/*
* Copyright (C) 2004-2011 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"
#include <algorithm>
class... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>/**
* 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 writing, software... |
<commit_before>#include "LoadingScreen.h"
#include "World.h"
#include "SFML/Graphics/Color.hpp"
#include <iostream>
namespace TT {
LoadingScreen *LoadingScreen::_instance = NULL;
LoadingScreen *LoadingScreen::GetInstance()
{
if (!_instance)
_instance = new LoadingScreen(500.0f);
return _instance;
}
Lo... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>#include <node.h>
#include <node_buffer.h>
#include <mysql/mysql.h>
using namespace node;
using namespace v8;
static Persistent<FunctionTemplate> Client_constructor;
static Persistent<String> emit_symbol;
const int STATE_CONNECT = 0,
STATE_CONNECTING = 1,
STATE_CONNECTED = 2,
... |
<commit_before>/*******************************************************
* Copyright (c) 2015-2019, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**************************... |
<commit_before>/*
* This file is part of the chess-at-nite project [chess-at-nite.googlecode.com]
*
* Copyright (c) 2009-2010 by
* Franziskus Domig
* Panayiotis Lipiridis
* Radoslav Petrik
* Thai Gia Tuong
*
* For the full copyright and license information, please visit:
* http://chess-at-nite.googl... |
<commit_before>#include "client.hh"
#include "face_registry.hh"
#include "context.hh"
#include "buffer_manager.hh"
#include "buffer_utils.hh"
#include "file.hh"
#include "remote.hh"
#include "option.hh"
#include "client_manager.hh"
#include "command_manager.hh"
#include "event_manager.hh"
#include "user_interface.hh"
... |
<commit_before>#include <coffee/core/CUnitTesting>
#include <coffee/core/CFiles>
using namespace Coffee;
using namespace CResources;
const constexpr sbyte_t probe_text[25] = "I'M THE TRASHMAN! Hello.";
bool resource_exist_test()
{
{
Resource rsc("the-one-that-works",
ResourceAccess::... |
<commit_before>#include <iostream>
#include "parser.h"
int
main(int argc, char * argv[])
{
if (argc != 2) {
std::cout << "Try ./calc expr" << std::endl;
return 0;
}
try {
std::cout << calc(argv[1]) << std::endl;
}
catch(const char *msg) {
std::cout << msg << std::endl;
return 1;
}
return 0;
}
<com... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014, Image Engine Design 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:... |
<commit_before>// Copyright (C) 2018 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "core/Setup.h"
#include <iostream>
#include <string>
#if OUZEL_PLATFORM_IOS || OUZEL_PLATFORM_TVOS
#include <sys/syslog.h>
#endif
#if OUZEL_PLATFORM_WINDOWS
#include <windows.h>
#include <strsafe.h>
#endif
#if O... |
<commit_before>#ifndef _SNARKFRONT_AES_INV_SBOX_HPP_
#define _SNARKFRONT_AES_INV_SBOX_HPP_
#include <array>
#include <cstdint>
#include "DSL_utility.hpp"
namespace snarkfront {
////////////////////////////////////////////////////////////////////////////////
// FIPS PUB 197, NIST November 2001
//
// Algorithm Key... |
<commit_before>
<commit_msg>Delete 1.cpp<commit_after><|endoftext|> |
<commit_before>#include "imageviewer.h"
#include "ui_imageviewer.h"
ImageViewer::ImageViewer(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ImageViewer)
{
ui->setupUi(this);
actionOpen = ui->actionOpen;
actionZoomIn = ui->actionZoomIn;
actionZoomOut = ui->actionZoomOut;
actionRotateLef... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2010, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// ... |
<commit_before>#include <ghost.h>
#include <ghost_util.h>
#include <ghost_mat.h>
#include <crs.h>
#include "ghost_complex.h"
#include <iostream>
#include <omp.h>
// TODO shift, scale als templateparameter
template<typename m_t, typename v_t> void CRS_kernel_plain_tmpl(ghost_mat_t *mat, ghost_vec_t *lhs, ghost_vec_t *... |
<commit_before>// Copyright 2015-2018 Kuzzle
//
// 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 ... |
<commit_before>//
// 16bitBinaryLoader.cpp
// Phantasma
//
// Created by Thomas Harte on 17/12/2013.
// Copyright (c) 2013 Thomas Harte. All rights reserved.
//
#include "16bitBinaryLoader.h"
#include "Parser.h"
#include "16bitDetokeniser.h"
#include "Object.h"
#include "Area.h"
#include <map>
class StreamLoad... |
<commit_before>#include "singletons.h"
#include "config.h"
#include "logging.h"
#include <exception>
#include "files.h"
#include "sourcefile.h"
MainConfig::MainConfig() {
find_or_create_config_files();
boost::property_tree::json_parser::read_json(Singleton::config_dir() + "config.json", cfg);
Singleton::Config::... |
<commit_before><commit_msg>FEM: [skip ci] support Line and Plane objects in Constraint::getDirection()<commit_after><|endoftext|> |
<commit_before>/*********************************************************************
** Author: Zach Colbert
** Date: 1 November 2017
** Description:
*********************************************************************/
// Pre-processing includes pre-requisite libraries for the functions below
#include <string>
/... |
<commit_before>#include "MicroBit.h"
char MICROBIT_BLE_DEVICE_NAME[] = "BBC MicroBit [xxxxx]";
#if CONFIG_ENABLED(MICROBIT_BLE_ENABLED) && CONFIG_ENABLED(MICROBIT_BLE_DEVICE_INFORMATION_SERVICE)
const char MICROBIT_BLE_MANUFACTURER[] = "The Cast of W1A";
const char MICROBIT_BLE_MODEL[] = "Microbit SB2";
const char MI... |
<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) 2010 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>
#include "odrive_main.h"
Encoder::Encoder(const EncoderHardwareConfig_t& hw_config,
Config_t& config) :
hw_config_(hw_config),
config_(config)
{
// Calculate encoder pll gains
// This calculation is currently identical to the PLL in SensorlessEstimator
float... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of Swift2D. //
// ... |
<commit_before>#ifndef __NETWORKMESSAGEJOINACCEPT_H
#define __NETWORKMESSAGEJOINACCEPT_H
#include <string>
#include <sstream>
#include <deque>
#include "NetworkMessage.hpp"
#include "../Player.hpp"
#include "../PlayerList.hpp"
#include "../Map.hpp"
namespace NetworkMessage{
class JoinAccept : public NetworkMessage{... |
<commit_before>/** @file
*
* @ingroup dspSoundFileLib
*
* @brief Tests for the #TTSoundfileLoader class
*
* @details Tests the core functions of the TTSoundfileLoader class in order to ensure that things are working after a build. It also demostrate how to make calls to common methods within the class.@n
* IMPO... |
<commit_before>// @(#) $Id$
/**************************************************************************
* This file is property of and copyright by the ALICE HLT Project *
* ALICE Experiment at CERN, All rights reserved. *
* ... |
<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 "chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h"
#include <map>
#include <string>
#include "base/json/json... |
<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 "chrome/browser/renderer_host/gtk_key_bindings_handler.h"
#include <gdk/gdkkeysyms.h>
#include <string>
#include <utility>
#in... |
<commit_before>#include "SalomeApp_Study.h"
#include "SalomeApp_Module.h"
#include "SalomeApp_DataModel.h"
#include "SalomeApp_RootObject.h"
#include "SalomeApp_DataObject.h"
#include "SalomeApp_Application.h"
#include <OB_Browser.h>
#include <SUIT_ResourceMgr.h>
#include "utilities.h"
SalomeApp_Study::SalomeApp_S... |
<commit_before>//..............................................................................
//
// This file is part of the Jancy toolkit.
//
// Jancy is distributed under the MIT license.
// For details see accompanying license.txt file,
// the public copy of which is also available at:
// http://tibbo.com/dow... |
<commit_before>#ifdef __APPLE__
// We can't set _POSIX_C_SOURCE on OS X because it hides the non-POSIX dladdr() with no way to get it back.
// But we do need level 200809L features generally (for example, for EOWNERDEAD and ENOTRECOVERABLE on OS X).
// So we do it the Apple Way.
#define __DARWIN_C_LEVEL... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>/**
@file crema.cpp
@brief Main cremacc file and main() function
@copyright 2014 Assured Information Security, Inc.
@author Jacob Torrey <[email protected]>
A main function to read in an input. It will parse and perform semantic
analysis on the input and either exit(0) if it passes ... |
<commit_before>/*
Copyright (c) 2008 by Jeff Weisberg
Author: Jeff Weisberg <jaw @ tcp4me.com>
Created: 2008-Dec-28 11:05 (EST)
Function: daemonize
$Id$
*/
#define CURRENT_SUBSYSTEM 'd'
#include "defs.h"
#include "diag.h"
#include "hrtime.h"
#include "runmode.h"
#include <stdlib.h>
#include <stdio.h>
#in... |
<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>/*
* Game: Pong Game.
* Author: Rafael Campos Nunes.
* License: Apache v2.
*
* Fell free to contact me on
* Email: [email protected]
* Github: https://github.com/rafaelcn
*
* Also you can contact me on IRC(freenode.net server) my nickname is: ranu.
*/
#ifndef DEBUG_HPP
#define DEBUG_H... |
<commit_before>/*
Copyright: Copyright (C) 2003-2018 SIL International.
Authors: mcdurdin
*/
#include "pch.h"
#include <stdarg.h>
inline BOOL ShouldDebug() {
return g_debug_KeymanLog;
}
#define TAB "\t"
#define NL "\n"
#include <chrono>
#define _USE_WINDOWS
#ifdef _USE_WINDOWS
#define DECLSPE... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2013-2019 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>/*
This is a tool shipped by 'Aleph - A Library for Exploring Persistent
Homology'.
Its purpose is to analyse the persistent homology of connectivity
matrices. The tool bears some semblance to the *network analysis*
tools, but focuses specifically on data sets whose weights are an
interpreta... |
<commit_before>#include "drawer.hh"
#include <cmath>
#include <cstring>
#include <deque>
#include <iostream>
#include <fstream>
#include <stdexcept>
namespace
{
const std::string svg_preambule(
"<?xml version='1.0' encoding='UTF-8' standalone='no'?>\n"
"<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://... |
<commit_before>/*
Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "lic... |
<commit_before>/*
* Copyright (C) 2017 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>//===-- llvm-diff.cpp - Module comparator command-line driver ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===-- llvm-lto2: test harness for the resolution-based LTO interface ----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*******************************************************************************
Copyright (c) 2019, Jan Koester [email protected]
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redi... |
<commit_before>#include "aerial_autonomy/types/spiral_reference_trajectory.h"
#include <glog/logging.h>
constexpr double SpiralReferenceTrajectory::epsilon;
constexpr double SpiralReferenceTrajectory::gravity_magnitude_;
SpiralReferenceTrajectory::SpiralReferenceTrajectory(
SpiralReferenceTrajectoryConfig config,... |
<commit_before>/**
* This file is part of the "tsdb" project
* Copyright (c) 2015 Paul Asmuth, FnordCorp B.V.
*
* 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 License a... |
<commit_before>#include <qpiekey.h>
#include <QSizePolicy>
#include <QPainter>
#include <QPaintEvent>
#include <math.h>
#include <stdio.h>
#include <unistd.h>
#include "term_logging.h"
using namespace std;
QPieKey::QPieKey(QWidget *parent) : QWidget(parent)
{
sections = 0;
size = 0;
hide();
}
QPieKey::~... |
<commit_before>
#include <memory>
#include <string>
#include <map>
#include <algorithm>
#pragma warning (disable : 4005)
#include "Effekseer.h"
#include "EffekseerRendererDX9.h"
#include "EffekseerRendererDX11.h"
#include "../common/IUnityGraphics.h"
#include "../common/EffekseerPluginLoader.h"
using namespace Effek... |
<commit_before>#include <string>
#include <vector>
#include <ros/ros.h>
#include <moveit/move_group_interface/move_group.h>
#include <moveit/robot_trajectory/robot_trajectory.h>
#include <moveit/trajectory_processing/iterative_time_parameterization.h>
#include <tf2_ros/transform_listener.h>
#include <geometry_msgs/Po... |
<commit_before>/*
*
* Copyright (c) 2019 Nest Labs, 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/licens... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: kill.cxx,v $
* $Revision: 1.7 $
... |
<commit_before>/*
* matching_test.cpp
*
* Created on: Oct 17, 2010
* Author: ethan
*/
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <vector>
#include <iostream>
using namespace cv;
u... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lotus.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: kz $ $Date: 2006-07-21 12:28:56 $
*
* The Contents of this file are made ava... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docsh7.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-08 20:47:22 $
*
* The Contents of this file are made av... |
<commit_before>#ifndef GNR_INVOKE_HPP
# define GNR_INVOKE_HPP
# pragma once
#include <tuple>
namespace gnr
{
namespace detail::invoke
{
constexpr bool is_nothrow_invocable(auto&& f, auto&& t) noexcept
{
return [&]<auto ...I>(std::index_sequence<I...>) noexcept
{
return noexcept(
std::invoke(
s... |
<commit_before>/*************************************************************************
*
* $RCSfile: unovwcrs.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2004-01-20 12:36:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#include <QDebug>
#include <QJsonDocument>
#include <QJsonObject>
#include <QLabel>
#include <QPushButton>
#include <QStackedWidget>
#include <QTimer>
#include <QVBoxLayout>
#include "QrCode.hpp"
#include "api.hpp"
#include "common/params.h"
#include "setup.hpp"
using qrcodegen::QrCode;
PairingQRWidge... |
<commit_before>/*
* Copyright (c) 2003-2009, John Wiegley. 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 "general.hpp"
#include "course.hpp"
#include "student.hpp"
using namespace std;
vector<Course> all_courses;
Student user;
void loadCourses(string filename) {
ifstream infile(filename.c_str());
string str; // read in the header line
getline(infile, str);
while (infile.peek() != -1){
Cours... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/
**
** This file is part of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
**... |
<commit_before>#include "triangle.hpp"
#include <algorithm>
Triangle::Triangle():
Shape(),
ecke1_{1.0f,0.0f,-2.0f},
ecke2_{-1.0f,0.0f,-2.0f},
ecke3_{0.0f,1.0f,-2.0f}
{}
Triangle::Triangle(glm::vec3 const& ecke1, glm::vec3 const& ecke2, glm::vec3 const& ecke3):
Shape(),
/*ecke1_{ecke1.x,ecke1.y,ecke1.z},
ecke2_{ecke2... |
<commit_before>
#include <pgdb2.h>
int main (int argc, char *argv[])
{
pagedb::Options opts;
opts.f_read = true;
opts.f_write = true;
opts.f_create = true;
pagedb::DB db("foo.db", opts);
return 0;
}
<commit_msg>[test] basic: test for constructor failure upon non-existent db<commit_after>
#include <pgdb2.h>
#i... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2015 University of Groningen
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>//! @file communicator.hpp
//! @brief Public interface for Communicator.
//!
//! @author Peter Georg
#ifndef pMR_BACKENDS_MPI_COMMUNICATOR_H
#define pMR_BACKENDS_MPI_COMMUNICATOR_H
#include <memory>
#include <vector>
extern "C"
{
#include <mpi.h>
}
#include "target.hpp"
namespace pMR
{
//! @brief B... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: propacc.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: obo $ $Date: 2006-10-12 14:25:24 $
*
* The Contents of this file are made... |
<commit_before>/*
* vvms.cpp
*
* Created on: Nov 20, 2012
* Author: partio
*/
#include "vvms.h"
#include <iostream>
#include "plugin_factory.h"
#include "logger_factory.h"
#include <boost/lexical_cast.hpp>
#define HIMAN_AUXILIARY_INCLUDE
#include "fetcher.h"
#include "writer.h"
#include "neons.h"
#include "p... |
<commit_before><commit_msg>fdo#54718 fix opcode detection in basic resulting in failed/unregcognized code<commit_after><|endoftext|> |
<commit_before>// Copyright 2012 Cloudera Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... |
<commit_before>// Copyright (c) 2013-2014 Flowgrammable, LLC.
//
// 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 <reactive/bridge.hpp>
#include <reactive/ref.hpp>
#include <reactive/transform.hpp>
#include <reactive/while.hpp>
#include <reactive/finite_state_machine.hpp>
#include <reactive/filter.hpp>
#include <reactive/generate.hpp>
#include <reactive/ptr_observable.hpp>
#include <reactive/cache.hpp>
#inc... |
<commit_before>#include <gtest/gtest.h>
#include "stan/prob/distributions/multivariate/continuous/gaussian_dlm.hpp"
using Eigen::Dynamic;
using Eigen::Matrix;
using Eigen::MatrixXd;
using boost::math::policies::policy;
using boost::math::policies::evaluation_error;
using boost::math::policies::domain_error;
using boo... |
<commit_before>#include "Base.h"
#include "ScriptController.h"
#include "ScriptTarget.h"
namespace gameplay
{
extern void splitURL(const std::string& url, std::string* file, std::string* id);
ScriptTarget::~ScriptTarget()
{
std::map<std::string, std::vector<Callback>* >::iterator iter = _callbacks.beg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.