patch stringlengths 18 160k | callgraph stringlengths 4 179k | summary stringlengths 4 947 | msg stringlengths 6 3.42k |
|---|---|---|---|
@@ -1,3 +1,5 @@
+''' A module file for the waterfall audio.
+'''
from time import sleep
import numpy as np
| [update_audio_data->[randn,int,split,max,fromstring,fft,fm_modulation,simps,sleep,random,read,PyAudio,open,abs],fm_modulation->[sin],print,arange] | Get the data from the in the audio file. Generate FM signal with drifting carrier and modulation frequencies. | This module is an internal detail, I don't think this docstring is needed |
@@ -103,11 +103,11 @@ public class AggregatorFactoryBean extends AbstractSimpleMessageHandlerFactoryBe
}
public void enableStats(boolean statsEnabled) {
- this.aggregator.enableStats(statsEnabled);
+ this.aggregator.setStatsEnabled(statsEnabled);
}
public void enableCounts(boolean countsEnabled) {
- this... | [AggregatorFactoryBean->[setDiscardChannel->[setDiscardChannel],setForceReleaseAdviceChain->[setForceReleaseAdviceChain],setChannelResolver->[setChannelResolver],setBeanName->[setBeanName],setDiscardChannelName->[setDiscardChannelName],configureMetrics->[configureMetrics],enableCounts->[enableCounts],setSendPartialResu... | This method enable stats and counts. | Why this isn't called like `set...` then? |
@@ -148,6 +148,16 @@ public class JdbcIOIT {
return NamedTestResult.create(
uuid, timestamp, "write_time", (writeEnd - writeStart) / 1e3);
});
+ suppliers.add(
+ reader -> {
+ double totalBytes = reader.getCounterMetric("write_bytes");
+ return NamedTestRes... | [JdbcIOIT->[createTable->[createTable],deleteTable->[deleteTable]]] | Gets the write and read metric suppliers. | There's no need to collect bytes/items separately for write & read. If it will be different the PAssert will fail. |
@@ -6,9 +6,11 @@ import io.opentracing.Span;
import io.opentracing.SpanContext;
import io.opentracing.Tracer;
import io.opentracing.propagation.Format;
+import io.opentracing.util.ThreadLocalScopeManager;
public class QuarkusJaegerTracer implements Tracer {
+ static final String LOG_TRACE_CONTEXT = "JAEGER_L... | [QuarkusJaegerTracer->[inject->[inject],activeSpan->[activeSpan],buildSpan->[buildSpan],extract->[extract],toString->[toString],scopeManager->[scopeManager]]] | Returns a string representation of a . | I have noticed that changes to Jaeger configuration are not applied in dev mode (`maven quarkus:dev`). This is because tracer is a singleton. This could be fixed in a separate PR. |
@@ -1243,16 +1243,12 @@ dc_obj_shard_punch(struct dc_obj_shard *shard, enum obj_rpc_opc opc,
opi->opi_dti_cos.ca_arrays = NULL;
rc = daos_rpc_send(req, task);
- if (rc != 0) {
- D_ERROR("punch rpc failed rc "DF_RC"\n", DP_RC(rc));
- D_GOTO(out_req, rc);
- }
-
dc_pool_put(pool);
- return 0;
+ return rc;
out... | [No CFG could be retrieved] | Register a callback for the given object. Reads the object from the pool and checks if the object is valid. DCS IOD CSUMS. | need not add extra decref? since the daos_rpc_send will ensure to decref for both success and fail cases. |
@@ -44,6 +44,10 @@ import org.apache.hadoop.ozone.OzoneConsts;
import org.apache.hadoop.ozone.protocol.commands.SCMCommand;
import org.apache.hadoop.ozone.recon.ReconUtils;
import org.apache.hadoop.util.Time;
+
+import static org.apache.hadoop.hdds.scm.ScmConfigKeys.OZONE_SCM_DB_CACHE_SIZE_DEFAULT;
+import static or... | [ReconNodeManager->[close->[close],processHeartbeat->[processHeartbeat]]] | Imports the object that represents the node manager. Creates a new instance of ReconNodeManager. | ReconNodeManager also uses the MetadataStore to persist Node information. Any reason why we don't want to change this also like the rest? |
@@ -11,10 +11,12 @@ class PyLibensemble(PythonPackage):
"""Library for managing ensemble-like collections of computations."""
homepage = "https://libensemble.readthedocs.io"
- url = "https://pypi.io/packages/source/l/libensemble/libensemble-0.3.0.tar.gz"
+ url = "https://pypi.io/packages/sou... | [PyLibensemble->[depends_on,version]] | Creates a new object with the given name. | `:` is required to be part of a version range. If any version works, you can remove it. For now, it is causing the tests to fail. |
@@ -370,6 +370,10 @@ func filterPropertyMap(propertyMap resource.PropertyMap, debug bool) resource.Pr
}
case resource.Secret:
return "[secret]"
+ case resource.Resource:
+ return resource.Resource{
+ Urn: filterPropertyValue(t.Urn),
+ }
case resource.Computed:
return resource.Computed{
El... | [resourcePreEvent->[Requiref,Op],preludeEvent->[AssertNoError,Value,NewBlindingDecrypter,Requiref,String],policyViolationEvent->[WriteRune,FilterString,Failf,Requiref,String,WriteString],resourceOperationFailedEvent->[Requiref,Op],updateSummaryEvent->[Requiref],resourceOutputsEvent->[Requiref],previewSummaryEvent->[Req... | filterValue returns a copy of the given value with all of the fields that are not part This function checks if v is an array slice pointer or struct and handle each accordingly. | this is probably for the best. hoever, the idea of a urn containing a secret seems awful :) |
@@ -96,7 +96,7 @@ func runRecreateTable(ctx *cli.Context) error {
setting.Cfg.Section("log").Key("XORM").SetValue(",")
setting.NewXORMLogService(!ctx.Bool("debug"))
- if err := db.InitEngine(); err != nil {
+ if err := db.InitEngine(context.Background()); err != nil {
fmt.Println(err)
fmt.Println("Check if ... | [SetValue,RunChecks,InitEngineWithMigration,NewXORMLogService,NArg,StringSlice,Close,IsSet,Flush,Args,NewLoggerAsWriter,InitEngine,RecreateTables,InitDBConfig,Bool,TrimSpace,Key,NewWriter,SetFlags,NamesToBean,Section,DelNamedLogger,NewLogger,ToLower,NewNamedLogger,Get,SetPrefix,Write,Println,Sprintf,Background,SetOutpu... | cmdRecreateTable is a wrapper for the Xorm recreate - table command. Tables - run doctor. | hmm... need to determine if graceful is started here - if it is this should be graceful.HammerContext() if not we should be installingSignals if possible. |
@@ -141,6 +141,7 @@ public class WebDriverManager {
fail();
}
+ driver.manage().window().maximize();
return driver;
}
| [WebDriverManager->[getWebDriver->[apply->[isDisplayed],SafariDriver,equals,getenv,toString,info,setEnvironmentProperty,to,ChromeDriver,File,implicitlyWait,error,setPreference,getFirefoxVersion,FirefoxDriver,currentTimeMillis,downloadFireBug,fail,until,FirefoxProfile,get,addExtension,FirefoxBinary],downloadFireBug->[er... | Gets the current WebDriver. Downloads the firebug. downloads the firebug. xpi file if it doesn t exist. | is this related to this PR? |
@@ -48,8 +48,6 @@ void led_set_user(uint8_t usb_led){
} else {
//set to Hi-Z
setPinInput(B0);
- writePinLow(B0);
- setPinInput(D5);
- writePinLow(D5);
+ setPinInput(B5);
}
}
| [No CFG could be retrieved] | if D0 or D5 is not in Hi - Z then D0 is in. | Why B5? I think it will be D5. Is it true? |
@@ -77,7 +77,7 @@ public class OnheapIncrementalIndex extends IncrementalIndex<Aggregator>
{
super(incrementalIndexSchema, deserializeComplexMetrics, reportParseExceptions, concurrentEventAdd);
this.maxRowCount = maxRowCount;
- this.maxBytesInMemory = maxBytesInMemory == 0 ? -1 : maxBytesInMemory;
+ ... | [OnheapIncrementalIndex->[isNull->[isNull],close->[close,closeAggregators],getAggsForRow->[concurrentGet],ObjectCachingColumnSelectorFactory->[makeDimensionSelector->[makeDimensionSelector],getColumnCapabilities->[getColumnCapabilities]]]] | Creates a new object of the specified type and its aggregated objects. Returns the max aggregator size in bytes for an incremental index schema. | IMO, it's actually correct for this to be `-1`. It's because we expect the maxBytesInMemory to be passed in to the IncrementalIndex rather than set internally. A good sign of that is we don't have access to `TuningConfig` here. |
@@ -165,7 +165,7 @@ class Environment(object):
dataflow.Package(
location='%s/%s' % (
self.google_cloud_options.staging_location.replace(
- 'gs:/', STORAGE_API_SERVICE),
+ 'gs:/', GoogleCloudOptions.STORAGE_API_SERVICE),
... | [Environment->[__init__->[Environment]],Step->[get_output->[_get_outputs],__init__->[Step]],Job->[__init__->[Job],__str__->[decode_shortstrings->[encode_shortstrings]]],DataflowApplicationClient->[create_job->[json,stage_file],create_job_description->[Environment],modify_job_state->[Job]]] | Initialize the object with the given options. Creates a worker pool from the given parameters. Reads a single from the configuration file. Missing key - value option in SDKPipelineOptions. | From PR description - "staging_location and temp_location - In Java, tempLocation is the default value for stagingLocation. In Python I've changed the behavior to be the same.". Was this not implemented ? I don't see the change here (apiclient.py:328) Seems like some other changes mentioned in the PR description are no... |
@@ -172,6 +172,7 @@ public class RunManager {
startRedisServer();
}
startObjectStore();
+ startGcsServer();
startRaylet();
LOGGER.info("All processes started @ {}.", rayConfig.nodeIp);
} catch (Exception e) {
| [RunManager->[startObjectStore->[startProcess],startRayProcesses->[createTempDirs,cleanup],startRaylet->[startProcess],buildWorkerCommandRaylet->[concatPath],startRedisInstance->[startProcess]]] | Start all the ray processes. | This should be put in the above `if isHead` section. Also, can you consolidate this with `startRedisServer` into a method called `startGcs`? |
@@ -81,6 +81,12 @@ void NavierStokesWallCondition<TDim,TNumNodes>::CalculateLocalSystem(MatrixType&
if (rRightHandSideVector.size() != MatrixSize)
rRightHandSideVector.resize(MatrixSize, false); //false says not to preserve existing storage!!
+ // Check that parents have been computed
+ // These a... | [No CFG could be retrieved] | - - - - - - - - - - - - - - - - - - Check if the constant is fixed or not. | this seems expensive why not doing it in `Check` or at least only in debug? |
@@ -986,7 +986,13 @@ def utc_millesecs_from_epoch(for_datetime=None):
"""
if not for_datetime:
for_datetime = datetime.datetime.now()
- return calendar.timegm(for_datetime.utctimetuple()) * 1000
+ # Number of seconds.
+ seconds = time.mktime(for_datetime.timetuple())
+ # timetuple() doesn... | [slug_validator->[slugify],escape_all->[escape_all],partial->[partial],to_language->[to_language],attach_trans_dict->[sorted_groupby,get_locale_and_string],unsubscribe_newsletter->[sync_user_with_basket],fetch_subscribed_newsletters->[sync_user_with_basket],ImageCheck->[is_animated->[is_image]],send_mail->[urlparams,re... | Returns millesconds from the Unix epoch in UTC. | should this be `utctimetuple` again? |
@@ -638,7 +638,8 @@ namespace Dynamo.ViewModels
//is the one passed in
foreach (var item in e.OldItems)
{
- InPorts.Remove(InPorts.ToList().First(x => x.PortModel == item));
+ PortViewModel portToRemove = UnSubscribePortEvents(OutP... | [NodeViewModel->[ShowRename->[OnRequestShowNodeRename],ShowHelp->[OnRequestShowNodeHelp],Select->[OnRequestsSelection],ValidateConnections->[ValidateConnections]]] | inports_collectionChanged - Notify collection changed event handler for inports and outports. | This is `InPorts` not `OutPorts`. |
@@ -405,10 +405,7 @@ class Openfoam(Package):
def setup_build_environment(self, env):
"""Sets the build environment (prior to unpacking the sources).
"""
- # Avoid the exception that occurs at runtime
- # when building with the Fujitsu compiler.
- if self.spec.satisfies('%fj'... | [Openfoam->[install_write_location->[rewrite_environ_files],patch->[add_extra_files,rewrite_environ_files],setup_dependent_run_environment->[setup_run_environment],install->[install,install_write_location],configure->[foam_add_lib,foam_add_path,write_environ,pkglib,rewrite_environ_files,mplib_content],setup_dependent_b... | Sets up the build environment. Returns a new instance of the class that will be used to create the class. | Can we remove this function completely? |
@@ -702,8 +702,7 @@ resource "aws_lb_listener_rule" "static" {
}
condition {
- field = "path-pattern"
- values = ["/static/*"]
+ path_pattern = ["/static/*"]
}
}
| [ParallelTest,ModifyRule,Meta,Int64Value,DescribeRules,RandomWithPrefix,Sprintf,TestCheckResourceAttrSet,New,TestCheckResourceAttr,RootModule,ComposeTestCheckFunc,String,ComposeAggregateTestCheckFunc,Fatalf,Errorf,MustCompile,RandStringFromCharSet] | Configures the resource tags for the given object. region > aws_lb. alb_test. | Let's keep these as they were before, and update it when the deprecation happens, so we're only testing the new code with new tests. |
@@ -21,6 +21,7 @@ public class ExtensionManagerService implements Service<ExtensionManagerService>
private final List<HotRodServer> servers = new ArrayList<>();
private final Map<String, CacheEventFilterFactory> filterFactories = new HashMap<>();
private final Map<String, CacheEventConverterFactory> conv... | [ExtensionManagerService->[removeHotRodServer->[remove,removeCacheEventFilterFactory,keySet,removeCacheEventConverterFactory],setMarshaller->[setEventMarshaller],start->[debugf],stop->[debugf],removeConverterFactory->[remove,removeCacheEventConverterFactory],addConverterFactory->[put,addCacheEventConverterFactory],remo... | Override start method to register a managed extension manager. | `filterConverterFactories` is not completely handled in the other addXXX methods. |
@@ -32,7 +32,7 @@ class Room(MatrixRoom):
# dict of 'type': 'content' key/value pairs
self.account_data: Dict[str, Dict[str, Any]] = dict()
- def get_joined_members(self, force_resync=False) -> List[User]:
+ def get_joined_members(self, force_resync=True) -> List[User]:
""" Return a l... | [GMatrixClient->[set_account_data->[set_account_data],modify_presence_list->[_send],set_presence_state->[_send],stop->[stop_listener_thread],get_user_presence->[_send],_handle_response->[_mkroom,call],__init__->[GMatrixHttpApi],_mkroom->[Room,update_aliases],get_presence_list->[_send],search_room_directory->[Room,_send... | Initialize a BotsRoom object. | Since `force_resync` is **the** more expensive operation between the two, i would have this param's default remain False so that you are explicit about wanting to "force". |
@@ -9,7 +9,7 @@ define(function() {
if (typeof Int8Array !== 'undefined') {
typedArrayTypes.push(Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array);
- if (typeof Uint8ClampedArray !== 'undefined') {
+ if (defined(Uint8ClampedArray)) {
... | [No CFG could be retrieved] | Define functions for handling typed arrays. | Same deal as the other global typed arrays here with `Uint8ClampedArray`, which was introduced at some point to replace `CanvasPixelArray`. |
@@ -45,7 +45,7 @@ using System.Runtime.InteropServices;
// to distinguish one build from another. AssemblyFileVersion is specified
// in AssemblyVersionInfo.cs so that it can be easily incremented by the
// automated build process.
-[assembly: AssemblyVersion("1.0.0.806")]
+[assembly: AssemblyVersion("1.0.1.1087")]
... | [Satellite] | Assigns the given type to the assembly. | are you sure you want to commit this file? |
@@ -745,6 +745,18 @@ class Pipeline(object):
return self._compile_core()
+class Pipeline(BasePipeline):
+ """The default compiler pipeline
+ """
+ def define_pipelines(self, pm):
+ if not self.flags.force_pyobject:
+ self.define_nopython_pipeline(pm)
+ if self.status.can_f... | [compile_ir->[Pipeline,compile_ir],ir_processing_stage->[run],compile_result->[CompileResult],compile_internal->[Pipeline,compile_extra],Pipeline->[stage_objectmode_backend->[_backend],stage_pre_parfor_pass->[run],stage_generic_rewrites->[fallback_context],stage_parfor_pass->[run],backend_object_mode->[giveup_context],... | Make a new target context from the given target context and flags. | This is so much neater :) |
@@ -3,7 +3,7 @@
using System;
using Google.Protobuf.WellKnownTypes;
-namespace Pulumi.Serialization
+namespace Pulumi
{
/// <summary>
/// Attribute used by a Pulumi Cloud Provider Package to mark Resource output properties.
| [OutputAttribute->[Property],InputAttribute->[Field,Property],OutputTypeAttribute->[Class],OutputConstructorAttribute->[Constructor]] | Creates an attribute that can be used to mark a Resource s output fields and properties. Output type attribute for complex types. | we should probably update these docs now. It would actually be good to doc the Stack case here. |
@@ -247,6 +247,14 @@ def infer_arg_sig_from_docstring(docstr: str) -> List[ArgSig]:
return []
+def infer_ret_type_sig_from_docstring(docstr: str) -> Optional[str]:
+ """Convert signature in form of "(self: TestClass, arg0) -> int" to their return type."""
+ ret = infer_sig_from_docstring("stub" + docstr.... | [infer_sig_from_docstring->[add_token,DocStringParser,is_unique_args,get_signatures],DocStringParser->[add_token->[is_valid_type,ArgSig],get_signatures->[args_kwargs->[has_arg],args_kwargs]],ArgSig->[__init__->[is_valid_type]],parse_all_signatures->[parse_signature,build_signature],infer_arg_sig_from_docstring->[infer_... | Split function signature into its name positional and optional arguments. | What about renaming the function to indicate that this parses a return type using an alternative docstring syntax (`infer_arg_sig_from_docstring` is also similar and could be renamed)? Maybe add an `_alt` suffix or something. The main different seems to be that this syntax is missing the function name in the docstring. |
@@ -297,4 +297,13 @@ public class InstantGenerateOperator extends AbstractStreamOperator<HoodieRecord
fs.delete(fileStatus.getPath(), true);
}
}
+
+ private Path generateCurrentMakerDirPath() {
+ Path auxPath = new Path(cfg.targetBasePath, HoodieTableMetaClient.AUXILIARYFOLDER_NAME);
+ return new ... | [InstantGenerateOperator->[prepareSnapshotPreBarrier->[prepareSnapshotPreBarrier],open->[open],close->[close]]] | clean marker folder. | I think we have a typo. `Maker` -> `Marker`? :) @ZhangChaoming |
@@ -33,8 +33,10 @@ class Executor(Serializable):
"""
raise NotImplementedError()
- def set_state(self, current_state: State, state: State, data: Any = None) -> State:
- return state(data)
+ def set_state(
+ self, current_state: State, state: State, data: Any = None, message: str ... | [Executor->[run_task->[submit],run_flow->[submit]]] | Waits for all futures to complete. | `message` will sometimes be an actual `Exception` as well. |
@@ -348,7 +348,11 @@ func (a Archive) openURLStream(url *url.URL) (io.ReadCloser, error) {
// APIs that demand []bytes.
func (a Archive) Bytes(format ArchiveFormat) []byte {
var data bytes.Buffer
- a.Archive(format, &data)
+ err := a.Archive(format, &data)
+ if err != nil {
+ contract.Assert(err != nil)
+ }
+
re... | [readMap->[Read,GetMap],GetURIURL->[GetURI],Bytes->[Bytes],readText->[GetText],readURI->[GetURIURL],archiveZIP->[Read,Close],ReadSourceArchive->[openURLStream,GetPath,GetURIURL],archiveTarGZIP->[archiveTar],readPath->[GetPath],Seek->[Seek],GetURI->[IsURI],Read->[readURI,IsText,IsMap,readPath,Read,IsPath,IsURI],GetText-... | Bytes returns the archive as bytes in the given format. | Don't need the `if` - you can just call `contract.Assert`. |
@@ -196,6 +196,18 @@ class StoriesController < ApplicationController
render template: "articles/show"
end
+ def assign_feed_stories
+ feed = Articles::Feed.new(number_of_articles: 35, page: @page, tag: params[:tag])
+ if %w[week month year infinity].include?(params[:timeframe])
+ @stories = feed.t... | [StoriesController->[assign_second_and_third_user->[find,third_user_id,blank?,present?,second_user_id],handle_base_index->[user_signed_in?,headers,latest_feed,decorate,new,to_i,render,decorate_collection,set_surrogate_key_header,include?,top_articles_by_timeframe,default_home_feed],redirect_if_view_param->[redirect_to,... | Handles the show - key nag. | Seeing this here again makes me think that maybe there is a point to be made for the service object approach. Instead of forcing one helper method to accommodate both use cases, we could have something like `feed.stories` and `feed.feed` (`feed.feed_stories`, I haven't had enough for sensible naming yet). But again, ... |
@@ -55,7 +55,9 @@ func newStackInitCmd() *cobra.Command {
}
if stackName == "" && cmdutil.Interactive() {
- name, nameErr := cmdutil.ReadConsole("Enter a stack name")
+ name, nameErr := cmdutil.ReadConsole("Please enter your desired stack name.\n" +
+ "To create a stack in an organization, " +
+ ... | [GetGlobalColorization,New,RunFunc,ReadConsole,ParseStackReference,StringVarP,Interactive,MaximumNArgs,PersistentFlags] | Command creates an empty stack with the given name but afterwards it can become the target of a. | Minor nit: Above we use single quotes around `'acmecorp/dev'` and here we use backticks `` `acmecorp/dev` ``. We're inconsistent in our usage throughout the CLI (and I never know which one to choose). It might be nice to clean this up throughout at some point in a separate change. |
@@ -2504,8 +2504,15 @@ For EEGLAB exports, channel locations are expanded to full EEGLAB format.
For more details see :func:`eeglabio.utils.cart_to_eeglab`.
"""
docdict['export_edf_note'] = """
-For EDF exports, only EEG, ECoG and sEEG data are supported. In
-addition, EDF does not support storing a montage.
+For ED... | [copy_doc->[wrapper->[ValueError,len]],copy_function_doc_to_method_doc->[wrapper->[split,lstrip,len,strip,ValueError,join,enumerate]],linkcode_resolve->[relpath,split,hasattr,getattr,dirname,getsourcefile,get,len,join,normpath,getsourcelines],fill_doc->[split,indentcount_lines,append,len,str,items,join,splitlines,Runti... | This function exports the MNE - specific information to MNE - specific MNE The data is set to 0. | This makes me think that we should have a `with pytest.raises(RuntimeError, match='only data in volts')` where you try to `raw.export(...)` a `raw` that has MEG data (e.g., `'grad' in raw`). But I missed / did not follow the entire discussion on the original EDF export PR, so if this does not make sense, that's fine |
@@ -272,11 +272,13 @@ func (node *OsdnNode) Start() error {
continue
}
if vnid, err := node.policy.GetVNID(p.Namespace); err == nil {
- node.policy.RefVNID(vnid)
+ node.policy.EnsureVNIDRules(vnid)
}
}
}
+ go kwait.Forever(node.policy.SyncVNIDRules, time.Hour)
+
log.V(5).Infof("openshift... | [dockerPreCNICleanup->[EndTransaction,ExponentialBackoff,CombinedOutput,Error,Infof,NewTransaction,Ping,IgnoreError,New,SetLink,DeleteLink,NewClientFromEnv,Errorf,Command],handleDeleteService->[Infof,GetVNID,V,DeleteServiceRules,UnrefVNID],Start->[SubnetStartNode,watchServices,Infof,Warningf,GetVNID,SetupSDN,GetHostIPN... | Start starts the node Update all pods in the cluster and update the CNI config file. | So this will sync once a day; seems like on a large cluster we could build up quite a list of stale VNID rules. Should we do it like once an hour or 3 or something instead? |
@@ -106,11 +106,13 @@ func newDestroyCmd() *cobra.Command {
}
_, res := s.Destroy(commandContext(), backend.UpdateOperation{
- Proj: proj,
- Root: root,
- M: m,
- Opts: opts,
- Scopes: cancellationScopes,
+ Proj: proj,
+ Root: root,
+ M: ... | [StringVar,GetGlobalColorization,Error,RunResultFunc,New,StringSliceVar,IntVarP,StringVarP,FromError,Destroy,Wrap,Interactive,BoolVarP,PersistentFlags,BoolVar] | Magic flags for the environment. Flags for the given analyzers as part of this update. | Any reason these are passed in here instead of looked up off the `stack` inside `Destroy` and friends? (not requiring these concepts to bubble up all the way to the CLI code). As far as I can tell - the results of `getStackConfiguration(s)` are only ever used to pass in as inputs to methods on `s`. |
@@ -27,12 +27,16 @@
path = Path.Combine(basePath, settings.InputQueue);
bodyDir = Path.Combine(path, BodyDirName);
+ delayedDir = Path.Combine(path, DelayedDirName);
+
+ pendingTransactionDir = Path.Combine(path, PendingDirName);
+ committedTransactionDir = P... | [LearningTransportMessagePump->[ProcessFile->[SendsAtomicWithReceive,Rollback,UtcNow,TryGetValue,IsCancellationRequested,ClearPendingOutgoingOperations,FileToProcess,GetCreationTimeUtc,AddOrUpdate,RetryRequired,Parse,ConfigureAwait,Combine,Set,TimeToBeReceived,Deserialize],Task->[IsCancellationRequested,BeginTransactio... | Initializes the push transport. | could we give `path` a better name? |
@@ -284,9 +284,12 @@ namespace System.Windows.Forms
internal override object GetPropertyValue(int propertyID)
{
- if (propertyID == NativeMethods.UIA_ControlTypePropertyId)
+ switch (propertyID)
{
- return NativeMethods.UIA_Me... | [MenuStrip->[ProcessCmdKey->[ProcessCmdKey],WndProc->[WndProc],MenuStripAccessibleObject->[GetPropertyValue->[GetPropertyValue]]]] | GetPropertyValue - override for UIA_MenuBarControlTypeId. | This change is not needed because it is a copy/paste of the base class implementation |
@@ -168,7 +168,7 @@ public class ContentProjectHistoryEntry {
return new ToStringBuilder(this)
.append("id", id)
.append("version", version)
- .append("contentProject", contentProject.getLabel())
+ .append("contentProject", ofNullable(contentProje... | [ContentProjectHistoryEntry->[toString->[toString]]] | Returns a string representation of the . | Maybe the usage of `map` here is more a workaround as per `contentProject` is not exactly a `list`? What about `.append("contentProject", Opt.fold(Optional.ofNullable(contentProject), () -> "null", p -> p.getLabel()))` or `.append("contentProject", ofNullable(contentProject).isPresent() ? contentProject.getLabel() : "n... |
@@ -80,4 +80,14 @@ public class MetadataNegativeTestCase extends MetadataExtensionFunctionalTestCas
assertFailure(metadata, "not MetadataAware", FailureCode.UNKNOWN, ClassCastException.class.getName());
}
+ @Test
+ public void dynamicContentWithCacheMustFail() throws Exception
+ {
+ proc... | [MetadataNegativeTestCase->[processorDoesNotExist->[assertFailure,getMetadata,ProcessorId,getName],getKeysWithRuntimeException->[assertFailure,ProcessorId,getName,getMetadataKeys],getOperationMetadataWithRuntimeException->[assertFailure,getMetadata,ProcessorId,getName],flowDoesNotExist->[assertFailure,getMetadata,Proce... | Checks if the current processor is not MetadataAware. | why must it fail? fetchMissingElementFromCache? |
@@ -57,9 +57,9 @@ func update(informerName string, providerName string, announce chan interface{},
}
// delete Kubernetes cache from an incoming Kubernetes event.
-func delete(informerName string, providerName string, announce chan interface{}, nsFilter namespaceFilter) func(obj interface{}) {
+func delete(informer... | [Msgf,ValueOf,Elem,FieldByName,String,Trace,Getenv,Debug] | delete returns a function that can be used to update an object s namespace and delete an object. | nit : rename nsFilter to shouldObserve like the add method for consistency |
@@ -2,8 +2,8 @@ import Localization from 'react-localization';
import { AsyncStorage } from 'react-native';
import { AppStorage } from '../class';
import { BitcoinUnit } from '../models/bitcoinUnits';
-let currency = require('../currency');
-let BigNumber = require('bignumber.js');
+const BTCUnits = require('bitcoin... | [No CFG could be retrieved] | Imports the given language and returns the sequence of possible possible values. Format the amount of bitcoins that have been consumed by the last bitcoins period. | I strongly advice get rid of unnecessary dependency with some 20 starts by random anonymous from interwebz for the sake of security. And from now on be extra cautious of what dependency add or update |
@@ -218,11 +218,9 @@ def infomax(data, weights=None, l_rate=None, block=None, w_change=1e-12,
old_kurt = kurt
# estimate weighted signs
- signs.flat[::n_features + 1] = ((kurt + signsbias) /
- np.abs(ku... | [infomax->[,max,check_random_state,sqrt,sum,exp,random_permutation,identity,info,int,astype,min,copy,kurtosis,log,zeros,range,abs,dot,acos,fix,ValueError,floor,uniform,ones,tanh,reshape]] | Run the Infomax ICA decomposition on a sequence of data. Estimate the number of blocks after to recompute Kurtosis. Compute the n - dimensional ICA for a single node. Estimate the kurtosis of a single ICA. | you don't need the inner parentheses here. |
@@ -93,7 +93,9 @@ def layer_test(layer_cls, kwargs=None, input_shape=None, input_dtype=None,
string or integer values.
adapt_data: Optional data for an 'adapt' call. If None, adapt() will not
be tested for this layer. This is only relevant for PreprocessingLayers.
-
+ custom_objects: Optional Obje... | [get_small_mlp->[get_model_type,get_small_subclass_mlp,get_small_functional_mlp,get_small_subclass_mlp_with_custom_build,get_small_sequential_mlp],get_model_from_layers->[_SubclassModelCustomBuild,_SubclassModel,get_model_type],get_small_subclass_mlp->[SmallSubclassMLP],_SubclassModel->[call->[_layer_name_for_i]],get_m... | Test routine for a layer with a single input and single output. Test if a specific layer has a specific output. Test if the output shape of the missing layer is equal to the expected output shape of the Test training and inference of the n - layer in Sequential API. | nit: custom_objects: Optional dictionary mapping name strings to custom objects in the layer class. This is helpful to test a custom layer. |
@@ -107,8 +107,9 @@ class OpenfoamOrg(Package):
assets = ['bin/foamEtcFile']
# Version-specific patches
+ patch('50-etc.patch', when='@5.0:')
patch('41-etc.patch', when='@4.1')
- patch('41-site.patch', when='@4.1')
+ patch('41-site.patch', when='@4.1:')
# Some user config settings
... | [OpenfoamOrg->[install->[install],patch->[rename_source]]] | Provide a list of all packages that can be built with the OpenFOAM library. Setup environment variables and configuration files for the . | Where is that patch coming from? |
@@ -45,6 +45,7 @@ public class DatabaseChecker implements Startable {
// MsSQL 2014 is 12.x
// https://support.microsoft.com/en-us/kb/321185
MsSql.ID, Version.create(11, 0, 0),
+ MsSql.ID, Version.create(10, 0, 0),
MySql.ID, Version.create(5, 6, 0),
Oracle.ID, Version.create(11, 0, 0),
... | [DatabaseChecker->[start->[propagate,equals,checkOracleDriverVersion,checkMinDatabaseVersion,warn,getId],checkOracleDriverVersion->[split,of,parseInt,format,getConnection,getDriverVersion],checkMinDatabaseVersion->[create,of,get,compareTo,getDatabaseMinorVersion,format,getConnection,getId,getDatabaseMajorVersion],creat... | Method to check the version of a single object in a database. Check the minimum database version. | `MsSql.ID` ? Maybe `MySQL.ID` is right? |
@@ -7,7 +7,7 @@
num: tag.span(t("views.articles.comments.num", num: @article.comments_count), class: "js-comments-count", data: { comments_count: @article.comments_count })) %>
</h2>
<div id="comment-subscription" class="print-hidden">
- <div role="presentation" class="crayon... | [No CFG could be retrieved] | Renders the whole comment area. Renders the comments tree. | When this HTML is rendered, there is only ever one button, so there is no need to add any additional semantics to place this in a group, and `role="presentation"` doesn't really have any impact on a `div` since it has no baked-in semantics |
@@ -27,7 +27,7 @@ const ChatAndPolls = () => {
height: clientHeight,
width: clientWidth
}}
- tabBarOptions = {{
+ screenOptions = {{
...chatTabBarOptions
}}>
<ChatTab.Screen
| [No CFG could be retrieved] | Create a default component that displays a single chat and polls. | Is this change due to react navigation 6? |
@@ -132,7 +132,7 @@ function loadHBTag(global, data, publisherUrl, referrerUrl) {
let currentParam = '';
for (let i = 0; i < allParams.length; i++) {
currentParam = allParams[i];
- if (dfpParams.indexOf(currentParam) === -1 && data[currentParam]) {
+ if (!dfpParams.includes(currentParam) && d... | [No CFG could be retrieved] | The main entry point for the MNAMP plugin. function to handle the missing neccesary object. | So everything in this file cannot be updated, because the ads directory is run in foreign iframes. This means they will not have the Array#includes polyfill installed in them. |
@@ -136,6 +136,12 @@ private:
uint16_t ptr;
} m_video;
+ bool brga, brgb, brg_state;
+ int brgc;
+ emu_timer *m_brg;
+
+ void update_brg(bool a, bool b, int c);
+
required_shared_ptr<uint8_t> m_p_videoram;
required_device<cpu_device> m_maincpu;
required_device<pic8259_device> m_pic8259;
| [No CFG could be retrieved] | region Private methods 8 - bit AM. | Please initialise pointer members in the constructor. |
@@ -716,8 +716,10 @@ class BigQueryFileLoadsIT(unittest.TestCase):
max_file_size=20,
max_files_per_bundle=-1))
+ @parameterized.expand(
+ [param(with_auto_sharding=False), param(with_auto_sharding=True)])
@attr('IT')
- def test_bqfl_streaming(self):
+ def test_bqfl_streaming(s... | [TestWriteGroupedRecordsToFile->[test_multiple_files->[_consume_input],test_files_are_created->[_consume_input]],TestWriteRecordsToFile->[test_records_are_spilled->[_consume_input],test_files_created->[_consume_input],test_many_files->[_consume_input]]] | This method transforms the missing - missing entries in the output table to one bigquery table. BigQuery pipeline that reads all input in machine and writes them to bigquery. BigqueryPipeline is not supported on TestDataflowRunner. | I was not able to run this with Dataflow runner. I can revert it back if more appropriate. |
@@ -12,6 +12,7 @@ class PyDill(PythonPackage):
homepage = "https://github.com/uqfoundation/dill"
url = "https://pypi.io/packages/source/d/dill/dill-0.2.7.tar.gz"
+ version('0.2.9', sha256='f6d6046f9f9195206063dd0415dff185ad593d6ee8b0e67f12597c0f4df4986f')
version('0.2.7', sha256='ddda0107e68e4e... | [PyDill->[url_for_version->[Version,format],depends_on,version]] | Creates a new object containing all of the national security related to a specific sequence. Returns a URL for the given version of the sequence. | Can you make the Python dep `type=('build', 'run')`? |
@@ -31,7 +31,8 @@ public class MapListingFetcher {
if (ClientSetting.useMapsServerBetaFeature.getValue().orElse(false)) {
// Get the URI of the maps server (either from override or read it from the servers file) and
// then send an API call to it requesting the list of maps available for download.
- ... | [MapListingFetcher->[getMapDownloadList->[MapListingFetcher]]] | Get the list of maps available for download. | This got formatted when I ran spotlessJavaApply. |
@@ -43,6 +43,7 @@ public final class ContainerCache extends LRUMap {
private final Lock lock = new ReentrantLock();
private static ContainerCache cache;
private static final float LOAD_FACTOR = 0.75f;
+ private final Striped<Lock> rocksDBLock = Striped.lazyWeakLock(1024);
/**
* Constructs a cache that ... | [ContainerCache->[removeLRU->[getValue,cleanup,lock,unlock],removeDB->[cleanup,checkArgument,getReferenceCount,get,lock,unlock,remove],getDB->[checkState,error,build,ReferenceCountedDB,get,lock,unlock,put,incrementReference],addDB->[unlock,lock,putIfAbsent],getInstance->[getInt,ContainerCache],shutdownCache->[hasNext,g... | Creates a container cache that holds the DBHandle references. Get the instance of the container cache. | Would be nice to make the number of stripes configurable (later). |
@@ -65,8 +65,12 @@ class InteractiveRunner(runners.PipelineRunner):
"""
self._underlying_runner = (underlying_runner
or direct_runner.DirectRunner())
- self._cache_manager = cache.FileBasedCacheManager(cache_dir, cache_format)
- self._renderer = pipeline_graph_renderer.ge... | [InteractiveRunner->[_pcolls_to_pcoll_id->[PCollVisitor],cleanup->[cleanup],apply->[apply]],PipelineResult->[sample->[_cache_label],get->[_cache_label]]] | Initializes the object with the given configuration. | Why make the CacheManager a global instead of per InteractiveRunner? The way that it is written here is that every InteractiveRunner will receive the same CacheManager. What if the user wants to create a new InteractiveRunner? |
@@ -100,6 +100,10 @@ class TestData(object):
def packages3(self):
return self.root.join("packages3")
+ @property
+ def packages4(self):
+ return self.root.join("packages4")
+
@property
def src(self):
return self.root.join("src")
| [_create_test_package_with_subdirectory->[run],need_mercurial->[need_executable],_change_test_package_version->[run],TestPipResult->[assert_installed->[TestFailure]],need_bzr->[need_executable],_vcs_add->[run],TestData->[find_links3->[path_to_url],find_links->[path_to_url],index_url->[path_to_url],find_links2->[path_to... | Package 3 - tuple of packages. | This feels unnecessary -- why has a simple package been added under a new, different directory; am I missing something? |
@@ -21,11 +21,6 @@ def run():
if len(args) != 1:
parser.print_help()
sys.exit(1)
- # This works around an annoying bug on Windows for show_fiff, see:
- # https://pythonhosted.org/kitchen/unicode-frustrations.html
- if int(sys.version[0]) < 3:
- UTF8Writer = codecs.getwriter('utf8'... | [run->[show_fiff,int,print,parse_args,print_help,len,UTF8Writer,get_optparser,exit,getwriter],run] | Run command. | I don't know if this fixes the readability, but this is the only way I'm able to use this command with the problematic file. All the other configurations seem to fail. |
@@ -101,9 +101,9 @@ type OffchainReportingOracleSpec struct {
TransmitterAddress *models.EIP55Address `json:"transmitterAddress" toml:"transmitterAddress"`
ObservationTimeout models.Interval `json:"observationTimeout" toml:"observationTimeout" gorm:"type:bigint;default:n... | [BeforeSave->[Now],BeforeCreate->[Now],SetID->[ParseInt],GetID->[Sprintf]] | GetID returns the ID of the OVS object. | gorm v1 would normally have marshalled a null into a zero valued uint16, but gorm v2 will error on that without a Value/Scan defined on it. I think its ok to have ContractConfigConfirmations marshal to zero in the db, as we treat that as unset elsewhere and you can't actually set it to 0 anyways. |
@@ -384,7 +384,14 @@ dss_srv_handler(void *arg)
/** set affinity */
rc = hwloc_set_cpubind(dss_topo, dx->dx_cpuset, HWLOC_CPUBIND_THREAD);
if (rc) {
- D_ERROR("failed to set affinity: %d\n", errno);
+ D_ERROR("failed to set cpu affinity: %d\n", errno);
+ goto signal;
+ }
+
+ rc = hwloc_set_membind(dss_topo, dx... | [No CFG could be retrieved] | drained ULTs Initialize the TLS context. | I think that HWLOC_CPUBIND_THREAD needs to be one of > enum hwloc_membind_flags_t { HWLOC_MEMBIND_PROCESS, HWLOC_MEMBIND_THREAD, HWLOC_MEMBIND_STRICT, HWLOC_MEMBIND_MIGRATE, HWLOC_MEMBIND_NOCPUBIND }. Given that, I think you want HWLOC_MEMBIND_THREAD. |
@@ -184,11 +184,10 @@ class StartFlowRun(Task):
scheduled_start_time=scheduled_start_time,
)
- self.logger.debug(f"Flow Run {flow_run_id} created.")
-
self.logger.debug(f"Creating link artifact for Flow Run {flow_run_id}.")
run_link = client.get_cloud_url("flow-run", flo... | [StartFlowRun->[__init__->[TypeError,setdefault,super,isinstance,values],run->[signal_from_state,create_link,create_flow_run,with_args,debug,sleep,get,Client,EnumValue,graphql,get_flow_run_info,ValueError,format,get_cloud_url,is_finished,urlparse],defaults_from_attrs],FlowRunTask->[__new__->[super,warn]]] | This method is used to run a specific flow run in a specific project. Find a specific in the database and create a link to the flow run. Check if the flow run has a lease. | I don't think we should remove this line |
@@ -19,12 +19,15 @@ class Dock(Package):
url = "file://{0}/dock.6.9_source.tar.gz".format(os.getcwd())
manual_download = True
- version('6.9', sha256='c2caef9b4bb47bb0cb437f6dc21f4c605fd3d0d9cc817fa13748c050dc87a5a8')
+ version('6.9', preferred=True, sha256='c2caef9b4bb47bb0cb437f6dc21f4c605fd3d0... | [Dock->[install->[list,keys,append,working_dir,install_tree,format,join,which,InstallError,mkdirp],setup_build_environment->[set],depends_on,format,version,variant,getcwd]] | Set up the build environment for the MPI. | What would be the purpose of this version? |
@@ -19,7 +19,7 @@ module Kernel
case RUBY_PLATFORM
when "x86_64-linux"
suffix = '.so'
- when "x86_64-darwin18", "x86_64-darwin19"
+ when "x86_64-darwin18", "x86_64-darwin19", "x86_64-darwin20"
suffix = '.bundle'
else
raise "unknown platform: #{RUBY_PLATFORM}"
| [require->[include?,raise,realpath,join,exist?,gsub,puts,start_with?,sorbet_old_require],require_relative->[dirname,absolute_path,must,require,caller_locations,expand_path]] | require a file with optional extension. | Where does this extra `darwin20` come from? |
@@ -236,8 +236,11 @@ namespace Microsoft.Xna.Framework
_height = displayRect.Height;
}
- var centerX = Math.Max(prevBounds.X + ((prevBounds.Width - clientWidth) / 2), 0);
- var centerY = Math.Max(prevBounds.Y + ((prevBounds.Height - clientHeight) / 2), 0);
+ ... | [SdlGameWindow->[Dispose->[Dispose],SetTitle->[SetTitle]]] | EndScreenDeviceChange - This method is called when the screen device is changed. region Window Position. | So if i read this right... you're just adjusting the center so that the title is visible and the bottom of the window is offscreen. The window size isn't changing at all. Correct? |
@@ -3252,6 +3252,7 @@ namespace Internal.JitInterface
args.coldCodeBlock = (void*)GetPin(_coldCode = new byte[args.coldCodeSize]);
args.coldCodeBlockRW = args.coldCodeBlock;
}
+ allocatedHotCodeSize = args.hotCodeSize;
_codeAlignment = -1;
... | [No CFG could be retrieved] | This is the main entry point for the method compile. Reserve unwind info for a node. | Can we just use `_code.Length` instead of introducing this field? |
@@ -518,7 +518,8 @@ class Solver(object):
has_update = True
break
# let conda determine the latest version by just adding a name spec
- return MatchSpec(spec.name) if has_update else None
+ return (MatchSpec(spec.name, version=prec.version, build_number=p... | [diff_for_unlink_link_precs->[_add_to_unlink_and_link],Solver->[get_constrained_packages->[empty_package_list],_add_specs->[_should_freeze,_compare_pools],_post_sat_handling->[solve_final_state]]] | Checks if a package has updates. | This super-specific version/build number doesn't matter for solving. We used it as a reference point to say "can you install this? If not, which specs are in the way?" and we then unfreeze them if we can. |
@@ -7,12 +7,13 @@ namespace NServiceBus
{
public int Attempt { get; }
public TimeSpan Delay { get; }
- public bool IsImmediateRetry => Delay == TimeSpan.Zero;
+ public bool IsImmediateRetry { get; }
- public MessageToBeRetried(int attempt, TimeSpan delay, IncomingMessage me... | [MessageToBeRetried->[Zero]] | MessageToBeRetried - A MessageToBeRetried object. | I added a specific bool flag to distinguish between delayed and immediate retries as this caused wrong behavior when sending ready messages in case you configure a 0 delay for delayed retries. Although that config is suspicious too, it would not send a ready message although the message will be sent to the timeout mana... |
@@ -710,8 +710,9 @@ type PackageSpec struct {
// Config describes the set of configuration variables defined by this package.
Config ConfigSpec `json:"config"`
- // Types is a map from type token to ObjectTypeSpec that describes the set of object types defined by this package.
- Types map[string]ObjectTypeSpec `j... | [bindProperties->[bindType],bindObjectType->[bindObjectTypeDetails],bindType->[String,bindType,bindPrimitiveType],bindObjectTypeDetails->[bindProperties],String->[String],bindProperties,bindObjectType,ImportLanguages,bindObjectTypeDetails,String] | ImportSpec converts a serializable PackageSpec into a Package object. P oject e t einer n Element einer n Elemente. | The wire format stays backward compatible, doesn't it? |
@@ -203,6 +203,11 @@ func BuildOpenshiftControllerConfig(options configapi.MasterConfig) (*OpenshiftC
DisableScheduledImport: options.ImagePolicyConfig.DisableScheduledImport,
ScheduledImageImportMinimumIntervalSeconds: options.ImagePolicyConfig.ScheduledImageImportMinimumIntervalSeconds,
}
... | [ExpandOrDie,ReadPrivateKey,Has,Join,ReadFile,CertsFromPEM,ParseCertsPEM,LegacyCodec,Errorf,EnvVars,GetInternalKubeClient,NewDefaultImageTemplate] | Initializes the controller configuration. HorizontalPodAutoscalerControllerConfig provides a controller for the Half - Nomensters controller. | @deads2k ultimately we passing this to a context of containers/image where we do http.Get to fetch the sig data... This means after 1 minute we cancel the request and retry on next sync. |
@@ -16,6 +16,16 @@ from dvc.utils.compat import is_py2
logger = logging.getLogger("dvc")
+footer = (
+ "\n{yellow}Having any troubles?{nc}"
+ " Hit us up at {blue}https://dvc.org/support{nc},"
+ " we are always happy to help!"
+).format(
+ blue=colorama.Fore.BLUE,
+ nc=colorama.Fore.RESET,
+ yell... | [main->[exception,setLevel,Analytics,parse_args,close_pools,clean_repos,isinstance,run,func],getLogger] | Run DVC CLI command. | I would create this message only when it's needed. Maybe some `show_troubles_footer()` func. |
@@ -2139,14 +2139,14 @@ Configurable, StateListener<VirtualMachine.State, VirtualMachine.Event, VirtualM
}
Answer answer = cmds.getAnswer("users");
- if (!answer.getResult()) {
+ if (answer != null && !answer.getResult()) {
s_logger.error("Unable to sta... | [VirtualNetworkApplianceManagerImpl->[completeAggregatedExecution->[aggregationExecution],RvRStatusUpdateTask->[runInContext->[updateRoutersRedundantState,checkDuplicateMaster,checkSanity]],startRouter->[startRouter],processConnect->[stopRouter],destroyRouter->[destroyRouter],prepareAggregatedExecution->[aggregationExe... | Start a VPN on a remote network. Checks if we can start vpn in another zone. | You can use `org.apache.commons.lang3.BooleanUtils.toBooleanObject(String, String, String, String)` here |
@@ -128,6 +128,11 @@ class Bazel(Package):
patch('compile-0.4.patch', when='@0.4:0.5')
patch('compile-0.3.patch', when='@:0.3')
+ #for fcc
+ patch('patch_for_fcc.patch', when='@0.29.1:%fj')
+ patch('patch_for_fcc2.patch', when='@0.25:%fj')
+ parallel = False
+
phases = ['bootstrap', 'inst... | [Bazel->[install->[install,mkdir],url_for_version->[Version,format],bootstrap->[which,bash],setup_dependent_package->[Executable],test->[exe,write,working_dir,Executable,bazel,touch,open],setup_build_environment->[,set],depends_on,machine,version,patch,on_package_attributes,run_after]] | Returns the URL for a specific version of bazel. | Did you encounter some problems while building in parallel? I've never had a problem, but I know this package takes a long time to compile, so I don't want to build in serial unless we have to. |
@@ -377,7 +377,6 @@ class Toolbox(QObject, Extension):
def onLicenseAccepted(self):
self.closeLicenseDialog.emit()
package_id = self.install(self.getLicenseDialogPluginFileLocation())
- self.subscribe(package_id)
@pyqtSlot()
| [Toolbox->[resetMaterialsQualitiesAndUninstall->[_resetUninstallVariables,closeConfirmResetDialog],_onDownloadFailed->[resetDownload],launch->[_restart],_onDataRequestFinished->[isLoadingComplete],_updateInstalledModels->[_convertPluginMetadata],install->[_updateInstalledModels],uninstall->[_updateInstalledModels],onLi... | Called when the user clicks on the License Accepted button. | Hmm, I'd still expect it to subscribe also if you install it via the Marketplace? I'll test if this is still working. Seems that you intended to remove this, so I don't understand. Was this removed just for testing maybe? |
@@ -18,7 +18,6 @@
package export
import (
- "fmt"
"os"
"github.com/spf13/cobra"
| [Write,Unpack,Marshal,NewBeat,InitWithSettings,Errorf,RunWith] | GenExportConfigCmd creates a command that exports the given configuration to stdout. Initialize a single beacon. | This file is the export commands entrypoint. Let's rename it to libbeat/cmd/export/export.go and also put very small helpers like `fatalf` in here. |
@@ -352,8 +352,8 @@ namespace Kratos
msAux(3,3)+=N[3]*N[2];
msAux(3,3)+=N[3]*N[3];// + N[3]*N[0] + N[3]*N[1] + N[3]*N[2];
-
- noalias(rLeftHandSideMatrix) += 1.0 * Weight * absorptioncoefficient * msAux; //LO COMENTO AHORA
+
+ noalias(rLeftHandSideMatrix) += 1.0 * Weight * absorptioncoefficient * ... | [No CFG could be retrieved] | Weight - Weights of the integration points. This function calculates the nodal contributions for the explicit steps of the national step procedure. | why do you multiply by 1.0? |
@@ -566,6 +566,11 @@ function createBaseCustomElementClass(win) {
/** @private {?./layout-delay-meter.LayoutDelayMeter} */
this.layoutDelayMeter_ = null;
+
+ if (this.whenUpgradeToCustomElement_) {
+ this.whenUpgradeToCustomElement_();
+ this.whenUpgradeToCustomElement_ = null;
+ ... | [No CFG could be retrieved] | The base class for the given custom element. Replies the resources manager. Only available after attachment. | See below, re: strings instead of private properties. |
@@ -54,7 +54,7 @@ public class IndexingCommand implements Serializable {
INSERT, UPDATE, UPDATE_SECURITY, DELETE, UPDATE_DIRECT_CHILDREN,
}
- public static final String PREFIX = "IndexingCommand-";
+ public static final String PREFIX = "IxCd-";
protected String id;
| [IndexingCommand->[fromJSON->[fromJSON,IndexingCommand],merge->[merge],toJSON->[getRepositoryName,toJSON],toString->[toString,toJSON],makeSync->[toString],clone->[IndexingCommand]]] | Creates a new indexing command. The index command for the given document and its descendants. | Change seems unrelated. |
@@ -464,6 +464,13 @@ class FunctionEmitterVisitor(OpVisitor[None], EmitterInterface):
self.emit_line('%s = %s%s %s %s%s;' % (dest, lhs_cast, lhs,
op.op_str[op.op], rhs_cast, rhs))
+ def visit_ptr_deref(self, op: PtrDeref) -> None:
+ dest = self.reg(op... | [FunctionEmitterVisitor->[c_error_value->[c_error_value],emit_dec_ref->[emit_dec_ref],label->[label],visit_call_c->[get_dest_assign],c_undefined_value->[c_undefined_value],ctype->[ctype],get_attr_expr->[temp_name],emit_declaration->[emit_line],emit_inc_ref->[emit_inc_ref],reg->[reg],temp_name->[temp_name],visit_set_att... | Emit a binary int operation. | The second set of parentheses are redundant? |
@@ -176,7 +176,7 @@ module.exports = class bibox extends Exchange {
'max': undefined,
},
'price': {
- 'min': undefined,
+ 'min': Math.pow (10, -precision['price']),
'max': undefined,... | [No CFG could be retrieved] | Get all of the possible order items from the server. Get the data for a missing entry. | The reason for not setting it, is that the min limit may be way above precision, and if we serve a lower limit value based on precisions - that may be incorrect. Say, a precision of 8 and a min price of 0.12345678. Are you sure that bibox min price is always based on price precision? |
@@ -71,6 +71,7 @@ public class FileSourceDto {
return this;
}
+ @CheckForNull
public String getDataHash() {
return dataHash;
}
| [FileSourceDto->[decodeData->[parseFrom,LZ4BlockInputStream,decodeData,IllegalStateException,closeQuietly,ByteArrayInputStream],getData->[decodeData],encodeData->[IllegalStateException,toByteArray,closeQuietly,LZ4BlockOutputStream,ByteArrayOutputStream,close,writeTo],setData->[encodeData]]] | This method is called to set the fileUuid. | Please add @Nullable in the parameter of setSrcHash() |
@@ -360,10 +360,14 @@ def fetch_subscribed_newsletters(user_profile):
return data['newsletters']
-def subscribe_newsletter(user_profile, basket_id):
- response = basket.subscribe(user_profile.email, basket_id, sync='Y')
+def subscribe_newsletter(request, user_profile, basket_id):
+ response = basket.subs... | [slug_validator->[slugify],escape_all->[escape_all],partial->[partial],to_language->[to_language],attach_trans_dict->[sorted_groupby,get_locale_and_string],unsubscribe_newsletter->[sync_user_with_basket],fetch_subscribed_newsletters->[sync_user_with_basket],ImageCheck->[is_animated->[is_image]],send_mail->[urlparams,re... | Subscribe a user to a basket. | Since we handle the case where `request` is `None`, how about making it an optional keyword argument instead ? Makes it easier when debugging through a shell, too - something I've been doing a lot recently - you just need to pass the user and basket id. |
@@ -256,7 +256,7 @@ ds_pool_map_tgts_update(struct pool_map *map, struct pool_target_id_list *tgts,
D_PRINT("Target (rank %u idx %u) is down.\n",
target->ta_comp.co_rank,
target->ta_comp.co_index);
- if (pool_map_node_status_match(dom,
+ if (evict_rank && pool_map_node_status_match(dom,
PO_COMP_S... | [No CFG could be retrieved] | find the target in the pool and change it to DOWN if necessary. add or remove the object from the object layout and update the object layout to UP if necessary. | You added a new parameter 'evict_rank' to inform this function to mark the node as DOWN, then the pool_map_node_status_match() could be removed. |
@@ -166,6 +166,16 @@ public class ValidateRecord extends AbstractProcessor {
.required(true)
.build();
+
+ static final PropertyDescriptor ATTRIBUTE_NAME_TO_STORE_FAILURE_DESCRIPTION = new PropertyDescriptor.Builder()
+ .name("emit-failure-description-property")
+ .displayName("Vari... | [ValidateRecord->[getValidationSchema->[getValue,createSchema,ProcessException,retrieveSchema,equals,parse,getSchema,Parser,asControllerService],completeFlowFile->[putAll,getRecordCount,getMimeType,route,putAllAttributes,key,close,getAttributes,finishRecordSet,put,valueOf,transfer],onTrigger->[nextRecord,create,getSche... | This property determines whether or not the Record is valid due to the extra fields. Record writer. | We should use the word 'attribute' here, rather than 'variable', as these have different meanings in the context of NiFi. |
@@ -85,6 +85,7 @@ public class HoodieGlobalBloomIndex<T extends HoodieRecordPayload> extends Hoodi
JavaRDD<Tuple2<String, HoodieKey>> explodeRecordRDDWithFileComparisons(
final Map<String, List<BloomIndexFileInfo>> partitionToFileIndexInfo,
JavaPairRDD<String, String> partitionRecordKeyPairRDD) {
+
... | [HoodieGlobalBloomIndex->[loadInvolvedFiles->[loadInvolvedFiles]]] | Explode partition record RDD with file comparison. | This whole "indexToPartitionMap" can be deleted now right? |
@@ -83,9 +83,12 @@ Report.add_report('post_edits') do |report|
sql += <<~SQL
JOIN topics t
ON t.id = p.topic_id
- WHERE t.category_id = ? OR t.category_id IN (SELECT id FROM categories WHERE categories.parent_category_id = ?)
+ WHERE p.user_id != editor_id AND t.category_id = ? OR t.category_id IN ... | [editor_id,post_raw,modes,edit_reason,add_report,author_id,add_filter,editor_avatar_id,t,avatar_template,post_version,created_at,dig,end_date,data,revision_version,each,post_number,topic_id,query,labels,start_date,author_username,author_avatar_id,editor_username] | This method returns a list of period revisions. | Is it possible to add the `WHERE` clause directly to the `sql` variable instead of having to specify it twice? |
@@ -263,6 +263,18 @@ public class BigQueryUtils {
"SqlTimestampWithLocalTzType", FieldType.STRING, "", FieldType.DATETIME) {});
case "STRUCT":
case "RECORD":
+ // check if record represents a map entry
+ if (nestedFields.size() == 2) {
+ TableFieldSchema key = neste... | [BigQueryUtils->[convertAvroFormat->[toBeamRow,getTruncateTimestamps],toGenericAvroSchema->[toGenericAvroSchema],ToTableRow->[apply->[apply,toTableRow]],toBeamValue->[toBeamRow,apply],toTableFieldSchema->[toTableFieldSchema],fromBeamField->[toTableRow,fromBeamField],toBeamRow->[build],fromTableSchema->[fromTableFieldSc... | Convert BigQuery type to Beam type. | This is something that is going to need more discussion. I have two concerns: 1. The ZetaSQL dialect doesn't support map types, so this will break that use case. 2. The user might have a row matching this struct that isn't suppose to be a map. |
@@ -60,7 +60,7 @@ return [
'redis' => [
'driver' => 'redis',
'connection' => 'default',
- 'queue' => 'default',
+ 'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => 90,
'block_for' => null,
],
| [No CFG could be retrieved] | Configures the behavior of failed queue jobs. | Shouldn't this use for redis connection name, and not queue (tubes)? |
@@ -29,3 +29,7 @@ evoked.plot(exclude=[])
# Show result as a 2D image (x: time, y: channels, color: amplitude)
evoked.plot_image(exclude=[])
+
+###############################################################################
+# Use :func:`mne.Evoked.save` or :func:`mne.write_evokeds` to write the evoked
+# responses... | [plot_image,read_evokeds,plot,print,data_path] | Plot the result as a 2D image. | we should probably advertise `mne.write_evokeds`, too |
@@ -582,7 +582,7 @@ def save(layer, model_path, input_spec=None, configs=None):
Args:
layer (Layer): the Layer to be saved. The Layer should be decorated by `@declarative`.
model_path (str): the directory to save the model.
- input_spec (list[Varibale], optional): Describes the input of th... | [_trace->[create_program_from_desc,extract_vars],_extract_vars->[_extract_vars],extract_vars->[_extract_vars],TracedLayer->[trace->[_trace,TracedLayer],save_inference_model->[save_inference_model,get_feed_fetch],__call__->[_run,_build_feed,_compile]],save->[get_inout_spec,SaveLoadConfig]] | Saves a single object of type n - layer to a model. Plots a network which can be used to train a single node in a network. Checks if a variable in the layer or the list of variables in the layer is missing. | Variable -> Tensor, because Paddle 2.0 will expose `Tensor` |
@@ -122,7 +122,14 @@ def hflip(img: Tensor) -> Tensor:
def crop(img: Tensor, top: int, left: int, height: int, width: int) -> Tensor:
_assert_image_tensor(img)
- return img[..., top:top + height, left:left + width]
+ w, h = _get_image_size(img)
+ right = left + width
+ bottom = top + height
+
+ i... | [_assert_channels->[_get_image_num_channels],autocontrast->[_assert_image_tensor,_assert_channels],_assert_image_tensor->[_is_tensor_a_torch_image],adjust_brightness->[_assert_image_tensor,_assert_channels],_blurred_degenerate_image->[_cast_squeeze_out,_cast_squeeze_in],vflip->[_assert_image_tensor],_equalize_single_im... | Crop an image tensor with a missing top left and height and width. | Is this condition for `bottom` correct? I would have imagined that it should be similar than the one for `right` (which uses a `>` instead of a `<`). |
@@ -296,11 +296,13 @@ def main(argv=None): # pylint: disable=unused-argument
# node in the graph it should be fed to.
feed_dict = {train_data_node: batch_data,
train_labels_node: batch_labels}
- # Run the graph and fetch some of the nodes.
- _, l, lr, predictions = sess.run(... | [main->[eval_in_batches,maybe_download,error_rate,extract_data,model,data_type,fake_data,extract_labels]] | Generate a single . The model structure for the feature map has no weight. Max pooling and full connected layer. A function that can be used to compute the missing - value model for a single node. Run the graph and fetch some of the nodes. | Does omitting the three fetches really make that much of a difference? They should have been computed already so the only overhead should be the transfer from the session to numpy arrays. |
@@ -244,7 +244,7 @@ function writeFiles() {
this.entityAngularName,
this.entityFolderName,
this.entityFileName,
- this.enableTranslation,
+ this.entityUrl,
this.clientFramework,
... | [No CFG could be retrieved] | The writeFiles method of the class which implements the writeFiles method of the class which implements. | Does removing this cause any issues? |
@@ -52,6 +52,11 @@ namespace Microsoft.Xna.Framework.Content
return Normalize(fileName, supportedExtensions);
}
+ bool IsPowerOfTwo(UInt32 x)
+ {
+ return x != 0 && 0 == (x & (x - 1));
+ }
+
protected internal override Texture2D Read(ContentReader reader,... | [Texture2DReader->[Normalize->[Normalize],Texture2D->[Size,Dxt5,SetData,DecompressDxt5,GraphicsDevice,Color,RgbaPvrtc2Bpp,DecompressDxt1,ReadBytes,Dxt1,ToInt32,Dxt3,RgbaPvrtc4Bpp,ToUInt16,DecompressDxt3,NormalizedByte4,Bgra4444,ReadInt32,Bgr565,version,Length]]] | Returns the name of the file with the last extension found. Create a new instance of a texture with the specified dimensions. Create a new image with the specified name. This function converts a level array into a 32 - bit integer. | Can we make that static or move it to a static utility class? |
@@ -76,13 +76,14 @@ import org.slf4j.LoggerFactory;
/**
* Test SCM and DataNode Upgrade sequence.
*/
+@Ignore
public class TestHDDSUpgrade {
/**
- * Set a timeout for each test.
- */
+ * Set a timeout for each test.
+ */
@Rule
- public Timeout timeout = new Timeout(300000);
+ public Timeout ti... | [TestHDDSUpgrade->[shutdown->[shutdown],testFinalizationFromInitialVersionToLatestVersion->[testPreUpgradeConditionsDataNodes,testPostUpgradeConditionsSCM,testPostUpgradeConditionsDataNodes,waitForPipelineCreated,testPreUpgradeConditionsSCM]]] | Package private for unit testing. Initialize the object. | Do we need to Ignore the entire test class? Why not just ignore long running tests? |
@@ -372,6 +372,9 @@ func (a *API) registerQueryAPI(handler http.Handler) {
func (a *API) RegisterQueryFrontend(f *frontend.Frontend) {
frontend.RegisterFrontendServer(a.server.GRPC, f)
a.registerQueryAPI(f.Handler())
+
+ // Readiness
+ a.RegisterRoute("/query-frontend/ready", http.HandlerFunc(f.ReadinessHandler), ... | [RegisterIngester->[RegisterRoute],RegisterServiceMapHandler->[RegisterRoute],RegisterRing->[RegisterRoute],RegisterQuerier->[registerRouteWithRouter,RegisterRoute],RegisterDistributor->[RegisterRoute],registerQueryAPI->[RegisterRoute],RegisterStoreGateway->[RegisterRoute],RegisterCompactor->[RegisterRoute],RegisterAle... | RegisterQueryFrontend registers the frontend for the API. | Should we keep this or remove it? I'm lost now ;) Looks conflicting with the CHANGELOG entry: > The behavior of the `/ready` was changed for the query frontend to indicate when it was ready to accept queries. |
@@ -306,10 +306,10 @@ func (oc *OperatorController) addOperatorLocked(op *operator.Operator) bool {
// If there is an old operator, replace it. The priority should be checked
// already.
if old, ok := oc.operators[regionID]; ok {
+ _ = oc.removeOperatorLocked(old)
log.Info("replace old operator", zap.Uint64("... | [Put->[Put],Get->[Get],addOperatorLocked->[getNextPushOperatorTime],pollNeedDispatchRegion->[getNextPushOperatorTime],getOrCreateStoreLimit->[newStoreLimit],PushOperators->[pollNeedDispatchRegion,Dispatch]] | addOperatorLocked adds an operator to the operator list. It is assumed that the lock is Magic number of operations that can be performed on a managed object. | Maybe we should handle this value? |
@@ -270,7 +270,15 @@ public class GobblinYarnAppLauncher {
YarnHelixUtils.getAppWorkDirPath(this.fs, this.applicationName, this.applicationId.get().toString())));
if (config.getBoolean(ConfigurationKeys.JOB_EXECINFO_SERVER_ENABLED_KEY)) {
LOGGER.info("Starting the job execution info server since it... | [GobblinYarnAppLauncher->[handleApplicationReportArrivalEvent->[stop],stopYarnClient->[stop],handleGetApplicationReportFailureEvent->[stop],getReconnectableApplicationId->[getApplicationId],main->[run->[sendEmailOnShutdown,stop],launch,GobblinYarnAppLauncher],setupAndSubmitApplication->[getApplicationId]]] | Launches the application. Returns a new instance of the class that will be used to create the class. | Can't you use properties from the previous line? |
@@ -85,7 +85,7 @@ type config struct {
JSON *reader.JSONConfig `config:"json"`
// Hidden on purpose, used by the docker prospector:
- DockerJSON bool `config:"docker-json"`
+ DockerJSON string `config:"docker-json"`
}
type LogConfig struct {
| [normalizeGlobPatterns->[Abs,Errorf],Validate->[Errorf,Experimental],resolveRecursiveGlobs->[GlobPatterns,Debug]] | Common configuration for the n - tuple log type. This function returns a map of valid scan order and sort options. | What's the reason for this change? |
@@ -82,6 +82,13 @@ public class HyperUniquesBufferAggregator implements BufferAggregator
throw new UnsupportedOperationException();
}
+
+ @Override
+ public long getLong(ByteBuffer buf, int position)
+ {
+ throw new UnsupportedOperationException("HyperUniquesBufferAggregator does not support getLong()")... | [HyperUniquesBufferAggregator->[init->[position,put,duplicate],getFloat->[UnsupportedOperationException],get->[position,limit,makeCollector,allocate,getLatestNumBytesForDenseStorage,duplicate,rewind,put],aggregate->[fold,get],makeEmptyVersionedByteArray]] | Returns a float value if it is a . | let's add a message to getFloat as well, while we're at it :) |
@@ -50,6 +50,13 @@
*/
#define PERM_READ_CH 'r'
#define PERM_WRITE_CH 'w'
+#define PERM_CREATE_CONT_CH 'c'
+#define PERM_DEL_CONT_CH 'd'
+#define PERM_GET_PROP_CH 't'
+#define PERM_SET_PROP_CH 'T'
+#define PERM_GET_ACL_CH 'a'
+#define PERM_SET_ACL_CH 'A'
+#define PERM_SET_OWNER_CH 'o'
/*
* States used to pa... | [int->[daos_ace_to_str],daos_acl_from_strs->[daos_ace_from_str]] | Creates a list of ACEs that can be interacted with with the Access Control system parse DAOS ACL string into flags. | Assuming these are just github formatting issues |
@@ -36,8 +36,11 @@ const (
// TrafficTargetName is the name of the traffic target SMI object.
TrafficTargetName = "bookbuyer-access-bookstore"
- // MatchName is the name of the match object.
- MatchName = "buy-books"
+ // BuyBooksMatchName is the name of the match object.
+ BuyBooksMatchName = "buy-books"
+
+ // ... | [Sprintf,ParseIP,Name,Port] | Package names of all objects in the service mesh. SelectorKey is a key that is a selector value constant. | We don't need this, can use `contoso.com` above as the HTTP host for testing. |
@@ -638,7 +638,11 @@ func (oc *OperatorController) exceedStoreLimit(ops ...*Operator) bool {
available := oc.storesLimit[storeID].Available()
storeLimit.WithLabelValues(strconv.FormatUint(storeID, 10), "available").Set(float64(available) / float64(RegionInfluence))
if available < stepCost {
- oc.cluster.SetS... | [Put->[Put],exceedStoreLimit->[GetStoreInfluence],Get->[Get],addOperatorLocked->[getNextPushOperatorTime],pollNeedDispatchRegion->[getNextPushOperatorTime],PushOperators->[pollNeedDispatchRegion,Dispatch]] | exceedStoreLimit checks if the given operations exceed the store limit. | seems no need to repeat attach multiple times? |
@@ -11,6 +11,7 @@ class PyPybtexDocutils(PythonPackage):
pypi = "pybtex-docutils/pybtex-docutils-0.2.1.tar.gz"
+ version('1.0.0', sha256='cead6554b4af99c287dd29f38b1fa152c9542f56a51cb6cbc3997c95b2725b2e')
version('0.2.2', sha256='ea90935da188a0f4de2fe6b32930e185c33a0e306154322ccc12e519ebb5fa7d')
v... | [PyPybtexDocutils->[depends_on,version]] | A class that provides a documentation backend for pybtex. | Latest version requires Python 3.6+, and six is no longer required |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.