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
fix typo for protocol, fixes
cb19ccc8b205d71449e6f3223797b16f24f2d06b
<ide><path>glances/exports/glances_influxdb.py <ide> def __init__(self, config=None, args=None): <ide> self.db = None <ide> <ide> # Optionals configuration keys <del> self.protocole = 'http' <add> self.protocol = 'http' <ide> self.prefix = None <ide> self.tags = None <ide>...
1
Javascript
Javascript
fix backwards incompatibility
7cd0d4f644e304d4c8239dca532ca4de50d981ba
<ide><path>lib/buffer.js <ide> function byteLength(string, encoding) { <ide> return len >>> 1; <ide> break; <ide> } <del> if (mustMatch) <del> throw new TypeError('Unknown encoding: ' + encoding); <del> else <del> return binding.byteLengthUtf8(string); <add> return (mustMatch ? -1 : binding.byt...
2
Javascript
Javascript
clarify argument name
202087f03da20741b8e4b248e53994a6ff1cce3e
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide) { <ide> * @param {Object} templateAttrs The shared attribute function <ide> * @param {function(angular.Scope[, cloneAttachFn]} transcludeFn A linking function, where the <ide> * scope argument is auto-generated to the new child...
1
Python
Python
perform the squeeze in a more appropriate location
9dd2c618e8425ee5ac0b9e5ca1c4daddf8275581
<ide><path>slim/nets/resnet_v2.py <ide> def resnet_v2(inputs, <ide> if num_classes is not None: <ide> net = slim.conv2d(net, num_classes, [1, 1], activation_fn=None, <ide> normalizer_fn=None, scope='logits') <add> logits = tf.squeeze(net, [1, 2], name='SpatialSqueeze...
2
Python
Python
simplify the tests for [15296]
09a63632c5072695d3b3293a046c197ea3c3299a
<ide><path>tests/regressiontests/inspectdb/bug/__init__.py <del> <ide><path>tests/regressiontests/inspectdb/bug/models.py <del>from django.db import models <del> <del>class People(models.Model): <del> name = models.CharField(max_length=255) <del> <del>class Message(models.Model): <del> from_field = models.Foreign...
4
Ruby
Ruby
add missing assert_not_deprecated deprecator args
8a7aba0c768cb30d45e0fe33a4722ca46e43cbf5
<ide><path>activerecord/test/cases/adapters/mysql2/mysql2_adapter_test.rb <ide> def close <ide> ) <ide> end <ide> <del> assert_not_deprecated do <add> assert_not_deprecated(ActiveRecord.deprecator) do <ide> ActiveRecord::ConnectionAdapters::Mysql2Adapter.new( <ide> fake_connection, <ide> ...
8
Javascript
Javascript
fix parsing of requires in requires
26231576a8119247a4a9cc259ad0dc29021bf5c4
<ide><path>lib/dependencies/CommonJsImportsParserPlugin.js <ide> class CommonJsImportsParserPlugin { <ide> dep.asiSafe = !parser.isAsiPosition(expr.range[0]); <ide> dep.loc = expr.callee.loc; <ide> parser.state.module.addDependency(dep); <add> parser.walkExpressions(expr.arguments); <ide> return true...
4
PHP
PHP
catch symfony exception
7ab5b4bbd5e7a662395f5cec0ece7497cec16806
<ide><path>src/Illuminate/Routing/CompiledRouteCollection.php <ide> use Illuminate\Container\Container; <ide> use Illuminate\Http\Request; <ide> use Illuminate\Support\Collection; <add>use Symfony\Component\Routing\Exception\ResourceNotFoundException; <ide> use Symfony\Component\Routing\Matcher\CompiledUrlMatcher; <ide...
1
Javascript
Javascript
update wiki hotkey
7193b9c725ed97cd8cc99aba72ceffa40a79c8f8
<ide><path>client/sagas/mouse-trap-saga.js <ide> const softRedirects = { <ide> 'g n n': '/challenges/next-challenge', <ide> 'g n a': '/about', <ide> 'g n m': '/map', <del> 'g n w': '/wiki', <ide> 'g n s': '/shop', <ide> 'g n o': '/settings' <ide> }; <ide> export default function mouseTrapSaga(actions$) { <id...
1
PHP
PHP
add messages method to message bag
dcd02818805175725aecc01a14ec2bb7340f7586
<ide><path>src/Illuminate/Support/MessageBag.php <ide> protected function checkFormat($format) <ide> * <ide> * @return array <ide> */ <del> public function getMessages() <add> public function messages() <ide> { <ide> return $this->messages; <ide> } <ide> <add> /** <add> * Ge...
1
Python
Python
fix typo in dataproccreateclusteroperator
c5e302030de7512a07120f71f388ad1859b26ca2
<ide><path>airflow/providers/google/cloud/operators/dataproc.py <ide> class DataprocCreateClusterOperator(BaseOperator): <ide> :type cluster_config: Union[Dict, google.cloud.dataproc_v1.types.ClusterConfig] <ide> :param region: The specified region where the dataproc cluster is created. <ide> :type region: ...
1
Python
Python
remove redundant kwargs, improve docstrings
ad7233fc019c1c6b2d66978ad9aec9e31d7b889c
<ide><path>src/transformers/modeling_bart.py <ide> ARTICLE_TO_SUMMARIZE = "My friends are cool but they eat too many carbs." <ide> inputs = tokenizer.batch_encode_plus([ARTICLE_TO_SUMMARIZE], max_length=1024, return_tensors='pt') <ide> # Generate Summary <del> summary_ids = model.generate...
2
Javascript
Javascript
remove bad chars instead of replaces all
b9cd526a35c1e6fb0b3eb4497f6013a4abda7021
<ide><path>src/fonts.js <ide> var Type2CFF = (function Type2CFFClosure() { <ide> var length = data.length; <ide> if (length > 127) <ide> warn('Font had name longer than 127 chars, will be rejected.'); <del> // Only certain chars are permitted in the font name. Set them all to <del> ...
1
Text
Text
restore documentation for two error codes
cdb59854ee6c13712d17af729a42d5221d6af8f2
<ide><path>doc/api/errors.md <ide> forbidden. <ide> For HTTP/2 requests using the `CONNECT` method, the `:scheme` pseudo-header is <ide> forbidden. <ide> <add><a id="ERR_HTTP2_ERROR"></a> <add>### ERR_HTTP2_ERROR <add> <add>A non-specific HTTP/2 error has occurred. <add> <ide> <a id="ERR_HTTP2_GOAWAY_SESSION"></a> <id...
1
Javascript
Javascript
allow handlebars rc1
059ceb0f72ad0f54a022f61d621d73b9470f1b16
<ide><path>packages/ember-handlebars/lib/ext.js <ide> require("ember-views/system/render_buffer"); <ide> @description Helpers for Handlebars templates <ide> */ <ide> <del>Ember.assert("Ember Handlebars requires Handlebars 1.0.beta.5 or greater", window.Handlebars && window.Handlebars.VERSION.match(/^1\.0\.beta\.[567...
1
Go
Go
fix some typos
97915bde4438ba8b14b3068c5231c6fcf052264a
<ide><path>libnetwork/error.go <ide> func (nnr NetworkNameError) Error() string { <ide> // Forbidden denotes the type of this error <ide> func (nnr NetworkNameError) Forbidden() {} <ide> <del>// UnknownNetworkError is returned when libnetwork could not find in it's database <add>// UnknownNetworkError is returned when...
1
Python
Python
remove unused import
cdc61155fa7efd6f6e0d1dd675c7698e57f22a6a
<ide><path>libcloud/drivers/rimuhosting.py <ide> from libcloud.types import Provider, NodeState, InvalidCredsException <ide> from libcloud.base import ConnectionKey, Response, NodeAuthPassword, NodeDriver, NodeSize, Node, NodeLocation <ide> from libcloud.base import NodeImage <del>from copy import copy <ide> <ide> # J...
1
Text
Text
correct the instructions for functional tests
2ad908b3a9ba77ec6883e74b2fbfd820603cce0c
<ide><path>curriculum/challenges/english/09-information-security/information-security-projects/anonymous-message-board.md <ide> Write the following tests in `tests/2_functional-tests.js`: <ide> - Reporting a thread: PUT request to `/api/threads/{board}` <ide> - Creating a new reply: POST request to `/api/replies/{b...
1
Ruby
Ruby
add tests for our minitest reporter
ff79441d49a52a2669e147cd8264a2dc6e452b80
<ide><path>railties/test/test_unit/reporter_test.rb <add>require 'abstract_unit' <add>require 'rails/test_unit/reporter' <add> <add>class TestUnitReporterTest < ActiveSupport::TestCase <add> class ExampleTest < Minitest::Test <add> def woot; end <add> end <add> <add> setup do <add> @output = StringIO.new <add>...
1
Python
Python
fix edgecase for bool containers
6244c0631e1a78926db27143bf936bfb5e95c852
<ide><path>numpy/lib/arraysetops.py <ide> def in1d(ar1, ar2, assume_unique=False, invert=False, *, kind=None): <ide> ar2 = ar2.reshape(-1, 1) <ide> # Convert booleans to uint8 so we can use the fast integer algorithm <ide> if ar1.dtype == bool: <del> ar1 = ar1.view(np.uint8) <add> ar1 = ar...
1
Python
Python
fix typo in comment
a2bc743e4732338e1b19f87ae1e7e2303ffac2bd
<ide><path>spacy/pipeline/attributeruler.py <ide> def __call__(self, doc: Doc) -> Doc: <ide> <ide> def match(self, doc: Doc): <ide> matches = self.matcher(doc, allow_missing=True) <del> # Sort by the attribute ID, so that later rules have precendence <add> # Sort by the attribute ID, so that ...
1
Text
Text
add active job info to 5.1 release notes
31f27aa25806670545a7d17f5c6a04d0acd27beb
<ide><path>guides/source/5_1_release_notes.md <ide> Please refer to the [Changelog][active-job] for detailed changes. <ide> <ide> ### Removals <ide> <del>### Deprecations <add>* Removed deprecated support to passing the adapter class to `.queue_adapter`. <add> ([commit](https://github.com/rails/rails/commit/d1fc...
1
Ruby
Ruby
add tests for autocorrect
0786003fe9d3aef49e62b329d2ed7795d5f871cc
<ide><path>Library/Homebrew/rubocops/lines.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> shell_metacharacters = %w[> < < | ; : & * $ ? : ~ + @ !` ( ) [ ]] <ide> <ide> find_every_method_call_by_name(body_node, :system).each do |method| <del> # Continu...
2
Ruby
Ruby
add generic codesign_patched_binary method
35f426e3e23efe1385bc30cda9923367dbd77ac6
<ide><path>Library/Homebrew/keg.rb <ide> def binary_executable_or_library_files <ide> elf_files <ide> end <ide> <add> def codesign_patched_binary(_binary_file); end <add> <ide> private <ide> <ide> def resolve_any_conflicts(dst, dry_run: false, verbose: false, overwrite: false)
1
Go
Go
copy values out of hostconfig
4e12484ea12d23fd70fd3bf636e786f4f741ab64
<ide><path>daemon/container.go <ide> func (container *Container) allocateNetwork() error { <ide> if container.Config.ExposedPorts != nil { <ide> portSpecs = container.Config.ExposedPorts <ide> } <add> <ide> if container.hostConfig.PortBindings != nil { <del> bindings = container.hostConfig.PortBindings <add> for...
1
Go
Go
fix flaky testexec
0a7755ab4e2fc8df1992813d5364fe0f201ab913
<ide><path>integration-cli/docker_cli_exec_test.go <ide> import ( <ide> <ide> func (s *DockerSuite) TestExec(c *check.C) { <ide> testRequires(c, DaemonIsLinux) <del> dockerCmd(c, "run", "-d", "--name", "testing", "busybox", "sh", "-c", "echo test > /tmp/file && top") <add> out, _ := dockerCmd(c, "run", "-d", "--name"...
1
Python
Python
check minimum icu in configure for system-icu
ed1c40e977cc5bb87645bc1dcf62d2e25386a2c0
<ide><path>configure.py <ide> dest='with_icu_source', <ide> help='Intl mode: optional local path to icu/ dir, or path/URL of ' <ide> 'the icu4c source archive. ' <del> 'v%d.x or later recommended.' % icu_versions["minimum_icu"]) <add> 'v%d.x or later recommended.' % icu_versions['minimum_i...
1
Javascript
Javascript
add ember.select control
8061b909c33024b93ec163882be3ec7dad921495
<ide><path>packages/ember-handlebars/lib/controls.js <ide> require("ember-handlebars/controls/button"); <ide> require("ember-handlebars/controls/radio_button"); <ide> require("ember-handlebars/controls/text_area"); <ide> require("ember-handlebars/controls/tabs"); <add>require("ember-handlebars/controls/select"); <ide><...
3
Javascript
Javascript
add test for template literal analysis
154c5799f8119aff637b03ddfe53f2cb627b53c4
<ide><path>test/Parser.test.js <ide> describe("Parser", () => { <ide> "b.Number": "number=123", <ide> "b['Number']": "number=123", <ide> "b[Number]": "", <add> "`start${obj}mid${obj2}end`": "template=[start string=start],[mid string=mid],[end string=end]", // eslint-disable-line no-template-curly-in-string <...
1
Javascript
Javascript
fix lint error
9157597175822fba5ebc0b09827abbd31062a8a9
<ide><path>web/viewer.js <ide> window.addEventListener('scalechange', function scalechange(evt) { <ide> return; <ide> } <ide> <del> var predefinedValueFound = selectScaleOption('' + evt.scale); <add> var predefinedValueFound = selectScaleOption('' + evt.scale); <ide> if (!predefinedValueFound) { <ide> ...
1
PHP
PHP
implement the querycacher class
ff57e192241801b09c1a00075562cf9e7a686832
<ide><path>Cake/ORM/QueryCacher.php <ide> */ <ide> namespace Cake\ORM; <ide> <add>use Cake\Cache\Cache; <add>use Cake\Cache\CacheEngine; <ide> use Cake\ORM\Query; <add>use RuntimeException; <ide> <ide> /** <ide> * Handles caching queries and loading results from the cache. <ide> class QueryCacher { <ide> * @param ...
2
Ruby
Ruby
apply suggestions from code review
0118e6ec41a4fb2e2638165fee0a4f492f19bf81
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def update_report <ide> <ide> if ENV["HOMEBREW_CORE_DEFAULT_GIT_REMOTE"] != ENV["HOMEBREW_CORE_GIT_REMOTE"] <ide> opoo <<~EOS <del> HOMEBREW_CORE_GIT_REMOTE was set. It has been unset for the migration. <add> HOMEBREW_CORE_GIT_REMOT...
2
Ruby
Ruby
use canonical name for default formula
2f02942a84c641ac8890654a0bf7f239029d6f34
<ide><path>Library/Homebrew/requirements.rb <ide> def message; <<-EOS.undent <ide> <ide> class PostgresqlDependency < Requirement <ide> fatal true <del> default_formula 'postgres' <add> default_formula 'postgresql' <ide> <ide> satisfy { which 'pg_config' } <ide>
1
Javascript
Javascript
reset awaitdrain after manual .resume()
e2e615e87e52773274619d0167716a766c16ac64
<ide><path>lib/_stream_readable.js <ide> function resume_(stream, state) { <ide> } <ide> <ide> state.resumeScheduled = false; <add> state.awaitDrain = 0; <ide> stream.emit('resume'); <ide> flow(stream); <ide> if (state.flowing && !state.reading) <ide><path>test/parallel/test-stream-pipe-await-drain-manual-r...
2
Text
Text
add docs on testing
c5c9b3c1907b8213e137c343ab6f5934a52f5491
<ide><path>docs/NativeModulesIOS.md <ide> title: Native Modules (iOS) <ide> layout: docs <ide> category: Guides <ide> permalink: docs/nativemodulesios.html <del>next: activityindicatorios <add>next: testing <ide> --- <ide> <ide> Sometimes an app needs access to platform API, and React Native doesn't have a correspondi...
2
Text
Text
add simple docs on statics to reference section
31bc18d39e1c194fcd451e48964c9813b9993d27
<ide><path>docs/docs/ref-03-component-specs.md <ide> The `mixins` array allows you to use mixins to share behavior among multiple com <ide> <!-- TODO: Document mixins here directly. --> <ide> <ide> <add>### statics <add> <add>```javascript <add>object statics <add>``` <add> <add>The `statics` object allows you to def...
1
Python
Python
fix conditional convs by adding relu
65407126c5adc216d606d360429fe12ed3c3f187
<ide><path>research/object_detection/meta_architectures/deepmac_meta_arch.py <ide> def per_pixel_conditional_conv(input_tensor, parameters, channels, depth): <ide> output = input_tensor <ide> for i in range(depth): <ide> <del> if i == (depth - 1): <add> is_last_layer = i == (depth - 1) <add> if is_last_la...
2
Python
Python
add files via upload
1568432e82cfc69c7c02b334e0bcc89542d79881
<ide><path>Project Euler/Problem 01/sol4.py <add>def mulitples(limit): <add> xmulti = [] <add> zmulti = [] <add> z = 3 <add> x = 5 <add> temp = 1 <add> while True: <add> result = z * temp <add> if (result < limit): <add> zmulti.append(result) <add> temp += 1 <add> ...
1
PHP
PHP
add tests for previous commit
fde081f105664d435d39bafb031a1f10e4c593e1
<ide><path>tests/TestCase/ORM/AssociationTest.php <ide> public function testProperty() <ide> $this->assertEquals('thing', $this->association->property()); <ide> } <ide> <add> /** <add> * Test that warning is shown if property name clashes with table field. <add> * <add> * @return void <add> ...
1
Text
Text
use the gitlab link as project moved to gitlab
5f939b6475c4eabbd758298d77aded9e568c85fa
<ide><path>docs/introduction/Ecosystem.md <ide> Redux bindings for custom elements <ide> <ide> #### Reducer Combination <ide> <del>**[ryo33/combineSectionReducers](https://github.com/ryo33/combine-section-reducers)** <add>**[ryo33/combineSectionReducers](https://gitlab.com/ryo33/combine-section-reducers)** <ide> ...
1
PHP
PHP
simplify the code for sanitize class
44f8f84cd7e334535fda8edb725ad10b6e8f9bac
<ide><path>lib/Cake/Utility/Sanitize.php <ide> public static function paranoid($string, $allowed = array()) { <ide> } <ide> } <ide> <del> if (is_array($string)) { <del> $cleaned = array(); <del> foreach ($string as $key => $clean) { <del> $cleaned[$key] = preg_replace("/[^{$allow}a-zA-Z0-9]/", '', $clean)...
1
Javascript
Javascript
add new reactperf
67b1dbf75f3960c5aabf905876eddd5b1260c541
<ide><path>grunt/tasks/npm-react-addons.js <ide> var addons = { <ide> docs: 'two-way-binding-helpers', <ide> }, <ide> Perf: { <del> module: 'ReactDefaultPerf', <add> module: 'ReactPerfAnalysis', <ide> name: 'perf', <ide> docs: 'perf', <ide> }, <ide><path>src/addons/ReactWithAddons.js <ide> React...
12
Text
Text
remove old doc files
d5af01b2c76e144c6c7a7830903a67709cb17763
<ide><path>docs/01-Line-Chart.md <del>--- <del>title: Line Chart <del>anchor: line-chart <del>--- <del>###Introduction <del>A line chart is a way of plotting data points on a line. <del> <del>Often, it is used to show trend data, and the comparison of two data sets. <del> <del><div class="canvas-holder"> <del> <canvas ...
6
PHP
PHP
relax interface requirements
218ba6b811441313aa5122ee793fc6b854d735e9
<ide><path>src/Controller/ControllerFactory.php <ide> namespace Cake\Controller; <ide> <ide> use Cake\Core\App; <del>use Cake\Core\ContainerInterface; <ide> use Cake\Http\ControllerFactoryInterface; <ide> use Cake\Http\Exception\MissingControllerException; <ide> use Cake\Http\ServerRequest; <ide> use Cake\Utility\Infl...
1
Go
Go
prefix errors with their source
03211ecce07ab64f5263232e1aa3c6248530c5b4
<ide><path>pkg/libcontainer/nsinit/nsinit/main.go <ide> func main() { <ide> } <ide> container, err := loadContainer() <ide> if err != nil { <del> log.Fatal(err) <add> log.Fatalf("Unable to load container: %s", err) <ide> } <ide> ns, err := newNsInit() <ide> if err != nil { <del> log.Fatal(err) <add> log.Fatal...
1
Go
Go
move middleware to interfaces
8d3467626ee26cad48ad84f2181552dce7afccb6
<ide><path>api/server/middleware.go <ide> package server <ide> <ide> import ( <ide> "github.com/Sirupsen/logrus" <del> "github.com/docker/docker/api" <ide> "github.com/docker/docker/api/server/httputils" <ide> "github.com/docker/docker/api/server/middleware" <del> "github.com/docker/docker/pkg/authorization" <ide> ...
12
PHP
PHP
add boolean validation option
95aaa4de97bdddd4156b06afdad0a66196086565
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function validateAccepted($attribute, $value) <ide> return ($this->validateRequired($attribute, $value) && in_array($value, $acceptable, true)); <ide> } <ide> <add> /** <add> * Validate that an attribute is a boolean. <add> * <add> * ...
2
Ruby
Ruby
add sprockets md5s to asset tags
628c31b353706877322e7613702d1bd4a59e3514
<ide><path>actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb <ide> def javascript_path(source) <ide> # <ide> # javascript_include_tag :all, :cache => true, :recursive => true <ide> def javascript_include_tag(*sources) <add> if config.perform_caching <add> ...
2
Python
Python
use resolvematch.view_name so namespaces work
5bded1ecf03936621806991bf7f68434dd44c4ac
<ide><path>rest_framework/relations.py <ide> def from_native(self, value): <ide> except: <ide> raise ValidationError(self.error_messages['no_match']) <ide> <del> if match.url_name != self.view_name: <add> if match.view_name != self.view_name: <ide> raise ValidationError(se...
1
Javascript
Javascript
simplify the `getfilenamefromurl` helper function
f3e0f866412ac7c4d04afef9cadd9b6433e32602
<ide><path>src/display/display_utils.js <ide> function isPdfFile(filename) { <ide> * @returns {string} <ide> */ <ide> function getFilenameFromUrl(url, onlyStripPath = false) { <del> let end = url.length; <ide> if (!onlyStripPath) { <del> const anchor = url.indexOf("#"); <del> const query = url.indexOf("?"); ...
1
Text
Text
improve the starting sentence
c1a661479ef75dac5afa2414413e1538ca72a19d
<ide><path>guides/source/action_view_overview.md <ide> You can read more about the Rails Internationalization (I18n) API [here](i18n.ht <ide> Using Action View outside of Rails <ide> ---------------------------------- <ide> <del>Action View works well with Active Record, but it can also be used with other Ruby tools. ...
1
Ruby
Ruby
fix rubocop warnings
fe661a809c8ec497c8096ec062908ddcb2c84a03
<ide><path>Library/Homebrew/extend/ENV/shared.rb <ide> module SharedEnvExtension <ide> include CompilerConstants <ide> <ide> # @private <del> CC_FLAG_VARS = %w[CFLAGS CXXFLAGS OBJCFLAGS OBJCXXFLAGS] <add> CC_FLAG_VARS = %w[CFLAGS CXXFLAGS OBJCFLAGS OBJCXXFLAGS].freeze <ide> # @private <del> FC_FLAG_VARS = %w[...
1
Javascript
Javascript
allow jest globals in __mocks__ directories
e78c01375aef88e0bb4029479acac9e85ecaf080
<ide><path>packages/eslint-config-react-native-community/index.js <ide> module.exports = { <ide> }, <ide> }, <ide> { <del> files: ['*.{spec,test}.{js,ts,tsx}', '**/__tests__/**/*.{js,ts,tsx}'], <add> files: [ <add> '*.{spec,test}.{js,ts,tsx}', <add> '**/__{mocks,tests}__/**/*.{js,t...
1
Python
Python
fix typo in docstrings [ci skip]
f5d3afb1a3a54201583a08ed201b28c21b5ac3d5
<ide><path>spacy/pipeline/entityruler.py <ide> def to_disk(self, path, **kwargs): <ide> <ide> path (unicode / Path): The JSONL file to save. <ide> **kwargs: Other config paramters, mostly for consistency. <del> RETURNS (EntityRuler): The loaded entity ruler. <ide> <ide> DOCS: https://sp...
1
Java
Java
remove pojo from tests that shouldn't depend on it
22a6ca1f412856f8a83494f83fee2c7ca3e48a9e
<ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/config/WebReactiveConfigurationTests.java <ide> import java.util.List; <ide> import java.util.concurrent.CompletableFuture; <ide> <add>import javax.xml.bind.annotation.XmlRootElement; <add> <ide> import org.junit.Before; <ide> import org.jun...
3
Python
Python
move generic views into seperate module
b79833ecddcea788b4a8d8901bd25f0afe83bbf7
<ide><path>djangorestframework/generics.py <add>""" <add>Generic views that provide commmonly needed behaviour. <add>""" <add> <add>from djangorestframework import views, mixins <add>from django.views.generic.detail import SingleObjectMixin <add>from django.views.generic.list import MultipleObjectMixin <add> <add> <add...
2
Ruby
Ruby
convert naked test to spec
59668d27108c34499ae8d00dd9354dc57a112de0
<add><path>Library/Homebrew/cask/spec/cask/container/naked_spec.rb <del><path>Library/Homebrew/cask/test/cask/container/naked_test.rb <del>require "test_helper" <add>require "spec_helper" <ide> <ide> describe Hbc::Container::Naked do <ide> it "saves files with spaces in them from uris with encoded spaces" do <ide> ...
1
Javascript
Javascript
handle sparse arrays in deepstrictequal
4381100371b6377f2d51d55deeb300a9bc1f39da
<ide><path>lib/assert.js <ide> function strictDeepEqual(actual, expected) { <ide> if (Object.getPrototypeOf(actual) !== Object.getPrototypeOf(expected)) { <ide> return false; <ide> } <del> if (isObjectOrArrayTag(actualTag)) { <add> if (actualTag === '[object Array]') { <add> // Check for sparse arrays and ...
2
Ruby
Ruby
fetch all resources with livecheck block
8ef6118ba06a5ae45b11681829cd925e424f92a8
<ide><path>Library/Homebrew/dev-cmd/livecheck.rb <ide> def livecheck <ide> resources = Formula.all do |formula| <ide> formula.resources.any do |resource| <ide> if resource.livecheckable? <del> p resource <add> resource <ide> end <ide> end <add> # fo...
1
Java
Java
fix typo in javadoc
010b7375fc99f2bc9adf1cc0d21c8a62d5139d07
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/handler/MatchableHandlerMapping.java <ide> /* <del> * Copyright 2002-2020 the original author or authors. <add> * Copyright 2002-2021 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <...
1
Go
Go
add verification of image manifest digests
9ececa14ba860c9934d3cd8d3e704e53e828e22b
<ide><path>graph/manifest.go <ide> import ( <ide> "fmt" <ide> <ide> log "github.com/Sirupsen/logrus" <add> "github.com/docker/distribution/digest" <ide> "github.com/docker/docker/engine" <ide> "github.com/docker/docker/registry" <add> "github.com/docker/docker/utils" <ide> "github.com/docker/libtrust" <ide> ) <id...
4
Text
Text
update colours + example values in docs
527e7d9b7a5fe198e9cf096890bc30fb6a4bdafc
<ide><path>docs/02-Line-Chart.md <ide> var data = { <ide> label: "My First dataset", <ide> <ide> // Boolean - if true fill the area under the line <del> fill: false, <del> <del> // Tension - bezier curve tension of the line. Set to 0 to draw straight lines connecting points <del> // Used to be called "tens...
5
Python
Python
remove unused import
b81b040110d18d6aa3633c1132420bf29be00c6b
<ide><path>examples/persona/persona.py <del>from flask import Flask, render_template, session, request, json, abort, g <add>from flask import Flask, render_template, session, request, abort, g <ide> <ide> import requests <ide>
1
Javascript
Javascript
use hooks in test cases
e58e1f9261fd26873573db10d066fa43d45ed956
<ide><path>test/Compiler-caching.test.js <ide> describe("Compiler (caching)", function() { <ide> callback(); <ide> } <ide> }; <del> c.plugin("compilation", (compilation) => compilation.bail = true); <add> c.hooks.compilation.tap("CompilerCachingTest", (compilation) => compilation.bail = true); <ide> <ide> ...
12
Python
Python
add border_mode = same to convolution1d
b057624707be574d78a741516be2f98c03f3e193
<ide><path>keras/layers/convolutional.py <ide> def __init__(self, input_dim, nb_filter, filter_length, <ide> W_regularizer=None, b_regularizer=None, activity_regularizer=None, <ide> W_constraint=None, b_constraint=None): <ide> <del> if border_mode not in {'valid', 'full'}: <add...
1
Text
Text
improve checkserveridentity docs
da429c3d20ee31873eb9d76b8142f68fb3514408
<ide><path>doc/api/tls.md <ide> changes: <ide> * `servername`: {string} Server name for the SNI (Server Name Indication) TLS <ide> extension. <ide> * `checkServerIdentity(servername, cert)` {Function} A callback function <del> to be used when checking the server's hostname against the certificate. <del> T...
1
Javascript
Javascript
use module.exports consistently
25d29da10adfa00cb10e7ff89535749453add775
<ide><path>test/common/shared-lib-util.js <ide> const common = require('../common'); <ide> const path = require('path'); <ide> <add>const kNodeShared = Boolean(process.config.variables.node_shared); <add>const kShlibSuffix = process.config.variables.shlib_suffix; <add>const kExecPath = path.dirname(process.execPath); ...
2
Python
Python
add library of matrix functions
5ee14815b3520074e73b2b2836a8a11de0cc9fc2
<ide><path>numpy/core/defmatrix.py <ide> <del>__all__ = ['matrix', 'bmat', 'mat', 'asmatrix', 'asmat'] <add>__all__ = ['matrix', 'bmat', 'mat', 'asmatrix'] <ide> <ide> import numeric as N <ide> from numeric import concatenate, isscalar, binary_repr <ide> def bmat(obj, ldict=None, gdict=None): <ide> if isinstance(...
2
Text
Text
add security.md file, linking to security policy
b37a2d53e161f4b139b7d98d31ee83ee98647648
<ide><path>.github/security.md <add># Security Policy <add> <add>## Reporting a Vulnerability <add> <add>**Do not open up a GitHub issue if the bug is a security vulnerability in Rails**. <add>Instead refer to our [security policy](https://rubyonrails.org/security/). <add> <add>## Supported Versions <add> <add>Security...
1
Text
Text
add free cdn for version 5.4
3a6ec39739df31f6f07b158e871244d4ee48f3cb
<ide><path>guide/english/bootstrap/fontawesome-icons/index.md <ide> Complete list of icons provided by Font Awesome is available [here](http://fonta <ide> _Note: Do not include the dot in the HTML Class Attribute, referring to the classes with a dot is only used when adjusting the classes in CSS._ <ide> <ide> <add>##...
1
Ruby
Ruby
allow empty arrays in where predicates
f2135aceeb679a14f017cd677eeaf67b84a76582
<ide><path>activerecord/lib/active_record/relation/predicate_builder/array_handler.rb <ide> module ActiveRecord <ide> class PredicateBuilder <ide> class ArrayHandler # :nodoc: <ide> def call(attribute, value) <add> return attribute.in([]) if value.empty? <add> <ide> values = value.map { |x| x...
1
Ruby
Ruby
remove unused methods in connection handling
1bbaf0d581e5b48653af9b614da7d30e64d48fa8
<ide><path>activerecord/lib/active_record/connection_handling.rb <ide> def establish_connection(config_or_env = nil) <ide> # Connects a model to the databases specified. The +database+ keyword <ide> # takes a hash consisting of a +role+ and a +database_key+. <ide> # <del> # This will create a connection ...
1
PHP
PHP
consolidate path display
0cd21effd087eca7abd6b0d2339e634a24d8e32e
<ide><path>src/Command/HelpCommand.php <ide> public function execute(Arguments $args, ConsoleIo $io) <ide> { <ide> if (!$args->getOption('xml')) { <ide> $io->out('<info>Current Paths:</info>', 2); <del> $io->out('* app: ' . APP_DIR); <del> $io->out('* root: ' . rtrim(ROOT,...
2
PHP
PHP
add resource helper
2c31fd5954699613cba04eacedd2a942e28b8abf
<ide><path>src/Illuminate/Foundation/helpers.php <ide> function get($uri, $action) <ide> } <ide> } <ide> <add>if ( ! function_exists('resource')) <add>{ <add> /** <add> * Route a resource to a controller. <add> * <add> * @param string $name <add> * @param string $controller <add> * @param array $options <...
1
Text
Text
fix small typo in rails guides [ci skip]
804b4092e8f88ced525394a39849168d0285f7d4
<ide><path>guides/source/active_record_querying.md <ide> After reading this guide, you will know: <ide> * How to specify the order, retrieved attributes, grouping, and other properties of the found records. <ide> * How to use eager loading to reduce the number of database queries needed for data retrieval. <ide> * How ...
3
Text
Text
fix typo in tls.md
95c8503d8866187a003aba01187877ad8ebd38df
<ide><path>doc/api/tls.md <ide> changes: <ide> <ide> * `socket` {net.Socket} An instance of [`net.Socket`][] <ide> * `options` {Object} <del> * `isServer`: The SSL/TLS protocol is asymetrical, TLSSockets must know if <add> * `isServer`: The SSL/TLS protocol is asymmetrical, TLSSockets must know if <ide> they are...
1
Go
Go
remove increment flag on imagecontexts.new()
aafd7fa96909f48e43fd1b785c3c3a1f8b656ede
<ide><path>builder/dockerfile/dispatchers.go <ide> func from(b *Builder, args []string, attributes map[string]bool, original string <ide> return err <ide> } <ide> b.resetImageCache() <del> if _, err := b.imageContexts.new(ctxName, true); err != nil { <add> if _, err := b.imageContexts.add(ctxName); err != nil { <id...
2
Ruby
Ruby
exclude repository from brew list --unbrewed
5a140c0f45c96056e7a2de99f58029ea6ad38e27
<ide><path>Library/Homebrew/cmd/list.rb <ide> def list_unbrewed <ide> cache_folder = (HOMEBREW_CACHE.relative_path_from(HOMEBREW_PREFIX)).to_s <ide> dirs -= [cache_folder] <ide> <add> # Exclude the repository, if it has been located under the prefix <add> cache_folder = (HOMEBREW_REPOSITORY.relative_path...
1
Javascript
Javascript
use streams-lib as polyfill
01b47d9012b15c857f423dcbf2f7238f341c1985
<ide><path>gulpfile.js <ide> gulp.task('lib', ['buildnumber'], function () { <ide> var buildLib = merge([ <ide> gulp.src([ <ide> 'src/{core,display}/*.js', <del> 'src/shared/{compatibility,util}.js', <add> 'src/shared/{compatibility,util,streams_polyfill}.js', <ide> 'src/{pdf,pdf.worker}.js'...
3
Javascript
Javascript
remove unnecessary line
3ce4adf3c6bd73fcd8de93a5bbaf8bdb321d43af
<ide><path>test/common.js <ide> exports.ddCommand = function(filename, kilobytes) { <ide> if (process.platform == 'win32') { <ide> return 'fsutil.exe file createnew "' + filename + '" ' + (kilobytes * 1024); <ide> } else { <del> var blocks = Integer(size / 1024); <ide> return 'dd if=/dev/zero of="' + fil...
1
PHP
PHP
fix typo in property name
1e603954048b8a7241961488528bf5b8c01d4eb2
<ide><path>src/View/Helper/FormHelper.php <ide> class FormHelper extends Helper { <ide> * <ide> * @var array <ide> */ <del> protected $_defaultWigets = [ <add> protected $_defaultWidgets = [ <ide> 'button' => ['Cake\View\Widget\ButtonWidget'], <ide> 'checkbox' => ['Cake\View\Widget\CheckboxWidget'], <ide> 'fil...
1
Python
Python
move parser tests to correct directory
959e23426088661e12f5c8c3fafc64da42d1fc24
<ide><path>tests/test_parsers.py <del>#-*- coding: utf-8 -*- <add># -*- coding: utf-8 -*- <ide> <ide> from __future__ import unicode_literals <ide> from rest_framework.compat import StringIO <ide> def test_get_encoded_filename(self): <ide> <ide> def __replace_content_disposition(self, disposition): <ide> ...
1
Text
Text
add fastutil lists for lists of primitives
080c0ae12b1e6e396a96ed4845dd005ce7906ce6
<ide><path>guide/english/java/arraylist/index.md <ide> Always import the most specific package in order to save memory size and perform <ide> <ide> `ArrayList` is a class that is used to create dynamic arrays. It is slower than regular arrays but allows for a lot of manipulation. It should be initialized to have a s...
1
Go
Go
add variant to image.image and legacy builder
c21a3cf432bd89f9ceb5724b8a90f30f789433a5
<ide><path>api/types/types.go <ide> type ImageInspect struct { <ide> Author string <ide> Config *container.Config <ide> Architecture string <add> Variant string `json:",omitempty"` <ide> Os string <ide> OsVersion string `json:",omitempty"` <ide> Size int6...
9
Text
Text
fix spelling error
cd36e8c9d40c70d075c725da9befd94f5e5d5a7e
<ide><path>docs/api-reference/next/image.md <ide> module.exports = { <ide> <ide> You can specify a list of image widths using the `images.imageSizes` property in your `next.config.js` file. These widths are concatenated with the array of [device sizes](#device-sizes) to form the full array of sizes used to generate im...
1
Javascript
Javascript
fix monthparse functions for en family
e78353d268f427a4630b045950fb7451e9106b0f
<ide><path>src/lib/locale/en.js <ide> import './prototype'; <ide> import { getSetGlobalLocale } from './locales'; <ide> import toInt from '../utils/to-int'; <ide> <del>var monthsParse = [/^Jan/i, /^Feb/i, /^Mar/i, /^Apr/i, /^May/i, /^Jun/i, /^Jul/i, /^Aug/i, /^Sep/i, /^Oct/i, /^Nov/i, /^Dec/i]; <del> <ide> getSetGloba...
6
Go
Go
fix the panic caused by resizing a starting exec
ba5e0980527d3477cb85925e07eecb28dfe50e08
<ide><path>daemon/container.go <ide> func (container *Container) Exec(execConfig *execConfig) error { <ide> container.Lock() <ide> defer container.Unlock() <ide> <del> waitStart := make(chan struct{}) <del> <ide> callback := func(processConfig *execdriver.ProcessConfig, pid int) { <ide> if processConfig.Tty { <id...
4
Text
Text
move package.import content higher
8d8e06a345043bec787e904edc9a2f5c5e9c275f
<ide><path>doc/api/packages.md <ide> import submodule from 'es-module-package/private-module.js'; <ide> // Throws ERR_PACKAGE_PATH_NOT_EXPORTED <ide> ``` <ide> <del>### Subpath export patterns <add>### Subpath imports <ide> <ide> > Stability: 1 - Experimental <ide> <del>For packages with a small number of exports, w...
1
Ruby
Ruby
remove unneeded back-references
e3646c9b4e9dea9204f3c8a3bb472638546c4534
<ide><path>Library/Homebrew/extend/ENV/shared.rb <ide> def fcflags <ide> # end</pre> <ide> def compiler <ide> @compiler ||= if (cc = @cc) <del> warn_about_non_apple_gcc($&) if cc =~ GNU_GCC_REGEXP <add> warn_about_non_apple_gcc(cc) if cc.match?(GNU_GCC_REGEXP) <add> <ide> fetch_compiler(cc, "--c...
3
Ruby
Ruby
reduce calls to stringify_keys
47e06c988e8377d04a6a6e28e798b06187326d87
<ide><path>activerecord/lib/active_record/relation/predicate_builder.rb <ide> def initialize(table) <ide> end <ide> <ide> def build_from_hash(attributes) <del> attributes = convert_dot_notation_to_hash(attributes.stringify_keys) <add> attributes = convert_dot_notation_to_hash(attributes) <ide> ...
3
Javascript
Javascript
fix formatting and clarify
12ae60052f2850d8e325d1090e3b06c6620cdd36
<ide><path>src/ng/directive/booleanAttrs.js <ide> * @restrict A <ide> * <ide> * @description <del> * Using Angular markup like {{hash}} in an href attribute makes <del> * the page open to a wrong URL, if the user clicks that link before <del> * angular has a chance to replace the {{hash}} with actual URL, the <del> ...
1
Text
Text
add new line for numbers 1., 2., and 3.
7b56a52b58267ede76c26e6ab104396211c237c2
<ide><path>guide/english/react/installation/index.md <ide> to create an optimized build of your app in the `build`folder. <ide> <ide> #### Sources <ide> [1. The React tutorial on installing](https://reactjs.org/docs/installation.html) <add> <ide> [2. Link to the React minimal JavaScript library on cdnjs.org](https://c...
1
Javascript
Javascript
fix a bug in transitions (`tx` is undefined)
7048af6b028528017cf4a140c9e6965897e2ac91
<ide><path>d3.js <del>(function(){d3 = {version: "0.28.9"}; // semver <add>(function(){d3 = {version: "0.28.10"}; // semver <ide> if (!Date.now) Date.now = function() { <ide> return +new Date(); <ide> }; <ide> function d3_transition(groups) { <ide> // 1 - In progress. <ide> // 2 - Ended. <ide> if (s...
4
Javascript
Javascript
add option to only see failed tests
6733ee135867b65c4f7569ab6d09baf642df0be3
<ide><path>packages/rn-tester/js/examples/Experimental/PlatformTest/RNTesterPlatformTestResultView.js <ide> import * as React from 'react'; <ide> import {useMemo, useState, useCallback} from 'react'; <ide> import { <ide> Button, <add> Switch, <ide> View, <ide> Text, <ide> StyleSheet, <ide> const DISPLAY_STATUS...
1
Javascript
Javascript
remove thunk middleware from the core
0b5207f4a423ab1d7cc83d0533de10904c100a8a
<ide><path>examples/counter/containers/App.js <ide> import { createStore, applyMiddleware } from 'redux'; <ide> import { Provider } from 'react-redux'; <ide> import * as reducers from '../reducers'; <ide> <del>const createStoreWithMiddleware = applyMiddleware()(createStore); <add>// TODO: move into a separate project ...
4
Go
Go
add required capabilities
fcf2e9a9107c6c9aebaf63ce044f636333e7eed8
<ide><path>daemon/execdriver/native/template/default_template.go <ide> func New() *libcontainer.Container { <ide> "NET_RAW", <ide> "SETGID", <ide> "SETUID", <add> "SETFCAP", <add> "SETPCAP", <add> "NET_BIND_SERVICE", <ide> }, <ide> Namespaces: map[string]bool{ <ide> "NEWNS": true,
1
Python
Python
add test of sign ufunc removed from test_ufunclike
73651a6ceba09729ee7a28558187ffa7e295dc22
<ide><path>numpy/core/tests/test_umath.py <ide> import numpy.core.umath as ncu <ide> import numpy as np <ide> <add> <ide> class TestDivision(TestCase): <ide> def test_division_int(self): <ide> # int division should follow Python <ide> def test_floor_division_complex(self): <ide> y = np.floor_divide...
1
Python
Python
fix unk_token test
ac27548b25ffef5966bd11c90419230cbeafe06e
<ide><path>pytorch_transformers/tokenization_gpt2.py <ide> class GPT2Tokenizer(PreTrainedTokenizer): <ide> <ide> def __init__(self, vocab_file, merges_file, errors='replace', unk_token="<|endoftext|>", <ide> bos_token="<|endoftext|>", eos_token="<|endoftext|>", **kwargs): <del> super(GPT2To...
1
Python
Python
replace logger.warn by logger.warning
773314ab8070db69cdd07d615108b83259e7415d
<ide><path>src/transformers/commands/pt_to_tf.py <ide> def run(self): <ide> if architectures is None: # No architecture defined -- use auto classes <ide> pt_class = getattr(import_module("transformers"), "AutoModel") <ide> tf_class = getattr(import_module("transformers"), "TFAutoModel")...
2
Text
Text
fix a space
1f80d93d1b7921e35c8cfefcf7f6fbc1bb907a44
<ide><path>share/doc/homebrew/Acceptable-Formulae.md <ide> point it to the downloaded archive in order to avoid loading. <ide> ### We don’t like binary formulae <ide> Our policy is that formulae in the core repository <ide> ([Homebrew/homebrew](https://github.com/Homebrew/homebrew)) must be built <del>from source (or p...
1