content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Javascript
Javascript
replace string replace with string templates
35ee7c8246d819f5963ec2ea9a6f3a9697c5507c
<ide><path>packages/react-native-codegen/src/generators/modules/GenerateModuleJniH.js <ide> type FilesOutput = Map<string, string>; <ide> <ide> const {getModules} = require('./Utils'); <ide> <del>const moduleSpecTemplate = `/** <del> * JNI C++ class for module '::_HASTE_MODULE_NAME_::' <add>const ModuleClassDeclarati...
1
Text
Text
remove redundant chown commands
5f29dee138a2478f89480710af3905546fa98368
<ide><path>share/doc/homebrew/El_Capitan_and_Homebrew.md <ide> This is how to fix Homebrew on El Capitan if you see permission issues: <ide> ## If `/usr/local` exists already: <ide> <ide> ```bash <del>sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local <add>sudo chown -R $(whoami):admin /...
1
Javascript
Javascript
improve buffer.readint(b|l)e benchmarks
94d64877ff2b9d5fcfb40d24358337a95c333f66
<ide><path>benchmark/buffers/buffer-read-with-byteLength.js <add>'use strict'; <add>const common = require('../common.js'); <add> <add>const types = [ <add> 'IntLE', <add> 'IntBE', <add>]; <add> <add>const bench = common.createBenchmark(main, { <add> noAssert: ['false', 'true'], <add> buffer: ['fast', 'slow'], <add...
3
Javascript
Javascript
add glsl annotation
a48a395a0327b35bca6cd5013cca22f2f7d33f5b
<ide><path>examples/jsm/shaders/MMDToonShader.js <ide> <ide> import { UniformsUtils, ShaderLib } from 'three'; <ide> <del>const lights_mmd_toon_pars_fragment = ` <add>const lights_mmd_toon_pars_fragment = /* glsl */` <ide> varying vec3 vViewPosition; <ide> <ide> struct BlinnPhongMaterial { <ide> void RE_IndirectDiff...
1
Javascript
Javascript
reuse tls sessions in agent
2ca5a3db47b930912161074c7b514c769113433b
<ide><path>lib/_http_agent.js <ide> Agent.prototype.createSocket = function(req, options) { <ide> } <ide> <ide> var name = self.getName(options); <add> options._agentKey = name; <ide> <ide> debug('createConnection', name, options); <ide> options.encoding = null; <ide><path>lib/_tls_wrap.js <ide> TLSSocket.pr...
4
PHP
PHP
use reflection api instead of array diffs
29e1667b994e32debe9ed1053f81ca7905cf04ff
<ide><path>src/Shell/Task/TestTask.php <ide> use Cake\ORM\Table; <ide> use Cake\ORM\TableRegistry; <ide> use Cake\Utility\Inflector; <add>use ReflectionClass; <ide> <ide> /** <ide> * Task class for creating and updating test files. <ide> public function mapType($type) { <ide> * @return array Array of method names. <...
2
Python
Python
allow custom code for processors
45f56580a7e11b5b894374f8e1c7bdd54d982682
<ide><path>src/transformers/dynamic_module_utils.py <ide> def custom_object_save(obj, folder, config=None): <ide> "this code in a separate module so we can include it in the saved folder and make it easier to share via " <ide> "the Hub." <ide> ) <del> # Add object class to the config ...
9
Javascript
Javascript
fix abort on bad address input
f40caf728247ce78a1fe0a0673c4893fe299fafc
<ide><path>lib/net.js <ide> const WriteWrap = process.binding('stream_wrap').WriteWrap; <ide> const async_id_symbol = process.binding('async_wrap').async_id_symbol; <ide> const { newUid, setInitTriggerId } = require('async_hooks'); <ide> const nextTick = require('internal/process/next_tick').nextTick; <add>const errors...
2
PHP
PHP
improve testability of batched jobs
a155ccdafa229cbd0fac0033a98a24119064f87a
<ide><path>src/Illuminate/Support/Testing/Fakes/BatchRepositoryFake.php <ide> <ide> class BatchRepositoryFake implements BatchRepository <ide> { <add> /** <add> * The batches stored in the repository. <add> * <add> * @var \Illuminate\Bus\Batch[] <add> */ <add> protected $batches = []; <add> <ide>...
3
Text
Text
remove secret from 'publicruntimeconfig' example
4594b7cb07baefd16c87626aa198bfef171d62e8
<ide><path>packages/next/README.md <ide> The `next/config` module gives your app access to runtime configuration stored i <ide> // next.config.js <ide> module.exports = { <ide> serverRuntimeConfig: { // Will only be available on the server side <del> mySecret: 'secret' <add> mySecret: 'secret', <add> secondS...
1
Javascript
Javascript
add brand checks for detached properties/methods
966060df0e4aa7d79bfdd9fe2163b12298cf59b7
<ide><path>lib/internal/worker/io.js <ide> const { inspect } = require('internal/util/inspect'); <ide> const { <ide> codes: { <ide> ERR_INVALID_ARG_TYPE, <add> ERR_INVALID_THIS, <ide> ERR_MISSING_ARGS, <ide> } <ide> } = require('internal/errors'); <ide> const kStartedReading = Symbol('kStartedReading'); ...
2
Python
Python
show warning if '/' is used in a dag run id
451c7cbc42a83a180c4362693508ed33dd1d1dab
<ide><path>airflow/models/dag.py <ide> def create_dagrun( <ide> "Creating DagRun needs either `run_id` or both `run_type` and `execution_date`" <ide> ) <ide> <add> if run_id and "/" in run_id: <add> warnings.warn( <add> "Using forward slash ('/') in a DAG ru...
2
Text
Text
update the description of the deprecated module
1d752731011d35e985271334ff98186728949f03
<ide><path>README.md <ide> Some example modules that can be excluded are: <ide> - **ajax/script**: The `<script>` AJAX transport only; used to retrieve scripts. <ide> - **ajax/jsonp**: The JSONP AJAX transport only; depends on the ajax/script transport. <ide> - **css**: The `.css()` method plus non-animated `.show()`, ...
1
PHP
PHP
remove auth_mode from config/mail.php
0d939c9ebfcf1cac8ef1a26a7a2dce50a31e74ba
<ide><path>config/mail.php <ide> 'username' => env('MAIL_USERNAME'), <ide> 'password' => env('MAIL_PASSWORD'), <ide> 'timeout' => null, <del> 'auth_mode' => null, <ide> ], <ide> <ide> 'ses' => [
1
PHP
PHP
fix failing test
9f9cc3778994f3895aa38fd9f8c13b454cbab685
<ide><path>tests/TestCase/Controller/Component/AuthComponentTest.php <ide> public function testAfterIdentifyForStatelessAuthentication(): void <ide> $this->Auth->setConfig('storage', 'Memory'); <ide> <ide> EventManager::instance()->on('Auth.afterIdentify', function (EventInterface $event) { <del> ...
1
Text
Text
fix example in child_process.md
0794c101efe223a3d4b79a2848327946fb1b8c60
<ide><path>doc/api/child_process.md <ide> grep.on('close', (code) => { <ide> ``` <ide> <ide> <del>Example of checking for failed exec: <add>Example of checking for failed `spawn`: <ide> <ide> ```js <ide> const { spawn } = require('child_process');
1
Ruby
Ruby
add synchronization to connection pool also
cab76ce6ac2983f59451e2d53b23746a2873aea0
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb <ide> def initialize(spec) <ide> <ide> # The ConnectionSpecification for this pool <ide> @spec = spec <add> <add> # The mutex used to synchronize pool access <add> @connection_mutex = Monitor.new <id...
3
PHP
PHP
correct doc block
c7ec4ab7efd55786c5625f624bbb38f195fc44cf
<ide><path>Cake/Cache/CacheEngine.php <ide> abstract class CacheEngine { <ide> * Initialize the cache engine <ide> * <ide> * Called automatically by the cache frontend. Merge the runtime config with the defaults <del> * for the specific cache engine, and the general defaults before use <add> * before use. <ide> * <...
1
Python
Python
use yaml safe load
dfd9805a23b2d366f5c332f4cb4131462c5ba82e
<ide><path>airflow/providers/google/cloud/operators/cloud_build.py <ide> def prepare_template(self) -> None: <ide> return <ide> with open(self.build_raw) as file: <ide> if any(self.build_raw.endswith(ext) for ext in ['.yaml', '.yml']): <del> self.build = yaml.load(file.rea...
1
Ruby
Ruby
add regression tests for preloader query count
5e59f5f07582dd88b85928e8d886c5762fc8cdbc
<ide><path>activerecord/test/cases/associations_test.rb <ide> def test_legacy_preload_with_scope <ide> assert_predicate post.comments, :loaded? <ide> assert_equal [comments(:greetings)], post.comments <ide> end <add> <add> def test_preload_makes_correct_number_of_queries_on_array <add> post = posts(:welco...
1
Text
Text
add release notes
ee8504bc5ace8d3352166f1f2dce91b56fd9ad91
<ide><path>docs/sources/release-notes.md <ide> understanding, release <ide> <ide> #Release Notes <ide> <add>##Version 1.3.3 <add>(2014-12-11) <add> <add>This release fixes several security issues. In order to encourage immediate <add>upgrading, this release also patches some critical bugs. All users are highly <add>...
1
Ruby
Ruby
add compatibility layer for `module homebrew`
acaee035dfddd1fd90b883f19cb2c9f52852c2f3
<ide><path>Library/Homebrew/compat.rb <ide> require "compat/tap" <ide> require "compat/formula" <ide> require "compat/formula_specialties" <add>require "compat/global" <ide> require "compat/hardware" <ide> require "compat/macos" <ide> require "compat/md5" <ide><path>Library/Homebrew/compat/global.rb <add>module Homebre...
2
PHP
PHP
replace slash to double back slash
b890d6cdd0f45f642c6695b2ec10e34b360a6850
<ide><path>src/Illuminate/Console/GeneratorCommand.php <ide> protected function parseName($name) <ide> return $name; <ide> } <ide> <add> if (str_contains($name, '/')) <add> { <add> $name = str_replace('/', '\\', $name); <add> } <add> <ide> return $this->parseName($this->getDefaultNamespace(trim($rootNamesp...
1
Javascript
Javascript
add ios linking location example to docs
ec68c97d72030cab6e3aef991dee8413d5a95c00
<ide><path>Libraries/Linking/Linking.js <ide> class Linking extends NativeEventEmitter { <ide> /** <ide> * Try to open the given `url` with any of the installed apps. <ide> * <del> * You can use other URLs, like a location (e.g. "geo:37.484847,-122.148386"), a contact, <add> * You can use other URLs, like a...
1
Javascript
Javascript
hide lens flare if not visible
d24518dca32645d2bea0e8460181b00332d6c6bd
<ide><path>src/extras/renderers/plugins/LensFlarePlugin.js <ide> THREE.LensFlarePlugin = function () { <ide> <ide> flare = flares[ i ]; <ide> <add> if (!flare.visible) <add> continue; <add> <ide> tempPosition.set( flare.matrixWorld.elements[12], flare.matrixWorld.elements[13], flare.matrixWorld.elements...
1
Javascript
Javascript
fix regression on duplex end
5a3f43b255af6968606f13258447894f946ee3ce
<ide><path>lib/internal/streams/writable.js <ide> function writeOrBuffer(stream, state, chunk, encoding, callback) { <ide> <ide> state.length += len; <ide> <add> // stream._write resets state.length <add> const ret = state.length < state.highWaterMark; <add> // We must ensure that previous needDrain will not be ...
2
Ruby
Ruby
update documentation for dependency.expand
c5f73a01bec87f6c4d3c6b29676b82cc922187af
<ide><path>Library/Homebrew/dependency.rb <ide> def universal! <ide> tags << 'universal' if to_formula.build.has_option? 'universal' <ide> end <ide> <del> # Expand the dependencies of f recursively, optionally yielding <del> # [f, dep] to allow callers to apply arbitrary filters to the list. <del> # The defau...
1
Text
Text
use common malformed instead of misformatted
a52050877c91509f654dd6b2519c0132b7792578
<ide><path>doc/api/cli.md <ide> When set, the well known "root" CAs (like VeriSign) will be extended with the <ide> extra certificates in `file`. The file should consist of one or more trusted <ide> certificates in PEM format. A message will be emitted (once) with <ide> [`process.emitWarning()`][emit_warning] if the fi...
1
Ruby
Ruby
add test for test calls audit cop
5f981a8722487dd9ee127a59f4f0471fa35c3c4c
<ide><path>Library/Homebrew/test/rubocops/class_cop_spec.rb <ide> class Foo < Formula <ide> end <ide> end <ide> <add>describe RuboCop::Cop::FormulaAudit::TestCalls do <add> subject(:cop) { described_class.new } <add> <add> it "reports an offense when /usr/local/bin is found in test calls" do <add> expect_offens...
1
Javascript
Javascript
use random ports where possible
2bc7841d0fcdd066fe477873229125b6f003b693
<ide><path>test/parallel/test-async-wrap-check-providers.js <ide> net.createServer(function(c) { <ide> net.createServer(function(c) { <ide> c.end(); <ide> this.close(checkTLS); <del>}).listen(common.PORT, function() { <del> net.connect(common.PORT, noop); <add>}).listen(0, function() { <add> net.connect(this.addr...
300
Ruby
Ruby
add note on possible future deprecation
3a68b915ebad687f0044d9bc1d81e0fa9ad40745
<ide><path>Library/Homebrew/extend/ENV/std.rb <ide> require "hardware" <ide> require "extend/ENV/shared" <ide> <add># TODO: deprecate compiling related codes after it's only used by brew test. <ide> # @private <ide> module Stdenv <ide> include SharedEnvExtension
1
Ruby
Ruby
fix method visibility
b88a181b7f296d89237bdb727ecc15cbfdf13b65
<ide><path>actionpack/lib/action_dispatch/middleware/flash.rb <ide> def notice=(message) <ide> end <ide> <ide> protected <add> def now_is_loaded? <add> @now <add> end <ide> <del> def now_is_loaded? <del> @now <del> end <del> <del> # Used internally by the <tt...
1
Text
Text
add similarweb to the who uses airflow section
f1ca7a384f3af12df9e7fa30c11a553667889d69
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> * Lyft <ide> * [Sense360](https://github.com/Sense360) [[@kamilmroczek](https://github.com/KamilMroczek)] <ide> * [Sidecar](https://hello.getsidecar.com/) [[@getsidecar](https://github.com/getsidecar)] <add>* [SimilarWeb](https://www.similarweb.co...
1
Text
Text
add changelog for [skip ci]
aa3d2d03b34bead79902802ceb88b0756aab9810
<ide><path>activerecord/CHANGELOG.md <ide> <ide> *Sean Griffin* <ide> <add>* The schema cache is now cleared after the 'migrate' task is run <add> <add> Closes #24273 <add> <add> *Chris Arcand* <add> <ide> * MySQL: strict mode respects other SQL modes rather than overwriting them. <ide> Setting `str...
1
Javascript
Javascript
add browser tests to test task
8b21db0007e18f38da6ad7e0e4c8f8b05183de9e
<ide><path>Gruntfile.js <ide> module.exports = function (grunt) { <ide> <ide> // Default task. <ide> grunt.registerTask('default', ['jshint', 'nodeunit']); <del> grunt.registerTask('test', ['nodeunit']); <add> grunt.registerTask('test', ['test:node', 'test:browser']); <add> <add> //test tasks <add> ...
1
Javascript
Javascript
extract module/errors into a shared file
7b345bca558bd714478821dd945fbf2d05b5994c
<ide><path>packages/react-native-codegen/src/parsers/errors.js <ide> <ide> 'use strict'; <ide> <add>const invariant = require('invariant'); <add> <add>type ParserType = 'Flow' | 'TypeScript'; <add> <ide> class ParserError extends Error { <ide> nodes: $ReadOnlyArray<$FlowFixMe>; <ide> constructor( <del> hasteMo...
7
Ruby
Ruby
add missing require to routes inspector
f99453071bc1673a51da06b88b78140a37bce084
<ide><path>actionpack/lib/action_dispatch/routing/inspector.rb <ide> require 'delegate' <add>require 'active_support/core_ext/string/strip' <ide> <ide> module ActionDispatch <ide> module Routing
1
Javascript
Javascript
remove old code
a65762cab6edf33d87a129e406f633dfa445bb23
<ide><path>src/node.js <ide> var tty = NativeModule.require('tty'); <ide> stream = new tty.WriteStream(fd); <ide> stream._type = 'tty'; <del> <del> // Hack to have stream not keep the event loop alive. <del> // See https://github.com/joyent/node/issues/1726 <del> if (stream....
1
Ruby
Ruby
add plugins and builtins to the load_path
25b5161e16dc67a8c3d4cce2937a81f19fd37ca6
<ide><path>railties/lib/initializer.rb <ide> def default_load_paths <ide> lib <ide> vendor <ide> ).map { |dir| "#{root_path}/#{dir}" }.select { |dir| File.directory?(dir) } <add> <add> paths.concat Dir["#{root_path}/vendor/plugins/*/lib/"] <add> paths.concat builtin_d...
1
Text
Text
add docs [ci skip]
40f13c3f0ceb004560e94d99b4ccc835b9f52360
<ide><path>website/docs/api/cli.md <ide> copied into the package and imported in the `__init__.py`. If the path to a <ide> [`meta.json`](/api/data-formats#meta) is supplied, or a `meta.json` is found in <ide> the input directory, this file is used. Otherwise, the data can be entered <ide> directly from the command line...
1
Go
Go
use logs instead of attach for builder
6f09d064bd438ab4425d6105f40887f02bb9e97e
<ide><path>builder/internals.go <ide> import ( <ide> "github.com/docker/docker/pkg/archive" <ide> "github.com/docker/docker/pkg/log" <ide> "github.com/docker/docker/pkg/parsers" <del> "github.com/docker/docker/pkg/promise" <ide> "github.com/docker/docker/pkg/symlink" <ide> "github.com/docker/docker/pkg/system" <id...
2
Python
Python
remove node_path from environment for tests
22d7dc221211678dd1d5ce30d298791df7dfd956
<ide><path>tools/test.py <ide> def Execute(args, context, timeout=None, env={}, faketty=False): <ide> fd_in = 0 <ide> pty_out = None <ide> <del> # Extend environment <ide> env_copy = os.environ.copy() <add> <add> # Remove NODE_PATH <add> if "NODE_PATH" in env_copy: <add> del env_copy["NODE_PATH"] <add>...
1
Python
Python
correct an issue if section did not exist
551bdbfe851297095d7fc7a52f88e36cef5a457a
<ide><path>glances/config.py <ide> from io import open <ide> import re <ide> <del>from glances.compat import ConfigParser, NoOptionError, system_exec <add>from glances.compat import ConfigParser, NoOptionError, NoSectionError, system_exec <ide> from glances.globals import BSD, LINUX, MACOS, SUNOS, WINDOWS <ide> from g...
2
Java
Java
introduce messaging package
69ef364ef9b874db3c88f7a3f84f6ab5182d22c7
<add><path>spring-websocket/src/main/java/org/springframework/web/messaging/stomp/StompCommand.java <del><path>spring-websocket/src/main/java/org/springframework/web/stomp/StompCommand.java <ide> * limitations under the License. <ide> */ <ide> <del>package org.springframework.web.stomp; <add>package org.springframew...
12
Text
Text
add integration test guidelines
2d5ea98b2c2223e97627aa0d03e68c3f84e3b662
<ide><path>TESTING.md <ide> Bugs fixes should include a unit test case which exercises the bug. <ide> A bug fix may also include new assertions in an existing integration tests for the <ide> API endpoint. <ide> <add>### Integration tests environment considerations <add> <add>When adding new tests or modifying existing...
1
Text
Text
add instructions for core vuln files
eb33cb412202de09c1bba67b6a65f80f4b422168
<ide><path>doc/guides/security-release-process.md <ide> information described. <ide> * [ ] PR machine-readable JSON descriptions of the vulnerabilities to the <ide> [core](https://github.com/nodejs/security-wg/tree/HEAD/vuln/core) <ide> vulnerability DB. ***LINK TO PR*** <add> * For each vulnerability add a `#.jso...
1
Python
Python
fix bad names in animation tracks on geometries
412044d236d99b97ba23f83cc541fad31bd7e706
<ide><path>utils/exporters/blender/addons/io_three/exporter/api/mesh.py <ide> def animated_blend_shapes(mesh, name, options): <ide> :param options: <ide> <ide> """ <add> <add> # let filter the name to only keep the node's name <add> # the two cases are '%sGeometry' and '%sGeometry.%d', and we want %s <ad...
1
Python
Python
add cache_dir for tokenizer verification loading
6c4d688ffa8095f6dbaa959a51b53a91073f2aeb
<ide><path>src/transformers/tokenization_utils_base.py <ide> def from_pretrained(cls, pretrained_model_name_or_path: Union[str, os.PathLike], <ide> init_configuration, <ide> *init_inputs, <ide> use_auth_token=use_auth_token, <add> cache_dir=cache_dir, <ide> **k...
1
Javascript
Javascript
throw exception for sync version. don't use const
b6f05fb8c6c4dc4ce6a00fba34a57bc77b8b02ed
<ide><path>extensions/firefox/components/PdfStreamConverter.js <ide> const Cr = Components.results; <ide> const Cu = Components.utils; <ide> const PDFJS_EVENT_ID = 'pdf.js.message'; <ide> const PDF_CONTENT_TYPE = 'application/pdf'; <del>const NS_ERROR_NOT_IMPLEMENTED = 0x80004001; <ide> const EXT_PREFIX = 'extensions.u...
1
Ruby
Ruby
remove bazillion warnings from ap suite
da583df50c32d50261b682664fe43fd5e2f58f87
<ide><path>actionpack/lib/action_dispatch/testing/integration.rb <ide> def url_options <ide> end <ide> <ide> def respond_to?(method, include_private = false) <del> @integration_session.respond_to?(method, include_private) || super <add> integration_session.respond_to?(method, include_private)...
1
Ruby
Ruby
allow post in pypi version
6735debcd43dea6248c1e95c0842cc8252a5ac58
<ide><path>Library/Homebrew/livecheck/strategy/pypi.rb <ide> def self.find_versions(url, regex = nil) <ide> <ide> # Example regex: `%r{href=.*?/packages.*?/example[._-]v?(\d+(?:\.\d+)*).t}i`. <ide> regex ||= <del> %r{href=.*?/packages.*?/#{Regexp.escape(package_name)}[._-]v?(\d+(?:\.\d+)...
1
Python
Python
add tests for the polynomial classes true division
24a0fd428b80d8db50a9bd5f1c151d3a99bcdcb2
<ide><path>numpy/polynomial/tests/test_classes.py <ide> """ <ide> from __future__ import division, absolute_import, print_function <ide> <add>import operator as op <add>from numbers import Number <add> <ide> import numpy as np <ide> from numpy.polynomial import ( <ide> Polynomial, Legendre, Chebyshev, Laguerre, <i...
1
Text
Text
fix wrong date in changelog for 1.8.3
47bf11ee94664367a26ed8c91b9b586d3dd420f5
<ide><path>CHANGELOG.md <ide> and [read the end of life announcement](https://goo.gle/angularjs-end-of-life).* <ide> **Visit [angular.io](https://angular.io) for the actively supported Angular.** <ide> <ide> <a name="1.8.3"></a> <del># 1.8.3 ultimate-farewell (2020-10-21) <add># 1.8.3 ultimate-farewell (2022-04-07) <i...
1
Python
Python
scheduler bugfix and docs tweaks
94adbe30ea45edd4fff5f936e4f0ec8e5b6e8c4d
<ide><path>airflow/hooks/dbapi_hook.py <ide> def __init__(self, *args, **kwargs): <ide> setattr(self, self.conn_name_attr, kwargs[self.conn_name_attr]) <ide> <ide> def get_conn(self): <del> """Returns a connection object""" <add> """Returns a connection object <add> """ <ide> ...
3
PHP
PHP
change default value for queue.failed.database
77c5c1726f4a8d9fff8c21dec838c2091c4c6afc
<ide><path>config/queue.php <ide> */ <ide> <ide> 'failed' => [ <del> 'database' => 'mysql', 'table' => 'failed_jobs', <add> 'database' => env('DB_CONNECTION', 'mysql'), <add> 'table' => 'failed_jobs', <ide> ], <ide> <ide> ];
1
Javascript
Javascript
fix some jsdoc errors
1c18a74ea08f02160d1e4ce823a5cde1e2e49a2f
<ide><path>src/core/core.controller.js <ide> class Chart { <ide> /** <ide> * Handle an event <ide> * @private <del> * @param {IEvent} event the event to handle <add> * @param {IEvent} e the event to handle <ide> * @return {boolean} true if the chart needs to re-render <ide> */ <ide> handleEvent(e) { <ide><p...
12
Go
Go
move stack dump dir to exec root
0bd720b28dc7b416fe2193bdafaca011ec24d032
<ide><path>daemon/daemon.go <ide> func NewDaemon(config *Config, registryService registry.Service, containerdRemot <ide> <ide> // set up SIGUSR1 handler on Unix-like systems, or a Win32 global event <ide> // on Windows to dump Go routine stacks <del> d.setupDumpStackTrap(config.Root) <add> stackDumpDir := config.Roo...
2
Ruby
Ruby
replace perl shebangs
ae49b0660052e88e53ebffc6e33dd48052d7cc2f
<ide><path>Library/Homebrew/extend/os/linux/keg_relocate.rb <ide> def relocate_dynamic_linkage(relocation) <ide> # Patching patchelf using itself fails with "Text file busy" or SIGBUS. <ide> return if name == "patchelf" <ide> <add> old_prefix, new_prefix = relocation.replacement_pair_for(:prefix) <add> <ide...
3
Mixed
Javascript
remove duplicate error definition
e9358af5818d87ebedf5bf1eab1ec7972041bfea
<ide><path>doc/api/errors.md <ide> Used when an attempt is made to launch a Node.js process with an unknown <ide> by errors in user code, although it is not impossible. Occurrences of this error <ide> are most likely an indication of a bug within Node.js itself. <ide> <del><a id="ERR_VALUE_OUT_OF_RANGE"></a> <del>### ...
2
Ruby
Ruby
remove table quoting in primary_key method
1d7c751bf703c729887e2d8a9ae104a8e6aef010
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb <ide> def pk_and_sequence_for(table) #:nodoc: <ide> <ide> # Returns just a table's primary key <ide> def primary_key(table) <del> row = exec_query(<<-end_sql, 'SCHEMA', [[nil, quote_table_name(table)]]).rows.first <a...
3
Text
Text
fix token api docs from
a2345618f111552e141e128e1d48dd1d0a672a6b
<ide><path>website/docs/api/token.md <ide> property to `0` for the first word of the document. <ide> - assert doc[4].sent_start == 1 <ide> + assert doc[4].is_sent_start == True <ide> ``` <add></Infobox> <ide> <ide> ## Token.is_sent_end {#is_sent_end tag="property" new="2"} <ide>
1
Text
Text
update nested serialization docs
7815811fe3047b5110e6993ecd72349f6f232232
<ide><path>docs/api-guide/relations.md <ide> Nested relationships can be expressed by using serializers as fields. <ide> <ide> If the field is used to represent a to-many relationship, you should add the `many=True` flag to the serializer field. <ide> <del>Note that nested relationships are currently read-only. For ...
2
Javascript
Javascript
remove bad stats merge
225994b607b753b08dc9845db5a9779f419dcd48
<ide><path>lib/Stats.js <ide> class Stats { <ide> errors: false, <ide> errorDetails: false, <ide> warnings: false, <del> publicPath: false <add> publicPath: false, <add> performance: false <ide> }; <ide> } else { <ide> return { <ide> class Stats { <ide> depth: pn === "verbose", <ide> ...
1
Javascript
Javascript
remove jquery metadata
9124a9a5510a66826b18f0f618a5df9038e65a6f
<ide><path>actionview/test/ujs/public/vendor/jquery.metadata.js <del>/* <del> * Metadata - jQuery plugin for parsing metadata from elements <del> * <del> * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan <del> * <del> * Dual licensed under the MIT and GPL licenses: <del> * http://www.opens...
1
Java
Java
implement sessionfactoryimplementor in sf proxies
5aa24af1269bf0ac9691afc63da6f6051543ad6a
<ide><path>org.springframework.integration-tests/src/test/java/org/springframework/orm/hibernate3/HibernateSessionFactoryConfigurationTests.java <ide> import org.hibernate.Transaction; <ide> import org.hibernate.cfg.AnnotationConfiguration; <ide> import org.hibernate.classic.Session; <add>import org.hibernate.engine.Se...
2
Ruby
Ruby
stream blobs from disk
847342c25c61acaea988430dc3ab66a82e3ed486
<ide><path>activestorage/app/controllers/active_storage/disk_controller.rb <ide> # Always go through the BlobsController, or your own authenticated controller, rather than directly <ide> # to the service url. <ide> class ActiveStorage::DiskController < ActiveStorage::BaseController <add> include ActionController::Live...
1
Javascript
Javascript
avoid shader duplication
78a25d5a88d4034ea8d39f7c158fcc54695f9110
<ide><path>examples/jsm/csm/CSM.js <ide> export default class CSM { <ide> this.breaks = []; <ide> <ide> this.lights = []; <del> this.shaders = []; <del> this.materials = []; <add> this.shaders = new Map(); <ide> this.createLights(); <ide> <ide> this.getBreaks(); <ide> export default class CSM { <ide> con...
1
Javascript
Javascript
fix undefined timeout regression
bde32f8a4d24cf5201b3178c275b1cda9d77003c
<ide><path>lib/timers.js <ide> var lists = {}; <ide> // with them. <ide> exports.active = function(item) { <ide> const msecs = item._idleTimeout; <del> if (msecs < 0) return; <add> if (msecs < 0 || msecs === undefined) return; <ide> <ide> item._idleStart = Timer.now(); <ide> <ide><path>test/parallel/test-timers...
2
Ruby
Ruby
convert buildenvironment test to spec
f581ad7f0b73e0a8d38868d2d4fa85bb7fb0c486
<ide><path>Library/Homebrew/test/build_environment_spec.rb <add>require "build_environment" <add> <add>RSpec::Matchers.alias_matcher :use_userpaths, :be_userpaths <add> <add>describe BuildEnvironment do <add> let(:env) { described_class.new } <add> <add> describe "#<<" do <add> it "returns itself" do <add> ex...
2
Ruby
Ruby
simplify time.find_timezone! logic
f6893cd2426521d0edcaeed1df4861d9ea8a44c7
<ide><path>activesupport/lib/active_support/core_ext/time/zones.rb <ide> def use_zone(time_zone) <ide> # Time.find_zone! false # => false <ide> # Time.find_zone! "NOT-A-TIMEZONE" # => ArgumentError: Invalid Timezone: NOT-A-TIMEZONE <ide> def find_zone!(time_zone) <del> if !time_zone ...
4
PHP
PHP
make draw() and increment() also chainable
8c55c8820e7d6b22052238ad7bee8188510a91ba
<ide><path>src/Shell/Helper/ProgressHelper.php <ide> public function init(array $args = []) <ide> * Increment the progress bar. <ide> * <ide> * @param int $num The amount of progress to advance by. <del> * @return void <add> * @return $this <ide> */ <ide> public function increment($num =...
2
Text
Text
add coterminal angles article
1f3fb19b0536ab6b56c8e468b15f2df05c1bb5a4
<ide><path>guide/english/mathematics/coterminal-angles/index.md <ide> title: Coterminal Angles <ide> --- <ide> ## Coterminal Angles <ide> <del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/mathematics/coterminal-angles/index.md' target='_blank' rel='nofollow'>Help our community ...
1
Ruby
Ruby
fix railties tests for 7.0
05023462642761c5c85b395f17b5a4c9be640bf2
<ide><path>railties/lib/rails/generators/rails/app/app_generator.rb <ide> def delete_api_initializers <ide> <ide> def delete_new_framework_defaults <ide> unless options[:update] <del> remove_file "config/initializers/new_framework_defaults_6_2.rb" <add> remove_file "config/initializers/...
3
Javascript
Javascript
add depth of field post-process with bokeh shader
7eac0a724b4cacc040e4ec2de8441c56eeb90992
<ide><path>examples/js/postprocessing/BokehPass.js <add>/** <add> * Depth-of-field post-process with bokeh shader <add> */ <add> <add> <add>THREE.BokehPass = function ( scene, camera, params ) { <add> <add> this.scene = scene; <add> this.camera = camera; <add> <add> var focus = ( params.focus !== undefined ) ? params.f...
1
Javascript
Javascript
use capture phase for mouseup handler
3926dac789733856cfb7f8533ffb00e4ab663272
<ide><path>src/text-editor-component.js <ide> class TextEditorComponent { <ide> } <ide> <ide> window.addEventListener('mousemove', didMouseMove) <del> window.addEventListener('mouseup', didMouseUp) <add> window.addEventListener('mouseup', didMouseUp, {capture: true}) <ide> } <ide> <ide> autoscrollOn...
1
Ruby
Ruby
add comment to env.libxml2
522ed0050f55a8aa45a7fb35d2ebda96b07a9a95
<ide><path>Library/Homebrew/extend/ENV.rb <ide> def no_optimization <ide> self['CFLAGS'] = self['CXXFLAGS'] = SAFE_CFLAGS_FLAGS <ide> end <ide> <add> # Some configure scripts won't find libxml2 without help <ide> def libxml2 <del> append_to_cflags ' -I/usr/include/libxml2' <add> append_to_cflags '-I/usr...
1
Javascript
Javascript
fix tests for non-crypto builds
15cd45c6fc637c437cf63e6b04882be18f09c130
<ide><path>test/parallel/test-async-wrap-check-providers.js <ide> 'use strict'; <ide> <ide> const common = require('../common'); <add>if (!common.hasCrypto) { <add> common.skip('missing crypto'); <add> return; <add>} <add> <ide> const assert = require('assert'); <ide> const crypto = require('crypto'); <ide> const dg...
22
Java
Java
revert d2759498 to unbreak ama release build
b6ef42299e22079c74a79a03e7e5165bb54246f4
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerImpl.java <ide> import com.facebook.react.common.annotations.VisibleForTesting; <ide> import com.facebook.react.devsupport.DevServerHelper; <ide> import com.facebook.react.devsupport.DevSupportManager; <del>import com.facebook.react.devsupport...
5
PHP
PHP
fix bug in events
a303d66ae0de84c94d9b09a00b8f9e881f5d6342
<ide><path>laravel/event.php <ide> public static function flush($queue) <ide> // We will simply spin through each payload registered for the event and <ide> // fire the flusher, passing each payloads as we go. This allows all <ide> // the events on the queue to be processed by the flusher easily. <add> if ( ...
1
Javascript
Javascript
replace class with a factory function
0623cf4dffd49d3bae987764beef2047c6822b58
<ide><path>src/Store.js <del>import invariant from 'invariant'; <del>import isPlainObject from './utils/isPlainObject'; <del> <del>// Don't ever try to handle these action types in your code. They are private. <del>// For any unknown actions, you must return the current state. <del>// If the current state is undefined,...
4
PHP
PHP
fix some of the ordering issues in postgres
ecd6ca64922f55345d3817ce3e10ec40009cd9ae
<ide><path>tests/Fixture/TagFixture.php <ide> class TagFixture extends TestFixture { <ide> * @var array <ide> */ <ide> public $fields = array( <del> 'id' => ['type' => 'integer'], <add> 'id' => ['type' => 'integer', 'null' => false], <ide> 'name' => ['type' => 'string', 'null' => false], <ide> '_constraints' =...
3
Python
Python
ignore more np.distutils.log imports
2df41fd07ac43d97c2dfb3c038947d53b82cd4eb
<ide><path>numpy/tests/test_public_api.py <ide> def test_all_modules_are_expected(): <ide> SKIP_LIST_2 = [ <ide> 'numpy.math', <ide> 'numpy.distutils.log.sys', <add> 'numpy.distutils.log.logging', <add> 'numpy.distutils.log.warnings', <ide> 'numpy.doc.constants.re', <ide> 'numpy.doc.constants.text...
1
Javascript
Javascript
create synthetic events lazily
480626a9e920d5e04194c793a828318102ea4ff4
<ide><path>packages/react-dom/src/events/DOMPluginEventSystem.js <ide> function createDispatchListener( <ide> }; <ide> } <ide> <del>function createDispatchEntry( <del> event: ReactSyntheticEvent, <del> listeners: Array<DispatchListener>, <del>): DispatchEntry { <del> return { <del> event, <del> listeners, <...
5
Javascript
Javascript
fix art after native -> host rename
769ab715c23f6f1e2e8a917029ea7892f8b36ae9
<ide><path>gulpfile.js <ide> var paths = { <ide> '!src/**/__benchmarks__/**/*.js', <ide> '!src/**/__tests__/**/*.js', <ide> '!src/**/__mocks__/**/*.js', <add> '!src/renderers/art/**/*.js', <ide> '!src/shared/vendor/**/*.js', <ide> ], <ide> lib: 'build/modules', <ide><path>src/render...
5
Ruby
Ruby
create active symlinks for installed formula
f02d81ecbf636aea7bcb842ef6350afe947a4839
<ide><path>Library/Homebrew/build.rb <ide> def install f <ide> f.recursive_deps.uniq.each do |dep| <ide> dep = Formula.factory dep <ide> if dep.keg_only? <del> ENV.prepend 'LDFLAGS', "-L#{dep.lib}" <del> ENV.prepend 'CPPFLAGS', "-I#{dep.include}" <del> ENV.prepend 'PATH', "#{dep.bin}", ':' <add...
6
Javascript
Javascript
add unit tests for `ember-glimmer/utils/iterable`
30cf11aba1f8cbc0827ec42b600e14fb1b5b49b9
<ide><path>packages/ember-glimmer/tests/unit/utils/iterable-test.js <add>import Ember from 'ember'; <add>import { moduleFor, TestCase } from 'ember-glimmer/tests/utils/test-case'; <add>import iterableFor from 'ember-glimmer/utils/iterable'; <add>import { UpdatableReference } from 'ember-glimmer/utils/references'; <add>...
1
Javascript
Javascript
update varriable names
ae85dbe2e0bbf7835486b56550a3a20e5a36c6bd
<ide><path>src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js <ide> export default /* glsl */` <ide> #if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) <ide> <del> if ( skipLogDepth == 1.0 ) { <del> <del> gl_FragDepthEXT = gl_FragCoord.z; <del> <del> } else { <del> <del> gl_FragDepthEXT = l...
4
PHP
PHP
fix doc block sentence
67927833606e68e964c196edd39abe374bb48e8c
<ide><path>src/Filesystem/File.php <ide> public function copy($dest, $overwrite = true) <ide> } <ide> <ide> /** <del> * Get the mime type of the file. Uses the finfo extension if <del> * its available, otherwise falls back to mime_content_type <add> * Gets the mime type of the file. Uses the finfo ...
1
Javascript
Javascript
remove chai from a body
83ef4ebee13be4900aa94318df91f147b531c387
<ide><path>client/gatsby-ssr.js <ide> export const onRenderBody = ({ setHeadComponents, setPostBodyComponents }) => { <ide> /> <ide> ) : null, <ide> /* eslint-enable max-len */ <del> <script <del> async={true} <del> key='chai-CDN' <del> src='https://cdnjs.cloudflare.com/aja...
1
Javascript
Javascript
check asset existence to detect gltf version
6bf789c618fa7fc67b34419496135ff2d14718e4
<ide><path>examples/js/loaders/GLTF2Loader.js <ide> THREE.GLTF2Loader = ( function () { <ide> <ide> var json = JSON.parse( content ); <ide> <del> if ( json.asset.version[0] < 2 ) { <add> if ( json.asset === undefined || json.asset.version[ 0 ] < 2 ) { <ide> <ide> onError( new Error( 'THREE.GLTF2Loader: Le...
1
Text
Text
improve wording in documentation change
de51b0e70728396c5adffde39ebb55c10cc61204
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> The best way to be sure that your application still works after upgrading is to <ide> <ide> ### The Upgrade Process <ide> <del>When changing Rails versions, it's best to move slowly, one minor version at a time, in order to make good use of the deprecation war...
1
Text
Text
fix typo in readme
3c33499f8739fb953733c76a2fced1ee943f8b90
<ide><path>README.md <ide> The repository further comprises: <ide> - [`run_lm_finetuning.py`](./examples/run_lm_finetuning.py) - Show how to fine-tune an instance of `BertForPretraining' on a target text corpus. <ide> <ide> - One example on how to use **OpenAI GPT** (in the [`examples` folder](./examples)): <del> ...
1
Javascript
Javascript
test no-op rerender
25cc24018b02c9fd826ea52a84acc3a3b5910a4c
<ide><path>packages/ember-glimmer/tests/integration/helpers/concat-test.js <ide> moduleFor('Helpers test: {{concat}}', class extends RenderingTest { <ide> <ide> this.assertText('onetwo'); <ide> <add> this.inZone(() => this.rerender()); <add> <add> this.assertText('onetwo'); <add> <ide> this.inZone(() =>...
1
Ruby
Ruby
show fs leak result
ebd0f345619b6fd76751275b43a97d5ac5e11b76
<ide><path>Library/Homebrew/cmd/tests.rb <ide> def tests <ide> system("bundle", "install", "--path", "vendor/bundle") <ide> system "bundle", "exec", "rake", "test" <ide> Homebrew.failed = !$?.success? <add> if (fs_leak_log = HOMEBREW_LIBRARY/"Homebrew/test/fs_leak_log").file? <add> fs_le...
1
PHP
PHP
add missing import
1e597bede5d5e78ccf598b6ab18bdeeb72fc8ffb
<ide><path>src/TestSuite/TestCase.php <ide> use Cake\Utility\Inflector; <ide> use PHPUnit\Framework\TestCase as BaseTestCase; <ide> use ReflectionClass; <add>use ReflectionException; <ide> use RuntimeException; <ide> <ide> /**
1
Ruby
Ruby
define ruby_path for tests
9013b3a0c9c35411ae8c788ab5e104735a99fde2
<ide><path>Library/Homebrew/global.rb <ide> def mkpath <ide> <ide> HOMEBREW_LOGS = Pathname.new('~/Library/Logs/Homebrew/').expand_path <ide> <del>RUBY_CONFIG = RbConfig::CONFIG <del>RUBY_BIN = Pathname.new("#{RUBY_CONFIG['bindir']}") <del>RUBY_PATH = RUBY_BIN/RUBY_CONFIG['ruby_install_name'] + RUBY_CONFIG['EXEEXT'] ...
2
Python
Python
add full_output to f2py.compile
9fa7fee0ad8d23bd36ef51b0ec02cf2811f1eec6
<ide><path>numpy/f2py/__init__.py <ide> def compile(source, <ide> extra_args='', <ide> verbose=True, <ide> source_fn=None, <del> extension='.f' <add> extension='.f', <add> full_output=False <ide> ): <ide> """ <ide> Build extension m...
1
Javascript
Javascript
fix historylocation test for static site testing
cdb81fab3e9697404666c98fdaf087f616d8113f
<ide><path>packages/ember/tests/routing/basic_test.js <ide> test("Router accounts for rootURL on page load when using history location", fun <ide> <ide> test("HistoryLocation has the correct rootURL on initState and webkit doesn't fire popstate on page load", function() { <ide> expect(2); <del> var rootURL = window...
1
PHP
PHP
remove message from assertsame
11967881bd88a543702277129af1719f0750f1cd
<ide><path>tests/TestCase/Routing/Route/RedirectRouteTest.php <ide> public function testSetStatus() <ide> { <ide> $route = new RedirectRoute('/home', ['controller' => 'posts']); <ide> $result = $route->setStatus(302); <del> $this->assertSame($result, $route, 'Should return this'); <add> ...
1
Ruby
Ruby
fix rubocop warnings
00f5aa81f2b2e5c29d6afdeb7a4025a4620e7df7
<ide><path>Library/Homebrew/os/mac/version.rb <ide> class Version < ::Version <ide> :lion => "10.7", <ide> :snow_leopard => "10.6", <ide> :leopard => "10.5", <del> :tiger => "10.4" <del> } <add> :tiger => "10.4", <add> }.freeze <ide> <ide>...
1