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 |
|---|---|---|---|---|---|
Python | Python | simplify serializer.fields with @cached_property | 7232586c7caf66f20f56b36f1c6a9c9648eb94a4 | <ide><path>rest_framework/serializers.py
<ide> class Serializer(BaseSerializer, metaclass=SerializerMetaclass):
<ide> 'invalid': _('Invalid data. Expected a dictionary, but got {datatype}.')
<ide> }
<ide>
<del> @property
<add> @cached_property
<ide> def fields(self):
<ide> """
<ide> ... | 1 |
Javascript | Javascript | log a warning when serialization fails | 00065741d256f487e7e51a3882386da8f2ede5e3 | <ide><path>lib/cache/FileCachePlugin.js
<ide> const path = require("path");
<ide> const createHash = require("../util/createHash");
<ide> const makeSerializable = require("../util/makeSerializable");
<del>const { serializer } = require("../util/serialization");
<add>const { serializer, NOT_SERIALIZABLE } = require("../... | 3 |
Javascript | Javascript | store the rotation in the `pdfhistory` | e135c03123870c3ab4919d6ee74a662b504ea579 | <ide><path>web/app.js
<ide> let PDFViewerApplication = {
<ide>
<ide> if (this.pdfHistory.initialBookmark) {
<ide> this.initialBookmark = this.pdfHistory.initialBookmark;
<add>
<add> this.initialRotation = this.pdfHistory.initialRotation;
<ide> }
<ide> }
<ide>
<ide> let PDFView... | 4 |
Ruby | Ruby | add frameworks helper to formula | 1c12c8b7a22fb9b4dd4b3cff0f3071711e7d6e2d | <ide><path>Library/Homebrew/formula.rb
<ide> def man8; man+'man8' end
<ide> def sbin; prefix+'sbin' end
<ide> def share; prefix+'share' end
<ide>
<add> def frameworks; prefix+'Frameworks' end
<ide> def kext_prefix; prefix+'Library/Extensions' end
<ide>
<ide> # configuration needs to be pre... | 1 |
Javascript | Javascript | convert the thumbnail view to es6 syntax | 733a58a31588bb953300bd05bac27325d1766396 | <ide><path>web/pdf_thumbnail_view.js
<ide> import {
<ide> import { getOutputScale, NullL10n } from './ui_utils';
<ide> import { RenderingStates } from './pdf_rendering_queue';
<ide>
<del>var THUMBNAIL_WIDTH = 98; // px
<del>var THUMBNAIL_CANVAS_BORDER_WIDTH = 1; // px
<add>const MAX_NUM_SCALING_STEPS = 3;
<add>const T... | 1 |
Javascript | Javascript | update some bengali translations | ce8f2f11c41fdad6cec51716e6392614468ede7e | <ide><path>src/locale/bn.js
<ide> numberMap = {
<ide> };
<ide>
<ide> export default moment.defineLocale('bn', {
<del> months : 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
<del> monthsShort : 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split('_... | 2 |
Python | Python | resolve linting issues | d2795dd26d7483ea0de119ae135eab0a94cf23d8 | <ide><path>rest_framework/fields.py
<ide> def get_component(obj, attr_name):
<ide>
<ide>
<ide> def readable_datetime_formats(formats):
<del> format = ', '.join(formats).replace(ISO_8601,
<del> 'YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z]')
<add> format = ', '.join(formats).replace(
<add> ... | 10 |
Javascript | Javascript | require ember-testing if present | e63f618538f783bb6fa100178ad79b690e1dec0d | <ide><path>packages/ember/lib/main.js
<ide> require('ember-extension-support');
<ide> // ES6TODO: resolve this via import once ember-application package is ES6'ed
<ide> requireModule('ember-extension-support');
<ide>
<add>// do this to ensure that Ember.Test is defined properly on the global
<add>// if it is present.
... | 1 |
Python | Python | add schema and read-only endpoints for pools | 3de68501b7a76dce24bfd8a8b4659eedcf7ac29c | <ide><path>airflow/api_connexion/endpoints/pool_endpoint.py
<ide> # KIND, either express or implied. See the License for the
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<add>from flask import request
<ide>
<del># TODO(mik-laj): We have to implement it.
<del># Do you ... | 6 |
Python | Python | fix optimizer loading | fb0c96f39a1c3f8a2cec8844effab950c6503088 | <ide><path>spacy/language.py
<ide> def update(self, docs, golds, drop=0., sgd=None, losses=None):
<ide> return
<ide> if sgd is None:
<ide> if self._optimizer is None:
<del> self._optimizer = Optimizer(Model.ops, 0.001,
<del> beta1... | 1 |
Python | Python | enable the tensorflow backend | c2407fdd88719eed66227815188b5908eca4b3a7 | <ide><path>transformers/pipelines.py
<ide> def __call__(self, *texts, **kwargs):
<ide> texts = [(text['question'], text['context']) for text in texts]
<ide>
<ide> inputs = self.tokenizer.batch_encode_plus(
<del> # texts, add_special_tokens=True, return_tensors='tf' if is_tf_available() else ... | 1 |
Python | Python | fix minor typo | fa29f7dd1fd8878368f885c4d62f9b92ff3382ea | <ide><path>rest_framework/serializers.py
<ide> def get_field_names(self, declared_fields, info):
<ide> # If `Meta.exclude` is included, then remove those fields.
<ide> for field_name in exclude:
<ide> assert field_name in fields, (
<del> "The field '{field_name... | 1 |
Ruby | Ruby | add vs code to list of fallback editors | 84a7c2ba7d1b45764cc5381f67d63eec1448de9f | <ide><path>Library/Homebrew/utils.rb
<ide> def which_editor
<ide> editor = Homebrew::EnvConfig.editor
<ide> return editor if editor
<ide>
<del> # Find Atom, Sublime Text, Textmate, BBEdit / TextWrangler, or vim
<del> editor = %w[atom subl mate edit vim].find do |candidate|
<add> # Find Atom, Sublime T... | 1 |
Text | Text | move @fishrock123 to a previous releaser | 4d6c861800cc6ac1dc6a0fd9d3a8b0053baec62a | <ide><path>README.md
<ide> GPG keys used to sign Node.js releases:
<ide> `77984A986EBC2AA786BC0F66B01FBB92821C587A`
<ide> * **James M Snell** <jasnell@keybase.io>
<ide> `71DCFD284A79C3B38668286BC97EC7A07EDE3FC1`
<del>* **Jeremiah Senkpiel** <fishrock@keybase.io>
<del>`FD3A5288F042B6850C66B31F09FE44734EB7990... | 1 |
Javascript | Javascript | fix 404 for warning urls | bbb272f3aae322bf2b13db862356d78957bafac7 | <ide><path>www/gatsby-node.js
<ide> exports.createPages = async ({graphql, boundActionCreators}) => {
<ide> slug.includes('community/') ||
<ide> slug.includes('contributing/') ||
<ide> slug.includes('docs/') ||
<del> slug.includes('tutorial/')
<add> slug.includes('tutorial/') ||
<add> s... | 2 |
Python | Python | update tf whisper doc tests | 8e4ee28e34466ca8355d014e2e1302df6b1e03f9 | <ide><path>src/transformers/models/whisper/modeling_tf_whisper.py
<ide> def call(
<ide> >>> model = TFWhisperModel.from_pretrained("openai/whisper-base")
<ide> >>> feature_extractor = WhisperFeatureExtractor.from_pretrained("openai/whisper-base")
<ide> >>> ds = load_dataset("hf-internal-testi... | 1 |
Javascript | Javascript | improve console tests | 7809f386b03d6f2f570fe41060a7ef6e158f5cdb | <ide><path>test/parallel/test-console-assign-undefined.js
<ide> 'use strict';
<ide>
<del>// Should be above require, because code in require read console
<del>// what we are trying to avoid
<del>// set should be earlier than get
<add>// Patch global.console before importing modules that may modify the console
<add>// ... | 2 |
Python | Python | remove irrelevant code in convolutional | af84a6879d2496f97244474dfe0284b50f2edf28 | <ide><path>keras/layers/convolutional.py
<ide> def get_config(self):
<ide> return {"name": self.__class__.__name__,
<ide> "stride": self.stride,
<ide> "pool_length": self.pool_length,
<del> "ignore_border": self.ignore_border,
<del> "subsample_length... | 1 |
Ruby | Ruby | update info on browser connection limits [ci skip] | 0d8b552c684b25c2c8993ddd3430434fec890b16 | <ide><path>actionview/lib/action_view/helpers/asset_url_helper.rb
<ide> module Helpers
<ide> # stylesheet_link_tag("application")
<ide> # # => <link href="http://assets.example.com/assets/application.css" media="screen" rel="stylesheet" />
<ide> #
<del> # Browsers typically open at most two simultane... | 1 |
Mixed | Text | reduce the memory footprint of fixtures accessors | 05d80fc24f03ca5310931eacefdc247a393dd861 | <ide><path>activerecord/CHANGELOG.md
<add>* Reduce the memory footprint of fixtures accessors.
<add>
<add> Until now fixtures accessors were eagerly defined using `define_method`.
<add> So the memory usage was directly dependent of the number of fixtures and
<add> test suites.
<add>
<add> Instead fixtures... | 2 |
PHP | PHP | port the inflector fixes from to 3.0 | 64fef6a7199e8010375477bbc3c899338b905241 | <ide><path>src/Utility/Inflector.php
<ide> public static function humanize($string, $delimiter = '_')
<ide> $result = static::_cache($cacheKey, $string);
<ide>
<ide> if ($result === false) {
<del> $result = ucwords(str_replace($delimiter, ' ', $string));
<add> $result = explode(' ... | 2 |
Go | Go | change return value for validatemountmode | c99ed5ae5d0a9167ead73a798b02600ad40651f2 | <ide><path>daemon/volumes_unix.go
<ide> func parseBindMount(spec string, mountLabel string, config *runconfig.Config) (*
<ide> case 3:
<ide> bind.Destination = arr[1]
<ide> mode := arr[2]
<del> isValid, isRw := volume.ValidateMountMode(mode)
<del> if !isValid {
<add> if !volume.ValidMountMode(mode) {
<ide> r... | 3 |
Text | Text | correct the web socket url when creating consumer | 8a1ff2f41440b2ec6855ccf1e26c7b554eb95937 | <ide><path>guides/source/action_cable_overview.md
<ide> WebSocket is opened.
<ide>
<ide> ```js
<ide> // Specify a different URL to connect to
<add>createConsumer('wss://example.com/cable')
<add>// Or when using websockets over HTTP
<ide> createConsumer('https://ws.example.com/cable')
<ide>
<ide> // Use a function to ... | 1 |
Javascript | Javascript | fix shallow dependency resolution | 361f3f30d3ae2b48429a1738d309a2693c4a1038 | <ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js
<ide> class ResolutionRequest {
<ide> const visited = Object.create(null);
<ide> visited[entry.hash()] = true;
<ide>
<add> response.pushDependency(entry);
<ide> const collect = (mod) => {
<del> ... | 2 |
Mixed | Ruby | remove special handling for activerecordstore | 27285e7881daa9ccf8b90be26027e1211722da3e | <ide><path>actionpack/lib/action_dispatch.rb
<ide> module Session
<ide> autoload :CookieStore, "action_dispatch/middleware/session/cookie_store"
<ide> autoload :MemCacheStore, "action_dispatch/middleware/session/mem_cache_store"
<ide> autoload :CacheStore, "action_dispatch/middleware/... | 4 |
Ruby | Ruby | use lib helper | 24d8791dfbf21c5f536f555e6ccb8ee9d6ba19c0 | <ide><path>Library/Homebrew/keg_fix_install_names.rb
<ide> def install_names_for file, options, reject_proc=default_reject_proc
<ide> end
<ide>
<ide> def find_dylib name
<del> (join 'lib').find do |pn|
<del> break pn if pn.basename == Pathname.new(name)
<del> end
<add> lib.find { |pn| break pn if pn.... | 1 |
Ruby | Ruby | reuse available belongs_to? method | 3ef8d536855075c6b7f1b15d150b701f63d1111c | <ide><path>activerecord/lib/active_record/associations/has_many_through_association.rb
<ide> def build_record(attributes)
<ide> end
<ide>
<ide> def target_reflection_has_associated_record?
<del> !(through_reflection.macro == :belongs_to && owner[through_reflection.foreign_key].blank?)
<add> ... | 3 |
Text | Text | add xray goals | 83ad524ddf5b693b286e028e64dde409c953abb5 | <ide><path>docs/focus/2018-02-12.md
<ide> - Use fuzzy-finder support internally in our day-to-day workflows to assess usability
<ide> - Treesitter
<ide> - Xray
<add> * @nathansobo (and @as-cii part time) will be focusing the next 12 weeks on a prototype for [a new Electron-based text editor](https://github.com/ato... | 1 |
Python | Python | add trunc test | b2d4064b4dc4373d8a94d7b1b87eab3f75f430f3 | <ide><path>numpy/core/tests/test_ufunc.py
<ide> def test_all_ufunc(self) :
<ide> n 1 log1p flts + M
<ide> n 1 sqrt flts + M real x < 0 raises error
<ide> n 1 ceil real + M
<add> n 1 trunc real + M
<ide> ... | 1 |
Ruby | Ruby | check `tap_audit_exception` only if tap is present | 55cc1eb8b098283cd280cf91974890fadcf808f4 | <ide><path>Library/Homebrew/formula_cellar_checks.rb
<ide> def check_binary_arches(formula)
<ide> end
<ide> mismatches -= compatible_universal_binaries
<ide>
<del> universal_binaries_expected = tap_audit_exception(:universal_binary_allowlist, formula.name)
<add> universal_binaries_expected =
<add> f... | 1 |
Ruby | Ruby | add broken test, revealing test helper flaw | cad8be3278923c926df2424b7a22be489ed03ded | <ide><path>Library/Homebrew/test/cask/config_spec.rb
<ide> end
<ide>
<ide> context "when installing a cask and then adding a global default dir" do
<del> let(:config) { described_class.new(default: { appdir: "/default/path/before/adding/fontdir" }) }
<add> let(:config) {
<add> json = <<~EOS
<add> ... | 1 |
Python | Python | fix view_name argument to hyperlinkedidentityfield | 2a89cb4fb7aac72a02ad17704553fe7dfb3ea10e | <ide><path>rest_framework/fields.py
<ide> class HyperlinkedIdentityField(Field):
<ide> def __init__(self, *args, **kwargs):
<ide> # TODO: Make this mandatory
<ide> self.view_name = kwargs.pop('view_name', None)
<del> super(HyperlinkedRelatedField, self).__init__(*args, **kwargs)
<add> ... | 1 |
Java | Java | update copyright date | fba92c012042a48443a169cf3f42dabb542aa8c1 | <ide><path>spring-test/src/main/java/org/springframework/mock/env/MockEnvironment.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not u... | 9 |
PHP | PHP | add hints for artisan facade methods | 00d1aeb38f319f6621cbda88f6f90c445880af3f | <ide><path>src/Illuminate/Support/Facades/Artisan.php
<ide> use Illuminate\Contracts\Console\Kernel as ConsoleKernelContract;
<ide>
<ide> /**
<del> * @method static int handle(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output = null)
<del> * @method stati... | 1 |
Text | Text | fix errors in sample code comments | 3bd6d8d7f544164728ff4cfd2c37cff4877a8cb1 | <ide><path>doc/api/buffer.md
<ide> console.log(buf.readDoubleBE(0));
<ide> console.log(buf.readDoubleLE(0));
<ide> // Prints: 5.447603722011605e-270
<ide> console.log(buf.readDoubleLE(1));
<del>// Throws an exception: RangeError: Index out of range
<del>console.log(buf.readDoubleLE(1, true));
<del>// Warning: reads pas... | 1 |
PHP | PHP | add missing deprecation note | 945ff040408273986b27f773563c0cf4856e443d | <ide><path>src/Database/Expression/ValuesExpression.php
<ide> public function getValues()
<ide> * Sets the values to be inserted. If no params are passed, then it returns
<ide> * the currently stored values
<ide> *
<add> * @deprecated 3.4.0 Use setValues()/getValues() instead.
<ide> * @param arr... | 1 |
Javascript | Javascript | add spec for settings | aaa4127332ae858ae5d3ea40d1fcfbbe9c3ef5b0 | <ide><path>Libraries/Settings/NativeSettingsManager.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> * @format
<add> */
<add>
<a... | 2 |
Ruby | Ruby | allow 'brew install' on relative paths | 2e340625f83ad73ede4b9d1c15f8e5951fbe29fe | <ide><path>Library/Homebrew/formula.rb
<ide> def self.factory name
<ide> install_type = :from_url
<ide> else
<ide> # Check if this is a name or pathname
<del> path = Pathname.new(name)
<del> if path.absolute?
<del> # For absolute paths, just require the path
<add> if name.include? ... | 1 |
Text | Text | reorganize examples folder readme | 3c19add103066bc58970810e32050051ac1a7399 | <ide><path>examples/README.md
<ide> # Keras examples directory
<ide>
<del>[addition_rnn.py](addition_rnn.py)
<del>Implementation of sequence to sequence learning for performing addition of two numbers (as strings).
<add>## Vision models examples
<ide>
<del>[antirectifier.py](antirectifier.py)
<del>Demonstrates how to... | 1 |
Javascript | Javascript | fix skew transformation | b850af7a394275588585e0a07c30ab225e0269fe | <ide><path>Libraries/Utilities/MatrixMath.js
<ide> var MatrixMath = {
<ide> },
<ide>
<ide> reuseSkewXCommand: function(matrixCommand, radians) {
<del> matrixCommand[4] = Math.sin(radians);
<del> matrixCommand[5] = Math.cos(radians);
<add> matrixCommand[4] = Math.tan(radians);
<ide> },
<ide>
<ide> reu... | 1 |
Text | Text | fix wrong output titile for docker volume ls | 43023a5428062829c16725e5833da763fc19353a | <ide><path>docs/extend/index.md
<ide> started without error.
<ide> ```bash
<ide> $ docker volume ls
<ide>
<del> DRIVER NAME
<add> DRIVER VOLUME NAME
<ide> vieux/sshfs sshvolume
<ide> ```
<ide>
<ide><path>docs/reference/commandline/volume_ls.md
<ide> regardless o... | 2 |
Python | Python | support none num_boxes and refactor serving | 3abc1d1c8d4ff6a84bbe5592f42f37844990616d | <ide><path>official/vision/beta/modeling/maskrcnn_model.py
<ide> def call(self,
<ide>
<ide> model_mask_outputs = self._call_mask_outputs(
<ide> model_box_outputs=model_outputs,
<del> features=intermediate_outputs['features'],
<add> features=model_outputs['decoder_features'],
<ide> cur... | 4 |
Ruby | Ruby | use alias_method instead of an extra ivar | 7b550b9486b53f8987e18a2e27b7e8c137391a94 | <ide><path>Library/Homebrew/requirement.rb
<ide> class Requirement
<ide> include Dependable
<ide>
<del> attr_reader :tags, :name, :option_name
<add> attr_reader :tags, :name
<add> alias_method :option_name, :name
<ide>
<ide> def initialize(tags=[])
<ide> @tags = tags
<ide> @tags << :build if self.class... | 1 |
Go | Go | fix inability to detach service | bc4160be3869f96b701f2e7bff8579be5be2b085 | <ide><path>libnetwork/client/service.go
<ide> func (cli *NetworkCli) CmdServiceDetach(chain string, args ...string) error {
<ide> return err
<ide> }
<ide>
<add> sandboxID, err := lookupSandboxID(cli, containerID)
<add> if err != nil {
<add> return err
<add> }
<add>
<ide> serviceID, err := lookupServiceID(cli, nn,... | 1 |
Javascript | Javascript | remove unused variable | 9f2f56dd40528a1b620860e13adc80eba970b573 | <ide><path>test/sequential/test-http-writable-true-after-close.js
<ide> const server = createServer(common.mustCall((req, res) => {
<ide> }));
<ide> }).listen(0, () => {
<ide> external = get(`http://127.0.0.1:${server.address().port}`);
<del> external.on('error', common.mustCall((err) => {
<add> externa... | 1 |
Javascript | Javascript | remove duplicate character in regex group | 8a7c2e50f1885d514686071f52ec98b68473cf8b | <ide><path>scripts/rollup/build.js
<ide> function getPlugins(
<ide> // Remove 'use strict' from individual source files.
<ide> {
<ide> transform(source) {
<del> return source.replace(/['"]use strict['"']/g, '');
<add> return source.replace(/['"]use strict["']/g, '');
<ide> },
<ide> ... | 1 |
Javascript | Javascript | fix arguments order in napi test_exception | c03c6e920f03a6be69612a46355dad36c948c5b4 | <ide><path>test/addons-napi/test_exception/test.js
<ide> const test_exception = (function() {
<ide>
<ide> // Test that the native side successfully captures the exception
<ide> let returnedError = test_exception.returnException(throwTheError);
<del> assert.strictEqual(theError, returnedError);
<add> assert.stric... | 1 |
PHP | PHP | fix doc block errors | 4af26371435d7be5ec0f0cdbbf92c1cdcdc1c3f4 | <ide><path>src/View/Form/EntityContext.php
<ide> *
<ide> * - `entity` The entity this context is operating on.
<ide> * - `table` Either the ORM\Table instance to fetch schema/validators
<del> * from, an array of table instances in the case of an form spanning
<add> * from, an array of table instances in the case... | 1 |
Python | Python | add links to source code in documentation | 0f86b45918bc68821905f6ac0894874eef564fed | <ide><path>docs/autogen.py
<ide> def get_method_signature(method):
<ide> return st + ')'
<ide>
<ide>
<del>def class_to_link(cls):
<add>def class_to_docs_link(cls):
<ide> module_name = cls.__module__
<ide> assert module_name[:6] == 'keras.'
<ide> module_name = module_name[6:]
<ide> link = ROOT ... | 1 |
Javascript | Javascript | fix benchmark for url | f3257dd3ead29e620b2bc096d54b07b12ec5c5a3 | <ide><path>benchmark/url/legacy-vs-whatwg-url-searchparams-parse.js
<ide> const common = require('../common.js');
<ide> const { URLSearchParams } = require('url');
<ide> const querystring = require('querystring');
<del>const inputs = require('../fixtures/url-inputs.js').searchParams;
<add>const searchParams = require('... | 6 |
Text | Text | use space instead of tab | 344ccf2d454a43d9b0f93a63f567c0fcff310d62 | <ide><path>src/ORM/README.md
<ide> class ArticlesTable extends Table
<ide> public function initialize()
<ide> {
<ide> $this->setEntityClass(Article::class);
<del> $this->belongsTo('Users', ['className' => UsersTable::class]);
<add> $this->belongsTo('Users', ['className' => UsersTable::class])... | 1 |
Ruby | Ruby | eliminate runtime conditional | 175e92c9ac674536ad6c54937b54ef2e77217f08 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> class Mapper
<ide> class Constraints < Endpoint #:nodoc:
<ide> attr_reader :app, :constraints
<ide>
<del> def initialize(app, constraints, dispatcher_p)
<add> SERVE = ->(app, req) { app.serve req }
<add> CALL = ->(app... | 1 |
Text | Text | update installation instructions (see #727) | 853130bcf8c55b5b50d32ac8ca004abdb5fa8cc7 | <ide><path>examples/keras_parikh_entailment/README.md
<ide> First, install [Keras](https://keras.io/), [spaCy](https://spacy.io) and the spa
<ide> English models (about 1GB of data):
<ide>
<ide> ```bash
<del>pip install keras spacy
<add>pip install https://github.com/fchollet/keras/archive/master.zip
<add>pip install ... | 1 |
Javascript | Javascript | add test for d3.event re-export on node. related | 17fbf8d4b16ed19303d71dee4881d871bddbc037 | <ide><path>test/d3-test.js
<ide> var tape = require("tape"),
<ide> d3 = require("../"),
<add> d3Selection = require("d3-selection"),
<ide> testExports = require("./test-exports");
<ide>
<ide> tape("version matches package.json", function(test) {
<ide> test.equal(d3.version, require("../package.json").vers... | 1 |
Go | Go | fix image filter | 5ee69eb470316eead3af20725de54d3c47a47a62 | <ide><path>daemon/images.go
<ide> func (daemon *Daemon) Images(filterArgs, filter string, all bool) ([]*types.Imag
<ide> return nil, fmt.Errorf("Invalid filter 'dangling=%s'", imageFilters.Get("dangling"))
<ide> }
<ide> }
<del>
<ide> if danglingOnly {
<ide> allImages = daemon.imageStore.Heads()
<ide> } else {... | 2 |
Python | Python | add additional assertion | 53e5cf48c7469b01548f0c36ba870a7fd5c5f55b | <ide><path>libcloud/test/storage/test_local.py
<ide> def test_objects_success(self):
<ide> objects = self.driver.list_container_objects(container=container)
<ide> self.assertEqual(len(objects), 5)
<ide>
<add> prefix = os.path.join('path', 'invalid')
<add> objects = self.driver.list_contai... | 1 |
Javascript | Javascript | fix some mmdloader bugs | 0eaa2c674298858bdb5be7bd002c36d7e84bbe14 | <ide><path>examples/js/loaders/MMDLoader.js
<ide> THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress
<ide> m.skinning = geometry.bones.length > 0 ? true : false;
<ide> m.morphTargets = geometry.morphTargets.length > 0 ? true : false;
<ide> m.lights = true;
<del> m.side = p.side;... | 1 |
Text | Text | add v3.14.0-beta.5 to changelog | acc2e37274dc398fe38713fe27b3fa97fcddece9 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.14.0-beta.5 (October 14, 2019)
<add>
<add>- [#18476](https://github.com/emberjs/ember.js/pull/18476) [BUGFIX] Ensure model can be observed by sync observers
<add>- [#18458](https://github.com/emberjs/ember.js/pull/18458) [BUGFIX] Using query params help... | 1 |
Text | Text | use new vips syntax for named variant examples | b6766b847bee0bff9500bf74fed42b07563a1c8d | <ide><path>guides/source/active_storage_overview.md
<ide> You can configure specific variants per attachment by calling the `variant` meth
<ide> ```ruby
<ide> class User < ApplicationRecord
<ide> has_one_attached :avatar do |attachable|
<del> attachable.variant :thumb, resize: "100x100"
<add> attachable.variant... | 1 |
PHP | PHP | add more context about invalid subqueries | ab5ee8aa5b8d1fb9e2d1acd7bf7a6962e7db2581 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function fromRaw($expression, $bindings = [])
<ide> *
<ide> * @param \Closure|\Illuminate\Database\Query\Builder|string $query
<ide> * @return array
<add> *
<add> * @throws \InvalidArgumentException
<ide> */
<ide> protect... | 2 |
PHP | PHP | handle nested options in multi-checkbox widget | 709b54e9c9b4abdcd5c2379b452127a918d5accb | <ide><path>src/View/Widget/MultiCheckboxWidget.php
<ide> class MultiCheckboxWidget implements WidgetInterface
<ide> * - `checkboxWrapper` Renders the containing div/element for
<ide> * a checkbox and its label. Accepts the `input`, and `label`
<ide> * variables.
<add> * - `fieldset` Renders the f... | 2 |
Ruby | Ruby | simplify conditions within apply_join_dependency | 1dcb1ccc9d3d4f41e8f1a76ff3465f708189dd2f | <ide><path>activerecord/lib/active_record/relation/finder_methods.rb
<ide> def apply_join_dependency(relation, join_dependency)
<ide> relation = association.join_relation(relation)
<ide> end
<ide>
<del> limitable_reflections = using_limitable_reflections?(join_dependency.reflections)
<del>
<del> ... | 1 |
Javascript | Javascript | fix ordinalmonth testing | 69be3663c8c9b5092b2440ace7006eac103faa49 | <ide><path>src/test/locale/ko.js
<ide> test('format', function (assert) {
<ide> var a = [
<ide> ['YYYY년 MMMM Do dddd a h:mm:ss', '2010년 2월 14일 일요일 오후 3:25:50'],
<ide> ['ddd A h', '일 오후 3'],
<del> ['M Mo MM MMMM MMM', '2 2일 02 2월 2월... | 1 |
Text | Text | expand canvas article from a stub | f2e384ce68dcaba357c2e10a836c50feb066f08d | <ide><path>guide/english/html/elements/canvas-tag/index.md
<ide> title: Canvas Tag
<ide> ---
<ide> ## Canvas Tag
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/html/elements/canvas-tag/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
<add><!--... | 1 |
PHP | PHP | fix cs error | 67cd7218e78e068c3d8024ee55776ef8dafb25ca | <ide><path>src/Core/PluginInterface.php
<ide> */
<ide> namespace Cake\Core;
<ide>
<del>
<ide> /**
<ide> * Plugin Interface
<ide> */
<ide><path>src/Utility/Crypto/OpenSsl.php
<ide> */
<ide> namespace Cake\Utility\Crypto;
<ide>
<del>
<ide> /**
<ide> * OpenSSL implementation of crypto features for Cake\Utility\Secu... | 2 |
Text | Text | remove problematic example from readme | d214f41afad2c51c8873a01632f962194f0a0c62 | <ide><path>README.md
<ide> nonetheless.
<ide> arbitrary JavaScript code. That is already the highest level of privilege
<ide> possible.
<ide>
<del>- [#12141](https://github.com/nodejs/node/pull/12141): _buffer: zero fill
<del> Buffer(num) by default_. The documented `Buffer()` behavior was prone to
<del> [misuse... | 1 |
Javascript | Javascript | add test for | d2698d182271c77bc5bca44a9cee625d9372301f | <ide><path>test/simple/test-http-client-agent.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 ... | 1 |
Python | Python | fix tr_loss rescaling factor using global_step | 87b9ec3843f7f9a81253075f92c9e6537ecefe1c | <ide><path>examples/run_classifier.py
<ide> def main():
<ide> else:
<ide> loss.backward()
<ide>
<del> tr_loss += loss.item() * args.gradient_accumulation_steps
<add> tr_loss += loss.item()
<ide> nb_tr_examples += input_ids.size(0)
<ide> ... | 2 |
Ruby | Ruby | log instrumentation name for exists? queries | 618300f05a71bf728d9495c8f8226a8724c5a023 | <ide><path>activerecord/lib/active_record/relation/finder_methods.rb
<ide> def exists?(id = nil)
<ide> else
<ide> relation = relation.where(table[primary_key].eq(id)) if id
<ide> end
<del>
<del> connection.select_value(relation.to_sql) ? true : false
<add>
<add> connection.select_val... | 2 |
Python | Python | add test utils for temp file and temp dir | 9692c98f5715f91e1e10fdae1f218035557c6c95 | <ide><path>spacy/tests/util.py
<ide>
<ide> from ..tokens import Doc
<ide> from ..attrs import ORTH, POS, HEAD, DEP
<add>from ..compat import path2str
<ide>
<ide> import pytest
<ide> import numpy
<add>import tempfile
<add>import shutil
<add>import contextlib
<add>from pathlib import Path
<ide>
<ide>
<ide> MODELS = {... | 1 |
Text | Text | add missing whitespace | 73cf859e26608e1310c07df789553fa2b6cd1f8b | <ide><path>docs/api-guide/permissions.md
<ide> This permission is suitable if you want your API to only be accessible to regist
<ide>
<ide> ## IsAdminUser
<ide>
<del>The `IsAdminUser` permission class will deny permission to any user, unless `user.is_staff`is `True` in which case permission will be allowed.
<add>The ... | 1 |
PHP | PHP | use container contract | 6980562a507693630bc7572c9756c0dee4a0ce7c | <ide><path>src/Illuminate/Database/Connectors/ConnectionFactory.php
<ide> <?php namespace Illuminate\Database\Connectors;
<ide>
<ide> use PDO;
<del>use Illuminate\Container\Container;
<add>use Illuminate\Contracts\Container\Container;
<ide> use Illuminate\Database\MySqlConnection;
<ide> use Illuminate\Database\SQLiteC... | 1 |
Javascript | Javascript | remove the opacity css hook | 865469f5e60f55feb28469bb0a7526dd22f04b4e | <ide><path>src/css.js
<ide> jQuery.extend( {
<ide>
<ide> // Add in style property hooks for overriding the default
<ide> // behavior of getting and setting a style property
<del> cssHooks: {
<del> opacity: {
<del> get: function( elem, computed ) {
<del> if ( computed ) {
<del>
<del> // We should always get... | 1 |
Java | Java | improve invocablehandlermethod error handling | 1051fe7bee67f17e284d4f8cb144242bdaf27b31 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/InvocableHandlerMethod.java
<ide> /*
<del> * Copyright 2002-2021 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "L... | 2 |
Text | Text | fix embeddedappios documentation | 16a29b0b8701697372ed40dfa4874d66edb6f77c | <ide><path>docs/EmbeddedAppIOS.md
<ide> NSURL *jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.b
<ide> // curl http://localhost:8081/index.ios.bundle -o main.jsbundle
<ide> RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
<ide> ... | 1 |
Javascript | Javascript | remove unnecessary changes | 34d90b9bbd070455f0ca4b46016559b48b495e0c | <ide><path>examples/counter/containers/App.js
<ide> import React from 'react';
<ide> import CounterApp from './CounterApp';
<del>import { createStore } from 'redux/index';
<add>import { createStore } from 'redux';
<ide> import { Provider } from 'redux/react';
<ide> import * as reducers from '../reducers';
<ide>
<ide><... | 4 |
Mixed | Ruby | fix method string#upcase_first | f2489f493b794ee83a86e746b6240031acb8994e | <ide><path>activesupport/CHANGELOG.md
<ide> * Add `String#upcase_first` method.
<ide>
<del> *Glauco Custódio*
<add> *Glauco Custódio*, *bogdanvlviv*
<ide>
<ide> * Prevent `Marshal.load` from looping infinitely when trying to autoload a constant
<ide> which resolves to a different name.
<ide><path>activ... | 4 |
Text | Text | use null instead of '' in ternary expression | b74e53c3ca730f1997dbfb53555348aeaa6db2ee | <ide><path>docs/tips/03-if-else-in-JSX.md
<ide> React.createElement("div", {id: if (condition) { 'msg' }}, "Hello World!");
<ide> That's not valid JS. You probably want to make use of a ternary expression:
<ide>
<ide> ```js
<del>ReactDOM.render(<div id={condition ? 'msg' : ''}>Hello World!</div>, mountNode);
<add>Reac... | 1 |
Java | Java | correct the javadoc for exchangeresult.geturl() | bc2e1b375e399c0cc6300c32351458110eee6d4f | <ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/ExchangeResult.java
<ide> public HttpMethod getMethod() {
<ide> }
<ide>
<ide> /**
<del> * Return the request headers that were sent to the server.
<add> * Return the URI of the request.
<ide> */
<ide> public URI getUrl() {
<ide> ... | 1 |
Javascript | Javascript | fix frisian locale tests | 894ab4f845977c3c9bce2262befb225ffed341e4 | <ide><path>test/locale/fy.js
<ide> exports['locale:fy'] = {
<ide> },
<ide>
<ide> 'parse' : function (test) {
<del> var tests = 'jannewaris jan._febrewaris feb._maart mrt._april apr._maaie mai._juny jun._july jul._augustus aug._septimber sep._oktober okt._novimber nov._desimber dec.'.split('_'), i;
<add>... | 1 |
Javascript | Javascript | add doc for native event in doc | da850be6f0e0452b92e10a787d85b67b315b690c | <ide><path>Libraries/vendor/react/browser/eventPlugins/PanResponder.js
<ide> var currentCentroidY = TouchHistoryMath.currentCentroidY;
<ide> * It provides a predictable wrapper of the responder handlers provided by the
<ide> * [gesture responder system](/react-native/docs/gesture-responder-system.html).
<ide> * For ... | 1 |
Javascript | Javascript | use process.browser instead of env probing | 04ce3e7174e67b8bcc8749ecc2bb437edc953fb3 | <ide><path>examples/with-mobx/pages/_app.js
<ide> class MyMobxApp extends App {
<ide>
<ide> constructor(props) {
<ide> super(props)
<del> const isServer = typeof window === 'undefined'
<add> const isServer = !process.browser;
<ide> this.mobxStore = isServer
<ide> ? props.initialMobxState
<ide> ... | 2 |
Go | Go | remove dependency on image | 9be1ec60d4d4fe63d5ef6e1ec36c585b548a00d0 | <ide><path>builder/builder.go
<ide> import (
<ide>
<ide> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/daemon"
<del> "github.com/docker/docker/image"
<ide> "github.com/docker/docker/runconfig"
<ide> )
<ide>
<ide> type Backend interface {
<ide> // TODO: use digest reference instead of name
<... | 6 |
Javascript | Javascript | use sourcemapdevtool default | dd2c4de1cef7c29df9da3a6fb9e5ec1b31c6430d | <ide><path>lib/WebpackOptionsApply.js
<ide> class WebpackOptionsApply extends OptionsApply {
<ide> new ModuleInfoHeaderPlugin().apply(compiler);
<ide> }
<ide>
<del> if (options.devtool && options.devtool.includes("source-map")) {
<del> const hidden = options.devtool.includes("hidden");
<del> const inline = o... | 1 |
Javascript | Javascript | add test case | d6f4ccca8ec2ceef1a9929b3222c3164f61302cb | <ide><path>test/configCases/externals/this/index.js
<add>afterEach(done => {
<add> (function() { delete this.EXTERNAL_TEST_GLOBAL; })();
<add> done();
<add>});
<add>
<add>it("should import an external value assigned to global this", function() {
<add> (function() { this.EXTERNAL_TEST_GLOBAL = 42; })();
<add> // eslint-... | 2 |
Ruby | Ruby | remove nonexistent adapter | f5ae2894c34d72bbf9c358ccedf5dfd20d7641fd | <ide><path>activejob/lib/active_job/queue_adapters.rb
<ide> module ActiveJob
<ide> # | Sneakers | Yes | Yes | No | Queue | Queue | No |
<ide> # | Sucker Punch | Yes | Yes | No | No | No | No |
<ide> # | Active Job Inline | No | Yes | ... | 1 |
Python | Python | remove duplicated code in quicklook plugin | 7dfe1f41390389f0d0a42d1da1d3ce3f745ff538 | <ide><path>glances/plugins/glances_quicklook.py
<ide> def msg_curse(self, args=None, max_width=10):
<ide> msg = '{0:3}{1} '.format(key.upper(), cpu['cpu_number'])
<ide> else:
<ide> msg = '{0:4} '.format(cpu['cpu_number'])
<del> ret.a... | 1 |
Mixed | Ruby | use the port environment variable for rails server | 306c14c41135dc8d308967821d0bb26cf4bb7ecd | <ide><path>railties/CHANGELOG.md
<add>* `rails server` will now honour the `PORT` environment variable
<add>
<add> *David Cornu*
<add>
<ide> * Plugins generated using `rails plugin new` are now generated with the
<ide> version number set to 0.1.0.
<ide>
<ide><path>railties/lib/rails/commands/server.rb
<ide>... | 3 |
Go | Go | add missing locks in agent and service code | fac86cf69ab8f18341f75b26b4fb721dde139f6a | <ide><path>libnetwork/agent.go
<ide> import (
<ide> "net"
<ide> "os"
<ide> "sort"
<add> "sync"
<ide>
<ide> "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/pkg/stringid"
<ide> type agent struct {
<ide> advertiseAddr string
<ide> epTblCancel func()
<ide> driverCancelFuncs map[string][]func... | 6 |
Ruby | Ruby | make work bin/test scripts with line filter | 2047877f4ed31168317948a848b25a5c36f32c7b | <ide><path>tools/test.rb
<ide> Bundler.setup
<ide>
<ide> require "rails/test_unit/minitest_plugin"
<add>require "rails/test_unit/line_filtering"
<add>require "active_support/test_case"
<ide>
<ide> module Rails
<ide> # Necessary to get rerun-snippts working.
<ide> def self.root
<ide> end
<ide> end
<ide>
<add>Acti... | 1 |
Javascript | Javascript | remove side effect of mmdloader.loadvmds() | 0c82ecf8a5b7878ac0dff9e94c621692315d1b6f | <ide><path>examples/js/loaders/MMDLoader.js
<ide> THREE.MMDLoader.prototype.loadVmds = function ( urls, callback, onProgress, onEr
<ide> var scope = this;
<ide>
<ide> var vmds = [];
<add> urls = urls.slice();
<ide>
<ide> function run () {
<ide> | 1 |
Go | Go | use default driver for ipam if none | c3220641274bb99e120a1b3dd64078f02589717b | <ide><path>daemon/cluster/convert/network.go
<ide> func BasicNetworkCreateToGRPC(create basictypes.NetworkCreateRequest) swarmapi.N
<ide> Attachable: create.Attachable,
<ide> }
<ide> if create.IPAM != nil {
<add> driver := create.IPAM.Driver
<add> if driver == "" {
<add> driver = "default"
<add> }
<ide> ns.... | 1 |
Java | Java | add native support for @exceptionhandler | 45939720f2b96cf2784e9c34a6ca0d627f8353b7 | <add><path>spring-web/src/main/java/org/springframework/web/bind/annotation/ControllerMappingReflectiveProcessor.java
<del><path>spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMappingReflectiveProcessor.java
<ide> import org.springframework.core.annotation.AnnotatedElementUtils;
<ide> import or... | 5 |
Javascript | Javascript | remove opacity in shapepath | 55b733f634283cf087142279918005722b954b75 | <ide><path>src/extras/core/ShapePath.js
<ide> function ShapePath() {
<ide> this.type = 'ShapePath';
<ide>
<ide> this.color = new Color();
<del> this.opacity = 1.0;
<ide>
<ide> this.subPaths = [];
<ide> this.currentPath = null; | 1 |
Python | Python | fix linter errors | 917cdda0edd1764a6e77f48f424263898ff85bce | <ide><path>numpy/core/tests/test_multiarray.py
<ide> def test_non_c_contiguous(self):
<ide> assert_array_equal(x.view('<i2'), expected)
<ide>
<ide>
<del>## Test various array sizes that hit different code paths in quicksort-avx512
<del>@pytest.mark.parametrize("N", \
<del> [8,16,24,32,48,64,96,128,151,... | 1 |
Ruby | Ruby | remove unnecessary line break and quotes | 06332d58676f58ef7970d3a8e0affe38f13feba3 | <ide><path>railties/lib/rails/generators.rb
<ide> def invoke(namespace, args = ARGV, config = {})
<ide> options = sorted_groups.flat_map(&:last)
<ide> suggestion = Rails::Command::Spellchecker.suggest(namespace.to_s, from: options)
<ide> puts <<~MSG
<del> Could not find gen... | 1 |
Mixed | Python | add spacy as a matcher attribute | 03ae77e6035cb6f7e328221b0974a462db1a2734 | <ide><path>spacy/matcher/_schemas.py
<ide> "title": "Token is the first in a sentence",
<ide> "$ref": "#/definitions/boolean_value",
<ide> },
<add> "SPACY": {
<add> "title": "Token has a trailing space",
<add> "$ref": "#/definitions/bo... | 3 |
Python | Python | add sanity-checks to be run at import time | 553c865599116aa20079aaf10142ff60ab8b0ae0 | <ide><path>numpy/__init__.py
<ide> def pkgload(*packages, **options):
<ide> from numpy.testing._private.pytesttester import PytestTester
<ide> test = PytestTester(__name__)
<ide> del PytestTester
<add>
<add>
<add> def _sanity_check():
<add> """
<add> Quick sanity checks for common bugs caus... | 1 |
Ruby | Ruby | drop homebrew cask tap names from list | a4590f394e71384bb7acd780bc51ff184d8f2e1e | <ide><path>Library/Homebrew/extend/os/mac/search.rb
<ide> def search_casks(string_or_regex)
<ide> end
<ide> end
<ide>
<del> cask_tokens = Tap.flat_map(&:cask_tokens)
<add> cask_tokens = Tap.flat_map(&:cask_tokens).map do |c|
<add> c.sub(%r{^homebrew/cask.*/}, "")
<add> e... | 1 |
Text | Text | remove lineheight example from docs | e17387e7f0f6f6279286fefda72ea1b90409a23c | <ide><path>docs/configuring-and-extending.md
<ide> Or you can use `observeConfig` to track changes from a view object.
<ide> ```coffeescript
<ide> class MyView extends View
<ide> initialize: ->
<del> @observeConfig 'editor.lineHeight', (lineHeight) =>
<del> @adjustLineHeight(lineHeight)
<add> @observeConfi... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.