text stringlengths 54 60.6k |
|---|
<commit_before>/** \file LocalDataDB.cc
* \brief Implementation of the LocalDataDB class.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2020 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or m... |
<commit_before>/** \brief Utility for updating SQL schemata etc.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2019 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms o... |
<commit_before>/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: Mapping.test.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2007-03-14 08:31:58 $
*
* The Contents of this file are ... |
<commit_before>//===- ARCRegisterInfo.cpp - ARC Register Information -----------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
<commit_before>//===-- SIFoldOperands.cpp - Fold operands --- ----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
/// \file
//===------------------------------... |
<commit_before>#include "shmcache_wrapper.h"
#include "bson_wrapper.h"
// Wrapper Impl
Nan::Persistent<v8::FunctionTemplate> ShmCacheWrapper::constructor_template;
NAN_MODULE_INIT(ShmCacheWrapper::Init) {
v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
tpl->SetClassName(Nan::New("ShmCa... |
<commit_before>//===-- Internalize.cpp - Mark functions internal -------------------------===//
//
// This pass loops over all of the functions in the input module, looking for a
// main function. If a main function is found, all other functions and all
// global variables with initializers are marked as internal.
//
... |
<commit_before>#include "../../include/EnemyTypes/SmallRat.h"
SmallRat::SmallRat() {
name = "Small Rat";
ExperienceAmount = 15;
CoinsDrop = 3 + rand() % 28;
}
EnemyType SmallRat::GetType() {
return etRat;
}
int SmallRat::ReturnDamage() {
return 2 + rand() % 5;
}
int SmallRat::ReturnRiskAttackDamage() {
int se... |
<commit_before>/*************************************************************************
*
* $RCSfile: nativethreadpool.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2003-10-09 10:20:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the followi... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission no... |
<commit_before>/******************************************************************************
* c7a/core/hash_table.hpp
*
* Hash table with support for reduce and partitions.
*
* Part of Project c7a.
*
*
* This file has no license. Only Chuck Norris can compile it.
********************************************... |
<commit_before>/*
Copyright (c) 2006, Arvid Norberg & Daniel Wallin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, th... |
<commit_before>/**********************************************************************************/
/* Pika: Phase field snow micro-structure model */
/* */
/* (C) 2014 Battelle Energy Al... |
<commit_before>/*************************************************************************
*
* $RCSfile: countermain.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: obo $ $Date: 2004-03-17 11:51:35 $
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
*
* C... |
<commit_before>/*
* Copyright 2014 by Philip N. Garner
*
* See the file COPYING for the licence associated with this software.
*
* Author(s):
* Phil Garner, December 2014
*/
/*
* Take care here; there is a boost thing called path. In this sense, there is
* the possibility that one could be confused as the ... |
<commit_before>#include "graphicitemblock.h"
#include <QBrush>
#include <QColor>
#include <QFontMetrics>
#include <QDebug>
bd::GraphicItemBlock::GraphicItemBlock(Block *block, QGraphicsItem *parent) : QGraphicsItem(parent)
{
this->block = block;
this->currentBoundingRect = QRectF();
this->giBlockHead = ... |
<commit_before>//===------- LowerHopToExecutor.cpp - Lower hop_to_executor on actors -----===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>#include "../ClipperUtils.hpp"
#include "../PolylineCollection.hpp"
#include "../Surface.hpp"
#include "FillPlanePath.hpp"
namespace Slic3r {
void FillPlanePath::_fill_surface_single(
const FillParams ¶ms,
unsigned int thickness_layers,
const std::pa... |
<commit_before>#include "RoleBase.h"
#include "Creature.h"
#include "interface.h"
#include "Action.h"
#include "Utils.h"
#include "NavigationFinder.h"
#include "Engine.h"
#include "World.h"
#include "Object.h"
#include "Avatar.h"
CRoleBase::CRoleBase(void)
{
m_pCreature = NULL;
m_pActionComplete = NULL;
m_nOrceDire... |
<commit_before>// -*- C++ -*-
// The MIT License (MIT)
//
// Copyright (c) 2021 Alexander Samoilov
//
// 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 withou... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3
of the License, or (a... |
<commit_before>//===- SubtargetEmitter.cpp - Generate subtarget enumerations -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by James M. Laskey and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===---... |
<commit_before>#include <SDL2/SDL.h>
#include "PageView.h"
// global declaration
#define TRUE 1
#define FALSE 0
int cur_mode;
int running;
static const int screen_w = 1024;
static const int screen_h = 1024;
enum LR_MODES
{
LR_DEFAULT,
LR_LINKS,
LR_URL
};
enum KEYS
{
LR_L,
LR_J,
LR_K,
LR_F,
LR_G,
LR_Q,
... |
<commit_before>/*
Copyright (c) DataStax, 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 law or agreed to... |
<commit_before>#include <pddl/detail/parsing/Predicate.h>
#include <pddl/AST.h>
#include <pddl/Exception.h>
#include <pddl/detail/SignatureMatching.h>
#include <pddl/detail/parsing/Constant.h>
#include <pddl/detail/parsing/Variable.h>
#include <pddl/detail/parsing/VariableDeclaration.h>
namespace pddl
{
namespace det... |
<commit_before>#include "H-qoi.h"
// Here we define the functions to compute the QoI (side_qoi)
// and supply the right hand side for the associated adjoint problem (side_qoi_derivative)
using namespace libMesh;
void CoupledSystemQoI::init_qoi( std::vector<Number>& sys_qoi)
{
//Only 1 qoi to worry about
sys_qo... |
<commit_before>/*
* Copyright (c) 2017, Respective Authors.
*
* The MIT License
*
* 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 ... |
<commit_before>//===========================================================================
//
// File: benchmarkLRSurfaceRefinement.C
// ... |
<commit_before>// Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availa... |
<commit_before>/*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>// This program re-calculates _struct_conn.pdbx_dist_value values
// and prints message if it differs by more than 0.002A from the value in file.
#include <gemmi/util.hpp> // for giends_with
#include <gemmi/gz.hpp> // for MaybeGzipped
#include <gemmi/cif.hpp>
#include <gemmi/numb.hpp> // for as_number... |
<commit_before>/*
This file is part of KMail.
Copyright (c) 2003 Andreas Gungl <a.gungl@gmx.de>
KMail is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
KMail is distributed in t... |
<commit_before>/**
* Copyright (c) 2004 David Faure <faure@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License
*
* This program is distributed in the h... |
<commit_before>/*
knserverinfo.cpp
KNode, the KDE newsreader
Copyright (c) 1999-2001 the KNode authors.
See file AUTHORS for details
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software F... |
<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 "chrome/browser/views/bookmark_bubble_view.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/keyb... |
<commit_before>// -------------------------------------------------------------------
/// \file DstWriter.cxx
/// \brief
///
/// \author <justo.martin-albo@physics.ox.ac.uk>
/// \date Creation: 11 Aug 2016
// -------------------------------------------------------------------
#include "DstWriter.h"
#include <... |
<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/test/logging/win/log_file_printer.h"
#include <windows.h>
#include <objbase.h>
#include <ios>
#include <iomanip>
#in... |
<commit_before>/*
Test program for Core Logger
*/
#include "Core.hh"
#include <string>
using namespace Core;
int testlogstream(logstream & ls)
{
///test logstream default setup
/// date insertion
/// default "" prefix
/// default loglevel
///test logstream date insertion
ls << "test";
... |
<commit_before>#include "PHNTextBox.h"
PHN_TextBox::PHN_TextBox() {
this->length = 0;
this->selStart = 0;
this->selLength = 0;
this->selEnd = 0;
this->invalidateStart = -1;
this->invalidateEnd = -1;
this->cursor_x = -1;
this->cursor_y = -1;
this->scrollOffset = 0;
this->scrollVisible = true;
this... |
<commit_before>/*
* Copyright (c) 2009 Steven Noonan <steven@uplinklabs.net>
* and Miah Clayton <miah@ferrousmoon.com>
* 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>/*
* Blake2b
* (C) 2016 cynecx
* (C) 2017 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/blake2b.h>
#include <botan/exceptn.h>
#include <botan/mem_ops.h>
#include <botan/loadstor.h>
#include <botan/rotate.h>
#include <algorithm>
namespace Botan {
... |
<commit_before>#include "material/velvet.h"
#include "math/math.h"
namespace AT_NAME
{
// NOTE
// Production Friendly Microfacet Sheen BRDF.
// http://www.aconty.com/pdf/s2017_pbs_imageworks_sheen.pdf
AT_DEVICE_MTRL_API real MicrofacetVelvet::pdf(
const aten::MaterialParameter* param,
... |
<commit_before>#include "fetchgit.hh"
#include "primops.hh"
#include "eval-inline.hh"
#include "download.hh"
#include "store-api.hh"
#include "pathlocks.hh"
#include <sys/time.h>
#include <regex>
#include <nlohmann/json.hpp>
using namespace std::string_literals;
namespace nix {
GitInfo exportGit(ref<Store> store,... |
<commit_before>#include <vector>
#include <map>
#include "HalfEdgeMesh2D.h"
#include "Vertex.h"
#include "Edge.h"
#include "Face.h"
#include <fstream>
#include <string>
using namespace cop4530;
using namespace mwm;
//std specialization
namespace std
{
template <>
class hash < Vertex* >
{
public:
size_t operator... |
<commit_before>// Copyright (c) 2019 The Dash Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <llmq/quorums_chainlocks.h>
#include <llmq/quorums_utils.h>
#include <chain.h>
#include <masternode/mast... |
<commit_before>#include "readLoad.h"
#include "ErrorWarning.h"
int readLoad(istream& readInStream, Parameters* P, uint iMate, uint& Lread, uint& LreadOriginal, char* readName, char* Seq, char* SeqNum, char* Qual, char* QualNum, uint &clip3pNtotal, uint &clip5pNtotal, uint &clip3pAdapterN, uint &iReadAll, uint &readFil... |
<commit_before><commit_msg>341 - Non-Stop Travel<commit_after><|endoftext|> |
<commit_before>/*************************************************************************/
/* audio_stream_ogg_vorbis.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>#include "weapon_cooldown.h"
#include "../SCBW/scbwdata.h"
#include "../SCBW/enumerations.h"
namespace hooks {
/// Calculates the unit's weapon cooldown, factoring in upgrades and status effects.
///
/// @return The modified cooldown value.
u32 getModifiedWeaponCooldownHook(const CUnit* unit,... |
<commit_before>/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* HDF5ReaderP.cpp
*
* Created on: March 20, 2017
* Author: Junmin
*/
#include "HDF5ReaderP.h"
#include "HDF5ReaderP.tcc"
#include "adios2/ADIOSMPI.h"
#include "adios2... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: OOXMLStreamImpl.cxx,v $
* $Revis... |
<commit_before>// Read a file and parse each line according to the format file.
// Output integer matrices with lookup maps in either ascii text
// or matlab binary form.
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "utils.h"
#include "gzstream.h"
#define BUFSIZE 1048576
class stri... |
<commit_before><commit_msg>coverity#1130166 Unchecked return value<commit_after><|endoftext|> |
<commit_before>#ifndef ARM_SERVICE_cpp
#define ARM_SERVICE_cpp
#include <Arm_service.h>
#include <AutoPilot.h>
extern uint8_t bit_autopilot_flags;
//***************************************************
// This latch is what is called in the microcontroller's
// main loop. Put any required processing here
//************... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkTkAppInit.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Cop... |
<commit_before>#ifndef SRC_NODES_BASE_NODE_HPP_
#define SRC_NODES_BASE_NODE_HPP_
#include <flexcore/extended/graph/graph.hpp>
#include <flexcore/scheduler/parallelregion.hpp>
#include <adobe/forest.hpp>
#include <cassert>
#include <string>
#include <memory>
#include <flexcore/ports.hpp>
namespace fc
{
/**
* \bri... |
<commit_before><commit_msg>add more info to trace log<commit_after><|endoftext|> |
<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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLTextListItemContext.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-09 15:23:08 $
*
* The Contents of this ... |
<commit_before>/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>/*************************************************************************
*
* $RCSfile: Edit.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2004-04-02 10:51:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
... |
<commit_before>/* This file is part of Mapnik (c++ mapping toolkit)
* Copyright (C) 2006 Artem Pavlenko
*
* Mapnik is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or an... |
<commit_before><commit_msg>[SofaKernel] ObjectFactory: the last added component will overload previously defined components in the factory. A component can then be redefined in a plugin.<commit_after><|endoftext|> |
<commit_before>/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
*/
#ifndef BINARYXMLSTRUCTUREDECODER_HPP
#define BINARYXMLSTRUCTUREDECODER_HPP
#include <stdexcept>
#include "../c/encoding/BinaryXMLStructureDecoder.h"
namespace ndn {
/**
* A BinaryXMLStructureDecoder wra... |
<commit_before>/*
WPN-XM Server Control Panel
WPN-XM SCP is a tool to manage Nginx, PHP and MariaDb daemons under windows.
It's a fork of Easy WEMP originally written by Yann Le Moigne and (c) 2010.
WPN-XM SCP is written by Jens-Andre Koch and (c) 2011 - onwards.
This file is part of WPN-XM... |
<commit_before>/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
/**
* Copyright (C) 2013 Regents of the University of California.
* @author: Yingdi Yu <yingdi@cs.ucla.edu>
* @author: Jeff Thompson <jefft0@remap.ucla.edu>
* See COPYING for copyright and distribution information.
*/
#if 1 // TODO: R... |
<commit_before>/*
* Copyright (C) 2008-2010 See the AUTHORS file for details.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#include "User.h"
#include "znc.h"
class CFO... |
<commit_before>/*
* BayesianClassifier.cpp
*
* Created on: Mar 20, 2009
* Author: Simon Lavigne-Giroux
*/
#include "BayesianClassifier.h"
#include <fstream>
#define WRITE_PROGRESS 1
#if WRITE_PROGRESS
#include <iostream>
#endif
// The threshold to get to select whether an output is valid
#define outp... |
<commit_before>//===--- ASTConsumers.cpp - ASTConsumer implementations -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Chris Lattner and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before>// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// STL
#include <fstream>
#include <string>
#include <vector>
#include <exception>
// StdAir
#include <stdair/STDAIR_Types.hpp>
#include <s... |
<commit_before><commit_msg>WaE: -Werror=missing-field-initializers<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
<commit_before>#include "kkrworkboard.h"
#include <QPainter>
// dimensions
static const int MARGIN = 10;
static const int FRAME_THICK = 5;
static const int BORDER_THICK = 1;
static const int CELL_WIDTH = 36;
static const int CLUE_WIDTH = CELL_WIDTH/2 - 4;
// font face
static const char FONT_ANS[] = "consolas";
static... |
<commit_before>#pragma once
#include "CompMaterial.h"
#include "Color.h"
#include "GAmeObject.h"
#include "parson.h"
#include "Application.h"
#include "ModuleFS.h"
#include "ImportMaterial.h"
#include "ResourceMaterial.h"
#include "Scene.h"
CompMaterial::CompMaterial(Comp_Type t, GameObject* parent): Component(t, pare... |
<commit_before>/* Copyright (c) 2019-2021, Arm Limited and Contributors
*
* SPDX-License-Identifier: Apache-2.0
*
* 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... |
<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 (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 "base/command_line.h"
#include "base/utf_string_conversions.h"
#include "content/browser/web_contents/web_contents_impl.h"
#in... |
<commit_before>/*
* Copyright 2011, 2012 Esrille Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
<commit_before>// Copyright (c) 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 "content/test/accessibility_test_utils_win.h"
#include <oleacc.h>
#include <map>
#include <string>
#include "base/memory/si... |
<commit_before>/*
* Licensed under the MIT License (MIT)
*
* Copyright (c) 2013 AudioScience Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including witho... |
<commit_before>/* Begin CVS Header
$Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/elementaryFluxModes/CEFMAlgorithm.cpp,v $
$Revision: 1.10 $
$Name: $
$Author: shoops $
$Date: 2003/10/16 16:23:13 $
End CVS Header */
/**
* CEFMAlgorithm class.
* Used to calculate elementary flux modes... |
<commit_before>// Copyright (C) 2016 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University
// of Manchester.
// All rights reserved.
#include <copasi/optimization/COptPopulationMethod.h>
#include <copasi/randomGenerator/CRandom.h>
#include <copasi/utilities/C... |
<commit_before>// Scintilla source code edit control
/** @file LexScriptol.cxx
** Lexer for Scriptol.
**/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <assert.h>
#include <ctype.h>
#include "ILexer.h"
#include "Scintilla.h"
#include "SciLexer.h"
#include "WordList.h"
#inc... |
<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 "views/controls/tabbed_pane/tabbed_pane.h"
#include "base/logging.h"
#include "views/controls/tabbed_pane/native_tabbed_... |
<commit_before>// Copyright 2012-2013 Samplecount S.L.
//
// 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>#include <cstdlib>
#include <iostream>
using namespace std;
int c(int a, int b) {
if(a >= 0) {
return a * b;
} else if(b <= 0) {
return b * b;
} else if(a >= 0 && b <= 0) {
return a * a * a;
} else {
return 0;
}
}
int main() {
int a, b;
whi... |
<commit_before>// Copyright (C) 2015, Baidu Inc.
// Author: Sun Junyi (sunjunyi01@baidu.com)
#include "partitioner.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <iostream>
#include <string>
int main(int argc, char* argv[]) {
if (argc < 2) {
fprintf(stderr, "partitioner... |
<commit_before>#include "Statistics.hpp"
auto to_json(nlohmann::json& json, const GameStatistics& stats) -> void {
for (hlt::PlayerId player_id = 0;
player_id < stats.player_statistics.size(); player_id++) {
auto& player_stats = stats.player_statistics[player_id];
json[std::to_string(stati... |
<commit_before>#include "UnrealCVPrivate.h"
#include "ViewMode.h"
#include "BufferVisualizationData.h"
/**
FViewMode is a helper class to tweak render options. Important options are
Tonemapper
EyeAdaptation
TemporalAA
MotionBlur
Lighting
Bloom
ColorGrading
GammaCorrection
DepthOfField
LensFlare
Vignette
*/
... |
<commit_before>//===--- CFGPrinter.cpp - Pretty-printing of CFGs ----------------*- C++ -*-==//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>#include <sstream>
#include "Tools/Exception/exception.hpp"
#include "Module/Encoder/NO/Encoder_NO.hpp"
#include "Module/Decoder/NO/Decoder_NO.hpp"
#include "Codec_uncoded.hpp"
using namespace aff3ct::module;
using namespace aff3ct::tools;
template <typename B, typename Q>
Codec_uncoded<B,Q>
::Codec... |
<commit_before>#include "Iop_FileIoHandler2300.h"
#include "Iop_Ioman.h"
#include "../Log.h"
#define LOG_NAME ("iop_fileio")
using namespace Iop;
CFileIoHandler2300::CFileIoHandler2300(CIoman* ioman, CSifMan& sifMan)
: CHandler(ioman)
, m_sifMan(sifMan)
{
memset(m_resultPtr, 0, sizeof(m_resultPtr));
}
void CFileIo... |
<commit_before>// This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#include <Rosetta/Actions/PlayCard.hpp>
#includ... |
<commit_before>#include "core/tracery.h"
#include "core/random.h"
#include "catch.hpp"
namespace tr = euphoria::core::tracery;
TEST_CASE("tracery-all", "[tracery]")
{
const std::string test_file = "test-file";
auto random = euphoria::core::random{0};
tr::grammar g;
g.register_english();
SECTION... |
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* https://lxqt.org
*
* Copyright: 2011 Razor team
* Authors:
* Alexander Sokoloff <sokoloff.a@gmail.com>
*
* This program or library is free software; you can redistribute it
* and/or modify it u... |
<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 "content/shell/common/webkit_test_helpers.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/path_s... |
<commit_before>/******************************************************************************\
* ___ __ *
* /\_ \ __/\ \ *
* \//\ \ /\_\ \ \____ ___ _____ _____ __ ... |
<commit_before>#include <core/executionmanager.h>
#include <core/datamanager.h>
#include <core/module.h>
#include <core/loader.h>
#include <queue>
#include <iostream>
#include <core/datamanager.h>
#include <stdio.h>
#include <memory>
namespace lms{
ExecutionManager::ExecutionManager(logging::Logger &rootLogger)
:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.