text stringlengths 54 60.6k |
|---|
<commit_before>#include "cvd/internal/io/png.h"
#include "cvd/image_io.h"
#include "cvd/config.h"
#include <png.h>
#include <cstdlib>
using namespace CVD;
using namespace CVD::Exceptions;
using namespace CVD::Exceptions::Image_IO;
using namespace PNG;
using namespace std;
////////////////////////////////////////////... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2012 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 documentation files (... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2016 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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; eit... |
<commit_before>#include "MainPanel.h"
#include "Settings.h"
#include <QMessageBox>
#include <QGridLayout>
#include <QPushButton>
#include <QScrollArea>
#include <QLabel>
/** MainPanel constructor
* Sets base size policy and object name.
* \param parent Pointer to parent widget.
*/
MainPanel::MainPanel(QWidget* paren... |
<commit_before>/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
#include <quic/logging/QLoggerTypes.h>
namespace quic {
folly::dynamic PaddingFrameLog::toDynamic() const {
fo... |
<commit_before>#include "ex14_26_StrVec.h"
#include <algorithm> // for_each, equal
void StrVec::push_back(const std::string& s)
{
chk_n_alloc();
alloc.construct(first_free++, s);
}
std::pair<std::string*, std::string*> StrVec::alloc_n_copy(const std::string* b,
... |
<commit_before>// ======================================================================== //
// Copyright 2009-2019 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<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>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "idstring.h"
#include "idstringexception.h"
#include <vespa/document/bucket/bucketid.h>
#include <vespa/vespalib/util/md5.h>
#include <vespa/vespalib/util/stringfmt.h>
#include <vespa/vespal... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Alexandru-Eugen Ichim
* Willow Garage, Inc
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... |
<commit_before>// Time: O(n)
// Space: O(1)
class Solution {
public:
bool isPalindrome(string s) {
int i = 0, j = s.length() - 1;
while (i < j) {
if (!isalnum(s[i])) {
++i;
} else if (!isalnum(s[j])) {
--j;
} else if (tolower(s[i]... |
<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/file_path.h"
#include "base/gfx/native_widget_types.h"
#include "base/string_util.h"
#include "base/sys_info.h"
#in... |
<commit_before>#include "ChunkManager.h"
#include <math.h>
#include <iostream>
#include <GL/glew.h>
#include "Primitives.h"
constexpr int64 encodePosition(int32 x, int32 z)
{
return ((int64)x << 32) | ((int64)z & 0x00000000FFFFFFFF);
}
ChunkManager::ChunkManager()
:cmTerrainBuilder(ChunkManager::SEED)
{
cmSemaph... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2010 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) 2011 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>// Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include <ma... |
<commit_before>///
/// @file S2_sieve.cpp
/// @brief Calculate the contribution of the special leaves which
/// require a sieve in the Deleglise-Rivat algorithm.
/// This is a parallel implementation which uses compression
/// (PiTable & FactorTable) to reduce the memory usage by
/// about ... |
<commit_before>/*************************************************************************
*
* $RCSfile: locale.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: vg $ $Date: 2005-02-16 15:56:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './perlscriptprefsbase.ui'
**
** Created: Thu Jan 30 16:51:04 2003
** by: The User Interface Compiler ()
**
** WARNING! All changes made in this fi... |
<commit_before>/* dtkPluginManager.cpp ---
*
* Author: Julien Wintz
* Copyright (C) 2008 - Julien Wintz, Inria.
* Created: Tue Aug 4 12:20:59 2009 (+0200)
* Version: $Id$
* Last-Updated: Thu May 3 11:01:55 2012 (+0200)
* By: Julien Wintz
* Update #: 248
*/
/* Commentary:
*
*/
/* Change log:... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2003 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># include <stdio.h>
# include <string.h>
# include <stdlib.h>
# include <ctype.h>
# include <limits.h>
# include <time.h>
# include <assert.h>
#include <algorithm>
#include <omp.h>
#include "SpMP/COO.hpp"
#include "SpMP/mm_io.h"
#include "SpMP/Vector.hpp"
using namespace std;
using namespace SpMP;
COO... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkChart.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This s... |
<commit_before>#include "positiontrackeradapter.h"
#include "ui_positiontrackeradapter.h"
#include <QPainter>
#include <cmath>
PositionTrackerAdapter::PositionTrackerAdapter(std::shared_ptr<PositionTracker> src, QWidget *parent) :
QWidget(parent),
ui(new Ui::PositionTrackerAdapter),
posTracker(src),
mi... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commer... |
<commit_before>/**
* @copyright Copyright 2018 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required b... |
<commit_before>/*
* A auto-growing buffer you can write to.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "growing_buffer.hxx"
#include "pool.hxx"
#include "util/ConstBuffer.hxx"
#include "util/WritableBuffer.hxx"
#include <assert.h>
#include <string.h>
struct buffer {
struct buffer *next;
size_... |
<commit_before>#include "SocketServer.h"
asio::io_service* SocketServer::io_service_ = new asio::io_service;
//TcpConnection::~TcpConnection()
//{
// std::cout << "delete";
// delete_from_parent();
//}
TcpConnection::pointer TcpConnection::create(asio::io_service& io_service, SocketServer* parent)
{
return pointer... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/scoped_ptr.h"
#include "net/base/net_errors.h"
#include "net/http/http_auth_handler.h"
#include "net/http/http_auth_hand... |
<commit_before>// @(#)root/mathmore:$Id: Integrator.cxx 19826 2007-09-19 19:56:11Z rdm $
// Authors: L. Moneta, M. Slawinska 10/2007
/**********************************************************************
* *
* Copyright (c) 2004 ROOT Foundation, ... |
<commit_before>/******************************************************************************/
/* */
/* X r d S y s P r i v . c c */
/* ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: gconfbackend.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: obo $ $Date: 2006-03-22 09:34:06 $
*
* The Contents of this file are ... |
<commit_before>/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
<commit_before>//
// Copyright (c) 2015 The ANGLE 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.
//
// StateManagerGL.h: Defines a class for caching applied OpenGL state
#include "libANGLE/renderer/gl/StateManagerGL.h"
#in... |
<commit_before>#include "precompiled.h"
//
// Copyright (c) 2002-2012 The ANGLE 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.
//
// IndexDataManager.cpp: Defines the IndexDataManager, a class that
// runs the Buffer transla... |
<commit_before>//
// $Id: $
# include <sys/types.h>
# include <sys/socket.h>
# include <sys/ioctl.h>
# include <netinet/in.h>
# include <arpa/inet.h>
# include <fcntl.h>
# include <errno.h>
# include <unistd.h>
# include <netdb.h>
# include "avmthane.h"
namespace thane
{
BEGIN_NATIVE_MAP(SocketClass)
NATIVE... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2011 Ulrich von Zadow
//
// 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 of the Li... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TX... |
<commit_before>#include <riak/request_with_timeout.hxx>
//=============================================================================
namespace riak {
//=============================================================================
using boost::mutex;
using boost::unique_lock;
using std::placeholders::_1;
using std:... |
<commit_before>/**********************************************************************
* $Id$
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2010 Sandro Santilli <strk@keybit.net>
*
* This is free software; you can redistribute and/or modify it under
* the terms of ... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2012 Anton Chernov <chernov.anton.mail@gmail.com>
// Copyright 2012 ... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE... |
<commit_before>/** @file
@brief Implementation
@date 2014
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2014 Sensics, Inc.
//
// 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 ... |
<commit_before>/***************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
** Licensees may use thi... |
<commit_before>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2009, 2010
* sileht, theli48@gmail.com
* Emmanuel Benazera, juban@free.fr
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* ... |
<commit_before>/*
Copyright (c) 2014-2015 DataStax
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 agree... |
<commit_before>/*
* spi.cpp - Threaded SPI driver
*
* Copyright (C) 2013 William Markezana <william.markezana@me.com>
*
*/
#include "spi.h"
/*
* constructor
*
*/
spi::spi(const char *pDevice)
{
mMode = 0;
mRunning = false;
mActiveTransfert = false;
mInitializationSuccessful = false;
mThreadId = 0;
mTran... |
<commit_before>/*
* Copyright (C) 2019 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>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/isteps/istep06/call_host_voltage_config.C $ ... |
<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 <adios2.h>
#include <fstream>
#include <gtest/gtest.h>
TEST(ADIOS2ReadNonBPFile, ShortBadFile)
{
std::ofstream of{"foo.bp"};
of << "Hello, world!\n";
of.close();
adios2::ADIOS adios;
adios2::IO io = adios.DeclareIO("Test");
EXPECT_THROW(io.Open("foo.bp", adios2::Mode::R... |
<commit_before>/*
* Copyright (C) 2014-2015 Daniel Nicoletti <dantti12@gmail.com>
*
* 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 of the License, or (at your o... |
<commit_before>// Copyright Hugh Perkins 2015 hughperkins at gmail
//
// 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/.
#include <iostream>
#include <string>
#includ... |
<commit_before>/*
* Copyright (C) 2007,2008,2009 Red Hat, Inc.
*
* This is part of HarfBuzz, an OpenType Layout engine library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any p... |
<commit_before>// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "platform/globals.h"
#if defined(TARGET_OS_FUCHSIA)
#include "bin/crypto.h"
#... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* 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 no... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2014 Paul Asmuth, Google Inc.
*
* 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 Licen... |
<commit_before>/****************************************************************************
**
** Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercia... |
<commit_before>/* libwpd2
* Copyright (C) 2002 William Lachance (william.lachance@sympatico.ca)
* Copyright (C) 2002 Marc Maurer (j.m.maurer@student.utwente.nl)
*
* 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 ... |
<commit_before>#include "../Positive_Matrix_With_Prefactor.hxx"
#include "../Boost_Float.hxx"
#include "../../Timers.hxx"
#include "../../sdp_convert.hxx"
#include <boost/filesystem.hpp>
#include <algorithm>
std::vector<Polynomial> bilinear_basis(const Damped_Rational &damped_rational,
... |
<commit_before>#include <sqlite3.h>
#include <algorithm>
#include "ace/OS_NS_sys_time.h"
#include "log.h"
#include "json/reader.h"
#include "json/value.h"
#include "DataStore.h"
#include "QueryHandlerFactory.h"
#include "QueryHandler.h"
#include "DataStoreConstants.h"
using namespace ammo::gateway;
DataStoreRece... |
<commit_before>#include <functional>
#include <initializer_list>
#include <string>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <iostream>
#include <memory>
namespace parser{
class Sign_{
std::string name_;
bool isTerm_;
public:
Sign_(std::string n, bool ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: updateinfo.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2007-07-06 14:38:45 $
*
* The Contents of this file are mad... |
<commit_before>/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://opensource.org/licenses/BSD-3-Clause for
details. */
#include <cctype>
#include "parser.h"
struct CMakeParser {
CMakeParser(const std::string &content, std::vector<Span> &spans);
void ... |
<commit_before>#ifndef BFC_PARSER_HPP
#define BFC_PARSER_HPP
#include "lexer.hpp"
#include "result.hpp"
#include "ast/ast.hpp"
namespace bfc {
template <class Source, class Traits = source_traits<Source>>
class parser {
public:
using Lexer = lexer<Source, Traits>;
parser(Lexer lexer) : lexer(s... |
<commit_before>#include "UnitTester.hpp"
#ifdef RUN_TESTS
using namespace testing;
UnitTester::UnitTester(){}
UnitTester::~UnitTester(){}
void UnitTester::runTests()
{
#ifdef RUN_ALL
utilities();
logging();
resourceGroup();
resourceManager();
INIParser();
#elif
#ifdef TEST_UTILITIES
utilities();
#endif
... |
<commit_before>#ifndef __Z2H_PARSER__
#define __Z2H_PARSER__ = 1
#include <cmath>
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
#include <iostream>
#include <stddef.h>
#include <sys/stat.h>
#include <functional>
#include "symbol.hpp"
#include "token.hpp"
#include "binder.hpp"
using namesp... |
<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>/*************************************************************************
*
* $RCSfile: AccessibleStringWrap.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: vg $ $Date: 2003-04-24 16:55:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>// @(#)root/peac:$Name: $:$Id: TProofPEAC.cxx,v 1.2 2005/02/08 22:40:36 rdm Exp $
// Author: Maarten Ballintijn 21/10/2004
// Author: Kris Gulbrandsen 21/10/2004
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.... |
<commit_before>/*
* This file is part of vaporpp.
*
* vaporpp 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.
*
* vaporpp... |
<commit_before>/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkTime.h"
#include "SkInterpolator.h"
extern bool is_overview(SkView* view);
static... |
<commit_before>
auto test_internal_system::utilities::printData(_In_ const float* data, _In_ const int dataSize)->void {
/*
No input checking
*/
std::cout << "Begining dump of memory at address: " << &data << std::endl;
for (int i{ 0 }; i != dataSize; ++i)
std::cout << "data[" << i << "] " << data[... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: mtrindlg.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 21:37:49 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************/
/* split_container.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>#pragma once
/* A trivial class to run a function at the end of a scope. */
class Finally
{
private:
std::function<void()> fun;
public:
Finally(std::function<void()> fun) : fun(fun) { }
~Finally() { fun(); }
};
<commit_msg>Add missing #include<commit_after>#pragma once
#include <functional... |
<commit_before>#ifndef TOML11_LEXER_HPP
#define TOML11_LEXER_HPP
#include "combinator.hpp"
#include <stdexcept>
#include <istream>
#include <sstream>
#include <fstream>
namespace toml
{
namespace detail
{
// these scans contents from current location in a container of char
// and extract a region that matches their o... |
<commit_before>/*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 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 any of... |
<commit_before>// TODO Add restarting
namespace mant {
template <typename ParameterType>
class SimulatedAnnealing : public TrajectoryBasedOptimisationAlgorithm<ParameterType> {
public:
explicit SimulatedAnnealing(
const std::shared_ptr<OptimisationProblem<ParameterType>> optimisationProblem) noe... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include <platform.h>
#include <CogServer.h>
#include <Node.h>
#include <Link.h>
#include <string>
#include <queue>
using namespace opencog;
class DottyGrapher
{
public:
DottyGrapher(AtomSpace *space) : space(space), withIncoming(false) { answer = ""; }
AtomSpace *space;
std::string answer;... |
<commit_before>#include "Model.h"
#include "Globals.h"
#include "Engine.h"
#include "ModuleRender.h"
#include "ModuleWindow.h"
#include "ModuleInput.h"
#include "SDL/include/SDL.h"
#include <windows.h>
#include "GL/glew.h"
#include <gl/GL.h>
#include <gl/GLU.h>
#include "Cube.h"
#include "Sphere.h"
#include "Cylinder.h... |
<commit_before>/*
* main.cpp
* Copyright (C) 2015 Chris Waltrip <walt2178@vandals.uidaho.edu>
*
* This file is part of EvoComp-SantaFe
*
* EvoComp-SantaFe 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 Fou... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: onefuncstarter.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2006-09-17 03:49:28 $
*
* The Contents of this file ar... |
<commit_before>#include <unistd.h>
int main(int argc, char* argv[])
{
while (1) {
sleep(1);
}
return 0;
}
<commit_msg>Minor: Delete leftover dummy (timing_wait).<commit_after><|endoftext|> |
<commit_before>#include "platform.hpp"
#include "../base/assert.hpp"
#include "../base/macros.hpp"
#include "../base/logging.hpp"
#include "../defines.hpp"
#include <QtCore/QDir>
#include <QtCore/QFileInfo>
#include <QtCore/QTemporaryFile>
#include "../std/target_os.hpp"
#if defined(OMIM_OS_WINDOWS)
#include "..... |
<commit_before>/*************************************************************************
*
* $RCSfile: glyphset.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2004-09-08 14:01:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<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>#include <QtGlobal>
#include <QFileInfo>
#include <QDir>
#include <QProcess>
#include <QtDebug>
void runModelMoc(const QString& header, const QStringList& arguments)
{
QFile inf(header);
if(!inf.open(QFile::ReadOnly))
qFatal("Could not open header file for reading");
QTextStream in... |
<commit_before>/// \file RNTupleDescriptorFmt.cxx
/// \ingroup NTuple ROOT7
/// \author Jakob Blomer <jblomer@cern.ch>
/// \date 2019-08-25
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/*****************************************... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 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
... |
<commit_before>/*
Copyright (C) 2006 by Andrew Robberts
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 of the License, or (at your option) any later vers... |
<commit_before>/* ---------------------------------------------------------------------
* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2016, Numenta, Inc. Unless you have an agreement
* with Numenta, Inc., for a separate license for this software code, the
* following terms and conditions app... |
<commit_before>/*************************************************************************
* Copyright (c) 2013 eProsima. All rights reserved.
*
* This copy of FastCdr is licensed to you under the terms described in the
* EPROSIMARTPS_LIBRARY_LICENSE file included in this distribution.
*
*************************... |
<commit_before>/**
* @file bin_file_collection.cc
* @author Stavros Papadopoulos <stavrosp@csail.mit.edu>
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2014 Stavros Papadopoulos <stavrosp@csail.mit.edu>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
<commit_before>/**
* @author Parikshit Ram (pram@cc.gatech.edu)
* @file nbc_main.cpp
*
* This program runs the Simple Naive Bayes Classifier.
*
* This classifier does parametric naive bayes classification assuming that the
* features are sampled from a Gaussian distribution.
*/
#include <mlpack/core.hpp>
#incl... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2000-2002 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. Red... |
<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) 2007-2016 musikcube team
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.