text stringlengths 54 60.6k |
|---|
<commit_before>#include "VoreealEditorPrivatePCH.h"
#include "BasicVolumeEditorViewportClient.h"
#include "SceneViewport.h"
#include "PreviewScene.h"
#include "ScopedTransaction.h"
#include "Runtime/Engine/Public/ComponentReregisterContext.h"
#include "AssetToolsModule.h"
#include "ContentBrowserModule.h"
#include "A... |
<commit_before>#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/boost/graph/graph_traits_Polyhedron_3.h>
#include <CGAL/Polyhedron_items_with_id_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <CGAL/mesh_segmentation.h>
#include <CGAL/property_map.h>
#include <iostream>
#include <fs... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the... |
<commit_before>#include "text.h"
#include <vector>
#include <memory>
using std::move;
using std::vector;
using std::unique_ptr;
using std::ostream;
TextSlice::TextSlice(Text &text) : text{&text}, start_index{0}, end_index{text.size()} {}
TextSlice::TextSlice(Text *text, size_t start_index, size_t end_index)
: te... |
<commit_before>/** \mainpage
# Contents
- Overview
- Requirements
- Building
- Design and Rationale
- Examples
# Overview
This library consists of a set of templated functions for doing basic arithmetic
operations on ranges and containers. It assumes that the elements of the
ranges/containers support the arithmetic ... |
<commit_before>/*=========================================================================
Program: Monteverdi2
Language: C++
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See Copyright.txt for details.
Monteverdi2 is distributed under the CeCILL licence version 2. See
Licenc... |
<commit_before>#include <stdio.h>
#include <ros/ros.h>
#include <webrtc/base/ssladapter.h>
#include <webrtc/system_wrappers/include/trace.h>
#include "config.h"
#include "host.h"
#include <malloc.h>
#include <sys/resource.h>
struct Flush {
Flush(Host& host) : host(host) {}
void operator()(const ros::Time... |
<commit_before>//=======================================================================
// Copyright (c) 2014-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>/*
*
* Copyright 2014 Telefonica Investigacion y Desarrollo, S.A.U
*
* This file is part of Orion Context Broker.
*
* Orion Context Broker 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, ... |
<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 condit... |
<commit_before>
// Copyright 2010-2012 University of Washington. All Rights Reserved.
// LICENSE_PLACEHOLDER
// This software was created with Government support under DE
// AC05-76RL01830 awarded by the United States Department of
// Energy. The Government has certain rights in the software.
#include "IncoherentAcqui... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkQuadraticEdge.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>#pragma once
#include <vector>
#include <iterator>
#include <functional>
namespace helene
{
template <class PropertyType>
class persistent_iterator_
{
template <class NodeType, class EdgeType>
friend class dag;
public:
typedef typename std::vector<PropertyType>::size_type size_type;
... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2009-2014 Klaus Post
Copyright (C) 2015 Pedro Côrte-Real
Copyright (C) 2017 Axel Waggershauser
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as pu... |
<commit_before><commit_msg>fixed call to p objects<commit_after><|endoftext|> |
<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>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>// Copyright 2012 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 require... |
<commit_before>
#ifndef OMP_OMP_HPP
#define OMP_OMP_HPP
#include <cstdint>
#include <functional>
#include <thread>
#include <vector>
#include <mutex>
#include <condition_variable>
#include <cassert>
#include <iterator>
namespace omp
{
struct iteration_context
{
std::size_t thread_index;
std::size_t ind... |
<commit_before>#ifndef UMINTL_EVALUATION_POLICY_HPP
#define UMINTL_EVALUATION_POLICY_HPP
#include <cstddef>
#include "umintl/forwards.h"
#include "umintl/optimization_context.hpp"
#include <cmath>
namespace umintl{
/** @brief The model_base class
*
* The optimization model can be either deterministic or stochasti... |
<commit_before>#ifndef UNESCAPE_COPY_ROW_HPP
#define UNESCAPE_COPY_ROW_HPP
#include <boost/noncopyable.hpp>
#include <boost/fusion/include/size.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/optional.hpp>
#include <boost/fusion/include/for_each.hpp>
#inc... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_L... |
<commit_before>/*
* Copyright (c) 2014 The WebM 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>#include <curl/curl.h>
#include <cstdlib>
#include <cstring>
#include "datafeed.h"
#include "json/json_spirit_reader_template.h"
#include "json/json_spirit_writer_template.h"
#include "json/json_spirit_utils.h"
#include "vote.h"
#include "main.h"
#include "bitcoinrpc.h"
#include "wallet.h"
using namespa... |
<commit_before>#include "iostream"
#include "AliFMDInput.h"
#include "AliFMDHit.h"
#include "TFile.h"
#include "TTree.h"
#include "TClonesArray.h"
#include "AliTrackReference.h"
#include "AliFMDStripIndex.h"
//Script to compare the hits and the FMD track references for one event.
//To run:
//>gSystem->Load("libFMDutil... |
<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 "base/stringprintf.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/autofill/autofill_common_test.h"
#incl... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkExtractGrid.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>// Copyright 2018 Google 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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law ... |
<commit_before>//
// main.cpp
// AGPLab1
//
// Created by Shockk on 27/09/2013.
// Copyright (c) 2013 Shockk. All rights reserved.
//
#include <stdio.h>
#include <string>
#include <SDL.h>
#if defined(_WIN32) || defined(__linux__)
#define GLEW_STATIC
#include <GL/glew.h>
#endif
#if defined(__APPLE__)
#include <O... |
<commit_before>//
// main.cpp
// AGPLab1
//
// Created by Shockk on 27/09/2013.
// Copyright (c) 2013 Shockk. All rights reserved.
//
#include <stdio.h>
#include <string>
#include <SDL.h>
#if defined(_WIN32) || defined(__linux__)
#define GLEW_STATIC
#include <GL/glew.h>
#endif
#if defined(__APPLE__)
#include <O... |
<commit_before>/*
Copyright (c) 2015, The Cinder Project: http://libcinder.org All rights reserved.
This code is intended for use with the Cinder C++ library: http://libcinder.org
Portions of this code (C) Paul Houx
All rights reserved.
Redistribution and use in source and binary forms, with or without modificat... |
<commit_before>#ifndef ITERATOR_ITERATOR_HPP_
#define ITERATOR_ITERATOR_HPP_
#include <iterator>
#include <type_traits>
#include <utility>
#include "iterbase.hpp"
// IterIterWrapper and IteratorIterator provide a means to have a container
// of iterators act like a container of the pointed to objects. This is useful
... |
<commit_before>// @(#) $Id: AliHLTTPCCATracker.cxx 34611 2009-09-04 00:22:05Z sgorbuno $
// **************************************************************************
// This file is property of and copyright by the ALICE HLT Project *
// ALICE Experiment at CERN, All rights reserved. ... |
<commit_before>#include <boost/locale.hpp>
#include <locale>
#include <iostream>
/*
* Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the COPYING file.
*/
int main(int argc, char *argv[])
{
// Create string with one w... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/* Copyright 2019 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>/*
* Copyright (C) 2015 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla 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 License, or
* (at your op... |
<commit_before>/* Copyright 2020 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 <string>
#include <iostream>
#include "dirent.h"
using namespace std;
int main()
{
DIR *dir;
struct dirent *ent;
if ((dir = opendir ("\\lists\\")) != NULL) {
while ((ent = readdir (dir)) != NULL) {
cout << ent->d_name << endl;
}
closedir(dir);
}
else
{
perror ("");
return ... |
<commit_before>#include "Header.h"
#include "Common/StringUtils.h"
#include "Common/TimeUtils.h"
using namespace HTTP;
/**Parses a string containing key=value pairs in HTTP header format. Supports value quoting, without quote escape.
Sample input stuff; key1=value1; key2="value2"
@param ParamConsumerType A functor w... |
<commit_before>#include <QtWidgets>
#include "codeeditor.h"
void
CodeEditor::initUI(void)
{
QFont font("Courier New");
font.setStyleHint(QFont::Monospace);
setFont(font);
const int tabStop = 2; // 4 characters
QFontMetrics metrics(font);
setTabStopWidth(tabStop * metrics.width(' '));
li... |
<commit_before>/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file JavascriptModule.cpp
* @brief Enables Javascript execution and scripting in Naali.
*/
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "JavascriptModule.h"
#include "ScriptMetaTypeDef... |
<commit_before>#define CATCH_CONFIG_MAIN
#include <stdlib.h>
#include <string.h>
#include "catch.hpp"
#include <cserial.h>
#ifdef _WIN32
#define snprintf _snprintf_s
#define sprintf sprintf_s
#define strcat strcat_s
#endif
TEST_CASE("Loopback send/receive", "[tx][rx][loopback]")
{
struct cserial_port txPort, rxPo... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// Name: managedframe.cpp
// Purpose: Implementation of wxExManagedFrame class.
// Author: Anton van Wezenbeek
// Created: 2010-04-11
// Copyright: (c) 2010 Anton van Wezenbeek
///////////////////////////////////... |
<commit_before>#include <gl/glew.h>
#include "StageCanvas.h"
#include "Exception.h"
#include "ExceptionDlg.h"
#include "EditPanelImpl.h"
#include "KeysState.h"
#include "subject_id.h"
#include "panel_msg.h"
#include "EE_DTex.h"
#include "EE_GTxt.h"
#include <unirender/UR_RenderContext.h>
#include <shaderlab/ShaderMgr... |
<commit_before>/*!
* This file is part of CameraPlus.
*
* Copyright (C) 2012-2014 Mohammed Sameer <[email protected]>
*
* 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
* v... |
<commit_before>/*************************************************************************
*
* $RCSfile: xmlfiltercommon.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2004-08-20 08:30:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<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/message_loop.h"
#include "base/scoped_ptr.h"
#include "base/utf_string_conversions.h"
#include "testing/gtest/include/gt... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dispatchhelper.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-09 01:41:39 $
*
* The Contents of this file are... |
<commit_before>/*$Id$
*
* This source file is a part of the Berlin Project.
* Copyright (C) 1999 Brent A. Fulgham <[email protected]>
* Copyright (C) 1999 Stefan Seefeld <[email protected]>
* http://www.berlin-consortium.org
*
* This library is free software; you can redistribute it and/or
* modi... |
<commit_before>#include <gtest/gtest.h>
#include "Endian.h"
TEST(EndianTest, TestBitSwap) {
uint64_t x = 0x0123456789abcdefull;
uint64_t rev_x = 0xefcdab8967452301ull;
EXPECT_EQ(rev_x, bswap_64(x));
uint32_t y = 0x01234567;
uint32_t rev_y = 0x67452301;
EXPECT_EQ(rev_y, bswap_32(y));
uint16_t z = 0x0123... |
<commit_before>#include "Test.h"
#include <string>
using namespace std;
extern "C" int test_snprintf(char *, size_t, const char *, ...);
class SnprintfTest : public evil::Test {};
TEST_F(SnprintfTest, no_args) {
char dst[sizeof("abc")];
EXPECT_EQ(3, test_snprintf(dst, sizeof(dst), "abc"));
EXPECT_EQ("... |
<commit_before>/*
* Copyright (C) 2005-2017 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>/*
* Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
* Copyright 2010 Kestrel Signal Processing, Inc.
* Copyright 2011 Range Networks, Inc.
*
* This software is distributed under the terms of the GNU Affero Public License.
* See the COPYING file in the main directory for details.
*
* This use o... |
<commit_before>//
// Created by salmon on 17-4-5.
//
#include "Domain.h"
#include "Attribute.h"
#include "MeshBase.h"
#include "Patch.h"
namespace simpla {
namespace engine {
struct Domain::pimpl_s {
std::shared_ptr<geometry::GeoObject> m_geo_object_;
std::shared_ptr<MeshBase> m_mesh_ = nullptr;
Patch* m... |
<commit_before>#include "MeshUtils.hpp"
#include "libslic3r/Tesselate.hpp"
#include "libslic3r/TriangleMesh.hpp"
#include "libslic3r/TriangleMeshSlicer.hpp"
#include "libslic3r/ClipperUtils.hpp"
#include "slic3r/GUI/Camera.hpp"
#include <GL/glew.h>
#include <igl/unproject.h>
namespace Slic3r {
namespace GUI {
vo... |
<commit_before>/*************************************************************************************
* Copyright (C) 2012 by Alejandro Fiestas Olivares <[email protected]> *
* *
* This program is free software; you can r... |
<commit_before>#include "ros/ros.h"
#include <gtest/gtest.h>
#include <Eigen/Dense>
#include <eigen_conversions/eigen_msg.h>
#include "geometry_msgs/Wrench.h"
#include "geometry_msgs/Pose.h"
#include "uranus_dp/State.h"
#include "uranus_dp/ToggleControlMode.h"
class OpenLoopControllerTest : public ::testing::Test {
pu... |
<commit_before>#include "../common/init.h"
#include "../common/timer.h"
#include <iostream>
#include <vector>
#include "character-select.h"
#include "util/debug.h"
#include "util/load_exception.h"
#include "util/token_exception.h"
#include "util/stretch-bitmap.h"
#include "util/input/input.h"
#include "util/input/inp... |
<commit_before>#include "display.h"
#include "space.h"
#include "container.h"
#include "tree.h"
#include "application.h"
#include "window.h"
#include "helpers.h"
extern kwm_screen KWMScreen;
extern kwm_focus KWMFocus;
extern kwm_tiling KWMTiling;
extern kwm_thread KWMThread;
extern kwm_toggles KWMToggles;
void Displa... |
<commit_before>#include "kwm.h"
extern uint32_t MaxDisplayCount;
extern uint32_t ActiveDisplaysCount;
extern CGDirectDisplayID ActiveDisplays[];
extern screen_info *Screen;
extern std::map<unsigned int, screen_info> DisplayMap;
extern std::vector<window_info> WindowLst;
extern window_info *FocusedWindow;
extern int ... |
<commit_before>/// Causal Dynamical Triangulations in C++ using CGAL
///
/// Copyright (c) 2016 Adam Getchell
///
/// Checks that the MoveManager RAII class handles resources properly.
/// @file MoveManagerTest.cpp
/// @brief Tests for the MoveManager RAII class
/// @author Adam Getchell
#include <tuple>
#include <ve... |
<commit_before>/// Causal Dynamical Triangulations in C++ using CGAL
///
/// Copyright (c) 2016 Adam Getchell
///
/// Checks that the PachnerMove RAII class handles resources properly.
/// @file PachnerMoveTest.cpp
/// @brief Tests for the PachnerMove RAII class
/// @author Adam Getchell
#include "gmock/gmock.h"
#inc... |
<commit_before>//===---------- llvm/unittest/Support/Casting.cpp - Casting tests --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------... |
<commit_before>/* FREEVERB - a reverberator
This reverb instrument is based on Freeverb, by Jezar
(http://www.dreampoint.co.uk/~jzracc/freeverb.htm).
p0 = output start time
p1 = input start time
p2 = input duration
p3 = amplitude multiplier
p4 = room size (0-1.07143 ... don't ask)
p5 = p... |
<commit_before>// This file is part of the dune-hdd project:
// http://users.dune-project.org/projects/dune-hdd
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_HDD_EXAMPLES_LINEARELLIPTIC_SWIPDG_HH
#define DUNE_HDD_EXAMPLES_LINEARELLIPT... |
<commit_before>/*******************************************************************************
* Code contributed to the webinos project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... |
<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>#include "wide_graph_with_pool.h"
#include "../src/transwarp.h"
#include <iostream>
#include <fstream>
#include <random>
#include <numeric>
#include <stack>
#include <list>
namespace tw = transwarp;
namespace {
using data_t = std::shared_ptr<std::vector<double>>;
data_t transform(data_t data) {
st... |
<commit_before>/*
Copyright (c) 2006 - 2007 Volker Krause <[email protected]>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
op... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, 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... |
<commit_before>// Copyright (C) 2010 and 2011 Marcin Arkadiusz Skrobiranda.
// 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 copyri... |
<commit_before>/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Test.h"
#include "SkPath.h"
#include "SkCanvas.h"
static void appendStr(SkString* str, const SkPaint& paint) {
str->appendf(" style[%d] cap[%d] j... |
<commit_before>// Time: O(n)
// Space: O(n)
/**
* Definition of TreeNode:
* class TreeNode {
* public:
* int val;
* TreeNode *left, *right;
* TreeNode(int val) {
* this->val = val;
* this->left = this->right = NULL;
* }
* }
*/
class Solution {
public:
/**
* @param ... |
<commit_before>/*
Generic replacement for memalign in terms of xxmalloc and xxfree.
LIMITATIONS:
- This code assumes that the underlying allocator will do "the right
thing" when xxfree() is called with a pointer internal to an
allocated object. Header-based allocators, for example, need not
apply.
*/
e... |
<commit_before>#include "caffeine/layer.hpp"
namespace caffeine {
INSTANTIATE_CLASS(Layer);
} // namespace caffeine
<commit_msg>layer implementation now purely in layer.hpp<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
// reserved. See file COPYRIGHT for details.
//
// This file is part of the MFEM library. For more information and source code
// availability see http... |
<commit_before>/* This is a simple HTTP(S) web server much like Python's SimpleHTTPServer */
#include <App.h>
/* Helpers for this example */
#include "helpers/AsyncFileReader.h"
#include "helpers/AsyncFileStreamer.h"
#include "helpers/Middleware.h"
/* optparse */
#define OPTPARSE_IMPLEMENTATION
#include "helpers/opt... |
<commit_before>/*
* fairness_test.cpp
*/
#include <chrono>
#include <iostream>
#include <mutex>
#include <thread>
#include "gtest/gtest.h"
#include "fair_mutex.hpp"
#include "yamc_testutil.hpp"
#define WAIT_TICK \
std::this_thread::sleep_for(std::chrono::milliseconds(200))
#if 0
namespace {
std::mutex g_guard;
... |
<commit_before>/*
* Copyright (C) 2021-present ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla 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 License, or
* (at... |
<commit_before>/*
-------------------------------------------------------------------------
This file is part of BayesOpt, an efficient C++ library for
Bayesian optimization.
Copyright (C) 2011-2013 Ruben Martinez-Cantin <[email protected]>
BayesOpt is free software: you can redistribute it and/or modi... |
<commit_before>/*
* Author: Jon Trulson <[email protected]>
* Copyright (c) 2016 Intel Corporation
*
* 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
* wit... |
<commit_before>// RUN: clang -parse-noop %s -verify
void f() {
int a;
while (a) ;
while (int x) ; // expected-error {{expected '=' after declarator}}
while (float x = 0) ;
if (const int x = a) ;
switch (int x = a+10) {}
for (; int x = ++a; ) ;
}
<commit_msg>Fix test case.<commit_after>// RUN: ... |
<commit_before><commit_msg>vcl: avoid possible leaks in case of unexpected exceptions<commit_after><|endoftext|> |
<commit_before>#include "ESP8266_AT.h"
ESP8266_AT::ESP8266_AT(uint32_t rxPin, uint32_t txPin, uint32_t baud) :
m_rxPin(rxPin), m_txPin(txPin)
{
SoftwareSerial *serial = new SoftwareSerial(rxPin, txPin);
serial->begin(baud);
m_serial = serial;
}
ESP8266_AT::ESP8266_AT(SoftwareSerial &serial) :
m_rx... |
<commit_before>/*************************************************************************
*
* $RCSfile: salsys.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2003-03-27 17:58:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>#include "vsclanguage.h"
#include "hdddevice.hpp"
#include "debug.hpp"
#include "vschddone.h"
#include "factory.hpp"
extern Factory *gFactory;
VSCLanguage::VSCLanguage(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
gFactory->GetLang(m_lang);
connect( this->ui.pushButtonApply, SIGNAL( cl... |
<commit_before>// Copyright (c) 2015 Chaobin Zhang. All rights reserved.
// Use of this source code is governed by the BSD license that can be
// found in the LICENSE file.
#include "master/master_main_runner.h"
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/files/scoped_file.h"
#include "bas... |
<commit_before>// $Id$
#include <vector>
#include "ScoreComponentCollection.h"
#include "StaticData.h"
using namespace std;
namespace Moses
{
ScoreComponentCollection::ScoreIndexMap ScoreComponentCollection::s_scoreIndexes;
size_t ScoreComponentCollection::s_denseVectorSize = 0;
ScoreComponentCollection::ScoreComp... |
<commit_before>//
// Created by jonas on 10.12.15.
//
#include "image.h"
#if IMAGE_MAGICK
#include <Magick++/Image.h>
#include <Magick++/Montage.h>
#include <Magick++/STL.h>
using namespace Magick;
#elif PNG_LIB
#include <png.h>
#endif
void dump_image( Direction direction )
{
GLint view[4];
glGetIntegerv( GL_V... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the... |
<commit_before>/*
* (C) 2014,2015 Jack Lloyd
* 2016 Matthias Gierlings
* 2017 René Korthaus, Rohde & Schwarz Cybersecurity
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "cli.h"
#if defined(BOTAN_HAS_TLS) && defined(BOTAN_TARGET_OS_HAS_SOCKETS)
#include <botan/tls_client... |
<commit_before>//===--- SIL.cpp - Implements random SIL functionality --------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/*
* Copyright (c) 2015 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>#include "catch.hpp"
#include "util.h"
#include <grammar_registry.h>
using namespace shl;
using namespace std;
class TestSource : public GrammarSource {
public:
TestSource();
virtual const std::string load_data(const std::string& grammar_name) const;
virtual const std::vector<std::string> l... |
<commit_before>// Polygon.cpp
#include "Polygon.h"
#include "Triangle.h"
#include "IndexTriangle.h"
#include "LineSegment.h"
#include "Surface.h"
#include "AffineTransform.h"
#include "Graph.h"
#include "Exception.h"
using namespace _3DMath;
Polygon::Polygon( void )
{
vertexArray = new VectorArray();
indexTriangle... |
<commit_before>/*
* Copyright © 2010 Intel Corporation
*
* 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 use, copy, mod... |
<commit_before>#include "./point_helpers.h"
#include <string>
#include <ostream>
#include "runtime/length.h"
#include "tree_sitter/runtime.h"
using namespace std;
bool operator==(const TSPoint &left, const TSPoint &right) {
return left.row == right.row && left.column == right.column;
}
bool operator==(const TSRang... |
<commit_before>/* -*- mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
// vim:sts=8:sw=8:ts=8:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s
/* fflas_fdot.inl
* Copyright (C) 2005 Clement Pernet
*
* Written by Clement Pernet <[email protected]>
*
*
* ========LICENCE========
* This file is p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.