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 |
|---|---|---|---|---|---|
Go | Go | fix post config verification without flags | cd3446972e968639684f2b65bfc11c099a25f1b0 | <ide><path>daemon/config.go
<ide> type CommonConfig struct {
<ide> TLSOptions CommonTLSOptions `json:"tls-opts,omitempty"`
<ide>
<ide> reloadLock sync.Mutex
<add> valuesSet map[string]interface{}
<ide> }
<ide>
<ide> // InstallCommonFlags adds command-line options to the top-level flag parser for
<ide> func (config... | 4 |
PHP | PHP | fix comment on default session driver | 5e2d8843d8f3e651fa5f6f5252d64fd71c26fc9b | <ide><path>app/config/session.php
<ide> |--------------------------------------------------------------------------
<ide> |
<ide> | This option controls the default session "driver" that will be used on
<del> | requests. By default we will use the light-weight cookie driver but
<add> | requests. By default we will u... | 1 |
PHP | PHP | update csrfprotectionmiddleware to psr 15 standard | bb7d60711e176e978c4cffa279b71773516439d7 | <ide><path>src/Http/Middleware/CsrfProtectionMiddleware.php
<ide> use Cake\I18n\Time;
<ide> use Cake\Utility\Hash;
<ide> use Cake\Utility\Security;
<add>use Psr\Http\Message\ResponseInterface;
<add>use Psr\Http\Message\ServerRequestInterface;
<add>use Psr\Http\Server\MiddlewareInterface;
<add>use Psr\Http\Server\Reques... | 2 |
PHP | PHP | add str() and string() to request object | c9d34b7be0611d26f3e46669934cf542cc5e9e21 | <ide><path>src/Illuminate/Http/Concerns/InteractsWithInput.php
<ide> public function dump($keys = [])
<ide>
<ide> return $this;
<ide> }
<add>
<add> /**
<add> * Retrieve input from the request as a stringable.
<add> *
<add> * @param string $key
<add> * @param mixed $default
<add> ... | 1 |
Javascript | Javascript | use attributes to set .type | b447b409585a673e0259f51a46523b845ae12e25 | <ide><path>src/renderers/dom/shared/HTMLDOMPropertyConfig.js
<ide> var HTMLDOMPropertyConfig = {
<ide> tabIndex: null,
<ide> target: null,
<ide> title: null,
<del> type: null,
<add> // Setting .type throws on non-<input> tags
<add> type: MUST_USE_ATTRIBUTE,
<ide> useMap: null,
<ide> value: ... | 1 |
PHP | PHP | use single line | 7d9c4feec50429dd3151065dbfdd45317805681d | <ide><path>src/Illuminate/View/Compilers/BladeCompiler.php
<ide> public function compile($path = null)
<ide> }
<ide>
<ide> if (! is_null($this->cachePath)) {
<del> $contents = $this->compileString(
<del> $this->files->get($this->getPath())
<del> );
<add> ... | 1 |
Text | Text | add redux-resource to ecosystem | a74b9bfa635bed432813afefc9cfb19ec29f79d4 | <ide><path>docs/introduction/Ecosystem.md
<ide> On this page we will only feature a few of them that the Redux maintainers have
<ide>
<ide> * [redux-form](https://github.com/erikras/redux-form) — Keep React form state in Redux
<ide> * [react-redux-form](https://github.com/davidkpiano/react-redux-form) — Create forms e... | 1 |
Javascript | Javascript | add a test for ssr stack traces | 377e1a049e03cbbf78a63ecadf31c3460602fe06 | <ide><path>packages/react-dom/src/__tests__/ReactServerRendering-test.js
<ide> describe('ReactDOMServer', () => {
<ide> require('react-dom');
<ide> }).not.toThrow();
<ide> });
<add>
<add> it('includes a useful stack in warnings', () => {
<add> function A() {
<add> return null;
<add> }
<add>
<add... | 1 |
Mixed | Javascript | use keep-alive by default in global agents | 4267b92604ad78584244488e7f7508a690cb80d0 | <ide><path>doc/api/http.md
<ide> type other than {net.Socket}.
<ide>
<ide> <!-- YAML
<ide> added: v0.1.90
<add>changes:
<add> - version:
<add> - REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/43522
<add> description: The method closes idle connections before returning.
<add>
<ide> -->
<ide>
<... | 27 |
PHP | PHP | remove reference to jshelper | 52a19bb072bf2e689e8a43131537f3ab21c6eadd | <ide><path>lib/Cake/View/View.php
<ide> * @property CacheHelper $Cache
<ide> * @property FormHelper $Form
<ide> * @property HtmlHelper $Html
<del> * @property JsHelper $Js
<ide> * @property NumberHelper $Number
<ide> * @property PaginatorHelper $Paginator
<ide> * @property RssHe... | 1 |
Javascript | Javascript | add support for /-separated namespace lookup | f78d6a1b4986b8d846d78b21fe7a8aa844ed83d5 | <ide><path>packages/ember-application/lib/system/application.js
<ide>
<ide> var get = Ember.get, set = Ember.set,
<ide> classify = Ember.String.classify,
<add> capitalize = Ember.String.capitalize,
<ide> decamelize = Ember.String.decamelize;
<ide>
<ide> /**
<ide> Ember.Application.reopenClass({
<ide> funct... | 2 |
PHP | PHP | fix bug in postgres processor | c3b19a2ed40ecb36c07ed74898b63fb92fa480cd | <ide><path>src/Illuminate/Database/Query/Processors/PostgresProcessor.php
<ide> public function processInsertGetId(Builder $query, $sql, $values, $sequence = nu
<ide>
<ide> $result = (array) $results[0];
<ide>
<del> return (int) $row[$sequence];
<add> return (int) $result[$sequence];
<ide> }
<ide>
<ide> }
<ide>... | 1 |
Text | Text | add changelogs for assert | a0af30533c43fe6939b8a25733a69a137b3a472d | <ide><path>doc/api/assert.md
<ide> assert(false, 'it\'s false');
<ide> ## assert.deepEqual(actual, expected[, message])
<ide> <!-- YAML
<ide> added: v0.1.21
<add>changes:
<add> - version: v6.4.0, v4.7.1
<add> pr-url: https://github.com/nodejs/node/pull/8002
<add> description: Typed array slices are handled corre... | 1 |
Go | Go | improve ipam test coverage | 4cb0d27cf97ccb6da4698b27c25b20ebb1b2894d | <ide><path>libnetwork/ipam/allocator.go
<ide> func (a *Allocator) getAddress(nw *net.IPNet, bitmask *bitseq.Handle, prefAddres
<ide> // DumpDatabase dumps the internal info
<ide> func (a *Allocator) DumpDatabase() string {
<ide> a.Lock()
<del> defer a.Unlock()
<add> aspaces := make(map[string]*addrSpace, len(a.addrSpa... | 2 |
Javascript | Javascript | extract scheduler into its own module | 986c63c6d4a808f0f3108bb9610803c11f04ed47 | <ide><path>src/renderers/shared/fiber/ReactFiberReconciler.js
<ide> 'use strict';
<ide>
<ide> import type { Fiber } from 'ReactFiber';
<del>import type { PriorityLevel } from 'ReactPriorityLevel';
<ide> import type { FiberRoot } from 'ReactFiberRoot';
<ide>
<del>var ReactFiber = require('ReactFiber');
<del>var { begi... | 2 |
Ruby | Ruby | remove roflscaling constants | 6fe624f50d2572c6f7ac3062e9317abead07863e | <ide><path>activerecord/lib/arel/visitors/postgresql.rb
<ide> module Arel # :nodoc: all
<ide> module Visitors
<ide> class PostgreSQL < Arel::Visitors::ToSql
<del> CUBE = "CUBE"
<del> ROLLUP = "ROLLUP"
<del> GROUPING_SETS = "GROUPING SETS"
<del> LATERAL = "LATERAL"
<del>
<ide> private
<id... | 2 |
Python | Python | fix t5/mt5 tests | 5ae087cf8ec080b121c9cdc9bafdc2b35b6e110e | <ide><path>tests/models/mt5/test_modeling_tf_mt5.py
<ide> def test_small_integration_test(self):
<ide> labels = tokenizer("Hi I am", return_tensors="tf").input_ids
<ide>
<ide> loss = model(input_ids, labels=labels).loss
<del> mtf_score = -tf.math.reduce_sum(loss).numpy()
<add> mtf_score =... | 2 |
PHP | PHP | add mysql fulltext support | aaefbf1c2f927b0a7f7a2a1c487c2cffa6bc795f | <ide><path>lib/Cake/Model/Datasource/Database/Mysql.php
<ide> public function index($model) {
<ide> $table = $this->fullTableName($model);
<ide> $old = version_compare($this->getVersion(), '4.1', '<=');
<ide> if ($table) {
<del> $indices = $this->_execute('SHOW INDEX FROM ' . $table);
<add> $indexes = $this->... | 4 |
Javascript | Javascript | add relevant placeholder to link submission | 21ca4e3f67096e4827c94773e2f232c49c7564ca | <add><path>client/src/templates/Challenges/projects/SolutionForm.js
<del><path>client/src/templates/Challenges/projects/ProjectForm.js
<ide> import { Form } from '../../../components/formHelpers';
<ide>
<ide> const propTypes = {
<ide> isFrontEnd: PropTypes.bool,
<add> isProject: PropTypes.bool,
<ide> isSubmitting... | 5 |
Javascript | Javascript | fix bug with date picker ios | 446ce49e9b097d2a5e95b0f17aa23756733c27ec | <ide><path>Libraries/Components/DatePicker/DatePickerIOS.ios.js
<ide>
<ide> const NativeMethodsMixin = require('NativeMethodsMixin');
<ide> const React = require('React');
<add>const invariant = require('fbjs/lib/invariant');
<ide> const PropTypes = require('prop-types');
<ide> const StyleSheet = require('StyleSheet')... | 1 |
Java | Java | require ehcache 2.10+ | e8b5374d8776f040c9133ae341b17e780b1e2323 | <ide><path>spring-context-support/src/main/java/org/springframework/cache/ehcache/EhCacheFactoryBean.java
<ide> * <p>Note: If the named Cache instance is found, the properties will be ignored and the
<ide> * Cache instance will be retrieved from the CacheManager.
<ide> *
<del> * <p>Note: As of Spring 4.1, Spring's E... | 1 |
Text | Text | fix undici version in changelog | 10f93679c5317bf9665279faf5593b1d63d4822d | <ide><path>doc/changelogs/CHANGELOG_V16.md
<ide> More detailed information on each of the vulnerabilities can be found in [Septem
<ide> * \[[`67cbbcc902`](https://github.com/nodejs/node/commit/67cbbcc902)] - **deps**: update corepack to 0.14.0 (Node.js GitHub Bot) [#44509](https://github.com/nodejs/node/pull/44509)
<id... | 2 |
Javascript | Javascript | add backfacevisibility to imagestyleproptypes | 484fe9155b9653959e0bccd9df76b34155b6679b | <ide><path>Libraries/Image/ImageStylePropTypes.js
<ide> var ImageStylePropTypes = {
<ide> ...LayoutPropTypes,
<ide> ...TransformPropTypes,
<ide> resizeMode: ReactPropTypes.oneOf(Object.keys(ImageResizeMode)),
<add> backfaceVisibility: ReactPropTypes.oneOf(['visible', 'hidden']),
<ide> backgroundColor: ReactPro... | 1 |
Javascript | Javascript | use string#repeat instead of array#join | 50125e27b763aa49a93788c4605addf3c5966f44 | <ide><path>lib/repl.js
<ide> REPLServer.prototype.displayPrompt = function(preserveCursor) {
<ide> var prompt = this._initialPrompt;
<ide> if (this.bufferedCommand.length) {
<ide> prompt = '...';
<del> var levelInd = new Array(this.lines.level.length).join('..');
<add> const len = this.lines.level.length ... | 1 |
Javascript | Javascript | remove superfluous regex in tools/doc/json.js | d408ee1be31f94c20397baeb0a1740b4a0d8167c | <ide><path>tools/doc/json.js
<ide> const maybeAncestors = r`(?:${id}\.?)*`;
<ide>
<ide> const callWithParams = r`\([^)]*\)`;
<ide>
<del>const noCallOrProp = '(?![.[(])';
<del>
<ide> const maybeExtends = `(?: +extends +${maybeAncestors}${classId})?`;
<ide>
<ide> /* eslint-disable max-len */
<ide> const headingExpress... | 1 |
Ruby | Ruby | remove custom $home on --cleanup | 83ab0acfc0fae4968309d2ce248ec7478436c476 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def cleanup_after
<ide> git "stash", "pop"
<ide> test "brew", "cleanup", "--prune=7"
<ide> git "gc", "--auto"
<add> if ARGV.include? "--local"
<add> FileUtils.rm_rf ENV["HOMEBREW_HOME"]
<add> FileUtils.rm_rf ENV["HOMEBREW... | 1 |
Mixed | Go | add network interal mode | b70954e60a15d09756bd6b00a6fadedc64829477 | <ide><path>api/client/network.go
<ide> func (cli *DockerCli) CmdNetworkCreate(args ...string) error {
<ide> cmd.Var(flIpamAux, []string{"-aux-address"}, "auxiliary ipv4 or ipv6 addresses used by Network driver")
<ide> cmd.Var(flOpts, []string{"o", "-opt"}, "set driver specific options")
<ide>
<add> flInternal := cmd... | 8 |
PHP | PHP | restore previous return value on write() | feaf13b59d54e4b5ff6243a74c98acd5ef3d546e | <ide><path>src/Core/Configure.php
<ide> class Configure
<ide> * @param string|array $config The key to write, can be a dot notation value.
<ide> * Alternatively can be an array containing key(s) and value(s).
<ide> * @param mixed $value Value to set for var
<del> * @return void
<add> * @return bo... | 2 |
Go | Go | fix parser directive refactoring | c97170d618b7a1f35f47672143bd287666802287 | <ide><path>builder/dockerfile/parser/parser.go
<ide> func (d *Directive) setEscapeToken(s string) error {
<ide> return nil
<ide> }
<ide>
<del>// processLine looks for a parser directive '# escapeToken=<char>. Parser
<del>// directives must precede any builder instruction or other comments, and cannot
<del>// be repea... | 1 |
Javascript | Javascript | remove unused www shims | 8e251c5416b58fee3a45d39948a6288dd5d2129c | <ide><path>scripts/rollup/shims/facebook-www/ReactDOMInputSelection.js
<del>/**
<del> * Copyright 2013-present, Facebook, Inc.
<del> * All rights reserved.
<del> *
<del> * This source code is licensed under the BSD-style license found in the
<del> * LICENSE file in the root directory of this source tree. An additional ... | 2 |
Python | Python | fix merge tests | 8da47b078d92bee2de3e5fb50a37483d8cb02f13 | <ide><path>transformers/modeling_ctrl.py
<ide> def forward(self, input_ids=None, past=None, attention_mask=None, token_type_ids
<ide> if inputs_embeds is None:
<ide> inputs_embeds = self.w(input_ids)
<ide> # inputs_embeds = embedded.unsqueeze(0) if len(input_ids.shape)<2 else embedded
<del> ... | 1 |
Text | Text | use backticks around file names in readme.md | f4235794981fa71f700e04d88d4cab015fc0143b | <ide><path>README.md
<ide> _docs_ subdirectory. Version-specific documentation is also at
<ide>
<ide> ### Verifying Binaries
<ide>
<del>Download directories contain a SHASUMS256.txt file with SHA checksums for the
<add>Download directories contain a `SHASUMS256.txt` file with SHA checksums for the
<ide> files.
<ide> ... | 1 |
Python | Python | add docstrings for simple_ner | da6e59519e8fcac4ff40e8199b5182f25769f03d | <ide><path>spacy/ml/models/simple_ner.py
<ide> def BiluoTagger(
<ide> tok2vec: Model[List[Doc], List[Floats2d]]
<ide> ) -> Model[List[Doc], List[Floats2d]]:
<add> """Construct a simple NER tagger, that predicts BILUO tag scores for each
<add> token and uses greedy decoding with transition-constraints to retur... | 1 |
Python | Python | remove duplicate imports | 46083ffa0e8e6ee3985db4e37a1498d73e6e719b | <ide><path>numpy/core/tests/test_numeric.py
<ide> from numpy.testing import (
<ide> assert_, assert_equal, assert_raises, assert_raises_regex,
<ide> assert_array_equal, assert_almost_equal, assert_array_almost_equal,
<del> assert_raises, suppress_warnings, HAS_REFCOUNT
<add> suppress_warnings, HAS_REFCOUN... | 2 |
Go | Go | move engine-api to docker/docker/api | ad10ae9b3bd03bf0073876ab0e792fbb82273cd7 | <ide><path>libnetwork/cluster/provider.go
<ide> package cluster
<ide>
<ide> import (
<del> "github.com/docker/engine-api/types/network"
<add> "github.com/docker/docker/api/types/network"
<ide> "golang.org/x/net/context"
<ide> )
<ide>
<ide><path>libnetwork/cmd/dnet/dnet.go
<ide> import (
<ide> "github.com/docker/doc... | 6 |
Python | Python | refactor the password management | f7b94229b1228b69b6f4adbb141ebb30e3689a0b | <ide><path>glances/core/glances_main.py
<ide> def init_args(self):
<ide> # Server option
<ide> parser.add_argument('-p', '--port', default=self.server_port, type=int, dest='port',
<ide> help=_('define the client/server TCP port [default: %d]') % self.server_port)
<del> ... | 3 |
PHP | PHP | trim comment bloat in text class | a2406c017486019ab992d68b921d3202b7626284 | <ide><path>system/text.php
<ide> public static function words($value, $limit, $end = '…')
<ide> return $value;
<ide> }
<ide>
<del> // -----------------------------------------------------
<del> // Limit the words in the string.
<del> // -----------------------------------... | 1 |
Java | Java | expose environment configurationservice | 8770ea96b03106a06ee7ce401dc2fe39f419f816 | <ide><path>org.springframework.core/src/main/java/org/springframework/core/env/AbstractEnvironment.java
<ide> public abstract class AbstractEnvironment implements ConfigurableEnvironment {
<ide> new PropertyPlaceholderHelper(PLACEHOLDER_PREFIX, PLACEHOLDER_SUFFIX, VALUE_SEPARATOR, false);
<ide>
<ide>
<add> public C... | 2 |
Mixed | Python | update codeparrot data preprocessing | e730e1256732b5dfeae2bdd427beacc3fbc20e2a | <ide><path>examples/research_projects/codeparrot/README.md
<ide> Additionally, sure you have git-lfs installed. You can find instructions for how
<ide> The source of the dataset is the GitHub dump available on Google's [BigQuery](https://cloud.google.com/blog/topics/public-datasets/github-on-bigquery-analyze-all-the-op... | 3 |
Javascript | Javascript | fix issue with onendreached | d3658bc2b6437e858d3b3f5688277dedbca779b8 | <ide><path>Libraries/Lists/VirtualizedList.js
<ide> class VirtualizedList extends React.PureComponent<Props, State> {
<ide> componentDidUpdate(prevProps: Props) {
<ide> const {data, extraData} = this.props;
<ide> if (data !== prevProps.data || extraData !== prevProps.extraData) {
<del> this._hasDataChang... | 1 |
Go | Go | improve message when pushing a non-existent image | 3a08bbc4d29835fe5b8f3d2c5bde442f6a7014a0 | <ide><path>graph/graph.go
<ide> func (graph *Graph) Exists(id string) bool {
<ide> func (graph *Graph) Get(name string) (*image.Image, error) {
<ide> id, err := graph.idIndex.Get(name)
<ide> if err != nil {
<del> return nil, err
<add> return nil, fmt.Errorf("could not find image: %v", err)
<ide> }
<ide> img, err ... | 1 |
Mixed | Python | add kannada examples | 4f27a24f5b78283435de85bca40b844c15b2cf4e | <ide><path>.github/contributors/nikhilsaldanha.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or pro... | 2 |
Ruby | Ruby | simplify token parsing | 44f1354d63d8c95a61bb12353838c03e9abbebb6 | <ide><path>Library/Homebrew/cask/lib/hbc/qualified_token.rb
<ide> module Hbc
<ide> module QualifiedToken
<del> REPO_PREFIX = "homebrew-".freeze
<del>
<del> # per https://github.com/Homebrew/homebrew/blob/4c7bc9ec3bca729c898ee347b6135ba692ee0274/Library/Homebrew/cmd/tap.rb#L121
<del> USER_REGEX = /[a-z0-9_\-]... | 2 |
Javascript | Javascript | fix autodetection of csp + better docs | 0113f2257415422729d5c2a9bdba76c1d0a17a13 | <ide><path>src/Angular.js
<ide> function equals(o1, o2) {
<ide> return false;
<ide> }
<ide>
<add>var csp = function() {
<add> if (isDefined(csp.isActive_)) return csp.isActive_;
<add>
<add> var active = !!(document.querySelector('[ng-csp]') ||
<add> document.querySelector('[data-ng-csp]'));
<add>
... | 3 |
Javascript | Javascript | improve download button and behaviour | 88767e18612b35fa2a8dfe6e00b1e55d26e00829 | <ide><path>web/viewer.js
<ide> var PDFView = {
<ide> }
<ide> var url = this.url.split('#')[0];
<ide> //#if !(FIREFOX || MOZCENTRAL)
<add>
<add> var a = document.createElement('a');
<add>
<add> // If _parent == self, then opening an identical URL with different
<add> // location hash will only cause a n... | 1 |
Text | Text | improve declaration tests | f2f5dbc4b874f7d84c2ae587c4db0f57565dba81 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/local-scope-and-functions.english.md
<ide> console.log(loc); // loc is not defined
<ide>
<ide> ## Instructions
<ide> <section id='instructions'>
<del>Declare a local variable <code>myVar</code> inside <code>myLocalSc... | 1 |
Mixed | Go | remove portmapping from container networksettings | db4f20404d2b8c4da5a15e447f52cd634445cfe3 | <ide><path>daemon/container_unix.go
<ide> func (container *Container) buildCreateEndpointOptions() ([]libnetwork.EndpointO
<ide> }
<ide> }
<ide>
<del> container.NetworkSettings.PortMapping = nil
<del>
<ide> ports := make([]nat.Port, len(portSpecs))
<ide> var i int
<ide> for p := range portSpecs {
<ide><path>daem... | 5 |
Ruby | Ruby | convert `brew unpack` test to spec | be498acf4fee38912a497b26e2beed97ee1f8b9a | <ide><path>Library/Homebrew/test/cmd/unpack_spec.rb
<add>describe "brew unpack", :integration_test do
<add> it "unpacks a given Formula's archive" do
<add> setup_test_formula "testball"
<add>
<add> Dir.mktmpdir do |path|
<add> path = Pathname.new(path)
<add>
<add> shutup do
<add> expect { brew "... | 2 |
PHP | PHP | fix some docblocks. | 1315f897bc4cd18a69c449cd64b01d6f9c46d815 | <ide><path>src/Illuminate/Http/JsonResponse.php
<ide> public function __construct($data = null, $status = 200, $headers = [], $options
<ide> *
<ide> * @param string|null $callback
<ide> * @return $this
<del> *
<del> * @throws \InvalidArgumentException
<ide> */
<ide> public function wit... | 2 |
Python | Python | add type hints to tfpegasusmodel | 1e6141c3d4c2b77ef51754cc21445c549947f317 | <ide><path>src/transformers/models/pegasus/modeling_tf_pegasus.py
<ide> from ...modeling_tf_utils import (
<ide> DUMMY_INPUTS,
<ide> TFCausalLanguageModelingLoss,
<add> TFModelInputType,
<ide> TFPreTrainedModel,
<ide> keras_serializable,
<ide> unpack_inputs,
<ide> def get_decoder(self):
<ide> ... | 1 |
Text | Text | update url for hub pr docs | 1c220ced8ecc5f12bc979239aa648747411f9fc4 | <ide><path>model_cards/README.md
<ide> You can either:
<ide>
<ide> **What if you want to create or update a model card for a model you don't have write access to?**
<ide>
<del>In that case, you can open a [Hub pull request](https://github.com/huggingface/hub-docs/blob/4befd62fb1f7502c9143ab228da538abb2de10e4/docs/hub... | 1 |
Javascript | Javascript | improve spawn() argument handling | 9d957747222da95e7c55142d25f59466c07857dc | <ide><path>lib/child_process.js
<ide> function _validateStdio(stdio, sync) {
<ide> }
<ide>
<ide>
<del>function normalizeSpawnArguments(/*file, args, options*/) {
<add>function normalizeSpawnArguments(file /*, args, options*/) {
<ide> var args, options;
<ide>
<del> var file = arguments[0];
<del>
<ide> if (Array.... | 2 |
Javascript | Javascript | remove use of getdefaultcomputedstyle | 274feb53cc9a99633dfac785d8b3b837d192c43c | <ide><path>src/css/defaultDisplay.js
<ide> var iframe,
<ide> */
<ide> // Called only from within defaultDisplay
<ide> function actualDisplay( name, doc ) {
<del> var style,
<del> elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
<add> var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),... | 1 |
Ruby | Ruby | reset `version_scheme` only for runtime dependents | ddc23eb268328f45fb88031c7b011981c1266f1e | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def migrate_gcc_dependents_if_needed
<ide>
<ide> Formula.installed.each do |formula|
<ide> next unless formula.tap&.core_tap?
<del> next unless formula.recursive_dependencies.map(&:name).include? "gcc"
<add>
<add> recursive_runtime_dependencies... | 1 |
Python | Python | fix py3 compatibility issue in test | c064963ef8553a96f6f487ad4c00ed5832cc1cf7 | <ide><path>tests/keras/layers/test_core.py
<ide> def test_merge():
<ide> input_a = Input(shape=input_shapes[0][1:])
<ide> input_b = Input(shape=input_shapes[1][1:])
<ide> merged = merge([input_a, input_b],
<del> mode=lambda (x, y): K.concatenate([x, y]),
<del> output_shap... | 1 |
Javascript | Javascript | add pan to test | fd70391367ef0c4588a4262634495ffc242fbde5 | <ide><path>packages/sproutcore-touch/lib/gesture_recognizers/pinch.js
<ide> SC.PinchGestureRecognizer = SC.Gesture.extend({
<ide>
<ide> touchEnd: function(evt, view) {
<ide> this.state = SC.Gesture.ENDED;
<del> //this.scale = 0;
<ide> this.redispatchEventToView(view,'touchend');
<ide> },
<ide>
<ide><pa... | 2 |
Text | Text | update releasing guide | 1bee3467ad0f05015741d76d49af03c63c5ea8d4 | <ide><path>Releases.md
<ide> are green and then run
<ide>
<ide> This script runs end to end with a proxy npm repository on local PC and asks to check that Chrome Debugging works.
<ide>
<del>#### Cut a release branch and push to github
<del>
<del>To cut a release branch and check that everything works, you'll need Mac... | 1 |
Text | Text | add note about features vs. bugs | 55870cd8ddab26149b8383651b6ef6bf68c404b2 | <ide><path>guides/source/contributing_to_ruby_on_rails.md
<ide> WARNING: Please do not report security vulnerabilities with public GitHub issue
<ide>
<ide> ### What about Feature Requests?
<ide>
<del>Please don't put "feature request" items into GitHub Issues. If there's a new feature that you want to see added to Ru... | 1 |
Text | Text | update usagewithreact.md to react 0.14 | c0f366d7680b8941efe18ff8e1cc58f4c4bb6f94 | <ide><path>docs/basics/UsageWithReact.md
<ide> These are all normal React components, so we won’t stop to examine them in det
<ide> #### `components/AddTodo.js`
<ide>
<ide> ```js
<del>import React, { findDOMNode, Component, PropTypes } from 'react';
<add>import React, { Component, PropTypes } from 'react';
<ide>
<ide... | 1 |
Go | Go | reduce the number of string copy operations | 73e79a3310f3976b61a295f45e12aead9af41962 | <ide><path>registry/registry.go
<ide> func (r *Registry) setUserAgent(req *http.Request, extra ...VersionChecker) {
<ide> if len(r.baseVersions)+len(extra) == 0 {
<ide> return
<ide> }
<del>
<del> userAgent := appendVersions(r.baseVersionsStr, extra...)
<del> req.Header.Set("User-Agent", userAgent)
<add> if len(extr... | 1 |
Javascript | Javascript | add coverage for client._addhandle() | a01c365193afc0c05b7181aae9ecd753de001865 | <ide><path>test/parallel/test-debugger-client-addhandle.js
<add>'use strict';
<add>
<add>require('../common');
<add>const assert = require('assert');
<add>const Client = require('_debugger').Client;
<add>
<add>{
<add> const client = new Client();
<add> assert.deepStrictEqual(client.handles, {});
<add>}
<add>
<add>{
<... | 1 |
Javascript | Javascript | reorganize mixins and mergemixins | 1948a604bf86200a5ab9187d93be669b370b5d5a | <ide><path>packages/ember-metal/lib/mixin.js
<ide> function isMethod(obj) {
<ide> obj !== Boolean && obj !== Object && obj !== Number && obj !== Array && obj !== Date && obj !== String;
<ide> }
<ide>
<del>function mergeMixins(mixins, m, descs, values, base) {
<del> var len = mixins.length, idx, mixin, guid, ... | 2 |
Text | Text | add todos [ci skip] | 690bd77669a34b77cc9ad5b06b3f6f7d62e6a991 | <ide><path>website/docs/usage/embeddings-transformers.md
<ide> def MyCustomVectors(
<ide>
<ide> ## Pretraining {#pretraining}
<ide>
<del><!-- TODO: write -->
<add>- explain general concept and idea (short!)
<add>- present it as a separate lightweight mechanism for pretraining the tok2vec
<add> layer
<add>- advantage... | 1 |
Python | Python | read only endpoint for xcom | 5744a4797e10fad04ac4814c02889af309b65130 | <ide><path>airflow/api_connexion/endpoints/xcom_endpoint.py
<ide> # KIND, either express or implied. See the License for the
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<add>from flask import request
<add>from sqlalchemy import and_, func
<add>from sqlalchemy.orm.session ... | 4 |
Ruby | Ruby | remove detection for sparkle strategy | 3723cd7decc4d94ad772e3e6948262ceff35ee94 | <ide><path>Library/Homebrew/livecheck/strategy/sparkle.rb
<del># typed: false
<add># typed: true
<ide> # frozen_string_literal: true
<ide>
<ide> require "bundle_version"
<ide> module Strategy
<ide> # its contents as a Sparkle appcast in XML format.
<ide> #
<ide> # @api private
<del> class Sparkl... | 1 |
PHP | PHP | show example base variables | d502747428494e634fe699dbc44c703845e2a79f | <ide><path>app/Jobs/Job.php
<ide>
<ide> abstract class Job
<ide> {
<del> //
<add> /**
<add> * The name of the queue the job should be sent to.
<add> *
<add> * @var string
<add> */
<add> public $queue;
<add>
<add> /**
<add> * The seconds before the job should be made available.
<add> ... | 1 |
PHP | PHP | consolidate table prefix removal | 169b0a5c3f211e8ff8138514466b062acc7ff35e | <ide><path>cake/libs/model/cake_schema.php
<ide> function read($options = array()) {
<ide> if ($prefix && strpos($table, $prefix) !== 0) {
<ide> continue;
<ide> }
<del> $table = preg_replace('/^' . preg_quote($prefix) . '/', '', $table);
<add> $table = $this->_noPrefixTable($prefix, $table);
<id... | 1 |
Javascript | Javascript | use imports instead of globals | d422f83bc054cc39b9ceb009a08ac1ff2aecbe4a | <ide><path>packages/ember-metal/lib/expand_properties.js
<del>import Ember from "ember-metal/core";
<ide> import EmberError from 'ember-metal/error';
<ide> import { forEach } from 'ember-metal/enumerable_utils';
<add>import { typeOf } from 'ember-metal/utils';
<ide>
<ide> /**
<ide> @module ember-metal
<ide> export d... | 4 |
Java | Java | remove unnecessary cast in contentrequestmatchers | b808b53bcc4633f0622c7038df310b04e34bfe7b | <ide><path>spring-test/src/main/java/org/springframework/test/web/client/match/ContentRequestMatchers.java
<ide> private RequestMatcher multipartData(MultiValueMap<String, ?> expectedMap, boole
<ide> }
<ide> if (expected instanceof byte[]) {
<ide> assertTrue("Multipart is not a file", actual instanceof ... | 1 |
PHP | PHP | apply fixes from styleci | 8f31b6407b5b4bf4082984a8f88db4da19451c7e | <ide><path>src/Illuminate/Routing/UrlGenerator.php
<ide> public function hasCorrectSignature(Request $request, $absolute = true, array $i
<ide> {
<ide> $ignoreQuery[] = 'signature';
<ide>
<del> $url = $absolute ? $request->url() : '/' . $request->path();
<add> $url = $absolute ? $request->url... | 1 |
Text | Text | move border opts to correct location for samples | 909c719331d36c5ef4a8871fc62de83f854bfb92 | <ide><path>docs/axes/cartesian/index.md
<ide> const config = {
<ide> options: {
<ide> scales: {
<ide> x: {
<del> grid: {
<del> borderColor: 'red'
<add> border: {
<add> color: 'red'
<ide> }
<ide> }
<ide> }
<ide><path>docs/samples/scales/stacked.md
<ide> const... | 2 |
Javascript | Javascript | add korean translation | 798cb53e7346c75ff49524cbd5657deb34ce59a6 | <ide><path>lang/kr.js
<add>(function () {
<add> var lang = {
<add> months : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
<add> monthsShort : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
<add> weekdays : "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),
<add> weekda... | 2 |
Javascript | Javascript | support multiple classes in key | 7eaaca8ef2b3db76b7c87e98d264d4b16d90a392 | <ide><path>src/ng/directive/ngClass.js
<ide> function classDirective(name, selector) {
<ide> var classes = [], i = 0;
<ide> forEach(classVal, function(v, k) {
<ide> if (v) {
<del> classes.push(k);
<add> classes = classes.concat(k.split(' '));
<ide> }
<ide> ... | 2 |
Text | Text | move urls.py changes down and add necessary import | 44ae037e81d0ca24e28a3506564a92e1ac247eb1 | <ide><path>docs/tutorial/1-serialization.md
<ide> We'll need to add our new `snippets` app and the `rest_framework` app to `INSTAL
<ide> 'snippets',
<ide> )
<ide>
<del>We also need to wire up the root urlconf, in the `tutorial/urls.py` file, to include our snippet app's URLs.
<del>
<del> urlpatterns = [... | 1 |
Java | Java | add baseurl to defaulturitemplatehandler | 1ba0625cd9d9043b3b80a0de872cfbaf3e324467 | <ide><path>spring-web/src/main/java/org/springframework/web/util/DefaultUriTemplateHandler.java
<ide> package org.springframework.web.util;
<ide>
<ide> import java.net.URI;
<add>import java.net.URISyntaxException;
<ide> import java.util.List;
<ide> import java.util.Map;
<ide>
<add>import org.springframework.util.Asse... | 2 |
Python | Python | use tiny models for onnx tests - text modality | d2357a0133f0157cb7def2995f62b6088f97ad0f | <ide><path>tests/onnx/test_onnx_v2.py
<ide> def test_values_override(self):
<ide>
<ide>
<ide> PYTORCH_EXPORT_MODELS = {
<del> ("albert", "hf-internal-testing/tiny-albert"),
<del> ("bert", "bert-base-cased"),
<del> ("big-bird", "google/bigbird-roberta-base"),
<del> ("ibert", "kssteven/ibert-roberta-base"),... | 1 |
Text | Text | fix typos in doc/api/https.md | e028ea0291b845e4bec3c7cff7319a027b8c815e | <ide><path>doc/api/https.md
<ide> const options = {
<ide> return new Error(msg);
<ide> }
<ide>
<del> // Pin the exact certificate, rather then the pub key
<add> // Pin the exact certificate, rather than the pub key
<ide> const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' +
<ide> 'D8:3E... | 1 |
Javascript | Javascript | improve flow typing and linting for messagequeue | 7b575d669d8d6806f17fb679aa34ecb05c75883a | <ide><path>Libraries/BatchedBridge/MessageQueue.js
<ide> * @format
<ide> */
<ide>
<del>/*eslint no-bitwise: 0*/
<del>
<ide> 'use strict';
<ide>
<ide> const ErrorUtils = require('ErrorUtils');
<ide> export type SpyData = {
<ide> type: number,
<ide> module: ?string,
<ide> method: string | number,
<del> args: a... | 3 |
Javascript | Javascript | add freecodecamp to blocklist | f80e34a9509f3208c01524ea25dd573fcacbe760 | <ide><path>config/constants.js
<ide> let blocklist = [
<ide> 'field-guide',
<ide> 'forgot',
<ide> 'forum',
<add> 'freecodecamp',
<ide> 'get-help',
<ide> 'get-pai',
<ide> 'guide', | 1 |
Python | Python | update tok2vec layer | 07b47eaac8bc169fdf88677e0660b34ea5f24d7a | <ide><path>spacy/ml/models/tok2vec.py
<ide> def make_hash_embed(feature):
<ide> )
<ide> else:
<ide> model = chain(
<del> chain(
<del> FeatureExtractor(cols),
<del> list2ragged(),
<del> with_array(concatenate(*embeddings)),
<del> ),
<... | 1 |
PHP | PHP | remove git junk | b5efbbc0a836ad292c2427bdb617bb5d17d73a8f | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function chunkById($count, callable $callback, $column = 'id')
<ide> return false;
<ide> }
<ide>
<del><<<<<<< HEAD
<del> if ($column) {
<del> $lastId = $results->last()->{$column};
<del> }... | 1 |
Python | Python | fix thinko in assert_deprecated() | 7747c3a88cb0cad5687093d1345efcb2743fc1d5 | <ide><path>numpy/core/tests/test_deprecations.py
<ide> def assert_deprecated(self, function, num=1, ignore_others=False,
<ide> if num is not None and num_found != num:
<ide> msg = "%i warnings found but %i expected." % (len(self.log), num)
<ide> lst = [w.category for w in self.log]
<del>... | 1 |
Javascript | Javascript | add test for oaep hash mismatch | 636dbfe787690f675305e8d5d0f642df8b29834d | <ide><path>test/parallel/test-crypto-rsa-dsa.js
<ide> test_rsa('RSA_PKCS1_OAEP_PADDING', undefined, 'sha1');
<ide> test_rsa('RSA_PKCS1_OAEP_PADDING', 'sha1', undefined);
<ide> test_rsa('RSA_PKCS1_OAEP_PADDING', 'sha256', 'sha256');
<ide> test_rsa('RSA_PKCS1_OAEP_PADDING', 'sha512', 'sha512');
<add>common.expectsError((... | 1 |
Python | Python | use airflow.security.utils instead of socket | feaffa9f300be40f6bddb48257c926a1a722f4f7 | <ide><path>airflow/hooks/hive_hooks.py
<ide> import logging
<ide> import re
<ide> import subprocess
<del>import socket
<ide> from tempfile import NamedTemporaryFile
<ide>
<ide>
<ide> from airflow.hooks.base_hook import BaseHook
<ide> from airflow.utils import TemporaryDirectory
<ide> from airflow.configuration import... | 1 |
Javascript | Javascript | improve error handling in runtimemodules | 6a7b1b777c089300d26d464edbe88222a2891e87 | <ide><path>lib/RuntimeModule.js
<ide> class RuntimeModule extends Module {
<ide> updateHash(hash, chunkGraph) {
<ide> // Do not use getGeneratedCode here, because i. e. compilation hash is not
<ide> // ready at this point. We will cache it later instead.
<del> hash.update(this.generate());
<add> try {
<add> ha... | 2 |
PHP | PHP | throw an exception on invalid cache configuration | 4c51cb99af3be03adc5a49120cc96f044b9a359c | <ide><path>src/Cache/Engine/MemcachedEngine.php
<ide> public function init(array $config = []): bool
<ide> }
<ide> $this->_setOptions();
<ide>
<del> if (count($this->_Memcached->getServerList())) {
<add> $serverList = $this->_Memcached->getServerList();
<add> if (count($serverList)... | 2 |
PHP | PHP | add replacement for lower danish "æ" | a32792233dd7db53a0177ac5a9ae3f3a13d53662 | <ide><path>src/Illuminate/Support/Str.php
<ide> protected static function languageSpecificCharsArray($language)
<ide> ['h', 'H', 'sht', 'SHT', 'a', 'А', 'y', 'Y'],
<ide> ],
<ide> 'da' => [
<del> ['ø', 'å', 'Æ', 'Ø', 'Å'],
<del> ['... | 1 |
Go | Go | fix reloading of daemon labels from config | 455858fc70e3b752fb2495bbdda368613e6587c2 | <ide><path>daemon/daemon.go
<ide> func (daemon *Daemon) initDiscovery(config *Config) error {
<ide> func (daemon *Daemon) Reload(config *Config) error {
<ide> daemon.configStore.reloadLock.Lock()
<ide> defer daemon.configStore.reloadLock.Unlock()
<del> if config.IsValueSet("label") {
<add> if config.IsValueSet("label... | 2 |
Python | Python | add stepcounterhook to hooks_helper.py | 8155eb9dbbd487d063458de0dd3de26541d06196 | <ide><path>official/utils/logs/hooks_helper.py
<ide> def get_logging_metric_hook(tensors_to_log=None,
<ide> every_n_secs=every_n_secs)
<ide>
<ide>
<add>def get_step_counter_hook(**kwargs):
<add> """Function to get StepCounterHook."""
<add> del kwargs
<add> return tf.estimator.StepCounterHook()
<add>
<add>
<i... | 1 |
Javascript | Javascript | add queues to compilation | 5b4cbb5ee041bd96c80f0d657bda5f6fe5bc1450 | <ide><path>lib/Compilation.js
<ide> const ModuleTemplate = require("./ModuleTemplate");
<ide> const RuntimeTemplate = require("./RuntimeTemplate");
<ide> const Stats = require("./Stats");
<ide> const compareLocations = require("./compareLocations");
<add>const AsyncQueue = require("./util/AsyncQueue");
<ide> const Queu... | 14 |
Javascript | Javascript | add dot after short months | 8937591a1df6cf9d26795c6e68d1d6ba85a00318 | <ide><path>src/locale/hu.js
<ide> //! moment.js locale configuration
<ide> //! locale : Hungarian [hu]
<ide> //! author : Adam Brunner : https://github.com/adambrunner
<add>//! author : Peter Viszt : https://github.com/passatgt
<ide>
<ide> import moment from '../moment';
<ide>
<ide> export default moment.defineLocal... | 2 |
Go | Go | move container exit state to after cleanup | e192ce4009865ef96383f3162b40f58d52596790 | <ide><path>daemon/monitor.go
<ide> func (daemon *Daemon) handleContainerExit(c *container.Container, e *libcontaine
<ide> }
<ide>
<ide> restart, wait, err := c.RestartManager().ShouldRestart(ec, daemon.IsShuttingDown() || c.HasBeenManuallyStopped, time.Since(c.StartedAt))
<add>
<add> // cancel healthcheck here, they... | 1 |
Java | Java | simplify operationzip itemobserver | f3dbf3c03919e39c2ce6a2e3d94216534a7bb5c8 | <ide><path>rxjava-core/src/main/java/rx/operators/OperationZip.java
<ide> public void onNext(List<T> value) {
<ide> /** Reader-writer lock. */
<ide> protected final ReadWriteLock rwLock;
<ide> /** The queue. */
<del> public final Queue<Object> queue = new LinkedList<Object... | 1 |
Python | Python | add tf.float32 to unittest args | 5c0c749b5e4fdf0588ae929008cd0036f0f83b9b | <ide><path>official/resnet/cifar10_test.py
<ide> def test_dataset_input_fn(self):
<ide> fake_dataset = tf.data.FixedLengthRecordDataset(
<ide> filename, cifar10_main._RECORD_BYTES) # pylint: disable=protected-access
<ide> fake_dataset = fake_dataset.map(
<del> lambda val: cifar10_main.parse_reco... | 1 |
Ruby | Ruby | add spdx module | 753b8621dfe3630e9e78ed286b59980c8efc9641 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> require "formula_versions"
<ide> require "utils/curl"
<ide> require "utils/notability"
<add>require "utils/spdx"
<ide> require "extend/ENV"
<ide> require "formula_cellar_checks"
<ide> require "cmd/search"
<ide> def audit
<ide> # Check style in a single batch run up... | 3 |
PHP | PHP | add missing scheduler tests | ec98e98f8609b3e56400829e5ebe108c45517037 | <ide><path>tests/Console/Scheduling/FrequencyTest.php
<ide> public function testEveryXMinutes()
<ide> $this->assertSame('*/3 * * * *', $this->event->everyThreeMinutes()->getExpression());
<ide> $this->assertSame('*/4 * * * *', $this->event->everyFourMinutes()->getExpression());
<ide> $this->asse... | 1 |
Javascript | Javascript | add newlines at end of km lang file and tests | 40df767355160bf6c26be34153fe01e91b40019e | <ide><path>lang/km.js
<ide> doy: 4 // The week that contains Jan 4th is the first week of the year.
<ide> }
<ide> });
<del>}));
<ide>\ No newline at end of file
<add>}));
<ide><path>test/lang/km.js
<ide> exports["lang:km"] = {
<ide>
<ide> test.done();
<ide> }
<del>};
<ide>\ No newli... | 2 |
Javascript | Javascript | fix obj loader with empty uvs or normals | 171de9dfbbe6c0e133408c1c0fd5e57c544690d7 | <ide><path>examples/js/loaders/OBJLoader.js
<ide> THREE.OBJLoader = ( function () {
<ide>
<ide> this.addVertex( ia, ib, ic );
<ide>
<del> if ( ua !== undefined ) {
<add> if ( ua !== undefined && ua !== '' ) {
<ide>
<ide> var uvLen = this.uvs.length;
<del>
<ide> ia = this.parseUVIndex( ua, uvLen )... | 1 |
Text | Text | fix comma of the list in worker_threads.md | 296712602b4cba785ccda72623c0cbe3b4584abb | <ide><path>doc/api/worker_threads.md
<ide> Notable differences inside a Worker environment are:
<ide> - The [`process.stdin`][], [`process.stdout`][] and [`process.stderr`][]
<ide> may be redirected by the parent thread.
<ide> - The [`require('worker_threads').isMainThread`][] property is set to `false`.
<del>- The [... | 1 |
Text | Text | add yorkie to collaborators | 841c7025a99719aad0c621dc4f57bfeefd789b5d | <ide><path>README.md
<ide> information about the governance of the Node.js project, see
<ide> * [tunniclm](https://github.com/tunniclm) - **Mike Tunnicliffe** <m.j.tunnicliffe@gmail.com>
<ide> * [vkurchatkin](https://github.com/vkurchatkin) - **Vladimir Kurchatkin** <vladimir.kurchatkin@gmail.com>
<ide> * [... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.