text stringlengths 54 60.6k |
|---|
<commit_before>/**
* Definition of ListNode
* class ListNode {
* public:
* int val;
* ListNode *next;
* ListNode(int val) {
* this->val = val;
* this->next = NULL;
* }
* }
*/
class Solution {
public:
/**
* @param lists: a list of ListNode
* @return: The head of o... |
<commit_before>#include <benchmark/benchmark.h>
BENCHMARK_MAIN();
<commit_msg>Fix benchmarks crashing on exit (#295)<commit_after>#include <benchmark/benchmark.h>
int main(int argc, char** argv) {
// mostly taken from the BENCHMARK_MAIN macro
::benchmark::Initialize(&argc, argv);
if (::benchmark::ReportUnrecogni... |
<commit_before>/*
Copyright 2017 Thomas Krause <thomaskrause@posteo.de>
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 requ... |
<commit_before>#include "video.h"
#include <string>
#include <vector>
using std::string;
using std::vector;
void Video::ShowVideo() const {
const string& video_path = path;
const vector<string>& image_files = all_frames;
int annotated_frame_index = 0;
// For the 0th annotation in this video, get the start... |
<commit_before>#include "gltf.h"
#include <iostream>
#include <fstream>
#include <string>
#include <map>
#include "pixels.h"
#include "rgbe/rgbe.h"
#include "../gl/vbo.h"
#include "../tools/fs.h"
#include "../tools/geom.h"
#include "../tools/text.h"
#define TINYGLTF_IMPLEMENTATION
#define STB_IMAGE_IMPLEMENTATION
... |
<commit_before>/***********************************************************************
filename: TreeView.cpp
created: Fri Jun 06 2014
author: Timotei Dolean <timotei21@gmail.com>
*************************************************************************/
/******************************************... |
<commit_before>#include <png.h>
#include <iostream>
#include <cstdlib>
#include <boost/thread/thread.hpp>
#include <boost/progress.hpp>
#include <tbb/concurrent_queue.h>
#include <tbb/parallel_for.h>
#include "./nbt.h"
std::pair<int, int> projectCoords(std::pair<int, int> p, int phi) {
if (phi == 0) return p;
in... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/targeting/targetservicestart.C $ ... |
<commit_before>// $Id: mesh_smoother_laplace.C,v 1.3 2003-06-25 19:53:05 jwpeterson Exp $
// The Next Great Finite Element Library.
// Copyright (C) 2002 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... |
<commit_before>// rbOOmit: An implementation of the Certified Reduced Basis method.
// Copyright (C) 2009, 2010 David J. Knezevic
// This file is part of rbOOmit.
// rbOOmit 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 Fr... |
<commit_before>/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2016 INRIA.
*
* 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 L... |
<commit_before><commit_msg>place date update fps below render fps<commit_after><|endoftext|> |
<commit_before>/*
* checked_mutex.hpp
*
* MIT License
*
* Copyright (c) 2017 yohhoy
*
* 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 limitatio... |
<commit_before>/*
** This file is part of libyuni, a cross-platform C++ framework (http://libyuni.org).
**
** 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 at http://mozilla.org/MPL/2.0/.
**
** github:... |
<commit_before>//
// Copyright (c) 2020 INRIA
//
#ifndef __eigenpy_ufunc_hpp__
#define __eigenpy_ufunc_hpp__
#include "eigenpy/user-type.hpp"
namespace eigenpy
{
namespace internal
{
#define EIGENPY_REGISTER_BINARY_OPERATOR(name,op) \
template<typename T1, typename T2, typename R> \
void binary_op_##n... |
<commit_before>/*
Copyright (c) 2003, 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>// The libMesh Finite Element Library.
// Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// This library is free software; you can redistribute and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 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>/* -*- 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>/*******************************************************************************
*
* 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>#include <memory>
#include <serv.h>
#define MAX_RETRY 5
int notifyFailedToRedis(RedisUpstream *redisUpstream, std::string responseCommand, std::string dataKey);
void BackgroundJob::regType() {
REG_BPROC(COMMAND_DATA_SAVE);
REG_BPROC(COMMAND_DATA_DUMP);
REG_BPROC(COMMAND_SYNC_PREPARE1);
}... |
<commit_before>/*
* Copyright 2014 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 requi... |
<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 "chrome/browser/autofill/autofill_popup_view.h"
#include "base/logging.h"
#include "chrome/browser/autofill/autofill_external... |
<commit_before>
#include "anumber.h"
/* BaseTimesInt : multiply a with one digit in the range 0..(aBase-1)
*/
template<class T>
inline void BaseTimesInt(T& a,PlatDoubleWord aNumber, PlatDoubleWord aBase)
{
PlatDoubleWord carry=0;
LispInt i;
LispInt nr=a.size();
typename T::value_type * aptr = &a[0];
for (... |
<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/login/update_screen.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/threadin... |
<commit_before><commit_msg>Posix: implement diagnostics mode console output.<commit_after><|endoftext|> |
<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>// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
template<class X> class B {
public:
explicit B(X* p = 0);
};
class A
{
public:
A(int value) : m_a_value(value) {};
A(int value, A* client_A) : m_a_value (value), m_client_A (client_A) {}
virtual ~A() {}
privat... |
<commit_before>/*
* This file is part of the CN24 semantic segmentation software,
* copyright (C) 2015 Clemens-Alexander Brust (ikosa dot de at gmail dot com).
*
* For licensing information, see the LICENSE file included with this project.
*/
#include <sstream>
#include <algorithm>
#include "Log.h"
#include "Los... |
<commit_before>/**
** \file object/object.hh
** \brief Definition of object::Object.
*/
#ifndef OBJECT_OBJECT_HH
# define OBJECT_OBJECT_HH
# include <deque>
# include <iosfwd>
# include <set>
# include <boost/function.hpp>
# include <boost/optional.hpp>
# include <libport/shared-ptr.hh>
# include <object/fwd.hh... |
<commit_before>#include <cstring>
#include <vector>
#include <string>
#include <fstream>
#include <cstdio>
#include <miopen/gcn_asm_utils.h>
#include <miopen/clhelper.hpp>
#include <miopen/kernel.hpp>
#include <miopen/errors.hpp>
#include <miopen/stringutils.hpp>
#ifndef _WIN32 //Linux or APPLE
#include <unistd.h>
#inc... |
<commit_before>#include "ofxShadersFX.h"
namespace ofxShadersFX {
Shader::Shader(ShaderType p_type)
{
setShaderType(p_type);
}
void Shader::begin() {
// The shader needs reload if not loaded
// or if modifications in attributes occurred since last frame
if (!m_shader.is... |
<commit_before>// -!- c++ -!- //////////////////////////////////////////////////////////////
//
// System :
// Module :
// Object Name : $RCSfile$
// Revision : $Revision$
// Date : $Date$
// Author : $Author$
// Created By : Robert Heller
// Created : Tue Oct 9 2... |
<commit_before>/* Copyright 2015 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>/* Copyright 2015 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>// RUN: %clang_cc1 -triple %itanium_abi_triple -fms-extensions -emit-llvm %s -o- | FileCheck %s
struct A {
void foo() __unaligned;
void foo() const __unaligned;
void foo() volatile __unaligned;
void foo() const volatile __unaligned;
};
void A::foo() __unaligned {}
// CHECK: define void @_ZNU11_... |
<commit_before><commit_msg>pdn: more clang fixes<commit_after><|endoftext|> |
<commit_before>/*
* This file is part of the µOS++ distribution.
* (https://github.com/micro-os-plus)
* Copyright (c) 2017 Liviu Ionescu.
*
* 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 Sof... |
<commit_before>/*
* This file is part of the µOS++ distribution.
* (https://github.com/micro-os-plus)
* Copyright (c) 2017 Liviu Ionescu.
*
* 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 Sof... |
<commit_before><commit_msg>added collision reponse demo. TAB now creates an object that will bounce off walls and floors.<commit_after><|endoftext|> |
<commit_before>#define DEBUG 1
/**
* File : C2.cpp
* Author : Kazune Takahashi
* Created : 2019-6-3 00:42:00
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <string>
#include <complex>
#include <tuple>
#include <queue>
#include <stack>... |
<commit_before>/**
* @file NetworkPipeTestTest.cpp
* @brief NetworkPipeTest class tester.
* @author zer0
* @date 2017-05-09
*/
#include <gtest/gtest.h>
#include <libtbag/network/details/PipeServer.hpp>
#include <libtbag/network/details/PipeClient.hpp>
using namespace libtbag;
using namespace libtbag::networ... |
<commit_before>/*************************************************************************
*
* $RCSfile: msfiltertracer.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2004-12-13 12:19:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before><commit_msg>coverity#1202787 Unchecked dynamic_cast<commit_after><|endoftext|> |
<commit_before>/*
Copyright (c) 2010-2018, Mark Final
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 conditions a... |
<commit_before>#include <iostream>
#include <cmath>
#include <cstring>
#include "string.h"
#define DEBUG false
using namespace std;
double f1 (double x, double y)
{
return log(1 + log(x) * log(x) + log(y) * log(y));
}
double f2 (double x, double y)
{
return log(1 + x * x + (x * x - y) * (x * x - y));
}
void df... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>#include <shogun/io/SerializableAsciiFile.h>
#include <shogun/lib/SGMatrix.h>
#include <shogun/features/SparseFeatures.h>
#include <gtest/gtest.h>
using namespace shogun;
TEST(SparseFeaturesTest,serialization)
{
/* create feature data matrix */
SGMatrix<int32_t> data(3, 20);
/* fill matrix with ran... |
<commit_before>/*************************************************************************
*
* $RCSfile: TSortIndex.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: oj $ $Date: 2002-07-04 06:32:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before><commit_msg>update<commit_after><|endoftext|> |
<commit_before>#include <iostream>
#include <sys/time.h>
using namespace std;
const int fac = 1;
const int nnx = 256;
const int nnxy = 65536;
const int NN =1073741824 + 2*nnxy;
double a[NN], b[NN];
int N;
double wctime() {
struct timeval tv;
gettimeofday(&tv,NULL);
return (double)tv.tv_sec + (double)tv.tv_... |
<commit_before>/*
* mod_compare - compare apache requests
*
* Copyright (C) 2013 Orange
*
* 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>/**
** \file runner/stacks.hh
** \brief Definition of runner::Stacks.
*/
#ifndef RUNNER_STACKS_HH
# define RUNNER_STACKS_HH
# include <ast/fwd.hh>
# include <object/object.hh>
// FIXME: action
namespace runner
{
class Stacks
{
public:
// Import types
typedef object:: rObject ... |
<commit_before>/*
Copyright (c) 2015, Wator Vapor
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 conditions and t... |
<commit_before>/*
* Listener on a TCP port.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "lb_listener.hxx"
#include "lb_instance.hxx"
#include "lb_connection.hxx"
#include "lb_config.hxx"
#include "lb/HttpConnection.hxx"
#include "ssl/ssl_factory.hxx"
#include "ssl/DbSniCallback.hxx"
#include "net/Socket... |
<commit_before>// Copyright (c) 2016, The University of Texas at Austin
// 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 copyr... |
<commit_before>#ifndef MJOLNIR_READ_SYSTEM
#define MJOLNIR_READ_SYSTEM
#include <mjolnir/core/System.hpp>
#include <mjolnir/core/BoundaryCondition.hpp>
#include <extlib/toml/toml.hpp>
namespace mjolnir
{
template<typename boundaryT> struct read_boundary_impl;
template<typename realT, typename coordT>
struct read_bou... |
<commit_before>// Time: O(n^2)
// Space: O(n)
class Solution {
public:
void wallsAndGates(vector<vector<int>>& rooms) {
for (int i = 0; i < rooms.size(); ++i) {
for (int j = 0; j < rooms[0].size(); ++j) {
if (rooms[i][j] == 0) {
queue<tuple<int, int, int>> q... |
<commit_before>/*
* Contacts model item, represents a contact in the contactlist tree
* This file is based on TelepathyQt4Yell Models
*
* Copyright (C) 2010 Collabora Ltd. <info@collabora.co.uk>
* Copyright (C) 2011 Martin Klapetek <martin dot klapetek at gmail dot com>
*
* This library is free software; you can... |
<commit_before>/*
* Copyright (C) 2004-2010 See the AUTHORS file for details.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#include "Modules.h"
#include "User.h"
#inclu... |
<commit_before>#include "nbind/nbind.h"
#include "nbind/api.h"
#include <X11/Xlib.h>
#include "xdisplay.h"
#include "screen.h"
ScreenInfo::Screen ScreenInfo::Screen::main() {
Display *display = XGetMainDisplay();
const int screen = DefaultScreen(display);
return ScreenInfo::Screen(
(size_t)DisplayWidth(display, ... |
<commit_before>///
/// @file pi_lmo1.cpp
/// @brief Simple demonstration implementation of the
/// Lagarias-Miller-Odlyzko prime counting algorithm.
/// Usually in the Lagarias-Miller-Odlyzko algorithm phi(x, a)
/// is calculated using a prime sieve but this simple
/// implementation calcul... |
<commit_before>#include "loadOperator.hh"
// std
#include <string>
// scidb
#include "query/TypeSystem.h"
#include "system/SystemCatalog.h"
#include "array/Array.h"
#include "array/DBArray.h"
// pkg
#include "H5Array.hh"
#include "scidbConvert.hh"
void loadHdf(std::string const& filePath,
std::string c... |
<commit_before>//$Id: ReadWriteMutex_Test.cpp 3456 2013-06-14 02:11:13Z jiaying $
/*
* The Software is made available solely for use according to the License Agreement. Any reproduction
* or redistribution of the Software not in accordance with the License Agreement is expressly prohibited
* by law, and may result ... |
<commit_before>#include <TestSupport.h>
#include <ConfigKit/Common.h>
#include <ConfigKit/TableTranslator.h>
using namespace Passenger;
using namespace std;
namespace tut {
struct ConfigKit_TranslationTest {
};
DEFINE_TEST_GROUP(ConfigKit_TranslationTest);
TEST_METHOD(1) {
ConfigKit::TableTranslator translato... |
<commit_before>/*
* libTML: A BEEP based Messaging Suite
* Copyright (C) 2016 wobe-systems GmbH
*
* This program 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
* ... |
<commit_before>// Copyright 2014 eric schkufza
//
// 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... |
<commit_before>#include <math.h>
#include "server.hpp"
#include "db_thread_info.hpp"
#include "memcached/memcached.hpp"
#include "diskinfo.hpp"
#include "concurrency/cond_var.hpp"
#include "logger.hpp"
#include "server/cmd_args.hpp"
#include "replication/master.hpp"
#include "replication/slave.hpp"
#include "replicatio... |
<commit_before>#include "state.h"
#include "rccpp.h"
#include "config.h"
#include "interface/module.h"
#include "interface/server.h"
#include "interface/event.h"
//#include "interface/thread.h"
#include "interface/mutex.h"
#include <c55/log.h>
#include <iostream>
#include <algorithm>
extern server::Config g_server_con... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: canvasgraphichelper.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: obo $ $Date: 2006-10-12 15:00:40 $
*
* The Contents of this fi... |
<commit_before>/**
* @file BoxPacketTest.cpp
* @brief BoxPacket class tester.
* @author zer0
* @date 2018-10-24
* @date 2018-11-07 (Rename: TbagPacketTest -> BoxPacketTest)
*/
#include <gtest/gtest.h>
#include <tester/DemoAsset.hpp>
#include <libtbag/proto/BoxPacket.hpp>
using namespace libtbag;
using na... |
<commit_before>#include "catch.hpp"
#include <reflection_binding.hpp>
class test_class1
{
public:
int
test_member1(int i)
{
return i * 2;
}
int
test_member2()
{
return local_;
}
int
test_member3() const
{
return local_;
}
private:
int lo... |
<commit_before>// -*- coding: us-ascii-unix -*-
#include "test-sys/test.hh"
#include "geo/int-size.hh"
#include "text/char-constants.hh"
#include "text/split-string.hh"
#include "util/optional.hh"
#include "util/distinct.hh"
namespace{
using namespace faint;
class category_test_split_string;
using px_per_char = Dist... |
<commit_before>/*
* Renderer.cpp
*
* Renders the box2d content
*/
#include <vector>
#include <stdio.h>
#include <Box2D/Box2D.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_main.h>
#include <SDL2/SDL2_gfxPrimitives.h>
#include "Renderer.h"
#include "UserData.h"
const float Renderer::NUMERATOR = 7.0f;
const flo... |
<commit_before>/*
* Copyright (c) 2002-2005 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 <mzx/simple_event.h>
namespace mzx
{
SimpleEventBase::ClassIndexType SimpleEventBase::class_index_counter_ = 0;
SimpleEventBase::SimpleEventBase()
{
}
SimpleEventBase::~SimpleEventBase()
{
}
SimpleEventBase::ClassIndexType SimpleEventBase::ClassIndexCount()
{
return class_index_counter_... |
<commit_before>// Copyright (c) 2010-2022, 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>#include "socketgateway.h"
#include <errno.h>
#include <picojson.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include "logging.h"
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
#endif
using std::make_shared;
using std::shared_ptr;
SocketGateway::SocketGateway(const Config &con... |
<commit_before>//===- tools/dsymutil/MachODebugMapParser.cpp - Parse STABS debug maps ----===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>/* Copyright (c) 2012-2013, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <Windows.h>
#include <stdio.h>
#include <wchar.h>
#include <vector>
#include <QStr... |
<commit_before>#include <math.h>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include "timeEstimate.h"
namespace cura
{
#define MINIMUM_PLANNER_SPEED 0.05// (mm/sec)
const double max_feedrate[TimeEstimateCalculator::NUM_AXIS] = {600, 600, 40, 25};
const double minimumfeedrate = 0.01;
const double... |
<commit_before>/*
* Certificate Verify Message
* (C) 2004,2006,2011,2012 Jack Lloyd
*
* Released under the terms of the Botan license
*/
#include <botan/internal/tls_messages.h>
#include <botan/internal/tls_reader.h>
#include <botan/internal/assert.h>
#include <botan/tls_exceptn.h>
#include <botan/pubkey.h>
#include <... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 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. Redistri... |
<commit_before>#pragma once
#include <functional>
#include <list>
namespace otto::util {
/// A signal that can be emitted
///
/// Handlers can be connected, and stored in Connections to be automatically disconnected
/// on destruction
template<typename... Args>
struct Signal;
template<typename... Args... |
<commit_before>// @(#)root/gl:$Id$
// Author: Timur Pocheptsov, Jun 2007
/*************************************************************************
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: swfuno.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2006-09-17 07:40:25 $
*
* The Contents of this file are made a... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2005 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (C) 2008 Sacha Schutz <istdasklar@free.fr>
* Copyright (C) 2008 Olivier Gueudelot <gueudelotolive@gmail.com>
* Copyright (C) 2008 Charles Huet <packadal@gm... |
<commit_before><commit_msg>Fix two races in DirectoryWatcherInotify:<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: sbintern.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2004-11-09 12:24:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>// Copyright 2012 Cloudera 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 law or ... |
<commit_before>#include <fstream>
#include <iostream>
#include <string>
#include <unordered_map>
#include <cctype>
#include <cstdlib>
#include "BibleReferenceParser.h"
#include "StringUtil.h"
#include "util.h"
// Expects an input file with lines of the form XXX=YYY. All embedded spaces are significant.
void LoadMapF... |
<commit_before>/*
Description:
This is a example code for Sandbox Electronics' I2C/SPI to UART bridge module.
You can get one of those products on
http://sandboxelectronics.com
Version:
V0.1
Release Date:
2014-02-16
Author:
Tiequan Shao info@sandboxelectronics.com
Lisence:
CC BY-NC-SA 3.0
Please keep the ... |
<commit_before>/**
* @file uart.cpp
*
* @brief Contains uart access functionality
*
* Example usage:
* @code
*
* uart0.Init(9600);
*
* if (uart0.Available())
* {
* byte = uart0.Receive();
* uart0.Transmite(byte);
* }
*
* @endcode
*/
#include <stdint.h>
#include <avr/io.h>
#include <avr/interrupt.... |
<commit_before>/*
* Vulkan
*
* Copyright (C) 2015 LunarG, Inc.
*
* 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,... |
<commit_before>/*************************************************************************
*
* $RCSfile: hierarchyprovider.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: kso $ $Date: 2001-07-03 11:16:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>/*************************************************************************
*
* $RCSfile: hierarchyservices.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: kso $ $Date: 2001-07-03 11:16:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>/** @file distributed_local_regression.cc
*
* The driver for the distributed local regression.
*
* @author Dongryeol Lee (dongryel@cc.gatech.edu)
*/
#include "core/metric_kernels/lmetric.h"
#include "core/tree/statistic.h"
#include "core/table/distributed_table.h"
#include "core/tree/gen_kdtree.h... |
<commit_before>/**
* \file py_calc_model.cpp
* \brief Python wrappers for calc_model, calc_model_data
* \author Sergey Miryanov
* \date 02.12.2009
* \copyright This source code is released under the terms of
* the BSD License. See LICENSE for more details.
* */
#include "... |
<commit_before>#include "Assignment2.h"
TutorialApplication::TutorialApplication()
: mTerrainGroup(0),
mTerrainGlobals(0),
mInfoLabel(0)
{
}
TutorialApplication::~TutorialApplication()
{
}
void TutorialApplication::createCamera()
{
mCamera = mSceneMgr->createCamera("PlayerCam");
mCamera->setPosition(Og... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.