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 | add conversion script for t5x to flax | cb7e166428a28194407a9e7808ae6815fe59817e | <ide><path>src/transformers/models/t5/convert_t5x_checkpoint_to_flax.py
<add># coding=utf-8
<add># Copyright 2022 The HuggingFace Inc. team.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the License.
<add># You may obtain a copy ... | 1 |
PHP | PHP | add test for chaining | 2f7d77ae856a9a854518ef96ac17e081305d5007 | <ide><path>tests/TestCase/View/ViewVarsTraitTest.php
<ide> public function testSetTwoParam() {
<ide> $this->assertEquals(['testing' => 'value'], $this->subject->viewVars);
<ide> }
<ide>
<add>/**
<add> * test chainable set()
<add> *
<add> * @return void
<add> */
<add> public function testSetChained() {
<add> $this-... | 1 |
Python | Python | fix small bugs in `run_classifier_pytorch.py` | 1d8511f8f2c926c72146e87029d5b0acb48bd06e | <ide><path>run_classifier_pytorch.py
<ide> def main():
<ide> train_dataloader = DataLoader(train_data, sampler=train_sampler, batch_size=args.train_batch_size)
<ide>
<ide> model.train()
<del> for epoch in range(args.num_train_epochs):
<add> for epoch in range(int(args.num_train_epochs)):
... | 1 |
Python | Python | allow prefix for any generative model | 995a958dd18d4326e608efc3bfc4005acfef8e56 | <ide><path>examples/text-generation/run_generation.py
<ide> # Padding text to help Transformer-XL and XLNet with short prompts as proposed by Aman Rusia
<ide> # in https://github.com/rusiaaman/XLNet-gen#methodology
<ide> # and https://medium.com/@amanrusia/xlnet-speaks-comparison-to-gpt-2-ea1a4e9ba39e
<del>PADDING_TEXT... | 3 |
Text | Text | use bullets. as they render better | 0fa5aa6a198cc9623f9e3ca137010be8e43c9e75 | <ide><path>README.md
<ide> tests for CakePHP by doing the following:
<ide>
<ide> ## Some Handy Links
<ide>
<del>[CakePHP](http://www.cakephp.org) - The rapid development PHP framework.
<del>
<del>[CookBook](http://book.cakephp.org) - The CakePHP user documentation; start learning here!
<del>
<del>[API](http://api.cak... | 1 |
PHP | PHP | fix associate on morphto | 933eb1fef3d630c8d9355c72f5ffa8782cb4610c | <ide><path>src/Illuminate/Database/Eloquent/Relations/MorphTo.php
<ide> public function getDictionary()
<ide> return $this->dictionary;
<ide> }
<ide>
<add> /**
<add> * Associate the model instance to the given parent.
<add> *
<add> * @param \Illuminate\Database\Eloquent\Model $model
<add> * @return \Illuminat... | 2 |
PHP | PHP | fix failing test | 7e60cb490a2ed449c2a763f7e4403ebfc90c3ce5 | <ide><path>tests/TestCase/Network/Email/EmailTest.php
<ide> public function testSendRenderWithImage() {
<ide> $server .= ':' . env('SERVER_PORT');
<ide> }
<ide>
<del> $expected = '<img src="http://' . $server . '/img/image.gif" alt="cool image" width="100" height="100" />';
<add> $expected = '<img src="http://'... | 1 |
Ruby | Ruby | fix typo in keg#fixed_name invocation | fb929f429f06131635b73c58a28175ec01d1306b | <ide><path>Library/Homebrew/keg_fix_install_names.rb
<ide> def fix_install_names options={}
<ide> install_name_tool("-id", id, file) if file.dylib?
<ide>
<ide> bad_names.each do |bad_name|
<del> new_name = fixed_name(file, bad_name, options)
<add> new_name = fixed_name(file, b... | 1 |
Java | Java | fix flowable.tolist() onnext/cancel race | 6c8b0efade6e2b82b32daa18fec7b045aabb3f6c | <ide><path>src/main/java/io/reactivex/internal/operators/flowable/FlowableToList.java
<ide> public void onSubscribe(Subscription s) {
<ide>
<ide> @Override
<ide> public void onNext(T t) {
<del> value.add(t);
<add> U v = value;
<add> if (v != null) {
<add> ... | 2 |
Python | Python | add stub 'yield' to basetrigger.run | c32ffb0006593a0756d1c65b7f19fac475566cec | <ide><path>airflow/triggers/base.py
<ide> async def run(self) -> AsyncIterator["TriggerEvent"]:
<ide> and then rely on cleanup() being called when they are no longer needed.
<ide> """
<ide> raise NotImplementedError("Triggers must implement run()")
<add> yield # To convince Mypy this is ... | 1 |
Ruby | Ruby | fix formatting of `pick` [ci skip] | b91a4a082659771d29350008d6ff2cfef0cc4b3d | <ide><path>activerecord/lib/active_record/relation/calculations.rb
<ide> def pluck(*column_names)
<ide> end
<ide>
<ide> # Pick the value(s) from the named column(s) in the current relation.
<del> # This is short-hand for `relation.limit(1).pluck(*column_names).first`, and is primarily useful
<add> # This... | 1 |
Javascript | Javascript | move flex gap props to correct type | ff984ac9b55c9c1af50d5785863f5f36f92b62d2 | <ide><path>Libraries/StyleSheet/StyleSheetTypes.js
<ide> type ____LayoutStyle_Internal = $ReadOnly<{
<ide> * @platform ios
<ide> */
<ide> direction?: 'inherit' | 'ltr' | 'rtl',
<add>
<add> /**
<add> * In React Native, gap works the same way it does in CSS.
<add> * If there are two or more children in a co... | 1 |
Javascript | Javascript | remove unused export from domchildrenoperations | cfec10bd51a517cad24778d5eea1d6b598e717bc | <ide><path>src/renderers/dom/client/utils/DOMChildrenOperations.js
<ide> var DOMChildrenOperations = {
<ide>
<ide> dangerouslyReplaceNodeWithMarkup: Danger.dangerouslyReplaceNodeWithMarkup,
<ide>
<del> updateTextContent: setTextContent,
<del>
<ide> replaceDelimitedText: replaceDelimitedText,
<ide>
<ide> /**
<... | 2 |
Text | Text | fix spelling in react-devtools changelog.md | 69aafbf4dfaab408cd862b10dcea29e6ef0b7bd9 | <ide><path>packages/react-devtools/CHANGELOG.md
<ide> ## 4.0.3 (August 17, 2019)
<ide> #### Bug fixes
<ide> * ES6 `Map` and `Set`, typed arrays, and other unnserializable types (e.g. Immutable JS) can now be inspected.
<del>* Empty objects and arrays now display an "(empty)" label to the right to be reduce confusion.
<... | 1 |
Ruby | Ruby | add api_only option to generators | 101df203eb8e96a398792a3e3308e93c2fd96a47 | <ide><path>railties/lib/rails/configuration.rb
<ide> def merge_into(other) #:nodoc:
<ide> end
<ide>
<ide> class Generators #:nodoc:
<del> attr_accessor :aliases, :options, :templates, :fallbacks, :colorize_logging
<add> attr_accessor :aliases, :options, :templates, :fallbacks, :colorize_logging, :api... | 1 |
Python | Python | add benchmark for permutation | 4cb22829bcdd12da97455253a6aca6fd1053982d | <ide><path>benchmarks/benchmarks/bench_random.py
<ide> def time_randint_slow(self, name):
<ide> high = self.high[name]
<ide> np.random.randint(0, high + 1, size=10**5, dtype=name)
<ide>
<add>
<add>class Permutation(Benchmark):
<add> def setup(self):
<add> self.n = 10000
<add> self.a_1d... | 1 |
Javascript | Javascript | remove obsolete uglifyjs workaround | d41fc68d9b89d39f8c71ae9f810b72798ff3e9ac | <ide><path>build/tasks/dist.js
<ide> module.exports = function( grunt ) {
<ide> nonascii = true;
<ide> }
<ide>
<del> // Modify map/min so that it points to files in the same folder;
<del> // see https://github.com/mishoo/UglifyJS2/issues/47
<del> if ( /\.map$/.test( filename ) ) {
<del> text = text.rep... | 1 |
Text | Text | add code of conduct section to contributing.md | 0f0c2a131be6e574aa1f872ed727b7e5670e740a | <ide><path>CONTRIBUTING.md
<ide> CakePHP loves to welcome your contributions. There are several ways to help out:
<ide> There are a few guidelines that we need contributors to follow so that we have a
<ide> chance of keeping on top of things.
<ide>
<add>## Code of Conduct
<add>
<add>Help us keep CakePHP open and inclu... | 1 |
Text | Text | remove version header from railties changelog.md | e882ce00ab38a5b6c652ac515bde76b86eef4dd7 | <ide><path>railties/CHANGELOG.md
<del>## Rails 5.1.0.alpha ##
<del>
<ide> * Added a shared section to `config/secrets.yml` that will be loaded for all environments.
<ide>
<ide> *DHH* | 1 |
Python | Python | remove dead code from review | 867eb78d25a0640c43b67bc7d3d0fe068ba85680 | <ide><path>numpy/random/tests/test_extending.py
<ide> @pytest.mark.slow
<ide> def test_cython(tmp_path):
<ide> examples = os.path.join(os.path.dirname(__file__), '..', '_examples')
<del> base = os.path.dirname(examples)
<ide> shutil.copytree(examples, tmp_path / '_examples')
<ide> subprocess.check_call([... | 1 |
Ruby | Ruby | fix vulnerability on open redirects | 708bb9d3142f906cf435465898955cb97fc8a37d | <ide><path>actionpack/lib/action_controller/metal/redirecting.rb
<ide> def _enforce_open_redirect_protection(location, allow_other_host:)
<ide> end
<ide>
<ide> def _url_host_allowed?(url)
<del> [request.host, nil].include?(URI(url.to_s).host)
<add> host = URI(url.to_s).host
<add> host ... | 2 |
Python | Python | force new instance creation in multirnncell | 320be60bd22a4518b1300c5fa6d572b49f20bafc | <ide><path>neural_gpu/neural_gpu.py
<ide> def dec_step(step, it, it_int, decided, output_ta, tgts,
<ide> # This is just for running a baseline RNN seq2seq model.
<ide> if do_rnn:
<ide> self.after_enc_step.append(step) # Not meaningful here, but needed.
<del> lstm_cell = tf.contrib.rn... | 1 |
Javascript | Javascript | remove unnecessary call to decodeuricomponent | 528f56a690295650f54eeb2238609446635c5db0 | <ide><path>src/ngRoute/route.js
<ide> function $RouteProvider(){
<ide> for (var i = 1, len = m.length; i < len; ++i) {
<ide> var key = keys[i - 1];
<ide>
<del> var val = 'string' == typeof m[i]
<del> ? decodeURIComponent(m[i])
<del> : m[i];
<add> var val = m[i];
<id... | 2 |
Ruby | Ruby | fix output of new casks | 2ed4196d73f407833e09ae3565506a80ef6ec485 | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def dump_formula_report(key, title)
<ide> when :A
<ide> name unless installed?(name)
<ide> when :AC
<del> name unless cask_installed?(name)
<add> name.split("/").last unless cask_installed?(name)
<ide> when :MC, :DC
<ide> ... | 1 |
Javascript | Javascript | expose the asyncrequiremodulepath param | 06ec0f0fd1b85c07dd76f9cd37a1c36264196b08 | <ide><path>local-cli/bundle/buildBundle.js
<ide> async function buildBundle(
<ide> const terminal = new Terminal(process.stdout);
<ide>
<ide> const server = new Server({
<add> asyncRequireModulePath: config.getAsyncRequireModulePath(),
<ide> assetExts: defaultAssetExts.concat(assetExts),
<ide> assetRegi... | 2 |
Ruby | Ruby | remove unused assigned variable | 7e9d45cc7f76497873720bf4797ddfba126c8cd8 | <ide><path>activemodel/lib/active_model/observing.rb
<ide> def count_observers
<ide> def instantiate_observer(observer) #:nodoc:
<ide> # string/symbol
<ide> if observer.respond_to?(:to_sym)
<del> observer = observer.to_s.camelize.constantize.instance
<add> observer.to_s... | 1 |
Javascript | Javascript | adjust formatting of clamplength | 89af64638fff208c8947f37deb2181c7d77b4933 | <ide><path>src/math/Vector2.js
<ide> THREE.Vector2.prototype = {
<ide>
<ide> clampLength: function ( min, max ) {
<ide>
<del> var oldLength = this.length();
<add> var oldLength = this.length();
<ide>
<del> var newLength = ( oldLength < min ) ? min : ( ( oldLength > max ) ? max : oldLength );
<add> var newLeng... | 2 |
Python | Python | add pure synthetic data to keras resnet model. | 05383c7bb8108b2ba762d0a79df9892d4e77c595 | <ide><path>official/resnet/keras/keras_cifar_main.py
<ide> def run(flags_obj):
<ide> tf.keras.backend.set_image_data_format(data_format)
<ide>
<ide> if flags_obj.use_synthetic_data:
<add> distribution_utils.set_up_synthetic_data()
<ide> input_fn = keras_common.get_synth_input_fn(
<ide> height=cifar_... | 4 |
Ruby | Ruby | pass the string directly to the output method | 7078af82184d09e977a7aa8a186dfb643395fbfa | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def doctor
<ide> EOS
<ide> end
<ide>
<del> lines = out.to_s.split('\n')
<ide> puts
<del> opoo lines.shift
<add> opoo out
<ide> Homebrew.failed = true
<del> puts lines
<ide> first_warning = false
<ide> ... | 1 |
Javascript | Javascript | simplify event core | ba6fea1bf5eaab71c0abec7d55824419bcd4f3f4 | <ide><path>src/core/ReactEventEmitter.js
<ide> * limitations under the License.
<ide> *
<ide> * @providesModule ReactEventEmitter
<add> * @typechecks
<ide> */
<ide>
<ide> "use strict";
<ide>
<ide> var BrowserEnv = require('BrowserEnv');
<ide> var EventConstants = require('EventConstants');
<add>var EventListener ... | 15 |
Javascript | Javascript | fix beautify issue | 96df6aecdba4bd31cdb8c41c18350b7b05dba490 | <ide><path>test/NodeWatchFileSystem.unittest.js
<ide> describe("NodeWatchFileSystem", function() {
<ide> var wfs = new NodeWatchFileSystem();
<ide> var watcher = wfs.watch([fileDirect], [], [], startTime, {
<ide> aggregateTimeout: 1000
<del> }, function(err, filesModified, dirsModified, missingCreated, fileTime... | 1 |
Text | Text | fix `actionpack/changelog.md` [ci skip] | 3175d3d549821edefff4604db8fc729391957f0e | <ide><path>actionpack/CHANGELOG.md
<ide> Enable `action_dispatch.use_cookies_with_metadata` to use this feature, which
<ide> writes cookies with the new purpose and expiry metadata embedded.
<ide>
<del> Pull Request: #32937
<del>
<ide> *Assain Jaleel*
<ide>
<ide> * Raises `ActionController::RespondTo... | 1 |
Javascript | Javascript | add test for connection timeouts | 33c33949b2965512e6e058e6e1e5c800a617d071 | <ide><path>lib/net.js
<ide> Socket.prototype._shutdown = function() {
<ide>
<ide>
<ide> Socket.prototype.end = function(data, encoding) {
<del> if (this.writable) {
<add> if (this._connecting) {
<add> this.destroy();
<add> } else if (this.writable) {
<ide> if (this._writeQueueLast() !== END_OF_FILE) {
<ide>... | 2 |
Javascript | Javascript | join merged style tags | a2f37ba4cc19ba5baf4d5377acec8c3e1a415eab | <ide><path>packages/next/pages/_document.js
<ide> export class Head extends Component {
<ide> {/* https://www.ampproject.org/docs/fundamentals/optimize_amp#optimize-the-amp-runtime-loading */}
<ide> <link rel="preload" as="script" href="https://cdn.ampproject.org/v0.js" />
<ide> {/* Add custom s... | 1 |
Text | Text | fix docbin init in training example | 96726ec1f62ade72b7904b2b21b4a893f93d0ca8 | <ide><path>website/docs/usage/training.md
<ide> import spacy
<ide> from spacy.tokens import Doc, DocBin
<ide>
<ide> nlp = spacy.blank("en")
<del>docbin = DocBin(nlp.vocab)
<add>docbin = DocBin()
<ide> words = ["Apple", "is", "looking", "at", "buying", "U.K.", "startup", "."]
<ide> spaces = [True, True, True, True, Tru... | 1 |
Python | Python | use triple quotation marks for epilog | fef6f8a8608027460ed3014dbfd35a715cfe3cbb | <ide><path>glances/main.py
<ide> class GlancesMain(object):
<ide> username = "glances"
<ide> password = ""
<ide>
<del> # Exemple of use
<del> example_of_use = "\
<del>Examples of use:\n\
<del>\n\
<del>Monitor local machine (standalone mode):\n\
<del> $ glances\n\
<del>\n\
<del>Monitor local machine with... | 1 |
Text | Text | document the upgrade process | 4097ed5586ca23551d7f1fa3dbde4f5c86fa36ae | <ide><path>guides/source/upgrading_ruby_on_rails.md
<ide> Before attempting to upgrade an existing application, you should be sure you hav
<ide>
<ide> The best way to be sure that your application still works after upgrading is to have good test coverage before you start the process. If you don't have automated tests ... | 1 |
Python | Python | use list to allow indexing | 05f1eb6449222e3430057faf259232ae5b707510 | <ide><path>airflow/hooks/hive_hooks.py
<ide> def max_partition(self, schema, table_name, field=None, filter=None):
<ide> if not parts:
<ide> return None
<ide> elif len(parts[0]) == 1:
<del> field = parts[0].keys()[0]
<add> field = list(parts[0].keys())[0]
<ide> ... | 1 |
PHP | PHP | add extra space | 5c515a8adce4ab2fea0a8b105191f9ccc49cdb66 | <ide><path>src/Illuminate/Notifications/resources/views/email-plain.blade.php
<ide> <?php
<del>if( $greeting !== null ) {
<add>if ( $greeting !== null ) {
<ide> echo e($greeting);
<ide> } else {
<ide> echo $level == 'error' ? 'Whoops!' : 'Hello!'; | 1 |
Ruby | Ruby | simplify minitest inclusion | c45cca8e36401f6d95d851befef35879a5629182 | <ide><path>Library/Homebrew/dev-cmd/test.rb
<ide> def test
<ide> exec(*args)
<ide> end
<ide> end
<del> rescue Assertions::FailedAssertion => e
<add> rescue MiniTest::Assertion => e
<ide> ofail "#{f.full_name}: failed"
<ide> puts e.message
<ide> rescue Except... | 2 |
Ruby | Ruby | remove empty lines in rails development logger | 9433dde5d1ff33731e5a928166c1b9192bca92ae | <ide><path>railties/lib/rails/rack/logger.rb
<ide> def call(env)
<ide> protected
<ide>
<ide> def call_app(request, env)
<del> # Put some space between requests in development logs.
<del> if development?
<del> logger.debug ''
<del> logger.debug ''
<del> end
<del>
<ide> ... | 1 |
Text | Text | update usage docs for lemmatization and morphology | f9ed31a757f15e1ef48c9b4d8950f1fc799cb98e | <ide><path>website/docs/api/lemmatizer.md
<ide> added to your pipeline, and not a hidden part of the vocab that runs behind the
<ide> scenes. This makes it easier to customize how lemmas should be assigned in your
<ide> pipeline.
<ide>
<del>If the lemmatization mode is set to `"rule"` and requires part-of-speech tags ... | 7 |
Text | Text | use singular form for application | 7799bbcdd403dd58cc96e030115cb22fe80af7b9 | <ide><path>guides/source/upgrading_ruby_on_rails.md
<ide> end
<ide>
<ide> This can be turned off per-association with `optional: true`.
<ide>
<del>This default will be automatically configured in new applications. If existing application
<del>want to add this feature it will need to be turned on in an initializer.
<a... | 1 |
Python | Python | add type hints to the array api __setitem__ | 687e2a3b1ee167ae8dc359cf7e92b67e551dbbfe | <ide><path>numpy/_array_api/_array_object.py
<ide> def __rshift__(self: Array, other: Union[int, Array], /) -> Array:
<ide> res = self._array.__rshift__(other._array)
<ide> return self.__class__._new(res)
<ide>
<del> def __setitem__(self, key, value, /):
<add> def __setitem__(self, key: Union[int... | 1 |
Python | Python | add os-release support | af67cfcf8384204e6c8a098f34a4f4c3f0b59fc5 | <ide><path>glances/plugins/glances_system.py
<ide> def reset(self):
<ide> """Reset/init the stats."""
<ide> self.stats = {}
<ide>
<add> def _linux_os_release(self):
<add> """This function tries to determine the name of a Linux distribution.
<add>
<add> It checks for the /etc/os-release... | 1 |
Javascript | Javascript | fix eslint errors | af52c4370509b2484aebe5cf0377a9f92469d77a | <ide><path>client/main.js
<ide> main.mapShareKey = 'map-shares';
<ide>
<ide> main.ga = window.ga || function() {};
<ide>
<del>main = (function(main) {
<add>main = (function(main, global) {
<add> const { Mousetrap } = global;
<ide>
<ide> // should be set before gitter script loads
<ide> ((window.gitter = {}).cha... | 1 |
Javascript | Javascript | add tests for finddomnode on fragment and text | 8e2d7f8d2705159ca354294018bb98db1e0f4a71 | <ide><path>src/renderers/dom/fiber/__tests__/ReactDOMFiber-test.js
<ide> describe('ReactDOMFiber', () => {
<ide>
<ide> expect(container.textContent).toEqual('10');
<ide> });
<add>
<add> it('finds the DOM Text node of a string child', () => {
<add> class Text extends React.Component {
<add> ren... | 1 |
PHP | PHP | fix bug in router | 44ef0d0e766d665a29c93fc516dd2f50b4ae4500 | <ide><path>src/Illuminate/Routing/Router.php
<ide> public function withoutFilters($callback)
<ide> {
<ide> $this->disableFilters();
<ide>
<del> call_user_func($callback0);
<add> call_user_func($callback);
<ide>
<ide> $this->enableFilters();
<ide> } | 1 |
PHP | PHP | add missing "use" statement | e6087ce9ddb58afee3afa5e6421f84103e3188ec | <ide><path>src/View/Exception/MissingTemplateException.php
<ide> namespace Cake\View\Exception;
<ide>
<ide> use Cake\Core\Exception\Exception;
<add>use Throwable;
<ide>
<ide> /**
<ide> * Used when a template file cannot be found. | 1 |
PHP | PHP | initialize empty array for `$values` | 0c024f0f225942e0a80953902dce4b0e91e77c27 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function sort(callable $callback = null)
<ide> */
<ide> public function sortBy($callback, $options = SORT_REGULAR, $descending = false)
<ide> {
<add> $values = [];
<ide> $results = [];
<ide>
<ide> $callback = $this->value... | 1 |
Javascript | Javascript | remove uuid from webglrendertarget | 01cae4ee609016d45e2842595502fa28331fd5d0 | <ide><path>src/renderers/WebGLRenderTarget.js
<ide> import { EventDispatcher } from '../core/EventDispatcher.js';
<ide> import { Texture } from '../textures/Texture.js';
<ide> import { LinearFilter } from '../constants.js';
<ide> import { Vector4 } from '../math/Vector4.js';
<del>import { _Math } from '../math/Math.js'... | 1 |
Text | Text | add link to another article about react renderers | 71a60ddb16c413bd9a62f2a0c62694d57d473679 | <ide><path>packages/react-reconciler/README.md
<ide> var HostConfig = {
<ide> };
<ide> ```
<ide>
<del>**For an introduction to writing a very simple custom renderer, [check out this small guide](https://medium.com/@agent_hunt/hello-world-custom-react-renderer-9a95b7cd04bc).**
<add>**For an introduction to writing a ve... | 1 |
Ruby | Ruby | add tap --shallow deprecation todo | 29d50f57b3d1799991d3d79a6f8932acf43c7878 | <ide><path>Library/Homebrew/cmd/tap.rb
<ide> def tap
<ide>
<ide> if args.shallow?
<ide> opoo "`brew tap --shallow` is now a no-op!"
<add> # TODO: (3.2) Uncomment the following line and remove the `opoo` above
<ide> # odeprecated "`brew tap --shallow`"
<ide> end
<ide> | 1 |
Text | Text | add redux-pack to asyncactions | c790db844e6931c35ff3e96517ee939d3a9f5b01 | <ide><path>docs/advanced/AsyncActions.md
<ide> store.dispatch(fetchPostsIfNeeded('reactjs')).then(() =>
<ide> - You can use [redux-promise](https://github.com/acdlite/redux-promise) or [redux-promise-middleware](https://github.com/pburtchaell/redux-promise-middleware) to dispatch Promises instead of functions.
<ide> - ... | 1 |
Java | Java | add the missing license | 8cf79d73792b17982238a7ef3318b20291acb70e | <ide><path>rxjava-core/src/main/java/rx/operators/OperatorTimeoutBase.java
<add>/**
<add> * Copyright 2014 Netflix, Inc.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * You may obtain a copy of the License ... | 1 |
Text | Text | remove link to deleted tweet | 89104853174e62de8ebbca4881ea14a04399f4e2 | <ide><path>docs/faq/General.md
<ide> What to learn can be an overwhelming question for a JavaScript developer. It hel
<ide> - [Twitter: If you want to teach someone to use an abstraction...](https://twitter.com/acemarke/status/901329101088215044)
<ide> - [Twitter: it was never intended to be learned before...](https://... | 1 |
Javascript | Javascript | expose the projectroots option | 93c56a0e902d61b5c255fe2de2d74f6796fd59e5 | <ide><path>packager/packager.js
<ide> var options = parseCommandLine([{
<ide> command: 'root',
<ide> type: 'string',
<ide> description: 'add another root(s) to be used by the packager in this project',
<add>}, {
<add> command: 'projectRoots',
<add> type: 'string',
<add> description: 'override the root(s) to be... | 1 |
Python | Python | update known warnings for python 3.7 | 4bb1317c892c6d65557b3d998bd8d1bd971ba96b | <ide><path>dev/provider_packages/prepare_provider_packages.py
<ide> def summarise_total_vs_bad_and_warnings(total: int, bad: int, warns: List[warnin
<ide> console.print()
<ide> raise_error = True
<ide> if warns:
<add> if os.environ.get('GITHUB_ACTIONS'):
<add> # Ends group in GitHu... | 1 |
Javascript | Javascript | remove welcome link | db4bb351d4aa4e1daf01a77751b9659238915137 | <ide><path>client/src/pages/welcome.js
<ide> import { randomQuote } from '../utils/get-words';
<ide> import './welcome.css';
<ide>
<ide> const propTypes = {
<del> activedonations: PropTypes.number,
<add> activeDonations: PropTypes.number,
<ide> fetchState: PropTypes.shape({
<ide> pending: PropTypes.bool,
<ide>... | 1 |
PHP | PHP | remove interface method and add import | 910fad8cb2934f2c231f806b8b398ba95ef38dfe | <ide><path>src/Illuminate/Bus/BatchRepository.php
<ide> public function delete(string $batchId);
<ide> * @return mixed
<ide> */
<ide> public function transaction(Closure $callback);
<del>
<del> /**
<del> * Prune all of the entries older than the given date.
<del> *
<del> * @param \DateTime... | 4 |
PHP | PHP | add deprecation notice for old-fixtures | ead700e17ff12004f19b1db4479909a9a99e603b | <ide><path>src/TestSuite/Fixture/FixtureInjector.php
<ide> public function __construct(FixtureManager $manager)
<ide> public function startTestSuite(TestSuite $suite): void
<ide> {
<ide> if (empty($this->_first)) {
<add> deprecationWarning(
<add> 'You are using the listener bas... | 1 |
Python | Python | fix pt-1.9.0 `add_` deprecation | d6ea91c96ac7188be3ea1e6d80b2e169d4ac8cf9 | <ide><path>src/transformers/optimization.py
<ide>
<ide> from .trainer_utils import SchedulerType
<ide> from .utils import logging
<add>from .utils.versions import require_version
<ide>
<ide>
<ide> logger = logging.get_logger(__name__)
<ide> def __init__(
<ide> weight_decay: float = 0.0,
<ide> correct... | 1 |
Text | Text | add some info to switch in c++ | f0b29bcb281f18d99b31df7679498baed774eaf4 | <ide><path>guide/english/cplusplus/switch-statements/index.md
<ide> switch(expression) {
<ide>
<ide> The following rules apply to a switch statement −
<ide>
<del>The expression used in a switch statement must have an integral or enumerated type, or be of a class type in which the class has a single conversion functio... | 1 |
Ruby | Ruby | fix documentation typo | aa4fe9fb33d144cde2c79415367624ad0676d038 | <ide><path>actionpack/lib/action_view/helpers/asset_tag_helper.rb
<ide> module Helpers #:nodoc:
<ide> # "http://assets#{source.hash % 2 + 1}.example.com"
<ide> # }
<ide> # image_tag("rails.png")
<del> # # => <img alt="Rails" src="http://assets0.example.com/images/rails.png?1230601161" />
<add> ... | 1 |
Javascript | Javascript | use yarn for install/uninstall cli if available | 1c249e4804030b5691adf508751c369bf0036f1c | <ide><path>local-cli/install/install.js
<add>/**
<add> * Copyright (c) 2015-present, Facebook, Inc.
<add> * All rights reserved.
<add> *
<add> * This source code is licensed under the BSD-style license found in the
<add> * LICENSE file in the root directory of this source tree. An additional grant
<add> * of patent rig... | 4 |
Javascript | Javascript | shuffle v8_prof_polyfill.js for unit testing | 09d22ddab5eded7790b68059d91186117c43f3b7 | <ide><path>lib/internal/v8_prof_polyfill.js
<ide> // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
<ide> // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<ide>
<add>module.exports = { versionCheck };
<add>
<add>// Don't execute when required directly instead of being eval... | 1 |
Text | Text | add 16 and 17 to previous versions | a96549af4fc6b5093c4c58eecd59ac823f290330 | <ide><path>BUILDING.md
<ide> Supported platforms and toolchains change with each major version of Node.js.
<ide> This document is only valid for the current major version of Node.js.
<ide> Consult previous versions of this document for older versions of Node.js:
<ide>
<add>* [Node.js 17](https://github.com/nodejs/node... | 1 |
Go | Go | fix wrt selinux | d78e885326213e8ef89919c3cc6d16e712e852a8 | <ide><path>pkg/mount/mounter_linux_test.go
<ide> import (
<ide> "os"
<ide> "strings"
<ide> "testing"
<del>
<del> selinux "github.com/opencontainers/selinux/go-selinux"
<ide> )
<ide>
<ide> func TestMount(t *testing.T) {
<ide> func TestMount(t *testing.T) {
<ide> t.Fatal(err)
<ide> }
<ide> defer ensureUnmou... | 1 |
Javascript | Javascript | terminate statement in vector3 | 58b05d3ec1e862c17e3aa80d9bae7861fa73eb21 | <ide><path>src/math/Vector3.js
<ide> Vector3.prototype = {
<ide> if ( typeof m === 'number' ) {
<ide>
<ide> console.warn( 'THREE.Vector3: setFromMatrixColumn now expects ( matrix, index ).' );
<del> var temp = m
<add> var temp = m;
<ide> m = index;
<ide> index = temp;
<ide> | 1 |
Mixed | Ruby | use a bind param for `limit` and `offset` | 574f255629a45cd67babcfb9bb8e163e091a53b8 | <ide><path>activemodel/lib/active_model/type/value.rb
<ide> def ==(other)
<ide> scale == other.scale &&
<ide> limit == other.limit
<ide> end
<add> alias eql? ==
<add>
<add> def hash
<add> [self.class, precision, scale, limit].hash
<add> end
<ide>
<ide> def assert_v... | 5 |
PHP | PHP | use container contract | 84cfbb7ea0d5d5e774ef4a7029d3e5932601eb0a | <ide><path>src/Illuminate/Validation/Factory.php
<ide> <?php namespace Illuminate\Validation;
<ide>
<ide> use Closure;
<del>use Illuminate\Container\Container;
<add>use Illuminate\Contracts\Container\Container;
<ide> use Symfony\Component\Translation\TranslatorInterface;
<ide> use Illuminate\Contracts\Validation\Facto... | 1 |
Ruby | Ruby | change logic to handle renames | fa8b702c0d1d910ea8ee39f61a31bb1bee66aeef | <ide><path>Library/Homebrew/cmd/uninstall.rb
<ide> require "keg"
<ide> require "formula"
<add>require "migrator"
<ide>
<ide> module Homebrew
<ide> def uninstall
<ide> raise KegUnspecifiedError if ARGV.named.empty?
<ide>
<add> # Find symlinks that can point to keg.rack
<add> links = HOMEBREW_CELLAR.subdirs... | 1 |
Javascript | Javascript | clarify the usage of 'else' | dc9717c805023d23e3a449ef9eedda045c91d532 | <ide><path>lib/child_process.js
<ide> exports.fork = function(modulePath /*, args, options*/) {
<ide> if (pos < arguments.length && arguments[pos] != null) {
<ide> if (typeof arguments[pos] !== 'object') {
<ide> throw new TypeError('Incorrect value of args option');
<del> } else {
<del> options = ut... | 1 |
Ruby | Ruby | verify direct upload checksums | 52eed68e398195e536b99181f644232621f938b3 | <ide><path>app/models/active_storage/blob.rb
<ide> def url(expires_in: 5.minutes, disposition: :inline)
<ide> end
<ide>
<ide> def url_for_direct_upload(expires_in: 5.minutes)
<del> service.url_for_direct_upload key, expires_in: expires_in, content_type: content_type, content_length: byte_size
<add> service.u... | 6 |
Javascript | Javascript | report actual error code on failure | d08334a489cbd29e4876a0031603ab8b5fef6f89 | <ide><path>test/parallel/test-dgram-error-message-address.js
<ide> socket_ipv6.on('listening', common.mustNotCall());
<ide> socket_ipv6.on('error', common.mustCall(function(e) {
<ide> // EAFNOSUPPORT or EPROTONOSUPPORT means IPv6 is disabled on this system.
<ide> const allowed = ['EADDRNOTAVAIL', 'EAFNOSUPPORT', 'E... | 1 |
PHP | PHP | sortreplacements function | 7374ad508917663aee6235f0267f3a58cb7b2790 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function sortBy($callback, $options = SORT_REGULAR, $descending = false)
<ide> // and grab the corresponding values for the sorted keys from this array.
<ide> foreach ($this->items as $key => $value)
<ide> {
<del> $results[$key] = $callback($value);
... | 3 |
Python | Python | remove noseclasses from user accessible modules | 159326f4ae62e5121142a76b79e20a226322ce77 | <ide><path>numpy/testing/noseclasses.py
<del>"""
<del>Back compatibility noseclasses module. It will import the appropriate
<del>set of tools
<del>
<del>"""
<del>from .nose_tools.noseclasses import * | 1 |
Ruby | Ruby | prefer bin/rails for the credentials command | 3119672411f9e68f9474c7176f2b74d978d5eed2 | <ide><path>railties/lib/rails/commands/credentials/credentials_command.rb
<ide> def change_credentials_in_system_editor
<ide>
<ide> def missing_credentials_message
<ide> if credentials.key.nil?
<del> "Missing '#{key_path}' to decrypt credentials. See `rails credentials:help`"
<add> ... | 1 |
Text | Text | add the cake logo to the readme | aa0785be42d87080c8db8e44cedd058e6d94750d | <ide><path>README.md
<del># CakePHP Framework
<del>
<del>[](LICENSE.txt)
<del>[](https://travis-ci.org/cakephp/cakephp)
<del>[![Covera... | 1 |
Python | Python | keep sentence regarding depth_multiplier | 9badb805177dfb041fda173e64b1cf2bc985abb7 | <ide><path>keras/layers/convolutional.py
<ide> class DepthwiseConv2D(Conv2D):
<ide> depth_multiplier: The number of output channels for the depthwise kernels.
<ide> It can be understood as the amount of filters that are applied to
<ide> each input channel.
<add> The total number of depthwise convol... | 1 |
PHP | PHP | use exception chaining | 0c342051b6de18c498968f71c6ee7517ce41b814 | <ide><path>src/Cache/Cache.php
<ide> protected static function _buildEngine($name)
<ide>
<ide> if ($config['fallback'] === $name) {
<ide> throw new InvalidArgumentException(
<del> sprintf('"%s" cache configuration cannot fallback to itself.', $name)
<add> ... | 14 |
Javascript | Javascript | remove flushnext method | fc8034b352121f8f057dbd5e3837eeb17e1df580 | <ide><path>src/ngMock/angular-mocks.js
<ide> angular.mock.$Browser = function() {
<ide> };
<ide>
<ide>
<add> /**
<add> * @name ngMock.$browser#defer.now
<add> * @propertyOf ngMock.$browser
<add> *
<add> * @description
<add> * Current milliseconds mock time.
<add> */
<ide> self.defer.now = 0;
<ide>
<... | 3 |
PHP | PHP | adjust password reset notification | f3730e6872ed95d14b89f6e1801cce0aa209f210 | <ide><path>src/Illuminate/Auth/Notifications/ResetPassword.php
<ide> public function via($notifiable)
<ide> public function toMail()
<ide> {
<ide> return (new MailMessage)
<del> ->line([
<del> 'You are receiving this email because we received a password reset request for your a... | 1 |
Text | Text | add bart to readme | 087465b9431a847443c33344b9a50b9d0a90040a | <ide><path>README.md
<ide> At some point in the future, you'll be able to seamlessly move from pre-training
<ide> 13. **[XLM-RoBERTa](https://github.com/pytorch/fairseq/tree/master/examples/xlmr)** (from Facebook AI), released together with the paper [Unsupervised Cross-lingual Representation Learning at Scale](https:/... | 1 |
PHP | PHP | fix bug in postgres processor | e0bfe4b3ebcf9e6ee96832be7501f73c9fd69a53 | <ide><path>src/Illuminate/Database/Query/Processors/PostgresProcessor.php
<ide> public function processInsertGetId(Builder $query, $sql, $values, $sequence = nu
<ide>
<ide> $sequence = $sequence ?: 'id';
<ide>
<del> return $results[0]->$sequence;
<add> $result = (array) $results[0];
<add>
<add> return (int) $row... | 1 |
Python | Python | set version to v3.0.6 | 8a95475b3dce2e52bc9be53a7b8c9ad49d7fc32c | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "3.0.5"
<add>__version__ = "3.0.6"
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json"... | 1 |
Python | Python | add path fixture for spacy data path | 514bfa25978991f408084470872bd113e62c49e4 | <ide><path>spacy/tests/conftest.py
<ide> from ..tokens import Doc
<ide> from ..strings import StringStore
<ide> from ..attrs import ORTH, TAG, HEAD, DEP
<add>from ..util import match_best_version, get_data_path
<ide>
<ide> from io import StringIO
<add>from pathlib import Path
<add>import os
<ide> import pytest
<ide>
... | 1 |
Javascript | Javascript | fix a bug in computing min delay | 12ef81f0e0e08e713bc2e53cf8cd86ac49609fd2 | <ide><path>d3.js
<ide> if (!Object.create) Object.create = function(o) {
<ide> };
<ide> (function(_) {
<ide> var d3 = _.d3 = {};
<del> d3.version = "0.1.2"; // semver
<add> d3.version = "0.1.3"; // semver
<ide> function d3_array(psuedoarray) {
<ide> return Array.prototype.slice.call(psuedoarray);
<ide> }
<ide> fu... | 4 |
PHP | PHP | update param type in docblock | d77f0c49febe182d5105b7df07456e541a02b1d4 | <ide><path>src/ORM/Marshaller.php
<ide> public function merge(EntityInterface $entity, array $data, array $options = [])
<ide> * the accessible fields list in the entity will be used.
<ide> * - accessibleFields: A list of fields to allow or deny in entity accessible fields.
<ide> *
<del> * @param \... | 1 |
Text | Text | add ronag to collaborators | 8d14a8cbcee313591138d233e9944664ea6186bc | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Refael Ackermann (רפאל פלחי)** <refack@gmail.com> (he/him/הוא/אתה)
<ide> * [richardlau](https://github.com/richardlau) -
<ide> **Richard Lau** <riclau@uk.ibm.com>
<add>* [ronag](https://github.com/ronag)
<add... | 1 |
Javascript | Javascript | clarify behaviour of $promise | 08354ae1f749903383a7343bd105630956d8cab0 | <ide><path>src/ngResource/resource.js
<ide> function shallowClearAndCopy(src, dst) {
<ide> * On failure, the promise is resolved with the {@link ng.$http http response} object, without
<ide> * the `resource` property.
<ide> *
<add> * If an interceptor object was provided, the promise will instead be reso... | 1 |
Ruby | Ruby | name the argument according with its job | 4818fdd36bacff6e0488d00da160a9d0c398a66e | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def path_ast(path)
<ide> parser.parse path
<ide> end
<ide>
<del> def dispatcher(defaults)
<del> @set.dispatcher defaults
<add> def dispatcher(raise_on_name_error)
<add> @set.dispatcher raise_... | 1 |
Python | Python | set version to v2.2.2.dev1 | bade60fe6426c5353111c46ad49a4959c2e16c55 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.2.2.dev1"
<add>__version__ = "2.2.2.dev2"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spac... | 1 |
Ruby | Ruby | fix the default frameworks | 30baaac5465a352e78dac6330407a7b3460db180 | <ide><path>railties/lib/initializer.rb
<ide> require "pathname"
<add>require 'railties_path'
<add>require 'rails/version'
<add>require 'rails/gem_dependency'
<add>require 'rails/rack'
<ide>
<ide> module Rails
<ide> class Configuration
<ide> def initialize
<ide> @framework_paths = []
<ide> @load_o... | 2 |
Text | Text | remove urls from zlib docs | 4742e4dc3e2222d3b5a03edd4a0468ae77800819 | <ide><path>doc/api/zlib.md
<ide> All of the constants defined in `zlib.h` are also defined on
<ide> `require('zlib').constants`. In the normal course of operations, it will not be
<ide> necessary to use these constants. They are documented so that their presence is
<ide> not surprising. This section is taken almost dir... | 1 |
Javascript | Javascript | add proper spacing between array items | 28514094a4d9de75629cb4a1e42ba8159ce665c2 | <ide><path>packages/ember-routing-htmlbars/tests/helpers/closure_action_test.js
<ide> QUnit.test('objects that define INVOKE can be casted to actions', function(asser
<ide>
<ide> innerComponent = EmberComponent.extend({
<ide> fireAction() {
<del> assert.equal(this.attrs.submit(4,5,6), 123);
<add> asser... | 1 |
Javascript | Javascript | make coverage work for node.js | 616fac9169840c76512920e66b6428971df3d289 | <ide><path>lib/internal/bootstrap/loaders.js
<ide> NativeModule._cache[this.id] = this;
<ide> };
<ide>
<add> // coverage must be turned on early, so that we can collect
<add> // it for Node.js' own internal libraries.
<add> if (process.env.NODE_V8_COVERAGE) {
<add> NativeModule.require('internal/process/co... | 7 |
Ruby | Ruby | avoid extra array allocations | 5bf652ecddff309934184f781059f677c7ff3a6f | <ide><path>Library/Homebrew/options.rb
<ide> def self.coerce(arg)
<ide> when self then arg
<ide> when Option then new << arg
<ide> when Array
<del> opts = arg.map do |_arg|
<del> case _arg
<del> when /^-[^-]+$/ then _arg[1..-1].split(//)
<del> else _arg
<add> opts = new
<add> ... | 2 |
Ruby | Ruby | set correct compiler symbol for gcc 4.0" | 1dcf726a596001f204ff21f667447da15b76c030 | <ide><path>Library/Homebrew/extend/ENV/std.rb
<ide> def gcc_4_0_1
<ide> self.cxx = "#{MacOS.dev_tools_path}/g++-4.0"
<ide> replace_in_cflags '-O4', '-O3'
<ide> set_cpu_cflags '-march=nocona -mssse3'
<del> @compiler = :gcc_4_0
<add> @compiler = :gcc
<ide> end
<ide> alias_method :gcc_4_0, :gcc_4_0_1... | 1 |
Javascript | Javascript | remove needless operations in tests | 10024c25820f08139f11d924cec552a26dfbba18 | <ide><path>test/unit/effects.js
<ide> if ( !jQuery.fx ) {
<ide> return;
<ide> }
<ide>
<del>var off = jQuery.fx.off;
<del>
<ide> module("effects", {
<ide> setup: function() {
<ide> this.clock = sinon.useFakeTimers( 505877050 );
<ide> module("effects", {
<ide> jQuery.now = Date.now;
<ide> jQuery.fx.stop();
<ide>... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.