conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add some attributes to Integration\n" }, { "from": "human", "value": "module Discordrb::Light\n # A connection of your Discord account to a particular other service (currently, Twitch and YouTube)\n class Connection\n # @return [Symbol] what type of connection ...
ruby
chosen
[ { "from": "system", "value": "Use yum, not deprecated yumrepo.\n" }, { "from": "human", "value": "name 'chef-logstash'\nmaintainer 'Wouter de Vos'\nmaintainer_email 'oss@rein.io'\nlicense 'MIT'\ndescription 'Installs/Configures Logstash from the official packages....
ruby
chosen
[ { "from": "system", "value": "Update Docker Toolbox to 1.9.0c\n" }, { "from": "human", "value": "cask :v1_1 => 'dockertoolbox' do\n version '1.9.0b'\n sha256 'dc8c2df85154e0604aca331dda5b6a0711d79f7f7fcd8df0a92bd712bf704811'\n\n url \"https://github.com/docker/toolbox/releases/download/v#{ver...
ruby
chosen
[ { "from": "system", "value": "Fix URL of Slack notification. Add description.\n" }, { "from": "human", "value": "require 'slack-notifier'\n\nclass Notifier\n def self.get_notifier\n notifier = Slack::Notifier.new(AppSettings.slack_web_hook_url,\n channel: A...
ruby
chosen
[ { "from": "human", "value": "[Haml] Add a test runner for the haml-spec tests.\n" }, { "from": "gpt", "value": "#!/usr/bin/env ruby\nrequire File.dirname(__FILE__) + '/../test_helper'\n\nbegin\n require 'json'\nrescue LoadError\nend\n\nclass SpecTest < Test::Unit::TestCase\n spec_file = File.d...
ruby
chosen
[ { "from": "system", "value": "Add newly created user to current tenant.\n" }, { "from": "human", "value": "# Users Controller\n#\n# Provides a user/account management interface.\nclass UsersController < AuthorizedController\n # Actions\n def update\n @user = User.find(params[:id])\n\n # ...
ruby
chosen
[ { "from": "system", "value": "Change log format for default logger\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nrequire \"logger\"\nrequire \"justimmo_client/core/config\"\n\nmodule JustimmoClient\n # Logging support\n module Logging\n class << self\n # Use the R...
ruby
chosen
[ { "from": "system", "value": "Add networking_basic cookbook to Ubuntu\n\n\nFormer-commit-id: 020121cf8605f2ec2d895c791528529c5ee0dc69" }, { "from": "human", "value": "#Make sure that this recipe only runs on ubuntu systems\nif platform?(\"ubuntu\")\n\n#Base recipes necessary for a functioning sy...
ruby
chosen
[ { "from": "system", "value": "Clean up basic object and reflect new method sending (inc block)\n" }, { "from": "human", "value": "class BasicObject\n def initialize(*args)\n # nothing ...\n end\n\n def ==(other)\n `self === other`\n end\n\n def __send__(symbol, *args, &block)\n `\n...
ruby
chosen
[ { "from": "system", "value": "Make it obvious that the debug launcher does not capture STDERR/STDOUT\n" }, { "from": "human", "value": "require 'aruba/processes/spawn_process'\n\nmodule Aruba\n module Processes\n # Debug Process\n class DebugProcess < BasicProcess\n # Use only if mod...
ruby
chosen
[ { "from": "system", "value": "Add block behavior to PyMainClassObject\n" }, { "from": "human", "value": "require 'singleton'\nclass RubyPythonBridge::RubyPyObject\n def inspect\n \"<#{self.class}:#{__name}>\"\n end\nend\n\nclass PyMainClass\n include Singleton\n def main\n @main||=Ruby...
ruby
chosen
[ { "from": "system", "value": "Upgrade testsuite to work with RSpec 2.0.0.beta.22\n" }, { "from": "human", "value": "if Formtastic::Util.rails3?\n gem 'rspec', '~> 2.0.0.beta19'\n gem 'rspec-rails', '~> 2.0.0.beta19'\n gem 'rspec_tag_matchers'\n gem 'i18n', '>= 0.4.0'\n\n require \"rubygems\...
ruby
chosen
[ { "from": "system", "value": "Use correct class in TokenResource spec\n" }, { "from": "human", "value": "require 'spec_helper'\n\n# Its pretty difficult to test this module in isolation b/c it needs to work in conjunction with an actual class that\n# extends ActiveRecord::Base and has a correspo...
ruby
chosen
[ { "from": "system", "value": "Fix controller to check validity correctly\n" }, { "from": "human", "value": "class BuildsController < ApplicationController\n before_filter :load_project, :only => :show\n\n def show\n @build = @project.builds.find(params[:id])\n end\n\n def create\n make...
ruby
chosen
[ { "from": "system", "value": "Modify podspec file to include swift files\n" }, { "from": "human", "value": "Pod::Spec.new do |spec|\n spec.name = \"ImagizerSwift\"\n spec.version = \"0.1.0\"\n spec.summary = \"The official swift client for the ImagizerEngine.\"\n spec.homepage = \"https://gi...
ruby
chosen
[ { "from": "system", "value": "Fix subtle bug with migration\nScope deleted orgs into migration query\n" }, { "from": "human", "value": "class OrganisationDefaultStringValues < ActiveRecord::Migration\n\n ATTRS = %i[\n name\n address\n postcode\n email\n description\n website\n...
ruby
chosen
[ { "from": "system", "value": "Fix trigger due_date to utc.\n" }, { "from": "human", "value": "# encoding: UTF-8\nclass Trigger::SetDueDate < Trigger::Action\n\n def days=(a)\n self.argument=a\n end\n\n def days\n argument\n end\n\n def execute(task)\n task.due_at = Time.now + days....
ruby
chosen
[ { "from": "system", "value": "Clear test build storage directory before each example\n" }, { "from": "human", "value": "RSpec.configure do |config|\n def builds_path\n Rails.root.join('tmp/tests/builds')\n end\n\n config.before(:suite) do\n Settings.gitlab_ci['builds_path'] = builds_pat...
ruby
chosen
[ { "from": "system", "value": "Change activerecord dependency to < 4.2\n" }, { "from": "human", "value": "# coding: utf-8\n\nGem::Specification.new do |spec|\n spec.add_dependency 'activerecord', ['>= 3.0', '< 4.1']\n spec.add_dependency 'delayed_job', ['>= 3.0', '< 4.1']\n spec.authors ...
ruby
chosen
[ { "from": "system", "value": "Add attribute to force package download\n" }, { "from": "human", "value": "default[:omnibus_updater][:version] = nil\ndefault[:omnibus_updater][:force_latest] = false\ndefault[:omnibus_updater][:cache_dir] = '/opt'\ndefault[:omnibus_updater][:cache_omnibus_installer...
ruby
chosen
[ { "from": "human", "value": "Add rake task to migrate files to S3\n" }, { "from": "gpt", "value": "namespace :paperclip do\n desc \"Move files from local to S3\"\n task move_to_s3: :environment do\n StoredFile.all.each do |stored_file|\n id_partition = (\"%09d\" % stored_file.id).scan(...
ruby
chosen
[ { "from": "human", "value": "Fix shared Redis connection issue on Passenger\n" }, { "from": "gpt", "value": "if defined?(PhusionPassenger)\n\n # When you're using Passenger with smart-lv2 (default) or smart spawn method,\n # Resque doesn't recognize that it has been forked and should re-establ...
ruby
chosen
[ { "from": "system", "value": "Add 2nd test, refactor first one\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe Ehrmagerd::Translator do\n it 'translates a string into ehrmagerd-speak' do\n test_string = \"Oh my god\"\n expect(Ehrmagerd::Translator.translate(test_strin...
ruby
chosen
[ { "from": "human", "value": "Add iDocument Plus version 2.6\n\nBrowse All Documents in One Place.\n" }, { "from": "gpt", "value": "class IdocumentPlus < Cask\n url 'http://t.icyblaze.com/idpluslatest'\n homepage 'http://www.icyblaze.com/idocument/'\n version 'latest'\n no_checksum\n link 'i...
ruby
chosen
[ { "from": "system", "value": "Fix admin area selector in GitLab QA\n\nFixes gitlab-org/gitlab-qa#66\n" }, { "from": "human", "value": "module QA\n module Page\n module Main\n class Menu < Page::Base\n def go_to_groups\n within_top_menu { click_link 'Groups' }\n en...
ruby
chosen
[ { "from": "system", "value": "Expand list of supported OSs\n" }, { "from": "human", "value": "name \"runit\"\nmaintainer \"Opscode, Inc.\"\nmaintainer_email \"cookbooks@opscode.com\"\nlicense \"Apache 2.0\"\ndescription \"Installs runit and provides runit_ser...
ruby
chosen
[ { "from": "human", "value": "Add specs for ruby -c\n" }, { "from": "gpt", "value": "require File.expand_path('../../spec_helper', __FILE__)\n\ndescribe \"The -c command line option\" do\n it \"checks syntax in given file\" do\n ruby_exe(nil, :args => \"-c #{__FILE__}\").chomp.should == \"Syn...
ruby
chosen
[ { "from": "system", "value": "Fix package name for uninstallation.\nAdd name.\n" }, { "from": "human", "value": "cask :v1 => 'qldds' do\n version '1.20'\n sha256 '8abd0978eb90b1ef55b5ac079960b028cbc926673535a0802bccd590fb253bc6'\n\n url \"https://github.com/Marginal/QLdds/releases/download/re...
ruby
chosen
[ { "from": "system", "value": "Support ruby < 2.1 by removing use of __dir__\n" }, { "from": "human", "value": "require 'opal/cli_runners'\n\nmodule Opal\n module CliRunners\n class Nodejs\n def initialize(output)\n @output ||= output\n end\n attr_reader :output\n\n ...
ruby
chosen
[ { "from": "system", "value": "Fix for ruby2.0 which cannot load Pathname from json\n" }, { "from": "human", "value": "require 'yajl'\n\nmodule Gush\n class Configuration\n attr_accessor :concurrency, :namespace, :redis_url\n attr_writer :gushfile\n\n def self.from_json(json)\n new...
ruby
chosen
[ { "from": "system", "value": "Test for build_list when returning a table and a template.\n" }, { "from": "human", "value": "require 'test/helper'\n\nclass AdminHelperTest < ActiveSupport::TestCase\n\n include AdminHelper\n include ActionView::Helpers::UrlHelper\n include ActionView::Helpers::...
ruby
chosen
[ { "from": "system", "value": "Add deprecation warning for old CI status badge action\n\nWe keep this only for backwards compatibility with projects that have\nbeen migrated from GitLab CI. New project badge will go elsewhere.\n" }, { "from": "human", "value": "module Ci\n class ProjectsControll...
ruby
chosen
[ { "from": "system", "value": "Check branch permission in manual action entity\n" }, { "from": "human", "value": "class BuildActionEntity < Grape::Entity\n include RequestAwareEntity\n\n expose :name do |build|\n build.name\n end\n\n expose :path do |build|\n play_namespace_project_buil...
ruby
chosen
[ { "from": "system", "value": "Make a reader for the code for the class itself\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nmodule Discordrb\n # Custom errors raised in various places\n module Errors\n # Raised when authentication data is invalid or incorrect.\n cla...
ruby
chosen
[ { "from": "system", "value": "Remove unused Bundler and in_root\n" }, { "from": "human", "value": "in_root do\n Bundler.with_clean_env do\n system 'bundle exec spring binstub --all'\n end\nend\n\ngit add: 'bin/rake bin/rails bin/spring'\ngit_commit 'Add spring bin files'\n" }, { "fr...
ruby
chosen
[ { "from": "human", "value": "Add @avibryant's protobuf decoding benchmark\n" }, { "from": "gpt", "value": "require 'benchmark'\nrequire 'benchmark/ips'\n\nrequire 'stringio'\nrequire 'base64'\n\ncls = Class.new do\n def read_varint(io)\n value = index = 0\n begin\n byte = io.readchar...
ruby
chosen
[ { "from": "system", "value": "Fix :wrapper_html :class and :button_html :class options\n\nThis appears to fix the options functionality retaining both :wrapper_html and :button_html options without actually wrapping the action in another tag.\nOnly tested with class and ensured that id also remains but not ...
ruby
chosen
[ { "from": "system", "value": "Move class method calls to above class method definitions in Post model\n" }, { "from": "human", "value": "module Forem\n class Post < ActiveRecord::Base\n belongs_to :topic, :touch => true\n belongs_to :user, :class_name => Forem.user_class.to_s\n belongs...
ruby
chosen
[ { "from": "human", "value": "Add acceptance tests for onehost type\n" }, { "from": "gpt", "value": "require 'spec_helper_acceptance'\n\ndescribe 'onehost type' do\n\n describe 'when creating a onehost' do\n it 'should idempotently run' do\n pp = <<-EOS\n class { 'one':\n ...
ruby
chosen
[ { "from": "system", "value": "Use alias_method in preference to alias.\n" }, { "from": "human", "value": "# Override Chef LWRP creation to remove existing class to avoid redefinition warnings.\nclass Chef\n class Provider\n class << self\n alias :old_build_from_file :build_from_file\n\n...
ruby
chosen
[ { "from": "system", "value": "Update OmniFocus Beta to version 2.2.x-r241602\n\nThis commit updates the version and sha256 stanzas.\n" }, { "from": "human", "value": "cask :v1 => 'omnifocus-beta' do\n version '2.2.x-r238263'\n sha256 '2524ac2ec3541bd65a5aabac111c72f47a05d589b17e313ea37668a4984...
ruby
chosen
[ { "from": "system", "value": "Update podspec version and source\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = 'DAKeyboardControl'\n s.version = '0.0.1'\n s.platform = :ios\n s.license = 'MIT'\n s.summary = 'Easily add keyboard awareness and scrolling dismissal.'\...
ruby
chosen
[ { "from": "system", "value": "Use public Fog methods to get public IP address\n\nPrevious to this commit, the private method #address was called to get\nthe public IP address of an instance, which caused an exception. This\ncommit calls the public #public_ip_address method instead\n" }, { "from": "...
ruby
chosen
[ { "from": "system", "value": "Make bson dependency less strict\n" }, { "from": "human", "value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'mongo/version'\n\nGem::Specification.new do |s|\n s.name = 'mongo'\n s.ve...
ruby
chosen
[ { "from": "system", "value": "Update UniFi Controller to 4.6.6\n\nThis commit updates the version, sha256 and homepage stanzas\n" }, { "from": "human", "value": "cask :v1 => 'unifi-controller' do\n version '3.2.10'\n sha256 'e5aae4e05bac3d6903f91ac5fb74e7a3940795b549c71880e5dae4d163cddea2'\n\n...
ruby
chosen
[ { "from": "system", "value": "Revert \"Added dependency for all 3.2 patch versions.\". It broke Rails 3.0 support.\n\nThis reverts commit 86217e23d521489d4e6e9807dbe7d466091785f9.\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\nrequire ...
ruby
chosen
[ { "from": "system", "value": "Fix an issue with `--debug` and `_dump` on Ruby 1.8.7\n\nThis fixes an issue where both the `--debug` option and the `brew cask _dump` command would fail on Ruby 1.8.7 when the Cask has an `installer` stanza, e. g. `adobe-air`.\n" }, { "from": "human", "value": "cla...
ruby
chosen
[ { "from": "system", "value": "Add an inclusive method to use the inclusive mode\n" }, { "from": "human", "value": "module RSpec\n module Matchers\n module BuiltIn\n class BeBetween < BaseMatcher\n def initialize(min, max)\n @min, @max = min, max\n\n @less_than_o...
ruby
chosen
[ { "from": "human", "value": "Revert public course instance migration\n" }, { "from": "gpt", "value": "class RevertAddHasJoinedToCud < ActiveRecord::Migration\n def up\n\n remove_column :courses, :public\n remove_column :courses, :requires_permission\n remove_column :courses, :website_u...
ruby
chosen
[ { "from": "system", "value": "Update VMware Fusion 6 Cask stanzas" }, { "from": "human", "value": "cask :v1 => 'vmware-fusion6' do\n version '6.0.5-2209127'\n sha256 '7036242845e1ebfeb0c3c430a45b2ebe519a33ec5cdc8955fa4ca03117946693'\n\n url \"https://download3.vmware.com/software/fusion/file/...
ruby
chosen
[ { "from": "system", "value": "Include config dir files in gemspec\n" }, { "from": "human", "value": "version = '3.0.0'\n\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'spree_related_products'\n s.version = version\n s.summary = 'Allows multipl...
ruby
chosen
[ { "from": "system", "value": "Update JSXTransform test case, fix travis test.\n\nNewer coffee-script generates slightly different output, accept it\nin JSX coffee script test case.\n" }, { "from": "human", "value": "require 'test_helper'\n\n# The transformer is inserting a newline after the docb...
ruby
chosen
[ { "from": "system", "value": "Update Sublime Text 3 Dev build 3056\n" }, { "from": "human", "value": "class SublimeTextDev < Cask\n url 'http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%203054.dmg'\n homepage 'http://www.sublimetext.com/3dev'\n version 'build3054'\n sha1 '28b4b038c0...
ruby
chosen
[ { "from": "system", "value": "Use queue_namespace rather than enqueue_in\n" }, { "from": "human", "value": "class RunPipelineScheduleWorker\n include ApplicationWorker\n include PipelineQueue\n\n enqueue_in group: :creation\n\n def perform(schedule_id, user_id)\n schedule = Ci::PipelineSc...
ruby
chosen
[ { "from": "human", "value": "[hp|network] Add tests for request methods for network provider.\n" }, { "from": "gpt", "value": "Shindo.tests(\"HP::Network | network requests\", ['hp', 'network']) do\n\n @network_format = {\n 'id' => String,\n 'name' => String,\n ...
ruby
chosen
[ { "from": "system", "value": "Write log messages one at a time\n" }, { "from": "human", "value": "require 'stud/buffer'\n\nmodule LogStashLogger\n module Device\n class Connectable < Base\n include Stud::Buffer\n\n def initialize(opts = {})\n super\n @batch_events = o...
ruby
chosen
[ { "from": "system", "value": "Fix project team members count\n\nIn Rails 5 `project.team.members` returns a CollectionProxy instead of\narray, which causes that `.flatten` fails. Although we could update the\ncall to get distinct count directly with sql query, in this case it's\nbetter to re-use the list of...
ruby
chosen
[ { "from": "system", "value": "Set podspec version to 0.1.\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = 'SVSegmentedControl'\n s.version = '0.4.1'\n s.platform = :ios, '5.0'\n s.license = 'MIT'\n s.summary = 'A UISwitch-like segmented control for your iOS app. '\...
ruby
chosen
[ { "from": "system", "value": "Extend RuntimeError, use class syntax\n" }, { "from": "human", "value": "require \"posix-spawn\"\nrequire \"github/markup/implementation\"\n\nmodule GitHub\n module Markup\n CommandError = Class.new(Exception)\n\n class CommandImplementation < Implementation\...
ruby
chosen
[ { "from": "system", "value": "Update default to the latest version\n" }, { "from": "human", "value": "default[:nodejs][:default] = \"0.10.17\"\ndefault[:nodejs][:versions] = [ node[:nodejs][:default] ]\ndefault[:nodejs][:aliases] = { node[:nodejs][:default] => node[:nodejs][:default][/\\d+\\.\...
ruby
chosen
[ { "from": "system", "value": "Simplify code for appending strategies in CI/CD config\n" }, { "from": "human", "value": "module Gitlab\n module Ci\n class Config\n module Entry\n class Simplifiable < SimpleDelegator\n EntryStrategy = Struct.new(:name, :condition)\n\n ...
ruby
chosen
[ { "from": "system", "value": "Add tests around Host equality\n" }, { "from": "human", "value": "require File.expand_path(\"#{File.dirname(__FILE__)}/../spec_helper.rb\")\nrequire 'ghost/host'\n\ndescribe Ghost::Host do\n describe 'attributes' do\n subject { Ghost::Host.new('google.com', '74....
ruby
chosen
[ { "from": "system", "value": "Update Spillo to 1.5.2 and provide license info\n" }, { "from": "human", "value": "cask :v1 => 'spillo' do\n version '1.3'\n sha256 '3be890efc0453c6759dadabfd13c6991b1a99d7211c0a0971b717c684a7ef5a0'\n\n url \"http://bananafishsoftware.com/software/spillo/app/spil...
ruby
chosen
[ { "from": "system", "value": "Fix redirect after import fails.\n" }, { "from": "human", "value": "class Projects::ImportsController < Projects::ApplicationController\n # Authorize\n before_action :authorize_admin_project!\n before_action :require_no_repo\n before_action :redirect_if_progress...
ruby
chosen
[ { "from": "system", "value": "Update Omnioutliner Beta to version 4.3.x\n\nThis commit updates the license, sha256 and url stanzas. I don't like\nthe substitution in the url stanza, but they took the version number\nout of the URL for the 4.3.x releases. Happy to take regex guidance!\n" }, { "from":...
ruby
chosen
[ { "from": "system", "value": "Add (very) basic tests for public schedule.\n" }, { "from": "human", "value": "require 'test_helper'\n\nclass Public::ScheduleControllerTest < ActionController::TestCase\n # Replace this with your real tests.\n test \"the truth\" do\n assert true\n end\nend\n"...
ruby
chosen
[ { "from": "human", "value": "Configure TimeHelpers so they can be used with RSpec\n" }, { "from": "gpt", "value": "# Use Rails-provided test helper methods instead of Timecop\n\nRSpec.configure do |config|\n config.include ActiveSupport::Testing::TimeHelpers\nend\n\n# Suggested docs\n# --------...
ruby
chosen
[ { "from": "system", "value": "Remove faraday, we won't be doing http communication from this lib\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'stellar/core/version'\n\nGem::Specifi...
ruby
chosen
[ { "from": "system", "value": "Revert \"Use saved search name as default value for Librato Metrics gauge name\"\n\nThis reverts commit 044c9f49555d132402e2ba5e8e9228a6ed8f0dc6.\n\nThis is causing exceptions in production.\n" }, { "from": "human", "value": "# encoding: utf-8\nclass Service::Librat...
ruby
chosen
[ { "from": "human", "value": "Create Onyx cask for Mountain Lion\n" }, { "from": "gpt", "value": "class OnyxMountainlion < Cask\n url 'http://joel.barriere.pagesperso-orange.fr/dl/108/OnyX.dmg'\n homepage 'http://www.titanium.free.fr/downloadonyx.php'\n version '2.7.4'\n sha1 'dadd7f82fd972e7...
ruby
chosen
[ { "from": "human", "value": "Add Unity Web Player v4.3.5f1\n" }, { "from": "gpt", "value": "class UnityWebPlayer < Cask\n url 'http://webplayer.unity3d.com/download_webplayer-3.x/webplayer-mini.dmg'\n homepage 'https://unity3d.com/webplayer'\n version '4.3.5f1'\n install 'Install Unity Web P...
ruby
chosen
[ { "from": "system", "value": "Remove extra args attr from Schedule\n" }, { "from": "human", "value": "require 'active_support/core_ext/string/inflections'\n\nmodule Repeatable\n class Schedule\n def initialize(args)\n @args = args\n @expression = build_expression(args)\n end\n\n...
ruby
chosen
[ { "from": "system", "value": "JariBakken: Add ability to override Firefox::Bridge's @launcher\n\nr11117\n" }, { "from": "human", "value": "module Selenium\n module WebDriver\n module Firefox\n\n # @api private\n class Bridge < Remote::Bridge\n\n def initialize(opts = {})\n ...
ruby
chosen
[ { "from": "system", "value": "Return 404 status on not found page\n" }, { "from": "human", "value": "class ExercismApp < Sinatra::Base\n [:get, :post, :put, :delete].each do |verb|\n send(verb, '*') { erb :not_found }\n end\nend\n" }, { "from": "gpt", "value": "class ExercismApp...
ruby
chosen
[ { "from": "system", "value": "Fix Itsycal.app v0.9.0 sha256 mismatch\n" }, { "from": "human", "value": "cask :v1 => 'itsycal' do\n version '0.9.0'\n sha256 'f67b2ada9d783e061bbf6790bbde9457cabfd5735a175ec9a3f4b218e2a25746'\n\n # amazonaws.com is the official download host per the vendor homep...
ruby
chosen
[ { "from": "human", "value": "Add functional tests for template rendering\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\nmodule Omnibus\n class RandomClass\n include Templating\n end\n\n describe Templating do\n subject { RandomClass.new }\n\n describe '#render_template' do...
ruby
chosen
[ { "from": "system", "value": "Add more stuff to sync object\n" }, { "from": "human", "value": "module Sync\n class Fetch < Mutations::Command\n required do\n model :device, class: Device\n end\n\n def execute\n message = {\n device: device,\n users: device....
ruby
chosen
[ { "from": "system", "value": "Use before action to respond with 404 if prometheus metrics are missing\n" }, { "from": "human", "value": "class Projects::PrometheusController < Projects::ApplicationController\n before_action :authorize_read_project!\n\n def active_metrics\n return render_404...
ruby
chosen
[ { "from": "system", "value": "Add uninstall stanza for Lazarus\n" }, { "from": "human", "value": "class Lazarus < Cask\n url 'http://downloads.sourceforge.net/lazarus/lazarus-1.0.14-20131116-i386-macosx.dmg'\n homepage 'http://lazarus.freepascal.org/'\n version '1.0.14'\n sha256 'b371f073ae2...
ruby
chosen
[ { "from": "system", "value": "Update PSequel to version 1.3.3.\n" }, { "from": "human", "value": "cask :v1 => 'psequel' do\n version '1.3.0'\n sha256 'ff60dad8a662bd8313e4b0c09609179ac4e30c3d28b8d066f28056703266a3a5'\n\n url \"http://www.psequel.com/download?version=#{version}\"\n name 'PSeq...
ruby
chosen
[ { "from": "system", "value": "Update PHPStorm EAP to 138.1901\n" }, { "from": "human", "value": "class PhpstormEap < Cask\n url 'http://download.jetbrains.com/webide/PhpStorm-EAP-138.1505.dmg'\n homepage 'http://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program'\n versio...
ruby
chosen
[ { "from": "system", "value": "Update DBeaver Enterprise to 3.1.2" }, { "from": "human", "value": "cask :v1 => 'dbeaver-enterprise' do\n version '3.1.1'\n\n if Hardware::CPU.is_32_bit?\n sha256 '692bf7ab300f0876ab3dac996e61f0b7c367db307c8190754fbf798dbb38daeb'\n url \"http://dbeaver.jkiss...
ruby
chosen
[ { "from": "system", "value": "Make sure we're in the test environment\n" }, { "from": "human", "value": "require \"hangar/engine\"\nrequire 'hangar/constraint'\n\nmodule Hangar\nend\n" }, { "from": "gpt", "value": "require \"hangar/engine\"\nrequire 'hangar/constraint'\n\nmodule Hang...
ruby
chosen
[ { "from": "system", "value": "Use deep_dup to duplicate hash in CI/CD extendable config\n" }, { "from": "human", "value": "module Gitlab\n module Ci\n class Config\n module Extendable\n class Collection\n include Enumerable\n\n ExtensionError = Class.new(Standar...
ruby
chosen
[ { "from": "system", "value": "Extend variables_duplicates validator with scope handling\n" }, { "from": "human", "value": "# VariableDuplicatesValidator\n#\n# This validtor is designed for especially the following condition\n# - Use `accepts_nested_attributes_for :xxx` in a parent model\n# - Use...
ruby
chosen
[ { "from": "human", "value": "Add Kindle Comic Converter v4.6.2\n\nA comic and manga optimizer and converter for ereader devices.\nName says Kindle but it is compatible with all devices.\n" }, { "from": "gpt", "value": "cask :v1 => 'kindlecomicconverter' do\n version '4.6.2'\n sha256 '13d1bb6d1...
ruby
chosen
[ { "from": "human", "value": "Add spec examples for Gitlab::Gitaly::WikiService\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\ndescribe Gitlab::GitalyClient::WikiService do\n let(:project) { create(:project) }\n let(:storage_name) { project.repository_storage }\n let(:relative_path)...
ruby
chosen
[ { "from": "human", "value": "Add view specs for ci/cd detailed status badge\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\ndescribe 'ci/status/_badge', :view do\n let(:user) { create(:user) }\n let(:project) { create(:empty_project, :private) }\n let(:pipeline) { create(:ci_pipelin...
ruby
chosen
[ { "from": "system", "value": "Fix destroy in vagrant 1.5.1+\n\nAddresses issue pradels/vagrant-libvirt#166\n" }, { "from": "human", "value": "require 'yaml'\nmodule VagrantPlugins\n module ProviderLibvirt\n module Action\n class PruneNFSExports\n\n def initialize(app, env)\n ...
ruby
chosen
[ { "from": "system", "value": "Use logical_path instead of name to get the assets directories also.\n" }, { "from": "human", "value": "# coding: UTF-8\n\nrequire 'tilt'\n\nmodule HamlCoffeeAssets\n\n # Haml CoffeeScript template implementation for Tilt.\n #\n class HamlCoffeeTemplate < Tilt::T...
ruby
chosen
[ { "from": "system", "value": "Update Macaw to latest version\n" }, { "from": "human", "value": "cask :v1 => 'macaw' do\n version '1.5.9'\n sha256 '390a052022e92289a9c8ef2973e91d7f6928ff88eb3702f0feebe52c8036a717'\n\n url \"http://download.macaw.co/#{version}/Macaw#{version}.dmg\"\n appcast '...
ruby
chosen
[ { "from": "human", "value": "Add a fixture file that uses seed-fu in the test env so that a borken seed-fu is detected\n\nSigned-off-by: Rémy Coutable <4ea0184b9df19e0786dd00b28e6daa4d26baeb3e@rymai.me>\n" }, { "from": "gpt", "value": "require './spec/support/sidekiq'\n\nGitlab::Seeder.quiet do\...
ruby
chosen
[ { "from": "system", "value": "Fix reference to undefined variable\n" }, { "from": "human", "value": "require 'set'\nrequire 'tempfile'\n\nrequire \"vagrant\"\nrequire 'vagrant/util/template_renderer'\n\nrequire Vagrant.source_root.join(\"plugins/guests/linux/guest\")\n\nmodule VagrantPlugins\n ...
ruby
chosen
[ { "from": "system", "value": "Allow multiple values in X-Frame-Options, since the header can be repeated.\n" }, { "from": "human", "value": "require 'http/security/parsers/parser'\n\nmodule HTTP\n module Security\n module Parsers\n class XFrameOptions < Parser\n # X-Frame-Options...
ruby
chosen
[ { "from": "system", "value": "Make entire activate button clickable\n" }, { "from": "human", "value": "class Views::LoggedOut::ActivationButton < Views::Base\n def content\n div(class: buttonish(:large, :alert, :bordered), onclick: \"analytics.track('activation/signup')\") {\n a(href: \...
ruby
chosen
[ { "from": "system", "value": "Increase grit timeout for graph log.\n\nIt prevent slower machines from raising exception\nwhen it takes more time to fetch git log -8000 --shortstat\n" }, { "from": "human", "value": "require_relative 'log_parser'\n\nmodule Gitlab\n module Git\n class GitStats\...
ruby
chosen
[ { "from": "system", "value": "Bring tag monkeypatch up to date with latest rails 2.3\n" }, { "from": "human", "value": "# Monkeypatch! Output HTML 4.0 compliant code, using method described in this\n# ticket: http://dev.rubyonrails.org/ticket/6009\n\nActionView::Helpers::TagHelper.module_eval do...
ruby
chosen
[ { "from": "system", "value": "Fix flakey time-sensitive specs that rely on notes background Sidekiq jobs\n\nFix https://gitlab.com/gitlab-org/gitlab-ce/issues/48093\n\nWe use `perform_enqueued_jobs` because it is \"adapter-agnostic so it's better to use it over Sidekiq::Testing.inline!.\" -- https://gitlab....
ruby
chosen
[ { "from": "system", "value": "Fix URL sent on Twitter share button\n" }, { "from": "human", "value": "class HomeController < ApplicationController\n def index\n @page_info = {\n title: 'Indexador de Dados Públicos',\n description: 'O Peba é um sistema que indexa em fonte única inf...
ruby
chosen
[ { "from": "system", "value": "Comment out get_score method from helpers\n" }, { "from": "human", "value": "helpers do\n def get_score(voteable)\n votes = voteable.votes\n votes.reduce(0) do |sum, vote|\n sum += 1 if vote.value\n sum -= 1 if !vote.value\n sum\n end\n en...
ruby
chosen