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
Python
Python
fix alias capitalization
9a8197185b733e471fa672e544fa2c8de57b991c
<ide><path>examples/pipeline/wikidata_entity_linking.py <ide> def _read_wikidata(limit=None, to_print=False): <ide> <ide> <ide> def _read_wikipedia_prior_probs(): <del> """ Read the XML wikipedia data and parse out intra-wiki links to estimate prior probabilities """ <add> """ Read the XML wikipedia data and pa...
1
Javascript
Javascript
fix typo in ember.mutableenumerable#addobjects
8c87d67414b338d3c7e979fd06f0357b9ec32684
<ide><path>packages/ember-runtime/lib/mixins/mutable_enumerable.js <ide> Ember.MutableEnumerable = Ember.Mixin.create(Ember.Enumerable, <ide> /** <ide> Adds each object in the passed enumerable to the receiver. <ide> <del> @param {Ember.Enumerable} objects the objects to remove <add> @param {Ember.Enumerab...
1
PHP
PHP
add basic file support for formdata
d82df4ec3c85a3a4660b86e2e193351582a0f499
<ide><path>lib/Cake/Network/Http/FormData.php <ide> public function boundary() { <ide> * <ide> * @param string $name The name of the part. <ide> * @param string $value The value to add. <add> * @return Cake\Network\Http\FormData\Part <ide> */ <ide> public function newPart($name, $value) { <ide> return new Part($...
2
PHP
PHP
fix cs errors
f29d951026b2ed49987da43251b8b6690eba9321
<ide><path>src/Cache/Engine/ArrayEngine.php <ide> <?php <add>declare(strict_types=1); <ide> /** <ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <ide><path>src/ORM/Association.php <ide> public function getStrategy...
56
Mixed
Python
add greedy_coin_change.py algorithm
dd757dce383b575021c1765f84d8a40acff16799
<ide><path>DIRECTORY.md <ide> * Tests <ide> * [Test Send File](https://github.com/TheAlgorithms/Python/blob/master/file_transfer/tests/test_send_file.py) <ide> <add>## Fractals <add> * [Koch Snowflake](https://github.com/TheAlgorithms/Python/blob/master/fractals/koch_snowflake.py) <add> * [Mandelbrot](https://...
2
Java
Java
put setchildren debug log in debug clause
a07026d075191f80720fb6741347d18892bf1258
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java <ide> public void manageChildren( <ide> public void setChildren( <ide> int viewTag, <ide> ReadableArray childrenTags) { <del> FLog.d( <del> ReactConstants.TAG, <del> "(UIManager.setChildren) tag: " + viewT...
1
Python
Python
remove unnecessary overrides
ebe15bdf1866893c0920404e88824182700ceca0
<ide><path>airflow/hooks/jdbc_hook.py <ide> class JdbcHook(DbApiHook): <ide> default_conn_name = 'jdbc_default' <ide> supports_autocommit = True <ide> <del> def __init__( <del> self, *args, **kwargs): <del> <del> super(JdbcHook,self).__init__(*args,**kwargs) <del> <del> #conn_id = g...
1
Javascript
Javascript
extract choice of root path outside of class
0b4e772e3bbaa9677f79f09707f1f7b3b08f9dd1
<ide><path>packager/src/Bundler/__tests__/Bundler-test.js <ide> var defaults = require('../../../defaults'); <ide> var sizeOf = require('image-size'); <ide> var fs = require('fs'); <ide> const os = require('os'); <add>const path = require('path'); <ide> <ide> const {any, objectContaining} = expect; <ide> <ide> descri...
4
Python
Python
fix mypy errors at bidirectional_bfs
307ffd8c29d1b2b156c349fde424e62e8493428a
<ide><path>graphs/bidirectional_breadth_first_search.py <ide> from __future__ import annotations <ide> <ide> import time <add>from typing import Optional <add> <add>Path = list[tuple[int, int]] <ide> <ide> grid = [ <ide> [0, 0, 0, 0, 0, 0, 0], <ide> <ide> <ide> class Node: <del> def __init__(self, pos_x, pos...
1
Go
Go
normalize comment formatting
14cad10cea4d25ea9608aca7ad1871de69d9691b
<ide><path>pkg/containerfs/archiver.go <ide> func remapIDs(idMapping *idtools.IdentityMapping, hdr *tar.Header) error { <ide> // chmodTarEntry is used to adjust the file permissions used in tar header based <ide> // on the platform the archival is done. <ide> func chmodTarEntry(perm os.FileMode) os.FileMode { <del> //p...
1
Text
Text
add v4.9.2 to changelog
eeaca69dcacc7ade0e1fe40d216a2f86d35ff8bb
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>## v4.9.2 (December 12, 2022) <add> <add>- [#20296](https://github.com/emberjs/ember.js/pull/20296) Controller `queryParams` should support `readonly` arrays <add>- [#20318](https://github.com/emberjs/ember.js/pull/20318) Backport `Resolver` to preview types <...
1
Ruby
Ruby
constantize a constant array in a method
3523b9d0096ec0229e9db336f0fb042b17c73978
<ide><path>activesupport/lib/active_support/inflector/transliterate.rb <ide> <ide> module ActiveSupport <ide> module Inflector <add> ALLOWED_ENCODINGS_FOR_TRANSLITERATE = [Encoding::UTF_8, Encoding::US_ASCII, Encoding::GB18030].freeze <add> <ide> # Replaces non-ASCII characters with an ASCII approximation, or...
1
Go
Go
add output to checksums, code cleaning
b0e076f374c8919ba29ec24a8cd27785a8e0827c
<ide><path>graph.go <ide> func (graph *Graph) Heads() (map[string]*Image, error) { <ide> func (graph *Graph) imageRoot(id string) string { <ide> return path.Join(graph.Root, id) <ide> } <del> <del>func (graph *Graph) Checksums(repo Repository) ([]map[string]string, error) { <del> var result []map[string]string <del> c...
2
Python
Python
change conflicting name (and update website)
655b9ac5cacace4e5c91ae35cef34373e56902cd
<ide><path>libcloud/loadbalancer/drivers/gce.py <ide> class GCELBDriver(Driver): <ide> connectionCls = GCEConnection <ide> apiname = 'googleapis' <del> name = 'Google Compute Engine' <del> website = 'https://www.googleapis.com/' <add> name = 'Google Compute Engine Load Balancer' <add> website = 'htt...
1
Javascript
Javascript
remove ember.statemanager cruft
2f22edcbd02f173fd8c2fdbce0c1aa92e8c7df4f
<ide><path>packages/ember/lib/main.js <ide> Ember <ide> @module ember <ide> */ <ide> <del>function throwWithMessage(msg) { <del> return function() { <del> throw new Ember.Error(msg); <del> }; <del>} <del> <del>function generateRemovedClass(className) { <del> var msg = " has been moved into a plugin: https://gith...
2
Python
Python
add a test case for
98a07ac377a58076e248673a55a9428c9e8dfe21
<ide><path>libcloud/test/storage/test_s3.py <ide> import sys <ide> <ide> from io import BytesIO <del> <ide> from hashlib import sha1 <ide> <add>import mock <add> <ide> from libcloud.utils.py3 import ET <ide> from libcloud.utils.py3 import httplib <ide> from libcloud.utils.py3 import urlparse <ide> from libcloud.utils...
1
Python
Python
fix whisper doc
614f7d28a81c3055a1bde9b370bb94cdd5cefca3
<ide><path>src/transformers/models/whisper/modeling_whisper.py <ide> Seq2SeqModelOutput, <ide> ) <ide> from ...modeling_utils import PreTrainedModel <del>from ...utils import ( <del> add_code_sample_docstrings, <del> add_start_docstrings, <del> add_start_docstrings_to_model_forward, <del> logging, <del>...
1
Text
Text
add download links for android ndk to the docs
ce5dce9cd5b7cceac7c1442fc9b11a2808329693
<ide><path>docs/AndroidBuildingFromSource.md <ide> Make sure you have the following installed: <ide> 1. Android SDK version 23 (compileSdkVersion in [`build.gradle`](https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle)) <ide> 2. SDK build tools version 23.0.1 (buildToolsVersion in [`build.gra...
1
Ruby
Ruby
move method back to pathname
157425cc10e51c845c6a952a6b25ad261e0c0587
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def starts_with? prefix <ide> prefix = prefix.to_s <ide> self.to_s[0, prefix.length] == prefix <ide> end <add> <add> def make_relative_symlink src <add> self.dirname.mkpath <add> Dir.chdir self.dirname do <add> # TODO use Ruby function so we get...
1
PHP
PHP
fix incorrect default order by clause
f8e8044ed42626d0e06ea8c6075c1d743d2180c7
<ide><path>src/Database/Dialect/SqlserverDialectTrait.php <ide> public function _version() <ide> protected function _pagingSubquery($original, $limit, $offset) <ide> { <ide> $field = '_cake_paging_._cake_page_rownum_'; <add> $order = $original->clause('order') ?: new OrderByExpression('(SELECT NU...
1
Text
Text
fix typo in file path [ci skip]
f02a94037db335a766e3ea25c98e80f132190d97
<ide><path>guides/source/action_cable_overview.md <ide> Then you would create your own channel classes. For example, you could have a <ide> **ChatChannel** and an **AppearanceChannel**: <ide> <ide> ```ruby <del># app/channels/application_cable/chat_channel.rb <add># app/channels/chat_channel.rb <ide> class ChatChannel...
1
Ruby
Ruby
fix with_options bug when first argument is a proc
33411ad2b3df551968e90b1cf36f2cc6d32b9001
<ide><path>activesupport/lib/active_support/option_merger.rb <ide> def initialize(context, options) <ide> private <ide> def method_missing(method, *arguments, &block) <ide> options = nil <del> if arguments.first.is_a?(Proc) <del> proc = arguments.pop <add> if arguments.size == 1...
2
Ruby
Ruby
simplify cached_formula_json_file check
9f27bd4c678eb6f110744860a12fa42fae338e3b
<ide><path>Library/Homebrew/api/formula.rb <ide> def fetch(name) <ide> def all_formulae <ide> @all_formulae ||= begin <ide> curl_args = %w[--compressed --silent https://formulae.brew.sh/api/formula.json] <del> if cached_formula_json_file.exist? <del> last_modified =...
1
Python
Python
call validate method in the s3 driver
14650e4ad2fcd1c75f2794aa8198f5b271749a36
<ide><path>libcloud/storage/drivers/s3.py <ide> def download_object_as_stream(self, obj, chunk_size=None): <ide> def download_object_range(self, obj, destination_path, start_bytes, <ide> end_bytes=None, overwrite_existing=False, <ide> delete_on_failure=Tru...
1
Text
Text
put absolute links in readme, for better embedding
337c18a9b415b8de9d36ff652dc840a5d6aeba0d
<ide><path>README.md <ide> There are a number of small backwards incompatible changes with version 2.0.0. [ <ide> <ide> * Duplicate `Date` passed to `moment()` instead of referencing it. <ide> <del>## [Changelog](CHANGELOG.md) <add>## [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md) <ide> <de...
1
Text
Text
add last xray update
c52d996d5427d9fb66b1b35ea779fc24a3e39b15
<ide><path>docs/focus/2018-04-30.md <ide> - Teletype <ide> - Shipped [Teletype 0.13.1](https://github.com/atom/teletype/releases/tag/v0.13.1) to fix an issue that could occur when a guest puts their computer to sleep while participating in a portal ([atom/teletype#354](https://github.com/atom/teletype/issues/354)) <i...
1
Mixed
Text
add documentation for sequence preprocessing
0af6b6c7f5cbad394673bc962dd248f50fd821ff
<ide><path>docs/sources/datasets.md <ide> Dataset of 50,000 32x32 color images, labeled over 10 categories. <ide> <ide> `keras.datasets.imdb` <ide> <del>Dataset of 25,000 movies reviews from IMDB, labeled by sentiment (positive/negative). Reviews have been preprocessed, and each review is encoded as a sequence of wor...
4
Python
Python
add util function to get raw user input
5aea327a5b5a4fe74b023d6ecad0689a41ee895f
<ide><path>spacy/util.py <ide> def parse_package_meta(package_path, package, require=True): <ide> return None <ide> <ide> <add>def get_raw_input(description, default=False): <add> """Get user input via raw_input / input and return input value. Takes a <add> description for the prompt, and an optional de...
1
PHP
PHP
remove tableregistry calls from tests
afb01a0851d2b0baacfb940ee43d6542c24a347f
<ide><path>tests/TestCase/Auth/BasicAuthenticateTest.php <ide> use Cake\Http\ServerRequest; <ide> use Cake\I18n\Time; <ide> use Cake\Network\Exception\UnauthorizedException; <del>use Cake\ORM\TableRegistry; <ide> use Cake\TestSuite\TestCase; <ide> <ide> /** <ide> public function setUp() <ide> ]); <ide> <ide> ...
37
Python
Python
add a copy of inspect (from 2.4.4)
f7cdebb32623254cd7e223778fa734677ec0d27a
<ide><path>numpy/lib/inspect.py <add># -*- coding: iso-8859-1 -*- <add>"""Get useful information from live Python objects. <add> <add>This module encapsulates the interface provided by the internal special <add>attributes (func_*, co_*, im_*, tb_*, etc.) in a friendlier fashion. <add>It also provides some help for exam...
1
Python
Python
fix typo in test gpt2
66c827656f1a43d1427961eedf4786c4440c89ee
<ide><path>tests/test_modeling_gpt2.py <ide> class GPT2ModelLanguageGenerationTest(unittest.TestCase): <ide> @slow <ide> def test_lm_generate_gpt2(self): <ide> model = GPT2LMHeadModel.from_pretrained("gpt2") <del> input_ids = torch.tensor([[463, 3290]], dtype=torch.long, device=torch_device) # T...
1
Python
Python
add state assignment to _to_node()
5064241454cae561a124f4442c052ecbbd856f12
<ide><path>libcloud/container/drivers/kubernetes.py <ide> class KubernetesContainerDriver(KubernetesDriverMixin, ContainerDriver): <ide> <ide> def get_version(self): <ide> """Get Kubernetes version""" <del> return self.connection.request("/version").object['gitVersion'] <add> return self.conn...
1
Javascript
Javascript
remove testutils dependency on event registry
b683c07ccce340b9d687683d5dd7347a4c866787
<ide><path>packages/react-dom/src/client/ReactDOM.js <ide> import { <ide> } from 'react-reconciler/src/ReactFiberReconciler'; <ide> import {createPortal as createPortalImpl} from 'react-reconciler/src/ReactPortal'; <ide> import {canUseDOM} from 'shared/ExecutionEnvironment'; <del>import {eventNameDispatchConfigs} from ...
4
Text
Text
update nodejs version
60ecfc669fca08ea0f09a4156ffdedaeeaab5772
<ide><path>test/README.md <ide> If you are still nervous or don't quite understand, please submit an issue and t <ide> <ide> <ide> ## Footnotes <del><sup>1</sup> webpack's parser supports the use of ES2015 features like arrow functions, harmony exports, etc. However as a library we follow NodeJS's timeline for droppi...
1
Ruby
Ruby
use opt shortcut methods
974b7e71ef11a09f188f0f5e40d609c0732b3406
<ide><path>Library/Homebrew/build.rb <ide> def install <ide> deps.each(&:modify_build_environment) <ide> <ide> keg_only_deps.each do |dep| <del> opt = dep.opt_prefix <del> ENV.prepend_path 'PATH', "#{opt}/bin" <del> ENV.prepend_path 'PKG_CONFIG_PATH', "#{opt}/lib/pkgconfig" <del> ...
1
Ruby
Ruby
improve duplicate detection
81a760921320b6508458d6cdbe4c73b3e01b14b3
<ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb <ide> def formula_version(formula, spec, contents = nil) <ide> <ide> def fetch_pull_requests(formula) <ide> GitHub.issues_for_formula(formula.name, tap: formula.tap).select do |pr| <del> pr["html_url"].include?("/pull/") <add> pr["html_url"].includ...
1
Java
Java
replace xmlreaderfactory with saxparserfactory
baed0785fd02b2bf6b93c72b756c37b603359220
<ide><path>spring-core/src/test/java/org/springframework/util/xml/AbstractStaxHandlerTests.java <ide> <ide> import javax.xml.parsers.DocumentBuilder; <ide> import javax.xml.parsers.DocumentBuilderFactory; <add>import javax.xml.parsers.SAXParser; <add>import javax.xml.parsers.SAXParserFactory; <ide> import javax.xml.st...
8
Go
Go
remove erroneous comment
bd30d27636718b3ea576caa52807507d57283580
<ide><path>daemon/execdriver/windows/ttyconsole.go <ide> func NewTtyConsole(id string, processid uint32) *TtyConsole { <ide> } <ide> <ide> func (t *TtyConsole) Resize(h, w int) error { <del> // TODO Windows: This is not implemented in HCS. Needs plumbing through <del> // along with mechanism for buffering <ide> retur...
1
Python
Python
fix rst errors
8b04474d9cf6f8722d8bfce00b01c23ea649556e
<ide><path>celery/monitoring.py <ide> def __init__(self): <ide> <ide> def collect(self): <ide> """Collect any new statistics available since the last time <del> :method:`collect` was executed.""" <add> :meth:`collect` was executed.""" <ide> connection = DjangoAMQPConnection() <ide> ...
6
Javascript
Javascript
remove unused variable
8936868e9bf6b4a3f56684c4895e2a7c33395479
<ide><path>lib/http.js <ide> var EventEmitter = require('events').EventEmitter; <ide> var FreeList = require('freelist').FreeList; <ide> var HTTPParser = process.binding('http_parser').HTTPParser; <ide> var assert = require('assert').ok; <del>var END_OF_FILE = {}; <del> <ide> <ide> var debug; <ide> if (process.env.NOD...
1
PHP
PHP
fix php 8.2 deprication
c4354923bc7642aa87827c45f4112c5bec8cff77
<ide><path>src/Illuminate/Database/Eloquent/SoftDeletes.php <ide> public function isForceDeleting() <ide> */ <ide> public function getDeletedAtColumn() <ide> { <del> return defined('static::DELETED_AT') ? static::DELETED_AT : 'deleted_at'; <add> return defined(static::class.'::DELETED_AT') ? ...
1
Python
Python
add missing data file to setup.py
7371c4f8199c5560acc7faa97676884d9a9226dc
<ide><path>setup.py <ide> def run(self): <ide> 'libcloud.drivers': 'libcloud/drivers' <ide> }, <ide> package_data={ <del> 'libcloud': ['data/*.json'], <add> 'libcloud': ['data/*.json', 'test/pricing_test.json'], <ide> }, <ide> license='Apache License (2.0)', <ide> url='http://i...
1
Python
Python
add ms_win64 macro when built on amd64 + mingw
14a63a81f6dfed3390dfef8f3cb0a173524f24f0
<ide><path>numpy/distutils/command/build_ext.py <ide> def build_extension(self, ext): <ide> c_sources += cxx_sources <ide> cxx_sources = [] <ide> <add> # MS_WIN64 should be defined when building for amd64 on windows, but <add> # python headers define it only for MS compilers, whic...
1
Python
Python
correct a bug with docker module and server mode
c940bae43e97e7c6473ac6498ed34af07478a866
<ide><path>glances/plugins/glances_docker.py <ide> def update(self): <ide> self.reset() <ide> <ide> # The Docker-py lib is mandatory <del> if not docker_tag or self.args.disable_docker: <add> if not docker_tag or (self.args is not None and self.args.disable_docker): <ide> retu...
1
Java
Java
remove parameterisation from clientrequest
45770d73ede714533741f97275996ea7a04a381a
<ide><path>spring-test/src/test/java/org/springframework/test/web/reactive/server/WiretapConnectorTests.java <ide> * See the License for the specific language governing permissions and <ide> * limitations under the License. <ide> */ <add> <ide> package org.springframework.test.web.reactive.server; <ide> <ide> impor...
12
Java
Java
fix failing test
bd69390c0f3b601c1e11a63c4bfca9da613587f5
<ide><path>spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletAnnotationControllerHandlerMethodTests.java <ide> import org.springframework.web.servlet.support.RequestContextUtils; <ide> import org.springframework.web.servlet.view.InternalResourceViewResolver; <ide> <del>import sta...
1
Ruby
Ruby
show help for aliased commands
d1b6a8581900458ee5262d727b5611d7290d8ccf
<ide><path>Library/Homebrew/brew.rb <ide> def output_unsupported_error <ide> help_flag = true <ide> elsif !cmd && !help_flag_list.include?(arg) <ide> cmd = ARGV.delete_at(i) <add> cmd = Commands::HOMEBREW_INTERNAL_COMMAND_ALIASES.fetch(cmd, cmd) <ide> end <ide> end <ide>
1
Text
Text
add "sanitized" to the readme
242dbfc23dfe6c8340d96932fbff21123a3f1b9c
<ide><path>README.md <ide> Then refer to this field in the form for the model: <ide> <% end %> <ide> ``` <ide> <del>And finally display the rich text on a page: <add>And finally display the sanitized rich text on a page: <ide> <ide> ```erb <ide> <%= @message.content %>
1
PHP
PHP
fix failing tests
2d68e7da1ec34ef48e54135ed914e3e8d00ba8ba
<ide><path>lib/Cake/Test/Case/Utility/FileTest.php <ide> public function testBasic() { <ide> <ide> $result = $this->File->info(); <ide> $expecting = array( <del> 'dirname' => dirname(__FILE__), 'basename' => basename(__FILE__), <del> 'extension' => 'php', 'filename' =>'FileTest', 'filesize' => filesize($file) ...
2
PHP
PHP
fix remaining typing issues
a54e7316322d5ccc2dba558516915e24587a75d6
<ide><path>src/Http/Uri.php <ide> public function getFragment() <ide> */ <ide> public function withScheme($scheme) <ide> { <del> return new static($this->uri->withScheme($scheme), $this->base, $this->webroot); <add> $new = clone $this; <add> $new->uri = $this->uri->withScheme($scheme);...
1
Ruby
Ruby
use tsort_each to avoid intermediary array
25f1d5da37811644c81127e9219fc070953776e0
<ide><path>railties/lib/rails/initializable.rb <ide> def +(other) <ide> <ide> def run_initializers(group=:default, *args) <ide> return if instance_variable_defined?(:@ran) <del> initializers.tsort.each do |initializer| <add> initializers.tsort_each do |initializer| <ide> initializer.run(*ar...
1
PHP
PHP
change import order
a83a19ddeb4bcd52f5ebcd4a08e951826428a272
<ide><path>src/Illuminate/Support/Facades/Response.php <ide> <?php namespace Illuminate\Support\Facades; <ide> <ide> use Illuminate\Http\JsonResponse; <del>use Illuminate\Http\Response as IlluminateResponse; <ide> use Illuminate\Support\Traits\MacroableTrait; <add>use Illuminate\Http\Response as IlluminateResponse; <i...
1
Python
Python
address several reviewer comments
19784177a61de75927a4934fd4cdd91afbb5b35c
<ide><path>numpy/core/_add_newdocs.py <ide> <ide> >>> x.getfield(np.float64, offset=8) <ide> array([[1., 0.], <del> [0., 4.]]) <add> [0., 4.]]) <ide> <ide> """)) <ide> <ide> <ide> >>> x = np.linspace(0, 15, 16).reshape(4,4) <ide> >>> x <del> array([[ 0., 1., 2., 3.],...
14
Ruby
Ruby
use arguments from main command
4babdf2a0f620a8886caeec32704fe3a0e9703a4
<ide><path>Library/Homebrew/postinstall.rb <ide> require "fcntl" <ide> require "socket" <ide> require "cli/parser" <del> <del>def postinstall_args <del> Homebrew::CLI::Parser.new do <del> switch :force <del> switch :verbose <del> switch :debug <del> end <del>end <add>require "cmd/postinstall" <ide> <ide> be...
1
Go
Go
move raw cgroups into fs package (filesystem)
06db0604e5e5438dc14e13a069ebddcab7bb4bc6
<add><path>pkg/cgroups/fs/apply_raw.go <del><path>pkg/cgroups/apply_raw.go <del>package cgroups <add>package fs <ide> <ide> import ( <ide> "fmt" <add> "io/ioutil" <ide> "os" <ide> "path/filepath" <ide> "strconv" <add> <add> "github.com/dotcloud/docker/pkg/cgroups" <ide> ) <ide> <ide> type rawCgroup struct { <ide>...
3
PHP
PHP
fix cs errors
a0e2eebc84cb97555125504371fbd79d74bf6282
<ide><path>src/Console/ConsoleErrorHandler.php <ide> <ide> use Cake\Error\BaseErrorHandler; <ide> use Cake\Error\FatalErrorException; <del>use Exception; <ide> use Throwable; <ide> <ide> /** <ide><path>src/Console/ConsoleInputArgument.php <ide> public function validChoice(string $value): bool <ide> * @param \Sim...
25
Javascript
Javascript
fix indentation and remove newline for consistency
393f50324c29c9a2a83292085f564d4e15e54525
<ide><path>test/ng/filter/filterSpec.js <ide> describe('Filter: filter', function() { <ide> <ide> <ide> it('should not throw an error if property is null when comparing object', function() { <del> var items = [ <del> { office:1, people: {name:'john'}}, <del> { office:2, people: {name:'jane'}}...
1
Python
Python
update train cli
dec5571bf382c5bd39b535fb9e02e63063e5cd25
<ide><path>spacy/__main__.py <ide> def package(self, input_dir, output_dir, force=False): <ide> output_dir=("output directory", "positional", None, str), <ide> train_data=("training data", "positional", None, str), <ide> dev_data=("development data", "positional", None, str), <del> n_iter...
2
Ruby
Ruby
give some love to this test file
f9f39d5c4251262a14a776b56ce7e6e845f10389
<ide><path>activerecord/test/cases/attribute_methods_test.rb <ide> def setup <ide> ActiveRecord::Base.send(:attribute_method_matchers).concat(@old_matchers) <ide> end <ide> <del> def test_attribute_for_inspect_string <add> test 'attribute_for_inspect with a string' do <ide> t = topics(:first) <ide> t.t...
1
Python
Python
add first pass at gandi livedns implementation
11a403a275c11d44406c20d71d7adab32d1b4ebd
<ide><path>libcloud/common/gandi_live.py <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file to You under the Ap...
2
Python
Python
remove cattrs from lineage processing.
25a1a1b597ab20fa601a6b701f83ada02b6334a5
<ide><path>airflow/lineage/__init__.py <ide> # specific language governing permissions and limitations <ide> # under the License. <ide> """Provides lineage support functions""" <del>import json <add>import itertools <ide> import logging <ide> from functools import wraps <del>from typing import Any, Callable, Dict, Opti...
3
Java
Java
use nested path variables instead of servlet's
69aed83504c098027e5d878df0b0cf40439facb5
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicates.java <ide> public MultiValueMap<String, Part> multipartData() throws IOException, ServletEx <ide> return this.request.multipartData(); <ide> } <ide> <del> @Override <del> public String pathVariable(String name) { <...
2
Python
Python
remove useless error message
f78b985087883a221aaae2c948eb0949cbabe3f7
<ide><path>keras/activations.py <ide> def softmax(x, axis=-1): <ide> ValueError: In case `dim(x) == 1`. <ide> """ <ide> ndim = K.ndim(x) <del> if ndim == 1: <del> raise ValueError('Cannot apply softmax to a tensor that is 1D') <del> elif ndim == 2: <add> if ndim == 2: <ide> retur...
1
Ruby
Ruby
add more doc to #update_column
bf50935a5dc1e41d4134ae975cc01886b722c13d
<ide><path>activerecord/lib/active_record/persistence.rb <ide> def update_attribute(name, value) <ide> # * Callbacks are skipped. <ide> # * updated_at/updated_on column is not updated if that column is available. <ide> # <add> # Raises an +ActiveRecordError+ when called on new objects, or when the +name+...
1
PHP
PHP
fix a typo
4ef6fd76d5bcf3590f930ec262f1f0756eeaed3b
<ide><path>src/Illuminate/Database/Migrations/Migrator.php <ide> protected function getQueries($migration, $method) <ide> * Run a migration, inside a transaction if the database supports it. <ide> * <ide> * @param \Closure $callback <del> * @retrun void <add> * @return void <ide> */ <ide> ...
1
Ruby
Ruby
prevent changes_to_save from mutating attributes
80a09caedc6fa67f95e78e45e7eb954f6b647b2c
<ide><path>activemodel/lib/active_model/attribute_mutation_tracker.rb <ide> def changes <ide> attr_names.each_with_object({}.with_indifferent_access) do |attr_name, result| <ide> change = change_to_attribute(attr_name) <ide> if change <del> result[attr_name] = change <add> result...
2
Text
Text
add backticks to `config/secrets.yml`
40f31da3812d58a0668adf4991dc5a78b19442bf
<ide><path>railties/CHANGELOG.md <ide> ## Rails 5.1.0.alpha ## <ide> <del>* Added a shared section to config/secrets.yml that will be loaded for all environments. <add>* Added a shared section to `config/secrets.yml` that will be loaded for all environments. <ide> <ide> *DHH* <ide>
1
Ruby
Ruby
add migration_needed test
0d3b5f6849e236272d6a1b83a1869845608b3d10
<ide><path>Library/Homebrew/test/test_formula.rb <ide> def test_any_version_installed? <ide> f.rack.rmtree <ide> end <ide> <add> def test_migration_needed <add> f = Testball.new("newname") <add> f.instance_variable_set(:@oldname, "oldname") <add> f.instance_variable_set(:@tap, CoreTap.instance) <add> <...
1
Ruby
Ruby
use load_generators instead
460ce7d7eac8e16e49011534e52306f3f14ca0b2
<ide><path>railties/test/application/generators_test.rb <ide> def with_bare_config <ide> <ide> # Initialize the application <ide> require "#{app_path}/config/environment" <del> require "rails/generators" <del> Rails::Generators.configure!(Rails.application.config.generators) <add> Rails.appl...
1
Javascript
Javascript
use block for video challenge right breadcrumb
e213c9f581cdc6d83e7b86910c2854d50aecd2d3
<ide><path>client/src/templates/Challenges/video/Show.js <ide> export class Project extends Component { <ide> title, <ide> description, <ide> superBlock, <add> block, <ide> translationPending, <ide> videoId, <ide> question: { text, answers, solution }...
1
Javascript
Javascript
support contentregex for tm
67b736c91807892346ba0d820a6d842b40b00e91
<ide><path>src/grammar-registry.js <ide> class GrammarRegistry { <ide> <ide> // If multiple grammars match by one of the above criteria, break ties. <ide> if (score > 0) { <add> const isTSgrammar = grammar instanceof TreeSitterGrammar <add> <ide> // Prefer either TextMate or Tree-sitter grammars bas...
1
Ruby
Ruby
resolve aliases in argv extension
28504229aa7a1389fa60bbfb9b987344d608e925
<ide><path>Library/Homebrew/extend/ARGV.rb <ide> module HomebrewArgvExtension <ide> def named <ide> @named ||= reject{|arg| arg[0..0] == '-'} <ide> end <add> <ide> def options <ide> select {|arg| arg[0..0] == '-'} <ide> end <add> <ide> def formulae <ide> require 'formula' <del> @formulae ||= do...
1
Go
Go
add sleep in tests and go fmt
ebba0a60245b487e6d3d242f47c8999321ec5d29
<ide><path>buildfile_test.go <ide> package docker <ide> <ide> import ( <add> "fmt" <ide> "io/ioutil" <ide> "sync" <ide> "testing" <del> "fmt" <ide> ) <ide> <ide> // mkTestContext generates a build context from the contents of the provided dockerfile. <ide> func TestBuild(t *testing.T) { <ide> defer nuke(runtime)...
3
PHP
PHP
use interfaces as typehints where applicable
a9f360273df4f441b1b14a5984de16dd95a44eac
<ide><path>src/Illuminate/Auth/DatabaseUserProvider.php <ide> <?php namespace Illuminate\Auth; <ide> <del>use Illuminate\Database\Connection; <add>use Illuminate\Database\ConnectionInterface; <ide> use Illuminate\Contracts\Hashing\Hasher as HasherContract; <ide> use Illuminate\Contracts\Auth\Authenticatable as UserCon...
14
Python
Python
fix tf-idf in python 2
10368d867fa25f5fee957378911a2888e85811ea
<ide><path>keras/preprocessing/text.py <ide> from a fast Cython rewrite. <ide> ''' <ide> from __future__ import absolute_import <add>from __future__ import division <ide> <ide> import string <ide> import sys
1
PHP
PHP
add autoload option to plugin
09b22b4018781e2bc2da55cfcf9555b0f924db82
<ide><path>lib/Cake/Core/Plugin.php <ide> */ <ide> namespace Cake\Core; <ide> <add>use Cake\Core\ClassLoader; <ide> use Cake\Error; <ide> use Cake\Utility\Inflector; <ide> <ide> class Plugin { <ide> * - `namespace` - string - A custom namespace for the plugin. It will default to the plugin name. <ide> * - `ignoreM...
2
Go
Go
update docker push to use [====> ]
95f061b408eafbf981450d3fdb26ebc3188cba4a
<ide><path>graph.go <ide> func (graph *Graph) TempLayerArchive(id string, compression archive.Compression, <ide> if err != nil { <ide> return nil, err <ide> } <del> return archive.NewTempArchive(utils.ProgressReader(ioutil.NopCloser(a), 0, output, sf, true, "", "Buffering to disk"), tmp) <add> return archive.NewTem...
2
Ruby
Ruby
add new command
626b56f9f6ad913f723b8fef3c5f515b7c4a3817
<ide><path>Library/Homebrew/cmd/postinstall.rb <add>require 'formula_installer' <add> <add>module Homebrew extend self <add> def postinstall <add> ARGV.formulae.each {|f| f.post_install } <add> end <add>end
1
PHP
PHP
use php7errorexception classes
7ef28c30928269bf32ad072384cdcb49301489ac
<ide><path>src/Error/BaseErrorHandler.php <ide> namespace Cake\Error; <ide> <ide> use Cake\Core\Configure; <add>use Cake\Error\PHP7ErrorException; <ide> use Cake\Log\Log; <ide> use Cake\Routing\Router; <ide> use Error; <ide><path>src/Error/ExceptionRenderer.php <ide> use Cake\Core\Configure; <ide> use Cake\Core\Except...
2
Ruby
Ruby
move error to the right place
d069cc2ebce7c33211fd7da31ee7512442c173b8
<ide><path>Library/Homebrew/cask/lib/hbc/installer.rb <ide> def primary_container <ide> Container.for_path(@downloaded_path) <ide> end <ide> <del> container&.new(@cask, @downloaded_path, @command, verbose: verbose?) <add> unless container <add> raise CaskError, "Uh oh, could no...
1
Javascript
Javascript
remove dependency on `window` throughout ember
305202fa51aca55ce1ff935aa9fb8ebe3da4a0d4
<ide><path>packages/ember-application/tests/system/application_test.js <ide> test("you cannot make two default applications without a rootElement error", fun <ide> }); <ide> <ide> test("acts like a namespace", function() { <del> var app; <del> Ember.run(function() { <del> app = window.TestApp = Ember.Application....
33
Ruby
Ruby
use oo to avoid meta programming
205e59d65bf555119070c6c059c0f229f7f4e0dd
<ide><path>lib/arel/algebra/ordering.rb <ide> module Arel <del> class Ordering <add> class Ordering < Struct.new(:attribute) <ide> delegate :relation, :to => :attribute <ide> <ide> def bind(relation) <ide> def bind(relation) <ide> def to_ordering <ide> self <ide> end <add> <add> def == other...
1
Javascript
Javascript
resolve relative size rendering error in inspector
972ee2edbd4e1c4201da1606bf5a4c5add9f0083
<ide><path>Libraries/Inspector/ElementBox.js <ide> const BorderBox = require('BorderBox'); <ide> const React = require('React'); <ide> const StyleSheet = require('StyleSheet'); <ide> const View = require('View'); <add>const Dimensions = require('Dimensions'); <ide> <ide> const flattenStyle = require('flattenStyle'); <...
1
Javascript
Javascript
improve the type of platform.select for android
b7f07473dfdfb09c2f4d3e6e5d4ff3fdc7506fee
<ide><path>Libraries/Utilities/Platform.android.js <ide> <ide> import NativePlatformConstantsAndroid from './NativePlatformConstantsAndroid'; <ide> <del>export type PlatformSelectSpec<A, N, D> = { <del> android?: A, <del> native?: N, <del> default?: D, <add>export type PlatformSelectSpec<T> = { <add> android?: T,...
1
Java
Java
check scheme in (webutils|corsutils)#issameorigin
896eb5687ab2a0b8bddce46ab9ec766c9987f26e
<ide><path>spring-web/src/main/java/org/springframework/web/cors/reactive/CorsUtils.java <ide> public static boolean isSameOrigin(ServerHttpRequest request) { <ide> } <ide> <ide> URI uri = request.getURI(); <add> String actualScheme = uri.getScheme(); <ide> String actualHost = uri.getHost(); <ide> int actualP...
4
Python
Python
use consistent shortcut
38652143434207531c2779ab6905331269f072ca
<ide><path>spacy/cli/init_config.py <ide> def init_config_cli( <ide> if isinstance(optimize, Optimizations): # instance of enum from the CLI <ide> optimize = optimize.value <ide> pipeline = string_to_list(pipeline) <del> init_config(output_file, lang=lang, pipeline=pipeline, optimize=optimize, cpu=c...
1
Text
Text
add missing api docs about filtering by label
cfd0f53b03d26c370e37abf651d7f481ee8c6912
<ide><path>docs/sources/reference/api/docker_remote_api_v1.18.md <ide> Query Parameters: <ide> - **filters** - a json encoded value of the filters (a map[string][]string) to process on the containers list. Available filters: <ide> - exited=&lt;int&gt; -- containers with exit code of &lt;int&gt; <ide> - status...
2
Javascript
Javascript
add url parser benchmark
f5c68b280fa45c9a392794364272ddfc711bc7a0
<ide><path>benchmark/url.js <add>var url = require('url'), <add> urls = [ <add> 'http://nodejs.org/docs/latest/api/url.html#url_url_format_urlobj', <add> 'http://blog.nodejs.org/', <add> 'https://encrypted.google.com/search?q=url&q=site:npmjs.org&hl=en', <add> 'javascript:alert("node is awesome")...
1
PHP
PHP
replace()
b722497e08ebf55b667b6b17808bc01907f8e62f
<ide><path>src/Illuminate/Console/Scheduling/ScheduleTestCommand.php <ide> <ide> use Illuminate\Console\Application; <ide> use Illuminate\Console\Command; <del>use Illuminate\Support\Str; <ide> <ide> class ScheduleTestCommand extends Command <ide> { <ide> public function handle(Schedule $schedule) <ide> $...
1
Javascript
Javascript
add async and await as keywords
ab64b6d7992efb9c558719b6e7e63f280d73048b
<ide><path>lib/repl.js <ide> function addStandardGlobals(completionGroups, filter) { <ide> // they just get in the way. <ide> if (filter) { <ide> completionGroups.push([ <del> 'break', 'case', 'catch', 'const', 'continue', 'debugger', 'default', <del> 'delete', 'do', 'else', 'export', 'false', 'finall...
1
Python
Python
adapt style to predefined style layout
fc84bd5254ed0f89f50c1491cc5b68135a8a5125
<ide><path>src/transformers/modeling_ctrl.py <ide> def get_output_embeddings(self): <ide> <ide> def prepare_inputs_for_generation(self, input_ids, **kwargs): <ide> # only last token for inputs_ids if past is defined in kwargs <del> if 'past' in kwargs and kwargs['past']: <add> if "past" in kw...
5
Ruby
Ruby
remove extra type signatures
f84265f9a200c693525b16260386f9c2b523aa48
<ide><path>Library/Homebrew/extend/os/linux/api/analytics.rb <ide> module Homebrew <ide> module API <ide> module Analytics <ide> class << self <del> sig { returns(String) } <ide> def analytics_api_path <ide> return generic_analytics_api_path if Homebrew::EnvConfig.force_homebrew_on_...
3
Go
Go
fix bug with rmi multiple tag
185f392691c40fc4cb6ea16373a92a03f3d0b0f2
<ide><path>daemon/image_delete.go <ide> func (daemon *Daemon) imgDeleteHelper(name string, list *[]types.ImageDelete, fi <ide> repos := daemon.Repositories().ByID()[img.ID] <ide> <ide> //If delete by id, see if the id belong only to one repository <del> if repoName == "" { <add> deleteByID := repoName == "" <add> if...
2
Python
Python
add support for yes/no literals with booleanfield
e9a54e38e1c864919c79a8b88d83b8d61d477053
<ide><path>rest_framework/fields.py <ide> class BooleanField(Field): <ide> initial = False <ide> TRUE_VALUES = { <ide> 't', 'T', <del> 'y', 'Y', 'yes', 'YES', <add> 'y', 'Y', 'yes', 'Yes', 'YES', <ide> 'true', 'True', 'TRUE', <ide> 'on', 'On', 'ON', <ide> '1', 1, <i...
1
Mixed
Javascript
add onpressmove and pressretentionoffset to press
7fc91f17c99fbbd1497737fb8cbd8f45cbfd6d48
<ide><path>packages/react-events/README.md <ide> events API that is not available in open source builds.* <ide> <ide> Event components do not render a host node. They listen to native browser events <del>dispatched on the host node of their child and transform those events into <add>dispatched on the host node of the...
3
Javascript
Javascript
add basic tests for the bind/unbind aliases
bb3cfd3d8feaeeb21cf85ba9a0376ea58f7c26cf
<ide><path>test/jqLiteSpec.js <ide> describe('jqLite', function() { <ide> expect(onLoadCallback).toHaveBeenCalledOnce(); <ide> }); <ide> }); <add> <add> <add> describe('bind/unbind', function() { <add> if (!_jqLiteMode) return; <add> <add> it('should alias bind() to on()', function() { <add> var...
1
PHP
PHP
add typehints to parameters and returns
714107fd75c019031ae4526dbb2825ee7f66efd7
<ide><path>src/Form/Form.php <ide> class Form implements EventListenerInterface, EventDispatcherInterface, Validato <ide> * Form's data. <ide> * <ide> * @var array <del> * @since 3.7.0 <ide> */ <ide> protected $_data = []; <ide> <ide> public function implementedEvents(): array <ide> * ...
2
Python
Python
turn schemaeditor into a context manager
ce5bd42259bc95d372ab0d65dbae793e6251ea80
<ide><path>django/db/backends/schema.py <add>import sys <ide> import hashlib <ide> from django.db.backends.creation import BaseDatabaseCreation <ide> from django.db.backends.util import truncate_name <ide> from django.utils.log import getLogger <ide> from django.db.models.fields.related import ManyToManyField <add>from...
2
Text
Text
add vim-plug setting
a7652107189336f243e5c9a89b33a577df34fdd2
<ide><path>contrib/syntax/vim/README.md <ide> With [Vundle](https://github.com/gmarik/Vundle.vim) <ide> <ide> Plugin 'docker/docker' , {'rtp': '/contrib/syntax/vim/'} <ide> <add>With [vim-plug](https://github.com/junegunn/vim-plug) <add> <add> Plug 'docker/docker' , {'rtp': '/contrib/syntax/vim/'} <add>...
1
Text
Text
add electra to community models
3e9a23de33fadaedcaff384a63508dc7ef51d6a3
<ide><path>community/README.md <ide> This repository provides a curated list of the GitHub repositories with machine <ide> | [BERT](https://github.com/IntelAI/models/tree/master/benchmarks/language_modeling/tensorflow/bert_large) | [BERT: Pre-training of Deep Bidirectional Transformers<br/>for Language Understanding](h...
1