text stringlengths 54 60.6k |
|---|
<commit_before>/*
* Copyright 2014 The Imaging Source Europe 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
*
* Unless required b... |
<commit_before>#include <array>
#include "core/image.h"
#include "core/io.h"
#include "core/raytracer.h"
#include "core/argparse.h"
using namespace euphoria::core;
int
main(int argc, char* argv[])
{
auto image_width = 200;
auto image_height = 100;
int number_of_samples = 100;
auto parser = argparse:... |
<commit_before>// Copyright 2011 Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of... |
<commit_before>// Triangle.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "Maze.h"
#include "Cube.h"
#include "EasyBMP\EasyBMP.h"
#include <GLTools.h> // OpenGL toolkit
#include <GLShaderManager.h> // Shader Manager Class
#include <iostream>
#ifdef __APPLE... |
<commit_before>/******************************************************************************/
/*
Author - Ming-Lun "Allen" Chou
Web - http://AllenChou.net
Twitter - @TheAllenChou
*/
/******************************************************************************/
#include "sid/sid.h"
/*
This is a simpl... |
<commit_before>#pragma once
#include "callouts-gen.hpp"
#include "elog_entry.hpp"
#include <algorithm>
#include <cstring>
#include <phosphor-logging/elog-errors.hpp>
#include <string>
#include <tuple>
#include <vector>
namespace phosphor
{
namespace logging
{
namespace metadata
{
using Metadata = std::string;
name... |
<commit_before>#include "helloworld.h"
#include <sampgdk/amxplugin.h>
#include <sampgdk/players.h>
#include <sampgdk/samp.h>
#include <sampgdk/wrapper.h>
#include <cstdio> // for sprintf
#include <cstring> // for strcmp
static logprintf_t logprintf;
using namespace sampgdk;
static HelloWorld theGameMode;
HelloWor... |
<commit_before>/* Copyright (c) 2017-2020 Hans-Kristian Arntzen
*
* 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, c... |
<commit_before>#include <stdint.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <err.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <time.h>
#include <unistd.h>
#include <stdbool.h>
#include <sam.h>
#define MIN(X, Y) (((X) < (Y)) ? (X) : (Y))
#define MAX(X, Y) (((X) > (Y)) ?... |
<commit_before>// Virvo - Virtual Reality Volume Rendering
// Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University
// Contact: Jurgen P. Schulze, jschulze@ucsd.edu
//
// This file is part of Virvo.
//
// Virvo is free software; you can redistribute it and/or
// modify it under the terms of the GN... |
<commit_before>// rungekutta.cpp: program to solve odes with classic Runge-Kutta method
//
// Copyright (C) 2017-2020 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
// Configure the posit library with arithmetic exceptions
/... |
<commit_before>#include <Empathy/Empathy/Empathy.h>
#include <Empathy/empathy-linear/linear_empathy.h>
#include <irrKlang.h>
#include <GLFW/glfw3.h>
#define FULL_SCREEN false
#if FULL_SCREEN
#define RENDER_SIZE 768
#define SC_SIZE_X 1366
#define SC_SIZE_Y 768
#else
#define RENDER_SIZE 690
#define SC_SIZE_X 700
... |
<commit_before>/*
* This program is just for personal experiments here on C++ mixin for
* handling lifecycle of specific objects.
*/
#include <string.h>
#include <fastarduino/errors.h>
#include <fastarduino/move.h>
#include <fastarduino/time.h>
// includes for the example program itself
#include <fastarduino/test... |
<commit_before>#include "Renderer.h"
#include "BoxActor.h"
Uint8 *keys = NULL;
// Following section is to be implemented by the input coders
/*GLboolean checkKeys(void)
{
static long lastTime = SDL_GetTicks();
const GLfloat speed = 1.0f;
const long updateTime = 10;
if ( keys[SDLK_ESCAPE] )
return true;
long ... |
<commit_before>/* Copyright Robert Osfield, Licensed under the GPL
*
* Experimental base for refactor of Present3D
*
*/
#include <osg/Geode>
#include <osg/Geometry>
#include <osg/ScriptEngine>
#include <osg/UserDataContainer>
#include <osgPresentation/Presentation>
#include <osgPresentation/Slide>
#include <osgPre... |
<commit_before>/* Copyright Robert Osfield, Licensed under the GPL
*
* Experimental base for refactor of Present3D
*
*/
#include <osg/Geode>
#include <osg/Geometry>
#include <osg/ScriptEngine>
#include <osg/UserDataContainer>
#include <osgPresentation/Presentation>
#include <osgPresentation/Slide>
#include <osgPre... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: datman.hxx,v $
*
* $Revision: 1.15 $
*
* last change: $Author: ihi $ $Date: 2008-01-14 14:38:59 $
*
* The Contents of this file are made ... |
<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 "config.h"
#include "base/compiler_specific.h"
#include "KeyboardCodes.h"
#include "StringImpl.h" // This is so that t... |
<commit_before>#include "FanCalculatorScene.h"
#include <algorithm>
#include <iterator>
#include "../mahjong-algorithm/stringify.h"
#include "../mahjong-algorithm/fan_calculator.h"
#include "../UICommon.h"
#include "../widget/TilePickWidget.h"
#include "../widget/ExtraInfoWidget.h"
#include "../widget/Toast.h"
#includ... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2009 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>#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
#include <sched.h>
#include <unistd.h>
#include <assert.h>
static int s_called = 0;
#define MAX_PID 32767
static int s_errno ;
static int s_errnos [ MAX_PID + 1 ];
static int32_t s_bad = 0;
static int32_t s_badPid = -... |
<commit_before>#include "joypad.h"
#include "memory.h"
#include "lr35902.h"
#include <stdio.h>
Joypad::Joypad(LR35902 &lr35902, Memory &mem) : cpu(lr35902), memory(mem)
{
// No buttons pressed at start
memory.direct_io_write8(Memory::IO::JOYP, 0xff);
}
void Joypad::button_pressed(Button::Name b)
{
buttons[b] = ... |
<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>/*
Copyright (C) 2012 by Ivan Safrin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: controlpropertymap.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2007-06-27 15:13:27 $
*
* The Contents of this file... |
<commit_before>//
// InputEvents.cpp
// moFloTest
//
// Created by Scott Downie on 16/06/2011.
// Copyright 2011 Tag Games. All rights reserved.
//
#include <ChilliSource/GUI/Base/InputEvents.h>
#include <ChilliSource/GUI/Base/GUIView.h>
#include <algorithm>
namespace ChilliSource
{
namespace GUI
{
... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/generic/memory/lib/spd/spd_checker.H $ ... |
<commit_before><commit_msg>Update InputManager.cpp<commit_after><|endoftext|> |
<commit_before>/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 2.70
Copyright (C) 2018 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>... |
<commit_before>#ifndef SNAKE_GAME_HPP
#define SNAKE_GAME_HPP
#include <string>
#include <vector>
#include <ncursesw/ncurses.h>
class Snake_Game
{
public:
// initialise and start game
Snake_Game() { reset(); }
inline void start();
void reset(); // reset game
private:
bool processTrack(const int &)... |
<commit_before>#ifndef CMDSTAN_ARGUMENTS_ARGUMENT_PARSER_HPP
#define CMDSTAN_ARGUMENTS_ARGUMENT_PARSER_HPP
#include <cmdstan/arguments/arg_method.hpp>
#include <cmdstan/arguments/argument.hpp>
#include <stan/services/error_codes.hpp>
#include <cstring>
#include <string>
#include <vector>
namespace cmdstan {
class ar... |
<commit_before>//
// Copyright (c) 2017-2019 the rbfx project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, co... |
<commit_before>#include <Poco/Logger.h>
#include <Poco/Net/NetException.h>
#include "gws/GatewayConnection.h"
using namespace std;
using namespace Poco;
using namespace Poco::Net;
using namespace BeeeOn;
GatewayConnection::GatewayConnection(
const GatewayID &gatewayID,
const WebSocket &webSocket,
SocketReactor... |
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
Copyright (C) 2004 by Peter Amstutz, Jorrit Tyberghein
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free ... |
<commit_before><commit_msg>small refinements to blend2d example<commit_after><|endoftext|> |
<commit_before>#ifndef VIENNAGRID_STORAGE_STATIC_ARRAY_HPP
#define VIENNAGRID_STORAGE_STATIC_ARRAY_HPP
#include "viennagrid/storage/container.hpp"
namespace viennagrid
{
namespace storage
{
template<typename T, std::size_t N>
class static_array {
public:
T elems[N]; // f... |
<commit_before>#include <osg/Notify>
#include <osg/MatrixTransform>
#include <osg/PositionAttitudeTransform>
#include <osg/Geometry>
#include <osg/Geode>
#include <osgUtil/Optimizer>
#include <osgDB/Registry>
#include <osgDB/ReadFile>
#include <osgGA/TrackballManipulator>
#include <osgGA/FlightManipulator>
#include ... |
<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 ... |
<commit_before>#include <array>
#include <memory>
#include <string>
#include "soma_clustering_test.h"
#include "base_simulation_test.h"
#include "param.h"
#include "matrix.h"
#include "sim_state_serialization_util.h"
#include "cells/cell.h"
#include "cells/cell_factory.h"
#include "local_biology/abstract_local_biolo... |
<commit_before>#ifdef USE_MEM_CHECK
#include <mcheck.h>
#endif
#include <osg/Group>
#include <osg/Notify>
#include <osgDB/Registry>
#include <osgDB/ReadFile>
#include <osgProducer/Viewer>
#include <osg/Quat>
#if defined (WIN32)
#include <winsock.h>
#endif
#include "receiver.h"
#include "broadcaster.h"
typedef un... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2011 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// 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 t... |
<commit_before>#include <windows.h>
#include <iphlpapi.h>
void GetMACAddresses(unsigned char*& paiAddresses, size_t& iAddresses)
{
static unsigned char aiAddresses[16][8];
IP_ADAPTER_INFO AdapterInfo[16];
DWORD dwBufLen = sizeof(AdapterInfo);
DWORD dwStatus = GetAdaptersInfo(
AdapterInfo,
&dwBu... |
<commit_before>#include "DeadScreen.hpp"
//-- Public
const std::string rd::DeadScreen::PARAM_REMAINING_TIME = "remaining_time";
const std::string rd::DeadScreen::PARAM_LAST_CAMERA_FRAME = "last_camera_frame";
//-- Protected
const std::string rd::DeadScreen::SKULL_PATH = "../images/skull.png";
const std::string rd::De... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Script Generator project on Qt Labs.
**
**... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
*
* This application is open source and may be redistributed and/or modified
* freely and without restriction, both in commericial and non commericial applications,
* as long as this copyright notice is maintained.
*
* This a... |
<commit_before>/*****************************************************************************
* *
* Copyright (c) 2016 Boris Pek <tehnick-8@yandex.ru> *
* ... |
<commit_before>#ifndef MS_RTC_CONSUMER_HPP
#define MS_RTC_CONSUMER_HPP
#include "common.hpp"
#include "Channel/Notifier.hpp"
#include "RTC/Codecs/PayloadDescriptorHandler.hpp"
#include "RTC/ConsumerListener.hpp"
#include "RTC/RTCP/CompoundPacket.hpp"
#include "RTC/RTCP/FeedbackRtpNack.hpp"
#include "RTC/RTCP/ReceiverR... |
<commit_before>#include <tiramisu/tiramisu.h>
#include "configuration.h"
#define GEMM_BATCH 10
using namespace tiramisu;
int main(int argc, char **argv)
{
// Single LSTM block without minibatching
tiramisu::init("lstm");
// -------------------------------------------------------
// Layer I
// -... |
<commit_before><commit_msg>update POT to latest version<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "bin/dfe.h"
#include "bin/dartutils.h"
#include "bin/directory.h"
#include "bi... |
<commit_before>#include "TpObserver.h"
TpObserver::TpObserver (const ChannelClassList &channelFilter,
QObject *parent )
: IObserver (parent)
, AbstractClientObserver(channelFilter)
, id(1) // Always ignore
{
}//TpObserver::TpObserver
void
TpObserver::setId (int i)
{
id... |
<commit_before>/*
* ProjectMain.cpp
*
* Created: 5/26/2015 2:22:43 PM
* Author: barna.peto
*/
/*Include Header files*/
#include <ProjectMain.h>
#include <schedulerConfig.h>
#include <PWM.h>
/*FOR PWM*/
#include <avr/io.h>
#include <avr/interrupt.h>
/*
* Main code called on reset is in Arduino.h
*/
void tas... |
<commit_before>#include <Poco/AutoPtr.h>
#include <gtest/gtest.h>
#include <exception>
#include <iostream>
#include <string>
#include <strstream>
#include "db.h"
#ifdef ENABLE_SQLITE3
extern "C" {
extern DB::Connection *create_sqlite3_connection(void);
};
class SqliteInvalidTest : public ::testing::Test {
... |
<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 notice,... |
<commit_before>/***********************************************************************
filename: CEGUIOpenGL3Renderer.cpp
created: Wed, 8th Feb 2012
author: Lukas E Meindl (based on code by Paul D Turner)
*************************************************************************/
/*****************... |
<commit_before>#include "console.hpp"
#include <unistd.h>
#include <iostream>
#include "exception.hpp"
namespace Quoridor {
namespace UI {
Console::Console(int player_num)
: game_(std::shared_ptr<Board>(new Board(10, 10)))
{
static std::string colors[4] = {
"red", "green", "pink", "blue"
};
if... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/convert_user_script.h"
#include <string>
#include <vector>
#include "base/base64.h"
#include "bas... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/common/chrome_switches.h"
class ExperimentalApiTest : public... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/common/chrome_switches.h"
class ExperimentalApiTest : public... |
<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 "base/command_line.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/common/chrome_switches.h"
IN_... |
<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 "chrome/app/chrome_dll_resource.h"
#include "chrome/browser/find_in_page_controller.h"
#include "chrome/test/automation/b... |
<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 <gtk/gtk.h>
#include "chrome/browser/options_window.h"
#include "app/l10n_util.h"
#include "base/message_loop.h"
#inclu... |
<commit_before>#include <assert.h>
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <iostream>
#include <string>
#include <vector>
#include "../../NULLC/nullc.h"
#include "context.h"
#include "handler.h"
#include <Windows.h>
#pragma warning(disable: 4996)
int main(int argc, char **argv)
{
while(!Is... |
<commit_before>//------------------------------------------------------------------------------
// Copyright (c) 2015-2017 John D. Haughton
//
// 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 Softwa... |
<commit_before>
#ifdef HAVE_CONFIG_H
# include <simgear_config.h>
#endif
#include "Technique.hxx"
#include "Pass.hxx"
#include "EffectCullVisitor.hxx"
#include <boost/foreach.hpp>
#include <iterator>
#include <vector>
#include <string>
#include <osg/GLExtensions>
#include <osg/GL2Extensions>
#include <osg/Math>
#i... |
<commit_before><commit_msg>Restore "magic resolve" as per code review.<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2016 Stoned Xander
*
* 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 ... |
<commit_before>/*
* Copyright 2007-2017 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: keymapping.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 01:04:09 $
*
* The Contents of this file are mad... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/document/fieldvalue/fieldvalues.h>
#include <vespa/vsm/common/storagedocument.h>
#include <vespa/vespalib/stllike/asciistream.h>
... |
<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
*
* http:... |
<commit_before>///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2009-08-29
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Jolla Ltd.
** Contact: Vesa-Matti Hartikainen <vesa-matti.hartikainen@jollamobile.com>
**
****************************************************************************/
/* This Source Code Form is subje... |
<commit_before><commit_msg>The reliability tests are reporting lots of crashers in the CLD library. Temporarily disabling the CLD detection while investigating.<commit_after><|endoftext|> |
<commit_before>#include "gtest/gtest.h"
#include <string>
#include <vector>
#include "StateMachine.hpp"
#include "StateMachineBuilder.hpp"
#include "RdUtils.hpp"
#include "DeadState.hpp"
#include "MockupNetworkManager.hpp"
#include "RdMockupImageManager.hpp"
#include "MockupInputManager.hpp"
#include "RdMentalMap.hpp... |
<commit_before>/*
* TTBlue Signal Crossfader Object
* Copyright © 2008, Timothy Place
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.html
*/
#include "TTDSP.h"
#define thisTTClass TTCrossfade
#define thisTTClassName "crossfade"
#define thisTTClassTags... |
<commit_before>/*
* $Id$
*/
#include <sys/time.h>
#include <stdio.h>
#include <fstream>
#include <map>
#include <list>
#include <iostream>
#include <sstream>
#include <cmath>
#include <set>
#include "crf.h"
#include "common.h"
using namespace std;
multimap<string, string> WNdic;
void tokenize(const string &s1, li... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_MAPPER_FEM_HH
#define DUNE_GDT_MAPPER_FEM_HH
#include <dune/common/dynv... |
<commit_before>/* libs/graphics/ports/SkFontHost_fontconfig.cpp
**
** Copyright 2008, 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/... |
<commit_before>// *****************************************************************************
//
// Copyright (c) 2014, Southwest Research Institute® (SwRI®)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following cond... |
<commit_before>// Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#include <cstring>
#include <cstdlib>
#include <memory>
#include "CompileConfig.h"
#if defined(OUZEL_SUPPORTS_SSE)
#include <xmmintrin.h>
#endif
#include "MathUtils.h"
namespace ouzel
{
uint32_t calculateMipLevels(uint... |
<commit_before>/* cclive
* Copyright (C) 2010-2013 Toni Gundogdu <legatvs@gmail.com>
*
* This file is part of cclive <http://cclive.sourceforge.net/>.
*
* 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... |
<commit_before>// Copyright 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 "config.h"
#include "ThrottledTextureUploader.h"
#include "Extensions3DChromium.h"
#include "TraceEvent.h"
#include <algorithm>
#... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: wakeupevent.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: obo $ $Date: 2007-07-17 15:20:53 $
*
* The Contents of this file are m... |
<commit_before>/*!
\copyright (c) RDO-Team, 2011
\file rdortp.cpp
\authors
\authors (rdo@rk9.bmstu.ru)
\date 11.06.2006
\brief
\indent 4T
*/
// ---------------------------------------------------------------------------- PCH
#include "simulator/compiler/parser/pch.h"
// -------... |
<commit_before>/************************************************************************
filename: CEGUIGroupBox.cpp
created: 03/23/2004
author: Lars 'Levia' Wesselius (Content Pane based on Tomas Lindquist Olsen's code)
purpose: Implementation of base class for the groupbox
*************************************... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: collect.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: vg $ $Date: 2007-02-27 11:53:44 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ximppage.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: vg $ $Date: 2007-08-28 13:34:59 $
*
* The Contents of this file are made ... |
<commit_before>#pragma once
#include <xcb/xcb.h>
#include <string>
#include <unordered_map>
#include "common.hpp"
POLYBAR_NS
// fwd
struct randr_output;
using monitor_t = shared_ptr<randr_output>;
struct enum_hash {
template <typename T>
inline typename std::enable_if<std::is_enum<T>::value, size_t>::type ope... |
<commit_before>/******************************************************************************
The MIT License(MIT)
Embedded Template Library.
https://github.com/ETLCPP/etl
http://www.etlcpp.com
Copyright(c) 2014 jwellbelove
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwar... |
<commit_before>/*************************************************************************
*
* $RCSfile: xmlwrap.hxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: kz $ $Date: 2004-10-04 20:04:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#ifndef HEAPQUEUE_H
#define HEAPQUEUE_H
#include "detail/common.hpp"
#include <iomanip>
#include <tuple>
#include <vector>
#include <queue>
#include <numeric>
#include <iterator>
namespace ndtess {
namespace heap {
template <typename T>
static pqueue<T> build(const T* _lab,
... |
<commit_before>struct edge {int v, f, w, c; };
int n, m, k, s, t, f, c, p[N], d[N], et[N];
vector<edge> e;
vector<int> g[N];
void add_edge(int u, int v, int w, int c) {
int k = e.size();
g[u].push_back(k);
g[v].push_back(k+1);
e.push_back({ v, 0, w, c });
e.push_back({ u, 0, -w, 0 });
}
void min_cost_max_... |
<commit_before>/**
* @file disk_index.tcc
* @author Sean Massung
*/
#include <cstdio>
#include <numeric>
#include <queue>
#include <iostream>
#include <utility>
#include <sys/stat.h>
#include "index/disk_index.h"
#include "index/chunk.h"
#include "parallel/thread_pool.h"
#include "util/common.h"
#include "util/opti... |
<commit_before>/******************************************************************************
* Copyright 2014 Micah C Chambers (micahc.vt@gmail.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 th... |
<commit_before>//===-- clang-format/ClangFormat.cpp - Clang format tool ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>AliEmcalJetTask* AddTaskEmcalJet(
const UInt_t type = AliEmcalJetTask::kAKT | AliEmcalJetTask::kFullJet | AliEmcalJetTask::kR040Jet,
const char *nTracks = "Tracks",
const char *nClusters = "CaloClusters",
const Double_t minTrPt = 0.15,
const Double_t minClPt = ... |
<commit_before>/* Siconos-sample , Copyright INRIA 2005-2011.
* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
* Siconos is a free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free... |
<commit_before><commit_msg>Increase the default quota for extensions to 1GB.<commit_after><|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.