patch stringlengths 18 160k | callgraph stringlengths 4 179k | summary stringlengths 4 947 | msg stringlengths 6 3.42k |
|---|---|---|---|
@@ -683,7 +683,7 @@ module.exports = class ftx extends Exchange {
this.safeNumber (ohlcv, 'high'),
this.safeNumber (ohlcv, 'low'),
this.safeNumber (ohlcv, 'close'),
- this.safeNumber (ohlcv, 'volume'),
+ this.safeNumber (ohlcv, 'volume', 0),
];
... | [No CFG could be retrieved] | Get the order book order book params and market id for a given key. Get OHLCV . | i don't think we should default to 0 here |
@@ -53,7 +53,7 @@ class RouteServiceProvider extends ServiceProvider
protected function mapWebRoutes(Router $router)
{
$router->group([
- 'namespace' => $this->namespace, 'middleware' => 'web',
+ 'namespace' => $this->namespace, ['middleware' => 'web'],
], function ($ro... | [RouteServiceProvider->[mapWebRoutes->[group],map->[mapWebRoutes]]] | Map web routes. | Actually, 'middleware' => 'web' can work However, your syntax is wrong, it should be 'middleware' => ['web'] |
@@ -63,6 +63,12 @@ public final class HoodieMetadataConfig extends DefaultHoodieConfig {
public static final String CLEANER_COMMITS_RETAINED_PROP = METADATA_PREFIX + ".cleaner.commits.retained";
public static final int DEFAULT_CLEANER_COMMITS_RETAINED = 3;
+ public static final String HOODIE_ASSUME_DATE_PARTIT... | [HoodieMetadataConfig->[Builder->[build->[HoodieMetadataConfig]]]] | Creates a builder for a HoodieMetadataConfig. | consolidated everything that affects listing etc here. |
@@ -229,7 +229,7 @@ final class EngineContext {
}
}
- private void unregisterQuery(final QueryMetadata query) {
+ void unregisterQuery(final QueryMetadata query) {
if (query instanceof PersistentQueryMetadata) {
final PersistentQueryMetadata persistentQuery = (PersistentQueryMetadata) query;
... | [EngineContext->[createDdlCommand->[create],prepare->[prepare],create->[EngineContext],createSandbox->[createSandbox,create],parse->[parse]]] | Register a query. | I think we should piggy-back on the work in #5766 for query upgrades; we could consider a restart as an upgrade which just upgrades to itself. That way we could reuse the "replace query" codepath that I worked on for that - specifically if you call `registerQuery` with a query with the same ID it will close the old one... |
@@ -999,6 +999,14 @@ func TestUpdatePolicy(t *testing.T) {
{"fails with InvalidArgument when missing policy ID", func(t *testing.T) {
req := api_v2.UpdatePolicyReq{
Name: "testPolicy1",
+ Statements: []*api_v2.Statement{
+ &api_v2.Statement{
+ Effect: api_v2.Statement_ALLOW,
+ Resources:... | [NewWithSeed,DeepEqual,UnaryInterceptor,NewProjectsServer,MemberSliceToStringSlice,Flush,New,NewV4,Pristine,NotNil,RegisterProjectsServer,Zero,ProjectsCache,PoliciesCache,NoError,Fatalf,Register,Seed,Lorem,UpdatePolicy,AddPolicyMembers,Word,DeletePolicy,Helper,False,NewMockProjectUpdateManager,GetPolicy,LoadDevCerts,Ad... | TestGetPolicy tests that the policy exists and that it does not exist. UpdatePolicy adds some policies to the store and checks if the policy name is correct. | [nit] Guess we could have introduced a variable and re-used that instead of repeating the same block again and again |
@@ -140,6 +140,7 @@ def main(): # pylint: disable=too-many-branches, too-many-statements
all_auths = [
configurator.ApacheConfigurator(config),
standalone.StandaloneAuthenticator(),
+ dns.DNSAuthenticator(config)
]
try:
auth = client.determine_authenticator(all_auths)
| [read_file->[open,ArgumentTypeError],main->[enhance_config,revoke,geteuid,NcursesDisplay,obtain_certificate,addHandler,provideUtility,determine_authenticator,validate_key_csr,rollback,FileDisplay,providedBy,Key,deploy_certificate,create_parser,setLevel,format,view_config_changes,StandaloneAuthenticator,DialogHandler,ch... | Command line entry point for the Zope encryption command. Get the list of domains and keys that can be used to deploy the certificate chain and the. | missing comma at EOL |
@@ -3,6 +3,10 @@
frappe.ui.form.on('Blog Post', {
refresh: function(frm) {
+ frappe.db.get_single_value('Blog Settings', 'show_cta_in_blog').then(value => {
+ frm.set_df_property("hide_cta", "hidden", !value);
+ });
+
generate_google_search_preview(frm);
},
title: function(frm) {
| [No CFG could be retrieved] | On page refresh on google search preview Displays a hidden hidden element with a date and a description of the . | I think Blog CTA should be per blog. |
@@ -1,4 +1,6 @@
-# Just importing monkeypatch does the trick - don't remove this line
-from . import monkeypatch # noqa
+from django.conf import settings
+
+if not settings.DJANGO_1_10:
+ from . import monkeypatch # noqa
default_app_config = 'kuma.core.apps.CoreConfig'
| [No CFG could be retrieved] | Monkey patches the core config to allow for the user to set the default app config. | I'm glad we can get rid of this file soon |
@@ -138,7 +138,7 @@ class RemoteLOCAL(RemoteBASE):
return os.path.getsize(fspath_py35(path_info))
def walk_files(self, path_info):
- for fname in walk_files(path_info, self.repo.dvcignore):
+ for fname in walk_files(path_info, self.repo.tree.dvcignore):
yield PathInfo(fname)
... | [RemoteLOCAL->[pull->[_process],isfile->[isfile],unprotect->[exists,_unprotect_dir,isdir,_unprotect_file],push->[_process],_unprotect_file->[remove],remove->[exists,remove],symlink->[symlink],_create_unpacked_dir->[makedirs],_unprotect_dir->[_unprotect_file,walk_files],copy->[copy,remove],move->[isfile,move,makedirs],_... | Walk through files in path_info and yield PathInfo objects. | We have a bug here, this function is still broken by design, i.e. it has two arguments that need to be consistent, i.e. dvcignore tree might be of some branch, while we list working dir. Other issue with this is that dvcignores should not work outside repo (or should they?), but they are used here. We should carefully ... |
@@ -145,11 +145,13 @@ def test_stubgen(testcase: DataDrivenTestCase) -> None:
shutil.rmtree(out_dir)
-def reset_importlib_caches() -> None:
- try:
- importlib.invalidate_caches()
- except (ImportError, AttributeError):
- pass
+def reset_importlib_cache(entry: str) -> None:
+ # import... | [test_stubgen->[,generate_stub,assert_string_arrays_equal,load_output,unlink,join,insert,reset_importlib_caches,NamedTemporaryFile,generate_stub_for_module,endswith,close,isabs,write,basename,parse_flags,bytes,mkdir,rmtree],StubgenPythonSuite->[run_case->[test_stubgen]],parse_flags->[group,search,parse_options],load_ou... | Reset the cache of missing missing files. | There is something missing in this sentence. Maybe this should be "... clear cache entries *that* indicate ..." |
@@ -129,7 +129,10 @@ export function localizeApp() {
}
}
- const messages = translations[bestAvailableLanguage]
+ const messages = translations[bestAvailableLanguage];
+ if (messages && messages['header.title']) {
+ document.title = messages['header.title']
+ }
let selectedLanguageCode = bestAvailab... | [No CFG could be retrieved] | Add locale data to react - intl. | Thanks for the PR @riverfor! It looks like this line is causing a test failure. You can see it by inspecting the TravisCI output, or by running `cd origin-dapp && npm run test`. It's just a formatting error caused by the extra semicolon because we are using ESLint for code formatting. |
@@ -237,6 +237,8 @@ module RepositoryHelper
flash_message(:warning, I18n.t('student.submission.exist'))
when :not_exist
flash_message(:warning, I18n.t('student.submission.not_exist'))
+ when :file_not_exist
+ flash_message(:warning, I18n.t('student.submission.file_not_exist'))
... | [remove_files->[nil?,revision_identifier,new,user_name,split,to_s,sanitize_file_name,get_transaction,join,remove,each,commit_transaction],add_files->[revision_identifier,new,size,original_filename,join,nil?,replace,sanitize_file_name,commit_transaction,to_s,read,get_transaction,each,present?,split,get_latest_revision,p... | Flash messages if there is a missing key in the messages hash. | It seems that this symbol is no longer used (nor the string `'student.submission.file_not_exist'`). |
@@ -120,11 +120,11 @@ public class FetchElasticsearchHttp extends AbstractElasticsearchHttpProcessor {
public static final PropertyDescriptor TYPE = new PropertyDescriptor.Builder()
.name("fetch-es-type")
.displayName("Type")
- .description("The (optional) type of this document... | [FetchElasticsearchHttp->[buildRequestURL->[getValue,isDynamic,getName,addPathSegment,addQueryParameter,getKey,newBuilder,url,MalformedURLException,collect,isEmpty,joining,entrySet],setup->[setup],onTrigger->[getValue,parseJsonResponse,fetch,create,forName,nanoTime,warn,remove,buildRequestURL,yield,getLocalizedMessage,... | On the processor properties and the results of the fetch operation. Add failure retry and not found relations. | Do we need to make it mandatory?? If so, would you elaborate why? I guess ElasticsearchTypeValidator should be enough. Probably you want it to align with other processors. If so, I'd suggest make it optional in all this processor family because ElasticsearchTypeValidator can handle it properly. And users will not have ... |
@@ -213,7 +213,7 @@ const angularFiles = {
templates: [
{
file: 'entities/_entity-management.component.html', method: 'copyHtml', template: true,
- renameTo: generator => `entities/${generator.entityFolderName}/${generator.entityFileName}.component.h... | [No CFG could be retrieved] | Entity - management - detail - dialog - dialog - client rename to _entity - management. component. ts. | lets keep it as `entityFileName` and fix the tests so that this is compatible to angular CLI |
@@ -217,6 +217,15 @@ public class VolumeDaoImpl extends GenericDaoBase<VolumeVO, Long> implements Vol
return listBy(sc);
}
+ @Override
+ public List<VolumeVO> findReadyAndAllocatedRootVolumesByInstance(long instanceId) {
+ SearchCriteria<VolumeVO> sc = RootDiskStateSearch.create();
+ ... | [VolumeDaoImpl->[remove->[remove],getImageFormat->[getHypervisorType]]] | Finds all the ready root volumes for a given instance. | nitpick: `findReadyAndAllocatedRootVolumeByInstance` (singular) we are only looking for one volume, can we encounter more? |
@@ -68,8 +68,14 @@ class _BearerTokenCredentialPolicyBase(object):
@property
def _need_new_token(self):
# type: () -> bool
- return not self._token or self._token.expires_on - time.time() < 300
-
+ return not self._token or self._token.expires_on - time.time() < self._token_refresh_offs... | [BearerTokenCredentialPolicy->[on_request->[_update_headers,_enforce_https]]] | Check if a new token needs to be generated. | I would just catch AttributeError (if get_token_refresh_options is not defined), and let a potential "NotANumber" throw from the int conversion |
@@ -1350,7 +1350,14 @@ class Brain(object):
if self._mouse_no_mvt > 0:
x, y = vtk_picker.GetEventPosition()
# programmatically detect the picked renderer
- self.picked_renderer = self.plotter.iren.FindPokedRenderer(x, y)
+ try:
+ # pyvista<0.30.0
+... | [Brain->[add_label->[_update,_iter_views,add_overlay],screenshot->[screenshot],_configure_vertex_time_course->[_configure_mplcanvas,norm],toggle_interface->[_update],restore_user_scaling->[_update],set_time->[set_time_point],close->[close],_on_pick->[norm],remove_annotations->[_update,remove_overlay],enable_depth_peeli... | Pick a from the picking scene. Picks a critical point on the edge of the volume. Id - add missing glyph in all points. | Like this block works for >= 0.30 and < 0.30 |
@@ -290,7 +290,9 @@ public class BatchServerInventoryViewTest
@Override
public int compare(DataSegment o1, DataSegment o2)
{
- return o1.getInterval().equals(o2.getInterval()) ? 0 : -1;
+ Interval i1 = o1.getInterval();
+ Interval i2 = o2.getInterval();
+ return Long.com... | [BatchServerInventoryViewTest->[testSameTimeZnode->[call->[makeSegment],makeSegment,waitForSync],setUp->[addInnerInventory->[addInnerInventory]]]] | This test run tests for the callback. This method is used to add a new segment to the list of segments to be announced. | How about `Comparators.intervalsByStartThenEnd()`? |
@@ -95,5 +95,7 @@ def update(t):
source.stream(new_data, 300)
+curdoc().add_root(column(row(mean, stddev, mavg), gridplot([[p], [p2]], toolbar_location="left", plot_width=1000)))
+
curdoc().add_periodic_callback(update, 50)
curdoc().title = "OHLC"
| [_ema->[cumprod,convolve,ones,len],update->[_ema,dict,stream,_create_prices,_moving_avg],_moving_avg->[convolve,ones,len],_create_prices->[lognormal,asarray,gamma,exp,uniform,cumprod,abs],ColumnDataSource,segment,dict,Select,gridplot,row,column,curdoc,Slider,figure,line,count] | Update the data for a single object. | I think it's better to demonstrate `curdoc().add_root` as late as possible, as a best practice. The resolution of model reference happens at `add_root` not at serialization, so confusing situations can happen if `add_root` happens before a model has changes that affect its references. |
@@ -0,0 +1,14 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+using System;
+using System.Runtime.InteropServices;
+
+internal static partial class Interop
+{
+ internal unsafe partial class Sys
+ {
+ [DllImpor... | [No CFG could be retrieved] | No Summary Found. | This name looks odd. It should be just `SystemNative_CreateThread`. |
@@ -856,7 +856,7 @@
$a = get_app();
- if (api_user()===false) throw new ForbiddenException();
+ if (api_user()===false) throw new HTTP\ForbiddenException();
unset($_REQUEST["user_id"]);
unset($_GET["user_id"]);
| [api_oauth_access_token->[fetch_access_token,getMessage],api_oauth_request_token->[fetch_request_token,getMessage],api_friendica_notification->[getAll],api_error->[getMessage],api_friendica_notification_seen->[getByID,setSeen],api_statusnet_config->[get_hostname],api_statuses_mediap->[purify,set],api_statuses_update->[... | This function is used to verify the credentials of the user. | Standards: Please add braces to this conditional statement and spaces around the `===` operator. |
@@ -1,3 +1,4 @@
+# NOTE: [Rails 6] Util class is obsolete in Rails 6
module Audit
module Event
class Util
| [Util->[serialize->[encode],obsolete_usage_warn->[strip_heredoc,match?,warn],transform_values->[values_at],deserialize->[then,new]]] | A class that represents an ActiveSupport object that can be serialized and serialized. | Going to leave it there for now, I'll slowly chip out other deprecated stuff and aim to upgrade to 6.0 defaults in the future |
@@ -10,6 +10,13 @@ import { discourseModule } from "discourse/tests/helpers/qunit-helpers";
import sinon from "sinon";
import { test } from "qunit";
+function stringToDOMNode(string) {
+ let template = document.createElement("template");
+ string = string.trim();
+ template.innerHTML = string;
+ return template... | [No CFG could be retrieved] | Imports the given object and checks if the given object has a valid number of nanoseconds. Tests that the given string is a valid sequence number. | Don't we use a code like this already? Maybe this function should be provided as an importable test helper? |
@@ -54,11 +54,11 @@ class Settings(object):
def version(self, default=None):
return self._get_str("VERSION", default)
- def local_docs_cdn(self, default=None):
- return self._get_str("LOCAL_DOCS_CDN", default)
+ def docs_cdn(self, default=None):
+ return self._get_str("DOCS_CDN", def... | [Settings->[released_docs->[_get_bool],_get_str->[_get,_dev_or_default],resources->[_get_str],log_level->[_get_str],local_docs_cdn->[_get_str],minified->[_get_bool],js_files->[bokehjsdir],css_files->[bokehjsdir],browser->[_get_str],rootdir->[_get_str],version->[_get_str],bokehjsdir->[bokehjsdir],py_log_level->[_get_str... | Get the version of the node. | You don't need to pass `None` here... |
@@ -750,6 +750,7 @@ public final class DirectoryBrowserSupport implements HttpResponse {
* list of {@link Path} represents one child item to be shown
* (this mechanism is used to skip empty intermediate directory.)
*/
+ @SuppressFBWarnings(value = "SBSC_USE_STRINGBUFFER_CONCATENATION", justificatio... | [DirectoryBrowserSupport->[serveFile->[serveFile],isDescendant->[isDescendant],collectRecursivelyAllLegalChildren->[isDescendant,collectRecursivelyAllLegalChildren],Path->[createNotReadableVersionOf->[Path]],buildPathList->[Path,buildPathList],FileComparator->[compare->[compare]],buildChildPaths->[FileComparator,Path]]... | Build child paths. | Premature optimization if I ever saw it. |
@@ -1035,6 +1035,9 @@ public class InterpreterSettingManager implements NoteEventListener, ClusterEven
}
File localRepoDir = new File(conf.getInterpreterLocalRepoPath() + "/" + id);
+ if (localRepoDir.getAbsolutePath().contains("..")) {
+ return removed;
+ }
FileUtils.deleteDirectory(localRe... | [InterpreterSettingManager->[getDefaultInterpreterSetting->[get,getByName],get->[get],removeInterpreterGroup->[removeInterpreterGroup],getAllResourcesExcept->[getAllInterpreterGroup],close->[close],removeRepository->[saveToFile],onClusterEvent->[inlineRemove,get,inlineSetPropertyAndRestart,inlineCreateNewSetting],resta... | Remove interpreter setting from interpreter groups and local repository. | Any idea why deleting the localRepoDir is not part of the if block? |
@@ -287,7 +287,9 @@ public class CountingSource {
}
@Override
- public void validate() {}
+ public void validate() {
+ checkArgument(period.getMillis() >= 0L);
+ }
@Override
public Coder<Long> getDefaultOutputCoder() {
| [CountingSource->[BoundedCountingReader->[getCurrentSource->[getCurrentSource]],UnboundedCountingSource->[generateInitialSplits->[UnboundedCountingSource]],BoundedCountingSource->[createSourceForSubrange->[BoundedCountingSource]],UnboundedCountingReader->[getWatermark->[apply],advance->[apply]]]] | Returns a Coder that can be used to encode a sequence of long values. | error message. Is this necessary, or can we check in the constructor? |
@@ -81,7 +81,7 @@ namespace Internal.Cryptography.Pal.AnyOS
if (rid.RKeyId.Value.Other.Value.KeyAttr != null)
{
- rawData = rid.RKeyId.Value.Other.Value.KeyAttr.Value.ToArray();
+ rawData = rid.RKeyId.Value.Other.Value.KeyAttr!.Va... | [ManagedPkcsPal->[ManagedKeyAgreePal->[LocalDateTime,ToSubjectIdentifierOrKey,Version,IssuerAndSerialNumber,Rid,RKeyId,KeyAttr,HasValue,KeyAttrId,Cryptography_Cms_Key_Agree_Date_Not_Available,ToArray,ToPresentationObject,FromFileTimeUtc,Array]]] | Get the CryptographicAttributeObject from the RID. | What's the TODO? Whose action is it? |
@@ -1,3 +1,4 @@
+using System.Collections.Generic;
using System.Linq;
using Dynamo.Applications;
| [DynamoRevit->[OnApplicationViewActivated->[HandleRevitViewActivated],RevitDynamoModel->[GetRevitContext,Start,Location,Load,GetDirectoryName,Application,GetFullPath],OnApplicationDocumentClosed->[HandleApplicationDocumentClosed],GetRevitContext->[VersionName,Replace],OnApplicationDocumentClosing->[HandleApplicationDoc... | Creates a new object that can be used to execute a DelegateBasedAsyncTask on the idle This method is used to register a Dynamo application s . | Hi @sharadkjaiswal, I have tried to work on this locally but I do not have `Revit 2016` installed, so the code I write might be error-prone (it cannot be built). Since that is the case, I'll suggest code changes directly from here. |
@@ -947,6 +947,8 @@ def edit_document(request, document_slug, document_locale, revision_id=None):
rev.slug = slug_dict['specific']
section_id = request.GET.get('section', None)
+ if section_id and not request.is_ajax():
+ return HttpResponse("Sections may only be edited inline.")
disclose_des... | [edit_document->[_get_document_for_json,_join_slug,_split_slug,_format_attachment_obj],get_children->[_make_doc_structure->[_make_doc_structure],_make_doc_structure],_document_PUT->[_split_slug],mindtouch_to_kuma_redirect->[mindtouch_namespace_redirect],json_view->[_get_document_for_json],new_attachment->[_format_attac... | Create a new revision of a wiki document or edit document metadata. This function is called when a user is redirected to the view of a new block of a Displays a response with a object. Displays a page that displays a single . | need to wrap this with gettext. |
@@ -238,6 +238,9 @@ class FileCopier(object):
pass
os.symlink(linkto, abs_dst_name) # @UndefinedVariable
else:
- shutil.copy2(abs_src_name, abs_dst_name)
+ try:
+ shutil.copy2(abs_src_name, abs_dst_name)
+ ... | [report_copied_files->[splitext,basename,len,defaultdict,items,join,info,ext_files],FileCopier->[link_folders->[relpath,readlink,symlink,mkdir,ConanException,append,exists,dirname,str,startswith,realpath,rmdir,join,isabs,remove],_copy->[link_folders,abspath,basename,dirname,_filter_files,extend,startswith,join,_copy_fi... | Execute a multiple file copy from src to dst. | If a file has no read permission, shutil.copy2 raises PermissionError on Python3 or OSError on Python2. |
@@ -78,7 +78,7 @@ namespace Microsoft.Xna.Framework
}
/// <summary>
- /// Creates a new instance of <see cref="Point"/> struct, with the specified position.
+ /// Constructs a point from one value.
/// </summary>
/// <param name="value">The x and y coordinates in 2d-s... | [Point->[Equals->[Y,X,Equals],X,Y,ToString,Concat,Equals]] | Replies the base point of the specified node. Subtracts the components of two points by each other. | `Constructs a point with X and Y set to the same value.` |
@@ -112,10 +112,10 @@ def main():
args = build_arg_parser().parse_args()
# Loading source image
- img = cv2.imread(args.input, cv2.IMREAD_COLOR)
- if img is None:
- print("Cannot load image " + args.input)
- return -1
+ cap = open_images_capture(args.input, False)
+ image = cap.rea... | [inpaint_auto->[create_random_mask],main->[inpaint_auto,build_arg_parser],main] | Main function for the image in - memory image in - memory image in - memory image in. | The demo works with only one image, but `DIrReader` may have multiple. No need to update this demo. The same is for `monodepth_demo`, later we may update its pipeline to work with multiple images. |
@@ -25,8 +25,10 @@ class SamlRequestValidator
}
end
+ # This check relies on the fact that problematic SPs are returned as NullServiceProvider objects.
+ # It should be disentangled and SP errors should be validated explicitly.
def authorized_service_provider
- return if service_provider.active? # liv... | [SamlRequestValidator->[call->[messages,new,nameid_format,authn_context,valid?,service_provider],service_provider_allowed_to_use_email_nameid_format?->[issuer,include?],ial2_context_requested?->[include?,any?],authorized_email_nameid_format->[email_nameid_format?,add,service_provider_allowed_to_use_email_nameid_format?... | extra_analytics_attributes - extra attributes that can be added to the report. | the `NullServiceProvider` object is one that we control....we can just make its `#active?` method return false right? |
@@ -123,6 +123,10 @@ public class EndToEndIntegrationTest {
.withAdditionalConfig(
KsqlConfig.SCHEMA_REGISTRY_URL_PROPERTY,
"http://foo:8080")
+ .withAdditionalConfig(
+ KsqlConfig.KSQL_KEY_FORMAT_ENABLED,
+ true
+ )
.build();
@Rule
| [EndToEndIntegrationTest->[shouldSupportDroppingAndRecreatingJoinQuery->[executeStatement,terminateQuery,get,QueryId,or,format,toString,greaterThan,is,assertThat,startsWith,waitForFirstRow],shouldRegisterCorrectPrimitiveSchemaForCreateStatements->[waitForSubjectToBePresent,executeStatement,getSchema,AvroSchema,is,asser... | Creates a data provider that provides data for all users and pages. Creates a user table in the USERS table. | We're planning on enabling Avro keys soon, right? We should remember to pull these out when we do. |
@@ -577,7 +577,6 @@ namespace System.Net.Security
{
if (NetEventSource.Log.IsEnabled())
NetEventSource.Log.UsingCachedCredential(this);
-
_credentialsHandle = cachedCredentialHandle;
_selectedClientCertificate = cli... | [SecureChannel->[SecurityStatusPal->[AcquireClientCredentials,AcquireServerCredentials],ProtocolToken->[GetException->[],SetRefreshCredentialNeeded],AcquireClientCredentials->[FindCertificateWithPrivateKey,MakeEx,GetRequestCertificateAuthorities],AcquireServerCredentials->[FindCertificateWithPrivateKey],GetRequestCerti... | Acquire client credentials. Private method for finding out if a client certificate is available. This method is called from the server side to find a key that can be used to authenticate Checks if a client certificate has a private key. | This blank line is valueable after the (improperly) unbraced if. |
@@ -80,7 +80,9 @@ class LockFile(object):
logger.debug(
"A lock on %s is held by another process.", self._path)
raise errors.LockError(
- "Another instance of Certbot is already running.")
+ "Another instance of Certbot is alre... | [lock_dir->[LockFile,join],LockFile->[_try_lock->[debug,LockError,lockf],__init__->[super,acquire],_lock_success->[fstat,stat],__repr__->[],release->[remove,close],acquire->[open,_try_lock,close,_lock_success]],getLogger] | Try to acquire a lock on the given file descriptor without blocking. | Exception messages that include newlines can make logs harder to read/grep. It can be especially annoying when using log parsing/monitoring tools. I'm not sure it's an issue for certbot logs. A different way to write this error message would be: "Another instance of Certbot is already running using the same --config-di... |
@@ -1251,7 +1251,7 @@ class Exchange:
# validate that markets are loaded before trying to get fee
if self._api.markets is None or len(self._api.markets) == 0:
self._api.load_markets()
-
+ # TODO-lev: Convert this amount to contract size?
return self._ap... | [available_exchanges->[ccxt_exchanges],validate_exchanges->[available_exchanges,validate_exchange,ccxt_exchanges],Exchange->[fetch_ticker->[fetch_ticker,markets],validate_pairs->[markets,get_pair_quote_currency],fetch_order_or_stoploss_order->[fetch_order],_async_get_trade_history->[_async_get_trade_history_time,_async... | Get the fee for a given symbol type and amount. | Don't bother (for two reasons, actually). The way we are using `calculate_fee` is to only take the rate (relative value - like 0.01%). While amount is a necessary input for ccxt - it has no impact on the relative result - (0.01% will remain identical, for both 1 or for 100_000). Freqtrade is also never passing in amoun... |
@@ -1803,7 +1803,7 @@ void TwoFluidNavierStokes<TElementData>::CondenseEnrichment(
MatrixType &rKeeTot,
const VectorType &rRHSeeTot)
{
- const double min_area_ratio = -1e-6;
+ const double min_area_ratio = 1e-7;
// Compute positive side, negative side and total volumes
double positive_volum... | [No CFG could be retrieved] | This method computes the shape function gradient values using the enrichment interpolation matrices. region NodeEnrichment Term Functions. | Why do we change this? (just asking) |
@@ -441,9 +441,8 @@ public class DefaultHttp2OutboundFlowController implements Http2OutboundFlowCont
/**
* Creates a new frame with the given values but does not add it to the pending queue.
*/
- Frame newFrame(ByteBuf data, int padding, boolean endStream, boolean endSegment,
- ... | [DefaultHttp2OutboundFlowController->[resetSubtree->[resetSubtree,state],writeAllowedBytes->[state,connectionWindow,writeAllowedBytes],state->[state],connectionState->[state],OutboundFlowState->[writeBytes->[writableWindow,hasFrame,peek],Frame->[write->[incrementStreamWindow],decrementPendingBytes->[incrementPendingByt... | Creates a new frame with the given data padding endStream and segment. | shouldn't this be static ? |
@@ -9,7 +9,10 @@ use Friendica\Core\System;
use Friendica\Database\DBM;
use Friendica\Model\Contact;
use Friendica\Model\GContact;
+use Friendica\Model\Profile;
+use dba;
+require_once 'include/dba.php';
require_once 'mod/contacts.php';
function allfriends_content(App $a)
| [allfriends_content->[set_pager_total]] | allfriends_content - get all friends content Contact view contact nope nope nope. | This isn't required as `allfriend.php` isn't in a namespace yet. You don't have to remove it, I just thought I'd mention it. |
@@ -52,7 +52,7 @@ DATABASES = {
'ATOMIC_REQUESTS': True,
'TEST': {
'CHARSET': 'utf8',
- 'COLLATION': 'utf8_general_ci',
+ 'COLLATION': 'utf8_distinct_ci',
},
},
}
| [lazy_language_deki_map->[dict],get_user_url->[reverse],get_locales->[_Language,items,join,open,load],JINJA_CONFIG->[MemcachedBytecodeCache,isinstance],lazy_langs->[dict,lower],node,lazy,namedtuple,listdir,join,remove,abspath,dict,replace,%,append,dirname,sorted,tuple,items,path,_,basename,isdir,setup_loader,get_locale... | Package name of the package. Creates a new HashRingCache instance. | Why is this needed? The test runner will run the migrations and therefore apply the collation to the tables needing it. |
@@ -0,0 +1,6 @@
+class AddIdentityUuid < ActiveRecord::Migration
+ def change
+ add_column :identities, :uuid, :string, null: false
+ add_index :identities, :uuid, unique: true
+ end
+end
| [No CFG could be retrieved] | No Summary Found. | Perhaps call this "user_uuid" to match the existing "session_uuid" column? |
@@ -0,0 +1,13 @@
+using Pulumi;
+
+class MyStack : Stack
+{
+ public MyStack()
+ {
+ // out of bounds exception
+ #pragma warning disable
+ string[] arr = null;
+ #pragma warning disable
+ var x = arr[0];
+ }
+}
| [No CFG could be retrieved] | No Summary Found. | You could do something simple like `throw new ApplicationException("thrown for testing");` |
@@ -57,7 +57,9 @@ describes.realWin('amp-story-grid-layer', {amp: true}, (env) => {
});
const story = win.document.createElement('amp-story');
+ // Makes whenUpgradedToCustomElement() resolve immediately.
story.getImpl = () => Promise.resolve(mediaPoolRoot);
+ story.createdCallback = Promise.reso... | [No CFG could be retrieved] | Define a callback to build an AMPStoryGridLayer. should set the vertical aspect ratio. | I think this line belongs on top of `story.createdCallback = Promise.resolve();` |
@@ -74,6 +74,12 @@ define([
* is supported at this time.
* </p>
* <p>
+ * Because of the cutting edge nature of this feature in WebGL, it requires the EXT_frag_depth extension, which is currently only supported in Chrome,
+ * Firefox, and Edge. Apple support is expected in iOS 9 and MacOS Safa... | [No CFG could be retrieved] | A ground primitive represents a geometry instance that is a sequence of geometry vertices and a sequence of Picks a scene from the GPU memor. | Isn't iOS 9 already out? |
@@ -16,10 +16,11 @@ SINGLE_STAGE_SCHEMA = {
StageParams.PARAM_ALWAYS_CHANGED: bool,
}
+DATA_SCHEMA = {Required("md5"): output.CHECKSUM_SCHEMA, Required("path"): str}
LOCK_FILE_STAGE_SCHEMA = {
Required(StageParams.PARAM_CMD): str,
- Required(StageParams.PARAM_DEPS): {str: output.CHECKSUM_SCHEMA},
- ... | [Optional,Any,Schema,Required] | This function returns a schema object that represents the in the DVC. | `md5` is not the only checksum we have. It might also be `etag` for stuff like external s3 deps/outputs and so on. |
@@ -320,15 +320,13 @@ class RepoPublishManager(object):
date_range['$lte'] = end_date
if len(date_range) > 0:
search_params['started'] = date_range
- if limit is None:
- # If a limit is not specified, limit the entries to the default values
- limit = const... | [RepoPublishManager->[auto_publish_for_repo->[publish]]] | Returns a list of publish history entries for the given repository sorted from most recent to oldest. Returns all records of a in the repository that are configured for automatic automatic publishing. | can we remove this constant from the constants module now? |
@@ -71,10 +71,8 @@ class CreateToken(BaseMutation):
@classmethod
def get_user(cls, info, data):
- user = authenticate(
- request=info.context, username=data["email"], password=data["password"],
- )
- if not user:
+ user = models.User.objects.filter(email=data["email"])... | [VerifyToken->[get_user->[get_user],get_payload->[get_payload],perform_mutation->[get_user,get_payload]],RefreshToken->[clean_refresh_token->[get_refresh_token_payload],get_user->[get_user],get_refresh_token_payload->[get_payload],perform_mutation->[clean_refresh_token,get_user,clean_csrf_token,get_refresh_token]],Crea... | Get user from credentials. | Maybe we should create utils function for that? |
@@ -226,7 +226,12 @@ class Variable(object):
expected_shape=expected_shape)
def __str__(self):
- return str(self._snapshot)
+ return "<Variable name='%s' shape=%s dtype=%s>" % (
+ self.name(), self.get_shape(), self.dtype().name)
+
+ def __repr__(self):
+ return "<Variable name='%s'... | [all_variables->[global_variables],initialize_all_variables->[global_variables_initializer],PartitionedVariable->[__iter__->[PartitionedVariableIterator],_TensorConversionFunction->[as_tensor],as_tensor->[_concat],__init__->[_get_save_slice_info],_concat->[_partition_axes]],local_variables_initializer->[variables_initi... | Returns a string representation of the object. Initialize a new Variable with a missing initial value. Creates a new variable op with the specified shape and initial value. | For consistency with the repr for `tf.Tensor`, can you please change the format string to: `<tf.Variable '%s' shape=%s dtype=%s>` Also, I think it should be `self.dtype` rather than `self.dtype()`. |
@@ -228,6 +228,11 @@ class Database {
*/
public function insertData($query, array $params = []) {
+ if ($query instanceof QueryBuilder) {
+ $params = $query->getParameters();
+ $query = $query->getSQL();
+ }
+
if ($this->logger) {
$this->logger->info("DB insert query $query (params: " . print_r($par... | [Database->[runSqlScript->[updateData],updateData->[getConnection],getServerVersion->[getServerVersion],executeQuery->[executeQuery],getResults->[fingerprintCallback,getConnection],executeDelayedQueries->[getConnection,executeQuery],getConnection->[getConnection],deleteData->[getConnection],insertData->[getConnection]]... | Insert data into the database. | you forgot to change the function docs to reflect the possibility for QueryBuilder |
@@ -310,6 +310,14 @@ class ServiceBusSender(BaseHandler, SenderMixin):
:caption: Send message.
"""
+ try:
+ batch = self.create_batch()
+ for each in message:
+ batch.add(each)
+ message = batch
+ except TypeError: # Message was n... | [ServiceBusSender->[_cancel_scheduled_messages->[_open],__init__->[_create_attribute],_open->[_create_handler],_send->[_open,_set_msg_timeout],_schedule->[_open,_build_schedule_request]]] | Sends a message and blocks until acknowledgement is received or operation times out. | The method signature is a List. But "for" works for a superset of List. Let's discuss offline. EventHub has a similar case |
@@ -15,7 +15,7 @@ class PyFortranLanguageServer(PythonPackage):
maintainers = ['AndrewGaspar']
- version('1.11.1', sha256='8f03782dd992d6652a3f2d349115fdad3aa3464fee3fafbbc4f8ecf780166e3c')
+ version('1.12.0', sha256='5cda6341b1d2365cce3d80ba40043346c5dcbd0b35f636bfa57cb34df789ff17')
depends_on('p... | [PyFortranLanguageServer->[depends_on,version]] | URL for Fortran language server. | Can you keep the old versions too? Also, can you update the URL so that at least one of these versions is present in the URL? It isn't needed for most things, it's only taken into account with `spack url summary`, a debugging tool. |
@@ -124,16 +124,15 @@ class Thumbnail extends Component<Props> {
const {
_audioTrack: audioTrack,
_isEveryoneModerator,
- _isModerator,
_largeVideo: largeVideo,
_onClick,
_onShowRemoteVideoMenu,
_styles,
_vide... | [No CFG could be retrieved] | A component that renders a single participant in a thumbnail. The base class for the menu item that displays the long pressing of a single . | I wonder if there really will be mroe later. |
@@ -180,7 +180,7 @@ func NewValidator(ctx context.Context, vch *config.VirtualContainerHostConfigSpe
nwErrors := []error{}
for _, host := range hosts {
- conn, err := net.Dial("tcp", host)
+ conn, err := net.DialTimeout("tcp", host, time.Minute/2)
if err != nil {
nwErrors = append(nwErrors, err)
} els... | [QueryVCHStatus->[Title,HTML,Join,Infof,Begin,ReadFile,Sprintf,PIDFileDir,End,Errorf,Base,Split],QueryDatastore->[Reference,DatastoreOrDefault,HTML,DefaultCollector,Infof,Sprintf,Sort,Errorf,Retrieve],LinkByName,LinkByAlias,Warnf,Now,Close,Hostname,HTML,Error,Format,Dial,End,CheckLicense,IsNil,Errorf,QueryVCHStatus,Cle... | Check - License status and issue Retrieve Host IP Information and Set Docker Endpoint. | Suggestion: make the time a constant? |
@@ -174,8 +174,9 @@ return array(
'7zip' => array('application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'... | [No CFG could be retrieved] | Mimes. php. | Please remove the empty line here. |
@@ -74,6 +74,13 @@ const (
GitHubLogin = "github.login"
// GitHubRepo is the name of the GitHub repo, if the local git repo's remote origin is hosted on GitHub.com.
GitHubRepo = "github.repo"
+
+ // CISystem is the name of the CI system running the pulumi operation.
+ CISystem = "ci.system"
+
+ // CIPRSourceSHA i... | [No CFG could be retrieved] | Updates the given object with the information about the previous update. | Would prefer if this was called `headSHA` instead of `sourceSHA` to be consistent with how most git providers refer to these things. |
@@ -29,7 +29,7 @@ class SuluPreviewBundle extends Bundle
$container->addCompilerPass(
new TaggedServiceCollectorCompilerPass(
- 'sulu_preview.preview',
+ 'sulu_preview.object_provider_pool',
'sulu_preview.object_provider',
0,
... | [SuluPreviewBundle->[build->[addCompilerPass]]] | Builds a node. | @wachterjohannes Is this a BC break? What if someone has overwritten that service? |
@@ -324,6 +324,14 @@ func NewTeam(t *Team) (err error) {
}
}
+ // Add all repositories to the team if it has access to all of them.
+ if t.IsAllRepositories {
+ err = t.addAllRepositories(sess)
+ if err != nil {
+ return fmt.Errorf("addAllRepositories: %v", err)
+ }
+ }
+
// Update organization number of ... | [RemoveRepository->[HasRepository,removeRepository],unitEnabled->[getUnits],GetRepositories->[getRepositories],AddRepository->[HasRepository,addRepository],addRepository->[getMembers],GetMembers->[getMembers],HasRepository->[hasRepository],getRepositories,IsOwnerTeam,getMembers,GetRepositories] | NewTeam creates a new team with the given name. GetTeam returns team by given organization and team name. | We only need a flag on team but unnecessary really to add all repositories to the team I think. |
@@ -152,7 +152,7 @@ namespace System.Diagnostics
}
}
- public virtual MethodBase? GetMethodBase(int i)
+ public MethodBase? GetMethodBase(int i)
{
// There may be a better way to do this.
// we got RuntimeMethodHandles here and we need to go to Me... | [StackFrameHelper->[GetMethodBase->[GetMethodBase]]] | InitializeSourceInfo - This method is called from the constructor of the class. Get a MethodBase object for the type of a specific method. | This class is used by the unmanaged reflection stack. We should double check that changing the type's vtable layout won't break anything. __Edit:__ I looked through _debugdebugger.h_ and _debugdebugger.cpp_ and didn't see anything that referenced the vtable layout. The only references seem to be to the fields themselve... |
@@ -81,6 +81,13 @@ dfuse_fuse_init(void *arg, struct fuse_conn_info *conn)
conn->max_read = fs_handle->dpi_max_read;
conn->max_write = fs_handle->dpi_max_read;
+ if (fs_handle->dpi_info->di_caching) {
+ conn->max_readahead = (1024 * 1024);
+ conn->max_background = 16;
+ conn->congestion_threshold = 12;
+ conn... | [No CFG could be retrieved] | Initialize FUSE connection and file system. dfuse_ll_create - create a file handle from a fuse request. | I think that those two above are relevant even if caching is disabled. |
@@ -624,9 +624,8 @@ if __name__ == "__main__":
cloudlog.exception("Manager failed to start")
# Show last 3 lines of traceback
- error = traceback.format_exc(3)
-
- error = "Manager failed to start\n \n" + error
+ error = [line.replace('/data/openpilot', '') for line in traceback.format_exc(-3).spli... | [main->[uninstall,manager_init,manager_thread,manager_prepare,cleanup_all_processes],manager_thread->[start_daemon_process,send_managed_process_signal,kill_managed_process,start_managed_process],kill_managed_process->[join_process],manager_prepare->[prepare_managed_process],cleanup_all_processes->[kill_managed_process]... | Entry point for the main function of the object manager. | This should just be `traceback.format_exc(-3)`, no need to hide the full path. |
@@ -135,6 +135,9 @@ public interface DoFnInvoker<InputT, OutputT> {
/** Provide a reference to the input element. */
InputT element(DoFn<InputT, OutputT> doFn);
+ /** Provide a reference to the input sideInput. */
+ Object sideInput(String tagId);
+
/**
* Provide a reference to the selected... | [FakeArgumentProvider->[taggedOutputReceiver->[UnsupportedOperationException,format,getSimpleName],paneInfo->[UnsupportedOperationException,format,getSimpleName],outputReceiver->[UnsupportedOperationException,format,getSimpleName],startBundleContext->[UnsupportedOperationException,format,getSimpleName],state->[Unsuppor... | Returns the element at the given index. | to the side input with the specified tag. |
@@ -199,7 +199,7 @@ public final class ClientCookieDecoder extends CookieDecoder {
* @param valueEnd
* where the value ends in the header
*/
- public void appendAttribute(int keyStart, int keyEnd, int valueStart, int valueEnd) {
+ void appendAttribute(int keyStart,... | [ClientCookieDecoder->[CookieBuilder->[computeValue->[isValueDefined],cookie->[mergeMaxAgeAndExpires],parse7->[setMaxAge]],ClientCookieDecoder]] | Append an attribute to the end of the list. | line: 177 `public Cookie cookie()` can also be package private right? |
@@ -18,7 +18,11 @@ module Canary
null: false,
description: "タイトル"
- field :title_Kana, String,
+ field :title_en, String,
+ null: true,
+ description: "タイトル (英語)"
+
+ field :title_kana, String,
null: true,
description: "タイトル (かな)"
| [WorkType->[local_synopsis_html->[local_synopsis],copyright->[copyright],local_synopsis->[local_synopsis]]] | Can be overridden by subclasses to add additional fields to a node. Field that can be used to create a new season. Get the number of work records in a given group. | Layout/AlignParameters: Align the parameters of a method call if they span more than one line. |
@@ -492,12 +492,7 @@ public class FilterPartitionBenchmark
StorageAdapter sa = new QueryableIndexStorageAdapter(qIndex);
Sequence<Cursor> cursors = makeCursors(sa, Filters.convertToCNF(dimFilter3.toFilter()));
-
- Sequence<List<String>> stringListSeq = readCursors(cursors, blackhole);
- List<String> s... | [FilterPartitionBenchmark->[makeCursors->[makeCursors],NoBitmapSelectorDimFilter->[toFilter->[NoBitmapSelectorFilter,NoBitmapDimensionPredicateFilter]]]] | Reads a complex or filter from the index. | I suggest to use some real aggregator, like LongSum, to make the load more realistic |
@@ -28,7 +28,7 @@ import {timerFor} from '../../../src/timer';
import {setStyle} from '../../../src/style';
import {AdDisplayState} from './amp-ad-ui';
-const TIMEOUT_VALUE = 10000;
+const TIMEOUT_VALUE = 1000000;
export class AmpAdXOriginIframeHandler {
| [No CFG could be retrieved] | Creates an object that represents a single element in the AMP HTML Authors. The object that will be used to register and unregister the event listeners. | 16 min? That's a long timeout. |
@@ -860,7 +860,15 @@ public class QueryableIndexStorageAdapter implements StorageAdapter
@Override
public ColumnCapabilities getColumnCapabilities(String columnName)
{
- return getColumnCapabilites(index, columnName);
+ ... | [QueryableIndexStorageAdapter->[getMaxIngestedEventTime->[getMaxTime],makeCursors->[getNumRows],DescendingTimestampCheckingOffset->[toString->[getOffset,withinBounds],clone->[clone,DescendingTimestampCheckingOffset]],getColumnCapabilites->[getCapabilities],CursorOffsetHolderValueMatcherFactory->[makeValueMatcher->[matc... | Build a sequence of cursors that can be used to retrieve the next sequence of data. makeDimensionSelectorUndecorated creates a DimensionSelector that returns a DimensionSelector that can be creates a column selector that returns a value of the column. | much of the virtual column capability creation logic is shared across the QueryableIndexStorageAdapter and IncrementalIndexStorageAdapter, maybe this could be a function |
@@ -81,8 +81,8 @@ class PantsDaemon(FingerprintedProcessManager):
"""Creates and launches a daemon instance if one does not already exist.
:param Options bootstrap_options: The bootstrap options, if available.
- :returns: The pailgun port number of the running pantsd instance.
- :rtype: int
+ ... | [launch->[create],_LoggerStream->[fileno->[fileno]],PantsDaemon->[_close_stdio->[flush,fileno],launch->[maybe_launch],terminate->[terminate],watchman_launcher->[create],Factory->[create->[create,PantsDaemon]],run_sync->[_close_stdio,_setup_services,_write_named_sockets,_pantsd_logging,_run_services],_pantsd_logging->[_... | Creates and launches a daemon instance if one does not already exist. | Explicitly returning the same tuple in two methods => I would make a datatype to give a name to it, especially since it's transitively returned in tail calls in many methods in this file. It also means fewer docstrings to write. |
@@ -1838,7 +1838,7 @@ class State:
if path and source is None and self.manager.fscache.isdir(path):
source = ''
self.source = source
- if path and source is None and self.manager.cache_enabled:
+ if path and self.manager.cache_enabled:
self.meta = find_cache_met... | [process_graph->[add_stats,trace,log],_build->[BuildSourceSet,BuildResult],write_deps_cache->[deps_to_json,getmtime,log],BuildManager->[trace->[verbosity],log_fine_grained->[verbosity,log],all_imported_modules_in_file->[correct_rel_imp,import_priority],maybe_swap_for_shadow_path->[normpath],report_file->[is_source],log... | Initialize a state from a sequence of missing nodes. Get the cache meta for this package. Parse the file and compute the dependencies. | Could you explain what's going on here? Naively I'd expect a change on L1844 (since it would mirror the change in `parse_file`) |
@@ -20,6 +20,7 @@ from .fiff.write import (start_file, start_block, end_file, end_block,
write_int, write_float_matrix, write_float,
write_id, write_string)
from .fiff.meas_info import read_meas_info, write_meas_info
+from .fiff.channels import contains_ch_type
from... | [read_epochs->[_check_delayed,Epochs],combine_event_ids->[copy],equalize_epoch_counts->[drop_epochs,drop_bad_epochs],_BaseEpochs->[__next__->[next]],Epochs->[equalize_event_counts->[drop_epochs,copy,_key_match,drop_bad_epochs],plot_drop_log->[plot_drop_log],_get_data_from_disk->[_check_delayed,_is_good_epoch,_get_epoch... | Tools for working with epoched data Abstract base class for Epochs - type classes. | can you make it private? We'll make it public when needed. |
@@ -235,7 +235,9 @@ function MeetingParticipantItem({
}
const buttonType = _isModerationSupported
- ? _localModerator ? QUICK_ACTION_BUTTON.ASK_TO_UNMUTE : _quickActionButtonType
+ ? _localModerator && _audioMediaState !== MEDIA_STATE.UNMUTED
+ ? QUICK_ACTION_BUTTON.ASK_TO_UNMUTE
+ ... | [No CFG could be retrieved] | Creates a function that can be used to create a new particle item. The videoMediaState object for the video participant. | Why do we need to change the button type here ... when that is already calculated in _mapStateToProps? |
@@ -50,6 +50,9 @@ public class StandaloneExecutor implements Executable {
private final String queriesFile;
private final UdfLoader udfLoader;
private final CountDownLatch shutdownLatch = new CountDownLatch(1);
+ private final Map<Class<? extends Statement>, Function<Pair<String, Statement>, Void>>
+ fun... | [StandaloneExecutor->[create->[StandaloneExecutor,create],executeStatements->[start]]] | Creates a standalone executor. Reads the queries file and starts the KSQL Server. | Each `Function<Pair<blah>>` returns null - so why the use of `Function` and why pass the `Pair`? Use `Consumer<String, Statement>`. I think this member can also be static and initialised once for the entire class using `ImmutableMap`. |
@@ -624,6 +624,10 @@ export function handleFetch(request, maybeClientId) {
// If not, let's fetch and cache the request.
return fetchJsFile(cache, versionedRequest, pathname, version);
});
+ }).catch(err => {
+ // Throw error out of band.
+ Promise.reject(err);
+ throw err;
});
}
| [No CFG could be retrieved] | Setup the event listeners for the specific request. Setup the Foreign Fetch listener for the Publisher s origin. | Is this line necessary? |
@@ -320,7 +320,12 @@ func GetDCOSMasterAllowedSizes() string {
"Standard_ND12s",
"Standard_ND24rs",
"Standard_ND24s",
+ "Standard_ND40rs_v2",
+ "Standard_ND40s_v3",
"Standard_ND6s",
+ "Standard_NP10s",
+ "Standard_NP20s",
+ "Standard_NP40s",
... | [No CFG could be retrieved] | Standard_L64s_v2 - > M64ms - > M64ms GetKubernetesAllowedVMSKUs returns the list of allowed VMSKUs. | Here are the skus we're looking for in particular |
@@ -21,6 +21,8 @@ class Silo(Package):
config_args = [
'--enable-fortran' if '+fortran' in spec else '--disable-fortran',
'--enable-silex' if '+silex' in spec else '--disable-silex',
+ '--enable-shared' if '+shared' in spec else '--disable-shared',
+ '--disable-s... | [Silo->[install->[append,make,configure],variant,depends_on,version]] | Installs a in the system. | can this not build both shared and static at the same time? |
@@ -236,4 +236,9 @@ class Extends
protocol_repository: [80, 103, 89, 87, 79, 90, 91, 88, 85, 86, 84, 81, 82, 83, 101, 112],
team: [92, 94, 93, 97, 104]
}.freeze
+
+ SHARED_INVENTORIES_PERMISSION_LEVELS = {
+ read: 0,
+ write: 1
+ }.freeze
end
| [Extends->[freeze]] | List of protocol - repository and team. | If it is frozen, can we than extend it? |
@@ -41,7 +41,9 @@ public class ConfigOAuthContext
if (!oauthContextStore.containsKey(resourceOwnerId))
{
final Lock lock = lockFactory.createLock(configName + "-config-oauth-context");
+ final Lock resourceLock = createLockForResourceOwner(resourceOwnerId);
lock.lo... | [ConfigOAuthContext->[clearContextForResourceOwner->[getContextForResourceOwner]]] | Get the OAuth context for the given resource owner. | Shouldn't it be better to use 2 try-finally blocks? If the first lock was acquired and the second fails for some reason, the finally block will never be executed and the first lock will remain acquired. |
@@ -37,6 +37,7 @@ func writefmtln(w *bufio.Writer, msg string, args ...interface{}) {
func emitHeaderWarning(w *bufio.Writer) {
writefmtln(w, "// *** WARNING: this file was generated by the Lumi IDL Compiler (LUMIDL). ***")
writefmtln(w, "// *** Do not edit by hand unless you're certain you know what you are doing... | [Struct,Dir,Join,Field,NumFields,Underlying,Sprintf,Anonymous,PropertyOptions,Type,WriteString,MkdirAll] | mirrorDirLayout ensures that the output directory contains the same layout as the input package. forEachField iterates over the fields of a type member and calls the action for each field. | This is showing up in both the `.go` and `.ts` files. We only want this in the `.ts` files. Should move this line to `gen_pack.go` after `emitHeaderWarning` is called. Also, you should run `make gen` in `lib/aws` and then checkin all the updated files with this change added to them. |
@@ -40,6 +40,8 @@ type Config struct {
CursorSeekFallback config.SeekMode `config:"cursor_seek_fallback"`
// Matches store the key value pairs to match entries.
Matches []string `config:"include_matches"`
+ // Remote defines if the journal is form a remote host
+ Remote bool
// Fields and tags to add to event... | [No CFG could be retrieved] | Config stores the options of a single key value pair in the registry. | this should have a `config:...` annotation, right? |
@@ -609,6 +609,17 @@ export function installServiceInEmbedIfEmbeddable(embedWin, serviceClass) {
return true;
}
+/**
+ * @param {!./service/ampdoc-impl.AmpDoc} ampdoc
+ * @param {string} id
+ */
+export function adoptServiceForEmbedDoc(ampdoc, id) {
+ const service = getServiceInternal(
+ getAmpdocServiceHo... | [No CFG could be retrieved] | Disposes a service and installs it in the window if it is disposable. Empty service holder with promise. | > I want to eventually remove most of extensions of AmpDoc and have a single AmpDoc with few customizations. Basically everyone to go into reducing differences between ampdocs. Can we get rid of this if we allow configuration of `AmpDoc` for FIE such that it inherits all services _except_ for the ~5-6 that matter? |
@@ -50,8 +50,8 @@ func TestInputUsage(t *testing.T) {
func TestGoPackageName(t *testing.T) {
assert.Equal(t, "aws", goPackage("aws"))
- assert.Equal(t, "azure", goPackage("azure-nextgen"))
- assert.Equal(t, "plant", goPackage("plant-provider"))
+ assert.Equal(t, "azurenextgen", goPackage("azure-nextgen"))
+ assert... | [Dir,FindExecutable,PathExists,ImportLanguages,typeString,StringSlice,TestTypeNameCodegen,ReadFile,Logf,Join,Equal,RunCommand,NoError,Base,Split,getInputUsage,ImportSpec,Sprintf,Unmarshal,TestSDKCodegen,NotEmpty,Abs,Run,True] | TestPackage tests that the given type is an input type that accepts FooArray and FooArray GeneratePackage - function to generate package with optional extraFile - function to infer module name from. | Do we know what effect (if any) this change will have on azure-native and aws-native? |
@@ -28,6 +28,7 @@
#include <QtCore/QRegularExpressionMatch>
#include <QtCore/QStandardPaths>
+#include <iostream>
static WbPreferences *gInstance = NULL;
WbPreferences *WbPreferences::createInstance(const QString &companyName, const QString &applicationName,
| [No CFG could be retrieved] | Creates a new instance of WbPreferences given a name application name and version. Creates a Settings object with the given parameters. | Is this include really needed? Because it doesn't seem that related changes have been added. |
@@ -269,11 +269,9 @@ class DataflowRunner(PipelineRunner):
pcoll.element_type, transform_node.full_label)
key_type, value_type = pcoll.element_type.tuple_types
if transform_node.outputs:
- from apache_beam.runners.portability.fn_api_runner.translations \
- im... | [_DataflowIterableAsMultimapSideInput->[__init__->[_side_input_data]],_DataflowIterableSideInput->[__init__->[_side_input_data]],DataflowRunner->[_get_encoded_output_coder->[_get_typehint_based_encoding],flatten_input_visitor->[FlattenInputVisitor],_add_singleton_step->[_get_side_input_encoding],run_Flatten->[_get_enco... | A visitor that replaces Any element type for input PCollection of group by key or group by. | The conditional is a tautology; just return `_only_element(transform_node.outputs.keys())`. |
@@ -112,5 +112,15 @@ export default Component.extend({
}
model.setProperties({ saving: false, error: true });
});
+ },
+
+ _setDefaultSelectedGroups() {
+ this.set("groupIds", []);
+ },
+
+ _setGroupOptions() {
+ Group.findAll().then(groups => {
+ this.set("allGroups", groups.fil... | [No CFG could be retrieved] | set error message. | If these are meant to be modified by plugin api they shouldn't be designated private using an underscore. I recommend removing the underscore. |
@@ -251,6 +251,18 @@ print '<td>';
print '<input type="text" name="' . 'CASHDESK_READER_KEYCODE_FOR_ENTER'.$terminaltouse . '" value="' . $conf->global->{'CASHDESK_READER_KEYCODE_FOR_ENTER'.$terminaltouse} . '" />';
print '</td></tr>';
+// Numbering module
+if ($conf->global->TAKEPOS_ADDON=="terminal"){
+ print '<t... | [query,rollback,listprinters,loadLangs,trans,selectWarehouses,listPrintersTemplates,fetch_object,begin,select_company,close,selectarray,commit,select_comptes,selectyesno] | Generate a list of templates to use for a given printer. Show a form to edit a single sequence number. | It's ok for the setup page, can you do the same for this line too ? |
@@ -15,7 +15,7 @@ from .source_estimate import read_stc, write_stc, read_w, write_w, \
save_stc_as_volume
from .surface import read_bem_surfaces, read_surface, write_bem_surface
from .source_space import read_source_spaces
-from .epochs import Epochs
+from .epochs import Epochs, check_ra... | [No CFG could be retrieved] | Create a new version of the object. | check_raw_compatibility should be in raw.py isn't it redundant with the handle of concat raws? |
@@ -0,0 +1,14 @@
+package gobblin.crypto;
+
+import java.util.Map;
+
+
+/**
+ * Interface for a simple CredentialStore that simply has a set of byte-encoded keys. Format
+ * of the underlying keys is left to the implementor.
+ */
+public interface CredentialStore {
+ byte[] getEncodedKey(String id);
+
+ Map<String, b... | [No CFG could be retrieved] | No Summary Found. | What is the use of this method? It seems the Credential store could have a very large number of keys. |
@@ -235,7 +235,7 @@ public interface InternalMessage extends Message, MessageProperties, MessageAtta
Builder outboundAttachments(Map<String, DataHandler> outbundAttachments);
@Override
- InternalMessage build();
+ Message build();
}
interface CollectionBuilder extends Message.CollectionBuilder... | [builder->[create],of->[build]] | Build a sequence of items with a specific media type. | is this necessary give that we are in InternalMessage already? |
@@ -318,6 +318,8 @@ function _handleReceivedMessage({ dispatch, getState },
const hasRead = participant.local || isChatOpen;
const timestampToDate = timestamp ? new Date(timestamp) : new Date();
const millisecondsTimestamp = timestampToDate.getTime();
+ const participantDisplayName = displayName || de... | [No CFG could be retrieved] | Function to handle a message received from a chat participant. Takes a timestamp and dispatches the message if it s not already dispatched. | shouldShowNotification = enableChatNotifications && !hasRead && !isReaction; |
@@ -34,6 +34,8 @@ public class DefaultExpressionManagerFactoryBean implements FactoryBean<Extended
DefaultExpressionManager delegate = new DefaultExpressionManager();
muleContext.getInjector().inject(delegate);
+ delegate.initialise();
+
return (ExtendedExpressionManager) createClassLoaderInjectorIn... | [DefaultExpressionManagerFactoryBean->[getObject->[inject,getExecutionClassLoader,DefaultExpressionManager,createClassLoaderInjectorInvocationHandler]]] | Returns an ExtendedExpressionManager instance that can be used to create an ExtendedExpressionManager instance. | the initailization should happen at a stage after the creation of the object by the factory |
@@ -57,7 +57,7 @@ class AssignmentsControllerTest < AuthenticatedControllerTest
post_as @admin, :create, @attributes
new_assignment = Assignment.find_by_short_identifier(@short_identifier)
assert_not_nil new_assignment
- assert redirect_to(:action => 'edit', :id => new_assignment)
+ ... | [AssignmentsControllerTest->[setup->[new],replace_submission_rule,round,post_as,accepted_grouping_for,edit_assignment_path,to,is_a?,respond_with,message,abs,empty?,deduction,filename,assert_generates,each,hours,match,length,context,is_valid?,group_min,assert,setup,reload,submission_rule,assert_nothing_raised,should,ret... | as I am a part of the administration interface? Adding section due dates. | Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. |
@@ -105,7 +105,8 @@ class GitHubDriver extends VcsDriver
if ($this->gitDriver) {
return $this->gitDriver->getDist($identifier);
}
- $url = 'https://api.github.com/repos/'.$this->owner.'/'.$this->repository.'/zipball/'.$identifier;
+ $apiUrl = ('github.com' === $this->originU... | [GitHubDriver->[getRootIdentifier->[getRootIdentifier],fetchRootIdentifier->[getContents],getComposerInformation->[getComposerInformation],getUrl->[getUrl],getTags->[getTags],getSource->[getSource,getUrl],attemptCloneFallback->[generateSshUrl,initialize],getDist->[getDist],getBranches->[getBranches]]] | Get distribution of a node. | I would create a private getter instead of duplicating the logic |
@@ -32,12 +32,6 @@ Rails.application.routes.draw do
post '/api/usps_upload' => 'gpo_upload#create'
end
- scope module: :lambda_callback do
- post '/api/proofing_results/address/:result_id' => 'address_proof_result#create', as: 'address_proof_result'
- post '/api/proofing_results/resolution/:result_id' ... | [draw,namespace,disallow_ial2_recovery?,root,scope,enable_gpo_verification?,redirect,get,enable_test_routes,post,devise_scope,join,patch,devise_for,each,match,put,delete] | Routes that are triggered by lambda functions to initiate recurring jobs. Additional device controller routes. | If this was actively deployed, I would remove these endpoints in a separate URL However, we're transition to ruby workers already in the environments we care about (dev, int) so I figured I'd remove these while I remembered |
@@ -114,7 +114,7 @@ $usercanread = $user->rights->propal->lire;
$usercancreate = $user->rights->propal->creer;
$usercandelete = $user->rights->propal->supprimer;
-$usercanclose = ((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && $usercancreate) || (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && !empty($user->ri... | [update_price,create,form_multicurrency_rate,selectInputReason,getLinesArray,getNomUrl,setDeliveryDate,select_incoterms,begin,closeProposal,select_comptes,formInputReason,insert_discount,add_contact,setProject,getOutstandingBills,printOriginLinesList,textwithpicto,fetch_optionals,selectDate,transnoentitiesnoconv,query,... | Load a Propal object This function returns a list of permissions that can be performed on the object. | This permission does not exists. Try to disable module and reenable to set correctly your permission in your instance. |
@@ -159,11 +159,12 @@ static void schedule_ll_clients_reschedule(struct ll_schedule_data *sch)
{
struct list_item *wlist;
struct list_item *tlist;
- struct task *task, *task_take;
+ struct task *task;
uint64_t next_tick = UINT64_MAX;
/* rearm only if there is work to do */
if (atomic_read(&sch->domain->tot... | [No CFG could be retrieved] | This function is called from the main loop to update the start time of the next task. Schedule a single in the list of clients. | Is this moving from the line 162 needed or we can keep it in line 162 (with NULL initialization added)? If the moving needed, so as other items like wlist/tlist/task? |
@@ -48,6 +48,9 @@ def test_find_gpg(cmd_name, version, tmpdir, mock_gnupghome, monkeypatch):
def test_no_gpg_in_path(tmpdir, mock_gnupghome, monkeypatch):
monkeypatch.setitem(os.environ, "PATH", str(tmpdir))
+ monkeypatch.setattr(
+ spack.bootstrap, 'ensure_gpg_in_path_or_raise', lambda: None
+ )
... | [test_find_gpg->[set_executable,raises,write,init,as_cwd,endswith,str,format,setitem,open],test_no_gpg_in_path->[str,raises,setitem,init],test_gpg->[write,str,read,join,signing_keys,gpg,raises,open],SpackCommand,parametrize] | Test that there is no GPG in the path. | Wouldn't it be better to check this by "untrusting" all the bootstrapping methods? That way we're actually checking the proper behavior if gpg isn't available, rather than testing what happens if bootstrapping fails. |
@@ -169,7 +169,7 @@ class Experiment:
while True:
time.sleep(10)
status = self.get_status()
- if status == 'STOPPED':
+ if status == 'DONE' or status == 'STOPPED':
return True
if status == 'ERROR':
... | [Experiment->[start->[append,start_experiment,Thread,getLogger,start,register,net_if_addrs,join,info,MsgDispatcher],stop->[kill,unregister,join,close,info],get_status->[get,RuntimeError],run->[sleep,start,stop,get_status],__init__->[ExperimentConfig,isinstance]],getLogger,init_logger_experiment] | Run the experiment. | Why add `DONE`? What is the behavior of `SUCCEED` or `FAILED`? |
@@ -26,7 +26,13 @@ func resourceComputeTargetHttpsProxy() *schema.Resource {
"ssl_certificates": &schema.Schema{
Type: schema.TypeList,
Required: true,
- Elem: &schema.Schema{Type: schema.TypeString},
+ Elem: &schema.Schema{
+ Type: schema.TypeString,
+ ValidateFunc: validate... | [Printf,GetChange,SetUrlMap,SetSslCertificates,GetOk,Do,SetPartial,Sprintf,Partial,HasChange,FormatUint,Id,Insert,Errorf,Delete,SetId,Get,Set] | google Imports a resource with a specific . proxy creates a TargetHttpsProxy object. | Minor nit: having `Required` set implicitly sets `MinItems` to `1`. |
@@ -9,12 +9,14 @@ import com.ichi2.anki.R;
import com.ichi2.anki.analytics.AnalyticsDialogFragment;
import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
public class IntegerDialog extends AnalyticsDialogFragment {
private IntRunnable callbackRunnable;
- public abstract class IntR... | [IntegerDialog->[setArgs->[putInt,putString,setArguments,Bundle],onCreateDialog->[onCreate,show]]] | set the int argument. | Probably because AnkiDroid is from 2008 and my Java skills personally are mostly from 1999-2005 :rofl: |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.