conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Move openssl to versions directory\n\nSigned-off-by: Jack Nagel <43386ce32af96f5c56f2a88e458cb94cebee3751@gmail.com>\n"
},
{
"from": "gpt",
"value": "require 'formula'\n\nclass Openssl100 < Formula\n url 'http://www.openssl.org/source/openssl-1.0.0f.tar.gz'\n versi... | ruby | chosen |
[
{
"from": "system",
"value": "Enable auto reload for factory files.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n# Copyright 2014 TIS Inc.\n#\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#... | ruby | chosen |
[
{
"from": "system",
"value": "Use original_cluster variable to improve readability\n"
},
{
"from": "human",
"value": "require 'forwardable'\n\nmodule BigBrother\n class ClusterCollection\n extend Forwardable\n def_delegators :@clusters, :[], :[]=, :size, :clear\n\n def initialize\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Handle tagged orgs that aren't members\n"
},
{
"from": "human",
"value": "class MembershipCoverage\n @queue = :metrics\n \n extend Observable\n extend CapsuleHelper\n extend MetricsHelper\n extend ProductHelper\n \n def self.perform\n\n data = {}\n\n s... | ruby | chosen |
[
{
"from": "system",
"value": "Allow options for rademade_admin:bower tasks\n"
},
{
"from": "human",
"value": "require 'rademade_admin/bower/performer'\n\ndesc 'Install bower vendor assets'\ntask 'rademade_admin:bower:install' => :environment do |_, args|\n args.with_defaults(:options => '')\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add comment for how to use gem\n"
},
{
"from": "human",
"value": "module UrrlFormatter\n module ModelAdditions\n def format_url(attribute)\n before_validation do\n send(\"#{attribute}=\", UrrlFormatter.format_url(send(attribute)))\n end\n v... | ruby | chosen |
[
{
"from": "system",
"value": "Add summary to gemspec file.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'currency_finance_ua/version'\n\nGem::Specification.new do |spec|\n spec.na... | ruby | chosen |
[
{
"from": "system",
"value": "Add minitest and guard-minitest gems.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'jekyll/invoice/version'\n\nGem::Specification.new do |spec|\n spe... | ruby | chosen |
[
{
"from": "system",
"value": "Fix syntax that makes ruby 1.8.7 unhappy\n"
},
{
"from": "human",
"value": "require \"ipaddr\"\nmodule Puppet::Parser::Functions\n\n newfunction(:int_to_ip, :type => :rvalue, :doc => <<-'ENDHEREDOC'\n Converts a dotted address of the form 192.168.0.1 into its 32... | ruby | chosen |
[
{
"from": "human",
"value": "Add script for deleting specialist sectors.\n\nIncludes removing them from search/browse by\narchiving the associated artefact."
},
{
"from": "gpt",
"value": "desc \"Deleting specialist sectors\"\ntask :specialist_sector_cleanup => :environment do\n puts \"Which spe... | ruby | chosen |
[
{
"from": "system",
"value": "Package dkms not available on Debian Lenny\n\nref #30\n"
},
{
"from": "human",
"value": "module VagrantVbguest\n module Installers\n class Debian < Linux\n\n def self.match?(vm)\n :debian == self.distro(vm)\n end\n\n # installes the correct... | ruby | chosen |
[
{
"from": "system",
"value": "Add myself as an author.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/compass-rails/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Scott Davis\", \"Chris Eppstein\"]\n gem.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Add action mailers sendmail config\n"
},
{
"from": "human",
"value": "Projexion::Application.configure do\n # Settings specified here will take precedence over those in config/environment.rb\n\n # In the development environment your application's code is reloaded ... | ruby | chosen |
[
{
"from": "system",
"value": "Make the admin email parametrizable.\n\nIt can be set with the ADMIN_EMAIL environment variable, it takes the\nvalue 'admin@feedbunch.com' by default.\n\nThis email is used when sending certain emails from the app, like OPML\nimport/export failure notifications and emails relat... | ruby | chosen |
[
{
"from": "system",
"value": "Update the new version of API endpoint\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire 'digest'\nrequire File.dirname(__FILE__) + '/pay2go/helper.rb'\nrequire File.dirname(__FILE__) + '/pay2go/notification.rb'\n\nmodule OffsitePayments #:nodoc:\n modu... | ruby | chosen |
[
{
"from": "system",
"value": "Move helper_method :current_user defn into the gem\n"
},
{
"from": "human",
"value": "module Omniauth\n module Dsds\n module ControllerMethods\n def current_user\n @current_user ||= fetch_current_user\n end\n\n protected\n\n def authen... | ruby | chosen |
[
{
"from": "system",
"value": "Update Sketch Beta.app to version 3.2.1\n"
},
{
"from": "human",
"value": "cask :v1 => 'sketch-beta' do\n version '3.2'\n sha256 'b6211a6d9d80ace4e9b315fa676800bebbf502c6da5541e473c21e0105f1a153'\n\n url 'https://rink.hockeyapp.net/api/2/apps/0172d48cceec171249a8... | ruby | chosen |
[
{
"from": "system",
"value": "Set default and enforceable locales for I18n.\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\n# Require individual railtie frameworks, excluding rails/test_unit\nrequire 'active_record/railtie'\nrequire 'action_controller/railtie'... | ruby | chosen |
[
{
"from": "system",
"value": "Set precompile assets to false\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\nrequire 'rails/all'\n\n# Require the gems listed in Gemfile, including any gems\n# you've limited to :test, :development, or :production.\nBundler.requ... | ruby | chosen |
[
{
"from": "system",
"value": "Establish ActiveRecord connection when app boots\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.dirname(__FILE__))\n%w(models api/v1 api).each do |load_path|\n $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'app', load_path))\nend\n\nrequire... | ruby | chosen |
[
{
"from": "system",
"value": "Add autoload_path for customized validations\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\nrequire 'rails/all'\n\n# Require the gems listed in Gemfile, including any gems\n# you've limited to :test, :development, or :production.... | ruby | chosen |
[
{
"from": "system",
"value": "Update Ceres Solver to latest stable version\n\nCloses #1487.\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass CeresSolver < Formula\n homepage 'http://ceres-solver.org/'\n url 'http://ceres-solver.org/ceres-solver-1.9.0.tar.gz'\n sha1 'f73ab69cfa1e1... | ruby | chosen |
[
{
"from": "system",
"value": "Add a comment for specification\n"
},
{
"from": "human",
"value": "require 'forwardable'\n\nmodule Gimlet\n module Queryable\n module API\n extend Forwardable\n\n def select(options = {})\n selecting = @instances\n options[:where].each do... | ruby | chosen |
[
{
"from": "system",
"value": "Extend Annotatable class with extend_class rather than extend.\n"
},
{
"from": "human",
"value": "require 'caruby/domain'\nrequire 'catissue/resource'\nrequire 'catissue/annotation/annotatable_class'\nrequire 'catissue/wustl/logger'\n\nmodule CaTissue\n \n private... | ruby | chosen |
[
{
"from": "system",
"value": "Use desc rather than type in the search config.\n"
},
{
"from": "human",
"value": "module Islay\n module Searchable\n def self.included(klass)\n klass.class_eval do\n after_save :update_terms\n class_attribute :search_term_statement\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add documentation to Converter module\n"
},
{
"from": "human",
"value": "class Monefy\n module Converter\n def convert_to(to_currency)\n validate_currency(currency)\n\n new_amount = convert_currency(currency, amount, to_currency)\n\n create_new_in... | ruby | chosen |
[
{
"from": "system",
"value": "Change the s() method to be private\n\n* This doesn't really need to be part of the public interface for\n any class that includes this module.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule SQL\n\n # A mixin for node helpers\n module NodeHelper\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a bug that numeric counter starts from zero\n"
},
{
"from": "human",
"value": "module Subtt\n def self.smi2srt(smi_path)\n srt_path = smi_path.gsub(/\\.smi/, '.srt')\n puts \"converted into #{srt_path}\"\n File.open(srt_path, 'w') do |srt|\n smi =... | ruby | chosen |
[
{
"from": "system",
"value": "Use the default admin set constant\n\nAll other references were changed in\nhttps://github.com/projecthydra-labs/hyrax/commit/ecea37a203e10c75a644a199cdba9801746d1e55\n"
},
{
"from": "human",
"value": "namespace :hyrax do\n namespace :migrate do\n task move_all_... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"geo ruby is GeoRuby, not geo_ruby\"\n\nThis reverts commit 630b7b1792d94073e3c6a2d2bc594ec52d1f7c76.\n"
},
{
"from": "human",
"value": "require 'fileutils'\ninclude FileUtils\n\nrequire 'rubygems'\n%w[rake hoe newgem rubigen oauth GeoRuby].each do |req_gem|... | ruby | chosen |
[
{
"from": "system",
"value": "Sort events by starting date\n"
},
{
"from": "human",
"value": "class Api::EventsController < Api::BaseController\n load_resource\n\n def index\n authorize!(:index, :api_event)\n\n @events = Event.includes(:translations).between(params[:start], params[:end])... | ruby | chosen |
[
{
"from": "system",
"value": "Use decorators on remaining dashboard lists for compatibility with partials.\n"
},
{
"from": "human",
"value": "class DashboardsController < ApplicationController\n def show\n @user = current_user\n @groups = @user.groups\n @relevant_issues = current_user.... | ruby | chosen |
[
{
"from": "system",
"value": "Add index create new method in sites controller\n"
},
{
"from": "human",
"value": "require_dependency \"tent/application_controller\"\n\nmodule Tent\n class SitesController < ApplicationController\n def index\n end\n\n def new\n end\n\n def create\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix nil error in helper method\n"
},
{
"from": "human",
"value": "module QuickJumpTargetsHelper\n def default_quickjump_targets\n targets = find_last_active_contents(:limit => 8, :type => Page).map(&:holder).compact.uniq\n targets.map do |record|\n url =... | ruby | chosen |
[
{
"from": "system",
"value": "Read latest version from LATEST_RELEASE file"
},
{
"from": "human",
"value": "require 'nokogiri'\nrequire 'open-uri'\n\nmodule Chromedriver\n class Helper\n class GoogleCodeParser\n BUCKET_URL = 'https://chromedriver.storage.googleapis.com'\n\n attr_re... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for link format filter\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\ndescribe LinkFormatFilter do\n subject { LinkFormatFilter.new(text) }\n\n describe '#apply' do\n describe 'when the link has anchor text' do\n let(:text) { 'Check this... | ruby | chosen |
[
{
"from": "system",
"value": "Use the device send to the initializer\n"
},
{
"from": "human",
"value": "require \"spi/version\"\nrequire \"spi/driver\"\n\nclass SPI\n\n class SPIException < Exception; end\n\n attr_reader :driver\n\n def initialize (args={})\n\n if args[:driver].nil?\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec to point to spec\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 do |s|\n s.n... | ruby | chosen |
[
{
"from": "system",
"value": "Define facts in init spec test\n\nWithout any facts defined for the OS, epel, python, and other modules\nfail to compile causing the tests to fail.\n\nSigned-off-by: Trevor Bramwell <9318f446584e3f6cf68dea37a1a9fde63cb30ce1@linuxfoundation.org>\n"
},
{
"from": "human",
... | ruby | chosen |
[
{
"from": "system",
"value": "Allow passing in description as the info attribute for associations and fields\n"
},
{
"from": "human",
"value": "module Brainstem\n module Concerns\n module PresenterDSL\n class BaseBlock\n attr_accessor :configuration, :block_options\n\n def... | ruby | chosen |
[
{
"from": "system",
"value": "Set content type in json example\n"
},
{
"from": "human",
"value": "#!ruby -I ../lib -I lib\nrequire 'frankie'\nrequire 'json'\n\nclass App < Frankie::App\n use Rack::Logger\n\n after do\n body = response.raw_body\n response.body = body.to_json if body.respo... | ruby | chosen |
[
{
"from": "system",
"value": "Add comment to allow for future removal of money patch\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Excon\n module Addressable\n # Parser\n #\n # Parses a url using `Addressable`, setting the port to the inferred_port.\n #\... | ruby | chosen |
[
{
"from": "system",
"value": "Update description in gemspec file.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'memcache_check/version'\n\nGem::Specification.new do |spec|\n spec.... | ruby | chosen |
[
{
"from": "system",
"value": "Make homepage migration rake task non-interactive\n\nThis makes it possible to run the task via Jenkins, rather than having to connect to a box for the interactive prompt.\n"
},
{
"from": "human",
"value": "require 'gds_api/publishing_api'\nrequire 'highline'\n\ndes... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec for 'get_build_number' action\n"
},
{
"from": "gpt",
"value": "describe Fastlane do\n describe Fastlane::FastFile do\n describe \"Get Build Number Integration\" do\n require 'shellwords'\n\n it \"gets the build number of the Xcode project\" do\... | ruby | chosen |
[
{
"from": "system",
"value": "Use user domain as alt attribute for avatar images."
},
{
"from": "human",
"value": "module ApplicationHelper\n def avatar(user, opts = {})\n opts = {\n class: 'avatar'\n }.merge(opts)\n\n link_to(user.url, opts) do\n avatar_image_tag(user)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add rspec to development dependencies\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'version'\n\nGem::Specification.new do |gem|\n gem.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Set default mailer domain correctly\n"
},
{
"from": "human",
"value": "class ApplicationMailer < ActionMailer::Base\n default from: 'from@example.com'\n layout 'mailer'\nend\n"
},
{
"from": "gpt",
"value": "class ApplicationMailer < ActionMailer::Base\... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Corona SDK Suite to 2015.2731\n"
},
{
"from": "human",
"value": "cask :v1 => 'coronasdk' do\n version '2014.2511'\n sha256 '19f2d1a7bd3ffb45f830cebd1d2fcfd292967cb3f5211e29e3c73b66a8f220e6'\n\n url \"https://developer.coronalabs.com/sites/default/files/Co... | ruby | chosen |
[
{
"from": "system",
"value": "Update the version of IntelliJ Ultimate 12 to 12.1.7b. The previous version (12.1.7) is no longer available from the Jetbrains website.\n"
},
{
"from": "human",
"value": "cask :v1 => 'intellij-idea12' do\n version '12.1.7'\n sha256 '5fd6130f66e2a64a4083c77e4dc1efd... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Virtualbox Beta to RC2-101271 and add tag,binary,pkgutil\n\nSigned-off-by: Koichi Shiraishi <41a18128582fec5418c0a92661f7d4b13d21d912@gmail.com>\n"
},
{
"from": "human",
"value": "cask :v1 => 'virtualbox-beta' do\n version '5.0.0_RC1-100731'\n sha256 '9cd0... | ruby | chosen |
[
{
"from": "system",
"value": "Update available users to show only available users that are not the current user\n"
},
{
"from": "human",
"value": "class WelcomeController < ApplicationController\n\n def index\n \tif logged_in?\n \t @user = current_user\n @invitation = Invitation.new\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add app/helper to provide famfamfam_flags_attribution_link helper method\n"
},
{
"from": "gpt",
"value": "module FamfamfamFlagsHelper\n def famfamfam_flags_attribution_link\n link_to \"FAMFAMFAM Flags\", \"http://www.famfamfam.com/lab/icons/flags/\"\n end\nend\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove `v` from podspec version\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"SDCAlertView\"\n s.version = \"12.0.1\"\n s.summary = \"The little alert that could\"\n s.homepage = \"https://github.com/s... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Revert \"break acceptance spec, this should make a screenshot\"\"\"\n\nThis reverts commit b86643fe419a7a3b497df692a10e1e0fbab1292e.\n"
},
{
"from": "human",
"value": "require 'acceptance_helper'\n\ndescribe \"channels\", type: :request do\n it \"... | ruby | chosen |
[
{
"from": "system",
"value": "Move secret token into environment variable\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Your secret key for verifying the integrity of signed cookies.\n# If you change this key, all old signed cookies will beco... | ruby | chosen |
[
{
"from": "system",
"value": "Remove libvirt dependency for now\n\nThis is turtles all the way down. Also not sure that we really want to\nmanage libvirt dependencies here. So, before pulling it in, at least make\nit optional.\n"
},
{
"from": "human",
"value": "#\n# Copyright 2013, Craig Tracey ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"turning model relationship on in survey template for migration\"\n\nThis reverts commit 6f7f2aa8ed779511ee3f04d35fc13530ee52f168.\n"
},
{
"from": "human",
"value": "module Hanuman\n class SurveyTemplate < ActiveRecord::Base\n has_paper_trail\n has_ma... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in add_line_item_id_to_spree_inventory_units migration\n\nFixes a bug introduced in #4822\n"
},
{
"from": "human",
"value": "class AddLineItemIdToSpreeInventoryUnits < ActiveRecord::Migration\n def change\n # Stores running the product-assembly extensio... | ruby | chosen |
[
{
"from": "system",
"value": "Remove irrelevant attr_accessor in TestClass\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'okapi'\n\ndescribe Okapi do\n class TestClass\n attr_accessor :username\n attr_hider :password\n\n def initialize(username, password)\n @us... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec that was left out of previous commit\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe Alert do\n let(:article) { create(:article) }\n let(:course) { create(:course) }\n let(:revision) { create(:revision) }\n let(:user) { create(:user) ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow mentions to be filtered by mentionable"
},
{
"from": "human",
"value": "class MentionSerializer\n include TalkSerializer\n all_attributes\n \n can_include :comment\n can_filter_by :section\n can_sort_by :created_at\n self.default_sort = '-created_at'\ne... | ruby | chosen |
[
{
"from": "system",
"value": "Add debugger as dev dependency\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'geo_redirect/version'\n\nGem::Specification.new do |gem|\n gem... | ruby | chosen |
[
{
"from": "system",
"value": "Remove www from homepage url for Anypass.\n"
},
{
"from": "human",
"value": "class Anypass < Cask\n url 'http://icyblaze.com/anypass/anypass_mac_1.0.zip'\n homepage 'http://www.icyblaze.com/anypass'\n version '1.0.0'\n sha256 '364d108736eddfdb6e7db56430806d790b7... | ruby | chosen |
[
{
"from": "system",
"value": "Change to latest version of Firefox\n"
},
{
"from": "human",
"value": "class Firefox < Cask\n url 'http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/22.0/mac/en-US/Firefox%2022.0.dmg'\n homepage 'https://www.mozilla.org/en-US/firefox/'\n version '2... | ruby | chosen |
[
{
"from": "human",
"value": "Add cask for Textual 2.1.1\n"
},
{
"from": "gpt",
"value": "class Textual < Cask\n url 'http://www.codeux.com/textual/private/downloads/builds/Textual_Demo_12536.zip'\n homepage 'http://www.codeux.com/textual/'\n version '2.1.1'\n sha1 'af057d11e3578afa3b80f4f260... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to be multi-platform"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"EDSemver\"\n s.version = \"0.2.2\"\n s.summary = \"Semantic versioning for Objective-C.\"\n s.homepage = \"https://github.com/thisandagai... | ruby | chosen |
[
{
"from": "system",
"value": "Update wikibot gem to 0.2.4.2\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'gacbot/version'\n\nGem::Specification.new do |gem|\n gem.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Check for screenshot parameter and show a great picture.\n"
},
{
"from": "human",
"value": "class ArtifactsController < ApplicationController\n def index\n @artifacts = Artifact.search(params)\n end\n\n def show\n @artifact = Artifact.find_by_accession_numb... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Nitro to 2.7 dev2\n"
},
{
"from": "human",
"value": "class Nitro < Formula\n desc \"Library reading/writing the National Imagery Transmission Format (NITF).\"\n homepage \"https://github.com/hobu/nitro\"\n url \"https://github.com/hobu/nitro/archive/2.7de... | ruby | chosen |
[
{
"from": "system",
"value": "Add html processing to action plan.\n"
},
{
"from": "human",
"value": "require 'html_processor'\n\nclass ActionPlanDecorator < Draper::Decorator\n delegate :title, :description\n\n def content\n @content ||= processed_body.html_safe\n end\n\n private\n\n def... | ruby | chosen |
[
{
"from": "system",
"value": "Initialize was spelled wrong (cause Joel is dumb)\n"
},
{
"from": "human",
"value": "require 'twilio-ruby'\n\nclass InboundMessageProcessor\n\n def intialize(phone_number, body)\n @phone_number = phone_number\n @body = body\n end\n\n def process\n if mem... | ruby | chosen |
[
{
"from": "system",
"value": "Update Kiwi version to 3.0 on pod spec"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'KIF-Kiwi'\n s.version = '0.2.6'\n s.summary = 'Enable Behaviour-Driven Integration Tests built on KIF using Kiwi syntax, support... | ruby | chosen |
[
{
"from": "system",
"value": "Use proxy settings from Chef configs\n"
},
{
"from": "human",
"value": "\ndefine :cygwin_package, :action => \"install\" do\n\n ## FIXME: add support for uninstall, upgrades, etc.\n\n if node['cygwin']['proxy'].nil?\n proxycmd = \"\"\n else\n proxycmd = \... | ruby | chosen |
[
{
"from": "system",
"value": "Allow options for post requests\n"
},
{
"from": "human",
"value": "module CollectionSpace\n\n class Client\n include DeepFind\n include Helpers\n attr_reader :config\n\n def initialize(config = Configuration.new)\n raise \"Invalid configuration obj... | ruby | chosen |
[
{
"from": "system",
"value": "Remove type from bus stops controller test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe BusStopsController, type: :controller do\n let(:incorrect_route_number) { '-1' }\n let!(:user) { create :user }\n before :each do\n when_current_use... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec with description and summary\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'capybara_select2/version'\n\nGem::Specification.new do |spec... | ruby | chosen |
[
{
"from": "human",
"value": "[spec][feature] Test validity of front page html.\n\nA first run at using Rspec for feature tests (instead of Cucumber, which I haven’t touched in ages now).\n\nAlso the first use of html validation in the testing suite. While validation testing should be done for every page gen... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor Destinations to be a ComponentCollection"
},
{
"from": "human",
"value": "module Sortah\n class Destinations \n def initialize\n @hash = {}\n end\n\n def [](key)\n value = @hash[key]\n case value\n when Symbol\n @hash[va... | ruby | chosen |
[
{
"from": "system",
"value": "Use the test jetty port\n"
},
{
"from": "human",
"value": "namespace \"hydra-security\" do\n desc \"Run Continuous Integration\"\n task \"ci\" do\n require 'jettywrapper'\n jetty_params = Jettywrapper.load_config.merge({:jetty_home => File.expand_path(File.d... | ruby | chosen |
[
{
"from": "system",
"value": "Convert all images to jpegs on upload for consistency and less risk of complexity down the line when adding new image manipulation."
},
{
"from": "human",
"value": "class Drawing < ActiveRecord::Base\n enum status: %i(pending complete)\n enum gender: %i(not_specif... | ruby | chosen |
[
{
"from": "human",
"value": "Add a simple converter to change all `th` tags to `<th scope=\"col\">`.\n"
},
{
"from": "gpt",
"value": "# A simple converter to change all `th` tags to `<th scope=\"col\">`\n\nmodule Jekyll\n\n class TableThScopeCol < Converter\n safe true\n priorit... | ruby | chosen |
[
{
"from": "system",
"value": "Use img_url genereated by Cloudinary to request Typeform img id\n"
},
{
"from": "human",
"value": "class FormsController < ApplicationController\n\n\tdef create\n\n\t\tconn = Faraday.new(:url => 'https://api.typeform.io/v0.3/') do |faraday|\n\t\t \t\t\tfaraday.requ... | ruby | chosen |
[
{
"from": "system",
"value": "Add first notebook creation and redirection after user logs in.\n"
},
{
"from": "human",
"value": "# Mixed pages for users that are not logged in (including welcome page, contact, help etc.)\r\n\r\nclass PagesController < ApplicationController\r\n def index\r\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Create private method that gathers all of the required/permitted parameters for the user form\n"
},
{
"from": "human",
"value": "class UsersController < ApplicationController\n def new\n @user = User.new\n end\n\n def create\n\n end\nend\n"
},
{
"from... | ruby | chosen |
[
{
"from": "system",
"value": "Fix computation of previous milestone in a course, fixes missing lesson plan entries.\n"
},
{
"from": "human",
"value": "class LessonPlanMilestone < ActiveRecord::Base\n attr_accessible :title, :description, :end_at\n\n belongs_to :course\n belongs_to :creator, c... | ruby | chosen |
[
{
"from": "system",
"value": "Resolve issue with ticks not transmitting the optional extra arguments\n"
},
{
"from": "human",
"value": "module Effect\n\tclass ActOnTick < Effect::Base\n\n\t\tdef initialize(parent, interval)\n\t\t\t@interval = interval.to_sym\n\t\t\t@parent = parent\n\n\t\t\tdefi... | ruby | chosen |
[
{
"from": "system",
"value": "Add tag to podspec. Fix syntax error.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Opus-ios\"\n s.version = \"1.0\"\n s.summary = \"iOS build scripts for the Opus Codec.\"\n s.homepage = \"https://chatsecure.org\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update image URL (might needs FBOS changes)\n"
},
{
"from": "human",
"value": "module Images\n class StubPolicy < Mutations::Command\n def execute\n {\n verb: \"POST\",\n url: \"#{$API_URL}/api/images/dircect_upload\",\n form_dat... | ruby | chosen |
[
{
"from": "system",
"value": "Fix subspec issue within podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"PhyreKit\"\n s.version = \"0.1.2\"\n s.summary = \"Common utilities for Phyre Inc.\"\n s.homepage = \"http://rallyapp.io\"... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec for OresPlotController, using system spec\n\nThis is the first time I've tried using a system spec instead of a controller spec.\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nrequire 'rails_helper'\nrequire \"#{Rails.root}/lib/analytics/h... | ruby | chosen |
[
{
"from": "system",
"value": "Allow arbitrary number of backticks for fenced code blocks\n"
},
{
"from": "human",
"value": "module Minidown\n module Utils\n Regexp = {\n lines: /\\n|\\r\\n/,\n blank_line: /\\A\\s*\\z/,\n h1_or_h2: /\\A([=-]{3,})(.*)/,\n start_with_shape: ... | ruby | chosen |
[
{
"from": "system",
"value": "Transform hash correctly for ruby 2.0\n"
},
{
"from": "human",
"value": "require 'json'\nrequire 'oakdex/pokedex/type'\nrequire 'oakdex/pokedex/nature'\n\nmodule Oakdex\n # Class that handles Pokedex Requests\n module Pokedex\n class << self\n def types\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove JS_URL and CSS_URL constants\n"
},
{
"from": "human",
"value": "require 'administrate/field/base'\nrequire 'leaflet-rails'\nrequire 'rails'\n\nmodule Administrate\n module Field\n class LatLng < Base\n class Engine < ::Rails::Engine\n config.a... | ruby | chosen |
[
{
"from": "system",
"value": "Convert the target method name to String in initializer\n"
},
{
"from": "human",
"value": "require \"text\"\n\nmodule DidYouMean\n class MethodMatcher\n attr_reader :method_collection, :target_method\n\n def initialize(method_collection, target_method)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Raise an ArgumentError with a better message\n"
},
{
"from": "human",
"value": "module MongoMapper\n module Plugins\n module Touch\n extend ActiveSupport::Concern\n\n def touch(key = :updated_at) \n raise \"InvalidKey\" unless self.key_names.inc... | ruby | chosen |
[
{
"from": "system",
"value": "Use Date.strptime to make date parsing faster\n"
},
{
"from": "human",
"value": "module Superstore\n module Types\n class DateType < BaseType\n FORMAT = '%Y-%m-%d'\n REGEX = /\\A\\d{4}-\\d{2}-\\d{2}\\Z/\n\n def encode(value)\n raise Argumen... | ruby | chosen |
[
{
"from": "system",
"value": "Add actual information to the gemspec file.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'sortr/version'\n\nGem::Specification.new do |spec|\n spec.n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rake's usage of StemcellBuilder\n"
},
{
"from": "human",
"value": "namespace :ci do\n namespace :run do\n desc 'Meta task to run spec:unit and rubocop'\n task unit: %w(spec:unit)\n\n desc 'Meta task to run spec:integration'\n task integration: %w(sp... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for tvOS to podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"VOKBenkode\"\n s.version = \"0.2.1\"\n s.summary = \"An Objective-C library for encoding/decoding objects using Bencoding.\"\n s.ho... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.