conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Change how OS is detected\n\n* Use host_os instead of arch\n"
},
{
"from": "human",
"value": "##############################################################################\n# File:: os.rb\n# Purpose:: Operating System detecting\n#\n# Author:: Jeff McAffee 06/... | ruby | chosen |
[
{
"from": "system",
"value": "Use ActiveSupport Reloader to continuously include modules on reloads\n"
},
{
"from": "human",
"value": "module Pay\n class Engine < ::Rails::Engine\n isolate_namespace Pay\n\n config.autoload_paths += Dir[\"#{config.root}/lib/**/\"]\n\n\n initializer 'pay... | ruby | chosen |
[
{
"from": "system",
"value": "Use the compare method by default\n\nThe compare method is better than critique, so let's merge the two and\nuse the compare logic whenever possible.\n"
},
{
"from": "human",
"value": "require \"rubycritic/source_locator\"\nrequire \"rubycritic/analysers_runner\"\nr... | ruby | chosen |
[
{
"from": "system",
"value": "Raise Unauthorized if authentication fail\n"
},
{
"from": "human",
"value": "module TokenAuthentication\n\n module ActsAsTokenAuthenticatable\n extend ActiveSupport::Concern\n\n included do\n private :generate_token\n end\n\n def ensure_authenticat... | ruby | chosen |
[
{
"from": "system",
"value": "Allow to configure Turbogradft in a way that doesn't compromise lazy loading\n"
},
{
"from": "human",
"value": "require \"rails\"\nrequire \"active_support\"\n\nrequire \"turbograft/version\"\nrequire \"turbograft/xhr_headers\"\nrequire \"turbograft/xhr_url_for\"\nr... | ruby | chosen |
[
{
"from": "system",
"value": "Support both 1.9.3 and 3.0.0\n\nAdded RVM GPG to download ruby 3.0.0 correctly in Travis\n"
},
{
"from": "human",
"value": "module MoneyRails\n module ActiveRecord\n module MigrationExtensions\n module Table\n def monetize(accessor, options={})\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix LDAP Auth bug: Allows anyone to login w/o password\n"
},
{
"from": "human",
"value": "def ldap_authenticate(username, password)\n name, domain = username.split('@')\n auth_conf = get_conf[:authentication][param_to_sym(domain)]\n\n if auth_conf\n if auth_co... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Story start date detection"
},
{
"from": "human",
"value": "module ActivePivot\n class Activity\n attr_accessor :remote_activity\n\n def initialize(remote_activity)\n self.remote_activity = remote_activity\n end\n\n def store\n story.updat... | ruby | chosen |
[
{
"from": "system",
"value": "Use strings as keys to remove dependency on ActiveSupport\n"
},
{
"from": "human",
"value": "module Emque\n module Consuming\n class Router\n def initialize\n self.mappings = {}\n end\n\n def map(&block)\n self.instance_eval(&block)\... | ruby | chosen |
[
{
"from": "system",
"value": "Define default attribute methods on Attributes::Base\n"
},
{
"from": "human",
"value": "module Aoede\n module Attributes\n\n # @abstract Include in any format specific module\n module Base\n extend ActiveSupport::Concern\n\n ATTRIBUTES = [:album, :a... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused methods from InOutPointer\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nmodule GirFFI\n # The InOutPointer class handles conversion between ruby types and\n # pointers for arguments with direction :inout and :out.\n #\n class In... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure $MSPEC_DEBUG is initialized\n"
},
{
"from": "human",
"value": "class ExceptionState\n attr_reader :description, :describe, :it, :exception\n\n def initialize(state, location, exception)\n @exception = exception\n\n @description = location ? \"An ex... | ruby | chosen |
[
{
"from": "system",
"value": "Use dynamic method dispatch for length validation\n"
},
{
"from": "human",
"value": "module Perpetuity\n class ValidationSet < Set\n\n def valid? object\n each do |validation|\n return false unless validation.pass?(object)\n end\n\n true\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Check for symbols in YamlConfig as well\n"
},
{
"from": "human",
"value": "require 'psych'\nrequire 'pathname'\n\nmodule Sequelizer\n class YamlConfig\n attr_reader :config_file_path\n\n class << self\n def pwd\n new\n end\n\n def home\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add geminabox as a dev dependency\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"mailchimp/version\"\n\nGem::Specification.new do |s|\n s.name = \"mailchimp\"\n s.version = Mailchi... | ruby | chosen |
[
{
"from": "system",
"value": "Use same 30 seconds satellite timeout for all actions\n\nSigned-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>\n"
},
{
"from": "human",
"value": "module Gitlab\n module Satellite\n class FileAction < Action\n attr_accessor ... | ruby | chosen |
[
{
"from": "system",
"value": "Check for numbers in a MRI 2.4 friendly manner.\n"
},
{
"from": "human",
"value": "module Riddle\n class Configuration\n class Searchd\n def valid?\n set_listen\n\n !( @listen.nil? || @listen.empty? || @pid_file.nil? )\n end\n\n priv... | ruby | chosen |
[
{
"from": "human",
"value": "Add in the initial gemspec for the project\n"
},
{
"from": "gpt",
"value": "require File.expand_path(File.dirname(__FILE__) + '/lib/buildr/ipojo/version')\n\nGem::Specification.new do |spec|\n spec.name = 'buildr-ipojo'\n spec.version = Buildr::Ipo... | ruby | chosen |
[
{
"from": "system",
"value": "Add default paginated post settings\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Dimples\n # Default configuration options for a site.\n module Configuration\n def self.defaults\n {\n paths: default_paths,\n gene... | ruby | chosen |
[
{
"from": "system",
"value": "Add summary and description and dependency\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'capistrano/fast_deploy/version'\n\nGem::Specificati... | ruby | chosen |
[
{
"from": "system",
"value": "Configure email-alert-api with bearer token\n\nAlso moves the creation of the client into the `Services` module.\n"
},
{
"from": "human",
"value": "require 'gds_api/content_store'\nrequire 'gds_api/rummager'\nrequire 'gds_api/email_alert_api'\n\nmodule Services\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Add test option to disable notifications\n"
},
{
"from": "human",
"value": "$VERBOSE = false\n\nbase_dir = File.expand_path(File.join(File.dirname(__FILE__), '..'))\nlib_dir = File.join(base_dir, 'lib')\ntest_dir = File.join(base_dir, 'test')\n\nrequire 'test-unit'\... | ruby | chosen |
[
{
"from": "system",
"value": "Add watchOS support to the podspec"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'SwiftyUserDefaults'\n s.version = '2.0.0'\n s.license = 'MIT'\n s.summary = 'Swifty API for NSUserDefaults'\n s.homepage = 'https://github.com/radex/SwiftyUserD... | ruby | chosen |
[
{
"from": "system",
"value": "Add common type conversion error method.\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nmodule Necromancer\n # Abstract converter used internally as a base for other converters\n #\n # @api private\n class Converter\n def initialize(source = nil, targe... | ruby | chosen |
[
{
"from": "system",
"value": "Add better contect for parsing errors"
},
{
"from": "human",
"value": "require 'treetop'\nrequire File.expand_path('../cli_parser/cli_path', __FILE__)\nrequire File.expand_path('../cli_parser/cli_command', __FILE__)\nrequire File.expand_path('../cli_parser/cli_condi... | ruby | chosen |
[
{
"from": "system",
"value": "Send root browse page after other tags.\n\nTo prevent a race condition when initially deploying this where the\n/browse page is set to an exact route before the *.josn browse routes\nare registered.\n"
},
{
"from": "human",
"value": "namespace :publishing_api do\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Bump pod spec version to 1.0.1\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'Transition'\n s.version = '1.0.0'\n s.summary = 'Easy interactive interruptible custom ViewController transitions.'\n\n s.description... | ruby | chosen |
[
{
"from": "system",
"value": "Add binary stanza to Julia cask\n"
},
{
"from": "human",
"value": "cask :v1 => 'julia' do\n version '0.3.3'\n sha256 '24df35408e83d38bcf95fcaeefd613beeafe00e2b6d8435f760289c158adc7b9'\n\n url \"https://s3.amazonaws.com/julialang/bin/osx/x64/0.3/julia-#{version}-o... | ruby | chosen |
[
{
"from": "system",
"value": "Use clean Bundle env, status.exitstatus (fix travis)\n\n* Process status objects are weird. They'll be integers on success (ie:\n0) ,but objects on a failure. Using status.exitstatus means we always\nget an integer for comparison\n\n* Use Bundler.with_clean_env to shell out. Ap... | ruby | chosen |
[
{
"from": "system",
"value": "Add Zip Code - UI\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Stripe\"\n s.version = \"1.1.4\"\n s.summary = \"Stripe is a web-based API for accepting payments online.\"\n s.license ... | ruby | chosen |
[
{
"from": "system",
"value": "Add more documentation for Handler\n"
},
{
"from": "human",
"value": "module ShardHandler\n # Handles which {ConnectionHandler} instance should be used based on the\n # shard name that is set for the Thread. Each {Model} class has its own\n # {Handler}.\n #\n #... | ruby | chosen |
[
{
"from": "system",
"value": "Fix error in Heroku fix\n\nPassing ill formatted constant names to Object.const_defined?\n"
},
{
"from": "human",
"value": "module ContentManager\n module ApplicationHelper\n # a helper to automatically figure out where to get you're content from\n def cm(key... | ruby | chosen |
[
{
"from": "system",
"value": "Add an InventoryCollection for VMs crosslinks\n\nAdd an InventoryCollection for VMs crosslinks\n"
},
{
"from": "human",
"value": "class ManageIQ::Providers::AnsibleTower::Inventory::Persister::AutomationManager < ManagerRefresh::Inventory::Persister\n def automatio... | ruby | chosen |
[
{
"from": "system",
"value": "Fix RawTimeQuery.with_relations to return all RawTime attributes.\n"
},
{
"from": "human",
"value": "class RawTimeQuery < BaseQuery\n\n def self.with_relations\n\n query = <<-SQL\n\n WITH existing_scope AS (#{existing_scope_sql}),\n raw_times_scoped A... | ruby | chosen |
[
{
"from": "human",
"value": "Add javascript bundle checking to specs\n"
},
{
"from": "gpt",
"value": "require \"open3\"\n\nRSpec.describe \"JS bundle sanity\" do\n it \"is up to date\" do\n current_bundle = File.read(\"app/assets/javascripts/active_admin/base.js\")\n\n output, status = Op... | ruby | chosen |
[
{
"from": "system",
"value": "Support any installer type defaults via method missing\n"
},
{
"from": "human",
"value": "module Sprinkle\n module Deployment\n def deployment(&block)\n @deployment = Deployment.new(&block)\n end\n\n class Deployment\n attr_accessor :style, :defa... | ruby | chosen |
[
{
"from": "system",
"value": "Use correct oauth environment variables\n\nThese are now set in hieradata.\n\nTrello: https://trello.com/c/LZBdyczv\n"
},
{
"from": "human",
"value": "GDS::SSO.config do |config|\n config.user_model = \"User\"\n config.oauth_id = ENV['PANOPTICON_OAUTH_ID'] |... | ruby | chosen |
[
{
"from": "system",
"value": "Set uncompressed size in local file header to 0\n\nThe ZIP spec [1] describes in section 4.4.9 that the uncompressed size\nfield is set to zero in the local file header if bit 3 of the general\npurpose flags is set, which zipline does.\n\nSome applications actually care about t... | ruby | chosen |
[
{
"from": "system",
"value": "Make `order` option Rails 4.0.1-compatible\n\nThe way that we figure out whether the value which is passed to `order`\nis the same as the `order` that the association was defined with is by\ncreating an ActiveRecord::Relation object from the given `order` and\ncomparing it with... | ruby | chosen |
[
{
"from": "system",
"value": "Create the module for the plugin\n"
},
{
"from": "human",
"value": "require \"vagrant/free/memory/version\"\n\nmodule Vagrant\n module Free\n module Memory\n # Your code goes here...\n end\n end\nend\n"
},
{
"from": "gpt",
"value": "require ... | ruby | chosen |
[
{
"from": "system",
"value": "Add accepts_nested_attributes_for address on has_whereabouts class methods\n"
},
{
"from": "human",
"value": "require 'active_record'\n\n# Whereabouts\n\nmodule Yrgoldteeth\n module Has\n module Whereabouts\n\n def self.included(base)\n base.extend C... | ruby | chosen |
[
{
"from": "system",
"value": "Remove temperature and respiratory_rate HD observations\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nxml = builder\n\nobservation_times = {\n pre: session.performed_on + session.start_time.seconds_since_midnight.seconds,\n post: session.perf... | ruby | chosen |
[
{
"from": "system",
"value": "Add Cursor to Edit Mode + Minor Tweaks\n\n-remove debug output\n"
},
{
"from": "human",
"value": "require 'bundler/setup'\nrequire 'berufsorientierungstag/version'\n\nTILESIZE = 40\nBORDER = 20\nmodule Berufsorientierungstag\n require 'gosu'\n require 'spielelemen... | ruby | chosen |
[
{
"from": "system",
"value": "Use API key for Google geocoding\n\n**Why**: To prevent going over the quota.\n"
},
{
"from": "human",
"value": "require 'readthis'\n\ncache = Readthis::Cache.new(\n redis: {\n url: ENV.fetch('REDISCLOUD_URL', 'redis://localhost:6379'),\n driver: :hiredis\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix error handling for cataloging_date\n"
},
{
"from": "human",
"value": "require \"metacrunch/hash\"\nrequire \"metacrunch/transformator/transformation/step\"\nrequire_relative \"../primo_to_elasticsearch\"\n\nclass Metacrunch::UBPB::Transformations::PrimoToElastic... | ruby | chosen |
[
{
"from": "system",
"value": "Make symbolize_keys! a noop temporarily."
},
{
"from": "human",
"value": "# make sure we're running inside Merb\nif defined?(Merb::Plugins) \n dependency \"haml\"\n dependency \"merb-haml/template\"\n Merb::Plugins.add_rakefiles(File.join(File.dirname(__FILE__) ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove ckeditor from initialize file. :fries:\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Version of your assets, change this if you want to expire all your assets.\nRails.application.config.assets.version = '1... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.1.0.0 to 0.2.0.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'data_aggregation-index'\n s.version = '0.1.0.0'\n s.summary = 'Event store data aggregation index library'... | ruby | chosen |
[
{
"from": "human",
"value": "Add pickup date and pickup time columns to orders\n"
},
{
"from": "gpt",
"value": "class AddPickupDateAndPickupTimeToOrders < ActiveRecord::Migration[5.0]\n def change\n add_column :orders, :pickup_date, :date\n add_column :orders, :pickup_time, :string\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update SHA256 for A Better Finder Rename 10\n"
},
{
"from": "human",
"value": "cask :v1 => 'a-better-finder-rename-beta' do\n version '10'\n sha256 'df4208eb01c25434b5c93c65ae82c12b2bab893a63d5c286f8c89cf4ae7b7137'\n\n url \"http://www.publicspace.net/download/AB... | ruby | chosen |
[
{
"from": "system",
"value": "Add my initial pseudocode for 5.3\n"
},
{
"from": "human",
"value": "=begin\n# Calculate the mode Pairing Challenge\n\n# I worked on this challenge [by myself, with: ]\n\n# I spent [] hours on this challenge.\n\n# Complete each step below according to the challenge ... | ruby | chosen |
[
{
"from": "system",
"value": "Support ERB parsing in YAML config\n"
},
{
"from": "human",
"value": "require \"yaml\"\n\nmodule Gemstash\n #:nodoc:\n class Configuration\n DEFAULTS = {\n :cache_type => \"memory\",\n :base_path => File.expand_path(\"~/.gemstash\"),\n :db_adapte... | ruby | chosen |
[
{
"from": "system",
"value": "Make use of ActiveSupport lazy loading\n\nthis to prevent load order issues. \r\nMore on lazy loading here: https://simonecarletti.com/blog/2011/04/understanding-ruby-and-rails-lazy-load-hooks/"
},
{
"from": "human",
"value": "module IntercomRails\n class Railtie <... | ruby | chosen |
[
{
"from": "system",
"value": "[promo] Check for calculator on adjustment.originator in update_adjustments_with_promotion_listing before checking its type\n\nRelated up to #1526\n"
},
{
"from": "human",
"value": "Spree::Order.class_eval do\n attr_accessible :coupon_code\n attr_accessor :coupon_... | ruby | chosen |
[
{
"from": "system",
"value": "Delete the key if its value is an empty hash\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule OrchestrateIo\n class Request\n attr_reader :client, :version, :http_method\n\n def initialize(args, &block)\n @client = args[:client]\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the \"license\" stanza as it's no longer supported.\n\nSee the complete list of stanzas that are valid in homebrew-cask.\nhttps://github.com/caskroom/homebrew-cask/blob/master/doc/cask_language_reference/all_stanzas.md\n"
},
{
"from": "human",
"value": "cask ... | ruby | chosen |
[
{
"from": "system",
"value": "Change 'from' email for mailers\n"
},
{
"from": "human",
"value": "class UserMailer < ActionMailer::Base\n default from: \"emmaleth2003@devbootcamp.com\"\n\n def welcome_email(user)\n @user = user\n @url = 'devbootcamp.com'\n mail(to: @user.email, subject... | ruby | chosen |
[
{
"from": "system",
"value": "Add requires for core extensions\n"
},
{
"from": "human",
"value": "require \"geocaching/version\"\n\nmodule Geocaching\n # Your code goes here...\nend\n"
},
{
"from": "gpt",
"value": "require \"geocaching/version\"\nrequire \"core_ext/array\"\nrequire ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused code in User model\n"
},
{
"from": "human",
"value": "class User < ActiveRecord::Base\n has_secure_password\n\n has_many :photo_queues\n has_many :photos, through: :photo_queues\n\n validates :username, :email, presence: true\n validates :username... | ruby | chosen |
[
{
"from": "system",
"value": "Add name to User model.\n"
},
{
"from": "human",
"value": "class User\n include Mongoid::Document\n # Include default devise modules. Others available are: :token_authenticatable, :encryptable,\n # :confirmable, :lockable, :timeoutable, :database_authenticatable,... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for seconding bug for multi-recipient starz\n"
},
{
"from": "human",
"value": "class User < ActiveRecord::Base\n acts_as_authentic\n\n has_and_belongs_to_many :stars\n\n named_scope :active, :conditions => {:active => true}\n\n def can_second?(star)\n ret... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Hotfix: Fix RAIB permissions\"\n\nThe organisation_content_id field now gets set by SPv1\nas per this commit:\nhttps://github.com/alphagov/specialist-publisher/pull/732/commits/75dc26807c0662a9a8c0fe76f8bb682db04dd1e2\n\nThe next time a user logs in through signon, tha... | ruby | chosen |
[
{
"from": "system",
"value": "Check for and delete nbsp characters\n"
},
{
"from": "human",
"value": "require 'nokogiri'\nrequire 'open-uri'\n\nclass Wa\n include Cinch::Plugin\n\n match /(wa) (.+)/, prefix: /^(\\.)/\n match /(help wa)$/, method: :help, prefix: /^(\\.)/\n\n def execute(m, pr... | ruby | chosen |
[
{
"from": "system",
"value": "Store files in tmp in specs\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nclass BasicUploader < CarrierWave::Uploader::Base\n\n # Include RMagick or MiniMagick support:\n # include CarrierWave::RMagick\n # include CarrierWave::MiniMagick\n\n # Choose w... | ruby | chosen |
[
{
"from": "system",
"value": "Use launch-sim interface in run sim specs\n"
},
{
"from": "human",
"value": "describe RunLoop do\n\n before(:each) {\n RunLoop::SimControl.terminate_all_sims\n }\n\n describe 'run on simulator' do\n it \"Xcode #{Resources.shared.current_xcode_version}\" do\... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs for import finisher\n"
},
{
"from": "human",
"value": "# Copyright 2014 Square Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a cop... | ruby | chosen |
[
{
"from": "system",
"value": "Send through post attributes using posts_attributes when creating a topic\n\nThis ensures that when we use factories that the topics+posts are created identically to how they're created inside the application\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec to check OSS compliance of erlang blob\n\n[#115611161]\n\nSigned-off-by: Houssem El Fekih <79fadb0a34afe753d9a3e9572acabeee9978c197@pivotal.io>\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\nrequire 'rubygems/package'\nrequire 'zlib'\nrequire 'yaml'... | ruby | chosen |
[
{
"from": "system",
"value": "Reorder require statements so Utils is before Usb\n"
},
{
"from": "human",
"value": "require \"radbeacon/version\"\nrequire \"radbeacon/le_scanner\"\nrequire \"radbeacon/bluetooth_le_device\"\nrequire \"radbeacon/scanner\"\nrequire \"radbeacon/usb\"\nrequire \"radbe... | ruby | chosen |
[
{
"from": "system",
"value": "Allow reset of predefined value\n"
},
{
"from": "human",
"value": "\nclass Chef::Node\n def generate_nsd3_conf\n return nil if self['nsd3'].nil?\n lines = []\n \n lines << '' \n lines << 'server:'\n generate_nsd3_conf_section lines, self['nsd3'... | ruby | chosen |
[
{
"from": "system",
"value": "Fix implementation of question in ruby:bob\n"
},
{
"from": "human",
"value": "class AnswerSilence\n\n def self.handles?(input)\n input.empty?\n end\n\n def reply\n 'Fine. Be that way.'\n end\n\nend\n\nclass AnswerQuestion\n\n def self.handles?(input)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Rearrange gem specification declarations slightly"
},
{
"from": "human",
"value": "require File.expand_path(\"../lib/lingohub/version\", __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = 'lingohub'\n gem.version = Lingohub::VERSION\n gem.au... | ruby | chosen |
[
{
"from": "system",
"value": "Use an even newer Pygments\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'linguist'\n s.version = '1.0.0'\n s.summary = \"GitHub Language detection\"\n\n s.authors = \"GitHub\"\n\n s.files = Dir['lib/**/*']\n s.executables << '... | ruby | chosen |
[
{
"from": "system",
"value": "Add plugin type metadata and bump version to 1.2.2.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = \"lita-irc\"\n spec.version = \"1.2.1\"\n spec.authors = [\"Jimmy Cuadra\"]\n spec.email = [\"jimmy... | ruby | chosen |
[
{
"from": "system",
"value": "Change where email is set on a factoried user\n\nSince a local user controls its author's email, mirror that in the factory\n"
},
{
"from": "human",
"value": "Factory.define :feed do |f|\nend\n\nFactory.sequence :update_text do |i|\n \"This is update #{i}\"\nend\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Use benchmark_suite to benchmark the parser and other bits.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'lunokhod/version'\n\nGem::Specification.new ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a few failing tests on Windows\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "describe command('ohai virtualization -c /etc/chef/client.rb') do\n its(:exit_status) { should eq(0) }\nend\n\ndescr... | ruby | chosen |
[
{
"from": "human",
"value": "Write a universes integration test\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\n# Tests scenarios related to interacting with Universes\nclass UniverseStoriesTest < ActionDispatch::IntegrationTest\n setup do\n @user = log_in_as_user\n @universe = ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix elasticsearch test scenario configuration\n\nThe elasticsearch provider is only supported by the batch or inline queue modes.\n\nSigned-off-by: Christopher A. Snapp <dffaa860ed97a8fe2bd7fd9817f16f80af273fae@chef.io>\n"
},
{
"from": "human",
"value": "opscode_erc... | ruby | chosen |
[
{
"from": "system",
"value": "Add homepage and update descriptions\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"mit/ldap/version\"\n\nGem::Specification.new do |s|\n s.name = \"mit-ldap\"\n s.version = MIT::L... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the Rake dependency from the gemspec.\n"
},
{
"from": "human",
"value": "require 'rake'\n\nGem::Specification.new do |spec|\n spec.name = 'broach'\n spec.version = '0.1.4'\n \n spec.author = \"Manfred Stienstra\"\n spec.email = \"manfred@fngtps.com\"\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Reorganize gemspec according to common convention\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/hashie/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = ['Michael Bleigh', 'Jerry Cheung']\n gem.email = ['mic... | ruby | chosen |
[
{
"from": "system",
"value": "Add initial methods for saving back to disk\n"
},
{
"from": "human",
"value": "module Gitolite\n class GitoliteAdmin\n attr_accessor :gl_admin, :ssh_keys, :config\n\n CONF = \"/conf/gitolite.conf\"\n KEYDIR = \"/keydir\"\n\n #Intialize with the path to\... | ruby | chosen |
[
{
"from": "system",
"value": "Update Homebrew formula for v0.6.0\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass ChrubyFish < Formula\n homepage 'https://github.com/JeanMertz/chruby-fish#readme'\n url 'https://github.com/JeanMertz/chruby-fish/archive/v0.5.4.tar.gz'\n sha1 'bcc27... | ruby | chosen |
[
{
"from": "system",
"value": "Add PATCH update spec for Zoidbergs\n"
},
{
"from": "human",
"value": "require \"rails_helper\"\n\nmodule PlanetExpress\n RSpec.describe ZoidbergsController, type: :routing do\n\n routes { PlanetExpress::Engine.routes }\n\n describe \"routing\" do\n\n le... | ruby | chosen |
[
{
"from": "human",
"value": "Add example of default queue.\n"
},
{
"from": "gpt",
"value": "# Example of how Qu works with graceful shutdown turned on.\nrequire_relative './example_setup'\n\nQu.configure do |config|\n config.graceful_shutdown = true\nend\n\nclass CallTheNunes < Qu::Job\n def p... | ruby | chosen |
[
{
"from": "system",
"value": "Fix ckeditor link, another try\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Version of your assets, change this if you want to expire all your assets.\nRails.application.config.assets.version = '1.0'\n\n# Add ad... | ruby | chosen |
[
{
"from": "system",
"value": "Add multiple arguments test for brew cat\n"
},
{
"from": "human",
"value": "describe \"brew cat\", :integration_test do\n it \"prints the content of a given Formula\" do\n formula_file = setup_test_formula \"testball\"\n content = formula_file.read\n\n exp... | ruby | chosen |
[
{
"from": "human",
"value": "Add script to install programs from lists\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\n# Install brew and gems as listed in `brew` and `gems` folder.\n\nrequire 'rake'\n\ndef installFrom(filePath)\n File.foreach(filePath) { |line|\n name = line.c... | ruby | chosen |
[
{
"from": "human",
"value": "Add an index Alex found was missing.\n"
},
{
"from": "gpt",
"value": "class AddIndices < ActiveRecord::Migration\n def self.up\n add_index :track_things_sent_emails, :track_thing_id\n end\n\n def self.down\n remove_index :track_things_sent_emails, :track_thi... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade dev dependency to bundler 2\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nlib = File.expand_path('lib', __dir__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'cfndsl/version'\n\nGem::Specification.new do |s|\n s.na... | ruby | chosen |
[
{
"from": "system",
"value": "Make status code a variable\n"
},
{
"from": "human",
"value": "module RemoteDatabaseCleanerHomeRails\n class HomeController < ApplicationController \n\n skip_before_filter *RemoteDatabaseCleanerHomeRails.skip_before_filter\n \n def clean \n if RemoteD... | ruby | chosen |
[
{
"from": "system",
"value": "Use \"until\" instead of \"loop do\"\n"
},
{
"from": "human",
"value": "module Ansible\n module Transmit\n def self.extended(base)\n base.class_eval { include ActionController::Live }\n end\n\n def transmit(name)\n beacon_name = :\"#{name}_ansibl... | ruby | chosen |
[
{
"from": "system",
"value": "Fix to work with 1.8.7 again.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"kumade/version\"\n\nGem::Specification.new do |s|\n s.name = \"kumade\"\n s.version = Kumade::VERSION\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use only relevant params when searching for repo\n"
},
{
"from": "human",
"value": "module Travis\n module Github\n module Services\n class FindOrCreateRepo < Travis::Services::Base\n register :github_find_or_create_repo\n\n def run\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add action view test case"
},
{
"from": "gpt",
"value": "require File.expand_path('../../test_helper', __FILE__)\n\nclass HelperTestController < ActionController::Base\n def test\n render text: nil\n end\nend\n\nclass TestHelperTest < ActionView::TestCase\n inc... | ruby | chosen |
[
{
"from": "system",
"value": "Use exec instead of leaving a waiting ruby process\n\nChange-Id: Ia9c190b96803a6950d895e99a2546879329e1f35\n"
},
{
"from": "human",
"value": "require 'thor'\nrequire 'aws_cred_vault'\nrequire 'aws-sdk'\n\nmodule Omc\n class Cli < Thor\n desc 'ssh', 'Connect to a... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Orpheus sending multiple messages to new users\n"
},
{
"from": "human",
"value": "module Hackbot\n module Interactions\n class Greeter < TextConversation\n DEFAULT_CHANNEL = 'C74HZS5A5'.freeze\n\n def should_start?\n event[:channel] == DEFAU... | ruby | chosen |
[
{
"from": "system",
"value": "Fix broken tests with Sqlite3 adapter\n"
},
{
"from": "human",
"value": "#\n# == PrevNextable module\n#\nmodule PrevNextable\n extend ActiveSupport::Concern\n\n # For Event object, start_date is used to determine the previous record\n included do\n def fetch_p... | ruby | chosen |
[
{
"from": "system",
"value": "Change ThreadResolveWorker retry value to 5\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass ThreadResolveWorker\n include Sidekiq::Worker\n\n sidekiq_options queue: 'pull', retry: false\n\n def perform(child_status_id, parent_url)\n c... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.