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 | add v4.2.0-beta.1 to changelog | 5ea53d595877c49aad18c8a6ca68d23b1ea226f5 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v4.2.0-beta.1 (December 28, 2021)
<add>
<add>- [#19878](https://github.com/emberjs/ember.js/pull/19772) [BUGFIX] Allow class-based helpers to work in strict-mode.
<add>
<ide> ### v4.1.0 (December 28, 2021)
<ide>
<ide> - [#19772](https://github.com/emberjs... | 1 |
Python | Python | handle conversion of pipeline components correctly | fd1a9225d80a667bfd88c5d21bdaeaf156003cf2 | <ide><path>spacy/cli/package.py
<ide> def generate_pipeline():
<ide> "parser, ner. For more information, see the docs on processing pipelines.",
<ide> title="Enter your model's pipeline components")
<ide> pipeline = util.get_raw_input("Pipeline components", True)
<del> replace = {'True': Tr... | 1 |
Javascript | Javascript | forgive unregistration of a non-registered handler | ab59cc6c44705b1244a77eba999d736f9eb3c6ae | <ide><path>src/jqLite.js
<ide> function JQLiteOff(element, type, fn) {
<ide> removeEventListenerFn(element, type, events[type]);
<ide> delete events[type];
<ide> } else {
<del> arrayRemove(events[type], fn);
<add> arrayRemove(events[type] || [], fn);
<ide> }
<ide> });
<ide>... | 2 |
Text | Text | add thealphanerd to collaborators | 7b89a3de69b22face8a7077c0b695eba6d9fb353 | <ide><path>README.md
<ide> information about the governance of the Node.js project, see
<ide> * [srl295](https://github.com/srl295) - **Steven R Loomis** <srloomis@us.ibm.com>
<ide> * [targos](https://github.com/targos) - **Michaël Zasso** <mic.besace@gmail.com>
<ide> * [tellnes](https://github.com/tellnes)... | 1 |
Mixed | Ruby | introduce custom metadata | e106a4a1d2964fee475aa58dab7ab229293af692 | <ide><path>activestorage/CHANGELOG.md
<add>* Setting custom metadata on blobs are now persisted to remote storage.
<add>
<add> *joshuamsager*
<add>
<ide> * Support direct uploads to multiple services.
<ide>
<ide> *Dmitry Tsepelev*
<ide><path>activestorage/app/models/active_storage/blob.rb
<ide> class Active... | 12 |
Text | Text | add example of event close for child_process | 89344f5bee0dc566e5990c9618efbb73d6a9284d | <ide><path>doc/api/child_process.md
<ide> The `'close'` event is emitted when the stdio streams of a child process have
<ide> been closed. This is distinct from the [`'exit'`][] event, since multiple
<ide> processes might share the same stdio streams.
<ide>
<add>```js
<add>const { spawn } = require('child_process');
<... | 1 |
Ruby | Ruby | remove pointless use of 'private' | 99db97a32237876f65468aa116441a621b80cc01 | <ide><path>activerecord/lib/active_record/associations/has_one_through_association.rb
<ide> def create_through_record(new_value)
<ide> end
<ide> end
<ide>
<del> private
<ide> def find_target
<ide> update_stale_state
<ide> scoped.first | 1 |
Go | Go | relax second cache key requirements for schema1 | 85167fc63409524fa870bf9bafd7193f08a6d8ed | <ide><path>builder/builder-next/adapters/containerimage/pull.go
<ide> func (p *puller) CacheKey(ctx context.Context, g session.Group, index int) (stri
<ide> return dgst.String(), nil, false, nil
<ide> }
<ide>
<del> if len(p.config) == 0 {
<add> if len(p.config) == 0 && p.desc.MediaType != images.MediaTypeDockerSche... | 1 |
Javascript | Javascript | provide correct serialization context | dfbce79f3cbe7b85f1577b27df6cca534f3f1922 | <ide><path>lib/serialization/Serializer.js
<ide> class Serializer {
<ide> let current = obj;
<ide> for (const middleware of this.serializeMiddlewares) {
<ide> if (current && typeof current.then === "function") {
<del> current = current.then(
<del> data => data && middleware.serialize(data, context)
<del> ... | 1 |
Text | Text | fix the data-height of step 5 codepen embed | 83f56370e6040ee58ed67f996dce3f9d1ae56c86 | <ide><path>docs/docs/thinking-in-react.md
<ide> You can start seeing how your application will behave: set `filterText` to `"bal
<ide>
<ide> ## Step 5: Add Inverse Data Flow
<ide>
<del><p data-height="265" data-theme-id="0" data-slug-hash="qRqmjd" data-default-tab="js,result" data-user="rohan10" data-embed-version="2... | 1 |
PHP | PHP | use random iv values in rijndael | 974ac44fb43a7ecba9f14d16a0c7e39530f14e88 | <ide><path>lib/Cake/Test/Case/Utility/SecurityTest.php
<ide> public function testRijndael() {
<ide> $result = Security::rijndael('', $key, 'encrypt');
<ide> $this->assertEquals('', Security::rijndael($result, $key, 'decrypt'));
<ide>
<del> $result = Security::rijndael($txt, $key = 'this is my key of over 32 chars... | 2 |
Ruby | Ruby | redirect stderr to /dev/null rather than close | dab04e33217403ab44553308999de8e6e1c4a8c0 | <ide><path>Library/Homebrew/utils/popen.rb
<ide> def self.popen(args, mode, options = {})
<ide>
<ide> yield pipe
<ide> else
<del> options[:err] ||= :close unless ENV["HOMEBREW_STDERR"]
<add> options[:err] ||= "/dev/null" unless ENV["HOMEBREW_STDERR"]
<ide> begin
<ide> exec... | 1 |
Text | Text | fix openapi links | a49d744d5ee84ae2e89abde30ceddd2463e1f676 | <ide><path>docs/api-guide/schemas.md
<ide> has to be rendered into the actual bytes that are used in the response.
<ide> REST framework includes a few different renderers that you can use for
<ide> encoding the API schema.
<ide>
<del>* `renderers.OpenAPIRenderer` - Renders into YAML-based [OpenAPI][openapi], the most ... | 1 |
Go | Go | remove unused useshimv2() | bf7fd015f785d7e827f78dddcd274c1f05879059 | <ide><path>daemon/daemon_windows.go
<ide> func (daemon *Daemon) initRuntimes(_ map[string]types.Runtime) error {
<ide> func setupResolvConf(config *config.Config) {
<ide> }
<ide>
<del>func (daemon *Daemon) useShimV2() bool {
<del> return true
<del>}
<del>
<ide> // RawSysInfo returns *sysinfo.SysInfo .
<ide> func (daem... | 2 |
PHP | PHP | apply fixes from styleci | 0612709ac926414342a4d982fdfd8dca024d4abb | <ide><path>src/Illuminate/View/Compilers/Concerns/CompilesLayouts.php
<ide> protected function compileExtends($expression)
<ide>
<ide> return '';
<ide> }
<del>
<add>
<ide> /**
<ide> * Compile the extends-first statements into valid PHP.
<ide> * | 1 |
Python | Python | use pandas.io.gbq for bigquery integration | 8bae4e1ccabe6426a68f53ff322e1e667c36f730 | <ide><path>airflow/hooks/bigquery_hook.py
<ide> from airflow.hooks.dbapi_hook import DbApiHook
<ide> from apiclient.discovery import build
<ide> from oauth2client.client import SignedJwtAssertionCredentials
<add>from pandas.io.gbq import GbqConnector, _parse_data as gbq_parse_data
<add>from pandas.tools.merge import co... | 1 |
Text | Text | add cards for all geotrend models | 0a80959bddd5da08742d22dca07e0facf0b4cd11 | <ide><path>model_cards/Geotrend/bert-base-15lang-cased/README.md
<add>---
<add>language: multilingual
<add>
<add>datasets: wikipedia
<add>
<add>license: apache-2.0
<add>---
<add>
<add># bert-base-15lang-cased
<add>
<add>We are sharing smaller versions of [bert-base-multilingual-cased](https://huggingface.co/bert-base-m... | 30 |
Text | Text | fix broken data fetching links in docs | 60488e68e323ce7ca1b2eee74ea560f486d34e68 | <ide><path>docs/basic-features/eslint.md
<ide> This will take precedence over the configuration from `next.config.js`.
<ide>
<ide> Next.js provides an ESLint plugin, [`eslint-plugin-next`](https://www.npmjs.com/package/@next/eslint-plugin-next), already bundled within the base configuration that makes it possible to c... | 11 |
PHP | PHP | fix presenceverifier contract | b4df9393bf0185929aa864529798caae740da99a | <ide><path>src/Illuminate/Validation/DatabasePresenceVerifier.php
<ide> namespace Illuminate\Validation;
<ide>
<ide> use Closure;
<del>use Illuminate\Support\Str;
<ide> use Illuminate\Database\ConnectionResolverInterface;
<add>use Illuminate\Support\Str;
<ide>
<ide> class DatabasePresenceVerifier implements PresenceV... | 2 |
Go | Go | enable auto-creation of host-path on windows | 4e080347af657ca3a0c103c6bc6cd6a8157d20d8 | <ide><path>volume/volume.go
<ide> package volume
<ide> import (
<ide> "fmt"
<ide> "os"
<del> "runtime"
<ide> "strings"
<ide>
<ide> "github.com/docker/docker/pkg/stringid"
<add> "github.com/docker/docker/pkg/system"
<ide> )
<ide>
<ide> // DefaultDriverName is the driver name used for the driver
<ide> func (m *Moun... | 1 |
Javascript | Javascript | fix comment on grammarregistry class | 00bea438401d01d5383872bff9bc6ec4c803ebad | <ide><path>src/grammar-registry.js
<ide> const {Point, Range} = require('text-buffer')
<ide> const GRAMMAR_SELECTION_RANGE = Range(Point.ZERO, Point(10, 0)).freeze()
<ide> const PATH_SPLIT_REGEX = new RegExp('[/.]')
<ide>
<del>// Extended: Syntax class holding the grammars used for tokenizing.
<add>// Extended: This c... | 1 |
PHP | PHP | add assert that habtm save does not return false | 842b1802d99344f6ce0b0182b1a5b39dd2a5f551 | <ide><path>lib/Cake/Test/Case/Model/ModelWriteTest.php
<ide> public function testSaveHabtmNoPrimaryData() {
<ide>
<ide> $TestModel->id = 2;
<ide> $data = array('Tag' => array('Tag' => array(2)));
<del> $TestModel->save($data);
<add> $result = $TestModel->save($data);
<add>
<add> $this->assertEquals($data['Tag']... | 1 |
Python | Python | add test for lazy loading error | 2305b056c3a3161c92ea61e6fceb67262766bc40 | <ide><path>tests/test_cli.py
<ide> def create_app():
<ide> assert app.name == "testapp"
<ide>
<ide>
<add>def test_lazy_load_error(monkeypatch):
<add> """When using lazy loading, the correct exception should be
<add> re-raised.
<add> """
<add>
<add> class BadExc(Exception):
<add> pass
<add>
<add... | 1 |
Javascript | Javascript | run tests against firefox 85 on macos catalina | 58cd89742029291a30678bfe440fad958c9a0275 | <ide><path>protractor-circleci-conf.js
<ide> config.multiCapabilities = [
<ide> }),
<ide> capabilitiesForSauceLabs({
<ide> browserName: 'firefox',
<del> platform: 'OS X 10.14',
<del> version: '76'
<add> platform: 'OS X 10.15',
<add> version: '85'
<ide> })
<ide> ];
<ide> | 1 |
Go | Go | remove unused code | a34cb321865c16ac42a12fe32fa3c8c4a5ffd263 | <ide><path>integration-cli/utils.go
<ide> import (
<ide> "errors"
<ide> "fmt"
<ide> "io"
<del> "net/http"
<ide> "net/http/httptest"
<ide> "os"
<ide> "os/exec"
<ide> type FileServer struct {
<ide> *httptest.Server
<ide> }
<ide>
<del>func fileServer(files map[string]string) (*FileServer, error) {
<del> var handle... | 1 |
Python | Python | add state attribute to kubernetespod | a2b69f3f8d4d6b81299d69a8c45ecd7341d8fb77 | <ide><path>libcloud/container/drivers/kubernetes.py
<ide>
<ide>
<ide> class KubernetesPod(object):
<del> def __init__(self, id, name, containers, namespace):
<add> def __init__(self, id, name, containers, namespace, state):
<ide> """
<ide> A Kubernetes pod
<ide> """
<ide> self.id... | 1 |
Java | Java | use synchonous api for synchonous okhttp requests | 37b32d38bcb8a5e28ef17104ae8113c33b59a5df | <ide><path>spring-web/src/main/java/org/springframework/http/client/OkHttpAsyncClientHttpRequest.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 file except in compliance with the Licens... | 3 |
Javascript | Javascript | use getbytes() instead of looping over getbyte() | fc73e2e17354d5e5682f956da35ad73ccfa3d710 | <ide><path>src/core/core.js
<ide> * See the License for the specific language governing permissions and
<ide> * limitations under the License.
<ide> */
<del>/* globals assert, calculateMD5, Catalog, Dict, error, info, isArray,
<del> isArrayBuffer, isName, isStream, isString, createPromiseCapability,
<add>/... | 2 |
Java | Java | update javadoc for testcontexttransactionutils | 7bcda3a29bce4568aad89939987402320946bc5a | <ide><path>spring-test/src/main/java/org/springframework/test/context/transaction/TestContextTransactionUtils.java
<ide> public static DataSource retrieveDataSource(TestContext testContext, @Nullable S
<ide> * <li>Look up the transaction manager by type and explicit name, if the supplied
<ide> * {@code name} is non... | 1 |
Ruby | Ruby | fix exceptions messages in ac layouts | c16f4f1f38c8d209379cfec45b259538aba61c7c | <ide><path>actionpack/lib/abstract_controller/layouts.rb
<ide> def _write_layout_method
<ide> when false
<ide> nil
<ide> when true
<del> raise ArgumentError, "Layouts must be specified as a String, Symbol, false, or nil"
<add> raise ArgumentError, "Layouts must be s... | 1 |
PHP | PHP | fix mariadb test failure | f3cc3c4f2a267e585f84c9c18dd9868f557c139e | <ide><path>tests/TestCase/Database/Schema/MysqlSchemaTest.php
<ide> public function testDescribeTable()
<ide> if (ConnectionManager::get('test')->getDriver()->isMariadb()) {
<ide> $expected['created_with_precision']['default'] = 'current_timestamp(3)';
<ide> $expected['created_with_preci... | 1 |
Ruby | Ruby | add return for 1.8.7 | 665ef116ac9000d514c03fc61b216513f5cb7b25 | <ide><path>activerecord/test/cases/relation_scoping_test.rb
<ide> def test_default_scope_include_with_count
<ide>
<ide> def test_default_scope_is_threadsafe
<ide> if in_memory_db?
<del> skip "in memory db can't share a db between threads"
<add> return skip "in memory db can't share a db between threads... | 1 |
Javascript | Javascript | make .deprecate() warn only once | 52bd0f93bb786de028463ef56ddb1e22568584b9 | <ide><path>src/node.js
<ide> NativeModule._cache[this.id] = this;
<ide> };
<ide>
<add> // Wrap a core module's method in a wrapper that will warn on first use
<add> // and then return the result of invoking the original function. After
<add> // first being called the original method is restored.
<ide> Nativ... | 1 |
Python | Python | fix some docstring in encoder-decoder models | afb07a79ab269f5b81abbbb5fc446b20454a51a7 | <ide><path>src/transformers/models/encoder_decoder/modeling_encoder_decoder.py
<ide> general usage and behavior.
<ide>
<ide> Parameters:
<del> config (:class:`~transformers.PretrainedConfig`): Model configuration class with all the parameters of the model.
<add> config (:class:`~transformers.Enco... | 2 |
Ruby | Ruby | pass arguments instead of reopening pathname | ccd31a2dd26ce5db8f247f8261e808702d061454 | <ide><path>Library/Homebrew/cmd/tap.rb
<ide> def link_tap_formula formulae
<ide> to.make_relative_symlink(from)
<ide> rescue SystemCallError
<ide> to = to.realpath if to.exist?
<del> opoo "Could not tap #{Tty.white}#{from.tap_ref}#{Tty.reset} over #{Tty.white}#{to.tap_ref}#{Tty.reset}"
<add... | 1 |
Javascript | Javascript | render links below nodes and labels | dfd0ad354dbdae201a1c5fa775c73581774e7e94 | <ide><path>examples/tree/tree.js
<ide> var vis = d3.select("body").append("svg:svg")
<ide> .attr("transform", "translate(40, 100)");
<ide>
<ide> d3.json("flare.json", function(json) {
<del> var node = vis.data(d3.entries(json)).selectAll("g.node")
<del> .data(tree);
<del> var nodeEnter = node.enter().append... | 1 |
Javascript | Javascript | adjust clipboard mock | 2aba3522ab7dfe113ec26131b747f7f6f0486194 | <ide><path>jest/setup.js
<ide> jest
<ide> getRecommendedTimeoutMillis: jest.fn(),
<ide> },
<ide> }))
<add> .mock('../Libraries/Components/Clipboard/Clipboard', () => ({
<add> getString: jest.fn(() => ''),
<add> setString: jest.fn(),
<add> }))
<ide> .mock('../Libraries/Components/RefreshControl/Ref... | 1 |
Go | Go | add test-case for legacy format | 346a438da82dec69874e226b49d6419150c456a9 | <ide><path>opts/opts_test.go
<ide> func TestNamedMapOpts(t *testing.T) {
<ide> }
<ide>
<ide> func TestParseLink(t *testing.T) {
<del> name, alias, err := ParseLink("name:alias")
<del> if err != nil {
<del> t.Fatalf("Expected not to error out on a valid name:alias format but got: %v", err)
<del> }
<del> if name != "na... | 1 |
Python | Python | add explanation for comments=none in loadtxt | 406ccc9c574555ebdbda3de6abfc44a833f523e7 | <ide><path>numpy/lib/npyio.py
<ide> def loadtxt(fname, dtype=float, comments='#', delimiter=None,
<ide> the data-type.
<ide> comments : str or sequence of str, optional
<ide> The characters or list of characters used to indicate the start of a
<del> comment. For backwards compatibility, byte ... | 1 |
Python | Python | remove unused import | 48589f523d603e332909ac34e1d12bdfcddb0acb | <ide><path>libcloud/__init__.py
<ide> def enable_debug(fo):
<ide> @param fo: Where to append debugging information
<ide> @type fo: File like object, only write operations are used.
<ide> """
<del> import httplib
<ide> from libcloud.base import ConnectionKey, LoggingHTTPConnection, LoggingHTTPSConnect... | 1 |
Java | Java | fix regressions from 8f558e7 | 71683c5f8db19e3795f27d0c7ad7b4dbaa3083fe | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMethodMapping.java
<ide> import java.util.Collection;
<ide> import java.util.Collections;
<ide> import java.util.Comparator;
<add>import java.util.HashMap;
<ide> import java.util.IdentityHashMap;
<ide> import java.util.LinkedH... | 2 |
Javascript | Javascript | fix multichild tests so they work with fiber | c3310d3e326d241ec42e3db34586ce3d01cf554c | <ide><path>src/renderers/shared/stack/reconciler/__tests__/ReactMultiChildReconcile-test.js
<ide>
<ide> var React = require('React');
<ide> var ReactDOM = require('ReactDOM');
<del>var ReactDOMComponentTree = require('ReactDOMComponentTree');
<del>var ReactInstanceMap = require('ReactInstanceMap');
<ide>
<ide> var st... | 2 |
PHP | PHP | wrap long lines | ad3dc5a3414cbbef533230a4539683be27bb2de4 | <ide><path>tests/TestCase/Routing/RouteCollectionTest.php
<ide> public function testParseRequestMissingRoute()
<ide> public function testParseRequestCheckHostCondition()
<ide> {
<ide> $routes = new RouteBuilder($this->collection, '/');
<del> $routes->connect('/fallback', ['controller' => 'Article... | 1 |
PHP | PHP | fix cs errors | 78284090bca2e27e5cb1e8fc0050b91c00302da2 | <ide><path>src/Http/Client/Adapter/Curl.php
<ide> namespace Cake\Http\Client\Adapter;
<ide>
<ide> use Cake\Http\Client\AdapterInterface;
<del>use Cake\Http\Client\Exception\RequestException;
<ide> use Cake\Http\Client\Exception\NetworkException;
<add>use Cake\Http\Client\Exception\RequestException;
<ide> use Cake\Http... | 4 |
Python | Python | simplify the test | 8560d2077873049a06e5fe62899d2197584c9d43 | <ide><path>libcloud/test/compute/test_openstack.py
<ide> def test_auth_host_passed(self):
<ide> ex_force_auth_url='http://x.y.z.y:5000',
<ide> ex_tenant_name='admin')
<ide> self.assertEqual(d._ex_force_auth_url, forced_auth)
<add>
<ide> with requests_mock.Mocker() as mock... | 1 |
Javascript | Javascript | reduce user saves, provide callbacks | 17829b4bd33ec44d8ffe53c24a31e18b4884010a | <ide><path>controllers/challenge.js
<ide> exports.returnCurrentChallenge = function(req, res, next) {
<ide> return elem;
<ide> }
<ide> });
<del> req.user.save();
<ide> if (!req.user.currentChallenge) {
<ide> req.user.currentChallenge = {};
<ide> req.user.currentChallenge.challengeId = chall... | 1 |
PHP | PHP | improve test cases | ba61d35ded603bed60d1516895e06ee30eeb72fc | <ide><path>tests/TestCase/Validation/ValidatorTest.php
<ide> public function testAllowEmptyArray()
<ide> $data = [
<ide> 'items' => [1, 2, 3, 4, 5],
<ide> ];
<add> $expected = [
<add> 'items' => [
<add> 'hasAtMost' => 'The provided value is invalid',
<add> ... | 1 |
Text | Text | add 2.10.0-beta.1 to changelog.md | 63c9478c1477ec57f1e51c552ef9c7f529b1d267 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### 2.9.0-beta.5 (October 6, 2016)
<del>
<del>- [#14403](https://github.com/emberjs/ember.js/pull/14403) [BUGFIX] Ensure `willInsertElement` is fired for tagless components.
<del>- [#14384](https://github.com/emberjs/ember.js/pull/14384) [BUGFIX] Fix an issue ... | 1 |
Javascript | Javascript | create name/dashname at seed | 150d531079c474d3c0f930976c03286e364e1f31 | <ide><path>index.js
<ide> require('babel/register');
<ide> require('dotenv').load();
<ide> var fs = require('fs'),
<add> _ = require('lodash'),
<ide> path = require('path'),
<ide> app = require('../server/server'),
<ide> nonprofits = require('./nonprofits.json'),
<ide> jobs = require('./jobs.json');
... | 1 |
Python | Python | fix regression introduced which broke config | 257a5a3d7b3f61b8d3a84697cde2f7bf8d85bc34 | <ide><path>glances/config.py
<ide> def user_config_dir():
<ide> path = os.path.expanduser('~/Library/Application Support')
<ide> else:
<ide> path = os.environ.get('XDG_CONFIG_HOME') or os.path.expanduser('~/.config')
<add> path = os.path.join(path, 'glances')
<ide>
<ide> return path
<ide>
<... | 1 |
PHP | PHP | add index and rename foreign key | 4c1189f016848b86368808dbeaf3a21dceaf9279 | <ide><path>tests/TestCase/TestSuite/Schema/test_schema.php
<ide> 'table' => 'schema_generator',
<ide> 'columns' => [
<ide> 'id' => ['type' => 'integer'],
<del> 'relation_id' => ['type' => 'integer', 'null' => true],
<add> 'relation_id' => ['type' => 'integer'],
<ide> ... | 1 |
Java | Java | fix spinner mode | 7d1c827cb2231e4091698a3d33addd067f40af7d | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogFragment.java
<ide> import android.content.Context;
<ide> import android.content.DialogInterface;
<ide> import android.content.DialogInterface.OnDismissListener;
<add>import android.graphics.drawable.ColorDrawable;
<ide> import ... | 1 |
Ruby | Ruby | remove mass encryption | c41b354bf065c9e59d65abbaeb22897f95ab47c0 | <ide><path>activerecord/lib/active_record/encryption.rb
<ide> module Encryption
<ide> autoload :Key
<ide> autoload :KeyGenerator
<ide> autoload :KeyProvider
<del> autoload :MassEncryption
<ide> autoload :Message
<ide> autoload :MessageSerializer
<ide> autoload :NullEncryptor
<id... | 3 |
Go | Go | remove custom testingt interfaces | d79cc1b67dbd3e21daad25467e21c7692191d664 | <ide><path>integration-cli/cli/build/build.go
<ide> package build // import "github.com/docker/docker/integration-cli/cli/build"
<ide> import (
<ide> "io"
<ide> "strings"
<add> "testing"
<ide>
<ide> "github.com/docker/docker/testutil/fakecontext"
<ide> "gotest.tools/icmd"
<ide> )
<ide>
<del>type testingT interfac... | 13 |
PHP | PHP | send json in debug mode if the request wants json | 5225389dfdf03d656b862bba59cebf1820e0e8f4 | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> public function render($request, Exception $e)
<ide> return $this->convertValidationExceptionToResponse($e, $request);
<ide> }
<ide>
<add> if ($request->expectsJson() && config('app.debug')) {
<add> return $this->pr... | 1 |
Javascript | Javascript | add removed message for toolbarandroid | 6249d14a61723b22deb1336457b4295978471885 | <ide><path>index.js
<ide> if (__DEV__) {
<ide> },
<ide> });
<ide>
<add> // $FlowFixMe This is intentional: Flow will error when attempting to access ToolbarAndroid.
<add> Object.defineProperty(module.exports, 'ToolbarAndroid', {
<add> configurable: true,
<add> get() {
<add> invariant(
<add> f... | 1 |
Mixed | Javascript | fix modifying ticks in afterbuildticks | 20c748f90b80c7c1969a9e805a7c0876a19b270b | <ide><path>docs/axes/README.md
<ide> There are a number of config callbacks that can be used to change parameters in
<ide> | `beforeDataLimits` | `axis` | Callback that runs before data limits are determined.
<ide> | `afterDataLimits` | `axis` | Callback that runs after data limits are determined.
<ide> | `beforeBuildT... | 3 |
Text | Text | add 2.9.0-beta.2 to changelog.md | 9453cfd562072e32ee28e0851d8b3b4ee54ad365 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.9.0-beta.2 (September 12, 2016)
<add>
<add>- [#14237](https://github.com/emberjs/ember.js/pull/14237) [BUGFIX] Ensure Engine Routes are deactivated before destruction
<add>- [#14176](https://github.com/emberjs/ember.js/pull/14176) [BUGFIX] Ensure Control... | 1 |
Text | Text | clarify experimental api elements in vm.md | ce03a182cf4c5fb433edce2ef7dd9f21c26e76bb | <ide><path>doc/api/vm.md
<ide> changes:
<ide> * `importModuleDynamically` {Function} Called during evaluation of this module
<ide> when `import()` is called. If this option is not specified, calls to
<ide> `import()` will reject with [`ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`][].
<del> This option is part o... | 1 |
Text | Text | remove old media images | d486152b98b481afd2d6e6e013e8a0cefda93350 | <ide><path>packages/create-next-app/README.md
<ide> If you run into any issues or have feedback, please <a href="https://github.com/
<ide> Open [http://localhost:3000](http://localhost:3000) to view your running app.
<ide> When you're ready for production, run the `build` then `start` scripts.
<ide>
<del><p align='cen... | 1 |
Python | Python | change param order for consistency | bdfe21ab242c2175972f53ca6b4af29ada02a2bb | <ide><path>transformers/modeling_albert.py
<ide> def tie_weights(self):
<ide> def get_output_embeddings(self):
<ide> return self.predictions.decoder
<ide>
<del> def forward(self, input_ids=None, attention_mask=None, token_type_ids=None, position_ids=None, head_mask=None,
<del> masked_lm_l... | 1 |
Text | Text | use next tag for canary releases in the doc | faabe22b4f5b5812dc756b437465a3c519f6d872 | <ide><path>scripts/release/README.md
<ide> scripts/release/prepare-canary.js --build=13471
<ide>
<ide> Once the canary has been checked out and tested locally, you're ready to publish it:
<ide> ```sh
<del>scripts/release/publish.js --tags canary
<add>scripts/release/publish.js --tags next
<ide> ```
<ide>
<ide> <sup>1... | 1 |
Javascript | Javascript | pick another cname record to test dns queries | b5db5fc9dc85ae0c6fa1ee9b51c634a161c07fdc | <ide><path>test/internet/test-dns.js
<ide> TEST(function test_resolveSrv(done) {
<ide>
<ide>
<ide> TEST(function test_resolveCname(done) {
<del> var req = dns.resolveCname('www.google.com', function(err, names) {
<add> var req = dns.resolveCname('www.microsoft.com', function(err, names) {
<ide> if (err) throw e... | 1 |
Python | Python | raise warning in hp search when hp is not in args | 8c2384d8e2d8d0551e53eb77d73204dc5fdc7f80 | <ide><path>src/transformers/trainer.py
<ide> def _hp_search_setup(self, trial: Union["optuna.Trial", Dict[str, Any]]):
<ide>
<ide> for key, value in params.items():
<ide> if not hasattr(self.args, key):
<del> raise AttributeError(
<add> logger.warn(
<ide> ... | 1 |
Python | Python | move logic into pixelshuffle layer | f71895a633becd6eec8bdb69070c88029ae390e6 | <ide><path>src/transformers/models/swin/modeling_tf_swin.py
<ide> def call(
<ide> return swin_outputs
<ide>
<ide>
<del>class PixelShuffle(tf.keras.layers.Layer):
<add>class TFSwinPixelShuffle(tf.keras.layers.Layer):
<ide> """TF layer implementation of torch.nn.PixelShuffle"""
<ide>
<del> def __init__(... | 1 |
PHP | PHP | add interface class for form contexts | 9a54547ae19ef0544e39d8317d506eddcf73baf3 | <ide><path>src/View/Form/ArrayContext.php
<ide> * ]
<ide> * ];
<ide> */
<del>class ArrayContext {
<add>class ArrayContext implements ContextInterface {
<ide>
<ide> /**
<ide> * The request object.
<ide><path>src/View/Form/ContextInterface.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework... | 4 |
Text | Text | use aix instead of aix in fs.md | 431d3750544fe10006e10d89e4c68576ffe5466c | <ide><path>doc/api/fs.md
<ide> to be notified of filesystem changes.
<ide> directories.
<ide> * On SunOS systems (including Solaris and SmartOS), this uses [`event ports`][].
<ide> * On Windows systems, this feature depends on [`ReadDirectoryChangesW`][].
<del>* On Aix systems, this feature depends on [`AHAFS`][], wh... | 1 |
Javascript | Javascript | add ripgrep pcre2 support | ef7b910ed0b30edd83d69396e7398124e99118f1 | <ide><path>spec/workspace-spec.js
<ide> describe('Workspace', () => {
<ide> });
<ide> });
<ide> });
<add> describe('pcre2 enabled', async () => {
<add> it('supports lookbehind searches', async () => {
<add> const results = [];
<add>
<add> ... | 3 |
Python | Python | fix the 108th issue | 6fca662c841797a2006999c699a6738b20af1d4e | <ide><path>flask/module.py
<ide> def _register(state):
<ide> path = state.url_prefix + path
<ide> state.app.add_url_rule(path + '/<path:filename>',
<ide> endpoint='%s.static' % module.name,
<del> view_func=module.send_static_file)
<add> ... | 1 |
Python | Python | guard the unsafe tf.log to prevent nan | bb6f092ae5702d50a4f55a8448a6e40144e91029 | <ide><path>research/video_prediction/prediction_train.py
<ide> # How often to save a model checkpoint
<ide> SAVE_INTERVAL = 2000
<ide>
<add># EPSILON to avoid NAN
<add>EPSILON = 1e-9
<add>
<ide> # tf record data location:
<ide> DATA_DIR = 'push/push_train'
<ide>
<ide> def peak_signal_to_noise_ratio(true, pred):
<ide>... | 1 |
Ruby | Ruby | fix rubocop warnings | e24a890e593d665e8f4bad2588879602e3918a87 | <ide><path>Library/Homebrew/test/test_tab.rb
<ide> def setup
<ide> "stable" => "0.10",
<ide> "devel" => "0.14",
<ide> "head" => "HEAD-1111111",
<del> }
<add> },
<ide> })
<ide> end
<ide> | 1 |
Text | Text | tidy active record changelog. [ci skip] | db56c0fcf5c94fd746a41e2ae278b0bdb6fb1d9d | <ide><path>activerecord/CHANGELOG.md
<ide> *Yves Senn*
<ide>
<ide> * Fix uninitialized constant `TransactionState` error when `Marshall.load` is used on an Active Record result.
<del> Fixes #12790
<add>
<add> Fixes #12790.
<ide>
<ide> *Jason Ayre*
<ide>
<ide> *Severin Schoepke*
<ide>
<ide> * `... | 1 |
Go | Go | return error on client redirect | eb36d6021618f788012c166a533f1b321cda9695 | <ide><path>client/client.go
<ide> For example, to list running containers (the equivalent of "docker ps"):
<ide> package client
<ide>
<ide> import (
<add> "errors"
<ide> "fmt"
<ide> "net/http"
<ide> "net/url"
<ide> import (
<ide> "github.com/docker/go-connections/tlsconfig"
<ide> )
<ide>
<add>// ErrRedirect is th... | 2 |
Javascript | Javascript | prevent binding attacks | e1a398597ddf6910e6a6f01fe90ba688d941cd61 | <ide><path>server/services/job.js
<ide> export default function getJobServices(app) {
<ide> if (!job) {
<ide> return cb(new Error('job creation should get a job object'));
<ide> }
<add>
<add> Object.assign(job, {
<add> isPaid: false,
<add> isApproved: false
<add> });
<add>
<i... | 1 |
Ruby | Ruby | fix formula paths for manually specified names | dafe97b047cece6d12c5fa4302ae5966bbe12939 | <ide><path>Library/Homebrew/cmd/create.rb
<ide> def create
<ide> path = Pathname.new url
<ide> print "Formula name [#{path.stem}]: "
<ide> fc.name = __gets || path.stem
<add> fc.path = Formula.path fc.name
<ide> end
<ide>
<ide> unless ARGV.force?
<ide> class Formu... | 1 |
Go | Go | add test for invalid mount mode for volumes in | b10b458b6ef8327268676744a7c3230e33c9baf6 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func TestRunVolumesFromInReadWriteMode(t *testing.T) {
<ide> }
<ide>
<ide> cmd = exec.Command(dockerBinary, "run", "--volumes-from", "parent:rw", "busybox", "touch", "/test/file")
<del> if _, err := runCommand(cmd); err != nil {
<del> t.Fatal(err)
<add> if out... | 1 |
Javascript | Javascript | handle challenge creation | 1db9a123ae18415f7003dbf308ed6cf4dc3bab6d | <ide><path>client/plugins/fcc-source-challenges/gatsby-node.js
<add>const path = require('path');
<ide> const chokidar = require('chokidar');
<add>const readdirp = require('readdirp');
<ide>
<ide> const { createChallengeNode } = require('./create-challenge-nodes');
<ide>
<ide> exports.sourceNodes = function sourceCha... | 2 |
Text | Text | improve http.setheader and getheader typeinfo | 50e9f8df62e2d8a7f05ec6c2fbd01528a96f3468 | <ide><path>doc/api/http.md
<ide> added: v1.6.0
<ide> -->
<ide>
<ide> * `name` {string}
<del>* Returns: {string}
<add>* Returns: {any}
<ide>
<ide> Reads out a header on the request. Note that the name is case insensitive.
<add>The type of the return value depends on the arguments provided to
<add>[`request.setHeader()... | 1 |
Text | Text | update minimum xcode version for macos | 9f830f37daf55a2c903153e1681873a8cd61baee | <ide><path>BUILDING.md
<ide> Depending on the host platform, the selection of toolchains may vary.
<ide> | ---------------- | -------------------------------------------------------------- |
<ide> | Linux | GCC >= 6.3 |
<ide> | Windows | Visual Stu... | 1 |
Text | Text | harmonize shell commands in dev guide [ci skip] | 852b6886690e5ff68b78fae23d678ee2ba75d92b | <ide><path>guides/source/development_dependencies_install.md
<ide> prerequisite for installing this package manager is that
<ide> On macOS, you can run:
<ide>
<ide> ```bash
<del>brew install yarn
<add>$ brew install yarn
<ide> ```
<ide>
<ide> On Ubuntu, you can run:
<ide>
<ide> ```bash
<del>curl -sS https://dl.yarnp... | 1 |
Ruby | Ruby | add permit_weak_imports directive | 9c7f24b84aea4ae1b465afa41445385ada4f2ffb | <ide><path>Library/Homebrew/extend/ENV/shared.rb
<ide> def warn_about_non_apple_gcc(name)
<ide>
<ide> def permit_arch_flags; end
<ide>
<add> def permit_weak_imports; end
<add>
<ide> private
<ide>
<ide> def cc=(val)
<ide><path>Library/Homebrew/extend/os/mac/extend/ENV/std.rb
<ide> def x11
<ide>
<ide> appe... | 3 |
Python | Python | add check_svml_submodule function | e9b9299c677b4e644b8adccd6d4695451969ee01 | <ide><path>numpy/core/setup.py
<ide> def can_link_svml():
<ide> system = platform.system()
<ide> return "x86_64" in machine and system == "Linux"
<ide>
<add>def check_svml_submodule(svmlpath):
<add> if not os.path.exists(svmlpath + "/README.md"):
<add> raise RuntimeError("Missing `SVML` submodule! Ru... | 1 |
PHP | PHP | fix incorrect comment | 13f00c8e26a792da3817f47c07e1e5f48cd84b0f | <ide><path>src/Illuminate/Http/FrameGuard.php
<ide> class FrameGuard implements HttpKernelInterface {
<ide> protected $app;
<ide>
<ide> /**
<del> * Create a new CookieQueue instance.
<add> * Create a new FrameGuard instance.
<ide> *
<ide> * @param \Symfony\Component\HttpKernel\HttpKernelInterface $app
<ide> ... | 1 |
Javascript | Javascript | apply unit conversion to position as well | b9afd9865de494fce9638ef612aeab0306544a07 | <ide><path>examples/js/loaders/ColladaLoader.js
<ide> THREE.ColladaLoader = function () {
<ide> obj.scale = props[ 2 ];
<ide>
<ide> // unit conversion
<add> obj.position.multiplyScalar(colladaUnit);
<ide> obj.scale.multiplyScalar(colladaUnit);
<ide>
<ide> if ( options.centerGeometry && obj.geometry ) { | 1 |
Javascript | Javascript | remove unused option in `fs.fstatsync()` | ac8ab0ca0b4c7a9bc65c761273afe12d1e6f873e | <ide><path>lib/fs.js
<ide> function hasNoEntryError(ctx) {
<ide> * @param {number} fd
<ide> * @param {{
<ide> * bigint?: boolean;
<del> * throwIfNoEntry?: boolean;
<ide> * }} [options]
<ide> * @returns {Stats}
<ide> */
<del>function fstatSync(fd, options = { bigint: false, throwIfNoEntry: true }) {
<add>fun... | 1 |
Text | Text | fix argument order for `brew create` | 6f908880d88febe5e3a0afbb23564c74f0800f4e | <ide><path>Library/Contributions/manpages/brew.1.md
<ide> Note that these flags should only appear after a command.
<ide> versions of formula. Note downloads for any installed formula will still not be
<ide> deleted. If you want to delete those too: `rm -rf $(brew --cache)`
<ide>
<del> * `create [--autotools|... | 1 |
Ruby | Ruby | add method to find xquartz version | 65567eb55fc97925b023737456b1e989d48d68f2 | <ide><path>Library/Homebrew/macos.rb
<ide> module MacOS extend self
<ide> XCODE_3_BUNDLE_ID = "com.apple.Xcode"
<ide> CLT_STANDALONE_PKG_ID = "com.apple.pkg.DeveloperToolsCLILeo"
<ide> CLT_FROM_XCODE_PKG_ID = "com.apple.pkg.DeveloperToolsCLI"
<add> APPLE_X11_BUNDLE_ID = "org.x.X11"
<add> XQUARTZ_BUNDLE_ID = "or... | 1 |
Python | Python | add test for loading languages | b012ae3044670016efb2c35b3e8a745a19d80ff0 | <ide><path>spacy/tests/integration/test_load_languages.py
<add># encoding: utf8
<add>from __future__ import unicode_literals
<add>from ...fr import French
<add>
<add>def test_load_french():
<add> nlp = French()
<add> doc = nlp(u'Parlez-vous français?') | 1 |
Javascript | Javascript | fix initial animations | c439d816fac9625cde848300f745d29acdfaf469 | <ide><path>src/core/core.controller.js
<ide> class Chart {
<ide> this.$plugins = undefined;
<ide> this.$proxies = {};
<ide> this._hiddenIndices = {};
<del> this.attached = true;
<add> this.attached = false;
<ide>
<ide> // Add the chart instance to the global namespace
<ide> Chart.instances[me.id] = me;
<id... | 1 |
Javascript | Javascript | add progress indicator to compare.js | 60d77bd514d3dc65cfbb64ebb8ae1f364e8bf8eb | <ide><path>benchmark/_benchmark_progress.js
<add>'use strict';
<add>
<add>const readline = require('readline');
<add>
<add>function pad(input, minLength, fill) {
<add> var result = input + '';
<add> return fill.repeat(Math.max(0, minLength - result.length)) + result;
<add>}
<add>
<add>function fraction(numerator, den... | 6 |
Ruby | Ruby | check token scopes even if authorized | 4886b3b13845c8c76ebefd1a586a367961eab427 | <ide><path>Library/Homebrew/utils/github.rb
<ide> def api_credentials_type
<ide> def api_credentials_error_message(response_headers, needed_scopes)
<ide> return if response_headers.empty?
<ide>
<del> unauthorized = (response_headers["http/1.1"] == "401 Unauthorized")
<ide> scopes = response_headers["x-acc... | 1 |
Go | Go | normalize comment formatting | ecb898dcb9065c8e9bcf7bb79fd160dea1c859b8 | <ide><path>pkg/archive/archive.go
<ide> func newTarAppender(idMapping *idtools.IdentityMapping, writer io.Writer, chownO
<ide> }
<ide>
<ide> // canonicalTarName provides a platform-independent and consistent posix-style
<del>//path for files and directories to be archived regardless of the platform.
<add>// path for f... | 3 |
Text | Text | remove the duplication | 9f8f28684f196ff3790ff1c738e81743821fc860 | <ide><path>docs/userguide/networking/configure-dns.md
<ide> Various container options that affect container domain name services.
<ide> of the container identified by <code>CONTAINER_NAME</code>. When using <code>--link</code>
<ide> the embedded DNS will guarantee that localized lookup result only on that
<... | 1 |
Ruby | Ruby | pass the session and env in to the test request | 3806eb70a63f0252c88ebb25f0aa79b4c0ca5686 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> class TestRequest < ActionDispatch::TestRequest #:nodoc:
<ide> DEFAULT_ENV = ActionDispatch::TestRequest::DEFAULT_ENV.dup
<ide> DEFAULT_ENV.delete 'PATH_INFO'
<ide>
<del> def initialize(env = {})
<del> super
<add> def self.new_session
<a... | 1 |
Python | Python | fix gpu training and evaluation | ca70b086612b652a1f3c797b9810f2d9ba60252e | <ide><path>spacy/cli/train.py
<ide> def train_config(config):
<ide> def train_model(Language, train_data, dev_data, output_path, n_iter, **cfg):
<ide> print("Itn.\tDep. Loss\tUAS\tNER F.\tTag %\tToken %")
<ide>
<del> nlp = Language(pipeline=['token_vectors', 'tags']) #, 'dependencies'])
<add> nlp = Language(... | 1 |
Text | Text | change webflow link per request | 188b758631a8bc34cff0248e7d7ecef3d0f2fabc | <ide><path>README.md
<ide> Every release, along with the migration instructions, is documented on the Githu
<ide> The work on Redux was [funded by the community](https://www.patreon.com/reactdx).
<ide> Meet some of the outstanding companies that made it possible:
<ide>
<del>* [Webflow](https://webflow.com/)
<add>* [... | 1 |
Python | Python | add test for stable sort | 14955ccf2a6d838705abb21b237179ecfdbae19f | <ide><path>numpy/ma/tests/test_core.py
<ide> def test_sort(self):
<ide> assert_equal(sortedx._data, [1, 2, -2, -1, 0])
<ide> assert_equal(sortedx._mask, [1, 1, 0, 0, 0])
<ide>
<add> def test_stable_sort(self):
<add> x = array([1, 2, 3, 1, 2, 3], dtype=np.uint8)
<add> expected = array([... | 1 |
Javascript | Javascript | replace concat with template literals | 9f98989484d56b837411e8af75a9b7f5980b9db4 | <ide><path>tools/doc/json.js
<ide> const marked = require('marked');
<ide> // customized heading without id attribute
<ide> const renderer = new marked.Renderer();
<ide> renderer.heading = function(text, level) {
<del> return '<h' + level + '>' + text + '</h' + level + '>\n';
<add> return `<h${level}>${text}</h${leve... | 1 |
Python | Python | use longer timeout to make failure less likely | 26d27829f5e9d9a62ce1f27aa506375747d921d9 | <ide><path>libcloud/test/storage/test_local.py
<ide> def remove_tmp_file(self, tmppath):
<ide>
<ide> @unittest.skipIf(platform.system().lower() == 'windows', 'Unsupported on Windows')
<ide> def test_lock_local_storage(self):
<add> print("aaaa")
<ide> # 1. Acquire succeeds
<ide> lock = Lo... | 1 |
Ruby | Ruby | remove methods to avoid warnings | d5bb640eb02fa9cae6e99f2c5b7d91c986bc65f1 | <ide><path>actionpack/test/controller/rescue_test.rb
<ide> module ActionDispatch
<ide> class ShowExceptions
<ide> private
<add> remove_method :public_path
<ide> def public_path
<ide> "#{FIXTURE_LOAD_PATH}/public"
<ide> end
<ide>
<add> remove_method :logger
<ide> # Silence logg... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.