text stringlengths 54 60.6k |
|---|
<commit_before>// --------------------------------------------------------------------------
#include <string>
#include <map>
#include <list>
#include <fstream>
#include <iomanip>
#include <getopt.h>
#include <math.h>
#include "Debug.h"
#include "modbus/ModbusRTUMaster.h"
#include "modbus/ModbusHelpers.h"
#include "ext... |
<commit_before><commit_msg>Make output errors also a process error in CLI.<commit_after><|endoftext|> |
<commit_before>#include "GuiEventManager.hpp"
#include "GuiEventObserver.hpp"
#include "DirectGuiEventObserver.hpp"
#include <SFML/Window/Event.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
// Christopher D. Canfield
// October 2013
// GuiEventManager.cpp
using cdc::GuiEventManager;
using cdc::DirectGuiEventObserv... |
<commit_before>#include "ros/ros.h"
#include "std_msgs/Float32.h"
#include "subSim/motor.h"
#include "Robosub/ModuleEnableMsg.h"
#include "Robosub/Point.h"
#include "Robosub/Line.h"
#define OFF 0
#define ON 1
const float MAX_THRESHOLD = 0.05; //5%
const float MIN_THRESHOLD = 0.01; //1%
//bool OMODE = OFF;
bool POINTM... |
<commit_before>/* * This file is part of Maliit framework *
*
* Copyright (C) 2010, 2011 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
*
* Contact: [email protected]
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Les... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/cdm/cenc_utils.h"
#include "base/stl_util.h"
#include "media/formats/mp4/box_definitions.h"
#include "media/formats/mp4/bo... |
<commit_before>/* Copyright (c) 2014 Quanta Research Cambridge, Inc
*
* 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 rights to us... |
<commit_before>#include "../ris_lib/ris_resources_from_file.h"
#include "../ris_lib/ris_bundle_compression.h"
#include "../ris_lib/ris_writing_files.h"
#include "../ris_lib/template.h"
#include "../ris_lib/ris_resource_loader.h"
#include "../ris_lib/ris_default_or_from_file.h"
#include "../ris_lib/ris_resource_snapshot... |
<commit_before>#include "blackhole/sink/asynchronous.hpp"
#include <boost/optional/optional.hpp>
#include "blackhole/config/node.hpp"
#include "blackhole/config/option.hpp"
#include "blackhole/registry.hpp"
#include "blackhole/detail/sink/asynchronous.hpp"
#include <cmath>
namespace blackhole {
inline namespace v1... |
<commit_before>/*
* Copyright 2016 Intel 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
*
3B * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
<commit_before><commit_msg>fix: remove earthchain.info from dnsseed as it's defunct<commit_after><|endoftext|> |
<commit_before><commit_msg>Re-enable all tests. Disable CheckActiveWindow() instead. The sporadic failures of window_proxy->IsActive() to complete are problematic, but we should keep other coverage while investigating.<commit_after><|endoftext|> |
<commit_before>#ifndef CLIENT_OPTS_HPP
#define CLIENT_OPTS_HPP
#include <bits/stdc++.h>
#include <zmqpp/zmqpp.hpp>
#include "constants.hpp"
#include "file.hpp"
#include "json.hpp"
using namespace std;
using namespace zmqpp;
using json = nlohmann::json;
void ListFiles(string &user, socket& s) {
json req;
req["typ... |
<commit_before>#include <fhe/FHEContext.h>
#include <fhe/FHE.h>
#include <fhe/NumbTh.h>
#include <fhe/EncryptedArray.h>
#include <utils/FileUtils.hpp>
#include <utils/timer.hpp>
#include <algebra/NDSS.h>
#include <thread>
#include <atomic>
#include <vector>
#ifdef FHE_THREADS
long WORKER_NR = 8;
#else // ifdef FHE_THR... |
<commit_before>#include "Sparkle.h"
Sparkle::Sparkle (uint16_t columns, uint16_t rows, CRGB * leds, CRGB color, uint16_t emptyness)
: Visualization(columns, rows, leds)
{
this->emptyness = emptyness;
this->color = color;
this->color.maximizeBrightness();
}
void Sparkle::display () {
uint16_t i = random(this->... |
<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 "base/base64.h"
#include "base/command_line.h"
#include "base/json/json_reader.h"
#include "content/browser/devtools/devtools_prot... |
<commit_before><commit_msg>Eliminated reference bound to rvalue<commit_after><|endoftext|> |
<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>#ifndef MJOLNIR_LENNARD_JONES_POTENTIAL
#define MJOLNIR_LENNARD_JONES_POTENTIAL
#include <mjolnir/core/System.hpp>
#include <mjolnir/potential/global/ChainIgnoration.hpp>
#include <vector>
#include <algorithm>
#include <cmath>
namespace mjolnir
{
/*! @brief Lennard-Jones type potential & derivative ... |
<commit_before>/* Copyright 2014-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
#include "watchman.h"
// some versions of dbghelp.h do: typedef enum {}; with no typedef name
#pragma warning(disable: 4091)
#include <Dbghelp.h>
#include <mutex>
static std::once_flag sym_init_once;
static HAN... |
<commit_before>#include <memory>
#define IMPLEMENT_ME std::terminate();
namespace archie {
namespace utils {
namespace containers {
template <typename Tp, typename Alloc = std::allocator<Tp>>
struct dynamic_array {
using allocator_type = Alloc;
using pointer = typename allocator_type::pointer;
... |
<commit_before>#if defined(_MSC_VER) && _MSC_VER >= 1400
#pragma warning(push)
#pragma warning(disable:4996)
#endif
#include "word_count.h"
#include <vector>
#include <locale>
#include <boost/algorithm/string.hpp>
using namespace std;
namespace word_count
{
map<string, int> words(string const& text)
{
// A ... |
<commit_before>// This file is part of Poseidon.
// Copyleft 2022, LH_Mouse. All wrongs reserved.
#include "../precompiled.ipp"
#include "tcp_socket.hpp"
#include "../static/async_logger.hpp"
#include "../utils.hpp"
#include <sys/socket.h>
#include <netinet/tcp.h>
namespace poseidon {
TCP_Socket::
TCP_Socket(unique_... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2014 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>/** @file sortable-serialise.cc
* @brief Serialise floating point values to string which sort the same way.
*/
/* Copyright (C) 2007,2009,2015,2016 Olly Betts
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published ... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <[email protected]>
// Copyright (C) 2010 Jitse Niesen <[email protected]>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the ... |
<commit_before>/******************************************************************************
The MIT License(MIT)
Embedded Template Library.
https://github.com/ETLCPP/etl
https://www.etlcpp.com
Copyright(c) 2020 jwellbelove
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwa... |
<commit_before>// ========================================================================== //
// This file is part of Sara, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2019 David Ok <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// Licen... |
<commit_before>/* **********************************************************
* Copyright (c) 2016-2019 Google, Inc. All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... |
<commit_before>#include <QString>
#include <QFileInfo>
#include <QUrl>
#include "kernel.h"
#include "connectorinterface.h"
#include "resource.h"
#include "ilwisdata.h"
#include "angle.h"
#include "geometries.h"
#include "ellipsoid.h"
#include "projection.h"
#include "proj4parameters.h"
#include "ilwisobject.h"
#include... |
<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 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>
/*******************************************************************************
* Copyright (C) 2016 Advanced Micro Devices, Inc. All rights reserved.
******************************************************************************/
#include <gtest/gtest.h>
#include <math.h>
#include <stdexcept>
#inc... |
<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 ALPINO_CORPUSREADER_HH
#define ALPINO_CORPUSREADER_HH
#include <cstddef>
#include <list>
#include <queue>
#include <string>
#include <AlpinoCorpus/DLLDefines.hh>
#include <AlpinoCorpus/IterImpl.hh>
#include <AlpinoCorpus/util/NonCopyable.hh>
namespace alpinocorpus {
/**
* Abstract base class... |
<commit_before>/*
Copyright (c) 2009-2015, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#pragma once
#ifndef EL_ENVIRONMENT_DECL... |
<commit_before>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2004-2006 Sage Weil <[email protected]>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU ... |
<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>/*
WPN-XM Server Control Panel
WPN-XM SCP is a tool to manage Nginx, PHP and MariaDb daemons under windows.
It's a fork of Easy WEMP originally written by Yann Le Moigne and (c) 2010.
WPN-XM SCP is written by Jens-Andre Koch and (c) 2011 - onwards.
This file is part of WPN-XM... |
<commit_before>/*
* This file is part of Poedit (https://poedit.net)
*
* Copyright (C) 2014-2022 Vaclav Slavik
*
* 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 restrictio... |
<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>/*
* @file network-health-task.cpp
*
* @author C. Smith
*/
#include "network-health-task.hpp"
#include <Esp.h>
#include <ESP8266WiFi.h>
#include <time.h>
#include "root-ca.hpp"
#include "wifi-information.hpp"
#include "mqtt-broker-information.hpp"
namespace app
{
uint32_t NetworkHealthTask::clie... |
<commit_before>/*
* ipop-project
* Copyright 2016, University of Florida
*
* 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 rights
* to us... |
<commit_before>/*=========================================================================
Library: IntersonArray
Copyright Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 ( the "License" );
you may not use this file except in comp... |
<commit_before>/*
* File: Spinlock.hpp
* Part of commonpp.
*
* Distributed under the 2-clause BSD licence (See LICENCE.TXT file at the
* project root).
*
* Copyright (c) 2015 Thomas Sanchez. All rights reserved.
*
*/
#pragma once
#include <thread>
#include <iostream>
#define SPINLOCK_USE_ATOMIC 1
#define SP... |
<commit_before><commit_msg>Reorder `Universe` member variables and clean up initialization code.<commit_after><|endoftext|> |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkDirectory.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>/*
* Author: Norbert Wesp <[email protected]>
* Copyright (c) 2017 Phytec Messtechnik GmbH.
*
* based on: RIOT-driver tcs37727 by Johann Fischer <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation file... |
<commit_before>/*
Copyright (c) 2006, 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>#ifndef MOS_RENDERER_H
#define MOS_RENDERER_H
#include <GL/glew.h>
#include <optional.hpp>
#include <initializer_list>
#include <unordered_map>
#include <optional.hpp>
#include <array>
#include <mos/render/render_scene.hpp>
#include <mos/render/texture_2d.hpp>
#include <mos/render/texture_cube.hpp>
#inc... |
<commit_before>/** Type/template metaprogramming utilities for use internally in libpqxx
*
* Copyright (c) 2000-2019, Jeroen T. Vermeulen.
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code, please notify the distributor of this mistake,
* or contact the a... |
<commit_before>///
/// @file malloc_vector
///
/// Copyright (C) 2015 Kim Walisch, <[email protected]>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef MALLOC_VECTOR_HPP
#define MALLOC_VECTOR_HPP
#include <stdlib.h>
#include <algorithm>
#inc... |
<commit_before>#ifndef SIMDIFY_NAMED_ARRAY
#define SIMDIFY_NAMED_ARRAY
#include "expr.hpp"
#include "../util/inline.hpp"
#include <tuple>
#include <array>
#include <type_traits>
///////////////////////////////////////////////////////////////////////////////////////////////////
#define SIMDIFY_IDENTIFIER_PACK_DECLARAT... |
<commit_before>#ifndef MIMOSA_STREAM_STREAM_HH
# define MIMOSA_STREAM_STREAM_HH
# include "../ref-countable.hh"
# include "../non-copyable.hh"
# include "../runtime/time.hh"
namespace mimosa
{
namespace stream
{
class Stream : public RefCountable<Stream>,
private NonCopyable
{
publi... |
<commit_before>#include <iostream>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
}<commit_msg>added yyparse in main<commit_after>#include <stdio.h>
#include <grammar/helen.parser.hpp>
int main(int argc, char** argv) {
yyin = (argc == 1) ? stdin : fopen(argv[1], "r");
yy... |
<commit_before>
#include <stdio.h>
#include <iostream>
#include <memory>
/// Spherical harmonics coefficients extractor for a HDR cubemap.
/// The main function
int main(int argc, char** argv) {
std::cout << "Processing... " << std::flush;
std::cout << "Done. " << std::endl;
return 0;
}
<commit_msg>Tool t... |
<commit_before>#include "trayToolkit.h"
#include "trayPlatformGtk2.h"
#define XATOM(atom) static const Atom atom = XInternAtom(xev->xany.display, #atom, false)
namespace mintrayr {
namespace platform {
/**
* Helper: Gdk filter function to "watch" the window
*/
static
GdkFilterReturn filterWindows(XEvent *xev, GdkE... |
<commit_before>/******************************************************************
*
* uHTTP for C++
*
* Copyright (C) Satoshi Konno 2002
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#include <uhttp/util/Thread.h>
#include <stdio... |
<commit_before>#include "libtorrent/session.hpp"
#include "libtorrent/session_settings.hpp"
#include "libtorrent/hasher.hpp"
#include "libtorrent/extensions/ut_pex.hpp"
#include <boost/thread.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/filesystem/operations.hpp>
#include "test.hpp"
#include "setup_transfer.h... |
<commit_before>/*
Copyright (c) 2013, 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>#ifdef USE_ALLEGRO
#include <allegro.h>
#endif
#include "music-player.h"
#include "globals.h"
#include <iostream>
#include "configuration.h"
#include "sound.h"
#include "dumb/include/dumb.h"
#include "gme/Music_Emu.h"
#ifdef USE_ALLEGRO
#include "dumb/include/aldumb.h"
#include "ogg/logg.h"
#ifdef _WI... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2012 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>/* ecppc.cpp
Copyright (C) 2003-2005 Tommi Maekitalo
This file is part of tntnet.
Tntnet 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) any... |
<commit_before>#include "tcp_socket.h"
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <cstdio>
#include <util/string_type.h>
using namespace std;
void
TcpSocket::init_socket_lib()
{
#ifdef YBUTIL_WINDOWS
static bool did_it = false;
static WSAData wsaData;
if (!did_it) {
WORD ve... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkTransformFilter.cc
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1995 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighte... |
<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>#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <stdlib.h>
#include <map>
#include "omp.h"
#include <time.h>
#include <chrono>
#include <ctime>
#include <ratio>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/classification.hpp>
#include "boost/... |
<commit_before>// Copyright 2011 Gregory Szorc
//
// 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 applicab... |
<commit_before>/**
* Clever programming language
* Copyright (c) Clever Team
*
* This file is distributed under the MIT license. See LICENSE for details.
*/
#include <sstream>
#include <cmath>
#include "modules/std/core/int.h"
#include "modules/std/core/function.h"
namespace clever {
CLEVER_TYPE_OPERATOR(IntTyp... |
<commit_before>#include "tracking/protocol.hpp"
#include "coding/traffic.hpp"
#include "pyhelpers/pair.hpp"
#include "pyhelpers/vector_uint8.hpp"
#include <boost/python.hpp>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
BOOST_PYTHON_MODULE(pytracking)
{
using namespace boost::python;
using t... |
<commit_before>#include "stdafx.h"
#include "picond.h"
#include "popup.h"
#include <Wtsapi32.h>
#include <shellapi.h>
NOTIFYICONDATA nid = { 0 };
UINT iWMTASKCREATE;
extern HINSTANCE hInst;
extern HWND hMainWnd;
extern HMENU hMenu;
extern TCHAR szTitle[MAX_LOADSTRING];
extern TCHAR szTrayWin... |
<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 "content/ppapi_plugin/ppapi_thread.h"
#include <limits>
#include "base/command_line.h"
#include "base/process_util.h"
#inclu... |
<commit_before>// Copyright (c) 2021 ASMlover. All rights reserved.
//
// ______ __ ___
// /\__ _\ /\ \ /\_ \
// \/_/\ \/ __ \_\ \ _____ ___\//\ \ __
// \ \ \ /'__`\ /'_` \/\ '__`\ / __`\\ \ \ /'__`\
// \ \ \/\ \L\.\_/\ \L\ \ \ \L\ \/... |
<commit_before>/*
* Copyright (c) 2010 Digital Bazaar, Inc. All rights reserved.
*/
#include "monarch/app/AppFactory.h"
#include "monarch/crypto/MessageDigest.h"
#include "monarch/data/json/JsonWriter.h"
#include "monarch/data/json/JsonLd.h"
#include "monarch/data/rdfa/RdfaReader.h"
#include "monarch/io/FileInputStre... |
<commit_before>/** \file extract_normdata_translations.cc
* \brief Extract IxTheo and MACS translations from the normdata file and write it to
* language specific text files
* \author Johannes Riedl
*/
/*
Copyright (C) 2016, Library of the University of Tübingen
This program is free sof... |
<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 "Lice... |
<commit_before>//C++ source file - Open Producer - Copyright (C) 2002 Don Burns
//Distributed under the terms of the GNU LIBRARY GENERAL PUBLIC LICENSE (LGPL)
//as published by the Free Software Foundation.
#include <osg/ArgumentParser>
#include <osg/ApplicationUsage>
#include <osgUtil/Optimizer>
#include <osgDB/Re... |
<commit_before>// Time: O(nlogn + nlogk) = O(nlogn), k is the max size of heights with the same width.
// Space: O(1)
class Solution {
public:
int maxEnvelopes(vector<pair<int, int>>& envelopes) {
vector<int> result;
sort(envelopes.begin(), envelopes.end()); // O(nlogn)
for (int i = 0; i... |
<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/stringprintf.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/extensions/extension_w... |
<commit_before>#include "VoiceDB.h"
using namespace std;
VoiceDB::VoiceDB()
{
singer = "";
}
VoiceDB::VoiceDB(string singer)
{
VoiceDB();
setSinger(singer);
}
VoiceDB::~VoiceDB() {}
bool VoiceDB::initVoiceMap()
{
return initVoiceMap("vocal/"+singer+"/oto.ini");
}
bool VoiceDB::initVoiceMap(string filename... |
<commit_before>/***************************************************************************
* Copyright (c) Yorik van Havre ([email protected]) 2015 *
* Copyright (c) 2016 WandererFan ([email protected]) *
* ... |
<commit_before>#include "ContextAndroid.h"
using namespace std;
using namespace canvas;
AndroidSurface::AndroidSurface(AndroidCache * _cache, unsigned int _logical_width, unsigned int _logical_height, unsigned int _actual_width, unsigned int _actual_height, InternalFormat _format)
: Surface(_logical_width, _logical... |
<commit_before>#include <Arduino.h>
#include "DollhousePanel.h"
#include <Adafruit_TLC59711.h>
#include <Adafruit_NeoPixel.h>
#include <LiquidCrystal.h>
#include <SPI.h>
#include <Fsm.h>
#include <EnableInterrupt.h>
const char NUM_TLC59711 = 1;
const char TLC_DATA = 12;
const char TLC_CLK = 13;
const char PIXEL_COU... |
<commit_before>#pragma once
#ifdef __has_include
#if __has_include(<optional>)
#include <optional>
#elif __has_include(<experimental/optional>)
#include <experimental/optional>
#endif
#endif
#include <stdexcept>
namespace Hippocrates::Utility {
class const_error : public std::logic_error {
using std::logic_error... |
<commit_before>#include "qpathedit.h"
#include <QLineEdit>
#include <QToolButton>
#include <QHBoxLayout>
#include <QCompleter>
#include <QValidator>
#include <QStandardPaths>
#include <QFileSystemModel>
#include <QRegularExpression>
#include <QRegularExpressionMatch>
#include <QEvent>
#include <QTimer>
#include <QActio... |
<commit_before>#include <iostream>
#include <string>
#include <limits>
#include "consoleui.h"
using namespace std;
const char TAB = '\t';
//efsta lagið
ConsoleUI::ConsoleUI()
{
}
void ConsoleUI::WelcomeMenu()
{
cout << endl;
cout << endl;
cout << TAB << "--------------------------------------------" ... |
<commit_before>#include "GBase.h"
#include "GArgs.h"
#include <ctype.h>
GArgs::GArgs(int argc, char* argv[], const char* format, bool nodigitopts) {
/* format can be:
<string>{;|=} e.g. disable-test;PID=S= for --disable-test PID=50 (or --PID 50) S=3.5 etc.
<letter>[:] e.g. p:hT for -p testing (or -pte... |
<commit_before>#include "packet.h"
#include "main.h"
#include "states.h"
const volatile bool SPI2_LOOPBACK = false;
const volatile bool DMA_TRIGGER_LOOPBACK = false; // pin 17 to 18
IntervalTimer timer;
volatile uint16_t state = SETUP_STATE;
elapsedMicros micro = 0;
volatile unsigned int timeAlive = 0;
volatile int e... |
<commit_before>#include "LogConfigReader.hpp"
#include "LogManager.hpp"
#include <yaml-cpp/yaml.h>
#include <fmt/format.h>
static const std::string CONFIG_FILE_NAME = "log-config.yml";
bool ParseLogLevel(YAML::Node const &level_node, LogLevel &dest, std::string const &error_msg)
{
static const std::unordered_map<st... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 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
// met:... |
<commit_before>/************************************************************************\
**
** tUplift.cpp: Functions for class tUplift (see tUplift.h).
**
** $Id: tUplift.cpp,v 1.6 1999-04-05 15:22:14 gtucker Exp $
\************************************************************************/
#include "tUplift.h"
#inc... |
<commit_before>/*************************************************************************
*
* $RCSfile: setupdate.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2003-03-19 16:18:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/* $Id$
* Version: $Name$
*
* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005 by the deal.II authors
*
* This file is subject to QPL and may not be distributed
* without copyright and license information. Please refer
* to the file deal.II/doc/license.html for the text and
* further informati... |
<commit_before>
Int_t events;
RICHmenu(Int_t nev=1)
{
// static Int_t events;
//printf("Called for %d events.",events);
//gAlice=0;
//char *confi="Config.C";
//Int_t events=10;
events=nev;
char *str="\"Number of events %d\"";
TControlBar *menu = new TControlBar("vertical","RICH menu");
m... |
<commit_before>/* $Id$ */
/* Author: Wolfgang Bangerth, University of Heidelberg, 1999 */
/* $Id$ */
/* Version: $Name$ */
/* */
/* Copyright (C) 1999, 2000, 2001, 2002, 2003 by the deal.II authors */... |
<commit_before>/* Copyright 2013 Nikita Batov
*
* 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>/// \file
/// \ingroup tutorial_roofit
/// \notebook -js
/// Validation and MC studies: a simple Toy Monte Carlo study
///
/// \macro_image
/// \macro_output
/// \macro_code
/// \author
#include "RooRealVar.h"
#include "RooDataSet.h"
#include "RooGaussian.h"
#include "RooConstVar.h"
#include "RooChebych... |
<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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.