content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Go
Go
allow force sigint and allow sigquit after sigint
cd910cb6858541b432e20b650fad262772c9ef18
<ide><path>server/server.go <ide> func InitServer(job *engine.Job) engine.Status { <ide> c := make(chan os.Signal, 1) <ide> gosignal.Notify(c, os.Interrupt, syscall.SIGTERM, syscall.SIGQUIT) <ide> go func() { <add> interruptCount := 0 <ide> for sig := range c { <del> log.Printf("Received signal '%v', starting s...
1
Javascript
Javascript
replace var with let and const in readline.js
205046af7eb6be0b4a7a785082962586ed6f1dec
<ide><path>lib/readline.js <ide> function Interface(input, output, completer, terminal) { <ide> this.escapeCodeTimeout = ESCAPE_CODE_TIMEOUT; <ide> <ide> EventEmitter.call(this); <del> var historySize; <del> var removeHistoryDuplicates = false; <add> let historySize; <add> let removeHistoryDuplicates = false; ...
1
Java
Java
fix javadoc in contentresultmatchers
6aa300d733b696628f0c80d3ede10f1676527c1a
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/result/ContentResultMatchers.java <ide> public void match(MvcResult result) { <ide> * Assert the response body content with a Hamcrest {@link Matcher}. <ide> * <pre class="code"> <ide> * mockMvc.perform(get("/path")) <del> * .andExpect(c...
1
Ruby
Ruby
add nodoc to internal class [ci skip]
c153503a236c822f6a486ca83c5db1a88630dc66
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb <ide> def primary_key? <ide> class ChangeColumnDefinition < Struct.new(:column, :type, :options) #:nodoc: <ide> end <ide> <del> class ForeignKeyDefinition < Struct.new(:from_table, :to_table, :options) <add> clas...
1
Text
Text
add angular2+ libraries for chart.js in docs
b835df02cd05830fb734806f3af27fa43cc5674c
<ide><path>docs/notes/extensions.md <ide> In addition, many plugins can be found on the [npm registry](https://www.npmjs.c <ide> <ide> ## Integrations <ide> <del>### Angular <add>### Angular (v2+) <add> <add> - <a href="https://github.com/emn178/angular2-chartjs" target="_blank">emn178/angular2-chartjs</a> <add> - <a...
1
Javascript
Javascript
add test case for enum validation
0963d744e9bbfbec52e32d1663df03ff0b0ba339
<ide><path>lib/WebpackOptionsValidationError.js <ide> class WebpackOptionsValidationError extends WebpackError { <ide> return "RegExp"; <ide> } <ide> <add> if (schema.enum) { <add> return schema.enum.map(item => JSON.stringify(item)).join(" | "); <add> } <add> <ide> if (schema.$ref) { <ide> return forma...
2
Ruby
Ruby
fix typos in string_ext_test.rb [ci skip]
fc2ecbb844908b2c2daaa3f1cfcfb97b4d41044c
<ide><path>activesupport/test/core_ext/string_ext_test.rb <ide> def test_truncate <ide> assert_equal "Hello Wor...", "Hello World!!".truncate(12) <ide> end <ide> <del> def test_truncate_with_omission_and_seperator <add> def test_truncate_with_omission_and_separator <ide> assert_equal "Hello[...]", "Hello W...
1
Java
Java
use .setstatus in responsestatusexceptionresolver
0ef8af4798222eccfa69d3e3a0c339b170e6d072
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/annotation/ResponseStatusExceptionResolver.java <ide> protected ModelAndView resolveResponseStatus(ResponseStatus responseStatus, Http <ide> reason = this.messageSource.getMessage(reason, null, reason, LocaleContextHolder.getLocale()); <ide> ...
1
Text
Text
change the sentence to clarify the effect of style
45e15ede109601546bf2c9e8d16d6cb9d946834a
<ide><path>guide/english/typography/index.md <ide> title: Typography <ide> <ide> Typography is a field that deals with the written word and how letters and characters are presented. <ide> <del>The same letters can be styled in different ways to convey different emotions. And there are all kinds of tradeoffs around st...
1
PHP
PHP
update config file
d201c69a8bb6cf7407ac3a6c0a0e89f183061682
<ide><path>config/auth.php <ide> 'api' => [ <ide> 'driver' => 'token', <ide> 'provider' => 'users', <add> 'hash' => false, <ide> ], <ide> ], <ide>
1
Javascript
Javascript
fix profiler and nits
80d9d8d841d02689d4c75360e2b42b543ab3477e
<ide><path>shells/dev/app/SuspenseTree/index.js <ide> function SuspenseTree() { <ide> return ( <ide> <> <ide> <h1>Suspense</h1> <del> <PrimaryFallbackTest /> <add> <h4>Primary to Fallback Cycle</h4> <add> <PrimaryFallbackTest initialSuspend={false} /> <add> <h4>Fallback to Primary Cycle<...
3
Go
Go
add check for removing non-existing config
cdc39fa29c710c7b56aef827166f9e98bb7c20b8
<ide><path>integration/config/config_test.go <ide> func TestConfigsCreateAndDelete(t *testing.T) { <ide> assert.Check(t, errdefs.IsNotFound(err)) <ide> assert.Check(t, is.ErrorContains(err, configID)) <ide> <add> err = c.ConfigRemove(ctx, "non-existing") <add> assert.Check(t, errdefs.IsNotFound(err)) <add> assert.Ch...
1
PHP
PHP
update remaining tests and fix path issues
eac89bf8bb490fa253e5d6711e91a8cb04374841
<ide><path>src/Console/Command/Task/FixtureTask.php <ide> class FixtureTask extends BakeTask { <ide> * <ide> * @var array <ide> */ <del> public $tasks = ['DbConfig', 'Model', 'Template']; <add> public $tasks = ['Model', 'Template']; <ide> <ide> /** <ide> * path to fixtures directory <ide> class FixtureTask extends...
4
Ruby
Ruby
simplify cache hit logging
07da5aebb165f824d540fac620d2374b7a3799bb
<ide><path>actionview/lib/action_view/helpers/cache_helper.rb <ide> def cache_fragment_name(name = {}, skip_digest: nil, virtual_path: nil) <ide> end <ide> end <ide> <add> attr_reader :cache_hit # :nodoc: <add> <ide> private <ide> <ide> def fragment_name_with_digest(name, virtual_path) #:...
2
Javascript
Javascript
add more tests
da98e09d1384c592b3c44dfa3bc806ae367cbad4
<ide><path>lib/dependencies/HarmonyExportImportedSpecifierDependency.js <ide> const EMPTY_SET = new Set(); <ide> /** <ide> * @param {string[][]} referencedExports list of referenced exports, will be added to <ide> * @param {string[]} prefix export prefix <del> * @param {ExportInfo} exportInfo the export info <add> * ...
8
PHP
PHP
fix route facade docblock
a7931c396a2545bd4fd2ba2d73d0d8d5fbd16874
<ide><path>src/Illuminate/Support/Facades/Route.php <ide> namespace Illuminate\Support\Facades; <ide> <ide> /** <del> * @method static \Illuminate\Routing\Route get(string $uri, \Closure|array|string $action) <del> * @method static \Illuminate\Routing\Route post(string $uri, \Closure|array|string $action) <del> * @met...
1
Text
Text
finish authoring packages section
d9d9b6800be8af7ad28e39515a01e60aa9ac16f4
<ide><path>docs/packages/authoring-packages.md <ide> available, Atom package.json files [have their own additions](./package_json.md) <ide> ## Source Code <ide> <ide> If you want to extend Atom's behavior, your package should contain a single <del>top-level module, which you export from `index.coffee` (or whichever fi...
2
PHP
PHP
fix typo in class name
6d83c72dfb732857a4439187c2c8770ad9bcf069
<ide><path>src/Cache/Engine/MemcachedEngine.php <ide> public function init(array $config = []) { <ide> if ($this->_config['persistent']) { <ide> $this->_Memcached = new Memcached((string)$this->_config['persistent']); <ide> } else { <del> $this->_Memcached = new Memecached(); <add> $this->_Memcached = new Me...
1
PHP
PHP
add tests. extract class
b1a80f0c32e16753b5f50ec1172fdf8a8d41256e
<ide><path>src/Illuminate/Database/Console/Migrations/MigrateMakeCommand.php <ide> public function handle() <ide> // "create" in the name. This will allow us to provide a convenient way <ide> // of creating migrations that create new tables for the application. <ide> if (! $table) { <del> ...
3
PHP
PHP
add basic implementation of deleteall()
b59c0376e01f7a4f6d36b77dea65de9a1a49e725
<ide><path>lib/Cake/ORM/Table.php <ide> public function updateAll($fields, $conditions) { <ide> return true; <ide> } <ide> <add>/** <add> * Delete all matching rows. <add> * <add> * Deletes all rows matching the provided conditions. <add> * <add> * This method will *not* trigger beforeDelete/afterDelete events. If ...
2
Text
Text
use my legal name in readme
64129898fecb3c60ec9bdcc015da1eef6afec236
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> * [thlorenz](https://github.com/thlorenz) - <ide> **Thorsten Lorenz** &lt;thlorenz@gmx.de&gt; <ide> * [TimothyGu](https://github.com/TimothyGu) - <del>**Timothy Gu** &lt;timothygu99@gmail.com&gt; (he/him) <add>**Tianc...
1
PHP
PHP
allow quarterly scheduling
e53d12ae28536d42f93e6a5c7327eefd05c6b2cf
<ide><path>src/Illuminate/Console/Scheduling/Event.php <ide> public function yearly() <ide> return $this->cron('0 0 1 1 * *'); <ide> } <ide> <add> /** <add> * Schedule the event to run quarterly. <add> * <add> * @return $this <add> */ <add> public function quarterly() <add> { <add>...
1
Text
Text
fix documentation inconsistency for volume create
f67da614e9963e626d4ec12fd624249947b97d6a
<ide><path>docs/reference/commandline/volume_create.md <ide> Creates a new volume that containers can consume and store data in. If a name is <ide> hello <ide> $ docker run -d -v hello:/world busybox ls /world <ide> <del>The mount is created inside the container's `/src` directory. Docker does not support relative...
1
Text
Text
add command flag to import.meta.resolve
eee2c331ef501e91a0811284323cff431630e5f4
<ide><path>doc/api/esm.md <ide> const buffer = readFileSync(new URL('./data.proto', import.meta.url)); <ide> <ide> > Stability: 1 - Experimental <ide> <add>This feature is only available with the `--experimental-import-meta-resolve` <add>command flag enabled. <add> <ide> * `specifier` {string} The module specifier to...
1
PHP
PHP
rewrite conditionals to be more intuitive
9be2b500eaa5833628046d096410f23948f454fe
<ide><path>src/Illuminate/Support/Arr.php <ide> public static function get($array, $key, $default = null) <ide> } <ide> <ide> foreach (explode('.', $key) as $segment) { <del> if ((! is_array($array) || ! array_key_exists($segment, $array)) && <del> (! $array instanceof ArrayAc...
1
Javascript
Javascript
update cms examples to use the new tw grid gaps
6b37d6c39e6752ab21a4417cace73f51a30e513c
<ide><path>examples/cms-agilitycms/components/hero-post.js <ide> export default function HeroPost({ <ide> slug={slug} <ide> /> <ide> </div> <del> <div className="md:grid md:grid-cols-2 md:col-gap-16 lg:col-gap-8 mb-20 md:mb-28"> <add> <div className="md:grid md:grid-cols-2 md:gap-x-16 ...
31
Python
Python
remove outdated tests
d36c7b2d937aa85574b0ff993d6e8e8f15ccc6aa
<ide><path>tests/keras/engine/test_training.py <ide> def test_check_bad_shape(): <ide> [a], [losses.CategoricalCrossentropy()], [(2, 3, 6)]) <ide> <ide> <del>@pytest.mark.parametrize('input_metrics,expected_output', [ <del> (None, [[], []]), <del> (['mse', 'mae'], [['mse', 'mae'], ['mse', 'mae']]), ...
1
Go
Go
skip apparmor tests on user namespace
70ce2d9b10e7119218ccf10a9b83d86acd2b1ed6
<ide><path>integration-cli/docker_cli_run_test.go <ide> func (s *DockerSuite) TestMountIntoSys(c *check.C) { <ide> <ide> func (s *DockerSuite) TestRunUnshareProc(c *check.C) { <ide> // Not applicable on Windows as uses Unix specific functionality <del> testRequires(c, Apparmor, DaemonIsLinux) <add> testRequires(c, Ap...
1
Python
Python
add __neg__ and __pos__ methods to poly1d
6f509f626355208b3cb97e692daf52c3734769cd
<ide><path>numpy/lib/polynomial.py <ide> def __str__(self): <ide> def __call__(self, val): <ide> return polyval(self.coeffs, val) <ide> <add> def __neg__(self): <add> return poly1d(-self.coeffs) <add> <add> def __pos__(self): <add> return self <add> <ide> def __mul__(self, other): <...
1
Python
Python
fix mypy errors in `tests/utils`
18a977ccc53f036413ccac4cab679fb7b37c65f0
<ide><path>airflow/utils/email.py <ide> def send_email_smtp( <ide> mime_subtype: str = 'mixed', <ide> mime_charset: str = 'utf-8', <ide> conn_id: str = "smtp_default", <del> from_email: str = None, <add> from_email: Optional[str] = None, <ide> custom_headers: Optional[Dict[str, Any]] = None, <ide>...
2
Javascript
Javascript
improve invalidation of view's controller prop
627d214428191b7bcd2a8ad23aa5d048d9e6734c
<ide><path>packages/ember-views/lib/views/view.js <ide> Ember.View = Ember.Object.extend(Ember.Evented, <ide> return value; <ide> } else { <ide> parentView = get(this, 'parentView'); <del> <ide> return parentView ? get(parentView, 'controller') : null; <ide> } <ide> }).property().cacheable()...
2
Go
Go
fix improper use of `--rm` in test case
f05ed0075893bb907b5cc2612d9193d775134e2d
<ide><path>integration-cli/docker_cli_network_unix_test.go <ide> func (s *DockerNetworkSuite) TestDockerNetworkDisconnectFromBridge(c *check.C) { <ide> network := strings.TrimSpace(out) <ide> <ide> name := "test" <del> dockerCmd(c, "create", "--rm", "--name", name, "busybox", "top") <add> dockerCmd(c, "create", "--n...
1
Text
Text
add teletype highlights from the past week
1cb3a0ed60fe282e55dca12b7bb2646d6f502ca4
<ide><path>docs/focus/2018-04-09.md <ide> - Started implementing [atom/github/#1374 "Add dialog for new co-author"](https://github.com/atom/github/pull/1374). This includes UI polish and some bugfixes for existing co author flows. @kuychaco / @annthurium <ide> - Merged [atom/github#1364 "Undo last commit and amen...
2
Python
Python
add some tests for array2print
4b45c32ec108bd197e76697088079c96cf106902
<ide><path>numpy/core/tests/test_arrayprint.py <ide> def test_str(self): <ide> dtypes = [np.complex64, np.cdouble, np.clongdouble] <ide> actual = [str(np.array([c], dt)) for c in cvals for dt in dtypes] <ide> wanted = [ <del> '[ 0.+0.j]', '[ 0.+0.j]', '[ 0.0+0.0j]', <del> ...
1
PHP
PHP
fix coding standards
454c087050d0482628168bcfd4b78a3e0fa835f0
<ide><path>tests/test_app/Plugin/TestPlugin/Test/Fixture/ArticleFixture.php <ide> * <ide> * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <ide> * @link http://cakephp.org CakePHP(tm) Project <del> * @since 2.0.0 <add> * @since 3.0.0 <ide> * @license...
1
Python
Python
add weight loading to prelu, parametricsoftplus
a478930d25543f9f2de7cd76c3c051df08b78475
<ide><path>keras/layers/advanced_activations.py <add>from .. import initializations <ide> from ..layers.core import Layer, MaskedLayer <ide> from ..utils.theano_utils import shared_zeros, shared_ones, sharedX <ide> import theano.tensor as T <ide> class PReLU(MaskedLayer): <ide> Delving Deep into Rectifiers:...
1
Python
Python
use comprehensions instead of map/lambda (take 2)
9e904d6204569665895439ccbf7e6fa09f537ee1
<ide><path>glances/plugins/glances_ip.py <ide> def ip_to_cidr(ip): <ide> <ide> Example: '255.255.255.0' will return 24 <ide> """ <del> return sum(map(lambda x: int(x) << 8, ip.split('.'))) // 8128 <add> return sum([int(x) << 8 for x in ip.split('.')]) // 8128
1
Text
Text
add scorer to textcat api docs config settings
d0578c2ede80890ed610573c95f11ad30b2f8cd2
<ide><path>website/docs/api/textcategorizer.md <ide> architectures and their arguments and hyperparameters. <ide> | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | <ide> | `threshold` | Cutof...
1
Javascript
Javascript
remove forcedomain so we can test beta website
af75452db5a11dcdfe53065e1d106306cf1f5b57
<ide><path>server/server.js <ide> app.set('port', process.env.PORT || 3000); <ide> app.set('views', path.join(__dirname, 'views')); <ide> app.set('view engine', 'jade'); <ide> <del>if (process.env.NODE_ENV === 'production') { <del> app.use(forceDomain({ <del> hostname: 'www.freecodecamp.com' <del> })); <del>} <ad...
1
Java
Java
remove stray println
c90e51b29f126c4a363510aff3a922be1c2f7907
<ide><path>rxjava-core/src/main/java/rx/operators/OperatorGroupBy.java <ide> public void onNext(T t) { <ide> <ide> private void completeInner() { <ide> if (completionCounter.decrementAndGet() == 0 && (completed.get() || childObserver.isUnsubscribed())) { <del> System.out....
1
PHP
PHP
avoid array_key_exists() check on objects
a7e6ca3e10cb169d100aefd71bfe0de25279b55d
<ide><path>src/Utility/Hash.php <ide> protected static function _matches($data, $selector) <ide> return false; <ide> } <ide> <add> if (is_array($data)) { <add> $attrPresent = array_key_exists($attr, $data); <add> } else { <add> $attrPresen...
1
PHP
PHP
fix input submit via magic input method
c126e61362f089d89950d671320a46c5312f246f
<ide><path>src/View/Helper/FormHelper.php <ide> public function input($fieldName, array $options = []) <ide> <ide> $label = $options['label']; <ide> unset($options['label']); <add> <ide> $nestedInput = false; <ide> if ($options['type'] === 'checkbox') { <ide> $nestedInput = ...
2
Text
Text
update changelog release date for 18.2.0
89bae8f371eb2cf49dbe310ec7f04d0e52e32f98
<ide><path>CHANGELOG.md <del>## 18.2.0 (TODO) <add>## 18.2.0 (June 14, 2022) <ide> <ide> ### React DOM <ide>
1
Text
Text
fix chromium document link in pull-requests.md
218664f638a91e331b800b2d49eca55a65899a50
<ide><path>doc/contributing/pull-requests.md <ide> There are a number of more advanced mechanisms for managing commits using <ide> Feel free to post a comment in the pull request to ping reviewers if you are <ide> awaiting an answer on something. If you encounter words or acronyms that <ide> seem unfamiliar, refer to t...
1
Text
Text
fix shinny -> shiny typo
bd061b8df64b3015dc69b86a5c1de10ff37265cc
<ide><path>project/ISSUE-TRIAGE.md <ide> An issue can have multiple of the following labels. <ide> | kind/bug | Bugs are bugs. The cause may or may not be known at triage time so debugging should be taken account into the time estimate. | <ide> | kind/docs | Writing documentation, man pages, articles,...
1
Python
Python
add verbose flag.
0249c26bc00cc985f1d13b076d6bf3f9bac8a8ee
<ide><path>keras/callbacks.py <ide> class LearningRateScheduler(Callback): <ide> schedule: a function that takes an epoch index as input <ide> (integer, indexed from 0) and returns a new <ide> learning rate as output (float). <add> verbose: int. 0: quiet, 1: update messages. <ide>...
1
Ruby
Ruby
remove wrong test
62671b1703c8fb8fd17d5548ff2f21df43678fd7
<ide><path>Library/Homebrew/test/rubocops/lines_spec.rb <ide> class Foo < Formula <ide> RUBY <ide> end <ide> <del> it "Using ARGV to check options" do <del> expect_no_offenses(<<~RUBY) <del> class Foo < Formula <del> desc "foo" <del> url 'https://brew.sh/foo-1.0.tgz' <del> ...
1
Ruby
Ruby
define attribute methods in a thread safe manner
b670d799e4f7c1ddc235fbeec1ca1806a8b5d6ff
<ide><path>activerecord/lib/active_record/attribute_methods.rb <ide> def define_attribute_methods # :nodoc: <ide> # Use a mutex; we don't want two thread simultaneously trying to define <ide> # attribute methods. <ide> generated_attribute_methods.synchronize do <del> return if attribute...
1
Javascript
Javascript
convert spec to use async/await
9fa32c7c22b2aa8443205a262867a16a1e5c2d98
<ide><path>spec/project-spec.js <ide> describe('Project', () => { <ide> }); <ide> }; <ide> <del> it('reports filesystem changes within project paths', () => { <add> it('reports filesystem changes within project paths', async () => { <ide> jasmine.useRealClock(); <ide> const dirOne = temp.mk...
1
Ruby
Ruby
avoid more dynamic symbols
81d10b9add4283a6740f6682e4579d15c5475e6c
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def symbol_unscoping(scope) <ide> end <ide> <ide> single_val_method = Relation::SINGLE_VALUE_METHODS.include?(scope) <del> unscope_code = :"#{scope}_value#{'s' unless single_val_method}=" <add> unscope_code = "#{scope}_valu...
1
Javascript
Javascript
fix word async -> concurrent
fbbbea16e11e849d2a75e0b0d66e38266783a01c
<ide><path>packages/react-dom/src/events/__tests__/SimpleEventPlugin-test.internal.js <ide> describe('SimpleEventPlugin', function() { <ide> expect(button.textContent).toEqual('Count: 3'); <ide> }); <ide> <del> describe('interactive events, in async mode', () => { <add> describe('interactive events, in concurr...
1
Text
Text
add a note about react/react-native versioning
7c82cc3095e7593379dc66cb046ae215b0635602
<ide><path>Libraries/Renderer/README.md <add># React & React Native Versions <add> <add>This page describes how React and React Native versions interact each other. <add>The version alignment between the two frameworks relies on two syncronization points: <add> <add>1. The versions in the `package.json` of the new app ...
1
Javascript
Javascript
switch octal format
15facf0ae1d3b1a750ef02370384f17acb499dcb
<ide><path>flyfile.js <ide> export async function compile(fly) { <ide> } <ide> <ide> export async function bin(fly, opts) { <del> await fly.source(opts.src || 'bin/*').babel().target('dist/bin', {mode: 0o755}) <add> await fly.source(opts.src || 'bin/*').babel().target('dist/bin', {mode: 0755}) <ide> notify('Compil...
1
PHP
PHP
fix casing of error category
f0ff8c4cab00da3132f34b2fa07b99b641f28a9e
<ide><path>src/Error/Renderer/HtmlRenderer.php <ide> public function render(PhpError $error): string <ide> debug($error); <ide> $errorMessage = sprintf( <ide> '<b>%s</b> (%s)', <del> h($error->getLabel()), <add> h(ucfirst($error->getLabel())), <ide> h($error...
1
Ruby
Ruby
check openssl and openssl@1.1
fbeeae96eff0c02fd51b21d2671f76656ce5783c
<ide><path>Library/Homebrew/rubocops/text.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> problem "Please set plist_options when using a formula-defined plist." <ide> end <ide> <del> if depends_on?("openssl") && depends_on?("libressl") <add> i...
1
Javascript
Javascript
fix minlang task
71ae9647e2fd7b62337c20c99529aad003ce3050
<ide><path>Gruntfile.js <ide> module.exports = function (grunt) { <ide> 'min/moment.min.js' : ['moment.js'] <ide> }; <ide> <add> var minLangs = { <add> langs: { <add> src: ['min/langs.js'], <add> dest: 'min/langs.min.js' <add> } <add> }; <add> <ide> // all the ...
2
Javascript
Javascript
allow invalidation after first watch run
94bd3bc6f98594c1ff8d8efbd10d0551c352ee25
<ide><path>lib/MultiCompiler.js <ide> module.exports = class MultiCompiler { <ide> node.compiler, <ide> i, <ide> nodeDone.bind(null, node), <del> () => node.state !== "running", <add> () => node.state !== "done" && node.state !== "running", <ide> () => nodeChange(node), <ide> () => node...
2
Python
Python
use context manager. get latest download_json
41aace5f84c3d2eb7f54e61429e594c7e167526a
<ide><path>contrib/scrape-ec2-prices.py <ide> import os <ide> import re <ide> import json <add>import atexit <ide> import copy <ide> import time <ide> from collections import defaultdict, OrderedDict <ide> PRICING_FILE_PATH = os.path.join(BASE_PATH, "../libcloud/data/pricing.json") <ide> PRICING_FILE_PATH = os.path.abs...
1
Python
Python
fix yaml parser bug
9277f438cb85e8205cfe0149142d2f2b4d11a31c
<ide><path>djangorestframework/parsers.py <ide> def parse(self, stream): <ide> {'detail': 'JSON parse error - %s' % unicode(exc)}) <ide> <ide> <del>if yaml: <del> class YAMLParser(BaseParser): <del> """ <del> Parses YAML-serialized data. <del> """ <add>class YAM...
2
Python
Python
use filelock to ensure distributed barriers
c547f15a1741cadfca96225e042007484d373191
<ide><path>examples/language-modeling/run_language_modeling.py <ide> class DataTrainingArguments: <ide> def get_dataset(args: DataTrainingArguments, tokenizer: PreTrainedTokenizer, evaluate=False, local_rank=-1): <ide> file_path = args.eval_data_file if evaluate else args.train_data_file <ide> if args.line_by_l...
6
Python
Python
convert all models
a84adddd1b8c3db75855d86a86a709c0e021fdb3
<ide><path>pytorch_transformers/convert_pytorch_checkpoint_to_tf2.py <ide> from __future__ import division <ide> from __future__ import print_function <ide> <add>import os <ide> import argparse <ide> import tensorflow as tf <ide> <del>from pytorch_transformers import is_torch_available <add>from pytorch_transformers ...
2
Java
Java
use assertthat from hamcrest instead of junit 4
d4379630e24090ce086cc7baced731a38a1753d2
<ide><path>spring-test/src/test/java/org/springframework/mock/web/MockFilterChainTests.java <ide> import org.junit.Test; <ide> <ide> import static org.hamcrest.Matchers.*; <add>import static org.hamcrest.MatcherAssert.assertThat; <ide> import static org.junit.Assert.*; <ide> import static org.mockito.BDDMockito.*; <id...
23
Python
Python
use a context manager for f2py functions
cd24ca1ef578924bad8c5c31f8939e64e353c256
<ide><path>numpy/f2py/tests/test_compile_function.py <ide> def test_f2py_init_compile(extra_args): <ide> # util.py, but don't actually use build_module() because it has <ide> # its own invocation of subprocess that circumvents the <ide> # f2py.compile code block under test <del> try: <del...
2
Python
Python
suppress messages from the browser
ade44385379127df5a4b75fa5c38a202fd819669
<ide><path>test/test.py <ide> ANAL = True <ide> DEFAULT_MANIFEST_FILE = 'test_manifest.json' <ide> EQLOG_FILE = 'eq.log' <add>BROWSERLOG_FILE = 'browser.log' <ide> REFDIR = 'ref' <ide> TMPDIR = 'tmp' <ide> VERBOSE = False <ide> def __init__(self, browserRecord): <ide> def setup(self): <ide> self.tempDir = t...
1
Python
Python
hack broken pipe error for python2
c89fd19f660875e5c9cc7a7ec24c9f7e3977163e
<ide><path>bin/load_reddit.py <ide> def main(path): <ide> <ide> <ide> if __name__ == '__main__': <add> import socket <add> try: <add> BrokenPipeError <add> except NameError: <add> BrokenPipeError = socket.error <ide> try: <ide> plac.call(main) <ide> except BrokenPipeError:
1
Java
Java
fix typos in handleradapter
907e286e7703cf3e8c8e954774891b75d661e17d
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerAdapter.java <ide> /* <del> * Copyright 2002-2012 the original author or authors. <add> * Copyright 2002-2013 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may n...
1
Javascript
Javascript
define html5 fields on input fields
fdfe8495f738c460b0f1595bc8a37a67e568ff0f
<ide><path>packages/ember-handlebars/lib/controls/text_area.js <ide> Ember.TextArea = Ember.Component.extend(Ember.TextSupport, { <ide> classNames: ['ember-text-area'], <ide> <ide> tagName: "textarea", <del> attributeBindings: ['rows', 'cols', 'name'], <add> attributeBindings: ['rows', 'cols', 'name', 'selection...
3
Ruby
Ruby
add tests for audit_conflicts
84e3e0a6b87229067041da4e947ee4f352892b62
<ide><path>Library/Homebrew/test/dev-cmd/audit_spec.rb <ide> class FooAT11 < Formula <ide> expect(fa.problems).to be_empty <ide> end <ide> end <add> <add> describe "#audit_conflicts" do <add> specify "it warns when conflicting with non-existing formula" do <add> fa = formula_auditor "fo...
1
Javascript
Javascript
specify browsersets for testswarm directly
53e31f478e1d88d056aa52f6575d200fe3dcf047
<ide><path>build/tasks/testswarm.js <ide> module.exports = function( grunt ) { <ide> name: jobName, <ide> runs: runs, <ide> runMax: config.runMax, <del> browserSets: "popular-no-old-ie" <add> browserSets: [ "popular-no-old-ie", "ios" ] <ide> }, function( err, passed ) { <ide> if ( err ) { <ide>...
1
Javascript
Javascript
add failing spec for node.fs.write
e57c16bc2d72d23b2e897e3f79c4df607aa18a7b
<ide><path>test/mjsunit/test-fs-write.js <add>include("mjsunit.js"); <add> <add>var dirname = node.path.dirname(__filename); <add>var fixtures = node.path.join(dirname, "fixtures"); <add>var path = node.path.join(fixtures, "write.txt"); <add>var expected = "hello"; <add>var found; <add> <add>node.fs.open(path, node.O_W...
1
PHP
PHP
use cake\http\serverrequest on tests
69dcc122010c3a93e97221de39801554fd30be47
<ide><path>tests/TestCase/Auth/BasicAuthenticateTest.php <ide> use Cake\Auth\BasicAuthenticate; <ide> use Cake\Controller\ComponentRegistry; <ide> use Cake\Http\Response; <add>use Cake\Http\ServerRequest; <ide> use Cake\I18n\Time; <ide> use Cake\Network\Exception\UnauthorizedException; <del>use Cake\Network\Request; <i...
47
Javascript
Javascript
show error messages from uglifyjs
5d107999d539746ecf23cf2ffef8d62b53a41c2a
<ide><path>lib/optimize/UglifyJsPlugin.js <ide> UglifyJsPlugin.prototype.apply = function(compiler) { <ide> } else { <ide> compilation.errors.push(new Error(file + " from UglifyJs\n" + err.message + " [" + file + ":" + err.line + "," + err.col + "]")); <ide> } <add> } else if (err.msg) { <add> ...
1
Javascript
Javascript
clean unused import modules
9db8910e36d610977ac473fcc326f68ff3cb03a5
<ide><path>Examples/UIExplorer/js/AnimatedGratuitousApp/AnExBobble.js <ide> var React = require('react'); <ide> var ReactNative = require('react-native'); <ide> var { <ide> Animated, <del> Image, <ide> PanResponder, <ide> StyleSheet, <ide> View, <ide><path>Examples/UIExplorer/js/AnimatedGratuitousApp/AnExChain...
23
Java
Java
limit calls to soloader
5d79b26011bb9b5f8020b0b62f3b79d93a57bee3
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactBridge.java <ide> import com.facebook.soloader.SoLoader; <ide> <ide> public class ReactBridge { <add> private static boolean sDidInit = false; <ide> public static void staticInit() { <del> // Ideally we'd put this in static and only run it once...
1
Javascript
Javascript
pass request to .createconnection()
2b3ba3f538e9ff22cdb4172799ee38d06818165f
<ide><path>lib/http.js <ide> Agent.prototype.addRequest = function(req, host, port, localAddress) { <ide> } <ide> if (this.sockets[name].length < this.maxSockets) { <ide> // If we are under maxSockets create a new one. <del> req.onSocket(this.createSocket(name, host, port, localAddress)); <add> req.onSock...
2
Python
Python
use layer norm instead of batch norm
4ce55313890a23a51a6ecb0e320d6a5a6d3f1d99
<ide><path>spacy/_ml.py <ide> def Tok2Vec(width, embed_size, preprocess=None): <ide> >> uniqued(embed, column=5) <ide> >> drop_layer( <ide> Residual( <del> (ExtractWindow(nW=1) >> BN(Maxout(width, width*3))) <add> (Extract...
1
Text
Text
update automatic static optimization docs
e3a35b2a3e711972078d2a4a509530b62a51dec1
<ide><path>docs/advanced-features/automatic-static-optimization.md <ide> description: Next.js automatically optimizes your app to be static HTML whenever <ide> <ide> # Automatic Static Optimization <ide> <del>Next.js automatically determines that a page is static (can be prerendered) if it has no blocking data requir...
1
Python
Python
fix weird autodetector error
40afdaf08ca7562d8908b999511cd40a432520a9
<ide><path>django/db/models/fields/related.py <ide> def deconstruct(self): <ide> if getattr(self.rel, 'through', None) is not None: <ide> if isinstance(self.rel.through, six.string_types): <ide> kwargs['through'] = self.rel.through <del> else: <add> elif not sel...
1
Python
Python
remove mlsd function from hooks/ftp.py
c60e476fb24d4fa2eb192f8fce51edea4166f1d0
<ide><path>airflow/providers/ftp/hooks/ftp.py <ide> import datetime <ide> import ftplib <ide> import os.path <del>from typing import Generator, List, Optional, Union <add>from typing import List, Optional <ide> <ide> from airflow.hooks.base_hook import BaseHook <ide> <ide> <del>def mlsd(conn, path: str = "", facts: ...
1
Go
Go
fix some windows issues in libnetwork tests
00b2c13a1bc3b38da4772949058015b13a199349
<ide><path>libnetwork/api/api_linux_test.go <ide> package api <ide> <ide> import ( <add> "bytes" <add> "encoding/json" <add> "errors" <add> "fmt" <add> "io" <add> "net/http" <add> "os" <add> "regexp" <add> "runtime" <add> "testing" <add> <add> "github.com/docker/docker/libnetwork" <add> "github.com/docker/docker/libne...
66
Javascript
Javascript
upgrade react native to babel 7!
ebd12fa09fca8c9cee4a48e3f1652986d51fcdb3
<ide><path>Libraries/polyfills/babelHelpers.js <ide> /* eslint-disable quotes, curly, no-proto, no-undef-init, dot-notation */ <ide> <ide> // Created by running: <del>// require('babel-core').buildExternalHelpers('_extends classCallCheck createClass createRawReactElement defineProperty get inherits interopRequireDefa...
3
PHP
PHP
add getdirty method
eca8e6b51ec5b0d7f153b24efbd646e86e2d3abd
<ide><path>src/Datasource/EntityTrait.php <ide> public function isDirty($property = null) <ide> return isset($this->_dirty[$property]); <ide> } <ide> <add> /** <add> * Gets the dirty properties. <add> * <add> * @return array <add> */ <add> public function getDirty() <add> { <add> ...
2
Javascript
Javascript
make use of number.isnan to test-readfloat.js
ff59fd7a73f6e7811f82b025c606a48923417bc4
<ide><path>test/parallel/test-readfloat.js <ide> function test(clazz) { <ide> buffer[1] = 0xff; <ide> buffer[2] = 0x7f; <ide> buffer[3] = 0x7f; <del> assert.ok(isNaN(buffer.readFloatBE(0))); <add> assert.ok(Number.isNaN(buffer.readFloatBE(0))); <ide> assert.strictEqual(3.4028234663852886e+38, buffer.readFloat...
1
Ruby
Ruby
convert sandbox test to spec
d25f9498244d2adebe3046c8857e05ded17f7485
<ide><path>Library/Homebrew/test/sandbox_spec.rb <add>require "sandbox" <add> <add>RSpec::Matchers.define_negated_matcher :not_matching, :matching <add> <add>describe Sandbox do <add> let(:dir) { @dir = Pathname.new(Dir.mktmpdir) } <add> let(:file) { dir/"foo" } <add> <add> before(:each) do <add> skip "Sandbox no...
2
Javascript
Javascript
add tests for d3.geo.rotation
9323c2314fda1de78153dce95b119672d49939b0
<ide><path>test/core/ascending-test.js <ide> require("../env"); <ide> <ide> var vows = require("vows"), <del> assert = require("assert"); <add> assert = require("../env-assert"); <ide> <ide> var suite = vows.describe("d3.ascending"); <ide> <ide><path>test/core/bisect-test.js <ide> require("../env"); <ide> <id...
154
Text
Text
add v3.23.1 to changelog.md
f1f7342774b7e4ba2ccc4266f8e4bfcc2120af88
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.23.1 (November 23, 2020) <add> <add>- [#19282](https://github.com/emberjs/ember.js/pull/19282) [BUGFIX] Issue deprecations (instead of assertions) for tracked mutation in constructor during rendering <add> <ide> ### v3.24.0-beta.1 (November 16, 2020) <i...
1
Python
Python
use _umath_linalg for det()
5b0fead2d4e3cc6c82761aba09f330147435a0cf
<ide><path>numpy/linalg/linalg.py <ide> def slogdet(a): <ide> <ide> Notes <ide> ----- <add> Broadcasting rules apply, see the `numpy.linalg` documentation for <add> details. <add> <ide> The determinant is computed via LU factorization using the LAPACK <ide> routine z/dgetrf. <ide> <ide> def det(...
1
Javascript
Javascript
fix benchmark runner
b888b681a86d0575f37db1f225c51255a996fa5d
<ide><path>benchmarks/iframe_runner.js <ide> BenchWarmer.prototype = { <ide> var count = parseInt(this.profile, 10); <ide> <ide> setTimeout(function() { <del> self.setup(); <add> if (self.setup) { self.setup(); } <ide> console.profile(self.emberPath + ": " + self.name); <ide> ...
1
Python
Python
update swivel to tfr1.0
66900a72d5536586c8322d52fac1b4212a50f438
<ide><path>swivel/swivel.py <ide> def count_matrix_input(filenames, submatrix_rows, submatrix_cols): <ide> sparse_local_col = features['sparse_local_col'].values <ide> sparse_count = features['sparse_value'].values <ide> <del> sparse_indices = tf.concat(1, [tf.expand_dims(sparse_local_row, 1), <del> ...
1
Text
Text
add instruction for test environment
f25de2c818e119df620e45e31d7edec281cf7e96
<ide><path>guides/source/active_storage_overview.md <ide> To use the Amazon S3 service in production, you add the following to <ide> config.active_storage.service = :amazon <ide> ``` <ide> <add>To use the test service when testing, you add the following to <add>`config/environments/test.rb`: <add> <add>```ruby <add># ...
1
Python
Python
simplify vae examples
10b46cbdc47f7164cd92209077939a7f7882b3c0
<ide><path>examples/variational_autoencoder.py <ide> - Auto-Encoding Variational Bayes <ide> https://arxiv.org/abs/1312.6114 <ide> ''' <add>from __future__ import print_function <add> <ide> import numpy as np <ide> import matplotlib.pyplot as plt <ide> from scipy.stats import norm <ide> <del>from keras.layers impo...
3
PHP
PHP
use tries as the property
ee385fa5eab0c4642f47636f0e033e982d402bb9
<ide><path>src/Illuminate/Queue/Jobs/Job.php <ide> public function payload() <ide> * <ide> * @return int|null <ide> */ <del> public function retries() <add> public function maxTries() <ide> { <del> return array_get($this->payload(), 'retries'); <add> return array_get($this->payloa...
4
Ruby
Ruby
move command shortening to method
254b2b9daf9392301aa0cfccd62615e869e1850b
<ide><path>Library/Contributions/cmd/brew-test-bot.rb <ide> def status_upcase <ide> @status.to_s.upcase <ide> end <ide> <add> def command_short <add> @command.gsub(/(brew|--verbose|--build-bottle) /, '') <add> end <add> <ide> def passed? <ide> @status == :passed <ide> end <ide> def run <ide> tests...
1
PHP
PHP
remove un-used variable
78325a13b900c451c5dfd05d5789c8de371f6787
<ide><path>lib/Cake/View/Helper/FormHelper.php <ide> public function select($fieldName, $options = array(), $attributes = array()) { <ide> unset($attributes['type']); <ide> } <ide> <del> if (!isset($selected)) { <del> $selected = $attributes['value']; <del> } <del> <ide> if (!empty($attributes['multiple']))...
1
Javascript
Javascript
remove openssl options of -no_<prot>
53835a2092847aec8cd78f25fd819a01ff84c0cc
<ide><path>test/parallel/test-tls-no-sslv3.js <ide> var stderr = ''; <ide> server.listen(0, '127.0.0.1', function() { <ide> var address = this.address().address + ':' + this.address().port; <ide> var args = ['s_client', <del> '-no_ssl2', <ide> '-ssl3', <del> '-no_tls1', <del>...
1
Python
Python
convert applications to new api
f0e0527591ffd6c061c94d6027c29a31bfb23d78
<ide><path>keras/applications/__init__.py <ide> from .resnet50 import ResNet50 <ide> from .inception_v3 import InceptionV3 <ide> from .xception import Xception <add>from .music_tagger_crnn import MusicTaggerCRNN <ide><path>keras/applications/inception_v3.py <ide> import warnings <ide> <ide> from ..models import Model ...
11
Text
Text
fix typo from perfomrance to performance
1b69a8bb73f653c3f421cc1f7ae00ad9ce1f24be
<ide><path>fixtures/fizz/README.md <ide> # Fizz Fixtures <ide> <del>A set of basic tests for Fizz primarily focussed on baseline perfomrance of legacy renderToString and streaming implementations. <add>A set of basic tests for Fizz primarily focussed on baseline performance of legacy renderToString and streaming imple...
1
Ruby
Ruby
simplify trailing slash checks
187b9c9d593be13b137da7fb675764f57b03a8db
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def get_mounts path=nil <ide> class Checks <ide> <ide> ############# HELPERS <del> def remove_trailing_slash s <del> (s[s.length-1] == '/') ? s[0,s.length-1] : s <del> end <del> <ide> def paths <ide> @paths ||= ENV['PATH'].split(':').collect do |p| <ide> ...
1
Python
Python
enable morph rules for danish
d86b537a3820b23d66b5a8d52d15ae5d11c2b34b
<ide><path>spacy/lang/da/__init__.py <ide> class DanishDefaults(Language.Defaults): <ide> lex_attr_getters[NORM] = add_lookups(Language.Defaults.lex_attr_getters[NORM], <ide> BASE_NORMS, NORM_EXCEPTIONS) <ide> tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_...
1
Javascript
Javascript
remove redundant escape
a26e9a8a57cdf84e8ecb3e39b186d73b39108457
<ide><path>lib/repl.js <ide> function REPLServer(prompt, <ide> let awaitPromise = false; <ide> const input = code; <ide> <del> if (/^\s*\{/.test(code) && /\}\s*$/.test(code)) { <add> if (/^\s*{/.test(code) && /}\s*$/.test(code)) { <ide> // It's confusing for `{ a : 1 }` to be interpreted as a block...
1