conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update podspec for use of 0.3.2 Inline and 0.1.1 update.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'Specify'\n s.version = '0.1.0'\n s.license = 'MIT'\n s.platform = :ios, '5.0'\n s.summary = \"An Objective-C behaviour-driven dev... | ruby | chosen |
[
{
"from": "system",
"value": "Add a generic object definition for the show_list spec\n"
},
{
"from": "human",
"value": "describe GenericObjectController do\n include CompressedIds\n\n let!(:server) { EvmSpecHelper.local_miq_server(:zone => zone) }\n let(:zone) { FactoryGirl.build(:zone) }\n\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add skipped spec defininig special pages\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\nclass SpecialPagesIntegrationSpec < AcceptanceSpec\n describe \"viewing the recently_updated page\" do\n it \"can be viewed\" do\n skip\n Page.create(slug... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for outbound HTTP requests\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nrequire 'spec_helper'\nrequire 'securerandom'\n\nRSpec.describe LicenseFinder::PyPI do\n subject { described_class }\n\n describe \".definition\" do\n let(:sou... | ruby | chosen |
[
{
"from": "system",
"value": "Handle missing images when locating\n"
},
{
"from": "human",
"value": "require 'unit_helper'\nrequire 'pathname'\nrequire 'mountable_image_server/image_locator'\n\nclass TestImageLocator < UnitTestCase\n ImageLocator = MountableImageServer::ImageLocator\n\n def te... | ruby | chosen |
[
{
"from": "human",
"value": "Patch Minitest to stop it hijacking exit codes.\n\nMinitest hijacks the exit code set by cucumber.\nMinitest.autorun sets up a series of at_exit hooks that\ninterfere with it.\n\nIn certain circumstances, this will make `rake cucumber`\nexit with 0 every time, making our build p... | ruby | chosen |
[
{
"from": "system",
"value": "Update rspec-core dependency to allow v3\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'rspec/tabular/version'\n\nGem::Specification.new do |spec|\n s... | ruby | chosen |
[
{
"from": "system",
"value": "Build blob from provided data if not already a blob.\n"
},
{
"from": "human",
"value": "module Harfbuzz\n\n typedef :pointer, :hb_face_t\n\n attach_function :hb_face_create, [\n :hb_blob_t, # blob\n :uint, # index\n ], :hb_face_t\n att... | ruby | chosen |
[
{
"from": "system",
"value": "Add restart() method to Timer context to restart timing\n"
},
{
"from": "human",
"value": "require 'atomic'\nrequire 'hitimes'\n\nrequire 'metriks/meter'\nrequire 'metriks/histogram'\n\nmodule Metriks\n class Timer\n class Context\n def initialize(timer)\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add rake task to set up api clients\n\nClients need email addresses as they'll be users.\n"
},
{
"from": "gpt",
"value": "namespace :api_clients do\n desc \"Create an API client for a registered application\"\n task :create, [:name, :email, :application_name, :perm... | ruby | chosen |
[
{
"from": "system",
"value": "Correct backend_id for statistics pages\n\nThis is a quick fix for a statistics page with an incorrect\nbackend_id. The page is rendered by whitehall-frontend, but\nshould be rendered by government-frontend, like other stats\nannouncements.\n\nThere are ~1,000 other stats annou... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rails 4.0 and rails 4.1 for limited User.all\n"
},
{
"from": "human",
"value": "namespace :db do\n desc \"Fill database with sample data\"\n task populate: :environment do\n make_users\n make_microposts \n end\nend\n\ndef make_users\n admin = User.c... | ruby | chosen |
[
{
"from": "human",
"value": "Add a database populating task\n\nPopulates the database with Users using Faker\n"
},
{
"from": "gpt",
"value": "# For development populate the db with sample data\n# use:\n# rake db:reset\n# rake db:populate\n# rake test:prepare\n\nnamespace :db do\n desc 'Fill dat... | ruby | chosen |
[
{
"from": "system",
"value": "Hide error message when catch SIGINT and SIGTERM\n"
},
{
"from": "human",
"value": "module Slappy\n class Client\n attr_reader :start_time\n\n def initialize\n Slack.configure { |slack| slack.token = config.token }\n @callbacks = {}\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Set the auto_ids option off for Markdown.\n"
},
{
"from": "human",
"value": "module UsesThis\n class Site < Salt::Site\n\n attr_accessor :wares, :links\n\n def setup(path = nil, config = {})\n super\n\n @paths[:wares] = File.join(@paths[:source], 'd... | ruby | chosen |
[
{
"from": "system",
"value": "Fix date transformer to accept dates\n"
},
{
"from": "human",
"value": "require 'bigdecimal'\nrequire 'bigdecimal/util'\n\nmodule CloudPayments\n class Model < Hashie::Trash\n include Hashie::Extensions::IgnoreUndeclared\n\n DateTimeTransform = ->(v) { DateT... | ruby | chosen |
[
{
"from": "system",
"value": "Add sorted question link details\n"
},
{
"from": "human",
"value": "module SessionHelper\nend\n"
},
{
"from": "gpt",
"value": "module SessionHelper\n def find_question(recent_question, id)\n recent_questions.each do |question|\n if question.ques... | ruby | chosen |
[
{
"from": "system",
"value": "Use mediumtext in migration only if using mysql\n"
},
{
"from": "human",
"value": "class ChangeHandlerToMediumTextOnDelayedJobs < ActiveRecord::Migration\n def change\n change_column :delayed_jobs, :handler, :mediumtext\n end\nend\n"
},
{
"from": "gpt",... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused default timezone method from AR helpers\n\nWe decided to no longer log this with the AR based job adapters, so we\ncan remove the method safely as it's not used anywhere.\n\nReference: https://github.com/judoscale/judoscale-ruby/pull/64#discussion_r837548643\n"
... | ruby | chosen |
[
{
"from": "system",
"value": "Add dry-events to runtime deps\n"
},
{
"from": "human",
"value": "# coding: utf-8\nrequire File.expand_path('../lib/dry/monitor/version', __FILE__)\n\nGem::Specification.new do |spec|\n spec.name = 'dry-monitor'\n spec.version = Dry::Monitor::VERSIO... | ruby | chosen |
[
{
"from": "system",
"value": "Add Eric Monti as an author\n\nMonti did a great deal of the intial development and research for this\nlibrary.\n"
},
{
"from": "human",
"value": "require \"./lib/net/tns/gem_version\"\n\nGem::Specification.new do |s|\n s.name = \"net-tns\"\n s.version = Net::TNS:... | ruby | chosen |
[
{
"from": "system",
"value": "Use display logic when showing choice values\n"
},
{
"from": "human",
"value": "class Field::ChoiceSetPresenter < FieldPresenter\n delegate :choices, :selected_choice, :to => :field\n delegate :browse_similar_items_link, :content_tag, :to => :view\n\n def input(f... | ruby | chosen |
[
{
"from": "system",
"value": "Set notifications as processed after publish\n"
},
{
"from": "human",
"value": "module PushNotifications\n class Broadcast\n def initialize(push_notifications:)\n @push_notifications = push_notifications\n end\n\n def send\n return unless push_no... | ruby | chosen |
[
{
"from": "system",
"value": "Stop erasing data when auto-archiving procedures"
},
{
"from": "human",
"value": "class AutoArchiveProcedureWorker\n include Sidekiq::Worker\n\n def perform(*args)\n procedures_to_archive = Procedure.not_archived.where(\"auto_archive_on <= ?\", Date.today)\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Support x and X as roman numeric\n"
},
{
"from": "human",
"value": "module Amakanize\n module Filters\n class TrailingVolumeNumberDeletionFilter < BaseFilter\n # @note Override\n # @param string [String] e.g. `\"やはり俺の青春ラブコメはまちがっている。4\"`\n # @retur... | ruby | chosen |
[
{
"from": "system",
"value": "Add only one test for integration generator deprecation\n"
},
{
"from": "human",
"value": "# Generators are not automatically loaded by Rails\nrequire 'generators/rspec/integration/integration_generator'\nrequire 'support/generators'\n\nRSpec.describe Rspec::Generat... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unimplemented feature from gem description.\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"requirejs/rails/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Spe... | ruby | chosen |
[
{
"from": "system",
"value": "Create store before json-ld feature specs\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'JSON-LD hashes', type: :feature, inaccessible: true do\n include_context 'custom products'\n\n shared_examples 'it contains JSON-LD hash' do\n it 'co... | ruby | chosen |
[
{
"from": "system",
"value": "Allow all system calls in bisect test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Bummr::Bisecter do\n let(:std_out_err_bad_commit) {\n output = String.new\n output += \"mybadcommit is the first bad commit\\n\"\n output += \"bisect... | ruby | chosen |
[
{
"from": "system",
"value": "Add more specs to cover new features\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe MoneyRails::Monetizable do\n\n describe \"monetize\" do\n before :each do\n @product = Product.create(:price_cents => 3000, :discount => 150,\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Insert anaconda install script as remote file\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: universe-ubuntu\n# Recipe:: default\n#\n# Copyright (c) 2016 The Authors, All Rights Reserved.\n\ninclude_recipe 'apt::default'\n\nif node['platform_version'] == '1... | ruby | chosen |
[
{
"from": "system",
"value": "Add refactored smallest integer solution\n"
},
{
"from": "human",
"value": "# Smallest Integer\n\n# I worked on this challenge by myself.\n\n# smallest_integer is a method that takes an array of integers as its input\n# and returns the smallest integer in the array\... | ruby | chosen |
[
{
"from": "system",
"value": "Update the version to 0.1 because drawing the border of the control is a new feature."
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"EECircularMusicPlayerControl\"\n s.version = \"0.0.2\"\n s.summary = \"A control to play a m... | ruby | chosen |
[
{
"from": "system",
"value": "Order messages in descending order\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'bundler/setup'\n\nrequire 'sinatra'\nrequire 'sinatra/reloader' if development?\nrequire 'sinatra/cross_origin'\nrequire 'json'\nrequire 'data_mapper'\n\nrequire './co... | ruby | chosen |
[
{
"from": "system",
"value": "feat(BoolValues): Support blocks and custom label\n\n[Closes #14]\n"
},
{
"from": "human",
"value": "module ActiveAdminAddons\n DEFAULT_BOOLEAN_TRUE = '✔'\n DEFAULT_BOOLEAN_FALSE = '✗'\n\n module BoolValues\n class << self\n def bool_value(m... | ruby | chosen |
[
{
"from": "system",
"value": "Use username or orgname in retriever as available\n"
},
{
"from": "human",
"value": "module Carto::Metrics\n class UsageMetricsRetriever\n def initialize(cls)\n @cls = cls\n end\n\n def services\n @cls::VALID_SERVICES\n end\n\n def metrics\... | ruby | chosen |
[
{
"from": "system",
"value": "Create sectoin only if it has a preview version\n"
},
{
"from": "human",
"value": "class Pulitzer::CreatePostTypeFreeFormSections\n attr_accessor :post_type, :ffst, :old_label\n\n def initialize(ffst)\n self.post_type = ffst.post_type\n self.ffst = ffs... | ruby | chosen |
[
{
"from": "system",
"value": "Move exception handling inside the thread\n"
},
{
"from": "human",
"value": "require 'securerandom'\nrequire 'httparty'\n\nmodule Sessions\n class CollectorClient\n include HTTParty\n base_uri 'https://drill-collector.herokuapp.com'\n # base_uri 'http://lo... | ruby | chosen |
[
{
"from": "system",
"value": "Add prefixes for GLU and GLUT constants.\n"
},
{
"from": "human",
"value": "require \"test_utils\"\n\nrun_test(\n library_name: \"GL\",\n ffi_lib: \"GL\",\n prefixes: [\"gl\", \"GL_\"],\n blacklist: lambda { |name| name.end_with?(\"MESA\") || nam... | ruby | chosen |
[
{
"from": "system",
"value": "Use ruby-debug instean of debugger\n"
},
{
"from": "human",
"value": "require 'bundler'\nrequire 'rack/test'\nrequire 'test/unit'\nrequire 'debugger'\n\nBundler.setup(:default, :test)\n\nENV[\"RAILS_ENV\"] = \"test\"\n\n$LOAD_PATH.unshift(File.dirname(__FILE__))\n$L... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec description and summary\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/active_model/attribute_changed_specification/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = 'activemodel-attribute_changed_speci... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for searching DuckDuckGo\n"
},
{
"from": "gpt",
"value": "require 'test/unit'\nrequire 'duckduckgo'\n\nclass TestSearch < Test::Unit::TestCase\n\n TEST_SEARCH_PHRASE = 'apples'\n\n def test_search\n\n assert_nothing_raised do\n results = DuckDuckGo... | ruby | chosen |
[
{
"from": "system",
"value": "Write gem summary and description.\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nGem::Specification.new do |spec|\n spec.name = \"threadlocal\"\n spec.version = \"0.0.1\"\n spec.authors = [\"Martin Schürrer\"]\n spec.email =... | ruby | chosen |
[
{
"from": "system",
"value": "Return 0.0 if no ratings.\n"
},
{
"from": "human",
"value": "module ActiveRecord\n module Acts\n module Rateable\n def self.included(base)\n base.extend(ClassMethods)\n end\n \n module ClassMethods\n def acts_as_rateable(options... | ruby | chosen |
[
{
"from": "system",
"value": "Adjust day caluculation to be clearer\n"
},
{
"from": "human",
"value": "module Lita\n # Returns cards that have been in Review column for more than two days\n class FeatureRequests\n\n SEVEN_DAYS = (60*60*168)\n\n def initialize(trello_client)\n @trell... | ruby | chosen |
[
{
"from": "system",
"value": "Allow blocks to be passed to foreground/background methods that will be executed in the context of the rack builder when starting a server\n"
},
{
"from": "human",
"value": "require 'sinatra/base'\nrequire 'sinatra/namespace'\n\nmodule HttpDouble\n class Base < Sin... | ruby | chosen |
[
{
"from": "system",
"value": "Add interface only if it is not already added.\n"
},
{
"from": "human",
"value": "module RamlPoliglota\n module Model\n\n class ClassMeta\n\n def initialize\n yield self if block_given?\n end\n\n attr_accessor :namespace, :name, :documentat... | ruby | chosen |
[
{
"from": "system",
"value": "Put in an improved Error inheritance hierarchy."
},
{
"from": "human",
"value": "module Pacer\n class ElementNotFound < StandardError\n end\n\n class ElementExists < StandardError\n end\n\n class UnsupportedOperation < StandardError\n end\nend\n\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Use idiomatic param names in Presenter\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule Subway\n\n class Presenter\n include AbstractType\n include Concord.new(:data)\n include Adamantium::Flat\n\n def self.group(name, klass = nil)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the Game's primitive obsession\n"
},
{
"from": "human",
"value": "module TicTacToe\n class Game\n attr_accessor :current_mark, :board\n\n NEXT_PLAYER = {\"X\" => \"O\",\n \"O\" => \"X\"}\n\n def self.make_new_game(board)\n game =... | ruby | chosen |
[
{
"from": "system",
"value": "Add cleaning specialized keys test\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\ndescribe 'Redis::Breadcrumb' do\n before do\n Redis::Breadcrumb.redis = MockRedis.new\n end\n\n it 'will clean up currently defined keys' do\n class CleanUpCurren... | ruby | chosen |
[
{
"from": "system",
"value": "Make compatible with rails 3 too.\n"
},
{
"from": "human",
"value": "module UnicodeOverride\n\n\n module String\n def force_utf8!\n return self if encoding == \"UTF-8\"\n e = encoding\n force_encoding('UTF-8')\n force_encoding(e) unless valid... | ruby | chosen |
[
{
"from": "system",
"value": "Use Nokogiri for XML parsing in development so we can test JRuby\n"
},
{
"from": "human",
"value": "$:.push File.expand_path('../lib', __FILE__)\n\nrequire 'coveralls/cobertura/version'\n\n# Gem description and dependencies:\nGem::Specification.new do |s|\n s.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove redundant total_on_hand declaration in api\n\nThis renders small.json.jbuilder as a partial which already has\ntotal_on_hand.\n"
},
{
"from": "human",
"value": "json.cache! [I18n.locale, Spree::StockLocation.accessible_by(current_ability), variant] do\n json... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce production footprint of gem\n"
},
{
"from": "human",
"value": "module AnyLogin\n class ApplicationController < ActionController::Base\n\n if AnyLogin.enabled\n\n if AnyLogin.http_basic_authentication_enabled\n http_basic_authenticate_with :nam... | ruby | chosen |
[
{
"from": "system",
"value": "Fix converted strings file format\n"
},
{
"from": "human",
"value": "require \"rexml/document\"\n\noutput = \"./output.strings\"\n\n# no input\ninput = ARGV[0]\nif input.nil? || input.empty?\n\tprintf(\"No input file.\\n\")\n\texit(0)\nend\n\n# check if file is exis... | ruby | chosen |
[
{
"from": "system",
"value": "Update Homebrew file for 1.0.2\n"
},
{
"from": "human",
"value": "class TarsnapGui < Formula\n desc \"Cross-platform GUI front-end for the Tarsnap command-line client.\"\n homepage \"https://github.com/Tarsnap/tarsnap-gui/wiki/Tarsnap\"\n url \"https://github.com... | ruby | chosen |
[
{
"from": "system",
"value": "Update urls to use single quotes and env vars\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire 'hal_api/representer'\n\nclass Api::BaseRepresenter < HalApi::Representer\n curies(:prx) do\n [{\n name: :prx,\n href: \"http://#{profile_host}/... | ruby | chosen |
[
{
"from": "system",
"value": "Use GET for getting publisher balance\n"
},
{
"from": "human",
"value": "# Query pending balance from Eyeshade\nclass PublisherBalanceGetter < BaseApiClient\n attr_reader :publisher\n\n def initialize(publisher:)\n @publisher = publisher\n end\n\n def perform... | ruby | chosen |
[
{
"from": "system",
"value": "[BUG] Fix method name for negative case\n"
},
{
"from": "human",
"value": "module RSpec\n module JsonMatcher\n class AbstractMatcher\n attr_reader :expected, :parsed\n\n def initialize(expected = nil)\n @expected = expected\n end\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Replace 'missing' filter with 'must_not/exists'\n\n> missing query has been removed because it can be advantageously\n> replaced by an exists query inside a must_not clause\n"
},
{
"from": "human",
"value": "module QueryComponents\n class UserFilter < BaseComponent... | ruby | chosen |
[
{
"from": "system",
"value": "Write in binary file mode\n"
},
{
"from": "human",
"value": "require 'pathname'\nrequire 'fileutils'\n\n# This is good for use in deveopment\n\nmodule RemoteFiles\n class FileStore < AbstractStore\n\n def directory\n @directory ||= Pathname.new(options[:dir... | ruby | chosen |
[
{
"from": "system",
"value": "Add to_s for readability of results of specs\n"
},
{
"from": "human",
"value": "module Serverspec\n module Type\n class Service\n def initialize name\n @name = name\n end\n\n def enabled?\n backend.check_enabled(nil, @name)\n en... | ruby | chosen |
[
{
"from": "system",
"value": "Add subscription_ajax to initializer for precompilation\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Version of your assets, change this if you want to expire all your assets.\nRails.application.config.assets.ve... | ruby | chosen |
[
{
"from": "human",
"value": "Add two rspec tests for review controller. Run successfully.\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe ReviewsController do\n before :each do\n User.destroy_all\n Review.destroy_all\n end\n it \"responds successfully with an HTTP 20... | ruby | chosen |
[
{
"from": "system",
"value": "Add a license to our gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/scrolls/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Curt Micol\"]\n gem.email = [\"asenchi@asenc... | ruby | chosen |
[
{
"from": "system",
"value": "Remove ancestry from dev gems(1)\n"
},
{
"from": "human",
"value": "$:.push File.expand_path('../lib', __FILE__)\n\n# Maintain your gem's version:\nrequire 'seo_cms/version'\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do |s|\n s.nam... | ruby | chosen |
[
{
"from": "system",
"value": "Use anything instead of a specific value\n\nThis way the tests don't depend on the board mark representations\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe TicTacToe::Game do\n let(:console) { mock_console }\n let(:board) { mock_board }\n l... | ruby | chosen |
[
{
"from": "human",
"value": "Implement initial tests for index.html\n\nThis test will check if the head and body tags are in the html.\n"
},
{
"from": "gpt",
"value": "require 'nokogiri'\n\ndescribe \"html output\" do \n before :all do\n html_file = File.open(\"index.html\")\n @page = Nok... | ruby | chosen |
[
{
"from": "system",
"value": "Define a namespace method for generated subclasses.\n"
},
{
"from": "human",
"value": "module FeideeUtils\n class Record\n module Namespaced\n module ClassMethods\n attr_reader :child_classes\n\n def inherited(child_class)\n @child_cl... | ruby | chosen |
[
{
"from": "system",
"value": "Add POST and DELETE methods to rest client wrapper\n"
},
{
"from": "human",
"value": "require 'moltin/api/request'\n\nclass Moltin::Api::RestClientWrapper\n\n def initialize(path, custom_headers = {})\n @instance = RestClient::Resource.new(\n Moltin::Api::R... | ruby | chosen |
[
{
"from": "system",
"value": "Return actual instances of Mutant.\n"
},
{
"from": "human",
"value": "module MutantSchoolAPIModel\n class Mutant\n\n def self.base_url\n 'https://mutant-school.herokuapp.com/api/v1/mutants'\n end\n\n # Get all mutants from the backend\n # mutants =... | ruby | chosen |
[
{
"from": "system",
"value": "Change iTerm2 license to GPL\n\nSee: http://iterm2.com/ or https://github.com/gnachman/iTerm2/blob/master/README.license"
},
{
"from": "human",
"value": "cask :v1 => 'iterm2' do\n # note: \"2\" is not a version number, but indicates a different vendor\n version '2... | ruby | chosen |
[
{
"from": "system",
"value": "Add more sync variation methods\n\nAdded a method to sync all entries, and a method sync only autosyncable entries. This allows one-off sync calls instead of continuously polling syncs.\n"
},
{
"from": "human",
"value": "module Stagehand\n module Staging\n modul... | ruby | chosen |
[
{
"from": "system",
"value": "Store ancestor tree in deserialize context rather than just reference to immediate parent.\n"
},
{
"from": "human",
"value": "class ViewModel\n class DeserializeContext\n attr_accessor :updated_associations, :parent_ref\n\n def initialize(parent_ref: nil)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.4.4.0 to 0.4.5.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'schema'\n s.summary = \"Primitives for schema and structure\"\n s.version = '0.4.4.0'\n s.description = '... | ruby | chosen |
[
{
"from": "system",
"value": "Use events layout for guest views.\n"
},
{
"from": "human",
"value": "class GuestsController < ApplicationController\n skip_before_filter :require_yammer_login\n\n def new\n @guest = Guest.new\n end\n\n def create\n log_in_guest\n return_to_previous_pag... | ruby | chosen |
[
{
"from": "system",
"value": "Remove exposed items from heroes controller\n"
},
{
"from": "human",
"value": "class HeroesController < ApplicationController\n expose(:campaign)\n expose(:heroes) { campaign.heroes }\n expose(:hero, attributes: :hero_params)\n before_action :authenticate_user!,... | ruby | chosen |
[
{
"from": "system",
"value": "Use param_key to generate the event type on event register\n"
},
{
"from": "human",
"value": "module Webhook\n class EventRecordSerializer < ActiveModel::Serializer\n delegate :attributes, to: :object\n end\n\n class EventRegister\n attr_accessor :event\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add More Details To Montion API Index\n"
},
{
"from": "human",
"value": "class MotionSerializer < ActiveModel::Serializer\n attributes :id, :amendment_text\n\n\thas_one :motion_type\nend\n"
},
{
"from": "gpt",
"value": "class MotionSerializer < ActiveMo... | ruby | chosen |
[
{
"from": "system",
"value": "STar: Remove symlinks conflicting with OS X tar\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Star < Formula\n url 'ftp://ftp.berlios.de/pub/star/star-1.5.1.tar.bz2'\n homepage 'http://cdrecord.berlios.de/old/private/star.html'\n md5 'f9a28f837026... | ruby | chosen |
[
{
"from": "human",
"value": "Build a pseudo-code feature test for users requesting a mentor\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nfeature 'User can request a mentor' do\n\n xscenario 'a logged in user user can submit a question and request for a mentor' do\n\n # User req... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Spec Tests Based on Comments\n\nSome formatting changes based on review comments.\n"
},
{
"from": "human",
"value": "describe FileDepotSwift do\n let(:uri) { \"swift://server.example.com/bucket\" }\n let(:merged_uri) { \"swift://server.example.com:5678/bucket?... | ruby | chosen |
[
{
"from": "system",
"value": "Make name lowercase and simplify gem summary\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\nGem::Specification.new do |s|\n require 'sheldon/sheldon'\n\n s.name = 'Sheldon'\n s.version = ::Sheldon::VERSION\n s.dat... | ruby | chosen |
[
{
"from": "system",
"value": "Add nokogiri to runtime dependencies.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/smiling/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Junya Ogura\"]\n gem.email = [\"jun... | ruby | chosen |
[
{
"from": "system",
"value": "Raise error when trying to install docker on centos8\n"
},
{
"from": "human",
"value": "module VagrantPlugins\n module DockerProvisioner\n module Cap\n module Redhat\n module DockerInstall\n def self.docker_install(machine)\n mach... | ruby | chosen |
[
{
"from": "system",
"value": "Include gem dependency for johnson\n\nNot automatically pulled in by Johnson prerelease. Reportedly a Rubygems bug\n"
},
{
"from": "human",
"value": "require 'lib/harmony'\n\nGem::Specification.new do |s|\n s.name = \"harmony\"\n s.summary ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Rspec => RSpec deprecation warning\n"
},
{
"from": "human",
"value": "$:.unshift(File.expand_path('../../lib', __FILE__))\n\nrequire 'gauges'\n\nrequire 'pathname'\nrequire 'logger'\n\nProjectRootPath = Pathname(__FILE__).dirname.join('..').expand_path\nlog_path... | ruby | chosen |
[
{
"from": "system",
"value": "Use empty lines between method definitions\n"
},
{
"from": "human",
"value": "require 'simplecov'\nrequire 'coveralls'\n\nSimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]\n\nSimpleCov.start do\n add_filter '/spec/'\n mi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in CSV header\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'csv'\n\nclass CourseStudentsCsvBuilder\n def initialize(course)\n @course = course\n end\n\n def generate_csv\n csv_data = [CSV_HEADERS]\n courses_users.e... | ruby | chosen |
[
{
"from": "human",
"value": "Add a file uploader via carrierwave\n"
},
{
"from": "gpt",
"value": "# encoding: utf-8\n\nclass EvidenceFileUploader < CarrierWave::Uploader::Base\n\n # Include RMagick or ImageScience support:\n # include CarrierWave::RMagick\n # include CarrierWave::ImageScience... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce class method calls on worker's instance in server middleware\n"
},
{
"from": "human",
"value": "module Sidekiq\n module Middleware\n module Server\n class UniqueJobs\n\n def call(worker_instance, item, queue)\n manual = worker_instanc... | ruby | chosen |
[
{
"from": "system",
"value": "Fix double escape in dpkg version check.\n\nA previous commit 8f5ad02 added an extra escape to the version check for the Debian family of operating systems which broke the version check. This commit fixes that part of the commit.\n"
},
{
"from": "human",
"value": "c... | ruby | chosen |
[
{
"from": "human",
"value": "Add simple test for Secrets object.\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nrequire_relative \"spec_helper\"\nrequire_relative \"../lib/impasta/secrets\"\nrequire_relative \"../lib/impasta/spies/infiltrate\"\n\ntarget = Array\nspy = Impasta.... | ruby | chosen |
[
{
"from": "system",
"value": "Add ruby-debug to the gemspec"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n$:.unshift File.expand_path('../lib', __FILE__)\nrequire 'gem_release/version'\n\nGem::Specification.new do |s|\n s.name = \"gem-release\"\n s.version = GemRelease::VE... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce size of the gem by only including the necessary files via gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$LOAD_PATH.push File.expand_path('../lib', __FILE__)\n\nrequire 'pronto/fasterer/version'\n\nGem::Specification.new do |s|\n s.nam... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce number of items tested\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\n$count = 0\n\ndescribe Moe::Sequence::MetadataItem do\n let(:count) { $count += 1 }\n let(:name) { \"metadata_item_test#{count}\" }\n let!(:setup) { Moe::Se... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the dropped coverage caused by lograge\n\nNormally, we shouldn't do this. However, as this is the lograge\nrecommended approach, I have decided to turn off the coverage on these\ntwo methods rather than test them.\n"
},
{
"from": "human",
"value": "class Applic... | ruby | chosen |
[
{
"from": "system",
"value": "Improve lame message when you're not an admin\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n include GDS::SSO::ControllerMethods\n protect_from_forgery\n before_filter :authenticate_user!\n before_filter :set_current_us... | ruby | chosen |
[
{
"from": "system",
"value": "Change ALPHA label to BETA\n\nBecause for manuals published on GOV.UK, the content is accurate and complete.\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n include Slimmer::Headers\n\n # Prevent CSRF attacks by raising an... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.