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 esmfold code sample
4f1e5e4efd46333578f15d09a7f931a3e7a2fd78
<ide><path>src/transformers/models/esm/modeling_esmfold.py <ide> <ide> <ide> logger = logging.get_logger(__name__) <add>_CHECKPOINT_FOR_DOC = "Rocketknight1/esmfold_v1" <add>_CONFIG_FOR_DOC = "EsmConfig" <add>_TOKENIZER_FOR_DOC = "EsmTokenizer" <ide> <ide> <ide> @dataclass <ide> def forward( <ide> <ide> Ex...
1
Ruby
Ruby
move http only option to appgenerator
2c0f6b0d8a8f357078fa7399765cf11edc7c645b
<ide><path>railties/lib/rails/generators/app_base.rb <ide> def self.add_shared_options_for(name) <ide> class_option :skip_test_unit, :type => :boolean, :aliases => "-T", :default => false, <ide> :desc => "Skip Test::Unit files" <ide> <del> class_option :http...
2
Ruby
Ruby
fix wrong assignment
70b995a77f3e47c24ae88509066d0cdc4b2d779e
<ide><path>actionpack/test/controller/parameters/serialization_test.rb <ide> <ide> class ParametersSerializationTest < ActiveSupport::TestCase <ide> setup do <del> @old_permitted_parameters = ActionController::Parameters.always_permitted_parameters <del> ActionController::Parameters.always_permitted_parameters...
1
Ruby
Ruby
add missing require in `dev-cmd/irb`
6f097685493b82330bbae2a743038745e6892a2b
<ide><path>Library/Homebrew/dev-cmd/irb.rb <ide> # typed: false <ide> # frozen_string_literal: true <ide> <add>require "formulary" <ide> require "cli/parser" <ide> <ide> class Symbol
1
Python
Python
fix typo in facebook ads provider
ef8df17348e3c567e2d2f0aface641acae3896ba
<ide><path>airflow/providers/facebook/ads/hooks/ads.py <ide> def facebook_ads_config(self) -> Dict: <ide> self.log.info("Fetching fb connection: %s", self.facebook_conn_id) <ide> conn = self.get_connection(self.facebook_conn_id) <ide> config = conn.extra_dejson <del> missings_keys = self....
2
Python
Python
set version to v2.1.4.dev0
83511972d3afc50dcfa9084928ab470077674a11
<ide><path>spacy/about.py <ide> # fmt: off <ide> <ide> __title__ = "spacy" <del>__version__ = "2.1.3" <add>__version__ = "2.1.4.dev0" <ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython" <ide> __uri__ = "https://spacy.io" <ide> __author__ = "Explosion AI" <ide> __email__ =...
1
Ruby
Ruby
update image_tag output in examples to actual
a200ebd8818d045e035c6e025733f8868f5a0181
<ide><path>actionpack/lib/action_view/helpers/asset_tag_helper.rb <ide> def font_url(source) <ide> # value is not in the correct format. <ide> # <ide> # image_tag("icon") <del> # # => <img src="/assets/icon" alt="Icon" /> <add> # # => <img alt="Icon" src="/assets/icon" /> <ide> # ...
1
Javascript
Javascript
increase hitslop for notification dismiss button
390546f6ed7965c09c8dcc4962dd18bc71c1d1d8
<ide><path>Libraries/LogBox/UI/LogBoxLogNotification.js <ide> function DismissButton(props) { <ide> default: LogBoxStyle.getTextColor(0.3), <ide> pressed: LogBoxStyle.getTextColor(0.5), <ide> }} <add> hitSlop={{ <add> top: 12, <add> right: 10, <add> bottom: ...
1
Python
Python
fix the git "sparse checkout" functionality
2771e4f2b3bfcc19f6c11a6801d95f4bb595c029
<ide><path>spacy/cli/_util.py <ide> def git_sparse_checkout( <ide> if dest.exists(): <ide> msg.fail("Destination of checkout must not exist", exits=1) <ide> if not dest.parent.exists(): <del> msg.fail("Parent of destination of checkout must exist", exits=1) <add> raise IOError("Parent of d...
3
PHP
PHP
fix bug in auth guard logout method
98c0c3b1f25cf643a81f4e2d88ab4befc4ce6a22
<ide><path>src/Illuminate/Auth/Guard.php <ide> protected function createRecaller($id) <ide> */ <ide> public function logout() <ide> { <add> $user = $this->user(); <add> <add> // If we have an event dispatcher instance, we can fire off the logout event <add> // so any further processing can be done. This allows t...
1
Javascript
Javascript
add transitions for dynamic data
f0f146715d1652dfa4bec96f131a2ad7c8464ba8
<ide><path>d3.chart.js <ide> d3.chart.bullet = function() { <ide> .enter().append('svg:rect') <ide> .attr('class', 'range'); <ide> chart.selectAll('rect.range') <add> .transition() <ide> .attr('width', scale) <ide> .attr('height', height) <ide> .attr('style', function(d, i...
3
Python
Python
include flask.json package in setup()
16396248b829c61806ba65840aa70e0a3d8b3c8c
<ide><path>setup.py <ide> def hello(): <ide> description='A microframework based on Werkzeug, Jinja2 ' <ide> 'and good intentions', <ide> long_description=__doc__, <del> packages=['flask', 'flask.ext'], <add> packages=['flask', 'flask.ext', 'flask.json'], <ide> include_package_data=Tru...
1
Javascript
Javascript
add readline test for escape sequence
5c020762bb5b2b33a11b816c7fba12cce0df2e65
<ide><path>test/parallel/test-readline-keys.js <ide> addTest('\x1b\x1b\x1b', [ <ide> { name: 'escape', sequence: '\x1b\x1b\x1b', meta: true }, <ide> ]); <ide> <add>// Escape sequence <add>addTest('\x1b]', [{ name: undefined, sequence: '\x1B]', meta: true }]); <add> <ide> // Control keys <ide> addTest('\x01\x0b\x10',...
1
Javascript
Javascript
replace string concatenation with templates
d00bb87cc7f3cb01403a932365698f9667d47be6
<ide><path>test/parallel/test-whatwg-url-parsing.js <ide> for (const test of failureTests) { <ide> return false; <ide> <ide> // The input could be processed, so we don't do strict matching here <del> const match = (error + '').match(/Invalid URL: (.*)$/); <add> const match = (`${error}`).match(...
1
Python
Python
update loading logics
f5397ffc3bf444e814b4234526dccba146be0347
<ide><path>pytorch_transformers/__init__.py <ide> # Files and general utilities <ide> from .file_utils import (PYTORCH_TRANSFORMERS_CACHE, PYTORCH_PRETRAINED_BERT_CACHE, <ide> cached_path, add_start_docstrings, add_end_docstrings, <del> WEIGHTS_NAME, TF_WEIGHTS_NAME, CON...
4
Javascript
Javascript
support formatting options in trace()
539bf1d7b7070eae0d0da067741d5bedf41750a8
<ide><path>lib/console.js <ide> Console.prototype.timeEnd = function(label) { <ide> }; <ide> <ide> <del>Console.prototype.trace = function(label) { <add>Console.prototype.trace = function() { <ide> // TODO probably can to do this better with V8's debug object once that is <ide> // exposed. <ide> var err = new E...
2
Javascript
Javascript
add support for iife with arrow functions
dd6512ddfe47468311c9ed2db9f3cb5f3cfa4513
<ide><path>lib/javascript/JavascriptParser.js <ide> class JavascriptParser extends Parser { <ide> } <ide> this.walkExpression(argOrThis); <ide> }; <del> const { params } = functionExpression; <add> const { params, type } = functionExpression; <add> const arrow = type === "ArrowFunctionExpression"; <ide> co...
1
Javascript
Javascript
show plural if assets are more than one
23208a311ca2fce52a36db7d4fe38cda2eac0747
<ide><path>lib/Stats.js <ide> class Stats { <ide> colors.green(" [built]"); <ide> } <ide> if (module.assets && module.assets.length) { <del> colors.magenta(` [${module.assets.length} asset]`); <add> colors.magenta( <add> ` [${module.assets.length} asset${ <add> module.assets.length === 1 ? "" :...
1
Ruby
Ruby
remove yaml serialization workaround for columns
4a2be83a7b9c71a952ae98e2aa63933b3a19b5e0
<ide><path>activerecord/lib/active_record/connection_adapters/column.rb <ide> module Format <ide> ISO_DATETIME = /\A(\d{4})-(\d\d)-(\d\d) (\d\d):(\d\d):(\d\d)(\.\d+)?\z/ <ide> end <ide> <del> attr_reader :name, :cast_type, :sql_type, :default_function <add> attr_reader :name, :cast_type, :null,...
1
PHP
PHP
fix double error tags when option parsing fails
8203e4ce6a367d6bcfe87aecf0e0379edf6dde53
<ide><path>src/Console/Shell.php <ide> public function runCommand($argv, $autoMethod = false, $extra = []) <ide> try { <ide> list($this->params, $this->args) = $this->OptionParser->parse($argv); <ide> } catch (ConsoleException $e) { <del> $this->err('<error>Error: ' . $e->getMessa...
2
Mixed
Ruby
handle other pk types in postgresql gracefully
c0a12453418356a837c3f62709fac6fe948047a6
<ide><path>activerecord/CHANGELOG.md <add>* Allow the PostgreSQL adapter to handle bigserial pk types again. <add> <add> Fixes #10410. <add> <add> *Patrick Robertson* <add> <ide> * Deprecate joining, eager loading and preloading of instance dependent <ide> associations without replacement. These operation...
3
Javascript
Javascript
fix the inversion
c0beca7103cd7c636af7c5afda1d9e0bd61f3547
<ide><path>examples/js/loaders/LDrawLoader.js <ide> THREE.LDrawLoader = ( function () { <ide> <ide> } <ide> <add> // If the scale of the object is negated then the triangle winding order <add> // needs to be flipped. <add> var matrix = currentParseScope.matrix; <add> if (...
1
Go
Go
add libnetwork call on daemon rename
8e0bbb28986c9aca5c51f546ba6fd0f1041ace14
<ide><path>daemon/rename.go <ide> package daemon <ide> <ide> import ( <add> "github.com/Sirupsen/logrus" <ide> derr "github.com/docker/docker/errors" <add> "github.com/docker/libnetwork" <add> "strings" <ide> ) <ide> <ide> // ContainerRename changes the name of a container, using the oldName <ide> // to find the con...
1
Go
Go
add api tests for secret update
aed7667bee243b0e0d1aa480e3bb52bae894cfe5
<ide><path>integration-cli/daemon_swarm.go <ide> func (d *SwarmDaemon) info() (swarm.Info, error) { <ide> <ide> type serviceConstructor func(*swarm.Service) <ide> type nodeConstructor func(*swarm.Node) <add>type specConstructor func(*swarm.Spec) <ide> <ide> func (d *SwarmDaemon) createService(c *check.C, f ...service...
2
Go
Go
fix wrong comment
718eba88363c14065b3a2a2dfbc9f270fc7cf63e
<ide><path>daemon/events.go <ide> func (daemon *Daemon) LogContainerEventWithAttributes(container *container.Conta <ide> daemon.EventsService.Log(action, events.ContainerEventType, actor) <ide> } <ide> <del>// LogImageEvent generates an event related to a container with only the default attributes. <add>// LogImageEv...
1
Go
Go
ignore no such container in testenv.clean
5dd89abdf1ec3e633ce01e74d1c47f8eb02fa31e
<ide><path>integration-cli/docker_api_containers_test.go <ide> func (s *DockerSuite) TestPutContainerArchiveErrSymlinkInVolumeToReadOnlyRootfs( <ide> readOnly: true, <ide> volumes: defaultVolumes(testVol), // Our bind mount is at /vol2 <ide> }) <del> defer deleteContainer(false, cID) <add> defer deleteContainer(c...
5
Javascript
Javascript
remove unused arguments from function
2a97eb61c65e23de3cee42c7b70f845b0c3a3d09
<ide><path>test/parallel/test-http-parser.js <ide> function newParser(type) { <ide> parser.url += url; <ide> }; <ide> <del> parser[kOnHeadersComplete] = function(info) { <add> parser[kOnHeadersComplete] = function() { <ide> }; <ide> <ide> parser[kOnBody] = common.mustNotCall('kOnBody should not be called'...
1
Go
Go
fix some types on errors and form
ac9c47e26f57a0fa2fed95a1fb1bf6c9410a3b60
<ide><path>api/errors/errors.go <ide> func (e apiError) HTTPErrorStatusCode() int { <ide> <ide> // NewErrorWithStatusCode allows you to associate <ide> // a specific HTTP Status Code to an error. <del>// The Server will take that code and set <add>// The server will take that code and set <ide> // it as the response s...
3
PHP
PHP
make fallback loader just a special name loader
da47cd4c353dd65d6c80637218e773f78457618c
<ide><path>src/I18n/I18n.php <ide> public static function config($name, callable $loader) <ide> static::translators()->registerLoader($name, $loader); <ide> } <ide> <del> /** <del> * Registers a fallback translator loader <del> * <del> * @param callable $loader A callable object that should ...
3
PHP
PHP
fix bad whitespace
f79325f4deea4c88643575e95cc5e850738c0f78
<ide><path>src/Utility/Inflector.php <ide> public static function normalize($string, $replacement = '_') <ide> $result = static::_cache($cacheKey, $string); <ide> <ide> if ($result === false) { <del> $result = strtolower(preg_replace('/(?<=\\w)([A-Z])/', $replacement .'\\1', $string)); <add>...
1
Text
Text
update laracasts statistics
d6cf4ea06da4a9477e040af473174546082dbcb9
<ide><path>readme.md <ide> Laravel is accessible, yet powerful, providing tools needed for large, robust ap <ide> <ide> Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework. The [Laravel documentation](https://laravel.com/docs) is in-depth and com...
1
Python
Python
move mappedoperator tests to mirror code location
70b41e46b46e65c0446a40ab91624cb2291a5039
<ide><path>tests/models/test_baseoperator.py <ide> from unittest import mock <ide> <ide> import jinja2 <del>import pendulum <ide> import pytest <ide> <ide> from airflow.decorators import task as task_decorator <ide> from airflow.exceptions import AirflowException <ide> from airflow.lineage.entities import File <ide> ...
2
Javascript
Javascript
fix error reporting in child_process callbacks
264e540d008a251a7e37f367611677414c2591d1
<ide><path>lib/child_process.js <ide> exports.execFile = function (file, args /*, options, callback */) { <ide> <ide> <ide> function ChildProcess () { <del> process.EventEmitter.call(this); <add> EventEmitter.call(this); <ide> <ide> var self = this; <ide> <ide> function ChildProcess () { <ide> var stdout = th...
2
Go
Go
add more details to runningtaskscount
67d6f174ae38d6765df35aa2b626b8c58954bff9
<ide><path>integration/internal/swarm/states.go <ide> func RunningTasksCount(client client.ServiceAPIClient, serviceID string, instanc <ide> tasks, err := client.TaskList(context.Background(), types.TaskListOptions{ <ide> Filters: filter, <ide> }) <add> var running int <add> var taskError string <add> for _, ...
1
Go
Go
remove unused fields
64fb664908f7d3368d1bbfd1efb56cd45e5ed7a3
<ide><path>profiles/apparmor/apparmor.go <ide> var ( <ide> type profileData struct { <ide> // Name is profile name. <ide> Name string <del> // ExecPath is the path to the docker binary. <del> ExecPath string <ide> // Imports defines the apparmor functions to import, before defining the profile. <ide> Imports []stri...
2
Ruby
Ruby
add tap accessor
b3d44da9e3ca226829c64421e09fbbbbd6fe09bc
<ide><path>Library/Homebrew/dependency.rb <ide> def merge_repeats(all) <ide> end <ide> <ide> class TapDependency < Dependency <add> attr_reader :tap <add> <ide> def initialize(name, tags=[], env_proc=DEFAULT_ENV_PROC, option_name=name) <del> super(name, tags, env_proc, name.split("/").last) <add> @tap, _, opt...
1
Javascript
Javascript
add additional tests
266c7ed74c52cfe73c304a1adac7b986f4b723a5
<ide><path>test/integration/basic/test/security.js <ide> /* eslint-env jest */ <ide> import { fetchViaHTTP } from 'next-test-utils' <add>import url from 'url' <ide> <ide> module.exports = (context) => { <ide> describe('With Security Related Issues', () => { <ide> module.exports = (context) => { <ide> } <ide>...
3
Go
Go
mitigate parallel pull issues
b779bc31022fddd165ac7d919cb06d78288a93c9
<ide><path>graph/graph.go <ide> func (graph *Graph) Create(layerData io.Reader, containerID, containerImage, com <ide> } <ide> <ide> // Register imports a pre-existing image into the graph. <add>// Returns nil if the image is already registered. <ide> func (graph *Graph) Register(img *image.Image, layerData io.Reader)...
1
Text
Text
simplify challenge teststring
cb3524ee31764dbc02214e11891962356910e708
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/subtract-one-number-from-another-with-javascript.english.md <ide> tests: <ide> - text: The variable <code>difference</code> should be equal to 12. <ide> testString: assert(difference === 12); <ide> - text: You...
1
Python
Python
remove unnecessary argument in test
77cf2fb0f63a5520de3b8b3456ce4c9181b91d16
<ide><path>spacy/tests/regression/test_issue595.py <ide> def vocab(lemmatizer, tag_map): <ide> return Vocab(lemmatizer=lemmatizer, tag_map=tag_map) <ide> <ide> <del>def test_not_lemmatize_base_forms(vocab, lemmatizer): <add>def test_not_lemmatize_base_forms(vocab): <ide> doc = Doc(vocab, words=["Do", "n't", "...
1
Go
Go
use dockersuite for pullclientdisconnect test
9dd6c8822ddccff1952dfd611263ba551693ff7d
<ide><path>integration-cli/docker_cli_pull_test.go <ide> func (s *DockerTrustSuite) TestTrustedPullWithExpiredSnapshot(c *check.C) { <ide> } <ide> <ide> // Test that pull continues after client has disconnected. #15589 <del>func (s *DockerTrustSuite) TestPullClientDisconnect(c *check.C) { <add>func (s *DockerSuite) Te...
1
Go
Go
use serf logger for memberlist log
2f03577ec8d39c77c94fbb58d439671973cfa375
<ide><path>libnetwork/drivers/overlay/ov_serf.go <ide> func (d *driver) serfInit() error { <ide> config.UserQuiescentPeriod = 50 * time.Millisecond <ide> <ide> config.LogOutput = &logWriter{} <add> config.MemberlistConfig.LogOutput = config.LogOutput <ide> <ide> s, err := serf.Create(config) <ide> if err != nil {
1
Python
Python
fix schedule_equal to handle none entry
40fd143ac1c48146f180a79b9ab87badeb68bc41
<ide><path>celery/beat.py <ide> def tick(self, event_t=event_t, min=min, heappop=heapq.heappop, <ide> return min(adjust(next_time_to_run) or max_interval, max_interval) <ide> <ide> def schedules_equal(self, old_schedules, new_schedules): <add> if old_schedules is new_schedules is None: <add> ...
2
Ruby
Ruby
remove unused require
7418469f3926b727d363527c6f6531f841edc980
<ide><path>activerecord/lib/active_record/scoping/named.rb <ide> # frozen_string_literal: true <ide> <ide> require "active_support/core_ext/array" <del>require "active_support/core_ext/hash/except" <ide> require "active_support/core_ext/kernel/singleton_class" <ide> <ide> module ActiveRecord
1
Ruby
Ruby
resolve error 4012. 18 errors => 13 errors
a919ba9ccd7c26179cd4490ce467ffa0f255ce80
<ide><path>Library/Homebrew/os/mac/xquartz.rb <ide> <ide> module OS <ide> module Mac <del> X11 = XQuartz = Module.new # rubocop:disable Style/MutableConstant <del> <del> module XQuartz <add> X11 = XQuartz = Module.new do # rubocop:disable Style/MutableConstant <ide> module_function <ide> <ide> ...
1
Text
Text
unlock the assert api
797ec338ea34cbed0de70005c8c0c8b6e7111527
<ide><path>doc/api/assert.md <ide> # Assert <ide> <del>> Stability: 3 - Locked <add>> Stability: 2 - Stable <ide> <ide> The `assert` module provides a simple set of assertion tests that can be used to <ide> test invariants.
1
Javascript
Javascript
add some more info for browserstack sessions
b08427dde9307bb442e3632f24d7b7054a50350e
<ide><path>karma-shared.conf.js <ide> module.exports = function(config, specificOptions) { <ide> <ide> // BrowserStack config for Travis CI <ide> browserStack: { <del> startTunnel: false <add> startTunnel: false, <add> project: 'AngularJS', <add> name: specificOptions.testName, <add> b...
1
Javascript
Javascript
fix typo in july
513a24e459b0460a6c16ea114722201ae771d8f6
<ide><path>src/locale/te.js <ide> import moment from '../moment'; <ide> <ide> export default moment.defineLocale('te', { <del> months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'), <del> monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో....
2
Text
Text
clarify translated title
93b23aca5d2c246f9e4323ecac99472caaa5dd54
<ide><path>curriculum/challenges/russian/03-front-end-libraries/front-end-libraries-projects/build-a-javascript-calculator.russian.md <ide> title: Build a JavaScript Calculator <ide> challengeType: 3 <ide> isRequired: true <ide> videoUrl: '' <del>localeTitle: Создайте калькулятор JavaScript <add>localeTitle: Создайте к...
1
Text
Text
update simulate docs and reorg a little bit
99b80938af2fe9edce427f30f768bc88e3f929a8
<ide><path>docs/docs/09.4-test-utils.md <ide> next: clone-with-props.html <ide> <ide> `React.addons.TestUtils` makes it easy to test React components in the testing framework of your choice (we use [Jasmine](http://pivotal.github.io/jasmine/) with [jsdom](https://github.com/tmpvar/jsdom)). <ide> <del>#### ReactCompon...
1
Go
Go
remove obsolete comments
d5098fde9a64fdec2098c7a0c6bd777f88f7d4c9
<ide><path>trust/trusts.go <ide> func (t *TrustStore) fetch() { <ide> go func() { <ide> err := t.reload() <ide> if err != nil { <del> // TODO log <ide> log.Infof("Reload of trust graph failed: %s", err) <ide> } <ide> }()
1
Python
Python
fix inplace building of data sources
f0c7ba02e42d71d120cc782395f01acc6ae15db0
<ide><path>numpy/distutils/command/build_src.py <ide> def run(self): <ide> <ide> def build_sources(self): <ide> <add> if self.inplace: <add> self.get_package_dir = self.get_finalized_command('build_py')\ <add> .get_package_dir <add> <ide> self.build_py_m...
1
Python
Python
apply patch from #953 to fix two doctests
de6264438e148882e58f5925f9176966216b940f
<ide><path>numpy/matlib.py <ide> def ones(shape, dtype=None, order='C'): <ide> [ 1., 1., 1.]]) <ide> <ide> >>> np.matlib.ones(2) <del> matrix([[ 1., 1.]] <add> matrix([[ 1., 1.]]) <ide> <ide> """ <ide> a = ndarray.__new__(matrix, shape, dtype, order=order) <ide> def zeros(shape, dtyp...
1
Javascript
Javascript
do math on numbers in compare.js, not strings
e7b8bad3d983e23e9b4981e6cfd05bba16d3e3b5
<ide><path>benchmark/compare.js <ide> function compare() { <ide> if (show === 'green' && !g || show === 'red' && !r) <ide> return; <ide> <del> var r0 = util.format('%s%s: %d%s', g, nodes[0], n0, g ? reset : ''); <del> var r1 = util.format('%s%s: %d%s', r, nodes[1], n1, r ? reset : ''); <add> var r0 ...
1
Go
Go
set permission on atomic file write
1cd74902810b0eefddd173239cd95b506b34e678
<ide><path>pkg/ioutils/fswriters.go <ide> func NewAtomicFileWriter(filename string, perm os.FileMode) (io.WriteCloser, err <ide> if err != nil { <ide> return nil, err <ide> } <add> <ide> abspath, err := filepath.Abs(filename) <ide> if err != nil { <ide> return nil, err <ide> } <ide> return &atomicFileWriter{ ...
2
PHP
PHP
add allowdynamicproperties attribute to shell
68a138a9b9c343d5cb68a4a67c5e5af83a8616e1
<ide><path>src/Console/Shell.php <ide> * @deprecated 3.6.0 ShellDispatcher and Shell will be removed in 5.0 <ide> * @method int|bool|null|void main(...$args) Main entry method for the shell. <ide> */ <add>#[\AllowDynamicProperties] <ide> class Shell <ide> { <ide> use LocatorAwareTrait;
1
Ruby
Ruby
add tests for `merge_bottle_spec`
4cbd4f296bd101ba17b94b1e9383fc5d7f5ba5fd
<ide><path>Library/Homebrew/dev-cmd/bottle.rb <ide> def merge_bottle_spec(old_keys, old_bottle_spec, new_bottle_hash) <ide> new_values = { <ide> root_url: new_bottle_hash["root_url"], <ide> prefix: new_bottle_hash["prefix"], <del> cellar: new_bottle_hash["cellar"].to_sym, <add> cellar: n...
2
Python
Python
remove stray func from test
c36122a7ba2cdc69f94f5732f26428329be54200
<ide><path>rest_framework/tests/test_pagination.py <ide> def count(self): <ide> # pretend like we don't know how many pages we have <ide> return None <ide> <del> def default_page_token(self): <del> return None <del> <ide> def page(self, token=None): <ide> if token: <ide> ...
1
Java
Java
remove redundant protectivelywrap method
0ab352f849dada233f287fcb27b009985a6c1fc1
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> public final <R> Observable<R> parallel(final Func1<Observable<T>, Observable<R> <ide> return lift(new OperatorParallel<T, R>(f, s)); <ide> } <ide> <del> /** <del> * Protects against errors being thrown from Observer implementations and e...
1
Javascript
Javascript
change tests to jest
1159935fe85f9a0014fb1045322d378d701a821c
<ide><path>test/Errors.test.js <ide> describe("Errors", () => { <ide> entry: "./entry-point-error-loader-required.js" <ide> }, <ide> (errors, warnings) => { <del> warnings.length.should.be.eql(1); <del> warnings[0] <del> .split("\n")[1] <del> .should.match(/^Module Warning \(from .\/emit-...
2
Text
Text
add 16.3.2 changelog
01402f4ad922b5467812586567519e9e5bbd595f
<ide><path>CHANGELOG.md <ide> </summary> <ide> </details> <ide> <add>## 16.3.2 (April 16, 2018) <add> <add>### React <add> <add>* Improve the error message when passing `null` or `undefined` to `React.cloneElement`. ([@nicolevy](https://github.com/nicolevy) in [#12534](https://github.com/facebook/react/pull/12534)) ...
1
PHP
PHP
use env value for redis queue name
4525f36cacc15cb82e8df4ef2e61f24423fcc639
<ide><path>config/queue.php <ide> 'redis' => [ <ide> 'driver' => 'redis', <ide> 'connection' => 'default', <del> 'queue' => 'default', <add> 'queue' => env('REDIS_QUEUE', 'default'), <ide> 'retry_after' => 90, <ide> 'block_for' => null, <ide>...
1
Text
Text
change language and make the command one line
335339ef6104f7740fbf499eca772f1b09039ac2
<ide><path>docs/build-instructions/linux.md <ide> have Node.js installed, or node isn't identified as Node.js on your machine. <ide> If it's the latter, entering `sudo ln -s /usr/bin/nodejs /usr/bin/node` into <ide> your terminal may fix the issue. <ide> <del>## You can also use Alternatives: <add>#### You can also us...
1
Javascript
Javascript
fix toggle wrap on dag code page
a1632edac783878cb82d9099f4f973c9a10b0d0f
<ide><path>airflow/www/static/js/dag_code.js <ide> * under the License. <ide> */ <ide> <del>/* global $ */ <add>/* global window, $ */ <ide> <ide> import getMetaValue from './meta_value'; <ide> <add>function toggleWrap() { <add> $('.code pre').toggleClass('wrap'); <add>} <add> <ide> const isWrapped = getMetaValue...
1
Ruby
Ruby
join strings rather than resizing buffer
081e15f104b7da597114a8539f519953f166e096
<ide><path>actionpack/lib/action_view/helpers/number_helper.rb <ide> def number_to_phone(number, options = {}) <ide> number.slice!(0, 1) if number.starts_with?('-') <ide> end <ide> <del> str = "" <add> str = [] <ide> str << "+#{country_code}#{delimiter}" unless country_code.blan...
1
Python
Python
add config resolver test
8d6448ccf7926f1d219a25b467173a231553db20
<ide><path>spacy/tests/serialize/test_serialize_config.py <ide> from spacy.ml.models import build_Tok2Vec_model, build_tb_parser_model <ide> from spacy.ml.models import MultiHashEmbed, MaxoutWindowEncoder <ide> from spacy.schemas import ConfigSchema, ConfigSchemaPretrain <add>from catalogue import RegistryError <ide> ...
1
Go
Go
improve wait for lxc and driver interface
8c9f62d037a1bc82742ea316adaaf658af56b7c3
<ide><path>container.go <ide> func (container *Container) monitor(callback execdriver.StartCallback) error { <ide> <ide> if container.process == nil { <ide> // This happends when you have a GHOST container with lxc <del> err = container.runtime.Wait(container, 0) <add> err = container.runtime.WaitGhost(container)...
5
Ruby
Ruby
implement api suggestions of pull request
db040cdf8ba832123bae68764189bbcb569d473a
<ide><path>activesupport/lib/active_support/message_encryptor.rb <ide> class MessageEncryptor <ide> class InvalidMessage < StandardError; end <ide> OpenSSLCipherError = OpenSSL::Cipher.const_defined?(:CipherError) ? OpenSSL::Cipher::CipherError : OpenSSL::CipherError <ide> <del> attr_accessor :serializer, :...
4
Javascript
Javascript
add support for enter/shift for find
45fe76e752dc6042f0f6e3df346ccb8deaf3c36b
<ide><path>web/viewer.js <ide> var PDFFindBar = { <ide> self.dispatchEvent(''); <ide> }); <ide> <del> // TODO: Add keybindings like enter, shift-enter, CMD-G etc. to go to prev/ <add> // TODO: Add keybindings CMD-G etc. to go to prev/ <ide> // next match when the findField is selected. <ide> <add>...
1
PHP
PHP
add more column types and wire up mocks better
04613949c11f29962e6b0c55c3979c2fec6ce199
<ide><path>lib/Cake/Database/Schema/MysqlSchema.php <ide> public function extraSchemaColumns() { <ide> ]; <ide> } <ide> <add>/** <add> * Generate the SQL to create a table. <add> * <add> * @param string $table The name of the table. <add> * @param array $lines The lines (columns + indexes) to go inside the table. <...
2
Javascript
Javascript
write font cmap using a string
f63af3e614cc78de1483800b5e965336d4b0effc
<ide><path>fonts.js <ide> var Font = (function () { <ide> var searchRange = FontsUtils.getMaxPower2(segCount) * 2; <ide> var searchEntry = Math.log(segCount) / Math.log(2); <ide> var rangeShift = 2 * segCount - searchRange; <del> var cmap = [].concat( <del> [ <...
1
Ruby
Ruby
remove redundant reader method
b0138b9c9b8ac12deaebd83b0c665c46c16815c8
<ide><path>Library/Homebrew/requirements/python_dependency.rb <ide> class PythonInstalled < Requirement <ide> attr_reader :min_version <ide> attr_reader :if3then3 <del> attr_reader :site_packages <ide> attr_accessor :site_packages <ide> attr_accessor :binary # The python.rb formula needs to set the binary <ide...
1
Python
Python
return scalar losses instead of per-sample means
96d833b211a35bc48c3f9174042a796bb110a66b
<ide><path>src/transformers/modeling_tf_utils.py <ide> def hf_compute_loss(self, labels, logits): <ide> unmasked_loss = loss_fn(tf.nn.relu(labels), logits) <ide> # make sure only labels that are not equal to -100 affect the loss <ide> loss_mask = tf.cast(labels != -100, dtype=unmasked_loss.dtype...
7
PHP
PHP
throw exception if sqlite database doesn't exist
5f6a831bdae5eb1042e24ff033ade63a6af03afb
<ide><path>src/Illuminate/Database/Connectors/SQLiteConnector.php <ide> public function connect(array $config) <ide> <ide> $path = realpath($config['database']); <ide> <add> // Here we'll verify that the SQLite database exists before we gooing further <add> // as the developer probably wants to know if the databa...
1
PHP
PHP
apply fixes from styleci
66e69a2f674515cd0aa18fc596d228e4d96a959e
<ide><path>src/Illuminate/Foundation/Providers/FoundationServiceProvider.php <ide> <ide> use Illuminate\Contracts\Foundation\MaintenanceMode as MaintenanceModeContract; <ide> use Illuminate\Foundation\FileBasedMaintenanceMode; <del>use Illuminate\Foundation\MaintenanceMode; <ide> use Illuminate\Http\Request; <ide> use...
1
Text
Text
add dynamic routing keyword (#788)
8fa630d85574c47151c797947d035f1fc4e79d9c
<ide><path>examples/parameterized-routing/README.md <ide> <del># Parametrized routes example <add># Parametrized routes example (dynamic routing) <ide> <ide> ## How to use <ide>
1
Go
Go
improve udev unsupported error message
b8f38747e60eb76e19f08129ab27cb808d21c22a
<ide><path>daemon/graphdriver/devmapper/deviceset.go <ide> import ( <ide> "github.com/Sirupsen/logrus" <ide> <ide> "github.com/docker/docker/daemon/graphdriver" <add> "github.com/docker/docker/dockerversion" <ide> "github.com/docker/docker/pkg/devicemapper" <ide> "github.com/docker/docker/pkg/idtools" <ide> "gith...
1
Text
Text
fix typo in as guide [ci skip]
fb42520252477d83560f2e2a2550c7f377e07bc1
<ide><path>guides/source/active_support_core_extensions.md <ide> Extensions to `Marshal` <ide> <ide> Active Support adds constant autoloading support to `load`. <ide> <del>For example, the file cache store deserializes this way: <add>For example, the file cache store deserializes this way: <ide> <ide> ```ruby <ide>...
1
PHP
PHP
fix postgres for bigint primary key
3433e10fbdb91d4dd84865dd8f0ee72b7e41507f
<ide><path>lib/Cake/Model/Datasource/Database/Postgres.php <ide> public function buildColumn($column) { <ide> ); <ide> <ide> $out = str_replace('integer serial', 'serial', $out); <add> $out = str_replace('bigint serial', 'bigserial', $out); <ide> if (strpos($out, 'timestamp DEFAULT')) { <ide> if (isset($colu...
2
Ruby
Ruby
add i18n tests to engines
5cd9aad4fdf55c591fe8e12657008e83315251d7
<ide><path>activesupport/lib/active_support/railtie.rb <ide> class Railtie < Rails::Railtie <ide> I18n.send("#{setting}=", value) <ide> end <ide> end <add> <add> I18n.reload! <ide> end <ide> end <ide> end <ide><path>railties/test/initializer/initialize_i18n_test.rb <del>require "isola...
3
Python
Python
replace arraytype, newaxis, and typecode =
de0ac347a7332b04ff35b21c87e7e1bdb0cb5bc4
<ide><path>numpy/lib/convertcode.py <ide> def replaceattr(astr): <ide> astr = astr.replace(".itemsize()",".itemsize") <ide> astr = astr.replace("matrixmultiply","dot") <ide> # preserve uses of flat that should be o.k. <del> tmpstr = flatindex_re.sub("\\2",astr) <add> tmpstr = flatindex_re.sub(r"\2",as...
1
Go
Go
remove the pushimagerec and use iteration instead
55cf05835b6f55e7ec83c63bc69a570876722df5
<ide><path>registry.go <ide> func (graph *Graph) PullRepository(stdout io.Writer, remote, askedTag string, re <ide> return nil <ide> } <ide> <del>func pushImageRec(graph *Graph, stdout io.Writer, img *Image, registry string, token []string) error { <del> if parent, err := img.GetParent(); err != nil { <del> return e...
1
Go
Go
move builder cli helper functions to own pkg
feaf5902f650f2326e1c41e82dfe28962f1ba46e
<ide><path>builder/utils_test.go <ide> func createTestTempFile(t *testing.T, dir, filename, contents string, perm os.Fi <ide> <ide> return filePath <ide> } <del> <del>// chdir changes current working directory to dir. <del>// It returns a function which changes working directory back to the previous one. <del>// This...
6
Python
Python
fix imports in diagnose and excise old crap
9596a895dd01c27b9984fe8ff20e151eda41b9b8
<ide><path>numpy/f2py/diagnose.py <ide> #!/usr/bin/env python <ide> <del>import os,sys,tempfile <add>import os <add>import sys <add>import tempfile <ide> <ide> def run_command(cmd): <ide> print 'Running %r:' % (cmd) <ide> def run(): <ide> print '------' <ide> print 'sys.path=%r' % (':'.join(sys.path)) <id...
1
Javascript
Javascript
replace fixturesdir with the fixtures module
1a9f48a87591f3d1194c4051b9b867a38ba2bccc
<ide><path>test/parallel/test-http-default-port.js <ide> const common = require('../common'); <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <add>const fixtures = require('../common/fixtures'); <ide> const http = require('http'); <ide> const https = require('https'); <ide> const assert = req...
1
Mixed
Ruby
fix mounting engines inside a resources block
e6c602da9046a653747ce99c9cab7f08f572fa40
<ide><path>actionpack/CHANGELOG.md <add>* Fix generating a path for engine inside a resources block (#8533) <add> <add> *Piotr Sarnacki* <add> <ide> * Add Mime::Type.register "text/vcard", :vcf to the default list of mime types <ide> <ide> *DHH* <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <i...
3
Go
Go
close the containers stdin when the process dies
47607494027be3d37cbb01a07e026e99f9c5151b
<ide><path>container.go <ide> func (container *Container) monitor() { <ide> if err := container.releaseNetwork(); err != nil { <ide> log.Printf("%v: Failed to release network: %v", container.Id, err) <ide> } <add> if container.Config.OpenStdin { <add> if err := container.stdin.Close(); err != nil { <add> Debugf(...
1
PHP
PHP
use string based accessor for schema facade
8059b393eb45749d7e8840a41f33c99b2f4acafd
<ide><path>src/Illuminate/Database/DatabaseServiceProvider.php <ide> protected function registerConnectionServices() <ide> return $app['db']->connection(); <ide> }); <ide> <add> $this->app->bind('db.schema', function ($app) { <add> return $app['db']->connection()->getSchemaBuilder...
6
Javascript
Javascript
restore missing break
a0c68ec70b5a6e87e1ffcba0d61a63efc4b6aa60
<ide><path>src/text-editor.js <ide> class TextEditor { <ide> this.component.scheduleUpdate() <ide> } <ide> } <add> break <ide> <ide> case 'placeholderText': <ide> if (value !== this.placeholderText) {
1
Javascript
Javascript
use switch command from javascript
4eb8a951ffd60dfdb4b05145d9d36a8b493a4cd7
<ide><path>Libraries/Components/Switch/Switch.js <ide> const StyleSheet = require('../../StyleSheet/StyleSheet'); <ide> import AndroidSwitchNativeComponent, { <ide> Commands as AndroidSwitchCommands, <ide> } from './AndroidSwitchNativeComponent'; <add>import SwitchNativeComponent, { <add> Commands as SwitchCommands,...
2
Javascript
Javascript
track parentid for reactperf
ab0ef89ec77962a39e3621ab4ce46cc073d3d7b2
<ide><path>src/isomorphic/devtools/ReactComponentTreeDevtool.js <ide> var ReactComponentTreeDevtool = { <ide> updateTree(id, item => item.displayName = displayName); <ide> }, <ide> <del> onSetChildren(id, childIDs) { <del> childIDs.forEach(childID => { <del> var childItem = tree[childID]; <del> exp...
2
Javascript
Javascript
propagate originating parent
b8ce1da74d6ca01a7da2921b5911aa05aeaa6582
<ide><path>lib/buffer.js <ide> Buffer.dispose = function(obj) { <ide> }; <ide> <ide> <add>// pre-set for values that may exist in the future <add>Buffer.prototype.length = undefined; <add>Buffer.prototype.parent = undefined; <add> <add> <ide> // toString(encoding, start=0, end=buffer.length) <ide> Buffer.prototype.to...
2
Ruby
Ruby
pass printer class to output_filename
01a4af4a74fdcda9a20db8de01fd7bb5d28d22cf
<ide><path>activesupport/lib/active_support/testing/performance.rb <ide> def record_benchmark(test_name, data, measure_mode) <ide> <ide> def record_profile(test_name, data, measure_mode) <ide> printer_classes.each do |printer_class| <del> fname = output_filename(test_name, printer, m...
1
Text
Text
update path to tf_record script
a8cc5eddbef8539c81c3f6166972019ed445f41f
<ide><path>research/object_detection/g3doc/running_pets.md <ide> Oxford-IIIT Pet dataset into TFRecords. Run the following commands from the <ide> <ide> ``` bash <ide> # From tensorflow/models/research/ <del>python object_detection/create_pet_tf_record.py \ <add>python object_detection/dataset_tools/create_pet_tf_reco...
1
Text
Text
add update example use
5e59d8a8b656bcd3aaa3ac27601ad7f98433c5d0
<ide><path>_SETUP.md <ide> or incremental (in watch mode) <ide> ```bash <ide> yarn type-lint --watch <ide> ``` <add> <add>### To update all examples use <add> <add>```bash <add>yarn build:examples <add>``` <add> <add>### To update some example use <add> <add>```bash <add>cd examples/(some example dir) <add>node build.j...
1
PHP
PHP
fix bug and shorten exception message
85936b3c20cc06ea527e85e3389d7a20b696a50f
<ide><path>laravel/redis.php <ide> public function run($method, $parameters) <ide> { <ide> fwrite($this->connect(), $this->command($method, (array) $parameters)); <ide> <del> $ersponse = trim(fgets($this->connection, 512)); <add> $response = trim(fgets($this->connection, 512)); <ide> <del> switch (substr($erspo...
1
Mixed
Python
remove non-working --use-chars from train cli
5ceac425eeb02f9c5c6f952d8b4117022b3e649b
<ide><path>spacy/cli/train.py <ide> conv_depth=("Depth of CNN layers of Tok2Vec component", "option", "cd", int), <ide> cnn_window=("Window size for CNN layers of Tok2Vec component", "option", "cW", int), <ide> cnn_pieces=("Maxout size for CNN layers of Tok2Vec component. 1 for Mish", "option", "cP", int), ...
2
Javascript
Javascript
enhance test to catch bug reported in
fb74992454f9cfa1027523a3448036e07fc67f20
<ide><path>spec/tooltip-manager-spec.js <ide> describe('TooltipManager', () => { <ide> const element2 = document.createElement('div') <ide> jasmine.attachToDOM(element2) <ide> <del> const fakeJqueryWrapper = [element, element2] <del> fakeJqueryWrapper.jquery = 'any-version' <add> const fakeJ...
1
Go
Go
add reference counting to aufs
5b6b8df0c1b5a54ae9a717810eedf9fc971e1321
<ide><path>daemon/graphdriver/aufs/aufs.go <ide> type Driver struct { <ide> root string <ide> uidMaps []idtools.IDMap <ide> gidMaps []idtools.IDMap <add> ctr *graphdriver.RefCounter <ide> pathCacheLock sync.Mutex <ide> pathCache map[string]string <ide> } <ide> func Init(root stri...
5
Javascript
Javascript
remove unnecessary target assign
ab72cce9946ac6812cdf5eb7fefe5d8753cef552
<ide><path>lib/LoaderTargetPlugin.js <ide> class LoaderTargetPlugin { <ide> } <ide> <ide> apply(compiler) { <del> let target = this.target; <ide> compiler.plugin("compilation", (compilation) => { <del> compilation.plugin("normal-module-loader", (loaderContext) => loaderContext.target = target); <add> compilat...
1