conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add a tool to generate DOT graphs from a set of .swiftdeps files.\n\nThis produces graphs showing dependency relations between files, according to the\n.swiftdeps files generated from a build. Solid lines\n\n % analyze_deps.rb path/to/build/*.swiftdeps\n\nI used this locally to... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify what's going on in the instrumentor\n"
},
{
"from": "human",
"value": "module Identity\n class ExconInstrumentor\n attr_accessor :events\n\n def initialize(extra_attrs={})\n @extra_attrs = extra_attrs\n end\n\n def instrument(name, params={... | ruby | chosen |
[
{
"from": "system",
"value": "Modify Connection to throw exceptions up to the client wrapped in InfusionAPIError. Only retries on Timeout errors.\n"
},
{
"from": "human",
"value": "require \"xmlrpc/client\"\n\nmodule Infusionsoft\n module Connection\n private\n\n def connection(service_c... | ruby | chosen |
[
{
"from": "system",
"value": "Allow the forced recopilation of all gems during slug compilation.\n"
},
{
"from": "human",
"value": "class LanguagePack::Ruby < LanguagePack::Base\n def rgeo_url(filename = nil)\n \"https://s3.amazonaws.com/camenischcreative/heroku-binaries/rgeo/#{filename}\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update education and work fields\n"
},
{
"from": "human",
"value": "require 'omniauth-oauth2'\nrequire 'ostruct'\n\nmodule OmniAuth\n module Strategies\n class MLH < OmniAuth::Strategies::OAuth2\n option :name, :mlh\n\n option :client_options, {\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use box UUID for storing it's reboot state\n"
},
{
"from": "human",
"value": "module VagrantVbguest\n module Helpers\n module Rebootable\n @@rebooted = {}\n\n def rebooted?(vm)\n !!@@rebooted[vm.name]\n end\n\n def reboot(vm, options)\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Fiber + ensure spec that doesn't actually test anything.\n"
},
{
"from": "human",
"value": "require File.expand_path('../../../spec_helper', __FILE__)\n\nwith_feature :fiber do\n describe \"Fiber.new\" do\n it \"creates a fiber from the given block\" do\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix deprecation of update_attributes in Rails 6\n"
},
{
"from": "human",
"value": "class UserPreferences::Preference < ActiveRecord::Base\n self.table_name = 'preferences'\n belongs_to :user\n validates_uniqueness_of :name, scope: [:user_id, :category]\n validat... | ruby | chosen |
[
{
"from": "system",
"value": "Add notes - look into Enumerable methods to solve for Aces\n"
},
{
"from": "human",
"value": "class BlackjackValue\n def initialize(hand)\n @hand = hand\n end\n\n def values\n {\"Two\" => 2, \"Three\" => 3, \"Four\" => 4, \"Five\" => 5, \"Six\" => 6,\n \... | ruby | chosen |
[
{
"from": "human",
"value": "Add ruby review pizza challenge\n"
},
{
"from": "gpt",
"value": "\nclass Pizza\n attr_reader :type\n \n def initialize(type)\n @type = type\n end\nend\n\n\nclass Car\n attr_accessor :speed\n attr_reader :last_move, :total_distance, :pizza\n \n def initiali... | ruby | chosen |
[
{
"from": "system",
"value": "Add checkbox filters. But test does not implement..\n"
},
{
"from": "human",
"value": "module Himekami\n module Markdown\n class Processor\n class << self\n def default_context\n {\n asset_root: \"/images\",\n }\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use `self.class` to indicate lack of collaborators\n\nUsing `self.class` shows me that there are no other classes collaborating with\nthis class.\n"
},
{
"from": "human",
"value": "module ConfigurationParser\n class Proxy\n def initialize\n @hash = {}\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Replace the Bar's instance variable references"
},
{
"from": "human",
"value": "module ProgressBar\n module Components\n class Bar\n include Progressable\n\n DEFAULT_PROGRESS_MARK = 'o'\n\n attr_reader :progress_mark\n\n de... | ruby | chosen |
[
{
"from": "system",
"value": "Return nil if the organisation link doesn't exist\n\nWe expect it to return nil if the organisation doesn't exist, but\nthis isn't the case because we try and call corporate_info_page\nwith a nil organisation which fails.\n"
},
{
"from": "human",
"value": "module Wh... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Add more specific dependency version for redcarpet, because the newest version installation fails at Travis-CI.\"\n\nThis reverts commit 3ecae708c5f037b3ef1e65bf75df771fb5098a82.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.exp... | ruby | chosen |
[
{
"from": "system",
"value": "Add program tracing at verbosity level 1000\n\n"
},
{
"from": "human",
"value": "#!/usr/bin/ruby\n\n# Get the base directory of the WFM installation\nif File.symlink?(__FILE__)\n __WFMDIR__=File.dirname(File.dirname(File.expand_path(File.readlink(__FILE__),File.dir... | ruby | chosen |
[
{
"from": "system",
"value": "Use warn method from test-kitchen as this isn't Chef\n"
},
{
"from": "human",
"value": "require 'inifile'\n\nmodule Kitchen\n module Driver\n #\n # Credentials\n #\n class Credentials\n CONFIG_PATH = \"#{ENV['HOME']}/.azure/credentials\"\n\n #... | ruby | chosen |
[
{
"from": "system",
"value": "Add readme to failure report tarball with correct filename\n"
},
{
"from": "human",
"value": "require 'night_watch/utilities'\n\nmodule NightWatch\n class FailureReport\n include Utilities::Workspace\n include Utilities::ScriptRunner\n\n def initialize(rep... | ruby | chosen |
[
{
"from": "system",
"value": "Add current directory to test, for Ruby 1.9.2 compatibility"
},
{
"from": "human",
"value": "require 'test/unit'\nrequire File.join(File.dirname(__FILE__),'..','lib','subelsky_enhancements','hash')\n\nclass TestHash < Test::Unit::TestCase\n \n def hash\n @hash ... | ruby | chosen |
[
{
"from": "system",
"value": "Use a whitespace-delimited array (no other changes)."
},
{
"from": "human",
"value": "#--\n# Copyright (c) 2010 Ryan Grove <ryan@wonko.com>\n# \n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documen... | ruby | chosen |
[
{
"from": "system",
"value": "Add better SQl select query after droping the table\n"
},
{
"from": "human",
"value": "require 'rspec'\n\nALWAYS_PRESENT_TABLE = :schema_migrations\n\nRSpec::Matchers.define :be_sql_safe do\n match do |service|\n user_input = \"1%'; DROP TABLE #{ALWAYS_PRESENT_T... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spec instance~class matchers for Array.allocate\n"
},
{
"from": "human",
"value": "require File.expand_path('../../../spec_helper', __FILE__)\n\ndescribe \"Array.allocate\" do\n it \"returns an instance of Array\" do\n ary = Array.allocate\n ary.should be... | ruby | chosen |
[
{
"from": "system",
"value": "Add Luke Morton to authors"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\nrequire \"ydtd_frontend/version\"\n\nGem::Specification.new do |s|\n s.name = \"ydtd_frontend\"\n s.version = YdtdFrontend::VERSION\n s.author... | ruby | chosen |
[
{
"from": "system",
"value": "Use helper inside the alumni how controller action\n\nSigned-off-by: Siddharth Kannan <805f056820c7a1cecc4ab591b8a0a604b501a0b7@gmail.com>\n"
},
{
"from": "human",
"value": "class AlumniController < ApplicationController\n def index\n end\n\n def show\n\n if n... | ruby | chosen |
[
{
"from": "system",
"value": "Set some instance variables in Clouds controller\n"
},
{
"from": "human",
"value": "class CloudsController < ApplicationController\n \n def show\n @cloud = Cloud.find(params[:id])\n authorize! :read, @cloud\n end\n \nend"
},
{
"from": "gpt",
"v... | ruby | chosen |
[
{
"from": "system",
"value": "Add organization relationship to CourseSerializer.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass CourseSerializer < BaseSerializer\n attributes :id, :name, :description, :editable, :locations, :track_points\n link(:self) { api_v1_course... | ruby | chosen |
[
{
"from": "system",
"value": "Improve english of error message\n"
},
{
"from": "human",
"value": "require_relative \"base_service\"\n\nmodule Files\n class CreateService < Files::BaseService\n def commit\n repository.commit_file(current_user, @file_path, @file_content, @commit_message, ... | ruby | chosen |
[
{
"from": "system",
"value": "Store the messageSource in a variable with a getter\n"
},
{
"from": "human",
"value": "# Grab cwd because daemon changes it\n$cwd = Dir.getwd\n\n# Module that wraps around each command\nmodule SlackBotCommand\n # Load all commands\n Dir[$cwd + \"/commands/*.rb\"].... | ruby | chosen |
[
{
"from": "system",
"value": "Fix item spec in non 2.0 version of ruby.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'tempfile'\n\ndescribe ExUA::Item, vcr: true do\n let(:id) {68579769}\n subject{ExUA::Item.new(id)}\n describe '#download' do\n let(:tmp_file) { Tempfil... | ruby | chosen |
[
{
"from": "system",
"value": "Update gems to current versions\n"
},
{
"from": "human",
"value": "require_relative \"./lib/timerizer/version\"\n\nGem::Specification.new do |gem|\n gem.name = \"timerizer\"\n gem.version = Timerizer::VERSION\n gem.license = \"MIT\"\n gem.summary = \"Rails time ... | ruby | chosen |
[
{
"from": "system",
"value": "Update IntellIJ IDEA to version 14.1.2\n"
},
{
"from": "human",
"value": "cask :v1 => 'intellij-idea' do\n version '14.1.1'\n sha256 '3d17062a6371a5bf04acd1f2526c3972deea719f43798b9a7e679672258d3828'\n\n url \"http://download.jetbrains.com/idea/ideaIU-#{version}.... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary if in ExtendedDeterministicUniquenessValidator\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule ActiveRecord\n module Encryption\n module ExtendedDeterministicUniquenessValidator\n def self.install_support\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Set gem spec back in order\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/votd/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Steve Clarke\", \"Chris Clarke\"]\n gem.email = [... | ruby | chosen |
[
{
"from": "system",
"value": "Add note about the long and complex function\n"
},
{
"from": "human",
"value": "class Article < ActiveRecord::Base\n\tbelongs_to :user\n\tvalidates :link, :quote, presence: true\n\n\tdef tags_array\n\t\tif self.tags.kind_of?(String)\n\t\t\tif self.tags.match(/\\-\\-... | ruby | chosen |
[
{
"from": "system",
"value": "Make Yarn quieter during precompilation as that is typically run by a deploy tool like Capistrano and we dont need the play-by-play\n"
},
{
"from": "human",
"value": "namespace :yarn do\n desc \"Install all JavaScript dependencies as specified via Yarn\"\n task :i... | ruby | chosen |
[
{
"from": "system",
"value": "Fix extra linting error around arg alignment\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\nRails.application.config.session_store :cookie_store,\n key: \"_publisher_session\",\n secure: Rails.env.production? && !... | ruby | chosen |
[
{
"from": "system",
"value": "Change the cookie store name\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\nRails.application.config.session_store :cookie_store, key: '_celtab-inventory_session'\n"
},
{
"from": "gpt",
"value": "# Be su... | ruby | chosen |
[
{
"from": "system",
"value": "Concatenate monasca-ui settings into horizon's settings\nFix some places where recipe was not idempotent\n\nChange-Id: I526612ac159952f365a50f1e3d9c21a8e55862c2\n"
},
{
"from": "human",
"value": "# Installs the mon-ui panel\n\n# Grab the necessary packages\ninclude_... | ruby | chosen |
[
{
"from": "system",
"value": "Update neo4j spec to work with v3\n"
},
{
"from": "human",
"value": "def furbies\n @furbies ||= rand(200..299)\nend\n\ndescribe 'neo4j installation' do\n describe command('which neo4j') do\n its(:stdout) { should match 'bin/neo4j' }\n end\n\n describe 'neo4j ... | ruby | chosen |
[
{
"from": "system",
"value": "Use Rails 5 versioned migrations\n"
},
{
"from": "human",
"value": "class CreateActiveAdminComments < ActiveRecord::Migration\n def self.up\n create_table :active_admin_comments do |t|\n t.string :namespace\n t.text :body\n t.string :resource_id... | ruby | chosen |
[
{
"from": "human",
"value": "Add smoke test for Supplier Totals report\n"
},
{
"from": "gpt",
"value": "require \"spec_helper\"\n\nRSpec.describe OpenFoodNetwork::OrdersAndFulfillmentsReport::SupplierTotalsReport do\n let!(:distributor) { create(:distributor_enterprise) }\n\n let!(:order) do\n... | ruby | chosen |
[
{
"from": "human",
"value": "Revert \"Remove test. add_authors html view is going away soon.\"\n\nThis reverts commit 91235ed5de4284bb471613d143a63f00695071af.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\nfeature \"Add contributing authors\", js: true do\n let(:author) { FactoryGi... | ruby | chosen |
[
{
"from": "human",
"value": "Write tests for experiment show page\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe 'Experiment' do\n describe 'Experiment Show Page', js: true do\n it 'displays an experiments title' do\n visit '/experiments/1'\n expect(page).to ha... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for settlements summary\n"
},
{
"from": "human",
"value": "# -*- encoding : utf-8 -*-\nrequire 'spec_helper'\n\ndescribe \"Settlements Features\", type: :feature do\n fixtures :users, :accounts, :account_links, :account_link_requests, :preferences\n\n inc... | ruby | chosen |
[
{
"from": "system",
"value": "Update tests to handle the widgetized way of doing things\n"
},
{
"from": "human",
"value": "context \"Activities\" do \n fixtures :users, :companies, :customers, :tasks, :projects, :milestones, :work_logs\n \n setup do\n use_controller ActivitiesController\n\... | ruby | chosen |
[
{
"from": "system",
"value": "AntTweakBar: Remove patches and update MD5\n\nRemoving patch, since project maintainer incorporated fixes (but didn't\nincrement project version number)\n\nCloses Homebrew/homebrew#7702.\n\nSigned-off-by: Charlie Sharpsteen <828d338a9b04221c9cbe286f50cd389f68de4ecf@sharpsteen.n... | ruby | chosen |
[
{
"from": "system",
"value": "Update Code2002 to sha256 checksums\n"
},
{
"from": "human",
"value": "class FontCode2002 < Cask\n url 'http://www.ffonts.net/Code2002.font.zip'\n homepage 'http://www.ffonts.net/Code2002.font.download'\n version '0.917'\n sha1 'ff45f7d5244018ce1a8b9afd45228d999... | ruby | chosen |
[
{
"from": "system",
"value": "Add string conversion to Currency class\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\nrequire_relative './Currency'\nrequire_relative './CurrencyConverter'\nrequire_relative './CurrencyTrader'\n\ndavidmoney = Currency.new(100, \"$\")\nblakemoney = Curren... | ruby | chosen |
[
{
"from": "system",
"value": "Add methods new and create\n"
},
{
"from": "human",
"value": "class AdministrativeAssistantController < ApplicationController\n def registration_request\n end\n\n def edit\n end\n\n def update\n end\n\n def show\n @administrative_assistant = Administrative... | ruby | chosen |
[
{
"from": "system",
"value": "Include readme into the gem\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'configurate'\n s.version = '0.0.8'\n s.summary = \"Flexbile configuration system\"\n s.description = \"Configurate is a flexible configuration... | ruby | chosen |
[
{
"from": "system",
"value": "Remove support for SLES 11 and simplify package logic\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "#\n# Cookbook:: cron\n# Attributes:: default\n#\n# Copyright:: 2010-2019, Chef Software, Inc\n#\n#... | ruby | chosen |
[
{
"from": "human",
"value": "Allow manager to manage milestones and to see estimated hours by default. Fixes 8\n"
},
{
"from": "gpt",
"value": "class PresetPermissions < ActiveRecord::Migration\r\n def self.up\r\n role = Role.find(:first, :conditions => \"name='Manager'\")\r\n role.permis... | ruby | chosen |
[
{
"from": "human",
"value": "Add testcase for the work-around in apache::mod:dav_svn\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nrequire 'spec_helper_acceptance'\n\ndescribe 'apache::mod::dav_svn class' do\n context 'dav_svn module with authz_svn disabled' do\n pp = <<-... | ruby | chosen |
[
{
"from": "system",
"value": "Add new url for all 2.x stable releases\n"
},
{
"from": "human",
"value": "\ndef get_url\n\n urls = { \n 'URL_MASTER' => 'http://s3-eu-west-1.amazonaws.com/build-eu.elasticsearch.org/origin/master/nightly/JDK7/elasticsearch-latest-SNAPSHOT.$EXT$',\n 'URL_SNAP... | ruby | chosen |
[
{
"from": "system",
"value": "Remove iOS only declaration from podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"NPReachability\"\n s.version = \"0.1.0\"\n s.platform = :ios\n s.summary = \"Reachability without the suck.\"\n s.homepage = ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix success flash notice on redirecting.\n"
},
{
"from": "human",
"value": "module ActiveAdminImportable\n module DSL\n def active_admin_importable(&block)\n action_item :only => :index do\n link_to \"Import #{active_admin_config.resource_name.to_s.p... | ruby | chosen |
[
{
"from": "system",
"value": "Make DJ Mon Rails 4 compatible\n"
},
{
"from": "human",
"value": "module DjMon\n module Backend\n module ActiveRecord\n module LimitedProxy\n class << self\n def method_missing(method, *args, &block)\n scope = ::DjMon::Backend::Ac... | ruby | chosen |
[
{
"from": "system",
"value": "Remove system gem regardless of current environment\n"
},
{
"from": "human",
"value": "# Chef installed via system gem will only be removed\n# if the attributes tell us to AND we are in omnibus\n\ngem_package 'chef' do\n action :remove\n only_if do\n node[:omni... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug call parent method\n"
},
{
"from": "human",
"value": "module Fluent\n class ScriptFilter < Filter\n Plugin.register_filter('script', self)\n\n config_param :path, :string\n\n def configure(conf)\n load_script_file(conf['path'].to_s)\n end\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add Formula for CAMP package\n\nImplement basic formula for building CAMP package. Use latest tag\nfrom github repo as source, but do not provide a HEAD build.\n\nAdd cxx11 option for forward compatibility.\n"
},
{
"from": "gpt",
"value": "class Camp < Formula\n hom... | ruby | chosen |
[
{
"from": "system",
"value": "Set gemspec summary, description, and homepage\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'swingline/version'\n\nGem::Specification.new do |spec|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"vte3-gi: define constants under Terminal\"\n\nThis reverts commit 6ff9c5186d04ed9af0c774549c71a5e6138ba194.\n\nIt is for avoiding deep class tree.\nref: http://ruby-gnome2.sourceforge.jp/hiki.cgi?Naming+and+Conversion+Rules#Class%2FModule+names\n"
},
{
"from": ... | ruby | chosen |
[
{
"from": "system",
"value": "Set the right class in instrumentation args.\n"
},
{
"from": "human",
"value": "require 'honeybadger/plugin'\nrequire 'honeybadger'\n\nmodule Honeybadger\n module Plugins\n module Sidekiq\n class Middleware\n def call(worker, msg, queue)\n H... | ruby | chosen |
[
{
"from": "system",
"value": "Rewrite body only if body has body\n"
},
{
"from": "human",
"value": "module SnowmanMeltdown\n class Middleware\n def initialize(app)\n @app = app\n end\n\n def call(env)\n status, headers, body = @app.call env\n body.body = body.body.sub '<... | ruby | chosen |
[
{
"from": "human",
"value": "Add task to scan old champs pj\n"
},
{
"from": "gpt",
"value": "namespace :'2018_06_04_scan_pjs' do\n task scan_all: :environment do\n Champs::PieceJustificativeChamp.all.each do |pj_champ|\n pj_champ.create_virus_scan\n end\n end\nend\n"
}
] | ruby | chosen |
[
{
"from": "system",
"value": "Update page header to include a space inbetween the subtitle and title.\n"
},
{
"from": "human",
"value": "module Toolsmith\n module Views\n class PageHeader < Base\n attr_accessor :title, :subtitle\n\n def initialize(context, title, subtitle=nil)\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add a package for the Kethane pack.\n"
},
{
"from": "gpt",
"value": "class KethanePack < Kosmos::Package\n title 'Kethane Pack'\n aliases 'kethane'\n url 'https://nabaal.net/files/kethane/Kethane-0.8.5.zip'\n\n def install\n merge_directory 'GameData'\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix implementation of Mongoid::Tree::CounterCaching for Mongoid 7.x\n"
},
{
"from": "human",
"value": "module Mongoid\n module Tree\n ##\n # = Mongoid::Tree::CounterCaching\n #\n # Mongoid::Tree doesn't use a counter cache for the children by default.\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add page to params and pass page to uri lib\n"
},
{
"from": "human",
"value": "module RequestHelpers\n extend ActiveSupport::Concern\n\n def github_api_uri\n Github::Uri.new(github_query_params).get\n end\n\n def cache_key\n CacheKey.new(request_params).ke... | ruby | chosen |
[
{
"from": "system",
"value": "Use `case` for class membership testing."
},
{
"from": "human",
"value": "require 'publishing_api_presenters/edition.rb'\nrequire 'publishing_api_presenters/case_study.rb'\nrequire 'publishing_api_presenters/coming_soon.rb'\nrequire 'publishing_api_presenters/placeh... | ruby | chosen |
[
{
"from": "human",
"value": "Add anonymous_state to discussion topic model\n\ncloses VICE-2252\nflag=discussion_anonymity\n\nTest Plan:\n - migration works\n\nChange-Id: Ia22f62189b3993c91423c61bf8d345a39ae54264\nReviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/278612\nTested-by: Service Cloud Jen... | ruby | chosen |
[
{
"from": "system",
"value": "Test fails intermittently, this should fix it\n\nI'm starting up the Awestruct::Engine here with some basic data.\n"
},
{
"from": "human",
"value": "\nrequire 'awestruct/pipeline'\n\n\ndescribe Awestruct::Pipeline do\n\n it \"should provide a way to find a matching... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for the a scope that removed previous filters... :("
},
{
"from": "human",
"value": "class Post < ActiveRecord::Base\n include Taggable\n\n belongs_to :category\n belongs_to :user\n\n has_and_belongs_to_many :joined_users,\n class_name: \"User\",\n joi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix 'already initialized constant VERSION' warning\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/git_statistics/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.homepage = 'https://github.com/kevinja... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec for version 0.1.0\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"NPReachability\"\n s.version = \"0.0.1\"\n s.platform = :ios\n s.summary = \"Reachability without the suck.\"\n s.homepage = \"https:... | ruby | chosen |
[
{
"from": "system",
"value": "Remove :app designation from HandBrake link"
},
{
"from": "human",
"value": "class Handbrake < Cask\n url 'http://handbrake.fr/rotation.php?file=HandBrake-0.9.9-MacOSX.6_GUI_x86_64.dmg'\n homepage 'http://handbrake.fr/'\n version '0.9.9'\n sha1 '9b6f0259f3378b0c... | ruby | chosen |
[
{
"from": "system",
"value": "Update Hack font to 2.018\n"
},
{
"from": "human",
"value": "cask :v1 => 'font-hack' do\n version '2.015'\n sha256 '3a49cf4756364058c664db8ab62ec4ca7cd98d312a0edd228b8c03d4239a33de'\n\n # github.com is the official download host per the vendor homepage\n url \"h... | ruby | chosen |
[
{
"from": "system",
"value": "Remove deprecated has_rdoc in gemspec\n"
},
{
"from": "human",
"value": "require File.expand_path(\"../lib/sandwich/version\", __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = 'chef-sandwich'\n gem.version = Sandwich::VERSION\n\n gem.summary = 'Th... | ruby | chosen |
[
{
"from": "system",
"value": "Add a spec for the reverse_string method.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe ReverseString do\n it 'has a version number' do\n expect(ReverseString::VERSION).not_to be nil\n end\n\n it 'does something useful' do\n expect(fa... | ruby | chosen |
[
{
"from": "system",
"value": "Test new file storage location\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'homepage upload', :type => :feature do\n include UploadHelper\n\n before(:each) do\n user = create(:user)\n login_as(user, :scope => :user)\n end\n\n it 'w... | ruby | chosen |
[
{
"from": "system",
"value": "Use `Hash.new` only from subclasses in the specs\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nrequire 'hamster/hash'\n\ndescribe Hamster::Hash do\n\n describe \"#new\" do\n\n it \"values are sufficiently distributed\" do\n (1..4000).\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Isolate mapping test from individual/real mappings\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'mappings' do\n let(:record) { build(:oai_dc_record) }\n\n describe '#map' do\n it 'has registered mappings' do\n expect(Krikri::Mapper:... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for the StatRaptor::Error class"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe StatRaptor::Error do\n context \"#initialize\" do\n it \"returns an instance of StatRaptor::Error\" do\n StatRaptor::Error.new(\"message\").should be_a... | ruby | chosen |
[
{
"from": "human",
"value": "Add helper file for session tests\n"
},
{
"from": "gpt",
"value": "module SessionHelper\n\tdef login(user)\n\t\tvisit root_path\n\t\tclick_link 'Login'\n\t\tfill_in 'email', with: \"tj@monticello.com\"\n\t\tfill_in 'password', with: '123abc123'\n\t\tclick_button 'Sub... | ruby | chosen |
[
{
"from": "human",
"value": "Add an example that uses the Detour processor\n"
},
{
"from": "gpt",
"value": "# The Metaphor set up here looks something like:\n#\n# [ StdinInput ] -> [ Detour ] -> [ StdoutProcessor ]\n# \\ /\n# \\-> [... | ruby | chosen |
[
{
"from": "system",
"value": "Add a test that ensures that Rails::Initializable can be used with modules\n"
},
{
"from": "human",
"value": "require 'abstract_unit'\nrequire 'rails/initializable'\n\nmodule InitializableTests\n\n class Foo\n extend Rails::Initializable\n\n class << self\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix manager typo in menu breadcrumbs\n\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1740843\n"
},
{
"from": "human",
"value": "class EmsBlockStorageController < ApplicationController\n include Mixins::GenericListMixin\n include Mixins::GenericShowMixin\n include ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow figs in non-docker for now, we have to refactor\n"
},
{
"from": "human",
"value": "require_relative 'boot'\n\nrequire 'rails/all'\n\nunless ENV['DOCKER']\n require 'figs'\n # Don't run this initializer on travis.\n Figs.load(stage: Rails.env)\nend\n\n# Requ... | ruby | chosen |
[
{
"from": "system",
"value": "[Podspec] Add AppKit and UIKit to required frameworks\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"HandySwift\"\n s.version = \"1.2.0\"\n s.summary = \"Handy Swift features that didn't make it into the Swift standard li... | ruby | chosen |
[
{
"from": "system",
"value": "Use `be_truthy` matcher instead of `be_true`\n\nFix for https://github.com/pivotal-sprout/sprout-vim/issues/8"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nRSpec.describe 'sprout-vim' do\n let(:dotvim_directory) { File.expand_path('~/.vim') }\n let(:br... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify specs for missing subscription 404\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Georelevent::Routes::Subscriptions do\n include Georelevent::Routes::TestHelpers\n\n describe 'GET /subscriptions/:id' do\n let(:subscription) { crea... | ruby | chosen |
[
{
"from": "system",
"value": "Update spec to version 2.1.8\n"
},
{
"from": "human",
"value": "\nPod::Spec.new do |s|\n s.name = \"LightRoute\"\n s.version = \"2.1.7\"\n s.summary = \"LightRoute is easy transition between view controllers and support many popylar arhitectures... | ruby | chosen |
[
{
"from": "system",
"value": "Add psych dependency for yaml parsing\n"
},
{
"from": "human",
"value": "#! /usr/bin/env gem build\n# encoding: utf-8\n\nrequire 'base64'\n\nGem::Specification.new do |s|\n s.name = 'bootloader'\n s.version = '0.1'\n s.authors = ['Christian Hoareau']\n s.email =... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to remove unnecessary links to frameworks\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'LolayErred'\n s.version = '1'\n s.summary = 'Error Manager and NSError Category and XCTests for eac... | ruby | chosen |
[
{
"from": "system",
"value": "Use `is_a?` instead of `kind_of?`\n"
},
{
"from": "human",
"value": "class HashParser\n\n def initialize(hash)\n @hash = hash\n end\n\n def parse\n array = Array.new\n @hash.each_key do |key|\n if key.kind_of?(Fixnum)\n array << key.to_s\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make Drug compatible with select2\n\nConflicts:\n\tspec/models/drug_spec.rb\n"
},
{
"from": "human",
"value": "class Drug < ActiveRecord::Base\n\n acts_as_paranoid\n\n has_many :medications, as: :medicatable, dependent: :destroy\n has_many :patients, through: :me... | ruby | chosen |
[
{
"from": "system",
"value": "Set trial to be 0 days for the time being\n"
},
{
"from": "human",
"value": "class User < ActiveRecord::Base\n # Include default devise modules. Others available are:\n # :confirmable, :lockable, :timeoutable and :omniauthable\n devise :database_authenticatable, ... | ruby | chosen |
[
{
"from": "human",
"value": "Add a migration to rename digital-academy policy group\n\nIt has been requested that this is renamed to gds-academy.\n"
},
{
"from": "gpt",
"value": "old_slug = \"digital-academy\"\nnew_slug = \"gds-academy\"\n\ngroup = PolicyGroup.find_by!(slug: old_slug)\n\nWhiteha... | ruby | chosen |
[
{
"from": "system",
"value": "Change gemspec to add metada, remove test artefacts and dev dependencies\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'benchmark/perf/version'\n\nGem::Specification.ne... | ruby | chosen |
[
{
"from": "system",
"value": "Change to pretty print result\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire_relative \"../lib/tty-prompt\"\n\nprompt = TTY::Prompt.new(prefix: '[?] ')\n\nresult = prompt.collect do\n key(:name).ask('Name?')\n\n key(:age).ask('Age?', convert: :int... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.