conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add front / back aliases.\n"
},
{
"from": "human",
"value": "module Anki\n class Deck\n attr_accessor :name, :desc\n attr_reader :id, :cards\n\n def initialize name\n @name = name\n @id = Time.now.to_i\n @cards = {}\n \n end\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `url` stanza comment for Polar WebSync Software.\n"
},
{
"from": "human",
"value": "cask 'polar-websync' do\n version '2.8.2'\n sha256 '287230ee323cca9887f31e448cbac759c770448e25c31c164b87f69bb3ead9b9'\n\n url \"https://www.polarpersonaltrainer.com/downloads/... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop requirement from ~> 0.74.0 to ~> 1.37.1\n\nUpdates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.\n- [Release notes](https://github.com/rubocop/rubocop/releases)\n- [Changelog](https://github.com/rubocop/rubocop/bl... | ruby | chosen |
[
{
"from": "system",
"value": "Set DatoCMS locales as I18n available locales\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nrequire 'dato/dump/dsl/root'\nrequire 'dato/dump/operation/root'\nrequire 'dato/dump/ssg_detector'\nrequire 'dato/local/loader'\n\nmodule Dato\n module D... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the indentation and improve wording in a comment\n"
},
{
"from": "human",
"value": "require 'sms_tools/gsm_encoding'\n\nmodule SmsTools\n class EncodingDetection\n MAX_LENGTH_FOR_ENCODING = {\n gsm: {\n normal: 160,\n concatenated: 1... | ruby | chosen |
[
{
"from": "system",
"value": "Add send_file to Dockerfile backend\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nmodule Specinfra::Backend\n class Dockerfile < Specinfra::Backend::Base\n def initialize\n @lines = []\n ObjectSpace.define_finalizer(self) {\n puts ... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing tests about StringExtension\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nmodule Vim\n module Flavor\n describe StringExtension do\n describe '#zap' do\n it 'replace unsafe characters with \"_\"' do\n expect('fakecl... | ruby | chosen |
[
{
"from": "human",
"value": "Add dropdown to assignment questionnaires table\n"
},
{
"from": "gpt",
"value": "class AddDropdownToAssignmentQuestionnairesTable < ActiveRecord::Migration\n def self.up\n \tadd_column :assignment_questionnaires, :dropdown, :boolean, default: true\n end\n\n def s... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude config file from clean up\n"
},
{
"from": "human",
"value": "require_relative '../local_modules'\n\ntask :deps do\n install_local_module 'common'\n sh 'npm install'\nend\n\ntask build: :deps do\n sh 'npx tsc'\nend\n\ntask test: :deps do\n # Prevent burst... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.0.2.4 to 0.0.2.5\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'http-commands'\n s.version = '0.0.2.4'\n s.summary = 'Convenience abstractions for common HTTP operations, such as post and get'\n s... | ruby | chosen |
[
{
"from": "human",
"value": "Add Auth module and APIs\n"
},
{
"from": "gpt",
"value": "require \"Storm/Base/sodserver\"\n\nmodule Storm\n module Account\n module Auth\n # Expire an existing token immediately\n #\n # @return [Bool] whether the token is expired\n def self.e... | ruby | chosen |
[
{
"from": "system",
"value": "Use canonical sentence structure for spec tests\n"
},
{
"from": "human",
"value": "require_relative 'spec_helper'\n\nRSpec.describe ::MailtoAwesome do\n\n it 'Good mailto link' do\n file = \"#{FIXTURES_DIR}/mailto_awesome.html\"\n proofer = run_proofer(file, ... | ruby | chosen |
[
{
"from": "system",
"value": "Call the superclass implementation to simulate production Carrierwave.\n"
},
{
"from": "human",
"value": "RSpec.configure do |config|\n # Set file upload path in tests, using file storage\n config.before(:suite) do\n CarrierWave.configure do |carrier_wave_confi... | ruby | chosen |
[
{
"from": "system",
"value": "Handle case where Fog.credentials is empty\n"
},
{
"from": "human",
"value": "require \"fog/google/storage_xml\"\nrequire \"fog/google/storage_json\"\n\nmodule Fog\n module Storage\n class Google < Fog::Service\n def self.new(options = {})\n if optio... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify some string cleaning logic\n"
},
{
"from": "human",
"value": "require 'nokogiri'\n\nmodule HTMLProofer\n module Utils\n STORAGE_DIR = File.join('tmp', '.htmlproofer')\n\n def pluralize(count, single, plural)\n \"#{count} \" << (count == 1 ? sing... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `warning: URI.extract is obsolete`\n"
},
{
"from": "human",
"value": "require 'markdo/command'\nrequire 'uri'\n\nmodule Markdo\n class RssCommand < Command\n def run\n items = Dir.\n glob(markdown_glob).\n map { |path| File.readlines(path,... | ruby | chosen |
[
{
"from": "system",
"value": "Support the larger payload sizes in iOS 8\n"
},
{
"from": "human",
"value": "module Rapnd\n class Notification\n attr_accessor :badge, :alert, :sound, :content_available, :custom_properties, :device_token\n \n def initialize(hash)\n [:badge, :alert, :... | ruby | chosen |
[
{
"from": "system",
"value": "Change to bump patch level up\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule TTY\n class Prompt\n VERSION = '0.16.0'.freeze\n end # Prompt\nend # TTY\n"
},
{
"from": "gpt",
"value": "# encoding: utf-8\n\nmodule TTY\n class Prompt\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove --all, and make it the default behaviour"
},
{
"from": "human",
"value": "module XcodeInstall\n class Command\n class List < Command\n self.command = 'list'\n self.summary = 'List Xcodes available for download.'\n\n def self.options\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a comment describing the Dry (namespace) module"
},
{
"from": "human",
"value": "require 'thread_safe'\nrequire 'dry-configurable'\nrequire 'dry/container/error'\nrequire 'dry/container/item'\nrequire 'dry/container/registry'\nrequire 'dry/container/resolver'\nr... | ruby | chosen |
[
{
"from": "system",
"value": "Fix AD time interval parsing\n"
},
{
"from": "human",
"value": "module LDAP::Model\n module AD\n\n # Difference in seconds between the UNIX Epoch (1970-01-01)\n # and the Active Directory Epoch (1601-01-01)\n EPOCH_OFFSET = 11644477200\n def self.now\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Implement schema load if database empty\n\nWe count the number of tables in the configured database\n"
},
{
"from": "human",
"value": "dep_included? 'mysql2'\n\n_cset(:database_config) { \"#{shared_path}/config/database.yml\" }\n\nnamespace :db do\n\n desc \"Create... | ruby | chosen |
[
{
"from": "system",
"value": "Check if Rails responds to application before calling it\n"
},
{
"from": "human",
"value": "module Opbeat\n # @api private\n class Filter\n\n MASK = '[FILTERED]'.freeze\n\n def initialize config\n @config = config\n @params = rails_filters || confi... | ruby | chosen |
[
{
"from": "system",
"value": "Delete play_* attrs of Status object\n\nIt was a bug in the document.\nSee: https://croudia.com/voices/show/1268070\n"
},
{
"from": "human",
"value": "require 'croudia/creatable'\nrequire 'croudia/identity'\nrequire 'croudia/user'\n\nmodule Croudia\n class Status <... | ruby | chosen |
[
{
"from": "system",
"value": "Arrange the method sequence in create, query, delete and modify, same as users.\n"
},
{
"from": "human",
"value": "module Easemob\n module Groups\n def query_groups(limit = 50, cursor = nil)\n params = { limit: limit }\n params[:cursor] = cursor unless... | ruby | chosen |
[
{
"from": "system",
"value": "Check that a file name was provided before checking if the file exists\n"
},
{
"from": "human",
"value": "require \"email_assessor/email_validator\"\n\nmodule EmailAssessor\n DISPOSABLE_DOMAINS_FILE = File.expand_path(\"../../vendor/disposable_domains.txt\", __FILE... | ruby | chosen |
[
{
"from": "system",
"value": "Add needed lib and better message on missing config.\n"
},
{
"from": "human",
"value": "namespace :endpoint do\n namespace :proxy do\n desc 'Start SOCKS proxy over SSH for connecting to firewalled servers.'\n task :start do\n Endpoint::Socks.start\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Reorder files requiring in main script\n\nThe main module VBox is defined in the virtualbox/base script.\nHowever it is used in others which define submodules.\nRequiring it first fix a 'NameError: uninitialized constant VBox' when trying to define those submodules.\n"
},
{... | ruby | chosen |
[
{
"from": "system",
"value": "Use omniauth 1.9 to ensure latest security updates\n"
},
{
"from": "human",
"value": "lib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"omniauth-oauth2/version\"\n\nGem::Specification.new do |gem|\n gem... | ruby | chosen |
[
{
"from": "system",
"value": "Improve CLI to actually run metacrunch job files.\n"
},
{
"from": "human",
"value": "module Metacrunch\n class Cli\n include Commander::Methods\n\n def run\n program :name, \"metacrunch\"\n program :version, Metacrunch::VERSION\n program :descr... | ruby | chosen |
[
{
"from": "system",
"value": "Secure by checking for cookie"
},
{
"from": "human",
"value": "helpers do\n\n def current_user\n User.find_by(id: session[:user_id])\n end\n\n def logout_user\n sessions[:user_id] = nil\n end\n\n def existing_user?\n if User.find_by(email: current_user... | ruby | chosen |
[
{
"from": "system",
"value": "Decrease default batch size to 100.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nclass ParallelBatch < ActiveRecord::Base\n\n #####################\n ### Class methods ###\n #####################\n\n def self.find_or_create!\n first || create!\n #... | ruby | chosen |
[
{
"from": "system",
"value": "Sort postgres reports by port and instance name\n"
},
{
"from": "human",
"value": "class Database < ActiveRecord::Base\n attr_accessible :name, :machine_ids\n has_many :machines\n validates_presence_of :name\n\n def postgres_report\n machines.inject([]) do |m... | ruby | chosen |
[
{
"from": "system",
"value": "Use string for class_name in has_one.\n\nPassing a class is deprecated.\n"
},
{
"from": "human",
"value": "class Document < ApplicationRecord\n include FindOrCreateLocked\n\n has_many :editions\n has_one :draft, -> { where(content_store: \"draft\") }, class_name:... | ruby | chosen |
[
{
"from": "system",
"value": "Add paradigm validator to Position\n\nSigned-off-by: Max Fierke <0706025b2bbcec1ed8d64822f4eccd96314938d0@maxfierke.com>\n"
},
{
"from": "human",
"value": "class Position < ActiveRecord::Base\n belongs_to :group\n\n has_many :shifts\n\n has_many :user_positions\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused methods from Resident model\n"
},
{
"from": "human",
"value": "class Resident < ActiveRecord::Base\n attr_accessible :dob, :first_name, :gender, :last_name, :middle_name, :res_apt, :res_city, :res_state, :res_street_address, :res_zip, :ssn\n\n belong... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure RI is available first thing\n"
},
{
"from": "human",
"value": "require 'sequel'\nrequire_relative 'resource_index/version'\nrequire_relative 'resource_index/resource'\n\nmodule ResourceIndex; end\nRI = ResourceIndex\n\nmodule ResourceIndex\n class Base\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add homepage and author to gemspec\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/patch/json/encode/version'\n\nGem::Specification.new do |spec|\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Rails 4 support for rc1:\n\nActiveSupport::TestCase now inherits from MiniTest::Unit::TestCase instead of MiniTest::Spec. Please see: https://github.com/rails/rails/commit/eb4930e3c724cf71d6ce5bb2aec4af82b2025b03\n"
},
{
"from": "human",
"value": "begin\n # if ... | ruby | chosen |
[
{
"from": "system",
"value": "Update comment to be applicable to released and unreleased gems\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule Axiom\n module Types\n\n # Unreleased gem version\n VERSION = '0.0.1'.freeze\n\n end # module Types\nend # module Axiom\n"
},
{... | ruby | chosen |
[
{
"from": "system",
"value": "Comment out test until API is ready\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\n\nrequire 'spec_helper'\nrequire 'ephemeral/client'\n\ndescribe 'Ephemeral::Client' do\n \n describe 'build' do\n it 'expects 3 arguments' do\n test_client = Ephemera... | ruby | chosen |
[
{
"from": "system",
"value": "Fix setting up test DB\n"
},
{
"from": "human",
"value": "require \"simplecov\"\nSimpleCov.start do\n add_filter 'spec/dummy'\nend\n\n# Configure Rails Environment\nENV[\"RAILS_ENV\"] = \"test\"\n\nrequire File.expand_path(\"../../spec/dummy/config/environment.rb\"... | ruby | chosen |
[
{
"from": "system",
"value": "Add Vim modeline and fold markers\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'bundler'\n\nBundler.setup\nrequire 'rack/test'\nrequire 'webmock/rspec'\nrequire File.expand_path '../../app.rb', __FILE__\n\nENV[\"RACK_ENV\"] ||= 'test'\n\nmodule RSp... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for new specs\n"
},
{
"from": "human",
"value": "ENV[\"RAILS_ENV\"] = 'test'\n\nrequire_relative 'spec_helper_common'\nrequire_relative 'spec_helper_pundit'\n"
},
{
"from": "gpt",
"value": "ENV[\"RAILS_ENV\"] = 'test'\n\nrequire_relative 'spe... | ruby | chosen |
[
{
"from": "system",
"value": "Add temporary fix for rails bug\n\nAction Mailer no longer works in isolation due to a missing require.\nSee https://github.com/rails/rails/pull/28835 for more information.\n"
},
{
"from": "human",
"value": "if RUBY_ENGINE == 'ruby'\n if ENV['CI']\n require 'cov... | ruby | chosen |
[
{
"from": "system",
"value": "Add some strictness for conventions' sake\n"
},
{
"from": "human",
"value": "require 'pry'\nrequire File.join(File.dirname(__FILE__), '/../lib/file_convert')\n\ndef configure_with_mock\n FileConvert.configure do |config|\n config['google_service_account'] = {\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Modify load path instead of using require_relative\n"
},
{
"from": "human",
"value": "require \"rspec\"\nrequire \"rack\"\n\nrequire_relative \"../lib/geo_redirect.rb\"\nrequire \"support\"\n\n# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration\nRSpec... | ruby | chosen |
[
{
"from": "system",
"value": "Remove mongo adapter (it was moved to rom-mongo project)\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire \"codeclimate-test-reporter\"\nCodeClimate::TestReporter.start\n\nrequire 'rom'\n\nrequire 'rom/adapter/memory'\n\nrequire 'rom-sql'\nrequire 'ro... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure and require the needed helpers\n"
},
{
"from": "human",
"value": "module MetaCon\n module Loaders\n class RVM\n include MetaCon::Loaders::Helpers\n include MetaCon::CLIHelpers\n def self.ensure(dep, state, proj, v=true)\n kind = d... | ruby | chosen |
[
{
"from": "system",
"value": "Make the inner timeout shorter than the outer\n"
},
{
"from": "human",
"value": "require 'net/http'\nrequire 'net/https'\n\nmodule Spreedly\n class Connection\n\n attr_accessor :endpoint\n\n def initialize(endpoint)\n @endpoint = URI.parse(endpoint)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Bring over script load/delete rake tasks from Gemini\n"
},
{
"from": "human",
"value": "namespace :marty do\n desc 'Load Engine Seed data.'\n task seed: :environment do\n begin\n Marty::Engine.load_seed\n puts \"Database has been seeded with Marty Eng... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop requirement from ~> 0.76.0 to ~> 0.77.0\n\nUpdates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.\n- [Release notes](https://github.com/rubocop-hq/rubocop/releases)\n- [Changelog](https://github.com/rubocop-hq/r... | ruby | chosen |
[
{
"from": "system",
"value": "Use stub instead of File.open. Don't create needless file.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'tumblfetch/cli'\n\ndescribe Tumblfetch::CLI, '#version' do\n it 'should print correct version' do\n output = capture(:stdout) { subject.... | ruby | chosen |
[
{
"from": "system",
"value": "Make view data use a normalized to lexicon count density.\n\nSigned-off-by: Sam Phippen <e5a09176608998a68778e11d5021c871e8fae93c@googlemail.com>\n"
},
{
"from": "human",
"value": "require \"pp\"\n\nhash = Marshal.load(File.binread(\".andrey\"))\nouter_count = hash.... | ruby | chosen |
[
{
"from": "system",
"value": "Reword test to drop should style\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nrequire 'test_helper'\n\nclass MessageTest < ActiveSupport::TestCase\n test 'should mailboxer messages model work' do\n sender = FactoryGirl.create(:user)\n rec... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec file to 0.9.5\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'PJLinkCocoa'\n s.version = '0.9.4'\n s.license = 'MIT'\n s.summary = 'A Cocoa Library for communicating with projectors and other devices that... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test errors which didn't include elevation_gain.\n"
},
{
"from": "human",
"value": "require \"rack/test\"\nrequire \"test/unit\"\n\nENV[\"RACK_ENV\"] = \"test\"\n\nclass HikeAppTestCase < Test::Unit::TestCase\n\tinclude Rack::Test::Methods\n\n\tdef app\n\t\tHike... | ruby | chosen |
[
{
"from": "system",
"value": "Test cases for bar_spacing on SideBars.\n"
},
{
"from": "human",
"value": "\nrequire File.dirname(__FILE__) + \"/gruff_test_case\"\n\nclass TestGruffSideBar < GruffTestCase\n\n def test_bar_graph\n g = setup_basic_graph(Gruff::SideBar, 800)\n write_test_file ... | ruby | chosen |
[
{
"from": "system",
"value": "Add SwiftDate dependency to podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"TastyTomato\"\n s.version = \"0.17.1\"\n s.summary = \"The Tasty Tomato.\"\n s.description = <<-DESC \n Get all the awesome custom UI elemen... | ruby | chosen |
[
{
"from": "system",
"value": "Fix download url in Butt.app Cask."
},
{
"from": "human",
"value": "cask :v1 => 'butt' do\n version '0.1.14'\n sha256 'f12eac6ad2af8bc38717cccde3f7f139d426b6d098ef94f7dcd6ae7d1225f6ad'\n\n url \"http://downloads.sourceforge.net/sourceforge/butt/butt-#{version}/bu... | ruby | chosen |
[
{
"from": "system",
"value": "Replace RejectedParams and use UnknownAttributesError to follow active record"
},
{
"from": "human",
"value": "module ActiveMocker\nmodule Mock\n class RecordNotFound < StandardError\n end\n\n class ReservedFieldError < StandardError\n end\n\n class IdError < S... | ruby | chosen |
[
{
"from": "human",
"value": "Add rspec test to ensure the bracket syntax is using when available\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe 'collectd::plugin', :type => :define do\n\n context 'loading a plugin on collectd <= 4.9.4' do\n let(:title) { 'test' }\n let... | ruby | chosen |
[
{
"from": "system",
"value": "Set initial version number to 0.1.0.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"UIAlertController+Show\"\n s.version = \"1.0.0\"\n s.summary = \"Show UIAlertControllers from anywhere.\"\n\n s.description = <<-DESC\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Drop the dependencies down a bit.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'seam/active_record/version'\n\nGem::Specification.new do |spec|\n spe... | ruby | chosen |
[
{
"from": "system",
"value": "[aws|rds] Implement `ready?` for subnet group.\n"
},
{
"from": "human",
"value": "require 'fog/core/model'\n\nmodule Fog\n module AWS\n class RDS\n\n class SubnetGroup < Fog::Model\n\n identity :id, :aliases => ['DBSubnetGroupName', :name]\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add mac address attr to ipv4addr resource\n"
},
{
"from": "human",
"value": "module Infoblox\n class HostIpv4addr < Resource\n remote_attr_accessor :network, :host, :ipv4addr, :configure_for_dhcp\n \n wapi_object \"record:host_ipv4addr\"\n\n def delete\... | ruby | chosen |
[
{
"from": "system",
"value": "Improve CaseEquality's message a bit\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule Rubocop\n module Cop\n module Style\n # This cop checks for uses of the case equality operator(===).\n class CaseEquality < Cop\n MSG = 'Avoid th... | ruby | chosen |
[
{
"from": "system",
"value": "Document why weird require_relative exists\n"
},
{
"from": "human",
"value": "require_relative '../../../app/models/hit'\n\nmodule Transition\n module Google\n ##\n # Given a +results_pager+ that behaves like an +Enumerable+ returning a stream\n # of +[<ho... | ruby | chosen |
[
{
"from": "system",
"value": "Update to version 0.1.2 for tagging\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Tunits\"\n s.version = \"0.1.1\"\n s.summary = \"A date modification library\"\n s.description = <<-DESC\n\t\t Tunit... | ruby | chosen |
[
{
"from": "system",
"value": "Update iTerm2 version to 20131108\n"
},
{
"from": "human",
"value": "class Iterm2Beta < Cask\n url 'http://www.iterm2.com/downloads/beta/iTerm2-1_0_0_20130811.zip'\n homepage 'http://www.iterm2.com/'\n version 'latest'\n no_checksum\n link 'iTerm.app'\nend\n"
... | ruby | chosen |
[
{
"from": "system",
"value": "Update HandbrakeCLI Nightly to v6752svn\n\nHandBrakeCLI Nightly v6752svn built 2015-01-15.\n"
},
{
"from": "human",
"value": "cask :v1 => 'handbrakecli-nightly' do\n version '6714svn'\n sha256 '57eb6aa19d84e281e8d696bf1f3ecb2b84b3d6d13144c133f94b00530161968a'\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use batches to loop over every post, small refactoring\n"
},
{
"from": "human",
"value": "namespace :remove_duplicate_virtual_users do\n desc 'Remove duplicate users by redirecting all posts to a single user'\n task :remove => :environment do\n puts 'Removing d... | ruby | chosen |
[
{
"from": "system",
"value": "Add racc and rex as devel dependencies\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"ruby-puppetdb\"\n s.version = %x{git describe --tags}.split('-')[0..1].join('.')\n s.platform = Gem::Platform::RUBY\n s.authors ... | ruby | chosen |
[
{
"from": "system",
"value": "Add logic to check to see if input is valid\n"
},
{
"from": "human",
"value": "require 'pry'\nrequire 'sinatra/base'\nrequire_relative 'lib/tictactoe_rules'\nrequire_relative 'lib/tictactoe_board'\nrequire_relative 'lib/comp_player'\nrequire_relative 'lib/web_game_e... | ruby | chosen |
[
{
"from": "system",
"value": "Clear rspec examples between runs\n\nSo examples from previous runs are not executed in future runs\n"
},
{
"from": "human",
"value": "# Loading serverspec first causes a weird error - stack level too deep\n# Requiring rspec first fixes that *shrug*\nrequire 'rspec'... | ruby | chosen |
[
{
"from": "system",
"value": "Add destroy method for posts controller\n"
},
{
"from": "human",
"value": "class PostsController < ApplicationController\n\n def index\n @posts = Posts.all\n end\n\n def show\n @post = Post.find(params[:id])\n end\n\n def new\n @post = Post.new\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unwanted diary entry in the afternoon"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n# Use this file to easily define all of your cron jobs.\n#\n# It's helpful, but not entirely necessary to understand cron before proceeding.\n# http://en.w... | ruby | chosen |
[
{
"from": "system",
"value": "Fix task names, add sync namespace.\n"
},
{
"from": "human",
"value": "set :output, { error: 'log/cron.error.log', standard: 'log/cron.log'}\n\nevery 1.hour do\n rake \"tariff:download\"\nend\n\nevery 1.day, at: '5am' do\n rake \"tariff:sync\"\nend\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Fix error on empty response bodies, add custom message.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule GithubCLI\n # This is the main entry point for formatting output.\n # It delegates to other objects like Formatter::Table\n # to perform actual ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove misnamed block parameter in 'Images'\n"
},
{
"from": "human",
"value": "require 'looks/command/account_management'\nrequire 'looks/gravatar'\n\nmodule Looks\n module Command\n class Images < AccountManagement\n\n def initialize(config)\n super... | ruby | chosen |
[
{
"from": "system",
"value": "Set correct mail address and push_host in gemspec\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'abstractize/version'\n\nGem::Specification.new do |spe... | ruby | chosen |
[
{
"from": "system",
"value": "Make it compatible with master.\n"
},
{
"from": "human",
"value": "require 'action_controller/base'\n\nmodule Responders\n autoload :FlashResponder, 'responders/flash_responder'\n autoload :HttpCacheResponder, 'responders/http_cache_responder'\n\n require 're... | ruby | chosen |
[
{
"from": "system",
"value": "Set timer to 60 seconds\n"
},
{
"from": "human",
"value": "require 'nokogiri'\nrequire 'em-http'\n\nmodule Sonia\n module Widgets\n class Icinga < Sonia::Widget\n\n def initial_push\n fetch_data\n EventMachine::add_periodic_timer(61) { fetch_d... | ruby | chosen |
[
{
"from": "human",
"value": "Add recipe for smart assets.\n\nAssets won't be recompiled if they were not changed.\n"
},
{
"from": "gpt",
"value": "Capistrano::Configuration.instance(:must_exist).load do\n # This skips assets precompilation if nothing changed\n namespace :deploy do\n namespa... | ruby | chosen |
[
{
"from": "system",
"value": "Update OmniOutliner to user version instead of latest\n\nThis commit updates the version to be 4.2.2 instead of the :latest\nidentifier, specifies a SHA and updates the license to commercial\n"
},
{
"from": "human",
"value": "cask :v1 => 'omnioutliner' do\n version... | ruby | chosen |
[
{
"from": "system",
"value": "Change request method params arguments to optional.\n"
},
{
"from": "human",
"value": "module TINAMI\n class API\n attr_accessor *Configuration::OPTIONS_KEYS\n\n def initialize(options = {})\n options = TINAMI.options.merge(options)\n Configuration:... | ruby | chosen |
[
{
"from": "system",
"value": "Remove check of person's email validity in reminder email task\n\nEmail validity is checked when person is created or updated.\nAll invalid email addresses in legacy production data have been\nfixed.\n\nSo email is always valid and does not need to be checked here.\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Use SecureRandom instead of rand\n"
},
{
"from": "human",
"value": "module Uniqueness\n class << self\n def generate(opts = {})\n options ||= {}\n options = uniqueness_default_options.merge(opts)\n dict = uniqueness_dictionary - options[:blacklist... | ruby | chosen |
[
{
"from": "system",
"value": "Use a Set for the Join index, to prevent duplicate tuples\n"
},
{
"from": "human",
"value": "module Veritas\n module Algebra\n class Join < Relation\n include Relation::Operation::Combine\n\n def self.new(left, right)\n left_header, right_header... | ruby | chosen |
[
{
"from": "system",
"value": "Rubocop: Use tr instead of gsub for a single char\n\nA total micro-optimization, but may as well while Rubocop is complaining\n"
},
{
"from": "human",
"value": "# libraries/util.rb\n\nmodule Exhibitor\n module Util\n def should_install_gradle?\n !Dir.exist?... | ruby | chosen |
[
{
"from": "system",
"value": "Update list of non encryptable branches\n"
},
{
"from": "human",
"value": "module KnapsackPro\n module Crypto\n class BranchEncryptor\n NON_ENCRYPTABLE_BRANCHES = %w(develop development dev master staging)\n\n def self.call(branch)\n if Knapsack... | ruby | chosen |
[
{
"from": "system",
"value": "Update endpoints used by WP OAuth Server 3.1.3\n"
},
{
"from": "human",
"value": "require 'omniauth-oauth2'\n\nmodule OmniAuth\n module Strategies\n class WordpressHosted < OmniAuth::Strategies::OAuth2\n # Give your strategy a name.\n option :name, 'wo... | ruby | chosen |
[
{
"from": "system",
"value": "Update endpoints used by WP OAuth Server 3.1.3\n"
},
{
"from": "human",
"value": "require 'omniauth-oauth2'\n\nmodule OmniAuth\n module Strategies\n class WordpressHosted < OmniAuth::Strategies::OAuth2\n # Give your strategy a name.\n option :name, 'wo... | ruby | chosen |
[
{
"from": "system",
"value": "Fix fetching cast data via ajax\n"
},
{
"from": "human",
"value": "class AsciicastsController < ApplicationController\n PER_PAGE = 20\n\n before_filter :load_resource, :only => [:edit, :update, :destroy]\n before_filter :ensure_authenticated!, :only => [:edit, :u... | ruby | chosen |
[
{
"from": "human",
"value": "Add rake task for finding taxon-tagged content by document type\n\nThis will be used to check our assumptions about whether content with a\ngiven document type is really 'guidance' and should appear on taxon\npages.\n"
},
{
"from": "gpt",
"value": "namespace :taxonom... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure the right version number is reporting to CocoaPods"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'ColorPickerRow'\n s.version = '1.2.1'\n s.license = 'MIT'\n s.summary = 'A color picker row for use with the Eureka form library'\n s.... | ruby | chosen |
[
{
"from": "human",
"value": "Test that render_region returns html_safe string\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe Admin::RegionsHelper do\n\n describe \"#render_region\" do\n\n before :each do\n allow(controller).to receive(:controller_name).and_return(\"... | ruby | chosen |
[
{
"from": "human",
"value": "Customize buildr so that release_to information is loaded from build settings if not present in user settings\n"
},
{
"from": "gpt",
"value": "require 'buildr/packaging/artifact'\n\nmodule Buildr\n class Repositories\n def release_to\n unless @release_to\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Stop passing commercial_type when bootstrapping\n"
},
{
"from": "human",
"value": "module Fog\n module Scaleway\n class Compute\n class Servers < Fog::Collection\n model Fog::Scaleway::Compute::Server\n\n def all\n servers = service.l... | ruby | chosen |
[
{
"from": "system",
"value": "Fix security warning from Rails 4 related to regepx anchors\n"
},
{
"from": "human",
"value": "class AssignmentFile < ActiveRecord::Base\n\n belongs_to :assignment\n\n validates_presence_of :filename\n validates_uniqueness_of :filename, scope: :assignment_id\n v... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.