text stringlengths 54 60.6k |
|---|
<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>#include <bits/stdc++.h>
using namespace std;
// https://en.wikipedia.org/wiki/Dinic%27s_algorithm in O(V^2 * E)
const int maxnodes = 5000;
int nodes = maxnodes, src, dest;
int dist[maxnodes], q[maxnodes], work[maxnodes];
struct Edge {
int to, rev;
int f, cap;
};
vector<Edge> g[maxnodes];
... |
<commit_before>#include <toppra/algorithm/toppra.hpp>
#include <memory>
#include <toppra/algorithm.hpp>
#include <toppra/toppra.hpp>
namespace toppra {
namespace algorithm {
TOPPRA::TOPPRA(LinearConstraintPtrs constraints, const GeometricPathPtr &path)
: PathParametrizationAlgorithm{std::move(constraints), path}... |
<commit_before>/* <x0/plugins/proxy.cpp>
*
* This file is part of the x0 web server project and is released under LGPL-3.
* http://www.xzero.io/
*
* (c) 2009-2010 Christian Parpart <trapni@gentoo.org>
*/
#include <x0/http/HttpPlugin.h>
#include <x0/http/HttpServer.h>
#include <x0/http/HttpRequest.h>
#include <x0... |
<commit_before>#include "loader.h"
#include<dlfcn.h>
BVS::ModuleMap BVS::Loader::modules;
BVS::ModuleVector BVS::Loader::masterModules;
BVS::Loader::Loader(Control& control, const Info& info)
: control(control)
, logger("Loader")
, info(info)
{
}
void BVS::Loader::registerModule(const std::string& id, ... |
<commit_before>#include <SDL_thread.h>
#include "StdinCLISupport.h"
#include "ThreadPool.h"
#include "Mutex.h"
#include "OLXCommand.h"
#include "Debug.h"
#include "InputEvents.h"
static bool hasStdinCLISupport = false;
bool stdinCLIActive() { return hasStdinCLISupport; }
#ifndef HAVE_LINENOISE
Result initStdinCLISu... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2012, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>/*
* info≈
* External object for Max/MSP to get information about TTAudioSignals from a Jamoma AudioGraph dsp chain.
* Copyright © 2008 by Timothy Place
*
* License: This code is licensed under the terms of the "New BSD License"
* http://creativecommons.org/licenses/BSD/
*/
#include "maxAudioGr... |
<commit_before>/*******************************************************************************
*
* Generic implementation of non-relational domains.
*
* Author: Arnaud J. Venet (arnaud.j.venet@nasa.gov)
*
* Notices:
*
* Copyright (c) 2011 United States Government as represented by the
* Administrator of the N... |
<commit_before>/**
* \file
* \brief Scheduler class header
*
* \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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
* distribu... |
<commit_before><commit_msg>fixed some indexing issues<commit_after><|endoftext|> |
<commit_before>#include "vec3.h"
#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include <pybind11/stl.h>
#include <pybind11/numpy.h>
namespace py = pybind11;
using namespace pybind11::literals;
namespace jtrace {
void pyExportVec3(py::module& m) {
PYBIND11_NUMPY_DTYPE(Vec3, x, y, z);
... |
<commit_before>/**
* @file svm_test.cpp
*
* Test for SVM.
*/
#include <mlpack/core.h>
#include <mlpack/methods/svm/svm.h>
#include <boost/test/unit_test.hpp>
using std::string;
using namespace mlpack;
using namespace mlpack::svm;
BOOST_AUTO_TEST_SUITE(SVMTest);
// Create test data
arma::mat matrix(20, 3);
bool ... |
<commit_before>/* Sirikata
* main.cpp
*
* Copyright (c) 2008, Daniel Reiter Horn
* 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 t... |
<commit_before>#pragma once
#include <agency/detail/config.hpp>
#include <agency/execution_policy.hpp>
#include <agency/flattened_executor.hpp>
#include <agency/detail/ignore.hpp>
#include <type_traits>
#include <agency/cuda/execution_agent.hpp>
#include <agency/cuda/grid_executor.hpp>
#include <agency/cuda/block_exec... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: gcach_ftyp.hxx,v $
*
* $Revision: 1.35 $
*
* last change: $Author: hr $ $Date: 2006-04-19 13:56:08 $
*
* The Contents of this file are ma... |
<commit_before><commit_msg>vcl: WinSalGraphics: don't crash if there's no font<commit_after><|endoftext|> |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// taskwarrior - a command line task list manager.
//
// Copyright 2006-2013, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and as... |
<commit_before>/*
* Copyright (c) 2015 Samsung Electronics Co., Ltd 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/licens... |
<commit_before>//=============================================================================================================
/**
* @file babymeginfo.cpp
* @author Limin Sun <liminsun@nmr.mgh.harvard.edu>;
* Christoph Dinh <chdinh@nmr.mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr.mgh.harvard.... |
<commit_before>#include <config.h>
#include <chrono>
#include <stdexcept>
#include <thread>
#include <vector>
#include <gtest/gtest.h>
#include <primitiv/naive_device.h>
#include <primitiv/shape.h>
#include <primitiv/tensor.h>
#include <test_utils.h>
using std::vector;
using test_utils::vector_match;
namespace primi... |
<commit_before>/* A BlockEnvironment is created when a block is created. Its primary
* operation is call, which activates the code associated with the block. */
#include "block_environment.hpp"
#include "objectmemory.hpp"
#include "builtin/compiledmethod.hpp"
#include "builtin/contexts.hpp"
#include "builtin/fixnum.... |
<commit_before>//===- FunctionResolution.cpp - Resolve declarations to implementations ---===//
//
// Loop over the functions that are in the module and look for functions that
// have the same name. More often than not, there will be things like:
//
// declare void %foo(...)
// void %foo(int, int) { ... }
//
//... |
<commit_before><commit_msg>Add empty strings localized_strings to fix build breakage.<commit_after><|endoftext|> |
<commit_before><commit_msg>AutoFill: Temporarily remove a NOTREACHED until WK is fixed to not send in empty strings.<commit_after><|endoftext|> |
<commit_before>/* -*- mode: c++; indent-tabs-mode: nil -*- */
/*
The elevation evaluator gets the subsurface temperature and computes the thaw depth
over time.
Authors: Ahmad Jan (jana@ornl.gov)
*/
#include "thaw_depth_evaluator.hh"
namespace Amanzi {
namespace Flow {
ThawDepthEvaluator::ThawDepthEvaluat... |
<commit_before>/**
* Zillians MMO
* Copyright (C) 2007-2010 Zillians.com, Inc.
* For more information see http://www.zillians.com
*
* Zillians MMO is the library and runtime for massive multiplayer online game
* development in utility computing model, which runs as a service for every
* developer to build their ... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief index
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "Li... |
<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>// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include "test.h"
void *Thread1(void *p) {
*(int*)p = 42;
return 0;
}
void *Thread2(void *p) {
*(int*)p = 44;
return 0;
}
void *alloc() {
return malloc(99);
}
vo... |
<commit_before>#include <babylon/actions/valueactions/interpolate_value_action.h>
#include <nlohmann/json.hpp>
#include <babylon/actions/action_manager.h>
#include <babylon/animations/animation.h>
#include <babylon/animations/animation_value.h>
#include <babylon/animations/ianimatable.h>
#include <babylon/animations/... |
<commit_before>#include <agency/future.hpp>
#include <agency/new_executor_traits.hpp>
#include <iostream>
#include <cassert>
#include "test_executors.hpp"
template<class Executor>
void test()
{
using executor_type = Executor;
using traits = agency::new_executor_traits<executor_type>;
{
executor_type exec;
... |
<commit_before>// Filename: mayaToEgg.cxx
// Created by: drose (15Feb00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Softwar... |
<commit_before>#ifdef COSMOLOGY
#include <iostream>
#include <fstream>
#include "cosmology.h"
#include "../io.h"
using namespace std;
void Cosmology::Load_Scale_Outputs( struct parameters *P ) {
char filename_1[100];
// create the filename to read from
strcpy(filename_1, P->scale_outputs_file);
chprintf( "... |
<commit_before>/*! \brief serial_controller_node.
* Manages serial communications with AVR-Master.
*
* This node manages serial communications with the AVR-Master.
* Therefore it first requests all data from AVR-Master and then sends all
* commands to AVR-Master in a Loop. Data read is stored in md49_da... |
<commit_before>
#pragma once
#include <cinatra_http/request.h>
#include <cinatra_http/response.h>
#include <cinatra/context_container.hpp>
#include <cinatra/middleware/cookies.hpp>
#include <boost/any.hpp>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/uuid_generators.hpp>
#inc... |
<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>#include "SIO/LCIORecords.h"
#include <SIO/SIORunHeaderHandler.h>
#include <SIO/SIOEventHandler.h>
#include <SIO/SIOCollectionHandler.h>
#include <SIO/SIORandomAccessHandler.h>
#include <SIO/SIOIndexHandler.h>
#include <EVENT/LCEvent.h>
#include <Exceptions.h>
// -- sio headers
#include <sio/exception.... |
<commit_before>#include "SIO/RunEventMap.h"
#include <iostream>
namespace SIO {
bool operator < ( const RunEvent& r0, const RunEvent& other) {
//std::cout << r0 << " < " << other << " : ["
//<< ( r0.RunNum == other.RunNum ? r0.EvtNum < other.EvtNum : r0.RunNum < other.RunNum ) << "]" << std::endl;
... |
<commit_before>#include "SparseVector.h"
#include "Matrix.h"
#include "../file_parser/FileParser.h"
#include "../file_parser/MatrixElement.h"
#include "../utils/GapsAssert.h"
#include <iterator>
Matrix::Matrix() : mNumRows(0), mNumCols(0) {}
Matrix::Matrix(unsigned nrow, unsigned ncol)
:
mCols(ncol, Vector(nrow)... |
<commit_before>/*============================================================================
Copyright 2017-2021 Koichi Murakami
Distributed under the OSI-approved BSD License (the "License");
see accompanying file License for details.
This software is distributed WITHOUT ANY WARRANTY; without even the
imp... |
<commit_before>// Copyright (c) 2021 by Apex.AI Inc. 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... |
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH, Apex.AI Inc. 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/LICEN... |
<commit_before>//
// main.cpp
// Homework1
//
// Created by James Savage on 9/13/13.
// Copyright (c) 2013 James Savage <me@axiixc.com>. All rights reserved.
//
#include "BoardWriterConsole.h"
#include "InputSourceKeyboard.h"
int main(int argc, const char * argv[])
{
BoardWriter& writer = BoardWriter::create<... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkSTLWriter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Th... |
<commit_before>/*
* Copyright 2005, 2006, 2007 Florian Schmitz
*
* This file is part of CSSTidy.
*
* CSSTidy 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 Li... |
<commit_before>// LAF OS Library
// Copyright (C) 2017 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "os/draw_text.h"
#include "ft/algorithm.h"
#include "ft/hb_shaper.h"
#include "gfx/c... |
<commit_before>#include <stdexcept>
#include "python_api.h"
static int python_count=0;
Python::Python()
{
this->_init(-1, NULL);
}
Python::Python(int argc, char* argv[])
{
this->_init(argc, argv);
}
void Python::_init(int argc, char* argv[])
{
python_count++;
if (python_count == 1) {
// Thi... |
<commit_before>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>
#include "canvas.h"
#include "font.h"
#include <draw/path.h>
#include <core/contract.h>
namespace cairo
{
////////////////////////////////////////
canvas::canvas( void )
{
}
////////////////////////////////////////
canvas::~canvas( void )
{
if ( _context )
cairo_destroy( _context );
}
/////////... |
<commit_before>#include "umundo/core.h"
#include <iostream>
using namespace umundo;
bool testRecursiveMutex() {
Mutex mutex;
UMUNDO_LOCK(mutex);
if(!mutex.tryLock()) {
LOG_ERR("tryLock should be possible from within the same thread");
assert(false);
}
UMUNDO_LOCK(mutex);
// can we unlock it as well?
UMUNDO... |
<commit_before>/*
* Copyright 2017 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. Al... |
<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>/****************************************************************************
*
* Copyright (c) 2013-2014 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 me... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: layerupdatemerger.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-08 03:32:30 $
*
* The Contents of this file ... |
<commit_before><commit_msg>pr change<commit_after><|endoftext|> |
<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>// Copyright (c) 2016 ASMlover. 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 o... |
<commit_before>/*
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
#include <aws/core/Aws.h>
#include <aws/core/utils/threading/Semaphore.h>
#include <aws/core/auth/AWSCredentialsProviderChain.h>
#include <aws/transcribestreaming/TranscribeStreamingService... |
<commit_before>// Copyright (C) 2011 The Libphonenumber Authors
//
// 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 a... |
<commit_before>// Copyright (C) 2011 The Libphonenumber Authors
//
// 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 a... |
<commit_before>
#include "nethandlers.h"
#include "netmessages.h"
#define DECLARE_NET_HANDLER_ARRAY(funcname) \
{ \
&NetHandlers::Net_NOP_##funcname, \
&NetHandlers::Net_Disconnect_##funcname, \
&NetHandlers::Net_File_##funcname, \
&NetHandlers::Net_Tick_##funcname, \
&NetHa... |
<commit_before>#include "powerSleep.h"
#include <avr/sleep.h>
#include <avr/power.h>
void enterSleep()
{
/*** Setup Sleep options ***/
set_sleep_mode(SLEEP_MODE_PWR_DOWN); // Lowest powerdown mode
sleep_enable(); // Enable sleep
/*** Put processor to sleep ***/
sleep_mode();
/... |
<commit_before>/*****************************************************************************
* controller.hpp : Controller for the main interface
****************************************************************************
* Copyright (C) 2006-2008 the VideoLAN team
* $Id$
*
* Authors: Jean-Baptiste Kempf <jb@vi... |
<commit_before>/******************************************************************************
* Copyright 2019 The Apollo 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 ... |
<commit_before>/****************** <SNX heading BEGIN do not edit this line> *****************
*
* sonix
*
* Original Authors:
* Kevin Meinert, Carolina Cruz-Neira
*
****************** <SNX heading END do not edit this line> ******************/
/*************** <auto-copyright.pl BEGIN do not edit this line> ... |
<commit_before>/* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* See the NOTICE file ... |
<commit_before><commit_msg>Improving kmp<commit_after><|endoftext|> |
<commit_before>// preliminary
// Part of support library for djinni4python, handwritten
#include <stdio.h> // for debugging
#include "wrapper_marshal.hpp"
#include "thread_local.hpp"
#include "../djinni_common.hpp"
#include <string>
#include <iostream> // for debugging
using namespace djinni;
using namespace djinni::... |
<commit_before><commit_msg>Updating context-ls: listProviders -> providers.<commit_after><|endoftext|> |
<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><commit_msg>re-enable OpenCL on Apple for development<commit_after><|endoftext|> |
<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 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/memfilepersistence/device/mountpointlist.h>
#include <vespa/vespalib/io/fileutil.h>
#include <vespa/storageframework/defaultimplementation/clock/fakeclock.h>
#include <v... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkEllipsoidInteriorExteriorSpatialFunctionTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All... |
<commit_before>
#include "GuiObject.hpp"
#include "PythonHelpers.h"
int GuiObject::init(PyObject* args, PyObject* kwds) {
// If the GuiObject type has no base set,
// grab _GuiObject from the gui module and set it as the base.
PyTypeObject* const selfType = &GuiObject_Type;
if(selfType->tp_base == NULL || selfTyp... |
<commit_before>/*
* Copyright (C) 2016 deipi.com LLC and contributors. All rights reserved.
*
* 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 limit... |
<commit_before>/*
===========================================================================
Daemon GPL Source Code
Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company.
This file is part of the Daemon GPL Source Code (Daemon Source Code).
Daemon Source Code is free software: you can redistribute it and... |
<commit_before>/* Copyright 2017 Istio 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 requi... |
<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>MatrixXi m = MatrixXi::Random(3,4);
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is the reverse of m:" << endl << m.reverse() << endl;
cout << "Here is the coefficient (1,0) in the reverse of m:" << endl
<< m.reverse()(1,0) << endl;
cout << "Let us overwrite this coefficient w... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: wakeupevent.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: kz $ $Date: 2006-12-13 15:23:54 $
*
* The Contents of this file are ma... |
<commit_before>/**
* @file
*/
#include "libbirch/Memo.hpp"
#include "libbirch/SwapClone.hpp"
#include "libbirch/SwapContext.hpp"
bi::Memo::Memo() :
isForked(false) {
//
}
bi::Memo::Memo(Memo* parent, const bool isForwarding) :
cloneParent(isForwarding ? nullptr : parent),
forwardParent(isForwarding ?... |
<commit_before>/*
* Copyright 2016 - 2021 gary@drinkingtea.net
*
* 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/.
*/
#pragma once
#include <ox/std/types.hpp>
#inc... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>#include <test/unit/math/test_ad.hpp>
#include <test/unit/math/mix/fun/offset_multiplier_constrain_matvar_helpers.hpp>
// real[], real[], real[]
// real[], real, real[]
// real[], real[], real
TEST(mathMixMatFun, offset_multiplier_constrain_matvar_stdvec_constrain) {
std::vector<double> A{5.0, 2.0, 4.... |
<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>//=============================================================================================================
/**
* @file test_spectral_connectivity.cpp
* @author Daniel Strohmeier <daniel.strohmeier@tu-ilmenau.de>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>
* @version 1.0
* @date ... |
<commit_before>#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_OPENGL_
#include "COpenGLDriver.h"
#include "COpenGLRenderBuffer.h"
namespace irr
{
namespace video
{
//! constructor
COpenGLRenderBuffer::COpenGLRenderBuffer(GLenum internalFormat, core::dimension2du size)
: RenderBufferSize(size), I... |
<commit_before>/*Copyright 2010 George Karagoulis
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... |
<commit_before>int dp[MAX][MAX]; // dp[i][j] is number of ways j items can be choosen from i items
void ncr() {
dp[0][0] = 1;
for(int i = 1; i < MAX; ++i) {
for(int j = 0; j <= i; ++j) {
if(j == i or j == 0) {
dp[i][j] = 1;
} else {
dp[i][j] = (dp[i ... |
<commit_before>/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by ... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>#pragma once
#include <algorithm>
#include <cstdint>
#include <string>
#include "hecl/CVarManager.hpp"
#undef min
#undef max
namespace hecl {
using namespace std::literals;
#ifdef _WIN32
#define DEFAULT_GRAPHICS_API "D3D11"sv
#elif defined(__APPLE__)
#define DEFAULT_GRAPHICS_API "Metal"sv
#else
#de... |
<commit_before>/*******************************************************************************
* BSD 3-Clause License
*
* Copyright (c) 2019, Los Alamos National Security, LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
<commit_before>#include <iostream>
using namespace std;
int main()
{
int Num1;
int Num2;
int Duv;
int Sum;
cout << "Pleas Enter A Number...\n";
cout << endl;
cin >> Num1;
cout << "Pleas Enter A Symbole Ex: +, *, - \n";
cin >> Duv;
cout << endl;
cout << "Pleas Enter A Number...\n";
cin >> Num2;
cout << endl;
Sum = ... |
<commit_before>/*
* Main_Window.cpp
*
* Created on: 30 avr. 2017
* Author: guill
*/
#include "Application/Windows/Main_Window.h"
#include "Application/Events.h"
#include <iostream>
Main_Window::Main_Window(Picaso::Serial_Commander& lcd) : Touchable_Window(lcd),
button_moving(m_lcd, "Moving Wind... |
<commit_before>#include "AudioData.h"
#include "Messages/AudioData.pb.h"
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <algorithm>
using namespace naoth;
AudioData::AudioData():
sampleRate(8000),
numChannels(2),
timestamp(0)
{
}
void AudioData::print(std::ostream& stream) const
{
stream... |
<commit_before>#include "dreal/solver/assertion_filter.h"
#include <cmath>
#include "dreal/util/box.h"
#include "dreal/util/exception.h"
namespace dreal {
namespace {
using std::nextafter;
// Constrains the @p box with ` box[var].lb() == v`.
FilterAssertionResult UpdateBoundsViaEquality(const Variable& var,
... |
<commit_before>/***
* Infiniband maximum achievable bandwidth test.
*/
#include <stdio.h>
#include <vector>
#include <iostream>
#include <cmath>
#include "Maxfiles.h"
#include "MaxSLiCInterface.h"
using namespace std;
const double GB = pow(1024, 3) * 8;
const double MB = pow(1024, 2) * 8;
/** Maxmimum possible... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.