content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Ruby
Ruby
get formula from satisfy
fe117bf79b244c42b7e4049d353c3c003eae4880
<ide><path>Library/Homebrew/requirement.rb <ide> def initialize(tags = []) <ide> @default_formula = self.class.default_formula <ide> @cask ||= self.class.cask <ide> @download ||= self.class.download <add> @formula = nil <ide> tags.each do |tag| <ide> next unless tag.is_a? Hash <ide> @cask...
1
Python
Python
set version to v3.0.0a6
0fc13b2f14d044d8b44e86e05f237f4f2b14b77a
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy-nightly" <del>__version__ = "3.0.0a5" <add>__version__ = "3.0.0a6" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/sp...
1
Ruby
Ruby
fix inreplace and yajl formula
bae67c110fd3a8ca23f17def7cc9dd2dadd5fbb8
<ide><path>Library/Homebrew/brewkit.rb <ide> def remove_from_cflags rx <ide> <ide> def inreplace(path, before, after) <ide> before=Regexp.escape before.to_s <del> after=Regexp.escape after.to_s <del> before.gsub! "/", "\\\/" <del> after.gsub! "/", "\\\/" <del> before.gsub! "'", '\'' <del> after.gsub! "'", '\'' ...
1
Python
Python
use tokenbucket from kombu.utils.limits instead
b01b81c60ae07ad5d67a01cc8b1f192f32aa4a3d
<ide><path>celery/datastructures.py <ide> def incr(self, key, delta=1): <ide> newval = int(self.data.pop(key)) + delta <ide> self[key] = str(newval) <ide> return newval <del> <del> <del>class TokenBucket(object): <del> """Token Bucket Algorithm. <del> <del> See http://en.wikipe...
3
Javascript
Javascript
fix initial load error
426526355cb57d17fb6aad781123fb10966279f3
<ide><path>client/commonFramework/update-preview.js <ide> window.common = (function(global) { <ide> const { <del> Rx: { Observable }, <add> Rx: { BehaviorSubject, Observable }, <ide> common = { init: [] } <ide> } = global; <ide> <ide> window.common = (function(global) { <ide> const iFrameScript$ = <ide...
2
Ruby
Ruby
remove inaccurate comment
dd3446ded19ea88dc85bb5bff670c4b2a128c207
<ide><path>Library/Homebrew/global.rb <ide> def mkpath <ide> end <ide> <ide> HOMEBREW_CACHE = cache <del>undef cache # we use a function to prevent adding home_cache to the global scope <add>undef cache <ide> <ide> # Where brews installed via URL are cached <ide> HOMEBREW_CACHE_FORMULA = HOMEBREW_CACHE+"Formula"
1
Ruby
Ruby
fix nullrelation#to_sql to return an actual query
837c87e8107e7e9a7c2bf78e2fbd8cee4d0504a3
<ide><path>activerecord/lib/active_record/null_relation.rb <ide> def many? <ide> false <ide> end <ide> <del> def to_sql <del> "" <del> end <del> <ide> def calculate(operation, _column_name) <ide> case operation <ide> when :count, :sum <ide><path>activerecord/test/cases/null_relatio...
2
Python
Python
fix tfdebertav2convlayer in tfdebertav2model
2f463effb316f6c9e0ac9636327a3d7c13862f8d
<ide><path>src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py <ide> def call( <ide> rmask = tf.cast(1 - input_mask, tf.bool) <ide> out = tf.where(tf.broadcast_to(tf.expand_dims(rmask, -1), shape_list(out)), 0.0, out) <ide> out = self.dropout(out, training=training) <del> hidden_...
1
PHP
PHP
remove duplicate comment
47b8f327ea9ef6462103aa802cd48a6f739f76a1
<ide><path>src/Illuminate/Routing/RouteParameterBinder.php <ide> public function __construct($route) <ide> */ <ide> public function parameters($request) <ide> { <del> // If the route has a regular expression for the host part of the URI, we will <del> // compile that and get the parameter mat...
1
Text
Text
update documentation concerning themes
d83adc3a27d3b35f3a7cb8a463a11bbdf186d788
<ide><path>docs/customizing-atom.md <ide> Atom comes bundled with two themes `atom-dark-*` and `atom-light-*`. <ide> Because Atom themes are based on CSS, it's possible to have multiple themes <ide> active at the same time. <ide> <del>VERIFY: Is this still true? <del> <del>For example, you'll usually select a theme fo...
2
PHP
PHP
move comment to line it up with others
997f789c47d4be159b600bbac82d358a96339821
<ide><path>app/config/app.php <ide> <ide> 'debug' => true, <ide> <del>/* <del>|-------------------------------------------------------------------------- <del>| Application URL <del>|-------------------------------------------------------------------------- <del>| <del>| This URL is used by the console to properly g...
1
Javascript
Javascript
use promise.all() in test-hash-seed
1a3c7473ec9ca0e1acf0512996e05eecc870f7bf
<ide><path>test/pummel/test-hash-seed.js <ide> 'use strict'; <ide> <ide> // Check that spawn child doesn't create duplicated entries <del>require('../common'); <del>const Countdown = require('../common/countdown'); <del>const REPETITIONS = 2; <add>const common = require('../common'); <add>const kRepetitions = 2; <ide>...
1
Python
Python
use get_include instead of get_numpy_include
7763133ec4c3d51d37b5205a1740e574f20963ae
<ide><path>numpy/doc/pyrex/setup.py <ide> <ide> pyx_ext = Extension('numpyx', <ide> pyx_sources, <del> include_dirs = [numpy.get_numpy_include()]) <add> include_dirs = [numpy.get_include()]) <ide> <ide> # Call the routine which does the real work <ide> setup(name ...
1
Text
Text
add v3.10.0-beta.4 to changelog
ed4fb96f14e8acc360c253e8bdad8ce72b443807
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.10.0-beta.4 (April 22, 2019) <add> <add>- [#17930](https://github.com/emberjs/ember.js/pull/17930) [BUGFIX] Update assertion for events in tagless component to include method names <add> <ide> ### v3.10.0-beta.3 (April 15, 2019) <ide> <ide> - [#17859](...
1
Text
Text
add note about legacy links
1cfab85c0ea759fed753dc2c71cdb4b87ad62400
<ide><path>man/docker-run.1.md <ide> Create a 3rd container using the new --ipc=container:CONTAINERID option, now it <ide> <ide> ## Linking Containers <ide> <add>> **Note**: This section describes linking between containers on the <add>> default (bridge) network, also known as "legacy links". Using `--link` <add>> on...
1
Python
Python
use region names exposed by the provider
e3e171311c5f5dd83edac5eb89069fccea4875ac
<ide><path>libcloud/compute/drivers/elastichosts.py <ide> <ide> # API end-points <ide> API_ENDPOINTS = { <del> 'uk-1': { <add> 'lon-p': { <ide> 'name': 'London Peer 1', <ide> 'country': 'United Kingdom', <ide> 'host': 'api-lon-p.elastichosts.com' <ide> }, <del> 'uk-2': { <add> '...
1
Ruby
Ruby
clarify cellar comment
41e8245534854bb273dedc49aeda4af7b60c1aa4
<ide><path>Library/Homebrew/global.rb <ide> HOMEBREW_PREFIX = Pathname.new(HOMEBREW_BREW_FILE).dirname.parent # Where we link under <ide> HOMEBREW_REPOSITORY = Pathname.new(HOMEBREW_BREW_FILE).realpath.dirname.parent # Where .git is found <ide> <del># Where should be build to? <del># If /usr/local/Cellar exists, as a...
1
Ruby
Ruby
restore rails 4.2’s value
22288603645c95751f64245fc89fc259a27ad94c
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> class Parameters <ide> cattr_accessor :permit_all_parameters, instance_accessor: false <ide> cattr_accessor :action_on_unpermitted_parameters, instance_accessor: false <ide> <del> delegate :keys, :key?, :has_key?, :empty?, :include...
2
Go
Go
remove double deprecation warning
9260c06f7a7cb172205dc45af96870ec0d02ebcd
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) CmdCommit(args ...string) error { <ide> env engine.Env <ide> ) <ide> if *flConfig != "" { <del> fmt.Fprintf(cli.err, "WARNING: 'commit --run' is deprecated and will be removed in a future version, in favor of inline Dockerfile-compatible commands.\n"...
1
Text
Text
fix anchor link on ubuntu installation page
5dd28c1f9d5933c81c24c9d5fd478239438437f1
<ide><path>docs/installation/ubuntulinux.md <ide> To upgrade your kernel and install the additional packages, do the following: <ide> <ide> $ sudo reboot <ide> <del>5. After your system reboots, go ahead and [install Docker](#installing-docker-on-ubuntu). <add>5. After your system reboots, go ahead and [insta...
1
PHP
PHP
fix casing issue with guarded
1b70bef5fd7cc5da74abcdf79e283f830fa3b0a4
<ide><path>src/Illuminate/Database/Eloquent/Concerns/GuardsAttributes.php <ide> public function isFillable($key) <ide> */ <ide> public function isGuarded($key) <ide> { <del> return in_array($key, $this->getGuarded()) || $this->getGuarded() == ['*']; <add> return $this->getGuarded() == ['*'] |...
2
Javascript
Javascript
add test for socket.end callback
628f95503f1964b727ede62c731ce46f1e116af6
<ide><path>test/parallel/test-net-socket-end-callback.js <add>'use strict'; <add> <add>const common = require('../common'); <add>const net = require('net'); <add> <add>const server = net.createServer((socket) => { <add> socket.resume(); <add>}).unref(); <add> <add>server.listen(common.mustCall(() => { <add> const con...
1
Java
Java
allow spel reserved words in type package names
edce2e7bcab12cb6ffac60f9a952a76889f987aa
<ide><path>spring-expression/src/main/java/org/springframework/expression/spel/standard/InternalSpelExpressionParser.java <ide> package org.springframework.expression.spel.standard; <ide> <ide> import java.util.ArrayList; <add>import java.util.LinkedList; <ide> import java.util.List; <ide> import java.util.Stack; <add...
4
Mixed
Text
add docs and changelog entry for 73aab03 [ci skip]
6bd2573869eda8b1e4eaa9df2966f814fd9c5d5c
<ide><path>activerecord/CHANGELOG.md <ide> <ide> *Ryuta Kamizono* <ide> <add>* Allow proc defaults to be passed to the attributes API. See documentation <add> for examples. <add> <add> *Sean Griffin, Kir Shatrov* <add> <ide> * SQLite: `:collation` support for string and text columns. <ide> <ide> Ex...
2
Text
Text
add v16 changelog link to iojs changelog
7904331c1f18a381ea5130fc269901178652a609
<ide><path>doc/changelogs/CHANGELOG_IOJS.md <ide> <ide> * Other Versions <ide> * [17.x](CHANGELOG_V17.md) <add> * [16.x](CHANGELOG_V16.md) <ide> * [15.x](CHANGELOG_V15.md) <ide> * [14.x](CHANGELOG_V14.md) <ide> * [13.x](CHANGELOG_V13.md)
1
Javascript
Javascript
fix typos and simplify emberarray definition
4ac76231331f444c78ecba99461f9ded016d3a6c
<ide><path>packages/@ember/-internals/runtime/lib/mixins/array.js <ide> function mapBy(key) { <ide> concrete implementation, but it can be used up by other classes that want <ide> to appear like arrays. <ide> <del> For example, ArrayProxy is a concrete classes that can <del> be instantiated to implement array-li...
1
Python
Python
fix tpu convergence bug introduced by pr
24107c2c83e79d195826f18f66892feab6b000e9
<ide><path>src/transformers/trainer.py <ide> def train(self, model_path: Optional[str] = None): <ide> <ide> if is_torch_tpu_available(): <ide> xm.optimizer_step(self.optimizer) <del> if self.args.fp16 and _use_native_amp: <add> elif self...
1
Go
Go
fix error removing diff path
276b44608b04f08bdf46ce7c816b1f744bf24b7d
<ide><path>daemon/graphdriver/aufs/aufs.go <ide> func Init(root string, options []string, uidMaps, gidMaps []idtools.IDMap) (grap <ide> } <ide> } <ide> <add> for _, path := range []string{"mnt", "diff"} { <add> p := filepath.Join(root, path) <add> dirs, err := ioutil.ReadDir(p) <add> if err != nil { <add> logr...
2
Javascript
Javascript
rebuild main chunk in fewer cases
66b095566d56ff870f50bba29760c8700074a946
<ide><path>lib/MainTemplate.js <ide> function MainTemplate(outputOptions) { <ide> var chunkFilename = this.outputOptions.chunkFilename || ""; <ide> if(Template.REGEXP_HASH.test(publicPath) || Template.REGEXP_CHUNKHASH.test(publicPath) || Template.REGEXP_NAME.test(publicPath)) <ide> return true; <del> if(Templat...
1
Text
Text
add example code for fs.existssync()
d4549e75d47f9824d080b9eac9b1a9e696634449
<ide><path>doc/api/fs.md <ide> this API: [`fs.exists()`][]. <ide> parameter to `fs.exists()` accepts parameters that are inconsistent with other <ide> Node.js callbacks. `fs.existsSync()` does not use a callback. <ide> <add>```js <add>if (fs.existsSync('/etc/passwd')) { <add> console.log('The file exists.'); <add>} <...
1
Mixed
Ruby
safebuffer strings as yaml
debe7aedda3665702d1f99a3ffb4a123a6c44e9c
<ide><path>activesupport/CHANGELOG.md <add>* Fixed a roundtrip problem with AS::SafeBuffer where primitive-like strings <add> will be dumped as primitives: <add> <add> Before: <add> <add> YAML.load ActiveSupport::SafeBuffer.new("Hello").to_yaml # => "Hello" <add> YAML.load ActiveSupport::SafeBuffer...
3
Python
Python
fix output of best model
c83fccfe2ae6c37f8953c96b70e30129ff39dcc2
<ide><path>spacy/cli/train.py <ide> def _collate_best_model(meta, output_path, components): <ide> shutil.copytree(output_path / 'model-final', best_dest) <ide> for component, best_component_src in bests.items(): <ide> shutil.rmtree(best_dest / component) <del> shutil.copytree(best_component_src, ...
1
Python
Python
change doctest line
7a8696cd6d5611a7e2f929ca13f54e684126b6f2
<ide><path>blockchain/chinese_remainder_theorem.py <ide> def chinese_remainder_theorem2(n1, r1, n2, r2): <ide> return (n % m + m) % m <ide> <ide> <del># import testmod for testing our function <del>from doctest import testmod <del> <ide> if __name__ == "__main__": <add> from doctest import testmod <add> <ide> ...
1
Ruby
Ruby
reword documentation for update_all
91c0c277698ab6ca4132a580f4212aa913492a8c
<ide><path>activerecord/lib/active_record/relation.rb <ide> def scoping <ide> klass.current_scope = previous <ide> end <ide> <del> # Updates all records in the current scope (respecting the <tt>default_scope</tt>, <tt>where</tt>, <del> # <tt>limit</tt> and <tt>order</tt> specified) with details given. ...
1
Mixed
Javascript
promote _getcursorpos to public api
a68729cf3d02798ec88fffa20575074b6332ade8
<ide><path>doc/api/readline.md <ide> reading input from a TTY stream. The position of cursor determines the <ide> portion of the input string that will be modified as input is processed, <ide> as well as the column where the terminal caret will be rendered. <ide> <add>### rl.getCursorPos() <add><!-- YAML <add>added: ...
4
Ruby
Ruby
move mysql2 adapter into core
188855501b454d6732fb1fd1d76cc26d6119f2eb
<ide><path>activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb <add># encoding: utf-8 <add> <add>require 'mysql2' unless defined? Mysql2 <add> <add>module ActiveRecord <add> class Base <add> def self.mysql2_connection(config) <add> config[:username] = 'root' if config[:username].nil? <add> ...
1
Text
Text
improve wording in getting started guide
b62eed173f924af075540d87e57b79ef90db8316
<ide><path>guides/source/getting_started.md <ide> For more installation methods for most Operating Systems take a look at <ide> [ruby-lang.org](https://www.ruby-lang.org/en/documentation/installation/). <ide> <ide> If you are working on Windows, you should also install the <del>[Ruby Installer Development Kit](http://...
1
Ruby
Ruby
fix primary_abstract_class in lazy loaded envs
00bad6102cdfa352c02de909258167ba07554dea
<ide><path>activerecord/lib/active_record/core.rb <ide> def self.application_record_class? # :nodoc: <ide> self == Base.application_record_class <ide> else <ide> if defined?(ApplicationRecord) && self == ApplicationRecord <del> Base.application_record_class = self <ide> ...
2
Text
Text
add docs for volume plugin ls/get
5d1dd8069bd8217f946da531c2575280a68bc085
<ide><path>docs/extend/plugins_volume.md <ide> containers. <ide> ### /VolumeDriver.Create <ide> <ide> **Request**: <del>``` <add>```json <ide> { <ide> "Name": "volume_name", <ide> "Opts": {} <ide> volume on the filesystem yet (until Mount is called). <ide> Opts is a map of driver specific options passed throug...
1
Javascript
Javascript
fix references to reactcomponent / reactelement
421e7880d98cf18575a0429bff8e632a5e94bfc5
<ide><path>Libraries/Experimental/WindowedListView.js <ide> const infoLog = require('infoLog'); <ide> const invariant = require('fbjs/lib/invariant'); <ide> const nullthrows = require('fbjs/lib/nullthrows'); <ide> <del>import type ReactComponent from 'ReactComponent'; <del> <ide> const DEBUG = false; <ide> <ide> /** ...
1
Python
Python
fix small typos in partition docstring
9e9bdc5b42b549af1955d1a5c9e59478b679e56f
<ide><path>numpy/core/fromnumeric.py <ide> def partition(a, kth, axis=-1, kind='introselect', order=None): <ide> """ <ide> Return a partitioned copy of an array. <ide> <del> Creates a copy of the array with its elements rearranges in such a way that <add> Creates a copy of the array with its elements rea...
1
Javascript
Javascript
avoid multiple conversions to string
34c9fc2e4e12fa9aa58d94a3283193444302a3ab
<ide><path>lib/fs.js <ide> function encodeRealpathResult(result, options) { <ide> fs.realpathSync = function realpathSync(p, options) { <ide> options = getOptions(options, {}); <ide> handleError((p = getPathFromURL(p))); <add> if (typeof p !== 'string') <add> p += ''; <ide> nullCheck(p); <del> <del> p = p.to...
1
Text
Text
define bridge networks
1e74df3637c1497f7adc3bd7aebd95baaa4c8e22
<ide><path>docs/reference/glossary.md <ide> An image that has no parent is a **base image**. <ide> [boot2docker](http://boot2docker.io/) is a lightweight Linux distribution made <ide> specifically to run Docker containers. The boot2docker management tool for Mac and Windows was deprecated and replaced by [`docker-machi...
1
Python
Python
update insert sort
43f92490fe2edd92d09887eb732eaf6ac5ef698e
<ide><path>sorts/i_sort.py <del>def insertionSort(arr): <del> """ <del> >>> a = arr[:] <del> >>> insertionSort(a) <del> >>> a == sorted(a) <del> True <del> """ <del> for i in range(1, len(arr)): <del> key = arr[i] <del> j = i - 1 <del> while j >= 0 and key < arr[j]: <del> ...
2
Ruby
Ruby
remove side effects in `normalize_defaults`
a4f780947299cc35f14c9e1825278155ae88ee44
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def initialize(set, path, defaults, as, controller, default_action, modyoule, to <ide> <ide> @requirements = formats[:requirements].merge Hash[requirements] <ide> @conditions = Hash[conditions] <del> @defaults = formats[:def...
1
PHP
PHP
use real classname for seeders
da88b26a56bcd35e1e62f362c5920e023be6a9aa
<ide><path>src/Illuminate/Database/Seeder.php <ide> public function call($class, $silent = false) <ide> $classes = Arr::wrap($class); <ide> <ide> foreach ($classes as $class) { <add> $seeder = $this->resolve($class); <add> <ide> if ($silent === false && isset($this->command)) { <...
1
Text
Text
create tar file
d073722880833f755ef486e6d0b0e7d44f79f321
<ide><path>guide/english/bash/bash-tar/index.md <add>--- <add>title: Bash tar <add>--- <add> <add>## Bash command: tar <add> <add>**GNU 'tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive.** <add> <add>Examples : <add> <add>_Create archive.tar from files...
1
Javascript
Javascript
remove usage of internal stylesheet type
d89517d60a8a6cabc9013b603fa3f63a1face6a2
<ide><path>Libraries/StyleSheet/StyleSheet.js <ide> const StyleSheetValidation = require('StyleSheetValidation'); <ide> const flatten = require('flattenStyle'); <ide> <ide> import type { <del> StyleSheetStyle as _StyleSheetStyle, <add> ____StyleSheetInternalStyleIdentifier_Internal as StyleSheetInternalStyleIdentifi...
2
Python
Python
remove hack for user
67400063d9dcf7a89b80b27896d5410e3fee70f3
<ide><path>airflow/default_login.py <ide> login_manager.login_message = None <ide> <ide> <del>class User(models.BaseUser): <add>class DefaultUser(object): <add> def __init__(self, user): <add> self.user = user <ide> <ide> def is_active(self): <ide> '''Required by flask_login''' <ide> def is_sup...
2
Text
Text
add v3.16.10 to changelog.md
7328532bbea63778fae478722b6a4972372f4ec3
<ide><path>CHANGELOG.md <ide> - [#18694](https://github.com/emberjs/ember.js/pull/18694) [BUGFIX] Ensure tag updates are buffered, remove error message <ide> - [#18709](https://github.com/emberjs/ember.js/pull/18709) [BUGFIX] Fix `this` in `@tracked` initializer <ide> <add>### v3.16.10 (August 5, 2020) <add> <add>- [#...
1
Javascript
Javascript
avoid accidental removal of last keyframe.
61bbbfa3d1165b17a40167f57c0ea9c9e4b36a70
<ide><path>src/animation/KeyframeTrackPrototype.js <ide> KeyframeTrackPrototype = { <ide> values = this.values, <ide> stride = this.getValueSize(), <ide> <del> writeIndex = 1; <add> smoothInterpolation = this.getInterpolation() === InterpolateSmooth, <ide> <del> for( var i = 1, n = times.length - 1; i <= n...
1
Text
Text
fix a typo
6fdc33203ab71b0b6716780f18aee910538c057c
<ide><path>website/docs/usage/models.md <ide> best-matching package compatible with your spaCy installation. <ide> > <ide> > ```diff <ide> > - python -m spacy download en <del>> + python -m spacy dowmload en_core_web_sm <add>> + python -m spacy download en_core_web_sm <ide> > ``` <ide> > <ide> > ```diff
1
Javascript
Javascript
add fade between cascades
52ef30f65d0ab028c0b24ff60ef3d1ada7b54668
<ide><path>examples/jsm/csm/Shader.js <ide> IncidentLight directLight; <ide> DirectionalLightShadow directionalLightShadow; <ide> #endif <ide> <del> #pragma unroll_loop <ide> for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { <ide> <ide> directionalLight = directionalLights[ i ]; <ide> getDirectionalDirectLightIrra...
1
Text
Text
add extra material
e02ace2b1d0a97d4ba169a7ade959d1f00493d14
<ide><path>guide/chinese/bsd-os/index.md <ide> localeTitle: BSD操作系统 <ide> <ide> ### 概观 <ide> <add>BSD (Berkeley Software Distribution,伯克利软件套件)是Unix的衍生系统,在1977至1995年间由加州大学伯克利分校开发和发布的。历史上, BSD曾经被认为是UNIX的一支——"BSD UNIX", 因为它和AT&T UNIX操作系统共享基础代码和设计。在20世纪80年代,衍生出了许多变形的UNIX授权软件。比较著名的如DEC的Ultrix及Sun公司的SunOS。1990年代,BSD很大程度上被S...
1
Go
Go
use cgo for apparmor profile switch
f0f833c6d795fc8b3fb4bb379f9916745f5c7ac9
<ide><path>pkg/libcontainer/apparmor/apparmor.go <ide> package apparmor <ide> <add>// #cgo LDFLAGS: -lapparmor <add>// #include <sys/apparmor.h> <add>// #include <stdlib.h> <add>import "C" <ide> import ( <del> "fmt" <ide> "io/ioutil" <del> "os" <add> "unsafe" <ide> ) <ide> <ide> func IsEnabled() bool { <ide> func Ap...
2
Python
Python
make use of log_smooth_count
3c210f45fadd1134f1efa3eaabf9e48620212040
<ide><path>bin/init_model.py <ide> def _read_freqs(loc, max_length=100, min_doc_freq=0, min_freq=200): <ide> word = key <ide> smooth_count = counts.smoother(int(freq)) <ide> log_smooth_count = math.log(smooth_count) <del> probs[word] = math.log(smooth_count) - log_total <a...
1
Go
Go
remove argsasstring because its a util function
9bd7d09871d8495d06af94a8d866404569d75b8e
<ide><path>runtime/container.go <ide> func populateCommand(c *Container, env []string) { <ide> c.command.Env = env <ide> } <ide> <del>func (container *Container) ArgsAsString() string { <del> var args []string <del> for _, arg := range container.Args { <del> if strings.Contains(arg, " ") { <del> args = append(args...
2
Javascript
Javascript
use optional chaining in `web/pdf_history.js`
322b1072afa14c243ea443bda5044981747dede0
<ide><path>web/pdf_history.js <ide> class PDFHistory { <ide> return; <ide> } <ide> <del> if (this._destination && this._destination.page === pageNumber) { <add> if (this._destination?.page === pageNumber) { <ide> // When the new page is identical to the one in `this._destination`, we <ide> ...
1
Javascript
Javascript
fix route#render with slash notation
a60bd5fd92a7c3b4a5c407dbab52ae8d3030089b
<ide><path>packages/ember-routing/lib/system/route.js <ide> Ember.Route = Ember.Object.extend({ <ide> name = this.templateName; <ide> } <ide> <del> name = name || this.templateName; <add> name = name ? name.replace(/\//g, '.') : this.templateName; <ide> <ide> var container = this.container, <ide> ...
2
PHP
PHP
fix style ci
4c3b4664c1d860425d6d9d06d1bdd1eb009cdc73
<ide><path>tests/Integration/Http/ResourceTest.php <ide> public function work() <ide> 'id' => 1, <ide> 'title' => 'Test Title 1', <ide> ])); <del> <add> <ide> return $this->filter([ <ide> new MergeValue($postR...
1
Text
Text
update courses flight manual
e9aaff5fd163a318d143fb2cc4271f5774e7f242
<ide><path>docs/courses-vscode-extension.md <ide> This details the maintenance guidelines for the [freeCodeCamp/courses-vscode-ext <ide> <ide> ## Publishing the Extension <ide> <del>A GitHub Action automagically publishes the extension to the Visual Studio Marketplace, on pushes to the `prod` branch. <add>A GitHub Ac...
1
Java
Java
fix merge bug
f9a972272ab9cf5265c652efa8e8eda9d465008d
<ide><path>rxjava-core/src/main/java/rx/internal/operators/OperatorMerge.java <ide> public Subscriber<Observable<? extends T>> call(final Subscriber<? super T> chil <ide> private int wip; <ide> private boolean completed; <ide> <del> private SubscriptionIndexedRingBuffer<InnerSubscriber<T>> child...
4
Go
Go
export noraw=1 to disable raw mode in the client
8c142c612737f45fb97d9ad949b1c3bd42d38c71
<ide><path>docker/docker.go <ide> func Fatal(err error) { <ide> <ide> func main() { <ide> var err error <del> if IsTerminal(0) { <add> if IsTerminal(0) && os.Getenv("NORAW") == "" { <ide> oldState, err = MakeRaw(0) <ide> if err != nil { <ide> panic(err) <ide> func main() { <ide> if err := <-receive_stdout; er...
1
Python
Python
use native theano bn
f3e7245910eabd1bcaddc0d3e6bfd0f3eabd4eb1
<ide><path>keras/backend/theano_backend.py <ide> def normalize_batch_in_training(x, gamma, beta, <ide> def batch_normalization(x, mean, std, beta, gamma, epsilon=0.0001): <ide> '''Apply batch normalization on x given mean, std, beta and gamma. <ide> ''' <del> normed = (x - mean) * (gamma * T.inv(std + epsilo...
1
Java
Java
improve javadoc on reactive classes
3e096ce810d6d7c19529a975f1b68eb0e91e4d47
<ide><path>spring-core/src/main/java/org/springframework/core/codec/AbstractDecoder.java <ide> import org.springframework.util.MimeType; <ide> <ide> /** <add> * Abstract base class for {@link Decoder} implementations. <add> * <ide> * @author Sebastien Deleuze <ide> * @author Arjen Poutsma <ide> * @since 5.0 <ide> ...
62
Text
Text
add changelog entry for
e1154a694d861abbcc1f8f1c8d557d2e349ba9c2
<ide><path>activerecord/CHANGELOG.md <add>* Make possible to run SQLite rake tasks without the `Rails` constant defined. <add> <add> *Damien Mathieu* <add> <ide> * Allow Relation#from to accept other relations with bind values. <ide> <ide> *Ryan Wallace*
1
Ruby
Ruby
fix line number off-by-one
fe1bf57a1547bec01c80f42c75ee2e3d9afa0bb1
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit <ide> audit_conflicts <ide> audit_patches <ide> audit_text <del> text.split("\n").each_with_index { |line, lineno| audit_line(line, lineno) } <add> text.split("\n").each_with_index { |line, lineno| audit_line(line+1, lineno) } <ide> audit_in...
1
PHP
PHP
move last page logic into paginator class
acc279989cfc2872abd92586caa4f98ba07d30cb
<ide><path>system/paginator.php <ide> class Paginator { <ide> */ <ide> public function __construct($results, $total, $per_page) <ide> { <add> $this->page = static::page($total, $per_page); <add> <ide> $this->per_page = $per_page; <ide> $this->results = $results; <ide> $this->total = $total; <del> <del> $thi...
1
Text
Text
remove networkdriver from readme.md in daemon
ce5bbed8582227482f7afa1c647d52eab9fb2de3
<ide><path>daemon/README.md <ide> This directory contains code pertaining to running containers and storing images <ide> Code pertaining to running containers: <ide> <ide> - execdriver <del> - networkdriver <ide> <ide> Code pertaining to storing images: <ide>
1
Ruby
Ruby
put conditional back
a4e0e16e05fa49fc84b92a5ffd42a9f728ee1f89
<ide><path>lib/active_storage/log_subscriber.rb <ide> class ActiveStorage::LogSubscriber < ActiveSupport::LogSubscriber <ide> def service_upload(event) <ide> message = "Uploaded file to key: #{key_in(event)}" <del> message << " (checksum: #{event.payload[:checksum]})" <del> info event, color(message, GREEN)...
1
Ruby
Ruby
call string#gsub with hash directly
cc986db54665c4155f1b8da5d3f2ebf4a55ef23f
<ide><path>activesupport/lib/active_support/core_ext/string/output_safety.rb <ide> def html_escape(s) <ide> # html_escape_once('&lt;&lt; Accept & Checkout') <ide> # # => "&lt;&lt; Accept &amp; Checkout" <ide> def html_escape_once(s) <del> result = s.to_s.gsub(HTML_ESCAPE_ONCE_REGEXP) { |special| HT...
1
Go
Go
remove some unused funcs and variables
5ee8652a21756b1b4719e3477bd871d13b237c12
<ide><path>daemon/container_operations_unix.go <ide> func (daemon *Daemon) DisconnectFromNetwork(container *container.Container, n li <ide> return nil <ide> } <ide> <del>// called from the libcontainer pre-start hook to set the network <del>// namespace configuration linkage to the libnetwork "sandbox" entity <del>fu...
4
PHP
PHP
add some missing phpdocs for facades
7f8ac4f4abee41215b7f421f0dc491c844aea7b9
<ide><path>src/Illuminate/Support/Facades/Log.php <ide> * @method static void log($level, string $message, array $context = []) <ide> * @method static void notice(string $message, array $context = []) <ide> * @method static void warning(string $message, array $context = []) <add> * @method static void write(string $...
6
Python
Python
use positional arguments due to inconsistent api
e1844d9a45c6232ba7fac77c6c7b3f5326e72929
<ide><path>src/transformers/modeling_utils.py <ide> def top_k_top_p_filtering(logits, top_k=0, top_p=1.0, filter_value=-float("Inf") <ide> sorted_indices_to_remove[..., 0] = 0 <ide> <ide> # scatter sorted tensors to original indexing <del> indices_to_remove = sorted_indices_to_remove.scatter(dim...
1
Python
Python
fix examples in m2m100 docstrings
a5d2967bd8a5ed2456c593fa9eb5d9c0d726ae7a
<ide><path>src/transformers/models/m2m_100/modeling_m2m_100.py <ide> def _init_weights(self, module): <ide> >>> model_inputs = tokenizer(text_to_translate, return_tensors='pt') <ide> <ide> >>> # translate to French <del> >>> gen_tokens = model.generate( **model_inputs, forced_bos_token_id=tok.ge...
1
Python
Python
fix indeterminacy of icu_locales value
5e9274a3e7803e9713a87ebae69019b9ee6468de
<ide><path>configure.py <ide> def icu_download(path): <ide> o['variables']['icu_small'] = b(True) <ide> locs = set(options.with_icu_locales.split(',')) <ide> locs.add('root') # must have root <del> o['variables']['icu_locales'] = ','.join(str(loc) for loc in locs) <add> o['variables']['icu_locales'] ...
1
Ruby
Ruby
convert date extension modules to class reopens
c43dec888a4823b36ee4369be0558b94d475d734
<ide><path>activesupport/lib/active_support/core_ext/date.rb <ide> require 'active_support/core_ext/util' <ide> require 'date' <del>ActiveSupport.core_ext Date, %w(behavior calculations conversions) <add>require 'active_support/core_ext/date/acts_like' <add>require 'active_support/core_ext/date/freeze' <add>ActiveSuppo...
4
Ruby
Ruby
improve sms_to api documentation [ci-skip]
5b8fee1be1e66941b7792f545724a8f02925de3c
<ide><path>actionview/lib/action_view/helpers/url_helper.rb <ide> def current_page?(options = nil, check_parameters: false, **options_as_kwargs) <ide> end <ide> end <ide> <del> # Creates an SMS anchor link tag to the specified +phone_number+, which is <del> # also used as the name of the link u...
1
Go
Go
fix flakey testauthzpluginalloweventstream
4cf9b725f2117581ac4ba3e6f1db23da090e1732
<ide><path>integration-cli/docker_cli_authz_unix_test.go <ide> func (s *DockerAuthzSuite) TestAuthZPluginAllowEventStream(c *check.C) { <ide> // Create a container and wait for the creation events <ide> out, err := s.d.Cmd("run", "-d", "busybox", "top") <ide> c.Assert(err, check.IsNil, check.Commentf(out)) <del> <id...
1
Python
Python
allow hashing of errordetail to fix
2ebd4797595fb86504cf093fe8ed94c59a061acb
<ide><path>rest_framework/exceptions.py <ide> def __repr__(self): <ide> self.code, <ide> )) <ide> <add> def __hash__(self): <add> return hash(str(self)) <add> <ide> <ide> class APIException(Exception): <ide> """ <ide><path>tests/test_exceptions.py <ide> def test_str(self): <ide> ...
2
Javascript
Javascript
add extra profiling app
162f11c0c0541a4d7c92fc4a53decd9ac9e6747d
<ide><path>test/integration/bundle-size-profiling/next.config.js <add>module.exports = { <add> experimental: { <add> polyfillsOptimization: true, <add> }, <add> webpack(config, options) { <add> if (!options.isServer) { <add> config.profile = true <add> const { BundleAnalyzerPlugin } = require('webpac...
2
Javascript
Javascript
add assert.notdeepstrictequal() tests
181324e192aa75e923c918af84d9902de4ee3b24
<ide><path>test/parallel/test-assert.js <ide> assert.doesNotThrow(makeBlock(a.deepEqual, new Boolean(true), {}), <ide> assert.throws(makeBlock(a.deepEqual, {a: 1}, {b: 1}), a.AssertionError); <ide> <ide> //deepStrictEqual <del>assert.doesNotThrow(makeBlock(a.deepStrictEqual, new Date(2000, 3, 14), <del> ...
1
Javascript
Javascript
add support for case sensitive
6022476f036b4829a9b91c02ee988f2bf2f94bd2
<ide><path>web/viewer.js <ide> var PDFFindController = { <ide> // TODO: Handle the other find options here as well. <ide> <ide> var query = this.state.query; <add> var caseSensitive = this.state.caseSensitive; <ide> var queryLen = query.length; <ide> <ide> if (queryLen === 0) <ide> return [];...
1
Python
Python
fix mypy errors in leveldb
c4b369410155dfc461d2b95ee66cb1927f8e4230
<ide><path>airflow/providers/google/leveldb/hooks/leveldb.py <ide> from airflow.exceptions import AirflowException <ide> from airflow.hooks.base import BaseHook <ide> <add>DB_NOT_INITIALIZED_BEFORE = "The `get_conn` method should be called before!" <add> <ide> <ide> class LevelDBHookException(AirflowException): <ide>...
2
Text
Text
fix typo in inception/readme.md (#49)
148a15fb043dacdd1595eb4c5267705fbd362c6a
<ide><path>inception/README.md <ide> To train this model, you simply need to specify the following: <ide> bazel build inception/imagenet_train <ide> <ide> # run it <del>bazel-bin/inception/imagenet_train.py --num_gpus=1 --batch_size=32 --train_dir=/tmp/imagenet_train --data_dir=/tmp/imagenet_data <add>bazel-bin/incept...
1
Python
Python
replace float ops with faster integer ops
0c41cefc883f1a56994a0a0eba2648dc643be9ca
<ide><path>keras/engine/training.py <ide> def _make_batches(size, batch_size): <ide> # Returns <ide> A list of tuples of array indices. <ide> """ <del> num_batches = int(np.ceil(size / float(batch_size))) <add> num_batches = (size + batch_size - 1) // batch_size # round up <ide> return [(i * ...
2
Python
Python
fix race condition with new fft cache
b0efcbadd5944d44f56c106dc5bc4571ebcab03e
<ide><path>numpy/fft/fftpack.py <ide> __all__ = ['fft', 'ifft', 'rfft', 'irfft', 'hfft', 'ihfft', 'rfftn', <ide> 'irfftn', 'rfft2', 'irfft2', 'fft2', 'ifft2', 'fftn', 'ifftn'] <ide> <add>import threading <add> <ide> from numpy.core import (array, asarray, zeros, swapaxes, shape, conjugate, <ide> ...
2
Python
Python
sync the callback api with new tf.keras api
1336cdb14ff03de754aec6899794742ca91057b2
<ide><path>keras/callbacks.py <ide> from collections import deque <ide> from collections import OrderedDict <ide> from collections import Iterable <add>from collections import defaultdict <ide> from .utils.generic_utils import Progbar <ide> from . import backend as K <ide> from .engine.training_utils import standardize...
5
Python
Python
remove last references to `imports85`
d041e56954bde8eadfdddd6c2a697601bc27affb
<ide><path>samples/cookbook/regression/automobile_data.py <ide> # See the License for the specific language governing permissions and <ide> # limitations under the License. <ide> # ============================================================================== <del>"""A dataset loader for imports85.data.""" <add>"""Util...
1
Java
Java
measure time to create reactinstancemanager
6224ef5301d67266b28c77e5e46816f319122f38
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java <ide> <ide> import com.facebook.infer.annotation.Assertions; <ide> import com.facebook.react.bridge.JavaScriptExecutorFactory; <add>import com.facebook.react.bridge.ReactMarker; <add>import com.facebook.react.bridge.ReactMarkerConstants; <id...
1
Ruby
Ruby
explain method invertible_for [ci skip]
d4dad040c39495f30b097f7178d13c40c2e19847
<ide><path>activerecord/lib/active_record/associations/association.rb <ide> def inverse_reflection_for(record) <ide> reflection.inverse_of <ide> end <ide> <del> # Is this association invertible? Can be redefined by subclasses. <add> # Returns true if inverse association on the given rec...
1
PHP
PHP
add comment to many to many
4b43571517918f58d76a64476c7ddbdc3995f849
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function morphMany($related, $name, $type = null, $id = null) <ide> { <ide> $instance = new $related; <ide> <add> // Here we will gather up the morph type and ID for the relationship so that we <add> // can properly query the intermediate table of...
1
Python
Python
parametrize pep3118 scalar tests
53bb95d65c874e4d5f9d7735460a0d7a07024de5
<ide><path>numpy/core/tests/test_scalarbuffer.py <ide> (np.cdouble, 'Zd'), <ide> (np.clongdouble, 'Zg'), <ide> ] <add>scalars_only, codes_only = zip(*scalars_and_codes) <ide> <ide> <ide> @pytest.mark.skipif(sys.version_info.major < 3, <ide> reason="Python 2 scalars lack a buffer interface"...
1
Javascript
Javascript
touch instrumentation interface
3fb11eed9a166ebab23b778662f54c449fcffad0
<ide><path>packages/react-native-renderer/src/legacy-events/ResponderTouchHistoryStore.js <ide> function printTouchBank(): string { <ide> return printed; <ide> } <ide> <add>let instrumentationCallback: ?(string, TouchEvent) => void; <add> <ide> const ResponderTouchHistoryStore = { <add> /** <add> * Registers a li...
1
Javascript
Javascript
add tests for default source map extensions
a2cc0313abfb6f960a1a955e08b1777d50037b4b
<ide><path>test/ConfigTestCases.test.js <ide> describe("ConfigTestCases", () => { <ide> }); <ide> let testConfig = { <ide> findBundle: function(i, options) { <add> const ext = path.extname(options.output.filename); <ide> if ( <ide> fs.existsSync( <del> p...
10
Javascript
Javascript
add degreestoradians / radianstodegrees to math
b11e805560f6f10de27ee46c21505ca22fb31f0c
<ide><path>src/math/Math.js <ide> THREE.Math = { <ide> <ide> } <ide> <add> degreesToRadians: function( degrees ) { <add> <add> return degrees * THREE.Math.__d2r; <add> <add> }; <add> <add> radiansToDegrees: function( radians ) { <add> <add> return radians * THREE.Math.__r2d; <add> <add> }; <add> <add> <ide> }; <...
1
Ruby
Ruby
use symbols for spec iteration
675e80e9aedb104c9a1814d8c1450d8debb3147b
<ide><path>Library/Homebrew/formula_auditor.rb <ide> def audit_homepage <ide> <ide> return unless DevelopmentTools.curl_handles_most_https_certificates? <ide> <del> use_homebrew_curl = false <del> %w[Stable HEAD].each do |name| <del> spec_name = name.downcase.to_sym <del> next unless (sp...
1
PHP
PHP
fix example code
9e9320976fe16412c3bda142775715ec2d6c131e
<ide><path>src/Routing/Router.php <ide> public static function reload() <ide> * <ide> * ``` <ide> * Router::addUrlFilter(function ($params, $request) { <del> * if (isset($request->params['lang']) && !isset($params['lang']) { <add> * if (isset($request->params['lang']) && !isset($params['lang'])...
1
Ruby
Ruby
remove redundant dep for meson
f3e15955b3cc698b532b4cbd0c9cd92da49ab2b6
<ide><path>Library/Homebrew/formula_creator.rb <ide> class #{Formulary.class_s(name)} < Formula <ide> <% end %> <ide> sha256 "#{sha256}" <ide> <% end %> <add> <ide> <% if mode == :cmake %> <ide> depends_on "cmake" => :build <ide> <% elsif mode == :meson %> <ide> ...
1
Java
Java
fix error messages to match commit #1a9556
b651c10e83e6876bffa54d057ec15bc2f630c017
<ide><path>spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolverTests.java <ide> /* <del> * Copyright 2002-2019 the original author or authors. <add> * Copyright 2002-2021 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (...
1