text stringlengths 54 60.6k |
|---|
<commit_before>/******************************************************************************
nomlib - C++11 cross-platform game engine
Copyright (c) 2013, Jeffrey Carpenter <jeffrey.carp@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted... |
<commit_before>// Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2012 Litecoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// Name of client reported in the ... |
<commit_before>// Copyright (c) 2012 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 <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
//... |
<commit_before>/*
* Copyright 2019-2020 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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/... |
<commit_before>#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
template <
typename fn_output,
typename char_type = char,
char_type opening = '(',
char_type closing = ')'
>
class generate_balanced_parenthesis {
fn_output out;
string buffer;
size_t pairs;
void g... |
<commit_before>// Copyright (c) 2021 The Orbit 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 "OrbitUserSpaceInstrumentation.h"
#include <sys/types.h>
#include <cstdint>
#include <stack>
#include <variant>
#include "Capt... |
<commit_before>/*************************************************************************
*
* $RCSfile: salinst.cxx,v $
*
* $Revision: 1.28 $
*
* last change: $Author: pluby $ $Date: 2001-02-28 03:15:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: liImageRegistrationConsole.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
S... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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 ... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the... |
<commit_before>
/*==================================================================
Program: Visualization Toolkit
Module: TestHyperTreeGridTernary3DClip.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for detai... |
<commit_before>#include "alias_registry.hh"
#include "command_manager.hh"
#include "containers.hh"
namespace Kakoune
{
void AliasRegistry::add_alias(String alias, String command)
{
kak_assert(not alias.empty());
kak_assert(CommandManager::instance().command_defined(command));
auto it = m_aliases.find(ali... |
<commit_before>// The MIT License(MIT)
//
// Copyright 2017 Huldra
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use,... |
<commit_before>#include "sampling.h"
#include "config.h"
#include <sys_config.h>
#include <arch/MGSystem.h>
#include <algorithm>
#include <map>
#include <vector>
#include <ctime>
#include <fnmatch.h>
#include <unistd.h>
using namespace std;
struct VarInfo
{
void * var;
size_t ... |
<commit_before>#include <vector>
#include <boost/lexical_cast.hpp>
#include <boost/bind.hpp>
#include <boost/thread.hpp>
#include "zqrpc/ZSocket.hpp"
namespace zqrpc {
struct Worker {
typedef std::vector<std::string> FramesT;
zmq::context_t* context_;
Worker(zmq::context_t* context) : context_(context) {}
~Worke... |
<commit_before>//===- LinkerScript.cpp ---------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>// Copyright (c) 2013 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/suspicious_extension_bubble_controller.h"
#include "base/bind.h"
#include "base/lazy_instance.h"
#... |
<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 applic... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2011 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to a... |
<commit_before>#include "convergence.hpp"
#include "dofs.hpp"
#include "fem_solve.hpp"
#include "writer.hpp"
#include <Eigen/Core>
#include <igl/readMESH.h>
#include <igl/readSTL.h>
#include <igl/slice.h>
#include <igl/slice_into.h>
#include <sstream>
typedef Eigen::VectorXd Vector;
double f_square(double x, double y... |
<commit_before>#include <fcntl.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/text_format.h>
#include <leveldb/db.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/highgui/highgui_c.h>
#include <o... |
<commit_before>// MenuTheme.cc for FbTk
// Copyright (c) 2002 Henrik Kinnunen (fluxgen at users.sourceforge.net)
//
// 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, in... |
<commit_before>// LatchCube.cpp
#include "LatchCube.h"
wxIMPLEMENT_DYNAMIC_CLASS( LatchCube, Rubiks3x3x3 );
LatchCube::LatchCube( void )
{
}
/*virtual*/ LatchCube::~LatchCube( void )
{
}
/*virtual*/ void LatchCube::Reset( void )
{
Rubiks3x3x3::Reset();
constraintList.clear();
Constraint constraint;
// -X ->... |
<commit_before>//
// Copyright (C) 2013-2018 University of Amsterdam
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any late... |
<commit_before>#ifndef __LUAMANAGER_HPP__
#define __LUAMANAGER_HPP__
#include <string>
#include "server/modules/common/AbstractManager.hpp"
#include "Lua.hpp"
class LuaManager : public zhttpd::mod::StatefullManager<Lua>
{
private:
std::string _name;
public:
LuaManager() :
zhttpd:... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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 ... |
<commit_before>/*
* Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
<commit_before>/*
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.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without ev... |
<commit_before>/*
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.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without ev... |
<commit_before>//******************************************************************
//
// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use th... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/io/p9_io_dmi_read_erepair.H... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.H... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/nest/p9_sbe_hb_structures.H... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_sbe_chiplet_reset.H... |
<commit_before><commit_msg>Made ISO parsing in DateTime more flexible<commit_after><|endoftext|> |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_set_fsi_gp_shadow.C... |
<commit_before><commit_msg>arch-riscv: reduced lr/sc implementation<commit_after><|endoftext|> |
<commit_before>/* Copyright 2017 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>/**
* The goal of these tests is to verify the behavior of all blob commands given
* the current state is verificationCompleted. This state is achieved as a out
* of verificationStarted.
*/
#include "firmware_handler.hpp"
#include "firmware_unittest.hpp"
#include "status.hpp"
#include "util.hpp"
#i... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include <algorith... |
<commit_before>// Copyright (c) 2010-2020, 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>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before><commit_msg>Fixed calculation for getting correct bit for video<commit_after><|endoftext|> |
<commit_before>/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2016 INRIA.
*
* 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 L... |
<commit_before>// Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
#include "viewport.hh"
#include "factory.hh"
namespace Rapicorn {
ViewportImpl::ViewportImpl () :
m_tunable_requisition_counter (0)
{}
ViewportImpl::~ViewportImpl ()
{}
void
ViewportImpl::negotiate_size (const Allocation *carea... |
<commit_before>/*
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#pragma once
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <limits>
#include <uavcan/stdint.hpp>
#include <uavcan/util/compile_time.hpp>
namespace uavcan
{
/**
* This interface is used by o... |
<commit_before>/*************************************************************************/
/* editor_folding.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>#if ! defined (__CINT__) || defined (__MAKECINT__)
#include <TTree.h>
#include <TError.h>
#include <AliLog.h>
#include <AliAnalysisManager.h>
#include <AliAnalysisDataContainer.h>
#include <AliMESbaseTask.h>
#include <AliMEStenderV2.h>
#endif
AliMEStenderV2 *AddMEStenderV2(Bool_t mc, Int_t configuration... |
<commit_before>
#include "MaxSatInstance.hh"
bool MaxSatInstance::isTautologicalClause( int lits[ MAX_NUM_LITERALS ], int& numLits, const int clauseNum ) {
// sort the clause and remove redundant literals
//!! For large clauses better use sort()
int temp, tempLit;
for (int i=0; i<numLits-1; tempLit = lits[i++]... |
<commit_before>/*
* Originally written by Xinef - Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
*/
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "vault_of_archavon.h"
#include "Spell... |
<commit_before>#include <iostream>
#include <cstdlib>
#include <ctime>
#include <cstring>
const std::string number_lookup[] = { "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K" };
const std::string suit_lookup[] = {"D", "C", "H", "S"};
int player_cash = 100;
class Card {
public:
int number;
in... |
<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/. */
/*
*Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
*contact: immarespond at gmai... |
<commit_before>#include "ConsoleReporter.h"
#include <chrono>
#include <cstdio>
#include <iostream>
#include <memory>
#include <mutex>
#include <unordered_map>
#if defined (_WIN32)
#include <Windows.h>
#undef ReportEvent
namespace
{
class ResetConsoleColors
{
public:
ResetConsoleC... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include "mmult.h"
void matrix_multiply_ref(out_T offsets[CLASSES], w_T weights[CLASSES][FEAT], in_T in[BATCH][FEAT], out_T out[BATCH][CLASSES])
{
// matrix multiplication of a A*B matrix
for (int i = 0; i < BATCH; ++i) {
for (in... |
<commit_before>/*
* SegmentTracker.cpp
*****************************************************************************
* Copyright (C) 2014 - VideoLAN and VLC authors
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
... |
<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>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, Youssef Kashef
// Copyright (c) 2015, ELM Library Project
// 3-clause BSD License
//
//M*/
#include "elm/encoding/populationcode_derivs/mutex_populationcode.h"
#include "elm/core/sampler.... |
<commit_before>/**********************************************************************
* $Id$
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesse... |
<commit_before>// -------------------------------------------------------------------------
// @FileName NFIClusterClientModule.hpp
// @Author LvSheng.Huang
// @Date 2015-01-4
// @Module NFIClusterClientModule
//
// ------------------------------------... |
<commit_before>/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>#include "HaxeRuntime.h"
#include <CoreUObject.h>
#include <unordered_map>
#include "ClassMap.h"
struct WrapperCacheEntry {
int32 typeID;
void* wrapper;
};
static std::unordered_map<UClass *,HaxeWrap>& getClassMap() {
// lazy instantiation
static std::unordered_map<UClass *,HaxeWrap> classMap;
... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief RX24T グループ・割り込みマネージャー
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2016,2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/b... |
<commit_before>#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // to_string(nnn) // substr(m, n) // stoi(nnn)
#include <complex>
#include <tuple> // get<n>(xxx)
#include <queue>
#include <st... |
<commit_before>#ifndef OBJECTS_H
#define OBJECTS_H
/*
Defines an Object::ref type, which is a tagged pointer type.
Usage:
Object::ref x = Object::to_ref(1);//smallint
Object::ref y = Object::to_ref(new(hp) Generic()); //object
if(is_a<int>(x)) {
std::cout << "x = " << as_a<int>(x) << std::endl;
}
if(is_a<Generi... |
<commit_before>#ifndef OBJECTS_H
#define OBJECTS_H
/*
Defines an Object::ref type, which is a tagged pointer type.
Usage:
Object::ref x = Object::to_ref(1);//smallint
Object::ref y = Object::to_ref(new(hp) Generic()); //object
if(is_a<int>(x)) {
std::cout << "x = " << as_a<int>(x) << std::endl;
}
if(is_a<Generi... |
<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 "jingle/notifier/listener/push_notifications_thread.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "bas... |
<commit_before>#include "stdafx.h"
#include "spline.h"
#include "asdf_multiplat/data/gl_vertex_spec.h"
namespace asdf {
using namespace vertex_attrib;
namespace hexmap {
namespace data
{
/* --Save Format--
write the number of nodes (64-bit unsigned integer)
write the nodes
write t... |
<commit_before>/*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#ifndef SAPI_HAL_HPP_
#define SAPI_HAL_HPP_
/*! \brief Hardware Abstraction Layer
* \details The hal namespace includes classes for accessing
* mcu peripheral hardware and other devices.
*
* All obj... |
<commit_before>#pragma once
#include<iostream>
void dummy()
{
std::cout << "HI" << std::endl;
}
<commit_msg>Task 1.7 tested if opencv libs added<commit_after>#pragma once
#include<iostream>
#include <opencv2/opencv.hpp>
void dummy()
{
std::cout << "HI" << std::endl;
}
<|endoftext|> |
<commit_before>#include <fstream>
#include <cryptopp/dh.h>
#include <cryptopp/dsa.h>
#include "CryptoConst.h"
#include "RouterContext.h"
#include "Timestamp.h"
#include "util.h"
#include "version.h"
namespace i2p
{
RouterContext context;
RouterContext::RouterContext ():
m_LastUpdateTime (0)
{
if (!Load ())
... |
<commit_before>#include "stdafx.h"
#include "FTSPI.h"
CFTSPI::CFTSPI() : bValid(FALSE)
{
bValid = Init();
}
CFTSPI::~CFTSPI()
{
for (int i = 0; i < SPIChannel.size(); i++) {
FT_STATUS status = FT_Close(SPIChannel[i].ftHandle);
}
}
BOOL CFTSPI::Init()
{
FT_STATUS status = FT_OK;
DWORD numDevices = 0;
status ... |
<commit_before>// FONcTransmitter.cc
// This file is part of BES Netcdf File Out Module
// Copyright (c) 2004,2005 University Corporation for Atmospheric Research
// Author: Patrick West <pwest@ucar.edu> and Jose Garcia <jgarcia@ucar.edu>
//
// This library is free software; you can redistribute it and/or
// modify i... |
<commit_before>// serial.cxx -- Unix serial I/O support
//
// Written by Curtis Olson, started November 1998.
//
// Copyright (C) 1998 Curtis L. Olson - curt@flightgear.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... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>////////////////////////////////////////////////////////////
//
// DAGON - An Adventure Game Engine
// Copyright (c) 2011-2013 Senscape s.r.l.
// All rights reserved.
//
// 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 ... |
<commit_before>#ifndef CONSTANTS_HPP
#define CONSTANTS_HPP
#include "./Logger.hpp"
static Logger logger(static_cast<std::string>("./logs.log"));
#endif
<commit_msg>Removed Constants.hpp from project.<commit_after><|endoftext|> |
<commit_before>#pragma once
#include "ShaderResourceBuffer.h"
#include "VectorIndexer.hpp"
#include <memory>
#include "DirectX.h"
#include <assert.h>
namespace Rendering
{
namespace Buffer
{
template<typename T>
class GPUUploadBuffer
{
public:
GPUUploadBuffer() = default;
void Initialize(Device::Dire... |
<commit_before>// Copyright 2016 Vladimir Alyamkin. All Rights Reserved.
#include "CrashlyticsKit.h"
#include "CrashlyticsKitCommon.h"
#include "CrashlyticsKitProxy.h"
#include "CrashlyticsKitSettings.h"
#if PLATFORM_IOS
#include "CrashlyticsKit_iOS.h"
#elif PLATFORM_ANDROID
#include "CrashlyticsKit_Android.h"
#endif... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved
*/
// TEST Foundation::Execution::ThreadSafetyBuiltinObject
#include "Stroika/Foundation/StroikaPreComp.h"
#include <mutex>
#include "Stroika/Foundation/Characters/String.h"
#include "Stroika/Foundation/Containe... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2022. All rights reserved
*/
// TEST Foundation::DataExchange::Other
#include "Stroika/Foundation/StroikaPreComp.h"
#include "Stroika/Foundation/DataExchange/Atom.h"
#include "Stroika/Foundation/DataExchange/InternetMediaType.h"
#include "Stroika/Fou... |
<commit_before>///////////////////////////////////////////////////////////////////////////
//
// NAME
// WarpSpherical.h -- warp a flat (perspective) image into spherical
// coordinates and/or undo radial lens distortion
//
// SEE ALSO
// WarpSpherical.h longer description
//
// R. Szeliski and H.-Y. Shum.
//... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <hspp/Cards/Cards.h>
#include <better-enums/e... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkExtractCells.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>#ifndef CELL_AUTOMATA_ISING_SYSTEM
#define CELL_AUTOMATA_ISING_SYSTEM
#include "../utilpack/array_matrix.hpp"
#include "spin.hpp"
template<typename spin_T, std::size_t row_Num, std::size_t column_Num, typename simulator_T>
class Ising_system
{
using random_engine_type = simulator_T::random_engine_t... |
<commit_before>/*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
<commit_before>/* Copyright 2017 Kristofer Björnson
*
* 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 applicabl... |
<commit_before>// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
#define Paint_Menu_dial... |
<commit_before>#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
//#include "hip_estimator.h"
#include "nthash.hpp"
using namespace std;
namespace opt {
unsigned threads=1;
unsigned kmerLen=64;
const unsigned nhash=4;
}
void ... |
<commit_before>#ifndef ALGORITHM_HPP
# define ALGORUTHM_HPP
# pragma once
#include <cstddef>
#include <type_traits>
#include <utility>
#include "meta.hpp"
namespace generic
{
// min, max
template <typename T>
inline constexpr T max(T const a, T const b) noexcept
{
return a > b ? a : b;
}
template <typename T, ... |
<commit_before>#include "alignment.hpp"
#include "stream.hpp"
namespace vg {
int hts_for_each(string& filename, function<void(Alignment&)> lambda) {
samFile *in = hts_open(filename.c_str(), "r");
if (in == NULL) return 0;
bam_hdr_t *hdr = sam_hdr_read(in);
map<string, string> rg_sample;
parse_rg_... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFPluginLoader.cpp
// @Author : LvSheng.Huang
// @Date :
// @Module : NFPluginLoader
//
// -------------------------------------------------------... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFPluginLoader.cpp
// @Author : LvSheng.Huang
// @Date :
// @Module : NFPluginLoader
//
// -------------------------------------------------------... |
<commit_before>#include <profile>
#include <hw/pit.hpp>
#include <kernel/elf.hpp>
#include <kernel/irq_manager.hpp>
#include <deque>
#include <unordered_map>
#include <cassert>
#include <algorithm>
#define BUFFER_COUNT 6000
template <typename T, int N>
struct fixedvector {
void add(const T& e) noexcept {
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: combtransition.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-07 20:50:51 $
*
* The Contents of this file are... |
<commit_before>// $Id$
//
// Task to filter Esd tracks and propagate to Emcal surface.
//
// Author: C.Loizides
#include <TClonesArray.h>
#include <TGeoGlobalMagField.h>
#include <AliAnalysisManager.h>
#include <AliESDEvent.h>
#include <AliESDtrackCuts.h>
#include <AliMagF.h>
#include <AliTrackerBase.h>
#include <AliE... |
<commit_before>#include "Headache.h"
#include "../GameManager.h"
#include "../sound/SoundManager.h"
namespace Symp {
void Headache::execute(){
if(time(NULL) - m_uiLastExecution >= m_uiTimeToTriggerRandomHeadache && !isActivated()) {
// With these values, the the rotation occures 10 times in 2 minutes
float rand... |
<commit_before>#include <FAST/Data/Tensor.hpp>
#include <FAST/Data/Image.hpp>
#include "TensorToImage.hpp"
namespace fast {
TensorToImage::TensorToImage(std::vector<int> channels) {
createInputPort<Tensor>(0);
createOutputPort<Image>(0);
m_channels = channels;
createIntegerAttribute("channels", "Chan... |
<commit_before>#include <gloperate/pipelines/AbstractPipeline.h>
#include <cassert>
#include <string>
#include <gloperate/util/collection.hpp>
#include <algorithm>
#include <map>
#include <iostream>
#include <gloperate/pipelines/AbstractStage.h>
#include <gloperate/pipelines/AbstractInputSlot.h>
#include <gloperate... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.