text stringlengths 54 60.6k |
|---|
<commit_before>
#include "antsUtilities.h"
#include <algorithm>
#include "itkSurfaceCurvatureBase.h"
#include "itkSurfaceImageCurvature.h"
#include "ReadWriteImage.h"
namespace ants
{
/*
void test1()
{
typedef itk::SurfaceCurvatureBase<ImageType> ParamType;
ParamType::Pointer Parameterizer=ParamType::New();
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: commandcontainer.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: obo $ $Date: 2006-07-10 15:09:08 $
*
* The Contents of this file ... |
<commit_before>#include "fake_lem1802.hpp"
#include <algorithm>
#include <cctype>
namespace cpu {
// Consts
const char esc = 27; // ESC character -> ANSI escape codes
/**
* @brief Moves the terminal cursor at row X
*/
inline void row (int x)
{
std::cout << esc << "[0;" << (x) << "H";
}
Fake_Lem1802::Fake_Lem... |
<commit_before>/**
* Copyright 2008 Matthew Graham
* 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 l... |
<commit_before>//
// TextureBuilder.hpp
// Clock Signal
//
// Created by Thomas Harte on 08/03/2016.
// Copyright © 2016 Thomas Harte. All rights reserved.
//
#ifndef Outputs_CRT_Internals_TextureBuilder_hpp
#define Outputs_CRT_Internals_TextureBuilder_hpp
#include <cstdint>
#include <memory>
#include <vector>
#... |
<commit_before>/*************************************************************************
*
* $RCSfile: lineinfo.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2004-08-23 08:36:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include "components/camera.hpp"
#include "components/collision.hpp"
#include "components/player.hpp"
#include "components/render.hpp"
#include "components/transform.hpp"
#include "components/velocity.hpp"
#include "data.hpp"
#include "exception.hpp"
#include <fstream>
#include <iostream>
#include <map>... |
<commit_before>#include <gdb.hpp>
#include <array>
#include <cassert>
namespace narcissus {
//XXX
namespace h8_3069f {
gdb_server::gdb_server(
std::array<std::uint8_t, (std::uint32_t)h8_3069f::mem_info::rom_size>&& memory,
boost::asio::io_service& io_service,
... |
<commit_before>// $Id$
// The libMesh Finite Element Library.
// Copyright (C) 2002-2007 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
... |
<commit_before>// $Id: fe_clough.C,v 1.3 2005-02-23 03:42:16 roystgnr Exp $
// The libMesh Finite Element Library.
// Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson,
// Roy H. Stogner
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser Genera... |
<commit_before>//===-LTOBackend.cpp - LLVM Link Time Optimizer Backend -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#pragma once
#include <vector>
#include <opencv2/opencv.hpp>
#include "window.hh"
struct mblbp_feature
{
// self-explanatory constructor
mblbp_feature(int x, int y, int block_width, int block_height);
// horizontal (x, y) offset relative to the origin of the window
int x, y;
int block_w; //... |
<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: xpathapi.hxx,v $
* $Revision: 1.... |
<commit_before>
// Copyright 2010-2012 University of Washington. All Rights Reserved.
// LICENSE_PLACEHOLDER
// This software was created with Government support under DE
// AC05-76RL01830 awarded by the United States Department of
// Energy. The Government has certain rights in the software.
#pragma once
#include "G... |
<commit_before>/*
*
* Copyright 2018 gRPC authors.
*
* 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 applicab... |
<commit_before>//----------------------------------*-C++-*----------------------------------//
/*!
* \file core/Transfer_Data_Field.hh
* \author Stuart Slattery
* \date Fri Nov 18 11:57:58 2011
* \brief Transfer_Data_Field class definition.
* \note Copyright (C) 2011 Oak Ridge National Laboratory, UT-Battel... |
<commit_before>// Copyright 2010 Google Inc. All Rights Reserved.
// Author: jacobsa@google.com (Aaron Jacobs)
//
// 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.... |
<commit_before>#include "ff.h"
#include "utils/string_utils.hpp"
extern "C" {
WCHAR ff_uni2oem (DWORD uni, WORD cp)
{
}
};
<commit_msg>Remove: cleanup<commit_after><|endoftext|> |
<commit_before>#include <gtest/gtest.h>
#include <test/models/utility.hpp>
#include <fstream>
#include <stan/io/dump.hpp>
#include <stan/mcmc/chains.hpp>
#include <boost/date_time/posix_time/posix_time_types.hpp>
class LogisticSpeedTest :
public testing::Test {
public:
static const size_t num_chains;
static bool... |
<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 "stan/math/functions/logical_eq.hpp"
#include <gtest/gtest.h>
TEST(MathFunctions,logical_eq) {
using stan::math::logical_eq;
EXPECT_TRUE(logical_eq(1,1));
EXPECT_TRUE(logical_eq(5.7,5.7));
EXPECT_TRUE(logical_eq(0,0.0));
EXPECT_FALSE(logical_eq(0,1));
EXPECT_FALSE(logical... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: Bservices.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-08 05:25:24 $
*
* The Contents of this file are made... |
<commit_before>/*************************************************************************
*
* $RCSfile: CConnection.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: oj $ $Date: 2001-10-05 06:15:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>#include <fstream>
#include <iostream>
using namespace std;
template <class T>
class Tree
{
private:
struct Node
{
T value_;
Node *left;
Node *right;
Node() {};
Node(const T value) : value_(value) { };
~Node() {};
void show(ostream &out, int level) const;
};
Node *root;
void null_... |
<commit_before>#include "physics/checkpointer.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace principia {
namespace physics {
using base::not_null;
using base::Status;
using geometry::Instant;
using quantities::si::Second;
using ::testing::MockFunction;
using ::testing::Ref;
using ::testing::Return;... |
<commit_before>/*
* Copyright (c) 2003-2011 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.... |
<commit_before><commit_msg>Prediction: fix angle diff typo<commit_after><|endoftext|> |
<commit_before>/// \file ROOT/TPad.hxx
/// \ingroup Gpad ROOT7
/// \author Axel Naumann <axel@cern.ch>
/// \date 2017-07-06
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/*********************************************************... |
<commit_before>// @(#)root/hist:$Id$
// Author: Olivier Couet 13/07/09
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>#include <string.h>
#include "merlin_image.h":
namespace merlin {
Persistent<FunctionTemplate> MerlinImage::constructor_template;
Handle<Value>
MerlinImage::New(const Arguments& args) {
HandleScope scope;
node::Buffer *buf = ObjectWrap::Unwrap<node::Buffer>(args[0]->ToObject());
MerlinImag... |
<commit_before>// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availa... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
// Copyright � 2007, Daniel �nnerby
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
... |
<commit_before>#include <cassert>
#include <algorithm>
#include <libinput.h>
#include <iostream>
extern "C"
{
#include <wlr/types/wlr_seat.h>
}
#include "input-inhibit.hpp"
#include "signal-definitions.hpp"
#include "core.hpp"
#include "touch.hpp"
#include "keyboard.hpp"
#include "cursor.hpp"
#include "input-manager... |
<commit_before>#include<bits/stdc++.h>
using namespace std;
const int much = 1000000;
bool is_prime[much];
void sieve(){
memset (is_prime, true, sizeof(is_prime));
is_prime[0] = is_prime [1] = false;
for (int i = 2; i < much; ++i) {
for (int j = (i << 1); j < much; j += i) {
is_prime[j] = false;
}
}
}
boo... |
<commit_before>/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
#include "atn/LL1Analyzer.h"
#include "Token.h"
#include "atn/RuleTransition.h"
#include "misc/IntervalSet... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2018 ARM Limited
*
* 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>// copyright
#include "cif++/Config.h"
#include "cif++/Cif++.h"
#include "cif++/BondMap.h"
#include "cif++/Compound.h"
#include "cif++/CifUtils.h"
using namespace std;
namespace mmcif
{
// --------------------------------------------------------------------
BondMap::BondMap(const Structure& p)
: d... |
<commit_before>#pragma once
#include "CSingleton.hpp"
#include <vector>
#include <string>
#include <unordered_map>
#include <tuple>
#include <boost/chrono.hpp>
using std::vector;
using std::string;
using std::unordered_map;
using default_clock = boost::chrono::steady_clock;
#include "types.hpp"
#include "mysql.hpp"... |
<commit_before>/*
* Copyright (c) 2019, Open Source Robotics Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above ... |
<commit_before>#include <tiramisu/tiramisu.h>
#include "benchmarks.h"
#include "math.h"
using namespace tiramisu;
/***
Benchmark for the BLAS NRM2
out = sqrt(x*'x)
where :
x : is a size N vector
x': is the transpose of x
out : is a scalar
***/
int main(int argc, char **argv)
{
tiramisu::i... |
<commit_before>/*************************************************************************
*
* $RCSfile: moduleacceleratorconfiguration.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2004-11-17 14:58:05 $
*
* The Contents of this file are made available subject to the terms of
* either... |
<commit_before>#include "pch.h"
#include "ChakraHost.h"
#include "JsStringify.h"
#include "SerializedSourceContext.h"
void ThrowException(const wchar_t* szException)
{
// We ignore error since we're already in an error state.
JsValueRef errorValue;
JsValueRef errorObject;
JsPointerToString(szException... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2015 ARM Limited
*
* 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>/* The MIT License
Copyright (c) 2014 Adrian Tan <atks@umich.edu>
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 ... |
<commit_before>// Copyright 2020 The IREE Authors
//
// Licensed 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
#include <utility>
#include "iree/compiler/Dialect/HAL/IR/HALOps.h"
#include "ire... |
<commit_before>// This file is part of Poseidon.
// Copyleft 2020, LH_Mouse. All wrongs reserved.
#ifndef POSEIDON_CORE_ABSTRACT_TIMER_
#define POSEIDON_CORE_ABSTRACT_TIMER_
#include "../fwd.hpp"
namespace poseidon {
class Abstract_Timer
{
friend class Timer_Driver;
private:
atomic_relaxed<Async_State>... |
<commit_before>#include <string>
#include <functional>
#include <Console.h>
#include <CPU.h>
#include <APU.h>
#include <PPU.h>
#include <Cart.h>
#include <Controller.h>
#include <Divider.h>
void Console::boot() {
ReadBus cpuReadCallback = [this] (uint16_t addr) {
return cpuRead(addr);
};
WriteBus cpuWrit... |
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// ... |
<commit_before>/* The MIT License
Copyright (c) 2014 Adrian Tan <atks@umich.edu>
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 ... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2015 Estimation and Control Library (ECL). All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef SQLITE_STRATEGIES_H
#define SQLITE_STRATEGIES_H 1
#include <cstdlib>
#include <vector>
#include <algorithm>
#include "common.hh"
#include "queueditem.hh"
#include "sqlite-pst.hh"
class EventuallyPersistentEngine;
... |
<commit_before>/**
* @file log.cpp
*
* @date 2014-7-29 AM8:43:27
* @author salmon
*/
#include "Log.h"
#include <chrono>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include "design_pattern/SingletonHolder.h"
#include "parse_command_line.h"
namespace simpl... |
<commit_before>#include "ProjectManager.hpp"
#include "ViewManager.hpp"
#include "DataSpecRegistry.hpp"
#include "hecl/Blender/Connection.hpp"
namespace urde {
static logvisor::Module Log("URDE::ProjectManager");
ProjectManager* ProjectManager::g_SharedManager = nullptr;
CToken ProjectResourcePool::GetObj(std::string... |
<commit_before>#pragma once
#include "connected_devices.hpp"
#include "constants.hpp"
#include "filesystem.hpp"
#include "logger.hpp"
#include "session.hpp"
#include "types.hpp"
#include <fstream>
#include <json/json.hpp>
#include <natural_sort/natural_sort.hpp>
#include <string>
#include <unordered_map>
// Example: ... |
<commit_before>#include "cinder/app/AppNative.h"
#include "cinder/gl/gl.h"
#include "cinder/Rand.h"
#include "sansumbrella/Box2D.h"
#include "cinder/Triangulate.h"
using namespace ci;
using namespace ci::app;
using namespace std;
using namespace su;
class SandboxApp : public AppNative {
public:
void prepareSettin... |
<commit_before>#include "app.h"
#include <QFileOpenEvent>
#include <QTextStream>
#include <QFileInfo>
#include <QDir>
#include "mainwindow.h"
namespace NeovimQt {
/// A log handler for Qt messages, all messages are dumped into the file
/// passed via the NVIM_QT_LOG variable. Some information is only available
/// i... |
<commit_before>/******************************************************************************
* Copyright (C) 2016-2017 Kitsune Ral <kitsune-ral@users.sf.net>
*
* 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 th... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// 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
// t... |
<commit_before>#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest.h"
#include <duck/range/combinator.h>
#include <duck/range/range.h>
#include <forward_list>
#include <iterator>
#include <list>
#include <vector>
// FIXME
#include <iostream>
template <typename Derived>
static std::ostream & operator<< (std::... |
<commit_before>#include "YarrarMarkerParser.h"
#include "Util.h"
#include <cassert>
#include <cstdint>
namespace {
using namespace yarrar;
const int FIELD_SIZE = 8;
int getId(const cv::Mat& field)
{
// TODO: A real parser. This is only for testing.
// Final id is fourth line as binary converted to integer.... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (testabilitydriver@nokia.com)
**
** This file is part of Testability Driver Qt Agent
**
** If y... |
<commit_before>/*
* Copyright 2011, 2012 Esrille Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scimpexpmsg.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-08 18:29:13 $
*
* The Contents of this file are ma... |
<commit_before>
#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <regex>
#include <sstream>
#include <string>
#include <tuple>
#include <vector>
#include "process.h"
#include "swap.h"
using namespace std;
// for matc... |
<commit_before>//
// Urho3D Engine
// Copyright (c) 2008-2011 Lasse rni
//
// 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 right... |
<commit_before>// This file is part of the dune-hdd project:
// http://users.dune-project.org/projects/dune-hdd
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_HDD_LINEARELLIPTIC_PROBLEMS_SPE10_HH
#define DUNE_HDD_LINEARELLIPTIC_PROBLEM... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac (jan.issac@gmail.com)
* Copyright (c) 2014 Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before>// Time: O(nlogn)
// Space: O(1)
class Solution {
public:
int minArea(vector<vector<char>>& image, int x, int y) {
const auto searchColumns =
[](const int mid, const vector<vector<char>>& image, bool has_one) {
return has_one == any_of(image.cbegin(), image.cend(... |
<commit_before>/***************************************************************************
* Copyright (c) 2013 Jan Rheinländer *
* <jrheinlaender@users.sourceforge.net> *
* ... |
<commit_before>#ifndef VIENNAMETA_STORAGE_ALGORITHM_HPP
#define VIENNAMETA_STORAGE_ALGORITHM_HPP
/* =======================================================================
Copyright (c) 2011-2014, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
... |
<commit_before>/*
* Copyright 2011, 2012 Esrille Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
<commit_before>/*
* This file is part of signon
*
* Copyright (C) 2010 Nokia Corporation.
*
* Contact: Alberto Mardegan <alberto.mardegan@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published ... |
<commit_before> #include "b9.h"
Instruction program[] = {
decl (0,8), // (args,temps) assume max 8 temps
decl (0,0), // 0: space for JIT address
decl (0,0), // 1: space for JIT address
// Local variable a offset 0
createInstruction(PUSH_CONSTANT,100), // number constant 100
createInstruction(POP_INTO_VAR,... |
<commit_before>#include "mbed.h"
#include "Display.hpp"
Display *Display::mInstance = NULL;
Display *Display::getInstance() {
if(mInstance == NULL) {
mInstance = new Display();
}
return mInstance;
}
void Display::set(int row, int col) { buffers[backBuffer][row][col] = true; }
void Display::reset(int row, ... |
<commit_before>#include <elfio/elfio.hpp>
#include <machine.hpp>
#include <cstring>
using namespace dbt;
#ifdef DEBUG
#define CORRECT_ASSERT() assert(Addr>=DataMemOffset && "Error on correcting address. Data memory offset Value < 0!")
#else
#define CORRECT_ASSERT()
#endif //DEBUG
#define STACK_SIZE 512 * 1024 *... |
<commit_before>#ifndef MIMOSA_ENDIAN_HH
# define MIMOSA_ENDIAN_HH
# ifdef __FreeBSD__
# include <sys/endian.h>
# else
# include <endian.h>
# endif
#endif /* !MIMOSA_ENDIAN_HH */
<commit_msg>Endian support on MacOSX<commit_after>#ifndef MIMOSA_ENDIAN_HH
# define MIMOSA_ENDIAN_HH
# ifdef __FreeBSD__
# include <sys/... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lotimpop.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: vg $ $Date: 2007-02-27 12:38:53 $
*
* The Contents of this file are made... |
<commit_before>#include <unordered_map>
#include <string>
#include <cassert>
#include "string.hpp"
#include "arraylist.hpp"
#ifndef CPROCESSING_HASHMAP_
#define CPROCESSING_HASHMAP_
template <class T>
class HashMap {
public:
std::unordered_map<const char *, T> hm;
HashMap() {}
HashMap(int initialCapacity... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scuiimoptdlg.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2006-03-22 12:10:26 $
*
* The Contents of this file are ... |
<commit_before>// Copyright (c) 2012, Ben Noordhuis <info@bnoordhuis.nl>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PRO... |
<commit_before>#include "all_defines.hpp"
#include "history.hpp"
#include "processes.hpp"
#include "bytecodes.hpp"
#include "reader.hpp"
#include "types.hpp"
void History::entry(void) {
if(known_type<Closure>(stack[0])->kontinuation) {
/*called a continuation: remove tail calls using this continuation*/
known_typ... |
<commit_before>// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQNotes.cpp,v $
// $Revision: 1.6 $
// $Name: $
// $Author: shoops $
// $Date: 2010/08/12 23:19:13 $
// End CVS Header
// Copyright (C) 2010 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., Uni... |
<commit_before>// Copyright (c) 2015, Novartis Institutes for BioMedical Research Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must reta... |
<commit_before>#pragma once
#include <gtl/gtl.hpp>
namespace gtl {
/*!
\class vec2 vec2.hpp geometry/vec2.hpp
\brief 2 dimensional vector.
\ingroup base
This class is used by many other classes.
\sa vec3
*/
template <typename Type>
struct vec2 {
union {
struct... |
<commit_before>/**
* Copyright (c) 2014 Ruben Nijveld, Aaron van Geffen
* See LICENSE for license.
*/
#include "../config.h"
#include "sqlite.h"
#include <sqlite3.h>
#include <stdio.h>
#include <iostream>
namespace dazeus {
namespace db {
/**
* Cleanup all prepared queries and close the connection.
*/
SQLiteDat... |
<commit_before>#include "FastPID.h"
#include <iostream>
using namespace std;
#ifdef ARDUINO
#define __millis() millis()
#else
static uint32_t __timer = 0;
static uint32_t __t() {
__timer += 1000;
return __timer;
}
#define __millis() __t()
#endif
FastPID::~FastPID() {
}
void FastPID::clear() {
_last_sp = 0... |
<commit_before>/* DO NOT EDIT THIS FILE! It was generated by utils/apivergen.abc. */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License+"); you may not use this file except in compliance with
*... |
<commit_before>/*
* Copyright by Michal Majczak & Krzysztof Taperek, 2016
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Author: Krzysztof Taperek <krzysztoftaperek@gmail.com>
*/
#include <GBuffer.hpp>
GBuffer::GBuffer() {
m_fbo = 0;
m_depthTexture = 0;
memset(m_textu... |
<commit_before>/*
* This file is part of accounts-ui
*
* Copyright (C) 2009-2010 Nokia Corporation.
*
* Contact: Alberto Mardegan <alberto.mardegan@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as ... |
<commit_before>//===- lib/CodeGen/GlobalISel/GISelKnownBits.cpp --------------*- C++ *-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------... |
<commit_before>
// -*- mode: c++; c-basic-offset:4 -*-
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
// Access Protocol.
// Copyright (c) 2003 OPeNDAP, Inc.
// Author: James Gallagher <jgallagher@opendap.org>
//
// This library is free software; you can redistribute it and/or
// modify it u... |
<commit_before>#include <cmath>
#include <limits>
#include <sstream>
#include <string>
#include <angles/angles.h>
#include <jaguar/diff_drive.h>
using can::JaguarBridge;
namespace jaguar {
template <typename T>
inline T sgn(T x)
{
if (x > 0) return 1;
else if (x < 0) return -1;
else retu... |
<commit_before>/*
* This file is part of SKATRAK Playground.
*
* SKATRAK Playground 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 License, or
* (at your option) an... |
<commit_before>//
// hopf.cpp
// allovsr
//
// Created by Pablo Colapinto on 11/28/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
//vsr Includes
#include "vsr/vsr.h"
#include "vsr/vsr_op.h"
#include "vsr/vsr_draw.h"
#include "vsr/vsr_camera.h"
#include "vsr/vsr_fiber.h"
//allo includes
#incl... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All right... |
<commit_before>#include "mat5.h"
#include <ostream>
#include <fstream>
#include "istream_std.h"
#include "istream_zlib.h"
namespace nano
{
using std::uint32_t;
inline uint32_t make_uint32(const char* data)
{
return *reinterpret_cast<const uint32_t*>(data);
}
te... |
<commit_before>//===--------------------- ResourceManager.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>#include "platform/platform.h"
bool Platform::openWebBrowser(const char* webAddress)
{
String startingURL(webAddress);
String filteredURL;
U16 length = startingURL.length();
for(U16 i = 0; i < length; i++)
{
filteredURL = filteredURL + '\\' + startingURL[i];
}
String runComm... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2001 The Apache Software Foundation. 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. Redistr... |
<commit_before>/*
Copyright 2016 John Bailey
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 agr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.