text stringlengths 54 60.6k |
|---|
<commit_before>/*
* datasetlabel.cpp
*
* Created on: 03.08.2014
* Author: Ralph Schurade
*/
#include "datasetlabel.h"
#include "../models.h"
#include "../../gui/gl/glfunctions.h"
#include <QtOpenGL/QGLShaderProgram>
DatasetLabel::DatasetLabel() :
Dataset( QDir( "new label" ), Fn::Dat... |
<commit_before>///
/// @file S2_trivial.cpp
/// @brief Calculate the contribution of the trivial special leaves
/// in parallel using OpenMP.
///
/// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level director... |
<commit_before>// Copyright (c) 2006-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/sync/engine/auth_watcher.h"
#include "base/file_util.h"
#include "base/string_util.h"
#include "chrome/b... |
<commit_before><commit_msg>Temporarily disable the thumbnail store unittests due to leaks.<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2011 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/ui/gtk/status_bubble_gtk.h"
#include <gtk/gtk.h>
#include <algorithm>
#include "app/text_elider.h"
#include... |
<commit_before>#include "ffmpeg_video_source.h"
extern "C" {
#include <libavutil/imgutils.h>
}
namespace gg
{
VideoSourceFFmpeg::VideoSourceFFmpeg()
{
// nop
}
VideoSourceFFmpeg::VideoSourceFFmpeg(std::string source_path,
enum ColourSpace colour_space,
... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs
*
* Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr>
*
* This program is f... |
<commit_before>/*
* Copyright (c) 2018 Airbus Defence and Space and RISC Software 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
*
* U... |
<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 "base/file_path.h"
#include "content/test/layout_browsertest.h"
class IndexedDBLayoutTest : public InProcessBrowserLayoutTest... |
<commit_before>/*
* PhraseTableMemory.cpp
*
* Created on: 28 Oct 2015
* Author: hieu
*/
#include <cassert>
#include <boost/foreach.hpp>
#include "PhraseTableMemory.h"
#include "../Phrase.h"
#include "../TargetPhrase.h"
#include "../System.h"
#include "../Scores.h"
#include "../InputPaths.h"
#include "../leg... |
<commit_before>/*=========================================================================
*
* Copyright NumFOCUS
*
* 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
*
* https... |
<commit_before>/*
* Copyright 2015 Cloudius Systems
*
*/
#include <yaml-cpp/yaml.h>
#include <boost/program_options.hpp>
#include <unordered_map>
#include <regex>
#include "config.hh"
#include "core/file.hh"
#include "core/reactor.hh"
#include "core/shared_ptr.hh"
#include "core/fstream.hh"
#include "core/do_with.h... |
<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 "app/l10n_util.h"
#include "base/command_line.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/debugger/devtool... |
<commit_before>/*
* Copyright 2014 David Moreno Montero <dmoreno@coralbits.com>
*
* 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
*
* U... |
<commit_before>//===-- sanitizer_tls_get_addr.cc -----------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// This file is part of the pd::ssl library.
// Copyright (C) 2011-2014, Eugene Mamchits <mamchits@yandex-team.ru>.
// Copyright (C) 2011-2014, YANDEX LLC.
// This library may be distributed under the terms of the GNU LGPL 2.1.
// See the file ‘COPYING’ or ‘http://www.gnu.org/licenses/lgpl-2.1.html’.
#i... |
<commit_before>/**
* @file lda_gibbs.cpp
*/
#include "topics/lda_gibbs.h"
namespace topics {
lda_gibbs::lda_gibbs( std::vector<Document> & docs, size_t num_topics,
double alpha, double beta ) :
tokenizer_{ 1, NgramTokenizer::Word }, docs_{ docs },
alpha_{ alpha }, beta_{... |
<commit_before>/*
This file is part of Groho, a simulator for inter-planetary travel and warfare.
Copyright (c) 2017-2018 by Kaushik Ghose. Some rights reserved, see LICENSE
This file contains some common functions used in parsing scenario files
*/
#pragma once
#include <fstream>
#include <iterator>
#include <optiona... |
<commit_before>#include <map>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
#include "boxer.h"
#include "stage.h"
#ifdef __ANDROID__
#include "jni.h"
#include <android/log.h>
#endif
extern int32_t _BOXER_FILES_SIZE;
extern char* _BOXER_FILES[];
int32_t cachedArgc... |
<commit_before>/**
* This file is part of the "libfnord" project
* Copyright (c) 2015 Paul Asmuth
*
* 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 along with th... |
<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>// Module: Log4CPLUS
// File: loglevel.cxx
// Created: 6/2001
// Author: Tad E. Smith
//
//
// Copyright 2001-2014 Tad E. Smith
//
// 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 Li... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved.
#include "serializer/serializer.hpp"
#include "arch/arch.hpp"
file_account_t *serializer_t::make_io_account(int priority) {
assert_thread();
return make_io_account(priority, UNLIMITED_OUTSTANDING_REQUESTS);
}
serializer_write_t serializer_w... |
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved.
#include "serializer/translator.hpp"
#include "errors.hpp"
#include <boost/bind.hpp>
#include "concurrency/pmap.hpp"
#include "serializer/types.hpp"
#include "serializer/config.hpp"
/* serializer_multiplexer_t */
/* The multiplexing serializer sl... |
<commit_before>/* Iridium Utilities -- Iridium Synchronization Utilities
* AtomicTypes.hpp
*
* Copyright (c) 2008, Daniel Reiter Horn
* 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 <QDebug>
#include <QDateTime>
#include <QtNetwork/QTcpSocket>
#include <QStringList>
#include <QRegExp>
#include "rpcthread.h"
RpcThread::RpcThread(QObject *parent) :
QThread(parent), serverName(QString("127.0.0.1")), serverPort(4028), quit(false)
{
}
RpcThread::~RpcThread()
{... |
<commit_before>#include <configure/bind.hpp>
#include <configure/bind/path_utils.hpp>
#include <configure/Filesystem.hpp>
#include <configure/lua/State.hpp>
#include <configure/lua/Type.hpp>
#include <configure/Node.hpp>
#include <configure/bind/path_utils.hpp>
#include <boost/filesystem.hpp>
namespace fs = boost::f... |
<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/app_current_window_internal/app_current_window_internal_api.h"
#include "apps/shell_window.h"
... |
<commit_before>
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkImageDecoder.h"
#include "SkColor.h"
#include "SkColorPriv.h"
#include "SkMath.h"
#include "SkStream.h"
#include "SkTemplates.... |
<commit_before>#include "pixelboost/debug/log.h"
#include "pixelboost/file/fileSystem.h"
#include "pixelboost/graphics/device/program.h"
#include "pixelboost/graphics/resources/shaderResource.h"
#include "pixelboost/graphics/shader/shader.h"
using namespace pb;
PB_DEFINE_RESOURCE(pb::ShaderResource)
ShaderResource::... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (C) 2006-2010 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
#ifdef _MSC_VER
#pragma warning(disable:4244)
#pragma warning(disable:4267)
#pragma warning(di... |
<commit_before>/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by ... |
<commit_before>/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Jip J. Dekker <jip@dekker.li>
*/
/* 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 ht... |
<commit_before>/*
* fMBT, free Model Based Testing tool
* Copyright (c) 2011, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
*... |
<commit_before>// include library
#include <iostream>
// using std::string
using namespace std;
// pretty print option
// set by command line
int pretty = 0;
// whitespace buffer
string whitespace;
// concatenate comma lists
bool comma = false;
// comment context
string comment = "";
// indent level
int level = 0... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: javaoptions.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2005-09-08 02:17:45 $
*
* The Contents of this file are ma... |
<commit_before>/* $Id: queuetest.cpp,v 1.1.2.1 2012/11/21 10:03:55 matthewmulhern Exp $
*
* OpenMAMA: The open middleware agnostic messaging API
* Copyright (C) 2011 NYSE Technologies, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Publ... |
<commit_before>/*
* Copyright (c) 2015 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.... |
<commit_before>#pragma once
namespace densitas {
namespace model_adapter {
/**
* Trains the model with given features X and target y. y should be
* a binary target containing 'yes' and 'no'
*/
template<typename ModelType, typename MatrixType, typename VectorType>
void train(ModelType& model, MatrixType& X, Vector... |
<commit_before><commit_msg>Expr::EvaluateAs... does not work for type-dependent expressions<commit_after><|endoftext|> |
<commit_before>/**
* @author ChalkPE <chalk@chalk.pe>
* @since 2016-06-03
*/
#include <stdio.h>
int main(){
int i, n; scanf("%d", &n);
for(i = 2; i <= n; i += 2) printf("%d ", i);
}
<commit_msg>Updated p1076<commit_after>/**
* @author ChalkPE <chalk@chalk.pe>
* @since 2016-06-03
*/
#include <stdio.h>
... |
<commit_before>// Copyright 2017 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 require... |
<commit_before>#include <v8.h>
#include <node.h>
#include <node_buffer.h>
#include <node_version.h>
#include <zlib.h>
#include <cstring>
using namespace v8;
using namespace node;
// node v0.2 compatibility
#if NODE_VERSION_AT_LEAST(0,3,0)
#define Buffer_Data Buffer::Data
#define Buffer_Length Buffer::Lengt... |
<commit_before>// tinygettext - A gettext replacement that works directly on .po files
// Copyright (C) 2009 Ingo Ruhnke <grumbel@gmx.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundatio... |
<commit_before>/** @file
A brief file description
@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 this fi... |
<commit_before>#ifndef SAVE_STATE_H
# define SAVE_STATE_H
# pragma once
struct statebuf
{
void* sp;
void* bp;
void* label;
};
#if defined(__GNUC__)
static inline bool __attribute__((always_inline)) savestate(
statebuf& ssb) noexcept
{
bool r;
#if defined(i386) || defined(__i386) || defined(__i386__)
asm ... |
<commit_before>/**
* @file
*
* Defines the operations freeze, thaw, finish, etc. These are overloaded
* with the correct behaviour for types internal to the Birch type system,
* with appropriate defaults or null operations for external types that may
* be encountered in C++ interactions.
*/
#pragma once
namespa... |
<commit_before>/*************************************************************************
*
* $RCSfile: testloader.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: hr $ $Date: 2002-08-19 14:19:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>#include <ros/ros.h>
#include <moveit/move_group_interface/move_group.h>
#include <moveit/warehouse/planning_scene_storage.h>
#include <boost/program_options.hpp>
#include <view_controller_msgs/CameraPlacement.h>
#include "moveit_recorder/TrajectoryRetimer.h"
#include "moveit_recorder/AnimationReco... |
<commit_before>/**
* Copyright © 2017 INFN Torino - INDIGO-DataCloud
*
* 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 req... |
<commit_before>
#include <thread>
#include <string>
//#include <processthreadsapi.h>
#include "NFComm/NFPluginModule/NFPlatform.h"
#include "NFComm/NFCore/NFTimer.h"
#include "NFNet/NFServer.h"
#include "NFNet/NFIPacket.h"
#ifdef NF_DEBUG_MODE
#pragma comment(lib,"NFNet_d.lib")
#pragma comment(lib,"NFCore_d.lib")
#els... |
<commit_before>// Copyright (c) 2011-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/syscoin-config.h>
#endif
#include <chainparams.h>
#include <fs.h>... |
<commit_before>// Copyright (c) 2011-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <fs.h>
#include <qt/intro.h>
#i... |
<commit_before>// Copyright (c) 2011-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <fs.h>
#include <qt/intro.h>
#i... |
<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>#include <cfloat>
#include <omp.h>
#include "renderer.h"
#define PI 3.141592653589793826433
void Camera::init(Vec3 from, Vec3 lookat, Vec3 up, double fov, double aspect, double aperture, double focus_dist)
{
lens_radius_ = aperture / 2;
double theta = fov * PI / 180;
double half_height = t... |
<commit_before>#include "Maze.h"
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <iterator>
#include <sstream>
#include <time.h>
#include <queue>
#include <vector>
#include "Constants.h"
#include "Parameters.h"
#include "Tile.h"
namespace sim{
Maze::Maze(int width, int height, std::string mazeFil... |
<commit_before>// Simple example effect:
// Draws a noise pattern modulated by an expanding sine wave.
#include <math.h>
#include <termios.h>
#include "lib/color.h"
#include "tensegrity_effect.h"
#include "lib/effect_runner.h"
#include "lib/noise.h"
#define NUM_LAYERS 4
#define NUM_HUES 2
Effect** effects;
int hues... |
<commit_before>#ifndef _SDD_DD_SUM_HH_
#define _SDD_DD_SUM_HH_
#include <initializer_list>
#include <type_traits> // enable_if, is_same
#include <unordered_map>
#include <vector>
#include "sdd/internal_manager_fwd.hh"
#include "sdd/dd/context_fwd.hh"
#include "sdd/dd/definition.hh"
#include "sdd/dd/nary.hh"
#include ... |
<commit_before>/** @file serialun.cpp
* @brief Testing and debugging script
*/
//#define DEBUG
#include <FMM_plan.hpp>
//#include <LaplaceSphericalModified.hpp>
#include <LaplaceSpherical.hpp>
//#include <UnitKernel.hpp>
//#include <KernelSkeleton.hpp>
//#include <KernelSkeletonMixed.hpp>
//#include <LaplaceCartesi... |
<commit_before>/**
* Self-Organizing Maps on a cluster
* Copyright (C) 2013 Peter Wittek
*
* 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 ... |
<commit_before>#include "valuedlg.h"
#include "ui_valuedlg.h"
#include "logtab.h"
#include "themeutils.h"
#include "tokenizer.h"
#include <QDebug>
#include <QDesktopServices>
#include <QFile>
#include <QFontDatabase>
#include <QHttpMultiPart>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetwor... |
<commit_before>/*
* Copyright (c) 2003 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyri... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkPicker.cc
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1995 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighted by Ken ... |
<commit_before>/*
* IceWM
*
* Copyright (C) 1997-2003 Marko Macek
*
* Window list
*/
#include "config.h"
#include "ykey.h"
#include "ypaint.h"
#include "wmwinlist.h"
#include "ymenuitem.h"
#include "yaction.h"
#include "prefs.h"
#include "wmaction.h"
#include "wmclient.h"
#include "wmframe.h"
#include "wmmgr.h"
... |
<commit_before>/*
* test.cpp
*
* Created on: Dec 5, 2014
* Author: ryung
*/
#include <iostream.>
void main() {
return;
}
<commit_msg>Committed by angelbc1999<commit_after>/*
* test.cpp
*
* Created on: Dec 5, 2014
* Author: ryung
*/
#include <iostream.>
void main() {
//Ro... |
<commit_before>/* This is both a sort of unit test, and a demonstration of how to use deadlock
* prevention.
*
* Suggested compilation command:
* c++ -Wall -pedantic -std=c++11 test.cpp -o test -lpthread
*/
#include <time.h>
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include <assert.h>
#include ... |
<commit_before>#include <locale>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include "ctext.h"
int8_t my_event(ctext *context, ctext_event event)
{
/*
switch(event)
{
case CTEXT_SCROLL:
printf("< Scroll >");
break;
case CTEXT_CLEAR:
printf("< Clear >");
break;
... |
<commit_before>// Copyright (C) 2012, Luis Pedro Coelho <luis@luispedro.org>
// License: MIT
#include <iostream>
#include <memory>
#include <cmath>
#include <random>
#include <cassert>
#include <eigen3/Eigen/Dense>
using namespace Eigen;
extern "C" {
#include <Python.h>
#include <numpy/ndarrayobject.h>
}
n... |
<commit_before>// $Id$
/*
Copyright (c) 2007, Trustees of Leland Stanford Junior University
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 copyrigh... |
<commit_before>/*
* Copyright (c) 2016 Joseph Thomson
*
* 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 "InputItemWidget.hpp"
#include <Wt/WLineEdit>
#include <iostream>
#include <boost/foreach.hpp>
#include <Wt/Utils>
#include <Wt/WIntValidator>
#include <Wt/WPushButton>
#include <Wt/Http/Client>
#include <Wt/Http/Message>
#include <Wt/WApplication>
#include <boost/log/trivial.hpp>
#include <fst... |
<commit_before>/*************************************************************************
*
* $RCSfile: dbwiz.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2004-08-02 15:58:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses... |
<commit_before>#ifndef STAN__MATH__MATRIX__EXP_HPP
#define STAN__MATH__MATRIX__EXP_HPP
#include <stan/math/matrix/Eigen.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
namespace stan {
namespace math {
/**
* Return the element-wise exponentiation of the matrix or vector.
*
* @par... |
<commit_before>#include <GL/glew.h>
#include <SDL2/SDL.h>
#include <stdio.h>
typedef int32_t bool32;
#include "platform_code.cpp"
#include "GL.cpp"
#include "file_formats.cpp"
void HandleKeyDown(SDL_Keysym key);
bool32 quit=0;
bool32 SetupSDLWindow();
void Render();
void Setup();
void Teardown();
SDL_Window * Main... |
<commit_before>//---------------------------------------------------------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011, 2012 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
... |
<commit_before>// Copyright (c) 2015, Ming Wen
//
// fys.hpp
//
// General header file of this software.
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <cstdlib>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/features2d/features2d.hpp>
#i... |
<commit_before>/*************************************************************************
*
* $RCSfile: translatechanges.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: hr $ $Date: 2004-06-18 15:47:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the followi... |
<commit_before>/**
* Copyright 2014-2015 Steven T Sell (ssell@ocularinteractive.com)
*
* 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>/*************************************************************************
*
* $RCSfile: backendaccess.hxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: kz $ $Date: 2005-01-18 13:28:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2015 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... |
<commit_before>#include <SD.h>
#include <SPI.h>
#include "sd_epaper.h"
#include "ePaperDfs.h"
void sd_epaper::begin(EPD_size sz) {
DISP_LEN = 200;
DISP_WIDTH = 96;
LINE_BYTE = 200/8;
clear();
}
void sd_epaper::putPixel(int x, int y, unsigned char pixel) {
int x1 = x;
int y1 = y;
... |
<commit_before>/* -------------------------------------------------------------------------- *
* OpenSim: AssemblySolver.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>/*
* Copyright (C) 2014 MediaSift Ltd.
*
* 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 "AliMuonCompactMapping.h"
#include "AliCDBManager.h"
#include "AliMpCDB.h"
#include "AliMpDEIterator.h"
#include <vector>
#include "AliMpDEManager.h"
#include "AliMpManuIterator.h"
#include "AliMpDDLStore.h"
#include "AliMpDetElement.h"
#include <cassert>
namespace {
Int_t DECODELOW(UInt_t ... |
<commit_before>//
// Wagon contacts: EMCAL Gustavo.Conesa.Balbastre@cern.ch
// PHOS Yuri.Kharlov@cern.ch
//
AliAnalysisTaskParticleCorrelation *AddTaskCalorimeterQA(TString data, Bool_t kPrintSettings = kFALSE,Bool_t kSimulation = kFALSE,TString outputFile = "", Bool_t oldAOD=kFALSE)
{
// Creates a P... |
<commit_before>// shader.cpp
#include "shader.h"
#include <fstream>
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <vector>
#include "demo/container/fixed_array.h"
namespace demo
{
namespace rndr
{
// GLOBALS
uint64 Shader::g_activeId = 0L;
uint64 Shader::g_nextId = 0L;
// MEMBER FUNCTIONS
voi... |
<commit_before>/*****************************************************************************
* video.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2004, 2003 VideoLAN
* $Id$
*
* Authors: Gildas Bazin <gbazin@videolan.org>
*
* T... |
<commit_before>/*************************************************************************
*
* $RCSfile: splash.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2003-12-01 18:06:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>// Copyright 2021 Google 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
<commit_before>/*++
Copyright (c) 2016 Microsoft Corporation
Module Name:
bv_bounds_tactic.cpp
Abstract:
Contextual bounds simplification tactic.
Author:
Nikolaj Bjorner (nbjorner) 2016-2-12
--*/
#include "bv_bounds_tactic.h"
#include "ctx_simplify_tactic.h"
#include "bv_decl_plugin.h"
#include "as... |
<commit_before>/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 req... |
<commit_before>/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 r... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: persistentwindowstate.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: ihi $ $Date: 2007-04-16 16:41:24 $
*
* The Contents of this... |
<commit_before>#include <stdexcept>
#include <stan/math/matrix/rank.hpp>
#include <gtest/gtest.h>
template <typename T>
void test_rank() {
using stan::math::rank;
T c(1);
c[0] = 1.7;
EXPECT_EQ( rank(c,1) , 0 );
EXPECT_THROW( rank(c,0), std::out_of_range);
EXPECT_THROW( rank(c,2), std::out_of_range);
T ... |
<commit_before>// Copyright (c) 2020 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 "net/third_party/quiche/src/quic/core/quic_network_blackhole_detector.h"
#include "net/third_party/quiche/src/quic/core/quic_... |
<commit_before>#ifndef __CALLBACK_OBJECT_HPP_INCLUDED
#define __CALLBACK_OBJECT_HPP_INCLUDED
#include "cpp/ylikuutio/common/any_value.hpp"
#include "callback_engine.hpp"
#include "callback_parameter.hpp"
#include "cpp/ylikuutio/common/globals.hpp"
// Include standard headers
#include <cmath> // NAN
#include <... |
<commit_before>#include <aleph/topology/io/LexicographicTriangulation.hh>
#include <aleph/persistentHomology/Calculation.hh>
#include <aleph/persistentHomology/PhiPersistence.hh>
#include <aleph/topology/BarycentricSubdivision.hh>
#include <aleph/topology/Simplex.hh>
#include <aleph/topology/SimplicialComplex.hh>
#in... |
<commit_before>// Copyright (c) 2012-2019 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 <util/system.h>
#include <test/util/setup_common.h>
#include <memory>
#include <boost/test/unit_te... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.