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 a configuration test like ac_check_funcs_once | eb91adf1193e471ae784c015e6a46329d02d3b45 | <ide><path>numpy/distutils/command/config.py
<ide> def check_func(self, func,
<ide> return self.try_link(body, headers, include_dirs,
<ide> libraries, library_dirs)
<ide>
<add> def check_funcs_once(self, funcs,
<add> headers=None, include_dirs=None,
<add> ... | 1 |
Text | Text | fix default of duplex.allowhalfopen | 029215d754844c6f845ada0d3e6f42f51b33731a | <ide><path>doc/api/stream.md
<ide> added: v0.9.4
<ide>
<ide> If `false` then the stream will automatically end the writable side when the
<ide> readable side ends. Set initially by the `allowHalfOpen` constructor option,
<del>which defaults to `false`.
<add>which defaults to `true`.
<ide>
<ide> This can be changed ma... | 1 |
Javascript | Javascript | fix config path (#537) | 815f17989befcb1875131fb91d4e2b82e2356561 | <ide><path>server/index.js
<ide> export default class Server {
<ide> this.router = new Router()
<ide> this.hotReloader = dev ? new HotReloader(this.dir, { quiet }) : null
<ide> this.http = null
<del> this.config = getConfig(dir)
<add> this.config = getConfig(this.dir)
<ide>
<ide> this.defineRoute... | 1 |
Python | Python | resolve line-too-long in preprocessing | 7b5629dcf8d770e9e9fdc77ced3f87c8df0990a1 | <ide><path>keras/preprocessing/image.py
<ide> def set_processing_attrs(
<ide> (if `save_to_dir` is set).
<ide> subset: Subset of data (`"training"` or `"validation"`) if
<ide> validation_split is set in ImageDataGenerator.
<del> interpolation: Interpolation method ... | 5 |
Ruby | Ruby | avoid encrypt + decrypt on attribute assignment | 9ba037471d6abf0ce52a250db43cfcd2e9a72390 | <ide><path>activerecord/lib/active_record/encryption/encrypted_attribute_type.rb
<ide> def initialize(scheme:, cast_type: ActiveModel::Type::String.new, previous_type:
<ide> @default = default
<ide> end
<ide>
<add> def cast(value)
<add> cast_type.cast(value)
<add> end
<add>
<ide> d... | 1 |
Python | Python | add none testcases to date, datetime, time | 681ad6f5370c88c15ccde3ecd61e735cde514e1a | <ide><path>rest_framework/tests/fields.py
<ide> def test_from_native_empty(self):
<ide>
<ide> self.assertEqual(result, None)
<ide>
<add> def test_from_native_none(self):
<add> """
<add> Make sure from_native() returns None on None param.
<add> """
<add> f = serializers.DateField... | 1 |
Ruby | Ruby | use #model_name on instances instead of classes | 6b0e834a194d112585f41deba0a40780d68e38c6 | <ide><path>actionpack/lib/action_controller/model_naming.rb
<ide> def convert_to_model(object)
<ide> end
<ide>
<ide> def model_name_from_record_or_class(record_or_class)
<del> (record_or_class.is_a?(Class) ? record_or_class : convert_to_model(record_or_class).class).model_name
<add> convert_to_model(... | 13 |
Javascript | Javascript | fix soft tabs | 9d382d6f664720486beca0b937f70c1ba545cacc | <ide><path>test/unit/src/animation/AnimationAction.tests.js
<ide> import { LoopOnce, LoopRepeat, LoopPingPong } from '../../../../src/constants';
<ide>
<ide> function createAnimation(){
<ide>
<del> var root = new Object3D();
<add> var root = new Object3D();
<ide> var mixer = new AnimationMixer(root);
<ide> var t... | 1 |
PHP | PHP | add newlines for readability | 203bb49f733299d779212e86ba64ef92acb60b9a | <ide><path>tests/TestCase/Core/AppTest.php
<ide> public function testClassPathWithPlugins()
<ide> {
<ide> $basepath = TEST_APP . 'Plugin' . DS;
<ide> $this->loadPlugins(['TestPlugin', 'Company/TestPluginThree']);
<add>
<ide> $result = App::classPath('Controller', 'TestPlugin');
<ide> ... | 1 |
Python | Python | create a preprocess function that gets bigrams | 6e641f46d49fcdc88e3d0cbcefa5c4860e2cd0ea | <ide><path>spacy/_ml.py
<ide> def _zero_init_impl(self, X, y):
<ide>
<ide> @layerize
<ide> def _preprocess_doc(docs, drop=0.):
<del> keys = [doc.to_array([LOWER]) for doc in docs]
<add> keys = [doc.to_array(LOWER) for doc in docs]
<ide> ops = Model.ops
<ide> # The dtype here matches what thinc is expecti... | 1 |
Javascript | Javascript | fix alpn tests for openssl1.0.2h | be480b14996153e93326cdf17ea86f85c0b43fa6 | <ide><path>test/parallel/test-tls-alpn-server-client.js
<ide> function Test1() {
<ide> client: {ALPN: 'b', NPN: undefined}});
<ide> // nothing is selected by ALPN
<ide> checkResults(results[2],
<del> {server: {ALPN: false, NPN: false},
<del> client: {ALPN: fals... | 1 |
Text | Text | add french translation | 7ee89b908ee93833e6bd93de0db416f8f44135bb | <ide><path>threejs/lessons/fr/threejs-fog.md
<ide> On peut l'ajouter comme ceci.
<ide> }
<ide> ```
<ide>
<del>The `near` and `far` parameters set the minimum and maximum values
<del>for adjusting the fog. They are set when we setup the camera.
<add>Les paramètres `near` et `far` définissent les valeurs minimales et ma... | 1 |
Javascript | Javascript | fix minor typo | 9fea1dedc5079f6ca093839a1754d94677a08918 | <ide><path>examples/todos/test/actions/todos.spec.js
<ide> describe('todo actions', () => {
<ide> })
<ide> })
<ide>
<del> it('toogleTodo should create TOGGLE_TODO action', () => {
<add> it('toggleTodo should create TOGGLE_TODO action', () => {
<ide> expect(actions.toggleTodo(1)).toEqual({
<ide> type:... | 1 |
Javascript | Javascript | simplify asserterror creation | 4716dc662d8d24d4d454dd4459ff724588e98eb1 | <ide><path>lib/assert.js
<ide> var assert = module.exports = ok;
<ide> // expected: expected })
<ide>
<ide> assert.AssertionError = function AssertionError(options) {
<del> this.name = 'AssertionError';
<ide> this.message = options.message;
<ide> this.actual = options.actual;
<ide> t... | 1 |
Java | Java | add support for generating classes | d5374550e5da13f8855321b337295b6a38ef38c8 | <ide><path>spring-core/src/main/java/org/springframework/aot/generate/ClassGenerator.java
<add>/*
<add> * Copyright 2002-2022 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * Y... | 5 |
Go | Go | return nil explicitly | cda9d5f7f0c4a155d1ae9e06c203fcb89600ff2a | <ide><path>pkg/system/rm.go
<ide> func EnsureRemoveAll(dir string) error {
<ide> for {
<ide> err := os.RemoveAll(dir)
<ide> if err == nil {
<del> return err
<add> return nil
<ide> }
<ide>
<ide> pe, ok := err.(*os.PathError) | 1 |
Javascript | Javascript | fix parsing of binary upgrade response body | de4600ea2bf2eb5a1367825dc84ea7561b0c3529 | <ide><path>lib/_http_client.js
<ide> function parserOnIncomingClient(res, shouldKeepAlive) {
<ide> var socket = this.socket;
<ide> var req = socket._httpMessage;
<ide>
<del>
<ide> // propagate "domain" setting...
<ide> if (req.domain && !res.domain) {
<ide> debug('setting "res.domain"');
<ide> function par... | 4 |
Ruby | Ruby | fix flatten_deeper to preserve nils | 92253829dee9a1fb545f71f71894dee1df604f74 | <ide><path>activerecord/lib/active_record/associations/association_proxy.rb
<ide> def flatten_deeper(array)
<ide> if elem.respond_to?(:each)
<ide> flatten_deeper(elem)
<ide> else
<del> Array.wrap(elem)
<add> [elem]
<ide> end
<ide> ... | 1 |
Python | Python | add support for batch_input_shape kwarg | 2553f07c3c366704dff429aeb939dff5e323d422 | <ide><path>keras/layers/containers.py
<ide> def get_output(self, train=False):
<ide> else:
<ide> return dict([(k, v.get_output(train)) for k, v in self.outputs.items()])
<ide>
<del> def add_input(self, name, input_shape, dtype='float'):
<add> def add_input(self, name, input_shape=None, batch_... | 6 |
Go | Go | replace s.d.start() with s.d.startwithbusybox() | aef344dcf801b1af67bc7ce6219e636e48c28a1f | <ide><path>integration-cli/docker_cli_network_unix_test.go
<ide> func (s *DockerNetworkSuite) TestDockerNetworkMultipleNetworksGracefulDaemonRest
<ide> cName := "bb"
<ide> nwList := []string{"nw1", "nw2", "nw3"}
<ide>
<del> s.d.Start()
<add> s.d.StartWithBusybox()
<ide>
<ide> connectContainerToNetworks(c, s.d, cNa... | 1 |
Ruby | Ruby | remove unnecessary require statements | c59d5db6313f1478f51e0c8dd71b376566c67c75 | <ide><path>Library/Homebrew/livecheck/strategy/extract_plist.rb
<ide>
<ide> require "bundle_version"
<ide> require "unversioned_cask_checker"
<del>require_relative "page_match"
<ide>
<ide> module Homebrew
<ide> module Livecheck
<ide><path>Library/Homebrew/livecheck/strategy/header_match.rb
<ide> # typed: true
<ide>... | 2 |
Python | Python | update error messages in preprocessing/image.py | 961acd563851cf1cf90d20f08c30b3e392d068ff | <ide><path>keras/preprocessing/image.py
<ide> def smart_resize(x, size, interpolation='bilinear'):
<ide> """
<ide> if len(size) != 2:
<ide> raise ValueError('Expected `size` to be a tuple of 2 integers, '
<del> 'but got: %s' % (size,))
<add> f'but got: {size}.')
<ide> i... | 1 |
Javascript | Javascript | update shared mmdphysics | 0c5e84eac5d07aec1de6ae5f0f4286a7dd7f68ee | <ide><path>examples/js/animation/MMDPhysics.js
<ide> THREE.MMDPhysics.prototype = {
<ide>
<ide> update: function ( delta ) {
<ide>
<add> this.updateRigidBodies();
<add> this.stepSimulation( delta );
<add> this.updateBones();
<add>
<add> },
<add>
<add> stepSimulation: function ( delta ) {
<add>
<ide> var unitSte... | 2 |
PHP | PHP | improve assoc array docs | 51e38e03598d8c53d00616965cce92aafac33655 | <ide><path>src/View/Helper/HtmlHelper.php
<ide> public function tableCells(
<ide> $count++;
<ide> $cellsOut = $this->_renderCells($line, $useCount);
<ide> $opts = $count % 2 ? $oddTrOptions : $evenTrOptions;
<del> /** @var array<string> $options */
<add> /** @va... | 1 |
Javascript | Javascript | add german keyboard "+"-zoom | d05031d3b0812b4844d0e778ffa6cf0062016c7e | <ide><path>web/viewer.js
<ide> window.addEventListener('keydown', function keydown(evt) {
<ide> case 61: // FF/Mac '='
<ide> case 107: // FF '+' and '='
<ide> case 187: // Chrome '+'
<add> case 171: // FF with German keyboard
<ide> PDFView.zoomIn();
<ide> handled = true;
<ide> ... | 1 |
Python | Python | update 3n+1.py (#996) | 1e0b33d3dd7eda32a97fe73df09df20e2004eb98 | <ide><path>maths/3n+1.py
<del>def main():
<del> def n31(a):# a = initial number
<del> c = 0
<del> l = [a]
<del> while a != 1:
<del> if a % 2 == 0:#if even divide it by 2
<del> a = a // 2
<del> elif a % 2 == 1:#if odd 3n+1
<del> a = 3*a +1
<del>... | 1 |
Javascript | Javascript | improve readline test coverage for tty | 7a953929fef5a7892d4697ed73e6fd314055beee | <ide><path>test/parallel/test-readline-interface.js
<ide> function isWarned(emitter) {
<ide> assert.strictEqual(cursorPos.cols, expectedLines.slice(-1)[0].length);
<ide> rli.close();
<ide> }
<add>
<add> {
<add> // Beginning and end of line
<add> const fi = new FakeInput();
<add> const ... | 1 |
Go | Go | attach streams before create | 02d1934279294f28af6e509a29f909654677ed8b | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func (s *DockerDaemonSuite) TestRunWithUlimitAndDaemonDefault(c *check.C) {
<ide> c.Assert(err, checker.IsNil)
<ide> c.Assert(out, checker.Contains, "[nofile=42:42]")
<ide> }
<add>
<add>func (s *DockerSuite) TestRunStoppedLoggingDriverNoLeak(c *check.C) {
<add> ... | 2 |
Ruby | Ruby | use connection_class to check in connected_to | 3e936131ac44afe92b7933971e9ea94a8dcfb17d | <ide><path>activerecord/lib/active_record/connection_handling.rb
<ide> def connected_to(role: nil, shard: nil, prevent_writes: false, &blk)
<ide> raise NotImplementedError, "calling `connected_to` is only allowed on ActiveRecord::Base or abstract classes."
<ide> end
<ide>
<del> if name != connection... | 1 |
Javascript | Javascript | remove unneeded comma in numberkeyframetrack | bbf8aa17f24de6016bdbb60735e3027a84c1e774 | <ide><path>src/animation/tracks/NumberKeyframeTrack.js
<ide> NumberKeyframeTrack.prototype =
<ide>
<ide> constructor: NumberKeyframeTrack,
<ide>
<del> ValueTypeName: 'number',
<add> ValueTypeName: 'number'
<ide>
<ide> // ValueBufferType is inherited
<ide> | 1 |
PHP | PHP | apply fixes from styleci | 639ddda89dd3d9466b6e9e68a7ebdb06f1fe6700 | <ide><path>src/Illuminate/Routing/Redirector.php
<ide> class Redirector
<ide> {
<ide> use Macroable;
<del>
<add>
<ide> /**
<ide> * The URL generator instance.
<ide> * | 1 |
Text | Text | add missing period in shouldcomponentupdate doc | fa4f79f9fc94a26c9ce18478e24a8bfd8cb39267 | <ide><path>docs/docs/reference-react-component.md
<ide> shouldComponentUpdate(nextProps, nextState)
<ide>
<ide> Use `shouldComponentUpdate()` to let React know if a component's output is not affected by the current change in state or props. The default behavior is to re-render on every state change, and in the vast ma... | 1 |
PHP | PHP | make mailable@with more flexible | b7f7a3f5e21733f48c58d2fbcb6512a3a83a453f | <ide><path>src/Illuminate/Mail/Mailable.php
<ide> public function text($textView, array $data = [])
<ide> /**
<ide> * Set the view data for the message.
<ide> *
<del> * @param array $data
<add> * @param string|array $key
<add> * @param mixed $value
<ide> * @return $this
<ide> ... | 1 |
PHP | PHP | update layout.blade.php | 4880ca605b47608cc10906cd3ab9690c38006932 | <ide><path>src/Illuminate/Mail/resources/views/html/layout.blade.php
<ide> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<ide> <meta name="color-scheme" content="light">
<ide> <meta name="supported-color-schemes" content="light">
<del></head>
<del><body>
<ide> <style>
<ide> @media only screen an... | 1 |
Text | Text | add javascript links | 746925eb4bc8c465ba67dc9096d649f7df917529 | <ide><path>guide/english/javascript/additional-javascript-resources/index.md
<ide> title: JavaScript Tutorials and Other Resources
<ide> * [Introduction to JavaScript: First Steps](https://www.educative.io/collection/5679346740101120/5720605454237696)
<ide> * [JavaScript for Cats](http://jsforcats.com/)
<ide> * [... | 1 |
Javascript | Javascript | add a name to some anonyous functions | 083256634c8b6286d7847fcf204f5f16f9abc8b6 | <ide><path>fonts.js
<ide> var Fonts = {
<ide> * type1Font.bind();
<ide> */
<ide> var Font = (function () {
<del> var constructor = function(aName, aFile, aProperties) {
<add> var constructor = function font_constructor(aName, aFile, aProperties) {
<ide> this.name = aName;
<ide> this.encoding = aProperties... | 1 |
Ruby | Ruby | run `tap --repair` as part of `prune` | 291977d823f7080c33339f3c91c102f1d5ea4b24 | <ide><path>Library/Homebrew/cmd/prune.rb
<ide> require 'keg'
<add>require 'cmd/tap'
<ide>
<ide> module Homebrew extend self
<ide> # $n and $d are used by the ObserverPathnameExtension to keep track of
<ide> def prune
<ide>
<ide> dirs.sort.reverse_each{ |d| d.rmdir_if_possible }
<ide>
<add> repair_taps
<add>... | 1 |
Javascript | Javascript | add german translation | 6679a0131d89cfeec38f5ed7593e970ac35f16f4 | <ide><path>lang/de.js
<add>(function () {
<add> var lang = {
<add> months : "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),
<add> monthsShort : "Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),
<add> weekdays :... | 3 |
Ruby | Ruby | add exception handling with built-in retry options | ef4aff07a41f1249baade695e68c75a8db3ded58 | <ide><path>lib/active_job/enqueuing.rb
<ide> def enqueue_at(timestamp, *args)
<ide> def initialize(arguments = nil)
<ide> @arguments = arguments
<ide> end
<add>
<add> def retry_now
<add> self.class.enqueue *arguments
<add> end
<add>
<add> def retry_in(interval)
<add> self.class.... | 5 |
Ruby | Ruby | cask changes /usr/local ownership recursively | d00f35b8c4dcdcbf86074015f0471f27e3dc2aaa | <ide><path>Library/Homebrew/cask/lib/hbc/caskroom.rb
<ide> def migrate_caskroom_from_repo_to_prefix
<ide> FileUtils.mv repo_caskroom, Hbc.caskroom
<ide> else
<ide> opoo "#{Hbc.caskroom.parent} is not writable, sudo is needed to move the Caskroom."
<del> system "/usr/bin/sudo", "--", "/bin/m... | 1 |
Ruby | Ruby | switch === to case / when | b9a622f817b28b7796c5d5c78ec294b35ae7dfe2 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def split_constraints(path_params, constraints)
<ide> end
<ide>
<ide> def normalize_format!(formatted)
<del> if formatted == true
<add> case formatted
<add> when true
<ide> @requirements... | 1 |
PHP | PHP | move ability check into the backtrace method | 7154df4686249e83da85c3239fcea7a604518f91 | <ide><path>src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php
<ide> trait AuthorizesRequests
<ide> /**
<ide> * Authorize a given action against a set of arguments.
<ide> *
<del> * @param string $ability
<add> * @param mixed $ability
<ide> * @param mixed|array $arguments
<ide> ... | 1 |
Mixed | Python | add apply cli | c223cd7a86f460f3dabb9e7369eef136a653218e | <ide><path>spacy/cli/__init__.py
<ide> from .debug_model import debug_model # noqa: F401
<ide> from .debug_diff import debug_diff # noqa: F401
<ide> from .evaluate import evaluate # noqa: F401
<add>from .apply import apply # noqa: F401
<ide> from .convert import convert # noqa: F401
<ide> from .init_pipeline impor... | 6 |
Ruby | Ruby | remove unused method | dbc30d7e261c5cfa324722f219f3acf53e819e4a | <ide><path>railties/lib/rails/generators/rails/plugin/plugin_generator.rb
<ide> def namespaced_name
<ide>
<ide> protected
<ide>
<del> def app_templates_dir
<del> "../../app/templates"
<del> end
<del>
<ide> def create_dummy_app(path = nil)
<ide> dummy_path(path) if path
<ide> | 1 |
Javascript | Javascript | restore ios, android links on showcase | 016f47c7f5c1009a0340360ec0af92a14cae462f | <ide><path>website/src/react-native/index.js
<ide> var Prism = require('Prism');
<ide> var React = require('React');
<ide> var Site = require('Site');
<ide>
<del>var apps = require('./showcaseData').pinned;
<add>var apps = [
<add> {
<add> name: 'Facebook',
<add> icon: 'https://lh3.googleusercontent.com/ZZPdzvlp... | 3 |
Javascript | Javascript | introduce imagekind constants | 42cbb5b4406edaa8a9bf810c1e14135366e588f5 | <ide><path>src/core/evaluator.js
<ide> */
<ide> /* globals assert, assertWellFormed, ColorSpace, Dict, Encodings, error,
<ide> ErrorFont, Font, FONT_IDENTITY_MATRIX, fontCharsToUnicode, FontFlags,
<del> info, isArray, isCmd, isDict, isEOF, isName, isNum,
<add> ImageKind, info, isArray, i... | 4 |
Go | Go | enable nat port mapping | 4393be71005e63ab305f4d87481dbd23b7594d18 | <ide><path>daemon/container_windows.go
<ide> func (container *Container) setupWorkingDirectory() error {
<ide>
<ide> func populateCommand(c *Container, env []string) error {
<ide> en := &execdriver.Network{
<del> Mtu: c.daemon.config.Mtu,
<ide> Interface: nil,
<ide> }
<ide>
<ide> parts := strings.SplitN(s... | 8 |
Python | Python | mock the bigquery client in the unit test. | a1adc50bc44ed2a0055481a1639f76a26f46f310 | <ide><path>official/utils/logs/logger_test.py
<ide> def test_config_benchmark_file_logger(self):
<ide> logger.BenchmarkFileLogger)
<ide>
<ide> @unittest.skipIf(bigquery is None, 'Bigquery dependency is not installed.')
<del> def test_config_benchmark_bigquery_logger(self):
<add> @mock... | 1 |
Text | Text | release notes for 1.2.13 | c086f831fbcb4e658993c2d7136d52eed04e486c | <ide><path>CHANGELOG.md
<add><a name="1.2.13"></a>
<add># 1.2.13 romantic-transclusion (2014-02-14)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$animate:** ensure $animate doesn't break natural CSS transitions
<add> ([4f84f6b3](https://github.com/angular/angular.js/commit/4f84f6b3e4210ae1eb14728a46d43dd961700a0c),
<a... | 1 |
PHP | PHP | fix error where routes would be incorrectly parsed | 31f656b6c1e6b3c908e8ac33c136f5111b4b3d4f | <ide><path>src/Routing/RouteCollection.php
<ide> public function add(Route $route, $options = []) {
<ide> */
<ide> public function parse($url) {
<ide> foreach (array_keys($this->_paths) as $path) {
<del> if (strpos($url, $path) === 0) {
<del> break;
<add> if (strpos($url, $path) !== 0) {
<add> continue;
<... | 2 |
PHP | PHP | fix failing tests and phpcs errors | c68ec840201e1877226e95760ce003ff7432c723 | <ide><path>src/Database/SqlDialectTrait.php
<ide> protected function _transformDistinct($query) {
<ide> }
<ide> return $query;
<ide> }
<add>
<ide> /**
<ide> *
<ide> * Apply translation steps to delete queries.
<ide> protected function _deleteQueryTranslator($query) {
<ide> }
<ide> $conditions = $query->claus... | 2 |
Ruby | Ruby | remove deprecation warnings | 5b9d0a6272ca74f33cd62a4ff3fd3072fe533c09 | <ide><path>actionpack/test/fixtures/project.rb
<ide> class Project < ActiveRecord::Base
<del> has_and_belongs_to_many :developers, :uniq => true
<add> has_and_belongs_to_many :developers, -> { uniq }
<ide> end
<ide><path>actionpack/test/fixtures/reply.rb
<ide> class Reply < ActiveRecord::Base
<ide> scope :base, -> ... | 2 |
Ruby | Ruby | fix misprint in urlhelper module | e925d56529406cade161b4f453f34504ae0b3d62 | <ide><path>actionpack/lib/action_view/helpers/url_helper.rb
<ide> module UrlHelper
<ide> include ActionDispatch::Routing::UrlFor
<ide> include TagHelper
<ide>
<del> # We need to override url_optoins, _routes_context
<add> # We need to override url_options, _routes_context
<ide> # and optimi... | 1 |
Ruby | Ruby | create templates with format=nil | c2145462178d2b28135fac38ebbceeaadfa151df | <ide><path>actionmailer/lib/action_mailer/base.rb
<ide> def collect_responses_from_templates(headers)
<ide> templates_name = headers[:template_name] || action_name
<ide>
<ide> each_template(Array(templates_path), templates_name).map do |template|
<del> self.formats = [template.format]
<add> ... | 6 |
Javascript | Javascript | add test for transition.remove | 51c7e58fdb12f45ee4aef8bda013d5d2d29725d8 | <ide><path>d3.js
<ide> function d3_transition(groups) {
<ide> node = this,
<ide> delay = groups[j][i].delay - elapsed,
<ide> duration = groups[j][i].duration,
<del> lock = node.__transition__ || (node.__transition__ = {active: 0});
<add> lock = node.__transition__;
<ide> ... | 7 |
Javascript | Javascript | remove workaround for firefox bug | b366f0352abccfe4c4868b5a9e8c0b88659bd1ee | <ide><path>src/ng/directive/input.js
<ide> function badInputChecker(scope, element, attr, ctrl) {
<ide> if (nativeValidation) {
<ide> ctrl.$parsers.push(function(value) {
<ide> var validity = element.prop(VALIDITY_STATE_PROPERTY) || {};
<del> // Detect bug in FF35 for input[email] (https://bugzilla.moz... | 1 |
PHP | PHP | fix additional failing tests under old sqlserver | db1663034f4c20d5aae4f5829689970313b36a70 | <ide><path>src/Database/Dialect/SqlserverDialectTrait.php
<ide> protected function _selectQueryTranslator($query) {
<ide> $query->order($query->newExpr()->add('SELECT NULL'));
<ide> }
<ide>
<del> if ($this->_version() < 11 && $offset) {
<add> if ($this->_version() < 11 && $offset !== null) {
<ide> return $th... | 2 |
Javascript | Javascript | link spec for finding icon dir in install script | cef511c5d2dd60e7f2a34eb89cd068a7515fc0d9 | <ide><path>script/lib/install-application.js
<ide> function install (installationDirPath, packagedAppFileName, packagedAppPath) {
<ide> fs.copySync(packagedAppPath, installationDirPath)
<ide> }
<ide>
<add>/**
<add> * Finds the path to the base directory of the icon default icon theme
<add> * This follows the freedes... | 1 |
Ruby | Ruby | remove another unnecessary check | 2f052a2f65ea245c63c777656a50aee5d82a2c2f | <ide><path>Library/Homebrew/os/mac.rb
<ide> def locate tool
<ide> # If it's not there, or xcode-select is misconfigured, we have to
<ide> # look in dev_tools_path, and finally in xctoolchain_path, because the
<ide> # tools were split over two locations beginning with Xcode 4.3+.
<del> ... | 1 |
Mixed | Text | use yaml.unsafe_load for encrypted configuration | d5b65c082ef0c17241de26d5131e5b4d8a01b186 | <ide><path>activesupport/CHANGELOG.md
<add>* Fix `ActiveSupport::EncryptedConfiguration` to be compatible with Psych 4
<add>
<add> *Stephen Sugden*
<add>
<ide> * Improve `File.atomic_write` error handling
<ide>
<ide> * Fix `Class#descendants` and `DescendantsTracker#descendants` compatibility with Ruby 3.1.
<... | 2 |
Ruby | Ruby | replace implicit formats with a case statement | 0e0cff0f27eb76e84fd2226396f16bb52fe754bd | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> def inspect
<ide> end
<ide>
<ide> def init_with(coder) # :nodoc:
<del> if coder.map['elements']
<del> # YAML 2.0.9's Hash subclass format from Rails 4.2, where keys and values
<add> case coder.tag
<add> when '!ru... | 1 |
Ruby | Ruby | fix mistype in doc about \z regexp | 18674529f4f3882598ac1f6bee1fbbb93bc3e70b | <ide><path>activemodel/lib/active_model/validations/format.rb
<ide> module HelperMethods
<ide> # with: ->(person) { person.admin? ? /\A[a-z0-9][a-z0-9_\-]*\z/i : /\A[a-z][a-z0-9_\-]*\z/i }
<ide> # end
<ide> #
<del> # Note: use <tt>\A</tt> and <tt>\Z</tt> to match the sta... | 1 |
Javascript | Javascript | allow listener for native animated.event | 33817b83d6c7d6b4cf5d8c250ee88a2c401422a1 | <ide><path>Libraries/Animated/src/AnimatedImplementation.js
<ide> class AnimatedEvent {
<ide> this._listener = config.listener;
<ide> this.__isNative = shouldUseNativeDriver(config);
<ide>
<del> if (this.__isNative) {
<del> invariant(!this._listener, 'Listener is not supported for native driven events.... | 1 |
PHP | PHP | fix expectations for mock objects | 649996aaba2aa7719de5b9eac90d0c5c11ece0b8 | <ide><path>tests/Database/DatabaseEloquentModelTest.php
<ide> public function testUpdateProcess()
<ide> $model = $this->getMock('EloquentModelStub', array('newQuery', 'updateTimestamps'));
<ide> $query = m::mock('Illuminate\Database\Eloquent\Builder');
<ide> $query->shouldReceive('where')->once()->with('id', '=',... | 1 |
Python | Python | add regression test for #740 | e9e99a56706ab13d6b187b4c1fc409c986e447b9 | <ide><path>spacy/tests/regression/test_issue740.py
<add># coding: utf-8
<add>
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>
<add>
<add>@pytest.mark.parametrize('text', ["3/4/2012", "01/12/1900"])
<add>def test_issue740(en_tokenizer, text):
<add> """Test that dates are not split and kept... | 1 |
Text | Text | add blog post about reactelement changes in 0.13 | cd47798c59d7acda50e7c7c2bd51d12f95f50b16 | <ide><path>docs/_posts/2015-02-24-streamlining-react-elements.md
<add>---
<add>title: "Streamlining React Elements"
<add>author: Sebastian Markbåge
<add>---
<add>
<add>React v0.13 is right around the corner and so we wanted to discuss some upcoming changes to ReactElement. In particular, we added several warnings to so... | 1 |
Python | Python | make airflowdatetimepickerwidget a required field | d74e6776fce1da2c887e33d79e2fb66c83c6ff82 | <ide><path>airflow/www/widgets.py
<ide> def __call__(self, field, **kwargs):
<ide> kwargs.setdefault("id", field.id)
<ide> kwargs.setdefault("name", field.name)
<ide> if not field.data:
<del> field.data = ""
<add> field.data = ''
<ide> template = self.data_template
... | 1 |
Javascript | Javascript | install electron shims in benchmarks | a22870fa42fd5d94fbbbba398055a2a709a8c295 | <ide><path>src/initialize-benchmark-window.js
<ide> export default async function () {
<ide> const ApplicationDelegate = require('../src/application-delegate')
<ide> const AtomEnvironment = require('../src/atom-environment')
<ide> const TextEditor = require('../src/text-editor')
<add> require('../src/ele... | 1 |
Javascript | Javascript | fix warnings in clonewithprops test | 514f5fb98b655acf1323c81438ec9de8662d53a0 | <ide><path>src/utils/__tests__/cloneWithProps-test.js
<ide> describe('cloneWithProps', function() {
<ide>
<ide> var Grandparent = React.createClass({
<ide> render: function() {
<del> return <Parent><Component key="abc" ref="abc" /></Parent>;
<add> return <Parent><Component key="abc" /></Parent>... | 1 |
Ruby | Ruby | fix bad rdoc markup on update_all | 1b6a8287397f1cdb2eebed1947450ed3a280fb4d | <ide><path>activerecord/lib/active_record/base.rb
<ide> def destroy(id)
<ide> #
<ide> # ==== Parameters
<ide> #
<del> # * +updates+ - A string of column and value pairs that will be set on any records that match conditions.
<del> # What goes into the SET clause.
<add> # * ... | 1 |
Javascript | Javascript | add test of policy about parse error | a565853dddcf03cd33cc826cda5452fe75144055 | <ide><path>test/parallel/test-policy-parse-integrity.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>if (!common.hasCrypto) common.skip('missing crypto');
<add>
<add>const tmpdir = require('../common/tmpdir');
<add>const assert = require('assert');
<add>const { spawnSync } = require('child_pr... | 1 |
Text | Text | fix typo in autoloading_and_reloading_constants | ec812fc5943f838bee332398da5a63280bf2bd52 | <ide><path>guides/source/autoloading_and_reloading_constants.md
<ide> end
<ide> Rails.autoloaders
<ide> -----------------
<ide>
<del>The Zeitwerk instances managing your application are availabe at
<add>The Zeitwerk instances managing your application are available at
<ide>
<ide> ```ruby
<ide> Rails.autoloaders.main | 1 |
Go | Go | add watch retrigger when store restarts | 5ef8d0f038155eaa42866e9529be798c8d1747ca | <ide><path>libnetwork/controller.go
<ide> func (c *controller) initDiscovery(watcher discovery.Watcher) error {
<ide> }
<ide>
<ide> c.discovery = hostdiscovery.NewHostDiscovery(watcher)
<del> return c.discovery.Watch(c.hostJoinCallback, c.hostLeaveCallback)
<add> return c.discovery.Watch(c.activeCallback, c.hostJoin... | 5 |
Javascript | Javascript | remove use of array destructuring | f34d8de65af034463358cb6144f35308e9b841d9 | <ide><path>lib/_http_server.js
<ide> Server.prototype.setTimeout = function setTimeout(msecs, callback) {
<ide> Server.prototype[EE.captureRejectionSymbol] = function(err, event, ...args) {
<ide> switch (event) {
<ide> case 'request':
<del> const [ , res] = args;
<add> const { 1: res } = args;
<ide> ... | 18 |
Python | Python | fix behavior of `_` when searching for dags | eda089334864547e18b71cb22fa231872edd4e8b | <ide><path>airflow/www/views.py
<ide> def index(self):
<ide> dags_query = session.query(DagModel).filter(~DagModel.is_subdag, DagModel.is_active)
<ide>
<ide> if arg_search_query:
<add> escaped_arg_search_query = arg_search_query.replace("_", r"\_")
<ide> dags_quer... | 2 |
Ruby | Ruby | fix path prepend | 1f89a332132d8c33e6c9d86d90dbc79005256fce | <ide><path>Library/Homebrew/requirements/ruby_requirement.rb
<ide> def initialize(tags)
<ide> satisfy(build_env: false) { new_enough_ruby }
<ide>
<ide> env do
<del> ENV.prepend_path "PATH", new_enough_ruby
<add> ENV.prepend_path "PATH", new_enough_ruby.dirname
<ide> end
<ide>
<ide> def message | 1 |
Text | Text | fix typo in readme_zh-hans.md | dc06e4358042ba3f08b0403daf5fa062448e835e | <ide><path>README_zh-hans.md
<ide> conda install -c huggingface transformers
<ide>
<ide> 目前的检查点数量: 
<ide>
<del>🤗 Transformers 目前支持如下的架构(模型概述请阅 [here](https://huggingface.co/transformers/model_summary.html)):
<add>🤗 T... | 1 |
Python | Python | reset pidbox node on channel failure | 4fc9e9c6247c2abf7d8be3b69f490f4974d7205d | <ide><path>celery/events/__init__.py
<ide> def flush(self):
<ide> type, fields, _ = self._outbound_buffer.popleft()
<ide> self.send(type, **fields)
<ide>
<add> def copy_buffer(self, other):
<add> self._outbound_buffer = other._outbound_buffer
<add>
<ide> def close(self):
<ide> ... | 3 |
Text | Text | add a link to makeitopen.com | f2e45bcd4874b3f64fc8761b047e9eaa4f5cbe9f | <ide><path>docs/Tutorial.md
<ide> This tutorial aims to get you up to speed with writing iOS and Android apps usin
<ide>
<ide> We assume you have experience writing applications with React. If not, you can learn about it on the [React website](http://facebook.github.io/react/).
<ide>
<add>### Building a real-world ap... | 1 |
Javascript | Javascript | reset decoder on end | d2a6110d3fa78ef6680a9ef5faa279a4f35f486c | <ide><path>lib/string_decoder.js
<ide> function utf8Text(buf, i) {
<ide> // character.
<ide> function utf8End(buf) {
<ide> const r = (buf && buf.length ? this.write(buf) : '');
<del> if (this.lastNeed)
<add> if (this.lastNeed) {
<add> this.lastNeed = 0;
<add> this.lastTotal = 0;
<ide> return r + '\ufffd';... | 2 |
Python | Python | use divider inbetween steps | 9b719dfb1aa1226425fac3bc00b047857d522089 | <ide><path>spacy/cli/debug_model.py
<ide> def debug_model(model: Model, *, print_settings: Optional[Dict[str, Any]] = None
<ide> # STEP 0: Printing before training
<ide> msg.info(f"Analysing model with ID {model.id}")
<ide> if print_settings.get("print_before_training"):
<del> msg.info(f"Before train... | 1 |
PHP | PHP | use null coalescing operator | d509ee469f927650dd977a71471f04a5743958f3 | <ide><path>src/Datasource/ModelAwareTrait.php
<ide> protected function _setModelClass(string $name): void
<ide> */
<ide> public function loadModel(?string $modelClass = null, ?string $modelType = null): RepositoryInterface
<ide> {
<del> if ($modelClass === null) {
<del> $modelClass = $thi... | 1 |
Python | Python | support args on get_object_or_404 | 3e94f4dc709143d577433c164873654e7c0579f8 | <ide><path>rest_framework/generics.py
<ide> def strict_positive_int(integer_string, cutoff=None):
<ide> ret = min(ret, cutoff)
<ide> return ret
<ide>
<del>def get_object_or_404(queryset, **filter_kwargs):
<add>def get_object_or_404(queryset, *filter_args, **filter_kwargs):
<ide> """
<ide> Same as D... | 1 |
Ruby | Ruby | fix the fixture path | 80d1e2778860d1825d749aad274e70e0ea810bc6 | <ide><path>actionpack/test/abstract_unit.rb
<ide> I18n.backend.store_translations 'pt-BR', {}
<ide> ORIGINAL_LOCALES = I18n.available_locales.map {|locale| locale.to_s }.sort
<ide>
<del>FIXTURE_LOAD_PATH = File.join(File.dirname(__FILE__), '../fixtures')
<add>FIXTURE_LOAD_PATH = File.join(File.dirname(__FILE__), 'fixt... | 1 |
Python | Python | skip some f2py tests on mac | 7c98513f6c1daac61cb66ffc3a9e5a769233ea19 | <ide><path>numpy/f2py/tests/test_return_real.py
<ide> from __future__ import division, absolute_import, print_function
<ide>
<add>import platform
<ide> import pytest
<ide>
<ide> from numpy import array
<ide> def check_function(self, t):
<ide> pass
<ide>
<ide>
<add>
<add>@pytest.mark.skipif(
<add> pla... | 2 |
Javascript | Javascript | update alert api examples in rntester | 1b943a99e0b5c47b7452d8847eb5b798aa172719 | <ide><path>packages/rn-tester/e2e/__tests__/Alert-test.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @format
<add> */
<add>
<add>/* globa... | 3 |
Text | Text | fix broken links | 6abafcb4248f0a4374b3df0b67bf82b3c32194f3 | <ide><path>CHANGELOG.md
<ide> docs. The biggest improvements and changes are listed below.
<ide> `ng:foo`. The new compiler doesn't distinguish between these and other name styles (all of them
<ide> are [equally supported](http://docs-next.angularjs.org/api/angular.module.ng.$compileProvider.directive)),
<ide> th... | 1 |
Javascript | Javascript | fix two bugs in version bump script | a2716d087e2d2f08b1fe946e180d93ae6882ee67 | <ide><path>scripts/release-manager/commands/version.js
<ide> function updateJSON(path, fields, value) {
<ide> data = JSON.parse(fs.readFileSync(path, 'utf8'));
<ide> } catch (e) {
<ide> this.log(chalk.red('ERROR') + ` ${path} doesn't exist… skipping.`);
<add> return;
<ide> }
<ide> fields.forEach((field... | 1 |
Javascript | Javascript | fix typos in lib code comments | 69f487efc734f2b9bb67f46f99cd98e1c1e13d9b | <ide><path>lib/_http_incoming.js
<ide> IncomingMessage.prototype._destroy = function _destroy(err, cb) {
<ide> // If aborted and the underlying socket is not already destroyed,
<ide> // destroy it.
<ide> // We have to check if the socket is already destroyed because finished
<del> // does not call the callback w... | 3 |
Python | Python | remove celeryctl from scripts | 8ec433db7ab55b2e3df883fec0f905faf7961a06 | <ide><path>setup.py
<ide> def run(self):
<ide> url=celery.__homepage__,
<ide> platforms=["any"],
<ide> packages=find_packages(exclude=['ez_setup']),
<del> scripts=["bin/celeryd", "bin/celeryctl"],
<add> scripts=["bin/celeryd"],
<ide> zip_safe=False,
<ide> install_requires=[
<ide> 'carr... | 1 |
Text | Text | fix code formatting missing in 3.5 announcement | 1aa6dff0b54e39d1fe7a0c7058f6f74ee01475fd | <ide><path>docs/topics/3.5-announcement.md
<ide> be deprecated at a later date.
<ide> ### ModelSerializer 'fields' and 'exclude'
<ide>
<ide> ModelSerializer and HyperlinkedModelSerializer must include either a fields
<del>option, or an exclude option. The fields = '__all__' shortcut may be used to
<add>option, or an e... | 1 |
Javascript | Javascript | restore previous rendertarget after update() | 26a4288b01e45d0ba61dc59bb0588642d587db49 | <ide><path>examples/js/pmrem/PMREMGenerator.js
<ide> THREE.PMREMGenerator.prototype = {
<ide> var gammaOutput = renderer.gammaOutput;
<ide> var toneMapping = renderer.toneMapping;
<ide> var toneMappingExposure = renderer.toneMappingExposure;
<add> var renderTarget = renderer.getCurrentRenderTarget();
<ide>
<ide... | 1 |
Javascript | Javascript | fix shared handles on windows" | ff6117b8ed57089001bdc3659b79d23bea1107fe | <ide><path>lib/net.js
<ide> var createServerHandle = exports._createServerHandle =
<ide> return err;
<ide> }
<ide>
<add> if (process.platform === 'win32') {
<add> // On Windows, we always listen to the socket before sending it to
<add> // the worker (see uv_tcp_duplicate_socket). So we better do it here
<... | 1 |
Ruby | Ruby | add repository_dispatch api | 4bb66c12e8afa79d838fd9f0b4c86021050c33eb | <ide><path>Library/Homebrew/utils/github.rb
<ide> def issue_comment_exists?(user, repo, pr, body)
<ide> comments.any? { |comment| comment["body"].eql?(body) }
<ide> end
<ide>
<add> def dispatch(user, repo, event, **payload)
<add> url = "#{API_URL}/repos/#{user}/#{repo}/dispatches"
<add> open_api(url, data... | 1 |
Mixed | Go | add missing docs for volume ls filter=label | 5171b8349578a89efca69942f81f7e3c560840b9 | <ide><path>api/client/volume/list.go
<ide> func newListCommand(dockerCli *client.DockerCli) *cobra.Command {
<ide> flags := cmd.Flags()
<ide> flags.BoolVarP(&opts.quiet, "quiet", "q", false, "Only display volume names")
<ide> flags.StringVar(&opts.format, "format", "", "Pretty-print networks using a Go template")
<d... | 2 |
Python | Python | fix bad format string | 1435f6ce0ce7491af7e5771d1fec158109ad69d9 | <ide><path>glances/plugins/glances_ports.py
<ide> def _port_scan_tcp(self, port):
<ide> try:
<ide> ret = _socket.connect_ex((ip, int(port['port'])))
<ide> except Exception as e:
<del> logger.debug("0}: Error while scanning port {} ({})".format(self.plugin_name, port, e))
<add> ... | 1 |
Javascript | Javascript | add missing import | 636412927fcfa61ccff81f632e20986779889066 | <ide><path>src/behavior/zoom.js
<ide> import "../event/event";
<ide> import "../event/mouse";
<ide> import "../event/touches";
<ide> import "../selection/selection";
<add>import "behavior";
<ide>
<ide> d3.behavior.zoom = function() {
<ide> var translate = [0, 0], | 1 |
Ruby | Ruby | read source modified time from tabfile | 7958343f1694a72c8f15b7bf0e00a888fa321996 | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> def bottle_output(bottle)
<ide> erb.result(bottle.instance_eval { binding }).gsub(/^\s*$\n/, "")
<ide> end
<ide>
<del> def most_recent_mtime(pathname)
<del> pathname.to_enum(:find).select(&:exist?).map(&:mtime).max
<del> end
<del>
<ide> def bottle_formula(f)... | 1 |
Ruby | Ruby | avoid implicit `create_with` for `sticlass.all` | bdaf273cbedcfca5a5a6ec7643a524acde7bd18c | <ide><path>activerecord/lib/active_record/core.rb
<ide> def relation
<ide>
<ide> if finder_needs_type_condition? && !ignore_default_scope?
<ide> relation.where!(type_condition)
<del> relation.create_with!(inheritance_column.to_s => sti_name)
<ide> else
<ide> relat... | 4 |
Go | Go | add the possibility to use multiple -h | dede1585ee00f957e153691c464aab293c2dc469 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdHelp(args ...string) error {
<ide> return nil
<ide> }
<ide> }
<del> help := fmt.Sprintf("Usage: docker [OPTIONS] COMMAND [arg...]\n -H=\"%s:%d\": Host:port to bind/connect to\n\nA self-sufficient runtime for linux containers.\n\nCommands:\n", DEFAULTHTTPHOST,... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.