text
stringlengths
54
60.6k
<commit_before>//------------------------------------------- // // Example of the registration hierarchy // //------------------------------------------- #include <itkVectorContainer.h> #include <itkRegistrationTransform.h> #include <itkLBFGSOptimizer.h> #include <itkAffineTransform.h> #include <itkProcrustesRegistr...
<commit_before>#include "mbed.h" #include "crypto.h" #include "default_random_seed.h" #include "psa_prot_internal_storage.h" int mbed_default_seed_read(unsigned char *buf, size_t buf_len) { psa_its_status_t rc = psa_its_get(PSA_CRYPTO_ITS_RANDOM_SEED_UID, 0, buf_len, buf); return ( -1 * rc ); } int mbed_defau...
<commit_before>#include <fstream> #include <boost/lexical_cast.hpp> #include <boost/filesystem.hpp> #include <possumwood_sdk/node_implementation.h> #include <possumwood_sdk/datatypes/filename.h> #include <actions/io.h> #include <ImathMatrixAlgo.h> #include "datatypes/animation.h" #include "tokenizer.h" namespace {...
<commit_before>// Copyright Stefan Seefeld 2005. // 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) #include <boost/python/exec.hpp> #include <boost/python/borrowed.hpp> #include <boost/python/dict.hpp> #in...
<commit_before>#pragma once #include <Geometry2d/Point.hpp> #include <rrt/2dplane/PlaneStateSpace.hpp> namespace Planning { /** * Represents the robocup field for path-planning purposes. */ class RoboCupStateSpace : public RRT::StateSpace<Geometry2d::Point> { public: RoboCupStateSpace(const Field_Dimensions& d...
<commit_before>///////////////////////////////////////////////////////////////////////////// // Name: ghistogram.cpp // Purpose: // Author: Eloy Martinez // Modified by: // Created: Mon 23 Jun 2008 11:40:03 CEST // RCS-ID: // Copyright: // Licence: ///////////////////////////////////...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2014 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>/* * Copyright (c) 2003 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 copyri...
<commit_before>/* * Copyright (c) 2012, Andrew Brown * 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. Redistributions of source code must retain the above copyright notice, * this...
<commit_before>// Copyright 2017 Global Phasing Ltd. #include "common.h" #include <pybind11/stl.h> #include <pybind11/stl_bind.h> #include <ostream> #include "gemmi/seqid.hpp" #include "gemmi/metadata.hpp" #include "gemmi/enumstr.hpp" #include "gemmi/tostr.hpp" #include "meta.h" namespace py = pybind11; using namesp...
<commit_before>#if !defined(__CINT__) || defined(__MAKECINT__) #include <AliEMCALGeometry.h> #include <AliOADBContainer.h> #include <TCanvas.h> #include <TClonesArray.h> #include <TDatime.h> #include <TFile.h> #include <TGrid.h> #include <TH2F.h> #include <TLegend.h> #include <TMap.h> #include <TNtuple.h> #include <TOb...
<commit_before>#pragma once #include <stdlib.h> //free #include <cassert> #include <c7a/data/data_manager.hpp> #include <c7a/net/net-exception.hpp> #include "socket.hpp" namespace c7a { namespace net { #define BUFFER_SIZE 1024 //! Block header is sent before a sequence of blocsk //! it indicates the number of elem...
<commit_before>///////////////////////////////////////////////////////////////////////////// // Name: ghistogram.cpp // Purpose: // Author: Eloy Martinez // Modified by: // Created: Mon 23 Jun 2008 11:40:03 CEST // RCS-ID: // Copyright: // Licence: ///////////////////////////////////...
<commit_before>/* unzipcomp.cpp Copyright (C) 2003 Tommi Mäkitalo This file is part of tntnet. Tntnet 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 l...
<commit_before>//===-- FormatCache.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>/*========================================================================= Program: Visualization Toolkit Module: vtkThreadedController.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. ...
<commit_before>#include "pch.h" #include "aiInternal.h" #include "aiContext.h" #include "aiObject.h" #include "aiAsync.h" std::string ToString(const aiConfig &v) { std::ostringstream oss; oss << "{swapHandedness: " << (v.swap_handedness ? "true" : "false"); oss << ", swapFaceWinding: " << (v....
<commit_before> #include <cstdio> #include <thread> #include <windows.h> #include <fstream> #include <cstdlib> #include <mmsystem.h> #include <assert.h> // debugging #include <cstdlib> #include "FLAC++/encoder.h" #include "FLAC/stream_encoder.h" /* audio settings */ int const NUM_CHANNELS = 1; // mono audio (ster...
<commit_before>#ifndef PCL_TRACKING_IMPL_COHERENCE_H_ #define PCL_TRACKING_IMPL_COHERENCE_H_ namespace pcl { namespace tracking { template <typename PointInT> double PointCoherence<PointInT>::compute (PointInT &source, PointInT &target) { return computeCoherence (); } template <type...
<commit_before>// -*- Mode: C++; tab-width: 2; -*- // vi: set ts=2: // // A tool for computing rmsd between proteins // // #include <BALL/DOCKING/COMMON/poseClustering.h> #include <BALL/FORMAT/DCDFile.h> #include <BALL/FORMAT/PDBFile.h> #include <BALL/FORMAT/lineBasedFile.h> #include <BALL/FORMAT/commandlineParser.h>...
<commit_before>/* * Harversine.c * Haversine * * Created by Jaime Rios on 2/16/08. * */ #include "Harversine.h" #include <math.h> // For PI /* Haversine Formula R = earth’s radius (mean radius = 6,371km) Δlat = lat2− lat1 Δlong = long2− long1 a = sin²(Δlat/2) + cos(lat1).cos(lat2).sin²(Δlong/2) c = 2...
<commit_before>// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection,unix.Malloc -analyzer-config c++-allocator-inlining=true -std=c++11 -verify %s void clang_analyzer_eval(bool); typedef __typeof__(sizeof(int)) size_t; void *malloc(size_t size); void *operator new(size_t size) throw() { void *x ...
<commit_before>/// @file /// @version 3.14 /// /// @section LICENSE /// /// This program is free software; you can redistribute it and/or modify it under /// the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause #ifdef _XAUDIO2 #include <xaudio2.h> #include <hltypes/hlog.h> #include <hltypes/hpl...
<commit_before>#include "region_expander.hpp" namespace vg { RegionExpander::RegionExpander(xg::XG* xg_index, const SnarlManager* snarl_manager) : xg_index(xg_index), snarl_manager(snarl_manager) { // Nothing to do } map<pair<id_t, bool>, pair<uint64_t,uint64_t >> RegionExpander::expa...
<commit_before>#include "phantom.h" extern "C" { #include "arrayops.h" } #include <math.h> /* * SheppLogan3D.java * * Created on January 7, 2007, 8:46 PM */ /** * * Three-dimensional Shepp-Logan Phantom in both the Fourier and image domains. * * This is a class called SheppLogan3D. It can...
<commit_before>#include <QPainter> #include <QAbstractEventDispatcher> #include <QApplication> #include <QPaintEvent> #include <QFontMetrics> #include <qterm.h> #include <stdio.h> #include <QKeyEvent> #include <QTimer> #include <sys/select.h> #include <errno.h> #ifdef __QNX__ #include <sys/types.h> #include <sys/stat.h...
<commit_before>#include "Archive.h" #include <cmath> #include <cstring> #include <cstdarg> using WalrusRPG::PIAF::PIAFException; using namespace WalrusRPG::PIAF; PIAFException::PIAFException(const char *format, ...) : msg("") { va_list list; va_start(list, format); vsnprintf(msg, 1024, format, list); va_end(list...
<commit_before>#include "stdafx.h" #include "Alembic.h" #include "AlembicArchiveStorage.h" #include "AlembicDefinitions.h" #include "AlembicFloatController.h" #include "Utility.h" #include "AlembicNames.h" #include "resource.h" #include "AlembicMAXScript.h" #include "AlembicCameraUtilities.h" // This function returns ...
<commit_before>/** The goal of this tutorial is to implement in Tiramisu a code that is equivalent to the following for (int i = 0; i < 10; i++) for (int j = 0; j < 20; j++) output[i, j] = input[i, j] + i + 2; */ #include <tiramisu/tiramisu.h> #define NN 10 #define MM 20 using namespace tiramisu; i...
<commit_before>/* * Copyright (C) 2015 Pavel Kirienko <pavel.kirienko@gmail.com> */ #ifndef UAVCAN_PROTOCOL_DYNAMIC_NODE_ID_SERVER_ALLOCATION_REQUEST_MANAGER_HPP_INCLUDED #define UAVCAN_PROTOCOL_DYNAMIC_NODE_ID_SERVER_ALLOCATION_REQUEST_MANAGER_HPP_INCLUDED #include <uavcan/build_config.hpp> #include <uavcan/debug....
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>// RUN: %clang_cc1 -std=c++2a -emit-llvm %s -o - -triple %itanium_abi_triple | \ // RUN: FileCheck %s \ // RUN: '-DWE="class.std::__1::weak_equality"' \ // RUN: '-DSO="class.std::__1::strong_ordering"' \ // RUN: '-DSE="class.std::__1::strong_equality"' \ // RUN: '-D...
<commit_before>/* * HyperbolicGenerator.cpp * * Created on: 20.05.2014 * Author: Moritz v. Looz (moritz.looz-corswarem@kit.edu) * This generator is a simplified version of the model presented in * "Hyperbolic geometry of complex networks. Physical Review E, 82:036106, Sep 2010." by * Dmitri Krioukov, Fra...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>#include "providers/twitch/TwitchAccount.hpp" #include <QThread> #include "Application.hpp" #include "common/NetworkRequest.hpp" #include "debug/Log.hpp" #include "providers/twitch/PartialTwitchUser.hpp" #include "providers/twitch/TwitchCommon.hpp" #include "singletons/Emotes.hpp" #include "util/Rapidj...
<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>// // Created by monty on 07/02/17. // #include "glm/glm.hpp" #include "glm/gtc/matrix_transform.hpp" #include <memory> #include <iostream> #include <functional> #include <utility> #include <unordered_map> #include <map> #include <EASTL/vector.h> #include <EASTL/array.h> using eastl::vector; using east...
<commit_before>#define _WIN32_WINNT 0x0601 #pragma comment( lib, "user32.lib" ) #include <iostream> #include <windows.h> #include <stdio.h> #include <shellapi.h> #include "defines.h" #include "resource.h" #include "helpers.h" #include "WindowHelpers.h" HHOOK hKeyboardHook; __declspec(dllexport) LRESULT CALLBACK Keyb...
<commit_before>/* This file is part of the Util library. Copyright (C) 2017 Sascha Brandt <myeti@mail.upb.de> This library is subject to the terms of the Mozilla Public License, v. 2.0. You should have received a copy of the MPL along with this library; see the file LICENSE. If not, you can obtain one at http:/...
<commit_before>#include "ArgHandler.h" ArgHandler::ArgHandler() { // handle defaults in the parse(..) and verify(..) functions } void ArgHandler::parse(int argc, char** argv) { desc.add_options() /* --env [ on | off ] --bgc [ on | off ] --dvm [ on | off ] --dsl [ on | off ] --dsb [ on | off ...
<commit_before>#include <stdio.h> #include <string.h> #include <sys/stat.h> #include "../rtstuff/rtdefs.h" #ifdef USE_SNDLIB #include <unistd.h> #include <errno.h> #include "../H/sndlibsupport.h" #else #include "../H/sfheader.h" #include "../H/byte_routines.h" #endif int rtfileit = 0; /* signal writin...
<commit_before>#include <iostream> #include <typeinfo> /** Please see http://www.eptacom.net/pubblicazioni/pub_eng/mdisp.html for * the code with the original idea. * */ namespace MULTIDISPATCH { using namespace std; /* pynff onfr { choyvp: hfvat cnerag_glcr = onfr; iveghny ~onfr() {} iveghny ibvq s(on...
<commit_before>// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "command_args_parser.h" #include <string.h> #include <iostream> // Windows Specific #ifdef _WIN32 #include "getopt.h" #include "windows.h" #else #include <unistd.h> #endif #include <core/graph/con...
<commit_before>// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include <set> #include <string> #include "atom/common/native_mate_converters/callback.h" #include "atom/common/native_mate_converters/file_path_converter.h" #include "...
<commit_before>/* <x0/Socket.cpp> * * This file is part of the x0 web server project and is released under LGPL-3. * http://www.xzero.ws/ * * (c) 2009-2010 Christian Parpart <trapni@gentoo.org> */ #include <x0/Socket.h> #include <x0/Buffer.h> #include <x0/BufferRef.h> #include <x0/Defines.h> #include <x0/StackTr...
<commit_before>/* * opencog/comboreduct/main/interactive-reductor.cc * * Copyright (C) 2002-2008 Novamente LLC * All Rights Reserved * * Written by Nil Geisweiller * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * pub...
<commit_before><commit_msg>Translate comments<commit_after><|endoftext|>
<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/common/indexed_db_key.h" #include "base/logging.h" #include "third_party/WebKit/WebKit/chromium/public/WebString.h" ...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/file_path.h" #include "chrome/common/chrome_switches.h" #include "chrome/test/ui/npapi_test_helper.h" #include "chrome/t...
<commit_before>/* Cycript - Inlining/Optimizing JavaScript Compiler * Copyright (C) 2009 Jay Freeman (saurik) */ /* Modified BSD License {{{ */ /* * Redistribution and use in source and binary * forms, with or without modification, are permitted * provided that the following conditions are met: * * 1. Re...
<commit_before>struct Client1; struct Client2; typedef Visitor<Client1, Client2> BaseClientVisitor; struct Client1 : BaseClientVisitor::Visitable<Client1> { }; struct Client2 : BaseClientVisitor::Visitable<Client2> { }; struct Client2a; struct Client2b; typedef Visitor<Client2a, Client2b> Client2Visitor; struct Clien...
<commit_before>/* -------------------------------------------------------------------------- */ /* Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org) */ /* */ /* Licensed under the Apache License, Version 2.0 (the "Licens...
<commit_before>// Copyright (c) 2013-2018 Anton Kozhevnikov, Thomas Schulthess // 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. Redistributions of source code must retain the above cop...
<commit_before>/* * Copyright (c) 2015 Ivan Valiulin * * This file is part of viaVR. * * viaVR 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 op...
<commit_before>#include "master.hpp" namespace factor { old_space::old_space(cell size_, cell start_) : zone(size_,start_) { cell cards_size = size_ >> card_bits; allot_markers = new card[cards_size]; allot_markers_end = allot_markers + cards_size; } old_space::~old_space() { delete[] allot_markers; } card *old...
<commit_before>#include <stan/math/prim.hpp> #include <test/unit/math/prim/util.hpp> #include <boost/random/mersenne_twister.hpp> #include <boost/math/distributions/chi_squared.hpp> #include <gtest/gtest.h> #include <stdexcept> #include <vector> TEST(ProbDistributionsWishartCholesky, rng) { using Eigen::MatrixXd; ...
<commit_before>/*************************************************************************** * Copyright (C) 2008-2009 Massachusetts Institute of Technology * * * * This source code is part of the PetaBricks project and currently only ...
<commit_before>#include "connection.h" #include <QSslSocket> #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 =...
<commit_before>/*! @file @copyright Edouard Alligand and Joel Falcou 2015-2017 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_BRIGAND_FUNCTIONS_HPP #define BOOST_BRIGAND_FUNCTIONS_HPP #include <brigand/functions/arithmetic.hpp> #include <brigand/functions/bitwise.hpp> ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Jolla Ltd. ** Contact: Vesa-Matti Hartikainen <vesa-matti.hartikainen@jollamobile.com> ** ****************************************************************************/ /* This Source Code Form is subje...
<commit_before>/*========================================================================= Program: DICOM for VTK Copyright (c) 2012-2014 David Gobbi All rights reserved. See Copyright.txt or http://dgobbi.github.io/bsd3.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even ...
<commit_before>#ifdef _WIN32 #define M_PI 3.14 #endif #include <cmath> #include <iostream> #include <fstream> #include "Body.hpp" #define G 15 // TODO: Get the right number #define SIZE 6 #define DENSITY 7878 // kg/m^3 using namespace sf; using namespace std; Body::Body(Vector2f pos, int m, Vector2f dir) : positi...
<commit_before>// Copyright 2015-2020 Elviss Strazdins. All rights reserved. #ifndef OUZEL_STORAGE_ARCHIVE_HPP #define OUZEL_STORAGE_ARCHIVE_HPP #include <cstdint> #include <fstream> #include <map> #include <stdexcept> #include <string> #include <vector> #include "Path.hpp" #include "../utils/Utils.hpp" namespace ou...
<commit_before>#include <boost/test/unit_test.hpp> #include "../unittest_config.h" #include <vector> #include <type_traits> #include "clotho/utility/bit_walker.hpp" #include "clotho/utility/bit_block_iterator.hpp" typedef unsigned long block_type; typedef unsigned short sub_block_type; typedef clotho::utility::bloc...
<commit_before>#include "soundcard.h" #include "ui_soundcard.h" #include <QMouseEvent> #include <QDebug> #include <QTimer> SoundCard::SoundCard(QWidget *parent, QString sndFile) : QWidget(parent), ui(new Ui::SoundCard), firstClick(true) { ui->setupUi(this); setStyleSheet(":hover {background-color: ...
<commit_before>// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #include <string.h> #define GL_GLEXT_PROTOTYPES 1 #include "GL/glcorearb.h" #include "GL/glext.h" #include "GL/wglext.h" #include "RendererOGLWin.h" #include "core/windows/WindowWin.h" #include "utils/Utils.h" static const...
<commit_before> TVector3 v[28]; Int_t nCh; TGeoHMatrix GetResSurvAlign(Int_t survNch); void SurveyToAlignHmpid(){ AliSurveyObj *so = new AliSurveyObj(); Int_t size = so->GetEntries(); printf("-> %d\n", size); so->FillFromLocalFile("Survey_781282_HMPID.txt"); size = so->GetEntries(); printf("--> %d\...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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 3 of the License, or (at your option) any later version. cpp-ethereum is dis...
<commit_before>#include "gtest/gtest.h" #include "serialization.hpp" TEST(SerializationUnitTest, testDecreeIsSerializableAndDeserializable) { Decree expected("an_author_1", 1, "the_decree_contents"), actual; std::string string_obj = Serialize(expected); actual = Deserialize<Decree>(string_obj); ASS...
<commit_before>//#include <QCoreApplication> #include "../../DesktopEditor/fontengine/ApplicationFonts.h" #include "../../PdfReader/PdfReader.h" #include "../../DjVuFile/DjVu.h" #include "../../XpsFile/XpsFile.h" #include "../../PdfWriter/PdfRenderer.h" #include "../include/HTMLRenderer3.h" #include "../i...
<commit_before>/* Bacula® - The Network Backup Solution Copyright (C) 2007-2007 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. This program is Free Software; you can redistribute it a...
<commit_before>/* * Copyright (C) 2010-2014 Jeremy Lainé * Contact: https://github.com/jlaine/qdjango * * This file is part of the QDjango Library. * * 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 So...
<commit_before>/************************************************************************************ ** * @copyright (c) 2013-2100, ChengDu Duyer Technology Co., LTD. All Right Reserved. * *************************************************************************************/ /** * @file g_network_server.cpp * @versi...
<commit_before>/* * Copyright (c) 2021 Pedro Falcato * This file is part of Onyx, and is released under the terms of the MIT License * check LICENSE at the root directory for more information */ #include <object.h> #include <sys/socket.h> #include <unistd.h> #include <cstring> #include <onyx/public/netkernel.h> ...
<commit_before>/**************************************************************************** * * Copyright (c) 2018 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 (c) 2017 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>//===- DAGISelMatcherOpt.cpp - Optimize a DAG Matcher ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "pch.h" #include "DspLimiter.h" namespace SaneAudioRenderer { namespace { inline bool OverflowingLess(uint32_t a, uint32_t b) { return a - b > UINT32_MAX / 2; } inline float f_x(const std::pair<uint32_t, float>& left, const std::p...
<commit_before>#include "Encryption.h" #include <QDebug> // DEBUG // std::string version Encryption::Encryption(unsigned short key, string & opseq, unsigned short charsiz) : m_Key(key), m_OpSequence(opseq), m_CharSetSize(charsiz), m_Perm(0) {} // QString version Encryption::Encryption(unsigned short key, QString & o...
<commit_before>/* * SessionHistoryArchive.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...
<commit_before>// Copyright (c) 2007, 2008 libmv authors. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, ...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2012, John Haddon. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
<commit_before>// Copyright (c) 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 <ClientData/ScopeTreeTimerData.h> namespace orbit_client_data { const orbit_client_protos::TimerInfo& ScopeTreeTimerData::AddTi...
<commit_before>/* * SessionObjectExplorer.cpp * * Copyright (C) 2009-17 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...
<commit_before>/* * Copyright 2011 Esrille Inc. * Copyright 2009, 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
<commit_before>/******************************************************************************* Licensed to the OpenCOR team under one or more contributor license agreements. See the NOTICE.txt file distributed with this work for additional information regarding copyright ownership. The OpenCOR team licenses this file...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008-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 // ...
<commit_before>// Copyright (c) 2006-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/first_run.h" #include "build/build_config.h" // TODO(port): move more code in back from the first_run_w...
<commit_before>#include "Header.h" int main() { return 0; } <commit_msg>Update MyBank.cpp<commit_after>#include <iostream> #include <stdio.h> #include <stdlib.h> using namespace std; void greet() { int menu; system("clear"); cout<<"Welcome to Pirate Bay Bank, We strive to meet your every ...
<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/io_thread.h" #include "base/command_line.h" #include "base/debug/leak_tracker.h" #include "base/logging.h" #i...
<commit_before>/*********************************************************************** filename: CommonDialogsDemo.cpp created: Sun Oct 23 2011 author: Paul D Turner <paul@cegui.org.uk> *************************************************************************/ /************************************...
<commit_before>/* Project: Aquarium Controller Library: Time Version: 1.0 Author: Rastislav Birka */ #include <avr/eeprom.h> #include <Arduino.h> #include "AQUA_time.h" /* Public Functions */ void AQUA_time::init(uint8_t dataPin, uint8_t clockPin, uint8_t dsType, bool useDST, uint8_t timeZone) { _dataPin...
<commit_before>/* OpenDeck MIDI platform firmware Copyright (C) 2015-2017 Igor Petrovic 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 3 of the License, or ...
<commit_before>/** * @file ModelParametersRBFN.hpp * @brief ModelParametersRBFN class header file. * @author Freek Stulp * * This file is part of DmpBbo, a set of libraries and programs for the * black-box optimization of dynamical movement primitives. * Copyright (C) 2014 Freek Stulp, ENSTA-ParisTech * *...
<commit_before>/* * Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO> * * 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>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2012 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>#include "Parser.hpp" Parser::Parser(int argc, char **argv) { for (int i = 1; i < argc; ++i) { _raw_args.push_back(std::string{argv[i]}); } } void Parser::add_arg(std::string longhand, std::vector<Constraint> constraints, std::string shorthand, bool required, std::string description) { _args.p...
<commit_before>// // Parser.cpp // // // Created by James Spann on 4/23/14. // // #include <fstream> #include "Parser.h" #include "vm.h" #include "Variable.h" using namespace std; int addToInt(int origi, int val); string operand; bool isVariable; int currentInt; Variable parameters[5]; SymbolTable rect; void ...
<commit_before>/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
<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 not d...