conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Simplify echo example once more\n" }, { "from": "human", "value": "#!/usr/bin/env ruby\n\n$LOAD_PATH << File.join(File.dirname(__FILE__), '..', '..', 'lib')\n\nrequire 'skype'\nrequire 'pp'\n\nSkype.on(:chatmessage_received) do |chatmessage|\n chatmessage.chat do |...
ruby
chosen
[ { "from": "system", "value": "Update Vagrant Manager to version 2.2.1\n" }, { "from": "human", "value": "cask :v1 => 'vagrant-manager' do\n version '2.1.2'\n sha256 '8510664b4834c98ed9b72baa30aae611f640ca2292725a8cd6ae6d99d412dd4b'\n\n # github.com is the official download host per the vendor...
ruby
chosen
[ { "from": "system", "value": "Add not_found and redirect overview\n" }, { "from": "human", "value": "require 'sinatra'\n\nclass Redirector < Sinatra::Base\n get '/' do\n 'homepage'\n end\n\n get '/:short_link' do\n \"i'm redirecting you to #{params[:short_link]}\"\n end\nend\n" }, ...
ruby
chosen
[ { "from": "system", "value": "Change to proper sinatra require for Sinatr::Base\n" }, { "from": "human", "value": "require 'sinatra'\nrequire 'em-websocket'\nrequire 'pp'\n\n$channel = EM::Channel.new\n\nEM.run {\n\n class App < Sinatra::Base\n get '/' do\n erb :index\n end\n end\n\...
ruby
chosen
[ { "from": "system", "value": "Return orders in RESTful way\n" }, { "from": "human", "value": "#encoding: utf-8\nrequire 'rubygems'\nrequire 'sinatra'\nrequire 'sinatra/reloader'\nrequire 'sinatra/activerecord'\n\nset :database, 'sqlite3:customers.sqlite3'\n\nclass Customer < ActiveRecord::Base\n...
ruby
chosen
[ { "from": "system", "value": "Change to rails version 4.1.0\n" }, { "from": "human", "value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"ct_angular_js_rails/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do...
ruby
chosen
[ { "from": "system", "value": "Include a full stop in the description" }, { "from": "human", "value": "GEM_SPEC = Gem::Specification.new do |s|\n s.name = 'rubygems-compile'\n s.version = '1.0.0beta3'\n s.platform = Gem::Platform::MACRUBY\n\n s.summary = 'A set of rubygems commands...
ruby
chosen
[ { "from": "system", "value": "Fix the contributions report on the project for channel admins\n" }, { "from": "human", "value": "class Reports::ContributionReportsForProjectOwnersController < Reports::BaseController\n def index\n @report = end_of_association_chain.to_xls( columns: I18n.t('con...
ruby
chosen
[ { "from": "system", "value": "Fix Triggers module to only delegate to ForemanTasks\n" }, { "from": "human", "value": "module ForemanTasks\n module Triggers\n # for test overrides if needed\n attr_writer :foreman_tasks\n def foreman_tasks\n @foreman_tasks ||= ForemanTasks\n end\...
ruby
chosen
[ { "from": "system", "value": "Make sure this code actually works.\n" }, { "from": "human", "value": "require \"semvergen/version\"\n\nrequire \"semvergen/launcher\"\nrequire \"semvergen/interface\"\nrequire \"semvergen/bump\"\nrequire \"semvergen/change_log_file\"\nrequire \"semvergen/shell\"\nr...
ruby
chosen
[ { "from": "system", "value": "INF-941: Add check if remore is cloned\n" }, { "from": "human", "value": "require 'securerandom'\nrequire 'erb'\n\nmodule Skyed\n # This module encapsulates all the Git features.\n module Git\n class << self\n def clone_stack_remote(stack, options)\n ...
ruby
chosen
[ { "from": "system", "value": "Use eval with a binding rather than instance_eval when evaluating a string.\n" }, { "from": "human", "value": "module Librarian\n class Dsl\n class Receiver\n\n def initialize(target)\n singleton_class = class << self; self end\n singleton_cla...
ruby
chosen
[ { "from": "system", "value": "Raise correct typed exception and also decorate it with something useful\n" }, { "from": "human", "value": "module StackMaster\n class ParameterResolver\n ResolverNotFound = Class.new(StandardError)\n InvalidParameter = Class.new(StandardError)\n\n def sel...
ruby
chosen
[ { "from": "system", "value": "Correct code documentation for Set extension\n\nIt appears the code documentation for Set was copied incorrectly from Range. Set mongoizes/demongoizes to/from Array, not Hash." }, { "from": "human", "value": "# encoding: utf-8\nmodule Mongoid\n module Extensions\n ...
ruby
chosen
[ { "from": "system", "value": "Enable snmp monitoring for Edgeuno machines\n" }, { "from": "human", "value": "name \"edgeuno\"\ndescription \"Role applied to all servers at Edgeuno\"\n\ndefault_attributes(\n :hosted_by => \"EdgeUno\",\n :location => \"Bogotá, Colombia\",\n :networking => {\n ...
ruby
chosen
[ { "from": "system", "value": "Add bigdecimal specs for numeric freezer\n" }, { "from": "human", "value": "# encoding: utf-8\n\nrequire 'spec_helper'\nrequire 'ice_nine/freezer'\nrequire 'ice_nine/freezer/no_freeze'\nrequire 'ice_nine/freezer/numeric'\n\ndescribe IceNine::Freezer::Numeric, '.deep...
ruby
chosen
[ { "from": "system", "value": "Fix errno not defined [closes GH-465]\n" }, { "from": "human", "value": "module Vagrant\n module Util\n # This module provies a `safe_exec` method which is a drop-in\n # replacement for `Kernel.exec` which addresses a specific issue\n # which manifests on ...
ruby
chosen
[ { "from": "system", "value": "Fix that Rails version spec excluded Rails 4.0.\n" }, { "from": "human", "value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"rticles/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification....
ruby
chosen
[ { "from": "system", "value": "Print \"T\" instead of \"True\" for ruby interop\n" }, { "from": "human", "value": "require_relative 'core'\nrequire_relative 'numbers'\nSystem_Print=->to_print{Kernel.print to_print}\nSystem_PrintLine=->to_print{System_Print[to_print+\"\\n\"]}\nRaise=->to_raise{rai...
ruby
chosen
[ { "from": "system", "value": "Bump to json version compatible with Ruby 3.0\n\nReferences https://github.com/tpope/vim-fugitive/issues/1666\n" }, { "from": "human", "value": "Gem::Specification.new do |s|\n s.name = \"rumember\"\n s.version = \"1.1.0\"\n s.platform = Gem::...
ruby
chosen
[ { "from": "human", "value": "Add mdJson readers for 'coordinateResolution'\ninclude minitest\n" }, { "from": "gpt", "value": "# mdJson 2.0 writer - coordinate resolution\n\n# History:\n# Stan Smith 2017-10-20 original script\n\nrequire 'jbuilder'\n\nmodule ADIWG\n module Mdtranslator\n ...
ruby
chosen
[ { "from": "system", "value": "Update pod spec for v1.4\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n\ts.name\t\t\t= 'INAppStoreWindow'\n\ts.version\t\t= '1.3'\n\ts.summary\t\t= 'Mac App Store style NSWindow subclass.'\n\ts.homepage\t\t= 'https://github.com/indragiek/INAppStoreWindow'...
ruby
chosen
[ { "from": "system", "value": "Make debugger available for development\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'scissors/version'\n\nGem::Specification.new do |gem|\n...
ruby
chosen
[ { "from": "system", "value": "Update cucumber setup to allow running on c9.io\n" }, { "from": "human", "value": "require 'childprocess'\nrequire 'timeout'\nrequire 'httparty'\n\n# Start the app\nserver = ChildProcess.build('rackup', '--port', '9999')\nserver.start\n\n# Wait a bit until it is has...
ruby
chosen
[ { "from": "system", "value": "Fix test names and typos in description highlighting spec\n" }, { "from": "human", "value": "require 'spec_helper'\n\nRSpec.describe Search::HighlightedDescription do\n it \"adds_highlighting_if_present\" do\n raw_result = {\n \"fields\" => { \"description\...
ruby
chosen
[ { "from": "system", "value": "Correct field order in Pandoc Cask\n\nUpdate to use SHA256" }, { "from": "human", "value": "class Pandoc < Cask\n homepage 'http://johnmacfarlane.net/pandoc'\n url 'https://pandoc.googlecode.com/files/pandoc-1.12.3.pkg.zip'\n version '1.12.3'\n sha1 '3fbdcbebb7f...
ruby
chosen
[ { "from": "system", "value": "Remove SearchControllerTest, it depends on elasticsearch\n" }, { "from": "human", "value": "require 'test_helper'\n\nclass SearchControllerTest < ActionController::TestCase\n test \"should get search\" do\n get :search\n assert_response :success\n end\n\n t...
ruby
chosen
[ { "from": "system", "value": "Deploy from public github repo\n" }, { "from": "human", "value": "set :application, \"sanctionwatch\"\nset :domain, \"sanctionwatch.net\"\nset :repository, \"http://svn.jsboulanger.com/sanction-watch/trunk/\"\nset :user, \"root\"\n#set :repository, \"set your repos...
ruby
chosen
[ { "from": "human", "value": "Add uniqueness to already existing index on taxon_concept_references and remove the obsolete one\n" }, { "from": "gpt", "value": "class ChangeUniqueIndexOnTaxonConceptReferences < ActiveRecord::Migration\n def up\n remove_index \"taxon_concept_references\",\n ...
ruby
chosen
[ { "from": "system", "value": "Append events to collection items\n" }, { "from": "human", "value": "class RemovePersonIdFromGobiertoCalendarsEvents < ActiveRecord::Migration[5.1]\n def up\n add_column :gobierto_calendars_events, :collection_id, :integer\n\n GobiertoCalendars::Event.reset_c...
ruby
chosen
[ { "from": "system", "value": "Add require to fix missing route\n\nSigned-off-by: Chris Toynbee <9bf3774ab19e71b4502fac9bd506468044cb6bd6@gmail.com>\n" }, { "from": "human", "value": "ActionController::Routing::Routes.draw do |map|\n map.resources :tracking_lists, :only => [:show]\nend" }, {...
ruby
chosen
[ { "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": "ReleaseApp::Application.routes.draw do\n resources :applications do\n collection do\n ...
ruby
chosen
[ { "from": "system", "value": "Remove unused (for now) game path\n" }, { "from": "human", "value": "SplitsIO::Application.routes.draw do\n root 'runs#front'\n\n get '/faq', to: 'pages#faq', as: :faq\n\n get '/upload', to: 'runs#new', as: :upload\n post '/upload', to: 'runs#upl...
ruby
chosen
[ { "from": "system", "value": "Add route 'toggle_used' to Ideas\n" }, { "from": "human", "value": "Rails.application.routes.draw do\n root to: 'campaigns#index'\n\n resources :campaigns do\n get :manage_members\n get :join_request\n resources :money_history\n resources :heroes do\n ...
ruby
chosen
[ { "from": "system", "value": "Allow curl to get HTML\n" }, { "from": "human", "value": "HoustonLightning::Application.routes.draw do\n class FormatTest\n attr_accessor :mime_type\n\n def initialize(format)\n @mime_type = Mime::Type.lookup_by_extension(format)\n end\n\n def matc...
ruby
chosen
[ { "from": "system", "value": "Update pod spec for deployment target iOS 8.0\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name \t= \"MOAspects\"\n s.version \t= \"2.0.0\"\n s.summary \t= \"AOP Library.\"\n s.homepage \t= \"https://github.com/MO-AI/MOAspect...
ruby
chosen
[ { "from": "system", "value": "Prepare for using and comparing multiple prediction factories.\n" }, { "from": "human", "value": "# not runnable example\n\nrequire_relative \"lib/unpredictable/unpredictable.rb\"\n\nmatches = MatchImporter.new(\"bl1\", 2012).matches\n\npredictor = PredictionFactory...
ruby
chosen
[ { "from": "system", "value": "Add deployment targets for iOS and OS X\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = 'BlockTypeDescription'\n s.version = '0.1.0'\n s.license = 'MIT'\n s.summary = 'Category on NSBlock to include the block type in the description'\n ...
ruby
chosen
[ { "from": "system", "value": "Update IntelliJ IDEA Ultimate EAP to 139.222.5\n" }, { "from": "human", "value": "class IntellijIdeaUltimateEap < Cask\n version '139.144.2'\n sha256 '49ef8ac753287031ae3ed604bbfd7a19e46359b318ac581db0a6100fb5ae0beb'\n\n url \"http://download.jetbrains.com/idea/i...
ruby
chosen
[ { "from": "system", "value": "Add simple spec for unauthed / request\n" }, { "from": "human", "value": "require \"helper\"\n\nset :environment, :test\n\ndescribe \"The Campaign Monitor Subscribe Form app\" do\n let(:app) { Sinatra::Application }\n let(:client_id) { ENV[\"GITHUB_CLIENT_ID\"] }\...
ruby
chosen
[ { "from": "human", "value": "Create a script for auditing team members and repos\n\nThis allows an admin to get a CSV output of all members and repositories for all teams within an organization" }, { "from": "gpt", "value": "# GitHub & GitHub Enterprise Team auditor\n# ==========================...
ruby
chosen
[ { "from": "system", "value": "Stop using an openstruct for breadcrumbs\n\nThe details for the breadcrumbs are static by now so we're not\ngetting any benefit to using an openstruct, but we do gain all the\ndownsides.\n" }, { "from": "human", "value": "class Document\n delegate :title, :previous...
ruby
chosen
[ { "from": "system", "value": "Remove documentation instructions from podspec.\n\nCocoaPods has removed appledoc support in favour of CocoaDocs." }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = \"CSURITemplate\"\n s.version = \"0.1.1\"\n s.summary = \"Implemen...
ruby
chosen
[ { "from": "system", "value": "Fix homepage and update url and appcast to use SSL in LoadMyTracks Cask\n\nProduct has now his own homepage on a new domain.\nThe url and appcast stanza URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\"...
ruby
chosen
[ { "from": "system", "value": "Add 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 'carrierwave/cascade/version'\n\nGem::Specification.new do |spec|\n spec...
ruby
chosen
[ { "from": "system", "value": "Correct permissions for x360 gamepad emulation by steam controllers\n" }, { "from": "human", "value": "#\n# Cookbook Name:: desktop\n# Recipe:: steam_controller_udev_rules\n#\n# Copyright 2016 Andrew Jones\n#\n# Licensed under the Apache License, Version 2.0 (the \"...
ruby
chosen
[ { "from": "system", "value": "Make some more custom WS debug messages\n" }, { "from": "human", "value": "require 'eventmachine'\nrequire 'faye/websocket'\n\nFaye::WebSocket.load_adapter('thin')\n\nmodule Ldash\n class WS\n def initialize(app)\n @app = app\n end\n\n def call(env)\n...
ruby
chosen
[ { "from": "system", "value": "Use Object instead of BasicObject as default scope\n" }, { "from": "human", "value": "require 'tilt'\nrequire 'prawn'\nrequire 'tilt/prawn/version'\n\nmodule Tilt\n class PrawnTemplate < Template\n class Engine < ::Prawn::Document\n end\n\n class << self\n...
ruby
chosen
[ { "from": "system", "value": "Check with url-arbiter before adding route\n\nBefore re-registering the route, check with url-arbiter that whitehall\nowns the url. If it’s owned by another app, skip it. If url-arbiter\ndoesn’t know about it, reserve it for whitehall.\n\nThis uses a dummy API adapter for url-a...
ruby
chosen
[ { "from": "system", "value": "Fix URL in Psequel.app Cask\n\nURL was unversioned and failed to download.\nAlso fixed version to 1.1.2 as 1.2.0 is not stable.\n" }, { "from": "human", "value": "cask :v1 => 'psequel' do\n version :latest\n sha256 :no_check\n\n url 'http://www.psequel.com/downlo...
ruby
chosen
[ { "from": "system", "value": "Add spec for deleting protected tags\n" }, { "from": "human", "value": "require('spec_helper')\n\ndescribe Projects::ProtectedTagsController do\n describe \"GET #index\" do\n let(:project) { create(:project_empty_repo, :public) }\n\n it \"redirects empty repo...
ruby
chosen
[ { "from": "system", "value": "Update semantic version calls to dependencies\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"kentucky/version\"\n\nGem::Specification.new do |s|\n s.name = \"kentucky\"\n s.version ...
ruby
chosen
[ { "from": "system", "value": "Fix IP address & deploy key\n" }, { "from": "human", "value": "set :stage, :production\n\n# Simple Role Syntax\n# ==================\n#role :app, %w{deploy@example.com}\n#role :web, %w{deploy@example.com}\n#role :db, %w{deploy@example.com}\n\n# Extended Server Synt...
ruby
chosen
[ { "from": "system", "value": "Package version is increased from 0.4.2.0 to 0.4.3.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.2.0'\n s.description = '...
ruby
chosen
[ { "from": "system", "value": "Fix for recent type changes\n" }, { "from": "human", "value": "# typed: false\n# frozen_string_literal: true\n\nmodule StaticHelper\n # For sorbet\n include GeneratedUrlHelpersModule\n include ActionView::Helpers::OutputSafetyHelper\n include ActionView::Helpers...
ruby
chosen
[ { "from": "system", "value": "Use the configured display name in e-mails from Devise mailer\n" }, { "from": "human", "value": "class DeviseMailer < Devise::Mailer\n default from: \"GitLab <#{Gitlab.config.gitlab.email_from}>\"\n default reply_to: Gitlab.config.gitlab.email_reply_to\nend\n" }...
ruby
chosen
[ { "from": "system", "value": "Add maxlength validation to title\n" }, { "from": "human", "value": "module Effective\n class Post < ActiveRecord::Base\n acts_as_role_restricted if defined?(EffectiveRoles)\n acts_as_regionable if defined?(EffectiveRegions)\n\n self.table_name = Effective...
ruby
chosen
[ { "from": "system", "value": "Use helper across the board\n" }, { "from": "human", "value": "$LOAD_PATH.unshift(File.expand_path('lib'), __FILE__)\n\nrequire 'bike'\n\ndef assert_equal(expected, actual)\n if expected == actual\n print '.'\n else\n raise \"Test failed. Expected #{expected...
ruby
chosen
[ { "from": "human", "value": "Add initial tests for Cats\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\ndescribe Cats do\n it 'should have a version number' do\n ::Cats::VERSION.wont_be_nil\n end\n\n it 'should generate cat facts' do\n Cats.fact(0).must_equal []\n\n Cats.fa...
ruby
chosen
[ { "from": "system", "value": "Fix typo in integration test\n" }, { "from": "human", "value": "require 'serverspec'\n# require 'mongo'\n\ninclude Serverspec::Helper::Exec\ninclude Serverspec::Helper::DetectOS\n\ndescribe file(\"/etc/mongodb/mongod.conf\") do\n it { should be_file }\n it { shoul...
ruby
chosen
[ { "from": "system", "value": "Support MySQL too, when removing gitorious from import_sources\n" }, { "from": "human", "value": "class DropGitoriousFieldFromApplicationSettings < ActiveRecord::Migration\n include Gitlab::Database::MigrationHelpers\n\n # After the deploy the caches will be cold ...
ruby
chosen
[ { "from": "human", "value": "Migrate Attachments with pa-ur locale to pa-pk\n" }, { "from": "gpt", "value": "attachments = Attachment.where(locale: \"pa-ur\")\n\ndocument_ids = Edition.distinct.where(id: attachments.select(:attachable_id)).pluck(:document_id)\n\nattachments.update_all(locale: \"...
ruby
chosen
[ { "from": "system", "value": "Set KCODE in Ruby versions < 1.9 for twitter-text\n" }, { "from": "human", "value": "$:.unshift File.expand_path('..', __FILE__)\n$:.unshift File.expand_path('../../lib', __FILE__)\nrequire 'simplecov'\nSimpleCov.start\nrequire 'twitter'\nrequire 'rspec'\nrequire 'w...
ruby
chosen
[ { "from": "system", "value": "Use `create!` instead of `create`\n\nBecause `create!` raises an error when failed to create record.\n" }, { "from": "human", "value": "require 'test_helper'\n\nclass SiteTest < ActiveSupport::TestCase\n setup do\n @site = Site.create(name: \"name\",\n ...
ruby
chosen
[ { "from": "system", "value": "Fix the platform version detection\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n" }, { "from": "human", "value": "#\n# Author:: Timothy Smith (<tsmith@chef.io>)\n# Cookbook:: ms_dotnet4\n# Recipe:: default\n#\n# Copyright:: 2012-20...
ruby
chosen
[ { "from": "system", "value": "TEST: Fix auth token generation in test helper\n" }, { "from": "human", "value": "module TestHelpers\n #\n # Authentication test helper\n #\n module AuthHelper\n #\n # Gets an auth token for the provided user\n #\n def auth_token(user = User.first)\n...
ruby
chosen
[ { "from": "system", "value": "Install git, with force where needed\n" }, { "from": "human", "value": "app = search(:aws_opsworks_app).first\napp_path = \"/srv/#{app['shortname']}\"\n\napplication app_path do\n javascript \"4\"\n environment.update(\"PORT\" => \"80\")\n\n git app_path do\n ...
ruby
chosen
[ { "from": "system", "value": "Fix warning '/ST is earlier than current time'\n\nSigned-off-by: Yury Levin <641503cf3d0489830b4ee74da6f72799d880a3d9@gmail.com>\n" }, { "from": "human", "value": "#\n# Author:: Tim Smith (<tsmith@chef.io>)\n# Cookbook:: chef_client_updater\n# Recipe:: default\n#\n#...
ruby
chosen
[ { "from": "system", "value": "Update to mock controller in test\n" }, { "from": "human", "value": "require_relative 'test_helper'\n\nclass TestApp < Rulers::Application\nend\n\nclass RulersAppTest < Test::Unit::TestCase\n include Rack::Test::Methods\n\n def app\n TestApp.new\n end\n\n def...
ruby
chosen
[ { "from": "system", "value": "Change TestDoctorCommand to JekyllUnitTest since Test constant doesn't necessarily exist\n" }, { "from": "human", "value": "require 'helper'\nrequire 'jekyll/commands/doctor'\n\nclass TestDoctorCommand < Test::Unit::TestCase\n context 'urls only differ by case' do\...
ruby
chosen
[ { "from": "system", "value": "Check for existence of exactly the called `fixture_path=` method\n" }, { "from": "human", "value": "# Configure Rails Environment\nENV[\"RAILS_ENV\"] = \"test\"\n\nrequire File.expand_path(\"../dummy/config/environment.rb\", __FILE__)\nrequire \"rails/test_help\"\n...
ruby
chosen
[ { "from": "human", "value": "Add root account id to wiki pages\n\nClose PLAT-5577\n\nTest Plan:\n- Verify migrations run\n- Verify the root_account_id can be set on a WikiPage record\n\nChange-Id: I537982140e9ae23a018c07f069dbb7d60454ccd8\nReviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/229755\nT...
ruby
chosen
[ { "from": "system", "value": "Change dependency locking for bundler and simplecov\n" }, { "from": "human", "value": "$:.push File.expand_path('../lib', __FILE__)\nrequire 'devise_two_factor/version'\n\nGem::Specification.new do |s|\n s.name = 'devise-two-factor'\n s.version = Devise...
ruby
chosen
[ { "from": "system", "value": "Fix bug in replacement cost calculator\n" }, { "from": "human", "value": "#------------------------------------------------------------------------------\n#\n# ReplacementCostPlusInterestCalculator\n#\n#---------------------------------------------------------------...
ruby
chosen
[ { "from": "system", "value": "Fix issue in order of scopes\n" }, { "from": "human", "value": "require_dependency \"renalware/renal\"\nrequire \"collection_presenter\"\n\nmodule Renalware\n module Renal\n class ClinicalSummaryPresenter\n def initialize(patient)\n @patient = patien...
ruby
chosen
[ { "from": "system", "value": "Update version number to 0.1.2\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = 'NPAudioStream'\n s.version = '0.1.1'\n s.license = 'MIT'\n s.summary = 'NPAudioStream is an easily controllable, robust audio streaming library for iOS and ...
ruby
chosen
[ { "from": "system", "value": "Make bundler work on JRuby\n" }, { "from": "human", "value": "# Maintain your gem's version:\nrequire_relative 'lib/rocket_job/version'\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do |s|\n s.name = 'rocketjob'\n s.version ...
ruby
chosen
[ { "from": "system", "value": "Add votes to seed file for travis purposes\n" }, { "from": "human", "value": "# This file should contain all the record creation needed to seed the database with its default values.\n# The data can then be loaded with the rake db:seed (or created alongside the db wi...
ruby
chosen
[ { "from": "system", "value": "Add seed file with partial information for msg and radio city.\n" }, { "from": "human", "value": "# This file should contain all the record creation needed to seed the database with its default values.\n# The data can then be loaded with the rake db:seed (or created...
ruby
chosen
[ { "from": "system", "value": "Package version increased from 0.1.8 to 0.1.9\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'telemetry-logger'\n s.version = '0.1.8'\n s.summary = 'Logging to STDERR with coloring and levels of severity'\n ...
ruby
chosen
[ { "from": "system", "value": "Fix to update path to template\n" }, { "from": "human", "value": "require 'test_helper'\n\nclass HomeControllerTest < ActionController::TestCase\n\n test \"page header should include link to asset\" do\n get :index\n assert_response :success\n assert_selec...
ruby
chosen
[ { "from": "system", "value": "Add Graphql endpoint for LatestMetrics\n" }, { "from": "human", "value": "class Types::ResponseType < Types::BaseObject\n\n field :id, ID, null: false\n field :question_id, ID, null: false\n field :submissions, Integer, null: false\n field :text, String, null: f...
ruby
chosen
[ { "from": "system", "value": "Update gemspec with versioned Mercenary.\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'svgeez/version'\n\nGem::Specification.new do |spec|\n spec.nam...
ruby
chosen
[ { "from": "system", "value": "Add a preliminary test for multiple session support\n\nThis passes for Rack::Test but may fail for Poltergeist.\n" }, { "from": "human", "value": "require \"spec_helper\"\n\nfeature \"Linking\" do\n background do\n visit \"foo.html\"\n end\n\n scenario \"UI is...
ruby
chosen
[ { "from": "system", "value": "Introduce test for array destruction\n\nIt was discovered that the concat array modifies the arrays passed to it\nas an argument as a side effect. This test will ensure that doesn't\nhappen again.\n" }, { "from": "human", "value": "#! /usr/bin/env ruby -S rspec\nreq...
ruby
chosen
[ { "from": "system", "value": "Add 3 more model exmaples for Response\n" }, { "from": "human", "value": "require \"spec_helper\"\ndescribe Response do\n let!(:response) { Response.new(body: \"comments comments\") }\n it { should respond_to :body }\nend\n" }, { "from": "gpt", "value"...
ruby
chosen
[ { "from": "system", "value": "Remove ambiguity in 'before' block\n\nRemove ambiguity by specifying that the 'before' block is being\nexecuted before each 'describe' block below it.\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe \"TagViews\" do\n before do\n @tag1 = crea...
ruby
chosen
[ { "from": "system", "value": "Send requests to resource owner instead of querying everyhing globally." }, { "from": "human", "value": "module Coursewareable::Api::V1\n # [Coursewareable::Classroom] API controller\n class ClassroomsController < ApplicationController\n\n def index\n clas...
ruby
chosen
[ { "from": "system", "value": "Add a basic spec for payments controller\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe Neighborly::Balanced::Bankaccount::PaymentsController do\n\nend\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\ndescribe Neighborly::B...
ruby
chosen
[ { "from": "human", "value": "Add prelim event logging spec\n" }, { "from": "gpt", "value": "require_relative 'helper_spec'\n\ndescribe Analytics do\n \n before :each do\n Analytics.configure \"UA-XYZABCZA-1\", \"AnalyticsTest\"\n end\n\n it 'should be able to log events with just a catego...
ruby
chosen
[ { "from": "system", "value": "Set rvm gemset in Capfile\n" }, { "from": "human", "value": "# config valid only for current version of Capistrano\nlock '3.6.1'\n\nset :application, 'trinity'\nset :repo_url, 'git@github.com:NotyIm/trinity.git'\n\n# Default branch is :master\n# ask :branch, `git re...
ruby
chosen
[ { "from": "system", "value": "Include Rescue::Mailer in the UserMailer\n\nSigned-off-by: tomdev <96835dd8bfa718bd6447ccc87af89ae1675daeca@codigy.nl>\n" }, { "from": "human", "value": "class UserMailer < ActionMailer::Base\n default from: \"no-reply@factlink.com\"\n\n def welcome_instructions(u...
ruby
chosen
[ { "from": "system", "value": "Use ADN::CLI::VERSION as the version number, added myself to the list of authors, changed the homepage." }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/adn/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.aut...
ruby
chosen
[ { "from": "system", "value": "Allow seeds controller on dev (not testing)\n" }, { "from": "human", "value": "Rails.application.routes.draw do\n\n devise_for :users\n # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html\n root to: \"setup#index\"\...
ruby
chosen
[ { "from": "system", "value": "Update hashie dependency to version ~> 2.0\n" }, { "from": "human", "value": "# encoding: utf-8\nrequire File.expand_path('../lib/congress/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.add_dependency 'faraday', '~> 0.7'\n gem.add_dependency 'faraday...
ruby
chosen
[ { "from": "system", "value": "Update the gemspec. Version number is now at 0.3.\n\n" }, { "from": "human", "value": "# antwrap\n#\n# Copyright Caleb Powell 2007\n#\n# Licensed under the LGPL, see the file COPYING in the distribution\n#\nrequire 'rubygems'\n\nSPEC = Gem::Specification.new do |s|\...
ruby
chosen
[ { "from": "human", "value": "Add migration to add original publication date to a manual\n\nThis is the national planning policy framework manual that we had to set\nthe first_published_at and public_updated_at timestamps of in #788. We\nset the originally_published_at and use_originally_published_at_for_pu...
ruby
chosen
[ { "from": "human", "value": "Add root account to rubric associations\n\nCloses PLAT-5575\nflag=none\n\nTest Plan:\n- Verify migrations run\n- Verify a root_account_id can be set on a RubricAssociation record\n\nChange-Id: I5dfe80ccd1cd3f0a2cc42f9411d860ef5f77034a\nReviewed-on: https://gerrit.instructure.com...
ruby
chosen
[ { "from": "system", "value": "Allow additional arguments to run_callbacks for rails 3.2\n\nActiveSupport::Callbacks#run_callbacks is defined as\n\n def run_callbacks(kind, *args, &block)\n\nin rails 3.2, then the `*args` argument was removed in rails 4.0, so\nar_transaction_changes should allow these add...
ruby
chosen
[ { "from": "system", "value": "Check for file or folder when checking for git hash in build metadata\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nmodule Bundler\n # Represents metadata from when the Bundler gem was built.\n module BuildMetadata\n # begin ivars\n @re...
ruby
chosen