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 |
|---|---|---|---|---|---|
PHP | PHP | apply fixes from styleci | 48cf1e1af27e91a27ed47c6e49905889307c6751 | <ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithExceptionHandling.php
<ide> protected function withoutExceptionHandling()
<ide> $this->previousExceptionHandler = app(ExceptionHandler::class);
<ide>
<ide> $this->app->instance(ExceptionHandler::class, new class implements ExceptionHand... | 1 |
Python | Python | fix typos in corrcoef() | aca82609af048971de362eb74a5f8873a45898cf | <ide><path>numpy/lib/function_base.py
<ide> def corrcoef(x, y=None, rowvar=1, bias=0, ddof=None):
<ide> ----------
<ide> x : array_like
<ide> A 1-D or 2-D array containing multiple variables and observations.
<del> Each row of `m` represents a variable, and each column a single
<add> Each ... | 1 |
Javascript | Javascript | warn user if we change their texture settings | d45049f2f71b49f1202e9f29642c7473a4450fed | <ide><path>src/renderers/WebGLRenderer.js
<ide> THREE.WebGLRenderer = function ( parameters ) {
<ide>
<ide> _gl.texParameteri( textureType, _gl.TEXTURE_WRAP_S, _gl.CLAMP_TO_EDGE );
<ide> _gl.texParameteri( textureType, _gl.TEXTURE_WRAP_T, _gl.CLAMP_TO_EDGE );
<add>
<add> if ( texture.wrapS !== THREE.ClampTo... | 1 |
Python | Python | add strftime config option | 54e8e7b8dcb8c9ebda1f6840f6a86f1486fda52f | <ide><path>glances/config.py
<ide> def __init__(self, config_dir=None):
<ide> # Re patern for optimize research of `foo`
<ide> self.re_pattern = re.compile(r'(\`.+?\`)')
<ide>
<del> self.parser = ConfigParser()
<add> self.parser = ConfigParser(interpolation=None)
<ide> self.read()... | 2 |
Ruby | Ruby | prefer brewed tools [linux] | 447baab9a05ca7f860a70adf52017ec69e687a8b | <ide><path>Library/Homebrew/extend/os/linux/development_tools.rb
<ide> class DevelopmentTools
<ide> class << self
<add> def locate(tool)
<add> (@locate ||= {}).fetch(tool) do |key|
<add> @locate[key] = if (path = HOMEBREW_PREFIX/"bin/#{tool}").executable?
<add> path
<add> elsif File.exe... | 1 |
Java | Java | introduce listenablefuture to websocketclient | 62921683fd1b2994302c5c80c16eacd6dc419fe1 | <ide><path>spring-messaging/src/test/java/org/springframework/messaging/simp/handler/AnnotationMethodIntegrationTests.java
<ide> protected Class<?>[] getAnnotatedConfigClasses() {
<ide> public void simpleController() throws Exception {
<ide>
<ide> TextMessage message = create(StompCommand.SEND).headers("destination... | 16 |
Ruby | Ruby | improve docs for formula#python (python_helper) | 5bb82e30713683a81955435f02724dad6c20663a | <ide><path>Library/Homebrew/formula.rb
<ide> def std_cmake_args
<ide> ]
<ide> end
<ide>
<add> # Install python bindings inside of a block given to this method and/or
<add> # call python so: `system python, "setup.py", "install", "--prefix=#{prefix}"
<add> # Note that there are no quotation marks around python... | 1 |
Javascript | Javascript | add test case verifying the repl options usage | a33d1c959a449115883b42753f5140541561ba2b | <ide><path>test/simple/test-repl-options.js
<add>// Copyright Joyent, Inc. and other Node contributors.
<add>//
<add>// Permission is hereby granted, free of charge, to any person obtaining a
<add>// copy of this software and associated documentation files (the
<add>// "Software"), to deal in the Software without restr... | 1 |
Javascript | Javascript | add isolates support | 42281124d4b83b0e99baf5d56b696ef242399f51 | <ide><path>lib/child_process.js
<ide> exports.fork = function(modulePath, args, options) {
<ide> args = args ? args.slice(0) : [];
<ide> args.unshift(modulePath);
<ide>
<del> if (options.thread) {
<del> if (!process.features.isolates) {
<del> throw new Error('node compiled without isolate support');
<del>... | 2 |
Go | Go | add basic integration tests for plugins | a2d48c9e4e2abadcba582de47891837b0a80b24c | <ide><path>api/client/plugin/install.go
<ide> func newInstallCommand(dockerCli *client.DockerCli) *cobra.Command {
<ide> }
<ide>
<ide> flags := cmd.Flags()
<del> flags.BoolVar(&options.grantPerms, "grant-permissions", true, "grant all permissions necessary to run the plugin")
<add> flags.BoolVar(&options.grantPerms,... | 3 |
Python | Python | fix breakage due to early stopping callback | 719eec7bb5545baf32e4034d5c06403b6bc9a17d | <ide><path>official/recommendation/ncf_keras_main.py
<ide> def __init__(self, monitor, desired_value):
<ide>
<ide> self.monitor = monitor
<ide> self.desired = desired_value
<add> self.stopped_epoch = 0
<ide>
<ide> def on_epoch_end(self, epoch, logs=None):
<ide> current = self.get_monitor_value(logs) | 1 |
Java | Java | use offset adjusted value in modulusanimatednode | fedc002c21fc4d01b3698e9390d968661ccc7801 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java
<ide> public ModulusAnimatedNode(
<ide> public void update() {
<ide> AnimatedNode animatedNode = mNativeAnimatedNodesManager.getNodeById(mInputNode);
<ide> if (animatedNode != null && animatedNode instanceof ValueAnimat... | 1 |
Python | Python | use stable functions | 4225740a7b93115d8db478e6a95b67e9c4d96697 | <ide><path>src/transformers/benchmark/benchmark_args_tf.py
<ide> def _setup_strategy(self) -> Tuple["tf.distribute.Strategy", "tf.distribute.clus
<ide> tf.config.experimental_connect_to_cluster(self._setup_tpu)
<ide> tf.tpu.experimental.initialize_tpu_system(self._setup_tpu)
<ide>
<del> ... | 5 |
Javascript | Javascript | move content into files | 302d4b3ffb6df2e0ccccda6a08277fb195fec72f | <ide><path>common/app/routes/challenges/redux/actions.js
<ide> export const updateFilter = createAction(
<ide> );
<ide>
<ide> export const clearFilter = createAction(types.clearFilter);
<add>
<add>// files
<add>export const updateFile = createAction(types.updateFile);
<add>export const updateFiles = createAction(types... | 3 |
Javascript | Javascript | handle bind errors on windows | 3da36fe00e5d85414031ae812e473f16629d8645 | <ide><path>lib/net.js
<ide> exports.Server = Server;
<ide>
<ide> function toNumber(x) { return (x = Number(x)) >= 0 ? x : false; }
<ide>
<add>function _listen(handle, backlog) {
<add> // Use a backlog of 512 entries. We pass 511 to the listen() call because
<add> // the kernel does: backlogsize = roundup_pow_of_two... | 1 |
Python | Python | fix types in docstrings | 05324d0e986a1012a342e2650b3883e13a285029 | <ide><path>numpy/core/defchararray.py
<ide> def equal(x1, x2):
<ide>
<ide> Parameters
<ide> ----------
<del> x1, x2 : array_like of string_ or unicode_
<add> x1, x2 : array_like of str or unicode
<ide> Input arrays of the same shape.
<ide>
<ide> Returns
<ide> def not_equal(x1, x2):
<ide>
<i... | 1 |
Javascript | Javascript | fix jshint issue | 0b260d57cce124597d2f4186629a1409c98f8da5 | <ide><path>src/core/core.controller.js
<ide> } else {
<ide>
<ide> var _this = this;
<del> function getItemsForMode(mode) {
<add> var getItemsForMode = function(mode) {
<ide> switch (mode) {
<ide> case 'single':
<ide> return _this.getElementAtEvent(e);
<ide> default:
<ide> re... | 1 |
PHP | PHP | add unit tests for date_format validator rule | 49331d74e24b018fc45a310060aa063093f3a16d | <ide><path>laravel/tests/cases/validator.test.php
<ide> public function testExistsRule()
<ide> $this->assertFalse(Validator::make($input, $rules)->valid());
<ide> }
<ide>
<add> /**
<add> * Tests the date_format validation rule.
<add> *
<add> * @group laravel
<add> */
<add> public function testTheDateFormatRule(... | 1 |
PHP | PHP | fix wrong method | 19e4b7da688b2ea3aa2110a82d037ec2e72a69e2 | <ide><path>src/Illuminate/Auth/AuthServiceProvider.php
<ide> protected function registerAuthenticator()
<ide> });
<ide>
<ide> $this->app->singleton('auth.driver', function ($app) {
<del> return $app['auth']->driver();
<add> return $app['auth']->guard();
<ide> });
<ide> ... | 1 |
Python | Python | fix import sorting problem | 8bcff10b5aaca6aa9698939f7049d4db0461710c | <ide><path>tests/schema/fields.py
<ide> from django.db import models
<ide> from django.db.models.fields.related import (
<del> RECURSIVE_RELATIONSHIP_CONSTANT, ManyToManyDescriptor,
<del> ManyToManyField, ManyToManyRel, RelatedField,
<del> create_many_to_many_intermediary_model,
<add> RECURSIVE_RELATIONSHIP... | 1 |
Javascript | Javascript | simplify check for empty set in jquery#dommanip | 9256ba5380fca27ebc70e4d1e798fa45cb30e3a2 | <ide><path>src/manipulation.js
<ide> jQuery.fn.extend({
<ide> });
<ide> }
<ide>
<del> if ( this[0] ) {
<del> doc = this[0].ownerDocument;
<add> if ( l ) {
<add> doc = this[ 0 ].ownerDocument;
<ide> fragment = doc.createDocumentFragment();
<ide> jQuery.clean( args, doc, fragment, undefined, this );
<id... | 1 |
Ruby | Ruby | create caskroom without sudo in writable parent | d51cd15e0c748d1b2a35f6327a131622b6ee48b7 | <ide><path>Library/Homebrew/cask/lib/hbc/caskroom.rb
<ide> def migrate_caskroom_from_repo_to_prefix
<ide> FileUtils.mv repo_caskroom, Hbc.caskroom
<ide> else
<ide> opoo "#{Hbc.caskroom.parent} is not writable, sudo is needed to move the Caskroom."
<del> sudo "/bin/mv", repo_caskroom.to_s, H... | 1 |
Python | Python | fix retry-after header handling | bd32dfc2016d0308065e9a002a4793cc407262b0 | <ide><path>libcloud/common/base.py
<ide> def __init__(self, response, connection):
<ide>
<ide> if not self.success():
<ide> raise exception_from_message(code=self.status,
<del> message=self.parse_error())
<add> message=... | 3 |
Python | Python | return provider ids for cluster's node | c98bba0266eea693e79b43e39e10889eec7b9c77 | <ide><path>libcloud/container/drivers/kubernetes.py
<ide> def _to_node(self, data):
<ide> extra = {"memory": memory, "cpu": cpu}
<ide> extra["os"] = data["status"]["nodeInfo"].get("operatingSystem")
<ide> extra["kubeletVersion"] = data["status"]["nodeInfo"]["kubeletVersion"]
<add> extra["... | 1 |
PHP | PHP | fix auth docblocks | b546fbe937ad997fa9071e51c3522687a6cbeaf9 | <ide><path>src/Illuminate/Auth/EloquentUserProvider.php
<ide> public function __construct(HasherContract $hasher, $model)
<ide> * Retrieve a user by their unique identifier.
<ide> *
<ide> * @param mixed $identifier
<del> * @return \Illuinate\Contracts\Auth\User|null
<add> * @return \Illuminate\Contracts\Auth\... | 1 |
PHP | PHP | abort(404) | 04308b7c4435d96f05822f76b1d652ca565c9783 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function setLocale($locale)
<ide> */
<ide> public function abort($code, $message = '', array $headers = array())
<ide> {
<del> throw new HttpException($code, $message, null, $headers);
<add> if ($code == 404)
<add> {
<add> throw new NotFoundHttp... | 1 |
Python | Python | add test for weight modification | 008e5e9c6ee24b6675dc582373c4a14cbe5ec22e | <ide><path>numpy/ma/tests/test_extras.py
<ide> def test_polyfit(self):
<ide> assert_almost_equal(a, a_)
<ide> #
<ide> w = np.random.rand(10) + 1
<add> wo = w.copy()
<ide> xs = x[1:-1]
<ide> ys = y[1:-1]
<ide> ws = w[1:-1]
<ide> (C, R, K, S, D) = polyfi... | 1 |
Python | Python | register vit architecture hyperparams | 7c917ef24d2ffc844818d1462f3ebabba8c57c89 | <ide><path>official/projects/vit/modeling/vit.py
<ide> def __init__(self,
<ide> original_init: bool = True,
<ide> pos_embed_shape: Optional[Tuple[int, int]] = None):
<ide> """VisionTransformer initialization function."""
<add> self._mlp_dim = mlp_dim
<add> self._num_heads = num_h... | 1 |
Ruby | Ruby | remove default parameters from method signature | 793455e594dc98ea026c7665dd0de3ae8829cf73 | <ide><path>actionview/lib/action_view/renderer/template_renderer.rb
<ide> def render(context, options)
<ide>
<ide> @lookup_context.rendered_format ||= (template.formats.first || formats.first)
<ide>
<del> render_template(context, template, options[:layout], options[:locals])
<add> render_template(cont... | 1 |
Text | Text | add turkish contribution guidelines | f102c88a976e26f50ad613b7f6784c9e16095bbb | <ide><path>docs/i18n-languages/turkish/CONTRIBUTING.md
<add><!-- do not translate this -->
<add>| [Read these guidelines in other languages](/docs/i18n-languages) |
<add>|-|
<add><!-- do not translate this -->
<add>
<add># Katkıda Bulunma Kuralları
<add>
<add>Merhaba. 👋
<add>
<add>freeCodeCamp.org, sizin gibi binlerce... | 1 |
Text | Text | update nan urls in roadmap.md and doc/releases.md | 0eda5f503a2fae915ae152bd221b523762a0ef97 | <ide><path>ROADMAP.md
<ide> Node.js does not remove stdlib JS API.
<ide> Shipping with current and well supported dependencies is the best way to ensure long term stability of the platform. When those dependencies are no longer maintained Node.js will take on their continued maintenance as part of our [Long Term Suppor... | 2 |
Go | Go | add plugingetter to pkg | d599d53db27f4a24b18f51464c39707eae383c7e | <ide><path>pkg/plugingetter/getter.go
<add>package plugingetter
<add>
<add>import "github.com/docker/docker/pkg/plugins"
<add>
<add>const (
<add> // LOOKUP doesn't update RefCount
<add> LOOKUP = 0
<add> // CREATE increments RefCount
<add> CREATE = 1
<add> // REMOVE decrements RefCount
<add> REMOVE = -1
<add>)
<add>
<ad... | 1 |
Python | Python | add num_workers arg to dataloader | 2d7c1bb192bafba6fbc81b6b02489a1d08228076 | <ide><path>src/transformers/trainer.py
<ide> def get_test_dataloader(self, test_dataset: Dataset) -> DataLoader:
<ide> batch_size=self.args.eval_batch_size,
<ide> collate_fn=data_collator,
<ide> drop_last=self.args.dataloader_drop_last,
<add> num_workers=self.args.dataload... | 1 |
Javascript | Javascript | fix typo in comment | 6c61ca5325a411c4b64177c5bca58030ea5b97a4 | <ide><path>lib/url.js
<ide> Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
<ide> //
<ide> // ex:
<ide> // http://a@b@c/ => user:a@b host:c
<del> // http://a@b?@c => user:a host:c path:/?@c
<add> // http://a@b?@c => user:a host:b path:/?@c
<ide>
<ide> // v0.12 TODO(isaa... | 1 |
Text | Text | remove references to pinning | d666b8554d8f59d06cfb6c284c220b6e3254f4bc | <ide><path>docs/Taps.md
<ide> dunn/emacs
<ide> version: `brew tap username/homebrew-foobar`. `brew` will automatically add
<ide> back the 'homebrew-' prefix whenever it's necessary.
<ide>
<del>## Formula duplicate names
<add>## Formula with duplicate names
<ide>
<ide> If your tap contains a formula that is also p... | 1 |
Text | Text | update verb form "learning" | 446be9460c368f6cd6a3e2affa480d8db9a2e3e1 | <ide><path>guide/english/working-in-tech/dunning-kruger-effect/index.md
<ide> DK Effect is exactly opposite of [Imposter Syndrome](https://en.wikipedia.org/wi
<ide> Sorry, but there isn't a straight answer to this question. You can ask following questions to yourself:
<ide>
<ide> - Are you able to give accurate esti... | 1 |
PHP | PHP | adjust type hint | 8ac01ded45adaf88519d65285e009d8826e82964 | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function redirect($to = null, $status = 302, $headers = [], $secure = null)
<ide> /**
<ide> * Get an instance of the current request or an input item from the request.
<ide> *
<del> * @param string $key
<add> * @param array|string $key
<id... | 1 |
PHP | PHP | use splfileinfo instead of file in response | a4dfd960b91c8bd2d303acc69e5818d679ab171a | <ide><path>src/Http/Response.php
<ide> namespace Cake\Http;
<ide>
<ide> use Cake\Core\Configure;
<del>use Cake\Filesystem\File;
<ide> use Cake\Http\Cookie\CookieCollection;
<ide> use Cake\Http\Cookie\CookieInterface;
<ide> use Cake\Http\Exception\NotFoundException;
<ide> use InvalidArgumentException;
<ide> use Psr\Htt... | 3 |
Javascript | Javascript | link warning to error boundary post | 9a290fb1a704701d089c948a5c72f3ed8c663db1 | <ide><path>src/renderers/shared/fiber/ReactFiberErrorLogger.js
<ide> function logCapturedError(capturedError: CapturedError): void {
<ide> `Recreating the tree from scratch failed so React will unmount the tree.`;
<ide> }
<ide> } else {
<del> // TODO Link to componentDidCatch() documentation on... | 1 |
Ruby | Ruby | reduce method calls in the dynamic finder matcher | 9e652b65c2c481f2b4ae0cda9df42d4bb56b9f3c | <ide><path>activerecord/lib/active_record/dynamic_finder_match.rb
<ide> module ActiveRecord
<ide> #
<ide> class DynamicFinderMatch
<ide> def self.match(method)
<del> df_match = self.new(method)
<del> df_match.finder ? df_match : nil
<add> df_match = new(method)
<add> df_match.finder && df_ma... | 1 |
Javascript | Javascript | remove leftover {{debugger}} | 998eaa68defd4ec62ad4f371026a4bbe55145ac5 | <ide><path>packages/ember-htmlbars/tests/integration/component_lifecycle_test.js
<ide> styles.forEach(style => {
<ide>
<ide> QUnit.test('changing a component\'s displayed properties inside didInsertElement() is deprecated', function(assert) {
<ide> let component = style.class.extend({
<del> layout: compile(... | 1 |
Javascript | Javascript | fix timeout in write-stream-throughput | b43a496092379edc450cb7aebe3528686a3f41d2 | <ide><path>benchmark/fs/write-stream-throughput.js
<ide> function main(conf) {
<ide> var started = false;
<ide> var ending = false;
<ide> var ended = false;
<del> setTimeout(function() {
<del> ending = true;
<del> f.end();
<del> }, dur * 1000);
<ide>
<ide> var f = fs.createWriteStream(filename);
<ide> ... | 1 |
Javascript | Javascript | add required settings to test-benchmark-buffer | b9ff6a3fb1db4868473f9b326cb6038f3e1823a9 | <ide><path>test/benchmark/test-benchmark-buffer.js
<ide> runBenchmark('buffers',
<ide> 'aligned=true',
<ide> 'args=1',
<ide> 'buffer=fast',
<add> 'bytes=0',
<ide> 'byteLength=1',
<ide> 'charsPerLine=6',
<ide> 'encodi... | 1 |
Python | Python | remove u-prefix for former unicode strings | 13d55a3c2f016a58a6e9d6b8086f338e07c7478f | <ide><path>benchmarks/benchmarks/bench_io.py
<ide> class LoadtxtCSVComments(Benchmark):
<ide> param_names = ['num_lines']
<ide>
<ide> def setup(self, num_lines):
<del> data = [u'1,2,3 # comment'] * num_lines
<add> data = ['1,2,3 # comment'] * num_lines
<ide> # unfortunately, timeit will o... | 21 |
Python | Python | prevent loss keyerror for non-trainable components | dc06912c764991d2d6718919e5e96cae867a472d | <ide><path>spacy/training/loggers.py
<ide> def log_step(info: Optional[Dict[str, Any]]) -> None:
<ide> if progress is not None:
<ide> progress.update(1)
<ide> return
<del> try:
<del> losses = [
<del> "{0:.2f}".format(float(... | 2 |
Javascript | Javascript | fix subtle.importkey jwk okp public key import | 51249a11c09c7ec23eda17327f650fa59a72cba5 | <ide><path>lib/internal/crypto/ec.js
<ide> async function ecImportKey(
<ide> keyObject = createECRawKey(
<ide> namedCurve,
<ide> Buffer.from(
<del> isPublic ? keyData.k : keyData.d,
<add> isPublic ? keyData.x : keyData.d,
<ide> 'base64'),
<ide> ... | 2 |
Javascript | Javascript | add test cases to ensure methods are walked too | cb320c201d2b86d6af9fe7833ae1a53e3f46a201 | <ide><path>test/cases/inner-graph/extend-class2/dep1.js
<ide> import { A, B, getC, getD, getE, getF } from "./dep2";
<add>import { A3, B3, C3, D3, E3, F3 } from "./dep3";
<ide>
<ide> export class A1 extends A {
<ide> render() {
<ide> export class F1 extends getF() {
<ide> }
<ide> }
<ide>
<del>export class A2 {}
<de... | 3 |
Javascript | Javascript | respect original spacing and newlines better | f69112cb3f080fc92ddb6543cca58282fd5e6c0b | <ide><path>vendor/fbtransform/transforms/react.js
<ide> var Syntax = require('esprima-fb').Syntax;
<ide>
<ide> var catchup = require('jstransform/src/utils').catchup;
<add>var catchupWhiteSpace = require('jstransform/src/utils').catchupWhiteSpace;
<ide> var append = require('jstransform/src/utils').append;
<ide> var m... | 2 |
Javascript | Javascript | add strict equalities in src/core/evaluator.js | 87038e44cd4f29dc40a8a152120dc44f351fa0ec | <ide><path>src/core/evaluator.js
<ide> var PartialEvaluator = (function PartialEvaluatorClosure() {
<ide> firstWidth = glyphWidth;
<ide> continue;
<ide> }
<del> if (firstWidth != glyphWidth) {
<add> if (firstWidth !== glyphWidth) {
<ide> isMonospace = false;
<ide> ... | 1 |
Javascript | Javascript | avoid memory leak | 523ddd7220b837af409fdbd4e0d5ffe10b81f863 | <ide><path>test/helpers/createLazyTestEnv.js
<add>// this function allows to release memory in fn context
<add>// after the function has been called.
<add>const createOnceFn = fn => {
<add> if (!fn) return null;
<add> if (fn.length >= 1) {
<add> return done => {
<add> fn(done);
<add> fn = null;
<add> };
<add> }
<... | 1 |
Ruby | Ruby | move erb parsing to core_ext | 1d39573a9fc2ed7f5914d7b67597d6cb1ed4781b | <ide><path>actionview/lib/action_view/template/handlers/erb.rb
<ide> def handles_encoding?
<ide> # source location inside the template.
<ide> def translate_location(spot, backtrace_location, source)
<ide> # Tokenize the source line
<del> tokens = tokenize(source.lines[backtrace_locati... | 3 |
Ruby | Ruby | add skylake to linux hardware list | 573aeff11513a679577994cce84d31011090902b | <ide><path>Library/Homebrew/extend/os/linux/hardware/cpu.rb
<ide> def family
<ide> :haswell
<ide> when 0x3d, 0x47, 0x4f, 0x56
<ide> :broadwell
<add> when 0x5e
<add> :skylake
<ide> when 0x8e
<ide> :kabylake
<ide> else | 1 |
Python | Python | fix doctest for full_like | 11f051a37bed48c341849e79cac1863a03626f73 | <ide><path>numpy/core/numeric.py
<ide> def full_like(a, fill_value, dtype=None, order='K', subok=True, shape=None):
<ide>
<ide> >>> y = np.arange(6, dtype=np.double)
<ide> >>> np.full_like(y, 0.1)
<del> array([0.1, 0.1, 0.1, 0.1, 0.1, 0.1])
<add> array([0.1, 0.1, 0.1, 0.1, 0.1, 0.1])
<ide>
<ide> ... | 1 |
Javascript | Javascript | use "clean" objects | 298a40e04ee496dbd6b2324a20d9ff745fef74cb | <ide><path>lib/module.js
<ide> function Module(id, parent) {
<ide> }
<ide> module.exports = Module;
<ide>
<del>Module._cache = {};
<del>Module._pathCache = {};
<del>Module._extensions = {};
<add>Module._cache = Object.create(null);
<add>Module._pathCache = Object.create(null);
<add>Module._extensions = Object.create(n... | 1 |
Ruby | Ruby | fix where_clause#except with specific where value | 19dc69cb07572f8b17ae15c8bc0b5a29bc8a281f | <ide><path>activerecord/lib/active_record/relation/where_clause.rb
<ide> def except_predicates_and_binds(columns)
<ide> (binds_index...(binds_index + binds_contains)).each do |i|
<ide> except_binds[i] = true
<ide> end
<del>
<del> binds_index += binds_contains
<id... | 2 |
Text | Text | clarify sentence in event loop doc | 88ed3d260e3f111a5a100a377af55317388fcea0 | <ide><path>doc/topics/the-event-loop-timers-and-nexttick.md
<ide> order of operations.
<ide> │ ┌──────────┴────────────┐ │ incoming: │
<ide> │ │ poll │<─────┤ connections, │
<ide> │ └──────────┬────────────┘ │ data, etc. │
<del> │ ┌──────────┴────────────┐ └───... | 1 |
Go | Go | factorize sleeping containers | 777ee34b075292e5aee16c4088444508899f8f35 | <ide><path>integration-cli/docker_api_containers_test.go
<ide> import (
<ide> "github.com/go-check/check"
<ide> )
<ide>
<del>func init() {
<del> if daemonPlatform == "windows" {
<del> sleepCmd = "sleep"
<del> }
<del>}
<del>
<ide> func (s *DockerSuite) TestContainerApiGetAll(c *check.C) {
<ide> startCount, err := ge... | 7 |
Ruby | Ruby | fix impractical i18n lookup in nested fields_for | c2b6f63bbe2740fd63a36eeefe17d51813a17324 | <ide><path>actionpack/lib/action_view/helpers/form_helper.rb
<ide> def to_label_tag(text = nil, options = {}, &block)
<ide> label_tag(name_and_id["id"], options, &block)
<ide> else
<ide> content = if text.blank?
<add> object_name.gsub!(/\[(.*)_attributes\]\[\d\]/, '.\1')
<ide> ... | 2 |
Go | Go | cleanup some statements from exec driver work | 9e3da87a3a6fea21194ceb9dbd30a39d043a48a4 | <ide><path>execdriver/lxc/init.go
<ide> func changeUser(args *execdriver.InitArgs) error {
<ide> }
<ide>
<ide> func setupCapabilities(args *execdriver.InitArgs) error {
<del>
<ide> if args.Privileged {
<ide> return nil
<ide> }
<ide><path>runtime.go
<ide> import (
<ide> "github.com/dotcloud/docker/dockerversion"
<... | 3 |
PHP | PHP | update exceptionhandler.php | 3bfc5703728191b0fd6a6c07420ca881aef706a7 | <ide><path>src/Illuminate/Contracts/Debug/ExceptionHandler.php
<ide> public function render($request, Throwable $e);
<ide> * @param \Symfony\Component\Console\Output\OutputInterface $output
<ide> * @param \Throwable $e
<ide> * @return void
<add> *
<add> * @internal This method is not meant to... | 1 |
Mixed | Text | change http to https in docs | 8e19d0aa8b30cef025c248c8e6253cc20fa133d6 | <ide><path>CONTRIBUTING.md
<ide> # Have a question?
<ide>
<del>Please ask questions on [Stack Overflow](http://stackoverflow.com/questions/tagged/immutable.js) instead of opening a Github Issue. There are more people on Stack Overflow who
<add>Please ask questions on [Stack Overflow](https://stackoverflow.com/question... | 6 |
Mixed | Javascript | add enfile to rimraf retry logic | 74f819612f1e9a061bf5b12c419e0e9ac00652d6 | <ide><path>doc/api/fs.md
<ide> changes:
<ide> description: The `maxBusyTries` option is renamed to `maxRetries`, and its
<ide> default is 0. The `emfileWait` option has been removed, and
<ide> `EMFILE` errors use the same retry logic as other errors. The
<del> `retr... | 2 |
Javascript | Javascript | adjust assertions based on the new soft-wrap logic | bf5a0d8c8cca9c4c2d51006ef0727c64accf60d8 | <ide><path>spec/text-editor-component-spec.js
<ide> describe('TextEditorComponent', function () {
<ide> gutterNode.dispatchEvent(buildMouseEvent('mousedown', clientCoordinatesForScreenRowInGutter(11), {
<ide> shiftKey: true
<ide> }))
<del> expect(editor.getSelectedScreen... | 1 |
Ruby | Ruby | remove another reference to subformulae | 3b76987fd79be6c0ed6516bcfb3b6f870909bf9d | <ide><path>Library/Contributions/example-formula.rb
<ide> # Ruby classes have to start Upper case and dashes are not allowed.
<ide> # So we transform: `example-formula.rb` into `ExampleFormula`. Further,
<ide> # Homebrew does enforce that the name of the file and the class correspond.
<del># Check with `brew search` th... | 1 |
Python | Python | remove asarray call on a known array | dbaca82d6d8c63f4d48ec08ae07e45e5b7bc2000 | <ide><path>numpy/lib/histograms.py
<ide> def histogramdd(sample, bins=10, range=None, normed=False, weights=None):
<ide> nbin[i] = len(edges[i]) + 1 # includes an outlier on each end
<ide> dedges[i] = np.diff(edges[i])
<ide>
<del> nbin = np.asarray(nbin)
<del>
<ide> # Handle empty input.
<ide> ... | 1 |
Javascript | Javascript | ignore extra compilation while testing watching | e299d600f79cd314296e2d9cf5094e43e9277ce4 | <ide><path>test/WatchTestCases.test.js
<ide> describe("WatchTestCases", function() {
<ide>
<ide> var runIdx = 0;
<ide> var run = runs[runIdx];
<add> var lastHash = "";
<ide> copyDiff(path.join(testDirectory, run.name), tempDirectory);
<ide>
<ide> var compiler = webpack(options);
<ide> ... | 1 |
Text | Text | modify serial number and fix some typos | 9ddd1242dbaeaa990c060b7b88ed859fa3b2d981 | <ide><path>experimental/plugins_graphdriver.md
<ide> Docker graph driver plugins enable admins to use an external/out-of-process
<ide> graph driver for use with Docker engine. This is an alternative to using the
<ide> built-in storage drivers, such as aufs/overlay/devicemapper/btrfs.
<ide>
<del>A graph driver plugin i... | 1 |
Ruby | Ruby | fix rubocop warnings | 8271e357867692edfddf3d70328dd568bd7eebf2 | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> module Mac
<ide> module Xcode
<ide> extend self
<ide>
<del> V4_BUNDLE_ID = "com.apple.dt.Xcode"
<del> V3_BUNDLE_ID = "com.apple.Xcode"
<add> V4_BUNDLE_ID = "com.apple.dt.Xcode".freeze
<add> V3_BUNDLE_ID = "com.apple.Xcode".freeze
<ide>
<i... | 1 |
Ruby | Ruby | prefer deprecate_constant over constant proxy | 1e68400930afdf983f5de47e124451ef15ee6889 | <ide><path>actionview/lib/action_view/template/resolver.rb
<ide> module ActionView
<ide> # = Action View Resolver
<ide> class Resolver
<del> Path = ActiveSupport::Deprecation::DeprecatedConstantProxy.new("ActionView::Resolver::Path", "ActionView::TemplatePath", ActionView.deprecator)
<add> include ActiveSuppo... | 3 |
Javascript | Javascript | use document fragments to grow repeaters | 15ec78f5eff3f8fa74714fe10986be094915c800 | <ide><path>src/jqLite.js
<ide> function JQLite(element) {
<ide> div.innerHTML = '<div> </div>' + element; // IE insanity to make NoScope elements work!
<ide> div.removeChild(div.firstChild); // remove the superfluous div
<ide> JQLiteAddNodes(this, div.childNodes);
<del> this.remove(); // detach the ... | 2 |
Text | Text | add accenture to the inthewild file | b8abf1425004410ba8ca37385d294c650a2a7e06 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [8fit](https://8fit.com/) [[@nicor88](https://github.com/nicor88), [@frnzska](https://github.com/frnzska)]
<ide> 1. [90 Seconds](https://90seconds.tv/) [[@aaronmak](https://github.com/aaronmak)]
<ide> 1. [99](https://99taxis.com) [[@fbenevi... | 1 |
Javascript | Javascript | build api toc using raw headers | 46de34b8c27d8dca1f88388d608bbf56af06ceec | <ide><path>tools/doc/html.js
<ide> function buildToc({ filename }) {
<ide>
<ide> depth = node.depth;
<ide> const realFilename = path.basename(realFilenames[0], '.md');
<del> const headingText = node.children.map((child) => child.value)
<del> .join().trim();
<add> const headingText = node.c... | 1 |
Javascript | Javascript | remove `controller#content` alias | a155b309541e7077c31cf0a7e1a4302d4c87fb17 | <ide><path>packages/ember-runtime/lib/mixins/controller.js
<ide> export default Mixin.create(ActionHandler, {
<ide> @public
<ide> */
<ide> model: null,
<del>
<del> /**
<del> @private
<del> */
<del> content: deprecatingAlias('model', {
<del> id: 'ember-runtime.controller.content-alias',
<del> until: ... | 2 |
Javascript | Javascript | use flat array in `dsl` | 6d9a9735eeb04182589ff9bd98569288667cb8d8 | <ide><path>packages/ember-routing/lib/system/dsl.js
<ide> class DSL {
<ide>
<ide> if (url === '' || url === '/' || parts[parts.length - 1] === 'index') { this.explicitIndex = true; }
<ide>
<del> this.matches.push([url, name, callback]);
<add> this.matches.push(url, name, callback);
<ide> }
<ide>
<ide> ... | 1 |
Go | Go | remove redundant code and better error msg | 5c0ea56d56065ee737557650fa797a61f52e8378 | <ide><path>client/swarm_unlock.go
<ide> import (
<ide> // SwarmUnlock unlockes locked swarm.
<ide> func (cli *Client) SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error {
<ide> serverResp, err := cli.post(ctx, "/swarm/unlock", nil, req, nil)
<del> if err != nil {
<del> return err
<del> }
<del>
<ide> ens... | 2 |
PHP | PHP | add array key | 50380ce3b5e06d099546b0a66edf50bfb85423a9 | <ide><path>src/Illuminate/Foundation/Auth/AuthenticatesAndRegistersUsers.php
<ide> public function postLogin(Request $request)
<ide> return redirect($this->loginPath())
<ide> ->withInput($request->only('email', 'remember'))
<ide> ->withErrors([
<del> $this->getFailedLoginMesssage(),
<add> 'email' ... | 1 |
PHP | PHP | fix bug in appnamecommand | f7e9277d33b4efee11f4a8170c53f84c739876e1 | <ide><path>src/Illuminate/Foundation/Console/AppNameCommand.php
<ide> protected function setBootstrapNamespaces()
<ide> $search = [
<ide> $this->currentRoot.'\\Http',
<ide> $this->currentRoot.'\\Console',
<del> $this->currentRoot.'\\Exception',
<add> $this->currentRoot.'\\Exceptions',
<ide> ];
<ide>
<ide... | 1 |
Javascript | Javascript | apply suggestions from code review | d8754873f668b40cec703284047228490c8002ff | <ide><path>lib/TemplatedPathPlugin.js
<ide> const getReplacer = (value, allowEmpty) => {
<ide> const escapePathVariables = value => {
<ide> return typeof value === "string"
<ide> ? value.replace(
<del> /\[(name|id|moduleid|file|query|filebase|url|hash|chunkhash|modulehash|contenthash)\]/g,
<add> /\[(\\*[\w:]+\... | 2 |
PHP | PHP | fix variable name in test | 71872d40cdf7a1e2dcbd8beb9e9fa864eb4804fa | <ide><path>tests/TestCase/Error/DebuggerTest.php
<ide> public function testLogDepth(): void
<ide> $veryRandomName = [
<ide> 'test' => ['key' => 'val'],
<ide> ];
<del> Debugger::log($val, 'debug', 0);
<add> Debugger::log($veryRandomName, 'debug', 0);
<ide>
<ide> $messag... | 1 |
Javascript | Javascript | remove unused deprecation code | 3ad7c1ae9778fd9a61b4e99eeab4291827700d55 | <ide><path>test/parallel/test-process-assert.js
<ide> const assert = require('assert');
<ide>
<ide> common.expectWarning(
<ide> 'DeprecationWarning',
<del> 'process.assert() is deprecated. Please use the `assert` module instead.',
<del> 'DEP0100'
<add> 'process.assert() is deprecated. Please use the `assert` modu... | 2 |
Go | Go | add 32bit syscalls to whitelist | a1747b3cc861c00803a67e5a61dce73db6ac8eee | <ide><path>daemon/execdriver/native/seccomp_default.go
<ide> var defaultSeccompProfile = &configs.Seccomp{
<ide> Action: configs.Allow,
<ide> Args: []*configs.Arg{},
<ide> },
<add> {
<add> Name: "chown32",
<add> Action: configs.Allow,
<add> Args: []*configs.Arg{},
<add> },
<ide> {
<ide> Name:... | 1 |
PHP | PHP | wrap when calling seeders | 532c49d1dbcd63decd9fa5037fc2510e5f955103 | <ide><path>src/Illuminate/Database/Seeder.php
<ide>
<ide> namespace Illuminate\Database;
<ide>
<add>use Illuminate\Support\Arr;
<ide> use InvalidArgumentException;
<ide> use Illuminate\Console\Command;
<ide> use Illuminate\Container\Container;
<ide> abstract class Seeder
<ide> */
<ide> public function call($... | 1 |
Javascript | Javascript | remove workaround for adreno bug | d9a8da2290719e6224104ebd55ab71b38e578d74 | <ide><path>src/renderers/shaders/ShaderChunk/bumpmap_pars_fragment.glsl.js
<ide> export default /* glsl */`
<ide>
<ide> vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {
<ide>
<del> // Workaround for Adreno 3XX dFd*( vec3 ) bug. See #9988
<del>
<del> vec3 vSigmaX = vec3( dFd... | 2 |
Java | Java | fix resourceurlencodingfilter lifecycle | 50a4769162061f2e16dca7176f8b431093f08a27 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilter.java
<ide> /*
<del> * Copyright 2002-2017 the original author or authors.
<add> * Copyright 2002-2018 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License")... | 3 |
Mixed | Python | remove outdated examples | db843735d3a94826784492709afa0d26129eddd6 | <ide><path>examples/inventory_count/Instructions.md
<del>An example of inventory counting using SpaCy.io NLP library. Meant to show how to instantiate Spacy's English class, and allow reusability by reloading the main module.
<del>
<del>In the future, a better implementation of this library would be to apply machine le... | 6 |
Python | Python | check decorator order | 1ff5bd38a3c66084710eb315a5322692fd1fab2f | <ide><path>tests/test_tokenization_bert_generation.py
<ide> def test_tokenization_base_hard_symbols(self):
<ide>
<ide> self.assertListEqual(original_tokenizer_encodings, self.big_tokenizer.encode(symbols))
<ide>
<del> @slow
<ide> @require_torch
<add> @slow
<ide> def test_torch_encode_plus_sent_t... | 4 |
Text | Text | fix useragent type error in readme.md | 6faf0d18fb69704c82a70290a735dcfd6f143a64 | <ide><path>packages/next/README.md
<ide> Next.js provides `NextPage` type that can be used for pages in the `pages` direc
<ide> import { NextPage } from 'next'
<ide>
<ide> interface Props {
<del> userAgent: string
<add> userAgent?: string
<ide> }
<ide>
<ide> const Page: NextPage<Props> = ({ userAgent }) => (
<ide> ... | 1 |
Python | Python | remove redundant reversal of eigenvalues order | be29802e9b6027c5959149b5357f8969effc3bef | <ide><path>numpy/linalg/linalg.py
<ide> def svd(a, full_matrices=True, compute_uv=True, hermitian=False):
<ide> return wrap(u), s, wrap(vt)
<ide> else:
<ide> s = eigvalsh(a)
<del> s = s[..., ::-1]
<ide> s = abs(s)
<ide> return sort(s)[..., ::-1]
<ide> | 1 |
Java | Java | update todos for spr-11598 | 6e10f7c8cf8c3edf573e9f04541f691c499b1a43 | <ide><path>spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.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... | 1 |
Ruby | Ruby | fix #has_secure_token documentation [ci skip] | 673653d44c9bba69fc73209e6320dd88dbeaf75f | <ide><path>activerecord/lib/active_record/secure_token.rb
<ide> module ClassMethods
<ide> # SecureRandom::base58 is used to generate the 24-character unique token, so collisions are highly unlikely.
<ide> #
<ide> # Note that it's still possible to generate a race condition in the database in the same ... | 1 |
Text | Text | fix upgrading guide [ci skip] | 51908718227f2cef80113d85a0fb9eb65ded3f4e | <ide><path>guides/source/upgrading_ruby_on_rails.md
<ide> The following changes are meant for upgrading your application to Rails 4.0.
<ide>
<ide> ### Gemfile
<ide>
<del>Rails 4.0 removed the *group :assets* from Gemfile (now you can use only :test, :development and/or :production groups). So change your Gemfile from... | 1 |
Text | Text | fix typo in ipam doc | 8059597722ac6fe42821fd9128e41887374e4b1e | <ide><path>libnetwork/docs/ipam.md
<ide> On network creation, libnetwork will iterate the list and perform the following
<ide>
<ide> If the list of IPv4 configurations is empty, libnetwork will automatically add one empty `IpamConf` structure. This will cause libnetwork to request IPAM driver an IPv4 address pool of t... | 1 |
Javascript | Javascript | add missing semicolon | 217a9919c3adcde198774301aa082e5be8a6489d | <ide><path>src/effects.js
<ide> function defaultDisplay( nodeName ) {
<ide> // create a temp element and check it's default display, this
<ide> // will ensure that the value returned is not a user-tampered
<ide> // value.
<del> elem = jQuery("<" + nodeName + ">").appendTo("body"),
<add> elem = jQuery("<" + node... | 1 |
Python | Python | add persian language | bb6bd3d8aea5139d90b95cd0d3ac657ac1f49686 | <ide><path>spacy/lang/fa/__init__.py
<ide>
<ide> class PersianDefaults(Language.Defaults):
<ide> lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
<del> lex_attr_getters[LANG] = lambda text: 'fa' # ISO code
<add> lex_attr_getters[LANG] = lambda text: 'fa'
<ide> lex_attr_getters[NORM] = add_loo... | 3 |
Ruby | Ruby | extract common word "for" in `reason` | 9ef52080e37091467b477e3eb79dc9c9fb495591 | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def setup_tar_and_args!(args)
<ide> return default_tar_args
<ide> end
<ide>
<del> ensure_formula_installed!(gnu_tar, reason: "for bottling")
<add> ensure_formula_installed!(gnu_tar, reason: "bottling")
<ide>
<ide> ["#{gnu_tar.opt_bin}/gtar", gnut... | 7 |
Ruby | Ruby | remove duplicate 'select' database statement | ec981aa1f05983754d661723e7d910ed4e1d4b28 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> def subquery_for(key, select)
<ide>
<ide> # Returns an ActiveRecord::Result instance.
<ide> def select(sql, name = nil, binds = [])
<add> exec_query(sql, name, binds)
<ide> end
<del> ... | 5 |
Java | Java | fix uri construction in undertowserverhttprequest | 141e04aa0f43d221aa0a80569df70301fe294304 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpRequest.java
<ide> import org.springframework.util.Assert;
<ide> import org.springframework.util.LinkedMultiValueMap;
<ide> import org.springframework.util.MultiValueMap;
<add>import org.springframework.util.StringUtils;
<ide... | 1 |
Python | Python | use kombu.async.timer directly | 75e5acca9481cc972d48493b39bc0812181037be | <ide><path>celery/concurrency/eventlet.py
<ide> import warnings
<ide> warnings.warn(RuntimeWarning(W_RACE % side))
<ide>
<add>from kombu.async import timer as _timer
<add>
<ide>
<ide> from celery import signals
<del>from celery.utils import timer2
<ide>
<ide> from . import base
<ide>
<ide> d... | 2 |
Javascript | Javascript | remove isoldie check in tests | 962c38b2a6780fb89dc66d3f2d5ed341d19a22b2 | <ide><path>test/specs/__helpers.js
<ide> axios = require('../../index');
<ide> jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000;
<ide> jasmine.getEnv().defaultTimeoutInterval = 20000;
<ide>
<del>// Is this an old version of IE that lacks standard objects like DataView, ArrayBuffer, FormData, etc.
<del>isOldIE = /MSIE (8|9)\.0... | 1 |
PHP | PHP | trim exception message in database manager | a6bb5f26a3d72a823166cb816bfa45afcb10fb19 | <ide><path>laravel/database/manager.php
<ide> public static function connection($connection = null)
<ide>
<ide> if (is_null($config))
<ide> {
<del> throw new \OutOfBoundsException("Database connection is not defined for connection [$connection].");
<add> throw new \OutOfBoundsException("Connection is not d... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.