text stringlengths 54 60.6k |
|---|
<commit_before>/**
*
* Graph
*
* Undirected, weighted graph
* https://github.com/kdzlvaids/algorithm_and_practice-pknu-2016
*
*/
#ifndef ALGORITHM_GRAPH_HPP_
#define ALGORITHM_GRAPH_HPP_ 1
/** Includes */
#include <cstddef> /** size_t definition */
#include <vector> /** Containers */
#include <ma... |
<commit_before>/*************************************************************************
*
* $RCSfile: langselect.cxx,v $
*
* $Revision: 1.13 $
* last change: $Author: obo $ $Date: 2005-01-27 12:27:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*
UselessMine
Copyright (C) 2014 Vladimir "allejo" Jimenez
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 3 of the License, or
(at your option) any... |
<commit_before>#pragma once
#include <deque>
#include <memory>
#include <iostream>
#include <map>
#include <utility>
template <typename T>
class MessageBusProxy;
namespace {
using Cursor = long unsigned int;
}
template <typename MessageType>
class MessageBus {
public:
MessageBus()=default;
void push(const ... |
<commit_before>//===-- Internalize.cpp - Mark functions internal -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>//===-- Internalize.cpp - Mark functions internal -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>//
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2018 Michael Fink
//
/// \file GeoTagTool\MainFrame.cpp GeoTagTool main frame
//
#include "stdafx.h"
#include "res/Ribbon.h"
#include "resource.h"
#include "AboutDlg.hpp"
#include "GeoTagToolView.hpp"
#include "MainFrame.hpp"
#i... |
<commit_before>#include <YCommon/Headers/stdincludes.h>
#include "AtomicQueue.h"
#include <string>
#include <YCommon/Headers/AtomicNumberMask.h>
#include <YCommon/Headers/Atomics.h>
namespace YCommon { namespace YContainers {
AtomicQueue::AtomicQueue()
: mBuffer(NULL),
mItemSize(0),
mNumItems(0),
... |
<commit_before>///
/// @file P2_mpi.cpp
/// @brief 2nd partial sieve function.
/// P2(x, y) counts the numbers <= x that have exactly 2 prime
/// factors each exceeding the a-th prime.
///
/// Copyright (C) 2016 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. ... |
<commit_before>/*
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by Disa Mhembere (disa@jhu.edu)
*
* This file is part of FlashGraph.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obta... |
<commit_before><commit_msg>119 solved<commit_after><|endoftext|> |
<commit_before>// Copyright 2015-2020 Elviss Strazdins. All rights reserved.
#include "../core/Setup.h"
#include <algorithm>
#include <fstream>
#if defined(_WIN32)
# pragma push_macro("WIN32_LEAN_AND_MEAN")
# pragma push_macro("NOMINMAX")
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# ifn... |
<commit_before>typedef unsigned int size_t;
void clean();
void funcTest1()
{
throw ("my exception!",546); // BAD
}
void DllMain()
{
try { throw "my exception!"; } // BAD
catch (...) { }
}
void funcTest2()
{
try { throw "my exception!"; } // GOOD
catch (...) { clean(); }
}
void TestFunc()
{
funcTest1(... |
<commit_before>/*
* Copyright 2018 The Cartographer Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
<commit_before>#include <osg/Notify>
#include <string>
using namespace std;
osg::NotifySeverity osg::g_NotifyLevel = osg::NOTICE;
std::auto_ptr<ofstream> osg::g_NotifyNulStream;
bool osg::g_NotifyInit = false;
void osg::setNotifyLevel(osg::NotifySeverity severity)
{
osg::initNotifyLevel();
g_NotifyLevel = s... |
<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>/*
* C S O U N D V S T
*
* A VST plugin version of Csound, with Python scripting.
*
* L I C E N S E
*
* This software 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
* ... |
<commit_before>/*
syslog.cpp
:-)
*/
/* Revision: 1.14 25.07.2001 $ */
/*
Modify:
25.07.2001 SVS
- VC
24.07.2001 SVS
+ (IsDebuggerPresent),
LOG- (OutputDebugString)
! 98- .
04.07.2001 SVS
! LOG- :-)
+
27.06.2001 SVS
! LOG- :-)
%FAR%\$Log ... |
<commit_before>#include <osg/Notify>
#include <string>
using namespace std;
osg::NotifySeverity osg::g_NotifyLevel = osg::NOTICE;
std::auto_ptr<ofstream> osg::g_NotifyNulStream;
bool osg::g_NotifyInit = false;
void osg::setNotifyLevel(osg::NotifySeverity severity)
{
osg::initNotifyLevel();
g_NotifyLevel = s... |
<commit_before>/*
* C S O U N D V S T
*
* A VST plugin version of Csound, with Python scripting.
*
* L I C E N S E
*
* This software 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
* ... |
<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/extensions/extension_apitest.h"
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, FileAPI) {
ASSERT_TRUE(RunExtensio... |
<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/extensions/extension_apitest.h"
// TODO(jcampan): http://crbug.com/27216 disabled because failing.
IN_PROC_BR... |
<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/blocked_popup_container_view_gtk.h"
#include "app/gfx/gtk_util.h"
#include "app/l10n_util.h"
#include "b... |
<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.
// TODO(jorlow): Reenable when https://bugs.webkit.org/show_bug.cgi?id=28094
// is fixed. Until then, this will cause cr... |
<commit_before>/** \copyright
* Copyright (c) 2017, Balazs Racz
* 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... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2008, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// ... |
<commit_before>/*************************************************************************
*
* $RCSfile: SchWhichPairs.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: bm $ $Date: 2003-12-09 16:30:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<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/chromeos/browser_notification_observers.h"
#include "chrome/browser/chrome_thread.h"
#include "chrome/common/... |
<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/extensions/sandboxed_extension_unpacker.h"
#include <set>
#include "base/base64.h"
#include "base/crypto/sig... |
<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.
#include "chrome/browser/ui/touch/frame/touch_browser_frame_view.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/brow... |
<commit_before>/**
* File : F.cpp
* Author : Kazune Takahashi
* Created : 11/25/2018, 12:58:28 PM
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <strin... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
... |
<commit_before>/*===================================================================
BlueBerry Platform
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 implied warranty of MERCHANTABI... |
<commit_before>/* -------------------------------------------------------------------------- *
* SimTK Core: SimTK Simbody(tm) *
* -------------------------------------------------------------------------- *
* This is part of the SimTK Core biosimulation toolkit originati... |
<commit_before>/*
* Copyright (C) 2009, 2010, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
/**
** \fi... |
<commit_before>/*
Copyright (c) 2007, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/*
Copyright (c) 2009, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<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/plugin_updater.h"
#include <string>
#include <vector>
#include "base/path_service.h"
#include "base/scoped_p... |
<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 "chrome/browser/ssl/ssl_policy.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/base_switch... |
<commit_before>#ifndef PROTOCOL_MESSAGES_HPP_
#define PROTOCOL_MESSAGES_HPP_
#include <cstdint>
namespace protocol {
namespace message {
struct heartbeat_message_t {
enum { ID = 0x00 };
std::uint8_t seq;
} __attribute__((packed));
struct log_message_t {
enum { ID = 0x01 };
char data[100];
} __attribute__(... |
<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.
// This file provides the embedder's side of random webkit glue functions.
#include "build/build_config.h"
#if defined(OS_WIN)
#inclu... |
<commit_before>#ifndef INCLUDED_U5E_UTF8_ITERATOR
#define INCLUDED_U5E_UTF8_ITERATOR
#include <cmath>
#include <iterator>
#include <u5e/utf8_utils.hpp>
#include <u5e/codepoint.hpp>
#include <u5e/iterator_assertion.hpp>
namespace u5e {
/**
* u5e::utf8_iterator
*
* Iterates over codepoints on utf8 data.
... |
<commit_before>//----------------------------------------------------------------------------
/// \file variant_tree.hpp
//----------------------------------------------------------------------------
/// \brief This file contains a tree class that can hold variant values.
//--------------------------------------------... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/initfiles/p9_vas_scom.C $ ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/nest/p9_pcie_scominit.H $ ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_pm_pfet_control.C $ ... |
<commit_before>/*
This file is part of Akregator.
Copyright (C) 2008 Frank Osterfeld <osterfeld@kde.org>
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 L... |
<commit_before>#include "akregatorconfig.h"
#include "settings_advanced.h"
#include "storagefactory.h"
#include "storagefactoryregistry.h"
#include <QPushButton>
#include <QStringList>
#include <QWidget>
#include <kcombobox.h>
namespace Akregator {
SettingsAdvanced::SettingsAdvanced(QWidget* parent, const char* nam... |
<commit_before>#ifndef ENUMERABLE__H__
#define ENUMERABLE__H__
#include "iterbase.hpp"
#include <utility>
#include <iterator>
#include <functional>
#include <initializer_list>
// enumerate functionality for python-style for-each enumerate loops
// for (auto e : enumerate(vec)) {
// std::cout << e.index
// ... |
<commit_before>#include <iostream>
void distinct_permute(
int main() {
}
<commit_msg>combinatorics: Removed all distinct permutation generator - missing implementation.<commit_after><|endoftext|> |
<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>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: newppdlg.cxx,v $
* $Revision: 1.... |
<commit_before>#include "../../../shared/generated/cpp/MediaplayerBase.h"
#include "net/INetRequest.h"
#include "RhoFile.h"
namespace rho {
using namespace apiGenerator;
std::wstring s2ws(const std::string& s)
{
int len;
int slength = (int)s.length() + 1;
len = MultiByteToWideChar(CP_ACP, 0, s.c_str(), s... |
<commit_before>/*
* Copyright 2013 Jeremie Roy. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include "common.h"
#include "bgfx_utils.h"
#include <bx/timer.h>
#include <bx/string.h>
#include <bx/math.h>
#include "font/font_manager.h"
#include "font/text_buffer_manager.... |
<commit_before>#include <tiramisu/tiramisu.h>
#include "configure.h"
using namespace tiramisu;
expr mixf(expr x, expr y, expr a)
{
return x * (1 - a) + y * a;
}
int main()
{
init("resize_conv_block");
// -------------------------------------------------------
// Layer I
// ----------------------... |
<commit_before>///
/// @file primecount.cpp
/// @brief Function definitions of primecount.hpp
///
/// Copyright (C) 2019 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primecount.hpp>
#include <primecount-... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: browserview.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: kz $ $Date: 2006-12-13 11:56:48 $
*
* The Contents of this file are m... |
<commit_before>//
// Created by haohanwang on 2/2/16.
//
#include <limits>
#include <stdexcept>
#ifdef BAZEL
#include "Models/MultiPopLasso.hpp"
#else
#include "MultiPopLasso.hpp"
#endif
using namespace std;
using namespace Eigen;
void MultiPopLasso::setXY(MatrixXd m, MatrixXd n) {
X = m;
y = n;
}
void Mul... |
<commit_before>//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2021 Ryo Suzuki
// Copyright (c) 2016-2021 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/EngineLog.hpp>... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2012-2013, SimQuest Solutions 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 a copy of the License at
//
// http://www.apac... |
<commit_before>
#define TRACE_SYMPLECTIC_PARTITIONED_RUNGE_KUTTA_INTEGRATOR
#include "integrators/symplectic_partitioned_runge_kutta_integrator.hpp"
#include <algorithm>
#include <string>
#include <vector>
#include "geometry/sign.hpp"
#include "glog/logging.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#incl... |
<commit_before>#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "pearson.h"
const int T_MAX = 10000;
Formura_Navigator navi;
float frand() {
return rand() / float(RAND_MAX);
}
void init() {
for(int y = navi.lower_y; y < navi.upper_y; ++y) {
for(int x = navi.lower_x; x < nav... |
<commit_before>/*
* File: RetroboxSystem.cpp
* Author: matthieu
*
* Created on 29 novembre 2014, 03:15
*/
#include "RecalboxSystem.h"
#include <stdlib.h>
#include <sys/statvfs.h>
#include <sstream>
#include "Settings.h"
#include <iostream>
#include <fstream>
#include "Log.h"
#include "HttpReq.h"
#include "Au... |
<commit_before>/*-----------------------------------------------------------------------------
This source file is a part of Hopsan
Copyright (c) 2009 to present year, Hopsan Group
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as pu... |
<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 Matthias Kretz <kretz@kde.org>
Permission to use, copy, modify, and distribute this software
and its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that the copyrigh... |
<commit_before>/*
* W.J. van der Laan 2011-2012
* The SLIMCoin Developers 2013
*/
#include "bitcoingui.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "guiutil.h"
#include "init.h"
#include "ui_interface.h"
#include "qtipcserver.h"
#include <QApplication>
#include <QMessageB... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
//
// For more information, please see: http://www.nektar.info
//
// The MIT License
//
// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
// Department of Aeronautics, Imperial College London (UK)... |
<commit_before>#include <sys/resource.h>
#include <sys/time.h>
#include <fstream>
#include <iostream>
#include <memory>
#include <string>
#include <boost/program_options.hpp>
#include "HyperscanEngine.h"
#include "PcapSource.h"
#include "PCRE2Engine.h"
#include "regexbench.h"
#include "RE2Engine.h"
#include "REmatch... |
<commit_before>//=======================================================================
// Copyright (c) 2013-2018 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/lib/p9_common_poweronoff.H ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config.H ... |
<commit_before>#include "serializer.h"
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <limits>
namespace rapscallion {
void serializer<std::uint_least64_t>::write(Serializer& s, std::uint_least64_t value) {
while (value >= 0x80) {
s.addByte((uint8_t)(value & 0x7F) | 0x80);
value >>= 7;
}
... |
<commit_before>//
// sio_packet.cpp
//
// Created by Melo Yao on 3/22/15.
//
#include "sio_packet.h"
#include <rapidjson/document.h>
#include <rapidjson/encodedstream.h>
#include <rapidjson/writer.h>
#include <cassert>
namespace sio
{
using namespace rapidjson;
using namespace std;
void accept_message(me... |
<commit_before>/*
Copyright 2016 Fixstars Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http ://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
<commit_before>#include "string_util.h"
#include <cmath>
#include <cstdarg>
#include <array>
#include <memory>
#include <sstream>
#include "arraysize.h"
namespace benchmark {
namespace {
// kilo, Mega, Giga, Tera, Peta, Exa, Zetta, Yotta.
const char kBigSIUnits[] = "kMGTPEZY";
// Kibi, Mebi, Gibi, Tebi, Pebi, Exbi,... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>//
//! @file tcp_socket.cpp
//! @brief tcp session socket class
//
// copyright (c) 2008 TOKYO COMPUTER SERVICE CO.,LTD.
// mail:
//
// Distributed under the Boost Software License, Version 1.0.(See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
//
#include <boost/... |
<commit_before>#define CATCH_CONFIG_MAIN
#include "catch.hpp"
TEST_CASE("Catch is working", "[catch]") {
REQUIRE ( (2 * 2) == 4);
REQUIRE ( (10 * 10) > 50);
}<commit_msg>Some tests<commit_after>#define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "../language_data.h"
#include "../message.h"
#include "../key.h"
#i... |
<commit_before>// (C) Copyright Ullrich Koethe 2001, Gennadiy Rozental 2001-2002.
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.
// This software is provided "as is" without express or implied warranty,
// and with no claim ... |
<commit_before>#pragma once
using namespace std;
#include <vector>
#include <regex>
#include "ICommand.hpp"
#include "Line.hpp"
#include "Utility.hpp"
namespace OCScript
{
// OCScript̃RANXłB
class Core
{
private:
vector<ICommandExecutable*> _Commands;
vector<Line> _ScriptStorage;
int _CurrentLineIndex;
pu... |
<commit_before>/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
*/
#include <Onsang/config.hpp>
#include <Onsang/aux.hpp>
#include <Onsang/String.hpp>
#include <Onsang/UI/Defs.hpp>
#include <Onsang/UI/TabbedView.hpp>
#include <duct/debug.hpp>
namespace Onsang {
namespace UI {
// Beard::u... |
<commit_before>// Copyright (C) 2016 DNAnexus, Inc.
//
// This file is part of dx-toolkit (DNAnexus platform client libraries).
//
// 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
//
//... |
<commit_before>#include <JeeLib.h>
volatile uint16_t rf69_crc;
volatile uint8_t rf69_buf[72];
// void rf69_set_cs (uint8_t pin) {
// }
// void rf69_spiInit () {
// }
uint8_t rf69_initialize (uint8_t id, uint8_t band, uint8_t group) {
RF69::frf = band == RF12_433MHZ ? 0x6C4000L : // or 0x6C8000 for 434 MHz?
... |
<commit_before>/*-------------------------------------------------------------------------
* drawElements Quality Program Tester Core
* ----------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use... |
<commit_before>#include "Overlay.h"
#include "ui_Overlay.h"
#include "../Hearthstone.h"
#include "../Settings.h"
#ifdef Q_OS_MAC
#include <objc/objc-runtime.h>
#endif
#include <cassert>
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonDocument>
#include <QFile>
#include <QMouseEvent>
#define CHECK_FOR_O... |
<commit_before>#pragma once
#include <unordered_map>
#include <cmath>
namespace euler::primes {
/**
* Return a N+1 size array of booleans such that
* mask[a] is true iff a is a composite number.
*/
template<int N>
constexpr std::array<bool, N + 1> composite_mask() {
static_assert(N >= 0, "N must be non-negat... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: backingwindow.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2008-03-12 10:10:06 $
*
* The Contents of this file are ... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before><commit_msg>error: 'pGen' was not declared in this scope<commit_after><|endoftext|> |
<commit_before>#include "./thresholdScan.h"
ClassImp(thresholdScan);
//standard constructor from AnalysisModule
thresholdScan::thresholdScan(const char* name, const char* title,
const char* in_file_suffix, const char* out_file_suffix, const std::vector<double>& thresholds, const std::vector<double>... |
<commit_before><commit_msg>All overflow scrolls should clear the scroll anchor, not just the root layer.<commit_after><|endoftext|> |
<commit_before>#include "physics/kepler_orbit.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "mathematica/mathematica.hpp"
#include "physics/solar_system.hpp"
#include "testing_utilities/almost_equals.hpp"
namespace principia {
using integrators::McLachlanAtela1992Order5Optimal;
using quantities::si... |
<commit_before>/**
* Copyright (c) 2007-2012, Timothy Stack
*
* 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, t... |
<commit_before>#include "_app/sdl.h"
#include "SDL/SDL.h"
st::_app::sdl::sdl() {
init();
}
st::_app::sdl::~sdl() {
finish();
}
bool st::_app::sdl::init() {
SDL_Init ( SDL_INIT_EVERYTHING );
SDL_Surface* hello;
m_screen = SDL_SetVideoMode(640, 480, 32, SDL_SWSURFACE );
// Let's be honest, righ... |
<commit_before>#include "./MediaDefinitions.h"
#include "rtp/SenderBandwidthEstimationHandler.h"
namespace erizo {
DEFINE_LOGGER(SenderBandwidthEstimationHandler, "rtp.SenderBandwidthEstimationHandler");
constexpr duration SenderBandwidthEstimationHandler::kMinUpdateEstimateInterval;
SenderBandwidthEstimationHandle... |
<commit_before>/* <x0/plugins/filter_example.cpp>
*
* This file is part of the x0 web server project and is released under LGPL-3.
* http://www.xzero.ws/
*
* (c) 2009-2010 Christian Parpart <trapni@gentoo.org>
*/
#include <x0/http/HttpPlugin.h>
#include <x0/http/HttpServer.h>
#include <x0/http/HttpRequest.h>
#in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.