text
stringlengths
54
60.6k
<commit_before>/* * Copyright (C) 2008-2010 Manjeet Dahiya * * Author: * Manjeet Dahiya * * Source: * http://code.google.com/p/qxmpp * * This file is a part of QXmpp library. * * 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>/* * Copyright (C) 2008-2009 Manjeet Dahiya * * Author: * Manjeet Dahiya * * Source: * http://code.google.com/p/qxmpp * * This file is a part of QXmpp library. * * 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>#include <array> namespace { std::array<int, 12> lengths = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; constexpr bool leap(int year) { return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0); } } int p19() { int result = 0; int weekday = 1; for (int y = 1900; y <= 2000; y++) {...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 * * (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * 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...
<commit_before><commit_msg>1.0/09.03.2014:0340<commit_after>#include "ioput.h" template <class T> IOput<T>::IOput(){} template <class T> IOput<T>::IOput(const char* dir_name){ cwd_ = new ss(dir_name); sst aux; aux << "mkdir -p " << *cwd_ << "/"; system(aux.str().c_str()); } template <class T> IOput<T>::IOput(ss d...
<commit_before>// Copyright (c) 2015-2016 The Khronos Group 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...
<commit_before>/* Parámetros de entrada del programa: · Número de usuarios en sede 1 · Número de usuarios en sede 2 · Distintas velocidades de enlace que se pueden contratar con el operador · Tasa media de ocurrencia de llamadas de los usuarios · Calidad de servicio requerida · Intervalo de la tasa de bits del códec de...
<commit_before>/*************************************************************************** FilterEudoraAb.cxx - description ------------------------------------ begin : Fri Jun 30 2000 copyright : (C) 2000 by Hans Dijkema email...
<commit_before>/* * Copyright 2015 The Kythe 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...
<commit_before>/*////////////////////////////////////////////////////////////////// //// SKIRT -- an advanced radiative transfer code //// //// © Astronomical Observatory, Ghent University //// ///////////////////////////////////////////////////////////////// */ #ifndef LYASTELLARCOMP_HPP #...
<commit_before>/************************************************************************** * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/** \file create_literary_remains_records.cc * \author Dr. Johannes Ruscheinski * * A tool for creating literary remains MARC records from Beacon files. */ /* Copyright (C) 2019-2020, Library of the University of Tübingen This program is free software: you can redistribute it and/or m...
<commit_before>/* * Copyright (c) 2020 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 require...
<commit_before>////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2004-2020 musikcube 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>// // This file is part of the Marble Desktop 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. // // Copyright 2008 Torsten Rahn <[email protected]>" // #include "MarbleCrosshairsPlugin....
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the ...
<commit_before>#ifndef STAN__AGRAD__REV__OPERATORS__OPERATOR_UNARY_NEGATIVE_HPP #define STAN__AGRAD__REV__OPERATORS__OPERATOR_UNARY_NEGATIVE_HPP #include <stan/agrad/rev/var.hpp> #include <stan/agrad/rev/internal/v_vari.hpp> namespace stan { namespace agrad { namespace { class neg_vari : public op_v_...
<commit_before>/* * Copyright (c) 2008-2009 * * School of Computing, University of Utah, * Salt Lake City, UT 84112, USA * * and the Gauss Group * http://www.cs.utah.edu/formal_verification * * See LICENSE for licensing information */ #ifndef _AMPLE_SET_HPP #define _AMPLE_SET_HPP //#define CO...
<commit_before>// -*- C++ -*- /*! * @file Spline.cpp * @brief Cubic Hermite splines implementation with first derivative end *conditions * $Date$ * * $Id$ */ #include <iostream> #include <algorithm> #include <vector> #include <cstdlib> #include <cstdio> #include <iomanip> #include <ostream> #include "CHSpline/...
<commit_before> #include "Globals.h" #include "ChunkDef.h" // It appears that failing to have this definition causes link errors as cChunkDef::Height is not // defined. It also appears that we can have the initalizer in the declaration so it can be inlined // if the declaration is in a class???? const int cChunkDef::...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // // Copyright 2010 - 2014, Göteborg Bit Factory. // // 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...
<commit_before>#include <signal.h> // for signal, SIGINT #include <thread> #include <string> #include <cstring> #include <sys/stat.h> #include <armadillo> #include <zmq.h> #include "zmq_packet.h" #include <basedir.h> #include <basedir_fs.h> #include "lconf.h" #include "util.h" #include "artifact_filter.h" bool s_inter...
<commit_before>#include <cassert> #include "FE_Field.h" // --------------------------------------------------------------------------- cigma::FE_Field::FE_Field() { dim = 0; rank = 0; fe = 0; meshPart = 0; dofHandler = 0; } cigma::FE_Field::~FE_Field() { } // ------------------------------------...
<commit_before>/** * This file is part of Slideshow. * Copyright (C) 2008-2010 David Sveningsson <[email protected]> * * Slideshow 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...
<commit_before>#ifndef AST_HPP #define AST_HPP #include <string> #include <sstream> #include <vector> #include <set> #include <memory> #include <numeric> #include <typeinfo> #include <rapidxml.hpp> #include "error.hpp" #include "token.hpp" #include "util.hpp" #include "operator.hpp" typedef std::set<std::string> Typ...
<commit_before>#include <cstring> #include "alloc.h" #include "cons.h" namespace mclisp { const ConsCell* kT = nullptr; const ConsCell* kNil = nullptr; //static constexpr char* kPname = "PNAME"; static ConsCell* MakeAssociationList(const std::string& name) { // TODO ConsCell* c = Alloc::Allocate(); return c; ...
<commit_before>/* Copyright (C) 2014 Steven Hickson 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) any later version. This program is distribute...
<commit_before>#include "ghost/config.h" #include "ghost/types.h" #include "ghost/densemat.h" #include "ghost/util.h" #include "ghost/dot_avx_gen.h" #include "ghost/dot_plain_gen.h" #include "ghost/machine.h" #include "ghost/dot.h" #include <map> using namespace std; static bool operator<(const ghost_dot_parameters_...
<commit_before>#include "MPEditor.h" MPEditor::MPEditor(const BMessage &msg, const BMessenger &msgr, BString windowTitle, int ideaID) : BWindow(BRect(100, 100, 900, 700), windowTitle, B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS, B_CURRENT_WORKSPACE), launcherMessage(msg), launcherMessenger(ms...
<commit_before>#include "MbedComm.h" #include <math.h> MbedComm::MbedComm(void) { } MbedComm::MbedComm(string iIpAddress, int iUDPPort,bool iEnabled) { this->ipAddress=iIpAddress; this->UDPPort=iUDPPort; this->enabled=iEnabled; this->sequence = 1; this->bufferedFrame=NULL; this->fragmentsS...
<commit_before>#pragma once #include <iostream> #include <ctime> #include <map> #include <stack> #include <algorithm> #include <mutex> #include <thread> #define ROOT_ID 0 class Profiler { public: typedef std::string Key; class KeyMap { public: typedef std::map<Key, std::map< std::size_t, int> >::iterator it...
<commit_before>// -*- mode:c++; indent-tabs-mode:nil; -*- /* Copyright (c) 2014, Anders Ronnbrant, [email protected] 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 restr...
<commit_before>// Reselect.cpp // Copyright (c) 2010, Dan Heeks // This program is released under the BSD license. See the file COPYING for details. #include "stdafx.h" #include "Reselect.h" #include "interface/PropertyString.h" #include "interface/PropertyInt.h" static bool GetSketches(std::list<int>& sketches ) { ...
<commit_before>// Sh: A GPU metaprogramming language. // // Copyright (c) 2003 University of Waterloo Computer Graphics Laboratory // Project administrator: Michael D. McCool // Authors: Zheng Qin, Stefanus Du Toit, Kevin Moule, Tiberiu S. Popa, // Michael D. McCool // // This software is provided 'as-is', wi...
<commit_before>/* Copyright (c) 2014 Ableton AG, Berlin 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, modify, merge, pu...
<commit_before>/* * Copyright (C) 2015-2018 dubalu.com LLC. All rights reserved. * * 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>/// /// @file help.cpp /// /// Copyright (C) 2016 Kim Walisch, <[email protected]> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <primecount.hpp> #include <iostream> #include <cstdlib> #include <string> using namespace st...
<commit_before>// builds all boost.asio SSL source as a separate compilation unit #include <boost/version.hpp> #if BOOST_VERSION >= 104610 #include <boost/asio/ssl/impl/src.hpp> #endif <commit_msg>fix openssl build for shared libraries on non msvc-compilers<commit_after>// builds all boost.asio SSL source as a separa...
<commit_before>/* * Copyright 2007-2017 Content Management AG * All rights reserved. * * author: Max Kellermann <[email protected]> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source...
<commit_before>#include <iostream> #include <stdio.h> #include <ctype.h> #include <cstring> #include <vector> #include <unistd.h> #include <sys/types.h> #include <stdlib.h> #include <sys/wait.h> using namespace std; void parse(char x[], vector<string> &v){ //cout << "parse executes" << endl; char* tmp; tm...
<commit_before>#include <iostream> #include <sys/stat.h> #include <errno.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> using namespace std; void printdir(const int argc, char** &args, const bool &l, const bool &a, const bool &R) { if(l) { //l stuff here } else { //non l stuff } //recursion stu...
<commit_before>#include <QNetworkInterface> #include <QTime> #include <memory> #include "ice.h" #include "iceflowcontrol.h" ICE::ICE(): portPair(22000), connectionNominated_(false), nominatingConnection_(false), stun_(), stun_entry_rtp_(new ICEInfo), stun_entry_rtcp_(new ICEInfo) { QObject::connect(&stu...
<commit_before>#include <ros/ros.h> #include <geometry_msgs/Twist.h> #include <tf/transform_broadcaster.h> #include <boost/bind.hpp> #include <boost/lambda/lambda.hpp> #include <sys/time.h> #include "imu/bool_msg.h" #include "Comm.h" #include <sensor_msgs/Imu.h> inline float deg_to_rad(float deg) { // 180度リミッター...
<commit_before>/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // 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 "irc.h" #include "net.h" #include "strlcpy.h" #include "ba...
<commit_before>/* * api.cpp * * Created on: 2016年12月16日 * Author: zhuqian */ #include "api.h" #include "transform.h" #include "paramset.h" //transform相关参数 constexpr int MaxTransforms = 2; constexpr int StartTransformBits = 1 << 0; //0x01 constexpr int EndTransformBits = 1 << 1; //0x10 constexpr int AllTransf...
<commit_before>/* * Copyright (c) 2015-2019 Dubalu LLC * * 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, mod...
<commit_before>#include <cstring> #include <iostream> #include <iomanip> #include <vector> #include <utility> #include <sstream> #include "smf.hpp" #include "parseutils.hpp" namespace MgCore { uint32_t SmfReader::readVarLen() { uint8_t c = MgCore::read_type<uint8_t>(*m_smf); uint32_t value = c...
<commit_before>/* This file is part of the ORK library. Full copyright and license terms can be found in the LICENSE.txt file. */ #include"ork/ork.hpp" #define ORK_STL_INC_FILE <fstream> #include"ork/core/stl_include.inl" #define ORK_STL_INC_FILE <iostream> #include"ork/core/stl_include.inl" #define ORK_STL_INC_FILE <m...
<commit_before>/* Copyright (c) 2007, 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> /** * Copyright (C) 2014 Lantern * * 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 * (at your option) any later version. * * This prog...
<commit_before>#define GLEW_STATIC #define RUN_GRAPHICS_DISPLAY 0x00; #include <GL/glew.h> #include <GL/gl.h> #include <SDL2/SDL.h> #include <glm/glm.hpp> #include <glm/ext.hpp> #include <iostream> #include <memory> #include <boost/program_options.hpp> #include "common.h" #include "GameWorld.h" // Lousy global varia...
<commit_before>/* * Copyright (c) 2012-2015, Nic McDonald * 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 ...
<commit_before>#define BOOST_TEST_MODULE path_element_tests // boost.test #include <boost/test/included/unit_test.hpp> // boost.spirit #include <boost/spirit/include/karma.hpp> // boost.filesystem #include <boost/filesystem.hpp> // mapnik #include <mapnik/map.hpp> #include <mapnik/rule.hpp> #include <mapnik/feature...
<commit_before>#include "davixuri.hpp" #include "davixuri.h" #include <ne_uri.h> #include <cstring> namespace Davix { static std::string void_str; struct UriPrivate{ UriPrivate() : my_uri(), code(StatusCode::UriParsingError), proto(), path(), host(), query(), ...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
<commit_before>#include "wator.hpp" using namespace Wator; Net::Net() { } Net::Net(const ifstream &in) { }<commit_msg>Update net.cpp<commit_after>/* Copyright (c) 2015, Wator Vapor All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the foll...
<commit_before>/// /// @file phi.cpp /// /// Copyright (C) 2014 Kim Walisch, <[email protected]> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include "PhiCache.hpp" #include "PhiTiny.hpp" #include "pi_bsearch.hpp" #include "pmath.hpp" #include ...
<commit_before>// Implements the Sink class #include <algorithm> #include <sstream> #include <boost/lexical_cast.hpp> #include "sink.h" namespace cycamore { // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Sink::Sink(cyclus::Context* ctx) : cyclus::Facility(ctx), capacity(std::numeric_...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the...
<commit_before>//Bit #define CARRY 0xD7 #define OF 0xD2 #define HCARRY 0xD6 #define INT_FLAG 0x00 #define EA_FLAG 0xAF #define T0INT_FLAG 0xA9 #define T1INT_FLAG 0xAB #define T0OF_FLAG 0x8D #define T1OF_FLAG 0x8F //Byte #define AKKU 0xE0 #define B_address 0xF0 #define PSW 0xD0 #define stack_pointer 0x81 ...
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chrome_browser_main_extra_parts_ash.h" #include "ash/accelerators/accelerator_controller.h" #include "ash/ash...
<commit_before> #include "stdafx.h" #include "bonenode.h" using namespace graphic; cBoneNode::cBoneNode(const int id, vector<Matrix44> &palette, const sRawBone &rawBone) : cNode(id, rawBone.name) , m_track(NULL) , m_mesh(NULL) , m_palette(palette) , m_aniStart(0) , m_aniEnd(0) , m_curPlayFrame(0) , m_incPlayFrame(...
<commit_before>#ifdef _WIN32 #define M_PI 3.14 #endif #include <cmath> #include <iostream> #include <fstream> #include "Body.hpp" #define G 20 // TODO: Get the right number #define DENSITY 100 // kg/m^3 using namespace sf; using namespace std; Body::Body(Vector2f pos, uint64_t m, Vector2f dir) : position(pos), di...
<commit_before>// playHistoryTracker.cpp : Defines the entry point for the DLL application. // #include "bzfsAPI.h" #include <string> #include <map> BZ_GET_PLUGIN_VERSION // event handler callback class PlayHistoryTracker : public bz_EventHandler { public: PlayHistoryTracker(); virtual ~PlayHistoryTracker(); v...
<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/importer/firefox_importer_utils.h" #include <shlobj.h> #include "base/file_util.h" #include "base/win/regist...
<commit_before>#include "mitkToolManager.h" #include "mitkGlobalInteraction.h" #include <itkObjectFactoryBase.h> #include <itkCommand.h> #include <list> mitk::ToolManager::ToolManager(const char* groups) :m_ActiveTool(NULL), m_ActiveToolID(-1), m_RegisteredClients(0) { // get a list of all known mitk::Tools st...
<commit_before>/* Copyright (c) 2013, Koichiro Yamaguchi 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 co...
<commit_before>#include <omp.h> #include <stdio.h> #include <opencv2/opencv.hpp> #include <fstream> #include <iostream> #include <armadillo> #include <iomanip> #include <vector> #include <hdf5.h> #include "omp.h" using namespace std; using namespace arma; // #include "aux-functions-def.hpp" // #include "aux-functi...
<commit_before>// Copyright Paul Dardeau, SwampBits LLC 2014 // BSD License #include <cstdio> #include "HttpRequest.h" #include "Socket.h" #include "BasicException.h" #include "StrUtils.h" #include "StringTokenizer.h" #include "Logger.h" static const std::string ENC_DOUBLE_QUOTE = "%22"; // " static const std::st...
<commit_before>/* * Copyright (C) 2009 Tommi Maekitalo * * 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) any later version. * * Thi...
<commit_before>/* * Copyright © 2012 Intel Corporation * * 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, mod...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/status/language_menu_button.h" #include "base/utf_string_conversions.h" #include "testing/gtest/incl...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/status/language_menu_button.h" #include "base/utf_string_conversions.h" #include "testing/gtest/incl...
<commit_before>#include "evas_common.h" #include "evas_engine.h" int evas_software_ddraw_init (HWND window, int depth, int fullscreen, Outbuf *buf) { DDSURFACEDESC surface_desc; DDPIXELFORMAT pixel_format; HRESULT ...
<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/ui/blocked_content/blocked_content_tab_helper.h" #include "base/auto_reset.h" #include "chrome/browser/conten...
<commit_before>/************************************************************************************* * Copyright (C) 2012 by Alejandro Fiestas Olivares <[email protected]> * * * * This program is free software; you can r...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkSTLThreadTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITKCopy...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * ...
<commit_before>/* $Id$ */ /* Copyright W. Bangerth, University of Heidelberg, 1998 */ #include <grid/tria_boundary_lib.h> #include <grid/tria.h> #include <grid/tria_iterator.h> #include <grid/tria_accessor.h> #include <cmath> template <int dim> HyperBallBoundary<dim>::HyperBallBoundary (const Point<dim> p, ...
<commit_before><?hh //strict // Inspired from: www.idontplaydarts.com https://www.idontplaydarts.com/static/ga.php_.txt class Google_Authenticator { public static ImmMap<string, int> $Characters = ImmMap { 'A' => 0, 'B' => 1, 'C' => 2, 'D' => 3, 'E' => 4, 'F' => 5, 'G' => 6, 'H' => 7, 'I' => 8, 'J' => 9, 'K' ...
<commit_before>#include <array.h> #include <drivers/vga.hpp> #include <kernel/cpu/gdt.hpp> #include <kernel/cpu/idt.hpp> #include <kernel/vfs/vfs.hpp> #include <kernel/vfs/file.hpp> #include <kernel/vfs/ramfs.hpp> #include <kernel/boot/boot.hpp> #include <kernel/cpu/reboot.hpp> #include <kernel/cpp_support.hpp> #inclu...
<commit_before>/*********************************************************************************************************************** * SimpleTest.cpp * * Created on: Mar 24, 2011 * Author: Dimitar Asenov ******************************************************************************************************...
<commit_before>#include <osgTerrain/TerrainTile> #include <osgDB/ObjectWrapper> #include <osgDB/InputStream> #include <osgDB/OutputStream> // _tileID static bool checkTileID( const osgTerrain::TerrainTile& tile ) { return tile.getTileID().valid(); } static bool readTileID( osgDB::InputStream& is, osgTerrain::Terr...
<commit_before>#ifndef H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_NOTIFICATIONMANAGER_HPP #define H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_NOTIFICATIONMANAGER_HPP #include "internal/common.hpp" #include "NotificationListModel.hpp" #include <QObject> #include <QMutexLocker> #include <limits> namespace cutehmi { /** * %N...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // 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 "init.h" #include "bitcoinrpc.h" #include <boost/algorithm...
<commit_before>/* * Copyright 2011 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 * * Unless required by applicable l...
<commit_before><commit_msg>tried F.cpp to 'F'<commit_after><|endoftext|>
<commit_before>#include "kwm.h" static const CGKeyCode kVK_SPECIAL_Å = 0x21; static const CGKeyCode kVK_SPECIAL_Ø = 0x29; static const CGKeyCode kVK_SPECIAL_Æ = 0x27; std::string KwmcFilePath; std::string KwmcCommandToExecute; // This function is run once every time // hotkeys.so is recompiled. // // The path to Kwm...
<commit_before>#include "proto\ql2.pb.h" #include <string> #include <stdio.h> #include <stdint.h> #include <boost/asio.hpp> #include <boost/bind.hpp> #include <stdlib.h> #include <stdexcept> #include <boost/format.hpp> #include <vector> #include <boost/unordered_map.hpp> // fix for undefined ssize_t from https://code....
<commit_before> // Persistent RNN Includes #include <persistent_rnn_high_level.h> #include <prnn/detail/matrix/matrix.h> #include <prnn/detail/matrix/random_operations.h> #include <prnn/detail/matrix/matrix_operations.h> #include <prnn/detail/matrix/matrix_transforms.h> #include <prnn/detail/matrix/matrix_view.h> #inc...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "ECComponentEditor.h" #include "ECEditorModule.h" #include "IAttribute.h" #include "ECAttributeEditor.h" #include "IComponent.h" #include "Transform.h" #incl...
<commit_before>// Copyright (c) 2013 Stanislas Polu. // See the LICENSE file. #include "breach/browser/node/node_thread.h" #include "breach/browser/node/api/api_bindings.h" #include "content/public/browser/browser_thread.h" #include "third_party/node/src/node.h" #include "third_party/node/src/node_internals.h" #inclu...
<commit_before>#ifndef _LANDMARKS_HH_ # define _LANDMARKS_HH_ #include <vector> #include <map> #include <cmath> static const double CONVERSION = (M_PI / 180.0); // Convert to radians static const unsigned int MAXLANDMARKS = 3000; // Max number of landmarks static const double MAXERROR = 0.5; // If a landmarks is wit...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>// ======================================================================== // // Copyright 2009-2017 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>// #define DEBUG #include <os> #include <stdio.h> #include <assert.h> #include <class_dev.hpp> #include <class_service.hpp> // A private class to handle IRQ #include "class_irq_handler.hpp" #include <class_pci_manager.hpp> bool OS::power = true; uint32_t OS::_CPU_mhz = 2500; void OS::start() { rsp...
<commit_before><commit_msg>jit add function start location to assembly output<commit_after><|endoftext|>