conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix bug where invalid inputs were accepted by the Game, the issue was that after taking in user input the program will continue to let the computer move instead of asking the user for input again\n"
},
{
"from": "human",
"value": "require_relative 'tic_tac_toe'\n\nc... | ruby | chosen |
[
{
"from": "system",
"value": "Remove method that relates to stdin and stdout\n"
},
{
"from": "human",
"value": "require_relative 'tic_tac_toe'\n\nclass Game\n\n attr_accessor :gametype, :ui\n\n def initialize(gametype = nil, ui = nil)\n @ui = ui\n @gametype = gametype\n end\n\n # def d... | ruby | chosen |
[
{
"from": "system",
"value": "Remove puts from methods in Gday class to return string instead of nil.\n"
},
{
"from": "human",
"value": "require_relative \"gday/version\"\n\nmodule Gday\n class Greeting\n def hi\n puts \"G'day!\"\n end\n\n def bye\n puts \"Cheerio\"\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Drop duplicate dependency on minitest\n"
},
{
"from": "human",
"value": "require './lib/minitest/around/version'\n\nGem::Specification.new \"minitest-around\", MinitestAround::VERSION do |s|\n s.authors = [\"Peter Suschlik\"]\n s.email = [\"peter-minites... | ruby | chosen |
[
{
"from": "system",
"value": "Sort node names in reverse alphabetical order so nodes that are substrings of each other dont get replaced first\n"
},
{
"from": "human",
"value": "require 'chef/node'\nrequire 'chef/knife'\nrequire 'chef/config'\n\nmodule Shiv\n PROVIDERS = ['ec2', 'rackspace']\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove memcache-client as we dont need it anymore\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nlib = File.expand_path('../lib/', __FILE__)\n$:.unshift lib unless $:.include?(lib)\nrequire \"memcached_store/version\"\n\nGem::Specification.new do |gem|\n gem... | ruby | chosen |
[
{
"from": "system",
"value": "[TASK] Add license information to gemspec\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nlib = File.expand_path('lib', __dir__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'trasto/version'\n\nGem::Specification.new do |gem|... | ruby | chosen |
[
{
"from": "system",
"value": "Fix gemset passed in block variable name\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'middleman-title/version'\n\nGem::Specification.new do |s|\n s.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix open-ended dependency on rake warning from gemspec\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'freckles'\n s.version = '1.2.0'\n s.license = 'MIT'\n s.platform = Gem::Platform::RUBY\n s.authors = ['Tim Craft']\n s.email = [... | ruby | chosen |
[
{
"from": "system",
"value": "Update Asterisk from 1.6.1.6 to 1.8.3.2.\n\n* Added the '--with-sample-config' option. This will generate the sample\n Asterisk config files in /usr/local/etc/asterisk. It creates backups of any\n existing files first.\n\n* Removed the patch that used curl instead of wget to ... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs to ensure the given after redirection call is called\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nmodule Toritsugi\n describe RulesController do\n routes { Engine.routes }\n\n describe \"#after_redirection_callback\" do\n let!(:rul... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the reset Client status in client\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nmodule UniaraVirtualParser\n describe Client do\n before :each do\n described_class.instance_variable_set :@client, nil\n end\n\n let(:client) { double(:... | ruby | chosen |
[
{
"from": "human",
"value": "Add a specification for the DeveloperKeys module.\n\nNote: reduces the mutations that survive.\n"
},
{
"from": "gpt",
"value": "module Nutrella\n extend DeveloperKeys\n\n RSpec.describe DeveloperKeys do\n let(:nutrella) { Nutrella.new { extend DeveloperKeys } }\... | ruby | chosen |
[
{
"from": "system",
"value": "Extend WikiEdits test to superficially cover the entire class.\n"
},
{
"from": "human",
"value": "require 'rails_helper'\nrequire \"#{Rails.root}/lib/wiki_edits\"\n\ndescribe WikiEdits do\n describe '.notify_untrained' do\n pending 'should post messages to Wikip... | ruby | chosen |
[
{
"from": "system",
"value": "Update Parse version to 1.3.0.1.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Parse-RACExtensions\"\n s.version = \"0.0.3\"\n s.summary = \"ReactiveCocoa extensions for Parse.\"\n s.homepage = \"https://github.com/ka... | ruby | chosen |
[
{
"from": "system",
"value": "Modify logic of spec test files.\n"
},
{
"from": "human",
"value": "equire_relative '../spec_helper.rb'\n\ndescribe service('zabbix_agentd') do\n it { should be_enabled }\nend\n\ndescribe port(10_050) do\n it { should be_listening.with('tcp') }\nend\n\ndescribe 'c... | ruby | chosen |
[
{
"from": "system",
"value": "Allow broad range of minitest versions\n\nThis is to avoid conflict with minitest versions required by the\ndifferent versions of Rails.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $L... | ruby | chosen |
[
{
"from": "system",
"value": "Increase Document test coverage to 100%\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nRSpec.describe LintTrappings::Document do\n let(:config) { double }\n\n describe '#initialize' do\n let(:source) { normalize_indent(<<-SRC) }\n This is some... | ruby | chosen |
[
{
"from": "human",
"value": "Add test cases for ProcessWatcher::ProcessMonitor.\n"
},
{
"from": "gpt",
"value": "#--\n# Copyright: Copyright (c) 2010 RightScale, Inc.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentati... | ruby | chosen |
[
{
"from": "system",
"value": "Fix show table feature error(a case where there is an anonymous class inherited ActiveRecord::Base)\n\nIf there is an anonymous class inherited ActiveRecord::Base(e.g. SwitchPoint), the show table feature fails.\nBecause the name is nil in anonymous classes, it fails sorting by... | ruby | chosen |
[
{
"from": "human",
"value": "Add follow all creators rpc\n"
},
{
"from": "gpt",
"value": "class FollowAllCreatorsRpc < ActiveRecord::Migration\n def up\n execute <<-SQL\n create or replace function \"1\".follow_all_creators() RETURNS void\n LANGUAGE SQL\n AS $$\n INSERT... | ruby | chosen |
[
{
"from": "system",
"value": "Revert conditional logic bug introduced in 0d5ee8c\n"
},
{
"from": "human",
"value": "module FrancisCms\n class WebmentionValidator < ActiveModel::Validator\n def validate(record)\n return record.errors[:base] << 'Webmention source and target must be differ... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing `private` specification to internal method\n"
},
{
"from": "human",
"value": "class Api::ApplicationController < ActionController::Base\n protect_from_forgery with: :null_session\n\n def serialization_scope\n view_context\n end\n\n def current_sit... | ruby | chosen |
[
{
"from": "system",
"value": "Address rubocop comments for TextualMixins::TextualOsInfo\n"
},
{
"from": "human",
"value": "module TextualMixins::TextualOsInfo\n def textual_osinfo\n h = {:label => _(\"Operating System\")}\n os = @record.operating_system.nil? ? nil : @record.operating_syst... | ruby | chosen |
[
{
"from": "system",
"value": "Update method name and remove unneeded params\n"
},
{
"from": "human",
"value": "module Projects\n class ParticipantsService < BaseService\n def execute(note_type, note_id)\n @target = get_target(note_type, note_id)\n participating =\n if note_t... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.4.0.0 to 0.4.0.1\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'log'\n s.version = '0.4.0.0'\n s.summary = 'Logging to STD IO with levels, tagging, and coloring'\n s.des... | ruby | chosen |
[
{
"from": "system",
"value": "Rename test to unique and correct name\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire_relative '../test_helper'\n\nclass FixtureTest < ActiveSupport::TestCase\n \n def test_import_all\n Comfy::Cms::Page.destroy_all\n Comfy::Cms::Layout.destr... | ruby | chosen |
[
{
"from": "system",
"value": "Check process vs. service check\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "describe 'ActiveMQ server' do\n it 'should be running the activemq server' do\n expect(service('activemq')).to be_ru... | ruby | chosen |
[
{
"from": "system",
"value": "Patch queue adapter for better reporting in AppSignal\n\nCurrently all the jobs are reported under the same name in AppSignal.\nThis is a dirty way to fix it but there is no other option as adding\na `appsignal_name` method to the job class doesn't work since that's\nnot the ob... | ruby | chosen |
[
{
"from": "system",
"value": "ADD ALL OF THE THINGS\n"
},
{
"from": "human",
"value": "require 'open-uri'\nrequire 'csv'\nrequire 'date'\n\nclass DumpImporter\n\n def self.import!(path)\n File.open(path, 'r') do |f|\n new(f).import\n end\n end\n\n attr_reader :file\n\n def initial... | ruby | chosen |
[
{
"from": "human",
"value": "Create a model named `EventHistory`\n"
},
{
"from": "gpt",
"value": "class EventHistory < ApplicationRecord\n belongs_to :dojo\n\n validates :dojo_name, presence: true\n validates :service_name, presence: true, uniqueness: { scope: :event_id }\n validates :servi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for running the sample task on an empty database\n"
},
{
"from": "human",
"value": "# == Schema Information\n#\n# Table name: pages\n#\n# id :integer not null, primary key\n# site_id :integer\n# name :string\n# description :s... | ruby | chosen |
[
{
"from": "system",
"value": "Add a comma to the last entry in the Hash\n\n* This is more a case of preference. Including the comma on the last\n entry makes it so you can more easily reorder the entries. It also\n allows you to add new entries without worrying about modifying any\n further code, aside f... | ruby | chosen |
[
{
"from": "system",
"value": "Implement the missing fields in the contract reponse\n"
},
{
"from": "human",
"value": "json.array! contracts do |contract|\n json.contract_id contract.ContractId\n json.customer_id contract.CustomerId.to_i\n json.commodity_id contract.CommodityId.to_i\n json.co... | ruby | chosen |
[
{
"from": "human",
"value": "Make sure active record filters that are often used are indexed\n"
},
{
"from": "gpt",
"value": "class AddStatusStringIndices < ActiveRecord::Migration\n def change\n add_index :exports, :status\n add_index :subjects, :status\n add_index :users, :status\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove KSCrash source, settings from podspec"
},
{
"from": "human",
"value": "\nPod::Spec.new do |s|\n s.name = \"Bugsnag\"\n s.version = File.open('VERSION') {|f| f.read.chomp}\n s.summary = \"Cocoa notifier for SDK for bugsnag.com\"\n s.homep... | ruby | chosen |
[
{
"from": "system",
"value": "Throw in a sanity check for Viewable's view_for caching\n"
},
{
"from": "human",
"value": "module Viewable\n extend ActiveSupport::Concern\n\n included do\n has_many :views, class_name: self.name + 'View', dependent: :destroy\n\n def mark_read(user, at_time=... | ruby | chosen |
[
{
"from": "system",
"value": "spec: Set empty settings hash when creating a PluginSetting\n\nPlugin.enabled? will return false if the PluginSetting has an\nempty settings hash, even if PluginSetting.disabled is false.\n\nA conference-type plugin needs to be enabled before a WebConference\ncan be created. An... | ruby | chosen |
[
{
"from": "system",
"value": "Add Rdoc Comment to maskable_attribute Method\n"
},
{
"from": "human",
"value": "module MaskableAttribute\n module ActsAsMaskableAttribute\n extend ActiveSupport::Concern\n\n included do\n end\n\n module ClassMethods\n def maskable_attribute(masked... | ruby | chosen |
[
{
"from": "system",
"value": "Fix podspec version to 9.1.0\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'FeedKit'\n s.version = '9.0.1'\n s.license = 'MIT'\n s.summary = 'An RSS, Atom and JSON Feed parser written in Swift'\n s.homepage = 'https://github.com/nmdias/Feed... | ruby | chosen |
[
{
"from": "system",
"value": "Improve our spec for minitest integration.\n"
},
{
"from": "human",
"value": "module RSpec\n RSpec.describe Matchers do\n\n let(:sample_matchers) do\n [:be,\n :be_instance_of,\n :be_kind_of]\n end\n\n context \"once required\", :slow do\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add WP Ninja Forms XSS Vulnerability Module\n"
},
{
"from": "gpt",
"value": "##\n# This module requires Metasploit: http://metasploit.com/download\n# Current source: https://github.com/rapid7/metasploit-framework\n##\n\nrequire 'msf/core'\n\nclass Metasploit4 < Msf::... | ruby | chosen |
[
{
"from": "system",
"value": "Add .pre for next release\n"
},
{
"from": "human",
"value": "module EY\n module Serverside\n class Adapter\n VERSION = \"2.0.2\"\n # For backwards compatibility, the serverside version default will be maintained until 2.1\n # It is recommended tha... | ruby | chosen |
[
{
"from": "system",
"value": "Raise the roof---I mean, error\n"
},
{
"from": "human",
"value": "begin\n require 'linguist'\nrescue LoadError\n $stderr.puts \"You need to install linguist before using the SyntaxHighlightFilter. See README.md for details\"\n exit 1\nend\n\nmodule HTML\n class ... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing quote in generated route\n"
},
{
"from": "human",
"value": "module Knock\n class TokenControllerGenerator < Rails::Generators::Base\n source_root File.expand_path(\"../../templates\", __FILE__)\n argument :name, type: :string\n\n desc <<-DESC\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add LGD to the area types that we support\n\nWe support Northern Ireland councils now, but we need to allow them to be found.\nThis area type is already supported in [find-local-council](https://github.com/alphagov/frontend/blob/master/app/controllers/find_local_council_control... | ruby | chosen |
[
{
"from": "system",
"value": "Use Gem::DependecyInstaller to install gems.\n"
},
{
"from": "human",
"value": "module Metacrunch\n class Job::Dsl::DependencySupport\n\n def initialize(install: false, &block)\n proxy = DependencyProxy.new\n proxy.instance_eval(&block)\n\n if ins... | ruby | chosen |
[
{
"from": "system",
"value": "Use setter instead of instance_variable_set\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule MetalArchives\n ##\n # Allow objects to be initialized with attributes\n #\n module Initializable\n extend ActiveSupport::Concern\n\n inc... | ruby | chosen |
[
{
"from": "system",
"value": "Use sublist on deposit payment sublist\n\nThis may be a breaking change for some people!\n"
},
{
"from": "human",
"value": "module NetSuite\n module Records\n class DepositPaymentList\n include Support::Fields\n include Namespaces::TranBank\n\n at... | ruby | chosen |
[
{
"from": "system",
"value": "Validate uniqueness of collaborator paper roles.\n"
},
{
"from": "human",
"value": "class PaperRole < ActiveRecord::Base\n\n belongs_to :user, inverse_of: :paper_roles\n belongs_to :paper, inverse_of: :paper_roles\n\n validates :paper, presence: true\n\n after_s... | ruby | chosen |
[
{
"from": "system",
"value": "Add to_hash to best and worst record methods\n\nSimilar to the previous commit I have added the to_hash conversion to\nthe methods for retrieving the best and worst record with respect to a\ncertain metric.\n\nSigned-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579c... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor for single responsibility of methods for get_user_input\n"
},
{
"from": "human",
"value": "require_relative 'tic_tac_toe'\n# decisions vs dependency\n\nclass Game\n\n def initialize(tictactoe = nil)\n @ttt = tictactoe\n end\n\n def get_user_input\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Check for response splitting vulnerability\n\nhttp://groups.google.com/group/rubyonrails-security/t/6ffc93bde0298768\n"
},
{
"from": "gpt",
"value": "require 'checks/base_check'\nrequire 'processors/lib/find_call'\n\n#Warn about response splitting in Rails versions b... | ruby | chosen |
[
{
"from": "system",
"value": "Remove version constraint on sudo cookbook\n"
},
{
"from": "human",
"value": "name \"admin-user\"\nmaintainer \"HipSnip Ltd.\"\nmaintainer_email \"adam@hipsnip.com\"\nlicense \"Apache 2.0\"\ndescription \"Sets up a shared admin user t... | ruby | chosen |
[
{
"from": "system",
"value": "Create resources when submitted through new view\n"
},
{
"from": "human",
"value": "module HyperAdmin\n class ResourceController < ActionController::Base\n before_action :set_resource_class\n\n def index\n @resources = resource_class.all\n render 'a... | ruby | chosen |
[
{
"from": "system",
"value": "Fix undefined CHILD_STATUS variable error\n\n```\nlib/pier.rb:16: warning: global variable `$CHILD_STATUS' not initialized\n```\n"
},
{
"from": "human",
"value": "require 'pier/moor'\nrequire 'pier/pier'\nrequire 'pier/version'\n\nmodule Pier\n def runShellProc(com... | ruby | chosen |
[
{
"from": "system",
"value": "Make scope in Project model clearer\n"
},
{
"from": "human",
"value": "class Project < ActiveRecord::Base\n extend FriendlyId\n friendly_id :title, use: :slugged\n\n validates :title, :description, :status, presence: true\n validates_with PivotalTrackerUrlValida... | ruby | chosen |
[
{
"from": "system",
"value": "Use the default_scope macro to set a default scope for all operations on the model.\n"
},
{
"from": "human",
"value": "class Section\n include Mongoid::Document\n include Mongoid::Timestamps\n\n field :name\n field :sort, type: Integer, default: 0\n\n has_many ... | ruby | chosen |
[
{
"from": "system",
"value": "Return a list of results, where each result is a\nhash with node and weight."
},
{
"from": "human",
"value": "require \"rlrw/version\"\nrequire \"murmurhash3\"\n\nmodule Rlrw\n module LRW\n MOD = 2147483648\n def self.all(key, nodes)\n res = []\n no... | ruby | chosen |
[
{
"from": "system",
"value": "Add RDA Support for field 596\n"
},
{
"from": "human",
"value": "require_relative \"./generisches_element\"\n\nclass Metacrunch::UBPB::Record::Zählung < Metacrunch::UBPB::Record::GenerischesElement\nend\n"
},
{
"from": "gpt",
"value": "require_relative \... | ruby | chosen |
[
{
"from": "system",
"value": "Comment about how to invoke the adapter\n"
},
{
"from": "human",
"value": "class Adapters::SimpleAdapter < Adapters::Base\n\n def initialize(adapter)\n @params = {\n request_type: 'soap_request',\n wsdl: adapter.web_service_uri,\n timeout: adapter... | ruby | chosen |
[
{
"from": "system",
"value": "Call \"TextNormalizer\" to normalize text\n"
},
{
"from": "human",
"value": "module Sastrawi\n module Stemmer\n class CachedStemmer\n attr_reader :cache, :delegated_stemmer\n\n def initialize(cache, delegated_stemmer)\n @cache = cache\n @... | ruby | chosen |
[
{
"from": "system",
"value": "Remove production dependancy on 'pry'\n"
},
{
"from": "human",
"value": "require 'pry'\nrequire_relative 'factory'\nrequire_relative 'command/matcher/matcher'\n\nclass Application\n def initialize(argv = [])\n @input = $stdin\n @parser = Command::Matcher\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude tests (and fixtures) from bundled gem\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/crack/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"John Nunemaker\"]\n gem.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing has_many back to the model\n"
},
{
"from": "human",
"value": "module MetasploitDataModels::ActiveRecordModels::Ref\n def self.included(base)\n base.class_eval{\n has_many :vulns, :through => :vulns_refs, :class_name => \"Mdm::Vuln\"\n }\n en... | ruby | chosen |
[
{
"from": "system",
"value": "Move to Chef 12 support\n"
},
{
"from": "human",
"value": "name 'glassfish'\nmaintainer 'Peter Donald'\nmaintainer_email 'peter@realityforge.org'\nlicense 'Apache 2.0'\ndescription 'Installs/Configures GlassFish Application Server'\nl... | ruby | chosen |
[
{
"from": "system",
"value": "Remove automatically restart nodeJs App\n"
},
{
"from": "human",
"value": "include_recipe 'deploy'\ninclude_recipe \"nginx::service\"\n\nnode[:deploy].each do |application, deploy|\n\tif deploy[:application_type] != 'nodejs'\n\t\tnext\n\tend\t\n\tChef::Log.info(\"De... | ruby | chosen |
[
{
"from": "system",
"value": "Fix 'superclass mismatch for class Parents' error\n"
},
{
"from": "human",
"value": "require 'active_support/core_ext/string/conversions'\nrequire 'action_controller/parents/finder'\nrequire 'action_controller/parents/methods'\nrequire 'action_controller/parents/ver... | ruby | chosen |
[
{
"from": "system",
"value": "Update Chef dependency to >= 16\n"
},
{
"from": "human",
"value": "name 'resource_from_hash'\nmaintainer 'Oregon State University'\nmaintainer_email 'systems@osuosl.org'\nsource_url 'https://github.com/osuosl-cookbooks/resource_from_hash'\nis... | ruby | chosen |
[
{
"from": "system",
"value": "Update Chef Sugar to v2.0.0 to fix an installation bug"
},
{
"from": "human",
"value": "name 'omnibus'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'releng@getchef.com'\nlicense 'Apache 2.0'\ndescription 'Prepares a machin... | ruby | chosen |
[
{
"from": "system",
"value": "Add centos and redhat to supported platforms\n"
},
{
"from": "human",
"value": "name 'kdiff3-crate'\nmaintainer 'John Leacox'\nlicense 'Apache 2.0'\ndescription 'Installs/Configures kdiff3'\nversion '0.1.0'\n\n%w{\n debian\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add sqlite3 as dependency to development\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'neighborly/balanced/creditcard/version'\n\nGem::Specification.n... | ruby | chosen |
[
{
"from": "system",
"value": "Swap connection to check for Microsoft Graph first\n"
},
{
"from": "human",
"value": "require \"mail_room/connection\"\n\nmodule MailRoom\n # TODO: split up between processing and idling?\n\n # Watch a Mailbox\n # @author Tony Pitale\n class MailboxWatcher\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Support target parameter as an alias for path\n\n\"path\" defaults to \"target\" for easier transition from\nR.I.Pienaar's concat module:\nhttps://github.com/ripienaar/puppet-concat\n"
},
{
"from": "human",
"value": "#\n# TODO\n#\nmodule Puppet\n newtype(:file_frag... | ruby | chosen |
[
{
"from": "system",
"value": "Use Cfg method for check of existence of Cfg file\n"
},
{
"from": "human",
"value": "require 'colored'\n\nrequire 'nehm/client'\nrequire 'nehm/cfg'\nrequire 'nehm/command_manager'\nrequire 'nehm/os'\nrequire 'nehm/path_manager'\nrequire 'nehm/playlist_manager'\nrequ... | ruby | chosen |
[
{
"from": "system",
"value": "Improve logging for invalid JSON\n"
},
{
"from": "human",
"value": "module Dap\nmodule Input\n\n require 'oj'\n\n #\n # Error codes for failed reads\n #\n module Error\n EOF = :eof\n Empty = :empty\n InvalidFormat = :invalid\n end\n\n module FileSo... | ruby | chosen |
[
{
"from": "system",
"value": "Update default engine constant description\n"
},
{
"from": "human",
"value": "module Likes\n # Job: Understands patterns in people likings\n class Set\n # Default engine - simplest one\n #\n # @see Engines::FastJaccardSimilarity\n DEFAULT_ENGINE = Engi... | ruby | chosen |
[
{
"from": "system",
"value": "Add explicit class_name to properly handle introspection.\n"
},
{
"from": "human",
"value": "module Rapns\n class App < ActiveRecord::Base\n self.table_name = 'rapns_apps'\n\n attr_accessible :name, :environment, :certificate, :password, :connections, :auth_k... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the clients options typo\n"
},
{
"from": "human",
"value": "require 'sg_mailer/configuration_error'\nrequire 'sg_mailer/response_error'\nrequire 'sg_mailer/mail_builder'\nrequire 'sg_mailer/client'\nrequire 'sg_mailer/test_client'\nrequire 'sg_mailer/base'\n\nmo... | ruby | chosen |
[
{
"from": "system",
"value": "Add gem to require rubygems list\n"
},
{
"from": "human",
"value": "$:.unshift File.dirname(__FILE__)\n\n# ruby gems\nrequire 'rubygems'\nrequire 'faraday'\nrequire 'happymapper'\n\n# syoboemon ruby files\n# version file\nrequire \"./syoboemon/version\"\n# Syoboemon... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test failure on mruby-2.0.0.\n"
},
{
"from": "human",
"value": "MRuby::Gem::Specification.new('mruby-singleton') do |spec|\n spec.license = 'MIT'\n spec.author = 'ksss <co000ri@gmail.com>'\nend\n"
},
{
"from": "gpt",
"value": "MRuby::Gem::Specific... | ruby | chosen |
[
{
"from": "system",
"value": "Fix version to be released as 2.1.0\n"
},
{
"from": "human",
"value": "name \"td-agent\"\nmaintainer \"Treasure Data, Inc.\"\nmaintainer_email \"k@treasure-data.com\"\nlicense \"Apache 2.0\"\ndescription \"Installs/Configures td-agent... | ruby | chosen |
[
{
"from": "system",
"value": "Move to Sous Chefs organistaion\n\nRelease 0.1.1 - see changelog.md for more information\n"
},
{
"from": "human",
"value": "name 'unbound'\nmaintainer 'Sous Chefs'\nmaintainer_email 'help@sous-chefs.org'\nlicense 'Apache-2.0'\ndescription ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove a couple stop words before searching"
},
{
"from": "human",
"value": "require \"spdx/version\"\nrequire \"spdx-licenses\"\nrequire \"text\"\n\nmodule Spdx\n def self.find(name)\n SpdxLicenses[name] || closest(name)\n end\n\n def self.closest(name)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor to use newly introduced helper\n"
},
{
"from": "human",
"value": "require 'ostruct'\nrequire 'global_id'\n\nmodule BookingLocations\n class Location\n include GlobalID::Identification\n\n def initialize(data)\n @data = data\n end\n\n def s... | ruby | chosen |
[
{
"from": "system",
"value": "Remove cacerts.pem from list of files to be purged\n"
},
{
"from": "human",
"value": "require 'fileutils'\n\ndesc \"Purge existing cache\"\nnamespace :build do\n task :purge_cache do\n [\n # Force a new clone of gitlab-rails because we change remotes for CE... | ruby | chosen |
[
{
"from": "system",
"value": "Remove threads because it makes the lights jittery\n"
},
{
"from": "human",
"value": "module Helios\n class StaticColorEffect < Effect\n def initialize(args)\n @red = args['r'].to_i\n @green = args['g'].to_i\n @blue = args['b'].to_i\n lights ... | ruby | chosen |
[
{
"from": "system",
"value": "Use && instead of and\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: hadoop\n# Recipe:: spark_worker\n#\n# Copyright (C) 2014 Continuuity, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in co... | ruby | chosen |
[
{
"from": "system",
"value": "Comment and separate default options.\n"
},
{
"from": "human",
"value": "# Require core library\nrequire \"middleman-core\"\n\n# Extension namespace\nmodule Middleman\n module Deploy\n\n class Options < Struct.new(:whatisthis, :method, :host, :port, :user, :pass... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up truncate a bit\n"
},
{
"from": "human",
"value": "# String additions\nclass String\n # Truncate method from ActiveSupport.\n # @param truncate_at [Fixnum] number of characters to truncate after\n # @param options [Hash] optional options hash\n # @option... | ruby | chosen |
[
{
"from": "system",
"value": "Mark the 1.8.2 test/unit fix for removal in Rake 11\n"
},
{
"from": "human",
"value": "# Local Rake override to fix bug in Ruby 0.8.2\nmodule Test # :nodoc:\n # Local Rake override to fix bug in Ruby 0.8.2\n module Unit # :nod... | ruby | chosen |
[
{
"from": "system",
"value": "Use proper describe label text when doing requestable_describe."
},
{
"from": "human",
"value": "module RSpec\n module RequestableExamples\n class RequestedExamples < Array\n def initialize(options)\n options ||= {}\n replace options[:examples... | ruby | chosen |
[
{
"from": "system",
"value": "Test coverage for configuration is improved\n"
},
{
"from": "human",
"value": "require_relative 'spec_init'\n\nmodule ConfiguredRandomUUID\n class Example\n attr_accessor :uuid\n end\nend\n\ndescribe ConfiguredRandomUUID::Example do\n context \"Configured\" do... | ruby | chosen |
[
{
"from": "system",
"value": "Update description with something less terse\n"
},
{
"from": "human",
"value": "name 'pdns'\nmaintainer 'Aetrion, LLC DBA DNSimple'\nmaintainer_email 'ops@dnsimple.com'\nlicense 'Apache 2.0'\ndescription 'Installs/Configures pdns'\nlo... | ruby | chosen |
[
{
"from": "system",
"value": "Use SPDX standard license string\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "name 'omnibus'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'releng@chef.io'\nlicense ... | ruby | chosen |
[
{
"from": "system",
"value": "Add debugger to development dependencies\n\n* debugger if ruby > 1.9\n* else ruby-debug\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\nrequire 'databasedotcom/version'\n\nGem::Specification.new do |s|\n s... | ruby | chosen |
[
{
"from": "system",
"value": "Add a test to check empty commands behaviour\n\nwhich is supposed to execute the last non-empty command.\n"
},
{
"from": "human",
"value": "module Byebug\n #\n # Tests generic command functionality.\n #\n class CommandProcessorTest < TestCase\n def program\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix dependencies for recent ruby versions\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'mlk/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Include license info in the gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |s|\n s.name = 'mdv'\n s.version = '0.1.5'\n\n s.summary = 'Simple Markdown Viewer'\n s.description = 'Quickly view markdown files on GN... | ruby | chosen |
[
{
"from": "system",
"value": "[TASK] Add version hint for depsolver\n"
},
{
"from": "human",
"value": "name \"site-reviewtypo3org\"\nmaintainer \"Steffen Gebert / TYPO3 Association\"\nmaintainer_email \"steffen.gebert@typo3.org\"\nlicense \"Apache 2.0\"\ndescription ... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.