text stringlengths 54 60.6k |
|---|
<commit_before>#include <polar/core/log.h>
#include <polar/fs/local.h>
#include <polar/util/sdl.h>
namespace polar::core {
std::shared_ptr<logger> logger::instance;
void logger::msgbox(std::string title, std::string msg) {
#if defined(_WIN32)
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, title.data(), msg.data()... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may... |
<commit_before>// Copyright 2012, Google Inc.
// 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 ... |
<commit_before>/* Copyright 2015 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 <iostream>
#include <string>
#include <memory>
using namespace std;
static void test_unique() {
unique_ptr<string> films[5] = {
unique_ptr<string> (new string("Fowl Balls")),
unique_ptr<string> (new string("Duck Walks")),
unique_ptr<string> (new string("Chicken Runs... |
<commit_before>#include "tiramisu/tiramisu.h"
// This code is the Tiramisu implementation of the following Matlab code
// https://www.mathworks.com/examples/computer-vision/community/35625-lucas-kanade-method-example-2?s_tid=examples_p1_BOTH
using namespace tiramisu;
int main(int argc, char* argv[])
{
// Declare... |
<commit_before>//
// Bareflank Hypervisor
//
// Copyright (C) 2015 Assured Information Security, Inc.
// Author: Rian Quinn <quinnr@ainfosec.com>
// Author: Brendan Kerrigan <kerriganb@ainfosec.com>
// Author: Connor Davis <davisc@ainfosec.com>
//
// This library is free software; you can redistribute it a... |
<commit_before>/*
Copyright 2009 Larry Gritz and the other authors and contributors.
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 cop... |
<commit_before>#ifdef WIN32
#define UNICODE
#define _UNICODE
#include <stdlib.h>
#include "win32bindings.h"
#include "javasigar.h"
#ifdef __cplusplus
extern "C" {
#endif
JNIEXPORT jint JNICALL SIGAR_JNI(win32_RegistryKey_RegCloseKey)
(JNIEnv *, jclass, jlong hkey)
{
return RegCloseKey((HKEY)hkey);
}
JNIEXPORT ... |
<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>////////////////////////////////////////////////////////////////////////////////////////////////
///
/// @file
/// @author Kuba Sejdak
/// @date 21.08.2016
///
/// @copyright This file is a part of cosmos OS. All rights reserved.
///
////////////////////////////////////////////////////////////... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: WrappedIgnoreProperty.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2007-07-25 08:48:15 $
*
* The Contents of this f... |
<commit_before>// Copyright 2013 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 "chrome/browser/chrome_process_finder_win.h"
#include <shellapi.h>
#include <string>
#include "base/command_line.h"
#include "ba... |
<commit_before>// Copyright (c) 2012 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 "chrome/browser/chromeos/external_metrics.h"
#include <map>
#include <string>
#include "base/bind.h"
#include "base/files/fi... |
<commit_before>// Copyright (c) 2009 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 "chrome/browser/gtk/location_bar_view_gtk.h"
#include <string>
#include "app/resource_bundle.h"
#include "base/basictypes.h"... |
<commit_before>// Ylikuutio - A 3D game and simulation engine.
//
// Copyright (C) 2015-2021 Antti Nuortimo.
//
// 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>#include "colibri_ca.h"
#include "colibri_local_nav.h"
#include "colibri_action.h"
#include "PID_controller.h"
#include "global_planner.h"
#include "task_mgr.h"
#include <boost/bind.hpp>
#include "geometry_msgs/PoseStamped.h"
void PlannerCallback(planner *plannerObj, float* start_pos, flo... |
<commit_before>//
// refract/Element.cc
// librefract
//
// Created by Jiri Kratochvil on 18/05/15.
// Copyright (c) 2015 Apiary Inc. All rights reserved.
//
#include "Element.h"
#include <cassert>
#include <set>
#include <map>
#include <string>
#include "ComparableVisitor.h"
#include "TypeQueryVisitor.h"
#inclu... |
<commit_before>/*! \file
*/
#include "Grid.h"
Grid::Grid() {
}
// deconstructor
Grid::~Grid() {
}
// initialization
int Grid::reinit() {
for (int id=0; id<365; id++) {
//the following are the original algorithm, and
// modified as below by Yi (2013 Feb):
// double ampl;
// am... |
<commit_before>
#include <s2sinputstream.h>
#include <virtualhost.h>
#include <nanosoft/asyncdns.h>
#include <iostream>
using namespace std;
/**
* Конструктор потока
*/
S2SInputStream::S2SInputStream(XMPPServer *srv, int sock): XMPPStream(srv, sock)
{
}
/**
* Деструктор потока
*/
S2SInputStream::~S2SInputStream()
{
... |
<commit_before>#include "dsa_common.h"
#include "string.h"
#include <boost/filesystem.hpp>
#include "openssl/rand.h"
#include "module/default/simple_storage.h"
using namespace std;
namespace fs = boost::filesystem;
namespace dsa {
string_ string_from_file(string_ file_path) {
SimpleStorage simple_storage;
std::u... |
<commit_before>#include "include/writer.h"
#include <QFile>
#include <QTextStream>
#include <QDebug>
#include "include/abstractdata.h"
#include "filechecker.h"
using namespace QtCSV;
// Write data to .csv file
// @input:
// - filePath - string with absolute path to csv file
// - data - not empty data that should be... |
<commit_before>/***********************************************************************************************************************
* *
* SPLASH build system v0.2 ... |
<commit_before>#include "tarsnapaccount.h"
#include "debug.h"
#include "utils.h"
#include <QMessageBox>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QSettings>
#include <QTableWidget>
#define URL_ACTIVITY "https://www.tarsnap.com/manage.cgi?address=%1&password=%2&action=activity&format=csv"
#define U... |
<commit_before>#include <iostream>
#include "fetcher.hpp"
#include "tcp_connection.hpp"
boost::shared_ptr<tcp_connection> tcp_connection::create(
asio::io_service &io_service, unsigned int depth_limit)
{
return boost::shared_ptr<tcp_connection>(
new tcp_connection(io_service, depth_limit));
}
asio::ip::tcp::soc... |
<commit_before>#include "../include/base/CuteHMI.hpp"
namespace cutehmi {
namespace base {
CuteHMI & CuteHMI::Instance()
{
return *(InstancePtr().get());
}
void CuteHMI::Destroy()
{
InstancePtr().reset();
}
Project * CuteHMI::project() const
{
return m->project.get();
}
PopupBridge * CuteHMI::popupBridge() cons... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "docsumwriter.h"
#include "docsumstate.h"
#include "docsum_field_writer_state.h"
#include <vespa/searchlib/common/transport.h>
#include <vespa/searchlib/util/slime_output_raw_b... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#ifndef POSE_STORE_GUI_UTILS_HPP
#define POSE_STORE_GUI_UTILS_HPP
#define PARAM_STORE "Store"
#define PARAM_CLEAR "Clear old"
#define PARAM_POSE_NAME "Name:"
#include "renderer_robot_state.hpp"
using namespace std;
using namespace boost;
using namespace renderer_robot_state;
namespace renderer_robot_st... |
<commit_before>namespace mant {
namespace robotic {
class ParallelKinematicMachine3PUPS {
public:
inline explicit ParallelKinematicMachine3PUPS() noexcept;
inline arma::Row<double>::fixed<3> getMinimalActiveJointActuations() const noexcept;
inline void setMinimalActiveJointActuatio... |
<commit_before>//
// Copyright (c) 2017 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//
#include "win_dev_serial_native.h"
static const CLR_RT_MethodHandler method_lookup[] =
{
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
... |
<commit_before>#include <QString>
#include <QtTest>
#include <mainWindow.h>
class TestTest : public QObject
{
Q_OBJECT
public:
TestTest();
private Q_SLOTS:
void testCase1();
void testInit();
};
TestTest::TestTest()
{
}
void TestTest::testCase1()
{
QVERIFY2(true, "Failure");
}
//void TestTest::... |
<commit_before>/*!
* \page TravelChoiceTestSuite_cpp Command-Line Test to Demonstrate How To Test the Travel CCM Project
* \code
*/
// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// STL
#include <ss... |
<commit_before>/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>/**
* StimulusDisplay.cpp
*
* History:
* Dave Cox on ??/??/?? - Created.
* Paul Jankunas on 05/23/05 - Fixed spacing.
*
* Copyright 2005 MIT. All rights reserved.
*/
#include "OpenGLContextManager.h"
#include "Stimulus.h"
#include "StimulusNode.h"
#include "Utilities.h"
#include "StandardVaria... |
<commit_before>/**
* @file Cosa/Pins.cpp
* @version 1.0
*
* @section License
* Copyright (C) 2012, Mikael Patel
*
* 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
* versio... |
<commit_before>#include <algorithm>
#include <unordered_map>
#include <string>
#include <thread>
#include <iostream>
#include "message.h"
#include "message_pipe.h"
#include "registry.h"
#include "plugin_loader.h"
#include "required_messages.h"
#include "core_messages.h"
using namespace std;
static unordered_map<stri... |
<commit_before>/*
* Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice,... |
<commit_before>#include "stdafx.h"
#include "Problem2.h"
/*
https://projecteuler.net/problem=2
Even Fibonacci numbers
Problem 2
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By consid... |
<commit_before>/*
* TICKS algorithms
* Author: Frederic Devernay
* The goal of this algorithm is to compute the position of ticks on an axis.
* the ticks are positioned at multiples of 1 and 5 of powers of 10
*/
#include "ticks.h"
#include <cmath>
#include <cassert>
// tick_size_10
//
// for a range xmin,xmax draw... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// FILE: MCCDAQ.cpp
// PROJECT: Micro-Manager
// SUBSYSTEM: DeviceAdapters
//-----------------------------------------------------------------------------
// DESCRIPTION: Measurement Computing DAQ Ad... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>#include "union_storage.h"
#include "storage/memstorage.h"
#include "storage/capacitor.h"
#include "utils/exception.h"
#include "utils/locker.h"
#include "storage/page_manager.h"
#include <cassert>
#include <algorithm>
using namespace dariadb;
using namespace dariadb::storage;
class UnionStorage::Priva... |
<commit_before>/*
kopetepassword.cpp - Kopete Password
Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<commit_before>/* LibMary - C++ library for high-performance network servers
Copyright (C) 2011 Dmitry Shatrov
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
versi... |
<commit_before>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice 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 ... |
<commit_before>/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... |
<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>/*************************************************************************
*
* $RCSfile: storagehelper.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2004-11-26 16:36:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<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 "CReportDefinition.h"
#include "CReportBody.h"
#include "CReport.h"
#include "CCopasiContainer.h"
//////////////////////////////////////////////////
//
//class CReport
//
//////////////////////////////////////////////////
CReport::CReport():
CCopasiObject("Report", NULL, "Report", CCopasiO... |
<commit_before>/* Begin CVS Header
$Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/scan/CScanTask.cpp,v $
$Revision: 1.51 $
$Name: $
$Author: shoops $
$Date: 2005/04/25 18:16:13 $
End CVS Header */
/**
* CScanTask class.
*
* This class implements a scan task which is comprised of a
* ... |
<commit_before>/*
* Copyright (C) 2008-2012 J-P Nurmi <jpnurmi@gmail.com>
*
* This test is free, and not covered by LGPL license. There is no
* restriction applied to their modification, redistribution, using and so on.
* You can study them, modify them, use them in your own program - either
* completely or parti... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2015-2021 Ivan Gagis <igagis@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the... |
<commit_before>// Copyright (c) 2014, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/valid/validato... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium 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 3
of the License, or (a... |
<commit_before>
// Copyright (c) 2015-2016 niXman (i dot nixman dog gmail dot com). All
// rights reserved.
//
// This file is part of CSPROT(https://github.com/niXman/csprot) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.... |
<commit_before>/////////////////////////////////////////////////////////////////////////
// $Id: rdrand.cc 11496 2012-10-09 15:16:48Z sshwarts $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2012 The Bochs Project
//
// This library is free software; you can redistribu... |
<commit_before>#include "vboMesh.h"
#include "platform.h"
#define MAX_INDEX_VALUE 65535 // Maximum value of GLushort
int VboMesh::s_validGeneration = 0;
VboMesh::VboMesh() {
m_glVertexBuffer = 0;
m_glIndexBuffer = 0;
m_nVertices = 0;
m_nIndices = 0;
m_dirtyOffset = 0;
m_dirtySize = 0;
... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2016 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 met:
*
... |
<commit_before>// Parse test application
// Based upon: parsetest.cpp from xmlpp
// needed includes
#include <fstream>
#include <iostream>
//#include <ctime>
#include <cppdom/cppdom.h>
#include <testHelpers.h>
// namespace includes
using namespace cppdom;
using namespace std;
void process_xml( std::string filenam... |
<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>// $Header$
#include "StraightLineSetGL.h"
#include <Reve/StraightLineSet.h>
#include <Reve/GLUtilNS.h>
#include <TGLDrawFlags.h>
#ifdef WIN32
#include "Windows4root.h"
#endif
#include <GL/gl.h>
#include <GL/glu.h>
using namespace Reve;
//_____________________________________________________________... |
<commit_before>#include "stdafx.h"
#include "../elib/lang.h"
#include "common.h"
#include <io.h>
#include "elib.h"
PFN_NOTIFY_SYS g_fnNotifySys = NULL;
HWND ehwnd = NULL;
string epath;
extern bool CompileILByFile(const char* path, const char* savePath);
INT WINAPI NotifySys(INT nMsg, DWORD dwParam1, DWOR... |
<commit_before>// Implements file reader for an XML format
#include "xml_file_loader.h"
#include <algorithm>
#include <fstream>
#include <set>
#include <streambuf>
#include <boost/filesystem.hpp>
#include "agent.h"
#include "blob.h"
#include "context.h"
#include "cyc_std.h"
#include "env.h"
#include "error.h"
#inclu... |
<commit_before>#ifndef YQVMC_OBSERVER_PLAIN_HPP
#define YQVMC_OBSERVER_PLAIN_HPP
#include "impl_/mean_and_error.hpp"
#include <iostream>
namespace yqvmc {
template <class M,
class ACC = impl_::MeanAndErrorAcc<typename M::result_type> >
class PlainObserver {
public:
typedef M Measure;
typedef typename ... |
<commit_before>#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <openvibe/ov_directories.h>
#include <openvibe/ovCString.h>
#include <vrpn_Button.h>
#include <vrpn_Analog.h>
#include <vrpn_Connection.h>
#include <iostream>
#define _vrpn_peripheral_name_ "openvibe-vrpn@localhost"
// #define _DEBUG
::vrpn_Connec... |
<commit_before>#include <catch/catch.hpp>
#include <Transform/Referential.hpp>
using namespace obe::Transform;
using FlipAxis = Referential::FlipAxis;
TEST_CASE("Flipping Referentials should give correct results",
"[obe.Transform.Referential.flip]")
{
SECTION("Flipping both axis of known referentials")
{... |
<commit_before>#define DEBUG 1
/**
* File : E2.cpp
* Author : Kazune Takahashi
* Created : 6/17/2019, 12:04:14 AM
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <string>
#include <complex>
#include <tuple>
#include <queue>
#include <sta... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: updatedispatch.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: ihi $ $Date: 2007-11-23 14:11:04 $
*
* The Contents of this file a... |
<commit_before>/*************************************************************************
*
* $RCSfile: disposetimer.cxx,v $
*
* $Revision: 1.17 $
*
* last change: $Author: jb $ $Date: 2002-03-28 09:08:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <functional>
#define __STDC_LIMIT_MACROS
#include <stdint.h>
#define LOG_AT_W /* warning only */
extern "C" {
#include "stinger_core/xmalloc.h"
#include "stinger_core/stinger_error.h"
}
#include "rapidjson/document.... |
<commit_before>#ifndef INCLUDED_SROOK_IOS_BIFSTREAM_HPP
#define INCLUDED_SROOK_IOS_BIFSTREAM_HPP
#include<srook/config/noexcept_detection.hpp>
#include<srook/cstddef/byte.hpp>
#include<srook/config/require.hpp>
#include<srook/type_traits/is_callable.hpp>
#include<srook/type_traits/has_iterator.hpp>
#include<srook/optio... |
<commit_before>/*************************************************************************
*
* $RCSfile: AConnection.hxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: rt $ $Date: 2004-03-02 12:35:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>#define DEBUG 1
/**
* File : F2.cpp
* Author : Kazune Takahashi
* Created : 6/15/2020, 11:46:33 PM
* Powered by Visual Studio Code
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <chrono>
#include <climits>
#include <cmath>
#include <complex>
#include <cst... |
<commit_before>#include "game/apocresources/apocpalette.h"
#include "framework/palette.h"
#include "framework/data.h"
#include "framework/logger.h"
namespace OpenApoc
{
sp<Palette> loadApocPalette(Data &data, const UString fileName)
{
auto f = data.fs.open(fileName);
if (!f)
return nullptr;
auto numEntries = f.s... |
<commit_before>// Copyright (c) 2011 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.
// Get basic type definitions.
#define IPC_MESSAGE_IMPL
#include "content/common/content_message_generator.h"
// Generate constructors... |
<commit_before>// Copyright (c) 2012 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/string_util.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/extensions/extensio... |
<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 "chrome/browser/geolocation/wifi_data_provider_win.h"
#include <vector>
#include "base/scoped_ptr.h"
#include "base/string_u... |
<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>/*===================================================================
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>/*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>// Copyright 2016 Google Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the fo... |
<commit_before>#include "MLP.h"
MLP::MLP()
{
//ctor
}
MLP::MLP(int h1pNo, int h2pNo, double qtty, int maxIter, bool validationMethod)
{
//no of neurons in hidden layer
h1No = h1pNo;
h2No = h2pNo;
// param = qtty;
// this->dL = dL; //learning
// this->dT = dT; //testing
// this->decay = wDec... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Script Generator project on Qt Labs.
**
**... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef PRINT_HH_
#define PRINT_HH_
#include <boost/format.hpp>
#include <iostream>
inline void
apply_format(boost::format& fmt) {
}
template <typename A0, typename... Arest>
inline void
apply_format(boost::format& fmt, A0&& a0, Arest&&... arest) {
... |
<commit_before>#include "source-manager.hpp"
#include <pdal/Options.hpp>
#include <pdal/Reader.hpp>
#include <pdal/StageFactory.hpp>
#include <entwine/types/bbox.hpp>
#include <entwine/types/schema.hpp>
#include <entwine/types/simple-point-table.hpp>
#include <entwine/util/executor.hpp>
SourceManager::SourceManager(... |
<commit_before>/**************************************************************************
* Copyright 2014 Marcelo Sardelich <MSardelich@gmail.com>
*
* 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 ... |
<commit_before>#ifndef TCL_CONTROLLER_HPP
#define TCL_CONTROLLER_HPP
#include <string>
#include "CLDeviceInformation.hpp"
#include "CLInformation.hpp"
#include "CLSource.hpp"
#include "CLSourceArray.hpp"
#include "CLWorkGroupSettings.hpp"
#include "CLExecuteProperty.hpp"
#include "CLExecute.hpp"
#include "CLBuffer... |
<commit_before>#include "Arduino.h"
#include "AddressableLEDStrip.h"
// Create the LED strip object with the clock pin, serial data pin and the number of LEDs in the strip.
AddressableLEDStrip::AddressableLEDStrip(int clk_pin, int sdi_pin, int num_leds)
{
allow_out_of_bounds = false;
strip_len = num_leds;
// ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config.C ... |
<commit_before>/*
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashMatrix.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... |
<commit_before>/*************************************************************************
*
* $RCSfile: fmobjfac.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: kz $ $Date: 2003-12-11 12:17:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: annotsh.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2008-02-19 13:55:58 $
*
* The Contents of this file are made a... |
<commit_before>/// @file
/// @author uentity
/// @date 28.06.2018
/// @brief BS tree links serialization code
/// @copyright
/// 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 https://mozilla.org... |
<commit_before>/*
* File: other_updates.cpp
* Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)
*/
#include "common/sedna.h"
#include "tr/updates/updates.h"
#include "tr/executor/base/xptr_sequence.h"
#include "tr/mo/micro.h"
#include "tr/auth/auc.h"
#ifdef SE_EN... |
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*-
wizard.cpp
This file is part of Kleopatra, the KDE keymanager
Copyright (c) 2007 Klarälvdalens Datakonsult AB
Kleopatra is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by... |
<commit_before>/* Copyright 2009 Klarälvdalens Datakonsult AB
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; either version 2 of
the License or (at your option) version 3 or any later ve... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.