conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use mspec :launch instead of :flags so Agent doesn't start in sub-specs.\n\nThere are specs that unconditionally kill the exe and that does\nnot allow the exe to perform any cleanup. This results in numerous\ngarbage rbx Agent connection files. It would be nice to have the\nAge... | ruby | chosen |
[
{
"from": "system",
"value": "Fix warning for defining same constant twice when specs\n"
},
{
"from": "human",
"value": "if defined?(RSpec)\n require 'rspec/version'\n if RSpec::Version::STRING >= '2.11.0'\n RSpec.configure do |config|\n config.expect_with :rspec do |c|\n c.synt... | ruby | chosen |
[
{
"from": "system",
"value": "Remove funky spacing in the test recipe\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "\n# create directory for sharing with full access for all users\ndirectory 'c:/test_share' do\n rights :full_c... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure shipping rate is within Spree module\n"
},
{
"from": "human",
"value": "class ShippingRate < Struct.new(:id, :shipping_method, :name, :cost)\n def initialize(attributes={})\n attributes.each do |k,v|\n self.send(\"#{k}=\", v)\n end\n end\n\nen... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failure to detect RHEL 7 flavours\n"
},
{
"from": "human",
"value": "module VagrantPlugins\n module GuestRedHat\n module Cap\n class Flavor\n def self.flavor(machine)\n # Read the version file\n output = \"\"\n machine.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix showing undefined method error\n"
},
{
"from": "human",
"value": "module Byebug\n #\n # Reopens the +info+ command to define the +args+ subcommand\n #\n class InfoCommand < Command\n #\n # Information about arguments of the current method/block\n #\... | ruby | chosen |
[
{
"from": "system",
"value": "Bump version number in podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'SSZipArchive'\n s.version = '0.2.1'\n s.summary = 'Utility class for zipping and unzipping files on iOS and Mac.'\n s.homepage = 'https://git... | ruby | chosen |
[
{
"from": "system",
"value": "Write a spec for log modes\n"
},
{
"from": "human",
"value": "require 'discordrb'\n\ndescribe Discordrb::Logger do\n it 'should log messages' do\n stream = spy\n logger = Discordrb::Logger.new(false, [stream])\n\n logger.error('Testing')\n\n expect(stre... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec to ensure that trie dumps are up-to-date.\n"
},
{
"from": "gpt",
"value": "# encoding: UTF-8\n\n# Copyright 2012 Twitter, Inc\n# http://www.apache.org/licenses/LICENSE-2.0\n\nrequire 'spec_helper'\n\ninclude TwitterCldr::Collation\n\ndescribe 'trie dumps', :... | ruby | chosen |
[
{
"from": "system",
"value": "Fix indendation warning when running unit tests\n"
},
{
"from": "human",
"value": "require 'test/unit'\nrequire 'tilt'\nrequire 'sprockets'\n\nTilt::CoffeeScriptTemplate.default_bare=true\nclass QueryExecutor\n @@ctx = nil\n def self.ctx \n unless @@ctx\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use the commit date for feed entries\n\nThis prevents old updates to get bumped up.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n# This code is free software; you can redistribute it and/or modify it under\n# the terms of the new BSD License.\n#\n# Copyri... | ruby | chosen |
[
{
"from": "system",
"value": "Update Tower to use specific version, not :latest\n\nThis commit changes Tower to stop using the :latest identifier and\nuse a specific version instead. It also includes a SHA.\n"
},
{
"from": "human",
"value": "cask :v1 => 'tower' do\n version :latest\n sha256 :n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove \"remote\" attribute from Tree breadcrumb links\n\nSee https://github.com/gitlabhq/gitlabhq/pull/1665#discussion_r1804447"
},
{
"from": "human",
"value": "class TreeDecorator < ApplicationDecorator\n decorates :tree\n\n def breadcrumbs(max_links = 2)\n i... | ruby | chosen |
[
{
"from": "human",
"value": "Add Xamarin Studio (MonoDevelop) Cask.\n"
},
{
"from": "gpt",
"value": "class XamarinStudio < Cask\n url 'http://download.xamarin.com/studio/Mac/XamarinStudio-4.0.13-38.dmg'\n homepage 'http://xamarin.com/studio'\n version '4.0.13-38'\n sha1 '8c2ab4ae42576c7d2ff7... | ruby | chosen |
[
{
"from": "human",
"value": "Add Recent Menu.app version 1.2.3\n\nRecent Menu is a shiny little menu item, sitting around in you menu bar and showing files and folders recently accessed on your computer.\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'recent-menu' do\n version :latest\n sha256 :... | ruby | chosen |
[
{
"from": "system",
"value": "Fix dependency issues with octokit.\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift 'lib'\n\nGem::Specification.new do |s|\n s.name = \"git-review\"\n s.version = \"1.0.5\"\n s.date = Time.now.strftime('%F')\n s.summary = \"facilitates GitHub cod... | ruby | chosen |
[
{
"from": "system",
"value": "Remove extra space after the dot"
},
{
"from": "human",
"value": "`Opal.exit = process.exit`\n\nmodule Kernel\n NODE_REQUIRE = `require`\n\n def caller(*args)\n %x{\n var stack;\n try {\n var err = Error(\"my error\");\n throw err;\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use new Chef Omnibus URL\n"
},
{
"from": "human",
"value": "module VagrantPlugins\n module Chef\n module Omnibus\n OMNITRUCK = \"https://www.getchef.com/chef/install.sh\".freeze\n\n # Read more about the Omnibus installer here:\n # https://docs.ge... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade RubyMine EAP to v139.262\n"
},
{
"from": "human",
"value": "class RubymineEap < Cask\n version '139.106'\n sha256 '40e2543a568c4191bb51ed1b51f4b5264360219ac1d1472820e2b968b4b88924'\n\n url \"http://download.jetbrains.com/ruby/RubyMine-#{version}.dmg\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add spaces in the braces.\n\nSolves personal insanity, since I was down in these files.\n\n(Please don't submit PRs like this.)\n"
},
{
"from": "human",
"value": "require 'active_support/deprecation'\nrequire 'active_support/core_ext/string/strip' # for strip_heredo... | ruby | chosen |
[
{
"from": "system",
"value": "Update Lyrics Master to 2.4.3\n"
},
{
"from": "human",
"value": "cask :v1 => 'lyrics-master' do\n version '2.4.2'\n sha256 '1cd0f639ea1e557e0abef320ee8ea61877c24bab444cb573bfd41d0887605d7f'\n\n url \"http://www.kenichimaehashi.com/lyricsmaster/download/LyricsMast... | ruby | chosen |
[
{
"from": "system",
"value": "Make `never` a unit of time\n"
},
{
"from": "human",
"value": "# Not the same thing as a Regimen. A farm_event is a \"dumb\" list of sequecnes that\n# are executed at fixed intervals. FarmEvents are less flexible than Regimens\n# because they can only perform one se... | ruby | chosen |
[
{
"from": "system",
"value": "Add a doc comment to the Errors module\n"
},
{
"from": "human",
"value": "module Discordrb\n module Errors\n # Raised when authentication data is invalid or incorrect.\n class InvalidAuthenticationError < RuntimeError; end\n\n # Raised when a HTTP status c... | ruby | chosen |
[
{
"from": "system",
"value": "Add trait for manual deploy strategy\n"
},
{
"from": "human",
"value": "FactoryBot.define do\n factory :project_auto_devops do\n project\n enabled true\n domain \"example.com\"\n deploy_strategy :continuous\n end\nend\n"
},
{
"from": "gpt",
... | ruby | chosen |
[
{
"from": "system",
"value": "Remove spurious require of AR.\n"
},
{
"from": "human",
"value": "require 'turnout'\nrequire 'rack/turnout'\nrequire 'rails' unless defined? Rails\n\n# For Rails 3\nif defined? Rails::Engine\n\n require 'active_record'\n\n module Turnout\n class Engine < Rails:... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to use CocoaLumberjack if it's available, and define the minimum deployment targets\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'MagicalRecord'\n s.version = '2.3.0-beta.1'\n s.license = 'MIT'\n s.summary = 'Super Awe... | ruby | chosen |
[
{
"from": "system",
"value": "Fix .line endings in MT940 files before parsing.\n"
},
{
"from": "human",
"value": "class BookingImportAttachment < Attachment\n # Booking Import\n has_one :booking_import\n accepts_nested_attributes_for :booking_import\n\n def content\n File.read(file.curren... | ruby | chosen |
[
{
"from": "system",
"value": "Fix generic attachment form for debit/credit invoices.\n"
},
{
"from": "human",
"value": "class AttachmentsController < AuthorizedController\n belongs_to :invoice, :polymorphic => true, :optional => true\n belongs_to :employee, :polymorphic => true, :optional => t... | ruby | chosen |
[
{
"from": "system",
"value": "Use string in gemspec instead of using constant\n\nFor some reason changing the load path break tests with Rails 3.1 and\nRails 3.2.\n\nI can't understand why, so it is better to remove.\n"
},
{
"from": "human",
"value": "$:.unshift File.expand_path(\"../lib\", __FI... | ruby | chosen |
[
{
"from": "human",
"value": "Add Fisher-Yates shuffle in Ruby.\n"
},
{
"from": "gpt",
"value": "# Shuffles an array with Fisher-Yates algorithm\ndef fisher_yates(arr)\n rng = Random.new()\n i = arr.length - 1\n while i >= 0\n j = rng.rand(i + 1)\n temp = arr[i]\n arr[i] = arr[j]\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use 'proper' date format for ExactOnline\n"
},
{
"from": "human",
"value": "require \"active_support\"\nrequire \"active_support/time\"\nrequire \"active_support/core_ext/time/zones\"\nmodule Elmas\n module Resource\n module Sanitizer\n # Parse the attribut... | ruby | chosen |
[
{
"from": "system",
"value": "Add log messages to clarify log messages about API CSRF token verification failure\n"
},
{
"from": "human",
"value": "# A module to check CSRF tokens in requests.\n# It's used in API helpers and OmniAuth.\n# Usage: GitLab::RequestForgeryProtection.call(env)\n\nmodul... | ruby | chosen |
[
{
"from": "human",
"value": "Add Evernote 5.6 Beta 6 Cask\n"
},
{
"from": "gpt",
"value": "class EvernoteBeta < Cask\n url 'http://cdn1.evernote.com/mac-smd/prerelease/Evernote_BETA_5.6.0_Beta_6_450650.zip'\n homepage 'https://evernote.com/'\n version '5.6beta6'\n sha256 '4cdd361c873ce94ba5b... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure the Error class is available at chef time."
},
{
"from": "human",
"value": "#\n# Copyright 2015, Noah Kantrowitz\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# ... | ruby | chosen |
[
{
"from": "system",
"value": "Add blank line before the raise method on Github::Collection\n"
},
{
"from": "human",
"value": "module Github\n class Collection\n attr_reader :options\n\n def initialize(options)\n @options = options\n end\n\n def fetch(url, query = {})\n ret... | ruby | chosen |
[
{
"from": "system",
"value": "Remove :app designation from Emacs link"
},
{
"from": "human",
"value": "class Emacs < Cask\n url 'http://emacsformacosx.com/emacs-builds/Emacs-24.3-universal-10.6.8.dmg'\n homepage 'http://emacsformacosx.com/'\n version '24.3'\n sha1 '1ee96baa50806b255d2114549a... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Keyboard Maestro.app to v7.0.2.\n"
},
{
"from": "human",
"value": "cask :v1 => 'keyboard-maestro' do\n version '7.0.1'\n sha256 '5f0f104fc164c53be6ee258db2d5a62e2448493789a80e398593144f9ca0900d'\n\n # stairways.com is the official download host per the ve... | ruby | chosen |
[
{
"from": "system",
"value": "Make preferred_operator and preferred_amount accessible attributes on PromotionRule\n"
},
{
"from": "human",
"value": "# Base class for all promotion rules\nmodule Spree\n class PromotionRule < ActiveRecord::Base\n belongs_to :promotion, :foreign_key => 'activat... | ruby | chosen |
[
{
"from": "human",
"value": "Fix UTF8 problem in locales table.\n"
},
{
"from": "gpt",
"value": "# Shorten column length so that the index isn't over 1000 chars when the collation is UTF8\n\nclass ShortenLocalesColumn < ActiveRecord::Migration\n def self.up\n \tchange_column :locales, :locale,... | ruby | chosen |
[
{
"from": "system",
"value": "Add direct url, version, sha, and link to DiskInventoryX\n"
},
{
"from": "human",
"value": "class DiskInventoryX < Cask\n url 'http://www.derlien.com/download.php?file=DiskInventoryX'\n homepage 'http://www.derlien.com/'\n version 'latest'\n no_checksum\nend\n"
... | ruby | chosen |
[
{
"from": "system",
"value": "Update Vienna.app to version 3.0.3\n"
},
{
"from": "human",
"value": "cask :v1 => 'vienna' do\n version '3.0.2'\n sha256 'a52a8de9591483d4c440ab1390ab7f66bbafee0e27e23517b7300b0df4e461e0'\n\n # sourceforge.net is the official download host per the vendor homepage... | ruby | chosen |
[
{
"from": "system",
"value": "Document DataMapper::Associations::OneToOne::Relationship. That one was easy.\n"
},
{
"from": "human",
"value": "# TODO: make it so that a child_key is created with nullable => false if\n# @min == 1\n\nmodule DataMapper\n module Associations\n module OneTo... | ruby | chosen |
[
{
"from": "system",
"value": "Update file store timeout value\n\nAfter upgrading from rails 3 to rails 4 we hit timeout error with the file store lock. We're compiling assets on a 32core machine, so that doesn't give much time given the timeout is only 1000ms. Raising the timeout has fixed this problem for ... | ruby | chosen |
[
{
"from": "system",
"value": "Add example that assert nil when Lyric if not found\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\ndescribe Lyricfy::Fetcher do\n before do\n @fetcher = Lyricfy::Fetcher.new\n end\n\n describe \"with no params\" do\n it \"should use default pro... | ruby | chosen |
[
{
"from": "system",
"value": "Use IOStub not StringIO in specs.\n"
},
{
"from": "human",
"value": "require File.expand_path('../../../spec_helper', __FILE__)\nrequire 'stringio'\n\ndescribe \"Exception#render\" do\n it \"renders a multi-line message with the class name included in the first lin... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure that rogue wire server processes aren't left if you quit a test run\n"
},
{
"from": "human",
"value": "Given /^there is a wire server (running |)on port (\\d+) which understands the following protocol:$/ do |running, port, table|\n protocol = table.hashes... | ruby | chosen |
[
{
"from": "system",
"value": "Winetricks: Update to 20130629 release, r1026\n\nCloses #21045.\n\nSigned-off-by: Jack Nagel <43386ce32af96f5c56f2a88e458cb94cebee3751@gmail.com>\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Winetricks < ScriptFileFormula\n homepage 'http://code.go... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for user_id uniq in NotificationSetting model\n\nSigned-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe NotificationSetting, type: :model do\n desc... | ruby | chosen |
[
{
"from": "system",
"value": "Fix reject! method call in CommentsController\n"
},
{
"from": "human",
"value": "class CommentsController < ApplicationController\n before_filter :authenticate_user!\n # lol embedded documents\n before_filter :find_book_and_chapter_and_note\n \n def create\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add an extension pointer for custom importer\n"
},
{
"from": "human",
"value": "require \"sprockets/sass_template\"\n\nmodule Sass\n module Rails\n class SassTemplate < Sprockets::SassTemplate\n def self.default_mime_type\n 'text/css'\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary file to store last siri response\n"
},
{
"from": "human",
"value": "require 'rexml/document'\nrequire 'rexml/xpath'\n\nworking_directory = \"features/testdata\"\n\ndef siri_path(attributes = {})\n url_for(attributes.merge(path: \"siri\"))\nend\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Add port isolation, so multiple test nets can run concurrently\n"
},
{
"from": "human",
"value": "require 'fileutils'\nmodule StellarCoreCommander\n class Commander\n include Contracts\n\n # \n # Creates a new core commander\n # \n Contract String =>... | ruby | chosen |
[
{
"from": "system",
"value": "Make the \"no defined commands\" a context with two tests\n"
},
{
"from": "human",
"value": "require 'discordrb'\n\ndescribe Discordrb::Commands do\n describe Discordrb::Commands::CommandBot do\n it 'should allow no defined commands' do\n bot = Discordrb::C... | ruby | chosen |
[
{
"from": "system",
"value": "Add default option of auto_registration.\n"
},
{
"from": "human",
"value": "require 'redmine'\nrequire 'dispatcher'\nrequire 'http_auth_patch'\n \nRedmine::Plugin.register :http_auth do\n name 'HTTP Authentication plugin'\n author 'Adam Lantos'\n url 'http://gith... | ruby | chosen |
[
{
"from": "system",
"value": "Check for existence of identity_session\n"
},
{
"from": "human",
"value": "require 'fog/openstackcore/errors'\n\nmodule Fog\n module OpenStackCore\n module RequestCommon\n\n def base_request(connection, params)\n\n first_attempt = true\n begin... | ruby | chosen |
[
{
"from": "system",
"value": "Add python as a dependency.\n"
},
{
"from": "human",
"value": "name 'chef-logstash'\nmaintainer 'Wouter de Vos'\nmaintainer_email 'oss@rein.io'\nlicense 'MIT'\ndescription 'Installs/Configures Logstash from the official packages.'\nlo... | ruby | chosen |
[
{
"from": "system",
"value": "JariBakken: Fix spec for last change.\n\nr13679\n"
},
{
"from": "human",
"value": "require File.expand_path(\"../../../spec_helper\", __FILE__)\n\nmodule Selenium\n module WebDriver\n module Remote\n module Http\n describe Common do\n\n it \... | ruby | chosen |
[
{
"from": "human",
"value": "Add a wrapper script for runit.\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\nif ARGV.empty?\n puts \"Requires at least one argument\"\n exit 1\nend\n\nchild_pid = nil\n\n%w{INT TERM CONT}.each do |signal|\n trap signal do\n puts \"Terminating child\"... | ruby | chosen |
[
{
"from": "human",
"value": "Add basic JSON compare test\n"
},
{
"from": "gpt",
"value": "class JSONCompareTests < Test::Unit::TestCase\n include BrakemanTester::DiffHelper\n\n def setup\n @path = File.expand_path \"#{TEST_PATH}/apps/rails3.2\"\n @json_path = File.join @path, \"report.js... | ruby | chosen |
[
{
"from": "system",
"value": "Update IntelliJ CE EAP to 139.222.5\n"
},
{
"from": "human",
"value": "class IntellijIdeaCommunityEap < Cask\n version '139.144.2'\n sha256 '4f06f206d4e3435d0d2b2c803637db7645ab8c762fbdbd6038384971074e16b8'\n\n url \"http://download.jetbrains.com/idea/ideaIC-#{ve... | ruby | chosen |
[
{
"from": "system",
"value": "Update Seafile Client to 3.1.5"
},
{
"from": "human",
"value": "class SeafileClient < Cask\n version '3.0.3'\n sha256 '27799acfab6555a78f2c735585d192918857a60e99af84be5a2e0b2fde98cf85'\n\n url 'https://bitbucket.org/haiwen/seafile/downloads/seafile-client-3.0.3.d... | ruby | chosen |
[
{
"from": "system",
"value": "Drop usage of description in job post on Slack\n"
},
{
"from": "human",
"value": "require 'slack-notifier'\n\nclass Notifier\n def self.get_notifier\n notifier = Slack::Notifier.new(AppSettings.slack_web_hook_url,\n channel: Ap... | ruby | chosen |
[
{
"from": "system",
"value": "Add RSpec conf: filtering and random ordering\n"
},
{
"from": "human",
"value": "require 'simplecov'\nSimpleCov.start\n\nrequire 'bundler/setup'\nBundler.require :default, :test\nrequire 'faye' unless RUBY_PLATFORM == 'java'\n\nrequire 'webmock/rspec'\n\nWebMock.dis... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure provider config is always available even if no block was given\n"
},
{
"from": "human",
"value": "require \"log4r\"\n\nrequire \"vagrant/util/stacked_proc_runner\"\n\nmodule VagrantPlugins\n module Kernel_V2\n # Represents a single configured provider ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the LinkSet proxy instance"
},
{
"from": "human",
"value": "require 'sitemap_generator/builder'\nrequire 'sitemap_generator/sitemap_namer'\nrequire 'sitemap_generator/link_set'\nrequire 'sitemap_generator/templates'\nrequire 'sitemap_generator/utilities'\nrequir... | ruby | chosen |
[
{
"from": "system",
"value": "Add methods for destroy and save.\n"
},
{
"from": "human",
"value": "require 'fog/core/model'\nrequire 'fog/hp/models/storage/shared_files'\n\nmodule Fog\n module Storage\n class HP\n\n class SharedDirectory < Fog::Model\n\n identity :url\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": ":page_facing_up: Update Podspec to reflect GPL 2 license\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"StringUtilities\"\n s.version = \"2.2.0\"\n s.summary = \"A collection of utilities to work with strings\"\n\n s.des... | ruby | chosen |
[
{
"from": "system",
"value": "Update iTerm 2 beta to 1.0.0.20140518\n"
},
{
"from": "human",
"value": "class Iterm2Beta < Cask\n url 'http://www.iterm2.com/downloads/beta/iTerm2-1_0_0_20140421.zip'\n homepage 'http://www.iterm2.com/'\n version '1.0.0.20140421'\n sha256 'd9f3dd198febf46c272a8... | ruby | chosen |
[
{
"from": "system",
"value": "Fix SMTP config regression when not using authentication\n\n`user_name` and `password` need to be set to nil when no authentication should be performed\n\nFixes #1657\n"
},
{
"from": "human",
"value": "ActionMailer::Base.smtp_settings = {\n address: ENV['SMTP_SERVE... | ruby | chosen |
[
{
"from": "system",
"value": "Add check encoding to UTF8Util::clean!\n"
},
{
"from": "human",
"value": "module UTF8Util\n def self.clean!(str)\n str.force_encoding(\"binary\").encode(\"UTF-8\", :invalid => :replace, :undef => :replace, :replace => REPLACEMENT_CHAR)\n end\nend\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Handle 404s of politicians naturally\n"
},
{
"from": "human",
"value": "class PoliticiansController < ApplicationController\n\n def show\n @politician = Politician.active.where(:user_name => params[:user_name]).first\n \n # need to get the latest tweet to ... | ruby | chosen |
[
{
"from": "system",
"value": "Install apt-transport-https before adding APT repository from packagecloud\n"
},
{
"from": "human",
"value": "#\n# Use Basho via APT to PACKAGECLOUD repository\n#\napt_repository 'basho-riak' do\n uri 'https://packagecloud.io/basho/riak/'\n distribution n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rspec method expectations for Day model.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Day do\n context \"a closed day\" do\n subject { Factory.build(:closed_day, :gross_turnover => 100.0, :net_turnover => 80.0) }\n\n its(:to_s) { s... | ruby | chosen |
[
{
"from": "system",
"value": "Delete all before tests as well\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'Server Discovery and Monitoring' do\n include Mongo::SDAM\n\n CRUD_TESTS.each do |file|\n\n spec = Mongo::CRUD::Spec.new(file)\n\n context(spec.description)... | ruby | chosen |
[
{
"from": "system",
"value": "Make Resources cache hash initalization more readable.\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\n\nmodule TwitterCldr\n module Shared\n class Resources\n def initialize\n @resources_by_locale = Hash.new { |hash, key| hash[key] = Hash.new ... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for a bug: FFI::Struct.layout raises an exception if class name is blank\n"
},
{
"from": "gpt",
"value": "require File.expand_path(File.join(File.dirname(__FILE__), \"spec_helper\"))\n\ndescribe \"FFI::Struct.layout\" do\n context 'when class name is not s... | ruby | chosen |
[
{
"from": "system",
"value": "Implement new command for removing existing installation\n"
},
{
"from": "human",
"value": "require 'rbconfig'\nrequire 'fileutils'\n\nclass Setup\n attr_accessor :site_dir, :site_lib_dir, :site_arch_dir\n\n def initialize\n @site_dir = RbConfig::CONFIG[\"sited... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Link header from default\n"
},
{
"from": "human",
"value": "# You can configure documented headers.\n#\n# Examples\n#\n# # response.headers[\"X-Content-Type-Options\"] will be documented.\n# Autodoc.configuration.headers << \"X-Content-Type-Options\"\n#\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add Mail Plugin Manager v2.0.6\n"
},
{
"from": "gpt",
"value": "class MailPluginManager < Cask\n version 'latest'\n sha256 :no_check\n\n url 'http://www.chungwasoft.com/files/MPM_latest.zip'\n homepage 'http://www.chungwasoft.com/mailpluginmanager/'\n\n link 'Ma... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade RapidWeaver.app to version 6\n"
},
{
"from": "human",
"value": "class Rapidweaver < Cask\n version :latest\n sha256 :no_check\n\n url 'https://realmacsoftware.com/redirects/rapidweaver/direct'\n appcast 'http://www.realmacsoftware.com/stats/rapidweaver5.... | ruby | chosen |
[
{
"from": "system",
"value": "Update Silverlight Cask to use SHA256"
},
{
"from": "human",
"value": "class Silverlight < Cask\n url 'http://silverlight.dlservice.microsoft.com/download/6/B/8/6B885B0B-73D4-4BCE-BFFF-154B4A402D22/20913.00/Silverlight.dmg'\n homepage 'http://www.microsoft.com/sil... | ruby | chosen |
[
{
"from": "system",
"value": "Make the InvalidTokenResponse object available to views\n"
},
{
"from": "human",
"value": "module Doorkeeper\n module Helpers\n module Filter\n module ClassMethods\n def doorkeeper_for(*args)\n doorkeeper_for = DoorkeeperForBuilder.create_do... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failing test -- Description is optional\n\nThe :Description field is optional on vApps, and if not specified it plays havoc\nwith lazy loading -- the attribute stays in NonLoaded state, which in turn means\nthe object gets reloaded unneccessarily. This fixes that behaviour ... | ruby | chosen |
[
{
"from": "system",
"value": "Update the gemspec to use the new version of Peek\n"
},
{
"from": "human",
"value": "# coding: utf-8\n#\nGem::Specification.new do |spec|\n spec.name = \"peek-active_record\"\n spec.version = \"0.4.0\"\n spec.authors = [\"Will Farrington\"]\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove redundant after_sign_in method from registrations controller\n"
},
{
"from": "human",
"value": "class RegistrationsController < Devise::RegistrationsController\n\tbefore_filter :configure_permitted_parameters, if: :devise_controller?\n\n protected\n\n def c... | ruby | chosen |
[
{
"from": "system",
"value": "Add AC::Helpers module to jbuilder for api only apps\n"
},
{
"from": "human",
"value": "require 'rails/railtie'\nrequire 'jbuilder/jbuilder_template'\n\nclass Jbuilder\n class Railtie < ::Rails::Railtie\n initializer :jbuilder do |app|\n ActiveSupport.on_lo... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor namespace determination in ModelBuilder\n"
},
{
"from": "human",
"value": "module ROM\n # @api private\n class ModelBuilder\n attr_reader :options, :const_name, :namespace, :klass\n\n def self.[](type)\n case type\n when :poro then PORO\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove whitespace from response and limit its length\n"
},
{
"from": "human",
"value": "require 'unirest'\nrequire 'open-uri'\n\nmodule Cinch\n module Plugins\n class Ud\n include Cinch::Plugin\n\n match /(ud) (.+)/\n match /(help ud)$/, method: :... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Mock request to fix factory girl rake\"\n\nThis reverts commit 0295850f201ddcd07b6a34862cebe7a33493e908.\n\nBecause it broke our Heroku deployment.\n"
},
{
"from": "human",
"value": "namespace :factory_girl do\n desc \"Verify that all FactoryGirl factories... | ruby | chosen |
[
{
"from": "system",
"value": "Add a code reader to CodeError itself to be called on its subclasses' instances\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Discordrb\n # Custom errors raised in various places\n module Errors\n # Raised when authentication data i... | ruby | chosen |
[
{
"from": "system",
"value": "Make the duo config file readable\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: duo_unix\n# Recipe:: default\n#\n\ncase node[:platform]\nwhen \"ubuntu\"\n package \"libssl-dev\" do\n action :upgrade\n end\n\n package \"libpam-dev\" do\n action :up... | ruby | chosen |
[
{
"from": "system",
"value": "Create UploadingFaildError and use it\n"
},
{
"from": "human",
"value": "module Metalbird\n module Twitter\n class Publisher\n def initialize(auth)\n @client = auth.client\n end\n\n def publish(args)\n fail NotValidArgsError unless a... | ruby | chosen |
[
{
"from": "system",
"value": "Clear uniqueness and jobs before suite runs\n"
},
{
"from": "human",
"value": "RSpec.configure do |config|\n config.before(:each) do |example|\n if (sidekiq = example.metadata[:sidekiq])\n sidekiq = :fake if sidekiq == true\n Sidekiq::Testing.send(\"#{... | ruby | chosen |
[
{
"from": "human",
"value": "Add shared examples for 'an abstract type'"
},
{
"from": "gpt",
"value": "shared_examples_for 'an abstract type' do\n context 'called on a subclass' do\n let(:object) { Class.new(described_class) }\n\n it { should be_instance_of(object) }\n end\n\n context '... | ruby | chosen |
[
{
"from": "system",
"value": "Support any rails version between 5.0 + 7.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'cepa-health/version'\n\nGem::Specification.new do ... | ruby | chosen |
[
{
"from": "system",
"value": "Patch the Message initialize method so that it doesn't strip the initial input - trailing spaces can be meaningful.\n"
},
{
"from": "human",
"value": "module Mail\n class Message\n attr_accessor :url_part_number\n attr_accessor :rfc822_attachment # ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Sublime Text.app to build 3069.\n"
},
{
"from": "human",
"value": "cask :v1 => 'sublime-text-dev' do\n version '3067'\n sha256 '19fea5cc5dad89a31f1b751bb7c358ffd7acdc4bc7b8c5b957631743a523a261'\n\n url \"http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20... | ruby | chosen |
[
{
"from": "system",
"value": "Update Time Tracker Cask to use SHA256"
},
{
"from": "human",
"value": "class TimeTrackerMac < Cask\n url 'https://time-tracker-mac.googlecode.com/files/Time%20Tracker-1.3.13.zip'\n homepage 'https://code.google.com/p/time-tracker-mac'\n version '1.3.13'\n sha1 ... | ruby | chosen |
[
{
"from": "human",
"value": "Add Unifi Controller installer (v3.2.10)\n\nThis commit adds a new cask for the controller software for Ubiquiti\nUnifi Wireless Access Points.\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'unifi-controller' do\n version '3.2.10'\n sha256 'e5aae4e05bac3d6903f91ac5f... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing license specifier to Gem spec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"vagrant-cucumber/version\"\n\nGem::Specification.new do |s|\n s.name = \"vagrant-cucumber\"\n s... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.