conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix jQuery-UI checking to actually work"
},
{
"from": "human",
"value": "module Jquery\n module Rails\n class Railtie < ::Rails::Railtie\n if ::Rails.root.join(\"javascripts/jquery-ui.min.js\").exist?\n config.before_initialize do\n config.a... | ruby | chosen |
[
{
"from": "system",
"value": "Remove priority from to_h, merge it later if it's set\n"
},
{
"from": "human",
"value": "module Maia\n class Message\n MAX_TOKENS_AT_ONCE = 999\n\n def send_to(pushable)\n devices =\n case pushable\n when ActiveRecord::Relation\n D... | ruby | chosen |
[
{
"from": "system",
"value": "Remove invalid TaxAmount element from DCSALE\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nrequire_relative 'abstract_request'\n\nmodule ClientForPoslynx\n module Data\n module Requests\n\n class DebitCardSale < AbstractRequest\n\n defining_p... | ruby | chosen |
[
{
"from": "system",
"value": "Add some rdoc (more needed)\n"
},
{
"from": "human",
"value": "module Testify\n module Middleware\n class Base\n extend Aliasable\n\n def initialize(app)\n @app = app\n end\n\n def call(env)\n @app.call(env)\n end\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unneeded comments and improve subject normalization\n"
},
{
"from": "human",
"value": "require 'sequel'\n\nmodule PGQuilter\n class Topic < Sequel::Model\n one_to_many :patchsets\n\n SUBJECT_WAS_RE = /.*\\(\\s*was:?\\s*([^)]+)\\s*\\)/\n\n def self.f... | ruby | chosen |
[
{
"from": "system",
"value": "Read STDIN to upload it\n\nhttp.rb can't stream from pipes.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nnamespace :action_mailbox do\n namespace :ingress do\n desc \"Pipe an inbound email from STDIN to the Postfix ingress at the given URL... | ruby | chosen |
[
{
"from": "system",
"value": "Allow authentication using authentication_keys different than email.\n\nThis introduces the possibility to use for instance \"login\" field instead of \"email\" to authenticate.\n"
},
{
"from": "human",
"value": "require 'devise/strategies/authenticatable'\nrequire ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove `url` and define `public_url` and `url_for`\n\nsince proxy to S3Object\n"
},
{
"from": "human",
"value": "require 'aws-sdk'\n\nmodule Tori\n module Backend\n class S3\n # You must be set bucket name.\n # And you can configurate to S3\n # ... | ruby | chosen |
[
{
"from": "system",
"value": "Update homepage to point to the main Turbolinks repo\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/turbolinks/version', __FILE__)\n\nGem::Specification.new do |s|\n s.name = 'turbolinks'\n s.version = Turbolinks::VERSION\n s.autho... | ruby | chosen |
[
{
"from": "system",
"value": "Update privilege names to comply with 3fbb54de6c.\n\nForgot to update the rspec test.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'mysql::backup' do\n\n let(:params) {\n { 'backupuser' => 'testuser',\n 'backuppassword' => 'testp... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure all factory addresses have the same state.\n"
},
{
"from": "human",
"value": "require 'spree/testing_support/factories'\nrequire 'securerandom'\n\nFactoryGirl.modify do\n # Modify the address factory to generate unique addresses.\n factory :address do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use app.config.bookyt.engines to register engines with bookyt.\n"
},
{
"from": "human",
"value": "require 'bookyt_pos'\nrequire 'rails'\n\nmodule BookytPos\n class Railtie < Rails::Engine\n initializer :after_initialize do\n Bookyt::Engine.register_engine '... | ruby | chosen |
[
{
"from": "system",
"value": "Fix ActiveRecord SQL logging: name could be nil.\n"
},
{
"from": "human",
"value": "module PhusionPassenger\nmodule Railz\nmodule FrameworkExtensions\nmodule AnalyticsLogging\n\nmodule ARAbstractAdapterExtension\nprotected\n\tdef log_with_passenger(sql, name, &block... | ruby | chosen |
[
{
"from": "system",
"value": "Make initialize work for subclasses too.\n\nBy using const_get to retrieve the Struct class, we don't need to redefine\ninitialize for each subclass of Foo2.\n"
},
{
"from": "human",
"value": "require 'ffi'\nrequire 'forwardable'\n\nclass Foo < FFI::Struct\n layout... | ruby | chosen |
[
{
"from": "system",
"value": "Database: Move DB_OPT processing to Sequelizer\n\nAddresses #120\n"
},
{
"from": "human",
"value": "require 'facets/hash/revalue'\nrequire 'facets/hash/symbolize_keys'\n\nmodule ConceptQL\n class Database\n attr :db, :opts\n\n def initialize(db, opts={})\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a Spree::DeprecatedInstanceVariableProxy to allow custom messages\n\nThe default Rails class does not allow to pass a custom message to the\ndeprecation. This custom class extends its behavior to make it possible.\n\nNote that I also opened a PR in Rails for fixing this: ra... | ruby | chosen |
[
{
"from": "human",
"value": "Add initial load challenge 6.5\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:\n# ====================================... | ruby | chosen |
[
{
"from": "system",
"value": "Move initializer code into to_prepare block\n\nRails 7 does not autoload constants during boot anymore.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nAlchemy.register_ability Ability\nAlchemy.user_class_name = 'DummyUser'\nAlchemy.signup_path =... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for the theme_helper\n\n#178193020 - find alternative to themes on rails\nhttps://www.pivotaltracker.com/story/show/178193020\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\nclass ConsumerClass\n include ThemeHelper\nend\n\ndef set_theme_env(name)... | ruby | chosen |
[
{
"from": "system",
"value": "Fix error when multiple Rack apps are mounted.\n"
},
{
"from": "human",
"value": "module Docushin\n class RouteSet\n attr_accessor :routes\n\n def initialize\n @routes = []\n Rails.application.routes.routes.each do |route|\n # next if route.a... | ruby | chosen |
[
{
"from": "human",
"value": "Add forest translation `ft` helper method\n"
},
{
"from": "gpt",
"value": "module TranslationHelper\n # Forest translation\n def ft(record, attribute_name, options = {})\n fallback = options.fetch(:fallback, false)\n\n attr_name = attribute_name.to_s\n att... | ruby | chosen |
[
{
"from": "system",
"value": "Increase chunk size to 500 pods.\n"
},
{
"from": "human",
"value": "class PodsController < ApplicationController\n caches_page :index, :show\n \n CHUNK_SIZE = 100\n \n def index\n @pods = CocoaPod.all\n pods_index = CocoaPod.all.each_slice(CHUNK_SIZE).eac... | ruby | chosen |
[
{
"from": "system",
"value": "Allow only block syntax for bsat_brand with optional path.\n"
},
{
"from": "human",
"value": "module Bsat\n module ContentHelper\n\n def bsat_brand(title, path: nil, &block)\n content_for(:bsat_brand, block_given? ? capture(&block) : title)\n content_f... | ruby | chosen |
[
{
"from": "system",
"value": "Define get_type method for voteable\n"
},
{
"from": "human",
"value": "helpers do\n def get_score(voteable)\n votes = voteable.votes\n votes.reduce(0) do |sum, vote|\n sum += 1 if vote.value\n sum -= 1 if !vote.value\n sum\n end\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake as a development dependency.\n"
},
{
"from": "human",
"value": "require_relative \"lib/minitest/sugar/version\"\n\nGem::Specification.new do |s|\n s.name = \"minitest-sugar\"\n s.version = Minitest::Sugar::VERSION\n s.summary = \"Helper to... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor tests to make multiple tests easier.\n\nSigned-off-by: brian m. carlson <738bdd359be778fee9f0fc4e2934ad72f436ceda@crustytoothpaste.net>\n"
},
{
"from": "human",
"value": "#!/usr/bin/ruby\n\n$:.unshift File.join(File.dirname(__FILE__), '..')\n\nload 'daniel'... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"allow reservation worker to retry jobs\"\n\nThis reverts commit 9d36398251f2ee136d47394953e1ea856dd94c0d.\n"
},
{
"from": "human",
"value": "class ReservationWorker\n include Sidekiq::Worker\n\n sidekiq_options :retry => 1\n\n attr_accessor :reservation,... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"change env to ENV\"\n\nThis reverts commit 789b8248a6f13710177488284505e45ee452923d.\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../../spec_helper'\n\ndescribe \"ENV.clear\" do\n it \"deletes all environment variables\" do\n or... | ruby | chosen |
[
{
"from": "system",
"value": "Make Initializer not a inherit from Thor.\n\nI made this change to have it no longer inherit from Thor because it isn't\nreally a sub command. Instead it is simply a class that I wanted to use the\nthor action methods in.\n"
},
{
"from": "human",
"value": "require \... | ruby | chosen |
[
{
"from": "system",
"value": "Include the information schema in the search path.\n"
},
{
"from": "human",
"value": "ENV['RACK_ENV'] ||= 'production'\nENV['DATABASE_URL'] ||=\n \"postgres://localhost/trunk_cocoapods_org_#{ENV['RACK_ENV']}\"\nputs \"[#{Process.pid}] Using DB: #{ENV['DATABASE_URL'... | ruby | chosen |
[
{
"from": "system",
"value": "Update rspec requirement from ~> 3.2.0 to ~> 3.8.0\n\nUpdates the requirements on [rspec](https://github.com/rspec/rspec) to permit the latest version.\n- [Release notes](https://github.com/rspec/rspec/releases)\n- [Commits](https://github.com/rspec/rspec/commits/v3.8.0)\n\nSig... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test rememberance of git repositories due to use of git-ls-remote to get last commit\n"
},
{
"from": "human",
"value": "require File.expand_path(\"#{File.dirname(__FILE__)}/../../../test_helper\")\n\nclass Piston::Git::TestGitCommitRememberance < Piston::TestCas... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade rake to version 12.3.3\n\nUpgrade rake to version 12.3.3\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nGem::Specification.new do |spec|\n spec.name = \"jekyll-theme-kagami\"\n spec.version = \"0.1.12\"\n spec.authors = [\"kami... | ruby | chosen |
[
{
"from": "system",
"value": "Add a test for setting allowed attributes.\n"
},
{
"from": "human",
"value": "require 'test_helper'\nrequire 'action_view'\nrequire 'action_view/helpers/sanitize_helper'\n\nclass DeprecatedSanitizerTest < ActiveSupport::TestCase\n def sanitize_helper\n ActionVie... | ruby | chosen |
[
{
"from": "system",
"value": "Add assets for WSBA precompilation\n"
},
{
"from": "human",
"value": "RacingOnRails::Application.configure do\n config.action_controller.perform_caching = true\n config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'\n config.active_support.deprecation ... | ruby | chosen |
[
{
"from": "system",
"value": "Add Markdown to Mime types\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Add new mime types for use in respond_to blocks:\n# Mime::Type.register \"text/richtext\", :rtf\n# Mime::Type.register_alias \"text/html\",... | ruby | chosen |
[
{
"from": "human",
"value": "Add reviewer_id to review_of_review_mappings (metareview mappings)\n\ngit-svn-id: f67d969b640da65cb7bc1d229e09fd6d2db44ae1@575 392d7b7b-3f31-0410-9dc3-c95a9635ea79\n"
},
{
"from": "gpt",
"value": "class AddReviewerIdToReviewOfReviewMappings < ActiveRecord::Migration\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Rails 5 belongs_to behaviour override\n"
},
{
"from": "human",
"value": "require 'bulk_insert/worker'\n\nmodule BulkInsert\n extend ActiveSupport::Concern\n\n module ClassMethods\n def bulk_insert(*columns, values: nil, set_size:500)\n columns = defaul... | ruby | chosen |
[
{
"from": "system",
"value": "Make KSecAttPassword a 4 letter string like the real constants"
},
{
"from": "human",
"value": "framework 'Foundation'\n\n##\n# Classes, modules, methods, and constants relevant to working with the\n# Mac OS X keychain.\nmodule Keychain\nend\n\nunless Kernel.const_d... | ruby | chosen |
[
{
"from": "system",
"value": "Raise error with bad fastA seq\n"
},
{
"from": "human",
"value": "# Copyright 2014 - 2016 Ryan Moore\n# Contact: moorer@udel.edu\n#\n# This file is part of parse_fasta.\n#\n# parse_fasta is free software: you can redistribute it and/or modify\n# it under the terms o... | ruby | chosen |
[
{
"from": "system",
"value": "Add draw_rect method and use it in PauseScreen.draw\n"
},
{
"from": "human",
"value": "class PauseScreen\n\n\tdef initialize(window, window_width, window_height)\n\t\t@pause_button = Gosu::Image.new(window, 'media/pause_button.png', true)\n\t\t@window_width, @window... | ruby | chosen |
[
{
"from": "system",
"value": "Return to DateTime converted value if called with Date"
},
{
"from": "human",
"value": "require 'date'\n\nmodule AddParserToDateTime\n def new(*args)\n return super if args.length != 1\n value = args.first\n return if value.nil?\n return value if value.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix function to generate zookeper hashes\n\nChange to each_to_index method\n\nChange-Id: Ibed3824a6d9ee4912365291a2323eda9d98ab48d\n"
},
{
"from": "human",
"value": "# Copyright 2015 Midokura SARL, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the... | ruby | chosen |
[
{
"from": "system",
"value": "Add RDoc/Yard comments and minor style fixed for Field class.\n"
},
{
"from": "human",
"value": "module FilterFactory\n class Field\n attr_reader :name, :condition, :alias, :options\n attr_accessor :value\n\n def initialize(name, condition, options = {})\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests for dependency output\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'Output' do\n context \"When there are dependencies\" do\n let(:lines){ `cd spec/fixtures/fake_git_repo && ../../../bin/logr 1ec977324701ad31e4b837c67df4afc8d2d3... | ruby | chosen |
[
{
"from": "system",
"value": "Remove cucumber as a runtime dependency.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n$:.unshift File.expand_path('../lib', __FILE__)\nrequire 'dill/version'\n\nGem::Specification.new do |s|\n s.name = \"dill\"\n s.version = Dill::VERSION... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spec description for issue_tag_color\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe ApplicationHelper, :type => :helper do\n describe '#edit_navbar_active?' do\n it 'return false' do\n expect(helper.edit_navbar_active?).to eq fals... | ruby | chosen |
[
{
"from": "system",
"value": "Change dm-core dependency to 1.2.0 (hopefully, just until pull request is included into core and they fix mainline)\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/dm-restful-adapter/version', __FILE__)\n\nGem::Specific... | ruby | chosen |
[
{
"from": "human",
"value": "Add unit test coverage for AssetPresenter\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.describe AssetPresenter do\n subject(:presenter) { described_class.new(asset, view_context) }\n\n let(:asset) { FactoryGirl.build(:asset) }\n let(:view_conte... | ruby | chosen |
[
{
"from": "system",
"value": "Fix deprecated Rake last_comment is now last_description\n"
},
{
"from": "human",
"value": "require 'rspec/core/rake_task'\n\nmodule RSpecRedo\n class RakeTask < ::RSpec::Core::RakeTask\n RSPEC_REDO_PATH = File.expand_path('../../../bin/rspec-redo', __FILE__)\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove line as it is not needed anymore.\n"
},
{
"from": "human",
"value": "require 'hpcloud/commands/addresses/add'\nrequire 'hpcloud/commands/addresses/remove'\nrequire 'hpcloud/commands/addresses/assign'\n\nmodule HP\n module Cloud\n class CLI < Thor\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use attr_reader instead of a method"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire 'packetfu'\nrequire 'sippy_cup/media/rtp_header'\n\nmodule SippyCup\n class Media\n class RTPPacket < PacketFu::UDPPacket\n\n def initialize(payload_id = 0, mark... | ruby | chosen |
[
{
"from": "system",
"value": "Add store credit to list of payment_methods.\n\nThis will currently cause issues if you attempt to save the store credit\npayment method in the Spree admin interface because the gateway is not\nin the list of available payment methods.\n\nIt will default the store credit paymen... | ruby | chosen |
[
{
"from": "human",
"value": "Add ignored dir and rename it because bin is Satan for M$\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\nrequire_relative \"../src/html-visualizer.rb\"\n\nusage = <<eos\n./run.rb <input_file> <rooms|teachers|groups>\n parses a given JSON input file and visu... | ruby | chosen |
[
{
"from": "system",
"value": "Correct name of resource variables\n\nnew_resource.variables -> new_resource.config_vars\n"
},
{
"from": "human",
"value": "action :install do\n # Update the code.\n git new_resource.path do\n action :sync\n repository new_resource.repository\n checkout_b... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec for git-contest-list sites\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe \"T012: git-contest-list\" do\n before do\n ENV['GIT_CONTEST_CONFIG'] = \"#{@temp_dir}/config.yml\"\n end\n\n context \"git-contest-list sites\" do\n befor... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spec to allow yaml templates\n"
},
{
"from": "human",
"value": "RSpec.describe StackMaster::Commands::Nag do\n let(:region) { 'us-east-1' }\n let(:stack_name) { 'myapp-vpc' }\n let(:stack_definition) { StackMaster::StackDefinition.new(base_dir: '/base_dir', r... | ruby | chosen |
[
{
"from": "human",
"value": "Add potential users helpers for request invite tests\n"
},
{
"from": "gpt",
"value": "module PotentialUserHelpers\n\n def create_potential_user args={}\n defaults = {\n :first_name => \"John\",\n :last_name => \"Smith\",\n :role => \"Hiring M... | ruby | chosen |
[
{
"from": "human",
"value": "Add supplimentary script for cleaning out older spool paths via cron\n\n\ngit-svn-id: 6d9b9a8f21f96071dc3ac7ff320f08f2a342ec80@89 daa9635f-4444-0410-9b3d-b8c75a019348\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\nrequire 'rubygems'\nrequire 'active_support'... | ruby | chosen |
[
{
"from": "system",
"value": "Allow entered_lap (but not lap) as a permitted param\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass RawTimeParameters < BaseParameters\n\n def self.permitted\n %i[id event_group_id event_id lap split_name parameterized_split_name sub_s... | ruby | chosen |
[
{
"from": "system",
"value": "Update the version spec to handle when the specs start in the day before that example is run\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nRSpec.describe \"bundle version\" do\n context \"with -v\" do\n it \"outputs the version\" do\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add dummy app Rake tasks\n"
},
{
"from": "gpt",
"value": "require \"rspec/core/rake_task\"\n\nnamespace :engine_example do\n desc \"Generate a dummy app for testing and development\"\n task :dummy_app => [:setup_dummy_app, :migrate_dummy_app]\n \n task :setup_dum... | ruby | chosen |
[
{
"from": "human",
"value": "Write a test for the existing functionality.\n"
},
{
"from": "gpt",
"value": "require_relative '../spec_helper'\n\ndescribe TheGoogle::Event do\n\n describe \"apply recurrence\" do\n\n let(:event) { TheGoogle::Event.new }\n\n let(:result) { TheGoogle::Event.ap... | ruby | chosen |
[
{
"from": "human",
"value": "Add unit tests for EntryPresenter\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\nRSpec.describe EntryPresenter do\n describe '#summary' do\n let(:document) {\n FactoryBot.build(:document, description: 'This is the summary. And this is extra.')\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Improve scope of ReportBuilder example's expectation\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe ReportsKit::ReportBuilder do\n subject { described_class.new(properties) }\n\n context 'with a datetime dimension' do\n let(:properties) do... | ruby | chosen |
[
{
"from": "system",
"value": "Add some resource route specs to default namespace\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe ActiveAdmin::Application, type: :request do\n\n include Rails.application.routes.url_helpers\n\n [false, nil].each do |value|\n\n desc... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for local utils\n"
},
{
"from": "gpt",
"value": "describe Imap::Backup::CLI::Utils do\n let(:list) do\n instance_double(Imap::Backup::Configuration::List, accounts: accounts)\n end\n let(:accounts) { [{username: email}] }\n let(:connection) do\n i... | ruby | chosen |
[
{
"from": "system",
"value": "Remove suporte a versões antigas do Ruby\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'tww/version'\n\nGem::Specification.new do |spec|\n spec.name = 'tww'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update project decorator to be able to retrieve the build url.\n"
},
{
"from": "human",
"value": "class ProjectDecorator < SimpleDelegator\n def process_with(oauth_token=nil)\n @oauth_token = oauth_token\n\n call_apis\n end\n\n def org_user\n @_org_user ... | ruby | chosen |
[
{
"from": "human",
"value": "Add Master Key.app version 5.6.2\n\nCreated a new Cask for Master Key 5.6.2 following the naming\nconventions, converting it to master-key.rb. Included a sha256, and\nsuccessfully passed both install and audit --download prior to\ncommitting.\n"
},
{
"from": "gpt",
"... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade QT Creator to v3.3.1\n"
},
{
"from": "human",
"value": "cask :v1 => 'qt-creator' do\n version '3.3.0'\n sha256 '5e5491f6c82d3cb57b3ccc186b5b239ca52c2144034da92fc72ad7e8e6788045'\n\n url \"http://download.qt-project.org/official_releases/qtcreator/#{versio... | ruby | chosen |
[
{
"from": "system",
"value": "Use after_run hook in rails log example during output.\n"
},
{
"from": "human",
"value": "require 'tempfile'\nrequire 'csv'\n\nclass FileOutput < Rodimus::Step\n def before_run_set_output\n @outgoing = CSV.open('/tmp/connection_logging.csv', 'w')\n end\n\n def... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in name and email"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"date-parser/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do |s|\n s.nam... | ruby | chosen |
[
{
"from": "system",
"value": "Update Bit Slicer to 1.7.6"
},
{
"from": "human",
"value": "cask :v1 => 'bit-slicer' do\n version '1.7.5'\n sha256 '1180666794b41ddba4895c6f90ba9e428f49c115f0eb260d76061c6c6aa9f1a9'\n\n # bitbucket.org is the official download host per the vendor homepage\n url ... | ruby | chosen |
[
{
"from": "system",
"value": "Update formula to build with SPM\n"
},
{
"from": "human",
"value": "class Modelgen < Formula\n desc \"Swift CLI to generate Models based on a JSON Schema and a template.\"\n homepage \"https://github.com/hebertialmeida/ModelGen\"\n url \"https://github.com/hebert... | ruby | chosen |
[
{
"from": "system",
"value": "Set the required Ruby version in gemspec\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nrequire \"byk/version\"\n\nGem::Specification.new do |s|\n s.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Add deployment target on podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"DKDBManager\"\n s.version = \"0.5.0\"\n s.summary = \"Database manager to use around MagicalRecord to provide a complete CRUD logic... | ruby | chosen |
[
{
"from": "system",
"value": "Change users routing to members\n"
},
{
"from": "human",
"value": "CodeForAmerica::Application.routes.draw do\n\n mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'\n\n devise_for :users, controllers: { registrations: 'registrations', omniauth_callbacks: '... | ruby | chosen |
[
{
"from": "system",
"value": "Move /search route so it actually kicks in\n\nIt was being trumped by the catch-all publication routes.\n"
},
{
"from": "human",
"value": "Frontend::Application.routes.draw do\n match \"/homepage\" => redirect(\"/\")\n\n # Crude way of handling the situation descr... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failing `pod spec lint`\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'JBSSettings'\n s.version = '0.1.0'\n s.summary = 'A settings object that is less annoying than NSUserDefaults'\n s.description = ''\n s.homepage ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix setValue:forKeyPath: nil value problem\n\nFix setValue:forKeyPath: nil value problem\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"MJExtension\"\n s.version = \"0.1.0\"\n s.summary = \"The fastest and most convenient c... | ruby | chosen |
[
{
"from": "system",
"value": "Remove 'assigned but unused variable' warning\n"
},
{
"from": "human",
"value": "require 'active_support/deprecation/proxy_wrappers'\n\nmodule Rails\n class DeprecatedConstant < ActiveSupport::Deprecation::DeprecatedConstantProxy\n def self.deprecate(old, curren... | ruby | chosen |
[
{
"from": "system",
"value": "Add correct branch and source for source value in podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"MenuItemKit\"\n s.version = \"1.0.0\"\n s.summary = \"MenuItemKit provides image and block(closure) support for UIMenu... | ruby | chosen |
[
{
"from": "system",
"value": "Add pry for testing introspection.\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"instrumental/version\"\n\nGem::Specification.new do |s|\n s.name = \"instrumental_agent\"\n s.version = Instrumental::VERSION... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"disable caching on server page for now\"\n\nThis reverts commit a0809d53fc3ec833c74f4fa423a60db0baa4a202.\n"
},
{
"from": "human",
"value": "class ServersController < ApplicationController\n\n skip_before_filter :authenticate_user!\n\n def index\n Stea... | ruby | chosen |
[
{
"from": "system",
"value": "Use the new API for Crime Data\n"
},
{
"from": "human",
"value": "class Neighborhood::CrimeData\n def initialize(neighborhood)\n @neighborhood = neighborhood\n end\n\n def yearly_counts\n # TODO: Append the within_polygon to the where clause for the data se... | ruby | chosen |
[
{
"from": "system",
"value": "Include patch on Fedora systems\n\nWe included this on RHEL. Without this the xml cookbook fails on Fedora"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: build-essential\n# Recipe:: fedora\n#\n# Copyright 2008-2013, Chef Software, Inc.\n#\n# Licensed under t... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Test CI pickup of failure\"\n\nIt worked!\n\nThis reverts commit 0d8a0467fca6af2df7e76bcfb30f5ba13058f375.\n"
},
{
"from": "human",
"value": "#! /usr/bin/env ruby\n#\n# Cookbook Name:: chef_testing_example\n# Recipe:: default\n#\n#\npackage 'apache2'\n\nser... | ruby | chosen |
[
{
"from": "system",
"value": "Test MCAS import by school.\n\n* #18.\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe McasImporter do\n\n describe '#import' do\n fixture_path = \"#{Rails.root}/spec/fixtures/fake_mcas.csv\"\n let(:healey) { FactoryGirl.create(:hea... | ruby | chosen |
[
{
"from": "human",
"value": "Move credential helper implementation to separate file.\n\nThe implementation of a credential helper is useful, but not a good base\nclass. Move it to a separate file in preparation for providing a useful\nAPI in the original file.\n\nSigned-off-by: brian m. carlson <738bdd359b... | ruby | chosen |
[
{
"from": "system",
"value": "Add library to the podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"TVMLKitchen\"\n s.version = \"0.1.0\"\n s.summary = \"Swifty TVML template manager with or without client-server\"\n s.description ... | ruby | chosen |
[
{
"from": "system",
"value": "Add route to accept a user's address input.\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 \"... | ruby | chosen |
[
{
"from": "system",
"value": "Remove redundant defaults from FeverDetails\n"
},
{
"from": "human",
"value": "module Atlas\n # Describes optional information for setting up the node within a Fever\n # calculation.\n class FeverDetails\n include ValueObject\n\n values do\n attribute ... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for copying in a .htaccess file to the CDN dirs\n"
},
{
"from": "human",
"value": "require 'digest'\nrequire 'yaml'\n\nmodule Aweplug\n module Helpers\n # CDN will take the details of a file passed to the version method\n # If necessary, if the fi... | ruby | chosen |
[
{
"from": "system",
"value": "Stop operation execution once an operation returns nil\n"
},
{
"from": "human",
"value": "require 'sidekiq'\n\nmodule Batsir\n module StageWorker\n\n attr_accessor :operation_queue\n\n def self.included(base)\n Registry.register(base.stage_name, base)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update bundler requirement from ~> 1.5 to ~> 2.0\n\nUpdates the requirements on [bundler](https://github.com/bundler/bundler) to permit the latest version.\n- [Release notes](https://github.com/bundler/bundler/releases)\n- [Changelog](https://github.com/bundler/bundler/blob/mas... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spec helper for Rspec 3.2\n"
},
{
"from": "human",
"value": "# Configure Rails Environment\nENV[\"RAILS_ENV\"] = \"test\"\n\nrequire File.expand_path(\"../dummy/config/environment.rb\", __FILE__)\nrequire 'rspec/rails'\nrequire 'ffaker'\nrequire 'rspec/active_m... | ruby | chosen |
[
{
"from": "human",
"value": "Add QA script in Ruby.\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\nclass SrcRepo\n\tdef initialize(root_repo_path, repo_name)\n\t\t@root_repo_path = root_repo_path\n\t\t@repo_name = repo_name\n\t\t@repo_path = \"#{root_repo_path}/#{repo_name}\"\n\t\t@scor... | ruby | chosen |
[
{
"from": "system",
"value": "Fix line length RuboCop violation.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n# Generate code coverage metrics outside CI.\nunless ENV[\"CI\"]\n require \"simplecov\"\n SimpleCov.start { add_filter \"/spec/\" }\nend\n\nrequire \"pry\"\nreq... | ruby | chosen |
[
{
"from": "system",
"value": "Load factories defined in dummy app\n"
},
{
"from": "human",
"value": "ENV['RAILS_ENV'] ||= 'test'\n\nrequire File.expand_path(\"../dummy/config/environment.rb\", __FILE__)\nrequire 'rspec/rails'\nrequire 'rspec/autorun'\nrequire 'factory_girl_rails'\n\nRails.backt... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.