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 |
|---|---|---|---|---|---|
PHP | PHP | fix inconsistent data referencing in view | a3cbe24b6e699f59fcf17b5679b99ab26888deb3 | <ide><path>laravel/view.php
<ide> public function offsetUnset($offset)
<ide> */
<ide> public function __get($key)
<ide> {
<del> return $this[$key];
<add> return $this->data[$key];
<ide> }
<ide>
<ide> /**
<ide> * Magic Method for handling the dynamic setting of data.
<ide> */
<ide> public function __set($k... | 1 |
Mixed | Javascript | remove deprecated crypto._tobuf | bf3cb3f9b1be5f55c93493e80e3a9bf41093e18f | <ide><path>doc/api/deprecations.md
<ide> release.
<ide> ### DEP0114: crypto._toBuf()
<ide> <!-- YAML
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/???
<add> description: End-of-Life.
<ide> - version: v11.0.0
<ide> pr-url: https://github.com/nodejs/node/pull/225... | 3 |
PHP | PHP | fix small typo | be674c9d0d92ccabe98baa13b15af8c0c671408b | <ide><path>src/Http/ServerRequest.php
<ide> public function withCookieParams(array $cookies)
<ide> * Get the parsed request body data.
<ide> *
<ide> * If the request Content-Type is either application/x-www-form-urlencoded
<del> * or multipart/form-data, nd the request method is POST, this will be th... | 1 |
Ruby | Ruby | build an ast rather than build sql strings | 186a1b11449a2b94030791b2c778a76b07bb099f | <ide><path>activerecord/lib/active_record/association_preload.rb
<ide> def construct_id_map(records, primary_key=nil)
<ide> end
<ide>
<ide> def preload_has_and_belongs_to_many_association(records, reflection, preload_options={})
<add>
<add> left = reflection.klass.arel_table
<add>
<ide> tabl... | 1 |
Text | Text | add customized text to widget | 94320c5b81af08bfd8d55d6b0cd9d9442c55f29f | <ide><path>model_cards/mrm8488/electricidad-base-generator/README.md
<ide> ---
<ide> language: es
<ide> thumbnail: https://i.imgur.com/uxAvBfh.png
<add>widget:
<add>- text: "Madrid es una ciudad muy [MASK] en España."
<ide>
<ide>
<ide> --- | 1 |
Text | Text | add model cards for microsoft's minilm | 866a8ccabb74231fb3f5ea547f213b1d5cffaf8d | <ide><path>model_cards/microsoft/MiniLM-L12-H384-uncased/README.md
<add>---
<add>thumbnail: https://huggingface.co/front/thumbnails/microsoft.png
<add>tags:
<add>- text-classification
<add>license: mit
<add>---
<add>
<add>## MiniLM: Small and Fast Pre-trained Models for Language Understanding and Generation
<add>
<add>... | 2 |
Python | Python | remove a redundant "the" in a comment | d4f6734741929f7532c03b00e732bf7db42f7c01 | <ide><path>flask/helpers.py
<ide> def send_file(filename_or_fp, mimetype=None, as_attachment=False,
<ide> rv = current_app.response_class(data, mimetype=mimetype, headers=headers,
<ide> direct_passthrough=True)
<ide>
<del> # if we know the file modification date, we can store... | 1 |
Javascript | Javascript | destroy socket when encrypted side closes | 164d5b3465571a88da59cdddc03bb869126548eb | <ide><path>lib/tls.js
<ide> function pipe(pair, socket) {
<ide> pair.encrypted.pipe(socket);
<ide> socket.pipe(pair.encrypted);
<ide>
<add> pair.encrypted.on('close', function() {
<add> process.nextTick(function() {
<add> socket.destroy();
<add> });
<add> });
<add>
<ide> pair.fd = socket.fd;
<ide> ... | 1 |
Go | Go | fix configuration test for mknod | f80fd5da09013d7cd25a0f246ffffd7b6c064073 | <ide><path>runtime/execdriver/native/template/default_template.go
<ide> import (
<ide>
<ide> // New returns the docker default configuration for libcontainer
<ide> func New() *libcontainer.Container {
<del> return &libcontainer.Container{
<add> container := &libcontainer.Container{
<ide> CapabilitiesMask: libcontain... | 1 |
PHP | PHP | fix @param directives for cache store | 15d4384e041bcc458ae6443a6becab1d995be60c | <ide><path>src/Illuminate/Contracts/Cache/Store.php
<ide> public function many(array $keys);
<ide> * Store an item in the cache for a given number of minutes.
<ide> *
<ide> * @param string $key
<del> * @param mixed $value
<add> * @param mixed $value
<ide> * @param float|int $minutes... | 1 |
PHP | PHP | remove duplicate call to baketest | dc7fcb994fb42cb51051542768cfa9d28256cb2d | <ide><path>src/Console/Command/Task/ControllerTask.php
<ide> public function all() {
<ide> foreach ($this->listAll() as $table) {
<ide> $controller = $this->_controllerName($table);
<ide> $this->bake($controller);
<del> $this->bakeTest($controller);
<ide> $controllersCreated++;
<ide> }
<ide> } | 1 |
Python | Python | add load_vectors_into_model util | df95e2af64a6c3d2862e4317a450e8e694e2d406 | <ide><path>spacy/util.py
<ide> def get_module_path(module: ModuleType) -> Path:
<ide> return Path(sys.modules[module.__module__].__file__).parent
<ide>
<ide>
<add>def load_vectors_into_model(
<add> nlp: "Language",
<add> name: Union[str, Path],
<add> *,
<add> add_strings=True
<add>) -> None:
<add> ... | 1 |
Go | Go | move sandbox resources when container restarts | 1ffe6fef0297e5ef82bdc91774917a52e47531d9 | <ide><path>libnetwork/sandbox.go
<ide> func (sb *sandbox) SetKey(basePath string) error {
<ide> }
<ide>
<ide> sb.Lock()
<del> if sb.osSbox != nil {
<del> sb.Unlock()
<del> return types.ForbiddenErrorf("failed to set sandbox key : already assigned")
<del> }
<add> osSbox := sb.osSbox
<ide> sb.Unlock()
<del> osSbox,... | 1 |
Python | Python | add test for negative axis values in np.insert | 496813f1a23363bbd50a62a60c37f6bd4e10649b | <ide><path>numpy/lib/tests/test_function_base.py
<ide> def test_multidim(self):
<ide> assert_equal(insert(a[:,:1], 1, a[:,1], axis=1), a)
<ide> assert_equal(insert(a[:1,:], 1, a[1,:], axis=0), a)
<ide>
<add> # negative axis value
<add> a = np.arange(24).reshape((2,3,4))
<add> asser... | 1 |
Mixed | PHP | fix some typos | a8a55657a588291693b1faa93d1e6ebdb556b113 | <ide><path>CHANGELOG-5.2.md
<ide> - Simplified calling `Model::replicate()` with `$except` argument ([#13676](https://github.com/laravel/framework/pull/13676))
<ide> - Allow auth events to be serialized ([#13704](https://github.com/laravel/framework/pull/13704))
<ide> - Added `for` and `id` attributes to auth scaffold ... | 3 |
Java | Java | fix one failing test and @ignore another | 9ac71afbdaa3e9364680b0e396a27b36229e4220 | <ide><path>spring-web/src/test/java/org/springframework/http/codec/json/Jackson2JsonDecoderTests.java
<ide> import java.util.Map;
<ide>
<ide> import com.fasterxml.jackson.databind.ObjectMapper;
<add>import org.junit.Ignore;
<ide> import org.junit.Test;
<ide> import reactor.core.publisher.Flux;
<ide> import reactor.cor... | 2 |
Text | Text | control input examples of geotrend models | eec76615f68248ae65d107d817a9c22e10047b37 | <ide><path>model_cards/Geotrend/bert-base-15lang-cased/README.md
<ide> language: multilingual
<ide> datasets: wikipedia
<ide>
<ide> license: apache-2.0
<add>
<add>widget:
<add>- text: "Google generated 46 billion [MASK] in revenue."
<add>- text: "Paris is the capital of [MASK]."
<add>- text: "Algiers is the largest ci... | 30 |
Python | Python | add test for currently failing span.as_doc case | 090aed940a8340d20b4ab1cd31637ceae3753cfe | <ide><path>spacy/tests/spans/test_span.py
<ide> def test_span_to_array(doc):
<ide> assert arr[0, 0] == span[0].orth
<ide> assert arr[0, 1] == len(span[0])
<ide>
<add>
<add>@pytest.mark.xfail
<add>def test_span_as_doc(doc):
<add> span = doc[4:10]
<add> span_doc = span.as_doc()
<add> assert span.text ==... | 1 |
Text | Text | fix several markdown links in slim readme | db223fc1b90c591774dca05827150aad8abce689 | <ide><path>research/inception/inception/slim/README.md
<ide> keeping a model's architecture transparent and its hyperparameters explicit.
<ide> ## Teaser
<ide>
<ide> As a demonstration of the simplicity of using TF-Slim, compare the simplicity of
<del>the code necessary for defining the entire [VGG]
<del>(http://www.r... | 1 |
Text | Text | improve prefetch docs | e35053e8c3788d75a74aa8dce7a8437b8c86166c | <ide><path>packages/next/README.md
<ide> Since Next.js server-renders your pages, this allows all the future interaction
<ide>
<ide> #### With `<Link>`
<ide>
<del>`<Link>` will automatically prefetch pages in the background as they appear in the view.
<add>`<Link>` will automatically prefetch pages in the background ... | 1 |
Python | Python | add headers at tls connection | 5c6e50524e29da2a2581b23a2913211dae9e386e | <ide><path>libcloud/container/drivers/docker.py
<ide> def __init__(self, key, secret, secure=False,
<ide> )
<ide> self.cert_file = cert_file
<ide>
<add> def add_default_headers(self, headers):
<add> """
<add> Add parameters that are necessary for every request
<add> ... | 1 |
Ruby | Ruby | add `casks` method to iterate through arguments | 9c8f7138f35625878e017559c896441fda6f357c | <ide><path>Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb
<ide> def self.run(*args)
<ide> def initialize(*args)
<ide> @args = process_arguments(*args)
<ide> end
<add>
<add> def self.warn_unavailable_with_suggestion(cask_token, e)
<add> exact_match, partial_matches = Search.search(... | 24 |
Text | Text | add default colors and secondary button | c759b57edd6917b0316bae1446867a7e7428bffc | <ide><path>guide/english/bootstrap/buttons/index.md
<ide> This is a list of the CSS classes that bootstrap provides for buttons. They give
<ide>
<ide> `<button type="button" class="btn">Basic</button>`
<ide>
<del>`.btn-primary` Bootstrap's primary button.
<add>`.btn-primary` Bootstrap's primary button. Default color ... | 1 |
Java | Java | add jni bindings | ca79e6cf30751bd111b95435ea546da3d88f9aab | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatARTSurfaceViewManager.java
<ide> import android.graphics.Bitmap;
<ide>
<ide> import com.facebook.csslayout.CSSMeasureMode;
<del>import com.facebook.csslayout.CSSNode;
<add>import com.facebook.csslayout.CSSNodeAPI;
<ide> import com.facebook.csslayout.Mea... | 5 |
Javascript | Javascript | fix _debugger by properly proxying repl | 051d482b151cc15b8273d705ec57209d0fa1db2a | <ide><path>lib/internal/repl.js
<ide> 'use strict';
<ide>
<del>module.exports = {createRepl: createRepl};
<del>
<ide> const Interface = require('readline').Interface;
<ide> const REPL = require('repl');
<ide> const path = require('path');
<ide>
<add>module.exports = Object.create(REPL);
<add>module.exports.createInte... | 3 |
PHP | PHP | batch() doc block | f857dd2248df3b909cb7dd0bd47c9117f8a38a39 | <ide><path>src/Illuminate/Bus/Dispatcher.php
<ide> public function findBatch(string $batchId)
<ide> /**
<ide> * Create a new batch of queueable jobs.
<ide> *
<del> * @param \Illuminate\Support\Collection|array $jobs
<add> * @param \Illuminate\Support\Collection|array|mixed $jobs
<ide> * @... | 2 |
Ruby | Ruby | use start_with? instead of regexp | d494c9db8e24740d87c0717ed35ca8731f7e209b | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_config_scripts
<ide>
<ide> paths.each do |p|
<ide> next if whitelist.include? p.downcase
<del> next if p =~ %r[^(#{real_cellar.to_s}|#{HOMEBREW_CELLAR.to_s})]
<add> next if p.start_with?(real_cellar.to_s, HOMEBREW_CELLAR.to_s)
<ide>
<ide> c... | 1 |
PHP | PHP | use correct typehint | 3c874bc92fa13b6542387f58058cf216f934ccfb | <ide><path>src/Controller/Component/AuthComponent.php
<ide> protected function _isLoginAction(Controller $controller): bool
<ide> * Handle unauthorized access attempt
<ide> *
<ide> * @param \Cake\Controller\Controller $controller A reference to the controller object
<del> * @return \Cake\Http\Respons... | 1 |
Python | Python | fix broken xcom in ekspodoperator | 653c13ec0cf4729f991adf8c7b37b3a272caac56 | <ide><path>airflow/providers/amazon/aws/operators/eks.py
<ide> def execute(self, context):
<ide> pod_username=self.pod_username,
<ide> pod_context=self.pod_context,
<ide> ) as self.config_file:
<del> super().execute(context)
<add> return super().execute(context) | 1 |
Javascript | Javascript | remove redundant msie variable | 6cba9c5e7c22dcedb585c16719f081d5fddeccaf | <ide><path>src/ngScenario/browserTrigger.js
<ide> 'use strict';
<ide>
<ide> (function() {
<del> /**
<del> * documentMode is an IE-only property
<del> * http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx
<del> */
<del> var msie = document.documentMode;
<del>
<ide> /**
<ide> * Triggers a brow... | 1 |
PHP | PHP | add default mask for sqlite database | 3cce61360bc513808973b9ed4b278e7ec1aad1cb | <ide><path>src/Database/Driver/Sqlite.php
<ide> class Sqlite extends Driver
<ide> 'password' => null,
<ide> 'database' => ':memory:',
<ide> 'encoding' => 'utf8',
<add> 'mask' => 0644,
<ide> 'flags' => [],
<ide> 'init' => [],
<ide> ]; | 1 |
Text | Text | convert tabs to spaces | 9ddc915a9ccb64a786fdf90fb6ffc2a8792c74a8 | <ide><path>doc/changelogs/CHANGELOG_ARCHIVE.md
<ide> https://github.com/nodejs/node/commit/8b8a7a7f9b41e74e1e810d0330738ad06fc302ec
<ide> https://github.com/nodejs/node/commit/a72120190a8ffdbcd3d6ad2a2e6ceecd2087111e
<ide>
<ide> * npm: Upgrade to 1.1.30
<del> - Improved 'npm init'
<del> - Fix the 'cb never called' err... | 3 |
Go | Go | add cmdlogs test | 177a2f5946623a4d4f90f5a227e57211eed6ade3 | <ide><path>commands_test.go
<ide> func TestRunAutoRemove(t *testing.T) {
<ide> t.Fatalf("failed to remove container automatically: container %s still exists", temporaryContainerID)
<ide> }
<ide> }
<add>
<add>func TestCmdLogs(t *testing.T) {
<add> cli := NewDockerCli(nil, ioutil.Discard, ioutil.Discard, testDaemonPro... | 1 |
Javascript | Javascript | use jquery again in e2e tests | feed7d694441419b99e876188c36aeff1ae05090 | <ide><path>docs/gulpfile.js
<ide> gulp.task('assets', ['bower'], function() {
<ide> copyComponent('open-sans-fontface'),
<ide> copyComponent('lunr.js','/*.js'),
<ide> copyComponent('google-code-prettify'),
<del> copyComponent('jquery', '/jquery.*'),
<add> copyComponent('jquery', '/dist/*.js'),
<ide> ... | 1 |
Javascript | Javascript | fix dimensions for componentscript | 103ec2f770dbb785ef4bc26f8662c74edded796a | <ide><path>Libraries/Utilities/Dimensions.js
<ide> class Dimensions {
<ide> }
<ide> }
<ide>
<del>// Subscribe before calling getConstants to make sure we don't miss any updates in between.
<del>RCTDeviceEventEmitter.addListener(
<del> 'didUpdateDimensions',
<del> (update: DimensionsPayload) => {
<del> Dimension... | 1 |
Javascript | Javascript | avoid bool conversion | 974155e35d23785a6ddcd0a4a2f131a41c7cffd5 | <ide><path>packages/ember-metal/lib/property_events.js
<ide> function propertyWillChange(obj, keyName, _meta) {
<ide>
<ide> let watching = meta && meta.peekWatching(keyName) > 0;
<ide> let possibleDesc = obj[keyName];
<del> let desc = (possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDe... | 3 |
Go | Go | remove the os check when creating a container | 1a3d8019d1ddb82e8a6b437a8eccf2d22cbc8b5d | <ide><path>daemon/create.go
<ide> import (
<ide> "github.com/docker/docker/errdefs"
<ide> "github.com/docker/docker/image"
<ide> "github.com/docker/docker/pkg/idtools"
<del> "github.com/docker/docker/pkg/system"
<ide> "github.com/docker/docker/runconfig"
<ide> v1 "github.com/opencontainers/image-spec/specs-go/v1"
... | 1 |
PHP | PHP | add backwards compatibility mode for get() | 9860a554ae5fd9250bf7a1392618c78b59f78037 | <ide><path>src/Http/Cookie/CookieCollection.php
<ide> public function add(CookieInterface $cookie)
<ide> /**
<ide> * Get the first cookie by name.
<ide> *
<del> * If the provided name matches a URL (matches `#^https?://#`) this method
<add> * If the provided name matches a URL (starts with `http:`... | 2 |
Python | Python | improve performance for noncallble attributes | 281fc074ba255ed9c5724cc971fa86c78d4dca38 | <ide><path>rest_framework/fields.py
<ide> def is_simple_callable(obj):
<ide> """
<ide> True if the object is a callable that takes no arguments.
<ide> """
<add> if not callable(obj):
<add> return False
<add>
<ide> # Bail early since we cannot inspect built-in function signatures.
<ide> if ... | 2 |
Python | Python | fix a regression introduced by f011b90363 | fed2877cf1307eb9c3ef36787fe96a51526db17e | <ide><path>django/core/management/__init__.py
<ide> def execute(self):
<ide> # These options could affect the commands that are available, so they
<ide> # must be processed early.
<ide> parser = LaxOptionParser(usage="%prog subcommand [options] [args]",
<del> vers... | 1 |
Ruby | Ruby | remove delegation to `chain` | 4bf10fcdee37ca4f16e04e26b7720568b14b0e4b | <ide><path>activerecord/lib/active_record/associations/join_dependency/join_association.rb
<ide> class JoinAssociation < JoinPart # :nodoc:
<ide>
<ide> attr_accessor :tables
<ide>
<del> delegate :chain, :to => :reflection
<del>
<ide> def initialize(reflection, index, join_type)
<ide> ... | 1 |
Go | Go | remove attachable network on swarm leave | 3cedca5d532958ffc007d9b62cc871d3d113f054 | <ide><path>daemon/cluster/cluster.go
<ide> func (c *Cluster) newNodeRunner(conf nodeStartConfig) (*nodeRunner, error) {
<ide> return nil, err
<ide> }
<ide>
<del> c.config.Backend.SetClusterProvider(c)
<add> c.config.Backend.DaemonJoinsCluster(c)
<ide>
<ide> return nr, nil
<ide> }
<ide> func (c *Cluster) Leave(for... | 5 |
Javascript | Javascript | make message non-enumerable | 22da2f731d90235289a95bffe1ae3750a62a33bc | <ide><path>lib/internal/errors.js
<ide> function exceptionWithHostPort(err, syscall, address, port, additional) {
<ide> }
<ide>
<ide> /**
<del> * @param {number|string} err - A libuv error number or a c-ares error code
<add> * @param {number|string} code - A libuv error number or a c-ares error code
<ide> * @param {s... | 4 |
Go | Go | add build flag to exec test | ecdbc1a0aff40fa28389d1971528641e2824e5a9 | <ide><path>integration-cli/docker_api_exec_test.go
<add>// +build !test_no_exec
<add>
<ide> package main
<ide>
<ide> import (
<ide><path>integration-cli/docker_cli_exec_test.go
<add>// +build !test_no_exec
<add>
<ide> package main
<ide>
<ide> import ( | 2 |
Java | Java | introduce forwardedheaderfilter for webflux | e70210a1da994ea52e1ade30b052bea9e12e9d1d | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/DefaultServerHttpRequestBuilder.java
<ide>
<ide> package org.springframework.http.server.reactive;
<ide>
<add>import java.net.InetSocketAddress;
<ide> import java.net.URI;
<ide> import java.net.URISyntaxException;
<add>import java.util.Linke... | 5 |
PHP | PHP | fix selected values in some cases | 6d8062dd9c3bb40d0feb030c9b5fa7d923c4ae58 | <ide><path>src/View/Widget/DateTime.php
<ide> protected function _deconstructDate($value, $options) {
<ide> if (isset($value['year'], $value['month'], $value['day'])) {
<ide> $date->setDate($value['year'], $value['month'], $value['day']);
<ide> }
<add> if (!isset($value['second'])) {
<add> $value['s... | 3 |
PHP | PHP | modify option to fullbase for consistency | b96873088bc0282aa03b72b4bb630e8d737090d8 | <ide><path>src/View/Helper/UrlHelper.php
<ide> class UrlHelper extends Helper
<ide> *
<ide> * - `escape`: If false, the URL will be returned unescaped, do only use if it is manually
<ide> * escaped afterwards before being displayed.
<del> * - `full`: If true, the full base URL will be prepended to... | 1 |
Ruby | Ruby | add test cases for hash#asset_valid_keys | fedb16ae12e60de95e4b1177a131e896da3a8012 | <ide><path>activesupport/test/core_ext/hash_ext_test.rb
<ide> def test_assert_valid_keys
<ide> { :failure => "stuff", :funny => "business" }.assert_valid_keys([ :failure, :funny ])
<ide> { :failure => "stuff", :funny => "business" }.assert_valid_keys(:failure, :funny)
<ide> end
<add> # not all valid ... | 1 |
Javascript | Javascript | remove log in webxrmanager | 7dd52e4a5a3fc3aa68c3d69078e780c9b792d881 | <ide><path>src/renderers/webxr/WebXRManager.js
<ide> function WebXRManager( renderer, gl ) {
<ide> //
<ide>
<ide> const inputSources = session.inputSources;
<del> //console.log(inputSources);
<ide>
<ide> for ( let i = 0; i < controllers.length; i ++ ) {
<ide> | 1 |
Python | Python | add a -1 option to run glances in per cpu mode | 70db4139f7c13ff89d670d33755b2fcd84626380 | <ide><path>glances/glances.py
<ide> def __init__(self, refresh_time=1, use_bold=1):
<ide> self.fs_tag = fs_tag
<ide> self.log_tag = True
<ide> self.help_tag = False
<del> self.percpu_tag = False
<add> self.percpu_tag = percpu_tag
<ide> self.process_tag = process_tag
<ide> ... | 1 |
PHP | PHP | import closure at the top | 5d26f491b27accedb44e2c444820c18d8771a49e | <ide><path>src/Illuminate/Database/Eloquent/FactoryBuilder.php
<ide>
<ide> namespace Illuminate\Database\Eloquent;
<ide>
<add>use Closure;
<ide> use Faker\Generator as Faker;
<ide> use InvalidArgumentException;
<ide>
<ide> protected function makeInstance(array $attributes = [])
<ide> protected function evaluateC... | 1 |
Text | Text | improve pr template with details from contributing | 670d8f1dbef0ee56d5dc5ca2c2eac1490fb9685c | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<ide> ## FreeCodeCamp Pull Request template
<del>Please, go through steps before you submit a PR.
<add>Please, go through these steps before you submit a PR.
<ide>
<ide> 1. Make sure that your PR is not a duplicate.
<del>2. If not then:
<add>2. If not, then make sure that:
<... | 1 |
Ruby | Ruby | allow ruby 2.6.10 on < ventura | 476b5e74246b72c50fc02d7c0b9b6b8ae1291e18 | <ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb
<ide> def check_if_xcode_needs_clt_installed
<ide> end
<ide>
<ide> def check_ruby_version
<del> # TODO: update portable-ruby to 2.6.10 when Ventura reaches RC
<del> required_version = if MacOS.version >= :ventura &&
<del> ... | 1 |
Ruby | Ruby | add tests for aliased types | f60190873828622d9abb36ba924334f2ef776742 | <ide><path>activerecord/test/cases/schema_dumper_test.rb
<ide> def test_schema_dump_does_not_include_limit_for_float_field
<ide> assert_match %r{t\.float\s+"temperature"$}, output
<ide> end
<ide>
<add> def test_schema_dump_aliased_types
<add> output = standard_dump
<add> assert_match %r{t\.binary\s+"blob_... | 2 |
Mixed | Ruby | make possibile to get different message verifiers | 2be4916e8ee6f36b090df91d28d0c484983dcb5a | <ide><path>railties/CHANGELOG.md
<del>* Add `Application#message_verifier` method to return a application's message verifier.
<add>* Add `Application#message_verifier` method to return a message verifier.
<ide>
<ide> This verifier can be used to generate and verify signed messages in the application.
<ide>
<i... | 3 |
PHP | PHP | fix broken shortcut | 74cd4cd1f4458fcc1c6ad1f526025c2a5aab018b | <ide><path>src/Illuminate/Foundation/Console/ListenerMakeCommand.php
<ide> protected function getOptions()
<ide> return [
<ide> ['event', 'e', InputOption::VALUE_REQUIRED, 'The event class being listened for.'],
<ide>
<del> ['queued', 'q', InputOption::VALUE_NONE, 'Indicates the event li... | 1 |
Javascript | Javascript | move require.onerror default to jsonp template | af2a362ba14aac95a5c0cf8aa8d1ed6860c04e21 | <ide><path>lib/JsonpMainTemplatePlugin.js
<ide> JsonpMainTemplatePlugin.prototype.apply = function(mainTemplate) {
<ide> "return installedChunks[chunkId][2] = promise;"
<ide> ]);
<ide> });
<add> this.plugin("require-extensions", function(source, chunk) {
<add> if(chunk.chunks.length === 0) return source;
<add> ... | 2 |
Java | Java | clarify resolvabletype.resolve() java doc | ee8f1aa61a4c9aad2ea09ce24aa4f247b3c17dfc | <ide><path>spring-core/src/main/java/org/springframework/core/ResolvableType.java
<ide> public Class<?> resolveGeneric(int... indexes) {
<ide> /**
<ide> * Resolve this type to a {@link java.lang.Class}, returning {@code null} if the type
<ide> * cannot be resolved. This method will consider bounds of {@link TypeVa... | 1 |
Text | Text | fix slight grammatical error | 571aabfdd35f6379b885722ece8e121388ffd932 | <ide><path>threejs/lessons/threejs-primitives.md
<ide> primitives.
<ide> Here we are extruding a heart shape. Note this is the basis
<ide> for <code>TextBufferGeometry</code> and <code>TextGeometry</code> respectively.</div>
<ide> <div data-primitive="IcosahedronBufferGeometry">An icosahedron (20 sides)</div>
<del><div... | 1 |
Go | Go | add a test using the flags | 6228761f67bb5f2af6c3105de556fa3fedb12069 | <ide><path>integration-cli/docker_cli_save_load_test.go
<ide> import (
<ide> "testing"
<ide> )
<ide>
<del>// save a repo and try to load it
<del>func TestSaveAndLoadRepo(t *testing.T) {
<add>// save a repo and try to load it using stdout
<add>func TestSaveAndLoadRepoStdout(t *testing.T) {
<ide> runCmd := exec.Comman... | 1 |
Text | Text | add changes for 1.6.8 | 22450e5b7c8486a721db74be32333007273ba584 | <ide><path>CHANGELOG.md
<add><a name="1.6.8"></a>
<add># 1.6.8 beneficial-tincture (2017-12-18)
<add>
<add>
<add>## Bug Fixes
<add>- **$location:**
<add> - always decode special chars in `$location.url(value)`
<add> ([2bdf71](https://github.com/angular/angular.js/commit/2bdf7126878c87474bb7588ce093d0a3c57b0026))
<add... | 1 |
Javascript | Javascript | add $locatonchange[begin|completed] event | 92a2e1807657c69e1372106b0727675a30f4cbd7 | <ide><path>src/bootstrap/bootstrap-prettify.js
<ide> directive.ngEmbedApp = ['$templateCache', '$browser', '$rootScope', '$location',
<ide> $provide.value('$anchorScroll', angular.noop);
<ide> $provide.value('$browser', $browser);
<ide> $provide.provider('$location', function() {
<del> ... | 5 |
Text | Text | fix broken links in faq | 028c47dc5ce8de8a5513d984969f1f4231be6cc6 | <ide><path>docs/templates/getting-started/faq.md
<ide> - [How can I use HDF5 inputs with Keras?](#how-can-i-use-hdf5-inputs-with-keras)
<ide> - [Where is the Keras configuration file stored?](#where-is-the-keras-configuration-file-stored)
<ide> - [How can I obtain reproducible results using Keras during development?](#... | 1 |
Python | Python | remove users of `numpy.compat.open_latin1` | b2f8b7c5e0f66f48398d830cebd499a60a2e7120 | <ide><path>numpy/distutils/fcompiler/__init__.py
<ide> import sys
<ide> import re
<ide>
<del>from numpy.compat import open_latin1
<del>
<ide> from distutils.sysconfig import get_python_lib
<ide> from distutils.fancy_getopt import FancyGetopt
<ide> from distutils.errors import DistutilsModuleError, \
<ide> def is_free_... | 1 |
PHP | PHP | adjust event facade comment for ide hint | 18b1b8946cc71cc074ea2733ff2054fb21d1dcb5 | <ide><path>src/Illuminate/Support/Facades/Event.php
<ide> * @method static void flush(string $event)
<ide> * @method static void forget(string $event)
<ide> * @method static void forgetPushed()
<del> * @method static void listen(string|array $events, \Closure|string $listener = null)
<add> * @method static void list... | 1 |
Ruby | Ruby | return sql literal nodes | c59f91e4af4dad29c94d6cd969a45d9288746a0b | <ide><path>lib/arel/select_manager.rb
<ide> def join_sql
<ide> end
<ide>
<ide> def order_clauses
<del> Visitors::OrderClauses.new(@engine).accept @head
<add> Visitors::OrderClauses.new(@engine).accept(@head).map { |x|
<add> Nodes::SqlLiteral.new x
<add> }
<ide> end
<ide>
<ide> de... | 2 |
Text | Text | add link anchor [ci skip] | 02d2fdb123f38c11b26a190f62a9f1c28c7619ab | <ide><path>website/docs/usage/training.md
<ide> The default score weights are defined by each pipeline component via the
<ide> components are weighted equally. If a score weight is set to `null`, it will be
<ide> excluded from the logs and the score won't be weighted.
<ide>
<del><Accordion title="Understanding the tra... | 1 |
Javascript | Javascript | remove useless return statement | ee2d69b9015beae3b381f5bc9c83a0ec74fd3887 | <ide><path>lib/Compiler.js
<ide> class Compiler {
<ide> this.cache.beginIdle();
<ide> this.running = false;
<ide>
<del> let callbackRst;
<del> if (callback !== undefined) {
<del> callbackRst = callback(err, stats);
<del> }
<add> if (callback !== undefined) callback(err, stats);
<ide> this.hooks.aft... | 1 |
Javascript | Javascript | adopt setfrommatrixcolumn in orbit controls | b1c0f302710766d0ac7610891c6809e80cddbc24 | <ide><path>examples/js/controls/OrbitControls.js
<ide> THREE.OrbitControls = function ( object, domElement ) {
<ide>
<ide> return function panLeft( distance, objectMatrix ) {
<ide>
<del> var te = objectMatrix.elements;
<del>
<del> // get X column of objectMatrix
<del> v.set( te[ 0 ], te[ 1 ], te[ 2 ] );
<del>... | 1 |
PHP | PHP | fix controller comment | 4bfcb064bfc8468d0f47fc270838d1ae7a4c5872 | <ide><path>application/controllers/home.php
<ide> class Home_Controller extends Controller {
<ide> | application "routes.php" file. Laravel is smart enough to find this
<ide> | controller and call the default method, which is "get_index".
<ide> |
<del> | Just like routes, controllers are also RESTful by default. Eac... | 1 |
Ruby | Ruby | reapply extensions when using except and only | 96b9fc44000e5f40ba463ff0e893db8c4fd33b85 | <ide><path>activerecord/lib/active_record/relation/spawn_methods.rb
<ide> def except(*skips)
<ide> result.send(:"#{method}_value=", send(:"#{method}_value"))
<ide> end
<ide>
<add> # Apply scope extension modules
<add> result.send(:apply_modules, extensions)
<add>
<ide> result
<ide> en... | 2 |
PHP | PHP | remove trailing newline from hot url | 23f259aeacabf532041a926e7c262789760063ea | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function mix($path, $manifestDirectory = '')
<ide> }
<ide>
<ide> if (file_exists(public_path($manifestDirectory.'/hot'))) {
<del> $url = file_get_contents(public_path($manifestDirectory.'/hot'));
<add> $url = rtrim(file_get_co... | 1 |
Python | Python | restore missing import | 5798ce765184f320c70c5130a515984b17c10f52 | <ide><path>numpy/core/multiarray.py
<ide> from . import overrides
<ide> from . import _multiarray_umath
<ide> from ._multiarray_umath import * # noqa: F403
<add># These imports are needed for backward compatibility,
<add># do not change them. issue gh-15518
<add># _get_ndarray_c_version is semi-public, on purpose not ... | 2 |
Ruby | Ruby | remove unnecessary reader | e20dd73df42d63b206d221e2258cc6dc7b1e6068 | <ide><path>activerecord/lib/active_record/associations/builder/association.rb
<ide> class << self
<ide> self.valid_options = [:class_name, :foreign_key, :validate]
<ide> self.extensions = []
<ide>
<del> attr_reader :model, :name, :scope, :options, :reflection
<add> attr_reader :model, :name, :scope, :... | 1 |
Mixed | Text | require action_view to fix missing constant | 47860b62b3c9a915c00fd379b705c545d4c6eb0d | <ide><path>actionpack/CHANGELOG.md
<add>* Properly require `action_view` in `AbstractController::Rendering` to prevent
<add> uninitialized constant error for `ENCODING_FLAG`.
<add>
<add> *Philipe Fatio*
<add>
<ide> * Do not discard query parameters that form a hash with the same root key as
<ide> the `wra... | 2 |
Javascript | Javascript | add getproperties method to sc.observable | 68e5dadca88bb0b4cf9bcdd00d3ac970ea28be39 | <ide><path>packages/sproutcore-runtime/lib/mixins/observable.js
<ide> SC.Observable = SC.Mixin.create(/** @scope SC.Observable.prototype */ {
<ide> get: function(keyName) {
<ide> return get(this, keyName);
<ide> },
<add>
<add> /**
<add> To get multiple properties at once, call getProperties
<add> with an... | 2 |
Javascript | Javascript | fix typo in flatlist docs | 22da6f2f3f7bab852f05921d32d8425123e70b55 | <ide><path>Libraries/CustomComponents/Lists/FlatList.js
<ide> type OptionalProps<ItemT> = {
<ide> */
<ide> keyExtractor: (item: ItemT, index: number) => string,
<ide> /**
<del> * Multiple columns can only be rendered with `horizontal={false}`` and will zig-zag like a
<add> * Multiple columns can only be rend... | 1 |
Python | Python | use api dict for ufunc as well | 6ec24a68d20f092fe6ec67b66f3078c43b8b873b | <ide><path>numpy/core/code_generators/generate_ufunc_api.py
<ide> import os
<ide> import genapi
<add>import genapi2
<add>
<add>import numpy_api
<add>
<add>from genapi2 import \
<add> TypeApi, GlobalVarApi, FunctionApi, BoolValuesApi
<ide>
<ide> h_template = r"""
<ide> #ifdef _UMATHMODULE
<ide> #endif
<ide> #end... | 1 |
Text | Text | fix typo in readme.md | 6bb522bab43702eb3a7e21218ae303a021518fef | <ide><path>README.md
<ide> or availability of the Node.js application or its system for which the attacker
<ide> does not already have the capability.
<ide>
<ide> To illustrate the point, here are some examples of past issues and what the
<del>Security Reponse Team thinks of them. When in doubt, however, please do sen... | 1 |
Python | Python | implement a fasttext example | 46d5b197e022815c2074fbc94ca324d31d470dd0 | <ide><path>examples/imdb_fasttext.py
<add>'''This example demonstrates the use of fasttext for text classification
<add>
<add>Based on Joulin et al's paper:
<add>
<add>Bags of Tricks for Efficient Text Classification
<add>https://arxiv.org/abs/1607.01759
<add>
<add>Can achieve accuracy around 88% after 5 epochs in 70s.... | 1 |
PHP | PHP | add curly brackets | 04c4b03c15123ebc9a1f943ce965a29c87e5fa3d | <ide><path>src/Illuminate/Cookie/Middleware/EncryptCookies.php
<ide> protected function decryptArray(array $cookie)
<ide> $decrypted = array();
<ide>
<ide> foreach ($cookie as $key => $value)
<add> {
<ide> $decrypted[$key] = $this->encrypter->decrypt($value);
<add> }
<ide>
<ide> return $decrypted;
<ide> } | 1 |
Javascript | Javascript | fix eslint error | a9c771a8aceef9339217b35d9f569355b2f8b142 | <ide><path>lib/Template.js
<ide> const stringifyIdSortPredicate = (a, b) => {
<ide>
<ide> /**
<ide> * @param {Module} module the module to compare against
<del> * @return {boolean} return true if module.id is equal to type "number"
<add> * @returns {boolean} return true if module.id is equal to type "number"
<ide> *... | 1 |
Text | Text | fix typo in options for render [ci skip] | 4069282d74f350a3b3814928c8c428be78dca06b | <ide><path>guides/source/layouts_and_rendering.md
<ide> TIP: `send_file` is often a faster and better option if a layout isn't required.
<ide>
<ide> #### Options for `render`
<ide>
<del>Calls to the `render` method generally accept five options:
<add>Calls to the `render` method generally accept six options:
<ide>
<... | 1 |
Go | Go | add fixme for the change detection | 804abddec155dedc42e99ad746f1cf1fdbfe0fed | <ide><path>fs/store.go
<ide> func (image *Image) Mount(root, rw string) (*Mountpoint, error) {
<ide> }
<ide>
<ide> // FIXME: Create tests for deletion
<add> // FIXME: move this part to change.go, maybe refactor
<add> // fs.Change() to avoid the fake mountpoint
<ide> // Retrieve the changeset from the parent ... | 1 |
Python | Python | eliminate some resource warnings | 6c359e0f532d18a71895f035dd1326ca5d2d67f8 | <ide><path>tests/conftest.py
<ide> :license: BSD, see LICENSE for more details.
<ide> """
<ide> import flask
<add>import gc
<ide> import os
<ide> import sys
<ide> import pkgutil
<ide> def inner(name):
<ide> @pytest.yield_fixture(autouse=True)
<ide> def catch_deprecation_warnings(recwarn):
<ide> yield
<add> g... | 3 |
Ruby | Ruby | get perl/ruby from homebrew_path | 3448335a14612bc7d3d426f79e3705b2bdad26cd | <ide><path>Library/Homebrew/system_config.rb
<ide> def describe_path(path)
<ide> end
<ide>
<ide> def describe_perl
<del> describe_path(which("perl"))
<add> describe_path(which("perl", ENV["HOMEBREW_PATH"]))
<ide> end
<ide>
<ide> def describe_python
<ide> def describe_python
<ide> end
<id... | 1 |
Javascript | Javascript | move edits to src/package.js | ea284ebf6027b8ed038858fce2694c7af46130c0 | <ide><path>src/package.js
<ide> console.log(JSON.stringify({
<ide> },
<ide> "scripts": {
<ide> "test": "node_modules/.bin/vows; echo"
<del> }
<add> },
<add> "licenses": [
<add> {
<add> "type": "BSD",
<add> "url": "https://github.com/mbostock/d3/blob/master/LICENSE"
<add> }
<add> ]
<ide> }, n... | 1 |
Text | Text | add solution to arguments optional challenge | 03c603787f30713ba5662c2e5f8d897987ad99c7 | <ide><path>guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional/index.md
<ide> It can be quite complicated to understand what needs to be done. There are alway
<ide>
<ide> ### Relevant Links
<ide>
<del>* <a href='https://developer.mozilla.org/en-... | 1 |
Python | Python | convert property to @property | c458774c637c508f4b1e49ebaa2f85083579fa10 | <ide><path>numpy/core/getlimits.py
<ide> def __init__(self, int_type):
<ide> if self.kind not in 'iu':
<ide> raise ValueError("Invalid integer data type %r." % (self.kind,))
<ide>
<add> @property
<ide> def min(self):
<ide> """Minimum value of given dtype."""
<ide> if self.kin... | 7 |
Java | Java | add runtime hints for scheduling support | fd265a18c619b21f97f753871c6e1c32df65ba32 | <ide><path>spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java
<ide> import java.lang.annotation.Target;
<ide> import java.util.concurrent.TimeUnit;
<ide>
<add>import org.springframework.aot.hint.annotation.Reflective;
<ide> import org.springframework.scheduling.config.ScheduledTaskRe... | 4 |
Java | Java | improve javadoc of xobserver types. | f7a28703bd533ad235114e27e86cc7ac06ee9dfb | <ide><path>src/main/java/io/reactivex/CompletableObserver.java
<ide> import io.reactivex.disposables.Disposable;
<ide>
<ide> /**
<del> * Represents the subscription API callbacks when subscribing to a Completable instance.
<add> * Provides a mechanism for receiving push-based notification of a valueless completion or ... | 4 |
Python | Python | update ukrainian create_lemmatizer kwargs | e367864e59ed366adb8f1b416f91828c05eac3a0 | <ide><path>spacy/lang/uk/__init__.py
<ide> class UkrainianDefaults(Language.Defaults):
<ide> stop_words = STOP_WORDS
<ide>
<ide> @classmethod
<del> def create_lemmatizer(cls, nlp=None):
<add> def create_lemmatizer(cls, nlp=None, **kwargs):
<ide> return UkrainianLemmatizer()
<ide>
<ide> | 1 |
PHP | PHP | add a withcallback method | 87c4e23d2d48d0a487432bb9a91e45b8de75dec9 | <ide><path>src/Illuminate/Http/JsonResponse.php
<ide> public function __construct($data = null, $status = 200, $headers = [], $options
<ide> parent::__construct($data, $status, $headers);
<ide> }
<ide>
<add> /**
<add> * Sets the JSONP callback.
<add> *
<add> * @param string|null $callback
... | 1 |
PHP | PHP | fix bug in fluent class | 10ee41f3b3306d5b29c05937f9b2086b538269d2 | <ide><path>laravel/fluent.php
<ide> public function __construct($attributes = array())
<ide> */
<ide> public function get($attribute, $default = null)
<ide> {
<del> return array_get($attributes, $attribute, $default);
<add> return array_get($this->attributes, $attribute, $default);
<ide> }
<ide>
<ide> /** | 1 |
Ruby | Ruby | eliminate nested conditional | a1e7d7177f713c3d3bed79e5723849875cd0df2f | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> def prefix
<ide> elsif File.executable? "#{V4_BUNDLE_PATH}/Contents/Developer/usr/bin/make"
<ide> # fallback for broken Xcode 4.3 installs
<ide> Pathname.new("#{V4_BUNDLE_PATH}/Contents/Developer")
<del> else
<del> path = bundle_path
<d... | 1 |
PHP | PHP | fix cs error | 855c4d114b0ac42169b1cb6237f9dcaefc5f4408 | <ide><path>src/Auth/BaseAuthenticate.php
<ide> public function passwordHasher()
<ide> }
<ide>
<ide> $passwordHasher = $this->_config['passwordHasher'];
<add>
<ide> return $this->_passwordHasher = PasswordHasherFactory::build($passwordHasher);
<ide> }
<ide>
<ide><path>src/Auth/BasicAuthenti... | 300 |
Python | Python | improve a number of error messages in keras layers | fdf91ec03325eb2900d87ccaf572815968779404 | <ide><path>keras/distribute/keras_stateful_lstm_model_correctness_test.py
<ide> def disabled_test_stateful_lstm_model_correctness(
<ide> def test_incorrectly_use_multiple_cores_for_stateful_lstm_model(
<ide> self, distribution, use_numpy, use_validation_data):
<ide> with self.assertRaisesRegex(
<del> ... | 8 |
Text | Text | add changelog entry to | 34a1c7e284e9d307f61070dfb30f0d6ab34c74d2 | <ide><path>activerecord/CHANGELOG.md
<add>* Change the schema cache format to use YAML instead of Marshal.
<add>
<add> *Kir Shatrov*
<add>
<ide> * Support index length and order options using both string and symbol
<ide> column names.
<ide> | 1 |
Ruby | Ruby | support symbol foreign key to delete | 995c697511a4e77fbe1e00793486ae07b18c5017 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def remove_foreign_key(from_table, options_or_to_table = {})
<ide> end
<ide>
<ide> fk_name_to_delete = options.fetch(:name) do
<del> fk_to_delete = foreign_keys(from_table).detect {|fk| fk.column ... | 2 |
Go | Go | add bitseq package | 5034c9bb1154ea166be99569496df53e8fd1c62e | <ide><path>libnetwork/bitseq/sequence.go
<add>// Package bitseq provides a structure and utilities for representing long bitmask
<add>// as sequence of run-lenght encoded blocks. It operates direclty on the encoded
<add>// representation, it does not decode/encode.
<add>package bitseq
<add>
<add>import (
<add> "fmt"
<a... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.