text stringlengths 54 60.6k |
|---|
<commit_before>/*
===========================================================================
daemon gpl source code
copyright (c) 2013 unvanquished developers
this file is part of the daemon gpl source code (daemon source code).
daemon source code is free software: you can redistribute it and/or modify
it under the... |
<commit_before>#include "scene/Scene.hpp"
#include "scene/Sky.hpp"
#include "system/TextUtilities.hpp"
#include <map>
#include <sstream>
Scene::Scene(const std::string & name) {
// Append the extension if needed.
std::string fullName = name;
if(!TextUtilities::hasSuffix(name, ".scene")) {
fullName += ".scene";
... |
<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>#pragma once
#define ENABLE_WAWL_WINDOWBASETYPE
#include "BaseType.hpp"
#include "MenuBaseType.hpp"
namespace wawl {
namespace wnd {
enum class ImageLoadOption : Uint {
DefaultColor = LR_DEFAULTCOLOR,
UseDIBSection = LR_CREATEDIBSECTION,
SysDefaultSize = LR_DEFAULTSIZE,
Monochrome = LR... |
<commit_before>// $Id$
//
// Ported from JTS junit/linearref/AbstractIndexedLineTest.java rev. 1.10
// and junit/linearref/LengthIndexedLineTest.java rev. 1.10
#include <tut.hpp>
#include <utility.h>
// geos
#include <geos/platform.h>
#include <geos/io/WKTReader.h>
#include <geos/geom/PrecisionModel.h>
#include <geo... |
<commit_before>#include <dirent.h>
#include "../InternalTypes.h"
void DirectoryType::__constructor__() {
auto file_path = Program::argument<TextInstance>();
auto self = Program::create<DirectoryInstance>();
self->file_path = file_path->text();
Program::push(self);
}
void DirectoryType::contents() {
auto self ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: testtoolloader.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: obo $ $Date: 2006-09-17 01:05:15 $
*
* The Contents of this file ar... |
<commit_before>/*
* LCALifLayer.cpp
*
* Created on: Jun 26, 2012
* Author: slundquist & dpaiton
*/
#include "LCALIFLayer.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
//////////////////////////////////////////////////////
// implementation of LIF kerne... |
<commit_before>/* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// Sour... |
<commit_before>/*
*
* Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U
*
* This file is part of Orion Context Broker.
*
* Orion Context Broker 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, ... |
<commit_before>//
// Name: LayerPropDlg.cpp
//
// Copyright (c) 2002 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#ifdef __GNUG__
#pragma implementation "LayerPropDlg.cpp"
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifde... |
<commit_before>/**************************************************************************
**
** This file is part of the Qt Build Suite
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
**
** GNU Lesser General Public License Usage
**
** Thi... |
<commit_before>// Copyright (c) 2014 Andrew Toulouse.
// Distributed under the MIT License.
#include "Block.h"
#include <fstream>
#include <cassert>
#include <cstring>
namespace libol {
bool get_bit(uint8_t byte, int n) {
return (byte >> (7 - n)) & 1;
}
Block::Stream Block::createStream(size_t o... |
<commit_before>#include "expr-to-xml.hh"
#include "xml-writer.hh"
#include "nixexpr-ast.hh"
#include "aterm.hh"
#include "util.hh"
namespace nix {
static XMLAttrs singletonAttrs(const string & name, const string & value)
{
XMLAttrs attrs;
attrs[name] = value;
return attrs;
}
static void printTermA... |
<commit_before>/*
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <vector>
#include <memory>
#include <string>
#include "util/sstream.h"
#include "library/scoped_ext.h"
namespace lean {
typedef std... |
<commit_before>#include "robocup-py.hpp"
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
#include <string>
#include <sstream>
#include <iostream>
using namespace boost::python;
#include <Geometry2d/Point.hpp>
#include <Geometry2d/Rect.hpp>
#include <Geometry2d/CompositeShape.hpp>
#include <Robot.hpp>... |
<commit_before>//
// Copyright 2011-2015 Jeff Bush
//
// 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 © 2001-2022, Hove and/or its affiliates. All rights reserved.
This file is part of Navitia,
the software to build cool stuff with public transport.
Hope you'll enjoy and contribute to this project,
powered by Hove (www.hove.com).
Help us simplify mobility and open public transport:... |
<commit_before>#include <fstream>
#include "data/EventsHeader.h"
#include "data/Event.h"
#include "exception/Base.h"
namespace blitzortung {
namespace data {
const char* EventsHeader::ID = "BOSF";
const gr::date EventsHeader::STARTOFEPOCH = gr::date(1970, 1, 1);
bool file_exists(std::string filename)... |
<commit_before>/**********************************************************************
* $Id$
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2009 Sandro Santilli <[email protected]>
* Copyright (C) 2001-2002 Vivid Solutions Inc.
* Copyright (C) 2005 Refractions Researc... |
<commit_before>//===- Disassembler.cpp - Disassembler for hex strings --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/* nuklear - v1.09 - public domain */
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include <math.h>
#include <limits.h>
#include <time.h>
#include "no_rt_util.h"
#include <GL/glew.h>
#include "glfw3.h"
#define... |
<commit_before>#include <vector>
#include "../lib/hayai/hayai.hpp"
#include "../lib/hayai/hayai_posix_main.cpp"
#include "../src/vector.hpp"
using namespace lsh;
std::vector<bool> c(128);
BENCHMARK(vector, vector, 10000, 1000) {
lsh::vector v(c);
}
<commit_msg>Add all vector benchmarks<commit_after>#include <vecto... |
<commit_before>#include <iostream>
#include <gtest/gtest.h>
#include <QtCore>
#include <QApplication>
#include <QtQuick>
#include "../src/cplugin.h"
#include "../src/cordova_config.hpp"
TEST(CordovaInternal, format_double_int_int) {
auto t = std::make_tuple(1.1, 2, 3);
auto doc = QJsonDocument().fromJson(QStr... |
<commit_before>#include "MeshSprLoader.h"
#include "MeshSymLoader.h"
#include "FilepathHelper.h"
#include "SymbolPool.h"
#include "MeshIO.h"
#include <sprite2/Mesh.h>
#include <sprite2/MeshSprite.h>
#include <sprite2/MeshSymbol.h>
#include <sprite2/MeshTriangle.h>
#include <simp/NodeMeshSpr.h>
#include <simp/from_int.... |
<commit_before>#include <iostream>
#ifndef ELEMENTS_HYDROGEN_TO_OXYGEN_H
#define ELEMENTS_TO_HYDROHEN_TO_OXYGEN_H
/**denotes elements hrgrogen to argon starting with hydrogen=1
/*takes enum and string file to do if and else work about number of bonds*/
enum elements_hydrogen_to_argon t //element assignments std... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief application simple user and session management feature
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2004-2012 triagens GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "Lice... |
<commit_before>//===-- AlphaAsmPrinter.cpp - Alpha LLVM assembly writer ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>//===-- LoopUnroll.cpp - Loop unroller pass -------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<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>//===- ValueMapper.cpp - Interface shared by lib/Transforms/Utils ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "menu/option_mugen_menu.h"
#include "util/bitmap.h"
#include "util/font.h"
#include "menu/menu.h"
#include "util/token.h"
#include "return_exception.h"
#include "util/token_exception.h"
#include "util/funcs.h"
#include "globals.h"
#include "mugen/mugen_menu.h"
#include "mugen/mugen_exception.h"... |
<commit_before>#if defined(LINUX)
#include "user/util.h"
#include <fcntl.h>
#include <unistd.h>
#include <assert.h>
#define O_CREATE O_CREAT
#define xfork() fork()
#define xexit() exit(EXIT_SUCCESS)
typedef uint64_t u64;
#else
#include "types.h"
#include "user.h"
#include "fcntl.h"
#include "amd64.h"
#define xfork() fo... |
<commit_before>#include "json.h"
#include <boost/io/ios_state.hpp>
#include <boost/type_traits.hpp>
#include <cstdio>
namespace mfast {
namespace json {
namespace encode_detail {
struct quoted_string {
quoted_string(const char* str)
: str_(str)
{
}
const char* st... |
<commit_before>/**
* @file consensushash.cpp
*
* This file contains the function to generate consensus hashes.
*/
#include "omnicore/consensushash.h"
#include "omnicore/dex.h"
#include "omnicore/mdex.h"
#include "omnicore/log.h"
#include "omnicore/omnicore.h"
#include "omnicore/sp.h"
#include <stdint.h>
#include ... |
<commit_before>// Copyright (c) 2012, 2013 Pierre MOULON.
// 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/.
#ifndef OPENMVG_IMAGE_IMAGE_IMAGE_IO_HPP
#define OPENMVG_I... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 *
* (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS *
* ... |
<commit_before>#include "FltFile.h"
#include "Registry.h"
#include "Record.h"
#include "RecordVisitor.h"
#include "ExternalRecord.h"
#include "flt2osg.h" // ConvertFromFLT
#include "Input.h"
#include <osg/Node>
#include <osg/NodeVisitor>
#include <osg/Notify>
#include <osgDB/FileUtils>
#include <osgDB/Fil... |
<commit_before>/*
Copyright (C) 2013 Martin Klapetek <[email protected]>
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 opt... |
<commit_before>#include "../include/carta.h"
#include "../include/textura.h"
#include "../include/to_string.h"
#define CARD_WIDTH 125
#define CARD_HEIGHT 164
using namespace std;
Carta::Carta(int num, SDL_Renderer* renderer){
string dir = "../textures/cards/";
int i = (num-1)/13;
this->value = num-13*i;
this->su... |
<commit_before>#include "clustering.hpp"
Clustering::Clustering( std::vector<IndexTransition> const & vIndexTransition, double (*distance_function)(IndexTransitionCluster const &, IndexTransitionCluster const &), double eps, uint minPts):
eps{eps}, minPts{minPts}, nowClusterNumber{0}, distance_function{distance_functi... |
<commit_before>// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
#include <bse/bsemain.hh>
#include <bse/testing.hh>
#include "bse/internal.hh"
using Bse::printerr;
typedef Bse::IntegrityCheck::TestFunc TestFunc;
// == BSE_INTEGRITY_TEST Registry ==
struct TestEntry {
TestFunc test;
cons... |
<commit_before>//MIT License
//
//Copyright(c) 2016 Matthias Moeller
//
//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>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/autotest_private/autotest_private_api.h"
#include "base/strings/string_number_conversions.h"
#... |
<commit_before>#ifndef __WORD_TAG_HPP__
#define __WORD_TAG_HPP__
#include <vector>
#include <map>
#include <set>
#include "link-includes.h"
extern "C" {
#include "count.h"
#include "prune.h"
#include "word-utils.h"
};
#include "variables.hpp"
struct PositionConnector
{
PositionConnector(Exp* e, Connector* c, ch... |
<commit_before>// Copyright(c) Andre Caron, 2009-2010
//
// This document is covered by the Artistic License 2.0 (Open Source Initiative
// approved license). A copy of the license should have been provided alongside
// this software package (see "license.rtf"). If not, the license is available
// online at "http://www... |
<commit_before>#include "ncserver.h"
#include "networkcodingheader.h"
#include "finite_field.h"
#include <exception>
#include <string.h>
ncserver::ncserver(unsigned int client_ip, unsigned short int port, unsigned char max_block_size, unsigned int timeout):\
_CTRL_ADDR(build_addr(IN... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
//
// Permission is hereby granted, free of charge, to any pe... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_setup_runtime_wakeup_... |
<commit_before>#pragma once
#include "detect_type.hpp"
#include "lubee/meta/enable_if.hpp"
#include "lubee/none.hpp"
#include "argholder.hpp"
#include <utility>
#include "none.hpp"
namespace spi {
template <class... Ts>
auto construct(Ts&&... ts) {
return ArgHolder<decltype(ts)...>(std::forward<Ts>(ts)...);
}
te... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
** No Commercial Usage
**
** This file contains pre-release cod... |
<commit_before>/*
* Copyright 2013 Christian Loose <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* (1) Redistributions of source code must retain the above copyright
* notice, this lis... |
<commit_before>#include <functional>
#include "extensions/quic_listeners/quiche/platform/flags_impl.h"
#include "test/test_common/logging.h"
#include "gtest/gtest.h"
#include "quiche/spdy/platform/api/spdy_arraysize.h"
#include "quiche/spdy/platform/api/spdy_bug_tracker.h"
#include "quiche/spdy/platform/api/spdy_con... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>
#include <QStandardPaths>
#include <QtQuick/QQuickView>
#include <QtQuick/QQuickItem>
#include <QDir>
#include <QMenu>
#include <QAction>
#include <QDesktopServices>
#include <QCloseEvent>
#include <QSystemTrayIcon>
#include <QMessageBo... |
<commit_before>// wingtrack.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "FlyCapture2.h"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/video/background_segm.hpp>
#include <opencv2/gpu/gpu.hpp>
using namespace FlyCapture2;
using ... |
<commit_before>/*
This file is part of kdepim.
Copyright (c) 2004 Cornelius Schumacher <[email protected]>
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 Software Foundation; either
ver... |
<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 "base/gfx/rect.h"
#if defined(OS_WIN)
#include <windows.h>
#elif defined(OS_MACOSX)
#include <CoreGraphics/CGGeometry.h>... |
<commit_before>#include <thread>
#include <iostream>
#include "processor.h"
#ifdef WINDOWS
#include <windows.h>
#else
#include <unistd.h>
#endif
const uint MILLIS_IN_MICRO = 1000;
void sleep_for_millis(uint period) {
#ifdef WINDOWS
Sleep(period);
#else
usleep(period * MILLIS_IN_MICRO);
#endif
}
void Proce... |
<commit_before>#include "middling_player.hpp"
#include <ctime>
#include <boost/random/discrete_distribution.hpp>
#include "logger.hpp"
#include "walk_move.hpp"
#include "wall_move.hpp"
#include "exception.hpp"
static boost::log::sources::severity_logger<boost::log::trivial::severity_level> lg;
static int kLookForwa... |
<commit_before>#include<bits/stdc++.h>
#include<random>
#include<chrono>
#define ui unsigned int
using namespace std;
int main()
{
ui n=1000,d=5,m,l,s;
double epsi;
cout<<"Enter the number of Nodes (n) where n > 49 : "<<endl;
cin>>n;
assert(n>49);
cout<<"Enter the degree of ... |
<commit_before>#include "DarcyWater.h"
#include "SteamTables.h"
template<>
Parameters valid_params<DarcyWater>()
{
Parameters params;
params.set<Real>("permeability")=1.0E-12; //intrinsic permeability, "k", in (m^2)
params.set<Real>("porosity")=0.10; //dimensionless but variable
params.set<Real>("rho_w")=1000.... |
<commit_before>#ifndef MEMCACHED_PROTOCOL_HPP_
#define MEMCACHED_PROTOCOL_HPP_
#include <vector>
#include "errors.hpp"
#include <boost/variant.hpp>
#include "btree/backfill.hpp"
#include "btree/parallel_traversal.hpp" // TODO: sigh
#include "buffer_cache/mirrored/config.hpp"
#include "buffer_cache/types.hpp"
#inclu... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, 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 ... |
<commit_before>#pragma once
#include <exception>
#include <regex>
// ----------------------------------------------------------------------
namespace virus_name
{
namespace _internal
{
#pragma GCC diagnostic push
#ifdef __clang__
#pragma GCC diagnostic ignored "-Wglobal-constructors"
#pragma GCC diagnostic i... |
<commit_before>// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2021 Intel Corporation. All Rights Reserved.
#include <easylogging++.h>
#ifdef BUILD_SHARED_LIBS
// With static linkage, ELPP is initialized by librealsense, so doing it here will
// create errors. When we're using the shared .... |
<commit_before>// Copyright (c) 2017 Pierre Fourgeaud
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include <bandit/bandit.h>
#include "core/utils.h"
using namespace bandit;
using namespace snowhouse;
using namespace CodeHero;
go_bandit([]() {
describe("::St... |
<commit_before>//
// ex10_30.cpp
// Exercise 10.30
//
// Created by pezy on 12/13/14.
// Copyright (c) 2014 pezy. All rights reserved.
//
// Use stream iterators, sort, and copy to read a sequence of integers from the
// standard input,
// sort them, and then write them back to the standard output.
#include <io... |
<commit_before>//
// ex10_32.cpp
// Exercise 10.32
//
// Created by pezy on 12/13/14.
// Copyright (c) 2014 pezy. All rights reserved.
//
// Rewrite the bookstore problem from 1.6 (p. 24) using a vector to hold the
// transactions
// and various algorithms to do the processing.
// Use sort with your compareIsbn... |
<commit_before>// Copyright Hugh Perkins 2015 hughperkins at gmail
//
// 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 <iostream>
#include <string>
#inclu... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkAMRBaseReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This so... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file ConsoleAPI.cpp
* @brief Console core API.
*/
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "ConsoleAPI.h"
#include "ConsoleWidget.h"
#include "ShellInputThread.h"
#include "Applica... |
<commit_before>/* ---------------------------------------------------------------------
* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
* with Numenta, Inc., for a separate license for this software code, the
* following terms and conditions app... |
<commit_before>/*-------------------------------------------------------------------------
* drawElements Quality Program EGL Module
* ---------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use t... |
<commit_before>#include "Component.h"
#include "Simulation.h"
#include "MooseApp.h"
unsigned int Component::subdomain_ids = 0;
unsigned int Component::bc_ids = 0;
template<>
InputParameters validParams<Component>()
{
InputParameters params = validParams<R7Object>();
params.addPrivateParam<Simulation *>("_sim");
... |
<commit_before>#include "SolidWall.h"
#include "Simulation.h"
#include "FEProblem.h"
#include "Pipe.h"
#include "Factory.h"
#include "FlowModelSinglePhase.h"
#include "FlowModelTwoPhase.h"
template <>
InputParameters
validParams<SolidWall>()
{
InputParameters params = validParams<FlowBoundary>();
return params;
}
... |
<commit_before>#include "Tilemap.h"
#include "io/FileLoader.h"
#include "graphics/Window.h"
#include "graphics/Drawer.h"
#include "util/Logger.h"
#define DIR "Contents/MainGame/"
//std::string Tilemap::getLocationDir(std::string filename)
//{
// std::string aux;
// int i = filename.find_last_of('/');
// aux.... |
<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>/*
* 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>// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
#include <cassert>
#include <vector>
#include <unordered_map>
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/BasicBlock.h"
#inc... |
<commit_before>/*
IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
consideration of your agreement to the following terms, and your use, installation,
modification or redistribution of this Apple software constitutes acceptance of these
terms. If you do not agree with these... |
<commit_before>/*
Copyright 2011 StormMQ Limited
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 ... |
<commit_before>// Copyright (c) 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/base/connection_type_histograms.h"
#include "base/histogram.h"
namespace net {
// We're using a histogram as a group o... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: MeasureHandler.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2008-01-10 11:40:22 $
*
* The Contents of this file ar... |
<commit_before>#include "OsiCplexSolverInterface.hpp"
#include <CoinMpsIO.hpp>
#include <cplex.h>
//#include <algorithm>
// default constructor
OsiCplexSolverInterface::OsiCplexSolverInterface(): OsiCpxSolverInterface() {
CPXENVptr env = getEnvironmentPtr();
// set parameter number of threads to 1, CPXPARAM_Thread... |
<commit_before>/*-----------------------------------------------------------------------------
This source file is part of Hopsan NG
Copyright (c) 2011
Mikael Axin, Robert Braun, Alessandro Dell'Amico, Björn Eriksson,
Peter Nordin, Karl Pettersson, Petter Krus, Ingo Staack
This file is provided "as is", w... |
<commit_before>/*-------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2018 Advanced Micro Devices, Inc.
* Copyright (c) 2018 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may n... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
The MIT License
Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or
http://flusspferd.org/contributors.txt)
Permission is hereby granted, free of charge, to any person obtaining a copy
of t... |
<commit_before>//------------------------------------------------------------------------------
// FunctionDef.cpp
// Executable function definitions
//
// File is under the MIT license; see LICENSE for details
//------------------------------------------------------------------------------
#include "slang/codegen/Func... |
<commit_before>//
// PROJECT: Aspia
// FILE: console/about_dialog.cc
// LICENSE: GNU General Public License 3
// PROGRAMMERS: Dmitry Chapyshev ([email protected])
//
#include "console/about_dialog.h"
#include <QAbstractButton>
#include <QDesktopServices>
#include "version.h"
namespace a... |
<commit_before>// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
#include "registryhelpers.h"
#include "dxsubfilter_uuids.h"
#include "dxsubfilter.h"
//------------------------------------------------------------------------------
// Global filter information for proper Direc... |
<commit_before>#include "gateway.h"
#include "type.pb.h"
#include <boost/thread/locks.hpp>
#include <ctime>
#include <iostream>
#include <google/protobuf/descriptor.h>
#include "interface.h"
#include <curlpp/Exception.hpp>
#include <log4cplus/logger.h>
Worker::Worker(Pool &){
register_api("/query", boost::bind(&... |
<commit_before>/***************************************************************************//**
* FILE : block_array.hpp
*
* Implements an array container allocated in blocks.
*/
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Publi... |
<commit_before>/*
* Copyright 2015 Aldebaran
*
* 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 ... |
<commit_before>/* Copyright (c) 2018 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>#pragma once
//=====================================================================//
/*! @file
@brief MAX7219 ドライバー
Copyright 2016 Kunihito Hiramatsu
@author 平松邦仁 ([email protected])
*/
//=====================================================================//
#include <cstdint>
#include <... |
<commit_before>#include "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#include "overviewpage.h"
#include <QMessageBox>
#include <QPushButton>
#include <QKeyEvent>
AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
QDialog(parent... |
<commit_before>#include <iostream>
#include <iomanip>
#include <string>
#include <memory>
#include <windows.h>
#include <psapi.h> //GetModuleFileNameEx
#include <TlHelp32.h>
// Setting DLL access controls
#include <AccCtrl.h>
#include <Aclapi.h>
#include <Sddl.h>
// UWP
#include <atlbase.h>
#include <appmodel.h>
#i... |
<commit_before>// Copyright (c) 2016-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/test/rpcnestedtests.h>
#include <interfaces/node.h>
#include <rpc/server.h>
#include <qt/rpccons... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.