conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix a bug that doesn't follow a redirect chain\n" }, { "from": "human", "value": "require 'curb'\nrequire 'digest'\nrequire 'tempfile'\n\nmodule Sufeed\n def self.checksum(url)\n file = Tempfile.new('sufeed')\n redirected = location(url)\n puts \"Redirecte...
ruby
chosen
[ { "from": "system", "value": "Add script to add a Wikipedia expert to all courses for a campaign\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\n# This can be used to shift all of one Wikipedia Expert's courses to another,\n# for a certain campaign.\nold_id = User.find_by(use...
ruby
chosen
[ { "from": "system", "value": "Increase nf_conntrack_max for tile caches\n" }, { "from": "human", "value": "name \"tilecache\"\ndescription \"Role applied to all tile cache servers\"\n\ndefault_attributes(\n :accounts => {\n :groups => {\n :proxy => {\n :members => [:tomh, :grant,...
ruby
chosen
[ { "from": "system", "value": "Update seed to use new service\n" }, { "from": "human", "value": "# create users\nq = 10\n2.times do |i|\n email = \"partner#{i}@example.com\"\n User.create(email: email)\n partner_user = User.find_by_email(email).tap {|u| u.make_partner!}\n q.times do |n|\n ...
ruby
chosen
[ { "from": "system", "value": "Improve redirection for access denied messages" }, { "from": "human", "value": "# ===GLSAMaker v2\n# Copyright (C) 2009 Alex Legler <a3li@gentoo.org>\n# Copyright (C) 2009 Pierre-Yves Rofes <py@gentoo.org>\n#\n# This program is free software: you can redistribute ...
ruby
chosen
[ { "from": "system", "value": "Improve Govspeak presenting with cached sanitising\n\nThis changes how we lookup atttachments from a big loop to instead a\ncached hash. This improves performance on documents with large numbers\nof attachments.\n" }, { "from": "human", "value": "class GovspeakBodyP...
ruby
chosen
[ { "from": "system", "value": "Remove deprecated base coin from aex\n" }, { "from": "human", "value": "module Cryptoexchange::Exchanges\n module Aex\n module Services\n class Pairs < Cryptoexchange::Services::Pairs\n PAIRS_URLS = [\n \"#{Cryptoexchange::Exchanges::Aex::Ma...
ruby
chosen
[ { "from": "system", "value": "Add deprecation notice if dotenv is unavailable\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nrequire \"dry/configurable\"\n\nmodule Dry\n module System\n module ProviderSources\n module Settings\n # @api private\n class ...
ruby
chosen
[ { "from": "system", "value": "Swap out Ox for Nokogiri, specify versions\n" }, { "from": "human", "value": "Gem::Specification.new do |s|\n s.name = \"simple_aws\"\n s.version = \"0.0.1d\"\n s.platform = Gem::Platform::RUBY\n s.authors = [\"Jason Roelofs\"]\n s.email = [\"jameskilt...
ruby
chosen
[ { "from": "human", "value": "Migrate old moved posts messages in English\n" }, { "from": "gpt", "value": "class MigrateOldMovedPosts < ActiveRecord::Migration\n def up\n execute \"UPDATE posts SET post_type = 3, action_code = 'split_topic' WHERE post_type = 2 AND raw ~* '^I moved [a\\\\d]+ p...
ruby
chosen
[ { "from": "system", "value": "Revert \"Seems to be redundant, anyway\"\n\nThis reverts commit 6410eb26a838b3abced105c1a8692ffae08026d7.\n" }, { "from": "human", "value": "name 'sys'\nmaintainer 'GSI HPC department'\nmaintainer_email 'hpc@gsi.de'\nlicense 'Apache 2.0'\n...
ruby
chosen
[ { "from": "system", "value": "Remove invalid html attributes for inputs\n" }, { "from": "human", "value": "module ActiveAdminAddons\n class InputBase < Formtastic::Inputs::StringInput\n include InputOptionsHandler\n include InputMethods\n include InputHtmlHelpers\n\n def to_html\n ...
ruby
chosen
[ { "from": "system", "value": "Update aws-sdk to ~> 2.1\n\nAws.eager_autoload! was introduced in 2.1.0 (#113)" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'carrierwave/aws/v...
ruby
chosen
[ { "from": "system", "value": "Add sidekiq specs - User specified values\n" }, { "from": "human", "value": "require 'chef_helper'\n\ndescribe 'gitlab::sidekiq' do\n let(:chef_run) { ChefSpec::SoloRunner.converge('gitlab::default') }\n\n before do\n allow(Gitlab).to receive(:[]).and_call_orig...
ruby
chosen
[ { "from": "system", "value": "Fix the copyright in the spec\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n" }, { "from": "human", "value": "#\n# Cookbook:: winrm\n# Spec:: default\n#\n# Copyright:: 2017, The Authors, All Rights Reserved.\n\nrequire 'spec_helper'...
ruby
chosen
[ { "from": "system", "value": "Load all stripe event webhooks\n" }, { "from": "human", "value": "require 'braintree'\nrequire 'stripe'\nrequire 'stripe_event'\nrequire 'pay/engine'\nrequire 'pay/billable'\n\n# Subscription backends\nrequire_relative 'pay/subscription/stripe'\nrequire_relative 'pa...
ruby
chosen
[ { "from": "system", "value": "Replace factory rand with sequences\n" }, { "from": "human", "value": "FactoryGirl.define do\n factory :location, aliases: [:location_country] do\n iso_code3 { (0...3).map { (65 + rand(26)).chr }.join }\n iso_code2 { (0...2).map { (65 + rand(26)).chr }.join }...
ruby
chosen
[ { "from": "human", "value": "Add regiester user feature test.\n" }, { "from": "gpt", "value": "require 'rails_helper'\n\nfeature 'User Management' do\n\n scenario 'register a new user' do\n visit root_path\n expect {\n click_link 'Register'\n fill_in 'Username', with: \"brian\"\...
ruby
chosen
[ { "from": "system", "value": "Add spec to check duplicated reserved words\n" }, { "from": "human", "value": "require 'spec_helper'\n\nRSpec.describe ReservedWords do\n let(:default_words) { %w(admin api image rss www cdn) }\n\n before { ReservedWords.clear! }\n\n describe '.list' do\n it '...
ruby
chosen
[ { "from": "system", "value": "Set less permissive permissions to fix the build on Travis\n\n[#114012649](https://www.pivotaltracker.com/story/show/114012649)\n" }, { "from": "human", "value": "require 'open3'\n\ndescribe 'postgres_ctl.erb' do\n context 'running postgres_db_backup.sh' do\n be...
ruby
chosen
[ { "from": "system", "value": "Update documentation. Add private status for method.\n" }, { "from": "human", "value": "module Hanami\n module CliBase\n # Add new custom CLI command to special CLI class\n #\n # @since x.x.x\n #\n # @example Usage with Cli class\n # require 'ha...
ruby
chosen
[ { "from": "system", "value": "Set backoff timer after update\n" }, { "from": "human", "value": "require 'redis'\nrequire 'reddit'\nrequire \"wotd/version\"\n\nmodule Wotd\n class Wotd\n DAY_IN_SECONDS = 86_4000\n MONTH_IN_SECONDS = 2_688_000\n\n attr_accessor :subreddit\n\n def init...
ruby
chosen
[ { "from": "system", "value": "Use BlockBody from Document using composition rather than inheritence\n\nThis way liquid-c can more cleanly use a Liquid::C::BlockBody object\nfor the block body by overriding Liquid::Document#new_body.\n" }, { "from": "human", "value": "# frozen_string_literal: tru...
ruby
chosen
[ { "from": "system", "value": "Update repo url in gemspec\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\n\nGem::Specification.new do |spec|\n spec.name = \"lob\"\n spec.version ...
ruby
chosen
[ { "from": "system", "value": "Package version is increased from 0.4.2.1 to 0.4.2.2\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'log'\n s.version = '0.4.2.1'\n s.summary = 'Logging to STD IO with levels, tagging, and coloring'\n s.des...
ruby
chosen
[ { "from": "system", "value": "Move preprocessor registration into an initializer\n" }, { "from": "human", "value": "require 'rafters/sprockets/directive_processor'\n\nclass Rafters::Railtie < Rails::Railtie\n initializer \"rafters.load_view_paths\" do |app|\n Rafters.view_paths = Dir[app.roo...
ruby
chosen
[ { "from": "system", "value": "Fix write issue with 1.9.2\n" }, { "from": "human", "value": "module LegalToMarkdown\n extend self\n\n def write_it( final_content, writer )\n final_content = final_content.gsub(/ +\\n/, \"\\n\") if writer == :markdown\n require 'json' if writer == :jason\n ...
ruby
chosen
[ { "from": "human", "value": "Create module to rebuild compliance mviews\n" }, { "from": "gpt", "value": "module Trade::RebuildComplianceMviews\n def self.run\n [\n :appendix_i,\n :mandatory_quotas,\n :cites_suspensions\n ].each do |p|\n puts \"Rebuild #{p} mview...\"\n...
ruby
chosen
[ { "from": "system", "value": "Add documentation for paperclip post processor and ensuring the attachment instance is saved when using background paperclip processing." }, { "from": "human", "value": "module Paperclip\n class MetadataExtractor < Paperclip::Processor\n def make\n # get th...
ruby
chosen
[ { "from": "system", "value": "Use divs instead of paragraphs for pagination results\n" }, { "from": "human", "value": "module AppFrame::PaginationHelper\n \n def page_range\n return nil if count == 0\n \n range_start = (page - 1) * per_page + 1\n range_end = (page) * per_page\n ...
ruby
chosen
[ { "from": "system", "value": "Support bearer token in header" }, { "from": "human", "value": "class Oauth2::UsersController < Oauth2Controller\n before_filter :ensure_token!\n before_filter :ensure_user\n\n def show\n attributes = user.try!(:oauth_attributes) || user.attributes.only(*%w[na...
ruby
chosen
[ { "from": "system", "value": "Change icon on the admin ad menu\n" }, { "from": "human", "value": "Deface::Override.new(:virtual_path => \"spree/admin/shared/_menu\",\n :name => \"ads_admin_tabs\",\n :insert_bottom => \"[data-hook='admin_tabs'], #admin_tabs...
ruby
chosen
[ { "from": "system", "value": "Fix combined AuthorizationHandler for API\n\nAPI AuthorizationHandler was not working when combined with the\nCensusData one. A parameter was not being initialized.\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nrequire 'virtus/multiparams'\n\n#...
ruby
chosen
[ { "from": "system", "value": "Add library/framework dependancies and and linker flags for GNU C++ standard library and forcing armv7." }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = \"webrtc-ios\"\n s.version = \"5858\"\n s.summary = \"iOS compiled WebRTC li...
ruby
chosen
[ { "from": "system", "value": "Fix for URL formatting from MarkdownRenderer\n\nFrom https://www.pivotaltracker.com/story/show/66658408.\nURL title and URL were the wrong way round on import.\n" }, { "from": "human", "value": "class ImportContacts\n class MoreInfoUrl\n include Virtus.value_obj...
ruby
chosen
[ { "from": "system", "value": "Add CITES listing id within the cites_listings node\n" }, { "from": "human", "value": "child :pagination do\n node(:current_page){ @taxon_concepts.current_page.to_i }\n node(:per_page){ @taxon_concepts.per_page }\n node(:total_entries){ @taxon_concepts.total_entr...
ruby
chosen
[ { "from": "system", "value": "Tweak projects api to show admins all projects, not just 'their 'projects\n" }, { "from": "human", "value": "class Api::V1::ProjectsController < Api::V1::BaseController\n\n def index\n @bucket = Project\n @client = Client.find_by_id(params[\"client_id\"])\n ...
ruby
chosen
[ { "from": "system", "value": "Use class name instead of to_s.\n" }, { "from": "human", "value": "module Slugger\n module History\n\n def self.included(klass)\n klass.send :include, InstanceMethods\n klass.send :after_save, :set_slug_history\n klass.send :before_destroy, :set_s...
ruby
chosen
[ { "from": "system", "value": "Upgrade Radiant Player app to v1.2" }, { "from": "human", "value": "class RadiantPlayer < Cask\n url 'https://github.com/kbhomes/google-music-mac/releases/download/v1.1.3/Radiant.Player.zip'\n homepage 'http://kbhomes.github.io/google-music-mac/'\n version '1.1.3...
ruby
chosen
[ { "from": "system", "value": "Rearrange rake tasks a bit\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nrequire 'rubocop/rake_task'\nnamespace :lca do\n desc 'Run full Rspec and Jest test suites'\n task test: [:spec, 'lca:frontend:test']\n\n namespace :test do\n desc '...
ruby
chosen
[ { "from": "human", "value": "Add new file for tictactoeboard\n" }, { "from": "gpt", "value": "$: << File.dirname(__FILE__)\n\nclass TictactoeBoard\n\n attr_accessor :board, :turn\n attr_reader :desc, :valid_slots\n\n\n def initialize (board = Array.new(9, \" \"), turn = \"X\")\n @board = b...
ruby
chosen
[ { "from": "system", "value": "Use send_data instead of send_file\n" }, { "from": "human", "value": "module Controllers::Print\n private\n\n def print_pdf(template, name)\n html = render_to_string template, layout: 'application.print'\n\n save_and_generate_pdf html\n\n send_fil...
ruby
chosen
[ { "from": "system", "value": "Rename the cookbook so that berks is happy\n\nSeems that with berks 3 you need parity between the cookbook name and\nthe Berksfile. So, rename it here.\n" }, { "from": "human", "value": "name \"cookbook-omnibus-openstack\"\nmaintainer \"Craig Tra...
ruby
chosen
[ { "from": "system", "value": "Add OS support and long_description\n" }, { "from": "human", "value": "name 'yum-repoforge'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookbooks@chef.io'\nlicense 'Apache 2.0'\ndescription 'Installs/Configures yum-repoforge'\nversion '0.5.3'\nsource_url 'h...
ruby
chosen
[ { "from": "system", "value": "Add license to the gemspec file\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/opendns-dnsdb/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Frank Denis\"]\n gem.email = [\"fra...
ruby
chosen
[ { "from": "system", "value": "Remove dependences for other modules\n" }, { "from": "human", "value": "# Encoding: utf-8\nname 'cicd_infrastructure'\nmaintainer 'YOUR_COMPANY_NAME'\nmaintainer_email 'none'\nlicense ''\ndescription 'Installs/Configures cicd-infrastr...
ruby
chosen
[ { "from": "system", "value": "Move installdir to /opt/zookeeper and make snapshotdir inside of whatever datadir is\n" }, { "from": "human", "value": "default[:zookeeper][:version] = \"3.3.4\"\n\ndefault[:zookeeper][:installDir] = \"/usr/local/share/zookeeper\"\ndefault[:zookeeper][:logDir] = '/v...
ruby
chosen
[ { "from": "system", "value": "Check if notice appears on login page\n\nAfter being redirected from the initial account setup (password reset with message) a message should appear informing the user about the already set up account.\n" }, { "from": "human", "value": "require 'acceptance_helper'\n...
ruby
chosen
[ { "from": "system", "value": "Remove useless private access modifier at service\n" }, { "from": "human", "value": "module SlackMessageServices\n class RemindMembersWhoForgetOrdering < Base\n def self.call\n return unless order && some_members_have_not_ordered_lunch?\n\n content = f...
ruby
chosen
[ { "from": "system", "value": "Add Establishme Model Validation And Association Tests\n" }, { "from": "human", "value": "require 'rails_helper'\n\ndescribe Establishment do\n\nend\n\n" }, { "from": "gpt", "value": "require 'rails_helper'\n#All Validation And Association Test Complete\...
ruby
chosen
[ { "from": "system", "value": "Use timeout variable instead of arbitrary integer\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe Freddy::SyncResponseContainer do\n let(:container) { described_class.new }\n\n before do\n container.on_timeout {}\n end\n\n context 'when t...
ruby
chosen
[ { "from": "human", "value": "Add features to sites table.\n" }, { "from": "gpt", "value": "class UpdateSites < ActiveRecord::Migration\n def self.up\n change_table :sites do |t|\n t.string :secondary_host, :limit => 255\n t.integer :max_admins, :max_people, :max_groups\n t.boo...
ruby
chosen
[ { "from": "system", "value": "Revert \"Remove unused factory for KalibroConfiguration\"\n\nThis reverts commit 391258e0397d492831cc76cf481f12e90bdbb634.\n\nSigned off by: Heitor Reis <marcheing@gmail.com>\n" }, { "from": "human", "value": "FactoryGirl.define do\n factory :kalibro_configuration ...
ruby
chosen
[ { "from": "human", "value": "Add specs for merge command.\n" }, { "from": "gpt", "value": "# encoding: utf-8\n\nrequire 'spec_helper'\n\ndescribe GithubCLI::Commands::Merging do\n let(:format) { 'table' }\n let(:user) { 'peter-murach' }\n let(:repo) { 'github_cli' }\n let(:id) { 1 }\...
ruby
chosen
[ { "from": "system", "value": "Add endpoint to find all pets by shelter id\n" }, { "from": "human", "value": "require 'dotenv'\nDotenv.load\n\nrequire 'petfinder'\nrequire 'sinatra'\nrequire 'json'\n\napi_key = ENV['PETFINDER_API_KEY']\napi_secret = ENV['PETFINDER_API_SECRET']\n\npetfinder = Petf...
ruby
chosen
[ { "from": "system", "value": "Upgrade Mini Metro to alpha10\n" }, { "from": "human", "value": "class MiniMetro < Cask\n url 'http://static.dinopoloclub.com/minimetro/builds/alpha9/MiniMetro-alpha9e-osx.zip'\n homepage 'http://dinopoloclub.com/minimetro/'\n version 'Alpha 9e'\n sha256 'd2261a...
ruby
chosen
[ { "from": "system", "value": "Allow configuration via HUB_ENDPOINT environmental variable\n" }, { "from": "human", "value": "require 'json'\n\nHUB_ENDPOINT = 'https://push.hubapp.io'\nHUB_TIMEOUT = 240\n\nclass UltraCartConnector < Sinatra::Base\n attr_reader :payload\n\n before do\n @order...
ruby
chosen
[ { "from": "system", "value": "Add description to install generator\n" }, { "from": "human", "value": "require 'rails/generators/active_record'\n\nclass Doorkeeper::InstallGenerator < Rails::Generators::Base\n include Rails::Generators::Migration\n source_root File.expand_path('../templates', _...
ruby
chosen
[ { "from": "system", "value": "Add an available locales accessor\n" }, { "from": "human", "value": "module RailsLocaleDetection\n module LocaleAccessors\n def available_locales\n I18n.available_locales\n end\n\n def default_locale\n I18n.default_locale\n end\n\n def curr...
ruby
chosen
[ { "from": "system", "value": "Fix broken redirect from organisations/new to coops/intro.\n" }, { "from": "human", "value": "class OrganisationsController < ApplicationController\n skip_before_filter :ensure_organisation_exists\n skip_before_filter :ensure_authenticated\n \n layout \"setup\"\...
ruby
chosen
[ { "from": "system", "value": "Fix typo in registrations controller.\n" }, { "from": "human", "value": "class RegistrationsController < Devise::RegistrationsController\n private\n\n def sign_up_params\n params.require(:user).permit(:name, :email, :password, :password_confirmation, :twitter_h...
ruby
chosen
[ { "from": "system", "value": "Format all attr_to_fetch methods the same way" }, { "from": "human", "value": "class ApiEntreprise::ExercicesAdapter\n def initialize(siret, procedure_id)\n @siret = siret\n @procedure_id = procedure_id\n end\n\n def to_array\n if data_source.present?\n ...
ruby
chosen
[ { "from": "system", "value": "Build educator email from login name\n" }, { "from": "human", "value": "class EducatorRow < Struct.new(:row)\n\n def self.build(row)\n new(row).build\n end\n\n def build\n educator = Educator.first_or_initialize(local_id: row[:local_id])\n\n educator.ass...
ruby
chosen
[ { "from": "system", "value": "Add warning about accidental processing to BuildAttemptJob shim\n" }, { "from": "human", "value": "require 'job_base'\n\nclass BuildAttemptJob < JobBase\n def initialize(build_attempt_id, build_kind, build_ref, test_files)\n # Keep this interface so we can easil...
ruby
chosen
[ { "from": "system", "value": "Add documentation for AR::Dirty module\n\n[ci skip]\n" }, { "from": "human", "value": "module Mobility\n module Backend\n module ActiveRecord::Dirty\n include ActiveModel::Dirty\n\n # @param [Class] backend_class Class of backend\n def self.includ...
ruby
chosen
[ { "from": "system", "value": "Use \\A and \\z in regexp for stricter matching\n\n* While \\A and ^ are the same, there is a difference between \\z and $\n\n Using $ it will match the \"end of line\", which means that this would\n match strings like: \"en-US\\n\". While \\z means \"end of string\" and it\n...
ruby
chosen
[ { "from": "system", "value": "Fix UserControl.user and UserControl.user_exist? methods\n" }, { "from": "human", "value": "module UserControl\n def self.default_user\n if UserControl.logged_in?\n User.new(Config[:default_id])\n else\n puts Paint[\"You didn't logged in\", :red]\n ...
ruby
chosen
[ { "from": "system", "value": "Add tests for OrderItem model\n" }, { "from": "human", "value": "require 'test_helper'\n\nclass OrderItemTest < ActiveSupport::TestCase\n # test \"the truth\" do\n # assert true\n # end\nend\n" }, { "from": "gpt", "value": "require 'test_helper'\n\n...
ruby
chosen
[ { "from": "system", "value": "Remove debug puts (cleans up test output)\n" }, { "from": "human", "value": "\nmodule RetinaTag\n module TagHelper\n def self.included(base)\n base.alias_method_chain :image_tag, :retina\n end\n\n def image_tag_with_retina(source,options={})\n hi...
ruby
chosen
[ { "from": "system", "value": "Replace old stub syntax with newest RSpec 3\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe RailsAdmin::Config::Fields::Types::Uuid do\n let(:uuid) { SecureRandom.uuid }\n\n before do\n RailsAdmin.config do |config|\n config.model Fiel...
ruby
chosen
[ { "from": "system", "value": "Update rubocop requirement from ~> 0.77.0 to ~> 0.78.0\n\nUpdates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.\n- [Release notes](https://github.com/rubocop-hq/rubocop/releases)\n- [Changelog](https://github.com/rubocop-hq/r...
ruby
chosen
[ { "from": "system", "value": "[rubocop] C: Indent when as deep as case.\n" }, { "from": "human", "value": "class Webmail::Extensions::ImapSettings < Array\n def mongoize\n self.to_a.map(&:to_h)\n end\n\n class << self\n def demongoize(object)\n object = object.to_a.map do |h|\n ...
ruby
chosen
[ { "from": "system", "value": "Include :tenant to remove N+1 query\n\ntenant is touched here:\nhttps://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/presenters/tree_node/service_template_catalog.rb#L5\n" }, { "from": "human", "value": "class TreeBuilderServiceCatalog < TreeBuilderCatalo...
ruby
chosen
[ { "from": "system", "value": "Update library version to 0.6\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = \"IGIdenticon\"\n s.version = \"0.5\"\n s.summary = \"Swift identicon generator\"\n s.description = \"This library...
ruby
chosen
[ { "from": "system", "value": "Fix bug of password_reset: Use member instead of user\n" }, { "from": "human", "value": "class PasswordResetsController < ApplicationController\n # request password reset.\n # you get here when the user entered his email in the reset password form and submitted it...
ruby
chosen
[ { "from": "system", "value": "Build the selected node key from the session stored model in RBS 🌳🐞\n\nFixes https://bugzilla.redhat.com/show_bug.cgi?id=1734393\n" }, { "from": "human", "value": "class TreeBuilderRolesByServer < TreeBuilderDiagnostics\n has_kids_for MiqServer, [:x_get_tree_miq_...
ruby
chosen
[ { "from": "human", "value": "Add integration spec which covers the whole confirmation process\n" }, { "from": "gpt", "value": "require 'integration_helper'\n\ndescribe 'When a username is reserved', type: :request do\n it 'the user should receive a confirmation email' do\n email = random_ema...
ruby
chosen
[ { "from": "system", "value": "Add tvOS and watchOS support to the podspec\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = 'Interstellar'\n s.version = '1.1.0'\n s.license = 'MIT'\n s.summary = 'The simplest Signal<T> implementation for Functional Reactive Programming you w...
ruby
chosen
[ { "from": "system", "value": "Update gemspec with webmock dependency\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'todoist/version'\n\nGem::Specification.new do |spec|\n spec.name...
ruby
chosen
[ { "from": "system", "value": "Comment this out for now\n" }, { "from": "human", "value": "require File.dirname(__FILE__) + '/test_helper.rb'\n\ncontext \"APND Daemon\" do\n\nend\n" }, { "from": "gpt", "value": "require File.dirname(__FILE__) + '/test_helper.rb'\n\n# context \"APND Da...
ruby
chosen
[ { "from": "human", "value": "Add spec for rule parsing.\n\nSigned-off-by: brian m. carlson <738bdd359be778fee9f0fc4e2934ad72f436ceda@crustytoothpaste.net>\n" }, { "from": "gpt", "value": "require_relative 'spec_helper'\n\ndescribe Picobot::RuleParser do\n def format_rules(arr)\n arr.map { |r...
ruby
chosen
[ { "from": "system", "value": "Add sinatra as development dependency\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'spy_glass/version'\n\nGem::Specification.new do |spec|\n spec.nam...
ruby
chosen
[ { "from": "system", "value": "Allow both US_ASCII and ASCII_8BIT if fs encoding is unset (LANG=C)\n" }, { "from": "human", "value": "describe :dir_pwd, shared: true do\n with_feature :encoding do\n before :each do\n @fs_encoding = Encoding.find('filesystem')\n if @fs_encoding == En...
ruby
chosen
[ { "from": "system", "value": "Fix seeds superadmin password changement\n" }, { "from": "human", "value": "Administration.create(email: SUPERADMIN.email, password: SUPERADMIN.password)" }, { "from": "gpt", "value": "begin\n Administration.create!(email: SUPERADMIN.email, password: SU...
ruby
chosen
[ { "from": "human", "value": "Add view spec for top\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\ndescribe 'shared/milestones/_top.html.haml' do\n let(:group) { create(:group) }\n let(:project) { create(:project, group: group) }\n let(:milestone) { create(:milestone, project: proje...
ruby
chosen
[ { "from": "system", "value": "Modify spec for order and products assocation\n" }, { "from": "human", "value": "require 'rails_helper'\n\nRSpec.describe Order, type: :model do\n customer = Customer.create(first_name: 'Jon', last_name: 'Chen')\n order = customer.orders.create\n\n it 'creates su...
ruby
chosen
[ { "from": "system", "value": "Change rspec to development dependency\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n$:.unshift File.expand_path('../lib', __FILE__)\nrequire 'priority_test/version'\n\nGem::Specification.new do |s|\n s.name = \"priority_test\"\n s.version ...
ruby
chosen
[ { "from": "system", "value": "Use mapfile that is in place\n" }, { "from": "human", "value": "require_relative 'test_helper'\n\nclass TestMap < MiniTest::Unit::TestCase\n\n def setup\n @window = Window.new\n @map_file = <<-eos\n V....g...V\n V....g...V\n {'.'=>0, 'V'=>1, 'g...
ruby
chosen
[ { "from": "system", "value": "Add more options in helpers\n" }, { "from": "human", "value": "module VenuesHelper\n\n def options_for_region\n [\n 'Ahmednagar', 'Aurangabad', 'Beed', 'Belgaon', 'Belgaum', 'Dhule', 'Jalgaon', 'Kolhapur',\n 'Mumbai', 'Nashik', 'North Goa', 'Palghar', ...
ruby
chosen
[ { "from": "system", "value": "Update the Podspec to version 2.1.\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = 'DateRangePicker'\n s.version = '2.0.1'\n\n s.homepage = 'https://github.com/MrMage/DateRangePicker'\n s.sum...
ruby
chosen
[ { "from": "system", "value": "Cover with tests all new IronWorker features (label,tasks on pause)\n" }, { "from": "human", "value": "require_relative 'helpers'\n\nclass BasicTest < IWNGTest\n def test_basic\n code = IronWorkerNG::Code::Base.new do\n name 'test_basic'\n exec(File.di...
ruby
chosen
[ { "from": "system", "value": "Change to fix tty dependency.\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'static_deploy/version'\n\nGem::Specification.new do |spec|\n spec.name ...
ruby
chosen
[ { "from": "system", "value": "Drop deprecated Rails configuration param\n" }, { "from": "human", "value": "# Be sure to restart your server when you modify this file.\n#\n# This file contains migration options to ease your Rails 5.0 upgrade.\n#\n# Once upgraded flip defaults one by one to migrat...
ruby
chosen
[ { "from": "system", "value": "Raise dependency versions due to vulnerabilities\n" }, { "from": "human", "value": "require 'English'\n\nGem::Specification.new do |s|\n s.name = 'thermite'\n s.version = '0.13.0'\n s.summary = 'Rake helpers for Rust+Ruby'\n s.description = 'A Rak...
ruby
chosen
[ { "from": "system", "value": "Package version increased from 0.3.2.0 to 0.4.0.0\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'raygun_client'\n s.version = '0.3.2.0'\n s.summary = 'Client for the Raygun API using the Obsidian HTTP clien...
ruby
chosen
[ { "from": "system", "value": "Use correct compiler artifact for Swift podspec\n\nWe want to use the fully assembled jar, not the one containing just the main classes.\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = 'WireCompiler'\n s.version = \"#{ENV['POD_VER...
ruby
chosen
[ { "from": "system", "value": "Update scss_file defs to use .css extension per WebBlocks update\n" }, { "from": "human", "value": "block 'efx', :path => 'src' do |efx|\n\n block 'engine', :require => true do\n js_file 'engine.js'\n end\n\n block 'driver', :path => 'driver' do\n\n depende...
ruby
chosen
[ { "from": "system", "value": "Put failed jobs in the failure back end\n" }, { "from": "human", "value": "require 'delegate'\n\nmodule FakeResque\n module Faker\n def fake_push(queue, item)\n if @forward\n payload = decode(encode(item))\n Resque::Job.new(queue, payload).per...
ruby
chosen
[ { "from": "system", "value": "Abort with error when patch isn't found\n\nThis should fix #98.\n\nSigned-off-by: Stephen Celis <06fa905d7f2aaced6dc72e9511c71a2a51e8aead@stephencelis.com>\n" }, { "from": "human", "value": "module GHI\n module Commands\n class Show < Command\n attr_accesso...
ruby
chosen
[ { "from": "system", "value": "Add checks to keep heuristics alphabetised.\n" }, { "from": "human", "value": "require_relative \"./helper\"\n\nclass TestPedantic < Minitest::Test\n filename = File.expand_path(\"../../lib/linguist/languages.yml\", __FILE__)\n LANGUAGES = YAML.load(File.read(file...
ruby
chosen