text stringlengths 54 60.6k |
|---|
<commit_before><commit_msg>#68 tested on LE BE bytes order<commit_after><|endoftext|> |
<commit_before>#ifndef ITER_ZIP_LONGEST_HPP_
#define ITER_ZIP_LONGEST_HPP_
#include "iterbase.hpp"
#include <boost/optional.hpp>
#include <iterator>
#include <tuple>
#include <utility>
namespace iter {
template <typename Container>
using OptIterDeref = boost::optional<iterator_deref<Container>>;
template <ty... |
<commit_before>#pragma once
#include "string_util.hpp"
#include "stream_exception.hpp"
namespace kumori
{
class chunked_encoder
{
public:
typedef char char_type;
struct category
: boost::iostreams::output_filter_tag
, boost::iostreams::closable_tag
, boost::iostreams::multichar_tag
{
};
templ... |
<commit_before>#ifndef COFFEE_MILL_COMMON_TRAJECTORY_HPP
#define COFFEE_MILL_COMMON_TRAJECTORY_HPP
#include <mill/common/Snapshot.hpp>
namespace mill
{
class Trajectory
{
public:
using real_type = double;
using vector_type = Vector<real_type, 3>;
using attribute_type = Attribute;
using attri... |
<commit_before>#pragma once
#include "dedisp.h"
#include <cstdlib>
#include <vector>
#include <string>
#include <sstream>
#include <stdexcept>
#include <data_types/timeseries.hpp>
#include <data_types/filterbank.hpp>
#include <utils/exceptions.hpp>
class Dedisperser {
private:
dedisp_plan plan;
Filterbank& filterb... |
<commit_before>/* $Id$
Author: Constantin Loizides <mailto: loizides@ikf.physik.uni-frankfurt.de
*/
#include <stream.h>
#include <libgen.h>
#include "AliL3RootTypes.h"
#include "AliL3Logger.h"
#include "AliL3MemHandler.h"
#include "AliL3AltroMemHandler.h"
#include "AliL3DigitData.h"
#include "AliL3Transform.h"
/**
Ex... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before><commit_msg>Compiler warning.<commit_after><|endoftext|> |
<commit_before>#ifndef GENERIC_COROUTINE_HPP
# define GENERIC_COROUTINE_HPP
# pragma once
#include <cassert>
#include <csetjmp>
#include <functional>
#include <memory>
#include "savestate.hpp"
namespace generic
{
class coroutine
{
statebuf env_in_;
statebuf env_out_;
::std::function<void()> f_;
bool ru... |
<commit_before>// Copyright (c) 2009-2021 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
// Maintainer: jglaser
/*! \file SnapshotSystemData.cc
\brief Implements SnapshotSystemData related functions
*/
#include "SnapshotSystemDa... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: soundplayer.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: kz $ $Date: 2008-03-07 17:02:53 $
*
* The Contents of this file are m... |
<commit_before>//===-- ValueObjectDynamicValue.cpp ---------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------... |
<commit_before>#pragma once
#include <cstdint>
#include <depthai-shared/common/optional.hpp>
#include <nlohmann/json.hpp>
#include <vector>
#include "DatatypeEnum.hpp"
#include "RawBuffer.hpp"
namespace dai {
/**
* Median filter config for disparity post-processing
*/
enum class MedianFilter : int32_t { MEDIAN_OFF... |
<commit_before>// @(#)root/test:$Name: $:$Id: hworld.cxx,v 1.5 2002/05/14 10:22:37 rdm Exp $
// Author: Fons Rademakers 04/04/97
// This small demo shows the traditional "Hello World". Its main use is
// to show how to use ROOT graphics and how to enter the eventloop to
// be able to interact with the graphics.
#i... |
<commit_before>#include <cassert>
#include <cstdlib>
#include <fstream>
#include <functional>
#include <iostream>
#include <random>
#include <sstream>
#include <vector>
#include "miopen/db_record.hpp"
#include "test.hpp"
namespace miopen {
namespace tests {
struct TestData
{
int x;
int y;
TestData()
... |
<commit_before>/**
* Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin-server.
*
* libbitcoin-server is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License with
* additional permissions to the one publish... |
<commit_before>
#include <PGTA/akPGTAc.h>
#include "akPGTADeviceImpl.h"
#include "akPGTAContextImpl.h"
#include "akPGTATrack.h"
#include <memory>
#include <string.h>
union PGTADeviceUnion
{
HPGTADevice handle;
PGTADeviceImpl* pgtaDevice;
};
union PGTAContextUnion
{
HPGTAContext handle;
PGTAContextImpl... |
<commit_before>/*
* Copyright (c) 2010, Tim Day <timday@timday.com>
* Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com)
*
* 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 ... |
<commit_before>// This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// MGenTest.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "MGenTest.h"
#include "../MGe... |
<commit_before>#ifdef WITH_BASISU
#define BASISU_NO_ITERATOR_DEBUG_LEVEL
#ifdef __clang__
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
#endif
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#pragma GCC diagnostic ignored "-Wunused-value"
#endif
#include "encoder/basisu_comp.h"
stati... |
<commit_before>/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkBlurMask.h"
#include "SkBlurMaskFilter.h"
#include "SkPath.h"
class SimpleRectGM : public skiagm::GM {
public:
SimpleRectGM() {... |
<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>#include "vtkDICOMMetaData.h"
#include <vtkObjectFactory.h>
#include <vtkMatrix4x4.h>
#include <vtkAbstractArray.h>
#include <assert.h>
#include <vector>
#include <utility>
vtkStandardNewMacro(vtkDICOMMetaData);
// The hash table size, must be a power of two
#define METADATA_HASH_SIZE 512
//--------... |
<commit_before>/* Copyright (c) 2017-2022 Hans-Kristian Arntzen
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, c... |
<commit_before>#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <iterator>
#include "doctest/doctest.h"
#include "include/parser.hh"
template<typename T>
int length(T const &x) {
return std::distance(std::begin(x), std::end(x));
}
TEST_CASE("test parser functionality")
{
const char * argv[]... |
<commit_before>#include "stdafx.h"
#include "Startup.h"
#include "MenuCommon/Defines.h"
Startup::Startup()
{
ZeroMemory(&si, sizeof(STARTUPINFO));
si.cb = sizeof(STARTUPINFO);
ZeroMemory(&pi, sizeof(PROCESS_INFORMATION));
}
Startup::~Startup()
{
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
... |
<commit_before>//===--- ExperimentalDependencies.cpp - Generates swiftdeps files ---------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>//===- ConstructionContext.cpp - CFG constructor information --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===-- PrologEpilogInserter.cpp - Insert Prolog/Epilog code in function --===//
//
// 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>//===-- SparcAsmPrinter.cpp - Sparc LLVM assembly writer ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include <iostream>
#include <vector>
#include <stdio.h>
#include "hmat.hpp"
void Laplacian(Eigen::MatrixXd& A, int nx, int ny);
void BuildNaturalToHierarchicalMap
( std::vector<int>& map, int xSize, int ySize, int numLevels );
template<typename T>
std::ostream& operator<<(std::ostream& os, const std... |
<commit_before>#include <iostream>
//~ #include <fstream>
//~ #include <cmath>
//~ #include "TH1.h"
//~ #include "TH2.h"
//~ #include "TH3.h"
//~ #include "TCanvas.h"
//~ #include "TRandom3.h"
//~ #include "TVector2.h"
//~ #include "TVector3.h"
//~ #include "TLorentzVector.h"
#include "Math/Minimizer.h"
#include "Mat... |
<commit_before>#include <geode/python/module.h>
GEODE_PYTHON_MODULE(hollow_wrap) {
// petsc
GEODE_WRAP(petsc_config)
GEODE_WRAP(init)
GEODE_WRAP(mpi)
GEODE_WRAP(vec)
GEODE_WRAP(mat)
GEODE_WRAP(ksp)
GEODE_WRAP(fe)
GEODE_WRAP(dm)
GEODE_WRAP(snes)
GEODE_WRAP(model)
GEODE_WRAP(analytic)
// lapla... |
<commit_before>/// @file
/// @author Boris Mikic
/// @version 3.14
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php
#ifdef _OPENKODE
#include <KD/kd.h>
#include <gtypes... |
<commit_before>/// @file
/// @author Boris Mikic
/// @version 3.1
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php
#ifdef _OPENKODE
#include <KD/kd.h>
#include <gtypes/... |
<commit_before>#include <common.h>
#include "spritesheets/assets.c"
#include "entity.h"
#include "player.h"
#include "world.h"
#include "levels.h"
// The following assumes a 128x128px spritesheet with 16x16px sprites.
#define render_sprite(spritesheet, sprite_index, x, y) ST_RenderSpritePosition((spritesheet), ((sprite... |
<commit_before>#include "MicroBit.h"
MicroBit uBit;
char INTRO[] = "SHOW.IO";
char URL[] = "https://show.io/Fq5sf7O9Y";
// lvl : Pwr@ 1m : Pwr@ 0m : Pwr @ 0m per spec
// 0 : -90 : -49 : 0xcf
// 1 : -78 : -37 : 0xdb
// 2 : -74 : -33 : 0xdf
// 3 : -69 : -28 : 0xe... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before> /*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: accfrmobjmap.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-09 02:49:19 $
*
* The Contents of this file are ... |
<commit_before>/*************************************************************************
*
* $RCSfile: objectformatter.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: kz $ $Date: 2005-01-21 10:32:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<commit_before>/*************************************************************************
*
* $RCSfile: concustomshape.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: pjunck $ $Date: 2004-11-03 09:54:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>/** @file
an example plugin showing off how to use versioning
@section license License
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... |
<commit_before>namespace mant {
namespace bbob {
class SchwefelFunction : public BlackBoxOptimisationBenchmark {
public:
inline explicit SchwefelFunction(
const unsigned int numberOfDimensions) noexcept;
inline std::string toString() const noexcept override;
protected:
... |
<commit_before>#include "stdafx.h"
#include "AltTabber.h"
extern ProgramState_t g_programState;
extern void log(LPTSTR fmt, ...);
extern MonitorGeom_t GetMonitorGeometry();
static inline BOOL IsAltTabWindow(HWND hwnd)
{
if(!IsWindowVisible(hwnd))
return FALSE;
TCHAR str[MAX_PATH + 1];
GetWindowTe... |
<commit_before>// AnalogScanner.cpp - Implementation file for the AnalogScanner
// library for Arduino.
//
// Copyright 2014 Mark Rose, markrose@acm.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 obtain a copy ... |
<commit_before>/*
* Copyright (c) 2014 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>#define ZIP_DISABLE_DEPRECATED
#include "Archive.h"
#include "zip.h"
#include <stdexcept>
#include <string.h> // memcpy
#define m_zip ((zip*)m_handle)
Archive::Archive(string path, bool createNew)
{
if(createNew)
remove(path.c_str());
int error = 0;
m_handle = zip_open(path.c_str(), createNe... |
<commit_before>#include "all.h"
#include <algorithm>
#include <vector>
#include <iostream>
#include <initializer_list>
#include <string>
#include <random>
using namespace rubbish;
struct test{
int data;
test(int n=0):data(n){}
void increment(){data++;}
};
int val(helper::avl_tree_node<int> *p) {return p=... |
<commit_before>#include <iostream>
#include "../inc/Frisk.h"
#include "../inc/ConsoleReporter.h"
int mult(int x, int y) { return x * y; }
DEF_TEST(mult_test)
{
BEGIN_TEST(self);
self.setOption(FRISK_OPTION_CONTINUE, true);
EXPECT_EQUAL(self, mult(0, 0), 0, "0 times anything should be 0");
EXPECT_EQUAL(self,... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: idlccompile.cxx,v $
*
* $Revision: 1.21 $
*
* last change: $Author: vg $ $Date: 2007-09-20 15:01:19 $
*
* The Contents of this file are m... |
<commit_before><commit_msg>Troubleshooting<commit_after><|endoftext|> |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2018-2019 Hugo Beauzée-Luyssen, Videolabs, VideoLAN
*
* Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
*
* T... |
<commit_before>/*
Copyright (c) 2016 Miroslaw Opoka <mirek@opoki.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 limitation the rights to
use, copy, mod... |
<commit_before>/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Module: FGState.cpp
Author: Jon Berndt
Date started: 11/17/98
Called by: FGFDMExec and accessed by all models.
------------- Copyright (C) 1999 Jon S. Berndt (jsb@hal-pc.org) -------------
This progr... |
<commit_before>#pragma once
#include <stdio.h>
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <GL/glew.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#if defined (__linux__) && defined (__INSTALL)
#define PATH std::string("/usr/share/Labirintus/")
#else
#define P... |
<commit_before>// Copyright 2018 Amazon.com, Inc. or its affiliates. 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-... |
<commit_before>#include <string>
#include <fstream>
#include <sstream>
#include <vector>
char russian_letters[6];
size_t russianLetterI(const char letter, const bool is_capital) {
int first_letter_code = static_cast<int>(is_capital ? russian_letters[0] : russian_letters[1]);
if (letter > (is_capital ? russian_letters... |
<commit_before>/*****************************************************************************
* MindTheGap: Integrated detection and assembly of insertion variants
* A tool from the GATB (Genome Assembly Tool Box)
* Copyright (C) 2014 INRIA
* Authors: C.Lemaitre, G.Rizk
*
* This program is free software... |
<commit_before>// This file was automatically generated
/*
Nazara Engine - Graphics module
Copyright (C) 2020 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
... |
<commit_before>#ifndef FIELD_TYPE_INCLUDED
#define FIELD_TYPE_INCLUDED
#include "celltype.hpp"
namespace cells
{
//array class
class field {
public:
field(unsigned char); //constructor, log_dim è il logaritmo in base 2 del lato
//max log_dim = 15
unsigned int lenght; //il num... |
<commit_before>// Copyright 2018 The SwiftShader 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
//
// Un... |
<commit_before>/** Copyright (C) 2016, 2017 European Spallation Source ERIC */
#include <algorithm>
#include <arpa/inet.h>
#include <cassert>
#include <cinttypes>
#include <cstring>
#include <tools/ReaderPcap.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <fmt/format.h>
// GCOVR_EXCL_START
// Protocol ... |
<commit_before>/*
* Copyright 2014-2019, CNRS
* Copyright 2018-2019, INRIA
*/
#ifndef __eigenpy_details_hpp__
#define __eigenpy_details_hpp__
#include "eigenpy/fwd.hpp"
#include <patchlevel.h> // For PY_MAJOR_VERSION
#include <numpy/arrayobject.h>
#include <iostream>
#include "eigenpy/eigenpy.hpp"
#include "eige... |
<commit_before>/*****************************************************************************
(c) 2013 Hobu, Inc. hobu.inc@gmail.com
Author: Andrew Bell andrew.bell.ia at gmail.com
This is free software; you can redistribute and/or modify it under the
terms of the GNU Lesser General Licence as publis... |
<commit_before>#include <cstdint>
#include <Mapper1.h>
uint8_t Mapper1::readPrg(uint16_t addr) {
if (addr > 0x8000) {
int index = decodePrgRomAddress(addr);
return prg[index];
}
else if (addr > 0x6000) {
int index = addr % 0x2000;
return ram[index];
}
else {
return 0;
}
}
void Mapper1::w... |
<commit_before>#pragma once
#include <type_traits>
#include "detail/utils.hpp"
namespace kgr {
struct Single {
Single() = default;
~Single() = default;
Single(const Single&) = delete;
Single& operator=(const Single&) = delete;
Single(Single&&) = default;
Single& operator=(Single&&) = default;
};
template<typ... |
<commit_before>
#include "config.h"
// system
#include <iostream>
// boost
#include <boost/filesystem.hpp>
// dune-common
#include <dune/common/exceptions.hh>
#include <dune/common/mpihelper.hh>
#include <dune/common/timer.hh>
// dune-stuff
#include <dune/stuff/common/parameter/tree.hh>
#include <dune/stuff/common/... |
<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>/*
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>#include "NTClient.h"
using namespace std;
NTClient::NTClient() {
hasError = false;
firstConnect = true;
connected = false;
}
bool NTClient::login(string username, string password) {
uname = username;
pword = password;
bool ret = true;
string data = string("username=");
data += uname;
data += "... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// task - a command line task list manager.
//
// Copyright 2006 - 2010, Paul Beckingham, Federico Hernandez.
// All rights reserved.
//
// This program is free software; you can redistribute it and/or modify it under
// the... |
<commit_before>/********************************************************************************
libvideogfx/graphics/datatypes/primitives.hh
purpose:
Very basic data types.
notes:
to do:
author(s):
- Dirk Farin, dirk.farin@gmx.de
modifications:
17/Nov/1999 - Dirk Farin - first revision
***... |
<commit_before>///
/// @file pmath.hpp
///
/// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef PMATH_HPP
#define PMATH_HPP
#include <stdint.h>
#include <algorithm>
#include <limits>
#inclu... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//======================================... |
<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>#include <iostream>
#include <climits>
#include <cassert>
#include "search.hpp"
#include "movegen.hpp"
#include "move.hpp"
#include "options.hpp"
void alphabeta(Hashtable *tt, Options *options, const Position &pos, bool *stop, int depth, int movetime)
{
assert(tt != NULL);
assert(stop != NULL);... |
<commit_before>// Copyright (c) 2011-2015 Zeex
// 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. Redistributions of source code must retain the above copyright notice,
// this list o... |
<commit_before>///
/// @file PhiTiny.cpp
/// @brief phi_tiny(x, a) calculates the partial sieve function in
/// constant time (using lookup tables) for small values of
/// a <= 6 using the formula below:
///
/// phi(x, a) = (x / pp) * φ(pp) + phi(x % pp, a)
/// with pp = 2 * 3 * ... * prime... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>#ifndef QTAEL_HPP
#define QTAEL_HPP
#include <functional>
#include <memory>
#include <tuple>
#include <utility>
#include <QtCore/QObject>
#include <QtCore/QVariantList>
#ifdef QTAEL_LIBRARY
#define QTAEL_DLL Q_DECL_EXPORT
#else
#define QTAEL_DLL Q_DECL_IMPORT
#endif
namespace qtael {
class Await;
... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>template <typename T>
class stack
{
public:
stack() : array_(nullptr), array_size_(0), count_(0) {} /*noexcept*/
stack(const stack & _stack); /*noexcept*/
stack& operator=(const stack & _stack); /*basic*/
size_t count() const; /*noexcept*/
void push(T const &); /*strong*/
void pop(); /*noexcept*/
... |
<commit_before>/*
* Copyright (c) 2012 - 2016 Kulykov Oleh <info@resident.name>
*
* 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 limitatio... |
<commit_before>#include <iostream>
#include <algorithm>
#include <new>
#include <thread>
#include <mutex>
#include <memory>
template <typename T>
class stack
{
public:
stack() noexcept;
~stack() noexcept;
stack(stack<T> const&)/*strong*/;
stack& operator=(stack<T> const&)/*strong*/;
size_t count()const noexcept;
... |
<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>/**********************************************************************/
/* Sopyright 2014 RSF */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may no... |
<commit_before>/*
* Copyright (c) 2017 Immo Software
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this list
* of conditions and th... |
<commit_before>#pragma once
#ifndef WITHOUT_HSA_BACKEND
namespace roc {
//! Alignment restriciton for the pinned memory
const static size_t PinnedMemoryAlignment = 4 * Ki;
//! Specific defines for images for Dynamic Parallelism
const static uint DeviceQueueMaskSize = 32;
typedef uint HsaDeviceId;
struct AMDDevice... |
<commit_before><commit_msg>Delete BinaryHeap.hpp<commit_after><|endoftext|> |
<commit_before>/*
Copyright (c) 2018,
Dan Bethell, Johannes Saam, Vahan Sosoyan.
All rights reserved. See COPYING.txt for more details.
*/
#include "aton_framebuffer.h"
#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
using namespace std;
using namespace boost;
const std::string chStr::RGBA = "RGBA",
... |
<commit_before>/*
Greesound
Copyright (C) 2015 Grame
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/.
Grame Centre national de création musicale
11, cours de Ve... |
<commit_before>#include "Stepper.h"
#ifdef ARDUINO_ARCH_ESP32
#include "esp32-hal-gpio.h"
#else
//#include "core_pins.h"
#endif
const int32_t Stepper::vMaxMax = 300000; // largest speed possible (steps/s)
const uint32_t Stepper::aMax = 500000; // speed up to 500kHz within 1 s (steps/s^2)
const uint32_t Stepper:... |
<commit_before>#include "Synapse.h"
#include "Network.h"
#include "Neuron.h"
#include <cmath>
#include <iostream>
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
SynapseBase::SynapseBase(Layer* layer, float weight, int delay, ChannelType type)
{
initialize();
mLayer = layer;... |
<commit_before>/*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 ... |
<commit_before>// Copyright 2010-2013 Google
// 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 a... |
<commit_before>#include "nanocv/tensor.h"
#include "nanocv/string.h"
#include "nanocv/tabulator.h"
#include "nanocv/measure.hpp"
#include "nanocv/math/conv2d.hpp"
#include <iostream>
using namespace ncv;
const size_t trials = 16;
template
<
typename top,
typename tmatrix,
typename tscalar = ... |
<commit_before>/*
Graphics File Loader: a test program for csgfxldr library
Copyright (C) 2000 Andrew Zabolotny <bit@eltech.ru>
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 Founda... |
<commit_before>#include "../lang/lang.h"
#include "../configurator/configurator.h"
#include "../windlg/windlg.h"
#include "../libscreen/libscreen.h"
#include "apps_starter.h"
int app_start(int number_of_app, const char* parametrs) {
std::string full_path = configurator(APPS_FILE, str(number_of_app) + "_app_path", "",... |
<commit_before>/* bzflag
* Copyright (c) 1993-2010 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 COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.