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 | add glossary entry for root | 46982cf694bd70a53965bc02c0f5be8203f7d526 | <ide><path>spacy/glossary.py
<ide> def explain(term):
<ide> "relcl": "relative clause modifier",
<ide> "reparandum": "overridden disfluency",
<ide> "root": "root",
<add> "ROOT": "root",
<ide> "vocative": "vocative",
<ide> "xcomp": "open clausal complement",
<ide> # Dependency labels (German) | 1 |
Text | Text | change user story to match test suite | cf6e545b03a8335dd5837a080951fc8b131b520d | <ide><path>curriculum/challenges/english/01-responsive-web-design/responsive-web-design-projects/build-a-tribute-page.md
<ide> You can use HTML, JavaScript, and CSS to complete this project. Plain CSS is rec
<ide>
<ide> **User Story #2:** I should see an element with a corresponding `id="title"`, which contains a stri... | 1 |
PHP | PHP | add support for key => value cookies | 4d8dd124491d1f16b4dd3ad056a2acd760b31f4d | <ide><path>lib/Cake/Network/Http/HttpSocket.php
<ide> protected function _buildHeader($header, $mode = 'standard') {
<ide> public function buildCookies($cookies) {
<ide> $header = array();
<ide> foreach ($cookies as $name => $cookie) {
<del> $header[] = $name . '=' . $this->_escapeToken($cookie['value'], array('... | 2 |
Javascript | Javascript | fix broken releases script | b2eb7fd77b9c553de37916cd63d95a54def96f31 | <ide><path>scripts/bump-oss-version.js
<ide> * After changing the files it makes a commit and tags it.
<ide> * All you have to do is push changes to remote and CI will make a new build.
<ide> */
<del>
<add>const fs = require('fs');
<ide> const {
<ide> cat,
<ide> echo,
<ide> if (!match) {
<ide> }
<ide> let [, maj... | 1 |
PHP | PHP | remove unused method | a1ad72fb0f24c4be6380947f7a5fb6a798c7ed1e | <ide><path>src/Routing/Router.php
<ide> class Router {
<ide> */
<ide> protected static $_urlFilters = [];
<ide>
<del>/**
<del> * Sets the Routing prefixes.
<del> *
<del> * @return void
<del> */
<del> protected static function _setPrefixes() {
<del> $routing = Configure::read('Routing');
<del> if (!empty($routing['... | 1 |
Python | Python | fix used_group_ids in partial_subset | 1e425fe6459a39d93a9ada64278c35f7cf0eab06 | <ide><path>airflow/models/dag.py
<ide> def filter_task_group(group, parent_group):
<ide> if isinstance(child, BaseOperator):
<ide> if child.task_id in dag.task_dict:
<ide> copied.children[child.task_id] = dag.task_dict[child.task_id]
<add> e... | 2 |
Text | Text | fix typo in sudoku-solver description | 7defcaf58e71218507b346ba3cc69c141b3fa61a | <ide><path>curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/sudoku-solver.md
<ide> Write the following tests in `tests/1_unit-tests.js`:
<ide> - Logic handles an invalid region (3x3 grid) placement
<ide> - Valid puzzle strings pass the solver
<ide> - Invalid puzzle strings fail the so... | 1 |
Javascript | Javascript | ignore socket.settimeout(infinity) (and nan) | b0950cbea282024a21c735ba20803ac8b05e0b48 | <ide><path>lib/net.js
<ide> Socket.prototype.listen = function() {
<ide>
<ide>
<ide> Socket.prototype.setTimeout = function(msecs, callback) {
<del> if (msecs > 0) {
<add> if (msecs > 0 && !isNaN(msecs) && isFinite(msecs)) {
<ide> timers.enroll(this, msecs);
<ide> timers.active(this);
<ide> if (callback... | 2 |
Java | Java | delete dead code in tests | 38f6d270f8691b8026c3197a111cfede6a01379f | <ide><path>spring-web/src/test/java/org/springframework/web/filter/OncePerRequestFilterTests.java
<ide> * See the License for the specific language governing permissions and
<ide> * limitations under the License.
<ide> */
<add>
<ide> package org.springframework.web.filter;
<ide>
<ide> import java.io.IOException;
<i... | 2 |
Javascript | Javascript | fix production tests | a1f11a4660f4f3f8b1ac09da9175390f23a168ad | <ide><path>test/integration/production/pages/about.js
<add>export default () => (
<add> <div className='about-page'>About Page</div>
<add>)
<ide><path>test/integration/production/pages/index.js
<add>import Link from 'next/link'
<add>
<ide> export default () => (
<del> <div>Hello World</div>
<add> <div>
<add> <Lin... | 3 |
PHP | PHP | remove unused import | f05da7293b1921f40238a3e0f54c41656dfd941b | <ide><path>src/Illuminate/Foundation/Providers/FormRequestServiceProvider.php
<ide> use Illuminate\Routing\Redirector;
<ide> use Illuminate\Support\ServiceProvider;
<ide> use Illuminate\Foundation\Http\FormRequest;
<del>use Symfony\Component\HttpFoundation\Request;
<ide> use Illuminate\Contracts\Validation\ValidatesWhe... | 1 |
Text | Text | add info about setting locale folder path | 6e4f4580bacf43d0c5f59bda7825928dafefb677 | <ide><path>src/I18n/README.md
<ide> use Cake\I18n\I18n;
<ide> I18n::locale('en_US');
<ide> ```
<ide>
<add>### Setting path to folder containing po files.
<add>
<add>```php
<add>use Cake\Core\Configure;
<add>
<add>Configure::write('App.paths.locales', ['/path/with/trailing/slash/']);
<add>
<add>Please refer to the [Cak... | 1 |
Java | Java | add support for "system" stomp session | 01c4e458c75bbdcff3772dce2c0fada56c8993b9 | <ide><path>spring-websocket/src/main/java/org/springframework/web/messaging/stomp/support/StompHeaderAccessor.java
<ide> public class StompHeaderAccessor extends PubSubHeaderAccesssor {
<ide>
<ide> public static final String NACK = "nack";
<ide>
<add> public static final String LOGIN = "login";
<add>
<add> public st... | 3 |
Javascript | Javascript | improve testing for uniquely named initializers | bcbec4f47a10112829e3183cb562f5b9d71e5f20 | <ide><path>packages/ember-application/tests/system/engine_initializers_test.js
<ide> QUnit.test('initializers are concatenated', function() {
<ide> });
<ide>
<ide> QUnit.test('initializers are per-engine', function() {
<del> expect(0);
<add> expect(2);
<add>
<ide> let FirstEngine = Engine.extend();
<add>
<ide> F... | 4 |
Java | Java | fix compiler warning | 8d8d47fb4e36a667c02f79c1936c882b60c4584e | <ide><path>spring-context-support/src/test/java/org/springframework/cache/jcache/support/TestableCacheKeyGenerator.java
<ide> public GeneratedCacheKey generateCacheKey(CacheKeyInvocationContext<? extends An
<ide> }
<ide>
<ide>
<add> @SuppressWarnings("serial")
<ide> private static class SimpleGeneratedCacheKey exte... | 1 |
Javascript | Javascript | remove unused variables | 1de089bdbbff3dde332034e4e7c9d5fa4ac1569b | <ide><path>packages/container/lib/main.js
<ide> define("container",
<ide> [],
<ide> function() {
<ide>
<del> var objectCreate = Object.create || function(parent) {
<del> function F() {}
<del> F.prototype = parent;
<del> return new F();
<del> };
<del>
<ide> function InheritingDict(parent) {... | 2 |
PHP | PHP | use new concern | 264845d0a480b943db3cc40f5a252b39c694a20a | <ide><path>src/Illuminate/View/Compilers/BladeCompiler.php
<ide> class BladeCompiler extends Compiler implements CompilerInterface
<ide> Concerns\CompilesEchos,
<ide> Concerns\CompilesIncludes,
<ide> Concerns\CompilesInjections,
<add> Concerns\CompilesJson,
<ide> Concerns\Compiles... | 1 |
PHP | PHP | replace duplicated method with result | 7d64dee369fcfd9e576ced09a7c666e9827b10c1 | <ide><path>src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php
<ide> protected function loadConfigurationFiles(Application $app, RepositoryContract $
<ide> throw new Exception('Unable to load the "app" configuration file.');
<ide> }
<ide>
<del> foreach ($this->getConfigurationFiles($ap... | 1 |
PHP | PHP | allow orderbyraw on union | b6c821f23b006042f2f966a0701013b88c874187 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function oldest($column = 'created_at')
<ide> */
<ide> public function orderByRaw($sql, $bindings = [])
<ide> {
<add> $property = $this->unions ? 'unionOrders' : 'orders';
<add>
<ide> $type = 'raw';
<ide>
<del> ... | 1 |
Go | Go | nullify container rwlayer upon release | e9b9e4ace294230c6b8eb010eda564a2541c4564 | <ide><path>daemon/delete.go
<ide> func (daemon *Daemon) cleanupContainer(container *container.Container, forceRemo
<ide> container.SetRemovalError(e)
<ide> return e
<ide> }
<add> container.RWLayer = nil
<ide> }
<ide>
<ide> if err := system.EnsureRemoveAll(container.Root); err != nil { | 1 |
Javascript | Javascript | serialize bigint64array and biguint64array | 1643b9ed1943d2854e3d5c10a3e07eafbe75f051 | <ide><path>lib/v8.js
<ide>
<ide> const {
<ide> Array,
<del> ArrayBuffer,
<del> ArrayPrototypeForEach,
<del> ArrayPrototypePush,
<add> BigInt64Array,
<add> BigUint64Array,
<ide> DataView,
<ide> Error,
<ide> Float32Array,
<ide> const {
<ide> Int32Array,
<ide> Int8Array,
<ide> ObjectPrototypeToString,
... | 2 |
Text | Text | add faq section to built-in css support | a89afc2ec6f83cb6d7d7a6e09699e311ddafdb3f | <ide><path>docs/basic-features/built-in-css-support.md
<ide> In development, expressing stylesheets this way allows your styles to be hot rel
<ide>
<ide> In production, all CSS files will be automatically concatenated into a single minified `.css` file.
<ide>
<add>### Import styles from `node_modules`
<add>
<add>If y... | 1 |
Javascript | Javascript | handle export mangling in concatenated modules | 277d4b1b67331ae81ba4e0c7217d43e6e37184b0 | <ide><path>lib/optimize/ConcatenatedModule.js
<ide> const getFinalBinding = (
<ide> const exportId = exportName[0];
<ide> const directExport = info.exportMap.get(exportId);
<ide> if (directExport) {
<add> const usedName = /** @type {string[]} */ (exportsInfo.getUsedName(
<add> exportName,
<add> runt... | 1 |
Text | Text | fix changelog [ci skip] | 331a0684aa8107a77613c8e1a36202a3cc287f62 | <ide><path>activerecord/CHANGELOG.md
<ide>
<ide> * Make schema cache methods return consistent results.
<ide>
<del> Previously the schema cache methods `primary_keys`, `columns, `columns_hash`, and `indexes`
<add> Previously the schema cache methods `primary_keys`, `columns`, `columns_hash`, and `indexes`
<id... | 1 |
Javascript | Javascript | convert `src/core/chunked_stream.js` to es6 syntax | 47344197f4224e4d1036365afbe53f82ac6c0fdd | <ide><path>src/core/chunked_stream.js
<ide> import {
<ide> MissingDataException
<ide> } from '../shared/util';
<ide>
<del>var ChunkedStream = (function ChunkedStreamClosure() {
<del> function ChunkedStream(length, chunkSize, manager) {
<add>class ChunkedStream {
<add> constructor(length, chunkSize, manager) {
<ide... | 1 |
Javascript | Javascript | fix bug in clonehook | f1bf281605444b342f4c37718092accbe3f98702 | <ide><path>packages/react-reconciler/src/ReactFiberHooks.js
<ide> function cloneHook(hook: Hook): Hook {
<ide> return {
<ide> memoizedState: hook.memoizedState,
<ide>
<del> baseState: hook.memoizedState,
<add> baseState: hook.baseState,
<ide> queue: hook.queue,
<ide> baseUpdate: hook.baseUpdate,
<i... | 2 |
Text | Text | fix typo in index.md | 8c9c8ae5ad514907774210d324191857085dd83c | <ide><path>docs/sources/index.md
<ide> Once your model looks good, configure its learning process with `.compile()`:
<ide> model.compile(loss='categorical_crossentropy', optimizer='sgd')
<ide> ```
<ide>
<del>If you need to, you can further configure your optimizer. A core principle of Keras is make things things reaso... | 1 |
Go | Go | make checking of help text smarter | 969ba5c7edfdca1d97a836e9549d80ce547a86a0 | <ide><path>integration-cli/docker_cli_help_test.go
<ide> import (
<ide> "runtime"
<ide> "strings"
<ide> "testing"
<add> "unicode"
<ide> )
<ide>
<ide> func TestMainHelpWidth(t *testing.T) {
<ide> func TestCmdHelpWidth(t *testing.T) {
<ide> home = os.Getenv("HOME")
<ide> }
<ide>
<del> for _, command := range []st... | 1 |
Text | Text | fix minor typo | 87d0d8c7d48e7261157fde1cb130ca460dba406c | <ide><path>doc/api/worker_threads.md
<ide> In particular, the significant differences to `JSON` are:
<ide> - `value` may contain circular references.
<ide> - `value` may contain instances of builtin JS types such as `RegExp`s,
<ide> `BigInt`s, `Map`s, `Set`s, etc.
<del>- `value` may contained typed arrays, both using... | 1 |
Python | Python | find python.h when build_ext --include-dirs is set | b08f369554e6d6b231c941740f6c852a45edcc12 | <ide><path>numpy/distutils/command/build_ext.py
<ide> def finalize_options(self):
<ide> self.jobs = int(self.jobs)
<ide> except ValueError:
<ide> raise ValueError("--jobs/-j argument must be an integer")
<del> incl_dirs = self.include_dirs
<add>
<add> # Ensure t... | 1 |
Python | Python | use word_ids to get labels in run_ner | 7f9ccffc5b9da6b2eb5631fef81b85fc52269f6f | <ide><path>examples/token-classification/run_ner.py
<ide> AutoTokenizer,
<ide> DataCollatorForTokenClassification,
<ide> HfArgumentParser,
<add> PreTrainedTokenizerFast,
<ide> Trainer,
<ide> TrainingArguments,
<ide> set_seed,
<ide> def get_label_list(labels):
<ide> cache_dir=model_arg... | 1 |
PHP | PHP | update hash param | 0c7879c305c2ad65fab1a617fabcee68d91cf6f5 | <ide><path>src/Illuminate/Auth/AuthManager.php
<ide> public function createTokenDriver($name, $config)
<ide> $this->createUserProvider($config['provider'] ?? null),
<ide> $this->app['request'],
<ide> $config['input_key'] ?? 'api_token',
<del> $config['storage_key'] ?? 'api... | 1 |
Text | Text | add windows installation instructions | e3c44bf551cd6ab4b3d571bd5cc894eb0b49d677 | <ide><path>README.md
<ide> Visit [atom.io](https://atom.io) to learn more.
<ide>
<ide> ## Installing
<ide>
<add>### Mac OS X
<add>
<ide> Download the latest [Atom release](https://github.com/atom/atom/releases/latest).
<ide>
<ide> Atom will automatically update when a new release is available.
<ide>
<add>### Window... | 1 |
PHP | PHP | remove deprecation notice | 4e0b39e5f0d6d7e38657dbdc419605623437853d | <ide><path>src/Http/ServerRequest.php
<ide> public static function createFromGlobals()
<ide> * - `files` Uploaded file data formatted like $_FILES.
<ide> * - `cookies` Cookies for this request.
<ide> * - `environment` $_SERVER and $_ENV data.
<del> * - ~~`url`~~ The URL without the base path for the ... | 1 |
Ruby | Ruby | use formulacellarchecks module | 897607b3d7f95f9d6ffe0a0fd79b0fcb34be1742 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> require 'formula'
<ide> require 'utils'
<ide> require 'superenv'
<add>require 'formula_cellar_checks'
<ide>
<ide> module Homebrew extend self
<ide> def audit
<ide> def has_trailing_newline?
<ide> end
<ide>
<ide> class FormulaAuditor
<add> include FormulaCellarChecks
<... | 2 |
Text | Text | suggest simplehttpserver instead of tornado | 787e80a25c70c6da9b6ee9fa2049c05bacc605b8 | <ide><path>README.md
<ide> compatibility layer. The examples should work on Firefox, Chrome (Chromium),
<ide> Safari (WebKit), Opera and IE9.
<ide>
<ide> Note: Chrome has strict permissions for reading files out of the local file
<del>system. To view some of the examples locally, you will need to start a local web
<de... | 1 |
Javascript | Javascript | enable data vis cert | b0768b1005736565bc2b10980271377a005d1d13 | <ide><path>config/i18n/all-langs.js
<ide> const auditedCerts = {
<ide> espanol: [
<ide> 'responsive-web-design',
<ide> 'javascript-algorithms-and-data-structures',
<del> 'front-end-development-libraries'
<add> 'front-end-development-libraries',
<add> 'data-visualization'
<ide> ],
<ide> chinese: [... | 1 |
Text | Text | fix structure and formatting in inspector.md | c18a9d1cb8fe94e39f2826de7edd9c44c9be9ce2 | <ide><path>doc/api/inspector.md
<ide> It can be accessed using:
<ide> const inspector = require('inspector');
<ide> ```
<ide>
<add>## inspector.close()
<add>
<add>Deactivate the inspector. Blocks until there are no active connections.
<add>
<add>## inspector.console
<add>
<add>* {Object} An object to send messages to ... | 1 |
PHP | PHP | add dump() to phpreader | 578dac92598a585beea27840d513832bd5d5be3a | <ide><path>lib/Cake/Configure/PhpReader.php
<ide> public function read($key) {
<ide> return $config;
<ide> }
<ide>
<add>/**
<add> * Converts the provided $data into a string of PHP code that can
<add> * be used saved into a file and loaded later.
<add> *
<add> * @param array $data Data to dump.
<add> * @return stri... | 2 |
PHP | PHP | pass positional arguments into shell methods | 9e0da22a584a3bcdf2a6afa86fd4ca235127abde | <ide><path>src/Console/Shell.php
<ide> public function runCommand($command, $argv) {
<ide> return $this->{$command}->runCommand('execute', $argv);
<ide> }
<ide> if ($isMethod) {
<del> return $this->{$command}();
<add> return call_user_func_array([$this, $command], $this->args);
<ide> }
<ide> if ($isMain)... | 2 |
Go | Go | remove old debug from tarsum | 360078d7613e1939c6d2f949ccac14c6ab9d568e | <ide><path>utils/tarsum.go
<ide> package utils
<ide>
<ide> import (
<add> "archive/tar"
<ide> "bytes"
<ide> "compress/gzip"
<ide> "crypto/sha256"
<ide> "encoding/hex"
<del> "archive/tar"
<ide> "hash"
<ide> "io"
<ide> "sort"
<ide> "strconv"
<ide> )
<ide>
<del>type verboseHash struct {
<del> hash.Hash
<del>}
<d... | 1 |
Text | Text | add comment to code block in readme | 117489665089027841ad37b961e55ae31e43649b | <ide><path>README.md
<ide> RCT_EXPORT_VIEW_PROPERTY(myCustomProperty);
<ide> ```
<ide>
<ide> ```javascript
<add>// JavaScript
<ide> module.exports = createReactIOSNativeComponentClass({
<ide> validAttributes: { myCustomProperty: true },
<ide> uiViewClassName: 'MyCustomView', | 1 |
Python | Python | remove input preprocessing | b883761820e86903ce6132a458ee95e23427f7fa | <ide><path>examples/neural_style_transfer.py
<ide> def preprocess_image(image_path):
<ide> img = imresize(imread(image_path), (img_width, img_height))
<ide> img = img.transpose((2, 0, 1)).astype('float64')
<del> img[0, :, :] -= 103.939
<del> img[1, :, :] -= 116.779
<del> img[2, :, :] -= 123.68
<ide> ... | 1 |
Text | Text | fix 5am typo | 0e24ede2fe2a2ead259907597de393b6a2d4f46d | <ide><path>docs/introduction/Examples.md
<ide> It covers:
<ide> * Normalized state
<ide> * Reducer composition
<ide> * State representing a tree view
<del>* Granual re-rendering of a large subtree
<add>* Granular re-rendering of a large subtree
<ide>
<ide> ## More Examples
<ide> | 1 |
Javascript | Javascript | give java 2g of memory | a59a5f386a96f6b208acea78ab8233cb88180ce7 | <ide><path>lib/grunt/utils.js
<ide> module.exports = {
<ide> shell.exec(
<ide> 'java ' +
<ide> this.java32flags() + ' ' +
<add> '-Xmx2g ' +
<ide> '-classpath ./components/closure-compiler/compiler.jar' + classPathSep +
<ide> './components/ng-closure-runner/ngco... | 1 |
Ruby | Ruby | pass options onto key file generator | 059d1edcbc6a556237fa31c6547f0faa11da328e | <ide><path>railties/lib/rails/generators/rails/master_key/master_key_generator.rb
<ide> def ignore_master_key_file
<ide>
<ide> private
<ide> def key_file_generator
<del> EncryptionKeyFileGenerator.new
<add> EncryptionKeyFileGenerator.new([], options)
<ide> end
<ide>
<ide> ... | 1 |
Javascript | Javascript | use a semantic name for the variable | 9b174520cce97a0cb9835b0e0b7d40be0f828212 | <ide><path>src/ajax.js
<ide> var r20 = /%20/g,
<ide> ajaxLocParts,
<ide>
<ide> // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
<del> starSlashStar = "*/".concat("*");
<add> allTypes = "*/".concat("*");
<ide>
<ide> // #8138, IE may throw an exception when accessing
<ide> // a... | 1 |
Java | Java | replay additional overloads | 5915fb3df3ddb708efd7e74a91f76237cfa9bc62 | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> import rx.operators.OperationOnExceptionResumeNextViaObservable;
<ide> import rx.operators.OperationParallel;
<ide> import rx.operators.OperationParallelMerge;
<add>import rx.operators.OperationReplay;
<ide> import rx.operators.OperationRetry;
<ide> import r... | 4 |
Javascript | Javascript | require statement nits | 76ec746341b2ce3a98f8ca2183cfdd23fcd2d783 | <ide><path>src/core/ReactEventTopLevelCallback.js
<ide>
<ide> var ExecutionEnvironment = require('ExecutionEnvironment');
<ide> var ReactEventEmitter = require('ReactEventEmitter');
<add>var ReactID = require('ReactID');
<ide> var ReactInstanceHandles = require('ReactInstanceHandles');
<ide>
<del>var ReactID = requir... | 2 |
Python | Python | fix channel_first layout for efficientnet | 6d16ae2e1edaf7fbe7e73aa6706b0d4c0c7938f5 | <ide><path>official/vision/image_classification/classifier_trainer.py
<ide> def initialize(params: base_configs.ExperimentConfig,
<ide> datasets_num_private_threads=params.runtime.dataset_num_private_threads)
<ide>
<ide> performance.set_mixed_precision_policy(dataset_builder.dtype)
<del>
<del> if dataset_bu... | 4 |
Mixed | Ruby | permit yaml classes and unsafe load per attribute | e313fc5a4d8891149b8c7b1a66c882d22c22c348 | <ide><path>activerecord/CHANGELOG.md
<add>* Allow per attribute setting of YAML permitted classes (safe load) and unsafe load.
<add>
<add> *Carlos Palhares*
<add>
<ide> * Add a build persistence method
<ide>
<ide> Provides a wrapper for `new`, to provide feature parity with `create`s
<ide><path>activerecord... | 4 |
PHP | PHP | simplify merges and cs | f9a44170ee0c979d1bbd229833e0472430aba0da | <ide><path>src/Console/Command/Task/TestTask.php
<ide> public function generateConstructor($type, $fullClassName) {
<ide> public function generateUses($type, $fullClassName) {
<ide> $uses = [];
<ide> $type = strtolower($type);
<del> if ($type == 'component') {
<add> if ($type === 'component') {
<ide> $uses[] ... | 19 |
Javascript | Javascript | check mustcall errors in test-fs-read-type | d7b18662c6a4e88f4d942662903a63a9c6bed46b | <ide><path>test/parallel/test-fs-read-type.js
<ide> fs.read(fd,
<ide> 0,
<ide> expected.length,
<ide> 0n,
<del> common.mustCall());
<add> common.mustSucceed());
<ide>
<ide> fs.read(fd,
<ide> Buffer.allocUnsafe(expected.length),
<ide> 0,
<ide> expected.lengt... | 1 |
PHP | PHP | remove trailing whitespace from comments | 4090c2e9323e5e3d2112ee7f2f831bd5e5d292a4 | <ide><path>app/Config/acl.php
<ide> /**
<ide> * Example
<ide> * -------
<del> *
<add> *
<ide> * Assumptions:
<ide> *
<del> * 1. In your application you created a User model with the following properties:
<add> * 1. In your application you created a User model with the following properties:
<ide> * username, g... | 35 |
Python | Python | fix init of language without model | 83ba6c247c47fc1fc1fce5d45e1c4f94b6fe3d9b | <ide><path>spacy/language.py
<ide> def __init__(self, **overrides):
<ide> path = pathlib.Path(path)
<ide> if path is True:
<ide> path = util.get_data_path() / self.lang
<del>
<add> if not path.exists() and 'path' not in overrides:
<add> path = None
<ide> ... | 1 |
Text | Text | add laravel bootcamp to learning laravel | 4a73b5d57e518bd907875e97d5261c8546703e79 | <ide><path>README.md
<ide> Laravel is accessible, powerful, and provides tools required for large, robust a
<ide>
<ide> Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the f... | 1 |
Javascript | Javascript | move type domcontainer to hostconfig | ccab49473897aacae43bb4d55c1061065892403c | <ide><path>packages/react-dom/src/client/ReactDOM.js
<ide> * @flow
<ide> */
<ide>
<del>import type {RootType} from './ReactDOMRoot';
<ide> import type {ReactNodeList} from 'shared/ReactTypes';
<add>import type {Container} from './ReactDOMHostConfig';
<ide>
<ide> import '../shared/checkReact';
<ide> import './ReactD... | 5 |
PHP | PHP | add expire option by default | 3646070dc125f65dad2b1e1ec4877e3849e1781e | <ide><path>config/queue.php
<ide> 'redis' => [
<ide> 'driver' => 'redis',
<ide> 'queue' => 'default',
<add> 'expire' => 60,
<ide> ],
<ide>
<ide> ], | 1 |
Ruby | Ruby | fix rubocop warnings | fc7ac2f07b93a4037652df673cafce6619598f6b | <ide><path>Library/Homebrew/test/test_resource.rb
<ide> def test_checksum_setters
<ide>
<ide> def test_download_strategy
<ide> strategy = Object.new
<del> DownloadStrategyDetector.
<del> expects(:detect).with("foo", nil).returns(strategy)
<add> DownloadStrategyDetector
<add> .expects(:detect).wit... | 1 |
PHP | PHP | fix failing tests and missing boundary markers | 83b28c42cf1470924b47df6e88e0282d05ecc441 | <ide><path>lib/Cake/Network/Email/CakeEmail.php
<ide> public function getHeaders($include = array()) {
<ide> }
<ide>
<ide> $headers['MIME-Version'] = '1.0';
<del> if (!empty($this->_attachments)) {
<add> if (!empty($this->_attachments) || $this->_emailFormat === 'both') {
<ide> $headers['Content-Type'] = 'mul... | 3 |
Javascript | Javascript | prevent computedproperty shape from changing | a542ca8a699419247f3c7106278aa53673fccf49 | <ide><path>packages/ember-metal/lib/computed.js
<ide> ComputedProperty.prototype = new Ember.Descriptor();
<ide> var ComputedPropertyPrototype = ComputedProperty.prototype;
<ide> ComputedPropertyPrototype._dependentKeys = undefined;
<ide> ComputedPropertyPrototype._suspended = undefined;
<add>ComputedPropertyPrototype.... | 1 |
PHP | PHP | resolvepolicycallback() | 52d126abce14b9b2152b74318f7e1f0e260c5246 | <ide><path>src/Illuminate/Auth/Access/Gate.php
<ide> protected function resolvePolicyCallback($user, $ability, array $arguments)
<ide> }
<ide> }
<ide>
<del> if (! method_exists($instance, $ability)) {
<add> if (! is_callable([$instance, $ability])) {
<ide> ... | 1 |
PHP | PHP | fix autolinkurls so it re-capture query strings | b1dfab87e44f4248ea9263627456cab23eb63b5c | <ide><path>lib/Cake/Test/Case/View/Helper/TextHelperTest.php
<ide> public function testAutoLinkUrls() {
<ide> $result = $this->Text->autoLinkUrls($text);
<ide> $this->assertEquals($expected, $result);
<ide>
<add> $text = 'This is a test that includes www.cakephp.org:8080';
<add> $expected = 'This is a test that ... | 2 |
Javascript | Javascript | fix unnecessary coercion in lib/net.js | 657cd2c4e5940d32883a6791be41978a6d07afb8 | <ide><path>lib/net.js
<ide> function connect(self, address, port, addressType, localAddress) {
<ide>
<ide> var err;
<ide> if (localAddress) {
<del> if (addressType == 6) {
<add> if (addressType === 6) {
<ide> err = self._handle.bind6(localAddress);
<ide> } else {
<ide> err = self._handle.bind... | 1 |
Javascript | Javascript | add more spaces for more pretty code | 283b8ba703529799daab9812a5a0242ab0b80334 | <ide><path>test/cases/chunks/inline-options/index.js
<ide> it("should be able to use eager mode", function(done) {
<ide> function load(name) {
<del> return import(/* webpackMode: "eager" */"./dir1/" + name);
<add> return import(/* webpackMode: "eager" */ "./dir1/" + name);
<ide> }
<ide> testChunkLoading(load, true... | 1 |
Javascript | Javascript | improve assert message in test-dh-regr | 42dfde827b39f4298ee8491dedf588d103662dc9 | <ide><path>test/pummel/test-dh-regr.js
<ide> for (let i = 0; i < 2000; i++) {
<ide> a.generateKeys();
<ide> b.generateKeys();
<ide>
<add> const aSecret = a.computeSecret(b.getPublicKey());
<add> const bSecret = b.computeSecret(a.getPublicKey());
<add>
<ide> assert.deepStrictEqual(
<del> a.computeSecret(b.ge... | 1 |
Text | Text | add note about mkdtemp() platform differences | dd9cad9cb34f37ad47bf67996118efbc07787a2b | <ide><path>doc/api/fs.md
<ide> changes:
<ide> Creates a unique temporary directory.
<ide>
<ide> Generates six random characters to be appended behind a required
<del>`prefix` to create a unique temporary directory.
<add>`prefix` to create a unique temporary directory. Due to platform
<add>inconsistencies, avoid traili... | 1 |
Go | Go | fix copy file . after workdir | f0b93b6ed8b4c0776065be972b4d5b4611f25fbf | <ide><path>daemon/create_windows.go
<ide> func (daemon *Daemon) createContainerPlatformSpecificSettings(container *contain
<ide> hostConfig.Isolation = daemon.defaultIsolation
<ide> }
<ide>
<add> if err := daemon.Mount(container); err != nil {
<add> return nil
<add> }
<add> defer daemon.Unmount(container)
<add> if... | 2 |
Text | Text | fix objc syntax error | ed370eeaad84895efa99d2efba9bcc461ae21312 | <ide><path>README.md
<ide> It is certainly possible to create a great app using React Native without writin
<ide> - (void)processString:(NSString *)input callback:(RCTResponseSenderBlock)callback
<ide> {
<ide> RCT_EXPORT(); // available as NativeModules.MyCustomModule.processString
<del> callback(@[[input stringByRe... | 1 |
Javascript | Javascript | fix missing parameter for radialaxialshading | 8572c29c55ce74c728400b1b5408e1d2bed97975 | <ide><path>pdf.js
<ide> var RadialAxialShading = (function() {
<ide> var p0 = raw[3];
<ide> var p1 = raw[4];
<ide> var r0 = raw[5];
<add> var r1 = raw[6];
<ide>
<ide> var curMatrix = ctx.mozCurrentTransform;
<ide> if (curMatrix) {
<ide> var RadialAxialShading = (function() {
<ide> var p... | 1 |
Go | Go | use same hash for same secret | a579ce8ed307024ededd527819bfdbf38e970fbf | <ide><path>daemon/cluster/convert/swarm.go
<ide> func SwarmSpecToGRPCandMerge(s types.Spec, existingSpec *swarmapi.ClusterSpec) (
<ide> // SwarmSpecUpdateAcceptancePolicy updates a grpc ClusterSpec using AcceptancePolicy.
<ide> func SwarmSpecUpdateAcceptancePolicy(spec *swarmapi.ClusterSpec, acceptancePolicy types.Acce... | 1 |
Ruby | Ruby | use tempfile and some style fixes | 28072021031836937a01e9fd995b03995fe49443 | <ide><path>Library/Homebrew/cask/lib/hbc/artifact/pkg.rb
<ide> def run_installer(pkg_description)
<ide> args << "-verboseR" if Hbc.verbose
<ide> args << "-allowUntrusted" if pkg_install_opts :allow_untrusted
<ide> if pkg_install_opts :choices
<del> args << "-applyChoiceChangesXML"
<del>... | 2 |
Javascript | Javascript | use arrow function for callback | 7bc5300e2be74424347e0072bf22f6fbfe5cd0b9 | <ide><path>lib/internal/streams/async_iterator.js
<ide> function onReadable(iter) {
<ide> }
<ide>
<ide> function wrapForNext(lastPromise, iter) {
<del> return function(resolve, reject) {
<del> lastPromise.then(function() {
<add> return (resolve, reject) => {
<add> lastPromise.then(() => {
<ide> iter[kHan... | 1 |
Python | Python | add ptvsd to run_squad | 2499b0a5fcdb168ccb0095e837b2022953935af2 | <ide><path>examples/run_squad.py
<ide> def main():
<ide> parser.add_argument('--null_score_diff_threshold',
<ide> type=float, default=0.0,
<ide> help="If null_score - best_non_null is greater than the threshold predict null.")
<add> parser.add_argument('--server_ip... | 1 |
Javascript | Javascript | add flow directive to index.android.js | cd9271567fb0467df7c34057d3a330cba5a847a9 | <ide><path>local-cli/generator/templates/index.android.js
<ide> /**
<ide> * Sample React Native App
<ide> * https://github.com/facebook/react-native
<add> * @flow
<ide> */
<ide>
<ide> import React, { Component } from 'react'; | 1 |
Go | Go | fix typos in comments | 53e5f33279c6f21cfd9e8366d240124e62f8a11a | <ide><path>builder/evaluator.go
<ide> func (b *builder) isBuildArgAllowed(arg string) bool {
<ide> //
<ide> // ONBUILD is a special case; in this case the parser will emit:
<ide> // Child[Node, Child[Node, Node...]] where the first node is the literal
<del>// "onbuild" and the child entrypoint is the command of the ONB... | 1 |
Text | Text | fix missing newline character | f91218c58f6b3aa13e162f3cda5a82a0941ff45c | <ide><path>COLLABORATOR_GUIDE.md
<ide> LTS working group and the Release team.
<ide> [backporting guide]: doc/guides/backporting-to-release-lines.md
<ide> [Stability Index]: doc/api/documentation.md#stability-index
<ide> [Enhancement Proposal]: https://github.com/nodejs/node-eps
<del>[git-username]: https://help.github... | 1 |
Java | Java | fix crash in sapienz bot for interpolator type | 9737774b965d1b4e875f697b9c004fdcbafe7698 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/AbstractLayoutAnimation.java
<ide>
<ide> package com.facebook.react.uimanager.layoutanimation;
<ide>
<del>import android.os.Build;
<ide> import android.view.View;
<ide> import android.view.animation.AccelerateDecelerateInterpolator;
<i... | 1 |
Javascript | Javascript | remove redundant call to socket.settimeout() | cc5de5a5cc08551c54a2c1c40c05aa934d2156eb | <ide><path>lib/_http_server.js
<ide> function resOnFinish(req, res, socket, state, server) {
<ide> }
<ide> } else if (state.outgoing.length === 0) {
<ide> if (server.keepAliveTimeout && typeof socket.setTimeout === 'function') {
<del> socket.setTimeout(0);
<ide> socket.setTimeout(server.keepAliveTi... | 1 |
Ruby | Ruby | define __setobj__ for delegator | 828914a062d3fd6cd51ebd3881acea11eede45cc | <ide><path>activesupport/lib/active_support/deprecation.rb
<ide> def warn(callstack, called, args)
<ide>
<ide> class DeprecatedInstanceVariable < Delegator #:nodoc:
<ide> def initialize(value, method)
<del> super(value)
<ide> @method = method
<del> @value = value
<add> super(valu... | 1 |
PHP | PHP | update exception class | dbfbcbadd4a3957059fb94f2fbe5efa34b460311 | <ide><path>src/Datasource/ModelAwareTrait.php
<ide> protected function _setModelClass($name)
<ide> * @param string $type The type of repository to load. Defaults to 'Table' which
<ide> * delegates to Cake\ORM\TableRegistry.
<ide> * @return object The model instance created.
<del> * @throws \Cake\Mo... | 1 |
PHP | PHP | add flatmap method to collection | 5ad598c6b445630895743844695b0a0ada732e66 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function map(callable $callback)
<ide> return new static(array_combine($keys, $items));
<ide> }
<ide>
<add> /**
<add> * Map a collection and flatten the result by a single level.
<add> *
<add> * @param callable $callback
<add> ... | 2 |
Ruby | Ruby | use the direct accessor | dda013050fe559e2e9432ae836c1239eac48fbce | <ide><path>test/variation_test.rb
<ide> class ActiveStorage::VariationTest < ActiveSupport::TestCase
<ide> blob = ActiveStorage::Blob.create_after_upload! \
<ide> io: File.open(File.expand_path("../fixtures/files/racecar.jpg", __FILE__)), filename: "racecar.jpg", content_type: "image/jpeg"
<ide>
<del> var... | 1 |
Javascript | Javascript | change concatenated string to template | 23afa3067258dd20ad76643158caf508e7480032 | <ide><path>lib/dns.js
<ide> function errnoException(err, syscall, hostname) {
<ide> }
<ide> var ex = null;
<ide> if (typeof err === 'string') { // c-ares error code.
<del> const errHost = hostname ? ' ' + hostname : '';
<add> const errHost = hostname ? ` ${hostname}` : '';
<ide> ex = new Error(`${sysca... | 1 |
PHP | PHP | improve test reliability | e11fda05616f1ed6c18b7d8a948acdedca3627dc | <ide><path>tests/TestCase/Http/Client/Adapter/CurlTest.php
<ide> public function testBuildOptionsCurlOptions()
<ide> public function testNetworkException()
<ide> {
<ide> $this->expectException(NetworkException::class);
<del> $this->expectExceptionMessage('cURL Error (6) Could not resolve host: du... | 1 |
Text | Text | add the error message the user will run into | 3e5575c91c3f27bec06f6a64a3b3b7a9eb55d343 | <ide><path>official/mnist/README.md
<ide> APIs.
<ide> ## Setup
<ide>
<ide> To begin, you'll simply need the latest version of TensorFlow installed.
<del>First make sure you've [added the models folder to your Python path](/official/#running-the-models).
<add>First make sure you've [added the models folder to your Pyth... | 3 |
Text | Text | remove example code from challenge seed | 2aee480c467127e594f0af1bd7121fa7ac83e3f0 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/generate-random-whole-numbers-with-javascript.english.md
<ide> Use this technique to generate and return a random whole number between <code>0<
<ide> tests:
<ide> - text: The result of <code>randomWholeNum</code> sh... | 1 |
Text | Text | add note to packagers.md about libseccomp version | 35667c3826d111babdeb35c7ab54609813fdb464 | <ide><path>project/PACKAGERS.md
<ide> To build the Docker daemon, you will additionally need:
<ide> 2.02.89 or later
<ide> * btrfs-progs version 3.16.1 or later (unless using an older version is
<ide> absolutely necessary, in which case 3.8 is the minimum)
<add>* libseccomp version 2.2.1 or later (for build tag sec... | 1 |
Ruby | Ruby | fix keyword arguments warnings on `try` | 9ee8d9160f965be9ad6d9fb0ecbe282734ec523c | <ide><path>activesupport/lib/active_support/core_ext/object/try.rb
<ide> def try(method_name = nil, *args, &b)
<ide> public_send(method_name, *args, &b)
<ide> end
<ide> end
<add> ruby2_keywords(:try) if respond_to?(:ruby2_keywords, true)
<ide>
<ide> def try!(method_name = nil, *args, &b)
<ide>... | 1 |
Javascript | Javascript | add a regression test for | 75491a8f4b5924424b94198e7a56b3519f6430c6 | <ide><path>packages/react-dom/src/__tests__/ReactDOMSelect-test.js
<ide> describe('ReactDOMSelect', () => {
<ide>
<ide> document.body.removeChild(container);
<ide> });
<add>
<add> it('should not select first option by default when multiple is set and no defaultValue is set', () => {
<add> const stub = (
<add... | 1 |
Python | Python | add tests for non-int slice deprecation | 5de9999d82fa2353fce4518a83c187a168bf2aa3 | <ide><path>numpy/core/tests/test_deprecations.py
<ide> def check_does_not_raise(f, category):
<ide> np.testing.assert_(not raised)
<ide>
<ide>
<del>class TestFloatIndexDeprecation(object):
<add>class TestFloatScalarIndexDeprecation(object):
<ide> """
<ide> These test that DeprecationWarnings get raised wh... | 1 |
Javascript | Javascript | improve mixin function, remove object require | 13260bf514863b5453ee5bd5073c1dabd16d94c9 | <ide><path>packages/sproutcore-runtime/lib/system/binding.js
<ide> // ==========================================================================
<ide> /*globals sc_assert */
<ide>
<del>require('sproutcore-runtime/system/object');
<ide> require('sproutcore-runtime/system/run_loop');
<ide>
<ide> // ....................... | 1 |
Ruby | Ruby | use correct filename for schema cache on load | e95b3fd21f4af7fdb180365b4516c4efe513eb8e | <ide><path>activerecord/lib/active_record/railtie.rb
<ide> class Railtie < Rails::Railtie # :nodoc:
<ide> if config.active_record.delete(:use_schema_cache_dump)
<ide> config.after_initialize do |app|
<ide> ActiveSupport.on_load(:active_record) do
<del> filename = File.join(app.config.... | 2 |
Javascript | Javascript | use soundmanager in pressability and touchable | 9dbe5e241e3137196102fb808c181c57554fedfe | <ide><path>Libraries/Components/Touchable/Touchable.js
<ide> const StyleSheet = require('../../StyleSheet/StyleSheet');
<ide> const TVEventHandler = require('../AppleTV/TVEventHandler');
<ide> const UIManager = require('../../ReactNative/UIManager');
<ide> const View = require('../View/View');
<add>const SoundManager =... | 1 |
Ruby | Ruby | cache the result | 4529df1246a8db82ee07c4945f62b801ba6bf655 | <ide><path>Library/Homebrew/utils/git.rb
<ide> module Utils
<ide> def self.git_available?
<add> return @git if instance_variable_defined?(:@git)
<ide> git = which("git")
<ide> # git isn't installed by older Xcodes
<del> return false if git.nil?
<add> return @git = false if git.nil?
<ide> # /usr/b... | 1 |
Python | Python | improve coverage of nd_grid | 18a0fab98ffe4f11fbeb2c3db60bbd69b3b957e5 | <ide><path>numpy/lib/tests/test_index_tricks.py
<ide> from __future__ import division, absolute_import, print_function
<ide>
<add>import pytest
<add>
<ide> import numpy as np
<ide> from numpy.testing import (
<ide> assert_, assert_equal, assert_array_equal, assert_almost_equal,
<ide> def test_sparse(self):
<ide> ... | 1 |
Python | Python | improve efficiency of backprop of padding variable | 260e6ee3fbc829b04b269f9960e6cb676d0c33ff | <ide><path>spacy/_ml.py
<ide> def _add_padding(self, Yf):
<ide>
<ide> def _backprop_padding(self, dY, ids):
<ide> # (1, nF, nO, nP) += (nN, nF, nO, nP) where IDs (nN, nF) < 0
<del> for i in range(ids.shape[0]):
<del> for j in range(ids.shape[1]):
<del> if ids[i,j] < 0:
<del... | 1 |
PHP | PHP | alter wrong doc-block | 046fd7c7710e4f89dfb9b8e47b1edd0e980eb6bb | <ide><path>src/Validation/Validation.php
<ide> public static function imageWidth($file, string $operator, int $width): bool
<ide> }
<ide>
<ide> /**
<del> * Validates the image width.
<add> * Validates the image height.
<ide> *
<ide> * @param mixed $file The uploaded file data from PHP.
<ide> ... | 1 |
Ruby | Ruby | remove unneeded rubocop comment | e2d8e3c6ee2e3d35d808ec5f7a12449118a2306c | <ide><path>Library/Homebrew/utils/fork.rb
<ide> def self.safe_fork(&_block)
<ide> ignore_interrupts(:quietly) do # the child will receive the interrupt and marshal it back
<ide> begin
<ide> socket = server.accept_nonblock
<del> # rubocop:disable Lint/ShadowedException
<del> ... | 1 |
PHP | PHP | fix default formatter key name check | 6b2cb9db2b5c22d3e1772ed94cf727121f2a2610 | <ide><path>src/I18n/I18n.php
<ide> protected static function _fallbackTranslator($name, $locale) {
<ide> new MessagesFileLoader($name, $locale, 'po')
<ide> ]);
<ide>
<del> if (static::$_defaultFormatter !== 'default') {
<add> // \Aura\Intl\Package by default uses formatter configured with key "basic".
<add> if... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.