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
Javascript
Javascript
reuse existing storageobject
8243ca0e0e87b3e114d9ddf2843d1272bc56b053
<ide><path>lib/_http_outgoing.js <ide> var RE_FIELDS = new RegExp('^(?:Connection|Transfer-Encoding|Content-Length|' + <ide> var RE_CONN_VALUES = /(?:^|\W)close|upgrade(?:$|\W)/ig; <ide> var RE_TE_CHUNKED = common.chunkExpression; <ide> <del>// Used to store headers returned by getHeaders() <del>function OutgoingHeade...
1
Python
Python
remove double blank line
a4238443acabf5f83e8e4df10c0daf5b1963602f
<ide><path>glances/outputs/glances_curses.py <ide> def __display_left(self, stat_display): <ide> for s in ['network', 'wifi', 'ports', 'diskio', 'fs', 'irq', <ide> 'folders', 'raid', 'sensors', 'now']: <ide> if (hasattr(self.args, 'enable_' + s) or <del> ...
2
PHP
PHP
remove use of folder in extracttask
27b08e1e5be230e5fdadeadec075fdb9e0f8e0fc
<ide><path>src/Shell/Task/ExtractTask.php <ide> use Cake\Core\Exception\MissingPluginException; <ide> use Cake\Core\Plugin; <ide> use Cake\Filesystem\File; <del>use Cake\Filesystem\Folder; <add>use Cake\Filesystem\Filesystem; <ide> use Cake\Utility\Inflector; <ide> <ide> /** <ide> protected function _searchFiles(): vo...
1
Python
Python
add tf exception to swwae example
bd404b1c882ea649c17b9e26eadcc1978df21fdc
<ide><path>examples/mnist_swwae.py <ide> https://arxiv.org/abs/1603.05027v3 <ide> <ide> ''' <del> <ide> from __future__ import print_function <ide> import numpy as np <ide> np.random.seed(1337) # for reproducibility <ide> def getwhere(x): <ide> y_prepool, y_postpool = x <ide> return K.gradients(K.sum(y_postpo...
1
Javascript
Javascript
fix unicode parsing close #56
ff52f47537c9bf5c6acc636f25ae5f7f70d20f3b
<ide><path>src/Parser.js <ide> function lex(text, parseStrings){ <ide> if (escape) { <ide> if (ch == 'u') { <ide> var hex = text.substring(index + 1, index + 5); <add> if (!hex.match(/[\da-f]{4}/i)) <add> throw "Lexer Error: Invalid unicode escape [\\u" + <add> h...
2
Ruby
Ruby
fix false positives in audit
4fbe0a2b1bd35eb76467a9decee526382fe9ac5b
<ide><path>Library/Homebrew/extend/os/mac/formula_cellar_checks.rb <ide> def check_flat_namespace(formula) <ide> <ide> macho = MachO.open(file) <ide> if file.universal? <del> macho.machos.map(&:header).all? { |h| h.flag? :MH_TWO_LEVEL } <add> macho.machos.map(&:header).all? { |h| h.flag? :MH_...
1
PHP
PHP
replace connection code with query instances
bc5e3a5b0de338aef32f0ad8e0c7a3413610403b
<ide><path>lib/Cake/Model/Datasource/Database/Connection.php <ide> use Cake\Model\Datasource\Database\Exception\MissingConnectionException; <ide> use Cake\Model\Datasource\Database\Exception\MissingDriverException; <ide> use Cake\Model\Datasource\Database\Exception\MissingExtensionException; <add>use Cake\Model\Datasou...
1
Go
Go
add legacy compat
aca1270104802347f5aa3104959282924b631daa
<ide><path>api.go <ide> func getImagesJSON(srv *Server, version float64, w http.ResponseWriter, r *http. <ide> job.Setenv("filter", r.Form.Get("filter")) <ide> job.Setenv("all", r.Form.Get("all")) <ide> job.SetenvBool("list", version <= 1.8) <add> job.SetenvBool("legacy", version <= 1.7) <ide> job.Stdout.Add(w) <id...
4
Ruby
Ruby
use #start_with? and #[] for speed
113f8a6cc91e41d3d009f0c1941eb1db2dba1463
<ide><path>actionpack/lib/action_dispatch/routing/route_set.rb <ide> def use_relative_controller! <ide> # Remove leading slashes from controllers <ide> def normalize_controller! <ide> if controller <del> if m = controller.match(/\A\/(?<controller_without_leading_slash>.*)/) <del> ...
1
Ruby
Ruby
add git utils
71f794260b8ea0312b5a733095e2856c9a4719bb
<ide><path>Library/Homebrew/utils.rb <ide> require "utils/inreplace" <ide> require "utils/popen" <ide> require "utils/fork" <add>require "utils/git" <ide> require "open-uri" <ide> <ide> class Tty <ide><path>Library/Homebrew/utils/git.rb <add>module Utils <add> def self.git_available? <add> git = which("git") <add>...
2
Javascript
Javascript
remove checks for deserializing wasm
119fdf6813a0b01c1b1c331427267da61c31e83d
<ide><path>test/parallel/test-v8-serdes.js <ide> 'use strict'; <ide> <ide> const common = require('../common'); <del>const fixtures = require('../common/fixtures'); <ide> const { internalBinding } = require('internal/test/binding'); <ide> const assert = require('assert'); <ide> const v8 = require('v8'); <ide> const os...
1
PHP
PHP
use array_sum instead of default callback
0f5c01d88cde71ea16be9893d78ce35f46093ecb
<ide><path>src/Illuminate/Support/Collection.php <ide> public function sum($callback = null) <ide> { <ide> if (is_null($callback)) <ide> { <del> $callback = function($item) { return $item; }; <add> return array_sum($this->items); <ide> } <ide> <ide> if (is_string($callback))
1
Ruby
Ruby
remove colon from rspec annotations
d45af9e78110415a8298db69a55117848b0fbf36
<ide><path>Library/Homebrew/test/support/github_formatter.rb <ide> def example_failed(failure) <ide> <ide> description = failure.example.full_description <ide> message = failure.message_lines.join("\n") <del> annotation = "#{description}:\n\n#{message}" <add> annotation = "#{description}\...
1
Java
Java
add a missing single quote in assertion message
9a6ce66bd919a36e851989d9b18c8d8c61b9aeee
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilter.java <ide> private void initLookupPath(ResourceUrlProvider urlProvider) { <ide> String lookupPath = pathHelper.getLookupPathForRequest(this); <ide> this.indexLookupPath = requestUri.lastIndexOf(lookupPath);...
1
Ruby
Ruby
use wildcard glob for optimized template resolving
cc9a0de6602f3c33e5ffa168c75f90451b47a208
<ide><path>actionview/lib/action_view/template/resolver.rb <ide> def find_templates(name, prefix, partial, details, outside_app_allowed = false) <ide> end <ide> <ide> def query(path, details, formats, outside_app_allowed) <del> query = build_query(path, details) <del> <del> template_paths = f...
1
Python
Python
add electra unexpected keys
41c3a3b98e0bb85ee53fe67fc7d451f254679f1b
<ide><path>src/transformers/modeling_electra.py <ide> class ElectraPreTrainedModel(PreTrainedModel): <ide> load_tf_weights = load_tf_weights_in_electra <ide> base_model_prefix = "electra" <ide> authorized_missing_keys = [r"position_ids"] <add> authorized_unexpected_keys = [r"electra\.embeddings_project\....
1
Python
Python
remove all complicated types
95601be1ce933ed43ab71877a946b2e64e394d6c
<ide><path>keras/callbacks.py <ide> class ProgbarLogger(Callback): <ide> ValueError: In case of invalid `count_mode`. <ide> """ <ide> <del> def __init__( <del> self, <del> count_mode: str = "samples", <del> stateful_metrics=None <del> ): <add> def __init__(self, count_mode: st...
1
Python
Python
fix init-model if no vectors provided
664f89327ad03b7db0f2285601c9eae155d7df52
<ide><path>spacy/cli/init_model.py <ide> def create_model(lang, probs, oov_prob, clusters, vectors_data, vector_keys, pru <ide> lexeme.cluster = 0 <ide> lex_added += 1 <ide> nlp.vocab.cfg.update({'oov_prob': oov_prob}) <del> for word in vector_keys: <del> if word not in nlp.vocab: <del...
1
Javascript
Javascript
treat \ the same as /
f7ede33f09187cd9b1874982e813380cd292ef17
<ide><path>lib/url.js <ide> Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { <ide> throw new TypeError("Parameter 'url' must be a string, not " + typeof url); <ide> } <ide> <add> // Copy chrome, IE, opera backslash-handling behavior. <add> // See: https://code.google.com/p/chromium/is...
2
Java
Java
add converters between enum and integer
1a302e1fac95774717673aa1036132aa2ee60e89
<ide><path>spring-core/src/main/java/org/springframework/core/convert/support/DefaultConversionService.java <ide> private static void addScalarConverters(ConverterRegistry converterRegistry) { <ide> <ide> converterRegistry.addConverterFactory(new StringToEnumConverterFactory()); <ide> converterRegistry.addConverte...
4
Javascript
Javascript
remove unnecessary eslint-disable max-len
78545039d65fa24841454f161c3711ce4b5226bc
<ide><path>test/parallel/test-url-format-invalid-input.js <del>/* eslint-disable max-len */ <ide> 'use strict'; <ide> require('../common'); <ide> const assert = require('assert'); <ide><path>test/parallel/test-url-relative.js <del>/* eslint-disable max-len */ <ide> 'use strict'; <ide> require('../common'); <ide> const ...
2
Javascript
Javascript
update other test tasks to use karma-browserify
a84f9d917721f4f06965c88186a37e8200aecce7
<ide><path>gulpfile.js <ide> function validHTMLTask() { <ide> <ide> <ide> function unittestTask() { <del> var files = ['./dist/Chart.bundle.js'] <add> var files = ['./src/**/*.js']; <ide> Array.prototype.unshift.apply(files, preTestFiles); <ide> Array.prototype.push.apply(files, testFiles); <ide> <ide> functio...
3
Javascript
Javascript
use unimplementedview for checkbox on ios
f9be64aea05fe76dd93b72ec7e49e744988e0935
<add><path>Libraries/Components/CheckBox/CheckBox.android.js <del><path>Libraries/Components/CheckBox/CheckBox.js <ide> type DefaultProps = { <ide> }; <ide> <ide> /** <del> * Renders a boolean input. <add> * Renders a boolean input (Android only). <ide> * <ide> * This is a controlled component that requires an `onVa...
3
Java
Java
show low res image if available in cache
fc622504dec5b58b9ab1edc19ef605781d123129
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/DrawImageWithDrawee.java <ide> implements DrawImage, ControllerListener { <ide> <ide> private @Nullable Map<String, Double> mSources; <del> private @Nullable String mImageSource; <ide> private @Nullable Context mContext; <ide> private @Nullable D...
4
Javascript
Javascript
check statuscode early
ec8910bcea8d57a1faf07202364cb4f3eee769ac
<ide><path>lib/_http_server.js <ide> ServerResponse.prototype._implicitHeader = function _implicitHeader() { <ide> ServerResponse.prototype.writeHead = writeHead; <ide> function writeHead(statusCode, reason, obj) { <ide> var headers; <add> statusCode |= 0; <add> if (statusCode < 100 || statusCode > 999) <add> th...
1
Javascript
Javascript
pass chunk to updatehashforchunk
6bd9c8a757d9cb75b575425d4943454f3b9283d3
<ide><path>lib/Compilation.js <ide> class Compilation extends Tapable { <ide> if(chunk.hasRuntime()) { <ide> this.mainTemplate.updateHashForChunk(chunkHash, chunk); <ide> } else { <del> this.chunkTemplate.updateHashForChunk(chunkHash); <add> this.chunkTemplate.updateHashForChunk(chunkHash, chunk); <ide>...
1
Javascript
Javascript
add listener deregistration fn for $watch and $on
31b86241215bb37cc6bb81f98a47942738d710c2
<ide><path>src/Scope.js <ide> Scope.prototype = { <ide> * - `string`: Evaluated as {@link guide/dev_guide.expressions expression} <ide> * - `function(scope, newValue, oldValue)`: called with current `scope` an previous and <ide> * current values as parameters. <add> * @returns {function()} Return...
2
Ruby
Ruby
allow non-zero exit code
23b64f82c9a94b94baf64abe3c8533e1b52665f5
<ide><path>Library/Homebrew/dev-cmd/prof.rb <ide> def prof <ide> if args.stackprof? <ide> Homebrew.install_gem_setup_path! "stackprof" <ide> with_env HOMEBREW_STACKPROF: "1" do <del> safe_system ENV["HOMEBREW_RUBY_PATH"], brew_rb, *args.named <add> system ENV["HOMEBREW_RUBY_PATH"], brew_rb...
1
Mixed
Java
add oncontentsizechange prop to webview
22de6550d63c16066e2fbd79906d255ff8c8fea1
<ide><path>Libraries/Components/WebView/WebView.android.js <ide> class WebView extends React.Component { <ide> automaticallyAdjustContentInsets: PropTypes.bool, <ide> contentInset: EdgeInsetsPropType, <ide> onNavigationStateChange: PropTypes.func, <add> onContentSizeChange: PropTypes.func, <ide> star...
4
Python
Python
prepare tools/genv8constants.py for python 3
ae3ee28abd0c794ec7782831f50578374eececb5
<ide><path>tools/genv8constants.py <ide> <ide> if len(sys.argv) != 3: <ide> print("usage: objsym.py outfile libv8_base.a") <del> sys.exit(2); <add> sys.exit(2) <ide> <del>outfile = file(sys.argv[1], 'w'); <add>outfile = open(sys.argv[1], 'w') <ide> try: <ide> pipe = subprocess.Popen([ 'objdump', '-z', '-D', sys...
1
PHP
PHP
remove strict comparisons on equality operations
9f614dcc25d07a6496ef3072acedaab0e210ec93
<ide><path>src/Validation/Validation.php <ide> public static function comparison($check1, string $operator, $check2): bool <ide> } <ide> break; <ide> case static::COMPARE_EQUAL: <del> if ($check1 === $check2) { <add> if ($check1 == $check2) { <id...
2
Java
Java
join patterns extension for 4..9 and n arity joins
419c0fe6d97a88941c68b30cc333274784b095f1
<ide><path>rxjava-contrib/rxjava-joins/src/main/java/rx/joins/ActivePlan0.java <ide> public abstract class ActivePlan0 { <ide> protected final Map<JoinObserver, JoinObserver> joinObservers = new HashMap<JoinObserver, JoinObserver>(); <ide> <del> public abstract void match(); <add> protected abstract void mat...
36
Python
Python
fix consistency crossentropyloss in modeling_bart
3be2d048848df43e2dacb9127d2278443157ba78
<ide><path>src/transformers/modeling_bart.py <ide> def forward( <ide> <ide> masked_lm_loss = None <ide> if labels is not None: <del> loss_fct = nn.CrossEntropyLoss() <add> loss_fct = CrossEntropyLoss() <ide> # TODO(SS): do we need to ignore pad tokens in labels? <ide> ...
1
Python
Python
check next run exists before reading data interval
dc4dcaa9ccbec6a1b1ce84d5ee42322ce1fbb081
<ide><path>airflow/models/dag.py <ide> def previous_schedule(self, dttm): <ide> return None <ide> return self.timetable._get_prev(timezone.coerce_datetime(dttm)) <ide> <del> def get_next_data_interval(self, dag_model: "DagModel") -> DataInterval: <add> def get_next_data_interval(self, dag_mod...
2
Javascript
Javascript
change vendored module isdomnode -> isnode
f88aa3518775134eacc7b45ad61b3447ab436a20
<ide><path>src/utils/ImmutableObject.js <ide> "use strict"; <ide> <ide> var invariant = require('invariant'); <del>var isDOMNode = require('isDOMNode'); <add>var isNode = require('isNode'); <ide> var merge = require('merge'); <ide> var mergeInto = require('mergeInto'); <ide> var mergeHelpers = require('mergeHelpers');...
2
Text
Text
remove code course
ba5c29459800e384465c3e5d099df4af3d0598b8
<ide><path>readme.md <ide> We would like to extend our thanks to the following sponsors for helping fund on <ide> - **[Tighten Co.](https://tighten.co)** <ide> - **[British Software Development](https://www.britishsoftware.co)** <ide> - **[Styde](https://styde.net)** <del>- **[Codecourse](https://www.codecourse.com)** ...
1
Javascript
Javascript
use requirenativecomponent everywhere
f2545bafc967661beeefc3778c06532982a6addc
<ide><path>Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js <ide> var RCTUIManager = require('NativeModules').UIManager; <ide> var StyleSheet = require('StyleSheet'); <ide> var View = require('View'); <ide> <del>var createReactNativeComponentClass = require('createReactNativeComponentClass'); <ide> va...
7
Javascript
Javascript
change description when no static exports found
08615a2ff7bf0265fa97cae14908bd53d8a826fe
<ide><path>lib/FunctionModuleTemplatePlugin.js <ide> class FunctionModuleTemplatePlugin { <ide> if(Array.isArray(module.providedExports)) <ide> source.add("/* exports provided: " + module.providedExports.join(", ") + " */\n"); <ide> else if(module.providedExports) <del> source.add("/* unknown exports p...
1
Javascript
Javascript
use object for `tests` variable in fs trace test
138704f821d5569f22c880fc9dff8a5ac58a0ed3
<ide><path>test/parallel/test-trace-events-fs-sync.js <ide> const fs = require('fs'); <ide> const path = require('path'); <ide> const util = require('util'); <ide> <del>const tests = new Array(); <add>const tests = Object.create(null); <ide> <ide> let gid = 1; <ide> let uid = 1;
1
Go
Go
fix ineffectual assignments
f6d9d22e6f554e47674488f210375d3c7277900a
<ide><path>libnetwork/hostdiscovery/hostdiscovery_test.go <ide> func TestAddedCallback(t *testing.T) { <ide> if !added { <ide> t.Fatal("Expecting an Added callback notification. But none received") <ide> } <add> if removed { <add> t.Fatal("Not expecting a Removed callback notification. But received a callback") <a...
1
PHP
PHP
move wrapper content into formatters
9b47feb9c6dfc1a6101f40a9124c1c54537ef627
<ide><path>src/Error/Debug/ConsoleFormatter.php <ide> public static function environmentMatches(): bool <ide> } <ide> <ide> /** <del> * Style text with ANSI escape codes. <del> * <del> * @param string $style The style name to use. <del> * @param string $text The text to style. <del> * @retu...
6
Ruby
Ruby
add deprecation horizon to html-scanner
3fb10fd4790841ab82c4f0697b5527b7d6a40c6c
<ide><path>actionpack/lib/action_controller/vendor/html-scanner.rb <ide> require 'action_view/vendor/html-scanner' <ide> require 'active_support/deprecation' <ide> <del>ActiveSupport::Deprecation.warn 'vendored html-scanner was moved to action_view, please require "action_view/vendor/html-scanner" instead' <add>Active...
1
Javascript
Javascript
fix keyboard interactions
bbd21066e634c03db67f0b9570de60fdb4879dc0
<ide><path>packages/react-events/src/dom/Press.js <ide> const PressResponder: ReactDOMEventResponder = { <ide> const isKeyboardEvent = pointerType === 'keyboard'; <ide> const isMouseEvent = pointerType === 'mouse'; <ide> <add> // Ignore emulated mouse events <add> if (type === 'mo...
2
Python
Python
remove unnecessary dimension in label input
628bc6e03e1024f5d9aecd75db9465cb51cc9209
<ide><path>examples/mnist_acgan.py <ide> def build_generator(latent_size): <ide> latent = Input(shape=(latent_size, )) <ide> <ide> # this will be our label <del> image_class = Input(shape=(1, 1), dtype='int32') <add> image_class = Input(shape=(1,), dtype='int32') <ide> <ide> # 10 classes in MNIST <d...
1
Python
Python
fix schema generation for primarykeyrelatedfield
27f32faee4dd96c5baee920d3a8f42ab4364782b
<ide><path>rest_framework/schemas/inspectors.py <ide> def field_to_schema(field): <ide> title=title, <ide> description=description <ide> ) <add> elif isinstance(field, serializers.PrimaryKeyRelatedField): <add> schema_cls = coreschema.String <add> model = getattr(field.q...
2
Python
Python
fix model loading
162ba383b05e502b9fc5df4d4abb5951c020d3bc
<ide><path>examples/run_bert_classifier.py <ide> def main(): <ide> input_ids, input_mask, segment_ids, label_ids = batch <ide> <ide> # define a new function to compute loss values for both output_modes <del> logits = model(input_ids, token_type_ids=segment_ids, attention_...
3
Python
Python
fix softlayer tests
8d91411ef224136928d24d0cdcb9c73f1ea79f99
<ide><path>test/test_softlayer.py <ide> def request(self, host, handler, request_body, verbose=0): <ide> class SoftLayerTests(unittest.TestCase): <ide> <ide> def setUp(self): <del> SoftLayer.connectionCls.proxyCls.transportCls = MockSoftLayerTransport <add> SoftLayer.connectionCls.proxyCls.transportC...
1
Go
Go
make devicemapper linux-only
24c03b2d938d383dd7669dc8faad7e2110a11173
<ide><path>graphdriver/devmapper/attachLoopback.go <add>// +build linux <add> <ide> package devmapper <ide> <ide> import ( <ide><path>graphdriver/devmapper/deviceset.go <add>// +build linux <add> <ide> package devmapper <ide> <ide> import ( <ide><path>graphdriver/devmapper/devmapper.go <add>// +build linux <add> <ide...
11
Javascript
Javascript
remove duplicate shebang filtering
39f0ef9d4af6dbf75482b53b33ca3deafc2d4c5f
<ide><path>src/node.js <ide> Module.prototype._compile = function (content, filename) { <ide> <ide> Module.prototype._loadScriptSync = function (filename) { <ide> var content = requireNative('fs').readFileSync(filename); <del> // remove shebang <del> content = content.replace(/^\#\!.*/, ''); <del> <ide> var e = ...
1
Text
Text
update changelog for 0.69.1
33dc0bb342b5f01cb7ca5123a26f46a01406d9b0
<ide><path>CHANGELOG.md <ide> # Changelog <ide> <add>## v0.69.1 <add> <add>### Changed <add> <add>#### iOS specific <add> <add>- Make all Yoga headers public and add #ifdef __cplusplus ([43f831b23c](https://github.com/facebook/react-native/commit/43f831b23caf22e59af5c6d3fdd62fed3d20d4ec) by [@janicduplessis](https://g...
1
PHP
PHP
fix array options
cfc3ac9c8b0a593d264ae722ab90601fa4882d0e
<ide><path>src/Illuminate/Console/Scheduling/Schedule.php <ide> use Illuminate\Contracts\Queue\ShouldQueue; <ide> use Illuminate\Queue\CallQueuedClosure; <ide> use Illuminate\Support\ProcessUtils; <add>use Illuminate\Support\Str; <ide> use Illuminate\Support\Traits\Macroable; <ide> use RuntimeException; <ide> <ide> pu...
1
Python
Python
allow no layer names in plot()
fd3cfb196b2be22c274cc7b7f0abbd1c8e87a2c2
<ide><path>keras/utils/visualize_util.py <ide> ' and graphviz for `pydotprint` to work.') <ide> <ide> <del>def model_to_dot(model, show_shapes=False): <add>def model_to_dot(model, show_shapes=False, show_layer_names=True): <ide> dot = pydot.Dot() <ide> dot.set('rankdir', 'TB') <ide> ...
1
PHP
PHP
add where pivot null methods
16164416f6dfb7e8c736b4cb4ff7409d22cc4e70
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php <ide> public function orWherePivotNotIn($column, $values) <ide> return $this->wherePivotNotIn($column, $values, 'or'); <ide> } <ide> <add> /** <add> * Set a "where null" clause for a pivot table column. <add> * <add> * @...
1
Mixed
Go
remove static errors from errors package
a793564b2591035aec5412fbcbcccf220c773a4c
<ide><path>api/client/run.go <ide> import ( <ide> <ide> "github.com/Sirupsen/logrus" <ide> Cli "github.com/docker/docker/cli" <del> derr "github.com/docker/docker/errors" <ide> "github.com/docker/docker/opts" <ide> "github.com/docker/docker/pkg/promise" <ide> "github.com/docker/docker/pkg/signal" <ide> import ( <...
67
Text
Text
use .ctags file from symbols view
1ca86d36fda95ce10b0e89eb2461b30a99306974
<ide><path>docs/getting-started.md <ide> For more advanced configuration see the [customization guide][customization]. <ide> [customization]: customizing-atom.md <ide> [key-bindings]: customizing-atom.md#customizing-key-bindings <ide> [command palette]: https://f.cloud.github.com/assets/1424/1091618/ee7c3554-166a-11e3-...
1
Go
Go
fix logic for discarded signal
6d25eb6e7c599bd569af02cf08fe0fbc9af7e1d8
<ide><path>api/client/start.go <ide> func (cli *DockerCli) forwardAllSignals(cid string) chan os.Signal { <ide> } <ide> if sig == "" { <ide> fmt.Fprintf(cli.err, "Unsupported signal: %v. Discarding.\n", s) <add> continue <ide> } <ide> if _, _, err := readBody(cli.call("POST", fmt.Sprintf("/containers...
1
Javascript
Javascript
remove the removal plan info for bind/unbind
e008df6c8c1f2f7741618f5e57f3ebcbeebd9a15
<ide><path>src/jqLite.js <ide> * - [`after()`](http://api.jquery.com/after/) <ide> * - [`append()`](http://api.jquery.com/append/) <ide> * - [`attr()`](http://api.jquery.com/attr/) - Does not support functions as parameters <del> * - [`bind()`](http://api.jquery.com/bind/) (_deprecated_ - to be removed in 1.7.0, use...
1
Javascript
Javascript
add failing test. process spawning loop
5b7fb1003ce4e45527dbfc38bd9d157efd0a3470
<ide><path>test/mjsunit/test-process-spawn-loop.js <add>include("mjsunit.js"); <add> <add>var N = 40; <add>var finished = false; <add> <add>function spawn (i) { <add> var p = new node.Process('python -c "print 500 * 1024 * \'C\'"'); <add> var output = ""; <add> <add> p.onOutput = function(chunk) { <add> if (chu...
1
Ruby
Ruby
fix inheritance style in download strats
7c4289d44668635e77efffba205aba78de2383cd
<ide><path>Library/Homebrew/download_strategy.rb <ide> def quiet_safe_system *args <ide> end <ide> end <ide> <del>class CurlDownloadStrategy <AbstractDownloadStrategy <add>class CurlDownloadStrategy < AbstractDownloadStrategy <ide> attr_reader :tarball_path <ide> <ide> def initialize url, name, version, specs <...
1
Javascript
Javascript
improve description formatting
7bef52204257b8c4cb7bf9e7f7f0d01618509e4f
<ide><path>src/ng/filter.js <ide> * @name $filter <ide> * @kind function <ide> * @description <del> * Filters are used for formatting data displayed to the user. They can be used in view <del> * templates, controllers or services. Angular comes with a collection of <del> * [built-in filters](api/ng/filter), but it i...
1
PHP
PHP
use higher order messages in collection
9e0b94779f5a1ca38a10114a0a897509509d9d31
<ide><path>src/Illuminate/Database/Eloquent/Collection.php <ide> public function except($keys) <ide> */ <ide> public function makeHidden($attributes) <ide> { <del> return $this->each(function ($model) use ($attributes) { <del> $model->addHidden($attributes); <del> }); <add> ...
1
Text
Text
remove unnecessary semicolons from writingtests.md
b6366523cbd36c4df33785ed46e7fd1376c8cc5b
<ide><path>docs/recipes/WritingTests.md <ide> can be tested like: <ide> ```js <ide> import React from 'react' <ide> import Enzyme, { mount } from 'enzyme' <del>import Adapter from 'enzyme-adapter-react-16'; <add>import Adapter from 'enzyme-adapter-react-16' <ide> import Header from '../../components/Header' <ide> <del...
1
Javascript
Javascript
add allowinvalid option
3c538c1d21c43422c7b4cd9b69cb67981bce2b87
<ide><path>src/ng/directive/input.js <ide> var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ <ide> ctrl.$modelValue = ngModelGet(); <ide> } <ide> var prevModelValue = ctrl.$modelValue; <add> var allowInvalid = ctrl.$options && ctrl.$options.allowInvalid; <add> if (allo...
2
Go
Go
avoid fork on mount for overlay2 in common case
c13a985fa1196a5ed782d5ac68a4bbb68dd529ca
<ide><path>daemon/graphdriver/overlay2/mount.go <ide> type mountOptions struct { <ide> Flag uint32 <ide> } <ide> <del>func mountFrom(dir, device, target, mType, label string) error { <add>func mountFrom(dir, device, target, mType string, flags uintptr, label string) error { <ide> options := &mountOptions{ <ide> ...
2
Python
Python
improve test speed
19d344bfd4c0b348e6c978a6c90a1da4372d8f82
<ide><path>numpy/lib/tests/test_format.py <ide> def test_roundtrip(): <ide> yield assert_array_equal, arr, arr2 <ide> <ide> <add>@dec.slow <ide> def test_memmap_roundtrip(): <ide> # XXX: test crashes nose on windows. Fix this <ide> if not (sys.platform == 'win32' or sys.platform == 'cygwin'): <ide><pa...
2
Javascript
Javascript
fix pre-aborted signal question handling
dbab2893efcd498691cea7ca887c36d40a33f615
<ide><path>lib/readline.js <ide> const { <ide> StringPrototypeStartsWith, <ide> StringPrototypeTrim, <ide> Promise, <add> PromiseReject, <ide> Symbol, <ide> SymbolAsyncIterator, <ide> SafeStringIterator, <ide> Interface.prototype.question = function(query, options, cb) { <ide> options = typeof options ==...
2
Ruby
Ruby
remove reference to "open" command
621a7ada9583544469ddb696d076d0237cb25bb4
<ide><path>Library/Homebrew/cmd/help.rb <ide> Brewing: <ide> brew create [URL [--no-fetch]] <ide> brew edit [FORMULA...] <del> open https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md <add> https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md ...
1
PHP
PHP
delay closures evaluation after merging attributes
3d38e2f2d96f3c592b4085cc346ee43fae7a18fc
<ide><path>src/Illuminate/Database/Eloquent/FactoryBuilder.php <ide> protected function makeInstance(array $attributes = []) <ide> } <ide> <ide> $definition = call_user_func($this->definitions[$this->class][$this->name], $this->faker, $attributes); <add> <add> $evaluated ...
1
Javascript
Javascript
use escape hatch for mocked modules
abcd1b6370c8dbaaf94ab8a971a886757b90128b
<ide><path>packager/src/lib/__tests__/GlobalTransformCache-test.js <ide> jest.disableAutomock(); <ide> jest.useRealTimers(); <ide> <del>const fetchMock = jest.fn(); <del>jest.mock('node-fetch', () => fetchMock); <add>const mockFetch = jest.fn(); <add>jest.mock('node-fetch', () => mockFetch); <ide> <ide> const {URIBas...
3
Mixed
Ruby
add a `required` option to the model generator
fdfc0fc6c91b46a3ff769687e1a456ef2b205417
<ide><path>activerecord/lib/rails/generators/active_record/migration/migration_generator.rb <ide> def index_name_for(attribute) <ide> def attributes_with_index <ide> attributes.select { |a| !a.reference? && a.has_index? } <ide> end <del> <add> <ide> def validate_file_name! <ide...
6
Text
Text
fix sentence about http2stream destruction
6f5b5d1c4bd7decf68618955244ea6b49dba92f4
<ide><path>doc/api/http2.md <ide> All [`Http2Stream`][] instances are destroyed either when: <ide> * The `http2stream.destroy()` or `http2session.destroy()` methods are called. <ide> <ide> When an `Http2Stream` instance is destroyed, an attempt will be made to send an <del>`RST_STREAM` frame will be sent to the connec...
1
Javascript
Javascript
create null value bars, and hide if not numeric
e25fd5e37cbfe62fe5d7ff6adf108b800b205662
<ide><path>src/Chart.Bar.js <ide> this.datasets.push(datasetObject); <ide> <ide> helpers.each(dataset.data,function(dataPoint,index){ <del> if (helpers.isNumber(dataPoint)){ <del> //Add a new point for each piece of data, passing any required data to draw. <del> datasetObject.bars.push(new this.B...
1
Python
Python
simplify push/pull mechanism
7c13bb9af523505647ee27cec73a98718d69dd62
<ide><path>airflow/models.py <ide> from airflow.configuration import conf <ide> from airflow.utils import ( <ide> AirflowException, XComException, State, apply_defaults, provide_session, <del> as_tuple) <add> is_container, as_tuple) <ide> <ide> Base = declarative_base() <ide> ID_LEN = 250 <ide> def xcom_push...
1
Ruby
Ruby
remove needless setup from `infotest`
d342a35eaa59717155da0a646f9a44435f15c052
<ide><path>railties/test/rails_info_test.rb <ide> <ide> require "abstract_unit" <ide> <del>unless defined?(Rails) && defined?(Rails::Info) <del> module Rails <del> class Info; end <del> end <del>end <del> <del>require "active_support/core_ext/kernel/reporting" <del> <ide> class InfoTest < ActiveSupport::TestCase...
1
Python
Python
make functions in linalg.py accept nestes lists
82909417beb52eea0568fa04f54188ada227d66e
<ide><path>numpy/linalg/linalg.py <ide> def tensorsolve(a, b, axes=None): <ide> <ide> Parameters <ide> ---------- <del> a : array, shape b.shape+Q <add> a : array-like, shape b.shape+Q <ide> Coefficient tensor. Shape Q of the rightmost indices of a must <ide> be such that a is 'square', i...
2
Text
Text
fix links in vm.md
f89f79893d6e15938f9237efe4d2473ab4a65e9f
<ide><path>doc/api/vm.md <ide> associating it with the `sandbox` object is what this document refers to as <ide> [`eval()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval <ide> [`script.runInContext()`]: #vm_script_runincontext_contextifiedsandbox_options <ide> [`script.runInThis...
1
Python
Python
improve error for missing dependency
b2302c0a1ce7bacafdde22039cbd8da9782a3f27
<ide><path>spacy/cli/project/run.py <ide> def project_run( <ide> for dep in cmd.get("deps", []): <ide> if not (project_dir / dep).exists(): <ide> err = f"Missing dependency specified by command '{subcommand}': {dep}" <add> err_help = "Maybe you forgot to run the 'proje...
1
PHP
PHP
fix breakpoint docblock
9c4581394fd57db1adb83d53910e317f335c062d
<ide><path>src/basics.php <ide> function stackTrace(array $options = []): void <ide> * Works the same way as eval(\Psy\sh()); <ide> * psy/psysh must be loaded in your project <ide> * <del> * @link http://psysh.org/ <ide> * ``` <ide> * eval(breakpoint()); <ide> * ``` <add> * <ide> ...
1
Text
Text
fix broken link [ci skip]
864469018c4763cb84caf7f15672c7b0ad6383ca
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> being used, you can update your form to use the `PUT` method instead: <ide> <%= form_for [ :update_name, @user ], method: :put do |f| %> <ide> ``` <ide> <del>For more on PATCH and why this change was made, see [this post](http://weblog.rubyonrails.org/2012/2/25...
1
Text
Text
update yml text and comments
0d9ba84d9be99c3ae2ad4655fc04de96d66ddb93
<ide><path>curriculum/challenges/spanish/01-responsive-web-design/css-grid/add-columns-with-grid-template-columns.spanish.md <ide> localeTitle: Añadir columnas con cuadrícula-plantilla-columnas <ide> --- <ide> <ide> ## Description <del><section id="description"> Simplemente crear un elemento de cuadrícula no te lleva ...
1
Ruby
Ruby
extract response setting to a method
46eba6c30ff05b5f7e8e6015e33ddf0a385fce6f
<ide><path>actionpack/lib/action_controller/metal/rack_delegation.rb <ide> module RackDelegation <ide> :status, :location, :content_type, :to => "@_response" <ide> <ide> def dispatch(action, request) <del> @_response = ActionDispatch::Response.new <del> @_response.request = request <...
1
Text
Text
remove assertions about assert
42e73ae32692ff9fd0998043e257d980c04afd77
<ide><path>doc/api/assert.md <ide> > Stability: 3 - Locked <ide> <ide> The `assert` module provides a simple set of assertion tests that can be used to <del>test invariants. The module is intended for internal use by Node.js, but can be <del>used in application code via `require('assert')`. However, `assert` is not a ...
1
Javascript
Javascript
display localised era for `g` format codes
2b4dfa9e2b63d7ebb78f3b0fd3439d18f932e1cd
<ide><path>src/ng/filter/filters.js <ide> function ampmGetter(date, formats) { <ide> return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1]; <ide> } <ide> <add>function eraGetter(date, formats) { <add> return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1]; <add>} <add> <add>function longEraG...
2
Mixed
Text
document the potential insecurity of --net host
ed5054389aa7cd0456bfdf1d940d3cdad0313f8f
<ide><path>docs/sources/articles/networking.md <ide> values. <ide> **not** let the container reconfigure the host network stack — that <ide> would require `--privileged=true` — but it does let container <ide> processes open low-numbered ports like any other root process. <add> It also allows the containe...
3
Ruby
Ruby
pass the correct value as json
e7a7e174c1f8d31687676d74dabc6b464ffd81cb
<ide><path>actionpack/test/controller/test_case_test.rb <ide> def test_parsed_body_without_as_option <ide> end <ide> <ide> def test_parsed_body_with_as_option <del> post :render_json, body: { foo: "heyo" }, as: :json <add> post :render_json, body: { foo: "heyo" }.to_json, as: :json <ide> assert_equal({ "...
1
Javascript
Javascript
tack the raw function onto bound helpers
3df5ddfd4f01555da31a18d6b8d2fbbf82b11ea3
<ide><path>packages/ember-handlebars/lib/ext.js <ide> Ember.Handlebars.registerHelper('helperMissing', function(path, options) { <ide> Ember.Handlebars.registerBoundHelper = function(name, fn) { <ide> var dependentKeys = slice.call(arguments, 2); <ide> <del> Ember.Handlebars.registerHelper(name, function() { <add> ...
1
Text
Text
improve language in python-2-vs-python-3
c8ddc22d57f0e2fe5d166e4a284059de78734aa0
<ide><path>guide/english/python/python-2-vs-python-3/index.md <ide> title: Python 2 vs Python 3 <ide> --- <ide> We aren't taking a side in the debate. If you are interested in knowing more about it for academic purposes, perhaps <a href='https://wiki.python.org/moin/Python2orPython3' target='_blank' rel='nofollow'>this...
1
Java
Java
add blockingsubscribe javadoc clarifications
d57af5af671f13d29177984c57092379da30f9b3
<ide><path>src/main/java/io/reactivex/Flowable.java <ide> public final Future<T> toFuture() { <ide> <ide> /** <ide> * Runs the source Flowable to a terminal event, ignoring any values and rethrowing any exception. <add> * <p> <add> * Note that calling this method will block the caller thread until the...
2
PHP
PHP
add missing docblock
f546835092206037ce1d9b4103be204e2e9272cc
<ide><path>src/Illuminate/Foundation/Console/PresetCommand.php <ide> class PresetCommand extends Command <ide> * Execute the console command. <ide> * <ide> * @return void <add> * <add> * @throws \InvalidArgumentException <ide> */ <ide> public function handle() <ide> {
1
Javascript
Javascript
add support for generics to tooling
f72d36b9cb21cff4e835929e9b5c2db3b5ac4921
<ide><path>lib/optimize/SplitChunksPlugin.js <ide> const SortableSet = require("../util/SortableSet"); <ide> const deterministicGrouping = require("../util/deterministicGrouping"); <ide> const contextify = require("../util/identifier").contextify; <ide> <del>/** @typedef {import("../Compiler")} Compiler */ <ide> /** @...
2
Text
Text
fix typo in readme.md
e78324a742fb2903e7799169eb212e4d7c71fef5
<ide><path>packages/next/README.md <ide> export default (req, res) => { <ide> <ide> - `res` refers to [NextApiResponse](https://github.com/zeit/next.js/blob/v9.0.0/packages/next-server/lib/utils.ts#L168-L178) which extends [http.ServerResponse](https://nodejs.org/api/http.html#http_class_http_serverresponse) <ide> <d...
1
Ruby
Ruby
fix rubocop warnings
128729988ed8feadbdac31d4edd613c5afa64d24
<ide><path>Library/Homebrew/cmd/commands.rb <ide> def internal_developer_commands <ide> end <ide> <ide> def external_commands <del> paths.reduce([]) do |cmds, path| <add> paths.each_with_object([]) do |path, cmds| <ide> Dir["#{path}/brew-*"].each do |file| <ide> next unless File.executable?(fil...
1
Javascript
Javascript
support unbind self within handler
2f91cfd0d2986899c38641100c1851b2f9d3888a
<ide><path>src/jqLite.js <ide> function createEventHandler(element, events) { <ide> return event.defaultPrevented || event.returnValue === false; <ide> }; <ide> <del> forEach(events[type || event.type], function(fn) { <add> // Copy event handlers in case event handlers array is modified during executio...
2
PHP
PHP
fix docblock type
6bfeebf0a8cf426c94a6ac0154738fb0c1fc94da
<ide><path>src/Utility/Hash.php <ide> public static function remove(array $data, string $path): array <ide> * @param array $data Array from where to extract keys and values <ide> * @param string|array $keyPath A dot-separated string. <ide> * @param string|array|null $valuePath A dot-separated string. <de...
1
Go
Go
add separate overlay2 driver
23e5c94cfb26eb72c097892712d3dbaa93ee9bc0
<ide><path>daemon/graphdriver/overlay2/mount.go <add>// +build linux <add> <add>package overlay2 <add> <add>import ( <add> "bytes" <add> "encoding/json" <add> "flag" <add> "fmt" <add> "os" <add> "runtime" <add> "syscall" <add> <add> "github.com/docker/docker/pkg/reexec" <add>) <add> <add>func init() { <add> reexec.Regi...
6
PHP
PHP
change welcome splash
09d028f14bfcde9061d6622c9d1d0d9775792e6e
<ide><path>resources/views/welcome.blade.php <ide> margin: 0; <ide> padding: 0; <ide> width: 100%; <del> color: #B0BEC5; <ide> display: table; <ide> font-weight: 100; <ide> font-family: 'Lato'; <ide> ...
1
Text
Text
fix grammatical errors
19862aa5912331104bf6c96e5f733aba371e20bf
<ide><path>guide/english/design-patterns/object-oriented-programming/index.md <ide> In procedural programming, we simply create variables and change them when requi <ide> <ide> Another extremely useful concept is that of inheritance. The idea is that a class can inherit attributes and behaviour from a base class. For ...
1
PHP
PHP
apply fixes from styleci
7c2413712edcac15d82e1e9f359e8234788bf798
<ide><path>src/Illuminate/Container/Container.php <ide> use ArrayAccess; <ide> use LogicException; <ide> use ReflectionClass; <del>use ReflectionFunction; <ide> use ReflectionParameter; <ide> use Illuminate\Contracts\Container\BindingResolutionException; <ide> use Illuminate\Contracts\Container\Container as ContainerCo...
1
Go
Go
add diskusage method to systemapiclient
f830d52dd022f3a5c234908f9c8654ad279d6f6a
<ide><path>client/disk_usage.go <add>package client <add> <add>import ( <add> "encoding/json" <add> "fmt" <add> <add> "github.com/docker/docker/api/types" <add> "golang.org/x/net/context" <add>) <add> <add>// DiskUsage requests the current data usage from the daemon <add>func (cli *Client) DiskUsage(ctx context.Context...
1
Python
Python
correct max position for squad and tfds
a1f1dce0ae511ef7766c6b6a8f5ebf9118279e73
<ide><path>transformers/data/processors/squad.py <ide> def __init__( <ide> # Start end end positions only has a value during evaluation. <ide> if start_position_character is not None and not is_impossible: <ide> self.start_position = char_to_word_offset[start_position_character] <del> ...
1