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 |
|---|---|---|---|---|---|
Text | Text | update versions in updating.md for 2.0.0b1 release | 5ac1738d52840ac59f75bb93627d45ce22029409 | <ide><path>UPDATING.md
<ide> assists users migrating to a new version.
<ide> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
<ide> **Table of contents**
<ide>
<del>- [Airflow Master](#airflow-master)
<add>- [Airflow 2.0.0b1](#airflow-200b1)
<ide> - [Airflow 2.0.0a1](#airflow-200a1)
<ide> - [Airflow 1... | 1 |
Java | Java | initialize resourceurlprovider only once | 2bf6b41bcc02ac137d2fc4b2731057c55157d16f | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlProvider.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide... | 2 |
Javascript | Javascript | remove some unnecessary returns | 98dace337254ca1e26a35873afaa010be1ff3bf9 | <ide><path>src/config.js
<ide> export default class Config {
<ide> this.legacyScopeAliases = {}
<ide>
<ide> this.requestLoad = _.debounce(() => {
<del> return this.loadUserConfig()
<add> this.loadUserConfig()
<ide> }
<ide> , 100)
<ide>
<ide> const debouncedSave = _.debounce(() => {
<id... | 1 |
Java | Java | fix typo in mockfilterchain | 060b37ca8db5a3b822029800348a3fe0f0b1b15f | <ide><path>spring-orm/src/test/java/org/springframework/mock/web/MockFilterChain.java
<ide> /*
<del> * Copyright 2002-2009 the original author or authors.
<add> * Copyright 2002-2012 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not us... | 4 |
Python | Python | remove unused variable | 6f09be91e695d74f19aac084808b998ecf6eb24e | <ide><path>keras/preprocessing/image.py
<ide> def fit(self, x,
<ide> if self.zca_whitening:
<ide> flat_x = np.reshape(x, (x.shape[0], x.shape[1] * x.shape[2] * x.shape[3]))
<ide> num_examples = flat_x.shape[0]
<del> u, s, vt = linalg.svd(flat_x / np.sqrt(num_examples))
<del> ... | 1 |
Text | Text | fix broken prerequisite link | b21751da907cb2889aa9ca95ebf6c4c66e6131a6 | <ide><path>docs/sources/project/set-up-dev-env.md
<ide> You use the `docker` repository and its `Dockerfile` to create a Docker image,
<ide> run a Docker container, and develop code in the container. Docker itself builds,
<ide> tests, and releases new Docker versions using this container.
<ide>
<del>If you followed th... | 1 |
Python | Python | fix lgtm error display | 04962c0d17b82f349e0453b06b76d9f594e2b024 | <ide><path>data_structures/heap/binomial_heap.py
<ide> def deleteMin(self):
<ide> # No right subtree corner case
<ide> # The structure of the tree implies that this should be the bottom root
<ide> # and there is at least one other root
<del> if self.min_node.right == None:
<add> if... | 4 |
Ruby | Ruby | fix default formula prune | 0245b2cfea973c849f3bd7a8d4ab973dc466fe5f | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def expand_requirements
<ide>
<ide> if (req.optional? || req.recommended?) && build.without?(req)
<ide> Requirement.prune
<del> elsif req.build? && use_default_formula
<add> elsif req.build? && use_default_formula && req_dependency.... | 1 |
PHP | PHP | add throws tag to findorcreate | f0e2e64af8ccc689b9d62298d6de3c60d35a2c4d | <ide><path>src/ORM/Table.php
<ide> protected function _transactionCommitted($atomic, $primary)
<ide> * is persisted.
<ide> * @param array $options The options to use when saving.
<ide> * @return \Cake\Datasource\EntityInterface An entity.
<add> * @throws \Cake\ORM\Exception\PersistenceFailedExcepti... | 1 |
PHP | PHP | use consistent uppercase for doctype | 55e459049c09572998cbbb8e277224cf91cd4102 | <ide><path>src/Illuminate/Foundation/Exceptions/views/illustrated-layout.blade.php
<del><!doctype html>
<add><!DOCTYPE html>
<ide> <html lang="en">
<ide> <head>
<ide> <title>@yield('title')</title> | 1 |
Java | Java | inline disposability in obs.concatmap(completable) | 1b0cd2a40a45ec57e0b6ccf961f084a30c3165c7 | <ide><path>src/main/java/io/reactivex/internal/operators/observable/ObservableConcatMap.java
<ide> package io.reactivex.internal.operators.observable;
<ide>
<ide> import java.util.concurrent.Callable;
<del>import java.util.concurrent.atomic.AtomicInteger;
<add>import java.util.concurrent.atomic.*;
<ide>
<ide> import ... | 2 |
Python | Python | remove unused variables | d36d304657c2c86600e95d41f2b7324d14a029e9 | <ide><path>libcloud/loadbalancer/drivers/gogrid.py
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<ide>
<del>import os
<ide> import time
<ide>
<del>try:
<del> import json
<del>except ImportError:
<del> import simplejson
<del>
<ide> from libclou... | 1 |
PHP | PHP | apply fixes from styleci | 0798479b95fd241c829b0e36a1d6f8573a586738 | <ide><path>src/Illuminate/Testing/TestResponse.php
<ide> use Illuminate\Support\Traits\Tappable;
<ide> use Illuminate\Testing\Assert as PHPUnit;
<ide> use Illuminate\Testing\Constraints\SeeInOrder;
<del>use Illuminate\Testing\Fluent\Assert as FluentAssert;
<ide> use Illuminate\Testing\Fluent\AssertableJson;
<del>use Il... | 2 |
Python | Python | add variable definitions to usage example | 5591008d0f9c037156c7721d0874ee95d45a7196 | <ide><path>keras/optimizers/optimizer_v2/optimizer_v2.py
<ide> class OptimizerV2(tf.__internal__.tracking.Trackable):
<ide> opt = tf.keras.optimizers.SGD(learning_rate=0.1)
<ide> # `loss` is a callable that takes no argument and returns the value
<ide> # to minimize.
<add> var1 = tf.Variable(2.0)
<add> ... | 1 |
Javascript | Javascript | allow zero values for level and strategy | 95dcd11dde4fff1ad69b5b5bd9e6c55a9ff1c4a0 | <ide><path>lib/zlib.js
<ide> function Zlib(opts, mode) {
<ide> self.emit('error', error);
<ide> };
<ide>
<add> var level = exports.Z_DEFAULT_COMPRESSION;
<add> if (typeof opts.level === 'number') level = opts.level;
<add>
<add> var strategy = exports.Z_DEFAULT_STRATEGY;
<add> if (typeof opts.strategy === 'nu... | 1 |
Python | Python | use smaller tests for pr 10741 | 4bebf05532f466ffe81b95c8b25c23dd00867f30 | <ide><path>numpy/core/tests/test_scalar_methods.py
<ide> """
<ide> from __future__ import division, absolute_import, print_function
<ide>
<add>import os
<ide> import fractions
<add>import platform
<add>
<add>import pytest
<ide> import numpy as np
<ide>
<ide> from numpy.testing import (
<ide> dec
<ide> )
<ide>
<d... | 1 |
Javascript | Javascript | expose accessibility prop. fix | 4f187074bfc08ddf7a708475ec613bae454100b4 | <ide><path>Libraries/Components/Touchable/TouchableBounce.js
<ide> var TouchableBounce = React.createClass({
<ide> mixins: [Touchable.Mixin, NativeMethodsMixin],
<ide>
<ide> propTypes: {
<add> /**
<add> * When true, indicates that the view is an accessibility element. By default,
<add> * all the touchab... | 3 |
Javascript | Javascript | pass present moment to a calendar function | 980c2d976cb980ae492aaa2b24aa4c2548160661 | <ide><path>moment.js
<ide> diff < 1 ? 'sameDay' :
<ide> diff < 2 ? 'nextDay' :
<ide> diff < 7 ? 'nextWeek' : 'sameElse';
<del> return this.format(this.localeData().calendar(format, this));
<add> return this.format(this.localeData().calend... | 1 |
Ruby | Ruby | remove amd-power-gadget from prerelease exceptions | 9f9eaa3e6e0837b9bfc8661bbf818aa73ed8493f | <ide><path>Library/Homebrew/utils/shared_audits.rb
<ide> def github_release_data(user, repo, tag)
<ide> end
<ide>
<ide> GITHUB_PRERELEASE_ALLOWLIST = {
<del> "amd-power-gadget" => :all,
<ide> "elm-format" => "0.8.3",
<ide> "extraterm" => :all,
<ide> "freetube" => :all, | 1 |
Javascript | Javascript | fix template in ember.radiobutton | cd4b0b2c14c99c1c78e87c9014d4686b2b8d39af | <ide><path>packages/ember-handlebars/lib/controls/radio_button.js
<ide> Ember.RadioButton = Ember.View.extend({
<ide>
<ide> classNames: ['ember-radio-button'],
<ide>
<del> defaultTemplate: Ember.Handlebars.compile('<input type="radio" {{bindAttr disabled="disabled" name="group" value="val" checked="checked"}}>{{ti... | 1 |
Ruby | Ruby | add migrator class for migrating renamed formulae | 832c5875b01bf86652f53be1543742907da1febb | <ide><path>Library/Homebrew/migrator.rb
<add>require "formula"
<add>require "keg"
<add>require "tab"
<add>require "tap_migrations"
<add>
<add>class Migrator
<add> class MigratorNoOldnameError < RuntimeError
<add> def initialize(formula)
<add> super "#{formula.name} doesn't replace any formula."
<add> end
<a... | 1 |
Python | Python | fix imdb get_word_index documentation | 354bd35ff47aab7834c3576829dab5d3802fd41a | <ide><path>keras/datasets/imdb.py
<ide> def load_data(path='imdb.npz', num_words=None, skip_top=0,
<ide>
<ide>
<ide> def get_word_index(path='imdb_word_index.json'):
<del> """Retrieves the dictionary mapping word indices back to words.
<add> """Retrieves the dictionary mapping words to word indices.
<ide>
<ide... | 2 |
Javascript | Javascript | update morph of gltf2loader | ee87cc5c239c4286f558d5be1c0b30871bec78a2 | <ide><path>examples/js/loaders/GLTF2Loader.js
<ide> THREE.GLTF2Loader = ( function () {
<ide> var targets = primitive.targets;
<ide> var morphAttributes = geometry.morphAttributes;
<ide>
<add> morphAttributes.position = [];
<add> morphAttributes.normal = [];
<add>
<add> material.morphTa... | 1 |
Java | Java | remove unnecessary subscription | 6383157b2961749ab46b8d05653ffb5f757f0be8 | <ide><path>rxjava-core/src/main/java/rx/joins/JoinObserver1.java
<ide> import java.util.LinkedList;
<ide> import java.util.List;
<ide> import java.util.Queue;
<add>import java.util.concurrent.atomic.AtomicBoolean;
<add>
<ide> import rx.Notification;
<ide> import rx.Observable;
<del>import rx.subscriptions.SingleAssignm... | 2 |
Java | Java | add blank line between java and javax imports | deba2ed1b3d422bbdd86b8573402e5a1cb1eb699 | <ide><path>integration-tests/src/test/java/org/springframework/aop/framework/autoproxy/AdvisorAutoProxyCreatorIntegrationTests.java
<ide> import java.io.IOException;
<ide> import java.lang.reflect.Method;
<ide> import java.util.List;
<add>
<ide> import javax.servlet.ServletException;
<ide>
<ide> import org.junit.jupit... | 300 |
Mixed | Ruby | log a warning when running sqlite in production | ad6a62e4e68247411dba7e0700802d8d729c90ca | <ide><path>activerecord/CHANGELOG.md
<add>* Log a warning message when running SQLite in production
<add>
<add> Using SQLite in production ENV is generally discouraged. SQLite is also the default adapter
<add> in a new Rails application.
<add> For the above reasons log a warning message when running SQLite i... | 4 |
Python | Python | allow float in schedule value. closes | 7caafb4a6ce370a1045afad59ee7c08fec2aa8b2 | <ide><path>celery/schedules.py
<ide> def __ne__(self, other):
<ide>
<ide> def maybe_schedule(s, relative=False, app=None):
<ide> if s is not None:
<del> if isinstance(s, numbers.Integral):
<add> if isinstance(s, numbers.Number):
<ide> s = timedelta(seconds=s)
<ide> if isinstance(s... | 1 |
Python | Python | remove interdependency from openai tokenizer | bf7eb0c9b3c804f5314397c8a5473b2f8b98ef96 | <ide><path>src/transformers/models/openai/tokenization_openai.py
<ide> import json
<ide> import os
<ide> import re
<add>import unicodedata
<ide> from typing import Optional, Tuple
<ide>
<del>from ...tokenization_utils import PreTrainedTokenizer
<add>from ...tokenization_utils import PreTrainedTokenizer, _is_control, _... | 1 |
PHP | PHP | use a subquery to delete child records | e60ae26c16e3ca6c3cf1ea741fa612031cb39ac1 | <ide><path>src/ORM/Behavior/TreeBehavior.php
<ide> public function beforeDelete(Event $event, EntityInterface $entity)
<ide> $left = $entity->get($config['left']);
<ide> $right = $entity->get($config['right']);
<ide> $diff = $right - $left + 1;
<add> $primaryKey = $this->_getPrimaryKey();... | 2 |
Javascript | Javascript | fix outdated comment | 5a8c55f078fabe23c1c47ad3421899b445a83567 | <ide><path>lib/internal/bootstrap/node.js
<ide> // many dependencies are invoked lazily.
<ide> //
<ide> // Scripts run before this file:
<del>// - `lib/internal/bootstrap/context.js`: to setup the v8::Context with
<add>// - `lib/internal/per_context/setup.js`: to setup the v8::Context with
<ide> // Node.js-specific t... | 1 |
Ruby | Ruby | use system taps | ac2aabf287f177b3113acb6f29964528f1cadefa | <ide><path>Library/Homebrew/test/cmd/cask_spec.rb
<ide> describe "brew cask", :integration_test, :needs_macos, :needs_network do
<ide> describe "list" do
<ide> it "returns a list of installed Casks" do
<del> setup_remote_tap("homebrew/cask")
<add> setup_remote_tap "homebrew/cask"
<ide>
<ide> expe... | 2 |
PHP | PHP | add svg to image validation rule | 960d499924dfd8ee4b3889498246a37a6600725c | <ide><path>src/Illuminate/Validation/Validator.php
<ide> protected function validateActiveUrl($attribute, $value)
<ide> */
<ide> protected function validateImage($attribute, $value)
<ide> {
<del> return $this->validateMimes($attribute, $value, array('jpeg', 'png', 'gif', 'bmp'));
<add> return $this->validateMimes... | 2 |
Javascript | Javascript | add support for padding to treemap layout | 62bcec0998b153b078b31fc0a013b6e1c60d45f7 | <ide><path>d3.layout.js
<ide> d3.layout.treemap = function() {
<ide> var hierarchy = d3.layout.hierarchy(),
<ide> round = Math.round,
<ide> size = [1, 1], // width, height
<add> padding = d3_layout_treemapPadding, // top, right, bottom, left
<ide> sticky = false,
<ide> stickies,
<ide> ... | 4 |
Python | Python | fix screenshot generation for dumb terminal | 70065e656950a5948351164bb8f1c5454ed5b7f7 | <ide><path>scripts/ci/pre_commit/pre_commit_breeze_cmd_line.py
<ide> def print_help_for_all_commands():
<ide> env['RECORD_BREEZE_WIDTH'] = SCREENSHOT_WIDTH
<ide> env['RECORD_BREEZE_TITLE'] = "Breeze commands"
<ide> env['RECORD_BREEZE_OUTPUT_FILE'] = str(BREEZE_IMAGES_DIR / "output-commands.svg")
<add> en... | 1 |
Javascript | Javascript | fix a bug in circle-packing layout | f21d6b826bfdf74cfe43636e9755e66e0569759a | <ide><path>d3.layout.js
<ide> function d3_layout_packIntersects(a, b) {
<ide> var dx = b.x - a.x,
<ide> dy = b.y - a.y,
<ide> dr = a.r + b.r;
<del> return (dr * dr - dx * dx - dy * dy) > .001; // within epsilon
<add> return dr * dr - dx * dx - dy * dy > .001; // within epsilon
<ide> }
<ide>
<ide> funct... | 4 |
Ruby | Ruby | fix undefined method | 12070b4c0fd0f41151c10ad2322168e7aa30fa9e | <ide><path>Library/Homebrew/upgrade.rb
<ide> def check_installed_dependents(args:)
<ide> oh1 "Checking for dependents of upgraded formulae..." unless args.dry_run?
<ide> broken_dependents = CacheStoreDatabase.use(:linkage) do |db|
<ide> installed_formulae.flat_map(&:runtime_installed_formula_depende... | 1 |
Ruby | Ruby | fix typo in test method names. [ci skip] | b4b5af0342cdb5917d9342cd4da245f19c3b4025 | <ide><path>activerecord/test/cases/tasks/database_tasks_test.rb
<ide> def test_warning_for_remote_databases
<ide> ActiveRecord::Tasks::DatabaseTasks.drop_all
<ide> end
<ide>
<del> def test_creates_configurations_with_local_ip
<add> def test_drops_configurations_with_local_ip
<ide> @configurations... | 1 |
Python | Python | fix stateful metrics when passing dict to compile | adc321b4d7a4e22f6bdb00b404dfe5e23d4887aa | <ide><path>keras/engine/training.py
<ide> def compile(self, optimizer, loss=None, metrics=None, loss_weights=None,
<ide> nested_weighted_metrics = _collect_metrics(weighted_metrics, self.output_names)
<ide> self.metrics_updates = []
<ide> self.stateful_metric_names = []
<add> self.statefu... | 2 |
Text | Text | add section on remote coding jobs and job boards | 491b2e7c9c2f12583198f1b6d7df5acc83b939fd | <ide><path>guide/english/miscellaneous/getting-a-coding-job/index.md
<ide> I've found <a href='https://github.com/cassidoo/getting-a-gig' target='_blank' r
<ide> ## Pro tip:
<ide>
<ide> Like in any other industry or field, the hardest part is actually getting started. Do not worry too much and take action instead - th... | 1 |
PHP | PHP | add extra functions to user | f138f0f4fce63fdb371064a66a4c92226a8b1ace | <ide><path>app/models/User.php
<ide> public function getAuthPassword()
<ide> return $this->password;
<ide> }
<ide>
<add> /**
<add> * Get the token value for the "remember me" session.
<add> *
<add> * @return string
<add> */
<add> public function getRememberToken()
<add> {
<add> return $this->remember_token;
<a... | 1 |
PHP | PHP | fix invalid sql on paginated results | 4489522d1564a5b2cc58ff4d8f240f55fda2390a | <ide><path>src/ORM/EagerLoader.php
<ide> protected function _groupKeys($statement, $collectKeys)
<ide>
<ide> return $keys;
<ide> }
<add>
<add> /**
<add> * Clone hook implementation
<add> *
<add> * Clone the _matching eager loader as well.
<add> *
<add> * @return void
<add> */
<ad... | 4 |
Text | Text | add petkaantonov as collaborator | 3c8ae2d93492c8fff6a5085642a94e577b3e9995 | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Julian Duque** ([@julianduque](https://github.com/julianduque)) <julianduquej@gmail.com>
<ide> * **Johan Bergström** ([@jbergstroem](https://github.com/jbergstroem)) <bugs@bergstroem.nu>
<ide> * **Roman Reiss** (... | 1 |
Text | Text | minimize line length | 25242fe4e9649ecc5033510c408e6db5b6fe8bcc | <ide><path>docs/FAQ.md
<ide> will use a bottled version of $FORMULA, but
<ide> `brew install $FORMULA --enable-bar` will trigger a source build.
<ide> * The `--build-from-source` option is invoked.
<ide> * The environment variable `HOMEBREW_BUILD_FROM_SOURCE` is set.
<del>* The machine is not running a supported versio... | 1 |
Ruby | Ruby | test the verb method on the route, specifically | 23cfdd4b71e4284e3efb29a37b2260e2ec77ddc9 | <ide><path>actionpack/test/controller/resources_test.rb
<ide> def test_restful_routes_dont_generate_duplicates
<ide> routes.each do |route|
<ide> routes.each do |r|
<ide> next if route == r # skip the comparison instance
<del> assert_not_equal [route.conditions, route.path.spec.to_s], [... | 1 |
Go | Go | ignore vfs from warning | f88066fd43454be005ec303977ee45561f3436e6 | <ide><path>daemon/graphdriver/driver.go
<ide> func New(root string, options []string) (driver Driver, err error) {
<ide> func checkPriorDriver(name, root string) {
<ide> priorDrivers := []string{}
<ide> for prior := range drivers {
<del> if prior != name {
<add> if prior != name && prior != "vfs" {
<ide> if _, e... | 1 |
Ruby | Ruby | add dirty methods for store accessors | 61a39ffcc6614d4369f524b5687309d9f12f279f | <ide><path>activerecord/lib/active_record/store.rb
<ide> module ActiveRecord
<ide> # of the model. This is very helpful for easily exposing store keys to a form or elsewhere that's
<ide> # already built around just accessing attributes on the model.
<ide> #
<add> # Every accessor comes with dirty tracking method... | 3 |
Go | Go | camelize some snake_case variable names | a6da7f138c0b260d560c63e234c87db0f5c72bb1 | <ide><path>auth/auth.go
<ide> func LoadConfig(rootPath string) (*AuthConfig, error) {
<ide> return nil, err
<ide> }
<ide> arr := strings.Split(string(b), "\n")
<del> orig_auth := strings.Split(arr[0], " = ")
<del> orig_email := strings.Split(arr[1], " = ")
<del> authConfig, err := DecodeAuth(orig_auth[1])
<add> ori... | 6 |
Javascript | Javascript | fix path to results.json | cdfb06e38b311f8869241bfd1623aeece80e18d0 | <ide><path>dangerfile.js
<ide> function git(args) {
<ide>
<ide> for (let i = 0; i < baseArtifactsInfo.length; i++) {
<ide> const info = baseArtifactsInfo[i];
<del> if (info.path === 'home/circleci/project/scripts/results.json') {
<add> if (info.path === 'home/circleci/project/scripts/rollup/results... | 1 |
Javascript | Javascript | remove unnecessary parameter for assertcrypto() | 69674f4d3eb171024d2d6a3c5180f6ba1def6801 | <ide><path>lib/_tls_legacy.js
<ide> 'use strict';
<ide>
<del>require('internal/util').assertCrypto(exports);
<add>require('internal/util').assertCrypto();
<ide>
<ide> const assert = require('assert');
<ide> const EventEmitter = require('events');
<ide><path>lib/_tls_wrap.js
<ide> 'use strict';
<ide>
<del>require('in... | 6 |
PHP | PHP | fix namesapce in test | c9101668667c517bc1bdc5324283d4d4a3b159fa | <ide><path>tests/Testing/Console/RouteListCommandTest.php
<ide> <?php
<ide>
<del>namespace Illuminate\Tests\Testing;
<add>namespace Illuminate\Tests\Testing\Console;
<ide>
<ide> use Illuminate\Contracts\Routing\Registrar;
<ide> use Illuminate\Foundation\Auth\User;
<ide> public function testDisplayRoutesForCli()
<ide>... | 1 |
Ruby | Ruby | add option to downgrade from llvm to gcc | 14b3ea887a06a296d3c3c2cb48d7f06d302a94e5 | <ide><path>Library/Homebrew/brewkit.rb
<ide> def gcc_4_0_1
<ide> self['CC']='gcc-4.0'
<ide> self['CXX']='g++-4.0'
<ide> remove_from_cflags '-march=core2'
<add> self.O3
<ide> end
<ide> remove_from_cflags '-msse4.1'
<ide> remove_from_cflags '-msse4.2'
<ide> def O3
<ide> remove_from_... | 2 |
Python | Python | update deprecation message | 263369c559bf8e7f78390eacb07aafab2cec4a4a | <ide><path>numpy/lib/type_check.py
<ide> def asscalar(a):
<ide> """
<ide>
<ide> # 2018-10-10, 1.16
<del> warnings.warn('np.asscalar(a) will be removed in v1.18 of numpy, use '
<add> warnings.warn('np.asscalar(a) is deprecated since NumPy v1.16, use '
<ide> 'a.item() instead', Deprecatio... | 1 |
Text | Text | match docs to actual port range used in code | d6f4b2ebb40ac79c3ba21e7196bba3b83124cf16 | <ide><path>docs/sources/articles/networking.md
<ide> page. There are two approaches.
<ide> First, you can supply `-P` or `--publish-all=true|false` to `docker run`
<ide> which is a blanket operation that identifies every port with an `EXPOSE`
<ide> line in the image's `Dockerfile` and maps it to a host port somewhere ... | 3 |
Text | Text | fix newstate highlighting | 80ab0df0bbdc025d2f68ba946ce2eb1263aa91a2 | <ide><path>docs/basics/Reducers.md
<ide> You'll often find that you need to store some data, as well as some UI state, in
<ide> Now that we've decided what our state object looks like, we're ready to write a reducer for it. The reducer is a pure function that takes the previous state and an action, and returns the next... | 1 |
Text | Text | learn more about inflections[ci skip] | 01aeee8a918a456524036175287a3afe0c3d009b | <ide><path>guides/source/active_support_core_extensions.md
<ide> The method `pluralize` returns the plural of its receiver:
<ide> "equipment".pluralize # => "equipment"
<ide> ```
<ide>
<del>As the previous example shows, Active Support knows some irregular plurals and uncountable nouns. Built-in rules can be extended ... | 1 |
Python | Python | remove unused guesswordsize function | 0c8f13df8faa46714707581d97b237c0c4e6b157 | <ide><path>tools/utils.py
<ide> def GuessArchitecture():
<ide> return None
<ide>
<ide>
<del>def GuessWordsize():
<del> if '64' in platform.machine():
<del> return '64'
<del> else:
<del> return '32'
<del>
<del>
<ide> def IsWindows():
<ide> return GuessOS() == 'win32' | 1 |
Text | Text | add a guide article for the elm architecture | 6f4e23bf5557c093cb91f6c5feed7f005c014a84 | <ide><path>client/src/pages/guide/english/elm/architecture/index.md
<add>---
<add>title: Architecture
<add>---
<add>
<add>## Architecture
<add>
<add>The Elm architecture was the inspiration of the state-of-the-practice architecture in many web applications developed nowadays. It's based on some principles that are inhe... | 2 |
Ruby | Ruby | eliminate some conditionals | bff89a2022aedec60929f6d6744eefc84a5c102a | <ide><path>activerecord/lib/active_record/relation/merger.rb
<ide> def merged_wheres
<ide> # Remove equalities from the existing relation with a LHS which is
<ide> # present in the relation being merged in.
<ide> def reject_overwrites(lhs_wheres, rhs_wheres)
<del> seen = Set.new
<del> rh... | 1 |
Python | Python | fix adam import | 13336a61970ebd37d31bfb8da1e4db7db951410a | <ide><path>spacy/_ml.py
<ide> from thinc.neural.ops import NumpyOps, CupyOps
<ide> from thinc.neural.util import get_array_module, copy_array
<ide> from thinc.neural._lsuv import svd_orthonormal
<add>from thinc.neural.optimizers import Adam
<ide>
<ide> from thinc import describe
<ide> from thinc.describe import Dimens... | 1 |
Go | Go | remove usage of listenbuffer package | ca5795cef810c85f101eb0aa3efe3ec8d756490b | <ide><path>api/server/server.go
<ide> type Config struct {
<ide> // Server contains instance details for the server
<ide> type Server struct {
<ide> cfg *Config
<del> start chan struct{}
<ide> servers []*HTTPServer
<ide> routers []router.Router
<ide> }
<ide> type Addr struct {
<ide> // It allocates resources w... | 5 |
PHP | PHP | add a success notification to password remind | d7bed9ed1560d52dbe947482ee9a9859cfc51843 | <ide><path>src/Illuminate/Auth/Reminders/PasswordBroker.php
<ide> public function remind(array $credentials, Closure $callback = null)
<ide>
<ide> $this->sendReminder($user, $token, $callback);
<ide>
<del> return $this->redirect->refresh();
<add> return $this->redirect->refresh()->with('success', true);
<ide> }
... | 1 |
Ruby | Ruby | remove libpng and freetype blacklist | f15bef5831f6b57090a012974129a49bffb9a1a7 | <ide><path>Library/Homebrew/blacklist.rb
<ide> def blacklisted? name
<ide> However not all build scripts look for these hard enough, so you may need
<ide> to call ENV.libxml2 in your formula's install function.
<ide> EOS
<del> when 'freetype', 'libpng' then <<-EOS.undent
<del> Apple distributed #{name} ... | 1 |
PHP | PHP | simplify usage of parsedsn | 953b72c9c3c8151e4a923dd048007adafbac0c3f | <ide><path>src/Cache/Cache.php
<ide> */
<ide> class Cache {
<ide>
<del> use StaticConfigTrait {
<del> parseDsn as protected _parseDsn;
<del> }
<add> use StaticConfigTrait;
<ide>
<ide> /**
<ide> * Flag for tracking whether or not caching is enabled.
<ide> public static function remember($key, $callable, $config = '... | 5 |
Javascript | Javascript | avoid jqlite/jquery for upward dom traversal | c966876e571133184db0c0fdce4d9501589a7322 | <ide><path>src/ngAnimate/animateQueue.js
<ide> var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
<ide> parentElement = parentHost;
<ide> }
<ide>
<del> while (parentElement && parentElement.length) {
<add> parentElement = getDomNode(parentElement);
<add>
<add> w... | 1 |
Text | Text | add myles borins to release team | c22fe92c672e2d0e7cd04ff2c91df63764df7513 | <ide><path>README.md
<ide> Releases of Node.js and io.js will be signed with one of the following GPG keys:
<ide> * **Jeremiah Senkpiel** <fishrock@keybase.io> `FD3A5288F042B6850C66B31F09FE44734EB7990E`
<ide> * **James M Snell** <jasnell@keybase.io> `71DCFD284A79C3B38668286BC97EC7A07EDE3FC1`
<ide> * **Rod V... | 1 |
Javascript | Javascript | fix controller specific animations | d8ecf8bae5cb88f94c9efad26a91a916a3192fa1 | <ide><path>src/core/core.config.js
<ide> export default class Config {
<ide> */
<ide> datasetScopeKeys(datasetType) {
<ide> return cachedKeys(datasetType,
<del> () => [`datasets.${datasetType}`, `controllers.${datasetType}.datasets`, '']);
<add> () => [
<add> `datasets.${datasetType}`,
<add> ... | 1 |
Javascript | Javascript | add night mode to learn | 2312d5e82e96475d39bdf720972f715dc6d3516b | <ide><path>packages/learn/src/layouts/index.js
<ide> import ga from '../analytics';
<ide>
<ide> import Header from '../components/Header';
<ide> import DonationModal from '../components/Donation';
<del>import { fetchUser } from '../redux/app';
<add>import { fetchUser, userSelector } from '../redux/app';
<ide>
<ide> i... | 1 |
Ruby | Ruby | warn developers when uninstalling a dependency | 3c310b2e3dd7805b04f48507c65c2c0a856c2aa2 | <ide><path>Library/Homebrew/cmd/uninstall.rb
<ide> def uninstall
<ide> ARGV.kegs.group_by(&:rack)
<ide> end
<ide>
<del> if should_check_for_dependents?
<del> all_kegs = kegs_by_rack.values.flatten(1)
<del> return if check_for_dependents all_kegs
<del> end
<add> handle_unsatisfied_dependent... | 4 |
Java | Java | add more tracing to startup | 45636ed7f4bb584f650cd1a3c4d6c6463bcab633 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/XReactInstanceManagerImpl.java
<ide> import static com.facebook.react.bridge.ReactMarkerConstants.PROCESS_PACKAGES_START;
<ide> import static com.facebook.react.bridge.ReactMarkerConstants.RUN_JS_BUNDLE_END;
<ide> import static com.facebook.react.bridge.ReactMark... | 1 |
Javascript | Javascript | simplify impl by leveraging jquery | 66fdb36ecbe0ec58ba3367a585b506e11ca1c8ad | <ide><path>src/directives.js
<ide> angularDirective("ng:bind-attr", function(expression){
<ide> this.$watch(function(scope){
<ide> var values = scope.$eval(expression);
<ide> for(var key in values) {
<del> var value = compileBindTemplate(values[key])(scope, element),
<del> specialName ... | 1 |
Text | Text | update the return object.values & solution | 5503b54f8597b6473f8e08a39c0d0ca4f42b2590 | <ide><path>curriculum/challenges/english/10-coding-interview-prep/data-structures/perform-a-union-on-two-sets.md
<ide> assert(
<ide> );
<ide> ```
<ide>
<del>The union of `["a", "b", "c"]` and `["c", "d"]` should return `["a", "b", "c", "d"]`.
<add>The union of a Set containing values ["a", "b", "c"] and a Set containi... | 1 |
Text | Text | add teletype focus for the coming week | c302ed08da512ab7634ee56cf60dda88da22c16d | <ide><path>docs/focus/2018-03-12.md
<ide> - Continue packaging a bundled GPG distribution [atom/squeegpg-native](https://github.com/atom/squeegpg-native)
<ide> - Write the JavaScript side of GPG interaction (atom/squeegpg)
<ide> - Teletype
<add> - Open RFC for [streamlining collaboration set-up](https://github.com... | 1 |
PHP | PHP | apply fixes from styleci | eeceb4c254b7d52786ef5e5a4f829bc228c2dcb0 | <ide><path>src/Illuminate/Queue/Jobs/JobName.php
<ide>
<ide> namespace Illuminate\Queue\Jobs;
<ide>
<del>use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<ide>
<ide> class JobName | 1 |
Ruby | Ruby | add a formulary class for managing the formulae | ed4992f467e0c3b8b84959d279e2be9d8be25ab1 | <ide><path>Library/Homebrew/formula.rb
<ide> def initialize name
<ide> end
<ide>
<ide>
<add># The Formulary is the collection of all Formulae, of course.
<add>class Formulary
<add> # Returns all formula names as strings, with or without aliases
<add> def self.names with_aliases=false
<add> everything = (HOMEBREW... | 1 |
Python | Python | escape special characters in the object name | 829a43519438f2e7bb15ce26530f8adb47f3f2fa | <ide><path>libcloud/storage/drivers/s3.py
<ide>
<ide> import time
<ide> import httplib
<add>import urllib
<ide> import copy
<ide> import base64
<ide> import hmac
<ide> def delete_container(self, container):
<ide> return False
<ide>
<ide> def delete_object(self, obj):
<del> # TODO: escape object and... | 1 |
Python | Python | remove unneeded version checks | c92d924dd3dfa9eb97f65848e04ec9391709bc09 | <ide><path>numpy/core/code_generators/genapi.py
<ide> except ImportError:
<ide> import md5
<ide> md5new = md5.new
<del>if sys.version_info[:2] < (2, 6):
<del> from sets import Set as set
<add>
<ide> import textwrap
<ide>
<ide> from os.path import join
<ide><path>numpy/core/defchararray.py
<ide> def capitali... | 13 |
Text | Text | change var to const | 0e71e4264af70c56cca524b6404f2ff86e745b95 | <ide><path>guide/english/javascript/falsy-values/index.md
<ide> if (!variable) {
<ide> ## General Examples
<ide>
<ide> ```javascript
<del>var string = ""; // <-- falsy
<add>const string = ""; // <-- falsy
<ide>
<del>var filledString = "some string in here"; // <-- truthy
<add>const filledString = "some string in here... | 1 |
PHP | PHP | add mysql fulltext support | 36c99a358f19381f874185c8613c3748fae30dd9 | <ide><path>lib/Cake/Model/Datasource/Database/Mysql.php
<ide> public function index($model) {
<ide> $table = $this->fullTableName($model);
<ide> $old = version_compare($this->getVersion(), '4.1', '<=');
<ide> if ($table) {
<del> $indices = $this->_execute('SHOW INDEX FROM ' . $table);
<add> $indexes = $this->... | 4 |
PHP | PHP | strengthen typing in the new method | 0c86b956b51c465fcf2b865f12681855a8a2ca1c | <ide><path>src/View/Helper/FormHelper.php
<ide> public function getValueSources(): array
<ide> /**
<ide> * Extracts valid value sources.
<ide> *
<del> * @param string|string[] $sources A string or a list of strings identifying a source.
<add> * @param string[] $sources A a list of strings identify... | 1 |
Text | Text | add pretrain example | 543073bf9d998e5efaa1065a36c4eecef2f86668 | <ide><path>website/docs/api/cli.md
<ide> in the section `[paths]`.
<ide> > #### Example
<ide> >
<ide> > ```cli
<del>> $ python -m spacy train config.cfg --paths.train="./train" --paths.dev="./dev" --output output_dir
<add>> $ python -m spacy train config.cfg --output output_dir --paths.train="./train" --paths.dev="./de... | 1 |
Ruby | Ruby | fix empty url_for with nested modules #707 | b7889524bfe861e38aa7f384ed116f2b15068fe1 | <ide><path>actionpack/lib/action_controller/routing.rb
<ide> def generate(options, request)
<ide>
<ide> options = options.symbolize_keys
<ide> defaults = request.path_parameters.symbolize_keys
<del> options = defaults if options.empty? # Get back the current url if no options was passed
<del> ... | 2 |
Go | Go | add log entries for daemon startup/shutdown | 595987fd082165b0c5739993b374bb5b6fa3f466 | <ide><path>cmd/dockerd/daemon.go
<ide> func (cli *DaemonCli) start(opts *daemonOptions) (err error) {
<ide> return err
<ide> }
<ide>
<add> logrus.Info("Starting up")
<add>
<ide> cli.configFile = &opts.configFile
<ide> cli.flags = opts.flags
<ide>
<ide> func (cli *DaemonCli) start(opts *daemonOptions) (err error)... | 3 |
Text | Text | fix links to download parsey models | 9a463f1e8f75e4a95dca5dd4542ccde9aef37704 | <ide><path>syntaxnet/g3doc/universal.md
<ide> # Parsey Universal.
<ide>
<ide> A collection of pretrained syntactic models is now available for download at
<del>`http://download.tensorflow.org/models/<language>.zip`
<add>`http://download.tensorflow.org/models/parsey_universal/<language>.zip`
<ide>
<ide> After download... | 1 |
PHP | PHP | remove blank line | 1aeceec0a3550735728d122fa3bb3ec4994270cd | <ide><path>tests/TestCase/Database/ConnectionTest.php
<ide> class ConnectionTest extends TestCase
<ide> */
<ide> protected $nestedTransactionStates = [];
<ide>
<del>
<ide> public function setUp()
<ide> {
<ide> parent::setUp();
<ide><path>tests/TestCase/ORM/QueryTest.php
<ide> public function t... | 2 |
Text | Text | fix the instruction of running next | d9ea4ce3123bd6a764de16f3245bc88d206c08df | <ide><path>README.md
<ide> Install it:
<ide> $ npm install next --save
<ide> ```
<ide>
<add>and add a script to your package.json like this:
<add>
<add>```json
<add>{
<add> "scripts": {
<add> "start": "next"
<add> }
<add>}
<add>```
<add>
<ide> After that, the file-system is the main API. Every `.js` file becomes ... | 1 |
PHP | PHP | refactor the encryption class | f6aecf706a4022bed6b11929522664d1cebfee08 | <ide><path>system/crypt.php
<ide> private static function randomizer()
<ide> {
<ide> return MCRYPT_DEV_RANDOM;
<ide> }
<del> else
<del> {
<del> return MCRYPT_RAND;
<del> }
<add>
<add> return MCRYPT_RAND;
<ide> }
<ide>
<ide> /** | 1 |
Javascript | Javascript | update code style | 37777d7cb37de4a3fc1d59657e1a2392a8d47a5c | <ide><path>editor/js/Config.js
<ide> var Config = function () {
<ide> 'project/renderer/gammaOutput': false,
<ide> 'project/renderer/shadows': true,
<ide> 'project/renderer/showHelpers': true,
<del> 'project/renderer/sceneCameras': 'topRight',
<ide> 'project/renderer/showSceneCameras': true,
<ide>
<ide> 'pr... | 2 |
Python | Python | update logarithm docs as per theory. | c74cdc87822f62156db3e10e3bb566d54fa41745 | <ide><path>numpy/core/code_generators/ufunc_docstrings.py
<ide> def add_newdoc(place, name, doc):
<ide> -----
<ide> Logarithm is a multivalued function: for each `x` there is an infinite
<ide> number of `z` such that `exp(z) = x`. The convention is to return the
<del> `z` whose imaginary part lies in `[-... | 1 |
PHP | PHP | remove unused property | 9faec97267258d1c6b292c23a53c8285a2bd84cb | <ide><path>src/Console/ShellDispatcher.php
<ide> */
<ide> class ShellDispatcher {
<ide>
<del>/**
<del> * Contains command switches parsed from the command line.
<del> *
<del> * @var array
<del> */
<del> public $params = [];
<del>
<ide> /**
<ide> * Contains arguments parsed from the command line.
<ide> * | 1 |
Javascript | Javascript | fix banner for old node version | 523d39ad923ad67a8d6a61a217f1b4fd869e2a17 | <ide><path>local-cli/server/formatBanner.js
<ide> var BOTTOM_RIGHT = '\u2518';
<ide> function formatBanner(message, options) {
<ide> options = options || {};
<ide> _.defaults(options, {
<del> chalkFunction: (fn) => fn,
<add> chalkFunction: _.identity,
<ide> width: 80,
<ide> marginLeft: 0,
<ide> ma... | 1 |
Python | Python | add push_to_hub method to processors | 2d02f7b29b8c18a68260378246f9e26621021c30 | <ide><path>src/transformers/processing_utils.py
<ide> from pathlib import Path
<ide>
<ide> from .dynamic_module_utils import custom_object_save
<add>from .file_utils import PushToHubMixin, copy_func
<ide> from .tokenization_utils_base import PreTrainedTokenizerBase
<add>from .utils import logging
<ide>
<ide>
<add>lo... | 2 |
Text | Text | change the info to the same as in gitconfig | 1f93b63b11fabef5a8f252c149c2c641e21ae0d8 | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Sam Roberts** <vieuxtech@gmail.com> ([@sam-github](https://github.com/sam-github))
<ide> * **Wyatt Preul** <wpreul@gmail.com> ([@geek](https://github.com/geek))
<ide> * **Brian White** <mscdex@mscdex.net> (... | 1 |
Text | Text | fix typo in website readme.md | 37a3772fffe95737667bcea6721c9b839598ddc4 | <ide><path>website/README.md
<ide> For example:
<ide> +h(2, "link-id") Headline 2 with link to #link-id
<ide> ```
<ide>
<del>Code blocks are implemented using the `+code` or `+aside-code` (to display them in the sidebar). A `.` is added after the mixin call to preserve whitespace:
<add>Code blocks are implemented usin... | 1 |
Ruby | Ruby | move caskdependencies to its own file | 4216da7629c21be66e8cf609fdfbf133b1e6bc6f | <ide><path>Library/Homebrew/cask_dependent.rb
<add># An adapter for casks to provide dependency information in a formula-like interface
<add>class CaskDependent
<add> def initialize(cask)
<add> @cask = cask
<add> end
<add>
<add> def name
<add> @cask.token
<add> end
<add>
<add> def full_name
<add> @cask.fu... | 2 |
Text | Text | update jasmine link | 8192b8c27ff2e3165f022cbdf691b30e61986861 | <ide><path>docs/docs/09.4-test-utils.md
<ide> prev: class-name-manipulation.html
<ide> next: clone-with-props.html
<ide> ---
<ide>
<del>`React.addons.TestUtils` makes it easy to test React components in the testing framework of your choice (we use [Jasmine](http://pivotal.github.io/jasmine/) with [jsdom](https://githu... | 1 |
Javascript | Javascript | introduce 'statics' for class specification | 79b9d5af627a6f0e5c6c3496d7e3161df871f899 | <ide><path>src/core/ReactCompositeComponent.js
<ide> var SpecPolicy = keyMirror({
<ide> */
<ide> var ReactCompositeComponentInterface = {
<ide>
<del> /**
<del> * An array of Mixin objects to include when defining your component.
<del> *
<del> * @type {array}
<del> * @optional
<del> */
<del> mixins: SpecPo... | 2 |
Text | Text | fix copyright instructions | 6e21a15c5212c3d11bd48bf6e645acf33833af41 | <ide><path>CONTRIBUTING.md
<ide> If you are adding a new file it should have a header like this:
<ide>
<ide> ```
<ide> /**
<del> * Copyright 2016 Netflix, Inc.
<add> * Copyright (c) 2016-present, RxJava Contributors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may no... | 1 |
PHP | PHP | tweak a few mapping things | 46d7ce05617512b609dde4ca07d43f19413e5508 | <ide><path>src/Illuminate/Bus/Dispatcher.php
<ide> public function mapUsing(Closure $mapper)
<ide> * Map the command to a handler within a given root namespace.
<ide> *
<ide> * @param mixed $command
<del> * @param string $rootNamespace
<add> * @param string $commandNamespace
<add> * @param string $hand... | 1 |
Javascript | Javascript | use the same kind of strings for radio values | d51e7e86ffbb82f2912d3687ab160c4448a68b6d | <ide><path>src/core/annotation.js
<ide> class ButtonWidgetAnnotation extends WidgetAnnotation {
<ide> }
<ide> for (const key of normalAppearance.getKeys()) {
<ide> if (key !== "Off") {
<del> this.data.buttonValue = key;
<add> this.data.buttonValue = this._decodeFormValue(key);
<ide> ... | 2 |
Python | Python | add snapshots to demo code and a snapshot fix | ca96c9b659772d9fb22cd15219dc460a4f284c93 | <ide><path>demos/gce_demo.py
<ide> def main():
<ide> zones = gce.ex_list_zones()
<ide> display('Zones', zones)
<ide>
<add> snapshots = gce.ex_list_snapshots()
<add> display('Snapshots', snapshots)
<add>
<ide> # == Clean up any old demo resources ==
<ide> print('Cleaning up any "%s" resources:' % ... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.