text stringlengths 54 60.6k |
|---|
<commit_before>///////////////////////////////////////////////////////////////////////
// File: lstmeval.cpp
// Description: Evaluation program for LSTM-based networks.
// Author: Ray Smith
//
// (C) Copyright 2016, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may no... |
<commit_before>#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // to_string(nnn) // substr(m, n) // stoi(nnn)
#include <complex>
#include <tuple> // get<n>(xxx)
#include <queue>
#include <st... |
<commit_before>// Copyright 2012 Intel Corporation
//
// 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
// l... |
<commit_before>/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
<commit_before>// coding: utf-8
/* Copyright (c) 2014, Roboterclub Aachen e. V.
* All Rights Reserved.
*
* The file is part of the xpcc library and is released under the 3-clause BSD
* license. See the file `LICENSE` for the full license governing this code.
*/
// --------------------------------------------------... |
<commit_before>#include "simvcellopts.h"
#include "oneitemlayout.h"
#include <protocol.h>
#include <QCheckBox>
#include <QLineEdit>
#include <QVBoxLayout>
#include <algorithm>
#include <list>
using namespace std;
using namespace LongQt;
SimvCellOpts::SimvCellOpts(shared_ptr<Protocol> proto, string name,
... |
<commit_before>//===-- RustGCPrinter.cpp - Rust garbage collection map printer -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before><commit_msg>asio_emscripten: better logs on error<commit_after><|endoftext|> |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_BASEFUNCTIONSET_FEM_HH
#define DUNE_GDT_BASEFUNCTIONSET_FEM_HH
#include... |
<commit_before>#ifndef HASHMAP_HASH_MAP_H_
#define HASHMAP_HASH_MAP_H_
#include <vector>
namespace dicts {
template<typename K, typename V, typename H = std::hash<K> >
class HashMap {
public:
HashMap();
HashMap(const HashMap& hm);
~HashMap();
V& get(const K& key) const;
vo... |
<commit_before>// str.cpp see license.txt for copyright and terms of use
// code for str.h
// Scott McPeak, 1995-2000 This file is public domain.
#include "str.h" // this module
#include <stdlib.h> // atoi
#include <stdio.h> // sprintf
#include <ctype.h> // isspace
#in... |
<commit_before>/*************************************************************************/
/* audio_stream_preview.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>#include "types.h"
#include "user.h"
#include "sockutil.h"
#include <stdio.h>
#include <sys/socket.h>
int
dfork(void)
{
// First fork
int pid = fork(0);
if (pid < 0) {
fprintf(stderr, "telnetd fork 1: %d\n", pid);
return pid;
} else if (pid > 0) {
// Wait for intermediate process
... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Vassil Vassilev <vvasilev@cern.ch>
//------------------------------------------------------------------------------
#include "cling/Interpreter/Inte... |
<commit_before>/*
* (C) Copyright 2015 Kurento (http://kurento.org/)
*
* 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 requi... |
<commit_before>#pragma once
#include <list>
#include <cassert>
#include <unordered_map>
template <typename _Kty, typename _Ty>
class LRUCache
{
public:
using value_type = std::pair<const _Kty, _Ty>;
private:
int fixedCacheSize_;
std::list<value_type> values_;
public:
using value_iterator = decltype(... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009, Image Engine Design 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:... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, ... |
<commit_before>// DDCPP/standard/bits/DD_ArrayIterator.hpp
#ifndef _DD_ARRAY_ITERATOR_HPP_INCLUDED
# define _DD_ARRAY_ITERATOR_HPP_INCLUDED 1
# include "DD_IteratorTrait.hpp"
_DD_BEGIN
template <typename _ValueT>
struct ArrayIterator {
public:
DD_ALIAS(ThisType, ArrayIterator<_ValueT>)
DD_ALIAS(ValueType, _Val... |
<commit_before>#ifdef _OPENMP
#include <omp.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <cstring>
#include "strassenOMP.h"
Node::Node (int blocksize, int iLower, int jLower, int iUpper, int jUpper)
{
this->blocksize = blocksize;
this->iLower = iLower;
this->iUpper = iUpper;
this->jLower = jLower... |
<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_LICENSE:LG... |
<commit_before>#include <highgui.h>
#include <ros/ros.h>
#include <ros/console.h>
#include <std_msgs/String.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include "human_robot_collaboration_msgs/ArmState.h"
#include "ros_speech2text/event.h"
... |
<commit_before><commit_msg>Added debug message and handling Dynamic type internal textures<commit_after><|endoftext|> |
<commit_before>#include "imgui_impl_impeller.h"
#include <algorithm>
#include <climits>
#include <memory>
#include <vector>
#include "imgui_raster.frag.h"
#include "imgui_raster.vert.h"
#include "third_party/imgui/imgui.h"
#include "impeller/geometry/matrix.h"
#include "impeller/geometry/point.h"
#include "impeller/... |
<commit_before>#include <sli/stdstreamio.h>
#include <sli/fitscc.h>
#include <math.h>
using namespace sli;
/**
* @file create_fits_bintable.cc
* @brief Хʥơ֥ޤ FITS ե
*/
/*
* A sample code to create a FITS binary table
*
* ./create_fits_bintable out_file.fits[.gz or .bz2]
*
*/
int main( int argc, char *arg... |
<commit_before>#include "PaxosLeaseLearner.h"
#include "System/Events/EventLoop.h"
#include "Framework/Replication/ReplicationConfig.h"
void PaxosLeaseLearner::Init(QuorumContext* context_)
{
context = context_;
leaseTimeout.SetCallable(MFUNC(PaxosLeaseLearner, OnLeaseTimeout));
state.Init();
}
bool Paxos... |
<commit_before>// Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "InteriorsExplorerController.h"
#include "InteriorsExplorerViewModel.h"
#include "IInteriorsExplorerView.h"
#include "IMenuViewModel.h"
#include "IScreenControlViewModel.h"
#include "IMyPinCreationInitiationViewModel.h"
#include "ApplyScre... |
<commit_before>/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//======================================... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AccessiblePageShape.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: kz $ $Date: 2006-12-12 16:48:43 $
*
* The Contents of this fi... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//======================================... |
<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: SlsRequestQueue.cxx,v $
*
* $Re... |
<commit_before>/**
*
*/
#include "events.h"
#include <alvalue/alvalue.h>
#include <alcommon/alproxy.h>
#include <alcommon/albroker.h>
#include <vector>
#include <cmath>
#include <qi/os.hpp>
#include <qi/log.hpp>
const float forwardspos = M_PI * 7.0 / 4.0;
const float backwardspos = M_PI * 3.0 / 4.0;
GyroEvents:... |
<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>/*
* Copyright © 2012, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed
* under the Apache License, Version 2.0 (the "License");
* yo... |
<commit_before>#pragma once
#include "fixed_function.hpp"
#include "mpmc_bounded_queue.hpp"
#include "slotted_bag.hpp"
#include "thread_pool_options.hpp"
#include "thread_pool_state.hpp"
#include "worker.hpp"
#include "rouser.hpp"
#include <atomic>
#include <memory>
#include <stdexcept>
#include <vector>
#include <ch... |
<commit_before>#include <arpa/inet.h>
#include <gmock/gmock.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <string>
#include <process/future.hpp>
#include <process/http.hpp>
#include <stout/os.hpp>
#include "encoder.hpp"
using namespace process;
using testing::_;
using testing::Assign;
using testi... |
<commit_before>/*
* Copyright (C) 2009 Nokia Corporation.
*
* Contact: Marius Vollmer <marius.vollmer@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 by the Free Software Foundation.
*
*... |
<commit_before>// puss_debug.inl
#include "lstate.h"
#include "lobject.h"
#include "lstring.h"
#include "ltable.h"
#include "lfunc.h"
#include "ldebug.h"
#define BP_NOT_SET 0x00
#define BP_ACTIVE 0x01
#define BP_CONDITION 0x02
typedef struct _FileInfo {
const char* name;
char* script;
int line_num;
char* b... |
<commit_before>/*
* Copyright 2008-2010 NVIDIA Corporation
*
* 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 require... |
<commit_before>#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "../test_common.h"
#include "../../src/constant.h"
#ifndef BIN_PATH
#error require BIN_PATH
#endif
#ifndef EXTRA_TEST_DIR
#error require EXTRA_TEST_DIR
#endif
using namespace ydsh;
class ModLoadTest : public ExpectOutput {};
static ProcBui... |
<commit_before>#ifdef USE_SDL
#include <SDL.h>
#include "joystick.h"
void SDLJoystick::poll(){
events.clear();
}
static bool read_button(SDL_Joystick * joystick, int button){
return SDL_JoystickGetButton(joystick, button);
}
JoystickInput SDLJoystick::readAll(){
JoystickInput input;
if (joystick){
... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/diag/prdf/plat/mem/prdfP9Mca.C $ ... |
<commit_before>#include <fstream>
#include <sstream>
#include <string>
#include <cassert>
#include "kfs.h"
#ifdef WIN32
#error "Must implement windows support"
#else
#include <utime.h>
#include <unistd.h>
#include <sys/types.h>
#include <dirent.h>
#endif
namespace kfs {
static bool starts_with(const Path& p, const ... |
<commit_before>/*********************************************************************
*
* Copyright (C) 2008, Simon Kagstrom
*
* Filename: controller.hh
* Author: Simon Kagstrom <simon.kagstrom@gmail.com>
* Description: The singleton class which holds everything
*
* $Id:$
*
********************... |
<commit_before>//
// Joystick.hpp
// Clock Signal
//
// Created by Thomas Harte on 14/10/2017.
// Copyright 2017 Thomas Harte. All rights reserved.
//
#ifndef Joystick_hpp
#define Joystick_hpp
#include <vector>
namespace Inputs {
/*!
Provides an intermediate idealised model of a simple joystick, allowing a hos... |
<commit_before>class Solution {
public:
double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) {
int n = nums1.size() + nums2.size();
if(n % 2 == 1) {
return findKth(nums1, nums2, 0, 0, n/2+1);
} else {
return (findKth(nums1, nums2, 0, 0, n/2) + findKth... |
<commit_before>#include "twitter.h"
#include "../logger.h"
#include "../util.h"
#include "../config.h"
#include "../net.h"
namespace shanghai {
namespace system {
namespace {
const std::string URL_ACCOUNT = "https://api.twitter.com/1.1/account/"s;
const std::string URL_ACCOUNT_VERIFY_CREDENTIALS =
URL_ACCOUNT + "... |
<commit_before>//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant... |
<commit_before>
#include <Dedispersion.hpp>
#include <Transpose.hpp>
#include <SNR.hpp>
#include <Folding.hpp>
#ifndef CONFIGURATION_HPP
#define CONFIGURATION_HPP
// Types for the data
typedef float dataType;
const std::string dataName("float");
// DEBUG mode, prints to screen some useful information
const bool DEBU... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2018 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>// Copyright 2022 Global Phasing Ltd.
//
// AsuBrick and MaskedGrid that is used primarily as direct-space asu mask.
#ifndef GEMMI_ASUMASK_HPP_
#define GEMMI_ASUMASK_HPP_
#include "grid.hpp"
namespace gemmi {
struct AsuBrick {
// The brick is 0<=x<=size[0]/24, 0<=y<= size[1]/24, 0<=z<=size[2]/24
... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>#ifndef NANO_OBSERVER_HPP
#define NANO_OBSERVER_HPP
#include "nano_function.hpp"
namespace Nano
{
class Observer
{
template <typename T> friend class Signal;
struct DelegateKeyObserver { DelegateKey delegate; Observer* observer; };
struct Node { DelegateKeyObserver data; Node* next; } *h... |
<commit_before>#include "Application.h"
#include "ComponentCollider.h"
#include "imgui\imgui.h"
#include "DebugDraw.h"
#include "GameObject.h"
#include "ComponentTransform.h"
#include "ComponentMesh.h"
#include "ModuleRenderer3D.h"
#include "ModulePhysics3D.h"
#include "PhysBody3D.h"
#include "imgui\imgui.h"
#includ... |
<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) 2010-2012, Vrije Universiteit Brussel.
* All rights reserved.
*/
#ifndef __SHARK_VERSION_HPP
#define __SHARK_VERSION_HPP
#define SHARK_VERSION 0.9
#endif
<commit_msg>Marking version 0.9.0 (alpha)<commit_after>/*
* Copyright (c) 2010-2012, Vrije Universiteit Brussel.
* All right... |
<commit_before>#ifndef UCLOG_BPRINTF_HPP_
#define UCLOG_BPRINTF_HPP_
#include <cstddef>
#include <cstdarg>
#include <stdint.h>
namespace uclog
{
size_t snbprintf(uint8_t* buf, size_t size, const char* fmt, ...);
size_t vsnbprintf(uint8_t* buf, size_t size, const char* fmt, va_list args);
} // namespace uclog
#end... |
<commit_before>/**
* This file is part of the CernVM File System.
*/
#include "payload_processor.h"
#include <fcntl.h>
#include <unistd.h>
#include <vector>
#include "logging.h"
#include "params.h"
#include "util/posix.h"
#include "util/string.h"
namespace {
const size_t kConsumerBuffer = 10 * 1024 * 1024; // 1... |
<commit_before>/*
* Copyright (c) 2011-2021, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and ... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit (ITK)
Module: itkShrinkImageTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2000 National Library of Medicine
All rights reserve... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dsselect.cxx,v $
*
* $Revision: 1.18 $
*
* last change: $Author: obo $ $Date: 2006-10-12 13:37:41 $
*
* The Contents of this file are mad... |
<commit_before>/* Source file for the GAPS array class */
/* Include files */
#include "RNBasics.h"
/* Private constants */
static const int RN_ARRAY_MIN_ALLOCATED = 1;
/* Public functions */
int
RNInitArray()
{
/* Return success */
return TRUE;
}
void
RNStopArray()
{
}
RNVArray::
RNVArray(v... |
<commit_before><commit_msg>Filled step-41.cc with content of main.cc<commit_after>#include <iostream>
#include "../include/base.h"
int main ()
{
try
{
Base<deal_II_dimension> problem;
problem.run ();
}
catch (std::exception &exc)
{
std::cerr << std::endl << std::endl
<< "--... |
<commit_before>#include <iostream>
#include <vector>
#include <opencv2/opencv.hpp>
#include <flowfilter/gpu/flowfilter.h>
#include <flowfilter/gpu/display.h>
using namespace std;
using namespace cv;
using namespace flowfilter;
using namespace flowfilter::gpu;
void wrapCVMat(Mat& cvMat, image_t& img) {
img.hei... |
<commit_before>/**
* ofxAppUpdater is developed by Paul Vollmer
* http://www.wng.cc
*
*
* Copyright (c) 2012 Paul Vollmer
*
* ofxAppUpdater 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; eit... |
<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 "ui/message_center/views/message_popup_bubble.h"
#include "base/bind.h"
#include "base/stl_util.h"
#include "ui/message_cente... |
<commit_before>// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser G... |
<commit_before>/*
* SessionConnections.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 Affero Ge... |
<commit_before>/**********************************************************************
* $Id$
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2005-2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute... |
<commit_before>#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for (__typeof(a) i=(a); i<(b); ++i)
#define iter(it,c) for (__typeof((c).begin()) \
it = (c).begin(); it != (c).end(); ++it)
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef long long ll;
const int INF = ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLCellRangeSourceContext.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-08 19:49:11 $
*
* The Contents of th... |
<commit_before>/**
Copyright (c) 2016, Ubiquity Robotics
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of condition... |
<commit_before>#include <iomanip>
#include <algorithm>
#include "random_hao.h"
#include "double_pop_type.h"
#include "pop_control.h"
using namespace std;
void pop_configuration_test()
{
random_hao_init(985456376,1); //Random number seed is important for the test
int L=100; int size=4;
vector<double> a(L);... |
<commit_before>#include <algorithm>
#include "watcherd.h"
#include "singletonConfig.h"
using namespace watcher;
using namespace watcher::event;
using namespace std;
using namespace boost;
INIT_LOGGER(Watcherd, "Watcherd");
Watcherd::Watcherd() :
config(SingletonConfig::instance()),
serverMessageHandlerPtr... |
<commit_before>#include "netcom_base.hpp"
#include <scoped.hpp>
#include <iostream>
namespace netcom_exception {
base::base(const std::string& s) : std::runtime_error(s) {}
base::base(const char* s) : std::runtime_error(s) {}
base::~base() noexcept {}
}
netcom_base::netcom_base() : out_(cout) {}
netcom_b... |
<commit_before>/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2021 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>/*
* ZoteroCollections.cpp
*
* Copyright (C) 2009-20 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 Affero Gen... |
<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 "jingle/notifier/base/xmpp_connection.h"
#include <string>
#include <vector>
#include "base/basictypes.h"
#include "base/mes... |
<commit_before>///
/// @file pi_deleglise_rivat_parallel1.cpp
/// @brief Parallel implementation of the Deleglise-Rivat prime
/// counting algorithm. In the Deleglise-Rivat algorithm there
/// are 3 additional types of special leaves compared to the
/// Lagarias-Miller-Odlyzko algorithm: trivial ... |
<commit_before>// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "common/api/atom_api_screen.h"
#include "common/v8/native_type_conversions.h"
#include "ui/gfx/screen.h"
#include "common/v8/node_com... |
<commit_before>
#include "tpl_os.h"
#include "Arduino.h"
#include "U8glib/src/U8glib.h"
/////////////////
// SHIELD PINS //
/////////////////
// SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9, RST = 8
#define SCK 13
#define MOSI 11
#define CS 10
#define A0 9
#define RST 8
#define JOYSTICK A0
///////////... |
<commit_before>/*
Copyright (c) 2010, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>//
// Copyright (C) 2007 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// Copyright (C) 2007 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// $$
///////////////////////////////////////////////////////////////////////////////
// Author: Dan Petrie <dpet... |
<commit_before>//
// Copyright (C) 2008 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// Copyright (C) 2008 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// $$
///////////////////////////////////////////////////////////////////////////////
// Author: Keith ... |
<commit_before>/*
* Copyright 2017-present Facebook, 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 appl... |
<commit_before>/* Copyright (C) 2003 MySQL AB
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 d... |
<commit_before>/*
Copyright 2011 Google Inc. 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 applicable law o... |
<commit_before>#ifndef CTHREADRINGBUF
#define CTHREADRINGBUF
#include<atomic>
#include<memory> //allocator, make_unique, unique_ptr
#include<utility> //forward, move
#include"CSemaphore.hpp"
#include"../algorithm/algorithm.hpp" //for_each_val
namespace nThread
{
//a fixed-sized and cannot overwrite when buffer is ful... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/utils/stopreg/p9_stop_api.H $ ... |
<commit_before>/*
* Copyright (C) 2017 Fondazione Istituto Italiano di Tecnologia
* Authors: Silvio Traversaro
* CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
*
*/
#include <iDynTree/InverseKinematics.h>
#include <iDynTree/KinDynComputations.h>
#include <iDynTree/Core/TestUtils.h>
#... |
<commit_before>/*
* Copyright (C) 2017 Fondazione Istituto Italiano di Tecnologia
* Authors: Silvio Traversaro
* CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
*
*/
#include <iDynTree/InverseKinematics.h>
#include <iDynTree/KinDynComputations.h>
#include <iDynTree/Core/TestUtils.h>
#... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/base/ip_endpoint.h"
#include "base/string_number_conversions.h"
#include "net/base/net_util.h"
#include "testing/gtest/i... |
<commit_before>#ifndef STAN_MATH_REV_FUNCTOR_integrate_1d_HPP
#define STAN_MATH_REV_FUNCTOR_integrate_1d_HPP
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/fun/is_nan.hpp>
#include <stan/math/rev/fun/value_of.hpp>
#include <stan/math/rev/core/precomputed_gradients.hpp>
#include <stan/math/prim/meta.hpp>
#in... |
<commit_before>/*
Copyright (C) 2008 Patrick Spendrin <ps_ml@gmx.de>
This file is part of the KDE project
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... |
<commit_before>//
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2010 Dennis Nienhüser <earthwings@gentoo.org>
//
#include "RoutingI... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the tools applications of the Qt Toolkit.
**
** $QT_BE... |
<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><commit_msg>Create 1176 - Fibonacci Array.cpp<commit_after><|endoftext|> |
<commit_before>//
// runtime.cpp
// TagBufCPP
//
// Created by hejunqiu on 16/8/30.
// Copyright © 2016年 CHE. All rights reserved.
//
#include "runtime.hpp"
#include "cache.hpp"
#include "CHNumber.hpp"
#include "CHString.hpp"
#include <assert.h>
#include <unordered_map>
using namespace::std;
size_t bkdr_hash(co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.