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 |
|---|---|---|---|---|---|
Ruby | Ruby | call update-python-resources for --python | c1ba64677fdfd53e58af42311ea3a6551786454e | <ide><path>Library/Homebrew/dev-cmd/create.rb
<ide> require "formula_creator"
<ide> require "missing_formula"
<ide> require "cli/parser"
<add>require "utils/pypi"
<ide>
<ide> module Homebrew
<ide> module_function
<ide> def create
<ide>
<ide> fc.generate!
<ide>
<add> PyPI.update_python_resources! Formula[fc.... | 2 |
Ruby | Ruby | fix end of day | 6c271a98dc3004e43bc6aaf7db6fe7c044b0bb3d | <ide><path>activesupport/lib/active_support/core_ext/time/calculations.rb
<ide> def beginning_of_day
<ide>
<ide> # Returns a new Time representing the end of the day (23:59:59)
<ide> def end_of_day
<del> change(:hour => 23, :minute => 59, :sec => 59)
<add> change(:hour => 23, ... | 1 |
Javascript | Javascript | fix $flowfixme in appcontainer | a956551af73cf785ee4345e92e71fd5b17c5644e | <ide><path>Libraries/ReactNative/AppContainer.js
<ide> const View = require('View');
<ide> type Context = {
<ide> rootTag: number,
<ide> };
<del>type Props = {|
<del> /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment
<del> * suppresses an error when upgrading Flow's support for React. To s... | 1 |
Python | Python | fix bugs of s2t fairseq model converting | 7cc2c9c6b0a6086eafdf48945aac9855cfec6e21 | <ide><path>src/transformers/models/speech_to_text/convert_s2t_fairseq_to_tfms.py
<ide> def convert_fairseq_s2t_checkpoint_to_tfms(checkpoint_path, pytorch_dump_folder_
<ide> )
<ide>
<ide> model = Speech2TextForConditionalGeneration(config)
<del> model.model.load_state_dict(state_dict)
<add> missing, unex... | 1 |
Javascript | Javascript | improve simple assert | 43ee4d692afb7bae224e529c6088d3890b4ea31f | <ide><path>lib/assert.js
<ide> const { NativeModule } = require('internal/bootstrap/loaders');
<ide>
<ide> let isDeepEqual;
<ide> let isDeepStrictEqual;
<add>let parseExpressionAt;
<add>let findNodeAround;
<add>let columnOffset = 0;
<add>let decoder;
<ide>
<ide> function lazyLoadComparison() {
<ide> const compariso... | 5 |
Python | Python | add parser for adam | a7ba27b1b4c10462221f915a4cc4f91beb73eafc | <ide><path>examples/lm_finetuning/finetune_on_pregenerated.py
<ide> def main():
<ide> default=0,
<ide> type=int,
<ide> help="Linear warmup over warmup_steps.")
<add> parser.add_argument("--adam_epsilon",
<add> default=1e... | 2 |
Text | Text | remove submodule documentation | edf6f51c27d9a721ed6640ef926ae8878fd95048 | <ide><path>README.md
<ide> To get a local copy of the current code, clone it using git:
<ide>
<ide> $ git clone git://github.com/mozilla/pdf.js.git pdfjs
<ide> $ cd pdfjs
<del> $ git submodule init
<del> $ git submodule update
<ide>
<ide> Next, you need to start a local web server as some browsers don't... | 1 |
Ruby | Ruby | remove the magic parameter from `#where` | c34ab58b1ccc84ff09d6863d72b6462c3594f538 | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> def left_outer_joins!(*args) # :nodoc:
<ide> #
<ide> # If the condition is any blank-ish object, then #where is a no-op and returns
<ide> # the current relation.
<del> def where(opts = :chain, *rest)
<del> if :chain == opts
<a... | 1 |
Go | Go | add domainname support | 0a436e03b8289510ad191a89fcbd5ec06fb8865d | <ide><path>container.go
<ide> import (
<ide> "io"
<ide> "io/ioutil"
<ide> "log"
<add> "net"
<ide> "os"
<ide> "os/exec"
<ide> "path"
<ide> import (
<ide> "strings"
<ide> "syscall"
<ide> "time"
<del> "net"
<ide> )
<ide>
<ide> type Container struct {
<ide> type Container struct {
<ide>
<ide> type Config struct ... | 2 |
PHP | PHP | use mb_* throughout crypto classes | 615707e57ff7fd672f61e79153aa6e5d0a53b640 | <ide><path>src/Utility/Crypto/Mcrypt.php
<ide> public static function rijndael($text, $key, $operation)
<ide> $mode = MCRYPT_MODE_CBC;
<ide> $ivSize = mcrypt_get_iv_size($algorithm, $mode);
<ide>
<del> $cryptKey = substr($key, 0, 32);
<add> $cryptKey = mb_substr($key, 0, 32, '8bit');
<ide... | 3 |
Javascript | Javascript | add compilerstatus type | 3d72d6144e24d0878fab74da78863adff5769481 | <ide><path>lib/MultiCompiler.js
<ide> const MultiWatching = require("./MultiWatching");
<ide>
<ide> /** @typedef {import("./Compiler")} Compiler */
<ide>
<add>/** @typedef {number} CompilerStatus */
<add>
<ide> const STATUS_PENDING = 0;
<ide> const STATUS_DONE = 1;
<ide> const STATUS_NEW = 2;
<ide> module.exports = c... | 1 |
Ruby | Ruby | add syntax sugar for mpidependency | 919aac0b8969550e1db4a21d10ab404bff88e4ed | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_deps
<ide> when 'open-mpi', 'mpich2'
<ide> problem <<-EOS.undent
<ide> There are multiple conflicting ways to install MPI. Use an MPIDependency:
<del> depends_on MPIDependency.new(<lang list>)
<add> depends_on :mpi =>... | 4 |
PHP | PHP | update documentation and typehint | f30b43b4c998761ce126db573865d72c23f9e517 | <ide><path>lib/Cake/Model/Datasource/DboSource.php
<ide> protected function _fetchHasAndBelongsToMany(Model $Model, $query, $ids, $associ
<ide> }
<ide>
<ide> /**
<del> * Merge the results of hasMany relations.
<add> * Merge the results of 'hasMany' associations.
<add> *
<add> * Note: this function also deals with the... | 1 |
Text | Text | fix sentence [ci skip] | a1e4aca267ecc175184bd9d70bbee051d798f168 | <ide><path>website/docs/usage/v3-1.md
<ide> your own.
<ide>
<ide> ### Resizable text classification architectures {#resizable-textcat}
<ide>
<del>Previously, a trained [`TextCategorizer`](/api/textcategorizer) architectures
<del>could not be resized, meaning that you couldn't add new labels to an already
<del>trained... | 1 |
Python | Python | make tok2vec.remove_listener return bool | 2102082478e04ce3e1de96c6fafcc8a935fb4693 | <ide><path>spacy/pipeline/tok2vec.py
<ide> def add_listener(self, listener: "Tok2VecListener", component_name: str) -> None
<ide> self.listener_map.setdefault(component_name, [])
<ide> self.listener_map[component_name].append(listener)
<ide>
<del> def remove_listener(self, listener: "Tok2VecListener... | 1 |
Javascript | Javascript | test all styles of top-level element in <gc> | 92d4854ca35b010541730053eae5810c8fe0a0eb | <ide><path>packages/ember-htmlbars/tests/integration/component_invocation_test.js
<ide> if (isEnabled('ember-htmlbars-component-generation')) {
<ide> }, `You cannot use triple curlies (e.g. style={{{ ... }}}) in the top-level element of the <non-block> template because it is a GlimmerComponent.`);
<ide> });
<ide>... | 1 |
Text | Text | add missed import | afa22d15f15ea28806642255b5b19e7a5eb125aa | <ide><path>docs/recipes/ConfiguringYourStore.md
<ide> Let's add these to our existing `index.js`.
<ide> import React from 'react'
<ide> import { render } from 'react-dom'
<ide> import { Provider } from 'react-redux'
<del>import { createStore } from 'redux'
<add>import { createStore, compose } from 'redux'
<ide> import... | 1 |
Javascript | Javascript | remove unused inclusion of fs | f92188fc2702a53c1ad99b1174356845e3b28287 | <ide><path>static/index.js
<ide> (function () {
<del> var fs = require('fs-plus')
<ide> var path = require('path')
<ide> var FileSystemBlobStore = require('../src/file-system-blob-store')
<ide> var NativeCompileCache = require('../src/native-compile-cache') | 1 |
Go | Go | check mounts at start | 92899ffac8ca1136e807dd234e8fa1dd49db7801 | <ide><path>daemon/cluster/executor/container/adapter.go
<ide> import (
<ide> "errors"
<ide> "fmt"
<ide> "io"
<add> "os"
<ide> "strings"
<ide> "syscall"
<ide> "time"
<ide> func (c *containerAdapter) create(ctx context.Context) error {
<ide> return nil
<ide> }
<ide>
<add>// checkMounts ensures that the provided m... | 5 |
Javascript | Javascript | remove dangling comma | 5a1b3e045f624fc3e96701c4e9b7193a49accfdd | <ide><path>examples/async/store/configureStore.js
<ide> export default function configureStore(initialState) {
<ide> const store = createStore(
<ide> rootReducer,
<ide> initialState,
<del> applyMiddleware(thunkMiddleware, createLogger()),
<add> applyMiddleware(thunkMiddleware, createLogger())
<ide> )
... | 1 |
Go | Go | use new libcontainer.state api | 262d45e0fe483dbc6d27bc6af51590a8be42d55f | <ide><path>daemon/execdriver/native/driver.go
<ide> func (d *driver) Unpause(c *execdriver.Command) error {
<ide>
<ide> func (d *driver) Terminate(p *execdriver.Command) error {
<ide> // lets check the start time for the process
<del> started, err := d.readStartTime(p)
<add> state, err := libcontainer.GetState(filepa... | 2 |
Javascript | Javascript | fix makeas to work with zoned moments | b822111d6cc806b8da11cdf4aaa309a3fcd9091c | <ide><path>moment.js
<ide>
<ide> // Return a moment from input, that is local/utc/zone equivalent to model.
<ide> function makeAs(input, model) {
<del> return model._isUTC ? moment(input).zone(model._offset || 0) :
<del> moment(input).local();
<add> var res, diff;
<add> if (mode... | 1 |
Python | Python | forbid tuple inputs entirely | 642f7e841d2f9900b3793c9b140f8c1adc56b899 | <ide><path>numpy/core/shape_base.py
<ide> def block(arrays):
<ide>
<ide> Parameters
<ide> ----------
<del> arrays : nested list of ndarrays or scalars
<add> arrays : nested list of array_like or scalars (but not tuples)
<ide> If passed a single ndarray or scalar (a nested list of depth 0), this
<... | 2 |
Javascript | Javascript | escape html entities in code editor log | c6a11dd50ad37595d2fec70705424752d804b52e | <ide><path>client/src/templates/Challenges/redux/execute-challenge-saga.js
<ide> import {
<ide> getContext
<ide> } from 'redux-saga/effects';
<ide> import { channel } from 'redux-saga';
<add>import escape from 'lodash/escape';
<ide>
<ide> import {
<ide> challengeDataSelector,
<ide> export function* executeChalleng... | 1 |
Javascript | Javascript | use the correct owner for each template lookup | 02814c2da26a1558fb06eb527ef83e829dae7016 | <ide><path>packages/ember-application/lib/system/engine-instance.js
<ide> import { getEngineParent, setEngineParent } from 'ember-application/system/engin
<ide> import { assert } from 'ember-metal/debug';
<ide> import run from 'ember-metal/run_loop';
<ide> import RSVP from 'ember-runtime/ext/rsvp';
<add>import { guidFo... | 8 |
Javascript | Javascript | expand test coverage of fs.js | b19334e566650c381c4a49277b214f6ebcc55001 | <ide><path>test/parallel/test-fs-read-file-assert-encoding.js
<add>'use strict';
<add>require('../common');
<add>
<add>const assert = require('assert');
<add>const fs = require('fs');
<add>
<add>const encoding = 'foo-8';
<add>const filename = 'bar.txt';
<add>
<add>assert.throws(
<add> fs.readFile.bind(fs, filename, { ... | 1 |
Text | Text | remove reference to obsolete security program | ce1c53665e5bca0efec8d09513ed276752cc31ac | <ide><path>SECURITY.md
<ide> the HackerOne platform. See <https://hackerone.com/nodejs> for further details.
<ide> ## Reporting a bug in a third party module
<ide>
<ide> Security bugs in third party modules should be reported to their respective
<del>maintainers and should also be coordinated through the Node.js Ecosy... | 1 |
Java | Java | add feature flag for spannable cache | b2454f9e669d2972ae1900fc2431b54697c68031 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java
<ide> public static boolean doesUseOverflowInset() {
<ide> * JNI.
<ide> */
<ide> public static boolean enableLargeTextMeasureCache = true;
<add>
<add> /** TODO: T113245006 Delete this flag. Enables caching of spannables for ... | 2 |
Javascript | Javascript | add missing constructors for all classes needed | 13322ca35c14ca0bbe5676bae9b1aa145842e479 | <ide><path>lib/AsyncDependenciesBlock.js
<ide> function AsyncDependenciesBlock(name, module, loc) {
<ide> module.exports = AsyncDependenciesBlock;
<ide>
<ide> AsyncDependenciesBlock.prototype = Object.create(DependenciesBlock.prototype);
<add>AsyncDependenciesBlock.prototype.constructor = AsyncDependenciesBlock;
<ide>... | 26 |
Python | Python | add new un/packbits signature to documentation | 296b0879436e892e3b5fbb6ef6d43519e8bfe97a | <ide><path>numpy/core/multiarray.py
<ide> def putmask(a, mask, values):
<ide> @array_function_from_c_func_and_dispatcher(_multiarray_umath.packbits)
<ide> def packbits(a, axis=None, bitorder='big'):
<ide> """
<del> packbits(a, axis=None)
<add> packbits(a, axis=None, bitorder='big')
<ide>
<ide> Packs the ... | 1 |
PHP | PHP | fix cs error | 0a1b538d54281464b094d17f55deecabf0d7441c | <ide><path>src/Shell/Task/ModelTask.php
<ide> public function bakeTable($model, array $data = []) {
<ide> // Work around composer caching that classes/files do not exist.
<ide> // Check for the file as it might not exist in tests.
<ide> if (file_exists($filename)) {
<del> require_once($filename);
<add> requir... | 1 |
Python | Python | manage training example & refactor the refactor | e0e55bc550a16289763b4f656790e30ed86e428f | <ide><path>transformers/data/processors/squad.py
<ide> def squad_convert_examples_to_features(examples, tokenizer, max_seq_length,
<ide> features = []
<ide> new_features = []
<ide> for (example_index, example) in enumerate(tqdm(examples)):
<del>
<del> doc_tokens = []
<del> char_to_word_offset ... | 1 |
Mixed | Javascript | create proper public api for `channel` | e65bed1b7e273d1db6ba5905c8f68338b06cd27a | <ide><path>doc/api/child_process.md
<ide> See [Advanced Serialization][] for more details.
<ide> ### `subprocess.channel`
<ide> <!-- YAML
<ide> added: v7.1.0
<add>changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/30165
<add> description: The object no longer accidentally expos... | 7 |
Ruby | Ruby | use env instead of headers on those tests | 38b676181b7cce5191b1877ad6781c490d38436d | <ide><path>actionpack/test/dispatch/show_exceptions_test.rb
<ide> def call(env)
<ide> test "skip exceptions app if not showing exceptions" do
<ide> @app = ProductionApp
<ide> assert_raise RuntimeError do
<del> get "/", headers: { "action_dispatch.show_exceptions" => false }
<add> get "/", env: { "ac... | 1 |
PHP | PHP | continue work on grammars | ab1627d4c08ad9437419f669ab4858f2683d7a1c | <ide><path>src/Illuminate/Database/Grammar.php
<ide> public function wrapArray(array $values)
<ide> */
<ide> public function wrapTable($table)
<ide> {
<del> if ($this->isExpression($table)) {
<del> return $this->getValue($table);
<add> if (! $this->isExpression($table)) {
<add> ... | 3 |
Javascript | Javascript | upgrade prettier from 1.17 to 2.0.2 | cf44650b3f4f13df8208ceded60ec5c48bd6baf3 | <ide><path>IntegrationTests/AccessibilityManagerTest.js
<ide> class AccessibilityManagerTest extends React.Component<{...}> {
<ide> accessibilityExtraExtraLarge: 11.0,
<ide> accessibilityExtraExtraExtraLarge: 12.0,
<ide> });
<del> RCTDeviceEventEmitter.addListener('didUpdateDimensions', update => {
<... | 300 |
PHP | PHP | apply fixes from styleci | e04a7ffba8b80b934506783a7d0a161dd52eb2ef | <ide><path>src/Illuminate/Support/Str.php
<ide> protected static function charsArray()
<ide> '7' => ['⁷', '₇', '۷', '7'],
<ide> '8' => ['⁸', '₈', '۸', '8'],
<ide> '9' => ['⁹', '₉', '۹', '9'],
<del> 'a' => ['à', 'á', 'ả', 'ã', 'ạ', 'ă', 'ắ', 'ằ', 'ẳ', 'ẵ', 'ặ', ... | 1 |
Javascript | Javascript | add draw range for instanced geometry | 3bc8d4f997cb82076a4febf8ac83ebca390d3832 | <ide><path>src/renderers/webgl/WebGLBufferRenderer.js
<ide> function WebGLBufferRenderer( gl, extensions, infoRender ) {
<ide>
<ide> }
<ide>
<del> function renderInstances( geometry ) {
<add> function renderInstances( geometry, start, count ) {
<ide>
<ide> var extension = extensions.get( 'ANGLE_instanced_arrays' ... | 1 |
Javascript | Javascript | remove foreach from test case | 4f3fce4ad2252e9dfa00c7300eb73bb36965db5b | <ide><path>test/lang/ko.js
<ide> exports["lang:kr"] = {
<ide> }
<ide> test.done();
<ide> },
<del>
<add>
<ide> "parse meridiem" : function (test) {
<ide> var elements = [{
<ide> expression : "1981년 9월 8일 오후 2시 30분",
<ide> exports["lang:kr"] = {
<ide> outputForm... | 1 |
Ruby | Ruby | use args.flatten! in query methods when applicable | 755d1636107f814c6e0f76e7b3f327b9b4bdcc07 | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> def references(*args)
<ide> end
<ide>
<ide> def references!(*args)
<del> self.references_values = (references_values + args.flatten.map(&:to_s)).uniq
<add> args.flatten!
<add>
<add> self.references_values = (references_val... | 1 |
Javascript | Javascript | remove obsolete todo | eabed2f518804c6e6ae170beef37438743139b9d | <ide><path>lib/repl.js
<ide> function addStandardGlobals(completionGroups, filter) {
<ide> }
<ide>
<ide> function defineDefaultCommands(repl) {
<del> // TODO remove me after 0.3.x
<ide> repl.defineCommand('break', {
<ide> help: 'Sometimes you get stuck, this gets you out',
<ide> action: function() { | 1 |
PHP | PHP | remove tests for methods that don't exist anymore | 7b096f03d4bcb557b050f786b8c0af7658058f3b | <ide><path>tests/TestCase/Console/Command/Task/ModelTaskTest.php
<ide> public function testGetValidation() {
<ide> $this->assertEquals($expected, $result);
<ide> }
<ide>
<del>/**
<del> * test that individual field validation works, with interactive = false
<del> * tests the guessing features of validation
<del> *
<... | 1 |
Ruby | Ruby | implement `requirements` in terms of routes | c3284e2a36e92af1a2ad3bdbc1c74523811f3ad2 | <ide><path>actionpack/test/dispatch/mapper_test.rb
<ide> def conditions
<ide> end
<ide>
<ide> def requirements
<del> @my_routes.map { |x| x[2] }
<add> routes.map(&:path).map(&:requirements)
<ide> end
<ide>
<ide> def asts | 1 |
PHP | PHP | add test cases for mcrypt/openssl | 3578d92ee74aaf897dc7c4a55a47de62b7efc326 | <ide><path>src/Utility/Crypto/Mcrypt.php
<ide> public static function decrypt($cipher, $key) {
<ide> $cipher = substr($cipher, $ivSize);
<ide> $plain = mcrypt_decrypt($algorithm, $key, $cipher, $mode, $iv);
<ide>
<del> // Remove PKCS#7 padding
<add> // Remove PKCS#7 padding or Null bytes
<add> // Newer values w... | 3 |
Javascript | Javascript | use strict equalities in test/driver.js | e525902241fbbe1f436235b3973943adcb65eeba | <ide><path>test/driver.js
<ide> window.load = function load() {
<ide> var r = new XMLHttpRequest();
<ide> r.open('GET', manifestFile, false);
<ide> r.onreadystatechange = function loadOnreadystatechange(e) {
<del> if (r.readyState == 4) {
<add> if (r.readyState === 4) {
<ide> log('done\n');
<ide> ... | 1 |
Python | Python | fix sql_to_gcs hook gzip of schema_file | 76962867b5877cf5ffd1b6004453f783c0732ab1 | <ide><path>airflow/providers/google/cloud/operators/sql_to_gcs.py
<ide> def _upload_to_gcs(self, files_to_upload):
<ide> hook.upload(self.bucket, tmp_file.get('file_name'),
<ide> tmp_file.get('file_handle').name,
<ide> mime_type=tmp_file.get('file_mime_type'),... | 1 |
Javascript | Javascript | improve code coverage in webcrypto api | 30d7f05fef08a15f33fa77849966b604a4019e54 | <ide><path>test/parallel/test-webcrypto-sign-verify-hmac.js
<ide> async function testSign({ hash,
<ide> assert(await subtle.verify({ name, hash }, key, sig, plaintext));
<ide> }
<ide>
<add> await assert.rejects(
<add> subtle.generateKey({ name }, false, []), {
<add> name: 'TypeError',
<add> code: '... | 1 |
Ruby | Ruby | add failing tests, according to #480 | b6a2113b8d8301bc1b3cc8b9a1db2e270a24f7b3 | <ide><path>activerecord/test/cases/associations/has_many_associations_test.rb
<ide> def test_create_from_association_should_respect_default_scope
<ide> assert_equal 'exotic', bulb.name
<ide> end
<ide>
<add> def test_create_from_association_with_nil_values_should_work
<add> car = Car.create(:name => 'honda')
... | 1 |
Javascript | Javascript | remove deregisternotifier feature for $watch | 0554c1aae49a81691154a77e70b602b0f24dca81 | <ide><path>src/ng/interpolate.js
<ide> function $InterpolateProvider() {
<ide> exp: text, //just for compatibility with regular watchers created via $watch
<ide> separators: separators,
<ide> expressions: expressions,
<del> $$watchDelegate: function (scope, listener, objectEqualit... | 4 |
Python | Python | remove leading zeros for python3 compatibility | 9e43e56b260fa54a2c467d1bd8e17be3a9a987ab | <ide><path>tests/models.py
<ide> class DagRunTest(unittest.TestCase):
<ide> def test_id_for_date(self):
<ide> run_id = models.DagRun.id_for_date(
<del> datetime.datetime(2015, 01, 02, 03, 04, 05, 06, None))
<add> datetime.datetime(2015, 1, 2, 3, 4, 5, 6, None))
<ide> assert run... | 1 |
Ruby | Ruby | show full name when a installing a tap dependency | e8727a4eeea08b21b10e561685c898100e3697b6 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def install_dependency(dep, inherited_options)
<ide> fi.ignore_deps = true
<ide> fi.only_deps = false
<ide> fi.show_header = false
<del> oh1 "Installing #{f} dependency: #{Tty.green}#{df}#{Tty.reset}"
<add> oh1 "Installing #{f} dependency: #{Tty.g... | 1 |
Javascript | Javascript | fix wrong order of base, head arguments | 903384ab0ccd57efd56225dbc82ba6ad56021380 | <ide><path>dangerfile.js
<ide> function getBundleSizes(pathToSizesDir) {
<ide> async function printResultsForChannel(baseResults, headResults) {
<ide> // Take the JSON of the build response and
<ide> // make an array comparing the results for printing
<del> const results = generateResultsArray(baseResults, headRes... | 1 |
Text | Text | add docs for vectors.most_similar [ci skip] | ce1d441de557d9ec282c7b0ab9b42718751fab9b | <ide><path>website/docs/api/vectors.md
<ide> vectors, they will be counted individually.
<ide> | ----------- | ---- | ------------------------------------ |
<ide> | **RETURNS** | int | The number of all keys in the table. |
<ide>
<add>## Vectors.most_similar {#most_similar tag="method"}
<add>
<add>For each of the giv... | 1 |
Javascript | Javascript | use error codes in debugger repl | fa009e1428f3f59cfed9cf96c59291594b6ac089 | <ide><path>lib/internal/inspector/inspect_repl.js
<ide> // TODO(trott): enable ESLint
<del>/* eslint-disable getter-return, no-restricted-syntax */
<add>/* eslint-disable getter-return */
<ide>
<ide> 'use strict';
<ide>
<ide> const {
<ide> ArrayPrototypeSome,
<ide> ArrayPrototypeSplice,
<ide> Date,
<del> Error... | 1 |
Text | Text | add bodastage and bts-ce to current user list | 044b2c70fb6c112f11cacc4511955828c4a217f2 | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> 1. [BlueApron](https://www.blueapron.com) [[@jasonjho](https://github.com/jasonjho) & [@matthewdavidhauser](https://github.com/matthewdavidhauser)]
<ide> 1. [Bluecore](https://www.bluecore.com) [[@JLDLaughlin](https://github.com/JLDLaughlin)]
<ide... | 1 |
Go | Go | add lock in libcontainerd client addprocess | 278273bc1699873304240a6eca342b54051e2f23 | <ide><path>libcontainerd/client_linux.go
<ide> func (clnt *client) AddProcess(ctx context.Context, containerID, processFriendly
<ide> clnt.unlock(containerID)
<ide>
<ide> if err := clnt.backend.AttachStreams(processFriendlyName, *iopipe); err != nil {
<add> clnt.lock(containerID)
<ide> return err
<ide> }
<ide> ... | 2 |
PHP | PHP | capitalize d in uuid | d828133f576bca9001645681edea2e20ab955728 | <ide><path>src/Routing/Router.php
<ide> class Router {
<ide> const ID = '[0-9]+';
<ide>
<ide> /**
<del> * Regular expression for UUIds
<add> * Regular expression for UUIDs
<ide> *
<ide> * @var string
<ide> */ | 1 |
Javascript | Javascript | use fixture files | 61040db1f6d0591e4da35d160d885a0b418c4ead | <ide><path>node-tests/blueprints/initializer-test-test.js
<ide> const modifyPackages = blueprintHelpers.modifyPackages;
<ide> const chai = require('ember-cli-blueprint-test-helpers/chai');
<ide> const expect = chai.expect;
<ide>
<add>const fixture = require('../helpers/fixture');
<add>
<ide> describe('Blueprint: initi... | 4 |
Python | Python | use str.format and print_function | b194fc3935772f5eba8b7c5b5e34e12d13281a4c | <ide><path>celery/app/base.py
<ide> def _rgetattr(self, path):
<ide> return reduce(getattr, [self] + path.split('.'))
<ide>
<ide> def __repr__(self):
<del> return '<%s %s:0x%x>' % (self.__class__.__name__,
<del> self.main or '__main__', id(self), )
<add> return... | 59 |
Text | Text | add missing `cookies_serializer` config default | c2d0b1a030d0ddb08c8b60389f113a7fbef35793 | <ide><path>guides/source/configuring.md
<ide> Accepts a string for the HTML tag used to wrap attachments. Defaults to `"action
<ide> - `config.active_support.use_rfc4122_namespaced_uuids`: `true`
<ide> - `config.active_support.disable_to_s_conversion`: `true`
<ide> - `config.action_dispatch.return_only_request_media_ty... | 1 |
Python | Python | add missing newline at the end of test file | 6e4bdb55969171c87296aba9711dbc77f8a1e366 | <ide><path>rest_framework/tests/test_files.py
<ide> def test_validation_with_no_data(self):
<ide> uploaded_file = UploadedFile(file=file, created=now)
<ide>
<ide> serializer = UploadedFileSerializer(files={'file': file})
<del> self.assertFalse(serializer.is_valid())
<ide>\ No newline at end of f... | 1 |
PHP | PHP | create a test for testcomponent class | ff9d29e455829bd404680b4f31be33b7dcbbaf23 | <ide><path>tests/Foundation/Testing/Concerns/InteractsWithViewsTest.php
<ide> namespace Illuminate\Tests\Foundation\Testing\Concerns;
<ide>
<ide> use Illuminate\Foundation\Testing\Concerns\InteractsWithViews;
<add>use Illuminate\View\Component;
<ide> use Orchestra\Testbench\TestCase;
<ide>
<ide> class InteractsWithVi... | 1 |
Javascript | Javascript | remove obsolete comment from dgram test | 89f8ef2bf44ef958b9cd6811bd0110e8c9940cb8 | <ide><path>test/parallel/test-dgram-oob-buffer.js
<ide> socket.send(buf, 3, 1, common.PORT, '127.0.0.1', ok);
<ide> // Since length of zero means nothing, don't error despite OOB.
<ide> socket.send(buf, 4, 0, common.PORT, '127.0.0.1', ok);
<ide>
<del>socket.close(); // FIXME should not be necessary
<add>socket.close()... | 1 |
PHP | PHP | fix edge case in assertjsonfragment | 932cccb5c511d9e36a5e27217232d2626949737a | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> protected function jsonSearchStrings($key, $value)
<ide> $needle = substr(json_encode([$key => $value]), 1, -1);
<ide>
<ide> return [
<add> $needle.':',
<ide> $needle.']',
<ide> $needle.'}',
<ide> ... | 2 |
Javascript | Javascript | fix prop overrides of touchablewithoutfeedback | 68825f9ca5a6c8c70390e8499d9663c5be475639 | <ide><path>Libraries/Components/Touchable/TouchableWithoutFeedback.js
<ide> type FocusEvent = TargetEvent;
<ide>
<ide> const PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};
<ide>
<add>const OVERRIDE_PROPS = [
<add> 'accessibilityComponentType',
<add> 'accessibilityLabel',
<add> 'accessibilityH... | 1 |
PHP | PHP | implement mail fake queue method | 1b4762d2f034cb0cad0776cb31535815260639b5 | <ide><path>src/Illuminate/Support/Testing/Fakes/MailFake.php
<ide>
<ide> namespace Illuminate\Support\Testing\Fakes;
<ide>
<del>use Illuminate\Contracts\Mail\Mailer;
<add>use InvalidArgumentException;
<ide> use Illuminate\Contracts\Mail\Mailable;
<add>use Illuminate\Contracts\Mail\Mailer;
<add>use Illuminate\Mail\Mai... | 1 |
Python | Python | improve rackspace driver documentation | 33818e1c2c4bfccfb26ec083442572beda20c644 | <ide><path>libcloud/drivers/rackspace.py
<ide> def request(self, action, params={}, data='', headers={}, method='GET'):
<ide>
<ide>
<ide> class RackspaceNodeDriver(NodeDriver):
<del> """Rackspace node driver.
<add> """
<add> Rackspace node driver.
<ide>
<del> Extra node attributes:
<del> ... | 1 |
Javascript | Javascript | update ios rntester header to utilize safeareaview | ad4b124aa117483b4a0ec9dfa145b8e9a17f06c6 | <ide><path>RNTester/js/RNTesterApp.ios.js
<ide> const {
<ide> StyleSheet,
<ide> Text,
<ide> View,
<add> SafeAreaView
<ide> } = ReactNative;
<ide>
<ide> import type { RNTesterExample } from './RNTesterList.ios';
<ide> type Props = {
<ide> const APP_STATE_KEY = 'RNTesterAppState.v2';
<ide>
<ide> const Header = (... | 1 |
Ruby | Ruby | move legacy functions to compat | c70bb474e3d8ae447042e2d24ed1d67e6071dc48 | <ide><path>Library/Homebrew/compat.rb
<ide> require "compat/language/python"
<ide> require "compat/requirements/macos_requirement"
<ide> require "compat/formula"
<add>require "compat/os/mac" if OS.mac?
<ide><path>Library/Homebrew/compat/os/mac.rb
<add># frozen_string_literal: true
<add>
<add>module OS
<add> module Mac... | 3 |
Text | Text | fix incorrect net listen signature | 647954d0a045c72fc6b22afcfd89daa72d81bab3 | <ide><path>doc/api/net.md
<ide> Possible signatures:
<ide> * [`server.listen(options[, callback])`][`server.listen(options)`]
<ide> * [`server.listen(path[, backlog][, callback])`][`server.listen(path)`]
<ide> for [IPC][] servers
<del>* [`server.listen([[[port[, hostname[, backlog]]][, callback])`][`server.listen(por... | 1 |
Python | Python | fix bad merge | 0487fb02618a81c9a1b1e7fd5a294eb337e6ba5b | <ide><path>numpy/random/tests/test_direct.py
<ide> assert_raises)
<ide> import pytest
<ide>
<del><<<<<<< HEAD
<ide> from numpy.random import (Generator, MT19937, PCG64, Philox, RandomState)
<del>=======
<del>from numpy.random import (Generator, MT19937, PCG64,
<del> ... | 1 |
Python | Python | set data augmentation by default | 4c1b6a4c812402ea8087da75f127f723ef070349 | <ide><path>spacy/cli/train.py
<ide> def train(cmd, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0,
<ide> batch_sizes = util.compounding(util.env_opt('batch_from', 1),
<ide> util.env_opt('batch_to', 64),
<ide> util.env_opt('batch_com... | 1 |
Python | Python | add missing parens | 665f2786010a7a0743263544a496f28fcff26652 | <ide><path>celery/pool.py
<ide> def add_worker(self):
<ide> self._pool.append(w)
<ide> self.logger.debug(
<ide> "DynamicPool: Started pool worker %s (PID: %s, Poolsize: %d)" %(
<del> w.name, w.pid, len(self._pool))
<add> w.name, w.pid, len(self._pool)))
<ide>
<... | 1 |
PHP | PHP | remove unnecessary loadfixtures() | 52c2fad9ebb3c55009c1997923d768b86ba076cc | <ide><path>tests/TestCase/Database/ConnectionTest.php
<ide> public function testBufferedStatementCollectionWrappingStatement()
<ide> !($this->connection->getDriver() instanceof \Cake\Database\Driver\Sqlite),
<ide> 'Only required for SQLite driver which does not support buffered results natively'... | 1 |
PHP | PHP | add beforefind event to orm\table | f72d2b2afc1bfbcfedf492216c6b68744a0398a6 | <ide><path>lib/Cake/ORM/Table.php
<ide> */
<ide> namespace Cake\ORM;
<ide>
<add>use Cake\Event\Event;
<add>use Cake\Event\EventManager;
<ide> use Cake\Database\Schema\Table as Schema;
<ide> use Cake\ORM\Association\BelongsTo;
<ide> use Cake\ORM\Association\BelongsToMany;
<ide> * instances of this class can be create... | 2 |
Java | Java | fix assertion message in defaultdatabuffer | 346b75580267dc5d8d257be198d5841ce4e1add5 | <ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/DefaultDataBuffer.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you m... | 1 |
PHP | PHP | apply fixes from styleci | 1627d05c1624f81b8edf3fc116cd8443e7899f05 | <ide><path>tests/Support/SupportReflectorTest.php
<ide> public function testUnionTypeName()
<ide>
<ide> public function testIsCallable()
<ide> {
<del> $this->assertTrue(Reflector::isCallable(function () {}));
<add> $this->assertTrue(Reflector::isCallable(function () {
<add> }));
<ide> ... | 1 |
Javascript | Javascript | pass jest usestderr flag when debugging | 8426bb6956fb12279c458e69fbfc62fbb04a621c | <ide><path>scripts/jest/jest-cli.js
<ide> function getCommandArgs() {
<ide> if (argv.debug) {
<ide> args.unshift('--inspect-brk');
<ide> args.push('--runInBand');
<add>
<add> // Prevent console logs from being hidden until test completes.
<add> args.push('--useStderr');
<ide> }
<ide>
<ide> // CI En... | 1 |
Javascript | Javascript | throw exception for invalid multipart streams | d9a81374b2e6995a5118f76cf15cba67a67be66d | <ide><path>lib/multipart.js
<ide> proto.init = function(options) {
<ide>
<ide> if ('headers' in options) {
<ide> var req = options, contentType = req.headers['content-type'];
<del> if (contentType) {
<del> contentType = contentType.split(/; ?boundary=/)
<del> this.boundary = '--'+contentType[1];
<ad... | 2 |
PHP | PHP | use @isset directive | 7c283c201d04f3ee949dc89600a5aa0e4bbb80f1 | <ide><path>src/Illuminate/Mail/resources/views/html/message.blade.php
<ide> {{ $slot }}
<ide>
<ide> {{-- Subcopy --}}
<del> @if (isset($subcopy))
<add> @isset($subcopy)
<ide> @slot('subcopy')
<ide> @component('mail::subcopy')
<ide> {{ $subcopy }}
<ide> @end... | 4 |
Javascript | Javascript | remove maxduration from tests | 4c75881ee38ba2596c5c603d268f0dff178b8581 | <ide><path>packages/react-dom/src/__tests__/ReactDOMFiberAsync-test.internal.js
<ide> describe('ReactDOMFiberAsync', () => {
<ide>
<ide> let root = ReactDOM.unstable_createRoot(container);
<ide> root.render(
<del> <React.Suspense maxDuration={1000} fallback={'Loading'}>
<del> Initial
<del> ... | 12 |
Ruby | Ruby | fix incorrect cellar value in json | 0f90267bd0ffdd6ebff241a9703173bdb1ced74e | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def bottle_formula(f, args:)
<ide> "bottle" => {
<ide> "root_url" => bottle.root_url,
<ide> "prefix" => bottle.prefix,
<del> "cellar" => bottle.cellar.to_s,
<add> "cellar" => bottle_cellar.to_s,
<ide> "reb... | 1 |
Javascript | Javascript | remove url parameters from forum href | 0b362380d444dcf087356b6c6279603f350f336e | <ide><path>client/src/templates/Challenges/redux/create-question-epic.js
<ide> function createQuestionEpic(action$, state$, { window }) {
<ide> challengeMetaSelector(state);
<ide> const {
<ide> navigator: { userAgent },
<del> location: { href }
<add> location: { pathname, origin }
<i... | 1 |
Ruby | Ruby | send checksum to s3 to verify file integrity | f8539164c046e162531728b15f764fa8248704f1 | <ide><path>lib/active_storage/service/s3_service.rb
<ide> def initialize(access_key_id:, secret_access_key:, region:, bucket:)
<ide> end
<ide>
<ide> def upload(key, io, checksum: nil)
<del> # FIXME: Ensure integrity by sending the checksum for service side verification
<del> object_for(key).put(body: io)
<ad... | 1 |
Javascript | Javascript | add missing semicolon | d3fce9e82c1e248231d46bf3ff6ed61b20914088 | <ide><path>test/AngularSpec.js
<ide> describe('angular', function() {
<ide> var jqObject = jqLite("<p><span>s1</span><span>s2</span></p>").find("span"),
<ide> log = [];
<ide>
<del> forEach(jqObject, function(value, key) { log.push(key + ':' + value.innerHTML)});
<add> forEach(jqObject, functi... | 1 |
Text | Text | add missing parameter types | 68229a9f08ea900979e38df0d6c2612e2197cfe1 | <ide><path>doc/api/timers.md
<ide> Cancels an `Immediate` object created by [`setImmediate()`][].
<ide> added: v0.0.1
<ide> -->
<ide>
<del>* `timeout` {Timeout} A `Timeout` object as returned by [`setInterval()`][].
<add>* `timeout` {Timeout|string|number} A `Timeout` object as returned by [`setInterval()`][]
<add> o... | 1 |
Mixed | Python | update new models and internal changes | 146a37c6663e4a249e02d3dff0087b576e3dc3a1 | <ide><path>research/deeplab/README.md
<ide> under tensorflow/models. Please refer to the LICENSE for details.
<ide>
<ide> ## Change Logs
<ide>
<add>### March 27, 2019
<add>
<add>* Supported using different loss weights on different classes during training.
<add>**Contributor**: Yuwei Yang.
<add>
<add>
<add>### March ... | 18 |
Python | Python | add missing type hints in `matrix` directory | 46842e8c5b5fc78ced0f38206560deb2b8160a54 | <ide><path>matrix/count_islands_in_matrix.py
<ide>
<ide>
<ide> class matrix: # Public class to implement a graph
<del> def __init__(self, row: int, col: int, graph: list):
<add> def __init__(self, row: int, col: int, graph: list[list[bool]]) -> None:
<ide> self.ROW = row
<ide> self.COL = col
<i... | 8 |
Ruby | Ruby | convert params keys to strings | 7eef11eb657e6efb54dfe782ca2531df93654f83 | <ide><path>actionpack/lib/action_dispatch/test/mock.rb
<ide> def env_for(path, opts)
<ide> opts[:input] = params
<ide> end
<ide> else
<add> params.stringify_keys!
<ide> params.update(::Rack::Utils.parse_query(uri.query))
<ide> uri.query = requestify... | 1 |
Javascript | Javascript | add custom inspect to bufferlist | 9d3958102ec28f2bb468b2c532b7b34cabd61f1b | <ide><path>lib/internal/streams/BufferList.js
<ide> 'use strict';
<ide>
<ide> const { Buffer } = require('buffer');
<add>const { inspect } = require('util');
<ide>
<ide> function copyBuffer(src, target, offset) {
<ide> Buffer.prototype.copy.call(src, target, offset);
<ide> module.exports = class BufferList {
<ide> ... | 1 |
PHP | PHP | fix translator bug | 5046370454bed497801fe47e29efa00fab0535cd | <ide><path>src/Illuminate/Translation/Translator.php
<ide> protected function getLine($namespace, $group, $locale, $item, array $replace)
<ide> {
<ide> return $this->makeReplacements($line, $replace);
<ide> }
<del> elseif (is_array($line))
<add> elseif (is_array($line) and ! is_null($item))
<ide> {
<ide> ... | 1 |
Java | Java | pass sockjs session attributes to handshakehandler | b4fa1c24cc782a90935bde9275bfb203d4c97b14 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/WebSocketSession.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you m... | 2 |
Text | Text | pass path in url constructor | b5e818197f127b36f18fb0d0481928227b88b053 | <ide><path>doc/api/esm.md
<ide> The resolve hook returns the resolved file URL and module format for a
<ide> given module specifier and parent file URL:
<ide>
<ide> ```js
<del>const baseURL = new URL('file://');
<del>baseURL.pathname = `${process.cwd()}/`;
<add>const baseURL = new URL(`${process.cwd()}/`, 'file://');
... | 1 |
Java | Java | disallow empty expression in @disabledif | 54d6f250e2c496a4c6ce82392418a962eca40991 | <ide><path>spring-test/src/main/java/org/springframework/test/context/junit/jupiter/DisabledIfCondition.java
<ide> private ConditionEvaluationResult evaluateDisabledIf(ExtensionContext extensionC
<ide> Optional<DisabledIf> disabledIf = findMergedAnnotation(element, DisabledIf.class);
<ide> Assert.state(disabledIf.i... | 1 |
PHP | PHP | use referer header if it exists | b8778d24106ac6fc71d32284424ac0e5c2cb5bd3 | <ide><path>src/Illuminate/Routing/Redirector.php
<ide> public function home($status = 302)
<ide> */
<ide> public function back($status = 302, $headers = array())
<ide> {
<del> if ($this->session->hasPreviousUrl())
<add> if ($this->generator->getRequest()->headers->has('referer'))
<ide> {
<del> $back = $this->... | 1 |
Javascript | Javascript | write test for _optionsforqueryparam | 786ad9b6f5387a6e818244110b8c8e2377040cb9 | <ide><path>packages/@ember/-internals/routing/tests/system/route_test.js
<ide> moduleFor(
<ide> runDestroy(owner);
<ide> }
<ide>
<add> ["@test _optionsForQueryParam should work with nested properties"](assert) {
<add> let route = EmberRoute.extend({
<add> queryParams: {
<add> 'nested.... | 1 |
Text | Text | update the file of dockerizing a node.js app | 883b0567f2c96cb5cbcc31e5b02938bcc6d5877f | <ide><path>docs/examples/nodejs_web_app.md
<ide> Install your app dependencies using the `npm` binary:
<ide>
<ide> # Install app dependencies
<ide> COPY package.json /src/package.json
<del> RUN cd /src; npm install
<add> RUN cd /src; npm install --production
<ide>
<ide> To bundle your app's source code ... | 1 |
Javascript | Javascript | install updated `fbjs` downstream | 8457a46e43cfb6086338fd92e1426541932a69b5 | <ide><path>packager/blacklist.js
<ide> var sharedBlacklist = [
<ide> 'downstream/core/invariant.js',
<ide> 'downstream/core/nativeRequestAnimationFrame.js',
<ide> 'downstream/core/toArray.js',
<del> 'downstream/functional/mapObject.js',
<del> 'downstream/key-mirror/keyMirror.js',
<del> 'downstream/key-mirror/k... | 1 |
Ruby | Ruby | remove some nodes | e55763a29d922bf4b5c483b9d3dadb1dba3bc683 | <ide><path>lib/arel/nodes/as.rb
<del>module Arel
<del> module Nodes
<del> class As < Arel::Nodes::Binary
<del> end
<del> end
<del>end
<ide><path>lib/arel/nodes/assignment.rb
<del>module Arel
<del> module Nodes
<del> class Assignment < Arel::Nodes::Binary
<del> end
<del> end
<del>end
<ide><path>lib/arel/... | 5 |
Text | Text | fix typo in http2 docs | 575b4e368d01b0be0a5f821d4c46b5aa8ff4b528 | <ide><path>doc/api/http2.md
<ide> changes:
<ide> * `http2.constants.PADDING_STRATEGY_NONE`: No padding is applied.
<ide> * `http2.constants.PADDING_STRATEGY_MAX`: The maximum amount of padding,
<ide> determined by the internal implementation, is applied.
<del> * `http2.constants.PADDING_STRATEGY_ALIGNE... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.