text
stringlengths
54
60.6k
<commit_before>#include "ValidSudoku.hpp" bool ValidSudoku::isValidSudoku(vector<vector<char>>& board) { bool used1[9][9] = {false}, used2[9][9] = {false}, used3[9][9] = {false}; for(int i = 0; i < board.size(); i++) for(int j = 0; j < board[i].size(); j++) if (board[i][j] != '.') { int num = bo...
<commit_before>/* * A wrapper for an async_operation which unrefs the pool on abort. * * This solves a problem of many libraries which reference a pool, but * pass the async_ref object to another library. When the caller * aborts the operation, the "middle" library never gets a chance to * unref the pool; pluggi...
<commit_before>#include "accumulator.h" #include "thread/loopi.h" using namespace nano; accumulator_t::accumulator_t(const model_t& model, const loss_t& loss) : m_type(type::value), m_loss(loss) { const auto size = thread_pool_t::instance().workers(); for (size_t i = 0; i < size; ++ i) ...
<commit_before>/* * Copyright (c) 2014-2022 Patrizio Bekerle -- <[email protected]> * * 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; version 2 of the License. * * This program is dist...
<commit_before>// Copyright 2021 The CFU-Playground 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 ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkIdList.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen. This software is copyrighted by Ken...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkWindow.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen. This software is copyrighted by Ken...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "CAVEView.h" #include "ExternalRenderWindow.h" #include "Renderer.h" #include "OgreWorld.h" #include <QDesktopWidget> #include <QResizeEvent> #include <QKey...
<commit_before>// For conditions of distribution and use, see copyright notice in LICENSE #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "MemoryLeakCheck.h" #include "OggVorbisLoader.h" #include "LoggingFunctions.h" #include <sstream> #ifndef TUNDRA_NO_AUDIO #include <vorbis/vorbisfile.h> #endif ...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2008, 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>#include <list> #include <map> #include <stdexcept> #include <string> #include <utility> #include <boost/tr1/unordered_map.hpp> #include <boost/filesystem.hpp> #include <AlpinoCorpus/CorpusReader.hh> #include <AlpinoCorpus/CorpusReaderFactory.hh> #include <AlpinoCorpus/Entry.hh> #include <AlpinoCorpus...
<commit_before>#include "util/funcs.h" #include "util/bitmap.h" #include "fog_atmosphere.h" #include <math.h> static int screenX(){ return 320; } static int screenY(){ return 240; } FogAtmosphere::FogAtmosphere(): Atmosphere(){ fog = new Bitmap( 50, 50 ); fog->fill( Bitmap::MaskColor ); fog->circleFill( 25, 25,...
<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>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs * * Authors: Hugo Beauzée-Luyssen<[email protected]> * * This program is f...
<commit_before>#include "graph/expression_operators.h" #include "layers/constructors.h" #include "graph/node_operators.h" #include "graph/node_operators_binary.h" #include "graph/node_operators_unary.h" namespace marian { Expr debug(Expr a, const std::string& message) { a->debug(message); return a; } Expr logit...
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*- Copyright 2014, 2015 Raffaello D. Di Napoli This file is part of Abaclade. Abaclade 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 F...
<commit_before>/*************************************************************************** * Copyright (C) 2006 by FThauer FHammer * * [email protected] * * * * This program is free software; you can redistribute it and/or modify * *...
<commit_before>#ifndef BASE_OBSTACLE_DETECTOR_H_ #define BASE_OBSTACLE_DETECTOR_H_ #include <vector> #include <algorithm> #include <pcl/visualization/cloud_viewer.h> #include "lepp2/VideoObserver.hpp" #include "lepp2/BaseSegmenter.hpp" #include "lepp2/NoopSegmenter.hpp" #include "lepp2/EuclideanPlaneSegmenter.hpp" #...
<commit_before>// Copyright (c) 2015 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 "net/third_party/quiche/src/quic/tools/quic_client_base.h" #include "net/third_party/quiche/src/quic/core/crypto/quic_random....
<commit_before>// Copyright 2021 Amazon.com, Inc. or its affiliates. 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-...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qbs. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses m...
<commit_before>/* $Id$ */ /* * Copyright (c) 2010 SURFnet bv * 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 * not...
<commit_before>/* RawSpeed - RAW file decoder. Copyright (C) 2009-2014 Klaus Post Copyright (C) 2014 Pedro Côrte-Real 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; e...
<commit_before>/* * Copyright (C) 2015 Sergii Pylypenko * * 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 app...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // Name: managedframe.cpp // Purpose: Implementation of wxExManagedFrame class. // Author: Anton van Wezenbeek // Created: 2010-04-11 // RCS-ID: $Id$ // Copyright: (c) 2010 Anton van Wezenbeek ////////////////...
<commit_before>#include <iostream> #include <string> #include "STRTK/strtk.hpp" #include "SFML/System.hpp" #include "SFML/Graphics/Sprite.hpp" #include "SFML/Graphics/Text.hpp" #include "SFML/Graphics.hpp" #include "painter.h" #define WINDOW_WIDTH 1024 #define WINDOW_HEIGHT 768 Painter::Painter(RenderNode *node) { ...
<commit_before>#include "application.hpp" #include <boost/log/attributes.hpp> #include <boost/log/core.hpp> #include <boost/log/expressions.hpp> #include <boost/log/support/date_time.hpp> #include <boost/log/trivial.hpp> #include <boost/log/utility/setup/common_attributes.hpp> #include <boost/log/utility/setup/console...
<commit_before>// // pfilter.cpp // EpiGenMCMC // // Created by Lucy Li on 05/05/2016. // Copyright (c) 2016 Lucy Li, Imperial College London. All rights reserved. // #include "pfilter.h" #include <iostream> namespace EpiGenPfilter { double pfilter(Model & sim_model, Parameter & model_params, MCMCoptions & ...
<commit_before>/* This file exists to provide some stat monitors for process statistics and the like. */ #include <vector> #include <string.h> #include <stdlib.h> #include <sys/syscall.h> #include <sys/stat.h> #include <fcntl.h> #include <sstream> #include <iomanip> #include <stdarg.h> #include "arch/io/io_utils.hpp"...
<commit_before>#include <cassert> #include <cstdio> #include <cstdlib> #include <GL/glew.h> #include <SDL2/SDL.h> #include "FileUtil.h" #define WINDOW_SIZE 640 #define ARRAY_COUNT(array) (sizeof(array) / sizeof(array[0])) struct ShaderProgramSource { GLenum shaderType; const char* sourceFilena...
<commit_before>// __BEGIN_LICENSE__ // Copyright (c) 2009-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NGT platform is licensed under the Apache License, Version 2.0 (the // "License"); you may not use ...
<commit_before>#ifndef __Data_student__ #define __Data_student__ #include "data-general.hpp" #include "data-major.hpp" #include "data-course.hpp" using namespace std; class Semester { private: int period; public: Semester() { period = 0; } Semester(int p) { period = p; } vector<Course> courses; }; class S...
<commit_before>/************************************************************************* * * $RCSfile: configmgr.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: mba $ $Date: 2000-11-30 09:11:37 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>/**************************************************************************** * Copyright (C) 2012-2015 by Savoir-Faire Linux * * Author : Emmanuel Lepage Vallee <[email protected]> * * ...
<commit_before>///////////////////////////////////////////////////////////////////////// // $Id: fpu_const.cc,v 1.15 2009/03/10 21:43:11 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (c) 2003 Stanislav Shwartsman // Written by Stanislav Shwartsman [s...
<commit_before>/* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #include <boost/make_shared.hpp> #include <qitype/genericobject.hpp> #include "boundobject.hpp" #include "serverresult.hpp" qiLogCategory("qimessaging.boundobject"); static const int gObjectOffset = 100; namespace qi { ...
<commit_before>#include "definitions.hpp" // position of u in a reverse toposort static int pos(int u) { static int next = 1, dp[MAXN] = {}; int& ans = dp[u]; if (ans) return ans; for (int v : G[u].down) pos(v); return ans = next++; } // p(phi(u)) static int p(int u) { static int dp[MAXN] = {}; int& ans...
<commit_before>#include <iostream> #include <map> #include <Ice/Ice.h> #include "server.h" // TODO: remove this global variable Ice::CommunicatorPtr ic; class MetaServer : public Player::IMetaServer { public: MetaServer(); virtual void add(const std::string& endpointStr, const Player::Song& s, const Ice::Curren...
<commit_before><commit_msg>sc tiled editing: Set the 100% zoom in the selection-related methods too.<commit_after><|endoftext|>
<commit_before>#include "CQuery.hpp" #include "CHandle.hpp" #include "CConnection.hpp" #include "COptions.hpp" #include "misc.hpp" #include <fstream> #include <boost/spirit/include/qi.hpp> using namespace boost::spirit; #include "mysql.hpp" CHandle::~CHandle() { if (m_MainConnection != nullptr) delete m_MainCon...
<commit_before>// Scintilla source code edit control /** @file CallTip.cxx ** Code for displaying call tips. **/ // Copyright 1998-2001 by Neil Hodgson <[email protected]> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <string.h> #includ...
<commit_before>#include <cstdlib> #include <ctime> #include <sys/wait.h> #include <fstream> #include <set> #include <string> #include <iostream> #include <deque> #include <vector> #include "Crawler.h" #include "Downloader.h" std::string Crawler::GenerateFileName() { return data_directory_ + std::to_string(time...
<commit_before>/** * @file Decoder.cpp * @copyright (c) 2014 by Petr Zemek ([email protected]) and contributors * @license BSD, see the @c LICENSE file for more details * @brief Implementation of the Decoder class. */ #include "Decoder.h" #include <cassert> #include <regex> #include <sstream> #include "BIn...
<commit_before>#include <cmath> #include <limits> #include "Lander/Geometry.h" namespace { const Lander::Point INVALID_POINT( std::numeric_limits<double>::quiet_NaN(), std::numeric_limits<double>::quiet_NaN() ); /** * Based on a: * public domain function by Darel Rex Finley, 2006 * Determines the...
<commit_before>#include "JWModules.hpp" #include "dsp/digital.hpp" struct GridSeq : Module { enum ParamIds { RUN_PARAM, CLOCK_PARAM, RESET_PARAM, CELL_PARAM, GATE_PARAM = CELL_PARAM + 16, NUM_PARAMS = GATE_PARAM + 16, }; enum InputIds { CLOCK_INPUT, EXT_CLOCK_INPUT, RESET_INPUT, RIGHT_INPUT, LEF...
<commit_before>#include <iostream> #include <cassert> #include "HelpCmd.h" #include "CommandSet.h" // --------------------------------------------------------------------------- cigma::HelpCmd::HelpCmd() { name = "help"; commands = 0; } cigma::HelpCmd::~HelpCmd() { } void cigma::HelpCmd::setCmdMap(Command...
<commit_before> #include "Internal.hpp" #include <LuminoEngine/Tilemap/TilemapLayer.hpp> #include <LuminoEngine/Tilemap/TilemapModel.hpp> #include <LuminoEngine/Tilemap/Tileset.hpp> namespace ln { //============================================================================== // AbstractTilemapLayer Abs...
<commit_before>//template provided by SurgicalSteel a.k.a Yuwono Bangun Nagoro for competitive programming purposes #include <bits/stdc++.h> #define Mas_Bangun using #define cinta namespace #define Mbak_IsyanaSarasvati std #define PI 3.1415926535897932384626433832795 #define MOD 1000000007 #define PB push_back #define ...
<commit_before>/* * Copyright (c) 2017 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 2008-present Contributors to the OpenImageIO project. // SPDX-License-Identifier: BSD-3-Clause // https://github.com/OpenImageIO/oiio #include <cstdio> #include <OpenImageIO/filesystem.h> #include <OpenImageIO/imageio.h> #include <OpenImageIO/strutil.h> #include "bmp_pvt.h" OIIO_PLUGIN_N...
<commit_before>/** * Copyright (C) 2014 3D Repo Ltd * * This program 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 ver...
<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>#include "sensors.h" #include "freertos/semphr.h" #include "freertos/task.h" #include "SparkFunBME280.h" #include "esp_log.h" static float readings[SENS_MAX-1]; static QueueHandle_t *subscriptions; static size_t num_subscriptions; static SemaphoreHandle_t sensor_mutex; static const char *TAG = "senso...
<commit_before>/* Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include "kernel/type_checker.h" #include "kernel/abstract.h" #include "kernel/instantiate.h" #include "kernel/inductive/inductive.h" #includ...
<commit_before>// Copyright 2015 Google Inc. 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 require...
<commit_before>/* Copyright (c) 2013, Project OSRM, Dennis Luxen, others 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...
<commit_before><commit_msg>AliFITv8: Remove old containing volumes and some of the screws, rods, which cause overlaps<commit_after><|endoftext|>
<commit_before>/* * File: Network.cpp * Author: janvojt * * Created on May 30, 2014, 12:17 AM */ #include "Network.h" #include <cstring> #include <string> Network::Network(NetworkConfiguration *conf) { this->conf = conf; this->noLayers = conf->getLayers(); this->bias = 0; initWeights(); ...
<commit_before>// // Copyright (c) 2019 The nanoFramework project contributors // See LICENSE file in the project root for full license information. // #include "sys_dev_dac_native.h" static const CLR_RT_MethodHandler method_lookup[] = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NUL...
<commit_before>#include "IHMD.hpp" #include <bx/fpumath.h> #include <SDL.h> #include "Registry.hpp" namespace xveearr { namespace { const unsigned int gViewportWidth = 1280 / 2; const unsigned int gViewportHeight = 720; const float gLeftEye[] = { -50.0f, 0.0f, 0.f }; const float gRightEye[] = { 50.0f, 0.0f, 0.f }; f...
<commit_before>#include <Process.h> #include <boost/interprocess/sync/named_semaphore.hpp> #include <unistd.h> namespace Interprocess { using Semaphore = boost::interprocess::named_semaphore; boost::interprocess::open_or_create_t OpenCreate = boost::interprocess::open_or_create; using namespace std; Process::Process...
<commit_before>// Program.cpp #include "stdafx.h" #include "Program.h" #include "PythonStuff.h" #include "../../tinyxml/tinyxml.h" #include "ProgramCanvas.h" #include "NCCode.h" #include "../../interface/MarkedObject.h" #include "../../interface/PropertyString.h" #include "Profile.h" #include "Pocket.h" #inc...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Jolla Ltd. ** Contact: Chris Adams <[email protected]> ** ****************************************************************************/ #include "facebooknotificationsyncadaptor.h" #incl...
<commit_before>#ifndef SAPLIST_HPP #define SAPLIST_HPP 1 #include <functional> #include <map> #include <typeinfo> #include <climits> #include <iostream> #include "CollisionManager.hpp" class ActionManager; class Collisionable; class SAPList; class Collisionable { protected: /* (void *) because AABB type is hidd...
<commit_before>#pragma ident "$Id$" //============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GPSTk is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published //...
<commit_before> #pragma once #include <deque> #include <optional> #include "quantities/named_quantities.hpp" #include "quantities/quantities.hpp" namespace principia { namespace numerics { namespace internal_pid { using quantities::Inverse; using quantities::Time; template<typename Value, int horizon, int finite_...
<commit_before>#include <iostream> #include <string.h> #include <istream> #include <cstring> #include <unistd.h> using namespace std; #include <cstdio> #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> #include <string> #include <errno.h> #include <cstdlib> int main() { string input; //takin...
<commit_before>#pragma once #include "h5file.hpp" namespace mocc { /** * This simply specifies an interface for outputing "stuff" to and HDF5 * file. Any class extending it must implement the output() method, which * adds its data to the H5File instance passed to it. */ class HasOutput { ...
<commit_before>/* * Texture.h * * Created on: 16 Jun 2014 * Author: rick */ #ifndef TEXTURE_H_ #define TEXTURE_H_ #include "Vec3D.hpp" typedef Vec3Df Texture; #endif /* TEXTURE_H_ */ <commit_msg>Really fixed refactor.<commit_after>/* * Texture.hpp * * Created on: 16 Jun 2014 * Author: rick */ ...
<commit_before>// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pal.h" #include "utils.h" #include "trace.h" #include <dlfcn.h> #include <dirent.h> #include <sys/stat.h> #if defined(...
<commit_before>/* * Message.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 General Publi...
<commit_before>#include "alara.h" #include "Matrix.h" /* this is used to determine how many terms are needed in the expansion */ #define MAXEXPTOL 1e-15 /* This is the maximum number of terms allowed for the expansion method * If more are needed, the inversion method is used */ #define MAXNUMEXPTERMS 15 /* This is ...
<commit_before>#include "Utility.h" #include <vector> #include <random> #include <chrono> #include <fstream> #include <algorithm> #include <string> #include <cctype> #include <iostream> namespace String { namespace { const auto whitespace = " \t\n"; } } std::vector<std::string> String::split(cons...
<commit_before>// For faster build #include "marisa/trie.cc" #include "marisa/agent.cc" #include "marisa/grimoire/io/reader.cc" #include "marisa/grimoire/io/writer.cc" #include "marisa/grimoire/io/mapper.cc" #include "marisa/grimoire/trie/louds-trie.cc" #include "marisa/grimoire/trie/tail.cc" #include "marisa/grimoi...
<commit_before>/* * Copyright (c) 2014, Julien Bernard * * 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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: TableFieldControl.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: rt $ $Date: 2005-09-08 16:41:26 $ * * The Contents of this file ...
<commit_before>#include "testApp.h" #include <iostream.h> //-------------------------------------------------------------- void testApp::setup(){ ofSetVerticalSync(true); video.loadMovie( "GoodHair_JFleurantin/Resources/GoodHair_JFleurantin.mov" ); sound.loadSound( "GoodHair_short.mp3" ); // BlurO...
<commit_before>#include <cstring> #include <string> #include <boost/assign/list_of.hpp> #include "constants.h" #include "testnet.h" static uint8_t TESTNET_PROTOCOL_MAGIC_BYTES[sizeof(PROTOCOL_MAGIC_BYTES)] = { 0xe5, 0xcf, 0x81, 0xdf }; static char const * TESTNET_AUTO_DNS_SEEDS[][2] ...
<commit_before>/* * Transform a TSV format factor graph file and output corresponding binary * format used in DeepDive */ #include "text2bin.h" #include "binary_format.h" #include <assert.h> #include <fstream> #include <iostream> #include <sstream> #include <stdint.h> #include <stdlib.h> #include <vector> namespac...
<commit_before>#include "internal.h" /// Group of functions dedicated to handling of shaders namespace ShaderHandler { static const char* readShader(char* path); static std::vector<Shader> shaders; static std::vector<GLuint> programs; static unsigned int currentProgram; /// /// Adds shader to the shader vecto...
<commit_before>/************************************************************************* * * TIGHTDB CONFIDENTIAL * __________________ * * [2011] - [2012] TightDB Inc * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of TightDB Incorporated and its suppliers...
<commit_before><commit_msg>vcl wmf test: null terminate stream<commit_after><|endoftext|>
<commit_before>#include "BoundaryFlux3EqnGhostDensityVelocity.h" #include "SinglePhaseFluidProperties.h" #include "Numerics.h" #include "THMIndices3Eqn.h" registerMooseObject("THMApp", BoundaryFlux3EqnGhostDensityVelocity); template <> InputParameters validParams<BoundaryFlux3EqnGhostDensityVelocity>() { InputParam...
<commit_before>#include <iostream> #include <fstream> #include <sstream> #include "mcc/main.h" #include "mcc/tac/tac.h" using namespace mcc::tac; int main(int argc, char** argv) { if(argc!=2) { std::cout << "usage: mC [file]" << std::endl; return -1; } std::ifstream input{argv[1]}; std::stringstream buffer...
<commit_before>#include "clause.hpp" #include "internal.hpp" #include "iterator.hpp" #include "macros.hpp" #include "message.hpp" #include "proof.hpp" #include <algorithm> #include <cmath> namespace CaDiCaL { // Code for conflict analysis, e.g., to generate the first UIP clause. The // main function is 'analyze' be...
<commit_before>#include "app.h" #include <chrono> #include <thread> #include <algorithm> #include <numeric> #include <string> #include <fstream> #include <iostream> using namespace std; App::App( Settings settings, std::unique_ptr<FileManagerInterface> fileManager, std::unique_ptr<P2PNetworkInterface> ne...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014 The Darkcoin 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" ...
<commit_before>// Copyright 2012 Philip Puryear // // 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>// 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 <io/Socket.hpp> #include <io/ServerSocket.hpp> #include <io/StringWriter.hpp> #include <io/Inet4Address.hpp> #include <io/binary/StreamGetter.hpp> #include <cstdio> #include <log/LogManager.hpp> #include <proc/ProcessManager.hpp> #include <unistd.h> using namespace logger ; using namespace...
<commit_before>// Copyright (c) 2009-2016 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Developers // Copyright (c) 2015-2016 The Silk Network Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ch...
<commit_before>/* indivudal.cpp - CS 472 Project #2: Genetic Programming * Copyright 2014 Andrew Schwartzmeyer * * Source file for individual namespace */ #include <algorithm> #include <cassert> #include <cmath> #include <iostream> #include <memory> #include <tuple> #include <vector> #include "individual.hpp" #in...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014 The Mini-Blockchain Project // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams....
<commit_before>// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014 Kryptohash 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 "uint256.h" #...
<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>// 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>/* * author: Max Kellermann <[email protected]> */ #include "ForwardHttpRequest.hxx" #include "lb_instance.hxx" #include "lb_connection.hxx" #include "lb_config.hxx" #include "lb_session.hxx" #include "lb_cookie.hxx" #include "lb_jvm_route.hxx" #include "lb_headers.hxx" #include "lb_log.hxx" #include "ssl...
<commit_before>#include <stdio.h> #include <queue> #include <vector> #include <utility> #include <iostream> #include <string> #include <stack> #include <queue> using namespace std; queue<string> lv1; queue<string> lv2; queue<string> lv3; queue<string> lv4; string temp; int templv; int temptime=0; int usernum; int us...
<commit_before>/** * This file is part of the "FnordMetric" project * Copyright (c) 2014 Paul Asmuth, Google Inc. * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public Licen...
<commit_before>/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkCanvas.h" #include "SkPaint.h" #include "SkRandom.h" namespace skiagm { class MovePathGM : public GM { public: MovePathGM() {} ...