conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add a name to the from email address\n"
},
{
"from": "human",
"value": "class AlertMailer < ActionMailer::Base\n include ActionView::Helpers::TextHelper\n include ActionView::Helpers::AssetUrlHelper\n default from: \"contact@morph.io\"\n\n def alert_email(user, ... | ruby | chosen |
[
{
"from": "human",
"value": "Add custom test script for \"Oil and Water Shake\" interactive\n\n[#69189676]\n"
},
{
"from": "gpt",
"value": "# Run basic test first.\nload 'interactive-tests/default.rb', true\n# Click a button and take a screenshot again.\n$test.driver.find_element(:css, '#shake >... | ruby | chosen |
[
{
"from": "human",
"value": "Test output of item 'parts'\n\nAs the ouput of an item has already been tested upstream,\nthis test just tets the enhancement\n"
},
{
"from": "gpt",
"value": "require \"spec_helper\"\n\ndescribe \"Document list\", type: :view do\n def component_name\n \"document_... | ruby | chosen |
[
{
"from": "system",
"value": "Remove trivial spec that may have been causing others to fail\n\nI have an unconfirmed hunch that the dangling requests from the first, trivial spec may have caused the second spec to fail intermittently, because of the database getting reset.\n"
},
{
"from": "human",
... | ruby | chosen |
[
{
"from": "system",
"value": "Test existing behaviour on entry schema\n"
},
{
"from": "human",
"value": "require 'argo/parser'\nrequire 'json'\n\nRSpec.describe 'entry-schema' do\n # See http://json-schema.org/example2.html\n\n let(:root) {\n path = read_fixture('entry-schema.json')\n Ar... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for exception handling inside ensure block.\n\nSigned-off-by: Michael S. Klishin <17b9e1c64588c7fa6419b4d29dc1f4426279ba01@novemberain.com>\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../spec_helper'\nrequire File.dirname(__FILE__)... | ruby | chosen |
[
{
"from": "system",
"value": "Add method for finding the todo list for a given date, which will create it if it is not found. Add method for finding a todo by id\n"
},
{
"from": "human",
"value": "class TodoList\n include Mongoid::Document\n\n field :date, type: Date\n embeds_many :todos\n b... | ruby | chosen |
[
{
"from": "system",
"value": "Change error message when unauthorized.\n"
},
{
"from": "human",
"value": "class Hash\n def symbolize_keys_recursive\n result = self.symbolize_keys\n result.each_pair do |_, val|\n val.symbolize_keys! if val.is_a?(Hash)\n end\n end\n\n def recursive... | ruby | chosen |
[
{
"from": "system",
"value": "Add press menu for selecting drop downs\n"
},
{
"from": "human",
"value": "module OperaWatir\n class QuickDropdownItem < QuickEditField #QuickWidget # QuickEditField?\n\n # @private\n # Checks the type of the widget is correct\n def correct_type?\n @e... | ruby | chosen |
[
{
"from": "system",
"value": "Add users controller basic tests\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe UsersController, type: :controller do\n\n describe \"GET #show\" do\n it \"returns http success\" do\n get :show\n expect(response).to have_htt... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to support macOS platform\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n\n s.name = \"BabyBluetooth\"\n s.version = \"0.7.0\"\n s.summary = \"bluetooth library on ios/osx\"\n\n s.description = <<-DESC\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Format original price data form in product edit to match other data elements\n"
},
{
"from": "human",
"value": "Deface::Override.new(:virtual_path => 'spree/admin/products/_form',\n :name => 'add_original_price_to_product_edit',\n :insert_after => \"erb[loud]:cont... | ruby | chosen |
[
{
"from": "system",
"value": "Add version requirement for psych so it doesn't uses an old heap overflow version of libyaml\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'soyuz/versi... | ruby | chosen |
[
{
"from": "system",
"value": "Update to latest image server version"
},
{
"from": "human",
"value": "require 'net/http'\nrequire 'uri'\nrequire 'open-uri'\nrequire 'fileutils'\n\nmodule ImageServer\n class Installer\n attr_reader :configuration\n\n def self.install(configuration = ImageSe... | ruby | chosen |
[
{
"from": "system",
"value": "Fix syntax highlighting for Python\n"
},
{
"from": "human",
"value": "module CustomHelpers\n CODE_EXTENSION = {\n 'coffee' => 'coffeescript',\n 'rb' => 'ruby',\n 'java' => 'java',\n 'py' => 'python3'\n }.freeze\n\n def code_from_file(filename)\n re... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for warning: `*' interpreted as argument prefix\n"
},
{
"from": "human",
"value": "module Postal\n class Address\n Fields = %i(recipient street zip state city country country_code).freeze\n \n attr_accessor *Fields\n\n def initialize(**attrs)\n a... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issue with timeout variable being passed as a string\n"
},
{
"from": "human",
"value": "class NameResolver < Scout::Plugin\n needs 'resolv'\n OPTIONS=<<-EOS\n nameserver:\n default: 8.8.8.8\n resolve_address:\n default: google.com\n timeout:... | ruby | chosen |
[
{
"from": "human",
"value": "Add AnyTrans for Android.app Latest\n"
},
{
"from": "gpt",
"value": "cask 'anytrans-for-android' do\n version :latest\n sha256 :no_check\n\n url 'http://dl.imobie.com/anytrans-android-mac.dmg'\n name 'AnyTrans'\n homepage 'https://www.imobie.com/anytrans/android... | ruby | chosen |
[
{
"from": "system",
"value": "Add the parameters in ApiMethod\n"
},
{
"from": "human",
"value": "module Scrapinghub\n class ApiMethod\n def initialize(location, requires={})\n @location = \"#{location}.json\"\n @requires = requires\n end\n\n def build(base_url, parameters = {... | ruby | chosen |
[
{
"from": "system",
"value": "Fix module naming bug for effective ckeditor text area input\n"
},
{
"from": "human",
"value": "# = simple_form_for @thing do |f|\n# = f.input :body_content, :as => :effective_ckeditor_text_area\n\nif defined?(SimpleForm)\n\n class EffectiveCkeditorTextAreaInput ... | ruby | chosen |
[
{
"from": "system",
"value": "Add status code to git tag error\n"
},
{
"from": "human",
"value": "module ThorSCMVersion\n # @author Josiah Kiehl <josiah@skirmisher.net>\n # adapted from code written by Jamie Winsor <jamie@vialstudios.com>\n class SCMVersionError < StandardError\n class << ... | ruby | chosen |
[
{
"from": "system",
"value": "Improve rename variable more concrete\n"
},
{
"from": "human",
"value": "\nmodule Yasuri\n class MapNode\n attr_reader :name, :children\n\n def initialize(name, children, opt: {})\n @name = name\n @children = children\n @opt = opt\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up common Jira/curl code\n"
},
{
"from": "human",
"value": "#!/usr/bin/ruby -w\n# -*- ruby -*-\n\nrequire 'json'\n\nclass Yira\n def initialize\n end\n\n def my_credentials\n \"jpace:H@ll0w3dB3Thy\"\n end\n\n def get_url url\n args = Array.new\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add migration to move lock version data\n"
},
{
"from": "gpt",
"value": "class MoveLockVersionData < ActiveRecord::Migration[5.0]\n def up\n execute \"UPDATE link_sets\n SET lock_version = t.number\n FROM (SELECT target_id, number FROM loc... | ruby | chosen |
[
{
"from": "system",
"value": "Remove dep on jruby-openssl; move rspec and rake to dev deps.\n\ngit-svn-id: fa1a74920b061848e2ced189e7c50f362c0f37df@6865 bc291798-7d79-44a5-a816-fbf4f7d05ffa\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-i\nlib = File.expand_path('../lib/', __FILE__)... | ruby | chosen |
[
{
"from": "system",
"value": "Write fucking ugly render paragraph method\n"
},
{
"from": "human",
"value": "module ElementsHelper\n def render_elements(elements)\n elements.each do |element|\n partial = find_element_partial(element) ? element.tag : \"element\"\n concat(render(:part... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug in meal jobs search\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule People\n # Presents a select2 for filtering by a single user.\n class UserLens < Lens::Lens\n param_name :user\n\n def render\n h.select_tag(param_nam... | ruby | chosen |
[
{
"from": "system",
"value": "Add new mail sender for internal notifications\n"
},
{
"from": "human",
"value": "class ReporterMailer < ActionMailer::Base\n default from: Cartodb.get_config(:mailer, 'from')\n layout 'mail'\n\n def trending_maps_report(mail_to, trending_visualizations)\n @su... | ruby | chosen |
[
{
"from": "system",
"value": "Remove StudentSchoolYear from data integrity check\n"
},
{
"from": "human",
"value": "class IntegrityCheck\n\n def check!\n has_data?\n has_valid_data?\n end\n\n private\n\n def has_data?\n raise \"no students\" unless Student.count > 0\n raise \"no ... | ruby | chosen |
[
{
"from": "system",
"value": "Include multicam stuff by default\n"
},
{
"from": "human",
"value": "require 'kamelopard/classes'\nrequire 'kamelopard/helpers'\nrequire 'kamelopard/geocode'\nrequire 'kamelopard/function'\nrequire 'kamelopard/function_paths'\n"
},
{
"from": "gpt",
"valu... | ruby | chosen |
[
{
"from": "system",
"value": "Set standard log level to warn\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\nrequire 'chef'\n\nclass Chef::Recipe\n def from_string(string)\n self.instance_eval(string, 'sandwich', 1)\n end\nend\n\n$client = nil\n\ndef rebuild_node\n Chef::Config[:so... | ruby | chosen |
[
{
"from": "system",
"value": "Update Eclipse IDE for Java EE Developers to v4.4.2 (Luna SR2)\n"
},
{
"from": "human",
"value": "cask :v1 => 'eclipse-jee' do\n version '4.4.1'\n\n if Hardware::CPU.is_32_bit?\n sha256 '3e3d6c80fb0a4c4fa12060cd52680df0722ebc45efae27e367c1d2a8fa0b8b0b'\n url... | ruby | chosen |
[
{
"from": "system",
"value": "Add auto_updates flag to SpaceMonkey\n"
},
{
"from": "human",
"value": "cask 'spacemonkey' do\n version '0.7.17'\n sha256 '276c29a536e0a21539831dfbb6dd81f10dbd09a0e17bffeb11cd253c1dc78e57'\n\n url 'http://downloads.spacemonkey.com/client/mac/latest'\n appcast 'h... | ruby | chosen |
[
{
"from": "system",
"value": "Add variable control log output path\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nrequire 'logger'\n\nmodule Aliyun\n module Common\n ##\n # Logging support\n # @example\n # include Logging\n # logger.info(xxx)\n module Logg... | ruby | chosen |
[
{
"from": "system",
"value": "Replace Report class by module\n"
},
{
"from": "human",
"value": "module CodeclimateCi\n class Report\n def self.result_not_ready(retry_count, branch)\n puts \"Retry #{retry_count}. #{branch} branch analyze is not ready or branch does not exist\"\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Don't need Faraday middleware at the moment\"\n\nThis reverts commit fa88be417886218bf19bec15cf0071055e54ca98.\n"
},
{
"from": "human",
"value": "$:.push File.expand_path('../lib', __FILE__)\nrequire 'filmbuff/version'\n\nGem::Specification.new do |s|\n s.... | ruby | chosen |
[
{
"from": "system",
"value": "Move precondition earlier in constructor\n"
},
{
"from": "human",
"value": "require 'set'\nrequire 'active_support/all'\n\nclass PasswordAndOrdinals\n def initialize password, character_ordinals\n raise(ArgumentError, \"#{character_ordinals.uniq.to_sentence} dup... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused CssTemplate from tilt extension"
},
{
"from": "human",
"value": "require 'tilt'\n\nmodule Tilt\n if respond_to?(:register_lazy)\n register_lazy 'Pieces::Tilt::MustacheTemplate', 'pieces/tilt/mustache', 'mustache', 'ms'\n register_lazy 'Pieces::T... | ruby | chosen |
[
{
"from": "system",
"value": "Add those flags only if not already added\n"
},
{
"from": "human",
"value": "require 'rbconfig'\n\n# ideas taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html\nAruba.configure do |config|\n config.before :command do\n next unless RUBY_PLATFO... | ruby | chosen |
[
{
"from": "system",
"value": "Improve the file downloader test to use a real file\n"
},
{
"from": "human",
"value": "require \"test_helper\"\n\nclass FileDownloaderTest < Test::Unit::TestCase\n setup do\n @downloader, @tempfile = vagrant_mock_downloader(Vagrant::Downloaders::File)\n @uri ... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for Ruby 1.9's File.path.\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../../spec_helper'\n\ndescribe \"File#path\" do\n before :each do\n @file1 = \"testfile\"\n @file2 = tmp(\"../tmp/xxx\")\n end\n\n after :each do\n F... | ruby | chosen |
[
{
"from": "system",
"value": "Change test to test for the user id\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\ndescribe Kiitos::Admin::AdministratorsController do\n before do\n @routes = Kiitos::Engine.routes\n end\n\n describe 'POST :create' do\n before do\n @user ... | ruby | chosen |
[
{
"from": "system",
"value": "Use File.join to require examples\n"
},
{
"from": "human",
"value": "require 'end_view'\n\nDir[\"#{__FILE__}/../examples/*.rb\"].each { |f| require f }\n\ndescribe EndView do\n it 'renders a simple template' do\n expect(Foo.new.render).to eq(\"\\n\\nHello World\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove library books as an analytics scaling option\n"
},
{
"from": "human",
"value": "module Measurements\n extend ActiveSupport::Concern\n\n MEASUREMENT_OPTIONS = ActiveSupport::HashWithIndifferentAccess.new(\n kwh: 'energy used in kilowatt-hours',\n gb_po... | ruby | chosen |
[
{
"from": "system",
"value": "Write raw bytes instead of converting through Java strings"
},
{
"from": "human",
"value": "module Fishwife\n class HijackIo\n def initialize(async_context)\n @async_context = async_context\n end\n\n def write(str)\n @async_context.response.outpu... | ruby | chosen |
[
{
"from": "system",
"value": "Add much more operations to calculation step\n"
},
{
"from": "human",
"value": "module ETL\n module Transform\n class CalculationTransform < ETL::Transform::Transform\n attr_reader :function\n attr_reader :fields\n\n def initialize(control, name, ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix get hosted zone parser to correctly convert ResourceRecordSetCount into integer\n"
},
{
"from": "human",
"value": "module Fog\n module Parsers\n module AWS\n module DNS\n class GetHostedZone < Fog::Parsers::Base\n def reset\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add `open` command for OS X\n"
},
{
"from": "human",
"value": "module GHPreview\n module InstantMarkdownD\n class Viewer\n\n def self.open_url(host, port)\n `xdg-open http://#{host}:#{port}/`\n end\n\n end\n end\nend\n"
},
{
"from": ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure that config/emr-bootstrap is included in the gem"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n$: << File.expand_path('../lib', __FILE__)\n\nrequire 'humboldt/version'\n\n\nGem::Specification.new do |s|\n s.name = 'humboldt'\n s.version ... | ruby | chosen |
[
{
"from": "system",
"value": "Use `module_parent_name` instead of deprecated `parent_name`\n\n`Module#parent_name is` deprecated in Rails 6.0.\nRef: https://github.com/rails/rails/pull/34051\n"
},
{
"from": "human",
"value": "module Rollbar\n module RailtieMixin\n extend ActiveSupport::Conce... | ruby | chosen |
[
{
"from": "system",
"value": "Convert another hash map over to use each_with_object"
},
{
"from": "human",
"value": "require \"tsort\"\nrequire \"dry/view/exposure\"\n\nmodule Dry\n module View\n class Exposures\n include TSort\n\n attr_reader :exposures\n\n def initialize(exp... | ruby | chosen |
[
{
"from": "system",
"value": "Allow passing an adapter to Gitlab::LDAP::Person\n"
},
{
"from": "human",
"value": "module Gitlab\n module LDAP\n class Person\n def self.find_by_uid(uid)\n Gitlab::LDAP::Adapter.new.user(config.uid, uid)\n end\n\n def self.find_by_dn(dn)\n... | ruby | chosen |
[
{
"from": "system",
"value": "Rename things, and introduce a struct, for clarity.\n"
},
{
"from": "human",
"value": "require \"lazily/enumerable\"\n\nmodule Lazily\n\n class << self\n\n # Associate \"like\" elements of two or more Enumerables.\n #\n # @param labelled_enumerables [Hash<... | ruby | chosen |
[
{
"from": "system",
"value": "Make the embedded_atomic_selector less specific\n\nWorks around a bug where embeds_one -> embeds_many -> embeds_many\nstructures generate a selector which silently targets the wrong\ndocument. This may cause fire, we'll see..\n"
},
{
"from": "human",
"value": "# enc... | ruby | chosen |
[
{
"from": "system",
"value": "Use Quartz as a name\n"
},
{
"from": "human",
"value": "module Quartz::Validations\n\n GO_FILE_LOCATION = 'src/github.com/DavidHuie/quartz/go/quartz/quartz.go'\n\n def self.check_for_go\n go_exists = ENV['PATH'].split(File::PATH_SEPARATOR).any? do |directory|\n... | ruby | chosen |
[
{
"from": "system",
"value": "Element::Form: Remove name (conflicts with tag name) and remove a require\n"
},
{
"from": "human",
"value": "require 'browser/blob'\n\nmodule Browser; module DOM; class Element < Node\n\nclass Form < Element\n # Capture the content of this form to a new {FormData} ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix case when model inherited from ActiveRecord::Base not directly"
},
{
"from": "human",
"value": "module MightyGrid\n class Column\n attr_reader :attribute, :attrs, :th_attrs, :options, :title, :model, :partial\n attr_accessor :render_value\n\n def initi... | ruby | chosen |
[
{
"from": "system",
"value": "Add dashboard() and leave_workspace(). Update params to workspace_id.\n"
},
{
"from": "human",
"value": "module Toggl\n class V8\n\n # name : (string, required)\n # premium : If it's a pro workspace or not.\n # Shows if someone is paying for t... | ruby | chosen |
[
{
"from": "system",
"value": "Restructure code - move private methods to bottom of class declaration etc.\n"
},
{
"from": "human",
"value": "module Watir \n \n # Returned by {Container#link}.\n class Link < Element\n attr_ole :type\n attr_ole :href\n attr_ole :name\n\n # @depreca... | ruby | chosen |
[
{
"from": "system",
"value": "Change the output of the find command to show one path per line\n"
},
{
"from": "human",
"value": "module Gish\n module Commands\n class FindCommand < BasicCommand\n include Gish::Concerns::Findable\n\n def initialize(arguments, options = {})\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add social parameters to electoral district table\n"
},
{
"from": "human",
"value": "class CreateElectoralDistricts < ActiveRecord::Migration\n def change\n create_table :electoral_districts do |t|\n \tt.string :photo\n \tt.string :first_name\n \tt.stri... | ruby | chosen |
[
{
"from": "system",
"value": "Add fonts and images into assets.precompile array\n\nFixes #97\nFixes #98\n"
},
{
"from": "human",
"value": "module SpreeFancy\n class Engine < Rails::Engine\n require 'spree/core'\n isolate_namespace Spree\n engine_name 'spree_fancy'\n\n config.autoloa... | ruby | chosen |
[
{
"from": "system",
"value": "Reset column info before seeding"
},
{
"from": "human",
"value": "module Sprig\n module Seed\n class Factory\n def self.new_from_directive(directive)\n raise ArgumentError, 'Must provide a Directive' unless directive.is_a? Directive\n\n klass ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure we get what we expect.\n"
},
{
"from": "human",
"value": "require 'org.torquebox.torquebox-messaging-client'\n\nclass Something\n\n include TorqueBox::Messaging::Backgroundable\n always_background :foo\n\n def initialize\n @foreground = TorqueBox::Me... | ruby | chosen |
[
{
"from": "system",
"value": "Add summary back to gemspec\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'texticle/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Enable Ruby Runtime Metrics in Datadog\n\nThis automatically collects a bunch of Ruby's GC-related metrics that\nwill come in handy while we tune the Unicorn workers. Some of theres\nare:\n\n* runtime.ruby.class_count\n* runtime.ruby.gc.malloc_increase_bytes\n* runtime.ruby.gc.... | ruby | chosen |
[
{
"from": "system",
"value": "Update Rack::Timeout settings for Heroku\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n# There is no request timeout mechanism inside of Puma. The Heroku router will\n# timeout all requests that exceed 30 seconds. Although an error will be\n# r... | ruby | chosen |
[
{
"from": "system",
"value": "Add rest-client to list of chef_gem dependencies\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: et_fog\n# Recipe:: default\n#\n# Copyright (C) 2013 EverTrue, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use thi... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce API requests by memoizing\n"
},
{
"from": "human",
"value": "require \"capistrano/ec2_tagged/version\"\nrequire \"aws-sdk\"\n\nmodule Capistrano\n module Ec2Tagged\n def ec2_tagged(keys_and_values = {})\n @ec2 ||= AWS::EC2.new(\n :access_key_i... | ruby | chosen |
[
{
"from": "system",
"value": "Fix copy paste doc error\n"
},
{
"from": "human",
"value": "require_relative 'base_client'\n\nmodule AlumniStories\n include BaseClient\n\n # Create a checkpoint\n #\n # @param id [Integer] An alumni story id.\n # @param direction [String] The direction to move... | ruby | chosen |
[
{
"from": "system",
"value": "Switch author email to one which is valid\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nGem::Specification.new do |spec|\n spec.name = 'netsol'\n spec.version ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a missing method argument.\n"
},
{
"from": "human",
"value": "module Cucumber\n module Tree\n class Feature\n attr_reader :header\n attr_reader :scenarios\n MIN_PADDING = 2\n\n attr_accessor :file\n\n def initialize(header, &proc)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Move the output path into the paths config, remove archive_feeds\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Dimples\n module Configuration\n def self.defaults\n {\n source_path: Dir.pwd,\n destination_path: File... | ruby | chosen |
[
{
"from": "system",
"value": "Make zone members creation idempotent"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\neu_vat = Spree::Zone.find_or_create_by!(name: \"EU_VAT\", description: \"Countries that make up the EU VAT zone.\")\nnorth_america = Spree::Zone.find_or_create_by... | ruby | chosen |
[
{
"from": "system",
"value": "Insert route after looser pattern\n\n- Regex will match MyApp::Application.routes.draw do, which is a pattern\n in Rails apps.\n"
},
{
"from": "human",
"value": "module AccessLint\n module Generators\n class InstallGenerator < ::Rails::Generators::Base\n s... | ruby | chosen |
[
{
"from": "system",
"value": "gemspec: Use Ruby, not git, to pick files\n\nThere is a nice rationale written up at https://packaging.rubystyle.guide/#using-git-in-gemspec\r\n\r\nUpside: We distribute less files to the user."
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File... | ruby | chosen |
[
{
"from": "system",
"value": "Make preloader instance method private\n"
},
{
"from": "human",
"value": "require 'polymorphic_preloader/version'\n\nclass PolymorphicPreloader\n attr_accessor :grouped_objects, :association_name\n\n def initialize(objects, association_name)\n self.association_... | ruby | chosen |
[
{
"from": "system",
"value": "Add tvOS and watchOS to podspec\n\n- Also fix wrong type of apostrophe in the description.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"SPTDataLoader\"\n s.version = \"1.0.2\"\n s.summary = \"SPTDataLoader is Spot... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for calculating appcast checkpoint from URLs.\n"
},
{
"from": "human",
"value": "module Hbc\n class CLI\n class InternalAppcastCheckpoint < InternalUseBase\n def self.run(*args)\n calculate = args.include? \"--calculate\"\n cask_to... | ruby | chosen |
[
{
"from": "system",
"value": "Add rouge gem as a runtime dep\n"
},
{
"from": "human",
"value": "# coding: utf-8\nrequire File.expand_path('../lib/dry/monitor/version', __FILE__)\n\nGem::Specification.new do |spec|\n spec.name = 'dry-monitor'\n spec.version = Dry::Monitor::VERSIO... | ruby | chosen |
[
{
"from": "system",
"value": "Use :delete instead of :delete_records\n"
},
{
"from": "human",
"value": "module VestalVersions\n # Adds the ability to \"reset\" (or hard revert) a versioned ActiveRecord::Base instance.\n module Reset\n extend ActiveSupport::Concern\n\n # Adds the instance... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude test files from the gem. Requires a version of Ruby 2+\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'lotus/validations/version'\n\nGem::Specif... | ruby | chosen |
[
{
"from": "system",
"value": "Add Example Solution to Rotational Cipher\n"
},
{
"from": "human",
"value": "module BookKeeping\n VERSION = 1\nend\n\nclass RotationalCipher\n def self.rotate(text, shift_key)\n end\nend\n"
},
{
"from": "gpt",
"value": "module BookKeeping\n VERSION =... | ruby | chosen |
[
{
"from": "system",
"value": "Update billing time change to page through results\n"
},
{
"from": "human",
"value": "# Billing Time Change (same date) with chargify_api_ares gem\n\n# Sets all billing times to 6:00 AM CDT (UTC -05:00)\n# http://www.timeanddate.com/time/zones/cdt\n# http://ruby-doc... | ruby | chosen |
[
{
"from": "system",
"value": "[i18n] Fix frontend routing in dev\n"
},
{
"from": "human",
"value": "module MnoEnterprise\n module Frontend\n class Engine < ::Rails::Engine\n isolate_namespace MnoEnterprise\n\n # Add assets\n config.assets.precompile += %w( mno_enterprise/appli... | ruby | chosen |
[
{
"from": "human",
"value": "Add first version of cheatsheet file\n"
},
{
"from": "gpt",
"value": "cheatsheet do\n title 'GitHub Desktop'\n docset_file_name 'GitHub_Desktop'\n keyword 'GitHub'\n source_url 'http://cheat.kapeli.com'\n\n category do\n id 'File'\n\n ent... | ruby | chosen |
[
{
"from": "system",
"value": "Increment version 0.0.1 -> 0.0.2: Add reject_by... and partition_by... methods\n"
},
{
"from": "human",
"value": "require \"rake\"\n\nspec = Gem::Specification.new do |s|\n s.name = \"hash_selectors\"\n s.version = \"0.0.1\"\n s.summary = \"Some se... | ruby | chosen |
[
{
"from": "system",
"value": "Increment version 0.0.3 -> 0.0.4: Add merge_into and filter_by... aliases\n"
},
{
"from": "human",
"value": "require \"rake\"\n\nspec = Gem::Specification.new do |s|\n s.name = \"hash_selectors\"\n s.version = \"0.0.3\"\n s.summary = \"Some select ... | ruby | chosen |
[
{
"from": "system",
"value": "Add proper summary and description\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'sidekiq/oj/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a redirect to current active api version.\n"
},
{
"from": "human",
"value": "class ApiApp < Grape::API\n version 'v0', using: :path\n mount ApiV0\nend\n\n"
},
{
"from": "gpt",
"value": "class ApiApp < Grape::API\n\n get do\n # Redirect to curre... | ruby | chosen |
[
{
"from": "system",
"value": "Prepare cookbook for upload to community site\n"
},
{
"from": "human",
"value": "maintainer \"Escape Studios\"\nmaintainer_email \"dev@escapestudios.com\"\nlicense \"MIT\"\ndescription \"Installs/Configures New Relic\"\nlong_description IO.read(F... | ruby | chosen |
[
{
"from": "system",
"value": "Update percona to Chef 17-compliant version\n\nSigned-off-by: Robert Detjens <80088559520001a14c62b25ed86ca3d2c36785e9@osuosl.org>\n"
},
{
"from": "human",
"value": "name 'osl-mysql'\nissues_url 'https://github.com/osuosl-cookbooks/osl-mysql/issues... | ruby | chosen |
[
{
"from": "system",
"value": "Increase Capybara default wait time in hope to make Travis happy"
},
{
"from": "human",
"value": "# Generated by cucumber-sinatra. (Sat Oct 01 19:57:01 +0200 2011)\n\nENV['RACK_ENV'] = 'test'\n\nrequire File.join(File.dirname(__FILE__), '..', '..', 'recharge.rb')\n\... | ruby | chosen |
[
{
"from": "human",
"value": "Add pending specs for our custom Input methods.\n"
},
{
"from": "gpt",
"value": "require File.expand_path 'watirspec/spec_helper', File.dirname(__FILE__)\n\ndescribe Watir::Input do\n\n before do\n browser.goto(WatirSpec.files + \"/forms_with_input_elements.html\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for ImportResources if there are no Resources in Google Apps\n\nEdge case, but this breaks the tests sometimes\n"
},
{
"from": "human",
"value": "require 'gcal_resources'\n\nclass ImportResources\n @queue = :office_calendar\n \n def self.perform\n \n GC... | ruby | chosen |
[
{
"from": "system",
"value": "Add v1 to api path\n"
},
{
"from": "human",
"value": "require 'httparty'\nrequire 'rails_erd/domain'\nrequire 'rails_erd/diagram'\nrequire 'rails_erd/diagram/graphviz'\nrequire 'domain_generator'\nrequire 'graph_generator'\n\nnamespace :du do\n desc 'uploader test'... | ruby | chosen |
[
{
"from": "system",
"value": "Allow themes to once again override views for sidebars.\nNote that the themes need to be updated. Instead of views/plugins/sidebars/archives/content.rhtml, use views/plugins/archives_sidebar/content.rhtml. The contents of the views may also need updating for sidebars\n\ngit-svn... | ruby | chosen |
[
{
"from": "system",
"value": "Enumerate and attach files to email\n"
},
{
"from": "human",
"value": "class MessageMailer < ActionMailer::Base\n include SummaryHelper\n include NicknameHelper\n include MarkdownHelper\n include ConversationHelper\n\n # Public: Triggered on Message create\n #... | ruby | chosen |
[
{
"from": "human",
"value": "Define storage format for various data types\n"
},
{
"from": "gpt",
"value": "# Defines how an Item's data is stored in its JSON data column. The format\n# varies depending on whether the data is localized, multivalued, both, or\n# neither. Coerces between these form... | ruby | chosen |
[
{
"from": "system",
"value": "Add image attachment to news item\n"
},
{
"from": "human",
"value": "require \"edition\"\n\nclass NewsEdition < Edition\n\n field :subtitle, type: String\n field :body, type: String\n field :home_image, type: String\n field :main_image, type:... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.