conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Join toplevel supervisor after terminating it\n"
},
{
"from": "human",
"value": "require 'reel/rack/server'\n\nmodule Rack\n module Handler\n class Reel\n DEFAULT_OPTIONS = {\n :host => \"0.0.0.0\",\n :port => 3000,\n :quiet => ... | ruby | chosen |
[
{
"from": "system",
"value": "Validate args sent to SaasPulse.track before making the actual call\n"
},
{
"from": "human",
"value": "module SaasPulse\n BASE_URI = \"http://sdr.saaspulse.com/pixel.gif/?sdr_s=\".freeze unless self.const_defined?(:BASE_URI)\n\n class NoClientError < StandardError... | ruby | chosen |
[
{
"from": "system",
"value": "Change default value of ret\n\nFor easy error handling\n"
},
{
"from": "human",
"value": "require 'net/ssh'\nrequire 'etc'\n\nmodule Serverspec\n module Helper\n def ssh_exec(host, cmd, opt={})\n options = Net::SSH::Config.for(host)\n user = options... | ruby | chosen |
[
{
"from": "system",
"value": "Patch in AMQPS support from travis-core since its vendored here\n"
},
{
"from": "human",
"value": "module Travis\n class Config\n module Url\n class Base < Struct.new(:username, :password, :host, :port, :database)\n def to_h\n Hash[each_pair... | ruby | chosen |
[
{
"from": "system",
"value": "Add option to load config from environment variables.\n"
},
{
"from": "human",
"value": "require 'twitter2fleep/bot'\n\nrequire 'thor'\nrequire 'yaml'\n\nclass Twitter2Fleep::CLI < Thor\n desc \"start\", \"Start the bot\"\n option :config_file, :default => \"#{Dir... | ruby | chosen |
[
{
"from": "system",
"value": "Fix gemspec to remove unnecessary 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 'cloud_conductor_utils/version'\n\nGem::Specification.new d... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Satellite Eyes.app to v1.4.0\n"
},
{
"from": "human",
"value": "cask :v1 => 'satellite-eyes' do\n version '1.2.4'\n sha256 'adc1554c9095e3f316474e0f3712fa2a086d9405d126eca6359b8ebdc7451902'\n\n url \"https://satellite-eyes.s3.amazonaws.com/satellite-eyes-... | ruby | chosen |
[
{
"from": "system",
"value": "Send email from a noreply@\n"
},
{
"from": "human",
"value": "ActionMailer::Base.default_content_type = 'text/html'\n\nclass Mailer < ActionMailer::Base\n def star(star)\n subject \"#{star.to_sentence} got a star!\"\n recipients EVERYONE\n from 'Starbuck'\... | ruby | chosen |
[
{
"from": "system",
"value": "Change update PWS task logging for enhanced clarity\n\n[#147749883]\n\nSigned-off-by: Keaty Gross <ba27100af1ae477f2abedd28f15b1dd208b1f48a@pivotal.io>\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n# encoding: utf-8\nrequire 'open3'\nrequire 'fileutils'\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Add constraints to chat rooms migration\n"
},
{
"from": "human",
"value": "class CreateChatRooms < ActiveRecord::Migration\n def change\n create_table :chat_rooms do |t|\n t.references :sender\n t.references :recipient\n\n t.timestamps null: false... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce the wait time for requests\n"
},
{
"from": "human",
"value": "require_relative \"./../lib/symfony\"\nrequire_relative \"./../lib/utils\"\n\nPROJECT_ROOT = File.realpath(\"#{__dir__}/../../\")\nFIXTURE_PATH = File.realpath(\"#{PROJECT_ROOT}/features/fixtures/#... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to Swift 4.2\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"CodableFirebase\"\n s.version = \"0.2.1\"\n s.summary = \"Use Codable with Firebase\"\n s.description = \"This library helps you use your custom models that conform ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove example project files from Podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"DDCoachMarks\"\n s.version = \"1.0.0\"\n s.summary = \"Quick and easy coach marks to use in any iOS app.\"\n s.homepage = \"https... | ruby | chosen |
[
{
"from": "system",
"value": "Use rspec expectations where possible\n"
},
{
"from": "human",
"value": "When(/I have a (\\w+) resource defined as/) do |model_name, resource_definition|\n authorize_model model_name, resource_definition\nend\n\nWhen(/I have a confidential (\\w+) named \"([\\w\\s]+... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for StdoutWriter class\n"
},
{
"from": "gpt",
"value": "require_relative 'test_base'\nrequire_source 'stdout_writer'\n\nclass StdoutWriterTest < TestBase\n\n def self.id58_prefix\n '60e'\n end\n\n # - - - - - - - - - - - - - - - - -\n\n test 'dF7', %... | ruby | chosen |
[
{
"from": "system",
"value": "Use LOAD_PATH to require files\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\nrequire 'active_support/all'\nrequire './lib/stripe_data'\nrequire './lib/clearbooks_csv'\nrequire './lib/clearbooks_clients'\n\nmonth = ARGV[0].to_s || Time.now.month\nyear = A... | ruby | chosen |
[
{
"from": "human",
"value": "Add RDoc vs YARD benchmark\n"
},
{
"from": "gpt",
"value": "require \"benchmark\"\n\nfiles = Dir.glob(File.dirname(__FILE__) + '/../lib/**/*.rb').join(\" \")\nBenchmark.bmbm do |x|\n x.report(\"rdoc\") { `rm -rf rdoc && rdoc -q -o rdoc #{files} && rm -rf rdoc` }\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Modify gemspec to allow pusing to rubygems\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'tidylib/validation_errors'\n\nGem::Specification.new do |spec... | ruby | chosen |
[
{
"from": "system",
"value": "Use __FILE__ instead of __dir__ which isn't supported by JRuby.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nRSpec.describe Roll::Amp::CompiledStylesheetFile do\n def create(stylesheet_name)\n app_root = File.expand_path('../../', __dir__)\n Ro... | ruby | chosen |
[
{
"from": "system",
"value": "Change alignment of client instantiation mocking\n"
},
{
"from": "human",
"value": "# Copyright 2016 Google, Inc\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may ob... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Updated oauth library to 0.2.0\"\n\nThis reverts commit ff94c8399d86bf790be8614f3404d964abf76e02.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire File.join(File.dirname(__FILE__), 'lib/tumblr/version')\n\nGem::Specification.new do |gem|\n gem... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused requirement of test/unit/assertions\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')\nrequire 'database_cleaner'\n\nrequire 'rspec/expectations'\n\nrequire 'test/unit/assertions'\n\n"
},
{
"from": "gp... | ruby | chosen |
[
{
"from": "system",
"value": "Add executable for showing todos\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'what_now'\n s.version = '0.0.1'\n s.date = '2014-02-27'\n s.summary = 'Find TODO comments in your code'\n s.description = 'Execut... | ruby | chosen |
[
{
"from": "system",
"value": "Make token story/series test order agnostic\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\ndescribe Authorization do\n let(:account) { create(:account) }\n let(:token) { StubToken.new(account.id, ['member'], 456) }\n let(:authorization) { Authorizati... | ruby | chosen |
[
{
"from": "human",
"value": "Add small spec for NoMatch exception.\n"
},
{
"from": "gpt",
"value": "require File.dirname(__FILE__) + \"/../../test_helper\"\n\ndescribe Xample::Text::NoMatch do\n it \"should be an XampleException\" do \n Xample::Text::NoMatch.should < Xample::XampleException\... | ruby | chosen |
[
{
"from": "system",
"value": "Update test client certs example\n"
},
{
"from": "human",
"value": "NORDEA_CSR = ''.freeze\nNORDEA_CERT = ''.freeze\nNORDEA_PRIVATE_KEY = ''.freeze\nDANSKE_BANK_ENC_CERT = ''.freeze\nDANSKE_SIGNING_CERT_REQUEST = ''.f... | ruby | chosen |
[
{
"from": "system",
"value": "Fix isolated test fail due to missing mocha\n"
},
{
"from": "human",
"value": "require File.expand_path('../../../load_paths', __FILE__)\n\nrequire 'rubygems'\nrequire 'test/unit'\nrequire 'active_resource'\nrequire 'active_support'\n\n$:.unshift \"#{File.dirname(__... | ruby | chosen |
[
{
"from": "system",
"value": "Add license details to gemspec.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nrequire File.expand_path('../lib/geos/extensions/version', __FILE__)\n\nGem::Specification.new do |s|\n s.name = \"geos-extensions\"\n s.version = Geos::Extensions::VER... | ruby | chosen |
[
{
"from": "system",
"value": ":admin: Move config for QED to etc directory.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\n#\n# Setup QED.\n#\nconfig :qed, :profile=>:cov do\n require 'simplecov'\n SimpleCov.start do\n coverage_dir 'log/coverage'\n #add_group \"RSpec\", \"lib/... | ruby | chosen |
[
{
"from": "human",
"value": "Add working fax test code\n"
},
{
"from": "gpt",
"value": "require 'phaxio'\nrequire 'pry'\n\nPhaxio.config do |config|\n config.api_key = ENV['PHAXIO_API_KEY']\n config.api_secret = ENV['PHAXIO_API_SECRET']\nend\n\nfile1 = File.new('/tmp/application_2bedc7f5a4bcfa... | ruby | chosen |
[
{
"from": "system",
"value": "Fix to install in Cellar as it should\n\nThe current wakeonlan formula causes the script and man\npage to get installed directly into /usr/local instead of\ninto the Cellar like it should, this patch fixes that.\n\nSigned-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9e... | ruby | chosen |
[
{
"from": "system",
"value": "Add caveat about using this Bash as login shell\n\nSigned-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Bash < Formula\n homepage 'http://www.gnu.org/software/bash/'\n url... | ruby | chosen |
[
{
"from": "system",
"value": "Add method to_s for spec results\n"
},
{
"from": "human",
"value": "require 'aws-sdk'\nrequire 'awspec/helper/finder'\n\nmodule Awspec::Type\n class Base\n include Awspec::Helper::Finder\n attr_reader :id, :resource\n\n def initialize(id = nil)\n supe... | ruby | chosen |
[
{
"from": "system",
"value": "Update pod spec to v0.0.2\n\nupdate pod spec to v0.0.2\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"MenuPopOverView\"\n s.version = \"0.0.1\"\n s.summary = \"A custom PopOverView looks like UIMenuController works on iPhon... | ruby | chosen |
[
{
"from": "system",
"value": "Add exec command for image extraction\n"
},
{
"from": "human",
"value": "require 'flickxtractr'\nrequire 'thor'\n\nmodule Flickxtractr\n class CLI < Thor\n package_name 'Flickxtractr'\n\n desc \"install\", \"Install library dependencies\"\n def install\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use @document instead of registry.document\n"
},
{
"from": "human",
"value": "RUBY_ENGINE == 'opal' ? (require 'gist-block-macro/extension') : (require_relative 'gist-block-macro/extension')\n\nExtensions.register do\n if (registry.document.basebackend? 'html') && ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure the about route works\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe Reader do\n include Rack::Test::Methods\n\n def app\n Reader\n end\n\n describe \"GET /articles/:id\" do\n it \"shows a 404 if the article doesn't exist\... | ruby | chosen |
[
{
"from": "system",
"value": "Add Rails 3.2 to dependency\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"utbs/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do |s|\n s.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Set attributes with default precedence level\n"
},
{
"from": "human",
"value": "override['gerrit']['theme']['compile_files'] = %w{\n GerritSiteHeader.html\n GerritSite.css\n}\n\noverride['gerrit']['theme']['static_files'] = %w{\n 401-redirect-to-wiki.html\n foot... | ruby | chosen |
[
{
"from": "system",
"value": "Add typhoeus as http library.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'acfs/version'\n\nGem::Specification.new do |spec|\n spec.name = ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix compiler discovery in steps, for macports mingw\n"
},
{
"from": "human",
"value": "# Naive way of looking into platforms, please include others like FreeBSD?\nGiven %r{^I'm running a POSIX operating system$} do\n unless RUBY_PLATFORM =~ /linux|darwin/ then\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `Logster::Middleware::DebugExceptions` error with Rails 5.\n\nfixes https://github.com/discourse/logster/issues/55\n"
},
{
"from": "human",
"value": "class Logster::Middleware::DebugExceptions < ActionDispatch::DebugExceptions\n private\n\n def log_error(env,w... | ruby | chosen |
[
{
"from": "system",
"value": "Create User, application, and companies seed data\n"
},
{
"from": "human",
"value": "# This file should contain all the record creation needed to seed the database with its default values.\n# The data can then be loaded with the rake db:seed (or created alongside th... | ruby | chosen |
[
{
"from": "system",
"value": "Fix yet another race condition in a threading spec:\n\nThreadGroup's list_spec was making the assumption that immediately after\nthe two threads posted to the Channel, they would then be asleep. The\nspec ran through its checks and then tried to #run and #join those\nthreads. B... | ruby | chosen |
[
{
"from": "human",
"value": "Add root level airbrush spec\n\n\ngit-svn-id: 6d9b9a8f21f96071dc3ac7ff320f08f2a342ec80@39 daa9635f-4444-0410-9b3d-b8c75a019348\n"
},
{
"from": "gpt",
"value": "require File.dirname(__FILE__) + '/spec_helper.rb'\n\ndescribe 'airbrush' do\n \n it 'should add a log me... | ruby | chosen |
[
{
"from": "system",
"value": "Add seed data for a simple hackney booking request\n\nAlso adds the first user for gds-sso.\n"
},
{
"from": "human",
"value": "# This file should contain all the record creation needed to seed the database with its default values.\n# The data can then be loaded with... | ruby | chosen |
[
{
"from": "system",
"value": "Mark Ruby 2.5.0 as supported\n"
},
{
"from": "human",
"value": "# Copyright 2008-present Greg Hurrell. All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions... | ruby | chosen |
[
{
"from": "system",
"value": "Remove originator_type/originator_id attributes from Adjustment serializer\n"
},
{
"from": "human",
"value": "module Sprangular\n class AdjustmentSerializer < BaseSerializer\n attributes :id, :source_type, :source_id, :adjustable_type, :adjustable_id,\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop requirement from ~> 0.85.0 to ~> 0.86.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": "Work on the builds controller\n"
},
{
"from": "human",
"value": "class BuildsController < ApplicationController\nend\n"
},
{
"from": "gpt",
"value": "class BuildsController < ApplicationController\n def create\n name = params[:project_name]\n proj... | ruby | chosen |
[
{
"from": "system",
"value": "Fix search in people index.\n"
},
{
"from": "human",
"value": "class PeopleController < AuthorizedController\n def show\n # Invoice scoping by state\n @invoices = resource.invoices.where(\"type != 'Salary'\").invoice_state(params[:invoice_state])\n\n show!... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary user check in PusherController\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass PusherController < ApplicationController\n # stop rails CSRF protection for this action\n protect_from_forgery except: :auth\n\n # POST /pu... | ruby | chosen |
[
{
"from": "system",
"value": "Allow indifferent access for content item hash\n\nPublishing api returns a content item hash with string keys.\nAllow the hash to be accessed with label keys as well.\n\nSee https://api.rubyonrails.org/v4.2/classes/ActiveSupport/HashWithIndifferentAccess.html\n"
},
{
"f... | ruby | chosen |
[
{
"from": "system",
"value": "Add phone, email, and url attributes to EffortSerializer.\n"
},
{
"from": "human",
"value": "class EffortSerializer < BaseSerializer\n attributes :id, :event_id, :participant_id, :bib_number, :first_name, :last_name, :full_name, :gender,\n :birthdate, :... | ruby | chosen |
[
{
"from": "system",
"value": "JariBakken: Add some docs to Chrome::Profile\n\ngit-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@13146 07704840-8298-11de-bf8c-fd130f914ac9\n"
},
{
"from": "human",
"value": "module Selenium\n module WebDriver\n module Chrome\n\n #\n # @private\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Check for url instead of name\n"
},
{
"from": "human",
"value": "require 'open-uri'\n\npage_num = 1\n\nwhile page_num < 500 # First 500 Pages\n unless Cafe.last.nil?\n break if Cafe.last.id > 9449\n end\n item_num = 0\n page = Nokogiri::HTML(open(\"http://top... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade iStat Menus.app to v5.11.\n"
},
{
"from": "human",
"value": "cask :v1 => 'istat-menus' do\n version '5.10'\n sha256 'cde4c1b69201dbaa7a7f2adcf9ee5294d7b4201d141a3fde647a6bf90edc902b'\n\n # amazonaws.com is the official download host per the vendor homepag... | ruby | chosen |
[
{
"from": "system",
"value": "Append EXEEXT to executable names.\n\n\ngit-svn-id: 81de8714785daa4de355a86eff9ce8518e4b389c@166 e2d4e900-5bc4-4db4-8b5f-7ecdbb188e69\n"
},
{
"from": "human",
"value": "require 'test/unit'\n\nclass RiceTest < Test::Unit::TestCase\n # TODO: probably a better way to ... | ruby | chosen |
[
{
"from": "system",
"value": "Load vim-flavor before running tests\n"
},
{
"from": "human",
"value": "class FakeUserEnvironment\n def create_file virtual_path, content\n File.open(expand(virtual_path), 'w') do |f|\n f.write(content)\n end\n end\n\n def directory_table\n @directo... | ruby | chosen |
[
{
"from": "system",
"value": "Update allocation strategies with updated Rice API\n"
},
{
"from": "human",
"value": "module RbPlusPlus\n module Builders\n\n # Handles code generation for telling Rice how to allocate / deallocate\n # classes. See ClassNode#check_allocation_strategies.\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Fog deprecation for stop call\n\n\n[fog][DEPRECATION] Passing force as a boolean option has been deprecated. Please pass a hash with 'force' => (true|false)\n"
},
{
"from": "human",
"value": "require \"log4r\"\n\nmodule VagrantPlugins\n module Cloudstack\n m... | ruby | chosen |
[
{
"from": "system",
"value": "Implement each cell with count\n"
},
{
"from": "human",
"value": "class Grid\n attr_accessor :cells\n\n def initialize\n @cells = LooplessArray.new\n end\n\n def living_neighbor_cells(x, y)\n @x = x\n @y = y\n neighbors.compact().rmap(&:status).reduc... | ruby | chosen |
[
{
"from": "system",
"value": "Add description of LICENSE and Modify"
},
{
"from": "human",
"value": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http:/... | ruby | chosen |
[
{
"from": "system",
"value": "Make it work with rspec-rails 2.6\n"
},
{
"from": "human",
"value": "module RSpec::Rails\n # Lets you call #render_cell in Rspec2. Move your cell specs to <tt>spec/cells/</tt>.\n module CellExampleGroup\n extend ActiveSupport::Concern\n extend RSpec::Rails::... | ruby | chosen |
[
{
"from": "system",
"value": "Use Array methods to modify locations\n"
},
{
"from": "human",
"value": "require 'json'\n\nmodule CoffeeLint\n class Config\n # Looks for existing config files and returns the first match.\n def self.locate\n locations = default_locations\n\n # hand... | ruby | chosen |
[
{
"from": "system",
"value": "Load up Webrat into World. Put the bundled cucumber/nagios/steps on the load path\n"
},
{
"from": "human",
"value": "require 'cucumber/nagios/steps'\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\n$: << File.expand_path(File.join(File.dirname(__F... | ruby | chosen |
[
{
"from": "human",
"value": "Add step for entering a repository URL\n"
},
{
"from": "gpt",
"value": "When(/^I enter the Git URL of a public repository$/) do\n visit '/'\n fill_in 'Repository URL', with: 'git://github.com/git/git.git'\n click_on 'View repository'\nend\n"
}
] | ruby | chosen |
[
{
"from": "system",
"value": "Add rescue block to PostgreSQL user creation\n"
},
{
"from": "human",
"value": "# >----------------------------------[ Postgres user ]----------------------------------<\n\n@current_recipe = \"postgres_user\"\n@before_configs[\"postgres_user\"].call if @before_confi... | ruby | chosen |
[
{
"from": "system",
"value": "Add more information to bugsnag errors\n"
},
{
"from": "human",
"value": "require 'sinatra/base'\nrequire 'sinatra/petroglyph'\nrequire \"bugsnag\"\nrequire './config/build_id'\nrequire 'app/routes'\nrequire 'app/helpers'\n\nBugsnag.configure do |config|\n config.a... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor mapping of monads, by passing lambdas into an `apply` function.\n"
},
{
"from": "human",
"value": "module Calvin\n class Evaluator < Parslet::Transform\n attr_accessor :env\n\n def initialize\n super\n @env = {}\n\n rule monad: subtree... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a typo with class 2 exercise 4\n"
},
{
"from": "human",
"value": "# 5 points\n#\n# Write a program that asks for a person's first name, then middle name, and\n# then last name. Finally, it should greet the person using their full name.\n#\n# Here's how the progr... | ruby | chosen |
[
{
"from": "system",
"value": "Remove method to support Ruby 2.2\n"
},
{
"from": "human",
"value": "class Dancer\n # Create an unbounded timeslice\n def self.unbounded(step)\n new(nil, nil, step)\n end\n\n # Create a timeslice from a range\n def self.range(range, step)\n new(range.beg... | ruby | chosen |
[
{
"from": "system",
"value": "Test if the InfluxDB ports are listening\n"
},
{
"from": "human",
"value": "require \"serverspec\"\n\ninclude Serverspec::Helper::Exec\ninclude Serverspec::Helper::DetectOS\n\ndescribe service(\"influxdb\") do\n it { should be_enabled }\n it { should be_running }\... | ruby | chosen |
[
{
"from": "system",
"value": "Add resource for redirect to search.maven.org\n"
},
{
"from": "human",
"value": "require 'sinatra'\nrequire_relative 'sonatype'\nrequire_relative 'shields'\n\nDEFAULT_SUBJECT = 'maven central'\nPROJECT_SITE = 'https://github.com/jirutka/maven-badges'\n\nconfigure :p... | ruby | chosen |
[
{
"from": "human",
"value": "Add CoreExt module inlcuded in Hash.\n"
},
{
"from": "gpt",
"value": "module Hashery\n\n # This module is included into Ruby's core Hash class.\n #\n # These method derive from Ruby Facets.\n module CoreExt\n\n #\n def to_h\n self\n end\n\n #\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add methods for rmagick compatability\n"
},
{
"from": "human",
"value": "module RFreeImage\n\tmodule ImageBPP\n\t\tGRAY = 8\n\t\tBGR = 24\n\t\tBGRA = 32\n\tend\n\tmodule Color\n\t\tBLUE = 0xff0000ff\n\t\tGREEN = 0xff00ff00\n\t\tRED = 0xffff0000\n\t\tYELLOW ... | ruby | chosen |
[
{
"from": "system",
"value": "Add back creation of mount point\n\nAccidentally removed in ad4b30dd\n"
},
{
"from": "human",
"value": "module VagrantPlugins\n module GuestFreeBSD\n module Cap\n class MountNFSFolder\n def self.mount_nfs_folder(machine, ip, folders)\n folde... | ruby | chosen |
[
{
"from": "system",
"value": "Use gif as podspec screenshot.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"ASCFlatUIColor\"\n s.version = \"0.1.0\"\n s.summary = \"A collection of all Flat UI Colors.\"\n s.homepage = \"https://gith... | ruby | chosen |
[
{
"from": "system",
"value": "Update tests to expect event data with Symbol keys\n"
},
{
"from": "human",
"value": "require_relative 'client_integration_init'\n\ncontext \"Write Batch of Events\" do\n message = EventStore::Messaging::Controls::Message.example\n\n stream_name = EventStore::Mess... | ruby | chosen |
[
{
"from": "system",
"value": "Switch AppCleaner to no checksum\n\n#2160 #2158"
},
{
"from": "human",
"value": "class Appcleaner < Cask\n url 'http://www.freemacsoft.net/downloads/AppCleaner_2.2.1.zip'\n homepage 'http://www.freemacsoft.net/appcleaner/'\n version '2.2.1'\n sha1 'd52dfbed99037... | ruby | chosen |
[
{
"from": "system",
"value": "Fix podfile HTTPS auth not working\n"
},
{
"from": "human",
"value": "#\n# Be sure to run `pod lib lint FWTDragView.podspec' to ensure this is a\n# valid spec and remove all comments before submitting the spec.\n#\n# Any lines starting with a # are optional, but enc... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bad require path on 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 'lib/zebra/zpl/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Data Science Studio to 2.2.2 and add gratis license\n"
},
{
"from": "human",
"value": "cask 'data-science-studio' do\n version '2.0.0'\n sha256 '97a2e10d14a26d337ba71170ddc5e4ad6e2b3eafe36adcd02048c7da2d402774'\n\n url \"https://downloads.dataiku.com/publi... | ruby | chosen |
[
{
"from": "system",
"value": "Change to new doc URL for 1.7.5\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"CloudMine\"\n s.version = \"1.7.5\"\n s.summary = \"The iOS Framework for interacting with the CloudMine platform.\"\n s.homepage = \"https... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude backtrace coming from this gem\n"
},
{
"from": "human",
"value": "module DidYouMean\n module NoMethodErrorExtension\n attr_reader :receiver\n\n def did_you_mean?\n return if similar_methods.empty?\n\n output = \"\\n\\n\"\n output << \"D... | ruby | chosen |
[
{
"from": "system",
"value": "Update account donation transaction detail report path\n"
},
{
"from": "human",
"value": "module Payments\n module Client\n class GetDonationTransactionDetailReport < Operation\n include GetOperation\n\n def path\n \"/settlements/{settlement_id}... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec s.source to point to original repo"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'DMCircularScrollView'\n s.version = '1.0.0' \n s.summary = 'Infinite/C... | ruby | chosen |
[
{
"from": "system",
"value": "Save searches by @searcher.keywords instead params\n"
},
{
"from": "human",
"value": "Spree::BaseController.class_eval do\n after_filter :save_search\n\n\n def save_search\n suggest_on = Spree::Suggestion::Config.field\n\n if @products.present? and params[su... | ruby | chosen |
[
{
"from": "system",
"value": "Add foreign key to user type table\n"
},
{
"from": "human",
"value": "class CreateUserTypes < ActiveRecord::Migration\n def change\n create_table :user_types do |t|\n t.string :type\n t.references :user\n\n t.timestamps null: false\n end\n end... | ruby | chosen |
[
{
"from": "system",
"value": "Use ruby 1.9 hash syntax\n"
},
{
"from": "human",
"value": "# Migration responsible for creating a table with activities\nclass CreateActivities < ActiveRecord::Migration\n # Create table\n def self.up\n create_table :activities do |t|\n t.belongs_to :trac... | ruby | chosen |
[
{
"from": "system",
"value": "Save to event log if relationship broken\n"
},
{
"from": "human",
"value": "class PeopleNetworkController < ApplicationController\n before_filter :authenticate_user!\n # TODO add some verification who can destroy people network\n\n def destroy\n @people_networ... | ruby | chosen |
[
{
"from": "system",
"value": "Return blank body for push events with no commits\n"
},
{
"from": "human",
"value": "class EventPresenter\n\n class PushEvent < PushSummaryEvent\n\n def action\n action_for_event(:event_pushed, :link => repository_link)\n end\n\n def repository_link\n... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure .byebugrc's don't interfere with tests\n"
},
{
"from": "human",
"value": "require 'byebug/interfaces/test_interface'\n\nmodule Byebug\n #\n # Extends Minitest's base test case and provides defaults for all tests.\n #\n class TestCase < Minitest::Test\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update chef client to 12.4.2\n"
},
{
"from": "human",
"value": "# Add the opscode APT source for chef\ndefault[:apt][:sources] = node[:apt][:sources] | [\"opscode\"]\n\n# Set the default server version\ndefault[:chef][:server][:version] = \"12.0.8-1\"\n\n# Set the d... | ruby | chosen |
[
{
"from": "system",
"value": "Update chef client to 12.17.44\n"
},
{
"from": "human",
"value": "# Add the opscode APT source for chef\ndefault[:apt][:sources] = node[:apt][:sources] | [\"opscode\"]\n\n# Set the default server version\ndefault[:chef][:server][:version] = \"12.9.1-1\"\n\n# Set the... | ruby | chosen |
[
{
"from": "system",
"value": "Add area field to initative table.\n"
},
{
"from": "human",
"value": "class InitiativesController < ApplicationController\n\n def index\n @initiatives = Initiative.all\n @initiatives_grid = InitiativesGrid.new(params[:initiatives_grid]) do |scope|\n scop... | ruby | chosen |
[
{
"from": "system",
"value": "Add license, vendor and zap for Coda 2.app\n"
},
{
"from": "human",
"value": "cask :v1 => 'coda' do\n version '2.5.7'\n sha256 '2140a24ba9aafd9526ae8279f9deca18e5ed01336bca43514c6d6cc5ce836139'\n\n url \"https://download.panic.com/coda/Coda%20#{version}.zip\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update pod spec with new version\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'RxAlamofire'\n\n s.version = '3.0.2'\n s.license = 'MIT'\n s.summary = 'RxSwift wrapper around the elegant HTTP networking in Swift Alamofire'\n s.homepage = 'h... | ruby | chosen |
[
{
"from": "system",
"value": "Add Chatto version in spec declaration\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"ChattoAdditions\"\n s.version = \"4.0.0\"\n s.summary = \"UI componentes for Chatto\"\n s.description = <<-DESC\n Tex... | ruby | chosen |
[
{
"from": "system",
"value": "JariBakken: Fix default URL in the Ruby Android driver.\n\ngit-svn-id: aa1aa1384423cb28c2b1e29129bb3a91de1d9196@13650 07704840-8298-11de-bf8c-fd130f914ac9\n"
},
{
"from": "human",
"value": "module Selenium\n module WebDriver\n module Android\n class Bridge ... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.