text stringlengths 54 60.6k |
|---|
<commit_before>#pragma once
#ifdef WIN32
# define kengine_assume(x) __assume(x)
#else
# define kengine_assume(x) (void)0
#endif
#ifdef kengine_ndebug
# define kengine_assert(em, x) (void)0
# define kengine_assert_with_message(em, x, message) (void)0
# define kengine_assert_failed(em, x) (void)0
# define kengine_debug... |
<commit_before>#pragma once
#include <boost/optional.hpp>
#include <glm/vec3.hpp>
#include <glm/gtx/vec1.hpp>
#include "../glew.detail/c.hxx"
#include "../glew.detail/gl_type.hxx"
#include "../stblib.hxx"
// assimp::Importer
#include <assimp/Importer.hpp>
// aiPostProcessSteps for assimp::Importer::ReadFile
#inclu... |
<commit_before>#ifndef EASYPR_CHARS_HPP
#define EASYPR_CHARS_HPP
namespace easypr {
namespace demo {
int test_chars_segment() {
std::cout << "test_chars_segment" << std::endl;
cv::Mat src = cv::imread("resources/image/chars_segment.jpg");
std::vector<cv::Mat> resultVec;
CCharsSegment plate;
int result =... |
<commit_before>/** @file
A brief file description
@section license License
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 fi... |
<commit_before>#include "fmatvec/atom.h"
#include <boost/preprocessor/iteration/local.hpp>
using namespace std;
using namespace boost;
namespace fmatvec {
// a shared null stream object
shared_ptr<ostream> Atom::_nullStream = make_shared<ostream>(static_cast<streambuf*>(NULL));
// initialize the static streams with... |
<commit_before>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <resolv.h>
#include <string>
#include <iostream>
#include <event2/event.h>
#include <event2/http.h>... |
<commit_before>// LAF OS Library
// Copyright (C) 2012-2018 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "base/memory.h"
#include "base/string.h"
#if _WIN32
#include <windows.h>
#eli... |
<commit_before>#define DEBUG 1
/**
* File : F.cpp
* Author : Kazune Takahashi
* Created : 6/14/2020, 3:53:32 AM
* Powered by Visual Studio Code
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <chrono>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdi... |
<commit_before>#include <iostream> //cout
#include <cstdlib> //rand, sran
#include <string>
#include "complex_matrices.h"
#include <gmc.h> //LaGenMatComplex
#include <laslv.h> //LUFactorizeIP, LaLUInverseIP, etc.
#include <blas3pp.h>
using namespace std;
/* Total [13/20] */
/* Printing [6/9] */
void p... |
<commit_before>/*
Copyright (c) 2007 Till Adam <adam@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any late... |
<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: vendorbase.hxx,v $
* $Revision: ... |
<commit_before><commit_msg>planning: removed a line to change existing conf value of a gflag<commit_after><|endoftext|> |
<commit_before>#include "framework/safaia/Safaia.h"
using namespace Safaia;
int main(){
auto unitTest = UnitTest();
// Unit Test Diagnostics
auto secUnitTest = UnitTest();
auto tstUnitTestSuc = CaseSet("Unit Test Success Exampe");
tstUnitTestSuc.add(ASSERT("THIS MUST BE A SUCCESS", 1, 1, EQUAL));
... |
<commit_before>/*
kopeteavatarmanager.cpp - Global avatar manager
Copyright (c) 2007 by Michaël Larouche <larouche@kde.org>
Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<commit_before>// Copyright 2019 Open Source Robotics Foundation, Inc.
// Copyright 2016-2018 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 Lic... |
<commit_before>/*************************************************************************
*
* $RCSfile: dbexception.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: fs $ $Date: 2001-11-08 12:48:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: BIndex.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: rt $ $Date: 2005-09-08 05:21:45 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* $RCSfile: DConnection.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: oj $ $Date: 2002-07-05 08:09:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>/*!
* Copyright (c) 2016 by Contributors
* \file q_fully_connected.cc
* \brief Quantized FC operator
* \author HPI-DeepLearning
*/
#include "./q_fully_connected-inl.h"
#include "./xnor_cpu.h"
namespace mshadow {
using namespace mxnet::op::xnor_cpu;
inline void QFullyConnectedForward(const Ten... |
<commit_before>/***********************************************************************************
** MIT License **
** **
** Copyright (c) 2018 Victor DENIS (victordenis01@... |
<commit_before>/* Copyright (c) 2016-2016, Vasil Dimov
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, modify, merge, pub... |
<commit_before>#include "acmacs-base/pybind11.hh"
// chart
#include "acmacs-chart-2/factory-import.hh"
#include "acmacs-chart-2/factory-export.hh"
#include "acmacs-chart-2/chart-modify.hh"
// merge
#include "acmacs-chart-2/merge.hh"
// ======================================================================
inline un... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2015 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "attribute_manager_initializer.h"
#include "attributes_initializer_base.h"
#include "attribute_collection_spec_factory.h"
#include <vespa/searchcorespi/index/i_thread_service.h... |
<commit_before>
#include "deferred_allocator.h"
using namespace gcpp;
#include <iostream>
#include <iomanip>
#include <memory>
#include <vector>
#include <algorithm>
using namespace std;
class Counter {
public:
Counter() { ++count_; }
~Counter() { --count_; }
static int count() { return count_; }
private:
stati... |
<commit_before>#include <matrix.hpp>
#include <catch.hpp>
#include <iostream>
using namespace std;
SCENARIO("matrix init", "[init]") {
Matrix matrix;
REQUIRE(matrix.rows() == 0);
REQUIRE(matrix.columns() == 0);
}
SCENARIO("params init", "[init with params]") {
int init = 5;
Matrix matrix(init, init);
REQUIRE(m... |
<commit_before>#include <stack.cpp>
#include <catch.hpp>
#include <iostream>
using namespace std;
SCENARIO("count", "[count]"){
stack<int> s;
s.push(1);
REQUIRE(s.count()==1);
}
SCENARIO("push", "[push]"){
stack<int> s;
s.push(1);
REQUIRE(s.count()==1);
REQUIRE(s.pop()==1);
}
SCENARIO("top", "[top]"){
... |
<commit_before>#include <BinaryTree.hpp>
#include <catch.hpp>
SSCENARIO ("init", "[init]")
{
BinaryTree<int> obj;
REQUIRE(obj.root_() == NULLPTR);
REQUIRE(obj.data() == 0);
}<commit_msg>Update init.cpp<commit_after>#include <BinaryTree.hpp>
#include <catch.hpp>
SSCENARIO ("init", "[init]")
{
BinaryTree<int> o... |
<commit_before>
#include <tree.hpp>
#include <catch.hpp>
SCENARIO("null")
{
Tree<int> a;
REQUIRE(a.tree_one()==NULL);
}
<commit_msg>Update init.cpp<commit_after>
#include <tree.hpp>
#include <catch.hpp>
SCENARIO("null")
{
Tree<int> a;
REQUIRE(a.tree_one()==NULL);
}
SCENARIO("find")
{
Tree<int> a;
a.add(5);
b... |
<commit_before>//-----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2017 Jeff Hutchinson
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), t... |
<commit_before>#include "gtest/gtest.h"
int main(int argc, char *argv[])
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
<commit_msg>Make ASSERTs in helper functions fail the parent testcase<commit_after>#include "gtest/gtest.h"
class ThrowListener : public testing::EmptyTestEventListener
{
... |
<commit_before>#include "SharedResource.h"
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE(Basic_construction)
{
SharedResource<int> shared_int;
}
BOOST_AUTO_TEST_CASE(Construction_with_argument)
{
SharedResource<int> shared_int(5);
}
BOOST_AUTO_TEST_CASE(Construction_no_... |
<commit_before>#include <iostream>
#include <vector>
#include <array>
#include <valarray>
#include "aaa.hpp"
void test_std_algorithms();
void test_algorithms();
void test_vector_space_operations();
void test_euclidean_space_operations();
void test_logical_operations();
int main()
{
test_std_algorithms();
test_a... |
<commit_before>#include <iostream>
#include "lua-cpp/luacpp.h"
using namespace luacpp;
using namespace std;
static void test_number() {
LuaState l;
l.Set("var", 5);
auto lobj = l.Get("var");
cout << "var: type -> " << lobj.GetTypeStr()
<< ", value = " << lobj.ToNumber() << endl;
}
static voi... |
<commit_before>/*
SPIDER.h - Library for flashing LED code.
Created by Craig I. Hagan 10/25/2019
Released into the public domain.
*/
#include "Arduino.h"
#include "SPIDER.h"
#include "Sleep.h"
#include "DFRobotDFPlayerMini.h"
//#include "NewPing.h"
#define NR_BLINKS 20
#define DELAY_TIME 120
SPIDER::SPIDER(LE... |
<commit_before>
// Date Created: January 03, 2014
// Last Modified: January 03, 2014
//
// Author: Vallentin <mail@vallentinsource.com>
//
// Github: https://github.com/VallentinSource/SimpleBMP
#include "simplebmp.h"
#define _CRT_SECURE_NO_WARNINGS
#include <fstream>
int SimpleBMP::save(const int width, const i... |
<commit_before>extern "C" {
#include "thumbnailer.h"
#include <string.h>
}
#include "util.hh"
#include <Magick++.h>
#include <functional>
#include <stdexcept>
#ifndef MIT_LICENSE
#include "compress_png.hh"
#endif // MIT_LICENSE
// Iterates over all pixels and checks, if any transparency present
static bool has_transp... |
<commit_before>#include <BALL/STRUCTURE/logP.h>
namespace BALL
{
LogP::LogP()
{
molecular_similarity_ = new MolecularSimilarity("fragments/functionalGroups.smarts");
addRule("[$([CH4]),$([CH3]C),$([CH2](C)C)]",0.14441); // C1
addRule("[$([CH](C)(C)C),$([C](C)(C)(C)C)]",0.00000); // C2
addRule("[$([CH3][#7... |
<commit_before>//===-- ValueObjectChild.cpp ------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// $Id: AnalyticalSES_test.C,v 1.2 2000/05/23 10:23:45 oliver Exp $
#include <BALL/CONCEPT/classTest.h>
///////////////////////////
#include <BALL/STRUCTURE/analyticalSES.h>
#include <BALL/KERNEL/fragment.h>
///////////////////////////
START_TEST(AnalyticalSES, "$Id: AnalyticalSES_test.C,v 1.2 2000/05/... |
<commit_before>// $Id: RegularData1D_test.C,v 1.7 2001/07/10 17:50:11 amoll Exp $
#include <BALL/CONCEPT/classTest.h>
///////////////////////////
#include <BALL/DATATYPE/regularData1D.h>
///////////////////////////
START_TEST(class_name, "$Id: RegularData1D_test.C,v 1.7 2001/07/10 17:50:11 amoll Exp $")
//////////... |
<commit_before>//
// Aspia Project
// Copyright (C) 2018 Dmitry Chapyshev <dmitry@aspia.ru>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your ... |
<commit_before>//
// Aspia Project
// Copyright (C) 2020 Dmitry Chapyshev <dmitry@aspia.ru>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your ... |
<commit_before>/*
This file is part of the E_Rendering library.
Copyright (C) 2014-2015 Sascha Brandt <myeti@mail.upb.de>
This library is subject to the terms of the Mozilla Public License, v. 2.0.
You should have received a copy of the MPL along with this library; see the
file LICENSE. If not, you can obtain one... |
<commit_before>/*
This file is part of KAddressBook.
Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
This progr... |
<commit_before>/*
* Copyright (c) 2013 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.... |
<commit_before>/*
This file is part of Kontact.
Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
Copyright (c) 2005-2006,2008 Allen Winter <winter@kde.org>
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 Sof... |
<commit_before>/*
This file is part of Kontact.
Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
Copyright (c) 2005-2006,2008 Allen Winter <winter@kde.org>
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 Sof... |
<commit_before>#include <iostream>
#include "sbe/list/list.hpp"
struct FooItem: public sbe::ListItem<FooItem>
{
size_t index;
inline FooItem( void ) : index (0) {}
inline ~FooItem( void ) {}
explicit inline FooItem( size_t in_index ) : index (in_index) {}
FooItem( Fo... |
<commit_before>/*
Copyright (c) 2006 Volker Krause <vkrause@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) a... |
<commit_before>#include "../Flare.h"
#include "FlareSectorInterface.h"
#include "FlareSimulatedSector.h"
#include "../Spacecrafts/FlareSpacecraftInterface.h"
#include "../Economy/FlareCargoBay.h"
#include "../Game/FlareGame.h"
#define LOCTEXT_NAMESPACE "FlareSectorInterface"
/*---------------------------------------... |
<commit_before>#include <iostream>
#include <sstream>
#include "SDL.h"
#include "SDL_gfxPrimitives.h"
#include "SDL_ttf.h"
#include "sdlwindow.h"
#include "misc/fpscounter.h"
#include "controller/sdlcontroller.h"
#include "resources/imageresource.h"
#include "resources/stringfontresource.h"
namespace Zabbr {
/**
... |
<commit_before>#include "GraphicsRendererSystem.h"
#include <RenderInterface.h>
#include "GraphicsBackendSystem.h"
#include <GraphicsWrapper.h>
#include <RenderStateEnums.h>
#include "ShadowSystem.h"
#include <GPUTimer.h>
#include <AntTweakBarWrapper.h>
#include "ParticleRenderSystem.h"
GraphicsRendererSystem::Graphic... |
<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>#include <string>
#include <vector>
#include <algorithm>
#include <fstream>
#include <time.h>
using namespace std;
// Loads in names of all roommates from the input file into a string vector
vector<string> getProblem(const string f)
{
ifstream input(f);
vector<string> answer;
for( std::string line; ... |
<commit_before>/*
This file is part of Kontact.
Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
Copyright (c) 2005-2006 Allen Winter <winter@kde.org>
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... |
<commit_before>#include <boost/test/unit_test.hpp>
//This header includes the default definitions of ports
#include <flexcore/ports.hpp>
// This Header includes the code for multiplexing streams.
#include <flexcore/pure/mux_ports.hpp>
// This header includes several useful connectables.
#include <flexcore/core/connec... |
<commit_before>/*
Copyright(c) 2016-2017 Panos Karabelas
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, modify, merge, p... |
<commit_before>/*
**
** Copyright (C) 2012 Aldebaran Robotics
*/
#include <map>
#include <boost/lexical_cast.hpp>
#include <gtest/gtest.h>
#include <qi/qi.hpp>
#include <qi/application.hpp>
#include <qitype/type.hpp>
#include <qitype/genericobject.hpp>
#include <qitype/genericobjectbuilder.hpp>
#include <qimessagin... |
<commit_before>/* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... |
<commit_before>#include <iostream>
#include "gdal_priv.h"
#include "cpl_conv.h" // for CPLMalloc()
#include "io.h"
using namespace std;
/**
* @brief A short function description
*
* A more detailed function description
*/
int printRasterInfo(const char* pszFilename)
{
GDALDataset *poDataset;
GDALAllRegister(... |
<commit_before>/*
* Copyright (C) 2014 Daniel Vrátil <dvratil@redhat.com>
*
* 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 late... |
<commit_before>#include <tiramisu/tiramisu.h>
using namespace tiramisu;
void gen(std::string name, int size, int val0, int val1)
{
tiramisu::init(name);
tiramisu::function *function0 = global::get_implicit_function();
tiramisu::constant N("N", tiramisu::expr((int32_t) size), p_int32, true, NULL, 0, func... |
<commit_before>
#include "QtApp.hpp"
#include "QtMenu.hpp"
#include "PythonHelpers.h"
#include "PyThreading.hpp"
#include <QAction>
// Dummy vars for QApplication.
// Note that the App construction is late at init. The Python code
// has already parsed all args and warned about unknown ones, etc.
// If we want to allo... |
<commit_before>#include <string>
#include <stdio.h>
#include <tag.h>
#include <tstringlist.h>
#include <tbytevectorlist.h>
#include <tpropertymap.h>
#include <oggfile.h>
#include <vorbisfile.h>
#include <oggpageheader.h>
#include <cppunit/extensions/HelperMacros.h>
#include "utils.h"
using namespace std;
using namespa... |
<commit_before>//========================================================
// Hazi feladat keret.
// A //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// sorokon beluli reszben celszeru garazdalkodni, mert
// a tobbit ugyis toroljuk.
// A Hazi feladat csak ebben a fajlban lehet
// Tilos:
// - mast "beincl... |
<commit_before>#ifndef ALEPH_TOPOLOGY_IO_PLY_HH__
#define ALEPH_TOPOLOGY_IO_PLY_HH__
#include "filtrations/Data.hh"
#include "utilities/String.hh"
#include "topology/Simplex.hh"
#include "topology/SimplicialComplex.hh"
#include <cassert>
#include <fstream>
#include <limits>
#include <map>
#include <set>
#include <s... |
<commit_before>#include "DXResourceContext.h"
DXResourceContext::DXResourceContext()
{
mDevice = 0;
mContext = 0;
mSwapChain = 0;
mPrimaryRT = 0;
mPostProcessRT = 0;
mBackBufferRT = 0;
mPrimaryRTV = 0;
mPostProcessRTV = 0;
mBackBufferRTV = 0;
mDepthStencilView = 0;
}
DXResourceContext::~DXResourceConte... |
<commit_before>// Copyright (c) 2006-2008 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 "app/resource_bundle.h"
#include <atlbase.h>
#include "base/file_util.h"
#include "base/logging.h"
#include "base/path_... |
<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>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkSimilarity2DTransformTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 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_LI... |
<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 "MARCdata.hpp"
void MARCdata::csvOutput(const std::string filename){
constructSubfields();
ogzstream table(filename.c_str());
table << "008lang|100a|100d|240n|245a|260a|260b|260c|300a|300c|650a|650y,651y|650z,651a,651z\n";
for (auto& book : books){
int langIdx = book["008"]['#'].length()-... |
<commit_before>/*************************************************************************
*
* $RCSfile: unovirtualmachine.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2005-07-07 10:53:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>/*
This file is part of KAddressBook.
Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
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 Lice... |
<commit_before>//==============================================================================
// CellML annotation view details widget
//==============================================================================
#include "cellmlannotationviewdetailswidget.h"
#include "treeview.h"
//=============================... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge,... |
<commit_before>//==============================================================================
// CellML Model Repository window
//==============================================================================
#include "cellmlmodelrepositorywindow.h"
#include "cellmlmodelrepositorywidget.h"
//================... |
<commit_before>#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <queue>
#include <poll.h>
#include <fcntl.h>
#include <sys/mman.h>
using namespace std;
#include "DRAMRequest.h"
#include "dramDefs.h"
#include "channel.h"
Channel *cmdChannel =... |
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*-
uiserver/keyselectionjob.cpp
This file is part of Kleopatra, the KDE keymanager
Copyright (c) 2007 Klarälvdalens Datakonsult AB
Kleopatra is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Licen... |
<commit_before>//===----------------------------------------------------------------------===//
//
// 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>//@HEADER
// ***************************************************
//
// HPCG: High Performance Conjugate Gradient Benchmark
//
// Contact:
// Michael A. Heroux ( maherou@sandia.gov)
// Jack Dongarra (dongarra@eecs.utk.edu)
// Piotr Luszczek (luszczek@eecs.utk.edu)
//
// modified by Dominic Meiser, ... |
<commit_before>#ifndef ARRAY_HPP
#define ARRAY_HPP
#include <ace-vm/Value.hpp>
namespace ace {
namespace vm {
class Array {
public:
Array(int size = 0);
Array(const Array &other);
~Array();
Array &operator=(const Array &other);
inline bool operator==(const Array &other) const { return this == &o... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3
of the License, or (a... |
<commit_before>// Copyright 2018 Global Phasing Ltd.
//
// Selections.
#ifndef GEMMI_SELECT_HPP_
#define GEMMI_SELECT_HPP_
#include <string>
#include <cstdlib> // for strtol
#include <cctype> // for isalpha
#include <climits> // for INT_MIN, INT_MAX
#include "fail.hpp" // for fail
#include "model.hpp" // for ... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkPContingencyStatistics.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This... |
<commit_before>//
// Copyright (C) 2016 University of Amsterdam
//
// 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.
/... |
<commit_before>
#include "../Flare.h"
#include "FlareGameUserSettings.h"
#include "FlareGame.h"
#include "../Player/FlarePlayerController.h"
/*----------------------------------------------------
Constructor
----------------------------------------------------*/
UFlareGameUserSettings::UFlareGameUserSettings(const ... |
<commit_before>#include "j1UIScene.h"
#include "j1App.h"
#include "j1Fonts.h"
#include "UI_element.h"
#include "UI_Button.h"
#include "j1Input.h"
#include "j1Render.h"
j1UIScene::j1UIScene()
{
pausable = false;
}
j1UIScene::~j1UIScene()
{
}
bool j1UIScene::Awake()
{
return true;
}
bool j1UIScene::Start()
{
_TTF_... |
<commit_before>/*
* Copyright (C) 2013
* Alessio Sclocco <a.sclocco@vu.nl>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any lat... |
<commit_before>/** String conversion definitions.
*
* DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/stringconv instead.
*
* Copyright (c) 2000-2019, Jeroen T. Vermeulen.
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code, please notify the distributor o... |
<commit_before>#ifndef SIGMA_ENTITY_HPP
#define SIGMA_ENTITY_HPP
#include <sigma/config.hpp>
#include <cinttypes>
#include <functional>
namespace sigma {
struct SIGMA_API entity {
entity() noexcept;
entity(std::uint32_t index, std::uint32_t version) noexcept;
bool operator==(entity o) const noexcept;
... |
<commit_before>//===- LinalgTensorCodegenDriver.cpp - Linalg transformation driver--------===//
//
// 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>//===--- AllocBoxToStack.cpp - Promote alloc_box to alloc_stack -----------===//
//
// 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>#include<LiquidCrystal.h>
LiquidCrystal lcd(8,9,10,11,12,13);
int R=5; // REED SWITCH
int P=7; // POWER --not needed
int X=6; // PIR
int T=A3; // TEMPERATURE - A2 has already been defined as Analog Pin 2 in
int H=A5; //HUMIDITY
int L=A4; //LIGHT
int M1=3; //MOTOR PIN #1
int M2=4; ... |
<commit_before>#include <cassert>
#include <string>
#include <vector>
#include <utility>
#include <algorithm>
#include <map>
#include <cmath>
#include "common.h"
#define WARN printf
namespace {
// this is the same as read_u64_le, but uses uint64_t as in/out
uint64_t ReverseBytes(uint64_t x) {
return ((x & ... |
<commit_before>/**
* @file stringUtils.cpp
*
*/
// Copyright 2001 California Institute of Technology
#ifdef WIN32
#pragma warning(disable:4786)
#pragma warning(disable:4503)
#endif
#include "ct_defs.h"
#include "ctexceptions.h"
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
name... |
<commit_before>#pragma ident "$Id: $"
#include <iostream>
#include "Exception.hpp"
#include "DayTime.hpp"
#include "CommandOptionParser.hpp"
#include "StringUtils.hpp"
#include "ValarrayUtils.hpp"
#include "ObsArray.hpp"
#include "SparseBinnedStats.hpp"
void dumpRaw(std::ostream& ostr, const gpstk::ObsArray& oa, bo... |
<commit_before>#pragma once
#include <iterator>
#include <stdexcept>
#include <limits>
#include <functional>
#include <numeric>
#include "acmacs-base/throw.hh"
#include "acmacs-base/stream.hh"
// ----------------------------------------------------------------------
namespace acmacs
{
namespace internal
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.