text
stringlengths
54
60.6k
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/nest/p9_pcie_scominit.H $ ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/nest/p9_throttle_sync.C $ ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H $ ...
<commit_before>#include "projet.h" #include <QtDebug> #include <QProcess> #include <QException> #include <QPainter> const QSize Projet::sizeOutput = QSize(1002, 561); Projet::Projet() { } QImage* Projet::getImageVideo(int number) { return _imagesVideo.at(number); } QImage* Projet::getImageOutput(int number) { ...
<commit_before>#include "Debug.h" #include "Editor.h" #include "Renderer.h" #include "Color.h" #include <cstdio> Editor::Editor(EditorState& editorState, bool wantsFocus) : mEditorState(editorState), mFocus(NULL), mModal(NULL), mIsDirty(true), mRedraw(true), mParent(NULL), mNumChildren(0), mWantsFocus(wantsFocus) { ...
<commit_before>/* Copyright (C) 2012 Kolibre This file is part of kolibre-narrator. Kolibre-narrator 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 <iostream> #include <string> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <string.h> #include <cstring> #include <wait.h> #include <vector> #include <fcntl.h> #include <cstdlib> #include <errno.h> #include <sys/stat.h> #include <boost/algorithm/str...
<commit_before>/** * This file is part of Slideshow. * Copyright (C) 2008 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 the ...
<commit_before>/* * nextpnr -- Next Generation Place and Route * * Copyright (C) 2020 David Shah <dave@ds0.me> * * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission noti...
<commit_before>//////////// // // File: Parser.cpp // Module: RSD // Author: Michael Farnsworth // Copyright: (C)2012 by Michael Farnsworth, All Rights Reserved // Content: RenderSpud scene data parser // //////////// #include <string> #include <vector> #include <Rsd/Parser.h> #include "Tokenizer.h...
<commit_before>/*===================================================================== QGroundControl Open Source Ground Control Station (c) 2009 - 2015 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> This file is part of the QGROUNDCONTROL project QGROUNDCONTROL is free software: you can redistribut...
<commit_before>#include "Screen.h" #include "EngineClient.h" #include <imgui.h> namespace { //@TODO: make these conditionally const for "shipping" build static int32_t RampUpDelay = 5; static int32_t RampDownDelay = 10; static int32_t VelocityXDelay = 6; // LineDrawScale is required because introdu...
<commit_before>#include "Simple.hpp" #include "ClockWidget.hpp" rack::Plugin* plugin; void init(rack::Plugin *p) { plugin = p; plugin->slug = "IO-Simple"; #ifdef VERSION p->version = TOSTRING(VERSION); #endif p->addModel(rack::createModel<ButtonTriggerWidget>("IO-Simple", "Simple", "IO-ButtonTrigger", "Button T...
<commit_before>#include "Viewer.hpp" #include <GL/gl.h> #include <GL/glu.h> #include <GL/freeglut.h> #include <iostream> Viewer* Viewer::instance_ = NULL; Viewer::Viewer(std::string name, int width, int height) : name_(name), width_(width), height_(height), running_(false), thetaX_(0.0f), thetaY_(0.0f) { } Viewe...
<commit_before>/* nobleNote, a note taking application * Copyright (C) 2012 Christian Metscher <hakaishi@web.de>, Fabian Deuchler <Taiko000@gmail.com> * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
<commit_before>/* * Copyright (c) 2003-2009, John Wiegley. 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,...
<commit_before>// Copyright (c) 2014 The Syscoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "base58.h" #include "hash.h" #include "uint256.h" #include <assert.h> #include <stdint.h> #include <stri...
<commit_before>// // ex8_05.cpp // Exercise 8.5 // // Created by pezy on 11/9/14. // Copyright (c) 2014 pezy. All rights reserved. // // @Brief Rewrite the previous program to store each word in a separate element // @See ex8_04.cpp #include <fstream> #include <string> #include <vector> #include <iostream> ...
<commit_before>/* * This file is part of the Objavi Renderer. * * Copyright (C) 2013 Borko Jandras <borko.jandras@sourcefabric.org> * * 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...
<commit_before>#include "bridge.hpp" #include "util/common.hpp" #include "dsp/ringbuffer.hpp" #include <unistd.h> #if ARCH_WIN #include <winsock2.h> #else #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netinet/tcp.h> #include <fcntl.h> #endif #include <thread> namespace rack...
<commit_before>/* * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
<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>#include <array> #include "builtin.hh" #include "number.hh" #include "procedure.hh" #include "lisp_ptr.hh" #include "eval.hh" #include "builtin_util.hh" #include "printer.hh" using namespace std; using namespace Procedure; namespace { void plus_2(){ auto args = pick_args<2>(); VM.return_value = ...
<commit_before>#include <algorithm> #include <cmath> #include <vector> #include <QFile> #include <QRegularExpression> #include "ToolBase.h" #include "Exceptions.h" #include "Helper.h" #include "VcfFile.h" #include "NeedlemanWunsch.hpp" using namespace std; class ConcreteTool: public ToolBase { Q_OBJECT public: Con...
<commit_before>#include "musiclrccontainerforinline.h" #include "musiclrcmanagerforinline.h" #include "musiclrcartphotoupload.h" #include "musiclrcfloatwidget.h" #include <QVBoxLayout> #include <QSettings> #include <QPainter> #include <QDesktopServices> #include <QClipboard> #include <QApplication> MusicLrcContainerF...
<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 "sandbox/win/src/sync_policy_test.h" #include "base/win/scoped_handle.h" #include "sandbox/win/src/sandbox.h" #include "sandb...
<commit_before>/* * Copyright 2004 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. Al...
<commit_before>/* Copyright 2016 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 applic...
<commit_before>#include "game.h" #define LOOKAHEAD 4 #define SACRIFICE_OPTIONS 5 #define OPPONENT_MOVES 5 using namespace std; // globals int sacrificeCombinations = factorial(SACRIFICE_OPTIONS) / (factorial(SACRIFICE_OPTIONS - 2) * factorial(2)); stringstream token; char botId, opponentId; char gameState[16][18]; i...
<commit_before>/* */ #include "lineFollowing.h" #include "../control.h" using namespace std; using namespace cv; void detect_lines(Mat &original_frame, double scale_factor); void compress_lines(vector<Vec2f> &condensed, const vector<Vec2f> &tmp_list); #pragma clang diagnostic push #pragma ide diagnostic ignored ...
<commit_before>// ======================================================================== // // Copyright 2009-2015 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>/* */ #include "lineFollowing.h" using namespace std; using namespace cv; ControlMovements lineFollowingControl() { line_main(); return ControlMovements(); } void line_main() { // printf("Hello, this is Caleb\n"); VideoCapture cap("../../tests/videos/top_down_4.m4v"); if (!cap.isOpened()...
<commit_before>// $Id$ /* Copyright (c) 2007-2009, Trustees of The Leland Stanford Junior University 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...
<commit_before>/************************************************************************* * * $RCSfile: colrowst.cxx,v $ * * $Revision: 1.26 $ * * last change: $Author: vg $ $Date: 2005-02-21 13:22:30 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/* * Copyright (c) 2011 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 2019 Google LLC. 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 applicable law o...
<commit_before>/* */ #include "lineFollowing.h" #include "../control.h" using namespace std; using namespace cv; void compress_lines(vector<Vec2f> &condensed, const vector<Vec2f> &tmp_list); void draw_lines(const Mat &image, const vector<Vec2f> &lines); vector<Vec2f> condense_lines(vector<Vec2f> &lines); void ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: namebuff.cxx,v $ * * $Revision: 1.23 $ * * last change: $Author: kz $ $Date: 2006-07-21 11:50:23 $ * * The Contents of this file are made...
<commit_before>// Copyright (c) 2006-2008 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 <sstream> #include <string> #include "base/command_line.h" #include "base/file_path.h" #include "base/path_service.h" #i...
<commit_before>#include <vector> #include "general.h" #include "object.h" #include "expression.h" #include "../includes/switches.h" using namespace std; static vector<string *> string_pool; Ink_ExpressionList native_exp_list = Ink_ExpressionList(); char *tmp_prog_path = NULL; string *StrPool_addStr(const char *str) {...
<commit_before>/* * Copyright 2008-2013 NVIDIA Corporation * * 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) 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 <set> #include <vector> #include "base/command_line.h" #include "base/ref_counted.h" #include "base/string16.h" #include "bas...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkRegularStepGradientDescentOptimizerTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All ...
<commit_before>/* --------------------------------------------------------------------- * Numenta Platform for Intelligent Computing (NuPIC) * Copyright (C) 2014, Numenta, Inc. Unless you have an agreement * with Numenta, Inc., for a separate license for this software code, the * following terms and conditions app...
<commit_before>/******************************************************************************* * c7a/net/select-dispatcher.hpp * * Asynchronous callback wrapper around select() * * Part of Project c7a. * * Copyright (C) 2015 Timo Bingmann <tb@panthema.net> * * This file has no license. Only Chuck Norris can c...
<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 "courgette/crc.h" #ifdef OS_CHROMEOS # include "zlib.h" #else extern "C" { # include "third_party/lzma_sdk/7zCrc.h" } #endi...
<commit_before>// RUN: rm -rf %t // RUN: mkdir %t // RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 std=c++11 %s > %t/out // RUN: FileCheck %s < %t/out // Ensure that XML we generate is not invalid. // RUN: FileCheck %s -check-pre...
<commit_before>/* * This file is part of ofono-qt * * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). * * Contact: Alexander Kanavin <alex.kanavin@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License ...
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2019, PickNik LLC * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
<commit_before>/* * Copyright (c) 2010-2013 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware impleme...
<commit_before>/* * Copyright (c) 2003-2005 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above c...
<commit_before>/** * @file keyboard.cpp * @date 28.06.2013 * @author Denise Ratasich * * @brief ROS node reading from stdin to steer the robot via keyboard. * * A new speed is only published when a key is pressed. Note reading * vom stdin (console) is blocking. * * - subscribe: none * - publish: ~cmd_vel [g...
<commit_before>#include "GameController.h" #include "Tools/Debug/DebugRequest.h" #include <PlatformInterface/Platform.h> GameController::GameController() : lastWhistleCount(0), returnMessage(GameReturnData::alive) { DEBUG_REQUEST_REGISTER("gamecontroller:play", "force the play state", false); DEBUG_REQUEST...
<commit_before>// // MathUtils.cpp // Bomber // // Created by Jeremias Nunez on 3/20/14. // // #include "MathUtils.h" #include <random> int MathUtils::randIntInRange(int min, int max) { return min + (rand() % (int)(max - min + 1)); }<commit_msg>changed random int generation algorithm to use better rand functio...
<commit_before>// __BEGIN_LICENSE__ // Copyright (C) 2006-2010 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ /// \file dem_profile2.cc /// // Standard #include <iostream> // Vision Workbench #include <...
<commit_before>#include "stdafx.h" #include <ctime> #include <iomanip> #include <iostream> #include <fstream> #include <string> #include <vector> #include "console.h" #include "note.h" #include "text.h" namespace note { void Note::pretty_print() const { std::string dc = format_time(&m_date_created); std::string...
<commit_before>/************************************************************************* * * $RCSfile: propread.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: sj $ $Date: 2002-11-18 12:58:25 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before><commit_msg>coverity#1265810 Dereference null return value<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: fusldlg.cxx,v $ * * $Revision: 1.1.1.1 $ * * last change: $Author: hr $ $Date: 2000-09-18 16:48:36 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>/************************************************************************* * * $RCSfile: fuinsfil.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: kz $ $Date: 2005-01-18 15:17:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * $RCSfile: StorageNativeInputStream.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: hr $ $Date: 2004-11-09 12:09:23 $ * * The Contents of this file are made available subject to the terms of * either of the...
<commit_before><commit_msg>coverity#1187866 unused bStartWithActualPage<commit_after><|endoftext|>
<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 "content/browser/in_process_webkit/dom_storage_message_filter.h" #include "base/nullable_string16.h" #include "content/browse...
<commit_before>/* FUSE: Filesystem in Userspace Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu> This program can be distributed under the terms of the GNU GPL. See the file COPYING. gcc -Wall hello.c `pkg-config fuse --cflags --libs` -o hello */ #define FUSE_USE_VERSION 30 #include <fuse.h> #i...
<commit_before>/* * DynApproxBetweenness.cpp * * Created on: 31.07.2014 * Author: ebergamini */ #include "DynApproxBetweenness.h" #include "../auxiliary/Random.h" #include "../properties/Diameter.h" #include "../graph/Sampling.h" #include "../graph/DynDijkstra.h" #include "../graph/DynBFS.h" #include "../au...
<commit_before>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at> * 2019 Nina Engelhardt <nak@symbioticeda.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, prov...
<commit_before>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2018 whitequark <whitequark@whitequark.org> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission ...
<commit_before>/*========================================================================= Program: Monteverdi2 Language: C++ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See Copyright.txt for details. Monteverdi2 is distributed under the CeCILL licence version 2. See Licenc...
<commit_before>#include "Actor.h" #include "DrawUtils.h" #include "Math/ofDraw.h" using namespace std; using namespace math; void Actor::updateAnimationFrames() { if (frames.size() > 1) { if (ofGetElapsedTimef() > timeSpent + framerate) { timeSpent = ofGetElapsedTimef(); frame = (frame + 1) % frames.size();...
<commit_before>/* net6 - Library providing IPv4/IPv6 network access * Copyright (C) 2005 Armin Burgmeier / 0x539 dev group * * 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 *...
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/chrome_paths.h" #include "base/command_line.h" #include "base/file_path.h" #include "base/file_util.h" #i...
<commit_before>#include "filename-parser-test.h" #include <QMap> #include <QString> #include <QtTest> #include "filename/filename-parser.h" #include "filename/ast/filename-node-conditional.h" #include "filename/ast/filename-node-condition-invert.h" #include "filename/ast/filename-node-condition-op.h" #include "filename...
<commit_before>/* * SessionPanmirrorCrossref.cpp * * Copyright (C) 2009-16 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 Aff...
<commit_before>#include "overlay.hpp" #include "../proxy/mouse_proxy.hpp" #include "../../context.hpp" #include "size_container.hpp" using namespace morda; namespace{ class context_menu_wrapper : public size_container{ public: context_menu_wrapper(std::shared_ptr<morda::context> c, const puu::forest& desc) : wid...
<commit_before>/* * The Mana World * Copyright (C) 2009 The Mana World Development Team * * This file is part of The Mana World. * * 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 Foun...
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2013 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>#ifndef context_hh_INCLUDED #define context_hh_INCLUDED #include "window.hh" #include "client.hh" #include "user_interface.hh" namespace Kakoune { // A Context is provided to all commands, it permits // to access a client, window, editor or buffer if available. struct Context { Context() {} Co...
<commit_before>// -*- C++ -*- // httpd.conf: // // LoadModule acmacs_module "mod_acmacs.so" // AddHandler acmacs .ace .save .save.xz .acd1 .acd1.xz // // /etc/apache2/envvars: // // export ACMACSD_ROOT="/home/.../AD" #include <iostream> #include <string> #include <typeinfo> #include "apache2/httpd.h" #include "apach...
<commit_before><commit_msg>Added a comment.<commit_after><|endoftext|>
<commit_before>// // Reference : Chapter 6, "Introduction to Algorithms 3rd ed", aka CLRS. // #pragma once #include <vector> #include <functional> #include <stdexcept> #include <algorithm> using std::move; using std::find_if; namespace search { // // parent // O(1) // template<typename Iterato...
<commit_before>#include "logger_metrics_mongo.h" #include "mongo/bson/bson.h" #include "mongo/util/net/hostandport.h" #include "jml/utils/string_functions.h" namespace Datacratic{ using namespace std; using namespace mongo; LoggerMetricsMongo::LoggerMetricsMongo(Json::Value config, const string& coll, const stri...
<commit_before>#include "filesystem.h" #include <sstream> #include <algorithm> namespace alpr { bool startsWith(std::string const &fullString, std::string const &prefix) { if(fullString.substr(0, prefix.size()).compare(prefix) == 0) { return true; } return false; } bool hasEnding (std::s...
<commit_before>/* Copyright (c) 2008-2019 the MRtrix3 contributors. * * 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/. * * Covered Software is provided under this L...
<commit_before>#include <fstream> #include <iostream> #include <string> #include <cstring> using namespace std; bool writeBug = false; bool writeFileNames = false; string patStr; string tesStr; bool isWhite(char _c) { if (_c == ' ' || _c == ' ' || _c == '\n') return true; else return false; } bool readNext(i...
<commit_before>#include "dialogs.h" #include <cmath> namespace sigc { #ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE template <typename Functor> struct functor_trait<Functor, false> { typedef decltype (::sigc::mem_fun(std::declval<Functor&>(), &Functor::operator())...
<commit_before>// Copyright 2020 Chia Network Inc // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in coiance 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>/* * Funambol is a mobile platform developed by Funambol, Inc. * Copyright (C) 2003 - 2007 Funambol, Inc. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License version 3 as published by * the Free Software Foundation...
<commit_before><commit_msg>refactoring<commit_after><|endoftext|>
<commit_before>#pragma once // Mantella #include <mantella_bits/optimisationAlgorithm/trajectoryBasedAlgorithm.hpp> namespace mant { template <typename ParameterType, class DistanceFunction> class HillClimbing : public TrajectoryBasedAlgorithm<ParameterType, DistanceFunction> { public: explicit HillClim...
<commit_before>// 5.exercise.12.cpp // // Implement a little guessing game called (for some obscure reason) "Bulls and // Cows". The program has a vector of four different integers in the range 0 to // 9 (e.g., 1234 but not 1122) and it is the user's task to discover those // numbers by repeated guesses. Say the number...
<commit_before> #ifndef __ERRORS_HPP__ #define __ERRORS_HPP__ #include <errno.h> #include <stdio.h> #include <cstdlib> #include <signal.h> #include <stdexcept> /* Error handling * * There are several ways to report errors in RethinkDB: * fail_due_to_user_error(msg, ...) fail and report line number/stack trace....
<commit_before>/* Gobby - GTK-based collaborative text editor * Copyright (C) 2008, 2009 Armin Burgmeier <armin@arbur.net> * * 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 * versio...
<commit_before>/* * See ffx.h for details. * * References: * [FFX2] http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/ffx/ffx-spec2.pdf */ #include "ffx/ffx.h" #include <math.h> #include <string> #include "third_party/aes/aes.h" namespace ffx { static bool ValidateKey(const std::string & k...
<commit_before>#include <vector> #include <cstdlib> #include <iostream> #include <unordered_map> #include <sstream> #include <string> #include "vg.hpp" #include "xg.hpp" #include "vg.pb.h" /** * Provides a way to filter Edits contained * within Alignments. This can be used to clean out * sequencing errors and to fi...
<commit_before>/* * mod_dup - duplicates apache requests * * Copyright (C) 2013 Orange * * 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 * * U...
<commit_before>/* * Copyright 2015 Cloudius Systems */ #pragma once #include "types.hh" #include "atomic_cell.hh" #include "query-request.hh" #include "query-result.hh" // Refer to query-result.hh for the query result format namespace query { class result::row_writer { bytes_ostream& _w; const partition_...
<commit_before><commit_msg>Already sync not necessary to sync twice<commit_after><|endoftext|>
<commit_before>/* * Copyright 2019 The Android Open Source Project * * 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 requ...
<commit_before>/********************************************************************* * * Condor ClassAd library * Copyright (C) 1990-2003, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI and Rajesh Raman. * * This source code is covered by the Condor Public License, which can * ...
<commit_before>//===-- HostInfoBase.cpp ----------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...