content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Ruby | Ruby | use rails scope by default | 0cb3245b4da59f9f77f5797d37214cb7844772fd | <ide><path>config/routes.rb
<ide> # frozen_string_literal: true
<ide>
<ide> Rails.application.routes.draw do
<del> scope :action_mailroom do
<add> scope "rails/action_mailroom" do
<ide> post "/inbound_emails" => "action_mailroom/inbound_emails#create", as: :rails_inbound_emails
<ide> end
<ide> end | 1 |
Javascript | Javascript | expand scale jsdocs | 4396a5304172820ed33b0cc2f90458f76796c432 | <ide><path>src/core/core.scale.js
<ide> module.exports = function(Chart) {
<ide> return rawValue;
<ide> },
<ide>
<del> // Used to get the value to display in the tooltip for the data at the given index
<del> // function getLabelForIndex(index, datasetIndex)
<add> /**
<add> * Used to get the value to display ... | 1 |
PHP | PHP | add join method to collection | 2d7b81c3ada809d87a955556bac2299a02ba3035 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function containsStrict($key, $value = null)
<ide> return in_array($key, $this->items, true);
<ide> }
<ide>
<add> /**
<add> * Join all items from the collection using a string. The final items can use a separate glue string.
<add> *
<... | 2 |
PHP | PHP | fix first batch | 49f4ce54b0e687088996fe0ac0f55eb42afcca98 | <ide><path>tests/Auth/AuthEloquentUserProviderTest.php
<ide> protected function getProviderMock()
<ide> {
<ide> $hasher = m::mock('Illuminate\Contracts\Hashing\Hasher');
<ide>
<del> return $this->getMock('Illuminate\Auth\EloquentUserProvider', ['createModel'], [$hasher, 'foo']);
<add> return ... | 16 |
Ruby | Ruby | add ability to turn off verbose for database tasks | b988ecb99ff6c8854e4b74ef8a7ade8d9ef5d954 | <ide><path>activerecord/lib/active_record/tasks/database_tasks.rb
<ide> def current_config(options = {})
<ide> def create(*arguments)
<ide> configuration = arguments.first
<ide> class_for_adapter(configuration["adapter"]).new(*arguments).create
<del> $stdout.puts "Created database '#{config... | 1 |
Ruby | Ruby | use parser to parse args | 20155c8df9569e78a16ea47136a711469a29e5b7 | <ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb
<ide> #: the preexisting formula already uses.
<ide>
<ide> require "formula"
<add>require "cli_parser"
<ide>
<ide> module Homebrew
<ide> module_function
<ide>
<del> def inreplace_pairs(path, replacement_pairs)
<del> if ARGV.dry_run?
<del> contents ... | 1 |
Javascript | Javascript | add support for out-of-tree platform plugins | 03476a225e012a0285650780430d64fc79674f0f | <ide><path>jest/__tests__/hasteImpl-test.js
<ide> it('returns the correct haste name for a RN library file', () => {
<ide> });
<ide>
<ide> it('returns the correct haste name for a file with a platform suffix', () => {
<del> for (const platform of ['android', 'ios', 'native', 'web', 'windows']) {
<add> for (const pla... | 4 |
Python | Python | add deprecated directive to docstring | ce057d29087f93fe3eafd96fcd7e9a2d0c46ddd4 | <ide><path>numpy/lib/function_base.py
<ide> def msort(a):
<ide> """
<ide> Return a copy of an array sorted along the first axis.
<ide>
<add> .. deprecated:: 1.24
<add>
<add> msort is deprecated, use ``np.sort(a, axis=0)`` instead.
<add>
<ide> Parameters
<ide> ----------
<ide> a : array_lik... | 1 |
Ruby | Ruby | move conditionals to instance | 23b2d6069796ebf2e88261ad5667972d8b3f1e4d | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def optimize_helper?
<ide> @route.requirements.except(:controller, :action).empty?
<ide> end
<ide>
<add> def arg_size
<add> @route.required_parts.size
<add> end
<add>
<ide> def ... | 1 |
Javascript | Javascript | change var to let/const | 952b90ca8df1cc530529d26080056652a09d16bb | <ide><path>lib/internal/console/constructor.js
<ide> function Console(options /* or: stdout, stderr, ignoreErrors = true */) {
<ide>
<ide> // Bind the prototype functions to this Console instance
<ide> const keys = ObjectKeys(Console.prototype);
<del> for (var v = 0; v < keys.length; v++) {
<del> var k = keys[... | 1 |
Javascript | Javascript | improve fiber debugger | 5afd8cd704356cf7928ed6a1763e8fab6e496032 | <ide><path>examples/fiber/debugger/src/App.js
<ide> class App extends Component {
<ide> onUpdateContainer: (root) => {
<ide> currentRoot = root;
<ide> },
<del> onWillBeginWork: (fiber) => {
<add> onBeginWork: (fiber) => {
<ide> const fibers = getFiberState(currentRoot, fiber);
<ide... | 3 |
Javascript | Javascript | fix some typos in the test names | 05bcbd58e72921d3f944a3f7ffc30f60f082ce46 | <ide><path>packages/ember-views/tests/views/view/append_to_test.js
<ide> module("Ember.View - append() and appendTo()", {
<ide> }
<ide> });
<ide>
<del>test("should be added to the specified element when calling append()", function() {
<add>test("should be added to the specified element when calling appendTo()", func... | 1 |
Go | Go | fix high cpu usage caused by docker stats | 54e8beec9b33fcca4263516b6f03ef96c29132a3 | <ide><path>api/client/container/stats.go
<ide> func runStats(dockerCli *client.DockerCli, opts *statsOptions) error {
<ide>
<ide> for range time.Tick(500 * time.Millisecond) {
<ide> printHeader()
<add> toRemove := []string{}
<ide> cStats.mu.Lock()
<ide> for _, s := range cStats.cs {
<ide> if err := s.Displa... | 2 |
Java | Java | improve webflux protobuf support | 6b6384a09ed643252e46551d2cf58dbf5b485c88 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/protobuf/ProtobufDecoder.java
<ide>
<ide> import java.io.IOException;
<ide> import java.lang.reflect.Method;
<add>import java.util.ArrayList;
<ide> import java.util.List;
<ide> import java.util.Map;
<ide> import java.util.concurrent.ConcurrentMap;
<ide... | 4 |
Text | Text | add link to usagewithreactrouter | 5485b74699c9ef5b411aee895e2be031603a6695 | <ide><path>docs/README.md
<ide> * [Async Actions](/docs/advanced/AsyncActions.md)
<ide> * [Async Flow](/docs/advanced/AsyncFlow.md)
<ide> * [Middleware](/docs/advanced/Middleware.md)
<del> * Usage with React Router
<add> * [Usage with React Router](/docs/advanced/UsageWithReactRouter.md)
<ide> * [Example: Red... | 1 |
Python | Python | use url functions from django itself | cd93cd195ef83a443e8fe7d745b2947d2636f4ad | <ide><path>rest_framework/tests/test_authentication.py
<ide> OAuth2Authentication
<ide> )
<ide> from rest_framework.authtoken.models import Token
<del>from rest_framework.compat import patterns, url, include, six
<add>from rest_framework.compat import six
<ide> from rest_framework.compat import oauth2_provider, oau... | 1 |
Go | Go | add integration test for build —cache-from | 4b8e680bcc4864020effe46560a57098e0dc4c35 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func (s *DockerSuite) TestBuildWithFailure(c *check.C) {
<ide> c.Assert(stdout, checker.Not(checker.Contains), "Step 1/2 : FROM busybox")
<ide> c.Assert(stdout, checker.Not(checker.Contains), "Step 2/2 : RUN nobody")
<ide> }
<add>
<add>func (s *DockerSuite) Te... | 1 |
PHP | PHP | add closure support to loadmissing() | bdc791185a364455fc56ed96d8838d64582dc4a9 | <ide><path>src/Illuminate/Database/Eloquent/Collection.php
<ide> public function loadMissing($relations)
<ide> $relations = func_get_args();
<ide> }
<ide>
<del> foreach ($relations as $relation) {
<del> $this->loadMissingRelation($this, explode('.', $relation));
<add> forea... | 2 |
Text | Text | update chinese translation of json apis and ajax | ff8db8ce9e8413f490626e1572e7fd09825db39c | <ide><path>curriculum/challenges/chinese/04-data-visualization/json-apis-and-ajax/access-the-json-data-from-an-api.chinese.md
<ide> id: 587d7fae367417b2b2512be4
<ide> title: Access the JSON Data from an API
<ide> challengeType: 6
<del>videoUrl: ''
<del>localeTitle: 从API访问JSON数据
<add>forumTopicId: 301499
<add>localeTitl... | 10 |
Text | Text | update example in module registration | 2475676995ab04cb821a5bdb4d39cc4ecba70205 | <ide><path>doc/api/n-api.md
<ide> napi_value SayHello(napi_env env, napi_callback_info info) {
<ide> return nullptr;
<ide> }
<ide>
<del>void Init(napi_env env, napi_value exports, napi_value module, void* priv) {
<add>napi_value Init(napi_env env, napi_value exports) {
<ide> napi_status status;
<ide>
<ide> napi... | 1 |
Ruby | Ruby | add option to configure sprockets logger | e275817116122893195579904e2f518b6125464f | <ide><path>actionpack/lib/sprockets/railtie.rb
<ide> class Railtie < ::Rails::Railtie
<ide> require 'sprockets'
<ide>
<ide> app.assets = Sprockets::Environment.new(app.root.to_s) do |env|
<del> env.logger = ::Rails.logger
<add> env.logger = config.assets.logger || ::Rails.logger
<ide> ... | 1 |
Text | Text | remove stray ] | fccddd920094a4d6bab6189e84875c59da1c34a1 | <ide><path>docs/publishing-a-package.md
<ide> apm publish minor
<ide> ```
<ide>
<ide> If this is the first time you are publishing, the `apm publish` command may
<del>prompt you for your GitHub] username and password. This is required to publish
<add>prompt you for your GitHub username and password. This is required t... | 1 |
Python | Python | add regression test for | 9c1ee652684fec9dc3b9ed487bfd980e886ec9fc | <ide><path>spacy/tests/regression/test_issue1698.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>
<add>
<add>@pytest.mark.parametrize('text', ['test@example.com', 'john.doe@example.co.uk'])
<add>def test_issue1698(en_tokenizer, text):
<add> doc = en_tokenizer(text)
<... | 1 |
Ruby | Ruby | autopublish existing bottles on bintray | e9e2be94040b103c5d5cf45755d487294120a0ab | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def test_bot
<ide> jenkins = ENV['JENKINS_HOME']
<ide> job = ENV['UPSTREAM_JOB_NAME']
<ide> id = ENV['UPSTREAM_BUILD_ID']
<del> raise "Missing Jenkins variables!" unless jenkins and job and id
<add> raise "Missing Jenkins variables!" if !jenk... | 1 |
PHP | PHP | move arr tests to the right location | 275dc0831fa39a70ab74a989b069cee659a14841 | <ide><path>tests/Support/SupportArrTest.php
<ide> public function testAdd()
<ide> {
<ide> $array = Arr::add(['name' => 'Desk'], 'price', 100);
<ide> $this->assertEquals(['name' => 'Desk', 'price' => 100], $array);
<add>
<add> $this->assertEquals(['surname' => 'Mövsümov'], Arr::add([], 'surnam... | 2 |
Ruby | Ruby | clarify benefit of `delegate_missing_to` | 348f8e0c916a24d17847dc84ffd7054612fe95c5 | <ide><path>activesupport/lib/active_support/core_ext/module/delegation.rb
<ide> def delegate(*methods, to: nil, prefix: nil, allow_nil: nil, private: nil)
<ide> # end
<ide> #
<ide> # def person
<del> # @event.detail.person || @event.creator
<add> # detail.person || creator
<ide> # end
... | 1 |
Javascript | Javascript | fix some potential race conditions in tests | b9db0585cb8ae38e039b33923e439967e5e52291 | <ide><path>test/core/transition-test-attrTween.js
<ide> module.exports = {
<ide> tt = [],
<ide> vv = [];
<ide>
<del> var s = d3.select("body").append("div").selectAll("div")
<add> var s = d3.select("body").html("").append("div").selectAll("div")
<ide> .data(["red", "green"])
<ide> .... | 3 |
Ruby | Ruby | simplify the regex for `unsigned?` method | 61cd7bd65314fe53e42593875a7425385c596740 | <ide><path>activerecord/lib/active_record/connection_adapters/mysql/column.rb
<ide> class Column < ConnectionAdapters::Column # :nodoc:
<ide> delegate :extra, to: :sql_type_metadata, allow_nil: true
<ide>
<ide> def unsigned?
<del> # enum and set types do not allow being defined as unsigned.
<d... | 2 |
PHP | PHP | fix more whitespace | 0edbe0a123c72967747d325dd6b99fdec72fa59d | <ide><path>lib/Cake/View/Helper/TimeHelper.php
<ide> public function toRSS($dateString, $timezone = null) {
<ide> */
<ide> public function timeAgoInWords($dateTime, $options = array()) {
<ide> $element = null;
<del>
<ide> $stringDate = '';
<ide>
<ide> if (!empty($options['element'])) {
<ide> public function ti... | 1 |
PHP | PHP | fix forloop compilation | f6dd1278132de95b18238f5bf3c1786cf1557ae2 | <ide><path>src/Illuminate/View/Concerns/ManagesLoops.php
<ide> public function popLoop()
<ide> */
<ide> public function getLastLoop()
<ide> {
<del> return $last = Arr::last($this->loopsStack) ? (object) $last : null;
<add> return ($last = Arr::last($this->loopsStack)) ? (object) $last : null;... | 1 |
Ruby | Ruby | fix the broken build | 30391e9ddba745d6bdc0b23f526ecf432dfe6adf | <ide><path>activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb
<ide> def convert_time_to_time_zone(value)
<ide>
<ide> if value.acts_like?(:time)
<ide> value.in_time_zone
<add> elsif value.is_a?(::Float)
<add> value
<ide> else
<ide> ma... | 1 |
Javascript | Javascript | fix lgtm error | 0693261e5cc45c98d7b2d57e4d884b29c3ec0725 | <ide><path>examples/js/loaders/SVGLoader.js
<ide> THREE.SVGLoader.prototype = {
<ide>
<ide> case 'path':
<ide> style = parseStyle( node, style );
<del> if ( node.hasAttribute( 'd' ) ) path = parsePathNode( node, style );
<add> if ( node.hasAttribute( 'd' ) ) path = parsePathNode( node );
<ide> br... | 1 |
Text | Text | remove set_morphology from docs | fcd79e0655727513a72b45dbd98651dff88244a9 | <ide><path>website/docs/api/tagger.md
<ide> architectures and their arguments and hyperparameters.
<ide> >
<ide> > ```python
<ide> > from spacy.pipeline.tagger import DEFAULT_TAGGER_MODEL
<del>> config = {
<del>> "set_morphology": False,
<del>> "model": DEFAULT_TAGGER_MODEL,
<del>> }
<add>> config = {"model": DEF... | 1 |
Javascript | Javascript | fix a minor bug | 62b29282fd57dd40654e3867350132a245fa4cd5 | <ide><path>src/Chart.Bar.js
<ide> calculateBarBase: function() {
<ide> var base = this.scale.endPoint;
<ide>
<del> if (this.scale.beginAtZero || ((this.scale.min < 0 && this.scale.max > 0) || (this.scale.min > 0 && this.scale.max < 0)))
<add> if (this.scale.beginAtZero || ((this.scale.min <= 0 && this.scal... | 1 |
Text | Text | fix bullet list and missing label filter | 37c7f3a2046dc01c6c58ed64638faf136dd0682c | <ide><path>docs/sources/reference/commandline/cli.md
<ide> Using multiple filters will be handled as a *AND*; for example
<ide> `--filter container=588a23dac085 --filter event=start` will display events for container
<ide> container 588a23dac085 *AND* the event type is *start*
<ide>
<del>Current filters:
<add>The curr... | 1 |
Javascript | Javascript | fix error appearing when disconnecting hmr client | 38ec30bc2efb0edc525ab733f5a3b9ceb0274fad | <ide><path>local-cli/server/util/attachWebsocketServer.js
<ide> function attachWebsocketServer<TClient: Object>({
<ide> });
<ide>
<ide> wss.on('connection', async ws => {
<add> let connected = true;
<ide> const url = ws.upgradeReq.url;
<ide>
<del> const sendFn = ws.send.bind(ws);
<add> const sendFn =... | 1 |
Javascript | Javascript | fix lint errors | ae65b49b9bab92c27f5d6c037f579168184a9537 | <ide><path>src/decoration.js
<ide> const nextId = () => idCounter++
<ide>
<ide> // Applies changes to a decorationsParam {Object} to make it possible to
<ide> // differentiate decorations on custom gutters versus the line-number gutter.
<del>const translateDecorationParamsOldToNew = function(decorationParams) {
<add>c... | 1 |
PHP | PHP | move some classes | 613f17fb6f1c76105111169deacac8fe8605d303 | <add><path>src/Illuminate/Foundation/Testing/Concerns/ImpersonatesUsers.php
<del><path>src/Illuminate/Foundation/Testing/ImpersonatesUsers.php
<ide> <?php
<ide>
<del>namespace Illuminate\Foundation\Testing;
<add>namespace Illuminate\Foundation\Testing\Concerns;
<ide>
<ide> use Illuminate\Contracts\Auth\Authenticatabl... | 9 |
Python | Python | fix xlnet classifier | 0dc9a20adb83a7a168e05488f745235732fd5368 | <ide><path>official/nlp/xlnet/classifier_utils.py
<ide> def convert_single_example(example_index, example, label_list, max_seq_length,
<ide> logging.info("input_ids: %s", " ".join([str(x) for x in input_ids]))
<ide> logging.info("input_mask: %s", " ".join([str(x) for x in input_mask]))
<ide> logging.info("s... | 2 |
Javascript | Javascript | make setnativeprops a no-op with fabric renderer | 1b94fd215dfd8ea25f1d9197890c613d4c84d915 | <ide><path>packages/react-native-renderer/src/NativeMethodsMixin.js
<ide> export default function(
<ide> * Manipulation](docs/direct-manipulation.html)).
<ide> */
<ide> setNativeProps: function(nativeProps: Object) {
<del> if (__DEV__) {
<del> if (warnAboutDeprecatedSetNativeProps) {
<del> ... | 5 |
PHP | PHP | increase code coverage | f7212543ae1484ee47b9a4c7d20a6d0e66d89ea0 | <ide><path>tests/TestCase/Log/Engine/BaseLogTest.php
<ide> namespace Cake\Test\TestCase\Log\Engine;
<ide>
<ide> use ArrayObject;
<add>use Cake\Database\TypeMap;
<ide> use Cake\Datasource\ConnectionManager;
<add>use Cake\Http\Response;
<ide> use Cake\ORM\Entity;
<ide> use Cake\TestSuite\TestCase;
<ide> use Psr\Log\LogL... | 1 |
Mixed | Python | add 3.7.7 release notes | 955a6b902b0838cd4f4471dc5fab6b334f36615b | <ide><path>docs/topics/release-notes.md
<ide> You can determine your currently installed version using `pip freeze`:
<ide>
<ide> ## 3.7.x series
<ide>
<add>### 3.7.7
<add>
<add>**Date**: [21st December 2017][3.7.7-milestone]
<add>
<add>* Fix typo to include *.mo locale files to packaging. [#5697][gh5697], [#5695][gh5... | 2 |
Javascript | Javascript | replace fixturesdir to use fixtures module | e04e9270cc73dea1324fa6f548afb1ffb365b958 | <ide><path>test/parallel/test-fs-symlink.js
<ide>
<ide> 'use strict';
<ide> const common = require('../common');
<add>const fixtures = require('../common/fixtures');
<ide> if (!common.canCreateSymLink())
<ide> common.skip('insufficient privileges');
<ide>
<ide> let fileTime;
<ide> common.refreshTmpDir();
<ide>
<id... | 1 |
Python | Python | add null related field option | ac2720afcba7be5e937b5f0360a470701861baaa | <ide><path>rest_framework/fields.py
<ide> class RelatedField(WritableField):
<ide>
<ide> def __init__(self, *args, **kwargs):
<ide> self.queryset = kwargs.pop('queryset', None)
<add> self.null = kwargs.pop('null', False)
<ide> super(RelatedField, self).__init__(*args, **kwargs)
<ide> ... | 2 |
Ruby | Ruby | reuse the same test for hwia reverse_merge! | fabcdc711b582307cb2996d26e82eadf32eb35a1 | <ide><path>activesupport/test/core_ext/hash_ext_test.rb
<ide> def test_indifferent_merging_with_block
<ide> assert_equal 5, merged[:b]
<ide> end
<ide>
<del> def test_reverse_merge
<add> def test_indifferent_reverse_merging
<ide> hash = HashWithIndifferentAccess.new key: :old_value
<ide> hash.reverse_me... | 1 |
Javascript | Javascript | simplify appregistry logging | 1f25d3c4ce605fc3bd2a4deefc754bd07cfbf1cf | <ide><path>Libraries/ReactNative/AppRegistry.js
<ide> const AppRegistry = {
<ide> */
<ide> runApplication(appKey: string, appParameters: any): void {
<ide> const msg =
<del> 'Running application "' +
<del> appKey +
<del> '" with appParams: ' +
<del> JSON.stringify(appParameters) +
<del> ... | 1 |
Go | Go | move validatecontextdirectory to builder package | fc6122a947f9eb9fc2f54fb8ba3b9da4531a6b99 | <ide><path>api/client/build.go
<ide> import (
<ide> "golang.org/x/net/context"
<ide>
<ide> "github.com/docker/docker/api"
<add> "github.com/docker/docker/builder"
<ide> "github.com/docker/docker/builder/dockerignore"
<ide> Cli "github.com/docker/docker/cli"
<ide> "github.com/docker/docker/opts"
<ide> func (cli *D... | 4 |
Javascript | Javascript | implement fill opacity | 440914e49b96021314fb67829c32d63e22e3f1b8 | <ide><path>src/display/svg.js
<ide> SVGGraphics = (function SVGGraphicsClosure() {
<ide> var color = Util.makeCssRgb(r, g, b);
<ide> this.current.strokeColor = color;
<ide> },
<add> setFillAlpha: function SVGGraphics_setFillAlpha(fillAlpha) {
<add> this.current.fillAlpha = fillAlpha;
<add> },... | 1 |
Python | Python | add unpack_inputs decorator for ctrl | 5709a204165d380c44473cfefabc092fe13fca7b | <ide><path>src/transformers/models/ctrl/modeling_tf_ctrl.py
<ide> TFSequenceClassificationLoss,
<ide> TFSharedEmbeddings,
<ide> get_initializer,
<del> input_processing,
<ide> keras_serializable,
<add> unpack_inputs,
<ide> )
<ide> from ...tf_utils import shape_list
<ide> from ...utils import loggin... | 1 |
PHP | PHP | add test for fallback renderer on construction | a6c93d5e445e73756fdfd781eb1c09937a95085f | <ide><path>tests/TestCase/Error/ErrorTrapTest.php
<ide> use Cake\Error\ErrorLogger;
<ide> use Cake\Error\ErrorTrap;
<ide> use Cake\Error\PhpError;
<add>use Cake\Error\Renderer\ConsoleRenderer;
<ide> use Cake\Error\Renderer\HtmlRenderer;
<ide> use Cake\Error\Renderer\TextRenderer;
<ide> use Cake\Log\Log;
<ide> public fu... | 1 |
PHP | PHP | use env helper | 7b3d97afdf8e1a7185541137b1e88be320f89673 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> use Closure;
<ide> use RuntimeException;
<ide> use Illuminate\Support\Arr;
<add>use Illuminate\Support\Env;
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Http\Request;
<ide> use Illuminate\Support\Collection;
<ide> public function detectEnvironment(Clo... | 3 |
Text | Text | update linux guide | e3744dff30c2da88c53df112709d80f441edc486 | <ide><path>guide/english/linux/basic-linux-commands/index.md
<ide> When starting out with linux, there are some basic commands everyone should know
<ide> - This command removes files, not directories. `rm file.txt` will remove the file named file.txt as long as it exists and is in the current directory.
<ide> - **Warni... | 1 |
Text | Text | add notes to contributing docs | c1be503308e755d72aae2c9695739bd33631e18b | <ide><path>docs/topics/contributing.md
<ide> If you want to draw attention to a note or warning, use a pair of enclosing line
<ide>
<ide> ---
<ide>
<del>## Third party packages
<add># Third party packages
<ide>
<ide> New features to REST framework are generally recommended to be implemented as third party li... | 1 |
Java | Java | add handlefailure property to frameworkservlet | 29ce6685cad0f6caf829c49024b1885ab31d62e0 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/FrameworkServlet.java
<ide> public abstract class FrameworkServlet extends HttpServletBean implements Applic
<ide> /** Should we dispatch an HTTP TRACE request to {@link #doService}?. */
<ide> private boolean dispatchTraceRequest = false;
<ide>
<... | 4 |
Text | Text | remove activation targets from documentation | a7936ffcb0079ef70527353cd3fc52221b247ccd | <ide><path>docs/sources/activations.md
<ide> model.add(Dense(20, 64, init='uniform', activation=tanh))
<ide> model.add(Activation(tanh))
<ide> ```
<ide>
<del>You can also specifiy a desired `target` for the average activation of hidden units in a layer.
<del>This is accomplished by a generalized KL divergence penalty ... | 1 |
Javascript | Javascript | render superblock titles on initial render | 7d7e559b08473d02447630863b7148f2d7d25ff6 | <ide><path>server/utils/map.js
<ide> export function getChallenge(
<ide> ) {
<ide> return map
<ide> .flatMap(({ entities, result: { superBlocks } }) => {
<add> const superBlock = entities.superBlock;
<ide> const block = entities.block[blockDashedName];
<ide> const challenge = entities.challenge[c... | 1 |
PHP | PHP | class | e8c0d702acf20f486fc973ddd4070c5da9a65a7c | <ide><path>src/Illuminate/Auth/SessionGuard.php
<ide> public function getLastAttempted()
<ide> */
<ide> public function getName()
<ide> {
<del> return 'login_'.$this->name.'_'.sha1(get_class($this));
<add> return 'login_'.$this->name.'_'.sha1(static::class);
<ide> }
<ide>
<ide> /**
<... | 8 |
Ruby | Ruby | kill unnecessary perl elements | 202f793d8a46bcc186740429af26ea14093d49f8 | <ide><path>Library/Homebrew/cleaner.rb
<ide> # Cleans a newly installed keg.
<ide> # By default:
<ide> # * removes .la files
<add># * removes perllocal.pod files
<add># * removes .packlist files
<ide> # * removes empty directories
<ide> # * sets permissions on executables
<ide> # * removes unresolved symlinks
<ide> def... | 1 |
Ruby | Ruby | add xcode 4.4.1 to standard compilers map | 1a8d5357215daaa2637e02ecfbb657c7b669b3a4 | <ide><path>Library/Homebrew/macos.rb
<ide> def prefer_64_bit?
<ide> "4.3.1" => {:llvm_build_version=>2336, :clang_version=>"3.1", :clang_build_version=>318},
<ide> "4.3.2" => {:llvm_build_version=>2336, :clang_version=>"3.1", :clang_build_version=>318},
<ide> "4.3.3" => {:llvm_build_version=>2336, :clang_ve... | 1 |
Javascript | Javascript | remove unused files | 010fa63e762b0e8bda702034876710cd4fe7d588 | <ide><path>api-server/common/utils/ajax-stream.js
<del>/*
<del> * Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
<del> * Microsoft Open Technologies would like to thank its contributors, a list
<del> * of whom are at http://rx.codeplex.com/wikipage?title=Contributors.
<del> *
<del> * Licensed und... | 2 |
Text | Text | remove unneeded changelog entry | 058dc24b01e2a8de252db156a4b0e0890aa09cb7 | <ide><path>actionpack/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<del>* `ActionController::Parameters#permit!` is now recursive. *Brendan
<del> Loudermilk*
<del>
<ide> * `ActionController::Base.page_cache_extension` option is deprecated
<ide> in favour of `ActionController::Base.default_static_... | 1 |
Python | Python | upgrade waf to 1.5.14a | 5809483b78902df5e8162ca74e923369b1cb3bf3 | <ide><path>tools/wafadmin/Tools/config_c.py
<ide> def run_c_code(self, *k, **kw):
<ide>
<ide> # if we need to run the program, try to get its result
<ide> if kw['execute']:
<add> ak = {} # syntax for python < 2.5, don't touch
<add> ak['stdout'] = ak['stderr'] = Utils.pproc.PIPE
<ide> args = Utils.to_list(kw.get(... | 1 |
Javascript | Javascript | add mustcall to net-can-reset-timeout | 2c7b5332d6be2e729a5699dab33481864e13d08e | <ide><path>test/parallel/test-net-can-reset-timeout.js
<ide> const server = net.createServer(common.mustCall(function(stream) {
<ide> stream.write('WHAT.');
<ide> }));
<ide>
<del> stream.on('end', function() {
<add> stream.on('end', common.mustCall(function() {
<ide> console.log('server side end');
<ide> ... | 1 |
Javascript | Javascript | kill global objects | e9b6ffbaf6cae2bea5908be90b31c6f7f4a778c2 | <ide><path>fonts.js
<ide> var FontLoader = {
<ide> return rule;
<ide> },
<ide>
<del> bind: function fontLoaderBind(fonts, callback) {
<add> bind: function fontLoaderBind(fonts, callback, objects) {
<ide> function checkFontsLoaded() {
<ide> for (var i = 0; i < objs.length; i++) {
<ide> var fon... | 3 |
Java | Java | simplify controlleradvicebean constructors | 4568edf6c455f22c232dbfc1ed79ae263a99a7f4 | <ide><path>spring-web/src/main/java/org/springframework/web/method/ControllerAdviceBean.java
<ide> public class ControllerAdviceBean implements Ordered {
<ide>
<ide> /**
<del> * Declared as {@code Object} since this may be a reference to a
<del> * {@code String} representing the bean name or a reference to the actu... | 2 |
Python | Python | serialize model_type if exists | 6bb3edc3001ab990dc40cf2822d667e125cde287 | <ide><path>src/transformers/configuration_roberta.py
<ide>
<ide> class RobertaConfig(BertConfig):
<ide> pretrained_config_archive_map = ROBERTA_PRETRAINED_CONFIG_ARCHIVE_MAP
<add> model_type = "roberta"
<ide><path>src/transformers/configuration_utils.py
<ide> def __repr__(self):
<ide> def to_dict(self):
<id... | 2 |
Java | Java | refine changes for pr | 005d2018d4046ffe483b073f51080d9f7b9f54d6 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/AbstractNamedValueMethodArgumentResolver.java
<ide> public abstract class AbstractNamedValueMethodArgumentResolver implements Handle
<ide> * @param beanFactory a bean factory for resolving {@code ${...}}
<ide> * place... | 4 |
Javascript | Javascript | use strict mode for js files | e62bd48a9e99ff27e30923d4f35cd44605b61499 | <ide><path>fonts.js
<ide> /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
<ide> /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
<ide>
<add>"use strict";
<add>
<ide> /**
<ide> * Maximum file size of the font.
<ide> */
<ide> var Type1Parser = function() {
<ide> thi... | 5 |
Text | Text | fix missing file extensions in docs | 5bcd33fccbb771d8004a568b67e6e03b301c5764 | <ide><path>docs/routing/dynamic-routes.md
<ide> Client-side navigations to a dynamic route can be handled with [`next/link`](/do
<ide>
<ide> Dynamic routes can be extended to catch all paths by adding three dots (`...`) inside the brackets. For example:
<ide>
<del>- `pages/post/[...slug]` matches `/post/a`, but also ... | 2 |
Text | Text | update readme and add link to deeplab2 | 0e2d1f0f33673fc0e7f224caf63ada5148648adc | <ide><path>research/deeplab/README.md
<ide> # DeepLab: Deep Labelling for Semantic Image Segmentation
<ide>
<add>**To new and existing DeepLab users**: We have released a unified codebase for
<add>dense pixel labeling tasks in TensorFlow2 at https://github.com/google-research/deeplab2.
<add>Please consider switching t... | 1 |
Javascript | Javascript | use common.port instead of an extraneous variable | 7294897c77d1e5612efe49aad9f84809ba8d1592 | <ide><path>test/internet/test-dgram-connect.js
<ide> const { addresses } = require('../common/internet');
<ide> const assert = require('assert');
<ide> const dgram = require('dgram');
<ide>
<del>const PORT = 12345;
<del>
<ide> const client = dgram.createSocket('udp4');
<del>client.connect(PORT, addresses.INVALID_HOST,... | 1 |
Mixed | Python | assemble cli command | c786e98e56eaba201812758c3ff023395ed650eb | <ide><path>spacy/cli/__init__.py
<ide> from .package import package # noqa: F401
<ide> from .profile import profile # noqa: F401
<ide> from .train import train_cli # noqa: F401
<add>from .assemble import assemble_cli # noqa: F401
<ide> from .pretrain import pretrain # noqa: F401
<ide> from .debug_data import debug... | 3 |
Text | Text | start docker before checking for updated nat rule | 457f2123739df7bc896008b6d796353aae7a0429 | <ide><path>docs/sources/articles/networking.md
<ide> illustrate the technique.
<ide> inet 192.168.5.1/24 scope global bridge0
<ide> valid_lft forever preferred_lft forever
<ide>
<del> # Confirming outgoing NAT masquerade is setup
<add> # Tell Docker about it and restart (on Ubuntu)
<add>
<add>... | 1 |
Ruby | Ruby | use binread instead of setting file mode manually | 96a1a2a37c3c4a8be37158d5fc52850739b93087 | <ide><path>actionpack/test/controller/api/data_streaming_test.rb
<ide>
<ide> module TestApiFileUtils
<ide> def file_path() __FILE__ end
<del> def file_data() @data ||= File.open(file_path, "rb") { |f| f.read } end
<add> def file_data() @data ||= File.binread(file_path) end
<ide> end
<ide>
<ide> class DataStreamin... | 5 |
Python | Python | fix bad indentation | da661ee4986bb032eaedcf0786e70e22cffb9457 | <ide><path>glances/exports/glances_rabbitmq.py
<ide> def init(self):
<ide> if not self.export_enable:
<ide> return None
<ide> try:
<del> parameters = pika.URLParameters(
<del> 'amqp://' + self.rabbitmq_user +
<del> ':' + self.rabbitmq_pass... | 1 |
Text | Text | add marco subdirectory to readme.md | 54d46209a1b333a69dfe72c9ff95f1cda90853ce | <ide><path>research/README.md
<ide> installation](https://www.tensorflow.org/install).
<ide> - [pcl_rl](pcl_rl): code for several reinforcement learning algorithms,
<ide> including Path Consistency Learning.
<ide> - [ptn](ptn): perspective transformer nets for 3D object reconstruction.
<add>- [marco](marco): ... | 1 |
Javascript | Javascript | prefer nearestoftype to nearestinstanceof | e754cf4d289745279e1801eb97e0fd639164b67b | <ide><path>packages/ember-handlebars/lib/controls/tabs/tab_pane_view.js
<ide> var get = Ember.get;
<ide> */
<ide> Ember.TabPaneView = Ember.View.extend({
<ide> tabsContainer: Ember.computed(function() {
<del> return this.nearestInstanceOf(Ember.TabContainerView);
<add> return this.nearestOfType(Ember.TabContain... | 2 |
Text | Text | add note on academic credits | d6b8c811ea56024c8d17f5b8bff14c6a928dbf91 | <ide><path>docs/how-to-work-on-coding-challenges.md
<ide> Optional Test tear down code.
<ide> </section>
<ide> ````
<ide>
<del>> ?[!NOTE]
<add>> [!NOTE]
<ide> >
<ide> > 1. In the above sections, examples of `{ext}` are:
<ide> >
<ide><path>docs/index.md
<ide> OR
<ide>
<ide> ## Frequently Asked Questions
<ide>
<add>##... | 2 |
Ruby | Ruby | fix warning during test execution | fe2f168d40385a0412f41c1a2a44a5536cada8df | <ide><path>actionpack/test/controller/action_pack_assertions_test.rb
<ide> def test_redirect_to_named_route
<ide>
<ide> def test_string_constraint
<ide> with_routing do |set|
<del> set.draw do |map|
<add> set.draw do
<ide> match "photos", :to => 'action_pack_assertions#nothing', :constraints =>... | 1 |
Javascript | Javascript | add more compat hooks to maintemplate | 97079ba9a33460717dbdc13040ee880a97d73d89 | <ide><path>lib/MainTemplate.js
<ide> class MainTemplate {
<ide> "DEP_WEBPACK_MAIN_TEMPLATE_RENDER_MANIFEST"
<ide> )
<ide> },
<add> modules: {
<add> tap: () => {
<add> throw new Error(
<add> "MainTemplate.hooks.modules has been removed (there is no replacement, please create an issue to request... | 1 |
Python | Python | set version back to 2.1.0a4 | a7b085ae46c24e8f4e6acd40f1039fc133797fac | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a5"
<add>__version__ = "2.1.0a4"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
Python | Python | reuse the code to compute sha256, md5 hashes | d6282a92239c55a2ba486668a834db9a735be2c7 | <ide><path>pavement.py
<ide> import shutil
<ide> import subprocess
<ide> import re
<del>try:
<del> from hashlib import md5
<del> from hashlib import sha256
<del>except ImportError:
<del> from md5 import md5
<add>import hashlib
<ide>
<ide> import paver
<ide> from paver.easy import \
<ide> def sdist(options):
<... | 1 |
Text | Text | move rails new doc into a new header | 0f2a97f6ca6d6718fae455ce6497d72aa7e184f6 | <ide><path>guides/source/command_line.md
<ide> After reading this guide, you will know:
<ide>
<ide> NOTE: This tutorial assumes you have basic Rails knowledge from reading the [Getting Started with Rails Guide](getting_started.html).
<ide>
<add>Creating a Rails App
<add>--------------------
<add>
<add>First, let's cr... | 1 |
Python | Python | sanitize path-separators when running `runtest.py` | d01a312de72bb4eef007bf661c22ea8e21e71378 | <ide><path>runtests.py
<ide> def build_project(args):
<ide>
<ide> py_v_s = sysconfig.get_config_var('py_version_short')
<ide> platlibdir = getattr(sys, 'platlibdir', '') # Python3.9+
<del> site_dir_template = sysconfig.get_path('platlib', expand=False)
<add> site_dir_template = os.path.normpath(sysconfi... | 1 |
Javascript | Javascript | remove timer in fs.watchfile() test | 6d60c930565710d6cbc77521a2cd94d272986646 | <ide><path>test/parallel/test-fs-watch-file-enoent-after-deletion.js
<ide> fs.watchFile(filename, { interval: 50 }, common.mustCall(function(curr, prev) {
<ide> fs.unwatchFile(filename);
<ide> }));
<ide>
<del>setTimeout(fs.unlinkSync, common.platformTimeout(300), filename);
<add>fs.unlinkSync(filename); | 1 |
Text | Text | remove console.table() as inspector-dependent | 9c8395679cb211c99d47246c1c37ae7c4ae40396 | <ide><path>doc/api/console.md
<ide> console.table(Symbol());
<ide>
<ide> console.table(undefined);
<ide> // undefined
<del>```
<ide>
<del>```js
<ide> console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]);
<ide> // ┌─────────┬─────┬─────┐
<ide> // │ (index) │ a │ b │
<ide> // ├─────────┼─────┼─────┤
<ide> // │ 0 ... | 1 |
Ruby | Ruby | tell users how to assign a $editor | 82f7dc6178f86e5e2dd82f9e528475a6acee6cd8 | <ide><path>railties/lib/rails/commands/secrets/secrets_command.rb
<ide> def setup
<ide> end
<ide>
<ide> def edit
<add> if ENV["EDITOR"].empty?
<add> say "No $EDITOR to open decrypted secrets in. Assign one like this:"
<add> say ""
<add> say %(EDITOR="mate --wait" bin/rails... | 2 |
Javascript | Javascript | upgrade cacheplugin to es6 | 9f3b868385ef681a3e3ec8876b63595a4319747a | <ide><path>lib/CachePlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>var async = require("async");
<add>"use strict";
<ide>
<del>function CachePlugin(cache) {
<del> this.cache = cache || {};
<del> this.FS_ACCURENCY = 2000;
<del>}
<del>mod... | 1 |
Javascript | Javascript | use weakmap in webgl(properties|attributes) | f8c1beeb094c58528a8b5847facf8bdc5c9232c6 | <ide><path>src/renderers/webgl/WebGLAttributes.js
<ide>
<ide> function WebGLAttributes( gl ) {
<ide>
<del> var buffers = {};
<add> var buffers = new WeakMap();
<ide>
<ide> function createBuffer( attribute, bufferType ) {
<ide>
<ide> function WebGLAttributes( gl ) {
<ide>
<ide> if ( attribute.isInterleavedBuffer... | 2 |
PHP | PHP | add a textrenderer and integrate it into debugger | b497aff7006521933c2deda6d3e417c682c1ad45 | <ide><path>src/Error/Debugger.php
<ide> use Cake\Error\Debug\ScalarNode;
<ide> use Cake\Error\Debug\SpecialNode;
<ide> use Cake\Error\Debug\TextFormatter;
<add>use Cake\Error\Renderer\TextRenderer;
<ide> use Cake\Log\Log;
<ide> use Cake\Utility\Hash;
<ide> use Cake\Utility\Security;
<ide> class Debugger
<ide> ]... | 4 |
Ruby | Ruby | fix url encoded in expected values | 24da1ecd3de86177f669072c542c9a01e6d6649d | <ide><path>Library/Homebrew/test/utils/github_spec.rb
<ide> describe "::query_string" do
<ide> it "builds a query with the given hash parameters formatted as key:value" do
<ide> query = subject.query_string(user: "Homebrew", repo: "Brew")
<del> expect(query).to eq("q=user%3aHomebrew+repo%3aTest&per_pag... | 1 |
Javascript | Javascript | use relative imports in ember-views | 7dab3b1fbb19d27f088cbe347a5202c2ab281112 | <ide><path>packages/ember-views/lib/index.js
<ide>
<ide> // BEGIN IMPORTS
<ide> import Ember from 'ember-runtime';
<del>import jQuery from 'ember-views/system/jquery';
<add>import jQuery from './system/jquery';
<ide> import {
<ide> isSimpleClick,
<ide> getViewBounds,
<ide> getViewClientRects,
<ide> getViewBoun... | 12 |
Ruby | Ruby | modify arguments when calling methods | 5b3ac1fcb2d4fdfecaa37184fb1c76f10b2eabe5 | <ide><path>Library/Homebrew/dev-cmd/update-license-data.rb
<ide> def update_license_data_args
<ide> def update_license_data
<ide> update_license_data_args.parse
<ide> ohai "Updating SPDX license data..."
<del> spdx_download_result = curl(SPDX_DATA_URL)
<del> SPDX_PATH.write(spdx_download_result.stdout, ... | 1 |
Javascript | Javascript | fix home/end on gnu/linux | 0e1e00e68b8e530e592a2d851f32e587644f9904 | <ide><path>lib/readline.js
<ide> Interface.prototype._ttyWrite = function (b) {
<ide> this.cursor++;
<ide> this.output.write('\x1b[0C');
<ide> }
<del> } else if (b[1] === 91 && b[2] === 72) { // home
<add> } else if ((b[1] === 91 || b[1] === 79) && b[2] === 72) { // home
<ide> ... | 1 |
Javascript | Javascript | fix reference leak | bae03c4e30f927676203f61ff5a34fe0a0c0bbc9 | <ide><path>benchmark/process/next-tick-loop-args.js
<add>'use strict';
<add>const common = require('../common.js');
<add>const bench = common.createBenchmark(main, {
<add> n: [1e4, 2e4, 4e4],
<add> loop: [1e2, 2e2],
<add>});
<add>
<add>function main({ n, loop }) {
<add> bench.start();
<add> run();
<add> function r... | 3 |
Text | Text | add ways to filter packets with tools | 9094978529fb97fe0d050397c6f006153c784a37 | <ide><path>guide/english/security/packet-filtering/index.md
<ide> Network layer firewalls define packet filtering rule sets, which provide highly
<ide> ### Filtering Methods
<ide>
<ide> There are three ways in which a packet filter can be configured, once the set of filtering rules has been defined. In the first metho... | 1 |
Javascript | Javascript | add missing documentation | 6775972461ad157a787aeab2c18a6670af6e7603 | <ide><path>src/ng/http.js
<ide> function isSuccess(status) {
<ide> }
<ide>
<ide>
<add>/**
<add> * @ngdoc provider
<add> * @name $httpProvider
<add> * @description
<add> * Use `$httpProvider` to change the default behavior of the {@link ng.$http $http} service.
<add> * */
<ide> function $HttpProvider() {
<ide> var J... | 1 |
Ruby | Ruby | make annotation into a proper class | 1638d3c075f6e2139ff7ae63c8a666068e1ae5e5 | <ide><path>railties/lib/rails/source_annotation_extractor.rb
<ide> module Rails
<ide> # start with the tag optionally followed by a colon. Everything up to the end
<ide> # of the line (or closing ERB comment tag) is considered to be their text.
<ide> class SourceAnnotationExtractor
<del> Annotation = Struct.ne... | 1 |
Text | Text | translate 07 to korean | ae4fbff308616803a9d31d2251383091f4b27454 | <ide><path>docs/docs/07-forms.ko-KR.md
<add>---
<add>id: forms-ko-KR
<add>title: 폼
<add>permalink: forms.ko-KR.html
<add>prev: transferring-props.ko-KR.html
<add>next: working-with-the-browser.ko-KR.html
<add>---
<add>
<add>`<input>`, `<textarea>`, `<option>` 같은 폼 컴포넌트는 다른 네이티브 컴포넌트와 다릅니다. 왜냐하면, 사용자의 상호작용에 의해 변경될 수 있기 ... | 1 |
Javascript | Javascript | fix backquotes on method descriptions | 7fa391c9790bc4e73c2295c6a7a9084db78e18a7 | <ide><path>src/ng/cacheFactory.js
<ide> *
<ide> * - `{object}` `info()` — Returns id, size, and options of cache.
<ide> * - `{void}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache.
<del> * - `{{*}} `get({string} key) — Returns cached value for `key` or undefined for cache miss.
<del> * - `... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.