content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | allow missing source in sourcemap #954 | 348c38b3f971b28254411cbda946a35283657fa8 | <ide><path>lib/ModuleFilenameHelpers.js
<ide> function asRegExp(test) {
<ide> }
<ide>
<ide> ModuleFilenameHelpers.createFilename = function createFilename(module, moduleFilenameTemplate, requestShortener) {
<add> if(!module) module = "";
<ide> if(typeof module === "string") {
<ide> var shortIdentifier = requestShor... | 2 |
Mixed | Text | add tag support to journald logging driver, closes | 5a3351883b254d3690e9dcc5b89293bcee474493 | <ide><path>daemon/logger/journald/journald.go
<ide> import (
<ide> "github.com/Sirupsen/logrus"
<ide> "github.com/coreos/go-systemd/journal"
<ide> "github.com/docker/docker/daemon/logger"
<add> "github.com/docker/docker/daemon/logger/loggerutils"
<ide> )
<ide>
<ide> const name = "journald"
<ide> func New(ctx logger... | 3 |
Ruby | Ruby | improve host checks to instead check domains | 38ae98cbcd2690142506aa86b34a769175e53c41 | <ide><path>Library/Homebrew/livecheck/livecheck.rb
<ide> def checkable_urls(formula_or_cask)
<ide> sig { params(url: String).returns(String) }
<ide> def preprocess_url(url)
<ide> begin
<del> uri = URI.parse url
<del> rescue URI::InvalidURIError
<add> uri = Addressable::URI.parse url
<ad... | 1 |
Text | Text | add changes for 1.6.7 | 07e475137ec39604bca4a8be07a1a605a4fd6e7d | <ide><path>CHANGELOG.md
<add><a name="1.6.7"></a>
<add># 1.6.7 imperial-backstroke (2017-11-24)
<add>
<add>
<add>## Bug Fixes
<add>- **$compile:** sanitize special chars in directive name
<add> ([c4003f](https://github.com/angular/angular.js/commit/c4003fd03489f876b646f06838f4edb576bacf6f),
<add> [#16314](https://git... | 1 |
Python | Python | mark the failing tests as xfail | 659732ade7a506bded4347a5828b9fc95377669f | <ide><path>numpy/linalg/tests/test_linalg.py
<ide> def test_types(self, dtype):
<ide> x = np.array([[1, 0.5], [0.5, 1]], dtype=dtype)
<ide> assert_equal(linalg.solve(x, x).dtype, dtype)
<ide>
<add> @pytest.mark.xfail(sys.platform == 'cygwin',
<add> reason="Consistently fails on... | 1 |
Javascript | Javascript | remove dependency to util | 7977aeb21def68c6a20534bc3eeee76192e1d20e | <ide><path>src/locale/el.js
<ide> //! author : Aggelos Karalias : https://github.com/mehiel
<ide>
<ide> import moment from '../moment';
<del>import isFunction from '../lib/utils/is-function';
<add>
<add>function isFunction(input) {
<add> return (
<add> (typeof Function !== 'undefined' && input instanceof Fun... | 1 |
Javascript | Javascript | fix missing readmes on core package detail pages | 138966224a0314b388c6ef624dcb6343b60a1535 | <ide><path>script/lib/include-path-in-packaged-app.js
<ide> const EXCLUDE_REGEXPS_SOURCES = [
<ide> // Ignore node_module files we won't need at runtime
<ide> 'node_modules' + escapeRegExp(path.sep) + '.*' + escapeRegExp(path.sep) + '_*te?sts?_*' + escapeRegExp(path.sep),
<ide> 'node_modules' + escapeRegExp(path.... | 1 |
Ruby | Ruby | allow multiple macos requirements | 9eac310468b60a4ab4ef02aeda9e513337bbb198 | <ide><path>Library/Homebrew/requirement.rb
<ide> def ==(other)
<ide> alias eql? ==
<ide>
<ide> def hash
<del> [name, tags].hash
<add> [self.class, name, tags].hash
<ide> end
<ide>
<ide> sig { returns(String) }
<ide><path>Library/Homebrew/requirements/macos_requirement.rb
<ide> def message(type: :formula... | 2 |
Python | Python | freeze flaxwav2vec2 feature encoder | 3c4fbc616f74120c3900d07c772b7d2d9c7a53dd | <ide><path>src/transformers/models/wav2vec2/modeling_flax_wav2vec2.py
<ide> class FlaxWav2Vec2FeatureEncoder(nn.Module):
<ide> def setup(self):
<ide> self.conv_layers = FlaxConvLayersCollection(self.config, dtype=self.dtype)
<ide>
<del> def __call__(self, input_values):
<add> def __call__(self, input... | 2 |
Python | Python | move db call out of __init__ | 4bec1cc489f5d19daf7450c75c3e8057c9709dbd | <ide><path>airflow/providers/microsoft/azure/hooks/azure_fileshare.py
<ide> class AzureFileShareHook(BaseHook):
<ide>
<ide> def __init__(self, wasb_conn_id='wasb_default'):
<ide> self.conn_id = wasb_conn_id
<del> self.connection = self.get_conn()
<add> self._conn = None
<ide>
<ide> def g... | 2 |
PHP | PHP | fix variable potentially being undefined | 1ca0760a6678875e0711ef7f3e0c5eb88f431f4f | <ide><path>src/Command/HelpCommand.php
<ide> protected function asText($io, $commands): void
<ide> continue;
<ide> }
<ide> $namespace = str_replace('\\', '/', $matches[1]);
<del> if ($namespace === $appNamespace) {
<del> $prefix = 'App';
<del> ... | 1 |
Go | Go | avoid trivial uses of sprintf | cc0b7e6aadaafb6dbb2f2590e4bf12b844d8b8b0 | <ide><path>libnetwork/drivers/bridge/bridge_test.go
<ide> func verifyV4INCEntries(networks map[string]*bridgeNetwork, numEntries int, t *t
<ide> if x == y {
<ide> continue
<ide> }
<del> re := regexp.MustCompile(fmt.Sprintf("%s %s", x.config.BridgeName, y.config.BridgeName))
<add> re := regexp.MustCompile(... | 9 |
Java | Java | fix todo in reactorhttpserver | 3eb2432ced0cba56ddb8fefac6da88f173a98703 | <ide><path>spring-web/src/test/java/org/springframework/http/server/reactive/bootstrap/ReactorHttpServer.java
<ide>
<ide> package org.springframework.http.server.reactive.bootstrap;
<ide>
<add>import java.util.concurrent.atomic.AtomicReference;
<add>
<ide> import reactor.core.Loopback;
<ide> import reactor.ipc.netty.... | 1 |
Python | Python | add stop words | a8d84188f018ce84e91ce14e7be9b06952c59497 | <ide><path>spacy/lang/am/stop_words.py
<del># Stop words
<add># Stop words by Teshome Kassie http://etd.aau.edu.et/bitstream/handle/123456789/3315/Teshome%20Kassie.pdf?sequence=1&isAllowed=y
<add># Stop words by Tihitina Petros http://etd.aau.edu.et/bitstream/handle/123456789/3384/Tihitina%20Petros.pdf?sequence=1&isAll... | 1 |
PHP | PHP | remove multiple method call | 25b486aaff659a7c981306140ed8e6b3a5b6f6ad | <ide><path>src/Datasource/EntityTrait.php
<ide> public function set($property, $value = null, $options = []) {
<ide>
<ide> if (!isset($this->_original[$p]) &&
<ide> isset($this->_properties[$p]) &&
<del> $this->_properties[$p] !== $value
<del> ) {
<add> $this->_properties[$p] !== $value
<add> ) {
<i... | 1 |
Go | Go | fix error handling | f41e0cf0485eac21d65c1af19a732b350292d200 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdRmi(args ...string) error {
<ide>
<ide> var encounteredError error
<ide> for _, name := range cmd.Args() {
<del> stream, _, err := cli.call("DELETE", "/images/"+name, nil, false)
<add> body, _, err := readBody(cli.call("DELETE", "/images/"+name, nil, false))
<i... | 4 |
Python | Python | correct an issue in last commit for | 0e9e5e9512a36f9c410ff398c068d3e85ff06e2c | <ide><path>glances/__init__.py
<ide> # Global name
<ide> # Version should start and end with a numerical char
<ide> # See https://packaging.python.org/specifications/core-metadata/#version
<del>__version__ = '3.2.0b1'
<add>__version__ = '3.2.0b2'
<ide> __author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
<ide> __lice... | 3 |
PHP | PHP | fix boundmethod dockblock | 838a47599dd7fb0597656cf71ce4e18c7d9051b0 | <ide><path>src/Illuminate/Container/BoundMethod.php
<ide> class BoundMethod
<ide> * @param array $parameters
<ide> * @param string|null $defaultMethod
<ide> * @return mixed
<add> *
<add> * @throws \ReflectionException
<add> * @throws \InvalidArgumentException
<ide> */
<ide> publi... | 1 |
Javascript | Javascript | revert part of d39268920 | ea1ec29ba67c837c82c74357e313bd4505b81eb8 | <ide><path>Libraries/StyleSheet/StyleSheetTypes.js
<ide> export type ____FontWeight_Internal =
<ide> | 'condensedBold'
<ide> | 'condensed'
<ide> | 'heavy'
<del> | 'black';
<add> | 'black'
<add> | 'Ultralight'
<add> | 'Thin'
<add> | 'Light'
<add> | 'Normal'
<add> | 'Medium'
<add> | 'Semibold'
<add> | 'Bol... | 1 |
Javascript | Javascript | fix stale getstate on hot reloading (#90) | 4acf88a0354a8a04364826ca76a0777bb6b58a32 | <ide><path>src/createDispatcher.js
<ide> export default function createDispatcher(store, middlewares = []) {
<ide> return state;
<ide> }
<ide>
<del> if (typeof middlewares === 'function') {
<del> middlewares = middlewares(getState);
<del> }
<add> const finalMiddlewares = typeof middlewares === ... | 1 |
PHP | PHP | add strict_types to testsuite package | c38740b479e446f1a497b7af0d9d9274ddd20031 | <ide><path>src/TestSuite/ConsoleIntegrationTestCase.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide><path>src/TestSuite/ConsoleIntegrationTestTrait.php
<... | 21 |
Go | Go | protect entire environment when testing | 063c89c71fd1fbeb7ef7c46f43ee805b620e7136 | <ide><path>integration-cli/check_test.go
<ide> func TestMain(m *testing.M) {
<ide> func Test(t *testing.T) {
<ide> cli.SetTestEnvironment(testEnv)
<ide> fakestorage.SetTestEnvironment(&testEnv.Execution)
<del> ienv.ProtectImages(t, &testEnv.Execution)
<add> ienv.ProtectAll(t, &testEnv.Execution)
<ide> check.TestingT... | 3 |
Python | Python | add benchmark for creating new arrays | 145d10cd37fe61c5dcdf1d5841b7d23b09751038 | <ide><path>benchmarks/creating.py
<add>import timeit
<add>N = [1000,100]
<add>t1 = timeit.Timer('a=N.zeros(shape,type)','import numpy as N; shape=%s;type=float'%N)
<add>t2 = timeit.Timer('a=N.zeros(shape,type)','import Numeric as N; shape=%s;type=N.Float'%N)
<add>t3 = timeit.Timer('a=N.zeros(shape,type)',"import numarr... | 1 |
Mixed | Javascript | use camelcase and declare must_use_attribute | bfcd4cac48a294da32a0bda0a82055c640aebac9 | <ide><path>docs/docs/ref-04-tags-and-attributes.md
<ide> accept accessKey action allowFullScreen allowTransparency alt async
<ide> autoComplete autoFocus autoPlay cellPadding cellSpacing charSet checked
<ide> className colSpan cols content contentEditable contextMenu controls data
<ide> dateTime defer dir disabled drag... | 2 |
Text | Text | remove advice on bad python linking | 116075dda9c6c8bffe06e16646ed9eb4d0ae7f8e | <ide><path>share/doc/homebrew/Common-Issues.md
<ide> $ git clean -n # if this doesn't list anything that you want to keep, then
<ide> $ git clean -f # this will remove untracked files
<ide> ```
<ide>
<del>### Python: `Segmentation fault: 11` on `import <some_python_module>`
<del>
<del>A `Segmentation fault: 11` is in ... | 1 |
Mixed | Ruby | add insert_all to activerecord models | 91ed21b304c468db8ce9fd830312c151432935d0 | <ide><path>activerecord/CHANGELOG.md
<add>* Add `insert_all`/`insert_all!`/`upsert_all` methods to `ActiveRecord::Persistence`,
<add> allowing bulk inserts akin to the bulk updates provided by `update_all` and
<add> bulk deletes by `delete_all`.
<add>
<add> Supports skipping or upserting duplicates through t... | 12 |
Javascript | Javascript | use $viewvalue instead of $modelvalue | f7174169f4f710d605f6a67f39f90a67a07d4cab | <ide><path>src/ng/directive/select.js
<ide> var selectDirective = ['$compile', '$parse', function($compile, $parse) {
<ide> function getSelectedSet() {
<ide> var selectedSet = false;
<ide> if (multiple) {
<del> var modelValue = ctrl.$modelValue;
<del> if (trackFn && i... | 2 |
Text | Text | replace unnecessary template literals | dddab5d4b1af7c6837d32a410bc5e1e44fcf15c1 | <ide><path>docs/recipes/WritingTests.md
<ide> const create = () => {
<ide> We test that our middleware is calling the `getState`, `dispatch`, and `next` functions at the right time.
<ide>
<ide> ```js
<del>it(`passes through non-function action`, () => {
<add>it('passes through non-function action', () => {
<ide> con... | 1 |
Ruby | Ruby | use --verify when querying head | 10f8443f8ae9f008c2bc45b0e80bcbb2f6419806 | <ide><path>Library/Homebrew/cmd/update.rb
<ide> def report
<ide> private
<ide>
<ide> def read_current_revision
<del> `git rev-parse HEAD`.chomp
<add> `git rev-parse -q --verify HEAD`.chomp
<ide> end
<ide>
<ide> def `(cmd) | 1 |
Python | Python | fix a typo in an error message | 9d5d0ec2264c86a19714cf185a5a183df14cbb94 | <ide><path>numpy/_array_api/_elementwise_functions.py
<ide> def bitwise_and(x1: Array, x2: Array, /) -> Array:
<ide> See its docstring for more information.
<ide> """
<ide> if x1.dtype not in _integer_or_boolean_dtypes or x2.dtype not in _integer_or_boolean_dtypes:
<del> raise TypeError('Only integer... | 1 |
PHP | PHP | add an environment method to app | 33f6acba80dd743e173e52d1b0e1116c6700b4d3 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function startExceptionHandling()
<ide> $provider->startHandling($this);
<ide> }
<ide>
<add> /**
<add> * Get the current application environment.
<add> *
<add> * @return string
<add> */
<add> public function environment()
<add> {
<add> return $t... | 1 |
Ruby | Ruby | convert license array to hash | 6eb07d70f04d67345934764bb4316c8af43d5cb1 | <ide><path>Library/Homebrew/formula.rb
<ide> def method_added(method)
<ide> # <pre>license all_of: ["MIT", "GPL-2.0-only"]</pre>
<ide> # <pre>license "GPL-2.0-only" => { with: "LLVM-exception" }</pre>
<ide> # <pre>license :public_domain</pre>
<del> attr_rw :license
<add> def license(args = nil)
<add> ... | 3 |
Mixed | Javascript | return this from getconnections() | 37fdfce93e333fbceb12576031602df641c058c8 | <ide><path>doc/api/net.md
<ide> connections use asynchronous `server.getConnections` instead.
<ide> added: v0.9.7
<ide> -->
<ide>
<add>* Returns {net.Server}
<add>
<ide> Asynchronously get the number of concurrent connections on the server. Works
<ide> when sockets were sent to forks.
<ide>
<ide><path>lib/net.js
<ide... | 3 |
Javascript | Javascript | use the es6 export syntax | 3ca4448afc784bc3ab5fc94692613e67fa22891e | <ide><path>src/git-repository-async.js
<ide> const indexStatusFlags = Git.Status.STATUS.INDEX_NEW | Git.Status.STATUS.INDEX_M
<ide> // Just using this for _.isEqual and _.object, we should impl our own here
<ide> import _ from 'underscore-plus'
<ide>
<del>module.exports = class GitRepositoryAsync {
<add>export default... | 1 |
PHP | PHP | add type hinting to test suite package | 1cb5d9b44fa957998ee398b9366341b4874b8d9f | <ide><path>src/Console/ShellDispatcher.php
<ide> protected function _shellExists(string $shell): ?string
<ide> * @param string $shortName The plugin-prefixed shell name
<ide> * @return \Cake\Console\Shell A shell instance.
<ide> */
<del> protected function _createShell($className, $shortName)
<add> ... | 11 |
Python | Python | resolve state issue for url_for with forced scheme | 6aee9f6d77e0696bd570d6095445d73c48539f8a | <ide><path>flask/helpers.py
<ide> def external_url_handler(error, endpoint, values):
<ide> scheme = values.pop('_scheme', None)
<ide> appctx.app.inject_url_defaults(endpoint, values)
<ide>
<add> # This is not the best way to deal with this but currently the
<add> # underlying Werkzeug router does not sup... | 2 |
Python | Python | introduce logging_strategy training argument | 709c86b5a925f1efe650e24ee8b1f52bdc5a3acb | <ide><path>src/transformers/trainer_callback.py
<ide> import numpy as np
<ide> from tqdm.auto import tqdm
<ide>
<del>from .trainer_utils import EvaluationStrategy
<add>from .trainer_utils import EvaluationStrategy, LoggingStrategy
<ide> from .training_args import TrainingArguments
<ide> from .utils import logging
<ide... | 4 |
Javascript | Javascript | add toonmap support to materialloader | c6f7ce7eb0d289ee6ccc53dee10221da43c50902 | <ide><path>src/loaders/MaterialLoader.js
<ide> Object.assign( MaterialLoader.prototype, {
<ide> if ( json.aoMap !== undefined ) material.aoMap = getTexture( json.aoMap );
<ide> if ( json.aoMapIntensity !== undefined ) material.aoMapIntensity = json.aoMapIntensity;
<ide>
<add> if ( json.toonMap !== undefined ) mat... | 1 |
Java | Java | ignore dropview method when view is null | e5d975b5c75945b04d2e8cf7fa7ceac00194e6e8 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java
<ide> protected synchronized final void addRootViewGroup(int tag, View view) {
<ide> */
<ide> protected synchronized void dropView(View view) {
<ide> UiThreadUtil.assertOnUiThread();
<add> if (view == null) {
... | 1 |
Mixed | Javascript | support checkbox tinting | 976f4be4578bd5ce8556b40f98dd4407b5f1ea48 | <ide><path>Libraries/Components/CheckBox/AndroidCheckBoxNativeComponent.js
<ide> type NativeProps = $ReadOnly<{|
<ide>
<ide> on?: ?boolean,
<ide> enabled?: boolean,
<add> tintColors: {|true: ?number, false: ?number|} | typeof undefined,
<ide> |}>;
<ide>
<ide> type CheckBoxNativeType = Class<NativeComponent<Nativ... | 4 |
PHP | PHP | replace function join (alias) by implode | df9e1e0bd1a1445e3854c41f5af6d1f2a7679476 | <ide><path>cake/basics.php
<ide> function env($key) {
<ide> /**
<ide> * Writes data into file.
<ide> *
<del> * If file exists, it will be overwritten. If data is an array, it will be join()ed with an empty string.
<add> * If file exists, it will be overwritten. If data is an array, it will be implode()ed with an empt... | 33 |
Mixed | Go | add load/save image event support | 06561057103441fe176910e12674d998b8561b75 | <ide><path>daemon/daemon.go
<ide> func isBrokenPipe(e error) bool {
<ide> // the same tag are exported. names is the set of tags to export, and
<ide> // outStream is the writer which the images are written to.
<ide> func (daemon *Daemon) ExportImage(names []string, outStream io.Writer) error {
<del> imageExporter := ta... | 8 |
Ruby | Ruby | add collectionproxy#length documentation | eb2c0a4f712b015bf6886286efd6e5b2eeaf54aa | <ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> class CollectionProxy < Relation
<ide> # has_many :pets
<ide> # end
<ide> #
<del> # # This will execute:
<del> # # SELECT COUNT(*) FROM "pets" WHERE "pets"."person_id" = ? [["person_id", 1]]
<ide> ... | 1 |
Python | Python | fix code quality | d6175a4268b6617944f98c5ed947d34c0eea58e2 | <ide><path>examples/language-modeling/run_language_modeling.py
<ide> class DataTrainingArguments:
<ide> default=None, metadata={"help": "The input training data file (a text file)."}
<ide> )
<ide> train_data_files: Optional[str] = field(
<del> default=None, metadata={
<add> default=None,
<... | 1 |
Text | Text | add callbacks documentation for upgrading to 4.1 | 489e531334bc448c88f9b5a74f1bbbcaeb3f067b | <ide><path>guides/source/upgrading_ruby_on_rails.md
<ide> symbol access is no longer supported. This is also the case for
<ide> `store_accessors` based on top of `json` or `hstore` columns. Make sure to use
<ide> string keys consistently.
<ide>
<add>### Explicit block use for `ActiveSupport::Callbacks`
<add>
<add>Rail... | 1 |
Javascript | Javascript | remove obsolete settimeout | 671cffa313784347583162f50029a59b3ec753d3 | <ide><path>lib/_debugger.js
<ide> function Interface(stdin, stdout, args) {
<ide> // Run script automatically
<ide> this.pause();
<ide>
<del> // XXX Need to figure out why we need this delay
<del> setTimeout(function() {
<del>
<del> self.run(function() {
<del> self.resume();
<del> });
<del> }, 10);
<... | 1 |
Java | Java | correct the assert imports | 8cea9ca96213aaa1c35bd755cb82b6265cda79ad | <ide><path>spring-websocket/src/main/java/org/springframework/web/messaging/service/method/MessageChannelArgumentResolver.java
<ide> import org.springframework.messaging.GenericMessage;
<ide> import org.springframework.messaging.Message;
<ide> import org.springframework.messaging.MessageChannel;
<add>import org.springf... | 4 |
Text | Text | add period for readability | 8c22432b177a9431ab488975865f8b596aa52c9a | <ide><path>curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph.md
<ide> You can nest links within other text elements.
<ide>
<ide> Let's break down the example: Normal text is wrapped in the `p` element:
<ide> `<p> Here's a ... for you to follow. </p>... | 1 |
Text | Text | add missing comma in docs | 814bc06d7bf69c7775b775179c7a3edb8d30685c | <ide><path>docs/sources/reference/api/docker_remote_api_v1.15.md
<ide> Create a container
<ide> "Cmd":[
<ide> "date"
<ide> ],
<del> "Entrypoint": ""
<add> "Entrypoint": "",
<ide> "Image":"base",
<ide> "Volumes":{
<ide> ... | 2 |
Text | Text | improve readme with testing instruction | 75b688fba8335598c19b9333459b6939dcf0a32c | <ide><path>packages/react-native-codegen/README.md
<ide> yarn add --dev react-native-codegen
<ide>
<ide> [version-badge]: https://img.shields.io/npm/v/react-native-codegen?style=flat-square
<ide> [package]: https://www.npmjs.com/package/react-native-codegen
<add>
<add>## Testing
<add>
<add>To run the tests in this pac... | 1 |
Javascript | Javascript | add tests for worker code | 07f67fa2259091824fd2ff28fd07034b57aa1def | <ide><path>packager/react-packager/src/ModuleGraph/types.flow.js
<ide> export type PackageData = {|
<ide> 'react-native'?: Object | string,
<ide> |};
<ide>
<del>export type TransformFnResult = {|
<add>export type TransformFnResult = {
<ide> ast: Object,
<del> map?: Object,
<del>|};
<add>};
<ide>
<ide> export typ... | 5 |
Text | Text | improve csp guide [ci-skip] | 2a3bc5bd180caf2197839ab82782ada7072b0c00 | <ide><path>guides/source/security.md
<ide> your application if you are aware of the risk and know how to handle it:
<ide> config.action_dispatch.perform_deep_munge = false
<ide> ```
<ide>
<del>Default Headers
<del>---------------
<add>HTTP Security Headers
<add>---------------------
<ide>
<ide> Every HTTP response fr... | 1 |
Javascript | Javascript | prevent spare datasets from breaking multitooltips | d7632efe65dde5deb2a19c01aa3d01d91458ef56 | <ide><path>src/Chart.Core.js
<ide> yMin;
<ide> helpers.each(this.datasets, function(dataset){
<ide> dataCollection = dataset.points || dataset.bars || dataset.segments;
<del> Elements.push(dataCollection[dataIndex]);
<add> if (dataCollection[dataIndex]){
<add> Elements.push(... | 1 |
Python | Python | finalise the feature | 0463d0df3bd7480391d8d2964e1b574c6aed7c86 | <ide><path>glances/outputs/glances_curses.py
<ide> def display(self, servers_list):
<ide>
<ide> # Display top header
<ide> if len(servers_list) == 0:
<del> if self.first_scan:
<add> if self.first_scan and not self.args.disable_autodiscover:
<ide> msg = _("Glances i... | 1 |
Javascript | Javascript | add unit tests for new sc.eventmanager api | 1f800c3b339805ea0d072e62ad9fcf01fafac674 | <ide><path>packages/sproutcore-views/tests/system/event_dispatcher_test.js
<ide> test("should not interfere with event propagation", function() {
<ide> same(receivedEvent.target, SC.$('#propagate-test-div')[0], "target property is the element that was clicked");
<ide> });
<ide>
<add>test("should dispatch events to n... | 1 |
Javascript | Javascript | treat rollup "warnings" as errors | dc3b144f4162087665f62f4fdac69549181ce310 | <ide><path>scripts/rollup/build.js
<ide> async function createBundle(bundle, bundleType) {
<ide> }
<ide>
<ide> function handleRollupWarning(warning) {
<del> if (warning.code === 'UNRESOLVED_IMPORT') {
<del> console.error(warning.message);
<del> process.exit(1);
<del> }
<ide> if (warning.code === 'UNUSED_EXTE... | 1 |
Text | Text | update license year | ca19860684782531bd932b48a8428fc6249ed489 | <ide><path>license.md
<ide> The MIT License (MIT)
<ide>
<del>Copyright (c) 2021 Vercel, Inc.
<add>Copyright (c) 2022 Vercel, Inc.
<ide>
<ide> Permission is hereby granted, free of charge, to any person obtaining a copy
<ide> of this software and associated documentation files (the "Software"), to deal
<ide><path>pack... | 4 |
Java | Java | add headers in interceptingclienthttprequest | 69c16f3821354c9b0732687825cb902375649c5a | <ide><path>spring-core/src/main/java/org/springframework/util/CollectionUtils.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2017 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use t... | 7 |
Javascript | Javascript | use common.port not 8000 | cb14236bb442fa652c1f598576b868c2f878c2dd | <ide><path>test/simple/test-tls-securepair-server.js
<ide> var sentWorld = false;
<ide> var gotWorld = false;
<ide> var opensslExitCode = -1;
<ide>
<del>server.listen(8000, function() {
<add>server.listen(common.PORT, function() {
<ide> // To test use: openssl s_client -connect localhost:8000
<del> var client = spa... | 1 |
Javascript | Javascript | remove preparenewchildrenbeforeunmountinstack flag | b840229286ac2a82fa49553ce793cf7b953d1845 | <ide><path>src/renderers/shared/stack/reconciler/ReactChildReconciler.js
<ide> 'use strict';
<ide>
<ide> var KeyEscapeUtils = require('KeyEscapeUtils');
<del>var ReactFeatureFlags = require('ReactFeatureFlags');
<ide> var ReactReconciler = require('ReactReconciler');
<ide>
<ide> var instantiateReactComponent = requir... | 3 |
Javascript | Javascript | pass transformoptions to getshallowdependencies | 82000416948edaf9431f94bdfc4db30e5fea529c | <ide><path>local-cli/server/util/attachHMRServer.js
<ide> function attachHMRServer({httpServer, path, packagerServer}) {
<ide> if (dep.isAsset() || dep.isAsset_DEPRECATED() || dep.isJSON()) {
<ide> return Promise.resolve({path: dep.path, deps: []});
<ide> }
<del> return packager... | 4 |
Javascript | Javascript | remove ember.empty and ember.none | b98b1ff7084c051fad8a2c03b504dbd6c644940e | <ide><path>packages/ember-handlebars/lib/helpers/partial.js
<ide> import Ember from "ember-metal/core"; // Ember.assert
<ide> // var emberAssert = Ember.assert;
<ide>
<del>import { isNone } from 'ember-metal/is_none';
<add>import isNone from 'ember-metal/is_none';
<ide> import { bind } from "ember-handlebars/helpers/b... | 15 |
Python | Python | add iteration version (#322) | faf16d7ced7f563bb0c92265bef27b6664156fb5 | <ide><path>traversals/binary_tree_traversals.py
<ide> def build_tree():
<ide> node_found.right = right_node
<ide> q.put(right_node)
<ide>
<del>
<ide> def pre_order(node):
<ide> if not isinstance(node, TreeNode) or not node:
<ide> return
<ide> print(node.data, end=" ")
<ide> pre_orde... | 1 |
Javascript | Javascript | fix asset httpserverlocation on windows | fe3686e126ee66adc6b2e44b46ba82e5ae6c434c | <ide><path>packager/react-packager/src/Bundler/index.js
<ide> class Bundler {
<ide>
<ide> generateAssetModule(bundle, module, platform = null) {
<ide> const relPath = getPathRelativeToRoot(this._projectRoots, module.path);
<add> var assetUrlPath = path.join('/assets', path.dirname(relPath));
<add>
<add> ... | 1 |
Text | Text | fix typo in action view changelog [ci skip] | 65bbfa9519990c218b8dee740722d57a4ae117c4 | <ide><path>actionview/CHANGELOG.md
<del>* Add `caching?` helper that returns whether the current code path is being cached and `unacheable!` to denote helper methods that can't participate in fragment caching.
<add>* Add `caching?` helper that returns whether the current code path is being cached and `uncacheable!`... | 1 |
Javascript | Javascript | add simple explicit export types to devtools | e6a062bd2a1d53f7349a0d0950d89593b63a0c3c | <ide><path>packages/react-devtools-core/src/standalone.js
<ide> function initialize(socket: WebSocket) {
<ide>
<ide> let startServerTimeoutID: TimeoutID | null = null;
<ide>
<del>function connectToSocket(socket: WebSocket) {
<add>function connectToSocket(socket: WebSocket): {close(): void} {
<ide> socket.onerror = ... | 133 |
Javascript | Javascript | exclude watch test cases | 4b7263525e0366b99194e2a71595f7abce07864f | <ide><path>test/RemoveFiles.test.js
<ide> const createSingleCompiler = () => {
<ide> };
<ide>
<ide> describe("RemovedFiles", () => {
<add> if (process.env.NO_WATCH_TESTS) {
<add> it.skip("watch tests excluded", () => {});
<add> return;
<add> }
<add>
<ide> jest.setTimeout(20000);
<ide>
<ide> function cleanup() { | 1 |
PHP | PHP | add more detail to pagination exception message | 46a15cf857cc29cb27075783f1ff29b568be5ba4 | <ide><path>system/db/eloquent.php
<ide> private function _paginate($per_page = null)
<ide> {
<ide> if ( ! property_exists(get_class($this), 'per_page'))
<ide> {
<del> throw new \Exception("The number of models to display per page has not been specified.");
<add> throw new \Exception("The number of models ... | 1 |
Ruby | Ruby | allow multi-digit minor versions | 84de3c1eb6c5f69ac08a8a4ef81060e037cc0e5c | <ide><path>Library/Homebrew/language/python.rb
<ide> module Language
<ide> # @api public
<ide> module Python
<ide> def self.major_minor_version(python)
<del> version = /\d\.\d/.match `#{python} --version 2>&1`
<add> version = /\d\.\d+/.match `#{python} --version 2>&1`
<ide> return unless version... | 1 |
PHP | PHP | add filtering of the route list by domain | 11251f24318ed806f07323faf747d7e318922723 | <ide><path>src/Illuminate/Foundation/Console/RouteListCommand.php
<ide> protected function getMiddleware($route)
<ide> */
<ide> protected function filterRoute(array $route)
<ide> {
<del> if (($this->option('name') && ! str_contains($route['name'], $this->option('name'))) ||
<del> $this->o... | 1 |
Go | Go | check the length of the correct variable | 8d73c1ad688b8212bb424e536c4622162ba29387 | <ide><path>daemon/logger/loginfo.go
<ide> func (info *Info) ExtraAttributes(keyMod func(string) string) (map[string]string
<ide> }
<ide>
<ide> labelsRegex, ok := info.Config["labels-regex"]
<del> if ok && len(labels) > 0 {
<add> if ok && len(labelsRegex) > 0 {
<ide> re, err := regexp.Compile(labelsRegex)
<ide> i... | 1 |
PHP | PHP | remove message assertions | da3b7081206266e7baa071676b50b354a374029e | <ide><path>tests/Integration/Support/ManagerTest.php
<ide> class ManagerTest extends TestCase
<ide> {
<ide> /**
<ide> * @expectedException \InvalidArgumentException
<del> * @expectedExceptionMessage Unable to resolve NULL driver for Illuminate\Tests\Integration\Support\Fixtures\NullableManager
<ide> *... | 1 |
Javascript | Javascript | improve progress reporting | 586d5abc2c017f303ac70a96fd698167b4a8bdc4 | <ide><path>lib/SourceMapDevToolPlugin.js
<ide> class SourceMapDevToolPlugin {
<ide> }
<ide>
<ide> reportProgress(
<del> (0.5 * fileIndex++) / files.length,
<add> (0.5 * ++fileIndex) / files.length,
<ide> file,
<del> "generate SourceMap"
<add> "restored ca... | 1 |
Java | Java | switch some observable ops to direct, map fuseable | 05e160c7cfd2212a0b9a985c5294c7de5c844d90 | <ide><path>src/main/java/io/reactivex/Observable.java
<ide> public static <T, R> Observable<R> zipIterable(Function<? super Object[], ? exte
<ide> @SchedulerSupport(SchedulerSupport.NONE)
<ide> public final Observable<Boolean> all(Predicate<? super T> predicate) {
<ide> Objects.requireNonNull(predicate,... | 13 |
Ruby | Ruby | remove xattr unsupported option in macos 10.15 | 24ef7fa5c8eb8e313a7169e4a55f88e21dea277b | <ide><path>Library/Homebrew/cask/quarantine.rb
<ide> def propagate(from: nil, to: nil)
<ide> "--",
<ide> xattr,
<ide> "-w",
<del> "-s",
<ide> ... | 1 |
Python | Python | move asarray helpers into their own module | 82641c61b1a2d6d1b8cccce5a65f4215c94b99b2 | <ide><path>numpy/core/_asarray.py
<add>"""
<add>Functions in the ``as*array`` family that promote array-likes into arrays.
<add>
<add>`require` fits this category despite its name not matching this pattern.
<add>"""
<add>from __future__ import division, absolute_import, print_function
<add>
<add>from .overrides import ... | 4 |
Python | Python | add dry run for backfill cli | d9ca46ea997485e4fbb53061be20ff41814f5e98 | <ide><path>airflow/bin/cli.py
<ide> def backfill(args):
<ide> dag = dag.sub_dag(
<ide> task_regex=args.task_regex,
<ide> include_upstream=not args.ignore_dependencies)
<del> dag.run(
<del> start_date=args.start_date,
<del> end_date=args.end_date,
<del> mark_succes... | 1 |
Text | Text | add v3.0.0 to changelog.md | 080ba6643251209dd7f88974955aae5848bdc8e2 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### 3.0.0-beta.6 (February 5, 2018)
<add>### v3.0.0 (February 13, 2018)
<ide>
<add>- [#16218](https://github.com/emberjs/ember.js/pull/16218) [BUGFIX beta] Prevent errors when using const `(get arr 1)`.
<add>- [#16241](https://github.com/emberjs/ember.js/pull... | 1 |
Javascript | Javascript | simplify `console` event handler | a92a7cd003f7202a397aef2bbe95397ffe483034 | <ide><path>bin/run-tests.js
<ide> function runInBrowser(url, retries, resolve, reject) {
<ide>
<ide> puppeteer.launch().then(function(browser) {
<ide> browser.newPage().then(function(page) {
<del> page.on('console', function() {
<add> page.on('console', function(msg) {
<add> console.log(msg.text... | 1 |
Text | Text | update doc for android mainapplication.java | 875d5d2364d940f2a7eca2f78b26632e6985aa00 | <ide><path>docs/NativeModulesAndroid.md
<ide> class AnExampleReactPackage implements ReactPackage {
<ide> }
<ide> ```
<ide>
<del>The package needs to be provided in the `getPackages` method of the `MainActivity.java` file. This file exists under the android folder in your react-native application directory. The path... | 1 |
Text | Text | add the release blockers | 033451d9047e26e472738e3f1973aeff72abd9dd | <ide><path>docs/focus/2018-03-12.md
<ide> - Finish "Remember me" within the credential dialog [#1327](https://github.com/atom/github/pull/1327)
<ide> - Sanitize stderr from git in error notifications [#1331](https://github.com/atom/github/pull/1331)
<ide> - Upgrade MacOS build to CircleCI 2.0 [#1334](https://gith... | 1 |
Python | Python | remove redundant line in run_pl_glue.py | eb2bd8d6eba96db67a59679b16e173ade97ba09d | <ide><path>examples/text-classification/run_pl_glue.py
<ide> def prepare_data(self):
<ide> cached_features_file = self._feature_file(mode)
<ide> if os.path.exists(cached_features_file) and not args.overwrite_cache:
<ide> logger.info("Loading features from cached file %s", cached_... | 1 |
PHP | PHP | add union type for expected listener | 75d10c51a9cd08c9f8c95444088d8987febd11ea | <ide><path>src/Illuminate/Support/Facades/Event.php
<ide> * @method static void assertDispatchedTimes(string $event, int $times = 1)
<ide> * @method static void assertNotDispatched(string|\Closure $event, callable|int $callback = null)
<ide> * @method static void assertNothingDispatched()
<del> * @method static void... | 1 |
Javascript | Javascript | remove \t \n \r in url.parse() similar to whatwg | fa7e08cfc9fdc6f58cef7af6443d2d2070aa541b | <ide><path>lib/url.js
<ide> Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
<ide> case CHAR_TAB:
<ide> case CHAR_LINE_FEED:
<ide> case CHAR_CARRIAGE_RETURN:
<add> // WHATWG URL removes tabs, newlines, and carriage returns. Let's do that too.
<add> ... | 2 |
Ruby | Ruby | remove misleading reference to polymorphic_url | 28185ebc2ee501e6acecc18569f110fd33acde47 | <ide><path>actionpack/lib/action_controller/metal/responder.rb
<ide> module ActionController #:nodoc:
<ide> #
<ide> # respond_with(@project, :manager, @task)
<ide> #
<del> # Check <code>polymorphic_url</code> documentation for more examples.
<del> #
<ide> class Responder
<ide> attr_reader :controller, :... | 1 |
Python | Python | simplify skipping of integer types in _add_aliases | 38e709522b754a2297b3119e7c80bf5811539fc7 | <ide><path>numpy/core/numerictypes.py
<ide> def _add_types():
<ide> allTypes[name] = info
<ide> _add_types()
<ide>
<add># This is the priority order used to assign the bit-sized NPY_INTxx names, which
<add># must match the order in npy_common.h in order for NPY_INTxx and np.intxx to be
<add># consistent.
<... | 1 |
Python | Python | change trunk to version 1.1 | dcad2cefe8a76b72e7ab93498db61edac41d5748 | <ide><path>numpy/version.py
<del>version='0.9.9'
<add>version='1.1'
<ide>
<ide> import os
<ide> svn_version_file = os.path.join(os.path.dirname(__file__), | 1 |
Javascript | Javascript | replace var to let/const | ce8f01cf0c3a3b31b35353ec0de665cb04c8a6bc | <ide><path>tools/eslint-rules/crypto-check.js
<ide> const bindingModules = cryptoModules.concat(['tls_wrap']);
<ide> module.exports = function(context) {
<ide> const missingCheckNodes = [];
<ide> const requireNodes = [];
<del> var commonModuleNode = null;
<del> var hasSkipCall = false;
<add> let commonModuleNode... | 8 |
Javascript | Javascript | add redirectsto in routes | 91a8975b8d3a0b873b421f1dbc4ea41f92c92bc2 | <ide><path>packages/ember-states/lib/routable.js
<ide> var paramForClass = function(classObject) {
<ide>
<ide> Ember.Routable = Ember.Mixin.create({
<ide> init: function() {
<add> var redirection;
<ide> this.on('connectOutlets', this, this.stashContext);
<ide>
<add> if (redirection = get(this, 'redirectsT... | 2 |
Text | Text | add format examples | a61f86551815f023666921dc6169c59751772a7f | <ide><path>docs/api-guide/fields.md
<ide> A field that ensures the input is a valid UUID string. The `to_internal_value` m
<ide> **Signature:** `UUIDField(format='hex_verbose')`
<ide>
<ide> - `format`: Determines the representation format of the uuid value
<del> - `'hex_verbose'` - The cannoncical hex representatio... | 1 |
Go | Go | add test for parsenetmode | 7118416aeeb779373685d192c26a329e9acdef89 | <ide><path>runconfig/parse.go
<ide> func parseKeyValueOpts(opts opts.ListOpts) ([]utils.KeyValuePair, error) {
<ide>
<ide> func parseNetMode(netMode string) (string, string, error) {
<ide> parts := strings.Split(netMode, ":")
<del> if len(parts) < 1 {
<del> return "", "", fmt.Errorf("'netmode' cannot be empty", netM... | 2 |
Javascript | Javascript | update openssl 3.x expected error message | 7216eb67dfc93d88570cf3c02b4321211593f13a | <ide><path>test/parallel/test-crypto-dh.js
<ide> if (common.hasOpenSSL3) {
<ide> assert.throws(() => {
<ide> dh3.computeSecret('');
<ide> }, { message: common.hasOpenSSL3 ?
<del> 'error:02800066:Diffie-Hellman routines::invalid public key' :
<add> 'error:02800080:Diffie-Hellman routines::invalid secret' :
<ide> '... | 1 |
PHP | PHP | fix failing test | ef508e785b34547dbfc1473b46dbae53a4541806 | <ide><path>tests/TestCase/Error/DebuggerTest.php
<ide> public function testExportVar() {
<ide> request => object(Cake\Network\Request) {}
<ide> response => object(Cake\Network\Response) {}
<ide> elementCache => 'default'
<del> elementCacheSettings => []
<ide> viewVars => []
<ide> Html => object(Cake\View\Helper\Ht... | 1 |
Javascript | Javascript | improve arrayclone performance | 4ba90809edec189a2c4662258ef6cadb9d9620b4 | <ide><path>benchmark/events/ee-emit.js
<ide> const bench = common.createBenchmark(main, {
<ide>
<ide> function main({ n, argc, listeners }) {
<ide> const ee = new EventEmitter();
<add> ee.setMaxListeners(listeners + 1);
<ide>
<ide> for (let k = 0; k < listeners; k += 1)
<ide> ee.on('dummy', () => {});
<ide><... | 4 |
Text | Text | add option for developer tools inside browsers | cef06eac6b9154f14c35dc49e61fea0f1c263853 | <ide><path>guide/spanish/developer-tools/index.md
<ide> Algunos ejemplos de estas herramientas:
<ide> * Sistemas de control de versiones
<ide> * Herramientas devOps
<ide> * Construir herramientas
<del>* Gestores de paquetes
<ide>\ No newline at end of file
<add>* Gestores de paquetes
<add>* Herramientas de ... | 1 |
Text | Text | update translation of index.md | 998264c2e904314f19571828024d1b83f221b423 | <ide><path>guide/portuguese/user-experience-design/index.md
<ide> localeTitle: Design de experiência do usuário
<ide> ---
<ide> ## Design de experiência do usuário
<ide>
<del>User Experience Design é um campo que se concentra em como os usuários finais de um produto interagem com ele e como eles se sentem em relação a... | 1 |
Javascript | Javascript | remove minor typo in webpackoptionsapply | 96ad1c65a6d4c69560be640068f0c208b76ed2f3 | <ide><path>lib/WebpackOptionsApply.js
<ide> class WebpackOptionsApply extends OptionsApply {
<ide> if (!options.experiments.outputModule) {
<ide> if (options.output.module) {
<ide> throw new Error(
<del> "'output.module: true' is only allowed when 'experiements.outputModule' is enabled"
<add> "'output.... | 1 |
Javascript | Javascript | replace anonymous closure function | a19a2689eabc9fe2e8083a564e9d29ee746a91ec | <ide><path>test/parallel/test-http-pipeline-socket-parser-typeerror.js
<ide> let more;
<ide> let done;
<ide>
<ide> const server = http
<del> .createServer(function(req, res) {
<add> .createServer((req, res) => {
<ide> if (!once) server.close();
<ide> once = true;
<ide>
<ide> const server = http
<ide> }
... | 1 |
Text | Text | remove license from guide | be04413f4d9cfbbe2cb88315aa110606b8fcd948 | <ide><path>client/src/pages/guide/LICENSE.md
<del>Attribution-ShareAlike 4.0 International
<del>
<del>=======================================================================
<del>
<del>Creative Commons Corporation ("Creative Commons") is not a law firm and does not
<del>provide legal services or legal advice. Distribut... | 1 |
Javascript | Javascript | use lane to track root callback priority | dcd13045ef5d4e42bbda6ec2a493ac2ea507c018 | <ide><path>packages/react-reconciler/src/ReactFiberLane.new.js
<ide> * @flow
<ide> */
<ide>
<del>import type {FiberRoot, ReactPriorityLevel} from './ReactInternalTypes';
<add>import type {FiberRoot} from './ReactInternalTypes';
<ide>
<ide> // TODO: Ideally these types would be opaque but that doesn't work well with... | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.