text stringlengths 54 60.6k |
|---|
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2001 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. Redistr... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lrucache.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2006-06-20 00:01:26 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ocomponentenumeration.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2006-06-19 10:53:18 $
*
* The Contents of this f... |
<commit_before>#include "../NacaBnd_test.h"
using namespace dealii;
using namespace NSFEMSolver;
#define dim 2
int main()
{
Triangulation<dim> triangulation;
{
GridIn<dim> grid_in;
grid_in.attach_triangulation (triangulation);
std::ifstream input_file ("NACA0012.msh");
Assert (input_file, ExcFil... |
<commit_before>/*
* Copyright 2014 Facebook, 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>// @(#)root/gpad:$Id$
// Author: Rene Brun 01/07/96
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2005-2007 Matthias Kretz <kretz@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
T... |
<commit_before>/*== SAGITTARIUS =====================================================================
* Copyright (c) 2012, Jesse K Medley
* 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>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (C) 2008 Sacha Schutz <istdasklar@free.fr>
* Copyright (C) 2008 Olivier Gueudelot <gueudelotolive@gmail.com>
* Copyright (C) 2008 Charles Huet <packadal@gm... |
<commit_before>/**
* The MIT License (MIT)
*
* Copyright (c) 2016 Brad van der Laan
*
* 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 ... |
<commit_before>/**
* @file column_types_test.cpp
* @date 09.01.2015
* @author mkoenig
*/
#include "pydbc/column_types.h"
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit_toolbox/helpers/is_abstract_base_class.h>
#include "mock_classes.h"
#include <sqlext.h>
class column_types_test : public Cpp... |
<commit_before>//===- Interpreter.cpp - Top-Level LLVM Interpreter Implementation --------===//
//
// This file implements the top-level functionality for the LLVM interpreter.
// This interpreter is designed to be a very simple, portable, inefficient
// interpreter.
//
//===--------------------------------------------... |
<commit_before>//===------- MandatoryCombiner.cpp ----------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>#pragma once
#include <concepts>
#include <cstddef>
#include <filesystem>
#include <phosphor-logging/lg2/flags.hpp>
#include <phosphor-logging/lg2/header.hpp>
#include <phosphor-logging/lg2/level.hpp>
#include <phosphor-logging/lg2/logger.hpp>
#include <phosphor-logging/lg2/source_location.hpp>
#include... |
<commit_before>/******************************************************************************
* YawController.cpp
*
* Contains the yaw_controller() function
******************************************************************************/
#include "Mapper.h"
/************************************************************... |
<commit_before>// Natron
/* 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 http://mozilla.org/MPL/2.0/. */
#include "NodeCreationDialog.h"
CLANG_DIAG_OFF(deprecated)
CLANG_DIAG_OFF(uninitialize... |
<commit_before>#include <jni.h>
#include <stdlib.h>
#include "lib/Log.h"
#include "data_core/base/HashTable.h"
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <sys/epoll.h>
#include <pthread.h>
#include <errno.h>
#define MAXBUFLEN 1024
#define MAXE... |
<commit_before>#include "FileStream.h"
#include <Windows.h>
#include <stdio.h>
#include <assert.h>
class FileStreamImpl {
private:
// Track the number of references to this filestream so
// that we know whether or not we need to close it when
// the object gets destroyed.
uint32 m_ReferenceCount;
HANDLE... |
<commit_before>#include "Core/Time.h"
#include "Containers/String.h"
#include <time.h>
#include <cstdio>
namespace Intra {
DateTime DateTime::Now()
{
const time_t t = time(0);
tm* now = localtime(&t);
return {ushort(now->tm_year+1900), byte(now->tm_mon+1), (byte)now->tm_mday,
(byte)now->tm_hour, (byte)now->tm... |
<commit_before>/*
* tools_p.cpp
*
* Copyright (c) 2001, 2002, 2003 Frerich Raabe <raabe@kde.org>
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. For licensing and distributi... |
<commit_before>/**
* @file cursor.cpp
* @date 12.12.2014
* @author mkoenig
* @brief
*
* $LastChangedDate$
* $LastChangedBy$
* $LastChangedRevision$
*
*/
#include <pydbc/cursor.h>
#include <pydbc/column_types.h>
#include <sqlext.h>
#include <stdexcept>
namespace pydbc {
namespace {
bool is_string_t... |
<commit_before>//
// ZX8081.cpp
// Clock Signal
//
// Created by Thomas Harte on 04/06/2017.
// Copyright © 2017 Thomas Harte. All rights reserved.
//
#include "ZX8081.hpp"
#include "../MemoryFuzzer.hpp"
using namespace ZX8081;
namespace {
// The clock rate is 3.25Mhz.
const unsigned int ZX8081ClockRate = 325... |
<commit_before>///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2002, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted prov... |
<commit_before>/*************************************************************************
*
* $RCSfile: tabsthdl.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: mib $ $Date: 2001-07-02 09:50:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#include <nan.h>
#include <string.h>
#ifdef WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif // win32
extern "C" {
#include <git2.h>
{% each cDependencies as dependency %}
#include <{{ dependency }}>
{% endeach %}
}
#include <iostream>
#include "../include/nodegit.h"
#include "../i... |
<commit_before>// Draws 2D star
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <cmath>
#include "common.hpp"
#define PI 3.14159265359
void display();
void display2();
void init();
void par(GLfloat hx, GLfloat hy, GLfloat lx, GLfloat ly, int colornum);
void write(GLubyte text[]);
void star();
v... |
<commit_before>#ifndef __PLUGINSETTINGS_HPP__
#define __PLUGINSETTINGS_HPP__
#include "plugin.hpp"
class PluginSettings
{
HANDLE handle;
FARAPISETTINGSCONTROL SettingsControl;
public:
PluginSettings(const GUID &guid, FARAPISETTINGSCONTROL SettingsControl)
{
this->SettingsControl = SettingsControl;
handle = ... |
<commit_before>/**
* @file
*
* @brief Source for cpptemplate plugin
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include "cpptemplate.hpp"
#include "cpptemplate_delegate.hpp"
#include <kdbhelper.h>
using elektra::CppTemplateDelegate;
extern "C" {
typedef Delegator<CppTempl... |
<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>/* Copyright 2020 The TensorFlow 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 appl... |
<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>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2010 Emmanuel Benazera, ebenazer@seeks-project.info
*
* 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 ... |
<commit_before>/* csvstream_test.cpp
*
* Andrew DeOrio <awdeorio@umich.edu>
*
* An easy-to-use CSV file parser for C++
* https://github.com/awdeorio/csvstream
*/
#include "csvstream.h"
#include <iostream>
#include <fstream>
#include <string>
#include <map>
#include <vector>
using namespace std;
void test_filen... |
<commit_before>/*
Q Light Controller Plus
webaccessauth.cpp
Copyright (c) Bartosz Grabias
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... |
<commit_before>/**
* \file
*
* \brief Plugin which acts as proxy and calls other plugins written in python
*
* \copyright BSD License (see doc/COPYING or http://www.libelektra.org)
*
*/
#ifndef SWIG_TYPE_TABLE
# error Build system error, SWIG_TYPE_TABLE is not defined
#endif
#include <Python.h>
#ifndef HAVE_K... |
<commit_before>/**
* @file
*
* @brief Plugin which acts as proxy and calls other plugins written in python
*
* @copyright BSD License (see doc/COPYING or http://www.libelektra.org)
*
*/
#ifndef SWIG_TYPE_TABLE
#error Build system error, SWIG_TYPE_TABLE is not defined
#endif
#include <Python.h>
#ifndef HAVE_KD... |
<commit_before>#include <cassert>
#include <cstdio>
#include <iostream>
#include <map>
#include "Blur.h"
#include "Sharpen.h"
#include "Sobel.h"
#define METHOD_REFERENCE (1<<1)
#define METHOD_HALIDE_CPU (1<<2)
#define METHOD_HALIDE_GPU (1<<3)
#define METHOD_OPENCL (1<<4)
using namespace improsa;
using namespace... |
<commit_before>/****************************************************************************
**
** This file is part of QtCompositor**
**
** Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
**
** Contact: Nokia Corporation qt-info@nokia.com
**
** You may use this file under the t... |
<commit_before>/**
* Render Pipeline C++
*
* Copyright (c) 2014-2016 tobspr <tobias.springer1@gmail.com>
* Copyright (c) 2016-2017 Center of Human-centered Interaction for Coexistence.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation... |
<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 "webkit/glue/webaccessibility.h"
#include "third_party/WebKit/WebKit/chromium/public/WebAccessibilityCache.h"
#include "third... |
<commit_before>/***************************************************************************
* algo/sort_file.cpp
*
* Part of the STXXL. See http://stxxl.sourceforge.net
*
* Copyright (C) 2002-2003 Roman Dementiev <dementiev@mpi-sb.mpg.de>
* Copyright (C) 2009 Andreas Beckmann <beckmann@cs.uni-frankfurt.de>
*... |
<commit_before>#include <iostream>
#include <cstdio>
using namespace std;
struct TreeNode
{
int data;
TreeNode* left;
TreeNode* right;
};
typedef TreeNode* NodePtr;
NodePtr parse_tree()
{
char c;
cin >> c; // Read (
cin >> c; // Read next character
// If the next character is ), this i... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlictxt.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2007-06-27 14:57:40 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: layerexp.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-09 13:44:40 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* $RCSfile: xmltabi.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: rt $ $Date: 2004-07-13 08:29:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* $RCSfile: txtstyle.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: mtg $ $Date: 2001-03-22 21:02:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>// Copyright (c) 2011-2014 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 "bitcoinamountfield.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "qvaluecombobox.h... |
<commit_before>#include "businessobjectlist.h"
#include "bitcoinunits.h"
#include "ui_businessobjectlist.h"
#include "secdialog.h"
#include "ui_secdialog.h"
#include "writeorphan.h"
#include "walletmodel.h"
#include "guiutil.h"
#include "rpcpog.h"
#include <QPainter>
#include <QTableWidget>
#include <QGridLayout>
#incl... |
<commit_before>#ifndef FILESYSTEM_TEST_HELPER_HPP
#define FILESYSTEM_TEST_HELPER_HPP
#include <experimental/filesystem>
#include <cassert>
#include <cstdio> // for printf
#include <string>
#include <fstream>
#include <random>
#include <chrono>
namespace fs = std::experimental::filesystem;
// static test helpers
#if... |
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved.
#include "rdb_protocol/wire_func.hpp"
#include "containers/archive/boost_types.hpp"
#include "containers/archive/stl_types.hpp"
#include "containers/archive/archive.hpp"
#include "rdb_protocol/env.hpp"
#include "rdb_protocol/func.hpp"
#include "rdb_... |
<commit_before>/*************************************************************************
*
* REALM CONFIDENTIAL
* __________________
*
* [2011] - [2015] Realm Inc
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Realm Incorporated and its suppliers,
* i... |
<commit_before>/**
* This file is part of the CernVM File System.
*/
#include <gtest/gtest.h>
#include "publish/except.h"
#include "publish/settings.h"
using namespace std; // NOLINT
namespace publish {
class T_Transaction : public ::testing::Test {
protected:
virtual void SetUp() {
}
protected:
};
TEST... |
<commit_before>//
// EnviroGUI.cpp
// GUI-specific functionality of the Enviro class
//
// Copyright (c) 2003-2007 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#... |
<commit_before>/******************************************************************************
nomlib - C++11 cross-platform game engine
Copyright (c) 2013, 2014 Jeffrey Carpenter <i8degrees@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitt... |
<commit_before>
#include <pthread.h>
#include <iostream>
struct subArys{
int** ary11;
int** ary12;
int** ary21;
int** ary22;
int n;
};
struct multArgs{
int** c;
int** a;
int** b;
int n;
public:
multArgs(int** c_, int** a_, int** b_, int n_){
c=c_;
a=a_;
b=b_;
n=n_;... |
<commit_before>#define SYS_CLOCK_GETTIME 263
#include "linux_clock.cpp"
<commit_msg>Fix a syscall number for 64-bit arm<commit_after>#ifdef BITS_64
#define SYS_CLOCK_GETTIME 113
#endif
#ifdef BITS_32
#define SYS_CLOCK_GETTIME 263
#endif
#include "linux_clock.cpp"
<|endoftext|> |
<commit_before>/*****************************************************************************
* Copyright (C) 2008-2011 Massachusetts Institute of Technology *
* *
* Permission is hereby granted, free of charge, to any person obta... |
<commit_before>// ========================================================================== //
// This file is part of Sara, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2015-2016 David Ok <david.ok8@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// ... |
<commit_before>//===-- LLVMSymbolize.cpp -------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// 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 http://mozilla.org/MPL/2.0/.
#include "burg.hpp"
#include <algorithm>
#include <cassert>
#include <iostream>
#include <iterator>
#... |
<commit_before>#include "bvsd.h"
/** Main function, creates interactive loop. */
int main(const int argc, const char** argv)
{
signal(SIGINT, mainSignal);
signal(SIGSEGV, mainSignal);
signal(SIGALRM, mainSignal);
bvs = new BVS::BVS(argc, argv, &shutdownFunction);
LOG(2, "loading modules!");
bvs->loadModules();... |
<commit_before>#include <sigma/util/filesystem.hpp>
#include <filesystem>
namespace sigma {
namespace filesystem {
bool contains_file(std::filesystem::path directory, std::filesystem::path file)
{
auto dbegin = directory.begin();
auto dend = directory.end();
auto fbegin = file.begin();... |
<commit_before>/*************************************************************************
*
* $RCSfile: svgcom.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: ka $ $Date: 2001-03-22 17:49:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>#include "SlitherlinkDatabase.h"
#include "SlitherlinkDatabaseMethod.hpp"
#include "../common/SolverConstant.h"
namespace Penciloid
{
int *SlitherlinkDatabase::database = nullptr;
const int SlitherlinkDatabase::DATABASE_DX[] = { -2, -2, -1, -1, -1, 0, 0, 1, 1, 1, 2, 2 };
const int SlitherlinkDat... |
<commit_before>//
// Copyright Copyright 2009-2022, AMT – The Association For Manufacturing Technology (“AMT”)
// 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 Licens... |
<commit_before>//
// PROJECT: Aspia Remote Desktop
// FILE: host/console_session_launcher.cc
// LICENSE: See top-level directory
// PROGRAMMERS: Dmitry Chapyshev (dmitry@aspia.ru)
//
#include "host/console_session_launcher.h"
#include <userenv.h>
#include <wtsapi32.h>
#includ... |
<commit_before>// main.cpp: Santiago Arias
// Description: HW4 the HEX program
// c++11
// to compile: g++ -std=c++11 graph.cpp shortest_path.cpp main.cpp;
#include <iostream>
#include "graph.h"
#include "shortest_path.h"
using namespace std;
int main(){
cout << "HW 4" << endl;
}
<commit_msg>starting the hex board... |
<commit_before>#include <catch.hpp>
#include <memory>
#include "GCodeWriter.hpp"
#include "test_options.hpp"
using namespace Slic3r;
using namespace std::literals::string_literals;
SCENARIO("lift() is not ignored after unlift() at large values of Z", "[!mayfail]") {
GIVEN("A config from a file and a si... |
<commit_before>#include "Base64.h"
const char b64_alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789+/";
/* 'Private' declarations */
inline void a3_to_a4(unsigned char * a4, unsigned char * a3);
inline void a4_to_a3(unsigned char * a3, unsigned char * a4);
inline unsigned char b64... |
<commit_before>#include "interpreter.h"
#include "details/autoconfigurer.h"
#include <QtCore/QDebug>
using namespace qReal;
using namespace interpreters::robots;
using namespace interpreters::robots::details;
const Id startingElementType = Id("RobotsMetamodel", "RobotsDiagram", "InitialNode");
const Id startingElem... |
<commit_before>#include <QCoreApplication>
#include <QtGui/QAction>
#include "interpreter.h"
#include "details/autoconfigurer.h"
#include "details/robotImplementations/unrealRobotModelImplementation.h"
#include "details/robotCommunication/bluetoothRobotCommunicationThread.h"
#include "details/robotCommunication/usbRo... |
<commit_before>#include "../notification.h"
#include "../cef_handler.h"
#include "main_window.h"
bool
MainWindow::SetFocus(bool focused) {
BaseWindow::SetFocus(focused);
if (!focused)
return false;
CefRefPtr<ClientHandler> handler = ClientHandler::GetInstance();
if (!handler)
return false;
CefRefP... |
<commit_before>#include "docks/favorites-dock.h"
#include <QEvent>
#include <QStringList>
#include <ui_favorites-dock.h>
#include "functions.h"
#include "helpers.h"
#include "models/favorite.h"
#include "models/profile.h"
#include "ui/QAffiche.h"
FavoritesDock::FavoritesDock(Profile *profile, QWidget *parent)
: Dock... |
<commit_before>/*
* Copyright 2011-2017 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include "common.h"
#include "bgfx_utils.h"
#include <entry/cmd.h>
#include <entry/input.h>
#include <camera.h>
#include <debugdraw/debugdraw.h>
#include <imgui/imgui... |
<commit_before>#include "TestRcGen.h"
#include "Render/Renderable/StaticRenderable.h"
#include "Render/Renderable/StaticRenderableContainer.h"
#include "Render/Shader/Shader.h"
#include "Render/RenderCommand/RenderCommand.h"
#include "Render/Camera.h"
#include "Render/Shader/ShaderUniformUpdater.h"
namespace ve
{
cla... |
<commit_before>/*
Copyright (C) 2015,2018 Rodrigo Jose Hernandez Cordoba
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 la... |
<commit_before><commit_msg>found typo, gave false positive results - triangles no longer work<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cppdep.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: rt $ $Date: 2005-09-09 13:28:36 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rscdep.cxx,v $
*
* $Revision: 1.20 $
*
* last change: $Author: rt $ $Date: 2005-09-09 13:32:16 $
*
* The Contents of this file are made a... |
<commit_before>#ifndef _MSP_PERIPH_HPP
#define _MSP_PERIPH_HPP
#include <msp430.h>
#include "msp430/msp_sys.hpp"
#include "utilities/circfifo.hpp"
#define REG_16(x) *((volatile uint16_t*)x)
#define REG_8(x) *((volatile uint8_t*)x)
namespace McuPeripheral {
struct DisableAllInterrupts {
void operator () (){
__di... |
<commit_before>//---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_TetMeshTrackLengthFluxEstimator.cpp
//! \author Alex Robinson, Eli Moll
//! \brief Tet mesh flux estimator class declaration.
//!
//-----------------------------------------------------------------... |
<commit_before>#include "shader_program.h"
#include "pathos/engine.h"
#include "pathos/render/render_device.h"
#include "pathos/util/log.h"
#include "pathos/util/resource_finder.h"
#include "badger/assertion/assertion.h"
#include <fstream>
#include <sstream>
#define DUMP_SHADER_SOURCE 0
namespace pathos {
static ... |
<commit_before>#ifndef _PNMC_MC_STATISTICS_SERIALIZE_HH_
#define _PNMC_MC_STATISTICS_SERIALIZE_HH_
#include <cereal/archives/json.hpp>
#include <cereal/types/deque.hpp>
#include "conf/configuration.hh"
#include "mc/statistics.hh"
namespace pnmc { namespace mc {
/*----------------------------------------------------... |
<commit_before>/*
Nazara Engine
Copyright (C) 2015 Jérôme "Lynix" Leclercq (Lynix680@gmail.com)
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 limitat... |
<commit_before>#ifndef Texture_HPP
#define Texture_HPP
#include <VBE/config.hpp>
#include <VBE/graphics/OpenGL.hpp>
#include <VBE/graphics/TextureFormat.hpp>
#include <VBE/utils/NonCopyable.hpp>
class Texture : public NonCopyable {
public:
enum Type {
Type2D = 0,
Type2DArray,
Type3D,
TypeCubemap,
Ty... |
<commit_before>/****************************************************************************/
/* Copyright 2005-2006, Francis Russell */
/* */
/* Licensed under the Apache License, Version 2.0 (the License); ... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2016 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>//======================================================================
//-----------------------------------------------------------------------
/**
* @file iutest_file.hpp
* @brief iris unit test ファイルクラス ファイル
*
* @author t.shirayanagi
* @par copyright
* Copyright (C) 2... |
<commit_before>/*
Copyright (c) 2007, Un Shyam
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 conditions... |
<commit_before>/*
Copyright (c) 2007, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2002 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>#ifndef CPPMATH_VECTOR_INL
#define CPPMATH_VECTOR_INL
#include "Vector.hpp"
#include "../TypeTraits.hpp" // almostEquals
#include "Point2.hpp"
#define _FOREACH_VECTOR(var, op) for (size_t (var) = 0; (var) < N; ++(var)) { op }
namespace geometry
{
template <typename T, size_t N>
Vector<T, N>::V... |
<commit_before>// Copyright (C) 2010-2012 Joshua Boyce.
// See the file COPYING for copying permission.
#pragma once
#include <array>
#include <memory>
#include <string>
#include <vector>
#include <cassert>
#include <cstddef>
#include <exception>
#include <type_traits>
#include <windows.h>
#include ... |
<commit_before>/*
Copyright 2011-2014 Rogier van Dalen.
This file is part of Rogier van Dalen's Range library for C++.
This library 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... |
<commit_before>//============================================================================
// include/vsmc/utility/cstring.hpp
//----------------------------------------------------------------------------
//
// vSMC: Scalable Monte Carlo
//
// This file is distributed under the 2-clauses BSD... |
<commit_before>#include "classificator_loader.hpp"
#include "classificator.hpp"
#include "drawing_rules.hpp"
#include "../defines.hpp"
#include "../platform/platform.hpp"
#include "../coding/reader_streambuf.hpp"
#include "../base/logging.hpp"
#include "../std/fstream.hpp"
namespace classificator
{
void ReadCo... |
<commit_before>#include <string>
#include "pbfgraphbuilder.h"
#include "mjolnir/graphbuilder.h"
#include "config.h"
// For OSM pbf reader
using namespace valhalla::mjolnir;
#include <ostream>
#include <boost/program_options.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/property_tree/ptree.hpp>
#inc... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of mcompositor.
**
** If you have questions regarding the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.