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
Python
Python
resolve line-too-long in tests
e023c3e59ecbb4c84894623a3aa0a418d6f7b7a9
<ide><path>keras/tests/automatic_outside_compilation_test.py <ide> def validate_recorded_sumary_file(self, event_files, expected_event_counts): <ide> ) <ide> <ide> def testV2SummaryWithKerasSequentialModel(self): <del> # Histogram summaries require the MLIR bridge; see b/178826597#comment107. <del> ...
9
Text
Text
correct spelling error
72d989c68169426e5b27cd3c28b1418578231392
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/step-037.md <ide> Notice that the red and cyan colors are very bright right next to each other. Th <ide> <ide> It's better practice to choose one color as the dominant color, and use its complemen...
1
Text
Text
update chinese translation and fix indentation
37cf8fbffc61b6f49a0379001511e62d34f32ecc
<ide><path>guide/chinese/python/bool-function/index.md <ide> localeTitle: Python Bool函数 <ide> <ide> ## 参数 <ide> <del>它需要一个参数, `x` 。使用标准[真值测试程序](https://docs.python.org/3/library/stdtypes.html#truth)转换`x` 。 <add>它需要一个参数`x` 。使用标准[真值测试程序](https://docs.python.org/3/library/stdtypes.html#truth)转换`x` 。 <ide> <del>## 回报价值 ...
1
Mixed
Python
remove rmse objective (use mse instead)
65b5899d068daadb9101025dd8b8a7e4ceecec35
<ide><path>docs/templates/objectives.md <ide> For a few examples of such functions, check out the [objectives source](https:// <ide> ## Available objectives <ide> <ide> - __mean_squared_error__ / __mse__ <del>- __root_mean_squared_error__ / __rmse__ <ide> - __mean_absolute_error__ / __mae__ <ide> - __mean_absolute_per...
2
Javascript
Javascript
simplify binary search
1eb0932d04ce966cc034259f97334c53ec49af22
<ide><path>d3.layout.js <ide> d3.layout.histogram = function() { <ide> <ide> // Count the number of samples per bin. <ide> for (var i = 0; i < x.length; i++) { <del> var j = d3_layout_histogramSearchIndex(ticks, x[i]) - 1, <del> bin = bins[Math.max(0, Math.min(bins.length - 1, j))]; <add> va...
3
Javascript
Javascript
move v8_bench into misc
844b33205c77fe32d2aae76209eb444044b9aeff
<add><path>benchmark/misc/v8_bench.js <del><path>benchmark/v8_bench.js <ide> var fs = require('fs'); <ide> var path = require('path'); <ide> var vm = require('vm'); <ide> <del>var dir = path.join(__dirname, '..', 'deps', 'v8', 'benchmarks'); <add>var dir = path.join(__dirname, '..', '..', 'deps', 'v8', 'benchmarks'); ...
1
Ruby
Ruby
show lazy middleware args in pretty print
e0660192806fc1ec8b75654e69211f85c9f1256b
<ide><path>actionpack/lib/action_dispatch/middleware/stack.rb <ide> def ==(middleware) <ide> <ide> def inspect <ide> str = klass.to_s <del> args.each { |arg| str += ", #{arg.inspect}" } <add> args.each { |arg| str += ", #{build_args.inspect}" } <ide> str <ide> end <ide> <ide>...
1
Javascript
Javascript
add rfc references for each status code
9594b54f966c90c5c0270490a8b750e437a3cddb
<ide><path>lib/_http_server.js <ide> const kServerResponse = Symbol('ServerResponse'); <ide> const kServerResponseStatistics = Symbol('ServerResponseStatistics'); <ide> <ide> const STATUS_CODES = { <del> 100: 'Continue', <del> 101: 'Switching Protocols', <del> 102: 'Processing', // RFC 2518, obsolet...
1
Go
Go
add coverage on pkg/fileutils
8454e1a3b24e2e076bb08a2a6b1fcb56efe2924e
<ide><path>pkg/fileutils/fileutils.go <ide> func OptimizedMatches(file string, patterns []string, patDirs [][]string) (bool, <ide> } <ide> <ide> func CopyFile(src, dst string) (int64, error) { <del> if src == dst { <add> cleanSrc := filepath.Clean(src) <add> cleanDst := filepath.Clean(dst) <add> if cleanSrc == cleanDs...
2
Python
Python
convert snake_case to camelcase or pascalcase
6118b05f0efd1c2839eb8bc4de36723af1fcc364
<ide><path>strings/snake_case_to_camel_pascal_case.py <add>def snake_to_camel_case(input: str, use_pascal: bool = False) -> str: <add> """ <add> Transforms a snake_case given string to camelCase (or PascalCase if indicated) <add> (defaults to not use Pascal) <add> <add> >>> snake_to_camel_case("some_random_...
1
PHP
PHP
add test checking that tests map to .. tests
27fa6a8cdda3c390863e7bcff53a1cd62be332a4
<ide><path>lib/Cake/Test/Case/Console/Command/TestShellTest.php <ide> public function testMapPluginFileToCase() { <ide> $this->assertSame('Controller/ExampleController', $return); <ide> } <ide> <add>/** <add> * testMapCoreTestToCategory <add> * <add> * @return void <add> */ <add> public function testMapCoreTestToC...
1
Go
Go
use selinux labels for volumes
b2a43baf2e2cc68c83383a7524441f81bc4c4725
<ide><path>daemon/container.go <ide> func copyEscapable(dst io.Writer, src io.ReadCloser) (written int64, err error) <ide> func (container *Container) networkMounts() []execdriver.Mount { <ide> var mounts []execdriver.Mount <ide> if container.ResolvConfPath != "" { <add> label.SetFileLabel(container.ResolvConfPath, ...
4
Javascript
Javascript
replace var with let in lib/path.js
896b75a4da58a7283d551c4595e0aa454baca3e0
<ide><path>lib/path.js <ide> function normalizeString(path, allowAboveRoot, separator, isPathSeparator) { <ide> let lastSlash = -1; <ide> let dots = 0; <ide> let code = 0; <del> for (var i = 0; i <= path.length; ++i) { <add> for (let i = 0; i <= path.length; ++i) { <ide> if (i < path.length) <ide> cod...
1
Python
Python
add key control on mac os x
dedf85164694a28284b89cd130c0d3739873ca52
<ide><path>glances/glances.py <ide> def displayProcess(self, processcount, processlist, sortedby='', log_count=0): <ide> len(processlist)) <ide> for processes in range(0, proc_num): <ide> # VMS <del> process_size = processlist[processes]['memory_info...
1
Javascript
Javascript
add brand checks for detached accessors
4ec64e320fb050d6d441c365f40668bfbeaa472a
<ide><path>lib/internal/event_target.js <ide> const { <ide> FunctionPrototypeCall, <ide> NumberIsInteger, <ide> ObjectAssign, <add> ObjectCreate, <ide> ObjectDefineProperties, <ide> ObjectDefineProperty, <ide> ObjectGetOwnPropertyDescriptor, <ide> const { customInspectSymbol } = require('internal/util'); <...
2
PHP
PHP
apply fixes from styleci
66bfbd5cbb2ea482312d098aa3b9b1c27ce521e7
<ide><path>src/Illuminate/Container/Container.php <ide> public function extend($abstract, Closure $closure) <ide> * Register an existing instance as shared in the container. <ide> * <ide> * @template T <add> * <ide> * @param string $abstract <ide> * @param T $instance <ide> * @retu...
4
PHP
PHP
fix cs errors
1e95b4200663d52c5886a53a6226a962d983df54
<ide><path>src/Http/Response.php <ide> class Response implements ResponseInterface <ide> 'image/psd', <ide> 'image/x-photoshop', <ide> 'image/photoshop', <del> 'zz-application/zz-winassoc-psd' <add> 'zz-application/zz-winassoc-psd', <ide> ], <ide> ...
2
Javascript
Javascript
simplify check in previousvalueisvalid()
4ebb3f35e2c0a22744063f2a120516a8c26cbba1
<ide><path>lib/internal/process/per_thread.js <ide> function setupCpuUsage(_cpuUsage) { <ide> // Ensure that a previously passed in value is valid. Currently, the native <ide> // implementation always returns numbers <= Number.MAX_SAFE_INTEGER. <ide> function previousValueIsValid(num) { <del> return Number.isF...
1
Python
Python
add pipe to attributeruler
06c3a5e048dc740bbe482d994505512845a6fd9f
<ide><path>spacy/pipeline/attributeruler.py <ide> def __call__(self, doc: Doc) -> Doc: <ide> set_token_attrs(token, attrs) <ide> return doc <ide> <add> def pipe(self, stream, *, batch_size=128): <add> """Apply the pipe to a stream of documents. This usually happens under <add> the ...
1
Java
Java
make testcontextmanager.gettestcontext() public
067994712df49b50b955e93944245a770b3962ad
<ide><path>spring-test/src/main/java/org/springframework/test/context/TestContextManager.java <ide> public TestContextManager(TestContextBootstrapper testContextBootstrapper) { <ide> /** <ide> * Get the {@link TestContext} managed by this {@code TestContextManager}. <ide> */ <del> protected final TestContext getTe...
1
Text
Text
add list article
07d9862c0e50d8c67c56bcf78f002a766d932e50
<ide><path>guide/english/haskell/lists/index.md <add>--- <add>title: Lists <add>--- <add> <add>Lists are a widely used datatype in Haskell. In fact, if you have used strings you've used Haskell's lists! <add> <add># Definition <add>Haskell's lists are recursively defined as follows: <add> <add>```haskell <add>data [] a...
1
Ruby
Ruby
move test_bot_user to a new module github
3ee3b78fbda48821e878feeafc313a9391c5729c
<ide><path>Library/Homebrew/dev-cmd/pull.rb <ide> require "version" <ide> require "pkg_version" <ide> <add>module GitHub <add> module_function <add> <add> # Return the corresponding test-bot user name for the given GitHub organization. <add> def test_bot_user(user) <add> test_bot = ARGV.value "test-bot-user" <ad...
1
Text
Text
clarify dependency installation
2ff1b2e9e355b9932eb559075565741e14b0b6d6
<ide><path>docs/docs/getting-started.md <ide> ReactDOM.render( <ide> ); <ide> ``` <ide> <del>To install React DOM and build your bundle after installing browserify: <add>To install React DOM and build your bundle with browserify: <ide> <ide> ```sh <ide> $ npm install --save react react-dom babelify babel-preset-react...
1
Python
Python
remove metrics for predict
f1df4297c27f4a2dab675d253be67eb0372817af
<ide><path>keras/engine/training.py <ide> def _predict_loop(self, f, ins, batch_size=32, verbose=0, steps=None): <ide> or list of arrays of predictions <ide> (if the model has multiple outputs). <ide> """ <del> <del> if hasattr(self, 'metrics'): <del> for m in self.metr...
1
PHP
PHP
deprecate the arrayaccess interface methods
477e7562c0f6d896808ae176751725fec56aa7ad
<ide><path>src/Network/Request.php <ide> public function setInput($input) <ide> * <ide> * @param string $name Name of the key being accessed. <ide> * @return mixed <add> * @deprecated 3.4.0 The ArrayAccess methods will be removed in 4.0.0. Use param(), data() and query() instead. <ide> */ <ide> ...
1
Go
Go
fix wrong kill signal parsing
39eec4c25bce6291534f9524dc52de65787d5b6e
<ide><path>api/server/server.go <ide> func (s *Server) postContainersKill(version version.Version, w http.ResponseWrit <ide> name := vars["name"] <ide> <ide> // If we have a signal, look at it. Otherwise, do nothing <del> if sigStr := vars["signal"]; sigStr != "" { <add> if sigStr := r.Form.Get("signal"); sigStr != ...
2
Javascript
Javascript
make slowbuffer inherit from buffer
38542f76a97e5c424aeada2e2dc8371797449335
<ide><path>lib/buffer.js <ide> function binaryWarn() { <ide> <ide> exports.INSPECT_MAX_BYTES = 50; <ide> <add>// Make SlowBuffer inherit from Buffer. <add>// This is an exception to the rule that __proto__ is not allowed in core. <add>SlowBuffer.prototype.__proto__ = Buffer.prototype; <add> <ide> <ide> function toHe...
1
Javascript
Javascript
allow empty option to be removed and re-added
2fdfbe729660a0a55df96f3eb6f833d7a6e709a9
<ide><path>src/ng/directive/ngOptions.js <ide> var ngOptionsDirective = ['$compile', '$document', '$parse', function($compile, <ide> } <ide> } <ide> <add> // The empty option will be compiled and rendered before we first generate the options <add> selectElement.empty(); <add> <ide> var pr...
2
Text
Text
update copyright year in license to include 2014
0a6c892766abe47e5e535a654b45ab5db052bb76
<ide><path>LICENSE.md <del>Copyright (c) 2014 Nick Downie <add>Copyright (c) 2013-2014 Nick Downie <ide> <ide> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including withou...
1
Javascript
Javascript
fix experimental macros test
889dfeccabe85d616df66695ffe013e55eb9c298
<ide><path>packages/@ember/-internals/glimmer/tests/integration/syntax/experimental-syntax-test.js <ide> import { moduleFor, RenderingTestCase, strip } from 'internal-test-helpers'; <ide> <ide> import { _registerMacros, _experimentalMacros } from '@ember/-internals/glimmer'; <add>import { invokeStaticBlockWithStack } ...
1
Javascript
Javascript
handle the removal of an interpolated attribute
a75546afdf41adab786eda30c258190cd4c5f1ae
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> "ng- versions (such as ng-click instead of onclick) instead."); <ide> } <ide> <add> // If the attribute was removed, then we are done <add> if (!...
2
Python
Python
use attention_mask everywhere
fe0f552e00e7556c9dd6eccc2486b962bb2a3460
<ide><path>transformers/pipelines.py <ide> def __call__(self, *texts, **kwargs): <ide> return_attention_masks=True, return_input_lengths=False <ide> ) <ide> <del> # TODO : Harmonize model arguments across all model <del> inputs['attention_mask'] = inputs.pop('encoder_attention_mask') ...
1
Javascript
Javascript
optimize parse and stringify
85a92a37ef76059a4733c8e9462ff8da733dfb9e
<ide><path>lib/querystring.js <ide> <ide> const QueryString = exports; <ide> <del>// If obj.hasOwnProperty has been overridden, then calling <del>// obj.hasOwnProperty(prop) will break. <del>// See: https://github.com/joyent/node/issues/1707 <del>function hasOwnProperty(obj, prop) { <del> return Object.prototype.has...
1
Ruby
Ruby
add a forgotten word
cff0aebbc4e4a3c586066eb289e667de0962aedb
<ide><path>activesupport/lib/active_support/core_ext/object/with_options.rb <ide> class Object <ide> # end <ide> # end <ide> # <del> # It also be used with an explicit receiver: <add> # It can also be used with an explicit receiver: <ide> # <ide> # map.with_options :controller => "people" do |people...
1
PHP
PHP
add timezone option
97d783449c5330b1e5fb9104f6073869ad3079c1
<ide><path>src/Illuminate/Console/Scheduling/ScheduleListCommand.php <ide> class ScheduleListCommand extends Command <ide> * <ide> * @var string <ide> */ <del> protected $name = 'schedule:list'; <add> protected $signature = 'schedule:list {--timezone= : The timezone that times should be displayed i...
1
Text
Text
update terminology for challenges
b96ebf76634f327177967da6be4a3e887c9d7a5d
<ide><path>docs/how-to-work-on-coding-challenges.md <ide> Before you work on the curriculum, you would need to set up some tooling to help <ide> <ide> ### How to work on practice projects <ide> <del>The practice projects have some additional tooling to help create new projects and steps. To read more, see [these doc...
1
PHP
PHP
add tests for string properties
d0ebb56c0f293f0f55680187a0fd0be7c55d85f7
<ide><path>src/View/ViewBuilder.php <ide> class ViewBuilder <ide> protected $viewPath; <ide> <ide> /** <del> * The view file to render. <add> * The template file to render. <ide> * <ide> * @var string <ide> */ <del> protected $view; <add> protected $template; <ide> <ide> /** <...
2
Java
Java
fix checkstyle violation
984f9de191b6efad763bf64168ddf40c6377b000
<ide><path>spring-context/src/test/java/example/gh24375/B.java <ide> public @interface B { <ide> <ide> String name() default ""; <del>} <ide>\ No newline at end of file <add>}
1
Python
Python
remove deprecated flask.error_handlers
9491bf8695be9b24036b3d966d9c43b46f0ddc23
<ide><path>flask/app.py <ide> def __init__(self, import_name, static_path=None, static_url_path=None, <ide> #: To register a view function, use the :meth:`route` decorator. <ide> self.view_functions = {} <ide> <del> # support for the now deprecated `error_handlers` attribute. The <del> #...
1
Javascript
Javascript
limit selection to #qunit-fixture in attributes.js
ddb2c06f51a20d1da2d444ecda88f9ed64ef2e91
<ide><path>test/unit/attributes.js <ide> QUnit.test( "attr(String, Function)", function( assert ) { <ide> QUnit.test( "attr(Hash)", function( assert ) { <ide> assert.expect( 3 ); <ide> var pass = true; <del> jQuery( "div" ).attr( { <add> <add> jQuery( "#qunit-fixture div" ).attr( { <ide> "foo": "baz", <ide> "zoo"...
1
Java
Java
fix javadoc formatting issues
9af11ad5ce137e8fe71f0ce9e980745e4c840818
<ide><path>spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java <ide> <ide> /** <ide> * Contextual descriptor about a type to convert from or to. <del> * Capable of representing arrays and generic collection types. <add> * <p>Capable of representing arrays and generic collection types. <ide>...
2
Javascript
Javascript
limit lint rule disabling in message test
7e0410499d8816d67737c7232a898e8d67925b3b
<ide><path>test/message/nexttick_throw.js <ide> process.nextTick(function() { <ide> process.nextTick(function() { <ide> process.nextTick(function() { <ide> process.nextTick(function() { <del> // eslint-disable-next-line <add> // eslint-disable-next-line no-undef <ide> undefined_referen...
1
Text
Text
add french translation
8b54e19b84b163a93c8f53c54de02eb18f2ff788
<ide><path>threejs/lessons/fr/threejs-materials.md <del>Title: Les Matériaux dans Three.js <del>Description: Les Matériaux dans Three.js <del>TOC: Matériaux <add>Title: Les Materials de Three.js <add>Description: Les Materials dans Three.js <add>TOC: Materials <ide> <ide> Cet article fait partie d'une série consacrée ...
1
Java
Java
break dependency between testcompiler and aot
4625e92eb86899f83513a9202d090b137a04f0e8
<ide><path>spring-aop/src/test/java/org/springframework/aop/scope/ScopedProxyBeanRegistrationAotProcessorTests.java <ide> private void compile(BiConsumer<DefaultListableBeanFactory, Compiled> result) { <ide> .build()); <ide> }); <ide> this.generationContext.writeGeneratedContent(); <del> TestCompiler.forSyste...
17
Python
Python
remove invalid part of r_ docstring
7af974d6b24945f2e4f31c42781a89cc168d6dfa
<ide><path>numpy/lib/index_tricks.py <ide> def __init__(self): <ide> <ide> class c_class(concatenator): <ide> """Translates slice objects to concatenation along the second axis. <del> <del> This is equivalent to r_['-1,2,0',...] <ide> """ <ide> def __init__(self): <ide> concatenator.__init__(...
1
Ruby
Ruby
note the ways #match may be called
007c41100b06db53630ce60048eaa625a9e955ee
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def shallow? <ide> parent_resource.instance_of?(Resource) && @scope[:shallow] <ide> end <ide> <add> # match 'path' => 'controller#action' <add> # match 'path', as: 'controller#action' <add> # match 'path', 'otherpa...
1
Ruby
Ruby
stringify the parameters on follow_redirect
65f834ad45b2221fd442acc3c38fb2f750521a18
<ide><path>actionpack/lib/action_controller/test_process.rb <ide> def follow_redirect <ide> raise "Can't follow redirects outside of current controller (#{@response.redirected_to[:controller]})" <ide> end <ide> <del> get(@response.redirected_to.delete(:action), @response.redire...
2
Javascript
Javascript
fix purerender test to use providesmodule
bb0fc28facaf4bb282a0ba98d7f366bd4840bbb0
<ide><path>src/addons/__tests__/ReactComponentWithPureRenderMixin-test.js <ide> describe('ReactComponentWithPureRenderMixin', function() { <ide> React = require('React'); <ide> ReactComponentWithPureRenderMixin = <ide> require('ReactComponentWithPureRenderMixin'); <del> ReactTestUtils = require("../../...
1
PHP
PHP
move time concatenation up one line
2fa9423eba89d63e5b0a18c48fcf90807009f42c
<ide><path>Cake/Utility/Time.php <ide> public static function niceShort($dateString = null, $timezone = null) { <ide> public static function daysAsSql($begin, $end, $fieldName, $timezone = null) { <ide> $dateTime = new \DateTime; <ide> $begin = $dateTime->setTimestamp(static::fromString($begin, $timezone)) <del> ...
1
Java
Java
ignore null locale in mockhttpservletresponse
c19b2851f190d192b97ce1131e2db49636811578
<ide><path>spring-test/src/main/java/org/springframework/mock/web/MockHttpServletResponse.java <ide> public void reset() { <ide> <ide> @Override <ide> public void setLocale(Locale locale) { <add> if (locale == null) { <add> return; <add> } <ide> this.locale = locale; <ide> doAddHeaderValue(HttpHeaders.CONTEN...
3
PHP
PHP
allow passing of data to the view
c3c789b35fb0c3673a48dc400dd5cc4688776cb4
<ide><path>src/Illuminate/Routing/Router.php <ide> public function redirect($uri, $destination, $status = 301) <ide> * <ide> * @param string $uri <ide> * @param string $view <add> * @param array $data <ide> * @return \Illuminate\Routing\Route <ide> */ <del> public function view($uri, $vi...
3
PHP
PHP
remove usage of requestactiontrait
87480bce91f8f32abda51e340c0ae39507bda9c1
<ide><path>src/Controller/Controller.php <ide> use Cake\Http\ServerRequest; <ide> use Cake\Log\LogTrait; <ide> use Cake\ORM\Locator\LocatorAwareTrait; <del>use Cake\Routing\RequestActionTrait; <ide> use Cake\Routing\Router; <ide> use Cake\View\ViewVarsTrait; <ide> use LogicException; <ide> class Controller implements E...
2
Mixed
Python
add equated_monthly_installments.py in financials
db5aa1d18890439e4108fa416679dbab5859f30c
<ide><path>DIRECTORY.md <ide> <ide> ## Financial <ide> * [Interest](https://github.com/TheAlgorithms/Python/blob/master/financial/interest.py) <add> * [EMI Calculation](https://github.com/TheAlgorithms/Python/blob/master/financial/equated_monthly_installments.py) <ide> <ide> ## Fractals <ide> * [Julia Sets](http...
2
Go
Go
add [] and move errors to stderr
4107701062bc729d06e1729e2b4c8c92b3b8b4f2
<ide><path>commands.go <ide> func (cli *DockerCli) CmdStop(args ...string) error { <ide> for _, name := range cmd.Args() { <ide> _, _, err := cli.call("POST", "/containers/"+name+"/stop?"+v.Encode(), nil) <ide> if err != nil { <del> fmt.Printf("%s", err) <add> fmt.Fprintf(os.Stderr, "%s", err) <ide> } else {...
1
Javascript
Javascript
improve removeparentmodulesplugin performance
4daaf6cd3308cfd0331f43ccbf686602b3603f3d
<ide><path>lib/optimize/RemoveParentModulesPlugin.js <ide> class RemoveParentModulesPlugin { <ide> compiler.hooks.compilation.tap("RemoveParentModulesPlugin", compilation => { <ide> const handler = (chunks, chunkGroups) => { <ide> const queue = new Queue(); <del> const availableModulesMap = new Map(); <add>...
1
PHP
PHP
remove unused code and remove strict type checks
2f799961404ed7fda48fbdbca15df08d15a86f0b
<ide><path>lib/Cake/View/Helper/FormHelper.php <ide> public function dateTime($fieldName, $dateFormat = 'DMY', $timeFormat = '12', $a <ide> $current->setDate($year, $month, $day); <ide> } <ide> if ($hour !== null) { <del> if ($timeFormat === '12') { <del> $hour = date('H', strtotime("$hour:$min $meridi...
1
Text
Text
fix some recent nits in assert.md
603afe25c870efb030aed84c2e634652def1a3ec
<ide><path>doc/api/assert.md <ide> rejected. See [`assert.rejects()`][] for more details. <ide> When `assert.doesNotReject()` is called, it will immediately call the `block` <ide> function, and awaits for completion. <ide> <del>Besides the async nature to await the completion behaves identical to <add>Besides the asyn...
1
Javascript
Javascript
remove unused xr.submitframe()
4c3419040361c3ef57453c222d5c29a6aaa764be
<ide><path>src/renderers/WebGLRenderer.js <ide> function WebGLRenderer( parameters ) { <ide> <ide> } <ide> <del> xr.submitFrame(); <del> <ide> } <ide> <ide> // _gl.finish();
1
Python
Python
update refresh jwt when needed
d425af380434422e083e9daca27fb6412e53beaf
<ide><path>libcloud/common/gig_g8.py <ide> # limitations under the License. <ide> <ide> from libcloud.common.base import ConnectionKey, JsonResponse <add>import json <add>import base64 <add>import requests <add>import os <add>import time <add> <add># normally we only use itsyou.online but you might want to work <add>#...
1
Javascript
Javascript
add sqrt and fix gettype
46dfb3990aa247d9406704d13f2d6734d7d31a72
<ide><path>examples/js/nodes/math/Math1Node.js <ide> THREE.Math1Node.EXP = 'exp'; <ide> THREE.Math1Node.EXP2 = 'exp2'; <ide> THREE.Math1Node.LOG = 'log'; <ide> THREE.Math1Node.LOG2 = 'log2'; <del>THREE.Math1Node.INVERSE_SQRT = 'inversesqrt'; <add>THREE.Math1Node.SQRT = 'sqrt'; <add>THREE.Math1Node.INV_SQRT = 'inversesq...
1
Ruby
Ruby
use runtime_dependencies from tab
42a39b16bff43ab6aae516dfd578501f1478e8eb
<ide><path>Library/Homebrew/formula.rb <ide> def recursive_requirements(&block) <ide> <ide> # Returns a list of Dependency objects that are required at runtime. <ide> # @private <del> def runtime_dependencies <add> def runtime_dependencies(read_from_tab: true) <add> if read_from_tab && <add> installed_p...
3
Javascript
Javascript
remove redundant html5#play()
405b29b8f194c4d5d29534eaf7ebd872486451cb
<ide><path>src/js/tech/html5.js <ide> class Html5 extends Tech { <ide> }); <ide> } <ide> <del> /** <del> * Called by {@link Player#play} to play using the `Html5` `Tech`. <del> */ <del> play() { <del> const playPromise = this.el_.play(); <del> <del> // Catch/silence error when a pause interrupts a pl...
2
Javascript
Javascript
add missing tests for tokeyvalue() function
732bcd8a368d50995c796373e37be5a4d3b2bc8c
<ide><path>test/AngularSpec.js <ide> describe('parseKeyValue', function() { <ide> toEqual({flag1: true, key: 'value', flag2: true}); <ide> }); <ide> }); <add> <add>describe('toKeyValue', function() { <add> it('should parse key-value pairs into string', function() { <add> expect(toKeyValue({})).toEqual(''); ...
1
Javascript
Javascript
fix code style
d0ca03dc5c3060182693ca2c53b0c1a1005a4ff3
<ide><path>examples/jsm/renderers/nodes/accessors/CameraNode.js <ide> class CameraNode extends Node { <ide> <ide> if ( scope === CameraNode.PROJECTION || scope === CameraNode.VIEW ) { <ide> <del> if ( !inputNode || !inputNode.isMatrix4Node ) { <add> if ( !inputNode || !inputNode.isMatrix4Node !== true ) { <i...
1
Python
Python
add test for 0d conditions in np.piecewise
303941c929ee2938dc55ad633c9fc063610941b9
<ide><path>numpy/lib/tests/test_function_base.py <ide> def test_0d_comparison(self): <ide> y = piecewise(x, [x <= 3, (x > 3) * (x <= 5), x > 5], [1, 2, 3]) <ide> assert_array_equal(y, 2) <ide> <add> def test_0d_0d_condition(self): <add> x = np.array(3) <add> c = np.array(x > 3) <add> ...
1
Javascript
Javascript
fix inconsistent aspect ratio
fa6be2f772793525a9b2d68a58e5a6c9d31f426c
<ide><path>src/controllers/controller.doughnut.js <ide> module.exports = function(Chart) { <ide> // Boolean - Whether we animate scaling the Doughnut from the centre <ide> animateScale: false <ide> }, <del> aspectRatio: 1, <ide> hover: { <ide> mode: 'single' <ide> }, <ide><path>src/controllers/controlle...
4
Javascript
Javascript
use dasherizedmodulename for test description
461988481aa50eda4ede938308e42a061584afff
<ide><path>blueprints/component-test/index.js <ide> 'use strict'; <ide> <ide> const path = require('path'); <del>const testInfo = require('ember-cli-test-info'); <ide> const stringUtil = require('ember-cli-string-utils'); <ide> const isPackageMissing = require('ember-cli-is-package-missing'); <ide> const getPathOption...
9
Javascript
Javascript
check jquery before extending it
68676afbbe8ab0f9169b06c5edf033c553c0e501
<ide><path>packages/ember-views/lib/system/jquery_ext.js <ide> @module ember <ide> @submodule ember-views <ide> */ <add>if (Ember.$) { <add> // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dndevents <add> var dragEvents = Ember.String.w('dragstart drag dragenter dragleave dragover drop dragend...
1
PHP
PHP
fix response downloads
03c16cc6adba7065d50caa2308bc03512ad9a889
<ide><path>src/Illuminate/Support/Facades/Response.php <ide> <?php namespace Illuminate\Support\Facades; <ide> <ide> use Illuminate\Support\Contracts\ArrayableInterface; <add>use Symfony\Component\HttpFoundation\BinaryFileResponse; <ide> <ide> class Response { <ide> <ide> public static function stream($callback, $st...
1
Ruby
Ruby
remove redundant `utils`
e0acaeef816ae73566b2067608a6530b61a8037a
<ide><path>Library/Homebrew/cask/lib/hbc/cli/cleanup.rb <ide> def cache_completes <ide> end <ide> <ide> def disk_cleanup_size <del> Utils.size_in_bytes(cache_files) <add> cache_files.map(&:disk_usage).inject(:+) <ide> end <ide> <ide> def remove_cache_files(*tokens) <ide><path>Lib...
4
Javascript
Javascript
omit unneeded process.nexttick
3369e34645f9591d05e111c641b510bc2ac0873a
<ide><path>lib/Compilation.js <ide> class Compilation { <ide> return; <ide> } <ide> <del> process.nextTick(() => { <del> // This is nested so we need to allow one additional task <del> this.processDependenciesQueue.increaseParallelism(); <del> <del> asyncLib.forEach( <del> sortedDependencies, <del> (...
1
Text
Text
add new example
4f223e68d0a4d3956253850e3b17bc4d6bca89ff
<ide><path>guide/english/java/streams/index.md <ide> List<String> result2 = Arrays.asList("de", "abc", "f", "abc") <ide> // result: abc de <ide> ``` <ide> <add>```java <add>// Examples of extracting properties from a list of objects <add>// Let's say we have a List<Person> personList <add>// Each Person object has a p...
1
Go
Go
make the checksum async within commit
8ff1765674c93a169fe29483503709a008f30618
<ide><path>graph.go <ide> import ( <ide> "path" <ide> "path/filepath" <ide> "strings" <add> "sync" <ide> "time" <ide> ) <ide> <ide> // A Graph is a store for versioned filesystem images and the relationship between them. <ide> type Graph struct { <del> Root string <del> idIndex *TruncIndex <del> httpClien...
2
Javascript
Javascript
add some typings to `internal/modules/esm/resolve`
45f98fc60d12ca97ebeb35974ad966547990eda4
<ide><path>lib/internal/modules/esm/resolve.js <ide> const userConditions = getOptionValue('--conditions'); <ide> const DEFAULT_CONDITIONS = ObjectFreeze(['node', 'import', ...userConditions]); <ide> const DEFAULT_CONDITIONS_SET = new SafeSet(DEFAULT_CONDITIONS); <ide> <add>/** <add> * @typedef {string | string[] | Re...
1
Ruby
Ruby
make the 3rd arg optional for #failsafe_response
e320f28945290b527a5634ea473b5a8543d5ab0a
<ide><path>railties/lib/dispatcher.rb <ide> def prepare_breakpoint <ide> end <ide> <ide> # If the block raises, send status code as a last-ditch response. <del> def failsafe_response(output, status, exception) <add> def failsafe_response(output, status, exception = nil) <ide> yield <ide> ...
1
Javascript
Javascript
fix controller name in example
840e889e5353156e6187f808bcf92ffe876235a0
<ide><path>src/ng/filter/orderBy.js <ide> * @example <ide> <example module="orderByExample"> <ide> <file name="index.html"> <del> <div ng-controller="Ctrl"> <add> <div ng-controller="ExampleController"> <ide> <table class="friend"> <ide> <tr> <ide> <th><a href="" ng-click=...
1
Javascript
Javascript
set ambientlight.castshadow to `false`
e9297a470c147b463e4e80a87e1471c1bd2ecad8
<ide><path>src/lights/AmbientLight.js <ide> function AmbientLight( color, intensity ) { <ide> <ide> this.type = 'AmbientLight'; <ide> <del> this.castShadow = undefined; <add> this.castShadow = false; <ide> <ide> } <ide>
1
Java
Java
refine antpathmatcher optimizations
c4117885bd61835159da14fb7fc9e3e28e1ddd31
<ide><path>spring-core/src/main/java/org/springframework/util/AntPathMatcher.java <ide> public class AntPathMatcher implements PathMatcher { <ide> <ide> private static final Pattern VARIABLE_PATTERN = Pattern.compile("\\{[^/]+?\\}"); <ide> <add> private static final char[] WILDCARD_CHARS = { '*', '?', '{' }; <add> <...
2
Python
Python
fix e722 flake8 warnings (x26)
631be27078fe394fdd8f98b9475ca87026f8044d
<ide><path>examples/contrib/run_swag.py <ide> <ide> try: <ide> from torch.utils.tensorboard import SummaryWriter <del>except: <add>except ImportError: <ide> from tensorboardX import SummaryWriter <ide> <ide> <ide><path>examples/distillation/distiller.py <ide> <ide> try: <ide> from torch.utils.tensorboar...
20
Python
Python
fix init for pymorphy2_lookup lemmatizer mode
fe06e037bcd733708401bce082863994b1fc48bd
<ide><path>spacy/lang/ru/lemmatizer.py <ide> def __init__( <ide> overwrite: bool = False, <ide> scorer: Optional[Callable] = lemmatizer_score, <ide> ) -> None: <del> if mode == "pymorphy2": <add> if mode in {"pymorphy2", "pymorphy2_lookup"}: <ide> try: <ide> ...
5
Java
Java
fix javadoc for mediatype
91ae711a541808ff28791da2e0f9bc8b06fd7ae7
<ide><path>spring-web/src/main/java/org/springframework/http/MediaType.java <ide> public MediaType(MediaType other, Charset charset) { <ide> <ide> /** <ide> * Copy-constructor that copies the type and subtype of the given {@code MediaType}, <del> * and allows for different parameter. <add> * and allows for differ...
1
PHP
PHP
fix docblock to be consistent with implementation
76c64672bf5de65cf1514cbe051d0207f9469c87
<ide><path>src/Illuminate/Contracts/Foundation/Application.php <ide> public function boot(); <ide> /** <ide> * Register a new boot listener. <ide> * <del> * @param mixed $callback <add> * @param callable $callback <ide> * @return void <ide> */ <ide> public function booting($callb...
1
Text
Text
add npm clean command
c77924664540b1cd89dd075d76b477af9190f31b
<ide><path>docs/how-to-setup-freecodecamp-locally.md <ide> There might be an error in the console of your browser or in Bash / Terminal / C <ide> If the app launches but you are encountering errors with the UI itself, for example if fonts are not being loaded or if the code editor is not displaying properly, you may tr...
1
Javascript
Javascript
reorganize the top level around a fiberroot
7d028fd8cc047f4ae3739f9d380bf59640ea8129
<ide><path>src/renderers/shared/fiber/ReactFiber.js <ide> exports.cloneFiber = function(fiber : Fiber, priorityLevel : PriorityLevel) : Fi <ide> // Stop using the alternates of parents once we have a parent stack. <ide> // $FlowFixMe: This downcast is not safe. It is intentionally an error. <ide> alt.parent...
4
Java
Java
provide configurationclass#tostring implementation
faba5941f74ab6967cc712b7c4ce25c026c7fb88
<ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClass.java <ide> public int hashCode() { <ide> return getMetadata().getClassName().hashCode(); <ide> } <ide> <add> @Override <add> public String toString() { <add> return String.format("[ConfigurationClass:bean...
1
Text
Text
restore h1 headings for pages with front matter
2427e063402d3196c7ffd3515013ab5419458cd8
<ide><path>docs/Brew-Test-Bot.md <ide> --- <del>title: Brew Test Bot <ide> logo: https://brew.sh/assets/img/brewtestbot.png <ide> image: https://brew.sh/assets/img/brewtestbot.png <ide> --- <add> <add># Brew Test Bot <add> <ide> `brew test-bot` is the name for the automated review and testing system funded <ide> by [ou...
2
Javascript
Javascript
avoid boolean coercion when checking for object
55031ce070aa38edbc4ba6eda166d316a9fd4860
<ide><path>packages/ember-metal/lib/merge.js <ide> @public <ide> */ <ide> export default function merge(original, updates) { <del> if (!updates || typeof updates !== 'object') { <add> if (updates === null || typeof updates !== 'object') { <ide> return original; <ide> } <ide> <ide><path>packages/ember-metal/l...
2
Ruby
Ruby
prevent repeated lookups of nil-valued keys
c2fd7856d207dca4ec498ea611eec2cdeb40a617
<ide><path>Library/Homebrew/macos.rb <ide> def locate tool <ide> # Don't call tools (cc, make, strip, etc.) directly! <ide> # Give the name of the binary you look for as a string to this method <ide> # in order to get the full path back as a Pathname. <del> @locate ||= {} <del> @locate[tool.to_s] ||= ...
1
Python
Python
add extra utility function into ec2 driver
ffab16d53312bc9eb7eacbf713b49af6230e94e7
<ide><path>libcloud/compute/drivers/ec2.py <ide> def _to_reserved_node(self, element): <ide> extra_attributes_map = { <ide> 'instance_type': { <ide> 'xpath': 'instanceType', <del> 'type': str <add> 'cast_func': str <ide> }, <ide> ...
1
Text
Text
remove trailing whitespaces
f906ca52eacf93bc98b97b0d9b7af1a606029661
<ide><path>project/ISSUE-TRIAGE.md <ide> Triaging of issues <ide> ------------------ <ide> <del>Triage provides an important way to contribute to an open source project. Triage helps ensure issues resolve quickly by: <add>Triage provides an important way to contribute to an open source project. Triage helps ensure...
1
Ruby
Ruby
reduce texttemplate cost for simple cases
c5e73b897616049c613b0331dd53e88dbc9c1532
<ide><path>actionpack/lib/action_dispatch/http/mime_type.rb <ide> def #{method}(*args) <ide> LOOKUP = Hash.new { |h, k| h[k] = Type.new(k) unless k.blank? } <ide> <ide> def self.[](type) <add> return type if type.is_a?(Type) <ide> Type.lookup_by_extension(type.to_s) <ide> end <ide> <ide><path>a...
2
Java
Java
fix handling of line height with inline images
c4ffc7d71c1c34599d3dd303e0b5bb674fa691f5
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java <ide> protected static Spannable fromTextCSSNode(ReactTextShadowNode textCSSNode) { <ide> } <ide> <ide> textCSSNode.mContainsImages = false; <add> textCSSNode.mHeightOfTallestInlineImage = Float.NaN; <ide> <ide> ...
7
Ruby
Ruby
remove double test for header inheritance leaks
a93cbbd40c22821336953647e43ae5a8771b7886
<ide><path>activeresource/test/cases/base_test.rb <ide> def test_header_inheritance_should_not_leak_upstream <ide> assert_equal nil, fruit.headers['key2'] <ide> end <ide> <del> def test_header_inheritance_should_not_leak_upstream <del> fruit = Class.new(ActiveResource::Base) <del> apple = Class.new(fruit)...
1
Go
Go
skip flaky testlogblocking
6c75c862403c98138ab0f7811f6ba9113f9e5d61
<ide><path>daemon/logger/awslogs/cloudwatchlogs_test.go <ide> import ( <ide> "github.com/docker/docker/dockerversion" <ide> "gotest.tools/assert" <ide> is "gotest.tools/assert/cmp" <add> "gotest.tools/skip" <ide> ) <ide> <ide> const ( <ide> func TestLogClosed(t *testing.T) { <ide> } <ide> <ide> func TestLogBlockin...
1
Python
Python
apply reviewers comments. thanks to @eric-wieser!
0930786a79ba01492c7db266cd8a501ffad4451a
<ide><path>numpy/f2py/cfuncs.py <ide> cppmacros['STRINGFREE'] = """\ <ide> #define STRINGFREE(str) do {if (!(str == NULL)) free(str);} while (0) <ide> """ <del>needs['STRINGPADN'] = ['string.h'] <del>cppmacros['STRINGPADN'] = """\ <del>/* <del>STRINGPADN replaces nulls with padding from the right. <del> <del>`to` must ...
1
Javascript
Javascript
allow alpha tags
bc7d5ac99dcb36679c90b60731458063fb8c82f3
<ide><path>scripts/release/publish-commands/parse-params.js <ide> module.exports = () => { <ide> case 'latest': <ide> case 'next': <ide> case 'experimental': <add> case 'alpha': <ide> case 'untagged': <ide> break; <ide> default:
1
Ruby
Ruby
add document in mailer
40b1f648b949f4ad944024619e546765e3729776
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> module ActionMailer <ide> # end <ide> # end <ide> # <add> # You can also send attachments with html template, in this case you need to add body, attachments, <add> # and custom content type like this: <add> # <add> # class NotifierMailer < ...
1
Ruby
Ruby
fix false positive in `audit_gcc_dependency`
2af5a974c215712eb96ed6d46b2c4c8ced315371
<ide><path>Library/Homebrew/formula_auditor.rb <ide> def linux_only_gcc_dep?(formula) <ide> bottle_tag = Utils::Bottles::Tag.new(system: macos_version, arch: arch) <ide> next unless bottle_tag.valid_combination? <ide> <del> variation = variations[bottle_tag.to_sym] <del> # This va...
1
Javascript
Javascript
use unicode escape sequences instead of octal
c7bc4cacde163f916b62f196194ff5c1cabb61a2
<ide><path>lib/util.js <ide> function stylizeWithColor(str, styleType) { <ide> var style = styles[styleType]; <ide> <ide> if (style) { <del> return '\033[' + colors[style][0] + 'm' + str + <del> '\033[' + colors[style][1] + 'm'; <add> return '\u001b[' + colors[style][0] + 'm' + str + <add> ...
1
Javascript
Javascript
fix fs benchmark test
7991b57cfdba96ddcd6553c8233cd6392e16a42a
<ide><path>test/benchmark/test-benchmark-fs.js <ide> const tmpdir = require('../common/tmpdir'); <ide> tmpdir.refresh(); <ide> <ide> runBenchmark('fs', [ <del> 'n=1', <del> 'size=1', <add> 'concurrent=1', <add> 'dir=.github', <ide> 'dur=0.1', <add> 'encodingType=buf', <add> 'filesize=1024', <ide> 'len=1024',...
1