conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add missing docs for debug\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n# frozen_string_literal: true\n#\n# Copyright (c) 2016 Mark Lee and contributors\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy of this softw... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify Error implementation, only a struct is needed at this point\n"
},
{
"from": "human",
"value": "##\n# An error holds a message_id, a line and a message\n#\n# message_id... corresponds to the W3C messages list from http://validator.w3.org/docs/errors.html\n# ... | ruby | chosen |
[
{
"from": "system",
"value": "Add source and issues URLs\n"
},
{
"from": "human",
"value": "name 's3_dir'\nmaintainer 'EverTrue, Inc.'\nmaintainer_email 'devops@evertrue.com'\nlicense 'Apache v2.0'\ndescription 'Installs/Configures s3_dir'\nlong_description 'Insta... | ruby | chosen |
[
{
"from": "system",
"value": "Update dependency on app cookbook\n\nRefs #15"
},
{
"from": "human",
"value": "name \"application_nginx\"\nmaintainer \"Opscode, Inc.\"\nmaintainer_email \"cookbooks@opscode.com\"\nlicense \"Apache 2.0\"\ndescription \"Deploys and con... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up & update dependency pkgs\n\nFolly & mcrouter have added some dependencies, and clarified others.\n\nAdditionally, this list avoids duplicating deps that the\nbuild-essential\ncookbook provides.\n"
},
{
"from": "human",
"value": "include_recipe 'build-essent... | ruby | chosen |
[
{
"from": "system",
"value": "Fix to indicate which columns to update\n"
},
{
"from": "human",
"value": "module RubyEventStore\n module ROM\n module SQL\n module Changesets\n class UpdateEvents < ::ROM::Changeset::Create\n include ROM::Changesets::UpdateEvents::Defaults\... | ruby | chosen |
[
{
"from": "system",
"value": "Update thor requirement from ~> 0.14 to >= 0.14, < 2.0 in /cmd\n\nUpdates the requirements on [thor](https://github.com/wycats/thor) to permit the latest version.\n- [Release notes](https://github.com/wycats/thor/releases)\n- [Changelog](https://github.com/erikhuda/thor/blob/ma... | ruby | chosen |
[
{
"from": "system",
"value": "Allow for mongoid 3 dependencies\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/mongoid-sequence/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Gonçalo Silva\"]\n gem.email = ... | ruby | chosen |
[
{
"from": "system",
"value": "Update the Cucumber dependency so that the step helper is used rather than Given/When/Then substeps\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"json_spec/version\"\n\nGem::Specification.new ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow for fog-aws 1.0 - 3.0\n\nGive a range so this still works with older DK releases\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$LOAD_PATH.push File.expand_path(\"../... | ruby | chosen |
[
{
"from": "system",
"value": "Update need id to new format\n\nUsing 100233: Find out the correct trade tariffs for items I am\nimporting or exporting.\n\nSeems like the closest match as B659 is not longer there\n"
},
{
"from": "human",
"value": "require 'ostruct'\n\nnamespace :panopticon do\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rich rake task assets:precompile, to store non digest versions of assets. Because of sprockets version 3 use fingerprints with 64 chars length\n"
},
{
"from": "human",
"value": "require 'fileutils'\n\ndesc \"Create nondigest versions of all ckeditor digest asset... | ruby | chosen |
[
{
"from": "system",
"value": "Allow resource objects to propagating rendering context\n"
},
{
"from": "human",
"value": "module Tumblargh\n module API\n\n class Base\n \n def initialize(attrs={})\n self.attributes = attrs\n end\n\n attr_reader :attributes\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a new (non-CBC) profiler script\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby -rprofile\nrequire ARGV[0]||\"./core\"\nrequire \"./rijndael\"\nrequire \"crypt/cbc\"\n\nputs \"Encrypting a fairly big block of text...\\n\";\n\nhuge_ptext = File.open(\"bwul... | ruby | chosen |
[
{
"from": "system",
"value": "Use real Rummageable implementation if the host has been set.\n\nThis is more convenient when developing against a local rummager instance.\n"
},
{
"from": "human",
"value": "Rummageable.rummager_service_name = \"whitehall-search\"\nRummageable.path_prefix = Whiteha... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.1.0.4 to 0.1.0.5\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'evt-async_invocation'\n s.version = '0.1.0.4'\n s.summary = \"Return value for async method that is accide... | ruby | chosen |
[
{
"from": "system",
"value": "Remove deprecated rdoc from gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |s|\n s.name = \"declarative_authorization\"\n s.version = \"1.0.0.pre\"\n\n s.required_ruby_version = \">= 1.8.6\"\n s.authors = [\"Ste... | ruby | chosen |
[
{
"from": "system",
"value": "Add setting not generate helper and assets\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\n# Pick the frameworks you want:\nrequire \"active_record/railtie\"\nrequire \"action_controller/railtie\"\nrequire \"action_mailer/railtie\... | ruby | chosen |
[
{
"from": "system",
"value": "Allow docsdoctor.org to serve codetriage content\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\nrequire 'rails/all'\n\nrequire 'statsd'\n\n# Require the gems listed in Gemfile, including any gems\n# you've limited to :test, :deve... | ruby | chosen |
[
{
"from": "system",
"value": "Fix checksum in \"4K YouTube to MP3.app\" Cask\n\nIt seems that the download package has recently been changed, although the version number has not been bumped. This commit corrects the sha256 hash."
},
{
"from": "human",
"value": "cask :v1 => '4k-youtube-to-mp3' do... | ruby | chosen |
[
{
"from": "human",
"value": "Add help option to command line. Refactor gsub/split combo.\n"
},
{
"from": "gpt",
"value": "class Math24CLI\n attr_reader :operators\n \n def initialize\n @operators = [\"+\", \"-\", \"*\", \"/\"]\n end\n\n def run()\n puts \"Welcome to Math 24 solver! Pl... | ruby | chosen |
[
{
"from": "system",
"value": "Update sniff dependency to 1.x\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"pet/version\"\n\nGem::Specification.new do |s|\n s.name = %q{pet}\n s.version = BrighterPlanet::Pet::VERSION\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing test case for rescue body\n"
},
{
"from": "human",
"value": "require \"rdg/control/rescue_body\"\n\nmodule RDG\n module Control\n describe RescueBody do\n let(:ast) { FakeAst.new(:resbody, children: [:ts, :e, 1, 2, 3]) }\n subject { RescueB... | ruby | chosen |
[
{
"from": "system",
"value": "Fix student test so build passes\n"
},
{
"from": "human",
"value": "require 'rails_helper'\nrequire 'shoulda-matchers'\nRSpec.describe Student, type: :model do\n it { should belong_to :user }\n it { should validate_presence_of :first_name }\n it { should validate... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spec to return sorted set\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 'returns initia... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor wait for helper to speed up tests.\n"
},
{
"from": "human",
"value": "module NetHttp2\n\n module ApiHelpers\n\n def wait_for(seconds=2, &block)\n (0..seconds).each do\n break if block.call\n sleep 1\n end\n end\n end\nend\n"
... | ruby | chosen |
[
{
"from": "system",
"value": "Fix USE statement execution when testing on impala/hive\n\nIssuing the USE query once via Datase#run only works if only one\nconnection is ever created. While that may be true for the current\ntests, this will bite us later if we ever have multithreaded access\nin the tests or... | ruby | chosen |
[
{
"from": "system",
"value": "Set play to be a binary executable\n\ngit-svn-id: 9867ed3c45c5a294c22e66a9d3216297713dba95@202 ca9fbce6-ab17-0410-af20-b66f06baff09\n"
},
{
"from": "human",
"value": "# Install hook code here\nrequire 'fileutils'\n\n# get the base paths of THE HOFF and the public di... | ruby | chosen |
[
{
"from": "system",
"value": "Enable -Wextra and disable unused parameter and missing field initializer warnings\n"
},
{
"from": "human",
"value": "require 'mkmf'\n$CFLAGS << ' -Wall -Werror'\ncompiler = RbConfig::MAKEFILE_CONFIG['CC']\nif ENV['DEBUG'] == 'true' && compiler =~ /gcc|g\\+\\+/\n $... | ruby | chosen |
[
{
"from": "human",
"value": "Add trigger to update User from user_full_details\n"
},
{
"from": "gpt",
"value": "class UpdateUserFromUserFullDetails < ActiveRecord::Migration\n def up\n execute <<-SQL\n CREATE TRIGGER update_user_from_user_details\n INSTEAD OF UPDATE ON \"1\".user_full_... | ruby | chosen |
[
{
"from": "human",
"value": "Allow arbitrary length bookmark names and urls\n\nfixes FOO-2891\n\nChange-Id: I9430b2ef463341739ac93fd0718f78c2a1e18c6e\nReviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/293834\nTested-by: Service Cloud Jenkins <9144042a601061f88f1e1d7a1753ea3e2972119d@instructure.com... | ruby | chosen |
[
{
"from": "system",
"value": "Add a nice big warning for the lazy people\n"
},
{
"from": "human",
"value": "require 'active_support/core_ext/class/attribute'\n\nmodule ElasticRecord\n class Config\n class_attribute :servers\n\n class_attribute :connection_options\n self.connection_opti... | ruby | chosen |
[
{
"from": "human",
"value": "Create a PHP 5.5 recipe"
},
{
"from": "gpt",
"value": "include_recipe \"applications::default\"\ninclude_recipe \"applications::apache\"\n\nif platform?('mac_os_x')\n applications_tap \"josegonzalez/php\"\n applications_tap \"homebrew/dupes\"\n\n package \"p... | ruby | chosen |
[
{
"from": "system",
"value": "Remove alias_method_chain from Process override\n"
},
{
"from": "human",
"value": "class << Process\n def pid_with_safe\n warn \"Remove me: #{__FILE__}:#{__LINE__}. Safe level 2-4 are no longer supported as of ruby 2.3!\" if RUBY_VERSION >= \"2.3\"\n $SAFE <... | ruby | chosen |
[
{
"from": "system",
"value": "Include .jar in gem on JRuby\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/red25519/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Tony Arcieri\"]\n gem.email = [\"tony.arcie... | ruby | chosen |
[
{
"from": "system",
"value": "Use the new warmer interface in the cache worker.\n\n`CacheWorker#perform` now takes a warmer class as an argument and uses\nthe new warmer interface to warmer the cache.\n"
},
{
"from": "human",
"value": "module Firebolt\n class CacheWorker\n include ::SuckerPu... | ruby | chosen |
[
{
"from": "system",
"value": "Add options for GET request\n"
},
{
"from": "human",
"value": "module HearthstoneApi\n class Cards < BaseModel\n def all\n get \"/cards\"\n end\n end\nend\n"
},
{
"from": "gpt",
"value": "module HearthstoneApi\n class Cards < BaseModel\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use ssh for git clones\n\nFixes #56\n"
},
{
"from": "human",
"value": "require \"jarvis/error\"\n\nmodule Jarvis module GitHub class Project\n class InvalidURL < ::Jarvis::Error; end\n def self.parse(url)\n uri = URI.parse(url)\n _, organization, name, *_ = ... | ruby | chosen |
[
{
"from": "system",
"value": "Enable setting scrape and page_number from CLI\n"
},
{
"from": "human",
"value": "require 'thor'\nrequire_relative 'rune-optimizer.rb'\n\nclass RuneCLI < Thor\n desc 'optimize', 'optimize runes'\n option :scrape, type: :boolean, default: :false\n def optimize(scr... | ruby | chosen |
[
{
"from": "system",
"value": "Raise configuration errors on missing token or slug\n"
},
{
"from": "human",
"value": "class Service::AppHarbor < Service\n string :application_slug, :token\n \n def receive_push\n slug = data['application_slug']\n token = data['token']\n\n create_build_... | ruby | chosen |
[
{
"from": "system",
"value": "Add note and optional install dependency jktld\n"
},
{
"from": "human",
"value": "class Jktebop < Formula\n homepage \"http://www.astro.keele.ac.uk/jkt/codes/jktebop.html\"\n url \"http://www.astro.keele.ac.uk/jkt/codes/jktebop-v34.tgz\"\n sha1 \"ea08d44eafb337e7... | ruby | chosen |
[
{
"from": "system",
"value": "Add variable-methods file with both finished mini-challenges from Chris Pine book\n"
},
{
"from": "human",
"value": "puts \"What\\'s your first name?\"\nfirst_name = gets.chomp\nputs \"What\\'s your middle name?\"\nmiddle_name = gets.chomp\nputs \"What\\'s your last... | ruby | chosen |
[
{
"from": "system",
"value": "Use Hash default value of 0 to simplify things.\n"
},
{
"from": "human",
"value": "module ApplicationHelper\n\n def sortable(column, title = nil)\n title ||= column.titleize\n direction = column == params[:sort] && params[:direction] == \"asc\" ? \"desc\" : \... | ruby | chosen |
[
{
"from": "human",
"value": "Add friend_request methods to friendship helpers file\n"
},
{
"from": "gpt",
"value": "module FriendshipsHelper\n def friend_request_accept\n # accepting a friend request is done by the recipient of the friend request.\n # thus the current user is identified b... | ruby | chosen |
[
{
"from": "system",
"value": "Move app id to constant\n"
},
{
"from": "human",
"value": "class SteamApiService\n attr_reader :player\n\n def initialize(_player)\n @player = _player\n end\n\n def download_player_stats\n uri = URI(\"http://api.steampowered.com/ISteamUserStats/GetUserStat... | ruby | chosen |
[
{
"from": "system",
"value": "Copy mock to project mock directory\n"
},
{
"from": "human",
"value": "# Install hook code here\n"
},
{
"from": "gpt",
"value": "# Copy the mock imap.rb to the project's test directory\nFile.copy(File.join(File.dirname(__FILE__), 'test/mocks/imap.rb'), F... | ruby | chosen |
[
{
"from": "system",
"value": "Remove irrelevant tests from users controller\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe UsersController, type: :controller do\n it { should route(:get, '/users').to(action: :index) }\n it { should route(:get, '/posts/1').to(action... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade to newest RSPEC syntax"
},
{
"from": "human",
"value": "require \"rails_helper\"\n\ndescribe ProjectDecorator do\n using CapacityConverter\n\n Given(:project) { instance_double(Project, capacity: capacity, capacity_remaining: capacity_remaining) }\n Given... | ruby | chosen |
[
{
"from": "system",
"value": "Test tagging polymorphism on a payment method\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\n# An inheritance bug made these specs fail.\n# See config/initializers/spree.rb\nshared_examples \"taggable\" do |parameter|\n it \"uses the given parameter\... | ruby | chosen |
[
{
"from": "system",
"value": "Use rspec-mocks instead of mocha\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'puppet/property/boolean'\n\ndescribe Puppet::Property::Boolean do\n subject { described_class.new(resource: resource) }\n\n let(:resource) { mock('resource') }\n\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add new validator for all elements of an array\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nclass ArrayValidator < ActiveModel::EachValidator\n # Taken from https://gist.github.com/justalever/73a1b36df8468ec101f54381996fb9d1\n\n def validate_ea... | ruby | chosen |
[
{
"from": "system",
"value": "Add second trial to solution\n"
},
{
"from": "human",
"value": "# I worked on this challenge [by myself, with: ].\n# This challenge took me [#] hours.\n\n# Pseudocode\n\n\n\n# Initial Solution\n\ndef is_fibonacci?(num)\n if num <= 9\n true\n elsif\n end\n\nend... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug in Command::Matcher::Place args_extractor()\n\nargs_extractor() should return a Pose object but was returning an\nOpenStruct instance. Ultimately this makes it dependant on Pose, a\nbetter solution would be to re-design the Pose class to accept a\nhash of attributes to ... | ruby | chosen |
[
{
"from": "system",
"value": "Add context to practice specs"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nmodule Comptroller\n describe Practice do\n it 'retrieves all pratices' do\n expect(Practice.all.first).to eql(Practice.new(:export_url => 'https://optimis.duxware.com',... | ruby | chosen |
[
{
"from": "system",
"value": "Change value of worker_processes from String to Integer\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: rubygems_app\n# Recipe:: default\n# Copyright 2014, YOUR_COMPANY_NAME\n#\n# All rights reserved - Do Not Redistribute\n#\n#\n\n\nuser_account 'rubygems_ap... | ruby | chosen |
[
{
"from": "system",
"value": "Update dependency on GirFFI and other gems\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |s|\n s.name = \"gir_ffi-gtk\"\n s.version = \"0.6.0\"\n\n s.summary = \"GirFFI-based Ruby bindings for Gtk+ 2 and 3\"\n\n s.auth... | ruby | chosen |
[
{
"from": "system",
"value": "Bump dependency for data_objects to 0.9.12 and extlib to 0.9.11\n"
},
{
"from": "human",
"value": "require Pathname(__FILE__).dirname.expand_path / 'data_objects_adapter'\n\ngem 'do_mysql', '~>0.9.11'\nrequire 'do_mysql'\n\nmodule DataMapper\n module Adapters\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Move ActionMailerWithRequest::OptionsProxy.defaults initialization outside the class\n"
},
{
"from": "human",
"value": "module ActionMailerWithRequest\n\n class OptionsProxy\n\n mattr_accessor :defaults\n\n self.defaults = lambda do\n host = Thread.curre... | ruby | chosen |
[
{
"from": "system",
"value": "Set model id after finding\n"
},
{
"from": "human",
"value": "require 'mongo'\n\nmodule Femto\n module Model\n class MongoAdapter\n class << self\n\n attr_accessor :client\n attr_accessor :db\n\n def connect(options=nil)\n if o... | ruby | chosen |
[
{
"from": "system",
"value": "Increase ETag cache expiry time\n\nAs discussed in #29777.\n"
},
{
"from": "human",
"value": "module Gitlab\n module EtagCaching\n class Store\n EXPIRY_TIME = 10.minutes\n REDIS_NAMESPACE = 'etag:'.freeze\n\n def get(key)\n Gitlab::Redis.wi... | ruby | chosen |
[
{
"from": "system",
"value": "spec/ruby/library/yaml: Test YAML.unsafe_load instead of YAML.load in 3.1\n"
},
{
"from": "human",
"value": "class MatchYAMLMatcher\n\n def initialize(expected)\n if valid_yaml?(expected)\n @expected = expected\n else\n @expected = expected.to_yaml\... | ruby | chosen |
[
{
"from": "human",
"value": "Add a Channel Registering Welcomer that auto assigns \"Bots\"\n"
},
{
"from": "gpt",
"value": "####\n#\n# ElectroCode Channel Welcomer and AutoAssigner\n#\n####\n\nclass WelcomePlugin\n\tinclude Cinch::Plugin\n\tlisten_to :channel, method: :doWelcome\n\t\n\tdef doWe... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.15.0.0 to 0.15.1.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'evt-messaging'\n s.version = '0.15.0.0'\n s.summary = 'Messaging primitives for Eventide'\n s.descripti... | ruby | chosen |
[
{
"from": "system",
"value": "Package version increased from 0.24.0.0 to 0.25.0.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'evt-messaging'\n s.version = '0.24.0.0'\n s.summary = 'Common primitives for platform-specific messaging im... | ruby | chosen |
[
{
"from": "system",
"value": "Make optimizer cache key smaller\n"
},
{
"from": "human",
"value": "# Copyright © Mapotempo, 2013-2014\n#\n# This file is part of Mapotempo.\n#\n# Mapotempo is free software. You can redistribute it and/or\n# modify since you respect the terms of the GNU Affero Gene... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to delegation for json stuff. Nothing big.\n"
},
{
"from": "human",
"value": "require 'simple_uuid'\nrequire 'active_model'\nrequire 'active_support/json'\nrequire 'active_support/core_ext/object'\nrequire 'active_support/core_ext/hash/indifferent_access'\nre... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo: active_record -> activerecord\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n$:.unshift File.expand_path('../lib', __FILE__)\nrequire 'historyable/version'\n\nGem::Specification.new do |s|\n s.name = \"historyable\"\n s.version = ... | ruby | chosen |
[
{
"from": "system",
"value": "Update AdapterResponse to carry service_name\n"
},
{
"from": "human",
"value": "module Webhookr\n class AdapterResponse < Struct.new(:event_type, :payload); end\nend"
},
{
"from": "gpt",
"value": "module Webhookr\n class AdapterResponse < Struct.new(:s... | ruby | chosen |
[
{
"from": "system",
"value": "Add success message for check-if-bosh-lite-resource-exists\n\n[#129169949]\n\nSigned-off-by: James Wen <3b2f4c88287a5fcd7db73a67dd1ab82807db04ee@columbia.edu>\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n# encoding: utf-8\n\nrequire_relative '../../lib/st... | ruby | chosen |
[
{
"from": "system",
"value": "Enable protect_from_forgery with: :null_session for graphql controller\n"
},
{
"from": "human",
"value": "class GraphqlController < Pwb::ApplicationController\n # If accessing from outside this domain, nullify the session\n # This allows for outside API access whi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix JS Response for Unlocks Controller Show\n\nUpdate the UnlocksController show action to ensure that the return path\nwhen a user attempts to unlock their account via an email link is the\nroot path with a flash message to login.\n"
},
{
"from": "human",
"value": ... | ruby | chosen |
[
{
"from": "system",
"value": "Add att_accessible to FeaturedProductsBlock's setting_items\n\n(ActionItem3256)\n"
},
{
"from": "human",
"value": "class FeaturedProductsBlock < Block\n\n settings_items :product_ids, :type => Array, :default => []\n settings_items :groups_of, :type => :integer, :... | ruby | chosen |
[
{
"from": "system",
"value": "Optimize team name and member updates for teams with many results\n"
},
{
"from": "human",
"value": "class TeamObserver < ActiveRecord::Observer\n def after_destroy(team)\n Result.where(team_id: team.id).update_all(team_id: nil, team_name: nil, team_member: fals... | ruby | chosen |
[
{
"from": "system",
"value": "Index table feature test corrected\n"
},
{
"from": "human",
"value": "require 'rails_helper'\nfeature \"Index tables\" do\n background do\n auth_as_user\n publisher = create(:publisher, title: \"ABC books\")\n author = create(:author, publisher: publisher)... | ruby | chosen |
[
{
"from": "system",
"value": "Update dependency to HTTParty 0.9.X\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"httparty-icebox/version\"\n\nGem::Specification.new do |s|\n s.name = \"httparty-icebox\"\n s.version... | ruby | chosen |
[
{
"from": "system",
"value": "Change gem name to use hyphens, not underscore.\nNot a big diff, but more consistent with general gem-naming conventions.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.includ... | ruby | chosen |
[
{
"from": "system",
"value": "Bring the RSpec dependency up-to-date to include random ordering\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nGem::Specification.new do |gem|\n gem.name = 'unicode_math'\n gem.version = '1.0.0'\n\n gem.author = 'Collective Idea'\n gem.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Use stubbing here to ensure we trace the config block codepath\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\ndescribe PrxAuth::Rails::Configuration do\n\n subject { PrxAuth::Rails::Configuration.new }\n\n it 'initializes with a namespace defined by r... | ruby | chosen |
[
{
"from": "system",
"value": "Move installdir to /opt/zookeeper and make snapshotdir inside of whatever datadir is\n\n\nFormer-commit-id: c0e88f5abb0455236cf1bee2fdb37771ac51aa68 [formerly efb0f4b29750eeeca1e3f6b1d0f9da9fc1d5b929] [formerly b9a0f58862e0bbb50b4f743495580d2951f795d8 [formerly bc71f82139379f73... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify a couple of Ifs\n"
},
{
"from": "human",
"value": "IsZero = Car\nSucc = -> number { Cons[False][number] }\nPred = -> number { Cdr[number] }\n\n$zero = Cons[True][Noop]\n$one = Succ[$zero]\n$two = Succ[$one]\n$three = Succ[$two]\n$four = Succ[$three]\n\nVW =... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec so it contains setup for iOS and macOS platforms\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'DRObservableArray'\n s.version = '1.0.0'\n s.summary = 'Observable array and observable mutable array protocol wi... | ruby | chosen |
[
{
"from": "system",
"value": "Make gemspec compatible with Capybara 2.0\n\nThings seem to be working fine."
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |s|\n s.name = \"capybara-firebug\"\n s.version = \"1.2.1\"\n s.platform = Gem::Plat... | ruby | chosen |
[
{
"from": "human",
"value": "Add auth networks controller test\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\nrequire 'json'\n\ndescribe Api::Auth::NetworksController do\n let (:user) { create(:user) }\n let (:token) { OpenStruct.new.tap { |t| t.user_id = user.id } }\n let (:network)... | ruby | chosen |
[
{
"from": "system",
"value": "Add required ruby version to gemspec\n\nSharepoint uses `.dig` method, introduced in Ruby 2.3, so it is not\ncompatible with versions older than 2.3"
},
{
"from": "human",
"value": "Gem::Specification.new do |gem|\n gem.name = 'sharepoint'\n gem.version ... | ruby | chosen |
[
{
"from": "system",
"value": "Load seed contents if missing properties\n"
},
{
"from": "human",
"value": "require 'contracts'\nrequire 'java-properties'\n\nrequire_relative '../config'\nrequire_relative '../seed_properties'\n\nmodule StackatoLKG\n module HDP\n class BootstrapProperties\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add options hash to task hash\n"
},
{
"from": "human",
"value": "require 'capistrano/task_definition'\n\nmodule Capistrano\n class TaskDefinition\n attr_reader :service\n\n def service\n @service ||= Array(@options.delete(:service))\n end\n\n def t... | ruby | chosen |
[
{
"from": "system",
"value": "Sort README files for BadgeDetector\n"
},
{
"from": "human",
"value": "module InchCI\n module Worker\n module Build\n class BadgeDetector\n def self.in_readme?(repo, info)\n if filename = find_readme(repo)\n contents = File.read(f... | ruby | chosen |
[
{
"from": "system",
"value": "Add printer configuration for Evaluator::Transformer::Guard\n"
},
{
"from": "human",
"value": "module Morpher\n class Evaluator\n class Transformer\n\n # Transformer that allows to guard transformation process with a predicate on input\n class Guard < ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix error in log message\n"
},
{
"from": "human",
"value": "namespace :data_feeds do\n desc 'Load dark meteostat data'\n task :meteostat_loader, [:start_date, :end_date] => :environment do |_t, args|\n start_date = args[:start_date].present? ? Date.parse(args[:... | ruby | chosen |
[
{
"from": "system",
"value": "Increase version and add OS X platform\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'Lyt'\n s.version = '0.2'\n s.license = 'Apache 2.0'\n s.summary = 'A UIView category to make autolayout (more) readable and less verbose'\n s.homepage = '... | ruby | chosen |
[
{
"from": "system",
"value": "Create directory in create_file if it does not exist.\n\n\ngit-svn-id: 6a2c20c72ceedae27ecedb68e90cd4f115192a7a@237 5af023f1-ac1a-0410-98d6-829a145c37ef\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\nrequire 'ftools'\n\nmodule FileCreation\n def create_t... | ruby | chosen |
[
{
"from": "human",
"value": "Write test for whoami handler\n"
},
{
"from": "gpt",
"value": "require \"spec_helper\"\n\ndescribe Ellen::Handlers::Whoami do\n let(:robot) do\n Ellen::Robot.new\n end\n\n describe \"#ping\" do\n let(:from) do\n \"alice\"\n end\n\n let(:to) do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failing test due to old SC association\n\nFix failing test due to old SC association, test was using\nan old association, with direct relation to VM.\n"
},
{
"from": "human",
"value": "describe SecurityGroup do\n before do\n provider = FactoryGirl.create(:em... | ruby | chosen |
[
{
"from": "human",
"value": "Add small test for proposals (not 500).\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe ProposalsController, :type => :controller do\n describe '#generate' do\n it 'doesn\\'t die horribly when you try to use it' do\n lambda do\n pos... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for trying to reinitialize Module\n"
},
{
"from": "human",
"value": "require File.expand_path('../../../spec_helper', __FILE__)\nrequire File.expand_path('../fixtures/classes', __FILE__)\n"
},
{
"from": "gpt",
"value": "require File.expand_path(... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade one node to use a chef 12 client as a test\n"
},
{
"from": "human",
"value": "name \"eustace\"\ndescription \"Master role applied to eustace\"\n\ndefault_attributes(\n :networking => {\n :interfaces => {\n :internal_ipv4 => {\n :interface => ... | ruby | chosen |
[
{
"from": "human",
"value": "Add Art Director's Toolkit 5.1.1\n\nArt Director's Toolkit from Code Line.\n\nSigned-off-by: Daniel Bayley <a8999ec6105921a5e047cd21489d1a78436cfb40@me.com>\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'art-directors-toolkit' do\n version '5.5.1'\n sha256 '6b15214f... | ruby | chosen |
[
{
"from": "human",
"value": "Create Spotify Notifications v0.4.8 cask\n"
},
{
"from": "gpt",
"value": "class SpotifyNotifications < Cask\n url 'https://github.com/citruspi/Spotify-Notifications/releases/download/0.4.8/Spotify.Notifications.-.0.4.8.zip'\n homepage 'http://spotify-notifications.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix param filter for sms config saving\n"
},
{
"from": "human",
"value": "=begin rdoc\n=Description\nScaffolding for SMSConfiguration Model\n=end\nclass SmsConfigurationsController < ApplicationController\n before_filter :super_authenticate\n before_filter :get_ca... | ruby | chosen |
[
{
"from": "human",
"value": "Use ruby 2.2 parser until 2.3 is supported in ruby_parser.\n\nFixes errors on ruby 2.3.0-preview2 of the variety:\n```\n 1) ManageIQ::Providers::Kubernetes::ContainerManager::Refresher will perform a full refresh on k8s\n Failure/Error: @ems = FactoryGirl.create(:ems_kubern... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.