text stringlengths 54 60.6k |
|---|
<commit_before>/**
* \file
*
* \brief Kate Close Except/Like plugin implementation
*
* \date Thu Mar 8 08:13:43 MSK 2012 -- Initial design
*/
/*
* KateCloseExceptPlugin 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 Sof... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>/*
* opencog/attention/HebbianUpdatingAgent.cc
*
* Written by Roman Treutlein
* 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 includin... |
<commit_before>//
// Matirx.hpp
// ~~~~~~~~~~
//
// Copyright (c) 2014 Rick Yang (rick68 at gmail dot com)
//
// 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/.
//
#ifnd... |
<commit_before>
//#if !defined(_MSC_VER) || defined(_M_AMD64)
//#define USE_PAGE_ALIGNED_ALLOCATION
//#endif
#ifdef USE_PAGE_ALIGNED_ALLOCATION
#ifdef _WIN32
#include <Windows.h>
#else
#include <pthread.h>
#include <unistd.h>
#include <malloc.h>
#include <cstring>
#endif
#endif
#include <nstd/Memory.h>
#include <ns... |
<commit_before>// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "browser/api/atom_api_protocol.h"
#include "base/stl_util.h"
#include "browser/atom_browser_context.h"
#include "browser/net/adapter_r... |
<commit_before>/*
* Copyright 2018 The Cartographer 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... |
<commit_before>/*
* Copyright 2002-2005 The Apache Software Foundation.
*
* 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>#pragma once
using namespace std;
#include <vector>
#include <sstream>
namespace OCScript
{
// 便利な機能をまとめたクラスです。
class Utility
{
public:
// 区切り文字により文字列をスプリットします。
// 引数: ソース文字列, 区切り文字
static vector<wstring> StrSplit(const wstring &src, wchar_t delimiter)
{
wstringstream ss(src);
vecto... |
<commit_before>/*
* opencog/execution/EvaluationLink.cc
*
* Copyright (C) 2009, 2013, 2014 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 ... |
<commit_before>#include <bytecode/smtl/SmtlCpu.h>
#include <stdio.h>
SmtlCpu::SmtlCpu()
{
isExecuting=true;
pc=0;
}
int SmtlCpu::doOp(char opcode)
{
processOpcode(opcode);
}
int SmtlCpu::execute(char opcode[],int num)
{
int i=0;
while(i!=num)
{
processOpcode(opcode[i]);
}
}
void SmtlCpu::step()
{
proc... |
<commit_before>#include "acmacs-base/html.hh"
#include "acmacs-map-draw/mapi-settings.hh"
// ----------------------------------------------------------------------
// {"N": "compare-sequences", "groups": [{"select": <Select Antigens>, "name": "group-1"} ...], "html": "filename.html (filename.data.js is generated as w... |
<commit_before>/* Copyright (C) 2009 Adenilson Cavalcanti <savagobr@yahoo.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; by version 2 of the License or (at your
* choice) any ... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2017 Baldur Karlsson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the... |
<commit_before>////////////////////////////////////////////////////////////////////////////////////
// Authors: Mateus Fogaca
// (Ph.D. advisor: Ricardo Reis)
// Jiajia Li
// Andrew Kahng
// Based on:
// K. Han, A. B. Kahng and J. Li, "Optimal Generalized H-Tree Topology and
// ... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2000 The Apache Software Foundation. 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. Redistri... |
<commit_before>/**
* \file bt_icma_core.cpp
* \brief
* \date Aug 20, 2010
* \author Vernkin Chen
*/
#include <boost/test/unit_test.hpp>
#include "icma/icma.h"
#include <string>
#include <vector>
using namespace cma;
using namespace std;
Knowledge* globalKnowledge = NULL;
void createKnowledgeAndAnalyzer(
... |
<commit_before>/*************************************************************************
*
* $RCSfile: SvFilterOptionsDialog.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: obo $ $Date: 2005-04-13 10:59:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the ... |
<commit_before>/*
* Copyright (c) 2018 Abit More, and contributors.
*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitat... |
<commit_before>// @(#)root/gui:$Id$
// Author: Reiner Rohlfs 24/03/2002
/*************************************************************************
* Copyright (C) 1995-2001, Rene Brun, Fons Rademakers and Reiner Rohlfs *
* All rights reserved. *
* ... |
<commit_before>/*******************************************************************************
* Copyright (c) 2009-2014, MAV'RIC Development Team
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ar... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs
*
* Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr>
*
* This program is f... |
<commit_before>/***************************************************************************
* Copyright (c) 2011 Jrgen Riegel (juergen.riegel@web.de) *
* Copyright (c) 2015 Eivind Kvedalen (eivind@kvedalen.name) *
* ... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2009 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 docume... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 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 docume... |
<commit_before>#include "Player.h"
#include "InputHandler.h"
#include <iostream>
void Player::handleInput() {
int xAxisValue, yAxisValue;
InputHandler* handlerInstance = InputHandler::Instance();
if (handlerInstance->joysticksInitialised()) {
xAxisValue = handlerInstance->stickXValue(0, LEFT_STICK);
yAxisValue ... |
<commit_before>#ifndef CHARACTER_HPP_INCLUDED
#define CHARACTER_HPP_INCLUDED
#include <array>
#include <memory>
#include <string>
#include <unordered_map>
#include <SFML/Graphics.hpp>
#include "object.hpp"
struct CharacterData;
struct CharacterTraits
{
uint64_t is_player : 1;
uint64_t intelligent : 1;
u... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>/**
* Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS)
* Copyright (c) 2016-2017 metaverse core developers (see MVS-AUTHORS)
*
* This file is part of metaverse-explorer.
*
* metaverse-explorer is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero... |
<commit_before>/***************************************************************************
* @file main.cpp
* @author Alan.W
* @date 15 Mar 2014
* @remark This code is for Introduction to Algorithms
* @note
***************************************************************************/
//!... |
<commit_before>#include <string>
#include <cstdlib>
#include <cassert>
#include "Reader.h"
#include "NullReader.h"
#include "HdfReader.h"
#include "TextReader.h"
#include "VtkReader.h"
using namespace cigma;
// ---------------------------------------------------------------------------
cigma::Reader* NewReader(con... |
<commit_before>// This file is part of the AliceVision project.
// Copyright (c) 2016 AliceVision contributors.
// Copyright (c) 2012 openMVG contributors.
// 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 obtai... |
<commit_before>#include "timing.h"
#include "Logger.h"
logger::LogChannel timinglog("timinglog", "[TimingStatistics] ");
TimingStatistics TimingStatistics::_instance;
double
Timer::elapsed() const {
boost::chrono::nanoseconds ns(_timer.elapsed().wall);
boost::chrono::duration<double> s = ns;
return s.count();
}... |
<commit_before>/*-----------------------------------------------------------------------------
This source file is part of Hopsan NG
Copyright (c) 2011
Mikael Axin, Robert Braun, Alessandro Dell'Amico, Björn Eriksson,
Peter Nordin, Karl Pettersson, Petter Krus, Ingo Staack
This file is provided "as is", wi... |
<commit_before>#include "Vajra/Engine/Core/Engine.h"
#include "Vajra/Engine/SceneGraph/SceneGraph3D.h"
#include "Vajra/Engine/SceneGraph/SceneGraphUi.h"
#include "Vajra/Framework/Core/Framework.h"
#include "Vajra/Framework/Logging/Logger.h"
#include "Vajra/Framework/OpenGL/OpenGLCounter/OpenGLCounter.h"
#include "Vajra... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If... |
<commit_before>#include <hop_bits/optimisationProblem/benchmark/blackBoxOptimisationBenchmark2013/linearSlope.hpp>
// Cereal
#include <cereal/archives/json.hpp>
#include <cereal/types/polymorphic.hpp>
namespace hop {
namespace bbob2013 {
LinearSlope::LinearSlope(
const unsigned int& numberOfDimensions) ... |
<commit_before>/*************************************************************************/
/* canvas_layer.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 *
* (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS *
* ... |
<commit_before>#ifdef COMPONENT_PARSER_H
// do not include this file directly.
// use parser.h instead.
// include the implementation of classes:
// Variable, VariableScope, Function
#include "variables.cpp"
/*************************************
* Implementation: class Parser
************************************... |
<commit_before>/******************************************************************************
* Copyright 2017 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>
/******************************************************************************
* Copyright 2018 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>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 *
* (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS *
* ... |
<commit_before>/*
* System.cpp
*
* Created on: Apr 29, 2014
* Author: Pimenta
*/
// this
#include "System.hpp"
// standard
#include <cstdio>
// lib
#include <SDL_net.h>
#include <SDL_stdinc.h>
// local
#include "Globals.hpp"
#include "Lockable.hpp"
#include "SystemDetectFailure.hpp"
... |
<commit_before>//
// Starcounter Lisp
//
// Vector.cpp
// Planned Implementation of a persistent bit-partitioned vector trie.
// Pioneered by Phil Bagwell: http://lampwww.epfl.ch/papers/idealhashtrees.pdf
// Needs unit tests badly.
//
// Made popular in Clojure as their persistent vector.
// https://www.youtube.... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
<commit_before>/**
* Copyright (C) 2015 3D Repo Ltd
*
* 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 later version.
*
* T... |
<commit_before>#include <iostream>
#include <map>
#include <vector>
#include <fstream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cstdio>
#include <unistd.h>
#include <ext/stdio_filebuf.h>
#include <cstring>
#include <signal.h>
using namespace std;
int iabs(int a) { return a < 0 ? -a : a; }
vo... |
<commit_before>#ifndef THREAD_POOL_H
#define THREAD_POOL_H
#include <vector>
#include <queue>
#include <memory>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <future>
#include <functional>
#include <stdexcept>
#include <atomic>
class ThreadPool {
public:
ThreadPool(size_t);
templat... |
<commit_before>// Virvo - Virtual Reality Volume Rendering
// Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University
// Contact: Jurgen P. Schulze, jschulze@ucsd.edu
//
// This file is part of Virvo.
//
// Virvo is free software; you can redistribute it and/or
// modify it under the terms of the GN... |
<commit_before>#include <TitleScene.hpp>
using namespace uth;
uth::Layer& TitleScene::getLayer(LayerId id)
{
return *m_layers[id];
}
TitleScene::TitleScene()
{
m_BGM = uthRS.LoadSound("Audio/Music/menu_theme.wav");
m_BGM->Play();
auto& window = uthEngine.GetWindow();
getLayer(LayerId::TitleBackground);
getL... |
<commit_before>#include <psp2/ctrl.h>
#include <psp2/touch.h>
#include <psp2/moduleinfo.h>
#include <psp2/kernel/processmgr.h>
#include <string>
#include <cstdio>
#include <vita2d.h>
#include "../vitamenulib/libvitamenu/menu_manager.h"
#include "../vitamenulib/libvitamenu/menu.h"
#include "../vitamenulib/l... |
<commit_before>#include "Daemon.hpp"
#include <errno.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <fcntl.h> /* For O_* constants */
#include <sys/stat.h> /* For mode constants */
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <syslog.h>... |
<commit_before><commit_msg>fix: can call free after allocator_monitor destruction.<commit_after><|endoftext|> |
<commit_before>/******************************************************************************
* BRICS_3D - 3D Perception and Modeling Library
* Copyright (c) 2014, KU Leuven
*
* Author: Sebastian Blumenthal
*
*
* This software is published under a dual-license: GNU Lesser General Public
* License LGPL 2.1 and ... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICE... |
<commit_before>/***********************************************************************
filename: CEGUIDefaultLogger.cpp
created: 25/1/2006
author: Andrew Zabolotny
purpose: Implementation of the DefaultLogger class
*************************************************************************/
... |
<commit_before>// __BEGIN_LICENSE__
//
// Copyright (C) 2006 United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration
// (NASA). All Rights Reserved.
//
// This software is distributed under the NASA Open Source Agreement
// (NOSA), version 1.3. The NOSA ha... |
<commit_before>// Copyright (c) 2018 The Gulden developers
// Authored by: Willem de Jonge (willem@isnapp.nl)
// Distributed under the GULDEN software license, see the accompanying
// file COPYING
#include "spvscanner.h"
#include "../net_processing.h"
#include "../validation/validation.h"
#include "wallet.h"
#include... |
<commit_before>#include <sstream>
#include <assert.h>
#include <map>
#include <iostream>
#include "halGenome.h"
#include "halAlignment.h"
#include "halBottomSegmentIterator.h"
#include "halDNAIterator.h"
#include "halMetaData.h"
#include "halSegmentIterator.h"
#include "halSequenceIterator.h"
#include "halTopSegmentIte... |
<commit_before><commit_msg>Revert "linux: use xmessage for the dialog used in LOG(FATAL)"<commit_after><|endoftext|> |
<commit_before>/*****************************************************************************
* cast.cpp: Chromecast sout module for vlc
*****************************************************************************
* Copyright © 2014-2015 VideoLAN
*
* Authors: Adrien Maglo <magsoft@videolan.org>
* Jean-B... |
<commit_before>#include "player.h"
#include "common/log.h"
#define PLAYER_CAPSULE_HEIGHT 1.8f
#define PLAYER_CAPSULE_RADIUS 0.25f
// 75 kg mass person
#define PLAYER_MASS 75.0f
namespace redc
{
Player_Controller::Player_Controller() : inited_(false), ghost_(),
shape_(PLA... |
<commit_before>/*
* This file is part of oauth2 plugin
*
* Copyright (C) 2010 Nokia Corporation.
* Copyright (C) 2012 Canonical Ltd.
*
* Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gen... |
<commit_before>/******************************************************************************
*
* File: wordclass.cpp (Formerly wordclass.c)
* Description: Word classifier
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1990, Hewlett-Packard Company.
** Licensed under the Apache License,... |
<commit_before>// Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "StdAfx.h"
#include "..\BatchEncoder.h"
#include "..\utilities\Utilities.h"
#include "WorkThread.h"
DWORD WINAPI ReadThread(LPVOID lpPara... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001 The Apache Software Foundation. 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. Redistributi... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (c) 2009-2012, 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>#ifndef sw_x0_io_null_filter_hpp
#define sw_x0_io_null_filter_hpp 1
#include <x0/io/filter.hpp>
namespace x0 {
/** simply passes incoming buffers through */
class null_filter :
public filter
{
public:
null_filter() {}
virtual buffer process(const buffer& data)
{
return data;
}
};
} // namespa... |
<commit_before>/*
* Copyright (c) 2011 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>/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <algorithm>
#include <limits>
#include "kernel/free_vars.h"
#include "kernel/replace_fn.h"
#include "kernel/instantiate.h"
namespac... |
<commit_before>#include <sstream>
#include "omxExpectation.h"
#include "path.h"
#include "Compute.h"
#include "EnableWarnings.h"
void PathCalc::prepM(FitContext *fc)
{
if (!mio) mxThrow("PathCalc::prepM but no PathCalcIO for mean");
mio->recompute(fc);
if (ignoreVersion || versionM != mio->getVersion(fc)) {
mio->... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/*
* This file is part of the libone 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 at http... |
<commit_before>/*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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... |
<commit_before>#include "logger.h"
#include "convolution.h"
#include "math/random.hpp"
#include "math/numeric.hpp"
#include "tensor/numeric.hpp"
#include "text/to_string.hpp"
#include "text/from_params.hpp"
#include "tensor/serialize.hpp"
namespace nano
{
template <typename timatrix, typename tsize, typename t... |
<commit_before>#include <QtTest/QtTest>
#include <QtNetwork/QSslSocket>
#include "../src/serverapi.h"
class ServerApiTest : public QObject
{
Q_OBJECT
private:
struct Response {
QVariantMap data;
bool ok;
};
Response sendRequest(const QString &path, const QJsonObject &reqData, bool s... |
<commit_before>// Copyright 2015 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 "ports/mojo_system/message_pipe_dispatcher.h"
#include "ports/mojo_system/core.h"
namespace mojo {
namespace edk {
MessagePipeD... |
<commit_before>/******************************************************************************
This source file is part of the MoleQueue project.
Copyright 2012 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, s... |
<commit_before>#include <libpq-fe.h>
#include <node.h>
#include <node_events.h>
#include <assert.h>
#include <stdlib.h>
#define LOG(msg) printf("%s\n",msg)
#define TRACE(msg) //printf("%s\n", msg);
#define THROW(msg) return ThrowException(Exception::Error(String::New(msg)));
using namespace v8;
using namespace node;... |
<commit_before>/*
* node-rdkafka - Node.js wrapper for RdKafka C/C++ library
*
* Copyright (c) 2016 Blizzard Entertainment
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE.txt file for details.
*/
#include <iostream>
#include "src/binding.h"
using NodeKaf... |
<commit_before>// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "pubkey.h"
#include "eccryptoverify.h"
#ifdef USE_SECP256K1
#include <secp256k1.h>
#else
#include "ecwra... |
<commit_before>#include <cassert>
#include <climits>
#include <stdexcept>
#include <tuple>
#include <Python.h>
namespace dubzzz {
namespace Py2Cpp {
template <class T>
struct CppBuilder
{
T operator() (PyObject* pyo)
{
assert(pyo);
throw;
}
};
template <>
struct CppBuilder<PyObject*>
{
PyObject* op... |
<commit_before>#include <iostream>
// #include <assert.h>
#include "device_prop.hpp"
#include "debug_macros.hpp"
using namespace std;
namespace popart {
device_prop_t::device_prop_t( bool output )
{
cudaError_t err;
err = cudaGetDeviceCount( &_num_devices );
POP_CUDA_FATAL_TEST( err, "Cannot count devi... |
<commit_before>/*********************************
** Tsunagari Tile Engine **
** python.cpp **
** Copyright 2011-2012 OmegaSDG **
*********************************/
#include <algorithm> // for std::replace
#include <signal.h> // for SIGINT and SIG_DFL
#include <string.h> // for strrchr
#inclu... |
<commit_before>/*
* Provide entropy for the GLib PRNG.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "random.hxx"
#include "fd_util.h"
#include "fd-util.h"
#include <daemon/log.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
... |
<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>/// \file
/// \brief Reference-counted objects.
#ifndef __Y_OBJECT_HPP
#define __Y_OBJECT_HPP
#include <Yttrium/allocators.hpp>
#include <Yttrium/assert.hpp>
#include <Yttrium/safe_bool.hpp>
#include <Yttrium/types.hpp>
namespace Yttrium
{
/// Reference-counted object that deletes itself when the cou... |
<commit_before>#include "razors.h"
#include "matrix.hpp"
#include "frame.h"
#include "framebuffer.h"
#include "material.h"
#include "mesh.h"
#include "shader_types.h"
#include "texture.h"
#include <GL/glew.h>
#include "debug.h"
#include <cmath>
static const double TAU =
6.2831853071795864769252867665590057... |
<commit_before><commit_msg>Reverting my landing (of a patch by external contributer). I jumped the gun, Peter raised additional issues after we both LGTM'ed (and I didn't notice those emails).<commit_after><|endoftext|> |
<commit_before>// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// STL
#include <cassert>
// Boost
#include <boost/make_shared.hpp>
// StdAir
#include <stdair/stdair_exceptions.hpp>
#include <stdair/basi... |
<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.
//
// This code glues the RLZ library DLL with Chrome. It allows Chrome to work
// with or without the DLL being present. If the DLL is ... |
<commit_before>#include <geneial/algorithm/SteadyStateAlgorithm.h>
#include <geneial/algorithm/criteria/MaxGenerationCriterion.h>
#include <geneial/core/population/builder/ContinousMultiValueBuilderSettings.h>
#include <geneial/core/population/builder/ContinousMultiValueChromosomeFactory.h>
#include <geneial/core/po... |
<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 "base/base_paths.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "base... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.