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
Javascript
Javascript
allow setting map of controllers
cef3535c16d5b7825f797adc6705d61dad759796
<ide><path>src/ng/controller.js <ide> function $ControllerProvider() { <ide> * annotations in the array notation). <ide> */ <ide> this.register = function(name, constructor) { <del> controllers[name] = constructor; <add> if (isObject(name)) { <add> extend(controllers, name) <add> } else { <add>...
2
Java
Java
fix minor issue and polish
34c95034d8437249b573912aaf275c0a734b15a7
<ide><path>spring-websocket/src/main/java/org/springframework/sockjs/AbstractSockJsSession.java <ide> public void delegateMessages(String[] messages) throws Exception { <ide> } <ide> } <ide> <del> public void delegateError(Throwable ex) { <add> public void delegateError(Throwable ex) throws Exception { <ide> this...
10
Javascript
Javascript
remove unit tests
30e24e69a852e9efcdbb7c64e8e30d9370d44e70
<ide><path>test/unit/src/core/BufferAttribute.tests.js <ide> export default QUnit.module( 'Core', () => { <ide> <ide> } ); <ide> <del> QUnit.test( "setArray", ( assert ) => { <del> <del> var f32a = new Float32Array( [ 1, 2, 3, 4 ] ); <del> var a = new BufferAttribute( f32a, 2, false ); <del> <del> a.setArray...
2
Ruby
Ruby
require gpg and make it a module
51114139e1c6b442890adec620ffc42975e8fd30
<ide><path>Library/Homebrew/formula.rb <ide> require "tap" <ide> require "keg" <ide> require "migrator" <add>require "gpg" <ide> require "extend/ENV" <ide> <ide> # A formula provides instructions and metadata for Homebrew to install a piece <ide><path>Library/Homebrew/gpg.rb <ide> require "utils" <ide> <del>class Gpg...
2
Javascript
Javascript
fix profilingplugin for watch scenarios
718bd9bc1e8621146f7466e99cbab90b75a95b14
<ide><path>lib/debug/ProfilingPlugin.js <ide> class Profiler { <ide> * @returns {Trace} The trace object <ide> */ <ide> const createTrace = (fs, outputPath) => { <del> const trace = new Tracer({ <del> noStream: true <del> }); <add> const trace = new Tracer(); <ide> const profiler = new Profiler(inspector); <ide> i...
6
Python
Python
remove use of static link in rest api test
c8cea8e49b7327fc03dcf20419faf3012b1b9c45
<ide><path>tests/api_connexion/endpoints/test_mapped_task_instance_endpoint.py <ide> <ide> import pytest <ide> <add>from airflow.api_connexion.exceptions import EXCEPTIONS_LINK_MAP <ide> from airflow.models import TaskInstance <ide> from airflow.models.baseoperator import BaseOperator <ide> from airflow.models.dagbag...
1
Mixed
Ruby
handle nil translation key
b8b18bbfadd4339fc153d3749f3068cf5c697870
<ide><path>actionview/CHANGELOG.md <add>* The `translate` helper now resolves `default` values when a `nil` key is <add> specified, instead of always returning `nil`. <add> <add> *Jonathan Hefner* <add> <ide> * Add `config.action_view.image_loading` to configure the default value of <ide> the `image_tag` ...
3
Python
Python
fix experiment name
f296795268d1bf34af0d7ebbf2654dd65c653ba4
<ide><path>official/projects/longformer/longformer_experiments.py <ide> from official.nlp.data import sentence_prediction_dataloader <ide> from official.nlp.configs import bert <ide> from official.nlp.configs import encoders <del>import official.projects.longformer.sentence_prediction_with_load as sentence_prediction <...
1
PHP
PHP
fix cs error
311d7dc409dc189b0ab9c24d395f3d95f4565f68
<ide><path>src/Controller/Component/AuthComponent.php <ide> public function initialize(array $config) <ide> /** <ide> * Callback for Controller.startup event. <ide> * <del> * @param \Cake\Event\Event $event <del> * @return void <add> * @param \Cake\Event\Event $event Event instance. <add> ...
1
Javascript
Javascript
fix reference to distancebetweenpoints
02279b38fcf561224cca02f8eb5fc3131081f48a
<ide><path>src/core/core.tooltip.js <ide> var positioners = { <ide> var el = elements[i].element; <ide> if (el && el.hasValue()) { <ide> var center = el.getCenterPoint(); <del> var d = helpers.distanceBetweenPoints(eventPosition, center); <add> var d = helpers.math.distanceBetweenPoints(eventPosition, c...
1
Ruby
Ruby
remove incorrect comments
e38aa9d7464c6cfd851dd4436b67a858e4e899f3
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb <ide> def #{column_type}(*args, **options) <ide> # end <ide> # end <ide> # <del> # The table definitions <del> # The Columns are stored as a ColumnDefinition in the #columns attribute. <ide> class Ta...
1
Javascript
Javascript
allow small differences in offset.top
9f9e204bba41b7a9cde5ba7e065d817ef8b18c41
<ide><path>test/unit/offset.js <ide> QUnit.test( "fractions (see #7730 and #7885)", function( assert ) { <ide> <ide> result = div.offset(); <ide> <del> assert.equal( result.top, expected.top, "Check top" ); <add> // Support: Chrome 45-46+ <add> // In recent Chrome these values differ a little. <add> assert.ok( Math....
1
PHP
PHP
apply locatorawaretrait setter and getter
0cde5f8cf8568d3158216bd514a8348c9ca7031b
<ide><path>src/Console/Shell.php <ide> public function __construct(ConsoleIo $io = null) <ide> } <ide> $this->_io = $io ?: new ConsoleIo(); <ide> <del> $locator = $this->tableLocator() ? : 'Cake\ORM\TableRegistry'; <add> $locator = $this->getTableLocator() ? : 'Cake\ORM\TableRegistry'; <i...
7
Javascript
Javascript
use regex error check in test-crypto-random
c3cb0edd8d4202270d59c94083be5007f7870416
<ide><path>test/parallel/test-crypto-random.js <ide> const expectedErrorRegexp = /^TypeError: size must be a number >= 0$/; <ide> // length exceeds max acceptable value" <ide> assert.throws(function() { <ide> crypto.randomBytes((-1 >>> 0) + 1); <del>}, TypeError); <add>}, /^TypeError: size must be a number >= 0$/);
1
Python
Python
remove use of kwdict workaround fixed in py2.7
3ff387099dac98bc78d20f79b168ecc03f78327a
<ide><path>celery/canvas.py <ide> from operator import itemgetter <ide> from itertools import chain as _chain <ide> <del>from kombu.utils import cached_property, fxrange, kwdict, reprcall, uuid <add>from kombu.utils import cached_property, fxrange, reprcall, uuid <ide> <ide> from celery._state import current_app, get...
2
Python
Python
assign ips upon machine creation
92828734fc9576d943ae2d86397d90a70d12c88c
<ide><path>libcloud/compute/drivers/packet.py <ide> def create_node(self, name, size, image, location, <ide> # if project has been specified on initialization of driver, then <ide> # create on this project <ide> <del> import ipdb; ipdb.set_trace(); <ide> if self.project_id: <ide> ...
1
Python
Python
use import to find data package
797f286c388b4527e44d2e3513a69724f4cc7155
<ide><path>spacy/cli/link.py <ide> <ide> import pip <ide> from pathlib import Path <del>from distutils.sysconfig import get_python_lib <add>import importlib <ide> from .. import util <ide> <ide> <ide> def link(origin, link_name, force=False): <ide> symlink(origin, link_name, force) <ide> <ide> <del>def lin...
1
Ruby
Ruby
add cpu family for apple’s m1 soc
2a197af07610bb399ed87156062b13cd52e94b48
<ide><path>Library/Homebrew/extend/os/mac/hardware/cpu.rb <ide> def type <ide> end <ide> <ide> def family <del> case sysctl_int("hw.cpufamily") <del> when 0x73d67300 # Yonah: Core Solo/Duo <del> :core <del> when 0x426f69ef # Merom: Core 2 Duo <del> :core2 <del> ...
2
Javascript
Javascript
add post-commit hook
b38ac13f946ad305ead05a6a83511549db27322e
<ide><path>packages/react-devtools-shared/src/__tests__/profilingHostRoot-test.js <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @flow <add> ...
11
Python
Python
fix a minor typo in dispatch documentation
8ec4c73e9e9268e0c9e42ed000799f32b92745e8
<ide><path>numpy/doc/dispatch.py <ide> class to indicate that it would like to handle computations in a custom-defined <ide> ... return arr._i * arr._N <ide> ... <ide> >>> @implements(np.mean) <del>... def sum(arr): <add>... def mean(arr): <ide> ... "Implementation of np.mean for DiagonalArray objects" <ide> .....
1
Python
Python
use hints for sizeof checks, to speed things up
e122cedce5154ac7c4e9fb6cc8316d4574b7f071
<ide><path>numpy/core/setup.py <ide> def check_types(config_cmd, ext, build_dir): <ide> private_defines = [] <ide> public_defines = [] <ide> <add> # Expected size (in number of bytes) for each type. This is an <add> # optimization: those are only hints, and an exhaustive search for the size <add> # is...
1
Text
Text
add note about error banner on sign in
7e835bae1b442e059dea692a0525fe2885889fc1
<ide><path>docs/how-to-setup-freecodecamp-locally.md <ide> npm run seed <ide> # Restart the application <ide> npm run develop <ide> ``` <add> <add>If you can't sign in, and instead, you see a banner with an error message saying that it'll be reported to freeCodeCamp, please double-check that your local port 3000 is not...
1
Text
Text
improve language in python/commenting-code
1ce0aba1844edacba2a49f10b2f28ddb1c5d8c4e
<ide><path>guide/english/python/commenting-code/index.md <ide> --- <ide> title: Python Commenting Code <ide> --- <add> <ide> Comments are used to annotate, describe, or explain code that is complex or difficult to understand. Python will intentionally ignore comments when it compiles to bytecode by the interpreter. <a ...
1
Ruby
Ruby
avoid extra `show variables` in migration
57604cf24ce40a23de0e8d75fc366c24c9fe3aac
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb <ide> def column_exists?(table_name, column_name, type = nil, options = {}) <ide> checks = [] <ide> checks << lambda { |c| c.name == column_name } <ide> checks << lambda { |c| c.type == type } if type <de...
5
Go
Go
move base image selection to a utility function
96c522162634ff4d5e55ddf2ff841921a99b7b09
<ide><path>integration-cli/docker_cli_build_test.go <ide> func (s *DockerSuite) TestBuildEnvironmentReplacementUser(c *check.C) { <ide> func (s *DockerSuite) TestBuildEnvironmentReplacementVolume(c *check.C) { <ide> name := "testbuildenvironmentreplacement" <ide> <del> var baseImage, volumePath string <add> var volum...
2
Python
Python
release version 1.0
ed7549bb1af73a90d70d302806cd343805471a58
<ide><path>pytorch_transformers/__init__.py <del>__version__ = "0.7.0" <add>__version__ = "1.0.0" <ide> from .tokenization_bert import BertTokenizer, BasicTokenizer, WordpieceTokenizer <ide> from .tokenization_openai import OpenAIGPTTokenizer <ide> from .tokenization_transfo_xl import (TransfoXLTokenizer, TransfoXLCorp...
2
Python
Python
use best pickle protocol
847a39da9c7e214bdeef18fa3812218b53b37271
<ide><path>celery/worker/state.py <ide> <ide> from collections import defaultdict <ide> <add>from kombu.serialization import pickle_protocol <ide> from kombu.utils import cached_property <ide> <ide> from celery import __version__ <ide> class Persistent(object): <ide> <ide> """ <ide> storage = shelve <add> ...
1
Text
Text
add missing period
a3c0c8fb90f084d494cdf46551c8a6228ca5ffd0
<ide><path>docs/api-guide/generic-views.md <ide> You can then simply apply this mixin to a view or viewset anytime you need to ap <ide> serializer_class = UserSerializer <ide> lookup_fields = ('account', 'username') <ide> <del>Using custom mixins is a good option if you have custom behavior that needs ...
1
Java
Java
add native module overriding
9e30c3b218c08afb51ae0e274f15422b9bcca480
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java <ide> public void initialize() { <ide> // do nothing <ide> } <ide> <add> @Override <add> public boolean canOverrideExistingModule() { <add> return false; <add> } <add> <ide> @Override <ide> public void onCatalystInstanc...
3
Text
Text
add bit about the engines field
ab9cc75f8b09b5b167dbc02c63d8223e3d0f257b
<ide><path>docs/upgrading/upgrading-your-package.md <ide> Would be replaced by this: <ide> <ide> You wrote specs, right!? Here's where they shine. Run them with `cmd-shift-P`, and search for `run package specs`. It will show all the deprecation messages and errors. <ide> <add>### Update the engines field in package.j...
1
PHP
PHP
add more quotes
9693cedbfc1fb0e38a8e688375e5b2ce5273b75f
<ide><path>src/Illuminate/Foundation/Inspiring.php <ide> public static function quote() <ide> 'I begin to speak only when I am certain what I will say is not better left unsaid - Cato the Younger', <ide> 'Order your soul. Reduce your wants. - Augustine', <ide> 'Be present above all e...
1
Javascript
Javascript
add another test for
432578ef03fc1dbae8b00eae3e96bfb541f8efa3
<ide><path>src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js <ide> describe('ReactDOMInput', function() { <ide> 'set value', <ide> ]); <ide> }); <add> <add> it('sets value properly with type coming later in props', function() { <add> var input = ReactTestUtils.renderIntoDocument( <add> ...
1
Python
Python
add kubernetesnamespace class
c863fd688679fb1ee03546268b6f100e335f8af7
<ide><path>libcloud/container/drivers/kubernetes.py <ide> def __init__( <ide> self.extra = extra <ide> <ide> <add>class KubernetesNamespace(ContainerCluster): <add> """ <add> A Kubernetes namespace <add> """ <add> <add> <ide> class KubernetesContainerDriver(KubernetesDriverMixin, ContainerDriver): <i...
1
Text
Text
fix code indentation and improve formatting
1365af18369ba8b80bac94a0a2e15bb55d843741
<ide><path>guides/source/getting_started.md <ide> something went wrong. To do that, you'll modify <ide> <ide> ```html+erb <ide> <%= form_for :article, url: articles_path do |f| %> <add> <ide> <% if @article.errors.any? %> <del> <div id="error_explanation"> <del> <h2><%= pluralize(@article.errors.count, "error") ...
1
Go
Go
fix some typos
c8c7a3ff2112a1b17a06fc02633ed7b49a8aebf3
<ide><path>cli/command/registry/search.go <ide> func runSearch(dockerCli *command.DockerCli, opts searchOptions) error { <ide> return nil <ide> } <ide> <del>// SearchResultsByStars sorts search results in descending order by number of stars. <add>// searchResultsByStars sorts search results in descending order by num...
2
Ruby
Ruby
fix typo in collection proxy
7dae39a743c4592cfce31152d501d1d2f30bb55c
<ide><path>activerecord/lib/active_record/associations/collection_proxy.rb <ide> class CollectionProxy < Relation <ide> # :call-seq: <ide> # delete_all() <ide> # <del> # Deletes all the records from the collection. For +has_many+ asssociations, <add> # Deletes all the records from the coll...
1
Go
Go
add a new request package in integration-cli
d69d4799a312dfcae63442e290ae6667afd1a038
<ide><path>integration-cli/daemon/daemon.go <ide> package daemon <ide> <ide> import ( <ide> "bytes" <del> "crypto/tls" <ide> "encoding/json" <ide> "fmt" <ide> "io" <ide> "io/ioutil" <del> "net" <ide> "net/http" <del> "net/http/httputil" <del> "net/url" <ide> "os" <ide> "os/exec" <ide> "path/filepath" <ide> im...
32
Python
Python
fix default getattr
9e5b549b4d47678bdc74bc8f650e82cf25bfc245
<ide><path>tests/test_modeling_common.py <ide> def test_determinism(self): <ide> <ide> def test_attention_outputs(self): <ide> config, inputs_dict = self.model_tester.prepare_config_and_inputs_for_common() <del> seq_len = self.model_tester.seq_length <add> seq_len = getattr(self.model_tester,...
1
Javascript
Javascript
make sourcemap updates in two .replace() passes
37f1da6b91a86ef3f54f4cf16dd87f5afd33c835
<ide><path>build/release/cdn.js <ide> function makeReleaseCopies( Release ) { <ide> <ide> // Map files need to reference the new uncompressed name; <ide> // assume that all files reside in the same directory. <del> // "file":"jquery.min.js","sources":["jquery.js"] <add> // "file":"jquery.min.js" ... "sources...
1
Python
Python
choose framework for onnx export
37a9fc49f210470804b2d59247a896aa3340f6b7
<ide><path>src/transformers/onnx/__main__.py <ide> def main(): <ide> parser.add_argument( <ide> "--atol", type=float, default=None, help="Absolute difference tolerence when validating the model." <ide> ) <add> parser.add_argument( <add> "--framework", type=str, choices=["pt", "tf"], default="p...
2
Python
Python
move version check to a function
f175abc3457b6c8aec01a8b5c53adc8de5a4111d
<ide><path>official/utils/logs/mlperf_helper.py <ide> def unparse_line(parsed_line): # type: (ParsedLine) -> str <ide> def get_mlperf_log(): <ide> """Shielded import of mlperf_log module.""" <ide> try: <del> import pkg_resources <ide> import mlperf_compliance <ide> <del> version = pkg_resources.get_distr...
1
Text
Text
add tips for succesful changes
59e1d579e09b56cd909655fdefb405f0eb02b086
<ide><path>CONTRIBUTING.md <ide> committing your changes. Most editors have plug-ins that do this automatically. <ide> Pull request descriptions should be as clear as possible and include a reference <ide> to all the issues that they address. <ide> <add>### Successful Changes <add> <add>Before contributing large or hi...
1
Javascript
Javascript
unify some of the getter/no-getter logic
58580a70282b78d24b78c7fc39d86cd90565c41e
<ide><path>packages/ember-metal/lib/platform.js <ide> if (!platform.create) { <ide> platform.create.isSimulated = true; <ide> } <ide> <add>Object.defineProperty = null; <ide> /** @private */ <ide> var defineProperty = Object.defineProperty; <ide> var canRedefineProperties, canDefinePropertyOnDOM; <ide> if (!platform...
4
Javascript
Javascript
remove console log from planegeometry
dd74de1edfd027eb413cf01b8b5422567489a688
<ide><path>src/extras/geometries/PlaneGeometry.js <ide> <ide> THREE.PlaneGeometry = function ( width, height, widthSegments, heightSegments ) { <ide> <del> console.log( 'THREE.PlaneGeometry: Consider using THREE.PlaneBufferGeometry for lower memory footprint.' ); <del> <ide> THREE.Geometry.call( this ); <ide> <ide>...
1
Ruby
Ruby
use `-s` flag in `uname` call
b0668f4e312c4890972768915233a56fc395e691
<ide><path>Library/Homebrew/os.rb <ide> def self.kernel_version <ide> # @api public <ide> sig { returns(String) } <ide> def self.uname <del> @uname ||= Utils.safe_popen_read("uname").chomp <add> @uname ||= Utils.safe_popen_read("uname", "-s").chomp <ide> end <ide> <ide> ::OS_VERSION = ENV["HOMEBREW_OS_...
1
Java
Java
introduce failing @disabled test for gh-23856
f8b875d2d8a6ad4462a8b28cbeae4e40e400c087
<ide><path>spring-core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java <ide> import javax.annotation.ParametersAreNonnullByDefault; <ide> <ide> import org.junit.jupiter.api.BeforeEach; <add>import org.junit.jupiter.api.Disabled; <ide> import org.junit.jupiter.api.Test; <ide> <ide> import o...
1
Go
Go
copy parents cpus and mems for cpuset
3de15bda7e1d3ab193094e6e07a5b2e42ea828bd
<ide><path>pkg/cgroups/fs/apply_raw.go <ide> func GetStats(c *cgroups.Cgroup, subsystem string, pid int) (map[string]float64, <ide> return sys.Stats(d) <ide> } <ide> <del>func (raw *data) path(subsystem string) (string, error) { <add>func (raw *data) parent(subsystem string) (string, error) { <ide> initPath, err := ...
2
Text
Text
fix double word 'be' [ci skip]
1c44d968679674efa61073b42737e1f1efea7f97
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> config.active_record.auto_explain_threshold_in_seconds = 0.5 <ide> <ide> ### config/environments/test.rb <ide> <del>The `mass_assignment_sanitizer` configuration setting should also be be added to `config/environments/test.rb`: <add>The `mass_assignment_saniti...
1
PHP
PHP
add forgetuser() method to guardhelpers
73685ff12821f7491c506bc78e91b0c917dfa75a
<ide><path>src/Illuminate/Auth/GuardHelpers.php <ide> public function setUser(AuthenticatableContract $user) <ide> return $this; <ide> } <ide> <add> /** <add> * Forget the user. <add> * <add> * @return void <add> */ <add> public function forgetUser() <add> { <add> $this->use...
3
Ruby
Ruby
address new cop offence in railties
23392eff9f8065475739e58232a5db97604f8056
<ide><path>railties/test/generators/actions_test.rb <ide> def test_environment_with_block_should_include_block_contents_in_environment_ini <ide> run_generator <ide> <ide> action :environment do <del> _ = "# This wont be added"# assignment to silence parse-time warning "unused literal ignored" <add> _...
1
Python
Python
fix redacting secrets in context exceptions.
6df3ee7997e335eb7d353d4ec0f5c2dd3a0e0d26
<ide><path>airflow/utils/log/secrets_masker.py <ide> def _record_attrs_to_ignore(self) -> Iterable[str]: <ide> ) <ide> return frozenset(record.__dict__).difference({'msg', 'args'}) <ide> <add> def _redact_exception_with_context(self, exception): <add> exception.args = (self.redact(v) for v in...
2
Javascript
Javascript
put deprecation warning for classset
835316bc1351dcf4d849a27c44a1a7c1b6f7bda4
<ide><path>src/core/__tests__/ReactCompositeComponent-test.js <ide> var ReactPropTypes; <ide> var ReactServerRendering; <ide> var ReactTestUtils; <ide> <del>var cx; <ide> var reactComponentExpect; <ide> var mocks; <ide> <ide> describe('ReactCompositeComponent', function() { <ide> <ide> beforeEach(function() { <del...
2
Python
Python
replace assignment with augmented assignment
d5c185aec14506c3f53fbae58c499083a7d5d2db
<ide><path>glances/outputs/glances_curses.py <ide> def display_plugin(self, plugin_stats, <ide> # New line <ide> if m['msg'].startswith('\n'): <ide> # Go to the next line <del> y = y + 1 <add> y += 1 <ide> # Return to the first column...
2
Javascript
Javascript
kill subprocess only after last ack
94be2b17938d5ecdf1d40317d0bdee46906bfe4b
<ide><path>test/parallel/test-child-process-send-returns-boolean.js <ide> 'use strict'; <ide> const common = require('../common'); <add> <add>// subprocess.send() will return false if the channel has closed or when the <add>// backlog of unsent messages exceeds a threshold that makes it unwise to send <add>// more. Oth...
1
Python
Python
add ctc_decode to numpy backend
b7fad0752779177e0968f93832d8a5b302236a7d
<ide><path>tests/keras/backend/backend_test.py <ide> def test_ctc_decode_greedy(self): <ide> for t in range(max_time_steps)] <ide> <ide> # change tensorflow order to keras backend order <del> inputs = K.variable(np.asarray(inputs).transpose((1, 0, 2))) <del> # batch_size length ...
2
Ruby
Ruby
remove unnessary option setting from test runner
9fa07095a35be2d8cb5adcc992b988e73a6d9719
<ide><path>railties/lib/rails/test_unit/minitest_plugin.rb <ide> def self.plugin_rails_options(opts, options) <ide> <ide> options[:color] = true <ide> options[:output_inline] = true <del> options[:patterns] = opts.order! <add> options[:patterns] = defined?(@rake_patterns) ? @rake_patterns : opts.order! <...
2
Javascript
Javascript
fix a little typo
e58b076eab0b6e31a1ee8bd70ed5b154f141f548
<ide><path>fonts.js <ide> var Font = (function Font() { <ide> } <ide> } <ide> <del> if (properties.firstChar < 0x20) <add> if (properties.firstChar < 0x20) { <ide> var code = 0; <ide> for (var j = 0; j < glyphs.length; j++) { <ide> ...
1
Python
Python
fix handling of errors around git [ci skip]
a5633b205f287775ea92b617b052662f4f4a1081
<ide><path>spacy/cli/_util.py <ide> def ensure_pathy(path): <ide> <ide> <ide> def git_sparse_checkout(repo: str, subpath: str, dest: Path, *, branch: str = "master"): <add> git_version = get_git_version() <ide> if dest.exists(): <ide> msg.fail("Destination of checkout must not exist", exits=1) <ide> ...
3
PHP
PHP
improve docs for unaryexpression
3546466c673e33b2906b729e4c91fa83c1d44ef3
<ide><path>src/Database/Expression/UnaryExpression.php <ide> use Cake\Database\ExpressionInterface; <ide> use Cake\Database\ValueBinder; <ide> <add>/** <add> * An expression object that represents an expression with only a single operand. <add> */ <ide> class UnaryExpression extends QueryExpression { <ide> <ide> /**
1
Python
Python
fix nan in optimizer_on_cpu
cba85a67b9c2897593321012f3c6a575545e49e2
<ide><path>examples/run_squad.py <ide> def set_optimizer_params_grad(named_params_optimizer, named_params_model, test_n <ide> if name_opti != name_model: <ide> logger.error("name_opti != name_model: {} {}".format(name_opti, name_model)) <ide> raise ValueError <del> if test_nan and...
1
PHP
PHP
remove confusing identation
e082ed250f5471a99cf9b990e8f76cfdfa1a217a
<ide><path>src/Illuminate/Database/Grammar.php <ide> protected function wrapAliasedValue($value, $prefixAlias = false) <ide> $segments[1] = $this->tablePrefix.$segments[1]; <ide> } <ide> <del> return $this->wrap( <del> $segments[0]).' as '.$this->wrapValue($segments[1] <del> ...
1
Text
Text
remove outdated info
cec45957ac597eda04dbe8b5b1bc0dbf8e5ddff2
<ide><path>docs/KnownIssues.md <ide> There are properties that work on one platform only, either because they can inh <ide> There are known cases where the APIs could be made more consistent across iOS and Android: <ide> <ide> - `<AndroidViewPager>` and `<ScrollView pagingEnabled={true}>` on iOS do a similar thing. We...
1
Text
Text
add stitches example to css-in-js docs
e5960dc6d6d512950393e3d457aedc4e0d5f7918
<ide><path>docs/basic-features/built-in-css-support.md <ide> module.exports = { <ide> <li><a href="https://github.com/vercel/next.js/tree/canary/examples/with-cxs">Cxs</a></li> <ide> <li><a href="https://github.com/vercel/next.js/tree/canary/examples/with-aphrodite">Aphrodite</a></li> <ide> <li><a href="htt...
1
Javascript
Javascript
add todo note about ember.location documentation
1bff946579a832526349ac3f70ce032c6eb95d2c
<ide><path>packages/ember-application/lib/system/location.js <ide> var get = Ember.get, set = Ember.set; <ide> onUpdateURL(callback): triggers the callback when the URL changes <ide> <ide> Calling setURL will not trigger onUpdateURL callbacks. <add> <add> TODO: This, as well as the Ember.Location documentation be...
1
Javascript
Javascript
remove unnecessary judgment
311f196219770da1fddd2447690b98aa6e8d7d78
<ide><path>lib/WebpackOptionsApply.js <ide> class WebpackOptionsApply extends OptionsApply { <ide> default: <ide> throw new Error("Unsupported target '" + options.target + "'."); <ide> } <del> } <del> // @ts-ignore This is always true, which is good this way <del> else if (options.target !== false) { <de...
1
Text
Text
use list for common disable reasons
09132be32a163d83895081b0ddd02a314b4b54b6
<ide><path>docs/Deprecating-Disabling-and-Removing-Formulae.md <ide> If a user attempts to install a disabled formula, they will be shown an error me <ide> <ide> A formula should be disabled to indicate to users that the formula cannot be used and will be removed in the future. Disabled formulae may no longer build fr...
1
Ruby
Ruby
remove private verify readonly attr method
7a8aee08b610f6edbfe5be076dc14e5cdcf1355e
<ide><path>activerecord/lib/active_record/persistence.rb <ide> def update_columns(attributes) <ide> raise ActiveRecordError, "can not update on a new record object" unless persisted? <ide> <ide> attributes.each_key do |key| <del> raise ActiveRecordError, "#{key.to_s} is marked as readonly" if self.c...
1
Javascript
Javascript
implement a default computed property setter
37107a04e46852086077f428d99f91e7d59926fb
<ide><path>packages/ember-metal/lib/computed.js <ide> ComputedPropertyPrototype.set = function(obj, keyName, value) { <ide> // argument. <ide> if (func.length === 3) { <ide> ret = func.call(obj, keyName, value, cachedValue); <del> } else { <add> } else if (func.length === 2) { <ide> ret = func...
2
Go
Go
copy volumesrw values when using --volumes-from
5ae8c7a98592f83a31f3f45fc22728e45e95626c
<ide><path>container.go <ide> func (container *Container) Start(hostConfig *HostConfig) error { <ide> return nil <ide> } <ide> container.Volumes[volPath] = id <add> if isRW, exists := c.VolumesRW[volPath]; exists { <add> container.VolumesRW[volPath] = isRW <add> } <ide> } <ide> } <ide> <ide><path>c...
2
Ruby
Ruby
fix path in cleanup_before
232eccc4285712697d66f72bd39fa196b5ba1f98
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> def cleanup_before <ide> git "reset", "--hard" <ide> git "checkout", "-f", "master" <ide> git "clean", "-ffdx" unless ENV["HOMEBREW_RUBY"] == "1.8.7" <del> pr_locks = "#{HOMEBREW_REPOSITORY}/.git/refs/remotes/*/pr/*/*.lock" <add> pr_locks = "...
1
Java
Java
fix typos in native animated error messages
0d073013a52dbfd835ded496f89d924b8a80c32a
<ide><path>ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java <ide> public void startListeningToAnimatedNodeValue(int tag, AnimatedNodeValueListener <ide> AnimatedNode node = mAnimatedNodes.get(tag); <ide> if (node == null || !(node instanceof ValueAnimatedNode)) { <ide> ...
1
Ruby
Ruby
update openssl in whitelist
45908d8ff269d20bc12ce2ad6df17bf594e44126
<ide><path>Library/Homebrew/rubocops/uses_from_macos.rb <ide> class UsesFromMacos < FormulaCop <ide> m4 <ide> ncurses <ide> openldap <del> openssl <add> openssl@1.1 <ide> perl <ide> php <ide> ruby
1
Go
Go
fix datarace in apistatsnetworkstatsversioning
825e3a66a419038600024be7dfc5ca24426444f0
<ide><path>integration-cli/docker_api_stats_test.go <ide> func (s *DockerSuite) TestApiStatsNetworkStatsVersioning(c *check.C) { <ide> c.Assert(waitRun(id), checker.IsNil) <ide> wg := sync.WaitGroup{} <ide> <del> for i := 17; i <= 21; i++ { <add> // Windows API versions prior to 1.21 doesn't support stats. <add> sta...
1
Python
Python
remove limitation to pull latest images.
3a7e89dbddf5fc60dbcb9582acf5e3a79d702c7c
<ide><path>dev/breeze/src/airflow_breeze/commands/ci_image_commands.py <ide> def pull( <ide> extra_pytest_args: Tuple, <ide> ): <ide> """Pull and optionally verify CI images - possibly in parallel for all Python versions.""" <del> if image_tag == "latest": <del> get_console().print("[red]You cannot pu...
2
PHP
PHP
camelize type of test being generated
75daff8df9b7fea565adcd6b15083751f98849d5
<ide><path>lib/Cake/Console/Command/Task/TestTask.php <ide> public function generateConstructor($type, $fullClassName) { <ide> */ <ide> public function testCaseFileName($type, $className) { <ide> $path = $this->getPath() . 'Case' . DS; <add> $type = Inflector::camelize($type); <ide> if (isset($this->classTypes[$...
1
Python
Python
add missing migration file for
6ea6e37ac999025c8ee71fbc52764c1fd877c736
<ide><path>rest_framework/authtoken/migrations/0002_auto_20160226_1747.py <add># -*- coding: utf-8 -*- <add>from __future__ import unicode_literals <add> <add>from django.db import migrations, models <add>from django.conf import settings <add> <add> <add>class Migration(migrations.Migration): <add> <add> dependencie...
1
PHP
PHP
add missing import.
33b1deadf128751477a4f1bc1398cc91b9f84ed0
<ide><path>src/Illuminate/Routing/RouteParameterBinder.php <ide> <ide> namespace Illuminate\Routing; <ide> <add>use Illuminate\Support\Arr; <add> <ide> class RouteParameterBinder <ide> { <ide> /**
1
Text
Text
add v1.3.6 changes
02c9dc6e16704edbf9bf5207d09765d69027d7e3
<ide><path>CHANGELOG.md <add><a name="1.3.6"></a> <add># 1.3.6 robofunky-danceblaster (2014-12-08) <add> <add> <add>## Bug Fixes <add> <add>- **$browser:** prevent infinite digests when clearing the hash of a url <add> ([10ac5948](https://github.com/angular/angular.js/commit/10ac5948097e2c8eaead238603d29ee580dc8273), ...
1
Ruby
Ruby
restore build_bottle defaults
eaea27c960de3bf76fc9976bfad037c0a559018d
<ide><path>Library/Homebrew/formula_installer.rb <ide> def initialize(formula) <ide> @ignore_deps = false <ide> @only_deps = false <ide> @build_from_source = ARGV.build_from_source? || ARGV.build_all_from_source? <del> @build_bottle = ARGV.build_bottle? <add> @build_bottle = false <ide> @force_bot...
1
Python
Python
add evaluate to test dependencies
af1e6b4d87cb3ec008a91319b8599560337bf254
<ide><path>setup.py <ide> "datasets", <ide> "deepspeed>=0.6.5", <ide> "dill<0.3.5", <add> "evaluate", <ide> "fairscale>0.3", <ide> "faiss-cpu", <ide> "fastapi", <ide> def run(self): <ide> "psutil", <ide> "datasets", <ide> "dill", <add> "evaluate", <ide> ...
2
Javascript
Javascript
add xhr docs
c863514660fed43058c93b288cdf68d476a9cabc
<ide><path>src/angular-mocks.js <ide> * Built-in mocks: <ide> * <ide> * * {@link angular.mock.service.$browser $browser } - A mock implementation of the browser. <del> * * {@link angular.mock.service.$exceptionHandler $exceptionHandler } - A mock implementation of the <del> * angular service exception handler. <add>...
1
Python
Python
fix dimensionality bug
3e52915fa7106a739aa6f9feda9937961ce25068
<ide><path>transformers/modeling_roberta.py <ide> def __init__(self, config): <ide> <ide> def forward(self, input_ids=None, token_type_ids=None, position_ids=None, inputs_embeds=None): <ide> if position_ids is None: <del> <ide> if input_ids is not None: <ide> # Create the positi...
2
Ruby
Ruby
remove scriptfileformula test
bc650a4f0d3689cab306a66f2a874aea1cdc7c24
<ide><path>Library/Homebrew/test/test_formula_installer.rb <ide> def test_a_basic_install <ide> assert_equal 3, bin.children.length <ide> end <ide> end <del> <del> def test_script_install <del> mktmpdir do |dir| <del> name = "test_script_formula" <del> path = Pathname.new(dir)+"#{name}.rb" <de...
1
PHP
PHP
use the authenticate middleware from core
945052508f6c7a00909fd91e5bb9be14d0cbac53
<ide><path>app/Http/Kernel.php <ide> class Kernel extends HttpKernel <ide> * @var array <ide> */ <ide> protected $routeMiddleware = [ <del> 'auth' => \App\Http\Middleware\Authenticate::class, <add> 'auth' => \Illuminate\Http\Middleware\Authenticate::class, <ide> 'auth.basic' => \Illu...
2
Text
Text
remove unopened closing brace
714bb17aea08dc043b1b3e7e7c87b7afa78c5a26
<ide><path>guides/source/getting_started.md <ide> it look as follows: <ide> ```html+erb <ide> <h1>Editing post</h1> <ide> <del><%= form_for :post, url: post_path(@post.id) }, <del>method: :patch do |f| %> <add><%= form_for :post, url: post_path(@post.id), method: :patch do |f| %> <ide> <% if @post.errors.any? %> <id...
1
Python
Python
fix plugins path
6bef4843be1c2e3c33441d5395524ceb192dd950
<ide><path>glances/core/glances_globals.py <ide> print('psutil 2.0 or higher is needed. Glances cannot start.') <ide> sys.exit(1) <ide> <del># Path definitions <del>work_path = os.path.realpath(os.path.dirname(__file__)) <del>appname_path = os.path.split(sys.argv[0])[0] <del>sys_prefix = os.path.realpath(os.pa...
2
Ruby
Ruby
add view tests for mysql
bb0d70788a2cddb6598228806150b55d87e2e81d
<ide><path>activerecord/test/cases/adapters/postgresql/view_test.rb <del>require "cases/helper" <del>require "cases/view_test" <del> <del>class UpdateableViewTest < ActiveRecord::PostgreSQLTestCase <del> fixtures :books <del> <del> class PrintedBook < ActiveRecord::Base <del> self.primary_key = "id" <del> end <de...
2
Python
Python
add documentation about url_for's default scheme
b49074eb6b19d8f5fdb3301a6e50f11845dd530d
<ide><path>flask/helpers.py <ide> def external_url_handler(error, endpoint, values): <ide> address can be changed via `SERVER_NAME` configuration variable which <ide> defaults to `localhost`. <ide> :param _scheme: a string specifying the desired URL scheme. The `_external` <del> parameter must be s...
1
PHP
PHP
use contract for event dispatcher
4036d0becae1e5fedbcb86eda44bb756dff44d8a
<ide><path>src/Illuminate/Events/Dispatcher.php <ide> <ide> use Illuminate\Container\Container; <ide> use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; <add>use Illuminate\Contracts\Container\Container as ContainerContract; <ide> <ide> class Dispatcher implements DispatcherContract { <ide> <ide> /**...
1
Javascript
Javascript
use correct batch size for batchedhash
d806cf5294a010f5c3280a38ab7500c681ca7c11
<ide><path>lib/util/hash/BatchedHash.js <ide> "use strict"; <ide> <ide> const Hash = require("../Hash"); <del> <del>const MAX_STRING_LENGTH = 21845; <add>const MAX_SHORT_STRING = require("./wasm-hash").MAX_SHORT_STRING; <ide> <ide> class BatchedHash extends Hash { <ide> constructor(hash) { <ide> class BatchedHash ex...
2
Javascript
Javascript
make observer static
448c29120b2e0a11e8b8d26a2645cf55bb8a83c7
<ide><path>packages/ember-metal/lib/mixin.js <ide> export function aliasMethod(methodName) { <ide> @param {Function} func <ide> @return func <ide> @public <add> @static <ide> */ <ide> export function observer(...args) { <ide> let _paths, func; <ide> export function observer(...args) { <ide> <ide> ```javascr...
1
Text
Text
add 1.2.31 and 1.4.13 release info
8d394de91fd96f87afdbb277520b111232ec4bdb
<ide><path>CHANGELOG.md <add><a name="1.4.13"></a> <add># 1.4.13 croaking-elderweed (2016-10-10) <add> <add>## Bug Fixes <add>- **input:** ensure that hidden input values are correct after history back <add> ([693d1334](https://github.com/angular/angular.js/commit/693d1334566f78987f5a361a100db4f889f35abd) <add> <add> ...
1
PHP
PHP
fix cookie issues
bb9db21af137344feffa192fcabe4e439c8b0f60
<ide><path>src/Illuminate/Cookie/Middleware/EncryptCookies.php <ide> protected function decrypt(Request $request) <ide> $value = $this->decryptCookie($key, $cookie); <ide> <ide> $request->cookies->set( <del> $key, strpos($value, sha1($key).'|') !== 0 ? null : substr($...
3
Javascript
Javascript
avoid extra var in coreobject during prod builds
b6068455ba1296bb50d1ba5631cb02f9ad84e617
<ide><path>packages/ember-runtime/lib/system/core_object.js <ide> function makeCtor() { <ide> initProperties = [arguments[0]]; <ide> } <ide> <del> let beforeInitCalled = true; <add> let beforeInitCalled; // only used in debug builds to enable the proxy trap <add> <add> // using DEBUG here ...
1
Javascript
Javascript
add aspath on the server
03324880a8fce13e99cd3a7a9fe1fc5fde7fa2c8
<ide><path>server/render.js <ide> async function doRender (req, res, pathname, query, { <ide> const app = createElement(App, { <ide> Component: enhancer(Component), <ide> props, <del> router: new Router(pathname, query) <add> router: new Router(pathname, query, asPath) <ide> }) <ide> <ide...
5
Text
Text
add lucid to list of users
c7848545b32937681275371dc1ae82c5305f36a9
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> * [Kogan.com](https://github.com/kogan) [[@geeknam](https://github.com/geeknam)] <ide> * [LendUp](https://www.lendup.com/) [[@lendup](https://github.com/lendup)] <ide> * [LingoChamp](http://www.liulishuo.com/) [[@haitaoyao](https://github.com/hait...
1
Javascript
Javascript
reduce unnecessary sync rimraf retries
d7b8ae72d97557571c577a865c37e7a5b196a332
<ide><path>lib/internal/fs/rimraf.js <ide> function _rmdirSync(path, options, originalErr) { <ide> rimrafSync(join(path, child), options); <ide> }); <ide> <del> for (let i = 1; i <= options.maxRetries + 1; i++) { <add> const tries = options.maxRetries + 1; <add> <add> for (let i = 1; i <= ...
1
Python
Python
fix typo in gpt2doubleheadsmodel docs
1321356bdf54a6c11048851bff98c2a0181f2084
<ide><path>src/transformers/models/gpt2/modeling_gpt2.py <ide> def forward( <ide> 1[``. <ide> labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): <ide> Labels for language modeling. Note that the labels **are shifted** inside the model, i.e. you ca...
1
Text
Text
fix a broken link
b83985bc6b964992015bc1750ec9b9bab46f3fd8
<ide><path>guides/source/asset_pipeline.md <ide> Customizing the Pipeline <ide> ### CSS Compression <ide> <ide> There is currently one option for compressing CSS, YUI. The [YUI CSS <del>compressor]((http://yui.github.io/yuicompressor/css.html) provides <add>compressor](http://yui.github.io/yuicompressor/css.html) prov...
1
Text
Text
add linkedin obtaining api keys instructions
db09dc57bee531575f357fd8167672f70ea4179d
<ide><path>README.md <ide> app.get('/auth/facebook/callback', passport.authenticate('facebook', { successRe <ide> <ide> <hr> <ide> <add><img src="http://cdn3.tnwcdn.com/wp-content/blogs.dir/1/files/2013/11/linkedin_logo_11.jpg" width="200"> <add>- Sign in at [LinkedIn Developer Network](http://developer.linkedin.com/...
1