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 | fix build to add class to code blocks | 519e74d868c5bb8b05e862ee811d67fb520f721f | <ide><path>build/js/build.js
<ide> const Builder = function(outBaseDir, options) {
<ide> const info = extractHandlebars(content);
<ide> let html = marked(info.content);
<ide> // HACK! :-(
<add> // There's probably a way to do this in marked
<add> html = html.replace(/<pre><code/g, '<pre class="prettyp... | 1 |
Text | Text | add the climate corporation to user list | b26017d84b24660b434b836f0ed73fe0b5ef6154 | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> 1. [Telia Company](https://www.teliacompany.com/en)
<ide> 1. [Ternary Data](https://ternarydata.com/) [[@mhousley](https://github.com/mhousley), [@JoeReis](https://github.com/JoeReis)]
<ide> 1. [Tesla](https://www.tesla.com/) [[@thoralf-gutierrez]... | 1 |
Mixed | Javascript | use esm syntax for wasi example | 88a5426e9c390b619ea966798bf8380c88cda81c | <ide><path>.eslintrc.js
<ide> module.exports = {
<ide> 'doc/api/module.md',
<ide> 'doc/api/modules.md',
<ide> 'doc/api/packages.md',
<add> 'doc/api/wasi.md',
<ide> 'test/es-module/test-esm-type-flag.js',
<ide> 'test/es-module/test-esm-type-flag-alias.js',
<ide> '*.... | 2 |
Ruby | Ruby | remove duplicated logic | 9effe3cc18182abbcf0a8b01635a34ca77b67e02 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def remove_duplicate_results!(base, records, associations)
<ide> case associations
<ide> when Symbol, String
<ide> reflection = base.reflections[associations]
<del> if reflection && reflection.collec... | 1 |
Text | Text | fix a tiny typo | 2b787763aa755f2c2d84d0d3cbfb6586ce29e692 | <ide><path>laravel/documentation/database/redis.md
<ide> Great! Now that we have an instance of the Redis client, we may issue any of the
<ide>
<ide> $values = $redis->lrange('names', 5, 10);
<ide>
<del>Notice the arguments to the comment are simply passed into the magic method. Of course, you are not required to us... | 1 |
Text | Text | improve accessibility in copy | 4ca38304d95c94f23f4dd9ac4910890f5eb3d3c4 | <ide><path>guide/english/android-development/index.md
<ide> From simple games and utility apps to full-blown music players, there are many o
<ide>
<ide> There is definitely a learning curve to get used to the Android framework, but once you understand the core components that make up the app, the rest will come natura... | 1 |
Ruby | Ruby | extract constant strings | c7685d2b70d4e6fc7ac5bbc77791687d4d0d4d98 | <ide><path>Library/Homebrew/test/test_patching.rb
<ide> require 'testball'
<ide>
<ide> class PatchingTests < Test::Unit::TestCase
<add> PATCH_URL_A = "file:///#{TEST_FOLDER}/patches/noop-a.diff"
<add> PATCH_URL_B = "file:///#{TEST_FOLDER}/patches/noop-b.diff"
<add>
<ide> def formula(&block)
<ide> super do
<ide... | 1 |
Text | Text | add learntocode rpg | eb83f393adbe3ed11745f54483b80a27a44722cb | <ide><path>docs/how-to-translate-files.md
<ide> Translating our contributing documentation is a similar flow to translating our
<ide> > [!NOTE]
<ide> > Our contributing documentation is powered by `docsify`, and we have special parsing for message boxes like this one. If you see strings that start with `[!NOTE]`, `[!WA... | 1 |
Ruby | Ruby | fix dependency option handling | f7f15673a8e8ecb6817435c7bd51c7e8077220e4 | <ide><path>Library/Homebrew/dependency.rb
<ide> def satisfied?(inherited_options)
<ide> end
<ide>
<ide> def missing_options(inherited_options)
<del> required = options | inherited_options
<del> required - Tab.for_formula(to_formula).used_options
<add> formula = to_formula
<add> required = options
<add>... | 2 |
Go | Go | fix some spelling issues | 101ff26eb56b7493e10fd90dd552e3930aaef6dc | <ide><path>integration-cli/docker_api_containers_test.go
<ide> func (s *DockerSuite) TestContainerAPIWait(c *testing.T) {
<ide> assert.NilError(c, err)
<ide> defer cli.Close()
<ide>
<del> waitresC, errC := cli.ContainerWait(context.Background(), name, "")
<add> waitResC, errC := cli.ContainerWait(context.Background(... | 3 |
Ruby | Ruby | check undeclared dependencies for `--test`" | 454645263d3380dfa8d699bd1c42fa907076645f | <ide><path>Library/Homebrew/dev-cmd/linkage.rb
<ide>
<ide> module Homebrew
<ide> def linkage
<add> found_broken_dylibs = false
<ide> ARGV.kegs.each do |keg|
<ide> ohai "Checking #{keg.name} linkage" if ARGV.kegs.size > 1
<ide> result = LinkageChecker.new(keg)
<ide> if ARGV.include?("--test")... | 1 |
Javascript | Javascript | remove reacttypes from fbsource and react sync | 8bbb2ca44b60d1eca97b07d502c5f235b77c0319 | <ide><path>Libraries/Renderer/shims/ReactTypes.js
<del>/**
<del> * Copyright (c) Facebook, Inc. and its affiliates.
<del> *
<del> * This source code is licensed under the MIT license found in the
<del> * LICENSE file in the root directory of this source tree.
<del> *
<del> * @flow
<del> */
<del>
<del>export type ReactN... | 1 |
PHP | PHP | remove int check | 8dfae2aab8d0371ecfd6ea239e19ce784528e25f | <ide><path>src/Illuminate/Cache/Repository.php
<ide> public function pull($key, $default = null)
<ide> */
<ide> public function put($key, $value, $minutes = null)
<ide> {
<del> if (is_array($key) && filter_var($value, FILTER_VALIDATE_FLOAT) !== false) {
<add> if (is_array($key)) {
<ide> ... | 1 |
Text | Text | update tooling docs to suggest babel | 009902bcd08a58e6a019e4a26a6e8b69a5ba8b63 | <ide><path>docs/docs/09-tooling-integration.md
<ide> We have instructions for building from `master` [in our GitHub repository](https
<ide>
<ide> ### In-browser JSX Transform
<ide>
<del>If you like using JSX, we provide an in-browser JSX transformer for development [on our download page](/react/downloads.html). Simpl... | 1 |
Text | Text | add changelogs for url | c9bfa9cc0c0242bda7e14d70c370dab06f3f310d | <ide><path>doc/api/url.md
<ide> object.
<ide> ## url.resolve(from, to)
<ide> <!-- YAML
<ide> added: v0.1.25
<add>changes:
<add> - version: v6.6.0
<add> pr-url: https://github.com/nodejs/node/pull/8215
<add> description: The `auth` fields are now kept intact when `from` and `to`
<add> refer to the... | 1 |
PHP | PHP | fix inflection when baking models | 205ad14aa866241c9ed2b976198566a588f273b4 | <ide><path>src/Core/ConventionsTrait.php
<ide> protected function _modelKey($name) {
<ide> */
<ide> protected function _modelNameFromKey($key) {
<ide> $key = str_replace('_id', '', $key);
<del> return Inflector::pluralize(Inflector::classify($key));
<add> return Inflector::classify(Inflector::pluralize($key));
<i... | 1 |
Ruby | Ruby | determine version from a formula instance | 016a508c7a8a1456a52a32ad4330d811d1a043aa | <ide><path>Library/Homebrew/cmd/versions.rb
<ide> require 'formula'
<ide>
<ide> module Homebrew extend self
<del>
<del> module Versions
<del> # yields version, sha for all versions in the git history
<del> def self.old_versions f
<del> yielded = []
<del> f.rev_list.each do |sha|
<del> version =... | 1 |
PHP | PHP | use hmac for digest nonces | 82ac89808d2eaee97fee19197f9e96d5c544fcec | <ide><path>src/Auth/DigestAuthenticate.php
<ide> use Cake\Controller\ComponentRegistry;
<ide> use Cake\Core\Configure;
<ide> use Cake\Http\ServerRequest;
<add>use Cake\Utility\Security;
<ide>
<ide> /**
<ide> * Digest Authentication adapter for AuthComponent.
<ide> public function loginHeaders(ServerRequest $request)
... | 2 |
Python | Python | fix mypy in providers/aws/hooks | 341b461e4fbd9ae5961ef9448c8f08e1686ee5e4 | <ide><path>airflow/providers/amazon/aws/hooks/athena.py
<ide> def get_output_location(self, query_execution_id: str) -> str:
<ide> except KeyError:
<ide> self.log.error("Error retrieving OutputLocation")
<ide> raise
<add> else:
<add> rais... | 5 |
Javascript | Javascript | maintain order of timer callbacks | 9dac1651604ee44ef99672107d8ad0286583400e | <ide><path>lib/timers.js
<ide> function TimersList(msecs, unrefed) {
<ide> this._timer = new TimerWrap();
<ide> this._unrefed = unrefed;
<ide> this.msecs = msecs;
<add> this.nextTick = false;
<ide> }
<ide>
<ide> function listOnTimeout() {
<ide> var list = this._list;
<ide> var msecs = list.msecs;
<ide>
<ad... | 2 |
PHP | PHP | support collection#countby($key) | 5682bdbc2a14cd982c50981dadfe0df4634084da | <ide><path>src/Illuminate/Support/LazyCollection.php
<ide> public function crossJoin(...$arrays)
<ide> */
<ide> public function countBy($countBy = null)
<ide> {
<del> if (is_null($countBy)) {
<del> $countBy = $this->identity();
<del> }
<add> $countBy = is_null($countBy)
<add... | 2 |
Ruby | Ruby | connect 1.105 (migrate from boneyard) | b896629da40177a1a9c6c0c6ed05889110fef817 | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> "clusterit" => "homebrew/x11",
<ide> "cmucl" => "homebrew/binary",
<ide> "comparepdf" => "homebrew/boneyard",
<del> "connect" => "homebrew/boneyard",
<ide> "coremod" => "homebrew/boneyard",
<ide> "curlftpfs" => "homebrew/x11",
<ide> "cwm" => "homebrew/x11... | 1 |
Javascript | Javascript | use promise to update head (#574) | f7ee50323daa65b4d14a3398507b56b3a032674a | <ide><path>client/head-manager.js
<ide> const DOMAttributeNames = {
<ide>
<ide> export default class HeadManager {
<ide> constructor () {
<del> this.requestId = null
<add> this.updatePromise = null
<ide> }
<ide>
<ide> updateHead (head) {
<del> // perform batch update
<del> window.cancelAnimationFram... | 1 |
Python | Python | add new import paths to mnist_tpu.py | cb1567e87cd92ab0394a0f7b0d5c1cb226a2cbde | <ide><path>official/mnist/mnist_tpu.py
<ide> from __future__ import division
<ide> from __future__ import print_function
<ide>
<add>import os
<add>import sys
<add>
<ide> import tensorflow as tf # pylint: disable=g-bad-import-order
<ide>
<del>from official.mnist import dataset
<del>from official.mnist import mnist
<a... | 1 |
Text | Text | fix some syntax highlighting | a86640b309e8881e10cef9ac1150eff78308c6ce | <ide><path>docs/deployment.md
<ide> You can link your project in [GitHub](https://zeit.co/new), [GitLab](https://zei
<ide>
<ide> You can install the command line tool using npm:
<ide>
<del>```
<add>```bash
<ide> npm install -g now
<ide> ```
<ide>
<ide> You can deploy your application by running the following command... | 1 |
Javascript | Javascript | improve examples and explanations | 3eb2fbf74533639a376c572d4aad767e80d2c209 | <ide><path>src/auto/injector.js
<ide> function annotate(fn) {
<ide> * a service. The Provider can have additional methods which would allow for configuration of the provider.
<ide> *
<ide> * <pre>
<del> * function GreetProvider() {
<del> * var salutation = 'Hello';
<del> *
<del> * this.salutation = functio... | 1 |
PHP | PHP | add test for bindmodel + containable | a64099168cb05a1e3c5f4bf87ae3b8b54c2000b2 | <ide><path>cake/tests/cases/libs/model/behaviors/containable.test.php
<ide> function testResetMultipleHabtmAssociations() {
<ide> $this->assertEqual($expected, $this->Article->hasAndBelongsToMany);
<ide> }
<ide>
<add>/**
<add> * test that bindModel and unbindModel work with find() calls in between.
<add> */
<add> f... | 1 |
Python | Python | add aspp for kerascv | bc7c670f85c24c9baadafac2e5eba6c07b901a35 | <ide><path>official/vision/keras_cv/__init__.py
<ide> # ==============================================================================
<ide> """Keras-CV package definition."""
<ide> # pylint: disable=wildcard-import
<add>from official.vision.keras_cv import layers
<ide> from official.vision.keras_cv import losses
<ide>... | 4 |
Javascript | Javascript | replace fixturesdir with fixtures module | 5e93df684052bde146992bce4898e6d583345bb3 | <ide><path>test/parallel/test-repl-syntax-error-stack.js
<ide> 'use strict';
<ide>
<ide> const common = require('../common');
<add>const fixtures = require('../common/fixtures');
<ide> const assert = require('assert');
<del>const path = require('path');
<ide> const repl = require('repl');
<ide> let found = false;
<ide... | 1 |
Go | Go | add daemon options required by buildkit tests | b96a0c775400821d80972619fbfe6a2070f3e9ba | <ide><path>testutil/daemon/daemon.go
<ide> type nopLog struct{}
<ide>
<ide> func (nopLog) Logf(string, ...interface{}) {}
<ide>
<del>const defaultDockerdBinary = "dockerd"
<del>const containerdSocket = "/var/run/docker/containerd/containerd.sock"
<add>const (
<add> defaultDockerdBinary = "dockerd"
<add> defaultCon... | 2 |
Ruby | Ruby | add pretoken composite | 700b5e2738fad9aa576df25d494e1d7e69962326 | <ide><path>Library/Homebrew/test/version_spec.rb
<ide> expect(Version.create("1.2.3beta2")).to be < Version.create("1.2.3-p34")
<ide> end
<ide>
<add> specify "comparing pre versions" do
<add> expect(Version.create("1.2.3pre9")).to be == Version.create("1.2.3PRE9")
<add> expect(Version.create("1.2.3pre9"))... | 2 |
Ruby | Ruby | add docs for `insert_all` with scopes | 08f3dfeaee84dd14399427abb1e44d8a391893ed | <ide><path>activerecord/lib/active_record/persistence.rb
<ide> def insert(attributes, returning: nil, unique_by: nil)
<ide> # { id: 1, title: "Rework", author: "David" },
<ide> # { id: 1, title: "Eloquent Ruby", author: "Russ" }
<ide> # ])
<add> #
<add> # # insert_all works on ch... | 1 |
Javascript | Javascript | add an eachcomputedproperty iterator | 2bdc696ab6f16977336785ed4cae865263ad0423 | <ide><path>packages/ember-runtime/lib/system/core_object.js
<ide> var ClassMixin = Ember.Mixin.create({
<ide>
<ide> ember_assert("metaForProperty() could not find a computed property with key '"+key+"'.", !!desc && desc instanceof Ember.ComputedProperty);
<ide> return desc._meta || {};
<add> },
<add>
<add> /... | 2 |
Ruby | Ruby | move some serialization stuff out of base | 6c63f1aa44780c887dd3e52765e86588911c2802 | <ide><path>activerecord/lib/active_record/attribute_methods/serialization.rb
<ide> module AttributeMethods
<ide> module Serialization
<ide> extend ActiveSupport::Concern
<ide>
<add> included do
<add> # Returns a hash of all the attributes that have been specified for serialization as
<add> ... | 2 |
Text | Text | remove unfinished sentence | 36e35324759482744e97265e8b89768f4311cb1a | <ide><path>website/docs/usage/adding-languages.md
<ide> categorizer is to use the [`spacy train`](/api/cli#train) command-line utility.
<ide> In order to use this, you'll need training and evaluation data in the
<ide> [JSON format](/api/annotation#json-input) spaCy expects for training.
<ide>
<del>You can now train th... | 1 |
Python | Python | fix ldap error messages when login fails | 3e0310aa994e65d962abbcbc9e1451a0c976f676 | <ide><path>airflow/contrib/auth/backends/ldap_auth.py
<ide> def get_ldap_connection(dn=None, password=None):
<ide>
<ide> if not conn.bind():
<ide> LOG.error("Cannot bind to ldap server: %s ", conn.last_error)
<del> raise AuthenticationError("Username or password incorrect")
<add> raise Authen... | 1 |
PHP | PHP | make use of modifiable $options from beforemarshal | b9db56d90865cc3c29b71396e700f92f89091fc4 | <ide><path>src/ORM/Marshaller.php
<ide> protected function _buildPropertyMap($options)
<ide> */
<ide> public function one(array $data, array $options = [])
<ide> {
<del> $options += ['validate' => true];
<add> list($data, $options) = $this->_prepareDataAndOptions($data, $options);
<add>
<ide>... | 2 |
Go | Go | create daemon root with acl | 46ec4c1ae2700ed638072fd7fb326afc10eded20 | <ide><path>cmd/dockerd/daemon.go
<ide> import (
<ide> "io"
<ide> "os"
<ide> "path/filepath"
<add> "runtime"
<ide> "strings"
<ide> "time"
<ide>
<ide> func NewDaemonCli() *DaemonCli {
<ide> return &DaemonCli{}
<ide> }
<ide>
<del>func migrateKey() (err error) {
<add>func migrateKey(config *daemon.Config) (err erro... | 9 |
Text | Text | use stronger language about security of vm | 6d32d44cfe0a07580524105522510cb89340f83e | <ide><path>doc/api/vm.md
<ide> <!--name=vm-->
<ide>
<ide> The `vm` module provides APIs for compiling and running code within V8 Virtual
<del>Machine contexts.
<add>Machine contexts. **Note that the `vm` module is not a security mechanism. Do
<add>not use it to run untrusted code**. The term "sandbox" is used througho... | 1 |
Go | Go | fix typo in devmapper driver_test | b3e7df48dfbf3d2300877d1e524132624e9493c3 | <ide><path>graphdriver/devmapper/driver_test.go
<ide> func TestInit(t *testing.T) {
<ide> }
<ide> }()
<ide> }()
<del> // Put all tests in a funciton to make sure the garbage collection will
<add> // Put all tests in a function to make sure the garbage collection will
<ide> // occur.
<ide>
<ide> // Call GC to c... | 1 |
Javascript | Javascript | fix warnings script to work on node 4 | fc1f324cc4c83e38b618a1cb076cd704bf8867ea | <ide><path>scripts/print-warnings/print-warnings.js
<ide> const sourcePaths = Bundles.bundles
<ide> bundle.bundleTypes.indexOf(Bundles.bundleTypes.FB_DEV) !== -1 ||
<ide> bundle.bundleTypes.indexOf(Bundles.bundleTypes.FB_PROD) !== -1
<ide> )
<del> .reduce((allPaths, bundle) => [...allPaths, ...bundle.pat... | 1 |
Javascript | Javascript | add basic unit tests for event aliases | e05c63e17a037d550e7dde5d805ee5c4214ee44b | <ide><path>test/unit/event.js
<ide> QUnit.test( "originalEvent property for Chrome, Safari, Fx & Edge of simulated e
<ide> jQuery( "#donor-input" ).trigger( "focus" );
<ide> } );
<ide>
<add>QUnit[ jQuery.fn.click ? "test" : "skip" ]( "Event aliases", function( assert ) {
<add>
<add> // Explicitly skipping focus/blur ... | 1 |
Mixed | Text | add etw logging driver plug-in | 3fe60bbf95b60f1a1e847a48e1c9b9730e570dff | <ide><path>daemon/logdrivers_windows.go
<ide> import (
<ide> // Importing packages here only to make sure their init gets called and
<ide> // therefore they register themselves to the logdriver factory.
<ide> _ "github.com/docker/docker/daemon/logger/awslogs"
<add> _ "github.com/docker/docker/daemon/logger/etwlogs"
... | 9 |
Javascript | Javascript | remove old deprecation flag in map/orderedset | a1e3a9fbf2560ca77a4956780971d83b71eacb14 | <ide><path>packages/ember-metal/lib/map.js
<ide> function copyMap(original, newObject) {
<ide> function OrderedSet() {
<ide> if (this instanceof OrderedSet) {
<ide> this.clear();
<del> this._silenceRemoveDeprecation = false;
<ide> } else {
<ide> missingNew('OrderedSet');
<ide> }
<ide> OrderedSet.protot... | 1 |
Javascript | Javascript | fix moduletemplate.hooks.hash deprecation message | 34c83102d823c63e538fe6aaf57a9c5278f931d4 | <ide><path>lib/ModuleTemplate.js
<ide> class ModuleTemplate {
<ide> (options, fn) => {
<ide> compilation.hooks.fullHash.tap(options, fn);
<ide> },
<del> "ModuleTemplate.hooks.package is deprecated (use Compilation.hooks.fullHash instead)",
<add> "ModuleTemplate.hooks.hash is deprecated (use Comp... | 1 |
Ruby | Ruby | use canonical_name to locate rack | df999067d69b660a978e52263eace80dc1786993 | <ide><path>Library/Homebrew/extend/ARGV.rb
<ide> def resolved_formulae
<ide> end
<ide> f
<ide> else
<del> Formulary.from_rack(HOMEBREW_CELLAR/name, spec(default=nil))
<add> canonical_name = Formulary.canonical_name(name)
<add> Formulary.from_rack(HOMEBREW_CELLAR/canonical_name... | 1 |
Ruby | Ruby | fix random ci fail due to auto-updating timestamp | 056b252010f90210b608d3a950d43a994218c32f | <ide><path>activejob/test/cases/job_serialization_test.rb
<ide> class JobSerializationTest < ActiveSupport::TestCase
<ide> end
<ide>
<ide> test "serialize and deserialize are symmetric" do
<add> # Ensure `enqueued_at` does not change between serializations
<add> freeze_time
<add>
<ide> # Round trip a job... | 1 |
PHP | PHP | improve sqlite command | 69692647947f0bf2a685a71768d55f1003e8a684 | <ide><path>src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php
<ide> public function compileCreate(Blueprint $blueprint, Fluent $command)
<ide> );
<ide> }
<ide>
<add> /**
<add> * Compile a get all tables command.
<add> *
<add> * @param string $schema
<add> * @return string
<add> ... | 2 |
Python | Python | update deprecation versions | 4024a4a89c18a1048b7496cf223c0b8c1e63c485 | <ide><path>src/flask/app.py
<ide> def open_session(self, request):
<ide> we recommend replacing the :class:`session_interface`.
<ide>
<ide> .. deprecated: 1.0
<del> Will be removed in 1.1. Use ``session_interface.open_session``
<del> instead.
<add> Will be removed in 2.... | 2 |
Javascript | Javascript | remove unused vars | bc39d6a3a61e9217839f2cecf0aab8a2f2a96077 | <ide><path>test/addons/repl-domain-abort/test.js
<ide> var options = {
<ide> };
<ide>
<ide> // Run commands from fake REPL.
<del>var dummy = repl.start(options);
<add>repl.start(options);
<ide><path>test/debugger/test-debugger-pid.js
<ide> 'use strict';
<del>var common = require('../common');
<add>require('../common')... | 24 |
Ruby | Ruby | improve error when encryptedfile key length wrong | 0fc7448fc5ae8124a65f75b9fa79fc8346d243b9 | <ide><path>activesupport/lib/active_support/encrypted_file.rb
<ide> def initialize(key_path:, env_key:)
<ide> end
<ide> end
<ide>
<add> class InvalidKeyLengthError < RuntimeError
<add> def initialize
<add> super "Encryption key must be exactly #{EncryptedFile.expected_key_length} characters."
... | 2 |
Python | Python | fix linting issues | 3e20b0110cc30c112906cc473e04e837737ff4f5 | <ide><path>tests/test_description.py
<ide> class that can be converted to a string.
<ide> class MockLazyStr(object):
<ide> def __init__(self, string):
<ide> self.s = string
<add>
<ide> def __str__(self):
<ide> return self.s
<add>
<ide> def __un... | 1 |
Ruby | Ruby | add tests for patches | 9c28138889055f8a3af5e32bab4059b6a9a8a87f | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> require 'formula'
<ide> require 'utils'
<add>require 'extend/ENV'
<add>
<add># Some formulae use ENV in patches, so set up an environment
<add>ENV.extend(HomebrewEnvExtension)
<add>ENV.setup_build_environment
<add>
<add>class Module
<add> def redefine_const(name, value)
<... | 1 |
Javascript | Javascript | optimize trig functions | 848a6e201db1621e2ee0f3118a52a3264273cd8b | <ide><path>examples/js/loaders/SVGLoader.js
<ide> THREE.SVGLoader.prototype = {
<ide>
<ide> var rotation = createIdTransform();
<ide>
<del> rotation[ 0 ] = Math.cos( angle );
<del> rotation[ 1 ] = Math.sin( angle );
<del> rotation[ 2 ] = -Math.sin( angle );
<del> rotation[ 3 ] = Math.cos( angle );
<add> ... | 1 |
Python | Python | fix import problem | 5e385c922b18cb35fc02f244bc59e9cdf96e9f6c | <ide><path>numpy/numarray/functions.py
<ide> __all__ += ['vdot', 'dot', 'matrixmultiply', 'ravel', 'indices',
<ide> 'arange', 'concatenate']
<ide>
<del>from numpy import dot as matrixmultiply, dot, vdot, ravel
<add>from numpy import dot as matrixmultiply, dot, vdot, ravel, concatenate
<ide>
<ide> def arra... | 1 |
Text | Text | add windowsverbatimarguments docs | 41611f9adbae7b846c16580ff9eb0f4a8a87a08b | <ide><path>doc/api/child_process.md
<ide> changes:
<ide> * `gid` {number} Sets the group identity of the process (see setgid(2)).
<ide> * `windowsHide` {boolean} Hide the subprocess console window that would
<ide> normally be created on Windows systems. **Default:** `false`.
<add> * `windowsVerbatimArguments` ... | 1 |
Text | Text | consolidate ci sections | bcc68c36b6c53bb8af6b2523ae694718e1186810 | <ide><path>doc/contributing/pull-requests.md
<ide> * [Notes](#notes)
<ide> * [Commit squashing](#commit-squashing)
<ide> * [Getting approvals for your pull request](#getting-approvals-for-your-pull-request)
<del> * [CI testing](#ci-testing)
<ide> * [Waiting until the pull request gets landed](#waiting-until-the-... | 1 |
PHP | PHP | use fqns in the validation exception docblocks | a416ceb1b77c0bfe7c86a7dbe1274f0cc53fe0ee | <ide><path>src/Illuminate/Contracts/Validation/ValidationException.php
<ide> class ValidationException extends RuntimeException {
<ide> /**
<ide> * The message provider implementation.
<ide> *
<del> * @var MessageProvider
<add> * @var \Illuminate\Contracts\Support\MessageProvider
<ide> */
<ide> protected $pro... | 1 |
Text | Text | alter other reference to migrations | db4426fc35a92d2b0e263fd8a5702203cb3e06ed | <ide><path>docs/api-guide/authentication.md
<ide> To use the `TokenAuthentication` scheme you'll need to [configure the authentica
<ide>
<ide> ---
<ide>
<del>**Note:** Make sure to run `manage.py syncdb` after changing your settings. Both Django native (from v1.7) and South migrations for the `authtoken` database tab... | 1 |
Text | Text | fix a typo in the action pack changelog [ci skip] | 08433f2fd0de84a260e794e10ecf4e1be9327886 | <ide><path>actionpack/CHANGELOG.md
<del>* Introduce a new error page to when the implict render page is accessed in the browser.
<add>* Introduce a new error page to when the implicit render page is accessed in the browser.
<ide>
<ide> Now instead of showing an error page that with exception and backtraces we ... | 1 |
Go | Go | allow fallback on unknown errors | a21ba12f4e7f11c17e6d665716f3060b9923b11c | <ide><path>registry/registry.go
<ide> import (
<ide> "github.com/Sirupsen/logrus"
<ide> "github.com/docker/distribution/registry/api/errcode"
<ide> "github.com/docker/distribution/registry/api/v2"
<add> "github.com/docker/distribution/registry/client"
<ide> "github.com/docker/distribution/registry/client/transport"... | 1 |
PHP | PHP | allow testing of a specific status code | b8729125dc52eaf5c9e190c594203e5dc887125b | <ide><path>src/TestSuite/IntegrationTestCase.php
<ide> public function assertResponseFailure() {
<ide> $this->_assertStatus(500, 505, 'Status code is not between 500 and 505');
<ide> }
<ide>
<add>/**
<add> * Assert a specific response status code.
<add> *
<add> * @return void
<add> */
<add> public function assertRe... | 1 |
PHP | PHP | add version to deprecations | 50aef1c4f82897b8cb1c953ab0365c59f20905c9 | <ide><path>src/ORM/Association.php
<ide> public function getName()
<ide> /**
<ide> * Sets the name for this association.
<ide> *
<del> * @deprecated Use setName()/getName() instead.
<add> * @deprecated 3.4.0 Use setName()/getName() instead.
<ide> * @param string|null $name Name to be assigned... | 5 |
Javascript | Javascript | remove unnecessary finddomnode calls | e25d899d23972f0e99a7ed1068991dfa273786e5 | <ide><path>docs/_js/live_editor.js
<ide> var CodeMirrorEditor = React.createClass({
<ide> componentDidMount: function() {
<ide> if (IS_MOBILE) return;
<ide>
<del> this.editor = CodeMirror.fromTextArea(ReactDOM.findDOMNode(this.refs.editor), {
<add> this.editor = CodeMirror.fromTextArea(this.refs.editor, {
... | 1 |
Python | Python | fix indentation in blender exporter script | 66b101db3fe14ac3ca3efdc46723a8aadd0c56b5 | <ide><path>utils/exporters/blender/2.65/scripts/addons/io_mesh_threejs/export_threejs.py
<ide> def generate_cameras(data):
<ide> "position" : generate_vec3([cameraobj.location[0], -cameraobj.location[1], cameraobj.location[2]], data["flipyz"]),
<ide> "target" : generate_vec3(... | 1 |
Javascript | Javascript | add test for wrapstream readstop | 9702ac508819a443503867a5c73ae395f9773363 | <ide><path>test/parallel/test-wrap-js-stream-read-stop.js
<add>// Flags: --expose-internals
<add>'use strict';
<add>
<add>require('../common');
<add>const assert = require('assert');
<add>const WrapStream = require('internal/wrap_js_stream');
<add>const Stream = require('stream');
<add>
<add>class FakeStream extends St... | 1 |
Python | Python | add speed log to examples/run_squad.py | 0919389d9aa03c19bee2ae9bc9922ff15ec8381b | <ide><path>examples/run_squad.py
<ide> import os
<ide> import random
<ide> import glob
<add>import timeit
<ide>
<ide> import numpy as np
<ide> import torch
<ide> def evaluate(args, model, tokenizer, prefix=""):
<ide> logger.info(" Num examples = %d", len(dataset))
<ide> logger.info(" Batch size = %d", args.e... | 1 |
Javascript | Javascript | fix redeclared vars in doc/json.js | c14c12e6baf0c5f4910fc0c33ec610dc5119a0d9 | <ide><path>tools/doc/json.js
<ide> function processList(section) {
<ide> var type = tok.type;
<ide> if (type === 'space') return;
<ide> if (type === 'list_item_start') {
<add> var n = {};
<ide> if (!current) {
<del> var n = {};
<ide> values.push(n);
<ide> current = n;
<ide>... | 1 |
Python | Python | fix additional issue | 8e3a2e88e905a517e3969f23ad200a5b258fc535 | <ide><path>celery/backends/base.py
<ide> def fallback_chord_unlock(self, group_id, body, result=None,
<ide>
<ide> def apply_chord(self, header, partial_args, group_id, body,
<ide> options={}, **kwargs):
<del> options['task_id'] = group_id
<del> result = header(*partial_args, **opt... | 1 |
Go | Go | make defaultservice.serviceconfig() more idiomatic | 382b9865202062b2269d796c428c3cfa89a23846 | <ide><path>registry/config.go
<ide> func newServiceConfig(options ServiceOptions) (*serviceConfig, error) {
<ide> return config, nil
<ide> }
<ide>
<add>// copy constructs a new ServiceConfig with a copy of the configuration in config.
<add>func (config *serviceConfig) copy() *registrytypes.ServiceConfig {
<add> ic :=... | 2 |
Text | Text | update document regarding symbols | bb7d8812da67d8117dda6ee5298273e03a58a119 | <ide><path>docs/getting-started.md
<ide> FIXME: Describe https://github.com/atom/find-and-replace
<ide>
<ide> #### Navigating By Symbols
<ide>
<del>VERIFY: This seems to happen automatically now and cmd+shift+j doesn't seem to work.
<del>
<del>If you want to jump to a method, you can use the ctags-based symbols packa... | 1 |
Python | Python | add possibility to ignore imports in test_fecther | 5f436238435e960f4172737c55f699db711361d3 | <ide><path>src/transformers/tokenization_utils_base.py
<ide> def _from_pretrained(
<ide> init_kwargs = init_configuration
<ide>
<ide> if config_tokenizer_class is None:
<del> from .models.auto.configuration_auto import AutoConfig
<add> from .models.auto.configuration_auto impo... | 2 |
Python | Python | add an emptygen option for f2py | c5cbb4ca9f1e531e44245bfc3ab564c609b8b804 | <ide><path>numpy/f2py/f2py2e.py
<ide> import os
<ide> import pprint
<ide> import re
<add>from pathlib import Path
<ide>
<ide> from . import crackfortran
<ide> from . import rules
<ide>
<ide> --quiet Run quietly.
<ide> --verbose Run with extra verbosity.
<add> --empty-gen Ensure all possible ... | 1 |
Java | Java | add getrawstatuscode() to exchangeresult | 955000699aa7675a698933057d607b4abd603d41 | <ide><path>spring-test/src/main/java/org/springframework/mock/http/client/reactive/MockClientHttpResponse.java
<ide> public MockClientHttpResponse(HttpStatus status) {
<ide> }
<ide>
<ide> public MockClientHttpResponse(int status) {
<del> Assert.isTrue(status >= 100 && status < 600, "Status must be between 1xx and 5... | 4 |
Text | Text | fix description about the latest-codename | fde18b24f105d4a70cf1fda714f93a35722bf517 | <ide><path>README.md
<ide> Binaries, installers, and source tarballs are available at
<ide> <https://nodejs.org/download/release/>, listed under their version strings.
<ide> The [latest](https://nodejs.org/download/release/latest/) directory is an
<ide> alias for the latest Stable release. The latest LTS release from a... | 1 |
Text | Text | update changelog with 1.2.27 | 5c611e898a1a62f1a7b1e0da7bb5a5b08d7f00f6 | <ide><path>CHANGELOG.md
<add><a name="1.2.27"></a>
<add># 1.2.27 prime-factorization (2014-11-20)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$animate:** clear the GCS cache even when no animation is detected
<add> ([f619d032](https://github.com/angular/angular.js/commit/f619d032c932752313c646b5295bad8a68ef3871),
<ad... | 1 |
PHP | PHP | fix some route docblocks | f8114e342b010a454d3d68685bd279f0cf661144 | <ide><path>src/Illuminate/Routing/Route.php
<ide> public function getUri()
<ide> * Set the URI that the route responds to.
<ide> *
<ide> * @param string $uri
<del> * @return \Illuminate\Routing\Route
<add> * @return $this
<ide> */
<ide> public function setUri($uri)
<ide> {
<ide> pu... | 1 |
Javascript | Javascript | add test for uglifyjsplugin | a417b80f2343b169ce129ce18aada4226bf22f49 | <ide><path>test/UglifyJsPlugin.test.js
<add>"use strict";
<add>const should = require("should");
<add>const sinon = require("sinon");
<add>const UglifyJSPlugin = require("../lib/optimize/UglifyJSPlugin");
<add>const PluginEnvironment = require("./helpers/PluginEnvironment");
<add>const SourceMapSource = require("webpac... | 1 |
Java | Java | add runtimehints predicates generator | 9c9b2356cec4a74c685320c5b8b1b6eb283f9dc0 | <ide><path>spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionPropertiesCodeGeneratorTests.java
<ide> import org.junit.jupiter.api.Test;
<ide>
<ide> import org.springframework.aot.generate.GeneratedMethods;
<del>import org.springframework.aot.hint.ExecutableMode;
<ide> import org.springfram... | 13 |
Text | Text | update custom renderer docs | 394b17eede14c97ceff3827b716ca016e805a094 | <ide><path>packages/react-reconciler/README.md
<ide> This is an experimental package for creating custom React renderers.
<ide> ```js
<ide> var Reconciler = require('react-reconciler');
<ide>
<del>var ReconcilerConfig = {
<add>var HostConfig = {
<ide> // You'll need to implement some methods here.
<ide> // See bel... | 1 |
Text | Text | add links to dataflow.md | f02a1cfb8d28f603aef7c477d9cd8128744e9d01 | <ide><path>docs/basics/DataFlow.md
<ide> The data lifecycle in any Redux app follows these 4 steps:
<ide>
<ide> 1. **You call** [`store.dispatch(action)`](../api/Store.md#dispatch).
<ide>
<del> An action is a plain object describing *what happened*. For example:
<add> An [action](Actions.md) is a plain object descr... | 1 |
Javascript | Javascript | add htmlbars version of `makeboundhelper` | aceb1d6bd1cf3a40649241112f81a811eb7c1373 | <ide><path>packages/ember-htmlbars/lib/compat/make-bound-helper.js
<add>import Ember from "ember-metal/core"; // Ember.FEATURES, Ember.assert, Ember.Handlebars, Ember.lookup
<add>import { IS_BINDING } from "ember-metal/mixin";
<add>import simpleBind from "ember-htmlbars/system/simple-bind";
<add>import merge from "embe... | 8 |
PHP | PHP | fix failing test | 4e9e1d8afb0ee0256b57a5316f179337c7c11b81 | <ide><path>lib/Cake/Test/TestCase/Core/ConfigureTest.php
<ide> public function testDump() {
<ide> */
<ide> public function testDumpPartial() {
<ide> Configure::config('test_reader', new PhpReader(TMP));
<add> Configure::write('Error', ['test' => 'value']);
<ide>
<del> $result = Configure::dump('config_test.php',... | 1 |
Go | Go | simplify seccomp logic | a8e7115fca8db167d09d81d3b1d4aadcfcf4264b | <ide><path>daemon/seccomp_linux.go
<ide> import (
<ide> coci "github.com/containerd/containerd/oci"
<ide> "github.com/docker/docker/container"
<ide> "github.com/docker/docker/profiles/seccomp"
<del> specs "github.com/opencontainers/runtime-spec/specs-go"
<ide> "github.com/sirupsen/logrus"
<ide> )
<ide>
<ide> const... | 1 |
Ruby | Ruby | replace conditional assignment with an if-else | 28227bd26b592d3c4ecb669a662750200938d734 | <ide><path>Library/Homebrew/linkage_checker.rb
<ide> def unexpected_broken_libs
<ide> def broken_dylibs_with_expectations
<ide> output = {}
<ide> @broken_dylibs.each do |lib|
<del> output[lib] = (unexpected_broken_libs.include? lib) ? ["unexpected"] : ["expected"]
<add> output[lib] = if unexpected_b... | 1 |
Python | Python | commit fix for listing public ip ranges | 69a80e57852eae5cd08e94dffe9606dbc38d698d | <ide><path>libcloud/compute/drivers/azure_arm.py
<ide> def ex_list_public_ips(self, resource_group):
<ide> :rtype: ``list`` of :class:`.AzureIPAddress`
<ide> """
<ide>
<del> action = "/subscriptions/%s/providers/Microsoft.Network" \
<del> "/publicIPAddresses" % (self.subscription... | 1 |
PHP | PHP | add stub methods to postgres + sqlite schemas | f31d30ba6356e4b7736ccdf61eec8eaf36a6bb0f | <ide><path>lib/Cake/Database/Schema/PostgresSchema.php
<ide> public function convertFieldDescription(Table $table, $row, $fieldParams = []) {
<ide> }
<ide> }
<ide>
<add>/**
<add> * Get the SQL to describe the indexes in a table.
<add> *
<add> * @param string $table The table name to get information on.
<add> * @ret... | 2 |
Text | Text | update api reference | 8d83cca7f705c4bae291be943e133291c6d34dc2 | <ide><path>README.md
<ide> Compute the Voronoi diagram of a given set of points.
<ide>
<ide> * [d3.voronoi](https://github.com/d3/d3-voronoi#voronoi) - create a new Voronoi generator.
<ide> * [*voronoi*](https://github.com/d3/d3-voronoi#_voronoi) - generate a new Voronoi diagram for the given points.
<del>* [*voronoi*... | 1 |
Go | Go | remove unused containeros argument | cae1dbee018b50a266376d7f32e04f37b4723932 | <ide><path>daemon/delete.go
<ide> func (daemon *Daemon) cleanupContainer(container *container.Container, forceRemo
<ide> // When container creation fails and `RWLayer` has not been created yet, we
<ide> // do not call `ReleaseRWLayer`
<ide> if container.RWLayer != nil {
<del> err := daemon.imageService.ReleaseLayer... | 3 |
PHP | PHP | fix failing tests in http package | 2a6cb816b316e08f29d30f45f0d0a5436e7d76dd | <ide><path>src/Http/ServerRequestFactory.php
<ide> public static function fromGlobals(
<ide> array $files = null
<ide> ) {
<ide> $request = parent::fromGlobals($server, $query, $body, $cookies, $files);
<del> list($base, $webroot) = static::getBase($request->getUri(), $request->getServerParam... | 1 |
Javascript | Javascript | prevent race condition on immediate transition | 3a53228127b3e4c2e7424fd7735e28cf852bf658 | <ide><path>Libraries/NavigationExperimental/NavigationTransitioner.js
<ide> class NavigationTransitioner extends React.Component<any, Props, State> {
<ide> progress,
<ide> } = nextState;
<ide>
<del> // update scenes.
<del> this.setState(nextState);
<del>
<ide> // get the transition spec.
<ide> ... | 1 |
Ruby | Ruby | explain actionamailer authentication types | 5a898e106a6f92ad2773a6525b0899cf906d2b3f | <ide><path>actionmailer/lib/action_mailer/base.rb
<ide> module ActionMailer #:nodoc:
<ide> # * <tt>:password</tt> - If your mail server requires authentication, set the password in this setting.
<ide> # * <tt>:authentication</tt> - If your mail server requires authentication, you need to specify the
<ide> # ... | 1 |
Text | Text | put a verb in singular by removing a letter | 599093488df9c0598b12fb8ed00fee4a935657b5 | <ide><path>curriculum/challenges/english/09-information-security/information-security-with-helmetjs/understand-bcrypt-hashes.md
<ide> For the following challenges, you will be working with a new starter project tha
<ide>
<ide> BCrypt hashes are very secure. A hash is basically a fingerprint of the original data- alway... | 1 |
Java | Java | update copyright year of evaluationtests | 135506f67238a57bfb2fa8bff6480de611eda1d6 | <ide><path>spring-expression/src/test/java/org/springframework/expression/spel/EvaluationTests.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 "License");
<ide> * ... | 1 |
Java | Java | fix typo in flowable javadoc | c045188ffbbb35bb62ce1d8a00353679321fa641 | <ide><path>src/main/java/io/reactivex/rxjava3/core/Flowable.java
<ide> * Thread.sleep(1000);
<ide> *
<ide> * // the consumer might have cancelled the flow
<del> * if (emitter.isCancelled() {
<add> * if (emitter.isCancelled()) {
<ide> * return;
<ide> * }
<ide> * | 1 |
Text | Text | add info about serializable types | b07c72b8be656c7a4a09a6a70ac02aec0688eb1c | <ide><path>doc/api/querystring.md
<ide> added: v0.1.25
<ide> The `querystring.stringify()` method produces a URL query string from a
<ide> given `obj` by iterating through the object's "own properties".
<ide>
<add>It serializes the following types of values passed in `obj`:
<add>{string|number|boolean|string[]|number[... | 1 |
Text | Text | fix template typo | bd8098e31fcc20e10247866bb9faac31e471e1fc | <ide><path>docs/topics/html-and-forms.md
<del># HTML & Forms
<del>
<del>REST framework is suitable for returning both API style responses, and regular HTML pages. Additionally, serializers can used as HTML forms and rendered in templates.
<del>
<del>## Rendering HTML
<del>
<del>In order to return HTML responses you'll ... | 1 |
PHP | PHP | fix usage of data and result on some event objects | 9e06527bee808a8fb15d60c28d27519d346d83c1 | <ide><path>src/Datasource/RulesAwareTrait.php
<ide> public function checkRules(EntityInterface $entity, $operation = RulesChecker::C
<ide> compact('entity', 'options', 'operation')
<ide> );
<ide> if ($event->isStopped()) {
<del> return $event->result;
<add> ... | 5 |
Go | Go | skip some exec tests requiring same-host daemon | e6f88f091d59a32f7a1cd9baa18b9d792548f36d | <ide><path>integration-cli/docker_cli_exec_test.go
<ide> func TestLinksPingLinkedContainersOnRename(t *testing.T) {
<ide> }
<ide>
<ide> func TestRunExecDir(t *testing.T) {
<add> testRequires(t, SameHostDaemon)
<ide> cmd := exec.Command(dockerBinary, "run", "-d", "busybox", "top")
<ide> out, _, err := runCommandWithO... | 1 |
Ruby | Ruby | fix recursive requirement resolution | 36c1c8e9b0e5919a5165ffb5eaeddb54db1238b0 | <ide><path>Library/Homebrew/cmd/uses.rb
<ide> def uses
<ide> Dependency.prune unless includes.include?("build?")
<ide> end
<ide> end
<del> reqs = f.recursive_requirements do |dependent, req|
<add>
<add> dep_formulae = deps.map do |dep|
<add> b... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.