conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Simplify format should be a prepend.\n\nThis way if any other before_filters need the simplified format it\nis available to them.\n"
},
{
"from": "human",
"value": "module ApiVersions\n module SimplifyFormat\n extend ActiveSupport::Concern\n\n included do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug in list images example\n"
},
{
"from": "human",
"value": "def test\n connection = Fog::Compute.new({ :provider => \"Google\" })\n\n # puts 'Listing images in all projects...'\n # puts '---------------------------------'\n images = connection.images.all\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add an initializer to ReactionEvent\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'discordrb/events/generic'\nrequire 'discordrb/data'\n\nmodule Discordrb::Events\n # Generic superclass for events about adding and removing reactions\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Reconfigure mysql-apt-config and update package list\n"
},
{
"from": "human",
"value": "# set up mysql-apt-config\n\napt_config_file = File.join(Chef::Config[:file_cache_path], 'mysql-apt-config.deb')\n\nremote_file apt_config_file do\n source \"http://dev.mysql.co... | ruby | chosen |
[
{
"from": "system",
"value": "Make benchmark comparable between the different encoding path\n\nThis makes sure both run the same number of iterations so these are\nproperly comparable.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'benchmark'\nrequire 'benchmark/ips'\n\nstrings... | ruby | chosen |
[
{
"from": "system",
"value": "Include the module for clearing db connections\n"
},
{
"from": "human",
"value": "module ActionCable\n module Server\n # Worker used by Server.send_async to do connection work in threads. Only for internal use.\n class Worker\n include ActiveSupport::Cal... | ruby | chosen |
[
{
"from": "system",
"value": "Use https instead of git transport.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'LibraryDemo'\n s.version = '1.0.0'\n s.summary = 'Demo'\n s.author = {'Ole Gammelgaard Poulsen' => 'ole@sh... | ruby | chosen |
[
{
"from": "system",
"value": "Fix yaml and twilio rest client\n"
},
{
"from": "human",
"value": "# Name: notify.rb\n# Description: Send ride summary to Citi Bike User.\n# Author: Bob Gardner\n# Updated: 4/15/14\n# License: MIT\n\nrequire 'twilio-ruby'\n\nTWILIO_CONFIG = YAML.load_file(File.join(... | ruby | chosen |
[
{
"from": "system",
"value": "Set protocol https if enforce SSL connections configured\n"
},
{
"from": "human",
"value": "#\n# Enforce SSL connections, if configured\nif Errbit::Config.enforce_ssl\n Errbit::Application.configure do\n config.middleware.use Rack::SslEnforcer, :except => /^\\/d... | ruby | chosen |
[
{
"from": "human",
"value": "Add script to get portail information using tile_key method\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n#\n# Usage:\n# portal_info.rb PORTAL_LINK\n#\n# Example:\n# portal_info.rb 'https://www.ingress.com/intel?ll=35.658581,139.745433&z=19&pll=35.658598,... | ruby | chosen |
[
{
"from": "system",
"value": "Fix - migration for PG\n"
},
{
"from": "human",
"value": "class ChangeFormatToDateInActualites < ActiveRecord::Migration\n def change\n change_column :actualites, :date, :date\n end\nend\n"
},
{
"from": "gpt",
"value": "class ChangeFormatToDateInAct... | ruby | chosen |
[
{
"from": "system",
"value": "Use conditional returns for UserBanEvent attributes\n"
},
{
"from": "human",
"value": "require 'discordrb/events/generic'\n\nmodule Discordrb::Events\n # Raised when a user is banned\n class UserBanEvent\n # @return [User] the user that was banned\n attr_rea... | ruby | chosen |
[
{
"from": "system",
"value": "Update Google App Engine to 1.9.28\n"
},
{
"from": "human",
"value": "cask :v1 => 'googleappengine' do\n version '1.9.25'\n sha256 'e3b69ef42262477a2e925783a8ce8856d81ffc4535595bd43d2d57d1e7d1c3ac'\n\n # googleapis.com is the official download host per the vendor... | ruby | chosen |
[
{
"from": "system",
"value": "Fix php::fpm::config specs for php_settings\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'php::fpm::config' do\n let(:facts) { { :osfamily => 'Debian' } }\n\n context 'creates config file' do\n let(:params) {{\n :php_inifile => '/et... | ruby | chosen |
[
{
"from": "system",
"value": "Set protect from dos to false for testing with irbrc and shotgun\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/lib/dragonfly'\n\ninclude Dragonfly\n\nAPP = Dragonfly::App[:images]\nAPP.configure do |c|\n c.datastore = Dragonfly::DataStorage:... | ruby | chosen |
[
{
"from": "system",
"value": "Update brewlist for clean install\n"
},
{
"from": "human",
"value": "\nrequire_relative \"lib/output\"\nrequire_relative \"lib/homebrew\"\nrequire_relative \"lib/sh\"\n\ndesc \"Ensure homebrew is installed and up to date\"\ntask :homebrew => 'homebrew:update'\n\nver... | ruby | chosen |
[
{
"from": "system",
"value": "Fix gemspec requirements for fresh installs"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"recurrence\"\n\nGem::Specification.new do |s|\n s.name = \"recurrence\"\n s.version = Recur... | ruby | chosen |
[
{
"from": "system",
"value": "Delete case switches in routes, just add if-ternary\n"
},
{
"from": "human",
"value": "require 'sinatra/base'\n# Main sinatra App, using param routing.\nclass App < Sinatra::Base\n # GET Routing views\n get('/') { erb :index }\n error { erb :error }\n\n get '... | ruby | chosen |
[
{
"from": "system",
"value": "Remove tests that have been superseded by precedence_spec.\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../spec_helper'\n\ndescribe \"The && keyword\" do\n it \"binds more tightly than =\" do\n i = 1 && 10\n i.should == 10\n end\nend... | ruby | chosen |
[
{
"from": "system",
"value": "Send params only for set environment variables.\n\nGiven ENV['CHURN_IGNORE_FILES'] is empty\nThen :ignore_files will be provided with nil.\nAnd options.fetch(:ignore_files) { \"\" } => nil\n\nThis breaks `@ignore_files = (options.fetch(:ignore_files){ \"\" }).split(',').map(&:s... | ruby | chosen |
[
{
"from": "system",
"value": "Return empty set early if no can rules are present.\n\nThanks dkubb!"
},
{
"from": "human",
"value": "module CanCan\n module ModelAdapters\n class DataMapperAdapter < AbstractAdapter\n def self.for_class?(model_class)\n model_class <= DataMapper::Res... | ruby | chosen |
[
{
"from": "system",
"value": "Improve mail method parentheses consistency.\n"
},
{
"from": "human",
"value": "class CollaboratorMailer < ActionMailer::Base\n layout 'mailer'\n\n #\n # Creates an email to send to people when they have been added as\n # a collaborator to a cookbook.\n #\n # ... | ruby | chosen |
[
{
"from": "human",
"value": "Add Angry IP Scanner v3.2.2\n"
},
{
"from": "gpt",
"value": "class AngryIpScanner < Cask\n url 'http://github.com/angryziber/ipscan/releases/download/3.2.2/ipscan-mac-3.2.2.zip'\n homepage 'http://angryip.org'\n version '3.2.2'\n sha256 'a9cb54d1e2377be31945692f6... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage to use SSL in Mendeley Cask\n\nThe HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\n"
},
{
"from": "human",
"value": "cask :v1 => 'mendeley-desktop' do\n version '1.13.8'\... | ruby | chosen |
[
{
"from": "human",
"value": "Add test examples for command builder\n"
},
{
"from": "gpt",
"value": "RSpec.describe Docomoru::CommandBuilder do\n let(:argv) do\n []\n end\n\n let(:command_builder) do\n described_class.new(argv)\n end\n\n describe \"#build\" do\n subject do\n co... | ruby | chosen |
[
{
"from": "system",
"value": "Add parentheses to squash warning\n\nWithout these, Ruby 1.9 says “warning: `*' interpreted as argument\nprefix”.\n"
},
{
"from": "human",
"value": "module Monads\n module Monad\n def within(&block)\n and_then do |value|\n self.class.from_value(block... | ruby | chosen |
[
{
"from": "system",
"value": "Add raise IrreversibleMigration to self.down\n"
},
{
"from": "human",
"value": "class <%= migration_class_name %> < ActiveRecord::Migration\n def self.up\n end\n\n def self.down\n end\nend\n"
},
{
"from": "gpt",
"value": "class <%= migration_class_na... | ruby | chosen |
[
{
"from": "system",
"value": "Test are failing because of case sensitivity, hackish way of fixing that\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nRSpec.feature 'Translations', :js do\n given(:language) { Spree.t(:this_file_language, scope: 'i18n', locale: 'pt-BR') }\n\n background d... | ruby | chosen |
[
{
"from": "system",
"value": "Drop bogus space in locality indication in Person.to_s\n"
},
{
"from": "human",
"value": "class Person < ActiveRecord::Base\n # sex enumeration\n MALE = 1\n FEMALE = 2\n\n # Associations\n has_many :vcards, :as => :object\n has_one :vcard, :as => :object\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Extend tests for pipeline status factory\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Gitlab::Ci::Status::Pipeline::Factory do\n subject do\n described_class.new(pipeline)\n end\n\n context 'when pipeline has a core status' do\n HasS... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify that acknowledged means 'not ignored'\n"
},
{
"from": "human",
"value": "module LicenseFinder\n class DecisionApplier\n def initialize(options)\n @decisions = options.fetch(:decisions)\n @packages = options.fetch(:packages)\n end\n\n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Add UTF-8 encoding to make ruby 1.9 happy\n"
},
{
"from": "human",
"value": "task :contributors do\n contributors = `git log --pretty=short --no-merges | git shortlog -ne | egrep -ve '^ +' | egrep -ve '^$'`\n puts contributors.split(\"\\n\").length\nend\n\ntask :c... | ruby | chosen |
[
{
"from": "system",
"value": "Make explicit chunks store classes namespace in factroy\n"
},
{
"from": "human",
"value": "FactoryBot.define do\n factory :ci_build_trace_chunk, class: Ci::BuildTraceChunk do\n build factory: :ci_build\n chunk_index 0\n data_store :redis\n\n trait :redi... | ruby | chosen |
[
{
"from": "system",
"value": "Add route for controller spec.\n"
},
{
"from": "human",
"value": "Dummy::Application.routes.draw do\n api vendor_string: \"myvendor\" do\n version 1 do\n cache as: 'v1' do\n resources :bar\n end\n end\n\n version 2 do\n cache as: 'v2'... | ruby | chosen |
[
{
"from": "system",
"value": "Update Transporter Desktop to version 3.1.28\n\nThis commit updates the version and sha256 stanzas\n"
},
{
"from": "human",
"value": "cask :v1 => 'transporter-desktop' do\n version '3.1.21_18654'\n sha256 '43ac53ed8c35bde7296b183f8aa3f0f12b91a986c80e8c7e0f6acdcbc5... | ruby | chosen |
[
{
"from": "system",
"value": "Update Plex Home Theater to 1.4.1.469-47a90f01\n"
},
{
"from": "human",
"value": "cask :v1 => 'plex-home-theater' do\n version '1.3.5.431-7966a4df'\n\n if Hardware::CPU.is_32_bit?\n sha256 'c7ee467979ae0401db98cb7e8309a1bf81380c224d5c1bf58437f792ac95a0dd'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Xscope3: Update license, use version in URL"
},
{
"from": "human",
"value": "cask :v1 => 'xscope3' do\n version '3.6.3'\n sha256 '1e5e46f50ecd81e35cf819fbd04b2c9726beddc24e86cdd2f6ae5dc60aeb4e4b'\n\n url 'https://iconfactory.com/assets/software/xscope/xScope-3.6.... | ruby | chosen |
[
{
"from": "system",
"value": "Correct handling of `:` in lane parameter.\n"
},
{
"from": "human",
"value": "module Fastlane\n class CommandLineHandler\n # This method handles command line inputs and properly transforms them to a usable format\n # @param [Array] args An array of all argume... | ruby | chosen |
[
{
"from": "human",
"value": "Move rubocop checks as spec\n"
},
{
"from": "gpt",
"value": "describe Spaceship do\n it \"#should pass rubocop code style checks\" do\n puts \"Running rubocop...\"\n `rubocop -o /tmp/spaceship_rubocop`\n output = File.read(\"/tmp/spaceship_rubocop\")\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Check the kind of the object\n"
},
{
"from": "human",
"value": "require 'forwardable'\nrequire 'pogoplug/hash_initializer'\n\nmodule PogoPlug\n class FileListing\n include HashInitializer\n include Enumerable\n extend Forwardable\n\n def_delegators :fil... | ruby | chosen |
[
{
"from": "system",
"value": "Fix HousingForm method memoization for different applicant parameters\n\nThe #field_results, #unknown_fields, and #known_fields methods will now\nchange their return values when called a second time with a different\napplicant argument.\n"
},
{
"from": "human",
"val... | ruby | chosen |
[
{
"from": "system",
"value": "Update Jekyll runtime dependency to allow 3.x\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib/', __FILE__)\n$:.unshift lib unless $:.include?(lib)\n\nrequire 'jekyll/responsive_image/version'\n\nGem::Specification.new do ... | ruby | chosen |
[
{
"from": "system",
"value": "[Brightbox] Fix test issue with reusing servers\n\nTo save time, we hoped to use an existing server to read the interface\nJSON and it did a naive selection of the first server.\n\nServer's that are deleted have two relevant characteristics. 1) They no\nlonger have interfaces a... | ruby | chosen |
[
{
"from": "system",
"value": "Rollback changes made to CreateProjectMirrorData\n"
},
{
"from": "human",
"value": "class CreateProjectMirrorData < ActiveRecord::Migration\n include Gitlab::Database::MigrationHelpers\n\n DOWNTIME = false\n\n def up\n if table_exists?(:project_mirror_data)\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add Prezi for Mac v5.1.1\n"
},
{
"from": "gpt",
"value": "class Prezi < Cask\n url 'https://prezi-a.akamaihd.net/desktop/Prezi5.1.1.dmg'\n homepage 'http://www.prezi.com/'\n version '5.1.1'\n sha256 'cd77adf228b237f24407a4a7c8e57463b27ad98d9885451e42cc7416484cce5... | ruby | chosen |
[
{
"from": "system",
"value": "Bring tzinfo dep same as AS\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nlib = File.expand_path('../lib/', __FILE__)\n$:.unshift lib unless $:.include?(lib)\n\nrequire \"mongoid/version\"\n\nGem::Specification.new do |s|\n s.name = \"mongoid\"\n s.... | ruby | chosen |
[
{
"from": "human",
"value": "Add Padbury Clock Latest (screensaver).\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'padbury-clock' do\n version :latest\n sha256 :no_check\n\n url 'http://padbury.me/clock/Padbury-Clock.zip'\n name 'Padbury Clock'\n homepage 'http://padbury.me/clock/'\n licen... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the v2 message on startup, there's been enough time\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nunless ENV['DISCORDRB_V2_MESSAGE']\n puts \"You're using version 2 of discordrb which has some breaking changes!\"\n puts \"Don't worry i... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify pipeline source policy pattern matching\n"
},
{
"from": "human",
"value": "module Gitlab\n module Ci\n module Build\n module Policy\n class Refs < Policy::Specification\n def initialize(refs)\n @patterns = Array(refs)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use @ in comment for YARD docs\n"
},
{
"from": "human",
"value": "require 'fog'\nmodule Fog\n module Storage\n class Rackspace\n class Real\n\n # Extract Archive\n #\n # See http://docs.rackspace.com/files/api/v1/cf-devguide/content/Ext... | ruby | chosen |
[
{
"from": "system",
"value": "Replace missing with_tty guard (needs to be pushed to rubyspec).\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../fixtures/classes'\n\ndescribe :io_tty, :shared => true do\n # Yeah, this will probably break.\n it \"returns true if this stre... | ruby | chosen |
[
{
"from": "system",
"value": "Mark broken spec as pending for Ruby < 1.9\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Virtus, 'instance level attributes' do\n subject do\n subject = Object.new\n subject.singleton_class.send(:include, Virtus)\n subject\n end\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage to use SSL in Slack Cask\n\nThe HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\n"
},
{
"from": "human",
"value": "cask :v1 => 'slack' do\n version '1.0.5'\n sha256 '2344... | ruby | chosen |
[
{
"from": "human",
"value": "Add Cask for Bitcasa version 1.4.1324\n"
},
{
"from": "gpt",
"value": "class Bitcasa < Cask\n url 'https://d1kbf262vwnlmm.cloudfront.net/Bitcasa_1.4.1324.dmg'\n homepage 'https://www.bitcasa.com'\n version '1.4.1324'\n sha1 '0d48dfac8e0413c1c0d04be756298d4924bd84... | ruby | chosen |
[
{
"from": "system",
"value": "Update MakeMKV to version 1.8.9"
},
{
"from": "human",
"value": "class Makemkv < Cask\n url 'http://www.makemkv.com/download/makemkv_v1.8.8_osx.dmg'\n homepage 'http://www.makemkv.com/'\n version '1.8.8'\n sha256 '3781cc41523417bd87d44177ed5d3943d8e37f18d8c398f9... | ruby | chosen |
[
{
"from": "system",
"value": "Allow for no user agent (in tests)\n"
},
{
"from": "human",
"value": "class Exercism\n Gem = Struct.new(:major, :minor, :patch)\nend\n\nmodule Sinatra\n module GemHelper\n def gem_version(user_agent)\n match = user_agent.match(/v(\\d+)\\.(\\d+)\\.(\\d+)$/)... | ruby | chosen |
[
{
"from": "system",
"value": "Use upstream gemspec file matcher"
},
{
"from": "human",
"value": "# coding: utf-8\n\nGem::Specification.new do |spec|\n spec.name = \"minima\"\n spec.version = \"1.0.1\"\n spec.authors = [\"Joel Glovier\"]\n spec.email = [\"jglovier... | ruby | chosen |
[
{
"from": "human",
"value": "Add `Nothing To Hide` (game).\n"
},
{
"from": "gpt",
"value": "class NothingToHide < Cask\n url 'http://nothingtohide.s3.amazonaws.com/pc/Nothing_To_Hide_MAC.zip'\n homepage 'https://back.nothingtohide.cc/'\n version 'latest'\n no_checksum\n link 'Nothing To Hid... | ruby | chosen |
[
{
"from": "system",
"value": "Add safe navigation for users without callout state\n"
},
{
"from": "human",
"value": "module CalloutsHelper\n def show_gke_cluster_integration_callout?(kube_feature_name, project)\n current_user && !user_dismissed?(kube_feature_name) && project.team.master?(cur... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade AirServer to version 5.3.2\n"
},
{
"from": "human",
"value": "cask :v1 => 'airserver' do\n version '5.2'\n sha256 '021cf849f121df9f6b91d181b917240a76b6f129ef4676d0b491d0bc54e4b06b'\n\n url \"http://dl.airserver.com/mac/AirServer-#{version}.dmg\"\n name '... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage and appcast to use SSL in iExplorer Cask\n\nThe HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\n"
},
{
"from": "human",
"value": "cask :v1 => 'iexplorer' do\n version '3.... | ruby | chosen |
[
{
"from": "human",
"value": "Add Kext Drop 1.1 Cask\n"
},
{
"from": "gpt",
"value": "class KextDrop < Cask\n url 'http://www.groths.org/kextdrop/KextDrop.dmg'\n homepage 'http://www.groths.org/software/kextdrop/'\n version 'latest'\n no_checksum\n link 'Kext Drop.app'\nend\n"
}
] | ruby | chosen |
[
{
"from": "system",
"value": "Drop the index only for postgresql, because\n\nmysql cannot simply drop the index without dropping the corresponding\nforeign key, and we certainly don't want to drop the foreign key\nhere.\n"
},
{
"from": "human",
"value": "class AddIndexToProjectAuthorizations < A... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor common call into private method\n"
},
{
"from": "human",
"value": "class Service::Talker < Service\n string :url, :token\n boolean :digest\n\n def receive_push\n repository = payload['repository']['name']\n branch = branch_name\n commits ... | ruby | chosen |
[
{
"from": "system",
"value": "Move MAC address UI output into the customize block\n"
},
{
"from": "human",
"value": "module Vagrant\n class Action\n module VM\n class MatchMACAddress\n def initialize(app, env)\n @app = app\n end\n\n def call(env)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "JariBakken: Add some docs to Chrome::Profile\n\nr13146\n"
},
{
"from": "human",
"value": "module Selenium\n module WebDriver\n module Chrome\n\n #\n # @private\n #\n\n class Profile\n include ProfileHelper\n\n def initialize(mod... | ruby | chosen |
[
{
"from": "system",
"value": "JariBakken: Make sure we kill the browser if the initial connection fails.\n\nr17860\n"
},
{
"from": "human",
"value": "module Selenium\n module WebDriver\n module Firefox\n\n # @api private\n class Bridge < Remote::Bridge\n\n def initialize(opt... | ruby | chosen |
[
{
"from": "system",
"value": "Remove dropping tables (was not needed after all)\n"
},
{
"from": "human",
"value": "RSpec.shared_context 'users and tasks' do\n subject(:rom) { setup.finalize }\n\n let(:setup) { ROM.setup(sqlite: SEQUEL_TEST_DB_URI) }\n let(:conn) { setup.sqlite.connection }\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Allow beta versions to be flagged into Rails 5\n"
},
{
"from": "human",
"value": "require 'securerandom'\nrequire \"language_pack\"\nrequire \"language_pack/rails42\"\n\nclass LanguagePack::Rails5 < LanguagePack::Rails42\n # @return [Boolean] true if it's a Rails 5... | ruby | chosen |
[
{
"from": "system",
"value": "Allow a longer timeout on JRuby."
},
{
"from": "human",
"value": "require 'aruba/cucumber'\n\nBefore do\n @aruba_timeout_seconds = 15\nend\n\nAruba.configure do |config|\n config.before_cmd do |cmd|\n set_env('JRUBY_OPTS', \"-X-C #{ENV['JRUBY_OPTS']}\") # disab... | ruby | chosen |
[
{
"from": "system",
"value": "Create an UnknownEvent class for unknown dispatches\n(as opposed to all of them)\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'discordrb/events/generic'\n\n# Event classes and handlers\nmodule Discordrb::Events\n # Event raised when a... | ruby | chosen |
[
{
"from": "system",
"value": "Fix WebHook and special symbols in credentials\n\nWhen using web hook with credentials secured web resource, one needs to\nput the credentials in the hook URL.\n\nIf the credentials contain special symbols (e.g. @ or #), it should be\nURL-quoted (e.g. %40 instead of @).\n\nBut ... | ruby | chosen |
[
{
"from": "system",
"value": "Update TeXmacs to use SHA256"
},
{
"from": "human",
"value": "class Texmacs < Cask\n url 'http://www.texmacs.org/Download/ftp/tmftp/macos/TeXmacs-1.99.1.dmg'\n homepage 'http://www.texmacs.org/'\n version '1.99.1'\n sha1 '418027afaf98b3a156c6076467efe6d57805a94c... | ruby | chosen |
[
{
"from": "system",
"value": "Rename private method `where` to avoid conflicts\n\nA public `where` method will be added to Yt::Actions::List in the\nnext commit, so we can use another less important name for a private method.\n"
},
{
"from": "human",
"value": "require 'yt/actions/list'\nrequire ... | ruby | chosen |
[
{
"from": "system",
"value": "Add temporary partial index to speed up the migration\n\nCloses #32469\n"
},
{
"from": "human",
"value": "class UpateRetriedForCiBuild < ActiveRecord::Migration\n include Gitlab::Database::MigrationHelpers\n\n DOWNTIME = false\n \n disable_ddl_transaction!\n\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add iPhoto Library Manager.app version 4.1.7\n"
},
{
"from": "gpt",
"value": "class IphotoLibraryManager < Cask\n version '4.1.7'\n sha256 'b56414de3c6e08f9c40ee1fd688ea9f3393fcb6e5d4f83685dde7c45fec2533f'\n\n url \"https://s3.amazonaws.com/fatcatsoftware/iplm/iPh... | ruby | chosen |
[
{
"from": "system",
"value": "Add the block storage service to the binary.\n"
},
{
"from": "human",
"value": "class HP < Fog::Bin\n class << self\n\n def class_for(key)\n case key\n when :cdn\n Fog::CDN::HP\n when :compute\n Fog::Compute::HP\n when :storage\... | ruby | chosen |
[
{
"from": "system",
"value": "Add minitest to development dependencies (i.e., for ruby < 2.0.0)\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'rake/xcodebuild/version'\n\nGem::Speci... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for non-String eval result.\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\n\n# Copyright 2012 Twitter, Inc\n# http://www.apache.org/licenses/LICENSE-2.0\n\nmodule TwitterCldr\n module Formatters\n class Base\n attr_reader :tokenizer\n\n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Append frab 'b' to the confirmation token, since base64 padding confuses\nURL recognition in email clients.\n"
},
{
"from": "human",
"value": "require \"securerandom\"\n\nmodule UniqueToken\n\n def generate_token_for(attribute)\n loop do\n token = SecureRan... | ruby | chosen |
[
{
"from": "human",
"value": "Add JavaFX Scene Builder 2.0-b20\n"
},
{
"from": "gpt",
"value": "class JavafxSceneBuilder < Cask\n version '2.0-b20'\n sha256 '9551326dd98f85204434d293da445eb5f2cf862c785f3dbe420cb4643221d96b'\n\n url 'http://download.oracle.com/otn-pub/java/javafx_scenebuilder/2... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Chef 11 compat code from the chef_gem installs\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "#\n# Author:: Seth Chisamore (<schisamo@chef.io>)\n# Cookbook Name:: windows\n# Recipe:: default\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix incorrectly named function in images generator\n"
},
{
"from": "human",
"value": "require 'refinery/generators'\n\nmodule Refinery\n class ImagesGenerator < ::Refinery::Generators::EngineInstaller\n\n source_root File.expand_path('../../../', __FILE__)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add some more iris sepcific config parameters\n"
},
{
"from": "human",
"value": "module Domgen\r\n module Iris\r\n class IrisElement < BaseConfigElement\r\n attr_reader :parent\r\n\r\n def initialize(parent, options = {}, &block)\r\n @parent = p... | ruby | chosen |
[
{
"from": "system",
"value": "Update gem summary / description"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"license_finder\"\n s.version = File.read \"VERSION\"\n s.platform = Gem::Platform::RUBY\n s.authors = [\"Jacob Maine\", \"Matthew Kane ... | ruby | chosen |
[
{
"from": "system",
"value": "Enable rake tasks to select a specific repository\n"
},
{
"from": "human",
"value": "# This code is free software; you can redistribute it and/or modify it under\n# the terms of the new BSD License.\n#\n# Copyright (c) 2012, Sebastian Staudt\n\nif defined? ::NewReli... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for message_process_error class\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\ndescribe OmfRc::MessageProcessError do\n it \"must be able to initialised\" do\n mpe = OmfRc::MessageProcessError.new('test_context_id', 'inform_to_address', 'error... | ruby | chosen |
[
{
"from": "system",
"value": "GH-2088: Use proper regex capture group to detect OS version of RHEL family\n"
},
{
"from": "human",
"value": "require \"pathname\"\n\nrequire \"vagrant\"\n\nrequire Vagrant.source_root.join(\"plugins/hosts/linux/host\")\n\nmodule VagrantPlugins\n module HostFedora... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Dropbox Experimental Build to v2.11.31\n"
},
{
"from": "human",
"value": "class DropboxExperimental < Cask\n version '2.11.13'\n sha256 '2d36acd4a53657eca20538587c72df97685de39a9b0226f18797d464a7d84bdf'\n\n url \"https://dl.dropboxusercontent.com/u/17/Dro... | ruby | chosen |
[
{
"from": "system",
"value": "Add an education? method to Organization which is always false for now\n"
},
{
"from": "human",
"value": "require 'gh'\n\nclass Organization < Travis::Model\n has_many :memberships\n has_many :users, :through => :memberships\n has_many :repositories, :as => :owne... | ruby | chosen |
[
{
"from": "human",
"value": "Add new external command: unpack\n\n`brew-unpack` is inspired by the `unpack` command of Haskell's Cabal.\n`brew unpack <formulae ...>` will fetch the source code archives of one or more\nformula and extract them into subfolders of the current working directory. An\nalternate ro... | ruby | chosen |
[
{
"from": "system",
"value": "Replace any absolute paths in output with a relative one.\n"
},
{
"from": "human",
"value": "require \"aruba\""
},
{
"from": "gpt",
"value": "require \"aruba\"\n\nAfterStep do\n @last_stderr.gsub!(/#{Dir.pwd}\\/tmp\\/aruba/, '.') if @last_stderr\n @las... | ruby | chosen |
[
{
"from": "system",
"value": "Add check to only send mails weekly on Friday\n"
},
{
"from": "human",
"value": "require 'projects'\n\ntask :fetch_trending => :environment do\n Projects.fetch_trending\nend\n\ntask :send_weekly_mail => :environment do\n Projects.send_updates\nend\n\ntask :send_te... | ruby | chosen |
[
{
"from": "system",
"value": "feat(): Support methods in bool_column and row\n\n[Closes #16]\n"
},
{
"from": "human",
"value": "module ActiveAdminAddons\n DEFAULT_BOOLEAN_TRUE = '✔'\n DEFAULT_BOOLEAN_FALSE = '✗'\n\n module BoolValues\n class << self\n def bool_value(mode... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing space to comment"
},
{
"from": "human",
"value": "class RegistrationsController < ApplicationController\n def new\n @user = User.new\n end\n\n def create\n @user = User.new(secure_params)\n if @user.save\n log_in(@user)\n UserMailer... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unneeded images_paginator method from images helpers.\n"
},
{
"from": "human",
"value": "module Refinery\n module Admin\n module ImagesHelper\n\n def image_views\n ::Refinery::Setting.find_or_set(:image_views, [:grid, :list])\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use IS FALSE for both pg and mysql; Handle connections\n\nby ourselves so that even if the setting has 1 connection\nwe could still use more connections.\n"
},
{
"from": "human",
"value": "class RemoveInactiveDefaultEmailServices < ActiveRecord::Migration\n include... | ruby | chosen |
[
{
"from": "system",
"value": "Remove feature flag for FindAllRemoteBranches\n\nAcceptance testing done through:\nhttps://gitlab.com/gitlab-org/gitaly/issues/1312\n\nRelatively short AT period, but given its not a hard RPC, nor anything\nfunky is going on, I felt that this was decent enough to remove the\nfe... | ruby | chosen |
[
{
"from": "system",
"value": "Remove :app designation from MacVim link"
},
{
"from": "human",
"value": "class Macvim < Cask\n url 'https://macvim.googlecode.com/files/MacVim-snapshot-66.tbz'\n homepage 'http://code.google.com/p/macvim/'\n version '7.3-66'\n sha1 'b2d28f7a33ac8eb4bbf899252b0d... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Don't rely on Arel master in bug report template [ci skip]\"\n\nThis reverts commit fd6d7835.\n\nWe are back on arel master, see b395265f.\n"
},
{
"from": "human",
"value": "unless File.exist?('Gemfile')\n File.write('Gemfile', <<-GEMFILE)\n source 'htt... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.