text stringlengths 54 60.6k |
|---|
<commit_before><commit_msg>Quick 'low-risk-for-the-next-release' fix to increase theme install/load perf (should be a 2-4x speedup). Bug should remain open until a better approach (background threads, perhaps) is used.<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/gtk/browser_window_gtk.h"
#include "base/logging.h"
#include "chrome/browser/browser.h"
#include "chrome/brow... |
<commit_before>// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/common/api/atom_bindings.h"
#include <algorithm>
#include <iostream>
#include <string>
#include "atom/common/atom_version.h"
#include "atom/common/chrom... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentat... |
<commit_before>/*
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
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... |
<commit_before>#include <ORM/backends/Sqlite3/Sqlite3Query.hpp>
#include <ORM/backends/Sqlite3/Sqlite3Bdd.hpp>
namespace orm
{
Sqlite3Query::Sqlite3Query(Bdd& bdd,const std::string& query) : Query(bdd,query), statement(0)
{
int result = sqlite3_prepare_v2(static_cast<Sqlite3Bdd&>(bdd).dbConn,query.c_s... |
<commit_before>#include <iostream>
#include <string>
/*add the header if you need*/
using namespace std;
//Abstract base class for Dessert Item hierarchy
class DessertItem
{
private:
//Name of the DessertItem object
string name;
public:
DessertItem(){}
DessertItem(string name):name(name){}
//Empty virtual... |
<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 "chrome/renderer/media/cast_rtp_stream.h"
#include "base/bind.h"
#include "base/logging.h"
#include "base/memory/weak_ptr.h"
#inc... |
<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; version 3 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; ... |
<commit_before>#include "writer/verilog/ticker.h"
#include "iroha/i_design.h"
#include "writer/module_template.h"
#include "writer/verilog/state.h"
#include "writer/verilog/table.h"
#include "writer/verilog/module.h"
namespace iroha {
namespace writer {
namespace verilog {
Ticker::Ticker(const IResource &res, const ... |
<commit_before>#include <GL/glut.h>
void init()
{
glClearColor(0.0, 0.0, 0.0, 1.0);
glColor3f(1.0, 1.0, 1.0);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0);
}
void myDisplay()
{
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_POLYGON);
glColor3f(1.0, 0.0, 0.0);
... |
<commit_before>// Copyright 2014 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/at_exit.h"
#include "base/command_line.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/g... |
<commit_before>#include "SimpleExample.h"
#include "Utils.h"
#include <cmath>
#include <limits>
using namespace std;
SimpleExample::SimpleExample()
:params(100)
,scalars(2)
{
}
void SimpleExample::from_prior(RNG& rng)
{
for(double& x:params)
x = rng.rand();
compute_scalars();
}
double SimpleExample::perturb(RN... |
<commit_before>/*
* Copyright (C) 2003-2006 Funambol
*
* 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, or
* (at your option) any later version.
*
* This ... |
<commit_before>/*
* Copyright (C) 2005-2022 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>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: optgdlg.hxx,v $
* $Revision: 1.2... |
<commit_before>/*************************************************************************
*
* $RCSfile: postattr.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: er $ $Date: 2001-05-13 03:29:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pamtyp.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: hr $ $Date: 2007-09-27 08:57:49 $
*
* The Contents of this file are made av... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>
#include "../HuboJmc.hpp"
#include "../HuboCanId.hpp"
#include "HuboState/State.hpp"
using namespace HuboCan;
void Hubo2PlusBasicJmc::update()
{
if(NULL == _pump)
return;
// _request_encoder_readings();
_send_reference_commands();
}
void Hubo2PlusBasicJmc::_request_encoder_reading... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_service_harness.h"
#include "chrome/browser/syn... |
<commit_before>#include <catch.hpp>
#include "aux/Aux.hpp"
#include "Chip8.hpp"
#include "CPU.hpp"
namespace {
using namespace Core8;
SCENARIO("CPUs can skip instructions if a register equals a constant value", "[conditional]") {
GIVEN("A CPU with some initialized registers") {
Aux::TestKit testKit;
CPU& ... |
<commit_before>
#include <nstd/Debug.h>
#include <nstd/Process.h>
#include <nstd/Thread.h>
#include <nstd/Time.h>
void testProcess()
{
// test start() and join()
{
Process process;
#ifdef _WIN32
uint32 id = process.start(_T("cmd /C \"choice /T 1 /D N >NUL\""));
#else
uint32 id = process.start(_T("sleep... |
<commit_before>/**
Copyright 2016 Udey Rishi
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 i... |
<commit_before>/*
* Copyright (c) 2013-2014 Kajetan Swierk <k0zmo@outlook.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 without limitation the rig... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (c) 2010 Arjen Hiemstra <ahiemstra@heimr.nl>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Less... |
<commit_before>#include "ExtendedInventoryScreen.h"
#include "InventoryTransitions.h"
#include "../../creative/CreativeTab.h"
#include "com/mojang/minecraftpe/client/MinecraftClient.h"
#include "com/mojang/minecraftpe/client/gui/NinePatchLayer.h"
#include "com/mojang/minecraftpe/client/gui/IntRectangle.h"
#include "c... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2019-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.or... |
<commit_before>/*
* Copyright (c) 2015, Nagoya 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 copyright notice, t... |
<commit_before>#include "Turret.h"
#include "vision/vision_processing.h"
#include "ports.h"
const int Zero_Max = 4;
const int Zero_Min = -1;
const int Left = 0;
const int Right = 1;
const float Turn_Speed = 0.1;
void Turret::Align(int Target) {
while(Direction(Target)==Left)
{
Jaguar turret_XY_control_jag.Set(-1*... |
<commit_before>#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <memory>
#include <pthread.h>
#include <iostream>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "PlotWindow.h"
#include "../Utility/System.h"
#include "cli.h"
#include "gui.h"
volatile bool quit = false;
stat... |
<commit_before>#include <windows.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_syswm.h>
#include "Common.h"
#include "PrjHndl.h"
#include "WinAPI.h"
namespace WinAPI
{
HWND hWnd;
HMENU hMenu;
HMENU hSubMenu;
void SaveHWND(SDL_Window* const window)
{
SDL_SysWMinfo info;
SDL_VERSION(&info.version)
SDL_GetWindowWMInf... |
<commit_before>#include <boost/gil/gil_all.hpp>
#include <boost/gil/extension/io/png_io.hpp>
#include <util/Logger.h>
#include <util/helpers.hpp>
#include <gui/OpenGl.h>
#include <gui/ContextSettings.h>
#include <gui/Keys.h>
#include "Window.h"
using std::cout;
using std::endl;
using namespace boost::gil;
using name... |
<commit_before>#include <isl/set.h>
#include <isl/union_map.h>
#include <isl/union_set.h>
#include <isl/ast_build.h>
#include <isl/schedule.h>
#include <isl/schedule_node.h>
#include <coli/debug.h>
#include <coli/core.h>
#include <String.h>
#include <Halide.h>
int main(int argc, char **argv)
{
isl_ctx *ctx = isl_c... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/initfiles/p9_psi_scom.C $ ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: chips/p9/utils/imageProcs/p9_scan_compression.H $ ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: b3dcolor.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2007-04-11 20:31:44 $
*
* The Contents of this file are made ... |
<commit_before>// (C) Copyright Gennadiy Rozental 2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
//... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2009, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac (jan.issac@gmail.com)
* Copyright (c) 2014 Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before>
/*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this fi... |
<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/vsmc/rng/uniform_real_distribution.hpp
//----------------------------------------------------------------------------
//
// vSMC: Scalable Monte Carlo
//
// This file is distribured under the... |
<commit_before>#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <iostream>
#include <ros/ros.h>
#include <std_msgs/String.h>
#include <string>
#include <std_msgs/Int16.h>
/**
* listens to the "/questions" and "/balls" topics and sends messages to the "/makeSound", "/drive" and "/displ... |
<commit_before>#ifndef ORG_EEROS_CONTROL_ETHERCAT_ELMOOUTPUT_
#define ORG_EEROS_CONTROL_ETHERCAT_ELMOOUTPUT_
#include <eeros/control/Blockio.hpp>
#include <eeros/control/Input.hpp>
#include <eeros/core/System.hpp>
#include <EcMasterlibMain.hpp>
#include <device/Elmo.hpp>
namespace eeros {
namespace control {
/**
* ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabcol.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-09 02:18:53 $
*
* The Contents of this file are made av... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: usrfld.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-12-14 14:47:12 $
*
* The Contents of this file are made av... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac (jan.issac@gmail.com)
* Copyright (c) 2014 Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before><commit_msg>webdav: fix locking in webdav_ucp::Content::getResourceType()<commit_after><|endoftext|> |
<commit_before>///
/// @file S2_easy_libdivide.cpp
/// @brief This is an optimized version of S2_easy which uses
/// libdivide. libdivide allows to replace expensive integer
/// divides with comparatively cheap multiplication and
/// bitshifts.
///
/// Copyright (C) 2017 Kim Walisch, <kim.walisch@... |
<commit_before>#include "middling_player.hpp"
#include <ctime>
#include <limits>
#include <boost/random/discrete_distribution.hpp>
#include "logger.hpp"
#include "walk_move.hpp"
#include "wall_move.hpp"
#include "exception.hpp"
static boost::log::sources::severity_logger<boost::log::trivial::severity_level> lg;
sta... |
<commit_before>#ifndef STAN_MATH_REV_SCAL_FUNCTOR_REDUCE_SUM_HPP
#define STAN_MATH_REV_SCAL_FUNCTOR_REDUCE_SUM_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/rev/fun/typedefs.hpp>
#include <tbb/task_arena.h>
#include <tbb/parallel_reduce.h>
#include <tbb/blocked_range.h>
#include <iostream>
#include <ite... |
<commit_before>// Copyright 2021 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
<commit_before>/**
* @file
*
* @brief A listener reacting to matches for the grammar rules defined in `YAML.g4`
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include <iostream>
#include "YAMLBaseListener.h"
using antlr::YAMLBaseListener;
using KeyContext = antlr::YAMLParser::Key... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2010 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>void loadlibs ()
{
gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libminicern");
gSystem->Load("$(ROOTSYS)/lib/libPhysics");
gSystem->Load("$(ROOTSYS)/lib/libEG");
gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libSTEER");
gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libTGe... |
<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 the dune-hdd project:
// http://users.dune-project.org/projects/dune-hdd
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#define DUNE_STUFF_FUNCTIONS_DISABLE_CHECKS 1
#ifndef DUNE_STUFF_TEST_MAIN_ENABLE_INFO_... |
<commit_before>/*
* =====================================================================================
*
* Filename: main.cc
*
* Description:
*
* Version: 1.0
* Created: 03/20/2008 12:34:14 AM EDT
* Revision: none
* Compiler: gcc
*
* Author: Nikolaos Vas... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>// *****************************************************************************
//
// Copyright (c) 2014, Southwest Research Institute® (SwRI®)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following cond... |
<commit_before>// MFEM Example 5
//
// Compile with: make ex5
//
// Sample runs: ex5 -m ../data/square-disc.mesh
// ex5 -m ../data/star.mesh
// ex5 -m ../data/beam-tet.mesh
// ex5 -m ../data/beam-hex.mesh
// ex5 -m ../data/escher.me... |
<commit_before>/****************************************************************************
*
* Copyright (C) 2014 PX4 Development Team. 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>/*=========================================================================
Program: Visualization Toolkit
Module: vtkStripper.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighted by K... |
<commit_before>/*
* Copyright (C) 2004, 2006-2010, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
/// \b... |
<commit_before>/* Copyright (c) 2011-2013, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <QtCore>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <signal.h>
#inclu... |
<commit_before>#ifndef ALEPH_PERSISTENT_HOMOLOGY_PHI_PERSISTENCE_HH__
#define ALEPH_PERSISTENT_HOMOLOGY_PHI_PERSISTENCE_HH__
#include <aleph/persistenceDiagrams/PersistenceDiagram.hh>
#include <aleph/persistentHomology/Calculation.hh>
#include <aleph/topology/Conversions.hh>
#include <aleph/topology/Intersections.hh... |
<commit_before>// Copyright 2008 Google Inc. All Rights Reserved.
// Author: manzagop@google.com (Pierre-Antoine Manzagol)
#include <sstream>
#include "base/google.h"
#include "file/base/file.h"
#include "third_party/Torch3/Allocator.h"
#include "third_party/Torch3/ClassFormatDataSet.h"
#include "third_party/Torch3/On... |
<commit_before>//
// Copyright (c) 2013-2014 Christoph Malek
// See LICENSE for more information.
//
#ifndef RJ_CORE_MAIN_MENU_LEVEL_SQUARES_HPP
#define RJ_CORE_MAIN_MENU_LEVEL_SQUARES_HPP
#include "basic_component.hpp"
#include "level_square.hpp"
#include <rectojump/core/render.hpp>
#include <rectojump/shared/level... |
<commit_before>// Filename: ppInstance.cxx
// Created by: drose (19Jun09)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// licen... |
<commit_before>//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser G... |
<commit_before>/*
* Copyright (C) 2008-2014 The QXmpp developers
*
* Author:
* Jeremy Lainé
*
* Source:
* https://github.com/qxmpp-project/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General... |
<commit_before>//===- CodeGenTarget.cpp - CodeGen Target Class Wrapper ---------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>#include "MPC.h"
#include <cppad/cppad.hpp>
#include <cppad/ipopt/solve.hpp>
#include "Eigen-3.3/Eigen/Core"
using CppAD::AD;
size_t N = 15;
double dt = 0.05;
// This value assumes the model presented in the classroom is used.
//
// It was obtained by measuring the radius formed by running the vehicle... |
<commit_before>#include "Halide.h"
#include <cstdio>
#include <algorithm>
#include "benchmark.h"
using namespace Halide;
// 32-bit windows defines powf as a macro, which won't work for us.
#ifdef _WIN32
extern "C" __declspec(dllexport) float pow_ref(float x, float y) {
return pow(x, y);
}
#else
extern "C" float p... |
<commit_before>#include <celero/Celero.h>
#include <annis/query.h>
#include <annis/annosearch/exactannokeysearch.h>
#include <annis/annosearch/exactannovaluesearch.h>
#include <annis/annosearch/regexannosearch.h>
#include <annis/operators/pointing.h>
#include <annis/operators/precedence.h>
using namespace annis;
CE... |
<commit_before>/*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include <vistk/pipeline/config.h>
#include <boost/python.hpp>
#include <boos... |
<commit_before>#include "qnodeeditorsocketmodel.h"
#include "graphicsnode.hpp"
#include "graphicsnodescene.hpp"
#include "qreactiveproxymodel.h"
#include <QtCore/QDebug>
#define REACTIVE_MODEL qobject_cast<QReactiveProxyModel*>(d_ptr->q_ptr->sourceModel())
struct NodeWrapper
{
GraphicsNode* m_pNode;
// Ke... |
<commit_before>// -*- Mode:C++ -*-
/**************************************************************************************************/
/* */
/* Copyright (C) 2014 University of Hull ... |
<commit_before>// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "askpass... |
<commit_before>#include "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#include <QMessageBox>
#include <QPushButton>
#include <QKeyEvent>
AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
QDialog(parent),
ui(new Ui::AskPassp... |
<commit_before>#include "psqlwrapper.h"
#include <QDebug>
#include <QSettings>
#include <QSqlError>
#include <QSqlQuery>
#include <QVariant>
bool PsqlWrapper::informationSchemaHidden = true;
bool PsqlWrapper::pgCatalogHidden = true;
PsqlWrapper::PsqlWrapper(QSqlDatabase *db)
: QObject(NULL) {
m_db = db;
QSett... |
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2014
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade 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 Foundat... |
<commit_before>/* Copyright 2019 Axel Huebl, Benjamin Worpitz, René Widera
*
* This file is part of Alpaka.
*
* 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 at http://mozilla.org/MPL/2.0/.
*/
... |
<commit_before>#ifndef APOLLO_CLASS_UTILITY_HPP_INCLUDED
#define APOLLO_CLASS_UTILITY_HPP_INCLUDED APOLLO_CLASS_UTILITY_HPP_INCLUDED
#include <apollo/class.hpp>
#include <apollo/create_table.hpp>
#include <apollo/function.hpp>
#include <apollo/implicit_ctor.hpp>
namespace apollo {
namespace detail {
template <typen... |
<commit_before>// (C) Copyright Gennadiy Rozental 2005-2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
//!@file
//!@brief Defines Un... |
<commit_before>#pragma once
/*
* Factories for variable names.
*/
#include <crab/common/types.hpp>
#include <boost/optional.hpp>
#include <boost/range/iterator_range.hpp>
#include <functional>
#include <limits>
#include <unordered_map>
#include <vector>
namespace crab {
namespace cfg {
namespace var_factory_impl... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/*************************************************************************
*
* Copyright 2016 Realm 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.... |
<commit_before>#ifndef LIBPORT_SINGLETON_PTR_HH
# define LIBPORT_SINGLETON_PTR_HH
# include <libport/export.hh>
# define STATIC_INSTANCE_(Cl, Name) \
class Cl ## Name; \
libport::SingletonPtr<Cl ## Name> Name; \
template<> Cl ## Name* libport::SingletonPtr<Cl ## Name>::ptr = 0
# define STATIC_INS... |
<commit_before>#pragma once
#include <math.h>
namespace lda_util {
inline bool
valid_probability_vector(const std::vector<float> &p){
float sum = 0;
for(auto x: p){
if(std::isfinite(x) == false) return false;
if(x < 0) return false;
sum+=x;
}
... |
<commit_before>/*
* Copyright © 2014 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>/*
* Copyright 2018 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. Al... |
<commit_before>// See copyright notice in file Copyright in the root directory of this archive.
#include "MatternGVTManager.h"
#include "SchedulingManager.h"
#include "CommunicationManager.h"
#include "TimeWarpSimulationManager.h"
#include "MatternGVTMessage.h"
#include "GVTUpdateMessage.h"
#include "LazyOutputManager... |
<commit_before>#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "... |
<commit_before>// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availa... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>/*
* Copyright (c) 2014-2015 Advanced Micro Devices, Inc.
* All rights reserved.
*
* For use for simulation and test purposes only
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.