conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add RFC 141 healthcheck endpoints\n\nOnce govuk-puppet has been updated, the old endpoint can be removed.\n\nSee the RFC for more details.\n" }, { "from": "human", "value": "Rails.application.routes.draw do\n # For details on the DSL available within this file, see...
ruby
chosen
[ { "from": "system", "value": "Add route to charity page.\n" }, { "from": "human", "value": "Clapp::Application.routes.draw do\n get 'templates/:path.html' => 'templates#page', :constraints => { :path => /.+/ }, :as => 'templates_show'\n\n scope :templates do\n get '' => 'home#index', :as =>...
ruby
chosen
[ { "from": "system", "value": "Allow bulk_job to take a pre_commit hook, just a proc that it calls before calling commit\n" }, { "from": "human", "value": "module Pacer::Routes\n\n # Additional iteration methods that allow for rapid data\n # manipulation in transactional graphs. Bulk operations...
ruby
chosen
[ { "from": "system", "value": "Add support for bandcamp tracks\n" }, { "from": "human", "value": "module Onebox\n module Engine\n class BandCampOnebox\n include Engine\n include StandardEmbed\n\n matches_regexp(/^https?:\\/\\/.*\\.bandcamp\\.com\\/album\\//)\n always_https...
ruby
chosen
[ { "from": "system", "value": "Stop to raise exception when the cluster was already up & running.\n" }, { "from": "human", "value": "module Wakame\n module Actions\n class LaunchCluster < Action\n def initialize\n end\n\n def run\n if service_cluster.status == Service::S...
ruby
chosen
[ { "from": "system", "value": "Refactor PathsInitializer for light environments.\n" }, { "from": "human", "value": "\nOntohub::Application.configure do |app|\n c = app.config\n\n if Rails.env.test?\n c.data_root = Rails.root.join('tmp','data')\n else\n c.data_root = Rails.root.join('data...
ruby
chosen
[ { "from": "system", "value": "Allow sentry to capture POST data\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nrequire 'concurrent'\n\nRails.application.tap do |app|\n pool = ::Concurrent::ThreadPoolExecutor.new(max_queue: 10)\n\n Raven.configure do |config|\n config.sa...
ruby
chosen
[ { "from": "system", "value": "Include all lib content as gem files\n" }, { "from": "human", "value": "Gem::Specification.new do |s|\n s.name = 'tooth'\n s.version = '0.2.1'\n s.date = '2013-12-11'\n s.description = 'Simple page objects for Capybara. All tooth-generated meth...
ruby
chosen
[ { "from": "system", "value": "Change rspec test for detect valid class\n\nUse '.to be_an_instance_of' instead of Nul testing.\n\nSigned-off-by: Seapagan <4ab1b2fdb7784a8f9b55e81e3261617f44fd0585@gmail.com>\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe Confoog do\n\n subje...
ruby
chosen
[ { "from": "system", "value": "Remove unused spec (merge two photo)\n" }, { "from": "human", "value": "require_relative '../lib/resizer.rb'\n\nRSpec.describe 'ImageResizer lib' do\n it 'can set parameters properly' do\n resizer = ImageResizer.new\n resizer.swidth = 350\n resizer.sheight...
ruby
chosen
[ { "from": "system", "value": "Disable syntrax tests on GitHub" }, { "from": "human", "value": "require_relative 'test_helper'\n\nSYNTRAX_CODE = <<-eos\nindentstack(10,\n line(opt('-'), choice('0', line('1-9', loop(None, '0-9'))),\n opt('.', loop('0-9', None))),\n\n line(opt(choice('e', 'E')...
ruby
chosen
[ { "from": "system", "value": "Fix a typo in spec\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe SchemaParser do\n\n describe '#parse' do\n it 'returns a hash' do\n hash = SchemaParser.new(schema_file).parse\n expect(hash).to be_a(Hash)\n end\n end\n\n con...
ruby
chosen
[ { "from": "system", "value": "Make folder writeable for Travis\n" }, { "from": "human", "value": "module Reactify\n module Specs\n module Generators\n def file_in_dummy_app(path)\n File.expand_path path, dummy_app_path\n end\n\n # These methods allow us to copy the dumm...
ruby
chosen
[ { "from": "system", "value": "Add therubyracer.gem to gemspec and remove debbuger\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'pacproxy/version'\n\nGem::Specification.new do |spec...
ruby
chosen
[ { "from": "system", "value": "Add missing attribute markup_language to business unit factory.\n" }, { "from": "human", "value": "# Read about factories at https://github.com/thoughtbot/factory_girl\n\nFactoryGirl.define do\n factory :ecm_staff_business_unit, class: Ecm::Staff::BusinessUnit do\n...
ruby
chosen
[ { "from": "system", "value": "Update Podspec to version 1.0.3\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = \"ARCL\"\n s.version = \"1.0.2\"\n s.summary = \"ARKit + CoreLocation combines the high accuracy of AR with the scale of GPS data.\"\n s.homepage...
ruby
chosen
[ { "from": "system", "value": "Fix Quotes in Comments Factory to Please Rubocop\n\n" }, { "from": "human", "value": "FactoryGirl.define do\n factory :comment do\n body \"MyText\"\n bug nil\n author nil\n end\nend\n" }, { "from": "gpt", "value": "FactoryGirl.define do\n fac...
ruby
chosen
[ { "from": "system", "value": "Add test on environment setup\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe YoolkApi do\n context \"#with_client\" do\n it \"use that client within that block\" do\n YoolkApi.client = nil\n\n YoolkApi.with_client(domain_name: 'yp...
ruby
chosen
[ { "from": "system", "value": "Change to fix Rails 6 view context setup deprecation warnings\n" }, { "from": "human", "value": "require 'action_view'\n\nclass DummyView < ActionView::Base\n module FakeRequest\n class Request\n attr_accessor :path, :fullpath, :protocol, :host_with_port\n ...
ruby
chosen
[ { "from": "system", "value": "Update App specs to work with Swt backend\n\nThis commit deletes a spec that describes a behavior that doesn't\nactually occur in the code.\n" }, { "from": "human", "value": "require \"swt_shoes/spec_helper\"\n\ndescribe Shoes::Swt::App do\n class MockPoint\n de...
ruby
chosen
[ { "from": "system", "value": "Remove [] method, and use fetch directly instead.\n" }, { "from": "human", "value": "module Mongoid\n module I18n\n class LocalizedField < ::Hash\n include Mongoid::Fields::Serializable\n\n # Deserialize type\n def deserialize(object)\n rep...
ruby
chosen
[ { "from": "system", "value": "Fix failing tests by accounting for differences in dumping of Array to YAML in Psych vs Syck\n" }, { "from": "human", "value": "require 'yaml'\n\nmodule PaperTrail\n module Serializers\n module YAML\n extend self # makes all instance methods become module m...
ruby
chosen
[ { "from": "system", "value": "Handle the stack going away\n\nbefore getting the last event\n" }, { "from": "human", "value": "module StackMaster\n module Commands\n class Delete\n include Command\n include StackMaster::Prompter\n\n def initialize(region, stack_name)\n @...
ruby
chosen
[ { "from": "human", "value": "Add general mixin test for Rutty::Actions (individual actions have their own tests)\n" }, { "from": "gpt", "value": "require 'helper'\n\nclass TestActions < Test::Unit::TestCase\n context \"The Rutty::Actions module\" do\n should \"mix in its methods\" do\n ...
ruby
chosen
[ { "from": "system", "value": "Update podpec version to 0.2.0\n" }, { "from": "human", "value": "#\n# Be sure to run `pod lib lint FLUX.podspec' to ensure this is a\n# valid spec before submitting.\n#\n# Any lines starting with a # are optional, but their use is encouraged\n# To learn more about ...
ruby
chosen
[ { "from": "system", "value": "Add a (not) secret key base for rails 4\n" }, { "from": "human", "value": "# Be sure to restart your server when you modify this file.\n\n# Your secret key for verifying the integrity of signed cookies.\n# If you change this key, all old signed cookies will become i...
ruby
chosen
[ { "from": "system", "value": "Upgrade Mono-MDK package to 4.2.1.102 and switch to universal/x64\n\n* Upgrade to latest upstream version of mono (4.2.1.102)\n* Switch to the Universal Package instead of the 32-bit/x86 version\n* pkgutil removes both the MDK and MRE which are installed by this package\n* shas...
ruby
chosen
[ { "from": "system", "value": "Update Playback.app to version 1.3.0\n" }, { "from": "human", "value": "cask :v1 => 'playback' do\n version '1.2.0'\n sha256 '442d69ab0e08531bfda5ed66f9204243f286a14839c3351cef06c75f1d072eb7'\n\n # github.com is the official download host per the vendor homepage\...
ruby
chosen
[ { "from": "system", "value": "Change over to configurable Airbrake host for Errbit\n" }, { "from": "human", "value": "Airbrake.configure do |config|\n config.api_key = ENV['AIRBRAKE_API_KEY']\nend\n" }, { "from": "gpt", "value": "Airbrake.configure do |config|\n config.api_key = EN...
ruby
chosen
[ { "from": "system", "value": "Use all parameters that is contained in response from CloudConductor because already rejected parameters with [computed] annotation\n" }, { "from": "human", "value": "require 'readline'\nrequire 'json'\n\nmodule CloudConductorCli\n module Helpers\n module Input\...
ruby
chosen
[ { "from": "human", "value": "Create specs for discover controller\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\ndescribe DiscoverController do\n before do\n @recommended = create(:project, recommended: true)\n @near = create(:project, address: 'Kansas City, MO', latitude: 40.7...
ruby
chosen
[ { "from": "system", "value": "Revert \"changes for support 1.8.7\"\n\nThis reverts commit 38402c1563ee526f280198d3da2c8c17086ef863.\n" }, { "from": "human", "value": "$: << File.dirname(__FILE__)\n\nENV['RACK_ENV'] ||= 'test'\n\nrequire 'rack/test'\nrequire 'rspec'\nrequire 'app'\n\ndescribe Ima...
ruby
chosen
[ { "from": "system", "value": "Test if the board is printed correctly\n" }, { "from": "human", "value": "describe \"Square\" do\n let(:square1) { make_square 0, 0 }\n let(:square2) { make_square 7, 7 }\n let(:square3) { make_square 0, 0 }\n\n it \"can be converted to an array\" do\n square...
ruby
chosen
[ { "from": "system", "value": "Implement the old behavior with new syntax\n\nIn other words, when specifying a regex using `:format` we'll convert it\ninternally to a rule using `:with`.\n\nIn other words, the following:\n\n validates :email, :email_address => {:format => /.+@.+/}\n\nis equivalent to this...
ruby
chosen
[ { "from": "system", "value": "Simplify git deploy tag names\n" }, { "from": "human", "value": "after 'deploy:restart', 'git:push_deploy_tag'\n\nnamespace :git do\n task :push_deploy_tag do\n user = `git config --get user.name`.chomp\n email = `git config --get user.email`.chomp\n\n pu...
ruby
chosen
[ { "from": "system", "value": "Clear rails request url cache\n" }, { "from": "human", "value": "module Pjax\n extend ActiveSupport::Concern\n\n included do\n layout proc { |c| pjax_request? ? pjax_layout : 'application' }\n helper_method :pjax_request?\n\n before_filter :strip_pjax_par...
ruby
chosen
[ { "from": "system", "value": "Add version to AEXML dependency\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n\n s.name = \"Kml.swift\"\n s.version = \"0.2.2\"\n s.summary = \"Simple KML parser for Swift.\"\n\n s.homepage = \"https://github.com/asus4/Kml.swift\...
ruby
chosen
[ { "from": "system", "value": "Fix tests for adapting changes to Life class\n" }, { "from": "human", "value": "require 'minitest/unit'\nrequire '../lib/Life.rb'\n\nMiniTest::Unit.autorun\n\nDEAD = 0\nALIVE = 1\n\nclass TestLife < MiniTest::Unit::TestCase\n def setup\n @life = Life.new 0\n en...
ruby
chosen
[ { "from": "system", "value": "Refactor logic in Process.clock_gettime spec\n" }, { "from": "human", "value": "module ProcessSpecs\n def self.clock_constants\n clocks = []\n\n platform_is_not :windows, :solaris do\n clocks += Process.constants.select { |c| c.to_s.start_with?('CLOCK_')...
ruby
chosen
[ { "from": "system", "value": "Disable campfire notification for now." }, { "from": "human", "value": "# Project-specific configuration for CruiseControl.rb\nProject.configure do |project|\n # Send email notifications about broken and fixed builds (default: send to nobody)\n project.email_notif...
ruby
chosen
[ { "from": "human", "value": "Create shared example for update operation\n" }, { "from": "gpt", "value": "shared_examples \"an update operation\" do\n\n let(:resource_name) { described_class.to_s.gsub(/^.*::/, '').downcase }\n\n it 'with valid params' do\n VCR.use_cassette(\"#{resource_name}...
ruby
chosen
[ { "from": "human", "value": "Add spec coverage for most of UIAutomation::Element." }, { "from": "gpt", "value": "require 'spec_helper'\n\ndescribe UIAutomation::Element do\n let(:driver) { double }\n let(:parent) { double }\n let(:window) { double }\n\n subject { UIAutomation::Element.new(dr...
ruby
chosen
[ { "from": "system", "value": "Set debian 8 default database to mdb\n" }, { "from": "human", "value": "Puppet::Type.newtype(:openldap_database) do\n @doc = \"Manages OpenLDAP BDB and HDB databases.\"\n\n ensurable\n\n newparam(:suffix, :namevar => true) do\n desc \"The default namevar.\"\n ...
ruby
chosen
[ { "from": "human", "value": "Create a new view to support env-filtered recipes\n\n(among other things)\n\nThis was done to consolidate version info concatenation\nand table join information in one place, since many\nqueries require this information." }, { "from": "gpt", "value": "require File.ex...
ruby
chosen
[ { "from": "human", "value": "Add Circus Ponies Notebook v4.0.7v759\n" }, { "from": "gpt", "value": "cask :v1 => 'notebook' do\n version '4.0.7v759'\n sha256 'e7d8f89090c51959eda0b1fd1dd1c5446bcd90a0a428937bb4ff19831187ddf4'\n\n url \"http://www.circusponies.com/availabledownloads/NoteBook/Cir...
ruby
chosen
[ { "from": "human", "value": "Add check for graylog2 aliveness\n" }, { "from": "gpt", "value": "#!/usr/bin/env ruby\n#\n# Graylog2 Server Alive Check\n# ===\n#\n# This plugin checks if the Graylog2 Server is alive using the REST API\n#\n# Copyright 2015 Swift Networks\n#\n# Released under the sam...
ruby
chosen
[ { "from": "human", "value": "Add an ActiveRecord model to test against.\n" }, { "from": "gpt", "value": "class Block < ActiveRecord::Base\n def do_work(*args)\n block = Block.first\n block.name = \"Charlie\"\n block.color = \"Black\"\n block.save\n end\nend\n\nclass CreateBlocks < ...
ruby
chosen
[ { "from": "system", "value": "Check host from an env var instead of hard coded." }, { "from": "human", "value": "class MediaController < ApplicationController\n skip_before_filter :require_signin_permission!\n before_filter :authenticate_if_private\n\n def download\n unless asset_present_a...
ruby
chosen
[ { "from": "system", "value": "Test that '/players' returns existing players\n" }, { "from": "human", "value": "require 'rails_helper'\n\ndescribe API::V1 do\n players_path = \"/api/v1/players\"\n describe \"GET #{players_path}\" do\n it \"returns an empty array of players\" do\n get pl...
ruby
chosen
[ { "from": "system", "value": "Update podspec from 0.1.1 to 0.1.2\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = 'Swizzlean'\n s.version = '0.1.1'\n s.summary = 'A quick and lean way to swizzle methods for your Objective-C development needs.'\n s.homepage...
ruby
chosen
[ { "from": "system", "value": "Implement show, edit & update routes for user\n" }, { "from": "human", "value": "class UsersController < ApplicationController\n\tdef new\n\t\t@user = User.new\n\tend\n\n\tdef create\n\t\t@user = User.new(user_params)\n\t\tif @user.save\n\t\t\tsession[:user_id] = @u...
ruby
chosen
[ { "from": "system", "value": "Update destroy method with a redirect to new user\n" }, { "from": "human", "value": "class UserController < ApplicationController\n\n def index\n @users = User.all\n end\n\n def create\n user = User.new(user_params)\n if user.save\n session[:user_id...
ruby
chosen
[ { "from": "system", "value": "Add timed_out state to filters\n" }, { "from": "human", "value": "module VotingApp\n class RequestsController < ApplicationController\n\n def index\n if params[:time] && params[:category]\n time = params[:time]\n category = params[:category] ...
ruby
chosen
[ { "from": "system", "value": "Call load_data on update as well. We need this if there is a validation error during update.\n" }, { "from": "human", "value": "class Admin::VariantsController < Admin::BaseController\n resource_controller\n belongs_to :product\n before_filter :load_data, :only ...
ruby
chosen
[ { "from": "system", "value": "Make the field Events differences mediumtext\n" }, { "from": "human", "value": "class CreateLogBookEvents < ActiveRecord::Migration\n def self.up\n create_table :log_book_events do |t|\n t.integer :historian_id\n t.string :historian_type\n t.integ...
ruby
chosen
[ { "from": "system", "value": "Add missing tests for task completion.\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe Task do\n let(:task) { Task.new }\n\n describe \"that is open\" do\n it \"knows that it's open\" do\n task.open?.should == true\n end\n\n it \...
ruby
chosen
[ { "from": "system", "value": "Update Check specs to work with Swt backend\n" }, { "from": "human", "value": "require 'shoes/spec_helper'\n\ndescribe Shoes::Check do\n subject { Shoes::Check.new(parent, input_opts, input_block) }\n let(:input_block) { Proc.new {} }\n let(:input_opts) { {} }\n ...
ruby
chosen
[ { "from": "system", "value": "Use s.version to DRY up podspec\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = 'SWXMLHash'\n s.version = '3.0.1'\n s.summary = 'Simple XML parsing in Swift'\n s.homepage = 'https://github.com/drmohundro/SWXMLHash'\n s.licen...
ruby
chosen
[ { "from": "system", "value": "Use symbol keys in ProjectConcern\n" }, { "from": "human", "value": "module Neighborly::Api::ProjectConcern\n extend ActiveSupport::Concern\n\n included do\n %i(created_at expires_at online_date).each do |name|\n # class << self\n # def between_crea...
ruby
chosen
[ { "from": "human", "value": "Add nil test for volume's 'bootable' and 'interface'\n" }, { "from": "gpt", "value": "require \"#{File.dirname(__FILE__)}/../spec_helper\"\n\ndescribe OVIRT::Volume do\n\nxml = <<END_HEREDOC\n<disk href=\"/api/vms/76d29095-bc27-4cd0-8178-07e942aea549/nics/12345678-12...
ruby
chosen
[ { "from": "system", "value": "Remove mac_os_x_server from metata as it's not a platform\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n" }, { "from": "human", "value": "name 'build-essential'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email...
ruby
chosen
[ { "from": "system", "value": "Update gemspec for spree 2.1.0" }, { "from": "human", "value": "# encoding: UTF-8\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'spree_html_email'\n s.version = '1.0.1'\n s.summary = 'HTML email support for Spree'...
ruby
chosen
[ { "from": "system", "value": "Use new Minitest base test class.\n" }, { "from": "human", "value": "require 'helper'\n\nclass TestUuiddqd < MiniTest::Unit::TestCase\n def setup\n @uuid = Uuiddqd.generate\n end\n\n def test_return_string\n assert_kind_of String, @uuid\n end\n\n def test...
ruby
chosen
[ { "from": "system", "value": "Use note as variable name\n" }, { "from": "human", "value": "\nNATURAL_NOTES = {\n 'C' => 0,\n 'D' => 2,\n 'E' => 4,\n 'F' => 5,\n 'G' => 7,\n 'A' => 9,\n 'B' => 11\n}.freeze\n\nMODIFIERS = {\n '#' => 1,\n 'b' => -1,\n 'B#' => -11,\n 'Cb' => 11\n}\n\ndef ...
ruby
chosen
[ { "from": "system", "value": "Clean up gemspec and add dependencies.\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/formulate/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Tyler Hunt\"]\n gem.email = [\"t...
ruby
chosen
[ { "from": "system", "value": "Allow dotnetcore upgrade when using tar install method\n\nThis patch makes sure we can upgrade dotnetcore.\n\nBefore the patch, `creates` property prevented the downloaded tarball to\nbe extracted\n(https://github.com/chef-cookbooks/tar/blob/3d659bd87bbdc32805d07b56bf531a04497b...
ruby
chosen
[ { "from": "system", "value": "Use old tagging system for podspec\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n\ts.name = 'RNCryptor'\n\ts.version = '4.0.0-beta.1'\n\ts.summary = 'Cross-language AES Encryptor/Decryptor data format.'\n\ts.authors = {'Rob Napier' => 'robnapier@gmail.com...
ruby
chosen
[ { "from": "system", "value": "Hotfix: Update to the latest dat-worker-pool\n\nThis updates dat-tcp to require the latest dat-worker-pool. This\nincludes updates to keep workers from shutting down when some non\n`StandardError` exceptions occur. This doesn't change any of\ndat-tcp's logic.\n" }, { "f...
ruby
chosen
[ { "from": "system", "value": "Split some of the render and file search logic.\n\n I split the logic for locating the view file and the logic for\nrendering the view file into separate private methods.\n" }, { "from": "human", "value": "require \"yaml\"\nrequire \"sinatra\"\nrequire \"sinatra/ba...
ruby
chosen
[ { "from": "system", "value": "Support all version of rspec 3 but not including version 3.5 or above." }, { "from": "human", "value": "# coding: utf-8\nrequire File.expand_path('../lib/rutabaga/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = ['Lukas Oberhuber']\n ge...
ruby
chosen
[ { "from": "system", "value": "Fix for Feedzirra RSS issue\n\nRegular errors (every half hour) have been logged, seemingly relating\nto an expected RSS view for the news page. Have added an RSS response\nto redirect users to the original feed the page draws on.\n" }, { "from": "human", "value": "...
ruby
chosen
[ { "from": "system", "value": "Fix error with product image urls for pinterest pins\n" }, { "from": "human", "value": "module Spree\n BaseHelper.module_eval do\n def pin_it_button(product)\n\n url = escape product.url\n media = escape product_image_url(product)\n description = ...
ruby
chosen
[ { "from": "system", "value": "Add link for Managed Sites to the Dashboard\n" }, { "from": "human", "value": "ActiveAdmin.register_page \"Dashboard\" do\n\n menu priority: 1, label: proc{ I18n.t(\"active_admin.dashboard\") }\n\n content title: proc{ I18n.t(\"active_admin.dashboard\") } do\n ...
ruby
chosen
[ { "from": "system", "value": "[Test] Add test for \"init\" command\n" }, { "from": "human", "value": "require 'test/unit'\n\ndef build!\n `cargo build`\n raise 'Build failed.' if $? != 0\n `cargo test`\n raise 'Whitebox tests failed.' if $? != 0\nend\n\ndef initialize_kic!\n `cargo run init...
ruby
chosen
[ { "from": "system", "value": "Resolve 'requires_arc' warning from 'pod spec lint'\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n\n s.name = \"WNGLogger\"\n s.version = \"0.9.0\"\n s.summary = \"WNGLogger is an iOS client library to record and log metric data to We...
ruby
chosen
[ { "from": "system", "value": "Fix all rubocop errors and add ignore for lenght method\n" }, { "from": "human", "value": "# https://github.com/rest-client/rest-client\nrequire 'rest-client'\n# https://github.com/flori/json\nrequire 'json'\n# http://stackoverflow.com/questions/9008847/what-is-diff...
ruby
chosen
[ { "from": "system", "value": "Fix typo in build success worker for deployment\n" }, { "from": "human", "value": "class BuildSuccessWorker\n include Sidekiq::Worker\n sidekiq_options queue: :default\n\n def perform(build_id)\n Ci::Build.find_by(id: build_id).try do |build|\n return unl...
ruby
chosen
[ { "from": "system", "value": "Remove not used column from test schema\n" }, { "from": "human", "value": "ActiveRecord::Base.establish_connection(\n :adapter => \"sqlite3\",\n :database => \":memory:\"\n)\n\nActiveRecord::Schema.define do\n self.verbose = false\n\n create_table :products do ...
ruby
chosen
[ { "from": "system", "value": "Update gem summary and description\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'mth/version'\n\nGem::Specification.new do |spec|\n spec.name ...
ruby
chosen
[ { "from": "system", "value": "Add the ability to refresh the RSS feed.\n" }, { "from": "human", "value": "require 'iconv'\nrequire 'rss/1.0'\nrequire 'rss/2.0'\nrequire 'open-uri'\nrequire 'sinatra'\n$: << File.join(File.dirname(__FILE__), 'vendor', 'ruby-oembed', 'lib')\nrequire 'oembed'\n\n@@r...
ruby
chosen
[ { "from": "system", "value": "Rework use of 'git ls-files' in Rakefile; ignore a couple of files\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'anal_uuid/version'\n\nGem::Specificat...
ruby
chosen
[ { "from": "system", "value": "Test the full incineration flow\n" }, { "from": "human", "value": "require_relative '../../test_helper'\n\nclass ActionMailbox::InboundEmail::IncinerationTest < ActiveSupport::TestCase\n test \"incinerating 30 days after delivery\" do\n freeze_time\n\n assert...
ruby
chosen
[ { "from": "system", "value": "Move method up in the file\n" }, { "from": "human", "value": "require 'kumade/deployer'\n\nclass Kumade\n def self.load_tasks\n deployer.load_tasks\n end\n\n class << self\n attr_writer :staging, :production\n attr_accessor :staging_app, :production_app\...
ruby
chosen
[ { "from": "human", "value": "Add cask for Twine v1.4.1\n" }, { "from": "gpt", "value": "class Twine < Cask\n url 'http://twinery.org/downloads/twine_1.4.1_osx.zip'\n homepage 'http://twinery.org/'\n version '1.4.1'\n sha1 '7113f360bbe6b5246001f3cc0083fe65fe26f552'\n link 'Twine.app'\nend\n"...
ruby
chosen
[ { "from": "system", "value": "Refactor parser to emit blank lines\n" }, { "from": "human", "value": "require 'strscan'\n\nmodule Syntax\n class Element\n attr_accessor :content, :children\n\n def initialize(content = nil)\n @content = content\n @children = []\n end\n\n def...
ruby
chosen
[ { "from": "system", "value": "Add \"spec\" task as first CI task\n\n* If the code isn't correct then the metrics don't really matter.\n" }, { "from": "human", "value": "desc 'Run metrics with Heckle'\ntask :ci => %w[ ci:metrics heckle ]\n\nnamespace :ci do\n desc 'Run metrics'\n task :metrics ...
ruby
chosen
[ { "from": "system", "value": "Update 'itamae-plugin-recipe-h2o' from 0.0.2 to 0.0.3\n" }, { "from": "human", "value": "module Itamae\n module Plugin\n module Recipe\n module H2o\n VERSION = \"0.0.2\"\n end\n end\n end\nend\n" }, { "from": "gpt", "value": "mod...
ruby
chosen
[ { "from": "system", "value": "Fix errors when running Rails without Sprockets\n" }, { "from": "human", "value": "module Footnotes\n module Notes\n class FilesNote < AbstractNote\n def initialize(controller)\n @files = scan_text(controller.response.body)\n parse_files!\n ...
ruby
chosen
[ { "from": "system", "value": "rubybundle: Disable system MSYS installation while init of the MSYS\nsandbox\n\nThis should avoid interferences.\n" }, { "from": "human", "value": "# Use the cache of our main MSYS2 environment for package install\ncachedir = File.join(Build.msys2_installation.msys_...
ruby
chosen
[ { "from": "system", "value": "Update cookbook version to 0.2.1\n" }, { "from": "human", "value": "name 'ddnsupdate'\nmaintainer 'Virender Khatri'\nmaintainer_email 'vir.khatri@gmail.com'\nlicense 'Apache 2.0'\ndescription 'Installs/Configures nsupdate to manage host dynamic dns and other RR'\nlo...
ruby
chosen
[ { "from": "system", "value": "Make sure we create the correct files if they don’t exists\n" }, { "from": "human", "value": "require 'colorize'\n\nrequire 'icapps/translations/http'\nrequire 'icapps/translations/import/base'\n\nmodule Icapps\n module Translations\n module Import\n class ...
ruby
chosen
[ { "from": "system", "value": "Revert \"Setting the content value in the versions to be an empty string\"\n\nThis reverts commit 697d4bced3e312f790333022b2d1808af906113a.\n" }, { "from": "human", "value": "module Irwi::Extensions::Models::WikiPage\n \n module ClassMethods\n \n def find_by...
ruby
chosen
[ { "from": "system", "value": "Add missing 'rake' to the factory_girl:lint command.\n" }, { "from": "human", "value": "module Kender\n class FactoryGirlLint < Command\n\n def available?\n File.exists?(File.join(Dir.pwd, 'lib', 'tasks', 'factory_girl_lint.rake'))\n end\n\n def comma...
ruby
chosen
[ { "from": "system", "value": "Add random test ordering where available\n" }, { "from": "human", "value": "require 'bundler/setup'\nrequire 'minitest/autorun'\nrequire 'action_controller'\nrequire 'active_record'\nrequire 'action_controller/action_caching'\n\nFIXTURE_LOAD_PATH = File.expand_path(...
ruby
chosen
[ { "from": "human", "value": "Add ImportJob which receives and importer key and filepath\n" }, { "from": "gpt", "value": "class ImportJob < ActiveJob::Base\n queue_as :default\n\n def perform(importer_key, filepath)\n class_name = RailsImporter.importer_class(importer_key)\n class_name.ne...
ruby
chosen
[ { "from": "system", "value": "Simplify logic in update job verification" }, { "from": "human", "value": "class UpdateJob < JuliaJob\n queue_as :default\n\n def perform(*args)\n\n Batch.current_marker += 1\n set_batch_marker :current, Batch.current_marker\n\n system \"#{@sys_run} db:mi...
ruby
chosen
[ { "from": "system", "value": "Allow use of rails > 3.0\n" }, { "from": "human", "value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\nGem::Specification.new do |s|\n s.name = \"verification\"\n s.version = \"1.0.1\"\n s.platform = Gem::Platform::RUBY\n s.authors = [\"...
ruby
chosen
[ { "from": "system", "value": "Add spec for LUPDecomposition of rectangular matrices\n" }, { "from": "human", "value": "require File.expand_path('../../../../spec_helper', __FILE__)\nrequire 'matrix'\n\nruby_version_is \"1.9.3\" do\n describe \"Matrix::LUPDecomposition#to_a\" do\n before :eac...
ruby
chosen
[ { "from": "system", "value": "Remove gem dependency on `puppet`\n\nFixes\n```\nError installing hiera-eyaml-gpg:\n\t\"puppet\" from puppet conflicts with /opt/puppetlabs/puppet/bin/puppet\n```\n" }, { "from": "human", "value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) ...
ruby
chosen
[ { "from": "system", "value": "v1.4.2: Add documents to public things (types, methods, properties)\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = \"TDRedux.swift\"\n s.version = \"1.4.1\"\n s.summary = \"Yet another Redux written in Swift\"\n\n s.descript...
ruby
chosen