conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Remove extra space after port range\n\nResolves #79\n"
},
{
"from": "human",
"value": "module FirewallCookbook\n module Helpers\n def port_to_s(p)\n if p && p.is_a?(Integer)\n p.to_s\n elsif p && p.is_a?(Array)\n p.join(',')\n elsif ... | ruby | chosen |
[
{
"from": "system",
"value": "Make the `reset!` method callable...\n"
},
{
"from": "human",
"value": "require 'stuffed_bunny/version'\nrequire 'stuffed_bunny/bunny_overrides'\n\nmodule StuffedBunny\n\n # Call this in a test's setup method to stub the Bunny gem.\n def reset!\n Bunny.reset_ex... | ruby | chosen |
[
{
"from": "system",
"value": "Rename 'col' method to 'cell'\n"
},
{
"from": "human",
"value": "class TinyTable\n class TextFormatter\n CORNER = '+'\n VERTICAL = '|'\n HORIZONTAL = '-'\n PADDING = ' '\n\n def initialize(table)\n @table = table\n @output = ''\n end\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Define a default configuration loader and add a method to load the configuration\n"
},
{
"from": "human",
"value": "require 'configuration/yaml'\n\nclass TmuxPowerline\n def initialize(configuration_loader)\n if configuration_loader.nil?\n raise ArgumentErr... | ruby | chosen |
[
{
"from": "system",
"value": "Include https in root url\n"
},
{
"from": "human",
"value": "Rails.application.configure do\n config.cache_classes = true\n\n config.eager_load = true\n\n config.consider_all_requests_local = false\n config.action_controller.perform_caching = true\n\n con... | ruby | chosen |
[
{
"from": "system",
"value": "Make it clear that we use Sequel::Model attributes\n"
},
{
"from": "human",
"value": "class Page < Sequel::Model\n def before_create\n self.slug = Title.new(title).slug\n end\n\n def before_save\n self.compiled_content = Markup.to_html(self.content)\n se... | ruby | chosen |
[
{
"from": "system",
"value": "Allow single strings for operations."
},
{
"from": "human",
"value": "module Swagger\n class Api\n def initialize path, opts\n defaults = { \n :path => path,\n :operations => []}\n @values = defaults.merge opts\n end\n\n def path\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove reference to unused file\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'bureaucrat'\n s.version = '0.0.3'\n s.summary = %{Form handling for Ruby inspired by Django forms.}\n s.date = %q{2009-11-03}\n s.author = \"Bruno Defer... | ruby | chosen |
[
{
"from": "system",
"value": "Use full name, prevents empty list items\n"
},
{
"from": "human",
"value": "ActiveAdmin.register Venue do\n menu parent: \"Kalender\"\n\n index do\n column :id\n column :location\n column :street\n column :zipcode\n column :city\n column :country... | ruby | chosen |
[
{
"from": "system",
"value": "Add license name to the gemspec."
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"timeliness/version\"\n\nGem::Specification.new do |s|\n s.name = \"timeliness\"\n s.version = Timeline... | ruby | chosen |
[
{
"from": "human",
"value": "Add in a refactored version of let it be\n"
},
{
"from": "gpt",
"value": "# Lesson 6 - Gospel Song Chord Progression\n# Let It Be - Refactor\nuse_synth :piano\n\ndefine :gospel_chord do |pitch, pitch_scale = :major|\n play pitch\n 2.times do\n play chord(pitch.s... | ruby | chosen |
[
{
"from": "human",
"value": "Add coverage for order model\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe CloudPayments::Order do\n subject{ described_class.new(attributes) }\n\n let(:attributes) do\n {\n id: 'f2K8LV6reGE9WBFn',\n number: 61,\n amount: 10.0... | ruby | chosen |
[
{
"from": "system",
"value": "Increase abstraction in the spec.\n"
},
{
"from": "human",
"value": "module Nutrella\n RSpec.describe Configuration do\n let(:path) { \"home_dir/config.yml\" }\n let(:subject) { Configuration.new(path) }\n\n describe \"#initialize\" do\n it \"succeeds... | ruby | chosen |
[
{
"from": "system",
"value": "Disable autoincluding of Sortable and Searchable controller modules\n"
},
{
"from": "human",
"value": "module ::ApplicationHelper\n include Sortable::Helper\n include Searchable::Helper\n\n def pagination\n will_paginate :next_label => t('next') + ' »',\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add comment about how to disable the current exception\nbehavior in production (a 404 response).\n\n\ngit-svn-id: 36d0598828eae866924735253b485a592756576c@8097 da5c320b-a5ec-0310-b7f9-e4d854caa1e2\n"
},
{
"from": "human",
"value": "class ActionController::Base \n #... | ruby | chosen |
[
{
"from": "system",
"value": "Add code documentation to RendererExtensions module\n"
},
{
"from": "human",
"value": "module BetterSJR\n module RendererExtensions\n def render_template(*)\n if debugging_sjr? && rendering_js?\n TryCatchStatement.new(super).wrapped_code\n else\... | ruby | chosen |
[
{
"from": "system",
"value": "Add config options in DeepPath lint\n"
},
{
"from": "human",
"value": "module Apilint\n module Lint\n class DeepPath < Linter\n MSG = 'Limit nesting depth by preferring to locate resources at the root path.'\n\n # TODO: Configure a prefix. Ex: :prefix ... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up if - strategy\n"
},
{
"from": "human",
"value": "require 'camel_caser/strategies/transform_params'\nrequire 'camel_caser/transformable'\nrequire 'camel_caser/strategies/form_hash'\nrequire 'camel_caser/strategies/raw_input'\n\nmodule CamelCaser\n class Mid... | ruby | chosen |
[
{
"from": "system",
"value": "Make the login observer unloadable as this appears to prevent the observer from not working in development\n"
},
{
"from": "human",
"value": "class LoginObserver < ActiveRecord::Observer\n\n # mail the user after signing up\n def after_request_activation(login, tr... | ruby | chosen |
[
{
"from": "system",
"value": " Remove unused options from Ruport::Data::Table.new call\n"
},
{
"from": "human",
"value": "module MiqReportable\n # generate a ruport table from an array of db objects\n def self.records2table(records, only_columns)\n return Ruport::Data::Table.new if records.... | ruby | chosen |
[
{
"from": "system",
"value": "Allow for 404 when reindexing.\n"
},
{
"from": "human",
"value": "class IiifService < Spotlight::Resources::IiifService\n def create_iiif_manifest(manifest, collection = nil)\n IiifManifest.new(url: manifest['@id'], manifest: manifest, collection: collection)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add attr_reader for MessageFilter channel & params\n"
},
{
"from": "human",
"value": "module Firehose\n module Server\n # A no-op message filter. This class is meant to be\n # extended by users for implementing channel middleware.\n class MessageFilter\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spelling typo in exception message\n\nThe correct spelling is \"occurred\" (not occured).\r\n\r\nPer:\r\nhttps://www.grammarly.com/blog/occurred-occured-ocurred/"
},
{
"from": "human",
"value": "module Http\n module Exceptions\n class HttpException < Runtime... | ruby | chosen |
[
{
"from": "system",
"value": "Allow changing index at execution and definition time\n"
},
{
"from": "human",
"value": "module EsEasyQuery\n # a class to send the raw quary to es and get the results\n class QueryExecutor\n # the Query object to execute\n attr_reader :query_class\n\n # ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove require for testing inline\n"
},
{
"from": "human",
"value": "require 'sidekiq_unique_jobs/middleware/client/strategies/unique'\nrequire 'sidekiq_unique_jobs/middleware/client/strategies/testing_inline'\n\nmodule SidekiqUniqueJobs\n module Middleware\n mo... | ruby | chosen |
[
{
"from": "system",
"value": "Add rel=canonical URL to alias page\n\nSee https://support.google.com/webmasters/answer/139066\n"
},
{
"from": "human",
"value": "module Middleman\n module Sitemap\n class AliasResource < ::Middleman::Sitemap::Resource\n \n attr_accessor :output\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix error when 7th digit == \"7\"\n"
},
{
"from": "human",
"value": "class TaiwanValidator::UbnValidator < ActiveModel::EachValidator\n MULTIPLIER = [1,2,1,2,1,2,4,1].freeze\n\n class << self\n def valid?(ubn)\n ubn = ubn.to_s\n return false if ubn.si... | ruby | chosen |
[
{
"from": "system",
"value": "Add message that key was not deleted on error\n"
},
{
"from": "human",
"value": "module Vagrant\n module Butcher\n module Action\n class Cleanup\n include ::Vagrant::Butcher::EnvHelpers\n\n def initialize(app, env)\n @app = app\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec to point to markdown'd README\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"feeder/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new ... | ruby | chosen |
[
{
"from": "system",
"value": "Rename orig_component_logging to something more descriptive, at pdcawley's request\n\ngit-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@1020 820eb932-12ee-0310-9ca8-eeb645f39767\n"
},
{
"from": "human",
"value": "module ActionController #:nodoc:\n module Compone... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor rake task a little\n"
},
{
"from": "human",
"value": "namespace :datagrid do\n\n def copy_template(path)\n gem_app = File.expand_path(\"../../../app\", __FILE__)\n rails_app = (Rails.root + \"app\").to_s\n puts \"* copy (#{path})\"\n sh \"mkd... | ruby | chosen |
[
{
"from": "human",
"value": "Add task to setup exchange for RabbitMQ\n\nWe need the exchange and it's queues in E2E testing this rake task\nallows for them to be setup using the existing config in publishing-api.\n"
},
{
"from": "gpt",
"value": "task :setup_exchange do\n config = YAML.load_file... | ruby | chosen |
[
{
"from": "system",
"value": "Use the env[\"key\"] style instead of env.env.key\n"
},
{
"from": "human",
"value": "module Vagrant\n class Action\n module VM\n class Boot\n def initialize(app, env)\n @app = app\n @env = env\n end\n\n def call(env)\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add pg and mysql2 dependencies to gemspec\n\nThis is so that when 'bundle install' runs on Travis, it has the depenencies so the mysql and pg builds can run\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path(\"../lib/by_star/versi... | ruby | chosen |
[
{
"from": "system",
"value": "Include Capybara server port on URL for Selenium\n"
},
{
"from": "human",
"value": "require 'capybara/rails'\nrequire 'capybara/rspec'\n\ndef selected_driver\n ENV['MUMUKI_CAPYBARA_DRIVER']&.to_sym || :rack_test\nend\n\ndef run_with_selenium?\n selected_driver.to_... | ruby | chosen |
[
{
"from": "system",
"value": "Fix code for detecting the correct milestone.\n\nYou can't filter by :title in the api\n"
},
{
"from": "human",
"value": "ACCESS_TOKEN = \"your github access token\"\nMILESTONE = \"Sprint 58 Ending Apr 10, 2017\"\nORGANIZATION = \"ManageIQ\"\nPROJECT = \"man... | ruby | chosen |
[
{
"from": "system",
"value": "Use devise to sign in the test user.\n\nCreating a new comment or editing an existing one requires users to be signed in/authenticated (as specified in the comments controller).\nWithout signing in, trying to request the new & edit actions from the controller would fail the aut... | ruby | chosen |
[
{
"from": "system",
"value": "Support rails 5 in dependencies\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'js_image_paths/version'\n\nGem::Specification.new do |spec|\n spec.name... | ruby | chosen |
[
{
"from": "system",
"value": "Add artists, images, series label。\n"
},
{
"from": "human",
"value": "require 'open-uri'\nrequire 'json'\n\nmodule Fappu\n class Manga\n\n URL = \"https://api.fakku.net/manga\"\n\n attr_accessor :title, :url, :description, :language, :category, :date, :filesi... | ruby | chosen |
[
{
"from": "system",
"value": "Allow content definitions to take an options hash (for grouping)\n"
},
{
"from": "human",
"value": "module Islay\n class Pages\n attr_reader :pages, :shares\n\n @@pages = {}\n\n # Returns the global register of pages. This is all pages keyed by slug.\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add timeout as common PetScan API error\n\nThis seems to be a nontrivial problem with some PetScan queries, such as for psid 16065109\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nclass PetScanApi\n def get_titles(psid)\n response = petscan.g... | ruby | chosen |
[
{
"from": "system",
"value": "Remove regexps de Token. Elas devem estar em cli.rb\n"
},
{
"from": "human",
"value": "module Relex\n class Token\n attr_reader :palavras_reservadas, :delimitadores, :operadores_aritmeticos, :identificadores, :strings_numericas, :comando_atribuicao, :operador_re... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Use 1.8-compatible hash syntax\"\n\nThis reverts commit 20a33e072956d1d034ba948fee00bafcdaa4e747.\n"
},
{
"from": "human",
"value": "require 'wixy/config'\nrequire 'wixy/alphabet'\n\nmodule Wixy\n class Caesar\n def initialize(config = Config.new)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use package_id to ensure idempotency of pkg install.\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: xquartz\n# Recipe:: default\n#\n# Copyright 2012, Joshua Timberman\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use... | ruby | chosen |
[
{
"from": "system",
"value": "Set FQDN for cassandra listen and RPC then start datastax and cassandra\n"
},
{
"from": "human",
"value": "include_recipe 'java'\n\nyum_repository \"datastax\" do\n description \"DataStax Repo for Apache Cassandra\"\n url \"http://rpm.datastax.com/community\"\n g... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failures on Debian 9\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "#\n# Cookbook:: openssl\n# Recipe:: upgrade\n#\n# Copyright:: 2015-2017, Chef Software, Inc. <legal@chef.io>\n#\n# Licensed und... | ruby | chosen |
[
{
"from": "system",
"value": "Update test files defination in gemspec\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"redirector/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new d... | ruby | chosen |
[
{
"from": "system",
"value": "Make it possible to skip steps\n"
},
{
"from": "human",
"value": "require 'permit_params'\nrequire 'geokit'\n\nclass PermitStepsController < ApplicationController\n include PermitParams\n\n include Wicked::Wizard\n steps :enter_address, :display_permits, :enter_d... | ruby | chosen |
[
{
"from": "system",
"value": "Fix default table order field\n"
},
{
"from": "human",
"value": "# -*- encoding : utf-8 -*-\nmodule RademadeAdmin\n module Search\n module Conditions\n class Abstract\n\n attr_reader :params\n attr_writer :base_items\n\n # @param params... | ruby | chosen |
[
{
"from": "system",
"value": "Fix review delete routing of non-create controller\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n resources :communities, :defaults => { :format => 'json' } do\n resources :events do\n resources :tickets\n end\n resource... | ruby | chosen |
[
{
"from": "system",
"value": "Allow user url with username with a dot\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n devise_for :user\n\n namespace :api do\n namespace :v1 do\n mount_devise_token_auth_for 'User', at: 'auth'\n\n resources :users, only: [:inde... | ruby | chosen |
[
{
"from": "system",
"value": "Fix default route (show -> edit)\n"
},
{
"from": "human",
"value": "\nRails::Application.routes.draw do\n\n resources :workitems\n resources :tasks\n resources :processes\n resources :forms\n resources :definitions do\n member do\n get 'launch' \n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Routing for DiscussionBoard update Action\n\nAdd a route for the DiscussionBoard update action.\n"
},
{
"from": "human",
"value": "Ifsimply::Application.routes.draw do\n devise_for :users, :controllers => { :registrations => 'registrations' }\n\n root :to =... | ruby | chosen |
[
{
"from": "system",
"value": "Add Blog create and edit Routes\n\nUpdate the routing file to include Blog create and edit routes.\n"
},
{
"from": "human",
"value": "Ifsimply::Application.routes.draw do\n devise_for :users, :controllers => { :registrations => 'registrations' }\n\n root :to => 'h... | ruby | chosen |
[
{
"from": "system",
"value": "Improve descriptions for sign in tests\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nfeature 'Signing in' do\n background do\n @user = create(:user)\n end\n\n scenario 'Signing in with correct credentials' do\n visit '/login'\n within('#ne... | ruby | chosen |
[
{
"from": "system",
"value": "Use Redis namespaced to current env\n"
},
{
"from": "human",
"value": "$redis = Redis.new(url: ENV[\"REDIS_URL\"]) if ENV['REDIS_URL']\n"
},
{
"from": "gpt",
"value": "redis_connection = Redis.new(url: ENV[\"REDIS_URL\"]) if ENV['REDIS_URL']\nnamespace =... | ruby | chosen |
[
{
"from": "system",
"value": "Fix to generator (remove missing file screen.css)\n"
},
{
"from": "human",
"value": "class LayoutFilesGenerator < Rails::Generator::Base\n \n def manifest\n record do |m|\n [\"public/javascripts/application.js\",\n \"public/javascripts/cufon-yui.js\",... | ruby | chosen |
[
{
"from": "system",
"value": "Add MIT license info to gemspec [ci skip]\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |gem|\n gem.authors = [\"Sebastian Röbke\"]\n gem.email = [\"sebastian.roebke@xing.com\"]\n gem.description = %q{Allo... | ruby | chosen |
[
{
"from": "system",
"value": "Update LWRP to use default_action vs. initialize method\n"
},
{
"from": "human",
"value": "#\n# Author:: Jake Vanderdray <jvanderdray@customink.com>\n# Cookbook Name:: nrpe\n# Resource:: check\n#\n# Copyright 2011, CustomInk LLC\n#\n# Licensed under the Apache Licen... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Symbols as name attribute broken with chef-client 12.5\n"
},
{
"from": "human",
"value": "actions :create, :delete\ndefault_action :create\n\nattribute :name, :kind_of => Symbol, :name_attribute => true, :required => true\nattribute :description, :kind_of => Str... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor `Value.new` removing unnecessary &_block\n"
},
{
"from": "human",
"value": "require 'dry/types/struct'\n\nmodule Dry\n module Types\n class Value < Struct\n def self.new(*, &_block)\n super.freeze\n end\n end\n end\nend\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Update trails migration to include info from API\n"
},
{
"from": "human",
"value": "class CreateTrails < ActiveRecord::Migration\n def change\n create_table :trails do |t|\n\n t.timestamps null: false\n end\n end\nend\n"
},
{
"from": "gpt",
... | ruby | chosen |
[
{
"from": "system",
"value": "Use MD5 instead of SHA to generate ids. Makes more sense and is faster.\n"
},
{
"from": "human",
"value": "require 'base64'\nrequire 'digest/sha2'\n\nmodule Related\n module Helpers\n\n # Generate a unique id\n def generate_id\n Base64.encode64(\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Define namespace outside of method to avoid recalculating\n\nSince the method is defined as a closure, we can pre-calculate it and it\nwill always use that namespace. This should give a slight speed-up for\nthe getters and setters.\n"
},
{
"from": "human",
"value": ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove path declaration from send_to_printer method\n"
},
{
"from": "human",
"value": "module Zebra\n class PrintJob\n class UnknownPrinter < StandardError\n def initialize(printer)\n super(\"Could not find a printer named #{printer}\")\n end\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use `cp` instead of `FileUtils.copy_entry`.\n"
},
{
"from": "human",
"value": "module UnpackStrategy\n class Directory\n include UnpackStrategy\n\n using Magic\n\n def self.extensions\n []\n end\n\n def self.can_extract?(path)\n path.direct... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage value in podspec for cocoapods 1.0+"
},
{
"from": "human",
"value": "require 'json'\n\npackage = JSON.parse(File.read(File.join(__dir__, 'package.json')))\n\nPod::Spec.new do |s|\n s.name = package['name']\n s.version = package['versi... | ruby | chosen |
[
{
"from": "system",
"value": "Add new info to msg\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'bundler/setup'\nrequire 'nokogiri'\nrequire 'open-uri'\nrequire 'yaml/store'\nrequire 'slack-notifier'\n\nNGAYVANG_URL = 'https://www.vietnamairlines.com/vi/sale-campaign#5ngayvang'.... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for DHCP on tinycore\n"
},
{
"from": "human",
"value": "require \"ipaddr\"\n\nmodule VagrantPlugins\n module GuestTinyCore\n module Cap\n class ConfigureNetworks\n def self.configure_networks(machine, networks)\n machine.communic... | ruby | chosen |
[
{
"from": "system",
"value": "Test if logic on timezone.\n"
},
{
"from": "human",
"value": "# Cookbook Name:: rs_utils\n# Recipe:: setup_timezone\n#\n# Copyright (c) 2011 RightScale Inc\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and ass... | ruby | chosen |
[
{
"from": "human",
"value": "Add OmniGraffle 5 Standard cask\n\nFix token name\n\nAdd OmniGraffle 5 Standard cask\n\nFix token name\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'omnigraffle5' do\n version '5.4.4'\n sha256 '7bcc64093f46bd4808b1a4cb86cf90c0380a5c5ffffd55ce8f742712818558df'\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make use of require 'require_relative' gem\n"
},
{
"from": "human",
"value": "# @author Marius Küng\n# @version 0.1 (2013-11-22)\n# open smb://fsemu18.edu.ds.fhnw.ch/e_18_data11\\$/\n\nload(File.join(File.dirname(__FILE__),'rCheckWifi.rb'))\nload(File.join(File.dirn... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for Search Results\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass SearchTest < ActionDispatch::IntegrationTest\n test 'should return new search id when keyword provided' do\n get search_url('soprano')\n\n # TODO: Change Fixnum to I... | ruby | chosen |
[
{
"from": "system",
"value": "Add uninstall and zap stanzas for BlueStacks\n"
},
{
"from": "human",
"value": "cask 'bluestacks' do\n version '0.9.30.423902'\n sha256 '261bf6978770a16d588abba51d6e550c6b44de6d12de9bf54a0c0a751290e547'\n\n url \"http://cdn.bluestacks.com/downloads/#{version}/Blu... | ruby | chosen |
[
{
"from": "system",
"value": "Update Mini Metro to Alpha 12a\n"
},
{
"from": "human",
"value": "class MiniMetro < Cask\n url 'http://static.dinopoloclub.com/minimetro/builds/alpha12/MiniMetro-alpha12-osx.zip'\n homepage 'http://dinopoloclub.com/minimetro/'\n version 'Alpha 12'\n sha256 '0c81... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Podspec to use new pod_target_xcconfig property\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Diff\"\n s.version = \"0.6\"\n s.summary = \"The fastest Diff library written Swift.\"\n s.homepage = \"https://github.... | ruby | chosen |
[
{
"from": "system",
"value": "Add klarna payment method missing specs\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"spec_helper\"\n\ndescribe Spree::PaymentMethod::KlarnaCredit do\n describe \"capture\", :klarna_api do\n let(:order) { create(:order_with_line_i... | ruby | chosen |
[
{
"from": "system",
"value": "Kill a mutation in Mapper.map\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe DataMapper::Mapper, '.map' do\n let(:name) { :title }\n let(:options) { { :to => :book_title } }\n\n it \"adds a new attribute to attribute set\" do\n describ... | ruby | chosen |
[
{
"from": "system",
"value": "Prepare a new version for Cocoapods\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'PBWebViewController'\n s.version = '0.3'\n s.summary = 'A light-weight, simple and extendible web browser component for iOS.'\n s.homepage ... | ruby | chosen |
[
{
"from": "system",
"value": "Change gemspec date to automatically update\n"
},
{
"from": "human",
"value": "require \"./lib/barebones/version\"\n\nGem::Specification.new do |s|\n s.name = \"barebones\"\n s.version = \"0.1.1\"\n s.date = \"2015-10-19\"\n s.licenses = ['M... | ruby | chosen |
[
{
"from": "system",
"value": "Update fake Intervention to look like ATP w/ number of hours\n"
},
{
"from": "human",
"value": "class FakeIntervention\n\n def initialize(student)\n @student = student\n @start_date = Date.new(\n (2010..2015).to_a.sample,\n (1..12).to_a.sample,\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make comment on model test clearer"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe Contact, type: :model do\n before(:each) do\n @contact = Contact.new(date_of_birth:Date.today)\n end\n\n context \"writing to the database\" do\n it... | ruby | chosen |
[
{
"from": "system",
"value": "Change duration time for functions to date\n"
},
{
"from": "human",
"value": "class CreateFunctions < ActiveRecord::Migration[5.0]\n def change\n create_table :functions do |t|\n t.belongs_to :user, foreign_key: true\n t.belongs_to :role, foreign_key: ... | ruby | chosen |
[
{
"from": "human",
"value": "Add an example of a free guest subscriber.\n"
},
{
"from": "gpt",
"value": "require 'noam-lemma'\n\n# This is an example of a Ruby Lemma that publishes message and *also* uses the\n# \"Guest\" model of connection. This Lemma will advertise that it's available on\n# t... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec for Content-Length header.\n"
},
{
"from": "gpt",
"value": "describe DropboxApi::Endpoints::ContentUpload do\n shared_examples_for \"is calculated and appended to headers\" do\n it \"is calculated and appended to headers\" do\n _, headers = subject.... | ruby | chosen |
[
{
"from": "system",
"value": "Update posspec version to 0.50\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"NTAnalytics\"\n s.version = \"0.15\"\n s.summary = \"NTAnalytics - A Provider-based system to integrate Analytics systems such at Flurry or Googl... | ruby | chosen |
[
{
"from": "system",
"value": "Increment pod version to 1.1.0\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'AttributedLib'\n s.version = '1.0.0'\n s.summary = 'A Modern interface for attributed strings.'\n \n s.description = <<-DESC\nA ... | ruby | chosen |
[
{
"from": "human",
"value": "Add a shared context for testing transactionality\n"
},
{
"from": "gpt",
"value": "module TransactionalCommand\nend\n\nRSpec.shared_examples_for TransactionalCommand do\n describe \"event logging\" do\n it \"creates an event for the command\" do\n expect {\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix podspec (remove resources reference)\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"UKPostcodeValidator\"\n s.version = \"0.1.0\"\n s.summary = \"A simple category to provide UK postcode validation to NSString contents.\"\n s.homepage =... | ruby | chosen |
[
{
"from": "system",
"value": "Use manageiq-gems-pending gem instead of require_relative\n\nThe gems-pending code was moved into a gem, so we cannot use a path\nto require the bundler environment anymore.\n\nRequiring the gem directly gives us the same effect.\n"
},
{
"from": "human",
"value": "#... | ruby | chosen |
[
{
"from": "system",
"value": "Fix some typos in spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Table do\n\n before { @table = Table.new(schema_file) }\n\n it 'find the right count of tables in the schema' do\n expect(@table.names.size).to eq 5\n end\n\n it 'find... | ruby | chosen |
[
{
"from": "system",
"value": "Add failing acceptance test to test --merge-config parameter\n"
},
{
"from": "human",
"value": "require File.expand_path(File.dirname(__FILE__) + '/spec_helper')\n\ndescribe Texas::Runner do\n describe \"#initialize\" do\n\n it \"run basic tex scenario\" do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add Email Search For API Counctillor\n"
},
{
"from": "human",
"value": "class Api::CouncillorsController < ApiController\n def index\n ward_id = params[:ward_id]\n councillor_name = params[:councillor_name]\n @councillors = Councillor.all\n\n @councillo... | ruby | chosen |
[
{
"from": "system",
"value": "Add pending spec for updating user attributes\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe FwtPushNotificationServer::DeviceTokensController do\n \n let(:user1) { FactoryGirl.create(:user) }\n \n it \"creates a new device token\" do \n... | ruby | chosen |
[
{
"from": "system",
"value": "Extend inline backend with mock\n"
},
{
"from": "human",
"value": "module ActiveCrew\n module Backends\n class InlineBackend\n class Queue\n def size\n 0\n end\n end\n\n def self.enqueue(*args)\n ActiveCrew::Backends.... | ruby | chosen |
[
{
"from": "system",
"value": "Add current directory to valise\n"
},
{
"from": "human",
"value": "require 'valise'\nrequire 'yaml'\n\nmodule TpCommandLine\n class Config\n def file_set\n Valise::Set.define do\n ro \"config/\"\n ro \"~/.timepulse\"\n ro \"~/\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add cmake to build server\n"
},
{
"from": "human",
"value": "\n%w{ant ant-contrib autoconf autopoint bison libtool libssl1.0.0 libssl-dev maven javacc python git-core mercurial subversion bzr git-svn make perlmagick pkg-config zip ruby rubygems librmagick-ruby}.each... | ruby | chosen |
[
{
"from": "system",
"value": "Make repo attr_reader on Grit::Diff\n"
},
{
"from": "human",
"value": "module Grit\n class Diff\n def hunks\n header_lines.each_with_index\n .map { |header, index|\n next_header = header_lines[index + 1]\n next_line_number = n... | ruby | chosen |
[
{
"from": "system",
"value": "Update to work with current Rack\n\nThere isn't a @body instance variable in the part\nof the Rack response representing the body. Using\n[]#each to yield Strings as per the Rack spec.\n"
},
{
"from": "human",
"value": "require \"nokogiri\"\n\nmodule Rack\n class P... | ruby | chosen |
[
{
"from": "system",
"value": "Add full documentation for this file.\n\n\ngit-svn-id: 36d0598828eae866924735253b485a592756576c@8096 da5c320b-a5ec-0310-b7f9-e4d854caa1e2\n"
},
{
"from": "human",
"value": "module AssertRequest\n # This is the exception that we raise when we find an invalid request... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.