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 | initialize tweens immediately | 936963e357d7d2e3e5b4f14f935276c4501ea54e | <ide><path>d3.js
<ide> function d3_transform_transition(nodes) {
<ide>
<ide> // Bind the active transition to the node.
<ide> function bind(interval) {
<del> var s = d3_transform_stack;
<ide> for (i = 0; i < m; ++i) {
<ide> (o = nodes[i]).node.interval = interval;
<ide> }
<del> try {
<del> ... | 3 |
Python | Python | add get_user method | 72722703110fc66d4919d6779297e3b85f253174 | <ide><path>libcloud/common/openstack_identity.py
<ide> def get_domain(self, domain_id):
<ide> result = self._to_domain(data=response.object['domain'])
<ide> return result
<ide>
<add> def get_user(self, user_id):
<add> """
<add> Get a user account by ID.
<add>
<add> :param user_i... | 2 |
Python | Python | add parent argument | 360a702ecdf468bcdc7e14906d09cdfe1860e764 | <ide><path>spacy/cli/pretrain.py
<ide> def pretrain_cli(
<ide> # TODO: What's the solution here? How do we handle optional blocks?
<ide> msg.fail("The [pretraining] block in your config is empty", exits=1)
<ide> if not output_dir.exists():
<del> output_dir.mkdir()
<add> output_dir.mkdi... | 1 |
PHP | PHP | remove pseudo-mock code | 2335ef1a13db258a0b4c3fdafe45cae7cfc82708 | <ide><path>lib/Cake/Test/Case/Network/CakeRequestTest.php
<ide>
<ide> class TestCakeRequest extends CakeRequest {
<ide>
<del> public $input;
<del>
<ide> public function reConstruct($url = 'some/path', $parseEnvironment = true) {
<ide> $this->_base();
<ide> if (empty($url)) {
<ide> public function reConstruct($ur... | 1 |
Javascript | Javascript | fix typo in query param test description | 0be28eb608971605ae2f041940ffc2d98a8ffe27 | <ide><path>packages/ember/tests/routing/query_params_test.js
<ide> QUnit.test('warn user that routes query params configuration must be an Object,
<ide> }, 'You passed in `[{"commitBy":{"replace":true}}]` as the value for `queryParams` but `queryParams` cannot be an Array');
<ide> });
<ide>
<del>QUnit.test('handle r... | 1 |
Go | Go | fix permissions on add/copy | cfc24769a26e825e4267cbfdd59af807e27508b9 | <ide><path>builder/internals.go
<ide> func copyAsDirectory(source, destination string) error {
<ide> }
<ide>
<ide> func fixPermissions(source, destination string, uid, gid int) error {
<add> // The copied root permission should not be changed for previously existing
<add> // directories.
<add> s, err := os.Stat(destin... | 2 |
Javascript | Javascript | add more punycode tests | 10d4bd8266f7983929b57f6394fb5d99d60fa711 | <ide><path>test/simple/test-punycode.js
<ide> // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
<ide> // THE SOFTWARE.
<ide>
<del>punycode = require('punycode');
<del>assert = require('assert');
<add>var punycode = require('punycode');
<add>var assert = require('assert');
<ide>
<ide> assert... | 1 |
PHP | PHP | rewrite the check to work on php < 5.6.0 and hhvm | ef90fbb6f5d0bfd5bc6cfcc469d0221112f361d6 | <ide><path>src/Illuminate/Validation/Validator.php
<ide> protected function validateNotIn($attribute, $value, $parameters)
<ide> */
<ide> protected function validateNoDuplicates($attribute, $value, $parameters)
<ide> {
<del> $data = array_filter(Arr::dot($this->data), function ($key) use ($attribute... | 1 |
Javascript | Javascript | use different promise check | f270f50caee371c4e9952a7a9547e37b2a084d60 | <ide><path>lib/cache/PackFileCacheStrategy.js
<ide> class PackContent {
<ide> this.logger.time(timeMessage);
<ide> }
<ide> const value = this.lazy();
<del> if (value && typeof value.then === "function") {
<add> if ("then" in value) {
<ide> return value.then(data => {
<ide> const map = data.map;
<ide> ... | 1 |
Python | Python | fix gcslistobjectsoperator docstring | c8c4a4272354d090ebf01a5cf7a9f49026e65511 | <ide><path>airflow/providers/google/cloud/operators/gcs.py
<ide> class GCSListObjectsOperator(BaseOperator):
<ide> List all objects from the bucket with the given string prefix and delimiter in name.
<ide>
<ide> This operator returns a python list with the name of objects which can be used by
<del> `xcom` ... | 1 |
Text | Text | add note about case-sensitivity | 1829d7120a86c85f440d753a89e5e60d1faea1f0 | <ide><path>extra/DEVELOPER_DOCS/ExplosionBot.md
<ide> Some things to note:
<ide> @explosion-bot please test_gpu --run-on spacy-transformers --run-on-branch master --spacy-branch current_pr
<ide> ```
<ide>
<del> This will launch the GPU pipeline for the `spacy-transformers` repo on its `master` branch, using the c... | 1 |
Python | Python | remove dropout quantization | 7988fedfdf4274bb5f056f88678c33d9aac2287f | <ide><path>official/projects/qat/nlp/modeling/layers/mobile_bert_layers.py
<ide> def __init__(self,
<ide> bias_axes='d',
<ide> kernel_initializer=initializer,
<ide> name='bottleneck_output/dense')
<del> dropout_layer = _output_quantize(
<del> tf.keras.layers.Dropout(
<del> s... | 2 |
Text | Text | fix broken link | 3bb0241dee98ead81e350a39e32a35656bd5665d | <ide><path>docs/charts/scatter.md
<ide> Namespaces:
<ide> * `options.elements.point` - options for all [point elements](../configuration/elements.md#point-configuration)
<ide> * `options` - options for the whole chart
<ide>
<del>The scatter chart supports all of the same properties as the [line chart](./charts/line.md... | 1 |
PHP | PHP | add deprecations in console package | b3684742418a92487f8969e41a04ef675cf91104 | <ide><path>src/Console/ConsoleIo.php
<ide> public function setOutputAs($mode)
<ide> */
<ide> public function outputAs($mode)
<ide> {
<add> deprecationWarning('ConsoleIo::outputAs() is deprecated. Use ConsoleIo::setOutputAs() instead.');
<ide> $this->_out->setOutputAs($mode);
<ide> }
<ide... | 9 |
Python | Python | add missing comma | ffe2c6d558a4d7843a1efed0af5bd0908892ef70 | <ide><path>rest_framework/settings.py
<ide> ),
<ide> 'DEFAULT_PARSERS': (
<ide> 'rest_framework.parsers.JSONParser',
<del> 'rest_framework.parsers.FormParser'
<add> 'rest_framework.parsers.FormParser',
<ide> 'rest_framework.parsers.MultiPartParser'
<ide> ),
<ide> 'DEFAULT_A... | 1 |
Text | Text | fix typo in esm.md | 359a23234892acc6f481f5c90ca27c2435e32a01 | <ide><path>doc/api/esm.md
<ide> node --experimental-modules my-app.mjs
<ide>
<ide> Only the CLI argument for the main entry point to the program can be an entry
<ide> point into an ESM graph. Dynamic import can also be used with the flag
<del>`--harmony-dynamic-import` to create entry points into ESM graphs at run tim... | 1 |
PHP | PHP | fix some errors in view package | 081b0b9f6ec59ad8d7838b6e3688f72157f5564a | <ide><path>src/Utility/Text.php
<ide> public static function transliterate($string, $transliteratorId = null)
<ide> * For e.g. this option can be set to '.' to generate clean file names.
<ide> *
<ide> * @param string $string the string you want to slug
<del> * @param array $options If string it wil... | 11 |
Javascript | Javascript | use nested module api | 00049b9863f5558a99e663432a27e4d4ffb43d14 | <ide><path>tests/node/template-compiler-test.js
<ide> var test = QUnit.test;
<ide>
<ide> var templateCompiler;
<ide>
<del>module('ember-template-compiler.js', {
<del> beforeEach: function() {
<add>module('ember-template-compiler.js', function(hooks) {
<add> hooks.beforeEach(function() {
<ide> templateCompiler =... | 1 |
Ruby | Ruby | expand coverage of json gem tests | a6b2ace016202fd38e121f5e7075c842e3e61aa3 | <ide><path>activesupport/test/core_ext/object/json_gem_encoding_test.rb
<ide> class JsonGemEncodingTest < ActiveSupport::TestCase
<ide>
<ide> JSONTest::EncodingTestCases.constants.each_with_index do |name|
<ide> JSONTest::EncodingTestCases.const_get(name).each_with_index do |(subject, _), i|
<del> test("tes... | 1 |
Text | Text | remove unnecessary model_type arg in example | 492b352ab667d9765d1078ee5dc4466ba260a241 | <ide><path>examples/text-classification/README.md
<ide> export GLUE_DIR=/path/to/glue
<ide> export TASK_NAME=MRPC
<ide>
<ide> python run_glue.py \
<del> --model_type bert \
<ide> --model_name_or_path bert-base-cased \
<ide> --task_name $TASK_NAME \
<ide> --do_train \ | 1 |
Text | Text | add versions documentation | bc0aa4e64ce4eaf53476aa448b71b711feb9939e | <ide><path>docs/Formula-Cookbook.md
<ide> A formula is a package definition written in Ruby. It can be created with `brew
<ide> | **Keg** | The installation prefix of a **Formula** | `/usr/local/Cellar/foo/0.1` |
<ide> | **opt prefix** | A symlink to the acti... | 3 |
Python | Python | fix unauthorized access exception for solusvm | 6092330debb3cf7e4c8063c33bcee93af23685cf | <ide><path>libcloud/common/solusvm.py
<ide> def success(self):
<ide> return self.status in [httplib.OK, httplib.CREATED, httplib.NO_CONTENT]
<ide>
<ide> def parse_error(self):
<del>
<ide> if self.status == httplib.UNAUTHORIZED:
<ide> body = self.parse_body()
<del> error = bod... | 2 |
Javascript | Javascript | handle opacity in the tooltip update method | 0fa03fad24040d83b713727f2158919f223387b4 | <ide><path>src/core/core.tooltip.js
<ide>
<ide> var ctx = this._chart.ctx;
<ide>
<del> var element = this._active[0],
<del> labelColors = [],
<del> tooltipPosition;
<del>
<del> var tooltipItems = [];
<del>
<del> if (this._options.tooltips.mode == 'single') {
<del> var yScale = element._yScale || ele... | 1 |
Text | Text | add missing word in instructions - step 31 | 73e3565707e49543ff035c9311fa2abfde7b5b55 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/step-031.md
<ide> The dropdown options are currently empty. To give them content, add the followin
<ide> ```md
<ide> (select one)
<ide> freeCodeCamp News
<del>freeCodeCamp YouTube
<add>freeCodeCamp YouT... | 1 |
Python | Python | preserve the request context in debug mode | 7b5015010bc8c2a2d56c7c50b37e5b9facdad102 | <ide><path>flask.py
<ide> import sys
<ide>
<ide> from threading import local
<del>from contextlib import contextmanager
<ide> from jinja2 import Environment, PackageLoader, FileSystemLoader
<ide> from werkzeug import Request as RequestBase, Response as ResponseBase, \
<ide> LocalStack, LocalProxy, create_environ,... | 1 |
Python | Python | fix model package loading from link | ea167e14dbd32e902fa693c83620b56f478cb277 | <ide><path>spacy/util.py
<ide> def load_model(name, **overrides):
<ide>
<ide> def load_model_from_link(name, **overrides):
<ide> """Load a model from a shortcut link, or directory in spaCy data path."""
<del> spec = importlib.util.spec_from_file_location('model', get_data_path() / name)
<add> init_file = get... | 1 |
PHP | PHP | use bytcode sequence for unicode ellipsis | c7fda5674e221bfb70aa315505cf58fa5d0cce2e | <ide><path>lib/Cake/Utility/String.php
<ide> public static function truncate($text, $length = 100, $options = array()) {
<ide> if (isset($options['ending'])) {
<ide> $default['ellipsis'] = $options['ending'];
<ide> } elseif (!empty($options['html']) && Configure::read('App.encoding') == 'UTF-8') {
<del> $defau... | 1 |
Javascript | Javascript | add some failing tests for path.join | 8c0e87f9c333f3519b6d6439099f669a316ed598 | <ide><path>test/simple/test-path.js
<ide> assert.equal(path.extname("file."), ".");
<ide>
<ide> assert.equal(path.join(".", "fixtures/b", "..", "/b/c.js"), "fixtures/b/c.js");
<ide> assert.equal(path.join("/foo", "../../../bar"), "/bar");
<add>assert.equal(path.join('./'), '.');
<add>assert.equal(path.join('.'), '.');... | 1 |
Javascript | Javascript | add the rest of the tests from | f3ed85359760121ce71ab8f61d9167857f4b24bc | <ide><path>packages/ember-glimmer/tests/integration/components/contextual-components-test.js
<ide> moduleFor('Components test: contextual components', class extends RenderingTest
<ide> this.assertText('Hodi Sigmundur 33');
<ide> }
<ide>
<add> ['@test nested components with positional params at middle layer ar... | 1 |
Javascript | Javascript | remove unnecessary import aliases | d904e7042d6e02725aec3ede207efcb980512ab6 | <ide><path>packages/@ember/-internals/glimmer/tests/integration/application/actions-test.js
<ide> import Controller from '@ember/controller';
<del>import { moduleFor, ApplicationTest, RenderingTest } from '../../utils/test-case';
<add>import { moduleFor, ApplicationTestCase, RenderingTestCase } from '../../utils/test-c... | 67 |
Javascript | Javascript | fix a typo in {{bindattr}} doc | 06bae5ad65bfcbf1c375bb79f40307bd55536b0e | <ide><path>packages/ember-handlebars/lib/helpers/binding.js
<ide> EmberHandlebars.registerHelper('unless', function(context, options) {
<ide> Results in the following rendered output:
<ide>
<ide> ```html
<del> <img class=":class-name-to-always-apply">
<add> <img class="class-name-to-always-apply">
<ide> ```
<i... | 1 |
Javascript | Javascript | initialize all measurements to 0 | 656cabda0f46136ee46528313cbb94ecaff6127c | <ide><path>src/text-editor-component.js
<ide> class TextEditorComponent {
<ide> this.didMouseDownOnContent = this.didMouseDownOnContent.bind(this)
<ide> this.lineTopIndex = new LineTopIndex()
<ide> this.updateScheduled = false
<del> this.measurements = null
<add> this.hasInitialMeasurements = false
<a... | 1 |
Javascript | Javascript | add some test cases for validateoffsetlengthwrite | a9d9d7689d326d363c8d9546a80ba76f4cd0decb | <ide><path>test/parallel/test-fs-util-validateoffsetlengthwrite.js
<add>// Flags: --expose-internals
<add>'use strict';
<add>
<add>const common = require('../common');
<add>
<add>const { validateOffsetLengthWrite } = require('internal/fs/utils');
<add>const { kMaxLength } = require('buffer');
<add>
<add>// RangeError w... | 1 |
Python | Python | add unicode declaration | e6f1a5d0a13df8bc84609682aaaade5166612218 | <ide><path>spacy/en/lemmatizer/__init__.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<ide>
<ide> from .lookup import LOOKUP
<ide> from ._adjectives import ADJECTIVES | 1 |
Python | Python | improve histogram2d() example | 2a86f356db2cb061b08be03813b77685dd149e2a | <ide><path>numpy/lib/twodim_base.py
<ide> def histogram2d(x, y, bins=10, range=None, normed=False, weights=None):
<ide> Construct a 2-D histogram with variable bin width. First define the bin
<ide> edges:
<ide>
<del> >>> xedges = [0, 1, 1.5, 3, 5]
<add> >>> xedges = [0, 1, 3, 5]
<ide> >>> yedges = [0... | 1 |
Text | Text | update the wording for 'pwa' | b7564a58866be83773c09a34a318e2e0f999884f | <ide><path>guide/chinese/progressive-web-apps/index.md
<ide> localeTitle: 渐进式Web应用程序
<ide> ---
<ide> ## 渐进式Web应用程序
<ide>
<del>渐进式网络应用程序或“PWA”似乎不仅仅是一种时尚,而是一种从根本上不同的方式来处理网站可以和应该在您正在查看的任何平台上的内容。
<add>渐进式网络应用程序或“PWA”似乎不仅仅是一种时尚,而是用另一种不同的方式来处理网站,也可以查看任何平台上的内容。
<ide>
<ide> PWA可以将部分自身安装到设备上以供离线查看,使用服务工作人员在连接可用时根据需要提供内容,最重要的是... | 1 |
Python | Python | fix typo in stopwords (fixes #689) | 5031a015e2b14b5795e01385613bf245d816741d | <ide><path>spacy/en/language_data.py
<ide> cry de describe detail did didn do does doesn doing don done down due
<ide> during each eg eight either eleven else elsewhere empty enough etc
<ide> even ever every everyone everything everywhere except few fifteen
<del>fify fill find fire first five for former formerly forty ... | 1 |
Javascript | Javascript | prefix boolean flags w/java conventions | 01fc2a683a92ddf5d069a33eb92f6af2c37582c2 | <ide><path>packages/ember-application/lib/system/application-instance.js
<ide> let ApplicationInstance = EmberObject.extend(RegistryProxy, ContainerProxy, {
<ide>
<ide> registry.register('renderer:-dom', {
<ide> create() {
<del> return new Renderer(new DOMHelper(options.document), options.intera... | 4 |
Javascript | Javascript | remove defaultprops from flatlist | 7d5895df4e3c57ebfa1c146cadc989497b006623 | <ide><path>Libraries/Lists/FlatList.js
<ide> type OptionalProps<ItemT> = {|
<ide> /**
<ide> * Multiple columns can only be rendered with `horizontal={false}` and will zig-zag like a
<ide> * `flexWrap` layout. Items should all be the same height - masonry layouts are not supported.
<add> *
<add> * The defaul... | 1 |
Go | Go | change the base filesystem size in unit tests | 48070274ee93bf0d4cef7486a4ec19c4d97ac9ce | <ide><path>runtime_test.go
<ide> func cleanupDevMapper() {
<ide>
<ide> func init() {
<ide> os.Setenv("TEST", "1")
<add> os.Setenv("DOCKER_LOOPBACK_DATA_SIZE", "209715200") // 200MB
<add> os.Setenv("DOCKER_LOOPBACK_META_SIZE", "104857600") // 100MB
<add> os.Setenv("DOCKER_BASE_FS_SIZE", "157286400") // 150MB
<ide>
<i... | 1 |
Ruby | Ruby | fix a subtle bug involving rails_root | 8baba5f13ea67f62d78318490f833e43c9674664 | <ide><path>railties/lib/rails/deprecation.rb
<ide> def initialize(old, new)
<ide> def method_missing(meth, *args, &block)
<ide> ActiveSupport::Deprecation.warn("#{@old} is deprecated. Please use #{@new}") unless @warned
<ide> @warned = true
<del> @target.call.send(meth, *args, &block)
<add>
<add> ... | 1 |
Ruby | Ruby | log streaming downloads | e03add224899e0a10e7cfa28c09e68c8b9c920ed | <ide><path>activestorage/lib/active_storage/log_subscriber.rb
<ide> def service_download(event)
<ide> info event, color("Downloaded file from key: #{key_in(event)}", BLUE)
<ide> end
<ide>
<add> alias_method :service_streaming_download, :service_download
<add>
<ide> def service_delete(event)
<ide> ... | 1 |
Python | Python | open src and dst in binary for samba copy | 63ca12c0f2b4b6db1c46dd55405f7055dcb1c02c | <ide><path>airflow/providers/samba/hooks/samba.py
<ide> def setxattr(self, path, attribute, value, flags=0, follow_symlinks=True):
<ide>
<ide> def push_from_local(self, destination_filepath: str, local_filepath: str):
<ide> """Push local file to samba server"""
<del> with open(local_filepath, "rb") ... | 1 |
Javascript | Javascript | build three.js with cinematiccamera | 2321132bf8fccb1b93e7df1053352191810b31db | <ide><path>build/three.js
<ide> THREE.PerspectiveCamera.prototype.toJSON = function ( meta ) {
<ide> * @author mrdoob / http://mrdoob.com/
<ide> * @author greggman / http://games.greggman.com/
<ide> * @author zz85 / http://www.lab4games.net/zz85/blog
<del> * @author kaypikun
<add> * @author kaypiKun
<ide> */
... | 2 |
Javascript | Javascript | prevent aspect from affecting rotate speed | 1b56759e45641e6cf5c635c48406435de8fd25e5 | <ide><path>examples/js/controls/OrbitControls.js
<ide> THREE.OrbitControls = function ( object, domElement ) {
<ide>
<ide> var element = scope.domElement === document ? scope.domElement.body : scope.domElement;
<ide>
<del> // rotating across whole screen goes 360 degrees around
<del> rotateLeft( 2 * Math.PI * rot... | 1 |
Python | Python | use primarykeyrelatedfield pkfield in openapi | b79099f7baf104336bfe7fff7a8c57bc451a8d96 | <ide><path>rest_framework/schemas/openapi.py
<ide> def map_field(self, field):
<ide> 'items': self.map_field(field.child_relation)
<ide> }
<ide> if isinstance(field, serializers.PrimaryKeyRelatedField):
<add> if getattr(field, "pk_field", False):
<add> retur... | 2 |
Javascript | Javascript | modernize js and tighten equality checking | 759cf172280e8ce449a53e97f554fcd8e96e1de2 | <ide><path>test/parallel/test-net-binary.js
<ide> /* eslint-disable strict */
<ide> require('../common');
<del>var assert = require('assert');
<del>var net = require('net');
<add>const assert = require('assert');
<add>const net = require('net');
<ide>
<ide> var binaryString = '';
<ide> for (var i = 255; i >= 0; i--) {... | 1 |
PHP | PHP | fix zero parameter for routes | 910cc7473c0772032a8ac4fedb27e695ee69f9f0 | <ide><path>src/Illuminate/Routing/RouteUrlGenerator.php
<ide> protected function replaceRouteParameters($path, array &$parameters)
<ide> protected function replaceNamedParameters($path, &$parameters)
<ide> {
<ide> return preg_replace_callback('/\{(.*?)(\?)?\}/', function ($m) use (&$parameters) {
<del> ... | 2 |
Java | Java | fix protobufdecoder handling of split message size | 91de8d265e332ba378f191105592190d4f90bb48 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/protobuf/ProtobufDecoder.java
<ide> private class MessageDecoderFunction implements Function<DataBuffer, Iterable<?
<ide>
<ide> private int messageBytesToRead;
<ide>
<add> private int offset;
<add>
<ide>
<ide> public MessageDecoderFunction(Resol... | 2 |
Javascript | Javascript | add types to environmentplugin | 2d9db1a1f633610b5df6afdbe5455f9ba9274965 | <ide><path>lib/EnvironmentPlugin.js
<ide>
<ide> "use strict";
<ide>
<add>/** @typedef {import("./Compiler")} Compiler */
<add>
<add>const WebpackError = require("./WebpackError");
<ide> const DefinePlugin = require("./DefinePlugin");
<ide>
<ide> const needsEnvVarFix =
<ide> class EnvironmentPlugin {
<ide> }
<ide> ... | 1 |
Python | Python | unbreak non-linux platforms | 075ba72d79c6fb1a7b5f51e731273f4ddde1e35c | <ide><path>unitest-restful.py
<ide> import requests
<ide> import json
<ide>
<del>from glances.core.glances_globals import (
<del> appname,
<del> is_linux,
<del> version
<del>)
<add>from glances.core.glances_globals import version
<ide>
<ide> SERVER_PORT = 61234
<ide> URL = "http://localhost:%s/api/2" % SERVE... | 1 |
Javascript | Javascript | keep existing properties in object.userdata | d7a2400097fc9c9698641839e97020d09a8f0134 | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide>
<ide> if ( typeof gltfDef.extras === 'object' ) {
<ide>
<del> object.userData = gltfDef.extras;
<add> object.userData = Object.assign(object.userData, gltfDef.extras);
<ide>
<ide> } else {
<ide> | 1 |
Java | Java | update stomp support to reactor-netty 0.6 | 2802926c1dae64c1ec067effb4d22c616e1183ba | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/ReactorNettyTcpConnection.java
<ide> public ReactorNettyTcpConnection(NettyInbound inbound, NettyOutbound outbound,
<ide>
<ide> @Override
<ide> public ListenableFuture<Void> send(Message<P> message) {
<del> ByteBuf byteBuf = this.in... | 1 |
Python | Python | fix mypy violations | c31902e11abbafa316ffd4151083701aae3e41a1 | <ide><path>libcloud/compute/base.py
<ide> )
<ide> else:
<ide> SSH_TIMEOUT_EXCEPTION_CLASSES = (
<del> IOError,
<add> IOError, # type: ignore
<ide> socket.gaierror, # type: ignore
<ide> socket.error,
<ide> ) # type: ignore | 1 |
PHP | PHP | apply fixes from styleci | 23f0c68b392613587b263b00b64476c9ba8d9dcc | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> protected function invalidJson($request, ValidationException $exception)
<ide> {
<ide> return response()->json([
<ide> 'message' => $exception->getMessage(),
<del> 'errors' => $exception->validator->errors()->messages()... | 1 |
PHP | PHP | add exists method to session store | b3606975fb65f6a65a592dd160f010017b6627dc | <ide><path>src/Illuminate/Session/SessionInterface.php
<ide> public function handlerNeedsRequest();
<ide> * @return void
<ide> */
<ide> public function setRequestOnHandler(Request $request);
<add>
<add> /**
<add> * Checks if an attribute exists.
<add> *
<add> * @param string|array $key
<a... | 3 |
Go | Go | add methods to walk endpoints and networks | 1c7c0f371baf30055526760d99e57cb48989beea | <ide><path>libnetwork/libnetwork_test.go
<ide> func TestBridge(t *testing.T) {
<ide> t.Fatal(err)
<ide> }
<ide>
<del> epList := network.Endpoints()
<del> if len(epList) != 1 {
<del> t.Fatal(err)
<del> }
<del> if ep != epList[0] {
<del> t.Fatal(err)
<del> }
<del>
<ide> if err := ep.Delete(); err != nil {
<ide> ... | 2 |
Ruby | Ruby | need a assert here in tests | ddf58fa9aa15bb2f58bc8779aab5bd273d35edde | <ide><path>activerecord/test/cases/mass_assignment_security_test.rb
<ide> def test_mass_assigning_invalid_attribute
<ide> end
<ide>
<ide> def test_mass_assigning_does_not_choke_on_nil
<del> Firm.new.assign_attributes(nil)
<add> assert_nil Firm.new.assign_attributes(nil)
<ide> end
<ide>
<ide> def test_ma... | 1 |
Javascript | Javascript | remove unnecessary comment | 87834537840b74744de8e136b027e4456080bb43 | <ide><path>test/helpers/privateMocks.js
<ide> function tthey(msg, vals, spec) {
<ide> }
<ide>
<ide> function xthey(msg, vals, spec) {
<del> /* jshint -W040 : ignore possible strict violation due to use of this */
<ide> baseThey(msg, vals, spec, xit);
<ide> }
<ide> | 1 |
Ruby | Ruby | fix incorrect behavior specified in test | 963c36004cfbe6c041460bab9c05718fc3bd7b58 | <ide><path>activesupport/test/multibyte_chars_test.rb
<ide> def test_slice_bang_returns_sliced_out_substring
<ide> def test_slice_bang_removes_the_slice_from_the_receiver
<ide> chars = 'úüù'.mb_chars
<ide> chars.slice!(0,2)
<del> assert_equal 'úü', chars
<add> assert_equal 'ù', chars
<ide> end
<ide>
... | 1 |
Javascript | Javascript | allow redefine nodes dynamically | 7b8aad6fded9cbb716b7225b024e26ab612f0251 | <ide><path>examples/js/materials/nodes/ConstNode.js
<ide>
<ide> THREE.ConstNode = function( name, useDefine ) {
<ide>
<del> name = name || THREE.ConstNode.PI;
<add> THREE.TempNode.call( this );
<ide>
<del> var rDeclaration = /^([a-z_0-9]+)\s([a-z_0-9]+)\s?\=(.*?)\;/i;
<del> var type = 'fv1';
<add> this.parse( name |... | 2 |
PHP | PHP | add `failed()` on interactswithqueue | 638e32ab500150b36956bc9942c5c9719883071d | <ide><path>src/Illuminate/Queue/InteractsWithQueue.php
<ide> trait InteractsWithQueue
<ide> */
<ide> protected $job;
<ide>
<add> /**
<add> * Get the number of times the job has been attempted.
<add> *
<add> * @return int
<add> */
<add> public function attempts()
<add> {
<add> r... | 1 |
Python | Python | fix typo in add_library | 0407363fe009c004da0e2c2bbbaa421cb64e160d | <ide><path>numpy/distutils/misc_util.py
<ide> def add_library(self,name,sources,**build_info):
<ide> f2py_options
<ide> language
<ide> """
<del> self._add_library(name, sources, install_dir, build_info)
<add> self._add_library(name, sources, None, build_info)
<ide>
<ide> ... | 1 |
PHP | PHP | remove unused import | 48f8a90c10b8490d0e442a8f0cf258471208009f | <ide><path>src/Illuminate/Filesystem/FilesystemAdapter.php
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<ide> use InvalidArgumentException;
<del>use Illuminate\Support\Carbon;
<ide> use Illuminate\Http\UploadedFile;
<ide> use Illuminate\Support\Collection;
<ide> use League\Flysystem\AdapterInterf... | 1 |
Python | Python | use tensorflow-datasets to load the data. | 56b5d0374a60fffc0c6f74d3da21529d310977fc | <ide><path>tutorials/image/cifar10/cifar10.py
<ide> from __future__ import division
<ide> from __future__ import print_function
<ide>
<del>import os
<ide> import re
<del>import sys
<del>import tarfile
<ide>
<del>from six.moves import urllib
<ide> import tensorflow as tf
<ide>
<ide> import cifar10_input
<ide> # Basic... | 4 |
Ruby | Ruby | add `determine_mirror` helper method | c983d85eea9d9579bfb8685c0e1fc73651cb8175 | <ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb
<ide> def bump_formula_pr
<ide> new_tag = args.tag
<ide> new_revision = args.revision
<ide> new_mirrors ||= args.mirror
<del> new_mirror ||= case new_url
<del> when %r{.*ftp.gnu.org/gnu.*}
<del> new_url.sub "ftp.gnu.org/gnu", "ftpmirror.gnu.o... | 1 |
Java | Java | add strategy for customizing id/timestamp headers | 95e25d4e6f14a20767f0bc62a1dd1052c2a5ca35 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/DefaultSimpMessageHeaderAccessorFactory.java
<del>/*
<del> * Copyright 2002-2014 the original author or authors.
<del> *
<del> * Licensed under the Apache License, Version 2.0 (the "License");
<del> * you may not use this file except in compli... | 11 |
Python | Python | add support for bitsandbytes | 3104036e7f1a3cd6e07a69d648c3597de32f72fe | <ide><path>src/transformers/testing_utils.py
<ide> from transformers import logging as transformers_logging
<ide>
<ide> from .deepspeed import is_deepspeed_available
<del>from .integrations import is_optuna_available, is_ray_available, is_sigopt_available, is_wandb_available
<add>from .integrations import (
<add> i... | 7 |
Ruby | Ruby | avoid a new hash object | a9c0eb439263a10937918a32b19d23478245d7f8 | <ide><path>actionpack/lib/action_controller/metal/url_for.rb
<ide> def url_options
<ide> :port => request.optional_port,
<ide> :protocol => request.protocol,
<ide> :_recall => request.path_parameters
<del> }.merge(super).freeze
<add> }.merge!(super).freeze
<ide>
<ide> if (same_o... | 1 |
Python | Python | change metric_key_prefix in seq2seq_trainer.py | 285131bfb4d05c2f15a4c22a4583bddaa2b47c7e | <ide><path>src/transformers/trainer_seq2seq.py
<ide> def predict(
<ide> self,
<ide> test_dataset: Dataset,
<ide> ignore_keys: Optional[List[str]] = None,
<del> metric_key_prefix: str = "eval",
<add> metric_key_prefix: str = "test",
<ide> max_length: Optional[int] = None,
<i... | 1 |
Mixed | Ruby | rotate default logs on each 100mb | cdce275f70f364567e34fa01c82c1193e7b1913c | <ide><path>guides/source/configuring.md
<ide> Below are the default values associated with each target version. In cases of co
<ide> - [`config.active_support.default_message_encryptor_serializer`](#config-active-support-default-message-encryptor-serializer): `:json`
<ide> - [`config.active_support.default_message_veri... | 5 |
Javascript | Javascript | add modifications to portuguese language | 1d13d7c486afcb8e9be0869b04a5045c4cd8d443 | <ide><path>underscore.date.languages.js
<add>exports.portuguese = function (){
<add> _date.months = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
<add> _date.monthsShort = ["Jan", "Feb", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set... | 1 |
PHP | PHP | fix cs errors | c481be289a10fdeadedff1f4c5219504effd5d0d | <ide><path>src/Core/HttpApplicationInterface.php
<ide> namespace Cake\Core;
<ide>
<ide> use Cake\Http\MiddlewareQueue;
<del>use Cake\Routing\RouteBuilder;
<ide> use Psr\Http\Server\RequestHandlerInterface;
<ide>
<ide> /**
<ide> interface HttpApplicationInterface extends RequestHandlerInterface
<ide> * @return vo... | 1 |
Text | Text | remove extra backtick | 36c212e25e524d4bd7d88c28cd72bc8259406391 | <ide><path>CPP_STYLE_GUIDE.md
<ide> class Foo {
<ide>
<ide> ### `snake_case` for C-like structs
<ide>
<del>For `plain C-like structs snake_case can be used.
<add>For plain C-like structs snake_case can be used.
<ide>
<ide> ```c++
<ide> struct foo_bar { | 1 |
Javascript | Javascript | remove app variable as it’s only used once | 61894816ba7ed65f498c373d039beb54164d5374 | <ide><path>packages/next-server/server/render.js
<ide> async function doRender (req, res, pathname, query, {
<ide> }
<ide> }
<ide>
<del> const app = <LoadableCapture report={moduleName => reactLoadableModules.push(moduleName)}>
<del> <EnhancedApp {...{
<del> Component: EnhancedComponent,
<del>... | 1 |
Text | Text | fix conflict text | d9bdb4f9bab15e35d6c4e084cc1b58d1ae0dc822 | <ide><path>laravel/documentation/changes.md
<ide>
<ide> ## Contents
<ide>
<del><<<<<<< HEAD:laravel/documentation/changes.md
<ide> - [Laravel 3.2](#3.2)
<ide> - [Upgrading From 3.1](#upgrade-3.2)
<del>=======
<ide> - [Laravel 3.1.9](#3.1.9)
<ide> - [Upgrading From 3.1.8](#upgrade-3.1.9)
<del>>>>>>>> master:changes.md... | 1 |
Text | Text | add a closing parenthesis | 3edafd9e891a2da7acb2b7f1db70dcff8e52f333 | <ide><path>curriculum/challenges/english/07-scientific-computing-with-python/scientific-computing-with-python-projects/arithmetic-formatter.md
<ide> The function will return the correct conversion if the supplied problems are pro
<ide> - Each operand (aka number on each side of the operator) has a max of four digits ... | 1 |
PHP | PHP | add withlength() immutable helper | f4d7d350c38629c21ce1936ede0b8e63d0434d92 | <ide><path>src/Network/Response.php
<ide> public function protocol($protocol = null)
<ide> *
<ide> * @param int|null $bytes Number of bytes
<ide> * @return int|null
<add> * @deprecated 3.4.0 Use withLength() to set length instead.
<ide> */
<ide> public function length($bytes = null)
<ide> ... | 2 |
Python | Python | fix warning in autoschema.get_serializer_fields() | 50acb9b2feb2fc3815e06cb881f81d3e16ff4864 | <ide><path>rest_framework/schemas/inspectors.py
<ide> def get_serializer_fields(self, path, method):
<ide> serializer = None
<ide> warnings.warn('{}.get_serializer() raised an exception during '
<ide> 'schema generation. Serializer fields will not be '
<del> ... | 1 |
PHP | PHP | add support for nested having in queries | af03b0d634c9341d2ff8f3c92160fdf37428f4dc | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function addNestedWhereQuery($query, $boolean = 'and')
<ide> return $this;
<ide> }
<ide>
<add> public function havingNested(Closure $callback, $boolean = 'and')
<add> {
<add> call_user_func($callback, $query = $this->forNestedWh... | 3 |
Python | Python | update interface for node driver | af698ec0f200991b599eb20f012243ebd3d0f01b | <ide><path>libcloud/interface.py
<ide> class INodeDriver(Interface):
<ide> NODE_STATE_MAP = Attribute("""A mapping of states found in the response to
<ide> their standard type. This is a constant.""")
<ide>
<del> def create_node(name, image, size, **kwargs):
<add> def create_nod... | 1 |
PHP | PHP | fix cs errors | 1357fd172f09388c4debdbdc34c0f993ef4490c1 | <ide><path>src/Database/Type/DateTimeType.php
<ide> protected function _setClassName(string $class, string $fallback): void
<ide> $class = $fallback;
<ide> }
<ide> $this->_className = $class;
<del> $this->_datetimeInstance = new $this->_className;
<add> $this->_datetimeInstance... | 7 |
Javascript | Javascript | add flow types to accessibilityexample.js | 2b49664cb8667a7381936746c8006c56968143c3 | <ide><path>packages/rn-tester/js/examples/Accessibility/AccessibilityExample.js
<ide> * LICENSE file in the root directory of this source tree.
<ide> *
<ide> * @format
<add> * @flow
<ide> */
<ide>
<ide> 'use strict';
<ide> const {
<ide> StyleSheet,
<ide> Platform,
<ide> } = require('react-native');
<add>import... | 1 |
Text | Text | clarify active record encryption docs | 85b2f7f2bd522abc18c569b3cd2144b44db2c787 | <ide><path>guides/source/active_record_encryption.md
<ide> Active Record Encryption
<ide>
<ide> This guide covers encrypting your database information using Active Record.
<ide>
<del>After reading this guide you will know:
<add>After reading this guide, you will know:
<ide>
<ide> * How to set up database encryption ... | 1 |
Javascript | Javascript | update panecontainer specs for async confirm | f960b43782c0020176fd1ad2686583647523d9e4 | <ide><path>spec/pane-container-spec.js
<ide> describe('PaneContainer', () => {
<ide> let confirm, params
<ide>
<ide> beforeEach(() => {
<del> confirm = spyOn(atom.applicationDelegate, 'confirm').andReturn(0)
<add> confirm = spyOn(atom.applicationDelegate, 'confirm').andCallFake((options, callback) => callbac... | 1 |
Text | Text | fix a typo in index.md | 1107073a9802fd8893e2ee3fa369c5d65beabb48 | <ide><path>docs/developers/index.md
<ide> Version 3 has a largely different API than earlier versions.
<ide>
<ide> Most earlier version options have current equivalents or are the same.
<ide>
<del>Please note - documentation for previous versions are available online or in the GitHub repo.
<add>Please note - document... | 1 |
Ruby | Ruby | encapsulate sleep margin when touching files | dda54de48ccf72caa447b251986c65d032d81bba | <ide><path>activesupport/test/file_update_checker_with_enumerable_test_cases.rb
<ide> def wait
<ide> # noop
<ide> end
<ide>
<add> def touch(files)
<add> sleep 1
<add> super
<add> end
<add>
<ide> def setup
<ide> @tmpdir = Dir.mktmpdir
<ide>
<ide> @files = %w(foo.rb bar.rb baz.rb).map {|f| "#{@t... | 1 |
Ruby | Ruby | remove trailing whitespace | cacdbb94374ebdc1c1fa5445467fca3d12ca31cd | <ide><path>activesupport/test/core_ext/array_ext_test.rb
<ide> class ArrayPrependAppendTest < Test::Unit::TestCase
<ide> def test_append
<ide> assert_equal [1, 2], [1].append(2)
<ide> end
<del>
<add>
<ide> def test_prepend
<ide> assert_equal [2, 1], [1].prepend(2)
<ide> end
<del>end
<ide>\ No newline ... | 1 |
Python | Python | update textcat example | 8f1d3fc3ee2b366a280c9ff61afb31102982bbae | <ide><path>examples/training/train_textcat.py
<ide> @plac.annotations(
<ide> model=("Model name. Defaults to blank 'en' model.", "option", "m", str),
<ide> output_dir=("Optional output directory", "option", "o", Path),
<del> n_examples=("Number of texts to train from", "option", "N", int),
<add> n_texts=(... | 1 |
PHP | PHP | shorten path line | aeda6b13cdfcd662089c30d428839965c7443ab9 | <ide><path>bootstrap/start.php
<ide> |
<ide> */
<ide>
<del>$framework = $app['path.base'].'/vendor/laravel/framework/src';
<add>$framework = $app['path.base'].
<add> '/vendor/laravel/framework/src';
<ide>
<ide> require $framework.'/Illuminate/Foundation/start.php';
<ide> | 1 |
Ruby | Ruby | use a `formulary`-like approach to load casks | d1995dad4bf76b447d9c97f1c2db99c6b3854b51 | <ide><path>Library/Homebrew/cask/lib/hbc.rb
<ide> require "hbc/cache"
<ide> require "hbc/cask"
<ide> require "hbc/cask_loader"
<del>require "hbc/without_source"
<ide> require "hbc/caskroom"
<ide> require "hbc/checkable"
<ide> require "hbc/cli"
<ide> require "hbc/pkg"
<ide> require "hbc/qualified_token"
<ide> require "h... | 18 |
Go | Go | handle errors during the creation of port mapper | 371225520fc86fa58fadd182730b958a0f7ef9ab | <ide><path>network.go
<ide> func newNetworkManager(bridgeIface string) (*NetworkManager, error) {
<ide> }
<ide>
<ide> portMapper, err := newPortMapper()
<add> if err != nil {
<add> return nil, err
<add> }
<ide>
<ide> manager := &NetworkManager{
<ide> bridgeIface: bridgeIface, | 1 |
Text | Text | add travix to inthewild.md | f62e690efeb80863855282d33d3e047d01af2db0 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [TokenAnalyst](https://github.com/tokenanalyst) [[@simonohanlon101](https://github.com/simonohanlon101), [@ankitchiplunkar](https://github.com/ankitchiplunkar), [@sidshekhar](https://github.com/sidshekhar), [@sp6pe](https://github.com/sp6pe... | 1 |
Python | Python | fix manifest generation | 4e99df67658a4e43f68e2fa5773267583ac586ea | <ide><path>numpy/distutils/mingw32ccompiler.py
<ide> def build_import_library():
<ide> # XXX: ideally, we should use exactly the same version as used by python. I
<ide> # submitted a patch to get this version, but it was only included for python
<ide> # 2.6.1 and above. So for versions below, we use a "best guess".
<de... | 1 |
Javascript | Javascript | fix nesting issues and add tests | 089c0f8b0e64f00e2629de07f35af03f01c34686 | <ide><path>src/directive/form.js
<ide> 'use strict';
<ide>
<ide>
<add>var nullFormCtrl = {
<add> $addControl: noop,
<add> $removeControl: noop,
<add> $setValidity: noop
<add>}
<add>
<ide> /**
<ide> * @ngdoc object
<ide> * @name angular.module.ng.$compileProvider.directive.form.FormController
<ide> * of `FormCon... | 2 |
Text | Text | add links to node and npm in requirements | b5775737307b7b0806aa25a7c174e690454dcce4 | <ide><path>docs/GettingStarted.md
<ide> next: tutorial
<ide> 1. OS X - This repo only contains the iOS implementation right now, and Xcode only runs on Mac.
<ide> 2. New to Xcode? [Download it](https://developer.apple.com/xcode/downloads/) from the Mac App Store.
<ide> 3. [Homebrew](http://brew.sh/) is the recommended... | 1 |
Text | Text | add instructions 08 | 0deac73642a1ed09a84d76da296250d19d621932 | <ide><path>curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-projects/demographic-data-analyzer.md
<ide> dashedName: demographic-data-analyzer
<ide>
<ide> # --description--
<ide>
<del>In this challenge you must analyze demographic data using Pandas. You are given a dataset of demogr... | 5 |
Python | Python | fix typo in iris_data.py | 80eb727ab08d91be34e49449a6aa8c267ddba8c2 | <ide><path>samples/core/get_started/iris_data.py
<ide> def eval_input_fn(features, labels, batch_size):
<ide>
<ide>
<ide> # The remainder of this file contains a simple example of a csv parser,
<del># implemented using a the `Dataset` class.
<add># implemented using the `Dataset` class.
<ide>
<ide> # `tf.par... | 1 |
Javascript | Javascript | add reference to issue | e7f316c7a7cc0262e1e58ce485d60dc3112cf769 | <ide><path>src/renderers/webgl/WebGLTextures.js
<ide> function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
<ide>
<ide> _gl.blitFramebuffer( 0, 0, width, height, 0, 0, width, height, mask, _gl.NEAREST );
<ide>
<del> _gl.bindFramebuffer( _gl.FRAMEBUFFER, renderTargetProperties.__webgl... | 1 |
Javascript | Javascript | add more non-react events to the priority list | ad8211d96a7990a91d4f6c9915b8b30566c3c0af | <ide><path>packages/react-dom/src/__tests__/ReactDOMNativeEventHeuristic-test.js
<ide> let React;
<ide>
<ide> let ReactDOM;
<ide> let Scheduler;
<add>let act;
<ide>
<ide> describe('ReactDOMNativeEventHeuristic-test', () => {
<ide> let container;
<ide> describe('ReactDOMNativeEventHeuristic-test', () => {
<ide> ... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.