text stringlengths 54 60.6k |
|---|
<commit_before>/* kpilotConfig.cc KPilot
**
** Copyright (C) 1998-2001 by Dan Pilone
**
** This is all of KPilot's config-handling stuff.
*/
/*
** 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 Foundati... |
<commit_before>// Copyright (C) 2010 - 2015 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University
// of Manchester.
// All rights reserved.
// Copyright (C) 2009 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., EML Research, gGmbH, University of H... |
<commit_before>/// \file ROOT/TLogger.h
/// \ingroup Base ROOT7
/// \author Axel Naumann <axel@cern.ch>
/// \date 2015-03-29
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/********************************************************... |
<commit_before>/* Begin CVS Header
$Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/function/CEvaluationNodeFunction.cpp,v $
$Revision: 1.1 $
$Name: $
$Author: shoops $
$Date: 2005/05/27 21:00:58 $
End CVS Header */
#include "copasi.h"
#include "mathematics.h"
#include "CEvaluationNode.h"... |
<commit_before>//---------------------------------------------------------------------------
// csved_exec.cpp
//
// execute external command against each CSV input record
//
// Copyright (C) 2009 Neil Butterworth
//---------------------------------------------------------------------------
#include "a_exec.h"... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/include/usr/hwpf/hwp/chip_accessors/getOscswitchCtlAttr.H ... |
<commit_before>/*
* Copyright (C) 2009, Willow Garage, Inc.
*
* 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 condition... |
<commit_before>/*
* Copyright (C) 2013-2014 Intel Corporation. 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>
#include <vector>
#include <algorithm>
#include <iostream>
#include "MutableHeap.hpp"
#include <boost/test/unit_test.hpp>
#include "boost_helpers.hpp"
// template< typename T >
// class MutablePriorityQueue
// {
// };
BOOST_AUTO_TEST_SUITE( MutableHeap_tests );
// BOOST_AUTO_TEST_CASE( Hello... |
<commit_before>// Virtual memory allocator for CPU/GPU
#if defined(CUDA_FOUND)
#include "cuda_utils.h"
#endif
#include "tlang_util.h"
#include <taichi/unified_allocator.h>
#include <taichi/system/virtual_memory.h>
#include <string>
TLANG_NAMESPACE_BEGIN
UnifiedAllocator *allocator_instance = nullptr;
UnifiedAllocato... |
<commit_before>//NIM dabs oktber 1997
#include <iostream>
#include <conio.h>
#include <stdlib.h>
using namespace std;
//etta fall a birta stu allra eldsptnahrgna (hrgur fleirtlu eignarfalli)
void birta( int* hruga );
//etta fall a reikna t hversu margar eldsptur eru eftir hrgunum:
int samtals( int* hruga );
//e... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// Name: vcscommand.cpp
// Purpose: Implementation of wxExVCSCommand class
// Author: Anton van Wezenbeek
// Created: 2010-08-27
// RCS-ID: $Id$
// Copyright: (c) 2010 Anton van Wezenbeek
/////////////////////... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2006 Ulrich von Zadow
//
// 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
// version 2 of the Li... |
<commit_before>/*******************************************************************************
Module: JSBSim.cpp
Author: Jon S. Berndt
Date started: 08/17/99
Purpose: Standalone version of JSBSim.
Called by: The USER.
------------- Copyright (C) 1999 Jon S. Berndt (jsb@hal-pc.org) -------... |
<commit_before>#include "instanciate.h"
#include "details/context/isolate.h"
#include <memory>
#include "details/reporting/report.h"
#include "details/atom/func-overload-match.h"
#include "details/reporting/message.h"
#include "details/utils/origin.h"
#include "libnany-traces.h"
using namespace Yuni;
namespace N... |
<commit_before>#include "yebash.hpp"
#include "History.hpp"
#include "catch.hpp"
#include <initializer_list>
#include <iostream>
#include <algorithm>
#include <sstream>
using namespace yb;
using namespace std;
namespace {
History createHistory(initializer_list<string> const& commands) {
stringstream ss;
for... |
<commit_before>// Copyright (C) 2015 Jérôme Leclercq
// This file is part of the "Nazara Development Kit"
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
#include <Nazara/Core/Error.hpp>
#include <type_traits>
namespace Ndk
{
inline World::World(bool addDefaultSystems)
{
if (a... |
<commit_before>AliAnalysisTaskSEDs *AddTaskDs()
{
//
// Test macro for the AliAnalysisTaskSE for Ds candidates
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
::Error("AddTaskDs", "No analysis manag... |
<commit_before>#include "schedulers/bulk_scheduler.h"
#include "schedulers/always_switch_scheduler.h"
#include "schedulers/never_switch_scheduler.h"
#include "schedulers/binary_throttle_scheduler.h"
#include "schedulers/wojtek_throttle_scheduler.h"
#include "schedulers/magic_throttle_scheduler.h"
#include "gflags/gfla... |
<commit_before>// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "Lic... |
<commit_before>#include "Particles/ParticleSystem.h"
#include "Particles/ParticleData.h"
#include <iostream>
namespace particles {
/* ParticleSystem */
ParticleSystem::ParticleSystem(int maxCount) : emitRate(0.f), m_dt(0.f) {
m_particles = new ParticleData(maxCount);
}
ParticleSystem::~ParticleSystem() {
delete... |
<commit_before><commit_msg>cid#1254675 Uncaught exception<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: testcontainer.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-08 09:32:23 $
*
* The Contents of this file are ... |
<commit_before>// -*- mode: c++; c-basic-offset:4 -*-
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
// Access Protocol.
// Copyright (c) 2002,2003 OPeNDAP, Inc.
// Author: James Gallagher <jgallagher@opendap.org>
//
// This library is free software; you can redistribute it and/or
// modify ... |
<commit_before>#include "stdafx.h"
#include "CityGen.h"
#include "Structure.h"
#include "Rect.h"
#include "Utilities.h"
#include "SavableCityData.h"
#include "BaseFrame.h"
#include "ActorSystem.h"
#include "ActorAids.h"
//the size of each city
const int citysize = 150;
//the space between each city
const int cityspac... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2014
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>/*
В языке С++ базовая работа с символами и строками аналогична C.
Символы заключаются в одинарные кавычки
'a', '8', '&', ' '
Фактически, каждый символ представляет из себя некоторый знак: буквы, цифра, плюс, минус и прочие.
Однако, в C/C++ некоторые символы состоят из нескольки... |
<commit_before>#ifndef __KD_TREE_HPP_
#define __KD_TREE_HPP_
#include <string>
#include <iostream>
#include <vector>
//______________________________________________________________________________
class Point {
public :
// constructors
Point();
Point(double x, double y, double z);
Point(c... |
<commit_before>#include <seqan/basic.h>
#include <seqan/seq_io.h>
#include <seqan/sequence.h>
using namespace seqan;
int main(int argc, char ** argv)
{
CharString path = SEQAN_TEMP_FILENAME();
append(path, ".fa");
// Open file and check for errors.
SequenceStream seqStream(toCString(path), SequenceSt... |
<commit_before>#ifndef SELECTION_BOILERPLATE_HPP
#define SELECTION_BOILERPLATE_HPP
#include <atomic>
#include <libnest2d/libnest2d.hpp>
namespace libnest2d { namespace selections {
template<class RawShape>
class SelectionBoilerplate {
public:
using ShapeType = RawShape;
using Item = _Item<RawShape>;
usin... |
<commit_before>//===---- LiveRangeCalc.cpp - Calculate live ranges -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===--- MinGWToolChain.cpp - MinGWToolChain Implementation ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*****************************************************************************
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>/*
* This file is part of OpenModelica.
*
* Copyright (c) 1998-CurrentYear, Linköping University,
* Department of Computer and Information Science,
* SE-58183 Linköping, Sweden.
*
* All rights reserved.
*
* THIS PROGRAM IS PROVIDED UNDER THE TERMS OF GPL VERSION 3
* AND THIS OSMC PUB... |
<commit_before>#include "Tle.h"
#include <cassert>
#include <cstdlib>
Tle::Tle(const std::string& line_one, const std::string& line_two) {
name_.erase();
line_one_ = line_one;
line_two_ = line_two;
Initialize();
}
Tle::Tle(const std::string& name, const std::string& line_one, const st... |
<commit_before>
// This work derives from Vittorio Romeo's code used for cppcon 2015 licensed under the Academic Free License.
// His code is available here: https://github.com/SuperV1234/cppcon2015
#ifndef EC_MANAGER_HPP
#define EC_MANAGER_HPP
#define EC_INIT_ENTITIES_SIZE 256
#define EC_GROW_SIZE_AMOUNT 256
#incl... |
<commit_before>/****************************************************************************
** libebml : parse EBML files, see http://embl.sourceforge.net/
**
** <file/class description>
**
** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved.
**
** This file is part of libebml.
**
** This library is free sof... |
<commit_before>
#include "density_clustering_opencl.hpp"
#include "tools.hpp"
#define __CL_ENABLE_EXCEPTIONS
#include <utility>
#include <CL/cl.hpp>
#include <CL/opencl.h>
#include <omp.h>
#include <iostream>
#include <string>
#include <fstream>
#include <map>
#include <tuple>
namespace DC_OpenCL {
std::tuple<cl:... |
<commit_before>#include "ofApp.h"
// Configuration
int imgcount = 326;
bool usePort = false;
bool fullscreen = false;
int maxDistance = 1000;
int sleepMillis = 100;
// Serial port, for reading distance from ultrasonic sensor.
// Optional.
ofSerial serialPort;
// Images that make up the animation sequence
std::map<in... |
<commit_before>/**
* @file device_properties.hxx
* @author Muhammad Osama (mosama@ucdavis.edu)
* @brief
* @version 0.1
* @date 2020-10-05
*
* @copyright Copyright (c) 2020
*
*/
#pragma once
#include <iostream>
#include <gunrock/cuda/device.hxx>
#include <gunrock/error.hxx>
namespace gunrock {
namespace cuda {... |
<commit_before>// FbTime.cc for FbTk - Fluxbox Toolkit
// Copyright (c) 2012 Mathias Gumz (akira at fluxbox dot org)
//
// 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,... |
<commit_before>#include "Filesystem.h"
#include <fstream>
#include <utility>
namespace tigl {
auto readFile(const boost::filesystem::path& filename) -> std::string {
std::ifstream existingFile(filename.string());
if (!existingFile)
return{};
// read file to string
existingFile.seekg(0, std::ifstream::end... |
<commit_before>/**
* This file implements a command line utility to interact
* with the d2 library.
*/
#include <d2/analysis.hpp>
#include <d2/event_repository.hpp>
#include <d2/graph_construction.hpp>
#include <boost/assert.hpp>
#include <boost/assign.hpp>
#include <boost/foreach.hpp>
#include <boost/function.hpp... |
<commit_before><commit_msg>Removed incorrect StyleInvalidator FIXME.<commit_after><|endoftext|> |
<commit_before>//
// FileManager.hpp
// CatchLib
//
// Created by John Barbero Unenge on 9/17/12.
// Copyright (c) 2012 John Barbero Unenge. All rights reserved.
//
#if __APPLE__
#include <OpenGLES/ES2/gl.h>
#else
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#endif
#ifndef CatchiOS_FileManager_h
#define Catch... |
<commit_before>#include <memory>
#include <wx/progdlg.h>
#include <wx/window.h>
#include "Plater.hpp"
#include "ProgressStatusBar.hpp"
#include "Log.hpp"
#include "MainFrame.hpp"
namespace Slic3r { namespace GUI {
const auto PROGRESS_BAR_EVENT = wxNewEventType();
Plater::Plater(wxWindow* parent, const wxString& t... |
<commit_before>/*
* For licensing please refer to the LICENSE.md file
*/
#pragma once
#include <string>
#include <vector>
#include <valarray>
#include <array>
#include <fstream>
#include <map>
namespace neon
{
struct ElementData
{
ElementData(int numberOfNodes, int numberOfTags, int elementType, int id) :
... |
<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>#include <iostream>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "thor/PrimitiveTypes.h"
#include "thor/lang/Language.h"
#include "thor/lang/String.h"
#include "thor/container/Vector.h"
using namespace thor;
namespace
{
void draw_background(SDL_Renderer *renderer, int w, int h)
{
SD... |
<commit_before>/// @author Владимир Керимов
#pragma once
#include <data/bytes>
#include <data_head/object_data.hpp>
namespace data
{
class bytes::data : public object::data
{
public:
data();
private:
};
}
// sine qua non
<commit_msg>Saved change.<commit_after>/// @author Владимир Кери... |
<commit_before><commit_msg>BUG: removing items and adding again clears previous selection. mantis #1025<commit_after><|endoftext|> |
<commit_before>/* A recursive C++ program to find Grundy Number for
a game.
Game Description : The game starts with a number- 'n'
and the player to move divides the number- 'n' with 2, 3
or 6 and then takes the floor. If the integer becomes 0,
it is removed. The last player to move wins. */
#include<bits... |
<commit_before>/*
Copyright 2011, Jernej Kovacic
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 in wri... |
<commit_before>#include <Vertica.h>
using Vertica::TransformFunction;
using Vertica::TransformFunctionFactory;
extern "C" {
#include <json/selector.h>
#include <json/slice.h>
}
#include "JsonCopyResult.hpp"
template<class D>
class AbstractJsonArrayUnnest : public TransformFunction {
public:
virtual void processPar... |
<commit_before>/*************************************************************************
*
* $RCSfile: mslangid.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2006-04-07 14:30:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#include "MQTTClient.h"
void messageArrived(MQTT::MessageData& messageData) {
MQTT::Message &message = messageData.message;
// null terminate topic to create String object
int len = messageData.topicName.lenstring.len;
char topic[len+1];
memcpy(topic, messageData.topicName.lenstring.data, (s... |
<commit_before>/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2018-2019 Baldur Karlsson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... |
<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 "net/proxy/dhcp_proxy_script_fetcher_win.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/metrics/hist... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: taskpanelist.cxx,v $
*
* $Revision: 1.18 $
*
* last change: $Author: rt $ $Date: 2005-09-09 12:31:37 $
*
* The Contents of this file are ... |
<commit_before>R__LOAD_LIBRARY(dt_RunDrawTest.C+)
void dt_wrap(const char* from, Int_t mode = 0, Int_t verboseLevel = 0) {
// gROOT->ProcessLine(".L dt_RunDrawTest.C+");
int status = !dt_RunDrawTest(from,mode,verboseLevel);
if (verboseLevel==0) gSystem->Exit(status);
}
<commit_msg>correct syntax for preloadin... |
<commit_before>/*
* Copyright (C) 2012 Kolibre
*
* This file is part of kolibre-naviengine.
*
* Kolibre-naviengine 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 2.1 of the Licens... |
<commit_before>/**
* @file Cosa/DS18B20.cpp
* @version 1.0
*
* @section License
* Copyright (C) 2012, 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
* ver... |
<commit_before>#ifndef ANY_HPP
# define ANY_HPP
# pragma once
#include <cassert>
#include <cstdint>
#include <stdexcept>
#include <typeinfo>
#include <type_traits>
#include <utility>
namespace generic
{
class any
{
using typeid_t = ::std::uintptr_t;
template <typename T>
static typeid_t type_id()
{
... |
<commit_before>/************************************************************************/
/* */
/* Copyright 2009 by Ullrich Koethe and Hans Meine */
/* */
/* ... |
<commit_before>//=================================================================================================
// Copyright (C) 2017 Olivier Mallet - All Rights Reserved
//=================================================================================================
#ifn... |
<commit_before>//--------------------------------------------------------------- SudokuGrid.cpp
#include "SudokuGrid.h"
#include "SetOperations.h"
#include <numeric>
#include <stdexcept>
#include <string>
using namespace std;
namespace {
const string subhorz(13, '-');
const string subhorz2(13, ' ');
const string ho... |
<commit_before>/**
* @file VolumeData.cpp
* @author Takashi Michikawa <michikawa@acm.org>
*/
#include <mi/VolumeData.hpp>
namespace mi
{
template <typename T>
class VolumeData<T>::Impl
{
public:
Impl ( void ) : _isReadable ( false )
{
... |
<commit_before>//
// Created by ante on 10/28/16.
//
#include "algorithms.h"
#include <iostream>
#include <malloc.h>
#include <queue>
#include "divsufsort.h"
using namespace std;
/**
* Function compute number of occurrences letters smaller than 'c' from alphabet defined at 'bigSigma'.
* @param c: letter for searchi... |
<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>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICE... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>#include "headers/dungeon_data.h"
#define TAB "\t"
using namespace std;
string DungeonRoom::toString()
{
ostringstream sout;
sout << "{" << endl;
sout << TAB << TAB << TAB << "\"ID\":\"" << uid << "\"," << endl;
sout << TAB << TAB << TAB << "\"Name\":\"" << name << "\"," << endl;
sout << TAB << T... |
<commit_before>
#include <QApplication>
#include <QPixmap>
#include <QImage>
#include <QPainter>
#include <QGLWidget>
#include <QTextLayout>
#include <QVBoxLayout>
#include <QTime>
#include <QDebug>
#ifdef HAVE_STATICTEXT
#include <private/qstatictext_p.h>
#endif
int iterations = 20;
const int count = 6;
const int li... |
<commit_before>#include <drafts/OpenCL/GL.hpp>
#include <DO/Sara/Core/DebugUtilities.hpp>
#include <DO/Sara/Core/HDF5.hpp>
#include <DO/Sara/Core/StringFormat.hpp>
#include <DO/Sara/Core/Timer.hpp>
#include <DO/Sara/ImageIO.hpp>
#include <DO/Sara/ImageProcessing/Flip.hpp>
#include <DO/Kalpana/Math/Projection.hpp>
#i... |
<commit_before>/** \file augment_canones_references.cc
* \brief A tool for adding numerical canon law references to MARC-21 datasets.
* \author Dr. Johannes Ruscheinski
*/
/*
Copyright (C) 2019, Library of the University of Tübingen
This program is free software: you can redistribute it and/or modi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lineaction.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2005-09-08 08:18:40 $
*
* The Contents of this file are mad... |
<commit_before>#include "n_text_list_selector.h"
#include <window/n_list_dialog.h>
#include <n_project.h>
NTextListSelector::NTextListSelector(QWidget *parent) : QPushButton(parent) {
connect(this, SIGNAL(clicked()), this, SLOT(execListDialog()));
this->setFlat(true);
this->setStyleSheet("QPushButton { ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: querydlg.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: obo $ $Date: 2006-09-17 07:27:09 $
*
* The Contents of this file are mad... |
<commit_before>#include "Var.h"
void *Var::operator new (size_t n, Pool *pool) {
return pool -> palloc(sizeof(Var));
}
void Var::operator delete(void* ptr, Pool *pool) {
free(ptr);
}
void Var::get_expression(ostream &out, string wrapEntity, Position position) {
if (wrapEntity == "App" && position == _rig... |
<commit_before>//===--- Term.cpp - A term in the generics rewrite system -----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2021 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swi... |
<commit_before>/** \brief Importer for full text documents.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2018 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the... |
<commit_before>//===-- TargetInstrInfoImpl.cpp - Target Instruction Information ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===-- MCJIT.cpp - MC-based Just-in-Time Compiler ------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
* Copyright (c) 2015-2016 WinT 3794 <http://wint3794.org>
*
* 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 r... |
<commit_before>/*
Adam Austin
4/22/2016
TA: Quesada
*/
#include "Person.h"
#include "FamilyTree.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
FamilyTree *myFamilyTree = new FamilyTree(); // Create an instance of familyTree
Person *unknownPerson = new Person("Unknown");
unknow... |
<commit_before>#pragma once
#include <cmath>
template <typename Type>
class Flock
{
public:
Flock();
Type num1;
Type num2;
Type num3;
Flock(Type a, Type b, Type c)
{
this->num1 = a;
this->num2 = b;
this->num3 = c;
}
bool checkFlock()
{
// ab + c^a = (a + b - c) + ac^2 * b
bool condition = this->nu... |
<commit_before>//===-- ARMTargetMachine.cpp - Define TargetMachine for ARM ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the "Instituto Nokia de Tecnologia" and
// is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT f... |
<commit_before>//===-- X86TargetMachine.cpp - Define TargetMachine for the X86 -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===- StripSymbols.cpp - Strip symbols and debug info from a module ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===- SSAUpdater.cpp - Unstructured SSA Update Tool ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "AppDelegate.h"
#include "scenes/SceneMenu.h"
#include "scenes/SceneFinish.h"
#include "scenes/SceneGame.h"
#include "SoundManager/SoundManager.h"
USING_NS_CC;
AppDelegate::AppDelegate() {
}
AppDelegate::~AppDelegate()
{
}
//if you want a different context,just modify the value of glContex... |
<commit_before>/*
pluginloader.cpp - Kopete Plugin Loader
Copyright (c) 2002 by Duncan Mac-Vicar Prett <duncan@kde.org>
Copyright (c) 2002-2003 by Martijn Klingens <klingens@kde.org>
Portions of this code based in Noatun plugin code:
Copyright (c) 2000-2002 The Noatun Developers
Ko... |
<commit_before>// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "bin/directory.h"
bool Directory::Open(const char* path, intptr_t* dir) {
UN... |
<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.mas[i][j] == 0);
}
}... |
<commit_before>#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "coconfig.h"
#if defined(_MSC_VER)
#define WIN32_LEAN_AND_MEAN
#define VC_EXTRALEAN
#include <Windows.h>
#else
#include <signal.h>
#endif
typedef int32_t (*test_func_t)();
extern int32_t test_simple ();
exter... |
<commit_before>#include "lest.hpp"
#include "../twombly.hpp"
#include <iostream>
using namespace tw;
#define RED 2
#define GREEN 1
#define BLUE 0
#define ALPHA 3
int opencv_error_handler(int status, const char* func_name, const char* err_msg,
const char* file_name, int line, void*)
{
return ... |
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* Razor - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
*
* Copyright: 2013 Razor team
* Authors:
* Petr Vanek <petr@yarpen.cz>
* Alexander Sokoloff <sokoloff.a@gmail.com>
*
* This program or library is free software; you can ... |
<commit_before>/*************************************************************************
*
* $RCSfile: process_impl.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2004-06-17 13:27:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>#include "test.h"
#include "../Source/Database.h"
#include "../Source/Libs/SteamVdfParse.hpp"
#include <QList>
#include <QDir>
#include <QFile>
inline bool operator==(Game g1, Game g2)
{
return g1.id == g2.id && g1.gameName == g2.gameName && g1.gameDirectory == g2.gameDirectory && g1.executablePath... |
<commit_before>#include "drape/overlay_tree.hpp"
#include "drape/constants.hpp"
#include "std/algorithm.hpp"
#include "std/bind.hpp"
namespace dp
{
int const kFrameUpdatePeriod = 10;
int const kAverageHandlesCount[dp::OverlayRanksCount] = { 300, 200, 50 };
int const kInvalidFrame = -1;
namespace
{
class HandleCom... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.