conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update Dev Dependencies to Address Deprecations\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'woff/version'\n\nGem::Specification.new do |gem|\n gem.name = \... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests for assign tag fix\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass AssignTest < Minitest::Test\n include Liquid\n\n def test_assigned_variable\n assert_template_result('.foo.',\n '{% assign foo = values %}.{... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop-govuk requirement from = 4.7.0 to = 4.8.0\n\nUpdates the requirements on [rubocop-govuk](https://github.com/alphagov/rubocop-govuk) to permit the latest version.\n- [Release notes](https://github.com/alphagov/rubocop-govuk/releases)\n- [Changelog](https://github.... | ruby | chosen |
[
{
"from": "system",
"value": "Make Tuple a real class for MRI bridge.\n"
},
{
"from": "human",
"value": "# Defines a few fundamental constants that are needed on MRI to run the\n# compiler. Also requires files that are available by default in Rubinius.\n\nmodule Rubinius\n LookupTable = Hash\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add strong params for operational fields\n"
},
{
"from": "human",
"value": "class Admin::OperationalFieldsController < Admin::BaseController\n before_filter :require_fatality_handling_permission!\n\n def index\n @operational_fields = OperationalField.order(:nam... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failing spec due to newline\n"
},
{
"from": "human",
"value": "describe Hamlit::Parser do\n describe '#call' do\n def assert_ast(str, ast)\n result = described_class.new.call(str)\n expect(result).to eq(ast)\n end\n\n it 'parses tag' do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "AndreasTolfTolfsen: Make sure remote server is shut down before running specs on Selenium::WebDriver::Opera\n\ngit-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@13920 07704840-8298-11de-bf8c-fd130f914ac9\n"
},
{
"from": "human",
"value": "module Selenium\n modul... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for bitly in the CLI class\n"
},
{
"from": "human",
"value": "require_relative 'shorteners/butts_so'\n\nclass CommandLineParser < Thor\n map '--version' => :version, '-v' => :version\n\n desc 'shorten URL',\n 'shortens the given URL using a service ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove membership requirement for OWPS\n"
},
{
"from": "human",
"value": "module Competitions\n module OregonWomensPrestigeSeriesModules\n module Common\n def point_schedule\n [ 25, 21, 18, 16, 14, 12, 10, 8, 7, 6, 5, 4, 3, 2, 1 ]\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add oss license information for MacTex\n\nLicense information is shown when running the installer from the pkg.\n`oss` is the appropriate choice here, as several different licenses are\nused within the package. From the license step of the installer:\n\n> TeX Live and teTeX are... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to the same default API key we use for tests in our bindings\n"
},
{
"from": "human",
"value": "Stripe.api_key = \"xmLR9a78SA9MwiGrrD2Z6VQDBpe82Q0Y\"\nSTRIPE_PUBLISHABLE_KEY = \"pk_IFyTlHIcoXGg0MS2eLAn4CS3INPQx\"\n"
},
{
"from": "gpt",
"value": "S... | ruby | chosen |
[
{
"from": "system",
"value": "Remove short option for --version\n"
},
{
"from": "human",
"value": "require 'optparse'\nrequire 'wright'\n\nmodule Wright\n # Wright command-line interface.\n class CLI\n def initialize(main)\n @commands = []\n @main = main\n @parser = option_pa... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for generic renaming error\n"
},
{
"from": "human",
"value": "class RenameGenericSite2Global < ActiveRecord::Migration\n def self.up\n Site.where(name: 'generic').update_all(name: 'global')\n end\n\n def self.down\n Site.where(name: 'global').update_all... | ruby | chosen |
[
{
"from": "system",
"value": "Rename GitHub repository to match project name\n"
},
{
"from": "human",
"value": "#\n# Be sure to run `pod spec lint JMAttributedFormat.podspec' to ensure this is a\n# valid spec and to remove all comments including this before submitting the spec.\n#\n# To learn... | ruby | chosen |
[
{
"from": "system",
"value": "Edit migration, add :user_id to Orders table\n"
},
{
"from": "human",
"value": "class CreateOrders < ActiveRecord::Migration[5.0]\n def change\n create_table :orders do |t|\n\n t.timestamps\n end\n end\nend\n"
},
{
"from": "gpt",
"value": "c... | ruby | chosen |
[
{
"from": "system",
"value": "Update Brackets to Sprint 37\n"
},
{
"from": "human",
"value": "class Brackets < Cask\n url 'http://download.brackets.io/file.cfm?platform=OSX&build=36'\n homepage 'http://brackets.io'\n version 'Sprint 36'\n sha256 'a7cf879cb32b828b82eea76659617e0d439d2412feff2... | ruby | chosen |
[
{
"from": "system",
"value": "Change mapping tag format at podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"BFTaskCenter\"\n s.version = \"0.1.0\"\n s.summary = \"BFTaskCenter is an center to send task to register.\"\n s.description ... | ruby | chosen |
[
{
"from": "system",
"value": "Add KDELibs caveat so people don't expect it to fully work yet.\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Kdelibs <Formula\n url 'ftp://ftp.kde.org/pub/kde/stable/4.4.1/src/kdelibs-4.4.1.tar.bz2'\n homepage 'http://www.kde.org/'\n md5 '5057908... | ruby | chosen |
[
{
"from": "system",
"value": "Add patches to OpenStackConverter to remove unimplemented properties\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n# Copyright 2014 TIS Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in ... | ruby | chosen |
[
{
"from": "system",
"value": "Set notifications by default when accepting\n"
},
{
"from": "human",
"value": "class EmailNotificationsRemindersController < ApplicationController\n skip_authorization_check\n\n def create\n current_user.update_attributes(\n weekly_summary: true,\n em... | ruby | chosen |
[
{
"from": "system",
"value": "Disable Sync Users button if tenant mapping is not enabled\n\nIf tenant mapping is not enabled, then the provider will have no\ntenants being refreshed into the ems. This means no groups can\nbe created because groups require a tenant and role pair. If\nno groups can be created... | ruby | chosen |
[
{
"from": "human",
"value": "Move the conversation handler to the appropriate place\n"
},
{
"from": "gpt",
"value": "RSpec.describe Converse::ConversationHandler do\n describe \"#can_handle?\" do\n xit \"returns true if the intent of the message was found\"\n xit \"returns false if the in... | ruby | chosen |
[
{
"from": "system",
"value": "Add dependencies and proper description to gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/git_flame/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Linus Oleander\"]\n gem.emai... | ruby | chosen |
[
{
"from": "human",
"value": "Add GIF for Mac latest\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'gif-for-mac' do\n version :latest\n sha256 :no_check\n\n # cloudfront.net is the official download host per the vendor homepage\n url 'https://d309cd6updicdi.cloudfront.net/mac/bin/GIFforMac.dmg... | ruby | chosen |
[
{
"from": "system",
"value": "Add method to find tags\n"
},
{
"from": "human",
"value": "require 'aws-sdk'\nrequire 'contracts'\nrequire_relative 'service'\n\nmodule Cloudstrap\n module Amazon\n class ELB < Service\n include ::Contracts::Core\n include ::Contracts::Builtin\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Move setting of constant in define_if_not_defined up so as to not repeat code\n"
},
{
"from": "human",
"value": "class Object\n def define_if_not_defined(const, value)\n mod = self.is_a?(Module) ? self : self.class\n if block_given?\n mod.const_set(const... | ruby | chosen |
[
{
"from": "system",
"value": "Use restroom path in feature rather than hardcoding id.\n"
},
{
"from": "human",
"value": "Given(/^I click to edit from restroom Mission Creek Cafe$/) do\n visit '/restrooms/1'\n click_link 'Contact us about this post!'\nend\n\nThen(/^I should see Mission Creek Ca... | ruby | chosen |
[
{
"from": "system",
"value": "Remove minitest dependency, just use 1.9\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"herodotus/version\"\n\nGem::Specification.new do |s|\n s.name = \"herodotus\"\n s.version = ... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up user migration script\n"
},
{
"from": "human",
"value": "class CreateUsers < ActiveRecord::Migration\n def change\n create_table :users do |t|\n t.string :email\n t.string :apikey\n\n t.timestamps null: false\n end\n end\nend\n"
},
... | ruby | chosen |
[
{
"from": "human",
"value": "Add recipe for clearing PHP's APC cache on deploy.\n"
},
{
"from": "gpt",
"value": "Capistrano::Configuration.instance(true).load do\n #\n # Hooks\n #\n after \"deploy:start\", \"php_apc:clear_cache\"\n after \"deploy:restart\", \"php_apc:clear_cache\"\n\n #\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update list_queues test to expect a next_marker.\nThis prevents failures when running against a queue service with over 5000 queues.\n"
},
{
"from": "human",
"value": "#-------------------------------------------------------------------------\n# Copyright (c) Micros... | ruby | chosen |
[
{
"from": "system",
"value": "Fix performance test, should be testing normalize_url\n"
},
{
"from": "human",
"value": "require 'test_helper'\nrequire 'test_profile'\n\nclass NormalizerPerformanceTest < Test::Unit::TestCase\n context \".normalize_url\" do\n measure \"normalizing a short URL\"... | ruby | chosen |
[
{
"from": "human",
"value": "Add task to seed fake readings\n"
},
{
"from": "gpt",
"value": "namespace :generate_random_sensor_data do\n task :seed, :environment do\n # This loads dummy ph and temperature data -- I don't have access to the aquarium currently -- Robert\n # Code should be s... | ruby | chosen |
[
{
"from": "human",
"value": "Update topic_user_id primary key to bigint\n"
},
{
"from": "gpt",
"value": "class ChangeTopicUserIdToBigint < ActiveRecord::Migration[6.0]\n def up\n change_column :topic_users, :id, :bigint\n end\n\n def down\n change_column :topic_users, :id, :integer\n e... | ruby | chosen |
[
{
"from": "human",
"value": "Remove old icon columns from taxon\n"
},
{
"from": "gpt",
"value": "class RemoveIconFromTaxons < ActiveRecord::Migration[5.1]\n def change\n remove_column :spree_taxons, :icon_file_name\n remove_column :spree_taxons, :icon_content_type\n remove_column :spre... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused fields from balanced_contributors migration\n"
},
{
"from": "human",
"value": "class CreateBalancedContributors < ActiveRecord::Migration\n def change\n create_table :balanced_contributors do |t|\n t.references :user, index: true\n t.stri... | ruby | chosen |
[
{
"from": "system",
"value": "Allow connections to 127.0.0.1 to fix acceptance tests\n"
},
{
"from": "human",
"value": "FakeWeb.allow_net_connect = false\n\nFakeWeb.register_uri(\n :delete,\n %r{http://localhost:9200/*},\n body: { found: true, _index: \"posts\", _type: \"post\", _id: \"2\", _... | ruby | chosen |
[
{
"from": "system",
"value": "Adjust to new paging params\n\n[d077238b]\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'rails_event_store/middleware'\nrequire 'rack/test'\nrequire 'rack/lint'\nrequire 'support/test_application'\n\nmodule RailsEventStore\n RSpec.describe Brows... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Фикс stage_dependencies для пересборки стадий install,setup\"\n\nThis reverts commit 09d7cb4cf570609dea8dd4ab0d5691e125e672e9.\n"
},
{
"from": "human",
"value": "module Dapp\n module Dimg\n module Build\n module Stage\n class GARelatedDepend... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up custom whitelist validator a little\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Reservations\n class CustomWhitelistValidator < ActiveModel::Validator\n def validate(record)\n custom_whitelist_id = record.custom_white... | ruby | chosen |
[
{
"from": "system",
"value": "Remove method which has already been delegated.\n"
},
{
"from": "human",
"value": "require 'cooperator/version'\nrequire 'cooperator/context'\n\nmodule Cooperator\n module ClassMethods\n def perform(context = {})\n action = new context\n\n catch :_fini... | ruby | chosen |
[
{
"from": "system",
"value": "Make tests in IObjectInfoTest pass by changing Everything to Regress.\n"
},
{
"from": "human",
"value": "require File.expand_path('test_helper.rb', File.dirname(__FILE__))\n\nmodule GirFFI\n class IObjectInfoTest < Test::Unit::TestCase\n context \"An IObjectInfo... | ruby | chosen |
[
{
"from": "system",
"value": "Fix thermometer plugin factory as per Omar's master plan\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :plugins_thermometer, :class => 'Plugins::Thermometer' do\n title \"MyString\"\noffset 1\ntotal 1\ncampaign_page nil\nactive false\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Use after :each so that RSpec execution thread is not blocked forever\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\n\ndescribe \"Queue\" do\n context \"with a server-generated name\" do\n let(:connection) { HotBunnies.connect } \n let(:chan... | ruby | chosen |
[
{
"from": "system",
"value": "Change the default value in fetch(:with_prefix)\n"
},
{
"from": "human",
"value": "module NotMyJob\n\n def self.included(base)\n base.extend(ClassMethods)\n end\n\n module ClassMethods\n\n def delegate(*methods, options, &block)\n\n unless options.is_a... | ruby | chosen |
[
{
"from": "system",
"value": "Use case insensitive scan for includeSubDomains HSTS property\n"
},
{
"from": "human",
"value": "module Headlines\n module SecurityHeaders\n class StrictTransportSecurity < SecurityHeader\n def score\n enabled? ? score_by_subdomain : -1\n end\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Update railsbp to include spec files too."
},
{
"from": "human",
"value": "desc 'Show some QA details about the code'\ntask qa: ['stats', 'doc:stats'] do\n sh 'rails_best_practices -x schema'\nend\n"
},
{
"from": "gpt",
"value": "desc 'Show some QA deta... | ruby | chosen |
[
{
"from": "system",
"value": "Update 4.7.2 add it up\n"
},
{
"from": "human",
"value": "# 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 file.\n\n# I worked on this ch... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade IntelliJ IDEA CE EAP to v144.2925.2\n"
},
{
"from": "human",
"value": "cask 'intellij-idea-ce-eap' do\n version '144.2608.2'\n sha256 '21d2fd409de9924d04a235bf5343033a52d84658fdf96e16d6aab377beab0fea'\n\n url \"https://download.jetbrains.com/idea/ideaIC-#... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade RubyMine with bundled JDK to 7.1.2\n\nAlso add conflicts_with stanza for RubyMine without bundled JDK\n"
},
{
"from": "human",
"value": "cask :v1 => 'rubymine-bundled-jdk' do\n version '7.1'\n sha256 '2e9fced43c8e14ffbc82a72a8f6cde1cbab50861db079162ca5ff34... | ruby | chosen |
[
{
"from": "system",
"value": "Fix _url suffix and namespace for delete URLs\n"
},
{
"from": "human",
"value": "module Admin\n class ScoreboardsController < ApplicationController\n load_and_authorize_resource\n\n # GET /scoreboards\n def index\n @scoreboards = @scoreboards.order(:n... | ruby | chosen |
[
{
"from": "system",
"value": "Update SHOmniAuth dependency to 0.2.0\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"SHOmniAuthFacebook\"\n s.version = \"0.1.0\"\n s.summary = \"Facebook Strategy for SHOmniAuth.\"\n\n s.description = <<-DESC\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Disable csrf for tutorial react-native app\n\nTutorial has to send the following header:\n\n\"X-Auth\": \"tutorial_secret\"\n\nand then CSRF is ignored.\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n # Prevent CSRF attacks... | ruby | chosen |
[
{
"from": "system",
"value": "Add callback with redirect for incomplete registrations\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n include Pundit\n protect_from_forgery with: :exception\n before_action :configure_permitted_parameters, if: :devise_c... | ruby | chosen |
[
{
"from": "system",
"value": "Update the lets encrypt verification key.\n"
},
{
"from": "human",
"value": "class LetsencryptController < ApplicationController\n def verify\n render text: 'G-SNx8QU3fN95LKlHwWjlPtWUy-WC2s_W4bkVjeCEHs.HGKAemL2fUjIRadTuQf-sqPIqvo2JUZKqjZzg1u2D0U'\n end\nend\n"
... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for failing docker builds"
},
{
"from": "human",
"value": "GrapeSwaggerRails.options.url = \"/api_docs.json\"\n\nGrapeSwaggerRails.options.before_filter_proc = proc {\n GrapeSwaggerRails.options.app_url = request.protocol + request.host_with_port\n}\n\nGra... | ruby | chosen |
[
{
"from": "system",
"value": "Add dependent: :restrict to has_many\n"
},
{
"from": "human",
"value": "class ProductType < ActiveRecord::Base\n acts_as_nested_set #:order => \"name\"\n has_many :products\n\n validates :name, :presence => true, :length => { :maximum => 255 }\n\n FEATURED_T... | ruby | chosen |
[
{
"from": "system",
"value": "Add STOPALL as filter word\n\nBetter to be explicit.\n"
},
{
"from": "human",
"value": "module Citygram::Routes\n class Unsubscribes < Sinatra::Base\n FILTER_WORDS = %w(CANCEL QUIT STOP UNSUBSCRIBE)\n FILTER_WORD_REGEXP = Regexp.union(FILTER_WORDS.map{|w| /^#... | ruby | chosen |
[
{
"from": "system",
"value": "[fix] Adjust test to xhr? in failure app\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass RailsSso::FailureAppTest < ActiveSupport::TestCase\n test \"regular call runs respond action and redirects to sso\" do\n env = {\n 'REQUEST_URI' => 'h... | ruby | chosen |
[
{
"from": "system",
"value": "Allow to work with Rails RC\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib/', __FILE__)\n$:.unshift lib unless $:.include?(lib)\n\nrequire 'operable/version'\n\nGem::Specification.new do |s|\n\n s.name = 'operable'\n s.version = Operable::VERSIO... | ruby | chosen |
[
{
"from": "system",
"value": "Include additional passed-in fields when creating the input element.\n"
},
{
"from": "human",
"value": "class UniqueInput < SimpleForm::Inputs::TextInput\n def input wrapper_options\n # SimpleFormUnique::SearchController.klass = object.class\n # SimpleFormUni... | ruby | chosen |
[
{
"from": "system",
"value": "Fix not have a CustomValue of serial number Error\n"
},
{
"from": "human",
"value": "require_dependency 'issue'\r\n\r\nmodule SerialNumberField\r\n module IssuePatch\r\n extend ActiveSupport::Concern\r\n\r\n def assign_serial_number!\r\n serial_number_fi... | ruby | chosen |
[
{
"from": "human",
"value": "Add materialized view for valid_taxon_concept_term_view\n"
},
{
"from": "gpt",
"value": "class AddMaterialisedViewForValidTaxonConceptTermView < ActiveRecord::Migration\n def up\n execute \"DROP MATERIALIZED VIEW IF EXISTS valid_taxon_concept_term_mview\"\n ex... | ruby | chosen |
[
{
"from": "system",
"value": "Order page fragments when rendering\n"
},
{
"from": "human",
"value": "module PageFragments::FragmentsHelper\n def fragments(options={})\n root = fragment_root(options.delete(:root))\n fragments = Wheelhouse::Page.where(:parent_id => root.id).fragments\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Split method into higher-level smaller methods\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass CapQuantityAndStoreChanges\n def initialize(order)\n @order = order\n end\n\n def call\n changes = {}\n\n order.insufficient_stock_li... | ruby | chosen |
[
{
"from": "system",
"value": "Update JSON gem dependency for Ruby 2.4"
},
{
"from": "human",
"value": "$LOAD_PATH.push File.expand_path('../lib', __FILE__)\nrequire 'pg_query/version'\n\nGem::Specification.new do |s|\n s.name = 'pg_query'\n s.version = PgQuery::VERSION\n\n s.summar... | ruby | chosen |
[
{
"from": "system",
"value": "Switch mirrored repo used for testing\n"
},
{
"from": "human",
"value": "include_recipe 'yumserver'\n\nmajor_ver = node['platform_version']\n\nyumserver_mirror 'nginx' do\n repo_name 'nginx'\n repo_description 'NGINX web server'\n repo_baseurl \"http://nginx.org/... | ruby | chosen |
[
{
"from": "system",
"value": "Use next to skip iteration per rubocop\n"
},
{
"from": "human",
"value": "# Encoding: UTF-8\nOhai.plugin(:Fstab) do\n provides 'fstab'\n\n collect_data(:linux) do\n fstab Mash.new\n fstab_entries = Array.new\n f = File.open('/etc/fstab')\n f.each_line ... | ruby | chosen |
[
{
"from": "system",
"value": "Set the license in the gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'ducksauce/version'\n\nGem::Specification.new do |gem|\n gem.na... | ruby | chosen |
[
{
"from": "system",
"value": "Change Java version verification method\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'devenv' do\n describe command('which java') do\n its(:stdout) { should eq(\"/usr/bin/java\\n\") }\n end\n\n describe command('java -version') do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change homepage: Gitorious -> Rubyforge\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/rss/dcterms/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"KITAITI Makoto\"]\n gem.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests to completely cover Entity model\n"
},
{
"from": "human",
"value": "# == Schema Information\n#\n# Table name: entities\n#\n# id :integer not null, primary key\n# name :string(255)\n# slug :string(255)\n# description :text... | ruby | chosen |
[
{
"from": "system",
"value": "Use the new `:expect` syntax\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe SeventeenMon do\n describe \"# IPDB loading\" do\n it 'should be eager loaded' do\n ipdb_1 = SM::IPDB.instance\n ipdb_2 = SM::IPDB.instance\n\n ipdb_... | ruby | chosen |
[
{
"from": "system",
"value": "Remove copy-paste error from test\n\nAssuming instructions and example data in lib are correct.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire_relative '../lib/array_hash'\n\nRSpec.describe 'append_to_array' do\n it 'inserts a new value at the en... | ruby | chosen |
[
{
"from": "human",
"value": "Add minitest spec for some matrix ops.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\n# Note: test cases at this point all fit inside a uchar (0-127).\n# TODO: paramaterize this better to more fully test doubles etc.\n\nclass MatrixSpec < MiniTest::Spec\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up test folder after tests ran\n"
},
{
"from": "human",
"value": "require File.expand_path(File.dirname(__FILE__) + '/spec_helper')\n\ndescribe \"Locamotion\" do\n before do\n FileUtils.rm_rf('/tmp/rm_project')\n FileUtils.mkdir_p('/tmp/rm_project/app')... | ruby | chosen |
[
{
"from": "system",
"value": "Improve Tests for Bug User Association Validation\n\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe Bug do\n it { should belong_to(:reporter) }\n it { should belong_to(:assignee) }\n it { should have_many(:comments) }\n it { should validate... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for the querying the api urls.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Github::StatusAPI do\n \nend\n\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Github::StatusAPI do\n describe \"#api\" do\n... | ruby | chosen |
[
{
"from": "system",
"value": "Test the right things in binary integration specs\n\nSuppose I just copied the source integration specs\nand then just didn't give a fuck. Oh well.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'spec_helper'\n\ndescribe 'kafka::binary' do\n descri... | ruby | chosen |
[
{
"from": "system",
"value": "Set up CORS for /compile.\n"
},
{
"from": "human",
"value": "require 'rack/cors'\n\nrequire 'logger'\nclass AppLogger < Logger\n alias write <<\nend\n$logger = AppLogger.new(STDOUT)\n$logger.level = Logger::Severity::DEBUG\nuse Rack::CommonLogger, $logger\n\nuse Ra... | ruby | chosen |
[
{
"from": "system",
"value": "Handle external encoding default for Ruby 1.9\n"
},
{
"from": "human",
"value": "# coding: utf-8\nrequire 'rubygems'\nrequire 'rack'\nrequire 'lib/jibjob'\n\nrun JibJob::App\n"
},
{
"from": "gpt",
"value": "# coding: utf-8\nif RUBY_VERSION.split('.')[1].... | ruby | chosen |
[
{
"from": "system",
"value": "Update ruby challenge week-8 with reflection\n"
},
{
"from": "human",
"value": "# I worked on this challenge by myself.\n# This challenge took me 0.5 hours.\n\n\n# Pseudocode\n# Create a method taking an array of integers returning a new array\n# Multiples of 3 shou... | ruby | chosen |
[
{
"from": "human",
"value": "Add podspec (not linted, need to branch first).\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |s|\n\n # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n #\n # These will help people to find your library, and whilst it\n # c... | ruby | chosen |
[
{
"from": "system",
"value": "Remove 7 years old note-to-self by tenderlove\n\nIntroduced in rails/journey@a806beb\n\n[ci skip]\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"strscan\"\n\nmodule ActionDispatch\n module Journey # :nodoc:\n module NFA # :nodoc:\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec with new version number\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"wkhtmltopdf-heroku\"\n s.version = \"2.12.2.1\"\n\n s.required_rubygems_version = Gem::Requirement.new(\">= 0\") if s.respond_to? :required_rubyge... | ruby | chosen |
[
{
"from": "human",
"value": "Create shared_examples for *_new and *_discover buttons\n"
},
{
"from": "gpt",
"value": "shared_examples_for 'a _new or _discover button' do\n describe '#visible?' do\n context 'when button present on a sublist view screen of a CI' do\n let(:lastaction) { 's... | ruby | chosen |
[
{
"from": "system",
"value": "Remove all the stubbing in the calculator spec\n\nFrom the previous spec it was very unclear how a calculator should work.\nBy providing simple classes to do the calc/calculable job it removes the\nstubs while being more clear what is happening.\n\nKills all db access as well.\... | ruby | chosen |
[
{
"from": "system",
"value": "Update pod spec to show availability on all platforms.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'UPnAtom'\n s.version = '0.0.1.beta.4'\n s.license = { :type => 'MIT', :file => 'LICENSE' }\n s.summary = 'An open so... | ruby | chosen |
[
{
"from": "system",
"value": "Optimize for JRuby 32/64 bit differences\n"
},
{
"from": "human",
"value": "require 'aruba/cucumber'\n\nPROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..')).freeze\n\nBefore do\n @aruba_timeout_seconds = 3600\nend\n\nAruba.configure do |co... | ruby | chosen |
[
{
"from": "system",
"value": "Set newsletter mailer as action mailer\n"
},
{
"from": "human",
"value": "class NewsletterMailer\n default :from => \"noresponder@dealhunter.com\"\n\n def newsletter_email(client)\n @offers = Offer.actual.take(6)\n mail(:to => client.user.email, :subject => ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix deprecation warning by specifying the hash of the parent\n"
},
{
"from": "human",
"value": "Deface::Override.new(\n virtual_path: \"spree/admin/shared/sub_menu/_configuration\",\n name: \"add_sisow_settings\",\n insert_bottom: \"[data-hook='admin_configuratio... | ruby | chosen |
[
{
"from": "human",
"value": "Delete the 'Farming and food inspections' sector\n\nThe 'Farming and food inspections' specialist sector tags was created \nfor the Rural Payments Agency, but it's no longer needed. \n\nThis deletes the parent tag and its children. The 'down' method creates\nthe tags again.\n\nI... | ruby | chosen |
[
{
"from": "human",
"value": "Add Devonthink Pro Office v2.7.4\n"
},
{
"from": "gpt",
"value": "class DevonthinkProOffice < Cask\n url 'https://s3.amazonaws.com/DTWebsiteSupport/download/devonthink/2.7.4/DEVONthink_Pro_Office.dmg.zip'\n homepage 'http://www.devontechnologies.com/products/devont... | ruby | chosen |
[
{
"from": "system",
"value": "Fix endless cycle problem when using script\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire File.expand_path('../lib/code_climate_check/version', __FILE__)\n\nGem::Specification.new do |spec|\n spec.name = \"code_climate_check\"\n spec.versi... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"add helper method to check if on a kuhsaft cotnrolled page\"\n"
},
{
"from": "human",
"value": "module Kuhsaft\n class PagesController < ::ApplicationController\n respond_to :html\n before_action :find_page_by_url, only: :show\n helper_method :is_... | ruby | chosen |
[
{
"from": "system",
"value": "Return presentations in a random order\n"
},
{
"from": "human",
"value": "class PresentationsController < ApplicationController\n before_action :login!, :except => [:index]\n\n def index\n @presentations = Presentation.all\n end\n\n def new\n @presentation... | ruby | chosen |
[
{
"from": "system",
"value": "Fix writer definition for older ruby versions\n"
},
{
"from": "human",
"value": "module Carrierwave\n module Base64\n module MountingHelper\n module_function\n\n def check_for_deprecations(options)\n return unless options[:file_name].is_a?(Strin... | ruby | chosen |
[
{
"from": "system",
"value": "Use ids filter instead of :term => {:_id =>\n"
},
{
"from": "human",
"value": "module SearchAndResque\n module ChewyExtensions\n module ChewyType\n extend ActiveSupport::Concern\n\n module ClassMethods\n def delete!(ids)\n filter(:term ... | ruby | chosen |
[
{
"from": "system",
"value": "Move retrieving metadata attributes to Attacher class\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass Shrine\n module Plugins\n # Documentation lives in [doc/plugins/metadata_attributes.md] on GitHub.\n #\n # [doc/plugins/metadata... | ruby | chosen |
[
{
"from": "system",
"value": "Add slash, though it does route without"
},
{
"from": "human",
"value": "module ApplicationHelper\n def contributors_string(contributors)\n if !contributors.empty?\n conjunction = contributors.count == 1 ? ' and ' : ', '\n conjunction + contributors.to... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.