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 |
|---|---|---|---|---|---|
Text | Text | update the release date | 5224feded47c5f85514ac89c79e3de49060b0d99 | <ide><path>docs/topics/release-notes.md
<ide> You can determine your currently installed version using `pip freeze`:
<ide>
<ide> ### 3.3.2
<ide>
<del>**Date**: [16th December 2015][3.3.2-milestone].
<add>**Date**: [14th December 2015][3.3.2-milestone].
<ide>
<ide> * `ListField` enforces input is a list. ([#3513][gh3... | 1 |
Javascript | Javascript | remove picker from xhr example | 65740723d9842bbd13e8d201848a7572bdbb0b1f | <ide><path>packages/rn-tester/js/examples/XHR/XHRExampleBinaryUpload.js
<ide> const React = require('react');
<ide> const {
<ide> Alert,
<ide> Linking,
<del> Picker,
<ide> StyleSheet,
<ide> Text,
<ide> TouchableHighlight,
<ide> View,
<ide> } = require('react-native');
<add>import RNTOption from '../../comp... | 1 |
Javascript | Javascript | avoid allocations in bidi() | 2e93a0cc9878c8493b146e76a08365e9afa3b505 | <ide><path>src/core/bidi.js
<ide> var bidi = PDFJS.bidi = (function bidiClosure() {
<ide> this.dir = (vertical ? 'ttb' : (isLTR ? 'ltr' : 'rtl'));
<ide> }
<ide>
<add> // These are used in bidi(), which is called frequently. We re-use them on
<add> // each call to avoid unnecessary allocations.
<add> var chars... | 1 |
Javascript | Javascript | update meta.js (new buffer when init) | 8b931ae09f96e16f04e866c8a03d4dba5b7a2f67 | <ide><path>local-cli/bundle/output/meta.js
<ide> module.exports = function(code, encoding) {
<ide> const hash = crypto.createHash('sha1');
<ide> hash.update(code, encoding);
<ide> const digest = hash.digest('binary');
<del> const signature = Buffer(digest.length + 1);
<add> const signature = Buffer.alloc ? Buff... | 1 |
Text | Text | add step 1 instructions for maskgan. | de10c0c25630dd05aab871ece7a88e0e009a39ce | <ide><path>research/maskgan/README.md
<ide> tested. Pretraining may not work correctly.
<ide>
<ide> For training on PTB:
<ide>
<del>1. Pretrain a LM on PTB and store the checkpoint in `/tmp/pretrain-lm/`.
<del>Instructions WIP.
<add>1. Follow instructions here ([Tensorflow RNN Language Model Tutorial](https://www.ten... | 1 |
Javascript | Javascript | remove event listeners on close | e4c9c9f412ca64435fbe93a2700d569b84ba7b36 | <ide><path>lib/readline.js
<ide> function Interface(input, output, completer, terminal) {
<ide>
<ide> this.terminal = !!terminal;
<ide>
<add> function ondata(data) {
<add> self._normalWrite(data);
<add> }
<add>
<add> function onend() {
<add> self.close();
<add> }
<add>
<add> function onkeypress(s, key) {... | 3 |
Javascript | Javascript | apply workaround for firefox bug | c685b9b0d0da246cbfb697bb32e02ee953fa762d | <ide><path>packages/next-server/lib/router/router.js
<del>/* global __NEXT_DATA__ */
<add>/* global __NEXT_DATA__, location */
<ide>
<ide> import { parse } from 'url'
<ide> import mitt from '../mitt'
<ide> export default class Router {
<ide> this.changeState('replaceState', formatWithValidation({ pathname, query... | 1 |
Text | Text | use uppercase on windows path | cc8066e0d196f0180ddcfa04207de8bee69db285 | <ide><path>doc/api/fs.md
<ide> fs.open(Buffer.from('/open/some/file.txt'), 'r', (err, fd) => {
<ide>
<ide> On Windows, Node.js follows the concept of per-drive working directory. This
<ide> behavior can be observed when using a drive path without a backslash. For
<del>example `fs.readdirSync('c:\\')` can potentially r... | 2 |
Javascript | Javascript | fix error in boxhelper with non-geometric object | cd2e24938f95f2364dd3c117ca80d2bc8310dc6c | <ide><path>src/extras/helpers/BoxHelper.js
<ide> THREE.BoxHelper.prototype.update = ( function () {
<ide>
<ide> box.setFromObject( object );
<ide>
<add> if ( box.empty() ) return;
<add>
<ide> var min = box.min;
<ide> var max = box.max;
<ide> | 1 |
PHP | PHP | fix tests for test case filename | 1f1f647c0561a40c01399c748423c41547f82678 | <ide><path>src/Console/Command/Task/TestTask.php
<ide> public function testCaseFileName($type, $className) {
<ide> $path .= $this->classTypes[$type] . DS;
<ide> }
<ide> list($namespace, $className) = namespaceSplit($this->getRealClassName($type, $className));
<del> return str_replace('/', DS, $path) . Inflector... | 2 |
Text | Text | add v3.16.4 to changelog.md | 0fad0261871916041f82187a6aed1f11ad092d53 | <ide><path>CHANGELOG.md
<ide> - [#18694](https://github.com/emberjs/ember.js/pull/18694) [BUGFIX] Ensure tag updates are buffered, remove error message
<ide> - [#18709](https://github.com/emberjs/ember.js/pull/18709) [BUGFIX] Fix `this` in `@tracked` initializer
<ide>
<add>### v3.16.4 (March 22, 2020)
<add>
<add>- [#... | 1 |
PHP | PHP | fix incorrect aliasing | 48f5812bf87c0d78b2dde5d2bf860d1c60975786 | <ide><path>src/TestSuite/Fixture/FixtureManager.php
<ide> public function fixturize($test) {
<ide> protected function _aliasConnections() {
<ide> $connections = ConnectionManager::configured();
<ide> ConnectionManager::alias('test', 'default');
<del> $map = [
<del> 'test' => 'default',
<del> ];
<add> $map = [... | 1 |
Mixed | Text | tweak the source | 445a0dac37be59dba3d9c5190d1cc9ff8a85f479 | <add><path>docs/docs/refactor/01-why-react.md
<del><path>docs/docs/refactor/01-motivation.md
<del># Motivation / Why React?
<add># Why React?
<ide>
<ide> React is a JavaScript library for creating user interfaces by Facebook and Instagram. Many people choose to think of React as the **V** in **[MVC](http://en.wikipedi... | 8 |
Ruby | Ruby | improve delayedjob wrapper logging | b1fbb6688c9e7b1909ca3ab71691822fc32daf1c | <ide><path>activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb
<ide> def initialize(job_data)
<ide> @job_data = job_data
<ide> end
<ide>
<add> def display_name
<add> "#{job_data['job_class']} [#{job_data['job_id']}] from DelayedJob(#{job_data['queue_name']}) with arguments:... | 2 |
Javascript | Javascript | use mustcall() in test-readline-interface | 36867786d095de89a37ced4378d07c8efe30cdfa | <ide><path>test/parallel/test-readline-interface.js
<ide> function isWarned(emitter) {
<ide> });
<ide>
<ide> const rl = readline.createInterface({
<del> input: new Readable({ read: common.noop }),
<add> input: new Readable({ read: common.mustCall() }),
<ide> output: output,
<ide> prompt: ... | 1 |
Ruby | Ruby | add more documentation; remove unused assignment | 610e4d9f24b8fe0c372104481a733b48d2270c3f | <ide><path>actionpack/lib/action_view/helpers/date_helper.rb
<ide> def date_select(object_name, method, options = {}, html_options = {})
<ide>
<ide> # Returns a set of select tags (one for hour, minute and optionally second) pre-selected for accessing a
<ide> # specified time-based attribute (identified by... | 1 |
Python | Python | add additional reduceat/accumulate tests | a8262a5a87835fcb8b64334334b3eca93a2ab8d5 | <ide><path>numpy/core/tests/test_ufunc.py
<ide> def test_object_array_accumulate_inplace(self):
<ide> np.array([[2]*i for i in [1, 3, 6, 10]], dtype=object),
<ide> )
<ide>
<add> def test_object_array_accumulate_failure(self):
<add> # Typical accumulation o... | 1 |
Java | Java | add extendmessageconverters to webmvcconfigurer | 24834f6d2fd8f47100b904036249187c1e2444f6 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.java
<ide> protected void configureMessageConverters(List<HttpMessageConverter<?>> converte
<ide> this.configurers.configureMessageConverters(converters);
<ide> }
<ide>
<add> @Override
<add> protec... | 7 |
Python | Python | add riscv into host_arch_cc | 1d638976d5a167ff1e0f938e3eced06553e1f758 | <ide><path>configure.py
<ide> def host_arch_cc():
<ide> '__PPC__' : 'ppc64',
<ide> '__x86_64__' : 'x64',
<ide> '__s390x__' : 's390x',
<add> '__riscv' : 'riscv',
<ide> }
<ide>
<ide> rtn = 'ia32' # default
<ide> def host_arch_cc():
<ide> if rtn == 'mipsel' and '_LP64' in k:
<ide> rtn ... | 1 |
PHP | PHP | adjust test cases | ff98b4a15fb006aae3463b7d2e4b0e60624ad558 | <ide><path>tests/TestCase/Core/ConfigureTest.php
<ide> public function testRead()
<ide> */
<ide> public function testWrite()
<ide> {
<del> $writeResult = Configure::write('SomeName.someKey', 'myvalue');
<del> $this->assertTrue($writeResult);
<add> Configure::write('SomeName.someKey', '... | 1 |
Python | Python | use viewer role as example public role | 7f297f68c6d38da48983127e2092be18b56b53b9 | <ide><path>airflow/config_templates/default_webserver_config.py
<ide> # Uncomment to setup Full admin role name
<ide> # AUTH_ROLE_ADMIN = 'Admin'
<ide>
<del># Uncomment to setup Public role name, no authentication needed
<del># AUTH_ROLE_PUBLIC = 'Public'
<add># Uncomment and set to desired role to enable access witho... | 1 |
Text | Text | update changelog for safetybuffer slice access | 1d42a661d8ff7795ebf9255cb7efd17de7b47fb0 | <ide><path>activesupport/CHANGELOG.md
<add>* Maintain `html_safe?` on html_safe strings when sliced
<add>
<add> string = "<div>test</div>".html_safe
<add> string[-1..1].html_safe? # => true
<add>
<add> *Elom Gomez, Yumin Wong*
<add>
<ide> * Add `Array#extract!`.
<ide>
<ide> The method removes ... | 1 |
Ruby | Ruby | add "homebrew/core" for relevant checks | 779304df68a5b49387a86bc3a12fc05a3201678b | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def initialize(formula, options = {})
<ide> @except = options[:except]
<ide> # Accept precomputed style offense results, for efficiency
<ide> @style_offenses = options[:style_offenses]
<del> # Allow the formula tap to be set as `core`, for testin... | 10 |
Go | Go | fix bug in volume driver test implementation | 9f19cbc2c4cb6e031b12b04ea33447d427870c29 | <ide><path>integration-cli/docker_cli_start_volume_driver_unix_test.go
<ide> package main
<ide> import (
<ide> "encoding/json"
<ide> "fmt"
<add> "io"
<ide> "io/ioutil"
<ide> "net/http"
<ide> "net/http/httptest"
<ide> func (s *DockerExternalVolumeSuite) SetUpSuite(c *check.C) {
<ide> s.server = httptest.NewServer(... | 1 |
PHP | PHP | remove odd inflection | a4740f02f1cac194b5013c63704f2da9c09c0831 | <ide><path>lib/Cake/Controller/Component/AclComponent.php
<ide> class AclComponent extends Component {
<ide> */
<ide> public function __construct(ComponentCollection $collection, $settings = array()) {
<ide> parent::__construct($collection, $settings);
<del> $name = Inflector::camelize(strtolower(Configure::read('... | 1 |
Go | Go | add support for ingress lb in localhost | 04f3247c3dc9f873c12c5eac014de3afbf2e58ea | <ide><path>libnetwork/service_linux.go
<ide> import (
<ide> "net"
<ide> "os"
<ide> "os/exec"
<add> "path/filepath"
<ide> "runtime"
<ide> "strconv"
<ide> "strings"
<ide> import (
<ide> "github.com/docker/docker/pkg/reexec"
<ide> "github.com/docker/libnetwork/iptables"
<ide> "github.com/docker/libnetwork/ipvs"
<... | 1 |
Javascript | Javascript | add test for email change | 968c6f77009dd8f1317c9fc5176dbe05174de509 | <ide><path>cypress/integration/settings/email-change.js
<add>/* global cy */
<add>describe('Email input field', () => {
<add> before(() => {
<add> cy.login();
<add> cy.visit('/settings');
<add> });
<add>
<add> it('Should be possible to submit the new email', () => {
<add> cy.get('[id=new-email]')
<add> ... | 1 |
Text | Text | update configuring and running docker article | 9bfe6f0d24a9eb85c7689bc696487d9f016a67d4 | <ide><path>docs/sources/articles/configuring.md
<del>page_title: Configuring Docker
<del>page_description: Configuring the Docker daemon on various distributions
<del>page_keywords: docker, daemon, configuration
<add>page_title: Configuring and running Docker
<add>page_description: Configuring and running the Docker da... | 1 |
Python | Python | fix schedule_interval in decorated dags | c982080ca1c824dd26c452bcb420df0f3da1afa8 | <ide><path>airflow/models/dag.py
<ide> def dag(
<ide> jinja_environment_kwargs: Optional[Dict] = None,
<ide> render_template_as_native_obj: bool = False,
<ide> tags: Optional[List[str]] = None,
<del> schedule: Optional[ScheduleArg] = None,
<add> schedule: ScheduleArg = NOTSET,
<ide> owner_links: O... | 2 |
PHP | PHP | fix dots in attribute names | 2d1d96272a94bce123676ed742af2d80ba628ba4 | <ide><path>src/Illuminate/View/DynamicComponent.php
<ide> public function __construct(string $component)
<ide> public function render()
<ide> {
<ide> $template = <<<'EOF'
<del><?php extract(collect($attributes->getAttributes())->mapWithKeys(function ($value, $key) { return [Illuminate\Support\Str::camel... | 3 |
Javascript | Javascript | view => emptyview | bb4492a3ca9afe2680d5d37b2d01238e74972a3c | <ide><path>lib/sproutcore-views/lib/views/collection_view.js
<ide> SC.CollectionView = SC.View.extend({
<ide>
<ide> this.set('emptyView', emptyView);
<ide> emptyView.createElement().$().appendTo(elem);
<del> this.childViews = [view];
<add> this.childViews = [emptyView];
<ide> }
<ide> }
<ide... | 1 |
Go | Go | add test for unmarshal default profile | a692823413a9b4a3ae8041f527beb915c3bd5bde | <ide><path>profiles/seccomp/seccomp_test.go
<ide> package seccomp // import "github.com/docker/docker/profiles/seccomp"
<ide>
<ide> import (
<add> "encoding/json"
<ide> "io/ioutil"
<ide> "testing"
<ide>
<ide> "github.com/opencontainers/runtime-spec/specs-go"
<add> "gotest.tools/v3/assert"
<ide> )
<ide>
<ide> func... | 1 |
PHP | PHP | remove dead code and prevent notices | f80916ef177c95346b8d3b1f7a37ae42a907036b | <ide><path>src/Routing/Filter/AssetFilter.php
<ide> protected function _getAssetFile($url) {
<ide> $parts = explode('/', $url);
<ide> $pluginPart = [];
<ide> for ($i = 0; $i < 2; $i++) {
<add> if (!isset($parts[$i])) {
<add> break;
<add> }
<ide> $pluginPart[] = Inflector::camelize($parts[$i]);
<ide> ... | 1 |
Javascript | Javascript | use imageloader native module | 7455ae48b365af1d68964fdd4ab662a113ac1a4a | <ide><path>Libraries/Image/Image.ios.js
<ide> const resolveAssetSource = require('./resolveAssetSource');
<ide>
<ide> import type {ImageProps as ImagePropsType} from './ImageProps';
<ide> import type {HostComponent} from '../Renderer/shims/ReactNativeTypes';
<add>
<ide> import type {ImageStyleProp} from '../StyleSheet... | 1 |
Ruby | Ruby | remove the authorized check for now | 35ffec2c489bead9cc7f9c0525e9c63dc04e3038 | <ide><path>lib/action_cable/channel/base.rb
<ide> def initialize(connection, identifier, params = {})
<ide> # that the action requested is a public method on the channel declared by the user (so not one of the callbacks
<ide> # like #subscribed).
<ide> def process_action(data)
<del> if authoriz... | 1 |
Text | Text | fix an oxford comma | 7549f830a2b5e2ae7fcfc8f471551f0be0922cca | <ide><path>guides/source/getting_started.md
<ide> of the files and folders that Rails created by default:
<ide>
<ide> | File/Folder | Purpose |
<ide> | ----------- | ------- |
<del>|app/|Contains the controllers, models, views, helpers, mailers, channels, jobs and assets for your application. You'll focus on this fold... | 1 |
Python | Python | fix regression test for #771 | ec588c7896b70bf07a1b2ee00977ef4bc177729e | <ide><path>numpy/core/tests/test_regression.py
<ide> def test_copy_detection_corner_case2(self, level=rlevel):
<ide> """Ticket #771: strides are not set correctly when reshaping 0-sized
<ide> arrays"""
<ide> b = np.indices((0,3,4)).T.reshape(-1,3)
<del> assert_equal(b.strides, (24, 4))
<a... | 1 |
Python | Python | fix pytorch bilstm | afeddfff261a39635361e56c293ae371cf219ed2 | <ide><path>spacy/_ml.py
<ide>
<ide> try:
<ide> import torch.nn
<add> from thinc.extra.wrappers import PyTorchWrapperRNN
<ide> except:
<ide> torch = None
<ide>
<ide> def link_vectors_to_models(vocab):
<ide>
<ide> def PyTorchBiLSTM(nO, nI, depth, dropout=0.2):
<ide> if depth == 0:
<del> return no... | 1 |
Text | Text | correct javascript example in guide [ci skip] | 768a081751482a3e09d7051e205b39fcb97492d2 | <ide><path>guides/source/working_with_javascript_in_rails.md
<ide> respond to your Ajax request. You then have a corresponding
<ide> code that will be sent and executed on the client side.
<ide>
<ide> ```erb
<del>$("<%= escape_javascript(render @user) %>").appendTo("#users");
<add>$("#users").appendTo("<%= raw escape_... | 1 |
Java | Java | remove unnecessary suppressing of deprecation | bc13d2b5589b7b4573485ccfe8f59519e7ff6f49 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/i18n/CookieLocaleResolver.java
<ide> * @see #setDefaultLocale
<ide> * @see #setDefaultTimeZone
<ide> */
<del>@SuppressWarnings("deprecation")
<ide> public class CookieLocaleResolver extends AbstractLocaleContextResolver {
<ide>
<ide> /** | 1 |
Javascript | Javascript | add regression test for 512 bits dh key | cddf358f682349dea22e78ce8df5afe26cd5cd1c | <ide><path>test/parallel/test-tls-client-mindhsize.js
<ide> function testDHE2048() {
<ide>
<ide> testDHE1024();
<ide>
<add>assert.throws(() => test(512, true, assert.fail),
<add> /DH parameter is less than 1024 bits/);
<add>
<ide> process.on('exit', function() {
<ide> assert.equal(nsuccess, 1);
<ide> ... | 1 |
Javascript | Javascript | remove usage of public require('util') | cd3a9eebca8d4914d1599855d813ea68ed3135cc | <ide><path>lib/https.js
<ide> require('internal/util').assertCrypto();
<ide>
<ide> const tls = require('tls');
<ide> const url = require('url');
<del>const util = require('util');
<ide> const { Agent: HttpAgent } = require('_http_agent');
<ide> const {
<ide> Server: HttpServer,
<ide> _connectionListener,
<ide> k... | 1 |
Python | Python | add tests for casting output parameters | ced013e6beb0e9cc8655a586579ac4fd3ac29551 | <ide><path>numpy/core/tests/test_ufunc.py
<ide> def test_where_param(self):
<ide> np.subtract(a, 2, out=a, where=[True,False])
<ide> assert_equal(a, [[0, 27], [14, 5]])
<ide>
<add> # With casting on output
<add> a = np.ones(10, np.int64)
<add> b = np.ones(10, np.int64)
<add> ... | 1 |
Go | Go | use hcsshim osversion package for windows versions | 6b91ceff74f41f8cbf5c183011764b801f71a221 | <ide><path>cmd/dockerd/service_windows.go
<ide> import (
<ide> "time"
<ide> "unsafe"
<ide>
<del> "github.com/docker/docker/pkg/system"
<add> "github.com/Microsoft/hcsshim/osversion"
<ide> "github.com/sirupsen/logrus"
<ide> "github.com/spf13/pflag"
<ide> "golang.org/x/sys/windows"
<ide> func registerService() erro... | 11 |
Javascript | Javascript | fix native-url containing non-es5 usage | e465e90fe58ac16fbe736efef4a96325bcebf233 | <ide><path>packages/next/compiled/native-url/index.js
<del>module.exports=(()=>{var e={715:(e,t,o)=>{var a,s=(a=o(191))&&"object"==typeof a&&"default"in a?a.default:a,p=/https?|ftp|gopher|file/;function r(e){"string"==typeof e&&(e=d(e));var t=function(e,t,r){var o=e.auth,a=e.hostname,s=e.protocol||"",p=e.pathname||"",n... | 4 |
Javascript | Javascript | remove the comment duplicating the code | 8eb0532c0599dd36a58114072efecbda3ec65c1b | <ide><path>src/utils/compose.js
<ide> export default function compose(...funcs) {
<ide> return (...args) => {
<ide> if (funcs.length === 0) {
<del> // We weren't given any functions, just return the first passed in arg.
<ide> return args[0]
<ide> }
<ide> | 1 |
Python | Python | fix staticvectors class | 475d7c1c7c4520b280fad01e2a3c8db5d60a594b | <ide><path>spacy/ml/staticvectors.py
<ide> def forward(
<ide> if not len(docs):
<ide> return _handle_empty(model.ops, model.get_dim("nO"))
<ide> key_attr = model.attrs["key_attr"]
<del> W = cast(Floats2d, model.get_param("W"))
<add> W = cast(Floats2d, model.ops.as_contig(model.get_param("W")))
<id... | 1 |
PHP | PHP | add the opposite method of isdirty, the isclean | 3a3dea2e1623dfc62d7d900cd764a2b4ffb4c535 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function isDirty($attributes = null)
<ide> return false;
<ide> }
<ide>
<add> /**
<add> * Determine if the model or given attribute(s) have been remained the same.
<add> *
<add> * @param array|string|null $attributes
<add> ... | 2 |
Javascript | Javascript | add modularized vrmlloader | 8f43ad2e7f84e630ee775f960e1f864ca13de3b9 | <ide><path>examples/jsm/loaders/VRMLLoader.js
<ide> var VRMLLoader = ( function () {
<ide>
<ide> // an index of -1 indicates that the current face has ended and the next one begins
<ide>
<del> if ( index[ i + 3 ] === - 1 ) {
<add> if ( index[ i + 3 ] === - 1 || i + 3 >= l ) {
<ide>
<ide> i += 3;
<... | 1 |
Ruby | Ruby | add test coverage for form with rich-text-area | 43a7adb0afd52a83b1d2850c43d007f9a4526034 | <ide><path>test/template/form_helper_test.rb
<ide> def form_with(*)
<ide>
<ide> assert_match "message[not_an_attribute]", output_buffer
<ide> end
<add>
<add> test "form with rich_text_area" do
<add> expected = '<form id="create-message" action="/messages" accept-charset="UTF-8" data-remote="true" method="pos... | 1 |
Go | Go | fix the typo | 9551dd03cfad2ec0a00d89c2177fb7b45b6ad885 | <ide><path>daemon/cluster/cluster.go
<ide> var ErrSwarmJoinTimeoutReached = fmt.Errorf("Timeout was reached before node was
<ide> // ErrSwarmLocked is returned if the swarm is encrypted and needs a key to unlock it.
<ide> var ErrSwarmLocked = fmt.Errorf("Swarm is encrypted and needs to be unlocked before it can be used... | 1 |
Text | Text | clarify role of writable.cork() | e9695d93e3d2d8e853d8285cee9441831fa44b89 | <ide><path>doc/api/stream.md
<ide> The `writable.cork()` method forces all written data to be buffered in memory.
<ide> The buffered data will be flushed when either the [`stream.uncork()`][] or
<ide> [`stream.end()`][stream-end] methods are called.
<ide>
<del>The primary intent of `writable.cork()` is to avoid a situ... | 1 |
Ruby | Ruby | remove test for livecheck_formulae | 81510165311b8ef4a59cdad02626edec291d915f | <ide><path>Library/Homebrew/test/livecheck/livecheck_spec.rb
<ide> .to eq("https://github.com/Homebrew/brew.git")
<ide> end
<ide> end
<del>
<del> describe "::livecheck_formulae", :needs_network do
<del> it "checks for the latest versions of the formulae" do
<del> allow(args).to receive(:debug?).a... | 1 |
Javascript | Javascript | improve validation of report output | 060af324ae7093a390edd1524855d7679ce6837b | <ide><path>test/common/report.js
<ide> 'use strict';
<ide> const assert = require('assert');
<ide> const fs = require('fs');
<add>const os = require('os');
<ide> const path = require('path');
<ide>
<ide> function findReports(pid, dir) {
<ide> function validate(report) {
<ide> }
<ide>
<ide> function validateContent(da... | 1 |
Text | Text | add changelog entry | 151167eb3d9510bfb0f1408c150b5564b44cb2e6 | <ide><path>activestorage/CHANGELOG.md
<add>* Use the [ImageProcessing](https://github.com/janko-m/image_processing) gem
<add> for Active Storage variants, and deprecate the MiniMagick backend.
<add>
<add> This means that variants are now automatically oriented if the original
<add> image was rotated. Also, i... | 1 |
Python | Python | change error message in standardize_input_data | b32248d615abfd7835886a0f50962856f7d7c986 | <ide><path>keras/engine/training.py
<ide> def standardize_input_data(data, names, shapes=None, check_batch_dim=True,
<ide> arrays = []
<ide> for name in names:
<ide> if name not in data:
<del> raise Exception('No data provided for input "' +
<del> ... | 1 |
Python | Python | update pavement.py script | e4d9030e349c232440c139397e5366779f91126a | <ide><path>pavement.py
<ide> #-----------------------------------
<ide>
<ide> # Source of the release notes
<del>RELEASE_NOTES = 'doc/release/2.0.0-notes.rst'
<add>RELEASE_NOTES = 'doc/release/1.9.0-notes.rst'
<ide>
<ide> # Start/end of the log (from git)
<del>LOG_START = 'v1.6.0'
<add>LOG_START = 'v1.8.0b1'
<ide> LO... | 1 |
Python | Python | fix rest markup in docstrings | 46768e679bbb8f2beabdafff51696d76e7caa920 | <ide><path>numpy/lib/function_base.py
<ide> def linspace(start, stop, num=50, endpoint=True, retstep=False):
<ide> endpoint is True, the last sample is stop. If retstep is
<ide> True then return (seq, step_value), where step_value used.
<ide>
<del> :Parameters:
<del> start : {float}
<del> ... | 1 |
Python | Python | update warning linebreaks per review | 68f4a16ce536df9a28ad5a6f40a7d04e73ab6be6 | <ide><path>numpy/__init__.py
<ide> def _mac_os_check():
<ide> error_message = "{}: {}".format(w[-1].category.__name__, str(w[-1].message))
<ide> msg = (
<ide> "Polyfit sanity test emitted a warning, most likely due "
<del> "to using a buggy Accelera... | 1 |
Python | Python | use mkstemp instead | 1749a7f402ec5b0c8c5bf0c3d48339f447e68f91 | <ide><path>libcloud/test/storage/test_azure_blobs.py
<ide> def test_upload_small_block_object_success(self):
<ide> self.assertTrue('some-value' in obj.meta_data)
<ide>
<ide> def test_upload_big_block_object_success(self):
<del> file_path = tempfile.mktemp(suffix='.jpg')
<add> _, file_path = t... | 1 |
PHP | PHP | force usage getting timestamps columns | 93b5068214ddd1c1aa33bb09aea645fc916aed86 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
<ide> protected function serializeDate(DateTimeInterface $date)
<ide> */
<ide> public function getDates()
<ide> {
<del> $defaults = [static::CREATED_AT, static::UPDATED_AT];
<add> $defaults = [
<add> $this->getC... | 2 |
Javascript | Javascript | implement transform styles, redux | 357a54500e5d50402aef4e55631d7b5fd4153042 | <ide><path>Libraries/Components/View/ViewStylePropTypes.js
<ide> var ViewStylePropTypes = {
<ide> ),
<ide> shadowOpacity: ReactPropTypes.number,
<ide> shadowRadius: ReactPropTypes.number,
<add> transform: ReactPropTypes.arrayOf(ReactPropTypes.object),
<ide> transformMatrix: ReactPropTypes.arrayOf(ReactPropType... | 5 |
Ruby | Ruby | fix plugin generation inside applications | 3dfa9b9e29ce7ccf78d7c7ee01334b4645393251 | <ide><path>railties/lib/rails/app_updater.rb
<ide> def app_generator
<ide> private
<ide> def generator_options
<ide> options = { api: !!Rails.application.config.api_only, update: true }
<add> options[:name] = Rails.application.class.name.chomp("::Application").underscore
... | 4 |
PHP | PHP | add comprovation before replacing the namespace | 37d429d485b3dc36536e08e0b8b01d7941f73248 | <ide><path>src/Illuminate/Foundation/Console/PolicyMakeCommand.php
<ide> class PolicyMakeCommand extends GeneratorCommand
<ide> protected function buildClass($name)
<ide> {
<ide> $stub = parent::buildClass($name);
<del>
<add>
<ide> $stub = $this->replaceUserModelNamespace($stub);
<ide>
... | 1 |
Javascript | Javascript | simplify createrequire() validation | 639b85950b15a1f4d1c71bfbd4caa39817f67b6b | <ide><path>lib/internal/modules/cjs/loader.js
<ide> const createRequireError = 'must be a file URL object, file URL string, or' +
<ide>
<ide> function createRequire(filename) {
<ide> let filepath;
<del> if (typeof filename === 'object' && !(filename instanceof URL)) {
<del> throw new ERR_INVALID_ARG_VALUE('filen... | 1 |
Go | Go | pass controller into createtestnetwork | 0411336b49495e95380f0fc960fef163053a7c4a | <ide><path>libnetwork/libnetwork_linux_test.go
<ide> var createTesthostNetworkOnce sync.Once
<ide> func getTesthostNetwork(t *testing.T) libnetwork.Network {
<ide> t.Helper()
<ide> createTesthostNetworkOnce.Do(func() {
<del> _, err := createTestNetwork("host", "testhost", options.Generic{}, nil, nil)
<add> _, err :... | 2 |
Javascript | Javascript | remove platform check from websocket module | b9be28915cf323eb36f1d7c77821cdf994954074 | <ide><path>Libraries/WebSocket/WebSocket.js
<ide> const EventTarget = require('event-target-shim');
<ide> const NativeEventEmitter = require('NativeEventEmitter');
<ide> const BlobManager = require('BlobManager');
<ide> const NativeModules = require('NativeModules');
<del>const Platform = require('Platform');
<ide> con... | 1 |
Text | Text | update index.md fonts | ffefb3cdccb3f24c5c94ca621ee50c3d1e3a42dd | <ide><path>guide/english/css/fonts/index.md
<ide> p {
<ide> font-family: "Times New Roman", Times, serif;
<ide> }
<ide> ```
<del>
<ide> In the above example, "Times New Roman" and "Times" are <family-name>s and "serif" is a <generic-name>. Generic names are used as a fallback mechanism for preserving style if the ... | 1 |
Text | Text | add 0.70.3 changelog | 4a786d6b0d7a3420afdfb6b136d2ee3fa3b53145 | <ide><path>CHANGELOG.md
<ide> # Changelog
<ide>
<add>## v0.70.3
<add>
<add>### Fixed
<add>
<add>- Stop styles from being reset when detaching Animated.Values in old renderer ([2f58e52006](https://github.com/facebook/react-native/commit/2f58e520061a31ab90f7bbeef59e2bf723605106) by [@javache](https://github.com/javache)... | 1 |
Mixed | Javascript | pass fabric flag from native to js | cbb7c7c193ff3ba183e3c2243ec16e196d290996 | <ide><path>Libraries/Components/View/TestFabricView.js
<del>/**
<del> * Copyright (c) 2015-present, Facebook, Inc.
<del> *
<del> * This source code is licensed under the MIT license found in the
<del> * LICENSE file in the root directory of this source tree.
<del> *
<del> * @providesModule TestFabricView
<del> * @flow
... | 8 |
Go | Go | fix validation for utsmode, usernsmode, pidmode | e7d75c8db7da8be0ae45a1abba5652658c536a2a | <ide><path>api/types/container/hostconfig.go
<ide> func (n UsernsMode) IsHost() bool {
<ide>
<ide> // IsPrivate indicates whether the container uses the a private userns.
<ide> func (n UsernsMode) IsPrivate() bool {
<del> return !(n.IsHost())
<add> return !n.IsHost()
<ide> }
<ide>
<ide> // Valid indicates whether the... | 2 |
Python | Python | add morphologizer pipeline component to language | 63502349294e0ee34a3a76ec201eefd702c7583a | <ide><path>spacy/language.py
<ide> from .pipeline import SimilarityHook, TextCategorizer, SentenceSegmenter
<ide> from .pipeline import merge_noun_chunks, merge_entities, merge_subtokens
<ide> from .pipeline import EntityRuler
<add>from ._morphologizer import Morphologizer
<ide> from .compat import json_dumps, izip, ba... | 1 |
Text | Text | add nice paragraph from @jhnns | 40d284e130cb2f0b7970535b1fc2e828dd529c2d | <ide><path>CONTRIBUTING.md
<ide> that include your webpack.config.js and relevant files are more likely to receiv
<ide>
<ide> **If you have discovered a bug or have a feature suggestion, feel free to create an issue on Github.**
<ide>
<del>If you have created your own loader/plugin please incude it on the relevant do... | 1 |
Text | Text | add title, width, and height attributes | 0876ff6e3032a09ec10efa15550f68f57f69ae8f | <ide><path>guide/english/html/elements/img-tag/index.md
<ide> title: Img Tag
<ide> A simple HTML Image element can be included in an HTML document like this:
<ide>
<ide> ```html
<del><img src="path/to/image/file" alt="this is a cool picture">
<add><img src="path/to/image/file" alt="this is a cool picture" title="Some ... | 1 |
PHP | PHP | move test cases into the correct class | 47b99406eb7adc3a28d41628dfbbbc0c32e029ff | <ide><path>tests/TestCase/ORM/Association/BelongsToManyTest.php
<ide> public function testEagerLoadingBelongsToManyLimitedFields()
<ide> $this->assertNotEmpty($result->tags[0]->id);
<ide> $this->assertEmpty($result->tags[0]->name);
<ide> }
<add>
<add> /**
<add> * Test that association proxy f... | 2 |
Python | Python | set accelerating batch size in conll train script | 6a27a4f77c78b228325cf2e1211c8ef9ddee98b8 | <ide><path>examples/training/conllu.py
<ide> def main(spacy_model, conllu_train_loc, text_train_loc, conllu_dev_loc, text_dev
<ide> n_train_words = sum(len(doc) for doc in docs)
<ide> print(n_train_words)
<ide> print("Begin training")
<add> # Batch size starts at 1 and grows, so that we make updates quic... | 1 |
Text | Text | fix typo in glossary.md | eb7bc48f5092434cd73b154627fd8908e00b0e08 | <ide><path>docs/understanding/thinking-in-redux/Glossary.md
<ide> A store creator is a function that creates a Redux store. Like with dispatching
<ide> type StoreEnhancer = (next: StoreCreator) => StoreCreator
<ide> ```
<ide>
<del>A store enhancer is a higher-order function that composes a store creator to return a ne... | 1 |
PHP | PHP | hide empty paginators. | e9d5846d5f6a767285bc071c178ee0f5ff4ee2c5 | <ide><path>src/Illuminate/Pagination/resources/views/bootstrap-4.blade.php
<del><ul class="pagination">
<del> <!-- Previous Page Link -->
<del> @if ($paginator->onFirstPage())
<del> <li class="page-item disabled"><span class="page-link">«</span></li>
<del> @else
<del> <li class="page-item">... | 4 |
Text | Text | replace american spelling with british spelling | 1e57ca70d34ed2504aadbbb2b40bef88a5f781df | <ide><path>docs/Bottles.md
<ide> Bottles will not be used if the user requests it (see above), if the formula req
<ide> ## Creation
<ide> Bottles are created using the [Brew Test Bot](Brew-Test-Bot.md). This happens mostly when people submit pull requests to Homebrew and the `bottle do` block is updated by maintainers ... | 5 |
Javascript | Javascript | remove duplicated test | f7245ee05c288dbce94a6540af6222baa4a3f674 | <ide><path>packages/ember-handlebars/tests/helpers/each_test.js
<ide> test("#each accepts a name binding and can display child properties", function()
<ide> equal(view.$().text(), "My Cool Each Test 1My Cool Each Test 2");
<ide> });
<ide>
<del>test("#each accepts 'this' as the right hand side", function() {
<del> v... | 1 |
Text | Text | add initial changelog | 0b60829df795bc5178feb8f266b1f7e35a91f6da | <ide><path>CHANGELOG.md
<add># Changelog
<add>
<add>## 0.2.0 (dev)
<add> - Fix Vagrant in windows and OSX
<add> - Fix TTY behavior
<add> - Fix attach/detach/run behavior
<add> - Fix memory/fds leaks
<add> - Fix various race conditions
<add> - Fix `docker diff` for removed files
<add> - Fix `docker stop` for ghost conta... | 1 |
PHP | PHP | remove methods for bc and deprecation | 7f8c5695bc4b7cfa7b226876cadd733d0a8f2777 | <ide><path>Cake/Utility/Time.php
<ide> class Time {
<ide> */
<ide> protected static $_time = null;
<ide>
<del>/**
<del> * Magic set method for backward compatibility.
<del> *
<del> * Used by TimeHelper to modify static variables in this class
<del> *
<del> * @param string $name Variable name
<del> * @param mixes $va... | 2 |
PHP | PHP | add uncheck method | b44def9a5ae4385333f9ef848461f740ffad0aee | <ide><path>src/Illuminate/Foundation/Testing/CrawlerTrait.php
<ide> protected function check($element)
<ide> {
<ide> return $this->storeInput($element, true);
<ide> }
<add>
<add> /**
<add> * Uncheck a checkbox on the page.
<add> *
<add> * @param string $element
<add> * @return $... | 1 |
Text | Text | correct a typo in link | bf6e06a8e1074760f6544335ce2c5959512ef46b | <ide><path>curriculum/challenges/english/09-information-security/information-security-projects/stock-price-checker.md
<ide> dashedName: stock-price-checker
<ide>
<ide> # --description--
<ide>
<del>Build a full stack JavaScript app that is functionally similar to this: <a href="https://stock-price-checker.freecodecamp... | 1 |
Java | Java | fix issue with deferredresult on @restcontroller | cf7889e226519bec62345affa7c401b0abbebecc | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethod.java
<ide> private String getReturnValueHandlingErrorMessage(String message, Object returnV
<ide> }
<ide>
<ide> /**
<del> * Return a ServletInvocableHandlerMethod that will process the value re... | 2 |
Mixed | Go | add ability to add multiple tags with docker build | c2eb37f9aeb6215293483e02613514e49011cf2c | <ide><path>api/client/build.go
<ide> const (
<ide> // Usage: docker build [OPTIONS] PATH | URL | -
<ide> func (cli *DockerCli) CmdBuild(args ...string) error {
<ide> cmd := Cli.Subcmd("build", []string{"PATH | URL | -"}, Cli.DockerCommands["build"].Description, true)
<del> tag := cmd.String([]string{"t", "-tag"}, "", ... | 10 |
PHP | PHP | fix broken tests | daffbb87062daa79e168598bc879d83aec1e431e | <ide><path>tests/TestCase/Http/ResponseTransformerTest.php
<ide> public function testToPsrBodyFileResponseFileRange()
<ide>
<ide> $result = ResponseTransformer::toPsr($cake);
<ide> $this->assertEquals(
<del> 'bytes 10-20/15640',
<add> 'bytes 10-20/15641',
<ide> $result... | 3 |
Javascript | Javascript | add timer example | 360d04e9c86cf7af7d946331dba91adcdc845ad6 | <ide><path>Examples/UIExplorer/TimerExample.js
<ide> var React = require('react-native');
<ide> var {
<ide> AlertIOS,
<add> Platform,
<ide> Text,
<add> ToastAndroid,
<ide> TouchableHighlight,
<ide> View,
<ide> } = React;
<ide> var TimerTester = React.createClass({
<ide> var msg = 'Finished ' + this._ii ... | 2 |
Javascript | Javascript | add deprecated syntax selectors | 93512ba174d8ec442526dcc4894c7c690231129c | <ide><path>src/deprecated-syntax-selectors.js
<add>module.exports = [
<add> 'AFDKO', 'AVX', 'AVX2', 'AVX512', 'AVX512BW', 'AVX512DQ', 'Alpha',
<add> 'Animation', 'ArchaeologyDigSiteFrame', 'Arrow__', 'AtLilyPond',
<add> 'AttrBaseType', 'AttrSetVal__', 'Button', 'C99', 'CharacterSet', 'Chatscript',
<add> 'CheckButto... | 1 |
Mixed | Go | add isolation to ps filter | 9c5814171ce7ab3af48867da36f4d374f804c4a6 | <ide><path>daemon/list.go
<ide> func includeContainerInList(container *Container, ctx *listContext) iterationAct
<ide> return excludeContainer
<ide> }
<ide>
<add> // Do not include container if the isolation mode doesn't match
<add> if excludeContainer == excludeByIsolation(container, ctx) {
<add> return excludeCo... | 6 |
Ruby | Ruby | fix a typo | 7cfa80f81222c72753d2a8a47da425a2179e0b59 | <ide><path>activestorage/app/models/active_storage/variant.rb
<ide> def key
<ide> # Returns the URL of the variant on the service. This URL is intended to be short-lived for security and not used directly
<ide> # with users. Instead, the `service_url` should only be exposed as a redirect from a stable, possibly aut... | 1 |
Python | Python | fix weight regularizers | c429e651c1d4fe83c84bc6a4405d5645faac6a2e | <ide><path>keras/regularizers.py
<ide> def __call__(self, loss):
<ide> 'ActivityRegularizer '
<ide> '(i.e. activity_regularizer="l2" instead '
<ide> 'of activity_regularizer="activity_l2".')
<del> loss += K.sum(K.abs(self.p)) * s... | 1 |
Python | Python | fix deebert tests | 92f8ce2ed65f23f91795ce6eafb8cce1e226cd38 | <ide><path>examples/deebert/test_glue_deebert.py
<ide> def get_setup_file():
<ide>
<ide>
<ide> class DeeBertTests(unittest.TestCase):
<del> @slow
<del> def test_glue_deebert(self):
<add> def setup(self) -> None:
<ide> stream_handler = logging.StreamHandler(sys.stdout)
<ide> logger.addHandler(... | 1 |
Javascript | Javascript | react challenges showing unwanted brackets | 183740d73976afa82ef44f1fd2f6d8f6d308c7b9 | <ide><path>common/app/routes/Challenges/utils/index.js
<ide> export function createTests({ tests = [] }) {
<ide> .map(test => {
<ide> if (typeof test === 'string') {
<ide> return {
<del> text: ('' + test).split('message: ').pop().replace(/\'\);/g, ''),
<add> text: ('' + test).split('... | 1 |
PHP | PHP | add test for merged wheres in withcount | 356e19914614896e0f7ec940468e24848135d552 | <ide><path>tests/Database/DatabaseEloquentBuilderTest.php
<ide> public function testWithCountAndSelect()
<ide> $this->assertEquals('select "id", (select count(*) from "eloquent_builder_test_model_close_related_stubs" where "eloquent_builder_test_model_parent_stubs"."foo_id" = "eloquent_builder_test_model_close_... | 1 |
Python | Python | add timeout to requests requets.. | cc1dd36e94d6def087c24ddff4261b5c8f417c5d | <ide><path>glances/plugins/glances_cloud.py
<ide> def run(self):
<ide> for k, v in iteritems(self.AWS_EC2_API_METADATA):
<ide> r_url = '{}/{}'.format(self.AWS_EC2_API_URL, v)
<ide> try:
<del> r = requests.get(r_url)
<add> # Local request, a timeout of 3 seco... | 2 |
Ruby | Ruby | move all the helpers to protected section | 5979ad31fd2249303fd9e436e63568d6f0e22b8a | <ide><path>actionpack/test/template/form_helper_test.rb
<ide> def test_form_for_with_labelled_builder
<ide> assert_dom_equal expected, output_buffer
<ide> end
<ide>
<del> def hidden_fields(method = nil)
<del> txt = %{<div style="margin:0;padding:0;display:inline">}
<del> txt << %{<input name="utf8" type=... | 1 |
Python | Python | fix use of undefined ‘unicode’ in python 3 | a802f7366e46726a90e07f1329502e38f09544a4 | <ide><path>numpy/ma/core.py
<ide> from numpy import ndarray, amax, amin, iscomplexobj, bool_, _NoValue
<ide> from numpy import array as narray
<ide> from numpy.lib.function_base import angle
<del>from numpy.compat import getargspec, formatargspec, long, basestring
<add>from numpy.compat import getargspec, formatargspec... | 2 |
Javascript | Javascript | add default entries to main.js | ef2bbfee5acada10be2e943e421a7e080cedf067 | <ide><path>server/build/webpack.js
<ide> const relativeResolve = rootModuleRelativePath(require)
<ide> export default async function createCompiler (dir, { dev = false, quiet = false, buildDir } = {}) {
<ide> dir = resolve(dir)
<ide> const config = getConfig(dir)
<del> const defaultEntries = dev
<del> ? [join(_... | 2 |
Ruby | Ruby | use ld.so.conf.d where possible | 07f5951b764e646307a412309d39dc8d42e34741 | <ide><path>Library/Homebrew/extend/os/linux/install.rb
<ide> module Install
<ide> def perform_preinstall_checks(all_fatal: false, cc: nil)
<ide> generic_perform_preinstall_checks(all_fatal: all_fatal, cc: cc)
<ide> symlink_ld_so
<del> symlink_gcc_libs
<add> setup_preferred_gcc_libs
<ide> e... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.