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 |
|---|---|---|---|---|---|
Javascript | Javascript | use relative path in pipeprefix | 971aad1b132a5ec37216c0d755d3ea59afc63812 | <ide><path>test/common/index.js
<ide> Object.defineProperty(exports, 'hasFipsCrypto', {
<ide> });
<ide>
<ide> {
<del> const pipePrefix = exports.isWindows ? '\\\\.\\pipe\\' : `${exports.tmpDir}/`;
<add> const localRelative = path.relative(process.cwd(), `${exports.tmpDir}/`);
<add> const pipePrefix = exports.isWind... | 1 |
Text | Text | add link to unofficial discord | 474e94d4c0d59a12f8feb1b826a566f2de009a4c | <ide><path>README.md
<ide> search these unofficial resources:
<ide> * [Questions tagged 'node.js' on StackOverflow][]
<ide> * [#node.js channel on chat.freenode.net][]. See <http://nodeirc.info/> for more
<ide> information.
<add>* [Node.js Discord Community](https://discordapp.com/invite/v7rrPdE)
<ide> * [Node.js Sla... | 1 |
Python | Python | fix decimal support with yamlrenderer | b730aec0f46e2b849b3c597bcf1a1bcdc158e415 | <ide><path>rest_framework/tests/test_renderers.py
<ide> def test_render_and_parse(self):
<ide> data = parser.parse(StringIO(content))
<ide> self.assertEqual(obj, data)
<ide>
<add> def test_render_decimal(self):
<add> """
<add> Test YAML decimal rendering.
<add> ... | 2 |
Javascript | Javascript | add jsdoc typings for http | d3162da8ddc47b7e2ac08d7e2006ea52a2246f19 | <ide><path>lib/http.js
<ide> const {
<ide> } = require('_http_server');
<ide> let maxHeaderSize;
<ide>
<add>/**
<add> * Returns a new instance of `http.Server`.
<add> * @param {{
<add> * IncomingMessage?: IncomingMessage;
<add> * ServerResponse?: ServerResponse;
<add> * insecureHTTPParser?: boolean;
<add> * ma... | 1 |
Go | Go | fix swarm pending state tests | fa3b5964b93260acb0083500377756300ddbd43d | <ide><path>integration-cli/docker_api_swarm_test.go
<ide> func (s *DockerSwarmSuite) TestApiSwarmLeaveOnPendingJoin(c *check.C) {
<ide> c.Assert(err, checker.IsNil)
<ide> id = strings.TrimSpace(id)
<ide>
<del> go d2.Join(swarm.JoinRequest{
<del> RemoteAddrs: []string{"nosuchhost:1234"},
<add> err = d2.Join(swarm.Jo... | 1 |
Javascript | Javascript | improve performance of namespace stringification | 0eae4c91d196b97decb34be66cd45d08d3fa8a44 | <ide><path>packages/sproutcore-metal/lib/mixin.js
<ide> function processNames(paths, root, seen) {
<ide> paths.length = idx; // cut out last item
<ide> }
<ide>
<add>function findNamespaces() {
<add> var Namespace = SC.Namespace, obj;
<add>
<add> if (Namespace.PROCESSED) { return; }
<add>
<add> for (var prop in wi... | 4 |
Javascript | Javascript | put error filtering in the handler | 87ae387ecb3fffc73338cc031d8fbf4f10ea978f | <ide><path>api-server/server/middlewares/sentry-error-handler.js
<ide> import { Handlers, captureException } from '@sentry/node';
<ide> import { sentry } from '../../../config/secrets';
<add>import { isHandledError } from '../utils/create-handled-error';
<ide>
<add>// sends directly to Sentry
<ide> export function rep... | 1 |
Ruby | Ruby | fix build failure being non-verbose when --verbose | beb5f9761415899f587a0a61ec795381b9e1764b | <ide><path>Library/Homebrew/formula.rb
<ide> def system cmd, *args
<ide> f.puts
<ide> require 'cmd/--config'
<ide> Homebrew.write_build_config(f)
<del> raise BuildError.new(self, cmd, args, $?)
<add> raise ErrorDuringExecution
<ide> end
<ide> end
<del>
<add> rescue Error... | 1 |
Javascript | Javascript | fix permanent deoptimizations | e283319969bc0940ed6baff2637608488ef0c195 | <ide><path>lib/_http_agent.js
<ide> Agent.prototype.getName = function getName(options) {
<ide> return name;
<ide> };
<ide>
<del>Agent.prototype.addRequest = function addRequest(req, options) {
<add>Agent.prototype.addRequest = function addRequest(req, options, port/*legacy*/,
<add> ... | 2 |
Python | Python | change the chunk_iter function to handle | a192f61e0825150e54e15fdc451cf37e23532b3f | <ide><path>src/transformers/pipelines/automatic_speech_recognition.py
<ide> def chunk_iter(inputs, feature_extractor, chunk_len, stride_left, stride_right):
<ide> chunk = inputs[i : i + chunk_len]
<ide> processed = feature_extractor(chunk, sampling_rate=feature_extractor.sampling_rate, return_tensors="p... | 2 |
Mixed | Python | add run individual step only option | 088e24fb3a99d081b5e02a0815f23234f094d3af | <ide><path>research/minigo/README.md
<ide> # MiniGo
<ide> This is a simplified implementation of MiniGo based on the code provided by the authors: [MiniGo](https://github.com/tensorflow/minigo).
<ide>
<del>MiniGo is a minimalist Go engine modeled after AlphaGo Zero, built on MuGo. The current implementation consists o... | 6 |
PHP | PHP | fix virtual attributes | 29a6692fb0f0d14e5109ae5f02ed70065f10e966 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
<ide> protected function mergeAttributesFromClassCasts()
<ide> protected function mergeAttributesFromAttributeCasts()
<ide> {
<ide> foreach ($this->attributeCastCache as $key => $value) {
<del> $callback = $this->{Str::cam... | 2 |
Javascript | Javascript | check manageditems in snapshot | db265cbff82435f574db38d3855d340e2b468cf6 | <ide><path>lib/FileSystemInfo.js
<ide> class FileSystemInfo {
<ide> fileHashes,
<ide> contextTimestamps,
<ide> contextHashes,
<del> missingTimestamps
<add> missingTimestamps,
<add> managedItemInfo
<ide> } = snapshot;
<ide> let jobs = 1;
<ide> const jobDone = () => {
<ide> class FileSystemInfo {
<id... | 1 |
PHP | PHP | show notice for non existent controller property | 4e11ad9236d32d40a7b90a12e398c0d0328a739c | <ide><path>src/Controller/Controller.php
<ide> public function __get($name)
<ide>
<ide> list($plugin, $class) = pluginSplit($this->modelClass, true);
<ide> if ($class !== $name) {
<add> $trace = debug_backtrace();
<add> $parts = explode('\\', get_class($this));
<add> tr... | 2 |
Javascript | Javascript | add support for global mutation listeners | 526f588870e5833a70c4133b4c13ed94fe751a9f | <ide><path>packages/ember-handlebars/lib/views/metamorph_view.js
<ide> require("ember-views/views/view");
<ide> var set = Ember.set, get = Ember.get;
<ide> var Metamorph = requireModule('metamorph');
<ide>
<add>function notifyMutationListeners() {
<add> Ember.run.once(Ember.View, 'notifyMutationListeners');
<add>}
<a... | 6 |
PHP | PHP | add interface checks for context objects | 17e3dbfc1302308dd9932719e8564e243142a1a5 | <ide><path>src/View/Helper/FormHelper.php
<ide> use Cake\Utility\Inflector;
<ide> use Cake\Utility\Security;
<ide> use Cake\View\Form\ArrayContext;
<add>use Cake\View\Form\ContextInterface;
<ide> use Cake\View\Form\EntityContext;
<ide> use Cake\View\Form\NullContext;
<ide> use Cake\View\Helper;
<ide> protected function... | 2 |
Ruby | Ruby | remove trailing whitespace | ff91808651a19549ea8b101b8abdf5c3f811e0f4 | <ide><path>activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
<ide> def mysql2_connection(config)
<ide> if config[:flags].kind_of? Array
<ide> config[:flags].push "FOUND_ROWS".freeze
<ide> else
<del> config[:flags] |= Mysql2::Client::FOUND_ROWS
<add> ... | 1 |
PHP | PHP | remove automatic route loading | 5dee28709cffe6e4ca66e9a8c26bcd28e65ab344 | <ide><path>src/Http/BaseApplication.php
<ide> public function pluginBootstrap()
<ide> */
<ide> public function routes($routes)
<ide> {
<del> if (!Router::$initialized) {
<del> // Prevent routes from being loaded again
<del> Router::$initialized = true;
<del>
<add> // Onl... | 10 |
Text | Text | remove some extra text | e0f26b70d321dcd5d719739e82f29b658e2ea181 | <ide><path>readme.md
<ide> Laravel is accessible, yet powerful, providing powerful tools needed for large,
<ide>
<ide> Documentation for the entire framework can be found on the [Laravel website](http://laravel.com/docs).
<ide>
<del>## Contributing To Laravel
<add>## Contributing
<ide>
<ide> Thank you for considerin... | 1 |
Javascript | Javascript | fix the perspective projection | 843b5567698327525015326e87bcaaa5cfbe807f | <ide><path>Libraries/Utilities/MatrixMath.js
<ide> var MatrixMath = {
<ide> ];
<ide> },
<ide>
<add> /**
<add> * This create a perspective projection towards negative z
<add> * Clipping the z range of [-near, -far]
<add> *
<add> * @param fovInRadians - field of view in randians
<add> */
<ide> createP... | 1 |
Python | Python | fix pronoun handling | 53e17296e98ba8db1b9b99fec0a39aaa56d12e5c | <ide><path>spacy/ja/__init__.py
<ide> def resolve_pos(token):
<ide> # PoS mappings.
<ide>
<ide> if token.part_of_speech == '連体詞,*,*,*':
<del> # determiner-likes get DET, otherwise ADJ
<ide> if re.match('^[こそあど此其彼]の', token.surface):
<ide> return token.part_of_speech + ',DET'
<add> ... | 1 |
Python | Python | fix spancat initialize with labels | 733e8ceea9f691aec8ef2ac7dfcc6e83fd90d47a | <ide><path>spacy/cli/init_pipeline.py
<ide> def init_labels_cli(
<ide> config = util.load_config(config_path, overrides=overrides)
<ide> with show_validation_error(hint_fill=False):
<ide> nlp = init_nlp(config, use_gpu=use_gpu)
<add> _init_labels(nlp, output_path)
<add>
<add>
<add>def _init_label... | 3 |
Javascript | Javascript | add detectinstance to classes | 3e525e29c0b1f906186f202fe95a9246401d7de3 | <ide><path>packages/sproutcore-runtime/lib/system/core_object.js
<ide> var ClassMixin = SC.Mixin.create({
<ide> obj = obj.superclass;
<ide> }
<ide> return false;
<add> },
<add>
<add> detectInstance: function(obj) {
<add> return this.PrototypeMixin.detect(obj);
<ide> }
<ide>
<ide> });
<ide><path>pa... | 2 |
Python | Python | remove unneeded repo() test | 734ca7ca8c2ba6f0ca83ede015652720b2a7246d | <ide><path>tests/test_serializer.py
<ide> def __init__(self):
<ide> )
<ide>
<ide>
<del>class TestUnicodeRepr:
<del> def test_repr(self):
<del> class ExampleSerializer(serializers.Serializer):
<del> example = serializers.CharField()
<del>
<del> class ExampleObject:
<del> ... | 1 |
Text | Text | add chinese translation of reusable-components | 943c2aa77a4b6eed19ea6effe3248e553f6286ae | <ide><path>docs/docs/05-reusable-components.zh-CN.md
<ide> React.render(
<ide> );
<ide> ```
<ide>
<del>
<ide> ## 单个子级
<ide>
<ide> `React.PropTypes.element` 可以限定只能有一个子级传入。
<ide> var MyComponent = React.createClass({
<ide> render: function() {
<ide> return (
<ide> <div>
<del> {this.props.children} //... | 1 |
Javascript | Javascript | add a helper function to reduce code size | ceaa4ff03f7bc53bbc19711a023ea9313fdfde7f | <ide><path>src/core/core.tooltip.js
<ide> },
<ide> };
<ide>
<add> // Helper to push or concat based on if the 2nd parameter is an array or not
<add> function pushOrConcat(base, toPush) {
<add> if (toPush) {
<add> if (helpers.isArray(toPush)) {
<add> base = base.concat(toPush);
<add> } else {
<add> base.p... | 1 |
PHP | PHP | remove auth migration that is now in laravel/ui | 13e43893ba2457c3e49898f0066a5ce8d7ea74f4 | <ide><path>database/migrations/2014_10_12_100000_create_password_resets_table.php
<del><?php
<del>
<del>use Illuminate\Database\Migrations\Migration;
<del>use Illuminate\Database\Schema\Blueprint;
<del>use Illuminate\Support\Facades\Schema;
<del>
<del>class CreatePasswordResetsTable extends Migration
<del>{
<del> /*... | 1 |
Python | Python | fix more lint issues in demos/ directory | afa09ef99b29d7dfbace3a5316520a38ec1312f0 | <ide><path>demos/example_aliyun_ecs.py
<ide>
<ide> auth = NodeAuthPassword('P@$$w0rd')
<ide>
<add> ex_internet_charge_type = ecs.internet_charge_types.BY_TRAFFIC
<ide> node = ecs.create_node(image=image, size=small, name='test',
<ide> ex_security_group_id=sg,
<del> ... | 3 |
Javascript | Javascript | add node version to fingerprint | 962b814bb653e4a77795ed22c9e7c4cf90060e10 | <ide><path>script/utils/fingerprint.js
<ide> var fingerprintPath = path.resolve(__dirname, '..', '..', 'node_modules', '.atom
<ide> module.exports = {
<ide> fingerprint: function () {
<ide> var packageJson = fs.readFileSync(path.resolve(__dirname, '..', '..', 'package.json'))
<del> var body = packageJson.toStr... | 1 |
PHP | PHP | allow optional path into _path helpers | 1a2c340fdaa5f860c5bbd608f1c90f13811dcb46 | <ide><path>src/Illuminate/Support/helpers.php
<ide> function app($make = null)
<ide> /**
<ide> * Get the path to the application folder.
<ide> *
<add> * @param string $path
<ide> * @return string
<ide> */
<del> function app_path()
<add> function app_path($path = '')
<ide> {
<del> return app('path');
<ad... | 1 |
Text | Text | unify deprecation wording | f417ea1eae47a9ef04a82f58eb3f24db45cfdc27 | <ide><path>doc/api/deprecations.md
<ide> deprecated and support will be removed in the future.
<ide>
<ide> Type: Documentation-only
<ide>
<del>The option `produceCachedData` has been deprecated. Use
<add>The `produceCachedData` option is deprecated. Use
<ide> [`script.createCachedData()`][] instead.
<ide>
<ide> <a i... | 1 |
Python | Python | remove unused arguments in multiple choice example | e8db8b845a971b0cf63a0896b9deb5b316028a8b | <ide><path>examples/multiple-choice/utils_multiple_choice.py
<ide> def __init__(
<ide> else:
<ide> examples = processor.get_train_examples(data_dir)
<ide> logger.info("Training examples: %s", len(examples))
<del> # TODO clean up all this... | 1 |
Python | Python | improve perceiver docs | aece7badc1ea1b20f6ae5d3e449f48fcc30cd0f0 | <ide><path>src/transformers/models/perceiver/modeling_perceiver.py
<ide> def forward(
<ide> >>> # EXAMPLE 2: using the Perceiver to classify images
<ide> >>> # - we define an ImagePreprocessor, which can be used to embed images
<ide> >>> preprocessor=PerceiverImagePreprocessor(
<del>... | 1 |
Python | Python | replace whitespaces in the signature argument | ed7f30db21f4510e3e6106a68991e8ee21d781ff | <ide><path>numpy/lib/function_base.py
<ide> def disp(mesg, device=None, linefeed=True):
<ide>
<ide>
<ide> # See https://docs.scipy.org/doc/numpy/reference/c-api.generalized-ufuncs.html
<del>_DIMENSION_NAME = r'\s*\w+\s*'
<add>_DIMENSION_NAME = r'\w+'
<ide> _CORE_DIMENSION_LIST = '(?:{0:}(?:,{0:})*)?'.format(_DIMENSIO... | 1 |
Python | Python | fix gpuconfig initialization | 79e40801c1ca59e221a18e0abc6e35aa6313fb93 | <ide><path>tutorials/image/cifar10_estimator/cifar10_main.py
<ide> def main(unused_argv):
<ide> eval_steps = num_eval_examples // FLAGS.eval_batch_size
<ide>
<ide> # Session configuration.
<del> sess_config = tf.ConfigProto()
<del> sess_config.allow_soft_placement = True
<del> sess_config.log_device_placement =... | 1 |
Javascript | Javascript | use typeof for checking preload option | fe63992bd1e0d6e4eb7783584bce17c2796c4a2c | <ide><path>src/js/tech/html5.js
<ide> class Html5 extends Tech {
<ide> el.playerId = this.options_.playerId;
<ide> }
<ide>
<del> if (this.options_.preload !== 'undefined') {
<add> if (typeof this.options_.preload !== 'undefined') {
<ide> Dom.setAttribute(el, 'preload', this.options_.preload);
<id... | 1 |
Javascript | Javascript | fix closing backticks indentation on bug report | 01d10c53168dc4b2ef81bfb6b5b2e71152458522 | <ide><path>common/app/routes/challenges/redux/bug-saga.js
<del>import dedent from 'dedent';
<del>
<ide> import types from '../redux/types';
<ide> import { closeBugModal } from '../redux/actions';
<ide>
<ide> function filesToMarkdown(files = {}) {
<ide> }
<ide> const fileName = moreThenOneFile ? `\\ file: ${fil... | 1 |
Javascript | Javascript | remove object assign | 9add2cf46557cfe77c1ccb5c157890d85af5304a | <ide><path>gulpfile.js
<ide> // enable debug for gulp
<del>/* eslint-disable prefer-object-spread/prefer-object-spread */
<ide> process.env.DEBUG = process.env.DEBUG || 'fcc:*';
<ide> require('dotenv').load();
<ide>
<ide> gulp.task('pack-client', function() {
<ide>
<ide> return gulp.src(webpackConfig.entry.bundle)
... | 2 |
Javascript | Javascript | remove new keyword from errnoexception | a8845ebd45ea7a96e7c63c6bb0a122b264aced5e | <ide><path>lib/dgram.js
<ide> Socket.prototype.addMembership = function(multicastAddress,
<ide>
<ide> var err = this._handle.addMembership(multicastAddress, interfaceAddress);
<ide> if (err) {
<del> throw new errnoException(err, 'addMembership');
<add> throw errnoException(err, 'addMembership');
<ide> }
<i... | 1 |
Text | Text | update chinese readme.md | ae45c491b28206a2b4e4203a79b07d70f951cae1 | <ide><path>docs/i18n-languages/chinese/README.md
<ide> freeCodeCamp.org提供了一些免费的开发技能认证证书。每个证书
<ide>
<ide> ### 发现了一个安全问题?
<ide>
<del>请不要在GitHub上为安全问题创建Issues。作为替代,请发送一个E-mail到`security@freecodecamp.org`,我们会紧接地对此进行调查。
<add>请不要在GitHub上为安全问题创建Issues。作为替代,请发送E-mail到`security@freecodecamp.org`,我们会立刻对此进行调查。
<ide>
<ide> ### ... | 1 |
Python | Python | fix multiple choice doc examples | 144cea253f80bcd9b3c596d12902183c77ceceae | <ide><path>src/transformers/file_utils.py
<ide> def _prepare_output_docstrings(output_type, config_class):
<ide> >>> choice0 = "It is eaten with a fork and a knife."
<ide> >>> choice1 = "It is eaten while held in the hand."
<ide>
<del> >>> encoding = tokenizer([[prompt, prompt], [choice0, choice... | 1 |
Ruby | Ruby | save a string allocation in visit_star | 79fcdab538dedc5fcacae560e3d8e066f4c212f0 | <ide><path>actionpack/lib/action_dispatch/journey/path/pattern.rb
<ide> def visit_SLASH(node)
<ide> end
<ide>
<ide> def visit_STAR(node)
<del> re = @matchers[node.left.to_sym] || ".+"
<del> "(#{re})"
<add> re = @matchers[node.left.to_sym]
<add> re ? "(#{r... | 1 |
Ruby | Ruby | move button_to_function to prototype helper | 570e02c96a12ad06888b4ba8d6d8bd3262705dcf | <ide><path>actionpack/lib/action_view/helpers/javascript_helper.rb
<ide> module Helpers
<ide> module JavaScriptHelper
<ide> include PrototypeHelper
<ide>
<del> # Returns a button with the given +name+ text that'll trigger a JavaScript +function+ using the
<del> # onclick handler.
<del> #
<del>... | 2 |
Javascript | Javascript | update materialloader.js | a907060783c020581eaeedd6cde05cbb6c0e0802 | <ide><path>src/loaders/MaterialLoader.js
<ide> class MaterialLoader extends Loader {
<ide> if ( json.defines !== undefined ) material.defines = json.defines;
<ide> if ( json.vertexShader !== undefined ) material.vertexShader = json.vertexShader;
<ide> if ( json.fragmentShader !== undefined ) material.fragmentShad... | 1 |
Go | Go | create a new job from a shell-like text command | 2019a73f0387af273be3b6e085fdae0e5a67ba3b | <ide><path>engine/engine.go
<ide> package engine
<ide>
<ide> import (
<add> "bufio"
<ide> "fmt"
<ide> "github.com/dotcloud/docker/utils"
<ide> "io"
<ide> func (eng *Engine) Job(name string, args ...string) *Job {
<ide> return job
<ide> }
<ide>
<add>// ParseJob creates a new job from a text description using a she... | 3 |
Text | Text | tweak the changelog | 6f4fb4a05937b2d27ea38cddc9104859adbf12eb | <ide><path>CHANGELOG.md
<ide>
<ide> ### React
<ide>
<del>* Add a new experimental `React.unstable_Profiler` component for measuring performance. ([@bvaughn](https://github.com/bvaughn) in [#12745](https://github.com/facebook/react/pull/12745))
<add>* Add a new [experimental](https://github.com/reactjs/rfcs/pull/51) `... | 1 |
Javascript | Javascript | replace "magic" numbers by constants | 070a82e82c917492bf306e546cef55ffb3ca8359 | <ide><path>lib/internal/constants.js
<ide> module.exports = {
<ide> CHAR_COLON: 58, /* : */
<ide> CHAR_QUESTION_MARK: 63, /* ? */
<ide> CHAR_UNDERSCORE: 95, /* _ */
<add> CHAR_LINE_FEED: 10, /* \n */
<add> CHAR_CARRIAGE_RETURN: 13, /* \r */
<add> CHAR_EXCLAMATION_MARK: 33, /* ! */
<add> CHAR_HASH: 35, /* # */... | 2 |
Javascript | Javascript | remove code comment | 00dd8e12e50ae4afe8f2bf520a346e3891b0d477 | <ide><path>lib/config/browserslistTargetHandler.js
<ide> const resolve = browsers => {
<ide> // Since Node.js 13.14.0 no warning about usage, but it was added 8.5.0 with some limitations and it was improved in 12.0.0 and 13.2.0
<ide> node: [13, 14]
<ide> }),
<del> // browserslistChecker("es6-module") && rawChe... | 1 |
Javascript | Javascript | fix coding style in web/firefoxcom.js | 6df9cc46b44ace2caa9a643a574e0e5a3036cab2 | <ide><path>web/firefoxcom.js
<ide> var FirefoxCom = (function FirefoxComClosure() {
<ide> var request = document.createTextNode('');
<ide> if (callback) {
<ide> document.addEventListener('pdf.js.response', function listener(event) {
<del> var node = event.target,
<del> response... | 1 |
Go | Go | correct the help | cb7819cbc509a78d627584d18a65a4557875b516 | <ide><path>commands.go
<ide> func (srv *Server) Help() string {
<ide> {"reset", "Reset changes to a container's filesystem"},
<ide> {"restart", "Restart a running container"},
<ide> {"rm", "Remove a container"},
<del> {"rmimage", "Remove an image"},
<add> {"rmi", "Remove an image"},
<ide> {"run", "Run a comma... | 1 |
Text | Text | add guidance on order vulns are listed in | ed77955fb72b80685250ded2b5318eeaa7617aa8 | <ide><path>doc/guides/security-release-process.md
<ide> information described.
<ide> the date in the slug so that it will move to the top of the blog list.)
<ide> * [ ] pre-release: _**LINK TO PR**_
<ide> * [ ] post-release: _**LINK TO PR**_
<add> * List vulnerabilities in order of descending severity
<ide> ... | 1 |
Text | Text | add publish idea | 8713153f01afde2f6051bdd68a23cc1b9d374623 | <ide><path>docs/converting-a-text-mate-theme.md
<ide> Check that you have `apm` installed by running the following command in your
<ide> terminal:
<ide>
<ide> ```sh
<del>apm -h
<add>apm help init
<ide> ```
<ide>
<ide> You should see a message print out with all the possible `apm` commands.
<ide>
<ide> If you do not,... | 1 |
Javascript | Javascript | update version number | 8f757c2ffea0184bf8f0dbf690d235b5a5970f30 | <ide><path>d3.js
<del>d3 = {version: "0.28.1"}; // semver
<add>d3 = {version: "0.28.2"}; // semver
<ide> if (!Date.now) Date.now = function() {
<ide> return +new Date();
<ide> };
<ide><path>d3.min.js
<del>(function(){var n=null;d3={version:"0.28.1"};if(!Date.now)Date.now=function(){return+new Date};if(!Object.create)... | 2 |
Java | Java | improve javadoc in sql script support classes | 8fecee8c8a251209743ca109ac30559cec7dfbf0 | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/ResourceDatabasePopulator.java
<ide> * @author Chris Baldwin
<ide> * @since 3.0
<ide> * @see DatabasePopulatorUtils
<add> * @see ScriptUtils
<ide> */
<ide> public class ResourceDatabasePopulator implements DatabasePopulator {
<ide>
<ide>... | 2 |
Text | Text | fix casing of dist files in docs | da0764a585db495c18f2f450f8b3cb32a68b374e | <ide><path>.github/ISSUE_TEMPLATE/BUG.md
<ide> labels: 'type: bug'
<ide> interactive example (https://codepen.io/pen?template=JXVYzq).
<ide>
<ide> If filing a bug against `master`, you may reference the latest code via
<del> https://www.chartjs.org/dist/master/Chart.min.js (changing the filename to
<add> https:/... | 3 |
Python | Python | add catch if docker lib is not in the good version | 632faeb1026663e907763debe46227d8e6a0c12b | <ide><path>glances/plugins/glances_docker.py
<ide> def update(self):
<ide> try:
<ide> self.docker_stats[c['Id']] = self.docker_client.stats(c['Id'], decode=True)
<ide> logger.debug("Create Docker stats object for container {}".format(c['Id']))
<del> ... | 1 |
PHP | PHP | swap the index order of morph type and id | d15ad0fdf2d1fef63600eeccf57d756d28571614 | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> public function multiPolygon($column)
<ide> */
<ide> public function morphs($name, $indexName = null)
<ide> {
<del> $this->unsignedInteger("{$name}_id");
<del>
<ide> $this->string("{$name}_type");
<ide>
<del> $this->index(... | 1 |
Text | Text | fix minor typo in swr | 3dc4b524e79754804b8e53bd1783967d48ce5d13 | <ide><path>docs/basic-features/data-fetching/client-side.md
<ide> function Profile() {
<ide>
<ide> ## Client-side data fetching with SWR
<ide>
<del>The team behind Next.js has created a React hook library for data fetching called [**SWR**](https://swr.vercel.app/). It is **highly recommend** if you are fetching data ... | 1 |
Python | Python | exclude 3.3 aswell | fafb827a461df2c32f752d3ac2e3cdb83fb3deaf | <ide><path>setup.py
<ide> include_package_data=True,
<ide> zip_safe=False,
<ide> platforms='any',
<del> python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*',
<add> python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
<ide> install_requires=[
<ide> 'Werkzeug>=0.14',
<ide> 'Jinja2>=2.... | 1 |
Java | Java | add basic javadoc to spring-messaging annotations | cbdb99c042896cac30734440844c2c5563790cc0 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/MessageBody.java
<ide> import java.lang.annotation.RetentionPolicy;
<ide> import java.lang.annotation.Target;
<ide>
<add>import org.springframework.messaging.Message;
<add>
<ide>
<ide> /**
<del> * Annotation indicating a method... | 7 |
Javascript | Javascript | pass context to after-resolve hook | 90daea5fdd31510e2822b0a1b0de0a6084ecbd4e | <ide><path>lib/NormalModuleFactory.js
<ide> NormalModuleFactory.prototype.create = function(context, dependency, callback) {
<ide> }
<ide> function onDoneResolving() {
<ide> this.applyPluginsAsyncWaterfall("after-resolve", {
<add> context: context,
<ide> request: loaders.concat([resource]).join("!"),... | 1 |
Ruby | Ruby | reduce allocations of pool_configs | bc951b47193639ba9d08f3b4248702e6e44fb3e7 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb
<ide> def connection_pool_list(role = nil)
<ide> end
<ide> alias :connection_pools :connection_pool_list
<ide>
<add> def each_connection_pool(role = nil, &block) # :nodoc:
<add> role = nil if role == :a... | 4 |
Ruby | Ruby | use safe navigation on #sort_by | e604cf742bf158b9f133c14ac438822326fbbd2e | <ide><path>Library/Homebrew/dev-cmd/livecheck.rb
<ide> def livecheck
<ide> puts ENV["HOMEBREW_LIVECHECK_WATCHLIST"] if ENV["HOMEBREW_LIVECHECK_WATCHLIST"].present?
<ide> end
<ide>
<del> formulae_and_casks_to_check = if args.tap
<del> tap = Tap.fetch(args.tap)
<del> formulae = args.cask? ? [] : t... | 1 |
Python | Python | unify flag name for long running tests | 9c8926be61207cf06e9e8d87120ac9145f64a676 | <ide><path>tests/conftest.py
<ide> def skip_system_test(item):
<ide> def skip_long_running_test(item):
<ide> for _ in item.iter_markers(name="long_running"):
<ide> pytest.skip("The test is skipped because it has long_running marker. "
<del> "And system tests are only run when --long-lasti... | 1 |
Javascript | Javascript | show warning when using lib/sys.js | 8d70cc607cafc4c8caecd1d59727d2b2ab3fe550 | <ide><path>lib/sys.js
<ide> var sysWarning;
<ide> if (!sysWarning) {
<ide> sysWarning = 'The "sys" module is now called "util". ' +
<ide> 'It should have a similar interface.';
<del> // Uncomment in 2011
<del> //util.error(sysWarning);
<add> util.error(sysWarning);
<ide> }
<ide>
<ide> exports.print... | 1 |
Python | Python | add template fields to neo4j operator | 93a6e20f43ffa4f1918974f9d394256525ec1a4b | <ide><path>airflow/providers/neo4j/example_dags/example_neo4j.py
<ide> neo4j_task = Neo4jOperator(
<ide> task_id='run_neo4j_query',
<ide> neo4j_conn_id='neo4j_conn_id',
<del> sql='MATCH (tom {name: "Tom Hanks"}) RETURN tom',
<add> sql='MATCH (tom {name: "Tom Hanks", date: "{{ds}}"}) RETURN tom',
<ide> ... | 2 |
Javascript | Javascript | replace console.error() with debuglog calls | 83ebd7731852369fa08fb5885c7fcf7b671bce91 | <ide><path>test/parallel/test-http-information-processing.js
<ide> require('../common');
<ide> const assert = require('assert');
<ide> const http = require('http');
<add>const debug = require('util').debuglog('test');
<ide>
<ide> const testResBody = 'other stuff!\n';
<ide> const kMessageCount = 2;
<ide>
<ide> const s... | 1 |
Text | Text | add option and update the description | 1917d3b958da9ffc3b738941c783e9424e3c9c2e | <ide><path>docs/reference/commandline/cli.md
<ide> To list the help on any command just execute the command, followed by the
<ide>
<ide> Run a command in a new container
<ide>
<del> -a, --attach=[] Attach to STDIN, STDOUT or STDERR
<del> --cpu-shares=0 CPU shares (relative weight)... | 1 |
Javascript | Javascript | use filter for class and title | 2d660756bb14ad9e54ff7f20f805133a3a90b36e | <ide><path>examples/calendar/dji.js
<ide> var rect = svg.selectAll("rect.day")
<ide> .attr("width", z)
<ide> .attr("height", z)
<ide> .attr("x", function(d) { return week(d) * z; })
<del> .attr("y", function(d) { return day(d) * z; });
<add> .attr("y", function(d) { return day(d) * z; })
<add> .map... | 2 |
Text | Text | fix anchor for err_tls_invalid_context | fa1fc6bf9f257f7365454dc7a28bb4cd4385919f | <ide><path>doc/api/errors.md
<ide> recommended to use 2048 bits or larger for stronger security.
<ide> A TLS/SSL handshake timed out. In this case, the server must also abort the
<ide> connection.
<ide>
<del><a id="ERR_TLS_INVALID_CONTEXT">
<add><a id="ERR_TLS_INVALID_CONTEXT"></a>
<ide> ### `ERR_TLS_INVALID_CONTEXT`
... | 1 |
PHP | PHP | fix cs error | ada53422ed7f8d72ed072c0e46600e1028fadbe7 | <ide><path>src/Mailer/Email.php
<ide> public function render(?string $content = null)
<ide> $this->renderer = new Renderer();
<ide> }
<ide>
<del> list($this->_message, $this->_boundary, $this->_textMessage, $this->_htmlMessage) = $this->renderer->render($this, $content);
<add> list($t... | 1 |
Ruby | Ruby | make am test suite green | d74b5e440c04a1d89ae092cab7cb4d93d850f94a | <ide><path>actionmailer/test/abstract_unit.rb
<ide>
<ide> require 'test/unit'
<ide> require 'action_mailer'
<add>require 'action_mailer/test_case'
<ide>
<ide> # Show backtraces for deprecated behavior for quicker cleanup.
<ide> ActiveSupport::Deprecation.debug = true
<ide><path>actionmailer/test/base_test.rb
<ide> de... | 2 |
Javascript | Javascript | add pure notations to object calls | 27411f8f0f404aa6779810726cca7dc9fac53af3 | <ide><path>lib/DefinePlugin.js
<ide> const stringifyObj = (
<ide> case false:
<ide> return arr ? `;${code}` : `;(${code})`;
<ide> default:
<del> return `Object(${code})`;
<add> return `/*#__PURE__*/Object(${code})`;
<ide> }
<ide> };
<ide>
<ide><path>lib/RuntimeTemplate.js
<ide> class RuntimeTemplate {
<ide... | 3 |
PHP | PHP | add another method to auth contract | 3b83f3cf7209757f93f6fe466a056975b43615fa | <ide><path>src/Illuminate/Contracts/Auth/Authenticator.php
<ide> public function validate(array $credentials = array());
<ide> */
<ide> public function login(User $user, $remember = false);
<ide>
<add> /**
<add> * Log the given user ID into the application.
<add> *
<add> * @param mixed $id
<add> * @param boo... | 1 |
Mixed | Ruby | get provider_job_id from delayedjob | dd8e859829bfcfd8cb0287ce804055b827a35af1 | <ide><path>activejob/CHANGELOG.md
<add>* Allow `DelayedJob` to report id back to `ActiveJob::Base` as
<add> `provider_job_id`.
<add>
<add> Fixes #18821.
<add>
<add> *Kevin Deisz*
<add>
<ide> * `assert_enqueued_jobs` and `assert_performed_jobs` in block form use the
<ide> given number as expected value.... | 4 |
Java | Java | remove duplicate separators when combining paths | 76beb36e4bd1162bed6ff91f4ba5df6f9e47b528 | <ide><path>spring-core/src/main/java/org/springframework/util/AntPathMatcher.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use th... | 4 |
Ruby | Ruby | add a todo so we remember to fix partial layouts | 86c7b144fadf87736cf3d7e623d56eddae8e9963 | <ide><path>actionpack/lib/abstract_controller/layouts.rb
<ide> def render_to_body(options = {})
<ide> # This is a little bit messy. We need to explicitly handle partial
<ide> # layouts here since the core lookup logic is in the view, but
<ide> # we need to determine the layout based on the controller
... | 1 |
PHP | PHP | simplify the find method | b7fa52c6abb076e6844798f793231bc2886aa0d5 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function __construct(QueryBuilder $query)
<ide> *
<ide> * @param mixed $id
<ide> * @param array $columns
<del> * @return \Illuminate\Database\Eloquent\Model|static|null
<add> * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Databa... | 3 |
Javascript | Javascript | add type check in bidirectionalindexof | aa34465ae3135adeee3fc4e120db8f13e8781404 | <ide><path>lib/buffer.js
<ide> const {
<ide> hideStackFrames
<ide> } = require('internal/errors');
<ide> const {
<add> validateBuffer,
<ide> validateInt32,
<ide> validateString
<ide> } = require('internal/validators');
<ide> Buffer.prototype.compare = function compare(target,
<ide> // - encoding - an optional en... | 2 |
Javascript | Javascript | fix application tests | 2ec0dfa472b854932061b65ca347cc636a144ba7 | <ide><path>packages/ember-application/tests/system/application_test.js
<ide> test('initialized application go to initial route', function() {
<ide> onUpdateURL: function() {}
<ide> },
<ide>
<del> start: Ember.State.extend({
<add> root: Ember.State.extend({
<ide> index: Ember.State.exten... | 2 |
Text | Text | add gh discussions to readme | 52cdb12d26a42f58bdf8d1f89266dc3902a14147 | <ide><path>README.md
<ide> be able to provide individual support via email. We also believe that help is
<ide> much more valuable if it's shared publicly, so that more people can benefit from
<ide> it.
<ide>
<del>| Type | Platforms |
<del>| -------------... | 1 |
Python | Python | remove whitespaces from empty lines | 144bc3c2f56ffff60a45394d277e0b0b2ccc2424 | <ide><path>official/recommendation/ncf_keras_benchmark.py
<ide> def benchmark_2_gpus_early_stop(self):
<ide> FLAGS.early_stopping = True
<ide> FLAGS.num_gpus = 2
<ide> self._run_and_report_benchmark()
<del>
<add>
<ide> def benchmark_2_gpus_early_stop_force_V2(self):
<ide> self._setup()
<ide> F... | 2 |
Javascript | Javascript | write short strings more efficient to cache | 629ac95660b18dc71a835fc13c0573fed1cfe043 | <ide><path>lib/serialization/BinaryMiddleware.js
<ide> class BinaryMiddleware extends SerializerMiddleware {
<ide> writeU8(STRING_HEADER);
<ide> writeU32(len);
<ide> currentBuffer.write(thing, currentPosition);
<del> } else {
<add> currentPosition += len;
<add> } else if (len >= 70) {
<id... | 1 |
Text | Text | fix titles on docs.brew.sh | 9a6cd9b83fc8596727df0157e89faee302907cda | <ide><path>docs/Acceptable-Formulae.md
<ide> # Acceptable Formulae
<add>
<ide> Some formulae should not go in
<ide> [homebrew/core](https://github.com/Homebrew/homebrew-core). But there are
<ide> additional [Interesting Taps & Forks](Interesting-Taps-&-Forks.md) and anyone can start their
<ide><path>docs/Analytics.md
<... | 24 |
Python | Python | add unicode declarations | da10a049a68799674559e774f67bd5f35a6caef2 | <ide><path>spacy/tests/tokenizer/conftest.py
<add># coding: utf-8
<add>from __future__ import unicode_literals
<add>
<ide> import pytest
<ide> from ...en import English
<ide>
<ide><path>spacy/tests/tokenizer/test_contractions.py
<add># coding: utf-8
<ide> from __future__ import unicode_literals
<ide>
<ide> import pyt... | 5 |
Ruby | Ruby | improve check for 'gnubin' in path | 9cab3011856d0d4308054887f7459dc91e444ed3 | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_for_bad_python_symlink
<ide> end
<ide>
<ide> def check_for_non_prefixed_coreutils
<del> gnubin = "#{Formulary.factory("coreutils").prefix}/libexec/gnubin"
<del> if paths.include? gnubin then <<-EOS.undent
<add> coreutils = Formu... | 1 |
Java | Java | reimplement the "skiplast" operator with time | 0fc6e2ccf82531dd93fd902437c37ffa3006676d | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> import rx.operators.OperatorSerialize;
<ide> import rx.operators.OperatorSkip;
<ide> import rx.operators.OperatorSkipLast;
<add>import rx.operators.OperatorSkipLastTimed;
<ide> import rx.operators.OperatorSkipWhile;
<ide> import rx.operators.OperatorSubscrib... | 5 |
Javascript | Javascript | remove custom template override | e87d19507a4189257c16fc211341ca54d4401fbe | <ide><path>packages/ember-handlebars/lib/ext.js
<ide> import {
<ide> } from "ember-metal/streams/read";
<ide>
<ide> var slice = [].slice;
<del>var originalTemplate = EmberHandlebars.template;
<ide>
<ide> /**
<ide> Lookup both on root and on window. If the path starts with
<ide> function makeBoundHelper(fn) {
<ide> ... | 2 |
Python | Python | add tests for adding parser actions | dde87e6b0d2de331e536d335ead00db5d181ee96 | <ide><path>spacy/tests/parser/test_add_label.py
<add>'''Test the ability to add a label to a (potentially trained) parsing model.'''
<add>from __future__ import unicode_literals
<add>import pytest
<add>import numpy.random
<add>from thinc.neural.optimizers import Adam
<add>from thinc.neural.ops import NumpyOps
<add>
<ad... | 1 |
Ruby | Ruby | override unsafe methods only if defined on string | 9c4fe308b6da76711adffeff24d62acb013680ea | <ide><path>activesupport/lib/active_support/core_ext/string/output_safety.rb
<ide> def to_yaml(*args)
<ide> end
<ide>
<ide> UNSAFE_STRING_METHODS.each do |unsafe_method|
<del> class_eval <<-EOT, __FILE__, __LINE__ + 1
<del> def #{unsafe_method}(*args, &block) # def capitalize(*args, &block)
<... | 1 |
Python | Python | resolve issue by simplifying url pattern | 3452d6ce521943fb0bb02f59d3d9e3a1bac218c4 | <ide><path>spacy/language_data/tokenizer_exceptions.py
<ide> r"(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))"
<ide> r"|"
<ide> # host name
<del> r"(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)"
<add> r"(?:(?:[a-z0-9\-]*)?[a-z0-9]+)"
<ide> # domain name
<del> r"(?:\.(?:[a-z\u00a1-\uffff0-9]... | 2 |
Text | Text | add swisscom to inthewild.md | 219df18414185e426aab9bb8f297785d6f54f6a5 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [Strongmind](https://www.strongmind.com) [[@tomchapin](https://github.com/tomchapin) & [@wongstein](https://github.com/wongstein)]
<ide> 1. [Ströer Labs](https://stroeer-labs.com) [[@mbrtargeting](https://github.com/mbrtargeting/)]
<ide> 1.... | 1 |
Javascript | Javascript | fix typo in uselegacypromise var | 929ec6ba5a60e926654583033a90aebe716123c0 | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> return useApplyAsync;
<ide> };
<ide>
<del> var useLegacyPromse = true;
<add> var useLegacyPromise = true;
<ide> /**
<ide> * @ngdoc method
<ide> * @name $httpProvider#useLegacyPromiseExtensions
<ide> function $HttpProvider() {
<ide> **/... | 1 |
Python | Python | fix flaskr import in flaskr/__init__.py | cd13a5cf6215914ba4c3e0963d2189fe19fed508 | <ide><path>examples/flaskr/flaskr/__init__.py
<del>from flaskr import app
<ide>\ No newline at end of file
<add>from flaskr.flaskr import app
<ide>\ No newline at end of file | 1 |
Mixed | Python | fix documentation for checkpoint arg | e156b5b70f48c4fff575d89e551683def6bdbcc9 | <ide><path>research/object_detection/export_tflite_graph_tf2.py
<ide> --------------
<ide> python object_detection/export_tflite_graph_tf2.py \
<ide> --pipeline_config_path path/to/ssd_model/pipeline.config \
<del> --trained_checkpoint_prefix path/to/ssd_model/checkpoint \
<add> --trained_checkpoint_dir path/... | 2 |
Javascript | Javascript | extract validatenumber validator | 3e44b8c91ef717913364ac67a12cb7cd638630db | <ide><path>lib/dgram.js
<ide> const {
<ide> ERR_SOCKET_DGRAM_NOT_RUNNING,
<ide> ERR_INVALID_FD_TYPE
<ide> } = errors.codes;
<del>const { isInt32, validateString } = require('internal/validators');
<add>const {
<add> isInt32,
<add> validateString,
<add> validateNumber
<add>} = require('internal/validators');
<ide... | 8 |
Text | Text | fix the mistake of present | 6e1339bbc624711c992e27ebf368d53599c97a2d | <ide><path>man/docker-run.1.md
<ide> You would have to write policy defining a `svirt_apache_t` type.
<ide> If you want to set `/dev/sda` device weight to `200`, you can specify the device
<ide> weight by `--blkio-weight-device` flag. Use the following command:
<ide>
<del> # docker run -it --blkio-weight-device "/de... | 1 |
PHP | PHP | move hiddenfield handling to formhelper | b0a3fe8d378ac4666f7d4900fd9d2fcaecaafd96 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function multiCheckbox($fieldName, $options, array $attributes = [])
<ide> ];
<ide> $hidden = $this->hidden($fieldName, $hiddenAttributes);
<ide> }
<add> unset($attributes['hiddenField']);
<ide>
<ide> return $hidden .... | 2 |
Text | Text | add more info about the link env vars created | 61387427cb9b1ed6a4c34e0a7960183159ee305d | <ide><path>docs/sources/userguide/dockerlinks.md
<ide> recipient container in two ways:
<ide> * Environment variables,
<ide> * Updating the `/etc/hosts` file.
<ide>
<del>Docker can set a number of environment variables. You run the `env`
<add>### Environment Variables
<add>
<add>When two containers are linked, Docker ... | 1 |
Javascript | Javascript | remove object.observe from tests | b4313cf9a2ac4e56397a5c6049a6a9e143ab7696 | <ide><path>test/parallel/test-microtask-queue-integration-domain.js
<ide> require('domain');
<ide> var implementations = [
<ide> function(fn) {
<ide> Promise.resolve().then(fn);
<del> },
<del> function(fn) {
<del> var obj = {};
<del>
<del> Object.observe(obj, fn);
<del>
<del> obj.a = 1;
<ide> }
<ide>... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.