conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use name for now to stop from breaking on tags\n"
},
{
"from": "human",
"value": "module KeywordsHelper\n def keyword_action_links keyword\n links = []\n if current_user.is_admin?\n links << (link_to 'Edit', edit_keyword_path(keyword))\n links << (l... | ruby | chosen |
[
{
"from": "system",
"value": "Replace 'Profile' with 'My account' on menu bar\n"
},
{
"from": "human",
"value": "module MenuBarHelper\n def menu_bar_links\n [\n link_to_profile,\n link_to_classroom,\n link_to_bibliotheca,\n solve_discussions_link,\n user_discussions_... | ruby | chosen |
[
{
"from": "system",
"value": "Expand the list of valid tarball content types\n\nThe existing community site has no validation on content type, so the\nfollowing content types exist in the database:\n\n* application/x-gzip\n* application/gzip\n* application/octet-stream\n* application/x-tar\n* application/x-... | ruby | chosen |
[
{
"from": "system",
"value": "Add in a new file attachment allowed (outlook .msg)\n\n[Trello Story](https://trello.com/c/VmHwceUv/227-add-in-a-new-file-attachment-allowed)\n"
},
{
"from": "human",
"value": "class FileUploader < CarrierWave::Uploader::Base\n POSSIBLE_IMG_EXTENSIONS = %w(jpg jpeg... | ruby | chosen |
[
{
"from": "human",
"value": "Add testing for helper methods of Rim.\n"
},
{
"from": "gpt",
"value": "# -- encoding: utf-8 --\nrequire 'rim'\nrequire 'test/unit'\n\nclass TestHelperMethods < Test::Unit::TestCase\n\n class ::Rim\n attr_accessor :some_new_attr\n end\n\n def test_attr_accesso... | ruby | chosen |
[
{
"from": "system",
"value": "Add rspec to development dependencies\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"regentanz/version\"\n\nGem::Specification.new do |s|\n s.name = \"regentanz\"\n s.version = Reg... | ruby | chosen |
[
{
"from": "system",
"value": "Add Zoe to the gemspec in thanks for her dedicated service to robotic love.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'robolove/version'\n\nGem::Sp... | ruby | chosen |
[
{
"from": "system",
"value": "Fix warnings found by running 'pod spec lint'\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'CoconutKit'\n s.version = '2.0'\n s.license = 'MIT'\n s.summary = 'CoconutKit is a library of high-quality iOS components'\n s.homepage = 'https://... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Ryan from cruise notifications\n"
},
{
"from": "human",
"value": "Project.configure do |project|\n project.email_notifier.emails = [\"scott.willson@gmail.com\", \"al.pendergrass@gmail.com\", \"ryan@cyclocrazed.com\"]\n if RUBY_PLATFORM[/mswin|mingw32/]\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use more descriptive title, and fix source query\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: appserver\n# Recipe:: dbserver\n#\n\ninclude_recipe 'mysql::client'\ninclude_recipe 'mysql::server'\n\ninclude_recipe 'database::mysql'\n\nmysql_connection = {\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix definition specs not to be couple with Json::Reader\n"
},
{
"from": "human",
"value": "describe Swarker::Definition do\n let(:swagger_definition) do\n Swarker::Json::Reader.new(File.expand_path('../../fixtures/definitions/swagger.json.yml', __FILE__)).read\n... | ruby | chosen |
[
{
"from": "system",
"value": "Make view helper test more resilient to environmental differences\n\nThe spec for the link_to_capturable view helper appears to be dependent\non some part of the Ruby development environment. On my setup and\nMarcel's, the spec passes when we compare output against\n\n <a hr... | ruby | chosen |
[
{
"from": "system",
"value": "Access scheme attributes with as_json\n"
},
{
"from": "human",
"value": "class SchemePresenter\n\n def initialize(scheme, url_helper)\n @scheme = scheme\n @url_helper = url_helper\n end\n\n def as_json(options={})\n attrs = @scheme.marshal_dump\n attr... | ruby | chosen |
[
{
"from": "system",
"value": "Fix ci data in hook when create git tag via UI\n"
},
{
"from": "human",
"value": "require_relative 'base_service'\n\nclass CreateTagService < BaseService\n def execute(tag_name, ref, message)\n valid_tag = Gitlab::GitRefValidator.validate(tag_name)\n if valid... | ruby | chosen |
[
{
"from": "system",
"value": "Use link field from bigquery\n\nWe don't store content IDs in ecommerce data any more.\n"
},
{
"from": "human",
"value": "require \"csv\"\n\nmodule LearnToRank\n module LoadSearchQueries\n def self.from_csv(datafile)\n queries = {}\n CSV.foreach(datafi... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the code to prevent pushing public server\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'color_schema_validator/version'\n\nGem::Specification.n... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure assets get the correct relative url root\n"
},
{
"from": "human",
"value": "# genigames ungamed\nset :user, \"deploy\"\nset :deploy_to, \"/web/portal\"\nset :domain, \"genigames.dev.concord.org\"\nserver domain, :app, :web\nrole :db, domain, :primary => tr... | ruby | chosen |
[
{
"from": "human",
"value": "Initialize aws with credentials for dev environment.\n"
},
{
"from": "gpt",
"value": "require 'aws-sdk'\n\nAWS.config(\n access_key_id: Rails.application.secrets.aws_access_key_id,\n secret_access_key: Rails.application.secrets.aws_secret_access_key\n)\n\n# S3_... | ruby | chosen |
[
{
"from": "system",
"value": "Update to week-6 die 2 assignment\n"
},
{
"from": "human",
"value": "# Die Class 2: Arbitrary Symbols\n\n\n# I worked on this challenge [by myself].\n# I spent [#] hours on this challenge.\n\n# Pseudocode\n\n# Input: labels\n# Output: number of sides and rolls\n# St... | ruby | chosen |
[
{
"from": "system",
"value": "Debug statement should be removed\n"
},
{
"from": "human",
"value": "module UrlHelper\n # Send Devise emails from subdomain\n # https://github.com/plataformatec/devise/wiki/How-To:-Send-emails-from-subdomains\n def set_mailer_url_options\n ActionMailer::Base.d... | ruby | chosen |
[
{
"from": "system",
"value": "Add Mountain Lion dependency to GOG GalaxyClient per vendor homepage\n"
},
{
"from": "human",
"value": "cask :v1 => 'gog-galaxy' do\n version '1.0.2.939'\n sha256 '2c46d7aafe862bc0b2aa6b4bc95490683f8ec80f96feffb7c6f7918e2203e4e7'\n\n url \"http://cdn.gog.com/open... | ruby | chosen |
[
{
"from": "system",
"value": "Fix slider in home page\n"
},
{
"from": "human",
"value": "class HomeController < ApplicationController\n\n layout 'application'\n skip_before_filter :check_site_online, :only => [:offline]\n skip_before_filter :check_site_read_only\n \n def index\n @html_ti... | ruby | chosen |
[
{
"from": "human",
"value": "Add cask for Sequel Pro\n"
},
{
"from": "gpt",
"value": "class SequelPro < Cask\n url 'http://sequel-pro.googlecode.com/files/Sequel_Pro_0.9.9.1.dmg'\n homepage 'http://www.sequelpro.com/'\n version '0.9.9.1'\nend\n"
}
] | ruby | chosen |
[
{
"from": "human",
"value": "Enhance tags service and enable cors for tags\n"
},
{
"from": "gpt",
"value": "class TagsController < ApplicationController\n before_filter :authenticate_user!\n \n # Enable CORS\n before_filter :cors_preflight_check, :only => [:index]\n after_filter :cors_set_a... | ruby | chosen |
[
{
"from": "system",
"value": "Update copy and paste errors in the gemspec\n"
},
{
"from": "human",
"value": "$:.push File.expand_path('../lib', __FILE__)\n\n# Maintain your gem's version:\nrequire 'exlibris/aleph/version'\n\n# Describe your gem and declare its dependencies:\nGem::Specification.n... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Intentional bug to test appraisal\"\n\nThis reverts commit c270a2cff98f430cc86d86bf509a3d415124bfbe.\n"
},
{
"from": "human",
"value": "# Copyright (C) 2008-2011 AMEE UK Ltd. - http://www.amee.com\n# Released as Open Source Software under the BSD 3-Clause l... | ruby | chosen |
[
{
"from": "system",
"value": "Bring back `point: cancel` spec for ConfExecutor\n"
},
{
"from": "human",
"value": "\n#\n# specifying flor\n#\n# Wed Apr 6 14:50:53 JST 2016\n#\n\nrequire 'spec_helper'\n\n\ndescribe Flor::Conf do\n\n describe '.prepare' do\n\n it 'reads a file and returns the ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo *inpt to input\n"
},
{
"from": "human",
"value": "require './lib/game.rb'\nrequire './lib/tic_tac_toe.rb'\n\ndescribe Game do\n let(:ttt){TicTacToe.new}\n let(:new_game){Game.new(ttt)}\n\n describe '#initialize' do\n it 'with a new instance of TicTacT... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Fixed dependency (`@api.fetch_all` is available on google-api-client 0.9.4)\"\n\nThis reverts commit c0d97ce7d700464879a806713a69a084571736eb.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift... | ruby | chosen |
[
{
"from": "system",
"value": "Fix references in Taxon spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Taxon do\n let(:taxon) { Taxon.new(:name => \"Ruby on Rails\") }\n\n context \"validation\" do\n it { should have_valid_factory(:taxon) }\n end\n\n context \"set... | ruby | chosen |
[
{
"from": "system",
"value": "Include sessions helper in teachers controller. Edit/Update user profile is working.\n"
},
{
"from": "human",
"value": "class TeachersController < ApplicationController\n\n def index\n end\n\n def show\n @teacher = Teacher.find_by(id: params[:id])\n @videos... | ruby | chosen |
[
{
"from": "system",
"value": "Add linked resources to EventRepresenter\n"
},
{
"from": "human",
"value": "require 'roar/json/json_api'\n\nclass EventsRepresenter < Roar::Decorator\n include Roar::JSON::JSONAPI\n type :events\n\n property :id, render_nil: true\n property :name, render_nil: tr... | ruby | chosen |
[
{
"from": "system",
"value": "Remove active* version limitations to support Rails 6\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'viitenumero/version'\n\nGem::Specification.new do ... | ruby | chosen |
[
{
"from": "human",
"value": "Add script to sanitize order and user data.\n"
},
{
"from": "gpt",
"value": "\ndef update_address(address, user)\n unless address.nil?\n address.firstname = user[:first_name]\n address.lastname = user[:last_name]\n address.phone = user[:phone]\n address.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix comments for connection pooling\n"
},
{
"from": "human",
"value": "require \"sucker_punch\"\n\nmodule Devise\n module Async\n module Backend\n class SuckerPunch < Base\n include ::SuckerPunch::Job\n\n def self.enqueue(*args)\n new... | ruby | chosen |
[
{
"from": "system",
"value": "Remove not required save call\n"
},
{
"from": "human",
"value": "module Fastlane\n module Actions\n class RecreateSchemesAction < Action\n def self.run(params)\n require 'xcodeproj'\n\n Helper.log.info \"Recreate schemes for project: #{params[... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude WatchKitSupport 1 folder when include WatchKitSupport2\n"
},
{
"from": "human",
"value": "module Gym\n class XcodebuildFixes\n class << self\n # Determine whether this app has WatchKit support and manually package up the WatchKit framework\n de... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the gemspec in prep for 0.0.1 release\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nGem::Specification.new do |s|\n s.name = \"px\"\n s.version = \"0.0.1\"\n s.summary = \"PX library\"\n s.description = \"PX library\"\n s.authors = [\"Cyril David\... | ruby | chosen |
[
{
"from": "system",
"value": "Update sidekiq gem dependency, again\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/sidekiq/hol/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = ['Mike Kim']\n gem.email = ['mykowe... | ruby | chosen |
[
{
"from": "system",
"value": "Fix missing `take-snapshot.js` in bundled gem\n\nA core piece of the gem is the file `take-snapshot.js`. This file wasn't\nincluded in the bundled gem and caused the main diffux application to\nfail snapshotting.\n"
},
{
"from": "human",
"value": "$LOAD_PATH << File... | ruby | chosen |
[
{
"from": "system",
"value": "Configure mail to be sent via SMTP by default\n\nAllows connecting to the VM Mailhog instance\n"
},
{
"from": "human",
"value": "Signon::Application.configure do\n # Settings specified here will take precedence over those in config/application.rb\n\n # In the deve... | ruby | chosen |
[
{
"from": "human",
"value": "Add a sample set request script.\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\n# Simple set request example.\n\n$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')\nrequire 'ostruct'\nrequire 'optparse'\nrequire 'rubygems'\nrequire 'meac_contr... | ruby | chosen |
[
{
"from": "human",
"value": "spec: Add spec for bot (!player)\n"
},
{
"from": "gpt",
"value": "require 'cinch/test'\nrequire 'cinch/plugins/loveletter'\n\nclass MessageReceiver\n attr_accessor :messages\n\n def initialize\n @messages = []\n end\n\n def send(m)\n @messages << m\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Check for failing exit status when recieving invalid arguments.\n"
},
{
"from": "human",
"value": "require_relative 'spec_helper'\n\ndescribe 'Telepath Executable' do\n let(:exe){ run \"./bin/tel #{args.join ' '}\" }\n let(:status){ exe.first }\n let(:output){ ex... | ruby | chosen |
[
{
"from": "system",
"value": "Disable mscgen specs on Windows\n"
},
{
"from": "human",
"value": "require_relative 'test_helper'\n\nMSC_CODE = <<-eos\n# MSC for some fictional process\nmsc {\n hscale = \"2\";\n\n a,b,c;\n\n a->b [ label = \"ab()\" ] ;\n b->c [ label = \"bc(TRUE)\"];\n c=>c [... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for icanhazip.com when no cloud attribute is available.\n"
},
{
"from": "human",
"value": "# Cookbook Name:: sys_dns\n# Recipe:: do_set_public\n\n# Copyright RightScale, Inc. All rights reserved. All access and use subject to the\n# RightScale Terms of ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure the broker list is an array\n"
},
{
"from": "human",
"value": "# Consumes lines from a Kafka partition and writes them to STDOUT.\n#\n# You need to define the environment variable KAFKA_BROKERS for this\n# to work, e.g.\n#\n# export KAFKA_BROKERS=local... | ruby | chosen |
[
{
"from": "system",
"value": "Throw actual run onto background so can be safely restarted\n"
},
{
"from": "human",
"value": "class ScraperAutoRunWorker\n include Sidekiq::Worker\n sidekiq_options queue: :low, backtrace: true\n\n def perform(scraper_id)\n scraper = Scraper.find(scraper_id)\... | ruby | chosen |
[
{
"from": "human",
"value": "Add a podspec file for CocoaPods\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |s|\n s.name = 'AbstractView'\n s.version = '0.0.1'\n s.license = 'MIT'\n s.summary = 'The AbstractView is a simple view that can be used as a simple background view using abstract... | ruby | chosen |
[
{
"from": "system",
"value": "Add more intact objects spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'intact objects' do\n let(:datapipe) do\n Datapipes.new\n end\n\n it 'runs but occurs nothing' do\n expect { datapipe.run_resource }.not_to raise_error\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs for chaining functions\n"
},
{
"from": "human",
"value": "module Braingasm\n\n describe PrefixStack do\n\n describe \"#fix_params\" do\n let(:input_function) { instance_double(Proc) }\n let(:curried_function) { instance_double(Proc) }\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage link in gemspec\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"wanikani\"\n s.version = \"0.0.1\"\n s.date = \"2012-12-10\"\n s.summary = \"Add Japanese Kanji learning goodness to your Ruby projec... | ruby | chosen |
[
{
"from": "system",
"value": "Remove use of deprecated `bypass` opt for sign_in\n\nThis commit updates the logic in the Spree::UsersController to remove\nthe usage of the deprecated `bypass` option for Devise's `sign_in`\nhelper.\n"
},
{
"from": "human",
"value": "class Spree::UsersController < ... | ruby | chosen |
[
{
"from": "system",
"value": "Use modulesync to manage meta files\n"
},
{
"from": "human",
"value": "require 'puppetlabs_spec_helper/module_spec_helper'\n\nRSpec.configure do |c|\n c.include PuppetlabsSpec::Files\n\n c.before :each do\n # Ensure that we don't accidentally cache facts and en... | ruby | chosen |
[
{
"from": "system",
"value": "Test new method of copying fixtures for testing\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'rake'\n\nFIXTURE_SOURCE_PATH = File.join(File.dirname(__FILE__), 'fixture', 'sources')\nFIXTURE_TARGET_PATH = File.join(File.dirname(__FILE__), 'fixture',... | ruby | chosen |
[
{
"from": "system",
"value": "Add comment why we require delegation from AS\n"
},
{
"from": "human",
"value": "require 'bundler/setup'\nrequire 'active_support/core_ext/module/delegation'\nrequire 'paperclip/tus'\n\nRSpec.configure do |config|\n # Enable flags like --only-failures and --next-fa... | ruby | chosen |
[
{
"from": "system",
"value": "Load humus helpers into the specs.\n"
},
{
"from": "human",
"value": "Bundler.require(:database, :test)\n\nrequire File.expand_path '../database/db', __FILE__\nrequire File.expand_path '../database/domain', __FILE__"
},
{
"from": "gpt",
"value": "Bundler... | ruby | chosen |
[
{
"from": "system",
"value": "Move coverage code to the very top of the file\n\nAccording to the documentation it must be run before any application\ncode is being required.\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)\nrequire 'jekyll/asciinema'\... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude config, scripts and spec from simplecov coverage report\n"
},
{
"from": "human",
"value": "$LOAD_PATH << File.join(File.dirname(__FILE__), '..')\n\nif ENV['CODECLIMATE_REPO_TOKEN']\n require 'codeclimate-test-reporter'\n CodeClimate::TestReporter.start\nel... | ruby | chosen |
[
{
"from": "system",
"value": "Use .dnsimple.local when running tests"
},
{
"from": "human",
"value": "require 'vcr'\nrequire 'cgi'\nrequire 'lib/dnsimple'\n\nVCR.config do |c|\n c.cassette_library_dir = 'fixtures/vcr_cassettes'\n c.stub_with :fakeweb\n c.filter_sensitive_data(\"<USERNAME>\") ... | ruby | chosen |
[
{
"from": "system",
"value": "Add good defaults for rspec\n"
},
{
"from": "human",
"value": "RSpec.configure do |c|\n c.before :suite do\n compile_opal_coffee.should be_true\n end\n\n def compile_opal_coffee\n system \"coffee -c #{File.expand_path('../../lib/opal.coffee', __FILE__)}\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Expand config in rspec helper\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "$TESTING = true\n$:.push File.join(File.dirname(__FILE__), \"..\", \"lib\")\n\nrequire \"mixlib/cli\"\n\nclass TestCLI\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update tests to work with Jekyll 3\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)\nrequire 'jekyll'\nrequire 'jekyll-seo-tag'\nrequire 'html/proofer'\n\nENV[\"JEKYLL_LOG_LEVEL\"] = \"error\"\n\ndef dest_dir\n File.expa... | ruby | chosen |
[
{
"from": "system",
"value": "Delete interactions before running the grouper\n"
},
{
"from": "human",
"value": "module Genome\n module Groupers\n class InteractionGrouper\n def self.run\n ActiveRecord::Base.transaction do\n puts 'add members'\n add_members\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade deps to latest stable release\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'googlemaps/services/version'\n\nGem::Specification.new do |spec|\n... | ruby | chosen |
[
{
"from": "system",
"value": "Append ; using only SQL\n"
},
{
"from": "human",
"value": "module MultitenancyTools\n # {FunctionsDumper} can be used to generate a SQL dump of all functions that\n # are present on a PostgreSQL schema.\n #\n # @example\n # dumper = MultitenancyTools::Functio... | ruby | chosen |
[
{
"from": "system",
"value": "Change name to use name in auth signin spec features test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nfeature \"Auth\" do\n context \"signin\" do\n scenario \"A user can access the signin page\" do\n visit signin_path\n expect(page).to ha... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary configuration for test files\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire File.expand_path('../lib/ice_nine/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = 'ice_nine'\n gem.version = IceNine::VER... | ruby | chosen |
[
{
"from": "human",
"value": "Add a skeleton kaminari configuration file\n"
},
{
"from": "gpt",
"value": "Kaminari.configure do |config|\n # config.default_per_page = 25\n # config.max_per_page = nil\n # config.window = 4\n # config.outer_window = 0\n # config.left = 0\n # config.right = 0\... | ruby | chosen |
[
{
"from": "system",
"value": "Add the method option for availability zone back.\n"
},
{
"from": "human",
"value": "module HP\n module Cloud\n class CLI < Thor\n\n desc 'config:set', \"set the value for a setting\"\n long_desc <<-DESC\n Set the value for a setting in the configurat... | ruby | chosen |
[
{
"from": "system",
"value": "Remove helpers_express42 cookbook from deps\n"
},
{
"from": "human",
"value": "name 'zabbix_lwrp'\nmaintainer 'LLC Express 42'\nmaintainer_email 'cookbooks@express42.com'\nlicense 'MIT'\ndescription 'Installs and configures Zabbix age... | ruby | chosen |
[
{
"from": "system",
"value": "Check that file is readable\n"
},
{
"from": "human",
"value": "module ElectricSheeps\n module Sheepfile\n class Evaluator\n \n def initialize(path)\n @path = File.expand_path(path)\n end\n\n def evaluate\n raise \"Unable to eval... | ruby | chosen |
[
{
"from": "system",
"value": "Add comment noting where the code change is going to go\n"
},
{
"from": "human",
"value": "module Provision::Core\nend\n\nrequire 'provision/namespace'\nrequire 'provision/core/machine_spec'\n\nclass Provision::Core::ProvisioningService\n def initialize(options)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add default nil value for\n"
},
{
"from": "human",
"value": "require 'simple_templates/parser/error'\n\nrequire 'set'\n\nmodule SimpleTemplates\n class Parser\n class NodeParser\n\n # The Base class doesn't accept any tokens for parsing, since it isn't\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Beyond Compare.app to 4.0.3.19420\n\nand add zap stanza\n"
},
{
"from": "human",
"value": "cask :v1 => 'beyond-compare' do\n version '4.0.2.19186'\n sha256 '891492897485cc8ef7fa4636185fbc9c188e8dac6ec4564f326884af43fc18d3'\n\n url \"http://www.scootersoftw... | ruby | chosen |
[
{
"from": "system",
"value": "Create mount point if it doesn't exist\n\nThe reason for this is that mount points are automatically deleted in\n/Volumes on OS X upon shutdown or reboot.\n"
},
{
"from": "human",
"value": "#!/usr/bin/ruby\n\nrequire_relative 'sshfs.local'\n\nactive_mounts = `mount... | ruby | chosen |
[
{
"from": "system",
"value": "Set password_changed_at to 4 months so test doesn't flap\n\nSolves https://github.com/devise-security/devise-security/issues/12\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass Devise::PasswordExpiredControllerTest < ActionController::TestCase\n in... | ruby | chosen |
[
{
"from": "system",
"value": "Add cycles per frame test\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass TestNote < MiniTest::Test\n def setup\n @note_1 = MusicTheory::Note.new(frequency: 220, duration: 2.0)\n end\n\n def test_total_frames\n sample_rate = 22050\n fra... | ruby | chosen |
[
{
"from": "system",
"value": "Use getter method instead of instance variable to remove initialization warning\n"
},
{
"from": "human",
"value": "module Typhoeus\n class Request\n\n # This module contians the logic for response streaming.\n module Streamable\n\n # Set on_body callback... | ruby | chosen |
[
{
"from": "system",
"value": "Convert dependencies to formulas for name matching\n\nDependency names are prefixed with the tap location, therefore\ndependency names do not match formula names. We convert dependencies\ninto formulas to ensure proper name checking.\n\nCloses Homebrew/homebrew#35058.\n\nSigned... | ruby | chosen |
[
{
"from": "human",
"value": "Add formula for KDE's Oxygen icons version 4.4.0.\n"
},
{
"from": "gpt",
"value": "require 'formula'\n\nclass OxygenIcons <Formula\n url 'ftp://ftp.kde.org/pub/kde/stable/4.4.0/src/oxygen-icons-4.4.0.tar.bz2'\n homepage 'http://www.oxygen-icons.org/'\n md5 'fbcd42... | ruby | chosen |
[
{
"from": "system",
"value": "Update to new darksky api endpoint\n"
},
{
"from": "human",
"value": "module ForecastIO\n module Configuration\n # Default API endpoint\n DEFAULT_FORECAST_IO_API_ENDPOINT = 'https://api.forecast.io'\n\n # Forecast API endpoint\n attr_writer :api_endpoin... | ruby | chosen |
[
{
"from": "system",
"value": "Make the default preview server host \"localhost\"\n"
},
{
"from": "human",
"value": "module StaticMatic\n class Configuration\n attr_accessor :preview_server_port\n\n attr_accessor :preview_server_host\n \n attr_accessor :use_extensions_for_page_links\... | ruby | chosen |
[
{
"from": "system",
"value": "Replace 'for' iterations for proper loops in seed file\n\nThis commit removes 4 bad smells pointed by codeclimate\n"
},
{
"from": "human",
"value": "namespace :code do\n desc \"Seed example data for C.O.D.E\"\n task seed_example_data: :environment do\n p 'seed ... | ruby | chosen |
[
{
"from": "system",
"value": "Prepare for Ruby 2.3 end-of-life\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'thumbtack/version'\n\nGem::Specification.new do |spec|\... | ruby | chosen |
[
{
"from": "system",
"value": "Package gem with README and CHANGELOG\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"toolsmith/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do |... | ruby | chosen |
[
{
"from": "system",
"value": "Use different PBKDF2 gem compatible with Ruby 2.0\n"
},
{
"from": "human",
"value": "# Copyright (C) 2013 Dmitry Yakimenko (detunized@gmail.com).\n# Licensed under the terms of the MIT license. See LICENCE for details.\n\n$:.push File.expand_path(\"../lib\", __FILE_... | ruby | chosen |
[
{
"from": "system",
"value": "Add description of the gem in gem spec."
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'klarna/version'\n\nGem::Specification.new do |gem|\n ge... | ruby | chosen |
[
{
"from": "system",
"value": "Fix development version mismatch of bson and bson_ext\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib/', __FILE__)\n$:.unshift lib unless $:.include?(lib)\n\nrequire 'fabrication/version'\n\nGem::Specification.new do |s|\... | ruby | chosen |
[
{
"from": "system",
"value": "Set required Ruby version to 1.9.3+ 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 'taxjar/version'\n\nGem::Specification.new do |spec|\n sp... | ruby | chosen |
[
{
"from": "system",
"value": "Use explicit alignment for block-style formulas\n"
},
{
"from": "human",
"value": "# MathJax Block\n# Roughly based on Jekyll's HighlightBlock\nmodule Jekyll\n\n class MathJaxBlock < Liquid::Block\n include Liquid::StandardFilters\n\n # Detect if we need to u... | ruby | chosen |
[
{
"from": "system",
"value": "Update Git to version 1.8.2\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: git\n# Attributes:: source\n#\n# Copyright (C) 2012-2013 Mathias Lafeldt <mathias.lafeldt@gmail.com>\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you ma... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug with denied? method.\n"
},
{
"from": "human",
"value": "require 'securid/securid'\n\nmodule RSA\n module SecurID\n class Session\n attr_reader :status\n\n AUTHENTICATED = :authenticated\n DENIED = :denied\n MUST_CHANGE_PIN = :must_cha... | ruby | chosen |
[
{
"from": "human",
"value": "Add a tiny little Gist library that works for my purposes.\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\nrequire 'net/http'\nrequire 'json'\n\nclass Gist\n attr_accessor :id, :description, :public, :files\n def initialize(hash)\n @id = hash[:id]\n @de... | ruby | chosen |
[
{
"from": "system",
"value": "Add new methods to IO\n"
},
{
"from": "human",
"value": "# This code is free software; you can redistribute it and/or modify it under\n# the terms of the new BSD License.\n#\n# Copyright (c) 2011-2013, Sebastian Staudt\n\nclass RBzip2::IO\n\n def initialize(io)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use mb_chars instead of chars method. Chars is deprecated in Rails Edge.\n"
},
{
"from": "human",
"value": "module ToSlug\n \n # Generate a slug for the string +value+.\n #\n # A slug should consist of numbers (0-9), lowercase letters (a-z) and \n # dashes (-).... | ruby | chosen |
[
{
"from": "system",
"value": "Update bundler to avoid deprecation notices\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n# Reference: http://docs.rubygems.org/read/chapter/20\n\nGem::Specification.new do |s|\n s.name = 'git-scripts'\n s.version = '0.9.2'\n s.date = Time.now.... | ruby | chosen |
[
{
"from": "system",
"value": "Make the context option, so we can write out raw files based on the contents.\n"
},
{
"from": "human",
"value": "module Salt\n class Page\n include Frontable\n include Renderable\n\n attr_accessor :path, :title, :contents, :filename, :extension, :layout\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Make logs completely public in worker"
},
{
"from": "human",
"value": "class LogJob < ApplicationJob\n queue_as :default\n\n def perform(*args)\n log_files = %w[ cron delayed_job ]\n log_files << \"#{ Rails.env }\"\n\n log_files.each do |log_file|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix tests for Rails 6\n\nTemplate rendering has changed in [1] which causes tests to fail on\nRails 6. This changes the `render_erb` test helper to be compatible\nwith both Rails 5 and Rails 6.\nAlso removes unused `view` method.\n\n[1] https://github.com/rails/rails/commit/db4... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.