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
add "byzantine fault tolerance"
844405a4e9ddbb3d50f3bd008fb9541c0da44ac5
<ide><path>guide/english/blockchain/index.md <ide> --- <ide> title: Blockchain <ide> --- <del>## Blockchain <ide> <add>## Blockchain <ide> > "Is a decentralized database that stores a registry of assets and transactions across a peer-to-peer network. Is basically a public registry of who owns what and who transacts wh...
1
Ruby
Ruby
remove query_format argument from resolver
bcd42ae974eb04cb5def7a01d194e70b87bc4152
<ide><path>actionview/lib/action_view/template/resolver.rb <ide> def query(path, details, formats, outside_app_allowed, locals) <ide> template_paths = reject_files_external_to_app(template_paths) unless outside_app_allowed <ide> <ide> template_paths.map do |template| <del> handler, format, var...
3
Javascript
Javascript
improve tests, check amd and commonjs too
36d5aae046a65c399c47edcef8944e468d9e8b61
<ide><path>test/cases/parsing/template-string/abc/abcTest.js <del>export default "ok"; <ide>\ No newline at end of file <add>export default "ok"; <ide><path>test/cases/parsing/template-string/amd.js <add> <add>it("should parse template strings in amd requires", function(done) { <add> var name = "abc"; <add> var suffix ...
5
Javascript
Javascript
fix css rotation for canvas and text layer
f1a6e9015f6667d928df05071ad6a1a67e8b4990
<ide><path>web/page_view.js <ide> var PageView = function pageView(container, id, scale, <ide> }); <ide> <ide> if (USE_ONLY_CSS_ZOOM && this.canvas) { <del> this.cssZoom(this.canvas); <add> this.cssTransform(this.canvas); <ide> return; <ide> } else if (this.canvas && !this.zoomLayer) { <ide...
1
Text
Text
add yihong wang to collaborators
6c9774fd94173ee29921f65d42880d1344ee027b
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Jeremy Whitlock** &lt;jwhitlock@apache.org&gt; <ide> * [XadillaX](https://github.com/XadillaX) - <ide> **Khaidi Chu** &lt;i@2333.moe&gt; (he/him) <add>* [yhwang](https://github.com/yhwang) - <add>**Yihong Wang** &lt...
1
Text
Text
update networking changelog for 1.11
17bce424d6e4356d0102dad55b9a0f7f03a64528
<ide><path>CHANGELOG.md <ide> be found. <ide> <ide> - Fix panic if a node is forcibly removed from the cluster ([#21671](https://github.com/docker/docker/pull/21671)) <ide> - Fix "error creating vxlan interface" when starting a container in a Swarm cluster ([#21671](https://github.com/docker/docker/pull/21671)) <del>-...
1
Javascript
Javascript
replace willrerender with willclearrender
b0c4adb23fb6bce43291f217d45294fa486b09b8
<ide><path>packages/ember-handlebars/lib/helpers/action.js <ide> ActionHelper.registerAction = function(actionName, options) { <ide> } <ide> }; <ide> <del> options.view.on('willRerender', function() { <add> options.view.on('willClearRender', function() { <ide> delete ActionHelper.registeredActions[actionId...
5
Ruby
Ruby
handle frozen conditions in validate
3d1cb9a1f359378fa3b5fa0c0da476ed0e4976bb
<ide><path>activemodel/lib/active_model/validations.rb <ide> def validate(*args, &block) <ide> if options.key?(:on) <ide> options = options.dup <ide> options[:on] = Array(options[:on]) <del> options[:if] = Array(options[:if]) <del> options[:if].unshift ->(o) { <del> ...
2
Javascript
Javascript
pass correct message in http client upgrade
db73c71280966b0587a8d16677b89be7fcfd1c2d
<ide><path>lib/http.js <ide> function Client ( ) { <ide> self.ondata = null; <ide> self.onend = null <ide> <del> var req = self._outgoing[0]; <add> var req = parser.incoming; <ide> <ide> var upgradeHead = d.slice(start + bytesParsed + 1, end); <ide> <ide><path>test/simple/test-http-upgrad...
2
Go
Go
add a minimum value for the cp mtu
a6073649e943e1cef8074b5e1c7b3768d6dfcad9
<ide><path>libnetwork/config/config.go <ide> import ( <ide> "github.com/sirupsen/logrus" <ide> ) <ide> <add>const ( <add> warningThNetworkControlPlaneMTU = 1500 <add> minimumNetworkControlPlaneMTU = 500 <add>) <add> <ide> // Config encapsulates configurations of various Libnetwork components <ide> type Config struc...
1
Ruby
Ruby
fix error in recursive_includes
a7e692e7bc4d5e6d39910f2bd27e809dd55d19a3
<ide><path>Library/Homebrew/dependencies.rb <ide> def recursive_includes(klass, root_dependent, includes, ignores) <ide> klass.prune if !includes.include?("optional?") && !dependent.build.with?(dep) <ide> elsif dep.build? || dep.test? <ide> keep = false <del> keep ||= dep.test? && includes....
1
Javascript
Javascript
fix armenian meridiem
94305dc2c1bd919a91aae217cbc6d449e29feb3a
<ide><path>lang/sq.js <ide> weekdays : "E Diel_E Hënë_E Marte_E Mërkure_E Enjte_E Premte_E Shtunë".split("_"), <ide> weekdaysShort : "Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"), <ide> weekdaysMin : "D_H_Ma_Më_E_P_Sh".split("_"), <add> meridiem : function (hours, minutes, isLower) { <add> ...
2
Javascript
Javascript
add sanity check for stepsize
5587738fa4cf86bcd89de09da04a5d245a092bef
<ide><path>src/scales/scale.linearbase.js <ide> export default class LinearScaleBase extends Scale { <ide> <ide> if (stepSize) { <ide> maxTicks = Math.ceil(this.max / stepSize) - Math.floor(this.min / stepSize) + 1; <add> if (maxTicks > 1000) { <add> console.warn(`scales.${this.id}.ticks.stepSize...
2
Python
Python
fix typo in file_utils.py
6189ae99603bd5dc14c5631f1b4562f78e24d575
<ide><path>src/transformers/file_utils.py <ide> def _prepare_output_docstrings(output_type, config_class): <ide> >>> from transformers import {tokenizer_class}, {model_class} <ide> <ide> >>> tokenizer = {tokenizer_class}.from_pretrained('{checkpoint}') <del> >>> model = {model_class}.from_pretra...
1
Ruby
Ruby
add action_cable to rails/all and application.rb
3cf7b3056462562b0f9ce45a2691aa32cc54636e
<ide><path>railties/lib/rails/all.rb <ide> require "rails" <ide> <ide> %w( <del> active_record <del> action_controller <del> action_view <del> action_mailer <del> active_job <del> rails/test_unit <del> sprockets <del>).each do |framework| <add> active_record/railtie <add> action_controller/railtie <add> acti...
2
PHP
PHP
allow 0 block time
dbad05599b2d2059e45c480fac8817d1135d5da1
<ide><path>src/Illuminate/Queue/RedisQueue.php <ide> class RedisQueue extends Queue implements QueueContract <ide> /** <ide> * The maximum number of seconds to block for a job. <ide> * <del> * @var int <add> * @var int|null <ide> */ <del> private $blockFor = 0; <add> protected $blockFor...
1
Text
Text
update translation embarassingly-parallel
5bdb355e513efa3552dbc2230796a13f75bb3e16
<ide><path>guide/portuguese/algorithms/embarassingly-parallel-algorithms/index.md <ide> --- <ide> title: Embarassingly Parallel Algorithms <del>localeTitle: Algoritmos Paralisados ​​Abarassingly <add>localeTitle: Algoritmos embaraçosamente paralelos <ide> --- <del>## Algoritmos Paralisados ​​Abarassingly <add>## Algori...
1
Go
Go
add a "context" to the api/server/* code
8b454dd79e6a11c3c881f8a755423713c0491287
<ide><path>api/server/auth.go <ide> import ( <ide> "encoding/json" <ide> "net/http" <ide> <add> "golang.org/x/net/context" <add> <ide> "github.com/docker/docker/api/types" <ide> "github.com/docker/docker/cliconfig" <del> "github.com/docker/docker/pkg/version" <ide> ) <ide> <del>func (s *Server) postAuth(version v...
9
Javascript
Javascript
release script prompts to stop running dev scripts
78fa7109c76225187427266e4f682fb713f3b922
<ide><path>scripts/devtools/build-and-test.js <ide> const { <ide> async function main() { <ide> clear(); <ide> <add> await confirm('Have you stopped all NPM DEV scripts?', () => { <add> const packagesPath = relative(process.cwd(), join(__dirname, 'packages')); <add> <add> console.log('Stop all NPM DEV scripts...
1
Ruby
Ruby
add sdk_path_if_needed tests
a20198cb894f242e5bae756c092b40e72cae8b64
<ide><path>Library/Homebrew/test/os/mac_spec.rb <ide> expect { Locale.parse(subject.language) }.not_to raise_error <ide> end <ide> end <add> <add> describe "::sdk_path_if_needed" do <add> it "calls sdk_path on Xcode-only systems" do <add> allow(OS::Mac::Xcode).to receive(:installed?) { true } <add>...
1
Javascript
Javascript
move safari onclick hack into reactdomcomponent
b20e3afbf5487d7208eb53bfca6eb48af8fd807c
<ide><path>src/renderers/dom/shared/eventPlugins/SimpleEventPlugin.js <ide> <ide> 'use strict'; <ide> <del>var EventListener = require('EventListener'); <ide> var EventPropagators = require('EventPropagators'); <del>var ReactDOMComponentTree = require('ReactDOMComponentTree'); <ide> var SyntheticAnimationEvent = requ...
2
Javascript
Javascript
extend session cookie past browser close
a42e4cfd83e1247f994c08d292ed94ff937f66a1
<ide><path>server/middlewares/sessions.js <ide> const MongoStore = MongoStoreFactory(session); <ide> <ide> export default function sessionsMiddleware() { <ide> return session({ <add> // 900 day session cookie <add> cookie: { maxAge: 900 * 24 * 60 * 60 * 1000 }, <ide> resave: true, <ide> saveUninitializ...
1
Text
Text
add github sponsors link
38f9e6b0442ded3f28630825b97c5b4972c36206
<ide><path>README.md <ide> Documentation is under the [Creative Commons Attribution license](https://creati <ide> ## Donations <ide> Homebrew is a non-profit project run entirely by unpaid volunteers. We need your funds to pay for software, hardware and hosting around continuous integration and future improvements to t...
1
Go
Go
improve godoc for imageinspect struct
34c2c1477543aee06dce7de3464198dbc77c7ff2
<ide><path>api/types/types.go <ide> type RootFS struct { <ide> // ImageInspect contains response of Engine API: <ide> // GET "/images/{name:.*}/json" <ide> type ImageInspect struct { <del> ID string `json:"Id"` <del> RepoTags []string <del> RepoDigests []string <del> Parent string <del>...
1
Javascript
Javascript
add deprecation for ember.$()
bb1953dab05e6f8e3f8ca8f416b8ec983e7678b7
<ide><path>packages/ember/index.js <ide> Ember.VERSION = VERSION; <ide> <ide> // ****@ember/-internals/views**** <ide> if (!views.jQueryDisabled) { <del> Ember.$ = views.jQuery; <add> Ember.$ = function() { <add> deprecate( <add> "Using Ember.$() has been deprecated, use `import jQuery from 'jquery';` instea...
2
Python
Python
escape more hyphens
bbabb6aaaeb332ec12b9a436d88d38e72a283009
<ide><path>spacy/lang/fr/punctuation.py <ide> <ide> <ide> ELISION = " ' ’ ".strip().replace(" ", "").replace("\n", "") <del>HYPHENS = r"- – — ‐ ‑".strip().replace(" ", "").replace("\n", "") <add>HYPHENS = r"\- – — ‐ ‑".strip().replace(" ", "").replace("\n", "") <ide> <ide> <ide> _suffixes = (
1
Ruby
Ruby
simplify remote_addr parsing
4fabc9b2f376c47d4381572167956063b3c8c418
<ide><path>actionpack/lib/action_controller/request.rb <ide> def xml_http_request? <ide> # delimited list in the case of multiple chained proxies; the last <ide> # address which is not trusted is the originating IP. <ide> def remote_ip <del> remote_addr_list = @env['REMOTE_ADDR'] && @env['REMOTE_ADDR']...
1
Text
Text
fix typo on cra's package name
09189002c62399b7c7a0c82abdeb7fe832f513a9
<ide><path>guide/english/react/your-first-app/index.md <ide> title: Your first React App <ide> As specified in the previous artice (Installation), run the `Create React App` tool. After everything has finished, `cd` into the folder of your application and run `npm start`. <ide> This will start a development server and ...
1
Go
Go
move blkiodev package to types
0aab83d996f645a2e1e28b1e2c03b530c13a5fc1
<add><path>api/types/blkiodev/blkio.go <del><path>pkg/blkiodev/blkiodev.go <ide> package blkiodev <ide> <del>import ( <del> "fmt" <del>) <add>import "fmt" <ide> <ide> // WeightDevice is a structure that hold device:weight pair <ide> type WeightDevice struct { <ide><path>daemon/daemon_unix.go <ide> import ( <ide> "sy...
6
Text
Text
update todos according to meeting
60b97853cc0510abafba64404b68eb5ae2de908d
<ide><path>language-adaptors/rxjava-scala/TODO.md <ide> TODOs for Scala Adapter <ide> ----------------------- <ide> <del>This is a (probably incomplete) list of what still needs to be done in the Scala adaptor: <add>This is a (probably incomplete) list of what still needs to be done in the Scala adaptor. <add> <add>TO...
1
Text
Text
fix doc for napi_create_function
e55bdde92513ecf4915390c772f5ffa5da2c9f5e
<ide><path>doc/api/n-api.md <ide> structure, in most cases using a `TypedArray` will suffice. <ide> <ide> For Node.js >=4 `Buffers` are `Uint8Array`s. <ide> <del>#### napi_create_function <del><!-- YAML <del>added: v8.0.0 <del>napiVersion: 1 <del>--> <del>```C <del>napi_status napi_create_function(napi_env env, <del>...
1
PHP
PHP
add support for rendering complex option types
78d7bbb44f7144330d726f547f771f9b0f20cfb1
<ide><path>Cake/View/Input/SelectBox.php <ide> protected function _renderContent($data) { <ide> protected function _renderOptions($options, $disabled, $selected, $escape) { <ide> $out = []; <ide> foreach ($options as $key => $val) { <del> if (is_array($val) || $val instanceof Traversable) { <add> if (!is_int($...
2
PHP
PHP
add `countby` method to collection
7b8e123462675e1d7b319f61c895be7f61b15c71
<ide><path>src/Illuminate/Support/Collection.php <ide> public function count() <ide> return count($this->items); <ide> } <ide> <add> /** <add> * Count the number of items in the collection by some predicate. <add> * <add> * @param callable|null <add> * @return static <add> */ <add> ...
2
PHP
PHP
add german translations for new array validator
41e3c95ed6d190a709184779eeb16b2246e0ddd1
<ide><path>application/language/de/validation.php <ide> "alpha" => ":attribute darf nur Buchstaben beinhalten.", <ide> "alpha_dash" => ":attribute sollte nur aus Buchstaben, Nummern und Bindestrichen bestehen.", <ide> "alpha_num" => ":attribute sollte nur aus Buchstaben und Nummern bestehen.", <del...
1
Ruby
Ruby
add leaves flags tests
706c40869662c0ddf18d3a6bb62b25740ddbee4e
<ide><path>Library/Homebrew/test/cmd/leaves_spec.rb <ide> .and be_a_success <ide> end <ide> end <add> <add> context "when there are installed formulae with dependencies", :integration_test do <add> it "prints leaves installed as dependencies with --installed-as-dependency" do <add> setup_test_for...
1
Text
Text
update the redux flow.md
260fb948313bc417bcbaca9778ad283e6cfed3b8
<ide><path>docs/Basics/The Redux Flow.md <add>The Redux Flow <add>-------------------------- <add> <add>TODO <add> <add>-------------------------- <add>Next: [Userland and Core](Userland and Core.md)
1
Python
Python
fix the audio dimensions for eval input
10806935c1a02fec64b03a9aa76412c5c5a24e49
<ide><path>official/vision/beta/dataloaders/video_input.py <ide> def _parse_eval_data( <ide> audio = decoded_tensors[self._audio_feature] <ide> audio = tf.cast(audio, dtype=self._dtype) <ide> audio = preprocess_ops_3d.sample_sequence( <del> audio, 20, random=False, stride=1) <add> au...
1
Javascript
Javascript
remove unused variables
1bd60554077a959657a2541fdc62689f36a73f44
<ide><path>lib/MultiCompiler.js <ide> module.exports = class MultiCompiler extends Tapable { <ide> } <ide> const errors = missing.map((m) => `Compiler dependency \`${m}\` not found.`); <ide> const stack = this.compilers.filter((c) => !edges.find((e) => e.target === c)); <del> const sorted = []; <del> const done...
1
Javascript
Javascript
add promise api test for appendfile()
a3d174c525980cd5ad7a040fcacbe9de9f024905
<ide><path>test/parallel/test-fs-append-file.js <ide> const throwNextTick = (e) => { process.nextTick(() => { throw e; }); }; <ide> .catch(throwNextTick); <ide> } <ide> <del>// test that appends data to a non empty file <del>const filename2 = join(tmpdir.path, 'append2.txt'); <del>fs.writeFileSync(filename2, curre...
1
Mixed
Text
use server version
17b0017cd0949f0772a849e6e5d0ee6084ff5340
<ide><path>api/client/info.go <ide> func (cli *DockerCli) CmdInfo(args ...string) error { <ide> <ide> fmt.Fprintf(cli.out, "Containers: %d\n", info.Containers) <ide> fmt.Fprintf(cli.out, "Images: %d\n", info.Images) <del> ioutils.FprintfIfNotEmpty(cli.out, "Engine Version: %s\n", info.ServerVersion) <add> ioutils.Fp...
4
Python
Python
fix 'noise_level' in train cmd
bc5ce498593a4f583225ddbf672d3703f1865928
<ide><path>spacy/cli/train.py <ide> def train( <ide> best_score = 0.0 <ide> for i in range(n_iter): <ide> train_docs = corpus.train_docs( <del> nlp, noise_level=noise_level, gold_preproc=gold_preproc, max_length=0 <add> nlp, orth_variant_level=noise_level, gold_...
1
Python
Python
fix style issues in data_utils
1608aeda408335232a62328fa95811488be4ddac
<ide><path>keras/utils/data_utils.py <ide> def _extract_archive(file_path, path='.', archive_format='auto'): <ide> """ <ide> if archive_format is None: <ide> return False <del> if archive_format is 'auto': <add> if archive_format == 'auto': <ide> archive_format = ['tar', 'zip'] <ide> i...
1
Python
Python
update package cli handling of readme and license
83fd04dee503f98259c4bd87b401f14c4edf231c
<ide><path>spacy/cli/package.py <ide> def package( <ide> for file_name in FILENAMES_DOCS: <ide> file_path = package_path / model_name_v / file_name <ide> if file_path.exists(): <del> shutil.move(str(file_path), str(main_path)) <add> shutil.copy(str(file_path), str(main_path)) <...
1
Ruby
Ruby
fix incorrect error when unauthenticated
ec20eb604d03f7283ae2b85e1b1038ab1298cae7
<ide><path>Library/Homebrew/utils/github/api.rb <ide> def pretty_ratelimit_reset(reset) <ide> class AuthenticationFailedError < Error <ide> def initialize(github_message) <ide> @github_message = github_message <del> message = +"GitHub #{github_message}:" <add> message = +"GitHub API Erro...
1
Javascript
Javascript
use stricter stack frame detection in .iferror()
414bc7bec1080ef611aeb666a832b118fe0b9bfa
<ide><path>lib/assert.js <ide> assert.ifError = function ifError(err) { <ide> // This will remove any duplicated frames from the error frames taken <ide> // from within `ifError` and add the original error frames to the newly <ide> // created ones. <del> const tmp2 = StringPrototypeSplit(origStac...
2
PHP
PHP
encrypt messages pushed onto iron.io. fixes
6b7a8d8696a0c1d43ff2059e6b720d380e52f431
<ide><path>src/Illuminate/Queue/Connectors/IronConnector.php <ide> use IronMQ; <ide> use Illuminate\Http\Request; <ide> use Illuminate\Queue\IronQueue; <add>use Illuminate\Encryption\Encrypter; <ide> <ide> class IronConnector implements ConnectorInterface { <ide> <add> /** <add> * The encrypter instance. <add> * <a...
3
PHP
PHP
remove old classes for phpunit < 6
915619909ed45d7d14618fd7c0cb6801fe9d3626
<ide><path>src/TestSuite/Constraint/EventFired.php <ide> <?php <ide> namespace Cake\TestSuite\Constraint; <ide> <del>if (class_exists('PHPUnit_Runner_Version', false) <del> && !class_exists('PHPUnit\Framework\Constraint\Constraint', false) <del>) { <del> class_alias('PHPUnit_Framework_Constraint', 'PHPUnit\Frame...
8
Go
Go
improve logs for dns failures
0787ea8b26999d4b60a995d129c6461f440b0441
<ide><path>libnetwork/resolver.go <ide> func (r *resolver) ServeDNS(w dns.ResponseWriter, query *dns.Msg) { <ide> // client can retry over TCP <ide> if err != nil && (resp == nil || !resp.Truncated) { <ide> r.forwardQueryEnd() <del> logrus.WithError(err).Debugf("[resolver] failed to read from DNS server") ...
1
Python
Python
add env variables to pubsub example dag
6616617331bf6e8548bf6391cebb636220c1cc53
<ide><path>airflow/providers/google/cloud/example_dags/example_pubsub.py <ide> from airflow.utils.dates import days_ago <ide> <ide> GCP_PROJECT_ID = os.environ.get("GCP_PROJECT_ID", "your-project-id") <del>TOPIC_FOR_SENSOR_DAG = "PubSubSensorTestTopic" <del>TOPIC_FOR_OPERATOR_DAG = "PubSubOperatorTestTopic" <add>TOPIC...
1
Text
Text
add teletype focus for the coming week [ci skip]
c7e128d3edf4f86f3fdefd02fe842f8f45c39e71
<ide><path>docs/focus/2018-03-19.md <ide> - Atom IDE <ide> - GitHub Package <ide> - Teletype <add> - Update RFC for streamlining collaboration set-up to incorporate feedback from core dev team, and then request comments from the public ([atom/teletype#344](https://github.com/atom/teletype/pull/344)) <add> - Add preli...
1
PHP
PHP
remove unused constant
5f38edb6a88bd01270d9a0a0a20ce4460fe5edba
<ide><path>tests/bootstrap.php <ide> define('CORE_TESTS', CORE_PATH . 'tests' . DS); <ide> define('CORE_TEST_CASES', CORE_TESTS . 'TestCase'); <ide> define('TEST_APP', CORE_TESTS . 'test_app' . DS); <del>define('LOG_ERROR', LOG_ERR); <ide> <ide> // Point app constants to the test app. <ide> define('APP', TEST_APP . 'T...
1
Javascript
Javascript
read index off the fiber
f123763fe1b3d8c9bf188249afcc32baff3cc3fa
<ide><path>src/backend/renderer.js <ide> export function attach( <ide> // TODO: we might want to change the data structure once we no longer suppport Stack versions of `getData`. <ide> // TODO: Keep in sync with getElementType() <ide> function getDataForFiber(fiber: Fiber): FiberData { <del> const { elementTyp...
2
PHP
PHP
move method location
06551902b332cb952468a8cfaa8fab14f298dc90
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function firstOr($columns = ['*'], Closure $callback = null) <ide> return call_user_func($callback); <ide> } <ide> <del> /** <del> * Save a new model and return the instance. <del> * <del> * @param array $attributes <del>...
1
Ruby
Ruby
ensure binary encoding for downloading
a1a068061ad2e30424c73b530ad8f96f0454f25f
<ide><path>lib/active_storage/service/s3_service.rb <ide> def download(key) <ide> if block_given? <ide> stream(key, &block) <ide> else <del> object_for(key).get.body.read <add> object_for(key).get.body.read.force_encoding(Encoding::BINARY) <ide> end <ide> end <ide>
1
Go
Go
prevent 2 goroutine leaks in test functions
d7bc994a08a5dc13547b0aaf756d012e1dbba722
<ide><path>daemon/logger/awslogs/cloudwatchlogs_test.go <ide> func TestLogNonBlockingBufferFull(t *testing.T) { <ide> logNonBlocking: true, <ide> } <ide> stream.messages <- &logger.Message{} <del> errorCh := make(chan error) <add> errorCh := make(chan error, 1) <ide> started := make(chan bool) <ide> go func() { <...
2
Javascript
Javascript
add coverage to dgram receive error case
1683299c333e6768f07135d51667e8e8b5e1b228
<ide><path>test/parallel/test-dgram-recv-error.js <add>'use strict'; <add>const common = require('../common'); <add>const assert = require('assert'); <add>const dgram = require('dgram'); <add>const s = dgram.createSocket('udp4'); <add> <add>s.on('error', common.mustCall((err) => { <add> s.close(); <add> <add> // Don'...
1
Javascript
Javascript
create common validation function
7500c370b65f5485fc1651ca3d6450f2bed722e6
<ide><path>utils/validate.js <add>const validCharsRE = /^[a-zA-Z0-9\-_+]+$/; <add>const invalidCharError = { <add> valid: false, <add> error: 'contains invalid characters' <add>}; <add>const validationSuccess = { valid: true, error: null }; <add>const usernameTooShort = { valid: false, error: 'is too short' }; <add> ...
2
Ruby
Ruby
pass proper tap variable
62ca046390ef3da606c50db4a27d79455f23aacf
<ide><path>Library/Homebrew/dev-cmd/pr-automerge.rb <ide> def pr_automerge <ide> <ide> if args.publish? <ide> publish_args = ["pr-publish"] <del> publish_args << "--tap=#{args.tap}" if args.tap <add> publish_args << "--tap=#{tap}" if tap <ide> safe_system HOMEBREW_BREW_FILE, *publish_args, *p...
1
Python
Python
add a test for uploading a zero sized object
aaef887b5202757988ea89e7c581f0a7b979b988
<ide><path>libcloud/test/storage/test_cloudfiles.py <ide> def upload_file(self, response, file_path, chunked=False, <ide> self.assertTrue('some-value' in obj.meta_data) <ide> CloudFilesStorageDriver._upload_file = old_func <ide> <add> def test_upload_object_zero_size_object(self): <add> def u...
1
Ruby
Ruby
remove dup from request#set_cotent_type
2db687ff87abae33086744d9ac97322856d34fc2
<ide><path>actionpack/lib/action_dispatch/http/response.rb <ide> def parsed_content_type_header <ide> end <ide> <ide> def set_content_type(content_type, charset) <del> type = (content_type || "").dup <add> type = +(content_type || "") <ide> type << "; charset=#{charset.to_s.downcase}" if charse...
1
Python
Python
add files via upload
85a599d54a9833d6ca3a643c6c3c0305e38100c1
<ide><path>server.py <add># all imports - including #s <add>import socket <add>#import os <add>#import sys <add>#import subprocess <add># end of imports <add># the below classes will clarify what information is for the attacker and client <add>class Termrequire: <add> host = socket.gethostname() <add> port = 3333...
1
Javascript
Javascript
support animated values for border dimensions
3e3b10f4044ada7b523d363afb614720468c217f
<ide><path>Libraries/StyleSheet/StyleSheetTypes.js <ide> export type ____ViewStyle_Internal = $ReadOnly<{| <ide> borderRightColor?: ColorValue, <ide> borderStartColor?: ColorValue, <ide> borderTopColor?: ColorValue, <del> borderRadius?: number, <del> borderBottomEndRadius?: number, <del> borderBottomLeftRadius...
1
Ruby
Ruby
relax the uuid regex
c115a84c8b73363b281709a779a0fefbf7e46b13
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/oid/uuid.rb <ide> module ConnectionAdapters <ide> module PostgreSQL <ide> module OID # :nodoc: <ide> class Uuid < Type::Value # :nodoc: <del> RFC_4122 = %r{\A\{?[a-fA-F0-9]{4}-? <del> [a-fA-F0...
2
Ruby
Ruby
add bump spec
a3278ad3453b42d0e15a487d1991b85f9f9b1e01
<ide><path>Library/Homebrew/dev-cmd/bump.rb <ide> def bump_args <ide> end <ide> <ide> def bump <del> bump_args.parse <add> args = bump_args.parse <ide> <del> requested_formula = Homebrew.args.formula <add> requested_formula = args.formula <add> requested_limit = args.limit ? args.limit.to_i : nil <...
3
Java
Java
update copyright year of changed file
403e1f2505335bc6f5a17546a838a15f53ca2e3a
<ide><path>spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveConstructorResolver.java <ide> /* <del> * Copyright 2002-2019 the original author or authors. <add> * Copyright 2002-2021 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the...
1
Ruby
Ruby
pass all items into strategy block
b4cb47815f10d5914df2c33ccd4ac7ac569743bc
<ide><path>Library/Homebrew/livecheck/strategy/sparkle.rb <ide> def self.match?(url) <ide> <ide> # @api public <ide> delegate short_version: :bundle_version <add> <add> # @api public <add> delegate nice_version: :bundle_version <ide> end <ide> <ide> # Identify ver...
2
Java
Java
remove duplicate assertion
b03dd475984bd668bf48e3916d5fb0dacbec7dea
<ide><path>spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationClassLoaderTests.java <ide> public void synthesizedUsesCorrectClassLoader() throws Exception { <ide> Annotation utilsMeta = AnnotatedElementUtils.getMergedAnnotation(source, <ide> TestMetaAnnotation.class); <ide> assertThat...
1
Python
Python
log loss - helpers
4bbb9f2d680f7f84ef53e18b1d0f448bcf94546f
<ide><path>examples/run_openai_gpt.py <ide> def main(): <ide> parser.add_argument('--lm_coef', type=float, default=0.5) <ide> parser.add_argument('--n_valid', type=int, default=374) <ide> <del> parser.add_argument('--server_ip', type=str, default='') <del> parser.add_argument('--server_port', type=str, d...
1
Ruby
Ruby
convert cdata input to string before gsub'ing
805a6cc56469ae50803e922e09e2b9867daff1dd
<ide><path>actionview/lib/action_view/helpers/tag_helper.rb <ide> def content_tag(name, content_or_options_with_block = nil, options = nil, escape <ide> # cdata_section("hello]]>world") <ide> # # => <![CDATA[hello]]]]><![CDATA[>world]]> <ide> def cdata_section(content) <del> splitted = cont...
2
Python
Python
add distributed training
965b2565a0165ad8dbd84117792ed893f549cae1
<ide><path>run_classifier.py <ide> def main(): <ide> else: <ide> device = torch.device("cuda", args.local_rank) <ide> n_gpu = 1 <del> # print("Initializing the distributed backend: NCCL") <del> print("device", device, "n_gpu", n_gpu) <add> # Initializes the distributed backend which...
2
PHP
PHP
add postmark token
45742652ccb0de5e569c23ec826f6106a8550432
<ide><path>config/services.php <ide> 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), <ide> ], <ide> <add> 'postmark' => [ <add> 'token' => env('POSTMARK_TOKEN'), <add> ], <add> <ide> 'ses' => [ <ide> 'key' => env('AWS_ACCESS_KEY_ID'), <ide> 'secret' => env('AWS_SE...
1
PHP
PHP
improve support for unioned queries on mysql
8490c9da56858dea69d9150caed03601a158041e
<ide><path>src/Database/Dialect/SqliteDialectTrait.php <ide> use Cake\Database\ExpressionInterface; <ide> use Cake\Database\Expression\FunctionExpression; <ide> use Cake\Database\SqlDialectTrait; <add>use Cake\Database\SqliteCompiler; <ide> <ide> /** <ide> * SQLite dialect trait <ide> public function enableForeignKey...
4
PHP
PHP
remove check for non existent config
2e9f3098c6b129f30af3da82512c089af31d6f42
<ide><path>src/Routing/Filter/AssetFilter.php <ide> protected function _getAssetFile($url) { <ide> */ <ide> protected function _deliverAsset(Request $request, Response $response, $assetFile, $ext) { <ide> ob_start(); <del> $compressionEnabled = Configure::read('Asset.compress') && $response->compress(); <add> $co...
1
Ruby
Ruby
explain erb space removal. [ci skip]
700ec897f97c60016ad748236bf3a49ef15a20de
<ide><path>actionview/lib/action_view/base.rb <ide> module ActionView #:nodoc: <ide> # <ide> # If you absolutely must write from within a function use +concat+. <ide> # <del> # <%- and -%> suppress leading and trailing whitespace, including the trailing newline, and can be used interchangeably with <% and %>. <a...
1
Ruby
Ruby
add explicit mkpath to pathname#write_env_script
c73baa39cb466e941af14227157b200f188b4d05
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def write_exec_script *targets <ide> def write_env_script target, env <ide> env_export = '' <ide> env.each {|key, value| env_export += "#{key}=\"#{value}\" "} <add> dirname.mkpath <ide> self.write <<-EOS.undent <ide> #!/bin/bash <ide> #{env_e...
1
Ruby
Ruby
fix unstated dep on hwia
c3cea9b59460bb9e67dafcc055f39b8e69542405
<ide><path>activemodel/lib/active_model/dirty.rb <add>require 'active_support/hash_with_indifferent_access' <add> <ide> module ActiveModel <ide> # <tt>ActiveModel::Dirty</tt> provides a way to track changes in your <ide> # object in the same way as ActiveRecord does.
1
Javascript
Javascript
fix navgroup hrefs
6fcf544528da04ba2b081ae9f1cbb723600bcac6
<ide><path>docs/config/processors/pages-data.js <ide> var AREA_NAMES = { <ide> error: 'Error Reference' <ide> }; <ide> <del>function getNavGroup(navGroupPages, groupName, pageSorter, pageMapper) { <add>function getNavGroup(pages, area, pageSorter, pageMapper) { <ide> <del> var navItems = _(navGroupPages) <add> ...
1
Javascript
Javascript
move viewport meta tag to head in _app.js
bb973be201b22b3c59c0fdfdcb7f95779cb85c36
<ide><path>examples/with-next-page-transitions/pages/_app.js <add>import Head from 'next/head' <ide> import { PageTransition } from 'next-page-transitions' <ide> <ide> import Loader from '../components/Loader' <ide> const TIMEOUT = 400 <ide> function MyApp({ Component, pageProps }) { <ide> return ( <ide> <> <add...
2
PHP
PHP
update default datasources file
c4c322e757663c2aac197379ffb4aa05713ea5f5
<ide><path>App/Config/datasources.default.php <ide> */ <ide> namespace App\Config; <ide> <del>use Cake\Model\ConnectionManager; <add>use Cake\Core\Configure; <ide> <ide> /** <ide> * Database configuration class. <ide> * Create the default connection, this is the conventional default connection used <ide> * by all...
1
Java
Java
ignore cases from some tricky scenarios
5904814ec68aa4be07a2d84803a88882561aecfa
<ide><path>org.springframework.context/src/test/java/org/springframework/ui/binding/support/GenericBinderTests.java <ide> public void getListAsSingleString() { <ide> String value = binder.getBinding("addresses").getValue(); <ide> assertEquals("s1:c1:st1:z1,s2:c2:st2:z2,", value); <ide> } <del> <add> <add> @Test <...
1
Go
Go
move authconfig from runtime to registry
95dd6d31a4c11618836f9a55fc3dbbde48450b09
<ide><path>api.go <ide> func writeJson(w http.ResponseWriter, b []byte) { <ide> } <ide> <ide> func getAuth(srv *Server, w http.ResponseWriter, r *http.Request, vars map[string]string) error { <del> config := &auth.AuthConfig{ <del> Username: srv.runtime.authConfig.Username, <del> Email: srv.runtime.authConfig.Ema...
6
Ruby
Ruby
include caching module into new base
0e7da0e4a06f78ab39b0e90daadfc223b8f1738a
<ide><path>actionpack/lib/action_controller/new_base.rb <ide> module ActionController <ide> <ide> # Ported modules <ide> # require 'action_controller/routing' <add> autoload :Caching, 'action_controller/caching' <ide> autoload :Dispatcher, 'action_controller/dispatch/dispatcher' <ide> autol...
2
Python
Python
set input layer `batch_size` in multi-replica mode
f1a596825b194fa4032e31f7b7e0abad7a28db5f
<ide><path>official/resnet/keras/keras_imagenet_main.py <ide> def run(flags_obj): <ide> if flags_obj.enable_xla and not flags_obj.enable_eager: <ide> # TODO(b/129861005): Fix OOM issue in eager mode when setting <ide> # `batch_size` in keras.Input layer. <del> if strategy and strategy.num_replicas_...
1
Text
Text
use https for links where possible
68bd7020e1a90e9b3e7bc7b3d78d4fceeb372271
<ide><path>README.md <ide> Node.js from source. <ide> * [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md) <ide> * [CONTRIBUTING.md](./CONTRIBUTING.md) <ide> * [GOVERNANCE.md](./GOVERNANCE.md) <del>* IRC (general questions): [#node.js on Freenode.net](http://webchat.freenode.net?channels=node.js&uio=d4) <del>* IRC (node core d...
1
Mixed
Go
emit events for docker daemon
382c152a73dfa1d771334ffbe79759c5c3596144
<ide><path>daemon/daemon.go <ide> package daemon <ide> <ide> import ( <add> "encoding/json" <ide> "fmt" <ide> "io" <ide> "io/ioutil" <ide> func (daemon *Daemon) initDiscovery(config *Config) error { <ide> func (daemon *Daemon) Reload(config *Config) error { <ide> daemon.configStore.reloadLock.Lock() <ide> defer d...
6
Ruby
Ruby
convert hardware test to spec
8d7d41dc852e9a6bd51aa36b4142a372681bae39
<ide><path>Library/Homebrew/test/hardware_spec.rb <add>require "hardware" <add> <add>module Hardware <add> describe CPU do <add> describe "::type" do <add> it "returns the current CPU's type as a symbol, or :dunno if it cannot be detected" do <add> expect( <add> [ <add> :intel, <add>...
2
Java
Java
move jndi_property_source_enabled_flag constant
ce0a0ff3d4352b3040e7bbc7fe14313a40ac9491
<ide><path>org.springframework.context/src/main/java/org/springframework/jndi/JndiPropertySource.java <ide> public class JndiPropertySource extends PropertySource<Context> { <ide> /** JNDI context property source name: {@value} */ <ide> public static final String JNDI_PROPERTY_SOURCE_NAME = "jndiPropertySource"; <ide...
3
Text
Text
add link to react-lego in ecosystem.md
d4a53a847df194ca7587901011a407c077004ea4
<ide><path>docs/introduction/Ecosystem.md <ide> On this page we will only feature a few of them that the Redux maintainers have <ide> * [Official Examples](Examples.md) — A few official examples covering different Redux techniques <ide> * [SoundRedux](https://github.com/andrewngu/sound-redux) — A SoundCloud client buil...
1
Python
Python
optimize config code
93fbf756039c7e6f1605740c111149b2fdb35d88
<ide><path>glances/config.py <ide> from io import open <ide> <ide> from glances.compat import ConfigParser, NoOptionError <del>from glances.globals import BSD, LINUX, MACOS, WINDOWS, sys_prefix <add>from glances.globals import BSD, LINUX, MACOS, SUNOS, WINDOWS <ide> from glances.logger import logger <ide> <ide> <add...
4
Text
Text
add text "ubuntu" & "linux mint cinnamon"
f5c717d81a66991316b692fba560af1f97f4a7a1
<ide><path>guide/english/linux/getting-started/index.md <ide> Some other choices include: <ide> * [Suse](https://www.suse.com/) <ide> <ide> <add>### Ubuntu <add>One of the leading Linux distributions. It is also the perfect distro to begin your Linux journey. <add>Ubuntu is also known as the Linux for human beings no...
1
Javascript
Javascript
use runtimetemplate to generate error code
367b02a0f0bf08ab171c960b2140b6fb05bdce66
<ide><path>lib/DelegatedModule.js <ide> const { OriginalSource, RawSource } = require("webpack-sources"); <ide> const Module = require("./Module"); <ide> const DelegatedExportsDependency = require("./dependencies/DelegatedExportsDependency"); <ide> const DelegatedSourceDependency = require("./dependencies/DelegatedSour...
10
Text
Text
fix typo in readme
8d37bbe9e9158ada44c0c180db1200f4c62ade2f
<ide><path>README.md <ide> Instructions: <ide> All security bugs in node.js are taken seriously and should be reported by <ide> emailing security@nodejs.org. This will be delivered to a subset of the project <ide> team who handle security issues. Please don't disclose security bugs <del>public until they have been hand...
1
Javascript
Javascript
call updatenodelabels after expandgroup
90a157a64ade1e4efe368889ac0f88a6fe551156
<ide><path>airflow/www/static/js/graph.js <ide> function draw() { <ide> // A group node <ide> if (d3.event.defaultPrevented) return; <ide> expandGroup(nodeId, node); <add> updateNodeLabels(nodes, taskInstances); <ide> draw(); <ide> focusGroup(nodeId); <ide> } else if (nodeId in ta...
1
Text
Text
remove instructions to join slack
d836ab63820e1f904630a21003dcf59598b80b86
<ide><path>README.md <ide> repeat these steps to upgrade to future releases. <ide> ## Discussion <ide> <ide> * Discuss Atom on [GitHub Discussions](https://github.com/atom/atom/discussions) <del>* Chat about Atom on our Slack team -- [instructions for joining](https://discuss.atom.io/t/join-us-on-slack/16638?source_to...
1
Javascript
Javascript
remove unnecessary comma in nodebuilder
92340ca5ea24565f9a4f4a9ef0ab91c2c1abcfbf
<ide><path>examples/js/nodes/NodeBuilder.js <ide> THREE.NodeBuilder.prototype = { <ide> addSlot : function( name ) { <ide> <ide> this.slots.push( { <del> name : name || '', <add> name : name || '' <ide> } ); <ide> <ide> return this.update();
1
Text
Text
avoid proposal syntax in code example
62333566a3f52c1a7d51dae89695b34a6303fc42
<ide><path>doc/api/esm.md <ide> CommonJS and ES module instances of the package: <ide> <ide> ```js <ide> // ./node_modules/pkg/index.mjs <del> export state from './state.cjs'; <add> import state from './state.cjs'; <add> export { <add> state <add> }; <ide> ``` <ide> <ide> Even if `pkg`...
1
Text
Text
fix style and grammer in buffer.md
c17dcb32533aa007dfbf507d22c28ef3c7c11c29
<ide><path>doc/api/buffer.md <ide> Array entries outside that range will be truncated to fit into it. <ide> const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]); <ide> ``` <ide> <del>A `TypeError` will be thrown if `array` is not an `Array` or other type <add>A `TypeError` will be thrown if `array` is not an ...
1
Text
Text
clarify role of `dockerhost` variable
8aba9fd3ec776fa419ea504982e9bc12b6427f22
<ide><path>docs/examples/apt-cacher-ng.md <ide> use: <ide> <ide> $ docker logs -f test_apt_cacher_ng <ide> <del>To get your Debian-based containers to use the proxy, you have following options <add>To get your Debian-based containers to use the proxy, you have <add>following options. Note that you must replace `...
1
Go
Go
move teardowntest cleaning to environment package
1858656925c8705ae433769fbb9a2c18b6685a69
<ide><path>integration-cli/check_test.go <ide> const ( <ide> var ( <ide> testEnv *environment.Execution <ide> <del> // FIXME(vdemeester) remove these and use environmentdaemonPid <del> protectedImages = map[string]struct{}{} <del> <ide> // the docker client binary to use <ide> dockerBinary = "docker" <ide> ) <ide> ...
7
Ruby
Ruby
fix doc about nested transaction rollback
53bbbcc6638a9df86e74e4e420840f076e7c2994
<ide><path>activerecord/lib/active_record/transactions.rb <ide> class TransactionError < ActiveRecordError # :nodoc: <ide> # end <ide> # end <ide> # <del> # User.find(:all) # => empty <add> # User.find(:all) # => Return both Kotori and Nemu, because inner transaction do not rollback <add> ...
1