conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix a ContentNegotiation test description\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"abstract_unit\"\n\nmodule ContentNegotiation\n # This has no layout and it works\n class BasicController < ActionController::Base\n self.view... | ruby | chosen |
[
{
"from": "system",
"value": "Add caveats explaining pip needs to be installed\n\nHomebrew has 'depends_on \"pip\" => :python' but it works more like an\nerror message and bails. I want this to pop up after brew-pip gets\ninstalled.\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass ... | ruby | chosen |
[
{
"from": "system",
"value": "Add comment about From quoting\n"
},
{
"from": "human",
"value": "require \"mail\"\n\nmodule Email; end\n\nmodule Email::Mboxrd\n class Message\n attr_reader :supplied_body\n\n def initialize(supplied_body)\n @supplied_body = supplied_body.clone\n @... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Ruby 1.8 syntax error.\n"
},
{
"from": "human",
"value": "require 'geocoder/lookups/base'\nrequire 'geocoder/results/ovi'\n\nmodule Geocoder::Lookup\n class Ovi < Base\n\n def name\n \"Ovi\"\n end\n\n def required_api_key_parts\n []\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Use float for emission values\n"
},
{
"from": "human",
"value": "require 'leap'\nrequire 'conversions'\n\nmodule BrighterPlanet\n module Meeting\n module CarbonModel\n def self.included(base)\n base.extend ::Leap::Subject\n base.decide :emissi... | ruby | chosen |
[
{
"from": "system",
"value": "Check if this loads applicationcontroller\n"
},
{
"from": "human",
"value": "module RealtimeValidations\n\n class RealtimeValidations < Rails::Engine\n end\n\nend\n"
},
{
"from": "gpt",
"value": "module RealtimeValidations\n\n class RealtimeValidation... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Allow to parse heroku-generated database.yml config file.\"\n\nThis reverts commit 8a56e7db485d3109f3b2f02896c1165c33ffa8fb.\nBecause it actually breaks db setup for mysql\n"
},
{
"from": "human",
"value": "namespace :gitlab do\n desc \"GITLAB | Setup prod... | ruby | chosen |
[
{
"from": "system",
"value": "Handle invalid email addresses in reminder task"
},
{
"from": "human",
"value": "namespace :peoplefinder do\n\n def inadequate_profiles\n @inadequate_profiles = Person.inadequate_profiles\n end\n\n def inadequate_profiles_with_email\n inadequate_profiles.se... | ruby | chosen |
[
{
"from": "system",
"value": "TORQUE-589: Add bundler recipes to test. Works.\n"
},
{
"from": "human",
"value": "require 'torquebox-capistrano-support'\n\nset :application, \"testapp\"\nset :repository, \".\"\nset :user, ENV['user']\nset :deploy_to, \"/home/#{ENV['LOGNAME']}/apps/test... | ruby | chosen |
[
{
"from": "system",
"value": "Update rspec dependency to match parslet requirement\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"lucene_query_parser/version\"\n\nGem::Specification.new do |s|\n s.name = \"lucene_qu... | ruby | chosen |
[
{
"from": "system",
"value": "FIX - establish db connection\n"
},
{
"from": "human",
"value": "if Rails.env.production? && Rails.configuration.kubernetes_deployment\n establish_connection(\n url: ENV['DATABASE_URL'],\n database: 'pvb2_production'\n )\nend\n"
},
{
"from": "gpt",
... | ruby | chosen |
[
{
"from": "system",
"value": "Add ruby methods to steps\n"
},
{
"from": "human",
"value": "##\n# Step definitions specific to the feature file 'example.feature' go here.\n##\nGiven(/^I am on the Home screen$/) do\nend\n\nThen(/^I should see \"(.*?)\"$/) do\nend\n"
},
{
"from": "gpt",
... | ruby | chosen |
[
{
"from": "system",
"value": "Duplicate van noorden sounds before test start\n"
},
{
"from": "human",
"value": "class AppDelegate\n attr_accessor :van_hoorden_sounds, :miller_and_heise_sounds, :window, :subject, :test_count, :doing_part_2\n\n def application(application, didFinishLaunchingWith... | ruby | chosen |
[
{
"from": "system",
"value": "Disable Mathematic until we can fix it\n"
},
{
"from": "human",
"value": "name \"osx-nsm\"\ndescription \"This role is specific to machines require the software loadset for the Natural Sciences & Mathematics\"\n\nrun_list \"role[osx-classlab]\",\n \"recipe... | ruby | chosen |
[
{
"from": "system",
"value": "Allow underscore in github version numbers.\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Ack < Formula\n url \"https://github.com/petdance/ack/tarball/1.93_02\"\n version '1.93_02'\n md5 'b468ce41a949fd957dc9b6aee74782e9'\n homepage 'http://bett... | ruby | chosen |
[
{
"from": "system",
"value": "Add swift version to podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n \n s.name = \"Tabman\"\n s.platform = :ios, \"9.0\"\n s.requires_arc = true\n\n s.version = \"1.4.0\"\n s.summary = \"A powerful paging view controller... | ruby | chosen |
[
{
"from": "system",
"value": "Use rack body proxy instead of custom body proxy.\n"
},
{
"from": "human",
"value": "module Flipper\n module Middleware\n class LocalCache\n class Body\n def initialize(target, flipper, original)\n @target = target\n @flipper = f... | ruby | chosen |
[
{
"from": "system",
"value": "Make it so log job never deletes a file"
},
{
"from": "human",
"value": "class LogJob < ApplicationJob\n queue_as :default\n\n def perform(*args)\n log_files = %w[ cron delayed_job ]\n log_files << \"#{ Rails.env }\"\n\n log_files.each do |log_file|\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add Standard ML New Jersey, version 110.77\n"
},
{
"from": "gpt",
"value": "class Smlnj < Cask\n version '110.77'\n sha256 '77265ce1bdbca3e9c9b3053195503bf2bffafbba196596679fb64d9ceb4e25ee'\n\n url \"http://smlnj.cs.uchicago.edu/dist/working/#{version}/smlnj-x86-#... | ruby | chosen |
[
{
"from": "system",
"value": "Check for valid result in cli wrapper\n"
},
{
"from": "human",
"value": "require 'thor'\nrequire 'nasdaq_scraper'\n\nmodule NasdaqScraper\n\tmodule Cli\n\t\tclass Application < Thor\n\t\t\t\n\t\t\tdesc 'scrape [URL]', 'Scrape the [URL] for NASDAQ index'\n\t\t\tdef s... | ruby | chosen |
[
{
"from": "system",
"value": "Change default scope to be public.\n"
},
{
"from": "human",
"value": "require 'omniauth/strategies/oauth2'\nmodule OmniAuth\n module Strategies\n class Spiceworks < OmniAuth::Strategies::OAuth2\n DEFAULT_SCOPE = 'default'\n option :name, 'spiceworks'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use the right method to wait until we're done."
},
{
"from": "human",
"value": "require 'thread_safe'\nrequire 'sprockets/manifest'\nrequire 'thread/pool'\n\nSprockets::Manifest.class_eval do\n def assets\n @data['assets'] = ThreadSafe::Hash.new(@data['assets'] ... | ruby | chosen |
[
{
"from": "system",
"value": "Add some validations to Movie model (title, format, length, and release_year)\n"
},
{
"from": "human",
"value": "class Movie < ActiveRecord::Base\n belongs_to :format\nend\n"
},
{
"from": "gpt",
"value": "class Movie < ActiveRecord::Base\n validate... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to exclude new AppKit classes\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Differ\"\n s.version = \"1.1.1\"\n s.summary = \"A very fast difference calculation library written in Swift.\"\n s.homepage =... | ruby | chosen |
[
{
"from": "system",
"value": "Fix strange bug where performances had wrong associated host\n\nFor some reason, including the predecessor's associations here would\nlead to many performances having the wrong predecessor host name and\ncountry.\n"
},
{
"from": "human",
"value": "module Api::V1\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add Peter Wagenet to authors\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n$:.unshift File.expand_path('../lib', __FILE__)\nrequire 'github_downloads/version'\n\nGem::Specification.new do |s|\n s.name = \"github_downloads\"\n s.version = G... | ruby | chosen |
[
{
"from": "system",
"value": "Update activities controller test show\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nmodule Backend\n class ActivitiesControllerTest < ActionController::TestCase\n test_restfully_all_actions family: { mode: :index, name: :mussel_farming, format: :j... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs for variable length argument\n"
},
{
"from": "human",
"value": "\nrequire_relative '../lib/message_filter'\n\ndescribe MessageFilter, 'with argument \"foo\"' do\n subject { MessageFilter.new('foo') }\n it { is_expected.to be_detect('hello from foo') }\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add profile spec as is from branch `user-merge-tool`\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Profile do\n it 'delegate equality notions to user' do\n user1 = User.new\n user2 = User.new\n profile1 = Profile.new user1\n profile2... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary guard condition and exception\n\nI can't see how `Services.attachment_api` would ever not return\nsomething and so I think this guard condition is unnecessary.\n\nWhat's more the raising of a `ApiClientNotPresent` exception is not\ncovered in the tests and th... | ruby | chosen |
[
{
"from": "human",
"value": "Add unit tests for Exposures"
},
{
"from": "gpt",
"value": "RSpec.describe Dry::View::Exposures do\n subject(:exposures) { described_class.new }\n\n describe \"#exposures\" do\n it \"is empty by defalut\" do\n expect(exposures.exposures).to be_empty\n en... | ruby | chosen |
[
{
"from": "system",
"value": "Move title up a bit\n"
},
{
"from": "human",
"value": "class Document\n\n PREAMBLE = '''\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{graphicx}\n\\usepackage[normalem]{ulem}\n\\usepackage[margin=1in]{geometry}\n\\usepackage{cancel}\n\\usepackage{enumer... | ruby | chosen |
[
{
"from": "human",
"value": "Add 'You Look Wonderful Tonight'\n"
},
{
"from": "gpt",
"value": "# Lesson 14 - 'Slash' chords and Bass runs\n# You Look Wonderful Tonight - Eric Clapton\nrequire \"#{Dir.home}/ruby/pianoforall/lesson14/slash_split_chord\"\nuse_synth :piano\nBEAT = 0.55\n\nslash_spli... | ruby | chosen |
[
{
"from": "system",
"value": "Raise custom 422 type error when failed parsing json.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'faraday'\nrequire 'github_api/error'\n\nmodule Github\n class Response::RaiseError < Faraday::Response::Middleware\n\n def on_complete(env)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Enhance AnsibleTower Job to process job options\n\nExtract common code to OrchestrationStackOptionsMixin to be shared by OrchestrationStack and AnsibleTower Job\n\n\n(transferred from ManageIQ/manageiq@9030ea98a5b23e0c06fb497283336402bb6a4f6e)\n"
},
{
"from": "human",
... | ruby | chosen |
[
{
"from": "system",
"value": "Add dev libs for fedora\n"
},
{
"from": "human",
"value": "# selenium-webdriver includes ffi which requires the following dependencies\ncase node[:platform_family]\nwhen 'debian'\n %w(gcc libffi-dev make).each do |pkg|\n package pkg do\n action :nothing\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update PHPStorm EAP to 138.1161"
},
{
"from": "human",
"value": "class PhpstormEap < Cask\n url 'http://download.jetbrains.com/webide/PhpStorm-EAP-138.940.dmg'\n homepage 'http://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program'\n version '... | ruby | chosen |
[
{
"from": "system",
"value": "Use STATUS_TO_RETURN_CODES for more readable specs\n"
},
{
"from": "human",
"value": "require_relative 'support/spec_helper'\n\ndescribe Cli do\n before(:all) do\n # Disable stdout and stderr\n @original_stderr = $stderr\n @original_stdout = $stdout\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add query parameters to proxy\n"
},
{
"from": "human",
"value": "class ProxyController < ApplicationController\n include ReverseProxy::Controller\n\n skip_authorization_check\n skip_before_action :verify_authenticity_token\n\n def index\n path = params[:p... | ruby | chosen |
[
{
"from": "system",
"value": "Correct author email address in 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 'simple_xlsx_reader/version'\n\nGem::Specification.new ... | ruby | chosen |
[
{
"from": "system",
"value": "Modify Style/CaseEquality to use NodePattern\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule RuboCop\n module Cop\n module Style\n # This cop checks for uses of the case equality operator(===).\n class CaseEquality < Cop\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Front.app with new download URL.\n"
},
{
"from": "human",
"value": "cask :v1 => 'front' do\n version :latest\n sha256 :no_check\n\n url 'http://dl.frontapp.com/front-latest.zip'\n name 'Front'\n homepage 'https://frontapp.com/'\n license :gratis\n\n ap... | ruby | chosen |
[
{
"from": "system",
"value": "Update Sonos Controller from version 4.2 to 4.3"
},
{
"from": "human",
"value": "class Sonos < Cask\n url 'http://update.sonos.com/software/mac/mdcr/SonosDesktopController42.dmg'\n homepage 'http://www.sonos.com/'\n version '4.2'\n sha256 '91c4d7568e34c74406efdd... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the info in the Gemspec"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"boombox/version\"\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Use custom attr reader for labels data.\n\nExtracting labels at initialize time is not the way to do it: this is not deserialization friendly."
},
{
"from": "human",
"value": "module ActiveMerchant #:nodoc:\n module Shipping\n\n # This is UPS specific for now; t... | ruby | chosen |
[
{
"from": "system",
"value": "Add metadata formatting to fix HOT bug on remote source endpoints\n"
},
{
"from": "human",
"value": "class SparkleFormation\n class Translation\n class Rackspace < Heat\n\n MAP = Heat::MAP\n MAP[:resources]['AWS::EC2::Instance'][:name] = 'Rackspace::Cl... | ruby | chosen |
[
{
"from": "system",
"value": "Fix extra empty line making rubocop unhappy.\n"
},
{
"from": "human",
"value": "class LegacyPassApiKeys < Mongoid::Migration\n def self.up\n Api.all.each do |api|\n if(api.settings.present?)\n api.settings.pass_api_key_header = true\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add oauth and typhoeus gem 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 'apple_dep_client/version'\n\nGem::Specification.new do |spec|\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Remove the '[Archived]' title prefix from HTML attachments\n\nhttps://trello.com/c/qZgjF7EN/472-rename-withdrawn-and-archived-html-publications\n\nSome users have manually added '[Archived]' to the title of HTML\nattachments, but the system already handles this. The result is we... | ruby | chosen |
[
{
"from": "system",
"value": "Change pod version -> 1.5.0\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'Framer'\n s.version = '1.4.3'\n s.summary = 'Comfortable syntax for working with frames'\n s.description = <<-DESC\nFramer is a goo... | ruby | chosen |
[
{
"from": "system",
"value": "Create gems directory in new applications.\n"
},
{
"from": "human",
"value": "require \"merb-gen/helpers\"\nrequire \"merb-gen/base\"\n\nclass MerbGenerator < Merb::GeneratorBase\n \n def initialize(args, runtime_options = {})\n @base = File.dirname(__FILE__)\n... | ruby | chosen |
[
{
"from": "human",
"value": "Unpublish pages added for Self Assessment A/B test\n\nAdd a rake task to unpublish the three pages we added as part of the\nSelf Assessment A/B test. That test finished on 17/11/2017 and these\nparticular pages are no longer needed.\n"
},
{
"from": "gpt",
"value": "n... | ruby | chosen |
[
{
"from": "human",
"value": "Add simple Podspec to the repo\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |s|\n s.name = 'Result'\n s.version = '0.6.0-beta.2'\n s.summary = 'Swift type modelling the success/failure of arbitrary operations'\n\n s.homepage = 'https://... | ruby | chosen |
[
{
"from": "system",
"value": "Check if there is a next page\n"
},
{
"from": "human",
"value": "require \"best_gems_client/version\"\nrequire \"open-uri\"\nrequire \"nokogiri\"\n\nclass BestGemsClient\n VERSION = \"0.0.1\"\n\n def get(path)\n open(\"http://bestgems.org/#{path}\", \"User-Agen... | ruby | chosen |
[
{
"from": "system",
"value": "Add runtime dependency for rainbow gem\n"
},
{
"from": "human",
"value": "require_relative 'lib/restacker'\n\nGem::Specification.new do |s|\n s.name = 'restacker'\n s.version = VERSION\n s.date = Time.now.utc.strftime(\"%Y-%m-%d\")\n s.summary = 'A tool to... | ruby | chosen |
[
{
"from": "system",
"value": "Remove a stray double quote\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nclass String\n\n DEFAULT_REDACTION = '[REDACTED]'\n DEFAULT_SANITIZATION = '█'\n\n # Returns the redacted string e.g.\n # \"Lee Reilly\" becomes \"███ ██████\"\n def redact\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add symlink from CATS in GOPATH to CATS in cf-release\n\nWe normally develop out of the cf-acceptance-tests that\nare vendored in with cf-release on CAPI and our aliases\nassume we are using that one.\n\nThis will hopefully fix an issue where fasd_cd (z command)\ntakes us into t... | ruby | chosen |
[
{
"from": "system",
"value": "Add version route for tokenize\n"
},
{
"from": "human",
"value": "require 'sinatra/base'\nrequire 'sinatra/respond_with'\nrequire 'llt/tokenizer'\nrequire 'llt/core/api'\n\nclass Api < Sinatra::Base\n register Sinatra::RespondWith\n helpers LLT::Core::Api::Helpers... | ruby | chosen |
[
{
"from": "human",
"value": "Add functions for creating and emptying ships.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndef create_ships(number_of_players)\n smallest = number_of_players + 1\n largest = number_of_players + 3\n (smallest..largest).map {|i| Ship.new(i) }\nend\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add User Feature Test For Require Fields\n"
},
{
"from": "human",
"value": "require 'rails_helper'\nrequire 'capybara/rspec'\n\nRSpec.feature \"Users\", type: :feature do\n\tdescribe \"#sign_up\" do\n\t\tsubject(:vist_sign_up) do\n\t\t\tvisit(root_url)\n\t click_... | ruby | chosen |
[
{
"from": "system",
"value": "Update Git tag version to 1.0.1\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Mantle-HAL-Remix\"\n s.version = \"1.0.1\"\n s.summary = \"HAL Parser for Objective-C with added strong typing.\"\n s.homepage = \"https://... | ruby | chosen |
[
{
"from": "system",
"value": "Make attr_accessor one per line\n"
},
{
"from": "human",
"value": "module Floodgate\n class Config\n attr_accessor :app_id, :api_token, :filter_traffic, :redirect_url\n\n def initialize(app_id, api_token)\n @app_id = app_id\n @api_token = api_token\... | ruby | chosen |
[
{
"from": "system",
"value": "Add and pass test for timer done message\n"
},
{
"from": "human",
"value": "require 'rspec/given'\nrequire 'subtime/timer'\n\ndescribe Timer do\n\n let(:output) { double('output').as_null_object }\n\n describe \"#start\" do\n context \"without messages\" do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix class namespace problem in Thread.\n"
},
{
"from": "human",
"value": "module GirlScout\n class Thread < GirlScout::Object\n def attachments\n @attachments ||= (self[\"attachments\"] || []).map { |attr| Attachment.new(attr) }\n end\n\n def created_... | ruby | chosen |
[
{
"from": "system",
"value": "Fix blueprint for new Promise validation.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire 'machinist/active_record'\n\nUser.blueprint do\n name { \"user #{sn}\" }\n email { \"user#{sn}@email.com}\" }\n password { \"abcd1234\" }\n password_confirmat... | ruby | chosen |
[
{
"from": "system",
"value": "Work around travis build failing on REE.\n\nThe `include` cuke has a bunch of assertions that are failing\non REE since 1.8.7 does not guarantee hash ordering, so when\na hash is inspected, it could produce `{ :b => 2, :a => 1 }`\ninstead of `{ :a => 1, :b => 2 }`."
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Add in logic to shoot off texts to fam\n"
},
{
"from": "human",
"value": "require 'sinatra'\nrequire 'rack-flash'\nrequire 'dotenv'\nrequire 'twilio-ruby'\n\n# Configuration\nDotenv.load\nAPP_ROOT = Pathname.new(File.expand_path('../', __FILE__))\nconfigure do\n\tse... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor metaclass into a module\n"
},
{
"from": "human",
"value": "require \"facets/string/pathize\"\n\nmodule Using\n unless defined?(LOAD_SCHEMES)\n LOAD_SCHEMES = [:require, :load, :autoload]\n\n class << self\n def reset_default_load_scheme!\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make private activities readable with link"
},
{
"from": "human",
"value": "class Ability\n include CanCan::Ability\n\n def initialize(user)\n # Define abilities for the passed in user here.\n #\n # See the wiki for details:\n # https://github.com/ryan... | ruby | chosen |
[
{
"from": "system",
"value": "Add alias method for `DMM::Result` class\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire 'ruby-dmm/response/item'\n\nmodule DMM\n class Response\n attr_reader :request, :result\n\n def initialize(response)\n @request = response[:request][:p... | ruby | chosen |
[
{
"from": "system",
"value": "Add an environment task, useful for some reason\n\nConflicts:\n\n\tlib/specjour/db_scrub.rb\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nmodule Specjour\n module DbScrub\n\n begin\n require 'rake'\n extend Rake::DSL if defined?(Rake::DSL)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update usage of WorldLocationType in WorldLocationPresenter\n\nWe have changed the world location type to be an enum, so this reflects\nthose changes.\n"
},
{
"from": "human",
"value": "module PublishingApi\n class WorldLocationPresenter\n attr_accessor :item, :... | ruby | chosen |
[
{
"from": "system",
"value": "Check if Tuesday before performing task\n"
},
{
"from": "human",
"value": "desc \"This task is called by the Heroku scheduler add-on\"\ntask :tuesday_newsletter => :environment do\n TuesdayNewslettersJob.perform_now\nend"
},
{
"from": "gpt",
"value": ... | ruby | chosen |
[
{
"from": "system",
"value": "Add cleanup task for data"
},
{
"from": "human",
"value": "namespace :yossarian do\n desc 'Get festivals'\n task festivals: :environment do\n Lastfm::Events.factory = Yossarian::EventFactory\n\n Lastfm::Events.get(location: :europe, festivalsonly: 1, limit: ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in rake task\n"
},
{
"from": "human",
"value": "namespace :soshigal do\n desc 'Recache the number of images per album'\n task :recache_image_count => :environment do\n Album.all.each do |album|\n album.update_attribute(:image_count, album.images.c... | ruby | chosen |
[
{
"from": "system",
"value": "Make Primitivize extensible, useful for dates/timestamps. Releasing v0.1.0\n"
},
{
"from": "human",
"value": "module Yaks\n class Primitivize\n include Concord.new(:object)\n\n def self.call(object)\n new(object).call\n end\n\n def call\n case... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Reorder keys in coverage metrics results\"\n\nThis reverts commit 9b18ccd7c07e0c5bfac670a27fbcc98f137ad8eb.\n"
},
{
"from": "human",
"value": "module BuildLogParser\n module CoverageMatcher\n PATTERNS = {\n rspec: /\\s([\\d]+) \\/ ([\\d]+) LOC \... | ruby | chosen |
[
{
"from": "system",
"value": "Indent inserted html import better\n"
},
{
"from": "human",
"value": "module Emcee\n module Generators\n class InstallGenerator < Rails::Generators::Base\n source_root File.expand_path(\"../templates\", __FILE__)\n\n desc \"Adds an html import tag into... | ruby | chosen |
[
{
"from": "system",
"value": "Add seed customer and address\n"
},
{
"from": "human",
"value": "# This file should contain all the record creation needed to seed the database with its default values.\n# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).... | ruby | chosen |
[
{
"from": "system",
"value": "Reset column informations on models\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n# truncate all tables for test and development\n\n# TODO: This is the wrong place for seed data, for now\n# it has been commented out, but this needs a new home\nrequire ... | ruby | chosen |
[
{
"from": "human",
"value": "Add rspec tests for Google OAuth provider in UAA\n"
},
{
"from": "gpt",
"value": "RSpec.describe \"Google OAuth\" do\n let(:properties) { manifest.fetch(\"instance_groups.uaa.jobs.uaa.properties\") }\n\n describe \"when user creation is not enabled\" do\n let(:m... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to use spec.version instead of literal\n"
},
{
"from": "human",
"value": "\nPod::Spec.new do |s|\n\n s.name = \"SwiftyAttributes\"\n s.version = \"4.2.0\"\n s.summary = \"A Swifty API for attributed strings.\"\n\n s.description ... | ruby | chosen |
[
{
"from": "system",
"value": "Move Translation class inside Budget::Group\n\nThe reason to move Translation class is explained here [1]\n\n[1] https://github.com/consul/consul/pull/3359/commits/106649a8a598fb4b1389e174fdd6e70f51767af2\n"
},
{
"from": "human",
"value": "class Budget\n class Grou... | ruby | chosen |
[
{
"from": "system",
"value": "Add latest scope alias recent\n"
},
{
"from": "human",
"value": "module Kennedy\n class Post < Georgia::Page\n\n has_and_belongs_to_many :categories\n\n scope :recent, order(:published_at)\n\n searchable do\n text :title, stored: true do\n cont... | ruby | chosen |
[
{
"from": "system",
"value": "Add value method to order details\n"
},
{
"from": "human",
"value": "class OrderDetail < ActiveRecord::Base\n belongs_to :order\n belongs_to :item\n\n after_commit :update_item\n\n def update_item\n # Whenever an OrderDetail is created/modified we want to upd... | ruby | chosen |
[
{
"from": "system",
"value": "Drop workaround for ruby 2.0 support\n"
},
{
"from": "human",
"value": "module CoreExtensions\n module Regexp\n # A wrapper module to namespace/isolate the Regexp#examples and Regexp#random_example\n # monkey patches.\n # No core classes are extended in an... | ruby | chosen |
[
{
"from": "system",
"value": "Remove commented out code from Calculator.register\n"
},
{
"from": "human",
"value": "module Spree\n class Calculator < ActiveRecord::Base\n belongs_to :calculable, :polymorphic => true\n\n # This method must be overriden in concrete calculator.\n #\n #... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to use subspec of KSCrash\n"
},
{
"from": "human",
"value": "require 'json'\n\nPod::Spec.new do |s|\n # NPM package specification\n package = JSON.parse(File.read(File.join(File.dirname(__FILE__), 'package.json')))\n\n s.name = 'SentryRea... | ruby | chosen |
[
{
"from": "system",
"value": "[Owner] Set charset of email to UTF-8.\n"
},
{
"from": "human",
"value": "module Pod\n module TrunkApp\n class Owner < Sequel::Model\n self.dataset = :owners\n plugin :timestamps\n\n one_to_many :sessions, :class => 'Pod::TrunkApp::Session'\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update index order to be able to use where clause with 'key' only\n"
},
{
"from": "human",
"value": "::Sequel.migration do\n change do\n alter_table(:uuid_resources) do\n add_index :uuid \n add_index [:model_class, :key]\n end\n end\nend\n"
},
... | ruby | chosen |
[
{
"from": "system",
"value": "Update pod spec to v1.7.0\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"SGHTTPRequest\"\n s.version = \"1.7.0\"\n s.summary = \"A lightweight AFNetworking wrapper for making HTTP requests with minimal code, and callback... | ruby | chosen |
[
{
"from": "system",
"value": "Add line at the end of file\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n# frozen_string_literal: true\n\nrequire 'bundler/setup'\nrequire 'mote_sms'\n\nrequire 'irb'\nIRB.start(__FILE__)"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n# f... | ruby | chosen |
[
{
"from": "human",
"value": "Add unit tests for slave recipe"
},
{
"from": "gpt",
"value": "# encoding: utf-8\n\nrequire 'spec_helper'\n\ndescribe 'mesos::slave' do\n before do\n File.stub(:exist?).and_call_original\n File.stub(:exist?).with('/usr/local/sbin/mesos-master').and_return(fals... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to reflect latest release\n\n* In the future we should do this on every release"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"SPTDataLoader\"\n s.version = \"1.0.0\"\n s.summary = \"SPTDataLoader is Sp... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude test files from the gem package\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"active_decorator/version\"\n\nGem::Specification.new do |s|\n s.name = \"active_decorator\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec source files path\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |spec|\n spec.name = \"UIImageColors\"\n spec.version = \"1.1.1\"\n spec.license = \"MIT\"\n spec.summary = \"iTunes style color fetcher for UIImage.\"\n spe... | ruby | chosen |
[
{
"from": "system",
"value": "Use unified 'diff' format in an effort to troubleshoot the failed RunCodeRun system test that succeeds on my local Ruby v1.9.1 installation >:-<"
},
{
"from": "human",
"value": "require 'test/unit'\nunless private_methods.include?(:require_relative)\n require File.... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor Lint/DuplicateCaseCondition cop with Set\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule RuboCop\n module Cop\n module Lint\n # This cop checks that there are no repeated conditions\n # used in case 'when' expression... | ruby | chosen |
[
{
"from": "system",
"value": "Create a beacon controller edits\n"
},
{
"from": "human",
"value": "class BeaconsController < ApplicationController\n def index\n @beacons = Beacon.all\n end\n\n def show\n end\n\n def new\n @beacon = Beacon.new\n end\n\n def create\n @beacon = Beaco... | ruby | chosen |
[
{
"from": "system",
"value": "Add logic to prevent user from signing in as user1 and 2\n"
},
{
"from": "human",
"value": "class PlayersController < ApplicationController\n def new\n end\n\n def create\n \t@current_player2 = User.find_by(email: player_params[:email])\n \tif @current_player2 ... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.