text
stringlengths
54
60.6k
<commit_before>#include "../include/Cerium/vec2.hpp" #include "../include/Cerium/Window.hpp" #include "../include/Cerium/EventManager.hpp" #include "../include/Cerium/Act.hpp" #include "../include/Cerium/VertexArray.hpp" #include "../include/Cerium/Scriptable.hpp" #include "../include/Cerium/Camera.hpp" #include "../in...
<commit_before>#pragma once #include "pch.h" #include "Hair.h" namespace RTHR { Hair::Hair(wchar_t const* dir, uint16 width, uint16 length) { m_width = width; m_length = length; m_wispCount = 0; //loadHairVertex(dir); } Hair::Hair(GeometryType aType, shared_ptr<DX::DeviceResources> device, float aSize, ui...
<commit_before>#include "MeterWnd.h" #include "Animation.h" #define TIMER_HIDE 100 #define TIMER_ANIMIN 101 #define TIMER_ANIMOUT 102 MeterWnd::MeterWnd(HINSTANCE hInstance, LPCWSTR className, LPCWSTR title, Animation *hideAnimation, Animation *showAnimation, int visibleDuration) : _hInstance(hInstance), _classN...
<commit_before>#include <enet/enet.h> #include <stdio.h> #include<stdlib.h> #include <signal.h> #include <string.h> bool isExit = false; void cs(int n) { if (n == SIGINT) { isExit = true; } } int main(int argc, char ** argv) { signal(SIGINT, cs); if (enet_initialize() != 0) { fprintf(s...
<commit_before>#include <stdio.h> #include <LR35902.h> #include <Z80.h> #include <cstring> #include <unistd.h> using namespace std; void z80(string filename); void gameboy(string filename); void z80(string filename) { printf("Emulating a Z80\n"); Z80Cpu cpu; cpu.reset(); cpu.running=true; cpu.memory.loadRom(filena...
<commit_before>//===--- Comment.cpp - Comment AST node implementation --------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------...
<commit_before>// // Video.cpp // Clock Signal // // Created by Thomas Harte on 31/10/2020. // Copyright © 2020 Thomas Harte. All rights reserved. // #include "Video.hpp" using namespace Apple::IIgs::Video; namespace { constexpr int CyclesPerTick = 7; // One 'tick' being the non-stretched length of a cycle on t...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MITKC...
<commit_before>/* * $Id: XMMediaStream.cpp,v 1.12 2007/04/10 19:04:32 hfriederich Exp $ * * Copyright (c) 2005-2007 XMeeting Project ("http://xmeeting.sf.net"). * All rights reserved. * Copyright (c) 2005-2007 Hannes Friederich. All rights reserved. */ #include "XMMediaStream.h" #include "XMOpalManager.h" #inclu...
<commit_before>#include <Render/Data.hh> #include <iostream> #include <string> #include <cassert> namespace gl { Data::Data() : _nbrElement(0) { } Data::Data(size_t nbrElement, AGE::Vector<size_t> const &sizeBuffers, AGE::Vector<void *> const &buffers) : _buffers(buffers.size()), _sizeBuffers(sizeBuffers), ...
<commit_before>/* Copyright 2021 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> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <sys/stat.h> #include <dlfcn.h> #include <arpa/inet.h> #include "vm.hpp" #include "oop.hpp" #include "vm/object_utils.hpp" #include "objectmemory.hpp" #include "builtin/array.hpp" #include "builtin/class.hpp" #incl...
<commit_before>/*************************************************************************** * Copyright (c) 2011 Werner Mayer <wmayer[at]users.sourceforge.net> * * * * This file is part of the FreeCAD CAx development system. ...
<commit_before> // $Id$ /************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * All rights reserved. * * ...
<commit_before>/* Copyright (C) 2013 Marco Heisig, Dominik Ernst, Frederic Simonis This file is part of Rabenstein. Rabenstein 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 Lice...
<commit_before>/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #pragma once #include <tuple> #include <type_traits> namespace game { namespace detail { struct no {}; template <class T> no operator==(const T& t1, const T& t2); template <class T> struct has_equality { ...
<commit_before>/* Siconos-Kernel, Copyright INRIA 2005-2012. * Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * Siconos is a 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>// // Created by Andre Kutzleb on 8/07/15. // #include "zsdnCommonsTests.h" #include <NetUtils.h> #include "zsdn/proto/CommonTopology.pb.h" #include "NetworkGraph.h" #include <RequestUtils.h> #include <LociExtensions.h> #include <Poco/Exception.h> #include <MemUtils.h> #include "zsdn/topics/TopologyModu...
<commit_before>// Copyright (c) 2021 The Orbit 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 "GpuDebugMarkerTrack.h" #include <absl/time/time.h> #include <algorithm> #include <memory> #include "App.h" #include "Batcher....
<commit_before>#include "DRAWOBJ.H" #include "SPECIFIC.H" void MakeMono(unsigned short* s, unsigned char* d)//7F9E4 { S_Warn("[MakeMono] - Unimplemented!\n"); } void InitObjGTE() { S_Warn("[InitObjGTE] - Unimplemented!\n"); } void phd_PutPolygons(short* mesh, short clip) { UNIMPLEMENTED(); }<commit_msg>Update DR...
<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. // This file contains stub implementations of the functions declared in // browser_dialogs.h that are currently unimplemented in GTK-vi...
<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/views/panel_controller.h" #include <gdk/gdkx.h> extern "C" { #include <X11/Xlib.h> } #include "app/resource_...
<commit_before>/* * Copyright (c) 2016 Alvin Wong <alvinhochun@gmail.com> * * 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>//===- Pass.cpp - LLVM Pass Infrastructure Implementation -----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<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/renderer/devtools_agent_filter.h" #include "base/message_loop.h" #include "chrome/common/devtools_messages.h" #includ...
<commit_before>/************************************************************************* * * $RCSfile: propertysethelper.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: kz $ $Date: 2005-07-01 13:17:00 $ * * The Contents of this file are made available subject to the terms of * either of the follow...
<commit_before>// Time: O(n) // Space: O(n) class Solution { public: string solveEquation(string equation) { equation = regex_replace(equation, regex("(^|[+=-])x"), "$011x"); auto pos = equation.find('='); auto l = coef(equation.substr(0, pos)); auto r = coef(equation.substr(pos +...
<commit_before>//--------------------------------------------------------------------*- C++ -*- // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Axel Naumann <axel@cern.ch> //------------------------------------------------------------------------------ #include "cling/Interpreter/CIFactory.h...
<commit_before>#include <vector> #include <sqlite3.h> #include "ace/OS_NS_sys_time.h" #include "log.h" #include "LocationStore.h" #include "QueryStatementBuilder.h" LocationStoreReceiver::LocationStoreReceiver (void) : db_ (0), err_prefix_ ("LocationStoreReceiver - data push: ") { sqlite3_open ("LocationSt...
<commit_before>/**************************************************************************** * * Copyright (C) 2012 PX4 Development Team. 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 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>#pragma once #include <map> #include <memory> #include <string> #include <vector> #include <variant> namespace plantgen { struct multi_value_t { size_t num_to_pick; std::vector<std::string> values; }; using range_value_t = std::vector<std::string>; using null_v...
<commit_before>/** * @file * @author Jason Lingle * @date 2012.02.13 * @brief Implementation of the Asynchronous Acknowledgement Gerät and friends */ #include <map> #include <set> #include <deque> #include <iostream> #include <cstring> #include "async_ack_geraet.hxx" #include "io.hxx" using namespace std; /* T...
<commit_before>#include "header.h" //#include <omp.h> //#include <vl/generic.h> #include <opencv2/opencv.hpp> //#include <math.h> #include "iotools.h" #include <fstream> using namespace std; using namespace cv; int main(int argc, char** argv){ double t[2]; // timing t[0] = get_wall_time(); // Start Time if (argc <...
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE** * CONDOR Copyright Notice * * See LICENSE.TXT for additional notices and disclaimers. * * Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department, * University of Wisconsin-Madison, Madison, WI. All Rights Reserved. * No ...
<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>#include "numeric/numeric_type.h" #include "numeric/numeric_op.h" #include "numeric/wide_op.h" #include "iroha/test_util.h" #include <assert.h> #include <iostream> using namespace iroha; using namespace std; namespace { class Tool { public: static uint64_t GetValue(const Numeric &n, int idx) { ...
<commit_before>/************************************************************************* * * $RCSfile: Clob.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: oj $ $Date: 2001-05-31 08:29:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses ...
<commit_before>/* * this file is part of the oxygen gtk engine * Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.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 Founda...
<commit_before> #include "xOpenCV.h" #include "../CrH_FMTZ/fmtint.h" /* 接口内部数据结构 */ typedef struct { /* 通用部分 */ iPICTURE pics; /* 个性部分 */ camera_t m_cam; } iPIC_OCV; /* --------------------------------------- OpenCV 图片信息 -----------------------------------...
<commit_before>#include <config.h> #include <SerialDebug.h> #include <diagnostic.h> #include <display-controller.h> static int diagnostic_check_input() { return 0; } void diagnostic_init() { DEBUG("Diagnostic: Started wait for controller"); display_message(DISPLAY_DIAG); for (auto i = 0; i < DIAGNOSTI...
<commit_before>/* ** DopplerEffect - Introduction à la lecture de son spatialisé (+ démonstration de l'effet doppler) ** Prérequis: Aucun ** Utilisation du noyau et du module audio ** Présente: ** - Chargement, lecture et positionnement d'un son ** - Gestion basique d'une horloge ** - Gestion basique de position 3D */ ...
<commit_before>/************************************************************************* * * $RCSfile: localsinglebackend.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2003-03-19 16:19:20 $ * * The Contents of this file are made available subject to the terms of * either of the follo...
<commit_before>// // Created by mistlight on 1/2/2017. // #include "NodokaApp.h" #include "PlayerEventHandler.h" Core::NodokaApp::NodokaApp() { // initialize db backed models this->directoryModel = new Directory(); this->audiobookFileModel = new AudiobookFile(); this->audiobookModel = new Audiobook(th...
<commit_before>// http://www.boost.org/doc/libs/1_46_0/libs/graph/doc/topology.html //DistanceMetricConcept #include <cmath> #include <iostream> #include <boost/graph/grid_graph.hpp> #include "NearestNeighbor/topological_search.hpp" class custom_topology { public: typedef float point_type; typedef float point_...
<commit_before>#include <TChain.h> #include <TH1I.h> #include <TH2F.h> #include <TList.h> #include "AliAnalysisManager.h" #include "AliMCEvent.h" #include "AliVEvent.h" #include "AliVHeader.h" #include "AliHeader.h" #include "AliAODMCHeader.h" #include "AliAnalysisTaskPythiaNuclei.h" #include "AliGenEventHeader.h" #in...
<commit_before>/* --------------------------------------------------------------------------* * OpenSim: testOutputReporter.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and simu...
<commit_before>/*----------------------------------------------------------------------------- This source file is part of Hopsan NG Copyright (c) 2011 Mikael Axin, Robert Braun, Alessandro Dell'Amico, Björn Eriksson, Peter Nordin, Karl Pettersson, Petter Krus, Ingo Staack This file is provided "as is", w...
<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 the AXL library. // // AXL is distributed under the MIT license. // For details see accompanying license.txt file, // the public copy of which is also available at: // http://tibbo.com/downloa...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2015 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha...
<commit_before>//===----------------------------------------------------------------------===// // // PelotonDB // // index_factory.cpp // // Identification: src/backend/index/index_factory.cpp // // Copyright (c) 2015, Carnegie Mellon University Database Group // //===--------------------------...
<commit_before>/* * Copyright 2006-2008 The FLWOR 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 required by...
<commit_before>/**************************************************************************** * * Copyright (C) 2015 Mark Charlebois. 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...
<commit_before>/**************************************************************************** * * Copyright (C) 2015 Mark Charlebois. 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...
<commit_before>// File: QtxToolBar.cxx // Author: Sergey TELKOV #include "QtxToolBar.h" #include <qlayout.h> #include <qpixmap.h> #include <qdockarea.h> #include <qobjectlist.h> #include <qmainwindow.h> #include <qapplication.h> /*! Class: QtxToolBar::Watcher [Internal] Descr: Internal object with ev...
<commit_before>/************************************************************************** * Copyright(c) 1998-2006, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkExtractHierarchicalDataPiece.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm fo...
<commit_before>#include "FancyMeshComponent.hpp" #include <Core/String/StringUtils.hpp> #include <Core/Mesh/MeshUtils.hpp> #include <Engine/Renderer/RenderObject/RenderObjectManager.hpp> #include <Engine/Renderer/Mesh/Mesh.hpp> #include <Engine/Renderer/RenderObject/RenderObject.hpp> #include <Engine/Renderer/RenderO...
<commit_before> /* * SubtitleStream.cpp * sfeMovie project * * Copyright (C) 2010-2015 Stephan Vedder * stephan.vedder@gmail.com * * 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 Foun...
<commit_before>#include <iomanip> #include <iostream> #include <utility> typedef std::pair<double, double> vpair; double verlet(double pos, double acc, double dt) { double prev_pos = pos; double time = 0; while (pos > 0) { time += dt; double next_pos = pos * 2 - prev_pos + acc * dt * dt; prev_pos ...
<commit_before>#include "CTelegramAuthModule.hpp" #include "CTelegramConnection.hpp" #include "TelegramNamespace_p.hpp" #include "Utils.hpp" #include <QDebug> #ifdef DEVELOPER_BUILD #include "TLTypesDebug.hpp" #endif CTelegramAuthModule::CTelegramAuthModule(QObject *parent) : CTelegramModule(parent) { } void C...
<commit_before>// @(#)root/base:$Id$ // Author: Rene Brun 12/05/95 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/* * This file is part of the KGLEngine2D project. * Copyright (C) 2008 Sacha Schutz <istdasklar@free.fr> * Copyright (C) 2008 Olivier Gueudelot <gueudelotolive@gmail.com> * Copyright (C) 2008 Charles Huet <packadal@gmail.com> * * This program is free software; you can redistribute it and/or * mod...
<commit_before> #include <libclientserver.h> UDPMCastClient::UDPMCastClient() : m_running(false), m_port(0), m_eventfd(-1) { } UDPMCastClient::~UDPMCastClient() { } void UDPMCastClient::Start() { ScopedLock lock(&m_mutex); m_running = true; m_eventfd = eventfd(0, 0); if (m_eventfd < 0) ...
<commit_before>// Copyright 2016 Yahoo Inc. 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/vespalib/util/stringfmt.h> #include <vespa/vespalib/tensor/sparse/sparse_tensor.h> #include <vespa/vespalib/tensor/sparse/sparse_...
<commit_before>/* ======================================================================= Copyright (c) 2011, Institute for Microelectronics, Institute for Analysis and Scientific Computing, TU Wien. ----------------- Vie...
<commit_before>#include "AbstrRenderer.h" AbstrRenderer::AbstrRenderer() { } AbstrRenderer::~AbstrRenderer() { } <commit_msg><commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: prs_cpp.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: np $ $Date: 2002-11-14 18:02:05 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: tk_docw2.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2006-09-16 17:15:08 $ * * The Contents of this file are made...
<commit_before>/* * Sockets.cpp ***************************************************************************** * Copyright (C) 2015 - VideoLAN authors * * 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 S...
<commit_before>#include "musicregeditmanager.h" #include <QSettings> #include <QApplication> MusicRegeditManager::MusicRegeditManager() { } void MusicRegeditManager::setDesktopWallAutoStart(bool state) { const QString REG_RUN = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run"; QString ...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do ...
<commit_before>/* Name: LeastSquares Purpose: To estimate points on a curve using the least squares method Functions: dblEstimate(), dblError(), voidSummations(), voidForwardElim(), voidBackSub(), voidSwapValues() */ /* Hand-Derived Normal Equations for y = alnx + bsinx + c: phi(a,b,c) = Sum0-9(alnx + bsinx + c -y)^2 ...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2000 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. Red...
<commit_before>/* * Copyright 2016 Nu-book Inc. * Copyright 2016 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2000 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. Red...
<commit_before>// SPDX-License-Identifier: LGPL-2.1-or-later /* * Copyright (C) 2020 Alexandr Akulich <akulichalexander@gmail.com> * * This file is a part of TelegramQt project. */ #include "telegramqt_global.h" #include "MTProto/TLNumbers.hpp" #include "Crypto/Aes.hpp" namespace Telegram { class TELEGRAMQT_INT...
<commit_before>//****************************************************************** // // JESUS HILARIO HERNANDEZ // Course: COSC 1436.001 Programming Fundamentals 1 // Lab # 7 Math Tutor // Due Date: November 6, 2016 // Instructor: Korinne Caruso // // PURPOSE: This program functions as a math tutor to students in // ...
<commit_before>#include "VirtualMachine.h" VirtualMachine::VirtualMachine() { //ctor stackSize = 0; } VirtualMachine::~VirtualMachine() { //dtor } void VirtualMachine::interpret(unsigned int bytecode[], int byteSize) { auto startPoint = std::chrono::system_clock::now(); for(int a = 0; a < byteSi...
<commit_before>//===- CallingConvEmitter.cpp - Generate calling conventions --------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include <QFile> #include "randomgenerator.h" QT_BEGIN_NAMESPACE_CERTIFICATE /*! \class RandomGenerator \brief The RandomGenerator class is a tool for creating hard random numbers. The RandomGenerator class provides a source of secure random numbers using the system's random source (/dev/rand...
<commit_before>/** \file augment_authority_data_with_translations.cc * \brief Extract translations from database amd augment the normdata file * \author Johannes Riedl */ /* Copyright (C) 2016, Library of the University of Tübingen This program is free software: you can redistribute it and/or modif...
<commit_before>// Copyright (c) 2019 ASMlover. 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 o...
<commit_before>#include "net/net.hh" #include "msg_helper.hh" #include "examples.hh" namespace echo_server_sel { using coro::net::socket_t; using coro::net::Socket; static constexpr coro::u8_t EVNO = 0x00; static constexpr coro::u8_t EVRD = 0x01; static constexpr coro::u8_t EVWR = 0x02; class Conn; using ConnPtr = ...
<commit_before>#ifdef _WIN32 #define _CRT_SECURE_NO_WARNINGS // to use freopen #endif #include "Win32Service.h" #include <assert.h> #include <strsafe.h> #include <windows.h> #include "../Daemon.h" #include "../Log.h" I2PService *I2PService::s_service = NULL; BOOL I2PService::isService() { BOOL bIsService = FALSE; ...
<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>/* * Copyright (C) 2017 Love Park Robotics, 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
<commit_before>//This file is released under terms of BSD license` //See LICENSE.txt for more information #include <unistd.h> /* for getopt */ #include <algorithm> /* for max, min */ #include <cmath> /* for abs */ #include <iostream> /* for cout */ #include <iomanip> /* for std::setw */ #include "se...
<commit_before><commit_msg>Added debug code. Added an assert() to avoid someone using a not-ready feature.<commit_after><|endoftext|>
<commit_before> // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. #pragma once #include "../rx-operators.hpp" #if !defined(CPPRX_RX_OPERATORS_COMBINELATEST_HPP) #define CPPRX_RX_OPERATORS_COMBINELATEST_HPP namespace rxcpp { names...
<commit_before>// // interest-control.cpp // // Created by Peter Gusev on 09 June 2016. // Copyright 2013-2016 Regents of the University of California // #include "interest-control.h" #include <algorithm> #include "frame-data.h" #include "name-components.h" #include "estimators.h" using namespace ndnrtc; void I...
<commit_before>// // packet-publisher.hpp // // Created by Peter Gusev on 12 April 2016. // Copyright 2013-2016 Regents of the University of California // #ifndef __packet_publisher_h__ #define __packet_publisher_h__ #include <boost/shared_ptr.hpp> #include <ndn-cpp/c/common.h> #include <ndn-cpp/interest.hpp> #incl...
<commit_before>/***************************************************************************************** * * * OpenSpace * * ...
<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 * "...
<commit_before>// Copyright (c) 2010-2020, 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><commit_msg>[共通] fix<commit_after><|endoftext|>
<commit_before>// // This file is part of khmer, http://github.com/ged-lab/khmer/, and is // Copyright (C) Michigan State University, 2009-2013. It is licensed under // the three-clause BSD license; see doc/LICENSE.txt. // Contact: khmer-project@idyll.org // #ifndef READ_PARSERS_HH #define READ_PARSERS_HH #include <r...
<commit_before>// // ComputeTests.cpp // Vortex2D // #include <gtest/gtest.h> #include <fstream> #include <Vortex2D/Renderer/Pipeline.h> #include <Vortex2D/Renderer/DescriptorSet.h> #include <Vortex2D/Renderer/Work.h> #include <Vortex2D/Renderer/CommandBuffer.h> #include <Vortex2D/Renderer/Timer.h> #include <Vortex...
<commit_before>/** * Copyright 2017 Harold Bruintjes * * 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 applica...