conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add task to update staff profiles\n"
},
{
"from": "human",
"value": "set :application, \"signin-web\"\nset :repository, \"https://github.com/theodi/signin-web.git\"\n\nset :user, 'deploy'\nset :deploy_to, \"/var/www/signin.office.theodi.org\"\nset :use_sudo, false\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix package name, and params test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'artifactory' do\n context 'supported operating systems' do\n on_supported_os.each do |os, facts|\n context \"on #{os}\" do\n let(:facts) do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use the actual class constants in \"describe _____ do\".\n"
},
{
"from": "human",
"value": "\n# Prefer local library over installed version.\n$:.unshift( File.join( File.dirname(__FILE__), \"..\", \"lib\" ) )\n$:.unshift( File.join( File.dirname(__FILE__), \"..\", \... | ruby | chosen |
[
{
"from": "system",
"value": "[CodeFactor] Apply fixes to commit c014b1e\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Picture do\n it 'has an attachment' do\n VCR.use_cassette('models/pictures_spec-1.rb') do\n stage = FactoryBot.create(:stage)\n pic = Pictur... | ruby | chosen |
[
{
"from": "system",
"value": "Fix extraneous index clearing in a spec.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'spec_helper'\n\ndescribe Pariah::Dataset, \"#aggregate\" do\n def teardown\n super\n clear_indices\n end\n\n it \"specifies a list of field... | ruby | chosen |
[
{
"from": "system",
"value": "Fix strong params for creating an org.\n"
},
{
"from": "human",
"value": "class OrganizersController < ApplicationController\n respond_to :html\n\n skip_authorization_check\n layout \"home\"\n\n def create\n @title = \"New Organizer\"\n\n if current_user &... | ruby | chosen |
[
{
"from": "human",
"value": "Add migration to create session table in the database.\n\n\n"
},
{
"from": "gpt",
"value": "class SqlSessionStoreSetup < ActiveRecord::Migration\n def self.up\n create_table \"sessions\", :options => \"ENGINE=InnoDB\" do |t|\n t.column \"session_id\", :strin... | ruby | chosen |
[
{
"from": "system",
"value": "Add password column for Bcrypt gem in user migration\n"
},
{
"from": "human",
"value": "class CreateUsers < ActiveRecord::Migration[5.1]\n def change\n create_table :users do |t|\n t.string :name, null: false\n t.email :email, null: false\n t.inte... | ruby | chosen |
[
{
"from": "system",
"value": "Enable authorization for categories actions\n"
},
{
"from": "human",
"value": "class CatalogAdmin::CategoriesController < CatalogAdmin::BaseController\n layout \"catalog_admin/setup/form\"\n\n # TODO: Pundit-based authorization\n #\n def new\n build_category\... | ruby | chosen |
[
{
"from": "system",
"value": "Add logging to pin down which course(s) are causing OOM problems\n\nSidekiq logs can be monitored in realtime via Nomad, so this should let me see which course updates are causing the Nomad jobs to be killed for OOM, so I can either optimize memory usage or find some other solu... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs for most of the options for \"findrepos list\"\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Findrepos::CLI do\n describe '#list' do\n it 'has tests'\n end\n\n describe '#say_git_status' do\n let(:cli) { Findrepos::CLI.new }... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to weekly full repairs\n"
},
{
"from": "human",
"value": "#\n# Copyright:: Copyright (c) 2015.\n# License:: Apache License, Version 2.0\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance w... | ruby | chosen |
[
{
"from": "system",
"value": "Put Doug as gem author.\n\nChange-Id: Iee7f3f24583016efeb90d58eaa93f32996961e1a\n"
},
{
"from": "human",
"value": "$:.unshift(File.join(File.dirname(__FILE__), 'lib'))\n\nrequire 'gonit_api/version'\n\nGem::Specification.new do |s|\n s.name = 'gonit_api'\n s.versi... | ruby | chosen |
[
{
"from": "system",
"value": "Update rake requirement from ~> 12.3 to ~> 13.0\n\nUpdates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version.\n- [Release notes](https://github.com/ruby/rake/releases)\n- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)\n- [... | ruby | chosen |
[
{
"from": "system",
"value": "Fix stupid typo in specs support file\n"
},
{
"from": "human",
"value": "dirs = []\ndirs << Rails.root.join('public', 'uploads', 'failed_imports')\n\ndirs.each{|dir| Fileutils.mkdir_p dir unless Dir.exist? dir}\n\n"
},
{
"from": "gpt",
"value": "dirs = [... | ruby | chosen |
[
{
"from": "system",
"value": "Fix CTA value for consistency (use inquiry, not quote)\n"
},
{
"from": "human",
"value": "module G5IntegrationsValidations::SiteLinkInventoryValidations\n\n VALID_RATE_BASES = %w(push_rate standard_rate)\n VALID_IN_STORE_RATE_BASES = VALID_RATE_BASES + ['calculate... | ruby | chosen |
[
{
"from": "system",
"value": "Add header search paths for first `pod spec lint`\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"AlamoFuzi\"\n s.version = \"1.0.0-beta1\"\n s.summary = \"Fuzi support for Alamofire\"\n s.homepage = \"https://g... | ruby | chosen |
[
{
"from": "system",
"value": "Exit from MQ Listining Loop Added\n"
},
{
"from": "human",
"value": "require 'bunny'\n\nclass Bowling\n @var = \"\"\n\n def hit()\n conn = Bunny.new(:automatically_recover => false)\n conn.start\n\n ch = conn.create_channel\n q = ch.queue(\"hello\... | ruby | chosen |
[
{
"from": "system",
"value": "Drop unused \"executables\" gemspec directive\n\nThis gem exposes no executables."
},
{
"from": "human",
"value": "# coding: utf-8\n# frozen_string_literal: true\n\nlib = File.expand_path(\"lib\", __dir__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nre... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `url` stanza comment for Querious 2.\n"
},
{
"from": "human",
"value": "cask 'querious' do\n version '2.0_beta44'\n sha256 '005784b7055bcf4252eb575d27e0bf799e52b829677f42e8281d44fbb5b1796c'\n\n # store.araelium.com/querious was verified as official when first... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the blog comments validation\n"
},
{
"from": "human",
"value": "class BlogComment < ActiveRecord::Base\n include Humanizer\n require_human_on :create\n\n include PgSearch\n multisearchable :against => [:name, :email]\n\n belongs_to :entry, :class_name => 'B... | ruby | chosen |
[
{
"from": "system",
"value": "Fix subscriber list method naming\n\nWhat are these \"govdelivery topics\" you speak of?\n"
},
{
"from": "human",
"value": "class EmailSignup\n include ActiveModel::Conversion\n extend ActiveModel::Naming\n include ActiveModel::Validations\n\n attr_reader :feed\... | ruby | chosen |
[
{
"from": "human",
"value": "Add recipe to disable iptables and ip6tables altogether.\n"
},
{
"from": "gpt",
"value": "include_recipe \"iptables::default\"\n\nservice \"iptables\" do\n action [:disable, :stop]\n supports :status => true, :start => true, :stop => true, :restart => true\nend\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix specs by locking down database_cleaner\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/groupify/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"dwbutler\"]\n gem.email = [\"... | ruby | chosen |
[
{
"from": "human",
"value": "Add a Formula for Mejsel\n"
},
{
"from": "gpt",
"value": "require \"formula\"\n\nclass Mejsel < Formula\n\tdepends_on \"chisel\"\n\n\thomepage \"https://github.com/boerworz/mejsel\"\n\turl \"https://github.com/Boerworz/mejsel/archive/v0.1.tar.gz\"\n\tsha1 \"99890d32c... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude all other seeded tables from the database cleaner"
},
{
"from": "human",
"value": "begin\n require \"database_cleaner\"\n require \"database_cleaner/cucumber\"\n\n # TODO: NJH add comment why this here\n # exceptions = %w(\n # episode_types\n # flu... | ruby | chosen |
[
{
"from": "system",
"value": "Add attributes for Tag's Idea association\n\nSpecify the ordering of ideas when looking up 'tag.ideas' along with\nthe join table to look in. By default, Rails would look for the\n'ideas_tags' table which doesn't exist. Instead, 'idea_tags' was\ncreated.\n"
},
{
"from":... | ruby | chosen |
[
{
"from": "human",
"value": "Update topic_id primary and foreign keys to bigint\n"
},
{
"from": "gpt",
"value": "class ChangeTopicIdToBigint < ActiveRecord::Migration[6.0]\n def up\n change_column :topics, :id, :bigint\n\n change_column :notifications, :topic_id, :bigint\n change_colum... | ruby | chosen |
[
{
"from": "system",
"value": "Remove monkey patches since it's handled as a sequel plugin now\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :line, class: Line do\n name { Faker::Lorem.words.join(' ') }\n description { Faker::Lorem.paragraph }\n color { ['red', 'gre... | ruby | chosen |
[
{
"from": "system",
"value": "Remove top-level page count, because that's not an option in this version of JR.\n"
},
{
"from": "human",
"value": "JSONAPI.configure do |config|\n config.default_paginator = :paged\n\n config.default_page_size = 10\n config.maximum_page_size = 50\n\n config.top... | ruby | chosen |
[
{
"from": "system",
"value": "Update Trailer to version 1.3.7\n\nThis commit updates the version and sha256 stanzas.\n"
},
{
"from": "human",
"value": "cask :v1 => 'trailer' do\n version '1.3.6'\n sha256 'e42dabd6b7759fdd9a816f0c04c2eb6f7dd15c21de47048d8228f6bffd6dc41d'\n\n url \"https://ptso... | ruby | chosen |
[
{
"from": "system",
"value": "Add store accessor for json field\n"
},
{
"from": "human",
"value": "class Developer < ActiveRecord::Base\n # Include default devise modules. Others available are:\n # :confirmable, :lockable, :timeoutable and :omniauthable\n devise :database_authenticatable, :tr... | ruby | chosen |
[
{
"from": "system",
"value": "Set email in default \"Standard\" personna\n\n When signing up an account, set the email in the created \"Standard\" persona with the account's email.\n Some websites use emails to match their signed up users to the open id\n result. This will allow newly masq signed up user... | ruby | chosen |
[
{
"from": "system",
"value": "Add specific platforms (exclude watchOS)\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"MD5Digest\"\n s.version = \"1.0.0\"\n s.summary = \"An Objective-C NSString category for MD5 hex digests.\"\n s.homepage = \"https... | ruby | chosen |
[
{
"from": "system",
"value": "Call method directly on partner (Logic moved to partner class)\n"
},
{
"from": "human",
"value": "module Referrals\n class CaptureReferralActionService\n\n private\n attr_reader :referral, :amount, :info\n\n public\n\n def initialize(referral:, amount:,... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Send mail from the help_email address.\"\n\nThis reverts commit 34fd640839541503515e68142a6f64b919ffedfc.\n"
},
{
"from": "human",
"value": "class UserMailer < ActionMailer::Base\n def signup_notification(user)\n setup_email(user)\n @subject << 'Plea... | ruby | chosen |
[
{
"from": "system",
"value": "Change the system name to be unique\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# Y... | ruby | chosen |
[
{
"from": "human",
"value": "Add test coverage for function\n"
},
{
"from": "gpt",
"value": "require \"spec_helper\"\n\nRSpec.describe Services do\n describe \".with_timeout\" do\n it \"executes a block of code with the defined services timeout\" do\n options = described_class.publishin... | ruby | chosen |
[
{
"from": "system",
"value": "Add controller configuration for arrthorizer:install generator\n"
},
{
"from": "human",
"value": "module Arrthorizer\n module Generators\n class InstallGenerator < ::Rails::Generators::Base\n source_root File.expand_path('../templates', __FILE__)\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Add link to ticket to TODO.\n"
},
{
"from": "human",
"value": "module Pod\n module Generator\n\n # Generates the xcconfigs for the aggregate targets.\n #\n class AggregateXCConfig < XCConfig\n\n # Generates the xcconfig.\n #\n # @note The ... | ruby | chosen |
[
{
"from": "system",
"value": "Define an event and handler class for heartbeat events\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'discordrb/events/generic'\n\nmodule Discordrb::Events\n # Common superclass for all lifetime events\n class LifetimeEvent < Event\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing actions for Location\n"
},
{
"from": "human",
"value": "module NetSuite\n module Records\n class Location\n include Support::Fields\n include Support::RecordRefs\n include Support::Actions\n\n actions :get\n\n fields :addr1, ... | ruby | chosen |
[
{
"from": "system",
"value": "Send demand and elec. capacity with converter stats\n"
},
{
"from": "human",
"value": "module Api\n module V3\n class ConverterStatsPresenter\n ATTRIBUTES = [:number_of_units].freeze\n\n attr_reader :key\n\n def initialize(key, gql)\n @key ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Deface \"disabled\" option in decorator.\n"
},
{
"from": "human",
"value": "Deface::Override.new(:virtual_path => \"spree/admin/shared/_configuration_menu\",\n :name => \"add_social_products_to_configurations_menu\",\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow for various capitalizations of platforms in download worker job\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass PackageManagerDownloadWorker\n include Sidekiq::Worker\n sidekiq_options queue: :critical\n\n def perform(class_name, n... | ruby | chosen |
[
{
"from": "system",
"value": "Add strong_parameters gem on the fly.\n"
},
{
"from": "human",
"value": "module SignedForm\n module ActionController\n module PermitSignedParams\n def self.included(base)\n base.prepend_before_filter :permit_signed_form_data\n end\n\n def p... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Remove redis server patch for container-based trusty\"\"\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'travis/build/appliances/base'\n\nmodule Travis\n module Build\n module Appliances\n class FixContainerBas... | ruby | chosen |
[
{
"from": "system",
"value": "Add job_id and queue to the report\n"
},
{
"from": "human",
"value": "module Delayed\n module Plugins\n class ExceptionNotifier < Plugin\n module Notify\n def error(job, exception)\n ::ExceptionNotifier::Notifier.background_exception_notific... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused methods from UnintrospectableTypeInfo\n"
},
{
"from": "human",
"value": "require 'gir_ffi/info_ext/full_type_name'\n\nmodule GirFFI\n # Represents a type not found in the GIR, conforming, as needed, to the\n # interface of GObjectIntrospection::IObje... | ruby | chosen |
[
{
"from": "system",
"value": "Put a version constraint on dry-validation\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nrequire File.expand_path(\"../lib/interactor/contracts/version\", __FILE__)\n\nGem::Specification.new do |spec|\n spec.name = \"interactor-contracts\"\n spec.versio... | ruby | chosen |
[
{
"from": "system",
"value": "Fix expiring root path page\n"
},
{
"from": "human",
"value": "module Blacksand\n module ExpirePages\n extend ActiveSupport::Concern\n \n included do\n after_action :expire_cache_pages, only: [:create, :update, :destroy]\n end\n\n\n def expire_c... | ruby | chosen |
[
{
"from": "system",
"value": "Bring in burn_kit and use colorize for 16uc1 debug labels\n"
},
{
"from": "human",
"value": "module Bonz\n module MatGeneralMixin\n extend self\n\n def included(mod)\n mod.include(InstanceMethods)\n mod.extend(ClassMethods)\n end\n\n module In... | ruby | chosen |
[
{
"from": "system",
"value": "[Podspec] Add build.sh to the preserve_paths\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'RealmSwift'\n s.version = `sh build.sh get-version`\n s.summary = 'Realm is a modern data framework... | ruby | chosen |
[
{
"from": "system",
"value": "Add find_by_event_id for activity groups\n"
},
{
"from": "human",
"value": "# @see https://developers.podio.com/doc/stream\nclass Podio::StreamActivityGroup < ActivePodio::Base\n\n property :group_id, :integer\n property :kind, :string\n property :type, :string\n... | ruby | chosen |
[
{
"from": "system",
"value": "[Cocoapods] Support for building as a static library\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.version = \"3.1.3\"\n s.name = \"SwiftyVK\"\n s.summary = \"Easy and powerful way to interact with ... | ruby | chosen |
[
{
"from": "system",
"value": "Set up a gem description and summary.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/abfab/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Chris Hanks\"]\n gem.email = [\"chris... | ruby | chosen |
[
{
"from": "system",
"value": "Add a makara flag to enable usage with makara to hit the primary\n"
},
{
"from": "human",
"value": "module Easymon\n class ActiveRecordMysqlWriteableCheck\n attr_accessor :klass\n\n def initialize(klass)\n self.klass = klass\n end\n\n def check\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Modify IPStack success to check the country code\n"
},
{
"from": "human",
"value": "module Geokit\n module Geocoders\n # Provides geocoding based upon an IP address. The underlying web service is\n # ipstack, old freegeoip.net\n class IpstackGeocoder < Bas... | ruby | chosen |
[
{
"from": "system",
"value": "Enhance filtering of API /performances\n\nPerformances returned from the API can now be filtered by venue+date,\ncontest category, result publicity, or any combination thereof.\n"
},
{
"from": "human",
"value": "module Api::V1\n class PerformancesController < Api::... | ruby | chosen |
[
{
"from": "system",
"value": "Remove bit about FFI in gemspec 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 'easing/version'\n\nGem::Specification.new do |spec|\n spec.... | ruby | chosen |
[
{
"from": "system",
"value": "Remove subject because it's confusing\n"
},
{
"from": "human",
"value": "require 'rspec'\nrequire 'gosu'\nrequire_relative '../carpet'\n\ndescribe Carpet do\n\n subject do\n window = Gosu::Window.new(9, 9, false)\n Carpet.new(window, 'spec/fixtures/capital_i.... | ruby | chosen |
[
{
"from": "system",
"value": "Sort required files to 'fix' dependency issues\n"
},
{
"from": "human",
"value": "require 'beans/version'\nrequire 'beans/registry'\n\nDir[File.dirname(__FILE__) + '/beans/entities/**/*.rb'].each { |f| require f }\nDir[File.dirname(__FILE__) + '/beans/use_cases/**/*... | ruby | chosen |
[
{
"from": "system",
"value": "Add update, edit and destroy methods for comments\n"
},
{
"from": "human",
"value": "class CommentsController < ApplicationController\n\n def create\n @comment = Comment.new(comment_params)\n # change user_id to grab from current user\n @comment.assign_att... | ruby | chosen |
[
{
"from": "system",
"value": "Fix DEPRECATION: Use before_action instead of before_filter\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nclass SessionsController < ApplicationController\n before_filter :logged_in_user, only: [:destroy]\n\n def create\n if valid_credentials?(par... | ruby | chosen |
[
{
"from": "system",
"value": "Use alternative way for specifying multiple simplecov formatters\n"
},
{
"from": "human",
"value": "require 'simplecov'\nrequire 'codeclimate-test-reporter'\nrequire 'coveralls'\n\nCoveralls.wear!\n\nSimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new [\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add coveralls to spec helper\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'backports'\nrequire 'backports/basic_object' unless defined?(::BasicObject)\nrequire 'devtools'\nrequire 'ice_nine'\n\nDevtools.init_spec_helper\n\nif ENV['COVERAGE'] == 't... | ruby | chosen |
[
{
"from": "system",
"value": "Fix return value when JIRA_USE_SSL is false\n"
},
{
"from": "human",
"value": "module Ruboty\n module Jira\n module Actions\n class Base < Ruboty::Actions::Base\n def client\n JIRA::Client.new(\n username: username,\n passw... | ruby | chosen |
[
{
"from": "system",
"value": "Initialize Factories for the specs.\n"
},
{
"from": "human",
"value": "ENV['RAILS_ENV'] ||= 'test'\nrequire File.expand_path(\"../../config/environment\", __FILE__)\n\nrequire 'rspec/rails'\nrequire 'rspec/autorun'\nrequire 'capybara/rails'\n\nDir[Rails.root.join(\"... | ruby | chosen |
[
{
"from": "system",
"value": "Add byebug (useful for debugging)\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n# this is needed for guard to work, not sure why :(\nrequire \"bundler\"\nBundler.setup\n\nif RUBY_ENGINE == \"rbx\"\n require \"codeclimate-test-reporter\"\n CodeClimate::Te... | ruby | chosen |
[
{
"from": "system",
"value": "Put some extra reins on Simplecov.\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\n\nrequire 'rspec'\nrequire 'rspec/its'\nSpec_dir = File.expand_path( File.dirname __FILE__ )\n\n\n# code coverage\nrequire 'simplecov'\nSimpleCov.start do\n add_filter \"/vendo... | ruby | chosen |
[
{
"from": "system",
"value": "Use blocking connect if running on JRuby\n"
},
{
"from": "human",
"value": "$:.unshift File.expand_path '../../lib', __FILE__\n\nrequire 'minitest/autorun'\nbegin\n require 'minitest/pride'\n require 'pry'\nrescue LoadError\nend\n\nrequire 'peddler'\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Set the spec ubuntu version to 14.04\n"
},
{
"from": "human",
"value": "require 'chefspec'\nrequire 'chefspec/berkshelf'\nrequire 'support/matchers'\n\nRSpec.configure do |config|\n config.log_level = :error\n config.platform = 'ubuntu'\n config.version = '12.04'... | ruby | chosen |
[
{
"from": "human",
"value": "Add rake task to populate the taxons internal name\n\nSome taxons internal name have not been populated, we solve this by using their title.\n"
},
{
"from": "gpt",
"value": "desc \"copy taxons title field to internal name\"\ntask copy_taxons_title: :environment do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a route for requesting a chatpage.\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n resources :requests\n\n get '/login', :to => 'sessions#new', :as => :login\n get '/logout', :to => 'sessions#destroy', :as => :logout\n get \"/auth/a... | ruby | chosen |
[
{
"from": "system",
"value": "Add update user profile route.\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n root to: \"home#index\"\n resources :email_templates\n\n get '/verification', to: 'verification#show'\n\n get \"/profile/:user_id\", to: \"users#show\", as: 'use... | ruby | chosen |
[
{
"from": "system",
"value": "Add route for PATCH /api/users/:id\n\nAdd route to update user profile information.\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n root \"dashboard#index\"\n get \"/auth/auth0/callback\" => \"auth0#callback\"\n get \"/auth/failure\" => \"au... | ruby | chosen |
[
{
"from": "system",
"value": "Add route for ajax version of bitly linking - not being used right now\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n\n # pages routes\n root 'welcome#index'\n get '/districts' => 'districts#index'\n get '/schools/:location/:school_id' => ... | ruby | chosen |
[
{
"from": "system",
"value": "Change root routing from Scrivito to StaticPages\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n get 'static_pages/home'\n\n # Render legal documents by using Keiyaku CSS\n # https://github.com/cognitom/keiyaku-css\n resources :docs, only: ... | ruby | chosen |
[
{
"from": "system",
"value": "Add /positions route for ajax call.\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n root \"welcome#index\"\n get '/issues', to: 'welcome#issues'\nend\n"
},
{
"from": "gpt",
"value": "Rails.application.routes.draw do\n root \"welc... | ruby | chosen |
[
{
"from": "system",
"value": "Disable actions unnecessary for APIs.\n"
},
{
"from": "human",
"value": "Teikei::Application.routes.draw do\n namespace :api do\n namespace :v1 do\n resources :farms\n resources :depots\n end\n end\n resources :farms\n ActiveAdmin.routes(self)\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix library search to accomodate different dot style.\n"
},
{
"from": "human",
"value": "require \"mkmf\"\n\ndir_config('lua5.1')\n\nunless have_library('lua5.1', 'luaL_newstate')\n puts ' extconf failure: need liblua5.1'\n exit 1\nend\n\ncreate_makefile(\"rlua\")... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary call to @argv.delete"
},
{
"from": "human",
"value": "require \"shellwords\"\nrequire \"webpacker/runner\"\n\nmodule Webpacker\n class WebpackRunner < Webpacker::Runner\n WEBPACK_COMMANDS = [\n \"help\",\n \"h\",\n \"--help\",\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use the more standard dash instead of underscore in name\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_script/version'\n\nGem::Specification.new... | ruby | chosen |
[
{
"from": "system",
"value": "Add basic Minitest assertions to tets assertions\n\nAmazingly these seems to work well!\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nclass Minitest::SequelTest < Minitest::Test\n def test_that_it_has_a_version_number\n refute_nil ::Minitest::Seque... | ruby | chosen |
[
{
"from": "system",
"value": "Use wrapping describe block to simplify tests (refactor only)\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe Contract do\n let!(:contract) { Contract.create id: 1, can_id: '123' }\n\n context 'description starts with no caps \"westconnex - \... | ruby | chosen |
[
{
"from": "human",
"value": "Add model spec for SpamLog\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe SpamLog, models: true do\n describe 'associations' do\n it { is_expected.to belong_to(:user) }\n end\n\n describe 'validations' do\n it { is_expected.to validate_pr... | ruby | chosen |
[
{
"from": "system",
"value": "Add ruby 2.3 as required version\n"
},
{
"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 'reclame_aqui/version'\n\nGem::Specification.new do |spec|\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the runtime dependency on Bundler\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nGem::Specification.new do |gem|\n gem.name = \"figaro\"\n gem.version = \"0.7.0\"\n\n gem.author = \"Steve Richert\"\n gem.email = \"steve.richert@gmai... | ruby | chosen |
[
{
"from": "system",
"value": "Install postgis and postgis_topology if they don't exist (in a cleaner way)\n"
},
{
"from": "human",
"value": "require_relative '../factories/pg_connection'\n\nshared_context \"cdb_importer schema\" do\n\n before do\n pg_connection = CartoDB::Importer2::Factorie... | ruby | chosen |
[
{
"from": "system",
"value": "Remove redunant reference to self.\n"
},
{
"from": "human",
"value": "# == Schema Information\n#\n# Table name: lots\n#\n# id :integer not null, primary key\n# number :integer\n# created_at :datetime\n# updated_at :datetime\n# street_id :i... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test failed : itamae 1.2.13 -> 1.2.14\n"
},
{
"from": "human",
"value": "describe Itamae::Plugin::Resource::EncryptedRemoteFile do\n let(:resource) { Itamae::Plugin::Resource::EncryptedRemoteFile.new(recipe, resource_name) }\n let(:recipe) { double... | ruby | chosen |
[
{
"from": "system",
"value": "Handle writing to stdin with JRuby.\n"
},
{
"from": "human",
"value": "require \"java\"\n\nmodule ChildProcess\n module JRuby\n class Process < AbstractProcess\n def io\n @io ||= JRuby::IO.new\n end\n\n def exited?\n return true if @... | ruby | chosen |
[
{
"from": "system",
"value": "Test update now fails correctly\n"
},
{
"from": "human",
"value": "class Hanoi\n class Board\n def initialize(num_disks)\n end\n\n def towers\n [1, 2, 3]\n end\n end\nend\n"
},
{
"from": "gpt",
"value": "class Hanoi\n class Board\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Debug mode is off by default.\n"
},
{
"from": "human",
"value": "require 'readline'\nrequire 'frepl/version'\nrequire 'frepl/classifier'\nrequire 'frepl/statement'\nrequire 'frepl/fortran_file'\n\nmodule Frepl\n extend self\n\n attr_accessor :compiler, :debug\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec test for custom WSGISocketPrefix\n"
},
{
"from": "human",
"value": "describe 'apache::mod::wsgi', :type => :class do\n let :pre_condition do\n 'include apache'\n end\n context \"on a Debian OS\" do\n let :facts do\n {\n :osfamily ... | ruby | chosen |
[
{
"from": "system",
"value": "Delete foreign key remove command from remove_sub_splits migration (allows heroku to remove the table despite its not having a foreign key)\n"
},
{
"from": "human",
"value": "class RemoveSubSplits < ActiveRecord::Migration\n\n def self.up\n remove_foreign_key :s... | ruby | chosen |
[
{
"from": "system",
"value": "Correct matcher to search for h3 rather than h2\n"
},
{
"from": "human",
"value": "RSpec::Matchers::define :contain_child_benefit_value do |text|\n match do |page|\n within \".results\" do\n within :xpath, \".//div[contains(@class, 'results_estimate')][.//h... | ruby | chosen |
[
{
"from": "system",
"value": "Update Phalcon documentation (3.0.1, 2.0.13)\n"
},
{
"from": "human",
"value": "module Docs\n class Phalcon < UrlScraper\n self.type = 'phalcon'\n self.release = '3.0.0'\n self.base_url = 'https://docs.phalconphp.com/en/latest/'\n self.root_path = 'inde... | ruby | chosen |
[
{
"from": "system",
"value": "Clean serializable hash for cocoa pod.\n"
},
{
"from": "human",
"value": "class CocoaPod < ActiveRecord::Base\n default_scope { order('stars DESC') }\n \n after_initialize :init_stars\n \n def init_stars\n self.stars ||= 0\n end\n \n def dependencies\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add nested attributes for labhasgroups\n"
},
{
"from": "human",
"value": "class LabGroup < ActiveRecord::Base\n has_and_belongs_to_many :registered_courses\n has_many :labs, through: :lab_has_group\n has_many :submissions, through: :lab_has_group\nend\n"
},
{... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.