text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright 2019 Global Phasing Ltd.
//
// MTZ info
#include <gemmi/mtz.hpp>
#include <gemmi/fileutil.hpp> // for file_open
#include <gemmi/gz.hpp> // for MaybeGzipped
#include <gemmi/input.hpp> // for FileStream, MemoryStream
#define GEMMI_PROG mtz
#include "options.h"
#include <stdio.h>
usi... |
<commit_before>/*
* Copyright (C) 2013-2014 Phokham Nonava
*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
#include "pulse.h"
#include "perft.h"
#include <string>
#include <iostream>
int main(int argc, char* argv[]) {
try {
if (argc == 2) {
std:... |
<commit_before>/*
* Copyright (C) 2016 Fondazione Istituto Italiano di Tecnologia
* Authors: Silvio Traversaro
* CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
*
*/
#include <iDynTree/Core/EigenHelpers.h>
#include <iDynTree/Estimation/SimpleLeggedOdometry.h>
#include <iDynTree/Mode... |
<commit_before>/** \copyright
* Copyright (c) 2013, Balazs Racz
* 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 notic... |
<commit_before>// See: CodinGame demo interview question
#include <iostream>
#include <vector>
#include <algorithm> // std::min_element
int main()
{
std::vector<double> v = {1.0, 2.0, 3.0};
auto min_value = *std::min_element(std::begin(v), std::end(v));
std::cout << "Minimal value: " << min_value << "\n";... |
<commit_before>//===--------------------------- new.cpp ----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>/**
Copyright (c) 2016, Ubiquity Robotics
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 condition... |
<commit_before>// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
... |
<commit_before>#include "selected.h"
namespace UnTech {
namespace MetaSprite {
template <class BaseControllerT>
SelectedController<BaseControllerT>::SelectedController(BaseControllerT& controller)
: _controller(controller)
, _type(SelectedType::NONE)
{
_controller.frameController().signal_mapChanged().con... |
<commit_before>/** Copyright (C) 2017 Ultimaker - Released under terms of the AGPLv3 License */
#include "SpaghettiInfillPathGenerator.h"
#include "../infill.h"
#include "../FffGcodeWriter.h"
namespace cura {
bool SpaghettiInfillPathGenerator::processSpaghettiInfill(const SliceDataStorage& storage, const FffGcodeWri... |
<commit_before>/*
* Copyright (C) 2017 Sergey Ilinykh
*
* 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 the License, or (at your option) any later version.
... |
<commit_before>/*
* Copyright 2012 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>/******************************************************************************
Configuration file for nomlib library
Copyright (c) 2013 Jeffrey Carpenter
******************************************************************************/
#ifndef NOMLIB_CONFIG_HEADERS
#define NOMLIB_CONFIG_HEADERS
... |
<commit_before>#ifndef option_manager_hh_INCLUDED
#define option_manager_hh_INCLUDED
#include "completion.hh"
#include "containers.hh"
#include "exception.hh"
#include "flags.hh"
#include "option_types.hh"
#include "vector.hh"
#include <memory>
#include <type_traits>
namespace Kakoune
{
class OptionManager;
enum c... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "walletview.h"
#include "addressbookpage.h"
#include "askpassphrasedialog.h"
#include "bitcoingui.h"
... |
<commit_before>#include "read_temp_hum.h"
#include <dht.h>
#include "thermostat.h"
#include "tempe_control.h"
#define TEMPE_HISTORY 6 // How many temperature history value used for filter
using namespace core;
dht DHT;
// Return false if read failed.
bool doReadDHT22() {
delay(2); // TODO: it seems DHT not stab... |
<commit_before>#include <cassert>
#include <fstream>
#include <stdexcept>
#include <iterator>
#include "reader.h"
using namespace std;
template<class T, class CharT = char, class Traits = char_traits<CharT>,
class Distance = ptrdiff_t >
struct theresnoescapefromthisiterator
: public iterator<input_iterat... |
<commit_before>#include <cassert>
#include <fstream>
#include <stdexcept>
#include <iterator>
#include "reader.h"
using namespace std;
template<class T, class CharT = char, class Traits = char_traits<CharT>,
class Distance = ptrdiff_t >
struct theresnoescapefromthisiterator
: public iterator<input_iterat... |
<commit_before>#include <unordered_set>
#include <clang/Basic/TargetInfo.h>
#include <clang/Frontend/CompilerInstance.h>
#include <clang/Lex/Preprocessor.h>
#include <clang/Lex/HeaderSearch.h>
#include <clang/Parse/ParseAST.h>
#include <clang/AST/Decl.h>
#include <clang/AST/DeclGroup.h>
#include <clang/AST/Type.h>
#inc... |
<commit_before>#include "Server.hpp"
#ifdef __cplusplus
#include <cstdlib>
#else
#include <stdlib.h>
#endif
#include <iostream>
#include <cstdlib> // for random
#include <cmath> // for sin,cos in the server
#include <list>
#include "../functions.h"
#include "../Mech.h"
#include "../Projectile.h"
#include... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestScenePicker.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>#include "stdafx.h"
#include "BBE/SimpleFile.h"
#include <fstream>
#include <iostream>
#include <stdlib.h>
bbe::List<char> bbe::simpleFile::readBinaryFile(const bbe::String & filepath)
{
//UNTESTED
std::cout << filepath.getLength() << std::endl;
std::cout << filepath.getRaw() << std::endl;
for(std::... |
<commit_before>/*
open source routing machine
Copyright (C) Dennis Luxen, others 2010
This program 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
any later versio... |
<commit_before>//
// TextureUnitManager.cpp
//
// Originally written by RJ.
//
// Copyright (c) 2006 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include "vtlib/vtlib.h"
#include "textureunitmanager.h"
//
// RJ's warning: NONE OF THIS IS THREAD SAFE!!!
//
vtTextureUnitManager::vtTex... |
<commit_before>#include <string>
#include "sm-log-impl.h"
using namespace RCU;
namespace {
/* No point allocating these individually or repeatedly---they're
thread-private with a reasonably small maximum size (~10kB).
WARNING: this assumes that transactions are pinned to their
worker thread ... |
<commit_before>/*
* DynBetweenness.cpp
*
* Created on: 29.07.2014
* Author: ebergamini
*/
#include <stack>
#include <queue>
#include <memory>
#include "../auxiliary/PrioQueue.h"
#include "DynBetweenness.h"
#include "../auxiliary/PrioQueue.h"
#include "../auxiliary/Log.h"
#include "../graph/SSSP.h"
#include ... |
<commit_before>#include "sdfloader.hpp"
Scene SDFloader::sdfLoad(std::string const& inputFile)
{
Scene scene;
std::fstream inputfile;
inputfile.open(inputFile);
if(inputfile.is_open())
{
std::string line;
std::string word;
std::map<std::string, std::shared_ptr<Shape>> tempshapesmap;
std::map<std::str... |
<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 granted, free of charge,... |
<commit_before>//
// board.cpp
// game_of_life
//
// Created by Chris Powell on 8/24/13.
// Copyright (c) 2013 Prylis Inc. All rights reserved.
//
#include "board.h"
int Board::getCell(const int x, const int y) const {
return _cells[x][y];
}
int Board::getLiveNeighborCountForCell(const int x, const int y) co... |
<commit_before>#include <QtCore/QFile>
#include <QtTest/QtTest>
#include <QMimeDatabase>
class tst_QMimeType : public QObject
{
Q_OBJECT
public:
tst_QMimeType();
~tst_QMimeType();
private Q_SLOTS:
void initTestCase();
void findByName_data();
void findByName();
void findByData_data();
... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle 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 ap... |
<commit_before>/*
* File: render.cpp
* Author: ivan
*
* Created on October 12, 2015, 11:04 PM
*/
#include "render.hpp"
#include <cmath>
#include <cairo/cairo.h>
#include <utki/util.hpp>
using namespace svgren;
namespace{
class CairoMatrixPush{
cairo_matrix_t m;
cairo_t* cr;
public:
CairoMatrixPush(... |
<commit_before>/*
* Tests for the scalar example solving the test equation
*/
#include <cmath>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
using namespace ::testing;
#include <pfasst/quadrature.hpp>
#define PFASST_UNIT_TESTING
#include "../examples/scalar/scalar_sdc.cpp"
#undef PFASST_UNIT_TESTING
/*
* pa... |
<commit_before>/*
* Copyright (c) 2016, Matias Fontanini
* 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 <chrono>
#include <cinttypes>
#include <memory>
#include <rclcpp/rclcpp.hpp>
#include "myworkcell_core/srv/localize_part.hpp"
// The ScanNPlan inherits from node, allowing it to act as a Node to do things like create clients
class ScanNPlan : public rclcpp::Node
{
public:
explicit ScanNPlan(... |
<commit_before>#pragma once
#include "defaults.hpp"
#include "tools.hpp"
#include "grid_base.hpp"
#include "grid_tools.hpp"
#include "container.hpp"
namespace gftools {
/** A grid_object_base is a wrapper over container class, that stores data,
* defined on multiple different grids.
*/
template <typename Container... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>#include <iostream>
using namespace std;
void addition(int *sum, int x, int y){
*sum = x + y;
}
int main(){
int x = 4;
int y = 5;
int sum;
addition(&sum, x, y);
cout << "The sum is " << sum << endl;
return 0;
}
<commit_msg>Update S7_Pointer_in_functions.cpp<commit_after>//
// Program Name ... |
<commit_before>/*
* Segment.cpp
*****************************************************************************
* Copyright (C) 2010 - 2011 Klagenfurt University
*
* Created on: Aug 10, 2010
* Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at>
* Christian Timmerer <christian.timmerer@i... |
<commit_before>/*
Copyright (c) 2011, Arvid Norberg, Magnus Jonsson
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, th... |
<commit_before>#include <regex>
#include <string.h>
#include "lynxbot.h"
#include "sed.h"
#include "stringparse.h"
struct sedinfo {
char *regex;
char *replace;
int global;
int ignore;
int error;
int errtok;
};
static int parsecmd(struct sedinfo *s, char *cmd);
static void puterr(char *out, size_t max, struct se... |
<commit_before>#ifndef utf8_hh_INCLUDED
#define utf8_hh_INCLUDED
#include <cstddef>
#include "unicode.hh"
namespace Kakoune
{
namespace utf8
{
// returns an iterator to next character first byte
template<typename Iterator>
Iterator next(Iterator it)
{
if (*it++ & 0x80)
while ((*(it) & 0xC0) == 0x80)
... |
<commit_before>/* The MIT License (MIT)
*
* Copyright (c) 2014-2017 David Medina and Tim Warburton
*
* 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 witho... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 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>/*=========================================================================
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>/*
* DefaultForwardChainerCB.cc
*
* Copyright (C) 2015 Misgana Bayetta
*
* Author: Misgana Bayetta <misgana.bayetta@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free Soft... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkFEMSolverCrankNicolson.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
Se... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 - 2013 Jolla Ltd.
** Contact: http://jolla.com/
**
** This file is part of Qt Creator.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Le... |
<commit_before>/***************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
** Licensees may us... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>#include "pd_view.h"
#include "pd_backend.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <scintilla/include/Scintilla.h>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
struct SourceCodeData
{
char file... |
<commit_before>/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle 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 ap... |
<commit_before>#include "recordserializer.hh"
#include "registrardb-redis.hh"
#include "common.hh"
#include <algorithm>
#include "configmanager.hh"
#include <hiredis/hiredis.h>
#include <sofia-sip/sip_protos.h>
#include <sofia-sip/su_wait.h>
#include <memory>
using namespace std;
bool sUseSyslog;
struct DumpLis... |
<commit_before>#ifndef STAN_MATH_REV_FUN_LOG_HPP
#define STAN_MATH_REV_FUN_LOG_HPP
#include <stan/math/prim/fun/log.hpp>
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/rev/fun/abs.hpp>
#include <stan/math/rev/fun/arg.hpp>
#include <stan/math/rev/fun/atan2.hpp>
#include <stan/ma... |
<commit_before>/*************************************************************************
*
* $RCSfile: applicat.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: fme $ $Date: 2001-08-16 09:14:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.o... |
<commit_before>/*************************************************************************
*
* $RCSfile: document.hxx,v $
*
* $Revision: 1.18 $
*
* last change: $Author: rt $ $Date: 2003-09-19 08:51:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/**
* Copyright (C) 2013 CoDyCo Project
* Author: Silvio Traversaro
* website: http://www.codyco.eu
*/
#include "kdl_codyco/treepartition.hpp"
#include <kdl/joint.hpp>
#include <algorithm>
#include <cassert>
#include <iostream>
#include <sstream>
#include "kdl_codyco/utils.hpp"
#include "kdl_cod... |
<commit_before>
#include <ctype.h>
#include <iostream>
#include <boost/regex.hpp>
#include "storage/Devices/MdImpl.h"
#include "storage/Holders/MdUser.h"
#include "storage/Devicegraph.h"
#include "storage/Action.h"
#include "storage/Storage.h"
#include "storage/Environment.h"
#include "storage/SystemInfo/SystemInfo.h... |
<commit_before>/*
* Copyright (c) [2004-2009] Novell, Inc.
* Copyright (c) 2018 SUSE LLC
*
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as published
* by the Free Software Foundation.
*
* Thi... |
<commit_before>#include "mainwindow.h"
#include "helpwindow.h"
#include "utils.h"
#include "ui_mainwindow.h"
#ifdef Q_WS_WIN
#include <windows.h>
#endif
#include <QApplication>
#include <QCloseEvent>
#include <QDebug>
#include <QDesktopServices>
#include <QDesktopWidget>
#include <QDir>
#include <QHelpEngine>
#i... |
<commit_before>/*
* Copyright (c) 2013 Fredrik Mellbin
*
* This file is part of VapourSynth.
*
* VapourSynth 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 the License, or (at y... |
<commit_before>#include "windowManager.h"
#ifdef WIN32
#include "dynamicLibrary.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include "graphics/opengl.h"
#include "Updatable.h"
#include "Renderable.h"
#include "collisionable.h"
#include "postProcessManager.h"
#include "input.h"
#include <glm/gtc/type_... |
<commit_before>/**
* ZNC Mailer Module
*
* A ZNC Module that uses the Unix mail command to send mentions and private
* messages to an email address when you are not connected to ZNC.
*
* Copyright (c) 2011 Dougal Matthews
* Licensed under the MIT license
*/
#include <main.h>
#include <string>
#include <stdio.h... |
<commit_before>#include <iostream>
#include <boost/program_options.hpp>
#include <plasp/sas/Description.h>
#include <plasp/sas/TranslatorASP.h>
int main(int argc, char **argv)
{
namespace po = boost::program_options;
po::options_description description("Allowed options");
description.add_options()
("help,h", "... |
<commit_before>// Multi-aligner
#include "malign.h"
using namespace std;
/*
* MAligner
*/
MAligner::MAligner(int nseq, char** seqs, char** names){
global_matrix = (dp_matrix*) malloc(sizeof(dp_matrix));
global_matrix->matrix = NULL;
global_matrix->size = 0;
for( int ii = 0; ii < nseq; ++ii ){
... |
<commit_before>// $Id: fourth_error_estimators.C,v 1.5 2005-06-11 03:59:18 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 General Pu... |
<commit_before>// Copyright (c) 2006-2008 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/url_request/url_request_job_manager.h"
#include "build/build_config.h"
#include "base/string_util.h"
#include "net/... |
<commit_before>/*
* module_param_cache.cpp
*
* Created on: 19 Jul 2012
* Author: andreas
*/
#include "planner_modules_pr2/module_param_cache.h"
std::string ModuleParamCache::baseNamespace = "/tfd_modules/cache";
ModuleParamCache::ModuleParamCache()
{
node = NULL;
}
void ModuleParamCache::initialize(... |
<commit_before>#pragma once
#include "node.hpp"
#include "type.hpp"
#include "ctype.hpp"
namespace backend {
class copier
: public no_op_visitor<std::shared_ptr<node> >
{
protected:
//If you know you're not going to do any rewriting at deeper
//levels of the AST, just grab the pointer from the node
te... |
<commit_before>/*
* Clever language
* Copyright (c) 2010 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 the rights to... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: options.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: rt $ $Date: 2005-09-07 18:12:45 $
*
* The Contents of this file are made ... |
<commit_before>/*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* i... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<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__
// TestCameraBBox.h
#include <gtest/gtest.h>
#include <test/Helpers.h>
#include <vw/Cartograp... |
<commit_before>/*
Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
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 ri... |
<commit_before>#include <iostream>
#include <SDL.h>
#include "res_path.h"
/*
* Lesson 1: Hello World!
*/
int main(int, char**){
//First we need to start up SDL, and make sure it went ok
if (SDL_Init(SDL_INIT_VIDEO) != 0){
std::cout << "SDL_Init Error: " << SDL_GetError() << std::endl;
return 1;
}
//Now cre... |
<commit_before>#include <string>
#include <iostream>
#if defined(_MSC_VER)
#include <SDL.h>
#include <SDL_image.h>
#elif defined(__clang__)
#include <SDL2/SDL.h>
#include <SDL2_image/SDL_image.h>
#else
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#endif
/*
* Lesson 5: Clipping Sprite Sheets
*/
//Screen attribute... |
<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-2012 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to an... |
<commit_before><commit_msg>cast to pointer to pointer, not just pointer. (confused yet?)<commit_after><|endoftext|> |
<commit_before>#include "kerberos_context.h"
Persistent<FunctionTemplate> KerberosContext::constructor_template;
KerberosContext::KerberosContext() : ObjectWrap() {
}
KerberosContext::~KerberosContext() {
}
KerberosContext* KerberosContext::New() {
NanScope();
Local<Object> obj = NanNew(constructor_template)-... |
<commit_before>#include "androidretracer.h"
#include "androiddevicedialog.h"
#include "thumbnail.h"
#include "image/image.hpp"
#include "trace_profiler.hpp"
#include <QHostAddress>
#include <QJsonDocument>
#include <QSettings>
#include <QTime>
typedef QLatin1String _;
static QLatin1String packageName("apitrace.gi... |
<commit_before>/*
* $Id: XMReceiverMediaPatch.cpp,v 1.30 2007/02/13 12:57:52 hfriederich Exp $
*
* Copyright (c) 2005-2007 XMeeting Project ("http://xmeeting.sf.net").
* All rights reserved.
* Copyright (c) 2005-2007 Hannes Friederich. All rights reserved.
*/
#include "XMReceiverMediaPatch.h"
#include <opal/med... |
<commit_before>// Time: O(n)
// Space: O(1)
class Solution {
public:
string reverseVowels(string s) {
for (int i = 0, j = s.length() - 1; i < j;) {
if (is_vowel(tolower(s[i])) &&
is_vowel(tolower(s[j]))) {
swap(s[i++], s[j--]);
} else if (!is_vowel(... |
<commit_before>/*
* This file is a part of Xpiks - cross platform application for
* keywording and uploading images for microstocks
* Copyright (C) 2014-2015 Taras Kushnir <kushnirTV@gmail.com>
*
* Xpiks is distributed under the GNU General Public License, version 3.0
*
* This program is free software: you can r... |
<commit_before>/*************************************************************************/
/* Copyright (c) 2012 */
/* Linas Vepstas <linasvepstas@gmail.com> */
/* All rights reserved */
/... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkQtChartSeriesOptions.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for detail... |
<commit_before>#pragma once
#include "meta/enable_if.hpp"
#include "range.hpp"
#include <algorithm>
#include <array>
#include <functional>
namespace frea {
template <class MT>
class Random {
private:
using MT_t = MT;
MT_t _mt;
template <class T>
using Lim = std::numeric_limits<T>;
template <class T... |
<commit_before>/*
* Copyright 2010, 2011 Esrille 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 applic... |
<commit_before>// Copyright (c) 2006-2008 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 <ocidl.h>
#include <commdlg.h>
#include <string>
#include "base/scoped_ptr.h"
#include "printing/printing_test.h"
#incl... |
<commit_before>// Copyright 2010 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 agreed... |
<commit_before>// Copyright (c) 2010 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 "ppapi/cpp/var.h"
#include <string.h>
#include <algorithm>
#include "ppapi/c/pp_var.h"
#include "ppapi/c/ppb_var.h"
#includ... |
<commit_before><commit_msg>plugins: jsAPI: comment out debug messages in eventCallback<commit_after><|endoftext|> |
<commit_before>/*
This file is part of kdepim.
Copyright (c) 2004 Till Adam <adam@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
... |
<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>/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <base/parse_object.h>
#include <ifmap/ifmap_link.h>
#include <ifmap/ifmap_table.h>
#include <vnc_cfg_types.h>
#include <cmn/agent_cmn.h>
#include <cmn/agent.h>
#include <init/agent_param.h>
#include <cmn/agent_db.h>
#inc... |
<commit_before>/*
* Copyright 2001-2002,2004 The Apache Software 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
*
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.