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
use ascii order for md refs
ccc50a982044812e9e307a4626442c564cd60cf8
<ide><path>doc/api/assert.md <ide> argument. <ide> [SameValue Comparison]: https://tc39.github.io/ecma262/#sec-samevalue <ide> [Strict Equality Comparison]: https://tc39.github.io/ecma262/#sec-strict-equality-comparison <ide> [`AssertionError`]: #assert_class_assert_assertionerror <add>[`CallTracker`]: #assert_class_as...
17
PHP
PHP
allow pgsql enum fields /w reserved words as names
9a4ae9e13f126aedb4e22d9d3e2a7fdb52d6e14a
<ide><path>src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php <ide> protected function typeEnum(Fluent $column) <ide> { <ide> $allowed = array_map(function($a) { return "'".$a."'"; }, $column->allowed); <ide> <del> return "varchar(255) check ({$column->name} in (".implode(', ', $allowed)."))"; <add> retu...
2
Mixed
Javascript
add createrequirefunction method
246f6332e5a5f395d1e39a3594ee5d6fe869d622
<ide><path>doc/api/modules.md <ide> by the [module wrapper][]. To access it, require the `Module` module: <ide> const builtin = require('module').builtinModules; <ide> ``` <ide> <add>### module.createRequireFromPath(filename) <add><!-- YAML <add>added: REPLACEME <add>--> <add> <add>* `filename` {string} Filename to be...
3
Ruby
Ruby
make enhanced routing concerns more tell-don't-ask
05136e5c0b3d7b841bdec53847879321309604d3
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def name_for_action(as, action) #:nodoc: <ide> end <ide> end <ide> <del> # Routing Concerns allows you to declare common routes that can be reused <add> # Routing Concerns allow you to declare common routes that can be reused <...
2
Text
Text
add privacy consideration note
f3e1c59c920a38533290fd5f4ac52cd5252f90bb
<ide><path>curriculum/challenges/english/09-information-security/information-security-projects/stock-price-checker.md <ide> When you are done, make sure a working demo of your project is hosted somewhere <ide> 3. You will add any security features to `server.js` <ide> 4. You will create all of the functional tests in...
1
Python
Python
fix exception causes in __init__.py
5dd1fe6d2335cd56d5e93b5a3f9484456b961a4f
<ide><path>numpy/__init__.py <ide> def _sanity_check(): <ide> "by incorrect BLAS library being linked in, or by mixing " <ide> "package managers (pip, conda, apt, ...). Search closed " <ide> "numpy issues for similar problems.") <del> raise RuntimeErro...
1
Python
Python
fix broken main
86d40a95c4b6085ddea7b4d14bb6d91c126138dc
<ide><path>setup.py <ide> def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version <ide> 'jira', <ide> 'jsondiff', <ide> 'mongomock', <del> 'moto[glue]>=3.1.6', <add> # Version 3.1.10 is breaking main bump to 3.1.11 when released. <add> # Fix already merged but was not relea...
1
Text
Text
add voltrexmaster to collaborators
dd7a92990f0700af2e3f044f2d72f391fd02bde8
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Rich Trott** \<rtrott@gmail.com> (he/him) <ide> * [vdeturckheim](https://github.com/vdeturckheim) - <ide> **Vladimir de Turckheim** \<vlad2t@hotmail.com> (he/him) <add>* [VoltrexMaster](https://github.com/VoltrexMast...
1
Ruby
Ruby
fix enum predicate methods on object enum keys
24416e5df411b841bb49f1469323cdb5061ed73e
<ide><path>activerecord/lib/active_record/enum.rb <ide> def enum(definitions) <ide> <ide> value_method_name = "#{prefix}#{label}#{suffix}" <ide> value_method_names << value_method_name <del> define_enum_methods(name, value_method_name, label, enum_scopes) <add> define_enum...
2
Ruby
Ruby
use _read_attribute(primary_key) instead of id
b584cc68fc28492147ed3ed127ad8a7441ca8161
<ide><path>activerecord/lib/active_record/persistence.rb <ide> def touch(*names, time: nil) <ide> <ide> clear_attribute_changes(changes.keys) <ide> primary_key = self.class.primary_key <del> scope = self.class.unscoped.where(primary_key => id) <add> scope = self.class.unscoped.where(prima...
1
Java
Java
fix the typos
0cb8978c1d21363eac53299272295567efb13a55
<ide><path>src/main/java/io/reactivex/rxjava3/schedulers/Schedulers.java <ide> public static Scheduler single() { <ide> * because such circumstances prevent RxJava from progressing flow-related activities correctly. <ide> * If the {@link Executor#execute(Runnable)} or {@link ExecutorService#submit(Callable)} ...
1
Javascript
Javascript
fix a spacing issue
b8a5b76db5cd20dfba5891e9f70de27fe46aa46f
<ide><path>fonts.js <ide> var Font = (function Font() { <ide> <ide> // Character to glyphs mapping <ide> 'cmap': createCMapTable(charstrings.slice(), <del> ('glyphIds' in font) ? font.glyphIds: null), <add> ('glyphIds' in font) ? font.glyphI...
1
Python
Python
honor existing attention mask in tokenzier.pad
4a18337baed89e8cfd524c4b307a93b451ea1ef6
<ide><path>src/transformers/feature_extraction_sequence_utils.py <ide> def _pad( <ide> <ide> needs_to_be_padded = padding_strategy != PaddingStrategy.DO_NOT_PAD and len(required_input) < max_length <ide> <add> if return_attention_mask and "attention_mask" not in processed_features: <add> pro...
7
Go
Go
normalize comment formatting
cbc9de0abe6cf0183e83490866dccb816252c9a1
<ide><path>image/tarexport/tarexport.go <ide> type tarexporter struct { <ide> <ide> // LogImageEvent defines interface for event generation related to image tar(load and save) operations <ide> type LogImageEvent interface { <del> //LogImageEvent generates an event related to an image operation <add> // LogImageEvent g...
1
PHP
PHP
fix scopes on builder helpers
5d4a492e5816227389de4e42fbe8e12e89ce2c7d
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function chunk($count, callable $callback) <ide> */ <ide> public function pluck($column, $key = null) <ide> { <del> $results = $this->query->pluck($column, $key); <add> $results = $this->toBase()->pluck($column, $key); <ide>...
2
Javascript
Javascript
improve error for style mutation
9faf1f39698463cd5220e58a5d325c8e2c006997
<ide><path>src/renderers/dom/shared/ReactDOMComponent.js <ide> function legacyReplaceProps(partialProps, callback) { <ide> } <ide> } <ide> <add>function friendlyStringify(obj) { <add> if (typeof obj === 'object') { <add> if (Array.isArray(obj)) { <add> return '[' + obj.map(friendlyStringify).join(', ') + ']...
2
Ruby
Ruby
add superenv for linux
76bfd0cecbe8ca74af5b8ea35a4a7251dd1fc729
<ide><path>Library/Homebrew/build.rb <ide> def expand_deps <ide> def install <ide> formula_deps = deps.map(&:to_formula) <ide> keg_only_deps = formula_deps.select(&:keg_only?) <add> run_time_deps = deps.reject(&:build?).map(&:to_formula) <ide> <ide> formula_deps.each do |dep| <ide> fixopt(dep) u...
5
Python
Python
fix another signature formatting issue
ad9cd295863cdc7a96f219574b15cd2f03189693
<ide><path>doc/sphinxext/autosummary.py <ide> def append_row(*column_texts): <ide> sig = re.sub(r'=[^,)]+,', ',', sig) <ide> sig = re.sub(r'=[^,)]+\)$', '])', sig) <ide> # shorten long strings <del> sig = re.sub(r'(\[.{16,16}[^,)]*?),.*?\]\)', r'\1, ...])',...
1
Text
Text
add example for model2model in quickstart
4e3f745ba4e754e415c184d53c874031101d263b
<ide><path>docs/source/quickstart.md <ide> sequence = tokenizer.decode(generated) <ide> print(sequence) <ide> ``` <ide> <del>The model only requires a single token as input as all the previous tokens' key/value pairs are contained in the `past`. <ide>\ No newline at end of file <add>The model only requires a single to...
1
Text
Text
fix minor typo in `update` `$push` directive
5fc2ecbe92c936128db32dc868467121045fb2c6
<ide><path>docs/docs/09.6-update.md <ide> While this is fairly performant (since it only shallow copies `log n` objects an <ide> ```javascript <ide> var newData = React.addons.update(myData, { <ide> x: {y: {z: {$set: 7}}}, <del> a: {b: {$push: [7]}} <add> a: {b: {$push: [9]}} <ide> }); <ide> ``` <ide>
1
Python
Python
fix invalid vdot documentation
eca8f94e294003336d901b7e718375fad0c2619c
<ide><path>numpy/add_newdocs.py <ide> dot(`a`, `b`). If the first argument is complex the complex conjugate <ide> of the first argument is used for the calculation of the dot product. <ide> <del> For 2-D arrays it is equivalent to matrix multiplication, and for 1-D <del> arrays to inner product of vecto...
1
Javascript
Javascript
pass app bundle identifiers to electron-packager
dc7973f1e7e81240abdd9a2e8aa89ffac9fd7019
<ide><path>script/lib/package-application.js <ide> module.exports = function () { <ide> console.log(`Running electron-packager on ${CONFIG.intermediateAppPath} with app name "${appName}"`) <ide> return runPackager({ <ide> 'app-version': CONFIG.appMetadata.version, <add> 'app-bundle-id': 'com.github.atom', <i...
1
Javascript
Javascript
add code example for emberarray.addarrayobserver
f4ba42ab54ef660e62565b05b3556b560b79d72b
<ide><path>packages/@ember/-internals/runtime/lib/mixins/array.js <ide> const ArrayMixin = Mixin.create(Enumerable, { <ide> `willChange` and `didChange` option. <ide> @return {EmberArray} receiver <ide> @public <add> @example <add> import Service from '@ember/service'; <add> <add> export ...
1
Javascript
Javascript
remove duplicate code
bad65ea69dc4032384bfdd08390a566f4666f457
<ide><path>lib/_http_server.js <ide> function onParserExecuteCommon(server, socket, parser, state, ret, d) { <ide> <ide> if (ret instanceof Error) { <ide> prepareError(ret, parser, d); <del> ret.rawPacket = d || parser.getCurrentBuffer(); <ide> debug('parse error', ret); <ide> socketOnError.call(socke...
1
Javascript
Javascript
use custom element on workspace-element
e362a8f0f722d9be9fb8e944c573797b658482f3
<ide><path>src/workspace-element.js <ide> const scrollbarStyle = require('scrollbar-style'); <ide> const _ = require('underscore-plus'); <ide> <ide> class WorkspaceElement extends HTMLElement { <del> attachedCallback() { <add> connectedCallback() { <ide> this.focus(); <ide> this.htmlElement = document.queryS...
2
Javascript
Javascript
add titleplaceholder in template.config.js
8ffa180d80b9c9acb76a0631b5a709d2c0adcd86
<ide><path>template.config.js <ide> <ide> module.exports = { <ide> placeholderName: 'HelloWorld', <add> titlePlaceholder: 'Hello App Display Name', <ide> templateDir: './template', <ide> };
1
Javascript
Javascript
increase test coverage for fs/promises.js
fcc46ee5a9ea9fdc66934cbba6a5e7b1486bb1aa
<ide><path>test/parallel/test-fs-promises.js <ide> function verifyStatObject(stat) { <ide> stats = await stat(dest); <ide> verifyStatObject(stats); <ide> <add> stats = await handle.stat(); <add> verifyStatObject(stats); <add> <ide> await fdatasync(handle); <add> await handle.datasync(); <ide> ...
1
Python
Python
feature qubole hook support headers
996965aad9874e9c6dad0a1f147d779adc462278
<ide><path>airflow/providers/qubole/hooks/qubole.py <ide> def get_results( <ide> cmd_id = ti.xcom_pull(key="qbol_cmd_id", task_ids=self.task_id) <ide> self.cmd = self.cls.find(cmd_id) <ide> <add> include_headers_str = 'true' if include_headers else 'false' <ide> self.cmd.get_resu...
4
Javascript
Javascript
remove duplicate checks
0e7e91f39773f7f7936ce3dcc602091680ea2943
<ide><path>lib/internal/quic/util.js <ide> function validateQuicStreamOptions(options = {}) { <ide> <ide> function validateQuicEndpointOptions(options = {}, name = 'options') { <ide> validateObject(options, name); <del> if (options === null || typeof options !== 'object') <del> throw new ERR_INVALID_ARG_TYPE('op...
1
Text
Text
fix example code
8faa78053e694dabda6ad0f232ffd2d117c0e477
<ide><path>src/ORM/README.md <ide> $cacheConfig = [ <ide> 'duration' => '+1 year', <ide> 'serialize' => true, <ide> 'prefix' => 'orm_', <del>], <add>]; <ide> Cache::setConfig('_cake_model_', $cacheConfig); <ide> ``` <ide>
1
Javascript
Javascript
add test for multiple bundles
53a339a45970252a3e0c4c91bd02061f2e2ed099
<ide><path>local-cli/util/__mocks__/fs.js <ide> fs.close.mockImplementation((fd, callback = noop) => { <ide> <ide> let filesystem = {}; <ide> <add>fs.mock = { <add> clear() { <add> filesystem = {}; <add> }, <add>}; <add> <ide> fs.createReadStream.mockImplementation(filepath => { <ide> if (!filepath.startsWith(...
1
Javascript
Javascript
fix mmdphysics _updateboneposition()
d7ed0a01cd4a93ad62f6fc5f1c6e957e2253896d
<ide><path>examples/js/animation/MMDPhysics.js <ide> THREE.MMDPhysics = ( function () { <ide> _getWorldTransformForBone: function () { <ide> <ide> var manager = this.manager; <del> <del> var tr = manager.allocTransform(); <del> this.body.getMotionState().getWorldTransform( tr ); <del> var tr2 = manager.mult...
1
Text
Text
update doc for `brew livecheck`
07ac5bf3b60278dbff15d13dbd798d342588347e
<ide><path>docs/Brew-Livecheck.md <ide> # `brew livecheck` <ide> <del>The `brew livecheck` command finds the newest version of a formula or cask's software by checking upstream. Livecheck has [strategies](https://rubydoc.brew.sh/Homebrew/Livecheck/Strategy.html) to identify versions from various sources, such as Git r...
1
PHP
PHP
set the entityclass for the mock
19e00a9f7067ccd4d4e88eecef3233b330a546ba
<ide><path>src/TestSuite/TestCase.php <ide> public function getMockForModel($alias, array $methods = array(), array $options <ide> $options += TableRegistry::config($alias); <ide> <ide> $mock = $this->getMock($options['className'], $methods, [$options]); <add> <add> if (empty($options['entityClass']) && $mock->en...
1
Javascript
Javascript
fix markdown formatting
4cac4c78c0b53fb5b787894f7e5c1683334e11c4
<ide><path>packages/ember-testing/lib/helpers/pause_test.js <ide> export function resumeTest() { <ide> Pauses the current test - this is useful for debugging while testing or for test-driving. <ide> It allows you to inspect the state of your application at any point. <ide> Example (The test will pause before clickin...
1
Java
Java
use original query string of forwarded request
bf83e4e8612512ef51272d8a7dd8533686e8a4e4
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/support/AbstractFlashMapManager.java <ide> private FlashMap getMatchingFlashMap(List<FlashMap> allMaps, HttpServletRequest <ide> */ <ide> protected boolean isFlashMapForRequest(FlashMap flashMap, HttpServletRequest request) { <ide> String expec...
2
PHP
PHP
use mutable date for date base class
037e1d63969b547fa5fc186a56b26fbf2b927cd9
<ide><path>src/Database/Type/DateType.php <ide> namespace Cake\Database\Type; <ide> <ide> use Cake\Database\Driver; <del>use DateTimeImmutable; <add>use DateTime; <ide> <ide> class DateType extends DateTimeType <ide> { <ide><path>src/I18n/Date.php <ide> */ <ide> namespace Cake\I18n; <ide> <del>use Cake\Chronos\Date...
2
Javascript
Javascript
add new help rooms and logic
eebd0cf76377423395cfc239b375643a5a060109
<ide><path>index.js <ide> destroy() <ide> var isBeta = !!challengeSpec.isBeta; <ide> var isComingSoon = !!challengeSpec.isComingSoon; <ide> var fileName = challengeSpec.fileName; <add> var helpRoom = challengeSpec.helpRoom || 'Help'; <add> <ide> console.log('parsed %s successfully', block); <ide> <i...
1
Text
Text
add release notes for 1.1.4 and 1.0.6
7729b58edaee80503cb6ed704f51780436f6072b
<ide><path>CHANGELOG.md <add><a name="1.1.4"></a> <add># 1.1.4 quantum-manipulation (2013-04-03) <add> <add>_Note: 1.1.x releases are [considered unstable](http://blog.angularjs.org/2012/07/angularjs-10-12-roadmap.html). <add>They pass all tests but we reserve the right to change new features/apis in between minor rele...
1
Text
Text
use "sudo" for dockerd examples
87b174080bd8b1b9ea2bbfad8ef35a4c0dfe8ad4
<ide><path>docs/reference/commandline/dockerd.md <ide> find examples of using Systemd socket activation with Docker and Systemd in the <ide> You can configure the Docker daemon to listen to multiple sockets at the same <ide> time using multiple `-H` options: <ide> <del> # listen using the default unix socket, and o...
1
Text
Text
add chalker as collaborator
428526544cdd388d0dc837ac68e56348bce0fc9a
<ide><path>README.md <ide> information about the governance of the io.js project, see <ide> * **Oleg Elifantiev** ([@Olegas](https://github.com/Olegas)) &lt;oleg@elifantiev.ru&gt; <ide> * **Domenic Denicola** ([@domenic](https://github.com/domenic)) &lt;d@domenic.me&gt; <ide> * **Rich Trott** ([@Trott](https://github.c...
1
Text
Text
use serial comma in pull request doc
93d10d62d9d7b75aee4c12ad1eb0c48f6fe8788a
<ide><path>doc/contributing/pull-requests.md <ide> Node.js has many channels on the <ide> [OpenJS Foundation Slack](https://slack-invite.openjsf.org/). Interesting <ide> channels are: <ide> [#nodejs](https://openjs-foundation.slack.com/archives/CK9Q4MB53) for general <del>help, questions and discussions. <add>help, que...
1
Javascript
Javascript
expose less internals for testutils
3c1dcd349a8e4205322c296b1db8c313ed06b5ce
<ide><path>packages/events/__tests__/ResponderEventPlugin-test.internal.js <ide> describe('ResponderEventPlugin', () => { <ide> beforeEach(() => { <ide> jest.resetModules(); <ide> <del> const ReactDOM = require('react-dom'); <ide> const ReactDOMUnstableNativeDependencies = require('react-dom/unstable-nati...
5
PHP
PHP
apply fixes from styleci
9e5226ecc28f960cba1bd38b6d1d82a52e072dc3
<ide><path>src/Illuminate/Database/Eloquent/Relations/MorphToMany.php <ide> <ide> use Illuminate\Database\Eloquent\Builder; <ide> use Illuminate\Database\Eloquent\Model; <del>use Illuminate\Database\Eloquent\Relations\MorphPivot; <ide> use Illuminate\Support\Arr; <ide> <ide> class MorphToMany extends BelongsToMany
1
PHP
PHP
add test for savemany + validate=false
3b867a048ec8887da13365ed8d0c7882a42700fe
<ide><path>lib/Cake/Test/Case/Model/ModelWriteTest.php <ide> public function testSaveMany() { <ide> $this->assertEquals($expected, $result); <ide> } <ide> <add>/** <add> * Test SaveMany with validate=false. <add> * <add> * @return void <add> */ <add> public function testSaveManyValidateFalse() { <add> $this->loadF...
1
Ruby
Ruby
freeze columns only once per result
da400fbb0ba6a130237d17cdd58c860be02294ad
<ide><path>activerecord/lib/active_record/result.rb <ide> def initialize_copy(other) <ide> <ide> private <ide> def hash_rows <del> @hash_rows ||= @rows.map { |row| <del> # We freeze the strings to prevent them getting duped when <del> # used as keys in ActiveRecord::Model's @attributes hash ...
1
Go
Go
fix wrong template value passed to lxc conf
7b4f73ee6c2a06532124e77ec5f4972f078a7d5c
<ide><path>daemon/execdriver/lxc/lxc_template.go <ide> lxc.cgroup.memory.soft_limit_in_bytes = {{.Resources.Memory}} <ide> lxc.cgroup.memory.memsw.limit_in_bytes = {{$memSwap}} <ide> {{end}} <ide> {{end}} <del>{{if .Resources.KernelMemory}} <del>lxc.cgroup.memory.kmem.limit_in_bytes = {{.Resources.Memory}} <add>{{if gt...
1
Javascript
Javascript
make safe primordials safe to iterate
0a5969c62a75ace6edafd3f7226e96c0d8ba24a6
<ide><path>lib/internal/per_context/primordials.js <ide> function copyPrototype(src, dest, prefix) { <ide> } <ide> } <ide> <add>const createSafeIterator = (factory, next) => { <add> class SafeIterator { <add> constructor(iterable) { <add> this._iterator = factory(iterable); <add> } <add> next() { <add...
4
Go
Go
improve last log output
2a20e852032339b4c91a01748119701c7ada234d
<ide><path>buildfile.go <ide> func (b *buildFile) Build(context io.Reader) (string, error) { <ide> defer func() { <ide> // If we have an error and a container, the display the logs <ide> if b.lastContainer != nil { <del> fmt.Fprintf(b.out, "Logs from last container (%s):\n", b.lastContainer.ShortID()) <add> fm...
1
Python
Python
use exceptions intead of returning tuple
43e9a462b66c768e8e88905f42affe34f17c392b
<ide><path>airflow/hooks/hive_hooks.py <ide> def __init__( <ide> self.use_beeline = conn.extra_dejson.get('use_beeline', False) <ide> self.conn = conn <ide> <del> def run_cli(self, hql, schema=None, test=False): <add> def run_cli(self, hql, schema=None, verbose=True): <ide> """ <ide> ...
1
PHP
PHP
make env variables for aws
7cf27b2146ff3b8fb7e643fd83e932bb61801fbd
<ide><path>config/filesystems.php <ide> <ide> 's3' => [ <ide> 'driver' => 's3', <del> 'key' => 'your-key', <del> 'secret' => 'your-secret', <del> 'region' => 'your-region', <del> 'bucket' => 'your-bucket', <add> 'key' => env('AWS_KEY'), <add> ...
1
Javascript
Javascript
mitigate regex exceeding 80 chars
ad664eae7d7a222ae49f97cd5344f3b6be2b4d7b
<ide><path>test/addons-napi/test_properties/test.js <ide> 'use strict'; <ide> const common = require('../../common'); <ide> const assert = require('assert'); <del>const readonlyErrorRE = /^TypeError: Cannot assign to read only property '.*' of object '#<Object>'$/; <add>const readonlyErrorRE = <add> /^TypeError: Canno...
6
Javascript
Javascript
remove unused dependency on reactmount
74cfc9c2741a0e3a4fe42d54d34018b6e272c507
<ide><path>src/core/ReactComponent.js <ide> var ReactCurrentOwner = require('ReactCurrentOwner'); <ide> var ReactDOMIDOperations = require('ReactDOMIDOperations'); <ide> var ReactID = require('ReactID'); <del>var ReactMount = require('ReactMount'); <ide> var ReactOwner = require('ReactOwner'); <ide> var ReactReconcileT...
1
Javascript
Javascript
replace var with let/const
03bb272c5adcfcc5257faf17ff49282877bbf5cb
<ide><path>lib/events.js <ide> const { <ide> ReflectOwnKeys, <ide> } = primordials; <ide> <del>var spliceOne; <add>let spliceOne; <ide> <ide> const { <ide> kEnhanceStackBeforeInspector, <ide> EventEmitter.prototype._maxListeners = undefined; <ide> <ide> // By default EventEmitters will print a warning if more th...
2
Go
Go
fix external volume error to pass validation
72366869875f986fb0b22bcd66ce0fa5ed6288f9
<ide><path>cli/compose/loader/loader.go <ide> import ( <ide> units "github.com/docker/go-units" <ide> shellwords "github.com/mattn/go-shellwords" <ide> "github.com/mitchellh/mapstructure" <add> "github.com/pkg/errors" <ide> yaml "gopkg.in/yaml.v2" <ide> ) <ide> <ide> func LoadNetworks(source map[string]interface{}...
1
Python
Python
force use_cache to be false in pytorch
6a5472a8e1d75e95e8fb4d0bdf8ddf9b237bac03
<ide><path>src/transformers/models/bart/modeling_bart.py <ide> def forward( <ide> return_dict = return_dict if return_dict is not None else self.config.use_return_dict <ide> <ide> if labels is not None: <add> if use_cache: <add> logger.warning("The `use_cache` argument is chan...
9
Python
Python
remove debugging code
bcaa1793226b8dab929d8ccc786c23854f5886e0
<ide><path>numpy/testing/noseclasses.py <ide> def loadTestsFromModule(self, module): <ide> p2 = p[-1] <ide> test.globs[p2] = __import__(pkg_name, test.globs, {}, [p2]) <ide> <del> print 'additional import for %s: from %s import %s' % (test.filename, p1, p2) <del> ...
1
Java
Java
deprecate mutable methods of methodparameter
62a3e414734b24d1801b34223df5faaae9e32b5f
<ide><path>spring-core/src/main/java/org/springframework/core/GenericTypeResolver.java <ide> /* <del> * Copyright 2002-2018 the original author or authors. <add> * Copyright 2002-2019 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not u...
7
Javascript
Javascript
improve `unlink` on rnpm
4969f26252bb8774bfefb7f3b3bd63e7f5415edd
<ide><path>local-cli/link/unlink.js <ide> function unlink(args, config) { <ide> <ide> const allDependencies = getDependencyConfig(config, getProjectDependencies()); <ide> const otherDependencies = filter(allDependencies, d => d.name !== packageName); <del> const thisDependency = find(allDependencies, d => d.name ...
1
Python
Python
fix issue #253
f560f52c4c4aa00d84e9c4dfd0eed545c7577074
<ide><path>setup.py <ide> ('share/man/man1', ['docs/man/glances.1']) <ide> ] <ide> <del>if hasattr(sys, 'real_prefix') or ('bsd' or 'darwin' in sys.platform): <add>if hasattr(sys, 'real_prefix') or (sys.platform in ('bsd', 'darwin')): <ide> etc_path = os.path.join(sys.prefix, 'etc', 'glances') <ide> if not has...
1
Python
Python
add joyent testing
cb213b9f737e40a89c7670aa8d3d8fafe84bb9ad
<ide><path>libcloud/test/container/test_joyent.py <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file to You und...
1
PHP
PHP
move unlocked field resetting to end()
f2bc2a172895adfd43bd5ce519ec359f983c6b90
<ide><path>src/View/Helper/FormHelper.php <ide> public function create($model = null, array $options = []) <ide> $htmlAttributes += $options; <ide> <ide> $this->fields = []; <del> $this->_unlockedFields = []; <ide> if ($this->requestType !== 'get') { <ide> $append .= $this->_...
2
Javascript
Javascript
use ast builders in each/with transforms
af8a39c6220d678e037b74acbc574586fb7f30be
<ide><path>packages/ember-htmlbars/lib/plugins/transform-each-in-to-hash.js <ide> import Walker from "htmlbars-syntax/walker"; <add>import b from "htmlbars-syntax/builders"; <ide> <ide> /** <ide> An HTMLBars AST transformation that replaces all instances of <ide> export default function(ast) { <ide> if (validate...
2
Ruby
Ruby
remove unused method `namespaced_file_path`
a0d4d78884a6e7c89b582e9555ed2bb30db9d438
<ide><path>railties/lib/rails/generators/named_base.rb <ide> def regular_class_path <ide> @class_path <ide> end <ide> <del> def namespaced_file_path <del> @namespaced_file_path ||= namespaced_class_path.join("/") <del> end <del> <ide> def namespaced_class_path <ide> ...
1
Python
Python
add triu_indices and tril_indices
2951e733d9ffa03276d6859721b57209234bea12
<ide><path>benchmarks/benchmarks/bench_core.py <ide> def time_triu_l10x10(self): <ide> def time_tril_l10x10(self): <ide> np.tril(self.l10x10) <ide> <add> def time_triu_indices_500(self): <add> np.triu_indices(500) <add> <add> def time_tril_indices_500(self): <add> np.tril_indices(500) <...
1
Go
Go
use server.url() instead of server.url
40c8e78757a75a9e251223f563fc5adb2bc9bf99
<ide><path>integration-cli/docker_cli_build_test.go <ide> func TestBuildLastModified(t *testing.T) { <ide> ADD %s/file / <ide> RUN ls -le /file` <ide> <del> dockerfile := fmt.Sprintf(dFmt, server.URL) <add> dockerfile := fmt.Sprintf(dFmt, server.URL()) <ide> <ide> if _, out, err = buildImageWithOut(name, dockerfile,...
1
Python
Python
add __repr__ to paramsdict class
df388a3d5364b748993e61b522d0b68ff8b8124a
<ide><path>airflow/models/param.py <ide> def __delitem__(self, v: str) -> None: <ide> def __iter__(self): <ide> return iter(self.__dict) <ide> <add> def __repr__(self): <add> return repr(self.dump()) <add> <ide> def __setitem__(self, key: str, value: Any) -> None: <ide> """ <ide> ...
2
PHP
PHP
fix broken transaction logic when pdo changes
d2b1bfbbe17bd06c5af8385d1c9e336bfabc834b
<ide><path>src/Illuminate/Database/Connection.php <ide> public function getReadPdo() <ide> */ <ide> public function setPdo($pdo) <ide> { <add> if ($this->transactions >= 1) throw new \RuntimeException("Attempt to change PDO inside running transaction"); <add> <ide> $this->pdo = $pdo; <ide> <ide> return $this;
1
Python
Python
fix typo in code documentation
0224ee0e9da2849ea587a5f5303605d62b0eb765
<ide><path>slim/nets/mobilenet_v1.py <ide> def mobilenet_v1_base(inputs, <ide> inputs: a tensor of shape [batch_size, height, width, channels]. <ide> final_endpoint: specifies the endpoint to construct the network up to. It <ide> can be one of ['Conv2d_0', 'Conv2d_1_pointwise', 'Conv2d_2_pointwise', <del>...
1
Python
Python
add more extension methods to the vsphere driver
a0150609d13f13a14bb3a5bfd029e581e6a0ae31
<ide><path>libcloud/compute/drivers/vsphere.py <ide> def ex_get_resource_pool_name(self, node): <ide> vm = self._get_vm_for_node(node=node) <ide> return vm.get_resource_pool_name() <ide> <add> @wrap_non_libcloud_exceptions <add> def ex_get_hosts(self): <add> """ <add> Retrurn all th...
1
Text
Text
add pipeline badges
5318c87b08b4bf3a55ed53340ca3a0fcc074e61c
<ide><path>README.md <ide> ![freeCodeCamp.org Social Banner](https://s3.amazonaws.com/freecodecamp/wide-social-banner.png) <del>[![Build Status](https://travis-ci.org/freeCodeCamp/freeCodeCamp.svg?branch=staging)](https://travis-ci.org/freeCodeCamp/freeCodeCamp) <add> <ide> [![Pull Requests Welcome](https://img.shields...
1
Javascript
Javascript
convert the text layer builder to es6 syntax
19f56ec5c18aa8c161df9b718faf62d831f67657
<ide><path>web/text_layer_builder.js <ide> import { getGlobalEventBus } from './dom_events'; <ide> import { renderTextLayer } from 'pdfjs-lib'; <ide> <del>var EXPAND_DIVS_TIMEOUT = 300; // ms <add>const EXPAND_DIVS_TIMEOUT = 300; // ms <ide> <ide> /** <ide> * @typedef {Object} TextLayerBuilderOptions <ide> var EXPAN...
1
Ruby
Ruby
call #to_trix_html on rich_text_area_tag value
adc5eb66f861a98da32f7c682155360d5b9a4a52
<ide><path>actiontext/app/helpers/action_text/tag_helper.rb <ide> def rich_text_area_tag(name, value = nil, options = {}) <ide> options[:data][:blob_url_template] = main_app.rails_service_blob_url(":signed_id", ":filename") <ide> <ide> editor_tag = content_tag("trix-editor", "", options) <del> input_t...
3
Javascript
Javascript
remove outdated unittests
ef7f142fb363c289b00cbe22810902600f575e99
<ide><path>test/ExternalModule.unittest.js <ide> module.exports = some/request;`; <ide> hashedText += text; <ide> } <ide> }; <del> externalModule.optional = true; <ide> externalModule.id = 12345678; <ide> externalModule.updateHash(hash); <ide> }); <ide> module.exports = some/request;`; <ide> it(...
2
Text
Text
clarify sti acronym
c18d522642b2570104ed2a58336ea2966e7a58b7
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> While applications should stick to that interface, the actual Zeitwerk loader ob <ide> Rails.autoloaders.main <ide> ``` <ide> <del>That may be handy if you need to preload STIs or configure a custom inflector, for example. <add>That may be handy if you need to ...
1
Javascript
Javascript
extract ember.isempty into ember-metal
d232a68ead674ce5a507a5ab6e86d8499a5ba3c1
<ide><path>packages/ember-metal/lib/computed.js <ide> Ember.computed.not = function(dependentKey) { <ide> Ember.computed.empty = function(dependentKey) { <ide> return Ember.computed(dependentKey, function(key) { <ide> var val = get(this, dependentKey); <del> return val === undefined || val === null || val === ...
5
Text
Text
move forrest norvell to collaborator emeriti list
d33fddb7f43fffedb4f33f62e3d7b2af8a40f60b
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Ali Ijaz Sheikh** &lt;ofrobots@google.com&gt; (he/him) <ide> * [orangemocha](https://github.com/orangemocha) - <ide> **Alexis Campailla** &lt;orangemocha@nodejs.org&gt; <del>* [othiym23](https://github.com/othiym23) - <d...
1
Javascript
Javascript
fix bug when codemirror return function object
856874a7272e2ec2f2eadd307664fb3c9b585409
<ide><path>client/commonFramework/output-display.js <ide> window.common = (function(global) { <ide> codeOutput.setSize('100%', '100%'); <ide> <ide> common.updateOutputDisplay = function updateOutputDisplay(str = '') { <add> if (typeof str === 'function') { <add> str = str.toString(); <add> } <ide> i...
1
Python
Python
create spiralprint.py (#844)
be4150c720187391488786053ac7a13eeb965446
<ide><path>matrix/spiralPrint.py <add>""" <add>This program print the matix in spiral form. <add>This problem has been solved through recursive way. <add> <add> Matrix must satisfy below conditions <add> i) matrix should be only one or two dimensional <add> ii)column of all the row should be equal <a...
1
Javascript
Javascript
use the english json as the schema
e7aa1c5d626f606bbe47769d8383b452daf31834
<ide><path>client/i18n/intro-schema.js <del>/* eslint-disable camelcase */ <del>/* This is used for testing. If an intro.json file doesn't match the <del> * structure here exactly, the tests will fail. <del> */ <del>const introSchema = { <del> 'responsive-web-design': { <del> title: 'Responsive Web Design', <del> ...
7
Java
Java
add processexternalentities support to oxm
edba32b3093703d5e9ed42b5b8ec23ecc1998398
<ide><path>spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMarshaller.java <ide> public void setEncoding(String encoding) { <ide> this.encoding = encoding; <ide> } <ide> <add> @Override <add> protected String getDefaultEncoding() { <add> return this.encoding; <add> } <add> <ide> /** <ide> * Set th...
13
Javascript
Javascript
use graceful-fs directly
36dbe86208cbf89c68921bdbb3f2d2acd9281162
<ide><path>packager/react-packager/src/DependencyResolver/Cache/__tests__/Cache-test.js <ide> jest <ide> }); <ide> <ide> var Promise = require('promise'); <del>var fs = require('fs'); <add>var fs = require('graceful-fs'); <ide> <ide> var Cache = require('../'); <ide> <ide><path>packager/react-packager/src/Dependen...
8
Javascript
Javascript
improve the sorting algorithm for routing
2d26a36f4119ffa0f8b41157dbb2856f27a33420
<ide><path>packages/ember-routing/lib/routable.js <ide> Ember.Routable = Ember.Mixin.create({ <ide> var childStates = get(this, 'childStates'), match; <ide> <ide> childStates = childStates.sort(function(a, b) { <add> var aDynamicSegments = getPath(a, 'routeMatcher.identifiers.length'), <add> bDyn...
1
Text
Text
remove reference to the obsolete chrome extension
cafde93a407ea0a3c6d712b9373bb2c9bb800234
<ide><path>TRIAGING.md <ide> The labels are used later on for planning releases. <ide> <ide> ## Tips ## <ide> <del>* install [github pr helper extension](https://github.com/petebacondarwin/github-pr-helper) and become 356% more productive <ide> * Label "resolution:*" <ide> * these tags can be used for labeling a ...
1
Javascript
Javascript
add falback redirects for external paths
764d0405532ebe2646133b570c351f1963367d66
<ide><path>server/component-passport.js <ide> export default function setupPassport(app) { <ide> Object.keys(passportProviders).map(function(strategy) { <ide> var config = passportProviders[strategy]; <ide> config.session = config.session !== false; <add> <add> // https://stackoverflow.com/q/37430452 <add>...
2
Text
Text
update the dev requirements in readme
2048354c8b72feb35eaa53dcc29e78a111e69cfb
<ide><path>README.md <ide> Is is a great building block for automating distributed systems: large-scale web <ide> <ide> * *Any server*: docker can run on any x64 machine with a modern linux kernel - whether it's a laptop, a bare metal server or a VM. This makes it perfect for multi-cloud deployments. <ide> <del>* *Is...
1
Text
Text
fix typo in n-api.md
12b3e0c1acb937d919fe03f27499a9775ef05bbf
<ide><path>doc/api/n-api.md <ide> Native addons may need to allocate global state of which they make use during <ide> their entire life cycle such that the state must be unique to each instance of <ide> the addon. <ide> <del>To this env, N-API provides a way to allocate data such that its life cycle is <add>To this en...
1
Text
Text
fix the milestone link again
75acdc93bc837b6f7a724c0cec081e8faf36cbfa
<ide><path>docs/topics/release-notes.md <ide> You can determine your currently installed version using `pip freeze`: <ide> <ide> ### 3.0.1 <ide> <del>**Date**: [December 2014][3.0.1][3.0.1-milestone]: <add>**Date**: [December 2014][3.0.1-milestone]. <ide> <ide> * More helpful error message when the default Serialize...
1
PHP
PHP
remove stripe config settings
83d2ecc0e9cca7ae6989134dede4a5653a19430b
<ide><path>config/services.php <ide> |-------------------------------------------------------------------------- <ide> | <ide> | This file is for storing the credentials for third party services such <del> | as Stripe, Mailgun, SparkPost and others. This file provides a sane <add> | as Mailgun, SparkP...
1
Java
Java
use single executor for all tests
2144fe465b58d788b889cf650feaf27df07c786b
<ide><path>rxjava-core/src/test/java/rx/schedulers/ExecutorSchedulerTest.java <ide> import rx.Scheduler; <ide> import rx.internal.util.RxThreadFactory; <ide> <add>import java.util.concurrent.Executor; <ide> import java.util.concurrent.Executors; <ide> <ide> public class ExecutorSchedulerTest extends AbstractScheduler...
1
Text
Text
update readme to use the latest version of vjs
167b7d874c705a504c092e0ccbc79ba19e8cc5f3
<ide><path>README.md <ide> Thanks to the awesome folks over at [Fastly][fastly], there's a free, CDN hosted version of Video.js that anyone can use. Add these tags to your document's `<head>`: <ide> <ide> ```html <del><link href="//vjs.zencdn.net/5.19/video-js.min.css" rel="stylesheet"> <del><script src="//vjs.zencdn....
1
Javascript
Javascript
upgrade basicevaluatedexpression to es6
b1c7d5c8cf09d89b600d42f0d0c522714cd395b0
<ide><path>lib/BasicEvaluatedExpression.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <del>function BasicEvaluatedExpression() { <del> this.range = null; <del>} <del>module.exports = BasicEvaluatedExpression; <ide> <del>BasicEvaluatedExpression.pr...
1
Python
Python
add gated-silu to t5
607acd4fbd175feb458eda7317419cdee5d443fe
<ide><path>src/transformers/models/t5/configuration_t5.py <ide> def __init__( <ide> self.initializer_factor = initializer_factor <ide> self.feed_forward_proj = feed_forward_proj <ide> self.use_cache = use_cache <add> <add> act_info = self.feed_forward_proj.split("-") <add> self.den...
5
Python
Python
add auto models and auto tokenizer
ac42049c0877104632cff44d52ddb0a06d927ee0
<ide><path>pytorch_transformers/modeling_auto.py <add># coding=utf-8 <add># Copyright 2018 The HuggingFace Inc. team. <add># <add># Licensed under the Apache License, Version 2.0 (the "License"); <add># you may not use this file except in compliance with the License. <add># You may obtain a copy of the License at <add>...
2
Text
Text
simplify minitest sample in autoloading guide
1140f2926414e7baf5dc8805d02aa47ae4510b9d
<ide><path>guides/source/classic_to_zeitwerk_howto.md <ide> require "test_helper" <ide> <ide> class ZeitwerkComplianceTest < ActiveSupport::TestCase <ide> test "eager loads all files without errors" do <del> Rails.application.eager_load! <del> rescue => e <del> flunk(e.message) <del> else <del> pass <add>...
1
Python
Python
fix string formatting
aa8af10a160845df30a8b28470e866e02c68bdf5
<ide><path>keras/backend.py <ide> def resize_images(x, height_factor, width_factor, data_format, <ide> height_factor: Positive integer. <ide> width_factor: Positive integer. <ide> data_format: One of `"channels_first"`, `"channels_last"`. <del> interpolation: A string, one of `area`, `bicubic`, `...
2
Javascript
Javascript
fix ukrainian version when build relative time
96a1ede9913ef3aac7b39909b63df917d41cff6a
<ide><path>src/locale/uk.js <ide> function plural(word, num) { <ide> } <ide> function relativeTimeWithPlural(number, withoutSuffix, key) { <ide> var format = { <del> 'mm': 'хвилина_хвилини_хвилин', <del> 'hh': 'година_години_годин', <add> 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилин...
1
Javascript
Javascript
add test cases
11e71ed26b8d0aca31d782c91588612f0e59b020
<ide><path>test/WatchDetection.test.js <ide> describe("WatchDetection", () => { <ide> <ide> jest.setTimeout(10000); <ide> <add> createTestCase(100, true); <add> createTestCase(10, true); <add> createTestCase(600, true); <ide> for (let changeTimeout = 10; changeTimeout < 100; changeTimeout += 10) { <ide> createTes...
1
Javascript
Javascript
enable linter on spec/ folder
8daaf3834eaa09e1b962d42984930e1bc8a357a8
<ide><path>script/lib/lint-java-script-paths.js <ide> const path = require('path') <ide> <ide> const CONFIG = require('../config') <ide> <del>module.exports = function () { <add>module.exports = async function () { <ide> const globPathsToLint = [ <ide> path.join(CONFIG.repositoryRootPath, 'exports', '**', '*.js...
1
Javascript
Javascript
flow autofix animatedimplementation.js
e6b850871b44169ef071e63213c0383777634340
<ide><path>Libraries/Animated/src/AnimatedImplementation.js <ide> class Animated { <ide> } <ide> <ide> type AnimationConfig = { <del> isInteraction?: bool; <del> useNativeDriver?: bool; <add> isInteraction?: bool, <add> useNativeDriver?: bool, <ide> }; <ide> <ide> // Important note: start() and stop() will only b...
1