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
Text
Text
revison the some columns to make table clearer
bf15f675b9042db661de720900f367eff19737c0
<ide><path>docs/sources/reference/run.md <ide> This can be overridden using a third `:rwm` set of options to each `--device` fl <ide> <ide> In addition to `--privileged`, the operator can have fine grain control over the <ide> capabilities using `--cap-add` and `--cap-drop`. By default, Docker has a default <del>list ...
1
Text
Text
add release notes for 1.0.5 and 1.1.3
776dfc678b0e726fa9cfbe9fe1c2760b48002296
<ide><path>CHANGELOG.md <add><a name="1.1.3"></a> <add># 1.1.3 radioactive-gargle (2013-02-20) <add> <add>_Note: 1.1.x releases are [considered unstable](http://blog.angularjs.org/2012/07/angularjs-10-12-roadmap.html). <add>They pass all tests but we reserve the right to change new features/apis in between minor releas...
1
Javascript
Javascript
remove unused import
7691bfa119f4e1b1ee96b8be71f26a2999c3bfeb
<ide><path>lib/dependencies/HarmonyImportSideEffectDependency.js <ide> <ide> const HarmonyImportDependency = require("./HarmonyImportDependency"); <ide> <del>/** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */ <ide> /** @typedef {import("../Dependency")} Dependency */ <ide> /** @typedef {import("....
1
Javascript
Javascript
respect morph targets in outlinepass
39bff4a955304d23f6de79edabd712acbac9e6da
<ide><path>examples/js/postprocessing/OutlinePass.js <ide> #include <project_vertex> <ide> <ide> vPosition = mvPosition; <del> vec4 worldPosition = modelMatrix * vec4( position, 1.0 ); <add> vec4 worldPosition = modelMatrix * vec4( transformed, 1.0 ); <ide> projTexCoord = textureMatrix * worldPo...
2
Javascript
Javascript
fix regexp nits
76340e3f1007998c7cb9d69fa1a42d42663ca6c2
<ide><path>test/common/index.js <ide> if (exports.isWindows) { <ide> } <ide> <ide> const ifaces = os.networkInterfaces(); <add>const re = /lo/; <ide> exports.hasIPv6 = Object.keys(ifaces).some(function(name) { <del> return /lo/.test(name) && ifaces[name].some(function(info) { <add> return re.test(name) && ifaces[nam...
56
Python
Python
add tests for safe_join
06a170ea9b73ffe4f2e64453c70ed6b44619ecc8
<ide><path>tests/test_helpers.py <ide> import datetime <ide> import flask <ide> from logging import StreamHandler <del>from werkzeug.exceptions import BadRequest <add>from werkzeug.exceptions import BadRequest, NotFound <ide> from werkzeug.http import parse_cache_control_header, parse_options_header <ide> from werkzeug...
1
Python
Python
fix pickling error with asyncresult
fd89eb8d0ac1a6a4085edc9d7f2274daf607ba92
<ide><path>celery/result.py <ide> def __reduce__(self): <ide> return self.__class__, self.__reduce_args__() <ide> <ide> def __reduce_args__(self): <del> return self.id, self.backend, self.task_name, self.parent <add> return self.id, self.backend, self.task_name, self.app, self.parent <ide> <...
1
Javascript
Javascript
add tests for normalmodule
eb2d6d6d5fd1eca6d803adf7740ff7e73f908ce0
<ide><path>lib/NormalModule.js <ide> function asString(buf) { <ide> return buf; <ide> } <ide> <del>function contextify(options, request) { <add>function contextify(context, request) { <ide> return request.split("!").map(function(r) { <del> let rp = path.relative(options.context, r); <add> let rp = path.relative(co...
2
PHP
PHP
add fix and test for camelback input names
fa8bdfd0ddaba47f9e787dc58dc72f9fe930365d
<ide><path>lib/Cake/Test/Case/View/HelperTest.php <ide> public function schema($field = false) { <ide> 'author_id' => array('type' => 'integer', 'null' => false, 'default' => '', 'length' => '8'), <ide> 'title' => array('type' => 'string', 'null' => false, 'default' => '', 'length' => '255'), <ide> 'body' => a...
2
Python
Python
fix handling of right edge of final bin
3991939341a25000c16171647e4547eaa6d86055
<ide><path>numpy/lib/function_base.py <ide> def histogram(a, bins=10, range=None, normed=False, weights=None, <ide> # Compute the bin indices, and for values that lie exactly on mx we <ide> # need to subtract one <ide> indices = tmp_a.astype(np.intp) <del> equals_endpoint ...
2
Java
Java
improve #tostring for annotationattributes
4036ffc4d4f62626208dccc63ffdefc112d4ed1c
<ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotationAttributes.java <ide> <ide> import static java.lang.String.format; <ide> <add>import java.util.Iterator; <ide> import java.util.LinkedHashMap; <ide> import java.util.Map; <ide> <ide> import org.springframework.util.Assert; <add>import...
1
Python
Python
fix tf start docstrings
cf450b776f1205c9938b978ed1e6913277eeb930
<ide><path>src/transformers/models/albert/modeling_tf_albert.py <ide> class TFAlbertForPreTrainingOutput(ModelOutput): <ide> <ide> <Tip> <ide> <del> TF 2.0 models accepts two formats as inputs: <add> TensorFlow models and layers in `transformers` accept two formats as input: <ide> <ide> - having all in...
49
Ruby
Ruby
fix tab tests
c904c71792233c5564a5b73814bfbb8d81389b50
<ide><path>Library/Homebrew/test/test_tab.rb <ide> def test_universal? <ide> end <ide> <ide> def test_options <del> assert_equal (@used + @unused).to_a, @tab.options.to_a <add> assert_equal (@used + @unused).sort, @tab.options.sort <ide> end <ide> <ide> def test_cxxstdlib <ide> def test_from_file <ide> ...
1
PHP
PHP
add additional test for inputs in labels
c22621cc562cf9bea5f48031164d652e4441c923
<ide><path>src/View/Helper/FormHelper.php <ide> public function error($field, $text = null, array $options = []) { <ide> * <label for="post-publish">Publish <input type="text" name="published"></label> <ide> * }}} <ide> * <add> * If you want to nest inputs in the labels, you will need to modify the default templates...
2
Text
Text
revise collaborator description in governance.md
181052d7c255900a91a3c7c21d6406898ff5cf09
<ide><path>GOVERNANCE.md <ide> <ide> ## Collaborators <ide> <del>The [nodejs/node][] GitHub repository is maintained by Node.js Core <del>Collaborators. Upon becoming Collaborators, they: <del> <del>* Become members of the @nodejs/collaborators team <del>* Gain individual membership of the Node.js foundation <del> <d...
1
Text
Text
add missing zlib link to stream api docs
2a46e57d139a93caaff4dc63000e61b9a27669bb
<ide><path>doc/api/stream.md <ide> readable buffer so there is nothing for a user to consume. <ide> [fs read streams]: fs.html#fs_class_fs_readstream <ide> [fs write streams]: fs.html#fs_class_fs_writestream <ide> [http-incoming-message]: http.html#http_class_http_incomingmessage <add>[zlib]: zlib.html <ide> [stream-_f...
1
Ruby
Ruby
fix typo in deprecation message
11f5434a8c0226801e14f7b1dc7caca82427e28d
<ide><path>activemodel/lib/active_model/errors.rb <ide> def add_on_blank(attributes, options = {}) <ide> <ide> To achieve the same use: <ide> <del> errors.add(attribute, :empty, options) if value.blank? <add> errors.add(attribute, :blank, options) if value.blank? <ide> MESSAGE <ide> <...
1
Javascript
Javascript
run javascript only when dom is ready
2f49df82422c4e8920ae265f9ab78aaea29dae10
<ide><path>rest_framework/static/rest_framework/js/default.js <ide> function getCookie(c_name) <ide> return c_value; <ide> } <ide> <del>// JSON highlighting. <del>prettyPrint(); <add>$(document).ready(function () { <add> // JSON highlighting. <add> prettyPrint(); <ide> <del>// Bootstrap tooltips. <del>$('.j...
1
Python
Python
fix double logging with some task logging handler
933fefca27a5cd514c9083040344a866c7f517db
<ide><path>airflow/utils/log/file_task_handler.py <ide> from airflow.exceptions import RemovedInAirflow3Warning <ide> from airflow.utils.context import Context <ide> from airflow.utils.helpers import parse_template_string, render_template_to_string <del>from airflow.utils.log.logging_mixin import DISABLE_PROPOGATE <ide...
3
Go
Go
handle ip route showing mask-less ip addresses
0ca133dd7681bb3af1d1de18a5ea6ed42142a11e
<ide><path>network.go <ide> func checkRouteOverlaps(dockerNetwork *net.IPNet) error { <ide> continue <ide> } <ide> if _, network, err := net.ParseCIDR(strings.Split(line, " ")[0]); err != nil { <del> return fmt.Errorf("Unexpected ip route output: %s (%s)", err, line) <add> // is this a mask-less IP address? ...
1
PHP
PHP
apply suggestions from code review
b1acb9b16440e87d7cc8b2556402e1d082957d84
<ide><path>src/Http/Uri.php <ide> * <ide> * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <ide> * @link https://cakephp.org CakePHP(tm) Project <del> * @since 3.3.0 <add> * @since 4.4.0 <ide> * @license https://opensource.org/licenses/mit-lic...
1
Python
Python
fix ticket #599
1f0d060bdf6a5cd18d6f301c22cff0f0d482eed4
<ide><path>numpy/core/fromnumeric.py <ide> def _wrapit(obj, method, *args, **kwds): <ide> except AttributeError: <ide> wrap = None <ide> result = getattr(asarray(obj),method)(*args, **kwds) <del> if wrap and isinstance(result, mu.ndarray): <add> if wrap: <ide> if not isinstance(result, mu....
1
Ruby
Ruby
add failing test for
a7648c213d17f1a58a022fb220efe6310e3f56c3
<ide><path>railties/test/application/assets_test.rb <ide> class ::PostsController < ActionController::Base ; end <ide> assert_equal 1, output.scan("enhancement").size <ide> end <ide> <add> test "digested assets are not mistakenly removed" do <add> app_file "public/assets/application.js", "alert();" <...
1
Go
Go
publish installed v2 plugins to manager
2a97ea9a6e03443d4d10fd2f440feb779ab8699e
<ide><path>daemon/cluster/executor/container/executor.go <ide> import ( <ide> "github.com/docker/docker/api/types/network" <ide> executorpkg "github.com/docker/docker/daemon/cluster/executor" <ide> clustertypes "github.com/docker/docker/daemon/cluster/provider" <add> "github.com/docker/docker/plugin" <ide> networkt...
1
Python
Python
fix cuda compability for evaluation
1d53f9cb7244e242c3eee858948607a35ed5d3cc
<ide><path>run_classifier_pytorch.py <ide> def main(): <ide> input_ids = input_ids.to(device) <ide> input_mask = input_mask.float().to(device) <ide> segment_ids = segment_ids.to(device) <add> label_ids = label_ids.to(device) <ide> <ide> tmp_eval_loss, logits =...
1
Go
Go
remove dependencies on registry packages
dbb4b03bfc82eadefaf68c1a81d215949980550e
<ide><path>registry/v2/errors_test.go <ide> import ( <ide> "encoding/json" <ide> "reflect" <ide> "testing" <del> <del> "github.com/docker/docker-registry/digest" <ide> ) <ide> <ide> // TestErrorCodes ensures that error code format, mappings and <ide> func TestErrorsManagement(t *testing.T) { <ide> <ide> errs.Push...
4
Javascript
Javascript
add rn_fb bundles for react-is
c09596cc6021e1f9f8a88179add93f80fc07823b
<ide><path>scripts/rollup/bundles.js <ide> const bundles = [ <ide> FB_WWW_PROD, <ide> UMD_DEV, <ide> UMD_PROD, <add> RN_FB_DEV, <add> RN_FB_PROD, <add> RN_FB_PROFILING, <ide> ], <ide> moduleType: ISOMORPHIC, <ide> entry: 'react-is', <ide> global: 'ReactIs', <ide> min...
2
Javascript
Javascript
fix half way club gitter link
a028059aafe4a7536a8b0298885261494b47b531
<ide><path>server/boot/challenge.js <ide> module.exports = function(app) { <ide> req.flash('info', { <ide> msg: dedent` <ide> Once you have completed all of our challenges, you should <del> join our <a href=\"//gitter.im/freecodecamp/HalfWayClub\" <del> ...
1
PHP
PHP
fix doc block
e9cf10be548d6e233416a634e79478859e23168b
<ide><path>src/Illuminate/Contracts/Filesystem/Factory.php <ide> interface Factory { <ide> <ide> /** <del> * Get an OAuth provider implementation. <add> * Get a filesystem implementation. <ide> * <ide> * @param string $name <ide> * @return \Illuminate\Contracts\Filesystem\Filesystem
1
Ruby
Ruby
move the order by to the rownumber method
680bac202da2e9c717d4e47c9402f291a8971fad
<ide><path>lib/arel/visitors/mssql.rb <ide> def visit_Arel_Nodes_Top o <ide> end <ide> <ide> def visit_Arel_Visitors_MSSQL_RowNumber o <del> "ROW_NUMBER() OVER (#{o.expr}) as _row_num" <add> "ROW_NUMBER() OVER (ORDER BY #{o.expr}) as _row_num" <ide> end <ide> <ide> def visit_Arel...
1
Ruby
Ruby
keep object#fork private
f223c795e8f43d096811e715aecea022113d7fa7
<ide><path>activesupport/lib/active_support/fork_tracker.rb <ide> def fork(*) <ide> end <ide> end <ide> <add> module CoreExtPrivate <add> include CoreExt <add> private :fork <add> end <add> <ide> @pid = Process.pid <ide> @callbacks = [] <ide> <ide> def check! <ide> end <ide> <...
2
Text
Text
fix typo in step-010.md
5aaf8677d4c85ecafd41785ead6a718b4a533b5c
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/step-010.md <ide> dashedName: step-10 <ide> <ide> # --description-- <ide> <del>As suggested by the title, you are creating a form. So, after the `p` element, insert a `form` with an `action` attribute...
1
Python
Python
replace str with compat.unicode_
82f5f1f98fe572910b5c5c1762ed73ac8ba677e6
<ide><path>spacy/cli/info.py <ide> import platform <ide> from pathlib import Path <ide> <add>from ..compat import unicode_ <ide> from .. import about <ide> from .. import util <ide> <ide> def info(model=None, markdown=False): <ide> data = util.parse_package_meta(util.get_data_path(), model, require=True) <ide...
1
Java
Java
fix timezone specific failing test
50f20162934c1d3282615dce6696e3b56141f7ac
<ide><path>spring-webmvc/src/test/java/org/springframework/web/servlet/config/MvcNamespaceTests.java <ide> public void testDefaultConfig() throws Exception { <ide> <ide> adapter.handle(request, response, handlerMethod); <ide> assertThat(handler.recordedValidationError).isTrue(); <del> assertThat(handler.date).isI...
1
Python
Python
update affected deployment tests
e74c131d8ddc6748a4036b699420eb7d1e164153
<ide><path>libcloud/test/compute/test_deployment.py <ide> from libcloud.compute.drivers.rackspace import RackspaceFirstGenNodeDriver as Rackspace <ide> <ide> from libcloud.test import MockHttp, XML_HEADERS <del>from libcloud.test.file_fixtures import ComputeFileFixtures, OpenStackFixtures <add>from libcloud.test.file_...
1
PHP
PHP
return response to routemiddleware too
d07f5ce82a361b457329b54e0eb6b688a226c376
<ide><path>src/Illuminate/Routing/Router.php <ide> protected function runRouteWithinStack(Route $route, Request $request) <ide> ->through($middleware) <ide> ->then(function($request) use ($route) <ide> { <del> return $route->run($request); <add> return $this->prepar...
1
Python
Python
fix race condition when using dynamic dags
b9eb51a0fb32cd660a5459d73d7323865b34dd99
<ide><path>airflow/jobs/scheduler_job.py <ide> <ide> from airflow import models, settings <ide> from airflow.configuration import conf <del>from airflow.exceptions import AirflowException, TaskNotFound <add>from airflow.exceptions import AirflowException, SerializedDagNotFound, TaskNotFound <ide> from airflow.executor...
3
Go
Go
remove dup tests
0a3abe33f0bd9b7dfc36021b6f10d0857a432d40
<ide><path>integration/server_test.go <ide> package docker <ide> <ide> import ( <ide> "bytes" <del> "strings" <ide> "testing" <ide> "time" <ide> <ide> func TestCreateNumberHostname(t *testing.T) { <ide> createTestContainer(eng, config, t) <ide> } <ide> <del>func TestCreateNumberUsername(t *testing.T) { <del> eng...
1
Python
Python
add documentation to dag test function
9644b05d683abaa45f9b0f8b3c1b05a2263b8523
<ide><path>airflow/models/dag.py <ide> def test( <ide> variable_file_path: str | None = None, <ide> session: Session = NEW_SESSION, <ide> ) -> None: <del> """Execute one single DagRun for a given DAG and execution date.""" <add> """ <add> Execute one single DagRun for a given DA...
1
PHP
PHP
remove todo item
e5b516a8726d3ee3937e2a5523ba76f678bfa751
<ide><path>src/Controller/Component.php <ide> public function __construct(ComponentRegistry $registry, $config = []) { <ide> <ide> $this->config($config); <ide> <del> $this->_set($this->config()); //@TODO get rid of public properties and remove this <add> $this->_set($this->config()); <ide> <ide> if (!empty($t...
1
Javascript
Javascript
remove trailing whitespace from text editor docs
2c2d9597a7445a1505ffd0560179aadad4e9d390
<ide><path>src/text-editor.js <ide> class TextEditor { <ide> // coordinates. Useful with {Config::get}. <ide> // <ide> // For example, if called with a position inside the parameter list of an <del> // anonymous CoffeeScript function, this method returns a {ScopeDescriptor} with <add> // anonymous CoffeeScript...
1
Javascript
Javascript
fix util.inspect() line width calculation
1f5570471896b6723b723342d55ad50013ce3b82
<ide><path>lib/util.js <ide> function reduceToSingleString(output, base, braces) { <ide> var length = output.reduce(function(prev, cur) { <ide> numLinesEst++; <ide> if (cur.indexOf('\n') >= 0) numLinesEst++; <del> return prev + cur.length + 1; <add> return prev + cur.replace(/\u001b\[\d\d?m/g, '').lengt...
2
Python
Python
add pytorch native amp support in trainer
0034a1d248e1053dad743dc02c994bbe37a743af
<ide><path>src/transformers/trainer.py <ide> from tqdm.auto import tqdm, trange <ide> <ide> from .data.data_collator import DataCollator, default_data_collator <del>from .file_utils import is_apex_available, is_torch_tpu_available <add>from .file_utils import is_torch_tpu_available <ide> from .modeling_utils import Pr...
1
Go
Go
fix version checks to work properly
4bf7a84c969b9309b0534a61af55b8bb824acc0a
<ide><path>contrib/apparmor/main.go <ide> import ( <ide> ) <ide> <ide> type profileData struct { <del> MajorVersion int <del> MinorVersion int <add> Version int <ide> } <ide> <ide> func main() { <ide> func main() { <ide> // parse the arg <ide> apparmorProfilePath := os.Args[1] <ide> <del> majorVersion, minorVersio...
6
Text
Text
remove oxford comma
b3603b5de8033e926f71cedf2f7f3fd95ec58a2d
<ide><path>docs/Common-Issues.md <ide> brew upgrade <ide> <ide> ### Other local issues <ide> <del>If your Homebrew installation gets messed up (and fixing the issues found by `brew doctor` doesn't solve the problem), reinstalling Homebrew may help to reset to a normal state. To easily reinstall Homebrew, use [Homebre...
1
PHP
PHP
remove unneeded method
bf8e0faecb13385cbb9fa0445d1ef3516a8a8345
<ide><path>src/Illuminate/Session/Store.php <ide> public function get($name, $default = null) <ide> return parent::get($name) ?: value($default); <ide> } <ide> <del> /** <del> * Determine if the session has a flash item. <del> * <del> * @param string $name <del> * @return bool <del> */ <del> public function ...
1
Ruby
Ruby
fix memcachestore local cache duplication
5d1e8884bd626d1949af79cdb2f2c9ab54ab2028
<ide><path>activesupport/lib/active_support/cache/mem_cache_store.rb <ide> raise e <ide> end <ide> <add>require "delegate" <ide> require "active_support/core_ext/enumerable" <ide> require "active_support/core_ext/array/extract_options" <ide> <ide> def self.supports_cache_versioning? <ide> prepend Strategy::Lo...
1
Python
Python
replace references to `typedict` with `sctypedict`
a4260ab10fff84710c3ae4a67271f03f823ac75c
<ide><path>benchmarks/benchmarks/common.py <ide> 'int64', 'float64', 'complex64', <ide> 'longfloat', 'complex128', <ide> ] <del>if 'complex256' in numpy.typeDict: <add>if 'complex256' in numpy.sctypeDict: <ide> TYPES1.append('complex256') <ide> <ide> <ide><path>numpy/core/numerictypes.py <ide> Exported s...
6
Ruby
Ruby
add ability to check for rosetta
d9135c5a57f38c578cb7c9c7ba8eaab63b6d7651
<ide><path>Library/Homebrew/extend/os/mac/hardware/cpu.rb <ide> def universal_archs <ide> [arch_64_bit, arch_32_bit].extend ArchitectureListExtension <ide> end <ide> <add> # True when running under an Intel-based shell via Rosetta on an <add> # Apple Silicon Mac. This can be detected via seeing...
2
Ruby
Ruby
separate two groups of retryable db exceptions
da52b0d954a356421ccc064df3b1285f2ba10eb5
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb <ide> def with_raw_connection(allow_retry: false, uses_transaction: true) <ide> result = yield @raw_connection <ide> @verified = true <ide> result <del> rescue => ex <del> ...
6
Javascript
Javascript
handle video challenges
1ec6cf1efd92fc5c8588466986dbe2dbbd64f930
<ide><path>curriculum/getChallenges.js <ide> async function buildCurriculum(file, curriculum) { <ide> async function parseTranslation(engPath, transPath, dict) { <ide> const engChal = await parseMarkdown(engPath); <ide> const translatedChal = await parseMarkdown(transPath); <del> const codeLang = engChal.files[0] ...
4
PHP
PHP
fix incorrect paths in missingelementexception
7177ecaa0fa131b53bf8ef6fa2630ddfd50c97c7
<ide><path>src/View/Exception/MissingTemplateException.php <ide> */ <ide> class MissingTemplateException extends CakeException <ide> { <add> /** <add> * @var string <add> */ <add> protected $templateName; <add> <ide> /** <ide> * @var string <ide> */ <ide> class MissingTemplateException exte...
3
PHP
PHP
remove redundant test that was failing
f43aa6fe8717ce94402cb9f0c08ce03e206303a8
<ide><path>lib/Cake/Test/TestCase/Cache/Engine/ApcEngineTest.php <ide> * <ide> * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <ide> * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests <del> * @package Cake.Test.Case.Cache.Engine ...
1
Text
Text
unify quotes in an assert.md code example
211813c99c97e2c48c67323a7ee5cb2ed7f03d57
<ide><path>doc/api/assert.md <ide> assert.notStrictEqual(a, b); <ide> assert(!Object.is(a, b)); <ide> // but Object.is() does! <ide> <del>const str1 = "foo"; <del>const str2 = "foo"; <add>const str1 = 'foo'; <add>const str2 = 'foo'; <ide> assert.strictEqual(str1 / 1, str2 / 1); <ide> // AssertionError: NaN === NaN <id...
1
Go
Go
add non-experimental daemon as a test requirement
c7076d26709f3fa277bd11e1dffdc8fc7833d38e
<ide><path>integration-cli/docker_cli_daemon_not_experimental_test.go <del>// +build daemon,!windows,!experimental <del> <del>package main <del> <del>import ( <del> "io/ioutil" <del> "os" <del> "strings" <del> <del> "github.com/go-check/check" <del>) <del> <del>// os.Kill should kill daemon ungracefully, leaving behind...
3
Mixed
Python
add example code of binary/text data conversion
85836119d8c628f92b9bbc3b2a3857b76231da5e
<ide><path>textsum/README.md <ide> for example vocabulary format. In <b>How To Run</b> below, users can use toy <ide> data and vocab provided in the data/ directory to run the training by replacing <ide> the data directory flag. <ide> <add>data_convert_example.py contains example of convert between binary and text. <a...
2
Python
Python
remove docstrings from test_ functions
420f6099085f6742a4b49e4130559dabfdf6276a
<ide><path>numpy/random/tests/test_regression.py <ide> class TestRegression(TestCase): <ide> <ide> def test_VonMises_range(self): <del> """Make sure generated random variables are in [-pi, pi]. <del> <del> Regression test for ticket #986. <del> """ <add> # Make sure generated random var...
1
Text
Text
fix a broken link in contributing.md
ac293fc38bcdedc2b9e1e29e8b9a5d421e716bf4
<ide><path>CONTRIBUTING.md <ide> Small pull requests are much easier to review and more likely to get merged. Mak <ide> 1. Fork [the repository](https://github.com/facebook/react-native) and create your branch from `master`. <ide> 2. Add the copyright notice to the top of any new files you've added. <ide> 3. Describe y...
1
PHP
PHP
adjust jsonresource $wrap docblock
724cd761e662971d6d36799934b3ac7c57cefb7d
<ide><path>src/Illuminate/Http/Resources/Json/JsonResource.php <ide> class JsonResource implements ArrayAccess, JsonSerializable, Responsable, UrlRou <ide> /** <ide> * The "data" wrapper that should be applied. <ide> * <del> * @var string <add> * @var string|null <ide> */ <ide> public sta...
1
PHP
PHP
prevent insecure characters in locale
c248521f502c74c6cea7b0d221639d4aa752d5db
<ide><path>src/Illuminate/Translation/Translator.php <ide> use Illuminate\Support\NamespacedItemResolver; <ide> use Illuminate\Support\Str; <ide> use Illuminate\Support\Traits\Macroable; <add>use InvalidArgumentException; <ide> <ide> class Translator extends NamespacedItemResolver implements TranslatorContract <ide> {...
1
PHP
PHP
remove cake autoloader
b3c82ea47f903d84e10f81c81952ffbdf7964e18
<ide><path>lib/Cake/bootstrap.php <ide> <ide> require CAKE . 'basics.php'; <ide> <del>if (!class_exists('Cake\Core\App')) { <del> require CAKE . 'Core/ClassLoader.php'; <del> (new \Cake\Core\ClassLoader('Cake', CORE_PATH))->register(); <del>} <del> <ide> use Cake\Core\App; <ide> use Cake\Core\Configure; <ide>
1
Javascript
Javascript
improve code style
760da5943d6d31caa739772f15704b95f8e3a2ae
<ide><path>examples/js/loaders/SVGLoader.js <ide> THREE.SVGLoader.prototype = { <ide> <ide> transformStack.pop(); <ide> <del> if ( transformStack.length > 0 ) currentTransform.copy( transformStack[ transformStack.length - 1 ] ); <del> else currentTransform.identity(); <add> if ( transformStack.length > 0...
1
PHP
PHP
remove content form 204 test
661bc89cf4f1e404c4b3aef468265ee15864e4b0
<ide><path>tests/TestCase/Http/Client/ResponseTest.php <ide> public static function isSuccessProvider() <ide> new Response([ <ide> 'HTTP/1.1 204 No Content', <ide> 'Content-Type: text/html' <del> ], 'ok') <add> ], '') <ide> ...
1
Text
Text
add missing comma
e0af2122d241c3562b8302b9b1a0ed433c0a0c32
<ide><path>docs/getting-started.md <ide> in preferences. <ide> <ide> ## Configuration <ide> <del>Press `cmd-,` to open the Settings view. This is the place to change settings <add>Press `cmd-,` to open the Settings view. This is the place to change settings, <ide> install packages, and change the theme. <ide> <ide> ...
1
Ruby
Ruby
remove unused method
3aa75f5e18fa2cde5cf4bfe5974fb700edc63114
<ide><path>Library/Homebrew/metafiles.rb <ide> class Metafiles <ide> news notes notice readme todo <ide> ] <ide> <del> def + other <del> @metafiles + other <del> end <del> <ide> def should_copy? file <ide> include? file <ide> end
1
Ruby
Ruby
remove old method before redefining it
5ced275ac1fc8d52654521bf61742cb7f2f0d796
<ide><path>actionpack/lib/action_dispatch/routing/route_set.rb <ide> def define_hash_access(route, name, kind, options) <ide> <ide> # We use module_eval to avoid leaks <ide> @module.module_eval <<-END_EVAL, __FILE__, __LINE__ + 1 <add> remove_method :#{selector} if method_defined?(...
1
PHP
PHP
fix loading of controller with nested prefix
515aba9043291442a0944849f4a25f4cfff73df8
<ide><path>src/Routing/Filter/ControllerFactoryFilter.php <ide> protected function _getController($request, $response) <ide> $controller = $request->params['controller']; <ide> } <ide> if (!empty($request->params['prefix'])) { <del> if (strpos('/', $request->params['prefix']) === ...
3
PHP
PHP
fix pivot bug
1d8c79de4832114175150735792213532986f9a6
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php <ide> public function newExistingPivot(array $attributes = array()) <ide> */ <ide> public function withPivot($columns) <ide> { <del> $this->pivotColumns = is_array($columns) ? $columns : func_get_args(); <add> $columns = is_array($columns) ? ...
1
Text
Text
update napi_async_init documentation
3662b0c2c75b670599c363be8322064a3359e432
<ide><path>doc/api/n-api.md <ide> napi_status napi_async_init(napi_env env, <ide> ``` <ide> <ide> * `[in] env`: The environment that the API is invoked under. <del>* `[in] async_resource`: An optional object associated with the async work <add>* `[in] async_resource`: Object associated with the async work <ide> that...
1
Python
Python
fix tfsegformerforsemanticsegmentation doctest
51227e26ab8fe6d1a19804da697786649f9340e3
<ide><path>src/transformers/models/segformer/modeling_tf_segformer.py <ide> def call( <ide> >>> outputs = model(**inputs, training=False) <ide> >>> # logits are of shape (batch_size, num_labels, height, width) <ide> >>> logits = outputs.logits <del> >>> logits.shape <del> (1, 150, ...
1
Ruby
Ruby
add homebrew/tex to search params
ec7b513a538a779e4ae585dfc9656865d0fb1e57
<ide><path>Library/Homebrew/cmd/search.rb <ide> def search <ide> elsif ARGV.include? '--debian' <ide> exec_browser "https://packages.debian.org/search?keywords=#{ARGV.next}&searchon=names&suite=all&section=all" <ide> elsif ARGV.include? '--opensuse' <del> exec_browser "http://software.opensuse.org/se...
1
Go
Go
remove pointers from the sysinfo struct
c2bc637a0306657a86f3739bd5bdcd5db8d22539
<ide><path>pkg/sysinfo/sysinfo.go <ide> type SysInfo struct { <ide> // Whether the kernel supports AppArmor or not <ide> AppArmor bool <ide> <del> *cgroupMemInfo <del> *cgroupCPUInfo <del> *cgroupBlkioInfo <del> *cgroupCpusetInfo <add> cgroupMemInfo <add> cgroupCPUInfo <add> cgroupBlkioInfo <add> cgroupCpusetInfo <i...
2
Python
Python
show timestamps in drift warning
77587a784e54ce98041f0b34ca5216c942899631
<ide><path>celery/events/state.py <ide> <ide> import threading <ide> <add>from datetime import datetime <ide> from heapq import heappush, heappop <ide> from itertools import islice <ide> from time import time <ide> <ide> DRIFT_WARNING = """\ <ide> Substantial drift from %s may mean clocks are out of sync. Current d...
1
Python
Python
redirect standard fds to /dev/null
0ebbc5ff9eeb45008f524ca83623b20e3ded77a0
<ide><path>celery/platforms.py <ide> def _create_pidlock(pidfile): <ide> return pidlock <ide> <ide> <add>def fileno(f): <add> try: <add> return f.fileno() <add> except AttributeError: <add> pass <add> <add> <ide> class DaemonContext(object): <ide> _is_open = False <ide> workdir = DAEMO...
2
Javascript
Javascript
fix typos in comments
836c659d8f0b7683b7c1269b6d5ce567d7fa3a90
<ide><path>lib/_http_server.js <ide> function connectionListener(socket) { <ide> } <ide> <ide> // When we're finished writing the response, check if this is the last <del> // respose, if so destroy the socket. <add> // response, if so destroy the socket. <ide> res.on('finish', resOnFinish); <ide> ...
2
PHP
PHP
send charset=utf-8 if content-type is json
9b479958f613e2ce1d290f26d246e76313e821f2
<ide><path>lib/Cake/Network/CakeResponse.php <ide> protected function _setContentType() { <ide> if (in_array($this->_status, array(304, 204))) { <ide> return; <ide> } <del> if (strpos($this->_contentType, 'text/') === 0 || $this->_contentType === 'application/json') { <add> if (strpos($this->_contentType, 'tex...
1
Python
Python
fix auto-linking in download command
ac4b88cce9f4090124be94bcea2d1c5d8fb2d81a
<ide><path>spacy/download.py <ide> import plac <ide> import requests <ide> from os import path <del>from .link import link <add>from .link import link, link_package <ide> from . import about <ide> from . import util <ide> <ide> def download(model=None, direct=False): <ide> compatibility = get_compatibility() <...
2
Javascript
Javascript
add coverage for util.inspect()
0594577e69b11dccfa1d45453a712450a0cefbe0
<ide><path>test/parallel/test-util-inspect.js <ide> assert.strictEqual( <ide> util.inspect(123456789.12345678, { numericSeparator: true }), <ide> '123_456_789.123_456_78' <ide> ); <add> <add> assert.strictEqual( <add> util.inspect(-123456789.12345678, { numericSeparator: true }), <add> '-123_456_789.12...
1
Javascript
Javascript
simplify multi element directive check
b837fc3116e697aaf18977867a5defd9541f7f8c
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> return template.replace(/\{\{/g, startSymbol).replace(/}}/g, endSymbol); <ide> }, <ide> NG_ATTR_BINDING = /^ngAttr[A-Z]/; <add> var MULTI_ELEMENT_DIR_RE = /^(.+)Start$/; <ide> <ide> ...
1
Go
Go
launch docker fail with space named drive
acea488eb6ed40e6e5894e1b259ad861c9a98042
<ide><path>pkg/mount/mountinfo_linux.go <ide> func parseInfoFile(r io.Reader) ([]*MountInfo, error) { <ide> // Safe as mountinfo encodes mountpoints with spaces as \040. <ide> index := strings.Index(text, " - ") <ide> postSeparatorFields := strings.Fields(text[index+3:]) <del> if len(postSeparatorFields) != 3 { ...
2
Python
Python
fix code examples of detr and yolos
bf0addc56e82b51199bda577b3c2faec15117fed
<ide><path>src/transformers/models/detr/modeling_detr.py <ide> def forward( <ide> <ide> >>> # convert outputs (bounding boxes and class logits) to COCO API <ide> >>> target_sizes = torch.tensor([image.size[::-1]]) <del> >>> results = feature_extractor.post_process_object_detection(outputs, targe...
3
Python
Python
fix typo in doc
4a89bb6ced975a2cf339725af721268cecd94c22
<ide><path>keras/optimizers/optimizer_experimental/adamw.py <ide> class AdamW(optimizer.Optimizer): <ide> <ide> AdamW optimization is a stochastic gradient descent method that is based on <ide> adaptive estimation of first-order and second-order moments with an added <del> method to decay weights per the te...
1
Python
Python
add user_dict entries and small refactor
150a39ccca2426fcd10638c8515d7ec98cb79d8f
<ide><path>spacy/lang/ja/__init__.py <ide> <ide> <ide> # Hold the attributes we need with convenient names <del>DetailedToken = namedtuple("DetailedToken", ["surface", "pos", "lemma"]) <del> <del># Handling for multiple spaces in a row is somewhat awkward, this simplifies <del># the flow by creating a dummy with the ...
3
PHP
PHP
add more coverage
4d467642568540a068bbce7c44377240d1be5e5a
<ide><path>tests/TestCase/Error/Middleware/ErrorHandlerMiddlewareTest.php <ide> use Cake\Log\Log; <ide> use Cake\TestSuite\TestCase; <ide> use Error; <add>use InvalidArgumentException; <ide> use LogicException; <ide> use TestApp\Http\TestRequestHandler; <ide> <ide> public function tearDown(): void <ide> Log::d...
1
PHP
PHP
use generated fqcn
6575d9aea46c191fc37ad82561ccfc8ad006e5c7
<ide><path>src/Http/ServerRequest.php <ide> protected function _setConfig(array $config): void <ide> <ide> if (isset($config['uri'])) { <ide> if (!$config['uri'] instanceof UriInterface) { <del> throw new Exception('The `uri` key must be an instanceof Psr\Http\Message\UriInterface.')...
1
Mixed
Python
update stop_words.py in portuguese (a,o,e)
7a0222f260ad5b12b4978cf553d68ee26d916849
<ide><path>.github/contributors/cristianasp.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 projec...
2
PHP
PHP
fix tests on inserting with negative index and cs
9c7623b9cd843109da3f806ed60d54c754a4eccd
<ide><path>tests/TestCase/Http/MiddlewareQueueTest.php <ide> public function testInsertAtNegative() <ide> $queue->add($one)->insertAt(-1, $two)->insertAt(-1, $three); <ide> <ide> $this->assertCount(3, $queue); <del> $this->assertSame($three, $queue->get(0)); <del> $this->assertSame($two, ...
2
Text
Text
remove smartos from official binaries
ceca86740e9590e2500e2a9bc818ee7743849ac5
<ide><path>BUILDING.md <ide> Binaries at <https://nodejs.org/download/release/> are produced on: <ide> | linux-ppc64le | CentOS 7 with devtoolset-6 / GCC 6 <sup>[7](#fn7)</sup> | <ide> | linux-s390x | RHEL 7 with devtoolset-6 / GCC 6 <sup>[7](#fn7)</sup> | <ide> | l...
1
Javascript
Javascript
fix native event batching in concurrent mode
89acfa639bcecebdb18276ba2c0f4d5beee2de19
<ide><path>packages/react-debug-tools/src/__tests__/ReactDevToolsHooksIntegration-test.js <ide> describe('React hooks DevTools integration', () => { <ide> if (__DEV__) { <ide> // First render was locked <ide> expect(renderer.toJSON().children).toEqual(['Loading']); <del> scheduleUpdate(fiber); // R...
4
PHP
PHP
fix code standards warnings
3851ad08a678bfdb19a3c7f7ce16607cf52e37c4
<ide><path>lib/Cake/Test/Case/I18n/L10nTest.php <ide> class L10nTest extends CakeTestCase { <ide> * @return void <ide> */ <ide> public function testGet() { <del> $l10n = new L10n(); <add> $localize = new L10n(); <ide> <ide> // Catalog Entry <del> $l10n->get('en'); <add> $localize->get('en'); <ide> <del> $th...
1
Ruby
Ruby
add `to_bottle_hash` method
8b0f7e7ada254c8b2a046776174b6ff1b80a5499
<ide><path>Library/Homebrew/formula.rb <ide> def to_hash <ide> hsh <ide> end <ide> <add> # @api private <add> # Generate a hash to be used to install a formula from a JSON file <add> def to_bottle_hash(top_level: true) <add> bottle = bottle_hash <add> <add> bottles = bottle["files"].map do |tag, file| <...
2
Javascript
Javascript
move `mergevertices` to `buffergeometryutils`
7f521d49556b9fc37b335a3f2875bd17d55348bd
<ide><path>examples/js/utils/BufferGeometryUtils.js <ide> THREE.BufferGeometryUtils = { <ide> mem += indices ? indices.count * indices.itemSize * indices.array.BYTES_PER_ELEMENT : 0; <ide> return mem; <ide> <add> }, <add> <add> /** <add> * @param {THREE.BufferGeometry} geometry <add> * @param {number} tolerance ...
2
Ruby
Ruby
install adoptopenjdk for linux
0ac5cbbda9ddca02da5e0196d29e9ae2a2d6ae98
<ide><path>Library/Homebrew/extend/os/linux/dependency_collector.rb <ide> class DependencyCollector <ide> def java_dep_if_needed(tags) <ide> req = JavaRequirement.new(tags) <ide> begin <del> dep = Dependency.new("openjdk", tags) <add> dep = Dependency.new("adoptopenjdk", tags) <ide> return dep...
1
Ruby
Ruby
add collectionproxy#last documentation
b0f55c68887930ada279302cceaf10e2ca67de52
<ide><path>activerecord/lib/active_record/associations/collection_proxy.rb <ide> class CollectionProxy < Relation <ide> # another_person_without.pets.first # => nil <ide> # another_person_without.pets.first(3) # => [] <ide> <add> ## <add> # :method: last <add> # Returns the last recor...
1
Text
Text
fix some broken links in guides
e17b5fd572618fd9ac9257a05103e0b5fad714ab
<ide><path>guides/source/2_2_release_notes.md <ide> There are two big additions to talk about here: transactional migrations and poo <ide> <ide> Historically, multiple-step Rails migrations have been a source of trouble. If something went wrong during a migration, everything before the error changed the database and e...
4
Javascript
Javascript
trackballcamera first version, rotation only
902e31621eaa0e3567942eec57be79529a70850a
<ide><path>src/extras/cameras/TrackballCamera.js <add>/** <add> * @author Eberhard Gräther / http://egraether.com/ <add> <add> * parameters = { <add> * fov: <float>, <add> * aspect: <float>, <add> * near: <float>, <add> * far: <float>, <add> * target: <THREE.Object3D>, <add> <add> * radius: <float>, <add> <add> * zoomS...
1
Go
Go
use int64 instead of int
62bfef59f7ae6f9128bfc3e7ef2e6ed5e4441d2e
<ide><path>pkg/beam/beam.go <ide> type ReceiveSender interface { <ide> } <ide> <ide> const ( <del> R int = 1 << (32 - 1 - iota) <add> R = iota <ide> W <ide> ) <ide>
1
Ruby
Ruby
include vi in list of binaries already in os x
94bafe05f45ef72e07d9ad9fae16e20a92884a2c
<ide><path>Library/Homebrew/blacklist.rb <ide> def blacklisted? name <ide> case name.downcase <del> when 'vim', 'screen', /^rubygems?$/ then <<-EOS.undent <add> when /^vim?$/, 'screen', /^rubygems?$/ then <<-EOS.undent <ide> Apple distributes #{name} with OS X, you can find it in /usr/bin. <ide> EOS <ide> ...
1
PHP
PHP
fix a bug with json responses
d8da912905fa4da22d88e27a6e278a9dae06f31d
<ide><path>src/Illuminate/Http/JsonResponse.php <ide> <?php namespace Illuminate\Http; <ide> <add>use Illuminate\Support\Contracts\JsonableInterface; <add> <ide> class JsonResponse extends \Symfony\Component\HttpFoundation\JsonResponse { <ide> <ide> /** <ide> * {@inheritdoc} <ide> */ <ide> public function setDa...
2
Ruby
Ruby
pass the build object into the tab
393e10849be14528ee1726e5659562a698686c92
<ide><path>Library/Homebrew/build.rb <ide> def install <ide> # link against it. <ide> stdlibs = keg.detect_cxx_stdlibs :skip_executables => true <ide> <del> Tab.create(f, ENV.compiler, stdlibs.first, <del> Options.coerce(ARGV.options_only)).write <add> Tab.create(f, ENV...
2