conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix race condition in Actor spec\n"
},
{
"from": "human",
"value": "require File.expand_path('../../../spec_helper', __FILE__)\nrequire 'actor'\n\ndescribe \"Actor registration\" do\n it \"stores actors by identifier\" do\n actor = Actor.spawn(Actor.current) do ... | ruby | chosen |
[
{
"from": "system",
"value": "Add secp256k1 library test for mac os\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)\nrequire 'bitcoin'\n\nRSpec.configure do |config|\n config.before(:each) do |example|\n if example.metadata[:network]\n Bitco... | ruby | chosen |
[
{
"from": "human",
"value": "Test to make sure exceptions are subclassable (map to native Error instances)\n"
},
{
"from": "gpt",
"value": "class ExceptionSubclassSpec < Exception\n def nicer_message\n message + \", but don't worry son - you'll learn\"\n end\nend\n\ndescribe \"Exception sub... | ruby | chosen |
[
{
"from": "system",
"value": "Fix \"remember me\" sign in option\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\nrequire 'gitlab/current_settings'\ninclude Gitlab::CurrentSettings\n\n# allow it to fail: it may do so when create_from_defaults is e... | ruby | chosen |
[
{
"from": "system",
"value": "Use default role for new users\n"
},
{
"from": "human",
"value": "module Releaf\n class AdminsController < BaseController\n\n def resource_class\n Releaf::Admin\n end\n\n def fields_to_display\n fields = super - %w[\n authentication_token\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in MenuMeters caveats\n"
},
{
"from": "human",
"value": "class Menumeters < Cask\n url 'http://www.ragingmenace.com/software/download/MenuMeters.dmg'\n homepage 'http://www.ragingmenace.com/software/menumeters/'\n version 'latest'\n no_checksum\n link ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issues related to holding references to autoloaded code\n\nVerdict currently holds references to all experiments in\n`Verdict.respository`. A common use case for Verdict is to subclass\n`Verdict::Experiment` to add your own behaviour. This is problematic\nwhen the subclasse... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude test specs from gemspec\n\nAdditional line still causing specs to be included and the gem failing to install. Removed and tested, gem installs fine after removal."
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Fix specs failed by random order\"\n\nThis reverts commit 5c0335c06925756e12462c2257b31bea506c14ca.\n"
},
{
"from": "human",
"value": "require 'helper'\nrequire 'parser_shared_example'\n\nclass MockDecoder; end\n\ndescribe \"MultiXml\" do\n context \"Parse... | ruby | chosen |
[
{
"from": "system",
"value": "Fix name/doc of regression spec GH-815\n"
},
{
"from": "human",
"value": "describe 'GH-813', site: true, stdio: true do\n before do\n File.write('nanoc.yaml', \"animal: \\\"donkey\\\"\\n\")\n File.write('content/foo.md', '<%= @config.key?(:animal) %>')\n F... | ruby | chosen |
[
{
"from": "system",
"value": "Make APNS::Notification packaging methods private\n"
},
{
"from": "human",
"value": "module APNS\n class Notification\n include ActiveModel::Model\n\n MAX_PAYLOAD_BYTES = 2048\n\n attr_accessor :alert, :badge, :sound, :other, :content_available\n attr_r... | ruby | chosen |
[
{
"from": "system",
"value": "Disable the nagios prereq as well\n\n\nFormer-commit-id: 0075ae7ae27821803bbf9fb86f6e8d49ff4f1bc5 [formerly a6f940ed76bba092a5b088a9a81e761418e71d3b] [formerly 1019dca2ea2841ba6d485c9cb48687e5c785b4a8 [formerly 12dfa568356f5f09e8c39824e94bf6c41b4be08b]]\nFormer-commit-id: c9da5... | ruby | chosen |
[
{
"from": "system",
"value": "Update factory to specify icon file type\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :publisher, class: Citygram::Models::Publisher do\n title { Faker::Lorem.sentence(3) }\n endpoint { Faker::Internet.uri('https') }\n sequence(:city)... | ruby | chosen |
[
{
"from": "system",
"value": "Make it compatible with Ruby 2.0\n"
},
{
"from": "human",
"value": "require \"docomoru/dialogue_methods\"\nrequire \"docomoru/response\"\nrequire \"docomoru/version\"\nrequire \"active_support/core_ext/object/to_query\"\nrequire \"faraday\"\nrequire \"faraday_middle... | ruby | chosen |
[
{
"from": "human",
"value": "Add not spec from rubyspec\n"
},
{
"from": "gpt",
"value": "require File.expand_path('../../spec_helper', __FILE__)\n\ndescribe \"The not keyword\" do\n it \"negates a `true' value\" do\n (not true).should be_false\n (not 'true').should be_false\n end\n\n it... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify implementation of build retry service\n"
},
{
"from": "human",
"value": "module Ci\n class RetryBuildService < ::BaseService\n def execute(build)\n # return unless build.retryable?\n\n self.retry(build).tap do |new_build|\n MergeRequest... | ruby | chosen |
[
{
"from": "system",
"value": "Update pod spec version to 0.1.4\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n git_tag = \"0.1.3\"\n s.name = \"MBContactPicker\"\n s.version = git_tag\n s.summary = \"A contact picker that looks like the one in Apple mail fo... | ruby | chosen |
[
{
"from": "system",
"value": "Allow any version of rails 3.1"
},
{
"from": "human",
"value": "require File.expand_path('../lib/forem/version', __FILE__)\n# Provide a simple gemspec so you can easily use your\n# project in your rails apps through git.\nGem::Specification.new do |s|\n s.name = 'f... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Second Life Viewer.app to 3.7.28.300918, add stanzas\n"
},
{
"from": "human",
"value": "cask :v1 => 'second-life-viewer' do\n version '3.6.13.284995'\n sha256 '8aa1bc39077452c3006390d4a888ca4113c087e8cdc78f5008dc85091015627d'\n\n url \"http://download.clo... | ruby | chosen |
[
{
"from": "system",
"value": "Move logic out of class helper method\n"
},
{
"from": "human",
"value": "class ExtractsMentionsFromMarkdown\n\n attr_reader :mentions\n\n def self.extract(content)\n return [] if content.empty?\n extracter = new(content)\n extracter.extract\n extracter... | ruby | chosen |
[
{
"from": "system",
"value": "Remove nonexistent header search path\n\n`$(SDKROOT)/Developer/Library/Frameworks` does not exist for the OS X SDK"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'Specta'\n s.version = '0.1.8'\n s.license = 'MIT'\n s.summary = 'A light-w... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for earlier versions of Rails.\n"
},
{
"from": "human",
"value": "module PryRails\n Commands = Pry::CommandSet.new do\n create_command \"show-routes\", \"Print out all defined routes in match order, with names.\" do\n def options(opt)\n o... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up one more mailer preview\n\nThis one will still rely on tickets in the database, but I'm only going to enable it on Wiki Education production, and only for admins.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass TicketNotificationMa... | ruby | chosen |
[
{
"from": "system",
"value": "Make CodeError.code a reader again as the inheritance stuff is unneeded\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Discordrb\n # Custom errors raised in various places\n module Errors\n # Raised when authentication data is invali... | ruby | chosen |
[
{
"from": "system",
"value": "Update dep-fetching cb for omnibus-chef-server\n\nChef server omnibus project now lives in omnibus-chef-server, update\ndevelopment dependency fetcher cookbook to match.\n"
},
{
"from": "human",
"value": "repos = {\n 'chef_authn' => 'chef_authn',\n 'chef_certgen' ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix conflicting net-ssh-multi gems error\n"
},
{
"from": "human",
"value": "$:.unshift(File.dirname(__FILE__) + '/lib')\nrequire 'knife-gandi/version'\n\nGem::Specification.new do |s|\n s.name = 'knife-gandi'\n s.version = KnifeGandi::VERSION\n s.platform = Gem::... | ruby | chosen |
[
{
"from": "system",
"value": "Add a comment for future reference\n"
},
{
"from": "human",
"value": "class PostIndexJob < ActiveJob::Base\n queue_as :elasticsearch\n\n def perform(operation, post_id)\n if operation =~ /index|delete/\n self.send(operation, post_id)\n else\n logge... | ruby | chosen |
[
{
"from": "system",
"value": "Add default time zone for specs"
},
{
"from": "human",
"value": "require 'pathname'\nrequire 'rubygems'\nrequire 'bundler'\nrequire 'pry'\nrequire 'active_support/all'\nrequire 'action_view'\n\nroot_path = Pathname(__FILE__).dirname.join('..').expand_path\nlib_path ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rubocop errors in rake tasks\n"
},
{
"from": "human",
"value": "desc 'Runs a quick set of tests (the same as test:quick)'\ntask test: 'test:quick'\n\nnamespace :test do\n desc 'Run all tests except kitchen (which takes a long time)'\n task :quick do\n raise... | ruby | chosen |
[
{
"from": "system",
"value": "Use a lazy getter to fetch the blocks, so it isn't automatically loaded into memory unless required.\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\n\nmodule TwitterCldr\n module Shared\n class UnicodeData\n @@blocks = TwitterCldr.resources.resource_f... | ruby | chosen |
[
{
"from": "human",
"value": "Add Blue Jeans app installer\n\nThe version in the file name is 152, but it actually downloads the\nlatest version (1.6.153 at this writing).\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'blue-jeans-launcher' do\n version '1.5.2'\n sha256 '757edfba7811cbc20fd001bc9... | ruby | chosen |
[
{
"from": "human",
"value": "Add index on lower path to redirect routes\n\nThis will speed up the LIKE query in\nRedirectRoute.matching_path_and_descendants\n"
},
{
"from": "gpt",
"value": "# See http://doc.gitlab.com/ce/development/migration_style_guide.html\n# for more information on how to wr... | ruby | chosen |
[
{
"from": "system",
"value": "Use :catch_changes in acceptance tests\n"
},
{
"from": "human",
"value": "require 'spec_helper_acceptance'\n\ndescribe 'onevm class' do\n describe 'without parameters' do\n it 'should idempotently run' do\n pp = <<-EOS\n class { 'one': }\n EOS\n... | ruby | chosen |
[
{
"from": "system",
"value": "Set min deployment target of OS X to 10.9\n\nSwift only support OS X 10.9+\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Quick\"\n s.version = \"0.5.0\"\n s.summary = \"The Swift (and Objective-C) testing framework.\"\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix dashboard issues atom feed rspec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"User Issues Dashboard\" do\n describe \"GET /issues\" do\n before do\n\n login_as :user\n\n @project1 = Factory :project,\n path: \"proje... | ruby | chosen |
[
{
"from": "system",
"value": "[Downloader] Fix an issue where cache was disabled\n"
},
{
"from": "human",
"value": "class SourceDownloader\n include HashInit\n attr_accessor :spec, :download_location, :overwrite\n\n def download_pod_source_files\n puts \"\\n ----------------------\"\n p... | ruby | chosen |
[
{
"from": "system",
"value": "Fix ruby function args parsing\n\nChange-Id: I3149ce42e2bdfacf30e4feb4300e69b3f33882f6\nCloses-bug: #1268579\n"
},
{
"from": "human",
"value": "module Puppet::Parser::Functions\n newfunction(:nodes_with_roles, :type => :rvalue, :doc => <<-EOS\nReturn a list of node... | ruby | chosen |
[
{
"from": "system",
"value": "Fix url in Chrome-DevTools.app Cask\n"
},
{
"from": "human",
"value": "cask :v1 => 'chrome-devtools' do\n version :latest\n sha256 :no_check\n\n url 'https://github.com/auchenberg/chrome-devtools-app/raw/master/build/Chrome%20DevTools/osx/Chrome%20DevTools.app.zi... | ruby | chosen |
[
{
"from": "system",
"value": "Update to rbvmomi 1.5.1. Much better diagnostics and a bunch of bug fixes\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |s|\n s.name = \"knife-vsphere\"\n s.version = \"0.1.9\"\n s.summary = \"vSphere Support for Knife\... | ruby | chosen |
[
{
"from": "system",
"value": "Add MD003 rule for mixed header styles\n"
},
{
"from": "human",
"value": "rule \"MD001\", \"Header levels should only increment by one level at a time\" do\n check do |doc, lines|\n headers = doc.root.children.map{ |e| e.options if e.type == :header }.compact\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake as dev dependency for Travis\n"
},
{
"from": "human",
"value": "$:.unshift(File.dirname(__FILE__) + '/lib')\nrequire 'chef_fs/version'\n\nGem::Specification.new do |s|\n s.name = \"knife-essentials\"\n s.version = ChefFS::VERSION\n s.license = 'Apache 2.... | ruby | chosen |
[
{
"from": "system",
"value": "Add some documentation on intention of tag rename\n"
},
{
"from": "human",
"value": "# banner in sql generation\ndef banner(title)\n <<SQL\n--\n-- #{title}\n--\nSQL\nend\n\n# clean up string so it can be a sql identifier\ndef s(string)\n string.to_s.gsub('[].:', '... | ruby | chosen |
[
{
"from": "system",
"value": "Remove date from the gemspec\n"
},
{
"from": "human",
"value": "# encoding:utf-8\n\nGem::Specification.new do |gem|\n gem.name = 'sinatra-activerecord'\n gem.version = '0.2.1'\n gem.date = '2009-09-21'\n\n gem.description = \"Extends Sinatr... | ruby | chosen |
[
{
"from": "system",
"value": "Make the view count cookie names shorter\n"
},
{
"from": "human",
"value": "class ViewCounter\n\n def increment(asciicast, storage)\n key = :\"asciicast_#{asciicast.id}_viewed\"\n return if storage[key]\n\n Asciicast.increment_counter(:views_count, asciica... | ruby | chosen |
[
{
"from": "system",
"value": "Update GIMP to v. 2.8.4 and add link\n"
},
{
"from": "human",
"value": "class Gimp < Cask\n url 'ftp://ftp.gimp.org/pub/gimp/v2.8/osx/gimp-2.8.2-dmg-2.dmg'\n homepage 'http://www.gimp.org'\n version '2.8.2'\n sha1 'f9acaf794c7055e9ab3d5699963c684bbaf55f59'\nend\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary private method extraction because it breaks link_to(:back) in Rails 3\n"
},
{
"from": "human",
"value": "module Turbolinks\n # Corrects the behavior of url_for (and link_to, which uses url_for) with the :back \n # option by using the X-XHR-Refer... | ruby | chosen |
[
{
"from": "system",
"value": "Downgrade backports until rbx issues are fixed"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nrequire File.expand_path('../lib/virtus/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = \"virtus\"\n gem.version = Virtus::V... | ruby | chosen |
[
{
"from": "system",
"value": "Fix dashboard in recent versions of Refinery CMS that expect proper namespacing.\n"
},
{
"from": "human",
"value": "require 'refinerycms-inquiries'\n\nmodule Refinery\n module Inquiries\n class Engine < Rails::Engine\n include Refinery::Engine\n\n isol... | ruby | chosen |
[
{
"from": "system",
"value": "Fix currently referenced invoice being included twice in suggestion list.\n"
},
{
"from": "human",
"value": "module InvoiceHelper\n def invoice_states_as_collection\n states = Invoice::STATES\n states.inject({}) do |result, state|\n result[t(state, :scop... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Use where interval instead of using SQL\"\n\nThis reverts commit d364ae94a1d0c5d5808640edf369744d08ca4775.\n"
},
{
"from": "human",
"value": "module Typus\n module Orm\n module ActiveRecord\n module Search\n\n include Typus::Orm::Base::Searc... | ruby | chosen |
[
{
"from": "system",
"value": "Add link field to BootXChanger Cask\n"
},
{
"from": "human",
"value": "class BootXChanger < Cask\n url 'http://namedfork.net/_media/bootxchanger_2.0.dmg'\n homepage 'http://namedfork.net/bootxchanger'\n version '2.0'\n sha1 'bc8c80913ba09c1fc2f354b954b321f261bb2... | ruby | chosen |
[
{
"from": "human",
"value": "Automate the basic API tests in a QA scenario\n\nSigned-off-by: Rémy Coutable <4ea0184b9df19e0786dd00b28e6daa4d26baeb3e@rymai.me>\n"
},
{
"from": "gpt",
"value": "require 'securerandom'\n\nmodule QA\n feature 'API basics', :core do\n before(:context) do\n @a... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec to include sass-rails without specifying version"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'bootstrap-editable-rails/version... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec version to 1.3.1\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"PullToRefresher\"\n s.version = \"1.3\"\n s.summary = \"This component implements pure pull-to-refresh logic and you can use it for developing... | ruby | chosen |
[
{
"from": "system",
"value": "Update Clipy to version 1.0.3.\n"
},
{
"from": "human",
"value": "cask :v1 => 'clipy' do\n version '1.0.2'\n sha256 'e8f09e7ad766f71e6f780c8a05f5cbdf5c71465c4586263f8b73a8e9ae632d93'\n\n url \"https://github.com/Clipy/Clipy/releases/download/#{version}/Clipy_#{ve... | ruby | chosen |
[
{
"from": "system",
"value": "f.lux: Use bool instead of int for defaults write\n"
},
{
"from": "human",
"value": "class FLux < Cask\n url 'https://justgetflux.com/mac/Flux.zip'\n homepage 'http://justgetflux.com'\n version 'latest'\n no_checksum\n link 'Flux.app'\n\n after_install do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix CocoaDeveloper Quicklook Plugin v1.3.0\n"
},
{
"from": "human",
"value": "class Ipaql < Cask\n url 'http://ipaql.com/site/assets/files/1006/ipaql_1-3-0.zip'\n homepage 'http://ipaql.com/'\n version '1.3.0'\n sha1 'a870da34839b42945cf2334c7a27c2574d41ffcd'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up formatting in Windows recipe\n\n\nFormer-commit-id: 7ae3cf6b31065c81d1a5003126ae6d05362eb119"
},
{
"from": "human",
"value": "#Make sure that this recipe only runs on Windows systems\nif platform?(\"windows\") \n\n\t#This recipe needs providers included in ... | ruby | chosen |
[
{
"from": "system",
"value": "Use new class method to look for users via Slack UID\n"
},
{
"from": "human",
"value": "module Api\n module V1\n class InvitationsController < ApplicationController\n skip_before_action :verify_authenticity_token\n respond_to :json\n\n # devise au... | ruby | chosen |
[
{
"from": "human",
"value": "Add networking vm net up/down functionality\n"
},
{
"from": "gpt",
"value": "#\n# Author:: Raducu Deaconu (<rhadoo_io@yahoo.com>)\n# License:: Apache License, Version 2.0\n#\nrequire 'chef/knife'\nrequire 'chef/knife/base_vsphere_command'\n# Switch VM networking stat... | ruby | chosen |
[
{
"from": "human",
"value": "Add Terraformer convex hull example\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\nrequire 'benchmark/bigo'\nrequire 'terraformer'\n\nreport = Benchmark.bigo do |x|\n\n LON = -122.6764\n LAT = 45.5165\n\n # generates a line string via a random walk\n ran... | ruby | chosen |
[
{
"from": "system",
"value": "Update rspec requirement from ~> 3.7.0 to ~> 3.8.0\n\nUpdates the requirements on [rspec](https://github.com/rspec/rspec) to permit the latest version.\n- [Release notes](https://github.com/rspec/rspec/releases)\n- [Commits](https://github.com/rspec/rspec/commits/v3.8.0)\n\nSig... | ruby | chosen |
[
{
"from": "system",
"value": "Correct namespace in add icon to taxons migration\n"
},
{
"from": "human",
"value": "class AddIconToTaxons < ActiveRecord::Migration\n def self.up\n # skip this migration if the attribute already exists because of advanced taxon extension\n return if Ta... | ruby | chosen |
[
{
"from": "system",
"value": "Use release_path instead of current_path\n\nIf foreman was not installed in the last release (current_path) a new\nrelease will fail to export the config.\n"
},
{
"from": "human",
"value": "Capistrano::Configuration.instance(:must_exist).load do |configuration|\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Set the default InvalidAuthenticationError message to the \"User login failed\" message\n"
},
{
"from": "human",
"value": "module Discordrb\n # Custom errors raised in various places\n module Errors\n # Raised when authentication data is invalid or incorrect.\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix array for multi repo\n\n\nFormer-commit-id: 9e0e69d75da7879d3a89491b830b6372fca37a1a [formerly 4886a5cd2adc8f24a254a932790afae15ad62b23] [formerly 29e69f8256d19ade969c6934ee6f1e288c929553 [formerly 3b4b0a3b3fa0439fc1a031322e2bda365004fdd1]]\nFormer-commit-id: 4fc746a578ed53... | ruby | chosen |
[
{
"from": "system",
"value": "Update swift version in podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'Reqres'\n s.version = '3.1.0'\n s.summary = 'Simple network activity logger'\n s.description = <<-DESC\nLogs every request app ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove posibility to update comment\n"
},
{
"from": "human",
"value": "class CommentsController < ApplicationController\n respond_to :json\n\n before_filter :ensure_authenticated!, :only => [:create, :update, :destroy]\n before_filter :load_asciicast, :only => [:... | ruby | chosen |
[
{
"from": "human",
"value": "Add non ec engine test script\n"
},
{
"from": "gpt",
"value": "require 'omf_common'\n\n# Use OmfCommon.eventloop to access eventloop instance, by default it is Eventmachine\n# Use OmfCommon.comm to access communicator.\n\ndef create_engine(garage)\n garage.create(:e... | ruby | chosen |
[
{
"from": "human",
"value": "Add another simple example region test that fails.\n"
},
{
"from": "gpt",
"value": "require 'phoney/test_helper'\n\nclass NIRegionTest < MiniTest::Unit::TestCase\n def setup\n PhoneNumber.region = \"ni\"\n end\n \n def test_international_dialing_with_trunk_pre... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade IntelliJ IDEA 15 EAP.app to 143.747.6"
},
{
"from": "human",
"value": "cask :v1 => 'intellij-idea-eap' do\n version '143.380.20'\n sha256 '4fbb3c05ada2605d0f1bc5d1f530b6e5952961d09efd58add09dc71c66767c4d'\n\n url \"https://download.jetbrains.com/idea/idea... | ruby | chosen |
[
{
"from": "system",
"value": "Add high line and json gems used in the EC2 provisioning script\n\n\nFormer-commit-id: 620c5875a5ad7ea233e265ead3b990be9a0b3099 [formerly 42b137d3e69ee81042eb075e48c6f3ca485dffd0] [formerly cd61a8c230a1dd93e61f52347a83fa21ce079fd7 [formerly 27d527ede40e1fa84905d0ab11dd2f6feee08... | ruby | chosen |
[
{
"from": "system",
"value": "Set uWSGI to listen on socket by default\n\nIf you set `web_server` to anything but `\"apache\"`, the\ndefault settings broke and rose a\n\n```\nChef::Log.error!(\"uwsgi cannot bind to ports less than 1024. Please set \\\"node[graphite][listen_port]\\\" to an appropriate value\... | ruby | chosen |
[
{
"from": "system",
"value": "Allow lax includes to be turned on by default.\n"
},
{
"from": "human",
"value": "module ActiveRecordLaxIncludes\n module Preloader\n def self.included(base)\n base.class_eval do\n alias_method :records_by_reflection_default, :records_by_reflection\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add USAGE banner to show-routes.\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\n\nmodule PryRails\n class Railtie < Rails::Railtie\n console do\n if Rails::VERSION::MAJOR == 3\n Rails::Console::IRB = Pry\n\n unless defined? Pry::ExtendC... | ruby | chosen |
[
{
"from": "system",
"value": "Fix use of deprecated method\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__)\n\n# Has to be the first file required so that all other files show coverage information\nrequire 'simplecov'\n\n# Standard Library\nrequire... | ruby | chosen |
[
{
"from": "human",
"value": "Add plugin to use the ipaddr_extensions gem (if present) to give information about the scope of the ip addresses (link local, global unicast, etc).\n"
},
{
"from": "gpt",
"value": "#\n# Author:: James Harton (<james@sociable.co.nz>)\n# Copyright:: Copyright (c) 2010 ... | ruby | chosen |
[
{
"from": "system",
"value": "Add some specs for email_subject_request.\n\nWe're about to move this into the theme.\n"
},
{
"from": "human",
"value": "# If defined, ALAVETELI_TEST_THEME will be loaded in config/initializers/theme_loader\nALAVETELI_TEST_THEME = 'whatdotheyknow-theme'\nrequire Fil... | ruby | chosen |
[
{
"from": "system",
"value": "Update seed file of test apps\n"
},
{
"from": "human",
"value": "# coding: utf-8\n# This file is seed file for test data on development environment.\n\nActivityNotification::Notification.delete_all\nComment.delete_all\nArticle.delete_all\nAdmin.delete_all\nUser.dele... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor Fibonacci procedure to not use $- variable\n"
},
{
"from": "human",
"value": "$_ = $$ / $$ # a = 1\n@_ = $_ # b = 1\n$. = $_ + $_ + $_ # 3 for 10\n$. *= $.; $. += $_ # 10 for newline\n\n$- = -> {\n $> << $_ << ('' << $.) # Output a.\n $_ += @_ # Ad... | ruby | chosen |
[
{
"from": "system",
"value": "Return user from id card parser method\n"
},
{
"from": "human",
"value": "class RegistrantUser < User\n attr_accessor :idc_data\n\n def ability\n @ability ||= Ability.new(self)\n end\n delegate :can?, :cannot?, to: :ability\n\n def to_s\n username\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Add to_a, to_s and map methods for RealtyMarketing model\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule JustimmoClient::V1\n class RealtyMarketing < JustimmoBase\n # @!group Attributes\n\n # @!macro [attach] attribute\n # @ret... | ruby | chosen |
[
{
"from": "human",
"value": "[WIP] Add PDP to verify job service message\n"
},
{
"from": "gpt",
"value": "require 'omf_common/auth'\n\nmodule OmfCommon::Auth::PDP\n # Authorise job service (experiment controller) messages\n class JobService\n def initialize(opts = {})\n debug \"Authori... | ruby | chosen |
[
{
"from": "system",
"value": "Add a reader for a ReactionEvent's emoji\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 reactio... | ruby | chosen |
[
{
"from": "system",
"value": "Use pluck instead of map\n"
},
{
"from": "human",
"value": "class Api::V1::VersionsController < Api::BaseController\n before_action :find_rubygem, only: :show\n\n def show\n return unless stale?(@rubygem)\n\n if @rubygem.public_versions.count.nonzero?\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix include path for gemspec\n\navoid duplicate VERSION definition\n"
},
{
"from": "human",
"value": "require './lib/rugged/version'\n\nGem::Specification.new do |s|\n s.name = \"rugged\"\n s.version = Rugged::Version\n s.date ... | ruby | chosen |
[
{
"from": "system",
"value": "Add scheduling info to events JSON view.\n"
},
{
"from": "human",
"value": "json.conference_events do\n json.version @conference.schedule_version if @conference.schedule_version.present?\n json.events @events do |event|\n json.id event.id\n json.title event.... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests to user spec"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe User do\n let(:user) { FactoryGirl.build(:user) }\n let(:authentication) { FactoryGirl.build(:authentication) }\n\n describe \"#create\" do\n it \"should require password... | ruby | chosen |
[
{
"from": "system",
"value": "Use `let` in Profiles::NotificationsController spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Profiles::NotificationsController do\n describe 'GET show' do\n it 'renders' do\n user = create_user\n sign_in(user)\n\n get :... | ruby | chosen |
[
{
"from": "system",
"value": "Update expected SHA1 for release 1.0.8"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Ttygif < Formula\n homepage 'https://github.com/icholy/ttygif'\n url 'https://github.com/icholy/ttygif/archive/1.0.8.zip'\n sha1 'f8d0a56af11d3ae8e2d5e64a4f6aceccb8... | ruby | chosen |
[
{
"from": "system",
"value": "Expire cached user IDs that can see the performance after 5 minutes\n\nIf we don't expire the cached user IDs, the list of IDs would become\noutdated when a new member is added, or when a member ios removed from\nthe allowed group.\n\nSigned-off-by: Rémy Coutable <4ea0184b9df19... | ruby | chosen |
[
{
"from": "system",
"value": "Set FileSystem root paths to /\n"
},
{
"from": "human",
"value": "require 'chef_fs/path_utils'\n\nmodule ChefFS\n module FileSystem\n class BaseFSObject\n def initialize(name, parent)\n @name = name\n @parent = parent\n if parent\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Clone Bitbucket repositories over HTTPS\n"
},
{
"from": "human",
"value": "module Gitlab\n module BitbucketImport\n class ProjectCreator\n attr_reader :repo, :namespace, :current_user, :session_data\n\n def initialize(repo, namespace, current_user, ses... | ruby | chosen |
[
{
"from": "system",
"value": "Remove reference to \"open\" command\n\nCloses #40706.\n"
},
{
"from": "human",
"value": "HOMEBREW_HELP = <<-EOS\nExample usage:\n brew [info | home | options ] [FORMULA...]\n brew install FORMULA...\n brew uninstall FORMULA...\n brew search [foo]\n brew list [... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Spree dependency to 1.1.x in gemspec\n\nMerges #30\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'spree_related_products'\n s.version = '3.2'\n s.summary = 'Allows multiple ty... | ruby | chosen |
[
{
"from": "system",
"value": "Change Fusionable dimensions to support portrait orientation\n"
},
{
"from": "human",
"value": "module Plugins\n module Fusionable\n def to_fusion\n { 'description' => description, \n 'geometry' => point.to_kml,\n 'name' ... | ruby | chosen |
[
{
"from": "system",
"value": "Add the observation descriptions required for this display\n\nNeed to create a subset due to screen formatting issues\n"
},
{
"from": "human",
"value": "require_dependency \"renalware/pathology\"\n\nmodule Renalware\n module Pathology\n class ObservationsControl... | ruby | chosen |
[
{
"from": "system",
"value": "Tidy up the CSV importer.\n"
},
{
"from": "human",
"value": "require \"csv\"\n\nmodule JekyllImport\n module Importers\n class CSV < Importer\n def self.specify_options(c)\n c.option 'file', '--file NAME', 'The CSV file to import'\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix broken URL to homepage in case the user is not signed in\n"
},
{
"from": "human",
"value": "class MembersController < ApplicationController\n before_action :is_admin\n before_action :set_user, only: [:show]\n # devise authentication required to access invitat... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec to include License, Changelog and Readme\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)\n\nrequire 'semian/version'\nrequire 'semian/platform'\n\nGem::Specification.new do |s|\n s.name = 'semian'\n s.versi... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.