conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use ternary in title helper.\n"
},
{
"from": "human",
"value": "module ApplicationHelper\n def full_title(title = '')\n base_title = 'QLRace'\n if title.empty?\n base_title\n else\n title + ' | ' + base_title\n end\n end\n\n def time_string(... | ruby | chosen |
[
{
"from": "system",
"value": "Package version increased from 0.3.0.0 to 0.3.1.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'messaging'\n s.version = '0.3.0.0'\n s.summary = 'Messaging primitives for Eventide'\n s.description = ' '\n... | ruby | chosen |
[
{
"from": "system",
"value": "Disable SimpleCov for ruby 1.8\n"
},
{
"from": "human",
"value": "begin\n require 'bundler'\nrescue LoadError\n require 'rubygems'\n retry\nend\n=begin\nbegin\n Bundler.setup(:default, :development)\nrescue Bundler::BundlerError => e\n $stderr.puts e.message\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix BigQuery quickstart spec (update to new client syntax)\n"
},
{
"from": "human",
"value": "# Copyright 2016 Google, Inc\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# ... | ruby | chosen |
[
{
"from": "system",
"value": "Use the same version as rest-open-uri\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nGem::Specification.new do |spec|\n spec.name = \"rf-rest-open-u... | ruby | chosen |
[
{
"from": "system",
"value": "Fix icd9 test now that CTEs are used for arg tables\n"
},
{
"from": "human",
"value": "require_relative \"../../../helper\"\n\ndescribe ConceptQL::Operators::Icd9 do\n it \"should use unique names for 'args table' under Impala\" do\n db = ConceptQL::Database.new... | ruby | chosen |
[
{
"from": "system",
"value": "Add method_missing tricks, remove useless debug lines.\n"
},
{
"from": "human",
"value": "module MrubyJs\n class JsObject\n def call(name, *args)\n get_func(name).invoke(*args)\n end\n\n def call_constructor(name, *args)\n get_func(name).invoke_c... | ruby | chosen |
[
{
"from": "system",
"value": "Include formatting in post content in forum feeds\n"
},
{
"from": "human",
"value": "xml.instruct! :xml, :version=>\"1.0\" \nxml.rss(:version=>\"2.0\"){\n xml.channel{\n xml.title(@forum.name + ' - ' + @w.name)\n xml.link(\"http://#{@w.domain}/\")\n xml.de... | ruby | chosen |
[
{
"from": "system",
"value": "Update CodeKit version to 2.0.6\n"
},
{
"from": "human",
"value": "class Codekit < Cask\n url 'http://incident57.com/codekit/files/codekit-16895.zip'\n appcast 'https://incident57.com/codekit/appcast/ck2appcast.xml'\n homepage 'http://incident57.com/codekit/'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Write out a chef-marketplace-running.json during the reconfigure\n"
},
{
"from": "human",
"value": "include_recipe 'chef-marketplace::enable'\n"
},
{
"from": "gpt",
"value": "include_recipe 'chef-marketplace::enable'\n\nfile '/etc/chef-marketplace/chef-m... | ruby | chosen |
[
{
"from": "human",
"value": "Add script to multi-thread delete specified grammar sessions\n"
},
{
"from": "gpt",
"value": "require 'csv'\nrequire 'httparty'\n\nTHREAD_COUNT = 10\n\nGRAMMAR_SESSION_CSV_PATH = \"grammar_sessions_to_delete.csv\" \nBASE_URL = \"https://quillconnect.firebaseio.com\"\... | ruby | chosen |
[
{
"from": "human",
"value": "Add Configuration class for working with parameters from cli\n"
},
{
"from": "gpt",
"value": "module CodeclimateCi\n class Configuration\n OPTIONS = %i(codeclimate_api_token repo_id branch_name)\n\n attr_accessor(*OPTIONS)\n\n def load_from_options(options)... | ruby | chosen |
[
{
"from": "system",
"value": "Make the :boolean field a uint8.\n"
},
{
"from": "human",
"value": "require 'ffi/msgpack/types'\nrequire 'ffi/msgpack/msg_array'\nrequire 'ffi/msgpack/msg_map'\nrequire 'ffi/msgpack/msg_raw'\n\nmodule FFI\n module MsgPack\n class MsgObjectUnion < FFI::Union\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix n+1 query issue on link expansion.\n"
},
{
"from": "human",
"value": "class LinkExpansion::ContentCache\n def initialize(with_drafts:, locale:, preload_content_ids: [])\n @with_drafts = with_drafts\n @locale = locale\n @store = editions(preload_content... | ruby | chosen |
[
{
"from": "system",
"value": "Use inner class in Ridgepole::Configuration\n"
},
{
"from": "human",
"value": "module RidgepoleRake\n class Configuration\n include ActiveSupport::Configurable\n\n # database configuration\n config_accessor :db_config do\n 'config/database.yml'\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Add back the Helpers module\n"
},
{
"from": "human",
"value": "require 'spree/sunspot/search'\n\nmodule Spree\n module Sunspot\n module FilterSupport\n def self.included(base)\n base.extend(ClassMethods)\n end\n\n module ClassMethods\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Return currnet user after updating it\n"
},
{
"from": "human",
"value": "module Travis\n module Services\n module Users\n class Update < Base\n # TODO how to figure these out\n LOCALES = %w(en es fr ja eb nl pl pt-Br ru)\n\n attr_reader... | ruby | chosen |
[
{
"from": "system",
"value": "Add installing babushka on guest\n"
},
{
"from": "human",
"value": "module VagrantPlugins\n module Babushka\n class Provisioner < Vagrant.plugin(\"2\", :provisioner)\n\n def initialize(machine, config)\n super\n end\n\n def configure(root_c... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for adding column\n"
},
{
"from": "human",
"value": "require File.join(File.dirname(__FILE__), 'test_helper')\n\nclass AlterTableTest < Test::Unit::TestCase\n def setup\n ActiveRecord::Migration.verbose = false\n ActiveRecord::Base.connection.create_... | ruby | chosen |
[
{
"from": "human",
"value": "Add rspec test for check_dir_count\n"
},
{
"from": "gpt",
"value": "#! /usr/bin/env ruby\n#\n# check_dir_count_spec\n#\n# DESCRIPTION:\n# rspec testing to test the functionality of check_dir_count spec\n# in particular the different combination of input options... | ruby | chosen |
[
{
"from": "system",
"value": "Remove minitest/pride to fix travis build\n"
},
{
"from": "human",
"value": "require 'coveralls'\nCoveralls.wear!\n\nrequire 'omniauth-gplus'\nrequire 'minitest/autorun'\nrequire 'minitest/pride'\n\nOmniAuth.config.test_mode = true\n\ndef application\n ->(_env) { [... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary gem command as bundler now handles this\n"
},
{
"from": "human",
"value": "$:.unshift File.expand_path('../../lib', __FILE__)\n\nbegin\n gem 'minitest'\nrescue Gem::LoadError\nend\n\nrequire 'minitest/autorun'\nrequire 'dbt'\nrequire 'tmpdir'\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Clear text fields using <ctrl> + <a> <delete>.\n\nReact does not respond to Selenium's #clear method by triggering a change event, which means #clear would remove the text from the input, but the React change event would not run and therefore React would not update state to ref... | ruby | chosen |
[
{
"from": "system",
"value": "Make test read correct dataset\n"
},
{
"from": "human",
"value": "require 'test_helper'\nrequire 'chart_j_s_service'\n\n# Test ChartJSService\nclass ChartJSServiceTest < MockedTest\n # Scatter graph data should be formatted like this: http://www.chartjs.org/docs/#l... | ruby | chosen |
[
{
"from": "system",
"value": "Fix testing code after removal of get_ prefixes.\n"
},
{
"from": "human",
"value": "require File.expand_path('test_helper.rb', File.dirname(__FILE__))\n\nmodule GIRepository\n class IRepositoryTest < Test::Unit::TestCase\n context \"An IRepository object\" do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add test on local macos.\n"
},
{
"from": "human",
"value": "require 'minitest/autorun'\n\nclass WithDockerTest < Minitest::Test\n # Run code before a group of test (see: https://github.com/seattlerb/minitest#how-to-run-code-before-a-group-of-tests)\n SETUP = begin... | ruby | chosen |
[
{
"from": "system",
"value": "Address 2 failues since numeric_changes_from_zero_to_string? method implemented at Rails.\n"
},
{
"from": "human",
"value": "module ActiveRecord #:nodoc:\n module ConnectionAdapters #:nodoc:\n module OracleEnhancedDirty #:nodoc:\n\n module InstanceMethods #... | ruby | chosen |
[
{
"from": "system",
"value": "Allow Rails 4.0 as a dependency\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"inline_styles_mailer/version\"\n\nGem::Specification.new do |s|\n s.name = \"inline_styles_mailer\"\n s.v... | ruby | chosen |
[
{
"from": "system",
"value": "Change chronicle to no longer depend on 'annouce_saved'\n"
},
{
"from": "human",
"value": "module Chronicle::PagesControllerExtensions\n def self.included(base)\n base.class_eval {\n include InstanceMethods\n alias_method_chain :announce_saved, :show_p... | ruby | chosen |
[
{
"from": "system",
"value": "Improve TabbedCode Generator to generate tabbed code examples without the use of >tabbedCode..>end syntax. Now, the delimiter is a new line, as it is more consistent with MD syntax.\n"
},
{
"from": "human",
"value": "module Reading\n class TabbedCodeGenerator < Jek... | ruby | chosen |
[
{
"from": "system",
"value": "Sort records by ID when doing full table compares\n"
},
{
"from": "human",
"value": "module OvirtRefresherSpecCommon\n extend ActiveSupport::Concern\n\n def serialize_inventory(models = [])\n skip_attributes = %w(updated_on last_refresh_date updated_at last_upd... | ruby | chosen |
[
{
"from": "system",
"value": "Print version when you start\n"
},
{
"from": "human",
"value": "require 'thor'\nrequire 'cloud_formation/bridge/poller'\nrequire 'cloud_formation/bridge/util'\n\nmodule CloudFormation\n module Bridge\n class Cli < Thor\n\n desc \"start QUEUE_NAME\", \"Start... | ruby | chosen |
[
{
"from": "system",
"value": "Remove debug print from Project.all\n"
},
{
"from": "human",
"value": "module JiraRuby\n module Resource\n class Project\n\n attr_reader :client, :attrs\n\n def initialize(client, attrs)\n @client = client\n @attrs = attrs\n end\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add default value for constructor. 0 based indexes.\n"
},
{
"from": "human",
"value": "module PPCurses\n\n\n # A container object that holds:\n #\n # - A date object\n # - The month the day belongs to in string array format\n # - The row and column position of... | ruby | chosen |
[
{
"from": "system",
"value": "Allow us to set variables through ENV as well as yaml\n\nfor heroku"
},
{
"from": "human",
"value": "# Load in the relevant yaml file, to set them in the Rails configuration object\ndef foursquare_api_config\n foursquare_config = YAML.load_file(\"#{Rails.root}/conf... | ruby | chosen |
[
{
"from": "system",
"value": "Change MacVim to Mavericks release\n"
},
{
"from": "human",
"value": "class Macvim < Cask\n url 'https://github.com/eee19/macvim/releases/download/snapshot-72/MacVim-snapshot-72-Mountain-Lion.tbz'\n homepage 'http://code.google.com/p/macvim/'\n version '7.4-72'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage to use SSL in Sococo Cask\n\nThe HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\n"
},
{
"from": "human",
"value": "cask :v1 => 'sococo' do\n version '3.2.7'\n sha256 '67... | ruby | chosen |
[
{
"from": "system",
"value": "Make the time formatting method in Info plugin better\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Chatrix\n class Bot\n module Plugins\n # Plugin to query various information about the bot.\n class Info < Plugin\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update for Get/Set RegLock API changes\n"
},
{
"from": "human",
"value": "module EnomAPI\n module Operations\n module Lock\n # Get the registrar lock setting for a domain\n #\n # @param [String] domain Domain name to check registrar lock of\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add ability to pass custom report location\n"
},
{
"from": "human",
"value": "module Fastlane\n class JUnitGenerator\n def self.generate(results)\n # JUnit file documentation: http://llg.cubic.org/docs/junit/\n # And http://nelsonwells.net/2012/09/how-... | ruby | chosen |
[
{
"from": "system",
"value": "Add link_to method to StringFormatter module\n"
},
{
"from": "human",
"value": "module StringFormatter\n def truncate(count)\n total_length = 0\n truncated = false\n new_string = \"\"\n\n self.to_s.strip.split(/\\s/).each do |word|\n word = word.st... | ruby | chosen |
[
{
"from": "system",
"value": "Format params to read a little easier\n"
},
{
"from": "human",
"value": "module Renalware\n module Transplants\n class RegistrationsController < BaseController\n before_filter :load_patient\n before_filter :load_registration\n\n def show\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix path to license file.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |spec|\n spec.name = 'GlueKit'\n spec.version = '0.0.1'\n spec.osx.deployment_target = \"10.9\"\n spec.ios.deployment_target = \"8.0\"\n spec.tvos.deployment_target = \"9... | ruby | chosen |
[
{
"from": "human",
"value": "Add recipe for bittorrent sync\n\nThis commit adds a recipe for bittorrent sync.\n\n[#4]\n"
},
{
"from": "gpt",
"value": "dmg_package \"BTSync\" do\n volumes_dir \"BTSync\"\n source \"http://btsync.s3-website-us-east-1.amazonaws.com/BTSync.dmg\"\n checksum \"98a8a... | ruby | chosen |
[
{
"from": "system",
"value": "Add error message collection to preapproval payment failures\n"
},
{
"from": "human",
"value": "module PaypalAdaptive\n class Response < Hash \n def initialize(response, env=nil)\n @@config ||= PaypalAdaptive::Config.new(env)\n @@paypal_base_url ||=... | ruby | chosen |
[
{
"from": "system",
"value": "Include the check-in's creator in the CSV export\n\nThis also renames Record to CheckInRecord to be more descriptive.\n"
},
{
"from": "human",
"value": "class Record\n attr_accessor :created_at, :meeting_date, :club_name, :leader_names,\n :attendance... | ruby | chosen |
[
{
"from": "system",
"value": "Make the GitBook URLs depend on DOC_URL"
},
{
"from": "human",
"value": "DOC_URL = \"https://demarches-simplifiees.gitbook.io/demarches-simplifiees\"\nLISTE_DES_DEMARCHES_URL = \"https://demarches-simplifiees.gitbook.io/demarches-simplifiees/listes-des-demarches\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use environment variable SCHEDULE_VALIDATION_TASKS to enable/disable scheduling of validation tasks\n"
},
{
"from": "human",
"value": "#\n# config/initializers/scheduler.rb\n\nrequire 'rufus-scheduler'\n\n# Let's use the rufus-scheduler singleton\n#\ns = Rufus::Sche... | ruby | chosen |
[
{
"from": "system",
"value": "Allow use of token_auth for multiple entities within project.\n\nReplace static @@entity variable with dynamically generated methods\nbased on class passed to acts_as_token_authenticator_for().\n"
},
{
"from": "human",
"value": "module TokenAuth\n module Authentica... | ruby | chosen |
[
{
"from": "system",
"value": "Build ndisc/socat before python/haskell deps\n\nIf we have failures in python or haskell deps, lets not rebuild these.\n"
},
{
"from": "human",
"value": "name \"ganeti-common\"\n\ndependency 'ganeti-common-python'\ndependency 'ganeti-common-haskell'\ndependency 'ndi... | ruby | chosen |
[
{
"from": "system",
"value": "Handle case of unknown origin\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass SpanDecorator < ApplicationDecorator\n decorates_association :origin\n\n def style\n trace_duration = trace.duration\n\n width = duration.to_f / trace_dur... | ruby | chosen |
[
{
"from": "system",
"value": "Add homepage link to gemspec\n\nEnsures the homepage link will show up on the RubyGems page for wolverine."
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"wolverine/version\"\n\nGem::Specification... | ruby | chosen |
[
{
"from": "system",
"value": "Allow Faraday major version 1\n\nThere might be some Error handling that still needs to be updated, but\nwe haven't checked.\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequi... | ruby | chosen |
[
{
"from": "system",
"value": "Add method called add_entry_mapping which adds the content type / class relationship into the config\n"
},
{
"from": "human",
"value": "module ContentfulModel\n class Base < Contentful::Entry\n include ContentfulModel::ChainableQueries\n\n def initialize(*arg... | ruby | chosen |
[
{
"from": "system",
"value": "Fix inheritance of content-store client.\n\nIt wasn't requiring gds_api/content_api, which was causing issues in\nsome circumstances. It doesn't actually need to inherit from\nGdsApi::ContentApi, so this changes it to just inherit from Base\n"
},
{
"from": "human",
... | ruby | chosen |
[
{
"from": "system",
"value": "Undo incorrect namespacing of MailMethod class\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Spree::Admin::MailMethodsController do\n let(:order) { mock_model(Spree::Order, :complete? => true).as_null_object }\n let(:mail_method) { mock_mode... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Cloud Foundry CLI to 6.6.1\n\nLatest is 6.6.2, but its package is broken (see\nhttps://github.com/cloudfoundry/cli/issues/274),\nso we're going with 6.6.1.\n"
},
{
"from": "human",
"value": "class CloudfoundryCli < Cask\n version '6.2.0'\n sha256 'c804b424... | ruby | chosen |
[
{
"from": "system",
"value": "Set `version 'latest'` and `no_checksum`\n\nTo avoid future issues with the checksum changing when newer versions\nof ComicBookLover are changed, set `version 'latest'` and `no_checksum`\n"
},
{
"from": "human",
"value": "class ComicBookLover < Cask\n url 'http://w... | ruby | chosen |
[
{
"from": "system",
"value": "Add more files to the gem\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'ffi-compiler'\n s.version = '0.0.2'\n s.author = 'Wayne Meissner'\n s.email = 'wmeissner@gmail.com'\n s.homepage = 'http://wiki.github.com/ffi/ffi'\n s.summa... | ruby | chosen |
[
{
"from": "system",
"value": "Test for elementary school import scope\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe do\n\n describe '#import' do\n\n let(:import_class) {\n Class.new do\n include Importer\n def import_row(row); Student.where(lo... | ruby | chosen |
[
{
"from": "system",
"value": "Change precise equality in shared example to be_within matcher\n"
},
{
"from": "human",
"value": "shared_context \"constant numbers\" do\n let(:one){ Constant.new(1) }\n let(:two){ Constant.new(2) }\n let(:three){ Constant.new(3) }\n let(:four){ Constant.new(4) ... | ruby | chosen |
[
{
"from": "system",
"value": "Move the rescue inside of the lock so we capture those errors not locking errors\n"
},
{
"from": "human",
"value": "require 'travis/logs'\nrequire 'travis/logs/helpers/database'\nrequire 'travis/logs/helpers/locking'\nrequire 'travis/logs/sidekiq'\nrequire 'travis/s... | ruby | chosen |
[
{
"from": "system",
"value": "Make awkward class method an instance method\n"
},
{
"from": "human",
"value": "#\n# Author:: Adam Edwards (<adamed@getchef.com>)\n# Copyright:: Copyright 2014 Chef Software, Inc.\n# License:: Apache License, Version 2.0\n#\n# Licensed under the Apache License, Vers... | ruby | chosen |
[
{
"from": "system",
"value": "Fix require in test: sprockets/railtie -> sprockets/rails/railtie\n"
},
{
"from": "human",
"value": "require 'test_helper'\nrequire 'coffee-rails'\n\nclass AssetsTest < ActiveSupport::TestCase\n def setup\n require \"rails\"\n require \"action_controller/rail... | ruby | chosen |
[
{
"from": "human",
"value": "Add default link processor spec\n"
},
{
"from": "gpt",
"value": "module Metalbird\n module UrlProcessor\n describe Default do\n subject { Default.new }\n let(:url) { 'http://github.com/nacyot' }\n\n describe '#generate' do\n it 'returns the ... | ruby | chosen |
[
{
"from": "human",
"value": "Add a sample test case just to verify that we have tests running successfully when installing the gem.\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\nclass TestCreate < Test::Unit::TestCase\n \n test \"should run this test successfully\" do\n assert_e... | ruby | chosen |
[
{
"from": "system",
"value": "Add OBRA TT. Use standard results template.\n"
},
{
"from": "human",
"value": "class CompetitionsController < ApplicationController\n caches_page :show\n \n def show\n # Very explicit because we don't want to call something like 'eval' on a request parameter!\... | ruby | chosen |
[
{
"from": "system",
"value": "Add logic to the river and history actions in the controller to avoid\nrendering an entire page if the request is an xhr request.\n"
},
{
"from": "human",
"value": "class TransactionsController < UserActionsController\n\n def river\n @transactions = Transaction.... | ruby | chosen |
[
{
"from": "human",
"value": "Change slug of main office of BCG in Madrid\n\nThis commit updates the slug of the main office of the British Consulate\nGeneral in Madrid. It does so with a data migration.\n\nZendesk ticket: https://govuk.zendesk.com/agent/tickets/1763388\n"
},
{
"from": "gpt",
"va... | ruby | chosen |
[
{
"from": "human",
"value": "Add migration to set by default 0 progress value for new plan nodes\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nclass ChangeGobiertoPlansNodeProgressDefaultValue < ActiveRecord::Migration[5.2]\n def change\n change_column_default :gplan_node... | ruby | chosen |
[
{
"from": "system",
"value": "Print details of failed users\n"
},
{
"from": "human",
"value": "class MoveNotificationSettingsToUser < Mongoid::Migration\n def self.up\n User.all.each do |user|\n if user['user_notification'].nil?\n Backend::Notifications.reset_edit_token(user: use... | ruby | chosen |
[
{
"from": "human",
"value": "Remove an obselete content items index\n\nThe long index name is causing problems in migrating to mongodb 2.6\nand having discussed its creation with the author its no longer needed.\n"
},
{
"from": "gpt",
"value": "class RemoveObseleteContentItemsIndex < Mongoid::Mi... | ruby | chosen |
[
{
"from": "system",
"value": "Return all errors for subscriptions, instead of only subscription-specific ones\n"
},
{
"from": "human",
"value": "class Api::BraintreeController < ApplicationController\n\n def token\n render json: { token: ::Braintree::ClientToken.generate }\n end\n\n def tr... | ruby | chosen |
[
{
"from": "system",
"value": "Remove redundant hash for codes from controller (moved to model)\n"
},
{
"from": "human",
"value": "class TextFeedbackController < ApplicationController\n\n @@code_hash = { \"D\" => \"Demolish\", \"R\" => \"Rehab\", \"O\" => \"Other\" }\n @@app_url = \"1000in1000.... | ruby | chosen |
[
{
"from": "system",
"value": "Make variable name 're' more meaningful\n"
},
{
"from": "human",
"value": "module EPUB\n module Search\n module Formatter\n class CLI\n def initialize(data, word, hilight=$stderr.tty?)\n @data, @word, @hilight = data, word, hilight\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Return consistent types in ArgParser\n\nCoerces a nil --force option to false\n"
},
{
"from": "human",
"value": "class Jekyll::Compose::ArgParser\n attr_reader :args, :options\n def initialize(args, options)\n @args = args\n @options = options\n end\n\n de... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify which caching is disabled\n\nbe very clear what this message is even talking about"
},
{
"from": "human",
"value": "# Frozen-string-literal: true\n# Copyright: 2012 - 2016 - MIT License\n# Encoding: utf-8\n\nJekyll::Assets::Hook.register :env, :init do\n ca... | ruby | chosen |
[
{
"from": "system",
"value": "Fix load gem method name because of conflict against ActiveSupport\n"
},
{
"from": "human",
"value": "require 'ougai/formatters/base'\n\nmodule Ougai\n module Formatters\n class Readable < Base\n def initialize(app_name = nil, hostname = nil)\n super... | ruby | chosen |
[
{
"from": "system",
"value": "Fix logging error from rake renew task with minor text changes\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nnamespace :letsencrypt do\n desc 'Renew the certificates will epxired'\n task renew: :environment do\n count = 0\n failed = 0\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix streamed files cannot be extacted by MacOS default unip\n"
},
{
"from": "human",
"value": "# a ZipOutputStream that never rewinds output\n# in order for that to be possible we store only uncompressed files\nmodule Zipline\n class ZipOutputStream < Zip::ZipOutpu... | ruby | chosen |
[
{
"from": "human",
"value": "Add Join Table Between Committees & Councillor\n\nAdd a join table between the committees model and councillor model since\nthere can be many councillors on many committees and there can be many\ncommittees with many councillors.\n"
},
{
"from": "gpt",
"value": "clas... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec examples for ViewDashboard button class\n"
},
{
"from": "gpt",
"value": "describe ApplicationHelper::Button::ViewDashboard do\n let(:view_context) { setup_view_context_with_sandbox({}) }\n let(:button) { described_class.new(view_context, {}, {'showtype' =>... | ruby | chosen |
[
{
"from": "system",
"value": "Update SHA1 hash for homebrew\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Howdoi < Formula\n homepage 'https://github.com/gleitz/howdoi/'\n url 'http://pypi.python.org/packages/source/h/howdoi/howdoi-1.1.7.tar.gz'\n\n def install\n setup_args... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a bug with adding sections.\n"
},
{
"from": "human",
"value": "class Admin::SectionsController < Admin::AdminController\n\n cache_sweeper :section_sweeper, :only => [:create]\n\n def index\n @available_section_types = Spritz::Plugin.section_types\n @sect... | ruby | chosen |
[
{
"from": "system",
"value": "Switch TextWrapper to class << self\n"
},
{
"from": "human",
"value": "require_relative 'layers/basic_wrapper'\nrequire_relative 'layers/code_comment_stripper'\nrequire_relative 'layers/email_quote_stripper'\nrequire_relative 'layers/hangout_wrapper'\nrequire_relati... | ruby | chosen |
[
{
"from": "system",
"value": "Allow underscore on fields and attributes names\n"
},
{
"from": "human",
"value": "module Mongoid\n module Giza\n class Index\n # Common routines to fields and attributes\n module Common\n extend ActiveSupport::Concern\n\n # Replaces all ... | ruby | chosen |
[
{
"from": "system",
"value": "Move warning due to supervision and dead actor errors to methods that can be overridden.\n"
},
{
"from": "human",
"value": "module Servitude\n module ServerThreaded\n\n def self.included( base )\n base.class_eval do\n after_initialize :initialize_thr... | ruby | chosen |
[
{
"from": "system",
"value": "Use /refinery not /admin to access the backend, otherwise we berate people for no good reason.\n"
},
{
"from": "human",
"value": "module Refinery\n module Helpers\n module SiteBarHelper\n\n # Generates the link to determine where the site bar switch button ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo: error_message did not have access to variables request or e\n"
},
{
"from": "human",
"value": "# Via https://gist.github.com/bf4/d26259acfa29f3b9882b#file-exception_app-rb\n\nmodule HandleInvalidPercentEncodingRequests\n\n class Middleware\n def initi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix server error on changing a character with no chronicle\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n# Common methods for \"top-level\" models - Characters, QCs, and Battlegroups\nmodule BelongsToPlayer\n extend ActiveSupport::Concern\n i... | ruby | chosen |
[
{
"from": "system",
"value": "Install vanilla Cassandra until DataStax gets their stuff together\n\nDSC currently conflicts with Cassandra 1.1.0 (they hard depend on 1.0.x).\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: cassandra\n# Recipe:: datastax\n#\n# Copyright 2011-2012, Travis C... | ruby | chosen |
[
{
"from": "system",
"value": "Use expect_validating per @markijbema's tip\n"
},
{
"from": "human",
"value": "require 'pavlov_helper'\nrequire_relative '../../../../app/interactors/commands/users/mark_as_deleted'\n\ndescribe Commands::Users::MarkAsDeleted do\n include PavlovSupport\n before { s... | ruby | chosen |
[
{
"from": "system",
"value": "Check if index exists before adding it. [ci skip]\n\n* I got an error when updating GDK because it already exists.\n"
},
{
"from": "human",
"value": "class IndexNamespacesOnVisibilityLevel < ActiveRecord::Migration\n def change\n add_index :namespaces, :visibili... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor on RSpec tests from User\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe User, type: :model do\n\n describe '#neighborhood' do\n it 'should return neighborhood for user' do\n user = create(:user, neighborhood_name: 'Partenon')... | ruby | chosen |
[
{
"from": "system",
"value": "Disable toml test on TravisCI\n\nNot entirely sure why it fails, but whatever.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"Cargo.toml definitions\" do\n let(:filename) { 'Cargo.toml' }\n\n specify \"dependency versions\" do\n set_file... | ruby | chosen |
[
{
"from": "system",
"value": "Improve ffi spec a bit\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe Rdkafka::FFI do\n it \"should successfully call librdkafka\" do\n Rdkafka::FFI.rd_kafka_conf_new\n end\nend\n"
},
{
"from": "gpt",
"value": "require \"spec... | ruby | chosen |
[
{
"from": "system",
"value": "Set high timeout for feature specs.\n"
},
{
"from": "human",
"value": "require 'capybara/rspec'\nrequire 'capybara/rails'\nrequire 'capybara/poltergeist'\n\nRSpec.configure do |config|\n Capybara.javascript_driver = :poltergeist\n\n config.before(:each, :js) do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix due to syntax change in simplecov 0.11\n"
},
{
"from": "human",
"value": "MINIMUM_COVERAGE = 87\n\nunless ENV['COVERAGE'] == 'off'\n require 'simplecov'\n require 'simplecov-rcov'\n require 'coveralls'\n Coveralls.wear!\n\n SimpleCov.formatter = SimpleCov::... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec_system test for motd.tail\n\nSince it's not possible to `exec login` to tell `pam_motd` to update the\nreal file, we have to call `run-parts` ourself.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper_system'\n\ndescribe 'motd.tail' do\n context 'tail s... | ruby | chosen |
[
{
"from": "system",
"value": "Add changelog text to output\n\nAdds the string used in the changelog file to the output.\nuse url instead of awkward concatenation\nmatch column labels to output\n\n[skip ci]\n"
},
{
"from": "human",
"value": "MILESTONE = 47\n# subtract 6 from actual Sprint milesto... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.