text stringlengths 54 60.6k |
|---|
<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 "build/build_config.h"
#if defined(OS_WIN)
#include <windows.h>
#include <shellapi.h>
#include <shlobj.h>
#endif
#inclu... |
<commit_before>#include "EventDelegate.h"
#include "EventDialog.cpp"
#include <QItemEditorFactory>
#include <QDebug>
EventDelegate::EventDelegate(QObject *parent) :
QItemDelegate(parent)
{
}
QWidget* EventDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const {
Even... |
<commit_before>/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Module: FGCoefficient.cpp
Author: Jon S. Berndt
Date started: 12/28/98
Purpose: Encapsulates the stability derivative class FGCoefficient;
Called by: FGAircraft
------------- Copyright (C) 1999 J... |
<commit_before>// Time: O(p), p is number of positions
// Space: O(p)
class Solution {
public:
vector<int> numIslands2(int m, int n, vector<pair<int, int>>& positions) {
vector<int> numbers;
int number = 0;
const vector<pair<int, int>> directions{{0, -1}, {0, 1},
... |
<commit_before>class Solution {
public:
vector<int> numIslands2(int m, int n, vector<pair<int, int>>& positions) {
vector<int> numbers;
int number = 0;
const vector<pair<int, int>> directions{{0, -1}, {0, 1},
{-1, 0}, {1, 0}};
unordered... |
<commit_before>// Time: O(nlogn)
// Space: O(n)
class Solution {
public:
/**
* @param nums: A list of integers
* @return: A list of integers includes the index of the first number
* and the index of the last number
*/
vector<int> subarraySumClosest(vector<int> nums) {
cons... |
<commit_before>#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <dirent.h>
#include "GRTestProjectCLP.h"
#include <sstream>
#include "GroupwiseRegistration.h"
const char * VTKSUFFIX = ".vtk";
const char * TXTSUFFIX = ".txt";
const char * COEFFSUFFIX = ".coef";
std::vector<std::strin... |
<commit_before>#include <cmath>
#include <iostream>
#include <HFO.hpp>
#include <glog/logging.h>
#include <gflags/gflags.h>
#include "dqn.hpp"
#include <boost/filesystem.hpp>
#include <thread>
#include <mutex>
#include <algorithm>
#include <chrono>
#include <limits>
using namespace boost::filesystem;
// DQN Parameter... |
<commit_before>//===------------------------- Redefinition.cpp ---------------------------===//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "redef"
#include "Redefinition.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Su... |
<commit_before>#include <lib/auto_test.hpp>
#include "../src/libs/steam_vdf_parse.hpp"
class VdfTest : public QObject
{
Q_OBJECT
private:
std::unordered_map<int, SteamVdfParse::GameHeader> map;
SteamVdfParse::GameHeader gameTest;
private slots:
void init();
void testAppId();
void testSize();
... |
<commit_before>#include <iostream>
#include "EdmondsKarp.h"
#include "ReadGraph.h"
#include "WriteResult.h"
void writeResult(Graph& Go, Graph& Gr, FlightEdgeDict& fed, bool file, char* outfile){
WriteResult wr(Go, Gr, fed);
wr.process();
if(file){
wr.writeToFile(std::string(outfile));
}
... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2008 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documenta... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/expaccess/test/ocmbcommtest.H $ ... |
<commit_before>// Copyright ***********************************************************
//
// File ecmdMiscUser.C
//
// IBM Confidential ... |
<commit_before>#include <boost/cast.hpp>
#include "libwatcher/messageStatus.h"
#include "serverMessageHandler.h"
using namespace std;
using namespace watcher;
using namespace watcher::event;
using namespace boost;
INIT_LOGGER(ServerMessageHandler, "MessageHandler.ServerMessageHandler");
ServerMessageHandler::Serve... |
<commit_before>#ifndef ENTT_SIGNAL_DISPATCHER_HPP
#define ENTT_SIGNAL_DISPATCHER_HPP
#include <cstddef>
#include <memory>
#include <type_traits>
#include <utility>
#include <vector>
#include "../config/config.h"
#include "../container/dense_map.hpp"
#include "../core/fwd.hpp"
#include "../core/type_info.hpp"
#include ... |
<commit_before>/*
QWebSockets implements the WebSocket protocol as defined in RFC 6455.
Copyright (C) 2013 Kurt Pattyn (pattyn.kurt@gmail.com)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; e... |
<commit_before>/***************************************************************************
* Copyright © 2007 Jason Kivlighn <jkivlighn@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
... |
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved.
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <signal.h>
#include <unistd.h>
#include "extproc/extproc_spawner.hpp"
#include "extproc/extproc_worker.hpp"
#include "arch/fd_send_recv.hpp"
extproc... |
<commit_before>/// fileistream
// An istream interface for reading files.
// @module fileistream
#include "FileIStream.h"
#include "Poco/Exception.h"
#include <iostream>
int luaopen_poco_fileistream(lua_State* L)
{
return LuaPoco::loadConstructor(L, LuaPoco::FileIStreamUserdata::FileIStream);
}
namespace LuaPoco
... |
<commit_before>// Copyright (c) 2020 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>/** \file patch_up_ppns_for_k10plus.cc
* \brief Swaps out all persistent old PPN's with new PPN's.
* \author Dr. Johannes Ruscheinski
*/
/*
Copyright (C) 2019, Library of the University of Tübingen
This program is free software: you can redistribute it and/or modify
it under the ... |
<commit_before>/***********************************************************************************************************************
* Copyright (C) 2016 Andrew Zonenberg and contributors *
* ... |
<commit_before>#include <iostream>
#include <julia.h>
#include "Values.h"
#include "lvalue.h"
using namespace std;
template <typename V,typename E> static shared_ptr<nj::Value> reboxArray(jl_value_t *jlarray)
{
shared_ptr<nj::Value> value;
V *p = (V*)jl_array_data(jlarray);
int ndims = jl_array_ndims(jlarray... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtXmlPatterns module of the Qt Toolkit.
**
** $QT_... |
<commit_before>//===--- GlobalObjects.cpp - Statically-initialized objects ---------------===//
//
// 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 "gui/squaredetailwindow.hpp"
#include "gui/ng/label.hpp"
#include "gui/texturemanager.hpp"
#include "gui/guihelper.hpp"
#include "engine/square.hpp"
namespace qrw
{
SquareDetailWindow::SquareDetailWindow()
{
setSize({400.0f, 150.0f});
setAnchor({0.0f, 1.0f});
setParentAnchor({0.... |
<commit_before>#include <Socket/SocketSerialized.hpp>
#include <Socket/define.hpp>
namespace ntw {
SocketSerialized::SocketSerialized(Socket::Dommaine dommaine,Socket::Type type,int protocole): Serializer(255), Socket(dommaine,type,protocole), status(0)
{
//reserver les 2 premier bits pour la taille
_cursor_e... |
<commit_before>#include "Play.hpp"
#include <functional>
#include "../../ResourceManager/AssetManager.hpp"
/* GUI headers */
#include "../../GUI/Containers/Column.hpp"
#include "../../GUI/Containers/Row.hpp"
#include "../../GUI/Widgets/Label.hpp"
#include "../../GUI/Widgets/Button.hpp"
#include "../../GUI/Widgets/Sp... |
<commit_before>#include "instxyplot.h"
const QString InstXYPlot::TAG_NAME = "XY_PLOT";
void InstXYPlot::renderAxis(QPainter* painter)
{
int dx = cWidth / cMajorCnt;
int dy = cHeight / cMajorCnt;
int x = 0;
int y = 0;
for (int i=0; i<cMajorCnt + 1; ++i)
{
painter->drawLine(x, mCenterY-c... |
<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: accfootnote.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: obo $ $Date: 2006-09-16 20:34:52 $
*
* The Contents of this file are... |
<commit_before>//..............................................................................
//
// This file is part of the Jancy toolkit.
//
// Jancy is distributed under the MIT license.
// For details see accompanying license.txt file,
// the public copy of which is also available at:
// http://tibbo.com/dow... |
<commit_before>#ifndef _SDD_DD_CONTEXT_HH_
#define _SDD_DD_CONTEXT_HH_
/// @cond INTERNAL_DOC
#include <memory> // make_shared, shared_ptr
#include "sdd/dd/context_fwd.hh"
#include "sdd/dd/definition_fwd.hh"
#include "sdd/dd/difference.hh"
#include "sdd/dd/intersection.hh"
#include "sdd/dd/sum.hh"
#include "sdd/dd/t... |
<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>/* Copyright 2016 Carnegie Mellon University
*
* 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>/*
* opencog/atoms/core/Checkers.cc
*
* Copyright (C) 2017 Linas Vepstas
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free Software Foundation and including the... |
<commit_before>/* Copyright 2021 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>/*
* Copyright (C) Sometrik oy 2015
*
*/
#include <string.h>
#include <android/log.h>
#include "Menu.h"
#include <jni.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
#include <iostream>
#include <android/bitmap.h>
#include <ContextAndroid.h>
#include <AndroidClient.h>
#in... |
<commit_before>
/*
* Copyright (c) 2012 Karl N. Redgate
*
* 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, m... |
<commit_before>/**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.htm... |
<commit_before>// Copyright © 2016 by Donald King <chronos@chronos-tachyon.net>
// Available under the MIT License. See LICENSE for details.
#include "base/logging.h"
#include <sys/syscall.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <condition_variable>
#include <cstdint>
#include <c... |
<commit_before>/*
* Copyright 2016 Krysta M Bouzek
*
* 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 file is part of cpp-ethereum.
cpp-ethereum 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 3 of the License, or
(at your option) any later version.
cpp-ethereum is dis... |
<commit_before>///
/// @file cmdoptions.hpp
///
/// Copyright (C) 2013 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef PRIMESIEVE_CMDOPTIONS_HPP
#define PRIMESIEVE_CMDOPTIONS_HPP
#include <deque>
#include <s... |
<commit_before>/**
* This file is part of the "libfnord" project
* Copyright (c) 2015 Paul Asmuth
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public License along with th... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (c) 2009-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NGT platform is licensed under the Apache License, Version 2.0 (the
// "License"); you may not use ... |
<commit_before>#include "PipeThrottler.h"
#include "Server.h"
#include "Interface/Mutex.h"
#include "stringtools.h"
#define DLOG(x) x
PipeThrottler::PipeThrottler(size_t bps)
: throttle_bps(bps), curr_bytes(0), lastresettime(0)
{
mutex=Server->createMutex();
}
PipeThrottler::~PipeThrottler(void)
{
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: controllerframe.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kz $ $Date: 2008-03-06 17:55:44 $
*
* The Contents of this file ar... |
<commit_before>/**
* @file game.cpp
* @brief Purpose: Contains methods that create and specify a hitbox.
*
* MIT License
* Copyright (c) 2017 MindScape
*
* https://github.com/TecProg2017-2/mindscape/blob/master/LICENSE.md
*/
#include "game.hpp"
#include <unistd.h>
#include "log.hpp"
using namespace engine;
G... |
<commit_before>/**
* Non-metric Space Library
*
* Authors: Bilegsaikhan Naidan (https://github.com/bileg), Leonid Boytsov (http://boytsov.info).
* With contributions from Lawrence Cayton (http://lcayton.com/) and others.
*
* For the complete list of contributors and further details see:
* https://github.com/sear... |
<commit_before>/* Copyright 2016 Carnegie Mellon University, NVIDIA Corporation
*
* 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
*
* ... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2003 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>#include "x11api.h"
#ifdef __LINUX__
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xos.h>
#include <X11/keysymdef.h>
#include <X11/Xutil.h>
//#include <GL/glx.h> //FIXME
#include <Tempest/Event>
#include <Tempest/TextCodec>
#include <Tempest/Window>
#include <atomic>
#i... |
<commit_before>#include <pcl/simulation/sum_reduce.h>
using namespace pcl::simulation;
pcl::simulation::SumReduce::SumReduce (int width, int height, int levels) : levels_ (levels),
width_ (width),
... |
<commit_before>#include<cstdio>
#include<cstring>
#include<iostream>
#include<queue>
#include<utility>
using namespace std;
const int maxn = 100000;
struct node {
int v, c;
node *next;
} edges[maxn * 2 + 10];
node *adj[maxn + 10];
node *end_edge = edges;
inline void addedge(const int &u, const int &v, cons... |
<commit_before>/**************************************************************************
* This file is property of and copyright by the ALICE HLT Project *
* ALICE Experiment at CERN, All rights reserved. *
* *
... |
<commit_before>#include <iostream>
#include "Box.h"
using namespace std;
int main() {
const unsigned DIM {3};
MatVec<lengthT,DIM> abmessung{2*m,2*m,2*m};
Kugel<DIM> kugel1{1*kg, .1*m};
Box<DIM> box{abmessung, 10, kugel1};
if(! box.initiate()) return 1;
cout << "after Init\n" << box << '\n';
}
<commit_msg>Kon... |
<commit_before>RICHdetect (Int_t evNumber1=0,Int_t evNumber2=0) {
// Dynamically link some shared libs
if (gClassTable->GetID("AliRun") < 0) {
gROOT->LoadMacro("loadlibs.C");
loadlibs();
}
else {
delete gAlice;
gAlice = 0;
}
galice=0;
// Connect the Root Galice file containing ... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageMaskBits.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See... |
<commit_before>/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#if SK_SUPPORT_GPU
#include "GrLayerHoister.h"
#include "GrRecordReplaceDraw.h"
#endif
#include "SkCanvas.h"
#include "SkMultiPictureDraw.h"
#include "SkPictur... |
<commit_before>/*
* ProgramOptions.cpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero Genera... |
<commit_before>#include<ros/ros.h>
#include "reuleaux/WorkSpace.h"
#include<octomap/octomap.h>
#include<octomap/MapCollection.h>
#include <octomap/math/Utils.h>
#include <reuleaux/sphere_discretization.h>
#include <tf2/LinearMath/Quaternion.h>
#include "geometry_msgs/PoseArray.h"
#include<map>
#include<reuleaux/kinemat... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Co... |
<commit_before>#include "solverdialog.h"
#include "ui_solverdialog.h"
#include <QDebug>
#include <QMessageBox>
SolverDialog::SolverDialog(QVector<Solver>& solvers0, QWidget *parent) :
QDialog(parent),
ui(new Ui::SolverDialog),
solvers(solvers0)
{
ui->setupUi(this);
for (int i=solvers.size(); i--;)... |
<commit_before>#include <fstream>
#include <cryptopp/dh.h>
#include <cryptopp/dsa.h>
#include "CryptoConst.h"
#include "RouterContext.h"
#include "util.h"
namespace i2p
{
RouterContext context;
RouterContext::RouterContext ()
{
if (!Load ())
CreateNewRouter ();
Save ();
// we generate LeaseSet at every s... |
<commit_before>/*
* Copyright (c) 2012 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>/*! \file TestInstructionThroughput.cpp
\date Saturday November 14, 2009
\author Sudnya Padalikar <sudnya.padalikar@gatech.edu>
\brief A test for instruction throughput.
*/
#ifndef TEST_INSTRUCTION_THROUGHPUT_CPP_INCLUDED
#define TEST_INSTRUCTION_THROUGHPUT_CPP_INCLUDED
#include <tests/TestInstructi... |
<commit_before>#include "ProceduralRenderer.h"
#include <glbinding/gl/gl.h>
#include "Shader.h"
#include "util.h"
using namespace gl;
ProceduralRenderer::ProceduralRenderer(const std::vector<std::string>& includes,
const std::map<std::string, std::string>& textureFiles)
: Renderer { }
, m_screen { }
, m_program... |
<commit_before>/*
* TTBlue Audio Object Base Class
* Copyright © 2008, Timothy Place
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.html
*/
#include "TTAudioObject.h"
#include "TTEnvironment.h"
// This coeff is used in GainDataspace mapping MIDI to and ... |
<commit_before>/*
* Copyright (c) 2015 ARM Limited. All rights reserved.
* 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.org/lic... |
<commit_before>//
// Created by david on 2019-01-29.
//
#include <string>
#include <tensors/class_tensors_finite.h>
#include <tensors/edges/class_edges_finite.h>
#include <tensors/edges/class_env_ene.h>
#include <tensors/model/class_model_finite.h>
#include <tensors/model/class_mpo_site.h>
#include <tensors/state/clas... |
<commit_before>#ifndef __NX_TCP_H__
#define __NX_TCP_H__
#include <stdint.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <functional>
#include <nx/handle.hpp>
#include <nx/endpoint.hpp>
#include <nx/callback_access.hpp>
namespace nx {
template <typename Derived, typename... Callbacks>
class tcp_base
: ... |
<commit_before>/*
* THIS SHOULD BE RENAMED AS PROCESS_HKL.CPP
*/
#include <iostream>
#include <iomanip>
#include <sys/time.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <gsl/gsl_spline.h>
#include <gsl/gsl_errno.h>
#include <algorithm>
#include "detector.h"
#include "beam.h"
#include "particle.... |
<commit_before>
#include "json.h"
namespace mfast {
namespace json {
bool get_quoted_string(std::istream& strm, std::string* pstr, bool first_quote_extracted=false)
{
char c1;
if (!first_quote_extracted) {
// make sure the first non-whitespace character is a quote
strm >> std::skipws >> c1;
if (c1 !=... |
<commit_before>/**
* @file adam_test.cpp
* @author Marcus Edel
*
* Tests the Adam optimizer on a couple test models.
*/
#include <mlpack/core.hpp>
#include <mlpack/methods/ann/activation_functions/logistic_function.hpp>
#include <mlpack/methods/ann/init_rules/random_init.hpp>
#include <mlpack/methods/ann/layer/... |
<commit_before>#include "io/ibstream.h"
#include "io/obstream.h"
#include "math/random.h"
#include "math/numeric.h"
#include "tensor/numeric.h"
#include "text/to_string.h"
#include "text/algorithm.h"
#include "forward_network.h"
#include "logger.h"
namespace nano
{
rmodel_t forward_network_t::clone() const
... |
<commit_before>/*
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
*
* 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... |
<commit_before>//
// MessagePack for C++ static resolution routine
//
// Copyright (C) 2008-2015 FURUHASHI Sadayuki
//
// 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
//
// h... |
<commit_before>#include "mugen_background.h"
#include <math.h>
#include <ostream>
#include <cstring>
#include <string>
#include <algorithm>
#include "globals.h"
#include "mugen_sprite.h"
#include "util/bitmap.h"
//static double pi = 3.14159265;
using namespace std;
static double interpolate(double f1, double f2, do... |
<commit_before>// [WriteFile Name=GenerateOfflineMap_Overrides, Category=Maps]
// [Legal]
// Copyright 2018 Esri.
// 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/li... |
<commit_before>#include <osg/Notify>
#include <osg/BoundingBox>
#include <osg/PagedLOD>
#include <osg/Timer>
#include <osgUtil/CullVisitor>
#include <iostream>
#include <vector>
#include <algorithm>
#include "TileMapper.h"
#include "TXPNode.h"
#include "TXPPagedLOD.h"
using namespace txp;
using namespace osg;
... |
<commit_before>#include "can/canutil.h"
#include "canutil_pic32.h"
#include "signals.h"
#include "util/log.h"
#include "gpio.h"
#if defined(CROSSCHASM_C5)
#define CAN1_TRANSCEIVER_SWITCHED
#define CAN1_TRANSCEIVER_ENABLE_POLARITY 0
#define CAN1_TRANSCEIVER_ENABLE_PIN 38 // PORTD BIT10 (RD10)
... |
<commit_before>// Player.cpp
// Created by Evan Almonte
//
#include "Player.hpp"
#include "Hand.hpp"
#include <iostream>
using std::cout;
Player::Player( ) : name(""), isCPU(false), score(0) {}
Player::Player(std::string name, bool isCPU) : name(name), isCPU(isCPU), score(0) {}
int Player::getScore ( ) const { ret... |
<commit_before>#include <Riostream.h>
#include "AliRun.h"
#ifndef WIN32
# define stupre stupre_
#else
# define stupre STUPRE
#endif
//
// Fluka include
#include "Fdimpar.h" //(DIMPAR) fluka include
// Fluka commons
#include "Fdblprc.h" //(DBLPRC) fluka common
#include "Femfstk.h" //(EMFSTK) fluka common
#include "Fe... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
// TEST Foundation::Containers::DataStructures::LockFree
#include "Stroika/Foundation/StroikaPreComp.h"
#include <iostream>
#include <sstream>
#if 0
#ifdef _MSC_VER //for doing leak detection
#define _CRTDBG_MAP_ALLOC
#i... |
<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-2018. All rights reserved
*/
// TEST Foundation::Execution::ProcessRunner
#include "Stroika/Foundation/StroikaPreComp.h"
#include "Stroika/Foundation/Debug/Trace.h"
#include "Stroika/Foundation/Execution/ProcessRunner.h"
#if qPlatform_POSIX
#include ... |
<commit_before>/*********************************************************************************
- Contact: Brigitte Cheynis b.cheynis@ipnl.in2p3.fr
- Link: http
- Raw data test file :
- Reference run number :
- Run Type: PHYSICS
- DA Type: MON
- Number of events needed: >=500
- Inp... |
<commit_before>#include "VersatileFile.h"
#include "HttpRequestHandler.h"
VersatileFile::VersatileFile(const QString& file_name)
: file_name_(file_name)
{
}
VersatileFile::~VersatileFile()
{
if (device_->isOpen()) device_->close();
}
bool VersatileFile::open(QIODevice::OpenMode mode)
{
if (!file_name_.toLower()... |
<commit_before>
#include "Math_basics.h"
namespace P_RVD
{
namespace Math
{
Vector3d computeCenter(const Vector3d p1, const Vector3d p2, const Vector3d p3)
{
return Vector3d((p1.x + p2.x + p3.x) / 3,
(p1.y + p2.y + p3.y) / 3,
(p1.z + p2.z + p3.z) / 3);
}
double computeDistance(const Vector3d p1, ... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2010 Interactive Visualization and Data Analysis Group.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "... |
<commit_before>// Copyright 2015-2016 Vagen Ayrapetyan
#include "Rade.h"
#include "RadeGameMode.h"
#include "System/SystemSaveGame.h"
#include "System/RadeGameState.h"
#include "System/RadePlayerState.h"
#include "Custom/LevelBlockConstructor.h"
ARadeGameMode::ARadeGameMode(const class FObjectInitializ... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//==================================================... |
<commit_before>/**
* @file MapUtils.cpp
*
* @see MapUtils.hpp
*/
#include <cmath>
#include "../../include/terrain/MapUtils.hpp"
Biome findClosestBiome(Vertex2D & pos,
voro::container & container, std::vector<Seed> & seeds){
double rx, ry, rz;
int seedID;
if (!(container.find_voronoi_cell(p... |
<commit_before>// Copyright(c) Andre Caron, 2009-2010
//
// This document is covered by the Artistic License 2.0 (Open Source Initiative
// approved license). A copy of the license should have been provided alongside
// this software package (see "license.rtf"). If not, the license is available
// online at "http://www... |
<commit_before>#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include "nthash.hpp"
using namespace std;
namespace opt {
unsigned threads=1;
unsigned kmerLen=64;
const unsigned nhash=7;
const unsigned nbuck=512;
co... |
<commit_before>/*
* mesh2pcd.cpp
*
* Created on: Aug 23, 2011
* Author: aitor
*/
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/io/pcd_io.h>
#include <pcl/registration/transforms.h>
#include "vtkSmartPointer.h"
#include "vtkPLYReader.h"
#include "vtkPolyData.h"
#include <pcl/filters/voxel_grid.... |
<commit_before>/*
Copyright (C) 1998-2000 by Jorrit Tyberghein
Copyright (C) 2001 by W.C.A. Wijngaards
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2... |
<commit_before>#ifndef OPENGL_HPP
#define OPENGL_HPP
#include <fstream> // ifstream
#include <iostream> // cerr
#include <unordered_map>
#include <X11/Xlib.h>
#include <GL/gl.h>
#include <GL/glx.h>
namespace x {
namespace gl {
class api {
public:
api(void)
{
glXBindTexImageEXT = (PFNGLXBINDTEXIMAGE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.