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 | fix typo in animations guide | c748d692a456d6d5072d3e670b014518eb3dd854 | <ide><path>docs/Animations.md
<ide> manage frame updates for you.
<ide>
<ide> ### `setNativeProps`
<ide>
<del>As mentioned [in the Direction Manipulation section](docs/direct-manipulation.html),
<add>As mentioned [in the Direct Manipulation section](docs/direct-manipulation.html),
<ide> `setNativeProps` allows us to ... | 1 |
Ruby | Ruby | migrate everyone to new repository | 72d0154454a1d4fe4dd94d4a3abf94ad65d2b77b | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def migrate_legacy_cache_if_necessary
<ide> def migrate_legacy_repository_if_necessary
<ide> return unless HOMEBREW_PREFIX.to_s == "/usr/local"
<ide> return unless HOMEBREW_REPOSITORY.to_s == "/usr/local"
<del> return unless ARGV.homebrew_developer?
<i... | 1 |
Text | Text | add template titles | 57c02af359a948aef5e1bbf3d74b82395c0b7287 | <ide><path>.github/ISSUE_TEMPLATE/bug.md
<ide> about: "If you're sure it's reproducible and not just your machine: submit an is
<ide>
<ide> ---
<ide>
<add># Bug report
<add>
<ide> **Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide... | 2 |
Javascript | Javascript | expose decoratedcomponent as static property | 464f30d60ffe8f934369e03ce548465996c4fb27 | <ide><path>src/components/createConnectDecorator.js
<ide> export default function createConnectDecorator(React, Connector) {
<ide> return function connect(select) {
<ide> return DecoratedComponent => class ConnectorDecorator extends Component {
<ide> static displayName = `Connector(${getDisplayName(Decorate... | 4 |
Text | Text | update tutorial for 3.0 | a58cfe167d837d34994b50f52098c552f6b0860e | <ide><path>docs/tutorial/1-serialization.md
<ide> Once that's done we can create an app that we'll use to create a simple Web API.
<ide>
<ide> python manage.py startapp snippets
<ide>
<del>The simplest way to get up and running will probably be to use an `sqlite3` database for the tutorial. Edit the `tutorial/se... | 2 |
Go | Go | add links to inspect for 'linking' containers | 55691e5fdc78b5c3015c7a481371e482878c14d2 | <ide><path>daemon/inspect.go
<ide> package daemon
<ide>
<ide> import (
<ide> "encoding/json"
<add> "fmt"
<ide>
<ide> "github.com/dotcloud/docker/engine"
<ide> "github.com/dotcloud/docker/runconfig"
<ide> func (daemon *Daemon) ContainerInspect(job *engine.Job) engine.Status {
<ide> out.Set("ProcessLabel", contain... | 1 |
Javascript | Javascript | prevent catch assertions | 91d4aa54506a68a99f99b8edcfea10a73bea2ec2 | <ide><path>test/integration/create-next-app/index.test.js
<ide> const cli = require.resolve('create-next-app/dist/index.js')
<ide>
<ide> jest.setTimeout(1000 * 60 * 5)
<ide>
<del>const run = (cwd, args, input) => {
<del> const options = input ? { cwd, input } : { cwd }
<del> return execa('node', [cli].concat(args),... | 1 |
Javascript | Javascript | remove ballshooter_multiview from examples list | 8d8204f26a36564ffec14dec0dbd1547fd4bfd60 | <ide><path>examples/files.js
<ide> var files = {
<ide> ],
<ide> "webvr": [
<ide> "webvr_ballshooter",
<del> "webvr_ballshooter_multiview",
<ide> "webvr_cubes",
<ide> "webvr_dragging",
<ide> "webvr_lorenzattractor", | 1 |
Text | Text | remove activation events comment | 386767868eaffec73986d5da4db11965259733ac | <ide><path>docs/your-first-package.md
<ide> its not there! To fix this open _package.json_ and find the property called
<ide> delay a package's activation until it's needed. So add the `ascii-art:convert`
<ide> to the activationEvents array:
<ide>
<del>IT SEEMS LIKE ACTIVATION EVENTS SHOULDN'T BE REQUIRED HERE. WHAT A... | 1 |
Java | Java | reduce code duplication in mergedsqlconfig | 682e8fb3ad5e66ae42995b999bec062eb76247c3 | <ide><path>spring-test/src/main/java/org/springframework/test/context/jdbc/MergedSqlConfig.java
<ide> class MergedSqlConfig {
<ide> private final ErrorMode errorMode;
<ide>
<ide>
<del> private static TransactionMode retrieveTransactionMode(AnnotationAttributes attributes) {
<del> TransactionMode transactionMode = a... | 1 |
Javascript | Javascript | move extension name to extensions dictionary | 5c81a64e0c48e40120dfcfa60ee3e51ea5da6bbc | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide> KHR_MATERIALS_CLEARCOAT: 'KHR_materials_clearcoat',
<ide> KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS: 'KHR_materials_pbrSpecularGlossiness',
<ide> KHR_MATERIALS_UNLIT: 'KHR_materials_unlit',
<add> KHR_TEXTURE_BASISU: 'KHR_text... | 2 |
PHP | PHP | fix tiny integer docs | 1ffca77780e279b4160283dce7d88d203c4c8581 | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> public function bigInteger($column, $autoIncrement = false, $unsigned = false)
<ide> }
<ide>
<ide> /**
<del> * Create a new unsigned small integer (2-byte) column on the table.
<add> * Create a new unsigned tiny integer (1-byte) column on th... | 1 |
Javascript | Javascript | add montenegrin locale (me.js) (redo ) | a2efa84e68c5f80b3f9c0d52dcb5ccac2c93b239 | <ide><path>src/locale/me.js
<add>//! moment.js locale configuration
<add>//! locale : Montenegrin (me)
<add>//! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
<add>
<add>import moment from '../moment';
<add>
<add>var translator = {
<add> words: { //Different grammatical cases
<add> ... | 2 |
Text | Text | add 4.2.0 to changelog | ea486c5e693346373886dcd08496085268ad1e1d | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v4.2.0-beta.1 (December 28, 2021)
<add>### v4.2.0 (February 7, 2022)
<ide>
<del>- [#19878](https://github.com/emberjs/ember.js/pull/19772) [BUGFIX] Allow class-based helpers to work in strict-mode.
<add>- [#19878](https://github.com/emberjs/ember.js/pull/... | 1 |
Javascript | Javascript | add test for jquery.unique() alias | add85afed5944ec10d68ca10e91421e031fe0a5d | <ide><path>test/unit/selector.js
<ide> test( "jQuery.contains", function() {
<ide> });
<ide>
<ide> test("jQuery.uniqueSort", function() {
<del> expect( 14 );
<add> expect( 15 );
<ide>
<ide> function Arrayish( arr ) {
<ide> var i = this.length = arr.length;
<ide> test("jQuery.uniqueSort", function() {
<ide> deepE... | 1 |
PHP | PHP | improve error messages when persistence fails | 73ee9ed8cd46eff16328d7ad4fc159501474c9db | <ide><path>src/ORM/Exception/PersistenceFailedException.php
<ide>
<ide> use Cake\Core\Exception\Exception;
<ide> use Cake\Datasource\EntityInterface;
<add>use Cake\Utility\Hash;
<ide>
<ide> /**
<ide> * Used when a strict save or delete fails
<ide> public function __construct(EntityInterface $entity, $message, $code ... | 2 |
Text | Text | add contributor covenant code of conduct | 0fd48de10a7d6b9c35d9710fffa1d52166d96862 | <ide><path>CODE_OF_CONDUCT.md
<add># Contributor Covenant Code of Conduct
<add>
<add>## Our Pledge
<add>
<add>In the interest of fostering an open and welcoming environment, we as
<add>contributors and maintainers pledge to making participation in our project and
<add>our community a harassment-free experience for ever... | 1 |
Javascript | Javascript | add tzdate to angular-mocks.js | 4c61fc01f9c251c39f540316cc82332bc8b3f370 | <ide><path>test/FiltersSpec.js
<ide> describe('filter', function(){
<ide> });
<ide>
<ide> describe('date', function(){
<del> var morning = angular.String.toDate('2010-09-03T23:05:08Z');
<del> var midnight = angular.String.toDate('2010-09-03T23:05:08Z');
<del> var noon = angular.String.toDate('2010-09... | 2 |
Text | Text | fix the command python -m simplehttpserver | a893cb43c340b7b5ba12304b483319bf32eef2cb | <ide><path>guide/english/python/share-file-using-python-simple-http-server/index.md
<ide> title: Share File Using Python SimpleHTTPserver
<ide> 2. Open terminal in Ubuntu and make sure you have python installed in your PC.
<ide> 3. If not installed then install it by typing in terminal "sudo apt-get install python" w... | 1 |
Javascript | Javascript | kill zombies when debugger-client fails on windows | 98c6a81771513622fbc21b01f623447ed38b70c4 | <ide><path>test/simple/test-debugger-client.js
<ide> function doTest(cb, done) {
<ide>
<ide> nodeProcess.stdout.once('data', function(c) {
<ide> console.log('>>> new node process: %d', nodeProcess.pid);
<del> process._debugProcess(nodeProcess.pid);
<add> var failed = true;
<add> try {
<add> process... | 1 |
PHP | PHP | add morphusingulids to schema facade | 7f71ec4b23f9e57baa0088ad16b78e7b33c1b34e | <ide><path>src/Illuminate/Support/Facades/Schema.php
<ide> * @method static array getColumnListing(string $table)
<ide> * @method static string getColumnType(string $table, string $column)
<ide> * @method static void morphUsingUuids()
<add> * @method static void morphUsingUlids()
<ide> * @method static \Illuminate\... | 1 |
PHP | PHP | consider tinytext as text | 723a352452a442befbccfefb8c9599834c227497 | <ide><path>src/Database/Schema/MysqlSchema.php
<ide> protected function _convertColumn($column) {
<ide> if ($col === 'char') {
<ide> return ['type' => 'string', 'fixed' => true, 'length' => $length];
<ide> }
<del> if (strpos($col, 'char') !== false || $col === 'tinytext') {
<add> if (strpos($col, 'char') !== f... | 2 |
Python | Python | add call to super call in microsoft providers | a83eb335e58c6a15e96c517a1b492bc79c869ce8 | <ide><path>airflow/providers/microsoft/azure/hooks/adx.py
<ide> class AzureDataExplorerHook(BaseHook):
<ide> def __init__(
<ide> self,
<ide> azure_data_explorer_conn_id: str = 'azure_data_explorer_default'):
<add> super().__init__()
<ide> self.conn_id = azure_data_explorer_con... | 9 |
Javascript | Javascript | reduce duplicated code for cleaning parser | d7f17b2a6107e25ac343cf11667b3f6b8d48f4a3 | <ide><path>lib/_http_common.js
<ide> function parserOnMessageComplete() {
<ide> const parsers = new FreeList('parsers', 1000, function parsersCb() {
<ide> const parser = new HTTPParser(HTTPParser.REQUEST);
<ide>
<del> parser._headers = [];
<del> parser._url = '';
<del> parser._consumed = false;
<del>
<del> parse... | 1 |
Go | Go | set default mtu when initializing config | a0d0db126c5e2a846a61704e1a24ef4067644137 | <ide><path>cmd/dockerd/config.go
<ide> func installCommonConfigFlags(conf *config.Config, flags *pflag.FlagSet) error {
<ide> flags.StringVar(&conf.ContainerdAddr, "containerd", "", "containerd grpc address")
<ide> flags.BoolVar(&conf.CriContainerd, "cri-containerd", false, "start containerd with cri")
<ide>
<del> f... | 4 |
PHP | PHP | use integers for integery things | cd9d04b1b7cc171e14f5270e80d0a6e872773358 | <ide><path>Cake/View/Helper/PaginatorHelper.php
<ide> public function numbers($options = array()) {
<ide>
<ide> $defaults = array(
<ide> 'before' => null, 'after' => null, 'model' => $this->defaultModel(),
<del> 'modulus' => '8', 'first' => null, 'last' => null,
<add> 'modulus' => 8, 'first' => null, 'last' =... | 1 |
Python | Python | fix save when laod_best_model_at_end=true | 2024faf1713272464336ad97f371787b24cb3c53 | <ide><path>src/transformers/trainer_callback.py
<ide> def on_step_end(self, args: TrainingArguments, state: TrainerState, control: Tra
<ide> # Evaluate
<ide> if args.evaluation_strategy == IntervalStrategy.STEPS and state.global_step % args.eval_steps == 0:
<ide> control.should_evaluate = Tr... | 1 |
PHP | PHP | add callable typehint to `and_` query expression | 6d779debffcea5bfda48a265ed05533922a2c8be | <ide><path>src/Database/Expression/QueryExpression.php
<ide> public function between($field, $from, $to, $type = null)
<ide> * Returns a new QueryExpression object containing all the conditions passed
<ide> * and set up the conjunction to be "AND"
<ide> *
<del> * @param string|array|\Cake\Database\Ex... | 1 |
Text | Text | use arrow function | 85aa53a1c9a5ff3362d6fb3b67776a63d4a88b8a | <ide><path>doc/api/v8.md
<ide> Usage:
<ide> // Print GC events to stdout for one minute.
<ide> const v8 = require('v8');
<ide> v8.setFlagsFromString('--trace_gc');
<del>setTimeout(function() { v8.setFlagsFromString('--notrace_gc'); }, 60e3);
<add>setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3);
<ide>... | 1 |
Mixed | Ruby | allow filtering params based on parent keys | 33b93174f0db9783b3c6c906666923103569c6a3 | <ide><path>actionpack/CHANGELOG.md
<add>* Add ability to filter parameters based on parent keys.
<add>
<add> # matches {credit_card: {code: "xxxx"}}
<add> # doesn't match {file: { code: "xxxx"}}
<add> config.filter_parameters += [ "credit_card.code" ]
<add>
<add> See #13897.
<add>
<add> *Gu... | 3 |
Go | Go | save the controller config on config reload | 47c071b654fc1513e76230b15c1140ab5307ab24 | <ide><path>libnetwork/controller.go
<ide> func (c *controller) ReloadConfiguration(cfgOptions ...config.Option) error {
<ide> return nil
<ide> }
<ide>
<add> c.Lock()
<add> c.cfg = cfg
<add> c.Unlock()
<add>
<ide> var dsConfig *discoverapi.DatastoreConfigData
<ide> for scope, sCfg := range cfg.Scopes {
<ide> if ... | 1 |
PHP | PHP | add lazy() method to standard collection | 2bc42882d85787d1cbace7215c27dda138e67a10 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function all()
<ide> return $this->items;
<ide> }
<ide>
<add> /**
<add> * Get a lazy collection for the items in this collection.
<add> *
<add> * @return \Illuminate\Support\LazyCollection
<add> */
<add> public function laz... | 2 |
PHP | PHP | remove useless statement. | 6403bea2360361465726a1661a59241fd788176b | <ide><path>src/Illuminate/Http/Resources/Json/JsonResource.php
<ide> public function resolve($request = null)
<ide> $request = $request ?: Container::getInstance()->make('request')
<ide> );
<ide>
<del> if (is_array($data)) {
<del> $data = $data;
<del> } elseif ($data instan... | 1 |
Text | Text | add example for buffer.isencoding() | c81062a908d00ae9ba62daa62e1a05798e93dcfb | <ide><path>doc/api/buffer.md
<ide> added: v0.9.1
<ide> Returns `true` if `encoding` contains a supported character encoding, or `false`
<ide> otherwise.
<ide>
<add>```js
<add>console.log(Buffer.isEncoding('utf-8'));
<add>// Prints: true
<add>
<add>console.log(Buffer.isEncoding('hex'));
<add>// Prints: true
<add>
<add>... | 1 |
Ruby | Ruby | add problem counts | 0ae1772b89ec52faa77108a3008402f2a1328ef7 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> module Homebrew extend self
<ide> def audit
<ide> errors = false
<ide>
<add> brew_count = 0
<add> problem_count = 0
<add>
<ide> ff.each do |f|
<ide> problems = []
<ide>
<ide> def audit
<ide> puts "#{f.name}:"
<ide> puts problems * "\... | 1 |
PHP | PHP | remove a bunch of dead code | 0e009ab613a25ebd140a4f307aaa0b8ae8dd3eba | <ide><path>tests/TestCase/Controller/Component/RequestHandlerComponentTest.php
<ide> protected function _init() {
<ide> $this->Controller = new RequestHandlerTestController($request, $response);
<ide> $this->Controller->constructClasses();
<ide> $this->RequestHandler = new RequestHandlerComponent($this->Controlle... | 1 |
Javascript | Javascript | remove unused thing | 1e539dbc8c57a2a90d9db0c0ee703bb8572bfd17 | <ide><path>packages/ember-glimmer/tests/integration/custom-component-manager-test.js
<del>import {
<del> PrimitiveReference
<del>} from '@glimmer/runtime';
<ide> import { moduleFor, RenderingTest } from '../utils/test-case';
<ide> import {
<ide> GLIMMER_CUSTOM_COMPONENT_MANAGER
<ide> } from 'ember/features';
<ide> i... | 1 |
PHP | PHP | add getinstance method | 3a2c381d3f7bd8aea100b94f4b9abf7eb49dc308 | <ide><path>src/Illuminate/Queue/Jobs/Job.php
<ide> public function getQueue()
<ide> return $this->queue;
<ide> }
<ide>
<add> /**
<add> * Get the job handler instance.
<add> *
<add> * @return mixed
<add> */
<add> public function getInstance()
<add> {
<add> return $this->insta... | 1 |
Javascript | Javascript | remove unnec. empty line | 7dab8981f8868caaa350ea7029929e7e81662fd2 | <ide><path>src/event.js
<ide> jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl
<ide> jQuery.attrFn[ name ] = true;
<ide> }
<ide>
<del>
<ide> // Key Event property hooks
<ide> if ( rkeyEvent.test( name ) ) {
<ide> jQuery.event.propHooks[ name ] = function( event, original ) { | 1 |
Javascript | Javascript | add a simple abort check in windows | 642bd4dd6dd16221f910538b03046542711361c3 | <ide><path>test/parallel/test-windows-abort-exitcode.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>
<add>// This test makes sure that an aborted node process
<add>// exits with code 3 on Windows.
<add>// Spawn a child, force an abort, and then check the
<add... | 1 |
PHP | PHP | fix phpstan and psalm | 05fd0a594e73660a59170a8e73127208742b83d1 | <ide><path>src/Http/Middleware/CspMiddleware.php
<ide> class CspMiddleware implements MiddlewareInterface
<ide> /**
<ide> * CSP Builder
<ide> *
<del> * @var \ParagonIE\CSPBuilder\CSPBuilder|array|null $csp CSP Builder or config array
<add> * @var \ParagonIE\CSPBuilder\CSPBuilder $csp CSP Builder o... | 1 |
Python | Python | fix arch flags for ifort on machines in em64t mode | 2acb0e779d6d0a50288aed3c050fc1fbffaf692c | <ide><path>numpy/distutils/fcompiler/intel.py
<ide> class IntelEM64TFCompiler(IntelFCompiler):
<ide> 'ranlib' : ["ranlib"]
<ide> }
<ide>
<add> def get_flags_arch(self):
<add> opt = []
<add> if cpu.is_PentiumIV() or cpu.is_Xeon():
<add> opt.extend(['-tpp7', '-xW'])
<add... | 1 |
Text | Text | fix command on index.md [ionic portuguese] | af7a71ee443066c059e2ef763fec87a0ba7e6d35 | <ide><path>guide/portuguese/ionic/index.md
<ide> A maior parte de um aplicativo iônico será escrita em HTML, Javascript e CSS.
<ide> ### Gerenciador de pacotes Node.js (npm)
<ide>
<ide> \`\` \`
<del>sudo apt-get instala npm
<add>sudo apt-get install npm
<ide> ```
<ide> ### Ionic 2 and cordova
<ide> ```
<ide> sudo n... | 1 |
Text | Text | remove duplicate step to push docker image | 7c96800426946e563d12fdfeb80b20f4c0002aaf | <ide><path>dev/README_RELEASE_AIRFLOW.md
<ide> - [Selecting what to cherry-pick](#selecting-what-to-cherry-pick)
<ide> - [Prepare the Apache Airflow Package RC](#prepare-the-apache-airflow-package-rc)
<ide> - [Build RC artifacts](#build-rc-artifacts)
<del> - [Manually prepare production Docker Image](#manually-pre... | 1 |
Go | Go | remove firewalld running log | e5c1a4cabd2861494e58879d7507f0f581939f3d | <ide><path>libnetwork/iptables/firewalld.go
<ide> func checkRunning() bool {
<ide>
<ide> if connection != nil {
<ide> err = connection.sysobj.Call(dbusInterface+".getDefaultZone", 0).Store(&zone)
<del> logrus.Infof("Firewalld running: %t", err == nil)
<ide> return err == nil
<ide> }
<ide> return false | 1 |
Javascript | Javascript | adjust code style | da06eb3ad08d2c07274df00044879a311d5522af | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide> var extension = textureDef.extensions[ name ];
<ide> var source = json.images[ extension.source ];
<ide>
<del> var loader;
<add> var loader = parser.textureLoader;
<ide> if ( source.uri ) {
<ide>
<del> loader = parse... | 2 |
Javascript | Javascript | fix argument order in asserts | af68c554a5fd3b3595dedf64ed038fea2b761e66 | <ide><path>test/sequential/test-inspector-async-stack-traces-promise-then.js
<ide> async function runTests() {
<ide> 'break2', 'runTest:8');
<ide>
<ide> await session.runToCompletion();
<del> assert.strictEqual(0, (await instance.expectShutdown()).exitCode);
<add> assert.strictEqual((await insta... | 1 |
Text | Text | fix typo in daemon storage-driver docs | c44a8d8d8c9eccb79b16c874f083cd9597c3f6ca | <ide><path>docs/reference/commandline/daemon.md
<ide> The `btrfs` driver is very fast for `docker build` - but like `devicemapper`
<ide> does not share executable memory between devices. Use
<ide> `docker daemon -s btrfs -g /mnt/btrfs_partition`.
<ide>
<del>The `zfs` driver is probably not fast as `btrfs` but has a lo... | 1 |
Javascript | Javascript | use lazy assert to avoid issues on startup | f0b702555aacc814da28a018277d56e5f79f10d1 | <ide><path>lib/internal/errors.js
<ide> // value statically and permanently identifies the error. While the error
<ide> // message may change, the code should not.
<ide>
<del>const assert = require('assert');
<ide> const kCode = Symbol('code');
<ide> const messages = new Map();
<ide>
<ide> function lazyUtil() {
<ide>... | 2 |
PHP | PHP | fix some of formhelper's tests | cedd563c575a8f757a4ad1dba2da7cf15f51c3d7 | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testFileUploadField()
<ide> $result = $this->Form->file('Model.upload');
<ide> $this->assertHtml($expected, $result);
<ide>
<del> $this->Form->request->data['Model']['upload'] = [
<add> $this->Form->request = $... | 1 |
Ruby | Ruby | improve tap building | 00f064410660463f00bcd58d1683e05ab9bfc83c | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def run
<ide> def test_bot
<ide> tap = ARGV.value('tap')
<ide>
<add> git_url = ENV['UPSTREAM_GIT_URL'] || ENV['GIT_URL']
<add> if !tap && git_url
<add> # Also can get tap from Jenkins GIT_URL.
<add> /([\w-]+\/homebrew-[\w-]+)/ =~ git_url
<add> ... | 1 |
Python | Python | add missing session.commit() at end of initdb | 43769bc4d658029b753ed5b87012b4855d5bca69 | <ide><path>airflow/utils/db.py
<ide> def initdb():
<ide> "GROUP BY state"),
<ide> )
<ide> session.add(chart)
<add> session.commit()
<ide>
<ide>
<ide> def upgradedb(): | 1 |
Python | Python | fix typo in training | 60e0c96f6c4ac60f174b733b94342939e086d214 | <ide><path>keras/engine/training.py
<ide> def standardize_input_data(data, names, shapes=None,
<ide> raise Exception('Error when checking ' + exception_prefix +
<ide> ': you are passing a list as '
<ide> 'input to your model, '
... | 1 |
Python | Python | set dag schedule to @once in the system tests | 6504a3512a4ee9fc1af7e67006678a83a49d7773 | <ide><path>tests/system/providers/google/cloud/cloud_sql/example_cloud_sql.py
<ide>
<ide> with models.DAG(
<ide> DAG_ID,
<del> schedule=None,
<add> schedule="@once",
<ide> start_date=datetime(2021, 1, 1),
<ide> catchup=False,
<ide> tags=["example", "cloud_sql"],
<ide><path>tests/system/providers/... | 2 |
Javascript | Javascript | add comment for rendertostringimpl parameter | f1d00156df5453bc62bd5668fefdcac4ca67e90e | <ide><path>src/renderers/dom/stack/server/ReactServerRendering.js
<ide> var pendingTransactions = 0;
<ide>
<ide> /**
<ide> * @param {ReactElement} element
<add> * @param {boolean} makeStaticMarkup
<ide> * @return {string} the HTML markup
<ide> */
<ide> function renderToStringImpl(element, makeStaticMarkup) { | 1 |
Javascript | Javascript | add more foreach tests | 98cbbbb9b02c3682fd5278641c5b6b23301afb16 | <ide><path>test/parallel/test-stream-forEach.js
<ide> const {
<ide> Readable,
<ide> } = require('stream');
<ide> const assert = require('assert');
<del>const { setTimeout } = require('timers/promises');
<add>const { once } = require('events');
<ide>
<ide> {
<ide> // forEach works on synchronous streams with a sync... | 1 |
Text | Text | add more keys to vim navigation | 63c4f93fc3ca7d8ea47f9befed94a85e1071cf1a | <ide><path>guide/english/vim/navigation/index.md
<ide> key will move the cursor to the end of the current word.
<ide> * To move to the beginning of the current line, type `0`, and to move to the end
<ide> of the current line, type `$`.
<ide>
<add>* To make one navigation `x` number of times, type the `number`, then th... | 1 |
Javascript | Javascript | convert textinput to hooks | dff490d140010913d3209a2f3e987914b9c4eee4 | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> import type {SyntheticEvent, ScrollEvent} from '../../Types/CoreEventTypes';
<ide> import type {PressEvent} from '../../Types/CoreEventTypes';
<ide> import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
<ide>
<add>const {useEffect, useRef... | 2 |
Javascript | Javascript | add more timing logs | 1ac7064cad8184546465d95f33b879849b1348f7 | <ide><path>worker/client.js
<ide> function WorkerPDFDoc(canvas) {
<ide>
<ide> var renderData = function() {
<ide> if (id == 0) {
<del> console.time("canvas rendering");
<add> console.time("main canvas rendering");
<ide> var ctx = this.ctx;
<ide> ctx.save(... | 1 |
Java | Java | delete dead code in spring-webmvc | b0e07cc7e336062cb02673e5ab60b9b52d51b70e | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultEntityResponseBuilder.java
<ide> public DefaultEntityResponse(int statusCode, HttpHeaders headers,
<ide> this.entityType = entityType;
<ide> }
<ide>
<del> private static <T> boolean isResource(T entity) {
<del> return !(enti... | 3 |
Javascript | Javascript | remove undocumented testutils methods | 18d6cb5ebe56e96c293e82e0c861ed9f19765671 | <ide><path>src/renderers/dom/test/ReactTestUtilsEntry.js
<ide> var ReactTestUtils = {
<ide> return constructor === type;
<ide> },
<ide>
<del> // TODO: deprecate? It's undocumented and unused.
<del> isCompositeComponentElement: function(inst) {
<del> if (!React.isValidElement(inst)) {
<del> return false... | 1 |
PHP | PHP | link command | 7194f9c5ff6ea6b8f6e794a219ea5902d11f4411 | <ide><path>src/Illuminate/Foundation/Console/StorageLinkCommand.php
<ide> public function fire()
<ide> return $this->error('The "public/storage" directory already exists.');
<ide> }
<ide>
<del> symlink(storage_path('app/public'), public_path('storage'));
<add> $this->laravel->make('fi... | 1 |
Go | Go | fix a panic when the exec fails to start | fcf9daad91d9be24ceddbc4add4d3a8179c9b32c | <ide><path>api/server/exec.go
<ide> func (s *Server) postContainerExecStart(version version.Version, w http.Response
<ide> }
<ide> var (
<ide> execName = vars["name"]
<del> stdin io.ReadCloser
<add> stdin, inStream io.ReadCloser
<ide> stdout, stderr, outStream io.W... | 3 |
Go | Go | remove container env var from libcontainer | 431d510cae85bc1265c861028dd9751ae95088b2 | <ide><path>execdriver/native/default_template.go
<ide> package native
<ide>
<ide> import (
<add> "fmt"
<add> "github.com/dotcloud/docker/execdriver"
<ide> "github.com/dotcloud/docker/pkg/cgroups"
<ide> "github.com/dotcloud/docker/pkg/libcontainer"
<ide> )
<ide>
<add>// createContainer populates and configrues the c... | 5 |
PHP | PHP | fix imports and add coverage | 49a72131bd1385474421390031c2ba9c1c7a4b8e | <ide><path>tests/TestCase/Error/ErrorTrapTest.php
<ide> use Cake\Http\ServerRequest;
<ide> use Cake\Log\Log;
<ide> use Cake\Routing\Router;
<del>use Cake\TestSuite\TestCase;
<ide> use Cake\TestSuite\Stub\ConsoleOutput;
<add>use Cake\TestSuite\TestCase;
<ide> use InvalidArgumentException;
<ide> use stdClass;
<ide> use T... | 1 |
Ruby | Ruby | specify `hosts` in bug report template | 6a8519ca899db1b107bc3be8310e49196f341372 | <ide><path>guides/bug_report_templates/action_controller_master.rb
<ide>
<ide> class TestApp < Rails::Application
<ide> config.root = __dir__
<add> config.hosts << "example.org"
<ide> secrets.secret_key_base = "secret_key_base"
<ide>
<ide> config.logger = Logger.new($stdout) | 1 |
Javascript | Javascript | fix template and replace properties' docs | d25975438ae085a526bde9ed2cecd52939f8a787 | <ide><path>src/ng/compile.js
<ide> * If no `type` is specified, then the type is considered to be html.
<ide> *
<ide> * #### `template`
<del> * replace the current element with the contents of the HTML. The replacement process
<del> * migrates all of the attributes / classes from the old element to the new one. See ... | 1 |
Ruby | Ruby | fix typo on method name | 71a006df0eaff580bf0badfb88197d531177e5e8 | <ide><path>railties/test/application/configuration_test.rb
<ide> def index
<ide> assert_equal "XML", last_response.body
<ide> end
<ide>
<del> test "Rails.application#env_config exists and include some existing parameters" do
<add> test "Rails.application#env_config exists and includes some existing par... | 1 |
Javascript | Javascript | use minerr to throw exception | cd36cd86fcbb8fec873a1fe3e513965d4dc0b557 | <ide><path>src/ngSanitize/sanitize.js
<ide> 'use strict';
<ide>
<add>var ngSanitizeMinErr = minErr('ngSanitize');
<add>
<ide> /**
<ide> * @ngdoc overview
<ide> * @name ngSanitize
<ide> function htmlParser( html, handler ) {
<ide> }
<ide>
<ide> if ( html == last ) {
<del> throw "Parse Error: " + html;
<... | 1 |
Python | Python | add test for issue #435 | 9c8ac91d72b1a38f1947d804669a8b5612e2034b | <ide><path>spacy/tests/tagger/test_lemmatizer.py
<ide> def test_noun_lemmas(lemmatizer):
<ide> assert do('axes') == set(['axis', 'axe', 'ax'])
<ide>
<ide>
<add>def test_base_form_dive(lemmatizer):
<add> do = lemmatizer.noun
<add> assert do('dive', number='sing') == set(['dive'])
<add> assert do('dive', n... | 1 |
Ruby | Ruby | help autotools with 10.12 sdk on 10.11 | 1d7aa1fe0b430a4415cb976a2b2c3041f4269b55 | <ide><path>Library/Homebrew/extend/os/mac/extend/ENV/super.rb
<ide> def setup_build_environment(formula = nil)
<ide> self["SDKROOT"] = MacOS.sdk_path
<ide> end
<ide>
<add> # Filter out symbols known not to be defined on 10.11 since GNU Autotools
<add> # can't reliably figure this out with Xcode 8 on it... | 1 |
Text | Text | allow new line in linear-gradient formatting | 25ea44edf525cf47d3fff76330741a0b083e5236 | <ide><path>curriculum/challenges/english/01-responsive-web-design/applied-visual-design/create-a-gradual-css-linear-gradient.english.md
<ide> Use a <code>linear-gradient()</code> for the <code>div</code> element's <code>ba
<ide> ```yml
<ide> tests:
<ide> - text: The <code>div</code> element should have a <code>linear... | 1 |
Text | Text | simplify wording of github issue template | a1f2fc7c5c4aed2f195964f3857105f76929c5c6 | <ide><path>.github/ISSUE_TEMPLATE.md
<del><!-- freeCodeCamp Issue Template -->
<add><!-- NOTE: If you're reporting a security issue, don't create a GitHub issue. Instead, email security@freecodecamp.org. We will look into it immediately. -->
<ide>
<del><!-- Please provide as much detail as possible for us to fix your ... | 1 |
Ruby | Ruby | handle backslash in args for builderror | d47517f635001088fb1fb7bf43231b1fd5168d3b | <ide><path>Library/Homebrew/exceptions.rb
<ide> def initialize(formula, cmd, args, env)
<ide> @cmd = cmd
<ide> @args = args
<ide> @env = env
<del> pretty_args = Array(args).map { |arg| arg.to_s.gsub " ", "\\ " }.join(" ")
<add> pretty_args = Array(args).map { |arg| arg.to_s.gsub(/[\\ ]/, "\\\\\\0") }.... | 1 |
Go | Go | enable multiple testinspect tests | 3ae6cd453ece9761a951efd839cf917078b03718 | <ide><path>integration-cli/docker_cli_inspect_test.go
<ide> func (s *DockerSuite) TestInspectImage(c *check.C) {
<ide> }
<ide>
<ide> func (s *DockerSuite) TestInspectInt64(c *check.C) {
<del> testRequires(c, DaemonIsLinux)
<del>
<ide> dockerCmd(c, "run", "-d", "-m=300M", "--name", "inspectTest", "busybox", "true")
<i... | 1 |
PHP | PHP | fix typo in the doc of belongstomany.php | 9e0e6df6dbc14290118c23733bbe85a1f0eb8ea3 | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
<ide> public function match(array $models, Collection $results, $relation)
<ide>
<ide> // Once we have an array dictionary of child objects we can easily match the
<ide> // children back to their parent using the dictionary and the... | 1 |
Java | Java | fix license headers | 2cc1195035d3c90d6b7c58c0ecc2b529dafa59d8 | <ide><path>ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java
<del>/**
<add>/*
<ide> * Copyright (c) 2014-present, Facebook, Inc.
<ide> * All rights reserved.
<ide> *
<ide><path>ReactAndroid/src/main/java/com/facebook/yoga/YogaBaselineFunction.java
<del>/**
<add>/*
<ide> * Copyright (c) 2014-present, Faceb... | 24 |
Ruby | Ruby | add more test | a9e71ca9057798880fb6885e6de9db2b2b7cac34 | <ide><path>Library/Homebrew/test/test_formula.rb
<ide> def test_revised_prefix
<ide> assert_equal HOMEBREW_CELLAR/f.name/'0.1_1', f.prefix
<ide> end
<ide>
<add> def test_any_version_installed?
<add> f = formula do
<add> url 'foo'
<add> version '1.0'
<add> end
<add> refute_predicate f, :any_ve... | 1 |
Ruby | Ruby | remove outdated suggestions from formula#test doc | a721d7bc8f3012deff33ec1fb1e59e5574b52540 | <ide><path>Library/Homebrew/formula.rb
<ide> def needs(*standards)
<ide> #
<ide> # The block will create, run in and delete a temporary directory.
<ide> #
<del> # We are fine if the executable does not error out, so we know linking
<del> # and building the software was OK.
<del> # <pre>system bin/"... | 1 |
PHP | PHP | remove unneeded code | 33bd01ffb4048e14bfdc8cc9441ff50891cf37de | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function _magicOptions(string $fieldName, array $options, bool $allowO
<ide> }
<ide> }
<ide>
<del> if ($options['type'] === 'select') {
<del> $options += ['empty' => false];
<del> }
<del>
<ide> return $option... | 1 |
Javascript | Javascript | add the possibility to collect javascript actions | 71ecc3129b1b3884be4752752a76451f49948e9b | <ide><path>src/core/annotation.js
<ide> */
<ide>
<ide> import {
<add> AnnotationActionEventType,
<ide> AnnotationBorderStyleType,
<ide> AnnotationFieldFlag,
<ide> AnnotationFlag,
<ide> AnnotationReplyType,
<ide> AnnotationType,
<ide> assert,
<add> bytesToString,
<ide> escapeString,
<ide> getModifica... | 7 |
Text | Text | add release notes for 1.8.1 | bb480064b98f8a725a546257b778b7c7569a7819 | <ide><path>CHANGELOG.md
<add><a name="1.8.1"></a>
<add># 1.8.1 mutually-supporting (2020-09-30)
<add>
<add>## Bug Fixes
<add>- **$sanitize:** do not trigger CSP alert/report in Firefox and Chrome
<add> ([2fab3d](https://github.com/angular/angular.js/commit/2fab3d4e00f4fe35bfa3cf255160cb97404baf24))
<add>
<add>## Refac... | 1 |
PHP | PHP | pass status code to schedule finish | b815dc6c1b1c595f3241c493255f0fbfd67a6131 | <ide><path>src/Illuminate/Console/Scheduling/CommandBuilder.php
<ide> protected function buildBackgroundCommand(Event $event)
<ide> $finished = Application::formatCommandString('schedule:finish').' "'.$event->mutexName().'"';
<ide>
<ide> if (windows_os()) {
<del> return 'start /b cmd /c "('.... | 4 |
Python | Python | avoid celery crashing for channel errors | fb4a3dd10bd490d7cffa22efb69d6fe5185c9b4d | <ide><path>celery/tests/test_worker/__init__.py
<ide> def consume_messages(self):
<ide> l.heart.stop()
<ide> l.priority_timer.stop()
<ide>
<add> def test_start_channel_error(self):
<add> # Regression test for AMQPChannelExceptions that can occur within the consumer. (i.e. 404 errors)
<add>
<a... | 2 |
PHP | PHP | add notification facade | e6cc60349df90190c5c5597e0980bb7f636a3866 | <ide><path>config/app.php
<ide> 'Lang' => Illuminate\Support\Facades\Lang::class,
<ide> 'Log' => Illuminate\Support\Facades\Log::class,
<ide> 'Mail' => Illuminate\Support\Facades\Mail::class,
<add> 'Notification' => Illuminate\Support\Facades\Notification::class,
<ide> 'Password' ... | 1 |
Javascript | Javascript | add some docs for $cancelupdate | 66a132847dcad00a661836ebc84c99d4d2f45312 | <ide><path>src/ng/directive/input.js
<ide> var ngValueDirective = function() {
<ide> * events that will trigger a model update and/or a debouncing delay so that the actual update only
<ide> * takes place when a timer expires; this timer will be reset after another change takes place.
<ide> *
<add> * Given the nature... | 1 |
Text | Text | update the bibtex with emnlp demo | 94caaa93c2988bf219cb7fc88991be2d92350c48 | <ide><path>README.md
<ide> These implementations have been tested on several datasets (see the example scri
<ide>
<ide> ## Citation
<ide>
<del>We now have a [paper](https://arxiv.org/abs/1910.03771) you can cite for the 🤗 Transformers library:
<add>We now have a [paper](https://www.aclweb.org/anthology/2020.emnlp-de... | 1 |
Java | Java | use destinationusernameprovider with @sendto | ae06c3a6ab36785aa3fc69aa1672e3a7d621e4a0 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SendToMethodReturnValueHandler.java
<ide> /*
<del> * Copyright 2002-2013 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Versio... | 3 |
Javascript | Javascript | autofix imports when running replace-fork | 453df3ff72dae3ebd1e1dcd6f965c4f251b0553c | <ide><path>scripts/merge-fork/replace-fork.js
<ide>
<ide> const {promisify} = require('util');
<ide> const glob = promisify(require('glob'));
<add>const {spawnSync} = require('child_process');
<ide> const fs = require('fs');
<ide>
<ide> const stat = promisify(fs.stat);
<ide> const copyFile = promisify(fs.copyFile);
<... | 1 |
Ruby | Ruby | remove unused private classes | 3297909cdc4fb114df96b0e74ff5d55c210650cf | <ide><path>railties/lib/rails/test_unit/sub_test_task.rb
<del>require 'rake/testtask'
<del>
<del>module Rails
<del> class TestTask < Rake::TestTask # :nodoc: all
<del> # A utility class which is used primarily in "rails/test_unit/testing.rake"
<del> # to help define rake tasks corresponding to <tt>rake test</tt>... | 2 |
Java | Java | improve applicationcontextinitializer sorting | 2b4328023e5e96078f8b7fd6661cb325d34c8f21 | <ide><path>org.springframework.context/src/main/java/org/springframework/context/ApplicationContextInitializer.java
<ide> * for declaring a "contextInitializerClasses" context-param and init-param, respectively.
<ide> *
<ide> * <p>{@code ApplicationContextInitializer} processors are encouraged to detect
<del> * whet... | 3 |
Javascript | Javascript | fix floating point number parsing | 0459a230631f6ff44f63d46396c474c13e6c232c | <ide><path>lib/repl.js
<ide> function REPLServer(prompt, stream, eval_, useGlobal, ignoreUndefined) {
<ide>
<ide> // Check to see if a REPL keyword was used. If it returns true,
<ide> // display next prompt and return.
<del> if (cmd && cmd.charAt(0) === '.' && cmd != parseFloat(cmd)) {
<add> if (cmd && c... | 2 |
Text | Text | fix typo in 'maxheadersize' | 25ffd39f3326ddf713f21d7a6487b7f5ec9bb806 | <ide><path>doc/api/http.md
<ide> changes:
<ide> * `localPort` {number} Local port to connect from.
<ide> * `lookup` {Function} Custom lookup function. **Default:** [`dns.lookup()`][].
<ide> * `maxHeaderSize` {number} Optionally overrides the value of
<del> [`--max-http-header-size`][] for requests received fro... | 1 |
Go | Go | fix typo in function declaration | d4a123b20b4f8fb1858f3cf411b3695353c0a973 | <ide><path>pkg/devicemapper/devmapper_wrapper_deferred_remove.go
<ide> import "C"
<ide> // LibraryDeferredRemovalsupport is supported when statically linked.
<ide> const LibraryDeferredRemovalSupport = true
<ide>
<del>func dmTaskDeferredRemoveFct(task *CDmTask) int {
<add>func dmTaskDeferredRemoveFct(task *cdmTask) in... | 1 |
Ruby | Ruby | add deprecation warning | 65a7a631ea32306cdc39a28fc30076395c183f25 | <ide><path>Library/Homebrew/language/python.rb
<ide> def self.in_sys_path? python, path
<ide>
<ide> # deprecated; use system "python", *setup_install_args(prefix) instead
<ide> def self.setup_install python, prefix, *args
<add> opoo <<-EOS.undent
<add> Language::Python.setup_install is deprecated.
... | 1 |
Java | Java | fix @since tags in scopedproxyutils[tests] | 1ec9721617a121bef1b19f104c3ace292800141c | <ide><path>spring-aop/src/main/java/org/springframework/aop/scope/ScopedProxyUtils.java
<ide> public static String getTargetBeanName(String originalBeanName) {
<ide> * @return the original bean name
<ide> * @throws IllegalArgumentException if the supplied bean name does not refer
<ide> * to the target of a scoped... | 2 |
Python | Python | improve indentation (bad levels and tabs/spaces) | f9368d8a016dc102f355ceaa3284bcbbd8e81019 | <ide><path>numpy/core/tests/test_arrayprint.py
<ide> def test_floatmode(self):
<ide> # unique mode
<ide> np.set_printoptions(floatmode='unique')
<ide> assert_equal(repr(x),
<del> "array([0.6104 , 0.922 , 0.457 , 0.0906 , 0.3733 , 0.007244,\n"
<del> " 0.5933 , 0.947 , 0.2383... | 2 |
Text | Text | update architecture overview | 844db6ff12441f63f51d4d9921cdaf4e6af61a04 | <ide><path>website/docs/usage/101/_architecture.md
<ide> Matchers help you find and extract information from [`Doc`](/api/doc) objects
<ide> based on match patterns describing the sequences you're looking for. A matcher
<ide> operates on a `Doc` and gives you access to the matched tokens **in context**.
<ide>
<del>| N... | 1 |
Text | Text | add necessary imports to final urls.py example | d655a423fb06ec8b5880a1fb63ed6ad885753a94 | <ide><path>docs/tutorial/5-relationships-and-hyperlinked-apis.md
<ide> If we're going to have a hyperlinked API, we need to make sure we name our URL p
<ide> * Our user serializer includes a field that refers to `'snippet-detail'`.
<ide> * Our snippet and user serializers include `'url'` fields that by default will ref... | 1 |
Java | Java | fix localization crash in devsettingsactivity | 427e464bb95e4e0ecc7455e71b5d477014618200 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java
<ide> public class DevSettingsActivity extends PreferenceActivity {
<ide> @Override
<ide> public void onCreate(Bundle savedInstanceState) {
<ide> super.onCreate(savedInstanceState);
<del> setTitle(R.string.catalyst_s... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.