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
remove isintance change for contrib strategy
21a4ad75c845ffaf9602318ab9c837977d5a9852
<ide><path>official/resnet/resnet_run_loop.py <ide> def input_fn_eval(): <ide> train_epochs = (0 if flags_obj.eval_only or not flags_obj.train_epochs else <ide> flags_obj.train_epochs) <ide> <del> use_train_and_evaluate = flags_obj.use_train_and_evaluate or isinstance( <del> distribution_stra...
1
Ruby
Ruby
upgrade outdated formulae with `brew install`
56e6710064bcbe8edc1caa97ed0bfb6ac8450e99
<ide><path>Library/Homebrew/cmd/install.rb <ide> def install_formula(f, args:) <ide> f.print_tap_action <ide> build_options = f.build <ide> <add> if f.outdated? && !f.head? <add> formulae = [f] + f.old_installed_formulae <add> version_upgrade = "#{f.linked_version} -> #{f.pkg_version}" <add> <add>...
2
Ruby
Ruby
fix rubocop warnings
7b41ccd2ea842f81929c747d3a558123f98834be
<ide><path>Library/Homebrew/cmd/unlinkapps.rb <ide> def unlinkapps_from_dir(target_dir, opts = {}) <ide> <ide> def unlinkapps_unlink?(target_app, opts = {}) <ide> # Skip non-symlinks and symlinks that don't point into the Homebrew prefix. <del> app = "#{target_app.readlink}" if target_app.symlink? <add> ap...
1
Javascript
Javascript
use transform prop in panresponderexample
917f83c94043d78b1c7dd301abb5716db2b5d563
<ide><path>packages/rn-tester/js/examples/PanResponder/PanResponderExample.js <ide> class PanResponderExample extends React.Component<Props, State> { <ide> styles.circle, <ide> // $FlowFixMe[incompatible-type] <ide> { <del> translateX: this.state.left, <del> ...
1
Javascript
Javascript
reject pending promises when animation is updated
b55b361f97461996eec01c6013c6617601c77b12
<ide><path>src/core/core.animation.js <ide> export default class Animation { <ide> update(cfg, to, date) { <ide> const me = this; <ide> if (me._active) { <add> me._notify(false); <add> <ide> const currentValue = me._target[me._prop]; <ide> const elapsed = date - me._start; <ide> const remain = me._durat...
3
Text
Text
add new introductory article about tailwind css
c05d680589428ebae4d9a76909782f8e65f3e6ef
<ide><path>guide/english/tailwindcss/index.md <add>--- <add>title: Tailwind CSS <add>--- <add># Tailwind CSS <add> <add>[Tailwind CSS](https://tailwindcss.com/) is a CSS framework following the "utility-first CSS" approach, a [term coined by Adam Wathan](https://twitter.com/adamwathan/status/1019206835335618560), who i...
1
Ruby
Ruby
use build_head here too
826ab8be71a7e3d5acbfed0f3ea4a6cd3498f6eb
<ide><path>Library/Homebrew/formula.rb <ide> def initialize name='__UNKNOWN__' <ide> set_instance_variable 'head' <ide> set_instance_variable 'specs' <ide> <del> if @head and (not @url or ARGV.flag? '--HEAD') <add> if @head and (not @url or ARGV.build_head?) <ide> @url=@head <ide> @version='H...
1
Text
Text
add missing docs for rm
88326e9b91435d2183f943a2905fa516d0b5d78e
<ide><path>docs/sources/reference/api/docker_remote_api_v1.14.md <ide> Remove the container `id` from the filesystem <ide> <ide> - **v** – 1/True/true or 0/False/false, Remove the volumes <ide> associated to the container. Default false <del> - **force** – 1/True/true or 0/False/false, Removes the c...
1
Python
Python
suppress any exception in wasb task handler
59da94342813d382a768d064ac9cfd0245825679
<ide><path>airflow/providers/microsoft/azure/log/wasb_task_handler.py <ide> import shutil <ide> from typing import Any <ide> <del>from azure.common import AzureHttpError <del> <ide> from airflow.compat.functools import cached_property <ide> from airflow.configuration import conf <ide> from airflow.utils.log.file_task_...
2
Python
Python
add subnet update
aedebcf9fbd062dae72a63f429c5213e21cc8eb8
<ide><path>libcloud/compute/drivers/openstack.py <ide> def ex_delete_subnet(self, subnet): <ide> self._subnets_url_prefix, subnet.id), method='DELETE') <ide> return resp.status in (httplib.NO_CONTENT, httplib.ACCEPTED) <ide> <add> def ex_update_subnet(self, subnet, **kwargs): <add> """ <a...
2
Java
Java
make extractor generic
839756b6d4d02463db1647c0bcabd5712e54808c
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java <ide> public abstract class BaseJavaModule implements NativeModule { <ide> static final public String METHOD_TYPE_REMOTE = "remote"; <ide> static final public String METHOD_TYPE_REMOTE_ASYNC = "remoteAsync"; <ide> <del> private st...
1
Javascript
Javascript
use double quotes
45d9959751bbe95aa7880593791245ba41c91af0
<ide><path>lib/EnvironmentPlugin.js <ide> class EnvironmentPlugin { <ide> compiler.plugin("this-compilation", compilation => { <ide> const error = new Error( <ide> `EnvironmentPlugin - ${key} environment variable is undefined.\n\n` + <del> `You can pass an object with default values to suppress this...
1
Javascript
Javascript
reduce false-positives in iselement tests
5fe1f39f027c6f2c6a530975dd5389d788d3c0eb
<ide><path>src/ng/parse.js <ide> function ensureSafeObject(obj, fullExpression) { <ide> 'Referencing the Window in Angular expressions is disallowed! Expression: {0}', <ide> fullExpression); <ide> } else if (// isElement(obj) <del> obj.children && (obj.nodeName || (obj.on && obj.find))) {...
2
PHP
PHP
add string to docblocks
5319ddba567b3ccd94a21371a7ec760e4059e8a2
<ide><path>src/Illuminate/Collections/Enumerable.php <ide> public function nth($step, $offset = 0); <ide> /** <ide> * Get the items with the specified keys. <ide> * <del> * @param \Illuminate\Support\Enumerable<array-key, TKey>|array<array-key, TKey> $keys <add> * @param \Illuminate\Support\Enu...
2
Javascript
Javascript
remove dependency on $window
7e49d37a982bea6d0e323c1f7655a54d5956311a
<ide><path>src/ng/urlUtils.js <ide> 'use strict'; <ide> <ide> function $$UrlUtilsProvider() { <del> this.$get = ['$window', '$document', function($window, $document) { <add> this.$get = ['$document', function($document) { <ide> var urlParsingNode = $document[0].createElement("a"), <del> originUrl = resolv...
1
Java
Java
avoid double conversionfailedexception nesting
8e5c033446c6435d631107f73d83eeb413998628
<ide><path>org.springframework.core/src/main/java/org/springframework/core/convert/support/ConversionUtils.java <ide> public static Object invokeConverter(GenericConverter converter, Object source, <ide> try { <ide> return converter.convert(source, sourceType, targetType); <ide> } <add> catch (ConversionFailedE...
2
PHP
PHP
add test for capsulemanagertrait and fixes a typo
0d4b6eecc83ea43c48a3dad18be594167de4d2bc
<ide><path>tests/Support/SupportCapsuleManagerTraitTest.php <add><?php <add> <add>use Mockery as m; <add>use Illuminate\Container\Container; <add>use Illuminate\Support\Traits\CapsuleManagerTrait; <add> <add>class SupportCapsuleManagerTraitTest extends \PHPUnit_Framework_TestCase { <add> <add> use CapsuleManagerTrait; ...
2
Python
Python
try import instead of having it required
2e8080439e1d1e70bf6419d4ede68a0ba28ec61f
<ide><path>airflow/www/views.py <ide> def run(self): <ide> force = request.args.get('force') == "true" <ide> deps = request.args.get('deps') == "true" <ide> <del> from airflow.executors import DEFAULT_EXECUTOR as executor <del> from airflow.executors import CeleryExecutor <del> if ...
1
PHP
PHP
remove trailing , for php 7.2
e83d4dc0bdf881f0de78232d169e5f9c4181c6ee
<ide><path>tests/TestCase/Http/Client/Auth/OauthTest.php <ide> public function testBaseStringWithXmlPostData() <ide> [ <ide> 'Content-Type' => 'application/xml', <ide> ], <del> '<xml>stuff</xml>', <add> '<xml>stuff</xml>' <ide> ); <ide> <ide> ...
1
Ruby
Ruby
install gcc if needed
8c6c644a6b1ae4d3ae377fbb4a869aaa1ce84095
<ide><path>Library/Contributions/cmd/brew-test-bot.rb <ide> def formula formula <ide> return <ide> end <ide> <add> begin <add> CompilerSelector.new(formula_object).compiler <add> rescue CompilerSelectionError <add> test "brew install apple-gcc42" <add> end <add> <ide> test "brew fetch ...
1
Python
Python
fix typo in msvc runtime info for mingw
16f3279fa7aee9b4f3c8562e7f160f1259a50497
<ide><path>numpy/distutils/mingw32ccompiler.py <ide> def _build_import_library_x86(): <ide> _MSVCRVER_TO_FULLVER['90'] = "9.0.21022.8" <ide> # I took one version in my SxS directory: no idea if it is the good <ide> # one, and we can't retrieve it from python <del> _MSVCRVER_TO_FULLVER...
1
Ruby
Ruby
expand glob patterns
5c185eaa4355810ccc6617cb078ee67d4fa0777c
<ide><path>Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb <ide> def self.expand_path_strings(path_strings) <ide> end <ide> end <ide> <add> def self.expand_glob(path_strings) <add> path_strings.flat_map(&Pathname.method(:glob)) <add> end <add> <ide> def self.remove_relativ...
8
Ruby
Ruby
make `assert_index` private
a1772bba5d41492cf069b34d0c10df9c9a8af189
<ide><path>actionpack/lib/action_dispatch/middleware/stack.rb <ide> def build(app = Proc.new) <ide> middlewares.freeze.reverse.inject(app) { |a, e| e.build(a) } <ide> end <ide> <del> protected <add> private <ide> <ide> def assert_index(index, where) <ide> index = get_class index <ide> def asse...
1
Ruby
Ruby
prefer array.wrap to array()
18d497651628c73287f3e808c3807121ad36e278
<ide><path>activesupport/lib/active_support/rescuable.rb <add>require 'active_support/core_ext/array/wrap' <ide> require 'active_support/core_ext/class/inheritable_attributes' <ide> require 'active_support/core_ext/proc' <ide> <ide> def rescue_with_handler(exception) <ide> def handler_for_rescue(exception) <ide> ...
1
PHP
PHP
fix phpdoc block for eloquent model find method
9a6b77518d16c7a4933cd4f25fe544a2c5325151
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public static function all($columns = array('*')) <ide> * <ide> * @param mixed $id <ide> * @param array $columns <del> * @return \Illuminate\Support\Collection|static <add> * @return \Illuminate\Support\Collection|static|null <ide> */ <ide> publ...
1
Text
Text
add example for file existence with fs.stat
23b9625c84e702f17b010bb653df132154ab6cad
<ide><path>doc/api/fs.md <ide> Asynchronous stat(2). The callback gets two arguments `(err, stats)` where <ide> `stats` is a [`fs.Stats`][] object. See the [`fs.Stats`][] section for more <ide> information. <ide> <add>In case of an error, the `err.code` will be one of [Common System Errors][]. <add> <add>Using `fs.st...
1
Go
Go
add imageexists to docker utils
eb1e8e884d92a7086af96663d0c658d838315490
<ide><path>integration-cli/docker_utils.go <ide> func deleteImages(images string) error { <ide> return err <ide> } <ide> <add>func imageExists(image string) error { <add> inspectCmd := exec.Command(dockerBinary, "inspect", image) <add> exitCode, err := runCommand(inspectCmd) <add> if exitCode != 0 && err == nil { <ad...
1
Text
Text
clarify swarm concept
e0296317131782008dcb94c72d591244663d61b1
<ide><path>docs/swarm/key-concepts.md <ide> are built using **SwarmKit**. Engines participating in a cluster are <ide> running in **swarm mode**. You enable swarm mode for the Engine by either <ide> initializing a swarm or joining an existing swarm. <ide> <del>A **swarm** is a self-organizing cluster of Docker Engines...
1
Go
Go
add unit tests for buildfile config instructions
e7f3f6fa5a10f890a1774a2320d31e236af56be9
<ide><path>buildfile_test.go <ide> CMD Hello world <ide> <ide> func TestBuild(t *testing.T) { <ide> for _, ctx := range testContexts { <del> runtime := mkRuntime(t) <del> defer nuke(runtime) <del> <del> srv := &Server{ <del> runtime: runtime, <del> pullingPool: make(map[string]struct{}), <del> pushingPoo...
1
Javascript
Javascript
allow falsy values as option group identifiers
b71d7c3f3c04e65b02d88b33c22dd90ae3cdfc27
<ide><path>src/ng/directive/ngOptions.js <ide> var ngOptionsDirective = ['$compile', '$parse', function($compile, $parse) { <ide> var groupElement; <ide> var optionElement; <ide> <del> if (option.group) { <add> if (isDefined(option.group)) { <ide> <ide> // This option...
2
Ruby
Ruby
fix dry run
9abd7d31bd1db07e572a5f2dbc864ab538e811bc
<ide><path>Library/Homebrew/cleanup.rb <ide> def cleanup_path(path) <ide> <ide> if dry_run? <ide> puts "Would remove: #{path} (#{path.abv})" <add> @disk_cleanup_size += disk_usage <ide> else <ide> puts "Removing: #{path}... (#{path.abv})" <ide> yield <add> @disk_cleanu...
1
Javascript
Javascript
move element cache to element[expando]
d702b7637a61e1973e08c27b8d8de2ed24a543e2
<ide><path>src/data/Data.js <ide> define([ <ide> ], function( jQuery, rnotwhite ) { <ide> <ide> function Data() { <del> // Support: Android<4, <del> // Old WebKit does not have Object.preventExtensions/freeze method, <del> // return new empty object instead with no [[set]] accessor <del> Object.defineProperty( this.ca...
4
Javascript
Javascript
add a shim for hmrclient in prod bundles
abc663dd5a1f6968f4571a80384dbd702340de45
<ide><path>Libraries/Core/setUpBatchedBridge.js <ide> if (!global.RN$Bridgeless) { <ide> 'HMRClient', <ide> require('../Utilities/HMRClient'), <ide> ); <add> } else { <add> BatchedBridge.registerCallableModule( <add> 'HMRClient', <add> require('../Utilities/HMRClientProdShim'), <add> );...
3
Ruby
Ruby
save encrypted config even if yaml is invalid
772c462738339bfc1637d2cbfca7bd6cd455bb9e
<ide><path>activesupport/lib/active_support/encrypted_configuration.rb <ide> <ide> module ActiveSupport <ide> class EncryptedConfiguration < EncryptedFile <add> class InvalidContentError < RuntimeError <add> def initialize(content_path) <add> super "Invalid YAML in '#{content_path}'." <add> end <...
6
Java
Java
fix checkstyle violation
b28f403bf8314d27704b789a0eeda11f74aaf886
<ide><path>spring-web/src/test/java/org/springframework/web/util/UrlPathHelperTests.java <ide> import org.springframework.web.testfixture.servlet.MockHttpServletRequest; <ide> <ide> import static org.assertj.core.api.Assertions.assertThat; <del>import static org.assertj.core.api.Assertions.assertThatExceptionOfType; <...
1
Javascript
Javascript
add constant kmaxcallbacksuntilqueueisshortened
aa05209d6db3ae7f8b28f29492f3d136daf3c7f8
<ide><path>lib/internal/process/next_tick.js <ide> 'use strict'; <ide> <add>// This value is used to prevent the nextTickQueue from becoming too <add>// large and cause the process to run out of memory. When this value <add>// is reached the nextTimeQueue array will be shortend (see tickDone <add>// for details). <add...
1
Javascript
Javascript
parse query string in using urlsearchparams
fe95e100e42139fbc340e466c54dd0a61c9e2b2d
<ide><path>test/driver.js <ide> var Driver = (function DriverClosure() { <ide> <ide> Driver.prototype = { <ide> _getQueryStringParameters: function Driver_getQueryStringParameters() { <del> var queryString = window.location.search.substring(1); <del> var values = queryString.split("&"); <del> var ...
3
Javascript
Javascript
make hot loading faster
e75e861116b99de0d1815ecf5eb025e125177e06
<ide><path>local-cli/server/util/attachHMRServer.js <ide> function attachHMRServer({httpServer, path, packagerServer}) { <ide> <ide> function disconnect() { <ide> client = null; <add> packagerServer.setHMRFileChangeListener(null); <ide> } <ide> <ide> // Returns a promise with the full list of dependencie...
2
Javascript
Javascript
fix a typo in spec description
f9eb324716972bd5d43a83186977f278983c8ec9
<ide><path>test/ng/rootScopeSpec.js <ide> describe('Scope', function() { <ide> })); <ide> <ide> <del> it('should decrement anscestor $$listenerCount entries', inject(function($rootScope) { <add> it('should decrement ancestor $$listenerCount entries', inject(function($rootScope) { <ide> var EVENT = 'fo...
1
Text
Text
add sponsor link
52f69fcf2529501bed81b2bc5b036c4edd729cd5
<ide><path>README.md <ide> We would like to extend our thanks to the following sponsors for funding Laravel <ide> - [Hyper Host](https://hyper.host) <ide> - [Appoly](https://www.appoly.co.uk) <ide> - [OP.GG](https://op.gg) <add>- [云软科技](http://www.yunruan.ltd/) <ide> <ide> ## Contributing <ide>
1
Ruby
Ruby
add system curl <10.7 check
c992749986a949e84b62dcc4070751652d355b31
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_user_path_3 <ide> end <ide> end <ide> <add> def check_for_bad_curl <add> if MacOS.version <= "10.6" && !Formula["curl"].installed? then <<-EOS.undent <add> The system curl on 10.6 and below is often incapable of supporting <add> modern secur...
1
Python
Python
remove dumbass meaningless test
bd28e43ce48651669f36a3bc3d56cf55a2eb20fd
<ide><path>djangorestframework/tests/renderers.py <ide> def test_conflicting_format_query_and_accept_ignores_accept(self): <ide> self.assertEquals(resp.content, RENDERER_B_SERIALIZER(DUMMYCONTENT)) <ide> self.assertEquals(resp.status_code, DUMMYSTATUS) <ide> <del> def test_bla(self): # What the f**...
1
Text
Text
fix italics in readme
d82a6057a18f75518a99add37ad4b8c31b087b9a
<ide><path>examples/with-dynamic-app-layout/README.md <ide> # With dynamic `App` layout example <ide> <del>Shows how to use _app.js to implement \_dynamic_ layouts for pages. This is achieved by attaching a static `Layout` property to each page that needs a different layout. In that way, once we use `_app.js` to wrap ...
1
Text
Text
update dataset examples
576a37d19b0af6aac318d167673333d342150529
<ide><path>research/deeplab/g3doc/cityscapes.md <ide> A local training job using `xception_65` can be run with the following command: <ide> python deeplab/train.py \ <ide> --logtostderr \ <ide> <<<<<<< HEAD <add><<<<<<< HEAD <add>======= <add> --training_number_of_steps=90000 \ <add>>>>>>>> origin/master <ide> =...
2
Text
Text
adjust readme of example
0b1ef7cbf45ee23694b83b9efbf62eb9bd29f6c9
<ide><path>examples/with-zones/README.md <ide> cd with-zones <ide> <ide> ## Notes <ide> <del>In this example, we have two apps: 'home' and 'blog'. We'll start both apps with [Now](https://zeit.co/now): <del> <del>```bash <del>now dev <del>``` <del> <del>Then, you can visit <http://localhost:3000> and develop for both...
1
Python
Python
create beaufort cipher
3bbec1db49eea0598412aa839ed055d151541443
<ide><path>ciphers/beaufort_cipher.py <add>""" <add>Author: Mohit Radadiya <add>""" <add> <add>from string import ascii_uppercase <add> <add>dict1 = {char: i for i, char in enumerate(ascii_uppercase)} <add>dict2 = {i: char for i, char in enumerate(ascii_uppercase)} <add> <add> <add># This function generates the key in ...
1
Python
Python
improve error message
8c52008043c3fd3ebf5ad8ec20d85100388f52ed
<ide><path>libcloud/common/base.py <ide> def request(self, action, params=None, data=None, headers=None, <ide> # with hostname" error. This error could simpli indicate that <ide> # "host" Connection class attribute is set to an incorrect <ide> # value <del> ...
1
Javascript
Javascript
eliminate duplicate statements
a10962187f3885e691e053839402ccf7a40e852c
<ide><path>test/parallel/test-crypto-rsa-dsa.js <ide> const decryptError = { <ide> { <ide> const input = 'I AM THE WALRUS'; <ide> const bufferToEncrypt = Buffer.from(input); <add> const bufferPassword = Buffer.from('password'); <ide> <ide> let encryptedBuffer = crypto.publicEncrypt(rsaPubPem, bufferToEncrypt); ...
1
Python
Python
add regression tests so they get loaded
4c2a11b0f32caee44b18fd521a2e62006a19f72f
<ide><path>numpy/core/tests/test_multiarray.py <ide> def check_basic(self): <ide> # Import tests from unicode <ide> set_local_path() <ide> from test_unicode import * <add>from test_regression import * <ide> restore_path() <ide> <ide> if __name__ == "__main__":
1
Ruby
Ruby
remove unnecessary cd
4ce99fa0102c352f79071d8ae6aa64078ed1493d
<ide><path>Library/Homebrew/test/test_integration_cmds.rb <ide> class Testball < Formula <ide> url "https://example.com/testball-0.1.tar.gz" <ide> end <ide> EOS <del> HOMEBREW_CACHE.cd do <del> assert_match(/testball-0\.1.*\.bottle\.tar\.gz/, <del> cmd_output("bottle", "--no-...
1
PHP
PHP
add no migrations event
dba3cbecbc1d695bb87534c413f3966f06afc96e
<ide><path>src/Illuminate/Database/Events/NoMigrations.php <add><?php <add> <add>namespace Illuminate\Database\Events; <add> <add>class NoMigrations <add>{ <add> /** <add> * The migration method that was called. <add> * <add> * @var string <add> */ <add> public $method; <add> <add> /** <add> ...
4
Go
Go
add setupinitlayer() placeholder for solaris
eb2fbaa3f2c59bf4a78a3f642fe99a74e3e33b3e
<ide><path>daemon/daemon_solaris.go <ide> func setupDaemonRoot(config *Config, rootDir string, rootUID, rootGID int) error <ide> return nil <ide> } <ide> <add>func (daemon *Daemon) getLayerInit() func(string) error { <add> return nil <add>} <add> <ide> // setupInitLayer populates a directory with mountpoints suitable...
1
Javascript
Javascript
add accessibility toggle
c5d4bedda5d4cbb751a5d170f3c83ec684dae70d
<ide><path>client/src/templates/Challenges/classic/Editor.js <ide> import { createSelector } from 'reselect'; <ide> import { <ide> canFocusEditorSelector, <ide> executeChallenge, <add> inAccessibilityModeSelector, <ide> setEditorFocusability, <add> setAccessibilityMode, <ide> updateFile <ide> } from '../redux...
2
Mixed
Javascript
improve example build and test
0d980a75ba82f0f7937cbcdc321574b833db139b
<ide><path>examples/build-common.js <ide> const doCompileAndReplace = (args, prefix, callback) => { <ide> }; <ide> <ide> async.series([ <del> callback => doCompileAndReplace("--mode production", "production", callback), <del> callback => doCompileAndReplace("--mode development --devtool none", "development", callback)...
4
Text
Text
fix pr-url for dep0148
b586c6a7ee648c9e9f9e0b65ba57d70097303e61
<ide><path>doc/api/deprecations.md <ide> Use `fs.rm(path, { recursive: true, force: true })` instead. <ide> <!-- YAML <ide> changes: <ide> - version: v15.1.0 <del> pr-url: https://github.com/nodejs/node/pull/35746 <add> pr-url: https://github.com/nodejs/node/pull/35747 <ide> description: Runtime deprecation...
1
Python
Python
add numeric check to to_n_bytes_from_memory_str
629b2efa9875e327ba9cd1869688645c4ea89c73
<ide><path>libcloud/utils/misc.py <ide> def to_n_bytes_from_memory_str(memory_str): <ide> """ <ide> if memory_str.startswith("0"): <ide> return 0 <add> if memory_str.isnumeric(): <add> return int(memory_str) <ide> for unit, multiplier in K8S_UNIT_MAP.items(): <ide> if memory_str.en...
1
Javascript
Javascript
remove enumerable.detect checks
764b8a71c87785478d0ffa44f095c3762e5ff9d0
<ide><path>packages/ember-runtime/lib/mixins/mutable_array.js <ide> import { <ide> beginPropertyChanges, <ide> endPropertyChanges <ide> } from 'ember-metal'; <del>import Enumerable from './enumerable'; <ide> import MutableEnumerable from './mutable_enumerable'; <ide> import EmberArray, { objectAt } from './array'; ...
2
Javascript
Javascript
fix bug with setbounds #65
078e49f9c41e2455d09dfda8b04f0ef5aa8c3826
<ide><path>dist/Immutable.dev.js <ide> var $Vector = Vector; <ide> var offsetShift = 0; <ide> while (newOrigin + offsetShift < 0) { <ide> newRoot = new VNode(newRoot.array.length ? [, newRoot] : [], owner); <del> offsetShift += 1 << newLevel; <ide> newLevel += SHIFT; <add> offsetShift += 1...
3
Javascript
Javascript
use new build that fixes md links and checks them
5877f6b0408d3a3b186b13c985e0e52494a022cc
<ide><path>Gruntfile.js <ide> module.exports = function(grunt) { <ide> const buildStuff = require('./build/js/build'); <ide> const finish = this.async(); <ide> buildStuff({ <add> outDir: 'out', <ide> baseUrl: 'http://threejsfundamentals.org', <ide> rootFolder: 'threejs', <ide> lessonG...
2
Text
Text
use commas consistently (mutating/array functions)
ec414f01dca4f010527b845b6ecf33ca88256f98
<ide><path>README.md <ide> of [ES2015][] [Array][], [Map][], and [Set][]. <ide> [Set]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set <ide> <ide> The difference for the immutable collections is that methods which would mutate <del>the collection, like `push`, `set`, `unshift` or `...
1
Text
Text
fix tutorial instruction to also add pyyaml
dc6b3bf42e53c6bfdb597a67de931913c8bd0255
<ide><path>docs/tutorial/7-schemas-and-client-libraries.md <ide> automatically generated schemas. Since we're using viewsets and routers, <ide> we can simply use the automatic schema generation. <ide> <ide> You'll need to install the `coreapi` python package in order to include an <del>API schema. <add>API schema, and...
1
Ruby
Ruby
fix force_homebrew_on_linux behaviour
a867e78f62c807b65ff4f80587d1a512252febf0
<ide><path>Library/Homebrew/extend/os/mac/software_spec.rb <ide> # typed: false <ide> # frozen_string_literal: true <ide> <add># The Library/Homebrew/extend/os/software_spec.rb conditional logic will need to be more nuanced <add># if this file ever includes more than `uses_from_macos`. <ide> class SoftwareSpec <ide> ...
2
Java
Java
call purge periodically on jdk 6 to avoid
b5aaf82ea8c7addd2cd197f1c61ddec9ee5ee962
<ide><path>src/main/java/rx/internal/schedulers/NewThreadWorker.java <ide> package rx.internal.schedulers; <ide> <ide> import java.lang.reflect.Method; <add>import java.util.Iterator; <ide> import java.util.concurrent.*; <add>import java.util.concurrent.atomic.AtomicReference; <ide> <ide> import rx.*; <add>import rx....
4
Text
Text
fix some typos in docs
05a82e957c0fb75e4a58057b133dbcddd816112e
<ide><path>docs/sources/layers/core.md <ide> ## Base class <ide> <del>Note: Where ever we refer to a "Tensor" bear in mind that its type depends on the backend you are using. <add>Note: Where ever we refer to a *Tensor*, bear in mind that its type depends on the backend you are using. <ide> <ide> ```python <ide> kera...
1
Go
Go
add deviceset interface
e6216793d91a9b003814b535b0373902326753dd
<ide><path>deviceset.go <add>package docker <add> <add>type DeviceSet interface { <add> AddDevice(hash, baseHash string) error <add> SetInitialized(hash string) error <add> DeactivateDevice(hash string) error <add> RemoveDevice(hash string) error <add> MountDevice(hash, path string) error <add> HasDevice(hash string) b...
1
Python
Python
get app from first task
8c9cb819b1e112fe61eb76a9338069f244a7cb8a
<ide><path>celery/result.py <ide> class ResultSet(ResultBase): <ide> :param results: List of result instances. <ide> <ide> """ <del> app = None <add> _app = None <ide> <ide> #: List of results in in the set. <ide> results = None <ide> <ide> def __init__(self, results, app=None, **kwargs): <...
1
Ruby
Ruby
fix directory leak in test_cleanup
9a6d2a31d9cf7e608d575b1507cd6d287b770988
<ide><path>Library/Homebrew/test/test_cmd_cleanup.rb <ide> def test_cleanup <ide> refute_predicate f1, :installed? <ide> refute_predicate f2, :installed? <ide> assert_predicate f3, :installed? <add> ensure <add> [f1, f2, f3].each(&:clear_cache) <add> f3.rack.rmtree <ide> end <ide> end
1
Java
Java
make objectutils.addobjecttoarray() generic
b04987ccc37985eae59a2b5cc19a1c6ea5d6c844
<ide><path>org.springframework.beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionBuilder.java <ide> public BeanDefinitionBuilder addDependsOn(String beanName) { <ide> this.beanDefinition.setDependsOn(new String[] {beanName}); <ide> } <ide> else { <del> String[] added = (String[]) Obje...
4
Java
Java
introduce soft assertions for mockmvc
35bec8102b014feac18c5b096b39c3592c27b76e
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/ResultActions.java <ide> public interface ResultActions { <ide> * .andExpect(jsonPath("$.person.name").value("Jason")); <ide> * </pre> <ide> * <del> * <p>Or alternatively provide all matchers as a vararg: <add> * <p>Either provide all m...
3
Text
Text
add more examples
7d97f26870a6ec74281bc7d3651604dc7eb33b93
<ide><path>docs/docs/refactor/09-reference.md <ide> React has implemented a browser-independent events and DOM system for performanc <ide> <ide> * React powers all of Instagram.com and many components on Facebook.com, including the commenting interface, ads creation flows, and page insights. <ide> * We've included [a ...
1
Javascript
Javascript
click propagation change
8248e77a7b910bcbc71ca25c06bef44dd6712990
<ide><path>src/directives.js <ide> angularWidget("@ng:repeat", function(expression, element){ <ide> }; <ide> }); <ide> <add> <add>/* <add> * A directive that allows creation of custom onclick handlers that are defined as angular <add> * expressions and are compiled and executed within the current scope. <add> * <add...
4
Text
Text
emphasize module bundlers for browser use
a44b738a4bf51d0b4a8a22c0247bef0ad52011c7
<ide><path>README.md <ide> map1.get('b') + " vs. " + map2.get('b') // 2 vs. 50 <ide> <ide> ### Browser <ide> <del>To use Immutable.js from a browser, download [dist/immutable.min.js](https://github.com/facebook/immutable-js/blob/master/dist/immutable.min.js) <del>or use a CDN such as [CDNJS](https://cdnjs.com/librari...
1
Javascript
Javascript
upgrade dllmodule to es6
0af2125943acc7729654178a3b6e2e117c09813a
<ide><path>lib/DllModule.js <ide> /* <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <del>*/ <del>var Module = require("./Module"); <del>var RawSource = require("webpack-sources").RawSource; <del> <del>function DllModule(context, dependencies, name, type) { <del...
1
Python
Python
fix typos in models.py
9259772e679c847304f5637e5bb7ce1aa3a9db8d
<ide><path>airflow/models.py <ide> class derived from this one results in the creation of a task object, <ide> which ultimately becomes a node in DAG objects. Task dependencies should <ide> be set by using the set_upstream and/or set_downstream methods. <ide> <del> Note that this class is derived from SQLAl...
1
Javascript
Javascript
fix missing chart.chart (deprecated) alias
87a74f99a1e73fef3ebd314a11c322829c3d7cd1
<ide><path>src/index.js <ide> if (typeof window !== 'undefined') { <ide> <ide> // DEPRECATIONS <ide> <add>/** <add> * Provided for backward compatibility, not available anymore <add> * @namespace Chart.Chart <add> * @deprecated since version 2.8.0 <add> * @todo remove at version 3 <add> * @private <add> */ <add>Chart...
2
PHP
PHP
fix several things
6af7b2102fdec7e33cead64b335f58664f9a3ea9
<ide><path>src/Illuminate/Foundation/helpers.php <ide> function logger($message = null, array $context = []) <ide> <ide> if (!function_exists('method_field')) { <ide> /** <del> * Generate a method spoof form field for POST method's. <add> * Generate a form field to spoof the HTTP verb used by forms. <ide> ...
1
Ruby
Ruby
fix "instance variable not initialized" in tests
31ef17a5ebf9bb414a20c9cf63c21ae8b8a39cd7
<ide><path>actionpack/test/assertions/response_assertions_test.rb <ide> def initialize(*) <ide> end <ide> end <ide> <add> def setup <add> @controller = nil <add> @request = nil <add> end <add> <ide> def test_assert_response_predicate_methods <ide> [:success, :missing...
1
Go
Go
fix config load error with ulimits
e3164842f34a55048af709ee827566e4950aa508
<ide><path>daemon/config.go <ide> var flatOptions = map[string]bool{ <ide> "cluster-store-opts": true, <ide> "log-opts": true, <ide> "runtimes": true, <add> "default-ulimits": true, <ide> } <ide> <ide> // LogConfig represents the default log configuration. <ide><path>daemon/config_test.go <id...
4
Python
Python
send model to the correct device
da5bb2921907c398e61ea1b73fd22d13938fc427
<ide><path>tests/models/speech_encoder_decoder/test_modeling_speech_encoder_decoder.py <ide> def test_training_gradient_checkpointing(self): <ide> ) <ide> <ide> model = SpeechEncoderDecoderModel(encoder=encoder_model, decoder=decoder_model) <add> model.to(torch_device) <ide> model.train(...
2
Python
Python
fix lookup usage in french/catalan (fix )
aafee5e1b7c8d13d9ac14c438063621a18bec743
<ide><path>spacy/lang/ca/lemmatizer.py <ide> def rule_lemmatize(self, token: Token) -> List[str]: <ide> oov_forms.append(form) <ide> if not forms: <ide> forms.extend(oov_forms) <del> if not forms and string in lookup_table.keys(): <del> forms.append(self.loo...
2
Python
Python
add module doc for providers
f1a2f8de838cfdd65908138534b80d653ffc84cd
<ide><path>libcloud/providers.py <ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <ide> # See the License for the specific language governing permissions and <ide> # limitations under the License. <add>""" <add>Provider related utilities <add>""" <add> <ide> from libcloud.types import Pr...
1
Javascript
Javascript
add basic unit tests for obj.js
84d6a121af3849f3654cbef9efb7fde050baa1ea
<ide><path>src/obj.js <ide> var Name = (function NameClosure() { <ide> this.name = name; <ide> } <ide> <del> Name.prototype = { <del> }; <add> Name.prototype = {}; <ide> <ide> return Name; <ide> })(); <ide> var Cmd = (function CmdClosure() { <ide> this.cmd = cmd; <ide> } <ide> <del> Cmd.prototype =...
2
Javascript
Javascript
add text blast to example app showcase
d31b47c018180169c580d4b2ef023a248f5fefae
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> link: 'https://itunes.apple.com/us/app/thai-tone/id1064086189?mt=8', <ide> author: 'Alexey Ledak', <ide> }, <add> { <add> name: 'Text Blast', <add> icon: 'http://a3.mzstatic.com/us/r30/Purple49/v4/4f/29/58/4f2958a1-7f35-9260-6340-...
1
Python
Python
fix some pylint errors
9dd1c2c0aa2d4f4508543e9c34c2aa76678f8706
<ide><path>official/vision/beta/projects/yolo/modeling/decoders/yolo_decoder.py <ide> def get_raw_depths(self, minimum_depth, inputs): <ide> <ide> Args: <ide> minimum_depth: `int` depth of the smallest branch of the FPN. <del> inputs: `dict[str, tf.InputSpec]` of the shape of input args as a dictionary ...
2
Javascript
Javascript
add faster failure, and link to
9a6f936c8a62c1a6edad3bda0faa8d8112b7cf92
<ide><path>test/simple/test-fs-watch.js <ide> var assert = require('assert'); <ide> var path = require('path'); <ide> var fs = require('fs'); <ide> <add> <add>if (process.platform === 'darwin') { <add> assert(false, <add> 'This test is known to fail on OS X\n' + <add> 'See: https://github.com/joyent/n...
1
Ruby
Ruby
fix swift compatability check
426c6e2c3f24ec48c33c3937c96ae76ca786a495
<ide><path>Library/Homebrew/requirements/xcode_requirement.rb <ide> def initialize(tags = []) <ide> <ide> def xcode_installed_version <ide> return false unless MacOS::Xcode.installed? <add> return false unless xcode_swift_compatability? <ide> return true unless @version <del> return true if xcode_swift...
1
Text
Text
transform rest and spread properties using babel 6
ed8727ade783c5998b51ae75554af4cb391c2acc
<ide><path>docs/docs/06-transferring-props.md <ide> z; // { a: 3, b: 4 } <ide> <ide> > Note: <ide> > <del>> This proposal has reached stage 2 and is now enabled by default in Babel. Older versions of Babel may need to explicitly enable this transform with `babel --optional es7.objectRestSpread` <add>> To transform res...
1
Javascript
Javascript
use fixture files
d73a1c0b7c5b6ad4c339ebca145ad3ce850973e7
<ide><path>node-tests/blueprints/controller-test-test.js <ide> const chai = require('ember-cli-blueprint-test-helpers/chai'); <ide> const expect = chai.expect; <ide> <ide> const generateFakePackageManifest = require('../helpers/generate-fake-package-manifest'); <add>const fixture = require('../helpers/fixture'); <ide>...
4
Javascript
Javascript
fix this scope bug in test-stream2-writable.js
93df0853866bbdf40cc5877ac893e2fae1479d39
<ide><path>test/parallel/test-stream2-writable.js <ide> for (let i = 0; i < chunks.length; i++) { <ide> assert.strictEqual(this.writing, undefined); <ide> wrote = true; <ide> this.writing = true; <del> setTimeout(function() { <add> setTimeout(() => { <ide> this.writing = false; <ide> cb();...
1
Python
Python
add a new bar class to display bar in curse ui
2cf140ffdb78f98c1d7443f09b58a8a4eed1ff8c
<ide><path>glances/outputs/glances_bars.py <add># -*- coding: utf-8 -*- <add># <add># This file is part of Glances. <add># <add># Copyright (C) 2015 Nicolargo <nicolas@nicolargo.com> <add># <add># Glances is free software; you can redistribute it and/or modify <add># it under the terms of the GNU Lesser General Public ...
1
Javascript
Javascript
remove typed option loading
55117ea60705c12b240778e2753c73aea2bd002c
<ide><path>local-cli/util/Config.js <ide> const Config = { <ide> }: ConfigT), <ide> <ide> find(startDir: string): ConfigT { <del> return Config.findCustom(startDir, Config.DEFAULTS); <del> }, <del> <del> /** <del> * This allows a callsite to grab a config that may have custom fields or <del> * a different...
1
Javascript
Javascript
upgrade aggressivesplittingplugin to es6
7dae8fbc0025935b068e222a41efc7f624765043
<ide><path>lib/optimize/AggressiveSplittingPlugin.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <del>var path = require("path"); <add>"use strict"; <ide> <del>function AggressiveSplittingPlugin(options) { <del> this.options = options || {}; <del> ...
1
Ruby
Ruby
improve sorbet typing
8c762d96879d598eaeb9e78abefadb2b6619f631
<ide><path>Library/Homebrew/dev-cmd/contributions.rb <ide> def contributions_args <ide> end <ide> end <ide> <del> sig { returns(NilClass) } <add> sig { void } <ide> def contributions <ide> args = contributions_args.parse <ide>
1
Ruby
Ruby
store the symbols as an array
91f2ad36821cc01d2084dd1690fecc0913fc541d
<ide><path>actionview/lib/action_view/template/types.rb <ide> module ActionView <ide> class Template <ide> class Types <ide> class Type <del> SET = Struct.new(:symbols).new(Set.new([ :html, :text, :js, :css, :xml, :json ])) <add> SET = Struct.new(:symbols).new([ :html, :text, :js, :css, :xml, ...
1
Javascript
Javascript
add a ply exporter
447130ed160595cc72167db1ed1cd5f4da656b1b
<ide><path>examples/js/exporters/PLYExporter.js <add>/** <add> * @author Garrett Johnson / http://gkjohnson.github.io/ <add> * https://github.com/gkjohnson/ply-exporter-js <add> * <add> * Usage: <add> * var exporter = new THREE.PLYExporter(); <add> * <add> * // second argument is an array of attributes to <add> * //...
1
Text
Text
fix custom parser example
f161241e077b4a19e79be6b4b01b8cc26a9a54e1
<ide><path>docs/api-guide/parsers.md <ide> By default this will include the following keys: `view`, `request`, `args`, `kwa <ide> The following is an example plaintext parser that will populate the `request.data` property with a string representing the body of the request. <ide> <ide> class PlainTextParser(BasePar...
1
PHP
PHP
fix controller tests
055b574d8678316f5c3aa1155810777cd4cb7bf1
<ide><path>src/Controller/Component/PaginatorComponent.php <ide> public function implementedEvents() <ide> * $results = $paginator->paginate($query); <ide> * ``` <ide> * <add> * ### Scoping Request parameters <add> * <add> * By using request parameter scopes you can paginate multiple queries ...
2
Python
Python
remove duplicate code
4002f95eb66622a048ff01a383968af57023134d
<ide><path>examples/token-classification/run_ner_no_trainer.py <ide> def compute_metrics(): <ide> predictions=preds, <ide> references=refs, <ide> ) # predictions and preferences are expected to be a nested list of labels, not label_ids <del> preds, refs = get_labe...
1
Ruby
Ruby
remove chicken support
1ad2aeef86e6f0261a55d588a658a084a8f31ede
<ide><path>Library/Homebrew/dependency_collector.rb <ide> class DependencyCollector <ide> # Define the languages that we can handle as external dependencies. <ide> LANGUAGE_MODULES = Set[ <del> :chicken, :jruby, :lua, :node, :ocaml, :perl, :python, :python3, :ruby <add> :jruby, :lua, :node, :ocaml, :perl, :py...
3
PHP
PHP
fix doc block
cb077bddfa88429c2ea6e5f69af527457262e655
<ide><path>src/View/ViewBuilder.php <ide> public function setClassName($name) <ide> /** <ide> * Gets the view classname. <ide> * <del> * @return string <add> * @return string|null <ide> */ <ide> public function getClassName() <ide> {
1