conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use fixed positioning, not absolute\n"
},
{
"from": "human",
"value": "module ControllerActionHUD\n module Widget\n class << self\n\n def css\n <<-EOF\n <style type=\"text/css\">\n div#controller_action_hud {\n position: ab... | ruby | chosen |
[
{
"from": "system",
"value": "Add CSS file to the list of assets to precompile.\n"
},
{
"from": "human",
"value": "module DelayedJobDashboard\n require 'delayed_job_dashboard'\n require 'rails'\n require 'haml'\n class Engine < Rails::Engine\n engine_name :delayed_job_dashboard\n paths[... | ruby | chosen |
[
{
"from": "system",
"value": "Fix usage of source file content\n"
},
{
"from": "human",
"value": "require_relative 'file_base'\n\nmodule Everything\n class Blog\n module Output\n class Media < FileBase\n def output_content\n File.binread(source_file.content)\n end... | ruby | chosen |
[
{
"from": "system",
"value": "Move test teardown into `ensure` block.\n"
},
{
"from": "human",
"value": "require 'abstract_unit'\nrequire 'active_support/core_ext/kernel/concern'\n\nclass KernelConcernTest < ActiveSupport::TestCase\n def test_may_be_defined_at_toplevel\n mod = ::TOPLEVEL_BIN... | ruby | chosen |
[
{
"from": "system",
"value": "Fix simple rubocop issues in helpers\n"
},
{
"from": "human",
"value": "module Spree\n module Admin\n module GeneralSettingsHelper\n def currency_options\n currencies = ::Money::Currency.table.map do |code, details|\n iso = details[:iso_code... | ruby | chosen |
[
{
"from": "system",
"value": "Update PodSpecs (now in github)\n"
},
{
"from": "human",
"value": "#\n# Be sure to run `pod lib lint TableViewDescriptor.podspec' to ensure this is a\n# valid spec and remove all comments before submitting the spec.\n#\n# Any lines starting with a # are optional, bu... | ruby | chosen |
[
{
"from": "system",
"value": "[1.1.0] Fix a Swift error w.r.t. missing init method\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"WebASDKImageManager\"\n s.version = \"1.0.1\"\n s.summary = \"Image downloader and cache for AsyncDisplayKit th... | ruby | chosen |
[
{
"from": "system",
"value": "Update Python26 homepage URL to https"
},
{
"from": "human",
"value": "cask :v1 => 'python26' do\n version '2.6.6'\n sha256 'f3683e71af5cd96dfd838c76ef7011ca0521562fb2f0d8c30a43dffe62d57c49'\n\n url \"https://www.python.org/ftp/python/#{version}/python-#{version}... | ruby | chosen |
[
{
"from": "system",
"value": "Change name of date parameter for /performances to be in line with web timetable path\n"
},
{
"from": "human",
"value": "module Api::V1\n class PerformancesController < Api::ApiController\n def index\n competition = Competition.find(params[:competition_id])... | ruby | chosen |
[
{
"from": "system",
"value": "Drop the :accord_name from ApplicationController::Feature struct\n"
},
{
"from": "human",
"value": "class ApplicationController\n Feature = Struct.new(:role, :role_any, :name, :accord_name, :title) do\n def self.new_with_hash(hash)\n feature = new(*members.... | ruby | chosen |
[
{
"from": "system",
"value": "Patch OMake to build under OCaml 3.12\n\nSigned-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass OMake <Formula\n url 'http://omake.metaprl.org/downloads/omake-0.9.8.5-3.tar.g... | ruby | chosen |
[
{
"from": "system",
"value": "Use new README in gemspec\n"
},
{
"from": "human",
"value": "lib = File.expand_path(\"../lib\", __FILE__)\n$:.unshift lib unless $:.include? lib\n\nrequire \"gas/version\"\n\nGem::Specification.new do |s|\n s.name = \"gas\"\n s.version = Gas::VERSION\n s.authors ... | ruby | chosen |
[
{
"from": "system",
"value": "Add correctly quoted parameters for jk.conf file in mod::jk spec test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'apache::mod::jk', :type => :class do\n it_behaves_like 'a mod class, without including apache'\n\n context \"with only requi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix crash on empty player list\n"
},
{
"from": "human",
"value": "require 'minecraft-query'\nrequire 'hashie'\n\ncommand 'list' do |bot, msg|\n bot.api.send_chat_action chat_id: msg.chat.id,\n action: 'typing'\n\n begin\n old_stdout = ... | ruby | chosen |
[
{
"from": "human",
"value": "Add the async sum example\n"
},
{
"from": "gpt",
"value": "#\n# bundle exec ruby examples/async_sum.rb client\n# bundle exec ruby examples/async_sum.rb server\n#\n\nrequire \"tennis\"\nrequire \"tennis/backend/redis\"\n\nlogger = Logger.new(STDOUT)\nlogger.level = Lo... | ruby | chosen |
[
{
"from": "system",
"value": "Set assignment params in controller\n"
},
{
"from": "human",
"value": "module Api::V1\n class AssignmentsController < ApiController\n doorkeeper_for :all\n before_action :set_assignment, :except => [:index, :create]\n\n def index\n render :json => { :... | ruby | chosen |
[
{
"from": "system",
"value": "Replace deprecated include with cover\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n# Person or team that owns a result. Teams can be permanent year-long teams,\n# or event-only teams.\nmodule Calculations\n module V3\n module Models\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add unique constraint to users.name\n"
},
{
"from": "human",
"value": "class CreateUsersTable < ActiveRecord::Migration\n def change\n create_table :users do |t|\n t.string :name, null: false\n t.string :password_digest\n t.timestamps\n end\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add file_path to atomic_docs model"
},
{
"from": "human",
"value": "class CreateAtomicDocs < ActiveRecord::Migration[5.1]\n def change\n create_table :atomic_docs do |t|\n t.string :url\n t.string :status\n\n t.timestamps\n end\n\n add_index... | ruby | chosen |
[
{
"from": "human",
"value": "Update broadcast_id primary and foreign keys to bigint\n"
},
{
"from": "gpt",
"value": "class ChangeBroadcastIdToBigint < ActiveRecord::Migration[6.0]\n def up\n change_column :broadcasts, :id, :bigint\n\n change_column :article_votes, :article_id, :bigint\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Bump version of zip-code-info gem\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'spree_advanced_cart'\n s.version = '1.0.0'\n s.summary = 'Cart with several useful additions for S... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.4.2.2 to 0.4.3.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'log'\n s.version = '0.4.2.2'\n s.summary = 'Logging to STD IO with levels, tagging, and coloring'\n s.des... | ruby | chosen |
[
{
"from": "system",
"value": "Remove \"factor\" from the Input spec factory\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :input do\n sequence(:lookup_id)\n key { \"input-#{ lookup_id }\" }\n factor 1\n min_value 0\n max_value 100\n start_value 10\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Replace deprecated confirm! with confirm.\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n\n # this user has the default role :user\n factory :user do\n name 'Test User'\n sequence(:email) {|n| \"example#{n}@example.com\" }\n phone \"+49 30 1234... | ruby | chosen |
[
{
"from": "system",
"value": "Add a pause so the test works\n"
},
{
"from": "human",
"value": "module ProxiesHelper\n def create_proxy_using_partial(*users)\n users.each do |user|\n first('a.select2-choice').click\n find(\".select2-input\").set(user.user_key)\n expect(page).to... | ruby | chosen |
[
{
"from": "system",
"value": "Fix compatibility with old chef 12 clients\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "name 'resolver'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookbooks@chef.io'\... | ruby | chosen |
[
{
"from": "system",
"value": "Update Chef version requirement to use sensitive properties\n"
},
{
"from": "human",
"value": "name 'nexus3'\nmaintainer 'Criteo'\nmaintainer_email 'sre-core-infra@criteo.com'\nlicense 'MIT'\ndescription 'Installs/Configures Sonatype Nexus 3 Repository Manager'\nlon... | ruby | chosen |
[
{
"from": "system",
"value": "Bring in the compat_resource cookbook\n"
},
{
"from": "human",
"value": "name 'httpd'\nversion '0.2.19'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookbooks@chef.io'\nlicense 'Apache 2.0'\ndescription 'Provides httpd_service, httpd_config, and httpd_module... | ruby | chosen |
[
{
"from": "system",
"value": "Use rsyslog 2.0 for Chef 11 compat\n"
},
{
"from": "human",
"value": "name 'bluepill'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookbooks@chef.io'\nlicense 'Apache 2.0'\ndescription 'Installs bluepill gem and configures to manage services, includes bluepi... | ruby | chosen |
[
{
"from": "system",
"value": "Add conflicts section for cookbooks we obsolete\n"
},
{
"from": "human",
"value": "name 'hadoop'\nmaintainer 'Continuuity, Inc.'\nmaintainer_email 'ops@continuuity.com'\nlicense 'Apache 2.0'\ndescription 'Installs/Configures Hadoop (H... | ruby | chosen |
[
{
"from": "system",
"value": "Include yotext \"COFFEE TIME\" link\n"
},
{
"from": "human",
"value": "require 'sinatra'\nrequire 'net/http'\n\nset :server, 'thin'\n\nbase_url = ''\n\nget '/' do\n Net::HTTP.post_form(URI.parse(\n 'https://api.justyo.co/yoall/'),\n {'api_token' => ... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake as a dev dependency"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'em-berp-protocol/version'\n\nGem::Specification.new do |gem|\n gem... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing mocha gem dependency"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'gusteau/version'\n\nGem::Specification.new do |gem|\n gem.name... | ruby | chosen |
[
{
"from": "system",
"value": "Set payment method to invoice\n\nIt should've been here, not the line items\n"
},
{
"from": "human",
"value": "\nGiven /^I have a membership id \"(.*?)\"$/ do |membership_id|\n @membership_id = membership_id\nend\n\nGiven /^I requested (\\d+) membership at the leve... | ruby | chosen |
[
{
"from": "system",
"value": "Add metadata for the source code\n\nBy doing this, automated tools like dependabot can now find the repository based on the gem."
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/smart_properties/version', __FILE__)\n\nGem:... | ruby | chosen |
[
{
"from": "system",
"value": "Add images import to podfile\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = 'ios-sdk'\n s.version = '0.1.0'\n\n s.summary = 'Mapzen iOS SDK'\n s.description = 'Mapzen iOS SDK'\n s.homepage = 'https://mapzen.com/... | ruby | chosen |
[
{
"from": "system",
"value": "Set bundler version in the gemspec\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/dry/container/version', __FILE__)\n\nGem::Specification.new do |spec|\n spec.name = 'dry-container'\n spec.version = ::Dry::Container::VERSION\n ... | ruby | chosen |
[
{
"from": "system",
"value": "JariBakken: Fix scoping issue on Ruby 1.8 and make sure dirs exist when unzipping.\n\ngit-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@9225 07704840-8298-11de-bf8c-fd130f914ac9\n"
},
{
"from": "human",
"value": "require 'zip/zip'\n\nmodule Selenium\n module Web... | ruby | chosen |
[
{
"from": "system",
"value": "Set gem description to silence bundler warning.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'htwax/version'\n\nGem::Specification.new do |spec|\n sp... | ruby | chosen |
[
{
"from": "system",
"value": "Add NPM modules to gem\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'execjs/xtrn/version'\n\nGem::Specification.new do |spec|\n spec.name = ... | ruby | chosen |
[
{
"from": "system",
"value": "Add yardoc to the dependencies.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\nrequire 'guard/jasmine/version'\n\nGem::Specification.new do |s|\n s.name = 'guard-jasmine'\n s.version = Guard::... | ruby | chosen |
[
{
"from": "system",
"value": "Improve with trait\n* Add each difficulty factories\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :music do\n sequence(:name) { |n| \"music_#{n}\" }\n type \"Music::HardMusic\"\n difficulty '10+'\n score 1000\n achivement_rate 95... | ruby | chosen |
[
{
"from": "system",
"value": "Remove not very useful test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe TicTacToe do\n it 'has a version number' do\n expect(TicTacToe::VERSION).not_to be nil\n end\n\n it 'has a board' do\n game = TicTacToe::Board.new\n expect(g... | ruby | chosen |
[
{
"from": "system",
"value": "Modify controller action to only return status 400\n\n- Using render results in rails trying to render the 'create' partial after the action has completed execution.\n- This causes the app to try to render the entire programming annotation with an invalid post, causing errors a... | ruby | chosen |
[
{
"from": "human",
"value": "Update hosts' default meeting caps\n"
},
{
"from": "gpt",
"value": "class ChangeHostDefaults < ActiveRecord::Migration\n def up\n change_column :roles, :max_visitors_per_meeting, :integer, :default => 1\n change_column :roles, :max_visitors, :integer, :default... | ruby | chosen |
[
{
"from": "system",
"value": "Fix UKRDC path query to only return results having a loinc_code\n\nWe will not send any observations where the observation_description.loinc_code is NULL or ‘’\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire_dependency \"renalware/ukrdc\"... | ruby | chosen |
[
{
"from": "system",
"value": "Increase TTL for rails cache to 1 day\n"
},
{
"from": "human",
"value": "class WeatherMan\n @w_api = Wunderground.new(ENV[\"WUNDERGROUND_API_KEY\"])\n\n def self.key_for(zip_code, time)\n format = '%Y-%m-%d'\n format += 'H%H' if time.to_date === Date.today\n... | ruby | chosen |
[
{
"from": "system",
"value": "Write the output of the example\n"
},
{
"from": "human",
"value": "$: << File.expand_path('../../lib', __FILE__)\nrequire 'backtrace_counter'\nrequire 'pp'\n\nclass Foo\n def foo\n 'foo'\n end\nend\n\nclass Bar\n def self.bar\n 'bar'\n end\nend\n\nBacktrac... | ruby | chosen |
[
{
"from": "system",
"value": "Update the :link_to_logout method to display firstname for now\n"
},
{
"from": "human",
"value": "# app/views/layouts/bobcat.rb\nmodule Views\n module Layouts\n class Bobcat < ActionView::Mustache\n def application_javascript\n javascript_include_tag... | ruby | chosen |
[
{
"from": "system",
"value": "Make homepage GitHub repo, so gem information is easily accessible\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"extra_extra/version\"\n\n# Describe your gem and declare its dependencie... | ruby | chosen |
[
{
"from": "system",
"value": "Use `chars` instead of `split`\n"
},
{
"from": "human",
"value": "require \"base62/version\"\nrequire \"base62/string\"\nrequire \"base62/integer\"\n\nmodule Base62\n PRIMITIVES = (0..9).collect { |i| i.to_s } + ('A'..'Z').to_a + ('a'..'z').to_a\n \n class << sel... | ruby | chosen |
[
{
"from": "system",
"value": "Add backup dir to asdf\n"
},
{
"from": "human",
"value": "include_recipe \"asdf::log_output\"\n\nbash \"download_codedeploy\" do \n environment ({ 'HOME' => ::Dir.home(\"ubuntu\"), 'USER' => \"ubuntu\" })\n cwd \"/home/ubuntu\"\n user \"ubuntu\" \n code \"wget... | ruby | chosen |
[
{
"from": "system",
"value": "Move readonly database traffic to katla\n"
},
{
"from": "human",
"value": "name \"web\"\ndescription \"Role applied to all web/api servers\"\n\ndefault_attributes(\n :accounts => {\n :users => {\n :rails => {\n :status => :role,\n :members => ... | ruby | chosen |
[
{
"from": "system",
"value": "Create tmp dir if does not exist\n"
},
{
"from": "human",
"value": "require \"cucumber_tree/handler/base\"\nrequire \"yaml_db\"\n\nmodule CucumberTree\n module Handler\n class Database < Base\n\n def load(snapshot)\n SerializationHelper::Base.new(Yam... | ruby | chosen |
[
{
"from": "system",
"value": "Change the GitHub URI [ci skip]\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'myaso/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove bootstrap-sass version sniffing, its implemented in bootstrap-navbar gem now\n"
},
{
"from": "human",
"value": "require 'bootstrap-navbar'\n\nmodule BootstrapNavbar::Helpers\n def prepare_html(html)\n html.html_safe\n end\nend\n\nmodule RailsBootstrapNav... | ruby | chosen |
[
{
"from": "system",
"value": "Allow up to 100 commits, instead of 10\n"
},
{
"from": "human",
"value": "require 'rubygems'\n\nrequire 'google_chart'\ninclude GoogleChart\n\nrequire 'grit'\ninclude Grit\n\nclass GitChart\n def initialize(size = '1000x300', threed = true, repo = '.')\n begin\n... | ruby | chosen |
[
{
"from": "system",
"value": "Move require statement below other libs that create dependent constants\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'set'\n\nrequire 'ice_nine/support/recursion_guard'\n\nrequire 'ice_nine/freezer'\nrequire 'ice_nine/freezer/no_freeze'\nrequire '... | ruby | chosen |
[
{
"from": "system",
"value": "Add Caleb Spare as an author\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"fezzik/version\"\n\nGem::Specification.new do |s|\n s.name = \"fezzik\"\n s.version = Fezzik::VERSION\n\n s.requir... | ruby | chosen |
[
{
"from": "system",
"value": "Add browse page for environmental management\n\nPart of https://www.pivotaltracker.com/s/projects/1010882/stories/68145052\n"
},
{
"from": "human",
"value": "module Frontend\n mattr_accessor :organisations_search_client\n mattr_accessor :combined_search_client\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove format matcher from routes.\n\nAs there is no need to have the routes defined for multiple format types, this changes makes the setup lighter and less complex\n "
},
{
"from": "human",
"value": "require 'wash_out/engine'\nrequire 'wash_out/param'\nrequire 'wa... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug where Nokogiri nodes were not stringified\n\nWe were passing nokogiri nodes directly into `connection.quote` which in turn converts them to a YAML representation instead of outputting the original KML.\n"
},
{
"from": "human",
"value": "require 'ostruct'\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add a FIXME to scope the functionality to an RSpec sub module\n"
},
{
"from": "human",
"value": "def check_all_columns(instance)\n instance.class.columns.each do |column|\n instance.send(:\"#{column.name}\").should_not be_nil\n end\nend\n"
},
{
"from": ... | ruby | chosen |
[
{
"from": "system",
"value": "Make README the default RDoc page\n"
},
{
"from": "human",
"value": "spec = Gem::Specification.new do |s| \n s.name = \"scgi\"\n s.version = \"0.9.0\"\n s.author = \"Jeremy Evans\"\n s.email = \"code@jeremyevans.net\"\n s.platform = Gem::Platform::RUBY\n s.sum... | ruby | chosen |
[
{
"from": "human",
"value": "Add plugin for NAT (conntrack) metrics\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\nrequire 'rubygems' if RUBY_VERSION < '1.9.0'\nrequire 'sensu-plugin/metric/cli'\nrequire 'socket'\n\nclass Conntrack < Sensu::Plugin::Metric::CLI::Graphite\n\n option :schem... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Page not being taggable because of notpermitted `tag_list` attribute\n"
},
{
"from": "human",
"value": "module Caffeine\n class Page < Node\n PERMITTED_ATTRIBUTES = Caffeine::Node::PERMITTED_ATTRIBUTES + %i(main content summary)\n\n class_attribute :permi... | ruby | chosen |
[
{
"from": "system",
"value": "Test loading a directory by path.\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe Modular do\n context 'When included in a class' do\n before do\n class Modular1\n include Modular\n end\n\n class Module1\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix aliased operators specs on Ruby 1.8.7\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe SexyScopes::Arel::PredicateMethods do\n before do\n @attribute = User.attribute(:score)\n end\n \n RUBY_19_METHODS = %w( != !~ )\n \n METHODS = {\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove reference to deleted file.\n"
},
{
"from": "human",
"value": "require \"phrender/version\"\nrequire \"phrender/logger\"\nrequire \"phrender/phantom_js_engine\"\nrequire \"phrender/phantom_js_session\"\nrequire \"phrender/rack_base\"\nrequire \"phrender/rack_m... | ruby | chosen |
[
{
"from": "system",
"value": "Remove non-existen configuration option from initalizer template.\n"
},
{
"from": "human",
"value": "Ecm::Tags.configure do |config|\n # Set the base controller\n #\n # Default: config.base_controller = '<%= base_controller_class_name %>'\n #\n config.base_cont... | ruby | chosen |
[
{
"from": "system",
"value": "Change user home tests to pass on rubinius, made them more expressive.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nrequire 'spec_helper'\n\ndescribe TTY::Terminal, '#home' do\n\n before { ENV.stub!(:[]) }\n\n subject { described_class.new.home ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix migration written to fix synced users\n\nThe earlier version was incompatible with mongoid,\nbecause it expects keys to be symbols or strings.\n"
},
{
"from": "human",
"value": "class FixErroneouslySyncedUsersWithEmptyPermissions < Mongoid::Migration\n def self... | ruby | chosen |
[
{
"from": "system",
"value": "Add a coll to the recently viewed factlink list.\n"
},
{
"from": "human",
"value": "module Interactors\n module Facts\n class Create\n include Pavlov::Interactor\n\n arguments :displaystring, :url, :title\n\n def execute\n site = query :'si... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Update gem manifest in attempt to fix GitHub gem builds\"\n\nThis reverts commit 45bcfa6cc68afaf9d73cd193dd640ca375c25712.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"slicehost\"\n s.version = \"0.0.2\"\n s.date ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary indirection in test\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'spec_helper'\n\ndescribe \"General Settings\" do\n include AuthenticationHelper\n\n before(:each) do\n login_as_admin_and_visit spree.admin_dashb... | ruby | chosen |
[
{
"from": "human",
"value": "Add missing index for question ID\n"
},
{
"from": "gpt",
"value": "class IndexQuestionOptionsOnQuestionId < ActiveRecord::Migration\n def self.up\n add_index :question_options, :question_id\n end\n\n def self.down\n remove_index :question_options, :question_... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for failed JSON loading\n"
},
{
"from": "gpt",
"value": "require File.dirname(__FILE__) + '/spec_helper.rb'\n\ndescribe \"AMEE module\" do\n\n it \"should cope if json gem isn't available\" do\n # Monkeypatch Kernel#require to make sure that require 'jso... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for koji module\n"
},
{
"from": "gpt",
"value": "# Polisher Koji Spec\n#\n# Licensed under the MIT license\n# Copyright (C) 2013 Red Hat, Inc.\n\nrequire 'polisher/koji'\n\nmodule Polisher\n describe Koji do\n describe \"::has_build?\" do\n context... | ruby | chosen |
[
{
"from": "system",
"value": "Fix required version.rb path in 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 'gh/pub_keys/version'\n\nGem::Specification.new do |spec|\n spec... | ruby | chosen |
[
{
"from": "system",
"value": "Add travis-lint to list of development dependencies\n\nThis ensures the gem is installed when we run our tests via Travis CI.\n\nChange-Id: I2eef2593b89f94828a3cdf81854e305b8d13121a\nReviewed-on: http://gerrit.causes.com/45340\nTested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7... | ruby | chosen |
[
{
"from": "system",
"value": "Fix summary and description into gemspec\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path '../lib', __FILE__\n$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)\n\nrequire 'emotee/version'\n\nGem::Specification.new do |spec|\n spec.nam... | ruby | chosen |
[
{
"from": "system",
"value": "Comment out server-side test to detect generated text/binary files\n"
},
{
"from": "human",
"value": "require_relative '../test_base'\n\nclass BinaryFileTest < TestBase\n\n def self.id58_prefix\n 'd93'\n end\n\n # - - - - - - - - - - - - - - - - -\n\n test '5... | ruby | chosen |
[
{
"from": "system",
"value": "Make tests run in verbose mode to pinpoint segfault locations.\n\nSince the switch to minitest, the tests sometimes segfault, probably\nthrough a combination of ordering and environment issues. The regular run\nwon't give any information about which test caused the segfault. In... | ruby | chosen |
[
{
"from": "system",
"value": "Remove load path gibberish, remove coding\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"gemdiff/version\"\n\nGem::Specification.new do |spec|\n sp... | ruby | chosen |
[
{
"from": "system",
"value": "Bump to fix ReportTemplate issue.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nGem::Specification.new do |s|\n s.name = 'nexpose'\n s.version = '0.2.1'\n s.homepage = 'https://github.com/rapid7/nexpose-client... | ruby | chosen |
[
{
"from": "system",
"value": "Add digest require to UploadHelper\n"
},
{
"from": "human",
"value": "module UploadHelper\n def self.validate(text)\n return false if text.nil? or text.length <= 0\n\n secret = ENV[\"TREESTATS_SECRET\"]\n return true if secret.nil?\n\n result = false\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Update seed data, add more groups, and members to those groups\n"
},
{
"from": "human",
"value": "sherman = User.create(\n name: 'Sherman Ng',\n email: 'sherman.ng10@gmail.com',\n password: '1234'\n)\n\nace = User.create(\n name: 'Ace Burgess',\n email: 'burges... | ruby | chosen |
[
{
"from": "system",
"value": "Add test/unit to the list of deps\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'jsonnet/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec to remove warnings\n\n- Use MIT license\n- Use pessimistic operator to give version constraints\n"
},
{
"from": "human",
"value": "spec = Gem::Specification.new do |s|\n s.name = \"hector\"\n s.version = \"1.0.9\"\n s.platform = Ge... | ruby | chosen |
[
{
"from": "system",
"value": "Check RUBY_VERSION for 1.9 support\n"
},
{
"from": "human",
"value": "# \nrequire('rubygems')\n\nmodule Twitter; end\n\ndef require_local(suffix)\n require(File.expand_path(File.join(File.dirname(__FILE__), suffix)))\nend\n\n# For better unicode support\n$KCODE = '... | ruby | chosen |
[
{
"from": "system",
"value": "Correct coding of __FILE__ expectation\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../spec_helper'\n\n# specs for __FILE__\n\ndescribe \"The __FILE__ constant\" do\n it \"equals the current filename\" do\n File.basename(__FILE__).should... | ruby | chosen |
[
{
"from": "system",
"value": "Remove debug code from blobs spec\n"
},
{
"from": "human",
"value": "describe BlobsController do\n render_views\n let(:repository) { Factory.create(:repo_with_data) }\n \n # Test dependent on the fact that the default repo_with_data contains a Gemfile\n describ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix decoding of nil values in DataRow messages."
},
{
"from": "human",
"value": "module Vertica\n module Messages\n class DataRow < BackendMessage\n message_id 'D'\n\n attr_reader :values\n\n def initialize(data)\n @values = []\n fie... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to new docker deb suffix style\n"
},
{
"from": "human",
"value": "default['travis_docker']['version'] = '1.12.6-0~trusty'\ndefault['travis_docker']['users'] = %w(travis)\ndefault['travis_docker']['compose']['url'] = 'https://github.com/docker/compose/releases... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify loading of components, no need to depend on rubygems.\n"
},
{
"from": "human",
"value": "module Compass::Magick; end\n\nbegin\n # Gem install\n require 'rubygems'\n require 'RMagick'\n require 'compass-magick/command'\n require 'compass-magick/function... | ruby | chosen |
[
{
"from": "system",
"value": "Add argument that has cloud credentials\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n# Copyright 2014 TIS Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\... | ruby | chosen |
[
{
"from": "system",
"value": "Use warn level message when disabled via attribute\n"
},
{
"from": "human",
"value": "if node[:omnibus_updater][:disabled]\n Chef::Log.info 'Omnibus update disabled as requested'\nelsif node[:omnibus_updater][:install_via]\n case node[:omnibus_updater][:install_... | ruby | chosen |
[
{
"from": "system",
"value": "Improve the paren matcher algorithm\n"
},
{
"from": "human",
"value": "class ParensMatcher\n def initialize(str)\n @str = str\n @balanced = true\n @number_of_opened_parens = 0\n end\n\n def balanced?\n if parens.first == ')' || parens.last == '('\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change require statements to use gibberish gem.\n"
},
{
"from": "human",
"value": "require \"precious_cargo/version\"\nrequire \"digest/sha2\"\nrequire \"openssl\"\nrequire 'base64'\n\nrequire 'precious_cargo/secret'\nrequire 'precious_cargo/data'\n\nmodule Precious... | ruby | chosen |
[
{
"from": "system",
"value": "Update filesize requirement from ~> 0.1.1 to >= 0.1.1, < 0.3.0\n\nUpdates the requirements on [filesize](https://github.com/dominikh/filesize) to permit the latest version.\n- [Release notes](https://github.com/dominikh/filesize/releases)\n- [Commits](https://github.com/dominik... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.