text stringlengths 54 60.6k |
|---|
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (C) 2009 Sacha Schutz <istdasklar@free.fr>
* Copyright (C) 2009-2011 Guillaume Martres <smarter@ubuntu.com>
*
* This library is free software; you can red... |
<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 "Lice... |
<commit_before>/*
* Copyright 2001,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... |
<commit_before>/*
* Copyright 2001,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... |
<commit_before>/*
* Copyright 2014 Google 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 applicable l... |
<commit_before>#ifndef STAN_MATH_REV_MAT_FUNCTOR_MAP_RECT_CONCURRENT_HPP
#define STAN_MATH_REV_MAT_FUNCTOR_MAP_RECT_CONCURRENT_HPP
#include <stan/math/prim/mat/fun/typedefs.hpp>
#include <stan/math/prim/mat/functor/map_rect_reduce.hpp>
#include <stan/math/prim/mat/functor/map_rect_combine.hpp>
#include <stan/math/pri... |
<commit_before>//MIT License
//
//Copyright(c) 2016 Matthias Moeller
//
//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... |
<commit_before>/*
Copyright (C) 2011 Martin Klapetek <martin.klapetek@gmail.com>
Copyright (C) 2011 Dario Freddi <dario.freddi@collabora.com>
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 S... |
<commit_before>
// Copyright (c) 2007, 2008 libmv 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 limitation the
// rights to use, copy, ... |
<commit_before>#include <iostream>
#include "toplayer.h"
using namespace std;
int main()
{
toplayer ui;
ui.run();
return 0;
}
<commit_msg>hallo<commit_after>#include <iostream>
#include "toplayer.h"
using namespace std;
int main()
{
toplayer ui;
ui.run();
//hallo
return 0;
}
<|endoftext|> |
<commit_before>#include "sync.h"
size_t Sync::idealLoopBlocks(Track *track) {
SyncPoint *p;
uint8_t ti;
uint8_t i = track->index;
// count sync points to the track for each other track
size_t *counts = new size_t[_trackCount];
for (ti = 0; ti < _trackCount; ti++) counts[ti] = 0;
for (p = _head; p; p = p-... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2009 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated docume... |
<commit_before>// vrkit is (C) Copyright 2005-2007
// by Allen Bierbaum, Aron Bierbuam, Patrick Hartling, and Daniel Shipton
//
// This file is part of vrkit.
//
// vrkit 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
//... |
<commit_before>const char* GetARversion(){
//void GetARversion(){
// Returns AliRoot version extracted from what is found in the
// $ALICE_ROOT/CVS/ directory
//
TString vAli;
const char* vFile = gSystem->ExpandPathName("$ALICE_ROOT/CVS/Tag");
if(gSystem->AccessPathName(vFile)){
vAli="HEAD";
}else{
... |
<commit_before>#include "visgraph.hpp"
#include "../utils/utils.hpp"
#include <cstdio>
#include <cerrno>
int main(int argc, char *argv[]) {
FILE *f = stdin;
if (argc >= 2) {
f = fopen(argv[1], "r");
if (!f)
fatalx(errno, "Failed to open %s for reading", argv[1]);
}
VisGraph g(f);
if (argc >= 2)
fclose(... |
<commit_before>/**************************************************************************
**
** Copyright (C) 2011 - 2012 Research In Motion
**
** Contact: Research In Motion (blackberry-qt@qnx.com)
** Contact: KDAB (info@kdab.com)
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees hold... |
<commit_before>/*************************************************************************/
/* gd_mono_property.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<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
//
// Unless required by applicable law or agreed to in writing, software
// ... |
<commit_before>#include "SolidMaterial.h"
template<>
InputParameters validParams<SolidMaterial>()
{
InputParameters params = validParams<Material>();
// Coupled variables
params.addRequiredCoupledVar("tw", "");
params.addRequiredParam<std::string>("name_of_hs", "heat structure name");
return params;
}
Soli... |
<commit_before>#ifndef ULAM_HPP
#define ULAM_HPP
#include <algorithm>
namespace ulam{
/**
* Converts a prime list index to a spiral index (n is odd) (4)
*
*
*/
size_t stol(size_t i, size_t n){
size_t line = i / n;
size_t col = i % n;
size_t ring_index, side_col = 1, side_line = 1;
if(col < n - ... |
<commit_before>/*
* Reference: http://plms.oxfordjournals.org/content/s2-42/1/230.full.pdf+html
*
* Instruction set
* ===============
* m-config symbol operations final m-config
* string char op1,op2,... string
*
* op:
* L - move left one step
* R - move right one step
* P<symbol> - prin... |
<commit_before>// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_GRID_WALKER_HH
#define DUNE_STUFF_GRID_WALKER_HH
#include <ve... |
<commit_before>/*****************************************************************************************
* *
* owl *
* ... |
<commit_before>// - Tested
#define CRB_CONVOYS
#define RMM_ENEMYPOP
#define CRB_TERRORISTS
#define RMM_ZORA
// - To Test
<commit_msg>- Added missing MSO_FACTIONS include<commit_after>// - Tested
#define MSO_FACTIONS
#define CRB_CONVOYS
#define RMM_ENEMYPOP
#define CRB_TERRORISTS
#define RMM_ZORA
// - To... |
<commit_before>/*
Q Light Controller
efxfixture.cpp
Copyright (c) Heikki Junnila
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.txt
... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: finance.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 so... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: elapsedtime.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: obo $ $Date: 2006-09-17 03:25:35 $
*
* The Contents of this file are m... |
<commit_before>/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
<commit_before>
template<unsigned DIM>
inline CollisionPair<DIM>::CollisionPair(MetaKugel<DIM>& kugel1, MetaKugel<DIM>& kugel2) :
p_kugel1 { &kugel1 }, p_kugel2 { &kugel2 }, dtime { }, collision { } {
}
template<unsigned DIM>
inline CollisionPair<DIM>::CollisionPair(MetaKugel<DIM>& kugel1, MetaKugel<DIM>& kugel2,
... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief RX71M イグナイター・コマンド解析、応答
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/mas... |
<commit_before>// App.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "App.h"
#include <debug.h>
#include <file.h>
#include <config.h>
#include <graphics.h>
#include <input.h>
#include <sound.h>
#include <array>
using namespace yappy;
class MyApp : public graphics::A... |
<commit_before>/*
Its is under the MIT license, to encourage reuse by cut-and-paste.
The original files are hosted here: https://github.com/sago007/PlatformFolders
Copyright (c) 2015-2016 Poul Sander
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated document... |
<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>/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013 Vladimír Vondruš <mosra@centrum.cz>
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 r... |
<commit_before>/*
* Copyright (c) 2001-2004 The Regents of The University of Michigan
* 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 c... |
<commit_before>#include "fake_bci.hpp"
#include <limits>
#include <boost/random/uniform_int_distribution.hpp>
FakeBCI::FakeBCI()
: mOpenCount(0), mOpenRet(true), mInitCount(0), mLastChannels(0), mInitRet(true), mStartCount(0), mStartRet(true),
mAcquireCount(0), mAcquireRet(1), mGetDataCount(0), mpLastGetData(0),... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2010 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// 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 f... |
<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>/***********************************************************************
filename: CEGUIIrrlichtTexture.cpp
created: Tue Mar 3 2009
author: Paul D Turner (based on original code by Thomas Suter)
*************************************************************************/
/*************... |
<commit_before>//
// Copyright (C) 2018 University of Amsterdam
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later ver... |
<commit_before>//
// RewardedAdSceneTester.cpp
// ee_x_test_mobile
//
// Created by eps on 10/7/20.
//
#include "RewardedAdSceneTester.hpp"
#include <cocos2d.h>
#include <ui/CocosGUI.h>
#include <ee/Cpp.hpp>
namespace eetest {
namespace config {
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
constexpr auto iron_s... |
<commit_before>/* Copyright (C) 2014 The gtkmm Development Team
*
* 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.1 of the License, or (at your option) any later v... |
<commit_before>#define _WINSOCKAPI_
#include <httpserv.h>
#include <comdef.h>
class StripHeadersModule : public CHttpModule
{
private:
IAppHostAdminManager * pMgr;
IAppHostElement * pParentElem;
IAppHostElementCollection * pElemColl;
IAppHostElement * pElem;
IAppHostPropertyC... |
<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 "chrome/browser/ui/webui/options/core_options_handler.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/ui_tes... |
<commit_before>#define BOOST_TEST_MODULE "test_implicit_membrane_potential"
#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST
#include <boost/test/unit_test.hpp>
#else
#define BOOST_TEST_NO_LIB
#include <boost/test/included/unit_test.hpp>
#endif
#include <mjolnir/potential/external/ImplicitMembranePotential.hpp>
#include <mjol... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/extensions/extension_constants.h"
namespace extension_manifest_keys {
const wchar_t* kAllFrames = L"all_frame... |
<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.
// Implementation of the installation validator.
#include "chrome/installer/util/installation_validator.h"
#include <algorithm>
#inc... |
<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 "chrome/test/chrome_plugin/test_chrome_plugin.h"
#include "base/at_exit.h"
#include "base/basictypes.h"
#include "base/l... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ItemConverter.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2008-02-18 15:53:38 $
*
* The Contents of this file are ... |
<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 "base/command_line.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/platform_thread.h"
#include ... |
<commit_before>/*************************************************************************
*
* $RCSfile: LineChartType.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: bm $ $Date: 2004-01-26 09:12:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>__mmask16 FORCE_INLINE zero_byte_mask(const __m512i v) {
const __m512i v01 = _mm512_set1_epi32(0x01010101u);
const __m512i v80 = _mm512_set1_epi32(0x80808080u);
const __m512i v1 = _mm512_sub_epi32(v, v01);
const __m512i tmp1 = _mm512_ternarylogic_epi32(v1, v, v80, 0x20);
return... |
<commit_before>#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkGradientShader.h"
#include "SkGraphics.h"
#include "SkImageDecoder.h"
#include "SkPath.h"
#include "SkRegion.h"
#include "SkShader.h"
#include "SkUtils.h"
#include "SkXfermode.h"
#include "SkColorPriv.h"
#include "SkColorFilter... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/bookmarks/bookmark_drag_data.h"
#include "app/clipboard/scoped_clipboard_writer.h"
#include "base/basictypes.... |
<commit_before>//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "ExecutionContext.h"
#include... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2017 Nathan Osman
*
* 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) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/bind.h"
#include "base/file_util.h"
#include "base/scoped_temp_dir.h"
#include "chrome/browser/character_encoding.h"
#in... |
<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 "chrome/browser/chromeos/cros/network_parser.h"
#include "base/json/json_writer.h" // for debug output only.
#include "base/s... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/frame/bubble_window.h"
#include <gtk/gtk.h>
#include "chrome/browser/chromeos/frame/bubble_frame_vi... |
<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 "chrome/browser/desktop_notification_handler.h"
#include "chrome/browser/notifications/desktop_notification_service.h"
#inclu... |
<commit_before>#include "chainerx/dynamic_lib.h"
#include <string>
#include "chainerx/platform.h"
namespace chainerx {
void* DlOpen(const std::string& filename, int flags) { return platform::DlOpen(filename, flags); }
void DlClose(void* handle) { platform::DlClose(handle); }
void* DlSym(void* handle, const char* ... |
<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 "chrome/browser/sync/signin_manager.h"
#include "chrome/browser/net/gaia/token_service.h"
#include "chrome/browser/net/gaia/t... |
<commit_before>#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
extern "C" {
char* __cxa_demangle(const char* mangled_name,
char* buf,
size_t* n,
int* status);
typedef void* (*malloc_func_t)(size_t);
typedef void (*free_func_t)(void*);
char* __u... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <pwd.h>
#include <string.h>
#include "base/port.h"
#include "chrome/browser/sync/util/path_helpers.h"
#include "strings/stru... |
<commit_before>#include "catch.hpp"
#include <mapnik/image_reader.hpp>
#include <mapnik/image_util.hpp>
#include <mapnik/util/file_io.hpp>
#include <mapnik/tiff_io.hpp>
#include "../../src/tiff_reader.cpp"
std::unique_ptr<mapnik::image_reader> open(std::string const& filename)
{
return std::unique_ptr<mapnik::ima... |
<commit_before>/*****************************************************************************
* Media.hpp: Media API
*****************************************************************************
* Copyright © 2015 libvlcpp authors & VideoLAN
*
* Authors: Alexey Sokolov <alexey+vlc@asokolov.org>
* Hugo Be... |
<commit_before>#include <cstdlib>
#include <iostream>
#include "gc/baker.hpp"
#include "objectmemory.hpp"
#include "object_utils.hpp"
#include "builtin/tuple.hpp"
#include "builtin/class.hpp"
#include "builtin/io.hpp"
#include "instruments/stats.hpp"
#include "call_frame.hpp"
#include "gc/gc.hpp"
#include "capi/h... |
<commit_before>#include "test_function.h"
#define _USE_MATH_DEFINES
#include <math.h>
#include <k52/optimization/params/continuous_parameters_array.h>
#include "test_objective_functions.h"
using ::k52::optimization::IObjectiveFunction;
using ::k52::optimization::IContinuousParameters;
using ::k52::optimization::Con... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/platform_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
typedef testing::Test PlatformThreadTest;
// Trivia... |
<commit_before>/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2014 Filipe Coelho <falktx@falktx.com>
*
* 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 ... |
<commit_before>#ifndef SM_PYTHON_ID_HPP
#define SM_PYTHON_ID_HPP
#include <numpy_eigen/boost_python_headers.hpp>
#include <boost/python/to_python_converter.hpp>
#include <Python.h>
#include <boost/cstdint.hpp>
namespace sm { namespace python {
// to use: sm::python::Id_python_converter<FrameId>::register... |
<commit_before>#include <stdexcept>
#include <vector>
#include "all_algorithms.hpp"
#include "common.hpp"
#include "mkl.h"
// Run a single benchmark for multiplying m x k x n with num_steps of recursion.
// To just call GEMM, set num_steps to zero.
// The median of five trials is printed to std::cout.
// If run_chec... |
<commit_before>/*
* Copyright (C) 2009, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#include <boost/bi... |
<commit_before>/* Sirikata Transfer -- Content Transfer mediation
* TransferMediator.hpp
*
* Copyright (c) 2010, Jeff Terrace
* 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>/*
* Copyright (C) 2013-2016 Alexander Saprykin <xelfium@gmail.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) ... |
<commit_before>/*
Copyright (c) 2013, Taiga Nomi
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this ... |
<commit_before>// -*- c-basic-offset: 2 -*-
/*
* This file is part of the KDE libraries
* Copyright (C) 1999-2001 Harri Porten (porten@kde.org)
* Copyright (C) 2001 Peter Kelly (pmk@post.com)
* Copyright (C) 2003 Apple Computer, Inc.
*
* This library is free software; you can redistribute it and/or
* modif... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include "node_pointer.h"
#include <nn.h>
#include <pubsub.h>
#include <pipeline.h>
#include <bus.h>
#include <pair.h>
#include <reqrep.h>
#include <survey.h>
#include <inproc.h>
#include <ipc.h>
#include <tcp.h>
using v8::Array;
using v8::Function;
using v8::Func... |
<commit_before>/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2017 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
<commit_before>/*
* SessionDiagnosticsTests.cpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affe... |
<commit_before>#ifndef option_types_hh_INCLUDED
#define option_types_hh_INCLUDED
#include "array_view.hh"
#include "coord.hh"
#include "containers.hh"
#include "exception.hh"
#include "flags.hh"
#include "hash_map.hh"
#include "option.hh"
#include "string.hh"
#include "units.hh"
#include <tuple>
#include <vector>
na... |
<commit_before>#ifndef option_types_hh_INCLUDED
#define option_types_hh_INCLUDED
#include "array_view.hh"
#include "coord.hh"
#include "exception.hh"
#include "flags.hh"
#include "hash_map.hh"
#include "option.hh"
#include "ranges.hh"
#include "string.hh"
#include "string_utils.hh"
#include "units.hh"
#include <tuple... |
<commit_before>//
// THIS CONTAINS THE IMPLEMENTATION FOR PUBLISHING ON-BOARD CAMERA IMAGES
// ON CRAZYFLIE USING THE CAMERA PUBLISHER CLASS
//
// COPYRIGHT BELONGS TO THE AUTHOR OF THIS CODE
//
// AUTHOR : LAKSHMAN KUMAR
// AFFILIATION : UNIVERSITY OF MARYLAND, MARYLAND ROBOTICS CENTER
// EMAIL : LKUMAR93@UMD.EDU
// L... |
<commit_before>#include <ros/ros.h>
#include <ros/package.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <image_geometry/stereo_camera_model.h>
#include <image_transport/image_transport.h>
#include <sen... |
<commit_before>#include "phash.h"
namespace ys {
phash::phash() {
first = new unsigned short[F_LENGTH];
second = new unsigned int[S_LENGTH];
third = new unsigned long[T_LENGTH];
}
phash::~phash() {
delete[] first;
delete[] second;
delete[] third;
}
long phash::getpHash(unsigned int key) {
... |
<commit_before>/*
* Copyright (c) 2014 liblcf authors
* This file is released under the MIT License
* http://opensource.org/licenses/MIT
*/
#include "reader_options.h"
#ifdef LCF_SUPPORT_ICU
# include "unicode/ucsdet.h"
# include "unicode/ucnv.h"
#else
# ifdef _WIN32
# include <cstdio>
# define WIN32_LEAN... |
<commit_before>#include "BAGame.h"
#include "BAGlobal.h"
#include "BACharacterSelectionHelper.h"
#include "BAVersusScreen.h"
#include "ABMapSprites.h"
#include "BAUI.h"
// --------------------------------------------------
// Helper
// --------------------------------------------------
void drawSelection(ABPoint offse... |
<commit_before>/*
* opencog/atoms/execution/EvaluationLink.cc
*
* Copyright (C) 2009, 2013, 2014, 2015 Linas Vepstas
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free Software... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/touchpad.h"
#include <stdlib.h>
#include <string>
#include <vector>
#include "base/string_util.h"
#... |
<commit_before>/**
* The MIT License (MIT)
*
* Copyright © 2018 Ruben Van Boxem
*
* 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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewcontactoftextobj.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2007-06-27 18:46:49 $
*
* The Contents of this fi... |
<commit_before>/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope... |
<commit_before>/*************************************************************************
*
* $RCSfile: graphicproperties.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2003-11-24 16:50:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>// Copyright 2018 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>////////////////////////////////////////////////////////////////////////////////
// Name: hexmode.cpp
// Purpose: Implementation of class wxExHexModeLine
// Author: Anton van Wezenbeek
// Copyright: (c) 2012 Anton van Wezenbeek
///////////////////////////////////////////////////////////////////... |
<commit_before>/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
... |
<commit_before>// Author: Christophe.Delaere@cern.ch 25/04/04
///////////////////////////////////////////////////////////////////////////
//
// TMLPAnalyzer
//
// This utility class contains a set of tests usefull when developing
// a neural network.
// It allows you to check for unneeded variables, and to control ... |
<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>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2018. All rights reserved
*/
#include "Stroika/Frameworks/StroikaPreComp.h"
#include <iostream>
#include "Stroika/Foundation/Characters/String2Int.h"
#include "Stroika/Foundation/Characters/ToString.h"
#include "Stroika/Foundation/Execution/CommandLine.... |
<commit_before>#include <stack>
#include <vector>
#include <sstream>
#include "Constants.h"
#include "ExpressionUtil.h"
std::string FormatInfix(const std::string& infix)
{
std::string::const_iterator bos = infix.begin();
std::string::const_iterator eos = infix.end();
std::string formatted;
for (std::string::cons... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.