text stringlengths 54 60.6k |
|---|
<commit_before>#include "Epatest.hpp"
#include "src/set_manipulators.hpp"
#include "src/jplace_util.hpp"
#include "src/Range.hpp"
#include <vector>
#include <iostream>
using namespace std;
TEST(set_manipulators, find_collapse_equal_sequences)
{
// buildup
MSA msa;
msa.append(string("T"), string("AGCTAGCT"))... |
<commit_before>/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.1.1
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Copyright (c) 2013-2017 Niels Lohmann <http://... |
<commit_before>/**********************************************************\
This file is distributed under the MIT License.
See accompanying file LICENSE for details.
tests/SpeedMapTester.cpp
\**********************************************************/
#include "TestSettings.h"
#ifdef TEST_SPEED_M... |
<commit_before>#define DEBUG 1
/**
* File : B2.cpp
* Author : Kazune Takahashi
* Created : 11/24/2019, 3:04:17 PM
* 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>//----------------------------------*-C++-*----------------------------------//
/*!
* \file tstCommIndexer.cpp
* \author Stuart Slattery
* \date Wed May 25 12:36:14 2011
* \brief CommIndexer class unit tests.
*/
//---------------------------------------------------------------------------//
#i... |
<commit_before>
#ifdef SK_DEVELOPER
#include "SampleCode.h"
#include "SkOSMenu.h"
#include "DebuggerViews.h"
static const char gIsDebuggerQuery[] = "is-debugger";
class DebuggerView : public SampleView {
public:
DebuggerView(const char* data, size_t size) {
fData.append(size, data);
fCommandsV... |
<commit_before>#include <ros/ros.h>
#include "arduino.h"
//#include <core_msgs/Odom.h>
#include <buzzmobile/CarPose.h>
//#include <core_msgs/MotionCommand.h>
#include <std_msgs/Bool.h>
using namespace std;
const double ticksPerRev = 3600;
const double wheelCirc = 2.198;
ros::Publisher encoder_pub;
ros::Subscriber co... |
<commit_before>/*
* Copyright (C) 2010 Stephen F. Booth <me@sbooth.org>
* 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... |
<commit_before>//
// MapData
// InternetMap
//
#include "MapData.hpp"
#include "Node.hpp"
#include "DisplayLines.hpp"
#include "Connection.hpp"
#include "IndexBox.hpp"
#include "MapDisplay.hpp"
#include <sstream>
#include <stdlib.h>
// TODO: figure out how to do this right
#ifdef ANDROID
#include "jsoncpp/json.h"
#... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkDirectory.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Cop... |
<commit_before>/*
* Copyright 2015 Cloudius Systems
*/
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE core
#include <boost/test/included/unit_test.hpp>
#include "core/sstring.hh"
#include "database.hh"
static sstring some_keyspace("ks");
static sstring some_column_family("cf");
static atomic_cell::one make... |
<commit_before>/******************************************************************************
This source file is part of the tomviz project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
... |
<commit_before>/*
* Copyright 2013 The Imaging Source Europe GmbH
*
* 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 b... |
<commit_before>#include "AssimpSceneImporter.hpp"
#include "Model.hpp"
#include "ImportedScene.hpp"
#include "../inanity/File.hpp"
#include "../inanity/deps/assimp/repo/include/assimp/Importer.hpp"
#include "../inanity/deps/assimp/repo/include/assimp/scene.h"
#include "../inanity/deps/assimp/repo/include/assimp/mesh.h"... |
<commit_before>#include <experimental/filesystem>
#include <deque>
#include <algorithm>
namespace Baikal
{
namespace fs = std::experimental::filesystem;
inline bool is_dot(fs::path const &path)
{
std::string const &filename = path.string();
return filename.size() == 1 && filename[0] == '.'... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkVOLImageIOTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCop... |
<commit_before>#pragma once
#pragma GCC diagnostic push
#ifdef __clang__
#pragma GCC diagnostic ignored "-Wdocumentation"
#pragma GCC diagnostic ignored "-Wdocumentation-unknown-command"
#pragma GCC diagnostic ignored "-Wold-style-cast"
#pragma GCC diagnostic ignored "-Wshadow"
#endif
// #include <range/v3/core.hpp>
... |
<commit_before>#include "CSceneEffectManager.h"
#include "CSceneManager.h"
#include "CTextureLoader.h"
#include "CShaderLoader.h"
#include <algorithm>
CSceneEffectManager::SRenderPass::SRenderPass()
: Pass(ERenderPass::Default)
{}
bool const CSceneEffectManager::SRenderPass::operator == (SRenderPass ... |
<commit_before>// Time: O(n^2)
// Space: O(n)
class Solution {
public:
/**
* @param A an integer array
* @param start an integer
* @param end an integer
* @return the number of possible answer
*/
int subarraySumII(vector<int>& A, int start, int end) {
// sum_from_start[i] deno... |
<commit_before><commit_msg>Add the ARM variant<commit_after><|endoftext|> |
<commit_before>// Time: O(nlogn)
// Space: O(n)
// Binary search solution.
class Solution {
public:
/**
* @param A an integer array
* @param start an integer
* @param end an integer
* @return the number of possible answer
*/
int subarraySumII(vector<int>& A, int start, int end) {
... |
<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>/*
* Arithmetic for prime fields GF(p)
*
* (C) 2007 Martin Doering, Christoph Ludwig, Falko Strenzke
* 2008-2010 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/gfp_element.h>
#include <botan/numthry.h>
#include <botan/internal/def_powm.h>
#include <botan/internal/... |
<commit_before>//
// Created by vrosca on 1/21/17.
//
#include "ProviderFactory.hpp"
#include "Providers/ArrivalsProvider.hpp"
#include "Providers/DeparturesProvider.hpp"
#include "Providers/AutocompleteProvider.hpp"
#include "Providers/ErrorProvider.hpp"
ProviderFactory* ProviderFactory::instance = nullptr;
Provide... |
<commit_before>/**
* @file ct2ctml.cpp
*
* $Author$
* $Revision$
* $Date$
*/
// Copyright 2001 California Institute of Technology
// turn off warnings under Windows
#ifdef WIN32
#pragma warning(disable:4786)
#pragma warning(disable:4503)
#endif
#include "ct_defs.h"
#include "ctexceptions.h"
#include <fstream>... |
<commit_before>#include <QRegExp>
#include <QStringList>
#include "HostMask"
#include "Connection"
using namespace QIRC;
/// \brief Construct without server information
Connection::Connection() :
m_currentServer("127.0.0.1", 6667), m_socket(NULL),
m_serverPassword(""), m_connected(false),
m_ident("QIRC"), m_ni... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkReflectionFilter.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
... |
<commit_before>// $Id$
//**************************************************************************
//* This file is property of and copyright by the ALICE HLT Project *
//* ALICE Experiment at CERN, All rights reserved. *
//* ... |
<commit_before>#include <iostream>
#include <string>
#include "consoleui.h"
#include "scientist.h"
#include <iomanip>
using namespace std;
ConsoleUI::ConsoleUI()
{
_service.getScientists(); // gets information from file so it's used from the beginning.
}
// Should not contain logic for individual commands, tha... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkPanelMark.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Th... |
<commit_before>//
// MapData
// InternetMap
//
#include "MapData.hpp"
#include "Node.hpp"
#include "DisplayLines.hpp"
#include "Connection.hpp"
#include "IndexBox.hpp"
#include "MapDisplay.hpp"
#include <sstream>
#include <stdlib.h>
#include <fstream>
#include <assert.h>
// TODO: figure out how to do this right
#if... |
<commit_before>
#include <iostream>
#include <string>
#include <cstdlib>
#define GUEST 0
#define ADMIN 1
#define BUYER 2
#define SELLER 3
#define FULL 4
int userType;
using namespace std;
int main()
{
cout << "*****************************************************" << endl;
cout << "Welcome to the Ticket ... |
<commit_before>/**
* Helpers used for binding method pointers to an instance if object.
* Such bound function may be used as C-callback function.
*
* Adapted and extended solution described here:
* http://p-nand-q.com/programming/cplusplus/using_member_functions_with_c_function_pointers.html
*
* TODO: add suppor... |
<commit_before>// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#ifndef ROSETTASTONE_CARDS_HPP
#define ROSETTASTONE_CA... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cachedprimitivebase.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2006-09-17 03:24:53 $
*
* The Contents of this fi... |
<commit_before>/// \file
/// \ingroup tutorial_tree
/// \notebook
/// This example illustrates how to make a Tree from variables or arrays
/// in a C struct - without a dictionary, by creating the branches for
/// builtin types (int, float, double) and arrays explicitly.
/// See tree2a.C for the same example using a cl... |
<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/autofill/autofill_manager.h"
#include <string>
#include "base/command_line.h"
#include "chrome/browser/autof... |
<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_util.h"
#include "base/path_service.h"
#include "base/string_util.h"
#include "chrome/app/chrome_dll_resource.... |
<commit_before>// Copyright (c) 2006-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/extensions/extension_view.h"
#include "chrome/browser/extensions/extension.h"
#include "chrome/browser/e... |
<commit_before>#include <ruby.h>
#include <re2/re2.h>
VALUE re2_mRE2;
VALUE FullMatch(VALUE self, VALUE text, VALUE re)
{
if (RE2::FullMatch(StringValuePtr(text), StringValuePtr(re))) {
return Qtrue;
} else {
return Qfalse;
}
}
VALUE PartialMatch(VALUE self, VALUE text, VALUE re)
{
if (RE2::PartialMa... |
<commit_before>// Copyright 2013-2014 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless re... |
<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 2011 Dennis Nienhüser <earthwings@gentoo.org>
//
#include "logger.h... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before><commit_msg>cppcheck: reduce scope of var in tools/ poly.cxx<commit_after><|endoftext|> |
<commit_before>//===- tools/seec-view/SourceEditor/SourceEditor.cpp ----------------------===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
//... |
<commit_before>#include "video_sampler.h"
#include <c10/util/Logging.h>
#include "util.h"
// www.ffmpeg.org/doxygen/0.5/swscale-example_8c-source.html
namespace ffmpeg {
namespace {
// Setup the data pointers and linesizes based on the specified image
// parameters and the provided array. This sets up "planes" to p... |
<commit_before>#include <StdAfx.h>
#include <UI/Controls/PaneHeader/PaneHeader.h>
#include <UI/UIFunctions.h>
#include <core/utility/strings.h>
#include <core/utility/output.h>
namespace controls
{
void PaneHeader::Initialize(_In_ CWnd* pParent, _In_opt_ HDC hdc, _In_ UINT nid)
{
if (pParent) m_hWndParent = pParen... |
<commit_before>/// \file
/// \ingroup tutorial_tdataframe
/// \notebook
/// This tutorial shows how to write out datasets in ROOT formatusing the TDataFrame
/// \macro_code
///
/// \date April 2017
/// \author Danilo Piparo
#include "TFile.h"
#include "TH1F.h"
#include "TTree.h"
#include "ROOT/TDataFrame.hxx"
// A s... |
<commit_before>/*
* This file is part of the leaf3d project.
*
* Copyright 2014-2015 Emanuele Bertoldi. All rights reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANT... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rootitemcontainer.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-09 00:46:29 $
*
* The Contents of this file ... |
<commit_before>/*************************************************************************
*
* $RCSfile: toolboxfactory.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: kz $ $Date: 2005-03-01 19:47:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>#pragma once
// We use ostream for logging purposes.
#include <iostream> // NOLINT(readability/streams)
#include <limits>
#include <string>
#include <type_traits>
#include "base/not_null.hpp"
#include "serialization/quantities.pb.h"
namespace principia {
using base::not_null;
namespace quantities ... |
<commit_before>//===- FileCheck.cpp - Check that File's Contents match what is expected --===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2021 Intel Corporation. All Rights Reserved.
//#cmake:add-file ../../../src/dispatcher.cpp
#include <unit-tests/test.h>
#include <common/utilities/time/timer.h>
#include <src/concurrency.h>
#include <algorithm>
#include <vecto... |
<commit_before>/*
*
* Copyright (c) 2016 Nest Labs, Inc.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
<commit_before>#include <iostream>
#include <cstdio>
#include <map>
#include <vector>
#include <deque>
#include <list>
#include <array>
#include <string>
#include <sstream>
#include <algorithm>
#include <random>
const int field_size = 32;
const int stone_size = 8;
const int empty_val = 256;
const int filled_val = 257;... |
<commit_before>#include "util/bitmap.h"
#include "network_character.h"
#include "object.h"
#include "object_messages.h"
#include "animation.h"
#include "util/font.h"
#include "util/funcs.h"
#include "factory/font_render.h"
#include "nameplacer.h"
#include "globals.h"
#include "world.h"
#include <vector>
#include <math.... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// This is a test file for the function decomposeHomography contributed to OpenCV
// by Samson Yilma.
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copyin... |
<commit_before>/*
* start.hpp
* ChessPlusPlus
*
* Created by Ronak Gajrawala on 12/01/13.
* Copyright (c) 2013 Ronak Gajrawala. All rights reserved.
*/
#ifndef ChessPlusPlus_start_hpp
#define ChessPlusPlus_start_hpp
/**
* The StartPage class.
* The main starting page or menu is created and handled here.
... |
<commit_before>/****************** <VPR heading BEGIN do not edit this line> *****************
*
* VR Juggler Portable Runtime
*
* Original Authors:
* Allen Bierbaum, Patrick Hartling, Kevin Meinert, Carolina Cruz-Neira
*
* -----------------------------------------------------------------
* File: $RC... |
<commit_before>#ifndef JOINT_DEVKIT_STACKSTORAGE_HPP
#define JOINT_DEVKIT_STACKSTORAGE_HPP
#include <joint/devkit/Holder.hpp>
#include <array>
namespace joint {
namespace devkit
{
template < typename T_ >
T_ AlignUp(T_ value, T_ alignment)
{ return alignment * ((value + alignment - 1) / alignment); }
templat... |
<commit_before><commit_msg>INTEGRATION: CWS ooo19126 (1.1.1.1.110); FILE MERGED 2005/09/05 18:43:19 rt 1.1.1.1.110.1: #i54170# Change license header: remove SISSL<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (C) 2008 Apple 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, this list ... |
<commit_before>/*
* Copyright 2014 The Imaging Source Europe GmbH
*
* 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 b... |
<commit_before>/*! \file RendererApi.cpp
* \author Jared Hoberock
* \brief Implementation of RendererApi class.
*/
#include "RendererApi.h"
#include "PathDebugRenderer.h"
#include "EnergyRedistributionRenderer.h"
#include "MetropolisRenderer.h"
#include "DebugRenderer.h"
#include "MultiStageMetropolisRenderer.h"
... |
<commit_before>#include "PlayerAnimation.hpp"
PlayerAnimation::PlayerAnimation(Ogre::SceneManager *sceneMgr, Ogre::Entity *entity) :
mSceneMgr(sceneMgr) {
// Controle bones individualy
Ogre::Bone* bHead = entity->getSkeleton()->getBone("HEAD");
bHead->setManuallyControlled(true);
// Setup the animation
Ogre:... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkLargeImageWriteReadTest.cxx
Language: C++
Date: $Date$xgoto-l
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reser... |
<commit_before>#include <osgProducer/EventAdapter>
using namespace osgProducer;
// default to no mouse buttons being pressed.
unsigned int EventAdapter::_s_accumulatedButtonMask = 0;
int EventAdapter::_s_button = 0;
int EventAdapter::_s_modKeyMask = 0;
float EventAdapter::_s_Xmin = 0;
float EventAdapter::_s_Xmax = 1... |
<commit_before>#include "PoiActionRunner.h"
PoiActionRunner::PoiActionRunner(PoiTimer& ptimer, LogLevel logLevel) :
_currentAction(NO_ACTION), _currentSyncId(0), _currentScene(0),
_imageCache(_flashMemory.getSizeOfImageSection(), logLevel),
_playHandler(_imageCache), _fadeHandler(_imageCache),
_progHandler(_pl... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>#include "ActivityWidget.h"
#include "ValidatorAdapter.h"
#include <QLabel>
#include <QLineEdit>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QSplitter>
#include <QFontMetrics>
#include <QVector>
#include <Calculator.h>
#include <Representer.h>
#include <QDebug>
ActivityWidget::ActivityWidg... |
<commit_before>// -*- mode: c++; indent-tabs-mode: nil; tab-width:2 -*-
#include "ug_sampling_bias.h"
#include <iostream>
#include <boost/foreach.hpp>
#include "moses/Util.h"
#ifndef NO_MOSES
#include "moses/Timer.h"
#endif
// #ifdef WITH_MMT_BIAS_CLIENT
#include "ug_http_client.h"
// #endif
namespace sapt
{
using... |
<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 tha... |
<commit_before>/******************************************************************************
** Copyright (c) 2014-2015, Intel Corporation **
** All rights reserved. **
** ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pkgcontent.hxx,v $
*
* $Revision: 1.30 $
*
* last change: $Author: ihi $ $Date: 2007-06-05 18:13:00 $
*
* The Contents of this file are m... |
<commit_before>//===- llvm/unittest/VMCore/InstructionsTest.cpp - Instructions unit tests ===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*************************************************************************
* UrBackup - Client/Server backup system
* Copyright (C) 2011-2016 Martin Raiber
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public Licen... |
<commit_before>// Copyright Paul Dardeau, SwampBits LLC 2014
// BSD License
#include <cstdio>
#include <cstdlib>
#include "ThreadPoolQueue.h"
#include "ThreadingFactory.h"
#include "ConditionVariable.h"
#include "MutexLock.h"
#include "Logger.h"
#include "BasicException.h"
using namespace chaudiere;
//*************... |
<commit_before>/******************************************************************************\
* File: lexer.cpp
* Purpose: Implementation of lexer classes
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 1998-2009 Anton van Wezenbeek
* All rights are reserved. Reproduction i... |
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2010, 2011, 2012, 2013, 2014
Raffaello D. Di Napoli
This file is part of Application-Building Components (henceforth referred to as ABC).
ABC is free software: you can redistribute it and/or modify it under the terms o... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>/*
* Copyright (c) 2003-2005 The Regents of The University of Michigan
* Copyright (c) 2007 MIPS Technologies, 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: redistri... |
<commit_before>/* ----------------------------------------------------------------------
* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2019, David McDougall
* The following terms and conditions apply:
*
* This program is free software: you can redistribute it and/or modify
* it under the te... |
<commit_before>// simple server
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#ifdef __cplusplus
#define __STDC_FORMAT_MACROS
#endif
#include "sgp_server.h"
#include <fcntl.h>
#include <getopt.h>
#include <limits.h>
#include <unistd.h>
#include "sgp_protocol.h" // for SGPProtocol, etc
#ifndef GEP_LITE
#include ... |
<commit_before>#include <ValueElement.h>
#include <IO.h>
#include <iostream>
using V = Value<float, 3>;
int main(){
V a({{1.1,1.5}, {2.2,2.8}, {3.9}});
V b({{3,2}, {1,2} ,{3,3}});
std::cout << "a : " << a << std::endl;
std::cout << "b : " << b << std::endl;
std::cout << "a+1: " << (a+1) << std::endl;
s... |
<commit_before>/*
** Author(s):
** - Cedric GESTES <gestes@aldebaran-robotics.com>
**
** Copyright (C) 2010 Aldebaran Robotics
*/
#include <iostream>
#include <gtest/gtest.h>
#include <protobuf/message.h>
#include <protobuf/dynamic_message.h>
#include <protobuf/descriptor.h>
// // Same as the last block, but do ... |
<commit_before>#include <stan/math/prim.hpp>
#include <gtest/gtest.h>
#include <cmath>
#include <limits>
#include <stdexcept>
template <typename T>
void test_quantile_double() {
using stan::math::index_type_t;
using stan::math::quantile;
T c(1);
c[0] = 1.7;
EXPECT_EQ(quantile(c, 0), 1.7);
EXPECT_EQ(quanti... |
<commit_before>//=====================================================================//
/*! @file
@brief R8C MFRC522・メイン
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
//=======... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: OOXMLPropertySetImpl.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hbrinkm $ $Date: 2007-03-06 09:51:37 $
*
* The Contents of th... |
<commit_before>//=====================================================================//
/*! @file
@brief RX65N/RX72N 計算機サンプル
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2020 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
/... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLRectangleMembersHandler.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2004-09-08 14:59:48 $
*
* The Contents of this file are made available subject to the terms of
* either of t... |
<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/basictypes.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "b... |
<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_util.h"
#include "base/path_service.h"
#include "base/perftimer.h"
#include "base/time.h"
#include "chrome/app... |
<commit_before>//#include "NFComm/NFCore/NFPlatform.h"
/*
int main()
{
NFIDataNoSqlModule* pModule = new NFCDataNoSqlModule();
pModule->Init();
int nRet = -1;
//ķʺ
nRet = pModule->AddAccountInfo("test1", "123456");
//ȥķȷʺ
nRet = pModule->ConfirmAccountInfo("test1", "123456");
//Ϸȷʺ
nRet = pModule->H... |
<commit_before>/* Copyright 2019 Andrei Khodko
*
* 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... |
<commit_before>// ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/* -*- mode: c++; indent-tabs-mode: nil -*- */
/* -------------------------------------------------------------------------
ATS
License: see $ATS_DIR/COPYRIGHT
Author: Ethan Coon
Interface for a StrongMPC which uses a preconditioner in which the
block-diagonal cell-local matrix is dense... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.