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 |
|---|---|---|---|---|---|
Text | Text | fix links for next css | a7741341cb805ff256583ee91a170daf0f47acd0 | <ide><path>readme.md
<ide> To use more sophisticated CSS-in-JS solutions, you typically have to implement s
<ide>
<ide> To support importing `.css` `.scss` or `.less` files you can use these modules, which configure sensible defaults for server rendered applications.
<ide>
<del>- :
<ide> converted to `tf.data.Dataset` if possible.
<ide>
<ide> Note that since this class is mainly targeted for TF 2.0, it might have a lot
<del> of assumptions under the hood, eg eager context by default, distribution... | 1 |
PHP | PHP | add unit test for mailable notification | 7b1916e1708b5a7fb31f5b42a4d6cd2f290998fc | <ide><path>tests/Notifications/NotificationMailChannelTest.php
<ide> public function testMessageWithToAddress()
<ide>
<ide> $channel->send($notifiable, $notification);
<ide> }
<add>
<add> public function testMessageWithMailableContract()
<add> {
<add> $notification = new NotificationMailChanne... | 1 |
Javascript | Javascript | fix linting issues | ae8ec39397cefa66f11432b50ad0632966943f31 | <ide><path>ContainerShip/scripts/run-android-ci-instrumentation-tests.js
<ide> const test_opts = {
<ide> PATH: argv.path || './ReactAndroid/src/androidTest/java/com/facebook/react/tests',
<ide> RETRIES: parseInt(argv.retries || 2, 10),
<ide>
<del> TEST_TIMEOUT: parseInt(argv['test-timeout'] || 1000 * 60 * 1... | 30 |
Python | Python | add introspection support for binaryfield | c5a25c2771f0362a5775f81f9f4eb6b3c9caed62 | <ide><path>django/db/backends/oracle/introspection.py
<ide> class DatabaseIntrospection(BaseDatabaseIntrospection):
<ide> # Maps type objects to Django Field types.
<ide> data_types_reverse = {
<add> cx_Oracle.BLOB: 'BinaryField',
<ide> cx_Oracle.CLOB: 'TextField',
<ide> cx_Oracle.DATETIM... | 5 |
Java | Java | add overflow visible kill switch (android) | bbdc12eda7dec135799b7f4c41fe678180970dd2 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java
<ide> public class ReactViewGroup extends ViewGroup implements
<ide> ReactInterceptingViewGroup, ReactClippingViewGroup, ReactPointerEventsView, ReactHitSlopView,
<ide> ReactZIndexedViewGroup {
<ide>
<add> /**
<add> * Ki... | 1 |
Ruby | Ruby | upgrade virtualenv to 20.0.26 | 6dbcf83a21d36a0c03990a923cc07ef4a06e4e7f | <ide><path>Library/Homebrew/language/python_virtualenv_constants.rb
<ide> # frozen_string_literal: true
<ide>
<ide> PYTHON_VIRTUALENV_URL =
<del> "https://files.pythonhosted.org/packages/11/74" \
<del> "/2c151a13ef41ab9fb43b3c4ff9e788e0496ed7923b2078d42cab30622bdf" \
<del> "/virtualenv-16.7.4.tar.gz"
<add> "https:... | 1 |
Ruby | Ruby | add initial tests | e8e6ee30b48a7f9df0bda5adc959fb0eaaaae13a | <ide><path>Library/Homebrew/cask/artifact/abstract_uninstall.rb
<ide> def uninstall_launchctl(*services, command: nil, **_)
<ide>
<ide> # if launchctl item contains a wildcard, find matching process(es)
<ide> services.each do |service|
<del> all_services << service
<add> all_services ... | 4 |
Ruby | Ruby | add spaces to deep_munge log message | 38594b35275a431ccf2fdc10be7219685aeed487 | <ide><path>actionpack/lib/action_controller/log_subscriber.rb
<ide> def unpermitted_parameters(event)
<ide> end
<ide>
<ide> def deep_munge(event)
<del> message = "Value for params[:#{event.payload[:keys].join('][:')}] was set"\
<del> "to nil, because it was one of [], [null] or [null, null,... | 1 |
Go | Go | implement imagedelete for containerd | 26c65447df6ad86dea98d65f679e3f428ab2ffd3 | <ide><path>api/server/router/image/backend.go
<ide> type Backend interface {
<ide> }
<ide>
<ide> type imageBackend interface {
<del> ImageDelete(imageRef string, force, prune bool) ([]types.ImageDeleteResponseItem, error)
<add> ImageDelete(ctx context.Context, imageRef string, force, prune bool) ([]types.ImageDeleteRe... | 6 |
PHP | PHP | throw an exception if the behavior does not exist | 2733b8c33b263489613d943079c69068c2cdbadf | <ide><path>src/ORM/Table.php
<ide> public function behaviors()
<ide> *
<ide> * @param string $name The behavior alias to get from the registry.
<ide> * @return \Cake\ORM\Behavior
<add> * @throws \InvalidArgumentException If the behavior does not exist.
<ide> */
<ide> public function getBehav... | 2 |
Python | Python | add test for chararray.startswith | 763d2508c27487b5e1300d0298f3afdd48fbeef6 | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_refcount_vdot(self, level=rlevel):
<ide> """Changeset #3443"""
<ide> assert_valid_refcount(N.vdot)
<ide>
<add> def check_startswith(self, level=rlevel):
<add> ca = N.char.array(['Hi','There'])
<add> assert_equal(ca.startswi... | 1 |
PHP | PHP | extend the container interface from app | 50578255e967c24c34fc02d49f07fa8012ccdf0a | <ide><path>src/Illuminate/Contracts/Foundation/Application.php
<ide> <?php namespace Illuminate\Contracts\Foundation;
<ide>
<del>interface Application {
<add>use Illuminate\Contracts\Container\Container;
<add>
<add>interface Application extends Container {
<ide>
<ide> /**
<ide> * Register a service provider with t... | 1 |
Javascript | Javascript | add todo re. projection.stream(bound) | c0b5b08af9d26dbfee56ed5d3a846c80b1b9c1a4 | <ide><path>src/geo/bounds.js
<ide> function d3_geo_bounds(projection) {
<ide>
<ide> return function(feature) {
<ide> y1 = x1 = -(x0 = y0 = Infinity);
<del> d3.geo.stream(feature, bound);
<add> d3.geo.stream(feature, bound); // TODO projection.stream(bound)
<ide> return [[x0, y0], [x1, y1]];
<ide> };
... | 1 |
PHP | PHP | change delete() to remove() in the test | 0c97a25d23236438c7d8d65ce5e3f1022ae00997 | <ide><path>tests/TestCase/ORM/TableRegistryTest.php
<ide> public function testGenericInstances() {
<ide> }
<ide>
<ide> /**
<del> * Tests deleting an instance
<add> * Tests remove an instance
<ide> *
<ide> * @return void
<ide> */
<del> public function testDelete() {
<add> public function testRemove() {
<ide> Plug... | 1 |
Javascript | Javascript | convert `pdfdatarangetransport` to an es6 class | 5bb7f4b615a8ab1d7d43aaca94a2749498bc792d | <ide><path>src/display/api.js
<ide> var PDFDocumentLoadingTask = (function PDFDocumentLoadingTaskClosure() {
<ide>
<ide> /**
<ide> * Abstract class to support range requests file loading.
<del> * @class
<del> * @alias PDFDataRangeTransport
<ide> * @param {number} length
<ide> * @param {Uint8Array} initialData
<ide>... | 2 |
Java | Java | fix checkstyle violation | 4475c67ba86fa31b086704dff111d5970836bcf8 | <ide><path>spring-web/src/main/java/org/springframework/web/filter/reactive/ForwardedHeaderFilter.java
<ide> * where "Forwarded" and "X-Forwarded-*" headers are eliminated, and not used.
<ide> *
<ide> * @author Arjen Poutsma
<add> * @author Rossen Stoyanchev
<ide> * @since 5.0
<ide> * @see <a href="https://tools.i... | 1 |
Javascript | Javascript | use isonlyinitial instead | 569de58ec71c57bba5e040f2160f145b77272274 | <ide><path>lib/JavascriptModulesPlugin.js
<ide> class JavascriptModulesPlugin {
<ide> let filenameTemplate;
<ide> if (chunk.filenameTemplate) {
<ide> filenameTemplate = chunk.filenameTemplate;
<del> } else if (chunk.hasEntryModule()) {
<add> } else if (chunk.isOnlyInitial()) {
<ide> ... | 1 |
Ruby | Ruby | remove useless method | 6570ab7af8810d5415993310c80a550e32f6bc6d | <ide><path>actionpack/lib/action_controller/metal/rack_delegation.rb
<ide> def build_with_env(env = {}) #:nodoc:
<ide> end
<ide> end
<ide>
<del> def response_body=(body)
<del> response.body = body if response
<del> super
<del> end
<del>
<ide> def reset_session
<ide> @_request.reset_... | 1 |
Go | Go | fix convertion issues | 187646127fa80a5ba39a53619b410eb2a13f0ffd | <ide><path>container.go
<ide> type Config struct {
<ide> NetworkDisabled bool
<ide> }
<ide>
<add>func ContainerConfigFromJob(job *engine.Job) *Config {
<add> var config Config
<add> config.Hostname = job.Getenv("Hostname")
<add> config.Domainname = job.Getenv("Domainname")
<add> config.User = job.Getenv("User")
<add>... | 5 |
Text | Text | add 2 podcast suggestions | 2d14103da843b76b91367f35d629c1fe5c977870 | <ide><path>guide/english/working-in-tech/index.md
<ide> The field of computer security is growing at a rapid rate every year. A recent r
<ide> - [This week in Google](https://twit.tv/shows/this-week-in-google)
<ide> - [Programming Throwdown - Good overview of multiple languages and concepts](https://www.programmingthro... | 1 |
Text | Text | replace stub page with new hints | cf8a79c0af516255876cfe8272809c0891f37998 | <ide><path>guide/english/certifications/apis-and-microservices/mongodb-and-mongoose/create-a-model/index.md
<ide> ---
<ide> title: Create a Model
<ide> ---
<del>## Create a Model
<ide>
<del>### Creating Schema
<add>There are 3 things to do in this challenge. You can click each item to see the code.
<add>
<add><details... | 1 |
Python | Python | add lemmatizer data as variable on language data | 417d45f5d062078e1895f4521e868c5bece91a54 | <ide><path>spacy/lang/de/__init__.py
<ide> from ..tokenizer_exceptions import BASE_EXCEPTIONS
<ide> from ..norm_exceptions import BASE_NORMS
<ide> from ...language import Language
<del>from ...lemmatizerlookup import Lemmatizer
<ide> from ...attrs import LANG, NORM
<ide> from ...util import update_exc, add_lookups
<ide... | 9 |
Python | Python | put mathlib checks in separate function | 23c84e5d50cb0bf720e5c01d4956708f9094f0c7 | <ide><path>numpy/core/setup.py
<ide> def sym2def(symbol):
<ide> define = symbol.replace(' ', '_')
<ide> return define.upper()
<ide>
<add>def check_mathlib(config_cmd):
<add> # Testing the C math library
<add> mathlibs = []
<add> tc = testcode_mathlib()
<add> mathlibs_choices = [[],['m'],['cpml']]
<... | 1 |
Javascript | Javascript | add tabindex prop to view component | 621f4cf3b12979b62d2e1d49d63eaf85e0707026 | <ide><path>Libraries/Components/View/View.js
<ide> export type Props = ViewProps;
<ide> const View: React.AbstractComponent<
<ide> ViewProps,
<ide> React.ElementRef<typeof ViewNativeComponent>,
<del>> = React.forwardRef((props: ViewProps, forwardedRef) => {
<del> return (
<del> <TextAncestor.Provider value={fal... | 2 |
PHP | PHP | fix incorrect type on persistent connection | 055f9458193607471b118dbde2c4482fffd9e67b | <ide><path>src/Cache/Engine/MemcachedEngine.php
<ide> public function init(array $config = []): bool
<ide> $configuredServers = $this->_config['servers'];
<ide> sort($configuredServers);
<ide> if ($actualServers !== $configuredServers) {
<del> $message ... | 2 |
Go | Go | remove job from pause/unpause | 5ccb1c764b04449811aa4d8095a9ee609b901cf7 | <ide><path>api/server/server.go
<ide> func postContainersPause(eng *engine.Engine, version version.Version, w http.Res
<ide> if err := parseForm(r); err != nil {
<ide> return err
<ide> }
<del> job := eng.Job("pause", vars["name"])
<del> if err := job.Run(); err != nil {
<add>
<add> name := vars["name"]
<add> d := g... | 3 |
Javascript | Javascript | add comment about serialization | 0d617c54b5a153d0a9c2c476c6d2760ac73b707f | <ide><path>lib/dependencies/CommonJsRequireContextDependency.js
<ide> class CommonJsRequireContextDependency extends ContextDependency {
<ide>
<ide> this.range = range;
<ide> this.valueRange = valueRange;
<add> // inShorthand must be serialized by subclasses that use it
<ide> this.inShorthand = inShorthand;
<id... | 1 |
Javascript | Javascript | fix typeerror in with-graphql-hooks example | c4567a1a813c2b357e6c2857c80ac50d0d29c007 | <ide><path>examples/with-graphql-hooks/lib/with-graphql-client.js
<ide> export default App => {
<ide> return class GraphQLHooks extends React.Component {
<ide> static displayName = 'GraphQLHooks(App)'
<ide> static async getInitialProps(ctx) {
<del> const { Component, router } = ctx
<add> const { App... | 1 |
PHP | PHP | remove requirement to have register method | af0080918dd53471916c38a87fcac0568a8deef2 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function register($provider, $options = [], $force = false)
<ide> $provider = $this->resolveProviderClass($provider);
<ide> }
<ide>
<del> $this->registerProvider($provider);
<add> if (method_exists($provider, 'register'... | 2 |
Ruby | Ruby | convert formula name from pathname to string | 58b17a0cfc34adf2213e18b1f277c52a89407e64 | <ide><path>Library/Homebrew/utils.rb
<ide> def migrate_legacy_keg_symlinks_if_necessary
<ide>
<ide> HOMEBREW_LINKED_KEGS.mkpath unless legacy_linked_kegs.children.empty?
<ide> legacy_linked_kegs.children.each do |link|
<del> name = link.basename
<add> name = link.basename.to_s
<ide> src = begin
<ide> ... | 1 |
Go | Go | do actual rootfs.diffids copying in clone() | 3429e9993085520ac902fef2ef6aabd57080bd36 | <ide><path>image/rootfs.go
<ide> func (r *RootFS) Append(id layer.DiffID) {
<ide> func (r *RootFS) Clone() *RootFS {
<ide> newRoot := NewRootFS()
<ide> newRoot.Type = r.Type
<del> newRoot.DiffIDs = append(r.DiffIDs)
<add> newRoot.DiffIDs = make([]layer.DiffID, len(r.DiffIDs))
<add> copy(newRoot.DiffIDs, r.DiffIDs)
<i... | 1 |
Ruby | Ruby | check all responses for protected cookies | 403a4d4a494643d0ecfd91f92812a6f5bfa9a9ff | <ide><path>Library/Homebrew/utils/curl.rb
<ide> def curl_output(*args, **options)
<ide> end
<ide>
<ide> # Check if a URL is protected by CloudFlare (e.g. badlion.net and jaxx.io).
<del> # @param details [Hash] Response information from
<del> # `#curl_http_content_headers_and_checksum`.
<add> # @param... | 1 |
Java | Java | move tests to packages where they belong | 8ab84481489c4357362984c16c14c2254c20e764 | <add><path>spring-websocket/src/test/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketHandlerAdapterTests.java
<del><path>spring-websocket/src/test/java/org/springframework/web/socket/adapter/JettyWebSocketHandlerAdapterTests.java
<ide> * limitations under the License.
<ide> */
<ide>
<del>package org.... | 3 |
Javascript | Javascript | fix _http_client.js after v0.10 merge | c898704db18fd3b8d7dd91bf7c1b74922c5de928 | <ide><path>lib/_http_client.js
<ide> ClientRequest.prototype._implicitHeader = function() {
<ide> };
<ide>
<ide> ClientRequest.prototype.abort = function() {
<del>// If we're aborting, we don't care about any more response data.
<add> // If we're aborting, we don't care about any more response data.
<ide> if (this.... | 1 |
Python | Python | remove one of the last traces of south | d146b250aecd7adb13ad7b998cc60cc3a10fd0b6 | <ide><path>django/db/backends/schema.py
<ide> def _create_index_name(self, model, column_names, suffix=""):
<ide> '%s_%s' % (model._meta.db_table, BaseDatabaseCreation._digest(column_names[0])),
<ide> self.connection.ops.max_name_length()
<ide> )
<del> # Else generate ... | 1 |
PHP | PHP | fix failing tests | 71320045917cc245b78f13cc79232ed917d226c2 | <ide><path>tests/TestCase/Auth/DigestAuthenticateTest.php
<ide> public function setUp(): void
<ide> {
<ide> parent::setUp();
<ide>
<del> $salt = 'foo.bar';
<del> Security::setSalt($salt);
<ide> $this->Collection = $this->getMockBuilder(ComponentRegistry::class)->getMock();
<ide> ... | 3 |
PHP | PHP | add setinput function to cakerequest | 6bf0b22195da5dd0a0f9fb219f9dd530373502a3 | <ide><path>lib/Cake/Network/CakeRequest.php
<ide> public function input($callback = null) {
<ide> return $input;
<ide> }
<ide>
<add>/**
<add> * Modify data originally from `php://input`. Useful for altering json/xml data
<add> * in middleware or DispatcherFilters before it gets to RequestHandlerComponent
<add> *
<a... | 1 |
Text | Text | remove keyword from the word "blue" | d95456648ee694f802370d1859e7173eb7154b9e | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61b315e76a63b3ecbbb11b75.md
<ide> dashedName: step-91
<ide>
<ide> Next, update the `color` value of the red marker's `box-shadow` property.
<ide>
<del>Replace the named color with the `rgba` func... | 1 |
Javascript | Javascript | remove some useless var | 0a18434a2da3320737029cf19e7caac86b2826f0 | <ide><path>fonts.js
<ide> var Font = (function () {
<ide>
<ide> /** CMAP */
<ide> var charstrings = font.charstrings;
<del> cmap = createCMapTable(font.charstrings);
<add> cmap = createCMapTable(charstrings);
<ide> createTableEntry(otf, offsets, "cmap", cmap);
<ide>
<ide> /** HEAD */... | 1 |
Python | Python | add json output on sqltos3operator | 5276ef8ad9749b2aaf4878effda513ee378f4665 | <ide><path>airflow/providers/amazon/aws/transfers/sql_to_s3.py
<ide>
<ide> FILE_FORMAT = Enum(
<ide> "FILE_FORMAT",
<del> "CSV, PARQUET",
<add> "CSV, JSON, PARQUET",
<ide> )
<ide>
<del>FileOptions = namedtuple('FileOptions', ['mode', 'suffix'])
<add>FileOptions = namedtuple('FileOptions', ['mode', 'suffix',... | 2 |
Text | Text | add the missed volume filter | b1619766c0131a02774c7ec2b158c2fdf7206d05 | <ide><path>docs/reference/commandline/ps.md
<ide> parent = "smn_cli"
<ide> - before=(<container-name>|<container-id>)
<ide> - since=(<container-name>|<container-id>)
<ide> - ancestor=(<image-name>[:tag]|<image-id>|<image@digest>) - cont... | 1 |
Javascript | Javascript | add arrow functions to test-util-inspect | 7acc482432c7b961a52a4a081a87b05f882cf1dd | <ide><path>test/parallel/test-util-inspect.js
<ide> assert.strictEqual(util.inspect(false), 'false');
<ide> assert.strictEqual(util.inspect(''), "''");
<ide> assert.strictEqual(util.inspect('hello'), "'hello'");
<ide> assert.strictEqual(util.inspect(function() {}), '[Function]');
<add>assert.strictEqual(util.inspect(()... | 1 |
Javascript | Javascript | fix comment typos | 686cb4dbd020ec6c16450ad3fe422d9f917f0a48 | <ide><path>lib/internal/util/comparisons.js
<ide> function setHasEqualElement(set, val1, strict, memo) {
<ide> return false;
<ide> }
<ide>
<del>// Note: we val1ly run this multiple times for each loose key!
<add>// Note: we currently run this multiple times for each loose key!
<ide> // This is done to prevent slowin... | 1 |
PHP | PHP | use config method in behaviors | da8de77d42d4c3ec6a6bde77707e0436073d0c3e | <ide><path>src/Model/Behavior/CounterCacheBehavior.php
<ide> public function afterDelete(Event $event, Entity $entity) {
<ide> * @return void
<ide> */
<ide> protected function _processAssociations(Event $event, Entity $entity) {
<del> foreach ($this->_config as $assoc => $settings) {
<add> foreach ($this->config()... | 4 |
Ruby | Ruby | fix instance_eval calls to association proxies | 49e943c4f0ac3459bd53023167aaa08fc8e46733 | <ide><path>activerecord/lib/active_record/associations/association_proxy.rb
<ide> def with_scope(*args, &block)
<ide>
<ide> private
<ide> # Forwards any missing method call to the \target.
<del> def method_missing(method, *args)
<add> def method_missing(method, *args, &block)
<ide> ... | 2 |
Text | Text | update multilingual passage rereanking model card | f5d69c75f7955f5f5d99b89494253957d0e5c5ce | <ide><path>model_cards/amberoad/bert-multilingual-passage-reranking-msmarco/README.md
<ide> It can be used as an improvement for Elasticsearch Results and boosts the releva
<ide>
<ide> **Architecture:** On top of BERT there is a Densly Connected NN which takes the 768 Dimensional [CLS] Token as input and provides the ... | 1 |
PHP | PHP | refactor the route class | 9cabf545306eb33c941d33f9a2ff428ef44dc41b | <ide><path>system/routing/route.php
<ide> public function call()
<ide> {
<ide> $response = isset($this->callback['before']) ? Filter::call($this->callback['before'], array(), true) : null;
<ide>
<del> if (is_null($response) and ! is_null($handler = $this->handler()))
<add> if (is_null($response) and ! is_null... | 1 |
Go | Go | add test for timeoutconn | 39320f9393b27dd6239a2356086abc8439c1614b | <ide><path>utils/timeoutconn_test.go
<add>package utils
<add>
<add>import (
<add> "bufio"
<add> "fmt"
<add> "net"
<add> "net/http"
<add> "net/http/httptest"
<add> "testing"
<add> "time"
<add>)
<add>
<add>func TestTimeoutConnRead(t *testing.T) {
<add> ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter,... | 1 |
Javascript | Javascript | ignore event listeners on unmounted components | fd4ad6ca82676e4f63bad26eb0869981439ba106 | <ide><path>Libraries/Renderer/src/renderers/shared/shared/event/EventPluginHub.js
<ide> var EventPluginHub = {
<ide> // Text node, let it bubble through.
<ide> return null;
<ide> }
<add> if (!inst._rootNodeID) {
<add> // If the instance is already unmounted, we have no listeners.
<add>... | 1 |
Ruby | Ruby | add assertions for lazy sync transaction state | 8188f10124f3e1824bd21b91b65ed31d7527589e | <ide><path>activerecord/test/cases/transactions_test.rb
<ide> def test_raise_after_destroy
<ide> end
<ide> }
<ide>
<del> assert @first.reload
<ide> assert_not_predicate @first, :frozen?
<ide> end
<ide>
<ide> def test_successful
<del> Topic.transaction do
<del> @first.approved = true
<del... | 1 |
Javascript | Javascript | remove deprecated jsnext option | a3aa378a5b64848e12da08ed4edc78f4b38c0711 | <ide><path>rollup.config.js
<ide> export default [
<ide> input: 'src/index.js',
<ide> output: { file: 'es/redux.mjs', format: 'es', indent: false },
<ide> plugins: [
<del> nodeResolve({
<del> jsnext: true
<del> }),
<add> nodeResolve(),
<ide> replace({
<ide> 'process.env.N... | 1 |
Ruby | Ruby | remove unreached default value | 88a1800526855edfc42209d4960b48550212fd8f | <ide><path>actionpack/lib/action_dispatch/journey/route.rb
<ide> def self.verb_matcher(verb)
<ide> end
<ide>
<ide> def self.build(name, app, path, constraints, required_defaults, defaults)
<del> request_method_match = verb_matcher(constraints.delete(:request_method)) || []
<add> request_metho... | 1 |
Text | Text | add guide for action mailer previews | 8657fb77751fd4f916c997932373aaf1966636db | <ide><path>guides/source/action_mailer_basics.md
<ide> end
<ide> Will render the HTML part using the `my_layout.html.erb` file and the text part
<ide> with the usual `user_mailer.text.erb` file if it exists.
<ide>
<add>### Previewing Emails
<add>
<add>Action Mailer previews provide a way to see how emails look by visi... | 1 |
Python | Python | expose memusage for nt os | 14d5854b76e423cbaf0622b206d7b3b69e513a83 | <ide><path>numpy/testing/utils.py
<ide> def GetPerformanceAttributes(object, counter, instance = None,
<ide> finally:
<ide> win32pdh.CloseQuery(hq)
<ide>
<del> def memusage(processName="python", instance=0):
<del> # from win32pdhutil, part of the win32all package
<del> ... | 1 |
PHP | PHP | fix bugs in env | 375f2d82861b03f02220cc8b87409acde8d9d27b | <ide><path>src/Illuminate/Foundation/Console/EnvironmentCommand.php
<ide>
<ide> use Illuminate\Console\Command;
<ide>
<del>class ChangesCommand extends Command {
<add>class EnvironmentCommand extends Command {
<ide>
<ide> /**
<ide> * The console command name.
<ide> class ChangesCommand extends Command {
<ide> *... | 1 |
Python | Python | serialize vocab last | 8716ffe57d71cd0cd8d1e34b0417006e588ae478 | <ide><path>spacy/language.py
<ide> def to_disk(self, path, disable=tuple()):
<ide> """
<ide> path = util.ensure_path(path)
<ide> serializers = OrderedDict((
<del> ('vocab', lambda p: self.vocab.to_disk(p)),
<ide> ('tokenizer', lambda p: self.tokenizer.to_disk(p, vocab=Fals... | 1 |
PHP | PHP | add "splice" method to collection | 2d351b39bf32ddb4d3ca1ea542183391b4240460 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function slice($offset, $length = null, $preserveKeys = false)
<ide> return new static(array_slice($this->items, $offset, $length, $preserveKeys));
<ide> }
<ide>
<add> /**
<add> * Splice portion of the underlying collection array.
<add> *
<add> * @par... | 2 |
Javascript | Javascript | remove "copy" function override | 6ccec8f4154279b575255d17c3c729fcbb439ec3 | <ide><path>examples/jsm/lines/LineGeometry.js
<ide> class LineGeometry extends LineSegmentsGeometry {
<ide>
<ide> }
<ide>
<del> copy( /* source */ ) {
<del>
<del> // todo
<del>
<del> return this;
<del>
<del> }
<del>
<ide> }
<ide>
<ide> LineGeometry.prototype.isLineGeometry = true; | 1 |
Javascript | Javascript | check node, yarn and grunt-cli versions | f04fcdfe9f9260f18d1ac79e3a9584aa28073d4c | <ide><path>Gruntfile.js
<ide> var path = require('path');
<ide> var e2e = require('./test/e2e/tools');
<ide>
<ide> var semver = require('semver');
<del>var fs = require('fs');
<add>var exec = require('shelljs').exec;
<add>var pkg = require(__dirname + '/package.json');
<ide>
<del>var useNodeVersion = fs.readFileSync(... | 1 |
Javascript | Javascript | remove unused imports in ember.textarea | 2d501df08085018bcab80148ce941ce4410a6c03 | <ide><path>packages/ember-views/lib/views/text_area.js
<ide> @module ember
<ide> @submodule ember-views
<ide> */
<del>import { get } from "ember-metal/property_get";
<ide> import Component from "ember-views/views/component";
<ide> import TextSupport from "ember-views/mixins/text_support";
<del>import { observer } from ... | 1 |
Text | Text | fix tensorrt test output and add int8 result. | f7f2bf4f416addb6b5c1f7df67bfff13eb48ddd5 | <ide><path>research/tensorrt/README.md
<ide> Here we provide a sample script that can:
<ide> 1. Convert a TensorFlow SavedModel to a Frozen Graph.
<ide> 2. Load a Frozen Graph for inference.
<ide> 3. Time inference loops using the native TensorFlow graph.
<del>4. Time inference loops using FP32, FP16, or INT8<sup>1</su... | 1 |
Text | Text | use inline code style for directory names | b02ab963cdd414486751bb6ba39ec6b6dea9d750 | <ide><path>object_detection/g3doc/running_pets.md
<ide> dataset for Oxford-IIIT Pets lives
<ide> [here](http://www.robots.ox.ac.uk/~vgg/data/pets/). You will need to download
<ide> both the image dataset [`images.tar.gz`](http://www.robots.ox.ac.uk/~vgg/data/pets/data/images.tar.gz)
<ide> and the groundtruth data [`ann... | 1 |
Java | Java | add snaptoalignment to reactscrollviewmanager | c6e5640e87e7cb5b514ded2c8d4cbb039bd02c5f | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java
<ide>
<ide> package com.facebook.react.views.scroll;
<ide>
<add>import static com.facebook.react.views.scroll.ReactScrollViewHelper.SNAP_ALIGNMENT_DISABLED;
<add>
<ide> import android.animation.Animator;
<ide> import android.an... | 2 |
Ruby | Ruby | add line break to action text installation outputs | 95e00befbc2fe46aafb15046ac229884688f677d | <ide><path>actiontext/lib/templates/installer.rb
<ide> line = %[require("#{name}")]
<ide> unless APPLICATION_PACK_PATH.read.include? line
<ide> say "Adding #{name} to #{APPLICATION_PACK_PATH}"
<del> append_to_file APPLICATION_PACK_PATH, "#{line}\n"
<add> append_to_file APPLICATION_PACK_PATH, "\n... | 1 |
Javascript | Javascript | support configurable labels for custom hooks | edb1f595649b013a59a18f43c03a57035ddea19e | <ide><path>packages/react-debug-tools/src/ReactDebugHooks.js
<ide> function getPrimitiveStackCache(): Map<string, Array<any>> {
<ide> Dispatcher.useLayoutEffect(() => {});
<ide> Dispatcher.useEffect(() => {});
<ide> Dispatcher.useImperativeHandle(undefined, () => null);
<add> Dispatcher.useDebugV... | 7 |
Java | Java | fix getters to match setters in rmha | 62e23363cb78bfb106d0dc499c8c2c18ec2a3719 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java
<ide> import org.springframework.web.context.request.NativeWebRequest;
<ide> import org.springframework.web.context.request.ServletWebRequest;
<ide> import org.springframework.web.context.reque... | 2 |
Python | Python | use _umath_linalg for solve() | 04ad33ed7b6b6a0eee2a0a6e98fc8d598db487ad | <ide><path>numpy/linalg/linalg.py
<ide> def solve(a, b):
<ide>
<ide> Parameters
<ide> ----------
<del> a : (M, M) array_like
<add> a : (..., M, M) array_like
<ide> Coefficient matrix.
<del> b : {(M,), (M, N)}, array_like
<add> b : {(..., M,), (..., M, K)}, array_like
<ide> Ordinate ... | 1 |
Python | Python | fix py3 compatibility | f9325e8fe5fe002f9720b7cb1c6d3614948a10ea | <ide><path>keras/models.py
<ide> def generator_task():
<ide> while not _stop.is_set():
<ide> try:
<ide> if generator_queue.qsize() < max_queue_size:
<del> generator_output = generator.next()
<add> generator_output = next(gener... | 1 |
Javascript | Javascript | fix lint warnings | 481f242b5a3acfb0ac0935a12600839bab3e2d4c | <ide><path>fonts.js
<ide> var FontLoader = {
<ide> // loaded in a subdocument. It's expected that the load of |rules|
<ide> // has already started in this (outer) document, so that they should
<ide> // be ordered before the load in the subdocument.
<del> prepareFontLoadEvent: function fontLoaderPrepareFontLoadE... | 1 |
Ruby | Ruby | remove useless instance variable | 10058ea2805e2347fe070b937c62c878269d1b1d | <ide><path>activerecord/lib/active_record/transactions.rb
<ide> def has_transactional_callbacks? # :nodoc:
<ide> # method recursively goes through the parent of the TransactionState and
<ide> # checks if the ActiveRecord object reflects the state of the object.
<ide> def sync_with_transaction_state
<del> ... | 1 |
Javascript | Javascript | remove intermediate variable | efec6811b667b6cf362d648bc599b667eebffce0 | <ide><path>lib/readline.js
<ide> function Interface(input, output, completer, terminal) {
<ide> terminal = input.terminal;
<ide> historySize = input.historySize;
<ide> if (input.tabSize !== undefined) {
<del> const positive = true;
<del> validateUint32(input.tabSize, 'tabSize', positive);
<add> ... | 1 |
PHP | PHP | add test for previous commit | d668bc1e536b5a64f3e16d02fad9a19a9defd6e9 | <ide><path>tests/TestCase/Form/FormTest.php
<ide>
<ide> use Cake\Form\Form;
<ide> use Cake\TestSuite\TestCase;
<add>use TestApp\Form\AppForm;
<add>use TestApp\Form\FormSchema;
<ide>
<ide> /**
<ide> * Form test case.
<ide> public function testSchema()
<ide> $schema = $this->getMockBuilder('Cake\Form\Schema')-... | 3 |
Text | Text | create model card | 243e687be6cd701722cce050005a2181e78a08a8 | <ide><path>model_cards/mrm8488/gpt2-imdb-neg/README.md
<add># GPT2-IMDB-neg (LM + RL) 🎞😡✍
<add>
<add>All credits to [@lvwerra](https://twitter.com/lvwerra)
<add>
<add>## What is it?
<add>A small GPT2 (`lvwerra/gpt2-imdb`) language model fine-tuned to produce **negative** movie reviews based the [IMDB dataset](https:/... | 1 |
Ruby | Ruby | add commit in the encryptedcookiejar | 94b313db8d672a57ad5deb63203e334fe1184b84 | <ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb
<ide> def [](name)
<ide> end
<ide> end
<ide>
<del> class EncryptedCookieJar #:nodoc:
<del> include ChainedCookieJars
<add> class EncryptedCookieJar < AbstractCookieJar # :nodoc:
<ide> include SerializedCookieJars
<ide>
<ide> ... | 1 |
Javascript | Javascript | add unit test for bahasa melayu | f4cede705fdf291157631824b9e5c179eb782640 | <ide><path>test/lang/ms-my.js
<add>var moment = require("../../moment");
<add>
<add>
<add> /**************************************************
<add> English
<add> *************************************************/
<add>
<add>exports["lang:ms-my"] = {
<add> setUp : function (cb) {
<add> moment.lang... | 1 |
Javascript | Javascript | fix wrong comment for getrange function | d7f45bab89790fe84f8fcc162df2b9e2ff6d265b | <ide><path>src/js/utils/time-ranges.js
<ide> function rangeCheck(fnName, index, maxIndex) {
<ide> }
<ide>
<ide> /**
<del> * Check if any of the time ranges are over the maximum index.
<add> * Get the time for the specified index at the start or end
<add> * of a TimeRange object.
<ide> *
<ide> * @param {string} fnNam... | 1 |
Javascript | Javascript | remove set bookkeeping for root events | e9f5ad2584ddb0d42a96045c9b23d0b4d9311331 | <ide><path>packages/react-dom/src/__tests__/ReactDOMEventListener-test.js
<ide> describe('ReactDOMEventListener', () => {
<ide> </div>,
<ide> container,
<ide> );
<add>
<add> // Update to attach.
<ide> ReactDOM.render(
<ide> <div
<ide> className="grand"
<del> o... | 3 |
Javascript | Javascript | fix jshint issues | 6ac773f350a3eacb5f4b3ab83bc06e3568ac8005 | <ide><path>src/ngResource/resource.js
<ide> function shallowClearAndCopy(src, dst) {
<ide> * @example
<ide> * # Creating a custom 'PUT' request
<ide> * In this example we create a custom method on our resource to make a PUT request
<del> <pre>
<del> var app = angular.module('app', ['ngResource', 'ngRoute']);
<del>... | 1 |
Python | Python | prefer consistent casing | 7077fb14526a59705b8313323a3f73e9e32d4383 | <ide><path>airflow/models/baseoperator.py
<ide> class derived from this one results in the creation of a task object,
<ide> has not succeeded yet.
<ide> The scheduler pays special attention for jobs with an SLA and
<ide> sends alert
<del> emails for sla misses. SLA misses are also recorde... | 1 |
PHP | PHP | make tree recovery much, much simpler | 8ea021226537205bba4283218241f6da25b41292 | <ide><path>lib/Cake/Model/Behavior/TreeBehavior.php
<ide> public function recover(Model $Model, $mode = 'parent', $missingParentAction = n
<ide> $Model->updateAll(array($Model->escapeField($parent) => $missingParentAction), array($Model->escapeField($Model->primaryKey) => array_flip($missingParents)));
<ide> }... | 1 |
Javascript | Javascript | remove touch() method | 716dd5f3f90f853713706aa3b404822fef18ef93 | <ide><path>src/directive/input.js
<ide> function isEmpty(value) {
<ide>
<ide> function textInputType(scope, element, attr, ctrl) {
<ide> element.bind('blur', function() {
<del> var touched = ctrl.touch(),
<del> value = trim(element.val());
<del>
<del> if (ctrl.viewValue !== value) {
<del> scope.$ap... | 4 |
Python | Python | add comment to 'at' method unit test | 56d74a4687b8b01ed328896f91b5e42962923122 | <ide><path>numpy/core/tests/test_ufunc.py
<ide> def __rmul__(self, other):
<ide> assert_(MyThing.getitem_count <= 2, MyThing.getitem_count)
<ide>
<ide> def test_inplace_fancy_indexing(self):
<del> # 'at' method is equivalent to a[:,idx] += b
<ide>
<ide> a = np.arange(10)
<ide> indic... | 1 |
Text | Text | add additional fix in hydration error document | 1bbd2642164098ceb9cebfb36deba9aed7e8a53b | <ide><path>errors/react-hydration-error.md
<ide> function MyComponent() {
<ide> }
<ide> ```
<ide>
<add>Another example:
<add>
<add>Invalid HTML may cause hydration mismatch such as div inside p.
<add>
<add>```jsx
<add>export const IncorrectComponent = () => {
<add> return (
<add> <p>
<add> <div>
<add> ... | 1 |
Python | Python | use print function in py2.7 to print to stderr | 280156e5e62e23c0ec7e305986b6dcc8bf76c0aa | <ide><path>libcloud/test/compute/test_vcloud.py
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<ide>
<add>from __future__ import print_function
<ide> import datetime
<ide> import re
<ide> import sys | 1 |
Python | Python | fix typo in tokenization_auto.py | 0d00c08da0aaa03dc00e2b6dce9574aee3402967 | <ide><path>src/transformers/models/auto/tokenization_auto.py
<ide> def from_pretrained(cls, pretrained_model_name_or_path, *inputs, **kwargs):
<ide> if type(config.decoder) is not type(config.encoder): # noqa: E721
<ide> logger.warning(
<ide> f"The encoder model config c... | 1 |
Javascript | Javascript | clarify issue with isolated scope directive | f12c61e984e2fa7f6b225f3567d497f4ad36436d | <ide><path>src/ng/directive/input.js
<ide> var VALID_CLASS = 'ng-valid',
<ide> * purposefully does not contain any logic which deals with DOM rendering or listening to
<ide> * DOM events. Such DOM related logic should be provided by other directives which make use of
<ide> * `NgModelController` for data-binding.
<de... | 1 |
Javascript | Javascript | expose entryplugin creation | 907795fed02cc10b2446f4b4627868c96fbeff3e | <ide><path>lib/EntryOptionPlugin.js
<ide> class EntryOptionPlugin {
<ide> * @returns {void}
<ide> */
<ide> apply(compiler) {
<del> compiler.hooks.entryOption.tap("EntryOptionPlugin", (context, entry) => {
<add> compiler.hooks.entryOption.tap(
<add> "EntryOptionPlugin",
<add> EntryOptionPlugin.newEntryPlugins... | 1 |
Go | Go | add security info to `docker info` | eee20b564ffae0b8c8043115c959f0f9d1869fed | <ide><path>api/client/info.go
<ide> func (cli *DockerCli) CmdInfo(args ...string) error {
<ide> fmt.Fprintf(cli.out, "Default Runtime: %s\n", info.DefaultRuntime)
<ide> }
<ide>
<add> fmt.Fprintf(cli.out, "Security Options:")
<add> ioutils.FprintfIfNotEmpty(cli.out, " %s", strings.Join(info.SecurityOptions, " "))
<a... | 3 |
Text | Text | improve the clarity on a challenge sentence | 2c1280af65199eb41bc9b2df1e0e2a61ce4ab32f | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/passing-values-to-functions-with-arguments.md
<ide> function testFun(param1, param2) {
<ide> }
<ide> ```
<ide>
<del>Then we can call `testFun`: `testFun("Hello", "World");` We have passed two arguments, `"Hello"` and... | 1 |
Ruby | Ruby | add timeout to test_async_stream | 28348e068151cd144da28a87d63853a328e393e7 | <ide><path>actionpack/test/controller/live_stream_test.rb
<ide> def test_async_stream
<ide>
<ide> @controller.process :blocking_stream
<ide>
<del> assert t.join
<add> assert t.join(3), 'timeout expired before the thread terminated'
<ide> end
<ide>
<ide> def test_thread_locals_get_copied | 1 |
Go | Go | remove redundant filepath.base() | 73f0b01da18a53be2d86dce540d680a226d77946 | <ide><path>volume/local/local.go
<ide> func New(scope string, rootIdentity idtools.Identity) (*Root, error) {
<ide> continue
<ide> }
<ide>
<del> name := filepath.Base(d.Name())
<add> name := d.Name()
<ide> v := &localVolume{
<ide> driverName: r.Name(),
<ide> name: name, | 1 |
Python | Python | handle subarrays in descr_to_dtype | 666d92ac85a6adf0fec7361c3340fc6ab12c8330 | <ide><path>numpy/lib/format.py
<ide> def dtype_to_descr(dtype):
<ide> def descr_to_dtype(descr):
<ide> '''
<ide> descr may be stored as dtype.descr, which is a list of
<del> (name, format, [shape]) tuples. Offsets are not explicitly saved, rather
<del> empty fields with name,format == '', '|Vn' are added ... | 2 |
Ruby | Ruby | remove some test warnings | ff86da4f930c290942bfcf1896eaee24fec0377b | <ide><path>test/test_insert_manager.rb
<ide> module Arel
<ide>
<ide> describe 'insert' do
<ide> it 'can create a Values node' do
<del> table = Table.new(:users)
<ide> manager = Arel::InsertManager.new Table.engine
<ide> values = manager.create_values %w{ a b }, %w{ c d }
<ide>
<ide... | 2 |
PHP | PHP | fix auth | b65cf424d6bf8f820a9ab97c02551e56dde769ff | <ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php
<ide> public function actingAs(UserContract $user, $driver = null)
<ide> */
<ide> public function be(UserContract $user, $driver = null)
<ide> {
<add> if (isset($user->wasRecentlyCreated) && $user->wasRecentlyCreat... | 1 |
Javascript | Javascript | clarify inline template | 5d7763ebf999abd95eaedc83b081ff023008261b | <ide><path>src/ng/cacheFactory.js
<ide> function $CacheFactoryProvider() {
<ide> * ```
<ide> *
<ide> * **Note:** the `script` tag containing the template does not need to be included in the `head` of
<del> * the document, but it must be below the `ng-app` definition.
<add> * the document, but it must be a descendent... | 1 |
Python | Python | change httplib name for python 3.4 - issue #419 | 57569b23f326647f567a8668a910148f8239457c | <ide><path>glances/core/glances_client.py
<ide> import sys
<ide> try:
<ide> from xmlrpc.client import Transport, ServerProxy, ProtocolError, Fault
<del>except ImportError: # Python 2
<add>except ImportError:
<add> # Python 2
<ide> from xmlrpclib import Transport, ServerProxy, ProtocolError, Fault
<del>imp... | 1 |
Java | Java | introduce tests for @nested tests in junit jupiter | e574820dc92d44cbeff18e1041e1575c8ee0ff54 | <ide><path>spring-test/src/test/java/org/springframework/test/context/junit/jupiter/nested/NestedTestsWithSpringAndJUnitJupiterTestCase.java
<add>/*
<add> * Copyright 2002-2016 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this fi... | 2 |
Javascript | Javascript | fix error diff | e4ec4f2656f14d3992da154c46f6c0c44025f30d | <ide><path>lib/internal/assert/assertion_error.js
<ide> function inspectValue(val) {
<ide> maxArrayLength: Infinity,
<ide> // Assert compares only enumerable properties (with a few exceptions).
<ide> showHidden: false,
<del> // Having a long line as error is better than wrapping the line for
<del... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.