conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "human",
"value": "Add completed nested data challenge with reflection.\n"
},
{
"from": "gpt",
"value": "# RELEASE 2: NESTED STRUCTURE GOLF\n# Hole 1\n# Target element: \"FORE\"\n\narray = [[1,2], [\"inner\", [\"eagle\", \"par\", [\"FORE\", \"hook\"]]]]\n\n# attempts:\n# ==============... | ruby | chosen |
[
{
"from": "system",
"value": "Use Sass.load_paths instead of SASS_PATH env\n\nThe SASS_PATH environment variable is not intended to be set by another\nlibrary but rather by consumers of Sass. Since the environment variable\nis only read in once at the first time `load_paths` is called.\n\nThis was causing a... | ruby | chosen |
[
{
"from": "system",
"value": "Remove bundler dependency from gemspec\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"./lib/gemdiff/version\"\n\nGem::Specification.new do |spec|\n spec.name = \"gemdiff\"\n spec.version = Gemdiff::VERSION\n spec.auth... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.4.2.0 to 0.4.2.1\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'log'\n s.version = '0.4.2.0'\n s.summary = 'Logging to STD IO with levels, tagging, and coloring'\n s.des... | ruby | chosen |
[
{
"from": "system",
"value": "Update order on subscription line item removal\n\nThis could affect promotions if they are targeting line items with\nassociated subscription line items\n"
},
{
"from": "human",
"value": "class SolidusSubscriptions::Api::V1::LineItemsController < Spree::Api::BaseCon... | ruby | chosen |
[
{
"from": "system",
"value": "Fix TaxRate.zone mass-assignment in TaxCategory factory\n\nFixes #1817\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :tax_category, :class => Spree::TaxCategory do\n name { \"TaxCategory - #{rand(999999)}\" }\n description { Faker::Lorem.... | ruby | chosen |
[
{
"from": "system",
"value": "Remove relationships in WepayCheckoutRecord model, as it's up to the user to customize.\n"
},
{
"from": "human",
"value": "class WepayCheckoutRecord < ActiveRecord::Base\n belongs_to :checkout\n belongs_to :preapproval\n belongs_to :ipn\n belongs_to :authorize\n... | ruby | chosen |
[
{
"from": "human",
"value": "Write test for auto versioning\n"
},
{
"from": "gpt",
"value": "require 'diffusul/version'\n\nver2next = {\n '1' => '2',\n 'v1' => 'v2',\n 'v0.3.1' => 'v0.3.2',\n 'p208-1' => 'p208-2',\n 'foo' => 'foo-1',\n}\n\ndescribe 'Automatically determine next version' do\... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for the Lita::Handler extensions.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Lita::Handler, lita: true do\n let(:robot) { instance_double(\"Lita::Robot\", name: \"Lita\") }\n let(:user) { instance_double(\"Lita::User\", name: \"Tes... | ruby | chosen |
[
{
"from": "system",
"value": "Use the new dir for templates\n"
},
{
"from": "human",
"value": "module DeboxServer\n module Recipes\n include DeboxServer::Utils\n\n RECIPE_TEMPLATE = 'recipe_new.rb.erb'\n\n # Create a new recipe\n def create_recipe(app_name, name, content)\n app... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing ] in gemspec file.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = \"spree_unified_payment\"\n s.version = \"1.0.0\"\n s.author = [\"Manish Kangia\", \"Sushant Mittal\"\n s.em... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Record: Use participation, not team\"\n\nThis reverts commit dc5d1b6f723fb129c25e7fbb201fce0052d9b85a.\nNo need for participations.\n"
},
{
"from": "human",
"value": "require \"frecon/position\"\n\nmodule FReCon\n\tclass Record\n\t\tinclude Mongoid::Documen... | ruby | chosen |
[
{
"from": "system",
"value": "Tests: Move initialization into AfterConfiguration to avoid appium overwrite\n"
},
{
"from": "human",
"value": "# Any 'run once' setup should go here as this file is evaluated\n# when the environment loads.\n# Any helper functions added here will be available in st... | ruby | chosen |
[
{
"from": "system",
"value": "Make Calfresh module and add FORM_FIELDS mapping constant\n"
},
{
"from": "human",
"value": "require 'pdf_forms'\n\nclass CalfreshApplicationWriter\n def initialize\n @pdftk = PdfForms.new('/usr/bin/pdftk')\n end\n\n def fill_out_form(args)\n validated_fiel... | ruby | chosen |
[
{
"from": "human",
"value": "Add ubuntu 12.04 integration test.\n"
},
{
"from": "gpt",
"value": "require 'integration_helper'\n\nclass Ubuntu12_04Test < IntegrationTest\n def user\n \"ubuntu\"\n end\n\n def image_id\n \"ami-098f5760\"\n end\n\n include EmptyCook\n include Apache2Cook... | ruby | chosen |
[
{
"from": "system",
"value": "Return a valid timestamp for inventory polling\n"
},
{
"from": "human",
"value": "module QBIntegration\n class Stock < Base\n attr_reader :item, :items, :name\n\n def initialize(message = {}, config)\n super\n\n @name = message[:sku] || message[:pro... | ruby | chosen |
[
{
"from": "system",
"value": "Remove any dir/.. in REFINERY_ROOT which are ugly and useless.\n"
},
{
"from": "human",
"value": "REFINERY_ROOT = File.join File.dirname(__FILE__), '..'\n\nunless REFINERY_ROOT == RAILS_ROOT # e.g. only if we're in a gem.\n $LOAD_PATH.unshift \"#{REFINERY_ROOT}/ven... | ruby | chosen |
[
{
"from": "system",
"value": "Fix grouping delete from Sidekiq Web\n"
},
{
"from": "human",
"value": "require 'sidekiq/web'\n\nmodule Sidekiq\n module Grouping\n module Web\n VIEWS = File.expand_path('views', File.dirname(__FILE__))\n\n def self.registered(app)\n app.get \"/... | ruby | chosen |
[
{
"from": "system",
"value": "Optimize an extra time in Chain\n\nRight now the children of a Chain are guaranteed to be optimized, but if it were used from somewhere else that would not hold."
},
{
"from": "human",
"value": "module JMESPath\n # @api private\n module Nodes\n class Subexpress... | ruby | chosen |
[
{
"from": "system",
"value": "Implement the asteroid spawning method.\n"
},
{
"from": "human",
"value": "module Asteroids\n class PlayState < GameState\n\n def initialize\n @background = Gosu::Image.new($window,\n Utils.get_image_path('background.png'), false)\n @object_pool... | ruby | chosen |
[
{
"from": "system",
"value": "Rename Waypoint migration column to location\n"
},
{
"from": "human",
"value": "class CreateWaypoints < ActiveRecord::Migration[5.0]\n def change\n create_table :waypoints do |t|\n \t# t.string :name, { null: false }\n \tt.st_point :coordinates, geographic... | ruby | chosen |
[
{
"from": "human",
"value": "Kill mutation in unary FOR visitor\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Veritas::Adapter::Arango::Visitor::For::Unary, '#local_name' do\n subject { object.local_name }\n let(:object) { class_under_test.new(relation, context) }\n let(:... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a typo in the @options variable.\n\nFixes #64.\n"
},
{
"from": "human",
"value": "require 'middleman-core'\nrequire 'map'\n\nmodule Middleman\n module S3Sync\n class << self\n attr_accessor :options\n\n def registered(app, options_hash = {}, &block... | ruby | chosen |
[
{
"from": "human",
"value": "Set up settings for cucumber\n"
},
{
"from": "gpt",
"value": "require 'coveralls'\nrequire 'selenium-webdriver'\nCoveralls.wear_merged!('rails')\n\nrequire 'pry'\n\n# Require support classes in spec/support and its subdirectories.\nDir[Rails.root.join(\"spec/support/... | ruby | chosen |
[
{
"from": "system",
"value": "Update test to match UI\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.feature 'User creates a species variation observation' do\n let(:user) { create(:user) }\n\n before do\n create(:plot)\n sign_in(user)\n visit new_species_variation... | ruby | chosen |
[
{
"from": "system",
"value": "Use do...while instead of while in wait_for_download\n\nThis gives browser the time to have started a new download. Also,\nFileUtils.rm can take time to have effect. Even though this time\nis in millisecond level, it can sometime happen that downloaded?\nreturns true simply bec... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the helper method to get server based on id.\n"
},
{
"from": "human",
"value": "RSpec.configure do |config|\n\n ### This helper is required because servers.get(id) does not work\n def get_server(connection = nil, id)\n connection ||= compute_connection\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Rename ivar on env var for clarity\n"
},
{
"from": "human",
"value": "require \"envm/config\"\n\nmodule Envm\n class EnvVar\n attr_accessor :name, :description, :default_value, :required\n\n def initialize(name:, description: nil, default_value: nil, required... | ruby | chosen |
[
{
"from": "system",
"value": "Add debian to supported OSes\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nname 'kafka'\nmaintainer 'Mathias Söderberg'\nmaintainer_email 'mths@sdrbrg.se'\nlicense 'Apache 2.0'\ndescription 'Installs and configures a Kafka b... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify where this is needed in the description\n"
},
{
"from": "human",
"value": "name 'partial_search'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookbooks@chef.io'\nlicense 'Apache 2.0'\ndescription 'Provides experim... | ruby | chosen |
[
{
"from": "system",
"value": "Automate methods can access categories and entries\n\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1254953\n\nPR feedback\n\n\n(transferred from ManageIQ/manageiq@06d79ecb7c45c39ae1009925199461b7f6c95b94)\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nde... | ruby | chosen |
[
{
"from": "system",
"value": "Declare the gem's dependency on ActiveSupport\n\nWe now [use][1] ActiveSupport in `Que::Job`. This dependency isn't\ndeclared in the gemspec, so it can cause projects using Que to\nblow up (e.g. [que-failure][2].\n\nThis declares the dependency on `activesupport`. I haven't\nsp... | ruby | chosen |
[
{
"from": "system",
"value": "Fix logic for loading a user's active courses on the home page\n"
},
{
"from": "human",
"value": "class HomePagePresenter\n attr_reader :current_user, :cohort_param\n\n def initialize(current_user, cohort_param)\n @current_user = current_user\n @cohort_param... | ruby | chosen |
[
{
"from": "human",
"value": "Add ontology search controller spec\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe OntologySearchController do\n\n describe \"GET search\" do\n it \"searches for ontologies with the given keywords\" do\n @request.env[\"HTTP_ACCEPT\"] = \"... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for timeslot mailer cancellation methods\n\nAdd specs to verify the proper issuance of email notifications to\nstudent and tutor that a session has been canceled.\n"
},
{
"from": "human",
"value": "require \"rails_helper\"\n\nRSpec.describe TimeslotMailer, ... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.0.0.1 to 0.1.0.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'data_aggregation-index'\n s.version = '0.0.0.1'\n s.summary = 'Event store data aggregation index library'... | ruby | chosen |
[
{
"from": "system",
"value": "Correct file listing in gemspec.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'absinthe'\n s.version = '0.0.1'\n s.platform = Gem::Platform::RUBY\n s.license = 'bsd'\n s.summary = \"Absinthe is an opinioned I... | ruby | chosen |
[
{
"from": "system",
"value": "Add base error class for all specific error classes to inherit from\n"
},
{
"from": "human",
"value": "require \"active_support/notifications\"\nrequire \"stripe\"\nrequire \"stripe_event/engine\" if defined?(Rails)\n\nmodule StripeEvent\n class << self\n attr_a... | ruby | chosen |
[
{
"from": "system",
"value": "Add MIT license to Gemspec.\n"
},
{
"from": "human",
"value": "\nSPEC = Gem::Specification.new do |s|\n s.name = \"hermann\"\n s.version = \"0.11\"\n s.default_executable = \"hermann\"\n\n s.authors = [\"Stan Campbell\"]\n s.date = %q{2... | ruby | chosen |
[
{
"from": "system",
"value": "Define depencencies of this gem.\n"
},
{
"from": "human",
"value": "require 'rake'\n\nGem::Specification.new do |spec|\n spec.name = 'tepco_usage_api'\n spec.required_ruby_version = '>= 1.8.7'\n spec.summary = 'The gem to talk with Tepco Usage API. '\n spec.vers... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure requires_arc is set to true"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"NSDateComponents-HNExtensions\"\n s.version = \"0.3\"\n s.summary = \"A category on NSDateComponents allowing nice localizable string descri... | ruby | chosen |
[
{
"from": "system",
"value": "Fix check out data feed\n"
},
{
"from": "human",
"value": "require_relative '../lib/momma/client'\n\nSCHEDULER.every '1m', allow_overlapping: false do |job|\n summary = Momma::Client.summary\n\n send_event('total-donated', { current: summary[\"total_donated\"] })\... | ruby | chosen |
[
{
"from": "system",
"value": "Increase total results per page\n"
},
{
"from": "human",
"value": "=begin\nCopyright 2016 SourceClear Inc\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of... | ruby | chosen |
[
{
"from": "system",
"value": "Add shipping method injection helper using id name serializer\n"
},
{
"from": "human",
"value": "module Admin\n module InjectionHelper\n def admin_inject_enterprise\n admin_inject_json_ams \"admin.enterprises\", \"enterprise\", @enterprise, Api::Admin::Ente... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"unset ontology_id on setting state to failed\"\n\nThis reverts commit 57eba7322d74ad38e54791f9a5aea29562bf2684.\n"
},
{
"from": "human",
"value": "# \n# states:\n# * pending\n# * downloading\n# * processing\n# * failed\n# * done\n# \nmodule OntologyVersion:... | ruby | chosen |
[
{
"from": "system",
"value": "Add `affix` to the list of Javascripts\n"
},
{
"from": "human",
"value": "description \"Bootstrap for Sass\"\n\n# Stylesheet importing bootstrap\nstylesheet 'styles.scss'\n\n#\n# Other Bootstrap assets\nbasedir = '../../vendor/assets'\n\n# Glyphicons sprites\n%w(gly... | ruby | chosen |
[
{
"from": "system",
"value": "tests: Fix compatibility with Docker > 1.9.1\n\nswitch -f of docker tag was dropped in newer versions.\n\nSigned-off-by: Dmitry Fleytman <a8cf97adadec4e1b734a39bc5aea71b5741cfca1@daynix.com>\n"
},
{
"from": "human",
"value": "Given /^existing base file (.*\\.tar)$/ ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rails dependency in gemspec\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"jquery-colorbox-rails/version\"\n\nGem::Specification.new do |s|\n s.name = \"jquery-colorbox-rails\"\n s.version = JqueryColorb... | ruby | chosen |
[
{
"from": "system",
"value": "Increase Capybara default wait time\n"
},
{
"from": "human",
"value": "require 'simplecov'\n\n# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.\n# It is recommended to regenerate this file in the future when you upgrade to a\n# newer ve... | ruby | chosen |
[
{
"from": "system",
"value": "SSHFS: Use paths to OS X supplied autotools\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Sshfs < Formula\n homepage 'http://fuse.sourceforge.net/sshfs.html'\n url 'https://github.com/fuse4x/sshfs.git', :tag => 'sshfs_2_3_0'\n version '2.3.0'\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Modify the load path to include lib/ to simplify requires\n"
},
{
"from": "human",
"value": "require './lib/git.rb'\nrequire './lib/core.rb'\nrequire './lib/github.rb'\nrequire './lib/jenkins.rb'\nrequire './lib/helpers/logger.rb'\nrequire './lib/helpers/repository.... | ruby | chosen |
[
{
"from": "system",
"value": "Modify regex to skip commented 'start on' statements\n\nChef comments the 'start on' line when disabling upstart services\n"
},
{
"from": "human",
"value": "class Specinfra::Command::Debian::Base::Service < Specinfra::Command::Linux::Base::Service\n class << self\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add benchmark for Publish command\n\nCreates 100 different draft content items, publishes them, then\nsupersedes them with new drafts.\n"
},
{
"from": "gpt",
"value": "# /usr/bin/env ruby\n\nrequire ::File.expand_path('../../config/environment', __FILE__)\nrequire 'b... | ruby | chosen |
[
{
"from": "system",
"value": "Add more dependencies that will be used in the first part of this project\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/contao/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Wael Nasr... | ruby | chosen |
[
{
"from": "human",
"value": "Add a ctl command for just the chef12 upgrade download step.\n\nThis will download the data from a Chef 11 OSC server and save it\nto disk so it can be manipulated if needed.\n"
},
{
"from": "gpt",
"value": "#\n# Copyright:: Copyright (c) 2014 Chef Software, Inc.\n#\... | ruby | chosen |
[
{
"from": "system",
"value": "Make the message boundary be \\r\\n, 0.1.4\n\nSeems to follow with popular json streaming(ie, twitter) uses\n"
},
{
"from": "human",
"value": "require \"logger\"\nrequire \"json\"\n\nclass CommonEventFormatter < Logger::Formatter\n VERSION = \"0.1.3\"\n\n def call... | ruby | chosen |
[
{
"from": "system",
"value": "Bump the ffi-geos version requirement to \"~> 0.1\".\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nrequire File.expand_path('../lib/geos/extensions/version', __FILE__)\n\nGem::Specification.new do |s|\n s.name = \"geos-extensions\"\n s.version = ... | ruby | chosen |
[
{
"from": "system",
"value": "Replace range @attempts with integer MaxAttempts\n"
},
{
"from": "human",
"value": "# 'require' all files except ourselves.\nme = File.absolute_path(__FILE__)\nDir.glob(File.dirname(me) + '/**/*.rb') { |fn| require fn unless fn == me }\n\n\nclass Power\n\n @attempt... | ruby | chosen |
[
{
"from": "system",
"value": "Add physical chassis details builder\n"
},
{
"from": "human",
"value": "module ManageIQ::Providers\n class Inventory::Persister\n class Builder\n class PhysicalInfraManager < ::ManageIQ::Providers::Inventory::Persister::Builder\n def physical_servers... | ruby | chosen |
[
{
"from": "system",
"value": "Fix undefined method 'destroy' for user session\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nclass <%= session_plural_class_name %>Controller < ApplicationController\n skip_before_filter :login_required\n \n layout 'login'\n \t\n def new\n @<%= sess... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop requirement from ~> 0.90.0 to ~> 0.91.0\n\nUpdates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.\n- [Release notes](https://github.com/rubocop-hq/rubocop/releases)\n- [Changelog](https://github.com/rubocop-hq/r... | ruby | chosen |
[
{
"from": "system",
"value": "Remove old Config variable. Superceded by Config class.\n"
},
{
"from": "human",
"value": "\nmodule Sweep\n\tAPP_NAME = 'sweep'\n\tVERSION = '0.0.0'\n\tCOPYRIGHT = \"(C) Andrew Benson and contributors 2013\"\n\tConfig = { \n\t\t:HostInterval => 10, \n\t\t:PortInterv... | ruby | chosen |
[
{
"from": "system",
"value": "Switch from fauxhai to fauxhai-ng\n\nWe've lost access to the fauxhai gem even though the source is\ncontrolled by the chefspec org. The gem has been renamed to fauxhai-ng\nso we can continue to release updates for use in chefspec.\n\nSigned-off-by: Tim Smith <764ef62106582a09e... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo / Ignore config missing\n"
},
{
"from": "human",
"value": "require \"action_mailer_config\"\nrequire \"yaml\"\n\npath = \"#{Rails.root}/config/mail.yml\"\nraise \"Could not found ActionMailer config file: #{path}\" unless File.exists? path\nconfig_for_all =... | ruby | chosen |
[
{
"from": "system",
"value": "Use class_attribute instead of cattr_accessor\n"
},
{
"from": "human",
"value": "module ActiveFulfillment\n class Service\n\n include ActiveUtils::RequiresParameters\n include ActiveUtils::PostsData\n\n cattr_accessor :logger\n\n def initialize(options ... | ruby | chosen |
[
{
"from": "human",
"value": "Add a test file for BMFF::Box::FreeSpace.\n"
},
{
"from": "gpt",
"value": "# coding: utf-8\n# vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:\n\nrequire_relative '../../minitest_helper'\nrequire 'bmff/box'\nrequire 'stringio'\n\nclass TestBMFFBoxF... | ruby | chosen |
[
{
"from": "human",
"value": "Add another test for special cases.\n"
},
{
"from": "gpt",
"value": "require 'test/unit'\nrequire 'rcov-cobertura'\nrequire 'tmpdir'\n\nclass FormatterHeuristicTest < Test::Unit::TestCase\n\n def get_output(file, lines, coverage, counts)\n Dir.mktmpdir('rcov_cobe... | ruby | chosen |
[
{
"from": "system",
"value": "Add another missing reference to the gemspec\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + \"/lib/mail/version\"\n\nGem::Specification.new do |s|\n s.name = \"mail\"\n s.version = Mail::VERSION::STRING\n s.author = \"Mikel Li... | ruby | chosen |
[
{
"from": "system",
"value": "Use title for Milestone lookup\n"
},
{
"from": "human",
"value": "MILESTONE = 47\n# subtract 6 from actual Sprint milestone number for the ManageIQ/manageiq repo\nACCESS_TOKEN = \"your github access token\"\n\nrequire_relative 'sprint_statistics'\nprs = SprintStatis... | ruby | chosen |
[
{
"from": "human",
"value": "Add DigitalOcean Droplets Manager 0.1\n"
},
{
"from": "gpt",
"value": "class Dropletsmanager < Cask\n url 'https://dl.dropboxusercontent.com/u/115750/files/DropletsManager0.1.zip'\n homepage 'https://github.com/deivuh/DODropletManager-OSX'\n version '0.1'\n sha25... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up the \"hist\" command.\n"
},
{
"from": "human",
"value": "class Pry\n module DefaultCommands\n\n Input = Pry::CommandSet.new :input do\n\n command \"!\", \"Clear the input buffer. Useful if the parsing process goes wrong and you get stuck in the rea... | ruby | chosen |
[
{
"from": "system",
"value": "Return 401 unless this teacher has access to this classroom\n"
},
{
"from": "human",
"value": "class Teachers::ProgressReports::Standards::ClassroomStudentsController < Teachers::ProgressReportsController\n include UnitsWithCompletedActivities\n\n def index\n r... | ruby | chosen |
[
{
"from": "system",
"value": "Increase Capistrano version in config file\n"
},
{
"from": "human",
"value": "# config valid only for current version of Capistrano\nlock \"3.10.1\"\n\nset :application, \"gallery\"\n\nset :repo_url, \"git@github.com:CannyFoxx/gallery.git\"\nset :branch, \"stable\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spec description for Net::HTTP.get\n"
},
{
"from": "human",
"value": "require_relative '../../../../spec_helper'\nrequire 'net/http'\nrequire_relative 'fixtures/http_server'\n\ndescribe \"Net::HTTP.get when passed URI\" do\n before :each do\n NetHTTPSpecs.st... | ruby | chosen |
[
{
"from": "system",
"value": "Use new route definition style\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n root to: 'organizations#index'\n\n resources :organizations do\n resources :events do\n member do\n post :activate\n post :deactivate\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor thethe wayy to obtain primary key value.\n"
},
{
"from": "human",
"value": "module Arel\n module Sql\n class Engine\n\n def initialize(ar = nil)\n @ar = ar\n end\n\n def connection\n @ar ? @ar.connection : nil\n end\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Include root in json for claim errors"
},
{
"from": "human",
"value": "module Comptroller\n class ClaimError\n include Her::Model\n use_api BILLING_API\n collection_path '/duxware_errors'\n\n def eql?(other)\n id.eql? other.id\n end \n end\nend... | ruby | chosen |
[
{
"from": "system",
"value": "Update gc_ruboconfig requirement from ~> 2.18.0 to ~> 2.19.0\n\nUpdates the requirements on [gc_ruboconfig](https://github.com/gocardless/ruboconfig) to permit the latest version.\n- [Release notes](https://github.com/gocardless/ruboconfig/releases)\n- [Changelog](https://githu... | ruby | chosen |
[
{
"from": "system",
"value": "Change association type to integer\n"
},
{
"from": "human",
"value": "class CreateSpinaProjectsTable < ActiveRecord::Migration\n def change\n create_table :spina_projects do |t|\n t.string :title\n t.string :slug\n t.text :description\n t.str... | ruby | chosen |
[
{
"from": "system",
"value": "Rewrite EventRegistration model spec because of bug in shoulda_matchers\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe EventRegistration, type: :model do\n let(:user) { create(:user) }\n let(:event) { create(:event) }\n let(:reg) { cr... | ruby | chosen |
[
{
"from": "system",
"value": "Increase coverage of IDPSSODescriptor to 100%\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe IDPSSODescriptor do\n context 'extends sso_descriptor' do\n it { is_expected.to validate_presence :want_authn_requests_signed }\n it { is_expec... | ruby | chosen |
[
{
"from": "system",
"value": "Add swift 4 config to podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |spec|\n spec.name = \"ALCameraViewController\"\n spec.version = \"2.0.3\"\n spec.summary = \"A camera view controller with custom image picker a... | ruby | chosen |
[
{
"from": "system",
"value": "Add railties as runtime dependency\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'the_bullet/generator/version'\n\nGem::Specification.new do |spec|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add tinder and faye with thin."
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/methane/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Stas SUȘCOV\"]\n gem.email = [\"stas@nerd.ro... | ruby | chosen |
[
{
"from": "human",
"value": "Add start of extension to remap a source directory to a test directory\n"
},
{
"from": "gpt",
"value": "class Middleman::Extensions::DirManager < Middleman::Extension\n register :dir_manager\n option :remap_resources, [\n {\n new_dir: \"/spec/fixtures/blog\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix up specs so they actually run on a parser-specific basis"
},
{
"from": "human",
"value": "require 'spec/rake/spectask'\ndesc \"Run specs\"\nSpec::Rake::SpecTask.new(:spec) do |spec|\n spec.libs << 'lib' << 'spec' << 'examples'\n spec.spec_opts = ['--options', ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure to return a MAB document.\n"
},
{
"from": "human",
"value": "require_relative \"./document\"\n\nmodule Metacrunch\n module Mab2\n class Builder\n\n attr_reader :document\n\n def self.build(&block)\n builder = new\n builder.insta... | ruby | chosen |
[
{
"from": "human",
"value": "Delete CTS group and redirect to new location\n"
},
{
"from": "gpt",
"value": "slug = \"common-technology-services-cts\"\nredirect_path = \"/government/publications/technology-code-of-practice/technology-code-of-practice\"\n\ngroup = PolicyGroup.find_by(slug: slug)\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add migration to clean up malformed requirements fields from yaml/syck issues.\n"
},
{
"from": "gpt",
"value": "class RemoveImproperlyEmbeddedYamlData < ActiveRecord::Migration\n def self.up\n Dependency.where(\"requirements like '%YAML::Syck::DefaultKey%'\").eac... | ruby | chosen |
[
{
"from": "system",
"value": "Use symbols for hash keys\n\nCo-Authored-By: biggless <ae34a294a903d5c7066aa7b722e7c82ef3b40e56@gmail.com>"
},
{
"from": "human",
"value": "module Commands\n class AckMine\n include Base\n\n def call\n ids = pagerduty.get_incidents(query_params).map { |i... | ruby | chosen |
[
{
"from": "system",
"value": "Use absolute path for development db\n"
},
{
"from": "human",
"value": "require 'sqlite3'\nrequire 'sequel'\n\nmodule Quotes\n module Gateways\n class Backend\n include Support::ValidationHelpers\n\n def initialize\n @database = retrieve_databas... | ruby | chosen |
[
{
"from": "system",
"value": "Add license details to gemspec.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nrequire File.expand_path('../lib/ncsa-parser/version', __FILE__)\n\nGem::Specification.new do |s|\n s.name = \"ncsa-parser\"\n s.version = NCSAParser::VERSION\n\n s.re... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing fields to Pretransaction Object\n\ntype and time are valid pretransition attributes\nas can be seen on Ravelin API docs\nhttps://developer.ravelin.com/#post-/v2/pretransaction\n"
},
{
"from": "human",
"value": "module Ravelin\n class PreTransaction < Ra... | ruby | chosen |
[
{
"from": "system",
"value": "Fix sneaky ruby 2.0 incompatibility\n\n* Ruby 2.0 doesn't support required kwargs. This wasn't caught\n previously because the file was not being loaded. This reinforces the\n need for #130.\n"
},
{
"from": "human",
"value": "module Pakyow\n module Commands\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix missing colon un journal condition builder\n"
},
{
"from": "human",
"value": "module Accountancy\n module ConditionBuilder\n class JournalConditionBuilder < Base\n # Build an SQL condition based on options which should contains natures\n def nature... | ruby | chosen |
[
{
"from": "system",
"value": "Resolve rubocop warnings in comparision.rb.\n"
},
{
"from": "human",
"value": "require_relative 'error'\n\nmodule SyncIssues\n # Comparison represents differences between Issues (local and GitHub)\n class Comparison\n attr_reader :assignee, :changed, :content, ... | ruby | chosen |
[
{
"from": "human",
"value": "Add rake task to check integrity of uploaded files\n"
},
{
"from": "gpt",
"value": "namespace :gitlab do\n namespace :uploads do\n desc 'GitLab | Uploads | Check integrity of uploaded files'\n task check: :environment do\n puts 'Starting checking integrit... | ruby | chosen |
[
{
"from": "system",
"value": "Use batches when processing keyword index\n"
},
{
"from": "human",
"value": "#full_text_search.rake\n\nnamespace :transam do\n\n namespace :keyword_search do\n\n desc \"Index all searchable items\"\n task index_all: :environment do\n Rails.logger.info \"... | ruby | chosen |
[
{
"from": "system",
"value": "Add StudentSchoolYears to data integrity check\n\n+ #264\n"
},
{
"from": "human",
"value": "class IntegrityCheck\n\n def check!\n begin\n has_data?\n has_valid_data?\n puts 'All good!'\n rescue => error\n puts 'Uh oh! Data check failed:'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add docs for ListBookmarks service.\n"
},
{
"from": "human",
"value": "class ListBookmarks\n def self.list\n Bookmark.all.to_a\n end\nend\n"
},
{
"from": "gpt",
"value": "##\n# This class allows users to list all of their bookmarks. It consists of a... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.