text
stringlengths
54
60.6k
<commit_before>#include "AgnosticApp.h" #include "Renderer\D3D\RendererD3D.h" #include "Renderer\GL\RendererGL.h" using namespace DirectX; AgnosticApp::AgnosticApp() { } void AgnosticApp::Initialize(float windowWidth, float windowHeight) { // Set up the projection matrices for the scene float fovAngleY = 7...
<commit_before> /* * AudioStream.cpp * sfeMovie project * * Copyright (C) 2010-2014 Lucas Soltic * lucas.soltic@orange.fr * * 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 Foundation;...
<commit_before>#ifndef _SNARKFRONT_HPP_ #define _SNARKFRONT_HPP_ //////////////////////////////////////////////////////////////////////////////// // this header file includes everything applications need // // not part of the EDSL but convenient for command line applications #include <snarkfront/CompilePPZK_query.hpp...
<commit_before>/* Copyright (C) 2016 Jeremy Starnes This file is part of TDSE. TDSE 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) any later version. ...
<commit_before>/* * Copyright 2013 Gustaf Räntilä * * 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...
<commit_before>/// @brief provides CORDIC for cos function /// @ref see H. Dawid, H. Meyr, "CORDIC Algorithms and Architectures" namespace std { /// @brief computes square root by CORDIC-algorithm /// @ref page 11 template<typename T, size_t n, size_t f, class op, class up> core::fixed_point<T, ...
<commit_before>/* * Copyright (c) 2020 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>/* * Copyright (c) 2020 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>#include "exodus/createtx.h" #include "exodus/errors.h" #include "exodus/encoding.h" #include "exodus/exodus.h" #include "exodus/wallettxs.h" #include "base58.h" #include "coins.h" #include "core_io.h" #include "main.h" #include "primitives/transaction.h" #include "script/script.h" #include "script/stan...
<commit_before>#include "tiles.hpp" #include "../incl/utils.hpp" #include <cerrno> #include <cstdio> #include <ctime> bool Tiles::hashvecinit = false; unsigned long Tiles::hashvec[Ntiles][Ntiles]; Tiles::Tiles(FILE *in) { readruml(in); initops(); if (!hashvecinit) inithashvec(); } void Tiles::readruml(FILE *in)...
<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/environment.h" #include "base/basictypes.h" #include "base/logging.h" #include "base/task.h" #include "base/synchronizat...
<commit_before>// ****************************************************************************************** // * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com * // ****************************************************************************************** // @file Name: respawn_...
<commit_before>// Author: Enrico Guiraud, Danilo Piparo CERN 09/2018 /************************************************************************* * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before><commit_msg>New test for `yli::load::load_CSV_file`.<commit_after><|endoftext|>
<commit_before>#ifndef __QUAD_TRIANGULATION_HPP_INCLUDED #define __QUAD_TRIANGULATION_HPP_INCLUDED #ifndef GLM_FORCE_RADIANS #define GLM_FORCE_RADIANS #define DEGREES_TO_RADIANS(x) (x * PI / 180.0f) #endif #include "face_normals.hpp" #include "vertex_normals.hpp" #include "vertices.hpp" #include "triangulation_enums....
<commit_before><commit_msg>Cleaning up code.<commit_after><|endoftext|>
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>// Do not remove the include below #include "farmbot_arduino_controller.h" #include "pins.h" #include "Config.h" #include "ServoControl.h" static char commandEndChar = 0x0A; static GCodeProcessor* gCodeProcessor = new GCodeProcessor(); //The setup function is called once at startup of the sketch void ...
<commit_before>#include <aidu_vision/laserscancombination.h> #include <geometry_msgs/Twist.h> #include <math.h> #include <vector> using namespace aidu; LaserScanCombination::LaserScanCombination(): core::Node::Node(){ //subscribing and pubishing scanmsg = nh->subscribe("/scan", 1, &LaserScanCombination::LaserSca...
<commit_before>#include "mitkManualSegmentationToSurfaceFilter.h" mitk::ManualSegmentationToSurfaceFilter::ManualSegmentationToSurfaceFilter() : m_MedianKernelSizeX(3), m_MedianKernelSizeY(3), m_MedianKernelSizeZ(3), m_StandardDeviation(1.5){}; mitk::ManualSegmentationToSurfaceFilter::~ManualSegmentationToSurfaceF...
<commit_before><commit_msg>Update g_network_client.cpp<commit_after><|endoftext|>
<commit_before>/* Copyright 2014 Larry Gritz and the other authors and contributors. 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 cop...
<commit_before>/************************************************************************* * UrBackup - Client/Server backup system * Copyright (C) 2011-2014 Martin Raiber * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as p...
<commit_before>/* This file is part of Strigi Desktop Search * * Copyright (C) 2006 Jos van den Oever <jos@vandenoever.info> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; eithe...
<commit_before>// Copyright (C) 2016 xaizek <xaizek@openmailbox.org> // // This file is part of uncov. // // uncov 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 /...
<commit_before>#ifndef MISC_UI_HPP #define MISC_UI_HPP #include <wx/wxprec.h> #ifndef WX_PRECOMP #include <wx/wx.h> #endif #include <wx/filename.h> #include <wx/stdpaths.h> #include <map> #include <utility> #include "Settings.hpp" #include "Log.hpp" #include "Point.hpp" /// Macro to build std::wstring that sl...
<commit_before>#include "Game/Square.h" #include <cmath> #include <algorithm> #include <cassert> #include <cstddef> //! The default constructor creates an invalid square location. Square::Square() : square_file('\0'), square_rank(0) { } //! This constructor creates a user-defined square. Square::Square(char file_in,...
<commit_before>/* -------------------------------------------------------------------------- */ /* Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs */ /* */ /* Licensed under the Apache License, Version 2.0 (the "Licens...
<commit_before>#include "LLVM_Headers.h" #include "LLVM_Output.h" #include "LLVM_Runtime_Linker.h" #include "CodeGen_LLVM.h" #include "CodeGen_C.h" #include "CodeGen_Internal.h" #include <iostream> #include <fstream> #ifdef _WIN32 #ifndef NOMINMAX #define NOMINMAX #endif #include <windows.h> #else #include <stdio.h> ...
<commit_before>/****************************************************************************** * Copyright 2019 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
<commit_before> #include <constrained_ik/collision_robot_fcl_detailed.h> #include <ros/ros.h> namespace constrained_ik { using namespace collision_detection; CollisionRobotFCLDetailed::DistanceDetailedMap CollisionRobotFCLDetailed::distanceSelfDetailed(const robot_state::RobotState &state) const { return C...
<commit_before>/* * Copyright (c) 2013 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>/* Copyright (c) 2010-2014 Stanford University * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" ...
<commit_before> /* * The MIT License (MIT) * * Copyright (c) 2015 vmolsa <ville.molsa@gmail.com> (http://github.com/vmolsa) * * 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 restricti...
<commit_before>/* * * Copyright 2019 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>#define BOOST_TEST_MODULE "test_read_dihedral_angle_interaction" #ifdef BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #else #include <boost/test/included/unit_test.hpp> #endif #include <mjolnir/core/SimulatorTraits.hpp> #include <mjolnir/core/BoundaryCondition.hpp> #include <mjolnir/input/rea...
<commit_before> #include "AbstractState.h" #include "DataStructures.h" #include <assert.h> #if !defined CATCH_CONFIG_MAIN #if defined ENABLE_CATCH #include "Tests.h" #include "catch.hpp" static int inputs[] = { CoolProp::DmolarT_INPUTS, CoolProp::SmolarT_INPUTS, CoolProp::Hm...
<commit_before>//Copyright (c) 2017 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #include "utils/intpoint.h" //To normalize vectors. #include "utils/math.h" //For round_up_divide. #include "utils/MinimumSpanningTree.h" //For the #include "utils/polygonUtils.h" //For moveInside. #i...
<commit_before>#include "TriacDimmer.h" #include <Arduino.h> #include <assert.h> volatile uint16_t TriacDimmer::detail::pulse_length; volatile uint16_t TriacDimmer::detail::period = 16667; volatile uint16_t TriacDimmer::detail::ch_A_up; volatile uint16_t TriacDimmer::detail::ch_A_dn; volatile uint16_t TriacDimmer::det...
<commit_before>#ifndef __UTIL_RANDOM_HPP__ #define __UTIL_RANDOM_HPP__ #include <cstdlib> namespace Util { struct Random { uint64_t nextInt () { return std::rand(); } /* ** Generate a number in [0, max] */ uint64_t nextInt (uint64_t max) ...
<commit_before>#ifndef VIDEO_DEVICE_H #define VIDEO_DEVICE_H #include <opencv2/opencv.hpp> using namespace cv; class VideoDevice { public: VideoDevice(); void startCapture(int id); Mat getImage(); private: void takeImage(); //data VideoCapture c...
<commit_before>/* dbWatson Database Structur Exporter https://github.com/Zer0Knowledge/dbWatson BSD 2-Clause License Copyright (c) 2016 | Kevin Klein, Tobias Donix, Leonard Franke All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the fo...
<commit_before>#include <sqlite3.h> #include <glib.h> #include <errno.h> #include <stdio.h> #include <algorithm> #include <QDateTime> #include "account-mgr.h" #include "configurator.h" #include "seafile-applet.h" #include "utils/utils.h" #include "api/api-error.h" #include "api/requests.h" #include "rpc/rpc-client.h"...
<commit_before>// 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 at http://mozilla.org/MPL/2.0/. // // Copyright (C) 2012-2016, Ryan P. Wilson // // Authority FX, Inc. // www.authorityfx.com...
<commit_before>#include <iostream> /* * NAOQI */ #include <qi/anyobject.hpp> /* * BOOST */ #include <boost/foreach.hpp> #define foreach BOOST_FOREACH /* * PUBLIC INTERFACE */ #include <alrosbridge/alrosbridge.hpp> /* * publishers */ #include "publishers/string.hpp" #include "publishers/int.hpp" #include "publishers...
<commit_before>#include "../warnings-disable.h" WARNINGS_DISABLE #include <QtTest/QtTest> #include <QCheckBox> #include <QComboBox> #include <QDialog> #include <QFileSystemModel> #include <QFontMetrics> #include <QLabel> #include <QLineEdit> #include <QMessageBox> #include <QRadioButton> #include <QSequentialAnimatio...
<commit_before>#include "factory.h" #include "opencv_video_source.h" namespace gg { IVideoSource * Factory::_sources[1] = { NULL }; IVideoSource * Factory::connect(enum Device type) { switch (type) { case DVI2PCIeDuo: if (_sources[Device::DVI2PCIeDuo] == NULL) { int start = 0, end...
<commit_before>#include "application.hpp" #include "titlestate.hpp" #include "gamestate.hpp" #include <menustate.hpp> #include "editlevelstate.hpp" #include <iostream> Application::Application(State::Context context) : mStateStack(context) , mWindow(context.window) { registerStates(); mStateStack.pushState(Sta...
<commit_before>#include "./application.h" #include <QQmlContext> #include <QStateMachine> #include <QDebug> #include <vector> #include "./window.h" #include "./scene.h" #include "./scene_controller.h" #include "./nodes.h" #include "./nodes_controller.h" #include "./label_node.h" #include "./input/invoke_manager.h" #inc...
<commit_before>#include "application.h" #include <QtQml> #include <QScreen> #include <QKeyEvent> #include <QQuickView> #include <QStandardPaths> #include <QDebug> #include <QDir> #include "imageprovider.h" #include "models/albumlistmodel.h" #include "models/albumbrowsemodel.h" #include "quick/enums.h" #include "qui...
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2019 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // 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; eit...
<commit_before>#include "ROOT/TDataFrame.hxx" #include "ROOT/TSeq.hxx" #include "ROOT/TTrivialDS.hxx" #include "TH1F.h" #include "TRandom.h" #include "TSystem.h" #include "TNonCopiableDS.hxx" #include "gtest/gtest.h" #include <algorithm> using namespace ROOT::Experimental; using namespace ROOT::Experimental::TDF; ...
<commit_before>/* :DV company (c) 1997-2016 */ #include "../include/apps_starter.h" #include "../include/isca_alpha.h" #include "../include/desktop.h" #include "../include/system_defines.h" using namespace std; int main(int argc, char *argv[]) { setlocale(LC_ALL, ""); init_display(); init_color(); InitLOAD_T(l...
<commit_before>#include "taichi.h" // Note: You DO NOT have to install taichi or taichi_mpm. using namespace taichi; // You only need [taichi.h] - see below for // instructions. const int n = 160 /*grid resolution (cells)*/, window_size = 800; const real dt = 60e-4_f / n, frame_dt = 1e-3_f, d...
<commit_before>/****************************************** Author: Tiago Britto Lobão tiago.blobao@gmail.com */ /* Purpose: Control an integrated circuit Cirrus Logic - CS5490 Used to measure electrical quantities MIT License ******************************************/ #include "CS5490.h" /******* Init...
<commit_before>// Copyright (c) 2013, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // // Copyrig...
<commit_before>#include <unistd.h> #include <vector> #include "Export.h" #include "Common.h" #include "Client.h" #include "Keywords.h" namespace douban { namespace mc { Client::Client() { } Client::~Client() { } void Client::config(config_options_t opt, int val) { switch (opt) { case CFG_POLL_TIMEOUT: ...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #end...
<commit_before>/*! * Copyright (c) 2017 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_BOOSTING_RF_H_ #define LIGHTGBM_BOOSTING_RF_H_ #include <LightGBM/boosting.h> #include <LightGBM/metric.h> #include...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distributed WIT...
<commit_before>#include "Editor.h" Editor::Editor() { mode_ = MODE_NOTHING; } void Editor::DrawHandle(Vector pos) { glPushMatrix(); glTranslatef(pos.i, pos.j, 0); glBegin(GL_POLYGON); for(float ang = 0; ang < 2*M_PI; ang += M_PI/8) { glVertex2f(0.03 * cos(ang), 0.03 * sin(ang)); } glEnd(); glBeg...
<commit_before>#ifdef CAN_EMULATOR #include "usbutil.h" #include "canread.h" #include "serialutil.h" #include "log.h" #include <stdlib.h> #define NUMERICAL_SIGNAL_COUNT 11 #define BOOLEAN_SIGNAL_COUNT 5 #define STATE_SIGNAL_COUNT 2 #define EVENT_SIGNAL_COUNT 1 extern SerialDevice SERIAL_DEVICE; extern UsbDevice USB_...
<commit_before>#include <iostream> #include <string> #include "Entity.h" #include "Log.h" #include "Window.h" Entity::Entity(Window* window, const std::string& textureName, int xPos, int yPos): textureName(textureName) { this->window = window; this->xPos = xPos; this->yPos = yPos; this->typeId = T...
<commit_before>/* -------------------------------------------------------------------------- * * OpenSim: toyLeg_example.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and ...
<commit_before>// Copyright (c) 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 "assert.h" #include "chainparams.h" #include "core.h" #include...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // // Copyright 2006 - 2014, Paul Beckingham, Federico Hernandez. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to...
<commit_before>// Copyright (c) 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 "assert.h" #include "chainparams.h" #include "main.h" #include...
<commit_before>#include <Galaxy.h> #include <numeric> double Galaxy::get_mass() const { double unused; return std::accumulate(stars.begin(), stars.end(), 1.0, [](double mass , Star const& star) { return mass + star.get_mass(); }); } <commit_msg>bugfix sum must start at zero<commit_aft...
<commit_before>/** * This file is part of Slideshow. * Copyright (C) 2008-2010 David Sveningsson <ext@sidvind.com> * * 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><commit_msg>Update AliFemtoCutMonitorPairBetaT.cxx<commit_after><|endoftext|>
<commit_before>#include <iostream> #include "Message.h" #include "Ladder.h" #include "SearchBoard.h" #include "Point.h" using namespace std; #define ALIVE true #define DEAD false // シチョウ探索 static bool IsLadderCaptured( const int depth, search_game_info_t *game, const int ren_xy, const int turn_color ); /////////...
<commit_before>// Scintilla source code edit control /** @file LexAsm.cxx ** Lexer for Assembler, just for the Masm Syntax ** Written by The Black Horus **/ // Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #in...
<commit_before>// Scintilla source code edit control /** @file LexCPP.cxx ** Lexer for C++, C, Java, and Javascript. **/ // Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <string.h> ...
<commit_before><?hh //strict /** * This file is part of hhpack\typechecker package. * * (c) Noritaka Horio <holy.shared.design@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace hhpack\typechecker\check; use hhpack\typechecke...
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin 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()' #incl...
<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-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Limecoinx developers // 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 "main.h" #include "uint2...
<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 // 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()' #incl...
<commit_before>// Copyright (c) 2014 Sebastien Rombauts (sebastien.rombauts@gmail.com) // // Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt // or copy at http://opensource.org/licenses/MIT) #include "GitSourceControlPrivatePCH.h" #include "GitSourceControlUtils.h" #include "GitSourceControl...
<commit_before>#include "ship.h" #include "../classes/weapon.h" #include "../engines/physics/projectile.h" Ship::Ship(int id, float mass, float max_tolerance, std::vector<float> d, float size, float preset_a, float preset_p_dot, float preset_r_dot) : Projectile(id, 1, mass, max_tolerance, d, { 0, 0, 0 }, size, { 1, 0...
<commit_before>#include "CodeGen_C.h" #include "StmtToHtml.h" #include "Output.h" #include "LLVM_Headers.h" #include "LLVM_Output.h" #include "LLVM_Runtime_Linker.h" #include <fstream> namespace Halide { void compile_module_to_object(const Module &module, std::string filename) { if (filename.empty()) { i...
<commit_before>#include "Player.hpp" Player::Player() { m_x = 0.0f; m_y = 0.0f; m_velocity = 0.0f; for (int i = 0; i < 2; i++) m_animations[i] = nullptr; } Player::Player(float x, float y) { m_x = x; m_y = y; m_velocity = 0.0f; for (int i = 0; i < 2; i++) m_animatio...
<commit_before>/* bzflag * Copyright (c) 1993 - 2003 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>#define PY_SSIZE_T_CLEAN #include <Python.h> // Numpy array interface struct PyArrayInterface { int two; // contains the integer 2 -- simple sanity check int nd; // number of dimensions char typekind; // kind in array --- character code of typestr int itemsize...
<commit_before>// Kernel.cpp (Oclgrind) // Copyright (c) 2013-2016, James Price and Simon McIntosh-Smith, // University of Bristol. All rights reserved. // // This program is provided under a three-clause BSD license. For full // license terms please see the LICENSE file distributed with this // source code. #include ...
<commit_before>#include <time.h> #include <iostream> #include <fstream> #include "logger.h" Logger::Logger(std::string log_name) { m_output = new std::ofstream(log_name.c_str()); } Logger::Logger() { m_output = &std::cerr; } std::ostream &Logger::log(LogSeverity sev) { const char *sevtext; switch(sev) { case ...
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2014 Couchbase, 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 a...
<commit_before>#include <vector> #include <map> #include <sys/queue.h> #include <evhttp.h> #include <mecab.h> #include "Kana.h" #include "Server.h" #define PARSE_URI(request, params) { \ char const *uri = evhttp_request_uri(request); \ evhttp_parse_query(uri, &params); \ } #define PARAM_GET_STR(var, params, ...
<commit_before>/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013 Vladimír Vondruš <mosra@centrum.cz> 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 r...
<commit_before>#ifndef SYSTEM_H #define SYSTEM_H #include <memory> #include <atomic> #include <thread> #include "Assembler.hpp" #include "Bus.hpp" #include "Processor.hpp" #include "VGA.hpp" #include "Memory.hpp" #include "Coprocessor.hpp" #include "Options.hpp" class System { public: System(Options opt); Sy...
<commit_before>#include "Vector.h" /************************************************************************/ /* Constructors and Destructor */ /************************************************************************/ template <typename T> Vector<T>::Vector(int size) : m_c...
<commit_before>#include <QtGui> #include "Window.h" #include "ui_Window.h" #include "ui_SettingsWidget.h" #include "ui_LogWidget.h" #include "ui_AboutWidget.h" #include "Tracker.h" #include "Updater.h" extern Updater *gUpdater; SettingsTab::SettingsTab( QWidget *parent ) : QWidget( parent ), mUI( new Ui::SettingsW...
<commit_before>/* * fMBT, free Model Based Testing tool * Copyright (c) 2011, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * *...
<commit_before>/* ============================================================================ Alfred: BAM alignment statistics ============================================================================ Copyright (C) 2017 Tobias Rausch This program is free software: you can redistribute it and/or modify it under the...
<commit_before>/* * base64.cxx * * Created on: 2015.4.24 * Author: Fifi Lyu */ #include "base64.h" #include <openssl/bio.h> #include <openssl/evp.h> #include <openssl/buffer.h> /* 计算密文对应明文的长度 Base64:http://zh.wikipedia.org/zh/Base64 将 3 byte 的数据,放入一个24bit的缓冲区中。 数据不足 3 byte 的话,缓冲区剩下的bit用0...
<commit_before>/* * Copyright 2013-2014 gtalent2@gmail.com * * 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>/* * Battle implementation */ #include "battle.h" /* Initializes the Battle object with information about the given line. * Calls a traceBack function to construct a response line. */ Battle::Battle(std::string given, Model* m, Nouncer* nouncer, Denouncer* denouncer) { updateLineStats(given, noun...
<commit_before>/* * Copyright 2010-2015, Tarantool AUTHORS, please see AUTHORS file. * * 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 n...