text stringlengths 54 60.6k |
|---|
<commit_before>/*
***********************************************************************************************************************
*
* Copyright (c) 2020 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software ... |
<commit_before><commit_msg>Fix: fix filling of event/track cuts values histogram<commit_after><|endoftext|> |
<commit_before>AliAnalysisVertexingHF* ConfigVertexingHF() {
printf("Call to AliAnalysisVertexingHF parameters setting :\n");
vHF = new AliAnalysisVertexingHF();
//--- switch-off candidates finding (default: all on)
//vHF->SetD0toKpiOff();
//vHF->SetJPSItoEleOff();
//vHF->Set3ProngOff();
//vHF->SetLike... |
<commit_before>//===- lib/Driver/GnuLdInputGraph.cpp -------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Vassil Vassilev <[email protected]>
//------------------------------------------------------------------------------
#include "MetaSema.h"
#include ... |
<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>#include "stdafx.h"
#include "util/fixes.h"
#include <temple/dll.h>
#include "temple_functions.h"
#include "config/config.h"
#include "xp.h"
#include "obj.h"
#include "critter.h"
#include "party.h"
#include "d20_level.h"
#include "gamesystems/objects/objsystem.h"
#include "sound.h"
#include "combat.h"
#i... |
<commit_before>#include "DatagramIterator.h"
#include "../bits/buffers.h"
#include "../values/Value.h"
#include "../module/ArrayType.h"
#include "../module/Struct.h"
#include "../module/Method.h"
#include "../module/Field.h"
#include "../module/Parameter.h"
using namespace std;
namespace bamboo { // close namespace ba... |
<commit_before>#include "xlink/XLinkConnection.hpp"
#include <array>
#include <cassert>
#include <chrono>
#include <cstring>
#include <fstream>
#include <iostream>
#include <thread>
#include <vector>
// project
#include "depthai/utility/Initialization.hpp"
// libraries
#include <XLink/XLink.h>
extern "C" {
#include ... |
<commit_before>//===--- Stubs.cpp - Swift Language ABI Runtime Stubs ---------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>/*
Copyright (c) 2008, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sdrpagewindow.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2007-04-11 16:11:32 $
*
* The Contents of this file are ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile$
*
* $Revision$
*
* last change: $Author$ $Date$
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser G... |
<commit_before>/*************************************************************************
*
* $RCSfile: anchoreddrawobject.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2004-09-09 10:54:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the foll... |
<commit_before>/******************************************************************************
* Evatar_AutoFocus.cpp
*
* Author: Bryan D. Maione
*
* This application uses the Mantis camera API and OpenCV to Autofocus Mcams.
*
*****************************************************************************/
/* g... |
<commit_before>/* medViewerToolBoxTime.h ---
*
* Author: Fatih Arslan and Nicolas Toussaint
* Change log:
*
*/
#include "medViewerToolBoxTime.h"
#include <iomanip>
#include <cmath>
#include <sstream>
#include <QListWidget>
#include <QList>
#include <QMouseEvent>
#include <dtkCore/dtkAbstractView.h>
#include <... |
<commit_before>// $Id: patch_recovery_error_estimator.C,v 1.21 2007-01-22 23:36:07 roystgnr Exp $
// The libMesh Finite Element Library.
// Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser Gene... |
<commit_before>#include <boost/test/unit_test.hpp>
#include <boost/lexical_cast.hpp>
struct Interface {
std::string to_string(int i) const { throw std::runtime_error("Not implemented!"); }
};
template <class Derived>
struct printer {
~printer() {
static_assert(
std::is_base_of<Interface, ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>#include "rtkTestConfiguration.h"
#include "itkRandomImageSource.h"
#include "rtkTotalVariationImageFilter.h"
#include "rtkTotalVariationDenoisingBPDQImageFilter.h"
#include "rtkMacro.h"
template<class TImage>
#if FAST_TESTS_NO_CHECKS
void CheckTotalVariation(typename TImage::Pointer itkNotUsed(before),... |
<commit_before>// Copyright Steinwurf ApS 2015.
// All Rights Reserved
#pragma once
#include <cassert>
#include <cstdint>
#include "descriptor.hpp"
#include "../byte_stream.hpp"
namespace petro
{
namespace descriptor
{
class sl_config_descriptor : public descriptor
{
public:
sl_config_descripto... |
<commit_before>// Copyright (c) 2019 by Robert Bosch GmbH. 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
//
// ... |
<commit_before>// 2008
// Jon 'jonanin' Morton
#include "luainc.h"
#include "Common.h"
#include "LuaInterface.h"
#include "LuaArgument.h"
#include <list>
int main() {
LuaInterface lu;
lu.ExecuteFile("test.lua");
vector<LuaArgument> retargs;
// arguments for lua function
LuaArgument largs[] = ... |
<commit_before>#include "../../source/thewizardplusplus/wizard_parser/parser/rule_parser.hpp"
#include "../../source/thewizardplusplus/wizard_parser/parser/lookahead_parser.hpp"
#include "../../source/thewizardplusplus/wizard_parser/lexer/token.hpp"
#include "../../source/thewizardplusplus/wizard_parser/parser/ast_node... |
<commit_before>#include "MaximumProductSubarray.hpp"
using namespace std;
int MaximumProductSubarray::maxProduct(vector<int> &nums) {
int n = nums.size();
if (n == 0)
return 0;
vector<int> a(n, 0);
vector<int> b(n, 0);
a[0] = b[0] = nums[0];
for (int i = 1; i < n; i++) {
int... |
<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 2 of the License, or
(at your option) any later version.
This program is distributed in the hope t... |
<commit_before>#include <iostream>
#include <Windows.h>
#define NDEBUG
#include <GL/freeglut.h>
#include "Rectangle.h"
#include "Circle.h"
#include <vector>
#include <cstdlib>
#include <ctime>
MF::Circle pilka(0.6, 1.0, 0.0, 0.0);
MF::Rectangle paletka(10, 1, 0.0, 1.0, 0.0);
std::vector<MF::Rectangle> sciany;
st... |
<commit_before>/*
* Parser.cpp
*****************************************************************************
* Copyright © 2015 - VideoLAN and VLC Authors
*
* This program 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 F... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distribu... |
<commit_before>#include <stan/math/error_handling/matrix/check_cov_matrix.hpp>
#include <gtest/gtest.h>
TEST(MathErrorHandlingMatrix, checkCovMatrix) {
Eigen::Matrix<double,Eigen::Dynamic,Eigen::Dynamic> y;
double result;
y.resize(3,3);
y << 2, -1, 0, -1, 2, -1, 0, -1, 2;
EXPECT_TRUE(stan::math::check_cov... |
<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>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, 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>
#include <boost/asio.hpp>
#include "vtrc-common/vtrc-mutex-typedefs.h"
#include "vtrc-bind.h"
#include "vtrc-function.h"
#include "vtrc-protocol-layer-s.h"
#include "vtrc-monotonic-timer.h"
#include "vtrc-data-queue.h"
#include "vtrc-hash-iface.h"
#include "vtrc-transformer-iface.h"
#include "vtrc-t... |
<commit_before>#include "media_config_loader.h"
#include "log.h"
using ::com::kurento::log::Log;
static Log l("media_config_loader");
#define d(...) aux_debug(l, __VA_ARGS__);
#define i(...) aux_info(l, __VA_ARGS__);
#define e(...) aux_error(l, __VA_ARGS__);
#define w(...) aux_warn(l, __VA_ARGS__);
#define DEFAULT_I... |
<commit_before>// Copyright 2020 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>#include "propertyeditordelegate.h"
#include "propertyeditorproxymodel.h"
#include <QtCore/QDebug>
#include <QtGui/QComboBox>
#include <QtGui/QPushButton>
#include <QtGui/QPushButton>
#include "mainwindow.h"
#include "openShapeEditorButton.h"
#include "referencetypewindow.h"
#include "buttonRefWindow.h... |
<commit_before>#include <tamer/fdhmsg.hh>
#include <signal.h>
void terminate(int);
int query_count = 0;
int main (void) {
char buf[8192];
int len;
int fd;
pid_t pid;
int socks[2], chfd;
fdh_msg * msg;
char * fname;
struct stat * stat;
size_t size;
ssize_t ssize;
if (signal(SIGTERM, te... |
<commit_before><commit_msg>Usage + commandline options<commit_after><|endoftext|> |
<commit_before>#include <sh/sh.hpp>
#include <sh/shutil.hpp>
#include <iostream>
#include <list>
#include "Shader.hpp"
#include "Globals.hpp"
using namespace SH;
using namespace ShUtil;
// VCS direction and up
ShVector3f lightDir;
ShVector3f lightUp;
class AlgebraWrapper: public Shader {
public:
AlgebraWrapper... |
<commit_before>//===========================================
// PC-BSD source code
// Copyright (c) 2016, PC-BSD Software/iXsystems
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#include "sysadm-client.h"
#include <QSslConfiguratio... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>/**
* @file
*
* @brief Source for simplespeclang plugin
*
* @copyright BSD License (see doc/COPYING or http://www.libelektra.org)
*
*/
#include "simplespeclang.hpp"
using namespace ckdb;
#include <kdbease.h>
#include <kdberrors.h>
#include <kdbmeta.h>
#include <algorithm>
#include <fstream>
#... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/dock_info.h"
#include "base/basictypes.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browse... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/gpu_blacklist.h"
#include "base/json/json_reader.h"
#include "base/logging.h"
#include "base/string_number_co... |
<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/test/render_view_test.h"
#include "chrome/browser/extensions/extension_function_dispatcher.h"
#include "chrome/common... |
<commit_before>
#include "numerics/matrix_computations.hpp"
#include <tuple>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "numerics/fixed_arrays.hpp"
#include "numerics/unbounded_arrays.hpp"
#include "quantities/elementary_functions.hpp"
#include "testing_utilities/almost_equals.hpp"
namespace princip... |
<commit_before>// Copyright (c) 2012 Intel Corp
// Copyright (c) 2012 The Chromium Authors
//
// 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 limi... |
<commit_before>#include <nan.h>
#include "prtscn_windows.h"
#include <stdlib.h>
using namespace v8;
void Method(const FunctionCallbackInfo<Value>& args) {
Isolate* isolate = args.GetIsolate();
// Check number of arguments passed
if (args.Length() < 5) {
isolate->ThrowException(Exception::TypeError(String::NewF... |
<commit_before>/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
<commit_before>#include <fstream>
#include <iostream>
#include <map>
#include "sst/verbs.h"
using std::ofstream;
using std::map;
using std::cin;
using std::cout;
using std::endl;
using std::string;
using namespace sst;
// number of reruns
long long int num_reruns = 10000;
int main() {
ofstream fout;
fout.o... |
<commit_before>//
// MIT License
//
// Copyright (c) 2017 Thibault Martinez
//
// 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>// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/test/base/xwalk_test_suite.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/memory/ref_counte... |
<commit_before>#include "gtest/gtest.h"
#include <fstream>
#include <ydsh/ydsh.h>
#include <constant.h>
#include <vm.h>
#include "../test_common.h"
class HistoryTest : public ExpectOutput, public TempFileFactory {
protected:
DSState *state{nullptr};
public:
HistoryTest() {
this->state = DSState_cr... |
<commit_before>#include "catch.hpp"
#include "EventThreader.hpp"
TEST_CASE( "EventThreader", "[EventThreader]" ) {
std::stringstream ss;
SECTION("Abitrary use") {
/* Example of most basic use */
auto f = [&ss](std::function<void(void)> switchToMainThread){
for(int i = 0; i < 100; i++) { ss << "*"; }
swit... |
<commit_before>#include <iostream>
#include "any.h"
#include "anyTest.h"
using ::testing::Return;
anyTest::anyTest() {
// Have qux return true by default
ON_CALL(m_bar,qux()).WillByDefault(Return(true));
// Have norf return false by default
ON_CALL(m_bar,norf()).WillByDefault(Return(false));
}
anyT... |
<commit_before>#include "testsettings.hpp"
#ifdef TEST_COLUMN_DATETIME
#include <realm/column_datetime.hpp>
#include <realm.hpp>
#include "test.hpp"
using namespace realm;
// Test independence and thread-safety
// -----------------------------------
//
// All tests must be thread safe and independent of each other... |
<commit_before>#include <QtTest>
#include <QtCore>
#include <QtNetwork>
#include <Arangodbdriver.h>
using namespace arangodb;
/**
* @brief The StartTest class
*/
class StartTest : public QObject
{
Q_OBJECT
public:
StartTest();
private Q_SLOTS:
void initTestCase();
... |
<commit_before>// window.cpp
#include <QDebug>
#include <QDir>
#include <math.h>
#include "ui_window.h"
#include "window.hpp"
#include "augmentation_widget.hpp"
#ifndef RES_DIR
#define RES_DIR ""
#endif
Window::Window (QWidget* parent)
: QWidget (parent)
, ui (new Ui::Window) {
_augmentation = new augmentation_... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2005 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/*************************************************************************
*
* $RCSfile: dinfedt.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: pb $ $Date: 2001-06-28 13:44:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>//
// Copyright (c) 2019 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//
#include "win_storage_native_target.h"
#include <target_windows_storage_config.h>
#include <nanoHAL_Windows_Storage.h>
#include <target_platform.h>
#include "Esp32_De... |
<commit_before>#define FEBIRD_HAS_INHERITING_CONSTRUCTORS
<commit_msg>git rm src/nark/my_auto_config.hpp<commit_after><|endoftext|> |
<commit_before>#include "util/bitmap.h"
#include "network.h"
#include "chat_server.h"
#include "chat.h"
#include "util/bitmap.h"
#include "util/funcs.h"
#include "util/keyboard.h"
#include "util/font.h"
#include "globals.h"
#include "init.h"
#include <iostream>
#include <signal.h>
using namespace std;
static const c... |
<commit_before>#include "object/jsbasicobject.h"
#include "object/function.h"
#include "object/argument.h"
#include "object/jsobject.h"
namespace grok {
namespace obj {
std::string JSObject::AsString() const
{
std::string buff = "";
buff += "{ ";
for (const auto &it : object_) {
auto prop = it.sec... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2019, Nefelus Inc
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditi... |
<commit_before>#include <PCU.h>
#include <MeshSim.h>
#include <SimPartitionedMesh.h>
#include <SimUtil.h>
#include <SimParasolidKrnl.h>
#include <apfSIM.h>
#include <apfMDS.h>
#include <gmi_sim.h>
#include <apf.h>
#include <apfConvert.h>
#include <apfMesh2.h>
int main(int argc, char** argv)
{
MPI_Init(&argc, &argv);... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: OOXMLTestService.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: os $ $Date: 2007-06-19 05:33:42 $
*
* The Contents of this file a... |
<commit_before>#include "xchainer/native/native_device.h"
#include <cstddef>
#include <memory>
#include <thread>
#include <vector>
#include <gtest/gtest.h>
#include "xchainer/context.h"
#include "xchainer/native/native_backend.h"
namespace xchainer {
namespace native {
namespace {
template <typename T>
void Expect... |
<commit_before>#define BOOST_TEST_MODULE "test_serialize_file"
#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST
#include <boost/test/unit_test.hpp>
#else
#define BOOST_TEST_NO_LIB
#include <boost/test/included/unit_test.hpp>
#endif
#include <toml.hpp>
#include <iostream>
#include <fstream>
BOOST_AUTO_TEST_CASE(test_example)
{... |
<commit_before>/*
* Copyright 2019 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
<commit_before>/*************************************************************************
*
* $RCSfile: versioner.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: vg $ $Date: 2003-04-01 13:17:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>/**********************************************************************
*
* FILE: Text.cpp
*
* DESCRIPTION: Read/Write osgText::Text in binary format to disk.
*
* CREATED BY: Auto generated by iveGenerator
* and later modified by Rune Schmidt Jensen... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
// oxygenwindowmanager.cpp
// pass some window mouse press/release/move event actions to window manager
// -------------------
//
// Copyright (c) 2010 Cédric Bellegarde <[email protected]>
//
// Largely inspired from Qtcurve s... |
<commit_before>#include <cmath>
#include <iostream>
#include <fstream>
#include <thread>
#include <QWidget>
#include <QMouseEvent>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QStackedLayout>
#include <QLayout>
#include <QDateTime>
#include "common/params.h"
#include "home.hpp"
#include "paint.hpp"
#inclu... |
<commit_before>#include <cmath>
#include <fstream>
#include <iostream>
#include <thread>
#include <QDateTime>
#include <QHBoxLayout>
#include <QLayout>
#include <QMouseEvent>
#include <QStackedLayout>
#include <QVBoxLayout>
#include <QWidget>
#include "common/params.h"
#include "home.hpp"
#include "paint.hpp"
#inclu... |
<commit_before>#include "test_macros.hpp"
#include <matrix/math.hpp>
using namespace matrix;
int main()
{
float data1[] = {1,2,3,4,5};
float data2[] = {6,7,8,9,10};
Vector<float, 5> v1(data1);
TEST(isEqualF(v1.norm(), 7.416198487095663f));
TEST(isEqualF(v1.norm(), v1.length()));
Vector<float,... |
<commit_before>/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include "ccode.hpp"
#include <kdblogger.h>
namespace
{
/**
* @brief Cast a character to an unsigned character.
*
* @param character This parameter specifies the character this function casts ... |
<commit_before>/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include "ccode.hpp"
#include <kdblogger.h>
namespace
{
/**
* @brief Cast a character to an unsigned character.
*
* @param character This parameter specifies the character this function casts ... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
Copyright (c) 2008 Ash Berlin, Rüdiger Sonderfeld
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, includi... |
<commit_before>
#include "EulerProblem.h"
#include "CLawCellMaterial.h"
#include "CLawFaceMaterial.h"
#include "CLawBoundaryMaterial.h"
using Eigen::Vector3d;
template<>
InputParameters validParams<EulerProblem>()
{
InputParameters params = validParams<CFDProblem>();
return params;
}
EulerProblem::EulerProblem(... |
<commit_before>/*
* 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/.
*
* Copyright (C) 2017, James R. Barlow (https://github.com/jbarlow83/)
*/
/*
* Convert Python ... |
<commit_before>#include <framesgallery.hpp>
#include <QHBoxLayout>
#include <QFrame>
#include <QLabel>
#include <QMouseEvent>
#include <QMenu>
#include <animationframewidget.hpp>
FramesGallery::FramesGallery(QWidget *parent)
:
QWidget(parent),
m_layout(new QHBoxLayout(this)),
m_draggedFrame(null... |
<commit_before>/*
* Copyright (C) 2014 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>#include "serialized_fast_value_attribute.h"
#include "streamed_value_saver.h"
#include <vespa/eval/eval/value.h>
#include <vespa/eval/eval/fast_value.hpp>
#include <vespa/eval/streamed/streamed_value_utils.h>
#include <vespa/fastlib/io/bufferedfile.h>
#include <vespa/searchlib/attribute/readerbase.h>
#i... |
<commit_before>#include <string>
#include <stdio.h>
#include "stdlib.h"
#include "dag.h"
#include "engine.h"
#include "failure.h"
void diamond_dag() {
DAG dag("test/diamond.dag");
Engine engine(dag);
if (!engine.has_ready_task()) {
myfailure("Did not queue root tasks");
}
Task *a = e... |
<commit_before>//===-- GDBRemoteCommunicationReplayServer.cpp ------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
<commit_before><commit_msg>algorithms: use std::stable_sort<commit_after><|endoftext|> |
<commit_before><commit_msg>Treeview may lose focus when left/right arrow is used<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: numhead.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-08 16:34:04 $
*
* The Contents of this file are made a... |
<commit_before><commit_msg>Cleaning up commented out code.<commit_after><|endoftext|> |
<commit_before>#include "recorder_base.h"
#include "globals.h"
#include "threads.h"
#include "sift_assert.h"
#include "recorder_control.h"
#include "syscall_modeling.h"
#include <iostream>
VOID countInsns(THREADID threadid, INT32 count)
{
thread_data[threadid].icount += count;
if (thread_data[threadid].icount ... |
<commit_before>/* This is free and unencumbered software released into the public domain. */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "rdfjson.h"
#include <cassert> /* for assert() */
namespace {
struct implementation : public rdf::writer::implementation {
implementation(FILE* stream,
co... |
<commit_before>/*
* bacteria-core, core for cellular automaton
* Copyright (C) 2016 Pavel Dolgov
*
* See the LICENSE file for terms of use.
*/
#ifndef CORE_CONSTANTS_HPP_
#define CORE_CONSTANTS_HPP_
/** Mass increase per one 'eat' command */
const int EAT_MASS = 1;
/** Mass increase per one 'go' command */
cons... |
<commit_before>#pragma once
#include <sstream>
#include <iod/utils.hh>
#include <silicon/symbols.hh>
namespace sl
{
using s::_primary_key;
using s::_auto_increment;
using s::_read_only;
namespace sql_orm_internals
{
auto remove_members_with_attribute = [] (const auto& o, const auto& a)
{
t... |
<commit_before>#pragma once
#include <sstream>
#include <iod/utils.hh>
#include <silicon/symbols.hh>
namespace sl
{
using s::_primary_key;
using s::_auto_increment;
using s::_read_only;
namespace sql_orm_internals
{
auto remove_members_with_attribute = [] (const auto& o, const auto& a)
{
t... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
<commit_before>#include "Editor.hpp"
#include <Engine/Util/Input.hpp>
#include "Util/EditorSettings.hpp"
#include <Engine/Hymn.hpp>
#include <Engine/Manager/Managers.hpp>
#include <Engine/Manager/ScriptManager.hpp>
#include <Engine/Util/FileSystem.hpp>
#include <Engine/MainWindow.hpp>
#include <imgui.h>
#include <GLF... |
<commit_before>/*
* This is an open source non-commercial project. Dear PVS-Studio, please check it.
* PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
*/
#include "mips_memory.h"
#include "mips_instr.h"
#include <infra/instrcache/instr_cache.h>
#include <iostream>
FuncInstr MIPSMemory::fetch... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of Testability Driver Qt Agent
**
** If y... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.