conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix axiom selection factories not properly creating ProofAttempts.\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :axiom_selection do\n association :proof_attempt_configuration\n end\n\n factory :manual_axiom_selection do\n end\n\n factor... | ruby | chosen |
[
{
"from": "system",
"value": "Order shows properly for debut\n"
},
{
"from": "human",
"value": "class Fan < ApplicationRecord\n has_many :identities, dependent: :destroy\n\n has_many :attendances, dependent: :destroy\n has_many :shows, through: :attendances\n has_many :songs, -> { distinct }... | ruby | chosen |
[
{
"from": "system",
"value": "Extend TrainingLoader spec to test all training content classes\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nrequire 'rails_helper'\nrequire \"#{Rails.root}/lib/training/training_loader\"\nrequire \"#{Rails.root}/lib/training_slide\"\n\ndescribe... | ruby | chosen |
[
{
"from": "system",
"value": "Fix team link and add user handle to email\n"
},
{
"from": "human",
"value": "class TeamUserMailer < ApplicationMailer\n layout nil\n\n def request_to_join(team, requestor, origin)\n if team && requestor\n @team = team\n @requestor = requestor\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add men? and women? convenience methods\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Categories\n module Gender\n extend ActiveSupport::Concern\n\n included do\n before_save :set_gender_from_name\n end\n\n def set_gend... | ruby | chosen |
[
{
"from": "system",
"value": "ENHANCE: Add has many relationship between unit and campus sets\n"
},
{
"from": "human",
"value": "class UnitActivitySet < ActiveRecord::Base\n belongs_to :unit\n belongs_to :activity_type\n\n # Always check for presence of whole model instead of id\n # So valid... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unneeded instance variable from GUI yaml parser\n"
},
{
"from": "human",
"value": "class GuiPresenter\n\n attr_reader :guis_info\n\n def initialize\n @yaml = YAML.load_file('resources/guis.yml')\n @guis_info = @yaml[\"guis\"]\n end\n\n @@instance = ... | ruby | chosen |
[
{
"from": "system",
"value": "Add forwardable dependency for JWK RSA KeyFinder\n\nFixes #316.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule JWT\n module JWK\n class RSA\n extend Forwardable\n\n attr_reader :keypair\n\n def_delegators :keypair, :pri... | ruby | chosen |
[
{
"from": "human",
"value": "Add connection endpoint for PBM. Not functional without API definitions\n"
},
{
"from": "gpt",
"value": "# Copyright (c) 2012 VMware, Inc. All Rights Reserved.\nrequire 'rbvmomi'\n\nmodule RbVmomi\n\n# A connection to one vSphere ProfileBasedManagement endpoint.\n# ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a description to the mpl_download_rebuild task, and add that task to the bundle:download_and_install task after bundle installation\n"
},
{
"from": "human",
"value": "require 'rails/tasks'\n\nnamespace :tmp do\n namespace :cache do\n # desc \"Cleans and then... | ruby | chosen |
[
{
"from": "human",
"value": "Add a simple script to check if rc alive\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\nrequire 'rubygems'\nrequire 'omf_common'\n\nunless ARGV[0] && ARGV[1]\n puts \"Missing argument: The credential to connect to your XMPP(Openfire) server and id of your R... | ruby | chosen |
[
{
"from": "system",
"value": "Rewrite query handling in a more idiomatic way\n"
},
{
"from": "human",
"value": "class HomeController < ApplicationController\n def index\n end\n\n def search\n @query = params[:query].blank? ? '*' : params[:query]\n\n @recipes = Recipe.search @query\n en... | ruby | chosen |
[
{
"from": "system",
"value": "Add ElasticSearch mappings, to fix intermittent errors\n\n"
},
{
"from": "human",
"value": "module CropSearch\n extend ActiveSupport::Concern\n\n included do\n ####################################\n # Elastic search configuration\n searchkick word_start: ... | ruby | chosen |
[
{
"from": "system",
"value": "Make fields optional on API\n"
},
{
"from": "human",
"value": "module ToolSlots\n class Create < Mutations::Command\n required do\n model :device, class: Device\n string :name\n integer :x\n integer :y\n integer :z\n integer :tool_b... | ruby | chosen |
[
{
"from": "system",
"value": "Fix selinux permissions for fedora tests\n\nSigned-off-by: Ken Barber <470bc578162732ac7f9d387d34c4af4ca6e1b6f7@bob.sh>\n"
},
{
"from": "human",
"value": "require 'spec_helper_system'\n\ndescribe 'common patterns:' do\n describe 'postgresql.conf include pattern' do... | ruby | chosen |
[
{
"from": "system",
"value": "Make the guid match what is in the feed, also return episode id and original/override guid as read only\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nclass Api::EpisodeRepresenter < Api::BaseRepresenter\n property :guid\n property :original_guid\n prope... | ruby | chosen |
[
{
"from": "system",
"value": "[iOS] Add React dependency to Podspec\n\nSupport older versions of Swift by allowing `use_frameworks!` in CocoaPods"
},
{
"from": "human",
"value": "require 'json'\n\npackage = JSON.parse(File.read(File.join(__dir__, 'package.json')))\n\nPod::Spec.new do |s|\n s.na... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure VoteScorer/VoteCounts are reloaded in dev.\n"
},
{
"from": "human",
"value": "require 'acts_as_tree'\nrequire 'nokogiri'\nrequire 'hdo/storting_importer'\n\nrequire 'hdo/stats/vote_scorer'\nrequire 'hdo/stats/vote_counts'\n"
},
{
"from": "gpt",
... | ruby | chosen |
[
{
"from": "system",
"value": "Allow console.log in Jasmine tests, for debugging\n"
},
{
"from": "human",
"value": "# Use this file to set/override Jasmine configuration options\n# You can remove it if you don't need it.\n# This file is loaded *after* jasmine.yml is interpreted.\n#\n# Example: us... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing bracket to last line of code\n"
},
{
"from": "human",
"value": "freeway = {\n\n red_nissan: {\n people: ['Susan', 'John'],\n no_of_cupholders: 4,\n destination: 'Marin Headlands'\n },\n\n blue_bmw: {\n people: ['Eric'],\n no_of_cupholde... | ruby | chosen |
[
{
"from": "system",
"value": "Set gem homepage to github\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'cli_tools/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Use BarclayCard test gateway on all hosts except where ENV == 'prod'\n"
},
{
"from": "human",
"value": "module EPDQ\n def self.config(options = {})\n options.each { |k, v| send :\"#{k}=\", v }\n end\nend\n\nEPDQ.config pspid: ENV.fetch('EPDQ_PSPID'), sha_type: ... | ruby | chosen |
[
{
"from": "system",
"value": "Update solaris2 memory spec to match memory command\n"
},
{
"from": "human",
"value": "#\n# License:: Apache License, Version 2.0\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the Licen... | ruby | chosen |
[
{
"from": "system",
"value": "Troubleshoot what's in the environment\n"
},
{
"from": "human",
"value": "require 'prometheus/middleware/collector'\nrequire 'prometheus/middleware/exporter'\n\nmodule Prometheus::Middleware\n class CollectorWithExclusions < Collector\n def initialize(app, optio... | ruby | chosen |
[
{
"from": "system",
"value": "[FIX] Handle conversion of string to integer from env\n"
},
{
"from": "human",
"value": "# config/unicorn.rb\nworker_processes Integer(ENV[\"WEB_CONCURRENCY\"] || 3)\ntimeout( ENV[\"WEB_TIMEOUT\"] || 15)\npreload_app true\n\nbefore_fork do |server, worker|\n Signal... | ruby | chosen |
[
{
"from": "human",
"value": "Add sessions controller spec file\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe SessionsController do\n let(:eveanandi) {User.create(name: \"Eveanandi\", email: \"meerrrrr@rrrrr.com\", password: \"catscatscats\")}\n before(:each) do\n stub_... | ruby | chosen |
[
{
"from": "system",
"value": "Add new facet value to test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"Business stage page\" do\n\n specify \"inspecting the page\" do\n visit \"/#{APP_SLUG}/stage?sectors=health_manufacturing\"\n\n assert_completed_questions(\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for `template_attribute` retrieval"
},
{
"from": "gpt",
"value": "require \"spec_helper\"\nrequire \"flex_commerce_api\"\nrequire \"flex_commerce_api/api_base\"\n\nRSpec.describe \"url encoding on any model\" do\n # Global context for all specs - defines t... | ruby | chosen |
[
{
"from": "system",
"value": "Change system command to use an Array as input\n\n* This causes the arguments to be escaped automatically, preventing\n shell injection (not a huge risk in this case, but may prevent\n some kinds of errors; I wish this was the default interface).\n"
},
{
"from": "huma... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs to check that consul owner runs daemon.\n"
},
{
"from": "human",
"value": "require 'serverspec'\nset :backend, :exec\n\n# Traivs specified.\n# IPAddress on Ruby: http://qiita.com/suu_g/items/a03af621f5d6985879e0\nrequire 'socket'\nprivate_ip = Socket.getif... | ruby | chosen |
[
{
"from": "system",
"value": "Drop test table if exists\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"Redshift\" do\n around do |example|\n DB.transaction do\n example.run\n raise Sequel::Rollback\n end\n end\n\n it \"inserts new record\" do\n DB.cr... | ruby | chosen |
[
{
"from": "system",
"value": "Remove User object (not necessary as User is defined elsewhere now)\n"
},
{
"from": "human",
"value": "describe Tok::Configuration do\n before :all do\n User = Class.new \n Account = Class.new\n end\n\n describe \"#resource\" do\n it \"has a default valu... | ruby | chosen |
[
{
"from": "system",
"value": "Linux: Use the proper Ruby rpath\n\nThis fixes a major issue where Ruby would get a bogus Rpath value (see\nhttps://github.com/mitchellh/vagrant/issues/850#issuecomment-6263739).\nThis bogus value would cause compiled extensions to have a bogus rpath\nvalue (see\nhttps://github... | ruby | chosen |
[
{
"from": "system",
"value": "Add parentheses to method call\n"
},
{
"from": "human",
"value": "require File.expand_path(File.join(File.dirname(__FILE__), '../test_helper'))\n\ndescribe FilmBuff::IMDb do\n before do\n @imdb = FilmBuff::IMDb.new\n end\n\n describe '#find_by_id' do\n befo... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for fetching unknown keys without defaults\n"
},
{
"from": "human",
"value": "require 'minitest/autorun'\nrequire 'rack/session/abstract/id'\n\ndescribe Rack::Session::Abstract::SessionHash do\n attr_reader :hash\n\n def setup\n super\n store = Clas... | ruby | chosen |
[
{
"from": "system",
"value": "Move 'RETA' display after 'PLT' to remove gap\n"
},
{
"from": "human",
"value": "require_dependency \"renalware/pathology\"\n\nmodule Renalware\n module Pathology\n class ObservationsController < Pathology::BaseController\n before_filter :load_patient\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove seeding of /performance route.\n\nThis is now handled by the application itself at deploy time.\n"
},
{
"from": "human",
"value": "######################################\n#\n# This file is run on every deploy.\n# Ensure any changes account for this.\n#\n#####... | ruby | chosen |
[
{
"from": "system",
"value": "Speed up prettier flag log view\n"
},
{
"from": "human",
"value": "class FlagLogController < ApplicationController\n def index\n @flag_logs = FlagLog.all.order('created_at DESC').includes(:post, :user).paginate(:page => params[:page], :per_page => 100)\n end\ne... | ruby | chosen |
[
{
"from": "system",
"value": "Allow updating your GitHub and Twitter account"
},
{
"from": "human",
"value": "class ProfilesController < ApplicationController\n before_action :require_user\n\n def edit\n current_user.valid?\n flash.now[:warning] = incomplete_profile_msg unless current_us... | ruby | chosen |
[
{
"from": "system",
"value": "Fix 2647: normal user is able to see profile\n"
},
{
"from": "human",
"value": "class ProfilesController < ApplicationController\n authorize_resource :class => false\n\n layout 'profile'\n\n def show\n end\n\n def update\n if current_user.update_attributes(u... | ruby | chosen |
[
{
"from": "system",
"value": "Add index action on projects controller\n"
},
{
"from": "human",
"value": "class ProjectsController < ApplicationController\n def show\n @project = Project.find params[:id]\n end\nend\n"
},
{
"from": "gpt",
"value": "class ProjectsController < Appli... | ruby | chosen |
[
{
"from": "system",
"value": "Add not found message to polling place method\n"
},
{
"from": "human",
"value": "require 'net/http'\nrequire 'json'\n\nclass ZipcodesController < ApplicationController\n def show\n @zipcode = session[:zip]\n @polling_place = get_polling_place(@zipcode)\n end... | ruby | chosen |
[
{
"from": "system",
"value": "Add XML namespace for SMIL\n"
},
{
"from": "human",
"value": "module EPUB\n module Constants\n NAMESPACES = {\n 'dc' => 'http://purl.org/dc/elements/1.1/',\n 'ocf' => 'urn:oasis:names:tc:opendocument:xmlns:container',\n 'opf' => 'http://www... | ruby | chosen |
[
{
"from": "system",
"value": "Revert back to default of whole directory\n"
},
{
"from": "human",
"value": "namespace :load do\n task :defaults do\n set :owned_by_user, 'app'\n set :owned_by_group, 'deploy'\n set :release_paths_to_be_owned_by_app, '.'\n set :shared_paths_to_be_owned_... | ruby | chosen |
[
{
"from": "system",
"value": "Load the environment from the migrate rake task\n"
},
{
"from": "human",
"value": "namespace :db do\n namespace :couch do\n\n desc \"Load views in db/couch/* into the configured couchdb instance\"\n task :migrate do\n Dir['db/couch/**/*.js'].each do |fil... | ruby | chosen |
[
{
"from": "system",
"value": "Fix private bug in main module\n"
},
{
"from": "human",
"value": "require 'yandex_captcha/configuration'\nrequire 'yandex_captcha/verify'\n\nmodule YandexCaptcha\n class NoApiKeyException < Exception; end\n class BadResponseException < Exception; end\n class Yand... | ruby | chosen |
[
{
"from": "human",
"value": "Add integration test for database result sets\n"
},
{
"from": "gpt",
"value": "require 'helper'\n\nclass IntegrationTests::TestDatabaseResultSet < Test::Unit::TestCase\n def setup\n @dir = Dir.mktmpdir('linkage')\n @data_uri = \"sqlite://\" + File.join(@dir, \... | ruby | chosen |
[
{
"from": "system",
"value": "Fix development dependencies to include bundle, rake and rugged\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'git_evolution/version'\n\nGem::Specifica... | ruby | chosen |
[
{
"from": "system",
"value": "9991: Use new run_errors instead of old errors\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n# Job for importing tabular data like users and option sets.\nclass TabularImportOperationJob < OperationJob\n def perform(_operation, name: nil, save... | ruby | chosen |
[
{
"from": "system",
"value": "Allow deny from accepted state.\n"
},
{
"from": "human",
"value": "module StateMachines::Candidature\n def self.included(base)\n base.extend ClassMethods\n \n base.class_eval do\n attr_accessor :current_user\n \n const_set 'STATES', [:new, :... | ruby | chosen |
[
{
"from": "system",
"value": "Change RbConfig from a class to a module\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire 'webdriver-firefox/version'\n\nclass RbConfig\n class << self\n def files\n fnames = `git ls-files... | ruby | chosen |
[
{
"from": "human",
"value": "Add script to aggregate-process heap file output.\n"
},
{
"from": "gpt",
"value": "#! /usr/bin/ruby\nrequire 'csv'\n\nPROFILE = ARGF.argv.shift\nHEAP_INTERVAL = 250\n\naggregate = Hash.new {}\n\nCSV.foreach(PROFILE, {:headers => true}) do |row|\n key =[[row[\"query\... | ruby | chosen |
[
{
"from": "system",
"value": "FIX: Call the correct post bouncer method\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Jobs\n class CheckAkismetPost < ::Jobs::Base\n\n # Check a single post for spam. We do this for TL0 to get a faster response\n # without batch... | ruby | chosen |
[
{
"from": "system",
"value": "Use shortcut method to find a single record\n"
},
{
"from": "human",
"value": "class Api::MessagesController < ApplicationController\n skip_before_action :verify_authenticity_token\n doorkeeper_for :all, except: [ :create ]\n rescue_from ActionController::Paramet... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade IntelliJ Idea EAP to v139.791.2\n"
},
{
"from": "human",
"value": "cask :v1 => 'intellij-idea-eap' do\n version '139.463.4'\n sha256 '9c121f506136f9c658fe3246c6f69947d67184d523c8a3fdaf94e5065b80a918'\n\n url \"http://download.jetbrains.com/idea/ideaIU-#{v... | ruby | chosen |
[
{
"from": "human",
"value": "Add Omnipresence beta track (currently 1.4)\n\nThis creates a new cask for the Omnipresence beta (at v1.4 at the\ntime of creation).\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'omnipresence-beta' do\n version '1.4.x-r232733'\n sha256 'c21289a7a90b4efc8f0eb9cf3775... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade IntelliJ CE EAP to 14 RC1 (139.144.2)\n"
},
{
"from": "human",
"value": "class IntellijIdeaCommunityEap < Cask\n version '14'\n sha256 'bcea58e2f59356e9b10e33d40adbcd7ec711bbd15c410d53f3a3695c517f2b67'\n\n url \"http://download.jetbrains.com/idea/ideaIC-#... | ruby | chosen |
[
{
"from": "system",
"value": "Include root in ActiveResource JSON payloads, because Illyan expects it\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n#\n# This file contains settings for ActionController::ParamsWrapper which\n# is enabled by defaul... | ruby | chosen |
[
{
"from": "system",
"value": "Update wordpress cookbook for Ubuntu 16.04\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: wordpress\n# Recipe:: default\n#\n# Copyright 2013, OpenStreetMap Foundation\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use... | ruby | chosen |
[
{
"from": "system",
"value": "Increase pod version to 0.9.5.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"MDCustomNotificationsManager\"\n s.version = \"0.9.0\"\n s.summary = \"Display messages in a notification-like way\"\n s.homepage ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix fubot who is command\n"
},
{
"from": "human",
"value": "Fubot.command /who is @?([^ ]+)\\??/i do\n def help\n [\"who is\", \"Recollect facts about a user\"]\n end\n\n def call(bot, args, message)\n user = args[1]\n values = KeyValue.get(\"Fubot:Whois... | ruby | chosen |
[
{
"from": "system",
"value": "Fix overload documentation for ArrayNode\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule RuboCop\n module AST\n # A node extension for `array` nodes. This will be used in place of a plain\n # node when the builder constructs the AST... | ruby | chosen |
[
{
"from": "system",
"value": "Fix date to search on entries notification\n"
},
{
"from": "human",
"value": "namespace :email do\n desc 'Send an email notifying the deadline of an expense'\n task notifications: :environment do\n User.find_each do |user|\n user_accounts = user.accounts.w... | ruby | chosen |
[
{
"from": "system",
"value": "Fix ambiguous query cause by adding feedback timestamps\n"
},
{
"from": "human",
"value": "class ReviewController < ApplicationController\n before_action :authenticate_user!\n skip_before_action :verify_authenticity_token, :only => [:add_feedback]\n\n def index\n... | ruby | chosen |
[
{
"from": "system",
"value": "Make the version YAML fix more robust\n\n* Don't try to correct new versions created after the code changed, i.e.\n where the image is already a string\n* Fix the 'object' field as well, which also contained broken YAML.\n* Don't try to fix blank YAML: if the event is destroy,... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug in the redirect of the assigned_to_group method.\n"
},
{
"from": "human",
"value": "class UserActionsController < ApplicationController\n before_action :assigned_to_group\n before_action :logged_in?, only: [:new, :create]\n\n private\n\n def logged_in?\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add acceptance of JSON and Hash params\n"
},
{
"from": "human",
"value": "require \"ferrety_ferret/version\"\nrequire \"httparty\"\nmodule Ferrety\n \n class Ferret\n attr_accessor :alerts\n\n def initialize(params)\n clear_alerts\n end\n\n privat... | ruby | chosen |
[
{
"from": "system",
"value": "Make User a Struct so it's faster and Comparable\n"
},
{
"from": "human",
"value": "class GitStore\n\n class User\n attr_accessor :name, :email, :time\n\n def initialize(name, email, time)\n @name, @email, @time = name, email, time\n end\n\n def du... | ruby | chosen |
[
{
"from": "system",
"value": "Make bisect work with old git 1.9.1\n\nI found that git version 1.9.1 under Debian wheezy does not like\ncombining the bad & good commands into the bisect start command like so;\ngit bisect start head master. It starts bisect correctly but it doesn't\nset the bad & good points.... | ruby | chosen |
[
{
"from": "system",
"value": "Add max value validator to parameter\n"
},
{
"from": "human",
"value": "require \"grape/kaminari/version\"\nrequire \"kaminari/grape\"\n\nmodule Grape\n module Kaminari\n def self.included(base)\n base.class_eval do\n helpers do\n def pagina... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure the metadata object is always present on Identity resources\n"
},
{
"from": "human",
"value": "module Layer\n # Managing user identity is also possible:\n #\n # @example\n # user = Layer::User.find('user_id')\n # user.identity # Returns user ident... | ruby | chosen |
[
{
"from": "system",
"value": "Add Oboe in production environment\n"
},
{
"from": "human",
"value": "require 'hn_history'\nrequire 'hn_history/api'\nrequire 'hn_history/web'\n\ndef app\n Rack::Builder.app do\n use Rack::Session::Cookie\n run Rack::Cascade.new [HnHistory::BaseAPI, HnHistory... | ruby | chosen |
[
{
"from": "system",
"value": "Hide users marked as 'hidden' on the Renal -> Users list\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire_dependency \"renalware\"\n\n# Note we rely on template inheritance with this MDM Base class i.e. subclasses (e.g.\n# HD::MDMPatientsC... | ruby | chosen |
[
{
"from": "system",
"value": "Add title extraction for non-trivial HTML pages\n"
},
{
"from": "human",
"value": "module ManBook\n class Parser\n class << self\n def parse(html_file)\n #\n # The way we extract the title is highly dependent of the concrete HTML. Yet, I found... | ruby | chosen |
[
{
"from": "system",
"value": "Set the application_name to the rails app name by default (in Rails 3)\n"
},
{
"from": "human",
"value": "require 'query_comments/railtie'\n\nmodule QueryComments\n mattr_accessor :comment, :application_name\n\n module ActiveRecordInstrumentation\n def self.inc... | ruby | chosen |
[
{
"from": "system",
"value": "Use modifier instead of a block\n"
},
{
"from": "human",
"value": "require 'mrkt/faraday_middleware'\n\nmodule Mrkt\n module Connection\n def connection\n @connection ||= init_connection\n end\n\n def init_connection\n Faraday.new(url: \"https://... | ruby | chosen |
[
{
"from": "system",
"value": "Work around strange anonymous controller behaviour\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe API::APIController, type: :controller do\n controller do\n def good\n check_access!('permit')\n render nothing: true\... | ruby | chosen |
[
{
"from": "system",
"value": "Hide Routing module in docs\n\n[ci skip]\n"
},
{
"from": "human",
"value": "module Shoulda\n module Matchers\n module Routing\n # @private\n def route(method, path)\n ActionController::RouteMatcher.new(method, path, self)\n end\n end\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove env test for scripts -- bundling etc should be done by gem creation process\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\n\nmodule Spontaneous\n module Rack\n module Helpers\n\n def style_url(style)\n \"#{NAMESPACE}/css/#{style}.css\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Terminate plugins on Runtime termination\n"
},
{
"from": "human",
"value": "require 'pathname'\n\nmodule Rohbau\n class Runtime\n class << self\n attr_reader :instance\n\n def start\n raise \"Don't use Runtime.start, you should use a RuntimeLoad... | ruby | chosen |
[
{
"from": "system",
"value": "Remove support for FAAC from \"FFmpeg\" module.\n"
},
{
"from": "human",
"value": "#\n# ffmpeg.rb\n#\n# Copyright (c) 2013-2017 Don Melton\n#\n\nmodule VideoTranscoding\n module FFmpeg\n extend self\n\n COMMAND_NAME = 'ffmpeg'\n\n def setup\n Tool.pro... | ruby | chosen |
[
{
"from": "system",
"value": "Change source of scores for value normalization\n\nInstead of starting with an empty array for the normalization of metric\nscores, the array is initialized with the values passed to the method.\nThis way exceptions can be prevented, if there are no scores available.\n\nSigned-... | ruby | chosen |
[
{
"from": "system",
"value": "Fix 1.9 bug with load_csv_infile.\n\n[:foo].to_s returns \"foo\" in ruby 1.8.7, but returns \"[:foo]\" in ruby\n1.9.3. Take the first element of the opts[:from] array to fix this.\n"
},
{
"from": "human",
"value": "module Chicago\n module ETL\n module SequelExte... | ruby | chosen |
[
{
"from": "system",
"value": "Update chef client to 16.5.64\n"
},
{
"from": "human",
"value": "# Add the opscode APT source for chef\ndefault[:apt][:sources] = node[:apt][:sources] | [\"opscode\"]\n\n# Set the default server version\ndefault[:chef][:server][:version] = \"12.17.33\"\n\n# Set the ... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade OTRS to postgres 13\n"
},
{
"from": "human",
"value": "default[:otrs][:version] = \"6.0.30\"\ndefault[:otrs][:user] = \"otrs\"\ndefault[:otrs][:group] = nil\ndefault[:otrs][:database_cluster] = \"10/main\"\ndefault[:otrs][:database_name] = \"otrs\"\ndefault[... | ruby | chosen |
[
{
"from": "system",
"value": "Move count determination into block that uses it\n"
},
{
"from": "human",
"value": "class Fabrication::Generator::ActiveRecord < Fabrication::Generator::Base\n\n def self.supports?(klass)\n defined?(ActiveRecord) && klass.ancestors.include?(ActiveRecord::Base)\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for new template sintax\n"
},
{
"from": "human",
"value": "require 'spiderfw/controller/app_controller'\n\nmodule Spider\n\n class PageController < Controller\n include Visual\n\n def initialize(request, response, scene=nil)\n super\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove EitherMatcher’s to_either respond_to checks\n\nWe can just assume that this is a standard part of the interface for any object that this matcher works with."
},
{
"from": "human",
"value": "require \"dry/result_matcher/case\"\n\nmodule Dry\n module ResultMat... | ruby | chosen |
[
{
"from": "human",
"value": "Add a GitHub tagging provider (can tag issues/pull-requests, and maintain tag metadata)\n"
},
{
"from": "gpt",
"value": "require 'gitomator/github/base_hosting_provider'\nrequire 'gitomator/model/hosting/repo'\nrequire 'gitomator/model/hosting/team'\n\nmodule Gitomat... | ruby | chosen |
[
{
"from": "system",
"value": "Allow for other image_tag options than width and heigt - for instance class, id, etc.\n"
},
{
"from": "human",
"value": "module PeepShot\n module Rails\n module Helpers\n module ImageTags \n def peepshot_image_tag(url, options)\n widt... | ruby | chosen |
[
{
"from": "system",
"value": "Fix id expectation for IG processor test\n"
},
{
"from": "human",
"value": "require 'test_helper'\nrequire_relative '../support/processor_test_helpers'\n\nmodule Processors\n class InstagramProcessorTest < Minitest::Test\n include ProcessorTestHelpers\n\n def... | ruby | chosen |
[
{
"from": "system",
"value": "Fix gemspec minitest dependency discrepency\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'minitest/tagz/version'\n\nGem::Specification.new do |spec|\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake to development gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nGem::Specification.new do |gem|\n gem.name = 'invariant'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add more required gems to the 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 'kangaruby/version'\n\nGem::Specification.new do |spec|\n spec.nam... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a typo in the example.\n"
},
{
"from": "human",
"value": "module HP\n module Cloud\n class CLI < Thor\n \n desc \"containers:add <name>\", \"add a container\"\n long_desc <<-DESC\n Add a new container to your storage account. Container name can... | ruby | chosen |
[
{
"from": "system",
"value": "Add bootfile and use_bootfile to HostIpv4addr\n"
},
{
"from": "human",
"value": "module Infoblox\n class HostIpv4addr < Resource\n remote_attr_accessor :configure_for_dhcp, \n :ipv4addr, \n :mac,\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove variable for not having @template in controller\n"
},
{
"from": "human",
"value": "module Footnotes\n module Notes\n class ViewNote < AbstractNote\n cattr_accessor :template\n\n def self.start!(controller)\n @subscriber ||= ActiveSupport:... | ruby | chosen |
[
{
"from": "system",
"value": "Add backend JS to precompile list\n"
},
{
"from": "human",
"value": "module SolidusPaypalBraintree\n class Engine < Rails::Engine\n isolate_namespace SolidusPaypalBraintree\n engine_name 'solidus_paypal_braintree'\n\n # use rspec for tests\n config.gene... | ruby | chosen |
[
{
"from": "system",
"value": "Use GovukError instead of Airbrake\n"
},
{
"from": "human",
"value": "require \"route_consistency_checker\"\n\ndef report_errors(errors)\n Airbrake.notify_sync(\n \"Inconsistent routes\",\n parameters: {\n errors: errors,\n }\n )\n\n errors.each do ... | ruby | chosen |
[
{
"from": "system",
"value": "Use pacman cache of the main MSYS2 environment\n"
},
{
"from": "human",
"value": "# Use one file out of many to indicate installation of devtools\nself.devtools = File.join(self.sandboxdir, \"/var/lib/pacman/local/mingw-w64-x86_64-gcc-6.3.0-3/desc\")\n\nfile self.de... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.