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 | fix documentation of the 1d max pooling layer | b6f81c6cc3018553adbdae8e86a09825ac5b9b33 | <ide><path>keras/layers/pooling.py
<ide> class MaxPooling1D(_Pooling1D):
<ide> 3D tensor with shape: `(samples, downsampled_steps, features)`.
<ide>
<ide> # Arguments
<del> pool_length: factor by which to downscale. 2 will halve the input.
<del> stride: integer, or None. Stride value.
<add> ... | 1 |
Javascript | Javascript | fix minor typo in scrollview doc | f66c8f2f7eba1b6f293c91e7319ce8baf1ca4b42 | <ide><path>Libraries/Components/ScrollView/ScrollView.js
<ide> const ScrollView = createReactClass({
<ide> * When false, the view cannot be scrolled via touch interaction.
<ide> * The default value is true.
<ide> *
<del> * Note that the view can be always be scrolled by calling `scrollTo`.
<add> ... | 1 |
Python | Python | update docstrings of np.sum and np.prod | 4626b59a490bb5f35830a7b6bb74853a9c14aa63 | <ide><path>numpy/core/fromnumeric.py
<ide> def sum(a, axis=None, dtype=None, out=None, keepdims=False):
<ide> Elements to sum.
<ide> axis : None or int or tuple of ints, optional
<ide> Axis or axes along which a sum is performed.
<del> The default (`axis` = `None`) is perform a sum over all
<... | 1 |
PHP | PHP | update use of deprecated phpunit method | f6966cd9eeef459bd3c153b30fd2fbf724869200 | <ide><path>tests/TestCase/Auth/ControllerAuthorizeTest.php
<ide> public function setUp(): void
<ide> {
<ide> parent::setUp();
<ide> $this->controller = $this->getMockBuilder(Controller::class)
<del> ->setMethods(['isAuthorized'])
<add> ->addMethods(['isAuthorized'])
<ide> ... | 70 |
Java | Java | use correct header for version in connected frame | 364bc357095e34504b10bc138b8c59da578dd14f | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompProtocolHandler.java
<ide> protected void handleConnect(WebSocketSession session, Message<?> message) throw
<ide>
<ide> Set<String> acceptVersions = connectHeaders.getAcceptVersion();
<ide> if (acceptVersions.contains("1.2")) {... | 1 |
Text | Text | add additional test to telephone regex challenge | 02f232caf4314a3f8593f11732de6f76a4c60d18 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/telephone-number-validator.md
<ide> assert(telephoneCheck('(555-555-5555') === false);
<ide> assert(telephoneCheck('(555)5(55?)-5555') === false);
<ide> ```
<ide>
<add>`telephoneChec... | 1 |
Text | Text | add example for update_all vs. update | eae7043405b4efd6007848cd1d56361bfbfe0eb9 | <ide><path>guides/source/active_record_basics.md
<ide> hand, you'd like to update several records in bulk, you may find the
<ide> User.update_all "max_login_attempts = 3, must_change_password = 'true'"
<ide> ```
<ide>
<add>This is the same as if you wrote:
<add>
<add>```ruby
<add>User.update(:all, max_login_attempts: ... | 1 |
Javascript | Javascript | show meaningful values for boxed primitives | 8874a317484b8865c5fbad74d3af6155994df583 | <ide><path>lib/util.js
<ide> function formatValue(ctx, value, recurseTimes) {
<ide> keys = Object.getOwnPropertyNames(value);
<ide> }
<ide>
<add> // This could be a boxed primitive (new String(), etc.), check valueOf()
<add> // NOTE: Avoid calling `valueOf` on `Date` instance because it will return
<add> // a... | 2 |
Text | Text | remove git conflict markers in documentation | 6d1959b265d8ccee81bd32f59bb71b71b070a06a | <ide><path>share/doc/homebrew/Formula-Cookbook.md
<ide> For example, Ruby 1.9’s gems should be installed to `var/lib/ruby/` so that ge
<ide>
<ide> ### launchd plist files
<ide>
<del><<<<<<< 12f42a6761cb29ed3c9715fe2cbccff02bdc448f
<del>Homebrew provides two Formula methods for launchd plist files. `plist_name` will r... | 1 |
Ruby | Ruby | improve the performance of reading attributes | 08576b94ad4f19dfc368619d7751e211d23dcad8 | <ide><path>activerecord/lib/active_record/aggregations.rb
<ide> def composed_of(part_id, options = {})
<ide> private
<ide> def reader_method(name, class_name, mapping, allow_nil, constructor)
<ide> define_method(name) do
<del> if @aggregation_cache[name].nil? && (!allow_nil || mapping... | 12 |
Text | Text | create model card for roberta-hindi-guj-san | fa265230a200f037592377987c6d963d2601e6d0 | <ide><path>model_cards/surajp/RoBERTa-hindi-guj-san/README.md
<add>---
<add>language: "multilingual"
<add>tags:
<add>- Hindi
<add>- Sanskrit
<add>- Gujarati
<add>- Indic
<add>- roberta
<add>license: "MIT"
<add>datasets:
<add>- Wikipedia (Hindi, Sanskrit, Gujarati)
<add>metrics:
<add>- perplexity
<add>---
<add>
<add># R... | 1 |
Javascript | Javascript | upgrade chrome in saucelabs to latest | 75893ae9e78a5dcaed58f393c5dee676e1966fd0 | <ide><path>karma-shared.conf.js
<ide> module.exports = function(config, specificOptions) {
<ide> 'SL_Chrome': {
<ide> base: 'SauceLabs',
<ide> browserName: 'chrome',
<del> version: '43'
<add> version: '45'
<ide> },
<ide> 'SL_Firefox': {
<ide> base: 'SauceLabs', | 1 |
Javascript | Javascript | add util.inspect test for null maxstringlength | 382ed92fa8a27aa84f235d412560c0cf8ba6c175 | <ide><path>test/parallel/test-util-inspect.js
<ide> assert.strictEqual(
<ide> util.inspect(x, { maxStringLength: 4 }),
<ide> "'aaaa'... 999996 more characters"
<ide> );
<add> assert.match(util.inspect(x, { maxStringLength: null }), /a'$/);
<ide> }
<ide>
<ide> { | 1 |
Python | Python | join default max retries now 5 | 54a41a870e90d41e403f53a083ee1b93a0e36fde | <ide><path>funtests/stress/stress/suite.py
<ide> def _revoketerm(self, wait=None, terminate=True,
<ide> def missing_results(self, r):
<ide> return [res.id for res in r if res.id not in res.backend._cache]
<ide>
<del> def join(self, r, propagate=False, max_retries=1, **kwargs):
<add> def join(self, r,... | 2 |
Go | Go | use diff ids from image configuration | 633f9252b8e066ef7a1a738ddc84c3970379844e | <ide><path>distribution/pull_v2.go
<ide> func (p *v2Puller) pullV2Repository(ctx context.Context, ref reference.Named) (e
<ide>
<ide> type v2LayerDescriptor struct {
<ide> digest digest.Digest
<add> diffID layer.DiffID
<ide> repoInfo *registry.RepositoryInfo
<ide> repo di... | 1 |
PHP | PHP | remove finder delegation | c79eab2de3acd03140fc9ceb730c175c3d3c26fb | <ide><path>Cake/ORM/Table.php
<ide> public function callFinder($type, Query $query, $options = []) {
<ide> * Magic method to be able to call scoped finders & behaviors
<ide> * without the find prefix.
<ide> *
<del> * ## Finder delegation
<del> *
<del> * You can use this feature to invoke finder methods, without
<del... | 2 |
Javascript | Javascript | add link to reference for the sample patterns | 3c8cb97f516f2c29bc78224f2bce58ab9e7934a5 | <ide><path>examples/js/postprocessing/MSAAPass.js
<ide> THREE.MSAAPass.normalizedJitterOffsets = function( jitterVectors ) {
<ide> // These jitter vectors are specified in integers because it is easier.
<ide> // I am assuming a [-8,8] integer grid, but it needs to be mapped onto [-0.5,0.5]
<ide> // before being used, t... | 1 |
Javascript | Javascript | name anonymous functions in _http_server | 02c3c205f1a00b8dca0caca7f093969251f1fee5 | <ide><path>lib/_http_server.js
<ide> function ServerResponse(req) {
<ide> }
<ide> util.inherits(ServerResponse, OutgoingMessage);
<ide>
<del>ServerResponse.prototype._finish = function() {
<add>ServerResponse.prototype._finish = function _finish() {
<ide> DTRACE_HTTP_SERVER_RESPONSE(this.connection);
<ide> LTTNG_H... | 1 |
Ruby | Ruby | fix hash spaces and use 1.9 style hash [ci skip] | 087ce9d52dba2c8465ffa3db31399a5305057803 | <ide><path>actionpack/lib/action_view/template.rb
<ide> def supports_streaming?
<ide> # we use a bang in this instrumentation because you don't want to
<ide> # consume this in production. This is only slow if it's being listened to.
<ide> def render(view, locals, buffer=nil, &block)
<del> ActiveSupport... | 1 |
Java | Java | fix aspect of some completable marbles | 8b9740840f21d131595dac2115241b1f739b03f2 | <ide><path>src/main/java/io/reactivex/Completable.java
<ide> public static <T> Completable fromObservable(final ObservableSource<T> observabl
<ide> * Returns a Completable instance that subscribes to the given publisher, ignores all values and
<ide> * emits only the terminal event.
<ide> * <p>
<del> ... | 1 |
PHP | PHP | adapt changes in to use undeprecated methods | 2e67e5768a4d07daecc854dc10d3a7f9b3fbc6a6 | <ide><path>src/Http/Client.php
<ide> public function send(Request $request, $options = [])
<ide> $handleRedirect = $response->isRedirect() && $redirects-- > 0;
<ide> if ($handleRedirect) {
<ide> $url = $request->getUri();
<del> $request->cookie($this->_cookies->get... | 1 |
PHP | PHP | remove silently usage of old response + phpcs | 35e5537a535944cd77dbddda70f58130c96fa523 | <ide><path>src/Network/CorsBuilder.php
<ide> */
<ide> namespace Cake\Network;
<ide>
<add>use Cake\Http\Response;
<add>
<ide> /**
<ide> * A builder object that assists in defining Cross Origin Request related
<ide> * headers.
<ide><path>tests/test_app/TestApp/Error/TestAppsExceptionRenderer.php
<ide> use Cake\Contro... | 2 |
Python | Python | fix typos to enable sync training | 0319908c2c4bb7e71341daeaa302c4862ebc9f46 | <ide><path>research/object_detection/trainer.py
<ide> def train(create_tensor_dict_fn, create_model_fn, train_config, master, task,
<ide>
<ide> sync_optimizer = None
<ide> if train_config.sync_replicas:
<del> training_optimizer = tf.SyncReplicasOptimizer(
<add> training_optimizer = tf.train.SyncRepli... | 1 |
Python | Python | fix error getting floating ip instance_id | 204313794e2e79e8d8835b108f93fabcd9f88f6b | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def _to_floating_ip(self, obj):
<ide> port.extra["mac_address"]}
<ide>
<ide> if 'port_details' in obj and obj['port_details']:
<del> if obj['port_details']['device_owner'] == 'compute:nova':
<add> ... | 1 |
Javascript | Javascript | prevent infinite test execution | 82ec250c75d4a4ea540c3861b18c85b25ee7cf6c | <ide><path>curriculum/test/test-challenges.js
<ide> const jQueryScript = fs.readFileSync(
<ide> ));
<ide>
<ide> describe('Check challenges tests', async function() {
<del> this.timeout(200000);
<add> this.timeout(5000);
<ide>
<ide> allChallenges.forEach(challenge => {
<ide> describe(challenge.titl... | 1 |
Python | Python | use the whole sys.version string | 6b28ceba83c3b76eea2e5a89327318af67404298 | <ide><path>flask/cli.py
<ide> def get_version(ctx, param, value):
<ide> message = 'Flask %(version)s\nPython %(python_version)s'
<ide> click.echo(message % {
<ide> 'version': __version__,
<del> 'python_version': sys.version[:3],
<add> 'python_version': sys.version,
<ide> }, color=ctx.c... | 1 |
PHP | PHP | fix some formatting | 2808b6c83d454e082d50efc91cd2711d3f6d8dd0 | <ide><path>src/Illuminate/Filesystem/FilesystemManager.php
<ide> public function createLocalDriver(array $config)
<ide> */
<ide> public function createS3Driver(array $config)
<ide> {
<del> $s3Config = ['key' => $config['key'], 'secret' => $config['secret']];
<del>
<del> if (isset($config['region']))
<del> {
<del... | 1 |
Javascript | Javascript | add note about flicker when toggling elements | 98e0e047b0f705005b256c70feb4e6368ff3a591 | <ide><path>src/ng/directive/ngShowHide.js
<ide> var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
<ide> });
<ide> </file>
<ide> </example>
<add> *
<add> * @knownIssue
<add> *
<add> * ### Flickering when using ngShow to toggle between elements
<add> *
<add> * When using {@link ngShow} and / or {@link ngHide... | 1 |
Python | Python | define the upload_to for file fields | c6d89afdf7473c6b9f2af41a4bbc9bdaa83d39d1 | <ide><path>rest_framework/tests/models.py
<ide> class AMOAFModel(RESTFrameworkModel):
<ide> comma_separated_integer_field = models.CommaSeparatedIntegerField(max_length=1024, blank=True)
<ide> decimal_field = models.DecimalField(max_digits=64, decimal_places=32, blank=True)
<ide> email_field = models.EmailF... | 1 |
Python | Python | translate non-ascii characters | a4af964c1ad2c419ef51cd9d717f5aac7ed60b39 | <ide><path>airflow/kubernetes/kubernetes_helper_functions.py
<ide> from typing import Dict, Optional
<ide>
<ide> from dateutil import parser
<add>from slugify import slugify
<ide>
<ide> from airflow.models.taskinstance import TaskInstanceKey
<ide>
<ide> def _strip_unsafe_kubernetes_special_chars(string: str) -> str:... | 2 |
Text | Text | hide solution from tests | bdbbeb0cbab973f5c6d929181b3f24ccfa954ca7 | <ide><path>curriculum/challenges/spanish/01-responsive-web-design/css-grid/use-grid-area-without-creating-an-areas-template.spanish.md
<ide> localeTitle: Usar área de cuadrícula sin crear una plantilla de áreas
<ide>
<ide> ```yml
<ide> tests:
<del> - text: <code>item5</code> clase <code>item5</code> debe tener una pr... | 1 |
Go | Go | use logrus everywhere for logging | 7c62cee51edc91634046b4faa6c6f1841cd53ec1 | <ide><path>api/client/commands.go
<ide> import (
<ide> "text/template"
<ide> "time"
<ide>
<add> log "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/api"
<ide> "github.com/docker/docker/dockerversion"
<ide> "github.com/docker/docker/engine"
<ide> "github.com/docker/docker/graph"
<ide> "github.com/do... | 61 |
Python | Python | add dep to supertag | 7a33f1e2b7a3b457bc3484767a12c184c73942a2 | <ide><path>bin/parser/train_ud.py
<ide> def read_conllx(loc, n=0):
<ide> id_ = int(id_) - 1
<ide> head = (int(head) - 1) if head != '0' else id_
<ide> dep = 'ROOT' if dep == 'root' else dep #'unlabelled'
<del> tokens.append((id_, word, pos+'... | 1 |
Python | Python | remove i18n from log messages | 5da624c2020b7fad0b25a836433cb1c9116c6c20 | <ide><path>glances/__init__.py
<ide> def main():
<ide>
<ide> # Test if client and server are in the same major version
<ide> if not client.login():
<del> logger.critical(
<del> _("The server version is not compatible with the client"))
<add> logg... | 17 |
Go | Go | fix testrunwithruntime* on arm | bd6317031bb8f7e1a82cbfd254fe60e0de703524 | <ide><path>integration-cli/docker_cli_daemon_test.go
<ide> func (s *DockerDaemonSuite) TestRunWithRuntimeFromConfigFile(c *check.C) {
<ide> }
<ide> `
<ide> ioutil.WriteFile(configName, []byte(config), 0644)
<del> err = s.d.Start("--config-file", configName)
<add> err = s.d.StartWithBusybox("--config-file", configName)... | 1 |
Go | Go | checkt t.fatalf information for reference path | 4b1ff89faed5a04d1220c2953b8e72eb4e651dcb | <ide><path>reference/reference_test.go
<ide> func TestParseRepositoryInfo(t *testing.T) {
<ide> t.Fatalf("Invalid normalized reference for %q. Expected %q, got %q", r, expected, actual)
<ide> }
<ide> if expected, actual := tcase.FullName, r.FullName(); expected != actual {
<del> t.Fatalf("Invalid normalize... | 2 |
Mixed | Ruby | add maildeliveryjob for unified mail delivery | f5050d998def98563f8fa4b381c09f563681f159 | <ide><path>actionmailer/CHANGELOG.md
<del>* Deliver parameterized mail with `ActionMailer::DeliveryJob` and remove `ActionMailer::Parameterized::DeliveryJob`.
<add>* Add `MailDeliveryJob` for delivering both regular and parameterized mail. Deprecate using `DeliveryJob` and `Parameterized::DeliveryJob`.
<ide>
<ide>... | 12 |
Javascript | Javascript | handle quotes around email addresses | a9d227120dc2d433372da415a450e56b783b57a0 | <ide><path>src/ngSanitize/filter/linky.js
<ide> */
<ide> angular.module('ngSanitize').filter('linky', ['$sanitize', function($sanitize) {
<ide> var LINKY_URL_REGEXP =
<del> /((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>]/,
<add> /((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\... | 2 |
Javascript | Javascript | fix auxiliary files for compilation.renameasset | b6bfe8b891a9f5f0bf0b56ab3cd77734a115fc3e | <ide><path>lib/Compilation.js
<ide> Or do you want to use the entrypoints '${name}' and '${runtime}' independently o
<ide> delete this.assets[file];
<ide> this.assets[newFile] = source;
<ide> for (const chunk of this.chunks) {
<del> const size = chunk.files.size;
<del> chunk.files.delete(file);
<del> if (si... | 1 |
Text | Text | add asp.net mvc information | f423f0449598ba314fad2440c192f1ba1c7a1061 | <ide><path>guide/english/aspnet/index.md
<ide> Server-side programming languages like C# and VB .NET may be used to code the ba
<ide>
<ide> ASP.NET offers different frameworks for creating web applications: For e.g Web Forms and ASP.NET MVC.
<ide>
<del>
<ide> #### More Information:
<ide> - [ASP .NET Tutorials](https:... | 1 |
PHP | PHP | add bus facade | ed2c0546d1c93b78cfcb4148b754066a1e4df045 | <ide><path>config/app.php
<ide> 'Artisan' => 'Illuminate\Support\Facades\Artisan',
<ide> 'Auth' => 'Illuminate\Support\Facades\Auth',
<ide> 'Blade' => 'Illuminate\Support\Facades\Blade',
<add> 'Bus' => 'Illuminate\Support\Facades\Bus',
<ide> 'Cache' => 'Illuminate\Support\Facades\Cache',
<... | 1 |
Text | Text | add a comment about live reload | 559c302094f578153906ab2a1a12ed737ee04741 | <ide><path>docs/Debugging.md
<ide> To debug the javascript code of your react app do the following:
<ide> 5. You should now be able to debug as you normally would.
<ide>
<ide> ### Optional
<del>Install the [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapd... | 1 |
PHP | PHP | remove the array_fetch helper | 6f7a98ea4a62fae6eace3c410d189fa5fd8c4ace | <ide><path>src/Illuminate/Support/helpers.php
<ide> function array_except($array, $keys)
<ide> }
<ide> }
<ide>
<del>if (! function_exists('array_fetch')) {
<del> /**
<del> * Fetch a flattened array of a nested array element.
<del> *
<del> * @param array $array
<del> * @param string $key
<de... | 1 |
PHP | PHP | view() helper | 1d6ad39f84b5fa677b049e68b86ddbd12cf674eb | <ide><path>src/Illuminate/Routing/Router.php
<ide> public function redirect($uri, $destination, $status = 301)
<ide> ->defaults('status', $status);
<ide> }
<ide>
<add> /**
<add> * Register a new route that returns a view.
<add> *
<add> * @param string $uri
<add> * @param string $... | 3 |
Text | Text | add notes for v1.5.2 | b0f2ee7cc4b05c495098f1619a20dd7b652c70cd | <ide><path>CHANGELOG.md
<add><a name="1.5.2"></a>
<add># 1.5.2 differential-recovery (2016-03-18)
<add>
<add>This release reverts a breaking change that accidentally made it into the 1.5.1 release. See [fee7bac3](https://github.com/angular/angular.js/commit/fee7bac392db24b6006d6a57ba71526f3afa102c) for more info.
<add>... | 1 |
Text | Text | add information on jsx element keys | 5d64199bb6d5a875206cdcc552cdcb4bf32c7e97 | <ide><path>docs/docs/02.3-jsx-gotchas.md
<ide> A safer alternative is to find the [unicode number corresponding to the entity](
<ide> <div>{'First ' + String.fromCharCode(183) + ' Second'}</div>
<ide> ```
<ide>
<del>You can use mixed arrays with strings and JSX elements.
<add>You can use mixed arrays with strings and ... | 1 |
Python | Python | save layers for access in encoderscaffold | 9f9b430710273163769033660ad07715b243d269 | <ide><path>official/nlp/modeling/networks/encoder_scaffold.py
<ide> def __init__(self,
<ide> inputs = embedding_network.inputs
<ide> embeddings, attention_mask = embedding_network(inputs)
<ide> embedding_layer = None
<add> position_embedding_layer = None
<add> type_embedding_layer = None
<ad... | 1 |
Text | Text | add note about hmr websocket to upgrade guide | 900ec48c0344e230dbf696fdcb8f17be14c6b72d | <ide><path>docs/upgrading.md
<ide> The `className` prop is unchanged and will still be passed to the underlying `<i
<ide>
<ide> See the [documentation](https://nextjs.org/docs/basic-features/image-optimization#styling) for more info.
<ide>
<add>### Next.js' HMR connection now uses a WebSocket
<add>
<add>Previously, N... | 1 |
Ruby | Ruby | fix md5 compat layer | f01a38772aa7e865a38c71e73661fb14825da9b9 | <ide><path>Library/Homebrew/compat/md5.rb
<ide> class Formula
<ide> def self.md5(val)
<del> @stable ||= create_spec(SoftwareSpec)
<del> @stable.md5(val)
<add> stable.md5(val)
<ide> end
<ide> end
<ide> | 1 |
Python | Python | add k.tile test | 15d0b0ea08833b8f2db19e2da1ac428bad69d4cc | <ide><path>keras/backend/tensorflow_backend.py
<ide> def repeat(x, n):
<ide>
<ide>
<ide> def tile(x, n):
<add> if not hasattr(n, 'shape') and not hasattr(n, '__len__'):
<add> n = [n]
<ide> return tf.tile(x, n)
<ide>
<ide>
<ide><path>tests/keras/backend/test_backends.py
<ide> def test_repeat_elements(s... | 2 |
PHP | PHP | allow higher order partition | 724950a42c225c7b53c56283c01576b050fea37a | <ide><path>src/Illuminate/Support/Collection.php
<ide> protected function getArrayableItems($items)
<ide> public function __get($key)
<ide> {
<ide> $proxies = [
<del> 'each', 'map', 'first', 'sortBy',
<add> 'each', 'map', 'first', 'partition', 'sortBy',
<ide> 'sortByDes... | 1 |
Text | Text | apply edits and suggestions | ab2a95db8088b7607017671b82e396bcd9e80332 | <ide><path>guides/source/active_storage_overview.md
<ide> config.active_storage.service = :s3
<ide> Continue reading for more information on the built-in service adapters (e.g.
<ide> `Disk` and `S3`) and the configuration they require.
<ide>
<del>Mirrored services can be used to facilitate a migration between services... | 1 |
PHP | PHP | fix fqcn for exceptions via sniffer run | a70b8895e421baf45d5aca93a3abf52d9d917577 | <ide><path>src/Cache/Engine/FileEngine.php
<ide> use Cake\Cache\InvalidArgumentException;
<ide> use CallbackFilterIterator;
<ide> use Exception;
<add>use FilesystemIterator;
<ide> use LogicException;
<ide> use RecursiveDirectoryIterator;
<ide> use RecursiveIteratorIterator;
<ide> public function clear()
<ide>
<ide> ... | 13 |
Python | Python | remove unused variables noticed by pyflakes | 1dc081cb6b5c9ea0ae96875a31e73f9caed34b6e | <ide><path>libcloud/drivers/elastichosts.py
<ide> import base64
<ide>
<ide> from libcloud.types import Provider, NodeState, InvalidCredsException
<del>from libcloud.base import ConnectionUserAndKey, Response, NodeAuthPassword
<del>from libcloud.base import NodeDriver, NodeSize, Node, NodeLocation
<add>from libcloud.ba... | 1 |
PHP | PHP | add check to sqlserver query compiler | 8fbf6d51b4bc75859e39645527044be888f1edc4 | <ide><path>src/Database/SqlserverCompiler.php
<ide> */
<ide> namespace Cake\Database;
<ide>
<add>use Cake\Database\Exception as DatabaseException;
<ide> use Cake\Database\Expression\FunctionExpression;
<ide>
<ide> /**
<ide> protected function _buildWithPart(array $parts, Query $query, ValueBinder $gener
<ide> *... | 1 |
Text | Text | add link to the glamorous example | 6ca1feaf98b2df0a700327b85609bdcb0fc6c51d | <ide><path>readme.md
<ide> export default () => (
<ide> <summary>
<ide> <b>Examples</b>
<ide> </summary>
<del> <ul><li><a href="./examples/with-styled-components">Styled components</a></li><li><a href="./examples/with-styletron">Styletron</a></li><li><a href="./examples/with-glamor">Glamor</a></li><li><a hre... | 1 |
Ruby | Ruby | remove unused require | d985c5d23eda396bbc349f01db02d1efccf7af52 | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> require "active_record/relation/where_clause"
<ide> require "active_record/relation/where_clause_factory"
<ide> require 'active_model/forbidden_attributes_protection'
<del>require 'active_support/core_ext/string/filters'
<ide>
<ide> module Activ... | 1 |
Java | Java | fix error when writing empty string to databuffer | 2b65d0e51ff106270871455880e2b1cf427eea1b | <ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/DataBuffer.java
<ide> default DataBuffer ensureCapacity(int capacity) {
<ide> default DataBuffer write(CharSequence charSequence, Charset charset) {
<ide> Assert.notNull(charSequence, "CharSequence must not be null");
<ide> Assert.notNull(char... | 2 |
PHP | PHP | remove unused variable from the signature | e658e071d10daf7af8b70243bd796e643acfabb7 | <ide><path>lib/Cake/Model/Datasource/DboSource.php
<ide> public function queryAssociation(Model $Model, &$LinkModel, $type, $association,
<ide> $this->_filterResults($fetch, $Model);
<ide> }
<ide>
<del> return $this->_mergeHasMany($resultSet, $fetch, $association, $Model, $LinkModel);
<add> return $this->_m... | 1 |
Ruby | Ruby | apply suggestions from code review | b2cccfcf68b131d2eab734b1e105a5b0407a06ba | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_license
<ide> if @spdx_ids.key?(formula.license)
<ide> return unless @online
<ide>
<del> user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}, false)
<add> user, repo = get_repo_data(%r{https?://github\.... | 1 |
Mixed | Javascript | expose keyobject class | f1056542f0cf2520e122d93afbaada6b6599e49b | <ide><path>doc/api/crypto.md
<ide> This can be called many times with new data as it is streamed.
<ide> ## Class: KeyObject
<ide> <!-- YAML
<ide> added: v11.6.0
<add>changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/26438
<add> description: This class is now exported.
<ide> --... | 3 |
Java | Java | increase fudge factor in stopwatchtests | 3ccbf1edeb34259751fd3e5ce80d4cd4d3e029e2 | <ide><path>spring-core/src/test/java/org/springframework/util/StopWatchTests.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use th... | 1 |
Javascript | Javascript | replace suspenseconfig object with an integer | 92fcd46cc79bbf45df4ce86b0678dcef3b91078d | <ide><path>packages/react-debug-tools/src/ReactDebugHooks.js
<ide> import type {
<ide> } from 'react-reconciler/src/ReactInternalTypes';
<ide> import type {OpaqueIDType} from 'react-reconciler/src/ReactFiberHostConfig';
<ide>
<del>import type {SuspenseConfig} from 'react-reconciler/src/ReactFiberSuspenseConfig';
<add>... | 15 |
PHP | PHP | allow redirectpath for consistency | 63a534a31129be4cec4f5a694342d7020e2d7f07 | <ide><path>src/Illuminate/Foundation/Auth/AuthenticatesAndRegistersUsers.php
<ide> public function getLogout()
<ide> */
<ide> public function redirectPath()
<ide> {
<add> if (property_exists($this, 'redirectPath'))
<add> {
<add> return $this->redirectPath;
<add> }
<add>
<ide> return property_exists($this, 'r... | 1 |
PHP | PHP | use array_fill_keys instead of a manual loop | 902f3ebd5ba9fc3690c8d5744c03708677a4bf2c | <ide><path>Cake/Model/Behavior/TimestampBehavior.php
<ide> public function handleEvent(Event $event, Entity $entity) {
<ide> * @return array
<ide> */
<ide> public function implementedEvents() {
<del> $events = array_flip(array_keys($this->_settings['events']));
<del> foreach ($events as &$method) {
<del> $method... | 1 |
Text | Text | add mozilla code of conduct file | 800de61422791dd6c263b2c2f56ea7c4506fe6da | <ide><path>CODE_OF_CONDUCT.md
<add># Community Participation Guidelines
<add>
<add>This repository is governed by Mozilla's code of conduct and etiquette guidelines.
<add>For more details, please read the
<add>[Mozilla Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/... | 1 |
Javascript | Javascript | remove usage of legacy context api in modal | 29f0cedc0ad2a52b73f580cfb31dcb1efefefa85 | <ide><path>Libraries/Modal/Modal.js
<ide> 'use strict';
<ide>
<ide> const AppContainer = require('../ReactNative/AppContainer');
<add>const {RootTagContext} = require('../ReactNative/RootTag');
<ide> const I18nManager = require('../ReactNative/I18nManager');
<del>const PropTypes = require('prop-types');
<ide> const Re... | 1 |
Ruby | Ruby | use consistent keys between cache get / set | 81fb5317dcdec7a9279c1004f3da3204b6c59c76 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def association(name) #:nodoc:
<ide> private
<ide> # Returns the specified association instance if it responds to :loaded?, nil otherwise.
<ide> def association_instance_get(name)
<del> @association_cache[name.to_sym]
<add> @a... | 1 |
Go | Go | fix various problems with iptables.exists | 3559b4177e611920d87c4dae607c641efb645783 | <ide><path>daemon/networkdriver/bridge/driver.go
<ide> func setupIPTables(addr net.Addr, icc, ipmasq bool) error {
<ide> // Enable NAT
<ide>
<ide> if ipmasq {
<del> natArgs := []string{"POSTROUTING", "-t", "nat", "-s", addr.String(), "!", "-o", bridgeIface, "-j", "MASQUERADE"}
<add> natArgs := []string{"-s", addr.... | 4 |
Go | Go | use getresourcepath instead | 63708dca8a633d68f9342eebd4f7a616e8c48234 | <ide><path>daemon/volumes.go
<ide> func (container *Container) parseVolumeMountConfig() (map[string]*Mount, error)
<ide> if _, exists := container.Volumes[path]; exists {
<ide> continue
<ide> }
<del> realpath, err := symlink.FollowSymlinkInScope(filepath.Join(container.basefs, path), container.basefs)
<add> re... | 2 |
Go | Go | add context to various methods | def549c8f6716507ee9175fe9d798a42df89e27d | <ide><path>api/server/router/container/backend.go
<ide> type copyBackend interface {
<ide>
<ide> // stateBackend includes functions to implement to provide container state lifecycle functionality.
<ide> type stateBackend interface {
<del> ContainerCreate(config types.ContainerCreateConfig) (container.CreateResponse, e... | 40 |
Javascript | Javascript | fix circular dependency in tracingsubscriptions | e1a067dea0ffcacd1f664f30cd14463b00f52fa7 | <ide><path>packages/scheduler/src/TracingSubscriptions.js
<ide> import type {Interaction, Subscriber} from './Tracing';
<ide>
<ide> import {enableSchedulerTracing} from 'shared/ReactFeatureFlags';
<del>import {__subscriberRef} from 'scheduler/tracing';
<add>import {__subscriberRef} from './Tracing';
<ide>
<ide> let s... | 1 |
Go | Go | pass store test-unit | 32b905d90ff133c92bb0dd89207a68c45fc81bbd | <ide><path>volume/store/store_test.go
<ide> func TestCreate(t *testing.T) {
<ide> t.Fatalf("Expected unknown driver error, got nil")
<ide> }
<ide>
<del> _, err = s.Create("fakeError", "fake", map[string]string{"error": "create error"})
<del> expected := &OpErr{Op: "create", Name: "fakeError", Err: errors.New("creat... | 1 |
Text | Text | add links to platform specific mechanisms | 138c7af42a8f8dd0b8f9b69ddc406eba16c71874 | <ide><path>doc/api/fs.md
<ide> The recursive option is only supported on OS X and Windows.
<ide> This feature depends on the underlying operating system providing a way
<ide> to be notified of filesystem changes.
<ide>
<del>* On Linux systems, this uses `inotify`.
<del>* On BSD systems, this uses `kqueue`.
<del>* On O... | 1 |
Javascript | Javascript | fix fuzziness images in uiexplorer <image> sample | 3643c127a8f752c8cdbb8377baab266fba06d067 | <ide><path>Examples/UIExplorer/ImageExample.js
<ide> exports.examples = [
<ide> ];
<ide>
<ide> var fullImage = {uri: 'http://facebook.github.io/react/img/logo_og.png'};
<del>var smallImage = {uri: 'http://facebook.github.io/react/img/logo_small.png'};
<add>var smallImage = {uri: 'http://facebook.github.io/react/img/lo... | 1 |
Javascript | Javascript | add test for linux perf | 227ca87abb9c3a30e13152426c0efc442d908345 | <ide><path>test/fixtures/linux-perf.js
<add>'use strict';
<add>
<add>const crypto = require('crypto');
<add>
<add>// Functions should be complex enough for V8 to run them a few times before
<add>// compiling, but not complex enough to always stay in interpreted mode. They
<add>// should also take some time to run, othe... | 2 |
Javascript | Javascript | remove chart.scale property (always undefined) | 4d99658155cdf3d504749b43cdc3ab71ab1d18d6 | <ide><path>src/core/core.controller.js
<ide> class Chart {
<ide> this._responsiveListeners = undefined;
<ide> this._sortedMetasets = [];
<ide> this.scales = {};
<del> this.scale = undefined;
<ide> this._plugins = new PluginService();
<ide> this.$proxies = {};
<ide> this._hiddenIndices = {}; | 1 |
Ruby | Ruby | add tex requirement | 2d445d54b5110e03b6a089fed25865f1d02bfed4 | <ide><path>Library/Homebrew/dependencies.rb
<ide> def parse_symbol_spec spec, tag
<ide> MysqlInstalled.new(tag)
<ide> when :postgresql
<ide> PostgresqlInstalled.new(tag)
<add> when :tex
<add> TeXInstalled.new(tag)
<ide> else
<ide> raise "Unsupported special dependency #{spec}"
<ide> ... | 2 |
Text | Text | fix markdown syntax and html tag misses | 17d0830cf88137eed940f81e4b86ad044d2b02da | <ide><path>doc/api/cli.md
<ide> warning will be written to stderr instead.
<ide>
<ide> The `file` name may be an absolute path. If it is not, the default directory it
<ide> will be written to is controlled by the
<del>[`--diagnostic-dir`]() command-line option.
<add>[`--diagnostic-dir`][] command-line option.
<ide>
<... | 5 |
Javascript | Javascript | add message to warn users before changing name | c2e7809ccdeaed55aef9e4543b3bc0e90d21547b | <ide><path>client/src/components/settings/Username.js
<ide> const mapDispatchToProps = dispatch =>
<ide> const invalidCharsRE = /[/\s?:@=&"'<>#%{}|\\^~[\]`,.;!*()$]/;
<ide> const invlaidCharError = {
<ide> valid: false,
<del> error: 'Username contains invalid characters'
<add> error: 'Username contains invalid char... | 1 |
Ruby | Ruby | remove bad exit status; need to fix another way | cd13553d5906b89258d1504329afc4b587967631 | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def install_formulae formulae
<ide> fi.finish
<ide> rescue CannotInstallFormulaError => e
<ide> onoe e.message
<del> exit 1
<ide> end
<ide> end
<ide> end
<ide><path>Library/Homebrew/cmd/upgrade.rb
<ide> def upgrade_f... | 2 |
Javascript | Javascript | enforce component name | 14cd15ef54dc944fcb090eba924e4c92db14a445 | <ide><path>jest/mockComponent.js
<ide> module.exports = (moduleName, instanceMethods) => {
<ide> typeof RealComponent === 'function' ? RealComponent : React.Component;
<ide>
<ide> const Component = class extends SuperClass {
<add> static displayName = 'Component';
<add>
<ide> render() {
<ide> const ... | 1 |
Java | Java | add log to view that is being dropped | 0d7a0dc9976b179fab8ee1b77c9b9faf85f7d828 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java
<ide> public class ReactFeatureFlags {
<ide> * C++ CatalystInstanceImpl
<ide> */
<ide> public static boolean useTurboModules = false;
<add>
<add> /**
<add> * Log tags of when a view deleted on the native side
<add> * {@l... | 2 |
Javascript | Javascript | remove uneeded closures | 4e55ea5acce9798d9fc7d4f54bb6c1746be4e693 | <ide><path>packages/ember-handlebars/lib/helpers/binding.js
<ide> var forEach = Ember.ArrayPolyfills.forEach;
<ide>
<ide> var EmberHandlebars = Ember.Handlebars, helpers = EmberHandlebars.helpers;
<ide>
<add>function exists(value){
<add> return !Ember.isNone(value);
<add>}
<add>
<ide> // Binds a property into the DO... | 1 |
Java | Java | remove unused methods in basicfuseableobserver | 9461a7002d4203e22ae54c310ab7048dc469e6f3 | <ide><path>src/main/java/io/reactivex/internal/observers/BasicFuseableObserver.java
<ide> import io.reactivex.disposables.Disposable;
<ide> import io.reactivex.exceptions.Exceptions;
<ide> import io.reactivex.internal.disposables.DisposableHelper;
<del>import io.reactivex.internal.functions.ObjectHelper;
<ide> import i... | 1 |
Mixed | Javascript | remove tension option backwards compatibility | f0fb2c65b1ba9b0dbc60acac611daec3ee54b320 | <ide><path>docs/getting-started/v3-migration.md
<ide> Chart.js is no longer providing the `Chart.bundle.js` and `Chart.bundle.min.js`.
<ide>
<ide> ### Options
<ide>
<add>* The dataset option `tension` was renamed to `lineTension`
<ide> * `scales.[x/y]Axes.barPercentage` was moved to dataset option `barPercentage`
<id... | 2 |
Javascript | Javascript | use opaque canvas where possible | b10aa18b3eda4437668b5453e20f729790b4a437 | <ide><path>src/display/api.js
<ide> var WorkerTransport = (function WorkerTransportClosure() {
<ide> info('The worker has been disabled.');
<ide> }
<ide> }
<del>//#endif
<add>//#endif
<ide> // Either workers are disabled, not supported or have thrown an exception.
<ide> // Thus, we fallbac... | 4 |
Javascript | Javascript | add second argument to assert.throws | 9de2e159c4e83bea80c1d96abdabc6a69207344c | <ide><path>test/addons-napi/test_constructor/test.js
<ide> assert.strictEqual(test_object.readwriteValue, 1);
<ide> test_object.readwriteValue = 2;
<ide> assert.strictEqual(test_object.readwriteValue, 2);
<ide>
<del>assert.throws(() => { test_object.readonlyValue = 3; });
<add>assert.throws(() => { test_object.readonl... | 7 |
Ruby | Ruby | restore old filename for non-github package urls | b8d60c7fd6269aca252d56c4109d2e59cd60fdda | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def bottle_formula(f, args:)
<ide>
<ide> return unless args.json?
<ide>
<add> bottle_filename = if bottle.root_url.match?(GitHubPackages::URL_REGEX)
<add> filename.github_packages
<add> else
<add> filename.bintray
<add> end
<add>
<ide> jso... | 1 |
Javascript | Javascript | detect external changes in `history.state` | 2b360bf30528e636da429396f2fe740c3f97c6f8 | <ide><path>src/ng/browser.js
<ide> function Browser(window, document, $log, $sniffer) {
<ide> };
<ide>
<ide> cacheState();
<del> lastHistoryState = cachedState;
<ide>
<ide> /**
<ide> * @name $browser#url
<ide> function Browser(window, document, $log, $sniffer) {
<ide> if ($sniffer.history && (!sam... | 2 |
Javascript | Javascript | update flakey preview test | 3026fa586446beee1b116b5b6b5e20c2b857e870 | <ide><path>test/integration/prerender-preview/pages/index.js
<ide> export default function ({ hasProps, preview, previewData, random }) {
<ide> >
<ide> Reload static props
<ide> </button>
<del> <p id="router">{JSON.stringify(router)}</p>
<add> <p id="router">{JSON.stringify({ isPreview: ro... | 1 |
PHP | PHP | add getgenericuser function | 60f82796778b828432dcae8b32a9cc8f12829c21 | <ide><path>src/Illuminate/Auth/DatabaseUserProvider.php
<ide> public function retrieveById($identifier)
<ide> {
<ide> $user = $this->conn->table($this->table)->find($identifier);
<ide>
<del> if ( ! is_null($user))
<del> {
<del> return new GenericUser((array) $user);
<del> }
<add> return $this->getGenericUser(... | 1 |
Mixed | Javascript | fix regression with linetension | b02a3a8175152d5e6d2bed54d5f0348ee9b3d840 | <ide><path>docs/charts/radar.md
<ide> The radar chart allows a number of properties to be specified for each dataset.
<ide> | [`borderWidth`](#line-styling) | `number` | Yes | - | `3`
<ide> | [`fill`](#line-styling) | <code>boolean|string</code> | Yes | - | `true`
<ide> | [`label`](#general) | `string` | - | - | `... | 3 |
Python | Python | fix some warnings from lgtm | 20e98fcded341d5aef6dfdfc5cdac431a55252bd | <ide><path>ciphers/enigma_machine2.py
<ide> def enigma(
<ide> rotorpos1 -= 1
<ide> rotorpos2 -= 1
<ide> rotorpos3 -= 1
<del> plugboard = plugboard
<ide>
<ide> result = []
<ide>
<ide><path>graphs/directed_and_undirected_(weighted)_graph.py
<ide> def has_cycle(self):
<ide> ... | 6 |
PHP | PHP | set default cookie path to webroot instead of base | 2f3d50b3558d64ee7f703ac350cf22058a097956 | <ide><path>src/Controller/Component/CookieComponent.php
<ide> class CookieComponent extends Component {
<ide> * If path is set to '/foo/', the cookie will only be available within the
<ide> * /foo/ directory and all sub-directories such as /foo/bar/ of domain.
<ide> * The default value is base path of app. For... | 4 |
Python | Python | use django.utils to import the unittest module | 721dc519ecdb8435bdeed6aa67d99be6968c0972 | <ide><path>rest_framework/tests/authentication.py
<ide> from django.contrib.auth.models import User
<ide> from django.http import HttpResponse
<ide> from django.test import Client, TestCase
<add>from django.utils import unittest
<ide> from rest_framework import HTTP_HEADER_ENCODING
<ide> from rest_framework import exce... | 1 |
Text | Text | fix man pages | 732141442affc096342801900641d9b303c24dbc | <ide><path>man/docker-ps.1.md
<ide> docker-ps - List containers
<ide>
<ide> # DESCRIPTION
<ide>
<del>List the containers in the local repository. By default this show only
<add>List the containers in the local repository. By default this shows only
<ide> the running containers.
<ide>
<ide> # OPTIONS
<ide> **-a**, **... | 3 |
Javascript | Javascript | protect internals against prototype tampering | 2fe4e9473fb50630326754886dee1d301a1a661e | <ide><path>lib/internal/test_runner/test.js
<ide> class Test extends AsyncResource {
<ide> }
<ide> }
<ide>
<del> const test = new Factory({ fn, name, parent, ...options, ...overrides });
<add> const test = new Factory({ __proto__: null, fn, name, parent, ...options, ...overrides });
<ide>
<ide> if... | 3 |
Go | Go | fix flaky windows testrestartrunningcontainer test | bae22d167cd29016541a6d4f93d38f2608d8e51f | <ide><path>integration-cli/docker_cli_restart_test.go
<ide> func (s *DockerSuite) TestRestartRunningContainer(c *check.C) {
<ide>
<ide> c.Assert(waitRun(cleanedContainerID), checker.IsNil)
<ide>
<del> out, _ = dockerCmd(c, "logs", cleanedContainerID)
<del> c.Assert(out, checker.Equals, "foobar\n")
<del>
<del> docker... | 1 |
Mixed | Ruby | add urlsafe option to messageverifier initializer | 09c3f36a962a7ffd350dfda643d2f980734cb5c9 | <ide><path>activesupport/CHANGELOG.md
<add>* Add `urlsafe` option to `ActiveSupport::MessageVerifier` initializer
<add>
<add> `ActiveSupport::MessageVerifier.new` now takes optional `urlsafe` argument.
<add> It can generate urlsafe strings by passing `urlsafe: true`.
<add>
<add> ```ruby
<add> verifier = A... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.