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 documentation per suggestions from ostezer
b7e88250f421d34d25f89737c65954150248ee28
<ide><path>docs/sources/installation/centos.md <ide> page_title: Installation on CentOS <del>page_description: This page provides documentation for installing docker on CentOS <add>page_description: Instructions for installing Docker on CentOS <ide> page_keywords: Docker, Docker documentation, requirements, linux, cent...
1
Python
Python
add `distinct` call in `filter_queryset`
3522b69394d932c8bf8028a456b6d9b64c38b54e
<ide><path>rest_framework/filters.py <ide> def filter_queryset(self, request, queryset, view): <ide> for search_term in self.get_search_terms(request): <ide> or_queries = [models.Q(**{orm_lookup: search_term}) <ide> for orm_lookup in orm_lookups] <del> queryset =...
1
Javascript
Javascript
fix $flowfixme in rtlexample
206ef54aa415e3e2bb0d48111104dfc372b97e0f
<ide><path>RNTester/js/RTLExample.js <ide> class RTLExample extends React.Component<any, State> { <ide> <RNTesterBlock <ide> title={'Controlling Animation'} <ide> description={'Animation direction according to layout'}> <del> {/* $FlowFixMe - Typing ReactNativeComponent reve...
1
Javascript
Javascript
add basic date support
cc097867f49673005d47a7f8f0cbe25f7d5c2163
<ide><path>src/filters.js <ide> foreach({ <ide> }, <ide> <ide> 'date': function(date) { <add> if (date instanceof Date) <add> return date.toLocaleDateString(); <add> else <add> return date; <ide> }, <ide> <ide> 'json': function(object) {
1
Python
Python
fix static checks
95be3eec42cd5ae0ef8c6402f7d1cd87e5d93848
<ide><path>airflow/models/dag.py <ide> def partial_subset( <ide> for t in regex_match + also_include} <ide> <ide> def filter_task_group(group, parent_group): <del> """ <del> Exclude tasks not included in the subdag from the given TaskGroup. <del> """ <a...
1
PHP
PHP
update httpjsonresponsetest.php
5c85962b75f5737f674c3e39b234e1f8c614353c
<ide><path>tests/Http/HttpJsonResponseTest.php <ide> <ide> class HttpJsonResponseTest extends TestCase <ide> { <del> public function testSeAndRetrieveJsonableData() <add> public function testSetAndRetrieveJsonableData() <ide> { <ide> $response = new \Illuminate\Http\JsonResponse(new JsonResponseTestJ...
1
Ruby
Ruby
fix rubocop warnings
2cf6184735050319a78063111b6f464f2320e2b7
<ide><path>Library/Homebrew/test/test_formula_installer.rb <ide> class #{Formulary.class_s(dep_name)} < Formula <ide> dependent = formula do <ide> url "foo" <ide> version "0.5" <del> depends_on "#{dependency.name}" <add> depends_on dependency.name.to_s <ide> end <ide> <ide> dependency...
1
Javascript
Javascript
add boxed bigint formatting to util.inspect
893432ad928e25854950c0b5c581dfb3081ed4bb
<ide><path>lib/util.js <ide> function formatValue(ctx, value, recurseTimes, ln) { <ide> if (keyLength === 0) <ide> return ctx.stylize(`[Boolean: ${formatted}]`, 'boolean'); <ide> base = `[Boolean: ${formatted}]`; <add> // eslint-disable-next-line valid-typeof <add> } else if (typeo...
2
Javascript
Javascript
remove v8forceoptimization calls
3129ba2bae718b4b92d69ba55e64c136eccbb7a0
<ide><path>benchmark/url/whatwg-url-idna.js <ide> function main(conf) { <ide> const input = inputs[conf.input][to]; <ide> const method = to === 'ascii' ? domainToASCII : domainToUnicode; <ide> <del> common.v8ForceOptimization(method, input); <del> <ide> bench.start(); <ide> for (var i = 0; i < n; i++) { <ide>...
3
Mixed
Go
return write error
c65de2c0207ac67e5023ada8709490ef4627bd01
<ide><path>api/server/server.go <ide> func writeCorsHeaders(w http.ResponseWriter, r *http.Request) { <ide> } <ide> <ide> func ping(eng *engine.Engine, version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error { <del> w.Write([]byte{'O', 'K'}) <del> return nil <add> _, err := w.Wri...
2
Text
Text
add faq about paths to being a moderator
7b20b654d96fad3df20330a00cdddfd0936e4ed4
<ide><path>docs/FAQ.md <ide> We typically do not assign issues to anyone other than long-time contributors. I <ide> - Did you follow the pull request checklist? <ide> - Did you give your pull request a meaningful title? <ide> <add>### I am interested in being a moderator at freeCodeCamp. Where should I start? <a...
1
Ruby
Ruby
limit fatal dev tools check to sierra
12aad5c65fee39c5f044e39ca1efcbed58aebd39
<ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb <ide> def development_tools_checks <ide> end <ide> <ide> def fatal_development_tools_checks <del> if ENV["TRAVIS"] || ARGV.homebrew_developer? <add> if MacOS.version >= :sierra && ENV["CI"].nil? <ide> %w[ <add> check...
1
PHP
PHP
use no protocol to fetch lato font
8bf428c193475ca95face345a37816239b827daa
<ide><path>resources/views/welcome.blade.php <ide> <html> <ide> <head> <del> <link href='http://fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'> <add> <link href='//fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'> <ide> <ide> <style> <ide> body {
1
Python
Python
add new snapshot features for outscale provider
3f81a899c8b253f0bfa60ccf589878067164fdad
<ide><path>libcloud/compute/drivers/outscale.py <ide> def ex_create_snapshot_export_task( <ide> The copy of the source snapshot is independent and belongs to you. <ide> <ide> :param osu_export_disk_image_format: The format of the export <del> disk (qcow2 | vdi | vmdk). <add> disk (qc...
1
Javascript
Javascript
fix issue with dst transition in chinese locale
7d367f561150926f4fdaa1ce95741f7ee134af27
<ide><path>src/locale/zh-cn.js <ide> export default moment.defineLocale('zh-cn', { <ide> nextWeek : function () { <ide> var startOfWeek, prefix; <ide> startOfWeek = moment().startOf('week'); <del> prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]'; <add...
1
Python
Python
update dynet example to use minibatching
ef76c28d70229cb13955cbee654b69810606cda9
<ide><path>examples/spacy_dynet_lstm.py <ide> from collections import defaultdict <ide> from itertools import count <ide> <add>#import _gdynet as dynet <add>#from _gdynet import cg <ide> import dynet <ide> from dynet import cg <ide> <ide> def get_vocab(train, test): <ide> words.append(w) <ide> vw = Vo...
1
Ruby
Ruby
add tests for cyclic deps
fa8b80747ac6e33904b1b6e2b95232aa22bf90d5
<ide><path>Library/Homebrew/test/formula_installer_spec.rb <ide> def temporary_install(formula, **options) <ide> end <ide> end <ide> <del> specify "check installation sanity pinned dependency" do <del> dep_name = "dependency" <del> dep_path = CoreTap.new.formula_dir/"#{dep_name}.rb" <del> dep_path.writ...
1
Javascript
Javascript
remove unused var from test-assert.js
686a85ff43471e66b1ba071a4710f362b2ccac0a
<ide><path>test/parallel/test-assert.js <ide> assert.throws(makeBlock(a.deepStrictEqual, new Boolean(true), {}), <ide> function thrower(errorConstructor) { <ide> throw new errorConstructor('test'); <ide> } <del>var aethrow = makeBlock(thrower, a.AssertionError); <del>aethrow = makeBlock(thrower, a.AssertionError); <i...
1
Python
Python
fix bug when channel=1
06c3a804e7d56cc77f76a28ee34aa67a34daedee
<ide><path>keras/backend/tensorflow_backend.py <ide> def batch_normalization(x, mean, var, beta, gamma, axis=-1, epsilon=1e-3): <ide> # The mean / var / beta / gamma may be processed by broadcast <ide> # so it may have extra axes with 1, it is not needed and should be removed <ide> i...
2
Python
Python
fix error messages in training.py
8766c22d198be8484ba58bb8ffe4aca8770aa2c0
<ide><path>keras/engine/training.py <ide> def get_layer(self, name=None, index=None): <ide> <ide> if index is not None: <ide> if len(self.layers) <= index: <del> raise ValueError(f'Was asked to retrieve layer at index {str(index)}' <del> f' but model only has {str(len(self.laye...
1
Python
Python
add a new hook for google datastore
2fe8f188f64c7144fb7f9e521b827af7d8009be8
<ide><path>airflow/contrib/hooks/datastore_hook.py <add>from apiclient.discovery import build <add>from airflow.contrib.hooks.gc_base_hook import GoogleCloudBaseHook <add> <add>class DatastoreHook(GoogleCloudBaseHook): <add> """ <add> Interact with Google Cloud Datastore. Connections must be defined with an <add>...
3
Javascript
Javascript
upgrade react and react native at the same time
a0f3a93f0ba12df1a1030c4a36e2072eea4b775e
<ide><path>react-native-git-upgrade/cliEntry.js <ide> stdout: ${stdout}`)); <ide> + * - Parsed package.json <ide> + */ <ide> function readPackageFiles() { <del> const nodeModulesPakPath = path.resolve( <add> const reactNativeNodeModulesPakPath = path.resolve( <ide> process.cwd(), <ide> 'node_modules', <ide> ...
1
Ruby
Ruby
adjust rubocop formatter on ci
9d57bfc9ba34c91817b1740432924e4600d33c5c
<ide><path>Library/Homebrew/style.rb <ide> def run_rubocop(files, output_type, <ide> case output_type <ide> when :print <ide> args << "--debug" if debug <add> <add> if ENV["CI"] <add> # Don't show the default formatter's progress dots on CI. <add> args << "--format" << "clan...
1
PHP
PHP
fix the definite article on evaluated
b31117aaef08f8432606acdc03dd09813643b63f
<ide><path>src/Illuminate/View/Environment.php <ide> public function __construct(EngineResolver $engines, ViewFinderInterface $finder <ide> } <ide> <ide> /** <del> * Get a evaluated view contents for the given view. <add> * Get the evaluated view contents for the given view. <ide> * <ide> * @param string $vi...
1
Text
Text
update text about actions - redux
f1fc7872f4e9d2269be72c47a0baa8f90132c059
<ide><path>guide/portuguese/redux/redux-actions/index.md <ide> title: Redux Actions <ide> localeTitle: Ações do Redux <ide> --- <del>## Ações do Redux <add>## Actions <ide> <del>A ação do Redux é um objeto simples que descreve o tipo de evento que aconteceu em seu aplicativo. Eles podem até conter dados que precisam s...
1
Ruby
Ruby
follow style conventions
a61c4dfa70892d21a96802398605880cfda75c90
<ide><path>activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb <ide> class Simple <ide> # plain Ruby (*.rb) or YAML files (*.yml). See #load_rb and #load_yml <ide> # for details. <ide> def load_translations(*filenames) <del> filenames.each {|filename| load_file filename } ...
1
Text
Text
add examples to the readme
79a78d37e7102f0aadfa49d89b84b095e86824d1
<ide><path>README.md <ide> Throwaway shell in a base ubuntu image <ide> -------------------------------------- <ide> <ide> ```bash <del># Download a base image <del>docker pull base <add>docker pull ubuntu:12.10 <ide> <del># Run an interactive shell in the base image, <add># Run an interactive shell <ide> # allocate ...
1
Javascript
Javascript
add mustcall to http-abort-queued test
0fbd852578b11006b2c5c127fefcc879ef7b0f80
<ide><path>test/parallel/test-http-abort-queued.js <ide> const http = require('http'); <ide> <ide> let complete; <ide> <del>const server = http.createServer((req, res) => { <add>const server = http.createServer(common.mustCall((req, res) => { <ide> // We should not see the queued /thatotherone request within the se...
1
Python
Python
add missing docstrings in image preprocessing
00dc75116f80d81e4cb9bc90e2cffa9b40eed153
<ide><path>keras/preprocessing/image.py <ide> def transform_matrix_offset_center(matrix, x, y): <ide> return transform_matrix <ide> <ide> <del>def apply_transform(x, transform_matrix, channel_axis=0, fill_mode='nearest', cval=0.): <add>def apply_transform(x, <add> transform_matrix, <add> ...
1
Text
Text
document the switch from memcache-client to dalli
3dd5444e56e009276d24a49f451e860daeafd613
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> Rails 4.0 extracted Active Resource to its own gem. If you still need the featur <ide> <ide> * Rails 4.0 has the removed XML parameters parser. You will need to add the `actionpack-xml_parser` gem if you require this feature. <ide> <add>* Rails 4.0 changes the...
1
PHP
PHP
apply styleci recommendations
26e10c7e57ad309c9e8d7a5766a0c0160890d9bc
<ide><path>src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php <ide> protected function typeYear(Fluent $column) <ide> return $this->typeInteger($column); <ide> } <ide> <del> <ide> /** <ide> * Create the column definition for a date-time type. <ide> *
1
Python
Python
fix mypy errors in amazon aws transfer
b164124bfe15e7ef00c235daa2667e0b4ae82466
<ide><path>airflow/providers/amazon/aws/transfers/ftp_to_s3.py <ide> def __init__( <ide> self.encrypt = encrypt <ide> self.gzip = gzip <ide> self.acl_policy = acl_policy <del> self.s3_hook = None <del> self.ftp_hook = None <add> self.s3_hook: Optional[S3Hook] = None <add> ...
1
PHP
PHP
use the class name as a table alias
4b83af465d1b13e200f4b02c86e39d6c92374cd4
<ide><path>src/ORM/Association.php <ide> public function target(Table $table = null) <ide> return $this->_targetTable = $table; <ide> } <ide> <add> if ($this->_className) { <add> if (strpos($this->_className, '\\') !== false) { <add> $tableAlias = $this->_name; <add...
2
Java
Java
implement partial rounded borders
4994d6a389b4e41ba25e802edab5d3fdc9e8a4f1
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java <ide> import android.graphics.PathEffect; <ide> import android.graphics.Rect; <ide> import android.graphics.RectF; <add>import android.graphics.Region; <ide> import android.graphics.drawable.Drawable; <ide> import andro...
2
PHP
PHP
add support for field metadata retrieval
c98e544dc2ea58c9f54b3c17782190e0143a40ff
<ide><path>lib/Cake/Model/Datasource/Database/Connection.php <ide> public function describe($table) { <ide> list($sql, $params) = $this->_driver->describeTableSql($table); <ide> $statement = $this->execute($sql, $params); <ide> $schema = []; <del> // TODO complete. <del> // TODO add tableParameters for platform...
4
Ruby
Ruby
reuse the column integer converter
d64c7c7033843af601c1e1b4b73d9a524020c335
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/oid.rb <ide> class Integer < Type <ide> def type_cast(value) <ide> return if value.nil? <ide> <del> value.to_i rescue value ? 1 : 0 <add> ConnectionAdapters::Column.value_to_integer value <ide> ...
1
Javascript
Javascript
use animation.name for animationclip
e0bf8b370e7c6e5644cb6be58ddf5310a1b1fc84
<ide><path>examples/js/loaders/GLTFLoader.js <ide> THREE.GLTFLoader = ( function () { <ide> <ide> } <ide> <del> return new THREE.AnimationClip( "animation_" + animationId, undefined, tracks ); <add> var name = animation.name !== undefined ? animation.name : "animation_" + animationId; <add> <add> return ...
1
PHP
PHP
add additional test for chaining
7120eed7f516d50f621be87c85bf4d2c82fee24c
<ide><path>tests/Integration/Queue/JobChainingTest.php <ide> <ide> use Illuminate\Bus\Queueable; <ide> use Orchestra\Testbench\TestCase; <add>use Illuminate\Support\Facades\Queue; <add>use Illuminate\Queue\InteractsWithQueue; <ide> use Illuminate\Foundation\Bus\Dispatchable; <ide> use Illuminate\Contracts\Queue\Should...
1
Text
Text
remove unnecessary instructions
d0157938510e59eb96b9ced18dfb6340a4f96b7f
<ide><path>docs/build-instructions/windows.md <ide> * [node.js - 32bit](http://nodejs.org/download/) v0.10.x <ide> * [Python 2.7.x](http://www.python.org/download/) <ide> * [GitHub for Windows](http://windows.github.com/) <del> * Open the Windows GitHub shell (NOT the Standard PowerShell, the shortcut labeled 'G...
1
Ruby
Ruby
use rails command in restart task test
05fa6f3db6e2dfe213d05cc2e1fd82a429660fc6
<ide><path>railties/test/application/rake/restart_test.rb <ide> def teardown <ide> teardown_app <ide> end <ide> <del> test "rake restart touches tmp/restart.txt" do <add> test "rails restart touches tmp/restart.txt" do <ide> Dir.chdir(app_path) do <del> `rake restart` <add> ...
1
Python
Python
add possibility to create users in ldap mode
4e4c0574cdd3689d22e2e7d03521cb82179e0909
<ide><path>airflow/www/views.py <ide> class CustomUserDBModelView(MultiResourceUserMixin, UserDBModelView): <ide> class CustomUserLDAPModelView(MultiResourceUserMixin, UserLDAPModelView): <ide> """Customize permission names for FAB's builtin UserLDAPModelView.""" <ide> <add> _class_permission_name = permissions...
1
Python
Python
fix bad error message in np.memmap
b60f33dd0747574570764ac8072386dccc85dd44
<ide><path>numpy/core/memmap.py <ide> def __new__(subtype, filename, dtype=uint8, mode='r+', offset=0, <ide> <ide> bytes = long(offset + size*_dbytes) <ide> <del> if mode == 'w+' or (mode == 'r+' and flen < bytes): <add> if mode in ('w+', 'r+') and flen < bytes: <ide> ...
2
Text
Text
update gcp to google in docs
4aca72e17cc67ccf719e3d54166dccd391aec3ce
<ide><path>README.md <ide> pip install apache-airflow==1.10.11 \ <ide> --constraint https://raw.githubusercontent.com/apache/airflow/1.10.11/requirements/requirements-python3.7.txt <ide> ``` <ide> <del>2. Installing with extras (for example postgres,gcp) <add>2. Installing with extras (for example postgres,google) <i...
1
Text
Text
fix code nits in common/readme
ec6ef6bd9aff2606454fbc2b1d2bc374a7a683b0
<ide><path>test/common/README.md <ide> frame. <ide> // padlen is an 8-bit integer giving the number of padding bytes to include <ide> // final is a boolean indicating whether the End-of-stream flag should be set, <ide> // defaults to false. <del>const data = new http2.DataFrame(id, payload, padlen, final); <add>const f...
1
Javascript
Javascript
fix use app.use(router) to add sub router
bfd33d8b408961e8f8d83bdb0aca143ce23d5338
<ide><path>server/boot/challenge.js <ide> function getMDNlinks(links) { <ide> } <ide> <ide> module.exports = function(app) { <del> var router = app.Router(); <add> var router = app.loopback.Router(); <ide> var Challenge = app.models.Challenge; <ide> var User = app.models.User; <ide> <ide> module.exports = funct...
11
Ruby
Ruby
create method ruby_file?
0fcdc9ba0726570e29d6ce93956f6a5da4907ba3
<ide><path>Library/Homebrew/tap.rb <ide> def contents <ide> # an array of all {Formula} files of this {Tap}. <ide> def formula_files <ide> @formula_files ||= if formula_dir.directory? <del> formula_dir.children.select { |file| file.extname == ".rb" } <add> formula_dir.children.select(&method(:ruby_fil...
1
Mixed
Go
fix misleading default for `--replicas`
acc93db32bd0d14801db65d6cb0a0e06d7cec2f7
<ide><path>cli/command/service/opts.go <ide> func (d *DurationOpt) String() string { <ide> if d.value != nil { <ide> return d.value.String() <ide> } <del> return "none" <add> return "" <ide> } <ide> <ide> // Value returns the time.Duration <ide> func (i *Uint64Opt) String() string { <ide> if i.value != nil { <ide...
4
Python
Python
add new unit tests for structure assignment
6752d5fb21c7aad538b3ab2c638dd52e38ed6f2a
<ide><path>numpy/core/tests/test_dtype.py <ide> def test_bad_param(self): <ide> 'formats':['i1', 'f4'], <ide> 'offsets':[0, 2]}, align=True) <ide> <add> def test_field_order_equality(self): <add> x = np.dtype({'names': ['A', 'B'], <add> ...
4
Ruby
Ruby
add headers option to urls in forumlas
38da4dcac02d70f5518115bf8c2a9f3a5d4e4810
<ide><path>Library/Homebrew/download_strategy.rb <ide> def _curl_args <ide> <ide> args += ["--header", meta.fetch(:header)] if meta.key?(:header) <ide> <add> meta.fetch(:headers).each { |h| args += ["--header", h.strip] } if meta.key?(:headers) <add> <ide> args <ide> end <ide>
1
Javascript
Javascript
fix coding style in web/compatibility.js
665b862b7f0f9d3f3cfbece0f3636cc59d5a1b2a
<ide><path>web/compatibility.js <ide> if (typeof PDFJS === 'undefined') { <ide> } <ide> <ide> // some mobile version might not support Float64Array <del> if (typeof Float64Array === 'undefined') <add> if (typeof Float64Array === 'undefined') { <ide> window.Float64Array = Float32Array; <del> <add> ...
1
Mixed
Javascript
add support for line height css values
090196c07c601cdaf5a91ff0ba731cc46945c101
<ide><path>docs/axes/labelling.md <ide> The scale label configuration is nested under the scale configuration in the `sc <ide> | -----| ---- | --------| ----------- <ide> | `display` | `Boolean` | `false` | If true, display the axis title. <ide> | `labelString` | `String` | `''` | The text for the title. (i.e. "# of Pe...
14
Javascript
Javascript
require files directly instead of resolving them
fa03f0b9ccc9ce9fbba64908e4f31374da8fd005
<ide><path>server/render.js <ide> import { renderToString, renderToStaticMarkup } from 'react-dom/server' <ide> import send from 'send' <ide> import generateETag from 'etag' <ide> import fresh from 'fresh' <del>import requireModule from './require' <ide> import getConfig from './config' <ide> import { Router } from '.....
2
PHP
PHP
remove console_libs constnat
998cba07592fb66c4494608e35e6231ffbe98977
<ide><path>lib/Cake/Console/ShellDispatcher.php <ide> function __bootstrap() { <ide> include_once CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'Console' . DS . 'templates' . DS . 'skel' . DS . 'Config' . DS . 'core.php'; <ide> App::build(); <ide> } <del> require_once CONSOLE_LIBS . 'ConsoleErrorHandler.php'; <a...
3
Python
Python
improve code quality
004288eac5b4ffbcced7149113150d7cc42df28e
<ide><path>glances/globals.py <ide> import os <ide> import sys <ide> import platform <add>import json <add>from operator import itemgetter <ide> <ide> # OS constants (some libraries/features are OS-dependent) <ide> BSD = sys.platform.find('bsd') != -1 <ide> def safe_makedirs(path): <ide> raise <ide> ...
2
Python
Python
limit scope to user email only airflow-386
a1c4cd92d536f7bf6617d85df4d197d8adf09d3d
<ide><path>airflow/contrib/auth/backends/github_enterprise_auth.py <ide> def init_app(self, flask_app): <ide> consumer_key=get_config_param('client_id'), <ide> consumer_secret=get_config_param('client_secret'), <ide> # need read:org to get team member list <del> request_to...
1
Ruby
Ruby
make exists? use bound values
f317cc8bc007978d7b135ddd1acdd7e3d1e582a3
<ide><path>activerecord/lib/active_record/relation/finder_methods.rb <ide> def exists?(conditions = :none) <ide> when Array, Hash <ide> relation = relation.where(conditions) <ide> else <del> relation = relation.where(table[primary_key].eq(conditions)) if conditions != :none <add> if co...
2
Python
Python
add test for ticket #298
5a490d046ae11869f1588fc5514c394218c71713
<ide><path>numpy/core/tests/test_regression.py <ide> def check_method_args(self, level=rlevel): <ide> res2 = getattr(N, func)(arr1, arr2) <ide> assert abs(res1-res2).max() < 1e-8, func <ide> <add> def check_mem_lexsort_strings(self, level=rlevel): <add> """Ticket #298""" <add>...
1
Python
Python
update init_model.py to previous (better) state
a8f4e4990096be4be6922761aae7c73c7f3ce80e
<ide><path>bin/init_model.py <ide> def _read_probs(loc): <ide> return probs, probs['-OOV-'] <ide> <ide> <del>def _read_freqs(loc, max_length=100, min_doc_freq=0, min_freq=200): <add>def _read_freqs(loc, max_length=100, min_doc_freq=5, min_freq=200): <ide> if not loc.exists(): <ide> print("Warning: Fre...
1
PHP
PHP
add cookie parsing to convert from psr7 to cakephp
6a72463c72844943638354d86330a2c55e79f982
<ide><path>src/Http/ResponseTransformer.php <ide> public static function toCake(PsrResponse $response) <ide> 'body' => static::getBody($response), <ide> ]; <ide> $cake = new CakeResponse($data); <add> foreach (static::parseCookies($response->getHeader('Set-Cookie')) as $cookie) { <add...
2
Javascript
Javascript
simplify code a little bit
5e46fff39d57fb3695c174d88924dbaad8b45263
<ide><path>lib/SourceMapDevToolPlugin.js <ide> function getTaskForFile(file, chunk, options, compilation) { <ide> file, <ide> asset, <ide> source, <del> sourceMap <add> sourceMap, <add> modules: undefined <ide> }; <ide> } <ide> } <ide> class SourceMapDevToolPlugin { <ide> <ide> compilation.plugin(...
1
PHP
PHP
appease the stickler
26cbd919740f5cec94561aff6c3c08b830ef55e7
<ide><path>src/Validation/ValidatorAwareTrait.php <ide> */ <ide> namespace Cake\Validation; <ide> <del>use \RuntimeException; <ide> use Cake\Event\EventDispatcherInterface; <add>use RuntimeException; <ide> <ide> /** <ide> * A trait that provides methods for building and
1
Java
Java
allow http delete with request entity
584b831bb9390a49c791d180d023e3a585203215
<ide><path>spring-web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.java <ide> import org.apache.http.client.HttpClient; <ide> import org.apache.http.client.config.RequestConfig; <ide> import org.apache.http.client.methods.Configurable; <del>import org.apache.http.client.methods.H...
4
Ruby
Ruby
fix indentation style for private method
06e89c922c770f81c98c68eed9a4bfd96e6770c7
<ide><path>activerecord/test/cases/adapter_test.rb <ide> def test_log_invalid_encoding <ide> <ide> private <ide> <del> def syntax_error_exception_class <del> return Mysql2::Error if defined?(Mysql2) <del> return PG::SyntaxError if defined?(PG) <del> return SQLite3::SQLException if defined?(SQLit...
1
PHP
PHP
add click to copy on error text
124a5298abe0e9ef10030e268066209c71683926
<ide><path>templates/layout/dev_error.php <ide> font-size: 30px; <ide> margin: 0; <ide> } <add> .header-title:hover:after { <add> content: attr(data-content); <add> font-size: 18px; <add> vertical-align: middle; <add> cursor: pointer; <add> } <ide> .header-type ...
1
PHP
PHP
handle stopexception in shelldispatcher
a723f6b1bae5db403525f731ac2d29353540399c
<ide><path>src/Console/Shell.php <ide> public function hr($newlines = 0, $width = 63) <ide> * @return void <ide> * @link http://book.cakephp.org/3.0/en/console-and-shells.html#styling-output <ide> */ <del> public function abort($message, $exitCode) <add> public function abort($message, $exitCode = ...
3
Javascript
Javascript
fix double abortsignal registration
711e210d35b41a7a4b81497affd4ccace1f31d3a
<ide><path>lib/_http_client.js <ide> function ClientRequest(input, options, cb) { <ide> options.headers); <ide> } <ide> <add> let optsWithoutSignal = options; <add> if (optsWithoutSignal.signal) { <add> optsWithoutSignal = ObjectAssign({}, options); <add> delete optsWithoutSignal.signal...
5
Ruby
Ruby
use the trick to get beta releases in the gemfile
c9be5e088c30eedf016ce61ec7236278ac8d1cb1
<ide><path>railties/lib/rails/generators/app_base.rb <ide> def javascript_gemfile_entry <ide> "Use #{options[:javascript]} as the JavaScript library") <ide> <ide> unless options[:skip_turbolinks] <del> gems << GemfileEntry.version("turbolinks", "~> 5.0.0.beta...
1
Ruby
Ruby
check dependencies before download
3fdab5a24d66330c6fd22b384b8cb4e8b2fde02d
<ide><path>Library/Homebrew/cask/installer.rb <ide> def fetch <ide> odebug "Cask::Installer#fetch" <ide> <ide> verify_has_sha if require_sha? && !force? <add> satisfy_dependencies <add> <ide> download <ide> verify <del> <del> satisfy_dependencies <ide> end <ide> <ide> def sta...
1
Javascript
Javascript
remove internal uses of beforeobservers
c8f6ecd52885dd4865d9cc3c105da111bd88cd37
<ide><path>packages/ember-runtime/lib/system/array_proxy.js <ide> import { <ide> isArray <ide> } from 'ember-runtime/utils'; <ide> import { computed } from 'ember-metal/computed'; <del>import { <del> _beforeObserver, <del> observer <del>} from 'ember-metal/mixin'; <add>import { observer } from 'ember-metal/mixin'; ...
4
PHP
PHP
fix cs in smtptransporttest
469a590a06c3103d2f602d69b2389d1687622029
<ide><path>tests/TestCase/Network/Email/SmtpTransportTest.php <ide> public function testExplicitDisconnect() { <ide> * @return void <ide> */ <ide> public function testExplicitDisconnectNotConnected() { <del> $callback = function($arg) { <add> $callback = function($arg) { <ide> $this->assertNotEquals("QUIT\r\n"...
1
Javascript
Javascript
update defineplugin to es2015
7d1774666a1071a27058761011957a0fabcd9db6
<ide><path>lib/DefinePlugin.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <del>var ConstDependency = require("./dependencies/ConstDependency"); <del>var BasicEvaluatedExpression = require("./BasicEvaluatedExpression"); <add>"use strict"; <ide> <de...
1
Ruby
Ruby
use meaningful names with our variables
940404096fecd57fdece94d0a6cfe524f20a2aa8
<ide><path>actionpack/lib/action_view/template/resolver.rb <ide> def query(path, details, formats) <ide> templates = [] <ide> sanitizer = Hash.new { |h,k| h[k] = Dir["#{File.dirname(k)}/*"] } <ide> <del> Dir[query].each do |p| <del> next if File.directory?(p) || !sanitizer[p].include?(p) <add> ...
1
Javascript
Javascript
add create identities on flatten users
2f43e0380b5d1b8db6f8a99cb55e7a2d5dd92876
<ide><path>flattenUser.js <ide> /* eslint-disable no-process-exit */ <ide> require('dotenv').load(); <del>var assign = require('lodash/object/assign'), <del> Rx = require('rx'), <add>var Rx = require('rx'), <add> uuid = require('node-uuid'), <add> assign = require('lodash/object/assign'), <ide> mongodb = r...
1
PHP
PHP
unify marshalling with saving
813708af838b95f265b255beab91286d267b1662
<ide><path>Cake/ORM/Marshaller.php <ide> protected function _buildPropertyMap($include) { <ide> $key = $nested; <ide> $nested = []; <ide> } <add> $nested = isset($nested['associated']) ? $nested['associated'] : []; <ide> $assoc = $this->_table->association($key); <ide> if ($assoc) { <ide> $map[$a...
3
Javascript
Javascript
replace deprecated eslint configuration
46af4c1d01b90ee6845abf40c813f384286f3ad4
<ide><path>.eslintrc.js <ide> module.exports = { <ide> 'node-core/no-duplicate-requires': 'error', <ide> }, <ide> globals: { <del> Atomics: false, <del> BigInt: false, <del> BigInt64Array: false, <del> BigUint64Array: false, <del> DTRACE_HTTP_CLIENT_REQUEST: false, <del> DTRACE_HTTP_CLIENT_RES...
1
Ruby
Ruby
treat more things as errors in `cask audit`
e4356e85d1584ff0de83725875b6e347b8229353
<ide><path>Library/Homebrew/cask/audit.rb <ide> def check_untrusted_pkg <ide> <ide> return unless cask.artifacts.any? { |k| k.is_a?(Artifact::Pkg) && k.stanza_options.key?(:allow_untrusted) } <ide> <del> add_warning "allow_untrusted is not permitted in official Homebrew Cask taps" <add> add_error "all...
1
Javascript
Javascript
remove unused import
62b04cfa753076d5ffb1d74b855f8f8db36f5186
<ide><path>packages/react-reconciler/src/ReactFiberClassComponent.js <ide> import { <ide> requestCurrentTime, <ide> computeExpirationForFiber, <ide> scheduleWork, <del> flushPassiveEffects, <ide> } from './ReactFiberWorkLoop'; <ide> import {requestCurrentSuspenseConfig} from './ReactFiberSuspenseConfig'; <ide> ...
2
PHP
PHP
fix few errors reported by phpstan
aa23283a223dc6f690e55b3ccddeeae76eb077b9
<ide><path>src/Database/Query.php <ide> class Query implements ExpressionInterface, IteratorAggregate <ide> * The object responsible for generating query placeholders and temporarily store values <ide> * associated to each of those. <ide> * <del> * @var \Cake\Database\ValueBinder|false|null <add> ...
3
Python
Python
put module import on top of the module
04b602f96f91529a1259909466705f3f9192113c
<ide><path>transformers/pipelines.py <ide> from abc import ABC, abstractmethod <ide> from contextlib import contextmanager <ide> from itertools import groupby <add>from os.path import abspath, exists <ide> from typing import Union, Optional, Tuple, List, Dict <ide> <ide> import numpy as np <ide> def __init__(self, out...
1
Ruby
Ruby
add failing test
374f788a3c6a8f295de4e5eb134d979eb3dc3513
<ide><path>Library/Homebrew/test/cask/config_spec.rb <ide> expect(config.explicit[:appdir]).to eq(Pathname("/explicit/path/to/apps")) <ide> end <ide> end <add> <add> context "when installing a cask and then adding a global default dir" do <add> let(:config) { described_class.new(default: { appdir: "/def...
1
Python
Python
remove dependency on ftfy
070b6c6495f631fc874f66c3b6ee68e60429bad2
<ide><path>spacy/cli/init_model.py <ide> from ..vectors import Vectors <ide> from ..util import prints, ensure_path, get_lang_class <ide> <add>try: <add> import ftfy <add>except ImportError: <add> ftfy = None <add> <ide> <ide> @plac.annotations( <ide> lang=("model language", "positional", None, str), <ide> ...
1
Python
Python
fix training with vectors
b1505380ff9234232d3f4dfe2237a437c20d36e0
<ide><path>spacy/_ml.py <ide> def Tok2Vec(width, embed_size, **kwargs): <ide> "config": { <ide> "vectors_name": pretrained_vectors, <ide> "width": width, <del> "column": cols.index(ID), <add> "column": cols.index("ID") <ide> ...
1
Go
Go
add test suite for push/pull code
9e4addde76f4aea4613f09215084812b6a357521
<ide><path>integration-cli/docker_hub_pull_suite_test.go <add>package main <add> <add>import ( <add> "os/exec" <add> "strings" <add> <add> "github.com/go-check/check" <add>) <add> <add>func init() { <add> check.Suite(newDockerHubPullSuite()) <add>} <add> <add>// DockerHubPullSuite provides a isolated daemon that doesn'...
1
PHP
PHP
accommodate default values for props tag
8d921630680d887293edc8cbedfdace41c9ad45a
<ide><path>src/Illuminate/View/ComponentAttributeBag.php <ide> public function exceptProps($keys) <ide> { <ide> $props = []; <ide> <del> foreach ($keys as $key) { <add> foreach ($keys as $key => $defaultValue) { <add> // If the "key" value is a numeric key, we assume that no defaul...
1
Javascript
Javascript
fix textinput autocorrect
26aa27da630a8875dfe64f616b6aca59eaa89aaf
<ide><path>Libraries/Components/TextInput/TextInput.js <ide> var TextInput = React.createClass({ <ide> }, <ide> <ide> _focusSubscription: (undefined: ?Function), <add> _lastNativeText: (undefined: ?string), <ide> <ide> componentDidMount: function() { <add> this._lastNativeText = this.props.value; <ide> ...
1
PHP
PHP
add more assertion methods
00ed67e88ca87ef43beb1d6f9ee6117ec8d33c11
<ide><path>src/TestSuite/IntegrationTestCase.php <ide> public function assertRedirect($url, $message = '') { <ide> $this->assertEquals(Router::url($url, ['_full' => true]), $result['Location'], $message); <ide> } <ide> <add>/** <add> * Assert response headers <add> * <add> * @param string $header The header to chec...
2
Ruby
Ruby
add freetube to github_prerelease_allowlist
6efcde2eefea57692e6bde37ffd99c90151db536
<ide><path>Library/Homebrew/utils/shared_audits.rb <ide> def github_release_data(user, repo, tag) <ide> GITHUB_PRERELEASE_ALLOWLIST = { <ide> "amd-power-gadget" => :all, <ide> "elm-format" => "0.8.3", <add> "freetube" => :all, <ide> "gitless" => "0.8.8", <ide> "infrakit" ...
1
Javascript
Javascript
add test filter for es6 constructs
588db26d9c658120f33a56c64c4a94e6e1dbf0b4
<ide><path>test/cases/scope-hoisting/renaming-shorthand-5027/test.filter.js <add>var supportsES6 = require("../../../helpers/supportsES6"); <add>var supportDefaultAssignment = require("../../../helpers/supportDefaultAssignment"); <add>var supportsObjectDestructuring = require("../../../helpers/supportsObjectDestructuri...
1
Ruby
Ruby
rotate the debug.log on each 100mb
64391cd520cd8aee2c8b9ba1b95e4aae4512a6a0
<ide><path>activerecord/test/support/connection.rb <ide> def self.connection_config <ide> <ide> def self.connect <ide> puts "Using #{connection_name}" <del> ActiveRecord::Model.logger = ActiveSupport::Logger.new("debug.log") <add> ActiveRecord::Model.logger = ActiveSupport::Logger.new("debug.log", 0, 100 *...
1
Javascript
Javascript
ignore case for request headers
7069e4cd3f1228e0508988ecdee2afb3899aedfc
<ide><path>Libraries/Network/XMLHttpRequestBase.js <ide> class XMLHttpRequestBase { <ide> } <ide> <ide> setRequestHeader(header: string, value: any): void { <del> this._headers[header] = value; <add> this._headers[header.toLowerCase()] = value; <ide> } <ide> <ide> open(method: string, url: string, async...
1
Javascript
Javascript
fix typos on next-server.js comments.
0d77dda28c8b0eaed38bb203de737ffc1235d42a
<ide><path>packages/next-server/server/next-server.js <ide> export default class Server { <ide> } <ide> }, <ide> { <del> // It's very important keep this route's param optional. <del> // (but it should support as many as params, seperated by '/') <del> // Othewise this will lead...
1
PHP
PHP
apply fixes from styleci
a3f8589bbd01e85e429c7c38d8b2b7bc9cc7dc8d
<ide><path>src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php <ide> protected function registerScheduleListCommand() <ide> { <ide> $this->app->singleton(ScheduleListCommand::class); <ide> } <del> <add> <ide> /** <ide> * Register the command. <ide> *
1
Ruby
Ruby
adjust route inspection to work with journey
d21e0e2af3d9b21399244c3f3f73378d75cd4697
<ide><path>railties/lib/rails/application/route_inspector.rb <ide> def format all_routes, filter = nil <ide> reqs = reqs.empty? ? constraints.inspect : "#{reqs} #{constraints.inspect}" <ide> end <ide> <del> {:name => route.name.to_s, :verb => route.verb.to_s, :path => route.path, :reqs =...
1
PHP
PHP
apply fixes from styleci
bbc559073aed1706be8c0ee134c56fdcc347614a
<ide><path>tests/Integration/Foundation/DiscoverEventsTest.php <ide> use Illuminate\Tests\Integration\Foundation\Fixtures\EventDiscovery\Events\EventOne; <ide> use Illuminate\Tests\Integration\Foundation\Fixtures\EventDiscovery\Events\EventTwo; <ide> use Illuminate\Tests\Integration\Foundation\Fixtures\EventDiscovery\L...
1
Javascript
Javascript
remove re-exported functions
d0c2b068d778359b885e8d37f212275511f9c425
<ide><path>local-cli/server/util/attachHMRServer.js <ide> <ide> 'use strict'; <ide> <add>const getInverseDependencies = require('../../../packager/src//node-haste/lib/getInverseDependencies'); <ide> const querystring = require('querystring'); <ide> const url = require('url'); <ide> <del>const {getInverseDependencies...
3
Go
Go
fix behavior of tty tests
86c00be180f1e6831ca426576a55f5106f156448
<ide><path>integration/commands_test.go <ide> func TestRunDisconnect(t *testing.T) { <ide> }) <ide> } <ide> <del>// Expected behaviour: the process dies when the client disconnects <add>// Expected behaviour: the process stay alive when the client disconnects <add>// but the client detaches. <ide> func TestRunDisconn...
1
Python
Python
use basictokenizer to split over whitespaces
e516a34a158593f82b6f22dc1e568ff8996f0389
<ide><path>transformers/pipelines.py <ide> import numpy as np <ide> <ide> from transformers import AutoConfig, AutoTokenizer, PreTrainedTokenizer, PretrainedConfig, \ <del> SquadExample, squad_convert_examples_to_features, is_tf_available, is_torch_available, logger <add> SquadExample, squad_convert_examples_to_...
1
Go
Go
fix merge issue
a48799016a43e6badae72e855f9a90592b6cdd98
<ide><path>api.go <ide> func postImagesGetCache(srv *Server, version float64, w http.ResponseWriter, r * <ide> return nil <ide> } <ide> <del>func postBuild(srv *Server, w http.ResponseWriter, r *http.Request, vars map[string]string) error { <add>func postBuild(srv *Server, version float64, w http.ResponseWriter, r *h...
4
Text
Text
add missing parenthesis on readme.md
eee45e02535b986c1701a8d4442d887931e69720
<ide><path>README.md <ide> Observable.create(emitter -> { <ide> long time = System.currentTimeMillis(); <ide> emitter.onNext(time); <ide> if (time % 2 != 0) { <del> emitter.onError(new IllegalStateException("Odd millisecond!"); <add> emitter.onError(new IllegalStateExc...
1
Javascript
Javascript
remove leftovers from reacttransitiongroup rewrite
27ea2c7e517e9a70e1a43baf6b8f5be6bf766a72
<ide><path>src/addons/transitions/ReactCSSTransitionGroupChild.js <ide> var ReactCSSTransitionGroupChild = React.createClass({ <ide> queueClass: function(className) { <ide> this.classNameQueue.push(className); <ide> <del> if (this.props.runNextTick) { <del> this.props.runNextTick(this.flushClassNameQueue...
1