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 |
|---|---|---|---|---|---|
Python | Python | fix tf longformer | 23290836c39f73eb9d2f2b3bddfad227fea14fd2 | <ide><path>src/transformers/modeling_tf_longformer.py
<ide> class TFLongformerBaseModelOutput(ModelOutput):
<ide> in the sequence.
<ide> """
<ide>
<del> last_hidden_state: tf.Tensor
<add> last_hidden_state: tf.Tensor = None
<ide> hidden_states: Optional[Tuple[tf.Tensor]] = None
<ide> atte... | 1 |
Text | Text | fix compiler warning in doc/api/addons.md | 59c7df4a1099ea904de635c6357c08878dfc7093 | <ide><path>doc/api/addons.md
<ide> property `msg` that echoes the string passed to `createObject()`:
<ide>
<ide> namespace demo {
<ide>
<add>using v8::Context;
<ide> using v8::FunctionCallbackInfo;
<ide> using v8::Isolate;
<ide> using v8::Local;
<ide> using v8::Value;
<ide>
<ide> void CreateObject(const FunctionCall... | 1 |
Text | Text | update translation to 673874d | 710668e7f188a1d2ffe94999e5718813abab4923 | <ide><path>docs/docs/ref-02-component-api.ko-KR.md
<ide> forceUpdate([function callback])
<ide>
<ide> `render()` 메소드가 `this.props`나 `this.state`가 아닌 다른 곳에서 데이터를 읽어오는 경우 `forceUpdate()`를 호출하여 React가 `render()`를 다시 실행하도록 만들 수 있습니다. `this.state`를 직접 변경하는 경우에도 `forceUpdate()`를 호출해야 합니다.
<ide>
<del>`forceUpdate()`를 호출하면 해... | 3 |
Ruby | Ruby | fix generic api path functions | 489f5ed9d1271795885cf3a954199a6f9bf326e8 | <ide><path>Library/Homebrew/api/analytics.rb
<ide> module API
<ide> #
<ide> # @api private
<ide> module Analytics
<del> extend T::Sig
<add> class << self
<add> extend T::Sig
<ide>
<del> module_function
<add> sig { returns(String) }
<add> def analytics_api_path
<add> ... | 5 |
Javascript | Javascript | add more info | e50e91c7a83ec148ea3ee929bbfe1924dcbb060b | <ide><path>src/ngMock/angular-mocks.js
<ide> angular.mock.$ControllerDecorator = ['$delegate', function($delegate) {
<ide> * @ngdoc service
<ide> * @name $componentController
<ide> * @description
<del> * A service that can be used to create instances of component controllers.
<del> * <div class="alert alert-info">
<... | 1 |
Text | Text | fix stray paren on increment and decrement | e172adfb9b6674475301204da58723eb1bdb2308 | <ide><path>guide/english/javascript/arithmetic-operation/index.md
<ide> JavaScript provides the user with five arithmetic operators: `+`, `-`, `*`, `/`
<ide> 5 + "foo" // concatenates the string and the number and returns "5foo"
<ide> "foo" + "bar" // concatenates the strings and returns "foobar"
<ide>
<... | 1 |
Python | Python | fix separate compilation mode with distutils | fc22e9d653d5cb703654181431db17252ecc825c | <ide><path>numpy/core/setup.py
<ide> def get_mathlib_info(*args):
<ide> join('src', 'multiarray', 'hashdescr.c'),
<ide> join('src', 'multiarray', 'arrayobject.c'),
<ide> join('src', 'multiarray', 'buffer.c'),
<add> join('src', 'multiarray', 'datetime.c'),
<ide> join('src', 'multia... | 1 |
Python | Python | add test integrated with middleware | a68e78bd0b5174d2c8a40497d3d5842f66c65a34 | <ide><path>tests/test_middleware.py
<add>
<add>from django.conf.urls import patterns, url
<add>from django.contrib.auth.models import User
<add>from rest_framework.authentication import TokenAuthentication
<add>from rest_framework.authtoken.models import Token
<add>from rest_framework.test import APITestCase
<add>from ... | 1 |
Javascript | Javascript | fix iso week parsing for small years | 80680ee0992383be1b50d41a259863f2154f777b | <ide><path>moment.js
<ide>
<ide> // left zero fill a number
<ide> // see http://jsperf.com/left-zero-filling for performance comparison
<del> function leftZeroFill(number, targetLength) {
<add> function leftZeroFill(number, targetLength, forceSign) {
<ide> var output = Math.abs(number) + '',
<ide... | 2 |
PHP | PHP | move segments processing | a9444e1ddb2cbc95008fee7174c3fef683889155 | <ide><path>src/Illuminate/Support/NamespacedItemResolver.php
<ide> public function parseKey($key)
<ide> return $this->parsed[$key];
<ide> }
<ide>
<del> $segments = explode('.', $key);
<del>
<ide> // If the key does not contain a double colon, it means the key is not in a
<ide> // namespace, and is just a reg... | 1 |
Javascript | Javascript | fix extra newline in validation | 10c44e5a94f4875ee8cd8b39437e67e06a61fed9 | <ide><path>schemas/ajv.absolutePath.js
<ide>
<ide> const getErrorFor = (shouldBeAbsolute, data, schema) => {
<ide> const message = shouldBeAbsolute ?
<del> `The provided value ${JSON.stringify(data)} is not an absolute path!\n`
<del> : `A relative path is expected. However the provided value ${JSON.stringify(data)}... | 2 |
Mixed | Python | update the old interfaces | 3fe78376913cfa310a13990589d312d47440399d | <ide><path>docs/templates/optimizers.md
<ide> An optimizer is one of the two arguments required for compiling a Keras model:
<ide> from keras import optimizers
<ide>
<ide> model = Sequential()
<del>model.add(Dense(64, init='uniform', input_shape=(10,)))
<add>model.add(Dense(64, kernel_initializer='uniform', input_shap... | 2 |
Ruby | Ruby | add formula_file_to_name and alias_file_to_name | c2a5a8388f81d8160df61f6ccd4b9161921bd1e5 | <ide><path>Library/Homebrew/tap.rb
<ide> def formula_files
<ide>
<ide> # an array of all {Formula} names of this {Tap}.
<ide> def formula_names
<del> @formula_names ||= formula_files.map { |f| "#{name}/#{f.basename(".rb")}" }
<add> @formula_names ||= formula_files.map { |f| formula_file_to_name(f) }
<ide> ... | 1 |
Python | Python | fix www asset compilation | f600197ad47916687830177c9787c4616f7854a2 | <ide><path>dev/breeze/src/airflow_breeze/utils/run_utils.py
<ide> def run_compile_www_assets(
<ide> )
<ide> thread.start()
<ide> else:
<del> _run_compile_internally(command_to_execute, dry_run, verbose)
<add> return _run_compile_internally(command_to_execute, dry_run, verbose) | 1 |
Javascript | Javascript | use pip install . in quickstart [ci skip] | 3ca5c7082df36a1970277c4accc0f02176dc2459 | <ide><path>website/src/widgets/quickstart-install.js
<ide> const QuickstartInstall = ({ id, title }) => {
<ide> </QS>
<ide> <QS package="source">pip install -r requirements.txt</QS>
<ide> <QS package="source">python setup.py build_ext --inplace</QS... | 1 |
Python | Python | add chinese ptb tags to glossary | cc5aeaed29c067f60d11e07496704406a1577a35 | <ide><path>spacy/glossary.py
<ide> def explain(term):
<ide> "FW": "foreign word",
<ide> "HYPH": "punctuation mark, hyphen",
<ide> "IN": "conjunction, subordinating or preposition",
<del> "JJ": "adjective",
<add> "JJ": "adjective (English), other noun-modifier (Chinese)",
<ide> "JJR": "adjective, c... | 1 |
Python | Python | prevent the root logger from inialising | cbb8c66da328b1b000ec433234909d3f3fcda4da | <ide><path>spacy/util.py
<ide> # fmt: on
<ide>
<ide>
<del>logging.basicConfig(format="%(message)s")
<ide> logger = logging.getLogger("spacy")
<add>logger_stream_handler = logging.StreamHandler()
<add>logger_stream_handler.setFormatter(logging.Formatter('%(message)s'))
<add>logger.addHandler(logger_stream_handler)
<id... | 1 |
Text | Text | update pull request template | 69d68a371ffd63d21de0ba7bde81f4a150bc37f8 | <ide><path>.github/pull_request_template.md
<del>### Summary
<add><!--
<add>About this template
<ide>
<del><!-- Provide a general description of the code changes in your pull
<del>request... were there any bugs you had fixed? If so, mention them. If
<del>these bugs have open GitHub issues, be sure to tag them here as ... | 1 |
Text | Text | fix import in readme | 3e8c91c5f8e142f341b407bdebfe4fe4e0930914 | <ide><path>packages/react-dom/README.md
<ide> npm install react react-dom
<ide> ### In the browser
<ide>
<ide> ```js
<del>import { createRoot } from 'react-dom';
<add>import { createRoot } from 'react-dom/client';
<ide>
<ide> function App() {
<ide> return <div>Hello World</div>; | 1 |
Javascript | Javascript | add a timeout to address a ci failures | 76e295e7ef2fabe993251b5a82266542cae7b3aa | <ide><path>test/configCases/plugins/profiling-plugin/index.js
<ide> it("should have proper setup record inside of the json stream", (done) => {
<ide> // convert json stream to valid
<ide> var source = JSON.parse(fs.readFileSync(path.join(__dirname, "events.json"), "utf-8").toString() + "{}]");
<ide> expect(source... | 1 |
Javascript | Javascript | fix lint warnings in bundler index | 90a696597cd4cab05e4ea57497b8026feebeb27f | <ide><path>packager/react-packager/src/Bundler/index.js
<ide>
<ide> const assert = require('assert');
<ide> const fs = require('fs');
<del>const path = require('path');
<ide> const Cache = require('../node-haste').Cache;
<ide> const Transformer = require('../JSTransformer');
<ide> const Resolver = require('../Resolver... | 2 |
Python | Python | fix json serialization in merge layer | 9c56b91548980f9c3aa8a5a4c7b41db3ed7f76bc | <ide><path>keras/engine/topology.py
<ide> def get_config(self):
<ide>
<ide> if isinstance(self.mode, python_types.LambdaType):
<ide> if py3:
<del> mode = marshal.dumps(self.mode.__code__)
<add> mode = marshal.dumps(self.mode.__code__).decode('raw_unicode_escape')
<ide>... | 1 |
Mixed | Ruby | fix #to_json for unreadable io objects, fixes | 813f8e333dabb2050d6b668b7bdd68b4979e8af4 | <ide><path>activesupport/CHANGELOG.md
<add>* `IO#to_json` now returns the `to_s` representation, rather than
<add> attempting to convert to an array. This fixes a bug where `IO#to_json`
<add> would raise an `IOError` when called on an unreadable object.
<add>
<add> Fixes #26132.
<add>
<add> *Paul Kuruvill... | 3 |
Python | Python | omit none in max_rows for np.loadtxt docstring | 4577a69516bcc0406aaaa48304c8a2cbd82c58c9 | <ide><path>numpy/lib/npyio.py
<ide> def loadtxt(fname, dtype=float, comments='#', delimiter=None,
<ide> .. versionadded:: 1.14.0
<ide> max_rows : int, optional
<ide> Read `max_rows` lines of content after `skiprows` lines. The default
<del> (None) is to read all the lines.
<add> is to ... | 1 |
Python | Python | remove dead code | 8bb8e33db87b04640b5648eb96ce978585725d1a | <ide><path>libcloud/drivers/voxel.py
<ide> def list_images(self):
<ide> result = self.connection.request('', params=params).object
<ide> return self._to_images(result)
<ide>
<del> name = kwargs["name"]
<del> image = kwargs["image"]
<del> size = kwargs["size"]
<del> params = {'Acti... | 1 |
Ruby | Ruby | remove scons audit | b917cccf195abd365185d867c0db1cf578b85990 | <ide><path>Library/Homebrew/rubocops/text.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide> problem %q(use "xcodebuild *args" instead of "system 'xcodebuild', *args")
<ide> end
<ide>
<del> find_method_with_args(body_node, :system, "scons") do
<del> ... | 2 |
Text | Text | guide solution for work with data in d3 | a8334f88c0e3da317a12f86029a8aabf6e220d56 | <ide><path>guide/english/certifications/data-visualization/data-visualization-with-d3/work-with-data-in-d3/index.md
<ide> title: Work with Data in D3
<ide> ---
<ide> ## Work with Data in D3
<add>, Dependency.new("ant", [:build])
<add> end
<add>
<ide> ... | 1 |
Javascript | Javascript | convert the method parameter to lowercase | e4e32120cec8ba53fc1f69415d6a8ac10b9c9756 | <ide><path>lib/core/Axios.js
<ide> Axios.prototype.request = function request(config) {
<ide> }
<ide>
<ide> config = utils.merge(defaults, this.defaults, { method: 'get' }, config);
<add> config.method = config.method.toLowerCase();
<ide>
<ide> // Support baseURL config
<ide> if (config.baseURL && !isAbsolut... | 2 |
Java | Java | fix crash with non-zero blurradius less than 1 | dc01eff72d23e1dd3f7ecf30859992ee3bf7c664 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java
<ide> public void onFailure(String id, Throwable throwable) {
<ide> }
<ide>
<ide> public void setBlurRadius(float blurRadius) {
<del> if (blurRadius == 0) {
<add> int pixelBlurRadius = (int) PixelUtil.toPixelFromDIP(blur... | 1 |
Javascript | Javascript | remove unreachable return statement | 14b1297b512f71ee7c6a4fcd5b1397b4d70d52ee | <ide><path>src/ng/sce.js
<ide> function $SceDelegateProvider() {
<ide> } else {
<ide> throw $sceMinErr('isecrurl',
<ide> 'Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}', maybeTrusted.toString());
<del> return;
<ide> }
<ide> } else ... | 1 |
Text | Text | add advantage of exception handling to the article | 5ff05b9832763424814b1939bb8b426bb26022f2 | <ide><path>guide/english/java/exception-handling/index.md
<ide> All exception and errors types are sub classes of class Throwable, which is base
<ide>
<ide> ## How to use try-catch clause
<ide>
<del>```
<add>```java
<ide> try {
<ide> // block of code to monitor for errors
<ide> // the code you think can raise an exce... | 1 |
Go | Go | skip if client < 1.40 | 1ada1c83914dd4694570cf2ea1ce240bb4a8d183 | <ide><path>integration/container/ipcmode_linux_test.go
<ide> func TestDaemonIpcModeShareableFromConfig(t *testing.T) {
<ide> // by default, even when the daemon default is private.
<ide> func TestIpcModeOlderClient(t *testing.T) {
<ide> skip.If(t, versions.LessThan(testEnv.DaemonAPIVersion(), "1.40"), "requires a daem... | 1 |
Text | Text | fix outdated documentation for `family` property | 4ad342a5a55611a5c299da992ac473b8a0349f8f | <ide><path>doc/api/dgram.md
<ide> exist and calls such as `socket.address()` and `socket.setTTL()` will fail.
<ide>
<ide> <!-- YAML
<ide> added: v0.1.99
<add>changes:
<add> - version: v18.0.0
<add> pr-url: https://github.com/nodejs/node/pull/41431
<add> description: The `family` property now returns a number in... | 4 |
Python | Python | remove the incorrect exception 'm.h.t' | 648dc607556fea5409c288bf3cead42ffa79bc5b | <ide><path>spacy/lang/da/tokenizer_exceptions.py
<ide> "lic.", "lign.", "lin.", "ling.merc.", "litt.", "Ll.", "loc.cit.",
<ide> "lok.", "lrs.", "ltr.", "m/s", "M/S", "m.a.o.", "m.fl.", "m.m.", "m.v.",
<ide> "m.v.h.", "Mag.", "maks.", "md.", "mdr.", "mdtl.", "mezz.", "mfl.",
<del> "m.h.p."... | 1 |
Text | Text | update serverrendering.md to react 0.14 | 83992b59fcce20dbf1c145a803a73753dd3d0341 | <ide><path>docs/recipes/ServerRendering.md
<ide> The first thing that we need to do on every request is create a new Redux store
<ide>
<ide> When rendering, we will wrap `<App />`, our root component, inside a `<Provider>` to make the store available to all components in the component tree, as we saw in [Usage with Re... | 1 |
Python | Python | add doc string | 4812a5a7678fffef1751ba45ad5ae0b5e8854b70 | <ide><path>examples/single_model_scripts/run_multiple_choice.py
<ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<del>""" Finetuning the library models for multiple choice (... | 4 |
PHP | PHP | update requesthandler tests for new view classes | b0d0e06b9739ee849694eb091d5a622df7b4a509 | <ide><path>lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php
<ide> public function testRenderAsWithAttachment() {
<ide>
<ide> $this->RequestHandler->renderAs($this->Controller, 'xml', array('attachment' => 'myfile.xml'));
<ide>
<del> $expected = 'RequestHandlerTest' . DS . 'xml';
<del> $this... | 1 |
Javascript | Javascript | improve date format | 17dcc40ffd5d7dcce06170a0b7d4a53375628082 | <ide><path>src/locale/sl.js
<ide> export default moment.defineLocale('sl', {
<ide> longDateFormat : {
<ide> LT : 'H:mm',
<ide> LTS : 'H:mm:ss',
<del> L : 'DD.MM.YYYY',
<add> L : 'DD. MM. YYYY',
<ide> LL : 'D. MMMM YYYY',
<ide> LLL : 'D. MMMM YYYY H:mm',
<ide> LL... | 2 |
Java | Java | add copytouricomponentsbuilder method | 0e7eecfe348428efa9e6ab4c2cda1c83d2ca7201 | <ide><path>spring-web/src/main/java/org/springframework/web/util/HierarchicalUriComponents.java
<ide> public URI toUri() {
<ide> }
<ide> }
<ide>
<add> @Override
<add> protected void copyToUriComponentsBuilder(UriComponentsBuilder builder) {
<add> builder.scheme(getScheme());
<add> builder.userInfo(getUserInfo());... | 6 |
Javascript | Javascript | fix race in test case | 96703ca57a6e5dbd4a8a9b61dd0c72bb3e7171ba | <ide><path>test/Compiler-caching.test.js
<ide> describe("Compiler (caching)", () => {
<ide>
<ide> // Copy over file since we"ll be modifying some of them
<ide> fs.mkdirSync(fixturePath);
<del> fs.createReadStream(path.join(__dirname, "fixtures", "a.js")).pipe(
<del> fs.createWriteStream(aFilepath)
<del> );
<de... | 1 |
Javascript | Javascript | fix typo in ignoreplugin | aa172f0a359ab3c0b0987101c64c8b41b07d581f | <ide><path>lib/IgnorePlugin.js
<ide> class IgnorePlugin {
<ide> * Only returns true if a "resourceRegExp" exists
<ide> * and the resource given matches the regexp.
<ide> */
<del> checkResouce(resource) {
<add> checkResource(resource) {
<ide> if(!this.resourceRegExp) {
<ide> return false;
<ide> }
<ide> clas... | 1 |
Java | Java | add mergedannotation.getroot() method | 83cb51aec694dd7b6d9100140a1e11ee03571e02 | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotation.java
<ide> @Nullable
<ide> MergedAnnotation<?> getParent();
<ide>
<add> /**
<add> * Get the root annotation, i.e. the {@link #getDepth() depth} {@code 0}
<add> * annotation as directly declared on the source.
<add> * @return... | 5 |
Text | Text | fix typo in `tools/code_cache/readme.md` | c18ca140a12b543a3f970ef379f384ebd3297c3d | <ide><path>tools/code_cache/README.md
<ide>
<ide> This is the V8 code cache builder of Node.js. It pre-compiles all the
<ide> JavaScript native modules of Node.js and serializes the code cache (including
<del>the bytecodes) that will be embeded into the Node.js executable. When a Node.js
<add>the bytecodes) that will ... | 1 |
Text | Text | provide initial edits to "your first package" docs | e7a14bf17fa185a004cd2904cbac1cd80b9ddfb3 | <ide><path>docs/your-first-package.md
<ide> # Creating Your First Package
<ide>
<del>Let's take a look at creating our first package.
<add>Let's take a look at creating your first package.
<ide>
<del>To get started hit `cmd-p`, and start typing "Package Generator." to generate
<del>the package. Once you select the pa... | 1 |
Python | Python | add german stopwords | 4d9aae7d6a52dbc17809d9204acc42f384ad8532 | <ide><path>spacy/de/language_data.py
<ide> import re
<ide>
<ide>
<del>STOP_WORDS = set()
<add>STOP_WORDS = set("""
<add>a ab aber ach acht achte achten achter achtes
<add>ag alle allein allem allen aller allerdings alles
<add>allgemeinen als also am an andere anderen
<add>andern anders au auch auf aus ausser außer
<a... | 1 |
Go | Go | fix a lb rule race in loadbalancer | 4d1a5ce9681bb56aed2d7be1d23d5af642e429c0 | <ide><path>libnetwork/service_linux.go
<ide> func (c *controller) addServiceBinding(name, sid, nid, eid string, vip net.IP, i
<ide> }
<ide> c.Unlock()
<ide>
<add> // Add endpoint IP to special "tasks.svc_name" so that the
<add> // applications have access to DNS RR.
<add> n.(*network).addSvcRecords("tasks."+name, ip... | 1 |
Javascript | Javascript | add debug mode | 3d505ef0c53ee2a886f41891ab56ead6deb67257 | <ide><path>src/js/player.js
<ide> class Player extends Component {
<ide> // Init state userActive_
<ide> this.userActive_ = false;
<ide>
<add> // Init debugEnabled_
<add> this.debugEnabled_ = false;
<add>
<ide> // if the global option object was accidentally blown away by
<ide> // someone, bail e... | 2 |
Java | Java | expose logprefix in clientresponse | 09b6730f3d89b55819ea9bea66314269b7cc4fd9 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ClientResponse.java
<ide> public interface ClientResponse {
<ide> */
<ide> Mono<WebClientResponseException> createException();
<ide>
<add> /**
<add> * Return a log message prefix to use to correlate messages for this response.... | 3 |
Text | Text | adjust wording to eliminate awkward typography | c4d75ea104e0e9a9f9180d6a2750886dc28a1012 | <ide><path>doc/api/modules.md
<ide> By default, Node.js will treat the following as CommonJS modules:
<ide> * Files with an extension that is not `.mjs`, `.cjs`, `.json`, `.node`, or `.js`
<ide> (when the nearest parent `package.json` file contains a top-level field
<ide> [`"type"`][] with a value of `"module"`, th... | 1 |
Java | Java | add experiment for running the js on view creation | 2dd33b16df16bc51437d7eab78741959fb450abd | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java
<ide> import com.facebook.react.bridge.WritableMap;
<ide> import com.facebook.react.bridge.WritableNativeMap;
<ide> import com.facebook.react.common.annotations.VisibleForTesting;
<add>import com.facebook.react.config.ReactFeatureFlags;
<ide> i... | 2 |
Python | Python | add tests for .ctypes.data_as | e2fa2ce5c06f902b7a50e1a7d34794cce0f076b7 | <ide><path>numpy/core/tests/test_multiarray.py
<ide> def test_ctypes_data_as_holds_reference(self, arr):
<ide> break_cycles()
<ide> assert_(arr_ref() is None, "unknowable whether ctypes pointer holds a reference")
<ide>
<add> def test_ctypes_as_parameter_holds_reference(self):
<add> arr = np.... | 1 |
PHP | PHP | fix remaining failing test | 094c7a7504522b85146cee68e0d73e671beb6919 | <ide><path>tests/Database/DatabaseMySqlSchemaGrammarTest.php
<ide> public function testCharsetCollationCreateTable()
<ide> $conn = $this->getConnection();
<ide> $conn->shouldReceive('getConfig')->once()->with('charset')->andReturn('utf8');
<ide> $conn->shouldReceive('getConfig')->once()->with('c... | 1 |
Java | Java | android support for perspective transform | 3e760f48c5a28b592cb60c4060ca28a1574f6274 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java
<ide> import android.os.Build;
<ide> import android.view.View;
<ide>
<add>import com.facebook.react.bridge.ReadableArray;
<ide> import com.facebook.react.bridge.ReadableMap;
<ide> import com.facebook.react.uimanager.annotations.Rea... | 1 |
Text | Text | revise url.resolve() text | 6023bedc07bbbd6128aabe8bb9b4f193f40712c5 | <ide><path>doc/api/url.md
<ide> changes:
<ide>
<ide> > Stability: 3 - Legacy: Use the WHATWG URL API instead.
<ide>
<del>* `from` {string} The Base URL being resolved against.
<del>* `to` {string} The HREF URL being resolved.
<add>* `from` {string} The base URL to use if `to` is a relative URL.
<add>* `to` {string} T... | 1 |
Python | Python | add drain option when canceling dataflow pipelines | e5713e00b3afcba6f78006ec0e360da317858e4d | <ide><path>airflow/providers/google/cloud/hooks/dataflow.py
<ide> class _DataflowJobsController(LoggingMixin):
<ide> :param num_retries: Maximum number of retries in case of connection problems.
<ide> :param multiple_jobs: If set to true this task will be searched by name prefix (``name`` parameter),
<ide> ... | 4 |
Javascript | Javascript | fix broken symbolication | ad95aea51dceae1df82f8a8972357aae414e24aa | <ide><path>packager/react-packager/src/Server/index.js
<ide> class Server {
<ide> const symbolicatingLogEntry =
<ide> print(log(createActionStartEntry('Symbolicating')));
<ide>
<del> new Promise.resolve(req.rawBody).then(body => {
<add> Promise.resolve(req.rawBody).then(body => {
<ide> const stac... | 1 |
Ruby | Ruby | remove lasgn since ast is mutated | 0042054ea873a8d25d9bbdc4c7fe0febe1b76042 | <ide><path>activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb
<ide> def join_target_table(relation, condition)
<ide> conditions << process_conditions(options[:conditions], aliased_table_name)
<ide> end
<ide>
<del> join = relation.join(targ... | 2 |
Java | Java | add blank line between java and javax imports | d945ae919140b4f7436ffb8c4b6bc1843c264bad | <ide><path>spring-aop/src/test/java/org/springframework/aop/framework/ProxyFactoryTests.java
<ide>
<ide> import java.util.ArrayList;
<ide> import java.util.List;
<add>
<ide> import javax.accessibility.Accessible;
<ide> import javax.swing.JFrame;
<ide> import javax.swing.RootPaneContainer;
<ide><path>spring-aspects/src... | 300 |
Python | Python | remove dependency on examples/seq2seq from rag | fe326bd5cf1aa4ec65286e6500070f5440420a82 | <ide><path>examples/rag/callbacks.py
<ide> import logging
<ide> import os
<add>from pathlib import Path
<ide>
<del>from pytorch_lightning.callbacks import ModelCheckpoint
<add>import numpy as np
<add>import pytorch_lightning as pl
<add>import torch
<add>from pytorch_lightning.callbacks import EarlyStopping, ModelCheck... | 3 |
Text | Text | update the pr template | 8d3d8b34401fa128a26c39a385670c20352e76b9 | <ide><path>PULL_REQUEST_TEMPLATE.md
<ide> Make sure tests pass on both Travis and Circle CI.
<ide> **Code formatting**
<ide>
<ide> Look around. Match the style of the rest of the codebase. See also the simple [style guide](https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md#style-guide).
<add>
<add>Fo... | 1 |
PHP | PHP | ignore case in blade foreach compiler | 4591d90f6de700a7b67dedb0147d2c9dcf6acd51 | <ide><path>src/Illuminate/View/Compilers/BladeCompiler.php
<ide> protected function compileFor($expression)
<ide> */
<ide> protected function compileForeach($expression)
<ide> {
<del> preg_match('/\( *(.*) +as *([^\)]*)/', $expression, $matches);
<add> preg_match('/\( *(.*) +as *([^\)]*)/i', ... | 2 |
Ruby | Ruby | fix typo /a http/an http/ [ci skip] | db6884a772740900a9e67e59abe77b6a260c72c3 | <ide><path>activestorage/app/models/active_storage/blob.rb
<ide> def delete
<ide> end
<ide>
<ide> # Deletes the file on the service and then destroys the blob record. This is the recommended way to dispose of unwanted
<del> # blobs. Note, though, that deleting the file off the service will initiate a HTTP connect... | 1 |
Java | Java | copy cookies and hints to serverresponse builders | c152d246a8ce99628ea5b28f91e96cfbeb434186 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/DefaultEntityResponseBuilder.java
<ide> public EntityResponse.Builder<T> hint(String key, Object value) {
<ide> return this;
<ide> }
<ide>
<add> @Override
<add> public EntityResponse.Builder<T> hints(Consumer<Map<String, Object... | 5 |
Javascript | Javascript | add more validation in `pdfworker.fromport` | 47a9d38280fc54d156c77ad89e7ac1b2b4bcc4ec | <ide><path>src/display/api.js
<ide> var PDFWorker = (function PDFWorkerClosure() {
<ide> * @param {PDFWorkerParameters} params - The worker initialization parameters.
<ide> */
<ide> PDFWorker.fromPort = function(params) {
<add> if (!params || !params.port) {
<add> throw new Error('PDFWorker.fromPort - i... | 1 |
Ruby | Ruby | read all formula in a 'rescue' block | ab9ccd7d8977e7929d948695b1f3d585cfb882f2 | <ide><path>Library/Homebrew/formula.rb
<ide> def self.read name
<ide> def self.read_all
<ide> # yields once for each
<ide> Formulary.names.each do |name|
<del> require Formula.path(name)
<del> klass_name = Formula.class_s(name)
<del> klass = eval(klass_name)
<del> yield name, klass
<add> ... | 1 |
Python | Python | raise e983 early on in docbin init | f3f7afa21f05b19f84f2bc1692253f5b8ff5410a | <ide><path>spacy/errors.py
<ide> class Errors:
<ide> "to token boundaries.")
<ide> E982 = ("The `Token.ent_iob` attribute should be an integer indexing "
<ide> "into {values}, but found {value}.")
<del> E983 = ("Invalid key for '{dict}': {key}. Available keys: "
<add> E983 = ("Invalid ... | 2 |
PHP | PHP | fix coding standards | ee4a116936efe6c015ecd69cd55885ce8fbdf7f8 | <ide><path>app/webroot/index.php
<ide> if (function_exists('ini_set')) {
<ide> ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
<ide> }
<del> if (!include('Cake' . DS . 'bootstrap.php')) {
<add> if (!include ('Cake' . DS . 'bootstrap.php')) {
<ide> $failed = true;
<ide> }
<i... | 5 |
Text | Text | update removeclippedsubviews default value | d5678e95e1d12704ee8c2101d722b84f8ce5732e | <ide><path>docs/Performance.md
<ide> should continue to render rows.
<ide> "When true, offscreen child views (whose `overflow` value is `hidden`)
<ide> are removed from their native backing superview when offscreen. This
<ide> can improve scrolling performance on long lists. The default value is
<del>false."
<add>`tru... | 1 |
Ruby | Ruby | use drop rather than calculate the array length | d440fa07dc9b20880d0f22071319d8a9babe4e6b | <ide><path>activerecord/lib/active_record/associations/join_dependency.rb
<ide> def graft(*associations)
<ide> end
<ide>
<ide> def join_associations
<del> join_parts.last(join_parts.length - 1)
<add> join_parts.drop 1
<ide> end
<ide>
<ide> def join_base | 1 |
PHP | PHP | update doc block | 6ca78def627f665ae76a58031b7fc7d836091903 | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> public function decodeResponseJson()
<ide> }
<ide>
<ide> /**
<del> * Alias for the "decodeResponseJson" method.
<add> * Validate and return the decoded response JSON.
<ide> *
<ide> * @return array
<ide> */ | 1 |
Javascript | Javascript | remove stray console log | abc0d3c534743897c02a8e434e2ccabde9026c07 | <ide><path>spec/text-editor-element-spec.js
<ide> describe('TextEditorElement', () => {
<ide> })
<ide>
<ide> it("honors the 'readonly' attribute", async function() {
<del> console.log('set attribute');
<ide> jasmineContent.innerHTML = "<atom-text-editor readonly>"
<ide> const element = jasmineContent.fi... | 1 |
Javascript | Javascript | remove unused import (patch) | 8082eddaeff82479831ceee0791c010cc8aa8919 | <ide><path>examples/with-apollo/lib/with-apollo-client.js
<ide> import initApollo from './init-apollo'
<ide> import Head from 'next/head'
<ide> import { getDataFromTree } from 'react-apollo'
<del>import propTypes from 'prop-types'
<ide>
<ide> export default (App) => {
<ide> return class Apollo extends React.Componen... | 1 |
PHP | PHP | add missing params for parent call | beff12d8a55d74fd24719c47897f673c9e1c2cae | <ide><path>lib/Cake/Test/Case/Model/BehaviorCollectionTest.php
<ide> public function afterFind(Model $model, $results, $primary = false) {
<ide> public function beforeSave(Model $model, $options = array()) {
<ide> $settings = $this->settings[$model->alias];
<ide> if (!isset($settings['beforeSave']) || $settings['b... | 1 |
Python | Python | add function to check for table existence | 03834af4975fec637d6626bedd6ccb4fdf70e339 | <ide><path>airflow/hooks/hive_hooks.py
<ide> from tempfile import NamedTemporaryFile
<ide>
<ide>
<del>from thrift.transport import TSocket
<del>from thrift.transport import TTransport
<add>from thrift.transport import TSocket, TTransport
<ide> from thrift.protocol import TBinaryProtocol
<ide> from hive_service import... | 1 |
Python | Python | add refesh time for server side | 41a29c99c3f36149035219abc8f20d681bdcf5e8 | <ide><path>glances/glances.py
<ide> class GlancesHandler(SimpleXMLRPCRequestHandler):
<ide> Main XMLRPC handler
<ide> """
<ide> rpc_paths = ('/RPC2',)
<add>
<add> def log_message(self, format, *args):
<add> # No message displayed on the server side
<add> pass
<ide>
<ide>
<ide> cla... | 1 |
Python | Python | decrease memory usage of lstm text gen example | b9fbc458ed70e6bffdfc5af9d9f0ad554b6c0cec | <ide><path>examples/lstm_text_generation.py
<ide> print('nb sequences:', len(sentences))
<ide>
<ide> print('Vectorization...')
<del>X = np.zeros((len(sentences), maxlen, len(chars)))
<del>y = np.zeros((len(sentences), len(chars)))
<add>X = np.zeros((len(sentences), maxlen, len(chars)), dtype=np.bool)
<add>y = np.zeros... | 1 |
Python | Python | teach gyp msvs generator about marmasm | 06c10cdc4c20e46885e3af94281ec63cda5e7712 | <ide><path>tools/gyp/pylib/gyp/MSVSSettings.py
<ide> def _ValidateSettings(validators, settings, stderr):
<ide> _lib = _Tool('VCLibrarianTool', 'Lib')
<ide> _manifest = _Tool('VCManifestTool', 'Manifest')
<ide> _masm = _Tool('MASM', 'MASM')
<add>_armasm = _Tool('ARMASM', 'ARMASM')
<ide>
<ide>
<ide> _AddTool(_compile)... | 2 |
Javascript | Javascript | add clearqueue for clearing non-fx queues | d857315967a1cc07b73924bbdf2eb12f4f910c45 | <ide><path>src/data.js
<ide> jQuery.extend({
<ide>
<ide> if( fn !== undefined )
<ide> fn.call(elem, function() { jQuery(elem).dequeue(type); });
<del> }
<add> },
<ide> });
<ide>
<ide> jQuery.fn.extend({
<ide> jQuery.fn.extend({
<ide> return this.each(function(){
<ide> jQuery.dequeue( this, type );
<ide> }... | 2 |
Javascript | Javascript | remove highlight caching for now | 8aabd026adad3c03d593600700c70c169e7a1492 | <ide><path>src/text-editor-component.js
<ide> class LinesTileComponent {
<ide> constructor (props) {
<ide> this.props = props
<ide> this.linesVnode = null
<del> this.highlightsVnode = null
<ide> etch.initialize(this)
<ide> }
<ide>
<ide> class LinesTileComponent {
<ide> if (newProps.width !== t... | 1 |
Python | Python | improve code on f-strings and brevity | dbee5f072f68c57bce3443e5ed07fe496ba9d76d | <ide><path>ciphers/enigma_machine2.py
<ide> def _validator(
<ide> rotorpos1, rotorpos2, rotorpos3 = rotpos
<ide> if not 0 < rotorpos1 <= len(abc):
<ide> raise ValueError(
<del> f"First rotor position is not within range of 1..26 (" f"{rotorpos1}"
<add> "First rotor position is not ... | 10 |
PHP | PHP | add config file | 6bf532e9665e280bd643059997db397427d27d42 | <ide><path>tests/test_app/invalid_routes/routes.php
<add><?php
<add>/**
<add> * Test routes file with routes that trigger a missing route class error.
<add> * Application requests should have InvalidArgument error rendered.
<add> */
<add>$routes->setRouteClass('DoesNotExist');
<add>$routes->get('/', ['controller' => 'P... | 1 |
Go | Go | remove unused parameter | 0f134b4bf81a4d0160932852854b190b7ee7e3b9 | <ide><path>graph.go
<ide> func (graph *Graph) Create(layerData Archive, container *Container, comment, aut
<ide> img.Container = container.ID
<ide> img.ContainerConfig = *container.Config
<ide> }
<del> if err := graph.Register(nil, layerData, layerData != nil, img); err != nil {
<add> if err := graph.Register(nil,... | 3 |
Ruby | Ruby | match the units in `duration` (milliseconds) | 0c0dba1caf72f78558554a28ca4fc01923cec6f1 | <ide><path>activesupport/lib/active_support/notifications/instrumenter.rb
<ide> def finish!
<ide> @allocation_count_finish = now_allocations
<ide> end
<ide>
<add> # Returns the CPU time (in milliseconds) passed since the call to
<add> # +start!+ and the call to +finish!+
<ide> def cpu_tim... | 1 |
Ruby | Ruby | fix missed deprecations | 0a1f2ad4f11f004611c1379899b027d86bc99304 | <ide><path>activerecord/lib/active_record/railtie.rb
<ide> class Railtie < Rails::Railtie # :nodoc:
<ide> # this connection is trivial: the rest of the pool would need to be
<ide> # populated anyway.
<ide>
<del> clear_active_connections!(:all)
<del> flush_idle_connections!(:all)
<... | 1 |
PHP | PHP | add stub method for reseting sequences | 7d34e2993d16057c424a8012a67d8d4810ea751c | <ide><path>lib/Cake/Database/Connection.php
<ide> public function releaseSavePoint($name) {
<ide> }
<ide>
<ide> /**
<del> * Rollsback a save point by its name
<add> * Rollback a save point by its name
<ide> *
<ide> * @param string $name
<ide> * @return void
<ide> public function rollbackSavepoint($name) {
<ide> ... | 1 |
Text | Text | add tests to personal library | bd593667f6fbfc3233b1378a873a40c911d0a66b | <ide><path>curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/personal-library.md
<ide> forumTopicId: 301571
<ide>
<ide> ## Description
<ide> <section id='description'>
<del>Build a full stack JavaScript app that is functionally similar to this: <a href="https://personal-library.freecodecamp... | 1 |
Javascript | Javascript | add spec for tvnavigationeventemitter | 781c68cb43a5e4bb2a3a7e5053b673de6484a9d3 | <ide><path>Libraries/Components/AppleTV/NativeTVNavigationEventEmitter.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @flow
<add> * @forma... | 2 |
Python | Python | fix flaky on_kill | e2345ffca9013de8dedaa6c75dbecb48c073353f | <ide><path>tests/dags/test_on_kill.py
<ide> class DummyWithOnKill(DummyOperator):
<ide> def execute(self, context):
<ide> import os
<ide>
<add> self.log.info("Signalling that I am running")
<add> # signal to the test that we've started
<add> with open("/tmp/airflow_on_kill_running", "w... | 2 |
Javascript | Javascript | set maxwidth during title draw to avoid overflow | fb302d5f0074b5d367386319e696d5718b78a88d | <ide><path>src/core/core.title.js
<ide> module.exports = function(Chart) {
<ide> top = me.top,
<ide> left = me.left,
<ide> bottom = me.bottom,
<del> right = me.right;
<add> right = me.right,
<add> maxWidth;
<ide>
<ide> ctx.fillStyle = valueOrDefault(opts.fontColor, globalDefaults.default... | 1 |
Python | Python | combine legacy sections of _formatarray | fdd5c2d309c859f91784716ab03671c362ebbaba | <ide><path>numpy/core/arrayprint.py
<ide> def _formatArray(a, format_function, rank, max_line_len, next_line_prefix,
<ide> if rank == 0:
<ide> return format_function(a[()]) + '\n'
<ide>
<del> if summary_insert and 2*edge_items < len(a):
<add> show_summary = summary_insert and 2*edge_items < len(a)
<a... | 1 |
Python | Python | add admin to installed apps to avoid test failures | 20f1203aaca951d58afe01a31ac7c7a056dd70c5 | <ide><path>tests/conftest.py
<ide> def pytest_configure(config):
<ide> 'django.contrib.messages.middleware.MessageMiddleware',
<ide> ),
<ide> INSTALLED_APPS=(
<add> 'django.contrib.admin',
<ide> 'django.contrib.auth',
<ide> 'django.contrib.contenttypes',
<i... | 1 |
Python | Python | add linspace benchmark | e34d2a7b1e8d70d3fd99552dc77626add7a59e16 | <ide><path>benchmarks/benchmarks/bench_function_base.py
<ide>
<ide> import numpy as np
<ide>
<add>class Linspace(Benchmark):
<add> def setup(self):
<add> self.d = np.array([1, 2, 3])
<add>
<add> def time_linspace_scalar(self):
<add> np.linspace(0, 10, 2)
<add>
<add> def time_linspace_array(self... | 1 |
Ruby | Ruby | add missing closing tag [ci skip] | 77bdbb5f41307f5566f41964479369521a616223 | <ide><path>activejob/lib/active_job/exceptions.rb
<ide> module ClassMethods
<ide> # ==== Options
<ide> # * <tt>:wait</tt> - Re-enqueues the job with a delay specified either in seconds (default: 3 seconds),
<ide> # as a computing proc that the number of executions so far as an argument, or as a symb... | 1 |
Go | Go | use net/http instead of x/ctxhttp | 3e5b9cb46688ee5d6886ad3be4cb591f1ba49ed1 | <ide><path>client/request.go
<ide> import (
<ide> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/api/types/versions"
<ide> "github.com/pkg/errors"
<del> "golang.org/x/net/context/ctxhttp"
<ide> )
<ide>
<ide> // serverResponse is a wrapper for http API responses.
<ide> func (cli *Client) sendRe... | 1 |
Java | Java | introduce httpmessage hierarchy | bab3b6fd1c4946cdba59aca365aba1a7f4ca6033 | <add><path>spring-web-reactive/src/main/java/org/springframework/http/ReactiveHttpInputMessage.java
<del><path>spring-web-reactive/src/main/java/org/springframework/reactive/web/http/ServerHttpRequest.java
<ide> * See the License for the specific language governing permissions and
<ide> * limitations under the Licens... | 32 |
Text | Text | add a note on actioncontroller guide about 404 | 43800057fc1cabe626f00d30dc302e2dde56fdfd | <ide><path>guides/source/action_controller_overview.md
<ide> Rails default exception handling displays a "500 Server Error" message for all e
<ide>
<ide> ### The Default 500 and 404 Templates
<ide>
<del>By default a production application will render either a 404 or a 500 error message. These messages are contained i... | 1 |
Mixed | Javascript | replace ipv6only option with `'udp6-only'` type | aafdc2fcad51ec0f4ecd99424d6d2055d7878fab | <ide><path>doc/api/quic.md
<ide> added: REPLACEME
<ide> IPv6 address or a host name. If a host name is given, it will be resolved
<ide> to an IP address.
<ide> * `port` {number} The local port to bind to.
<del> * `type` {string} Either `'udp4'` or `'upd6'` to use either IPv4 or IPv6,
<del> respe... | 6 |
Python | Python | add tests for transform_fieldname methods | dc650f77b5f377bbfab3da66455feb57b195a1da | <ide><path>rest_framework/tests/test_serializer.py
<ide> def test_serializer_supports_slug_many_relationships(self):
<ide> serializer = SimpleSlugSourceModelSerializer(data={'text': 'foo', 'targets': [1, 2]})
<ide> self.assertTrue(serializer.is_valid())
<ide> self.assertEqual(serializer.data, {'... | 1 |
Text | Text | add note about adding new images | 262983f88ebeb4a117e1ddce14b939e1e11fa201 | <ide><path>docs/Images.md
<ide> And `button.js` code contains
<ide>
<ide> Packager will bundle and serve the image corresponding to device's screen density, e.g. on iPhone 5s `check@2x.png` will be used, on Nexus 5 – `check@3x.png`. If there is no image matching the screen density, the closest best option will be sele... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.