conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "human",
"value": "Add Source Code Pro font from Adobe\n\nOpen source font that is great for, well, source code. Installs several\nOTF font files to /Library/Fonts\n\nCode Review: Minor Change, Not Needed\n"
},
{
"from": "gpt",
"value": "unless File.exists?(\"/Library/Fonts/SourceCodeP... | ruby | chosen |
[
{
"from": "system",
"value": "Update DNS search domains for Bytemark machines\n"
},
{
"from": "human",
"value": "name \"bytemark\"\ndescription \"Role applied to all servers at Bytemark\"\n\ndefault_attributes(\n :hosted_by => \"Bytemark\",\n :location => \"York, England\",\n :networking => {... | ruby | chosen |
[
{
"from": "system",
"value": "Add colored and rr as dependencies\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'testrus/version'\n\nGem::Specification.new do |gem|\n gem.... | ruby | chosen |
[
{
"from": "system",
"value": "Remove scaling factor from derived dataset\n"
},
{
"from": "human",
"value": "module Atlas\n class Dataset::DerivedDataset < Dataset\n GRAPH_FILENAME = 'graph.yml'.freeze\n\n attribute :base_dataset, String\n attribute :scaling, Preset::Scaling\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Build methods to sanitize and compile robot indexing information\n"
},
{
"from": "human",
"value": "module Cortex\n module Snippets\n module Client\n module Helper\n def snippet(options = {}, &block)\n snippets = webpage[:snippets] || []\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add default_nodes_field global configuration option\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nmodule GraphQL\n module Relay\n module ConnectionType\n # Create a connection which exposes edges of this type\n def self.create_type(... | ruby | chosen |
[
{
"from": "human",
"value": "Add the test helper from the newer version of resque.\n"
},
{
"from": "gpt",
"value": "require 'rack/test'\nrequire 'resque/server'\n\nmodule ResqueAps\n module TestHelper\n class Test::Unit::TestCase\n include Rack::Test::Methods\n def app\n Res... | ruby | chosen |
[
{
"from": "system",
"value": "Check if there's a taxon_concept before trying to update it...\n"
},
{
"from": "human",
"value": "class ChangeObserver < ActiveRecord::Observer\n observe :taxon_common, :distribution, :eu_decision,\n :listing_change, :taxon_concept_reference,\n :taxon_instrum... | ruby | chosen |
[
{
"from": "system",
"value": "Edit Cocktail cask in order to use conditionals\n"
},
{
"from": "human",
"value": "class Cocktail < Cask\n version :latest\n sha256 :no_check\n\n url 'http://usa.maintain.se/CocktailYE.dmg'\n appcast 'http://www.maintain.se/downloads/sparkle/yosemite/yosemite.xm... | ruby | chosen |
[
{
"from": "system",
"value": "Use proper name for add_migrations\n\nRunning the installer on a fresh master (v2.11) Solidus\nthe migrations are not copied in the Rails application.\n\nWe need to use the proper engine name in the FROM parameter.\n\nThis commit fixes that.\n"
},
{
"from": "human",
... | ruby | chosen |
[
{
"from": "system",
"value": "Fix MacPass cask: update .app path for v0.4.1-alpha\n"
},
{
"from": "human",
"value": "class Macpass < Cask\n url 'https://github.com/mstarke/MacPass/releases/download/0.4.1-alpha/MacPass-0.4.1-alpha.zip'\n homepage 'http://mstarke.github.io/MacPass/'\n version '... | ruby | chosen |
[
{
"from": "human",
"value": "Add a cocoapods spec file\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |s|\n s.name = 'RMScannerView'\n s.version = '1.3'\n s.platform = :ios, '7.0'\n s.license = 'MIT'\n s.summary = 'Simple barcode scanner UIView subclass for iOS apps.'\n s.homepag... | ruby | chosen |
[
{
"from": "system",
"value": "Update Alamofire version to latest compatible stable.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"SwiftyDropbox\"\n s.version = \"0.7\"\n s.summary = \"Dropbox Swift SDK for APIv2\"\n s.homepage = \"https://dropbox.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix travis thumbs size test\n"
},
{
"from": "human",
"value": "class Preset < ActiveRecord::Base\n attr_accessible :image\n attached_image :image, :presets => {\n :small => { :width => 314, :height => 206 },\n :big => { :width => 500, :height => 360 }\n }\n... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to using the Github::Markdown gem\n"
},
{
"from": "human",
"value": "require 'github/markdown'\n\nmodule GitHub::HTML\n # HTML Filter that converts Markdown text into HTML and converts into a\n # DocumentFragment. This is different from most filters in that... | ruby | chosen |
[
{
"from": "system",
"value": "Add some documentation to the PATTERN\n\nThe PATTERN is a regex that is supposed to parse HAML.\n"
},
{
"from": "human",
"value": "require \"paml/version\"\nrequire \"paml/stream\"\nrequire \"paml/node\"\nrequire \"paml/tag\"\n\nmodule Paml\n\tHAML_PATTERN = /\n\t\t... | ruby | chosen |
[
{
"from": "system",
"value": "Update VENCore to ~> 3.0.0 in podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Venmo-iOS-SDK\"\n s.version = \"1.0.1\"\n s.summary = \"Official Venmo iOS SDK\"\n s.description = <<-DESC\n Send paym... | ruby | chosen |
[
{
"from": "system",
"value": "Use single quotes everywhere in podspec.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"UIAlertController+Show\"\n s.version = \"0.2.0\"\n s.summary = \"Show UIAlertControllers from anywhere.\"\n\n s.description = <<-DESC... | ruby | chosen |
[
{
"from": "system",
"value": "Add some new TrackThing tests\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../spec_helper'\n\ndescribe TrackThing, \"when tracking changes\" do\n fixtures :track_things, :users\n\n it \"will find existing tracks which are the same\" do... | ruby | chosen |
[
{
"from": "system",
"value": "Speed up slow example in one_click request spec.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"/one_click\" do\n \n context \"when current organisation is an association\" do\n before(:each) do\n default_association_constitution\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add new cask for Sleipnir Browser.\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'sleipnir' do\n version :latest\n sha256 :no_check\n\n url 'http://www.fenrir-inc.com/services/download.php?file=Sleipnir.dmg'\n homepage 'http://www.fenrir-inc.com/sleipnir/'\n lice... | ruby | chosen |
[
{
"from": "system",
"value": "Fix simple rubocop issues in helper\n"
},
{
"from": "human",
"value": "module Spree\n module Admin\n module TaxonsHelper\n def taxon_path(taxon)\n taxon.ancestors.reverse.collect { |ancestor| ancestor.name }.join( \" >> \")\n end\n end\n end... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for IE for new object"
},
{
"from": "human",
"value": "module PluggableJs\n module Helpers\n\n # if file exists – include it, else – call function\n def javascript_pluggable_tag\n controller = params[:controller]\n action = define_pair_action\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Use a php-build fork to download PHP distributions on the US mirror.\n\nGeneric links are down right now.\n"
},
{
"from": "human",
"value": "default[:phpbuild] = {\n :git => {\n :repository => \"git://github.com/CHH/php-build.git\",\n :revision => \"e20c6ff... | ruby | chosen |
[
{
"from": "system",
"value": "Use verifying doubles in WorstOffendersFormatter spec\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nRSpec.describe RuboCop::Formatter::WorstOffendersFormatter do\n subject(:formatter) { described_class.new(output) }\n\n let(:output) { StringI... | ruby | chosen |
[
{
"from": "system",
"value": "Fix DEPRECATION WARNING for rails 4.0.0. ActionController::Integration to ActionDispatch::Integration.\n"
},
{
"from": "human",
"value": "namespace :spec do\n def run_cmd(cmd)\n puts \"$ #{cmd}\"\n unless system(cmd)\n raise \"Error executing command: #{... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for Data Model\n"
},
{
"from": "human",
"value": "require 'fileutils'\nrequire 'ib/parser'\nrequire 'ib/generator'\nrequire 'xcodeproj'\n\nclass IB::Project\n def write app_path = \"./app\", resources_path = \"./resources\"\n project = Xcodeproj::Pro... | ruby | chosen |
[
{
"from": "human",
"value": "Add Rake task for importing database from prod\n"
},
{
"from": "gpt",
"value": "namespace :db do\n desc 'Import database from db/import/production.dump'\n task import: :environment do\n database = Rails.configuration.database_configuration[Rails.env]['database']... | ruby | chosen |
[
{
"from": "system",
"value": "Use pod tag for source version\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"CocoaUPnP\"\n s.version = \"0.1.0\"\n s.summary = \"A modern and well tested UPnP library which feature asynchronous network calls.\"\n\n s.de... | ruby | chosen |
[
{
"from": "system",
"value": "Fix new/changed studies values for daily import.\n"
},
{
"from": "human",
"value": "namespace :import do\n namespace :daily do\n task :run, [:days_back] => :environment do |t, args|\n if Date.today.day != 1\n load_event = ClinicalTrials::LoadEvent.cr... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up unused routes in WatirSpec\n"
},
{
"from": "human",
"value": "module WatirSpec\n class Server\n class App\n def response(path, data = nil)\n case path\n when '/'\n respond(self.class.name)\n when '/big'\n html... | ruby | chosen |
[
{
"from": "system",
"value": "Allow other cookbooks to load their groovy scripts existing helpers\n\nIf we want to use ::Nexus3.groovy_content helper to upload a custom\ngroovy scripts, we should be able to specify in which cookbook the\nscript file resides, else we would need to merge all users scripts\nin... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs for called responses.\n"
},
{
"from": "human",
"value": "require 'helper'\n\nrequire 'ostruct'\n\ndescribe Call do\n it 'creates a Trigger-Class' do\n trigger_class = Call.new(:success, :failure)\n\n assert_equal Call::Trigger, trigger_class.supercl... | ruby | chosen |
[
{
"from": "system",
"value": "Add factory for language and modify factory for query\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :user do\n \tsequence(:username) { |n| \"user#{n}\"}\n sequence(:email) {|n| \"email#{n}@gmail.com\" }\n password \"password\"\n end\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add DEBUG flag to the Debug config\n\n\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"CoreStore\"\n s.version = \"2.0.4\"\n s.license = \"MIT\"\n s.summary = \"Unleashing the real power of Core Data with the elegance and safety of S... | ruby | chosen |
[
{
"from": "system",
"value": "Update checksum for OnyX 2.7.2\n"
},
{
"from": "human",
"value": "dmg_package \"Onyx\" do\n volumes_dir \"Onyx 2.7.2\"\n source \"http://joel.barriere.pagesperso-orange.fr/dl/108/OnyX.dmg\"\n checksum '94377590c4e08516c5b056d413571dbc747425b472483b25f2fc91c58e97e... | ruby | chosen |
[
{
"from": "system",
"value": "Remove specification of white background\n"
},
{
"from": "human",
"value": "Capybara.app = MyApp\n# Capybara.default_driver = :selenium\nCapybara.default_driver = :poltergeist\nCapybara.app_host = 'http://localhost:3000'\n\ndescribe 'Show Top Page' do\n it 'test' d... | ruby | chosen |
[
{
"from": "system",
"value": "Remove tasks no longer defined by Jeweler\n"
},
{
"from": "human",
"value": "require 'spec/rake/spectask'\nrequire 'spec/rake/verify_rcov'\n\nspec_defaults = lambda do |spec|\n spec.pattern = 'spec/**/*_spec.rb'\n spec.libs << 'lib' << 'spec'\n spec.spec_... | ruby | chosen |
[
{
"from": "system",
"value": "Change to su from sudo\n"
},
{
"from": "human",
"value": "# Create main directory for all repositories.\nrepositories = \"/home/afronski/Repositories\"\ngithub_root = \"git@github.com:afronski/%s.git\"\n\ndestination_mode = 00755\ndestination_group = \"users\"\ndest... | ruby | chosen |
[
{
"from": "system",
"value": "Use current_institution instead of the old current_primary_institution for determining the current Institution\n"
},
{
"from": "human",
"value": "# Re-open SearchController to support different institutional search methods.\n# We override initialize and extend with ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix RxSwift dependency in Podspec.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'RxApollo'\n s.version = '0.4.0'\n s.summary = 'RxSwift extensions for Apollo.'\n \n s.description = <<-DESC\n This is an ... | ruby | chosen |
[
{
"from": "system",
"value": "Update to fix ```pod spec lint``` warning.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'MHHabitat'\n s.version = '0.0.1'\n s.license = { :type => 'MIT' }\n s.homepage = 'https://github.com/mhupman/MHHabitat'\n s.auth... | ruby | chosen |
[
{
"from": "system",
"value": "Fix indentation in podspec file.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"Titanium\"\n s.version = \"0.1\"\n s.summary = \"Image viewer library\"\n\n s.description = <<-DESC\n A library that prov... | ruby | chosen |
[
{
"from": "system",
"value": "Remove exact array checking in specs\n"
},
{
"from": "human",
"value": "require 'stringio'\nrequire 'fileutils'\n\nRSpec.describe Dockmaster::Output do\n context 'using default HTML theme' do\n context 'with blank input' do\n it 'creates only an \\'index.ht... | ruby | chosen |
[
{
"from": "system",
"value": "Replace and_call_original with stubs in http runner spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Jasmine::Runners::HTTP do\n let(:driver) { FakeSeleniumDriver.new }\n let(:batch_size) { 3 }\n let(:reporter) { Jasmine::Runners::ApiRepo... | ruby | chosen |
[
{
"from": "human",
"value": "Add availability_zone_id to host table\n\nAdding availability_zone_id to host table\n"
},
{
"from": "gpt",
"value": "class AddAvailabilityZoneIdToHost < ActiveRecord::Migration\n def change\n add_column :hosts, :availability_zone_id, :bigint\n add_index :host... | ruby | chosen |
[
{
"from": "system",
"value": "Use the new notification syntax\n"
},
{
"from": "human",
"value": "#\n# Copyright 2011, Peter Donald\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix DublinCore titles spec expectations\n"
},
{
"from": "human",
"value": "# -*- encoding : utf-8 -*-\nrequire File.expand_path(File.dirname(__FILE__) + '../../spec_helper')\nrequire 'uwdc'\n\ndescribe UWDC::DublinCore do\n \n context 'PBO' do\n before(:each) d... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test failing when on week 53\n"
},
{
"from": "human",
"value": "# coding: UTF-8\n\nrequire 'spec_helper'\n\ndescribe Kpi::Semanal do\n describe \".dame_ultimas_n_semanas\" do\n let(:n_semanas) { Random.rand(2..10) }\n let(:semana_actual) { Random.rand(n_s... | ruby | chosen |
[
{
"from": "system",
"value": "Fix formatting of open issues/features\n"
},
{
"from": "human",
"value": "module ProjectsHelper\n\n def breadcrumbs(links)\n content = \"<nav id=\\\"breadcrumbs\\\" itemtype=\\\"http://schema.org/WebPage\\\" \n itemprop=\\\"br... | ruby | chosen |
[
{
"from": "system",
"value": "Add openssl-devel dep. Needed for libcrypto which is necessary for thrift installation now.\n"
},
{
"from": "human",
"value": "name 'midokura'\nmaintainer 'Vic Iglesias'\nmaintainer_email 'viglesias@eucalyptus.com'\nlicense 'BSD'\ndescript... | ruby | chosen |
[
{
"from": "system",
"value": "Set the default run_list back to the default recipe instead of uninstall\n"
},
{
"from": "human",
"value": "name 'national_parks'\nmaintainer 'The Authors'\nmaintainer_email 'you@example.com'\nlicense 'all_rights'\ndescription 'Installs/Configures national_parks'\nl... | ruby | chosen |
[
{
"from": "system",
"value": "Update to newer Docker cookbook to remove workaround.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nname 'octohost'\nmaintainer 'Darron Froese'\nmaintainer_email 'darron@froese.org'\nlicense 'Apache 2.0'\ndescription 'Installs... | ruby | chosen |
[
{
"from": "system",
"value": "Rename variable to suggest its class\n"
},
{
"from": "human",
"value": "# Fetch the profile data for a GitHub user, and store results in a PortfolioStore.\n#\n# A GitHub API token is loaded from config/secrets.yml. The token needs to grant\n# public_repo access.\n#\... | ruby | chosen |
[
{
"from": "system",
"value": "Add setup step for revising an episode"
},
{
"from": "human",
"value": "When(/^Clyde records a peritonitis episode for Patty$/) do\n record_peritonitis_episode_for(\n patient: @patty,\n user: @clyde,\n diagnosed_on: \"10-10-2016\"\n )\nend\n\nWhen(/^recor... | ruby | chosen |
[
{
"from": "system",
"value": "Rewrite a step to create a flavorfile\n"
},
{
"from": "human",
"value": "Given 'flavorfile' do |content|\n create_file expand('$tmp').to_flavorfile_path, expand(content)\nend\n\nWhen 'I edit flavorfile as' do |content|\n steps %Q{\n Given flavorfile\n \"\"\"... | ruby | chosen |
[
{
"from": "system",
"value": "Use backticks version of aruba run command step\n"
},
{
"from": "human",
"value": "When /^I call \"([^\"]*)\" with arguments \"([^\"]*)\"$/ do |command,args|\n bin = File.join(File.dirname(__FILE__),'..','..','bin',command)\n When \"I run \\\"#{bin} #{args}\\\"\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a bug in example\n"
},
{
"from": "human",
"value": "lang = automaton <<-ADL\n 3 5\n 0 true true\n 1 false false\n 2 false true\n 0 1 a\n 1 1 a\n 1 2 b\n 2 2 b\n 2 0 a\nADL\n\n# In a canonical automaton A(lang) of language `lang`, the set of short prefix... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing yard and redcarpet dependencies\n"
},
{
"from": "human",
"value": "# -*- ruby -*-\n# encoding: utf-8\n\nGem::Specification.new do |gem|\n gem.name = \"google-cloud-tasks\"\n gem.version = \"0.2.1\"\n\n gem.authors = [\"Google LLC\... | ruby | chosen |
[
{
"from": "system",
"value": "Change `prohibited_key` to use regexes\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Gitlab\n module ImportExport\n class AttributeCleaner\n ALLOWED_REFERENCES = RelationFactory::PROJECT_REFERENCES + RelationFactory::USER_REFERE... | ruby | chosen |
[
{
"from": "human",
"value": "Add subcommand to setup compute credentials.\n"
},
{
"from": "gpt",
"value": "module HP\n module Cloud\n class CLI < Thor\n\n desc 'account:setup:compute', \"setup or modify your compute services credentials\"\n long_desc <<-DESC\n Setup or modify your... | ruby | chosen |
[
{
"from": "system",
"value": "Fix iOS Console crash because of new bundle definition.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"MatrixKit\"\n s.version = \"0.1.0\"\n s.summary = \"The Matrix reusable UI library for iOS based on MatrixSDK.\"\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary returns and nils.\n"
},
{
"from": "human",
"value": "require 'pathname'\nrequire 'dm-core'\n\nmodule DataMapper\n class Property\n class FilePath < String\n length 255\n\n def primitive?(value)\n value.kind_of?(Pathname)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add .pre for next release\n"
},
{
"from": "human",
"value": "module EY\n VERSION = '2.0.4'\n ENGINEYARD_SERVERSIDE_VERSION = ENV['ENGINEYARD_SERVERSIDE_VERSION'] || '2.0.1'\nend\n"
},
{
"from": "gpt",
"value": "module EY\n VERSION = '2.0.5.pre'\n ENG... | ruby | chosen |
[
{
"from": "system",
"value": "Add Rake to development dependencies (again for Travis CI)\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"fudge/version\"\n\nGem::Specification.new do |s|\n s.name = \"fudge\"\n s.vers... | ruby | chosen |
[
{
"from": "system",
"value": "Initialize instance vars at init\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n#\n# Thanks to Nicolas Fouché for this wrapper\n#\nrequire 'singleton'\n\nmodule Mail\n \n # The Configuration class is a Singleton used to hold the default\n # configuration f... | ruby | chosen |
[
{
"from": "system",
"value": "Add GetAuthToken action to Sellers API\n"
},
{
"from": "human",
"value": "module MWS\n module API\n class Sellers < Base\n Actions = [:list_marketplace_participations, :list_marketplace_participations_by_next_token, :get_service_status]\n\n def initial... | ruby | chosen |
[
{
"from": "system",
"value": "Make caching evict least recently used\n\nBefore this, when the cache was full, it evicted max-cache-size number of entries from the list of entries.\nIt would also do eviction after addition.\n\nWith a cache size of 3, and using the sequence A, B, C, D, The old version would e... | ruby | chosen |
[
{
"from": "system",
"value": "Fix so it works with Sinatra::Base and classic Sinatra\n"
},
{
"from": "human",
"value": "require 'sinatra/base'\nrequire 'toadhopper'\n\nmodule Sinatra\n # The Toadhopper helper methods\n module Toadhopper\n VERSION = \"1.0.2\"\n # Reports the current sinat... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up class example group too\n"
},
{
"from": "human",
"value": "module RSpec::Puppet\n module ClassExampleGroup\n include RSpec::Puppet::Matchers\n\n def subject\n @catalogue ||= catalogue\n end\n\n def catalogue\n Puppet[:modulepath] = mo... | ruby | chosen |
[
{
"from": "system",
"value": "Fix mix between issues and pull\n"
},
{
"from": "human",
"value": "module Amanuensis\n class Tracker\n class Github\n\n def issues(name, oauth_token, from)\n filter client(oauth_token).list_issues(name, state: 'closed'), from\n end\n\n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a case where the domain includes *.\n"
},
{
"from": "human",
"value": "module Aquatone\n module Collectors\n class Crtsh < Aquatone::Collector\n self.meta = {\n :name => \"crtsh\",\n :author => \"Joel (@jolle)\",\n :de... | ruby | chosen |
[
{
"from": "system",
"value": "Change MeritOrderDetails \"target\" to \"delegate\"\n\nLink points in the other direction, from the target to the delegate,\nrather than from the delegate to the target.\n\nWill remove the unusual situation where the EV node is used in the merit\norder to control flexibility, r... | ruby | chosen |
[
{
"from": "system",
"value": "Update to new curriculum interface\n"
},
{
"from": "human",
"value": "class Exercism\n class ScalaCurriculum\n def slugs\n %w(\n bob hamming word-count anagram\n nucleotide-count phone-number\n grade-school robot-name leap etl meetup sp... | ruby | chosen |
[
{
"from": "system",
"value": "Add rudimentary recipients to serializer\n"
},
{
"from": "human",
"value": "class InvitableSerializer < ActiveModel::Serializer\n attributes :name,\n :subtitle,\n :image \n\n def subtitle\n case object\n when Group then \"Add all me... | ruby | chosen |
[
{
"from": "system",
"value": "Improve performance when editing custom texts\n\nWe were executing SQL queries searching for translations even for\nrecords which were not persisted in the database and therefore had no\ntranslations.\n\nSo we're now only looking for translations when the record is persisted.\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update test app config initializer\n"
},
{
"from": "human",
"value": "\nFwtPushNotificationServer.configure do |config|\n\n\t# APNS\n\tconfig.apns_certificate = File.join(Rails.root, 'config', 'APNSDevelopment.pem')\n\tconfig.apns_passphrase = 'PASSPHRASE'\n\tconfig... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Update uploader to support more extensions\"\n\nThis reverts commit caaf29a10ee5310c5d7824978c318515d8e67a46.\n\nThis also just doesn't work.\n"
},
{
"from": "human",
"value": "module Play\n # API endpoints to support broader, systems-level functions.\n c... | ruby | chosen |
[
{
"from": "system",
"value": "Add comments to Ruby Kata 'DNA GC-content'\n"
},
{
"from": "human",
"value": "def DNA_strand(dna)\n \n # Use String#tr to replace the characters from the first string\n # with the corresponding characters of the second string\n dna.tr('ATGC', 'TACG')\n \nend"
... | ruby | chosen |
[
{
"from": "system",
"value": "Comment on why Mixlib::ShellOut is in use\n"
},
{
"from": "human",
"value": "action :register do\n unless node.key?('rcbu')\n fail \"rcbu node attributes not defined: Ensure the rackspace_cloudbackup ohai plugin is installed\"\n end\n \n case node['rcbu']['is... | ruby | chosen |
[
{
"from": "system",
"value": "Read config files with tags at startup\n"
},
{
"from": "human",
"value": "require 'i18n-js'\n\nRails.application.config.assets.paths <<\n SimplesIdeias::I18n::Engine.root.join('vendor', 'assets', 'javascripts').to_s\n"
},
{
"from": "gpt",
"value": "requ... | ruby | chosen |
[
{
"from": "system",
"value": "JariBakken: Fix error in the file_detector example.\n\ngit-svn-id: aa1aa1384423cb28c2b1e29129bb3a91de1d9196@15466 07704840-8298-11de-bf8c-fd130f914ac9\n"
},
{
"from": "human",
"value": "module Selenium\n module WebDriver\n\n #\n # @api private\n #\n\n m... | ruby | chosen |
[
{
"from": "system",
"value": "Test config from not evaluated when --from option passed\n"
},
{
"from": "human",
"value": "require_relative \"test_helper\"\n\nclass DataSourceTest < Minitest::Test\n def test_no_source\n assert_error \"No source\", \"\"\n end\n\n def test_no_destination\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert de algo que se ha colado del merge\n"
},
{
"from": "human",
"value": "class OrganizationNotifier < ActionMailer::Base\n default from: \"\\\"TimeOverflow\\\" <info@timeoverflow.org>\"\n default to: \"\\\"TimeOverflow\\\" <info@timeoverflow.org>\"\n\n # Subj... | ruby | chosen |
[
{
"from": "system",
"value": "Fix selection code for precompilation\n\nTo Precompile css...\n"
},
{
"from": "human",
"value": "Rails.application.config.assets.precompile += %w( favicon.ico )\nRails.application.config.assets.precompile += %w( apple-touch-icon-152x152.png )\nRails.application.conf... | ruby | chosen |
[
{
"from": "system",
"value": "Add require for bandwidth collector\n"
},
{
"from": "human",
"value": "require 'copian/collector/abstract_collector'\nrequire 'copian/collector/addresses_collector'\nrequire 'copian/collector/ports_collector'\nrequire 'copian/collector/port_stats_collector'\nrequire... | ruby | chosen |
[
{
"from": "system",
"value": "Return immediately if the are no records to dump\n\nOn a fresh or lightly used install there are no records to dump\nto CSV which was causing exceptions on the nightly emails\n"
},
{
"from": "human",
"value": "require 'csv'\n\nmodule DC\n\n module CSV\n\n def se... | ruby | chosen |
[
{
"from": "system",
"value": "Add prompt: '> ' to player_input in while loop\n"
},
{
"from": "human",
"value": "require_relative \"world_command.rb\"\n\n# Runs the main game loop.\n#\n# @param [Player] player the player of the game.\ndef run_driver(player)\n\n input = player_input prompt: '> '\... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec version to 1.2.0\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = 'Bulletin'\n s.version = '1.1.0'\n s.summary = 'Customizable alert library for Swift.'\n\n s.description = <<-DESC\n Bullet... | ruby | chosen |
[
{
"from": "system",
"value": "Use chefspec/berkshelf and do not touch the cookbook path\n"
},
{
"from": "human",
"value": "require 'chefspec'\n\nChefSpec::Coverage.start!\n\nRSpec.configure do |config|\n # Specify the path for Chef Solo to find cookbooks (default: [inferred from\n # the locati... | ruby | chosen |
[
{
"from": "system",
"value": "Modify test to expect \"no entry found\" response string without a period\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe Lita::Handlers::Wikipedia, lita_handler: true do\n it { routes_command(\"wikipedia ruby language\").to(:wikipedia) }\n ... | ruby | chosen |
[
{
"from": "system",
"value": "JariBakken: Fix for 1.8.7 behaviour of Socket.getaddrinfo\n\ngit-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@17085 07704840-8298-11de-bf8c-fd130f914ac9\n"
},
{
"from": "human",
"value": "module Selenium\n module WebDriver\n class PortProber\n def self.... | ruby | chosen |
[
{
"from": "human",
"value": "Add PopChar X version 7.3.1.\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'popchar' do\n version '7.3.1'\n sha256 '1f7d06897b165613f564e34409ff42e20e383f831b45c86d6e4bd71bc1c1b670'\n\n url \"http://www.ergonis.com/downloads/products/popcharx/PopCharX#{version.gsub... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for matching transition state.\n"
},
{
"from": "gpt",
"value": "# encoding: utf-8\n\nrequire 'spec_helper'\n\nRSpec.describe FiniteMachine::Transition, '.matches?' do\n let(:machine) { double(:machine) }\n\n it \"matches from state\" do\n states = {:gre... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `url` stanza comment for SIDPLAY.\n"
},
{
"from": "human",
"value": "cask 'sidplay' do\n version '4.0'\n sha256 'a7de546ba5a0b69365d57a8eff05a2820f81167ccd3a74e07ad3539e08a80bbd'\n\n # www.twinbirds.com/sidplay was verified as official when first introduced t... | ruby | chosen |
[
{
"from": "system",
"value": "Fix checksum in Vivaldi Cask\n"
},
{
"from": "human",
"value": "cask :v1 => 'vivaldi' do\n version '1.0.83.38'\n sha256 'ef048f271526c53574f453dfdcac157482fc51e9f669c22aadaf1b25b5f952fa'\n\n url \"http://vivaldi.com/download/Vivaldi_TP_#{version}.dmg\"\n name 'V... | ruby | chosen |
[
{
"from": "system",
"value": "Add homepage info 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 'phonetic_alphabet/version'\n\nGem::Specification.new do |spec|\n spec.name... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for user to unsubscribe\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nfeature 'Deactivating Daily Texts' do\n context 'As an authenticated user' do\n scenario 'I can successfully deactivate my daily text messages' do\n user = create(:us... | ruby | chosen |
[
{
"from": "system",
"value": "Fix config file path issue\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'optparse'\nrequire 'etc'\nrequire 'yaml'\nrequire 'fileutils'\nrequire File.expand_path('../gitlab/config', __FILE__)\nrequire File.expand_path('../gitlab/project', __FILE__)\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Listing image url placeholders\n"
},
{
"from": "human",
"value": "class Listing < ActiveRecord::Base\n belongs_to :creator, class_name: \"User\", foreign_key: \"user_id\"\n has_many :followed_listings, dependent: :destroy\n has_many :followers, through: :foll... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.