content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Ruby | Ruby | use ohai headers at the top of search results | c7e986d65e21e81a27c01ee4393ef6b897b91c03 | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def install
<ide> else
<ide> ofail e.message
<ide> query = query_regexp(e.name)
<del> puts "Searching formulae..."
<add> ohai "Searching formulae..."
<ide> puts_columns(search_formulae(query))
<del> puts "Searching taps.... | 2 |
Text | Text | add @coderigo for thanks! | e98c229e5aa86f0da872583c08f353d974d9cc98 | <ide><path>docs/topics/credits.md
<ide> The following people have helped make REST framework great.
<ide> * Pavel Zinovkin - [pzinovkin]
<ide> * Will Kahn-Greene - [willkg]
<ide> * Kevin Brown - [kevin-brown]
<add>* Rodrigo Martell - [coderigo]
<ide>
<ide> Many thanks to everyone who's contributed to the project.
<ide... | 1 |
Ruby | Ruby | move ar test classes inside the test case | 44e55510547f5aaea78f5f91b82dd3dc5e9bef54 | <ide><path>activerecord/test/cases/associations/eager_singularization_test.rb
<ide> require "cases/helper"
<ide>
<del>class Virus < ActiveRecord::Base
<del> belongs_to :octopus
<del>end
<del>class Octopus < ActiveRecord::Base
<del> has_one :virus
<del>end
<del>class Pass < ActiveRecord::Base
<del> belongs_to :bus
<... | 1 |
Text | Text | update docker pull examples | 32eff909b4d3072524041fffc9d43efe87d2116f | <ide><path>docs/reference/commandline/pull.md
<ide> Most of your images will be created on top of a base image from the
<ide> [Docker Hub](https://hub.docker.com) contains many pre-built images that you
<ide> can `pull` and try without needing to define and configure your own.
<ide>
<del>It is also possible to manuall... | 2 |
Python | Python | fix memoryerror on win32 | 8919cb46a4a937781b52c73818b69661bbdb12eb | <ide><path>numpy/core/tests/test_multiarray.py
<ide> def test_zeros_big(self):
<ide> for dt in types:
<ide> d = np.zeros((30 * 1024**2,), dtype=dt)
<ide> assert_(not d.any())
<add> # This test can fail on 32-bit systems due to insufficient
<add> # contiguous memory.... | 1 |
Ruby | Ruby | handle other pk types in postgresql gracefully | 0e00c6b296b48e35fc3997648561f5da7295098a | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> class TableDefinition < ActiveRecord::ConnectionAdapters::TableDefinition
<ide> # a record (as primary keys cannot be +nil+). This might be done via the
<ide> # +SecureRandom.uuid+ method and a +before_save+ callba... | 2 |
Go | Go | improve consistency in "skip" | a3948d17d330315c832112bfecfc15d5e19511b1 | <ide><path>integration/container/daemon_linux_test.go
<ide> import (
<ide> func TestContainerStartOnDaemonRestart(t *testing.T) {
<ide> skip.If(t, testEnv.IsRemoteDaemon, "cannot start daemon on remote test run")
<ide> skip.If(t, testEnv.DaemonInfo.OSType == "windows")
<del> skip.If(t, testEnv.IsRemoteDaemon(), "cann... | 12 |
Python | Python | use _validate_axis inside _ureduce | e3ed705e5d91b584e9191a20f3a4780d354271ff | <ide><path>numpy/lib/function_base.py
<ide> from numpy.core.numeric import (
<ide> ones, zeros, arange, concatenate, array, asarray, asanyarray, empty,
<ide> empty_like, ndarray, around, floor, ceil, take, dot, where, intp,
<del> integer, isscalar, absolute
<add> integer, isscalar, absolute, AxisError
<id... | 4 |
Text | Text | fix links to original converged repo | 51cf983eb3cf47ed31100480d88c2553b24c7dca | <ide><path>doc/tsc-meetings/2015-05-27.md
<ide>
<ide> Extracted from **tsc-agenda** labelled issues and pull requests prior to meeting.
<ide>
<del>### nodejs/node
<add>### nodejs/node-convergence-archive
<ide>
<del>* \[Converge\] timers: Avoid linear scan in `_unrefActive`. [#23](https://github.com/nodejs/node/issue... | 2 |
Text | Text | add link to the 30 free videos | f3fa414a8682e5ac1a5b683e10772a98e48ce1d8 | <ide><path>README.md
<ide> It is tiny (2kB) and has no dependencies.
<ide> [](https://discord.gg/0ZcbPKXt5bZ6au5t)
<ide> [ CacheKey(ctx context.Context, index int) (string, bool, error)
<ide> }
<ide>
<ide> if p.config != nil {
<del> return cacheKeyFromConfig(p.config).String(), true, nil
<add> k := cacheKeyFromConfig(p.config).String()
<add> if k =... | 1 |
Python | Python | update package import for logging connection | 0f9f53ea3f51a54b0d85d2a378ac2e3ff9f86a3d | <ide><path>libcloud/__init__.py
<ide> def enable_debug(fo):
<ide> :param fo: Where to append debugging information
<ide> :type fo: File like object, only write operations are used.
<ide> """
<del> from libcloud.common.base import (Connection,
<del> LoggingConnection)
... | 1 |
Javascript | Javascript | remove old unused code from pdfview.close() | 4737e1ad8ddb3995d673ae8e3f3f67d5d3020c94 | <ide><path>web/viewer.js
<ide> var PDFView = {
<ide> thumbsView.removeChild(thumbsView.lastChild);
<ide> }
<ide>
<del> if ('_loadingInterval' in thumbsView) {
<del> clearInterval(thumbsView._loadingInterval);
<del> }
<del>
<ide> var container = document.getElementById('viewer');
<ide> whil... | 1 |
Javascript | Javascript | simplify path handling | 1c2546050f91cc93dcd6960a4d317e3176b5b8aa | <ide><path>examples/spline/spline.js
<ide> var line = d3.svg.line()
<ide> .x(function(d) { return d[0]; })
<ide> .y(function(d) { return d[1]; });
<ide>
<del>function update() {
<del> var path = vis.selectAll("path")
<del> .data(points.length ? [points] : []);
<del>
<del> path.enter().append("svg:path")
<... | 1 |
Python | Python | prepare 1.0.5 pypi release | 4d404d1a5472bde5bef703bf8976022505d04ce9 | <ide><path>keras/__init__.py
<ide> from . import optimizers
<ide> from . import regularizers
<ide>
<del>__version__ = '1.0.4'
<add>__version__ = '1.0.5'
<ide><path>setup.py
<ide>
<ide>
<ide> setup(name='Keras',
<del> version='1.0.4',
<add> version='1.0.5',
<ide> description='Deep Learning for Python'... | 2 |
Python | Python | dump pod as yaml in logs for kubernetespodoperator | 719ae2bf6227894c3e926f717eb4dc669549d615 | <ide><path>airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
<ide> import re
<ide> from typing import Dict, List, Optional, Tuple
<ide>
<add>import yaml
<ide> from kubernetes.client import models as k8s
<ide>
<ide> from airflow.exceptions import AirflowException
<ide> def create_new_pod_for_operator(self,... | 2 |
Ruby | Ruby | convert checksum test to spec | 3bc0c6bd1a74fb5a77fdaca45543eca752eee64f | <ide><path>Library/Homebrew/test/checksum_spec.rb
<add>require "checksum"
<add>
<add>describe Checksum do
<add> describe "#empty?" do
<add> subject { described_class.new(:sha256, "") }
<add> it { is_expected.to be_empty }
<add> end
<add>
<add> describe "#==" do
<add> subject { described_class.new(:sha256, T... | 2 |
Javascript | Javascript | improve cache serialization by 30% | 3f378d9ff489b5534862cdebe4ef25b76294265f | <ide><path>lib/serialization/ObjectMiddleware.js
<ide> class ObjectMiddleware extends SerializerMiddleware {
<ide> };
<ide> this.extendContext(ctx);
<ide> const process = item => {
<del> // check if we can emit a reference
<del> const ref = referenceable.get(item);
<del>
<del> if (ref !== undefined) {
<del>... | 1 |
Python | Python | add note for the choice of num_levels - 2 | 800a4c00fbb5bd1827fc22978e4bc944960c14f6 | <ide><path>research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
<ide> def _compute_second_stage_input_feature_maps(self, features_to_crop,
<ide> box_levels = None
<ide> if num_levels != 1:
<ide> # If there are mutiple levels to select, get the box levels
<add> # unit_scale_index: num... | 1 |
Text | Text | add help on fixing ipv6 test failures | 6b4e413526c4305cd6c604072b8d3066519a549a | <ide><path>BUILDING.md
<ide> $ ./node ./test/parallel/test-stream2-transform.js
<ide> Remember to recompile with `make -j4` in between test runs if you change code in
<ide> the `lib` or `src` directories.
<ide>
<add>The tests attempt to detect support for IPv6 and exclude IPv6 tests if
<add>appropriate. If your main i... | 1 |
Text | Text | fix mtu option in documentation | e74a937b00af567b655c93224cc6a514f54e2b38 | <ide><path>docs/reference/commandline/network_create.md
<ide> equivalent docker daemon flags used for docker0 bridge:
<ide> | `com.docker.network.bridge.enable_ip_masquerade` | `--ip-masq` | Enable IP masquerading |
<ide> | `com.docker.network.bridge.enable_icc` | `--icc` | ... | 2 |
Python | Python | add s3_rgw_outscale provider | 2a450e4072c0468440877ec3decf3b21eaf369fa | <ide><path>libcloud/storage/drivers/s3.py
<ide> S3_AP_NORTHEAST_HOST = S3_AP_NORTHEAST1_HOST
<ide> S3_SA_EAST_HOST = 's3-sa-east-1.amazonaws.com'
<ide>
<add>S3_RGW_OUTSCALE_HOSTS_BY_REGION =\
<add> {'eu-west-1': 'osu.eu-west-1.outscale.com',
<add> 'eu-west-2': 'osu.eu-west-2.outscale.com',
<add> 'us-west-1'... | 3 |
Javascript | Javascript | match scottish gaelic months - | e19671f15adc57b1b060310e4bace8badc74d9e8 | <ide><path>src/lib/parse/regex.js
<ide> export var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:0
<ide> export var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
<ide>
<ide> // any word (or two) characters or numbers including two/three word month in arabic.
<del>export var ... | 1 |
PHP | PHP | remove ambiguity in exception message | 352095c0209948c83decffdba63eb723c706e91a | <ide><path>src/Illuminate/View/Factory.php
<ide> public function startPush($section, $content = '')
<ide> public function stopPush()
<ide> {
<ide> if (empty($this->pushStack)) {
<del> throw new InvalidArgumentException('Cannot end a section without first starting one.');
<add> thro... | 1 |
Ruby | Ruby | remove unneeded requires | 576fb33ba3c1cf0a0c3e83ffac56c46a83d7a57f | <ide><path>railties/lib/rails/application.rb
<ide> require "active_support/key_generator"
<ide> require "active_support/message_verifier"
<ide> require "active_support/encrypted_configuration"
<del>require "active_support/deprecation"
<ide> require "active_support/hash_with_indifferent_access"
<ide> require "active_sup... | 4 |
Text | Text | add missing verb | 980cb01a845d92656776fc95ff60a1225f6b3406 | <ide><path>docs/tutorial/tutorial.md
<ide> Square no longer keeps its own state; it receives its value from its parent `Boa
<ide>
<ide> ## Why Immutability Is Important
<ide>
<del>In the previous code example, I suggest using the `.slice()` operator to copy the `squares` array prior to making changes and to prevent m... | 1 |
Mixed | Ruby | add heif image types to variable content types | 87f37419c463e03cdfb73ac70ce87197c5f829f3 | <ide><path>activestorage/lib/active_storage/engine.rb
<ide> class Engine < Rails::Engine # :nodoc:
<ide> image/vnd.adobe.photoshop
<ide> image/vnd.microsoft.icon
<ide> image/webp
<add> image/avif
<add> image/heic
<add> image/heif
<ide> )
<ide>
<ide> config.active_storage.web_im... | 2 |
Javascript | Javascript | remove listeners on bind error | 115792dfde436354c82f38361cbff75ad226b8d0 | <ide><path>lib/dgram.js
<ide> Socket.prototype.bind = function(port_, address_ /* , callback */) {
<ide>
<ide> state.bindState = BIND_STATE_BINDING;
<ide>
<del> if (arguments.length && typeof arguments[arguments.length - 1] === 'function')
<del> this.once('listening', arguments[arguments.length - 1]);
<add> co... | 2 |
PHP | PHP | fix comment typo | 874f02c7590e9e299515fc4157cef364b5cae111 | <ide><path>laravel/uri.php
<ide> public static function current()
<ide> // and use the first one we encounter for the URI.
<ide> static::$uri = static::detect();
<ide>
<del> // If you ever encounter this error, please information the Laravel
<add> // If you ever encounter this error, please inform the nerdy Lara... | 1 |
Python | Python | remove redundant exception | 32a1f7ff2cfa88ca4c188656f970b5a9fc10a529 | <ide><path>airflow/models.py
<ide> def signal_handler(signum, frame):
<ide> else:
<ide> task_copy.execute(context=context)
<ide> task_copy.post_execute(context=context)
<del> except (Exception, StandardError, KeyboardInterrupt) as e:
<add> ... | 1 |
PHP | PHP | remove leading slash and extra brackets | 6cac4df0f66a8624eb553169291c2f09842120e1 | <ide><path>tests/Notifications/NotificationMailChannelTest.php
<ide> public function toMail($notifiable)
<ide> $mock = Mockery::mock(Illuminate\Contracts\Mail\Mailable::class);
<ide>
<ide> $mock->shouldReceive('send')->once()->with(Mockery::on(function ($mailer) {
<del> if (! ($mailer instan... | 1 |
Ruby | Ruby | use a single thread for all connectionpool reapers | 3e2e8eeb9ea552bd4782538cf9348455f3d0e14a | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
<ide> def initialize(pool, frequency)
<ide> @frequency = frequency
<ide> end
<ide>
<add> @@mutex = Mutex.new
<add> @@pools = {}
<add>
<add> def self.register_pool(pool, frequency) # :nodoc:
... | 1 |
Python | Python | fix a bunch of tyops | b52e27263f46c5afb326e6eb4ec78a7cb3d99cfd | <ide><path>libcloud/compute/drivers/gce.py
<ide> def __init__(self, id, name, cidr, driver, extra=None):
<ide>
<ide> def destroy(self):
<ide> """
<del> Destroy this newtwork
<add> Destroy this network
<ide>
<ide> :return: True if successful
<ide> :rtype: ``bool``
<ide> def _... | 1 |
Javascript | Javascript | add trailing dot to l and l | 1e96d877aa61aecd5fd85da4c00ff84e0ebe6df5 | <ide><path>src/locale/ko.js
<ide> export default moment.defineLocale('ko', {
<ide> longDateFormat : {
<ide> LT : 'A h:mm',
<ide> LTS : 'A h:mm:ss',
<del> L : 'YYYY.MM.DD',
<add> L : 'YYYY.MM.DD.',
<ide> LL : 'YYYY년 MMMM D일',
<ide> LLL : 'YYYY년 MMMM D일 A h:mm',
<ide> ... | 2 |
Text | Text | fix typo in 'integer' word | efa4e09efa9cd95c9737f4fccee60606e1820002 | <ide><path>curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/data-analysis-example-b.english.md
<ide> question:
<ide>
<ide> answers:
<ide> - |
<del> Retrieve a subset of rows and columns by supplying interger-location arguments.
<add> Retrieve a subset of rows ... | 1 |
Javascript | Javascript | update pane to use async showsavedialog | 95a994a1f856dbf01992bffc472e19fd926d8e91 | <ide><path>src/pane.js
<ide> class Pane {
<ide> // after the item is successfully saved, or with the error if it failed.
<ide> // The return value will be that of `nextAction` or `undefined` if it was not
<ide> // provided
<del> saveItemAs (item, nextAction) {
<add> async saveItemAs (item, nextAction) {
<... | 1 |
Ruby | Ruby | remove unused `buffer` class | cb5684831e30e133ea9d771d6354adaa7e0af8cc | <ide><path>Library/Homebrew/cask/lib/hbc/utils.rb
<ide>
<ide> BUG_REPORTS_URL = "https://github.com/caskroom/homebrew-cask#reporting-bugs".freeze
<ide>
<del>class Buffer < StringIO
<del> extend Predicable
<del>
<del> attr_predicate :tty?
<del>
<del> def initialize(tty = false)
<del> super()
<del> @tty = tty
... | 1 |
Javascript | Javascript | decrease expiration time of input updates | 708fa77a783bbe729cfcebdd513d23eafc455b8b | <ide><path>packages/react-reconciler/src/ReactFiberLane.js
<ide> function computeExpirationTime(lane: Lane, currentTime: number) {
<ide> const priority = return_highestLanePriority;
<ide> if (priority >= InputContinuousLanePriority) {
<ide> // User interactions should expire slightly more quickly.
<del> retu... | 1 |
Python | Python | change all features_to_crop into a list of tensors | 6ebbfe13afda1d38aaf8183cdd3558620ce8ef6b | <ide><path>research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
<ide> def __init__(self,
<ide> else:
<ide> self._first_stage_box_predictor_arg_scope_fn = (
<ide> first_stage_box_predictor_arg_scope_fn)
<del> def rpn_box_predictor_feature_extractor(rpn_features_to_crop):
<add> ... | 1 |
Ruby | Ruby | extend basic rendering, test it in railties | a2ca04bb3ac178bbe1503ac65dc88f5f3f8cb37f | <ide><path>actionpack/lib/action_controller/metal/rendering.rb
<ide> module BasicRendering
<ide> # :api: public
<ide> def render(*args, &block)
<ide> super(*args, &block)
<del> text = args.first[:text]
<del> if text.present?
<del> self.response_body = text
<add> opts = args.first
<ad... | 4 |
Ruby | Ruby | improve human_attribute_name performance | acbc39b66307870480422ff0d5d0279de42ac728 | <ide><path>activemodel/lib/active_model/translation.rb
<ide> def lookup_ancestors
<ide> ancestors.select { |x| x.respond_to?(:model_name) }
<ide> end
<ide>
<add> MISSING_TRANSLATION = Object.new # :nodoc:
<add>
<ide> # Transforms attribute names into a more human format, such as "First name"
<ide> ... | 1 |
Python | Python | fix ui redirect | 56e7555c42f013f789a4b718676ff09b4a9d5135 | <ide><path>airflow/www/views.py
<ide> def confirm(self):
<ide> task_id = args.get('task_id')
<ide> dag_run_id = args.get('dag_run_id')
<ide> state = args.get('state')
<del> origin = args.get('origin')
<add> origin = get_safe_url(args.get('origin'))
<ide>
<ide> if 'map_inde... | 1 |
Javascript | Javascript | add default option for platform.select | f30ab35e9278f120247f49d6a355e263cc357946 | <ide><path>Libraries/Utilities/Platform.android.js
<ide> const Platform = {
<ide> const constants = require('NativeModules').AndroidConstants;
<ide> return constants && constants.isTesting;
<ide> },
<del> select: (obj: Object) => obj.android,
<add> select: (obj: Object) => 'android' in obj ? obj.android : o... | 4 |
Java | Java | move state inside subscriber | c54b3220701735d3db7fb2f42559117413678c88 | <ide><path>rxjava-core/src/main/java/rx/operators/OperatorRetry.java
<ide> private static final int INFINITE_RETRY = -1;
<ide>
<ide> private final int retryCount;
<del> private final AtomicInteger attempts = new AtomicInteger(0);
<ide>
<ide> public OperatorRetry(int retryCount) {
<ide> this.ret... | 1 |
Python | Python | use correct connection id | 2a80e73d0038c7210966db4a2329874eab528820 | <ide><path>tests/core.py
<ide> def test_mysql_to_hive_partition(self):
<ide> sql = "SELECT * FROM baby_names LIMIT 1000;"
<ide> t = MySqlToHiveTransfer(
<ide> task_id='test_m2h',
<del> mysql_conn_id='airflow_db',
<add> mysql_conn_id='airflow_ci',
<id... | 1 |
PHP | PHP | fix another test | e2b8b9d2d7ff78297aae4c928d9cf1c60604408b | <ide><path>tests/TestCase/ORM/QueryTest.php
<ide> public function testSelectLargeNumbers()
<ide> ->first();
<ide> $this->assertNotEmpty($out, 'Should get a record');
<ide> // There will be loss of precision if too large/small value is set as float instead of string.
<del> $this->asser... | 1 |
Ruby | Ruby | use a url instead of an url everywhere | 6d133a482af2428cfb1b67714ce7ffcb5bbd5f29 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def define_url_helper(mod, route, name, opts, route_key, url_strategy)
<ide> if last.permitted?
<ide> args.pop.to_h
<ide> else
<del> raise Argum... | 3 |
Java | Java | update javadoc in extendedbeaninfo | fc859ffd6e0d5ca8e69b736bc93baf8081b89932 | <ide><path>spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java
<ide> * {@link Introspector#getBeanInfo(Class)}) by including non-void returning setter
<ide> * methods in the collection of {@link #getPropertyDescriptors() property descriptors}.
<ide> * Both regular and
<del> * <a href="http://d... | 2 |
Ruby | Ruby | require unzip to be installed | ddeadaefce845256be3371c0d914f73274586376 | <ide><path>Library/Homebrew/dev-cmd/pr-pull.rb
<ide> def download_artifact(url, dir, pr)
<ide> def pr_pull
<ide> args = pr_pull_args.parse
<ide>
<add> # Needed when extracting the CI artifact.
<add> ensure_executable!("unzip", reason: "extracting CI artifacts")
<add>
<ide> workflows = args.workflows.pr... | 1 |
Ruby | Ruby | drop unnecessary string conversion in skip_clean | 676f29d7578c7abf1493ee5c3edc4692f9315006 | <ide><path>Library/Homebrew/formula.rb
<ide> def skip_clean *paths
<ide> return
<ide> end
<ide>
<del> paths.each do |p|
<del> p = p.to_s unless p == :la # Keep :la in paths as a symbol
<del> skip_clean_paths << p
<del> end
<add> skip_clean_paths.merge(paths)
<ide> end
<id... | 1 |
Python | Python | handle capitalised extensions in list_pictures | 794f814343b655e01de73578d71e8b8a53523687 | <ide><path>keras/preprocessing/image.py
<ide> def load_img(path, grayscale=False, target_size=None,
<ide> def list_pictures(directory, ext='jpg|jpeg|bmp|png|ppm'):
<ide> return [os.path.join(root, f)
<ide> for root, _, files in os.walk(directory) for f in files
<del> if re.match(r'([\w]+\.(?:... | 1 |
Go | Go | add flusher check to utils.writeflusher | 3b05005a1262e53d042512e88c52a6dae0f2e93d | <ide><path>api/server/server.go
<ide> func (s *Server) postBuild(eng *engine.Engine, version version.Version, w http.R
<ide> }
<ide> }
<ide>
<del> stdout := engine.NewOutput()
<del> stdout.Set(utils.NewWriteFlusher(w))
<del>
<ide> if version.GreaterThanOrEqualTo("1.8") {
<ide> w.Header().Set("Content-Type", "app... | 2 |
Ruby | Ruby | adjust docs of create_or_find_by | 562972caa86feea056065d071ddf13ab9003effa | <ide><path>activerecord/lib/active_record/relation.rb
<ide> def find_or_create_by!(attributes, &block)
<ide> find_by(attributes) || create!(attributes, &block)
<ide> end
<ide>
<del> # Attempts to create a record with the given attributes in a table that has a unique constraint
<add> # Attempts to creat... | 1 |
Ruby | Ruby | use conditional instead of try | b08bf9979232f40309a826947f8ff85d8ccbaa8a | <ide><path>activerecord/lib/active_record/dynamic_finder_match.rb
<ide> def self.match(method)
<ide> klass = [FindBy, FindByBang, FindOrInitializeCreateBy].find do |klass|
<ide> klass.matches?(method)
<ide> end
<del> klass.try(:new, method)
<add> klass.new(method) if klass
<ide> end
<i... | 1 |
Python | Python | remove print statement | 2883ebfca266f7df9c15542f9b042479c5b94e5e | <ide><path>spacy/tests/regression/test_issue636.py
<ide> def test_issue636(EN, text):
<ide> doc1 = EN(text)
<ide> doc2 = Doc(EN.vocab)
<ide> doc2.from_bytes(doc1.to_bytes())
<del> print([t.lemma_ for t in doc1], [t.lemma_ for t in doc2])
<ide> assert [t.lemma_ for t in doc1] == [t.lemma_ for t in doc... | 1 |
Go | Go | fix non-tty run issue | 2eaa0a1dd7354e429c056d68515f903351e3eeb4 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdAttach(args ...string) error {
<ide> connections += 1
<ide> }
<ide> chErrors := make(chan error, connections)
<del> cli.monitorTtySize(cmd.Arg(0))
<add> if container.Config.Tty {
<add> cli.monitorTtySize(cmd.Arg(0))
<add> }
<ide> if splitStderr {
<ide> go fu... | 1 |
PHP | PHP | add additional test case for named parameters | cd68002246824b176112458c462f20b552b17ee8 | <ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php
<ide> public function testSecuredFormUrlIgnoresHost() {
<ide> $this->assertNotContains($expected, $result, 'URL is different');
<ide> }
<ide>
<add>/**
<add> * Ensure named parameters work correctly with hash generation.
<add> *
<add> * @return void
<add> ... | 1 |
PHP | PHP | fix chunk test when negative value | 57ba218e1dd4a543f24623b1b4e3e89b5e690469 | <ide><path>tests/Support/SupportCollectionTest.php
<ide> public function testChunkWhenGivenLessThanZero()
<ide>
<ide> $this->assertEquals(
<ide> [],
<del> $collection->chunk(0)->toArray()
<add> $collection->chunk(-1)->toArray()
<ide> );
<ide> }
<ide> | 1 |
Javascript | Javascript | move deflate logic in convertimgdatatopng | 94f1dde07d1a72232b699fcd38ffbf4efb7d2514 | <ide><path>src/display/svg.js
<ide> var convertImgDataToPng = (function convertImgDataToPngClosure() {
<ide> return (b << 16) | a;
<ide> }
<ide>
<add> /**
<add> * @param {Uint8Array} literals The input data.
<add> * @returns {Uint8Array} The DEFLATE-compressed data stream in zlib format.
<add> * This is... | 1 |
Python | Python | fix mappings of get_data_disks | 9c31df46bdc3aec4e7b300b0fd5db7dce712140d | <ide><path>libcloud/compute/drivers/ecs.py
<ide> def _get_data_disks(self, ex_data_disks):
<ide> mappings = {'size': 'Size',
<ide> 'category': 'Category',
<ide> 'snapshot_id': 'SnapshotId',
<del> 'disk_name': 'DiskName',
<add> 'name':... | 1 |
Text | Text | add missing entry in v6 changelog table | 289e53265a6657e42b9057c4ac9b90b5754db40a | <ide><path>doc/changelogs/CHANGELOG_V6.md
<ide> </tr>
<ide> <tr>
<ide> <td valign="top">
<add><a href="#6.10.0">6.10.0</a><br/>
<ide> <a href="#6.9.5">6.9.5</a><br/>
<ide> <a href="#6.9.4">6.9.4</a><br/>
<ide> <a href="#6.9.3">6.9.3</a><br/> | 1 |
Text | Text | correct vcbuild options for windows testing | ed9b6c1264a07084e44f1d269bfe82e0f1b37c74 | <ide><path>BUILDING.md
<ide> Prerequisites:
<ide> To run the tests:
<ide>
<ide> ```console
<del>> .\vcbuild test
<add>> .\vcbuild nosign test
<ide> ```
<ide>
<ide> To test if Node.js was built correctly:
<ide> $ ./configure --with-intl=full-icu --download=all
<ide> ##### Windows:
<ide>
<ide> ```console
<del>> .\vcbu... | 2 |
Javascript | Javascript | add buffering to randomint | 5dae7d67589c908a1fe672b084838c1397d00e54 | <ide><path>benchmark/crypto/randomInt.js
<add>'use strict';
<add>
<add>const common = require('../common.js');
<add>const { randomInt } = require('crypto');
<add>
<add>const bench = common.createBenchmark(main, {
<add> mode: ['sync', 'async-sequential', 'async-parallel'],
<add> min: [-(2 ** 47) + 1, -10_000, -100],
<... | 2 |
Python | Python | fix error in send_file helper | 92ce20eeacf5de24803abaf70a3658806fa4d74f | <ide><path>flask/helpers.py
<ide> def send_file(filename_or_fp, mimetype=None, as_attachment=False,
<ide> if mimetype is None:
<ide> if attachment_filename is not None:
<ide> raise ValueError(
<del> 'Unable to infer MIME-type from filename {!r}, please '
<del> ... | 2 |
Text | Text | add 1.0.1 to changelog | 7cf753f428ad70c04acd2648e7f329ee578f4fdd | <ide><path>CHANGELOG.md
<ide> All notable changes to this project will be documented in this file.
<ide> This project adheres to [Semantic Versioning](http://semver.org/).
<ide>
<add>## [1.0.1](https://github.com/rackt/redux/compare/v1.0.0...v1.0.1) - 2015/08/15
<add>
<add>* Fixes “process is not defined” on React Nat... | 1 |
PHP | PHP | fix boot on unserialize | 909ddcb8dd5a412b6f71ab45b8e784ee41188cb0 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> abstract class Model implements ArrayAccess, ArrayableInterface, JsonableInterfa
<ide> * @return void
<ide> */
<ide> public function __construct(array $attributes = array())
<add> {
<add> $this->bootIfNotBooted();
<add>
<add> $this->syncOriginal();
<add... | 2 |
Text | Text | add referecnes for translations | 1854725650012e8675882af33b836bcba41bf969 | <ide><path>threejs/lessons/threejs-fundamentals.md
<ide> see what you need to change. It would be too much work to maintain both an es6 m
<ide> version of this site so going forward this site will only show es6 module style. As stated elsewhere,
<ide> to support legacy browsers look into a <a href="https://babeljs.io">... | 1 |
Javascript | Javascript | fix lint errors | 880328bf6e1f709373e59e03549da562d4f5f197 | <ide><path>src/state-store.js
<ide> class StateStore {
<ide> }
<ide>
<ide> connect () {
<del> return this.dbPromise.then(db => !!db)
<add> return this.dbPromise.then((db) => !!db)
<ide> }
<ide>
<ide> save (key, value) {
<ide> return new Promise((resolve, reject) => {
<del> this.dbPromise.then(d... | 2 |
PHP | PHP | use string cast | f774693e4e57d74b316ab426e8a17142ff270468 | <ide><path>tests/TestCase/Error/Middleware/ErrorHandlerMiddlewareTest.php
<ide> public function testHandleRedirectException()
<ide> $result = $middleware->process($request, $handler);
<ide> $this->assertInstanceOf(ResponseInterface::class, $result);
<ide> $this->assertEquals(302, $result->getSta... | 1 |
Text | Text | add note regarding pushing release tags | 0d31293d4aa2c5a8e9de4e7ef446f2566def1908 | <ide><path>doc/releases.md
<ide> following command:
<ide> $ git push <remote> <vx.y.z>
<ide> ```
<ide>
<add>*Note*: Please do not push the tag unless you are ready to complete the
<add>remainder of the release steps.
<add>
<ide> ### 12. Set Up For the Next Release
<ide>
<ide> On release proposal branch, edit `src/nod... | 1 |
Python | Python | remove outdated comment | 7f93747602352758fb7df7be451c2cb69d8e7dad | <ide><path>keras/backend/theano_backend.py
<ide> def random_binomial(shape, p=0.0, dtype=_FLOATX, seed=None):
<ide> seed = np.random.randint(10e6)
<ide> rng = RandomStreams(seed=seed)
<ide> return rng.binomial(shape, p=p, dtype=dtype)
<del>
<del>'''
<del>more TODO:
<del>
<del>tensordot -> soon to be int... | 1 |
Text | Text | fix version history for loaders api | 0d58c0be3e1c3013959c02d42a2a2f21dd31c5f8 | <ide><path>doc/api/cli.md
<ide> Enable experimental `import.meta.resolve()` support.
<ide> ### `--experimental-loader=module`
<ide>
<ide> <!-- YAML
<del>added: v9.0.0
<add>added: v8.8.0
<add>changes:
<add> - version: v12.11.1
<add> pr-url: https://github.com/nodejs/node/pull/29752
<add> description: This flag w... | 2 |
Python | Python | fix border mode = same in conv2d | 6a4aab453f42bda2368e51bc707c22c40c384b34 | <ide><path>keras/layers/convolutional.py
<ide> def get_output(self, train):
<ide>
<ide> conv_out = theano.tensor.nnet.conv.conv2d(X, self.W,
<ide> border_mode=border_mode, subsample=self.subsample)
<del> output = self.activation(conv_out + self.b.dimshuffle('x', 0, 'x', 'x'))
<ide>
<ide> ... | 1 |
Text | Text | add v3.10.2 to changelog.md | 8ead9d08387c460c9d70079b5fbe8fc2bee2ef38 | <ide><path>CHANGELOG.md
<ide> - [#17940](https://github.com/emberjs/ember.js/pull/17940) [CLEANUP] Remove `sync` queue from @ember/runloop.
<ide> - [#18026](https://github.com/emberjs/ember.js/pull/18026) Enabling featured discussed in 2019-05-03 core team meeting.
<ide>
<add>### v3.10.2 (June 17, 2019)
<add>
<add>- [... | 1 |
PHP | PHP | add default parameters to route (fixes ) | 33c16b0c866b32911a1f6cc5cb6916d6d037e813 | <ide><path>src/Illuminate/Routing/Route.php
<ide> public function bindParameters(Request $request)
<ide> );
<ide> }
<ide>
<del> return $this->parameters = $this->replaceDefaults($params);
<add> return $this->parameters = $this->fillDefaults($this->replaceDefaults($params));
<ide> ... | 1 |
Ruby | Ruby | add missing require | 9143032a108bd41121337c82416ba90f460d8214 | <ide><path>activerecord/test/cases/associations/inner_join_association_test.rb
<ide> require 'models/author'
<ide> require 'models/category'
<ide> require 'models/categorization'
<add>require 'models/person'
<ide> require 'models/tagging'
<ide> require 'models/tag'
<ide> | 1 |
Javascript | Javascript | replace internal use of deprecated api | e10525f76e314369d3d3e2f943d2cc57de35736f | <ide><path>lib/internal/inspector/inspect_repl.js
<ide> function extractFunctionName(description) {
<ide> }
<ide>
<ide> const PUBLIC_BUILTINS = require('module').builtinModules;
<del>const NATIVES = PUBLIC_BUILTINS ? process.binding('natives') : {};
<add>const NATIVES = PUBLIC_BUILTINS ? internalBinding('natives') : {... | 1 |
Python | Python | add docstrings, error messages and fix consistency | 1694c24e5248d98befb323d6e9569213f4c86b2c | <ide><path>spacy/util.py
<ide> def get_lang_class(name):
<ide>
<ide>
<ide> def load_lang_class(lang):
<add> """Import and load a Language class.
<add>
<add> Args:
<add> lang (unicode): Two-letter language code, e.g. 'en'.
<add> Returns:
<add> Language: Language class.
<add> """
<ide> mod... | 1 |
Javascript | Javascript | add dynamic output for legacy challenges | 9a97d639f515c410aac208b4f424716e6c0d4d26 | <ide><path>client/src/templates/Challenges/utils/build.js
<ide> export function challengeHasPreview({ challengeType }) {
<ide> }
<ide>
<ide> export function isJavaScriptChallenge({ challengeType }) {
<del> return challengeType === challengeTypes.js;
<add> return (
<add> challengeType === challengeTypes.js ||
<add... | 1 |
Python | Python | pass options to route_for_task | 1b7a9f6187bfeae34b9abe38a721b0937ff08848 | <ide><path>celery/app/routes.py
<ide> def __init__(self, routes=None, queues=None,
<ide> def route(self, options, task, args=(), kwargs={}):
<ide> options = self.expand_destination(options) # expands 'queue'
<ide> if self.routes:
<del> route = self.lookup_route(task, args, kwargs)
<add> ... | 1 |
PHP | PHP | fix style ci | d3e10fc137d997015e888e098845d8493af617e8 | <ide><path>tests/Database/DatabaseEloquentMorphToTest.php
<ide>
<ide> namespace Illuminate\Tests\Database;
<ide>
<del>use Doctrine\Instantiator\Exception\InvalidArgumentException;
<ide> use Illuminate\Database\Eloquent\Builder;
<ide> use Illuminate\Database\Eloquent\Model;
<ide> use Illuminate\Database\Eloquent\Relat... | 2 |
Javascript | Javascript | use fipsmode instead of common.hasfipscrypto | c0acece7ed70b3584474d646fcb8ef93204540b6 | <ide><path>test/parallel/test-cli-node-print-help.js
<add>// Flags: --expose-internals
<ide> 'use strict';
<ide>
<ide> const common = require('../common');
<ide> const common = require('../common');
<ide>
<ide> const assert = require('assert');
<ide> const { exec } = require('child_process');
<add>const { internalBin... | 1 |
Python | Python | add morph rules | 29ad8143d877b9a1ce505bfd1ca391487c9dc24e | <ide><path>spacy/en/morph_rules.py
<add># encoding: utf8
<add>from __future__ import unicode_literals
<add>
<add>from ..symbols import *
<add>from ..language_data import PRON_LEMMA
<add>
<add>
<add>MORPH_RULES = {
<add> "PRP": {
<add> "I": {LEMMA: PRON_LEMMA, "PronType": "Prs", "Person": "One", "Nu... | 1 |
Text | Text | remove dco small patch exception | af72f2128e7c4ebd12a9fef7e7381ef42a52ed0c | <ide><path>CONTRIBUTING.md
<ide> Note that the old-style `Docker-DCO-1.1-Signed-off-by: ...` format is still
<ide> accepted, so there is no need to update outstanding pull requests to the new
<ide> format right away, but please do adjust your processes for future contributions.
<ide>
<del>#### Small patch exception
<d... | 1 |
Text | Text | add simple example to rename function | 1d2ab79f2ce0057df1c0f0fe5eef15c143ad9942 | <ide><path>doc/api/fs.md
<ide> changes:
<ide> * `callback` {Function}
<ide> * `err` {Error}
<ide>
<del>Asynchronous rename(2). No arguments other than a possible exception are given
<del>to the completion callback.
<add>Asynchronously rename file at `oldPath` to the pathname provided
<add>as `newPath`. In the case t... | 1 |
Java | Java | allow multiple locations via @propertysource#value | 2ceeff370aff402bd669f9125d93e99d09e8ce71 | <ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java
<ide> protected void doProcessConfigurationClass(ConfigurationClass configClass, Annot
<ide> metadata.getAnnotationAttributes(org.springframework.context.annotation.PropertySource.class.getName()... | 2 |
Text | Text | add link to webpack/webpacker pr | 061927b4a84770c71f26e706e8720e56eed32b58 | <ide><path>guides/source/5_1_release_notes.md
<ide> Rails 5.1 app.
<ide>
<ide> ### Optional Webpack support
<ide>
<add>[Pull Request](https://github.com/rails/rails/pull/27288)
<add>
<ide> Rails apps can integrate with [Webpack](https://webpack.js.org/), a JavaScript
<ide> asset bundler, more easily using the new [We... | 1 |
Javascript | Javascript | use ciphers supported by shared openssl | a974753676536e239fbd937e6ffebb74c84d7cbb | <ide><path>test/parallel/test-tls-ecdh-disable.js
<ide> const fs = require('fs');
<ide> const options = {
<ide> key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`),
<ide> cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`),
<del> ciphers: 'ECDHE-RSA-RC4-SHA',
<add> ciphers: 'ECDHE-RS... | 2 |
Javascript | Javascript | add test for bug | 3892df207d7a4a3babf5017a309263cceff48b65 | <ide><path>src/attributes.js
<ide> jQuery.extend({
<ide>
<ide> // Check form objects in IE (multiple bugs related)
<ide> if ( isFormObjects ) {
<del> // Returns undefined for empty string, which is the blank nodeValue in IE
<add> // Return undefined for empty string, which is the blank nodeValue in... | 2 |
Python | Python | specify dataset dtype | 8cbd0bd137d9f35c6e909cd602e6dde5866b8574 | <ide><path>tests/test_trainer.py
<ide> def test_trainer_with_datasets(self):
<ide> self.check_trained_model(trainer.model)
<ide>
<ide> # Can return tensors.
<del> train_dataset.set_format(type="torch")
<add> train_dataset.set_format(type="torch", dtype=torch.float32)
<ide> model =... | 1 |
Javascript | Javascript | improve regex matching in challenge controller | 24f4648760b273906561cf41284de7cf7d89f484 | <ide><path>controllers/challenge.js
<ide> exports.returnCurrentChallenge = function(req, res, next) {
<ide> exports.returnIndividualChallenge = function(req, res, next) {
<ide> var dashedName = req.params.challengeName;
<ide>
<del> var challengeName = /^(bonfire|waypoint|zipline|basejump)/.test(dashedName) ? dashed... | 1 |
Javascript | Javascript | remove react.createref api | a3a464c8fcd2fc9d04a5765f41f56315c12de44a | <ide><path>src/browser/ui/React.js
<ide> var ReactMount = require('ReactMount');
<ide> var ReactMultiChild = require('ReactMultiChild');
<ide> var ReactPerf = require('ReactPerf');
<ide> var ReactPropTypes = require('ReactPropTypes');
<del>var ReactRef = require('ReactRef');
<ide> var ReactServerRendering = require('Re... | 1 |
Ruby | Ruby | set default array to details | aaa0c3279745e3405bc3279924e41cb641e1af8e | <ide><path>activemodel/lib/active_model/errors.rb
<ide> def details
<ide> group_by_attribute.each do |attribute, errors|
<ide> hash[attribute] = errors.map(&:detail)
<ide> end
<del> hash
<add> DeprecationHandlingDetailsHash.new(hash)
<ide> end
<ide>
<ide> def group_by_attribute
<i... | 2 |
Javascript | Javascript | consolidate duplicated method | aa4e4d20a4ce1cd0f58560acffcb2f9f40e6ed47 | <ide><path>packages/ember-metal/lib/chains.js
<ide> ChainNode.prototype = {
<ide> }
<ide>
<ide> if (this._parent) {
<del> this._parent.chainWillChange(this, this._key, 1, events);
<add> this._parent.notifyChainChange(this, this._key, 1, events);
<ide> }
<ide> },
<ide>
<del> chainWillChange(ch... | 1 |
Python | Python | use celery.states constants in unittests | b8dc2c3b5bf7b8e5fb19c802977d90e355c1d337 | <ide><path>celery/tests/test_backends/test_amqp.py
<ide> from __future__ import with_statement
<ide>
<ide> import sys
<del>import unittest
<ide> import errno
<add>import unittest
<ide>
<ide> from django.core.exceptions import ImproperlyConfigured
<ide>
<del>from celery.backends.amqp import AMQPBackend
<add>from cele... | 10 |
PHP | PHP | apply style ci | 01d6896cb402d7b641c84ed8d541b1bc96af34ce | <ide><path>tests/Database/DatabaseEloquentModelTest.php
<ide> public function testDirtyAttributes()
<ide> $this->assertTrue($model->isDirty(['foo', 'bar']));
<ide> }
<ide>
<del> public function testDirtyOnCastOrDateAttributes(){
<add> public function testDirtyOnCastOrDateAttributes()
<add> {
<ide>... | 1 |
Javascript | Javascript | remove eslint comments and rename variables | 6cc74b038fa0d2e64e8060415487706117b4a77c | <ide><path>lib/internal/util/inspect.js
<ide> function formatPrimitive(fn, value, ctx) {
<ide> if (ctx.compact === false &&
<ide> ctx.indentationLvl + value.length > ctx.breakLength &&
<ide> value.length > kMinLineLength) {
<del> // eslint-disable-next-line max-len
<del> const minLineLength = ... | 1 |
Text | Text | fix broken link to database design book | b6e1586d382b7e1f8f27776c3f422ef59efcd33a | <ide><path>docs/recipes/structuring-reducers/PrerequisiteConcepts.md
<ide> Because of these rules, it's important that the following core concepts are full
<ide> - [Redux Without Profanity: Normalizr](https://tonyhb.gitbooks.io/redux-without-profanity/content/normalizer.html)
<ide> - [Querying a Redux Store](https://me... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.