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 |
|---|---|---|---|---|---|
Ruby | Ruby | pillow lives in homebrew/science | 18c7254ecddc67851e9aa087eabd203b336d62e8 | <ide><path>Library/Homebrew/missing_formula.rb
<ide> def blacklisted_reason(name)
<ide> #{Formatter.url("https://pip.readthedocs.io/en/stable/installing/")}
<ide> EOS
<ide> when "pil" then <<-EOS.undent
<del> Instead of PIL, consider `pip install pillow` or `brew install Homebrew/... | 1 |
Javascript | Javascript | allow the factory to cache controllers | 23054b4e69f65a324fa5efc2ddf9e28733bf3e02 | <ide><path>examples/jsm/webxr/XRControllerModelFactory.js
<ide> import {
<ide> SphereGeometry,
<ide> } from "../../../build/three.module.js";
<ide>
<del>import { GLTFLoader } from '../loaders/GLTFLoader.js'
<add>import { GLTFLoader } from '../loaders/GLTFLoader.js';
<ide>
<ide> import {
<ide> Constants as MotionCon... | 1 |
Javascript | Javascript | update @next version | 77938881f42ac466c573fa24ecc9eff84ff7aca4 | <ide><path>ReactVersions.js
<ide> //
<ide> // 0.0.0-experimental-241c4467e-20200129
<ide>
<del>const ReactVersion = '18.0.0';
<add>const ReactVersion = '18.1.0';
<ide>
<ide> // The label used by the @next channel. Represents the upcoming release's
<ide> // stability. Could be "alpha", "beta", "rc", etc.
<ide> const... | 1 |
Go | Go | put message back as soon as possible | 98810847c4589792f888079e318afbd56e357c91 | <ide><path>daemon/logger/jsonfilelog/jsonfilelog.go
<ide> func New(info logger.Info) (logger.Logger, error) {
<ide>
<ide> // Log converts logger.Message to jsonlog.JSONLog and serializes it to file.
<ide> func (l *JSONFileLogger) Log(msg *logger.Message) error {
<del> defer logger.PutMessage(msg)
<ide> buf := buffers... | 2 |
Javascript | Javascript | avoid assertions for symbol when not present | 77b4bc6c14f603de7d2ff1a8b2d8d5f901a8edd4 | <ide><path>packages/@ember/-internals/glimmer/tests/integration/components/component-template-test.js
<ide> import {
<ide> EMBER_GLIMMER_SET_COMPONENT_TEMPLATE,
<ide> EMBER_MODULE_UNIFICATION,
<ide> } from '@ember/canary-features';
<add>import { HAS_NATIVE_SYMBOL } from '@ember/-internals/utils';
<ide>
<ide> impor... | 1 |
Javascript | Javascript | remove unintentional change to greatcircle | aa2ee0197b085ef6b927367293c42be457dd0573 | <ide><path>d3.geo.js
<ide> d3.geo.greatCircle = function() {
<ide> radius = 6371; // Mean radius of Earth, in km.
<ide> // TODO: breakAtDateLine?
<ide>
<del> function greatCircle(d, i, dist) {
<add> function greatCircle(d, i) {
<ide> var from = source.call(this, d, i),
<ide> to = target.call(this... | 3 |
Text | Text | remove chris dickinson from ctc | a33f601267ad2284947e74284e296818fc171d37 | <ide><path>README.md
<ide> more information about the governance of the Node.js project, see
<ide> **Ben Noordhuis** <info@bnoordhuis.nl>
<ide> * [ChALkeR](https://github.com/ChALkeR) -
<ide> **Сковорода Никита Андреевич** <chalkerx@gmail.com> (he/him)
<del>* [chrisdickinson](https://github.com/chrisdickins... | 1 |
Go | Go | fix spec file support for windows plugin discovery | 52c0daad82b424afc661c23c1d80784d014e1a58 | <ide><path>pkg/plugins/discovery_unix.go
<add>// +build !windows
<add>
<ide> package plugins
<ide>
<ide> var specsPaths = []string{"/etc/docker/plugins", "/usr/lib/docker/plugins"}
<ide><path>pkg/plugins/discovery_windows.go
<ide> import (
<ide> "path/filepath"
<ide> )
<ide>
<del>var specPaths = []string{filepath.Jo... | 2 |
Javascript | Javascript | add regression tests | 8181c607e5cd96afc041636ceb37ff6758e8d470 | <ide><path>test/parallel/test-util.js
<ide> assert.strictEqual(false, util.isArray(Object.create(Array.prototype)));
<ide>
<ide> // isRegExp
<ide> assert.strictEqual(true, util.isRegExp(/regexp/));
<del>assert.strictEqual(true, util.isRegExp(RegExp()));
<add>assert.strictEqual(true, util.isRegExp(RegExp(), 'foo'));
<i... | 1 |
Javascript | Javascript | fix pushtransition for transition tracing | 55a21ef7e78a4e35302cbc7ffb19934a23cc6957 | <ide><path>packages/react-reconciler/src/ReactFiberBeginWork.new.js
<ide> function updateOffscreenComponent(
<ide>
<ide> subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes);
<ide>
<add> let prevCachePool = null;
<ide> if (enableCache) {
<ide> // If the render that spawned this o... | 2 |
Ruby | Ruby | link kegs without formulae | 1f971ba2a0575523300df2f4e63c03769ed3ad2a | <ide><path>Library/Homebrew/cmd/link.rb
<ide> def link
<ide> next
<ide> end
<ide>
<del> formula = keg.to_formula
<add> formula = begin
<add> keg.to_formula
<add> rescue FormulaUnavailableError
<add> # Not all kegs may belong to formulae e.g. with `brew diy`
<add> nil
<... | 1 |
Text | Text | add missing props | 3a86b4fcb61794378b4a4d9db454541b5f253880 | <ide><path>docs/NativeComponentsIOS.md
<ide> You can see we're adding an event handler property to the view by subclassing `M
<ide> // MapView.js
<ide>
<ide> class MapView extends React.Component {
<del> constructor() {
<add> constructor(props) {
<ide> super(props)
<ide> this._onChange = this._onChange.bind(... | 1 |
Text | Text | update security docs | 92861b91cfa393cbbd628cce8d013148d9e0d18c | <ide><path>SECURITY.md
<ide> This document outlines our security policy for the codebase, and how to report v
<ide> | Version | Branch | Supported | Website active |
<ide> | ----------- | ------------------------ | ------------------ | ---------------- |
<ide> | production | `productio... | 1 |
Go | Go | update findcgroupmountpoint to be more forgiving | e413340723871ad2d7a03822ca06993ee3c0a4bc | <ide><path>utils.go
<ide> func FindCgroupMountpoint(cgroupType string) (string, error) {
<ide> return "", err
<ide> }
<ide>
<del> reg := regexp.MustCompile(`^cgroup on (.*) type cgroup \(.*` + cgroupType + `[,\)]`)
<add> reg := regexp.MustCompile(`^.* on (.*) type cgroup \(.*` + cgroupType + `[,\)]`)
<ide> for _, ... | 1 |
Ruby | Ruby | allow revisions on svn checkouts | eafba2261fdfe140b4cba0703f4bab61152dcaa8 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def fetch
<ide> ohai "Checking out #{@url}"
<ide> @co=HOMEBREW_CACHE+@unique_token
<ide> unless @co.exist?
<del> safe_system '/usr/bin/svn', 'checkout', @url, @co
<add> checkout_args = ['/usr/bin/svn', 'checkout', @url]
<add>
<add> ... | 1 |
PHP | PHP | add missing methods to invalidpropertyinterface | 081beae8ac69c4151858a3706b6bf58f78ca5357 | <ide><path>src/Datasource/InvalidPropertyInterface.php
<ide> /**
<ide> * Describes the methods that any class representing a data storage should
<ide> * comply with.
<del> *
<del> * @method array getInvalid()
<del> * @method mixed getInvalidField($field)
<del> * @method $this setInvalid($field, $value = null, $overwr... | 1 |
Javascript | Javascript | remove redundant additional url tests | 84ee95780073e06459fd5fcb0682517e7be6e263 | <ide><path>test/fixtures/url-tests-additional.js
<add>'use strict';
<add>
<add>// This file contains test cases not part of the WPT
<add>
<ide> module.exports = [
<del> {
<del> 'url': 'tftp://foobar.com/someconfig;mode=netascii',
<del> 'protocol': 'tftp:',
<del> 'hostname': 'foobar.com',
<del> 'pathname': ... | 1 |
Go | Go | use file_share_delete for log files on windows | a5f237c2b54177ffe45cf371461db1892e092452 | <ide><path>daemon/logger/loggerutils/file_unix.go
<add>// +build !windows
<add>
<add>package loggerutils
<add>
<add>import "os"
<add>
<add>func openFile(name string, flag int, perm os.FileMode) (*os.File, error) {
<add> return os.OpenFile(name, flag, perm)
<add>}
<ide><path>daemon/logger/loggerutils/file_windows.go
<ad... | 4 |
Python | Python | add segformerfeatureextractor to auto api | ee5de663493dc1745199dded9a8e9d1777aa9657 | <ide><path>src/transformers/models/auto/feature_extraction_auto.py
<ide> ("perceiver", "PerceiverFeatureExtractor"),
<ide> ("swin", "ViTFeatureExtractor"),
<ide> ("vit_mae", "ViTFeatureExtractor"),
<add> ("segformer", "SegformerFeatureExtractor"),
<ide> ]
<ide> )
<ide> | 1 |
Ruby | Ruby | do a stricter version check | 04088ba96dfcc91eb74a3903e9ca1c951fa11511 | <ide><path>Library/Homebrew/formula.rb
<ide> def initialize name='__UNKNOWN__', path=nil
<ide> set_instance_variable 'bottle_sha1'
<ide> set_instance_variable 'head'
<ide> set_instance_variable 'specs'
<del>
<ide> set_instance_variable 'standard'
<ide> set_instance_variable 'unstable'
<ide>
<ide> d... | 1 |
Python | Python | revert previous commit | 888c25f4dd7b8dfc15701885633329320cfad415 | <ide><path>airflow/models.py
<ide> def command(
<ide> installed. This command is part of the message sent to executors by
<ide> the orchestrator.
<ide> """
<del> dag = self.task.dag
<ide> iso = self.execution_date.isoformat()
<ide> mark_success = "--mark_success" if mark_s... | 1 |
Javascript | Javascript | use rendertostaticmarkup for tests | f61138e0681f729c43cf755f48f060e6262a09eb | <ide><path>packages/react-dom/src/__tests__/ReactServerRendering-test.js
<ide> describe('ReactDOMServer', () => {
<ide> return <div>{this.state.text}</div>;
<ide> }
<ide> }
<del> const markup = ReactDOMServer.renderToString(<Component />);
<add> const markup = ReactDOMServer.renderToSt... | 1 |
Python | Python | fix serialization error in taskcallbackrequest | d7e14ba0d612d8315238f9d0cba4ef8c44b6867c | <ide><path>airflow/callbacks/callback_requests.py
<ide> def __init__(
<ide>
<ide> def to_json(self) -> str:
<ide> dict_obj = self.__dict__.copy()
<del> dict_obj["simple_task_instance"] = dict_obj["simple_task_instance"].__dict__
<add> dict_obj["simple_task_instance"] = self.simple_task_instan... | 3 |
Python | Python | set version to v3.0.0a2 | 19d42f42de30ba57e17427798ea2562cdab2c9f8 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy-nightly"
<del>__version__ = "3.0.0a1"
<add>__version__ = "3.0.0a2"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/sp... | 1 |
PHP | PHP | fix more type issues | c9b218665132078917b436dd6d7490c1e3c3822d | <ide><path>src/Database/Schema/PostgresSchema.php
<ide> public function convertColumnDescription(TableSchema $schema, array $row): void
<ide> * Postgres includes sequence data and casting information in default values.
<ide> * We need to remove those.
<ide> *
<del> * @param string|null $default The d... | 2 |
Text | Text | fix typos in setup article | 941f0233db0d0dc42ddc0c5900abadbaa247769d | <ide><path>threejs/lessons/threejs-setup.md
<ide> If you haven't read that yet you might want to start there.
<ide>
<ide> Before we go any further we need to talk about setting up your
<ide> computer to do developement. In particular, for security reasons,
<del>WebGL can not use images from your hard drive directly. T... | 1 |
Ruby | Ruby | move cleanup into teardown, delete obsolete code | c0850784421ec451afe460014c988274db2c12fd | <ide><path>actionview/test/template/compiled_templates_test.rb
<ide> require 'abstract_unit'
<ide>
<ide> class CompiledTemplatesTest < ActiveSupport::TestCase
<del> def setup
<del> # Clean up any details key cached to expose failures
<del> # that otherwise would appear just on isolated tests
<add> teardown do
... | 1 |
PHP | PHP | add controller method | 1f8e0081a384e82098605826b4d4c3d5c7c184d7 | <ide><path>src/Illuminate/Support/Facades/Route.php
<ide> * @method static \Illuminate\Routing\Route substituteBindings(\Illuminate\Support\Facades\Route $route)
<ide> * @method static \Illuminate\Routing\Route view(string $uri, string $view, array $data = [], int|array $status = 200, array $headers = [])
<ide> * @m... | 1 |
Javascript | Javascript | add an exception test to http-write-head | 49e5f61ef6b0d2800db19b0ca758ec04e457bf45 | <ide><path>test/parallel/test-http-write-head.js
<ide> 'use strict';
<del>require('../common');
<add>const common = require('../common');
<ide> const assert = require('assert');
<ide> const http = require('http');
<ide>
<ide> // Verify that ServerResponse.writeHead() works as setHeader.
<ide> // Issue 5036 on github.
... | 1 |
Go | Go | clean some redundant else clauses | d91ae65280c789307ec67fff7e2d268afe3aeba7 | <ide><path>api/client/help.go
<ide> func (cli *DockerCli) CmdHelp(args ...string) error {
<ide> method, exists := cli.getMethod(args[0])
<ide> if !exists {
<ide> return fmt.Errorf("docker: '%s' is not a docker command. See 'docker --help'.", args[0])
<del> } else {
<del> method("--help")
<del> return nil
<i... | 3 |
Text | Text | use serial comma in buffer docs | 8e0f3ff7f725aa710bd0b3698de2ffdc47105041 | <ide><path>doc/api/buffer.md
<ide> console.log(Buffer.from('fhqwhgads', 'utf16le'));
<ide> ```
<ide>
<ide> Node.js buffers accept all case variations of encoding strings that they
<del>receive. For example, UTF-8 can be specified as `'utf8'`, `'UTF8'` or `'uTf8'`.
<add>receive. For example, UTF-8 can be specified as `... | 1 |
Javascript | Javascript | increase abort logic coverage | 67b9ba9afebf7477ce8706b29b3c35351d8113bd | <ide><path>test/parallel/test-fs-promises-readfile.js
<ide> function validateReadFileAbortLogicDuring() {
<ide> });
<ide> }
<ide>
<add>async function validateWrongSignalParam() {
<add> // Verify that if something different than Abortcontroller.signal
<add> // is passed, ERR_INVALID_ARG_TYPE is thrown
<add>
<add> ... | 1 |
PHP | PHP | parse database url when creating connection | c91d6a515f68d7860d313627416a7158078830e3 | <ide><path>src/Illuminate/Database/DatabaseManager.php
<ide> protected function configuration($name)
<ide> throw new InvalidArgumentException("Database [{$name}] not configured.");
<ide> }
<ide>
<del> return $config;
<add> return $this->app->make(UrlParser::class)->parseDatabaseConfig... | 2 |
Javascript | Javascript | increase qunit timeout | ff18d8e2060ae7c15c7694dc6bcbbeb9cbfbdaa4 | <ide><path>test/data/testrunner.js
<ide> var oldCacheLength = 0,
<ide>
<ide> // Max time for stop() and asyncTest() until it aborts test
<ide> // and start()'s the next test.
<del>QUnit.config.testTimeout = 2e4; // 20 seconds
<add>QUnit.config.testTimeout = 12e4; // 2 minutes
<ide>
<ide> // Enforce an "expect" argume... | 1 |
Ruby | Ruby | remove whitespaces and add missing test | c63600576a7ca63d1a7243308ca8cc7f0e3cde75 | <ide><path>railties/test/generators/app_generator_test.rb
<ide> def test_application_name_is_detected_if_it_exists_and_app_folder_renamed
<ide> assert_file "myapp_moved/config/environment.rb", /Myapp::Application\.initialize!/
<ide> assert_file "myapp_moved/config/initializers/session_store.rb", /_myapp_session... | 2 |
Python | Python | link element optional in feeds | 965c5d7cced0d2e09f5b0c3165c192ab4334331b | <ide><path>django/utils/feedgenerator.py
<ide> def add_root_elements(self, handler):
<ide> handler.addQuickElement(u"title", self.feed['title'])
<ide> handler.addQuickElement(u"link", self.feed['link'])
<ide> handler.addQuickElement(u"description", self.feed['description'])
<del> handler.... | 2 |
Java | Java | prune dead code from jmstransactionmanager#dobegin | 58e270f7da55256e1eedeccab4c10424cfff4d51 | <ide><path>org.springframework.jms/src/main/java/org/springframework/jms/connection/JmsTransactionManager.java
<ide> * @see TransactionAwareConnectionFactoryProxy
<ide> * @see org.springframework.jms.core.JmsTemplate
<ide> */
<add>@SuppressWarnings("serial")
<ide> public class JmsTransactionManager extends AbstractP... | 1 |
Text | Text | remove password anecdotes from guides [ci skip] | 013fd84373ca5dd49d42170a82648ada5a2025bb | <ide><path>guides/source/security.md
<ide> config.filter_parameters << :password
<ide>
<ide> NOTE: Provided parameters will be filtered out by partial matching regular expression. Rails adds default `:password` in the appropriate initializer (`initializers/filter_parameter_logging.rb`) and cares about typical applicat... | 1 |
Text | Text | remove extraargument from code example | 81c8002c9fdeed5fb1f2bfc0e4d4a6ce592d8e36 | <ide><path>docs/tutorials/essentials/part-2-app-structure.md
<ide> const thunkMiddleware =
<ide> next =>
<ide> action => {
<ide> if (typeof action === 'function') {
<del> return action(dispatch, getState, extraArgument)
<add> return action(dispatch, getState)
<ide> }
<ide>
<ide> return next(a... | 1 |
Python | Python | use buffersize=20 in openblas | af0bfeb433e79586b1aa1be4d2bc2216da93a498 | <ide><path>tools/openblas_support.py
<ide>
<ide> OPENBLAS_V = '0.3.12'
<ide> # Temporary build of OpenBLAS to test a fix for dynamic detection of CPU
<del>OPENBLAS_LONG = 'v0.3.12'
<add>OPENBLAS_LONG = 'v0.3.12-buffersize20'
<ide> BASE_LOC = 'https://anaconda.org/multibuild-wheels-staging/openblas-libs'
<ide> BASEURL ... | 1 |
Javascript | Javascript | add support for vertex colors | 5256f4c5eebbbb261dad0c963766d57ecd59c4f1 | <ide><path>src/renderers/shaders/ShaderLib/meshmatcap_frag.glsl.js
<ide> varying vec3 vViewPosition;
<ide> #endif
<ide>
<ide> #include <common>
<add>#include <color_pars_fragment>
<ide> #include <uv_pars_fragment>
<ide> #include <map_pars_fragment>
<ide> #include <alphamap_pars_fragment>
<ide> void main() {
<ide>
<id... | 2 |
Ruby | Ruby | update the version.rb files to include a pre part | ccd2f3ede585fb2f2d830e661dbb8b8538de2dc5 | <ide><path>actionmailer/lib/action_mailer/version.rb
<ide> module VERSION #:nodoc:
<ide> MAJOR = 3
<ide> MINOR = 1
<ide> TINY = 0
<del> BUILD = "beta"
<add> PRE = "beta"
<ide>
<del> STRING = [MAJOR, MINOR, TINY, BUILD].join('.')
<add> STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
<ide... | 8 |
Text | Text | fix closing parenthesis | 7f6243efd576f8a7f59c5508dda7738c415bac77 | <ide><path>doc/api/fs.md
<ide> unlink('/tmp/hello', (err) => {
<ide>
<ide> The callback-based versions of the `fs` module APIs are preferable over
<ide> the use of the promise APIs when maximal performance (both in terms of
<del>execution time and memory allocation are required).
<add>execution time and memory allocat... | 1 |
PHP | PHP | follow loadmorph syntax | 5f1dc4e48a621418b76850b24895f3ad254dd771 | <ide><path>src/Illuminate/Database/Eloquent/Relations/MorphTo.php
<ide> public function getDictionary()
<ide> *
<ide> * @return \Illuminate\Database\Eloquent\Relations\MorphTo
<ide> */
<del> public function withMorph(string $modelClass, array $with)
<add> public function withMorph(array $with)
<ide... | 2 |
Python | Python | improve exception testing in test_training | 18c11a30d6d73405af61206ef3443d9b091e3af8 | <ide><path>tests/keras/engine/test_training.py
<ide> def test_training_and_eval_methods_on_symbolic_tensors_multi_io():
<ide> epochs=1,
<ide> steps_per_epoch=2,
<ide> verbose=0)
<del> with pytest.raises(ValueError) as excinfo:
<add> with pytest.raises(ValueError,
<add> ... | 1 |
Javascript | Javascript | fix double slash in model release web page | 2e71944e1e0e25301922a0078a76e05aaa4bae07 | <ide><path>website/src/templates/models.js
<ide> const Model = ({
<ide> }
<ide> }, [initialized, version, baseUrl, name])
<ide>
<del> const releaseTag = meta.fullName ? `/tag/${meta.fullName}` : ''
<add> const releaseTag = meta.fullName ? `tag/${meta.fullName}` : ''
<ide> const releaseUrl = `http... | 1 |
Javascript | Javascript | use module.require for nodejs | a8ed716c55cdf7ca77a0e960249e9e0291fa8299 | <ide><path>src/lib/locale/locales.js
<ide> function loadLocale(name) {
<ide> var oldLocale = null;
<ide> // TODO: Find a better way to register and load all the locales in Node
<ide> if (!locales[name] && (typeof module !== 'undefined') &&
<del> module && module.exports) {
<add> module... | 1 |
Java | Java | remove javadoc link to private method | 3215880d08f70f621aff1d27a0a5881134221068 | <ide><path>spring-tx/src/main/java/org/springframework/transaction/support/TransactionSynchronizationUtils.java
<ide> public static boolean sameResourceFactory(ResourceTransactionManager tm, Object
<ide> * the given handle as-is.
<ide> * @since 5.3.4
<ide> * @see InfrastructureProxy#getWrappedObject()
<del> * @s... | 1 |
Python | Python | relax the signature of the `__array__` protocol | 335b6cb399ecaa869cf78c49984eb1dcc412b8bc | <ide><path>numpy/typing/_array_like.py
<ide>
<ide> if TYPE_CHECKING or HAVE_PROTOCOL:
<ide> # The `_SupportsArray` protocol only cares about the default dtype
<del> # (i.e. `dtype=None`) of the to-be returned array.
<add> # (i.e. `dtype=None` or no `dtype` parameter at all) of the to-be returned
<add> # a... | 1 |
Text | Text | standardize versions in stream module doc | afb4914bf2b656722fada1cef259155440a22180 | <ide><path>doc/api/stream.md
<ide> added: v0.9.4
<ide> * `stream` {Stream} An "old style" readable stream
<ide> * Returns: {this}
<ide>
<del>Versions of Node.js prior to v0.10 had streams that did not implement the
<del>entire `stream` module API as it is currently defined. (See [Compatibility][]
<del>for more informa... | 1 |
Javascript | Javascript | fix classed operator for svg elements. fixes #78 | 1578595a18f6c7b3a46d98e5f68de18aebc4dd19 | <ide><path>d3.js
<ide> function d3_selection(groups) {
<ide>
<ide> /** @this {Element} */
<ide> function classedRemove() {
<del> var classes = d3_collapse(this.className.replace(re, " "));
<add> var classes = d3_collapse(this.className.toString().replace(re, " "));
<ide> this.className = classe... | 3 |
Javascript | Javascript | remove ws and replace comma with semicolon | 7f444a205e87bff66c924040a102e5442bbc61c6 | <ide><path>src/ng/interval.js
<ide> function $IntervalProvider() {
<ide> * In tests you can use {@link ngMock.$interval#methods_flush `$interval.flush(millis)`} to
<ide> * move forward by `millis` milliseconds and trigger any functions scheduled to run in that
<ide> * time.
<del> *
<add> *
... | 1 |
Javascript | Javascript | wrap all assignments in if statements | 9d808239b3120b0120f164834ce3012f779c8939 | <ide><path>src/Compiler.js
<ide> Compiler.prototype = {
<ide> template = new Template();
<ide> eachAttribute(element, function(value, name){
<ide> if (!widget) {
<del> if (widget = self.widgets('@' + name)) {
<add> if ((widget = self.widgets('@' + name))) {
<ide> element.addClass('... | 8 |
Text | Text | fix markdown formatting | 1fad3f6546bef86f5d46cbf095603423263140a5 | <ide><path>docs/focus/2018-03-19.md
<ide> ## Highlights from the past week
<ide>
<ide> - Atom IDE
<del> - Shipping Console Logging
<del> - Fixed bugs including multi-symbol autocomplete trigger, java detection etc.
<del> - Started learning Rust
<add> - Shipping Console Logging
<add> - Fixed bugs including multi-symb... | 1 |
Ruby | Ruby | build the root folder before specific files | 1bee2fb600c07625b830afd33b43ead3364c9715 | <ide><path>railties/lib/rails/generators/rails/app/app_generator.rb
<ide> def create_public_files
<ide> build(:public_directory)
<ide> end
<ide>
<add> def create_tmp_files
<add> build(:tmp)
<add> end
<add>
<add> def create_vendor_files
<add> build(:vendor)
<add> end
<add... | 1 |
Javascript | Javascript | fix regression in test-require-resolver.js | 91a465c460a1525103611a03ca277b061f320228 | <ide><path>test/parallel/test-require-resolve.js
<ide> const assert = require('assert');
<ide>
<ide> assert.strictEqual(
<ide> fixtures.path('a.js').toLowerCase(),
<del> require.resolve(fixtures.path('a').toLowerCase()));
<add> require.resolve(fixtures.path('a')).toLowerCase());
<ide> assert.strictEqual(
<ide> f... | 1 |
PHP | PHP | remove dead code | 948491ef3be2c107151f5b2d6df5cb4d18401978 | <ide><path>lib/Cake/Console/TaskCollection.php
<ide>
<ide> use Cake\Core\App;
<ide> use Cake\Error;
<del>use Cake\Utility\ObjectCollection;
<ide>
<ide> /**
<ide> * Collection object for Tasks. Provides features
<ide> class TaskCollection {
<ide> */
<ide> protected $_Shell;
<ide>
<del>/**
<del> * The directory ins... | 1 |
Python | Python | fix the rackspace tests for namespacing | 6226efb9fcc5d16492192e487cb0bd1e32f3be0c | <ide><path>test/test_rackspace.py
<ide> from libcloud.types import InvalidCredsError
<ide> from libcloud.drivers.rackspace import (
<ide> RackspaceNodeDriver as Rackspace,
<del> SharedIpGroup,
<del> NodeIpAddresses)
<add> RackspaceSharedIpGroup,
<add> RackspaceNodeIpAddresses)
<ide> from libcloud.base i... | 1 |
Javascript | Javascript | add legacyhidden to server renderer | 0fb747f368635933f27d296be96c8edcf99cbdbc | <ide><path>packages/react-dom/src/__tests__/ReactDOMServerPartialHydration-test.internal.js
<ide> describe('ReactDOMServerPartialHydration', () => {
<ide> // Now we're hydrated.
<ide> expect(ref.current).not.toBe(null);
<ide> });
<add>
<add> // @gate experimental
<add> // @gate new
<add> it('renders a hidd... | 3 |
PHP | PHP | step one for moving implementedmethods logic | 412832526d70a46d494d63dcd79b86be936e1c1f | <ide><path>Cake/ORM/Behavior.php
<ide> */
<ide> class Behavior implements EventListener {
<ide>
<add>/**
<add> * _reflectionMethods
<add> *
<add> * @var array
<add> */
<add> protected $_reflectionMethods;
<add>
<ide> /**
<ide> * Contains configuration settings.
<ide> *
<ide> public function implementedEvents() {
<i... | 2 |
Python | Python | make tests to import | fab2b47311a315942ae12fa56a7fef43f84d3c21 | <ide><path>numpy/polynomial/tests/test_chebyshev.py
<ide> import numpy as np
<ide> import numpy.polynomial.chebyshev as ch
<ide> from numpy.testing import *
<del>from exceptions import TypeError, ValueError
<ide>
<ide> def trim(x) :
<ide> return ch.chebtrim(x, tol=1e-6)
<ide><path>numpy/polynomial/tests/test_polyn... | 3 |
Go | Go | add missing fprintf instead of printf | 6127d757a7495df83b3d4cec53dc56b48c764023 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdPort(args ...string) error {
<ide> }
<ide>
<ide> if frontend, exists := out.NetworkSettings.PortMapping[cmd.Arg(1)]; exists {
<del> fmt.Println(frontend)
<add> fmt.Fprintf(cli.out, "%s\n", frontend)
<ide> } else {
<ide> return fmt.Errorf("Error: No private p... | 1 |
Python | Python | add test for upload_object throwing an exception | 2f32d40819f1c80e3fc8dc4d547c6c6648c643d4 | <ide><path>test/storage/test_cloudfiles.py
<ide> def no_content_type(name):
<ide> finally:
<ide> libcloud.utils.guess_file_mime_type = old_func
<ide>
<del> # TODO: Add test for upload_object throwing a LibcloudError
<add> def test_upload_object_error(self):
<add> def dummy_content_type... | 1 |
Text | Text | update information security with helmetjs text | 1baad2357c00810fd6bcb2d7cd0702a1c6282d33 | <ide><path>curriculum/challenges/english/09-information-security/information-security-with-helmetjs/install-and-require-helmet.md
<ide> Helmet helps you secure your Express apps by setting various HTTP headers.
<ide>
<ide> All your code for these lessons goes in the `myApp.js` file between the lines of code we have st... | 2 |
Javascript | Javascript | add reacttransitiongroup to the build | f7ea031dac8dedddd9525c42a5c27b34c01f616a | <ide><path>grunt/config/jsx/jsx.js
<ide> 'use strict';
<ide>
<ide> var rootIDs = [
<del> "React"
<add> "React",
<add> "ReactTransitionGroup"
<ide> ];
<ide>
<ide> var debug = { | 1 |
Python | Python | define the package pattern for keras-nlp | 1eb0ec0e8756b9949024bb8829793c621be828df | <ide><path>official/nlp/keras_nlp/__init__.py
<add># Copyright 2020 The TensorFlow Authors. All Rights Reserved.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the License.
<add># You may obtain a copy of the License at
<add>#
<ad... | 5 |
PHP | PHP | add wherepivot tests | 2d40c94d4db099df09fec943ef3bbced03b97b78 | <ide><path>tests/Integration/Database/EloquentBelongsToManyTest.php
<ide> public function test_can_touch_related_models()
<ide> $this->assertNotEquals('2017-10-10 10:10:10', Tag::find(300)->updated_at);
<ide> }
<ide>
<add> public function test_where_pivot_on_string()
<add> {
<add> $tag = Tag::... | 1 |
Javascript | Javascript | remove string literal message from assertion | 8eb1130854c1e9cbf077f859b0f442d1e6852ba1 | <ide><path>test/parallel/test-http-information-processing.js
<ide> server.listen(0, function() {
<ide> });
<ide>
<ide> req.on('response', function(res) {
<del> assert.strictEqual(countdown.remaining, 1,
<del> 'Full response received before all 102 Processing');
<add> // Check that all 1... | 1 |
Javascript | Javascript | fix module cycle in @ember/engine package | ae39947c7f5deba08c69a6aea4c548ae087612d3 | <ide><path>packages/@ember/engine/index.js
<ide> /**
<ide> @module @ember/engine
<ide> */
<add>
<add>export { getEngineParent, setEngineParent } from './lib/engine-parent';
<add>
<ide> import { canInvoke } from 'ember-utils';
<ide> import Controller from '@ember/controller';
<ide> import { Namespace, RegistryProxyMixin... | 3 |
Javascript | Javascript | remove some unused scale code | b0bddce017c1e8fa0094e69213a096a98377907d | <ide><path>src/core/core.scale.js
<ide> return scaleInstance.options.position == "bottom";
<ide> });
<ide>
<del> var visibleLeftScales = helpers.where(chartInstance.scales, function(scaleInstance) {
<del> return scaleInstance.options.position == "left";
<del> });
<del> var visibleRightScales = he... | 1 |
PHP | PHP | fix failing scaffold tests | 93b80042f8fc24fcc550a9db9600a5bc42d30a80 | <ide><path>cake/tests/cases/libs/controller/scaffold.test.php
<ide> function testScaffoldChangingViewProperty() {
<ide> $this->Controller->theme = 'test_theme';
<ide> $this->Controller->view = 'Theme';
<ide> $this->Controller->constructClasses();
<del> $Scaffold =& new TestScaffoldMock($this->Controller, array()... | 1 |
PHP | PHP | apply suggestions from code review | 4bccfb80b6c90787a3aa04c4c413cab6c2a3efec | <ide><path>src/TestSuite/TestCase.php
<ide> public static function setAppNamespace(string $appNamespace = 'TestApp'): void
<ide> /**
<ide> * Gets fixtures.
<ide> *
<del> * @return array
<add> * @return string[]
<ide> */
<del> public function getFixtures()
<add> public function getFixtur... | 1 |
Ruby | Ruby | track only the major version instead | 231b10beea223bd62ccbbd6783ec4d1fc45115d9 | <ide><path>Library/Homebrew/os/mac.rb
<ide> def full_version=(version)
<ide> sig { returns(::Version) }
<ide> def latest_sdk_version
<ide> # TODO: bump version when new Xcode macOS SDK is released
<del> ::Version.new("11.3")
<add> # NOTE: We only track the major version of the SDK.
<add> ::... | 1 |
Python | Python | drop unused import | 5c6adb1ccaa6f40f4afeb503cb9c8944c9ce9f75 | <ide><path>djangorestframework/tests/renderers.py
<ide> from djangorestframework.compat import View as DjangoView
<ide> from djangorestframework.renderers import BaseRenderer, JSONRenderer, YAMLRenderer,\
<ide> XMLRenderer
<del>from djangorestframework.parsers import JSONParser, YAMLParser, XMLParser
<add>from djan... | 1 |
Javascript | Javascript | move beforerender/afterrender into the legacy bin | 1e54081264e72affc0f22ac685b0ad21c771b552 | <ide><path>packages/ember-views/lib/mixins/legacy_view_support.js
<ide> import { Mixin } from "ember-metal/mixin";
<ide> import { get } from "ember-metal/property_get";
<ide>
<ide> var LegacyViewSupport = Mixin.create({
<add> beforeRender: function(buffer) {},
<add>
<add> afterRender: function(buffer) {},
<add>
<ide... | 2 |
Text | Text | add changelog entry for | e6278348b7a4b2df0b10336f0287f064e068fa3f | <ide><path>actionpack/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Remove old asset_path configuration (no longer needed now that we have the asset pipeline).
<add>
<add> *Josh Peek*
<add>
<ide> * `assert_template` can be used to assert on the same template with different locals
<ide> Fix ... | 3 |
Ruby | Ruby | move colormake to headonly | dae221bdb84cdc73170ed1395130595d9706b8fc | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> 'jsl' => 'homebrew/binary',
<ide> 'nlopt' => 'homebrew/science',
<ide> 'comparepdf' => 'homebrew/boneyard',
<add> 'colormake' => 'homebrew/headonly',
<ide> } | 1 |
Javascript | Javascript | pass the bytes sent to the send callback | a4436bab7b83e311f8a4207b9c6d97acde4735ff | <ide><path>lib/dgram.js
<ide> Socket.prototype.send = function(buffer,
<ide>
<ide>
<ide> function afterSend(err) {
<del> this.callback(err ? errnoException(err, 'send') : null);
<add> this.callback(err ? errnoException(err, 'send') : null, this.buffer.length);
<ide> }
<ide>
<ide>
<ide><path>test/simple/test-dgram... | 2 |
Ruby | Ruby | use new rotation signature in cookies | 9d79d77813c3aca010a5b40cacbd6e68f42ce618 | <ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb
<ide> def upgrade_legacy_signed_cookies?
<ide> end
<ide>
<ide> def upgrade_legacy_hmac_aes_cbc_cookies?
<del> request.secret_key_base.present? &&
<del> request.encrypted_signed_cookie_salt.present?... | 3 |
Python | Python | fix bug in wav2vec2 pretrain example | 48c22691e3512eaf0bbab761cda67ce09b6348ea | <ide><path>examples/research_projects/wav2vec2/run_pretrain.py
<ide> def __call__(self, features: List[Dict[str, Union[List[int], torch.Tensor]]]) ->
<ide> (batch_size, mask_indices_seq_length),
<ide> self.model.config.mask_time_prob,
<ide> self.model.config.mask_time_length,
<del> ... | 1 |
PHP | PHP | add cursor to connectioninterface | 2115cf6274f4da1681311700b12416d637517340 | <ide><path>src/Illuminate/Database/ConnectionInterface.php
<ide> public function raw($value);
<ide> *
<ide> * @param string $query
<ide> * @param array $bindings
<add> * @param bool $useReadPdo
<ide> * @return mixed
<ide> */
<del> public function selectOne($query, $bindings = []);... | 1 |
Go | Go | add missing bounds in continueonerror | 1ebfa299545e5c2273ce449d72b10745b9e38087 | <ide><path>registry/registry.go
<ide> func (e ErrNoSupport) Error() string {
<ide> func ContinueOnError(err error) bool {
<ide> switch v := err.(type) {
<ide> case errcode.Errors:
<add> if len(v) == 0 {
<add> return true
<add> }
<ide> return ContinueOnError(v[0])
<ide> case ErrNoSupport:
<ide> return Continu... | 1 |
Javascript | Javascript | optimize arrayclone by copying forward | f2f997ad1e416fd5ba295e84139848f77b37c40f | <ide><path>lib/events.js
<ide> function spliceOne(list, index) {
<ide> list.pop();
<ide> }
<ide>
<del>function arrayClone(arr, i) {
<del> var copy = new Array(i);
<del> while (i--)
<add>function arrayClone(arr, n) {
<add> var copy = new Array(n);
<add> for (var i = 0; i < n; ++i)
<ide> copy[i] = arr[i];
<ide... | 1 |
Python | Python | set version to v2.0.18 | bbaca991baee5d2c21cd48a9da535b7d2144ecda | <ide><path>spacy/about.py
<ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
<ide>
<ide> __title__ = 'spacy'
<del>__version__ = '2.0.18.dev1'
<add>__version__ = '2.0.18'
<ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython'
<ide> __uri__ = 'https:/... | 1 |
Javascript | Javascript | use tmpdir in test-fs-utimes | da7b4a9d161d7b55b6c3b3adf56e32219e580412 | <ide><path>test/parallel/test-fs-utimes.js
<ide> const assert = require('assert');
<ide> const util = require('util');
<ide> const fs = require('fs');
<ide>
<add>common.refreshTmpDir();
<add>
<ide> let tests_ok = 0;
<ide> let tests_run = 0;
<ide>
<ide> function expect_ok(syscall, resource, err, atime, mtime) {
<ide> ... | 1 |
PHP | PHP | add the ability to set a callable response body | c37930b0b0b3da802a48b2f2435320d2a2ad5b37 | <ide><path>src/Network/Response.php
<ide> class Response
<ide> protected $_headers = [];
<ide>
<ide> /**
<del> * Buffer string for response message
<add> * Buffer string or callable for response message
<ide> *
<ide> * @var string
<ide> */
<ide> protected function _sendHeader($name, $val... | 2 |
Javascript | Javascript | add --no-show-signature to "git show" commands | 9a7e6bf0d0cf08114b74c9fe45c06e60a5e496e4 | <ide><path>packages/react-devtools-extensions/utils.js
<ide> const GITHUB_URL = 'https://github.com/facebook/react';
<ide>
<ide> function getGitCommit() {
<ide> try {
<del> return execSync('git show -s --format=%h')
<add> return execSync('git show -s --no-show-signature --format=%h')
<ide> .toString()
<i... | 3 |
Ruby | Ruby | ignore files already deleted on gcs file deletions | 390840eb4e219a26278b88df71ab18b6f8f0fe7a | <ide><path>activestorage/lib/active_storage/service/gcs_service.rb
<ide> def download(key)
<ide>
<ide> def delete(key)
<ide> instrument :delete, key do
<del> file_for(key).try(:delete)
<add> begin
<add> file_for(key).try(:delete)
<add> rescue Google::Cloud::NotFoundError
<add> ... | 1 |
PHP | PHP | add support for closures in apc cache driver | ac38876e347be83f3114c69677f1ff795da10304 | <ide><path>system/cache/driver/apc.php
<ide> public function get($key, $default = null)
<ide>
<ide> if ($cache === false)
<ide> {
<del> return $default;
<add> return is_callable($default) ? call_user_func($default) : $default;
<ide> }
<ide>
<ide> return $this->items[$key] = $cache; | 1 |
Javascript | Javascript | remove unused code in `jqlitebuildfragment()` | 2e0e77ee80236a841085a599c800bd2c9695475e | <ide><path>src/jqLite.js
<ide> function jqLiteBuildFragment(html, context) {
<ide> nodes.push(context.createTextNode(html));
<ide> } else {
<ide> // Convert html into DOM nodes
<del> tmp = tmp || fragment.appendChild(context.createElement("div"));
<add> tmp = fragment.appendChild(context.createElement("... | 1 |
Text | Text | add a pre-trained resnet-50 checkpoint | dfc77845e79b476c0af00e9cf61bbac8a8c271af | <ide><path>official/resnet/README.md
<ide> python imagenet_main.py --data_dir=/path/to/imagenet
<ide> The model will begin training and will automatically evaluate itself on the validation data roughly once per epoch.
<ide>
<ide> Note that there are a number of other options you can specify, including `--model_dir` to... | 1 |
Text | Text | translate 10.3 to korean | c24e5926b9aeddec0860b577b515e51e466949c8 | <ide><path>docs/docs/10.3-class-name-manipulation.ko-KR.md
<add>---
<add>id: class-name-manipulation-ko-KR
<add>title: 클래스 이름 조작
<add>permalink: class-name-manipulation-ko-KR.html
<add>prev: two-way-binding-helpers-ko-KR.html
<add>next: test-utils-ko-KR.html
<add>---
<add>
<add>> 주의:
<add>>
<add>> 이 모듈은 이제 [JedWatson/c... | 1 |
Javascript | Javascript | remove useless guard for `a`. close gh-918 | c79a533ffd3e063a498fde6bdb1b934c7b4b47ab | <ide><path>src/support.js
<ide> jQuery.support = (function() {
<ide> a.style.cssText = "top:1px;float:left;opacity:.5";
<ide>
<ide> // Can't get basic test support
<del> if ( !all || !all.length || !a ) {
<add> if ( !all || !all.length ) {
<ide> return {};
<ide> }
<ide> | 1 |
Javascript | Javascript | update timeout for plugin-mdx test | d9c462bf379709db8070ff19217b12149f97b63f | <ide><path>test/integration/plugin-mdx/test/index.test.js
<ide> /* eslint-env jest */
<add>/* global jasmine */
<ide> import { join } from 'path'
<ide> import {
<ide> renderViaHTTP,
<ide> import {
<ide> } from 'next-test-utils'
<ide>
<ide> const context = {}
<add>jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
<ide... | 1 |
Text | Text | discuss benefits of putting logic in reducers | ab5c9593bc304880c3089fc0bfcc2c3a28fd21d3 | <ide><path>docs/faq/CodeStructure.md
<ide> While it ultimately doesn't matter how you lay out your code on disk, it's impor
<ide>
<ide> There's no single clear answer to exactly what pieces of logic should go in a reducer or an action creator. Some developers prefer to have “fat” action creators, with “thin” reducers ... | 1 |
Go | Go | fix regression with add of tar files | cad7f7ee5002206511daee4a29f399e6665f5fab | <ide><path>buildfile.go
<ide> func (b *buildFile) addContext(container *Container, orig, dest string) error {
<ide> }
<ide> return err
<ide> }
<add>
<ide> if fi.IsDir() {
<ide> if err := archive.CopyWithTar(origPath, destPath); err != nil {
<ide> return err
<ide> }
<del> // First try to unpack the source ... | 1 |
Javascript | Javascript | remove params from createtexture | 131212ae616a5664870d2e7a8a787683e1cbf197 | <ide><path>examples/js/GPUComputationRenderer.js
<ide> function GPUComputationRenderer( sizeX, sizeY, renderer ) {
<ide>
<ide> };
<ide>
<del> this.createTexture = function( sizeXTexture, sizeYTexture ) {
<add> this.createTexture = function() {
<ide>
<del> sizeXTexture = sizeXTexture || sizeX;
<del> sizeYTexture =... | 1 |
PHP | PHP | return new exception | 1e4f5b8af243fb95230b39f49a6cf5341d975df9 | <ide><path>src/Illuminate/Database/Eloquent/RelationNotFoundException.php
<ide> public static function make($model, $relation)
<ide> {
<ide> $class = get_class($model);
<ide>
<del> throw new static("Call to undefined relationship [{$relation}] on model [{$class}].");
<add> return new static("... | 1 |
PHP | PHP | improve columndefinition | b4ddc72e9b48e460222277bde5afda2b73830fcc | <ide><path>src/Illuminate/Database/Schema/ColumnDefinition.php
<ide> * @method ColumnDefinition collation(string $collation) Specify a collation for the column (MySQL/SQL Server)
<ide> * @method ColumnDefinition comment(string $comment) Add a comment to the column (MySQL)
<ide> * @method ColumnDefinition default(mix... | 1 |
Javascript | Javascript | remove old license information | 504239050c74a50afa4710c58aa8cc072cb6327b | <ide><path>server/boot/challenge.js
<del>/**
<del> * Created by nathanleniz on 5/15/15.
<del> * Copyright (c) 2015, Free Code Camp
<del> All rights reserved.
<del>
<del> Redistribution and use in source and binary forms, with or without
<del> modification, are permitted provided that the following conditions are met:
<... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.