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 |
|---|---|---|---|---|---|
Go | Go | fix -link parsing | 0d078b65817fc91eba916652b3f087a6c2eef851 | <ide><path>commands.go
<ide> func (opts AttachOpts) Set(val string) error {
<ide> // LinkOpts stores arguments to `docker run -link`
<ide> type LinkOpts []string
<ide>
<del>func (link LinkOpts) String() string { return fmt.Sprintf("%v", []string(link)) }
<del>func (link LinkOpts) Set(val string) error {
<add>func (lin... | 1 |
Java | Java | fix refreshcontrol race condition | bb5aede6e320084b1aee04f8b61089e5578fd4da | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout.java
<ide>
<ide> import com.facebook.react.bridge.ReactContext;
<ide> import com.facebook.react.uimanager.events.NativeGestureUtil;
<add>import com.facebook.react.uimanager.PixelUtil;
<ide>
<ide> /**
<ide> * Basic ext... | 2 |
Text | Text | update the api reference | 2d5a1eeafd2f2f25f16df970b30f6d751061ef77 | <ide><path>API.md
<ide> D3 4.0 is a [collection of modules](https://github.com/d3) that are designed to
<ide> * [Easings](#easings-d3-ease)
<ide> * [Forces](#forces-d3-force)
<ide> * [Number Formats](#number-formats-d3-format)
<del>* [Geographies](#geographies-d3-geo)
<add>* [Geographies](#geographies-d3-geo) ([Paths](... | 1 |
Text | Text | clarify subheadline of maintenance policy | 8ea354304fa0ae160545eadcd761a3433f447d5a | <ide><path>guides/source/maintenance_policy.md
<ide> Maintenance Policy for Ruby on Rails
<ide>
<ide> Support of the Rails framework is divided into four groups: New features, bug
<ide> fixes, security issues, and severe security issues. They are handled as
<del>follows, all versions in `X.Y.Z` format.
<add>follows, a... | 1 |
Ruby | Ruby | add set_acitve_spec method | 21eecbf1d6cfa162b50bf0fc2dd4aed259c5d3c2 | <ide><path>Library/Homebrew/formula.rb
<ide> def initialize(name, path, spec)
<ide> @pin = FormulaPin.new(self)
<ide> end
<ide>
<add> # @private
<add> def set_active_spec(spec_sym)
<add> spec = send(spec_sym)
<add> raise FormulaSpecificationError, "#{spec_sym} spec is not available for #{full_name}" unle... | 1 |
Javascript | Javascript | fix export issue in with-fauna example | 47cb2364d2a4e83c5464f2134714b90bdb37546e | <ide><path>examples/with-fauna/lib/constants.js
<add>const resolveDbDomain = () => {
<add> return process.env.FAUNA_DB_DOMAIN ?? 'db.fauna.com'
<add>}
<add>
<add>module.exports = {
<add> resolveDbDomain,
<add>}
<ide><path>examples/with-fauna/lib/fauna.js
<ide> import { GraphQLClient, gql } from 'graphql-request'
<del... | 3 |
Text | Text | add commands for non dns (rhel/centos) hosts | 8cb492946595c17c6c4d695eadf8ff63c6ddf527 | <ide><path>docs/build-instructions/linux.md
<ide> To also install the newly built application, use `--create-debian-package` or `-
<ide> sudo update-alternatives --config gcc # choose gcc-5 from the list
<ide> ```
<ide>
<del>### Fedora / CentOS / RHEL
<add>### Fedora 22+
<ide>
<ide> * `sudo dnf --assumeyes instal... | 1 |
Javascript | Javascript | remove unreachable code | 097b6d46b3c1d893e2d34780d91260e1a4ad08fb | <ide><path>src/lib/units/offset.js
<ide> export function cloneWithOffset(input, model) {
<ide> } else {
<ide> return createLocal(input).local();
<ide> }
<del> return model._isUTC ? createLocal(input).zone(model._offset || 0) : createLocal(input).local();
<ide> }
<ide>
<ide> function getDateOffset (m... | 1 |
Ruby | Ruby | remove array#wrap usage in amo serialization | 3d04d726fde4352795204f819ff4821f8991f42e | <ide><path>activemodel/lib/active_model/serialization.rb
<ide> require 'active_support/core_ext/hash/except'
<ide> require 'active_support/core_ext/hash/slice'
<del>require 'active_support/core_ext/array/wrap'
<ide>
<ide> module ActiveModel
<ide> # == Active Model Serialization
<ide> def serializable_add_includes(op... | 1 |
PHP | PHP | add `getvisible` annotation to `entityinterface` | e79a2e4f1ebd086c18c7726515dfc7152b6bba74 | <ide><path>src/Datasource/EntityInterface.php
<ide> * @method string getSource()
<ide> * @method array extractOriginal(array $properties)
<ide> * @method array extractOriginalChanged(array $properties)
<add> * @method array getVisible()
<ide> *
<ide> * @property mixed $id Alias for commonly used primary key.
<ide>... | 1 |
Text | Text | fix broken link | 369901759ddd9eaf3ef9e94ed7a096151b03bb36 | <ide><path>CONTRIBUTING.md
<ide> Changes to `.py` files will be effective immediately.
<ide> If you've made a contribution to spaCy, you should fill in the
<ide> [spaCy contributor agreement](.github/CONTRIBUTOR_AGREEMENT.md) to ensure that
<ide> your contribution can be used across the project. If you agree to be boun... | 1 |
Ruby | Ruby | combine x11 path conditionals | b1f8358fa8940806f489b0d571f5d83b20ddec57 | <ide><path>Library/Homebrew/extend/ENV/super.rb
<ide> def determine_cmake_frameworks_path
<ide> def determine_cmake_include_path
<ide> sdk = MacOS.sdk_path if MacOS::Xcode.without_clt?
<ide> paths = []
<del> paths << "#{MacOS::X11.include}/freetype2" if x11?
<ide> paths << "#{sdk}/usr/include/libxml2" ... | 1 |
Python | Python | add donate link | 4137aecca9c4add694146502cd3e6e5fc945f6dd | <ide><path>docs/conf.py
<ide> html_theme = 'flask'
<ide> html_context = {
<ide> 'project_links': [
<add> ProjectLink('Donate to Pallets', 'https://psfmember.org/civicrm/contribute/transact?id=20'),
<ide> ProjectLink('Flask Website', 'https://palletsprojects.com/p/flask/'),
<ide> ProjectLink('... | 1 |
Javascript | Javascript | move textinput proptypes to deprecated proptypes | 427b54eef61b585f42643dcd70f8b656eeeb21c4 | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> */
<ide> 'use strict';
<ide>
<del>const DeprecatedColorPropType = require('../../DeprecatedPropTypes/DeprecatedColorPropType');
<del>const DeprecatedViewPropTypes = require('../../DeprecatedPropTypes/DeprecatedViewPropTypes');
<add>const DeprecatedTextInput... | 2 |
Ruby | Ruby | handle $editor with spaces | 9f07e5d9fd226f9333b9a1241a4576d9e894f1b2 | <ide><path>Library/Homebrew/utils.rb
<ide> def exec_editor *args
<ide> editor='vim'
<ide> end
<ide> end
<del> exec editor, *args
<add> # we split the editor because especially on mac "mate -w" is common
<add> # but we still want to use the comma-delimited version of exec because then
<add> # we don't ha... | 1 |
PHP | PHP | remove unused refrence | d18451f841dc95cf919602c473e88103cfe69994 | <ide><path>src/Illuminate/Foundation/Console/RouteListCommand.php
<ide>
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<del>use Illuminate\Http\Request;
<ide> use Illuminate\Routing\Route;
<ide> use Illuminate\Routing\Router;
<ide> use Illuminate\Console\Command; | 1 |
Python | Python | improve handling of ner in conll-u misc | 4b229bfc220f1c8ab63ac2fa9b17365689d4c5a2 | <ide><path>spacy/cli/converters/conllu2json.py
<ide> def conllu2json(
<ide> Extract NER tags if available and convert them so that they follow
<ide> BILUO and the Wikipedia scheme
<ide> """
<del> MISC_NER_PATTERN = "\|?(?:name=)?(([A-Z_]+)-([A-Z_]+)|O)\|?"
<add> MISC_NER_PATTERN = "^((?:name|NE)=)?([B... | 2 |
Javascript | Javascript | fix relative module aliases for windows | e3bf20cbcf43ff3a062afc1c70e983e75e041895 | <ide><path>server/build/root-module-relative-path.js
<ide> // This function returns paths relative to the top-level 'node_modules'
<ide> // directory found in the path. If none is found, returns the complete path.
<ide>
<del>const RELATIVE_START = 'node_modules/'
<add>import { sep } from 'path'
<add>
<add>const RELATI... | 1 |
Javascript | Javascript | improve assertions in child-process-execsync | ede279cbdf4db5c53dcd0fe59cc47a7e5c74f842 | <ide><path>test/sequential/test-child-process-execsync.js
<ide> let caught = false;
<ide> // Verify that stderr is not accessed when a bad shell is used
<ide> assert.throws(
<ide> function() { execSync('exit -1', { shell: 'bad_shell' }); },
<del> /spawnSync bad_shell ENOENT/,
<del> 'execSync did not throw the expec... | 1 |
Text | Text | fix typo in custom build id docs | 7df38bc56b54706f3658445cd65800689dc60786 | <ide><path>docs/api-reference/next.config.js/configuring-the-build-id.md
<ide> description: Configure the build id, which is used to identify the current build
<ide>
<ide> # Configuring the Build ID
<ide>
<del>Next.js uses a constant id generated at build time to identify which version of your application is being se... | 1 |
Text | Text | fix broken queryset in example | 51f80c3604d9257a3f3c3aa9e3e9b02b6cebb98a | <ide><path>docs/api-guide/viewsets.md
<ide> Let's define a simple viewset that can be used to listing or retrieving all the
<ide> """
<ide> A simple ViewSet that for listing or retrieving users.
<ide> """
<del> queryset = User.objects.all()
<del>
<ide> def list(self, request):
<de... | 1 |
Go | Go | evaluate symlinks before relabeling mount source | e0b22c0b9e013527ef121250b51ae780d2d2912d | <ide><path>volume/volume.go
<ide> package volume
<ide> import (
<ide> "fmt"
<ide> "os"
<add> "path/filepath"
<ide> "syscall"
<ide> "time"
<ide>
<ide> func (m *MountPoint) Setup(mountLabel string, rootIDs idtools.IDPair, checkFun f
<ide> return
<ide> }
<ide>
<del> err = label.Relabel(m.Source, mountLabel, la... | 1 |
Python | Python | add description to hint if conn_type is missing | d65cf7755235c06bdbf63edfab31ddd348565bd9 | <ide><path>airflow/www/views.py
<ide> def _get_connection_types() -> List[Tuple[str, str]]:
<ide> choices=sorted(_get_connection_types(), key=itemgetter(1)),
<ide> widget=Select2Widget(),
<ide> validators=[InputRequired()],
<add> description="""
<add> Conn Type missing?
<add> ... | 1 |
Javascript | Javascript | use lanes to check if a render is a suspense retry | 970fa122d8188bafa600e9b5214833487fbf1092 | <ide><path>packages/react-reconciler/src/ReactFiberLane.js
<ide> export function getLanesToRetrySynchronouslyOnError(root: FiberRoot): Lanes {
<ide> export function returnNextLanesPriority() {
<ide> return return_highestLanePriority;
<ide> }
<del>export function hasUpdatePriority(lanes: Lanes) {
<add>export function ... | 3 |
Java | Java | fix typo in stringutils class | 14a32d13d0e4cc58c0a2446236fa343ce9f0a130 | <ide><path>spring-core/src/main/java/org/springframework/util/StringUtils.java
<ide> public abstract class StringUtils {
<ide>
<ide> /**
<ide> * Check whether the given object (possibly a {@code String}) is empty.
<del> * This is effectly a shortcut for {@code !hasLength(String)}.
<add> * This is effectively a sh... | 1 |
Java | Java | implement fabricviewstatemanager for modal | 2f6bda19ce95ad22443896975df590408e1dee95 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java
<ide> protected void onAfterUpdateTransaction(ReactModalHostView view) {
<ide> @Override
<ide> public Object updateState(
<ide> ReactModalHostView view, ReactStylesDiffMap props, @Nullable StateWrapper stateWrapper... | 2 |
Ruby | Ruby | use content_tag instead strings | 2bc879a43d1b7b97de871d993d1bd63414e83677 | <ide><path>actionpack/lib/action_view/helpers/tags/base.rb
<ide> def select_content_tag(option_tags, options, html_options)
<ide>
<ide> def add_options(option_tags, options, value = nil)
<ide> if options[:include_blank]
<del> option_tags = "<option value=\"\">#{ERB::Util.html_escape(option... | 1 |
Ruby | Ruby | return exit code from internal commands | bd334c55a00d006168c767ea0442df7d6a1954ea | <ide><path>Library/brew.rb
<ide> def require? path
<ide>
<ide> if internal_cmd
<ide> Homebrew.send cmd.to_s.gsub('-', '_').downcase
<add> exit 1 if Homebrew.failed?
<ide> elsif which "brew-#{cmd}"
<ide> %w[CACHE CELLAR LIBRARY_PATH PREFIX REPOSITORY].each do |e|
<ide> ENV["HOMEBREW_#{e}"] = Object... | 1 |
PHP | PHP | change exceptions to ignore | 68738b50150ed2268b2c8110fa3317be5c97d113 | <ide><path>app/Exceptions/Handler.php
<ide> namespace App\Exceptions;
<ide>
<ide> use Exception;
<del>use Illuminate\Auth\Access\UnauthorizedException;
<add>use Illuminate\Auth\Access\AuthorizationException;
<ide> use Illuminate\Database\Eloquent\ModelNotFoundException;
<ide> use Symfony\Component\HttpKernel\Exception... | 1 |
Text | Text | add section about composed commands | 9aee7d4b381664cb4876f620a97049738410f728 | <ide><path>docs/advanced/keymaps.md
<ide> given focus context. Commands are "humanized" following a simple algorithm, so a
<ide> command like `editor:fold-current-row` would appear as "Editor: Fold Current
<ide> Row".
<ide>
<add>### "Composed" Commands
<add>
<add>A common question is, "How do I make a single keybindin... | 1 |
Javascript | Javascript | assert empty maps when there are no roots | b6a55989f50d21bd916049888c81a311589c6168 | <ide><path>src/__tests__/storeSerializer.js
<ide> export function printStore(store, includeWeight = false) {
<ide> );
<ide> }
<ide>
<add> if (store.roots.length === 0) {
<add> store.assertEmptyMaps();
<add> }
<add>
<ide> return snapshotLines.join('\n');
<ide> }
<ide><path>src/devtools/store.js
<ide> expor... | 2 |
Javascript | Javascript | fix minor bug in exponent notation interpolation | e60bc4d525267bd9ba0619263cba2a5b69d9db48 | <ide><path>d3.js
<ide> d3.interpolateObject = function(a, b) {
<ide> };
<ide> }
<ide>
<del>var d3_interpolate_number = /[-+]?(?:\d+\.\d+|\d+\.|\.\d+|\d+)(?:[eE][-]?\d+)?/g,
<add>var d3_interpolate_number = /[-+]?(?:\d+\.\d+|\d+\.|\.\d+|\d+)(?:[eE][-+]?\d+)?/g,
<ide> d3_interpolate_rgb = {background: 1, fill: 1, ... | 4 |
Python | Python | remove python 2 marker | d51db72e461261ddc74e70abd7e2f745610a4408 | <ide><path>spacy/tests/regression/test_issue3001-3500.py
<ide> def test_issue3248_1():
<ide> assert len(matcher) == 2
<ide>
<ide>
<del>@pytest.mark.skipif(is_python2, reason="Can't pickle instancemethod for is_base_form")
<ide> def test_issue3248_2():
<ide> """Test that the PhraseMatcher can be pickled correc... | 1 |
Text | Text | clarify documentation for system test arguments | 46adb59b3474351e95ddc2357e67d169d6ffec51 | <ide><path>guides/source/testing.md
<ide> end
<ide>
<ide> The driver name is a required argument for `driven_by`. The optional arguments
<ide> that can be passed to `driven_by` are `:using` for the browser (this will only
<del>be used for non-headless drivers like Selenium), and `:screen_size` to change
<del>the size ... | 1 |
Go | Go | fix version numbering | e975687b9a877dc46b465b6ce8b811ce6fa02cda | <ide><path>builtins/builtins.go
<ide> func daemon(eng *engine.Engine) error {
<ide> // builtins jobs independent of any subsystem
<ide> func dockerVersion(job *engine.Job) engine.Status {
<ide> v := &engine.Env{}
<del> v.Set("Version", dockerversion.VERSION)
<add> v.SetJson("Version", dockerversion.VERSION)
<ide> v.S... | 1 |
Mixed | Javascript | initialize date adapter with chart options | f2b099b835bf5d6dfe3a7d3097997ec11983c3ed | <ide><path>docs/axes/cartesian/time.md
<ide> The following options are provided by the time scale. You may also set options p
<ide>
<ide> | Name | Type | Default | Description
<ide> | ---- | ---- | ------- | -----------
<add>| `adapters.date` | `object` | `{}` | Options for adapter for external date library if that ad... | 6 |
Text | Text | update the 'prs plz!' label name | 8a0be355a9685d9fbdb4989513c4374c2b5470d7 | <ide><path>TRIAGING.md
<ide> The following is done automatically and should not be done manually:
<ide> * small - trivial change
<ide> * medium - non-trivial but straightforward change
<ide> * large - changes to many components in angular or any changes to $compile, ngRepeat or other "fun" components
<del>1... | 1 |
Javascript | Javascript | fix merge issue | 089fe568844f522e5dbe88d0d67d4c4b353bc116 | <ide><path>test/configCases/code-generation/use-strict/index.js
<ide> it("should include only one use strict per module", function() {
<ide>
<ide> expect(matches).toEqual([
<ide> "/* unused harmony default export */ var _unused_webpack_default_export = (\"a\");",
<del> "/* webpack/runtime/make namespace object */"... | 1 |
Ruby | Ruby | move response allocation to the class level | d1b9a134cfc6ca543dab594f87e6b7c1ea0050f5 | <ide><path>actionpack/lib/action_controller/metal/live.rb
<ide> module ActionController
<ide> # the main thread. Make sure your actions are thread safe, and this shouldn't
<ide> # be a problem (don't share state across threads, etc).
<ide> module Live
<add> extend ActiveSupport::Concern
<add>
<add> module C... | 2 |
Python | Python | remove check for tuple in test_security | 60a2bdd2404955d33b6f42702556a7196915ff52 | <ide><path>tests/www/test_security.py
<ide> def test_get_all_permissions(security_manager):
<ide>
<ide> assert isinstance(perms, set)
<ide> for perm in perms:
<del> assert isinstance(perm, tuple)
<ide> assert len(perm) == 2
<del>
<ide> assert ('can_read', 'Connections') in perms
<ide>
<ide>... | 1 |
PHP | PHP | fix path to config/routes.php and update tests | 0254eb38b86eb5310de37813034f974ebd61d480 | <ide><path>src/Console/Command/Task/PluginTask.php
<ide> protected function _generateRoutes($plugin, $path) {
<ide> ]);
<ide> $this->out( __d('cake_console', 'Generating routes.php file...'));
<ide> $out = $this->Template->generate('config', 'routes');
<del> $file = $path . $plugin . DS . 'Config' . DS . 'routes... | 2 |
Go | Go | add ulimit support to libcontainerd addprocess | 8891afd8385aeb490f8b7d9db8c3828bc7d24dc1 | <ide><path>integration-cli/docker_cli_exec_test.go
<ide> func (s *DockerSuite) TestExecOnReadonlyContainer(c *check.C) {
<ide> dockerCmd(c, "exec", "parent", "true")
<ide> }
<ide>
<add>func (s *DockerSuite) TestExecUlimits(c *check.C) {
<add> testRequires(c, DaemonIsLinux)
<add> name := "testexeculimits"
<add> runSle... | 3 |
PHP | PHP | correct docblock @return types | d3e81bdb525c3c1dc8f9683eb537ad85f0f6cc21 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function environmentFile()
<ide> * Get or check the current application environment.
<ide> *
<ide> * @param mixed
<del> * @return string
<add> * @return string|bool
<ide> */
<ide> public function environment()
<ide> {... | 2 |
Python | Python | add os extra assignment | 91a7531ae69fa66f6c8c212bc004f790cf16798f | <ide><path>libcloud/container/drivers/kubernetes.py
<ide> def _to_node(self, data):
<ide> extra=extra_size,
<ide> )
<ide> extra = {"memory": memory, "cpu": cpu}
<add> labels = data["metadata"]["labels"]
<add> os = labels.get("beta.kubernetes.io/os") or labels.get("kubernetes.io... | 1 |
Ruby | Ruby | remove broken require | 985ee85f598b5a43543a566ef87738b96efab117 | <ide><path>railties/lib/test_help.rb
<ide> require 'test/unit'
<ide> require 'active_support/test_case'
<ide> require 'active_record/fixtures'
<del>require 'active_record/test_case'
<ide> require 'action_controller/test_case'
<ide> require 'action_controller/test_process'
<ide> require 'action_controller/integration' | 1 |
Python | Python | update ut 7th | a3e794a8f786faf81071bffdc7d558f72d493f96 | <ide><path>keras/utils/conv_utils.py
<ide> def normalize_tuple(value, n, name, allow_zero=False):
<ide> raise ValueError(error_msg)
<ide>
<ide> if allow_zero:
<del> unqualified_values = [v for v in value_tuple if v < 0]
<add> unqualified_values = {v for v in value_tuple if v < 0}
<ide> req_msg = '>... | 1 |
Ruby | Ruby | put tempfile into binmode before writing | 03fca453c444cc8c37caf50f9ae380b7f85509c8 | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def write content
<ide> def atomic_write content
<ide> require "tempfile"
<ide> tf = Tempfile.new(basename.to_s)
<add> tf.binmode
<ide> tf.write(content)
<ide> tf.close
<ide> | 1 |
PHP | PHP | sync it up with master branch | 8a19d18ff80338f64bf01a32d0297b9bd97344a8 | <ide><path>src/Illuminate/Foundation/Console/KeyGenerateCommand.php
<ide> public function fire()
<ide> return $this->line('<comment>'.$key.'</comment>');
<ide> }
<ide>
<del> foreach ([base_path('.env'), base_path('.env.example')] as $path)
<add> $path = base_path('.env');
<add>
<add> if (file_exists($path))
<i... | 1 |
Python | Python | remove a failing doctest for poly1d | f4d9da1e86d1031e99549073681831270e450fb4 | <ide><path>numpy/lib/tests/test_polynomial.py
<ide> >>> print(poly1d([1.89999+2j, -3j, -5.12345678, 2+1j]))
<ide> 3 2
<ide> (1.9 + 2j) x - 3j x - 5.123 x + (2 + 1j)
<del>>>> print(poly1d([100e-90, 1.234567e-9j+3, -1234.999e8]))
<del> 2
<del>1e-88 x + (3 + 1.235e-09j) x - 1.235e+11
<ide> >>> print... | 1 |
Ruby | Ruby | fix undefined method error | ea72daf7bbd0bc73280ff8140a1af5aaf370d782 | <ide><path>Library/Homebrew/upgrade.rb
<ide> def check_installed_dependents(
<ide>
<ide> # Ensure we never attempt a source build for outdated dependents of upgraded formulae.
<ide> outdated_dependents, skipped_dependents = outdated_dependents.partition do |dependent|
<del> dependent.bottled? && dep... | 1 |
Javascript | Javascript | use eventpriority to track update priority | 03ede83d2ea1878e5cb82c3c17844621989caf66 | <ide><path>packages/react-dom/src/__tests__/ReactDOMServerPartialHydration-test.internal.js
<ide> let ReactFeatureFlags;
<ide> let Suspense;
<ide> let SuspenseList;
<ide> let act;
<del>
<del>// Copied from ReactFiberLanes. Don't do this!
<del>// This is hard coded directly to avoid needing to import, and
<del>// we'll ... | 25 |
PHP | PHP | enforce specific ordering to fix failing tests | 94f18be055d7c2a87167829ffe5b6951e65799ca | <ide><path>tests/TestCase/ORM/QueryTest.php
<ide> public function testFormatDeepAssocationRecords() {
<ide> });
<ide> };
<ide> $query = $table->find()
<del> ->contain(['Articles' => $builder, 'Articles.Authors' => $builder]);
<add> ->contain(['Articles' => $builder, 'Articles.Authors' => $builder])
<add> ... | 1 |
Text | Text | fix typo in root readme | 68e19f1c228c92d5d800533f558faff24b57127a | <ide><path>README.md
<ide> At some point in the future, you'll be able to seamlessly move from pre-training
<ide> 22. **[Other community models](https://huggingface.co/models)**, contributed by the [community](https://huggingface.co/users).
<ide> 23. Want to contribute a new model? We have added a **detailed guide and ... | 1 |
PHP | PHP | remove new checks | edde524bc9b5c17c1a13096260e043f4140430a4 | <ide><path>Cake/Model/Behavior/TimestampBehavior.php
<ide> public function touch(Entity $entity, $eventName = 'Model.beforeSave') {
<ide> return false;
<ide> }
<ide>
<del> $new = $entity->isNew() !== false;
<ide> $return = false;
<ide>
<ide> foreach ($config['events'][$eventName] as $field => $when) {
<del>... | 1 |
Javascript | Javascript | move createstrictshapetypechecker to deprecated | 62e0d508d6ccc4af71f0bf03645f2bad6f6cd240 | <ide><path>Libraries/CameraRoll/CameraRoll.js
<ide> const PropTypes = require('prop-types');
<ide> const {checkPropTypes} = PropTypes;
<ide> const RCTCameraRollManager = require('NativeModules').CameraRollManager;
<ide>
<del>const createStrictShapeTypeChecker = require('createStrictShapeTypeChecker');
<add>const depre... | 3 |
Javascript | Javascript | add siswati (ss) locale | 7c5855e760f73487d3c8de9273561ef38069b01a | <ide><path>src/locale/ss.js
<add>//! moment.js locale configuration
<add>//! locale : siSwati (ss)
<add>//! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
<add>
<add>
<add>import moment from '../moment';
<add>
<add>export default moment.defineLocale('ss', {
<add> months : "Bhimbidvwane_I... | 2 |
Text | Text | remove python 3.6 from `main` in readme.md | cfb2d084315cc6177267946df08c4cf5e0608542 | <ide><path>README.md
<ide> Airflow is not a streaming solution, but it is often used to process real-time d
<ide>
<ide> Apache Airflow is tested with:
<ide>
<del>| | Main version (dev) | Stable version (2.2.3) |
<del>| -------------------- | -------------------- | ------------------------ |
<... | 1 |
PHP | PHP | remove collate nocase on sqlite orders | a8af94c567113976c24d7361443d1b0d81f55ec3 | <ide><path>src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php
<ide> protected function compileOrders(Builder $query, $orders)
<ide>
<ide> return 'order by '.implode(', ', array_map(function($order) use ($me)
<ide> {
<del> return $me->wrap($order['column']).' collate nocase '.$order['direction'];
<add> re... | 2 |
Text | Text | add documentation links to readme | f9ddf897bee41783f715daa9c4fdda65871c883d | <ide><path>README.md
<ide> workflows.
<ide> When workflows are defined as code, they become more maintainable,
<ide> versionable, testable, and collaborative.
<ide>
<del>Use airflow to author workflows as directed acyclic graphs (DAGs) of tasks.
<del>The airflow scheduler executes your tasks on an array of workers whi... | 1 |
Ruby | Ruby | remove duplicated entires | d6a50f1e7617b40be12b7878bbcbade634c8ef86 | <ide><path>Library/Homebrew/cmd/deps.rb
<ide> def deps
<ide> else
<ide> all_deps = deps_for_formulae(ARGV.formulae, !ARGV.one?, &(mode.union? ? :| : :&))
<ide> all_deps = all_deps.select(&:installed?) if mode.installed?
<del> all_deps = all_deps.sort_by(&:name) unless mode.topo_order?
<add> al... | 1 |
Python | Python | avoid broad exceptions when json.loads is used | 65d3901d771ee21207a64023ebf59072dabcef49 | <ide><path>airflow/cli/commands/pool_command.py
<ide> """
<ide> import json
<ide> import os
<add>from json import JSONDecodeError
<ide>
<ide> from tabulate import tabulate
<ide>
<ide> def pool_import_helper(filepath):
<ide> data = poolfile.read()
<ide> try: # pylint: disable=too-many-nested-blocks
<ide> ... | 6 |
Ruby | Ruby | run tests with `homebrew_developer` unset | 7a991985a47cf523e95fce32a49e195b964841a8 | <ide><path>Library/Homebrew/brew.rb
<ide> internal_dev_cmd = require? HOMEBREW_LIBRARY_PATH/"dev-cmd"/cmd
<ide> internal_cmd = internal_dev_cmd
<ide> if internal_dev_cmd && !ARGV.homebrew_developer?
<del> system "git", "config", "--file=#{HOMEBREW_REPOSITORY}/.git/config",
<del> ... | 5 |
Javascript | Javascript | improve assertion in test-inspector.js | bb898ca39de0c4f1c2ff62ce59c5315078c0856a | <ide><path>test/sequential/test-inspector.js
<ide> function checkBadPath(err) {
<ide> }
<ide>
<ide> function checkException(message) {
<del> assert.strictEqual(message.exceptionDetails, undefined,
<del> 'An exception occurred during execution');
<add> assert.strictEqual(message.exceptionDetails, ... | 1 |
Python | Python | pass table_id as str type | fe13eae3bf0542025e622e51a487f8d6a8b6d2c5 | <ide><path>airflow/providers/google/cloud/hooks/bigquery.py
<ide> def delete_table(
<ide> :param project_id: the project used to perform the request
<ide> """
<ide> self.get_client(project_id=project_id).delete_table(
<del> table=Table.from_string(table_id),
<add> table=tab... | 2 |
PHP | PHP | add support for ignoring deprecations by path | ab26a0393798662acc50ad9ed72751aa279c68a0 | <ide><path>src/Core/functions.php
<ide> function deprecationWarning(string $message, int $stackFrame = 1): void
<ide> $frame = $trace[$stackFrame];
<ide> $frame += ['file' => '[internal]', 'line' => '??'];
<ide>
<add> $patterns = (array)Configure::read('Error.disableDeprecations');
<... | 2 |
Python | Python | fix existing tests | 3aee5697859b7ff47c5bbb5609842efdf43cd80b | <ide><path>official/transformer/v2/transformer_main.py
<ide> def predict(self):
<ide>
<ide> with tf.name_scope("model"):
<ide> model = transformer.create_model(params, is_train)
<del> self._load_weights_if_possible(model, flags_obj.init_weight_path)
<add> self._load_weights_if_possible(
<add> ... | 2 |
Ruby | Ruby | define homebrew_library for tests | 09b77a7785708ad7c1d72ea4b5169118aaa79268 | <ide><path>Library/Homebrew/test/testing_env.rb
<ide> # homebrew tree, and we do want to test everything :)
<ide> HOMEBREW_PREFIX=Pathname.new '/private/tmp/testbrew/prefix'
<ide> HOMEBREW_REPOSITORY=HOMEBREW_PREFIX
<add>HOMEBREW_LIBRARY=HOMEBREW_REPOSITORY+"Library"
<ide> HOMEBREW_CACHE=HOMEBREW_PREFIX.parent+"cache"
... | 1 |
Text | Text | fix translation errors | 98858c19b5a3e73c551886d3fe4476b4a1e664d8 | <ide><path>curriculum/challenges/russian/01-responsive-web-design/applied-visual-design/adjust-the-background-color-property-of-text.russian.md
<ide> localeTitle: Отрегулируйте фоновый цвет Свойство
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> Вместо того, чтобы корректировать общий фон или цве... | 1 |
Python | Python | add assert_array_equal test for big integer arrays | a1bfe6e3c9cfd81a0ca235cd806ab7098dd93a5c | <ide><path>numpy/testing/tests/test_utils.py
<ide> def foo(t):
<ide> for t in ['S1', 'U1']:
<ide> foo(t)
<ide>
<add> def test_0_ndim_array(self):
<add> x = np.array(473963742225900817127911193656584771)
<add> y = np.array(18535119325151578301457182298393896)
<add> assert_rai... | 1 |
Javascript | Javascript | add a simple test for ray-segment intersection | e9a07c9e38a998b0061cff53371b125bb0135e14 | <ide><path>test/unit/math/Ray.js
<ide> test( "applyMatrix4", function() {
<ide> });
<ide>
<ide>
<add>test( "distanceSqAndPointToSegment4", function() {
<add> var a = new THREE.Ray( one3.clone(), new THREE.Vector3( 0, 0, 1 ) );
<add> var v0 = new THREE.Vector3( 3, 5, 50 );
<add> var v1 = new THREE.Vector3( 50, 50, 50 ... | 1 |
Java | Java | remove compiler warning | 1aad4da6b64e26557d98b8ddde58037a2db32303 | <ide><path>spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupportTests.java
<ide> public void handle() {
<ide>
<ide>
<ide> @ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "exception.user.exists")
<add> @SuppressWarnings("serial")
<ide> public static class ... | 1 |
Ruby | Ruby | save a subshell here | c75a7decb7a3a89a28c12c3f2277e1496d3c6775 | <ide><path>Library/Homebrew/build.rb
<ide> def main
<ide> # Force any future invocations of sudo to require the user's password to be
<ide> # re-entered. This is in-case any build script call sudo. Certainly this is
<ide> # can be inconvenient for the user. But we need to be safe.
<del> system "/usr/bin/sudo -k"... | 1 |
Go | Go | add ability to exclude files from tar | 2c7f50a77dc281289387008b4a08656e7e5328be | <ide><path>archive/archive.go
<ide> import (
<ide>
<ide> type Archive io.Reader
<ide>
<del>type Compression uint32
<add>type Compression int
<add>
<add>type TarOptions struct {
<add> Includes []string
<add> Excludes []string
<add> Recursive bool
<add> Compression Compression
<add> CreateFiles []string
<add>}
... | 4 |
Javascript | Javascript | improve trim performance | c2e45c769ef7a45f2bd14870236fd8e8bed38246 | <ide><path>src/Angular.js
<ide> var trim = (function() {
<ide> // TODO: we should move this into IE/ES5 polyfill
<ide> if (!String.prototype.trim) {
<ide> return function(value) {
<del> return isString(value) ? value.replace(/^\s*/, '').replace(/\s*$/, '') : value;
<add> return isString(value) ? value... | 1 |
Mixed | Javascript | add delay props to press module | 81a61b1d1ac4c3fa974a822382b2343a96f7cc31 | <ide><path>packages/react-events/README.md
<ide> *This package is experimental. It is intended for use with the experimental React
<ide> events API that is not available in open source builds.*
<ide>
<add>Event components do not render a host node. They listen to native browser events
<add>dispatched on the host node... | 5 |
Javascript | Javascript | remove redundant methods from nullformctrl | 0563a0a636b1b586e3f31e2741cb27f9c4959b5b | <ide><path>src/ng/directive/form.js
<ide> var nullFormCtrl = {
<ide> $$renameControl: nullFormRenameControl,
<ide> $removeControl: noop,
<ide> $setValidity: noop,
<del> $$setPending: noop,
<ide> $setDirty: noop,
<ide> $setPristine: noop,
<del> $setSubmitted: noop,
<del> $$clearControlValidity: noop
<add> ... | 1 |
PHP | PHP | add enumerable skip() method | 67d6b72b68b4f02665ddba079fb9edd3ddb90d8f | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function shuffle($seed = null)
<ide> return new static(Arr::shuffle($this->items, $seed));
<ide> }
<ide>
<add> /**
<add> * Skip the first {$count} items.
<add> *
<add> * @param int $count
<add> * @return static
<add> */
... | 3 |
Javascript | Javascript | use textlegend example in android as well | 335927db44fe47e20db4503a1ab5fcf8d62144a8 | <ide><path>RNTester/js/Shared/TextLegend.js
<add>/**
<add> * Copyright (c) 2015-present, Facebook, Inc.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @format
<add> * @flow
<add> */
<add>
<add>'use strict';
... | 3 |
Javascript | Javascript | add test filter | f98a603d2340290236ad856966619ba2237c8c98 | <ide><path>test/cases/inner-graph/class-dynamic-props/test.filter.js
<add>var supportsClassFields = require("../../../helpers/supportsClassFields");
<add>
<add>module.exports = function (config) {
<add> return supportsClassFields();
<add>}; | 1 |
PHP | PHP | make range() inclusive | cf1ea172df2d594a56244c9e0d73febc808bae32 | <ide><path>src/Validation/Validation.php
<ide> public static function range($check, $lower = null, $upper = null) {
<ide> return false;
<ide> }
<ide> if (isset($lower) && isset($upper)) {
<del> return ($check > $lower && $check < $upper);
<add> return ($check >= $lower && $check <= $upper);
<ide> }
<ide> ... | 2 |
PHP | PHP | refactor the session class | 6590b54f44c26be6ba76b59d25f6e30cffa54698 | <ide><path>system/session.php
<ide> public static function load($id)
<ide> static::$session = array('id' => Str::random(40), 'data' => array());
<ide> }
<ide>
<del> if ( ! static::has('csrf_token')) static::put('csrf_token', Str::random(16));
<add> if ( ! static::has('csrf_token'))
<add> {
<add> static::put(... | 1 |
Javascript | Javascript | add hey neighbor to showcase | 16b2016493fdee154853f363f96a4a6858335681 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/us/app/hashtag-by-hashley-ironic/id1022724462?mt=8',
<ide> author: 'Elephant, LLC',
<ide> },
<add> {
<add> name: 'Hey, Neighbor!',
<add> icon: 'https://raw.githubusercontent.com/scrollback/io.scroll... | 1 |
Python | Python | use list to be safe | 3f4e206fcb5ba2319f64f6bb32e324177c680b60 | <ide><path>airflow/plugins_manager.py
<ide> def validate(cls):
<ide> if file_ext != '.py':
<ide> continue
<ide> m = imp.load_source(mod_name, filepath)
<del> for obj in m.__dict__.values():
<add> for obj in list(m.__dict__.values()):
<ide> if... | 1 |
Go | Go | add test case for `docker ps -f health=starting` | f509a54bdd29b8f65c17097fde3664c6fad36c21 | <ide><path>container/state.go
<ide> func (s *State) String() string {
<ide> return fmt.Sprintf("Exited (%d) %s ago", s.ExitCodeValue, units.HumanDuration(time.Now().UTC().Sub(s.FinishedAt)))
<ide> }
<ide>
<del>// HealthString returns a single string to describe health status.
<del>func (s *State) HealthString() strin... | 2 |
Python | Python | add meta validation to check for required settings | e3de035814fa5b5bd2561bbbadc037deb8c15298 | <ide><path>spacy/cli/package.py
<ide> def package(input_dir, output_dir, meta_path, force):
<ide> else:
<ide> meta = generate_meta()
<ide>
<add> validate_meta(meta, ['lang', 'name', 'version'])
<ide> model_name = meta['lang'] + '_' + meta['name']
<ide> model_name_v = model_name + '-' + meta['ver... | 1 |
Text | Text | correct logic warning about initializers | 3033f92de192cb705a5a623fd47ff0abed3a1000 | <ide><path>guides/source/configuring.md
<ide> The `initializer` method takes three arguments with the first being the name for
<ide>
<ide> Initializers defined using the `initializer` method will be run in the order they are defined in, with the exception of ones that use the `:before` or `:after` methods.
<ide>
<del... | 1 |
Python | Python | change bootle routing to new syntax | d6ada6b20f41ce92dc1efba13056a920fee6e634 | <ide><path>glances/outputs/glances_bottle.py
<ide> def _route(self):
<ide>
<ide> # REST API
<ide> self._app.route('/api/2/args', method="GET", callback=self._api_args)
<del> self._app.route('/api/2/args/:item', method="GET", callback=self._api_args_item)
<add> self._app.route('/api/2/args... | 1 |
Python | Python | update lex_attrs.py for spanish with ordinals | 2abd380f2d17010fe22fe52e8aab529d70cbeec6 | <ide><path>spacy/lang/es/lex_attrs.py
<ide> ]
<ide>
<ide>
<add>_ordinal_words = [
<add> "primero",
<add> "segundo",
<add> "tercero",
<add> "cuarto",
<add> "quinto",
<add> "sexto",
<add> "séptimo",
<add> "octavo",
<add> "noveno",
<add> "décimo",
<add> "undécimo",
<add> "duodécimo",
... | 1 |
PHP | PHP | use a clearer variable name | e30dde25c37d2aa62209660540aac5d09459ae56 | <ide><path>src/Log/Engine/BaseLog.php
<ide> protected function _format($data, array $context = [])
<ide> return $data;
<ide> }
<ide>
<del> $object = is_object($data);
<add> $isObject = is_object($data);
<ide>
<del> if ($object && $data instanceof EntityInterface) {
<add> ... | 1 |
Go | Go | release memorystore locks before filter/apply | bd2b3d363ff7c46e01cce4e6a41d41f24a0047da | <ide><path>container/history.go
<ide> func (history *History) Swap(i, j int) {
<ide> containers[i], containers[j] = containers[j], containers[i]
<ide> }
<ide>
<del>// Add the given container to history.
<del>func (history *History) Add(container *Container) {
<del> *history = append(*history, container)
<del>}
<del>
... | 2 |
Javascript | Javascript | move utils out of react that aren't being used | d9511d817a3cb10127d7eb88f3b5d42e1c3d4ae8 | <ide><path>src/utils/__tests__/objFilter-test.js
<del>/**
<del> * Copyright 2013 Facebook, Inc.
<del> *
<del> * Licensed under the Apache License, Version 2.0 (the "License");
<del> * you may not use this file except in compliance with the License.
<del> * You may obtain a copy of the License at
<del> *
<del> * http://... | 7 |
Javascript | Javascript | add zbnf app to showcase | 0b22d09366b6278b64a639a8ad8647ecc7d4b748 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/us/app/yazboz-batak-esli-batak-okey/id1048620855?ls=1&mt=8',
<ide> author: 'Melih Mucuk',
<ide> },
<add> {
<add> name: 'ZBNF - Zero Budget Natural Farming',
<add> icon: 'https://lh3.googleuserconten... | 1 |
Javascript | Javascript | fix missing reuturn in collectionview docs | 47ff6316a2a00e8ddd375f7c9a009797b051be43 | <ide><path>packages/ember-views/lib/views/collection_view.js
<ide> var get = Ember.get, set = Ember.set, fmt = Ember.String.fmt;
<ide> } else {
<ide> viewClass = App.SongView;
<ide> }
<del> this._super(viewClass, attrs);
<add> return this._super(viewClass, attrs);
<ide> }
<ide> });
<... | 1 |
PHP | PHP | remove specific php5.5 code | 83add78952e6ab790477310b60cf9f36dfd0dfcb | <ide><path>src/Network/Socket.php
<ide> protected function _setSslContext($host)
<ide> if (!isset($this->_config['context']['ssl']['SNI_enabled'])) {
<ide> $this->_config['context']['ssl']['SNI_enabled'] = true;
<ide> }
<del> if (version_compare(PHP_VERSION, '5.6.0', '>=')) {
<del> ... | 7 |
PHP | PHP | allow whitespaces between tags in asserttags() | b7ec7dbbad6c73f5a6e19b0da9e85f0992a0257c | <ide><path>cake/tests/lib/cake_test_case.php
<ide> function loadFixtures() {
<ide> * )
<ide> *
<ide> * Important: This function is very forgiving about whitespace and also accepts any permutation of attribute order.
<add> * It will also allow whitespaces between specified tags.
<ide> *
<ide> * @param string $strin... | 1 |
Text | Text | add syscalls we purposely block to docs | 52f32818df8bad647e4c331878fa44317e724939 | <ide><path>docs/security/seccomp.md
<ide> containers with seccomp. It is moderately protective while
<ide> providing wide application compatibility.
<ide>
<ide>
<del>Overriding the default profile for a container
<del>----------------------------------------------
<add>### Overriding the default profile for a contain... | 1 |
Go | Go | remove unused 'transfered' variable | 34175eb47ef5de023b68cef5af529b74c68b3ab3 | <ide><path>pkg/proxy/tcp_proxy.go
<ide> package proxy
<ide> import (
<ide> "io"
<ide> "net"
<add> "sync"
<ide> "syscall"
<ide>
<ide> "github.com/Sirupsen/logrus"
<ide> func (proxy *TCPProxy) clientLoop(client *net.TCPConn, quit chan bool) {
<ide> return
<ide> }
<ide>
<del> event := make(chan int64)
<add> var w... | 1 |
PHP | PHP | pass connection name to query event. closes | 6f690e84b35891c97d21d264fa5c308885007652 | <ide><path>src/Illuminate/Database/Connection.php
<ide> public function logQuery($query, $bindings, $time = null)
<ide> {
<ide> if (isset($this->events))
<ide> {
<del> $this->events->fire('illuminate.query', array($query, $bindings, $time));
<add> $this->events->fire('illuminate.query', array($query, $bindings... | 2 |
Javascript | Javascript | add spec for androidtoast | 08efb1d73b73073cb8509bd5fe0189189d31392c | <ide><path>Libraries/Components/ToastAndroid/NativeToastAndroid.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @flow
<add> * @format
<add>... | 3 |
Text | Text | improve the changelog entry [ci skip] | d150387a38b3dc4ef091956352c654c3941a985a | <ide><path>activerecord/CHANGELOG.md
<del>* db:test:clone and db:test:prepare must load Rails environment
<add>* `db:test:clone` and `db:test:prepare` must load Rails environment.
<ide>
<del> db:test:clone and db:test:prepare use ActiveRecord::Base. configurations,
<del> so we need to load the rails environm... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.