conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Upgrade Patroni to version 2.0.2\n\nChangelog: changed\n"
},
{
"from": "human",
"value": "#\n# Copyright:: Copyright (c) 2020 GitLab Inc.\n# License:: Apache License, Version 2.0\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not ... | ruby | chosen |
[
{
"from": "system",
"value": "Provision failed notice and disable provision notices if plugin has been disabled\n"
},
{
"from": "human",
"value": "module Vagrant\n module Notify\n module Action\n class NotifyProvisioningStatus\n def initialize(app, env)\n @app = app\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add basic tests for password reset\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\nrequire 'support/web_mocking'\n\nclass PasswordResetTest < ActionDispatch::IntegrationTest\n include WebMocking\n\n before { @user = create(:user, email: 'nolotiro@example.co... | ruby | chosen |
[
{
"from": "system",
"value": "Remove bug that caused infinite recursion\n"
},
{
"from": "human",
"value": "require 'facets/hash/revalue'\nrequire 'facets/hash/symbolize_keys'\n\nmodule ConceptQL\n class Database\n attr :db, :opts\n\n def initialize(db, opts={})\n @db = db\n db_t... | ruby | chosen |
[
{
"from": "system",
"value": "Fix behavior when reloading code\n\nCloses #186\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'rails/railtie'\n\nmodule Devise\n module JWT\n # Pluck to rails\n class Railtie < Rails::Railtie\n initializer 'devise-jwt-middle... | ruby | chosen |
[
{
"from": "system",
"value": "Set gem version to 0.1\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = 'motion-flow'\n spec.version = '0.2'\n spec.summary = 'Cross-platform app framework for RubyMotion'\n spec.description = \"motion-flow allows ... | ruby | chosen |
[
{
"from": "human",
"value": "Add Willamette Valley Classics Tour competition\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nmodule Competitions\n module WillametteValleyClassicsTour\n class Overall < Competitions::Overall\n def self.parent_event_name\n \"Willam... | ruby | chosen |
[
{
"from": "system",
"value": "Increase compatability on rubygem version\n"
},
{
"from": "human",
"value": "# encouding: utf -8\n$:.push File.expand_path(\"../lib\", __FILE__)\n\nGem::Specification.new do |s|\n ## Basic Information\n #\n s.name = 'oare'\n s.version = '0.1.12'\n s.platfo... | ruby | chosen |
[
{
"from": "system",
"value": "Use grep instead of select.\n\nhttp://aaronlasseigne.com/2015/04/01/know-ruby-enumerable-grep/\n"
},
{
"from": "human",
"value": "require \"image_size\"\n\nmodule Goggles\n class Comparison\n attr_reader :directory, :fuzzing, :color, :groups\n \n def initi... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests for create, update, and announce messaging\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\ndescribe Api::StoryImagesController do\n let(:story_image) { create(:story_image) }\n let(:story) { story_image.story }\n let(:account) { story.accoun... | ruby | chosen |
[
{
"from": "system",
"value": "Add top-level documentation for HowIs::Frontmatter.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"how_is/version\"\n\nmodule HowIs\n module Frontmatter\n # Generates YAML frontmatter, as is used in Jekyll and other blog engines.\n... | ruby | chosen |
[
{
"from": "system",
"value": "Make symbolize_key a public method for JRuby compat\n"
},
{
"from": "human",
"value": "module I18n\n module HashRefinements\n refine Hash do\n def slice(*keep_keys)\n h = {}\n keep_keys.each { |key| h[key] = fetch(key) if has_key?(key) }\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Improve feedback from failing junit test\n"
},
{
"from": "human",
"value": "Then(/^the junit output file \"(.*?)\" should contain:$/) do |actual_file, text|\n actual = IO.read(current_dir + '/' + actual_file)\n actual = replace_junit_time(actual)\n expect(actual)... | ruby | chosen |
[
{
"from": "system",
"value": "Fix compare ids not working for domain names.\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n root 'home#index'\n # id and format specified to fix problem with using domain names as slugs\n resources :domains, only: [:index, :show, :create],... | ruby | chosen |
[
{
"from": "system",
"value": "Remove default ordering from random method\n"
},
{
"from": "human",
"value": "class Compliment < ActiveRecord::Base\n belongs_to :complimenter, class_name: \"User\"\n belongs_to :complimentee, class_name: \"User\"\n\n after_create :notify\n\n default_scope { ord... | ruby | chosen |
[
{
"from": "system",
"value": "Work around the fact that RestClient exposes an inconsistent API for get and delete\n"
},
{
"from": "human",
"value": "module Paperlex\n class Base < Hashie::Dash\n property :uuid, :required => true\n\n class << self\n def parse(result)\n if resul... | ruby | chosen |
[
{
"from": "system",
"value": "Add :invalid as default message key\n"
},
{
"from": "human",
"value": "require 'active_model'\n\nmodule ActiveModel\n module Validations\n def self.romanianvalidators\n %w(cif cnp iban bic)\n end\n\n module EmptyBlankEachValidator\n def validate_... | ruby | chosen |
[
{
"from": "human",
"value": "Add VLC install recipe, hard coded version/url/sha because of sparkle\n"
},
{
"from": "gpt",
"value": "vlc_version = '2.0.5'\n\ndmg_package \"VLC\" do\n dmg_name \"vlc-#{vlc_version}\"\n volumes_dir \"vlc-#{vlc_version}\"\n source \"http://download.videolan.org/vl... | ruby | chosen |
[
{
"from": "system",
"value": "Add monkey patch for backward compatibility with active resource 3.0.9\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/pivotal/pivotal-api'\n\n%w{ pivotal ticket project comment }.each do |f|\n require File.dirname(__FILE__) + '/provider/' + f... | ruby | chosen |
[
{
"from": "system",
"value": "Fix validation of inventory item\n"
},
{
"from": "human",
"value": "class InventoryItem < ActiveRecord::Base\n belongs_to :enterprise\n belongs_to :variant, class_name: \"Spree::Variant\"\n\n validates :variant_id, uniqueness: { scope: :enterprise_id }\n validat... | ruby | chosen |
[
{
"from": "system",
"value": "Create a new twilio client instance per sidekiq job\n\nAccording to a GH issue*, the twilio-ruby lib is not threadsafe.\nSharing the client instance between threads was causing exceptions\nwhich would happen after the http request to twilio, during the\nprocess of parsing the r... | ruby | chosen |
[
{
"from": "system",
"value": "Change to use the 18 parser for jruby in 1.9 mode\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule YARD #:nodoc: all\n\n # Test if JRuby head is being used\n JRUBY_19MODE = RUBY_VERSION >= '1.9' && RUBY_ENGINE == 'jruby'\n JRUBY_HEAD = JRUBY_19MO... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for accessing I18n::Gettext.plural_keys hash\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\nclass I18nGettextPluralKeysTest < I18n::TestCase\n def setup\n super\n I18n::Gettext.plural_keys[:zz] = [:value1, :value2]\n end\n\n test \"Return... | ruby | chosen |
[
{
"from": "system",
"value": "Set min required Ruby version to 1.8.7\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n$LOAD_PATH.unshift(File.expand_path('../lib/', __FILE__))\nrequire 'nanoc/asciidoctor/version'\n\nGem::Specification.new do |s|\n s.name = 'nanoc-asciidoctor'\n s... | ruby | chosen |
[
{
"from": "system",
"value": "Fix constant case in test\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire_relative \"helper\"\n\nclass TestPumaUnixSocket < Minitest::Test\n\n App = lambda { |env| [200, {}, [\"Works\"]] }\n\n Path = \"test/puma.sock\"\n\n def setup\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Formula to version 4.10.0\n"
},
{
"from": "human",
"value": "class Bartycrouch < Formula\n desc \"Incrementally update/translate your Strings files\"\n homepage \"https://github.com/Flinesoft/BartyCrouch\"\n url \"https://github.com/Flinesoft/BartyCrouch.g... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for audio version\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\ndescribe AudioVersion do\n\n let(:audio_version) { create(:audio_version, audio_files_count: 1) }\n\n it 'has a table defined' do\n AudioVersion.table_name.must_equal 'audio_... | ruby | chosen |
[
{
"from": "system",
"value": "Update Thunderbird Beta to 34.0b1"
},
{
"from": "human",
"value": "class ThunderbirdBeta < Cask\n version '33.0b1'\n sha256 '45549be5ddf4aaf7c50e08fa71dd8e5542cb36c8ca19498866cd0b8ebb3b6385'\n\n url \"https://download-installer.cdn.mozilla.net/pub/thunderbird/rel... | ruby | chosen |
[
{
"from": "system",
"value": "Improve reliability of the Process.times spec\n"
},
{
"from": "human",
"value": "require_relative '../../spec_helper'\n\ndescribe \"Process.times\" do\n it \"returns a Process::Tms\" do\n Process.times.should be_kind_of(Process::Tms)\n end\n\n it \"returns cur... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests for Order model\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass OrderTest < ActiveSupport::TestCase\n # test \"the truth\" do\n # assert true\n # end\nend\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\nclass Or... | ruby | chosen |
[
{
"from": "system",
"value": "Use Rails.root instead of RAILS_ROOT in preparation for the Rails 2.1 release\n\n\n"
},
{
"from": "human",
"value": "# Load the plugin testing framework\n$:.unshift(\"#{File.dirname(__FILE__)}/../../plugin_test_helper/lib\")\nrequire 'rubygems'\nrequire 'plugin_test... | ruby | chosen |
[
{
"from": "system",
"value": "Move coveralls before spec helper\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'minitest/autorun'\nrequire 'spidr'\n\nrequire 'validate_website/core'\n\nrequire File.expand_path('../webmock_helper', __FILE__)\n\nrequire 'coveralls'\nCo... | ruby | chosen |
[
{
"from": "system",
"value": "Make tests run on 1.8.7\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nbegin\n require 'test/unit'\n require 'shoulda'\n require 'mocha'\n require 'open-uri'\n require 'fakefs'\n require 'fileutils'\n require 'stringio'\n require 'juicer'\nres... | ruby | chosen |
[
{
"from": "system",
"value": "Remove .git extension from homepage in gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"perpetuity/version\"\n\nGem::Specification.new do |s|\n s.name = \"perpetuity\"\n s.versio... | ruby | chosen |
[
{
"from": "system",
"value": "Add default entry on payload for SNS Topic\n"
},
{
"from": "human",
"value": "module AwsSnsManager\n # = AwsSnsManager::Client\n class Client\n attr_accessor :client\n attr_accessor :arn\n\n def initialize(options = {})\n super()\n\n @client = A... | ruby | chosen |
[
{
"from": "system",
"value": "Fix adapter name when postgres\n"
},
{
"from": "human",
"value": "require 'cgi'\nrequire 'uri'\n\nmodule Dossier\n class ConnectionUrl\n\n attr_reader :uri\n\n def initialize(url = nil)\n @uri = URI.parse(url || ENV.fetch('DATABASE_URL'))\n end\n \n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add an ArrayRepresenter to take care of empty arrays\n"
},
{
"from": "human",
"value": "module Representer\n\n module Extension\n\n module InstanceMethods\n\n def represent(format, options = {})\n representer = if options.has_key?(:representer)\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add test to confirm resources page loads with expected content and links\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.describe \"resources\", type: :system do\n\n before(:all) do\n @resource_type = ResourceFileType.create!(title: \"Resource Co... | ruby | chosen |
[
{
"from": "system",
"value": "Remove pry-debugger from the dependecies.\n\nIt was already present in the Gemfile and it's not really a dependency.\nTHe duplicate entry was failing the build on travis.\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake task to unpublish and redirect policies\n\nThe rake task accepts a csv file path as argument. The file will have\n\"policy\" and \"taxon\" as the two columns headers and the content will be\nthe paths to the policy and to the taxon.\n\nExample:\npolicy,taxon\n/governme... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for aliasing $@\n"
},
{
"from": "human",
"value": "require_relative '../../spec_helper'\nrequire 'English'\n\ndescribe \"alias keyword\" do\n it \"aliases $ERROR_INFO to $! in English and $ERROR_INFO still returns a backtrace\" do\n (1 / 0 rescue $ERROR... | ruby | chosen |
[
{
"from": "system",
"value": "Update all pipelines in single query\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n# rubocop:disable Style/Documentation\n\nmodule Gitlab\n module BackgroundMigration\n class PopulateExternalPipelineSource\n module Migratable\n cl... | ruby | chosen |
[
{
"from": "system",
"value": "Fix N+1 query for BlogsController\n"
},
{
"from": "human",
"value": "#\n# == BlogsController\n#\nclass BlogsController < ApplicationController\n before_action :blog_module_enabled?\n before_action :set_blog, only: [:show]\n decorates_assigned :blog, :comment\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issue where transid wasn't being saved\n"
},
{
"from": "human",
"value": "class Spree::Admin::SuperadminController < Spree::Admin::BaseController\n before_filter :load_order\n respond_to :html\n\n def complete_payment\n if params[:transaction_id].present?\... | ruby | chosen |
[
{
"from": "system",
"value": "Modify time again to be within the last day up until that moment\n"
},
{
"from": "human",
"value": "get '/tickets' do #route for coaches to see all tickets\n\t@tickets = Ticket.where(created_at: (Time.now.midnight - 1.day)..Time.now.midnight)\n\tp @tickets\n\t\n\t@s... | ruby | chosen |
[
{
"from": "system",
"value": "Increment version for chef supermarket.\n"
},
{
"from": "human",
"value": "name 'automount'\nmaintainer 'Li-Te Chen'\nmaintainer_email 'datacoda@gmail.com'\nlicense 'Apache 2.0'\ndescription 'Installs/Configures automount'\nlong_description IO.read(File.join(File.di... | ruby | chosen |
[
{
"from": "system",
"value": "Add login check before each action\n"
},
{
"from": "human",
"value": "class RequestsController < ApplicationController\n def index\n @requests = Request.all\n end\n\n def new\n @request = Request.new\n end\n\n def create\n redirect_to new_request and r... | ruby | chosen |
[
{
"from": "system",
"value": "Add method to verify slug\n"
},
{
"from": "human",
"value": "class ServicesController < ApplicationController\n before_action :authenticate_user!, only: [:new, :create, :edit, :update]\n before_action :set_service, only: [:show, :edit, :update]\n\n def index\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add sessions controller method for guide to say they're online.\n"
},
{
"from": "human",
"value": "class SessionsController < ApplicationController\n def new\n end\n\n def create\n @guide = Guide.find_by_email(params[:email])\n @traveler = Traveler.find_by_... | ruby | chosen |
[
{
"from": "system",
"value": "Fix plain text highlighting with pygments.\n"
},
{
"from": "human",
"value": "module ApiDocServicesHelper\n PYGMENTS_LANGUAGE_MAP = {\n \"jscript\" => \"javascript\"\n }\n\n def render_service_body(service)\n html = render(\"service_body\")\n\n doc = Nok... | ruby | chosen |
[
{
"from": "system",
"value": "Fix comments in ocaml formula.\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass ObjectiveCaml <Formula\n url 'http://caml.inria.fr/pub/distrib/ocaml-3.11/ocaml-3.11.2.tar.bz2'\n homepage 'http://caml.inria.fr/ocaml/index.en.html'\n md5 '4601a7aea6644... | ruby | chosen |
[
{
"from": "system",
"value": "Make `generate` command description more descriptive\n"
},
{
"from": "human",
"value": "#\n# Copyright:: Copyright (c) 2014 Chef Software Inc.\n# License:: Apache License, Version 2.0\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may... | ruby | chosen |
[
{
"from": "human",
"value": "Remove retweets from User model\n\nThought I might implement notifications on retweet, but that would not only be sort of annoying/pointless, it already seems to happen with the streaming API translating new-style retweets to old and old-styles having the @username in them. So t... | ruby | chosen |
[
{
"from": "human",
"value": "Add a custom fact because the value of ipaddress gets messed up if you use Docker\n"
},
{
"from": "gpt",
"value": "Facter.add(\"ipaddress_primary\") do\n setcode do\n if Facter.value('ipaddress_eth0')\n Facter.value('ipaddress_eth0')\n else\n Facter.... | ruby | chosen |
[
{
"from": "system",
"value": "Add stubs to make it work in 1.8.7"
},
{
"from": "human",
"value": "require \"rspec/rails\"\nrequire \"rails/generators/test_case\"\nrequire \"fileutils\"\nrequire \"generator_spec/matcher\"\n\nmodule GeneratorSpec\n module TestCase\n extend ActiveSupport::Conce... | ruby | chosen |
[
{
"from": "system",
"value": "Add strong params for editorial remarks\n"
},
{
"from": "human",
"value": "class Admin::EditorialRemarksController < Admin::BaseController\n before_filter :find_edition\n before_filter :enforce_permissions!\n before_filter :limit_edition_access!\n\n def enforce_... | ruby | chosen |
[
{
"from": "system",
"value": "Remove base. to add consistency.\n"
},
{
"from": "human",
"value": "module CRater::SettingsProviderFunctionality\n extend ActiveSupport::Concern\n included do |base|\n has_one :c_rater_item_settings, as: :provider, class_name: 'CRater::ItemSettings'\n \n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update upstream percona to 2.1.0\n"
},
{
"from": "human",
"value": "name 'osl-mysql'\nissues_url 'https://github.com/osuosl-cookbooks/osl-mysql/issues'\nsource_url 'https://github.com/osuosl-cookbooks/osl-mysql'\nmaintainer 'Oregon Stat... | ruby | chosen |
[
{
"from": "system",
"value": "Add ubuntu to supported platforms\n"
},
{
"from": "human",
"value": "name 'augeas'\nmaintainer 'Nathan Huff'\nmaintainer_email 'nrhuff@umn.edu'\nlicense 'Apache 2.0'\ndescription 'Installs/Configures augeas'\nlong_description IO.read(... | ruby | chosen |
[
{
"from": "system",
"value": "Fix node attribute in an error message\n"
},
{
"from": "human",
"value": "if node[:omnibus_updater][:disabled]\n Chef::Log.info 'Omnibus update disabled as requested'\nelsif node[:omnibus_updater][:install_via]\n case node[:omnibus_updater][:install_via]\n when... | ruby | chosen |
[
{
"from": "system",
"value": "Update Rails role to use vendor MySQL server instead of percona\n"
},
{
"from": "human",
"value": "name 'rails'\ndescription 'This role configures a Rails stack using Unicorn'\nrun_list \"recipe[apt]\", \"recipe[build-essential]\", \"recipe[percona_mysql]\", \"recip... | ruby | chosen |
[
{
"from": "system",
"value": "Add test-unit as a development dependency\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"polish-number\"\n s.rubyforge_project = \"polish-number\"\n s.homepage = \"http://github.com/wpiekutowski/polish-number\"\n s.version = \"0.1.... | ruby | chosen |
[
{
"from": "system",
"value": "Add YARD gem to development dependencies\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'dice_set/version'\n\nGem::Specification.new do |spec|\n spec.n... | ruby | chosen |
[
{
"from": "system",
"value": "Add inifile gem dep + cleanup gemspec\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'vagrant/iniconfig/version'\n\nGem::Specification.new do |spec|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use the right syntax for DbMaximumLengthValidator\n\nNot sure how could it be working before this fix...\n"
},
{
"from": "human",
"value": "module Spree\n module Validations\n class DbMaximumLengthValidator < ActiveModel::Validator\n def validate(record)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add homepage to gemspec. Fix description.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/sambal/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"John Axel Eriksson\"]\n gem.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Add output_jp test for pettern\n"
},
{
"from": "human",
"value": "require 'rspec'\n\ndescribe Pattern do\n let(:pattern) { Pattern.new('a','a') }\n describe '#render' do\n let(:render) { pattern.render }\n it 'should return string' do\n expect(render).t... | ruby | chosen |
[
{
"from": "system",
"value": "Put in my pseudo code and initial solutions."
},
{
"from": "human",
"value": "# U1.W3: Add it up!\n\n# Complete each step below according to the challenge directions and \n# include it in this file. Also make sure everything that isn't code\n# is commented in the fi... | ruby | chosen |
[
{
"from": "human",
"value": "Add migration that adds kontakt to header\n"
},
{
"from": "gpt",
"value": "class InsertContactInHeader < ActiveRecord::Migration\n def change\n main_menu = Menu.where(name: \"main\").first\n link = { controller: \"contact\", action: \"index\", title: \"Kontakt... | ruby | chosen |
[
{
"from": "system",
"value": "Complete readed count default change\n\nThis was an overlook on my part. I should've changed existing defaults in\nthe migration. I run it manually after deployment, but I'm adding it here\nfor completeness.\n"
},
{
"from": "human",
"value": "# frozen_string_literal... | ruby | chosen |
[
{
"from": "system",
"value": "Fix not to use '', to use String.new\n"
},
{
"from": "human",
"value": "#\n#This class controlls game mainly\n#\nclass Game\n #create Earth object with substituting FIELD_SIZE\n def initialize\n @earth = Earth.new(FIELD_SIZE)\n @previous_state, @present_stat... | ruby | chosen |
[
{
"from": "human",
"value": "Add Ilya Birman typography layout\n"
},
{
"from": "gpt",
"value": "cask 'ilya-birman-typography-layout' do\n version '3.4.1'\n sha256 'a4d830a490e2dbdc82c8f38e613391aeb62856bae3ed85774e3d939224de8af8'\n\n url \"http://ilyabirman.ru/download/ilya-birman-typolayout-... | ruby | chosen |
[
{
"from": "system",
"value": "Add workaround for posting output with code.\n"
},
{
"from": "human",
"value": "require 'capistrano'\nrequire 'capistrano/campfire'\nrequire 'capistrano/log_with_awesome'\n# TODO need to handle loading a bit beter. these would load into the instance if it's defined\... | ruby | chosen |
[
{
"from": "system",
"value": "Use REST API as the fql is deprecated\n"
},
{
"from": "human",
"value": "module SocialShares\n class Facebook < Base\n URL = 'https://graph.facebook.com/fql'\n\n def shares!\n response = RestClient.get(URL, {\n :params => {\n :q => \"SELE... | ruby | chosen |
[
{
"from": "system",
"value": "fix(polling): Remove Adult genre movies from polling\n"
},
{
"from": "human",
"value": "namespace :data do\n desc 'Poll data from Imdb to import movies in our database'\n task :poll_imdb => :environment do\n id = rand(999_999)\n serie = Imdb::Serie.new id\n ... | ruby | chosen |
[
{
"from": "system",
"value": " Package version is incremented from patch number 0.1.1 to 0.1.2\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'telemetry-logger'\n s.version = '0.1.1'\n s.summary = 'Logging to STDERR with coloring and lev... | ruby | chosen |
[
{
"from": "system",
"value": "Fix invalid settings were used due renaming\n"
},
{
"from": "human",
"value": "module HttpBasicAuthentication\n module Patches\n # This module patches the default authentication system\n # by using HTTP Basic Authorization headers fields to login\n # users... | ruby | chosen |
[
{
"from": "system",
"value": "Allow build agent to specify VM provider\n"
},
{
"from": "human",
"value": "require 'tailor/rake_task'\nrequire 'foodcritic'\nrequire 'daptiv-chef-ci/vagrant_task'\n\ntask :lint => [:version, :tailor, :foodcritic]\ntask :default => [:lint]\n\ntask :version do\n IO.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix unstable test with jruby\n"
},
{
"from": "human",
"value": "require_relative '../test_helper'\nrequire 'tumugi/dag'\nrequire 'tumugi/task'\nrequire 'tumugi/command/run'\n\nclass Tumugi::Command::RunTest < Test::Unit::TestCase\n class TestTask < Tumugi::Task\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use Helsinki, Kaisaniemi for weather\n"
},
{
"from": "human",
"value": "require 'uri'\nrequire 'net/http'\nrequire 'nokogiri'\n\nKernel.load('fetch_uri.rb')\n\nclass Module_Weather\n def init_module(bot) end\n def privmsg(bot, from, reply_to, msg)\n\n msg.split... | ruby | chosen |
[
{
"from": "system",
"value": "Raise a 404 if there is no blog post\n"
},
{
"from": "human",
"value": "class BlogController < ApplicationController\n respond_to :html, :except => [:feed]\n respond_to :atom, :only => [:feed]\n\n def show\n @blogpost = Blogpost.find_by_id params[:id]\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove skip_email option from acts_as_target\n"
},
{
"from": "human",
"value": "describe ActivityNotification::ActsAsTarget do\n let(:dummy_model_class) { DummyModel }\n\n describe \"as public class methods\" do\n describe \"acts_as_target\" do\n it \"have... | ruby | chosen |
[
{
"from": "system",
"value": "Improve code style of iterator\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n# Module for Annotations.\nmodule HeadMusic::Style::Annotations; end\n\n# A melodic line should have direction changes.\nclass HeadMusic::Style::Annotations::Direction... | ruby | chosen |
[
{
"from": "system",
"value": "Change status_controller spec to use factory instead of hard create\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe StatusController do\n let(:response_hash) { JSON.parse response.body }\n\n before do\n @my_subject = Subject.find_or_create_... | ruby | chosen |
[
{
"from": "system",
"value": "Fix two testcases BackticksCheck spec\n\nContrary to what test descriptions said, %x{...} wasn't tested at all.\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\nmodule Scanny::Checks\n describe BackticksCheck do\n before :each do\n @runner = Sc... | ruby | chosen |
[
{
"from": "system",
"value": "Composite: Correct the name of the component\n"
},
{
"from": "human",
"value": "class CoffeeMaker\n attr_reader :name\n\n def initialize(name)\n @name = name\n end\n\n def get_required_time\n 0.0\n end\nend\n\nclass GrindCoffee\n def initialize\n supe... | ruby | chosen |
[
{
"from": "system",
"value": "Support databases other than mysql\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\nrequire 'fileutils'\nrequire 'json'\nrequire 'uri'\n\n# Create settings hash add merge in the user-provided JSON.\nmysql_uri = URI.parse(ENV['DATABASE_URL'])\nsettings = {\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec (yard ~> 0.8 & requires redcarpet)\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/sexy_scopes/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = 'sexy_scopes'\n gem.version ... | ruby | chosen |
[
{
"from": "system",
"value": "Add chefignore. Add travis and supermarket badges\n"
},
{
"from": "human",
"value": "name 'vsts_build_agent'\nmaintainer 'Microsoft'\nlicense 'MIT'\ndescription 'Installs/Configures visualstudio team services build agents'\nlong_descr... | ruby | chosen |
[
{
"from": "system",
"value": "Use a modern version of chef-ingredient/mixlib-install.\n"
},
{
"from": "human",
"value": "name 'push-jobs'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookbooks@chef.io'\nlicense 'Apache 2.0'\ndescription 'Installs the Chef Push Jobs Client'\nlong_descript... | ruby | chosen |
[
{
"from": "system",
"value": "Fix compatibility with older Chef 12 clients\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "name 'pkgutil'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookbooks@chef.io'\nl... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test: repository permissions and pass id.\n"
},
{
"from": "human",
"value": "require 'yaccl'\nrequire 'json'\n\nYACCL.init('http://localhost:8080/browser')\n\ndef create_repository(id)\n meta = YACCL::Model::Server.repository('meta')\n\n repo_type = meta.type(... | ruby | chosen |
[
{
"from": "system",
"value": "Remove rc designation from gemspec\n"
},
{
"from": "human",
"value": "# In the top directory\n# gem build rdl.gemspec\n# gem install rdl-1.0.0.beta.1.gem\n\nGem::Specification.new do |s|\n s.name = 'rdl'\n s.version = '1.1.1.rc1'\n s.date = '201... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Intellij Idea EAP to v141.2.2\n"
},
{
"from": "human",
"value": "cask :v1 => 'intellij-idea-eap' do\n version '140.2285.5'\n sha256 'f6ac5ba4ad73eaa7c072c4c4c52b26f7c65f3fbc4f520c2cf9fbe902aedd1751'\n\n url \"http://download-cf.jetbrains.com/idea/ideaIU-#... | ruby | chosen |
[
{
"from": "human",
"value": "Add a test for handling the name in the arguments\n"
},
{
"from": "gpt",
"value": "require './spec/dsl/context.rb'\ndescribe Packager::DSL do\n context \"arguments\" do\n include_context :dsl\n\n it \"handles a name in the arguments\" do\n items = parse_d... | ruby | chosen |
[
{
"from": "system",
"value": "Add comment for not requiring sigdump in windows\n"
},
{
"from": "human",
"value": "require 'bundler'\n\nbegin\n Bundler.setup(:default, :test)\nrescue Bundler::BundlerError => e\n $stderr.puts e.message\n $stderr.puts \"Run `bundle install` to install missing ge... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the potential bleeding of event subscribers from other tests.\n"
},
{
"from": "human",
"value": "require_relative '../lib/lot'\nrequire 'minitest/autorun'\nrequire 'minitest/spec'\nrequire 'mocha/setup'\n\ndef setup_db options = {}\n options.merge!( {\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix tests by adding active_support in\n"
},
{
"from": "human",
"value": "require 'active_record'\nrequire 'affairs_of_state'\nrequire 'pry'\n\nRSpec.configure do |config|\n config.treat_symbols_as_metadata_keys_with_true_values = true\n config.run_all_when_everyth... | ruby | chosen |
[
{
"from": "system",
"value": "Use CSS substring selector for selecting Capture link by order number\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\nfeature %q{\n As a payment administrator\n I want to capture multiple payments quickly from the one page\n} do\n include Authen... | ruby | chosen |
[
{
"from": "system",
"value": "Rename specs to use client_company/account\n"
},
{
"from": "human",
"value": "describe Rename do\n around do |example|\n MemFs.activate { example.run }\n end\n\n describe 'rename Cat to Dog' do\n def cat_content\n <<~HEREDOC\n class Cat\n ... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.