conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add specs for consuming null byte.\n"
},
{
"from": "human",
"value": "# -*- encoding: binary -*-\nrequire_relative '../../../spec_helper'\nrequire_relative '../fixtures/classes'\nrequire_relative 'shared/basic'\nrequire_relative 'shared/string'\nrequire_relative 'sh... | ruby | chosen |
[
{
"from": "system",
"value": "Change Delayed Job callback from loop to execute\n"
},
{
"from": "human",
"value": "module Appsignal\n class Hooks\n class DelayedJobPlugin < ::Delayed::Plugin\n callbacks do |lifecycle|\n lifecycle.around(:invoke_job) do |job, &block|\n inv... | ruby | chosen |
[
{
"from": "human",
"value": "Add a memory usage condition.\n"
},
{
"from": "gpt",
"value": "module Cognizant\n class Process\n module Conditions\n class MemoryUsage < Condition\n MB = 1024 ** 2\n FORMAT_STR = \"%d%s\"\n MB_LABEL = \"MB\"\n KB_LABEL = \"KB\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add a Poc for notifications code. Put the instantiation code in continuous test server."
},
{
"from": "human",
"value": "module InfinityTest\n module Core\n class ContinuousTestServer\n attr_reader :base\n delegate :binary, :command_arguments, to: :tes... | ruby | chosen |
[
{
"from": "system",
"value": "Update gem's summary and description\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'dartsduino/games/x01/version'\n\nGem::Specification.new do |spec|\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add script to automate version bumping\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/ruby\n\nif not ARGV.empty? then\n version_str = ARGV.first\n version_array = ARGV.first.split('.')\n if version_array.size == 3 then\n major = version_array[0]\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make the non inferrable controller message a little friendlier. [Koz]\n\n\ngit-svn-id: afc9fed30c1a09d8801d1e4fbe6e01c29c67d11f@8749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de\n"
},
{
"from": "human",
"value": "require 'active_support/test_case'\n\nmodule ActionControlle... | ruby | chosen |
[
{
"from": "system",
"value": "Fix OS detection for JRuby on Linuxbrew\n\nIncluded an extra check for whether the OS was Linux or not. RUBY_PLATFORM\nreturns \"java\" on Linux if using JRuby, which is Fedora's default, for\nexample.\n\nCloses Homebrew/linuxbrew#653.\n\nSigned-off-by: Shaun Jackman <b580dab32... | ruby | chosen |
[
{
"from": "system",
"value": "Use insert_at for placing an item at the correct index\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nmodule Spree\n module Admin\n class LookBookImageProductsController < ResourceController\n def update_positions\n ActiveRecord::B... | ruby | chosen |
[
{
"from": "system",
"value": "Test cases now live in the spec directory\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire 'has_magic_columns/version'\n\nGem::Specification.new do |s|\n s.name = \"has_magic_columns\"\n s.versio... | ruby | chosen |
[
{
"from": "system",
"value": "Add test code for checking user\n"
},
{
"from": "human",
"value": "# _ _ _ __ \n# | |__ ___ ___ | |_ ___| |_ _ __ __ _ _ __ / /__ _ __ ___ ___ \n# | '_ \\ / _ \\ / _ \\| __/ __| __| '__/ _` | '_ \... | ruby | chosen |
[
{
"from": "system",
"value": "Add startup helper methods for getting names and generating markup\n"
},
{
"from": "human",
"value": "module StartupsHelper\nend\n"
},
{
"from": "gpt",
"value": "module StartupsHelper\n def market_names(markets)\n markets.map { |market| market.name }... | ruby | chosen |
[
{
"from": "system",
"value": "Define the tomcat service when installing the remote services\n"
},
{
"from": "human",
"value": "# Cookbook Name:: abiquo\n# Recipe:: install_remoteservices\n#\n# Copyright 2014, Abiquo\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you m... | ruby | chosen |
[
{
"from": "system",
"value": "Add name to maintainer seeds\n"
},
{
"from": "human",
"value": "if Rails.env.development? || ENV['STAGING']\n names = %w[kevin rachel]\n\n names.each do |name|\n User.find_or_create_by!(email: \"#{name}@odin.com\") do |user|\n user.username = name\n u... | ruby | chosen |
[
{
"from": "system",
"value": "Test initializing with a Schema class\n"
},
{
"from": "human",
"value": "RSpec.describe Boulangerie do\n let(:example_key_id) { \"key1\" }\n\n let(:example_keys) do\n { example_key_id => \"totally secret key I swear\" }\n end\n\n it \"initializes a default Bo... | ruby | chosen |
[
{
"from": "system",
"value": "Check for api key in config test spec\n"
},
{
"from": "human",
"value": "$:.unshift(File.dirname(__FILE__))\nrequire 'spec_helper'\n\ndescribe Rnotifier::ConfigTest do\n\n after(:each) do\n ENV['RACK_ENV'] = 'test'\n end\n\n it 'sends test exception exception'... | ruby | chosen |
[
{
"from": "human",
"value": "Add integration test for middleware\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.describe 'Integration Test', :type => :request do\n let(:url) { '/posts/1234?categoryFilter[categoryName][]=food' }\n let(:headers) do\n { \"CONTENT_TYPE\" => \"... | ruby | chosen |
[
{
"from": "system",
"value": "Add rspect to user model\n- raise error for invalid username\n- success\n"
},
{
"from": "human",
"value": "require \"rails_helper\"\n\ndescribe User do \n\tlet!(:user) { User.create!(username: \"stephen\", email:\"stephen@gmail.com\", password:\"password\") }\n\n\tc... | ruby | chosen |
[
{
"from": "system",
"value": "Add ability to test winning at arbitrary places\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nclass MockDisplay\nend\n\ndescribe TicTacToe do\n\n it 'has a version number' do\n expect(TicTacToe::VERSION).not_to be nil\n end\n\n describe TicTacToe... | ruby | chosen |
[
{
"from": "system",
"value": "Fix response of empty playlist of Nightbot API\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass Api::V1::NightbotController < ApplicationController\n def execute\n # Usage: !songs current/delete/list/playlist/next/request/skip/save/promo... | ruby | chosen |
[
{
"from": "system",
"value": "Use .to_date in pre seeded due_date on credit_invoices.\n"
},
{
"from": "human",
"value": "class CreditInvoicesController < AuthorizedController\n # Actions\n def new\n # Allow pre-seeding some parameters\n invoice_params = {\n :customer_id => current_t... | ruby | chosen |
[
{
"from": "system",
"value": "Improve handling of really stupid browsers\n"
},
{
"from": "human",
"value": "require_dependency 'xml_cleaner'\nrequire_dependency 'my_anime_list_import'\n\nclass Settings::ImportController < ApplicationController\n before_filter :authenticate_user!\n\n def myanim... | ruby | chosen |
[
{
"from": "system",
"value": "Add redis set for managing recursive project score calcualtion batches\n"
},
{
"from": "human",
"value": "class ProjectScoreCalculationBatch\n def initialize(platform, project_ids)\n @platform = platform\n @project_ids = project_ids\n @updated_projects = [... | ruby | chosen |
[
{
"from": "system",
"value": "Add AR relation from Source to Payment\n"
},
{
"from": "human",
"value": "class SolidusPaypalBraintree::Source < ApplicationRecord\n belongs_to :user, class_name: \"Spree::User\"\n belongs_to :payment_method, class_name: 'Spree::PaymentMethod'\n\n belongs_to :cus... | ruby | chosen |
[
{
"from": "system",
"value": "Remove clone edition path helper as the method won't exist\n"
},
{
"from": "human",
"value": "module Admin::PathsHelper\n def publication_front_end_path(publication)\n raise \"Publication without slug: #{publication.id}\" if publication.slug.blank?\n \"#{Plek... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the Github contribute link\n"
},
{
"from": "human",
"value": "module ApplicationHelper\n def sidebar_link_to(name, path, options = {})\n url = \"/docs/#{path}\"\n\n options[:class] = [options[:class]].flatten.compact\n options[:class] << 'Docs__nav__su... | ruby | chosen |
[
{
"from": "system",
"value": "Use actual secure gravatar URL\n"
},
{
"from": "human",
"value": "module ApplicationHelper\n\n def gravatar_image_tag(email, size = 16)\n hash = Digest::MD5.hexdigest(email.strip.downcase)\n image_tag \"https://www.gravatar.com/avatar/#{hash}?s=#{size}&d=iden... | ruby | chosen |
[
{
"from": "system",
"value": "Make navigation highlighting method more dumb\n\nPeople sometimes forget to add their controllers to this method,\nso for now everything in Limelight is \"Services\".\n"
},
{
"from": "human",
"value": "module ApplicationHelper\n\n def requirejs_base_url\n folder... | ruby | chosen |
[
{
"from": "system",
"value": "Use super when overwriting default accessors\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n# Removes white space from model attributes\nmodule Squishable\n extend ActiveSupport::Concern\n\n # Allows attributes to be squished.\n # include S... | ruby | chosen |
[
{
"from": "system",
"value": "Add the missing `link` line.\n"
},
{
"from": "human",
"value": "class Brackets < Cask\n url 'http://download.brackets.io/file.cfm?platform=OSX&build=24'\n homepage 'http://brackets.io'\n version 'sprint-24'\n sha1 '279912a34b788fa7e40528b8581df947de1e58ac'\nend\... | ruby | chosen |
[
{
"from": "system",
"value": "Use array, fails on older Ruby versions"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'natero/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Move env assignment out, so rails wont detect it as nil at boot\n"
},
{
"from": "human",
"value": "# This file is used by Rack-based servers to start the application.\n\nrequire ::File.expand_path('../config/environment', __FILE__)\n\nif defined? PhusionPassenger\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a bug where by package names wern't enclosed as strings\n"
},
{
"from": "human",
"value": "package libxml-xpath-perl\rpackage gdal-bin\r\rgit \"/root/xml-to-csv\" do\r repository \"https://github.comjjshoe/xml-to-csv\"\r reference \"master\"\r action :sync\re... | ruby | chosen |
[
{
"from": "system",
"value": "Remove chef 11 compatibility in chef_gem\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: dynect\n# Recipe:: default\n#\n# Copyright:: 2010-2016, Chef Software, Inc <legal@chef.io>... | ruby | chosen |
[
{
"from": "system",
"value": "Switch SmartOS to use build-essentials with package provider\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: build-essential\n# Recipe:: smartos\n#\n# Copyright 2008-2013, Opscode, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix method visibility for ActionController"
},
{
"from": "human",
"value": "module Happy\n module Extras\n\n # A Rails-like controller that dispatches to individual actions\n # named in the URL.\n #\n # The controller's root URL will call the `index` me... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade to Font Awesome v2.0\n"
},
{
"from": "human",
"value": "module Font\n module Awesome\n module Less\n module Rails\n VERSION = \"0.1.0\"\n end\n end\n end\nend\n"
},
{
"from": "gpt",
"value": "module Font\n module Awesome... | ruby | chosen |
[
{
"from": "system",
"value": "Add link from namespace to Payload::Stage::Class\n\nMSP-12343\n"
},
{
"from": "human",
"value": "# Namespace for stage payload Metasploit Module cache metadata, including\n# {Metasploit::Cache::Payload::Stage::Ancestor ancestors}.\nmodule Metasploit::Cache::Payload:... | ruby | chosen |
[
{
"from": "system",
"value": "Fix link to method in docs\n"
},
{
"from": "human",
"value": "module Oxblood\n module Commands\n module HyperLogLog\n # Adds the specified elements to the specified HyperLogLog.\n # @see https://redis.io/commands/pfadd\n #\n # @param [String]... | ruby | chosen |
[
{
"from": "system",
"value": "Support for Ruby 1.8.7 failing due new Hash syntax\n"
},
{
"from": "human",
"value": "if defined?(Delayed)\n require 'delayed_job'\n\n module Delayed\n module Plugins\n\n class Raven < ::Delayed::Plugin\n callbacks do |lifecycle|\n lifecycl... | ruby | chosen |
[
{
"from": "system",
"value": "Make Codeclimate happy with Resque Failure class\n"
},
{
"from": "human",
"value": "require 'rollbar'\n\nmodule Resque\n module Failure\n class Rollbar < Base\n def save\n if use_exception_level_filters?\n payload_with_options = payload.merg... | ruby | chosen |
[
{
"from": "system",
"value": "Use sys's stdout option in BLAST::Formatter\n\nInstead of blast_formatter's -out option. Just being consistent\n- we don't use -out option while running the search either.\n\nIncrease documentation comments and fix funny line breaks.\n\nSigned-off-by: Anurag Priyam <6e6ab5ea9cb... | ruby | chosen |
[
{
"from": "human",
"value": "Test for calculate score and reward rake task\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\nclass ScoreAndRewardTest < ActiveSupport::TestCase\n def test_score_and_reward_calculations\n repo = create :repository, name: 'tanya-josh', owner: 'tanya-sa... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop requirement from ~> 0.56.0 to ~> 0.57.2\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": "Add print method to giphy api\n"
},
{
"from": "human",
"value": "class ApiController < ApplicationController\nrequire 'httparty'\n def youtube\n ENV['YT_KEY']\n url = URI(\"https://www.googleapis.com/youtube/v3/search?part=snippet&q='puppies'&maxResults=1&ord... | ruby | chosen |
[
{
"from": "system",
"value": "Use HTTPS instead of HTTP"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nlib = File.expand_path('lib', __dir__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'massa/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Test displaying content from list\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe \"Viewing list items\" do\n let!(:task_list) { TaskList.create(title: \"Tuesday\", description: \"Dance my pants off\") }\n\n def visit_task_list(list)\n\n v... | ruby | chosen |
[
{
"from": "system",
"value": "Use class eval to call include so code works on earlier versions of ruby\n"
},
{
"from": "human",
"value": "#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a... | ruby | chosen |
[
{
"from": "system",
"value": "Add method_missing in order to access resources\n"
},
{
"from": "human",
"value": "module ElectricSheeps\n module Agents\n module Command\n extend ActiveSupport::Concern\n include Agent\n\n attr_reader :logger, :shell, :work_dir\n\n def initi... | ruby | chosen |
[
{
"from": "system",
"value": "Add Selling Agreement API points\n"
},
{
"from": "human",
"value": "module FundAmerica\n class SellingAgreement\n class << self\n\n # End point: https://apps.fundamerica.com/api/selling_agreements (POST)\n # Usage: FundAmerica::SellingAgreement.create(... | ruby | chosen |
[
{
"from": "system",
"value": "Configure Puma and Redis connection\n"
},
{
"from": "human",
"value": "require 'sinatra'\nrequire 'redis'\nrequire 'redis-namespace'\n\nredis_options = {\n host: (ENV['REDIS_HOST'] || 'localhost'),\n port: (ENV['REDIS_PORT'] || 6379),\n password: (ENV['REDIS_PASS... | ruby | chosen |
[
{
"from": "system",
"value": "Add minitest and byebug as development 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 'rails_stats/version'\n\nGem::Specification.new do |s... | ruby | chosen |
[
{
"from": "system",
"value": "Update homepage url in gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nlib = File.expand_path('../lib', __FILE__)\n$:.unshift(lib) unless $:.include?(lib)\n\nrequire 'lhm/version'\n\nGem::Specification.new do |s|\n s.name = \"lhm\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Update ballot mailer to track ballot submitter\n"
},
{
"from": "human",
"value": "class BallotNotifier < ApplicationMailer\n # First define the value for \"locker_mail_to\" in secrets.yml\n default from: Rails.application.secrets.mailer_username\n\n\tdef test_emai... | ruby | chosen |
[
{
"from": "system",
"value": "Expire region code cache when importing ETSource\n"
},
{
"from": "human",
"value": "# ------ Examples -------------------------------------------------------------\n#\n# et = Etsource::Dataset.new('nl')\n# et.import # => Qernel::Dataset for country 'nl'\n#\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add WeMo motion into device list\n"
},
{
"from": "human",
"value": "require 'playful/ssdp'\nrequire 'wemo/device'\n\nPlayful.log = false\n\nmodule WeMo\n def self.all\n light_switches + switches\n end\n\n def self.light_switches\n @light_switches ||= device... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor NotFound Error to be similar to AlreadyExists\n"
},
{
"from": "human",
"value": "require 'gems'\n\nmodule Gemmies\n class Create < Services::Base\n class AlreadyExists < Error\n attr_reader :gemmy\n\n def initialize(gemmy)\n super nil\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix deprecation warning by wrapping cast\n"
},
{
"from": "human",
"value": "class ReportsController < AdminController\n def index\n end\n\n def amr_data_index\n @meters = Meter.where(active: true).includes(:school).order('schools.name')\n end\n\n def amr_dat... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rubocop warnings in ContainerImageHelper\n"
},
{
"from": "human",
"value": "module ContainerImageHelper\n include_concern 'ComplianceSummaryHelper'\n include_concern 'ContainerSummaryHelper'\n include_concern 'TextualSummary'\nend\n"
},
{
"from": "gp... | ruby | chosen |
[
{
"from": "system",
"value": "Change channel name in AdminActivityNotifyJob\n"
},
{
"from": "human",
"value": "class AdminActivityNotifyJob < ApplicationJob\n CHANNEL = if Rails.env.production?\n '#admin-activities'.freeze\n else\n '#sandbox'.freeze\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove debugging message in spec\n"
},
{
"from": "human",
"value": "require File.join(File.dirname(__FILE__), '..', 'spec_helper')\n\ndescribe YARD::Parser::SourceParser do\n before do \n p self.class.description\n Registry.clear\n end\n \n it \"should par... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary condition to skip tag list test\n\nThis file only has tests related to tags; if the model doesn't have\ntags, we simply wouldn't include `it_behaves_as` in their tests instead\nof including it and then skipping it.\n"
},
{
"from": "human",
"value"... | ruby | chosen |
[
{
"from": "system",
"value": "Remove version check in tests\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'chef-sugar::default' do\n let(:chef_run) { ChefSpec::Runner.new.converge(described_recipe) }\n\n it 'installs the chef gem' do\n expect(chef_run).to install_chef... | ruby | chosen |
[
{
"from": "system",
"value": "Use memory adapter for all specs\n\n * extend memory dataset with new operations\n * fix sorting in Join operation\n * fix method forwarding in Join operation\n * remove sql-related code\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n# this is needed fo... | ruby | chosen |
[
{
"from": "system",
"value": "Allow anyone on premium to create universes regardless of current subscription\n"
},
{
"from": "human",
"value": "class UniverseCoreContentAuthorizer < CoreContentAuthorizer\n def self.creatable_by? user\n [\n PermissionService.user_has_fewer_owned_universe... | ruby | chosen |
[
{
"from": "system",
"value": "Enable factory_girl shortcut in controller tests\n"
},
{
"from": "human",
"value": "ENV['RAILS_ENV'] ||= 'test'\nrequire File.expand_path('../../config/environment', __FILE__)\nrequire 'rails/test_help'\nrequire 'minitest/spec'\nrequire 'minitest/reporters'\n\nMinit... | ruby | chosen |
[
{
"from": "system",
"value": "Fix up include path to make test files run in TextMate\n"
},
{
"from": "human",
"value": "require 'test/unit'\nrequire 'lib/email_veracity'\nDir.glob('test/mocks/*.rb') { |f| require(f) }\n\n\nclass Test::Unit::TestCase\n\n def domain_names\n %w[ viarails.net h... | ruby | chosen |
[
{
"from": "system",
"value": "Add Chef 11 compat and cleanup wording\n"
},
{
"from": "human",
"value": "name 'unicorn'\nmaintainer 'Chef Software, Inc'\nmaintainer_email 'cookbooks@chef.io'\nlicense 'Apache 2.0'\ndescription 'Installs/Configures unicorn'\nlong_description IO.read(File.join(File.... | ruby | chosen |
[
{
"from": "system",
"value": "Use more optimistic openssl version constraint.\n"
},
{
"from": "human",
"value": "name \"postgresql\"\nmaintainer \"Heavy Water Operations, LLC\"\nmaintainer_email \"support@hw-ops.com\"\nlicense \"Apache 2.0\"\ndescription \"In... | ruby | chosen |
[
{
"from": "system",
"value": "Add SSL private key management\n"
},
{
"from": "human",
"value": "name 'sys'\nmaintainer 'GSI HPC department'\nmaintainer_email 'hpc@gsi.de'\nlicense 'Apache-2.0'\ndescription 'System Software configuration and maintenance'\nlong_desc... | ruby | chosen |
[
{
"from": "system",
"value": "Fix blank is included in filepath\n"
},
{
"from": "human",
"value": "#!ruby -Ks\n# encoding: utf-8\nrequire 'win32ole'\nrequire 'fileutils'\n\n# This class converts visio file into pdf file.\nclass Visio2Pdf\n VSDEXTS = '.vsd'\n PDFEXTS = '.pdf'\n @visio = nil\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix new path of locales folder\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nDir.glob('locales/*.yml').each do |locale_file|\n describe \"a devise-i18n-views #{locale_file} locale file\" do\n it_behaves_like 'a valid locale file', locale_file\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add description and summary to the gemspec.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/ruby_provisioning_api/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Davide Targa\", \"Damian... | ruby | chosen |
[
{
"from": "system",
"value": "Remove .nil? and add some yard explaining what this method is\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "#\n# Copyright:: Copyright (c) Chef Software Inc.\n# License:: Apache License, Version 2.0... | ruby | chosen |
[
{
"from": "system",
"value": "Add development dependency on rake, rspec, webmock\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'pixiv/version'\n\nGem::Specification.new do... | ruby | chosen |
[
{
"from": "system",
"value": "Migrate to new framework defaults\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n#\n# This file contains migration options to ease your Rails 5.0 upgrade.\n#\n# Once upgraded flip defaults one by one to migrate to the... | ruby | chosen |
[
{
"from": "system",
"value": "Remove lib/ from load path when running under JRuby\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'rbconfig'\nrequire 'spec'\n\nif ENV[\"MRI_FFI\"]\n $:.unshift File.join(File.dirname(__FILE__), \"..\", \"..\", \"lib\"),\n File.join(File.dirname... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure all tests pass\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Knife::Maas do\n it 'has a version number' do\n expect(Knife::Maas::VERSION).not_to be nil\n end\n\n it 'does something useful' do\n expect(false).to eq(true)\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Put myself in authors list\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'spree_warehouse'\n s.version = '0.0.1'\n s.summary = 'Warehouse management system base... | ruby | chosen |
[
{
"from": "system",
"value": "Allow multiple controllers on links\n"
},
{
"from": "human",
"value": "module Georgia\n class SidebarLinkPresenter < Presenter\n\n attr_reader :text, :url, :icon, :options, :active\n alias :active? :active\n\n def initialize view_context, text, url, option... | ruby | chosen |
[
{
"from": "human",
"value": "Add script to cleanup old execution histories\n"
},
{
"from": "gpt",
"value": "old_histories = Kuroko2::ExecutionHistory.where('finished_at < ?', 2.weeks.ago)\n\ncount = old_histories.count\n\nKuroko2::ExecutionHistories.transaction do\n old_histories.destroy_all\ne... | ruby | chosen |
[
{
"from": "system",
"value": "Update deployment target to 7.0\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'UINavigationItem+Margin'\n s.version = '1.0.1'\n s.summary = 'Margin for UINavigationItem.'\n s.homepage = 'https://github.c... | ruby | chosen |
[
{
"from": "system",
"value": "Update rspec_junit_formatter requirement to ~> 0.4.0\n\nUpdates the requirements on [rspec_junit_formatter](https://github.com/sj26/rspec_junit_formatter) to permit the latest version.\n- [Release notes](https://github.com/sj26/rspec_junit_formatter/releases)\n- [Commits](https... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure whitespace and gitignore features are activated\n"
},
{
"from": "human",
"value": "#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the Li... | ruby | chosen |
[
{
"from": "system",
"value": "Add redirect for /london authorities\n\nThis mirrors the behaviour of `GET /local/london`.\n\nEventually we'll want to make `/london` a landing page in its own right,\nbut this just makes the URL accessible in case we want to get it out in\nto marketing material.\n\nSee https:/... | ruby | chosen |
[
{
"from": "system",
"value": "Add .pre for next release\n"
},
{
"from": "human",
"value": "module EY\n VERSION = '2.0.7'\n ENGINEYARD_SERVERSIDE_VERSION = ENV['ENGINEYARD_SERVERSIDE_VERSION'] || '2.0.3'\nend\n"
},
{
"from": "gpt",
"value": "module EY\n VERSION = '2.0.8.pre'\n ENG... | ruby | chosen |
[
{
"from": "system",
"value": "Update iterm2 version to 20131228\n"
},
{
"from": "human",
"value": "class Iterm2Beta < Cask\n url 'http://www.iterm2.com/downloads/beta/iTerm2-1_0_0_20131218.zip'\n homepage 'http://www.iterm2.com/'\n version '1.0.0.20131218'\n sha1 '51a099ed6be536bc517ca22fb2c... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage to use SSL in OmniGraffle Cask\n\nThe HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\n"
},
{
"from": "human",
"value": "cask :v1 => 'omnigraffle' do\n if MacOS.release <=... | ruby | chosen |
[
{
"from": "system",
"value": "Set podspec version to 4.0.1\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'TABSwiftLayout'\n s.version = '4.0.0'\n s.platforms = { :ios => \"8.0\", :osx => \"10.10\" }\n s.license = 'MIT'\n s.author = { \"The Ap... | ruby | chosen |
[
{
"from": "system",
"value": "PERF: Reduce to one SQL call.\n"
},
{
"from": "human",
"value": "class BenchmarkRunsController < APIController\n def create\n repo = Organization.find_by_name(params[:organization])\n .repos.find_by_name(params[:repo])\n\n # FIXME: Probably bad code.\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add Allocations form into Course Classes create form\n"
},
{
"from": "human",
"value": "class CourseClassesController < ApplicationController\n active_scaffold :course_class do |config|\n config.list.sorting = {:name => 'ASC'}\n config.list.columns = [:name, ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug and add ESPI namespace\n"
},
{
"from": "human",
"value": "module GreenButtonData\n module Parser\n class SummaryMeasurement\n include SAXMachine\n\n element :powerOfTenMultiplier, as: :power_of_ten_multiplier\n element :timeStamp, as: :tim... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug where fix_controller only looks at fix id.\nWhen issue id and fix id in the URL do not match user is now redirected to the dashboard.\n"
},
{
"from": "human",
"value": "class FixesController < ApplicationController\n\n # Allows for json post requests to pro... | ruby | chosen |
[
{
"from": "system",
"value": "Change alert message on homepage\n"
},
{
"from": "human",
"value": "# Controller to direct to basic pages\nclass PagesController < ApplicationController\n before_action :authenticate_user!, only: [:change_video]\n\n def home\n @last_sermon = Sermon.last\n @l... | ruby | chosen |
[
{
"from": "system",
"value": "Update launchctl location for Xcode 9\n"
},
{
"from": "human",
"value": "module SimCtl\n class DevicePath\n def initialize(device)\n @device = device\n end\n\n def device_plist\n @device_plist ||= File.join(home, 'device.plist')\n end\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Raise even when last one is missing\n"
},
{
"from": "human",
"value": "module SQLize\n class Definitions\n\n attr_reader :defs\n\n def initialize(defs)\n @defs = defs\n end\n\n def self.load(yaml_file)\n new YAML.load(File.read(yaml_file))\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Call new user form from invitation\n"
},
{
"from": "human",
"value": "class UsersController < ApplicationController\n\n def new\n end\n\n def create\n @user = User.new(user_params)\n update_phone(@user)\n if @user.save\n UserMailer.delay.welcome_ema... | ruby | chosen |
[
{
"from": "system",
"value": "Fix progress bar in the project box.\n"
},
{
"from": "human",
"value": "class ProjectDecorator < Draper::Decorator\n decorates :project\n include Draper::LazyHelpers\n\n def remaining_days\n source.time_to_go[:time]\n end\n\n def display_status\n if sourc... | ruby | chosen |
[
{
"from": "system",
"value": "Write test for current login scenario\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'registration with invites', :type => :feature do\n before { @onceoff = Invite.create(:description => 'Test') }\n\n it 'should let me register an account wi... | ruby | chosen |
[
{
"from": "system",
"value": "Adjust spec for TreeNode::PxeImageType after the decorator icon change\n"
},
{
"from": "human",
"value": "describe TreeNode::PxeImageType do\n subject { described_class.new(object, nil, nil) }\n let(:object) { FactoryBot.create(:pxe_image_type) }\n\n include_exam... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.