conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Rename cookie key to `identity-session`\n\n(Identity is not used for SSO.)\n"
},
{
"from": "human",
"value": "module Identity\n Main = Rack::Builder.new do\n use Identity::RescueErrors\n use Rack::Instruments,\n context: { app: \"identity\" },\n res... | ruby | chosen |
[
{
"from": "system",
"value": "Fix old url in test.\n"
},
{
"from": "human",
"value": "require \"#{File.dirname(__FILE__)}/../test_helper\"\n\nclass MultisiteTest < ActionController::IntegrationTest\n def setup\n Setting.set_global('Features', 'Multisite', true)\n end\n\n def teardown\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add Serverspec tests for busybox-container 7777/8888\n"
},
{
"from": "human",
"value": "shared_examples_for 'a docker container test environment' do\n describe docker_container('busybox', 'sleep 1111') do\n it { should be_a_container }\n it { should be_runnin... | ruby | chosen |
[
{
"from": "human",
"value": "Add code for 6.5 exercise\n"
},
{
"from": "gpt",
"value": "# RELEASE 2: NESTED STRUCTURE GOLF\n# Hole 1\n# Target element: \"FORE\"\n\narray = [[1,2], [\"inner\", [\"eagle\", \"par\", [\"FORE\", \"hook\"]]]]\n\n# attempts:2\n# ========================================... | ruby | chosen |
[
{
"from": "system",
"value": "Update help response to include source of results\n"
},
{
"from": "human",
"value": "require 'genius'\n\nmodule Cinch\n module Plugins\n class Lyric\n include Cinch::Plugin\n\n match /(lyric) (.+)/\n match /(genius) (.+)/\n match /(help lyric... | ruby | chosen |
[
{
"from": "system",
"value": "Delete double generation of SalesTaxPaymentCheck class\n"
},
{
"from": "human",
"value": "# This file sets up the classes for QuickBooks entities, transactions and\r\n# reports that are not setup elsewhere (at this point, this file is only used\r\n# for \"weird\" cl... | ruby | chosen |
[
{
"from": "system",
"value": "Remove rails from frontend and backend gemspecs.\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\nversion = File.read(File.expand_path(\"../../SPREE_VERSION\", __FILE__)).strip\n\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Set yesterday as the default backup/restore date\n"
},
{
"from": "human",
"value": "namespace :dumps do\n desc 'Loads application environment'\n task :environment do\n require File.expand_path('../../../config/environment', __FILE__)\n end\n\n desc 'Backups a... | ruby | chosen |
[
{
"from": "system",
"value": "Add home directory base for solaris\n\nSigned-off-by: Jaymala Sinha <a04666c8f252cd920997ac90b34d2eff29d09ccc@chef.io>\n"
},
{
"from": "human",
"value": "module Users\n # Helpers for Users\n module Helpers\n # Checks fs type.\n #\n # @return [String]\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add platform dependent package update to sysbench cookbook\n"
},
{
"from": "human",
"value": "# Update package index (Ubuntu or Debian)\ninclude_recipe \"apt\"\n\npackage \"sysbench\" do\n action :install\nend\n"
},
{
"from": "gpt",
"value": "case node[... | ruby | chosen |
[
{
"from": "system",
"value": "Update lita gem version requirement to support version 3, bump version.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = \"lita-imgflip\"\n spec.version = \"1.0.1\"\n spec.authors = [\"Henrik Sjökvist\"]\n sp... | ruby | chosen |
[
{
"from": "system",
"value": "Add noreferrer value to rel attribute for external links\n"
},
{
"from": "human",
"value": "module Banzai\n module Filter\n # HTML Filter to add a `rel=\"nofollow\"` attribute to external links\n #\n class ExternalLinkFilter < HTML::Pipeline::Filter\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove stupid leftover source calls\n"
},
{
"from": "human",
"value": "class UserDecorator < ApplicationDecorator\n delegate_all\n\n def email\n object.try :email || \"No Email\"\n end\n\n def email_tag\n mail_to email, \"Get in touch with #{first_name}\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix avatar uploader error once and for all.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nclass AvatarUploader < ApplicationUploader\n\n include CarrierWave::MiniMagick\n\n # Process files as they are uploaded:\n process :resize_to_fill => [512, 512]\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Set more strict minimum version\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'bundler/update_stdout/version'\n\nGem::Specification.new do |spec|\n sp... | ruby | chosen |
[
{
"from": "human",
"value": "Add Oregon Junior Mountain Bike Series\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nmodule Competitions\n module OregonJuniorMountainBikeSeries\n class Overall < Competition\n def friendly_name\n \"Oregon Junior Mountain Bike Seri... | ruby | chosen |
[
{
"from": "system",
"value": "Use GPIO based on architecture\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.join(File.expand_path(File.dirname(__FILE__)), \"lib\")\n\nrequire 'bundler/setup'\nBundler.require(:default)\n\nREAL_GARAGE = !!(`uname -a` =~ /raspberrypi/)\n\nrequire 'logge... | ruby | chosen |
[
{
"from": "system",
"value": "Add Ju Liu as an author.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/wordless/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Étienne Després\"]\n gem.email = [\"etienne@mol... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade dependency to the heroku-api gem\n\nThis gem is better up to date for interacting with\nthe Heroku API. This gem is better supported."
},
{
"from": "human",
"value": "# Generated by jeweler\n# DO NOT EDIT THIS FILE DIRECTLY\n# Instead, edit Jeweler::Tasks in... | ruby | chosen |
[
{
"from": "system",
"value": "Use boxen redis if available.\n"
},
{
"from": "human",
"value": "require 'helper'\nrequire 'flipper/adapters/redis'\nrequire 'flipper/spec/shared_adapter_specs'\n\ndescribe Flipper::Adapters::Redis do\n let(:client) { Redis.new }\n\n subject { described_class.new(... | ruby | chosen |
[
{
"from": "human",
"value": "Add a spec for Http::Response\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Http::Response do\n\n let(:subject){ Http::Response.new }\n\n describe \"the response headers\" do\n\n it 'are available through Hash-like methods' do\n subject... | ruby | chosen |
[
{
"from": "system",
"value": "Add method specs for device spec\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe Device do\n it \"should be in the danger zone if last survey is too old\" do\n device = Device.new\n survey = Survey.new\n survey.stub(:updated_at).and_... | ruby | chosen |
[
{
"from": "system",
"value": "Destroy payment engines after specs on payout\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Payout do\n before(:all) { PaymentEngine.destroy_all }\n\n describe 'completion of payout' do\n it 'completes a payout for each payment engine ini... | ruby | chosen |
[
{
"from": "system",
"value": "Fix what we're actually testing\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\nrequire \"rails_reseed\"\nrequire \"yaml\"\n\nRSpec.describe \"db:reseed\", type: :rake do\n it \"has a task name\" do\n expect(task_name).to eq(\"db:reseed\")\n expec... | ruby | chosen |
[
{
"from": "human",
"value": "Add the start of routing specs.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe \"routing to games\" do\n it \"routes /games to game#index\" do\n {:get, \"/games\"}.should route_to(:action => :index)\n end\n\n it \"routes /games/new to game#n... | ruby | chosen |
[
{
"from": "system",
"value": "Check restricted method definitions for Library\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe LastFM::Library do\n it \"should define unrestricted methods\" do\n LastFM::Library.unrestricted_methods.should == [:get_albums, :get_artists, ... | ruby | chosen |
[
{
"from": "system",
"value": "Improve clubs view feature spec\n"
},
{
"from": "human",
"value": "require 'spec_helper.rb'\n\ncl1attrs = FactoryGirl::attributes_for(:club)\ncl2attrs = FactoryGirl::attributes_for(:club)\n\nfeature \"Viewing a Club\", js: true do\n before do\n club1 = Club.crea... | ruby | chosen |
[
{
"from": "system",
"value": "Fix APIPIE documentation on Heroku.\nSet config.reload_controllers = true in Apiepie initializer because it doesn't automatically load documentation for each controller in test and production.\n"
},
{
"from": "human",
"value": "Apipie.configure do |config|\n config... | ruby | chosen |
[
{
"from": "system",
"value": "Validate presence of colour on characteristics step\n"
},
{
"from": "human",
"value": "class Pet < ActiveRecord::Base\n cattr_accessor :form_steps do\n %w(identity characteristics instructions)\n end\n\n attr_accessor :form_step\n\n validates :name, :owner_na... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for launching the VncServerPool\n"
},
{
"from": "human",
"value": "require File.expand_path(\"../../spec_helper\", __FILE__)\n\nmodule CukeForker\n describe VncServerPool do\n let(:pool) { VncServerPool.new(3, SpecHelper::FakeVnc) }\n\n it \"creates... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for JSON output\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe StatisticsController do\n \n before(:each) do\n config = File.join( __dir__, \"..\", \"lib\", \"test-survey.xls\" ) \n QuestionnaireImporter.load(1, config) \n ... | ruby | chosen |
[
{
"from": "system",
"value": "Drop Postgres database with AR connection\n\n1. Works faster than issuing shell commands.\n2. Attempts to drop the database before creating it. This fixes some\nugly test output which warns that given database already exists.\n"
},
{
"from": "human",
"value": "requ... | ruby | chosen |
[
{
"from": "system",
"value": "Declare DataInjectable test class at runtime\n"
},
{
"from": "human",
"value": "require 'perpetuity/data_injectable'\n\nmodule Perpetuity\n class InjectableClass\n extend DataInjectable\n end\n\n describe DataInjectable do\n let(:klass) { InjectableClass }\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix click on incorrect namespace\n\nin certain conditions. And `first` was causing it to succeed even though the criteria were ambiguous.\n"
},
{
"from": "human",
"value": "module QA\n module Page\n module Project\n class New < Page::Base\n view 'app... | ruby | chosen |
[
{
"from": "human",
"value": "Add codility training - brackets\n"
},
{
"from": "gpt",
"value": "# 100/100\ndef solution(str)\n char_mappings = {\n \"}\" => \"{\",\n \"]\" => \"[\",\n \")\" => \"(\"\n }\n\n stack = []\n\n str.each_char do |chr|\n if char_mappings.values.include?(ch... | ruby | chosen |
[
{
"from": "system",
"value": "Improve the summary in the .podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"AHKSlider\"\n s.version = \"0.1.0\"\n s.summary = \"UISlider subclass that improves value precision of the value selection.\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Update the version number in the podspec\"\n\nThis reverts commit 7ce8c93b07f367d8072a37c08ff5a3f725b757cd.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"APIClient\"\n s.version = \"0.2.0-pre\"\n s.summary = \"Con... | ruby | chosen |
[
{
"from": "system",
"value": "Add dependency on Result to podspec"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'Alamofire'\n s.version = '3.0.0-beta.1'\n s.license = 'MIT'\n s.summary = 'Elegant HTTP Networking in Swift'\n s.homepage = 'https://github.com/Alamofire/Alamo... | ruby | chosen |
[
{
"from": "system",
"value": "Update FindEach validation error message\n"
},
{
"from": "human",
"value": "module ZeroDowntimeMigrations\n class Validation\n class FindEach < Validation\n def validate!\n message = \"Using `ActiveRecord::Relation#each` is unsafe!\"\n error!(... | ruby | chosen |
[
{
"from": "system",
"value": "Return empty hash when no config for environment\n"
},
{
"from": "human",
"value": "module SidekiqConfig\n def self.namespace\n \"panoptes_sidekiq_#{ Rails.env }\"\n end\n\n def self.default_redis\n {\n host: 'localhost',\n port: 6378,\n db: 0\n... | ruby | chosen |
[
{
"from": "system",
"value": "Increase Sneakers sync job timeout\n\nReindexing some items after getting a message was taking longer than the\n60 second timeout, resulting in the connection getting cut.\n"
},
{
"from": "human",
"value": "require 'sneakers'\nrequire 'sneakers/handlers/maxretry'\nr... | ruby | chosen |
[
{
"from": "system",
"value": "Set java environment var to test overriding\n"
},
{
"from": "human",
"value": "require \"language/java\"\n\ndescribe Language::Java do\n describe \"#self.java_home_env\" do\n it \"returns java_home path with version if version specified\" do\n java_home = d... | ruby | chosen |
[
{
"from": "system",
"value": "Update Oxygen icons to 4.5.2.\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass OxygenIcons <Formula\n url 'ftp://ftp.kde.org/pub/kde/stable/4.4.2/src/oxygen-icons-4.4.2.tar.bz2'\n homepage 'http://www.oxygen-icons.org/'\n md5 '86e655d909f743cea6a2fc6... | ruby | chosen |
[
{
"from": "system",
"value": "Fix RSpec deprecation and load \"spec_helper\" library correctly.\n"
},
{
"from": "human",
"value": "require File.expand_path(File.dirname(__FILE__) + \"/../spec_helper\")\nrequire \"steak\"\n# require 'capybara/envjs'\n# Capybara.javascript_driver = :envjs\n\nrequi... | ruby | chosen |
[
{
"from": "system",
"value": "Delete a spec generated by bundler.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Ec2::Snapshot::Replicator do\n it 'has a version number' do\n expect(Ec2::Snapshot::Replicator::VERSION).not_to be nil\n end\n\n it 'does something useful'... | ruby | chosen |
[
{
"from": "system",
"value": "Fix installation of man file by replacing the path hardcoded in setup.py.\n\nSigned-off-by: David Höppner <017ae80272b4e52efdec6713a2cb2af11a9c7ddd@gmail.com>\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Bazaar <Formula\n url 'http://launchpad.net/... | ruby | chosen |
[
{
"from": "human",
"value": "Add OMake (OCaml build system) formula\n\nSigned-off-by: Adam Vandenberg <flangy@gmail.com>\n\n* Renamed to match naming conventions\n"
},
{
"from": "gpt",
"value": "require 'formula'\n\nclass OMake <Formula\n url 'http://omake.metaprl.org/downloads/omake-0.9.8.5-3.... | ruby | chosen |
[
{
"from": "system",
"value": "Make db/ directory when it doesn't exist already before Groonga db creating\n"
},
{
"from": "human",
"value": "require \"grn_mini\"\nrequire \"sinatra/base\"\nrequire \"sinatra/reloader\"\nrequire \"haml\"\nrequire \"sass\"\nrequire \"coffee-script\"\n\nclass MTask ... | ruby | chosen |
[
{
"from": "system",
"value": "Apply current_term scope to KlassesDisplayable\n"
},
{
"from": "human",
"value": "module KlassesDisplayable\n extend ActiveSupport::Concern\n include TimetableDisplayable\n\n def index\n @klasses = Klass.includes(:department).all\n end\n\n private\n\n def s... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug where attribute was mistaken for Kernel method.\n"
},
{
"from": "human",
"value": "class BiblioCommonsTitleContentItem < ActiveRecord::Base\n include Expirable\n\n has_many :biblio_commons_title_content_matches, :dependent => :destroy\n has_many :tweets, ... | ruby | chosen |
[
{
"from": "system",
"value": "Disable public send cop in variables duplicates validator\n"
},
{
"from": "human",
"value": "# VariableDuplicatesValidator\n#\n# This validator is designed for especially the following condition\n# - Use `accepts_nested_attributes_for :xxx` in a parent model\n# - Us... | ruby | chosen |
[
{
"from": "system",
"value": "Add test case for a /32 cidr.\n\nThis should return an empty set.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'cidr_to_range' do\n cidr = '192.168.1.0/29'\n\n it 'should return the range ips excluding the network and broadcast addresses' d... | ruby | chosen |
[
{
"from": "system",
"value": "Fix save actions in railtie spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nshared_examples 'save action' do\n context 'with an invalid model' do\n let(:model) { User.new }\n it 'gets called' do\n InformantRails::Client.should receive(:i... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec for the i18n config.\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe Udongo::Configs::I18n do\n let(:klass) { described_class }\n\n describe 'defaults' do\n it :default_locale do\n expect(klass.new.default_locale).to eq 'nl'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Access to more PaypalExpressResponse variables\n\n\ngit-svn-id: 15afb6ebb5ffcaa0dbaaa80925839866918ea29e@329 6513ea26-6c20-0410-8a68-89cd7235086d\n"
},
{
"from": "human",
"value": "module ActiveMerchant #:nodoc:\n module Billing #:nodoc:\n class PaypalExpressRes... | ruby | chosen |
[
{
"from": "system",
"value": "Fix warning: MobileCoreServices has been renamed"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"TZImagePickerController\"\n s.version = \"3.3.1\"\n s.summary = \"A clone of UIImagePickerController, support picking multiple ph... | ruby | chosen |
[
{
"from": "system",
"value": "Include a slash in the request specs for the status endpoint.\n\nSigned-off-by: Robb Kidd <11cd4f9ba93acb67080ee4dad8d03929f9e64bf2@chef.io>\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'GET /status' do\n it 'returns a 200' do\n get 'stat... | ruby | chosen |
[
{
"from": "system",
"value": "Add optimistic Mocha version constraint of 0.14.x.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'coverband/version'\n\nGem::Specification.new do |spec... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for entry presenter\n"
},
{
"from": "gpt",
"value": "describe Adminable::Presenters::Entry do\n let(:user) { FactoryGirl.create(:user) }\n let(:entry) { Adminable::Presenters::Entry.new(user) }\n\n describe '#to_name' do\n it 'returns name for entry' ... | ruby | chosen |
[
{
"from": "system",
"value": "Add comment to spec to make sure it's clear what the right rename should be\n\n* This example checks to make sure that the UnoptimizedOperands optimizer is\n running properly and simplified the right branch by factoring out the rename\n operation (since it is a rename, then a... | ruby | chosen |
[
{
"from": "human",
"value": "Add benchmarks to profile wrap & truncate speeds.\n"
},
{
"from": "gpt",
"value": "require 'benchmark/ips'\nrequire 'verse'\n\ntext = \"Ignorance is the parent of fear.\"\n\nBenchmark.ips do |x|\n x.report('wrap') do\n Verse::Wrapping.wrap(text, 10)\n end\n\n x... | ruby | chosen |
[
{
"from": "system",
"value": "Fix GIT_DIR detection in Repository\n"
},
{
"from": "human",
"value": "# This code is free software; you can redistribute it and/or modify it under\n# the terms of the new BSD License.\n#\n# Copyright (c) 2013, Sebastian Staudt\n\nrequire 'mestral/hook'\n\nclass Mes... | ruby | chosen |
[
{
"from": "system",
"value": "Add license to gemspec, is MIT"
},
{
"from": "human",
"value": "Gem::Specification.new do |gem|\n gem.name = \"cardboard\"\n gem.version = \"2.1.0\"\n gem.authors = [\"John Barnette\", \"Will Farrington\"]\n gem.email = [\"jbarnette@... | ruby | chosen |
[
{
"from": "system",
"value": "Fix year boundary test failure\n"
},
{
"from": "human",
"value": "require File.expand_path(\"../../test_helper\", __FILE__)\n\n# :stopdoc:\nclass EventsTest < ActionController::IntegrationTest\n def test_index\n FactoryGirl.create(:event)\n FactoryGirl.create... | ruby | chosen |
[
{
"from": "system",
"value": "Add pending tests for cards controller\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe CardsController, type: :controller do\n\nend\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.describe CardsController, typ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove last with_default_host trait usage\n\nThis trait was removed in 200e6db, but this instance was missed.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe HostsController do\n describe '#index' do\n let(:site) { create :site, :with_defa... | ruby | chosen |
[
{
"from": "system",
"value": "Fix missing assigned_to renaming in 2e839ce\n\nfixes #4360.\n"
},
{
"from": "human",
"value": "# Build collection of Merge Requests\n# based on filtering passed via params for @project\nclass MergeRequestsLoadContext < BaseContext\n def execute\n type = params[:... | ruby | chosen |
[
{
"from": "system",
"value": "Add breadcrumps to the email signup page\n\nThis uses the dummy artefact pattern to add breadcrumbs to the email\nsubscription page for a sub-topic, linking back to the topic and\nsub-topic, so that users can find their way back to the sub-topic if\nthey do not wish to subscrib... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the representer for the new org page\n"
},
{
"from": "human",
"value": "class OrganizationsController < ApplicationController\n before_action :authenticate, only: [:create]\n\n def create\n @organization = Organization.new organization_params.merge(admin_id... | ruby | chosen |
[
{
"from": "human",
"value": "Allow unscoped has many for custom forms\n"
},
{
"from": "gpt",
"value": "class UnscopedHasManyTokenInput < Formtastic::Inputs::StringInput\n\n def input_html_options\n search_property = options[:search_property] || \"name\"\n super.merge(\n \"class\" => ... | ruby | chosen |
[
{
"from": "system",
"value": "Add ruby required ruby version and test dependency\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'color_decomposition/version'\n\nGem::Specification.ne... | ruby | chosen |
[
{
"from": "system",
"value": "Add methods to generate and set account number on signup\n"
},
{
"from": "human",
"value": "# == Schema Information\n#\n# Table name: users\n#\n# id :integer not null, primary key\n# email :string default(\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Deploy with deployer user not root."
},
{
"from": "human",
"value": "set :stage, :production\n\nset :user, 'root'\n\nrole :app, '162.243.221.218'\nrole :web, '162.243.221.218'\nrole :db, '162.243.221.218', primary: true\n"
},
{
"from": "gpt",
"value": "... | ruby | chosen |
[
{
"from": "human",
"value": "Add day 13: Optimal Seating\n"
},
{
"from": "gpt",
"value": "class PeopleMatrix\n def initialize(pairs)\n @matrix = Hash.new { |h, k| h[k] = Hash.new(0) }\n\n pairs.each { |p1, p2, happiness|\n @matrix[p1][p2] += happiness\n @matrix[p2][p1] += happin... | ruby | chosen |
[
{
"from": "system",
"value": "Allow only users with role admin to access Oauth applications management panel\n"
},
{
"from": "human",
"value": "Doorkeeper.configure do\n orm :active_record\n use_refresh_token\n # api_only uncomment after release of new doorkeeper version\n\n resource_owner_a... | ruby | chosen |
[
{
"from": "system",
"value": "Update DropDMG cask for 3.2.7\n"
},
{
"from": "human",
"value": "cask :v1 => 'dropdmg' do\n\tversion '3.2.6'\n\tapp 'DropDMG.app'\n\tsha256 '8e07cdeef08db9f32f150c76e3145ca1b8ed131f9d8132d739ee90126da9a88e'\n\n\turl 'https://c-command.com/downloads/DropDMG-3.2.6.dmg... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor Manual fetching to before_filter\n"
},
{
"from": "human",
"value": "class ManualsController < ApplicationController\n\n def index\n manual = ManualsRepository.new.fetch(params[\"manual_id\"])\n\n error_not_found unless manual\n @manual = ManualPre... | ruby | chosen |
[
{
"from": "system",
"value": "Use new dict style in WickedPdf arguments\n\nSigned-off-by: Max Fierke <0706025b2bbcec1ed8d64822f4eccd96314938d0@maxfierke.com>\n"
},
{
"from": "human",
"value": "class ResumesController < ApplicationController\n before_action :set_resume, only: [:show]\n\n layout... | ruby | chosen |
[
{
"from": "human",
"value": "Add custom form builder for bootstrap\n"
},
{
"from": "gpt",
"value": "# Helper para la construccion de formularios conformes\n# al estilo de bootstrap\nclass BootstrapFormBuilder < ActionView::Helpers::FormBuilder\n \n def text_field(method, options={})\n t = @t... | ruby | chosen |
[
{
"from": "system",
"value": "Stop looking for Diagnostic by name\n"
},
{
"from": "human",
"value": "class ActivityClassification < ActiveRecord::Base\n\n include Uid\n\n has_many :activities, dependent: :destroy\n has_many :concept_results\n\n validates :key, uniqueness: true, presence: tru... | ruby | chosen |
[
{
"from": "system",
"value": "Use the new \"sexy\" validations (validates ...)\n"
},
{
"from": "human",
"value": "module Socializer\n class Notification < ActiveRecord::Base\n # Increment the number of unread notifications\n after_save { activity_object.increment_unread_notifications_coun... | ruby | chosen |
[
{
"from": "system",
"value": "Remove parent from comment serializer\n"
},
{
"from": "human",
"value": "class CommentSerializer < ActiveModel::Serializer\n include Twitter::Autolink\n\n embed :ids, include: true\n attributes :id, :body, :created_at, :updated_at, :parent_id\n\n has_one :author... | ruby | chosen |
[
{
"from": "human",
"value": "Set up tests for databases\n"
},
{
"from": "gpt",
"value": "require \"spec_helper\"\n\ndescribe \"using the databases api\" do\n include_context \"netrc\"\n\n context \"to create\" do\n When { VCR.use_cassette('databases/create') { run \"rumm create database on ... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for using capture_erb outside template\n"
},
{
"from": "human",
"value": "require_relative \"../spec_helper\"\n\nbegin\n require 'tilt/erb'\nrescue LoadError\n warn \"tilt not installed, skipping capture_erb plugin test\"\nelse\ndescribe \"capture_erb plu... | ruby | chosen |
[
{
"from": "system",
"value": "Fix quote controller test for mass-assignment protection\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass QuotesControllerTest < ActionController::TestCase\n setup do\n @quote = quotes(:one)\n end\n\n test \"should get index\" do\n get :ind... | ruby | chosen |
[
{
"from": "system",
"value": "Fix country_select unit test to work with updated to_response"
},
{
"from": "human",
"value": "require_relative \"../test_helper\"\n\nmodule SmartAnswer\n class CountrySelectQuestionTest < ActiveSupport::TestCase\n def setup\n @question = Question::CountryS... | ruby | chosen |
[
{
"from": "system",
"value": "Add more information to the attributes file and remove old ad-likewise\nentries\n\n\nFormer-commit-id: 73686a66aa4fd9749d0a260ab6851f294bd48d20"
},
{
"from": "human",
"value": "#default[:authorization] = {}\n#default[:authorization][:ad_likewise] = {}\ndefault[:auth... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spec initially with a sleep\n"
},
{
"from": "human",
"value": "require 'acceptance_helper'\n\ndescribe \"Non signed in pages:\", type: :feature do\n include ScreenshotTest\n include Acceptance::FactHelper\n\n describe \"Profile page page\" do\n it \"render... | ruby | chosen |
[
{
"from": "system",
"value": "Add MIT license to gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"with_model/version\"\n\nGem::Specification.new do |s|\n s.name = \"with_model\"\n s.version = WithModel::V... | ruby | chosen |
[
{
"from": "human",
"value": "Add seed task for creating fake student data.\n\n+ #35.\n"
},
{
"from": "gpt",
"value": "Assessment.destroy_all\nSchool.destroy_all\nassessment = Assessment.create(name: \"MCAS\", year: Time.new(2014))\nhealey = School.create(name: \"Arthur D Healey\")\n\nRoom.destro... | ruby | chosen |
[
{
"from": "human",
"value": "Add likes controller and index for current user\n"
},
{
"from": "gpt",
"value": "class LikesController < ApplicationController\n before_action :authenticate_user!\n\n def index\n \t@likes = current_user.likes\n\n render json: {\n data: {\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow unlogged in users to view help\n"
},
{
"from": "human",
"value": "class PagesController < ApplicationController\n before_action :authenticate_user!, except: :index\n def index\n @latest_battles = Battle.order(\"updated_at desc\").includes(:arena).limit 5\... | ruby | chosen |
[
{
"from": "system",
"value": "Add validation to update method\n"
},
{
"from": "human",
"value": "class WikisController < InheritedResources::Base\n def create\n @wiki = Wiki.new(params[:wiki])\n @wiki.add_member(current_user)\n create! do |success, failure|\n success.html {\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update PhpStorm EAP.app to latest version\n"
},
{
"from": "human",
"value": "cask :v1 => 'phpstorm-eap' do\n version '141.2017'\n sha256 'f0ec9828aab591159531cdeb815dcf976d9707bb126a84daa4554809c9fc34b2'\n\n url \"https://download.jetbrains.com/webide/PhpStorm-EA... | ruby | chosen |
[
{
"from": "system",
"value": "Update PHPStorm EAP to 141.1306\n"
},
{
"from": "human",
"value": "cask :v1 => 'phpstorm-eap' do\n version '141.891'\n sha256 '5fca9d16de932905109decc442889f1534b5e77b5226ff15c77bd8259aa88ec0'\n\n url \"http://download.jetbrains.com/webide/PhpStorm-EAP-#{version}... | ruby | chosen |
[
{
"from": "system",
"value": "Update Smart Scroll to v4.0.7\n"
},
{
"from": "human",
"value": "cask 'smart-scroll' do\n version '4.0.6'\n sha256 '18582a39a6cfb08ab9f2ff99852eb245055d506d70b5573bf59be62e4c5c6078'\n\n url 'http://www.marcmoini.com/SmartScroll.zip'\n name 'Smart Scroll'\n home... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug in defining ClumpLinkSerializer scope"
},
{
"from": "human",
"value": "class ClumpSerializer < ActiveModel::Serializer\n attributes :id, :name, :description, :links\n\n has_many :categories\n\n private\n\n def name\n scope == 'en' ? object.name_en : o... | ruby | chosen |
[
{
"from": "system",
"value": "Add log output to location history.\n"
},
{
"from": "human",
"value": "module ResourcesController\n module LocationHistory\n extend ActiveSupport::Concern\n\n included do\n if respond_to?(:before_action)\n before_action :store_location\n else... | ruby | chosen |
[
{
"from": "system",
"value": "Update the expectations: an edit link is visible to crop wranglers (which used to be an expectation about the id appearing in a link)\n"
},
{
"from": "human",
"value": "## DEPRECATION NOTICE: Do not add new tests to this file!\n##\n## View and controller tests are d... | ruby | chosen |
[
{
"from": "system",
"value": "Change created_at and updated_at to datetime type\n"
},
{
"from": "human",
"value": "class AddEpixUserFieldsToAnnualReportUpload < ActiveRecord::Migration\n def change\n add_column :trade_annual_report_uploads, :epix_created_by_id, :integer\n add_column :trad... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.