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 | guess set_annotations=true in nlp.update | 78d79d94cea51546decb21f99d3ee88e14e3363f | <ide><path>spacy/language.py
<ide> def update(self, examples, dummy=None, *, drop=0.0, sgd=None, losses=None, compo
<ide>
<ide> if component_cfg is None:
<ide> component_cfg = {}
<add> component_deps = _count_pipeline_inter_dependencies(self.pipeline)
<ide> # Determine whether compon... | 2 |
Ruby | Ruby | extract the string handling part to a method | d2d6e4a980800cefce4066724ddd541ae22730c1 | <ide><path>activerecord/lib/active_record/associations/join_dependency.rb
<ide> def build_join_association(reflection, parent, join_type)
<ide> end
<ide>
<ide> def construct(parent, associations, join_parts, row)
<del> case associations
<del> when Symbol, String
<del> name = associat... | 1 |
Java | Java | clarify the use of sessiontransacted | 674bad4cfa21f40f9d8103ce729c54c2092a9f93 | <ide><path>spring-jms/src/main/java/org/springframework/jms/listener/AbstractMessageListenerContainer.java
<ide> * runtime processing overhead.
<ide> * </ul>
<ide> *
<del> * <p>Note that it is also possible to specify a
<del> * {@link org.springframework.jms.connection.JmsTransactionManager} as external
<del> * "tra... | 4 |
Go | Go | handle ebusy on remount | 5d04b9deafc5ce173364a24881f8e950c9430be0 | <ide><path>pkg/libcontainer/security/restrict/restrict.go
<ide> import (
<ide> "fmt"
<ide> "os"
<ide> "syscall"
<add> "time"
<ide>
<ide> "github.com/dotcloud/docker/pkg/system"
<ide> )
<ide>
<ide> const defaultMountFlags = syscall.MS_NOEXEC | syscall.MS_NOSUID | syscall.MS_NODEV
<ide>
<ide> func mountReadonly(pa... | 1 |
Java | Java | expose isdisposed method on disposable. | b40b124c135bed4eea4dd0374d0fb62a79361cfa | <ide><path>src/main/java/io/reactivex/Observable.java
<ide> public static Observable<Integer> range(final int start, final int count) {
<ide> return create(new ObservableConsumable<Integer>() {
<ide> @Override
<ide> public void subscribe(Observer<? super Integer> s) {
<del> ... | 137 |
Python | Python | add missing tests for snowflake changes | 3f674bd6bdb281cd4c911f8b1bc7ec489a24c49d | <ide><path>tests/providers/snowflake/hooks/test_snowflake.py
<ide> from parameterized import parameterized
<ide>
<ide> from airflow.providers.snowflake.hooks.snowflake import SnowflakeHook
<add>from airflow.utils.process_utils import patch_environ
<ide>
<ide>
<ide> class TestSnowflakeHook(unittest.TestCase):
<ide> d... | 1 |
Python | Python | update various pylint issues and false positives | 79bf32f31fdef2ee186e07c64c599d5ae5be4d51 | <ide><path>libcloud/compute/base.py
<ide> class NodeDriver(BaseDriver):
<ide> name = None
<ide> type = None
<ide> port = None
<add> website = None
<add> api_name = None
<ide> features = {'create_node': []}
<ide>
<ide> """
<ide><path>libcloud/compute/drivers/__init__.py
<ide> 'gce',
<ide> ... | 21 |
Ruby | Ruby | use correct variable in backtracecleaner test | 93b7816eefc2ac4cfe6cd10002598d84bf3df097 | <ide><path>railties/test/backtrace_cleaner_test.rb
<ide> def setup
<ide> test "should format installed gems not in Gem.default_dir correctly" do
<ide> target_dir = Gem.path.detect { |p| p != Gem.default_dir }
<ide> # skip this test if default_dir is the only directory on Gem.path
<del> if @target_dir
<add>... | 1 |
Text | Text | fix documentation links | 13f35bc6e33bf5a59fe15f431935e6e3b05b7104 | <ide><path>README.md
<ide>
<ide> 
<ide>
<del>Check out our [documentation in this repo](https://github.com/atom/atom/tree/master/docs).
<del>There is also [API documentation](https://atom-docs.githubapp.com/api/in... | 2 |
Go | Go | use termios via cgo only on linux | dfcf05a5d070823ade84ffba0e9784cdfe6d54b0 | <add><path>pkg/term/tc_linux_cgo.go
<del><path>pkg/term/term_cgo.go
<del>// +build !windows,cgo
<add>// +build linux,cgo
<ide>
<ide> package term
<ide>
<add><path>pkg/term/tc_other.go
<del><path>pkg/term/term_nocgo.go
<del>// +build !windows,!cgo
<add>// +build !windows
<add>// +build !linux !cgo
<ide>
<ide> package... | 4 |
Python | Python | implement xlnet qa model | 7a6a8741901c44ade37aab430236c8229c8e3389 | <ide><path>official/nlp/modeling/models/__init__.py
<ide> from official.nlp.modeling.models.electra_pretrainer import ElectraPretrainer
<ide> from official.nlp.modeling.models.seq2seq_transformer import *
<ide> from official.nlp.modeling.models.xlnet import XLNetClassifier
<add>from official.nlp.modeling.models.xlnet i... | 7 |
Java | Java | change the signature of ondropviewinstance. issue | daa93a622273873cdee53c546f6d876f4e271e70 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java
<ide> protected final void dropView(View view) {
<ide> UiThreadUtil.assertOnUiThread();
<ide> if (!mRootTags.get(view.getId())) {
<ide> // For non-root views we notify viewmanager with {@link ViewManager#onD... | 3 |
Java | Java | remove request batching in merge | 162c31cdfec498db1f99e52a2317bf121eff2d27 | <ide><path>src/main/java/rx/internal/operators/OperatorMerge.java
<ide> private void handleNewSource(Observable<? extends T> t) {
<ide> InnerSubscriber<T> i = new InnerSubscriber<T>(this, producerIfNeeded);
<ide> i.sindex = childrenSubscribers.add(i);
<ide> t.unsafeSubscribe(i);
<del... | 2 |
Text | Text | add useful colors tools | 84083d899391d13e3c3f2a7f7882725fa7bfe886 | <ide><path>guide/english/css/css3-colors/index.md
<ide> This rule changes the font color of all p elements to green, just like above.
<ide>
<ide> ### Hexadecimal Values
<ide>
<del>Hexadecimal values are yet another way to define colors in CSS and they work quite similarly to RGB values.<br>
<add>Hexadecimal values ar... | 1 |
Ruby | Ruby | handle more exceptions | 3c8a19777db461a17f15c2271b41043e006b60eb | <ide><path>Library/Homebrew/cmd/update.rb
<ide> def report
<ide> new_version = formula.pkg_version
<ide> old_version = FormulaVersions.new(formula).formula_at_revision(@initial_revision, &:pkg_version)
<ide> next if new_version == old_version
<del> rescue LoadError, FormulaU... | 1 |
Python | Python | send exc_info along in job failures | 00600a2ee1f5d79b293b7bd20ec9549cd25e4a82 | <ide><path>celery/worker/job.py
<ide> def on_failure(self, exc_info):
<ide>
<ide> log_with_extra(self.logger, logging.ERROR,
<ide> self.error_msg.strip() % context,
<add> exc_info=exc_info,
<ide> extra={"data": {"hostname": self.hostname,
<ide... | 1 |
Python | Python | pass nlp forward | adca08a12fcd011df2d94e4701dfd193a6cbb5ea | <ide><path>spacy/language.py
<ide> def initialize(
<ide> p_settings = validate_init_settings(
<ide> proc.initialize, p_settings, section="components", name=name
<ide> )
<del> proc.initialize(
<del> get_examples,
<del> ... | 1 |
Python | Python | remove project stuff from this branch | 0ee6d7a4d1dea48547c8c78d59bbc3d3a2c4ff45 | <ide><path>spacy/cli/__init__.py
<ide> from .convert import convert # noqa: F401
<ide> from .init_model import init_model # noqa: F401
<ide> from .validate import validate # noqa: F401
<del>from .project import project_clone, project_get_assets, project_run # noqa: F401
<ide>
<ide>
<ide> @app.command("link", no_a... | 2 |
Ruby | Ruby | use capture_sql helper method in tests | 6fbf52d580b661d79dd001774b254b4d258ab8bf | <ide><path>activerecord/test/cases/associations/belongs_to_associations_test.rb
<ide> def test_missing_attribute_error_is_raised_when_no_foreign_key_attribute
<ide> end
<ide>
<ide> def test_belongs_to_does_not_use_order_by
<del> ActiveRecord::SQLCounter.clear_log
<del> Client.find(3).firm
<del> ensure
<del>... | 2 |
Ruby | Ruby | change reference to all to scoped instead | 0c850f8dab8c23abc3f8675fd2b82af20101c3c4 | <ide><path>railties/lib/rails/generators/active_model.rb
<ide> def initialize(name)
<ide>
<ide> # GET index
<ide> def self.all(klass)
<del> "#{klass}.all.to_a"
<add> "#{klass}.scoped.to_a"
<ide> end
<ide>
<ide> # GET show | 1 |
Python | Python | improve italian tokenization | 1a944e5976b260f8ee42a52fb016808f427ef77f | <ide><path>spacy/lang/it/__init__.py
<ide> from .stop_words import STOP_WORDS
<ide> from .tag_map import TAG_MAP
<ide> from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
<del>from .punctuation import TOKENIZER_INFIXES
<add>from .punctuation import TOKENIZER_PREFIXES, TOKENIZER_INFIXES
<ide>
<ide> from ..tokenizer_... | 3 |
Javascript | Javascript | replace remote module with invoke calls | 7c1124f1e5218367d5fdac683d4fe00ffa12e899 | <ide><path>src/main-process/atom-application.js
<ide> const decryptOptions = (optionsMessage, secret) => {
<ide> return JSON.parse(message);
<ide> };
<ide>
<add>ipcMain.handle('isDefaultProtocolClient', (_, { protocol, path, args }) => {
<add> return app.isDefaultProtocolClient(protocol, path, args);
<add>});
<add>... | 2 |
Javascript | Javascript | fix example to reflect classes not instances | 4435dc7b79efd950e3c47bcfcf9796d6462a7b03 | <ide><path>packages/ember-views/lib/system/application.js
<ide> Ember.Application = Ember.Namespace.extend(
<ide>
<ide> Example:
<ide>
<del> App.PostsController = Ember.ArrayController.create();
<del> App.CommentsController = Ember.ArrayController.create();
<add> App.PostsController = Ember.ArrayCo... | 1 |
Text | Text | use friendlier emoji | 6891922e07f6172cec91551876757bae812b3546 | <ide><path>CONTRIBUTING.md
<del># :rotating_light: Contributing to Atom :rotating_light:
<del>
<add># :tada: Contributing to Atom :tada:
<ide>
<ide> ## Issues
<ide> * Include screenshots and animated GIFs whenever possible, they are immensely | 1 |
Javascript | Javascript | treat synchronous validators as boolean always | 7bc71adc63bb6bb609b44dd2d3ea8fb0cd3f300b | <ide><path>src/ng/directive/ngModel.js
<ide> NgModelController.prototype = {
<ide> function processSyncValidators() {
<ide> var syncValidatorsValid = true;
<ide> forEach(that.$validators, function(validator, name) {
<del> var result = validator(modelValue, viewValue);
<add> var result = Bo... | 2 |
Ruby | Ruby | add spec_id tests | ac1c4e141b20c1067af2c2703db6e1b463b985da | <ide><path>activerecord/test/cases/connection_specification/resolver_test.rb
<ide> def test_url_sub_key_for_sqlite3
<ide> "encoding" => "utf8" }, spec)
<ide> end
<ide>
<add> def test_spec_id_on_key_lookup
<add> spec = spec(:readonly, 'readonly' => {'adapter' => 'sqlite3'})
<add> ... | 1 |
Text | Text | create model card | 814ed7ee76c7818c7af94e80e7480f08f1406080 | <ide><path>model_cards/mrm8488/electricidad-small-finetuned-squadv1-es/README.md
<add>---
<add>language: spanish
<add>thumbnail: https://imgur.com/uxAvBfh
<add>---
<add>
<add># Electricidad small + Spanish SQuAD v1 ⚡❓
<add>
<add>[Electricidad-small-discriminator](https://huggingface.co/mrm8488/electricidad-small-discri... | 1 |
Mixed | Ruby | raise error when serializing an anonymous class | 0f259e702d0793fa066e5c60fe56cc74440a4d3f | <ide><path>activejob/CHANGELOG.md
<add>* Raise an `SerializationError` in `Serializer::ModuleSerializer`
<add> if the module name is not present.
<add>
<add> *Veerpal Brar*
<add>
<add>
<ide> ## Rails 7.0.0.alpha2 (September 15, 2021) ##
<ide>
<ide> * No changes.
<ide><path>activejob/lib/active_job/serialize... | 3 |
Javascript | Javascript | add the ondone callback | 3a5bcfcef0528b46547a0b4fb6388bfb07da9470 | <ide><path>examples/js/exporters/ColladaExporter.js
<ide> THREE.ColladaExporter.prototype = {
<ide>
<ide> constructor: THREE.ColladaExporter,
<ide>
<del> parse: function ( object, options = {} ) {
<add> parse: function ( object, onDone, options = {} ) {
<ide>
<ide> options = Object.assign( {
<ide> version: '1.... | 1 |
Python | Python | avoid gpu oom for a tf rag test | 224bde91caff4ccfd12277ab5e9bf97c61e22ee9 | <ide><path>tests/models/rag/test_modeling_tf_rag.py
<ide> def test_rag_token_generate_batch(self):
<ide> input_ids = input_dict.input_ids
<ide> attention_mask = input_dict.attention_mask
<ide>
<del> output_ids = rag_token.generate(
<del> input_ids,
<del> attention_mask=atte... | 1 |
Text | Text | fix text regarding serializer error messages | e80d3d1bdfb071a288340555cb6fe8a9bce3772d | <ide><path>docs/api-guide/serializers.md
<ide> To serialize a queryset instead of an object instance, you should pass the `many
<ide>
<ide> ## Validation
<ide>
<del>When deserializing data, you always need to call `is_valid()` before attempting to access the deserialized object. If any validation errors occur, the `... | 1 |
Go | Go | enable syslog driver for windows | eac70703e3f46f825354f03cac93206497143350 | <ide><path>daemon/logdrivers_windows.go
<ide> import (
<ide> _ "github.com/docker/docker/daemon/logger/etwlogs"
<ide> _ "github.com/docker/docker/daemon/logger/jsonfilelog"
<ide> _ "github.com/docker/docker/daemon/logger/splunk"
<add> _ "github.com/docker/docker/daemon/logger/syslog"
<ide> )
<ide><path>daemon/logger... | 4 |
PHP | PHP | remove old test | 456f1f3d197069baa7bad8de4b78df1db98def30 | <ide><path>tests/Encryption/EncrypterTest.php
<ide> public function testExceptionThrownWithDifferentKey()
<ide> $b = new Encrypter(str_repeat('b', 16));
<ide> $b->decrypt($a->encrypt('baz'));
<ide> }
<del><<<<<<< HEAD
<del>=======
<del>
<del> public function testOpenSslEncrypterCanDecryptMcrypted... | 1 |
Python | Python | fix docstrings in numpy.dft | da320f43a5e3e34d7c12e138f3cd40c0a81dfc28 | <ide><path>numpy/dft/fftpack.py
<ide> def ifftn(a, s=None, axes=None):
<ide> def fft2(a, s=None, axes=(-2,-1)):
<ide> """fft2(a, s=None, axes=(-2,-1))
<ide>
<del> The 2d fft of a. This is really just fftnd with different default
<add> The 2d fft of a. This is really just fftn with different default
<ide> ... | 1 |
Ruby | Ruby | remove unused assignment | 8535c037ac8e6e8bff50db271de5e2d9c9370890 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> class LocalBottleDownloadStrategy < AbstractFileDownloadStrategy
<ide> attr_reader :cached_location
<ide>
<ide> def initialize(formula)
<del> @name = name
<ide> @cached_location = formula.local_bottle_path
<ide> end
<ide> | 1 |
Ruby | Ruby | use block form of dir.mktmpdir to ensure tidy up | ae2f193c0379453f73ae08a3df541d2cb0ae00e2 | <ide><path>activesupport/test/file_update_checker_shared_tests.rb
<ide> module FileUpdateCheckerSharedTests
<ide> include FileUtils
<ide>
<ide> def tmpdir
<del> @tmpdir ||= Dir.mktmpdir(nil, __dir__)
<add> @tmpdir
<ide> end
<ide>
<ide> def tmpfile(name)
<ide> def tmpfiles
<ide> @tmpfiles ||= %w(foo.... | 1 |
Javascript | Javascript | hide npm output when doing react-native init | 2ddf3d942dc080264bf5f17c1381e7e5f39e2f4f | <ide><path>react-native-cli/index.js
<ide>
<ide> var fs = require('fs');
<ide> var path = require('path');
<del>var spawn = require('child_process').spawn;
<add>var exec = require('child_process').exec;
<ide> var prompt = require("prompt");
<ide>
<ide> var CLI_MODULE_PATH = function() {
<ide> function createProject(n... | 1 |
Go | Go | update pull message and log | 7d21ea6627ae964425da9bc52bbb9e21b7da3cf9 | <ide><path>graph/pull.go
<ide> func (s *TagStore) pullV2Tag(eng *engine.Engine, r *registry.Session, out io.Wri
<ide> }
<ide>
<ide> if verified {
<del> out.Write(sf.FormatStatus("", "The image you are pulling has been digitally signed by Docker, Inc."))
<add> out.Write(sf.FormatStatus(localName+":"+tag, "The image... | 1 |
Python | Python | use asbytes for python 3 compatibility | 26802c93733886e3f0561bbd0e0e5753d2916143 | <ide><path>numpy/core/tests/test_ufunc.py
<ide> import numpy as np
<ide> from numpy.testing import *
<ide> import numpy.core.umath_tests as umt
<add>from numpy.compat import asbytes
<ide>
<ide> class TestUfunc(TestCase):
<ide> def test_pickle(self):
<ide> def test_pickle(self):
<ide>
<ide> def test_pickle_wit... | 1 |
Javascript | Javascript | remove unused suppressions in xplat | 2191c9ed58f15e2e874203873a9d99726e9b82de | <ide><path>Libraries/Components/DatePicker/DatePickerIOS.ios.js
<ide> class DatePickerIOS extends React.Component<Props> {
<ide> mode: 'datetime',
<ide> };
<ide>
<del> // $FlowFixMe How to type a native component to be able to call setNativeProps
<ide> _picker: ?React.ElementRef<typeof RCTDatePickerNativeComp... | 4 |
Javascript | Javascript | add 昨日热推 app to showcase | 5dcf7199fc91f17c9ad5dc14c524689376a56d1c | <ide><path>website/src/react-native/showcase.js
<ide> var featured = [
<ide> infoLink: 'https://elelogistics.github.io/about/Crowdsource-App-Write-In-React-Native.html',
<ide> infoTitle: '"Fengniao Crowdsource app" is a mobile app, developed by Eleme, Inc, for Fengniao Crowdsource, the largest crowdsourced logi... | 1 |
Ruby | Ruby | remove unnecessary argument for creating scopes | 684e4d39d60d87273ea74f9a076b3ea308fc2ffe | <ide><path>activerecord/lib/active_record/named_scope.rb
<ide> def scope(name, options = {}, &block)
<ide> "Overwriting existing method #{self.name}.#{name}."
<ide> end
<ide>
<del> scopes[name] = lambda do |parent_scope, *args|
<add> scopes[name] = lambda do |*args|
<ide> ... | 1 |
Ruby | Ruby | fix unsorted array comparison | bc94061156e52ec45fceec582e8400250cc022fb | <ide><path>actionpack/test/abstract_unit.rb
<ide>
<ide> # Register danish language for testing
<ide> I18n.backend.store_translations 'da', {}
<del>ORIGINAL_LOCALES = I18n.available_locales
<add>ORIGINAL_LOCALES = I18n.available_locales.map(&:to_s).sort
<ide>
<ide> FIXTURE_LOAD_PATH = File.join(File.dirname(__FILE__),... | 2 |
PHP | PHP | fix queries with wherein and empty arrays | 52a0b5809da033e17d6dc96b7e79ac705df0e568 | <ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php
<ide> protected function whereNotExists(Builder $query, $where)
<ide> */
<ide> protected function whereIn(Builder $query, $where)
<ide> {
<add> if (empty($where['values'])) return '0';
<add>
<ide> $values = $this->parameterize($where['values']);
<ide>... | 2 |
Ruby | Ruby | unify chown messages | 8acac5aa713a271edb23d88ef19140b3a39e969f | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def __check_subdir_access(base)
<ide>
<ide> return if cant_read.empty?
<ide> inject_file_list cant_read.sort, <<-EOS.undent
<del> Some directories in #{target} aren't writable.
<del> This can happen if you "sudo make install" software that isn't managed
<de... | 1 |
Javascript | Javascript | improve objloader | cba85c5c6318e7ca53dd99f9f3c25eb3b79d9693 | <ide><path>examples/js/loaders/OBJLoader.js
<ide> const _material_use_pattern = /^usemtl /; // usemap map_name
<ide>
<ide> const _map_use_pattern = /^usemap /;
<add> const _face_vertex_data_separator_pattern = /\s+/;
<ide>
<ide> const _vA = new THREE.Vector3();
<ide>
<ide> }
<ide>
<ide> const lines = text.... | 2 |
Text | Text | add missing line in debugger | 1b550ba1af50a9e7eed9b27a92902115f98cf4d8 | <ide><path>doc/api/debugger.md
<ide> $ node inspect myscript.js
<ide> < Debugger listening on ws://127.0.0.1:9229/621111f9-ffcb-4e82-b718-48a145fa5db8
<ide> < For help, see: https://nodejs.org/en/docs/inspector
<ide> <
<add>connecting to 127.0.0.1:9229 ... ok
<ide> < Debugger attached.
<ide> <
<ide> ok
<ide> $ node in... | 1 |
Text | Text | fix typo in docs | 0cddf097ca50344355db79b048b12c1805bbe180 | <ide><path>docs/api-guide/viewsets.md
<ide> The decorator allows you to override any viewset-level configuration such as `pe
<ide> def set_password(self, request, pk=None):
<ide> ...
<ide>
<del>The two new actions will then be available at the urls `^users/{pk}/set_password/$` and `^users/{pk}/unset... | 1 |
Javascript | Javascript | fix typo in _removeinactiveaction | 1157238af9bed9ddc7d86d4538b4caaa26323b21 | <ide><path>src/animation/AnimationMixer.js
<ide> Object.assign( AnimationMixer.prototype, EventDispatcher.prototype, {
<ide>
<ide>
<ide> var actionByRoot = actionsForClip.actionByRoot,
<del> rootUuid = ( actions._localRoot || this._root ).uuid;
<add> rootUuid = ( action._localRoot || this._root ).uuid;
<ide>
<... | 1 |
Ruby | Ruby | add all folders in app/* to the load path | 59cd044310d4bb454d492addffb8bd60dd8a23a9 | <ide><path>railties/lib/rails/bootstrap.rb
<ide> def initialize(application)
<ide> # the load_once paths.
<ide> initializer :set_autoload_paths do
<ide> require 'active_support/dependencies'
<del> ActiveSupport::Dependencies.load_paths = config.load_paths.uniq
<del> ActiveSupport::Dependencies.l... | 2 |
Ruby | Ruby | use formula.full_name for blocklist | 57cac495594aa36544e8ec5749cf66c5f918de2d | <ide><path>Library/Homebrew/utils/pypi.rb
<ide> def get_pypi_info(package, version)
<ide> def update_python_resources!(formula, version = nil, print_only: false, silent: false,
<ide> ignore_non_pypi_packages: false)
<ide>
<del> if !print_only && AUTOMATIC_RESOURCE_UPDATE_BLOCKLIST.i... | 1 |
PHP | PHP | add getstreamedcontent to testresponse class | 61396302621d3391721094c71b5fb75860c97bb4 | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> use Illuminate\Contracts\View\View;
<ide> use Illuminate\Support\Traits\Macroable;
<ide> use PHPUnit\Framework\Assert as PHPUnit;
<add>use Symfony\Component\HttpFoundation\StreamedResponse;
<ide> use Illuminate\Foundation\Testing\Constraints\SeeInOrder... | 1 |
Ruby | Ruby | fix duplicate rpath handling | 57fae524de41a7e9f149f9c87d6cdfd633d0556c | <ide><path>Library/Homebrew/extend/os/mac/keg_relocate.rb
<ide> def relocate_dynamic_linkage(relocation)
<ide> change_install_name(old_name, new_name, file) if new_name
<ide> end
<ide>
<del> if ENV["HOMEBREW_RELOCATE_RPATHS"]
<del> each_linkage_for(file, :rpaths) do |old_name|
<del> ... | 2 |
Javascript | Javascript | remove workaround for react-hot-loader | 0b20273c778da61bc8ecee1a70e1d9c3cc168bcd | <ide><path>lib/app.js
<ide> export default class App extends Component {
<ide> render () {
<ide> const { Component, props } = this.state
<ide>
<del> if (typeof window === 'undefined') {
<del> // workaround for https://github.com/gaearon/react-hot-loader/issues/283
<del> return <Component {...props} ... | 1 |
Javascript | Javascript | handle null values in cleartimeout | 7a48fd845542c6ee36ebc42c8af731a66da9082e | <ide><path>lib/timers.js
<ide> exports.setTimeout = function (callback, after) {
<ide>
<ide>
<ide> exports.clearTimeout = function (timer) {
<del> timer.callback = timer._onTimeout = null;
<del> exports.unenroll(timer);
<del> if (timer instanceof Timer) timer.stop(); // for after === 0
<add> if (timer) {
<add> ... | 2 |
PHP | PHP | rename a few contracts | 06ba7ddb4511e893dfae145df6fb67c22e3a6974 | <ide><path>src/Illuminate/Cache/Repository.php
<ide> use ArrayAccess;
<ide> use Carbon\Carbon;
<ide> use Illuminate\Support\Traits\MacroableTrait;
<del>use Illuminate\Contracts\Cache\Cache as CacheContract;
<add>use Illuminate\Contracts\Cache\Repository as CacheContract;
<ide>
<ide> class Repository implements CacheCo... | 7 |
Ruby | Ruby | add key? to bottlecollector | 3c366a56d7af3e51daac0c530a8b43ab005f31d1 | <ide><path>Library/Homebrew/bottles.rb
<ide> def initialize
<ide> end
<ide>
<ide> def fetch_checksum_for(tag)
<del> return [@bottles[tag], tag] if @bottles[tag]
<add> return [@bottles[tag], tag] if key?(tag)
<ide>
<ide> find_altivec_tag(tag) || find_or_later_tag(tag)
<ide> end
<ide> def []=(key, value... | 1 |
Ruby | Ruby | add some comments | 50b2a32f9a264b8a1297da6a56e37afa2c02510c | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def audit_lib
<ide> end
<ide>
<ide> def check_m4
<add> # Newer versions of Xcode don't come with autotools
<ide> return if MacOS.xcode_version.to_f >= 4.3
<ide>
<add> # If the user has added our path to dirlist, don't complain
<ide> return if Fi... | 1 |
Python | Python | remove unused imports | 371d30aa8737c4b3aaf28ee10cc2b77a9c4d1fd9 | <ide><path>rest_framework/decorators.py
<ide> from django.utils import six
<ide> from rest_framework.views import APIView
<ide> import types
<del>import warnings
<ide>
<ide>
<ide> def api_view(http_method_names):
<ide><path>rest_framework/generics.py
<ide> from rest_framework import views, mixins, exceptions
<ide> fr... | 2 |
Mixed | Javascript | remove fasttest task. fasttest is not fast | 656c2ef173f8105d4f550c180fa7addb6d0c05af | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide> 'npm-react:release',
<ide> ]);
<ide>
<del> grunt.registerTask('fasttest', function() {
<del> grunt.task.run('test');
<del> });
<ide> grunt.registerTask('test', ['jest']);
<ide> grunt.registerTask('npm:test', ['build', 'npm:pack']);
<... | 2 |
Python | Python | add julia sets to fractals | 02bc4bf4171497277354c01387c96e044f2dedfe | <ide><path>fractals/julia_sets.py
<add>"""Author Alexandre De Zotti
<add>
<add>Draws Julia sets of quadratic polynomials and exponential maps.
<add> More specifically, this iterates the function a fixed number of times
<add> then plots whether the absolute value of the last iterate is greater than
<add> a fixed thresho... | 1 |
Ruby | Ruby | add a test that writes to the collection cache | 4f77982e213e31d9c6e7195c7db86429b8092744 | <ide><path>actionview/test/template/render_test.rb
<ide> class CachedCustomer < Customer; end
<ide> end
<ide>
<ide> teardown do
<del> GC.start
<ide> I18n.reload!
<ide> end
<ide>
<add> test "template body written to cache" do
<add> customer = Customer.new("david", 1)
<add> key = cache_key(customer,... | 1 |
Python | Python | add tf<>pt and flax<>pt everywhere | 0c3174c7588cc3ecb393a896ec8552b90746e396 | <ide><path>src/transformers/models/albert/modeling_flax_albert.py
<ide> def __call__(
<ide> return outputs
<ide>
<ide>
<del>class FlaxAlbertLayers(nn.Module):
<del> config: AlbertConfig
<del> dtype: jnp.dtype = jnp.float32 # the dtype of the computation
<del> layer_index: Optional[str] = None
<del>
... | 9 |
Python | Python | add attribute check before using isatty() | 208170eafc717dd2a6c6a5919d76ba82d0f19a04 | <ide><path>keras/utils/generic_utils.py
<ide> def __init__(self, target, width=30, verbose=1, interval=0.05):
<ide> self.total_width = 0
<ide> self.seen_so_far = 0
<ide> self.verbose = verbose
<del> self._dynamic_display = (sys.stdout.isatty() or
<add> self._dynamic_display = ((has... | 1 |
PHP | PHP | apply fixes from styleci | 05060b183dd09cee6dce498da5afde9e66fd1a29 | <ide><path>tests/Database/DatabaseEloquentIntegrationTest.php
<ide> use Illuminate\Database\Eloquent\SoftDeletes;
<ide> use Illuminate\Database\Capsule\Manager as DB;
<ide> use Illuminate\Database\Eloquent\Relations\Pivot;
<del>use Illuminate\Database\Eloquent\SoftDeletingScope;
<ide> use Illuminate\Database\Eloquent\M... | 1 |
Ruby | Ruby | fix clang version detection on xcode 4.6+ | 35394ad584f2c7659b53175178144ea533fea8b2 | <ide><path>Library/Homebrew/macos.rb
<ide> def llvm_build_version
<ide>
<ide> def clang_version
<ide> @clang_version ||= if locate("clang")
<del> `#{locate("clang")} --version` =~ /clang version (\d\.\d)/
<add> `#{locate("clang")} --version` =~ /(?:clang|LLVM) version (\d\.\d)/
<ide> $1
<ide> ... | 1 |
Ruby | Ruby | add installed time to `git info --json` output | c01731a1f52176a229aa3656a171323a4a90365e | <ide><path>Library/Homebrew/formula.rb
<ide> def to_hash
<ide> "used_options" => tab.used_options.as_flags,
<ide> "built_as_bottle" => tab.built_as_bottle,
<ide> "poured_from_bottle" => tab.poured_from_bottle,
<add> "time" => Time.at(tab.time).st... | 1 |
Text | Text | fix typo in activejob/changelog.md [ci-skip] | e0e64e9474b2738b3181e7c55499b47b1c5dbff4 | <ide><path>activejob/CHANGELOG.md
<ide>
<ide> *Jonathan Hefner*
<ide>
<del>* Update `ActiveJob::QueueAdapters::QueAdapter` te remove deprecation warning
<add>* Update `ActiveJob::QueueAdapters::QueAdapter` to remove deprecation warning.
<ide>
<ide> Remove a deprecation warning introduced in que 1.2 to pr... | 1 |
Mixed | Javascript | add geturi method | 4f98acc57860721c639f94f5772138b2af273301 | <ide><path>README.md
<ide> The available instance methods are listed below. The specified config will be me
<ide> ##### axios#post(url[, data[, config]])
<ide> ##### axios#put(url[, data[, config]])
<ide> ##### axios#patch(url[, data[, config]])
<add>##### axios#getUri([config])
<ide>
<ide> ## Request Config
<ide>
<i... | 2 |
Go | Go | move resize after attaching | 7a948f6a969137c2f8f0b47e75b30cc28ac0a37c | <ide><path>api/client/attach.go
<ide> func (cli *DockerCli) CmdAttach(args ...string) error {
<ide> return err
<ide> }
<ide>
<del> if c.Config.Tty && cli.isTerminalOut {
<del> if err := cli.monitorTtySize(cmd.Arg(0), false); err != nil {
<del> logrus.Debugf("Error monitoring TTY size: %s", err)
<del> }
<del> }
... | 2 |
Python | Python | fix mypy errors for alibaba provider. | 73ab0edce58d996e2854d478f054b25c4bb627c4 | <ide><path>airflow/providers/alibaba/cloud/example_dags/example_oss_bucket.py
<ide> with DAG(
<ide> dag_id='oss_bucket_dag',
<ide> start_date=datetime(2021, 1, 1),
<del> default_args={'region': 'your region', 'bucket_name': 'your bucket'},
<add> default_args={'bucket_name': 'your bucket'},
<ide> max_a... | 3 |
Text | Text | add sql examples for equality and not [ci skip] | e1a31f51f4a647d1b7c98cbc84b00784d7ef214b | <ide><path>guides/source/active_record_querying.md
<ide> NOTE: Only equality, range and subset checking are possible with Hash conditions
<ide> Client.where(locked: true)
<ide> ```
<ide>
<add>This will generate SQL like this:
<add>
<add>```sql
<add>SELECT * FROM clients WHERE (clients.locked = 1)
<add>```
<add>
<ide> ... | 1 |
PHP | PHP | fix docblock formatting with time helper test | 1b95b012654aa18c83b0bfc66680a8929d10d3a2 | <ide><path>lib/Cake/Test/Case/View/Helper/TimeHelperTest.php
<ide> public function testIsThisYear() {
<ide> $result = $this->Time->isThisYear(mktime(0, 0, 0, mt_rand(1, 12), mt_rand(1, 28), date('Y')));
<ide> $this->assertTrue($result);
<ide> }
<del> /**
<add>
<add>/**
<ide> * testWasYesterday method
<ide> *
<id... | 1 |
Python | Python | simplify the method further | 307dd64c61524c9b920ed4562e39ba527e2fda03 | <ide><path>libcloud/compute/drivers/gce.py
<ide>
<ide> import datetime
<ide> import time
<add>import itertools
<ide> import sys
<ide>
<ide> from libcloud.common.base import LazyObject
<ide> def list_nodes(self, ex_zone=None, ex_use_disk_cache=True):
<ide> # The aggregated response returns a dict for each zone... | 1 |
PHP | PHP | fix remaining tests in http package | a296960cb9172dbfa1ae4bb50a20be241affbc8c | <ide><path>src/Http/ActionDispatcher.php
<ide> public function dispatch(ServerRequest $request, Response $response)
<ide> }
<ide>
<ide> $response = $this->_invoke($controller);
<del> if (isset($request->params['return'])) {
<add> if ($request->getParam('return')) {
<ide> retur... | 5 |
Python | Python | leave eggs when finding the instance path | fb1a6730cfbf63b6d6ccda93381f0823d8b6c85a | <ide><path>flask/app.py
<ide> def auto_find_instance_path(self):
<ide> package_path = self.root_path
<ide> if hasattr(root_mod, '__path__'):
<ide> package_path = os.path.dirname(package_path)
<del> site_parent, site_folder = os.path.split(package_path)
<ide>
<add> # leave the ... | 2 |
Java | Java | add single.ignoreelement, deprecate tocompletable | 86902355bb8518e1e74f7c84c973697120e5d9f3 | <ide><path>src/main/java/io/reactivex/Maybe.java
<ide> public final Maybe<T> hide() {
<ide> /**
<ide> * Ignores the item emitted by the source Maybe and only calls {@code onComplete} or {@code onError}.
<ide> * <p>
<del> * <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava... | 3 |
Javascript | Javascript | introduce $$body service | 64ef084b91bd7a366f732b995c9337ed3164a7a1 | <ide><path>angularFiles.js
<ide> var angularFiles = {
<ide> 'angularModules': {
<ide> 'ngAnimate': [
<ide> 'src/ngAnimate/shared.js',
<del> 'src/ngAnimate/body.js',
<ide> 'src/ngAnimate/rafScheduler.js',
<ide> 'src/ngAnimate/animateChildrenDirective.js',
<ide> 'src/ngAnimate/animateCs... | 12 |
PHP | PHP | fix bug in eloquent model | 02cb96a00842a082d240b34101d5c5ddbd97e02b | <ide><path>laravel/database/eloquent/model.php
<ide> public function get_dirty()
<ide> */
<ide> public function get_key()
<ide> {
<del> return array_get($this->original, static::$key);
<add> return array_get($this->attributes, static::$key);
<ide> }
<ide>
<ide> /** | 1 |
Python | Python | add test for python 3.4 _ast.nameconstant | 8edccea5a3d7248de4074a7b43ad13bd81f7a535 | <ide><path>numpy/lib/tests/test_utils.py
<ide> def test_deprecate_fn():
<ide> assert_('old_func3' in new_func3.__doc__)
<ide> assert_('new_func3' in new_func3.__doc__)
<ide>
<add>def test_safe_eval_nameconstant():
<add> # Test if safe_eval supports Python 3.4 _ast.NameConstant
<add> utils.safe_eval('None... | 1 |
Text | Text | add release notes for v1.5.7 | 458ac0b44c63326110d45f455719840364427bdc | <ide><path>CHANGELOG.md
<add><a name="1.5.7"></a>
<add># 1.5.7 hexagonal-circumvolution (2016-06-15)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$compile:**
<add> - don't add merged attributes twice to $attrs
<add> ([ebbaa4ac](https://github.com/angular/angular.js/commit/ebbaa4ac5e3559df9267203438a0bb18c2d3b7d8),
<a... | 1 |
Ruby | Ruby | fix symbol in shell env | dff3fc9d2f9db62ec555e75b7902e699a828c6a4 | <ide><path>Library/Homebrew/formula.rb
<ide> def generate_completions_from_executable(base_name: name,
<ide> end
<ide>
<ide> script_path.dirname.mkpath
<del> script_path.write Utils.safe_popen_read({ "SHELL" => shell }, executable, cmd, shell_parameter)
<add> script_path.write Utils.safe_popen_re... | 1 |
Javascript | Javascript | replace var with let | 364ddd8ee6717aa2a69cfc86f6ef3ed518097b69 | <ide><path>lib/internal/cluster/utils.js
<ide> module.exports = {
<ide> };
<ide>
<ide> const callbacks = new Map();
<del>var seq = 0;
<add>let seq = 0;
<ide>
<ide> function sendHelper(proc, message, handle, cb) {
<ide> if (!proc.connected)
<ide> function internal(worker, cb) {
<ide> if (message.cmd !== 'NODE_CL... | 1 |
Javascript | Javascript | improve internal `iserror()` validation | 2b5f2bc68b67621b42f6a698792532d1149e6196 | <ide><path>lib/internal/util.js
<ide> const {
<ide> arrow_message_private_symbol: kArrowMessagePrivateSymbolIndex,
<ide> decorated_private_symbol: kDecoratedPrivateSymbolIndex
<ide> } = internalBinding('util');
<add>const {
<add> isNativeError
<add>} = internalBinding('types');
<ide>
<ide> const { errmap } = inte... | 3 |
Ruby | Ruby | fix local json handling for bottle rebuilds | eb360dbbb054dd047b3c522c88c2c894442d8a5e | <ide><path>Library/Homebrew/utils/bottles.rb
<ide> def resolve_formula_names(bottle_file)
<ide> receipt_file = file_from_bottle(bottle_file, receipt_file_path)
<ide> tap = Tab.from_file_content(receipt_file, "#{bottle_file}/#{receipt_file_path}").tap
<ide> "#{tap}/#{name}" if tap.present? ... | 1 |
PHP | PHP | clarify assoc array in docblock | 746192c78518eea5b61a3bf50a742b5be094673c | <ide><path>src/Mailer/Email.php
<ide> public function jsonSerialize(): array
<ide> * Configures an email instance object from serialized config.
<ide> *
<ide> * @param array<string, mixed> $config Email configuration array.
<del> * @return $this Configured email instance.
<add> * @return $this
<i... | 12 |
Javascript | Javascript | reduce verbosity of output in test/webbrowser.js | cc0805a9960da2cf18cc7be1201e42b4d849406b | <ide><path>test/webbrowser.js
<ide> WebBrowser.prototype = {
<ide> return pgrepStatus === 1; // "No process matched.", per man pgrep.
<ide> };
<ide> }
<del> function execAsyncNoStdin(cmd, silent, onExit) {
<add> function execAsyncNoStdin(cmd, onExit) {
<ide> var proc = shelljs.exec(cmd, {
... | 1 |
Javascript | Javascript | fix merge issue | 3addd270475202983868f29a05e97d65b0286747 | <ide><path>lib/ModuleParseError.js
<ide> class ModuleParseError extends WebpackError {
<ide> let message = "Module parse failed: " + (err && err.message);
<ide> let loc = undefined;
<ide>
<del> if (loaders.length >= 1) {
<add> if (!loaders) {
<add> message +=
<add> "\nYou may need an appropriate loader to h... | 1 |
Python | Python | fix missing initializer warning in js2c.py | c4fa77a5ecd801883e6c9a801c4cd2a903ff134b | <ide><path>tools/js2c.py
<ide> def ReadMacros(lines):
<ide>
<ide> %(native_lines)s\
<ide>
<del> { NULL, NULL } /* sentinel */
<add> { NULL, NULL, 0 } /* sentinel */
<ide>
<ide> };
<ide> | 1 |
Ruby | Ruby | remove unused code | c973161c388dbf4e175c59fd8939b794c5f662cb | <ide><path>activesupport/lib/active_support/multibyte/chars.rb
<ide> def translate_offset(byte_offset) #:nodoc:
<ide> end
<ide> end
<ide>
<del> def justify(integer, way, padstr=' ') #:nodoc:
<del> raise ArgumentError, "zero width padding" if padstr.length == 0
<del> padsize =... | 1 |
Ruby | Ruby | remove default values from env.{cc,cxx} | fb50be432a3231af65af4fa2a70c122f93d55c66 | <ide><path>Library/Homebrew/extend/ENV/shared.rb
<ide> def remove keys, value
<ide> end if value
<ide> end
<ide>
<del> def cc; self['CC'] or "cc"; end
<del> def cxx; self['CXX'] or "c++"; end
<add> def cc; self['CC']; end
<add> def cxx; self['CXX']; end
<ide> def ... | 1 |
Javascript | Javascript | remove deprecated methods | 8a87b29034c663d073e2b6de766d3bee5c2e2d1e | <ide><path>lib/readline.js
<ide> const kHistorySize = 30;
<ide>
<ide> const util = require('util');
<ide> const debug = util.debuglog('readline');
<del>const internalUtil = require('internal/util');
<ide> const inherits = util.inherits;
<ide> const Buffer = require('buffer').Buffer;
<ide> const EventEmitter = require(... | 2 |
PHP | PHP | apply suggestions from code review | 81dfee71fb4ba7de0ad74fad8107b6f6e64ef746 | <ide><path>src/Form/FormProtector.php
<ide> protected function sortedUnlockedFields(array $formData): array
<ide> *
<ide> * @param string $url Form URL.
<ide> * @param string $sessionId Session Id.
<del> * @return array<string, mixed> The token data.
<add> * @return array<string, string> The toke... | 4 |
Python | Python | remove unused kwargs | 9a86321b11b0ee03d8803d7e21b50012252a76ac | <ide><path>src/transformers/generation_tf_utils.py
<ide> def generate(
<ide> pad_token_id = eos_token_id
<ide>
<ide> # current position and vocab size
<del> cur_len = shape_list(input_ids)[1]
<add> cur_len = shape_list(input_ids)[1] # unused
<ide> vocab_size = self.config.voc... | 1 |
PHP | PHP | pass verification url to callback | ccf9d4a5bd10f2c976c341f3b7fdae09403719e1 | <ide><path>src/Illuminate/Auth/Notifications/VerifyEmail.php
<ide> public function via($notifiable)
<ide> */
<ide> public function toMail($notifiable)
<ide> {
<add> $verificationUrl = $this->verificationUrl($notifiable);
<add>
<ide> if (static::$toMailCallback) {
<del> return call... | 1 |
Python | Python | fix redefinition of ret type from str to tuple | c93ee098d19c5f5cc1431c0fd3a85786c434da5d | <ide><path>glances/password_list.py
<ide> def __init__(self, config=None, args=None):
<ide>
<ide> def load(self, config):
<ide> """Load the password from the configuration file."""
<del> password_dict = []
<add> password_dict = {}
<ide>
<ide> if config is None:
<ide> logg... | 1 |
Python | Python | update max_sub_array.py (#597) | 39912aed5781faa77e2c85e4fb79acd7170cabda | <ide><path>dynamic_programming/max_sub_array.py
<ide> def find_max_cross_sum(A,low,mid,high):
<ide> tim.append(end-strt)
<ide> print("No of Inputs Time Taken")
<ide> for i in range(len(inputs)):
<del> print((inputs[i],'\t\t',tim[i]))
<add> print(inputs[i],'\t\t',tim[i])
<ide>... | 1 |
Javascript | Javascript | use isfunction instead of instanceof function | 1f8efb4e237bebbe17edaab4208f10de4f2416f4 | <ide><path>src/lib/format/format.js
<ide> import zeroFill from '../utils/zero-fill';
<add>import isFunction from '../utils/is-function';
<ide>
<ide> export var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|h... | 1 |
Python | Python | fix syntax errors | fa218e648abc4f2c2d8a897ed0b4f2f050ecaca4 | <ide><path>transformers/modeling_bert.py
<ide> def transpose_for_scores(self, x):
<ide> def forward(self, hidden_states, attention_mask=None, head_mask=None, encoder_hidden_states=None):
<ide> mixed_key_layer = self.key(hidden_states)
<ide> mixed_value_layer = self.value(hidden_states)
<del> ... | 1 |
Javascript | Javascript | run purge before stats for cache | f5a5edd78d15436f1fa3a1deb0fe0cc2b67c563e | <ide><path>lib/Compiler.js
<ide> Compiler.prototype.watch = function(watchOptions, handler) {
<ide>
<ide> Compiler.prototype.run = function(callback) {
<ide> var startTime = new Date().getTime();
<del> this.applyPluginsAsync("run", this, function(err) {
<add> this.applyPluginsAsync("before-run", this, function(err) {... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.