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 | update bladecompiler.php | 65927fc67b27ddf861ffebdbadc7f87ea48cf934 | <ide><path>src/Illuminate/View/Compilers/BladeCompiler.php
<ide> protected function compileEndpush($expression)
<ide> * @param string $expression
<ide> * @return string
<ide> */
<del> protected function stripParentheses($expression)
<add> public function stripParentheses($expression)
<ide> {
... | 1 |
Text | Text | fix merge issue on docker-hub/builds.md | c37b4828dd1062a2e031344a536bf54147481a95 | <ide><path>docs/sources/docker-hub/builds.md
<ide> to Docker Hub.
<ide>
<ide> #### Creating an Automated Build
<ide>
<del><<<<<<< HEAD:docs/sources/docker-io/builds.md
<del>You can [create an Automated
<del>Build](https://index.docker.io/builds/bitbucket/select/) from any of
<del>your public or private BitBucket repo... | 1 |
Go | Go | use c to change interface name | ee39033073ece35e91c6c5a8cb66d23246511fb0 | <ide><path>pkg/netlink/netlink_linux.go
<ide>
<ide> package netlink
<ide>
<add>/*
<add>#include <string.h>
<add>#include <errno.h>
<add>#include <sys/ioctl.h>
<add>#include <net/if.h>
<add>
<add>static int get_socket(void) {
<add> int s_errno;
<add> int fd;
<add>
<add> fd = socket(PF_INET, SOCK_DGRAM, 0);
<add> if (f... | 1 |
PHP | PHP | update another usage | ed32e0b39b90d609e53f2e95aa123d0ef8ffe198 | <ide><path>lib/Cake/TestSuite/Fixture/CakeTestFixture.php
<ide> public function init() {
<ide> $records = $db->fetchAll($db->buildStatement($query, $model), false, $model->alias);
<ide>
<ide> if ($records !== false && !empty($records)) {
<del> $this->records = Set::extract($records, '{n}.' . $model->alias)... | 1 |
Ruby | Ruby | expect xcode 7.1.1 | cbab4566dd9a36f5d37507490069f0989cf9dc5d | <ide><path>Library/Homebrew/os/mac.rb
<ide> def preferred_arch
<ide> "7.0" => { :clang => "7.0", :clang_build => 700 },
<ide> "7.0.1" => { :clang => "7.0", :clang_build => 700 },
<ide> "7.1" => { :clang => "7.0", :clang_build => 700 },
<add> "7.1.1" => { :clang => "7.0", :clang_build => 700 }... | 1 |
Javascript | Javascript | add minrotation support | 3bef974c25e61c7f8b45fd105d59aca363906acd | <ide><path>src/core/core.scale.js
<ide> module.exports = function(Chart) {
<ide> // label settings
<ide> ticks: {
<ide> beginAtZero: false,
<add> minRotation: 0,
<ide> maxRotation: 50,
<ide> mirror: false,
<ide> padding: 10,
<ide> module.exports = function(Chart) {
<ide> var lastWidth = this.ctx.me... | 7 |
Javascript | Javascript | fix text selection with hdpi screens | 51c8e2f3ab543bd25ac69e8ecb4a0869fb978222 | <ide><path>src/display/text_layer.js
<ide> function appendText(task, geom, styles, ctx) {
<ide> paddingRight: 0,
<ide> paddingTop: 0,
<ide> scale: 1,
<add> fontSize: 0,
<ide> }
<ide> : {
<ide> angle: 0,
<ide> canvasWidth: 0,
<ide> hasText: geom.str !== ""... | 1 |
Ruby | Ruby | add install_formula helper method | 15e8852128bfe0da12c02d105fabccbed3758b8e | <ide><path>Library/Homebrew/install.rb
<ide> def install_formula?(
<ide> elsif f.linked?
<ide> message = "#{f.name} #{f.linked_version} is already installed"
<ide> if f.outdated? && !head
<del> return true unless Homebrew::EnvConfig.no_install_upgrade?
<add> unless Homebrew::EnvC... | 2 |
Javascript | Javascript | fix bugs related to paths with trailing slashes | bb1c03989f8702e06072e6d9228b52661bf00ace | <ide><path>lib/path.js
<ide> if (isWindows) {
<ide> // 'root' is just a slash, or nothing.
<ide> var splitPathRe =
<ide> /^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/;
<add> var trailingSlash = /\/+$/;
<ide> var splitPath = function(filename) {
<add>
<add> // removes trailing slashes... | 2 |
Javascript | Javascript | fix jquery.extend for older browsers - fixes #344 | d9e44a37a01132ecba52d3415b13ff70eafe09d4 | <ide><path>packages/ember-metal/lib/utils.js
<ide> var EMPTY_META = {
<ide>
<ide> if (Object.freeze) Object.freeze(EMPTY_META);
<ide>
<add>var createMeta = Ember.platform.defineProperty.isSimulated ? o_create : function(meta) { return meta; };
<add>
<ide> /**
<ide> @private
<ide> @function
<ide> Ember.meta = func... | 2 |
Ruby | Ruby | remove outdated cross-origin redirection tests | 3d70e9609760cb3046cf219cd49f3e9a838a0291 | <ide><path>activestorage/test/controllers/blobs_controller_test.rb
<ide> class ActiveStorage::BlobsControllerTest < ActionDispatch::IntegrationTest
<ide> assert_equal "max-age=300, private", @response.headers["Cache-Control"]
<ide> end
<ide> end
<del>
<del>if SERVICE_CONFIGURATIONS[:s3] && SERVICE_CONFIGURATIONS[... | 2 |
Javascript | Javascript | add support for internal fb primer | 503fd82b423bbce20cb366afcf670ae5329f3995 | <ide><path>packages/react-dom/src/events/DOMModernPluginEventSystem.js
<ide> import {
<ide> TOP_PROGRESS,
<ide> TOP_PLAYING,
<ide> } from './DOMTopLevelEventTypes';
<add>import {DOCUMENT_NODE} from '../shared/HTMLNodeType';
<add>
<add>import {enableLegacyFBPrimerSupport} from 'shared/ReactFeatureFlags';
<ide>
<ide... | 12 |
Javascript | Javascript | fix scroll-to-top in marketplace | ae2f556c71ff1e83690ca082604c30cac574f340 | <ide><path>Libraries/ReactIOS/YellowBox.js
<ide> class YellowBox extends React.Component {
<ide> ];
<ide> return (
<ide> <View style={inspector ? styles.fullScreen : listStyle}>
<del> <ScrollView style={listStyle}>
<add> <ScrollView style={listStyle} scrollsToTop={false}>
<ide> {ro... | 1 |
PHP | PHP | fix param type in docblock | ecaa0bd8ee7cb4fda09b5e76634be5ed6e806658 | <ide><path>src/Shell/PluginAssetsShell.php
<ide> class PluginAssetsShell extends Shell {
<ide> * fallbacks to copying the assets. For vendor namespaced plugin, parent folder
<ide> * for vendor name are created if required.
<ide> *
<del> * @param string|string $name Name of plugin for which to symlink assets.
<add> *... | 1 |
Ruby | Ruby | add test for update_attributes and identity map | 6b0b95f1bd92e2ef35573cb59e8a14bd3ffb3777 | <ide><path>activerecord/test/cases/identity_map_test.rb
<ide> def test_reload_object_if_forced_save_failed
<ide> assert_not_equal developer.salary, same_developer.salary
<ide> end
<ide>
<add> def test_reload_object_if_update_attributes_fails
<add> developer = Developer.first
<add> developer.salary = 0
<ad... | 1 |
Python | Python | add python3 support | 312120272f6ce403cd7fa3a88fed636786b202eb | <ide><path>keras/layers/core.py
<ide> class Lambda(Layer):
<ide> def __init__(self, function, output_shape, ndim=2):
<ide> super(Lambda, self).__init__()
<ide> self.input = ndim_tensor(ndim)
<del> self.function = marshal.dumps(function.func_code)
<add> py3 = sys.version_info[0] == 3
<add> if py3:
<add> self.f... | 1 |
Text | Text | replace the outdated flag | 7e2d7f0c9858484f57e53d06101e6a22a1294f9f | <ide><path>docs/SignedAPKAndroid.md
<ide> The generated APK can be found under `android/app/build/outputs/apk/app-release.
<ide> Before uploading the release build to the Play Store, make sure you test it thoroughly. Install it on the device using:
<ide>
<ide> ```sh
<del>$ react-native run-android --configuration=rele... | 1 |
Ruby | Ruby | add documentation for arel and build_arel | c0e186c1555f43f53df70c1736de7047d5f4e678 | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> def reverse_order!
<ide> self
<ide> end
<ide>
<add> # Returns the Arel object associated with the relation.
<ide> def arel
<ide> @arel ||= with_default_scope.build_arel
<ide> end
<ide>
<add> # Like #arel, but ignor... | 1 |
Text | Text | update outdated formula references for node | 83f62d1fad34f98f7d360f2a84932040fdeb06b1 | <ide><path>docs/Node-for-Formula-Authors.md
<ide> Node modules which are compatible with the latest Node version should declare a
<ide> depends_on "node"
<ide> ```
<ide>
<del>If your formula requires being executed with an older Node version you should use one of the versioned node formulae (e.g. `node@6`).
<add>If yo... | 1 |
Javascript | Javascript | check callback not invoked on lookup error | c20c57028211797b5ff5b3bc05d6eb05ab81ef9f | <ide><path>test/parallel/test-dns-lookup.js
<ide> assert.throws(() => {
<ide> hints: 100,
<ide> family: 0,
<ide> all: false
<del> }, common.noop);
<add> }, common.mustNotCall());
<ide> }, /^TypeError: Invalid argument: hints must use valid flags$/);
<ide>
<ide> assert.throws(() => {
<ide> dns.lookup(fa... | 1 |
Go | Go | pass terminal setting to display utils | 8b0cd60019b33488f8819da5c7bdd28d1d3fc737 | <ide><path>commands.go
<ide> func (cli *DockerCli) stream(method, path string, in io.Reader, out io.Writer, h
<ide> }
<ide>
<ide> if matchesContentType(resp.Header.Get("Content-Type"), "application/json") {
<del> return utils.DisplayJSONMessagesStream(resp.Body, out)
<add> return utils.DisplayJSONMessagesStream(re... | 2 |
PHP | PHP | allow easy viewfactory override | f336c75b2c3c8e49e13154c9029d4816fd341639 | <ide><path>src/Illuminate/View/ViewServiceProvider.php
<ide> public function registerFactory()
<ide>
<ide> $finder = $app['view.finder'];
<ide>
<del> $env = new Factory($resolver, $finder, $app['events']);
<add> $env = $this->newFactory($resolver, $finder, $app['events']);
<ide>
<id... | 1 |
Text | Text | fix readme with google analytics | 312572d02028fe980b4a81cdef5833c168bb4278 | <ide><path>examples/with-google-analytics/README.md
<ide> # Example app with analytics
<ide>
<del>This example shows how to use [Next.js](https://github.com/vercel/next.js) along with [Google Analytics](https://developers.google.com/analytics/devguides/collection/gtagjs/). A custom [\_document](https://nextjs.org/docs... | 1 |
Ruby | Ruby | remove redundant test | 533472dfe9d9252a2df3a4ce76d867d8df54d375 | <ide><path>actionpack/test/dispatch/request_test.rb
<ide> class RequestMethod < BaseRequestTest
<ide> end
<ide> end
<ide>
<del> test "restrict method hacking" do
<del> [:get, :patch, :put, :delete].each do |method|
<del> request = stub_request(
<del> 'action_dispatch.request.request_parameters' =... | 1 |
Javascript | Javascript | apply linux workaround to linux only | ad36ea56fc41d77ee3a35e14f96667293402296f | <ide><path>test/common.js
<ide> var opensslCli = null;
<ide> var inFreeBSDJail = null;
<ide> var localhostIPv4 = null;
<ide>
<del>exports.localIPv6Hosts = [
<del> // Debian/Ubuntu
<del> 'ip6-localhost',
<del> 'ip6-loopback',
<del>
<del> // SUSE
<del> 'ipv6-localhost',
<del> 'ipv6-loopback',
<del>
<del> // Typic... | 1 |
Javascript | Javascript | log the updatequeue in dumptree | 27d1210c1d00e9b34839fd5596a74d8af52ffa7f | <ide><path>src/renderers/noop/ReactNoop.js
<ide> 'use strict';
<ide>
<ide> import type { Fiber } from 'ReactFiber';
<add>import type { UpdateQueue } from 'ReactFiberUpdateQueue';
<ide> import type { HostChildren } from 'ReactFiberReconciler';
<ide>
<ide> var ReactFiberReconciler = require('ReactFiberReconciler');
<id... | 1 |
Ruby | Ruby | generalize has_tag? to has_ref? | 612745352d960a17b4dbaaf08987959ff8370898 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def git_dir
<ide> @clone.join(".git")
<ide> end
<ide>
<del> def has_tag?(tag)
<del> quiet_system @@git, '--git-dir', git_dir, 'rev-parse', '-q', '--verify', tag
<add> def has_ref?
<add> quiet_system @@git, '--git-dir', git_dir, 'rev-parse', '-q', '--... | 1 |
Javascript | Javascript | allow tab+alt on mac in focus responder | 63fe08eef56f92956c2d785701cad7f743501e35 | <ide><path>packages/react-events/src/Focus.js
<ide> type FocusEvent = {|
<ide> timeStamp: number,
<ide> |};
<ide>
<add>const isMac =
<add> typeof window !== 'undefined' && window.navigator != null
<add> ? /^Mac/.test(window.navigator.platform)
<add> : false;
<add>
<ide> const targetEventTypes = [
<ide> {nam... | 2 |
Javascript | Javascript | add missing `getmoduleid` function | 750f5f1dd43fd80cb9db025c224d0de312b15e7b | <ide><path>broccoli/to-named-amd.js
<ide> const Babel = require('broccoli-babel-transpiler');
<del>const { resolveRelativeModulePath } = require('ember-cli-babel/lib/relative-module-paths');
<add>const {
<add> resolveRelativeModulePath,
<add> getRelativeModulePath,
<add>} = require('ember-cli-babel/lib/relative-modul... | 1 |
Javascript | Javascript | upgrade useid to alpha channel | 5cccacd131242bdea2c2fe4b33fac50d2e3132b4 | <ide><path>packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js
<ide> describe('ReactHooksInspectionIntegration', () => {
<ide>
<ide> it('should support useId hook', () => {
<ide> function Foo(props) {
<del> const id = React.unstable_useId();
<add> const id = React.useId();
... | 9 |
Javascript | Javascript | fix native modules linking in 0.29.1 | 3c8a2eed92587ef3a79352b71073e4cfccb2a7df | <ide><path>local-cli/rnpm/link/src/android/patches/0.20/makeImportPatch.js
<ide> module.exports = function makeImportPatch(packageImportPath) {
<ide> return {
<del> pattern: 'import com.facebook.react.ReactActivity;',
<add> pattern: 'import com.facebook.react.ReactApplication;',
<ide> patch: '\n' + packageI... | 9 |
Text | Text | remove dup distinct from ar query list [ci skip] | 7d0e73bc019536970c480d0810347ee2f40b9838 | <ide><path>guides/source/active_record_querying.md
<ide> The methods are:
<ide> * `reorder`
<ide> * `reverse_order`
<ide> * `select`
<del>* `distinct`
<ide> * `where`
<ide>
<ide> Finder methods that return a collection, such as `where` and `group`, return an instance of `ActiveRecord::Relation`. Methods that find a s... | 1 |
Java | Java | preserve registration order in @activeprofiles | acbbf61be878f7924e29d71fe95fe001a8d29183 | <ide><path>spring-test/src/main/java/org/springframework/test/context/ActiveProfiles.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may no... | 7 |
Java | Java | update javadoc for sqlscriptstestexecutionlistener | 3013558e3d3166695907f7a9293b0726b68f6109 | <ide><path>spring-test/src/main/java/org/springframework/test/context/jdbc/SqlScriptsTestExecutionListener.java
<ide> * {@linkplain java.lang.reflect.Method test method}, depending on the configured
<ide> * value of the {@link Sql#executionPhase executionPhase} flag.
<ide> *
<del> * <p>Scripts will be executed eithe... | 1 |
Text | Text | fix a typo | 3df157480a543e626ac90b13d923c439e69724d0 | <ide><path>CHANGELOG.md
<ide> ### React DOM
<ide>
<ide> * Add support for the Pointer Events specification. ([@philipp-spiess](https://github.com/philipp-spiess) in [#12507](https://github.com/facebook/react/pull/12507))
<del>* Properly call `getDerivedFromProps()` regardless of the reason for re-rendering. ([@acdlite... | 1 |
Python | Python | add toggle support to subdag clearing in the cli | 115fe1c6b264c10319470a388c747caaf44a6dc4 | <ide><path>airflow/bin/cli.py
<ide> def clear(args):
<ide> end_date=args.end_date,
<ide> only_failed=args.only_failed,
<ide> only_running=args.only_running,
<del> confirm_prompt=not args.no_confirm)
<add> confirm_prompt=not args.no_confirm,
<add> include_subdags=not args.exc... | 2 |
Text | Text | release notes for 1.0.1 thorium-shielding | 3f14a45aa5894e5a30e946a1418e7c9f18f00691 | <ide><path>CHANGELOG.md
<add><a name="1.0.1"></a>
<add># 1.0.1 thorium-shielding (2012-06-25)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$location:** don't throw exception while url rewriting if element was removed
<add> ([3da4194f](https://github.com/angular/angular.js/commit/3da4194f98fa0c1ad1e5ab159719e4b25799e6d... | 1 |
Javascript | Javascript | use custom components for guide articles | 6a93b44acada261b0a5523ba309c0ecd307efe66 | <ide><path>client/gatsby-node.js
<ide> exports.onCreateNode = function onCreateNode({ node, actions, getNode }) {
<ide> }
<ide>
<ide> if (node.internal.type === 'MarkdownRemark') {
<del> let slug = createFilePath({ node, getNode });
<add> const slug = createFilePath({ node, getNode });
<ide> if (!slug.in... | 4 |
Python | Python | update np.void docs based on matti's comments | 7404cb68f20d8299a0935cb4242f37c41ab58aeb | <ide><path>numpy/core/_add_newdocs_scalars.py
<ide> def add_newdoc_for_scalar_type(obj, fixed_aliases, doc):
<ide> be returned.
<ide> dtype : dtype, optional
<ide> If provided the dtype of the new scalar. This dtype must
<del> be "void" dtype (i.e. a structured or unstructured
<del> vo... | 1 |
PHP | PHP | allow chaining of `->newline()` | 5c77dac3ec8d397f73bb6dcd2d4b1bae010e9592 | <ide><path>src/Illuminate/Console/Concerns/InteractsWithIO.php
<ide> public function alert($string)
<ide> * Write a blank line.
<ide> *
<ide> * @param int $count
<del> * @return void
<add> * @return $this
<ide> */
<ide> public function newLine($count = 1)
<ide> {
<ide> $thi... | 1 |
Python | Python | run mapped tasks via the normal scheduler | ba627f35debb88a68dae2b38694d15b7bfe34d1c | <ide><path>airflow/models/dagrun.py
<ide> # KIND, either express or implied. See the License for the
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<add>import itertools
<ide> import os
<ide> import warnings
<ide> from collections import defaultdict
<ide> from airflow.config... | 4 |
Python | Python | fix suggestions in utils | 1f579e0ef730c632256b24a987b8a257dd8d4476 | <ide><path>research/object_detection/dataset_tools/seq_example_util.py
<ide> def make_sequence_example(dataset_name,
<ide> detection_scores: (Optional) A list (with num_frames_elements) of
<ide> [num_boxes_i] numpy float32 arrays holding predicted object scores for
<ide> each frame.
<add> use_strs_fo... | 2 |
Javascript | Javascript | add keys to hash as you need them | 449a81264b3eea830ef57f6a1e7770840c0bb4b5 | <ide><path>Libraries/Components/ScrollView/ScrollView.js
<ide> var ScrollView = React.createClass({
<ide> automaticallyAdjustContentInsets: PropTypes.bool,
<ide> /**
<ide> * The amount by which the scroll view content is inset from the edges
<del> * of the scroll view. Defaults to `{0, 0, 0, 0}`.
<add>... | 1 |
Text | Text | remove redunant `await` calls from stream docs | 119519e1da2be1f180e8d66bd0bb79403624ea73 | <ide><path>doc/api/stream.md
<ide> for await (const item of Readable.from([1, 2, 3, 4]).map((x) => x * 2)) {
<ide> }
<ide> // With an asynchronous mapper, making at most 2 queries at a time.
<ide> const resolver = new Resolver();
<del>const dnsResults = await Readable.from([
<add>const dnsResults = Readable.from([
<ide... | 1 |
Ruby | Ruby | fix audit errors in dev-cmd/bump-revision.rb | b52e23c3ff0c5eae96410e7642afab187a56e788 | <ide><path>Library/Homebrew/dev-cmd/bump-revision.rb
<ide> def bump_revision_args
<ide> present, "revision 1" will be added.
<ide> EOS
<ide> switch "-n", "--dry-run",
<del> description: "Print what would be done rather than doing it."
<add> description: "Print what would be done ... | 1 |
Go | Go | fix race in testservicelogsfollow test case | 0c3be531076617be52b641b6dbb60649f587b5f5 | <ide><path>integration-cli/docker_cli_service_logs_test.go
<ide> func (s *DockerSwarmSuite) TestServiceLogsFollow(c *testing.T) {
<ide> args := []string{"service", "logs", "-f", name}
<ide> cmd := exec.Command(dockerBinary, d.PrependHostArg(args)...)
<ide> r, w := io.Pipe()
<add> defer r.Close()
<add> defer w.Close(... | 1 |
Python | Python | fix flake8 errors | 4b06fde0f10ce178b3c336c5d901e3b089f2863d | <ide><path>airflow/api/common/experimental/mark_tasks.py
<ide> def set_state(
<ide> # Flake and pylint disagree about correct indents here
<ide> def all_subdag_tasks_query(sub_dag_run_ids, session, state, confirmed_dates): # noqa: E123
<ide> """Get *all* tasks of the sub dags"""
<del> qry_sub_dag = session.quer... | 14 |
Text | Text | update cdn in readme to 2.1.1 | 9cfda5a8198cee1d7d77a7732a1fd2c0beb0c93d | <ide><path>README.md
<ide> To install via npm / bower:
<ide> npm install chart.js --save
<ide> bower install Chart.js --save
<ide> ```
<del>CDN: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.0/Chart.min.js
<add>CDN: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.1/Chart.min.js
<ide>
<ide> ## Documentation
<... | 1 |
Ruby | Ruby | remove misleading comment | 4532b39f5faa15af957e3b41b671f07ed201488d | <ide><path>activemodel/lib/active_model/attribute_methods.rb
<ide> def define_attr_method(name, value=nil, &block)
<ide> if block_given?
<ide> sing.send :define_method, name, &block
<ide> else
<del> # use eval instead of a block to work around a memory leak in dev
<del> # mod... | 1 |
PHP | PHP | apply fixes from styleci | 5cd131b48b5e8ba4ce36106ce9feaaf57889b1d1 | <ide><path>src/Illuminate/Database/ConfigurationUrlParser.php
<ide> protected function getDriver($url)
<ide> $alias = $url['scheme'] ?? null;
<ide>
<ide> if (! $alias) {
<del> return null;
<add> return;
<ide> }
<ide>
<ide> return static::$driverAliases[$alias] ?? ... | 1 |
Javascript | Javascript | change variable assignment | 4d0c759b7fbfc651fbd8c155cecf73d503bb643f | <ide><path>src/core/fonts.js
<ide> var Font = (function FontClosure() {
<ide> }
<ide> // The first glyph is duplicated.
<ide> var numGlyphsOut = dupFirstEntry ? numGlyphs + 1 : numGlyphs;
<del> var locaData = loca.data;
<ide> var locaDataSize = itemSize * (1 + numGlyphsOut);
<ide>... | 1 |
Python | Python | add english norm exceptions to lex_attrs | 746653880ce2fd24a511ae03f7d5f0eaa4d861ca | <ide><path>spacy/lang/en/__init__.py
<ide> from __future__ import unicode_literals
<ide>
<ide> from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
<add>from .norm_exceptions import NORM_EXCEPTIONS
<ide> from .tag_map import TAG_MAP
<ide> from .stop_words import STOP_WORDS
<ide> from .lex_attrs import LEX_ATTRS
<ide... | 2 |
Javascript | Javascript | remove an unused chalk dependency | bfb6897c558dfdccff7ac5fc377b08e806525be3 | <ide><path>build/release.js
<ide> module.exports.dependencies = [
<ide> "archiver@1.3.0",
<ide> "shelljs@0.7.7",
<ide> "inquirer@7.0.4",
<del> "npm@4.4.1",
<del> "chalk@1.1.3"
<add> "npm@4.4.1"
<ide> ]; | 1 |
Python | Python | remove comment about extension backwards compat | 38eb5d3b49d628785a470e2e773fc5ac82e3c8e4 | <ide><path>src/flask/app.py
<ide> def __init__(
<ide>
<ide> #: a place where extensions can store application specific state. For
<ide> #: example this is where an extension could store database engines and
<del> #: similar things. For backwards compatibility extensions should register
<del> ... | 1 |
PHP | PHP | fix more tests using deprecated request features | dbff1b73274c86849ea7b35e107a6a2f42297234 | <ide><path>tests/TestCase/View/Form/ArrayContextTest.php
<ide> public function testIsCreate()
<ide> */
<ide> public function testValPresent()
<ide> {
<del> $this->request->data = [
<add> $this->request = $this->request->withParsedBody([
<ide> 'Articles' => [
<ide> ... | 4 |
Ruby | Ruby | allow gcc-4.2 in homebrew_cc | 9647954a603dcb39cc8bb3f5fd0028670c2db0de | <ide><path>Library/Homebrew/superenv.rb
<ide> def determine_cc
<ide> when 'clang', 'gcc-4.0' then ENV['HOMEBREW_CC']
<ide> # depending on Xcode version plain 'gcc' could actually be
<ide> # gcc-4.0 or llvm-gcc
<del> when 'gcc' then 'gcc-4.2'
<add> when 'gcc', 'gcc-4.2' then 'gcc-4.... | 1 |
Javascript | Javascript | use object without protoype for map | c9c387fdac7d8deee6ee1a60026c01fa98d4d1b1 | <ide><path>lib/dns.js
<ide> function resolver(bindingName) {
<ide> }
<ide>
<ide>
<del>var resolveMap = {};
<add>var resolveMap = Object.create(null);
<ide> exports.resolve4 = resolveMap.A = resolver('queryA');
<ide> exports.resolve6 = resolveMap.AAAA = resolver('queryAaaa');
<ide> exports.resolveCname = resolveMap.CN... | 2 |
PHP | PHP | expand coverage for floattype | ec311cf9f6dfb48a3888c7233d0b55fc20797245 | <ide><path>tests/TestCase/Database/Type/FloatTypeTest.php
<ide> public function testToPHP()
<ide> */
<ide> public function testToDatabase()
<ide> {
<add> $result = $this->type->toDatabase('', $this->driver);
<add> $this->assertNull($result);
<add>
<add> $result = $this->type->toDatabas... | 1 |
Text | Text | update translation to 6a7a4fd | 2d847a145c65602dedc0463c447c54b377152df2 | <ide><path>docs/docs/08-working-with-the-browser.ko-KR.md
<ide> _마운트된_ 합성 컴포넌트들은 다음과 같은 메소드를 지원합
<ide>
<ide> 페이스북에서 우리는 IE8을 포함한 구식 브라우저를 지원합니다. 미래지향적인 JS를 작성할 수 있도록 우리는 polyfill을 오랫동안 써왔습니다. 이는 우리의 코드베이스에 구식 브라우저를 위한 코드뭉치를 흩뿌려 놓을 필요가 없으며 그럼에도 우리의 코드가 "잘 작동"할 것이라 예상할 수 있음을 의미합니다. 예를 들어, `+new Date()` 대신에 그냥 `Date.now(... | 4 |
Text | Text | add v3.17.0-beta.3 to changelog | 30a6b17646d04174acb55c81e0090ec051cf7ab1 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.17.0-beta.3 (February 3, 2020)
<add>
<add>- [#18703](https://github.com/emberjs/ember.js/pull/18703) [BUGFIX] Correctly links ArrayProxy tags to `arrangedContent`
<add>- [#18707](https://github.com/emberjs/ember.js/pull/18707) [BUGFIX] Fixes tag chainin... | 1 |
Text | Text | change worker.takeheapsnapshot to getheapsnapshot | 28fae8bff1949c5008b518fa24fbc5ff5c468267 | <ide><path>doc/api/worker_threads.md
<ide> added: v10.5.0
<ide> The `'online'` event is emitted when the worker thread has started executing
<ide> JavaScript code.
<ide>
<add>### `worker.getHeapSnapshot()`
<add><!-- YAML
<add>added: v13.9.0
<add>-->
<add>
<add>* Returns: {Promise} A promise for a Readable Stream conta... | 1 |
Go | Go | use spf13/cobra for docker rmi | 60e48bd6bd24c559ed92c7217cd7798c85cbb644 | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) Command(name string) func(...string) error {
<ide> "rename": cli.CmdRename,
<ide> "restart": cli.CmdRestart,
<ide> "rm": cli.CmdRm,
<del> "rmi": cli.CmdRmi,
<ide> "save": cli.CmdSav... | 6 |
PHP | PHP | add blowfishauthenticate adapter | d24bbcb2550aadadb6e7b2d333d559dc0bc84da5 | <ide><path>lib/Cake/Controller/Component/Auth/BaseAuthenticate.php
<ide> public function __construct(ComponentCollection $collection, $settings) {
<ide> /**
<ide> * Find a user record using the standard options.
<ide> *
<del> * @param string $username The username/identifier.
<del> * @param string $password The unhas... | 5 |
PHP | PHP | ensure both node() and aftersave() use ->name | e9011badb59ffbfba75d90dcce53935785c6c8aa | <ide><path>cake/libs/model/behaviors/acl.php
<ide> function afterSave(&$model, $created) {
<ide> }
<ide> $data = array(
<ide> 'parent_id' => isset($parent[0][$type]['id']) ? $parent[0][$type]['id'] : null,
<del> 'model' => $model->alias,
<add> 'model' => $model->name,
<ide> 'foreign_key' => $model->id
<id... | 1 |
PHP | PHP | handle missingviewexceptions better | 2ba117eeda6e0ad78916575911748add40a40d5d | <ide><path>lib/Cake/Error/ExceptionRenderer.php
<ide> protected function _outputMessage($template) {
<ide> $this->controller->afterFilter();
<ide> $this->controller->response->send();
<ide> } catch (MissingViewException $e) {
<del> try {
<del> $this->_outputMessage('error500');
<del> } catch (Exception $... | 1 |
Text | Text | move examples from the website to the wiki | 8cd460ce244cbeb707e02382f90fe5c114a96d46 | <ide><path>docs/docs/examples.md
<ide> permalink: examples.html
<ide> prev: complementary-tools.html
<ide> ---
<ide>
<del>### Production Apps
<del>
<del>* **[Instagram.com](http://instagram.com/)** is 100% built on React, both public site and internal tools.
<del>* **[Facebook.com](http://www.facebook.com/)**'s commen... | 1 |
Python | Python | check status code in test client or fail silently | 676b3a4c13986f5743b8e6f3fa4d7c6cc2a401a4 | <ide><path>flask/testsuite/basic.py
<ide> def index():
<ide> flask.flash(flask.Markup(u'<em>Testing</em>'), 'warning')
<ide> return ''
<ide>
<del> @app.route('/test')
<add> @app.route('/test/')
<ide> def test():
<ide> messages = flask.get_flashed_messages()
<id... | 1 |
Javascript | Javascript | minify ncc'd packages for download speed | bc9f2b6139b26d45203a4cd71b7b6a56588a37fd | <ide><path>packages/next/taskfile-ncc.js
<ide> module.exports = function (task) {
<ide> return ncc(join(__dirname, file.dir, file.base), {
<ide> // cannot bundle
<ide> externals: ['chokidar'],
<add> minify: true,
<ide> ...options
<ide> }).then(({ code, assets }) => {
<ide> Object.ke... | 1 |
Python | Python | add unit-test for recent comma-string updates | 4b1569e2208baf36a5ebd0de0877946bd86b2a38 | <ide><path>numpy/core/tests/test_numerictypes.py
<ide> class test_read_values_nested_multiple(read_values_nested, NumpyTestCase):
<ide> multiple_rows = True
<ide> _buffer = NbufferT
<ide>
<add>class test_empty_field(NumpyTestCase):
<add> def check_assign(self):
<add> a = numpy.arange(10, dtype=numpy.... | 1 |
Python | Python | use count_params function for non_trainable_count. | d476ecc7eb23509350b60c8cd917808ee4c61d29 | <ide><path>keras/utils/layer_utils.py
<ide> def print_layer_summary_with_connections(layer):
<ide> else:
<ide> trainable_count = count_params(model.trainable_weights)
<ide>
<del> non_trainable_count = int(
<del> np.sum([K.count_params(p) for p in set(model.non_trainable_weights)]))
<add> non_t... | 1 |
Python | Python | fix two typos in npyio.py | 3c1871459794dbbddb9596cfe98753893e2bef24 | <ide><path>numpy/lib/npyio.py
<ide> def load(file, mmap_mode=None):
<ide> with load('foo.npz') as data:
<ide> a = data['a']
<ide>
<del> The underlyling file descriptor is closed when exiting the 'with' block.
<add> The underlying file descriptor is closed when exiting the 'with' block.
<i... | 1 |
Text | Text | clarify env inclusion in bundles | 7ef653c7942faff7e08820a84bb7f1b5573b2e0d | <ide><path>docs/api-reference/next.config.js/environment-variables.md
<ide> description: Learn to add and access environment variables in your Next.js appli
<ide> </ul>
<ide> </details>
<ide>
<add>> <b>Note</b>: environment variables specified in this way will <b>always</b> be included in the JavaScript bundle, pref... | 1 |
Ruby | Ruby | remove fuse.pc from the whitelist | c92971f475272109153889b6ada0ed0603eb60d4 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_stray_pcs
<ide>
<ide> # Package-config files which are generally OK should be added to this list,
<ide> # with a short description of the software they come with.
<del> white_list = {
<del> "fuse.pc" => "MacFuse",
<del> }
<add> white_list = { }
<i... | 1 |
PHP | PHP | create a data_set helper function | 5f27c24bf153db3dbd33f1d925d3ca128885ffc2 | <ide><path>src/Illuminate/Support/helpers.php
<ide> function data_get($target, $key, $default = null)
<ide> }
<ide> }
<ide>
<add>if (! function_exists('data_set')) {
<add> /**
<add> * Set an item on an array or object using dot notation.
<add> *
<add> * @param mixed $target
<add> * @param str... | 2 |
PHP | PHP | fix coding standards | 4ffca8457e39c84730686ba0f9999614bff5f6e4 | <ide><path>lib/Cake/Test/Case/TestSuite/CakeTestSuiteTest.php
<ide> public function testAddTestDirectoryRecursiveWithHidden() {
<ide>
<ide> $Folder->delete();
<ide> }
<del>
<add>
<ide> /**
<ide> * testAddTestDirectoryRecursiveWithNonPhp
<ide> *
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php
<ide> ... | 3 |
Text | Text | update windows prerequisites | b9487449e151b02ff8cb1f3b4a0311e9eb0878e2 | <ide><path>BUILDING.md
<ide> Prerequisites:
<ide> * [Python 2.6 or 2.7](https://www.python.org/downloads/)
<ide> * One of:
<ide> * [Visual C++ Build Tools](http://landinghub.visualstudio.com/visual-cpp-build-tools)
<del> * [Visual Studio](https://www.visualstudio.com/) 2013 / 2015, all editions including the Communi... | 1 |
Javascript | Javascript | put modern strictmode behind a feature flag | abbbdf4cec992666885cc67344563795a333d4a2 | <ide><path>packages/react-reconciler/src/ReactFiberClassComponent.new.js
<ide> import type {UpdateQueue} from './ReactFiberClassUpdateQueue.new';
<ide> import type {Flags} from './ReactFiberFlags';
<ide>
<ide> import * as React from 'react';
<del>import {LayoutStatic, Update, Snapshot} from './ReactFiberFlags';
<add>i... | 21 |
Text | Text | add speakeasy link | db9d92041f53223274796ade51265d68e03bae1a | <ide><path>README.md
<ide>
<ide> Check out our [documentation on the docs tab](https://github.com/github/atom/docs).
<ide>
<del>## Building from source
<add>## Installing
<add>
<add>Download the latest Atom release from [speakeasy](https://speakeasy.githubapp.com/apps/27).
<add>
<add>It will automatically update when... | 1 |
Text | Text | fix minor docs typos | cccaa0090fbc8f737068270c65308d7f0b1d298c | <ide><path>docs/basics/UsageWithReact.md
<ide> In this todo app, we will only have a single “smart” component at the top of
<ide>
<ide> Remember how we [designed the shape of the root state object](Reducers.md)? It’s time we design the UI hierarchy to match it. This is not a Redux-specific task. [Thinking in React](ht... | 2 |
Go | Go | implement pos for set and add unit tests | 79bb8212e05cc9c14b8edda2b8a924fef63ea2e0 | <ide><path>networkdriver/portallocator/allocator.go
<ide> import (
<ide> "sync"
<ide> )
<ide>
<del>type networkSet map[iPNet]iPSet
<add>type networkSet map[iPNet]*iPSet
<ide>
<ide> type iPNet struct {
<ide> IP string
<ide> func RegisterNetwork(network *net.IPNet) error {
<ide> }
<ide> n := newIPNet(network)
<id... | 3 |
Javascript | Javascript | fix textdecoder test for small-icu builds | e43ecd5fec309ffb78f214f2856cd9a8a94bb75c | <ide><path>test/parallel/test-whatwg-encoding-custom-textdecoder.js
<ide> if (common.hasIntl) {
<ide> }
<ide>
<ide> if (common.hasIntl) {
<del> const decoder = new TextDecoder('Shift_JIS');
<del> const chunk = new Uint8Array([-1]);
<del> const str = decoder.decode(chunk);
<del> assert.strictEqual(str, '\ufffd');
<... | 1 |
Text | Text | enforce omitting `name` and `version` | 6aa9ef1955b16a5e2a9e624bfc7e61595f5cfc11 | <ide><path>contributing.md
<ide> When you add an example to the [examples](examples) directory, don’t forget to
<ide> - Replace `DIRECTORY_NAME` with the directory name you’re adding.
<ide> - Fill in `Example Name` and `Description`.
<ide> - Examples should be TypeScript first, if possible.
<del>- You don’t need to add... | 1 |
Go | Go | check nil volume on mount init | 7122b6643e4124db3d37b3b46f4741a97ba03611 | <ide><path>daemon/volumes.go
<ide> func (m *Mount) initialize() error {
<ide>
<ide> // Make sure we remove these old volumes we don't actually want now.
<ide> // Ignore any errors here since this is just cleanup, maybe someone volumes-from'd this volume
<del> v := m.container.daemon.volumes.Get(hostPath)
<del> v... | 1 |
PHP | PHP | fix bug in db profiling | ab17ea674a24245053a9384b05f0b7981d8b7719 | <ide><path>laravel/database/connection.php
<ide> protected function log($sql, $bindings, $time)
<ide> {
<ide> Event::fire('laravel: query', array($sql, $bindings, $time));
<ide>
<del> static::$queries = compact('sql', 'bindings', 'time');
<add> static::$queries[] = compact('sql', 'bindings', 'time');
<ide> }
<id... | 1 |
Ruby | Ruby | terminate the backend ourselves on pg 9.2+ | 3b645fd3ed60c682b255bf31e7df08cfc6a37321 | <ide><path>activerecord/test/cases/adapters/postgresql/connection_test.rb
<ide> def test_statement_key_is_logged
<ide> assert_operator plan.length, :>, 0
<ide> end
<ide>
<del> # Must have with_manual_interventions set to true for this
<del> # test to run.
<add> # Must have PostgreSQL >= 9.2, or with... | 1 |
Go | Go | add debug to iptables | 00f1398f7a8543e2448723635d93ea6ddf1eaadb | <ide><path>iptables/iptables.go
<ide> import (
<ide> "errors"
<ide> "fmt"
<ide> "net"
<add> "os"
<ide> "os/exec"
<ide> "strconv"
<ide> "strings"
<ide> func Raw(args ...string) ([]byte, error) {
<ide> if err != nil {
<ide> return nil, ErrIptablesNotFound
<ide> }
<add> if os.Getenv("DEBUG") != "" {
<add> fmt.P... | 1 |
Text | Text | add stackedarea chart type to community extensions | e69aa04918f0603555ee1b19a82516047a4ac6fc | <ide><path>docs/06-Advanced.md
<ide> new Chart(ctx).LineAlt(data);
<ide> ### Community extensions
<ide>
<ide> - <a href="https://github.com/Regaddi/Chart.StackedBar.js" target="_blank">Stacked Bar Chart</a> by <a href="https://twitter.com/Regaddi" target="_blank">@Regaddi</a>
<add>- <a href="https://github.com/tannerl... | 1 |
Text | Text | add css class to style an element details | 45b24b1de12848fdd236bab4ef320386fd0da2aa | <ide><path>guide/english/certifications/responsive-web-design/basic-css/use-a-css-class-to-style-an-element/index.md
<ide> title: Use a CSS Class to Style an Element
<ide> ---
<ide> ## Use a CSS Class to Style an Element
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/c... | 1 |
Python | Python | fix import issue | 0588cb85b3c5037365432aab213d82b79a4bd25b | <ide><path>numpy/lib/tests/test_io.py
<ide> import gzip
<ide> import os
<ide>
<del>from tempfile import mkstemp
<add>from tempfile import mkstemp, NamedTemporaryFile
<ide> import sys, time
<ide> from datetime import datetime
<ide> | 1 |
Javascript | Javascript | improve specs for `update` class | 19d30c7dc955b557927571fbf60038fc446e4a6d | <ide><path>spec/update-spec.js
<ide> 'use babel'
<ide>
<ide> import Update from '../src/update'
<del>import remote from 'remote'
<del>import ipc from 'ipc'
<add>import {remote} from 'electron'
<add>const electronAutoUpdater = remote.require('electron').autoUpdater
<ide>
<del>fdescribe('Update', () => {
<add>describe(... | 1 |
Javascript | Javascript | use rn fork in default branch of feature flags | a437f3ff302dc92347d812d518c9a9659d9aa546 | <ide><path>scripts/rollup/forks.js
<ide> const forks = Object.freeze({
<ide> return 'shared/forks/ReactFeatureFlags.testing.www.js';
<ide> }
<ide> return 'shared/forks/ReactFeatureFlags.testing.js';
<del> case 'react':
<add> default:
<ide> switch (bundleType) {
<ide> ... | 1 |
Javascript | Javascript | make test for function as param more explicit | f6c3b357451a2125550811946084fc25ae4eb0ce | <ide><path>src/ngResource/resource.js
<ide> function shallowClearAndCopy(src, dst) {
<ide> * @param {Object=} paramDefaults Default values for `url` parameters. These can be overridden in
<ide> * `actions` methods. If a parameter value is a function, it will be called every time
<ide> * a param value needs to be... | 2 |
PHP | PHP | add file headers | 00724143b8d060b7f79f1377ff03ca132a38dfb5 | <ide><path>Cake/Test/TestCase/View/StringTemplateTest.php
<ide> <?php
<del>
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and licen... | 2 |
PHP | PHP | fix command output for seeder | 6f522cbc05aaf23e242800bef5412d9c5a12ea47 | <ide><path>src/Illuminate/Database/Seeder.php
<ide> public function call($class)
<ide> {
<ide> $this->resolve($class)->run();
<ide>
<del> $this->command->getOutput()->writeln("<info>Seeded:</info> $class");
<add> if ( ! is_null($this->command))
<add> {
<add> $this->command->getOutput()->writeln("<info>Seeded:<... | 2 |
Javascript | Javascript | log jsbundlerequiretime and jsapprequiretime | 9fe36beec94f73dcd65aba2ea63dfed800a74663 | <ide><path>Libraries/Utilities/PerformanceLogger.js
<ide> var PerformanceLogger = {
<ide> timespans[key].endTime - timespans[key].startTime;
<ide> },
<ide>
<del> clearTimespans() {
<add> clear() {
<ide> timespans = {};
<ide> extras = {};
<ide> },
<ide>
<add> clearExceptTimespans(keys) {
<add> ... | 1 |
Ruby | Ruby | handle implicit rendering correctly | 8301969df9fd76bcde140f310300349b609e2b10 | <ide><path>actionpack/lib/action_dispatch/http/response.rb
<ide> def charset=(charset)
<ide> if false == charset
<ide> set_header CONTENT_TYPE, header_info.mime_type
<ide> else
<del> content_type = header_info.mime_type || Mime::TEXT.to_s
<add> content_type = header_info.mime_type
<ide... | 1 |
Ruby | Ruby | remove dead test code for unsupported adapters | 7ff9b334e1a3c194fb5354560d6f1c3282adcd1f | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def drop_table(table_name, **options)
<ide> # but the maximum supported <tt>:precision</tt> is 16. No default.
<ide> # * Oracle: <tt>:precision</tt> [1..38], <tt>:scale</tt> [-84..127].
<ide> # Defaul... | 8 |
Javascript | Javascript | move relay sources to unsigned directory | 80e1ca870be5f70f923a9d3b1700d9ec45107966 | <ide><path>packager/blacklist.js
<ide> var sharedBlacklist = [
<ide> /website\/node_modules\/.*/,
<ide>
<ide> // TODO(jkassens, #9876132): Remove this rule when it's no longer needed.
<del> 'downstream/relay/tools/relayUnstableBatchedUpdates.js',
<add> 'Libraries/Relay/relay/tools/relayUnstableBatchedUpdates.js'... | 1 |
PHP | PHP | add secure flag option for csrfcomponent | b516145f8093665737f7327f1e4efde49622c0c6 | <ide><path>Cake/Controller/Component/CsrfComponent.php
<ide> class CsrfComponent extends Component {
<ide> *
<ide> * - cookieName = The name of the cookie to send.
<ide> * - expiry = How long the CSRF token should last. Defaults to browser session.
<add> * - secure = Whether or not the cookie will be set with the... | 2 |
PHP | PHP | ( | 95cc3f238f20c5dbc6d6ff8c6088b3b7bfc82452 | <ide><path>tests/Redis/PhpRedisConnectionTest.php
<ide> class RedisStub
<ide> }
<ide>
<ide> class RedisClusterStub
<del>{
<add>{
<ide> } | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.