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 |
|---|---|---|---|---|---|
Ruby | Ruby | add mediatype comment | 725f2828b4ec27e43c4cc0086cc8b2894c91f7d2 | <ide><path>Library/Homebrew/github_packages.rb
<ide> def write_image_config(platform_hash, tar_sha256, blobs)
<ide>
<ide> def write_image_index(manifests, blobs, annotations)
<ide> image_index = {
<add> # Currently needed for correct multi-arch display in GitHub Packages UI
<ide> mediaType: "appli... | 1 |
Java | Java | fix checkstyle violation | ffbecf1427019c3d407342df2fa5dc949da35d15 | <ide><path>spring-tx/src/main/java/org/springframework/transaction/reactive/TransactionalOperatorImpl.java
<ide> public ReactiveTransactionManager getTransactionManager() {
<ide> public <T> Flux<T> execute(TransactionCallback<T> action) throws TransactionException {
<ide> return TransactionContextManager.currentCont... | 1 |
Javascript | Javascript | remove requestanimationframe support. fixes | 2053d1c621e8ef65b79d6b339d7336c732ed1b82 | <ide><path>src/effects.js
<ide> var elemdisplay = {},
<ide> // opacity animations
<ide> [ "opacity" ]
<ide> ],
<del> fxNow,
<del> requestAnimationFrame = window.webkitRequestAnimationFrame ||
<del> window.mozRequestAnimationFrame ||
<del> window.oRequestAnimationFrame;
<add> fxNow;
<ide>
<ide> jQuery.fn.extend(... | 1 |
Javascript | Javascript | rename the new reactperfanalysis to reactperf | 411fc9ca7d9c2660f4755bf54ad5c9ec316b56d2 | <ide><path>grunt/tasks/npm-react-addons.js
<ide> var addons = {
<ide> docs: 'two-way-binding-helpers',
<ide> },
<ide> Perf: {
<del> module: 'ReactPerfAnalysis',
<add> module: 'ReactPerf',
<ide> name: 'perf',
<ide> docs: 'perf',
<ide> },
<ide><path>src/addons/ReactWithAddons.js
<ide> React.addons... | 3 |
Ruby | Ruby | decouple detect_stdlibs from env | e40b73521709189c7d95169ff88939179d45d665 | <ide><path>Library/Homebrew/build.rb
<ide> def install
<ide>
<ide> formula.install
<ide>
<del> stdlibs = detect_stdlibs
<add> stdlibs = detect_stdlibs(ENV.compiler)
<ide> Tab.create(formula, ENV.compiler, stdlibs.first, formula.build).write
<ide>
<ide> # Find and link metafiles
... | 1 |
Text | Text | fix mergefail in changelog | 27bcec28bfb7272aa2cbe107c10bdafd5ebc32c9 | <ide><path>activerecord/CHANGELOG.md
<ide> * Deprecated use of string argument as a configuration lookup in
<ide> `ActiveRecord::Base.establish_connection`. Instead, a symbol must be given.
<ide>
<del>* Deprecated use of string argument as a configuration lookup in `ActiveRecord::Base.establish_connection`. In... | 1 |
PHP | PHP | reduce complexity in timeagoinwords | 14bfd83dad2d060f67b52eeb9b553cda9add2dca | <ide><path>lib/Cake/Utility/CakeTime.php
<ide> public static function toRSS($dateString, $timezone = null) {
<ide> /**
<ide> * Returns either a relative date or a formatted date depending
<ide> * on the difference between the current time and given datetime.
<del> * $datetime should be in a <i>strtotime</i> - parsabl... | 1 |
Java | Java | use correct log level | e9dc5160b989a2b2df29cfc8bc2a48830c9d8a97 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/messaging/SubProtocolWebSocketHandler.java
<ide> public void handleMessage(Message<?> message) throws MessagingException {
<ide> logger.debug("Terminating '" + session + "'", ex);
<ide> }
<ide> else if (logger.isWarnEnabled()) {
<del>... | 1 |
Ruby | Ruby | remove incomplete filter runs all tests in plugins | be3d4c6ef65b3cda3242c19fd756ef3869f2deaf | <ide><path>railties/test/generators/plugin_test_runner_test.rb
<ide> def test_multiple_line_filters
<ide> end
<ide> end
<ide>
<del> def test_line_filter_without_line_runs_all_tests
<del> create_test_file 'account'
<del>
<del> run_test_command('test/account_test.rb:').tap do |output|
<del> assert_matc... | 1 |
Go | Go | add imagename to logevent tests | 7f9ba14b18e171589a82e8dd3bd084ece3405f83 | <ide><path>api_test.go
<ide> func TestGetEvents(t *testing.T) {
<ide> listeners: make(map[string]chan utils.JSONMessage),
<ide> }
<ide>
<del> srv.LogEvent("fakeaction", "fakeid")
<del> srv.LogEvent("fakeaction2", "fakeid")
<add> srv.LogEvent("fakeaction", "fakeid", "fakeimage")
<add> srv.LogEvent("fakeaction2", "fa... | 2 |
Go | Go | use proper scheme with static registry | 44d54ba0c299540efbfa173bf484d541e857f4ac | <ide><path>registry/registry.go
<ide> import (
<ide> "encoding/json"
<ide> "errors"
<ide> "fmt"
<del> "github.com/dotcloud/docker/utils"
<ide> "io"
<ide> "io/ioutil"
<ide> "net"
<ide> import (
<ide> "strconv"
<ide> "strings"
<ide> "time"
<add>
<add> "github.com/dotcloud/docker/utils"
<ide> )
<ide>
<ide> var (... | 1 |
Go | Go | remove prefix dots from inspects in tests | 67058e388b596392f7aceb7ecd6b38f6f2ff2de1 | <ide><path>integration-cli/docker_cli_by_digest_test.go
<ide> func (s *DockerRegistrySuite) TestDeleteImageByIDOnlyPulledByDigest(c *check.C)
<ide> }
<ide> // just in case...
<ide>
<del> imageID, err := inspectField(imageReference, ".Id")
<add> imageID, err := inspectField(imageReference, "Id")
<ide> if err != nil ... | 2 |
Go | Go | add hostconfig check for memoryswappiness | 19c7b65ea600ab77679c9506d762201264dd9a2a | <ide><path>daemon/daemon_unix.go
<ide> func (daemon *Daemon) verifyContainerSettings(hostConfig *runconfig.HostConfig,
<ide> if hostConfig.Memory == 0 && hostConfig.MemorySwap > 0 {
<ide> return warnings, fmt.Errorf("You should always set the Memory limit when using Memoryswap limit, see usage.")
<ide> }
<add> if h... | 1 |
Ruby | Ruby | add all_top_level_directories constant | 842d6ce8bdc2296869c41c5866bbf5f046ac6eb8 | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_access_homebrew_repository
<ide> def check_access_prefix_directories
<ide> not_writable_dirs = []
<ide>
<del> extra_dirs = ["lib/pkgconfig", "share/locale", "share/man", "opt"]
<del> (Keg::TOP_LEVEL_DIRECTORIES + extra_dirs).each do ... | 2 |
Javascript | Javascript | fix a bug in tick guestimation | 3e8e4e30eb871e4399b0a0e35aad1f3991a95dff | <ide><path>d3.time.js
<ide> var d3_time_scaleSteps = [
<ide> 864e5, // 1-day
<ide> 1728e5, // 2-day
<ide> 6048e5, // 1-week
<del> 1728e6, // 1-month
<add> 2592e6, // 1-month
<ide> 7776e6, // 3-month
<ide> 31536e6 // 1-year
<ide> ];
<ide><path>d3.time.min.js
<del>(function(){function b(a,b,c,d){var e,f,g=0,... | 3 |
Text | Text | add firedfox to collaborators | 54785f59e16179dc66f00f97e13dce40661447bd | <ide><path>README.md
<ide> information about the governance of the Node.js project, see
<ide> * [domenic](https://github.com/domenic) - **Domenic Denicola** <d@domenic.me>
<ide> * [eljefedelrodeodeljefe](https://github.com/eljefedelrodeodeljefe) - **Robert Jefe Lindstaedt** <robert.lindstaedt@gmail.com>
<id... | 1 |
Python | Python | fix issue #265 | 089cbca7ae0067effcc34f26655b99fdb2063306 | <ide><path>glances/glances.py
<ide> def displayHelp(self, core):
<ide>
<ide> # display the limits table
<ide> limits_table_x = self.help_x
<del> limits_table_y = self.help_y + 2
<add> limits_table_y = self.help_y + 1
<ide> self.term_window.addnstr(limits_table_... | 1 |
Javascript | Javascript | fix a bug of ci (prettier) bug | 80f8d6ea0977f4a8d1774d73d0ebc1426bb631fb | <ide><path>src/menu-helpers.js
<ide> function findMatchingItemIndex(menu, { type, id, submenu }) {
<ide> for (let index = 0; index < menu.length; index++) {
<ide> const item = menu[index];
<ide> if (
<del> item.id === id &&
<del> (item.submenu != null) === (submenu != null)
<add> item.id === id... | 1 |
Python | Python | fix unexpected bug in exiting hook context manager | 9c644194ed6bc6a3a065b72ea7cf89c02d1c5275 | <ide><path>airflow/providers/microsoft/psrp/hooks/psrp.py
<ide> def __enter__(self):
<ide>
<ide> def __exit__(self, exc_type, exc_value, traceback):
<ide> try:
<del> self._client.__exit__()
<add> self._client.__exit__(exc_type, exc_value, traceback)
<ide> finally:
<ide> ... | 2 |
Go | Go | add legacy support | a926cd4d880904258e01ea521ecd9e1b908f2b97 | <ide><path>server.go
<ide> func (srv *Server) ContainerAttach(name string, logs, stream, stdin, stdout, std
<ide> //logs
<ide> if logs {
<ide> cLog, err := container.ReadLog("json")
<del> if err != nil {
<del> utils.Debugf("Error reading logs (json): %s", err)
<del> }
<del> dec := json.NewDecoder(cLog)
<del> ... | 1 |
Python | Python | fix test_void_dtype_equality_failures for python 3 | df148e1b6327ca699b8b56f51f34dc871551da8b | <ide><path>numpy/core/tests/test_deprecations.py
<ide> def assert_deprecated(self, function, num=1, ignore_others=False,
<ide> function(*args, **kwargs)
<ide> except (Exception if function_fails else tuple()):
<ide> pass
<add>
<ide> # just in case, clear the registry
<ide> ... | 1 |
PHP | PHP | support all enumerables in proxy | 0c86fd2d155e431b5055046eced247a9037b9099 | <ide><path>src/Illuminate/Support/HigherOrderCollectionProxy.php
<ide> namespace Illuminate\Support;
<ide>
<ide> /**
<del> * @mixin \Illuminate\Support\Collection
<add> * @mixin \Illuminate\Support\Enumerable
<ide> */
<ide> class HigherOrderCollectionProxy
<ide> {
<ide> /**
<ide> * The collection being opera... | 1 |
Java | Java | fix method argument naming across types | 0c84f4017f576bd250e4408d8410f6647507027c | <ide><path>src/main/java/io/reactivex/rxjava3/core/Completable.java
<ide> public static Completable create(@NonNull CompletableOnSubscribe source) {
<ide> * <dt><b>Scheduler:</b></dt>
<ide> * <dd>{@code unsafeCreate} does not operate by default on a particular {@link Scheduler}.</dd>
<ide> * </dl>
<del... | 10 |
Javascript | Javascript | update documentation for emberarray.findby | 1d6bff0d18670e7655b65d80eb4938430aa467b0 | <ide><path>packages/@ember/-internals/runtime/lib/mixins/array.js
<ide> const ArrayMixin = Mixin.create(Enumerable, {
<ide>
<ide> This method works much like the more generic `find()` method.
<ide>
<add> Usage Example:
<add>
<add> ```javascript
<add> let users = [
<add> { id: 1, name: 'Yehuda', isTo... | 1 |
Javascript | Javascript | add os x to module loading error test | 339d3840c88470fdc4a3427542258f6ec4856530 | <ide><path>test/parallel/test-module-loading-error.js
<ide> console.error('load test-module-loading-error.js');
<ide> var error_desc = {
<ide> win32: ['%1 is not a valid Win32 application'],
<ide> linux: ['file too short', 'Exec format error'],
<del> sunos: ['unknown file type', 'not an ELF file']
<add> sunos: ['... | 1 |
Go | Go | add ability to alias any interface in a sanbox | 78b684a24a97b0bc6d9cc4f8b405ac9613cc385e | <ide><path>libnetwork/osl/namespace_linux.go
<ide> func (n *networkNamespace) loopbackUp() error {
<ide> return n.nlHandle.LinkSetUp(iface)
<ide> }
<ide>
<del>func (n *networkNamespace) AddLoopbackAliasIP(ip *net.IPNet) error {
<del> iface, err := n.nlHandle.LinkByName("lo")
<add>func (n *networkNamespace) GetLoopbac... | 3 |
Javascript | Javascript | use multiply rather than divide for speed | da70ca6b9629b821d9b0a7e11dee61a5d972f06b | <ide><path>src/css.js
<ide> if ( !jQuery.support.opacity ) {
<ide> get: function( elem, computed ) {
<ide> // IE uses filters for opacity
<ide> return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
<del> ( parseFloat( RegExp.$1 ) / 100 ) + "" :
<add> ... | 1 |
Javascript | Javascript | increase scope of connections variable | 24e47535ac79f77744f737109ab3d0082a74bdd3 | <ide><path>examples/js/loaders/FBXLoader.js
<ide> THREE.FBXLoader = ( function () {
<ide>
<ide> var FBXTree;
<add> var connections;
<ide>
<ide> function FBXLoader( manager ) {
<ide>
<ide> THREE.FBXLoader = ( function () {
<ide>
<ide> parse: function () {
<ide>
<del> this.connections = this.parseConnections()... | 1 |
Go | Go | remove checks for deprecated flags | 85d6fb888c89ff0124b32d7df5485656e2d48b8e | <ide><path>integration-cli/docker_cli_search_test.go
<ide> func (s *DockerSuite) TestSearchStarsOptionWithWrongParameter(c *check.C) {
<ide> out, _, err = dockerCmdWithError("search", "-f", "is-official=a", "busybox")
<ide> assert.ErrorContains(c, err, "", out)
<ide> assert.Assert(c, strings.Contains(out, "Invalid f... | 1 |
Ruby | Ruby | remove extra whitespaces | 04d37b077baeb36bd7e19342a37974a8542d84a4 | <ide><path>activerecord/lib/active_record/base.rb
<ide> module ActiveRecord #:nodoc:
<ide> #
<ide> # The <tt>authenticate_unsafely</tt> method inserts the parameters directly into the query
<ide> # and is thus susceptible to SQL-injection attacks if the <tt>user_name</tt> and +password+
<del> # parameters come d... | 1 |
Text | Text | incorporate changes from code review | b125bd92cf6cc4042716d499c816db89334d8b31 | <ide><path>docs/Deprecating-Disabling-and-Removing-Formulae.md
<ide> This general rule of thumb can be followed:
<ide>
<ide> - `deprecate!` should be used for formulae that _should_ no longer be used.
<ide> - `disable!` should be used for formulae that _cannot_ be used.
<del>- Formulae that have are not longer accepta... | 1 |
Javascript | Javascript | change the channel owner to the resource url | a842534a564b715629d3037b2ec94225a5a3e2bc | <ide><path>extensions/firefox/components/PdfStreamConverter.js
<ide> PdfStreamConverter.prototype = {
<ide> var resourcePrincipal = 'getNoAppCodebasePrincipal' in securityManager ?
<ide> securityManager.getNoAppCodebasePrincipal(uri) :
<ide> securityMana... | 1 |
Python | Python | close the tfrecordwriter after use | e1364ca051f703aa7dad208efb297a6712470d1f | <ide><path>im2txt/im2txt/data/build_mscoco_data.py
<ide> def _process_image_files(thread_index, ranges, name, images, decoder, vocab,
<ide> (datetime.now(), thread_index, counter, num_images_in_thread))
<ide> sys.stdout.flush()
<ide>
<add> writer.close()
<ide> print("%s [thread %d]: Wrote ... | 3 |
Text | Text | translate 02.1 to korean | aae74da7920875b9cfa35c9f5d1516fd4288d111 | <ide><path>docs/docs/02.1-jsx-in-depth.ko-KR.md
<add>---
<add>id: jsx-in-depth-ko-KR
<add>title: JSX 깊이보기
<add>permalink: jsx-in-depth.ko-KR.html
<add>prev: displaying-data.ko-KR.html
<add>next: jsx-spread.ko-KR.html
<add>---
<add>
<add>[JSX](http://facebook.github.io/jsx/)는 XML과 비슷한 JavaScript문법 확장입니다. React에서 변환되는 간단... | 1 |
PHP | PHP | fix another reference to license.txt | 887dc4d7219df894e1fc0b153a40f69d172e1991 | <ide><path>tests/TestCase/Mailer/EmailTest.php
<ide> public function testAttachments()
<ide> $this->Email->addAttachments([CORE_PATH . 'config' . DS . 'bootstrap.php']);
<ide> $this->Email->addAttachments([
<ide> 'other.txt' => CORE_PATH . 'config' . DS . 'bootstrap.php',
<del> 'l... | 1 |
Javascript | Javascript | add unit test for relative paths in collection | 572dad409d67949453874e3361e19558726a84fb | <ide><path>packages/sproutcore-handlebars/tests/views/collection_view_test.js
<ide> var set = SC.set, setPath = SC.setPath;
<ide> var view;
<ide>
<del>module("SC.HandlebarsCollectionView", {
<add>module("sproutcore-handlebars/tests/views/collection_view_test", {
<ide> setup: function() {
<ide> window.TemplateTes... | 1 |
Python | Python | fix import of stop words in language data | 29720150f9960c1a57b2d463d4653e0a8f3211e0 | <ide><path>spacy/nl/language_data.py
<ide> from .. import language_data as base
<ide> from ..language_data import update_exc, strings_to_exc
<ide>
<del>from .stop_words import STOP_WORDS
<add>from .word_sets import STOP_WORDS, NUM_WORDS
<ide>
<ide>
<ide> STOP_WORDS = set(STOP_WORDS) | 1 |
Go | Go | use _, _ string | 454f56e37eefd072e350739a6c5a06743ff913ef | <ide><path>api/client/cli.go
<ide> func NewDockerCli(in io.ReadCloser, out, err io.Writer, key libtrust.PrivateKey,
<ide> if proto == "unix" {
<ide> // no need in compressing for local communications
<ide> tr.DisableCompression = true
<del> tr.Dial = func(dial_network, dial_addr string) (net.Conn, error) {
<add> ... | 1 |
Javascript | Javascript | fix tab completion bug | e29e470c14ac3c48f144b29383907ddab3a210b1 | <ide><path>lib/readline.js
<ide> Interface.prototype._tabComplete = function() {
<ide> var width = completions.reduce(function(a, b) {
<ide> return a.length > b.length ? a : b;
<ide> }).length + 2; // 2 space padding
<del> var maxColumns = Math.floor(self.columns / width) || 1;
<add> ... | 2 |
Python | Python | force the return of token type ids | ffcffebe85206425a5e6b6285fc3a3aa376d547f | <ide><path>examples/utils_multiple_choice.py
<ide> def convert_examples_to_features(
<ide> else:
<ide> text_b = example.question + " " + ending
<ide>
<del> inputs = tokenizer.encode_plus(text_a, text_b, add_special_tokens=True, max_length=max_length,)
<add> inputs = to... | 2 |
Mixed | Javascript | remove deprecated property | 1fcb76e8f2f05fc084337da097a17b06cc7d0c68 | <ide><path>doc/api/cluster.md
<ide> if (cluster.isMaster) {
<ide> }
<ide> ```
<ide>
<del>### worker.suicide
<del><!-- YAML
<del>added: v0.7.0
<del>deprecated: v6.0.0
<del>changes:
<del> - version: v7.0.0
<del> pr-url: https://github.com/nodejs/node/pull/3747
<del> description: Accessing this property will now e... | 2 |
Python | Python | fix py3k syntax errors | 44930f30915298cda8c1474ed9ec4415258c3e6f | <ide><path>rest_framework/authentication.py
<ide> def authenticate(self, request):
<ide> try:
<ide> consumer_key = oauth_request.get_parameter('oauth_consumer_key')
<ide> consumer = oauth_provider_store.get_consumer(request, oauth_request, consumer_key)
<del> except oauth_provider... | 1 |
Ruby | Ruby | implement githubgistformula in a more natural way | c50fdbd139439576318460d12c98ba007f28becd | <ide><path>Library/Homebrew/formula_specialties.rb
<ide> def install
<ide>
<ide> # See browser for an example
<ide> class GithubGistFormula < ScriptFileFormula
<del> def initialize(*)
<del> url = self.class.stable.url
<del> self.class.stable.version(File.basename(File.dirname(url))[0,6])
<add> def self.url(val... | 1 |
Javascript | Javascript | add usesyncexternalstore to react-debug-tools | cfd81933286f3a63734ba0ac1650019487c402ff | <ide><path>packages/react-debug-tools/src/ReactDebugHooks.js
<ide> function useSyncExternalStore<T>(
<ide> subscribe: (() => void) => () => void,
<ide> getSnapshot: () => T,
<ide> ): T {
<del> throw new Error('Not yet implemented');
<add> // useSyncExternalStore() composes multiple hooks internally.
<add> // Adv... | 2 |
Text | Text | update changelog to add previously_new_record? | 2dbe1302a19e43ab4bfe753dfc7a4f5872093d30 | <ide><path>activerecord/CHANGELOG.md
<add>* Add `ActiveRecord::Base#previously_new_record?` to show if a record was new before the last save.
<add>
<add> *Tom Ward*
<add>
<ide> * Allow generated `create_table` migrations to include or skip timestamps.
<ide>
<del> *Michael Duchemin*
<add> *Michael Duchemi... | 1 |
Text | Text | update custom server docs | 1a53f4500aaa5a211540e7aa86858521f34e1ec9 | <ide><path>docs/advanced-features/custom-server.md
<ide> app.prepare().then(() => {
<ide> const { pathname, query } = parsedUrl
<ide>
<ide> if (pathname === '/a') {
<del> app.render(req, res, '/b', query)
<del> } else if (pathname === '/b') {
<ide> app.render(req, res, '/a', query)
<add> } els... | 1 |
Mixed | Python | update indonesian example phrases | 7489d02deaae09f1d0901122c7c40c71f0e85560 | <ide><path>.github/contributors/rasyidf.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project
<a... | 2 |
Ruby | Ruby | add spec for attribute#inspect | 16707d1b96365ab569e7a5e47a3d694c14d4132c | <ide><path>spec/arel/algebra/unit/primitives/attribute_spec.rb
<ide> module Arel
<ide> @attribute = @relation[:id]
<ide> end
<ide>
<add> describe "#inspect" do
<add> it "returns a simple, short inspect string" do
<add> @attribute.inspect.should == "<Attribute id>"
<add> end
<add> end
<... | 1 |
PHP | PHP | fix disabled attribute check | 91319bbe7bc665befc67a5d2e6db6490354819fb | <ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php
<ide> public function testInputCheckbox() {
<ide> '/div'
<ide> );
<ide> $this->assertTags($result, $expected);
<add>
<add> $result = $this->Form->input('User.disabled', array(
<add> 'label' => 'Disabled',
<add> 'type' => 'checkbox',
<add> 'data-... | 2 |
PHP | PHP | fix php-cs (missing spaces) | cd31676cf7177ad5dcef008c1fb1a90034216280 | <ide><path>src/View/ViewBlock.php
<ide> public function end()
<ide> return;
<ide> }
<ide> if (!empty($this->_active)) {
<del> $mode = end($this->_active);
<add> $mode = end($this->_active);
<ide> $active = key($this->_active);
<ide> $content = ... | 1 |
Ruby | Ruby | use homebrew_git_* vars | 28f4d68b31959483a2245a17e4b28fa5e440c8d5 | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def merge
<ide> end
<ide>
<ide> unless ARGV.include? "--no-commit"
<add> if ENV["HOMEBREW_GIT_NAME"]
<add> ENV["GIT_AUTHOR_NAME"] =
<add> ENV["GIT_COMMITTER_NAME"] =
<add> ENV["HOMEBREW_GIT_NAME"]
<add> ... | 1 |
Javascript | Javascript | use debug for prettier logs | 52529a99b17ae267773fa760bcf5bd396ea0b642 | <ide><path>server/boot/explorer.js
<add>const createDebugger = require('debug');
<add>
<add>const log = createDebugger('fcc:boot:explorer');
<add>
<ide> module.exports = function mountLoopBackExplorer(app) {
<ide> if (process.env.NODE_ENV === 'production') {
<ide> return;
<ide> }
<del> var explorer;
<add> let... | 3 |
Javascript | Javascript | remove dead code | b15c80696c9ddcaddcf3b997a8d2617ebe22a447 | <ide><path>grunt/tasks/browserify.js
<ide> module.exports = function() {
<ide> config.globalTransforms = config.globalTransforms || [];
<ide> config.plugins = config.plugins || [];
<ide> config.after = config.after || [];
<del> config.paths = config.paths || [];
<ide>
<ide> // create the bundle we'll work wit... | 1 |
Javascript | Javascript | remove trailing whitespace | 2c1eae5819933f9ef8fe4d8776debb7af6fcb4dd | <ide><path>make.js
<ide> target.all = function() {
<ide> //
<ide>
<ide> // Files that need to be included in every build.
<del>var COMMON_WEB_FILES =
<add>var COMMON_WEB_FILES =
<ide> ['web/viewer.css',
<ide> 'web/images',
<ide> 'web/debugger.js'], | 1 |
Javascript | Javascript | do less work in insert | 0b89761d6dcaa1aa6b49b5b9d85b36065f681351 | <ide><path>lib/internal/timers.js
<ide> function initAsyncResource(resource, type) {
<ide>
<ide> // Timer constructor function.
<ide> // The entire prototype is defined in lib/timers.js
<del>function Timeout(callback, after, args, isRepeat) {
<add>function Timeout(callback, after, args, isRepeat, isRefed) {
<ide> af... | 2 |
Text | Text | fix typo in maintaining-zlib guide | 988f5bf6fb739950fe47ecc3c20853893ba729b0 | <ide><path>doc/guides/maintaining-zlib.md
<ide> Check that Node.js still builds and tests.
<ide> It may be necessary to update deps/zlib/zlib.gyp if any significant changes have
<ide> occurred upstream.
<ide>
<del>## Commiting zlib
<add>## Committing zlib
<ide>
<ide> Add zlib: `git add --all deps/zlib`
<ide> | 1 |
Javascript | Javascript | reduce dereferencing of array.prototype.slice | 56acdc1fdcdcada0d850c64eb77f76c920f93f28 | <ide><path>packages/ember-metal/lib/mixin.js
<ide> var Mixin, MixinDelegate, REQUIRED, Alias;
<ide> var classToString, superClassString;
<ide>
<ide> var a_map = Array.prototype.map;
<add>var a_slice = Array.prototype.slice;
<ide> var EMPTY_META = {}; // dummy for non-writable meta
<ide> var META_SKIP = { __emberproto_... | 4 |
Python | Python | normalize layer importing | 3bfe4eace955f8b6b46b389f37375b9cc4ae94a0 | <ide><path>keras/layers/__init__.py
<add>from __future__ import absolute_import
<add>from .core import *
<add>from .convolutional import *
<add>from .recurrent import *
<add>from .normalization import *
<add>from .embeddings import *
<add>from .noise import *
<add>from .advanced_activations import *
<ide>\ No newline a... | 1 |
Go | Go | fix net=none w/ testdaemonnospaceleftondeviceerror | 8e0e9e0f24e5802709508b7c7fe61cb5171ec414 | <ide><path>integration-cli/docker_cli_daemon_test.go
<ide> func (s *DockerDaemonSuite) TestBridgeIPIsExcludedFromAllocatorPool(c *check.C)
<ide>
<ide> // Test daemon for no space left on device error
<ide> func (s *DockerDaemonSuite) TestDaemonNoSpaceleftOnDeviceError(c *check.C) {
<del> testRequires(c, SameHostDaemon... | 1 |
Mixed | Javascript | save original argv[0] | a804db1af7bd9a0f00fc2253ec84ee2e40332408 | <ide><path>doc/api/process.md
<ide> added: v0.1.27
<ide>
<ide> The `process.argv` property returns an array containing the command line
<ide> arguments passed when the Node.js process was launched. The first element will
<del>be [`process.execPath`]. The second element will be the path to the
<del>JavaScript file bein... | 2 |
Java | Java | fix javadoc syntax error in httprequesthandler | 408fe42df242dcaa564f4f0eb61d41d8d8909d5b | <ide><path>spring-web/src/main/java/org/springframework/web/HttpRequestHandler.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use ... | 1 |
Python | Python | add note to ``nonzero`` docstring. | 1f427353554e6403f87c01f81b6e414427faa5f0 | <ide><path>numpy/core/fromnumeric.py
<ide> def nonzero(a):
<ide> Equivalent ndarray method.
<ide> count_nonzero :
<ide> Counts the number of non-zero elements in the input array.
<add>
<add> Notes
<add> -----
<add> To obtain the non-zero values, it is recommended to use ``x[x.astype... | 1 |
Ruby | Ruby | add remote search to `brew cask search` | 238cd5430f47895ef930756f2c3fb8b770a89f46 | <ide><path>Library/Homebrew/cask/lib/hbc/cli/search.rb
<ide> def self.extract_regexp(string)
<ide> end
<ide> end
<ide>
<add> def self.search_remote(query)
<add> matches = GitHub.search_code("user:caskroom", "path:Casks", "filename:#{query}", "extension:rb")
<add> [*matches].map do |mat... | 2 |
Python | Python | make public versions of private tensor utils | 9151e649a53fc8a7e5d8beec1ae8d27db1094aa7 | <ide><path>src/transformers/feature_extraction_sequence_utils.py
<ide> import numpy as np
<ide>
<ide> from .feature_extraction_utils import BatchFeature, FeatureExtractionMixin
<del>from .utils import PaddingStrategy, TensorType, is_tf_available, is_torch_available, logging, to_numpy
<del>from .utils.generic import _i... | 8 |
Python | Python | update double head model | fe2756ff41147ea6de14d8f81ecc5304382af91d | <ide><path>pytorch_pretrained_bert/modeling_openai.py
<ide> def __init__(self, config):
<ide> def forward(self, hidden_states, mc_token_ids):
<ide> # Classification logits
<ide> # hidden_state (bsz, num_choices, seq_length, hidden_size)
<del> # mc_token_ids (bsz, num_choices, 1)
<add> ... | 1 |
Text | Text | add await before promise.all() | 24d2555633a9c6bd1e37cc4f49cc7a53fa41cf8c | <ide><path>curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/personal-library.md
<ide> When you are done, make sure a working demo of your project is hosted somewhere
<ide>
<ide> # --instructions--
<ide>
<del>1. Add your MongoDB connection string to `.env` without quotes as `DB`
<add>1.... | 1 |
Text | Text | add links to docs in all the samples | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042 | <ide><path>docs/samples/advanced/data-decimation.md
<ide> module.exports = {
<ide> config: config,
<ide> };
<ide> ```
<add>## Docs
<add>* [Data Decimation](../../configuration/decimation.html)
<add>* [Line](../../charts/line.html)
<add>* [Time Scale](../../axes/cartesian/time.html)
<add>
<ide><path>docs/samples/advan... | 75 |
Go | Go | define "opt" type | e6c0d19c3a5ebd0d719bb21c29b9d2395c7c3719 | <ide><path>client/client.go
<ide> func CheckRedirect(req *http.Request, via []*http.Request) error {
<ide> // It won't send any version information if the version number is empty. It is
<ide> // highly recommended that you set a version or your client may break if the
<ide> // server is upgraded.
<del>func NewClientWit... | 3 |
Javascript | Javascript | update error messages | 99af9e2c33d2228a4fd124372fc8691e2687b0dd | <ide><path>script/utils/verify-requirements.js
<ide> function verifyPython27(cb) {
<ide> }
<ide>
<ide> function checkPythonVersion (python, cb) {
<del> var pythonRequiredMessage = "Python 2.7 is required to build Atom. Python 2.7 must be installed at '" + pythonPath + "', or the PYTHON env var must be set to '/path/t... | 1 |
Mixed | Javascript | use readableobjectmode public api for js stream | b4735ecebb390f467bba5b2d467f27f88dbbf09e | <ide><path>doc/api/stream.md
<ide> This property contains the number of bytes (or objects) in the queue
<ide> ready to be written. The value provides introspection data regarding
<ide> the status of the `highWaterMark`.
<ide>
<add>##### writable.writableObjectMode
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<a... | 5 |
Javascript | Javascript | remove o-auth account creation | 8166bfbcd815d53545ff8bf1e1770148f52990d5 | <ide><path>common/models/User-Identity.js
<ide> const { defaultProfileImage } = require('../utils/constantStrings.json');
<ide> const githubRegex = (/github/i);
<ide> const debug = debugFactory('fcc:models:userIdent');
<ide>
<del>function createAccessToken(user, ttl, cb) {
<del> if (arguments.length === 2 && typeof t... | 4 |
Javascript | Javascript | increase execfile abort coverage | 5dd58d069fd31e778d050a2ffc7af8e64af30095 | <ide><path>test/parallel/test-child-process-execfile.js
<ide> const execOpts = { encoding: 'utf8', shell: true };
<ide> execFile(process.execPath, [echoFixture, 0], { signal }, callback);
<ide> ac.abort();
<ide> }
<add>
<add>{
<add> // Verify that if something different than Abortcontroller.signal
<add> // is pas... | 1 |
Go | Go | optimize networkdb queue | 55e4cc7262576e2b7c3e9f4692d35fe8824d22e3 | <ide><path>libnetwork/networkdb/broadcast.go
<ide> type tableEventMessage struct {
<ide> tname string
<ide> key string
<ide> msg []byte
<del> node string
<ide> }
<ide>
<ide> func (m *tableEventMessage) Invalidates(other memberlist.Broadcast) bool {
<ide> func (nDB *NetworkDB) sendTableEvent(event TableEvent_Ty... | 4 |
Javascript | Javascript | preserve sourcemaps in rollup transforms | 1eedf1b3712f9d4f9cffa50073a30ec29678974e | <ide><path>utils/build/rollup.config.js
<ide> function glconstants() {
<ide>
<ide> return {
<ide> code: code,
<del> map: { mappings: '' }
<add> map: null
<ide> };
<ide>
<ide> }
<ide> function glsl() {
<ide>
<ide> return {
<ide> code: code,
<del> map: { mappings: '' }
<add> map: null
<i... | 1 |
Text | Text | note lack of tests | 102f40e9f6c08651c022ee71d6c1725be9fbf5db | <ide><path>README.md
<ide> Action Cable will move from rails/actioncable to rails/rails and become a full-f
<ide> framework alongside Action Pack, Active Record, and the like once we cross the bridge from alpha
<ide> to beta software (which will happen once the API and missing pieces have solidified).
<ide>
<add>Final... | 1 |
PHP | PHP | remove extra spaces | 9039f2457e8df999aa1a0e401d04dafee135d9f5 | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> public function assertForbidden()
<ide>
<ide> return $this;
<ide> }
<del>
<add>
<ide> /**
<ide> * Assert that the response has an unauthorized status code.
<ide> *
<ide> public function assertForbidden()
<ide> public ... | 1 |
Ruby | Ruby | change specs to cover lt, lteq, gt and gteq | 3f8ac523cbf2ebc544e5eec0db2b3247f396f9b3 | <ide><path>test/attributes/test_attribute.rb
<ide> module Attributes
<ide> SELECT * FROM "users" WHERE "users"."karma" > (SELECT AVG("users"."karma") AS avg_id FROM "users")
<ide> }
<ide> end
<add>
<add> it 'should accept various data types.' do
<add> relation = Table.new(:... | 1 |
Javascript | Javascript | fix concatenation of module externals | 3f7d80d823c1f7a920a35ac17d9756bc2f5d5505 | <ide><path>lib/ExternalModule.js
<ide> const StaticExportsDependency = require("./dependencies/StaticExportsDependency"
<ide> const extractUrlAndGlobal = require("./util/extractUrlAndGlobal");
<ide> const makeSerializable = require("./util/makeSerializable");
<ide> const propertyAccess = require("./util/propertyAccess"... | 9 |
Javascript | Javascript | improve coverage of fs internal utils | def57580fce7a0ca6acd215371028efc7fdb3f5f | <ide><path>test/parallel/test-fs-util-validateoffsetlength.js
<add>// Flags: --expose-internals
<add>'use strict';
<add>
<add>const common = require('../common');
<add>
<add>const assert = require('assert');
<add>const {
<add> validateOffsetLengthRead,
<add> validateOffsetLengthWrite,
<add>} = require('internal/fs/ut... | 2 |
Ruby | Ruby | fix merging relation that order including `?` | 96cd16bdeec661c9ecf1a83ca41a2cb22f435af9 | <ide><path>activerecord/lib/active_record/relation/merger.rb
<ide> def merge_outer_joins
<ide> def merge_multi_values
<ide> if other.reordering_value
<ide> # override any order specified in the original relation
<del> relation.reorder! other.order_values
<add> relatio... | 2 |
Text | Text | warn users about migrating to 9.4 from dotenv | 5da1dcf669cff474eb6521008173158a5d8f6ebe | <ide><path>docs/basic-features/environment-variables.md
<ide> npx cross-env NEXT_PUBLIC_EXAMPLE_KEY=my-value next dev
<ide>
<ide> - Trying to destructure `process.env` variables won't work due to the limitations of webpack's [DefinePlugin](https://webpack.js.org/plugins/define-plugin/).
<ide> - To avoid exposing secre... | 1 |
Javascript | Javascript | remove usage of events.eventemitter | f32a606e373ad57f684b0e511d6d6e4cbd48a812 | <ide><path>lib/_http_agent.js
<ide>
<ide> const net = require('net');
<ide> const util = require('util');
<del>const EventEmitter = require('events').EventEmitter;
<add>const EventEmitter = require('events');
<ide> const debug = util.debuglog('http');
<ide>
<ide> // New Agent code.
<ide><path>lib/_http_client.js
<ide... | 15 |
Python | Python | fix openstack tests | 17fa4a3c24754df8ebf01176ee37cfab4dbf52b5 | <ide><path>libcloud/test/compute/test_openstack.py
<ide> def _v1_0_slug_images_333111(self, method, url, body, headers):
<ide> raise NotImplementedError()
<ide> # this is currently used for deletion of an image
<ide> # as such it should not accept GET/POST
<del> return(httplib.NO_CONT... | 1 |
Javascript | Javascript | fix broken tests in test-buffer-includes | 52b666ee3dd4beb76d7862337e54a35959799c1e | <ide><path>test/parallel/test-buffer-includes.js
<ide> assert(mixedByteStringUcs2.includes('bc', 0, 'ucs2'));
<ide> assert(mixedByteStringUcs2.includes('\u03a3', 0, 'ucs2'));
<ide> assert(!mixedByteStringUcs2.includes('\u0396', 0, 'ucs2'));
<ide>
<del>assert(
<del> 6, mixedByteStringUcs2.includes(Buffer.from('bc', ... | 1 |
Javascript | Javascript | handle undefined url in linkannotation | 054f1e7e57ac7e2ea476bd7cfa603dc1fee7a520 | <ide><path>src/shared/annotation.js
<ide> var LinkAnnotation = (function LinkAnnotationClosure() {
<ide> if (isName(url)) {
<ide> // Some bad PDFs do not put parentheses around relative URLs.
<ide> url = '/' + url.name;
<del> } else {
<add> } else if (url) {
<ide> url... | 1 |
Text | Text | clarify path search in `child_process.spawn` | c649573a2ab4866426d629088c6d5c989eaf8fd8 | <ide><path>doc/api/child_process.md
<ide> identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }`
<ide> option if the output will not be consumed.
<ide>
<ide> The command lookup is performed using the `options.env.PATH` environment
<del>variable if it is in the `options` object. Otherwise, `proc... | 1 |
Ruby | Ruby | detect outdated head in outdated_versions | 001bef0604534adeb5f85d77e00a20e8a1542b7a | <ide><path>Library/Homebrew/formula.rb
<ide> def migration_needed?
<ide> end
<ide>
<ide> # @private
<del> def outdated_versions
<add> def outdated_versions(options = {})
<ide> @outdated_versions ||= begin
<ide> all_versions = []
<ide>
<ide> def outdated_versions
<ide> installed_kegs.each do |keg... | 1 |
Javascript | Javascript | remove redundant imports in xstate example | fedc662f259915bac5c312a4254e2d8b7e8b4223 | <ide><path>examples/with-xstate/components/Toggle.js
<del>import React from 'react'
<del>
<ide> const Toggle = ({ onToggle, active }) => {
<ide> return (
<ide> <div>
<ide><path>examples/with-xstate/pages/index.js
<del>import React from 'react'
<ide> import { useMachine } from '@xstate/react'
<ide> import { Counte... | 2 |
Ruby | Ruby | use general types for mysql fields | ca703bbc06c353acc41851578e264e4459d481c2 | <ide><path>activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
<ide> def last_inserted_id(result)
<ide> end
<ide>
<ide> module Fields
<del> class Type
<del> def type; end
<del>
<del> def type_cast_for_write(value)
<del> value
<del> end
<del> ... | 1 |
Ruby | Ruby | fix undefined `dep_f` | 461b61abacbafd523f007e76b39b542f04155994 | <ide><path>Library/Homebrew/cmd/link.rb
<ide> def link
<ide> elsif (MacOS.version >= :mojave ||
<ide> MacOS::Xcode.version >= "10.0" ||
<ide> MacOS::CLT.version >= "10.0") &&
<del> dep_f.keg_only_reason.reason == :provided_by_macos
<add> keg.to_formula.keg... | 1 |
Javascript | Javascript | fix moment.utc with array of formats | 0b549ab759c3191b7442ac1108b87f56880a197c | <ide><path>moment.js
<ide> for (i = 0; i < config._f.length; i++) {
<ide> currentScore = 0;
<ide> tempConfig = copyConfig({}, config);
<add> if (config._useUTC != null) {
<add> tempConfig._useUTC = config._useUTC;
<add> }
<ide> tempConfig.... | 2 |
Text | Text | fix the gateway type in remote network plugin spec | 1c67f2592bf781856a8e4aa53f91f549903fe787 | <ide><path>libnetwork/docs/remote.md
<ide> When the proxy is asked to create a network, the remote process shall receive a
<ide> {
<ide> "AddressSpace": string,
<ide> "Pool": ipv4-cidr-string,
<del> "Gateway" : ipv4-address"
<add> "Gateway" : ipv4-cidr-string,
<ide> "AuxAddresses": {
<ide> "<identifi... | 1 |
Text | Text | fix example output | a65a24409d40db9c344b117d44671cbf3d281321 | <ide><path>examples/custom-json-modules/README.md
<ide> module.exports = {
<ide>
<ide> ```javascript
<ide> /******/ (() => { // webpackBootstrap
<add>/******/ "use strict";
<ide> /******/ var __webpack_modules__ = ([
<ide> /* 0 */
<ide> /*!********************!*\
<ide> module.exports = {
<ide> /*! runtime requiremen... | 1 |
Javascript | Javascript | skip non-doc files in test-make-doc checks | 759809f67421bdceff9a6799424f5b7d191c458f | <ide><path>test/doctool/test-make-doc.js
<ide> const apiPath = path.resolve(__dirname, '..', '..', 'out', 'doc', 'api');
<ide> const allDocs = fs.readdirSync(apiPath);
<ide> assert.ok(allDocs.includes('_toc.html'));
<ide>
<del>const filter = ['assets', '_toc.html', '.md'];
<ide> const actualDocs = allDocs.filter(
<del... | 1 |
Text | Text | add a note about react classe name convention | 83a2465af9a95db9ffa3369e4c8e2b1db28a3bcb | <ide><path>docs/docs/tutorial.md
<ide> React.render(
<ide> );
<ide> ```
<ide>
<add>Note that native HTML element names start with a lowercase letter, while custom React classes names begin with an uppercase letter.
<add>
<ide> #### JSX Syntax
<ide>
<ide> The first thing you'll notice is the XML-ish syntax in your Jav... | 1 |
Python | Python | add time and level to default logging formatter | a3293efc4826c2528e7a740273d0bf424ba874ea | <ide><path>spacy/util.py
<ide>
<ide> logger = logging.getLogger("spacy")
<ide> logger_stream_handler = logging.StreamHandler()
<del>logger_stream_handler.setFormatter(logging.Formatter("%(message)s"))
<add>logger_stream_handler.setFormatter(logging.Formatter("[%(asctime)s] [%(levelname)s] %(message)s"))
<ide> logger.a... | 1 |
Javascript | Javascript | add weathereh to showcase | 5c6bbf7f1fe23800e4f8b3e1a8911c5b5a280d2c | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> linkPlayStore: 'https://play.google.com/store/apps/details?id=com.wearvr.app',
<ide> author: 'WEARVR LLC',
<ide> },
<add> {
<add> name: 'WeatherEh - Canada weather',
<add> icon: 'http://a2.mzstatic.com/us/r30/Purple18/v4/39/cf/84/... | 1 |
Ruby | Ruby | remove redundant attr_readers | 00f05eafe988267da4797922b350aee68c8dd937 | <ide><path>Library/Homebrew/formula_support.rb
<ide> def verify_download_integrity fn
<ide>
<ide> class Bottle < SoftwareSpec
<ide> attr_writer :url
<del> attr_reader :revision, :root_url, :cellar
<ide> # TODO: Can be removed when all bottles migrated to underscored cat symbols.
<ide> attr_reader :cat_without_u... | 1 |
PHP | PHP | remove unused variable | 5500f942b9c277fe13161852db04074edb9f25f5 | <ide><path>lib/Cake/Routing/Router.php
<ide> public static function redirect($route, $url, $options = array()) {
<ide> * @return array Array of mapped resources
<ide> */
<ide> public static function mapResources($controller, $options = array()) {
<del> $hasPrefix = isset($options['prefix']);
<ide> $options = arra... | 1 |
Python | Python | replace scipytestcase with numpytestcase | 10943b683e107694053221df6b36e5117eb38e13 | <ide><path>numpy/core/tests/test_ma.py
<ide> import types, time
<ide> from numpy.core.ma import *
<ide> from numpy.core.numerictypes import float32
<del>from numpy.testing import ScipyTestCase, ScipyTest
<add>from numpy.testing import NumpyTestCase, NumpyTest
<ide> pi = numpy.pi
<ide> def eq(v,w, msg=''):
<ide> res... | 20 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.