conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Revert \"use configuration to define default async touch job\"\n\nThis reverts commit bc3d3fef7a0614e53ff8af419d8e3582be978218.\n"
},
{
"from": "human",
"value": "module ActiveTouch\n class TouchJob < ActiveJob::Base\n\n def perform(record, association, after_to... | ruby | chosen |
[
{
"from": "human",
"value": "Add command to speed creation of diffs for patch\n"
},
{
"from": "gpt",
"value": "formula = Coresys::Formula.find(ARGV[0]).new\nCoresys::Installer.new(formula).install do\n\n # Create two identical directories and place the user in the second directory\n # to make ... | ruby | chosen |
[
{
"from": "system",
"value": "Use parentheses to match coding style\n"
},
{
"from": "human",
"value": "require 'nacre/concerns/inflectible'\n\nmodule Nacre\n\n class OrderCollection\n\n include Enumerable\n\n extend Inflectible\n\n attr_accessor :members\n\n def initialize(parametri... | ruby | chosen |
[
{
"from": "system",
"value": "Fix jar invocation when building jars in 1.9 mode.\n"
},
{
"from": "human",
"value": "module Ritual\n module Extension\n class JRuby < Base\n def define_tasks\n task 'gem:build' => task_name\n desc \"Build the #{name} extension.\"\n tas... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake task to republish all policies\n\nWe need this to populate `emphasised_organisations` for all policies.\n"
},
{
"from": "human",
"value": "namespace :publishing_api do\n desc \"Publish the Policies Finder to the Publishing API\"\n task publish_policies_fi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix load of DL_EXTENSIONS under rbx\n"
},
{
"from": "human",
"value": "module Bootscale\n class Entry\n DL_EXTENSIONS = [\n RbConfig::CONFIG['DLEXT'],\n RbConfig::CONFIG['DLEXT2'],\n ].reject(&:empty?).map { |ext| \".#{ext}\"}\n FEATURE_FILES = \... | ruby | chosen |
[
{
"from": "system",
"value": "Change bank names to the names returned from the transaction specification.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Buckaruby\n module Ideal\n ISSUERS = {\n \"ABNANL2A\" => \"ABN AMRO\",\n \"ASNBNL21\" => \"ASN Bank\"... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec tests for nova::volume::iscsi\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe 'nova::volume::iscsi' do\n\n describe 'on debian platforms' do\n\n let :facts do\n { :osfamily => 'Debian' }\n end\n it { should contain_service('... | ruby | chosen |
[
{
"from": "system",
"value": "Move current_app and current_env to activerecord apps and env\n"
},
{
"from": "human",
"value": "module DeboxServer\n module ViewHelpers\n\n def current_app\n return @request_app if @request_app\n @request_app = params[:app]\n error!(\"App not fou... | ruby | chosen |
[
{
"from": "system",
"value": "Use clearer names in Decay.\n"
},
{
"from": "human",
"value": "module Lita::Handlers::Karma\n class Decay\n include Lita::Handler::Common\n\n namespace \"karma\"\n\n def call\n return unless decay_enabled?\n cutoff = Time.now.to_i - decay_interva... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug. Protocol not included in EM_Connector handler\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nmodule ClientForPoslynx\n module Net\n class EM_Connector\n\n class ConnectionHandler < EM::Connection\n include EMC::HandlesConnection\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix total scan result spec\n"
},
{
"from": "human",
"value": "require \"rails_helper\"\n\nmodule Headlines\n describe GenerateScanResultsHash do\n let(:x_xss_protection) { SecurityHeaders::XXssProtection.new(\"x-xss-protection\", \"1; mode=block\") }\n let(:x... | ruby | chosen |
[
{
"from": "system",
"value": "Add english chars to pattern matching\n"
},
{
"from": "human",
"value": "module TurkishSupport\n DOWNCASED_ALPHABET = 'abcçdefgğhıijklmnoöprsştuüvyz'\n UPCASED_ALPHABET = 'ABCÇDEFGĞHIİJKLMNOÖPRSŞTUÜVYZ'\n\n UNSUPPORTED_DOWNCASE_CHARS = 'çğıiöşü'\n UNSUPPORTED... | ruby | chosen |
[
{
"from": "system",
"value": "Use correct form of if statement\n\n:D\n"
},
{
"from": "human",
"value": "module AdminHelper\n\n\t#needs to be refactored(works at least)\n\tdef active_booking\n\t\ttoken = \"29819a3828fbf0c957a16ce8c95a6129\"\n\t\turl = \"https://bookit.chalmers.it/current.json\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add swagger schema for Branch\n"
},
{
"from": "human",
"value": "module Api\n module Docs\n class Branches\n # :nocov:\n include Swagger::Blocks\n\n swagger_path '/branches' do\n operation :get do\n key :description, 'Return list o... | ruby | chosen |
[
{
"from": "system",
"value": "Set locale in people controller\n\nThis matches the code in the organisations controller.\n"
},
{
"from": "human",
"value": "class PeopleController < ApplicationController\n def show\n @person = Person.find!(request.path)\n setup_content_item_and_navigation_h... | ruby | chosen |
[
{
"from": "system",
"value": "Add filter to make sure search controller provides only published posts to the view\n"
},
{
"from": "human",
"value": "class SearchController < ApplicationController\n before_action :beautify_url\n layout \"simple\"\n\n def show\n @post_records = Post.search(q... | ruby | chosen |
[
{
"from": "system",
"value": "Remove erroneous can :read, :forums\n"
},
{
"from": "human",
"value": "require 'cancan'\n\nmodule Forem\n module Ability\n include CanCan::Ability\n\n def self.included(target)\n target.class_eval do\n # Alias old class's initialize so we can get ... | ruby | chosen |
[
{
"from": "system",
"value": "Add flag so only the first skill has the active flag\n"
},
{
"from": "human",
"value": "class SkillsController < ApplicationController\n def index\n @new_skill = Skill.new\n @skills = current_user.skills.order(:id)\n end\n\n def new\n end\n\n def create\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use StarWriter format to overcome word import issues on QA"
},
{
"from": "human",
"value": "class WordDocument\n attr_reader :file, :parser\n\n def initialize(file, parser=WordToMarkdown)\n @file = file\n @parser = parser\n end\n\n def path\n file.path\... | ruby | chosen |
[
{
"from": "human",
"value": "Rename stripe_token to stripe_id throughout\n"
},
{
"from": "gpt",
"value": "class RenameStripeToId < ActiveRecord::Migration\n def change\n rename_column :shoppe_subscribers, :stripe_token, :stripe_id\n rename_column :shoppe_customers, :stripe_token, :stripe_... | ruby | chosen |
[
{
"from": "system",
"value": "Add check to ensure that a team member has atleast one Access Role selected\n"
},
{
"from": "human",
"value": "class UsersProject < ActiveRecord::Base\n belongs_to :user\n belongs_to :project\n\n attr_protected :project_id, :project\n\n after_commit :update_gito... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issues with testing on newer Ruby versions.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |s|\n s.name = %q{deep_merge}\n s.version = \"1.0.1\"\n\n s.authors = [\"Steve Midgley\"]\n s.date = %q{2011-07-28}\n s.des... | ruby | chosen |
[
{
"from": "system",
"value": "Add try to zipcode and street.\n"
},
{
"from": "human",
"value": "module Addresses\n class Address < ActiveRecord::Base\n belongs_to :zipcode\n belongs_to :addressable, polymorphic: true\n\n validates :number, presence: true\n validates :zipcode_id, pre... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Guard against speedrun.com failed calls\"\n\nThis reverts commit caf7d4aab73883f63ab00013712050a9e781f014.\n"
},
{
"from": "human",
"value": "require 'active_support/concern'\n\nrequire 'speedrundotcom'\n\nmodule SRDCRun\n extend ActiveSupport::Concern\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Allow youtu.be links for proof\n"
},
{
"from": "human",
"value": "class RunValidator < ActiveModel::Validator\n def validate(record)\n validate_video_url(record)\n end\n\n private\n\n def validate_video_url(record)\n record.video_url = nil if record.video_... | ruby | chosen |
[
{
"from": "system",
"value": "Add handling of no waterings to needs_water?\n"
},
{
"from": "human",
"value": "class Plant < ApplicationRecord\n has_many :waterings\n\n def latest_watering\n # TODO handle no waterings\n self.waterings.order(date: :desc).first\n end\n\n def needs_water?\... | ruby | chosen |
[
{
"from": "system",
"value": "Update SHAs of 0.5.0 tarballs\n\nThe initial release of 0.5.0 contained the wrong binaries, see:\nhttps://github.com/git-duet/git-duet/issues/40\n"
},
{
"from": "human",
"value": "class GitDuet < Formula\n desc \"Pairing tool for Git\"\n homepage \"https://github.... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor ManualSectionIndexableFormatter to use abstract class\n\nThis avoids duplication of with_leading_slash, and makes this formatter more\nconsistent with the others.\n\nThe main change here is to override private methods from the superclass\ninstead of defining the attrib... | ruby | chosen |
[
{
"from": "system",
"value": "Connect to chef zero default port in the playground\n\nFixes: #128\nSigned-off-by: Thom May <b591b301ff4610f565a21bb050267ffd893cc83c@may.lt>\n"
},
{
"from": "human",
"value": "chef_repo = File.join(File.dirname(__FILE__), \"..\")\n\nchef_server_url \"http://127.0.0... | ruby | chosen |
[
{
"from": "system",
"value": "Add Variant Redis Cache Store\n"
},
{
"from": "human",
"value": "require \"redis_permalink/version\"\n\nmodule RedisPermalink\n # Your code goes here...\nend\n"
},
{
"from": "gpt",
"value": "require \"redis_permalink/version\"\nrequire \"active_support\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix load error gem \"timeout\"\n\nadd condition when load gem.\n"
},
{
"from": "human",
"value": "require 'yaml'\nrequire 'logger'\nrequire 'timeout'\n\nmodule Redshiftex\n class Core\n\n SECURITY_CREDENTIALS_URL = 'http://169.254.169.254/latest/meta-data/iam/se... | ruby | chosen |
[
{
"from": "system",
"value": "Use Array instead of [*info] for clarity\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n#= Utilities\nclass Utils\n # Take a list of items (ie, course ids) and breaks it into chunks of 50.\n def self.chunk_requests(items, chunk_size=50)\n b... | ruby | chosen |
[
{
"from": "system",
"value": "Add UI helper to wrap actions\n"
},
{
"from": "human",
"value": "require 'sfn'\n\nmodule Sfn\n # Interface for injecting custom functionality\n class Callback\n\n autoload :StackPolicy, 'sfn/callback/stack_policy'\n\n # @return [Bogo::Ui]\n attr_reader :u... | ruby | chosen |
[
{
"from": "system",
"value": "Use current_path to locate config file\n\n\ngit-svn-id: 1a7f608db5630264da01beecbf41f3f4b8b256b8@361 ab7993de-5426-0410-a80b-baa00616f331\n"
},
{
"from": "human",
"value": "# == Set of Capistrano 2 recipes\n# To use, add on top of your Capfile file:\n# load 'config... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the bug that returns unparsed quotes\n"
},
{
"from": "human",
"value": "require 'bindata'\nrequire 'date'\n\nmodule Tdx\n module Parsers\n class EoD\n def self.parse(file)\n quotes = []\n\n (file.size / 32).times do |line|\n file.... | ruby | chosen |
[
{
"from": "system",
"value": "Add Spec for Unknown API Version\n\nUpdate the API spec to include testing for an unknown version.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe ManageEngine::AppManager::Api do\n subject { ManageEngine::AppManager::Api }\n\n it \"can create... | ruby | chosen |
[
{
"from": "system",
"value": "Write tests for Activity model - all pass\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe Activity, type: :model do\n pending \"add some examples to (or delete) #{__FILE__}\"\nend\n"
},
{
"from": "gpt",
"value": "require 'rai... | ruby | chosen |
[
{
"from": "system",
"value": "Add success? and failure? methods to Payment\n"
},
{
"from": "human",
"value": "module Tinkoff\n class Payment\n attr_reader :terminal_key, :amount, :order_id, :success, :status,\n :payment_id, :error_code, :payment_url, :message, :details\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"base: test eDeploy commands\"\n\nThis reverts commit 4d3d626f50a1de24a08d89b64f0b0c511670d746.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\n#\n# cloud::init\n#\n\ndescribe port(22) do\n it { should be_listening.with('tcp') }\nend\n\n# test i... | ruby | chosen |
[
{
"from": "system",
"value": "Add new dependency to gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |gem|\n gem.authors = [\"Hidemasa Togashi\"]\n gem.email = [\"togachiro@gmail.com\"]\n gem.description = %q{Fluentd plugin for ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a failed test case for CartOwner\n"
},
{
"from": "human",
"value": "class DummyUser\n include ActiveModel::Validations\n include Comable::CartOwner\nend\n\ndescribe Comable::CartOwner do\n let(:quantity) { 2 }\n let(:order_items) { build_list(:order_item, 5,... | ruby | chosen |
[
{
"from": "system",
"value": "Fix another variable to use snakecase\n"
},
{
"from": "human",
"value": "class Request < ActiveRecord::Base\n before_save :defaultly_unfulfilled\n\n belongs_to :requester, class_name: 'User'\n belongs_to :responder, class_name: 'User'\n\n validates :content, pre... | ruby | chosen |
[
{
"from": "system",
"value": "Use regexp to match exactly the repo name\n\nIf you have different repos with name like gvp-bi-common, gvp-bi-common-x86_64, gvp-bi-common-noarch, etc...and you want to verify if they exist or not, with the current code it fails even if the repo not exist because it matches onl... | ruby | chosen |
[
{
"from": "system",
"value": "Add method to get definitions for an asset\n"
},
{
"from": "human",
"value": "#########################################################\n# Julien Fouilhé : julien.fouilhe@mobile-devices.fr\n# Mobile Devices 2014\n#####################################################... | ruby | chosen |
[
{
"from": "system",
"value": "Use UKRR not PV coding standard for clinic observations\n\nHad already changed HD observations but not those in clinic visits.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nreturn if visit.public_send(method).blank?\n\nxml = builder\n\ni18n_key... | ruby | chosen |
[
{
"from": "system",
"value": "Use the https cloudflare repo\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "#\n# Cookbook:: apache2\n# Recipe:: mod_cloudflare\n#\n# Copyright:: 2008-2017, Chef Software, Inc.\n#\n# Licensed under t... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused .csv file and change log title\n"
},
{
"from": "human",
"value": "module Renalware\n log \"--------------------Adding Bookmarks --------------------\"\n\n file_path = File.join(demo_path, \"patients_bookmarks.csv\")\n\n logcount=0\n roger_rabbit = ... | ruby | chosen |
[
{
"from": "system",
"value": "Update md5sum of the 6.4 iso\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + \"/../.centos/session.rb\"\n\niso = \"CentOS-6.4-x86_64-netinstall.iso\"\niso_url = \"http://mirror.yellowfiber.net/centos/6.4/isos/x86_64/#{iso}\"\n\nsession =\n COMMO... | ruby | chosen |
[
{
"from": "system",
"value": "Add a basic test for toggling from one engine type to another, and back.\n"
},
{
"from": "human",
"value": "require 'test_helper'\nrequire 'simplereactor'\n\ndescribe SimpleReactor do\n\n it \"sets reactor to a select() based reactor when instructed to do so\" do\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use SpotBugs instead of FindBugs\n* SpotBugs is under active development and FindBugs has effectively not moved for over a year.\n"
},
{
"from": "human",
"value": "# Copyright (C) 2012-2017 Paul Twohey. All Rights reserved. See LICENSE file\n# Holds the eclipse plug... | ruby | chosen |
[
{
"from": "system",
"value": "Remove test files from gemspec manifest\n\nThe images take up a lot of space, and there is no need to have test\nfiles included in the gem.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\n\nrequire 'mini_ma... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to solidus_logo.png in initializer template\n"
},
{
"from": "human",
"value": "# Configure Solidus Preferences\n# See http://docs.solidus.io/Spree/AppConfiguration.html for details\n\nSpree.config do |config|\n # Without this preferences are loaded and persi... | ruby | chosen |
[
{
"from": "system",
"value": "Switch allowed frontend origin by rails environment\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Avoid CORS issues when API is called from the frontend app.\n# Handle Cross-Origin Resource Sharing (CORS) in orde... | ruby | chosen |
[
{
"from": "system",
"value": "Add sent by signature in text message\n"
},
{
"from": "human",
"value": "post '/send_sms' do\n @user = User.find(session[:user_id])\n reach = @user.reaches.find_by(main_reach: true)\n to = reach.contact_phone\n message = reach.text\n p client = Twilio::REST::Cl... | ruby | chosen |
[
{
"from": "system",
"value": "Implement the Animal Service client consumer methods\n"
},
{
"from": "human",
"value": "require 'httparty'\n\nclass AnimalServiceClient\n include HTTParty\n base_uri 'http://animal-service.com'\n\n def get_alligator\n # Yet to be implemented because we're doin... | ruby | chosen |
[
{
"from": "system",
"value": "Add money and hourly_rate helpers\n"
},
{
"from": "human",
"value": "module ApplicationHelper\n def relative_day(date)\n case date.to_date\n when Date.current\n \"Today\"\n when Date.yesterday\n \"Yesterday\"\n else\n date.strftime(\"%A, ... | ruby | chosen |
[
{
"from": "system",
"value": "Update default pageview to include url fragment/hash.\n"
},
{
"from": "human",
"value": "module ApplicationHelper\n\n def analyticsjs_init\n js = \"\"\n if Rails.application.config.respond_to?('google_analytics')\n js = \"\"\"<script>\n (function(i,s,o,... | ruby | chosen |
[
{
"from": "system",
"value": "Fix syntax error in event definitions\n"
},
{
"from": "human",
"value": "class EdiOpsTransaction\n include Mongoid::Document\n include Mongoid::Timestamps\n include AASM\n\n embedded_in :edi_issues\n\n field :qualifying_reason_uri, type: String\n field :enroll... | ruby | chosen |
[
{
"from": "system",
"value": "Add aasm, comments and assignment attributes\n"
},
{
"from": "human",
"value": "class EdiOpsTransaction\n include Mongoid::Document\n include Mongoid::Timestamps\n\n field :qualifying_reason_uri, type: String\n field :enrollment_group_uri, type: String\n field ... | ruby | chosen |
[
{
"from": "system",
"value": "Load routes in reverse order\n\nThis way the current route can override all previous\n"
},
{
"from": "human",
"value": "module Lanes\n API.routes.draw do\n\n patch Lanes.config.mounted_at + '/system-settings.json',\n &SystemSettings.update_han... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo - only output container ID\n"
},
{
"from": "human",
"value": "module Morph\n class DockerMaintenance\n def self.delete_container_and_remove_image(container)\n delete_container(container)\n remove_image(container_image(container))\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update metadata update expected return code\n\nHuawei FusionSphere OpenStack return a 202 HTTP code when updating volume metadata"
},
{
"from": "human",
"value": "module Fog\n module Volume\n class OpenStack\n module Real\n def update_metadata(volume... | ruby | chosen |
[
{
"from": "system",
"value": "Improve cask for AppCode EAP\n"
},
{
"from": "human",
"value": "cask :v1 => 'appcode-eap' do\n version '3.2.0'\n sha256 'fa78dc8e2a7430e7173cecec7b6e369f3d2cf442facd7ee0df46592788b00715'\n\n url 'http://download.jetbrains.com/objc/AppCode-141.1689.23.dmg'\n home... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `url` stanza comment for NinjaBlocks.\n"
},
{
"from": "human",
"value": "cask 'ninjablocks' do\n version '0.2'\n sha256 'f0ed94bc767a7f0059d08904f71c4266b6045ce4f7c194678e48b02a2d85eaeb'\n\n # dropboxusercontent.com is the official download host per the devel... | ruby | chosen |
[
{
"from": "system",
"value": "Update SimPholders to version 2.2\n\nThis commit updates the version and sha256 stanzas.\n"
},
{
"from": "human",
"value": "cask 'simpholders' do\n version '2.1'\n sha256 '68472926b108bc46b84fd2b6c1083b9fd1810f5fb70fc0924818d60f5bb8e668'\n\n url \"https://simphol... | ruby | chosen |
[
{
"from": "system",
"value": "Add dependency on chronic to gemspec\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"ruby-puppetdb\"\n s.version = %x{git describe --tags}.split('-')[0..1].join('.')\n s.platform = Gem::Platform::RUBY\n s.authors =... | ruby | chosen |
[
{
"from": "system",
"value": "Add some aliases for the requiste methods.\n"
},
{
"from": "human",
"value": "module Kosmos\n module PackageAttrs\n private\n\n def self.included(base)\n base.extend(Methods)\n base.send(:include, Methods)\n end\n\n module Methods\n def t... | ruby | chosen |
[
{
"from": "system",
"value": "Add Sanitizer module responding to sanitizer_vendor interface.\n"
},
{
"from": "human",
"value": "require \"rails/html/sanitizer/version\"\nrequire \"loofah\"\nrequire \"rails/html/scrubbers\"\nrequire \"rails/html/sanitizer\"\n\nmodule Rails\n module Html\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Change default value for config.silence_reporting to 'nil' as opposed to 'false' so it can be overridden by the Raltie\n"
},
{
"from": "human",
"value": "module Raygun\n class Configuration\n\n # Your Raygun API Key - this can be found on your dashboard at Raygu... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure `Rails` constant is defined\n"
},
{
"from": "human",
"value": "require 'localeapp/rails'\n\nLocaleapp.configure do |config|\n config.api_key = Rails.application.secrets[\"localeapp_apikey\"]\n\n config.polling_environments = []\n config.sending_environm... | ruby | chosen |
[
{
"from": "system",
"value": "Order private messages by last activity\n\nFixes #648\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n# Note inheritance\nclass Users::PrivateMessageThreadsController < MessageThreadsController\n before_filter :load_user, only: [:create, :new]\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the breakage introduced by parser 2.3.0.7\n\nSee https://github.com/whitequark/parser/issues/283 for details.\nProbably the proper long-term solution would be to adjust our specs.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n# frozen_string_literal: tru... | ruby | chosen |
[
{
"from": "system",
"value": "Update ChromeDriver from 2.14 to 2.15\n"
},
{
"from": "human",
"value": "default['selenium']['server_version'] = '2.45.0'\ndefault['selenium']['iedriver_version'] = '2.45.0'\ndefault['selenium']['chromedriver_version'] = '2.14'\n\ndefault['selenium']['release_url'] ... | ruby | chosen |
[
{
"from": "system",
"value": "Add new file specifications for sheet importing.\n"
},
{
"from": "human",
"value": "require 'cgi'\nrequire 'faraday'\n\nmodule Smartsheet\n module API\n # Specification for a file attachment by path, target filename, and MIME content type\n class PathFileSpec... | ruby | chosen |
[
{
"from": "system",
"value": "Add inline documentation for sub_diff and gsub_diff\n"
},
{
"from": "human",
"value": "module SubDiff\n module CoreExt\n module String\n def sub_diff(*args, &block)\n Builder.new(self, :sub).diff(*args, &block)\n end\n\n def gsub_diff(*args... | ruby | chosen |
[
{
"from": "system",
"value": "Create empty classes for missing constants\n"
},
{
"from": "human",
"value": "class Module\n\n # Runs Tanuki::Loader for every missing constant in any namespace.\n def const_missing_with_tanuki(const)\n paths = Dir.glob(Tanuki::Loader.combined_class_path(sym))\... | ruby | chosen |
[
{
"from": "system",
"value": "Add rspec to development dependencies"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'lab/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.6.0.1 to 1.0.0.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'evt-log'\n s.version = '0.6.0.1'\n s.summary = 'Logging to STD IO with levels, tagging, and coloring'\n s... | ruby | chosen |
[
{
"from": "system",
"value": "Return strict boolean, for clarity.\n"
},
{
"from": "human",
"value": "require 'resolv'\nmodule Geocoder\n class IpAddress < String\n\n def loopback?\n valid? and (self == \"0.0.0.0\" or self.match(/\\A127\\./) or self == \"::1\")\n end\n\n def valid?... | ruby | chosen |
[
{
"from": "system",
"value": "Add wrapper method to module\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.dirname(File.realpath(__FILE__)) + '/../lib')\n\n# Internal dependencies\nrequire 'cogwheels/version'\n\n# Cogwheels allows YAML configuration files to be loaded into Configurati... | ruby | chosen |
[
{
"from": "system",
"value": "Define pattern method inside of Check\n\nMake easier to understand how to write custom checks.\n"
},
{
"from": "human",
"value": "module Scanny\n module Checks\n class Check\n def visit(file, node)\n @file = file\n @line = node.line\n @... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce precision sent to roshi to match db.\n\nThis ensures that roshi only cares about microseconds and nanoseconds\nare discarded. This is important because postgres only stores\nmicrosecond precision. In cases where we write to the stream from an\nobject recently created in ... | ruby | chosen |
[
{
"from": "system",
"value": "Initialize classes and create assign_hw method\n"
},
{
"from": "human",
"value": "require \"httparty\"\nrequire \"pry\"\n\nrequire \"githubber/version\"\nrequire \"githubber/pull_requests\"\nrequire \"githubber/issues\"\nrequire \"githubber/search\"\n\nmodule Github... | ruby | chosen |
[
{
"from": "system",
"value": "Make the ignored argument optional in file launcher\n"
},
{
"from": "human",
"value": "module Approvals\n module Reporters\n class FilelauncherReporter < Reporter\n include Singleton\n\n class << self\n def report(received, approved)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make Haml syntax checker lazy-load haml gem\n\nSimilar to scss-lint, only load the gem if the repo contains modified\n'.haml' files. This makes it so that people can leave this hook\ninstalled but dormant unless they're actually working on Haml files.\nPrior to this commit, the... | ruby | chosen |
[
{
"from": "system",
"value": "Update upstream t3-gerrit to 0.4.20\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 |
[
{
"from": "system",
"value": "Remove version constraint from git cookbook\n"
},
{
"from": "human",
"value": "name \"ps2dev\"\nmaintainer \"Mathias Lafeldt\"\nmaintainer_email \"mathias.lafeldt@gmail.com\"\nlicense \"Apache 2.0\"\ndescription \"Installs a full... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade maven dependency to 5.x\n\nhttps://supermarket.chef.io/cookbooks/maven#changelog\n"
},
{
"from": "human",
"value": "name 'exhibitor'\nmaintainer 'EverTrue'\nmaintainer_email 'devops@evertrue.com'\nlicense 'Apache-2.0'\ndescription ... | ruby | chosen |
[
{
"from": "system",
"value": "Decrease osx version in podpsec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"moa\"\n s.version = \"2.0.4\"\n s.license = { :type => \"MIT\" }\n s.homepage = \"https://github.com/evgenyneu/moa\"\n s.summary = \"An im... | ruby | chosen |
[
{
"from": "system",
"value": "Remove warnings generated from gemspec\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/ring_sig/version', __FILE__)\n\nGem::Specification.new do |s|\n s.name = 'ring_sig'\n s.version = RingSig::VERSION\n s.authors = ['Stephen Mc... | ruby | chosen |
[
{
"from": "system",
"value": "Add paths to sample data for testing\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe DataSet do\n\n describe '#process' do\n\n context 'when all required sheets and headers are present' do\n\n context 'when columns match data format co... | ruby | chosen |
[
{
"from": "system",
"value": "Update dependencies and bump to 1.2.1"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'goldfinger'\n s.version = '1.2.0'\n s.platform = Gem::Platform::RUBY\n s.required_ruby_version = '>= 2.0.... | ruby | chosen |
[
{
"from": "system",
"value": "Update minitest dependency to ~> 4.0\n"
},
{
"from": "human",
"value": "version = File.read(File.expand_path(\"../../RAILS_VERSION\", __FILE__)).strip\n\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'activesupport'\n s.ver... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failing session controller spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe SessionsController do\n describe 'GET #new' do\n before { get :new }\n\n it { should respond_with(200) }\n it { should render_template('new') }\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Test the validation of user_id on Album model\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Album do\n it 'must belong to a user' do\n pending 'test user association'\n end\n\n it 'must be deleted if the user is deleted' do\n pending ... | ruby | chosen |
[
{
"from": "system",
"value": "Make test a little more specific about how the to addresses are stored\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Email do\n describe \".from\" do\n it \"should return a string for the from email address\" do\n email = Email.create... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec after pod spec lint\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n# Root specification\n\ns.name = \"mishmesh\"\ns.version = \"1.0.0\"\ns.summary = \"Mishmesh library\"\ns.homepage ... | ruby | chosen |
[
{
"from": "system",
"value": "Update for final version of CASino 3.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\nrequire 'casino/ldap_authenticator/version'\n\nGem::Specification.new do |s|\n s.name = 'casino-ldap_authentica... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the gem description in the gemspec. Add development dependencies.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = 'nap'\n spec.version = '0.4'\n \n spec.author = \"Manfred Stienstra\"\n spec.email = \"manfred@fngtps.com\"\n... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.