conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Allow corpora without a language specification\n\nLanguage specs is only needed for tagged and/or multilingual corpora.\n"
},
{
"from": "human",
"value": "require 'globalize3'\n\nmodule Rglossa\n class Corpus < ActiveRecord::Base\n attr_accessible :locale, :name... | ruby | chosen |
[
{
"from": "system",
"value": "Replace method definition with delegations\n"
},
{
"from": "human",
"value": "class TrackedBranch < ActiveRecord::Base\n belongs_to :project\n has_many :test_jobs, dependent: :destroy\n\n def last_run\n test_jobs.sort_by(&:created_at).last\n end\n\n def stat... | ruby | chosen |
[
{
"from": "system",
"value": "Add rubocop as dev dependency\n"
},
{
"from": "human",
"value": "# coding: utf-8\n# frozen_string_literal: true\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'mnemosyne/version'\n\nGem::Specification.ne... | ruby | chosen |
[
{
"from": "human",
"value": "Check that memcached is running on the frontends\n"
},
{
"from": "gpt",
"value": "require \"serverspec\"\n\n# Required by serverspec\nset :backend, :exec\n\ndescribe package(\"memcached\") do\n it { should be_installed }\nend\n\ndescribe service(\"memcached\") do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove guard around apt_update in test\n\nThere's no need to do this in modern Chef releases\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "#\n# Cookbook:: runit_test\n# Recipe:: default\n#\n# Copyri... | ruby | chosen |
[
{
"from": "system",
"value": "Fix data_format submit, handle min and max date\n"
},
{
"from": "human",
"value": "module DatePicker\n module Styles\n class Flatpickr\n def types\n [:date, :datetime, :time]\n end\n def mapping()\n :flatpickr\n end\n def t... | ruby | chosen |
[
{
"from": "system",
"value": "Return info/extra hashes directly, no need to recompose them.\n"
},
{
"from": "human",
"value": "module OmniAuth\n module Strategies\n class Inspire9 < OmniAuth::Strategies::OAuth2\n DEFAULT_PROVIDER_URL = 'https://identity.inspire9.com'\n\n option :cl... | ruby | chosen |
[
{
"from": "system",
"value": "Add pluralization irregularity for taxon -> taxa\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Add new inflection rules using the following format\n# (all these examples are active by default):\n# ActiveSupport::... | ruby | chosen |
[
{
"from": "system",
"value": "Include a method to query object_label method names in Labelable\n"
},
{
"from": "human",
"value": "module RailsAdmin\n module Config\n # Defines a generic label/name/title configuration\n module Labelable\n # Try to find a user-friendly label for an obj... | ruby | chosen |
[
{
"from": "system",
"value": "Add todo tag for creating contexts in the rule registry\n"
},
{
"from": "human",
"value": "module SuperSettings\n # RuleRegistry contains allows super_settings users to register themselves\n class RuleRegistry\n @value_hash = {}\n\n class << self\n def ... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for custom formatters\n\nTry to expose when changes may break a ‘typical’ custom formatter which has been implemented based on the Pretty formatter\n"
},
{
"from": "gpt",
"value": "require 'helper'\n\nmodule SSHKit\n # Try to maintain backwards compatibilit... | ruby | chosen |
[
{
"from": "system",
"value": "Save the scrapped url and its contents to the db\n"
},
{
"from": "human",
"value": "class Plag\n include Anemon\n\n @anemon = Anemon::Scrapper.new\n\n def self.scrap(url)\n @anemon.scrap(url)\n end\n\n def self.compare(file_name)\n @anemon.compare(url)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix loading `ActionMailbox::BaseController` when CSRF protection is disabled\n\nWhen `default_protect_from_forgery` is false, `verify_authenticity_token`\ncallback does not define and `skip_forgery_protection` raise exception.\n\nFixes #34837.\n"
},
{
"from": "human",
... | ruby | chosen |
[
{
"from": "system",
"value": "[aphrodite] Update status history and percentage\n"
},
{
"from": "human",
"value": "class Base\n def self.before_perform(*args)\n logging('start', args)\n store_status('start', args.first)\n end\n\n def self.after_perform(*args)\n logging('end', args)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce files bundled in gem\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'object_tracker/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Install alacritty with Homebrew Cask\n"
},
{
"from": "human",
"value": "cask '1password'\ncask 'alfred'\ncask 'appcleaner'\ncask 'bartender'\ncask 'docker'\ncask 'gitify'\ncask 'google-chrome'\ncask 'google-cloud-sdk'\ncask 'gyazo'\ncask 'minikube'\ncask 'ngrok'\nca... | ruby | chosen |
[
{
"from": "system",
"value": "Fix missing method around migration\n\nNo idea how this one happened.\n"
},
{
"from": "human",
"value": "class IncreaseTagSetNameColumnWidth < ActiveRecord::Migration\n change_table :iseq_flowcell do |t|\n t.change \"tag_set_name\", :string, limit: 100,... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to Ruby 2.2 compatible non-squiggly heredoc\n"
},
{
"from": "human",
"value": "Sequel.migration do\n change do\n alter_table :entity_ids do\n add_foreign_key :entity_source_id, :entity_sources\n add_index [:entity_source_id, :sha1], unique: true... | ruby | chosen |
[
{
"from": "system",
"value": "Fix included in gem files in gemspec\n"
},
{
"from": "human",
"value": "$:.push File.expand_path('../lib', __FILE__)\n\n# Maintain your gem's version:\nrequire 'animate-rails/version'\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do |s... | ruby | chosen |
[
{
"from": "system",
"value": "Extend delay in between fusion table queries\n"
},
{
"from": "human",
"value": "module Couriers\n class Fusionable\n class InvalidFusionTableError < Exception; end \n \n extend Resque::Plugins::HerokuAutoscaler\n \n @queue = 'couriers'\n \n class... | ruby | chosen |
[
{
"from": "system",
"value": "Create a GameState when showing a game\n"
},
{
"from": "human",
"value": "require_relative '../services/create_game'\nclass GamesController < ApplicationController\n\n def new; end\n\n def show\n @game = Game.find(params[:id])\n end\n\n def index; end\n\n de... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"remove logic which should not be in the controller\"\n\nThis reverts commit f7014e403f99a2308d68ea60772176d6093ea2aa.\n"
},
{
"from": "human",
"value": "class SalesController < ApplicationController\n def index\n @sales = Sale.all\n end\n\n def new\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add task to fill procedures table path column\n"
},
{
"from": "gpt",
"value": "namespace :after_party do\n desc 'Deployment task: add_path_to_procedures'\n task add_path_to_procedures: :environment do\n puts \"Running deploy task 'add_path_to_procedures'\"\n\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add settings for video model\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\nclass Course::VideoSettings\n include ActiveModel::Model\n include ActiveModel::Conversion\n include ActiveModel::Validations\n\n # Initialises the settings adapter\n #\... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor generate new puzzle ruthlessly\n"
},
{
"from": "human",
"value": "class GenerateNewPuzzle\n def initialize(game:)\n @game = game\n end\n\n def call\n grid = Grid.new(size: @game.board_size)\n\n grid_array = grid.randomly_populate!\n create_cl... | ruby | chosen |
[
{
"from": "system",
"value": "Add frozen_string_literal comment to new class\n"
},
{
"from": "human",
"value": "class OrderCycleWarning\n def initialize(current_user)\n @current_user = current_user\n end\n\n def call\n distributors = active_distributors_not_ready_for_checkout\n\n ret... | ruby | chosen |
[
{
"from": "system",
"value": "Add API docs for PoiLogController\n"
},
{
"from": "human",
"value": "class Api::PoiLogController < Api::ApiController\n defaults :resource_class => ::PoiLog, :collection_name => 'poi_logs'\n\n actions :index\n\n api :GET, \"/nodes/changes\", \"Get node changes st... | ruby | chosen |
[
{
"from": "system",
"value": "Fix array wrap issue of status controller\n"
},
{
"from": "human",
"value": "require 'cache_lock'\n\nclass Json::StatusController < ApplicationController\n layout false\n\n def index\n items = {}\n total_listeners = 0\n\n rails_cache_keys = Rails.cache.in... | ruby | chosen |
[
{
"from": "system",
"value": "Set up new method to get all sigs.\n"
},
{
"from": "human",
"value": "class SuggestionsController < ApplicationController\n def new\n @suggestion = Suggestion.new\n end\n\n def create\n end\nend\n"
},
{
"from": "gpt",
"value": "class SuggestionsCo... | ruby | chosen |
[
{
"from": "system",
"value": "Remove hacked support for kaminari page name\n\nHistorically this looks like it is to support kaminari and will_paginate\nside-by-side, which doesn't seem like a reasonable thing for us to care\nabout inside of core.\n\nAnyone that wanted this functionality can use it inside th... | ruby | chosen |
[
{
"from": "system",
"value": "Allow Rails versions greater than 4.1\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"rocket_job_mission_control/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Speci... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issue with storage method update event initialization\n"
},
{
"from": "human",
"value": "#\n# Storage Method update event. This event records the current operations for a BPT asset\n#\nclass StorageMethodUpdateEvent < AssetEvent\n \n # Callbacks\n after_i... | ruby | chosen |
[
{
"from": "system",
"value": "Move attributes to node and env attributes\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: perforce\n# Attribute:: default\n#\n# Author:: Josiah Kiehl <josiah@bluepojo.com>\n# Copyright 2012, Riot Games\n#\n# All rights reserved - Do Not Redistribute\n#\n\nd... | ruby | chosen |
[
{
"from": "system",
"value": "Remove combinedSplitAttributes key from EventGroupSerializer.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass EventGroupSerializer < BaseSerializer\n attributes :id, :name, :organization_id, :concealed, :available_live, :monitor_pacers, :s... | ruby | chosen |
[
{
"from": "system",
"value": "Change '<' to '<=' to be accurate about the 'MAX_RETRIES' variable name\n\n[#127624879]\n"
},
{
"from": "human",
"value": "module Asyncapi::Server\n class JobWorker\n\n include Sidekiq::Worker\n sidekiq_options retry: false\n MAX_RETRIES = 2\n\n def per... | ruby | chosen |
[
{
"from": "system",
"value": "Fix teacher api error respose\n"
},
{
"from": "human",
"value": "class Api::V1::TeachersController < ApplicationController\n respond_to :json\n\n def index\n respond_with Teacher.all\n end\n\n def show\n if(current_teacher)\n render current_teacher\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test rendering in controllers\n"
},
{
"from": "human",
"value": "# DeployIt - Docker containers management software\n# Copyright (C) 2015 Nicolas Rodriguez (nrodriguez@jbox-web.com), JBox Web (http://www.jbox-web.com)\n#\n# This code is free software: you can re... | ruby | chosen |
[
{
"from": "system",
"value": "Improve export processing condition on index view\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass Settings::ExportController < ApplicationController\n before_action :authenticate_user!\n\n def index\n if current_user.export_processing\... | ruby | chosen |
[
{
"from": "system",
"value": "Include helper module in the controller\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n # protect_from_forgery with: :exception\nend\n"
},
{
"from": "gpt",
"value": "class ApplicationController < ActionControlle... | ruby | chosen |
[
{
"from": "system",
"value": "Make the ApplicationHelper module methods private\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n\n include ApplicationHelper\n protect_from_forgery with: :exception\n\n before_filter :authenticate!\n\n private\n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Add new_session_path helper function to application controller\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n protect_from_forgery\n\n helper :institutions\n include InstitutionsHelper\n\n def url_for_request(request)\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove un-used params for instrument controller\n"
},
{
"from": "human",
"value": "class InstrumentsController < ApplicationController\n before_filter :authenticate_user!\n\n def index\n @instruments = Instrument.all\n end\n\n def show\n @instrument = Inst... | ruby | chosen |
[
{
"from": "system",
"value": "Hide related links behind a feature toggle\n\nWe're temporarily disabling this, because there is more work to do\non the frontend side, but we'd like to merge this branch now\nso it doesn't fall behind master.\n\nThe tests still run with this functionality enabled.\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Add user_type to handle User STI params.\n"
},
{
"from": "human",
"value": "class UsersController < ApplicationController\n skip_before_filter :require_login, :only => [:new, :create]\n before_action :set_date_format, only: [:create, :update]\n\n\tdef new\n\t\t@us... | ruby | chosen |
[
{
"from": "system",
"value": "Check if instance is running before running serverspec\n"
},
{
"from": "human",
"value": "#\n# Copyright (c) 2013-2015 SKYARCH NETWORKS INC.\n#\n# This software is released under the MIT License.\n#\n# http://opensource.org/licenses/mit-license.php\n#\n\nclass Perio... | ruby | chosen |
[
{
"from": "system",
"value": "Remove rdoc profile, we use simplcov now. [admin]\n"
},
{
"from": "human",
"value": "qed do\n\n profile :sample do\n puts (\"*\" * 78)\n puts\n\n at_exit do\n puts\n puts (\"*\" * 78)\n end\n end\n\n profile :cov do\n require 'simplecov'\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix old sessions not being recognized\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\nRails.application.config.action_dispatch.cookies_serializer = :json\n"
},
{
"from": "gpt",
"value": "# Be sure to restar... | ruby | chosen |
[
{
"from": "system",
"value": "Send the successful login message via flash[:notice] instead of flash[:message]"
},
{
"from": "human",
"value": "module Omnisocial\n class AuthController < ApplicationController\n \n unloadable\n \n def new\n if current_user?\n flash[:notice] = ... | ruby | chosen |
[
{
"from": "system",
"value": "72: Add eager loading in PortionCountBuilder\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Meals\n class PortionCountBuilder < ApplicationDecorator\n delegate_all\n\n def portion_counts\n nil_category_formula_parts = formula_... | ruby | chosen |
[
{
"from": "system",
"value": "Update Android Studio Canary to 2.1 Beta 2\n"
},
{
"from": "human",
"value": "cask 'android-studio-canary' do\n version '2.1.0.5,143.2759333'\n sha256 '8a76eb901646d340b4edf2fb0b0475d457a2b30ef019fa4b5c2f5891695d47ea'\n\n url \"https://dl.google.com/dl/android/st... | ruby | chosen |
[
{
"from": "human",
"value": "Add SBIG Universal Driver (latest version)\n"
},
{
"from": "gpt",
"value": "cask 'sbig-universal-driver' do\n version :latest\n sha256 :no_check\n\n # ftp.sbig.com was verified as official when first introduced to the cask\n url 'ftp://ftp.sbig.com/pub/SBIGDriver... | ruby | chosen |
[
{
"from": "system",
"value": "Fix scoreboard for users who have previously visited the site\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Specify a serializer for the signed and encrypted cookie jars.\n# Valid options are :json, :marshal, and... | ruby | chosen |
[
{
"from": "system",
"value": "Add ability to specify UPGRADE_HELPER_BRANCH in environment\n"
},
{
"from": "human",
"value": "name \"datadog-upgrade-helper\"\ndefault_version \"master\"\nsource github: \"DataDog/dd-agent-windows-upgrade-helper\"\nenv = {\n \"GOPATH\" => \"#{Omnibus::Config.cache... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for masterless mode\n"
},
{
"from": "gpt",
"value": "require 'spec_helper_acceptance'\n\ndescribe 'puppet::masterless' do\n let(:manifest) { <<-EOS\n package { 'gawk': ensure => installed }\n\n class { 'puppet::masterless': }\n EOS\n }\n\n sp... | ruby | chosen |
[
{
"from": "system",
"value": "Set region for s3 credentials\n"
},
{
"from": "human",
"value": "CarrierWave.configure do |config|\n config.fog_credentials = {\n :provider => 'AWS',\n :aws_access_key_id => ENV['AWS_ACCESS_KEY'],\n :aws_secret_access_key => ENV['AWS_AC... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a long-forgotten security problem :)\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 ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove secret token from current config.\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 ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix etl startup when LAST_N_DAYS is set\n\nWhen the LAST_N_DAYS environment variable is set\nthen the etl fails as environment variables are\nalways strings... and ruby is a strongly typed language.\n"
},
{
"from": "human",
"value": "class AffiliateWindow\n class E... | ruby | chosen |
[
{
"from": "system",
"value": "Add reference to user_group in User migration\n"
},
{
"from": "human",
"value": "class CreateUsers < ActiveRecord::Migration\n def change\n \tcreate_table :users do |t|\n \t\tt.string\t\t:first_name\n \t\tt.string\t\t:last_name\n \t\tt.string\t\t:user_name, nul... | ruby | chosen |
[
{
"from": "system",
"value": "Move all includes into their own realm\n"
},
{
"from": "human",
"value": "require 'openstax/rescue_from/default_exceptions'\n\nmodule OpenStax\n module RescueFrom\n class Engine < ::Rails::Engine\n ActionController::Base.send :include, Controller\n\n i... | ruby | chosen |
[
{
"from": "system",
"value": "Rebuild task didn't play nice with autoloading\n"
},
{
"from": "human",
"value": "namespace :fulltext_searchable do\n task :update => :environment do\n require 'active_record'\n puts \"Updating FulltextIndex...\"\n FulltextIndex.all.each do |r|\n if r... | ruby | chosen |
[
{
"from": "system",
"value": "Add unpaired tags from TextMate bundle"
},
{
"from": "human",
"value": "module TotallyTabular\n class HtmlHelper\n\n EMPTY_TAG = /br|input|img/\n def content_tag(tag, content=\"\", attributes={})\n if tag.to_s =~ EMPTY_TAG\n \"<%s%s>\" % [tag, att... | ruby | chosen |
[
{
"from": "system",
"value": "Update require statement in base file.\n"
},
{
"from": "human",
"value": "require 'delegate'\nrequire 'erb'\nrequire 'json'\nrequire 'ostruct'\n\n%w(build content parse source template version).each do |lib|\n require File.join File.expand_path(\"./lib\"), \"manife... | ruby | chosen |
[
{
"from": "system",
"value": "Update merged test to minitest"
},
{
"from": "human",
"value": "here = File.expand_path(File.dirname(__FILE__))\nrequire File.join(here, '..', 'test_helper')\nrequire 'tmpdir'\n\nclass TransparentPDFsTest < Test::Unit::TestCase\n\n def setup\n @klass = Class.new... | ruby | chosen |
[
{
"from": "system",
"value": "Fix tests to make them work with Rails 4.2\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Gaffe::Errors do\n describe :Actions do\n describe :show do\n let(:request) { ActionDispatch::TestRequest.new }\n let(:env) { request.env.me... | ruby | chosen |
[
{
"from": "system",
"value": "Fix route spec to avoid contraint violation\n"
},
{
"from": "human",
"value": "# == Schema Information\n# Schema version: 20100420102749\n#\n# Table name: routes\n#\n# id :integer not null, primary key\n# transport_mode_id :integer\n# numbe... | ruby | chosen |
[
{
"from": "system",
"value": "Remove an unnecessary call to `product([nil])`\n"
},
{
"from": "human",
"value": "module Owners\n # Accepts an array of file paths and returns an array of\n # owners that have subscribed to the specified files.\n #\n # @api private\n class Search\n RELATIVE ... | ruby | chosen |
[
{
"from": "human",
"value": "Make system directory and failing test\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe 'Logging In' do\n before do\n driven_by :selenium_chrome_headless\n end\n \n it 'shows the right page' do\n visit root_url\n expect(page).to have_c... | ruby | chosen |
[
{
"from": "system",
"value": "Add ignore_bot_reply, ignore_self_message to attr_accessor\n"
},
{
"from": "human",
"value": "require 'json'\nrequire 'active_support/core_ext/object'\n\nmodule Slatan\n ## Class to retain configure for slatan\n class Spirit\n # about Slack\n @slack_api_url ... | ruby | chosen |
[
{
"from": "system",
"value": "Add Pulse and Sleep Monitor to the devices IDs"
},
{
"from": "human",
"value": "module Withings\n SCALE = 1\n BLOOD_PRESSURE_MONITOR = 4\n \n def self.consumer_secret=(value)\n @consumer_secret = value\n end\n \n def self.consumer_secret\n raise 'Please... | ruby | chosen |
[
{
"from": "system",
"value": "Use name of formula rather than name of dependency\n\nCloses Homebrew/homebrew#27192.\n\nSigned-off-by: Jack Nagel <43386ce32af96f5c56f2a88e458cb94cebee3751@gmail.com>\n"
},
{
"from": "human",
"value": "require 'formula'\nrequire 'tab'\nrequire 'set'\n\nmodule Homeb... | ruby | chosen |
[
{
"from": "system",
"value": "Return in currentUser whether services are connected\n"
},
{
"from": "human",
"value": "# This file is still being used by (at least):\n#\n# * users#show\n# * the setting of currentUser in _currentUser.html.erb\n#\n# -- mark (noted down because I thought initia... | ruby | chosen |
[
{
"from": "system",
"value": "Set longer wait time for acceptance tests since we're hitting external services\n"
},
{
"from": "human",
"value": "require 'rspec'\nrequire 'capybara'\nrequire 'ostruct'\n\nrequire_relative 'visitor_agent'\nrequire_relative 'app_descriptor'\n\nMAGIC_NUMBERS = OpenSt... | ruby | chosen |
[
{
"from": "system",
"value": "Fix gem dependencies for rails >= 5.0.0.1 and lodash\n\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"action_cable_notifications/version\"\n\n# Describe your gem and declare its dependen... | ruby | chosen |
[
{
"from": "system",
"value": "Fix count when ref is just numbers '1:255'\n"
},
{
"from": "human",
"value": "module Saxlsx\n class RowsCollection\n\n include Enumerable\n\n def initialize(index, file_system, shared_strings)\n @index = index\n @file_system = file_system\n @sh... | ruby | chosen |
[
{
"from": "system",
"value": "Fix fv_search to put parens around ssearch terms\n"
},
{
"from": "human",
"value": "module SimpleSolr::Core::Index\n # Add the given hash or array of hashes\n # @return self\n def add_docs(*hash_or_hashes)\n update(hash_or_hashes)\n self\n end\n\n # A raw... | ruby | chosen |
[
{
"from": "system",
"value": "Move the call to tracks_attributes to the class def from initialize\n"
},
{
"from": "human",
"value": "module TracksAttributes\n ##\n # TracksAttributes::Base is a convienience class that offers\n # the basic services available through the TracksAttribute module\... | ruby | chosen |
[
{
"from": "system",
"value": "BugFix: Include gem dependency - rest-client\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'smartcoin/version'\n\nGem::Specification.new do |spec|\n s... | ruby | chosen |
[
{
"from": "system",
"value": "Fix missing @ on otu\n"
},
{
"from": "human",
"value": "class OtusController < ApplicationController\n before_filter :confirm_logged_in, :except => [:index, :show]\n\n def index\n where_options = {}\n if params[:taxon]\n where_options[:taxon_id] = param... | ruby | chosen |
[
{
"from": "system",
"value": "Address a problem when a diaper bank doesnt have an email listed. Have it fall back to the email of the first user of the diaperbank.\n"
},
{
"from": "human",
"value": "class DistributionMailer < ApplicationMailer\n # Subject can be set in your I18n file at config/... | ruby | chosen |
[
{
"from": "system",
"value": "Allow hal-client version to float into 3.x series\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'rspec/hal/version'\n\nGem::Specification.new do |spec|... | ruby | chosen |
[
{
"from": "system",
"value": "Add Justin Workman as an author in gemspec.\n\nWoohoo!\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'rubycards/version'\n\nGem::Specificatio... | ruby | chosen |
[
{
"from": "system",
"value": "Remove pinning from danger dependency"
},
{
"from": "human",
"value": "# coding: utf-8\nGem::Specification.new do |spec|\n spec.name = \"danger-gitlab\"\n spec.version = \"8.0.0\"\n spec.authors = [\"Orta Therox\", \"Juanito Fatas\"]\n spec.... | ruby | chosen |
[
{
"from": "system",
"value": "Add secret_key_base for encrypted cookies\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... | ruby | chosen |
[
{
"from": "system",
"value": "Raise a StatementInvalid error when trying to build a condition with hash keys that do not correspond to columns.\n"
},
{
"from": "human",
"value": "module ActiveRecord\n class PredicateBuilder\n\n def initialize(engine)\n @engine = engine\n end\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Fix production email in migration\n"
},
{
"from": "human",
"value": "class CreateRootUser < ActiveRecord::Migration\n def up\n user = User.new\n user.id = 0\n user.email = ENV[\"ROOT_EMAIL\"].blank? ? Myplaceonline::DEFAULT_SUPPORT_EMAIL : ENV[\"ROOT_EMAIL... | ruby | chosen |
[
{
"from": "system",
"value": "Use \" instead of '\n"
},
{
"from": "human",
"value": "# Set some Capistrano defaults\nset :linked_files, []\nset :linked_files, -> { [\"app/config/parameters.yml\"] }\nset :linked_dirs, []\nset :linked_dirs, -> { [\"app/logs\", \"app/sessions\", \"src/Frontend/File... | ruby | chosen |
[
{
"from": "system",
"value": "Fix package list for clusters based on CentOS\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: percona\n# Attributes:: client\n#\n\nversion = value_for_platform_family(\n \"debian\" => node[\"percona\"][\"version\"],\n \"rhel\" => node[\"percona\"][\"versio... | ruby | chosen |
[
{
"from": "system",
"value": "[DMG-406] Use improved gerrit.config template for ldap setup\n"
},
{
"from": "human",
"value": "# Encoding: utf-8\n#\n# Cookbook Name:: cicd-infrastructure\n# Attributes:: integration_gerrit_openldap\n#\n# Copyright (c) 2014 Grid Dynamics International, Inc. All Rig... | ruby | chosen |
[
{
"from": "system",
"value": "Fix glob for data directory\n\nThis was only including files in the `data` directory, excluding\nsubdirectories.\n\nChange-Id: I8a276678e0cd495196c11808ad3e3e0cdddf5c9b\nReviewed-on: http://gerrit.causes.com/40952\nTested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@ca... | ruby | chosen |
[
{
"from": "system",
"value": "Set support for minimum Ruby version to 2.1\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'birth_number/version'\n\nGem::Specification.new do |spec|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Support RailsConfig objects for credentials\n"
},
{
"from": "human",
"value": "module MiqToolsServices\n class Bugzilla\n include ServiceMixin\n\n class << self\n attr_accessor :credentials\n end\n delegate :credentials, :to => self\n\n def init... | ruby | chosen |
[
{
"from": "system",
"value": "Remove duplicate declaration of user_achievements\n"
},
{
"from": "human",
"value": "module CoursemologyV1::Source\n def_model 'user_courses', 'announcements', 'achievements', 'levels', 'user_achievements'\nend\n"
},
{
"from": "gpt",
"value": "module Co... | ruby | chosen |
[
{
"from": "system",
"value": "Fix arguments of the methods\n"
},
{
"from": "human",
"value": "require 'shellwords'\n\nmodule Serverspec\n module Commands\n class FreeBSD < Base\n def check_enabled(service)\n \"service -e | grep -- #{escape(service)}\"\n end\n\n def chec... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused and therefore confusing exception message\n\nAs discussed here [1], the exception message is only ever used as a key to\n**lookup** an error message from the locale files.\n\nLooking at the original code [2] which motivated the introduction of this\n`rescue` claus... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Adobe Acrobat Reader DC to 2015.008.20082\n"
},
{
"from": "human",
"value": "cask :v1 => 'adobe-reader' do\n version '2015.007.20033'\n sha256 '46703ba27599512223e9b89c308075a0ddb625287be8e22a87574dfc70a77eb5'\n\n url \"http://ardownload.adobe.com/pub/ado... | ruby | chosen |
[
{
"from": "system",
"value": "Update PT Mono to 1.003\n"
},
{
"from": "human",
"value": "class FontPtMono < Cask\n version '1.002'\n sha256 '93c0ca1d9873ecc7c70131fa763aaaaa24345fc8b8f193ea2175b0857823d58a'\n\n url 'http://www.fontstock.com/public/PTMono.zip'\n homepage 'http://www.paratype.... | ruby | chosen |
[
{
"from": "human",
"value": "Add a failing test - users can't edit their account details.\n"
},
{
"from": "gpt",
"value": "require \"spec_helper\"\n\n# This should not test out the functionality of the devise controllers\n# or models, since we assume that the Devise guys know what they are\n# do... | ruby | chosen |
[
{
"from": "system",
"value": "Add test to verify execute command runs properly\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'stow_test::stow_package' do\n let(:stow_package_run) do\n ChefSpec::SoloRunner.new(\n :step_into => 'stow_package'\n ).converge(describ... | ruby | chosen |
[
{
"from": "system",
"value": "Add ability to add additional body classes to body tag via host app\n"
},
{
"from": "human",
"value": "class ForestController < ApplicationController\n include Pundit\n\n protect_from_forgery with: :exception\n\n layout :layout_by_resource\n\n before_action :set... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.