content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Text | Text | add v3.2.0-beta.4 to changelog | 2eec20843c4f951eb52a32efeb06c57d6789509a | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.2.0-beta.4 (May 7, 2018)
<add>- [#16597](https://github.com/emberjs/ember.js/pull/16597) [BUGFIX] Ensure `Ember.run.cancelTimers` is present.
<add>- [#16605](https://github.com/emberjs/ember.js/pull/16605) [BUGFIX] Use resetCache on container destroy
<a... | 1 |
Ruby | Ruby | append trailing slash when the path is generated | f593e972376db2eb67d2c1bddbf0c2204f1f5b6b | <ide><path>actionpack/lib/action_dispatch/http/url.rb
<ide> def path_for(options)
<ide> path = options[:script_name].to_s.chomp("/")
<ide> path << options[:path] if options.key?(:path)
<ide>
<del> add_trailing_slash(path) if options[:trailing_slash]
<add> path = "/" if options[:tr... | 4 |
Text | Text | add missing word | 091488022925281052f93ae98c0f1b613083d8e6 | <ide><path>BUILDING.md
<ide> This will build Node.js first (if necessary) and then use it to build the docs:
<ide> $ make doc
<ide> ```
<ide>
<del>If you have an existing Node.js you can build just the docs with:
<add>If you have an existing Node.js build, you can build just the docs with:
<ide>
<ide> ```console
<ide... | 1 |
Python | Python | remove print for debug | 5a1eeae573d689d7bcf727f86b3659fc2071d73d | <ide><path>libcloud/common/dimensiondata.py
<ide> def request_with_orgId_api_1(self, action, params=None, data='',
<ide> def request_with_orgId_api_2(self, action, params=None, data='',
<ide> headers=None, method='GET'):
<ide> action = "%s/%s" % (self.get_resource_path_api_2... | 2 |
Python | Python | clarify the function of wait_for_downstream | 6ee8c3734693bf7c0ffd50c423530724169f424b | <ide><path>airflow/models.py
<ide> class derived from this one results in the creation of a task object,
<ide> sequentially while relying on the previous task's schedule to
<ide> succeed. The task instance for the start_date is allowed to run.
<ide> :type depends_on_past: bool
<del> :param wait_f... | 1 |
Text | Text | add missing period | dba602781355f6ee0cbc34775209cd37a52ca4d4 | <ide><path>docs/api-guide/testing.md
<ide>
<ide> # Testing
<ide>
<del>> Code without tests is broken as designed
<add>> Code without tests is broken as designed.
<ide> >
<ide> > — [Jacob Kaplan-Moss][cite]
<ide> | 1 |
Go | Go | fix some linting issues | 4f8c870d623c63b98f8ef8002448f07f4dda4aa9 | <ide><path>api/server/server.go
<ide> func (s *Server) makeHTTPHandler(handler httputils.APIFunc) http.HandlerFunc {
<ide> // apply to all requests. Data that is specific to the
<ide> // immediate function being called should still be passed
<ide> // as 'args' on the function call.
<del> ctx := context.WithValue... | 12 |
Python | Python | add more tests for base and simplerate throttles | 66ffaaf5d323e1d8d2607844d8136a349b6dc651 | <ide><path>tests/test_throttling.py
<ide> def test_unique_clients_are_counted_independently_with_two_proxies(self):
<ide> assert self.view(self.request).status_code == 200
<ide>
<ide>
<add>class BaseThrottleTests(TestCase):
<add>
<add> def test_allow_request_raises_not_implemented_error(self):
<add> ... | 1 |
PHP | PHP | improve illuminate\cookie\cookiejar test coverage | 8a9b8c6b864cc7e72200e89fab367796c72e4269 | <ide><path>tests/Cookie/CookieTest.php
<ide> public function testCookiesAreCreatedWithProperOptions()
<ide> $this->assertTrue($c2->isSecure());
<ide> $this->assertEquals('/domain', $c2->getDomain());
<ide> $this->assertEquals('/path', $c2->getPath());
<add>
<add> $c3 = $cookie->forget('color');
<add> $this->a... | 1 |
Ruby | Ruby | test actual transformation via controller too | f3b092a6e6f6d873e14ebe1e612028ef7ac15e4a | <ide><path>test/controllers/variants_controller.rb
<ide> class ActiveStorage::VariantsControllerTest < ActionController::TestCase
<ide> variation_key: ActiveStorage::Variation.encode(resize: "100x100") }
<ide>
<ide> assert_redirected_to /racecar.jpg\?disposition=inline/
<add> assert_same_image "racecar-10... | 3 |
Mixed | Text | add active storage to readme and release | 12d944f7651f79541d9f55fc6900d7fe4e3c62bc | <ide><path>README.md
<ide> to generate and send emails; Active Job ([README](activejob/README.md)), a
<ide> framework for declaring jobs and making them run on a variety of queueing
<ide> backends; Action Cable ([README](actioncable/README.md)), a framework to
<ide> integrate WebSockets with a Rails application;
<add>A... | 2 |
Javascript | Javascript | add footer to the todomvc | 21d710fed1d74566f12fd4ffc0678ec6544b01f1 | <ide><path>examples/todomvc/actions/TodoActions.js
<del>import { ADD_TODO, DELETE_TODO, EDIT_TODO, MARK_TODO, MARK_ALL } from '../constants/ActionTypes';
<add>import { ADD_TODO, DELETE_TODO, EDIT_TODO } from '../constants/ActionTypes';
<add>import { MARK_TODO, MARK_ALL, CLEAR_MARKED } from '../constants/ActionTypes';
<... | 5 |
Go | Go | capture output of killed health checks | 0cbb92bcc543767e5abe6f912ea797166fe25cba | <ide><path>daemon/health.go
<ide> func (p *cmdProbe) run(ctx context.Context, d *Daemon, cntr *container.Container
<ide> // Wait for probe to exit (it might take some time to call containerd to kill
<ide> // the process and we don't want dying probes to pile up).
<ide> <-execErr
<add>
<add> var msg string
<add> ... | 2 |
Java | Java | add unit tests for recursive scheduler usage | 770ee735efa935a21b9992090eb063732e826ba5 | <ide><path>rxjava-core/src/test/java/rx/concurrency/TestSchedulers.java
<ide> package rx.concurrency;
<ide>
<ide> import static org.junit.Assert.*;
<add>import static org.mockito.Mockito.*;
<ide>
<ide> import java.util.concurrent.CountDownLatch;
<ide> import java.util.concurrent.TimeUnit;
<add>import java.util.concur... | 1 |
Javascript | Javascript | fix coding style in test/driver.js | e808bf57362e7c99aa715cd63d3caf3c5128873a | <ide><path>test/driver.js
<ide> function cleanup() {
<ide> // Clear out all the stylesheets since a new one is created for each font.
<ide> while (document.styleSheets.length > 0) {
<ide> var styleSheet = document.styleSheets[0];
<del> while (styleSheet.cssRules.length > 0)
<add> while (styleSheet.cssRule... | 1 |
Ruby | Ruby | provide stub methods | e6d5e813d45b3ec65ccc393d4341ab9d906274a0 | <ide><path>Library/Homebrew/os/linux/hardware.rb
<ide> module LinuxCPUs
<ide> OPTIMIZATION_FLAGS = {}.freeze
<ide> def optimization_flags; OPTIMIZATION_FLAGS; end
<ide>
<add> # Linux supports x86 only, and universal archs do not apply
<add> def arch_32_bit; :i386; end
<add> def arch_64_bit; :x86_64; end
<add> ... | 1 |
Ruby | Ruby | use file.exist? instead of file.exists? | a09c07890a9aee7a40dc145db6cad62b5c50718c | <ide><path>actionpack/test/dispatch/static_test.rb
<ide> def with_static_file(file)
<ide>
<ide> yield file
<ide> ensure
<del> File.delete(path) if File.exists? path
<add> File.delete(path) if File.exist? path
<ide> end
<ide> end
<ide> | 1 |
Mixed | Javascript | change broken fg(1) links to fg(1p) | 6ae159fa35b21c6abb478a99ea1c9e76813dba3b | <ide><path>doc/api/readline.md
<ide> added: v0.7.5
<ide>
<ide> The `'SIGCONT'` event is emitted when a Node.js process previously moved into
<ide> the background using `<ctrl>-Z` (i.e. `SIGTSTP`) is then brought back to the
<del>foreground using fg(1).
<add>foreground using fg(1p).
<ide>
<ide> If the `input` stream w... | 5 |
Javascript | Javascript | reduce asynchronicity for non-cached bundles | 439cb76a005fbffd23be6c5b6a61c7806f1b716d | <ide><path>packager/src/lib/GlobalTransformCache.js
<ide> class GlobalTransformCache {
<ide> });
<ide> }
<ide>
<add> shouldFetch(props: FetchProps): boolean {
<add> return this._profileSet.has(props.transformOptions);
<add> }
<add>
<ide> /**
<ide> * This may return `null` if either the cache doesn't ha... | 2 |
Ruby | Ruby | add test to make sure subclasses also get helpers | 862cc0bfbe6f125aff4e76c2d71764a14bcf4891 | <ide><path>actionpack/test/controller/api/with_helpers_test.rb
<ide> def with_helpers
<ide> end
<ide> end
<ide>
<add>class SubclassWithHelpersController < WithHelpersController
<add> def with_helpers
<add> render plain: self.class.helpers.my_helper
<add> end
<add>end
<add>
<ide> class WithHelpersTest < ActionCo... | 1 |
Text | Text | fix the html for package management | ed8a753346661ca8ecff04385f6cf4abe87167c1 | <ide><path>docs/docs/09.2-package-management.md
<ide> ReactDOM.render(
<ide> ```
<ide>
<ide> Configure [babel](https://babeljs.io/) with a `.babelrc` file:
<del>
<add>
<ide> ```json
<ide> { "presets": ["react"] }
<ide> ```
<del>
<add>
<ide> > Note:
<ide> >
<ide> > If you are using ES2015, you will want to also... | 1 |
Javascript | Javascript | show touchable feedback for short touches | 891550724450988a440756170b2475f1da6f9ba2 | <ide><path>Libraries/Components/Touchable/Touchable.js
<ide> var TouchableMixin = {
<ide> }
<ide>
<ide> if (newIsHighlight && !curIsHighlight) {
<del> this._savePressInLocation(e);
<del> this.touchableHandleActivePressIn && this.touchableHandleActivePressIn(e);
<del> } else if (!newIsHighlight && ... | 1 |
Text | Text | wrap 80 columns [ci skip] | 0638d329c6b5a1d270150c1b8c74e413e98ef3f4 | <ide><path>guides/source/configuring.md
<ide> These configuration methods are to be called on a `Rails::Railtie` object, such
<ide>
<ide> * `config.action_view.cache_template_loading` controls whether or not templates should be reloaded on each request. Defaults to whatever is set for `config.cache_classes`.
<ide>
<d... | 1 |
Ruby | Ruby | fix constant reference | 4c0cb1c2c9269c74588da9f114f52ea3707ae8fb | <ide><path>activesupport/lib/active_support/cache/redis_cache_store.rb
<ide> def normalize_key(key, options)
<ide>
<ide> def truncate_key(key)
<ide> if key.bytesize > max_key_bytesize
<del> suffix = ":sha2:#{Digest::SHA2.hexdigest(key)}"
<add> suffix = ":sha2:#{::Digest::SHA2.he... | 2 |
Ruby | Ruby | add test for `brew cask --cache` | 8ad48f56e85682c5223aabc1d484f32e569f2ca8 | <ide><path>Library/Homebrew/test/cask/cmd/--cache_spec.rb
<add># frozen_string_literal: true
<add>
<add>require_relative "shared_examples/requires_cask_token"
<add>require_relative "shared_examples/invalid_option"
<add>
<add>describe Cask::Cmd::Cache, :cask do
<add> let(:local_transmission) {
<add> Cask::CaskLoader... | 1 |
Ruby | Ruby | add missing require for string#strip_heredoc | 3a20e83795af13be4b26eb9c433c259554a44061 | <ide><path>actionpack/lib/action_dispatch/testing/integration.rb
<ide> require 'uri'
<ide> require 'active_support/core_ext/kernel/singleton_class'
<ide> require 'active_support/core_ext/object/try'
<add>require 'active_support/core_ext/string/strip'
<ide> require 'rack/test'
<ide> require 'minitest'
<ide> | 1 |
Javascript | Javascript | add transistion callbacks to hydrateroot | 6daf600609e7699106673b37b507097bc2ea5139 | <ide><path>packages/react-dom/src/client/ReactDOMRoot.js
<ide> export type HydrateRootOptions = {
<ide> // Options for all roots
<ide> unstable_strictMode?: boolean,
<ide> unstable_concurrentUpdatesByDefault?: boolean,
<add> unstable_transitionCallbacks?: TransitionTracingCallbacks,
<ide> identifierPrefix?: st... | 1 |
Text | Text | use head for links in api docs | 74227bbc4aa3da2446d5d8398081f3225dd68b64 | <ide><path>doc/api/addons.md
<ide> console.log(result);
<ide> [`Worker`]: worker_threads.md#worker_threads_class_worker
<ide> [bindings]: https://github.com/TooTallNate/node-bindings
<ide> [download]: https://github.com/nodejs/node-addon-examples
<del>[examples]: https://github.com/nodejs/nan/tree/master/examples/
<add... | 8 |
PHP | PHP | use morph class as morph type value | f74c73a5ec691285bf79cc59b595fd4e1f39b42b | <ide><path>src/Illuminate/Database/Eloquent/Relations/MorphPivot.php
<ide> class MorphPivot extends Pivot {
<ide> */
<ide> protected function setKeysForSaveQuery(Builder $query)
<ide> {
<del> $query->where($this->morphType, $this->getAttribute($this->morphType));
<add> $query->where($this->morphType, $this->morph... | 1 |
Go | Go | update network settings on container creating | c427131c94369d5c49a4f14d78e6ab9c678e12df | <ide><path>daemon/container_operations_unix.go
<ide> func (daemon *Daemon) updateNetwork(container *container.Container) error {
<ide> return nil
<ide> }
<ide>
<add>// updateContainerNetworkSettings update the network settings
<add>func (daemon *Daemon) updateContainerNetworkSettings(container *container.Container) e... | 4 |
Text | Text | add menu for how pki works | c228931384c7a0eb143cba3a4a4804daa6f79eee | <ide><path>docs/swarm/how-swarm-mode-works/menu.md
<ide> weight=11
<ide>
<ide> * [How nodes work](nodes.md)
<ide> * [How services work](services.md)
<add>* [How PKI works](pki.md) | 1 |
Text | Text | write the rest of part 5 | 3c7105f8bde4064eb1a5aa0c53642cc817f0515f | <ide><path>docs/tutorials/fundamentals/part-1-overview.md
<ide> With that in mind, let's review what we've learned so far:
<ide>
<ide> ## What's Next?
<ide>
<del>Now that you know what the basic pieces of a Redux app are, step ahead to [Part 2](./part-2-concepts-data-flow.md),
<add>Now that you know what the basic pi... | 5 |
Ruby | Ruby | don’t migrate symlinks | b7847e4657a84e80d97ce1582658058eca91cdbf | <ide><path>Library/Homebrew/update_migrator/cache_entries_to_symlinks.rb
<ide> def migrate_cache_entries_to_symlinks(initial_version)
<ide>
<ide> formula_downloaders = if HOMEBREW_CACHE.directory?
<ide> HOMEBREW_CACHE.children
<add> .reject(&:symlink?)
<ide> .select(&:f... | 1 |
Text | Text | add missing status to dep0121 | 58fb6f5f0dd2af6e583453fff201f7a32dee58e5 | <ide><path>doc/api/deprecations.md
<ide> changes:
<ide> description: Runtime deprecation.
<ide> -->
<ide>
<add>Type: Runtime
<add>
<ide> The undocumented `net._setSimultaneousAccepts()` function was originally
<ide> intended for debugging and performance tuning when using the `child_process`
<ide> and `cluster` mo... | 1 |
Javascript | Javascript | add tests for worker-executor | 80eaccc467458b27dd001bf49a2476062289a32d | <ide><path>client/src/templates/Challenges/utils/worker-executor.test.js
<add>/* global expect, jest */
<add>
<add>import createWorker from './worker-executor';
<add>
<add>function mockWorker({ init, postMessage, terminate } = {}) {
<add> global.Worker = jest.fn(function() {
<add> setImmediate(
<add> (init && ... | 1 |
Go | Go | add parserepositorytag tests | 3852d0599097581d5dc0bcfcb7aa010d564beb9a | <ide><path>utils/utils.go
<ide> type JSONMessage struct {
<ide> Status string `json:"status,omitempty"`
<ide> Progress string `json:"progress,omitempty"`
<ide> Error string `json:"error,omitempty"`
<del> ID string `json:"id,omitempty"`
<del> Time int64 `json:"time,omitempty"`
<add> ID string `json:"id,o... | 2 |
Ruby | Ruby | use git to do the diff filtering | 845c4b7f2f7e050b1495051f91b7246b8af89f4a | <ide><path>Library/Contributions/cmd/brew-pull.rb
<ide> def tap arg
<ide> end
<ide>
<ide> Utils.popen_read(
<del> "git", "diff-tree", "-r", "--name-status",
<del> revision, "HEAD", "--", formula_dir, &:read
<add> "git", "diff-tree", "-r", "--name-only",
<add> "--diff-filter=AM", revision, "HEAD", "--",... | 1 |
Javascript | Javascript | replace function with es6 arrow function | a177708e338cc770f15405d5b706da094f101aa0 | <ide><path>test/parallel/test-http-pause.js
<ide> let resultServer = '';
<ide> const expectedClient = 'Response Body from Server';
<ide> let resultClient = '';
<ide>
<del>const server = http.createServer(function(req, res) {
<add>const server = http.createServer((req, res) => {
<ide> console.error('pause server requ... | 1 |
Java | Java | fix observable.singleelement doc | cd45675960ad745c20e60a4eebb083de675f785b | <ide><path>src/main/java/io/reactivex/Observable.java
<ide> public final Observable<T> share() {
<ide> }
<ide>
<ide> /**
<del> * Returns an Observable that emits the single item emitted by this Observable if this Observable
<add> * Returns a Maybe that emits the single item emitted by this Observable i... | 1 |
Ruby | Ruby | use a single teardown. (#475) | b55250c44eacd49646407b26a73753965d4d36d0 | <ide><path>Library/Homebrew/test/test_integration_cmds.rb
<ide>
<ide> class IntegrationCommandTests < Homebrew::TestCase
<ide> def setup
<del> @formula_files = []
<ide> @cmd_id_index = 0 # Assign unique IDs to invocations of `cmd_output`.
<ide> (HOMEBREW_PREFIX/"bin").mkpath
<ide> FileUtils.touch HOME... | 1 |
PHP | PHP | support nullable unique indexes in sql server | d460423467951c935ef00288d04fe3fd04b1794e | <ide><path>src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php
<ide> public function compilePrimary(Blueprint $blueprint, Fluent $command)
<ide> */
<ide> public function compileUnique(Blueprint $blueprint, Fluent $command)
<ide> {
<del> return sprintf('create unique index %s on %s (%s)',
<a... | 1 |
Java | Java | fix potential security risk when using spring oxm | 7576274874deeccb6da6b09a8d5bd62e8b5538b7 | <ide><path>spring-web/src/main/java/org/springframework/http/converter/xml/Jaxb2CollectionHttpMessageConverter.java
<ide> protected void writeToResult(T t, HttpHeaders headers, Result result) throws IOE
<ide> * @return the created factory
<ide> */
<ide> protected XMLInputFactory createXmlInputFactory() {
<del> re... | 1 |
Python | Python | add error message for conv2dtranspose on theano | 36317214ae7d7d1fff953232649651fb7b6aff92 | <ide><path>keras/backend/theano_backend.py
<ide> def conv2d_transpose(x, kernel, output_shape, strides=(1, 1),
<ide> data_format: "channels_last" or "channels_first".
<ide> Whether to use Theano or TensorFlow data format
<ide> in inputs/kernels/outputs.
<add>
<add> # Raises
<add> V... | 1 |
Go | Go | remove code unreachable using go 1.1 | 50b70eeb6830040db73c8b2b389d881a3200de8d | <ide><path>container.go
<ide> func (container *Container) waitLxc() error {
<ide> }
<ide> time.Sleep(500 * time.Millisecond)
<ide> }
<del> panic("Unreachable")
<ide> }
<ide>
<ide> func (container *Container) monitor() {
<ide> func (container *Container) WaitTimeout(timeout time.Duration) error {
<ide> case <-don... | 4 |
Text | Text | remove repeated word | 1cf55e660daf65ff45d72729f620f339b8215299 | <ide><path>activesupport/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<del>* Add ActiveSupport::Deprecations.behavior = :slience to to completely ignore *twinturbo*
<add>* Add ActiveSupport::Deprecations.behavior = :slience to completely ignore *twinturbo*
<ide>
<ide> * Make Module#delegate stop u... | 1 |
PHP | PHP | fix tests for database quoting situation | 9bb8f68334c9cd904b8111804749de52fa5863dc | <ide><path>tests/TestCase/ORM/QueryTest.php
<ide> public function testJsonSerialize() {
<ide> public function testAutoFields() {
<ide> $table = TableRegistry::get('Articles');
<ide> $result = $table->find('all')
<del> ->select(['myField' => 'id + 20'])
<add> ->select(['myField' => '(SELECT 20)'])
<ide> ->au... | 1 |
PHP | PHP | throw exceptions when cell methods are missing | 4ef17b5ab4a335f297a1332a6dba527b09feda54 | <ide><path>src/View/CellTrait.php
<ide> public function cell($cell, $data = [], $options = []) {
<ide> $data = array_values($data);
<ide> }
<ide>
<del> call_user_func_array([$cellInstance, $action], $data);
<del>
<del> return $cellInstance;
<add> try {
<add> $reflect = new \ReflectionMethod($cellInstance, $a... | 2 |
Ruby | Ruby | drop string allocations for each resource | 01d88953e2b4049c0a13f6f2343403bd71696b31 | <ide><path>actionpack/lib/action_dispatch/journey/nodes/node.rb
<ide> def type; :#{t.upcase}; end
<ide> class Symbol < Terminal # :nodoc:
<ide> attr_accessor :regexp
<ide> alias :symbol :regexp
<add> attr_reader :name
<ide>
<ide> DEFAULT_EXP = /[^\.\/\?]+/
<ide> def initial... | 1 |
Ruby | Ruby | add test path to load_path to fix load error | 74fbad7d1479e7cd6b024fa72074d17757373a8a | <ide><path>actionpack/test/ts_isolated.rb
<add>$:.unshift(File.dirname(__FILE__))
<ide> $:.unshift(File.dirname(__FILE__) + '/../../activesupport/lib')
<ide>
<ide> require 'test/unit' | 1 |
Ruby | Ruby | allow passing taps as arguments | e79f62b2ead91decb3a255167d6a87020a0ad7ab | <ide><path>Library/Homebrew/cmd/style.rb
<del>#: * `style` [`--fix`] [`--display-cop-names`] [<formulae>|<files>]:
<add>#: * `style` [`--fix`] [`--display-cop-names`] [<files>|<taps>|<formulae>]:
<ide> #: Check formulae or files for conformance to Homebrew style guidelines.
<ide> #:
<del>#: <formulae> is a list... | 1 |
Javascript | Javascript | replace anonymous functions by arrows | 236511586833d180c230b78027126cc42edeca49 | <ide><path>test/parallel/test-https-agent.js
<ide> const options = {
<ide> };
<ide>
<ide>
<del>const server = https.Server(options, function(req, res) {
<add>const server = https.Server(options, (req, res) => {
<ide> res.writeHead(200);
<ide> res.end('hello world\n');
<ide> });
<ide> const N = 4;
<ide> const M = ... | 1 |
Text | Text | add vestiaire collective to inthewild.md | 2846e03f1ccda2b00de6f7cc906c096f83b976cb | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [VeeR VR](https://veer.tv) [[@pishilong](https://github.com/pishilong)]
<ide> 1. [Veikkaus](https://www.veikkaus.fi) [[@hixus](https://github.com/hixus)]
<ide> 1. [Vente-Exclusive.com](http://www.vente-exclusive.com/) [[@alexvanboxel](https... | 1 |
Text | Text | use pdfjslib instead of pdfjs in examples | 362da3bc050dabf3e9e4bb6cfaad51e94a04373c | <ide><path>docs/contents/examples/index.md
<ide> This tutorial shows how PDF.js can be used as a library in a web browser.
<ide> The object structure of PDF.js loosely follows the structure of an actual PDF. At the top level there is a document object. From the document, more information and individual pages can be fet... | 1 |
Text | Text | add orangebank to the official users of airflow | e0c0e0190b3c0d611da519236d090495f764ce47 | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> 1. [OneFineStay](https://www.onefinestay.com) [[@slangwald](https://github.com/slangwald)]
<ide> 1. [Open Knowledge International](https://okfn.org) [@vitorbaptista](https://github.com/vitorbaptista)
<ide> 1. [Optum](https://www.optum.com/) - [Uni... | 1 |
Go | Go | remove unnecessary var block in monitorexec | 445675e8081ae1e911db2ebd57efd51329574cdf | <ide><path>daemon/exec.go
<ide> func (d *Daemon) containerExec(container *Container, ec *ExecConfig) error {
<ide> }
<ide>
<ide> func (d *Daemon) monitorExec(container *Container, ExecConfig *ExecConfig, callback execdriver.DriverCallback) error {
<del> var (
<del> err error
<del> exitCode int
<del> )
<ide> pi... | 1 |
Python | Python | raise parseerror if can't handle the uploaded file | a514232815a82ad8a4dc1819afa0d62f9bab1323 | <ide><path>rest_framework/parsers.py
<ide> def parse(self, stream, media_type=None, parser_context=None):
<ide> file_obj = handler.file_complete(counters[i])
<ide> if file_obj:
<ide> return DataAndFiles(None, {'file': file_obj})
<add> raise ParseError("FileUpload parse err... | 1 |
PHP | PHP | policy command | 2497ad869a689464e18549d2cf8558df6085f3a2 | <ide><path>src/Illuminate/Foundation/Console/PolicyMakeCommand.php
<ide> protected function replaceModel($stub, $model)
<ide>
<ide> $stub = str_replace('DummyUser', $dummyUser, $stub);
<ide>
<del> return str_replace('DocDummyPluralModel', Str::snake(Str::plural($dummyModel), ' '), $stub);
<add> ... | 1 |
Ruby | Ruby | remove extra white spaces on actionpack docs | fcdb5dc55729f4939e9a5064dfee8eef2dec4316 | <ide><path>actionpack/lib/abstract_controller/base.rb
<ide> class ActionNotFound < StandardError; end
<ide> # <tt>AbstractController::Base</tt> is a low-level API. Nobody should be
<ide> # using it directly, and subclasses (like ActionController::Base) are
<ide> # expected to provide their own +render+ method, si... | 22 |
Javascript | Javascript | fix handler called with empty stats | 51057e781cb433fe60e727b08931289593ef1512 | <ide><path>lib/MultiCompiler.js
<ide> module.exports = class MultiCompiler {
<ide> run(node.compiler, nodeDone.bind(null, node));
<ide> }
<ide> if (!errored && running === 0) {
<del> callback(
<del> null,
<del> new MultiStats(
<del> nodes
<del> .map(node => {
<del> const result = ... | 1 |
Text | Text | add drf_ujson2 reference | 7f3a3557a050147dd2420aa41d1bf7ddd7f9818e | <ide><path>docs/api-guide/renderers.md
<ide> Comma-separated values are a plain-text tabular data format, that can be easily
<ide>
<ide> ## UltraJSON
<ide>
<del>[UltraJSON][ultrajson] is an optimized C JSON encoder which can give significantly faster JSON rendering. [Jacob Haslehurst][hzy] maintains the [drf-ujson-re... | 2 |
Text | Text | add 2.12.0-beta.2 to changelog.md | fea98bb3d4c8bf0069f15c00083a2d28b35c18b6 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.12.0-beta.2 (February 16, 2017)
<add>
<add>- [#14872](https://github.com/emberjs/ember.js/pull/14872) / [#14871](https://github.com/emberjs/ember.js/pull/14871) / [#14883](https://github.com/emberjs/ember.js/pull/14883) [PERF] Simplify action event handl... | 1 |
Javascript | Javascript | accept array of protocols in tlssocket | 291ff72f859df3c4c3849021419f37cd542840a6 | <ide><path>lib/_tls_wrap.js
<ide> function initRead(tls, wrapped) {
<ide> * Provides a wrap of socket stream to do encrypted communication.
<ide> */
<ide>
<del>function TLSSocket(socket, options) {
<del> if (options === undefined)
<del> this._tlsOptions = {};
<del> else
<del> this._tlsOptions = options;
<add... | 2 |
Mixed | Python | fix long line, tests | b9e5259aeb28f59c9735f340581a8b1d2f45d307 | <ide><path>DIRECTORY.md
<ide> * [Hamiltonian Cycle](https://github.com/TheAlgorithms/Python/blob/master/backtracking/hamiltonian_cycle.py)
<ide> * [Minimax](https://github.com/TheAlgorithms/Python/blob/master/backtracking/minimax.py)
<ide> * [N Queens](https://github.com/TheAlgorithms/Python/blob/master/backtrack... | 5 |
Javascript | Javascript | move ishostcomponent branches out of bailout | 9a210114e464d717e0ba9f2d3e5d936adfbad1db | <ide><path>src/renderers/shared/fiber/ReactFiberBeginWork.js
<ide> module.exports = function<T, P, I, TI, C, CX>(
<ide> }
<ide>
<ide> function updateHostComponent(current, workInProgress) {
<add> pushHostContext(workInProgress);
<add>
<ide> let nextProps = workInProgress.pendingProps;
<ide> const prevPr... | 1 |
PHP | PHP | fix failing tests | 5db54e77910ba1ccf6469326737501ad096eb308 | <ide><path>tests/TestCase/View/Helper/FlashHelperTest.php
<ide> public function testFlash() {
<ide>
<ide> $result = $this->Flash->render('notification');
<ide> $expected = [
<del> 'tag' => 'div',
<del> 'id' => 'notificationLayout',
<del> 'child' => []
<add> 'div' => ['id' => 'notificationLayout'],
<add> ... | 1 |
Text | Text | fix typo line 49 | a4fe23e9124a7c9e71679f8b4ef6bcd2143ffc51 | <ide><path>guide/english/javascript/falsy-values/index.md
<ide> if (![]) // <-- falsy, will also NOT run code in if-block
<ide>
<ide> ## Caveat
<ide>
<del>Be aware of the data type when evaluating a value in a Boolean context. If the data type of the value is meant to be a _number_, the truthy/falsy evalution can res... | 1 |
Javascript | Javascript | remove unused formhelper functions | dea4e5137157697cee0452df0f3ad9b899d8d6e7 | <ide><path>client/src/components/formHelpers/index.js
<ide> import normalizeUrl from 'normalize-url';
<del>import isURL from 'validator/lib/isURL';
<ide>
<ide> export { default as BlockSaveButton } from './BlockSaveButton.js';
<ide> export { default as BlockSaveWrapper } from './BlockSaveWrapper.js';
<ide> export { de... | 1 |
Ruby | Ruby | allow missing libraries | e7b3b8e55985b8e4ab41973dfbd76904d7fd3b91 | <ide><path>Library/Homebrew/formula.rb
<ide> def link_overwrite?(path)
<ide> end
<ide> end
<ide>
<add> # Whether this {Formula} is allowed to have broken linkage.
<add> # Defaults to false.
<add> # @return [Boolean]
<add> def allow_missing_libs?
<add> false
<add> end
<add>
<ide> # Whether this {Formula... | 2 |
Java | Java | fix typo in java docs | d1c2458930bf86c7ceff054c1d9ce5ccfa84d689 | <ide><path>template/android/app/src/main/java/com/helloworld/MainActivity.java
<ide> protected String getMainComponentName() {
<ide>
<ide> /**
<ide> * Returns the instance of the {@link ReactActivityDelegate}. There the RootView is created and
<del> * you can specify the rendered you wish to use (Fabric or the ... | 1 |
Java | Java | fix touch inspector when using nodes | f236667a17091569fbe1aed4f666fd7bddca0708 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java
<ide> public void handleTouchEvent(MotionEvent ev, EventDispatcher eventDispatcher) {
<ide> ev.getX(),
<ide> ev.getY(),
<ide> mRootViewGroup,
<del> mTargetCoordinates);
<add> mTargetCoordinate... | 2 |
Javascript | Javascript | increase loop protect timeout | d6508ac080c6f482ad07c3f71abb0602c84637c7 | <ide><path>public/js/lib/loop-protect/loop-protect.js
<ide> if (typeof DEBUG === 'undefined') { DEBUG = true; }
<ide> var reSingle = /\b(for|while|do)\b/;
<ide> var labelRe = /\b([a-z_]{1}\w+:)/i;
<ide> var comments = /(?:\/\*(?:[\s\S]*?)\*\/)|(?:([\s;])+\/\/(?:.*)$)/gm;
<add> var loopTimeout = 500;
<ide>
<ide>... | 1 |
Mixed | Ruby | add support for other types of routing constraints | 90d2802b71a6e89aedfe40564a37bd35f777e541 | <ide><path>actionpack/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Add support for routing constraints other than Regexp and String.
<add> For example this now allows the use of arrays like this:
<add>
<add> get '/foo/:action', to: 'foo', constraints: { subdomain: %w[www admin] }
<add>
<a... | 5 |
Ruby | Ruby | use weakref to avoid leaking connection pools | 6302e56d6c1fec048f6438d9f1ac6a8cfaed7eb9 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
<ide> require "thread"
<ide> require "concurrent/map"
<ide> require "monitor"
<add>require "weakref"
<ide>
<ide> module ActiveRecord
<ide> # Raised when a connection could not be obtained within the connection
<ide> def initial... | 1 |
Python | Python | fix usage example to specify a checkpoint to load | d906b1357be51631fa934d61fe13d2e7fc3823bc | <ide><path>research/attention_ocr/python/demo_inference.py
<ide>
<ide> Usage:
<ide> python demo_inference.py --batch_size=32 \
<add> --checkpoint=model.ckpt-399731\
<ide> --image_path_pattern=./datasets/data/fsns/temp/fsns_train_%02d.png
<ide> """
<ide> import numpy as np | 1 |
Javascript | Javascript | use writablefinished instead of _writablestate | f11a4ec638b2e159d6ed8840e2e6f1cc972f41a3 | <ide><path>lib/internal/http2/core.js
<ide> function closeStream(stream, code, rstStreamStatus = kSubmitRstStream) {
<ide> stream.setTimeout(0);
<ide> stream.removeAllListeners('timeout');
<ide>
<del> const { ending, finished } = stream._writableState;
<add> const { ending } = stream._writableState;
<ide>
<ide>... | 1 |
Python | Python | move serialization functions to util | c91b121aebb55fdfe3bc36457235bc93c2596849 | <ide><path>spacy/_ml.py
<ide>
<ide> import numpy
<ide> import io
<del>import msgpack
<del>import msgpack_numpy
<del>msgpack_numpy.patch()
<del>
<del>
<del>def model_to_bytes(model):
<del> weights = []
<del> metas = []
<del> dims = []
<del> queue = [model]
<del> i = 0
<del> for layer in queue:
<del> ... | 3 |
Python | Python | update the reference of batch normalization | aea00258e7c8548bc0b9b91731fe606ce79509f0 | <ide><path>keras/layers/normalization.py
<ide> class BatchNormalization(Layer):
<ide> Same shape as input.
<ide>
<ide> # References
<del> - [Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift](http://arxiv.org/pdf/1502.03167v3.pdf)
<add> - [Batch Norm... | 1 |
Text | Text | use docs.brew.sh link | d05b8522d5f51db5ca2f75fe322848df9b8ff88b | <ide><path>README.md
<ide> # Homebrew
<ide> [](https://github.com/Homebrew/brew/releases)
<ide>
<del>Features, usage and installation instructions are [summarised on the homepage](https://brew.sh). Terminology (e.g. the difference between a Cell... | 1 |
Python | Python | fix black test | 1c681c010cdc75ddd1447c6843b5dbde8e030a73 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def create_node(
<ide> if ex_os_scheduler_hints:
<ide> data["os:scheduler_hints"] = ex_os_scheduler_hints
<ide>
<del> resp = self.connection.request("/servers", method="POST", data=data,
<del> header... | 1 |
Ruby | Ruby | fix bug with printing pinned dependencies | a26390be05c5351d0b1cf75557a03c99aed5055f | <ide><path>Library/Homebrew/cmd/upgrade.rb
<ide> def check_dependents(formulae_to_install)
<ide> if pinned_dependents.present?
<ide> plural = "dependent".pluralize(pinned_dependents.count)
<ide> ohai "Not upgrading #{pinned_dependents.count} pinned #{plural}:"
<del> puts pinned_dependents.map do |f... | 1 |
Ruby | Ruby | remove version conditional for find_template_paths | dc7ed96adc4e0b4c8a2cc524bbfc7172c007ca74 | <ide><path>actionview/lib/action_view/template/resolver.rb
<ide> def query(path, details, formats)
<ide> }
<ide> end
<ide>
<del> if RUBY_VERSION >= '2.2.0'
<del> def find_template_paths(query)
<del> Dir[query].reject { |filename|
<del> File.directory?(filename) ||
<del> # d... | 1 |
Go | Go | remove timeout shared function | 9dc7d07fc11163205985b7d56742a4f9b89d7e09 | <ide><path>api/client/lib/request.go
<ide> import (
<ide> "net/http"
<ide> "net/url"
<ide> "strings"
<del>
<del> "github.com/docker/docker/utils"
<ide> )
<ide>
<ide> // serverResponse is a wrapper for http API responses.
<ide> func (cli *Client) sendClientRequest(method, path string, query url.Values, body
<ide> }... | 3 |
Text | Text | simplify challenge wording | 38c99d7ff55f98e214ac1ef426cea9719f10556c | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use--to-import-everything-from-a-file.english.md
<ide> challengeType: 1
<ide>
<ide> ## Description
<ide> <section id='description'>
<del>Suppose you have a file that you wish to import all of its contents into the current file. T... | 1 |
PHP | PHP | check optional status on policies | 6197db7f3cfc8086d6beb486800b0d107cb9e2ce | <ide><path>src/Illuminate/Auth/Access/Gate.php
<ide> protected function allowsGuests($ability, $arguments)
<ide> * @return bool
<ide> */
<ide> protected function policyAllowsGuests($policy, $ability, $arguments)
<add> {
<add> return $this->methodAllowsGuests(
<add> $policy, $this->for... | 1 |
Python | Python | fix issues with color jitter and random erase | d4053d80b551f731ceac6dad9a48efb12408c4fe | <ide><path>official/vision/beta/configs/common.py
<ide> class RandAugment(hyperparams.Config):
<ide> magnitude: float = 10
<ide> cutout_const: float = 40
<ide> translate_const: float = 10
<add> magnitude_std: float = 0.0
<ide> prob_to_apply: Optional[float] = None
<ide> exclude_ops: List[str] = dataclasses.f... | 5 |
Python | Python | fix adam to match the original paper | 2662d81a9c925501831f0acb805c9e8adcde0a32 | <ide><path>keras/optimizers.py
<ide> def get_updates(self, params, cost):
<ide> m_b_t = m_t / (1 - beta_1_t)
<ide> v_b_t = v_t / (1 - beta_2_t)
<ide>
<del> p_t = p - self.lr * m_b_t / (T.sqrt(v_t) + self.epsilon)
<add> p_t = p - self.lr * m_b_t / (T.sqrt(v_b_t) + self.epsi... | 1 |
PHP | PHP | add the ability to set a callable response body | 5b1db938d89dbecd3a50e1bc2e60a931925746f1 | <ide><path>src/Network/Response.php
<ide> class Response
<ide> protected $_headers = [];
<ide>
<ide> /**
<del> * Buffer string for response message
<add> * Buffer string or callable for response message
<ide> *
<ide> * @var string
<ide> */
<ide> protected function _sendHeader($name, $val... | 2 |
Javascript | Javascript | simplify empty handling | 72455bd0ad39a28ca7a8f6152789b0809b31068b | <ide><path>moment.js
<ide> if (m._strict) {
<ide> m._isValid = m._isValid &&
<ide> m._pf.charsLeftOver === 0 &&
<del> m._pf.unusedTokens.length == 0;
<add> m._pf.unusedTokens.length === 0;
<ide> }
<ide> }
<ide> ... | 1 |
Text | Text | add resource to naming routes override example | 5e573579b51de14031695bc2192c47781954c8d5 | <ide><path>guides/source/routing.md
<ide> You can also use this to override routing methods defined by resources, like thi
<ide>
<ide> ```ruby
<ide> get ':username', to: 'users#show', as: :user
<add>resources :users
<ide> ```
<ide>
<ide> This will define a `user_path` method that will be available in controllers, hel... | 1 |
Ruby | Ruby | use regex in brew-audit and add path concat test | 2bac03ef92d747e8a8d254976d111f3409766e3d | <ide><path>Library/Contributions/examples/brew-audit.rb
<ide> def ff
<ide> end
<ide>
<ide> ff.each do |f|
<add> text = ""
<add> File.open(f.path, "r") { |afile| text = afile.read }
<add>
<ide> problems = []
<del> unless `grep "# depends_on 'cmake'" "#{f.path}"`.strip.empty?
<del> problems << " * Commented cmak... | 1 |
Python | Python | fix ident format when using http_x_forwarded_for | d6d08db0dd16f4a4a93b69ecf1c5948f375335b0 | <ide><path>rest_framework/throttling.py
<ide> def get_ident(self, request):
<ide> client_addr = addrs[-min(num_proxies, len(xff))]
<ide> return client_addr.strip()
<ide>
<del> return xff if xff else remote_addr
<add> return ''.join(xff.split()) if xff else remote_addr
<ide>
<ide>... | 1 |
Python | Python | fix ufunc api indexes | c009920808eb76f3c65847cee251d2e258363b08 | <ide><path>numpy/core/code_generators/numpy_api.py
<ide> 'PyArray_TimedeltaStructToTimedelta': 221,
<ide> }
<ide>
<del>ufunc_api = {
<del> 'PyUFunc_FromFuncAndData': 0,
<del> 'PyUFunc_RegisterLoopForType': 1,
<del> 'PyUFunc_GenericFunction': 2,
<del> 'Py... | 1 |
Javascript | Javascript | respect the interceptor.$stateful flag | de74034ddf6f92505ccdb61be413a6df2c723f87 | <ide><path>src/ng/parse.js
<ide> function $ParseProvider() {
<ide> var lexer = new Lexer($parseOptions);
<ide> var parser = new Parser(lexer, $filter, $parseOptions);
<ide> parsedExpression = parser.parse(exp);
<del> if (parsedExpression.constant) {
<del> pars... | 2 |
Javascript | Javascript | support hemisphere light probe | 6e9861b48e727e71b8372104164042ad43d168cc | <ide><path>src/lights/LightProbe.js
<ide> LightProbe.prototype = Object.assign( Object.create( Light.prototype ), {
<ide>
<ide> isLightProbe: true,
<ide>
<add> setAmbientProbe: function ( color, intensity ) {
<add>
<add> this.color.set( color );
<add>
<add> this.intensity = intensity !== undefined ? intensity : 1;... | 1 |
PHP | PHP | add test for higher order partition | cb74be855108481fec222f02910f14c64d6ae727 | <ide><path>tests/Support/SupportCollectionTest.php
<ide> public function testPartitionEmptyCollection()
<ide> return true;
<ide> }));
<ide> }
<add>
<add> public function testHigherOrderPartition()
<add> {
<add> $courses = new Collection([
<add> 'a' => ['free' => true], 'b... | 1 |
Javascript | Javascript | add start and end events to orbitcontrols | 5ea0d096d5abbd8d340ee55f3d99ddfb09470587 | <ide><path>examples/js/controls/OrbitControls.js
<ide> THREE.OrbitControls = function ( object, domElement ) {
<ide> // events
<ide>
<ide> var changeEvent = { type: 'change' };
<add> var startEvent = { type: 'start'};
<add> var endEvent = { type: 'end'};
<ide>
<ide> this.rotateLeft = function ( angle ) {
<ide>
<i... | 1 |
PHP | PHP | use provider for consistent language | 3616c2d43a22df8f6d87d788918a05b22c5c29e4 | <ide><path>src/Illuminate/Auth/AuthManager.php
<ide> protected function callCustomCreator($name, array $config)
<ide> */
<ide> public function createSessionDriver($name, $config)
<ide> {
<del> $provider = $this->createUserProvider($config['source']);
<add> $provider = $this->createUserProvide... | 3 |
Ruby | Ruby | make use of severity levels | 978c49ea6a969fe040ad15dbda78e43ca5afc069 | <ide><path>activerecord/test/cases/log_subscriber_test.rb
<ide>
<ide> class LogSubscriberTest < ActiveRecord::TestCase
<ide> include ActiveSupport::LogSubscriber::TestHelper
<add> include ActiveSupport::BufferedLogger::Severity
<ide>
<ide> def setup
<ide> @old_logger = ActiveRecord::Base.logger
<ide> def tes... | 1 |
Go | Go | integrate local datascope network with swarm | b34d3e730fe3eee4b058e4dc165a7d4964e00a2a | <ide><path>api/types/swarm/network.go
<ide> package swarm
<ide>
<add>import (
<add> "github.com/docker/docker/api/types/network"
<add>)
<add>
<ide> // Endpoint represents an endpoint.
<ide> type Endpoint struct {
<ide> Spec EndpointSpec `json:",omitempty"`
<ide> type Network struct {
<ide> // NetworkSpec... | 6 |
Text | Text | fix title heading level in readme.md | ccdba9ff6f8c96439e4f1bc57a9388997cf94f66 | <ide><path>readme.md
<del>## Laravel PHP Framework
<add># Laravel PHP Framework
<ide>
<ide> [](https://travis-ci.org/laravel/framework)
<ide> [](https://packagist.org/packages/laravel/fra... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.