text
stringlengths
54
60.6k
<commit_before>/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2003, Industrial Light & Magic, a division of Lucas // Digital Ltd. LLC // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted prov...
<commit_before>// Copyright 2018, Institute for Artificial Intelligence - University of Bremen // Author: Andrei Haidu (http://haidu.eu) #include "SLVisLoggerSpectatorPC.h" #include "SLVisCamera.h" #include "Engine/DemoNetDriver.h" #include "EngineUtils.h" #include "ImageUtils.h" #include "Async.h" #include "FileHelpe...
<commit_before>#include "MyString.h" #include <sstream> #include <algorithm> std::string NarrowString(const std::wstring& str) { std::stringstream ss; for (size_t x = 0; x < str.length(); x++) ss << ss.narrow((char)str[x], '?'); return ss.str(); } std::wstring WidenString(const std::string& str) { std::wstrings...
<commit_before>#include "../common.h" #include "String.h" #include "UtfUtil.h" namespace ax_gen { std::ostream& StrView::onStreamOut(std::ostream& s) const { const int n = 512; char tmp[n+1]; if (_size < n) { memcpy(tmp, _data, _size); tmp[_size] = 0; s << tmp; }else{ String tmp = *this; s << tmp.c_str(...
<commit_before>namespace plb{ inline PlbCaseTimer::PlbCaseTimer() { index_t global("global",GLOBAL_IND); indexMap.insert(global); clockVec.push_back(clock()); timeVec.push_back(0); activeVec.push_back(false); } inline void PlbCaseTimer::registerCustom(char const *name_) { std::str...
<commit_before>///////////////////////////////////////////////////////////////////////////// // Copyright (c) 2009-2010 Alan Wright. All rights reserved. // Distributable under the terms of either the Apache License (Version 2.0) // or the GNU Lesser General Public License. /////////////////////////////////////////////...
<commit_before>/*************************************************************************** * Copyright (c) 2016, Johan Mabille and Sylvain Corlay * * * * Distributed under the terms of the BSD 3-Clause License. ...
<commit_before>/* Copyright (c) 2008, 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>#include <stdio.h> #include <stdlib.h> #include <iostream> #include <time.h> #include "fakescript.h" #ifndef WIN32 #include "gperftools/profiler.h" #endif int cfunc1(int a, int b) { return a - b; } class class1 { public: class1() { b = 10; } int memfun...
<commit_before> #include <cstring> #include <cstdlib> #include "lest.hpp" #include "z85.h" #include "z85.hpp" using namespace std; const string c_badfood = "baadfoodbaadfoodbaadfoodbaadfood"; // Checks for buffer overruns class strict_buf { string m_buf; public: explicit strict_buf(size_t i_size) : m_...
<commit_before>#include "vtk.h" main () { vtkRenderMaster rm; vtkRenderWindow *renWin; vtkRenderer *ren1; vtkRenderWindowInteractor *iren; vtkActor *outlineActor; vtkActor *contActor; vtkPolyMapper *outlineMapper, *contMapper; vtkSampleFunction *sample; vtkQuadric *quadric; vtkOutlineFilter *outlin...
<commit_before>#include "VarExp.h" #include "Context.h" namespace sexp_cpp { int VarExp::Evaluate(Context& context) const { return context.Lookup(getVarName()); } const std::string& VarExp::getVarName() const { return mVarName; } } // sexp_cpp <commit_msg>removing old file<commit_after><|endoft...
<commit_before>#include "ofdpa_fm_driver.hpp" #include "ofdpa_datatypes.h" #include <rofl/common/crofdpt.h> #include <rofl/common/openflow/cofflowmod.h> #include <rofl/common/protocols/fvlanframe.h> #include <rofl/common/protocols/farpv4frame.h> namespace basebox { ofdpa_fm_driver::ofdpa_fm_driver(const rofl::cdptid...
<commit_before> #include "ViewFactory.h" #include "KinectController.h" #include "View.h" #include "BwView.h" #include "BwShaderView.h" #include "ColorInvertShaderView.h" #include "ColorDepthShaderView.h" #include "MeshView.h" #include "NormalMapView.h" #include "FatSuitView.h" #include "IdleView.h" ViewPtr CreateView(...
<commit_before>/* * Copyright (c) 2008, 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>#include <iostream> #include <fstream> #include <random> #include <string> #include <errno.h> //Boost includes #include <boost/filesystem.cpp> using namespace std; using namespace boost::filesystem; //Key len in bytes (Will be encoded in hex) static const int KEY_LEN = 256; static const path DIR_PATH ...
<commit_before>/******************************************************* * Copyright (c) 2017, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *******************************...
<commit_before>#include "battle_room/application.h" #include "battle_room/common/input_gatherer.h" #include "battle_room/common/application_message_receiver.h" #include "battle_room/game/query_world.h" #include "battle_room/game/objects/object_factory.h" #include "battle_room/user_interface/interface_factory.h" #inclu...
<commit_before>/* * Copyright (c) 2012, 2013 Aldebaran Robotics. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the COPYING file. */ #include <fstream> #include <cstdlib> #include <qi/application.hpp> #include <qi/qi.hpp> #include <qi/os.hpp> #include <qi/...
<commit_before>#include <node.h> #include <stdint.h> #include <cstring> #include <string> #include "../argon2/include/argon2.h" #include "argon2_node.h" namespace NodeArgon2 { template<class T = uint32_t> T fromJust(v8::Local<v8::Value> info) { return Nan::To<T>(info).FromJust(); } using size_type = std::strin...
<commit_before>// Copyright (C) 2012-2016 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include <autowiring/CoreJob.h> #include THREAD_HEADER class CoreJobTest: public testing::Test {}; TEST_F(CoreJobTest, VerifySimpleProperties) { AutoRequired<CoreJob> jb; AutoCurrentContext ctxt; ASSERT_FALSE...
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/custom_handlers/protocol_handler_registry.h" #include "base/memory/scoped_ptr.h" #include "base/stl_util-inl....
<commit_before>// The MIT License (MIT) // // Copyright (c) 2014-2015 Darrell Wright // // 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 t...
<commit_before>/** * Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin. * * libbitcoin is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free...
<commit_before>// Copyright 2022 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 o...
<commit_before>/*************************************************************** * * Copyright (C) 1990-2015, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with ...
<commit_before>#include "Config.hpp" #include "EventWatcher.hpp" #include "IOLockWrapper.hpp" namespace org_pqrs_KeyRemap4MacBook { bool* EventWatcher::item_[MAXNUM]; IOLock* EventWatcher::lock_; void EventWatcher::initialize(void) { lock_ = IOLockWrapper::alloc(); reset(); } void EventWatche...
<commit_before>/**************************************************************************** * * Copyright (c) 2012-2017 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 me...
<commit_before> #include "engine/world/item/Inventory.h" namespace engine { namespace world { namespace item { // initialize an inventory with a pointer that tells us // who the inventory belongs too so we can perform // actions on the player void Inventory::init( player::Player * owner ) { _playerOwner = owne...
<commit_before>// Copyright (c) 2016, Huang-Ming Huang, Object Computing, Inc. // All rights reserved. // // This file is part of mFAST. // See the file license.txt for licensing information. #include <iostream> #include <string> #include "hpp_gen.h" #include "inl_gen.h" #include "cpp_gen.h" #include "mfast/coder/com...
<commit_before>/***************************************************************************************** * * * GHOUL * * General Helpful Open Utility ...
<commit_before>// // Created by Zal on 11/19/16. // #include <assert.h> #include <utility> #include "BinaryMatrix.h" void BinaryMatrix::BinaryMatrix(int w, int h) { this->width = w; this->height = h; baseSize = sizeof(char); int n = w*h; this->dataLength = (n % baseSize == 0)? n/baseSize : n/base...
<commit_before>/* Copyright (C) 2015 Olavi Haapala. <ojhaapala@gmail.com> Twitter: @olpetik IRC: olpe 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 abo...
<commit_before>/*------------------------------------------------------------------------- * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2018 Advanced Micro Devices, Inc. * Copyright (c) 2018 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
<commit_before>// Jubatus: Online machine learning framework for distributed environment // Copyright (C) 2011 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // Lic...
<commit_before>#define _BSD_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <sys/types.h> #include <sys/ptrace.h> #include <unistd.h> #include "ptbox.h" pt_debugger::pt_debugger() : on_return_callback(NULL) {} bool has_null(char *buf, unsigned long size) { for (unsign...
<commit_before>/*------------------------------------------------------------------------- * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2018 Advanced Micro Devices, Inc. * Copyright (c) 2018 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
<commit_before>#ifndef CDPI_COMMON_HPP #define CDPI_COMMON_HPP #include "cdpi_bytes.hpp" #define PERROR() do { \ char s[256]; \ snprintf(s, sizeof(s), "%s:%d", __FILE__, __LINE__); \ perror(s); ...
<commit_before>#include "Config.hxx" #include "CertDatabase.hxx" #include "Wildcard.hxx" #include "ssl/ssl_init.hxx" #include "ssl/Buffer.hxx" #include "ssl/Util.hxx" #include "ssl/AltName.hxx" #include "ssl/Name.hxx" #include "ssl/MemBio.hxx" #include "ssl/Unique.hxx" #include "ssl/Error.hxx" #include "pg/Error.hxx" #...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" #include "assert.h" #include "core.h" #include...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" #include "consensus/merkle.h" #include "tinyf...
<commit_before>// Original Code: Copyright (c) 2009-2014 The Bitcoin Core Developers // Modified Code: Copyright (c) 2014 Project Bitmark // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "checkpoints.h" #include "ma...
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/foreach.hpp> #include "checkpoints....
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/foreach.hpp> #include "checkpoints....
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/foreach.hpp> #include "checkpoints....
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Copyright (c) 2013 Elephancoin Developers // Copyright (c) 2014 AluminiumCoin Developer - CCP // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensourc...
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/foreach.hpp> #include "checkpoints....
<commit_before>/* * Launch and manage "Local HTTP" child processes. * * author: Max Kellermann <mk@cm4all.com> */ #include "child_stock.hxx" #include "child_socket.hxx" #include "stock/MapStock.hxx" #include "stock/Stock.hxx" #include "stock/Item.hxx" #include "child_manager.hxx" #include "gerrno.h" #include "syst...
<commit_before><commit_msg>Implement quaternion to string helper<commit_after><|endoftext|>
<commit_before>#ifndef UTIL_RECT_H__ #define UTIL_RECT_H__ #include <sstream> #include <iostream> #include "point.hpp" namespace util { template <typename T> struct rect { /** * Default constructor. */ rect() {}; template <typename S> rect(const rect<S>& other) : minX(other.minX), minY(other.minY), ...
<commit_before>// Copyright Hugh Perkins 2016 // 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 agr...
<commit_before>/* Copyright (C) 2003-2013 by Kristina Simpson <sweet.kristas@gmail.com> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this softw...
<commit_before>#ifdef JOEDB_HAS_SSH #include "joedb/server/SSH_Connection.h" #include "joedb/Exception.h" #include <fcntl.h> #include <thread> #include <chrono> #include <iostream> // // Windows does not define those // #ifndef S_IRUSR #define S_IRUSR 0000400 #endif #ifndef S_IWUSR #define S_IWUSR 0000200 #endif n...
<commit_before>#pragma once #include "util.hpp" #include "../arm/arm.hpp" #include "../policy/policy.hpp" namespace bandit{ class RoundwiseLog{ public: uint K, P, T, run; std::vector<std::vector<double> > roundwiseRewards; std::vector<std::vector<double> > roundwiseRegrets; RoundwiseLog(uint K, uint P, uint ...
<commit_before>/* This file is part of KOrganizer. Copyright (c) 2008 Thomas Thrainer <tom_t@gmx.at> 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 (...
<commit_before>// @(#)root/cont:$Name: $:$Id: TProcessID.cxx,v 1.23 2003/07/29 19:27:09 brun Exp $ // Author: Rene Brun 28/09/2001 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<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>// // Created by Vadim N. on 18/03/2015. // #ifndef _BENCHMARK_H_ #define _BENCHMARK_H_ #define YMIR_BENCHMARK(expr) {} #include <chrono> #include <ctime> #include "Inference" using namespace ymir; int main(int argc, char* argv[]) { std::chrono::system_clock::time_point tp1, tp2; t...
<commit_before>// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the "Licens...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // The code in this file is largely based on KDE's KLineEdit class // as included in K...
<commit_before>#include "precompiled.h" // // Copyright (c) 2012-2013 The ANGLE 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. // // Renderer.cpp: Implements EGL dependencies for creating and destroying Renderer instances. ...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** ** GNU Lesser General Public License Usage ** ** This file m...
<commit_before>/* */ #include "lineFollowing.h" #include "../control.h" using namespace std; using namespace cv; void detect_lines(Mat &original_frame, double scale_factor); #pragma clang diagnostic push #pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection" void line_main() { // printf("Hello, thi...
<commit_before>// - Tested #define RMM_AAR #define RMM_CAS #define RMM_CASEVAC #define CRB_TWNMGR #define CRB_FLIPPABLE #define RMM_JIPMARKERS #define RMM_LOGBOOK #define R3F_LOGISTICS #define RMM_RECRUITMENT #define RMM_REVIVE #define RMM_TASKS #define RMM_TYRES #define WHB_MULTISPAWN // WIP //#define...
<commit_before><commit_msg>rhbz#994886 update unit in draw. obj. props toolbar<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: colmgr.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-09 09:05:10 $ * * The Contents of this file are made av...
<commit_before>/************************************************************************* * * $RCSfile: swlbox.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2004-08-23 09:01:33 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* The MIT License Copyright (c) 2008, 2009 Aristid Breitkreuz, Ash Berlin, Ruediger Sonderfeld Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
<commit_before>#include "core/matrix.h" #include "core/quat.h" #include "core/vec3.h" namespace Lux { const Matrix Matrix::IDENTITY( 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ); void multiplicate(Matrix& result, const Matrix& op1, const Matrix& op2) { ASSERT(&result != &op2); ASSERT...
<commit_before>#include <cmath> #include "solver.hpp" namespace oplin{ using std::cout; using std::endl; using std::cerr; using namespace Eigen; SolverBase::~SolverBase(){} GradientDescent::~GradientDescent(){} /** * Line search: * The basic line search form would be: x_{k+1} = x_k + p_k * alpha_k * The typic...
<commit_before>/* ========================================================================= * * File: memory_notification.cpp * * This file is part of Memory Notification Library (libmemnotifyqt) * * Copyright (C) 2010 Nokia Corporation. All rights reserved. * * Contacts: Leonid Moiseichuk <leonid.moiseichuk@nok...
<commit_before>#include <fastrtps/log/Log.h> #include <fastrtps/log/StdoutConsumer.h> #include <iostream> using namespace std; namespace eprosima { namespace fastrtps { struct Log::Resources Log::mResources; Log::Resources::Resources(): mDefaultConsumer(new StdoutConsumer), mLogging(false), mWork(false), ...
<commit_before>#include <mos/gfx/cube_camera.hpp> #include <glm/gtc/matrix_transform.hpp> namespace mos::gfx { Cube_camera::Cube_camera(const glm::vec3 &position, const float near, const float far) : cameras{{Camera(position, position + glm::vec3(1.0f, ...
<commit_before>#include "GG_Clock.h" #include "PerfTimer.h" GG_Clock::GG_Clock() { msTimer = new PerfTimer(); msGameTimer = new PerfTimer(); fpsTimer = new PerfTimer(); } GG_Clock::~GG_Clock() { RELEASE(msTimer); RELEASE(msGameTimer); RELEASE(fpsTimer); } /** * - OnPrepareUpdate: Calculate all attributes at t...
<commit_before>//===-- OProfileJITEventListener.cpp - Tell OProfile about JITted code ----===// // // 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) The Taichi Authors (2016- ). All Rights Reserved. The use of this software is governed by the LICENSE file. *******************************************************************************/ #include <ta...
<commit_before>/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associat...
<commit_before>/** feature-selection.cc --- * * Copyright (C) 2011 OpenCog Foundation * * Author: 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 * published by the Free Software Foundation and including...
<commit_before>//===- CheckerDocumentation.cpp - Documentation checker ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include <initializer_list> #include <map> #include <string> #include <gtk/gtk.h> /// List of unit types we handle. enum class ConversionUnit { Inch, Point, Twip, M, Cm, Mm, Mm100, Emu }; /// Hold references to all data needed to perform a conversion. class Conversion...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source License or the GNU Lesser General Public License. See // LICENSE.TX...
<commit_before>/** * \file * \brief TestCaseRangeRange class header * * \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * 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 * distrib...
<commit_before>//===--- EpilogueReleaseMatcherDumper.cpp - Find Epilogue Releases -------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>/* Jim Viebke Feb 16 2015 */ #include "parse.h" map<string, string> Parse::dict; // first string maps to second string void Parse::initialize() { // map various possible user-input strings to the constant ID used throughout the engine if (dict.size() == 0) { cout << "\nLoading parse dictionary.....
<commit_before>/* Copyright (C) 2012 Lasath Fernando <kde@lasath.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 the License, or (at your option...
<commit_before>#include <Windows.h> #include <stdio.h> #include <string> #include "Label.h" using namespace std; int main(VOID) { //non touchable cant react tp mouse and keyboard. //light green on a black background //located in someplace. //Label newLabel1 = Label(15, 10, "LABEL 1"); //newLabel1.draw(); ICont...
<commit_before>// // ZX8081.cpp // Clock Signal // // Created by Thomas Harte on 04/06/2017. // Copyright © 2017 Thomas Harte. All rights reserved. // #include "ZX8081.hpp" #include "../MemoryFuzzer.hpp" using namespace ZX8081; namespace { // The clock rate is 3.25Mhz. const unsigned int ZX8081ClockRate = 325...
<commit_before>#include <QScopedPointer> #include <QSettings> #include "models/page.h" #include "models/page-api.h" #include "models/profile.h" #include "models/site.h" #include "models/source.h" #include "tags/tag.h" #include "catch.h" #include "source-helpers.h" TEST_CASE("PageApi") { setupSource("Danbooru (2.0)")...
<commit_before>/**************************************************************************** ** ** Copyright (C) 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 Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>/* * * Copyright 2016 gRPC 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 required by applicab...
<commit_before>/* * * Copyright 2015, 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, thi...
<commit_before>#include "htmlwindow.h" #include "ui_htmlwindow.h" #include "QWebFrame" #include <QDebug> HTMLWindow::HTMLWindow(const QString& url, QWidget *parent) : QMainWindow(parent), ui(new Ui::HTMLWindow), loadFinished(false) { ui->setupUi(this); ui->webView->load(url); connect(ui->webV...
<commit_before>// __BEGIN_LICENSE__ // // Copyright (C) 2006 United States Government as represented by the // Administrator of the National Aeronautics and Space Administration // (NASA). All Rights Reserved. // // Copyright 2006 Carnegie Mellon University. All rights reserved. // // This software is distributed u...
<commit_before>/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2016 Ben Vanik. All rights reserved. ...
<commit_before>/* * Copyright 2001-2002,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 * ...
<commit_before>#include "clstm.h" #include <assert.h> #include <math.h> #include <fstream> #include <iostream> #include <iostream> #include <memory> #include <regex> #include <set> #include <sstream> #include <vector> #include "clstmhl.h" #include "extras.h" #include "pstring.h" #include "utils.h" using namespace Eige...
<commit_before>/* Copyright (c) 2013, 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>#pragma once #include <bts/blockchain/types.hpp> namespace bts { namespace blockchain { static std::unordered_map<uint32_t, bts::blockchain::block_id_type> CHECKPOINT_BLOCKS { { 1, bts::blockchain::block_id_type( "8abcfb93c52f999e3ef5288c4f837f4f15af5521" ) }, { 274001, bts::blockchain::...
<commit_before>/* Copyright 2002-2013 CEA LIST This file is part of LIMA. LIMA 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 License, or (at your option) ...
<commit_before>/* Copyright 2013 The Trustees of Princeton University All Rights Reserved */ #include <driver.h> #include <libgateway.h> // server config struct md_syndicate_conf DRIVER_CONF; // set of files we're exposing content_map DATA; // Metadata service client of the AG ms_client *mc = NULL; // Loca...