text stringlengths 54 60.6k |
|---|
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before><commit_msg>FEM: add basic support of Nastran-95<commit_after><|endoftext|> |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>#include <cstring>
#include "zlib.h"
#include "MathUtils.h"
#include "ZipCompressor.h"
namespace crown
{
ZipCompressor::ZipCompressor(Allocator& allocator) :
Compressor(allocator)
{
}
ZipCompressor::~ZipCompressor()
{
}
uint8_t* ZipCompressor::compress(const void* data, size_t in_size, size_t& o... |
<commit_before>#include "NumHeldDownKeys.hpp"
#include "Config.hpp"
#include "RemapUtil.hpp"
namespace org_pqrs_KeyRemap4MacBook {
namespace NumHeldDownKeys {
int num = 0;
static void
log_(void)
{
if (config.debug_devel) {
printf("KeyRemap4MacBook NumHeldDownKeys = %d\n", num);
}... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>/*
* 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 later version.
*
* Written (W) 2007-2009 Soeren Sonnenburg
* W... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>/*
* 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 later version.
*
* Written (W) 2011-2012 Heiko Strathmann
* Co... |
<commit_before>/*
* 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 later version.
*
* Written (W) 2011-2012 Heiko Strathmann
* Co... |
<commit_before>/*
* 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 later version.
*
* Written (W) 2011 Heiko Strathmann
* Copyrig... |
<commit_before>/* This file is part of Strigi Desktop Search
*
* Copyright (C) 2006 Jos van den Oever <jos@vandenoever.info>
*
* 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; eithe... |
<commit_before>// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the... |
<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>#include "dioptre/physics/bullet/physics.h"
#include "dioptre/physics/bullet/shape.h"
#include "dioptre/locator.h"
#include <iostream>
namespace dioptre {
namespace physics {
namespace bullet {
int Physics::initialize() {
broadphase_ = std::unique_ptr<btBroadphaseInterface>(new btDbvtBroadphase());
... |
<commit_before>//
// Copyright (c) 2016 CNRS
// Author: NMansard
//
//
// This file is part of hpp-pinocchio
// hpp-pinocchio is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation, either version
// 3 of the... |
<commit_before>#include "editor.hh"
#include "exception.hh"
#include "utils.hh"
#include "register.hh"
#include "register_manager.hh"
#include <array>
namespace Kakoune
{
Editor::Editor(Buffer& buffer)
: m_buffer(buffer),
m_edition_level(0)
{
m_selections.push_back(SelectionList());
m_selections.b... |
<commit_before>/**
* Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free... |
<commit_before>#include "errors.hpp"
#include <cxxabi.h>
#include <signal.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <typeinfo>
#include "logger.hpp"
#include "utils.hpp"
#include "backtrace.hpp"
#include "clustering/administration/logger.hpp"
bool crashed = false; /... |
<commit_before>#include "ClientConnection.hpp"
#include "ConsoleUtils.hpp"
#include "CryptoHandler.hpp"
#include "FlakyFakeSocketHandler.hpp"
#include "Headers.hpp"
#include "ServerConnection.hpp"
#include "SocketUtils.hpp"
#include "UnixSocketHandler.hpp"
#include "IdPasskeyHandler.hpp"
#include "simpleini/SimpleIni.... |
<commit_before>// RUN: %clang_cc1 -DNO_DTORS -fno-c++-static-destructors -verify %s
// RUN: %clang_cc1 -verify %s
struct SecretDestructor {
#ifndef NO_DTORS
// expected-note@+2 4 {{private}}
#endif
private: ~SecretDestructor(); // expected-note 2 {{private}}
};
SecretDestructor sd1;
thread_local SecretDestructor sd... |
<commit_before>// GLAD will not include windows.h for APIENTRY if it was previously defined
#ifdef _WIN32
#define APIENTRY __stdcall
#endif
#include <glad/glad.h>
#include <GLFW/glfw3.h>
// confirm that neither GLAD nor GLFW didn't include windows.h
#ifdef _WINDOWS_
#error windows.h was included!
#endif
#include <gl... |
<commit_before>#include "utils.h"
#include <iostream>
#include <sstream>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <gsl/gsl>
#include "config/pattern.h"
#include "config/settingsNode.h"
#include "plugins/pluginUtils.h"
#include "base-utils/configFileWriter.h"
#include "base-ut... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 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 2018 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 <gtest/gtest.h>
#include "../source/details/StackTrace.cpp"
#include "../source/details/DebugPrint.cpp"
#include <iostream>
#if defined(CPP_ASSERT_HAVE_BACKTRACE) || defined(_WIN32)
using namespace cppassert::internal;
TEST(StackTraceTest, constructor)
{
StackTrace frames = StackTrace::get... |
<commit_before>/*************************************************************************
*
* $RCSfile: basmgr.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: ab $ $Date: 2000-11-13 12:43:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>#ifndef DUNE_STUFF_FUNCTION_AFFINEPARAMETRIC_CHECKERBOARD_HH
#define DUNE_STUFF_FUNCTION_AFFINEPARAMETRIC_CHECKERBOARD_HH
#include <memory>
#include <vector>
#include <dune/common/shared_ptr.hh>
#include <dune/stuff/common/parameter.hh>
#include <dune/stuff/common/parameter/tree.hh>
#include <dune/stu... |
<commit_before>/*
open source routing machine
Copyright (C) Dennis Luxen, others 2010
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU AFFERO General Public License as published by
the Free Software Foundation; either version 3 of the License, or
any later vers... |
<commit_before>#include "FileClient.h"
#include <iostream>
#include <cstring>
#include <unistd.h>
#include <memory>
#include <sstream>
FileClient::FileClient() {
}
FileClient::~FileClient() {
}
uint64_t FileClient::send(
const std::string & host,
const unsigned short host_port,
std::string & file_path,... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Compositor.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of ... |
<commit_before>/* This file is part of QJson
*
* Copyright (C) 2009 Flavio Castelli <flavio.castelli@gmail.com>
*
* 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 ... |
<commit_before>#include "gamelib/core/ecs/EntityFactory.hpp"
#include "gamelib/core/ecs/EntityManager.hpp"
#include "gamelib/core/ecs/serialization.hpp"
#include "gamelib/core/res/ResourceManager.hpp"
#include "gamelib/utils/log.hpp"
namespace gamelib
{
EntityHandle createEntity(const std::string& name)
{
... |
<commit_before>#include <BinaryTree.hpp>
#include <catch.hpp>
SCENARIO ("init", "[init]")
{
BinaryTree<int> obj;
REQUIRE(obj.root_() == nullptr);
}
SCENARIO("insert", "[insert]")
{
BinaryTree<int> obj;
obj.insert_node(3);
// REQUIRE(obj.find_node(3, obj.root_())->data == 3);
}
SCENARIO("find_node", "[find_n... |
<commit_before>#include "BinaryTree.hpp"
#include <catch.hpp>
SCENARIO("default constructor")
{
Tree<int> node;
REQUIRE(node.root_() == nullptr);
}
SCENARIO("insert")
{
Tree<int> tree;
tree.insert(7);
REQUIRE(tree.x_() == 7);
REQUIRE(tree.left_() == nullptr);
REQUIRE(tree.right_() == nullptr);
... |
<commit_before>#include <matrix.hpp>
#include <catch.hpp>
SCENARIO("matrix init without parametrs", "[init wp]") {
Matrix matrix;
REQUIRE(matrix.rows() == 4);
REQUIRE(matrix.columns() == 4);
for (int i=0;i<matrix.rows(); i++) {
for (int j = 0; j<matrix.columns();j++) {
REQUIRE(matrix.Element(i,j) == 0);
}... |
<commit_before>#include <gtest/gtest.h>
#include <opencv2/opencv.hpp>
#ifdef _MSC_VER
#include <opencv2/opencv_lib.hpp>
#endif
#include "../include/image_utils.h"
//#pragma comment(lib,"gtestd.lib")
//#pragma comment(lib,"libcpmtd.lib")
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, a... |
<commit_before>#include "factory.h"
#include <chrono>
#include <thread>
void synopsis()
{
std::cout << "save_1min_epiphan"
<< " [ help | "
<< " [ xvid | h265 ]"
<< " [ <width> <height> ]"
<< " ]"
<< std::endl;
}
int main(int argc, char... |
<commit_before>/*
Copyright © 2010, 2011 Vladimír Vondruš <mosra@centrum.cz>
This file is part of Magnum.
Magnum is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3
only, as published by the Free Software Foundation.
Ma... |
<commit_before>/*
* Copyright (C) 2018 The Android Open Source 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before>
/** \file consolixx.cpp
*
* \brief Source file for \c consolixx - tools for creating
* text\console based user interfaces
*
* \author Matthew Harvey
* \date 04 July 2012.
*
* Copyright (c) 2012, Matthew Harvey. All rights reserved.
*/
#include "consolixx.hpp"
#include "consolixx_exceptions.hp... |
<commit_before>/*
*
* Copyright (c) 2020 Project CHIP 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/l... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2016 Couchbase, 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 a... |
<commit_before>#include <libmesh/dirichlet_boundaries.h>
#include <libmesh/dof_map.h>
#include <libmesh/elem.h>
#include <libmesh/equation_systems.h>
#include <libmesh/exodusII_io.h>
#include <libmesh/function_base.h>
#include <libmesh/linear_implicit_system.h>
#include <libmesh/mesh.h>
#include <libmesh/numeric_vector... |
<commit_before>#include <libmesh/dirichlet_boundaries.h>
#include <libmesh/dof_map.h>
#include <libmesh/elem.h>
#include <libmesh/equation_systems.h>
#include <libmesh/exodusII_io.h>
#include <libmesh/function_base.h>
#include <libmesh/linear_implicit_system.h>
#include <libmesh/mesh.h>
#include <libmesh/numeric_vector... |
<commit_before> /*
* Copyright (C) 2007-2013 German Aerospace Center (DLR/SC)
*
* Created: 2013-05-28 Martin Siggel <Martin.Siggel@dlr.de>
*
* 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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: test_string.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2007-01-22 14:37:52 $
*
* The Contents of this file are m... |
<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>/*******************************************************************************
* test/construction_test.cpp
*
* Copyright (C) 2017 Florian Kurpicz <florian.kurpicz@tu-dortmund.de>
* Copyright (C) 2017 Marvin Löbel <loebel.marvin@gmail.com>
*
* All rights reserved. Published under the BSD-2 licens... |
<commit_before>// #define _GCL_DEBUG
// static tests
#include <gcl/mp/mp.hpp>
#include <gcl/cx/cx.hpp>
#include <gcl/compile_time_constant/ctc.hpp>
// dynamic tests
#include <gcl/serialization.hpp>
void tmp()
{ // only for gcl_v2 WIP
gcl::serialization::p1::test();
gcl::serialization::p5::test();
}
#inclu... |
<commit_before>// SolLimTests.cpp
#include <deque>
#include <map>
#include <gtest/gtest.h>
#include "SolLim.h"
#include "NuclideModel.h"
#include "CycException.h"
#include "Material.h"
using namespace std;
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
class SolLimTest : public :... |
<commit_before>#ifndef STAN_MATH_REV_FUN_HMM_MARGINAL_LPDF_HPP
#define STAN_MATH_REV_FUN_HMM_MARGINAL_LPDF_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/row.hpp>
#include <stan/math/prim/fun/col.hpp>
#include <stan/math/prim/fun/transpose.hpp>
#include <stan/math... |
<commit_before>/* This file is part of the UniSet project
* Copyright (c) 2009 Free Software Foundation, Inc.
* Copyright (c) 2009 Ivan Donchevskiy
*
* 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 Fo... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999-2002 The Apache Software Foundation. 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. Red... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. 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. Redistri... |
<commit_before>#include "Stack.h"
#include <catch.hpp>
using namespace std;
SCENARIO("Stack count", "[count]"){
bool mark=false;
stack<int> st;
if ((st.count()==0))
{
mark=true;
}
st.push(1);
if ((st.count()==1))
{
mark=true;
}
REQUIRE(mark);
}
SCENARIO("Stack push", "[push]"){
bool mark=false;
stack<i... |
<commit_before>#include <BinaryTree.hpp>
#include <catch.hpp>
SCENARIO ("init", "[init]")
{
BinaryTree<int> obj;
REQUIRE(obj.root_() == nullptr);
}
SCENARIO("insert", "[insert]")
{
BinaryTree<int> obj;
obj.insert_node(3);
REQUIRE(obj.find_node(3, obj.root_())->data == 3);
}
SCENARIO("find_node", "[find_nod... |
<commit_before>#include <matrix.hpp>
#include <catch.hpp>
SCENARIO("matrix init without parametrs", "[init wp]") {
Matrix matrix;
REQUIRE(matrix.rows() == 4);
REQUIRE(matrix.columns() == 4);
for (int i=0;i<matrix.rows(); i++) {
for (int j = 0; j<matrix.columns();j++) {
REQUIRE(matrix.Element(i,j) == 0);
}... |
<commit_before>#define CATCH_CONFIG_RUNNER
#include <catch.hpp>
#include "shape.hpp"
#include "box.hpp"
#include "sphere.hpp"
#include <glm/vec3.hpp>
TEST_CASE("test box", "[test box]")
{
Color black{0.0,0.0,0.0};
Box box1;
glm::vec3 v1{0.0,0.0,0.0};
glm::vec3 v2{1.0,1.0,1.0};
REQUIRE(box1.min() == v1);
REQUIRE(... |
<commit_before>/* /tests/main.cpp
*
* A test entrypoint which enables the use of the tap listener.
*
* See /LICENCE.md for Copyright information */
#define GTEST_TAP_PRINT_TO_STDOUT
#define GTEST_TAP_13_DIAGNOSTIC
#include <memory> // IWYU pragma: keep
#include <string> // IWYU pragma: keep
#include <tuple> //... |
<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>//=============================================================================================================
/**
* @file test_spectral_connectivity.cpp
* @author Daniel Strohmeier <daniel.strohmeier@tu-ilmenau.de>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>
* @version 1.0
* @date ... |
<commit_before>#include "../include/label.hpp"
label::label(const std::string &text, ALLEGRO_BITMAP *img, ALLEGRO_FONT *font, ALLEGRO_COLOR *color):
color_(nullptr),
font_(nullptr),
img_(nullptr),
text_(text),
show_(true),
x_(.0),
y_(.0),
w_(.0),
h_(.0),
text_x_(.0),
text_y... |
<commit_before>#include "content/nw/src/api/nw_clipboard_api.h"
#include "base/base64.h"
#include "base/logging.h"
#include "base/test/bind.h"
#include "base/strings/stringprintf.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/devtools/devtools_window.... |
<commit_before><commit_msg>Resolves: #i124409# use slot SID_ATTR_METRIC...<commit_after><|endoftext|> |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// exception_test.cpp
//
// Identification: test/network/exception_test.cpp
//
// Copyright (c) 2016-17, Carnegie Mellon University Database Group
//
//===----------------------------... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Lewis Baker
// Licenced under MIT license. See LICENSE.txt for details.
///////////////////////////////////////////////////////////////////////////////
#include <cppcoro/shared_lazy_task.hpp>
#include <cppco... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// File: ProcessVorticity.cpp
//
// For more information, please see: http://www.nektar.info/
//
// The MIT License
//
// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
// Department of A... |
<commit_before>/* Copyright 2018 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>//----------------------------------------------------------------------------
/// \file test_async_file_logger.cpp
//----------------------------------------------------------------------------
/// \brief This is a test file for validating async_file_logger functionality.
//----------------------------... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dp_gui_autoscrolledit.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: ihi $ $Date: 2006-12-20 14:21:53 $
*
* The Contents of this ... |
<commit_before>/*
* Copyright (c) 2011-2014, Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, ... |
<commit_before>// coding: utf-8
/* Copyright (c) 2014, Electronic Kiwi, daniel-k
* All Rights Reserved.
*
* The file is part of the xpcc-playground and is released under the 3-clause BSD
* license. See the file `LICENSE` for the full license governing this code.
*/
#include <xpcc/architecture.hpp>
#include <xpcc/debug... |
<commit_before>#include "test_helpers.hxx"
using namespace PGSTD;
using namespace pqxx;
namespace
{
binarystring make_binarystring(transaction_base &T, string content)
{
return binarystring(T.exec("SELECT " + T.quote_raw(content))[0][0]);
}
void test_binarystring(transaction_base &T)
{
binarystring b = make_bi... |
<commit_before>/*
Copyright (c) 2007-2009, Python File Format Interface
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 2019 The Project Oak 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 a... |
<commit_before>/*
* Copyright (c) 2012 Bernhard Firner and Rutgers University
* All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, o... |
<commit_before>#pragma once
#include <ctime>
#include <initializer_list>
#include <utility>
#include "blackhole/attribute/name.hpp"
#include "blackhole/attribute/scope.hpp"
#include "blackhole/attribute/set.hpp"
#include "blackhole/attribute/view.hpp"
#include "blackhole/attribute/traits.hpp"
#include "blackhole/attr... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_DISCRETEFUNCTION_DIFFERENCE_HH
#define DUNE_GDT_DISCRETEFUNCTION_DIFFERE... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_PRODUCTS_ESV2007_HH
#define DUNE_GDT_PRODUCTS_ESV2007_HH
#include <dun... |
<commit_before>#include <ptrace.hh>
#include <utils.hh>
#include <unistd.h>
#include <sys/ptrace.h>
#include <sys/user.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sched.h>
#include <map>
#include <list>
class Ptrace : public IPtrace
{
public:
Ptrace()
{
m_breakpointId = 0;
}
bool readMemory(uint8... |
<commit_before>#ifndef __NODE_OSRM_QUERY_H__
#define __NODE_OSRM_QUERY_H__
// v8
#include <v8.h>
// node
#include <node.h>
#include <node_version.h>
#include <node_object_wrap.h>
#include <OSRM.h>
using namespace v8;
namespace node_osrm {
typedef boost::shared_ptr<RouteParameters> route_parameters_ptr;
class Que... |
<commit_before>/*
* Utilities for dealing with regular expressions.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#ifndef BENG_PROXY_REGEX_HXX
#define BENG_PROXY_REGEX_HXX
#include <glib.h>
#include <algorithm>
class Error;
class RegexPointer {
protected:
GRegex *re = nullptr;
explicit constexpr Regex... |
<commit_before>// Copyright (c) 2017 Franka Emika GmbH
// Use of this source code is governed by the Apache-2.0 license, see LICENSE
#include <franka/robot.h>
#include <utility>
#include "control_loop.h"
#include "network.h"
#include "robot_impl.h"
namespace franka {
Robot::Robot(const std::string& franka_address, ... |
<commit_before>#ifndef CONTAINERS_REFC_PTR_HPP_
#define CONTAINERS_REFC_PTR_HPP_
#include "utils.hpp"
// Users of this class must implement two overloads:
//
// void refc_ptr_add_ref(T *obj)
//
// Increments the reference count in obj, may not throw exceptions.
//
// void refc_ptr_release(T *)
//
// Decrement... |
<commit_before>/*
* The MIT License (MIT)
* Copyright (c) 2015 Peter Vanusanik <admin@en-circle.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including w... |
<commit_before>// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQEventDM.cpp,v $
// $Revision: 1.1 $
// $Name: $
// $Author: aekamal $
// $Date: 2009/07/06 12:12:14 $
// End CVS Header
// Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., ... |
<commit_before>/* Copyright (c) 2017-2019 Hans-Kristian Arntzen
*
* 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, c... |
<commit_before>/*
* author: Max Kellermann <mk@cm4all.com>
*/
#ifndef CERT_DATABASE_HXX
#define CERT_DATABASE_HXX
#include "pg/Connection.hxx"
#include "ssl/Unique.hxx"
#include <string>
typedef struct aes_key_st AES_KEY;
struct CertDatabaseConfig;
class CertDatabase {
const CertDatabaseConfig &config;
... |
<commit_before>#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <QSqlRecord>
#include <functional>
#include "kernel.h"
#include "ilwiscontext.h"
#include "errorobject.h"
#include "publicdatabase.h"
#include "proj4parameters.h"
using namespace Ilwis;
PublicDatabase::PublicDatabase() {
}
Publ... |
<commit_before>/***
Copyright 2013-2016 Dave Cridland
Copyright 2014-2016 Surevine Ltd
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... |
<commit_before>// $Id$
/*
Copyright (c) 2007-2009, Trustees of The Leland Stanford Junior University
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>/**
* @file Cosa/RTC.cpp
* @version 1.0
*
* @section License
* Copyright (C) 2012-2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* ve... |
<commit_before>/*************************************************************************/
/* compression.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/*************************************************************************/
/* input_event.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/*
Copyright (c) DataStax, 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 or agreed to... |
<commit_before><commit_msg>gtk: Implement AutomationProvider::GetBrowserForWindow.<commit_after><|endoftext|> |
<commit_before><commit_msg>Change KeyboardAccessTests from DISABLED to FLAKY to see if they pass now. BUG=39213 TEST=interactive_ui_tests pass for me locally on Linux, Vista, and XP. TBR=maruel<commit_after><|endoftext|> |
<commit_before>//utils.cpp
#include <cmath>
#include <iostream>
#include "utils.hpp"
namespace utils{
DataPoint::DataPoint(std::vector<double> x, double y = 0.0){
if (x.size()==0){
this->x.push_back(0.0);
}
else {
for(int i=0; i<x.size(); i... |
<commit_before>#ifndef __NODE_MAPNIK_UTILS_H__
#define __NODE_MAPNIK_UTILS_H__
// v8
#include <v8.h>
// node
#include <node.h>
// stl
#include <string>
// core types
#include <mapnik/unicode.hpp>
#include <mapnik/value.hpp>
// boost
#include <boost/variant/static_visitor.hpp>
#define TOSTR(obj) (*String::Utf8Valu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.