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 |
|---|---|---|---|---|---|
Go | Go | add test for volume ownership and perms | c024c9bd1ec13aade038f87266a03a1d1bc13441 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func TestBuildADDLocalAndRemoteFilesWithCache(t *testing.T) {
<ide> logDone("build - add local and remote file with cache")
<ide> }
<ide>
<add>// TODO: TestCaching
<ide> func TestBuildADDLocalAndRemoteFilesWithoutCache(t *testing.T) {
<ide> name := "testbuild... | 1 |
Text | Text | remove links for all docs | 24f46ea3f3e5006ca38735306753a846a0823174 | <ide><path>README.md
<ide> Choose the right framework for every part of a model's lifetime
<ide> | [Quick tour: Share your models ](#Quick-tour-of-model-sharing) | Upload and share your fine-tuned models with the community |
<ide> | [Migrating from pytorch-transformers to transformers](#Migrating-from-pytorch-transform... | 1 |
Text | Text | translate tutorial to korean | ac466b71d8afff796490d427abb500eda8fa9e1e | <ide><path>docs/docs/tutorial.ko-KR.md
<add>---
<add>id: tutorial-ko-KR
<add>title: 튜토리얼
<add>prev: getting-started.ko-KR.html
<add>next: thinking-in-react.ko-KR.html
<add>---
<add>
<add>블로그에 붙일만한 간단하지만 실용적인 댓글상자를 만들어 볼 것입니다. Disqus, LiveFyre, Facebook에서 제공하는 것 같은 실시간 댓글의 간단한 버전이죠.
<add>
<add>이런 기능을 넣겠습니다:
<add>
<add>*... | 1 |
Python | Python | stream gold during spacy train | b59765ca9f6111a6b268ec3d1e36418366599b50 | <ide><path>spacy/cli/train.py
<ide> def train(lang, output_dir, train_data, dev_data, n_iter=30, n_sents=0,
<ide>
<ide> print("Itn.\tP.Loss\tN.Loss\tUAS\tNER P.\tNER R.\tNER F.\tTag %\tToken %")
<ide> try:
<del> train_docs = corpus.train_docs(nlp, projectivize=True, noise_level=0.0,
<del> ... | 1 |
Ruby | Ruby | preserve timestamp for cp | 8b61d7899b6798f70509a8d3b2052ddcae0d903f | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def stage
<ide> when :p7zip
<ide> safe_system "7zr", "x", cached_location
<ide> else
<del> cp cached_location, basename_without_params
<add> cp cached_location, basename_without_params, :preserve => true
<ide> end
<ide> end
<ide>
<ide... | 1 |
Go | Go | optimize .dockerignore when there are exclusions | 842b8d8784b132279003580eedd0e9c12b885815 | <ide><path>pkg/archive/archive.go
<ide> func TarWithOptions(srcPath string, options *TarOptions) (io.ReadCloser, error)
<ide> }
<ide>
<ide> if skip {
<del> if !exceptions && f.IsDir() {
<add> // If we want to skip this file and its a directory
<add> // then we should first check to see if there's a... | 1 |
Javascript | Javascript | reduce internal usage of public require of util | de3b164f4fd069ecfcf496609466fdc85838c08f | <ide><path>lib/assert.js
<ide> const { codes: {
<ide> } } = require('internal/errors');
<ide> const AssertionError = require('internal/assert/assertion_error');
<ide> const { openSync, closeSync, readSync } = require('fs');
<del>const { inspect, types: { isPromise, isRegExp } } = require('util');
<add>const { inspect }... | 1 |
Ruby | Ruby | remove unecessary method call | 0edc6c8f64eb8f59c211a775a0453ddd8a1d994b | <ide><path>actionview/lib/action_view/helpers/translation_helper.rb
<ide> module TranslationHelper
<ide> # when you call translate in a template and translators know which keys
<ide> # they can provide HTML values for.
<ide> #
<del> # Finally, to access the translated text along with the fully re... | 1 |
Ruby | Ruby | remove unneeded python27dependency | 0fd32118c7107cfc7c895b9a1aa9a95ef2986423 | <ide><path>Library/Homebrew/requirements.rb
<ide> class GitDependency < Requirement
<ide> default_formula 'git'
<ide> satisfy { which('git') }
<ide> end
<del>
<del>class Python27Dependency < Requirement
<del> fatal true
<del> default_formula 'python'
<del> satisfy do
<del> # Note that python -V outputs to std... | 1 |
PHP | PHP | apply fixes from styleci | 41305c1dd152824c3b48f7efae5f65a5a768ef2a | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> protected function addTimestampsToUpsertValues(array $values)
<ide>
<ide> $columns = array_filter([
<ide> $this->model->getCreatedAtColumn(),
<del> $this->model->getUpdatedAtColumn()
<add> $this->model->getUpdatedAt... | 1 |
Ruby | Ruby | move check env.runtime_cpu_detection to utils/ast | f2fe1b59a19c4a80e6c0ff14d4f81720e6d1c1b9 | <ide><path>Library/Homebrew/formula_cellar_checks.rb
<ide> def check_cpuid_instruction(formula)
<ide>
<ide> dot_brew_formula = formula.prefix/".brew/#{formula.name}.rb"
<ide> return unless dot_brew_formula.exist?
<del> # TODO: add methods to `utils/ast` to allow checking for method use
<del> return unles... | 2 |
Python | Python | remove unused test file | 33ac2fd959d8dc470ea70cdf1b4d3c12ace80f0a | <ide><path>rest_framework/tests/mixins.py
<del># """Tests for the mixin module"""
<del># from django.test import TestCase
<del># from rest_framework import status
<del># from django.test.client import RequestFactory
<del># from django.contrib.auth.models import Group, User
<del># from rest_framework.mixins import Creat... | 1 |
PHP | PHP | support special float values on postgresql | ffa5803a9dd72ca431cf4711cf636f3ba20f57db | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
<ide> protected function castAttribute($key, $value)
<ide> case 'real':
<ide> case 'float':
<ide> case 'double':
<del> return (float) $value;
<add> return $this->fromFloat($value);
<i... | 2 |
Text | Text | update the roadmap | de86d33b4a39d095e29b4857bc768363a70b3adc | <ide><path>ROADMAP.md
<del>Docker Engine Roadmap
<del>=====================
<add>Moby Project Roadmap
<add>====================
<ide>
<ide> ### How should I use this document?
<ide>
<ide> This document provides description of items that the project decided to prioritize. This should
<del>serve as a reference point fo... | 1 |
Java | Java | combine catches block with same body | 7bce04c06ccfcbcec1c4f7a3dbc75cea6621505a | <ide><path>spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java
<ide> else if (value instanceof Map) {
<ide> throw new InvalidPropertyException(getRootClass(), this.nestedPath + propertyName,
<ide> "Index of out of bounds in property path '" + propertyName + "'", ex);
<ide>... | 10 |
Javascript | Javascript | remove paddingtop in animatedgratuitousapp | 62f53ffaa7f5ccdebe133ce0d212ee80fc85c37c | <ide><path>Examples/UIExplorer/AnimatedGratuitousApp/AnExApp.js
<ide> function moveToClosest({activeKey, keys, restLayouts}, position) {
<ide> var styles = StyleSheet.create({
<ide> container: {
<ide> flex: 1,
<del> paddingTop: 64, // push content below nav bar
<ide> },
<ide> grid: {
<ide> flex: 1, | 1 |
PHP | PHP | allow easy extension of user providers | 4d09a3c46aac7e765710d51dfea3e800ea978a13 | <ide><path>src/Illuminate/Auth/AuthManager.php
<ide> public function viaRequest($name, callable $callback)
<ide> /**
<ide> * Register a custom driver creator Closure.
<ide> *
<del> * @param string $driver
<add> * @param string $driver
<ide> * @param \Closure $callback
<ide> * @re... | 2 |
Python | Python | make double backticks for parameters in docstring | 4e70f09a4f2679a973f36a666ef4249f465af2d4 | <ide><path>numpy/testing/_private/utils.py
<ide> def assert_allclose(actual, desired, rtol=1e-7, atol=0, equal_nan=True,
<ide>
<ide> Notes
<ide> -----
<del> When one of `actual` and `desired` is a scalar and the other is array_like,
<add> When one of ``actual`` and ``desired`` is a scalar and the other i... | 1 |
Javascript | Javascript | replace checkuint() with validateint32() | d669251f67b0d6e70853b18f7d9358fc98cb5ceb | <ide><path>lib/internal/crypto/pbkdf2.js
<ide>
<ide> const { AsyncWrap, Providers } = process.binding('async_wrap');
<ide> const { Buffer } = require('buffer');
<del>const { pbkdf2: _pbkdf2 } = process.binding('crypto');
<add>const { INT_MAX, pbkdf2: _pbkdf2 } = process.binding('crypto');
<add>const { validateInt32 } ... | 5 |
Text | Text | update instructions for running on device | c49fc1ee6c51ac690733ea3f7e673f55e3579184 | <ide><path>docs/RunningOnDeviceIOS.md
<ide> You can iterate quickly on device using development server. To do that, your lap
<ide>
<ide> ## Using offline bundle
<ide>
<del>You can also pack all the JavaScript code within the app itself. This way you can test it without development server running and submit the app to... | 1 |
Javascript | Javascript | reflow the radar before updating to update scale | ea9d144c71819cbb3499d0640102689e10e25a02 | <ide><path>src/Chart.Radar.js
<ide> this.eachPoints(function(point){
<ide> point.save();
<ide> });
<add> this.reflow();
<ide> this.render();
<ide> },
<ide> reflow: function(){ | 1 |
Ruby | Ruby | improve error message when passed unsupported type | ac5dfadb485ff1e06a73d69936de14464586af2c | <ide><path>lib/arel/visitors/to_sql.rb
<ide> def quoted o, a
<ide> end
<ide>
<ide> def unsupported o, collector
<del> raise "unsupported: #{o.class.name}"
<add> raise "unsupported argument type: #{o.class.name}. Construct an Arel node instead."
<ide> end
<ide>
<ide> alias :visit_... | 1 |
Javascript | Javascript | remove @providesmodule in www bundles | da4e85567b411a180c2cfa1ef6573cf3cc9257f1 | <ide><path>scripts/rollup/wrappers.js
<ide> ${source}`;
<ide> ${license}
<ide> *
<ide> * @noflow
<del> * @providesModule ${globalName}-dev
<ide> * @preventMunge
<ide> */
<ide>
<ide> ${source}
<ide> ${license}
<ide> *
<ide> * @noflow
<del> * @providesModule ${globalName}-prod
<ide> * @preventMunge
<ide> */
<ide... | 1 |
Ruby | Ruby | fix whitespace handling | 6a3dc198f5501d4c98d661fd17fd2231715e8d16 | <ide><path>Library/Contributions/cmd/brew-pull.rb
<ide> def tap arg
<ide> patch_args << '--signoff' unless ARGV.include? '--clean'
<ide> # Normally we don't want whitespace errors, but squashing them can break
<ide> # patches so an option is provided to skip this step.
<del> patch_args << '--whitespace=fix' unle... | 1 |
Javascript | Javascript | expose setsurfaceprops api in js | b5e2e1d52d6fc7550bb19a5e348923b40941be46 | <ide><path>Libraries/ReactNative/AppRegistry.js
<ide> const AppRegistry = {
<ide> runnables[appKey].run(appParameters);
<ide> },
<ide>
<add> /**
<add> * Update initial props for a surface that's already rendered
<add> */
<add> setSurfaceProps(appKey: string, appParameters: any): void {
<add> if (appKey ... | 1 |
Go | Go | remove layerstore indexing by os (used for lcow) | dc7cbb9b337c84bdd76e849ae361dffb191dd936 | <ide><path>daemon/container.go
<ide> func (daemon *Daemon) newContainer(name string, operatingSystem string, config *
<ide> base.ImageID = imgID
<ide> base.NetworkSettings = &network.Settings{IsAnonymousEndpoint: noExplicitName}
<ide> base.Name = name
<del> base.Driver = daemon.imageService.GraphDriverForOS(operatin... | 27 |
Javascript | Javascript | fix all errors and warnings on homepage | e379f8ec03c9b350937ef78331c0e1a0f5364838 | <ide><path>docs/_js/examples/timer.js
<ide> var Timer = React.createClass({\n\
<ide> this.setState({secondsElapsed: this.state.secondsElapsed + 1});\n\
<ide> },\n\
<ide> componentDidMount: function() {\n\
<del> setInterval(this.tick, 1000);\n\
<add> this.interval = setInterval(this.tick, 1000);\n\
<add> ... | 3 |
Mixed | Javascript | provide pathtofileurl and fileurltopath | eef072fa083f05f84fa6ca1908472eb228095a38 | <ide><path>doc/api/url.md
<ide> console.log(url.domainToUnicode('xn--iñvalid.com'));
<ide> // Prints an empty string
<ide> ```
<ide>
<add>### url.fileURLToPath(url)
<add>
<add>* `url` {URL | string} The file URL string or URL object to convert to a path.
<add>* Returns: {string} The fully-resolved platform-specific No... | 13 |
Python | Python | fix crash in repr of void subclasses | 0ec2a4f581c32979862468b727cc96df4910d5ed | <ide><path>numpy/core/_dtype.py
<ide> def _scalar_str(dtype, short):
<ide> else:
<ide> return "'%sU%d'" % (byteorder, dtype.itemsize / 4)
<ide>
<del> elif dtype.type == np.void:
<add> # unlike the other types, subclasses of void are preserved - but
<add> # historically the repr does not ac... | 2 |
Ruby | Ruby | use content_tag in button_to helper | f7714eca47c5c57acb08ccbfb35ff224ac4d62b3 | <ide><path>actionpack/lib/action_view/helpers/url_helper.rb
<ide> def button_to(name, options = {}, html_options = {})
<ide> remote = html_options.delete('remote')
<ide>
<ide> method = html_options.delete('method').to_s
<del> method_tag = %w{patch put delete}.include?(method) ? method_tag(me... | 1 |
Text | Text | move mesteery to collaborators | eda54bae16007a391283a8ee0d52bcd6ee311b5c | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Joyee Cheung** <<joyeec9h3@gmail.com>> (she/her)
<ide> * [mcollina](https://github.com/mcollina) -
<ide> **Matteo Collina** <<matteo.collina@gmail.com>> (he/him)
<del>* [Mesteery](https://github.com/Mesteery) -
<del>... | 1 |
Text | Text | add info on project's usage of coverity | 9ebdba49c72bbe2c100a7a99970767e6e929a6f6 | <ide><path>doc/guides/offboarding.md
<ide> emeritus or leaves the project.
<ide> a team listing. For example, if someone is removed from @nodejs/build,
<ide> they should also be removed from the Build WG README.md file in the
<ide> <https://github.com/nodejs/build> repository.
<add>* Open an issue in the [b... | 3 |
Python | Python | add the all request, with warnings | 2726522b1ef77362026426e56310bc7b362218b2 | <ide><path>glances/outputs/glances_stdout_apidoc.py
<ide> def update(self,
<ide> print('.. code-block:: json')
<ide> print('')
<ide> print(' # curl {}/all'.format(API_URL))
<del> print(indent_stat(json.loads(stat.getAllViewsAsDict())))
<add> print(' Return a very big dictionn... | 1 |
Javascript | Javascript | expose current index in collectionviews | d4ff579ce3ec69673f3b003ce319959a3a3eab77 | <ide><path>packages/sproutcore-views/lib/views/collection_view.js
<ide> SC.CollectionView = SC.View.extend(
<ide> for (idx = 0; idx < len; idx++) {
<ide> item = addedObjects.objectAt(idx);
<ide> view = this.createChildView(itemViewClass, {
<del> content: item
<add> content: item,... | 1 |
Python | Python | airflow info fixed for python 3.8+ | 24a83706646612f17f776a1c76a35c373c5e9990 | <ide><path>airflow/cli/commands/info_command.py
<ide>
<ide> import requests
<ide> import tenacity
<del>from typing_extensions import Protocol
<ide>
<ide> from airflow import configuration
<add>from airflow.typing_compat import Protocol
<ide> from airflow.version import version as airflow_version
<ide>
<ide> log = lo... | 1 |
Text | Text | update imperative routing docs to have better a11y | 7f998950767670321d5ec12522275e86a0ae0c4e | <ide><path>docs/routing/imperatively.md
<ide> The following example shows how to do basic page navigations with [`useRouter`](
<ide> ```jsx
<ide> import { useRouter } from 'next/router'
<ide>
<del>function ReadMore() {
<add>export default function ReadMore() {
<ide> const router = useRouter()
<ide>
<ide> return (... | 1 |
Javascript | Javascript | add missing typeof | b7bc2cc41793159279a8ada11fc5b56aa6c323cc | <ide><path>lib/EnvironmentPlugin.js
<ide> EnvironmentPlugin.prototype.apply = function(compiler) {
<ide> });
<ide> }
<ide>
<del> defs["process.env." + key] = value === 'undefined' ? 'undefined' : JSON.stringify(value);
<add> defs["process.env." + key] = typeof value === 'undefined' ? 'undefined' : JSON.stringif... | 1 |
Javascript | Javascript | introduce universal switch | 36cbe74f990369c793966b052bee4af3f2f4e401 | <ide><path>Libraries/Components/Switch/Switch.js
<add>/**
<add> * Copyright 2004-present Facebook. All Rights Reserved.
<add> *
<add> * @providesModule Switch
<add> * @flow
<add> */
<add>'use strict';
<add>
<add>var Platform = require('Platform');
<add>var NativeMethodsMixin = require('NativeMethodsMixin');
<add>var Re... | 2 |
Mixed | Ruby | add support for unlogged postgresql tables | bfc4d8be0a61b795ee122c5f426e0873938d0e41 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_creation.rb
<ide> def visit_AddColumnDefinition(o)
<ide> end
<ide>
<ide> def visit_TableDefinition(o)
<del> create_sql = +"CREATE#{' TEMPORARY' if o.temporary} TABLE "
<add> create_sql = +"CREATE#{ta... | 6 |
PHP | PHP | apply fixes from styleci | 5b4b02e9d9494b91fece6b6cc29bb50edca5ee2a | <ide><path>src/Illuminate/Foundation/Auth/ThrottlesLogins.php
<ide> protected function limiter()
<ide> */
<ide> public function maxAttempts()
<ide> {
<del> return property_exists($this,'maxAttempts') ? $this->maxAttempts : 5;
<add> return property_exists($this, 'maxAttempts') ? $this->maxAtte... | 1 |
Ruby | Ruby | simplify fossil checkouts | 7e844cad1c23e0785fca22345e187c3a7c21b270 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def bzrpath
<ide> class FossilDownloadStrategy < VCSDownloadStrategy
<ide> def stage
<ide> super
<del> safe_system fossilpath, "open", @clone
<del> safe_system fossilpath, "checkout", @ref if @ref_type && @ref
<add> args = [fossilpath, "open", @clone... | 1 |
Python | Python | remove circular imports in layoutlm/__init__.py | ad7196524695f3bb3e178d57d280bd18fa175ca6 | <ide><path>src/transformers/models/layoutlm/__init__.py
<ide> is_tokenizers_available,
<ide> is_torch_available,
<ide> )
<del>from .configuration_layoutlm import LAYOUTLM_PRETRAINED_CONFIG_ARCHIVE_MAP, LayoutLMConfig
<del>from .tokenization_layoutlm import LayoutLMTokenizer
<ide>
<ide>
<ide> _import_structure... | 1 |
Text | Text | add missing semicolon | 72f3a7e4a7e07035f428bf2f8ce8ad31aa85f297 | <ide><path>docs/api-guide/settings.md
<ide> Default:
<ide>
<ide> (
<ide> 'rest_framework.renderers.JSONRenderer',
<del> 'rest_framework.renderers.BrowsableAPIRenderer'
<add> 'rest_framework.renderers.BrowsableAPIRenderer',
<ide> 'rest_framework.renderers.TemplateHTMLRenderer'
<ide> ... | 1 |
Javascript | Javascript | use parameter setup | 5af00a5efc88f431deed5d4dcba292c973d336fb | <ide><path>examples/js/geometries/TeapotGeometry.js
<ide> THREE.TeapotGeometry = function ( size, segments, bottom, lid, body, fitLid, bli
<ide>
<ide> this.type = 'TeapotGeometry';
<ide>
<del> this.size = size || 50;
<add> this.parameters = {
<add> size: size,
<add> segments: segments,
<add> bottom: bottom,
<add>... | 1 |
Python | Python | update pavement.py to 1.10.0 | 767f044ac650051614c83d008514277e7a44633e | <ide><path>pavement.py
<ide> #-----------------------------------
<ide>
<ide> # Source of the release notes
<del>RELEASE_NOTES = 'doc/release/1.9.0-notes.rst'
<add>RELEASE_NOTES = 'doc/release/1.10.0-notes.rst'
<ide>
<ide> # Start/end of the log (from git)
<del>LOG_START = 'v1.8.0b1'
<add>LOG_START = 'v1.9.0b1'
<ide>... | 1 |
Ruby | Ruby | fix document formatting on actionmailbox [ci skip] | 620ba4c12a6a075607c260fe30c95e51b51b878f | <ide><path>actionmailbox/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb
<ide> module ActionMailbox
<ide> # config.action_mailbox.ingress = :mailgun
<ide> #
<ide> # 3. {Configure Mailgun}[https://documentation.mailgun.com/en/latest/user_manual.html#receiving-forwarding-and-sto... | 11 |
Ruby | Ruby | initialize @compiled_at if it is not | eea61a030e96625c53c57b63f0a9449850cf78df | <ide><path>actionpack/lib/action_dispatch/middleware/static.rb
<ide> def initialize(at, root)
<ide> @compiled_at = Regexp.compile(/^#{Regexp.escape(at)}/) unless @at.blank?
<ide> @compiled_root = Regexp.compile(/^#{Regexp.escape(root)}/)
<ide> @file_server = ::Rack::File.new(root)
<add> @compiled... | 1 |
Ruby | Ruby | set the status before of setting the response body | a62001c5429723a78c7f382e34f157af1a668d68 | <ide><path>actionpack/lib/action_controller/metal/http_authentication.rb
<ide> def encode_credentials(user_name, password)
<ide>
<ide> def authentication_request(controller, realm)
<ide> controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.gsub(/"/, "")}")
<del> controller.response_body... | 1 |
Ruby | Ruby | fix nodoc in metal/live | 829ec373dde05d834a142fc1f057195da85094b9 | <ide><path>actionpack/lib/action_controller/metal/live.rb
<ide> require 'action_dispatch/http/response'
<ide> require 'delegate'
<ide>
<del>module ActionController # :nodoc:
<add>module ActionController
<ide> # Mix this module in to your controller, and all actions in that controller
<ide> # will be able to stream... | 1 |
PHP | PHP | remove un-necessary use statement | dbcc0c104aa46a8df553d97c4fe50c0a2164bc94 | <ide><path>lib/Cake/Log/LogTrait.php
<ide> */
<ide> namespace Cake\Log;
<ide>
<del>use Cake\Log\Log;
<del>
<ide> /**
<ide> * A trait providing an object short-cut method
<ide> * to logging. | 1 |
Mixed | Javascript | fix default params for fs.write(sync) | 0b5191f15d0f311c804d542b67e2e922d98834f8 | <ide><path>doc/api/fs.md
<ide> _Note: [`fs.watch()`][] is more efficient than `fs.watchFile` and
<ide> `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and
<ide> `fs.unwatchFile` when possible._
<ide>
<del>## fs.write(fd, buffer, offset, length[, position], callback)
<add>## fs.write(fd, buffer[, ... | 4 |
Javascript | Javascript | fix jslint warnings and refactor small issues | 89a6c4fc88f8624137ae4d0ed00e0a6a59cce8ea | <ide><path>src/crypto.js
<ide> var ARCFourCipher = (function arcFourCipher() {
<ide> var a = this.a, b = this.b, s = this.s;
<ide> var output = new Uint8Array(n);
<ide> for (i = 0; i < n; ++i) {
<del> var tmp;
<ide> a = (a + 1) & 0xFF;
<ide> tmp = s[a];
<ide> b = (b + tm... | 1 |
Python | Python | replace pystringobject by pybytesobject | 46fd645bc147bf1dc7a91d6774ff87330a051917 | <ide><path>numpy/f2py/cfuncs.py
<ide> goto capi_fail;\\
<ide> if (PyBytes_Check(rv_cb_str)) {\\
<ide> str[len-1]='\\0';\\
<del> STRINGCOPYN((str),PyString_AS_STRING((PyStringObject*)rv_cb_str),(len));\\
<add> STRINGCOPYN((str),PyString_AS_STRING((PyBytesObject*)rv_c... | 1 |
PHP | PHP | add tests for applying an order with magic finder | 3bb1ad3f0b1f640faea40f3519db7ee7892804ff | <ide><path>Cake/Test/TestCase/ORM/TableTest.php
<ide>
<ide> use Cake\Core\Configure;
<ide> use Cake\Database\ConnectionManager;
<add>use Cake\Database\Expression\OrderByExpression;
<ide> use Cake\Database\Expression\QueryExpression;
<ide> use Cake\ORM\Table;
<ide> use Cake\ORM\TableRegistry;
<ide> public function test... | 1 |
Text | Text | add the link to "python tricks" to index.md | 651297810b61810be778f67559db3202fa9a4381 | <ide><path>guide/english/book-recommendations/index.md
<ide> title: Books to Read for Programmers
<ide> - [Amazon Smile](https://smile.amazon.com/Core-Python-Applications-Programming-3rd/dp/0132678209)
<ide> - ISBN-13: 978-0132678209
<ide>
<add>*Python Tricks: A Buffet of Awesome Python Features by Dan Bader*
<add>- [... | 1 |
Ruby | Ruby | use instance_eval instead of proc#bind | 3fbc042b580f518d060671d0dd86ec2a4d14a42b | <ide><path>actionmailer/lib/action_mailer/base.rb
<ide> require 'mail'
<ide> require 'action_mailer/collector'
<ide> require 'active_support/core_ext/object/blank'
<del>require 'active_support/core_ext/proc'
<ide> require 'active_support/core_ext/string/inflections'
<ide> require 'active_support/core_ext/hash/except'
<... | 1 |
Javascript | Javascript | fix unused basedir | cf35b7121ffc72fbf6cd4a347aca6cdfec467248 | <ide><path>examples/js/loaders/XLoader.js
<ide> THREE.XLoader.prototype = {
<ide> parseASCII: function () {
<ide>
<ide> var scope = this;
<del> var baseDir = "";
<ide> if ( scope.url.lastIndexOf( "/" ) > 0 ) {
<ide>
<ide> scope.baseDir = scope.url.substr( 0, scope.url.lastIndexOf( "/" ) + 1 ); | 1 |
Text | Text | add xray updates | 720d4219037895015108299563d31882639bfc11 | <ide><path>docs/focus/2018-03-19.md
<ide> - Published first draft of RFC for streamlining collaboration set-up, including the ability to give guests a URL that they can use to join your portal, and a "buddy list" for more quickly collaborating with coworkers and friends ([atom/teletype#344](https://github.com/atom/te... | 1 |
Javascript | Javascript | add spec for timing | db0ec663413a44a569d18d3798a316d6ee1bd2e2 | <ide><path>Libraries/Core/Timers/JSTimers.js
<ide> const Platform = require('../../Utilities/Platform');
<ide> const Systrace = require('../../Performance/Systrace');
<ide>
<ide> const invariant = require('invariant');
<del>const {Timing} = require('../../BatchedBridge/NativeModules');
<ide> const BatchedBridge = requ... | 2 |
Python | Python | improve signature for core operaotrs | 3a1dd0b1816b2222ebddc21b0b1161f5029c1d65 | <ide><path>airflow/operators/bash.py
<ide> class BashOperator(BaseOperator):
<ide> @apply_defaults
<ide> def __init__(
<ide> self,
<add> *,
<ide> bash_command: str,
<ide> env: Optional[Dict[str, str]] = None,
<ide> output_encoding: str = 'utf-8',
<del> ... | 19 |
PHP | PHP | escape inline sections | 98555a47be612ab464e8fee12f79e439c6042d32 | <ide><path>src/Illuminate/View/Concerns/ManagesLayouts.php
<ide> public function startSection($section, $content = null)
<ide> $this->sectionStack[] = $section;
<ide> }
<ide> } else {
<del> $this->extendSection($section, $content);
<add> $this->extendSection($se... | 1 |
Go | Go | move term creation into driver | 592c2f6f9a472bda227a03c819f73b8edc7c3320 | <ide><path>container.go
<ide> func (container *Container) Start() (err error) {
<ide> }
<ide>
<ide> populateCommand(container)
<del> if err := execdriver.NewTerminal(container.command); err != nil {
<del> return err
<del> }
<ide>
<ide> // Setup logging of stdout and stderr to disk
<ide> if err := container.runti... | 3 |
Text | Text | move @vsemozhetbyt to collaborator emeriti | d088587b7b48792f59e2d0df91e224e7da860f2b | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Vladimir de Turckheim** <vlad2t@hotmail.com> (he/him)
<ide> * [vkurchatkin](https://github.com/vkurchatkin) -
<ide> **Vladimir Kurchatkin** <vladimir.kurchatkin@gmail.com>
<del>* [vsemozhetbyt](https://github... | 1 |
Python | Python | add default args and type hints for problem 7 | 719c5562d9d3788a008fe7ec5ef9fcf605564ff1 | <ide><path>project_euler/problem_07/sol1.py
<ide> """
<add>Problem 7: https://projecteuler.net/problem=7
<add>
<ide> By listing the first six prime numbers:
<ide>
<ide> 2, 3, 5, 7, 11, and 13
<ide> from math import sqrt
<ide>
<ide>
<del>def is_prime(n):
<del> if n == 2:
<add>def is_prime(num: int) -> bool:
<a... | 3 |
PHP | PHP | allow configuration of storage path | f219ab878c4781ffcd1915b2e276a302f8ec935b | <ide><path>src/Illuminate/Foundation/Application.php
<ide> class Application extends Container implements ApplicationContract, HttpKernelIn
<ide> */
<ide> protected $deferredServices = array();
<ide>
<add> /**
<add> * The custom storage path defined by the developer.
<add> *
<add> * @var string
<add> */
<add> p... | 1 |
Go | Go | add system.stat support for darwin/macos | 76a416ac37e5bd184990c93ed19aa6fa544b7b03 | <ide><path>pkg/system/stat_darwin.go
<add>package system
<add>
<add>import (
<add> "syscall"
<add>)
<add>
<add>// fromStatT creates a system.StatT type from a syscall.Stat_t type
<add>func fromStatT(s *syscall.Stat_t) (*StatT, error) {
<add> return &StatT{size: s.Size,
<add> mode: uint32(s.Mode),
<add> uid: s.Uid,
<... | 2 |
Text | Text | add legacy description | 67d1707c39a7baacd8899ce9d0a61cbb188fc5a5 | <ide><path>guide/english/certifications/index.md
<ide> Upon completion of all six certificates, the freeCodeCamp [Full Stack Developmen
<ide> For more information about freeCodeCamp, please visit [about.freecodecamp.org](https://about.freecodecamp.org/).
<ide>
<ide> For more information about the new certification pro... | 1 |
Text | Text | add kogan.com to the list of users | 71eed10759caeca9b59a17b82a28d285317ef312 | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> * [Hootsuite](https://github.com/hootsuite)
<ide> * ING
<ide> * [Jampp](https://github.com/jampp)
<add>* [Kogan.com](https://github.com/kogan) [[@geeknam](https://github.com/geeknam)]
<ide> * [LingoChamp](http://www.liulishuo.com/) [[@haitaoyao](h... | 1 |
Ruby | Ruby | remove deprecated time marshal core_ext file | 0e8d297301305af9ac5d64e7cd2b0a418c139fce | <ide><path>activesupport/lib/active_support/core_ext/time/marshal.rb
<del>require "active_support/deprecation"
<del>
<del>ActiveSupport::Deprecation.warn("This is deprecated and will be removed in Rails 5.1 with no replacement.") | 1 |
Javascript | Javascript | use assert.rejects() and assert.throws() | c6c37e9e850fa2a30b12a0d0fd0dfe144eda0959 | <ide><path>test/parallel/test-fs-mkdir.js
<ide> function nextdir() {
<ide> fs.mkdirSync(path.dirname(pathname));
<ide> fs.writeFileSync(pathname, '', 'utf8');
<ide>
<del> try {
<del> fs.mkdirSync(pathname, { recursive: true });
<del> throw new Error('unreachable');
<del> } catch (err) {
<del> assert.not... | 2 |
PHP | PHP | remove crlf from to headers in mailtransport | 407c4201763f0f816edbe39ffb8cd6fa773f33a0 | <ide><path>lib/Cake/Network/Email/MailTransport.php
<ide> public function send(CakeEmail $email) {
<ide> $headers[$key] = str_replace(array("\r", "\n"), '', $header);
<ide> }
<ide> $headers = $this->_headersToString($headers, $eol);
<del> $message = implode($eol, $email->message());
<ide> $subject = str_repla... | 1 |
Go | Go | add test to zfs for disk quota | 04b4e3e6d80d5d734edba90e55f41863b50ee45b | <ide><path>daemon/graphdriver/graphtest/graphtest_unix.go
<ide> package graphtest
<ide> import (
<ide> "fmt"
<ide> "io/ioutil"
<add> "math/rand"
<ide> "os"
<ide> "path"
<add> "reflect"
<ide> "syscall"
<ide> "testing"
<add> "unsafe"
<ide>
<ide> "github.com/docker/docker/daemon/graphdriver"
<add> "github.com/dock... | 2 |
Python | Python | fix trainable_weight lists | 7d2f0b1ba8c1ebd4213f748878953d576626fe84 | <ide><path>keras/engine/topology.py
<ide> def __init__(self, input, output, name=None):
<ide> name = prefix + '_' + str(K.get_uid(prefix))
<ide> self.name = name
<ide>
<add> # whether container weights are trainable
<add> self.trainable = True
<add>
<ide> # Container-specific ... | 3 |
Ruby | Ruby | assert the singleton instead of to truthy/falsy | 59f6b99fc3a02f272d7ba4828317ebd8bd5a362f | <ide><path>railties/test/application/configuration_test.rb
<ide> def index
<ide> require "#{app_path}/config/environment"
<ide> require 'action_view/base'
<ide>
<del> assert ActionView::Resolver.caching?
<add> assert_equal true, ActionView::Resolver.caching?
<ide> end
<ide>
<ide> test "c... | 1 |
Javascript | Javascript | add failing test for | 1140e27ea947dc7bf6d8adcf9aed658d2b83155e | <ide><path>packages/@ember/-internals/glimmer/tests/integration/content-test.js
<ide> moduleFor(
<ide>
<ide> this.assertContent('<b>Max</b><i>James</i>');
<ide> }
<add>
<add> ['@test empty content in trusted curlies [GH#14978]']() {
<add> this.render('before {{{value}}} after', {
<add> value: ... | 1 |
Javascript | Javascript | throw error with validationerrors property | 992f5c807e6c06c89d8c1ef2b9a9c7e0daf0813b | <ide><path>lib/webpack.js
<ide> function webpack(options, callback) {
<ide> } else if(typeof options === "object") {
<ide> var webpackOptionsValidationErrors = validateWebpackOptions(options);
<ide> if(webpackOptionsValidationErrors.length) {
<del> throw new Error("Passed 'options' object does not look like a va... | 1 |
Python | Python | update conftest fixture | 109f202e8ff154cefef50b6b1f53da11c2e68392 | <ide><path>spacy/tests/tokenizer/conftest.py
<ide> import pytest
<del>from spacy.en import English
<add>from ...en import English
<ide>
<ide>
<del>@pytest.fixture(scope="module")
<del>def en_tokenizer(EN):
<del> return EN.tokenizer
<add>@pytest.fixture
<add>def en_tokenizer():
<add> return English.Defaults.crea... | 1 |
Java | Java | remove remaining reactor event wrapping | 547167e8b440feea5a71cd31df28224b171cf9d3 | <ide><path>spring-websocket/src/main/java/org/springframework/web/messaging/service/PubSubMessageService.java
<ide> import org.springframework.web.messaging.event.EventConsumer;
<ide> import org.springframework.web.messaging.event.EventRegistration;
<ide>
<del>import reactor.fn.Event;
<del>
<ide>
<ide> /**
<ide> * @... | 2 |
Text | Text | fix broken link in why react post | a64faf7bf7edeab22490c617d1c579e6103a5da0 | <ide><path>docs/_posts/2013-06-05-why-react.md
<ide> see as an advantage over templates for a few reasons:
<ide> **no manual string concatenation** and therefore less surface area for XSS
<ide> vulnerabilities.
<ide>
<del>We've also created [JSX](facebook.github.io/react/docs/syntax.html), an optional
<add>We've a... | 1 |
Ruby | Ruby | add additional quiet check in update-report | 92a42381df63456872e7bb0971a50bf91e209ad4 | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def update_report
<ide> "git", "-C", HOMEBREW_REPOSITORY, "tag", "--list", "--sort=-version:refname", "*.*"
<ide> ).lines.first.chomp
<ide>
<del> if new_tag != old_tag
<del> Settings.write "latesttag", new_tag
<del> new_repository_... | 1 |
Javascript | Javascript | convert passive mount phase to tree traversal | d37d7a4bb4d6b55e2f393827f65082c7ea529ab7 | <ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js
<ide> import {
<ide> Placement,
<ide> Snapshot,
<ide> Update,
<add> Passive,
<add> PassiveMask,
<ide> } from './ReactFiberFlags';
<ide> import getComponentName from 'shared/getComponentName';
<ide> import invariant from 'shared/invariant';
<ad... | 4 |
Text | Text | change os x tag to macos | 5532a7adecac64c6fc6a057f7b489f2c5f48d0f9 | <ide><path>doc/onboarding-extras.md
<ide> Please use these when possible / appropriate
<ide> ### Other Labels
<ide>
<ide> * Operating system labels
<del> * `os x`, `windows`, `smartos`, `aix`
<add> * `macos`, `windows`, `smartos`, `aix`
<ide> * No linux, linux is the implied default
<ide> * Architecture labels
<id... | 1 |
Javascript | Javascript | add coverage for unused custom hook | 793ef9b8553ca029fa10958137b001d3081ae18f | <ide><path>packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js
<ide> const tests = {
<ide> `,
<ide> options: [{additionalHooks: 'useCustomEffect'}],
<ide> },
<add> {
<add> code: `
<add> function MyComponent(props) {
<add> useCustomEffect(() => {
<add> ... | 1 |
Javascript | Javascript | revert some of the changes from 29810c6cd1 | 15a055b6cd118baaa0f4f3cd01107500aa73e78b | <ide><path>spec/text-editor-component-spec.js
<ide> describe('TextEditorComponent', () => {
<ide> editor.moveRight()
<ide> await component.getNextUpdatePromise()
<ide>
<del> await conditionPromise(() =>
<del> getComputedStyle(cursor1).opacity === '0' && getComputedStyle(cursor2).opacity === '0'... | 1 |
Javascript | Javascript | fix bug where parent/ownerview was incorrect | 25507d3b223e19b6ff0163c8d8ba4ea12465499f | <ide><path>packages/ember-htmlbars/lib/hooks/component.js
<ide> export default function componentHook(renderNode, env, scope, _tagName, params,
<ide> isAngleBracket = true;
<ide> }
<ide>
<del> var read = env.hooks.getValue;
<del> var parentView = read(scope.view);
<add> var parentView = env.view;
<ide>
<ide>... | 2 |
Python | Python | ensure alignment of nested struct dtypes | 7ab154b90e9db0a3aab1af3a02502cfda25ecbe3 | <ide><path>numpy/core/_internal.py
<ide> else:
<ide> _nbo = asbytes('>')
<ide>
<del>def _makenames_list(adict):
<add>def _makenames_list(adict, align):
<ide> from multiarray import dtype
<ide> allfields = []
<ide> fnames = adict.keys()
<ide> def _makenames_list(adict):
<ide> num = int(obj[1])
<... | 2 |
Javascript | Javascript | fix broken drawer layout | 8e809e9b24eee6930427edf0b3e876bbda52da88 | <ide><path>Libraries/ReactIOS/renderApplication.android.js
<ide> var styles = StyleSheet.create({
<ide> // This is needed so the application covers the whole screen
<ide> // and therefore the contents of the Portal are not clipped.
<ide> appContainer: {
<del> position: 'absolute',
<add> backgroundColor: 'tr... | 1 |
Javascript | Javascript | handle sync writable streams synchronously | 82c7c84e2550e79b816f87cd1dff3fe4cafb6bbb | <ide><path>lib/_stream_writable.js
<ide> function onwrite(stream, er) {
<ide>
<ide> if (er) {
<ide> if (cb) {
<add> // If _write(chunk,cb) calls cb() in this tick, we still defer
<add> // the *user's* write callback to the next tick.
<add> // Never present an external API that is *sometimes* async... | 3 |
Python | Python | fix typo in utils/flags/_conventions.py | c3bf4a7980d14e47f0a933151a0951f572ba85ff | <ide><path>official/utils/flags/_conventions.py
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<ide> # ==============================================================================
<del>"""Central location for shared arparse convention definitions."""... | 1 |
Python | Python | commit glances 2.4rc2 | 6ef956e0615a28c3c4536a172c8b9a78b909ca7a | <ide><path>glances/__init__.py
<ide> """Init the Glances software."""
<ide>
<ide> __appname__ = 'glances'
<del>__version__ = '2.4RC1'
<add>__version__ = '2.4RC2'
<ide> __author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
<ide> __license__ = 'LGPL'
<ide>
<ide><path>setup.py
<ide> def get_requires():
<ide>
<ide> set... | 2 |
Java | Java | fix a typo in javadoc | a1fa0daad5ea42b46eacf0f330dec69acf1de320 | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/object/RdbmsOperation.java
<ide> /*
<del> * Copyright 2002-2017 the original author or authors.
<add> * Copyright 2002-2018 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not... | 1 |
Javascript | Javascript | use template literals in test-string-decoder | 3784b2d839c4918202359ec90bed40ede553f74c | <ide><path>test/parallel/test-string-decoder.js
<ide> function test(encoding, input, expected, singleSequence) {
<ide> output += decoder.end();
<ide> if (output !== expected) {
<ide> const message =
<del> 'Expected "' + unicodeEscape(expected) + '", ' +
<del> 'but got "' + unicodeEscape(outp... | 1 |
Javascript | Javascript | add support for numbertree | 8ad18959d72bb13c5f8b13c287bc99fcd37a8db1 | <ide><path>src/core/obj.js
<ide> var stringToPDFString = sharedUtil.stringToPDFString;
<ide> var stringToUTF8String = sharedUtil.stringToUTF8String;
<ide> var warn = sharedUtil.warn;
<ide> var isValidUrl = sharedUtil.isValidUrl;
<add>var Util = sharedUtil.Util;
<ide> var Ref = corePrimitives.Ref;
<ide> var RefSet = cor... | 1 |
Javascript | Javascript | fix linting errors | cde81b6b9f3d39629ccacae5f9e82ba2527c4f29 | <ide><path>benchmark/http_simple_auto.js
<ide> var spawn = require('child_process').spawn;
<ide>
<ide> var port = parseInt(process.env.PORT || 8000);
<ide>
<del>var fixed = "C".repeat(20 * 1024);
<add>var fixed = 'C'.repeat(20 * 1024);
<ide>
<ide> var stored = {};
<ide> var storedBuffer = {};
<ide> var server = http... | 1 |
Python | Python | fix a docstring to reflect what the method does | cc3c16eaa09c7dc63592ae8bf4ee30f1af263be1 | <ide><path>rest_framework/serializers.py
<ide> def from_native(self, data, files):
<ide>
<ide> def save_object(self, obj, **kwargs):
<ide> """
<del> Save the deserialized object and return it.
<add> Save the deserialized object.
<ide> """
<ide> if getattr(obj, '_nested_forward... | 1 |
Python | Python | fix parser test | c013e5996f3aec8fe6813f1af4386637c29114ec | <ide><path>spacy/tests/parser/test_neural_parser.py
<ide> def arc_eager(vocab):
<ide>
<ide> @pytest.fixture
<ide> def tok2vec():
<del> return Tok2Vec(8, 100, preprocess=doc2feats())
<add> return Tok2Vec(8, 100)
<ide>
<ide>
<ide> @pytest.fixture | 1 |
Ruby | Ruby | prevent leaking sensitive payload | cbc56b6a9e8d471d23d94b3ee931c33002856fdf | <ide><path>actioncable/lib/action_cable/channel/base.rb
<ide> def processable_action?(action)
<ide> end
<ide>
<ide> def dispatch_action(action, data)
<del> logger.info action_signature(action, data)
<add> logger.debug action_signature(action, data)
<ide>
<ide> if method(act... | 1 |
Text | Text | update irc to libera and fix lamp dead link | 175db73ec7938e774d9e93d3afdfb35a24466b47 | <ide><path>README.md
<ide> Run the unit tests with a local server that supports PHP. Ensure that you run th
<ide>
<ide> - Windows: [WAMP download](http://www.wampserver.com/en/)
<ide> - Mac: [MAMP download](https://www.mamp.info/en/downloads/)
<del>- Linux: [Setting up LAMP](https://www.linux.com/learn/tutorials/28815... | 1 |
Python | Python | add check_ldouble for bento build | 94fab366240aecdacc66d4d4a77aef5f6e2921a9 | <ide><path>numpy/build_utils/waf.py
<ide> import waflib.Tools.c_config
<ide> from waflib import Logs, Utils
<ide>
<add>from common \
<add> import \
<add> LONG_DOUBLE_REPRESENTATION_SRC, pyod, \
<add> long_double_representation
<add>
<ide> DEFKEYS = waflib.Tools.c_config.DEFKEYS
<ide> DEFINE_COMMENTS =... | 1 |
Javascript | Javascript | remove request body from $delete | 8336b3a286f8469d4cd7c412c41ca8c1a31fecf0 | <ide><path>src/ngResource/resource.js
<ide> angular.module('ngResource', ['ng']).
<ide> }
<ide> });
<ide>
<del> httpConfig.data = data;
<add> if (hasBody) httpConfig.data = data;
<ide> route.setUrlParams(httpConfig, extend({}, extractParams(data, action.params || {}), ... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.