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 | use a string instead of an array in renderbuffer | da77c583999a93abb3f53eef07d0a90fd51d6113 | <ide><path>packages/ember-views/lib/system/render_buffer.js
<ide> Ember.RenderBuffer = function(tagName) {
<ide>
<ide> Ember._RenderBuffer = function(tagName) {
<ide> this.tagNames = [tagName || null];
<del> this.buffer = [];
<add> this.buffer = "";
<ide> };
<ide>
<ide> Ember._RenderBuffer.prototype =
<ide> Ember... | 1 |
Python | Python | add a unit test for spacing/nextafter equivalence | 0ccabc7abbd446ea5ce0b301db2e33392f734fe6 | <ide><path>numpy/core/tests/test_umath.py
<ide> def test_nextafter():
<ide> assert np.isnan(np.nextafter(one, np.nan))
<ide> assert np.nextafter(one, one) == one
<ide>
<add>def test_nextafter_vs_spacing():
<add> # XXX: spacing does not handle long double yet
<add> for t in [np.float32, np.float64... | 1 |
PHP | PHP | ignore last few silencers for code sniffer | 74836a1c301b26e49e07c381c9ae5e494e70154e | <ide><path>lib/Cake/Network/CakeResponse.php
<ide> protected function _isActive() {
<ide> * @return boolean
<ide> */
<ide> protected function _clearBuffer() {
<add> //@codingStandardsIgnoreStart
<ide> return @ob_end_clean();
<add> //@codingStandardsIgnoreEnd
<ide> }
<ide>
<ide> /**
<ide> protected function _cl... | 1 |
Ruby | Ruby | allow searching casks by name | b265d870ed30a97a1c37e9267efe648d661761c0 | <ide><path>Library/Homebrew/cmd/search.rb
<ide> def search(argv = ARGV)
<ide> return
<ide> end
<ide>
<del> if args.remaining.empty?
<add> if args.remaining.empty? && !args.desc?
<ide> puts Formatter.columns(Formula.full_names.sort)
<del> elsif args.desc?
<del> query = args.remaining.join(... | 3 |
PHP | PHP | remove prefix from tagged cache get. unnecessary | 5281856203bdafc48025b2c4bf6dfef0a5496678 | <ide><path>src/Illuminate/Cache/TaggedCache.php
<ide> public function forever($key, $value)
<ide> * Remove an item from the cache.
<ide> *
<ide> * @param string $key
<del> * @return void
<add> * @return bool
<ide> */
<ide> public function forget($key)
<ide> {
<del> $this->store->forget($this->taggedItemK... | 1 |
Ruby | Ruby | improve readability of some specs | 3b0c1ef9c4b4a255d5069316f05338e404d5bd96 | <ide><path>railties/test/generators/app_generator_test.rb
<ide> def test_web_console_with_edge_option
<ide> end
<ide>
<ide> def test_generation_runs_bundle_install
<del> assert_generates_with_bundler
<add> generator([destination_root], {})
<add>
<add> assert_bundler_command_called("install")
<ide> end
<... | 1 |
Java | Java | add a datevalue headerresultmatcher | cf2aed9d005686a7955c2ccfd42c07526b24fbd3 | <ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/result/HeaderResultMatchers.java
<ide> import static org.hamcrest.MatcherAssert.*;
<ide> import static org.springframework.test.util.AssertionErrors.*;
<ide>
<add>import java.text.SimpleDateFormat;
<add>import java.util.Date;
<add>import java.ut... | 2 |
Javascript | Javascript | avoid repeated creation of a simple regexp object | be29fc44e0bbd18563775bf75182a740f2b8332c | <ide><path>web/text_layer_builder.js
<ide> var FIND_SCROLL_OFFSET_LEFT = -400;
<ide> var MAX_TEXT_DIVS_TO_RENDER = 100000;
<ide> var RENDER_DELAY = 200; // ms
<ide>
<add>var NonWhitespaceRegexp = /\S/;
<add>
<add>function isAllWhitespace(str) {
<add> return !NonWhitespaceRegexp.test(str);
<add>}
<add>
<ide> /**
<ide>... | 1 |
Text | Text | add yosuke-furukawa as collaborator | 2b63bcd247362ec5eb46e235a0eec68d7724a6d7 | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Johan Bergström** ([@jbergstroem](https://github.com/jbergstroem)) <bugs@bergstroem.nu>
<ide> * **Roman Reiss** ([@silverwind](https://github.com/silverwind)) <me@silverwind.io>
<ide> * **Petka Antonov** ([@petka... | 1 |
Ruby | Ruby | include wheel in resources | 7a19eed48d715a9d4456b435b20283123f8f37c0 | <ide><path>Library/Homebrew/utils/pypi.rb
<ide> def update_python_resources!(formula, version: nil, package_name: nil, extra_pac
<ide>
<ide> extra_packages = (extra_packages || []).map { |p| Package.new p }
<ide> exclude_packages = (exclude_packages || []).map { |p| Package.new p }
<del> exclude_packages +=... | 1 |
Javascript | Javascript | use correct name for custom inspect symbol | 66d54467c526eb201c029650f778daac7a64b1fa | <ide><path>lib/buffer.js
<ide> Buffer.prototype.equals = function equals(b) {
<ide>
<ide>
<ide> // Override how buffers are presented by util.inspect().
<del>Buffer.prototype[internalUtil.inspectSymbol] = function inspect() {
<add>Buffer.prototype[internalUtil.customInspectSymbol] = function inspect() {
<ide> var s... | 2 |
Python | Python | update train_parser example | 3fba897e0f09eeb1a08c836e76d3c99085fd6f76 | <ide><path>examples/training/train_parser.py
<ide> def train_parser(nlp, train_data, left_labels, right_labels):
<ide> random.shuffle(train_data)
<ide> loss = 0
<ide> for words, heads, deps in train_data:
<del> doc = nlp.make_doc(words)
<add> doc = Doc(nlp.vocab, words=word... | 1 |
Python | Python | remove redundant function and fix formatting | 02d0ac5cab5fecab55d706be36034dce55dbe36d | <ide><path>spacy/lang/lex_attrs.py
<ide> def is_punct(text):
<ide> return True
<ide>
<ide>
<del>def is_space(text):
<del> return text.isspace()
<del>
<del>
<ide> def is_ascii(text):
<ide> for char in text:
<ide> if ord(char) >= 128:
<ide> def like_num(text):
<ide> return False
<ide>
<ide>
<de... | 1 |
Ruby | Ruby | bring tests up-to-date | c8d4af5611ee1c8a0927bdf9fe39e6c4af2c22d7 | <ide><path>Library/Homebrew/test/test_updater.rb
<ide> def test_init_homebrew
<ide> updater = RefreshBrewMock.new
<ide> updater.git_repo = false
<ide> updater.in_prefix_expect("git init")
<del> updater.in_prefix_expect("git pull #{RefreshBrewMock::REPOSITORY_URL} master")
<add> updater.in_pr... | 1 |
Text | Text | fix translation of counting cards into russian | 6a30c175d33826d4cb3da41afa6ec748e192e3b6 | <ide><path>curriculum/challenges/russian/02-javascript-algorithms-and-data-structures/basic-javascript/counting-cards.russian.md
<ide> id: 565bbe00e9cc8ac0725390f4
<ide> title: Counting Cards
<ide> challengeType: 1
<ide> videoUrl: ''
<del>localeTitle: Счетные карточки
<add>localeTitle: Считаем карты
<ide> ---
<ide>
<i... | 1 |
Java | Java | remove dup trace_tag_react_apps | 07153dd8f21a8cfa326d6309dfd7c71a37bbce09 | <ide><path>ReactAndroid/src/main/java/com/facebook/systrace/Systrace.java
<ide> public class Systrace {
<ide> public static final long TRACE_TAG_REACT_JAVA_BRIDGE = 0L;
<ide> public static final long TRACE_TAG_REACT_APPS = 0L;
<ide> public static final long TRACE_TAG_REACT_FRESCO = 0L;
<del> public static final ... | 1 |
Text | Text | add missed new features in changelog | d7cbceb3c83d1cabd500d5cd7656915cb9d65ed2 | <ide><path>CHANGELOG.md
<ide> https://iojs.org/api/buffer.html
<ide> - Added `Buffer.compare()` which does a `memcmp()` on two Buffer instances. Instances themselves also have a `compare()`.
<ide> - Added `buffer.equals()` that checks equality of Buffers by their contents.
<ide> - `SlowBuffer`'s semantics were tweaked.... | 1 |
Text | Text | add directions for subscribing to mailing list | ead10917d63fb2385d1a9325e5220ad3e8b81ad4 | <ide><path>share/doc/homebrew/README.md
<ide> Read [CONTRIBUTING.md](/CONTRIBUTING.md).
<ide>
<ide> ### Community Forums
<ide> - [@MacHomebrew](https://twitter.com/MacHomebrew)
<del>- [homebrew-discuss@googlegroups.com](mailto:homebrew-discuss@googlegroups.com) ([archive](https://groups.google.com/forum/#!forum/home... | 1 |
Ruby | Ruby | remove useless conditional | 7779e63371d1248bce5f30ebbae43e13ee7abb6a | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> def hash_filter(params, filter)
<ide> # Declaration { user: :name } or { user: [:name, :age, { address: ... }] }.
<ide> params[key] = each_element(value) do |element|
<ide> if element.is_a?(Parameters)
<de... | 1 |
Go | Go | add audit_write cap | 29ecc95c31ecfe15e3b3d8db94cea1c555e526a3 | <ide><path>daemon/execdriver/native/template/default_template.go
<ide> func New() *libcontainer.Config {
<ide> "NET_BIND_SERVICE",
<ide> "SYS_CHROOT",
<ide> "KILL",
<add> "AUDIT_WRITE",
<ide> },
<ide> Namespaces: map[string]bool{
<ide> "NEWNS": true, | 1 |
Text | Text | improve changelog entry | 05edaa660eb32ce387658d13cc7ea2f4a449ed68 | <ide><path>actionview/CHANGELOG.md
<del>* Deprecate `AbstractController::Base::parent_prefixes`. Override `AbstractController::Base::local_prefixes` when you want to change where to find views.
<add>* Deprecate `AbstractController::Base.parent_prefixes`.
<add> Override `AbstractController::Base.local_prefixes` whe... | 1 |
Go | Go | remove some redundant fmt.sprintf()'s | abaf4b25d749f3ce225719651e4eee160d659f55 | <ide><path>integration-cli/daemon/daemon.go
<ide> func (d *Daemon) inspectFilter(name, filter string) (string, error) {
<ide> }
<ide>
<ide> func (d *Daemon) inspectFieldWithError(name, field string) (string, error) {
<del> return d.inspectFilter(name, fmt.Sprintf(".%s", field))
<add> return d.inspectFilter(name, "."+f... | 2 |
Text | Text | move mylesborins to tsc emeritus | f00258720bd2f62b11ee164b0cd1853a375f8862 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Matteo Collina** <<matteo.collina@gmail.com>> (he/him)
<ide> * [mhdawson](https://github.com/mhdawson) -
<ide> **Michael Dawson** <<midawson@redhat.com>> (he/him)
<del>* [MylesBorins](https://github.com/MylesBorins) ... | 1 |
Ruby | Ruby | inline anemic methods | 5f50f4d63b3a11a31ae2999053cdaf12134f84ee | <ide><path>activestorage/app/models/active_storage/variant.rb
<ide> def processed?
<ide> end
<ide>
<ide> def process
<del> blob.open do |image|
<del> transform(image) { |output| upload(output) }
<add> blob.open do |input|
<add> variation.transform(input, format: format) do |output|
<add... | 1 |
Javascript | Javascript | remove unused parameter | fa64d4a0f3b36fc738128c98862f83cf4ec91ea3 | <ide><path>src/renderers/shaders/ShaderChunk/envmap_physical_pars_fragment.glsl.js
<ide> export default /* glsl */`
<ide>
<ide> #endif
<ide>
<del> vec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {
<add> vec3 getLightProbeIndirectIrradiance( const in GeometricConte... | 2 |
Javascript | Javascript | add examples when calling $http outside $apply | 2bb0e1a6041a079b4c456eb6bae4ec5a206582eb | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> * XMLHttpRequest will transparently follow it, meaning that the error callback will not be
<ide> * called for such responses.
<ide> *
<del> * If your $http is scheduled from something that doesn't cause a $digest to fire then your
<de... | 1 |
Ruby | Ruby | make build_bottle an explicit installer mode | 42e60f7c59d3c479670d357f7a10356e0b195410 | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def install_formula f
<ide> fi = FormulaInstaller.new(f)
<ide> fi.ignore_deps = ARGV.ignore_deps? || ARGV.interactive?
<ide> fi.only_deps = ARGV.only_deps?
<add> fi.build_bottle = ARGV.build_bottle?
<ide> fi.prelude
<ide> fi.install
<ide> fi.ca... | 4 |
Text | Text | use es6 and webpacker in actioncable guide | 195da08ef7c187ac2ae743519973701dde4dc5a8 | <ide><path>guides/source/action_cable_overview.md
<ide> established using the following JavaScript, which is generated by default by Rai
<ide> #### Connect Consumer
<ide>
<ide> ```js
<del>// app/assets/javascripts/cable.js
<del>//= require action_cable
<del>//= require_self
<del>//= require_tree ./channels
<add>// app... | 1 |
Text | Text | use markdown quotes instead <tt> tag | d4794fd9d2bd29473c0968eec7054667abdf0c7a | <ide><path>guides/source/association_basics.md
<ide> The `create_association` method returns a new object of the associated type. Thi
<ide>
<ide> ##### `create_association!(attributes = {})`
<ide>
<del>Does the same as <tt>create_association</tt> above, but raises <tt>ActiveRecord::RecordInvalid</tt> if the record is... | 1 |
Javascript | Javascript | use `kemptyobject` in various places | 917fcb20442c449f386efb10134c852f3aa5b7b1 | <ide><path>lib/internal/blob.js
<ide> const {
<ide> const {
<ide> createDeferredPromise,
<ide> customInspectSymbol: kInspect,
<add> kEmptyObject,
<ide> } = require('internal/util');
<ide> const { inspect } = require('internal/util/inspect');
<ide>
<ide> class Blob {
<ide> * }} [options]
<ide> * @constructs ... | 4 |
Javascript | Javascript | fix typo in test-http2-invalidheaderfield.js | 7e99dbcf975f309930ba56d5c19248b918fa55ba | <ide><path>test/parallel/test-http2-invalidheaderfield.js
<ide> if (!common.hasCrypto) { common.skip('missing crypto'); }
<ide>
<ide> // Check for:
<ide> // Spaced headers
<del>// Psuedo headers
<add>// Pseudo headers
<ide> // Capitalized headers
<ide>
<ide> const http2 = require('http2'); | 1 |
Python | Python | add option to print loss | 52372782bebb67001f5a39d35f7bc936d737fcf5 | <ide><path>official/utils/misc/keras_utils.py
<ide> def on_batch_end(self, batch, logs=None):
<ide> "BenchmarkMetric: {'global step':%d, 'time_taken': %f,"
<ide> "'examples_per_second': %f}" %
<ide> (self.global_steps, elapsed_time, examples_per_second))
<add> tf.compat.v1.logging.inf... | 1 |
Text | Text | add vision example to readme | e630dad555e2021b6217bfb74886e09e3a2e16d0 | <ide><path>README.md
<ide> To immediately use a model on a given input (text, image, audio, ...), we provid
<ide>
<ide> The second line of code downloads and caches the pretrained model used by the pipeline, while the third evaluates it on the given text. Here the answer is "positive" with a confidence of 99.97%.
<ide... | 1 |
PHP | PHP | apply fixes from styleci | c2a1fcf81a6a1791575c86e3c68ecf01e5efe077 | <ide><path>tests/Notifications/NotificationSendQueuedNotificationTest.php
<ide> public function testSerializationOfNormalNotifiable()
<ide> public function testNotificationCanSetMaxExceptions()
<ide> {
<ide> $notifiable = new NotifiableUser;
<del> $notification = new class {
<add> $notific... | 1 |
Text | Text | reorganize the "following along" instructions | 1ce562ead352dc139aa622bdce0f40df7070df5e | <ide><path>docs/tutorial/tutorial.md
<ide> You can also follow along locally if you don't mind a few extra steps:
<ide>
<ide> 1. Make sure you have a recent version of [Node.js](https://nodejs.org/en/) installed.
<ide> 2. Follow the [installation instructions](/react/docs/installation.html#creating-a-new-application) ... | 1 |
Go | Go | fix minor typo | 96d8c3584cedddfc69c01bda3f512d495b21ac47 | <ide><path>pkg/version/version.go
<ide> func (v Version) compareTo(other Version) int {
<ide> return 0
<ide> }
<ide>
<del>// LessThan checks if a version is less than another version
<add>// LessThan checks if a version is less than another
<ide> func (v Version) LessThan(other Version) bool {
<ide> return v.compare... | 1 |
Text | Text | update active job basics [ci skip] | 3e055671a1059a8bf496d03da1e1800f7143c16f | <ide><path>guides/source/active_job_basics.md
<ide> Here is a noncomprehensive list of documentation:
<ide>
<ide> - [Sidekiq](https://github.com/mperham/sidekiq/wiki/Active-Job)
<ide> - [Resque](https://github.com/resque/resque/wiki/ActiveJob)
<add>- [Sneakers](https://github.com/jondot/sneakers/wiki/How-To:-Rails-Bac... | 1 |
Ruby | Ruby | use formula tap methods | 6a0720071e32b7e4031db0470bc9fb3056f46a75 | <ide><path>Library/Homebrew/formula_versions.rb
<ide> def initialize(f)
<ide> end
<ide>
<ide> def repository
<del> @repository ||= if f.path.to_s =~ HOMEBREW_TAP_DIR_REGEX
<del> HOMEBREW_REPOSITORY/"Library/Taps/#$1/#$2"
<add> @repository ||= if f.tap?
<add> HOMEBREW_LIBRARY.join("Taps", f.tap)
<id... | 1 |
Javascript | Javascript | add prop type for view | 05ec85043b86fa94408e7a72b55123a60c90426c | <ide><path>Libraries/Components/AppleTV/TVViewPropTypes.js
<ide> var TVViewPropTypes = {
<ide>
<ide> };
<ide>
<add>export type TVViewProps = {
<add> isTVSelectable?: bool,
<add> hasTVPreferredFocus?: bool,
<add> tvParallaxProperties?: Object,
<add> tvParallaxShiftDistanceX?: number,
<add> tvParallaxShiftDistance... | 4 |
Text | Text | add react day berlin | 79074a805994ed1ff9d2a80e502490f0d67f2702 | <ide><path>docs/community/conferences.md
<ide> October 25–27, Bratislava, Slovakia
<ide>
<ide> [Website](https://reactiveconf.com)
<ide>
<add>### React Day Berlin
<add>December 2, Berlin, Germany
<add>
<add>[Website](https://reactday.berlin) - [Twitter](https://twitter.com/reactdayberlin) - [Facebook](https://www.fac... | 1 |
Javascript | Javascript | change devtools hook warning message | 969f4b5bb8302afb3eb1656784130651047c3718 | <ide><path>packages/react-devtools-shared/src/__tests__/setupTests.js
<ide> env.beforeEach(() => {
<ide> // $FlowFixMe
<ide> console.error = (...args) => {
<ide> const firstArg = args[0];
<del> if (firstArg === 'Warning: React DevTools encountered an error: %s') {
<add> if (
<add> firstArg === 'Warni... | 2 |
Javascript | Javascript | fix variable referencing in template string | 10596b601e503512457131b3a09edadbb680d3ec | <ide><path>lib/internal/worker.js
<ide> class Worker extends EventEmitter {
<ide> this[kDispose]();
<ide> if (customErr) {
<ide> debug(`[${threadId}] failing with custom error ${customErr} \
<del> and with reason {customErrReason}`);
<add> and with reason ${customErrReason}`);
<ide> th... | 1 |
Javascript | Javascript | remove side effects from validatesettings | ce265908eb84aa0518dcadc57d59e7fbb353a256 | <ide><path>lib/internal/http2/core.js
<ide> function pingCallback(cb) {
<ide> // 6. enablePush must be a boolean
<ide> // All settings are optional and may be left undefined
<ide> const validateSettings = hideStackFrames((settings) => {
<del> settings = { ...settings };
<add> if (settings === undefined) return;
<ide>... | 1 |
Text | Text | fix a typo in util.isdeepstrictequal | ff471da1a81b325508b265290f7b49649030f4a6 | <ide><path>doc/api/util.md
<ide> added: v9.0.0
<ide> * `val2` {any}
<ide> * Returns: {boolean}
<ide>
<del>Returns `true` if there is deep strict equality between `val` and `val2`.
<add>Returns `true` if there is deep strict equality between `val1` and `val2`.
<ide> Otherwise, returns `false`.
<ide>
<ide> See [`assert... | 1 |
PHP | PHP | fix errors in 24 hour time generation | 5114160f672d4138187851312bf5a90fb55f0870 | <ide><path>src/View/Widget/DateTime.php
<ide> protected function _hourSelect($options = []) {
<ide> ];
<ide> $is24 = $options['format'] == 24;
<ide>
<del> $defaultEnd = $is24 ? 24 : 12;
<del> $options['start'] = max(1, $options['start']);
<add> $defaultStart = $is24 ? 0 : 1;
<add> $defaultEnd = $is24 ? 23 : 12... | 2 |
Python | Python | add french stopwords | 1b3b0436606968b7796bf18db37b520332ce2414 | <ide><path>spacy/fr/language_data.py
<ide> def strings_to_exc(orths):
<ide> }
<ide>
<ide> STOP_WORDS = set("""
<add>a à â abord absolument afin ah ai aie ailleurs ainsi ait allaient allo allons
<add>allô alors anterieur anterieure anterieures apres après as assez attendu au
<add>aucun aucune aujourd aujourd'hui aupres... | 1 |
Ruby | Ruby | reduce direct accesses of the args collection | fad2e26395f09d78e51a9da5965e28d72b3c9cc2 | <ide><path>Library/Homebrew/build_options.rb
<ide> def without? name
<ide> end
<ide>
<ide> def bottle?
<del> args.include? '--build-bottle'
<add> include? "build-bottle"
<ide> end
<ide>
<ide> def head?
<del> args.include? '--HEAD'
<add> include? "HEAD"
<ide> end
<ide>
<ide> def devel?
<del> ... | 1 |
PHP | PHP | fix failing tests | d24fa9685976c73421df985ae1e7670e54b16b37 | <ide><path>src/Database/Schema/SqlserverSchema.php
<ide> public function truncateTableSql(Table $table)
<ide> if (in_array($column['type'], ['integer', 'biginteger'])) {
<ide> $queries[] = sprintf(
<ide> "DBCC CHECKIDENT('%s', RESEED, 0)",
<del> $name
<... | 2 |
Javascript | Javascript | define mixin properties in prototype | 1912279ca03767ac7def4ce2dc1428fcc888ff94 | <ide><path>packages/ember-metal/lib/mixin.js
<ide> Ember.Mixin = function() { return initMixin(this, arguments); };
<ide>
<ide> Mixin = Ember.Mixin;
<ide>
<add>Mixin.prototype = {
<add> properties: null,
<add> mixins: null,
<add> ownerConstructor: null
<add>};
<add>
<ide> Mixin._apply = applyMixin;
<ide>
<ide> Mi... | 1 |
Text | Text | add license info to german bert models | 5920a37a4c95b667f0a2962c4b4e727c323b07fa | <ide><path>model_cards/bert-base-german-cased-README.md
<ide> ---
<ide> language: de
<add>license: mit
<ide> thumbnail: https://static.tildacdn.com/tild6438-3730-4164-b266-613634323466/german_bert.png
<ide> tags:
<ide> - exbert
<ide><path>model_cards/deepset/bert-base-german-cased-oldvocab/README.md
<ide> ---
<ide> lan... | 2 |
Mixed | Python | add masking layer | cb1d25fddbd575158af655daeae810b54a153ec7 | <ide><path>docs/sources/layers/core.md
<ide> model.compile(loss='categorical_crossentropy', optimizer='rmsprop')
<ide> model.fit([X_train, X_train], Y_train, batch_size=128, nb_epoch=20, validation_data=([X_test, X_test], Y_test))
<ide> ```
<ide>
<add>## Masking
<add>```python
<add>keras.layers.core.Masking(mask_value... | 3 |
Ruby | Ruby | avoid error on head-only formulae | 97c12b4bbfa5a4e2d4ff0a1e59788b12503a698c | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_specs
<ide> ]
<ide>
<ide> throttled.each_slice(2).to_a.map do |a, b|
<add> next if formula.stable.nil?
<ide> version = formula.stable.version.to_s.split(".").last.to_i
<ide> if @strict && a.include?(formula.name) && version... | 1 |
Go | Go | use docker media type for plugin layers | a876ede24f4c6e13717f56897fb34f6c73914602 | <ide><path>integration/plugin/common/plugin_test.go
<ide> import (
<ide> "strings"
<ide> "testing"
<ide>
<add> "github.com/containerd/containerd/images"
<add> "github.com/containerd/containerd/remotes/docker"
<ide> "github.com/docker/docker/api/types"
<add> "github.com/docker/docker/pkg/jsonmessage"
<ide> "github.... | 2 |
Python | Python | catch deprecation warnings in tests | e0c2e4f302128aaf51e81d927e525edb87da48b7 | <ide><path>celery/tests/test_app/test_loaders.py
<ide>
<ide> import os
<ide> import sys
<add>import warnings
<ide>
<ide> from celery import task
<ide> from celery import loaders
<ide> from celery.app import app_or_default
<del>from celery.exceptions import ImproperlyConfigured
<add>from celery.exceptions import CPend... | 1 |
Text | Text | add the missing author name [ci skip] | 5f038aa488e6eda5b3b7d5794befd7c433480da5 | <ide><path>activerecord/CHANGELOG.md
<ide>
<ide> Closes #13775.
<ide>
<add> *Takashi Kokubun*
<add>
<ide> * Add ActiveRecord `#second_to_last` and `#third_to_last` methods.
<ide>
<ide> *Brian Christian* | 1 |
PHP | PHP | escape path directly in build command | 4f9192ffc410c5bf976f0ea6093f37fd0745283a | <ide><path>src/Illuminate/Console/Scheduling/Event.php
<ide> protected function callAfterCallbacks(Container $container)
<ide> */
<ide> public function buildCommand()
<ide> {
<add> $output = ProcessUtils::escapeArgument($this->output);
<ide> $redirect = $this->shouldAppendOutput ? ' >> ' : '... | 2 |
Javascript | Javascript | update removeclippedsubviews prop default value | 3622e44426431988cd03ffeb6d1e4671207c9a2a | <ide><path>Libraries/Components/ScrollView/ScrollView.js
<ide> var ScrollView = React.createClass({
<ide> * Experimental: When true, offscreen child views (whose `overflow` value is
<ide> * `hidden`) are removed from their native backing superview when offscreen.
<ide> * This can improve scrolling perfor... | 1 |
Python | Python | remove duplicated line | 5dfec704da2c1495247c7abe81a620c6e9913ea5 | <ide><path>src/transformers/models/gpt_neo/modeling_gpt_neo.py
<ide> def forward(
<ide> else:
<ide> past_length = past_key_values[0][0].size(-2)
<ide>
<del> device = input_ids.device if input_ids is not None else inputs_embeds.device
<ide> if position_ids is None:
<ide> p... | 1 |
Javascript | Javascript | fix broken assertions caused by qunit update | 8b6aeae52d4c53a53468678ccd45e9dda9665004 | <ide><path>test/unit/manipulation.js
<ide> function testAppend( valueObj ) {
<ide> equal( result.text(), defaultText + "buga", "Check if text appending works" );
<ide> equal( jQuery("#select3").append( valueObj("<option value='appendTest'>Append Test</option>") ).find("option:last-child").attr("value"), "appendTest",... | 2 |
Python | Python | use create_index_name for fk names | b6784bee66d2c310318b6553fbb13f5707475efb | <ide><path>django/db/backends/schema.py
<ide> def create_model(self, model):
<ide> to_column = field.rel.to._meta.get_field(field.rel.field_name).column
<ide> self.deferred_sql.append(
<ide> self.sql_create_fk % {
<del> "name": '%s_refs_%s_%x' %... | 1 |
PHP | PHP | throw exception on `manytophp()` for non-numeric | c642ca7bd99f17ac6dc0a9974dace00ff4bd1470 | <ide><path>src/Database/Type/IntegerType.php
<ide> public function toPHP($value, Driver $driver)
<ide> public function manyToPHP(array $values, array $fields, Driver $driver)
<ide> {
<ide> foreach ($fields as $field) {
<del> if (!isset($values[$field]) || !is_numeric($values[$field])) {
<add>... | 2 |
Javascript | Javascript | remove more trailing commas | ea26cf46fdfb1f5308530d8c9570e7ff2b78a4c2 | <ide><path>packages/ember-metal/tests/mixin/observer_test.js
<ide> testBoth('observing chain with property in mixin applied later', function(get, s
<ide> count: 0,
<ide> foo: Ember.observer(function() {
<ide> set(this, 'count', get(this, 'count')+1);
<del> }, 'bar.baz'),
<add> }, 'bar.baz')
<ide> ... | 1 |
Javascript | Javascript | add socket.fd compatibility hack to dgram_uv.js | bba432f00e0513faa124cdb0606fa050663e63ca | <ide><path>lib/dgram_uv.js
<ide> function Socket(type, listener) {
<ide> this._receiving = false;
<ide> this._bound = false;
<ide> this.type = type;
<add> this.fd = null; // compatibility hack
<ide>
<ide> if (typeof listener === 'function')
<ide> this.on('message', listener);
<ide> Socket.prototype._stopR... | 1 |
Ruby | Ruby | add missing require | 8ae20e65827fb2670ca0aaf253247c5e0afc6021 | <ide><path>activejob/test/cases/logging_test.rb
<ide> require "jobs/logging_job"
<ide> require "jobs/overridden_logging_job"
<ide> require "jobs/nested_job"
<add>require "jobs/rescue_job"
<ide> require "models/person"
<ide>
<ide> class LoggingTest < ActiveSupport::TestCase | 1 |
Javascript | Javascript | add tests for using jquery.speed directly | cb80b42b91bc7d0e75fb842f733878b848a8b9c1 | <ide><path>test/unit/effects.js
<ide> QUnit.test( "Show/hide/toggle and display: inline", function( assert ) {
<ide> } );
<ide> } );
<ide>
<add>function testEasing( assert, speed, easing, complete ) {
<add> assert.expect( 4 );
<add> var options = jQuery.speed( speed, easing, complete );
<add>
<add> assert.equal( opti... | 1 |
Text | Text | update documenation over page_size | c2cbda43b90159d4a98ad6afdb1e6594247bfcd5 | <ide><path>docs/api-guide/pagination.md
<ide> This pagination style accepts a single number page number in the request query p
<ide>
<ide> #### Setup
<ide>
<del>To enable the `PageNumberPagination` style globally, use the following configuration, modifying the `DEFAULT_PAGE_SIZE` as desired:
<add>To enable the `PageN... | 1 |
Python | Python | add horizontal_flip_box in box_ops | 473f34aa986af7aba63509f4e25be1269f084619 | <ide><path>official/vision/ops/box_ops.py
<ide> def denormalize_boxes(boxes, image_shape):
<ide> return denormalized_boxes
<ide>
<ide>
<add>def horizontal_flip_boxes(normalized_boxes):
<add> """Flips normalized boxes horizontally.
<add>
<add> Args:
<add> normalized_boxes: the boxes in normalzied coordinates.... | 1 |
Go | Go | go vet fix for testfilllicense | 1082d1edf2819620961978ad7efe19bc28620a16 | <ide><path>daemon/licensing_test.go
<ide> import (
<ide> "gotest.tools/assert"
<ide> )
<ide>
<del>func TestfillLicense(t *testing.T) {
<add>func TestFillLicense(t *testing.T) {
<ide> v := &types.Info{}
<ide> d := &Daemon{
<ide> root: "/var/lib/docker/", | 1 |
Go | Go | fix vet warning in archive.go | fc20658a01e362a5bb484b439a0a1004c51f9ff5 | <ide><path>pkg/chrootarchive/archive.go
<ide> func Untar(tarArchive io.Reader, dest string, options *archive.TarOptions) error
<ide> cmd := reexec.Command("docker-untar", dest)
<ide> cmd.Stdin = decompressedArchive
<ide> cmd.ExtraFiles = append(cmd.ExtraFiles, r)
<del> var output bytes.Buffer
<del> cmd.Stdout = &out... | 1 |
Javascript | Javascript | remove extra spaces | a56da51a384ca301fc9c608eadc608e6449fafe4 | <ide><path>benchmark/buffers/buffer-write.js
<ide> var bench = common.createBenchmark(main, {
<ide> millions: [1]
<ide> });
<ide>
<del>const INT8 = 0x7f;
<del>const INT16 = 0x7fff;
<del>const INT32 = 0x7fffffff;
<del>const UINT8 = (INT8 * 2) + 1;
<add>const INT8 = 0x7f;
<add>const INT16 = 0x7fff;
<add>const INT... | 30 |
Javascript | Javascript | reapply changes from | 9c8161ba81220143e7f87bd901697e46b14d8968 | <ide><path>packages/react-devtools-extensions/src/backend.js
<ide> function welcome(event) {
<ide> ) {
<ide> return;
<ide> }
<del> const extensionId = event.data.extensionId;
<ide>
<ide> window.removeEventListener('message', welcome);
<ide>
<del> setup(window.__REACT_DEVTOOLS_GLOBAL_HOOK__, extensionId);
... | 2 |
PHP | PHP | update method description | 772887a8b3eef2966dc9580993c5fcd28a164721 | <ide><path>src/Collection/Iterator/NoChildrenIterator.php
<ide> public function hasChildren(): bool
<ide> }
<ide>
<ide> /**
<del> * Returns null as there are no children for this iteration level
<add> * Returns a self instance without any elements.
<ide> *
<ide> * @return \RecursiveIterator
<... | 1 |
Java | Java | remove useless mounting diagnostic error | 0aa8ed6361e981c509cb8370e2b404c08a3bc83d | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java
<ide> public void deleteView(int reactTag) {
<ide> View view = viewState.mView;
<ide>
<ide> if (view != null) {
<del> ViewParent parentView = view.getParent();
<del>
<del> if (parentView != null) {
<del> ... | 1 |
Ruby | Ruby | fix ruby 1.8 breakage | 02cd2c899a02b1271cf6e4dd8ce816e5513d9f9c | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> def bottle_formula(f)
<ide>
<ide> tab = Tab.for_keg(keg)
<ide> original_tab = tab.dup
<del> tab["poured_from_bottle"] = false
<del> tab["HEAD"] = nil
<del> tab["time"] = nil
<add> tab.poured_from_bottle = false
<add> tab... | 1 |
Ruby | Ruby | fix wrong ordering on when clauses in audit.rb | d9242c540d82ec25019896a043410dd07b831609 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_deps
<ide> depends_on :ruby => "1.8"
<ide> where "1.8" is the minimum version of Ruby required.
<ide> EOS
<del> when "open-mpi", "mpich"
<del> problem <<-EOS.undent
<ide> when *BUILD_TIME_DEPS
<ide> ... | 1 |
PHP | PHP | remove usage of deprecated function | cf19b0c5018bfd6d72759e9f2843d93cc4c849c1 | <ide><path>tests/TestCase/Validation/ValidationTest.php
<ide> public function testNotBlankIso88591AppEncoding(): void
<ide> $this->assertTrue(Validation::notBlank('fooo' . chr(243) . 'blabla'));
<ide> $this->assertTrue(Validation::notBlank('abçďĕʑʘπй'));
<ide> $this->assertTrue(Validation::notBl... | 1 |
PHP | PHP | add support for 'year' datatype for schema | 2d1328b5eae791ea5771fabe077666321b3cdb70 | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> public function dateTime($column, $precision = 0)
<ide> return $this->addColumn('dateTime', $column, compact('precision'));
<ide> }
<ide>
<add> /**
<add> * Create a new year column on the table.
<add> *
<add> * @param string $co... | 9 |
Go | Go | fix validation of non-existing bind-mount source | 84d5ab96ef33355e65f5c31210eb1777db372c52 | <ide><path>daemon/cluster/executor/container/validate.go
<ide> package container
<ide>
<ide> import (
<ide> "fmt"
<add> "os"
<ide> "path/filepath"
<ide>
<ide> "github.com/docker/swarmkit/api"
<ide> func validateMounts(mounts []api.Mount) error {
<ide> if !filepath.IsAbs(mount.Source) {
<ide> return fmt.Erro... | 2 |
Javascript | Javascript | make checks for bugfixes better | c5f1ca3d917cb89c2da19a946734685d2ea2b07b | <ide><path>compare-master-to-stable.js
<ide> then(allInSeries(function (branch) {
<ide> line = line.split(' ');
<ide> var sha = line.shift();
<ide> var msg = line.join(' ');
<del> return sha + (msg.toLowerCase().indexOf('fix') === -1 ? ' ' : ' * ') + msg;
<add> return sha + ((/fi... | 1 |
Javascript | Javascript | add minheight to buttons in in scrollviewexamples | 61f538ae95a9d11ed946213adea5f10bcbbdbec6 | <ide><path>packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js
<ide> const InvertStickyHeaders = () => {
<ide> {<Text>STICKY HEADER</Text>}
<ide> {ITEMS.map(createItemRow)}
<ide> </ScrollView>
<del> <Button
<del> onPress={() => setInvertStickyHeaders(!invertStickyHeaders)}
<... | 1 |
Python | Python | fix activity_regularizer in convlstm | d72514d6cca9b09842ab31536c16a01e5cd51f6f | <ide><path>keras/layers/convolutional.py
<ide> def build(self, input_shape):
<ide> if len(input_shape) != 4:
<ide> raise ValueError('Inputs should have rank ' +
<ide> str(4) +
<del> 'Received input shape:', str(input_shape))
<add> ... | 3 |
Text | Text | add richardlau to collaborators | cb6c0c14eb58fb0660bc429cce37ef7e519ad06d | <ide><path>README.md
<ide> more information about the governance of the Node.js project, see
<ide> **Prince John Wesley** <princejohnwesley@gmail.com>
<ide> * [qard](https://github.com/qard) -
<ide> **Stephen Belanger** <admin@stephenbelanger.com> (he/him)
<add>* [richardlau](https://github.com/richardlau) ... | 1 |
Python | Python | fix typo in setup build for npymath | a0ac87205774790e0c5203dc0a95a1d6e2ebd0b8 | <ide><path>numpy/core/setup.py
<ide> def get_mathlib_info(*args):
<ide> config.add_installed_library('npymath',
<ide> sources=[join('src', 'npymath', 'npy_math.c.src'),
<ide> join('src', 'npymath', 'ieee754.c'),
<del> join('src', 'npymath', 'npy_math_complex.c.sr... | 1 |
Python | Python | set version to v2.2.2.dev3 | c2f5f9f5727fd854a6147e71ed6625b7c57c4150 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.2.2.dev2"
<add>__version__ = "2.2.2.dev3"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spac... | 1 |
Ruby | Ruby | remove global cache | 644a1796c67ed4d55e2d2ae7182a6a020350f13c | <ide><path>activesupport/lib/active_support/notifications.rb
<ide> module ActiveSupport
<ide> # to log subscribers in a thread. You can use any queue implementation you want.
<ide> #
<ide> module Notifications
<del> @instrumenters = Hash.new { |h,k| h[k] = notifier.listening?(k) }
<del>
<ide> class Registr... | 1 |
Ruby | Ruby | fix typo and remove 'examples' noise [ci skip] | a3d18d2ec0d73ed8eb92c913e324884aab7aa85b | <ide><path>activerecord/lib/active_record/relation/finder_methods.rb
<ide> module FinderMethods
<ide> # If no record can be found for all of the listed ids, then RecordNotFound will be raised. If the primary key
<ide> # is an integer, find by id coerces its arguments using +to_i+.
<ide> #
<del> # ==== Ex... | 1 |
Ruby | Ruby | use a specific exception for unsupported visits | 145f32ad8516f9654bdc469096c65549354829ab | <ide><path>lib/arel/visitors/to_sql.rb
<ide>
<ide> module Arel
<ide> module Visitors
<add> class UnsupportedVisitError < StandardError
<add> def initialize(object)
<add> super "Unsupported argument type: #{object.class.name}. Construct an Arel node instead."
<add> end
<add> end
<add>
<ide> ... | 2 |
Ruby | Ruby | remove overridden methods from pathresolver | 5789e827d0a521832378f987e00a7bd6181a7e67 | <ide><path>actionview/lib/action_view/template/resolver.rb
<ide> def reject_files_external_to_app(files)
<ide> files.reject { |filename| !inside_path?(@path, filename) }
<ide> end
<ide>
<del> def find_template_paths_from_details(path, details)
<del> if path.name.include?(".")
<del> r... | 1 |
Java | Java | add missing package-info.java file | afff8499924f367b8e76ca88a22d49ca0f039e6b | <ide><path>spring-test/src/main/java/org/springframework/test/context/aot/hint/package-info.java
<add>/**
<add> * Support for registering hints for reflection and resources in the
<add> * <em>Spring TestContext Framework</em>.
<add> */
<add>@NonNullApi
<add>@NonNullFields
<add>package org.springframework.test.context.a... | 1 |
Java | Java | implement rcttextinlineimage with nodes | 31d2443dd4ad50b83823743ddb37ed7432f243a5 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatTextShadowNode.java
<ide> public boolean isVirtual() {
<ide>
<ide> protected abstract void performCollectText(SpannableStringBuilder builder);
<ide> protected abstract void performApplySpans(SpannableStringBuilder builder, int begin, int end);
<add>... | 8 |
Text | Text | instruct contributors to branch from master | 3c73a8fc4f2f4a5e6f1751d01c3ec6493f65eff1 | <ide><path>CONTRIBUTING.md
<ide> future pull requests as well, simply so that the Spring Framework team knows
<ide> immediately that this process is complete.
<ide>
<ide>
<del>## Create your branch from `3.2.x`
<add>## Create your branch from `master`
<ide>
<del>If your pull request addresses a bug or improvement, p... | 1 |
Javascript | Javascript | add specs, clean up whitespace | 32c4624d95c2b9fa7997356a2f9b59e83ec99116 | <ide><path>src/tree-sitter-language-mode.js
<ide> class TreeSitterLanguageMode {
<ide> const searchEndIndex = Math.max(0, endIndex - 1)
<ide>
<ide> const matches = matcherForSelector(selector)
<del>
<add>
<ide> let smallestNode
<ide> this._forEachTreeWithRange(range, tree => {
<ide> let node ... | 1 |
Python | Python | add missing arguments to np.ufunc.outer | f1aaff1948dfb3e008bb20ef5442bf0118104f4d | <ide><path>numpy/add_newdocs.py
<ide> def luf(lamdaexpr, *args, **kwargs):
<ide>
<ide> add_newdoc('numpy.core', 'ufunc', ('outer',
<ide> """
<del> outer(A, B)
<add> outer(A, B, **kwargs)
<ide>
<ide> Apply the ufunc `op` to all pairs (a, b) with a in `A` and b in `B`.
<ide>
<ide> def luf(lamdaexpr, *arg... | 1 |
Text | Text | clarify use of arrow functions | d15938cd9292242d87f751a34ca50c78fbf8c629 | <ide><path>docs/docs/08.1-more-about-refs.md
<ide> It's as simple as:
<ide>
<ide> The `ref` attribute can be a callback function instead of a name. This callback will be executed immediately after the component is mounted. The referenced component will be passed in as a parameter, and the callback function may use t... | 1 |
Ruby | Ruby | fix all homepages now that they are audited | 70fc2af6470acd116d24882bb1cbb922b40e2d73 | <ide><path>Library/Homebrew/test/cask/cmd/home_spec.rb
<ide> it_behaves_like "a command that handles invalid options"
<ide>
<ide> it "opens the homepage for the specified Cask" do
<del> expect(described_class).to receive(:open_url).with("https://example.com/local-caffeine")
<add> expect(described_class).to r... | 29 |
Python | Python | add get_initial_state method to recurrent | b691579fff3f508cff8faae0e20aed0d65c91636 | <ide><path>keras/layers/recurrent.py
<ide> def output_shape(self):
<ide> def step(self, x, states):
<ide> raise NotImplementedError
<ide>
<add> def get_initial_states(self, X):
<add> # build an all-zero tensor of shape (samples, output_dim)
<add> initial_state = K.zeros_like(X) # (samples... | 1 |
Javascript | Javascript | add tests for librarytemplateplugin | 81a7f7f4bff31b168045fd84f02378fe1cce75df | <ide><path>test/LibraryTemplatePlugin.test.js
<add>var should = require("should");
<add>var sinon = require("sinon");
<add>var LibraryTemplatePlugin = require("../lib/LibraryTemplatePlugin");
<add>var applyPluginWithOptions = require("./helpers/applyPluginWithOptions");
<add>
<add>describe("LibraryTemplatePlugin", func... | 2 |
Javascript | Javascript | add info about preselecting complex models | a8e03b3a907aa6faf31ac28e7b45e263ceef3de5 | <ide><path>src/ng/directive/ngOptions.js
<ide> var ngOptionsMinErr = minErr('ngOptions');
<ide> *
<ide> * ## Complex Models (objects or collections)
<ide> *
<del> * **Note:** By default, `ngModel` watches the model by reference, not value. This is important when
<del> * binding any input directive to a model that is... | 1 |
Javascript | Javascript | unify xform observer edition | ac64f2320445f75710a81c3616a0d6bdf1b034d5 | <ide><path>packages/ember-metal/lib/observer.js
<ide> var DeferredEventQueue = function() {
<ide> this.queue = [];
<ide> };
<ide>
<del>DeferredEventQueue.prototype.push = function(target, eventName) {
<add>DeferredEventQueue.prototype.push = function(target, eventName, keyName) {
<ide> var targetSet = this.targetS... | 1 |
Javascript | Javascript | replace string concatenation with path.join | 97008a7b0d7beee598bf53f2a1db0be14380d98b | <ide><path>test/async-hooks/test-graph.tls-write.js
<ide> const initHooks = require('./init-hooks');
<ide> const verifyGraph = require('./verify-graph');
<ide> const fs = require('fs');
<ide> const tls = require('tls');
<add>const path = require('path');
<ide>
<ide> const hooks = initHooks();
<ide> hooks.enable();
<id... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.