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 | expand instructions for chai assertion challenges | 9899035f340a1881b39a1267839873b7f745ed4c | <ide><path>curriculum/challenges/english/06-information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.english.md
<ide> challengeType: 2
<ide> ## Description
<ide> <section id='description'>
<ide> As a reminder, this project is being built u... | 16 |
Mixed | Python | update default projects repo [ci skip] | 908f3a449411cd1cedab93ed0e9e7ee0f0f9248d | <ide><path>spacy/about.py
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json"
<del>__projects__ = "https://github.com/explosion/spacy-boilerplates"
<... | 3 |
Javascript | Javascript | add `getarray` method to `dict` | 75557d27d156bac9c03417a79d12c349be478593 | <ide><path>src/core/obj.js
<ide> var Dict = (function DictClosure() {
<ide> return Promise.resolve(value);
<ide> },
<ide>
<add> // Same as get(), but dereferences all elements if the result is an Array.
<add> getArray: function Dict_getArray(key1, key2, key3) {
<add> var value = this.get(key1, key... | 1 |
Python | Python | fix string concats left over by black | 53c893b646252d610e877eb9385e9e250a1ae5e1 | <ide><path>examples/tutorial/flaskr/blog.py
<ide> def create():
<ide> else:
<ide> db = get_db()
<ide> db.execute(
<del> "INSERT INTO post (title, body, author_id)" " VALUES (?, ?, ?)",
<add> "INSERT INTO post (title, body, author_id) VALUES (?, ?, ?)",
<ide>... | 10 |
Javascript | Javascript | check that modulestoload isarray | 5abf593e6b3535cc836c99db4018a4e2fc2dbc3b | <ide><path>src/auto/injector.js
<ide> function createInjector(modulesToLoad, strictDi) {
<ide> // Module Loading
<ide> ////////////////////////////////////
<ide> function loadModules(modulesToLoad) {
<add> assertArg(isUndefined(modulesToLoad) || isArray(modulesToLoad), 'modulesToLoad', 'not an array');
<ide> ... | 2 |
Javascript | Javascript | add missing semicolon in editorcontrols | b9d8e2168c47b5b665d85e65b392eb2ac227bd0a | <ide><path>examples/js/controls/EditorControls.js
<ide> THREE.EditorControls = function ( object, domElement ) {
<ide>
<ide> this.enabled = true;
<ide> this.center = new THREE.Vector3();
<del> this.panSpeed = 0.001
<del> this.zoomSpeed = 0.001
<del> this.rotationSpeed = 0.005
<add> this.panSpeed = 0.001;
<add> this.... | 1 |
Text | Text | move bnoordhuis to emeritus | c0f6ff23d5e265ec3b7f9af79a23ad668b963918 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Bradley Farias** <bradley.meck@gmail.com>
<ide> * [bmeurer](https://github.com/bmeurer) -
<ide> **Benedikt Meurer** <benedikt.meurer@gmail.com>
<del>* [bnoordhuis](https://github.com/bnoordhuis) -
<del>**Ben ... | 1 |
Text | Text | add note about doc generation | cd4e07a85e6161111016ca6d811d97e59368971a | <ide><path>docs/README.md
<ide> you can install them with the following command, at the root of the code reposit
<ide> pip install -e ".[docs]"
<ide> ```
<ide>
<add>---
<add>**NOTE**
<add>
<add>You only need to generate the documentation to inspect it locally (if you're planning changes and want to
<add>check how the... | 1 |
Ruby | Ruby | create .zshrc when necessary | 70025458f36c12768c603a3c9cc0f0faf32ccd98 | <ide><path>Library/Homebrew/utils.rb
<ide> def interactive_shell f=nil
<ide> ENV['HOMEBREW_DEBUG_INSTALL'] = f.full_name
<ide> end
<ide>
<add> if ENV["SHELL"].include?("zsh") && ENV["HOME"].start_with?(HOMEBREW_TEMP.resolved_path.to_s)
<add> FileUtils.touch "#{ENV["HOME"]}/.zshrc"
<add> end
<add>
<ide> Pr... | 1 |
Javascript | Javascript | fix a space | 74cc4b17bb52a3238cca4dba8cafab656027a879 | <ide><path>examples/js/loaders/AssimpLoader.js
<ide> mesh.mIndexArray.push( f.mIndices[ 0 ] );
<ide>
<ide> } else {
<add>
<ide> throw ( new Error( "Sorry, can't currently triangulate polys. Use the triangulate preprocessor in Assimp." ))
<add>
<ide> }
<ide>
<ide> | 1 |
Python | Python | clarify intent of integer-naming code | 4153c7371f6da5d4b575d8d7f9a486a83ed6f1e4 | <ide><path>numpy/core/numerictypes.py
<ide> def _add_aliases():
<ide> # is long, longlong, int, short, char.
<ide> def _add_integer_aliases():
<ide> _ctypes = ['LONG', 'LONGLONG', 'INT', 'SHORT', 'BYTE']
<add> seen_bits = set()
<ide> for ctype in _ctypes:
<ide> i_info = typeinfo[ctype]
<ide> ... | 1 |
Ruby | Ruby | use forwardable to methods delegated to #path | 245944d359f366aaf511f133e11c98ec14cd50b1 | <ide><path>Library/Homebrew/keg.rb
<ide> def self.all
<ide> attr_reader :path, :name, :linked_keg_record, :opt_record
<ide> protected :path
<ide>
<add> extend Forwardable
<add>
<add> def_delegators :path,
<add> :to_s, :hash, :abv, :disk_usage, :file_count, :directory?, :exist?, :/,
<add> :join, :rename, :f... | 1 |
Go | Go | fix npe due to null value returned by ep.iface() | c7f0b0152e13c95d53c9ce49a318effa50053239 | <ide><path>libnetwork/agent.go
<ide> func (ep *endpoint) deleteDriverInfoFromCluster() error {
<ide> }
<ide>
<ide> func (ep *endpoint) addServiceInfoToCluster(sb *sandbox) error {
<del> if ep.isAnonymous() && len(ep.myAliases) == 0 || ep.Iface().Address() == nil {
<add> if ep.isAnonymous() && len(ep.myAliases) == 0 ||... | 3 |
Javascript | Javascript | fix exception when rotate page without a document | a059f9fcbbdbe1f0e08b9fbd658685ecd1fc0edc | <ide><path>web/pdf_viewer.js
<ide> var PDFViewer = (function pdfViewer() {
<ide> */
<ide> scrollPageIntoView: function PDFViewer_scrollPageIntoView(pageNumber,
<ide> dest) {
<add> if (!this.pdfDocument) {
<add> return;
<add> }
<add>... | 1 |
Text | Text | add clarum to companies using apache airflow | 6a79c29493887ee596608de11f1fc8b893b5086f | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [Civey](https://civey.com/) [[@WesleyBatista](https://github.com/WesleyBatista)]
<ide> 1. [Clairvoyant](https://clairvoyantsoft.com) [[@shekharv](https://github.com/shekharv)]
<ide> 1. [Clarity AI](https://clarity.ai/) [[@clarityai-eng/data... | 1 |
PHP | PHP | allow plain text emails only | bcb60d1538df19c31825d19df2d5717e329ec8b0 | <ide><path>src/Illuminate/Mail/Mailer.php
<ide> public function alwaysFrom($address, $name = null)
<ide> $this->from = compact('address', 'name');
<ide> }
<ide>
<add> /**
<add> * Send a new message when only a plain part.
<add> *
<add> * @param string $view
<add> * @param array $data
<add> * @param mixed... | 2 |
Text | Text | remove links to docrails | 6cb1b6724c313c608cf4063fc22886faa19df9be | <ide><path>guides/source/contributing_to_ruby_on_rails.md
<ide> Contributing to the Rails Documentation
<ide> Ruby on Rails has two main sets of documentation: the guides, which help you
<ide> learn about Ruby on Rails, and the API, which serves as a reference.
<ide>
<del>You can help improve the Rails guides by makin... | 1 |
Ruby | Ruby | remove some integration tests | f6bf9893780e17c0ae853a45944229286fbd5f88 | <ide><path>Library/Homebrew/test/cmd/analytics_spec.rb
<ide> end
<ide> end
<ide>
<del> it "fails when running `brew analytics on off`" do
<del> expect { brew "analytics", "on", "off" }
<del> .to output(/Invalid usage/).to_stderr
<del> .and not_to_output.to_stdout
<del> .and be_a_failure
<del> ... | 12 |
Java | Java | update stale javadoc reference | 5b83dbe25af151d183009006b1fe323b2658d025 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java
<ide> public ReactInstanceManagerBuilder setMinTimeLeftInFrameForNonBatchedOperationMs
<ide> * <li> {@link #setApplication}
<ide> * <li> {@link #setCurrentActivity} if the activity has already resumed
<ide> * <li> {@link ... | 1 |
Go | Go | rename some vars that collided with imports | 288cf20f98e1c86c7604032e3a52105618f577b7 | <ide><path>daemon/inspect.go
<ide> func (daemon *Daemon) ContainerInspectCurrent(name string, size bool) (*types.Co
<ide> }
<ide>
<ide> apiNetworks := make(map[string]*networktypes.EndpointSettings)
<del> for name, epConf := range ctr.NetworkSettings.Networks {
<add> for nwName, epConf := range ctr.NetworkSettings.N... | 1 |
Python | Python | remove sqlcommand from sparkcmd documentation | 5cc513263e96d2b780ae78eec23310979879268c | <ide><path>airflow/contrib/operators/qubole_operator.py
<ide> class QuboleOperator(BaseOperator):
<ide> :parameters: any extra args which need to be passed to script (only when
<ide> script_location is supplied
<ide> sparkcmd:
<del> :program: the complete Spark Program in ... | 1 |
Ruby | Ruby | remove dead code | 92ab4d6a8af7654d5d00f3d9047f17106e310118 | <ide><path>activerecord/lib/active_record/associations/builder/collection_association.rb
<ide> def define_callbacks(model, reflection)
<ide> CALLBACKS.each { |callback_name| define_callback(model, callback_name) }
<ide> end
<ide>
<del> def writable?
<del> true
<del> end
<del>
<ide> def wrap_bl... | 1 |
Text | Text | add void pointer to index.md | e73ffaf2fe100b483335347680fff1d511c86277 | <ide><path>guide/english/c/pointers/index.md
<ide> This starts by taking a string (something you'll learn about when you get into a
<ide> ### Const Qualifer
<ide> The qualifier const can be applied to the declaration of any variable to specify that its value will not be changed ( Which depends upon where const variable... | 1 |
Javascript | Javascript | add notes about support and lodash compatibility | 65f800e19ec669ab7d5abbd2f6b82bf60110651a | <ide><path>src/Angular.js
<ide> function extend(dst) {
<ide> * sinceVersion="1.6.5"
<ide> * This function is deprecated, but will not be removed in the 1.x lifecycle.
<ide> * There are edge cases (see {@link angular.merge#known-issues known issues}) that are not
<del>* supported by this function. We suggest
<del>* usin... | 1 |
Text | Text | use serial comma in http docs | ec1c61662eb0483dee256f0fd492c3ce955f1335 | <ide><path>doc/api/http.md
<ide> changes:
<ide> An `IncomingMessage` object is created by [`http.Server`][] or
<ide> [`http.ClientRequest`][] and passed as the first argument to the [`'request'`][]
<ide> and [`'response'`][] event respectively. It may be used to access response
<del>status, headers and data.
<add>statu... | 1 |
Javascript | Javascript | fix regression from duplex ctor assignment | e82d06bef9c2de480f8c21ea195c876811b275e1 | <ide><path>lib/_stream_writable.js
<ide> module.exports = Writable
<ide>
<ide> var util = require('util');
<ide> var Stream = require('stream');
<del>var Duplex = require('_stream_duplex');
<ide>
<ide> util.inherits(Writable, Stream);
<ide>
<ide> function WritableState(options) {
<ide> function Writable(options) {
<... | 1 |
Mixed | Java | implement textalign justify for android o+ | d2153fc58d825006076a3fce12e0f7eb84479132 | <ide><path>RNTester/js/TextExample.android.js
<ide> class TextExample extends React.Component<{}> {
<ide> right right right right right right right right right right right
<ide> right right
<ide> </Text>
<add> <Text style={{textAlign: 'justify'}}>
<add> justify (wor... | 11 |
Ruby | Ruby | use yaml.load_file in database tasks example | b335def167f1141995810d32d700ef3f4d036cd4 | <ide><path>activerecord/lib/active_record/tasks/database_tasks.rb
<ide> class DatabaseNotSupported < StandardError; end # :nodoc:
<ide> # Example usage of +DatabaseTasks+ outside Rails could look as such:
<ide> #
<ide> # include ActiveRecord::Tasks
<del> # DatabaseTasks.database_configuration = YAML.... | 1 |
Java | Java | update operationscan to operatorscan | 13d293fb4a3298b4084008a4e920d2a8c31c6283 | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> import rx.operators.OperationReplay;
<ide> import rx.operators.OperationRetry;
<ide> import rx.operators.OperationSample;
<del>import rx.operators.OperationScan;
<add>import rx.operators.OperatorScan;
<ide> import rx.operators.OperationSequenceEqual;
<ide> i... | 5 |
Javascript | Javascript | add strict equalities in src/core/ps_parser.js | c9fb3e1b6d1c2ea9efe00a0b1ce893d51944be53 | <ide><path>src/core/ps_parser.js
<ide> var PostScriptParser = (function PostScriptParserClosure() {
<ide> this.token = this.lexer.getToken();
<ide> },
<ide> accept: function PostScriptParser_accept(type) {
<del> if (this.token.type == type) {
<add> if (this.token.type === type) {
<ide> t... | 1 |
Javascript | Javascript | read wheelevent.deltamode before deltas | 2f8a0638a6af82aec09c942b40bfd66997b133ef | <ide><path>web/app.js
<ide> function webViewerWheel(evt) {
<ide> return;
<ide> }
<ide>
<add> // It is important that we query deltaMode before delta{X,Y}, so that
<add> // Firefox doesn't switch to DOM_DELTA_PIXEL mode for compat with other
<add> // browsers, see https://bugzilla.mozilla.org/show_bu... | 1 |
Text | Text | add missing word | 6a9b9c302b44594b59bf6129349ec2552a4b6fd3 | <ide><path>docs/rfcs/001-updateable-bundled-packages.md
<ide> Any package that opts into this behavior must adhere to two rules:
<ide>
<ide> 1. **Each release must ensure that its `engines` field in `package.json` reflects the necessary Atom version for the Atom, Electron, and Node.js APIs used in the package**. This... | 1 |
Java | Java | suppress unused warning in test code | 0b21c16fa8610950ec0eb0127c7312a6679f0c9e | <ide><path>spring-context/src/testFixtures/java/org/springframework/context/testfixture/context/annotation/AutowiredGenericTemplate.java
<ide>
<ide> public class AutowiredGenericTemplate {
<ide>
<add> @SuppressWarnings("unused")
<ide> private GenericTemplate<Integer> genericTemplate;
<ide>
<ide> @Autowired | 1 |
Javascript | Javascript | use int32 instead of int16 for checksums | 8738b72f30f157392bcaf5c947f887fa22a8d6f8 | <ide><path>fonts.js
<ide> var Font = (function Font() {
<ide> // checksum
<ide> var checksum = 0;
<ide> for (var i = 0; i < length; i+=4)
<del> checksum += int16([data[i], data[i+1], data[i+2], data[i+3]]);
<add> checksum += int32([data[i], data[i+1], data[i+2], data[i+3]]);
<ide>
<ide> var t... | 1 |
Ruby | Ruby | use file.directory? as dir.exists? is only 1.9.2+ | 3a4dc9d34c1cde8bf34dfa4b4600fb8bcef9eb45 | <ide><path>railties/lib/rails/paths.rb
<ide> def expanded
<ide> def existent
<ide> expanded.select { |f| File.exists?(f) }
<ide> end
<del>
<add>
<ide> def existent_directories
<del> expanded.select {|d| Dir.exists?(d) }
<add> expanded.select { |d| File.directory?(d) }
<ide>... | 1 |
Text | Text | add dnsimple as a sponsor | 716c0716021fb61f089ce5ee9864f0535ef213cc | <ide><path>README.md
<ide> Flaky test detection and tracking is provided by [BuildPulse](https://buildpulse
<ide>
<ide> [](https://buildpulse.io)
<ide>
<add><https://brew.sh>'s DNS is [resolving with DNSimp... | 1 |
Go | Go | prevent any kind of operation simultaneously | 2db99441c85fdf1e7d468bc02b085d9e1b95704c | <ide><path>server.go
<ide> func (srv *Server) poolAdd(kind, key string) error {
<ide> if _, exists := srv.pullingPool[key]; exists {
<ide> return fmt.Errorf("pull %s is already in progress", key)
<ide> }
<add> if _, exists := srv.pushingPool[key]; exists {
<add> return fmt.Errorf("push %s is already in progress", ... | 1 |
Javascript | Javascript | break more browser deps in core | b79a3cbd21a82a44ac0c8863995a5f12b10a67d6 | <add><path>src/browser/ReactBrowserComponentMixin.js
<del><path>src/core/ReactComponentEnvironment.js
<ide> * See the License for the specific language governing permissions and
<ide> * limitations under the License.
<ide> *
<del> * @providesModule ReactComponentEnvironment
<add> * @providesModule ReactBrowserCompon... | 15 |
Python | Python | add regression test for #891 | 5712da6095594360be9010b0fe6b85606ec1e2d0 | <ide><path>spacy/tests/regression/test_issue891.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>
<add>@pytest.mark.xfail
<add>@pytest.mark.parametrize('text', ["want/need"])
<add>def test_issue891(en_tokenizer, text):
<add> """Test that / infixes are split correctly.... | 1 |
PHP | PHP | update email.blade.php | afb46417b352e6b6693af591497fe2752f3d83af | <ide><path>src/Illuminate/Notifications/resources/views/email.blade.php
<ide> {{-- Action Button --}}
<ide> @isset($actionText)
<ide> <?php
<del> switch ($level) {
<del> case 'success':
<del> case 'error':
<del> $color = $level;
<del> break;
<del> default:
<del> ... | 1 |
Javascript | Javascript | improve nexttick performance | 34961c7b5fe8b2cf1722668666a7adcce3ab419c | <ide><path>benchmark/process/next-tick-breadth-args.js
<ide>
<ide> const common = require('../common.js');
<ide> const bench = common.createBenchmark(main, {
<del> n: [4e6]
<add> n: [1e7]
<ide> });
<ide>
<ide> function main({ n }) {
<ide><path>benchmark/process/next-tick-breadth.js
<ide>
<ide> const common = requi... | 8 |
Python | Python | add underscore class | 1289129fd92da28a0d3f55acf65ec6287eea7086 | <ide><path>spacy/tokens/underscore.py
<add>class Undercore(object):
<add> doc_extensions = {}
<add> span_extensions = {}
<add> token_extensions = {}
<add>
<add> def __init__(self, obj, start=None, end=None):
<add> object.__setattr__(self, '_obj', obj)
<add> # Assumption is that for doc values,... | 1 |
Ruby | Ruby | add rubocop test | c1b00297e0556197a21155a44876e3422e8f4b1e | <ide><path>Library/Homebrew/test/cask/cmd/style_spec.rb
<ide>
<ide> it_behaves_like "a command that handles invalid options"
<ide>
<add> describe ".rubocop" do
<add> subject { described_class.rubocop(cask_path) }
<add>
<add> around do |example|
<add> FileUtils.ln_s HOMEBREW_LIBRARY_PATH, HOMEBREW_LIBRAR... | 1 |
PHP | PHP | add tests for skip() overflow | 2e8b39159833381d0491207d76d44f899f170ce7 | <ide><path>tests/TestCase/Collection/CollectionTest.php
<ide> public function testSkip()
<ide> $collection = new Collection([1, 2, 3, 4, 5]);
<ide> $this->assertEquals([3, 4, 5], $collection->skip(2)->toList());
<ide>
<add> $this->assertEquals([1, 2, 3, 4, 5], $collection->skip(0)->toList());
<a... | 1 |
Text | Text | replace old static path by public | typo | 7b22bb559b2d91375bf44b2b3964c9b833c16c5e | <ide><path>examples/with-firebase-cloud-messaging/README.md
<ide> yarn create next-app --example with-firebase-cloud-messaging with-firebase-cloud
<ide>
<ide> ## Set your send id
<ide>
<del>set your `messagingSenderId` in `static/firebase-messaging-sw.js` and `utils/webPush.js`
<add>set your `messagingSenderId` in `p... | 1 |
Javascript | Javascript | add bitt wallet to showcase | 0f62dcecf5941d415e2e8afa542b10a607a3416c | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> icon: 'http://a5.mzstatic.com/us/r30/Purple7/v4/c1/9a/3f/c19a3f82-ecc3-d60b-f983-04acc203705f/icon175x175.jpeg',
<ide> link: 'https://itunes.apple.com/us/app/bionic-estore/id994537615?mt=8',
<ide> author: 'Digidemon',
<add> },
<add>... | 1 |
Ruby | Ruby | eliminate formula_meta_files constant | fcacb25cd5ca92b12a19a92b5e1a562d82392aec | <ide><path>Library/Homebrew/cmd/list.rb
<add>require "metafiles"
<add>
<ide> module Homebrew extend self
<ide> def list
<ide>
<ide> def initialize path
<ide> else
<ide> print_dir pn
<ide> end
<del> elsif FORMULA_META_FILES.should_list? pn.basename.to_s
<add> elsif Metafi... | 4 |
Java | Java | escape quotes in filename | 41f40c6c229d3b4f768718f1ec229d8f0ad76d76 | <ide><path>spring-web/src/main/java/org/springframework/http/ContentDisposition.java
<ide> public interface Builder {
<ide> Builder name(String name);
<ide>
<ide> /**
<del> * Set the value of the {@literal filename} parameter.
<add> * Set the value of the {@literal filename} parameter. The given
<add> * file... | 2 |
Java | Java | make two separate yoga targets for qe | af9d6479e541bd163e2189fabbcde78613c7a751 | <ide><path>ReactAndroid/src/main/java/com/facebook/yoga/YogaConfig.java
<ide> public class YogaConfig {
<ide> public static int SPACING_TYPE = 1;
<ide>
<ide> static {
<del> SoLoader.loadLibrary("yoga");
<add> if (YogaConstants.shouldUseFastMath) {
<add> SoLoader.loadLibrary("yogafastmath");
<add> } e... | 3 |
Text | Text | expand guide for power supply unit | 78c83743577a862b351d121fcbfa7fe518b3a2da | <ide><path>guide/english/computer-hardware/power-supply/index.md
<ide> title: Power Supply
<ide> ---
<ide> ## Power Supply
<ide>
<del>A Power Supply Unit (PSU) supplies power to a computer. It converts AC power into steady low-voltage DC power for the internal components. A power supply is required in order for a comp... | 1 |
PHP | PHP | fix more coding standards | 82d8df9c3ef35da127f8c4655041f4a495660eb2 | <ide><path>lib/Cake/Test/Case/Configure/IniReaderTest.php
<ide> class IniReaderTest extends CakeTestCase {
<ide> */
<ide> public function setUp() {
<ide> parent::setUp();
<del> $this->path = CAKE . 'Test' . DS . 'test_app' . DS . 'Config'. DS;
<add> $this->path = CAKE . 'Test' . DS . 'test_app' . DS . 'Config' . ... | 3 |
PHP | PHP | add test for insertmulti with id in the last spot | 5210f831c88a54e90195dfe570bf7f92a7ec25b6 | <ide><path>lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
<ide> public function testLimit() {
<ide> $this->assertNotContains($scientificNotation, $result);
<ide> }
<ide>
<add>/**
<add> * Test insertMulti with id position.
<add> *
<add> * @return void
<add> */
<add> public function testInsertMultiId() {
<add>... | 1 |
Text | Text | add the rfc template for future rfcs | 48584e9f9fb737ec992b7f01386ef4eb85c98e7b | <ide><path>docs/rfcs/000-template.md
<add># Feature title
<add>
<add>## Status
<add>
<add>Proposed
<add>
<add>## Summary
<add>
<add>One paragraph explanation of the feature.
<add>
<add>## Motivation
<add>
<add>Why are we doing this? What use cases does it support? What is the expected outcome?
<add>
<add>## Explanation... | 1 |
PHP | PHP | remove unused fixture files | 3defea233df79351e56345f88dab326a09957bac | <ide><path>tests/Fixture/BinaryTestsFixture.php
<del><?php
<del>/**
<del> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<del> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> *
<del> * Licensed under The MIT License
<del> * For full copyright and license i... | 4 |
Text | Text | fix spelling error | d976ac56b0b108a65eeb67eb812e700df4addc72 | <ide><path>docs/api-guide/requests.md
<ide> You won't typically need to access this property.
<ide>
<ide> ---
<ide>
<del>**Note:** You may see a `WrappedAttributeError` raised when calling the `.user` or `.auth` properties. These errors originate from an authenticator as a standard `AttributeError`, however it's nece... | 1 |
Javascript | Javascript | use .getrepo everywhere | 3752f6616021a5c2caf7a42950719af5ab74d406 | <ide><path>src/git-repository-async.js
<ide> export default class GitRepositoryAsync {
<ide> // Public: Returns a {Promise} which resolves to the {String} path of the
<ide> // repository.
<ide> getPath () {
<del> return this.repoPromise.then(repo => repo.path().replace(/\/$/, ''))
<add> return this.getRepo(... | 1 |
Java | Java | add tests for transactionawarecachedecorator | 45406aa19b5445bd923809b9f782a0dd6490526a | <ide><path>spring-context-support/src/test/java/org/springframework/cache/transaction/TransactionAwareCacheDecoratorTests.java
<add>/*
<add> * Copyright 2002-2014 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in c... | 1 |
Text | Text | add new youtube channel for create clone app | 4bba3f779f5adae5cf632927e3a763271b941383 | <ide><path>guide/english/mobile-app-development/swift-development/index.md
<ide> This is my curated list of awesome Swift and iOS Resources for becoming a self-t
<ide>
<ide> #### Youtube Playlists
<ide>
<add>* [Swift Clone Applications - Lets Build That App](https://www.youtube.com/channel/UCuP2vJ6kRutQBfRmdcI92mA)
<... | 1 |
Javascript | Javascript | add regression test for v8.getheapsnapshot() crash | 62659511536f172946566347626a68e2b3b1c9d1 | <ide><path>test/parallel/test-v8-getheapsnapshot-twice.js
<add>'use strict';
<add>require('../common');
<add>const v8 = require('v8');
<add>
<add>// Regression test for https://github.com/nodejs/node/issues/35559
<add>// It is important that the return value of the first call is not used, i.e.
<add>// that the first sn... | 1 |
Python | Python | call django.setup always if available | 740d4d17bca099afdc6e6251b4f4a78c99f8005c | <ide><path>celery/fixups/django.py
<ide> def __init__(self, app):
<ide> )
<ide>
<ide> def validate_models(self):
<add> import django
<add> try:
<add> django.setup()
<add> except AttributeError:
<add> pass
<ide> s = io.StringIO()
<ide> try:
<ide> ... | 1 |
Javascript | Javascript | fix unfinished function declaration in comments | 3ef7d18fc0723901f80b9053f513c8051200240f | <ide><path>client/commonFramework/detect-unsafe-code-stream.js
<ide> window.common = (function(global) {
<ide> } = global;
<ide>
<ide> const detectFunctionCall = /function\s*?\(|function\s+\w+\s*?\(/gi;
<add> const detectInComment = new RegExp(['\\/\\/[\\W\\w\\s]*?function.|',
<add> ... | 1 |
Javascript | Javascript | enforce one element limit | f46a9472b54fdafacda6f780a197b0fce5ee46d8 | <ide><path>src/core/core.controller.js
<ide> module.exports = function(Chart) {
<ide> }
<ide> });
<ide>
<del> return elementsArray;
<add> return elementsArray.slice(0, 1);
<ide> },
<ide>
<ide> getElementsAtEvent: function(e) { | 1 |
Python | Python | fix dtype consistency issue in random_binomial | 1ea3f44f06694aad184644f9b73135abc3eb5e29 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def random_binomial(shape, p=0.0, dtype=_FLOATX, seed=None):
<ide> if seed is None:
<ide> seed = np.random.randint(10e6)
<ide> return tf.select(tf.random_uniform(shape, dtype=dtype, seed=seed) <= p,
<del> tf.ones(shape), tf.zeros(s... | 1 |
Text | Text | add changelog for 3.27.5 | c47d6287c335b07d5425f3cab0b95bdde9811af8 | <ide><path>CHANGELOG.md
<ide>
<ide> - [#19472](https://github.com/emberjs/ember.js/pull/19472) [BUGFIX] Prevent transformation of block params called `attrs`
<ide>
<add>## v3.27.5 (June 10, 2021)
<add>
<add>- [#19597](https://github.com/emberjs/ember.js/pull/19597) [BIGFIX] Fix `<LinkTo>` with nested children
<add>
<... | 1 |
Ruby | Ruby | drop extra variable | 4c101ccd82375f14d5de73e740a900444fe0a3d3 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> def select_value(arel, name = nil, binds = [])
<ide> # Returns an array of the values of the first column in a select:
<ide> # select_values("SELECT id FROM companies LIMIT 3") => [1,2,3]
<ide> def se... | 1 |
Ruby | Ruby | use keg#uninstall to uninstall kegs | de24d731725a0a6be1339fbdd879f12a136c037d | <ide><path>Library/Homebrew/cmd/uninstall.rb
<ide> def uninstall
<ide>
<ide> if rack.directory?
<ide> puts "Uninstalling #{name}..."
<del> rack.subdirs.each { |d| Keg.new(d).unlink }
<del> rack.rmtree
<add> rack.subdirs.each do |d|
<add> keg = Keg.new(d)
<add> ... | 2 |
Ruby | Ruby | remove extra advisory lock connection | 07d8b99ebeddf110df8fba8e18985ca176d60046 | <ide><path>activerecord/lib/active_record/migration.rb
<ide> def use_advisory_lock?
<ide>
<ide> def with_advisory_lock
<ide> lock_id = generate_migrator_advisory_lock_id
<add> connection = ActiveRecord::Base.connection
<ide>
<del> with_advisory_lock_connection do |connection|
<del> ... | 2 |
Ruby | Ruby | fix unused variable warning | dfcef831b5cc612495323114dd1bbb9366f05128 | <ide><path>activesupport/test/core_ext/time_with_zone_test.rb
<ide> def test_time_in_time_zone_doesnt_affect_receiver
<ide> with_env_tz 'Europe/London' do
<ide> time = Time.local(2000, 7, 1)
<ide> time_with_zone = time.in_time_zone('Eastern Time (US & Canada)')
<add> assert_equal Time.utc(2000, 6, ... | 1 |
Mixed | Text | add support for --storage-opt size | 05bac4591a4519fbac9d3724f3b708e882bbad80 | <ide><path>daemon/graphdriver/overlay2/overlay.go
<ide> import (
<ide> "github.com/docker/docker/pkg/mount"
<ide> "github.com/docker/docker/pkg/parsers"
<ide> "github.com/docker/docker/pkg/parsers/kernel"
<add> "github.com/docker/go-units"
<ide>
<ide> "github.com/opencontainers/runc/libcontainer/label"
<ide> )
<id... | 5 |
Python | Python | add documentation of trainer.create_model_card | 801ebd045d4310fef2e837713fa630cb183f0104 | <ide><path>src/transformers/modeling_tf_utils.py
<ide> def create_model_card(
<ide> dataset: Optional[Union[str, List[str]]] = None,
<ide> dataset_args: Optional[Union[str, List[str]]] = None,
<ide> ):
<add> """
<add> Creates a draft of a model card using the information available to t... | 2 |
Ruby | Ruby | fix invalid regex | 6d05597d0f03030a429d8154daf99a1226e6cbbd | <ide><path>railties/test/application/assets_test.rb
<ide> class ::PostsController < ActionController::Base ; end
<ide> test "precompile should handle utf8 filenames" do
<ide> filename = "レイルズ.png"
<ide> app_file "app/assets/images/#{filename}", "not a image really"
<del> add_to_config "config.asset... | 1 |
Javascript | Javascript | improve hmr error handling #410 | 76f1c2fa0e4a5c254d401afade203f36a0d261f4 | <ide><path>lib/JsonpMainTemplatePlugin.js
<ide> JsonpMainTemplatePlugin.prototype.apply = function(mainTemplate) {
<ide> return callback(new Error("No browser support"));
<ide> try {
<ide> var request = new XMLHttpRequest();
<del> request.open("GET", $require$.p + $hotMainFilename$, true);
<add> v... | 1 |
Go | Go | add logs, and potential naming conflict | 496a4bd15e57890ae0c2320a7d4c25e3b9d2838f | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func (s *DockerSuite) TestRunEmptyEnv(c *testing.T) {
<ide>
<ide> // #28658
<ide> func (s *DockerSuite) TestSlowStdinClosing(c *testing.T) {
<del> name := "testslowstdinclosing"
<del> repeat := 3 // regression happened 50% of the time
<add> const repeat = 3 // re... | 1 |
Javascript | Javascript | add a documentation example | 4d4da556eb2a401ad92323e04c803ff2e77924b0 | <ide><path>src/ng/document.js
<ide> *
<ide> * @description
<ide> * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object.
<add> *
<add> * @example
<add> <example>
<add> <file name="index.html">
<add> <div ng-controller="MainCtrl">
<add> <p>$document title: ... | 1 |
Javascript | Javascript | remove common.port from assorted pummel tests | 97c8abe2c0df261aacadd5abd9cabfbeef2d5d61 | <ide><path>test/pummel/test-http-many-keep-alive-connections.js
<ide> // USE OR OTHER DEALINGS IN THE SOFTWARE.
<ide>
<ide> 'use strict';
<del>const common = require('../common');
<add>require('../common');
<ide> const assert = require('assert');
<ide> const http = require('http');
<ide>
<ide> server.once('connection... | 8 |
Python | Python | kill classes in test_testing | f8a778deaeb9fd63d3aaa004fce27d07751a9d59 | <ide><path>tests/test_testing.py
<ide> from flask._compat import text_type
<ide>
<ide>
<del>class TestTestTools(object):
<del>
<del> def test_environ_defaults_from_config(self):
<del> app = flask.Flask(__name__)
<del> app.testing = True
<del> app.config['SERVER_NAME'] = 'example.com:1234'
<del... | 1 |
Ruby | Ruby | replace base#safe_to_array with array.wrap | 3b8853eda45dfcae2a1e71b890668730e63bed02 | <ide><path>activerecord/lib/active_record/base.rb
<ide> def construct_conditions(conditions, scope)
<ide>
<ide> # Merges includes so that the result is a valid +include+
<ide> def merge_includes(first, second)
<del> (safe_to_array(first) + safe_to_array(second)).uniq
<add> (Array.wrap(f... | 1 |
PHP | PHP | add deprecation warnings for testsuite package | 2d2189fa08eeb368d51f44f08d854018973fff43 | <ide><path>src/TestSuite/Fixture/FixtureManager.php
<ide> protected function _setupTable($fixture, $db, array $sources, $drop = true)
<ide> $table = $fixture->sourceName();
<ide> $exists = in_array($table, $sources);
<ide>
<del> $hasSchema = $fixture instanceof TableSchemaInterface && $fixture->... | 5 |
Javascript | Javascript | update user model | 4809f8b13877648853e43b0e6cf8657309f6c356 | <ide><path>get-emails.js
<ide> MongoClient.connect(secrets.db, function(err, database) {
<ide> {$match: { 'email': { $exists: true } } },
<ide> {$match: { 'email': { $ne: '' } } },
<ide> {$match: { 'email': { $ne: null } } },
<del> {$match: { 'sendMonthlyEmail': true } },
<add> {$match: { 'sendQuincyE... | 2 |
Ruby | Ruby | fix audit --online | 6a15cea0b447d8cdf5e8e9f5d99f5bdbcec405a6 | <ide><path>Library/Homebrew/cmd/style.rb
<ide> def check_style_impl(files, output_type, options = {})
<ide> args << "--auto-correct" if fix
<ide>
<ide> if options[:except_cops]
<del> options[:except_cops].map! { |cop| RuboCop::Cop::Cop.registry.qualified_cop_name(cop, "") }
<add> options[:except_cops... | 1 |
Go | Go | remove job from `docker images` | d045b9776b5dc16e12b3d7c7558a24cdc5d1aba7 | <ide><path>api/server/server.go
<ide> import (
<ide> "github.com/docker/docker/daemon"
<ide> "github.com/docker/docker/daemon/networkdriver/bridge"
<ide> "github.com/docker/docker/engine"
<add> "github.com/docker/docker/graph"
<ide> "github.com/docker/docker/pkg/jsonmessage"
<ide> "github.com/docker/docker/pkg/par... | 13 |
Ruby | Ruby | use inspect instead of escaping quotes | 90768d03d28f5c88a0049532f914ad867e1b7241 | <ide><path>Library/Homebrew/cmd/search.rb
<ide> def search
<ide> if not query.to_s.empty? and $stdout.tty? and msg = blacklisted?(query)
<ide> unless search_results.empty?
<ide> puts
<del> puts "If you meant `#{query}' precisely:"
<add> puts "If you meant #{query.inspect} preci... | 1 |
Text | Text | fix the link for custom server documentation | e28ce34ccb3b656eb24c9e8d555f6b18d386b71c | <ide><path>examples/custom-server-koa/README.md
<ide> # Custom Koa Server example
<ide>
<del>Most of the times the default Next server will be enough but sometimes you want to run your own server to customize routes or other kind of the app behavior. Next provides a [Custom server and routing](https://github.com/zeit/... | 1 |
Python | Python | add is_in_jupyter() helper for displacy (see ) | 489d2fb4baf5946672602290b809a3508a1e9a21 | <ide><path>spacy/displacy/__init__.py
<ide>
<ide> from .render import DependencyRenderer, EntityRenderer
<ide> from ..tokens import Doc
<del>from ..util import prints
<add>from ..util import prints, is_in_jupyter
<ide>
<ide>
<ide> _html = {}
<add>IS_JUPYTER = is_in_jupyter()
<ide>
<ide>
<del>def render(docs, style... | 2 |
Go | Go | remove unused errors | 13ea23723478345549f8e765894843687c05f375 | <ide><path>pkg/devicemapper/devmapper.go
<ide> var (
<ide> ErrUdevWait = errors.New("wait on udev cookie failed")
<ide> ErrSetDevDir = errors.New("dm_set_dev_dir failed")
<ide> ErrGetLibraryVersion = errors.New("dm_get_library_version failed")
<del> ErrCreateRemoveTask = errors.New("Can... | 1 |
Ruby | Ruby | move stdlib tracking postinstall | 3657393017cc4a17f72107a7b144060fa7dc7b8b | <ide><path>Library/Homebrew/build.rb
<ide> def install
<ide> end
<ide> end
<ide>
<del> # TODO Track user-selected stdlibs, such as boost in C++11 mode
<del> stdlib = ENV.compiler == :clang ? MacOS.default_cxx_stdlib : :libstdcxx
<del> stdlib_in_use = CxxStdlib.new(stdlib, ENV.compiler)
<del>
<del> ... | 3 |
Python | Python | fix fnet tokenizer tests | 7604557e4470822754c5658a19d81aa2ae7de934 | <ide><path>tests/test_tokenization_fnet.py
<ide> import unittest
<ide>
<ide> from transformers import FNetTokenizer, FNetTokenizerFast
<del>from transformers.testing_utils import require_sentencepiece, require_tokenizers, slow
<add>from transformers.testing_utils import require_sentencepiece, require_tokenizers, slow,... | 1 |
Python | Python | resolve merge conflicts | 7b0fc64d48fc938a44e691a792c4ac5d02438f94 | <ide><path>libcloud/dns/providers.py
<ide> ('libcloud.dns.drivers.nsone', 'NsOneDNSDriver'),
<ide> Provider.LUADNS:
<ide> ('libcloud.dns.drivers.luadns', 'LuadnsDNSDriver'),
<del>
<add> Provider.BUDDYNS:
<add> ('libcloud.dns.drivers.buddyns', 'BuddyNSDNSDriver'),
<ide>
<ide> # Deprecated
<ide> ... | 1 |
Ruby | Ruby | remove trailing slash from opengl header path | 6d7cda77e9a0724b9098b21b630fd0ada4561ae8 | <ide><path>Library/Homebrew/extend/ENV/super.rb
<ide> def determine_cmake_include_path
<ide> paths << "#{MacOS::X11.include}/freetype2" if x11?
<ide> paths << "#{sdk}/usr/include/libxml2" unless deps.include? 'libxml2'
<ide> paths << "#{sdk}/usr/include/apache2" if MacOS::Xcode.without_clt?
<del> paths <... | 1 |
Javascript | Javascript | add newline between methods | 2f60ea8b01380a91fd81dcae7043625d4e668f7f | <ide><path>src/text-editor.js
<ide> module.exports = class TextEditor {
<ide> get languageMode() {
<ide> return this.buffer.getLanguageMode();
<ide> }
<add>
<ide> get tokenizedBuffer() {
<ide> return this.buffer.getLanguageMode();
<ide> } | 1 |
Javascript | Javascript | fix d3.geo.stream tests for [x, y, z] coordinates | 1e0faba5c4dd3c8f1937bd6ba833a143dd9081bf | <ide><path>test/geo/stream-test.js
<ide> suite.addBatch({
<ide> var calls = 0;
<ide> stream({type: "Sphere"}, {
<ide> sphere: function() {
<del> ++calls;
<ide> assert.equal(arguments.length, 0);
<add> assert.equal(++calls, 1);
<ide> }
<ide> });
<ide> a... | 1 |
Go | Go | ignore blank lines in getcgrouppaths | 301bd57b1d5ce78fe3e26f68c8f8f797abfbb5ca | <ide><path>integration-cli/docker_cli_run_unix_test.go
<ide> func TestRunWithUlimits(t *testing.T) {
<ide> func getCgroupPaths(test string) map[string]string {
<ide> cgroupPaths := map[string]string{}
<ide> for _, line := range strings.Split(test, "\n") {
<add> line = strings.TrimSpace(line)
<add> if line == "" {
<... | 1 |
PHP | PHP | add missing throws in docblock | 30c032849e083e01cd8042091ddded72bf7cf8d4 | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function event($event, $payload = [], $halt = false)
<ide> *
<ide> * @param string $file
<ide> * @return string
<add> *
<add> * @throws \InvalidArgumentException
<ide> */
<ide> function elixir($file)
<ide> { | 1 |
Ruby | Ruby | fix odisabled return | 9b8c30e0c8d04b66c4415c27041423b372c14066 | <ide><path>Library/Homebrew/compat/extend/string.rb
<ide> class String
<ide> def undent
<ide> odisabled "<<-EOS.undent", "<<~EOS"
<add> self
<ide> end
<ide> alias unindent undent
<ide> | 1 |
Go | Go | update doc for copyfromcontainer | e330e7a5ce77736c76c36ba77983accfae01c405 | <ide><path>client/container_copy.go
<ide> func (cli *Client) ContainerStatPath(ctx context.Context, containerID, path stri
<ide> }
<ide>
<ide> // CopyToContainer copies content into the container filesystem.
<del>// Note that `content` must be a Reader for a TAR
<add>// Note that `content` must be a Reader for a TAR a... | 1 |
PHP | PHP | remove config references from viewserviceprovider | 6bac1991a30edcc8782553ab860046306a259d46 | <ide><path>src/Illuminate/View/ViewServiceProvider.php
<ide> public function registerBladeEngine($resolver)
<ide> // instance to pass into the engine so it can compile the views properly.
<ide> $compiler = new BladeCompiler($app['files'], $cache);
<ide>
<del> $compiler->setContentTags($app['config']['view.cont... | 1 |
Ruby | Ruby | apply table aliases after the ast has been built | c746b5339087825b1fe79abc426170baf1b51e5c | <ide><path>activerecord/lib/active_record/associations/join_dependency.rb
<ide> def initialize(base, associations, joins)
<ide> @alias_tracker.aliased_name_for(base.table_name) # Updates the count for base.table_name to 1
<ide> tree = self.class.make_tree associations
<ide> build tree, @join_roo... | 1 |
Ruby | Ruby | add installed gems to $load_path | 30ce9b92e8664474b5c3527c482aad08eafbfdce | <ide><path>Library/Homebrew/utils/gems.rb
<ide> def setup_gem_environment!(gem_home: nil, gem_bindir: nil, setup_path: true)
<ide> paths.unshift(gem_bindir) unless paths.include?(gem_bindir)
<ide> paths.unshift(ruby_bindir) unless paths.include?(ruby_bindir)
<ide> ENV["PATH"] = paths.compact.join(":")
<add>... | 1 |
Mixed | Python | add catalan number to maths | 5894554d41116af83152b1ea59fbf78303d87966 | <ide><path>DIRECTORY.md
<ide> * [Binomial Coefficient](maths/binomial_coefficient.py)
<ide> * [Binomial Distribution](maths/binomial_distribution.py)
<ide> * [Bisection](maths/bisection.py)
<add> * [Catalan Number](maths/catalan_number.py)
<ide> * [Ceil](maths/ceil.py)
<ide> * [Check Polygon](maths/check_pol... | 2 |
Text | Text | add v3.1.1 to changelog | 2cd2605db2643506f1a3bb5d9ad3447eaeb9a893 | <ide><path>CHANGELOG.md
<ide> - [#16462](https://github.com/emberjs/ember.js/pull/16462) [CLEANUP] Remove deprecated `MODEL_FACTORY_INJECTIONS`
<ide> - [emberjs/rfcs#286](https://github.com/emberjs/rfcs/blob/master/text/0286-block-let-template-helper.md) [FEATURE] Enabled block `let` handlebars helper by default.
<ide>... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.