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
update docs about exposing env vars to the browser
501bfe69695b0e563e88af689105882513c2b370
<ide><path>docs/basic-features/environment-variables.md <ide> export async function getStaticProps() { <ide> <ide> ## Exposing Environment Variables to the Browser <ide> <del>By default all environment variables loaded through `.env.local` are only available in the Node.js environment, meaning they won't be exposed t...
1
Javascript
Javascript
use _writev in internal communication
d2a6f06dce724d24b0aa3c7a2821e4757002bffc
<ide><path>lib/internal/main/worker_thread.js <ide> port.on('message', (message) => { <ide> CJSLoader.Module.runMain(filename); <ide> } <ide> } else if (message.type === STDIO_PAYLOAD) { <del> const { stream, chunk, encoding } = message; <del> process[stream].push(chunk, encoding); <add> const { st...
3
PHP
PHP
implement new primary key syntax
2e2be97c2686bf919f06a47849902b80586cfa6c
<ide><path>database/migrations/2014_10_12_000000_create_users_table.php <ide> class CreateUsersTable extends Migration <ide> public function up() <ide> { <ide> Schema::create('users', function (Blueprint $table) { <del> $table->bigIncrements('id'); <add> $table->id(); <ide> ...
2
Text
Text
create reusable css with mixins"
c03beb3ca68e91759c92f41131259cc96d0de011
<ide><path>curriculum/challenges/english/03-front-end-libraries/sass/create-reusable-css-with-mixins.md <ide> tests: <ide> - text: Your code should declare a mixin named <code>border-radius</code> which has a parameter named <code>$radius</code>. <ide> testString: assert(code.match(/@mixin\s+?border-radius\s*?\(\...
1
Text
Text
add blanks around code fences
9ab1e07774b0c38a66e29f4b0b257ded8ee04d08
<ide><path>BUILDING.md <ide> during configuration if the ICU version is too old. <ide> #### Unix/macOS <ide> <ide> From an already-unpacked ICU: <add> <ide> ```console <ide> $ ./configure --with-intl=[small-icu,full-icu] --with-icu-source=/path/to/icu <ide> ``` <ide> <ide> From a local ICU tarball: <add> <ide> ```con...
23
Javascript
Javascript
fix three path
0533e1785a069795c0f9c4fc2905447c049910b2
<ide><path>examples/jsm/postprocessing/LUTPass.js <del>import { ShaderPass } from '//unpkg.com/three@0.120.1/examples/jsm/postprocessing/ShaderPass.js'; <add>import { ShaderPass } from './ShaderPass.js'; <ide> <ide> const LUTShader = { <ide>
1
Mixed
Javascript
add headers prop to android webviews
80a2f5d50fc61b8ba48169d8dcca0247f4b484f2
<ide><path>Libraries/Components/WebView/WebView.android.js <ide> var StyleSheet = require('StyleSheet'); <ide> var UIManager = require('UIManager'); <ide> var View = require('View'); <ide> <add>var deprecatedPropType = require('deprecatedPropType'); <ide> var keyMirror = require('keyMirror'); <ide> var merge = require...
2
Python
Python
raise assertionerror on failure
c3d111cc84c04b1b70c719138cc46d3ad531bfed
<ide><path>numpy/lib/tests/test_regression.py <ide> class C(): <ide> out = open(os.devnull, 'w') <ide> try: <ide> np.info(C(), output=out) <add> except AttributeError: <add> raise AssertionError() <ide> finally: <ide> out.close() <ide>
1
Go
Go
move "viz" to graph/viz.go
77781440f13b07caa19c835523cbc6591dc1ffa8
<ide><path>graph/service.go <ide> func (s *TagStore) Install(eng *engine.Engine) error { <ide> eng.Register("image_export", s.CmdImageExport) <ide> eng.Register("history", s.CmdHistory) <ide> eng.Register("images", s.CmdImages) <add> eng.Register("viz", s.CmdViz) <ide> return nil <ide> } <ide> <ide><path>graph/viz...
4
Python
Python
apply suggestions from code review
57b5fc1995ded2f4bb9dd6305c567cdd4c1151ee
<ide><path>spacy/displacy/render.py <ide> def render_ents( <ide> end = span["end"] <ide> kb_id = span.get("kb_id", "") <ide> kb_url = span.get("kb_url", "") <add> if kb_id: <add> kb_link = """<a style="text-decoration: none; color: black; font-weight: bold" ...
2
PHP
PHP
add attributes() and hasattribute() functions
4c55494e675ee2d15c9067b1f235efd188fa1d9e
<ide><path>src/Illuminate/Validation/Validator.php <ide> public function after($callback) <ide> */ <ide> public function sometimes($attribute, $rules, callable $callback) <ide> { <del> $payload = new Fluent(array_merge($this->data, $this->files)); <add> $payload = new Fluent($this->attributes...
1
Ruby
Ruby
fix method typo
48641f3a3a0423004a7e6f8bae931e752b534f28
<ide><path>Library/Homebrew/install.rb <ide> def install_formula( <ide> Upgrading #{Formatted.identifier(f.name)} #{version_upgrade} <ide> EOS <ide> outdated_kegs = outdated_formulae.map(&:linked_keg).select(&:directory?).map { |k| Keg.new(k.resolved_path) } <del> linked_kegs = outdat...
1
Ruby
Ruby
pass a request object to the headers object
34fa6658dd1b779b21e586f01ee64c6f59ca1537
<ide><path>actionpack/lib/action_dispatch/http/headers.rb <ide> class Headers <ide> HTTP_HEADER = /\A[A-Za-z0-9-]+\z/ <ide> <ide> include Enumerable <del> attr_reader :env <ide> <del> def initialize(env = {}) # :nodoc: <del> @env = env <add> def self.from_hash(hash) <add> new ...
4
PHP
PHP
fix silent failures
00f3e7e441d3f8e839a2488e4caebe19ede81b84
<ide><path>lib/Cake/TestSuite/ControllerTestCase.php <ide> abstract class ControllerTestCase extends CakeTestCase { <ide> * <ide> * @param string $name The name of the function <ide> * @param array $arguments Array of arguments <del> * @return Function <add> * @return the return of _testAction <add> * @throws BadMet...
1
Text
Text
add a section on rn support
022e6b0fa0c47754d36f7cb37a6842b385ee4141
<ide><path>README.md <ide> export default class Counter { <ide> <ide> import React from 'react'; <ide> import { bindActionCreators } from 'redux'; <del>import { Connector } from 'redux/react'; // Or redux/react-native <add>import { Connector } from 'redux/react'; <ide> import Counter from '../components/Counter'; <ide...
1
Python
Python
delay calls of array repr in getlimits
0649ba224f7b44f6da7005c1e8240d970a5a3be5
<ide><path>numpy/core/getlimits.py <ide> def __init__(self, <ide> params = _MACHAR_PARAMS[ftype] <ide> float_conv = lambda v: array([v], ftype) <ide> float_to_float = lambda v : _fr1(float_conv(v)) <del> float_to_str = lambda v: (params['fmt'] % array(_fr0(v)[0], ftype)) <add> self...
1
PHP
PHP
remove temp variable
9d54a3bbdf32d185a68e2261be1eca95ac071729
<ide><path>src/Illuminate/Database/Schema/MySqlSchemaState.php <ide> protected function executeDumpProcess(Process $process, $output, array $variable <ide> $process->mustRun($output, $variables); <ide> } catch (Exception $e) { <ide> if (Str::contains($e->getMessage(), 'column_statistics'...
1
Go
Go
increase timeout on health check command
47436e9628149e7077a8e89c2fcac2a8f85bc62a
<ide><path>integration-cli/docker_api_swarm_service_test.go <ide> func (s *DockerSwarmSuite) TestAPISwarmServicesUpdateStartFirst(c *check.C) { <ide> // service started from this image won't pass health check <ide> _, _, err := d.BuildImageWithOut(image2, <ide> `FROM busybox <del> HEALTHCHECK --interval=1s --timeo...
1
PHP
PHP
add mapinto method
2642ac73cc5718a8aebe3d009b143b0fa43be085
<ide><path>src/Illuminate/Support/Collection.php <ide> public function flatMap(callable $callback) <ide> return $this->map($callback)->collapse(); <ide> } <ide> <add> /** <add> * Map the values into a new class. <add> * <add> * @param string $class <add> * @return static <add> */ <...
2
PHP
PHP
fix bug in wincache driver
24a3fc8ccf7d6839e42f5f509e413bbcde8ac06b
<ide><path>src/Illuminate/Cache/WinCacheStore.php <ide> protected function retrieveItem($key) <ide> */ <ide> protected function storeItem($key, $value, $minutes) <ide> { <del> wincache_ucache_add($this->prefix.$key, value, $minutes * 60); <add> wincache_ucache_add($this->prefix.$key, $value, $minutes * 60); <ide>...
1
Text
Text
fix typo in models.md
8109f0bcf29ede50b41b70fe6ecb5d1eca8ead79
<ide><path>website/docs/usage/models.md <ide> logic around spaCy's loader, you can use <ide> [pytest](http://pytest.readthedocs.io/en/latest/)'s <ide> [`importorskip()`](https://docs.pytest.org/en/latest/builtin.html#_pytest.outcomes.importorskip) <ide> method to only run a test if a specific pipeline package or versio...
1
Javascript
Javascript
add support for copying `blob` objects
0b1b9112a341f7f798db915575fad63e0e59894e
<ide><path>src/Angular.js <ide> function copy(source, destination) { <ide> var re = new RegExp(source.source, source.toString().match(/[^\/]*$/)[0]); <ide> re.lastIndex = source.lastIndex; <ide> return re; <add> <add> case '[object Blob]': <add> return new source.constructor([source]...
3
PHP
PHP
fix tests that fail on windows
154b0015525642344d7a8e1931d32babec769e9d
<ide><path>lib/Cake/Test/Case/Utility/DebuggerTest.php <ide> public function testExportVar() { <ide> float => (float) 1.333 <ide> } <ide> TEXT; <del> $result = str_replace(array("\r\n", "\n"), "", $result); <del> $expected = str_replace(array("\r\n", "\n"), "", $expected); <del> $this->assertEquals($expected, $res...
3
Javascript
Javascript
make timeout longer (correctly)
f582f9e57be3cc7988d3a7c99493e77d8eda17e6
<ide><path>Gruntfile.js <ide> module.exports = function(grunt) { <ide> stderr: true, <ide> failOnError: true <ide> }, <del> command: path.normalize('./node_modules/.bin/promises-aplus-tests tmp/promises-aplus-adapter++.js -t 2000') <add> command: path.normalize('./node_modules/...
1
Ruby
Ruby
move alias building to the table node
a53c2beac42e0fea5dab9a334a066911beeba976
<ide><path>activerecord/lib/active_record/associations/join_dependency.rb <ide> def columns <ide> @tables.flat_map { |t| t.columns } <ide> end <ide> <del> class Table < Struct.new(:table, :columns) <add> class Table < Struct.new(:name, :alias, :columns) <add> def table <add> ...
2
Python
Python
resolve line-too-long in applications
2ba062a28b6c646e1a0a88d0e0d30aab3438c757
<ide><path>keras/applications/convnext.py <ide> include_top: Whether to include the fully-connected <ide> layer at the top of the network. Defaults to True. <ide> weights: One of `None` (random initialization), <del> `"imagenet"` (pre-training on ImageNet-1k), or the path to the weights file <del> ...
12
Python
Python
add glorot & he initializations
a1c9d0823cd284213c884be0964cd47c47d5e666
<ide><path>keras/initializations.py <ide> def lecun_uniform(shape): <ide> scale = 1./np.sqrt(m) <ide> return uniform(shape, scale) <ide> <add>def glorot_normal(shape): <add> ''' Reference: Glorot & Bengio, AISTATS 2010 <add> ''' <add> fan_in = shape[0] if len(shape) == 2 else np.prod(shape[1:]) <add> ...
1
Python
Python
mark some tests with slow decorator
0efbe711422ac32850d54f791faf8ad46fcdc4a0
<ide><path>numpy/core/tests/test_extint128.py <ide> import numpy.core.multiarray_tests as mt <ide> from numpy.compat import long <ide> <del>from numpy.testing import assert_raises, assert_equal <add>from numpy.testing import assert_raises, assert_equal, dec <ide> <ide> <ide> INT64_MAX = np.iinfo(np.int64).max <ide> ...
2
PHP
PHP
update config folder references
7f2b426c50f41076b07ef42c60b775f60262b953
<ide><path>tests/TestCase/Console/Command/Task/PluginTaskTest.php <ide> public function testBakeFoldersAndFiles() { <ide> $this->assertTrue(is_dir($path), 'No plugin dir'); <ide> <ide> $directories = array( <del> 'src/Config', <add> 'config', <ide> 'src/Model/Behavior', <ide> 'src/Model/Table', <ide> ...
1
Python
Python
add no_status to state priority list
55aa7015037156822a8100518ffe189c4610e186
<ide><path>airflow/www/utils.py <ide> def get_instance_with_map(task_instance, session): <ide> return get_mapped_summary(task_instance, mapped_instances) <ide> <ide> <del>def get_mapped_summary(parent_instance, task_instances): <del> priority = [ <del> TaskInstanceState.FAILED, <del> TaskInstance...
2
Python
Python
pass ping destination to request
f8e3df669e0c1e2769d358655115cc9596f11fa5
<ide><path>celery/app/control.py <ide> def registered(self, *taskinfoitems): <ide> registered_tasks = registered <ide> <ide> def ping(self, destination=None): <add> if destination: <add> self.destination = destination <ide> return self._request('ping') <ide> <ide> def active_queu...
1
Text
Text
update deployment docs to fix oversized image.
bc223d76e0e1962ba5904b52597c4b3a47184f11
<ide><path>docs/deployment.md <ide> All JavaScript code inside `.next` has been **compiled** and browser bundles hav <ide> <ide> ## Managed Next.js with Vercel <ide> <del>[Vercel](https://vercel.com/) is a frontend cloud platform from the creators of Next.js. It's the fastest way to deploy your managed Next.js applic...
1
Go
Go
fix empty-lines (revive)
ddb42f3ad204f6ea4312c4db71bc01105e87d3c1
<ide><path>daemon/container_operations.go <ide> func (daemon *Daemon) allocateNetwork(container *container.Container) (retErr er <ide> if err := daemon.connectToNetwork(container, defaultNetName, nConf.EndpointSettings, updateSettings); err != nil { <ide> return err <ide> } <del> <ide> } <ide> <ide> // the in...
9
Go
Go
add unit test for child changes diff in aufs
f512049c8f9e64848cd8b1be794619f01c5227f2
<ide><path>aufs/aufs_test.go <ide> func TestChanges(t *testing.T) { <ide> if change.Kind != archive.ChangeAdd { <ide> t.Fatalf("Change kind should be ChangeAdd got %s", change.Kind) <ide> } <add> <add> if err := d.Create("3", "2"); err != nil { <add> t.Fatal(err) <add> } <add> mntPoint, err = d.Get("3") <add> if e...
1
Ruby
Ruby
convert `formula_support` test to spec
fb09867ba35e3cb30651cc6b9ab871849c7e8474
<ide><path>Library/Homebrew/test/formula_support_spec.rb <add>require "formula_support" <add> <add>describe KegOnlyReason do <add> describe "#to_s" do <add> it "returns the reason provided" do <add> r = KegOnlyReason.new :provided_by_osx, "test" <add> expect(r.to_s).to eq("test") <add> end <add> <add> ...
2
Text
Text
add section for troubleshooting. closes
c211a084ef86a4fb496c736ebf20f07525b64701
<ide><path>docs/Troubleshooting.md <ide> permalink: docs/troubleshooting.html <ide> --- <ide> <ide> ## Cmd-R does not reload the simulator <del>Enable iOS simulator's "Connect hardware keyboard" from menu Hardware > Keyboard menu. <add>Enable iOS simulator's "Connect hardware keyboard" from menu Hardware > Keyboard m...
1
Javascript
Javascript
fix performance regression with cursors
a602dcbd14d3ab99329d93c9e4713a48a4fc8ec1
<ide><path>contrib/cursor/index.js <ide> function cursorFrom(rootData, keyPath, onChange) { <ide> } else if (typeof keyPath === 'function') { <ide> onChange = keyPath; <ide> keyPath = []; <del> } else if (!Array.isArray(keyPath)) { <del> keyPath = [keyPath]; <add> } else { <add> keyPath = valToKeyPath...
1
Python
Python
use assert function instead of python keyword
1aca67fcc689b66737b39862e517e821be0c4767
<ide><path>numpy/core/tests/test_multiarray.py <ide> def test_lt(self): <ide> res3 = lp < r <ide> res4 = lp < rp <ide> <del> assert np.allclose(res1, res2.array) <del> assert np.allclose(res1, res3.array) <del> assert np.allclose(res1, res4.array) <del> assert isinstance(res...
1
PHP
PHP
fix formatting and tests
db4879ae84a3a1959729ac2732ae42cfe377314c
<ide><path>src/Illuminate/Notifications/Channels/SlackWebhookChannel.php <ide> namespace Illuminate\Notifications\Channels; <ide> <ide> use GuzzleHttp\Client as HttpClient; <del>use Illuminate\Notifications\Messages\SlackAttachmentField; <ide> use Illuminate\Notifications\Notification; <ide> use Illuminate\Notificatio...
4
PHP
PHP
fix double inflection in bake all <foo>
0f71254fe175c4a67c355cc39633e8a1c65979e4
<ide><path>lib/Cake/Console/Command/BakeShell.php <ide> public function all() { <ide> } <ide> App::uses($controller . 'Controller', 'Controller'); <ide> if (class_exists($controller . 'Controller')) { <del> $this->View->args = array($controller); <add> $this->View->args = array($name); <ide> $this->V...
2
Text
Text
add changelog entry for . [ci skip]
1b356c2e7ad4eaf5ed16584501c586d1893b8eed
<ide><path>activerecord/CHANGELOG.md <add>* Fix default `format` value in `ActiveRecord::Tasks::DatabaseTasks#schema_file`. <add> <add> *James Cox* <add> <ide> * Dont enroll records in the transaction if they dont have commit callbacks. <ide> That was causing a memory grow problem when creating a lot of reco...
1
Java
Java
fix stacktrace parsing for js
37d28be2d97df0310d1918b258b40815c8346209
<ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/StackTraceHelper.java <ide> public class StackTraceHelper { <ide> public static final java.lang.String COLUMN_KEY = "column"; <ide> public static final java.lang.String LINE_NUMBER_KEY = "lineNumber"; <ide> <del> private static final Pattern STAC...
2
PHP
PHP
add type hints
4a9abe430042a577fa7230951b2ff9dbb0f7b824
<ide><path>src/Collection/CollectionInterface.php <ide> public function take(int $size = 1, int $from = 0): CollectionInterface; <ide> * @param int $howMany The number of elements at the end of the collection <ide> * @return \Cake\Collection\CollectionInterface <ide> */ <del> public function takeLast(...
2
Go
Go
normalize the use of normalize
ae8dbeaeedce3a9f247f2d58df7459f9d79bde5d
<ide><path>builder/dockerfile/dispatchers.go <ide> func workdir(req dispatchRequest) error { <ide> runConfig := req.state.runConfig <ide> // This is from the Dockerfile and will not necessarily be in platform <ide> // specific semantics, hence ensure it is converted. <del> runConfig.WorkingDir, err = normaliseWorkdi...
13
Ruby
Ruby
remove nil requireds/dependents"
49310667b4e6327d8276752a74fe480c1d7fb135
<ide><path>Library/Homebrew/cmd/uninstall.rb <ide> class DependentsMessage <ide> attr_reader :reqs, :deps <ide> <ide> def initialize(requireds, dependents) <del> @reqs = requireds.compact <del> @deps = dependents.compact <add> @reqs = requireds <add> @deps = dependents <ide> end <ide> ...
1
Javascript
Javascript
perform replacmenents even without parser
1a541e12cef4f31437ad1831f92911306e57ae9f
<ide><path>lib/dependencies/ContextDependencyHelpers.js <ide> ContextDependencyHelpers.create = ( <ide> dep.loc = expr.loc; <ide> const replaces = []; <ide> <del> if (parser) { <del> param.parts.forEach((part, i) => { <del> if (i % 2 === 0) { <del> // Quasis or merged quasi <del> let range = part.ran...
1
PHP
PHP
fix remaining failing tests
2eb2b1eb6a5bdc103b9933dd0335f017905fac29
<ide><path>lib/Cake/Network/Request.php <ide> public static function createFromGlobals() { <ide> * @param array $config An array of request data to create a request with. <ide> */ <ide> public function __construct($config = array()) { <del> $config = (array)$config; <add> if (is_string($config)) { <add> $config ...
2
Go
Go
avoid regression in events test
560eb07009d65fbcfb49b2fa8b04a2e3f4d647e8
<ide><path>integration-cli/docker_cli_events_test.go <ide> func TestCLILimitEvents(t *testing.T) { <ide> out, _, _ := runCommandWithOutput(eventsCmd) <ide> events := strings.Split(out, "\n") <ide> n_events := len(events) - 1 <del> if n_events > 64 { <add> if n_events != 64 { <ide> t.Fatalf("events should be limite...
1
Javascript
Javascript
use indices instead of indicies
1014d4b829429f238a17cae35f78a12756bc5155
<ide><path>test/configCases/chunk-index/order-multiple-entries/webpack.config.js <ide> module.exports = { <ide> `${i}: ${m.readableIdentifier(compilation.requestShortener)}` <ide> ) <ide> .join(", "); <del> const indicies2 = Array.from(compilation.modules) <add> const indices2 = Array.from(c...
1
PHP
PHP
simplify encrypter logic
051c68d94f812986f54d71294d66a3a7bfad5adf
<ide><path>src/Illuminate/Encryption/Encrypter.php <ide> class Encrypter extends BaseEncrypter implements EncrypterContract <ide> */ <ide> protected $cipher; <ide> <del> /** <del> * The block size of the cipher. <del> * <del> * @var int <del> */ <del> protected $block = 16; <del> <ide> ...
1
Python
Python
fix reference to atleast_1d
75b004254f46992f742b2f128700f8cf7d5b3d6d
<ide><path>numpy/core/fromnumeric.py <ide> def nonzero(a): <ide> .. note:: <ide> <ide> When called on a zero-d array or scalar, ``nonzero(a)`` is treated <del> as ``nonzero(atleast1d(a))``. <add> as ``nonzero(atleast_1d(a))``. <ide> <ide> .. deprecated:: 1.17.0 <ide> <del> Use ...
1
Python
Python
freeze backbone support for retinanet
14c320651e69248809bf22587644d5e4700748ea
<ide><path>official/vision/configs/retinanet.py <ide> class RetinaNetTask(cfg.TaskConfig): <ide> # If set, the Waymo Open Dataset evaluator would be used. <ide> use_wod_metrics: bool = False <ide> <add> # If set, freezes the backbone during training. <add> # TODO(crisnv) Add paper link when available. <add> fre...
2
PHP
PHP
change $serializer visibility, and other fix
85e5ef4d4ece0014211e380c038b71d058ce3c10
<ide><path>lib/Cake/Cache/Engine/MemcachedEngine.php <ide> class MemcachedEngine extends CacheEngine { <ide> public $settings = array(); <ide> <ide> /** <del> * List of available serializer engine <add> * List of available serializer engines <ide> * <ide> * Memcached must be compiled with json and igbinary support ...
1
Javascript
Javascript
handle errors that are not `error` instances
34d57afc32b25984741d3772a7cf832cfa189d79
<ide><path>Libraries/JavaScriptAppEngine/Initialization/ExceptionsManager.js <ide> var stringifySafe = require('stringifySafe'); <ide> <ide> var sourceMapPromise; <ide> <del>type Exception = { <del> sourceURL: string; <del> line: number; <del> message: string; <del>} <del> <ide> var exceptionID = 0; <ide> <del>fu...
1
Javascript
Javascript
push serialize module to swarm /cc @jaubourg
0d9006531d2b991cdbf419e1b4b0b4e03a588b10
<ide><path>grunt.js <ide> module.exports = function( grunt ) { <ide> var testswarm = require( "testswarm" ), <ide> testUrls = [], <ide> config = grunt.file.readJSON( configFile ).jquery, <del> tests = "ajax attributes callbacks core css data deferred dimensions effects event manipulation offset queue selector...
1
Text
Text
fix filename in usagewithreactrouter
decec821a17551934f7b15ea27c0236a43979964
<ide><path>docs/advanced/UsageWithReactRouter.md <ide> const FilterLink = ({ filter, children }) => ( <ide> export default FilterLink; <ide> ``` <ide> <del>#### `containers/Footer.js` <add>#### `components/Footer.js` <ide> ```js <ide> import React from 'react' <ide> import FilterLink from '../containers/FilterLink'
1
Javascript
Javascript
add more filter tests
da113811543865de525f5332209d384b5352be3e
<ide><path>test/parallel/test-stream-filter.js <ide> const { <ide> Readable, <ide> } = require('stream'); <ide> const assert = require('assert'); <add>const { once } = require('events'); <ide> const { setTimeout } = require('timers/promises'); <ide> <ide> { <ide> const { setTimeout } = require('timers/promises'); <i...
1
Ruby
Ruby
add epoch tests
6a684f41993f4820b48b7487c32096ea72d4de2f
<ide><path>Library/Homebrew/test/test_formula.rb <ide> def setup_tab_for_prefix(prefix, options = {}) <ide> <ide> def reset_outdated_versions <ide> f.instance_variable_set(:@outdated_versions, nil) <del> f.instance_variable_set(:@outdated_versions_head_fetched, nil) <ide> end <ide> <ide> def test_greater...
1
Ruby
Ruby
fix activejob isolation tests
2f9179b4f4dd3335583ddcc046d520b149b91866
<ide><path>activejob/test/cases/rescue_test.rb <ide> require 'helper' <ide> require 'jobs/rescue_job' <add>require 'models/person' <ide> <ide> require 'active_support/core_ext/object/inclusion' <ide>
1
Text
Text
specify path to commentscontroller again inline
8cf428fe78d8a45690524e83663e69ae35a5c413
<ide><path>guides/source/getting_started.md <ide> This adds a form on the `Post` show page that creates a new comment by <ide> calling the `CommentsController` `create` action. The `form_for` call here uses <ide> an array, which will build a nested route, such as `/posts/1/comments`. <ide> <del>Let's wire up the `crea...
1
Javascript
Javascript
change arguments order in strictequal
a67e0a6fd21d09c3bca2c6211109e5be980b0b9d
<ide><path>test/parallel/test-net-eaddrinuse.js <ide> const server2 = net.createServer(function(socket) { <ide> }); <ide> server1.listen(0, function() { <ide> server2.on('error', function(error) { <del> assert.strictEqual(true, error.message.includes('EADDRINUSE')); <add> assert.strictEqual(error.message.includ...
1
Go
Go
allow inter-network connectivity via exposed ports
9db2b791bcc798852a4b1c698e401e1882f5be2f
<ide><path>libnetwork/drivers/bridge/setup_ip_tables.go <ide> func setupIPTablesInternal(bridgeIface string, addr net.Addr, icc, ipmasq, hairp <ide> address = addr.String() <ide> natRule = iptRule{table: iptables.Nat, chain: "POSTROUTING", preArgs: []string{"-t", "nat"}, args: []string{"-s", address, "!", "-o",...
1
Javascript
Javascript
reverse factory usekeys instead of instanceof
a51e636d6e8535c65547850c5b077e175c0ebcd6
<ide><path>dist/Immutable.js <ide> var $Sequence = Sequence; <ide> return reversed.reduce.apply(reversed, arguments); <ide> }, <ide> reverse: function() { <del> return reverseFactory(this); <add> return reverseFactory(this, true); <ide> }, <ide> slice: function(begin, end) { <ide> if (wholeSlice(b...
3
Python
Python
remove redundant parentheses
20b1664685027ef7e1b9a5c9c30d1fddb600ed0f
<ide><path>airflow/configuration.py <ide> def _TEST_CONFIG(): <ide> _deprecated = { <ide> 'DEFAULT_CONFIG': _DEFAULT_CONFIG, <ide> 'TEST_CONFIG': _TEST_CONFIG, <del> 'TEST_CONFIG_FILE_PATH': functools.partial(_default_config_file_path, ('default_test.cfg')), <del> 'DEFAULT_CONFIG_FILE_PATH': functools.par...
1
Ruby
Ruby
unify benchmark apis
a15e02d44ac2afb27a7e8e652c98a796d271b645
<ide><path>actionpack/lib/abstract_controller/logger.rb <ide> require 'active_support/core_ext/logger' <add>require 'active_support/benchmarkable' <ide> <ide> module AbstractController <ide> module Logger <ide> extend ActiveSupport::Concern <ide> <ide> included do <ide> cattr_accessor :logger <del> ...
10
Javascript
Javascript
add test to fs/promises setimmediate
5dd344a2a8a70d8c3b6e570c00b72f03d2801a84
<ide><path>test/parallel/test-timers-promisified.js <ide> process.on('multipleResolves', common.mustNotCall()); <ide> code: 'ERR_INVALID_ARG_TYPE' <ide> })).then(common.mustCall()); <ide> <add> Promise.all( <add> [1, '', Infinity, null, {}].map( <add> (ref) => assert.rejects(setImmediate(10, { r...
1
Ruby
Ruby
remove useless conditional
85903d1b08963c1ac872106c3c727ff5468559a2
<ide><path>actionpack/lib/action_controller/test_case.rb <ide> def check_required_ivars <ide> end <ide> <ide> def build_request_uri(controller_class_name, action, parameters) <del> unless @request.env["PATH_INFO"] <del> options = @controller.respond_to?(:url_options) ? @controller.__send__(...
1
Text
Text
release notes for 1.0.2 and 1.1.0 releases
db861db1f239bdb2c13f157e2632cb2bc76f0432
<ide><path>CHANGELOG.md <add><a name="1.1.0"></a> <add># 1.1.0 increase-gravatas (2012-08-31) <add> <add>_Note: 1.1.x releases are [considered unstable](http://blog.angularjs.org/2012/07/angularjs-10-12-roadmap.html)._ <add> <add>## Features <add> <add>- **$http:** support custom reponseType <add> ([e0a54f6b](https://...
1
Ruby
Ruby
make parameters#to_h and #to_unsafe_h return hwia
6d4aef984c0cd74ebd92b8d18a8e68f371fbb944
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> def ==(other_hash) <ide> end <ide> end <ide> <del> # Returns a safe +Hash+ representation of this parameter with all <del> # unpermitted keys removed. <add> # Returns a safe <tt>ActiveSupport::HashWithIndifferentAccess</tt>...
2
Java
Java
fix spel javabean compliance
1f28bdfbfa7f6f7025dac18bd5cdf4fdefb32950
<ide><path>spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectivePropertyAccessor.java <ide> else if (canWrite(context, target, name)) { <ide> } <ide> <ide> /** <del> * Find a getter method for the specified property. A getter is defined as a method whose name start with the prefix <...
2
Ruby
Ruby
allow an association as a scope parameter
5f472785fed770da77270300fb9ee5d7763ba7ac
<ide><path>activerecord/lib/active_record/validations/uniqueness.rb <ide> def validate_each(record, attribute, value) <ide> <ide> Array(options[:scope]).each do |scope_item| <ide> scope_value = record.send(scope_item) <add> reflection = record.class.reflect_on_association(scope_item) <add> ...
2
Ruby
Ruby
fix ambiguous params
c48352aa6ca409bcf2d05f7a046c264565243068
<ide><path>Library/Homebrew/cask/cmd/list.rb <ide> def list_installed <ide> elsif versions? <ide> puts installed_casks.map(&self.class.method(:format_versioned)) <ide> elsif full_name? <del> puts installed_casks.map(&:full_name).sort &tap_and_name_comparison <add> puts instal...
1
Go
Go
fix tests with memory limit
0b8b8ed9e98a7355661f1aad93bfa0dd76362723
<ide><path>integration-cli/docker_cli_run_unix_test.go <ide> func (s *DockerSuite) TestRunEchoStdoutWitCPUShares(c *check.C) { <ide> func (s *DockerSuite) TestRunEchoStdoutWithCPUSharesAndMemoryLimit(c *check.C) { <ide> testRequires(c, cpuShare) <ide> testRequires(c, memoryLimitSupport) <del> out, _ := dockerCmd(c, "...
1
Ruby
Ruby
extract #values from missing
c4c855b9fc8695664a66dd7822a483b91e3e26e3
<ide><path>Library/Homebrew/cmd/missing.rb <ide> def missing <ide> ARGV.resolved_formulae <ide> end <ide> <del> hide = (ARGV.value("hide") || "").split(",") <del> <ide> ff.each do |f| <del> missing = f.missing_dependencies(hide: hide) <add> missing = f.missing_dependencies(hide: ARGV.values(...
3
Python
Python
fix syntax error
359308eae810eee71ac31361155ce50c0f7abe09
<ide><path>celery/managers.py <ide> def get_waiting_tasks(self): <ide> for task_name, task in periodic_tasks.items(): <ide> task_meta, created = self.get_or_create(name=task_name) <ide> # task_run.every must be a timedelta object. <del> run_every_drifted = task.run_every + \ <...
1
Ruby
Ruby
fix typo in caching docs. [marcel molina jr.]
08f40a5e061d51b0cb909bb1160ac03a3b47c232
<ide><path>actionpack/lib/action_controller/caching.rb <ide> def caching_allowed <ide> # "jamis.somewhere.com/lists/" -- which is a helpful way of assisting the subdomain-as-account-key pattern. <ide> # <ide> # Different representations of the same resource, e.g. <tt>http://david.somewhere.com/lists</tt> an...
1
Java
Java
add interruptible mode to schedulers.from
a85ddd154087f634c2834851acff87a02d39a061
<ide><path>src/main/java/io/reactivex/internal/schedulers/ExecutorScheduler.java <ide> import io.reactivex.internal.disposables.*; <ide> import io.reactivex.internal.functions.Functions; <ide> import io.reactivex.internal.queue.MpscLinkedQueue; <del>import io.reactivex.internal.schedulers.ExecutorScheduler.ExecutorWork...
3
Javascript
Javascript
exclude the e2e test that fails on safari
729129b461f5175c7650599d528f4f58a5544aec
<ide><path>src/ng/filter/limitTo.js <ide> 'use strict'; <ide> <del>/** <add>* <ide> * @ngdoc filter <ide> * @name limitTo <ide> * @kind function <ide> }); <ide> <ide> // There is a bug in safari and protractor that doesn't like the minus key <del> xit('should update the output when -3 is entere...
1
Text
Text
remove unnecessary comments
c4ba0c692fb3a3825d56bee7724f7bb3eb03ad7a
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/accessing-nested-arrays.md <ide> ourPets[1].names[0]; <ide> <ide> # --instructions-- <ide> <del>Retrieve the second tree from the variable `myPlants` using object dot and array bracket notation. <add>Using dot and b...
1
Python
Python
remove extraneous import statements
2644e8904de282dc455f69716dfb0556e9a59478
<ide><path>celery/datastructures.py <ide> Custom Datastructures <ide> <ide> """ <del>import multiprocessing <del>from multiprocessing.pool import RUN as POOL_STATE_RUN <del>import itertools <del>import threading <del>import time <del>import os <del>import traceback <ide> from UserList import UserList <del>from celery....
1
Python
Python
add __main__ to the pricing test
2e2e7e6c86abcdf414848708a246ecc2f2436685
<ide><path>test/test_pricing.py <ide> # See the License for the specific language governing permissions and <ide> # limitations under the License. <ide> <add>import sys <ide> import unittest <ide> <ide> import libcloud.pricing <ide> def test_set_pricing(self): <ide> pricing={'foo'...
1
Python
Python
add color to pytest tests on ci
6ed3f5d97fe8f8967df5624f62e69ce2a58a9413
<ide><path>scripts/ci/images/ci_run_docker_tests.py <ide> def main(): <ide> if not extra_pytest_args: <ide> raise SystemExit("You must select the tests to run.") <ide> <del> pytest_args = ( <del> "-n", <del> "auto", <del> ) <add> pytest_args = ("-n", "auto", "--color=yes") <ide> <id...
1
Javascript
Javascript
fix portable extraction for beta
590b64a34b6e1bcd1d9e5d0242edd3282d52abeb
<ide><path>script/lib/create-windows-installer.js <ide> module.exports = function (packagedAppPath, codeSign) { <ide> for (let nupkgPath of glob.sync(`${CONFIG.buildOutputPath}/*-full.nupkg`)) { <ide> if (nupkgPath.includes(CONFIG.appMetadata.version)) { <ide> console.log(`Extracting signed exec...
1
Text
Text
correct patrons.md entry
0562ee431910a6639f37c7f2691dd1e4f56e4403
<ide><path>PATRONS.md <ide> Meet some of the outstanding companies and individuals that made it possible: <ide> <ide> * [Webflow](https://github.com/webflow) <ide> * [Ximedes](https://www.ximedes.com/) <del>* [Herman J. Radtke III](http://hermanradtke.com) <add>* [HauteLook](http://hautelook.github.io/) <ide> * [Ken W...
1
Ruby
Ruby
remove another unnecessary default argument
af804f74759c44f220b4d88b1c0b27218f33110e
<ide><path>Library/Homebrew/formula.rb <ide> def skip_clean_paths <ide> @skip_clean_paths ||= Set.new <ide> end <ide> <del> def keg_only reason, explanation=nil <del> @keg_only_reason = KegOnlyReason.new(reason, explanation.to_s.chomp) <add> def keg_only reason, explanation="" <add> @keg_only...
2
Python
Python
fix minor typo
15d8af52dbb091f198664bedc5dfc3d5d9ffdea0
<ide><path>flask/app.py <ide> def make_null_session(self): <ide> return self.session_interface.make_null_session(self) <ide> <ide> def register_module(self, module, **options): <del> """Registers a module with this application. The keyword argument <add> """Registers a module with this appli...
1
Python
Python
fix a writing issue in the comments of trainer.py
70d5711848676321928be5f8b14f8a2ae1e759a5
<ide><path>src/transformers/trainer.py <ide> class Trainer: <ide> detailed in :doc:`here <callback>`. <ide> <ide> If you want to remove one of the default callbacks used, use the :meth:`Trainer.remove_callback` method. <del> optimizers (:obj:`Tuple[torch.optim.Optimizer, torch.optim.lr_s...
1
Go
Go
copy values out of hostconfig
ddb2086ca9e0991ca12e0771a0e581e782c57f50
<ide><path>daemon/container.go <ide> func (container *Container) allocateNetwork() error { <ide> if container.Config.ExposedPorts != nil { <ide> portSpecs = container.Config.ExposedPorts <ide> } <add> <ide> if container.hostConfig.PortBindings != nil { <del> bindings = container.hostConfig.PortBindings <add> for...
1
Javascript
Javascript
reduce ga events to stay within limits (#157)
8635f8bdee2208e89b7b9d9f3e13bd9dd24294fb
<ide><path>packages/learn/src/analytics/analytics-epic.js <del>import { tap, ignoreElements } from 'rxjs/operators'; <del> <del>import ga from './'; <del> <del>export default function analyticsEpic(action$) { <del> return action$.pipe( <del> tap(({ type }) => { <del> ga.event({ <del> category: 'Redux Ac...
2
PHP
PHP
prevent undefined index error baking a new project
a0fce70c13fce9bf6f875460e144f283a2a885a7
<ide><path>lib/Cake/Console/Command/Task/ProjectTask.php <ide> public function execute() { <ide> * @access private <ide> */ <ide> function bake($path, $skel = null, $skip = array('empty')) { <del> if (!$skel) { <add> if (!$skel && !empty($this->params['skel'])) { <ide> $skel = $this->params['skel']; <ide> } <...
1
Python
Python
add xfail tests for token.conjuncts
db79a704bf923602597a933a127fcdca1fc5edfc
<ide><path>spacy/tests/doc/test_token_api.py <ide> def test_token0_has_sent_start_true(): <ide> assert doc[0].is_sent_start is True <ide> assert doc[1].is_sent_start is None <ide> assert not doc.is_sentenced <add> <add> <add>@pytest.mark.xfail <add>def test_token_api_conjuncts_chain(en_vocab): <add> word...
1
Text
Text
update webpack website in readme
01819bc3bcc44282e5bb9301c3478d837d1e5152
<ide><path>build/fixtures/README.md <ide> import $ from "jquery"; <ide> <ide> #### Browserify/Webpack <ide> <del>There are several ways to use [Browserify](http://browserify.org/) and [Webpack](https://webpack.github.io/). For more information on using these tools, please refer to the corresponding project's document...
1
Javascript
Javascript
fix deprecation warnings 3d3327c brought to light
a310f8ccc287026017b491d6101d68587cf9af82
<ide><path>packages/container/tests/sub_container_test.js <ide> module("Container (sub-containers)", { <ide> container = new Container(); <ide> var PostController = factory(); <ide> <del> container.register('controller', 'post', PostController); <add> container.register('controller:post', PostController)...
16
PHP
PHP
add test for max page count value
009cf4efab63c047ec6f9ae4ac816e5dded7d061
<ide><path>tests/TestCase/Controller/Component/PaginatorComponentTest.php <ide> public function testValidateSortInvalidDirection() <ide> $this->assertEquals('asc', $result['order']['model.something']); <ide> } <ide> <add> /** <add> * Test empty pagination result. <add> * <add> * @return void...
1
PHP
PHP
remove errors when aliases don't match
cb5f4d3adc637d741b9516b03eeb427d74db9582
<ide><path>src/ORM/Association.php <ide> protected function _appendFields($query, $surrogate, $options) <ide> } <ide> <ide> if ($fields) { <del> $query->select($query->aliasFields($fields, $target->getAlias())); <add> $query->select($query->aliasFields($fields, $this->_name)); <id...
5
Ruby
Ruby
sanitize argv options
52de8d93733ca371996d56c721ba99483d271b24
<ide><path>Library/Homebrew/cmd/postinstall.rb <ide> def run_post_install(formula) <ide> #{formula.path} <ide> ].concat(ARGV.options_only) <ide> <add> if formula.head? <add> args << "--HEAD" <add> elsif formula.devel? <add> args << "--devel" <add> end <add> <ide> if Sandbox.available? ...
1
Javascript
Javascript
add clearcoatnormal context only to physical
f5110b235bfb3b1473809a1d3880434daaae9b04
<ide><path>src/renderers/shaders/ShaderChunk/common.glsl.js <ide> struct GeometricContext { <ide> vec3 position; <ide> vec3 normal; <ide> vec3 viewDir; <add>#ifdef PHYSICAL <ide> vec3 clearCoatNormal; <add>#endif <ide> }; <ide> <ide> vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
1
Javascript
Javascript
remove false annotation
7b048ca02313db8d454983231cdcb8a695874b6a
<ide><path>Libraries/Components/TextInput/TextInput.js <ide> var TextInput = React.createClass({ <ide> */ <ide> onFocus: PropTypes.func, <ide> /** <del> * (text: string) => void <del> * <ide> * Callback that is called when the text input's text changes. <ide> */ <ide> onChange: PropTy...
1
Text
Text
add guiding document
760c596a8e75c6126e95cb9897eb9b66faffbb0c
<ide><path>share/doc/homebrew/Checksum_Deprecation.md <add># Checksum Deprecation <add> <add>During early 2015 Homebrew started the process of deprecating _SHA1_ for package <add>integrity verification. Since then every formulae under the Homebrew organisation <add>has been moved onto _SHA256_ verification; this includ...
1
Ruby
Ruby
remove debug message
5efed5d8c54ca541791c8b9b6dd91b94ed3929b3
<ide><path>Library/Homebrew/dev-cmd/irb.rb <ide> def irb <ide> require "keg" <ide> require "cask/all" <ide> <del> puts ARGV.inspect <del> <ide> ohai "Interactive Homebrew Shell" <ide> puts "Example commands available with: brew irb --examples" <ide> if args.pry?
1