text stringlengths 54 60.6k |
|---|
<commit_before>/*
* mod_compare - compares apache requests
*
* Copyright (C) 2013 Orange
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... |
<commit_before>/*
* Copyright (c) 2007 The Hewlett-Packard Development Company
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: SvXMLAutoCorrectExport.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: obo $ $Date: 2006-09-17 04:47:27 $
*
* The Contents of this... |
<commit_before>//
// nthRoot.cpp
// Calculator
//
// Created by Gavin Scheele on 3/27/14.
// Copyright (c) 2014 Gavin Scheele. All rights reserved.
//
#include "nthRoot.h"
using namespace std;
nthRoot::nthRoot(int root, int operand, int coefficient) {
this->type = "nthRoot";
this->operand = operand;
th... |
<commit_before>#include "x11api.h"
#ifdef __LINUX__
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xos.h>
#include <X11/keysymdef.h>
#include <X11/Xutil.h>
//#include <GL/glx.h> //FIXME
#include <Tempest/Event>
#include <Tempest/TextCodec>
#include <Tempest/Window>
#include <atomic>
#i... |
<commit_before>#include <sys/types.h>
#include <sys/sysctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <CoreFoundation/CoreFoundation.h>
#include <SystemConfiguration/SystemConfiguration.h>
namespace {
bool
verifyUser(void)
{
uid_t consoleUID;
CFStringRef result = SCDynamicSto... |
<commit_before>// CToolDlg.cpp
// Copyright (c) 2014, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"
#include "CToolDlg.h"
#include "interface/NiceTextCtrl.h"
enum
{
ID_TITLE_TYPE = 100,
ID_TOOL_TYPE,
ID_MATERIAL,
ID_DIRE... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: TitledControl.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: kz $ $Date: 2006-12-12 18:44:50 $
*
* The Contents of this file are... |
<commit_before>//
// nif_cass_uuid.cpp
// erlcass
//
// Created by silviu on 6/2/15.
//
//
#include "nif_cass_uuid.h"
#include "erlcass.h"
#include "utils.h"
typedef struct
{
CassUuidGen* gen;
}
EnifCassUuidGen;
ERL_NIF_TERM nif_cass_uuid_gen_new(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
cas... |
<commit_before>#ifdef USE_SDL
#include <SDL.h>
#endif
#include "bitmap.h"
#include "events.h"
#include "exceptions/shutdown_exception.h"
#include "funcs.h"
#include "thread.h"
namespace Util{
EventManager::EventManager(){
}
#ifdef USE_SDL
void EventManager::runSDL(){
SDL_Event event;
while (SDL_PollEvent(&ev... |
<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: statusbarcontroller.hxx,v $
* $R... |
<commit_before>// $Id$
/*
Copyright (c) 2007-2009, Trustees of The 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... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>#include <stdexcept>
#include <memory>
#include <functional>
#include <algorithm>
namespace crashes {
typedef std::function<void (int)> on_feedback;
namespace detail {
//////////////////////////////////////////////
typedef std::shared_ptr<size_t> shared_number;
////////////////... |
<commit_before>// Time: O(logn)
// Space: O(logn)
class Solution {
public:
int findKthNumber(int n, int k) {
int result = 0;
vector<int> cnts(10);
for (int i = 1; i < 10; i++) {
cnts[i] = cnts[i - 1] * 10 + 1;
}
vector<int> nums;
for (int i = n; i > 0;... |
<commit_before>// RUN: %clang %s -S -emit-llvm -o - | grep -e "define linkonce_odr.*_ZlsR11std_ostreamRK8StreamerI3FooE"
// PR8007: friend function not instantiated.
struct std_ostream
{
int dummy;
};
std_ostream cout;
template <typename STRUCT_TYPE>
struct Streamer
{
friend std_ostream& operator << (std_ostre... |
<commit_before>/*
Copyright (c) 2013, Ford Motor Company
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 condit... |
<commit_before>// renderable_sprite.t.cpp
#include <engine/rendering/renderable_sprite.h>
#include <engine/rendering/renderer.h>
#include <gtest/gtest.h>
TEST( RenderableSpriteTest, Construction )
{
using namespace StevensDev::sgdr;
RenderableSprite blank;
RenderableSprite copy( blank );
Renderer ren... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//======================================... |
<commit_before>/*******************************************************************************
* thrill/api/groupby.hpp
*
* DIANode for a groupby operation. Performs the actual groupby operation
*
* Part of Project Thrill - http://project-thrill.org
*
* Copyright (C) 2015 Huyen Chau Nguyen <hello@chau-nguyen.de... |
<commit_before>/*
* File: AddressesPage.cpp
* Author: danny
*
* Created on February 16, 2015, 12:26 PM
*/
#include "AddressesPage.h"
#include "DataSubsystem.h"
#include "WebMenu.h"
#include "EditThingPage.h"
#include <Poco/Data/Session.h>
#include <Poco/Util/Application.h>
const std::string AddressesPage::Titl... |
<commit_before>// Time: O(n)
// Space: O(c)
class Solution {
public:
/**
* @param A: A string includes Upper Case letters
* @param B: A string includes Upper Case letter
* @return: if string A contains all of the characters in B return true
* else return false
*/
bool compa... |
<commit_before>// Time: O(n * n!)
// Space: O(n)
class Solution {
public:
/**
* @param nums: A list of integers.
* @return: A list of unique permutations.
*/
vector<vector<int>> permuteUnique(vector<int> &nums) {
vector<vector<int>> result;
deque<bool> used(nums.size(), false);
... |
<commit_before>#include "Database.h"
#include "Task.h"
#include <assert.h>
#include <sstream>
int Database::_count = 0;
Database::Database(Task* task) {
++_count;
_task = task;
v8::Handle<v8::External> data = v8::External::New(task->getIsolate(), this);
v8::Local<v8::ObjectTemplate> databaseTemplate = v8::Ob... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkRectilinearGridGeometryFilter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm f... |
<commit_before>/*
* Copyright 2008-2013 NVIDIA Corporation
*
* 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>/****************************************************************************
*
* Copyright (c) 2020 PX4 Development Team. 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>/*****************************************************************************************
* *
* OpenSpace *
* ... |
<commit_before>#ifndef CLIENT_SERVER_INSTANCE_HPP
#define CLIENT_SERVER_INSTANCE_HPP
#include <atomic>
#include <thread>
#include <log.hpp>
#include "client_netcom.hpp"
#include "client_server_state.hpp"
#include <server_instance.hpp>
namespace config {
class state;
}
namespace client {
class server_instance... |
<commit_before>// @(#)root/base:$Id$
// Author: Rene Brun 26/12/94
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before><commit_msg>planning: delete obstacle history trajectory points if too old<commit_after><|endoftext|> |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2018 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... |
<commit_before>#include <gtest/gtest.h>
#include <limits>
#include <stan/math/prim/mat.hpp>
#include <string>
#include <vector>
template <typename T_m, typename T_a>
std::string pull_msg(Eigen::Matrix<T_m, -1, -1> &mat, T_a to_add) {
std::string message;
try {
stan::math::add_diag(mat, to_add);
} catch (std:... |
<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>#include "OneDMomentumFriction.h"
#include "EquationOfState.h"
template<>
InputParameters validParams<OneDMomentumFriction>()
{
InputParameters params = validParams<Kernel>();
// Required coupled variables
params.addRequiredCoupledVar("rhoA", "density term");
params.addRequiredCoupledVar("rhouA... |
<commit_before>//
// Copyright (c) 2014 CNRS
// Authors: Florent Lamiraux
//
// This file is part of hpp-core
// hpp-core 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
// 3 of the Lic... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkSbrCamera.cc
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1995 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighted by K... |
<commit_before>/*
* Copyright 2014 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 req... |
<commit_before><commit_msg>winlauncher: updated PATH modification order: jbr folders and then current PATH<commit_after><|endoftext|> |
<commit_before><commit_msg>Disable LoadState net unittest: it's flakey<commit_after><|endoftext|> |
<commit_before>/**
* @file statmech
* test problem for statistical mechanics in cantera
*/
// Example
//
// Test case for the statistical mechanics in cantera
//
#include <iostream>
#include <string>
#include <vector>
#include <string>
#include <iomanip>
/*************************************************... |
<commit_before>#include "CrashHandler.h"
#include "SkTypes.h"
#include <stdlib.h>
#if defined(SK_BUILD_FOR_MAC)
// We only use local unwinding, so we can define this to select a faster implementation.
#define UNW_LOCAL_ONLY
#include <libunwind.h>
#include <cxxabi.h>
static void handler(int sig) {
unw_context_t... |
<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>// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 by Apex.AI 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
... |
<commit_before>/*
* Runtime CPU detection
* (C) 2009-2010 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/cpuid.h>
#include <botan/types.h>
#include <botan/get_byte.h>
#include <botan/mem_ops.h>
#if defined(BOTAN_TARGET_OS_IS_DARWIN)
#include <sys/sysctl.h>
#endif
#if defined(BOT... |
<commit_before>
#include "../src/clientconsole.h"
#include "../../include/catch.hpp"
#include <QFile>
/*
template<class R, class... Args >
class funcRef<R(Args...)> {
};
*/
template <class C>
class RefData {
bool topLevel;
C * data;
public:
RefData() : data(new C), topLevel(true) {};
RefData(const C & d)... |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <stdint.h>
#include <math.h>
#undef DEBUG_PRINT
// For lightweight communication with the FPGA:
#define FPGA_MANAGER_BASE 0xFF706000
#define FPGA_GPO_OFFSET 0x10
#define FPGA_GPI_OFFSET 0x14
// H... |
<commit_before>/**
Copyright 2015 Joachim Wolff
Master Thesis
Tutors: Milad Miladi, Fabrizio Costa
Winter semester 2015/2016
Chair of Bioinformatics
Department of Computer Science
Faculty of Engineering
Albert-Ludwig-University Freiburg im Breisgau
**/
#include <iostream>
#include "minHashBase.h"
#include "s... |
<commit_before>// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/**
* A mesh component that specifies that the entity can be rendered.
* It contains a DrawObject instance from the renderer.
*
* License: Mozilla Publ... |
<commit_before>#include <iostream>
using namespace std;
class DepositoSimulacion{
private:
double capital;
int interes;
public:
//Constructos
DepositoSimulacion(double dinero, int inte){
while(dinero < 0){
cout<<"Capital incorrecto,vuelva a introducir el capital: ";
ci... |
<commit_before>#pragma once
#include <agency/detail/config.hpp>
#include <agency/detail/tuple.hpp>
#include <agency/detail/arithmetic_tuple_facade.hpp>
#include <agency/detail/type_traits.hpp>
#include <agency/detail/make_tuple_if_not_nested.hpp>
namespace agency
{
namespace detail
{
// index_tuple can't just be an... |
<commit_before>#include "logging.hpp"
#include <android/log.h>
#include <cassert>
#include "../../../../../base/assert.hpp"
#include "../../../../../base/logging.hpp"
#include "../../../../../base/exception.hpp"
namespace jni
{
using namespace my;
void AndroidLogMessage(LogLevel l, SrcPoint const & src, string co... |
<commit_before>#include "MPEditor.h"
MPEditor::MPEditor(const BMessage &msg, const BMessenger &msgr, BString windowTitle, int ideaID)
: BWindow(BRect(100, 100, 900, 700), windowTitle, B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS, B_CURRENT_WORKSPACE), launcherMessage(msg), launcherMessenger(ms... |
<commit_before>// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "precomp.h"
namespace Dml
{
constexpr NameAndIndex coordinateTransformationModes[] =
{
{"half_pixel", 0},
{"pytorch_half_pixel", 1},
{"align_corners", 2},
{"asymmetric", 3},
{"t... |
<commit_before>/**
* \file
* \brief PoolAllocator class header
*
* \author Copyright (C) 2014-2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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
* distrib... |
<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.
Some parts of this code ar... |
<commit_before>#include "../base/SRC_FIRST.hpp"
#include "framebuffer.hpp"
#include "render_target.hpp"
#include "internal/opengl.hpp"
#include "utils.hpp"
#include "../base/logging.hpp"
#include "../std/list.hpp"
namespace yg
{
namespace gl
{
list<unsigned int> frameBufferStack;
unsigned FrameBuffer::c... |
<commit_before>#include "com/mapswithme/maps/Framework.hpp"
#include "com/mapswithme/core/jni_helper.hpp"
#include "map/place_page_info.hpp"
#include "ugc/api.hpp"
#include "ugc/types.hpp"
#include "indexer/feature_decl.hpp"
#include "platform/preferred_languages.hpp"
#include "coding/multilang_utf8_string.hpp"
#... |
<commit_before>/*
* Copyright (C) 2015 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>//------------------------------------------------------------------------------
// IOFacadeTest.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "UnitTest++/src/UnitTest++.h"
#include "IO/IO.h"
#include "Core/Core.h"
#include "Core/RunLoop.h"... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: BinaryMedianImageFilter.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
... |
<commit_before>#include "FAST/Tests/catch.hpp"
#include "TubeSegmentationAndCenterlineExtraction.hpp"
#include "FAST/Importers/ImageFileImporter.hpp"
#include "FAST/Visualization/SliceRenderer/SliceRenderer.hpp"
#include "FAST/Visualization/LineRenderer/LineRenderer.hpp"
#include "FAST/Algorithms/SurfaceExtraction/Surf... |
<commit_before>#include <QApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <stdlib.h>
#include <QtGlobal>
#include <QtWidgets>
#include <QtSingleApplication>
int main(int argc, char *argv[])
{
QtSingleApplication app(argc, argv);
if (app.isRunning()) {
return 0;
}
Q... |
<commit_before>#include <GL/glew.h>
#include "SofaGL.h"
#include "VisualPickVisitor.h"
namespace sofa {
namespace simplegui {
template <typename T> inline T sqr(const T& t){ return t*t; }
SofaGL::SofaGL(SofaScene *s) :
_sofaScene(s)
{
if(!_sofaScene)
{
std::cerr << "Error: you are trying to crea... |
<commit_before>#include "bdb_common.hpp"
#include DB_CXX_HEADER
#include <bitcoin/utility/assert.hpp>
#include <bitcoin/utility/logger.hpp>
#include <bitcoin/format.hpp>
#include <bitcoin/transaction.hpp>
#include <bitcoin/address.hpp>
namespace libbitcoin {
bdb_common::bdb_common(DbEnv* env, Db* db_blocks, Db* db_... |
<commit_before>#define SEQAN_PROFILE
#include <iostream>
#include <seqan/sequence.h>
#include <seqan/file.h>
#include <seqan/system.h>
using namespace seqan;
using namespace std;
const int blockSize = 1 << 12;
const int repeats = 1 << 17;
char block1[blockSize] = "This a test string";
char block2[bloc... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: shapeattributelayerholder.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-07 21:18:09 $
*
* The Contents of th... |
<commit_before>#ifdef COMPONENT_PARSER_H
#ifndef COMPONENT_PARSER_OPERATION_H
#define COMPONENT_PARSER_OPERATION_H
namespace Operations {
const Token nullval("null", KEYWORD, CONSTANT);
Token add(Token, Token);
Token subtract(Token, Token);
Token multiply(Token, Token);
Token divide(Token, Token);
Token modulo(... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fileobj.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: vg $ $Date: 2006-11-22 10:37:29 $
*
* The Contents of this file are made a... |
<commit_before>#undef DEBUG
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
//for connection to server
#include "../sockets/SocketW.h"
bool ready4data = false;//set to true when streaming starts
bool inited =... |
<commit_before>/* Copyright 2014 Andrew Schwartzmeyer
*
* Source file for simulated annealing derived algorithm class
*/
#include <cmath>
#include <iostream>
#include "simulated_annealing_algorithm.hpp"
bool SimulatedAnnealing::probability(const parameter energy1,
const parameter energy2,
const ... |
<commit_before>/*
* pAlgorithm.cpp
*
* Author: Petel__
* Copyright (c) 2014-2016 HKUST SmartCar Team
* Refer to LICENSE for details
*/
#include <pSmartCar.h>
#include <libbase/k60/watchdog.h>
#include <pResource.h>
using namespace std;
using namespace libsc;
using namespace libbase::k60;
void p... |
<commit_before>/*
* Copyright (c) 2009-2017, Albertas Vyšniauskas
* 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>#pragma once
#include "VSExpHack.hpp"
// make it count for arguments:
#define _ARGCNT(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, N, ...) N
#define WRD_ARGCNT(...) WRD_VS_EXP_HACK(_ARGCNT(__VA_AR... |
<commit_before>/* Copyright 2019-present Barefoot Networks, 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 b... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: attributemap.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-07 20:23:50 $
*
* The Contents of this file are m... |
<commit_before>/*************************************************************************
*
* $RCSfile: pardlg.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: vg $ $Date: 2003-04-17 15:16:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>
/*
* Copyright (C) 2012 - 2013 微蔡 <microcai@fedoraproject.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 3 of the License, or
* (at your option) an... |
<commit_before>/*************************************************************************
*
* $RCSfile: edtwin3.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: os $ $Date: 2002-06-12 08:46:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/******************************************************************************\
* File: support.cpp
* Purpose: Implementation of support classes
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 1998-2008 Anton van Wezenbeek
* All rights are reserved. Reproducti... |
<commit_before>// Includes
#include "NDataManager.h"
namespace NDataManager
{
// Default initialize all data
TNavData m_navData = {};
TEnvironmentData m_environmentData = {};
TCapeData m_capeData = {};
TThrusterData m_thrusterData = {};
TCameraMountData m_cameraMountData = {};
TControllerData m_controller... |
<commit_before>#include <sm/logging/LoggingGlobals.hpp>
#include <sm/logging/StdOutLogger.hpp>
namespace sm {
namespace logging {
LoggingGlobals g_logging_globals;
LoggingGlobals::LoggingGlobals()
{
_logger.reset( new StdOutLogger() );
_level = levels::Info;
... |
<commit_before>/* Copyright 2014 - 2015 CyberTech Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
///
/// Generic version of the x86 CPU extension detection routine.
///
/// This file is for GNU & other non-Windows compilers, see 'cpu_detect_x86_win.cpp'
/// for the Microsoft compiler version.
///
/// Author : Co... |
<commit_before>// $Id: residueChecker.C,v 1.13 2000/10/30 00:19:59 amoll Exp $
#include <BALL/STRUCTURE/residueChecker.h>
#include <BALL/KERNEL/forEach.h>
#include <BALL/KERNEL/bond.h>
#include <BALL/KERNEL/chain.h>
#include <BALL/KERNEL/PTE.h>
#include <BALL/DATATYPE/hashSet.h>
using namespace std;
namespace BALL
{... |
<commit_before>/*=========================================================================
*
* Copyright Leiden University Medical Center, Erasmus University Medical
* Center and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance w... |
<commit_before>#include "KeyboardInputComponent.h"
#include "SDL2/SDL_events.h"
#include "SDL2/SDL_keyboard.h"
#include "SDL2/SDL_keycode.h"
void KeyboardInputComponent::Init()
{
//init keys I want to use for the game....
//should probably read from some file what keys I want to bind to..
//but this shou... |
<commit_before>/*
Copyright (c) 2012-2013, Jack Poulson
All rights reserved.
This file is part of Choice and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#ifndef CHOICE_H
#define CHOICE_H 1
#inclu... |
<commit_before>/*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2013-2015 Imperial College London
* Copyright 2013-2015 Andreas Schuh
*
* 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... |
<commit_before>#include "TMessage.h"
#include "TBenchmark.h"
#include "TSocket.h"
#include "TH2.h"
#include "TTree.h"
#include "TMemFile.h"
#include "TRandom.h"
#include "TError.h"
#include "TFileMerger.h"
#include "TServerSocket.h"
#include "TPad.h"
#include "TCanvas.h"
#include "TMonitor.h"
#include "TFileCacheWrit... |
<commit_before>#include "base64.hpp"
std::string base64_encode(const std::string &in)
{
char *map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
std::string result;
int len = (int)in.size();
unsigned long value;
for(int i=0; i<len;)
{
switch(len-i)
{
case 1:
//... |
<commit_before><commit_msg>Bugfix: `load_DDS_texture`: Fix integer overflow of `bufsize`.<commit_after><|endoftext|> |
<commit_before>#include "starlight_renderer.h"
#if defined(_WIN32) && defined(STARLIGHT_D3D10)
#include "starlight_d3d_shared.h"
#include "starlight_d3d10.h"
#include "starlight_renderer_windows.h"
#include <imgui.h>
#include "imgui_impl_dx10.h"
#include <d3d10_1.h>
#include <d3d10.h>
#include <d3dcompiler.h>
#defi... |
<commit_before>#include <ros/ros.h>
#include <stdio.h>
#include <tf/transform_listener.h>
#include "std_msgs/String.h"
//#include <cob_object_detection_msg/Detection.msg>
//#include <cob_object_detection_msgs/DetectObjects.h>
#include "geometry_msgs/PoseStamped.h"
#include <cob_object_detection_msgs/DetectionArray.h>
... |
<commit_before><commit_msg>Bugfix: `loaders::load_FBX_texture`: PNG loading loplaceholder code.<commit_after><|endoftext|> |
<commit_before>#include "party.h"
std::shared_ptr<Party> cache_fetch_party(uint32_t charId) {
auto conn = Core::connectionPool.getConnection<Core::Osirose>();
Core::Party partyTable{};
Core::PartyMembers partyMembersTable{};
auto res = conn(sqlpp::select(sqlpp::all_of(partyTable)).from(
partyMembersTable.... |
<commit_before>/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NeonPropFindRequest.cxx,v $
*
* $Revision: 1.15 $
*
* last change: $Author: hr $ $Date: 2006-06-20 05:36:43 $
*
* The Contents of this fi... |
<commit_before>//===-- PathMappingList.cpp -------------------------------------*- C++ -*-===//
//
// 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) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.