text stringlengths 54 60.6k |
|---|
<commit_before>/*
Copyright (C) 2003 Justin Karneges
Copyright (C) 2005 Brad Hards
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... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<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: stylematrixreferencecontext.hxx,v... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** No Commercial Usage
**
** This file contains pre-release cod... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: appdata.cxx,v $
*
* $Revision: 1.23 $
*
* last change: $Author: obo $ $Date: 2006-09-17 16:14:28 $
*
* The Contents of this file are made... |
<commit_before>/*************************************************************************
*
* $RCSfile: newhelp.hxx,v $
*
* $Revision: 1.18 $
*
* last change: $Author: pb $ $Date: 2001-07-09 11:36:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include "Halide.h"
#include <cstdlib>
#include <chrono>
#include <iostream>
#include "configure.h"
#include "generated_conv_layer.o.h"
#include <tiramisu/utils.h>
int main(int, char**)
{
srand(1);
std::vector<double> duration_vector;
double start, end;
Halide::Buffer<float> input(FIN_BLOCKING, N +... |
<commit_before>// RUN: %clangxx -O1 %s -o %t && TSAN_OPTIONS="flush_memory_ms=1 memory_limit_mb=1" ASAN_OPTIONS="handle_segv=0 allow_user_segv_handler=1" %run %t 2>&1 | FileCheck %s
// JVM uses SEGV to preempt threads. All threads do a load from a known address
// periodically. When runtime needs to preempt threads, i... |
<commit_before>//===- Chunks.cpp ---------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult 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) ... |
<commit_before>/*
* Copyright (C) 2008, 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>/***************************************************************************************[System.cc]
Copyright (c) 2003-2006, Niklas Een, Niklas Sorensson
Copyright (c) 2007-2010, Niklas Sorensson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated... |
<commit_before>/*!
* \file ak47_HardwareSerial.hpp
* \author Francois Best
* \date 16/06/2012
* \license GPL v3.0 - Copyright Forty Seven Effects 2012
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publish... |
<commit_before>#include "lib/armv7m/crt0.h"
#include "lib/armv7m/exception_table.h"
#include "lib/armv7m/instructions.h"
#include "lib/armv7m/scb.h"
#include "runtime/ramcode.h"
#include "vga/graphics_1.h"
#include "vga/timing.h"
#include "vga/vga.h"
#include "vga/rast/bitmap_1.h"
#include "vga/rast/text_10x16.h"
us... |
<commit_before>#include <assert.h>
#include <cstdio>
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/Module.h>
#include <llvm/Support/SourceMgr.h>
#include <llvm/Support/raw_ostream.h>
#include <llvm/IRReader/IRReader.h>
#include <iostream>
#include <string>
#include "../src/LLVMDependenceGraph.h"
using namespac... |
<commit_before>#ifndef HAVE_LLVM
#error "This code needs LLVM enabled"
#endif
#include <set>
#include <string>
#include <iostream>
#include <sstream>
#include <fstream>
#include <cassert>
#include <cstdio>
#include <cstdlib>
// ignore unused parameters in LLVM libraries
#if (__clang__)
#pragma clang diagnostic push
#... |
<commit_before>#include "graphics.h"
#include <SDL.h>
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#endif
#define error(fmt, ...) _error(__LINE__, fmt, __VA_ARGS__)
#define sdl_error(name, ...) _sdl_error(__LINE__, name)
static void _error(long line, const char *fmt, ...);
static void _sdl_error(long line, const ... |
<commit_before>#include "utils.h"
// <GL/glext.h> on Linux, <OpenGL/glext.h> on MacOS :(
#include "../glfw/deps/GL/glext.h"
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#include <sstream>
#include <fstream>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <defer.h>
... |
<commit_before>#include <vnl/vnl_matrix_fixed.txx>
template class vnl_matrix_fixed<double,1,1>;
<commit_msg>BUG: This source should use VNL_MATRIX_FIXED_INSTANTIATE to create the instantiation.<commit_after>#include <vnl/vnl_matrix_fixed.txx>
VNL_MATRIX_FIXED_INSTANTIATE(double,1,1);
<|endoftext|> |
<commit_before>/***********************************************
Copyright (C) 2014 Schutz Sacha
This file is part of QJsonModel (https://github.com/dridk/QJsonmodel).
QJsonModel is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by... |
<commit_before>/**
* kmcomposereditor.cpp
*
* Copyright (C) 2007, 2008 Laurent Montel <montel@kde.org>
*
* 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 t... |
<commit_before><commit_msg>sorted_vector: removing the vector::ersase makes more sense<commit_after><|endoftext|> |
<commit_before>#include "~/gitRepos/night/sandbox/tests/testHeader.hpp"
/*
/* Testing " '
*/
#define BOXIFY(x) \
{ \
if ((x) >= 0.5) \
x -= 1.; \
else if ((x) < -0.5... |
<commit_before>#include "llvm/Pass.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Function.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/TypeBuilder.h"
using namespace llvm;
namespace {
struct PointerObserv... |
<commit_before>/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "BenchTimer.h"
#include "PictureBenchmark.h"
#include "SkBenchLogger.h"
#include "SkCanvas.h"
#include "SkGraphics.h"
#include "SkMath.h"
#include "SkO... |
<commit_before>#include <iostream>
#include <fstream>
#include <getopt.h>
#include <algorithm>
#include <memory>
#include <zcm/zcm-cpp.hpp>
#include <zcm/zcm_coretypes.h>
#include "zcm/json/json.h"
#include "util/TranscoderPluginDb.hpp"
using namespace std;
struct Args
{
string inlog = "";
string out... |
<commit_before>#include <windows.h>
#include <vector>
#include "ddraw7proxy.hpp"
#include "detours.h"
/*static*/ DirectSurface7Proxy* DirectSurface7Proxy::g_Primary;
/*static*/ DirectSurface7Proxy* DirectSurface7Proxy::g_BackBuffer;
/*static*/ DirectSurface7Proxy* DirectSurface7Proxy::g_FakePrimary;
HINSTANCE gDllIn... |
<commit_before>#include "ProxyHttpClient.hpp"
#include "api/Error.hpp"
#include "api/HttpMethod.hpp"
#include "api/HttpRequest.hpp"
#include <api/HttpReadBodyResult.hpp>
#include <experimental/filesystem>
#include <algorithm>
#include <fstream>
#include <functional>
#include <memory>
#include <mutex>
#inclu... |
<commit_before>// ======================================================================== //
// Copyright 2009-2019 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/*
* Copyright (c) 2012, Willow Garage, 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 copyright
* ... |
<commit_before>//
// redpine_module.cpp
// Mono::Redpine
//
// Created by Kristoffer Andersen on 27/05/15.
//
//
#include "redpine_module.h"
#include <consoles.h>
#include <mbed.h>
#include <application_context_interface.h>
using namespace mono::redpine;
/** Construct the module */
Module Module::moduleSingleton... |
<commit_before>#ifndef ITER_SLIDING_WINDOW_HPP_
#define ITER_SLIDING_WINDOW_HPP_
#include "iterbase.hpp"
#include <deque>
#include <utility>
#include <iterator>
namespace iter {
template <typename Container>
class SlidingWindow;
template <typename Container>
SlidingWindow<Container> sliding_window(C... |
<commit_before>#include <iostream>
#include <string>
#include <limits>
using namespace std;
int main()
{
string userInput;
int trackNumber = 0;
do
{
cout << "Pls enter track number: ";
//getline (cin, userInput);
cin >> trackNumber;
if (cin.fail())
{
cin.clear();
cin.ignore(numeric_limits<stream... |
<commit_before>//===-- UriParser.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>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: threads.C,v 1.41.16.2 2007/05/10 20:15:09 amoll Exp $
//
#include <BALL/VIEW/KERNEL/threads.h>
#include <BALL/VIEW/KERNEL/mainControl.h>
#include <BALL/VIEW/KERNEL/message.h>
#include <BALL/VIEW/KERNEL/representation.h>
#include <BALL/VIEW/... |
<commit_before>// ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2011, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redist... |
<commit_before>#pragma once
#include <port.hpp>
template <class USI_t, class CSn>
class CC1101 {
public:
typedef USI_t USI;
enum ConfReg {
IOCFG2 = 0x00,
IOCFG1 = 0x01,
IOCFG0 = 0x02,
FIFOTHR = 0x03,
SYNC1 = 0x04,
SYNC0 = 0x05,
PKTLEN = 0x06,
PKTCTRL1 = 0x07,
PKTCTRL0 = 0x08,
ADDR = 0x09,
CHA... |
<commit_before>/*
* CrissCross
* A multi-purpose cross-platform library.
*
* A product of Uplink Laboratories.
*
* (c) 2006-2008 Steven Noonan.
* Licensed under the New BSD License.
*
*/
#ifndef __included_cc_darray_h
#error "This file shouldn't be compiled directly."
#endif
#include <crisscross/de... |
<commit_before>/**********************************************************************
* $Id$
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesse... |
<commit_before>/**
The Opensource Compiler CKX -- for my honey ChenKX
Copyright (C) 2017 CousinZe
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 ... |
<commit_before>#include "xchainer/array.h"
#include <initializer_list>
#ifdef XCHAINER_ENABLE_CUDA
#include <cuda_runtime.h>
#endif // XCHAINER_ENABLE_CUDA
#include <gtest/gtest.h>
#include <nonstd/optional.hpp>
#include "xchainer/array.h"
#include "xchainer/backend.h"
#include "xchainer/context.h"
#ifdef XCHAINER_... |
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <util/timer.h>
#include <httpclient/httpclient.h>
#include <util/filereader.h>
#include "client.h"
Client::Client(ClientArguments *args)
: _args(args),
_status(new ClientS... |
<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 "media/filters/pipeline_integration_test_base.h"
#include "base/bind.h"
#include "media/base/test_data_util.h"
#include "medi... |
<commit_before>#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/ImageIo.h"
#include "cinder/gl/gl.h"
using namespace ci;
using namespace ci::app;
using namespace std;
struct Satellite {
vec3 mPos;
Colorf mColor;
};
class DynamicCubeMappingApp : public App {
public:
void setup() ... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkImageToParametricSpaceFilterTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2001 Insight Consortium
All rights reserve... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the... |
<commit_before>
#include "ksp_plugin/planetarium.hpp"
#include <algorithm>
#include <vector>
#include "geometry/point.hpp"
#include "quantities/elementary_functions.hpp"
namespace principia {
namespace ksp_plugin {
namespace internal_planetarium {
using geometry::Position;
using geometry::RP2Line;
using geometry::... |
<commit_before>/*
* Copyright (c) 2011 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 <string>
/*
public class TennisGame4 implements TennisGame {
int serverScore;
int receiverScore;
String server;
String receiver;
public TennisGame4(String player1, String player2) {
this.server = player1;
this.receiver = player2;
}
@java.lang.Overr... |
<commit_before>/* Copyright 2015 Samsung Electronics Co., LTD
*
* 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... |
<commit_before>/*
* Copyright (C) 2009 Google 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 copyright
* notice, this l... |
<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 "config.h"
#include "base/compiler_specific.h"
#include "KeyboardCodes.h"
#include "StringImpl.h" // This is so that t... |
<commit_before>/**
* The MIT License (MIT)
*
* Copyright © 2018-2019 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... |
<commit_before>/*-------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2019 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... |
<commit_before>/*===================================================================
BlueBerry Platform
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTA... |
<commit_before>// DXGL
// Copyright (C) 2012 William Feely
// 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 ve... |
<commit_before>#include <cstring> // memcpy strdup
#include <shoveler.h>
#include "material.h"
extern "C" {
#include <shoveler/view/material.h>
#include <shoveler/log.h>
}
using shoveler::Material;
using shoveler::MaterialType;
using shoveler::Vector2;
using shoveler::Vector3;
static ShovelerComponentMaterialType ... |
<commit_before>#ifndef SILICIUM_THREAD_GENERATOR_HPP
#define SILICIUM_THREAD_GENERATOR_HPP
#include <silicium/observable/observer.hpp>
#include <silicium/config.hpp>
#include <silicium/exchange.hpp>
#include <silicium/observable/yield_context.hpp>
#include <future>
#include <boost/thread/future.hpp>
#include <boost/op... |
<commit_before>//
// Created by dar on 11/24/15.
//
#include <GLES3/gl3.h>
#include "Fbo.h"
Fbo::~Fbo() {
glDeleteTextures(1, &this->fbo_texture);
glDeleteBuffers(1, &texture_vertices);
glDeleteVertexArrays(1, &vaoId);
glDeleteFramebuffers(1, &this->id);
}
unsigned char Fbo::initShader() {
unsign... |
<commit_before>#include "agn_frac.h"
#include "lumfunct.h"
agn_frac::agn_frac(int agn_types){
if(agn_types <= 1){
_types=1;
generate=false;
printf("No AGN Detected\n");
}
else{
_types=2;
generate=true;
}
lf=NULL;
}
void agn_frac::set_lumfunct(lumfunct *lf){
if(lf != NULL){
this->lf... |
<commit_before>#include <iostream>
#include "../inc/Frisk.h"
#include "../inc/ConsoleReporter.h"
int mult(int x, int y) { return x * y; }
DEF_TEST(mult_test)
{
BEGIN_TEST(self);
self.setOption(FRISK_OPTION_CONTINUE, true);
EXPECT_EQUAL(self, mult(0, 0), 0, "0 times anything should be 0");
EXPECT_EQUAL(self,... |
<commit_before>#include "OpenGL.h"
#include "window.h"
#include "screenrenderer.h"
#include "scenemanager.h"
#include "transformation.h"
#include "KeyboardTransformation.h"
#include "animatedtransformation.h"
#include "interpolatedrotation.h"
#include "controllablecamera.h"
#include "color.h"
#include "ui_dockwidget.h... |
<commit_before>/*
* Copyright 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
*
* Unless requi... |
<commit_before>#include "stdafx.h"
#include "Version.h"
#include "D435iCamera.h"
#include "Visualizer.h"
#include <librealsense2/rs.hpp>
#include <librealsense2/rsutil.h>
#include <librealsense2/hpp/rs_pipeline.hpp>
/** RealSense SDK2 Cross-Platform Depth Camera Backend **/
namespace ark {
D435iCamera::D435iCamer... |
<commit_before>//sys_init_policy.hpp chromatic universe 2017-2020 william k. johnson
#include <memory>
#include <string>
//contrib
#include "ace/Log_Msg.h"
#include "ace/Trace.h"
//cci
#include <cci_time_utils.h>
#include <cci_daemonize.h>
using namespace cpp_real_stream;
namespace cci_policy
{
... |
<commit_before>/*
* Copyright 2016 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 applicable l... |
<commit_before>/*
** Copyright 2011 Merethis
** This file is part of Centreon Broker.
**
** Centreon Broker 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.
**
** Centreon Broker is distributed in t... |
<commit_before>//=============================================================================================================
/**
* @file main.cpp
* @author Daniel Strohmeier <daniel.strohmeier@tu-ilmenau.de>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>
* @version 1.0
* @date March, 2018
*
* @sec... |
<commit_before>//-----------------------------------------------------------------------------
// Copyright (c) 2015 Michael G. Brehm
//
// 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 wi... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/eval/eval/llvm/compile_cache.h>
#include <vespa/eval/eval/key_gen.h>
#include <vespa/eval/eval/test/eval_spec.h>
#include <ve... |
<commit_before>// Copyright (c) 2013-2016 mogemimi. Distributed under the MIT license.
#include "SpriteFont.hpp"
#include "TrueTypeFont.hpp"
#include "SpriteBatchRenderer.hpp"
#include "Pomdog/Math/Color.hpp"
#include "Pomdog/Math/Matrix4x4.hpp"
#include "Pomdog/Math/Vector2.hpp"
#include "Pomdog/Math/Vector3.hpp"
#in... |
<commit_before>/// \file
/// \ingroup tutorial_eve
/// Demonstrates usage of TEveBoxSet class.
///
/// \image html eve_boxset.png
/// \macro_code
///
/// \author Matevz Tadel
TEveBoxSet* boxset(Float_t x=0, Float_t y=0, Float_t z=0,
Int_t num=100, Bool_t registerSet=kTRUE)
{
TEveManager::Create()... |
<commit_before>void loopdir() {
// example of script to loop on all the objects of a ROOT file directory
// and print on Postscript all TH1 derived objects
// This script uses the file generated by tutorial hsimple.C
//Author: Rene Brun
TString dir = gSystem->UnixPathName(__FILE__);
dir.ReplaceAll("l... |
<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
* "L... |
<commit_before>/*
* bacteria-core, core for cellular automaton
* Copyright (C) 2016 Pavel Dolgov
*
* See the LICENSE file for terms of use.
*/
#include <boost/test/unit_test.hpp>
#include "TestFunctions.hpp"
#include "CoreConstants.hpp"
#include "CoreGlobals.hpp"
#include "Exception.hpp"
#include "Model.hpp"
#i... |
<commit_before>/**
* @version GrPPI v0.2
* @copyright Copyright (C) 2017 Universidad Carlos III de Madrid. All rights reserved.
* @license GNU/GPL, see LICENSE.txt
* 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 ... |
<commit_before>#define DEBUG 1
/**
* File : D2.cpp
* Author : Kazune Takahashi
* Created : 2020/3/9 17:08:58
* Powered by Visual Studio Code
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cstdio>
... |
<commit_before>#include "Commands.h"
#include <unistd.h>
#include <sys/wait.h>
static const int STDIN_FD = 0;
static const int STDOUT_FD = 1;
Atomic::Atomic(const std::vector<std::string>& cmdline, const std::vector<Redirection*>& redirections, bool _background) :
_cmdline(cmdline), _redirections(redirections), ... |
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2015
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade 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 Foundat... |
<commit_before>/** @file iterativeSolvers.cpp
@brief Example on how the solve a system of linear equation with the MINRES and CG method.
This file is part of the G+Smo library.
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 distribute... |
<commit_before>#include <gtest/gtest.h>
#include <exception>
#include <algorithm>
#include <iostream>
using std::endl ;
#include <vector>
using std::vector ;
#include <sofa/helper/logging/Messaging.h>
using sofa::helper::logging::MessageDispatcher ;
#include <sofa/helper/logging/MessageHandler.h>
using sofa::helper... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>/**
*
* Graph
*
* Undirected, weighted graph
* https://github.com/kdzlvaids/algorithm_and_practice-pknu-2016
*
*/
#ifndef ALGORITHM_GRAPH_HPP_
#define ALGORITHM_GRAPH_HPP_ 1
/** Includes */
#include <cstddef> /** size_t definition */
#include <vector> /** Containers */
#inc... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>/****************************************************************/
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* All contents are licensed under LGPL V2.1 */
/* See LICENSE for full r... |
<commit_before><commit_msg>delete comments<commit_after><|endoftext|> |
<commit_before>/**
Copyright 2015 Joachim Wolff
Master Thesis
Tutors: Milad Miladi, Fabrizio Costa
Winter semester 2015/2016
Chair of Bioinformatics
Department of Computer Science
Faculty of Engineering
Albert-Ludwig-University Freiburg im Breisgau
**/
#include <Python.h>
#include "../minHash.h"
#include "../... |
<commit_before>// Licence 2
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
#include "dart_api.h"
//#include "dart_native_api.h"
struct termios tio;
struct termios stdio;
struct termios old_stdio;
int tty_fd;
/*
Called the first time a native fun... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*
* 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://ww... |
<commit_before>// @(#)root/ged:$Id$
// Author: Marek Biskup, Ilka Antcheva 22/07/03
/*************************************************************************
* Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*************************************************************************
*
* $RCSfile: baside3.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: kz $ $Date: 2004-07-23 12:08:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>
#include <map>
#include <string>
#include <ifstream>
#include <cassert>
#include <cstdint>
#include <fcntl.h>
#include <unistd.h>
#include "partition/hash.h" // TODO: how to include this
#include "partition_io.h"
#include "edisense_types.h"
using namespace std;
static map<string, nod... |
<commit_before>#include "connection.h"
#include <QScriptValueIterator>
namespace QJSTP
{
const QByteArray Connection::TERMINATOR = QByteArray::fromRawData("\0", 1);
const QString Connection::HANDSHAKE = "handshake";
const QString Connection::CALL = "call";
const QString Connection::CALL_BACK = "callback";
const QSt... |
<commit_before>/*
* Copyright (C) 2017 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 (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Script Generator project on Qt Labs.
**
**... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Script Generator project on Qt Labs.
**
**... |
<commit_before>/*
* Copyright Andrey Semashev 2007 - 2015.
* 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)
*/
/*!
* \file formatters/c_decorator.hpp
* \author Andrey Semashev
* \date ... |
<commit_before>#include "Animus.h"
CAnimus::CAnimus(void)
{
}
void CAnimus::Begin()
{
PersMem.Begin(); // loads data from EEPROM to RAM
AnimusKeyboard.Begin(); // initialise keyboard module
Comms.Begin(BAUD); // start comms
Mod.Begin(); // initialise mods
}
void CAnimus::Loop()
{
MillisLoop(); // checks p... |
<commit_before>/*=========================================================================
Library: IntersonArray
Copyright Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 ( the "License" );
you may not use this file except in comp... |
<commit_before>// Author: Valeri Fine 21/01/2002
/****************************************************************************
** $Id$
**
** Copyright (C) 2002 by Valeri Fine. Brookhaven National Laboratory.
** All rights reserved.
**
** This file may be distributed under the terms ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.