patch stringlengths 18 160k | callgraph stringlengths 4 179k | summary stringlengths 4 947 | msg stringlengths 6 3.42k |
|---|---|---|---|
@@ -68,7 +68,7 @@ RSpec.describe "Admin::Users", type: :request do
end
it "deletes duplicate user" do
- post "/admin/users/#{user.id}/merge", params: { user: { merge_user_id: user2.id } }
+ post merge_admin_user_path(user.id), params: { user: { merge_user_id: user2.id } }
expect { User.fi... | [create_mention->[create,create_all,sidekiq_perform_enqueued_jobs,username,id],offender_activity_on_other_content->[create],dependents_for_offending_user_article->[create,create_all,sidekiq_perform_enqueued_jobs,username,id],create_mutual_follows->[send_new_follower_notification_without_delay,follow],full_profile->[cal... | user2 reacts to offender comment user3 reacts to offender comment user2 merges misc profile info. | These paths also stay the same with the restructure, but whilst I was here I just moved them over to path helpers |
@@ -649,7 +649,8 @@ define([
modelMatrix : !in3D ? modelMatrix : undefined,
attributes : {
show : new ShowGeometryInstanceAttribute(showOutline),
- color : ColorGeometryInstanceAttribute.fromColor(outlineColor)
+ ... | [No CFG could be retrieved] | Initialize the object with the specified options. get geometry attributes. | This needs to be handled in the else path as well, just like show and color. |
@@ -243,6 +243,14 @@ namespace System.Numerics
return (int)Popcnt.PopCount(value);
}
+ if (AdvSimd.IsSupported && AdvSimd.Arm64.IsSupported)
+ {
+ // PopCount works on vector so convert input value to vector first.
+ Vector64<uint> inpu... | [BitOperations->[LeadingZeroCount->[LeadingZeroCount],Log2->[LeadingZeroCount,Log2],PopCount->[PopCount],TrailingZeroCount->[LeadingZeroCount,TrailingZeroCount]]] | PopCount - Pop count of bits in value. | `AdvSimd.Arm64.IsSupported` implies `AdvSimd.IsSupported` so you need just to check for the former |
@@ -44,7 +44,7 @@ import java.util.List;
public class SocketTestPermutation {
- static final String BAD_HOST = SystemPropertyUtil.get("io.netty.testsuite.badHost", "netty.io");
+ static final String BAD_HOST = SystemPropertyUtil.get("io.netty.testsuite.badHost", "198.51.100.254");
static final int BAD_P... | [SocketTestPermutation->[datagram->[combo],socket->[combo],SocketTestPermutation]] | Imports the netty - socket - connection - attempt - permutation. Creates event loop groups for all NIO and OIO events. | question: will this fail the right way in a ipv6 only environment? |
@@ -12,7 +12,7 @@ class VersionTest(unittest.TestCase):
self.assertTrue(v1 < "1.11")
self.assertTrue(v1 > "1.2")
self.assertTrue(v1 > "1.2.2.2")
- self.assertTrue(v1 < "1.2.3.2")
+ self.assertTrue(v1 > "1.2.3.2")
self.assertEqual(v1.major(), "1.Y.Z") # 1.X.Y
s... | [VersionTest->[text_test->[minor,Version,assertEqual,stable,major,patch,pre],simple_test->[assertTrue,minor,assertFalse,Version,assertEqual,compatible,major,patch,pre],patch_test->[minor,Version,assertEqual,stable,major,patch,pre]]] | Test for version range. Checks that the version of the system is greater than the last version of 1. 2. | This is wrong Correct: ``1.2.3 < 1.2.3.2`` |
@@ -16,11 +16,14 @@
*/
package org.jboss.weld.xml;
+import java.util.ArrayList;
+import java.util.List;
+
import javax.enterprise.inject.spi.BeanManager;
public enum XmlSchema {
- CDI10("beans_1_0.xsd", BeanManager.class.getClassLoader()), CDI20("beans_2_0.xsd", BeanManager.class.getClassLoader()), WELD11... | [getClassLoader] | Creates an instance of the class. | Hm, all the values use the same CL, maybe we could remove the arg and use `BeanManager.class.getClassLoader()` by default? |
@@ -64,6 +64,15 @@ public abstract class AbstractRecordProcessor extends AbstractProcessor {
.required(true)
.build();
+ static final PropertyDescriptor DROP_EMPTY_FILES = new PropertyDescriptor.Builder()
+ .name("drop-empty-files")
+ .displayName("Drop Files With No Records")
+ ... | [AbstractRecordProcessor->[onTrigger->[process->[process]]]] | Abstract record processor. Process an ethernet flow. | I agree with Joe's point, whether he means it makes sense to have such a property to filter out 0 record files, or that this new property should be consistent in naming and behavior with the one added to QueryRecord. Right now this new property has inverse naming/behavior from the QueryRecord one, should we use a copy ... |
@@ -199,6 +199,11 @@ public class StompMessageHandler extends AbstractMessageHandler implements Appli
}
}
+ @Override
+ public void handleTransportError(StompSession session, Throwable exception) {
+ logger.error("STOMP transport error for session: [" + session + "]", exception);
+ }
+
}
}
| [StompMessageHandler->[handleMessageInternal->[setDestination],onInit->[onInit]]] | This method is called to handle a frame of a message. | Why not also `handleException()` ?? |
@@ -224,7 +224,16 @@ namespace Microsoft.Xna.Framework.Graphics
// Determine how many iterations through the drawing code we need to make
int batchIndex = 0;
- int batchCount = _batchItemList.Count;
+ int batchCount = _batchItemList.Count;
+
+ if (_device._en... | [SpriteBatcher->[DrawBatch->[EnsureArrayCapacity]]] | Draws a batch of items. Add a new item to the list of items that can be culled down. | I think the terminology here is weird.... the `batchCount` here really means sprite count. You are really counting number of sprites being rendered (with text being one sprite per-character). Is this what we really want to convey? Should it be `Metrics.SpriteCount`? |
@@ -1618,6 +1618,12 @@ module.exports = EntityGenerator.extend({
});
}
+ },
+
+ writeEntitiesFiles: function() {
+ var entities = new Set(this.config.get('entities'));
+ entities.add(_s.capitalize(this.name));
+ this.config.set('entities', A... | [No CFG could be retrieved] | The main method of the class that creates the necessary entity configuration. Get all fields that are not owned by the entity. | can we rename this to `updateEntityToConfig` |
@@ -93,7 +93,7 @@ class Tau(Package):
depends_on('likwid', when='+likwid')
depends_on('papi', when='+papi')
depends_on('libdwarf', when='+libdwarf')
- depends_on('libelf', when='+libdwarf')
+ depends_on('elf', when='+libdwarf')
# TAU requires the ELF header support, libiberty and demangle.
... | [Tau->[install->[walk,system,append,change_sed_delimiter,set_compiler_options,extend,filter,configure,link_tau_arch_dirs,make,fix_tau_compilers],set_compiler_options->[append,dirname,join],setup_run_environment->[join_path,glob,set],setup_build_environment->[prepend_path],link_tau_arch_dirs->[join_path,symlink,isdir,ex... | Returns a list of all supported TAU architectures. This function is called by the parser to check for missing dependencies on a specific object. | Shouldn't this be `when='+elf'`? |
@@ -3,12 +3,13 @@ module OpenidConnect
def index
render json: {
jwks_uri: '', # TODO
- scopes_supported: '', # TODO
+ scopes_supported: OpenidConnectAttributeScoper::VALID_SCOPES,
response_types_supported: %w(code),
grant_types_supported: %w(authorization_code),
... | [ConfigurationController->[index->[merge,render]]] | Renders the index lease configuration. | This big response block seems ripe for a refactor out into a service or presenter or view of some kind. Not necessary for this particular PR, but that much code in a controller smells odd to me. |
@@ -123,9 +123,13 @@ describe CommentController, "when commenting on a request" do
session[:user_id] = users(:silly_name_user).id
info_request = info_requests(:fancy_dog_request)
- post :new, :url_title => info_request.url_title,
- :comment => { :body => "I demand to be heard!" },
- :type => 'r... | [create,let,describe,where,first,it,described_state,show_request_path,to,save!,before,body,post,require,signin_path,dirname,with_feature_enabled,match,id,confirmed_not_spam,redirect_to,context,token,get,not_to,info_requests,url_title,eq,users,render_template,raise_error,and_return,expand_path] | should not allow comments if comments are not allowed on the request should not allow comments from banned users. | Line is too long. [81/80] |
@@ -7,7 +7,7 @@
<%= parsed_content %>
</span>
<% else %>
-<div class="katex-element">
+<div class="katex-element" style="overflow-x: auto;">
<%= parsed_content %>
</div>
<% end %>
| [No CFG could be retrieved] | element. | Just a question on this: Is this inline for a specific purpose instead of it going into a stylesheet? |
@@ -40,6 +40,7 @@ module Engine
'entity_type' => type_s(entity),
'id' => @id,
'user' => @user,
+ 'created_at' => @created_at&.to_i,
**args_to_h,
}.reject { |_, v| v.nil? }
end
| [Base->[copy->[from_h],split->[split],to_h->[reject,nil?],from_h->[player,id,new,user,get,h_to_args],attr_reader,include,attr_accessor],require_relative] | Returns a hash of unknown nodes. | this seems unnecessary, you already have created_at in the db |
@@ -1214,7 +1214,7 @@ func TestRefreshInitFailure(t *testing.T) {
// Refresh DOES fail, causing the new initialization error to appear.
//
refreshShouldFail = true
- p.Steps = []TestStep{{Op: Refresh, ExpectFailure: true}}
+ p.Steps = []TestStep{{Op: Refresh, SkipPreview: true, ExpectFailure: true}}
snap = p.Ru... | [NewProviderURN->[NewURN],GetTarget->[getNames],Run->[GetProject,Run,GetTarget],RunWithContext->[Snap],NewURN->[NewURN,getNames],GetProject->[getNames],NewProviderURN,GetTarget,Run,RunWithContext,NewURN,Snap,GetProject] | TestCheckFailureRecord tests that the resource has a non - error error and that the resource Provider returns a plugin. Provider that runs on the host and registers the resource in the plugin. | This test previously worked because it tested that the preview mutated the in-memory snapshot. While this is technically correct, a more correct test would be to test that an update correctly persists the init failure to the journal. |
@@ -126,15 +126,12 @@ public abstract class BaseTableMetadata implements HoodieTableMetadata {
}
@Override
- public Map<String, FileStatus[]> getAllFilesInPartitions(List<String> partitionPaths)
+ public Map<String, FileStatus[]> getAllFilesInPartitions(List<String> partitions)
throws IOException {
... | [BaseTableMetadata->[getAllFilesInPartition->[getAllFilesInPartition],getAllFilesInPartitions->[getAllFilesInPartitions],getAllPartitionPaths->[getAllPartitionPaths]]] | Get all files in partitions. | @prashantwason @satishkotha : do you guys know why we did not do batch get here and doing 1 key at a time? is there any particular reason for it. I have fixed it to fetch batch get in this patch. |
@@ -68,7 +68,7 @@ class DbtShellTask(ShellTask):
env: dict = None,
environment: str = None,
overwrite_profiles: bool = False,
- profiles_dir: str = None,
+ profiles_dir: str = os.path.join(os.path.expanduser('~'), '.dbt'),
set_profiles_envar: bool = True,
dbt_k... | [DbtShellTask->[__init__->[super],run->[dump,getenv,super,join,exists,open],defaults_from_attrs]] | Initialize a Nested Nested object. | This is a little subtle, but if a user builds this task on machine A but runs it on machine B, this directory could be different. Because of that, I think we should keep this default as `None` and only use this default when none is set (which is what I think your current `run` method implementation handles ) |
@@ -271,6 +271,13 @@ function compile(entryModuleFilenames, outputDir,
compilerOptions.compilerFlags.define.push('TYPECHECK_ONLY=true');
compilerOptions.compilerFlags.jscomp_error.push(
'checkTypes', 'accessControls', 'const', 'constantProperty');
+
+ // TODO(aghassemi): Remove when NTI is... | [No CFG could be retrieved] | The main entry point for the closure compiler. Compile the entry module files and output the result to the output directory. | can we use something more idiomatic like `nti`, using the flag already implies you want to use it |
@@ -45,7 +45,7 @@ import org.apache.beam.sdk.values.TypeParameter;
* @param <K> the type of the keys of the KVs being transcoded
* @param <V> the type of the values of the KVs being transcoded
*/
-public class MapCoder<K, V> extends StandardCoder<Map<K, V>> {
+public class MapCoder<K, V> extends CustomCoder<Map<K... | [MapCoder->[encode->[encode],of->[of],getEncodedTypeDescriptor->[getEncodedTypeDescriptor],registerByteSizeObserver->[registerByteSizeObserver],decode->[decode]]] | Creates a new map coder instance using the specified key and value coder objects. | I don't see the value in making this a `CustomCoder`. Why? |
@@ -70,10 +70,10 @@ public final class TaskExecutor {
List<NativeRayObject> returnObjects = new ArrayList<>();
ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
+ // Find the executable object.
+ RayFunction rayFunction = runtime.getFunctionManager()
+ .getFunction(jobId, ... | [TaskExecutor->[maybeSaveCheckpoint->[getRayConfig,remove,size,prepareCheckpoint,checkpointExpired,saveCheckpoint,get,shouldCheckpoint,currentTimeMillis,add,CheckpointContext],maybeLoadCheckpoint->[getRayConfig,loadCheckpoint,notifyActorResumedFromCheckpoint,equals,checkArgument,getCheckpointsForActor,isEmpty,currentTi... | Executes the ray function with the given arguments. if actorCreationException is null return the object store. | Is it possible that it can't find the method and results in an exception thrown here? Since you moved it out of the try-catch clause, this will make the worker process crash. |
@@ -30,6 +30,8 @@ import static java.util.Collections.emptySet;
public interface Plugin
{
+ default void setPrestoInformation(PrestoInformation prestoInformation) {}
+
default Iterable<ConnectorFactory> getConnectorFactories()
{
return emptyList();
| [getBlockEncodings->[emptyList],getResourceGroupConfigurationManagerFactories->[emptyList],getParametricTypes->[emptyList],getEventListenerFactories->[emptyList],getPasswordAuthenticatorFactories->[emptyList],getSystemAccessControlFactories->[emptyList],getFunctions->[emptySet],getSessionPropertyConfigurationManagerFac... | returns an empty list if there are no connector factories. | I don't like `set` because this implies implementation is mutable. If a plugin wants to use this information in some further place than directly in the class implementing `Plugin`, this further complicates implementation. I would look into providing this information during Plugin instantiation. For example, Plugin coul... |
@@ -79,4 +79,18 @@ def test_find_ecg():
assert 'ECG-SYN' not in ecg_epochs.ch_names
+def test_find_ecg_events_tstart():
+ """Ensure tstart is taken into account when calculating avg heart rate."""
+ raw = read_raw_fif(raw_fname, preload=False)
+ event_id = 999
+ tstart = raw.times[-1] / 2
+ even... | [test_find_ecg->[list,load_data,append,create_ecg_epochs,len,copy,read_raw_fif,set_channel_types,find_ecg_events,pick_types,index,warns],run_tests_if_main,dirname,join] | This function is only used for testing. | can you rather update an existing test or maybe use pytest factorize with tstart value? |
@@ -12,6 +12,8 @@
from gettext import gettext as _
from operator import itemgetter
+from pulp.server.content.sources.model import PRIMARY_ID
+
from pulp_node.error import *
from pulp_node.reports import RepositoryProgress, RepositoryReport
| [UpdateRenderer->[failed_repositories->[add,sorted,set,error],render->[failed_repositories,write,append,dict,render_success_message,get,itemgetter,len,sorted,str,render_title,render_failure_message,render_document_list]],ProgressTracker->[_render->[rsplit,render,join],display->[_render,write,append,create_progress_bar,... | Creates a list of all components of a n - th node in a repository. Error message for missing or missing package. | I noticed in one of the other modules that you grouped pulp_node and pulp together, but here you separate them. I personally think Nodes should just come with the platform, but opinions aside we should be consistent with how we group the imports. |
@@ -88,13 +88,13 @@ function contact_selector($selname, $selclass, $preselected = false, $options) {
$networks = array(NETWORK_DFRN);
break;
case 'PRIVATE':
- if(is_array($a->user) && $a->user['prvnets'])
+ if (is_array($a->user) && $a->user['prvnets'])
$networks = array(NETWORK_DFRN,NET... | [No CFG could be retrieved] | Contact selector function This function returns a select of contacts that are blocked or not. select all missing node - options. | Standards: Please add a space after commas. |
@@ -53,7 +53,7 @@ public class FreePortFinder
String portFile = port + LOCK_FILE_EXTENSION;
try
{
- FileChannel channel = open(get(portFile), CREATE, WRITE, DELETE_ON_CLOSE);
+ FileChannel channel = open(get(basePath + "/" + portFile), CREATE, WRITE, ... | [FreePortFinder->[releasePort->[info,release,format,close,remove,isInfoEnabled,containsKey,isPortFree],isPortFree->[ServerSocket,setReuseAddress,close],find->[debug,close,IllegalStateException,get,isPortFree,tryLock,put,nextInt,isDebugEnabled,open,release,OverlappingFileLockException],getLog,getClass,Random]] | Finds a free port in the port lock file. | use the separator from System to make this platform independent. |
@@ -215,6 +215,14 @@ public class ExecRemoteInterpreterProcess extends RemoteInterpreterManagedProces
notifyAll();
}
}
+ if (getEnv().getOrDefault("ZEPPELIN_FLINK_YARN_APPLICATION", "false").equalsIgnoreCase("true")
+ && exitValue == 0) {
+ // Don't update transition ... | [ExecRemoteInterpreterProcess->[isRunning->[isRunning],getErrorMessage->[getErrorMessage],stop->[stop],InterpreterProcessLauncher->[onProcessFailed->[onProcessFailed],onProcessRunning->[onProcessRunning]],processStarted->[processStarted]]] | Called when the process is complete. | Isn't the `else if` clearer? |
@@ -313,6 +313,9 @@ int pkcs12_main(int argc, char **argv)
case OPT_ENGINE:
e = setup_engine(opt_arg(), 0);
break;
+ case OPT_LEGACY_ALG:
+ use_legacy = 1;
+ break;
case OPT_PROV_CASES:
if (!opt_provider(o))
goto end;... | [No CFG could be retrieved] | Parse the command line options and return the value of the next key. Reads the user s password and returns the MAC key. | This should probably be moved inside the previous if block. |
@@ -187,8 +187,16 @@ public class DeckSelectionDialog extends AnalyticsDialogFragment {
String deckName = ctv.getText().toString();
selectDeckByNameAndClose(deckName);
});
- }
+ mDeckTextView.setOnLongClickListener(new View.OnLongCli... | [DeckSelectionDialog->[newInstance->[DeckSelectionDialog],onDeckSelected->[onDeckSelected],selectDeckAndClose->[onDeckSelected],onCreate->[onCreate],adjustToolbar->[getTitle],SelectableDeck->[createFromParcel->[SelectableDeck],fromCollection->[fromCollection,SelectableDeck],compareTo->[compareTo]],DecksArrayAdapter->[s... | Set deck. | spacing around the "+" |
@@ -18,8 +18,7 @@
*/
package org.apache.cloudstack.managed.context;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import org.apache.log4j.Logger;
import org.apache.cloudstack.managed.context.impl.DefaultManagedContext;
| [ManagedContextRunnable->[getContext->[info,sleep,RuntimeException],initializeGlobalContext->[setManagedContext],run->[Runnable,runWithContext],getLogger,DefaultManagedContext]] | Creates a runnable that runs a managed object. get the context of the current node. | maybe not for this iteration, but this var name should be all upper i.e. LOG |
@@ -70,7 +70,7 @@ namespace System.Globalization
// to 0 (ERROR_SUCCESS) before executing the calls.
// Guess our buffer size first
- int iLength = Interop.Normaliz.NormalizeString((int)normalizationForm, strInput, strInput.Length, null, 0);
+ int iLength = Interop.Norm... | [Normalization->[Normalize->[FormC,FormD,Invariant,ERROR_SUCCESS,ERROR_INSUFFICIENT_BUFFER,Format,Argument_InvalidNormalizationForm,Argument_InvalidCharSequenceNoIndex,Empty,FormKC,Assert,UnknownError_Num,ERROR_INVALID_PARAMETER,NormalizeString,FormKD,nameof,ERROR_NO_UNICODE_TRANSLATION,GetLastWin32Error,ERROR_NOT_ENOU... | Normalizes a string. This method checks if the string passed in has a cBuffer property set to 0 before executing. | Can we get rid of this guessing now, and just try to convert it for real? |
@@ -189,7 +189,7 @@ class AdminPublicBodyController < AdminController
params[:tag_behaviour],
false,
admin_current_user,
- ... | [AdminPublicBodyController->[destroy->[destroy],store_csv_data->[new],create->[new],new->[new],import_csv->[import_csv]]] | Imports a single n - node tag from CSV. | Line is too long. [88/80] |
@@ -42,13 +42,13 @@ class QuantizableMobileNetV2(MobileNetV2):
self.quant = QuantStub()
self.dequant = DeQuantStub()
- def forward(self, x):
+ def forward(self, x: Tensor):
x = self.quant(x)
x = self._forward_impl(x)
x = self.dequant(x)
return x
- def f... | [mobilenet_v2->[QuantizableMobileNetV2],QuantizableMobileNetV2->[fuse_model->[fuse_model]]] | Initialize the object with the base of the n - th base of the n - th base. | I think return type is `Tensor`. |
@@ -31,7 +31,8 @@ import javax.annotation.Nonnull;
@Type(value = StreamAggregate.class, name = "streamAggregateV1"),
@Type(value = StreamFilter.class, name = "streamFilterV1"),
@Type(value = StreamFlatMap.class, name = "streamFlatMapV1"),
- @Type(value = StreamGroupBy.class, name = "streamGroupByV1"),... | [Property->[apply->[apply]],validateUpgrade->[validateUpgrade],build->[build]] | Imports a specific object from the JSON format. V2 of the TableSourceV1 class. | to avoid confusion that I have with `StreamSelectKey` every time i look at the class, what do you think about (in a follow-up PR) changing the class name of `StreamGroupBy` to `StreamGroupByV2` and `StreamSelectKey` to `StreamSelectKeyV2` |
@@ -329,11 +329,11 @@ class ServiceBusAdministrationClientQueueAsyncTests(AzureMgmtTestCase):
queue_description = await mgmt_service.create_queue(queue_name)
try:
# handle a null update properly.
- with pytest.raises(AttributeError):
+ with pytest.raises(TypeError):
... | [ServiceBusAdministrationClientQueueAsyncTests->[test_async_mgmt_queue_update_invalid->[clear_queues,update_queue,Exception,create_queue,timedelta,delete_queue,raises,from_connection_string],test_async_mgmt_queue_list_basic->[clear_queues,ServiceBusAdministrationClient,ServiceBusSharedKeyCredential,len,create_queue,lis... | Test for a queue update invalid. | is it a breaking change -- raising TypeError instead of AttributeError? |
@@ -373,6 +373,18 @@
})
}
+ fs.exists[util.promisify.custom] = function (p) {
+ const [isAsar, asarPath, filePath] = splitPath(p)
+ if (!isAsar) {
+ return exists[util.promisify.custom](p)
+ }
+ const archive = getOrCreateArchive(asarPath)
+ if (!archive) {
+ retu... | [No CFG could be retrieved] | Creates a unique identifier for a file or directory. check if file is not found in archive. | This is inconsistent with the `fs.exists` behavior above, in the case of an invalid archive it throws / calls back with an error. This method will fail transparently with a resolved `false` |
@@ -14,15 +14,15 @@ module Notifications
end
def call
- dev_account = User.dev_account
+ welcoming_account = User.welcoming_account
json_data = {
- user: user_data(dev_account),
+ user: user_data(welcoming_account),
broadcast: {
title: wel... | [Send->[call->[call,create,processed_html,type_of,dev_account,title,id,user_data],attr_reader,delegate]] | call - creates a notification for a user who has no device account lease. | Some additional context for this change here: I ran into a bug locally where it was super unclear why a notification couldn't be created. Once I explicitly raised with `create!`, it was easy to see the issue and fix. Not sure why we _aren't_ raising, but I really feel like we should. |
@@ -42,8 +42,16 @@ import java.util.List;
@Rule(key = "S2222")
public class LocksNotUnlockedCheck extends SECheck {
- private enum LockStatus implements ObjectConstraint.Status {
+ public enum LockConstraint implements Constraint {
LOCKED, UNLOCKED;
+
+ @Override
+ public String valueAsString() {
+ ... | [LocksNotUnlockedCheck->[PreStatementVisitor->[visitMethodInvocation->[TryLockSymbolicValueFactory]],reportIssue->[reportIssue],checkPostStatement->[PostStatementVisitor],checkPreStatement->[PreStatementVisitor],TryLockSymbolicValue->[toString->[toString],references->[references]],TryLockSymbolicValueFactory->[createSy... | Package for importing the packages. Check if the given other value is a reference to this program state. | In order to stay coherent with the rest, remove the uppercase first letter. |
@@ -53,6 +53,7 @@ import android.text.Spanned;
import android.text.SpannedString;
import android.text.TextUtils;
import android.text.style.UnderlineSpan;
+import android.util.Log;
import android.util.TypedValue;
import android.view.GestureDetector.SimpleOnGestureListener;
import android.view.KeyEvent;
| [AbstractFlashcardViewer->[MyWebView->[onScrollChanged->[onScrollChanged]],LinkDetectingGestureDetector->[executeTouchCommand->[processCardAction],onWebViewCreated->[executeTouchCommand]],undo->[mAnswerCardHandler],initLayout->[onClick->[lookUp,clipboardHasText]],onCollectionLoaded->[setTitle,onCollectionLoaded],onDest... | Package that inherits all components from the same package. Package access methods. | I don't think this is used? |
@@ -313,8 +313,11 @@ class _Mutate(PTransform):
supported, as the commits are retried when failures occur.
"""
- # Max allowed Datastore write batch size.
+ # Max allowed Datastore writes per batch, and max bytes per batch.
+ # Note that the max bytes per batch is lower than the actual limit enforced
+ # by... | [ReadFromDatastore->[get_estimated_num_splits->[get_estimated_size_bytes],get_estimated_size_bytes->[query_latest_statistics_timestamp]]] | Initializes a Mutate transform. | What is the actual limit? |
@@ -416,6 +416,8 @@ function $RootScopeProvider(){
var internalObject = {};
var oldLength = 0;
+ dirtyWatch = null;
+
function $watchCollectionWatch() {
newValue = objGetter(self);
var newLength, key;
| [No CFG could be retrieved] | Creates a function that will watch the object s values and trigger a change notification when the object check for changes in the array and update the array if necessary. | $watchCollection uses $watch under the hood so this is not necessary |
@@ -48,7 +48,7 @@ public class FixedThreadPool implements ThreadPool {
int queues = url.getParameter(QUEUES_KEY, DEFAULT_QUEUES);
return new ThreadPoolExecutor(threads, threads, 0, TimeUnit.MILLISECONDS,
queues == 0 ? new SynchronousQueue<Runnable>() :
- (queues... | [FixedThreadPool->[getExecutor->[ThreadPoolExecutor,NamedInternalThreadFactory,getParameter,AbortPolicyWithReport]]] | Returns a new executor with the named thread pool threads and queues. | I think the key point here is not the type of Queue but is how different values of `queues` is treated: * 0, SynchronousQueue * <0, LinkedBlockingQueue * \>0, limited LinkedBlockingQueue |
@@ -111,7 +111,14 @@ var GenesisFNAccounts = [...]DeployAccount{
{Index: "106", Address: "one1ughluft6keduyy8v8nhczkyfmcc2qhe9wxpmrz", BlsPublicKey: "edde5546ec7c94a212068f4d5e6e8008e0ee6701e510517a4185b1a9831a8a0cdf05309f550c0907cbd644e3ded9a787"},
{Index: "107", Address: "one1j7urgfm48rj9zl6rl8s3lg9mawkhcrf78mqds... | [No CFG could be retrieved] | A sequence of all possible names of a single node. The sequence of unique identifiers for a given sequence of words. | Duplicate BLS key (indices 115 and 116) |
@@ -185,6 +185,7 @@ export class FakeWindow {
/** @const */
this.Date = window.Date;
+ this.setTimeout = function() {
/**
* @param {function()} handler
* @param {number=} timeout
| [No CFG could be retrieved] | The base class for the DOM elements. The window. setInterval and window. clearTimeout methods are available for IE9 and below. | The JSDoc below doesn't seem useful when switching the order like this. We can either add the missing params (prefixed with `unused`) or remove the JSDoc outright. I think it's fine to remove since they're just standard window APIs. Ditto below. |
@@ -908,6 +908,17 @@ bool IsRealNumber(const char *s)
/* Rlist to Uid/Gid lists */
/****************************************************************************/
+void UidListDestroy(UidList *uids)
+{
+ while (uids)
+ {
+ UidList *ulp = uids;
+ u... | [No CFG could be retrieved] | AddSimpleUidItem - add a single uid item if it is not found in the list AddSimpleGidItem - add simple uid and gid items. | Wouldn't it be better to use List? Alternative Seq or Map? |
@@ -23,12 +23,6 @@ import java.util.Properties;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.CyclicBarrier;
-/**
- * Abstract benchmark client,test for difference scenes Usage: -Dwrite.statistics=false BenchmarkClient serverIP
- * serverPort concurrents timeout codectype requestSize runti... | [AbstractBenchmarkClient->[startRunnables->[Thread,start,get,size],run->[getValue,startRunnables,size,parseInt,nanoTime,toString,StringBuilder,remove,CountDownLatch,containsKey,put,getProperty,getResults,BufferedWriter,getTime,getKey,getInstance,await,valueOf,append,setTime,println,parseBoolean,Date,format,close,entryS... | abstract class for testing nfs - rpc benchmark Runs the n - th command. | remove author info only, and keep the others. |
@@ -284,7 +284,17 @@ def _current_expected_place():
global _global_expected_place_
if _global_expected_place_ is None:
if core.is_compiled_with_cuda():
- _global_expected_place_ = core.CUDAPlace(0)
+ try:
+ device_count = core.get_cuda_device_count()
+ ... | [_set_expected_place->[_set_dygraph_tracer_expected_place],cuda_places->[is_compiled_with_cuda,_cuda_ids],ComplexVariable->[numpy->[numpy]],_varbase_creator->[convert_np_dtype_to_dtype_],Program->[_construct_from_desc->[Program,_sync_with_cpp,Block],to_string->[type,_debug_string_,to_string],_copy_data_info_from->[type... | Internal function to determine the current expected place. | Use warnings instead of logging |
@@ -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`. |
@@ -58,6 +58,10 @@ class Cache(object):
key_parts = [link.url_without_fragment]
if link.hash_name is not None and link.hash is not None:
key_parts.append("=".join([link.hash_name, link.hash]))
+ if link.subdirectory_fragment:
+ key_parts.append(
+ "=".join... | [SimpleWheelCache->[get->[_link_for_candidate,_get_candidates],get_path_for_link->[_get_cache_path_parts]],EphemWheelCache->[cleanup->[cleanup]],Cache->[_link_for_candidate->[get_path_for_link]],WheelCache->[get_ephem_path_for_link->[get_path_for_link],cleanup->[cleanup],__init__->[SimpleWheelCache,EphemWheelCache],get... | Get parts of part that must be os. path. joined with cache_dir . | While this is a generic key so technically it doesn't have to be a valid URL, I think it would be nice to join the fragment parts with `&` then join those to the first part with `#`. It would probably be easier to relay if we actually had to communicate this info to anyone. :) |
@@ -47,7 +47,15 @@ public class DefaultKsqlParser implements KsqlParser {
final String message,
final RecognitionException e
) {
- throw new ParsingException(message, e, line, charPositionInLine);
+ //Checks if the error is a reserved keyword error
+ if (isKeywordError(message, off... | [DefaultKsqlParser->[parsedStatement->[getStatementString,of],prepare->[ParseFailedException,getMessage,of,getCause,getStatementText,buildStatement,getStatement,isEmpty,AstBuilder,getRawMessage],parse->[ParseFailedException,getMessage,toList,collect,getParseTree],getStatementString->[getStopIndex,of,getStartIndex,getIn... | Parses a single unknown block. | since we're doing this exact check down inside `isKeywordError` we should just pull it out here and pass in the text directly |
@@ -17,7 +17,7 @@ import (
)
// Version holds the current Gitea version
-const Version = "0.9.99.0915"
+var Version = "0.9.99.0915"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
| [NumCPU,GOMAXPROCS,NewApp,Run] | +build - build function. | I would set that to `var Version = "0.0.0+master"` |
@@ -3159,6 +3159,13 @@ bool simple_wallet::new_wallet(const boost::program_options::variables_map& vm,
return false;
}
+ if (!m_subaddress_lookahead.empty())
+ {
+ auto lookahead = parse_subaddress_lookahead(m_subaddress_lookahead);
+ assert(lookahead);
+ m_wallet->set_subaddress_lookahead(lookahea... | [No CFG could be retrieved] | Creates a new wallet with the given secret key recovery key and two random flag. Restore the deterministic wallet. | Can this be an error rather than what is essentially a crash exit ? |
@@ -361,8 +361,11 @@ class LocalTrade():
def _set_new_stoploss(self, new_loss: float, stoploss: float):
"""Assign new stop value"""
- self.stop_loss = new_loss
- self.stop_loss_pct = -1 * abs(stoploss)
+ self.set_stop_loss(new_loss)
+ if self.is_short:
+ self.stop_... | [LocalTrade->[recalc_open_trade_value->[_calc_open_trade_value],calc_profit->[calc_close_trade_value],update_order->[update_orders],get_open_trades->[get_trades_proxy],adjust_stop_loss->[_set_new_stoploss],stoploss_reinitialization->[get_open_trades,adjust_stop_loss],calc_profit_ratio->[calc_close_trade_value]],Trade->... | Assign new stop loss and initial stop loss. Trailing stoploss saved us. | I think this "calling-logic" is dangerous. we now have 3 "set stoploss" methods that all work slightly differently - this should definitely be "somehow" simplified and unified to avoid confusion. it's also unclear to me what extracting `set_stop_loss` brings over putting that logic to this method. calling `set_stop_los... |
@@ -105,6 +105,9 @@ type userTSDB struct {
seriesInMetric *metricCounter
limiter *Limiter
+ globalSeriesCount *atomic.Int64 // Shared across all userTSDB instances created by ingester.
+ globalLimitsFn func() *GlobalLimits
+
stateMtx sync.RWMutex
state tsdbState
pushesInFlight sync.... | [v2LabelValues->[Close,Querier],Head->[Head],v2QueryStreamChunks->[ChunkQuerier,Close],Blocks->[Blocks],Close->[Close],getMemorySeriesMetric->[Head],createTSDB->[Compact,Head,updateCachedShippedBlocks,setLastUpdate],PreCreation->[Head],v2LifecyclerFlush->[shipBlocks,compactBlocks],closeAllTSDB->[Close],v2QueryStreamSam... | shouldClose returns true if the given block in the TSDB is closed. Appender returns a storage. Appender that will write the in the database. | What happens when we close TSDB (eg. because idle)? Is this updated correctly? Can we update existing unit tests to check it too, please? |
@@ -565,13 +565,13 @@ public final class SnippetUtils {
/**
* Generates a new id for the current id that is specified. If no seed is found, a new random id will be created.
*/
- private String generateId(final String currentId, final String seed) {
+ private String generateId(final String current... | [SnippetUtils->[addControllerServices->[addControllerServices],updateControllerServiceIdentifiers->[updateControllerServiceIdentifiers],getControllerServices->[getControllerServices],copyContentsForGroup->[copy,getControllerServices,copyContentsForGroup]]] | Generate a unique id. | Should be able to remove this now |
@@ -96,8 +96,8 @@ def test_static_to_shared_library(build_environment):
shared_lib = '{0}.{1}'.format(
os.path.splitext(static_lib)[0], dso_suffix)
- assert output == expected[arch].format(
- static_lib, shared_lib, os.path.basename(shared_lib))
+ ... | [build_environment->[Executable,join],test_static_to_shared_library->[splitext,_static_to_shared_library,basename,expected,format],test_cc_not_changed_by_modules->[setup_package,Spec,setattr,concretize],usefixtures,regression] | Test that the static library is available on the system and that it is available on the system Missing node - package - related environment variables. | why use a set here? This makes the test much more lenient -- we *do* care about the order and should know what order we expect, right? |
@@ -914,10 +914,7 @@ static void updateFastFaceRow(
if (next_makes_face == makes_face
&& next_p_corrected == p_corrected + translate_dir
&& next_face_dir_corrected == face_dir_corrected
- && next_lights[0] == lights[0]
- && next_lights[1] == lights[1]
- && next_lights[2] == lights[2]
- &... | [getInteriorLight->[getInteriorLight], m_minimap_mapblock->[final_color_blend,get_sunlight_color],void->[getNodeTile,getFaceLight,getSmoothLight,FastFace],append->[append],final_color_blend->[final_color_blend,get_sunlight_color],getNodeTile->[getNodeTileN],getFaceLight->[getFaceLight],fill->[fillBlockDataBegin,fillBlo... | Update the fast face row in the table. private static final int next_face_dir_corrected = 0 ; private static int - - - - - - - - - - - - - - - - - -. | the compiler will probably do this on its own also you might want to use `sizeof(*lights)` |
@@ -367,7 +367,7 @@ namespace System.IO
/// not work, we simply return the char associated with that
/// key with ConsoleKey set to default value.
/// </summary>
- public unsafe ConsoleKeyInfo ReadKey(out bool previouslyProcessed)
+ private unsafe ConsoleKeyInfo ReadKeyCore(bool... | [StdInReader->[ReadOrPeek->[Peek,ReadLine],ConsoleKeyInfo->[IsUnprocessedBufferEmpty,MapBufferToConsoleKey,AppendExtraBuffer,ReadStdin],ReadLine->[ReadLine],AppendExtraBuffer->[IsUnprocessedBufferEmpty],MapBufferToConsoleKey->[IsUnprocessedBufferEmpty,MapBufferToConsoleKey],ReadStdin->[ReadStdin]]] | Reads a key from the console. | When we pop from `_availableKeys` we should also apply the conversion. |
@@ -826,8 +826,13 @@ namespace System.ComponentModel.Design.Serialization
while (t == null)
{
t = GetType(typeName);
- if (t == null && typeName != null && typeName.Length > 0)
+ if (t == null)
{
+ if (string.Is... | [DesignerSerializationManager->[WrappedPropertyDescriptor->[GetValue->[GetValue],ShouldSerializeValue->[ShouldSerializeValue],CanResetValue->[CanResetValue],ResetValue->[ResetValue],SetValue->[SetValue]],ReportError->[CheckSession],SerializationSession->[Dispose->[OnSessionDisposed]],GetName->[CheckSession],GetService-... | Get the type of the object with the given name. | Notice that this would infinitely loop if typeName is null or empty |
@@ -91,7 +91,7 @@ func ConvertParamToActionBackend(parameter string) string {
// "roles": ["lalala"],
// ]
func FormatNodeFilters(filters []string) (map[string][]string, error) {
- return formatFilters(filters, ConvertParamToNodeRunBackend)
+ return stringutils.FormatFiltersWithKeyConverter(filters, ConvertParamToN... | [GrpcError,Before,LoadLocation,ParseInLocation,Unix,Equal,Sprintf,New,QueryUnescape,After,Split,TrimSpace] | ConvertParamToActionBackend takes a string parameter that will be used to translate the parameter into formatFilters will receive an array of filters and will format them into a map of strings. | Pulling out the `FormatFilters`. |
@@ -16,8 +16,11 @@
import '../amp-ad-exit';
import * as sinon from 'sinon';
+import {ANALYTICS_CONFIG} from '../../../amp-analytics/0.1/vendors';
import {toggleExperiment} from '../../../../src/experiments';
+const TEST_3P_VENDOR = '3p-vendor';
+
const EXIT_CONFIG = {
targets: {
simple: {'finalUrl': 'ht... | [No CFG could be retrieved] | Displays a single unique identifier for a given resource. Config - Configuration for all the neccesary urls. | Ignore changes to this file - it was changed in #10714 and will be rebased away. |
@@ -46,15 +46,9 @@ class Process {
* @return ProcessRun
*/
public function run() {
- $cwd = $this->cwd;
+ $start_time = microtime( true );
- $descriptors = array(
- 0 => STDIN,
- 1 => array( 'pipe', 'w' ),
- 2 => array( 'pipe', 'w' ),
- );
-
- $proc = proc_open( $this->command, $descriptors, $pipes... | [Process->[run_check->[run]]] | Runs the command and returns a ProcessRun object. | To keep `Process` abstracted from the test suite, could tracking run times instead be a property of the instantiated object? |
@@ -150,7 +150,11 @@ class MainController < ApplicationController
redirect_to :controller => 'assignments', :action => 'index'
return
end
- @assignments = Assignment.unscoped.all(:order => 'due_date DESC')
+ @assignments = Assignment.unscoped.includes(
+ [:assignment... | [MainController->[reset_api_key->[reset_api_key]]] | Renders a single node in the system if the user is a student or a node in the. | You already have hashes with key `:groupings` and `:submission_rule` for nested eager loading, do you really need `:groupings` and `:submission_rule` at line 154? |
@@ -100,14 +100,15 @@ func NewResponse(ctx context.Context, catalog catalog.MeshCataloger, meshSpec sm
resp.Resources = append(resp.Resources, marshalledInbound)
}
+ // Build Prometheus config
if cfg.IsPrometheusScrapingEnabled() {
- // Build Prometheus listener config
- prometheusConnManager := getPrometheu... | [GetServiceFromEnvoyCertificate,Error,MarshalAny,Msgf,GetCommonName,IsIngressService,GetDownstreamTLSContext,String,IsEgressEnabled,Info,Err,IsPrometheusScrapingEnabled,MessageToAny] | getInboundFilterChain returns a chain of listener config that can be used to build the listener if returns an error if marshalling the DownstreamTLSContext object fails. | rename, this is not ingress. |
@@ -18,6 +18,7 @@ namespace Dynamo.Search.SearchElements
protected string iconName;
private readonly HashSet<string> keywords = new HashSet<string>();
+ protected readonly List<double> keywordsWeights = new List<double>();
private string description;
private string userFrien... | [NodeSearchElement->[ProduceNode->[OnItemProduced],OnVisibilityChanged]] | Base class for all DynamoNode search elements. This function returns an Enumerable of strings representing the full name of the category. | `keywordWeights` - In English, the adjective should not be plural. :) |
@@ -14,8 +14,6 @@ import (
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
-
- "github.com/Unknwon/paginater"
)
const (
| [NumFiles,QueryBool,GetDiffCommit,ValidateCommitWithEmail,GetLatestCommitStatus,CommitsByRange,GetRawDiff,GetDiffRange,GetCommit,Redirect,GetCommitGraph,ParentID,RawDiffType,RepoPath,HTML,Error,ValidateCommitsWithEmails,ParseCommitsWithSignature,FileCommitsCount,NotFound,New,ShortSha,Len,CommitsByFileAndRange,ServerErr... | RefsCommits renders branch s commits and renders commit s diff Graph render commit graph. | Please add copyright header to this file |
@@ -1457,8 +1457,10 @@ namespace Dynamo.Models
{
if (_workspaces.Remove(workspace))
{
- if (workspace is HomeWorkspaceModel)
+ OnWorkspaceRemoveStarted(workspace);
+ if (workspace is HomeWorkspaceModel) {
workspace.Disp... | [DynamoModel->[InitializeNodeLibrary->[InitializeIncludedNodes],ForceRun->[ResetEngine],Paste->[Copy],RemoveWorkspace->[Dispose],UngroupModel->[DeleteModelInternal],ResetEngine->[ResetEngine],ShutDown->[OnShutdownStarted,OnShutdownCompleted],DumpLibraryToXml->[DumpLibraryToXml],ResetEngineInternal->[RegisterCustomNodeD... | RemoveWorkspace - remove workspace. | This is a bit like PreWorkspaceDisposed and I think it should be put just before the line where workspace is disposed. |
@@ -403,7 +403,12 @@ namespace System.Xml.Serialization
}
}
else
- _tempAssembly.InvokeWriter(_mapping, xmlWriter, o, namespaces == null || namespaces.Count == 0 ? DefaultNamespaces : namespaces, encodingStyle, id);
+ {
+ ... | [XmlSerializer->[FromMappings->[FromMappings],Serialize->[Serialize],FromTypes->[FromMappings],XmlSerializerMappingKey->[GetHashCode->[GetHashCode]],CanDeserialize->[ShouldUseReflectionBasedSerialization],GetXmlSerializerAssemblyName->[GetXmlSerializerAssemblyName],GenerateTempAssembly->[GenerateTempAssembly],Deseriali... | Serializes an object into an XML file. | Why was this needed here? I wouldn't expect any code generation on this call path as the assembly has already been loaded/created. |
@@ -15,3 +15,10 @@ VCR.configure do |config|
i.request.uri.sub!(/:\/\/.*#{Regexp.escape(u.host)}/, "://#{u.host}")
end
end
+
+VCR_OPTIONS = {
+ twitter_fetch_status: {
+ cassette_name: "twitter_fetch_status",
+ allow_playback_repeats: true
+ }
+}.freeze
| [cassette_library_dir,sub!,parse,hook_into,host,configure_rspec_metadata!,ignore_localhost,delete,escape,configure,uri,require,before_record] | i. request. uri = >. | if we have an outer key called twitter_fetch_status, do we still need to specify the casette name? |
@@ -127,7 +127,7 @@ class Twitter_Image_Test extends TestCase {
],
],
'open_graph_generate_image' => 'open_graph_image.jpg',
- 'expected' => '',
+ 'expected' => 'twitter_image.jpg',
],
[
'image_source' => 'featured-image',
| [Twitter_Image_Test->[test_generate_twitter_image_with_open_graph_fallback->[andReturn,assertEquals,generate_twitter_image],test_generate_twitter_image->[andReturn,assertEquals,generate_twitter_image],setUp->[set_instance]]] | This method is a fallback provider that returns an array of open graph fallbacks. | This test case demonstrates the desired functionality change. If the Twitter image is different than the open graph image, I think we'd want the Twitter image tag to be shown. |
@@ -23,6 +23,9 @@ func (h CallerHook) Run(e *zerolog.Event, level zerolog.Level, msg string) {
// New creates a new zerolog.Logger
func New(component string) zerolog.Logger {
l := log.With().Str("component", component).Logger().Hook(CallerHook{})
+ if os.Getenv("OSM_HUMAN_DEBUG_LOG") == "true" {
+ return l.Output(... | [Run->[Str,Sprintf,Caller,Base],Str,Msgf,SetGlobalLevel,Hook,ToLower,Fatal,With,Logger] | logger import imports a logger from the package. | nit: do you want to add this flag to the .env.example file so that users going forward know that they need to set it in their local .env files |
@@ -778,6 +778,9 @@ class _BaseRaw(ProjMixin, ContainsMixin, UpdateChannelsMixin,
Dictionary of parameters to use for IIR filtering.
See mne.filter.construct_iir_filter for details. If iir_params
is None and method="iir", 4th order Butterworth will be used.
+ copy : bool
+ ... | [_start_writing_raw->[append],ToDataFrameMixin->[to_data_frame->[_get_check_picks]],_check_update_montage->[append],_write_raw->[_write_raw],_BaseRaw->[notch_filter->[notch_filter],apply_function->[_check_fun],_preload_data->[_read_segment],crop->[_update_times],__setitem__->[_parse_get_set_params],resample->[_update_t... | Filter a subset of channels from the raw data. Missing conditions for a filter. Pick data or a band - stop filter. low level filter for band - stop filtering. | 'Returns a modified copy' seems less ambiguous to me |
@@ -588,6 +588,11 @@ class TestDistBase(unittest.TestCase):
ps0_ep, ps1_ep = self._ps_endpoints.split(",")
tr_cmd = "%s %s --role trainer --endpoints %s --trainer_id %d --current_endpoint %s --trainers %d --update_method pserver --lr %f"
+
+ if os.getenv('WITH_COVERAGE', 'OFF') == 'ON':
+ ... | [TestDistRunnerBase->[run_gpu_fleet_api_trainer->[my_print,eprint,get_model,get_data],run_pserver->[get_model,get_transpiler,my_print],run_trainer->[get_model,get_transpiler,my_print,get_data]],runtime_main->[run_gpu_fleet_api_trainer,run_pserver,run_trainer],TestDistBase->[start_pserver->[my_print],setUp->[_setup_conf... | Run the cluster and compare with local results. This function will return the output of the last non - zero n - ary block in the. | Duplicate with 601 |
@@ -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("2.13.0.2733")]
+[assembly: AssemblyVersion("2.13.0.3084"... | [Satellite] | Assigns the given type to the assembly. | Please revert the changes to this file. |
@@ -32,6 +32,12 @@ from ._models import (
RecognizePiiEntitiesResult,
PiiEntity,
PiiEntityDomainType,
+ RecognizeHealthcareEntitiesResult,
+ EntitiesRecognitionTask,
+ PiiEntitiesRecognitionTask,
+ EntityLinkingTask,
+ KeyPhraseExtractionTask,
+ SentimentAnalysisTask
)
__all__ = [
| [No CFG could be retrieved] | Creates a new object from the name of a node in the Text Analytics system. | you also need to include these models in the __all__ |
@@ -238,9 +238,8 @@ def get_ext_modules():
else:
print("TBB not found")
- # Disable OpenMP if we are building a wheel or
- # forced by user with NUMBA_NO_OPENMP=1
- if is_building_wheel() or os.getenv('NUMBA_NO_OPENMP'):
+ # Disable OpenMP if forced by user with NUMBA_NO_OPENMP=1
+ if os.... | [get_ext_modules->[check_file_at_path,is_building_wheel],get_ext_modules,is_building] | Get a list of extensions that are available for the numba module. Extension for typeconv. cpp. Returns p if p is a path to a file containing a single free - block block. Extension function for all ufunc functions. | is `is_building_wheel` now dead? |
@@ -20,13 +20,13 @@ from __future__ import print_function
from unittest import SkipTest # pylint: disable=g-importing-member
+from tensorflow.compiler.tf2tensorrt.wrap_py_utils import get_linked_tensorrt_version
from tensorflow.python.compiler.tensorrt.test import tf_trt_integration_test_base as trt_test
from t... | [ImplicitBatchTest->[GetConversionParams->[super]],TrtModeTestBase->[GraphFn->[identity,squeeze,abs],setUpClass->[super,SkipTest],GetParams->[BuildParams],GetConversionParams->[_replace,super,GetTrtRewriterConfig]],DynamicShapesTest->[GetParams->[BuildParamsWithMask],GetConversionParams->[super]],ExplicitBatchTest->[Ge... | Compute the graph of the missing values. | Why this line is deleted? It requires two lines. |
@@ -85,9 +85,11 @@ CHANNEL_AFTER_CLOSE_STATES = (
ChannelState.STATE_SETTLED,
)
-NODE_NETWORK_UNKNOWN = "unknown"
-NODE_NETWORK_UNREACHABLE = "unreachable"
-NODE_NETWORK_REACHABLE = "reachable"
+
+class NetworkState(Enum):
+ NODE_NETWORK_UNKNOWN = "unknown"
+ NODE_NETWORK_UNREACHABLE = "unreachable"
+ ... | [TokenNetworkGraphState->[__eq__->[to_comparable_graph]],make_empty_pending_locks_state->[PendingLocksState]] | Return a random message identifier. | I'd remove the `NODE_NETWORK_` prefix from all of them |
@@ -56,6 +56,12 @@ public final class DatanodeMetadata {
@XmlElement(name = "containers")
private int containers;
+ @XmlElement(name = "openContainers")
+ private int openContainers;
+
+ @XmlElement(name = "closedContainers")
+ private int closedContainers;
+
@XmlElement(name = "leaderCount")
private ... | [DatanodeMetadata->[Builder->[build->[DatanodeMetadata]]]] | This class represents a set of metadata objects that represents a Datanode. This is a private method to set all the properties of the object. | Since we have other transient states from OPEN to CLOSED, maybe we can just track openContainers & totalContainers. It is the 'OPEN' container count per node which is a significant data point for writes. |
@@ -95,8 +95,8 @@ func (r *Repository) CanUseTimetracker(issue *models.Issue, user *models.User) b
}
// CanCreateIssueDependencies returns whether or not a user can create dependencies.
-func (r *Repository) CanCreateIssueDependencies(user *models.User) bool {
- return r.Permission.CanWrite(models.UnitTypeIssues) &... | [CanCreateBranch->[CanCreateBranch],CanCommitToBranch->[CanEnableEditor],CanEnableEditor->[CanEnableEditor],RefTypeIncludesTags,CanCreateBranch,RefTypeIncludesBranches,BranchNameSubURL,GetCommitsCount] | CanCreateIssueDependencies returns true if the user has permission to create issue dependencies. | Reordering to `IsDependenciesEnabled` first? |
@@ -17,7 +17,7 @@ class TagsController < ApplicationController
def index
skip_authorization
@tags_index = true
- @tags = Tag.where(alias_for: [nil, ""]).includes(:sponsorship).order(hotness_score: :desc).limit(100)
+ @tags = Tag.concrete.includes(:sponsorship).order(hotness_score: :desc).limit(100)
... | [TagsController->[edit->[authorize,find_by!],update->[redirect_to,find,render,authorize,full_messages,update,tag_path,blank?],tag_params->[permit],onboarding->[select,set_surrogate_key_header,table_key,map],suggest->[select,as_json,render],index->[limit],admin->[redirect_to,authorize,find_by!,edit_admin_tag_path,id],pr... | This action shows the nag with the given name. | I'm not sure how much I like the name `concrete`. When I read your post on Slack the first term that came to mind was `direct`, as in a direct reference vs an indirect one like `rubyonrails` -> `rails`. |
@@ -94,6 +94,7 @@ def create_payment_lines_information(
PaymentLineData(
quantity=order_line.quantity,
product_name=product_name,
+ product_sku=order_line.product_sku,
gross=order_line.unit_price_gross_amount,
... | [get_already_processed_transaction_or_create_new_transaction->[get_already_processed_transaction,create_transaction],create_payment_information->[create_payment_lines_information]] | Create a list of PaymentLineData objects for the given n - node payment. This method is called to add a missing line item to the list of line items that are. | FYI for 3.1 product_sku is an optional field |
@@ -169,7 +169,7 @@ def _serialize_request(http_request):
class HttpTransport(
AbstractContextManager, ABC, Generic[HTTPRequestType, HTTPResponseType]
-): # type: ignore
+):
"""An http sender ABC.
"""
| [_HttpClientTransportResponse->[__init__->[_case_insensitive_dict]],_deserialize_response->[BytesIOSocket],HttpRequest->[set_formdata_body->[_format_data],__deepcopy__->[HttpRequest],__init__->[_case_insensitive_dict],serialize->[_serialize_request],prepare_multipart_body->[set_bytes_body]],HttpTransport->[sleep->[slee... | Send the request using this HTTP sender. . | Why removing some Generic and some not? |
@@ -308,8 +308,16 @@ define([
if (gltf instanceof Uint8Array) {
// Binary glTF
+ var result = parseBinaryGltfHeader(gltf);
+
+ // CESIUM_binary_glTF is from the beginning of the file but
+ // KHR_binary_glTF is from the be... | [No CFG could be retrieved] | Creates a Model object based on a given binary glTF file. The set constructor. | We should mention `KHR_binary_glTF` in the reference doc. |
@@ -266,9 +266,10 @@ class TestImperativeResnet(unittest.TestCase):
optimizer.minimize(avg_loss)
resnet.clear_gradients()
+ fluid.default_main_program().global_block()._clear_block()
+
dy_param_value = {}
- for param in fluid.default_mai... | [TestImperativeResnet->[test_resnet_float32->[ResNet,optimizer_setting]],ResNet->[__init__->[ConvBNLayer,BottleneckBlock]],BottleneckBlock->[__init__->[ConvBNLayer]]] | Test resnet with float32 cross entropy. Initialize params and fetch them. No - op if there are no non - zero n - nan nanies in the training Checks that all values in the dy_param_init_value and dy_grad_. | what's the plan to hide this call? |
@@ -1035,15 +1035,8 @@ public class PAssert {
@ProcessElement
public void processElement(ProcessContext c) {
- try {
- ActualT actualContents = c.sideInput(actual);
- doChecks(actualContents, checkerFn, success, failure);
- } catch (Throwable t) {
- // Suppress exception in st... | [PAssert->[CheckRelationAgainstExpected->[apply->[apply]],PCollectionSingletonIterableAssert->[containsInAnyOrder->[containsInAnyOrder,satisfies],empty->[containsInAnyOrder],satisfies->[apply,satisfies]],GroupThenAssertForSingleton->[expand->[apply]],IntoGlobalWindow->[windowActuals->[window],prepareActuals->[window],o... | Process an element of the input sequence. | This suppression of exceptions was the reason the side input tests failed in Flink runner running in streaming mode. Removing this solves the issue. All the ROS tests pass now (Including the new ones). @kennknowles PTAL |
@@ -223,7 +223,7 @@ class _BatchSizeEstimator(object):
if target_batch_duration_secs and target_batch_duration_secs <= 0:
raise ValueError("target_batch_duration_secs (%s) must be positive" % (
target_batch_duration_secs))
- if not (target_batch_overhead or target_batch_duration_secs):
+ if... | [_GlobalWindowsBatchingDoFn->[start_bundle->[next_batch_size,ignore_next_timing],finish_bundle->[next_batch_size,record_time],process->[next_batch_size,record_time]],BatchElements->[expand->[_GlobalWindowsBatchingDoFn,_WindowAwareBatchingDoFn],__init__->[_BatchSizeEstimator]],RemoveDuplicates->[Keys],_WindowAwareBatchi... | Initialize a new object with the given parameters. | This line should be fine to keep. |
@@ -266,8 +266,8 @@ class StorageBlockBlobTestAsync(AsyncStorageTestCase):
# Act
await self._setup(storage_account, storage_account_key)
source_blob = await self._create_blob(data=b"This is test data to be copied over.")
- test_cpk = CustomerProvidedEncryptionKey(key_value="MDEyMzQ1Njc... | [StorageBlockBlobTestAsync->[test_upload_blob_from_url_source_and_destination_properties->[_setup,_create_blob],test_get_block_list_uncommitted_blocks->[_setup,_get_blob_reference],test_create_blob_from_bytes_with_progress->[_setup,_get_blob_reference,assertBlobEqual],test_create_frm_stream_chu_upld_with_countandprops-... | Upload a blob from a URL with a specific cpk. | Is the ` intentional? |
@@ -139,8 +139,9 @@ module Dependabot
def handle_parser_error(path, stderr)
case stderr
when /go: .*: unknown revision/m
- line = stderr.lines.grep(/unknown revision/).first
- raise Dependabot::DependencyFileNotResolvable, line.strip
+ line = stderr.lines.grep(/unknow... | [FileParser->[module_info->[with_git_configured,capture3,write,mkdir,handle_parser_error,in_a_temporary_directory,success?,touch,join,exist?,each],rev_identifier?->[match?],go_mod->[get_original_file],git_revision->[fetch,match?],parse->[new,dependencies,parse,dependency_from_details,group_by,join,each,map],handle_pars... | Handle parsing errors and raise an exception if there is a match. | Question: should this behaviour still be specific to `github.com/.*` urls? Raising a typed exception for inaccessible module dependencies should be useful regardless of host, and the pattern seems portable. My biggest reservation was assuming all modules are "git" dependencies. I kept this filter for defensiveness. |
@@ -29,6 +29,9 @@ export class AbstractAmpContext {
dev().assert(!this.isAbstractImplementation_(),
'Should not construct AbstractAmpContext instances directly');
+ /** @visibleForTesting */
+ this._ampInternalIsNewImpl = true;
+
/** @protected {!Window} */
this.win_ = win;
| [No CFG could be retrieved] | Creates an instance of a single - type object. Replies the properties of a single - node header. | a bit confused. if this variable is always true, why do we need it? |
@@ -78,7 +78,7 @@ public class TechAbilityAttachment extends DefaultAttachment {
private int warBondDiceNumber = 0;
private IntegerMap<UnitType> rocketDiceNumber = new IntegerMap<>();
private int rocketDistance = 0;
- private int rocketNumberPerTerritory = 0;
+ private int rocketNumberPerTerritory = 1;
pr... | [TechAbilityAttachment->[setRocketDistance->[getIntInRange],setDefenseBonus->[applyCheckedValue],setProductionBonus->[applyCheckedValue],setRepairDiscount->[getIntInRange],getRocketDistance->[sumNumbers],getAirAttackBonus->[sumIntegerMap],setRocketNumberPerTerritory->[getIntInRange],setAirborneDistance->[getIntInRange]... | This class contains all the possible abilities that are used by the unit abilities. Gets the unit type. | Why was this default changed? |
@@ -9,13 +9,17 @@ import {
SegwitBech32Wallet,
HDSegwitBech32Wallet,
} from './';
-import { LightningCustodianWallet } from './lightning-custodian-wallet';
+import {LightningCustodianWallet} from './lightning-custodian-wallet';
import WatchConnectivity from '../WatchConnectivity';
+import RNSecureKeyStore, {ACC... | [No CFG could be retrieved] | Constructor for the AppStorage class. This is a utility function that returns true if the data is encrypted and false if it is. | whats the point of having separate keyvalue for plausible buckets? all I saw is that it only required more code to handle it, and harder to read |
@@ -4083,6 +4083,14 @@ p {
true
);
+ wp_enqueue_script(
+ 'jp-tracks-functions',
+ plugins_url( '_inc/lib/tracks/tracks-callables.js', JETPACK__PLUGIN_FILE ),
+ array(),
+ JETPACK__VERSION,
+ false
+ );
+
wp_localize_script(
'jetpack-deactivate-dialog-js',
'deacti... | [Jetpack->[reset_saved_auth_state->[reset_saved_auth_state],add_remote_request_handlers->[require_jetpack_authentication],admin_page_load->[disconnect],development_mode_trigger_text->[is_development_mode],is_active_and_not_development_mode->[is_development_mode],check_identity_crisis->[is_development_mode],register->[r... | Deactivate Jetpack dialog. | Do we still need this? |
@@ -52,6 +52,12 @@ class Jetpack_Sync_Modules {
return self::$initialized_modules;
}
+ public static function set_defaults() {
+ foreach( self::get_modules() as $module ) {
+ $module->set_defaults();
+ }
+ }
+
public static function get_module( $module_name ) {
foreach ( self::get_modules() as $module )... | [Jetpack_Sync_Modules->[initialize_module->[set_defaults],get_module->[name]]] | Get a module object. | minor formatting `foreach (` |
@@ -29,7 +29,6 @@ class QuantumEspresso(Package):
version('5.4', '085f7e4de0952e266957bbc79563c54e')
version('5.3', 'be3f8778e302cffb89258a5f936a7592')
version('develop', branch='develop')
- version('latest-backports', branch='qe-6.3-backports')
variant('mpi', default=True, description='Bui... | [QuantumEspresso->[install->[join_path,install,mkdirp,append,extend,filter_file,format,glob,join,configure,make],depends_on,conflicts,version,patch,variant]] | Quantum - ESPRESSO is an integrated suite of Open - Source computer codes that Creates a default value for a specific sequence number. | Can you move `develop` to the top? We like to sort versions in descending order. |
@@ -110,9 +110,9 @@ namespace System.Linq
return _enumerable.GetEnumerator();
}
- public override string ToString()
+ public override string? ToString()
{
- ConstantExpression c = _expression as ConstantExpression;
+ ConstantExpression? c = _expressio... | [EnumerableQuery->[ToString->[ToString],TElement->[Execute],GetEnumerator->[GetEnumerator]]] | Get the enumerator of this object. | __expression.ToString() wouldn't return null (I am still working on Linq.Expression) |
@@ -27,4 +27,4 @@ class PyBiomFormat(PythonPackage):
depends_on('py-scipy@0.13.0:', type=('build', 'run'))
depends_on('py-pandas@0.19.2:', type=('build', 'run'))
depends_on('py-six@1.10.0:', type=('build', 'run'))
- depends_on('py-pyqi', type=('build', 'run'))
+ depends_on('py-pyqi', type=('build',... | [PyBiomFormat->[variant,depends_on,version]] | requires_on is a convenience method for the build_dependency_resolver. | Numpy is now `@1.9.2:` |
@@ -165,6 +165,7 @@ class RowCoderImpl(StreamCoderImpl):
field.type.nullable for field in self.schema.fields)
def encode_to_stream(self, value, out, nested):
+ self.schema = SCHEMA_REGISTRY.get_schema_by_id(self.schema.id)
nvals = len(self.schema.fields)
self.SIZE_CODER.encode_to_stream(nvals... | [LogicalTypeCoderImpl->[decode_from_stream->[decode_from_stream],encode_to_stream->[encode_to_stream]],RowCoderImpl->[decode_from_stream->[decode_from_stream],encode_to_stream->[encode_to_stream]],RowCoder->[from_payload->[RowCoder],from_runner_api_parameter->[RowCoder],from_type_hint->[RowCoder],is_deterministic->[is_... | Encode the object to a binary stream. | Is this necessary? |
@@ -90,8 +90,8 @@ std::set<std::string> kSMCTemperatureKeys = {
"TCGC", "TCGc", "TG0P", "TG0D", "TG1D", "TG0H", "TG1H", "Ts0S", "TM0P",
"TM1P", "TM8P", "TM9P", "TM0S", "TM1S", "TM8S", "TM9S", "TN0D", "TN0P",
"TN1P", "TN0C", "TN0H", "TP0D", "TPCD", "TP0P", "TA0P", "TA1P", "Th0H",
- "Th1H", "Th2H", "Tm0... | [read->[call],genSMCKey->[read],genSMCKeys->[genSMCKey,getKeys,open],genFanSpeedSensors->[genSMCKey,getFanName,open,getConvertedValue],QueryData->[genSMCKey,open],genTemperature->[getConvertedValue],genPower->[getConvertedValue],getKeys->[call,getKeysCount],getKeysCount->[read],genPowerSensors->[genPower]] | region ethernet - api region Private Methods The kSMCFanSpeeds attribute provides a mapping between the name of the non -. | Are you sure about this `Tp0P` is now removed completely. |
@@ -141,15 +141,7 @@ namespace System.Net
}
name = HttpValidationHelpers.CheckBadHeaderNameChars(name);
- ThrowOnRestrictedHeader(name);
value = HttpValidationHelpers.CheckBadHeaderValueChars(value);
- if (_type == WebHeaderCollectionType.WebResponse)
- ... | [WebHeaderCollection->[Set->[Set],Clear->[Clear],AddWithoutValidate->[Add],Get->[Get],ToByteArray->[ToString],GetValues->[GetValues],Add->[Add],IsRestricted->[IsRestricted],GetKey->[GetKey],ToString->[ToString,Get],Remove->[Remove,ThrowOnRestrictedHeader]]] | Sets the value of the specified header in this collection. | Are the `SR.net_headers_toolong` and `SR.net_headerrestrict` resource strings used anywhere else? Otherwise they can be removed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.