conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Exclude Rails 2.3 from the runtime dependency version requirement\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nrequire 'acts_as_geocodable/version'\n\nG... | ruby | chosen |
[
{
"from": "system",
"value": "Fix gem group for turnout gem in maintenace config\n"
},
{
"from": "human",
"value": "require 'rails/generators'\n\nmodule Easy\n class MaintenanceGenerator < Rails::Generators::Base\n source_root File.join(File.dirname(__FILE__), \"templates\") # Where template... | ruby | chosen |
[
{
"from": "system",
"value": "Use the current_release path instead of the current_path to run the correct deployment.\n"
},
{
"from": "human",
"value": "namespace :load do\n task :defaults do\n set :lacquer_roles, -> { :web }\n end\nend\n\nnamespace :lacquer do\n %w( start stop restart glo... | ruby | chosen |
[
{
"from": "system",
"value": "Fix CSVReader to handle the latest browscap.csv files.\n"
},
{
"from": "human",
"value": "# encoding: BINARY\n\nif RUBY_VERSION.to_f < 1.9\n require 'fastercsv'\nelse\n require 'csv'\nend\n\nmodule Browscap\n module CSVReader\n CSV_ENGINE = if defined?(FasterC... | ruby | chosen |
[
{
"from": "human",
"value": "Add knife ec2 subnet list command\n\nAnother command to make figuring out what to feed knife ec2 server create a bit easier.\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "gpt",
"value": "#\n# Author:: Tim Smith (<tsmi... | ruby | chosen |
[
{
"from": "system",
"value": "Allow the controller to be called multiple times\n"
},
{
"from": "human",
"value": "require 'rspec/rails'\n\nmodule Rafters::ComponentExampleGroup\n extend ActiveSupport::Concern\n include RSpec::Rails::RailsExampleGroup\n\n included do\n metadata[:type] = :co... | ruby | chosen |
[
{
"from": "system",
"value": "Disable sentry if env SENTRY_DSN is empty\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nRaven.configure do |config|\n config.dsn = ENV.fetch('SENTRY_DSN')\n\n config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s)\nen... | ruby | chosen |
[
{
"from": "system",
"value": "Move timestamp to key from dimension\n\nSeems like when something occurred should be a first class thing not a dimension.\n"
},
{
"from": "human",
"value": "require \"delegate\"\nrequire \"flipper/instrumenters/noop\"\n\nmodule Flipper\n module Cloud\n class Ins... | ruby | chosen |
[
{
"from": "system",
"value": "Add more song info. Add album info.\n"
},
{
"from": "human",
"value": "require 'sinatra'\nrequire \"sinatra/namespace\"\nrequire 'json'\nrequire 'ruby-mpd'\nrequire 'cgi'\n\nclass MPDClient < Sinatra::Base\n register Sinatra::Namespace\n\n namespace '/api' do\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.0.2.0 to 0.0.3.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'controls'\n s.version = '0.0.2.0'\n s.summary = 'Test controls'\n s.description = ' '\n\n s.authors = ['... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec so gem will build\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'hoard/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix search result URL in JSON response\n"
},
{
"from": "human",
"value": "json.states do\n json.array!(@states) do |state|\n json.name state.name\n json.url state_path(state)\n end\nend\n\njson.districts do\n json.array!(@districts) do |district|\n json.... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused method from interface also"
},
{
"from": "human",
"value": "module FastlaneCI\n # Abstract base class for all config data sources\n class ProjectDataSource\n def projects\n not_implemented(__method__)\n end\n\n def git_repos\n not_... | ruby | chosen |
[
{
"from": "system",
"value": "New: Make Ruby 2.4 the minimum required version.\n\nThe handling of Integer (Fixnum, Bignum) changed between 2.3 and 2.4.\nWe cannot support both, so we have to move on to 2.4 here.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib',... | ruby | chosen |
[
{
"from": "human",
"value": "Create tests for responses controller\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe ResponsesController do\n\n let(:user) {FactoryGirl.create(:user)}\n let(:sample_question) {FactoryGirl.create(:question)}\n let(:sample_answer) {FactoryGirl.c... | ruby | chosen |
[
{
"from": "system",
"value": "Add Sequel querying integration spec\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\n#TODO: Add general compatibility specs for Sequel\ndescribe \"Sequel compatibility\", orm: :sequel do\nend\n"
},
{
"from": "gpt",
"value": "require \"spec_... | ruby | chosen |
[
{
"from": "system",
"value": "Add :xls and :csv as custom mime type\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Add new mime types for use in respond_to blocks:\n# Mime::Type.register \"text/richtext\", :rtf\n"
},
{
"from": "gpt",
... | ruby | chosen |
[
{
"from": "system",
"value": "Use UrlFetcher and DataFetcher to get data.\n"
},
{
"from": "human",
"value": "module Pris\n module Vimla\n class PriceCollector\n\n def countries\n end\n\n end\n end\nend"
},
{
"from": "gpt",
"value": "module Pris\n module Vimla\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Include all the files under lib folders\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'plaid'\n s.version = '0.1.6'\n s.date = '2014-04-11'\n s.summary = 'Plaid Ruby Gem'\n s.description = 'Ruby Gem wrapper fo... | ruby | chosen |
[
{
"from": "system",
"value": "Set CSRF to a null session."
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n # Prevent CSRF attacks by raising an exception.\n # For APIs, you may want to use :null_session instead.\n protect_from_forgery with: :exception\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix user avatar uploads, not social avatars.\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n protect_from_forgery\n\n before_action :configure_permitted_parameters, if: :devise_controller?\n before_filter :check_user_pass... | ruby | chosen |
[
{
"from": "system",
"value": "Use casecmp instead of upcase\n"
},
{
"from": "human",
"value": "require_dependency 'spree/calculator'\n\nmodule Spree\n class Calculator::FlatRate < Calculator\n preference :amount, :decimal, default: 0\n preference :currency, :string, default: ->{ Spree::Co... | ruby | chosen |
[
{
"from": "system",
"value": "Add logic to store facebook login access_token and functionality\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n # Prevent CSRF attacks by raising an exception.\n # For APIs, you may want to use :null_session instead.\n p... | ruby | chosen |
[
{
"from": "human",
"value": "Add script to update ride counts\n"
},
{
"from": "gpt",
"value": "require_relative \"../config/environment\"\n\ncompetition = Competition.first\n\nweeks = (competition.start_on..competition.end_on).map do |date|\n date.beginning_of_week..date.end_of_week\nend.to_a.u... | ruby | chosen |
[
{
"from": "system",
"value": "Add edit Action for SalesPage Controller\n\nUpdate the SalesPage controller to include an edit action.\n"
},
{
"from": "human",
"value": "class SalesPagesController < ApplicationController\n def show\n @club = Club.find params[:club_id]\n @sales_page = ... | ruby | chosen |
[
{
"from": "system",
"value": "Change default email addresses of test email\n"
},
{
"from": "human",
"value": "class TestEmailsController < ApplicationController\n # We're using the simple_format helper below. Ugly but quick by bringing it into the controller\n include ActionView::Helpers::Text... | ruby | chosen |
[
{
"from": "system",
"value": "Update mailer to direct users to correct URL\n"
},
{
"from": "human",
"value": "class UserMailer < ApplicationMailer\n default from: 'witness.me.app@gmail.com'\n\n def welcome_email(user)\n @user = user\n @url = 'http://murmuring-caverns-54973.herokuapp.com... | ruby | chosen |
[
{
"from": "system",
"value": "Add a hack to display backtrace on wire exceptions too\n"
},
{
"from": "human",
"value": "module Cucumber\n module WireSupport\n # Proxy for an exception that occured at the remote end of the wire\n class WireException < StandardError\n module CanSetName... | ruby | chosen |
[
{
"from": "system",
"value": "Support formula on other GitHub repos\n\n(e.g. caskroom/cask/brew-cask)\n"
},
{
"from": "human",
"value": "require \"serverkit/resources/package\"\n\nmodule Serverkit\n module Resources\n class HomebrewPackage < Package\n end\n end\nend\n"
},
{
"from... | ruby | chosen |
[
{
"from": "system",
"value": "Test \"text\" value of response hash\n"
},
{
"from": "human",
"value": "require 'json'\nrequire 'uri'\nrequire 'net/http'\n#require_relative './dns'\nget '/' do\n erb :index\nend\nget '/oauth' do\n auth_code = params['code']\n client_id = \"19358800983.4099993155... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure runtime/spec tests are running inside opal, not ruby\n"
},
{
"from": "human",
"value": "# make sure these tests are indeed running inside opal, not any other\n# ruby engine.\n#unless RUBY_ENGINE =~ /opal/\n# abort <<-EOS\n#Opal Tests\n#==========\n#\n#The... | ruby | chosen |
[
{
"from": "system",
"value": "Replace sleeping with notification via pipe.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe DynamoDBMutex::Lock do\n\n let(:locker) { DynamoDBMutex::Lock }\n let(:lockname) { 'test.lock' }\n\n describe '#with_lock' do\n\n def run_for(seco... | ruby | chosen |
[
{
"from": "system",
"value": "Add 'load' test to Rails 3 tests\n"
},
{
"from": "human",
"value": "class HomeController < ApplicationController\n before_filter :filter_it, :only => :test_filter\n\n def index\n end\n\n def test_params\n @name = params[:name]\n @indirect = indirect_method... | ruby | chosen |
[
{
"from": "system",
"value": "Configure cloud routes in initializers\n"
},
{
"from": "human",
"value": "require \"flipper/railtie\"\n\nmodule Flipper\n module Cloud\n class Engine < Rails::Engine\n initializer \"flipper.cloud\" do\n config.after_initialize do |app|\n clo... | ruby | chosen |
[
{
"from": "system",
"value": "Allow to pass options in nested_form method\n"
},
{
"from": "human",
"value": "module FormObjects\n module Nesting\n def nested_form(attribute, form)\n attribute(attribute, form)\n validates_associated(attribute)\n define_nested_writer_method(attr... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Ruby \"1.9.3\" issue with \"OpenStruct\"\n"
},
{
"from": "human",
"value": "module Foundry\n class Configurator\n class << self\n def configure(opts={})\n structify(\n load_yaml(\n evaluate_erb(\n load_by_filename... | ruby | chosen |
[
{
"from": "system",
"value": "Fix development seed data after introduction of actors"
},
{
"from": "human",
"value": "after 'development:users' do\n def has_draft?\n rand > 0.5\n end\n\n user_list = User.order('RANDOM()').limit(100)\n\n 100.times do\n FactoryBot.create(:work, depositor... | ruby | chosen |
[
{
"from": "system",
"value": "Update deploy to be on DEV server\n"
},
{
"from": "human",
"value": "require \"extensions/views\"\n\nactivate :views\nactivate :directory_indexes\n\nset :relative_links, true\nset :css_dir, 'assets/stylesheets'\nset :js_dir, 'assets/javascripts'\nset :images_dir, 'a... | ruby | chosen |
[
{
"from": "system",
"value": "Add magnitude and emission factor"
},
{
"from": "human",
"value": "require 'leap'\nrequire 'conversions'\n\nmodule BrighterPlanet\n module Lodging\n module CarbonModel\n def self.included(base)\n base.extend ::Leap::Subject\n base.decide :emis... | ruby | chosen |
[
{
"from": "system",
"value": "Add stdout info for /var/log/upstart logs\n"
},
{
"from": "human",
"value": "# This file is used by Rack-based servers to start the application.\nif %w(production devunicorn).include?(ENV['RAILS_ENV']) && ENV['ENV']\n require 'unicorn/worker_killer'\n require_rela... | ruby | chosen |
[
{
"from": "system",
"value": "Allow sudo and auto remember_host!"
},
{
"from": "human",
"value": "require 'net/ssh'\n\nmodule SimpleProvision\n class CLI\n attr_reader :profile, :username, :host\n def initialize(args)\n @profile = args[:profile]\n @username = args[:username]\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Move fill_in_signin_form method in AuthHelper\n"
},
{
"from": "human",
"value": "module AuthHelper\n def visit_protected(path)\n user = create(:user, password: gen_secure_pass)\n \n visit_protected_path(path, user.username, password)\n end\n\n def visit_... | ruby | chosen |
[
{
"from": "system",
"value": "Make MockServer expose latest requests' paths\n"
},
{
"from": "human",
"value": "require 'stringio'\n\nclass MockServer < Struct.new(:port, :response)\n include Celluloid::IO\n\n def run_async\n server_socket = TCPServer.new '', port\n async.accept_connectio... | ruby | chosen |
[
{
"from": "system",
"value": "Add profiler files to gemspec\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"busted/version\"\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Remove the `:coffee` and `:coffeescript` Haml filters\"\"\n\nThis reverts commit b0145d765b94d2cef86b10b6dd22895779cfef33.\n"
},
{
"from": "human",
"value": "Haml::Template.options[:ugly] = true\n"
},
{
"from": "gpt",
"value": "Haml::Te... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing require of `delegate`\n\nOnce again, rspec required this for me so when running from the rake\ntask the tests failed.\n"
},
{
"from": "human",
"value": "module Formstack\n class Collection < SimpleDelegator\n def initialize(array, klass:, context: []... | ruby | chosen |
[
{
"from": "system",
"value": "Add an override to fix the RubyInline breakage that means it crashes\nif the bundle has already been built.\n\n\ngit-svn-id: 40196796c19c0e7557af02d93710b150381d7241@97 f5dbc166-08e2-44d3-850c-36126807790f\n"
},
{
"from": "human",
"value": "require 'inline'\n\n# Mon... | ruby | chosen |
[
{
"from": "system",
"value": "Remove pry-debugger from development dependencies.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'subtle/version'\n\nGem::Specification.new d... | ruby | chosen |
[
{
"from": "system",
"value": "Remove old node state when running remove-accounts.\n"
},
{
"from": "human",
"value": "#\n# Copyright:: Copyright (c) 2015 GitLab B.V.\n# License:: Apache License, Version 2.0\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use... | ruby | chosen |
[
{
"from": "human",
"value": "Add new integration test file for manipulating projects\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\nclass UsersManipulateProjectTest < ActionDispatch::IntegrationTest\n def setup\n @user = users(:test_user)\n end\n\n test 'logged-in user adds a pr... | ruby | chosen |
[
{
"from": "system",
"value": "Add the BACH metrics and monitoring services to Kafka clusters\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: bcpc_kafka\n# Recipe: zookeeper_server\n#\n\ninclude_recipe 'bcpc_kafka::default'\n\n# For the time being, this will have to be force_override.\nno... | ruby | chosen |
[
{
"from": "system",
"value": "[Sass] Convert Sass::Tree::DebugNode docs to YARD.\n"
},
{
"from": "human",
"value": "module Sass\n module Tree\n class DebugNode < Node\n def initialize(expr, options)\n @expr = expr\n super(options)\n end\n\n protected\n\n def... | ruby | chosen |
[
{
"from": "system",
"value": "Comment why we need raw_session.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nmodule Warden\n module Mixins\n module Common\n\n # Convinience method to access the session\n # :api: public\n def session\n env['rack.session']\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Migrate spec from should to expect\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'spec_helper'\n\nmodule Rubocop\n module Cop\n describe DefWithParentheses do\n let (:def_par) { DefWithParentheses.new }\n\n it 'reports an offence for ... | ruby | chosen |
[
{
"from": "system",
"value": "Add gem description to stop it complaining.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/super_mega_ultra_capistrano_extensions/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Tim Coo... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issue with db:create failing because of i18n initializer\n"
},
{
"from": "human",
"value": "require 'i18n/backend/active_record'\n# I18n.backend = I18n::Backend::ActiveRecord.new\nTranslation = I18n::Backend::ActiveRecord::Translation\n\n# if Translation.table_... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spaced paths with brew bottle.\n\nWe shouldn't ever really have these but better to be safe than sorry.\n"
},
{
"from": "human",
"value": "# Builds binary brew package\nbrew_install\n\ndestination = HOMEBREW_PREFIX + \"Bottles\"\nif not File.directory?(destinati... | ruby | chosen |
[
{
"from": "system",
"value": "Use Concurrent::AtomicFixnum for test view\n\nThis is basically what was there before, but using the specific class\nmakes the intention a little clearer.\n"
},
{
"from": "human",
"value": "require 'concurrent/atomics'\n\nclass TestView < Peek::Views::View\n class ... | ruby | chosen |
[
{
"from": "human",
"value": "Add fields to builds - status and docker info\n"
},
{
"from": "gpt",
"value": "class AddBuildFields < ActiveRecord::Migration\n def change\n add_column :builds, :build_status, :string\n add_column :builds, :docker_image_id, :string\n add_column :builds, :do... | ruby | chosen |
[
{
"from": "system",
"value": "Add likewise to CentOS recipe\n\n\nFormer-commit-id: ae208aa72ff24a22ff4a8d4dd70aa02552fb74cf"
},
{
"from": "human",
"value": "#Make sure that this recipe only runs on ubuntu systems\nif platform?(\"centos\")\n\n#Base recipes necessary for a functioning system\nincl... | ruby | chosen |
[
{
"from": "system",
"value": "Add check for signed_in user in JsLibController\n\nPrevent 500's when not logged in user is requesting a template\n\nSigned-off-by: tomdev <96835dd8bfa718bd6447ccc87af89ae1675daeca@codigy.nl>\n"
},
{
"from": "human",
"value": "class JsLibController < ApplicationCont... | ruby | chosen |
[
{
"from": "system",
"value": "Allow sidekiq retry for Campaign polling jobs\n"
},
{
"from": "human",
"value": "module Jobs\n class AutobotCampaign < Jobs::Base\n attr_accessor :campaign\n\n sidekiq_options retry: false\n\n def last_polled_at\n campaign[\"last_polled_at\"]\n end... | ruby | chosen |
[
{
"from": "system",
"value": "Add spotify to base osx runlist\n\nThis commit adds spotify to the osx_base runlist.\n"
},
{
"from": "human",
"value": "include_recipe \"wel_station::create_var_chef_cache\"\ninclude_recipe \"wel_station::sshd_on\"\ninclude_recipe \"wel_station::oh_my_zsh\"\ninclude... | ruby | chosen |
[
{
"from": "system",
"value": "Update 'answer a question' feature\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe \"Answer a question\", type: :feature, js: true do\n subject(:visit_page) do\n login_as create(:user)\n\n exercise = create(:exercise)\n question = cre... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for NOT finding PT story number\n\nin the temporary commit message. Just to cover all of our bases!\n[#26437519]\n"
},
{
"from": "human",
"value": "require 'git_tracker/commit_message'\nrequire 'commit_message_helper'\n\ndescribe GitTracker::CommitMessage d... | ruby | chosen |
[
{
"from": "system",
"value": "Improve Gitlab::GitAccessWiki spec with download access checks\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Gitlab::GitAccessWiki, lib: true do\n let(:access) { Gitlab::GitAccessWiki.new(user, project, 'web', authentication_abilities: authen... | ruby | chosen |
[
{
"from": "system",
"value": "Update view plugin to expect default namespace in sub-app containers"
},
{
"from": "human",
"value": "require \"roda\"\nrequire \"rack/csrf\"\n\nclass Roda\n module RodaPlugins\n module Page\n module InstanceMethods\n def current_page\n page... | ruby | chosen |
[
{
"from": "system",
"value": "Update outdated code in spree_api\n"
},
{
"from": "human",
"value": "class Api::ProductsController < Api::BaseController\n resource_controller_for_api\n actions :index, :show, :create, :update\n include Spree::Search\n\n private\n define_method :collection do... | ruby | chosen |
[
{
"from": "system",
"value": "Change it because it isn't an array anymore.\n\nFormality Level isn't an array anymore because of fixed relations.\n"
},
{
"from": "human",
"value": "class FormalityLevelsController < InheritedResources::Base\n belongs_to :ontology, optional: true\n before_filter ... | ruby | chosen |
[
{
"from": "system",
"value": "Support Rails 5.2 CSRF by default configuration\n\nFixes #3.\n"
},
{
"from": "human",
"value": "module RVT\n class ApplicationController < ActionController::Base\n before_action :prevent_unauthorized_requests!\n\n private\n\n def prevent_unauthorized_reque... | ruby | chosen |
[
{
"from": "system",
"value": "Change whitespec to fource a travis ci test\n"
},
{
"from": "human",
"value": "require \"test_helper.rb\"\nrequire \"api/problem\"\n\ndescribe \"Api::Problem module\" do\n\n it \"should return a hash\" do\n\n fake_class = class Class\n include Api::Problem\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix buildr feature so that it will run on a system which doesn't have a primed buildr installation.\n\n(It still requires that buildr be installed, though.)\n"
},
{
"from": "human",
"value": "Given /a buildr project/ do\n switch_to_project('buildr')\n\n open(\"bui... | ruby | chosen |
[
{
"from": "system",
"value": "Create seed data for job terms\n"
},
{
"from": "human",
"value": "When(/^he submits the create job form$/) do\n visit('/jobs/new')\n fill_in('job_title', :with => 'Aerospace engineer intern')\n select('Internship', :from => 'job_term')\n fill_in('job_location', ... | ruby | chosen |
[
{
"from": "system",
"value": "Add case when Value is not set\n"
},
{
"from": "human",
"value": "require 'fireap/data/kv'\n\nrequire 'base64'\n\nkv = {\n 'Key' => 'version',\n 'Value' => Base64.encode64('v0.1.0'),\n}\n\nraw = Fireap::Data::Kv.new(kv)\ndata = raw.to_model\n\ndescribe 'New Kv ... | ruby | chosen |
[
{
"from": "system",
"value": "Make spec pending for now -- jenkins does not like it\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"i18n integrity checks\" do\n\n it 'should have an i18n key for all trust levels' do\n TrustLevel.all.each do |ts|\n ts.name.should_n... | ruby | chosen |
[
{
"from": "system",
"value": "Set random key if none is set (VCR will still use recorded requests)\n"
},
{
"from": "human",
"value": "require 'bundler/setup'\nBundler.setup\n\nrequire 'dotenv'\nDotenv.load\n\nrequire 'inky'\nrequire 'vcr'\n\nAPI_BASE_URL = 'https://www.filepicker.io/api'\n\nVCR.... | ruby | chosen |
[
{
"from": "system",
"value": "Remove VCR configuration for now\n"
},
{
"from": "human",
"value": "## Support for 1.8.x\nunless Kernel.respond_to?(:require_relative)\n module Kernel\n def require_relative(path)\n require File.join(File.dirname(caller[0]), path.to_str)\n end\n end\nen... | ruby | chosen |
[
{
"from": "system",
"value": "Remove useless variables assignments for @houndci\n"
},
{
"from": "human",
"value": "require \"rake\"\n\ndescribe \"trailmix:schedule_all_prompts\", sidekiq: :inline do\n before do\n load \"tasks/trailmix.rake\"\n Rake::Task.define_task(:environment)\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add step for seeing repository branches\n"
},
{
"from": "human",
"value": "When(/^I enter the Git URL of a public repository$/) do\n visit '/'\n fill_in 'Repository URL', with: 'git://github.com/git/git.git'\n click_on 'View repository'\nend\n"
},
{
"from... | ruby | chosen |
[
{
"from": "system",
"value": "Update Android Studio (Canary) to 2.1 Preview 3\n"
},
{
"from": "human",
"value": "cask 'android-studio-canary' do\n version '2.1.0.0-143.2664576'\n sha256 '0d6661c414beb41a670f439b663ae06b78847d9c728ca14d5ce0efaf21cf5a74'\n\n url \"https://dl.google.com/dl/andro... | ruby | chosen |
[
{
"from": "system",
"value": "Edit migration to remove not_null constraint from customer\n"
},
{
"from": "human",
"value": "class CreateCustomers < ActiveRecord::Migration\n def change\n create_table :customers do |t|\n t.string :first_name, null: false\n t.string :last_name\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add news items controller specs.\n"
},
{
"from": "gpt",
"value": "require \"spec_helper\"\n\nmodule Refinery\n module News\n describe ItemsController do\n let!(:item) { FactoryGirl.create(:news_item) }\n let(:page) { Refinery::Page.where(:link_url => \"... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the bug who was raise cause the assigns didnt existed anymore.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nshared_examples \"customer actions\" do\n describe \"show\" do\n it \"the customer\" do\n get :show, :id => @customer.id\n re... | ruby | chosen |
[
{
"from": "system",
"value": "Update Gimp from Lisanet to 2.8.10\n"
},
{
"from": "human",
"value": "class GimpLisanet < Cask\n url 'http://downloads.sourceforge.net/gimponosx/Gimp-2.8.6p1-MountainLion.dmg'\n homepage 'http://gimp.lisanet.de'\n version '2.8.6'\n sha1 '0b93fc41a5c7705c40345345... | ruby | chosen |
[
{
"from": "system",
"value": "Update to 0.3.8 and fix version string format\n"
},
{
"from": "human",
"value": "cask :v1 => 'popcorn-time' do\n version '3.7.2'\n sha256 \"a35b5402c84b69bf54c86c278c62d93d933506966c8c819e56f97877e4d2cfb7\"\n\n url \"http://31.7.184.36/build/Popcorn-Time-0.#{vers... | ruby | chosen |
[
{
"from": "system",
"value": "Put the resources user to the right place\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n\n resources :users\n scope '/:locale', :locale => /de|fr|it|en/, :format => /json|html/ do\n resources :words\n\n resources :categories\n\n\n end... | ruby | chosen |
[
{
"from": "system",
"value": "Add :update action to guests\n"
},
{
"from": "human",
"value": "SchedDo::Application.routes.draw do\n get '/auth/yammer/callback' => 'sessions#create'\n get '/auth/yammer_staging/callback' => 'sessions#create'\n get '/sign_out' => 'sessions#destroy', as: 'sign_ou... | ruby | chosen |
[
{
"from": "system",
"value": "Update Routes File for Discussion Board edit\n\nAdd a route for editing a Discussion Board.\n"
},
{
"from": "human",
"value": "Ifsimply::Application.routes.draw do\n devise_for :users, :controllers => { :registrations => 'registrations' }\n\n root :to => 'home#ind... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Set up temporary redirect\"\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n get \"/government/uploads/system/uploads/attachment_data/file/724982/The_future_relationship_between_the_United_Kingdom_and_the_European_Union_WEB_VERSION.pdf... | ruby | chosen |
[
{
"from": "system",
"value": "Add some newlines to template handler compiled code\n"
},
{
"from": "human",
"value": "require 'zippy'\n\nMime::Type.register 'application/zip', :zip\n\nmodule ::ActionView\n module TemplateHandlers\n class Zipper < TemplateHandler\n include Compilable\n \n... | ruby | chosen |
[
{
"from": "system",
"value": "Use name of formula rather than name of dependency\n\nCloses #27192.\n\nSigned-off-by: Jack Nagel <43386ce32af96f5c56f2a88e458cb94cebee3751@gmail.com>\n"
},
{
"from": "human",
"value": "require 'formula'\nrequire 'tab'\nrequire 'set'\n\nmodule Homebrew extend self\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add age column to Character\n"
},
{
"from": "human",
"value": "class CreateCharacters < ActiveRecord::Migration\n def change\n \tcreate_table :characters do |t|\n \t\tt.string :char_id\n \t\tt.string :name\n \t\tt.text :description\n \tend\n end\nend\n"
},
... | ruby | chosen |
[
{
"from": "system",
"value": "Use activerecord 4.0.0 for reporting bugs using the template[ci skip]\n"
},
{
"from": "human",
"value": "# Activate the gem you are reporting the issue against.\ngem 'activerecord', '3.2.13'\nrequire 'active_record'\nrequire 'minitest/autorun'\nrequire 'logger'\n\n#... | ruby | chosen |
[
{
"from": "system",
"value": "Add class to list view\n"
},
{
"from": "human",
"value": "class ClassEnrollmentsController < ApplicationController\n active_scaffold :class_enrollment do |config|\n config.list.sorting = {:enrollment => 'ASC'}\n config.list.columns = [:enrollment, :situation,... | ruby | chosen |
[
{
"from": "human",
"value": "Add file testing for Reek.\n"
},
{
"from": "gpt",
"value": "# Example \"borrowed\" from https://github.com/troessner/reek#example\nclass Dirty\n # This method smells of :reek:NestedIterators but ignores them\n def awful(x, y, offset = 0, log = false)\n puts @scr... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `url` stanza comment for Liri Browser.\n"
},
{
"from": "human",
"value": "cask 'liri-browser' do\n version '0.3'\n sha256 'cdb39c6470f9e0a7b74e42dc31787172d2dacec6b074b2c3ecbce1b7b79dee7b'\n\n url \"https://github.com/liri-project/liri-browser/releases/downlo... | ruby | chosen |
[
{
"from": "system",
"value": "Use shorter viewport height for widths >= 960\n\nWe were setting the viewport height to be `viewport width * 2`.\n\nFor narrow viewport widths this actually makes some sense. For example,\nphones are often held in portrait orientation where the height is\nsomewhere within the z... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for the BitBucket::Invitations\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe BitBucket::Invitations do\n subject { described_class.new }\n\n describe '#invitations' do\n before do\n expect(subject).to receive(:request).with(\n... | ruby | chosen |
[
{
"from": "human",
"value": "Set theorodialness to unknown where it is nil.\n"
},
{
"from": "gpt",
"value": "class SetTheorodialnessToUnknownWhereNil < ActiveRecord::Migration\n def self.up\n LogicMapping.find_each do |logic_mapping|\n unless logic_mapping.theoroidalness\n logic_... | ruby | chosen |
[
{
"from": "system",
"value": "Migrate the data as well\n"
},
{
"from": "human",
"value": "class AddDeliveryIdToPostfixLogLines < ActiveRecord::Migration\n def change\n add_column :postfix_log_lines, :delivery_id, :integer\n end\nend\n"
},
{
"from": "gpt",
"value": "class AddDeli... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.