patch stringlengths 18 160k | callgraph stringlengths 4 179k | summary stringlengths 4 947 | msg stringlengths 6 3.42k |
|---|---|---|---|
@@ -114,7 +114,6 @@ class UnloggerWorker(object):
print("FRAME(%d) LAG -- %.2f ms" % (frame_id, fr_time*1000.0))
if img is not None:
- img = img[:, :, ::-1] # Convert RGB to BGR, which is what the camera outputs
img = img.flatten()
smsg.frame.image = img.tobytes()
| [main->[keyboard_controller_thread,timestamp_to_s,_get_address_mapping,get_arg_parser,UnloggerWorker],unlogger_thread->[_get_address_send_func],keyboard_controller_thread->[absolute_time_str],absolute_time_str->[timestamp_to_s],main] | Send logs to the camera. | Why change this? If I unlog a route using `./unlogger.py "<route name"`, without downloading first the colors are messed up. |
@@ -129,4 +129,11 @@ public abstract class AbstractHashiCorpVaultSensitivePropertyProvider extends Ab
return getProtectionScheme().getIdentifier(path);
}
+ /**
+ * No cleanup necessary
+ */
+ @Override
+ public void cleanUp() {
+ return;
+ }
}
| [AbstractHashiCorpVaultSensitivePropertyProvider->[getVaultCommunicationService->[SensitivePropertyProtectionException,getIdentifierKey],getIdentifierKey->[getIdentifier],getVaultBootstrapProperties->[loadBootstrapProperties,SensitivePropertyProtectionException,get],getVaultPropertySource->[createPropertiesFileSource],... | Returns the identifier key for this path. | This `return` can be removed. |
@@ -103,8 +103,8 @@ export class AmpStoryReactionQuiz extends AmpStoryReaction {
// First child must be heading h1-h3
if (!['h1', 'h2', 'h3'].includes(promptInput.tagName.toLowerCase())) {
- dev().error(
- TAG,
+ devAssert(
+ false,
'The first child must be a heading element... | [No CFG could be retrieved] | Creates a new and adds it to the quiz template. Creates an option container with the given choice content and styling and answer choices. | dev().error() didn't get caught on the tests so the tests weren't working at all, devAssert does throw the error so tests work now. We plan to allow 0 prompts so this specific error will get removed in future PR |
@@ -2225,6 +2225,13 @@ angular.mock.$ComponentControllerProvider = ['$compileProvider', function($compi
}
// get the info of the component
var directiveInfo = candidateDirectives[0];
+ // create a scope if needed
+ if (!locals) {
+ locals = {};
+ }
+ if (!locals.$scope) {... | [No CFG could be retrieved] | Provides a mock of the which is used to simulate certain kinds of tests. The default provider for the mock. | Isn't `locals.$scope ||` redundant here? |
@@ -285,6 +285,12 @@ def lcmv(evoked, forward, noise_cov, data_cov, reg=0.05, label=None,
detected automatically. If int, the rank is specified for the MEG
channels. A dictionary with entries 'eeg' and/or 'meg' can be used
to specify the rank for each modality.
+ whitening: False | True
+ ... | [_lcmv_source_power->[_prepare_beamformer_input,_reg_pinv],lcmv_raw->[_setup_picks,_apply_lcmv],lcmv->[_setup_picks,_apply_lcmv],tf_lcmv->[_setup_picks,_lcmv_source_power],lcmv_epochs->[_setup_picks,_apply_lcmv],_apply_lcmv->[_reg_pinv]] | Linearly Constrained Minimum Variance Iterator over the sequence of minimum - variance objects. | I don't think you need this parameter. Maybe you can do if noise_cov is not None then don't whiten. However I am really skeptical that you can pool grad, mag and even eeg without using a noise covariance. You should test with combined sensors to assess this. |
@@ -794,7 +794,8 @@ namespace ProtoCore.Lang
{
new KeyValuePair<string, ProtoCore.Type>("object", TypeSystem.BuildPrimitiveTypeObject(PrimitiveType.kTypeVar, 0)),
},
- ID = BuiltInMethods.MethodID.kGetType
+ ID = Bu... | [BuiltInMethods->[kNormalizeDepth,kContainsKey,kRangeExpression,kSort,kAverage,kIndexOf,kRemove,kSortPointer,ToList,kRemoveKey,kIntersection,kSleep,kTranspose,kSum,kToStringFromArray,kNormalizeDepthWithRank,kUnion,kDifference,kTypeVoid,kBreak,kCount,kReverse,kIsUniformDepth,kLoadCSVWithMode,kTypeString,kSortIndexByValu... | Parameters = > List<KeyValuePair<string ProtoCore. Type> List<KeyValuePair Get a list of objects of the given type. | Follow the same style everywhere... "gettypes" starts with lower case, whereas "ImportFileByGivenFilePathWithMode" starts with upper case, I'll prefer they start with upper case everywhere. |
@@ -1521,8 +1521,10 @@ class State:
# difference and just assume 'builtins' everywhere,
# which simplifies code.
file_id = '__builtin__'
- path = find_module(file_id, manager.lib_path)
+ path = find_module(file_id, manager.lib_path, manager.option... | [find_modules_recursive->[BuildSource,find_module,find_modules_recursive],verify_module->[is_file],process_graph->[add_stats,trace,log],BuildManager->[all_imported_modules_in_file->[correct_rel_imp,import_priority],get_stat->[maybe_swap_for_shadow_path],report_file->[is_source]],maybe_reuse_in_memory_tree->[add_stats,t... | Initialize a new object with the given parameters. This function is called when a module is missing. This method is called when the object is instantiated from a file. It will parse the file. | Couldn't this break if the package_dirs_cache contains /a/b and the package is in a/bc? |
@@ -10,7 +10,7 @@
*/
-$version = $poll_device['sysDescr'];
+$version = $device['sysDescr'];
$cnpilot_data = snmp_get_multi_oid($device, 'cambiumAPSerialNum.0 cambiumAPHWType.0', '-OUQs', 'CAMBIUM-MIB');
$hardware = $cnpilot_data['cambiumAPHWType.0'];
| [No CFG could be retrieved] | Get the version of the from the source code distribution. | `$poll_device` is set in `core.inc.php` so should be available to all modules - although I can now see it's unset in that file so the fix really should be to remove it from that unset. `$device` here is from the DB (or at least it used to be) so that means this will take 2 polls to get this data |
@@ -643,6 +643,9 @@ def save_inference_model(dirname,
if main_program is None:
main_program = default_main_program()
+ if main_program.is_optimized:
+ raise RuntimeError(
+ "save_inference_model must put before you call memory_optimize.")
# when a pserver and a tr... | [get_parameter_value_by_name->[get_parameter_value],save_persistables->[save_vars],load_vars->[_clone_var_in_block_,load_vars],load_inference_model->[load_persistables],load_persistables->[load_vars],save_vars->[save_vars,_clone_var_in_block_],save_params->[save_vars],save_inference_model->[append_fetch_ops,prepend_fee... | Save the given model of a given to a given directory. This function is called when a model is not loaded. It is called by the infer_ Fetch a from the main program. | Better to add more description for users, such as "save_inference_model must put before you call memory_optimize." "the memory_optimize will modify the original program, and that is not suitable for inference" |
@@ -20,7 +20,9 @@ def test_get_coef():
from sklearn.base import TransformerMixin, BaseEstimator
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
- from sklearn.linear_model import LinearRegression
+ from sklearn.linear_model import Ridge
+
+ lm = Linear... | [test_linearmodel->[fit],test_cross_val_multiscore->[fit],test_get_coef->[fit,Clf,Inv,NoInv]] | Test the retrieval of linear coefficients from simple and pipeline estimators. II. Test get coef for linear model and pipeline. Find missing components in the pipeline. | When using Ridge regression with `alpha=1`, you don't reconstruct the patterns exactly anymore. Why use Ridge instead of OLS regression? |
@@ -1028,7 +1028,7 @@ static GtkTreeModel *_create_filtered_model(GtkTreeModel *model, dt_lib_collect_
// Check if this path also matches a filmroll
gtk_tree_model_get(model, &iter, DT_LIB_COLLECT_COL_PATH, &pth, -1);
DT_DEBUG_SQLITE3_PREPARE_V2(dt_database_get(darktable.db),
- ... | [No CFG could be retrieved] | set properties of the tree model Creates a filter and sets virtual root. | again, won't this break seach using patterns ? |
@@ -48,7 +48,7 @@ function main() {
const buildTargets = determineBuildTargets();
if (!isTravisPullRequestBuild()) {
- timedExecOrDie('gulp dist --fortesting --noextensions');
+ downloadDistOutput();
timedExecOrDie('gulp bundle-size --on_push_build');
runSinglePassTest_();
} else {
| [No CFG could be retrieved] | This script runs the bundle size check and single pass test. Check if the distribution has any missing tests. | Since this is the last thing that's being done here, there's no need to call `gulp clean` at the end of `runSinglePassTest_()`. |
@@ -153,6 +153,7 @@ def main():
num_failures = 0
os.putenv('PYTHONPATH', "{}:{}/lib".format(os.environ['PYTHONPATH'], args.demo_build_dir))
+ os.environ['PYTHONIOENCODING'] = 'utf-8'
for demo in demos_to_test:
print('Testing {}...'.format(demo.full_name))
| [main->[option_to_args->[resolve_arg],collect_result,option_to_args,temp_dir_as_path,prepare_models,parse_args],parse_args->[parse_args],main] | Entry point for the missing - nag - sequence command. Check if a missing key is found in the model_info. Exit if there is no n - ary case in the device. | You should be using `putenv` instead, because this variable should only be set for child processes. The _current_ process should respect the `PYTHONIOENCODING` that it was launched with. |
@@ -9,12 +9,13 @@ class VirtualBuildEnvGenerator(VirtualEnvGenerator):
super(VirtualBuildEnvGenerator, self).__init__(conanfile)
self.venv_name = "conanbuildenv"
compiler = conanfile.settings.get_safe("compiler")
- if compiler != "Visual Studio":
- tools = AutoToolsBuildEnvi... | [VirtualBuildEnvGenerator->[content->[super,items,split],__init__->[AutoToolsBuildEnvironment,get_safe,super,VisualStudioBuildEnvironment]]] | Initialize virtual environment. | I think I understand why filtering the "CONAN" vars but it is a little arbitrary. The `vcvars_dict` is returning ALL the read environment after applying an vcvars command, but here I assume we don't want to dump to the activate script the whole environment. So, probably we should improve the `vcvars_dict` function (pro... |
@@ -112,11 +112,10 @@ class ResNet(nn.Module):
for m in self.modules():
if isinstance(m, nn.Conv2d):
- n = m.kernel_size[0] * m.kernel_size[1] * m.out_channels
- m.weight.data.normal_(0, math.sqrt(2. / n))
+ nn.init.kaiming_normal_(m.weight, mode="fan... | [BasicBlock->[__init__->[conv3x3]],resnet50->[ResNet],resnet152->[ResNet],resnet101->[ResNet],resnet34->[ResNet],resnet18->[ResNet]] | Initialize the ResNet with a block of images. A sequence of blocks with no inplanes. | I still think you need to pass the `nonlinearity='relu'` here, if not we are not computing the same thing |
@@ -19,6 +19,7 @@ from __future__ import division
from __future__ import print_function
import numpy as np
+import sys
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes
| [TensorUtilTest->[testFloatN->[assertAllClose,make_tensor_proto,assertProtoEquals,MakeNdarray,assertEquals,array],testComplex128->[make_tensor_proto,assertAllEqual,assertProtoEquals,MakeNdarray,assertEquals,array],testUnsupportedDTypes->[assertRaises,make_tensor_proto,array],testFloat->[assertAllClose,make_tensor_proto... | Functional tests for tensor_util. missing_tensor_shape - > missing_tensor_shape. | Do you need this? |
@@ -304,6 +304,18 @@ class StreamingCache(CacheManager):
return iter([]), -1
return StreamingCache.Reader([header], [reader]).read(), 1
+ @staticmethod
+ def sentinel_label():
+ """Returns a label that marks an unused PCollection.
+
+ This is used to always use a TestStream with multiple outputs. ... | [StreamingCacheSource->[read->[_wait_until_file_exists,_emit_from_file]],StreamingCacheSink->[expand->[StreamingWriteToText]],StreamingCache->[read->[exists,StreamingCacheSource],write->[exists,write],cleanup->[exists],exists->[exists],read_multiple->[StreamingCacheSource],Reader->[_event_stream_caught_up_to_target->[_... | Reads records from the cache and returns a generator to read records from the cache. | Rather than introduce a sentinel label, how about returning a dict from expand iff output_tags was manually specified (or, alternatively, something other than `{None}`)? |
@@ -1,10 +1,14 @@
import KeyboardShortcuts from "discourse/lib/keyboard-shortcuts";
import Mousetrap from "mousetrap";
+import bindGlobal from "mousetrap-global-bind";
export default {
name: "keyboard-shortcuts",
initialize(container) {
+ // Ensure mousetrap-global-bind is executed
+ void bindGlobal;... | [No CFG could be retrieved] | export a default keyboard shortcuts module. | Do we care about lgtm-com bot warning on this line? |
@@ -0,0 +1,17 @@
+#include QMK_KEYBOARD_H
+
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT( /* Base */
+ BL_STEP, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,KC_DEL, KC_HOME,
+ KC_TAB, KC_Q, ... | [No CFG could be retrieved] | No Summary Found. | All 4 layers need to be populated for the via keymap, unless the number of layers has been decreased. |
@@ -80,6 +80,8 @@ var config = { // eslint-disable-line no-unused-vars
startScreenSharing: false, // Will try to start with screensharing instead of camera
// startAudioMuted: 10, // every participant after the Nth will start audio muted
// startVideoMuted: 10, // every participant after the Nth will start... | [No CFG could be retrieved] | Config for a specific user - defined object. Disabling until these are fixed. | Maybe not for this PR, but we should probably deprecate the startAudioMuted and startVideoMuted above and rename them to allStartAudioMuted and allStartVideoMuted, because it's confusing right now. |
@@ -1046,7 +1046,8 @@ def messages(prefix):
path = join(prefix, '.messages.txt')
try:
with open(path) as fi:
- sys.stdout.write(fi.read())
+ fh = sys.stderr if context.json else sys.stdout
+ fh.write(fi.read())
except IOError:
pass
finally:
| [load_linked_data->[dist2pair],link->[read_url,is_extracted,create_meta,yield_lines,read_no_link,_link,run_script,read_has_prefix,dist2filename,update_prefix,read_icondata,mk_menus],replace_long_shebang->[replace],rm_extracted->[package_cache],replace_prefix->[binary_replace,replace],delete_linked_data_any->[delete_lin... | Reads messages from a file named by prefix. | If this weren't needed as a quick patch, I'd actually transition it to using loggers properly. `TODO` though. |
@@ -1472,7 +1472,8 @@ describes.realWin('amp-analytics', {
config.triggers.conditional.enabled = '${queryParam(undefinedParam)}';
const analytics = getAnalyticsTag(config);
- const urlReplacements = Services.urlReplacementsForDoc(analytics.element);
+ const urlReplacements =
+ Service... | [No CFG could be retrieved] | This function checks if the request is allowed through the tag and then sends it through the browser adds a warning to the page if the request param is falsey. | pls revert the line break. also the ones below. |
@@ -154,13 +154,10 @@ public class CliPeon implements Runnable
public void run()
{
try {
- LogLevelAdjuster.register();
-
- final Injector injector = getInjector();
- final Lifecycle lifecycle = injector.getInstance(Lifecycle.class);
+ Injector injector = makeInjector();
+ Lifecycle ... | [CliPeon->[getInjector->[configure->[addResource,createChoice,NodeTypeConfig,optionBinder,to,asList,get,bind,withLocations,toInstance,in,File,setStatusFile],Module,makeInjectorWithModules,of],run->[getInjector,propagate,error,start,stop,register,getInstance,join,exit],Logger]] | Runs the system if it is not already running. | We are moving the exception catching out of the try{} down there and into this area. Is that intentional? |
@@ -0,0 +1,18 @@
+import { Component } from 'react';
+
+/**
+ * Implements a React Component which prompts the user for a password to lock a
+ * conference/room.
+ */
+export default class RoomLockPrompt extends Component {
+
+ /**
+ * Implements React's {@link Component#render()}.
+ *
+ * @inheritdoc
+... | [No CFG could be retrieved] | No Summary Found. | Please drop this since @damencho is working on dialogs on React. Also, why is this needed for toolbars? |
@@ -171,6 +171,7 @@ class Gloo(object):
def _init_http(self, ip, port, prefix, start_http_server, http_server_d):
def __start_kv_server(http_server_d, size_d):
+ print("start http_server: {}, {}".format(port, size_d))
from paddle.distributed.fleet.utils.http_server import KVServe... | [PaddleCloudRoleMaker->[_server_num->[_get_pserver_endpoints],_all_reduce->[all_reduce],_barrier->[barrier],__init__->[Gloo],_all_gather->[all_gather],_generate_role->[_ps_env,_collective_env,_gloo_init],_gloo_init->[_server_num,init,_server_index,_is_server,_worker_num,_is_first_worker,_role_id]],UserDefinedRoleMaker-... | Initialize HTTP. Get the last node in the cluster. | need clean this in another PR. |
@@ -60,6 +60,7 @@ while (isset($gpuArray[$int])) {
$tags = array('name' => $name, 'app_id' => $app_id, 'rrd_def' => $rrd_def, 'rrd_name' => $rrd_name);
data_update($device, 'app', $tags, $fields);
-
- $int++;
}
+$sm_average = ($sm_total ? 0 : ($sm_total / count($gpuArray)));
+
+update_applicatio... | [addDataset] | Update the tags of the app. | This should probably be the other way around, if `$sm_total` evaluates to true, it should calculate the average. |
@@ -776,7 +776,9 @@ public class HoodieWriteConfig extends DefaultHoodieConfig {
}
public Builder withSchema(String schemaStr) {
- props.setProperty(AVRO_SCHEMA, schemaStr);
+ if (null != schemaStr) {
+ props.setProperty(AVRO_SCHEMA, schemaStr);
+ }
return this;
}
| [HoodieWriteConfig->[resetViewStorageConfig->[setViewStorageConfig],Builder->[build->[HoodieWriteConfig,validate,setDefaults]]]] | Sets the schema to use for the Avro schema validation. | we should probably assert that this is not null? |
@@ -16,6 +16,7 @@
*/
package org.apache.activemq.artemis.core.protocol.stomp.v11;
+import javax.security.cert.X509Certificate;
import java.util.Map;
import java.util.concurrent.atomic.AtomicLong;
| [StompFrameHandlerV11->[requestAccepted->[pingAccepted],onNack->[onAck],HeartBeater->[run->[createPingFrame]],onStomp->[onConnect],StompDecoderV11->[parseCommand->[pingAccepted],init->[init],parseBody->[init]]]] | Imports a single object. Very basic frame handler. | this will only work on Stomp? what about other protocols? |
@@ -598,16 +598,14 @@ public class IndexTask extends AbstractBatchIndexTask implements ChatHandler
*
* @return a map indicating how many shardSpecs need to be created per interval.
*/
- private Map<Interval, Pair<ShardSpecFactory, Integer>> determineShardSpecs(
+ private PartitionAnalysis determineShardSp... | [IndexTask->[makeGroupId->[makeGroupId],getSegmentGranularity->[getSegmentGranularity],IndexIngestionSpec->[getInputFormat],generateAndPublishSegments->[getTaskCompletionReports,createSegmentAllocator],getLiveReports->[doGetRowStats],ShardSpecs->[getShardSpec->[getShardSpec]],IndexTuningConfig->[createDefault->[IndexTu... | Determines shard specs for the given sequence number. | What do you think about adding a method to the partition spec interface so that future addition of partition specs do not potentially require modification to this code? |
@@ -79,6 +79,12 @@ def test_nirx_15_2_short():
# Test data import
assert raw._data.shape == (26, 145)
assert raw.info['sfreq'] == 12.5
+ assert raw.info['meas_date'].month == 8
+ assert raw.info['meas_date'].day == 23
+ assert raw.info['meas_date'].year == 2019
+ assert raw.info['meas_date'].... | [test_nirx_hdr_load->[read_raw_nirx],test_nirx_missing_warn->[raises,read_raw_nirx],test_nirx_dat_warn->[copytree,read_raw_nirx,str,rename,raises],test_encoding->[list,copytree,write,read_raw_nirx,extend,str,join,open],test_nirx_15_3_short->[assert_array_equal,dict,read_raw_nirx,short_channels,apply_trans,_get_trans,so... | Test reading NIRX files for the MNE version 15. 2. Short. Tests if a channel is missing a missing channel or channel is missing channel. Check that the mnis of a residue are in the range [ - 12 - 12 ). | I would do it with == after creating a datetime instance with proper timezone. It's less much lines. |
@@ -204,7 +204,7 @@ WORKDIR /test
result := podmanTest.Podman([]string{"image", "list", "-q", "-f", "after=quay.io/libpod/alpine:latest"})
result.WaitWithDefaultTimeout()
Expect(result).Should(Exit(0))
- Expect(result.OutputToStringArray()).Should(HaveLen(7), "list filter output: %q", result.OutputToString())... | [SliceIsSorted,AddImageToRWStore,InspectImageJSON,Podman,Exit,WaitWithDefaultTimeout,Should,To,SeedImages,OutputToStringArray,Join,Cleanup,LineInOutputStartsWith,GrepString,Sprintf,LineInOutputContainsTag,OutputToString,IsJSONOutputValid,LineInOutputContains,BuildImage,FromHumanSize,Setup] | Check if all the podman images have been filtered out It checks if the image digest is present in the image list. | I am always leery about bumping expected results for a test that used to work. Are we sure that there's not a problem elsewhere? |
@@ -202,6 +202,18 @@ func (d deleteOptionsV1) Check() error {
return nil
}
+type attachOptionsV1 struct {
+ Channel ChatChannel
+ ConversationID chat1.ConversationID `json:"conversation_id"`
+}
+
+func (a attachOptionsV1) Check() error {
+ if err := checkChannelConv(methodDelete, a.Channel, a.ConversationID... | [Check->[Valid],ListV1->[ListV1],DeleteV1->[Check,DeleteV1],SendV1->[Check,SendV1],EditV1->[Check,EditV1],ReadV1->[Check,ReadV1],Valid] | Check checks that the deleteOptionsV1 is valid. | WIP: This will get more fields very soon... |
@@ -149,8 +149,14 @@ public class KeyUtil {
throw new IllegalArgumentException("Unsupported key type");
}
- final KeyFactory kf = KeyFactory.getInstance("RSA");
- return kf.generatePrivate(keySpec);
+ try {
+ final KeyFactory RSAkf = KeyFac... | [KeyUtil->[join->[join],loadCertificates->[loadCertificates]]] | Load private key from a file. | IMO this should say that we are trying to generate a DSA key instead and not all hope is lost yet. |
@@ -114,7 +114,7 @@ export function identity({ id, ipfsHash }) {
'avatarUrl',
'description'
]),
- ...getAttestations(id, data.attestations || []),
+ ...getAttestations(accounts, data.attestations || []),
strength: 0,
ipfsHash,
owner: {
| [No CFG could be retrieved] | Get the identity object from the IPFS. missing the ipfs:// protocol. | Does getAttestation need to be updated to de-dupe attestations that are identical between proxy and owner ? |
@@ -28,11 +28,11 @@ class Inception3Weights(Weights):
)
-def inception_v3(weights: Optional[Inception3Weights] = None, progress: bool = True, **kwargs: Any) -> Inception3:
+def inception_v3(weights: Optional[InceptionV3Weights] = None, progress: bool = True, **kwargs: Any) -> Inception3:
if "pretrained" i... | [Inception3Weights->[partial,WeightEntry],inception_v3->[verify,get,pop,len,load_state_dict,warn,Inception3,state_dict]] | A version of the inception model with 3 parameters. | The naming is inconsistent. The model class is called `Inception3`, while the mode builder inception_**v**3. It's unclear how we should name the weights. Following the convention from ResNets this should have been `Inception_V3` which is ugly. I propose not to spend more time on this now and tackle it at #4652. I've al... |
@@ -1020,6 +1020,14 @@ func TestProvenance(t *testing.T) {
commitInfos, err = c.ListCommit(cPipeline, "master", "", 0)
require.NoError(t, err)
require.Equal(t, 2, len(commitInfos))
+
+ // Stop bPipeline, confirm no new commits on cPipeline.
+ t.Run("NoCommitOnStopPipeline", func(t *testing.T) {
+ require.NoError... | [DurationProto,DefaultDialOptions,PrintDetailedCommitInfo,Message,JoinHostPort,SubscribeCommit,RandString,CreateRepo,DeleteCommit,ListDatum,Stop,SetBranch,ReadFile,New,NewPipeline,VisitInput,NotNil,Watch,StartCommit,FormatLabelSelector,Apps,GetFile,DeletePipeline,PrintDetailedJobInfo,ResultChan,EqualOneOf,NoError,Fatal... | TestProvenance2 tests the DAG of a commit. TestProvenance2 tests integration tests for 2. 0. | Would it be possible to move this into its own test? I know TestProvenance is already pretty far gone, but in the past I've had bad experiences where we need to fix or remove complicated tests because we've changed our semantics, and we end up removing a bunch of auxiliary tests (like this one) that should still apply.... |
@@ -64,7 +64,7 @@ public class TestAnyToPDFConverters extends BaseConverterTest {
Map<String, Serializable> parameters = new HashMap<>();
if (pdfa) {
- parameters.put(JODBasedConverter.PDFA1_PARAM, Boolean.TRUE);
+ parameters.put(JODBasedConverter.PDFA1_PARAM, pdfaValue);
... | [TestAnyToPDFConverters->[testAnyToPDFConverterWithToc->[doTestPDFConverter],doTestPDFConverter->[doTestPDFConverter],testAnyToPDFConverter->[doTestPDFConverter],ConversionThread->[run->[testAnyToPDFConverter]],testMultiThreadsConverter->[ConversionThread]]] | This method tests if a PDF file is in the test - docs folder and if it is. | I don't like that there are now two pdfa-based arguments in the method, it's incoherent. Just change the existing `pdfa` parameter to your `Serializable` and change this test to `if (pdfa != null)`. |
@@ -94,9 +94,14 @@ namespace System.Text.Json
[DoesNotReturn]
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void ThrowInvalidOperationException_CannotSerializeOpenGeneric(Type type)
+ public static void ThrowInvalidOperationException_CannotSerializeInvalidType(Type type, T... | [ThrowHelper->[ThrowJsonException_MetadataDuplicateIdFound->[ThrowJsonException],ThrowJsonException_MetadataReferenceNotFound->[ThrowJsonException],ThrowJsonException_MetadataReferenceObjectCannotContainOtherProperties->[ThrowJsonException],ThrowJsonException_MetadataIdIsNotFirstProperty->[ThrowJsonException],ThrowUnex... | Throw InvalidOperationException if the given type is not serializable. | Why is `PropertyInfo` nullable here? Maybe add a `Debug.Assert` before the last throw statement if we know for sure that if `parentClassType` is not null, then` propertyInfo` is not null. I want to make sure we don't have accidental null ref here. |
@@ -2327,9 +2327,12 @@ out_replicas:
out_map_version:
if (pto_op != NULL)
pto_op->po_map_version =
- pool_map_get_version(svc->ps_pool->sp_map);
+ pool_map_get_version((map == NULL || rc != 0) ?
+ svc->ps_pool->sp_map : map);
ABT_rwlock_unlock(svc->ps_lock);
rdb_tx_end(&tx);
+ if (map)
+ pool_ma... | [No CFG could be retrieved] | finds the n - ary entry in the system and stores it in the cache. This function is called to find all the target IDs in the system. | (style) spaces required around that '?' (ctx:VxE) |
@@ -54,6 +54,8 @@ class WikiTablesSemanticParser(Model):
but they are structured the same way.
encoder : ``Seq2SeqEncoder``
The encoder to use for the input question.
+ entity_encoder : ``BagOfEmbeddingsEncoder``
+ The encoder to used for combining the words of an entity.
decoder_t... | [WikiTablesDecoderState->[get_valid_actions->[get_valid_actions],combine_states->[WikiTablesDecoderState],_make_new_state_with_group_indices->[WikiTablesDecoderState],split_finished->[is_finished]],WikiTablesDecoderStep->[_get_actions_to_consider->[get_valid_actions],_compute_new_states->[WikiTablesDecoderState]],WikiT... | Parameters for the decoder decoder and decoder are the same. This method is called by the linking code to compute the scores for all actions. | The type here should be `Seq2VecEncoder`. |
@@ -105,7 +105,7 @@ MiddlewareRegistry.register(store => next => action => {
conference,
id,
local: isLocal,
- raisedHand: false
+ raisedHand: 0
}));
}
| [No CFG could be retrieved] | Register a middleware that will handle the action of the Middleware. Updates the local and remote participant with the raisedHand flag. | Wasn't this the thing you were going to remove? |
@@ -276,6 +276,10 @@ func ReuseSlice(ts []PreallocTimeseries) {
// ReuseTimeseries puts the timeseries back into a sync.Pool for reuse.
func ReuseTimeseries(ts *TimeSeries) {
+ for i := 0; i < len(ts.Labels); i++ {
+ ts.Labels[i].Name = ""
+ ts.Labels[i].Value = ""
+ }
ts.Labels = ts.Labels[:0]
ts.Samples = t... | [MarshalTo->[Size,MarshalToSizedBuffer],Marshal->[Size,MarshalToSizedBuffer],Compare->[Compare],Unmarshal->[Get,Errorf,Unmarshal],RegisterFlags->[IntVar],Pointer,Put] | ReuseTimeseries puts the given timeseries back into a sync. Pool for reuse. | Suggest `// Name and Value may point into a large gRPC buffer, so clear the reference to allow GC` |
@@ -1154,14 +1154,11 @@ public class KafkaIO {
continue;
}
- // sanity check
- if (offset != expected) {
- LOG.warn("{}: gap in offsets for {} at {}. {} records missing.",
- this, pState.topicPartition, expected, offset - expected);
- }
+ ... | [KafkaIO->[TypedWithoutMetadata->[populateDisplayData->[populateDisplayData],expand->[apply]],KafkaWriter->[setup->[getProducerFactoryFn,apply],teardown->[close],processElement->[getTopic],getValueSerializer,getProducerConfig,getKeySerializer],UnboundedKafkaSource->[validate->[validate],getDefaultOutputCoder->[getKeyCo... | Reads next record in the current batch. if b = true then we can find the next record in the batch. | Why ignore first record? |
@@ -264,7 +264,8 @@ class NormalInitializer(Initializer):
"dtype": int(var.dtype),
"mean": self._mean,
"std": self._std_dev,
- "seed": self._seed
+ "seed": self._seed,
+ "use_mkldnn": False
})
var.op = ... | [init_on_cpu->[force_init_on_cpu],MSRAInitializer->[__call__->[_compute_fans]],ConstantInitializer->[__call__->[force_init_on_cpu]],XavierInitializer->[__call__->[_compute_fans]]] | Add normal distribution initialization ops for a variable that needs to be initialized . | This line is intended for some other fixes? |
@@ -12,7 +12,7 @@ class Slepc(Package):
"""Scalable Library for Eigenvalue Problem Computations."""
homepage = "http://slepc.upv.es"
- url = "http://slepc.upv.es/download/distrib/slepc-3.6.2.tar.gz"
+ url = "https://slepc.upv.es/download/distrib/slepc-3.6.2.tar.gz"
git = "https://g... | [Slepc->[install->[append,extend,python,make,getcwd],setup_dependent_build_environment->[set],join_path,depends_on,conflicts,resource,version,patch,variant]] | Creates an instance of a specific type of sequence number. Return a list of version numbers for all known MAC addresses. Version 3. 6. 3. | Can you update the homepage to https while you're at it? |
@@ -60,8 +60,7 @@ class ExternalFeedBlockPlugin extends BlockPlugin {
* @return object
*/
function &getExternalFeedPlugin() {
- $plugin =& PluginRegistry::getPlugin('generic', $this->parentPluginName);
- return $plugin;
+ return $this->parentPlugin;
}
/**
| [ExternalFeedBlockPlugin->[getPluginPath->[getExternalFeedPlugin,getPluginPath],getContents->[getExternalFeedPlugin]]] | Get the external feed plugin. | No need for this reference. |
@@ -240,6 +240,7 @@ class RunConfig(ClusterConfig, core_run_config.RunConfig):
keep_checkpoint_max=5,
keep_checkpoint_every_n_hours=10000,
log_step_count_steps=100,
+ protocol=None,
evaluation_master='',
model_dir=None,
... | [_get_master->[job_tasks,ValueError,len],_count_worker->[as_dict,len],RunConfig->[uid->[pop,sorted,startswith,iteritems,items,join,ordered_state,OrderedDict],__init__->[ConfigProto,GPUOptions,__init__,_get_model_dir],deprecated],_get_model_dir->[info,loads,ValueError,format],_count_ps->[as_dict,len],ClusterConfig->[__i... | A base class method for creating a ClusterConfig object. The base class for the If class. Sets the _save_checkpoints_secs and _log_step_count_steps. | Update the docstring too? |
@@ -44,6 +44,13 @@ describes.realWin('EntitlementClass', {}, () => {
});
});
+ it('should not return the decrypted key in the json', () => {
+ const raw = 'raw';
+ const entitlement = new Entitlement({source, raw, service, granted,
+ grantReason, dataObject, 'decryptedDocumentKey'});
+ expect(e... | [No CFG could be retrieved] | Private API - Checks that a specific is available on the server. This function is used to test if the entitlement is valid. | This looks like an invalid map declaration. |
@@ -11,6 +11,13 @@
*
* See {@link ngTouch.$swipe `$swipe`} for usage.
*
+ * @deprecated
+ * sinceVersion="1.7.0"
+ * The ngTouch module with the {@link ngTouch.$swipe `$swipe`} service and
+ * the {@link ngTouch.ngSwipeLeft} and {@link ngTouch.ngSwipeRight} directives are
+ * deprecated. Instead, stand-alone libr... | [No CFG could be retrieved] | Provides helper for node name of element. | This might be confusing to people not aware of the AngularJS-vs-Angular distinction. Maybe add a link to Angular or make it more explicit that you refer to the newer version (or both :grin:). |
@@ -718,6 +718,10 @@ class EntityGenerator extends BaseBlueprintGenerator {
return this._preparingRelationships();
}
+ _derivedCompositePrimaryKeyProperties(types) {
+ this.context.otherEntityPrimaryKeyTypesIncludesUUID = types.includes(UUID);
+ }
+
// Public API method used by the getter and also by ... | [No CFG could be retrieved] | Public API method used by the getter and by the blueprints. relationship. entityContainsCollearle = true ;. | Move to end of the generator, we should not mix priorities with api methods. |
@@ -56,9 +56,11 @@ exports.extension = function (
}
priority = 'p:"high",';
}
+ // Use a numeric value instead of boolean.
+ isModule = isModule ? 1 : 0;
return (
`(self.AMP=self.AMP||[]).push({n:"${name}",${priority}${deps}` +
- `v:"${VERSION}",f:(function(AMP,_){${opt_splitMarker}\n` +
+ ... | [No CFG could be retrieved] | Generate a new object. | Is there a reason to overwrite the previous value versus making a new variable based on the boolean condition? |
@@ -868,10 +868,15 @@ static void CastCopy(const SrcChar* src, DstChar* dst, size_t count)
}
CHAKRA_API JsCreateString(
- _In_ const char *content,
+ _In_opt_ const char *content,
_In_ size_t length,
_Out_ JsValueRef *value)
{
+ if (length == 0)
+ {
+ content = "";
+ }
+
PARAM_NOT_NULL(conten... | [No CFG could be retrieved] | Clones an object of type jsObjectWithLengthLength from source into a new object of Creates a string from a C string. | Please could you bring this in line with the way you've done JsPointerToString below? If length = 0, skip the `PARAM_NOT_NULL(content);` and then use `scriptContext->GetLibrary()->GetEmptyString();` instead of the logic on lines 896 and 898 below. |
@@ -409,6 +409,10 @@ class BuildSystemGuesser:
"""Try to guess the type of build system used by a project based on
the contents of its archive or the URL it was downloaded from."""
+ if url is None:
+ self.build_system = 'bundle'
+ return
+
# Most octave extensi... | [get_versions->[BuildSystemGuesser],PackageTemplate->[write->[write]],create->[get_repository,write,get_versions,get_url,get_name,get_build_system]] | Try to guess the type of build system used by a project based on the contents of its This method is called when the process exits and the output of the n - ary command is. | I'm not positive that this is the best heuristic -- I suspect that we just want to let people specify `bundle` explicitly. I could see someone doing `spack create --name Foo` with no URL and just expecting a `Package`. I think giving them a bundle package by default might confuse things. @adamjstewart: what do you thin... |
@@ -0,0 +1,12 @@
+module PodcastEpisodes
+ class UpdateMediaUrlJob < ApplicationJob
+ queue_as :podcast_episode_update
+
+ # @param episode_id [Integer] - episode id
+ # @param enclosure_url [String] enclosure url from podcast RSS
+ def perform(episode_id, enclosure_url, update = Podcasts::UpdateEpisodeMed... | [No CFG could be retrieved] | No Summary Found. | I'd call the last parameter `servuce` just because all other jobs have that name |
@@ -108,7 +108,7 @@ def get_distributed_datasets_from_function(dataset_fn,
input_workers,
input_contexts,
strategy,
- replication_mode=InputReplic... | [DistributedDatasetsFromFunctionV1->[__iter__->[_get_iterator],_get_iterator->[DistributedIteratorV1],_make_one_shot_iterator->[_get_iterator],_make_initializable_iterator->[_get_iterator]],_SingleWorkerOwnedDatasetIterator->[_type_spec->[_SingleWorkerDatasetIteratorSpec]],DatasetIterator->[__init__->[DistributedDatase... | Returns a distributed dataset from the given function. | we should throw error if replication_mode != PER_REPLICA and `experimental_copy_dataset_on_device=True` ? (Also mention this in the docstring) |
@@ -340,7 +340,7 @@ frappe.views.QueryReport = Class.extend({
df.options = tmp[1];
}
df.width = cint(df.width);
- } else {
+ } else {e
var df = {
label: c,
fieldtype: "Data"
| [No CFG could be retrieved] | This function is called when the user selects a record in the grid. XML - Report. | The `e` shouldn't be here :) |
@@ -52,13 +52,10 @@ class OptionsFingerprinter(object):
hasher = sha1()
pairs = options.get_fingerprintable_for_scope(scope, **kwargs)
for (option_type, option_value) in pairs:
- hasher.update(
- # N.B. `OptionsFingerprinter.fingerprint()` can return `None`,
- # so we always cast to by... | [OptionsFingerprinter->[_fingerprint_files->[_assert_in_buildroot]]] | Given a scope options and a scope compute a combined fingerprint for the given options and a scope. | I realise this is strange, but `six.binary_type(None) == 'None'` so this is behaviour preserving. Maybe not correct, but behaviour preserving :) |
@@ -206,8 +206,8 @@ module GobiertoBudgets
end
def main_budget_lines_summary
- main_budget_lines_forecast = BudgetLine.all(where: { kind: BudgetLine::EXPENSE, level: 1, site: @site, year: @year, area_name: EconomicArea.area_name })
- main_budget_lines_execution = BudgetLine.all(where: { kind: Budg... | [SiteStats->[total_budget_executed_percentage->[total_budget_executed,total_budget],debt_level->[debt],latest_available->[has_data?],has_available?->[has_data?]]] | This method returns a Hash of all main budget lines summary with key value pairs for all main. | Line is too long. [219/180] |
@@ -523,11 +523,6 @@ public class HoodieCompactionConfig extends HoodieConfig {
return this;
}
- public Builder compactionRecordSizeEstimateThreshold(double threshold) {
- compactionConfig.setValue(RECORD_SIZE_ESTIMATION_THRESHOLD, String.valueOf(threshold));
- return this;
- }
-
publ... | [HoodieCompactionConfig->[Builder->[HoodieCompactionConfig]]] | Builder method to set compaction small file size limit. | trying to understand why these are removed. There may be clients using this outside this repo |
@@ -106,7 +106,8 @@ public class SpringRegistryLifecycleManager extends RegistryLifecycleManager
AbstractAsyncRequestReplyRequester.class,
OutboundRouter.class,
MessageProcessorChain.class,
- MuleContext.class
+ MuleCon... | [SpringRegistryLifecycleManager->[SpringContextDisposePhase->[applyLifecycle->[applyLifecycle]]]] | This method is used to register application context lifecycle methods. This method is called by the NotificationManager to notify the user of a notification that a user. | May be possible to remove when changing the approach to provide the Service to the MuleContext |
@@ -343,6 +343,9 @@ function setMobileBridge() {
const mobileBridgeProvider = context.mobileBridge.getProvider()
context.web3Exec = applyWeb3Hack(new Web3(mobileBridgeProvider))
+ // Force enable proxy accounts
+ context.config.proxyAccountsEnabled = true
+
// Replace all the contracts with versions that u... | [No CFG could be retrieved] | Initialize the meta - mask and the mobile bridge Create a new contract for the given ethernet token. | if we take this bit out the rest looks good |
@@ -471,7 +471,8 @@ class DataflowRunner(PipelineRunner):
use_fnapi = apiclient._use_fnapi(options)
from apache_beam.transforms import environments
default_environment = environments.DockerEnvironment.from_container_image(
- apiclient.get_container_image_from_options(options))
+ apiclient.g... | [_DataflowIterableAsMultimapSideInput->[__init__->[_side_input_data]],_DataflowIterableSideInput->[__init__->[_side_input_data]],DataflowRunner->[_get_encoded_output_coder->[_only_element,_get_typehint_based_encoding],flatten_input_visitor->[FlattenInputVisitor->[visit_transform->[_only_element]],FlattenInputVisitor],_... | Remotely executes entire pipeline or parts reachable from node. Creates a new node in the pipeline. Get a object from the pipeline. Get a object from the pipeline and set its options. | Should we push populating artifacts into from_container_image? |
@@ -19,6 +19,7 @@ func StableSystemEventInvariants(events monitorapi.Intervals, duration time.Dura
tests = SystemEventInvariants(events, duration, kubeClientConfig)
tests = append(tests, testContainerFailures(events)...)
tests = append(tests, testDeleteGracePeriodZero(events)...)
+ tests = append(tests, testKubeA... | [No CFG could be retrieved] | StableSystemEventInvariants tests for a given set of events. Upgrade event invariants. | this looks like a systemeventinvariant to me. no matter what, we shouldn't have two processes running. |
@@ -76,7 +76,7 @@ type Workspace interface {
// This customizes the location of $PULUMI_HOME where metadata is stored and plugins are installed.
PulumiHome() string
// PulumiVersion returns the version of the underlying Pulumi CLI/Engine.
- PulumiVersion() semver.Version
+ PulumiVersion() string
// WhoAmI retur... | [No CFG could be retrieved] | GetEnvVars - Get all environment variables scoped to the current workspace and all stacks - Get. | Can the import at to the top of the file be removed? |
@@ -156,6 +156,8 @@ uint32_t zfs_vdev_removal_min_active = 1;
uint32_t zfs_vdev_removal_max_active = 2;
uint32_t zfs_vdev_initializing_min_active = 1;
uint32_t zfs_vdev_initializing_max_active = 1;
+uint32_t zfs_vdev_trim_min_active = 1;
+uint32_t zfs_vdev_trim_max_active = 2;
/*
* When the pool has less than z... | [No CFG could be retrieved] | zfs_vdev_sync_read_max_active is the minimum number of ZFS VDEV functions. | This needs to be added as a module parameter. |
@@ -73,6 +73,14 @@ public class HoodieParquetInputFormat extends MapredParquetInputFormat implement
return HoodieInputFormatUtils.filterInstantsTimeline(timeline);
}
+ protected FileStatus[] getStatus(JobConf job) throws IOException {
+ return super.listStatus(job);
+ }
+
+ protected boolean includeLogF... | [HoodieParquetInputFormat->[makeExternalFileSplit->[makeSplit],getRecordReader->[getRecordReader],filterInstantsTimeline->[filterInstantsTimeline],listStatus->[listStatus],listStatusForIncrementalMode->[listStatus]]] | This method is overridden to filter out instants from the timeline. | would we remove the method and call `listStatus` directly? |
@@ -626,12 +626,7 @@ func displayEvents(events <-chan displayEvent, done chan<- bool) {
// Pluck out the string.
if raw, ok := payload.Fields["text"]; ok && raw != nil {
if text, ok := raw.(string); ok {
- // Colorize by default, but honor the engine's settings, if any.
- if colorize, ok := payload... | [ListStacks->[listCloudStacks],ExportDeployment->[Sprintf],EncryptValue->[Sprintf,EncodeToString],listCloudStacks->[Sprintf],waitForUpdate->[Sprintf,Until,Background,tryNextUpdate],updateStack->[Printf,Wrapf,ColorizeText,Infof,Failf,Sprintf,waitForUpdate,makeProgramUpdateRequest,V,Errorf],makeProgramUpdateRequest->[Ass... | tryNextUpdate tries to get the next update for a Pulumi program. If the pulumiRESTCall - Call the Pulumi REST API and return the result. | I think this is what we want to do here, @pgavlin, since the PPC should always be emitting "raw" colorized text. |
@@ -14,6 +14,10 @@ func resourceAwsAthenaNamedQuery() *schema.Resource {
Read: resourceAwsAthenaNamedQueryRead,
Delete: resourceAwsAthenaNamedQueryDelete,
+ Importer: &schema.ResourceImporter{
+ State: schema.ImportStatePassthrough,
+ },
+
Schema: map[string]*schema.Schema{
"name": &schema.Schema{
... | [Printf,DeleteNamedQuery,CreateNamedQuery,GetOk,Id,String,GetNamedQuery,SetId,Get] | This function imports a resource by using the resource name and query parameters. resourceAwsAthenaNamedQueryDelete retrieves a named query from the Athena database. | Can we also remove these `&schema.Schema` in this work? Those are not needed since Go 1.7! |
@@ -120,7 +120,7 @@ func Package() {
devtools.UseElasticBeatPackaging()
devtools.PackageKibanaDashboardsFromBuildDir()
- customizePackaging()
+ packetbeat.CustomizePackaging()
mg.Deps(Update)
mg.Deps(CrossBuild, CrossBuildXPack, CrossBuildGoDaemon)
| [GenerateFieldsYAML,FieldDocs,Now,GenerateIncludeListGo,RunCmds,BuildGoDaemon,CrossBuildXPack,ExtraVar,Wrap,PackageKibanaDashboardsFromBuildDir,HasPrefix,TestPackages,RunWith,DefaultGolangCrossBuildArgs,MustExpand,DefaultBuildArgs,RegisterPythonTestDeps,CrossBuild,DefaultIncludeListOptions,Serially,UseElasticBeatPackag... | Package cross - builds the beat with XPack for all target platforms. DefaultIncludeListOptions generates the list of include directories for the Beat. | This one no longer needs to build any x-pack artifacts. And the `CrossBuildXPack` target can be removed. |
@@ -1102,8 +1102,9 @@ class CheckoutComplete(BaseMutation):
tracking_code = analytics.get_client_id(info.context)
with transaction_with_commit_on_errors():
try:
+ qs = models.Checkout.objects.select_for_update(of=["self"])
if token:
- che... | [CheckoutBillingAddressUpdate->[perform_mutation->[CheckoutBillingAddressUpdate,save,get_checkout_by_token]],CheckoutComplete->[perform_mutation->[CheckoutComplete,get_checkout_by_token]],CheckoutCreate->[save->[save],Arguments->[CheckoutCreateInput],clean_input->[retrieve_shipping_address,retrieve_billing_address,clea... | Perform a single node - level mutation. This function is called when a user has requested all required data. | the `qs` is used only when `token` is provided. If we want to apply a lock on checkout, we should do it for both cases - when `token` is provided and missing. |
@@ -198,9 +198,12 @@ export function createIframePromise(opt_runtimeOff, opt_beforeLayoutCallback) {
if (opt_runtimeOff) {
iframe.contentWindow.name = '__AMP__off=1';
}
- installDocService(iframe.contentWindow, true);
+ const ampdocService = installDocService(iframe.contentWindow, true)... | [No CFG could be retrieved] | Creates a super simple iframe with the given name. Inserts the element into the DOM. | ~~Hey there.~~ Ha, Github showed me an outdated diff. |
@@ -1152,9 +1152,9 @@ void GUIFormSpecMenu::parseTextArea(parserData* data, std::vector<std::string>&
evt.KeyInput.PressedDown = true;
e->OnEvent(evt);
}
-
- if (label.length() >= 1)
- {
+ }
+ if (is_editable) {
+ if (label.length() >= 1) {
int font_height = g_fontengine->getTextHeight();
rect.Upp... | [No CFG could be retrieved] | Add static text. parse a field of the form spec. | add empty line before the two blocks please |
@@ -1668,6 +1668,17 @@ export class Resources {
}
}
}
+
+ /**
+ * Inform the viewer with documentLoaded message
+ * @private
+ */
+ postDocumentLoaded_() {
+ this.viewer_.sendMessage('documentLoaded', {
+ title: this.win.document.title,
+ sourceUrl: getSourceUrl(this.ampdoc.getUrl())... | [No CFG could be retrieved] | Creates a function that removes the tasks that are associated with a given resource from the queue and. | the method name is a bit ambiguous. maybe we can just inline this whole method. |
@@ -621,7 +621,10 @@ def start(
):
while not started:
try:
- client = prefect.Client()
+ # Get a client with the correct server port
+ client = prefect.Client(
+ api_server=f"{config.server.host}:{serv... | [start->[setup_compose_env,setup_compose_file,warn_for_postgres_settings_when_using_external_postgres],create_tenant->[create_tenant],config_cmd->[setup_compose_env,setup_compose_file,warn_for_postgres_settings_when_using_external_postgres]] | Starts a specific version of a specific . This function is called to configure the host - level configuration of a hasura - to - Check if a node in the system has a node in the system. | I would have liked to reuse `config.server.endpoint` here but because we fill interpolated config values at load-time rather than access-time we cannot set a port in a temporary config :( |
@@ -948,13 +948,11 @@ class Trainer:
patience = params.pop_int("patience", None)
validation_metric = params.pop("validation_metric", "-loss")
num_epochs = params.pop_int("num_epochs", 20)
- cuda_device = params.pop_int("cuda_device", -1)
+ cuda_device = params.pop("cuda_device",... | [Trainer->[_parameter_and_gradient_statistics_to_tensorboard->[add_train_scalar,is_sparse],train->[_enable_activation_logging,_validation_loss,_should_stop_early,_metrics_to_tensorboard,_enable_gradient_clipping,_metrics_to_console,_train_epoch,_get_metrics],_enable_activation_logging->[hook->[add_train_histogram]],_re... | Construct a Trainer from a list of params. Missing parameters. | I don't think this will play well with environment variable substitution. That is, if someone is parameterizing their config file with a `CUDA_DEVICE` environment variable, it will get read in as a string (like all environment variables), and then this will pop it as a string, which I think will break code that relies ... |
@@ -108,6 +108,14 @@ function _visitNode(node, callback) {
global.addEventListener = () => {};
}
+ // Promise.allSettled is supported from RN 0.63 onwards, use a polyfill for that.
+ // Invokes its shim method to shim Promise.allSettled if it is unavailable or noncompliant.
+ //
+ // Require... | [No CFG could be retrieved] | Visits each Node in the tree of Nodes and invokes a specific callback until the callback returns true XML - Element . | Is it necessary to assign it to global? Doesn't `require('promise-allSettled').shim();` do it? |
@@ -419,8 +419,8 @@ func New(config *params.ChainConfig, chain *core.BlockChain, engine consensus_en
chain: chain,
engine: engine,
}
- worker.gasFloor = 500000000000000000
- worker.gasCeil = 1000000000000000000
+ worker.gasFloor = 80000000
+ worker.gasCeil = 120000000
parent := worker.chain.CurrentBlock(... | [CommitTransactions->[commitTransaction],SelectTransactionsForNewBlock->[throttleTxs],makeCurrent,GetNewEpoch] | New creates a new worker object that can be used to create a new block. | What was meaning of old numbers , new numbers ? |
@@ -129,12 +129,16 @@ public class GlobalConfigurationManagerImpl implements GlobalConfigurationManage
EnumSet<CacheContainerAdmin.AdminFlag> adminFlags = EnumSet.noneOf(CacheContainerAdmin.AdminFlag.class);
persistedCaches.forEach((name, configuration) -> {
ensurePersistenceCompatibility(name, ... | [GlobalConfigurationManagerImpl->[removeCache->[removeCache],start->[isKnownScope],createTemplate->[getStateCache],getOrCreateCache->[createCache],createCache->[getOrCreateCache]]] | This method is called when the cache manager is starting up. This method is called when a cache configuration is not persisted. It tries to find a cache. | I'm not sure if it is safe to register the listener at the end. if node X is starting (for example, it is in the loop above) and the user creates a new cache (on node Y, via CLI), how node X knows there is a new cache if the listener is not registered? |
@@ -124,6 +124,17 @@ public class Analyzer extends Processor {
ALL, IMPORTS, EXPORTS;
}
+ public Analyzer(Jar jar) {
+ setJar(jar);
+ try {
+ Manifest manifest = jar.getManifest();
+ if (manifest != null)
+ copyFrom(Domain.domain(manifest));
+ } catch (Exception e) {
+ throw Exceptions.duck(e);
+ }
... | [Analyzer->[referToByBinaryName->[referTo],setJar->[setJar],setTypeLocation->[getSourceFileFor],removeTransitive->[removeTransitive],getOutputFile->[getName],getXRef->[extendsClass->[getPackageRef],implementsInterfaces->[getPackageRef],referTo->[getPackageRef],getPackageRef],getName->[getName],analyze->[getManifest],do... | Package parameters. Reads the next n - ary object from the index and returns it as a Map. | The common style is to throw Exception ... |
@@ -370,6 +370,14 @@ public final class InvokeHTTP extends AbstractProcessor {
.allowableValues("true", "false")
.build();
+ public static final PropertyDescriptor PROP_USE_ETAG = new PropertyDescriptor.Builder()
+ .name("use-etag")
+ .displayName("Use HTTP ETag")
+ ... | [InvokeHTTP->[convertAttributesFromHeaders->[csv],OverrideHostnameVerifier->[verify->[verify]]]] | This property is used to configure the response headers. - - - - - - - - - - - - - - - - - -. | This needs a `description("")` call to set a description statement on the property. |
@@ -0,0 +1,14 @@
+/*
+Copyright (c) 2018-2019 Uber Technologies, Inc.
+
+This source code is licensed under the MIT license found in the
+LICENSE file in the root directory of this source tree.
+*/
+// @flow
+export {default as StatefulPaymentCard} from './stateful-payment-card.js';
+export {default as StatefulContaine... | [No CFG could be retrieved] | No Summary Found. | Types export is missing. |
@@ -619,6 +619,9 @@ public class ObjectEndpoint extends EndpointBase {
if (ex.getResult() == ResultCodes.NO_SUCH_MULTIPART_UPLOAD_ERROR) {
throw S3ErrorTable.newError(NO_SUCH_UPLOAD,
uploadID);
+ } else if (ex.getResult() == ResultCodes.PERMISSION_DENIED) {
+ throw S3ErrorTable.... | [ObjectEndpoint->[head->[addLastModifiedDate],completeMultipartUpload->[put,completeMultipartUpload],abortMultipartUpload->[abortMultipartUpload],listParts->[listParts],delete->[abortMultipartUpload],createMultipartKey->[createMultipartKey]]] | Create a multipart key. Get a response with a if it exists. | Is it possible to have a common helper that does the OM result code => s3 error translation? |
@@ -532,8 +532,11 @@ class RestAPI: # pragma: no unittest
version = 1
- def __init__(self, raiden_api: RaidenAPI) -> None:
- self.raiden_api = raiden_api
+ def __init__(self, raiden_api: RaidenAPI = None, rpc_client: JSONRPCClient = None) -> None:
+ self.rpc_client_optional = rpc_client
+ ... | [endpoint_not_found->[api_error],RestAPI->[initiate_payment->[api_error,api_response],get_raiden_internal_events_with_timestamps->[api_response],mint_token_for->[mint_token_for,api_error,api_response],connect->[api_error,api_response],get_connection_managers_info->[api_response],get_raiden_events_payment_history_with_t... | Initialize the object with the default values. | In most cases, the value behind a property is just prefixed with an underscore. Might be good to do it for consistency here, too. |
@@ -422,7 +422,11 @@ class RaidenService:
)
for event in self.blockchain_events.poll_blockchain_events():
- on_blockchain_event(self, event, event.event_data['block_number'])
+ on_blockchain_event(
+ self,
+ event, event.eve... | [RaidenService->[_callback_new_block->[handle_state_change],handle_state_change->[get_block_number],leave_all_token_networks->[get_block_number],start->[start],mediate_mediated_transfer->[mediator_init,handle_state_change],sign->[sign],target_mediated_transfer->[target_init,handle_state_change],set_node_network_state->... | Installs the filters and then queries the payment network for the given token network. | This will most likely be a lot of rpc calls, please move it outside the loop |
@@ -2485,6 +2485,7 @@ fs_copy(struct file_dfs *src_file_dfs,
}
next_dpath = strdup(dst_filename);
if (next_dpath == NULL) {
+ D_FREE(next_path);
D_GOTO(out, rc = -DER_NOMEM);
}
| [No CFG could be retrieved] | write a file to file system and check permissions Private function to handle fs_copy and fs_chmod. | @daltonbohning if no memory was allocated for next_dpath, should this instead be freeing the dst_filename? |
@@ -40,7 +40,10 @@ public final class HttpSpanStatusExtractor<REQUEST, RESPONSE>
if (response != null) {
Integer statusCode = attributesExtractor.statusCode(request, response);
if (statusCode != null) {
- return HttpStatusConverter.statusFromHttpStatus(statusCode);
+ StatusCode statusCo... | [HttpSpanStatusExtractor->[extract->[statusCode,statusFromHttpStatus,extract]]] | Returns the last known status code for the given request response and error. | Please note this change in behavior. What prompted this here is that on circular redirect, apache-httpasyncclient calls `Instrumenter.end()` with both a 302 response object AND and exception. And our http client tests think that circular redirects should result in `StatusCode.ERROR`. |
@@ -513,6 +513,9 @@ func listSchedulerConfigCommandFunc(cmd *cobra.Command, args []string) {
p := cmd.Name()
if p == "list" {
p = cmd.Parent().Name()
+ log.Info("The list command will be deprecated in future version, use show command instead")
+ } else if p == "show" {
+ p = cmd.Parent().Name()
}
path := p... | [QueryEscape,HasPrefix,Atoi,UsageString,Error,Marshal,New,Usage,AddCommand,NewBuffer,Join,Contains,Name,ToLower,ParseUint,Split,Flag,Println,Sprintf,Unmarshal,String,Parent,ParseFloat,Flags] | Show the list of all possible schedules for a given store. if returns 64 - bit value if it s a 64 - bit value. | Can we directly print instead of using log? |
@@ -136,9 +136,16 @@ class ElasticAverageOptimizer(optimizer.Optimizer):
communication_period: An int point value to controls the frequency
of the communication between every worker and the ps.
moving_rate: A floating point value to control the elastic difference.
- rho: the amount of explor... | [_ElasticAverageOptimizerHook->[begin->[get_init_op]],ElasticAverageOptimizer->[apply_gradients->[apply_gradients],get_init_op->[_Add_sync_queues_and_barrier],compute_gradients->[compute_gradients]]] | Construct a new gradient descent optimizer. | Rename sync_flag to just "synchronous"? |
@@ -36,12 +36,6 @@ static int shake_init(EVP_MD_CTX *ctx)
return sha3_init(EVP_MD_CTX_md_data(ctx), '\x1f', ctx->digest->md_size * 8);
}
-static int kmac_init(EVP_MD_CTX *ctx)
-{
- return keccak_kmac_init(EVP_MD_CTX_md_data(ctx), '\x04',
- ctx->digest->md_size * 8 / 2);
-}
-
stati... | [No CFG could be retrieved] | Protected read from a file except in compliance with the License. XOF_LEN - length of the array of bytes that are required by the MD BIT S390X_SHA3_512 BIT S390X_SHA3. | So this has been removed because this is the legacy code area, and kmac is new to 3.0.0 so it only belongs in the provider? |
@@ -104,8 +104,8 @@ class IdentifierExpr implements Expr
class FunctionExpr implements Expr
{
- private final String name;
- private final List<Expr> args;
+ final String name;
+ final List<Expr> args;
public FunctionExpr(String name, List<Expr> args)
{
| [BinPowExpr->[eval->[eval,isLong]],BinGtExpr->[eval->[eval,isLong]],BinOrExpr->[eval->[eval,isLong]],UnaryNotExpr->[eval->[eval],toString->[toString]],BinMulExpr->[eval->[eval,isLong]],BinGeqExpr->[eval->[eval,isLong]],BinModuloExpr->[eval->[eval,isLong]],BinEqExpr->[eval->[eval,isLong]],BinMinusExpr->[eval->[eval,isLo... | Replies the string representation of a non - null . Replies the number of nanoseconds that can be found in the expression. | not sure why we can't keep these private anymore? |
@@ -79,11 +79,6 @@ namespace System.Windows.Forms
#region IRawElementProviderSimple Implementation
- internal override bool IsPatternSupported(UiaCore.UIA patternId)
- {
- return patternId.Equals(UiaCore.UIA.LegacyIAccessiblePatternId);
- }
-
... | [DataGridView->[DataGridViewEditingPanelAccessibleObject->[GetPropertyValue->[GetPropertyValue]]]] | This method is overridden to return true if the given property is supported by this UIA object. | How did you ensure that you found all cases like this one? |
@@ -105,6 +105,14 @@ class GradeEntryFormsController < ApplicationController
# For students
def student_interface
@grade_entry_form = GradeEntryForm.find(params[:id])
+ if @grade_entry_form.is_hidden
+ render 'shared/http_status', formats: [:html],
+ locals: { code: '404',
+ ... | [GradeEntryFormsController->[new->[new],create->[new],update->[update]]] | This method is used to render a block of missing node responses for the student interface. It. | Align the elements of a hash literal if they span more than one line. |
@@ -96,6 +96,7 @@ void HostConfigFlags::RemoveArg(int& argc, _Inout_updates_to_(argc, argc) LPWSTR
Assert(index >= 0 && index < argc);
for (int i = index + 1; i < argc; ++i)
{
+#pragma prefast(suppress:6385, "Operation is safe but PREfast is difficult to convince")
argv[i - 1] = argv[i];
}
... | [No CFG could be retrieved] | Parse a flag string and return true if the flag is set. - args - endargs - args - args - endargs. | >6385 [](start = 25, length = 4) suppress warning by name macro instead of number? |
@@ -135,4 +135,17 @@ IMAGE_SEQUENCES = {
image_net_arg('00037128'),
image_net_arg('00048316'),
],
+
+ '500x375x3': [
+ image_net_arg('00000001'),
+ image_net_arg('00000002'),
+ image_net_arg('00000003'),
+ image_net_arg('00000004'),
+ image_net_arg('00000008'... | [image_net_arg] | Image - related network arguments. | Is this just a sequence of arbitrary same-sized images? I don't think we're going to get good code coverage with a sequence like that - you can't reidentify faces if there aren't any faces. |
@@ -320,8 +320,8 @@ module Engine
end
end
- def tile_has_max_cities(tile)
- tile.color == :red || MAX_CITY_TILES.include?(tile.hex.name)
+ def tile_has_max_stations(tile)
+ tile.color == :red || MAX_STATION_TILES.include?(tile.name)
end
def rereserve_home_statio... | [G18CO->[par_prices->[par_prices],mines_add->[mines_count],mine_value->[mine_multiplier],event_remove_mines!->[mines_remove],mines_total->[mines_count,mine_value],mine_add->[mines_add],mine_update_text->[mines_count],revenue_str->[east_west_bonus],mine_create->[mines_remove,mine_value],action_processed->[mine_update_te... | Remove corporations if no home station is available. | `tile.hex.name` > `tile.name` is the core change |
@@ -504,7 +504,13 @@ func Serve(conf config.Compliance, grpcBinding string) error {
return err
}
SERVICE_STATE = serviceStateStarting
- go serveGrpc(ctx, db, connFactory, esr, conf, grpcBinding, statusSrv) // nolint: errcheck
+
+ workflowManager, err := workflow.NewManager(postgres.NewPostgresBackend(conf.Postgr... | [ProfileTarHandler->[Header,Write,ParseForm,Itoa,Error,Dial,Sprintf,NewProfilesServiceClient,Background,Close,GetData,Get,Recv,Set,ReadTar],serveCustomRoutes->[Sprintf,Background,WithCancel,NewServeMux,ListenAndServe,HandleFunc],NewEsSidecarClient,NewFactory,RegisterComplianceStatusServer,AnyTimes,ListRulesForAllProjec... | schedulerServer is the scheduler server that is responsible for handling the abandoned jobs. This is a hack to allow us to use the agent s profile tar handler. | I _think_ we can probably get rid of SERVICE_STATE as well, but the startup is complicated enough that I need to put some more thought into it. |
@@ -54,4 +54,15 @@ public class StringUtils {
return org.apache.hadoop.util.StringUtils.join(separator, array);
}
+ public static String toHexString(byte[] bytes) {
+ StringBuilder sb = new StringBuilder(bytes.length * 2);
+ for (byte b: bytes) {
+ sb.append(String.format("%02x", b));
+ }
+ ... | [StringUtils->[join->[join],joinUsingDelim->[join]]] | Join String array with separator. | Trivial: may be rename to `isNullOrEmpty` |
@@ -0,0 +1,17 @@
+package com.baeldung;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.support.SpringBootServletInitializer;
+
+@SpringBoot... | [No CFG could be retrieved] | No Summary Found. | Let's have annotations on their own line |
@@ -79,6 +79,7 @@ export class AmpSlideScroll extends BaseSlides {
this.slides_.forEach(slide => {
this.setAsOwner(slide);
const slideWrapper = this.win_.document.createElement('div');
+ slide.classList.add('amp-carousel-slide');
slideWrapper.appendChild(slide);
slideWrapper.classL... | [No CFG could be retrieved] | Replies the children of the container. EndTimeout_ - The end timeout of the scroll operation. | Let's also add it to the `scrollable-carousel.js` |
@@ -2413,7 +2413,7 @@ def corrmap(icas, template, threshold="auto", label=None, ch_type="eeg",
logger.info('Displaying selected ICs per subject.')
for ii, (ica, max_corr) in enumerate(zip(icas, mx)):
- if (label is not None) and (not hasattr(ica, 'labels_')):
+ if label is not None:
... | [_find_sources->[get_score_funcs],run_ica->[fit,ICA,_detect_artifacts],get_score_funcs->[_make_xy_sfunc],corrmap->[get_components,_find_max_corrs,_plot_corrmap],_sort_components->[copy],ICA->[_fit->[fit],_sources_as_evoked->[_transform_evoked],_apply_epochs->[_pre_whiten],_transform_raw->[_pre_whiten,_transform],_fit_e... | This function is a wrapper around the correlated function in the correlated function. It finds A range of correlation strengths that can be used to categorize ICs. Plots a single - channel cross - correlation map of the template and the labelled ICs Find the ICs with the highest average correlation with a target. | Uh oh ... This will overwrite existing labels. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.