text stringlengths 54 60.6k |
|---|
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the tools applications of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial Licens... |
<commit_before>/*************************************************************************
*
* $RCSfile: parser.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: gh $ $Date: 2001-11-30 15:03:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>/*
* BackwardChainer.cc
*
* Copyright (C) 2014-2017 OpenCog Foundation
*
* Authors: Misgana Bayetta <misgana.bayetta@gmail.com> October 2014
* William Ma <https://github.com/williampma>
* Nil Geisweiller 2016-2017
*
* This program is free software; you can redistribute it and/... |
<commit_before>//===--- ConditionVariable.cpp - ConditionVariable Tests ------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2022 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swi... |
<commit_before>/** \copyright
* Copyright (c) 2015, Stuart W Baker
* 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 not... |
<commit_before>/*
* Copyright (c) 2011, The University of Oxford
* 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>//===- SearchableTableEmitter.cpp - Generate efficiently searchable tables -==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "../../h/stdafx.h"
#include "TextInput.h"
#include "../..//Win32/Win32Window.h"
#include "../../h/Win32Callbacks.h"
#include <Commctrl.h>
using std::wstring;
using std::wstring_view;
namespace Onyx32::Gui::Controls
{
const std::wstring TextInput::Class = L"EDIT";
const int TextI... |
<commit_before>/* <x0/FileInfoService.cpp>
*
* This file is part of the x0 web server project and is released under LGPL-3.
* http://www.xzero.ws/
*
* (c) 2009-2010 Christian Parpart <trapni@gentoo.org>
*/
#include <x0/io/FileInfoService.h>
#include <x0/strutils.h>
#include <x0/sysconfig.h>
#include <boost/toke... |
<commit_before>//===- unittests/libclang/LibclangTest.cpp --- libclang tests -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2009-2010 Klaus Post
Copyright (C) 2014-2015 Pedro Côrte-Real
Copyright (C) 2017 Roman Lebedev
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>#include <Rcpp.h>
using namespace Rcpp;
// used to keep track when we sort our distances
struct pair_dist {
double d;
int i;
int j;
};
// custom comparator for sorting pair-distances
// (C++11 would let us use a lambda instead, but...)
struct pair_dist_cmp {
bool operator() (pair_dist a... |
<commit_before>#include <cpr/cpr.h>
#include <utils.h>
#include "command.h"
#include "../CmdHandler.h"
#include "../option.h"
#include "../skills.h"
#include "../strfmt.h"
#define NP 0
#define SC 1
#define VH 2
#define MAX_URL 128
/* full name of the command */
CMDNAME("cml");
/* description of the command */
CMDDESC... |
<commit_before>#include "codegen.h"
#include <map>
#include <llvm/Constants.h>
#include <llvm/DerivedTypes.h>
#include <llvm/Function.h>
#include <llvm/Transforms/Utils/Cloning.h>
#include <llvm/ADT/ValueMap.h>
#include <llvm/LLVMContext.h>
#include <llvm/Module.h>
#include <llvm/Analysis/Verifier.h>
#include <llvm/S... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit (ITK)
Module: itkWrapPadImageTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2001 Insight Consortium
All rights reserved.
Redist... |
<commit_before>#include <string>
#include <vector>
#include <iostream>
#include <stdlib.h>
#include <cstdio>
#include <sys/wait.h>
#include <sys/stat.h>
using namespace std;
class command{
protected:
vector<string> commandlist;
bool commandPass;
string commandType;
bool allCount;
string nextConnector;
pub... |
<commit_before><commit_msg>Add build Block cut tree<commit_after><|endoftext|> |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// FILE: SpectralInterface.cpp
// PROJECT: Micro-Manager
// SUBSYSTEM: DeviceAdapters
//-----------------------------------------------------------------------------
// DESCRIPTION: Interface for the... |
<commit_before>#include "propagation.h"
#include <lightstep_carrier.pb.h>
#include <algorithm>
#include <cctype>
#include <cstdint>
#include <functional>
#include <iomanip>
#include <ios>
#include <sstream>
namespace lightstep {
#define PREFIX_TRACER_STATE "ot-tracer-"
// Note: these constants are a convention of the ... |
<commit_before>#include <libmesh/libmesh.h>
#include <libmesh/replicated_mesh.h>
#include <libmesh/elem.h>
#include <libmesh/mesh_generation.h>
#include <libmesh/mesh_modification.h>
#include <libmesh/boundary_info.h>
#include "test_comm.h"
#include "libmesh_cppunit.h"
using namespace libMesh;
class AllTriTest : pu... |
<commit_before>#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <new>
#include "phashmap.h"
#include "kbench.h"
#include "time.h"
#define SIZE 1000000
#define NUMEL 100000000
int size;
int main(int argc, char *argv[]){
if (argc > 1)
size = atoi(argv[1]... |
<commit_before>//===- fpcmp.cpp - A fuzzy "cmp" that permits floating point noise --------===//
//
// 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>#pragma once
#include <set>
#include "lib/picojson.h"
#include "definitions.hpp"
#include "util.hpp"
namespace processwarp {
namespace Convert {
/**
* Convert process-id from JSON.
* @param json JSON.
* @return process-id.
*/
inline vpid_t json2vpid(const picojson::value&... |
<commit_before>/* tests/test-rank-md.C
* Time-stamp: <08 Aug 14 07:40:04 Jean-Guillaume.Dumas@imag.fr>
* -----------------------------------------------------
*
* ========LICENCE========
* This file is part of the library LinBox.
*
* LinBox is free software: you can redistribute it and/or modify
* it under the ... |
<commit_before>/////////////////////////////////////////////////////////////////////////
//
// 'Limit Example' RooStats tutorial macro #101
// author: Kyle Cranmer
// date June. 2009
//
// This tutorial shows an example of creating a simple
// model for a number counting experiment with uncertainty
// on both the backg... |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <iostream>
#include "genome.h"
using namespace std;
int main(int argc, const char **argv)
{
if(argc != 4)
{
cout<<"usage: " << endl;
cout<<" " << argv[0] << " RPKM2TPM <in-gtf-file> <out-gtf-file>"<<endl;
... |
<commit_before>#define MS_CLASS "RTC::RtpCodecMime"
// #define MS_LOG_DEV
#include "RTC/RtpDictionaries.hpp"
#include "Utils.hpp"
#include "MediaSoupError.hpp"
#include "Logger.hpp"
namespace RTC
{
/* Class variables. */
std::unordered_map<std::string, RtpCodecMime::Type> RtpCodecMime::string2Type =
{
{ "audio"... |
<commit_before><commit_msg>Aura: fix the touch event doesn't work on Tizen 3.0 issue.<commit_after><|endoftext|> |
<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 <windows.h>
#include <uxtheme.h>
#include <vsstyle.h>
#include <vssym32.h>
#include "base/command_line.h"
#include "base/memo... |
<commit_before>//===- llvm/unittest/Support/TimeValueTest.cpp - Time Value tests ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<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: bootstrap.hxx,v $
* $Revision: 1... |
<commit_before>/*
* Copyright (C) 2008 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>//
// NativeGL_iOS.hpp
// G3MiOSSDK
//
// Created by José Miguel S N on 31/07/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#ifndef G3MiOSSDK_NativeGL_iOS_hpp
#define G3MiOSSDK_NativeGL_iOS_hpp
#include <OpenGLES/ES2/gl.h>
#include "INativeGL.hpp"
class NativeGL2_iOS: pu... |
<commit_before>/*************************************************************************
*
* $RCSfile: uiconfigurationmanager.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2004-03-11 11:05:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the f... |
<commit_before>#include <ph.h>
#include <phInput.h>
#include <phBC.h>
#include <phRestart.h>
#include <phAdapt.h>
#include <phOutput.h>
#include <phPartition.h>
#include <apfMDS.h>
#include <apfMesh2.h>
#include <apf.h>
#include <gmi_mesh.h>
#include <PCU.h>
#include <cassert>
#error "recompile with ENABLE_THREADS=OFF... |
<commit_before>/** @file
* @author Edouard DUPIN
* @copyright 2016, Edouard DUPIN, all right reserved
* @license MPL v2.0 (see license file)
*/
#pragma once
#include <zeus/WebServer.hpp>
#include <eproperty/Value.hpp>
#include <zeus/AbstractFunctionTypeDirect.hpp>
#include <zeus/AbstractFunctionTypeClass.hpp>
#inc... |
<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_OPERATOR_PRODUCTS_HH
#define DUNE_GDT_OPERATOR_PRODUCTS_HH
#include <ty... |
<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_ELLIPTIC_HH
#define DUNE_GDT_PRODUCTS_ELLIPTIC_HH
#include "e... |
<commit_before>// This file is part of the dune-pymor project:
// https://github.com/pyMor/dune-pymor
// Copyright Holders: Felix Albrecht, Stephan Rave
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_PYMOR_PARAMETERS_BASE_HH
#define DUNE_PYMOR_PARAMETERS_BASE_HH
#include... |
<commit_before>// Copyright 2012 Luis Pedro Coelho <luis@luispedro.org>
// License: MIT (see COPYING.MIT file)
#include "base.h"
#include "_png.h"
#include "tools.h"
#include <png.h>
#include <cstring>
#include <vector>
namespace {
void throw_error(png_structp png_ptr, png_const_charp error_msg) {
throw Cannot... |
<commit_before>/*************************************************************************
*
* $RCSfile: ChartFrameloader.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: bm $ $Date: 2003-10-06 09:58:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>/*************************************************************************
*
* $RCSfile: PlottingPositionHelper.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: iha $ $Date: 2003-11-19 13:14:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the ... |
<commit_before>/*
Copyright (c) 2013, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>//
// George 'papanikge' Papanikolaou
// CEID Advance Algorithm Desing Course 2014
// Library of Efficient Data types and Algorithms (LEDA) testing
//
// Strong Components identifier and checker implementation
//
#include "basic.h"
using namespace leda;
/*
* My implementation of Kosaraju's algorithm ... |
<commit_before>// @(#)root/base:$Id$
// Author: Philippe Canal 24/06/2003
/*************************************************************************
* Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*
* this file is part of the oxygen gtk engine
* Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org>
*
* based on the Null Theme Engine for Gtk+.
* Copyright (c) 2008 Robert Staudinger <robert.staudinger@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modif... |
<commit_before>/*
* this file is part of the oxygen gtk engine
* Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org>
*
* based on the Null Theme Engine for Gtk+.
* Copyright (c) 2008 Robert Staudinger <robert.staudinger@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modif... |
<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/command_line.h"
#include "base/string16.h"
#include "base/test/test_timeouts.h"
#include "base/utf_string_conversions.h"... |
<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 <windows.h>
#include <shlobj.h>
#include "chrome/browser/tab_contents/web_drop_target_win.h"
#include "app/clipboard/clipboa... |
<commit_before>#include "musicusermodel.h"
#include <QCryptographicHash>
#include <QtSql/QSqlRecord>
MusicUserModel::MusicUserModel(QObject *parent,QSqlDatabase db)
: QSqlTableModel(parent,db)
{
setTable("MusicUser");
setEditStrategy(QSqlTableModel::OnManualSubmit);
select();
}
bool MusicUserModel::a... |
<commit_before>#include <cmath>
#include <vector>
#include "drake/systems/plants/collision/DrakeCollision.h"
#include "drake/systems/plants/collision/Model.h"
#include "gtest/gtest.h"
using Eigen::Isometry3d;
using Eigen::Vector3d;
namespace DrakeCollision {
namespace {
/*
* Three bodies (cube (1 m edges) and two ... |
<commit_before>#include <iostream>
#include <gtest/gtest.h>
#include "drake/systems/plants/RigidBodyTree.h"
namespace drake {
namespace systems {
namespace plants {
namespace test {
namespace {
class RigidBodyTreeTest : public ::testing::Test {
protected:
virtual void SetUp() {
tree.reset(new RigidBodyTree()... |
<commit_before>// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
// T... |
<commit_before>#include <fstream>
#include <iostream>
#include <math.h>
#include <sstream>
#include <string>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <SOIL/SOIL.h>
#include "shader.h"
using namespace std;
// Window constants to keep viewport size consistent.
const GLuint kWindowWidth = 800;
const GLuin... |
<commit_before>#include "StableRand.h"
#include <QDebug>
StableRand::StableRand(double exponent, double skewness, double scale, double location) :
U(-M_PI_2, M_PI_2), N(0, M_SQRT2)
{
setParameters(exponent, skewness, scale, location);
}
void StableRand::setParameters(double exponent, double skewn... |
<commit_before>#include "include/trikControl/mailbox.h"
#include "src/mailboxServer.h"
#include <QtCore/QEventLoop>
using namespace trikControl;
Mailbox::Mailbox(int port)
: mWorker(new MailboxServer(port))
{
QObject::connect(mWorker.data(), SIGNAL(newMessage(int, QString)), this, SIGNAL(newMessage(int, QString))... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENS... |
<commit_before>/*************************************************************************
*
* $RCSfile: admininvokationpage.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2003-03-25 16:00:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the foll... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: selectlabeldialog.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2007-04-26 08:08:29 $
*
* The Contents of this file ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ucbcmds.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-09 15:16:40 $
*
* The Contents of this file are made a... |
<commit_before>//===- llvm/unittest/VMCore/ConstantsTest.cpp - Constants unit tests ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "testparams.h"
#include "MPITestFixture.h"
#include <algorithm>
extern TestParams globalTestParams;
using namespace clusterlib;
using namespace std;
const string appName = "processSlot-app";
class ClusterlibProcessSlot : public MPITestFixture {
CPPUNIT_TEST_SUITE(ClusterlibProcessSlot);
... |
<commit_before>/**************************************************************************
**
** Copyright (c) 2014 BogDan Vatra <bog_dan_ro@yahoo.com>
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may ... |
<commit_before>/*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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 ap... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: StyleSheetTable.hxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: vg $ $Date: 2007-10-29 15:27:25 $
*
* The Contents of this file a... |
<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>#include "account_data_view_model.hpp"
#include "account.hpp"
#include "../decimal_variant_data.hpp"
#include "phatbooks_exceptions.hpp"
#include <boost/shared_ptr.hpp>
#include <jewel/debug_log.hpp>
#include <jewel/decimal.hpp>
#include <wx/dataview.h>
#include <wx/variant.h>
#include <cassert>
#include... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLEventsImportContext.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: dvo $ $Date: 2001-08-02 18:51:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: PageMasterImportContext.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: hr $ $Date: 2007-06-27 15:26:44 $
*
* The Contents of thi... |
<commit_before>#ifndef VIENNAGRID_ELEMENT_VIEW_HPP
#define VIENNAGRID_ELEMENT_VIEW_HPP
/* =======================================================================
Copyright (c) 2011-2012, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
... |
<commit_before>/** @file
@brief Implementation for class that tracks and identifies LEDs.
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in comp... |
<commit_before><commit_msg>SingleSplitView: survive minimize / restore when resize changes leading bounds. BUG=16855<commit_after><|endoftext|> |
<commit_before><commit_msg>a.cpp<commit_after>#include <iostream>
<|endoftext|> |
<commit_before>#include <pcl/ModelCoefficients.h>
#include <pcl/sample_consensus/method_types.h>
#include <pcl/sample_consensus/model_types.h>
#include <pcl/segmentation/sac_segmentation.h>
#include <pcl/filters/extract_indices.h>
#include <pcl/sample_consensus/ransac.h>
#include <pcl/sample_consensus/sac_model_line.h>... |
<commit_before>//
// Created by Danni on 09.06.15.
//
#include "ZAssemblyGenerator.h"
#include <sstream>
#include <vector>
using namespace std;
using namespace experimental;
static const string INST_START = "\t";
static const string INST_END = "\n";
static const string INST_LABEL_MARKER = "?";
static const string IN... |
<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>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>#include <sstream>
#include <iostream>
#include <fstream>
#include <vector>
#include <cassert>
#include <cmath>
#include <tr1/memory>
#include <boost/program_options.hpp>
#include <boost/program_options/variables_map.hpp>
#include "verbose.h"
#include "hg.h"
#include "prob.h"
#include "inside_outside.h... |
<commit_before>// Copyright (c) 2016 Bitcoin Unlimited Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// All global variables that have construction/destruction dependencies
// must be placed in this file so that the... |
<commit_before>
#include <GUIDOEngine/GUIDOEngine.h>
#include <GUIDOEngine/GDeviceOSX.h>
#include <GUIDOEngine/GFontOSX.h>
#include <GUIDOEngine/GMemoryDeviceOSX.h>
#include <GUIDOEngine/GPrinterDeviceOSX.h>
#include <GUIDOEngine/GSystemOSX.h>
#include <GUIDOEngine/SVGSystem.h>
#include <guido-c.h>
// const char *byt... |
<commit_before>#include <stan/math/error_handling/check_finite.hpp>
#include <gtest/gtest.h>
using stan::math::check_finite;
TEST(MathErrorHandling,CheckFinite) {
const char* function = "check_finite(%1%)";
double x = 0;
double result;
EXPECT_TRUE(check_finite(function, x, "x", &result))
<< "check_finit... |
<commit_before>#include <stan/model/indexing/rvalue_index_size.hpp>
#include <gtest/gtest.h>
#include <vector>
// error checking is during indexing, not during index construction
// so no tests here for out of bounds
TEST(modelIndexingRvalueIndexSize, multi) {
using stan::model::index_multi;
using stan::model::rv... |
<commit_before>// 11 may 2015
// TODO split out winapi includes
#include "tablepriv.h"
// before we start, why is this file C++? because the following is not a valid C header file!
// namely, UIAutomationCoreApi.h forgets to typedef enum xxx { ... } xxx; and typedef struct xxx xxx; so it just uses xxx incorrectly
// an... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2014 Max-Planck-Institute for Intelligent Systems,
* University of Southern California
* Jan Issac (jan.issac@gmail.com)
* Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
* All rights reserved.
*
* Redist... |
<commit_before>/**
* \file FFT.cpp
*/
#include <cmath>
#include <complex>
#include <cstdlib>
#include "FFT.h"
namespace ATK
{
template<class DataType_>
FFT<DataType_>::FFT()
#if ATK_USE_FFTW == 1
:fft_plan(NULL), input_data(NULL), output_freqs(NULL)
#endif
#if ATK_USE_ACCELERATE == 1
:fftSetup(NULL), outpu... |
<commit_before>/***********************************************************************
cgi_jpeg.cpp - Example code showing how to fetch JPEG data from a BLOB
column and send it back to a browser that requested it by ID.
Use load_jpeg.cpp to load JPEG files into the database we query.
Copyright (c) 1998 by Kevi... |
<commit_before>/*
Copyright (c) 2019-2022, Hossein Moein
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 conditions... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>/*------------ant.cpp---------------------------------------------------------//
*
* ants -- We have them
*
* Purpose: Figure out ant pathing to food. I want food.
*
*-----------------------------------------------------------------------------*/
#include <array>
#include <iostream>
#include... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2016 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>/*
* sanitize - rewrite a string to a suitable (secure) one - implementation
* Copyright(c) 2003-2004 of wave++ (Yuri D'Elia)
* Distributed under GNU LGPL without ANY warranty.
*/
// interface
#include "sanitize.hh"
using std::string;
// system headers
#include <algorithm>
using std::remove_copy_if... |
<commit_before><commit_msg>Revert "[DF] Work around TTree::GetLeaf bug in GetBranchOrLeafTypeName"<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkCanvas.h"
#include "SkString.h"
#include "SkTypeface.h"
#include "SkTypes.h"
static const char* gFaces[] = {
"Times Roman",
... |
<commit_before>// Hello World example
// This example shows basic usage of DOM-style API.
#include "rapidjson/document.h" // rapidjson's DOM-style API
#include "rapidjson/prettywriter.h" // for stringify JSON
#include "rapidjson/filestream.h" // wrapper of C stream for prettywriter as output
#include <cstdio>
... |
<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 ... |
<commit_before># Based on https://github.com/NaaS/system/blob/master/naasferatu/front-end/hadoop*.naas
type hadoop_wc : record
# FIXME not sure what a "vlen" is in that example -- i can understand that
# it's a variable length integer, so shall we just call it an integer?
key_len : integer
{ signed = f... |
<commit_before>/*
* heap.hpp
*
* Created on: 2012-11-21
* Author: kevin
*/
#ifndef HEAP_HPP__
#define HEAP_HPP__
#include "vector.hpp"
namespace zl
{
template<class T>
class Heap
{
public:
Heap()
{
}
~Heap()
{
}
Heap(const CSimpleVector<T>& array)
{
m_array = array;
}
prot... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.